@itwin/grouping-mapping-widget 0.9.0 → 0.9.2

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 (85) hide show
  1. package/lib/cjs/test/GroupPropertyUtils.test.js +61 -1
  2. package/lib/cjs/test/GroupPropertyUtils.test.js.map +1 -1
  3. package/lib/cjs/test/GroupingMappingCustomUI.test.js +44 -53
  4. package/lib/cjs/test/GroupingMappingCustomUI.test.js.map +1 -1
  5. package/lib/cjs/test/QueryBuilder.test.js +30 -2
  6. package/lib/cjs/test/QueryBuilder.test.js.map +1 -1
  7. package/lib/cjs/test/QueryBuilder.testdata.js +471 -7
  8. package/lib/cjs/test/QueryBuilder.testdata.js.map +1 -1
  9. package/lib/cjs/test/QueryBuilderTestData.d.ts +3 -1
  10. package/lib/cjs/test/QueryBuilderTestData.js.map +1 -1
  11. package/lib/cjs/widget/components/GroupAction.js +2 -21
  12. package/lib/cjs/widget/components/GroupAction.js.map +1 -1
  13. package/lib/cjs/widget/components/GroupPropertyUtils.js +2 -1
  14. package/lib/cjs/widget/components/GroupPropertyUtils.js.map +1 -1
  15. package/lib/cjs/widget/components/GroupQueryBuilderContainer.d.ts +3 -2
  16. package/lib/cjs/widget/components/GroupQueryBuilderContainer.js +38 -45
  17. package/lib/cjs/widget/components/GroupQueryBuilderContainer.js.map +1 -1
  18. package/lib/cjs/widget/components/Grouping.js +1 -1
  19. package/lib/cjs/widget/components/Grouping.js.map +1 -1
  20. package/lib/cjs/widget/components/Grouping.scss +1 -1
  21. package/lib/cjs/widget/components/QueryBuilder.d.ts +35 -21
  22. package/lib/cjs/widget/components/QueryBuilder.js +153 -181
  23. package/lib/cjs/widget/components/QueryBuilder.js.map +1 -1
  24. package/lib/cjs/widget/components/context/PropertyGridWrapperContext.d.ts +15 -0
  25. package/lib/cjs/widget/components/context/{GroupQueryBuilderContext.js → PropertyGridWrapperContext.js} +13 -9
  26. package/lib/cjs/widget/components/context/PropertyGridWrapperContext.js.map +1 -0
  27. package/lib/cjs/widget/components/property-grid/PropertyGrid.d.ts +1 -1
  28. package/lib/cjs/widget/components/property-grid/PropertyGrid.js +2 -2
  29. package/lib/cjs/widget/components/property-grid/PropertyGrid.js.map +1 -1
  30. package/lib/cjs/widget/components/property-grid/PropertyGridWrapper.d.ts +10 -4
  31. package/lib/cjs/widget/components/property-grid/PropertyGridWrapper.js +18 -8
  32. package/lib/cjs/widget/components/property-grid/PropertyGridWrapper.js.map +1 -1
  33. package/lib/cjs/widget/components/property-grid/PropertyView.d.ts +1 -1
  34. package/lib/cjs/widget/components/property-grid/PropertyView.js +46 -60
  35. package/lib/cjs/widget/components/property-grid/PropertyView.js.map +1 -1
  36. package/lib/cjs/widget/components/viewerUtils.js +1 -3
  37. package/lib/cjs/widget/components/viewerUtils.js.map +1 -1
  38. package/lib/esm/test/GroupPropertyUtils.test.js +61 -1
  39. package/lib/esm/test/GroupPropertyUtils.test.js.map +1 -1
  40. package/lib/esm/test/GroupingMappingCustomUI.test.js +45 -54
  41. package/lib/esm/test/GroupingMappingCustomUI.test.js.map +1 -1
  42. package/lib/esm/test/QueryBuilder.test.js +31 -3
  43. package/lib/esm/test/QueryBuilder.test.js.map +1 -1
  44. package/lib/esm/test/QueryBuilder.testdata.js +471 -7
  45. package/lib/esm/test/QueryBuilder.testdata.js.map +1 -1
  46. package/lib/esm/test/QueryBuilderTestData.d.ts +3 -1
  47. package/lib/esm/test/QueryBuilderTestData.js.map +1 -1
  48. package/lib/esm/widget/components/GroupAction.js +2 -21
  49. package/lib/esm/widget/components/GroupAction.js.map +1 -1
  50. package/lib/esm/widget/components/GroupPropertyUtils.js +2 -1
  51. package/lib/esm/widget/components/GroupPropertyUtils.js.map +1 -1
  52. package/lib/esm/widget/components/GroupQueryBuilderContainer.d.ts +3 -2
  53. package/lib/esm/widget/components/GroupQueryBuilderContainer.js +34 -25
  54. package/lib/esm/widget/components/GroupQueryBuilderContainer.js.map +1 -1
  55. package/lib/esm/widget/components/Grouping.js +1 -1
  56. package/lib/esm/widget/components/Grouping.js.map +1 -1
  57. package/lib/esm/widget/components/Grouping.scss +1 -1
  58. package/lib/esm/widget/components/QueryBuilder.d.ts +35 -21
  59. package/lib/esm/widget/components/QueryBuilder.js +153 -181
  60. package/lib/esm/widget/components/QueryBuilder.js.map +1 -1
  61. package/lib/esm/widget/components/context/PropertyGridWrapperContext.d.ts +15 -0
  62. package/lib/esm/widget/components/context/{GroupQueryBuilderContext.js → PropertyGridWrapperContext.js} +11 -8
  63. package/lib/esm/widget/components/context/PropertyGridWrapperContext.js.map +1 -0
  64. package/lib/esm/widget/components/property-grid/PropertyGrid.d.ts +1 -1
  65. package/lib/esm/widget/components/property-grid/PropertyGrid.js +2 -2
  66. package/lib/esm/widget/components/property-grid/PropertyGrid.js.map +1 -1
  67. package/lib/esm/widget/components/property-grid/PropertyGridWrapper.d.ts +10 -4
  68. package/lib/esm/widget/components/property-grid/PropertyGridWrapper.js +16 -6
  69. package/lib/esm/widget/components/property-grid/PropertyGridWrapper.js.map +1 -1
  70. package/lib/esm/widget/components/property-grid/PropertyView.d.ts +1 -1
  71. package/lib/esm/widget/components/property-grid/PropertyView.js +32 -30
  72. package/lib/esm/widget/components/property-grid/PropertyView.js.map +1 -1
  73. package/lib/esm/widget/components/viewerUtils.js +1 -3
  74. package/lib/esm/widget/components/viewerUtils.js.map +1 -1
  75. package/package.json +2 -2
  76. package/lib/cjs/api/GroupQueryBuilderApi.d.ts +0 -15
  77. package/lib/cjs/api/GroupQueryBuilderApi.js +0 -27
  78. package/lib/cjs/api/GroupQueryBuilderApi.js.map +0 -1
  79. package/lib/cjs/widget/components/context/GroupQueryBuilderContext.d.ts +0 -16
  80. package/lib/cjs/widget/components/context/GroupQueryBuilderContext.js.map +0 -1
  81. package/lib/esm/api/GroupQueryBuilderApi.d.ts +0 -15
  82. package/lib/esm/api/GroupQueryBuilderApi.js +0 -23
  83. package/lib/esm/api/GroupQueryBuilderApi.js.map +0 -1
  84. package/lib/esm/widget/components/context/GroupQueryBuilderContext.d.ts +0 -16
  85. package/lib/esm/widget/components/context/GroupQueryBuilderContext.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/grouping-mapping-widget",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "An iTwin.js 3D Viewer Widget that interfaces with the iTwin Reporting Platform.",
5
5
  "keywords": [
6
6
  "Bentley",
@@ -131,7 +131,7 @@
131
131
  "copy:cjs": "cpx \"./src/**/*.scss\" ./lib/cjs",
132
132
  "copy:esm": "cpx \"./src/**/*.scss\" ./lib/esm",
133
133
  "copy:public": "cpx \"./public/**/*\" ./lib/public",
134
- "cover": "",
134
+ "cover": "npm test -- --coverage",
135
135
  "dual-build": "npm run -s build:cjs && npm run -s build:esm",
136
136
  "lint": "eslint -f visualstudio \"./src/**/*.{ts,tsx}\" 1>&2",
137
137
  "lint:fix": "npm run lint -- --fix",
@@ -1,15 +0,0 @@
1
- import type { KeySet } from "@itwin/presentation-common";
2
- import type { SelectionChangesListener } from "@itwin/presentation-frontend";
3
- import { PresentationPropertyDataProvider } from "@itwin/presentation-components";
4
- import type { IModelConnection } from "@itwin/core-frontend";
5
- export interface PropertyProps {
6
- keys: KeySet;
7
- imodel?: IModelConnection;
8
- }
9
- export declare class GroupQueryBuilderApi {
10
- private static selectionListener;
11
- static addSelectionListener(listener: SelectionChangesListener): void;
12
- static removeSelectionListener(): void;
13
- static createPropertyDataProvider(keys: KeySet, imodel: IModelConnection): PresentationPropertyDataProvider;
14
- }
15
- //# sourceMappingURL=GroupQueryBuilderApi.d.ts.map
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GroupQueryBuilderApi = void 0;
4
- const presentation_frontend_1 = require("@itwin/presentation-frontend");
5
- const presentation_components_1 = require("@itwin/presentation-components");
6
- /* This class demonstrates the key APIs needed to access formatted property information
7
- suitable to present to end users. */
8
- class GroupQueryBuilderApi {
9
- static addSelectionListener(listener) {
10
- this.selectionListener = listener;
11
- presentation_frontend_1.Presentation.selection.selectionChange.addListener(this.selectionListener);
12
- }
13
- static removeSelectionListener() {
14
- presentation_frontend_1.Presentation.selection.selectionChange.removeListener(this.selectionListener);
15
- }
16
- static createPropertyDataProvider(keys, imodel) {
17
- const dataProvider = new presentation_components_1.PresentationPropertyDataProvider({
18
- imodel,
19
- ruleset: presentation_components_1.DEFAULT_PROPERTY_GRID_RULESET,
20
- });
21
- dataProvider.keys = keys;
22
- dataProvider.isNestedPropertyCategoryGroupingEnabled = true;
23
- return dataProvider;
24
- }
25
- }
26
- exports.GroupQueryBuilderApi = GroupQueryBuilderApi;
27
- //# sourceMappingURL=GroupQueryBuilderApi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GroupQueryBuilderApi.js","sourceRoot":"","sources":["../../../src/api/GroupQueryBuilderApi.ts"],"names":[],"mappings":";;;AAOA,wEAEsC;AACtC,4EAGwC;AAQxC;uCACuC;AACvC,MAAa,oBAAoB;IAGxB,MAAM,CAAC,oBAAoB,CAAC,QAAkC;QACnE,IAAI,CAAC,iBAAiB,GAAG,QAAQ,CAAC;QAClC,oCAAY,CAAC,SAAS,CAAC,eAAe,CAAC,WAAW,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAC7E,CAAC;IAEM,MAAM,CAAC,uBAAuB;QACnC,oCAAY,CAAC,SAAS,CAAC,eAAe,CAAC,cAAc,CACnD,IAAI,CAAC,iBAAiB,CACvB,CAAC;IACJ,CAAC;IAEM,MAAM,CAAC,0BAA0B,CACtC,IAAY,EACZ,MAAwB;QAExB,MAAM,YAAY,GAAG,IAAI,0DAAgC,CAAC;YACxD,MAAM;YACN,OAAO,EAAE,uDAA6B;SACvC,CAAC,CAAC;QACH,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC;QACzB,YAAY,CAAC,uCAAuC,GAAG,IAAI,CAAC;QAC5D,OAAO,YAAY,CAAC;IACtB,CAAC;CACF;AA1BD,oDA0BC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport type { KeySet } from \"@itwin/presentation-common\";\nimport type {\n SelectionChangesListener} from \"@itwin/presentation-frontend\";\nimport {\n Presentation,\n} from \"@itwin/presentation-frontend\";\nimport {\n DEFAULT_PROPERTY_GRID_RULESET,\n PresentationPropertyDataProvider,\n} from \"@itwin/presentation-components\";\nimport type { IModelConnection } from \"@itwin/core-frontend\";\n\nexport interface PropertyProps {\n keys: KeySet;\n imodel?: IModelConnection;\n}\n\n/* This class demonstrates the key APIs needed to access formatted property information\n suitable to present to end users. */\nexport class GroupQueryBuilderApi {\n private static selectionListener: SelectionChangesListener;\n\n public static addSelectionListener(listener: SelectionChangesListener) {\n this.selectionListener = listener;\n Presentation.selection.selectionChange.addListener(this.selectionListener);\n }\n\n public static removeSelectionListener() {\n Presentation.selection.selectionChange.removeListener(\n this.selectionListener,\n );\n }\n\n public static createPropertyDataProvider(\n keys: KeySet,\n imodel: IModelConnection,\n ) {\n const dataProvider = new PresentationPropertyDataProvider({\n imodel,\n ruleset: DEFAULT_PROPERTY_GRID_RULESET,\n });\n dataProvider.keys = keys;\n dataProvider.isNestedPropertyCategoryGroupingEnabled = true;\n return dataProvider;\n }\n}\n"]}
@@ -1,16 +0,0 @@
1
- import * as React from "react";
2
- import type { PropertyRecord } from "@itwin/appui-abstract";
3
- import { QueryBuilder } from "../QueryBuilder";
4
- export interface PropertySelection {
5
- currentPropertyList: PropertyRecord[];
6
- setCurrentPropertyList: React.Dispatch<React.SetStateAction<PropertyRecord[]>>;
7
- query: string;
8
- setQuery: React.Dispatch<React.SetStateAction<string>>;
9
- queryBuilder: QueryBuilder;
10
- setQueryBuilder: React.Dispatch<React.SetStateAction<QueryBuilder>>;
11
- isLoading: boolean;
12
- isRendering: boolean;
13
- resetView: () => Promise<void>;
14
- }
15
- export declare const GroupQueryBuilderContext: React.Context<PropertySelection>;
16
- //# sourceMappingURL=GroupQueryBuilderContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GroupQueryBuilderContext.js","sourceRoot":"","sources":["../../../../../src/widget/components/context/GroupQueryBuilderContext.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F,6CAA+B;AAE/B,kDAA+C;AAelC,QAAA,wBAAwB,GAAG,KAAK,CAAC,aAAa,CAAoB;IAC7E,mBAAmB,EAAE,EAAE;IACvB,sBAAsB,EAAE,GAAG,EAAE,CAAC,EAAE;IAChC,KAAK,EAAE,EAAE;IACT,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE;IAClB,YAAY,EAAE,IAAI,2BAAY,CAAC,SAAS,CAAC;IACzC,eAAe,EAAE,GAAG,EAAE,CAAC,IAAI,2BAAY,CAAC,SAAS,CAAC;IAClD,SAAS,EAAE,KAAK;IAChB,WAAW,EAAE,KAAK;IAClB,SAAS,EAAE,KAAK,IAAI,EAAE,GAAG,CAAC;CAC3B,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport * as React from \"react\";\nimport type { PropertyRecord } from \"@itwin/appui-abstract\";\nimport { QueryBuilder } from \"../QueryBuilder\";\n\nexport interface PropertySelection {\n currentPropertyList: PropertyRecord[];\n setCurrentPropertyList: React.Dispatch<\n React.SetStateAction<PropertyRecord[]>\n >;\n query: string;\n setQuery: React.Dispatch<React.SetStateAction<string>>;\n queryBuilder: QueryBuilder;\n setQueryBuilder: React.Dispatch<React.SetStateAction<QueryBuilder>>;\n isLoading: boolean;\n isRendering: boolean;\n resetView: () => Promise<void>;\n}\nexport const GroupQueryBuilderContext = React.createContext<PropertySelection>({\n currentPropertyList: [],\n setCurrentPropertyList: () => [],\n query: \"\",\n setQuery: () => \"\",\n queryBuilder: new QueryBuilder(undefined),\n setQueryBuilder: () => new QueryBuilder(undefined),\n isLoading: false,\n isRendering: false,\n resetView: async () => { },\n});\n"]}
@@ -1,15 +0,0 @@
1
- import type { KeySet } from "@itwin/presentation-common";
2
- import type { SelectionChangesListener } from "@itwin/presentation-frontend";
3
- import { PresentationPropertyDataProvider } from "@itwin/presentation-components";
4
- import type { IModelConnection } from "@itwin/core-frontend";
5
- export interface PropertyProps {
6
- keys: KeySet;
7
- imodel?: IModelConnection;
8
- }
9
- export declare class GroupQueryBuilderApi {
10
- private static selectionListener;
11
- static addSelectionListener(listener: SelectionChangesListener): void;
12
- static removeSelectionListener(): void;
13
- static createPropertyDataProvider(keys: KeySet, imodel: IModelConnection): PresentationPropertyDataProvider;
14
- }
15
- //# sourceMappingURL=GroupQueryBuilderApi.d.ts.map
@@ -1,23 +0,0 @@
1
- import { Presentation, } from "@itwin/presentation-frontend";
2
- import { DEFAULT_PROPERTY_GRID_RULESET, PresentationPropertyDataProvider, } from "@itwin/presentation-components";
3
- /* This class demonstrates the key APIs needed to access formatted property information
4
- suitable to present to end users. */
5
- export class GroupQueryBuilderApi {
6
- static addSelectionListener(listener) {
7
- this.selectionListener = listener;
8
- Presentation.selection.selectionChange.addListener(this.selectionListener);
9
- }
10
- static removeSelectionListener() {
11
- Presentation.selection.selectionChange.removeListener(this.selectionListener);
12
- }
13
- static createPropertyDataProvider(keys, imodel) {
14
- const dataProvider = new PresentationPropertyDataProvider({
15
- imodel,
16
- ruleset: DEFAULT_PROPERTY_GRID_RULESET,
17
- });
18
- dataProvider.keys = keys;
19
- dataProvider.isNestedPropertyCategoryGroupingEnabled = true;
20
- return dataProvider;
21
- }
22
- }
23
- //# sourceMappingURL=GroupQueryBuilderApi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GroupQueryBuilderApi.js","sourceRoot":"","sources":["../../../src/api/GroupQueryBuilderApi.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,YAAY,GACb,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,6BAA6B,EAC7B,gCAAgC,GACjC,MAAM,gCAAgC,CAAC;AAQxC;uCACuC;AACvC,MAAM,OAAO,oBAAoB;IAGxB,MAAM,CAAC,oBAAoB,CAAC,QAAkC;QACnE,IAAI,CAAC,iBAAiB,GAAG,QAAQ,CAAC;QAClC,YAAY,CAAC,SAAS,CAAC,eAAe,CAAC,WAAW,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAC7E,CAAC;IAEM,MAAM,CAAC,uBAAuB;QACnC,YAAY,CAAC,SAAS,CAAC,eAAe,CAAC,cAAc,CACnD,IAAI,CAAC,iBAAiB,CACvB,CAAC;IACJ,CAAC;IAEM,MAAM,CAAC,0BAA0B,CACtC,IAAY,EACZ,MAAwB;QAExB,MAAM,YAAY,GAAG,IAAI,gCAAgC,CAAC;YACxD,MAAM;YACN,OAAO,EAAE,6BAA6B;SACvC,CAAC,CAAC;QACH,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC;QACzB,YAAY,CAAC,uCAAuC,GAAG,IAAI,CAAC;QAC5D,OAAO,YAAY,CAAC;IACtB,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport type { KeySet } from \"@itwin/presentation-common\";\nimport type {\n SelectionChangesListener} from \"@itwin/presentation-frontend\";\nimport {\n Presentation,\n} from \"@itwin/presentation-frontend\";\nimport {\n DEFAULT_PROPERTY_GRID_RULESET,\n PresentationPropertyDataProvider,\n} from \"@itwin/presentation-components\";\nimport type { IModelConnection } from \"@itwin/core-frontend\";\n\nexport interface PropertyProps {\n keys: KeySet;\n imodel?: IModelConnection;\n}\n\n/* This class demonstrates the key APIs needed to access formatted property information\n suitable to present to end users. */\nexport class GroupQueryBuilderApi {\n private static selectionListener: SelectionChangesListener;\n\n public static addSelectionListener(listener: SelectionChangesListener) {\n this.selectionListener = listener;\n Presentation.selection.selectionChange.addListener(this.selectionListener);\n }\n\n public static removeSelectionListener() {\n Presentation.selection.selectionChange.removeListener(\n this.selectionListener,\n );\n }\n\n public static createPropertyDataProvider(\n keys: KeySet,\n imodel: IModelConnection,\n ) {\n const dataProvider = new PresentationPropertyDataProvider({\n imodel,\n ruleset: DEFAULT_PROPERTY_GRID_RULESET,\n });\n dataProvider.keys = keys;\n dataProvider.isNestedPropertyCategoryGroupingEnabled = true;\n return dataProvider;\n }\n}\n"]}
@@ -1,16 +0,0 @@
1
- import * as React from "react";
2
- import type { PropertyRecord } from "@itwin/appui-abstract";
3
- import { QueryBuilder } from "../QueryBuilder";
4
- export interface PropertySelection {
5
- currentPropertyList: PropertyRecord[];
6
- setCurrentPropertyList: React.Dispatch<React.SetStateAction<PropertyRecord[]>>;
7
- query: string;
8
- setQuery: React.Dispatch<React.SetStateAction<string>>;
9
- queryBuilder: QueryBuilder;
10
- setQueryBuilder: React.Dispatch<React.SetStateAction<QueryBuilder>>;
11
- isLoading: boolean;
12
- isRendering: boolean;
13
- resetView: () => Promise<void>;
14
- }
15
- export declare const GroupQueryBuilderContext: React.Context<PropertySelection>;
16
- //# sourceMappingURL=GroupQueryBuilderContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GroupQueryBuilderContext.js","sourceRoot":"","sources":["../../../../../src/widget/components/context/GroupQueryBuilderContext.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAe/C,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,CAAC,aAAa,CAAoB;IAC7E,mBAAmB,EAAE,EAAE;IACvB,sBAAsB,EAAE,GAAG,EAAE,CAAC,EAAE;IAChC,KAAK,EAAE,EAAE;IACT,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE;IAClB,YAAY,EAAE,IAAI,YAAY,CAAC,SAAS,CAAC;IACzC,eAAe,EAAE,GAAG,EAAE,CAAC,IAAI,YAAY,CAAC,SAAS,CAAC;IAClD,SAAS,EAAE,KAAK;IAChB,WAAW,EAAE,KAAK;IAClB,SAAS,EAAE,KAAK,IAAI,EAAE,GAAG,CAAC;CAC3B,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport * as React from \"react\";\nimport type { PropertyRecord } from \"@itwin/appui-abstract\";\nimport { QueryBuilder } from \"../QueryBuilder\";\n\nexport interface PropertySelection {\n currentPropertyList: PropertyRecord[];\n setCurrentPropertyList: React.Dispatch<\n React.SetStateAction<PropertyRecord[]>\n >;\n query: string;\n setQuery: React.Dispatch<React.SetStateAction<string>>;\n queryBuilder: QueryBuilder;\n setQueryBuilder: React.Dispatch<React.SetStateAction<QueryBuilder>>;\n isLoading: boolean;\n isRendering: boolean;\n resetView: () => Promise<void>;\n}\nexport const GroupQueryBuilderContext = React.createContext<PropertySelection>({\n currentPropertyList: [],\n setCurrentPropertyList: () => [],\n query: \"\",\n setQuery: () => \"\",\n queryBuilder: new QueryBuilder(undefined),\n setQueryBuilder: () => new QueryBuilder(undefined),\n isLoading: false,\n isRendering: false,\n resetView: async () => { },\n});\n"]}