@itwin/presentation-common 3.0.0-dev.122 → 3.0.0-dev.126

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 (20) hide show
  1. package/Ruleset.schema.json +35 -4
  2. package/lib/cjs/presentation-common/rules/ClassSpecifications.d.ts +4 -9
  3. package/lib/cjs/presentation-common/rules/ClassSpecifications.d.ts.map +1 -1
  4. package/lib/cjs/presentation-common/rules/ClassSpecifications.js.map +1 -1
  5. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts +9 -1
  6. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts.map +1 -1
  7. package/lib/cjs/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
  8. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +7 -1
  9. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts.map +1 -1
  10. package/lib/cjs/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  11. package/lib/esm/presentation-common/rules/ClassSpecifications.d.ts +4 -9
  12. package/lib/esm/presentation-common/rules/ClassSpecifications.d.ts.map +1 -1
  13. package/lib/esm/presentation-common/rules/ClassSpecifications.js.map +1 -1
  14. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts +9 -1
  15. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.d.ts.map +1 -1
  16. package/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js.map +1 -1
  17. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts +7 -1
  18. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.d.ts.map +1 -1
  19. package/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js.map +1 -1
  20. package/package.json +10 -10
@@ -236,8 +236,22 @@
236
236
  ],
237
237
  "description": "List of ECClass specifications whose ECInstances should be selected."
238
238
  },
239
+ "excludedClasses": {
240
+ "anyOf": [
241
+ {
242
+ "$ref": "#/definitions/MultiSchemaClassesSpecification"
243
+ },
244
+ {
245
+ "items": {
246
+ "$ref": "#/definitions/MultiSchemaClassesSpecification"
247
+ },
248
+ "type": "array"
249
+ }
250
+ ],
251
+ "description": "List of ECClass specifications whose ECInstances should be excluded."
252
+ },
239
253
  "handleInstancesPolymorphically": {
240
- "description": "Whether to get content from instances of derived `classes`.",
254
+ "description": "Whether to get content from instances of derived `classes`.\nActs as default value for `classes.arePolymorphic` and `excludedClasses.arePolymorphic`.",
241
255
  "type": "boolean"
242
256
  },
243
257
  "handlePropertiesPolymorphically": {
@@ -1259,7 +1273,7 @@
1259
1273
  "description": "Creates nodes for all instances of specified ECClasses.",
1260
1274
  "properties": {
1261
1275
  "arePolymorphic": {
1262
- "description": "Should all `classes` be handled polymorphically.",
1276
+ "description": "Whether to get instances from derived `classes`.\nActs as default value for `classes.arePolymorphic` and `excludedClasses.arePolymorphic`.",
1263
1277
  "type": "boolean"
1264
1278
  },
1265
1279
  "classes": {
@@ -1280,6 +1294,20 @@
1280
1294
  "description": "Set this flag to `true` to suppress default sorting of ECInstances returned by this specification.\n\nNote: setting this flag to `true` improves performance.",
1281
1295
  "type": "boolean"
1282
1296
  },
1297
+ "excludedClasses": {
1298
+ "anyOf": [
1299
+ {
1300
+ "$ref": "#/definitions/MultiSchemaClassesSpecification"
1301
+ },
1302
+ {
1303
+ "items": {
1304
+ "$ref": "#/definitions/MultiSchemaClassesSpecification"
1305
+ },
1306
+ "type": "array"
1307
+ }
1308
+ ],
1309
+ "description": "Specifications of ECClasses whose instances should be excluded."
1310
+ },
1283
1311
  "groupByClass": {
1284
1312
  "description": "Group instances by ECClass. Defaults to `true`.",
1285
1313
  "type": "boolean"
@@ -1399,12 +1427,15 @@
1399
1427
  "additionalProperties": false,
1400
1428
  "description": "Specification for multiple ECClasses that belong to\nthe same ECSchema.",
1401
1429
  "properties": {
1430
+ "arePolymorphic": {
1431
+ "description": "Should all classes specified in `classNames` array be handled polymorphically.",
1432
+ "type": "boolean"
1433
+ },
1402
1434
  "classNames": {
1403
- "description": "List of ECClass names.\n\nEach class name may be prefixed with:\n- `E:` to exclude class from results\n- `PE:` to exclude class and all its sublasses from results\nSo generally the list may contain `[\"base_class_name\", \"PE:derived_class_name\"]` to\ninclude all instances of `base_class_name` except all polymorphic instances of\n`derived_class_name`.",
1435
+ "description": "List of ECClass names.",
1404
1436
  "items": {
1405
1437
  "type": "string"
1406
1438
  },
1407
- "pattern": "^(E:|PE:)?[\\w\\d]+$",
1408
1439
  "type": "array"
1409
1440
  },
1410
1441
  "schemaName": {
@@ -34,16 +34,11 @@ export interface MultiSchemaClassesSpecification {
34
34
  schemaName: string;
35
35
  /**
36
36
  * List of ECClass names.
37
- *
38
- * Each class name may be prefixed with:
39
- * - `E:` to exclude class from results
40
- * - `PE:` to exclude class and all its sublasses from results
41
- * So generally the list may contain `["base_class_name", "PE:derived_class_name"]` to
42
- * include all instances of `base_class_name` except all polymorphic instances of
43
- * `derived_class_name`.
44
- *
45
- * @pattern ^(E:|PE:)?[\w\d]+$
46
37
  */
47
38
  classNames: string[];
39
+ /**
40
+ * Should all classes specified in [[classNames]] array be handled polymorphically.
41
+ */
42
+ arePolymorphic?: boolean;
48
43
  }
49
44
  //# sourceMappingURL=ClassSpecifications.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClassSpecifications.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/rules/ClassSpecifications.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;;;OAWG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB"}
1
+ {"version":3,"file":"ClassSpecifications.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/rules/ClassSpecifications.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"ClassSpecifications.js","sourceRoot":"","sources":["../../../../src/presentation-common/rules/ClassSpecifications.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\n/**\r\n * Specification for a single ECClass\r\n * @public\r\n */\r\nexport interface SingleSchemaClassSpecification {\r\n /**\r\n * Name of ECSchema\r\n *\r\n * @pattern ^[\\w\\d]+$\r\n */\r\n schemaName: string;\r\n\r\n /**\r\n * Name of ECClass\r\n *\r\n * @pattern ^[\\w\\d]+$\r\n */\r\n className: string;\r\n}\r\n\r\n/**\r\n * Specification for multiple ECClasses that belong to\r\n * the same ECSchema.\r\n *\r\n * @public\r\n */\r\nexport interface MultiSchemaClassesSpecification {\r\n /**\r\n * Name of ECSchema\r\n *\r\n * @pattern ^[\\w\\d]+$\r\n */\r\n schemaName: string;\r\n\r\n /**\r\n * List of ECClass names.\r\n *\r\n * Each class name may be prefixed with:\r\n * - `E:` to exclude class from results\r\n * - `PE:` to exclude class and all its sublasses from results\r\n * So generally the list may contain `[\"base_class_name\", \"PE:derived_class_name\"]` to\r\n * include all instances of `base_class_name` except all polymorphic instances of\r\n * `derived_class_name`.\r\n *\r\n * @pattern ^(E:|PE:)?[\\w\\d]+$\r\n */\r\n classNames: string[];\r\n}\r\n"]}
1
+ {"version":3,"file":"ClassSpecifications.js","sourceRoot":"","sources":["../../../../src/presentation-common/rules/ClassSpecifications.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\n/**\r\n * Specification for a single ECClass\r\n * @public\r\n */\r\nexport interface SingleSchemaClassSpecification {\r\n /**\r\n * Name of ECSchema\r\n *\r\n * @pattern ^[\\w\\d]+$\r\n */\r\n schemaName: string;\r\n\r\n /**\r\n * Name of ECClass\r\n *\r\n * @pattern ^[\\w\\d]+$\r\n */\r\n className: string;\r\n}\r\n\r\n/**\r\n * Specification for multiple ECClasses that belong to\r\n * the same ECSchema.\r\n *\r\n * @public\r\n */\r\nexport interface MultiSchemaClassesSpecification {\r\n /**\r\n * Name of ECSchema\r\n *\r\n * @pattern ^[\\w\\d]+$\r\n */\r\n schemaName: string;\r\n\r\n /**\r\n * List of ECClass names.\r\n */\r\n classNames: string[];\r\n\r\n /**\r\n * Should all classes specified in [[classNames]] array be handled polymorphically.\r\n */\r\n arePolymorphic?: boolean;\r\n}\r\n"]}
@@ -19,7 +19,15 @@ export interface ContentInstancesOfSpecificClassesSpecification extends ContentS
19
19
  * List of ECClass specifications whose ECInstances should be selected.
20
20
  */
21
21
  classes: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];
22
- /** Whether to get content from instances of derived `classes`. */
22
+ /**
23
+ * List of ECClass specifications whose ECInstances should be excluded.
24
+ */
25
+ excludedClasses?: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];
26
+ /**
27
+ * Whether to get content from instances of derived `classes`.
28
+ * Acts as default value for [[classes.arePolymorphic]] and [[excludedClasses.arePolymorphic]].
29
+ * @deprecated Specify polymorphism value inside [[classes.arePolymorphic]] or [[excludedClasses.arePolymorphic]].
30
+ */
23
31
  handleInstancesPolymorphically?: boolean;
24
32
  /**
25
33
  * Whether to get content from properties of derived `classes`. If `true`, properties from `classes` with no instances
@@ -1 +1 @@
1
- {"version":3,"file":"ContentInstancesOfSpecificClassesSpecification.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAE7F;;;;;;;;GAQG;AACH,MAAM,WAAW,8CAA+C,SAAQ,wBAAwB;IAC9F,oCAAoC;IACpC,QAAQ,EAAE,yBAAyB,CAAC,iCAAiC,CAAC;IAEtE;;OAEG;IACH,OAAO,EAAE,+BAA+B,GAAG,+BAA+B,EAAE,CAAC;IAE7E,kEAAkE;IAClE,8BAA8B,CAAC,EAAE,OAAO,CAAC;IAEzC;;;OAGG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAE1C;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"ContentInstancesOfSpecificClassesSpecification.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAE7F;;;;;;;;GAQG;AACH,MAAM,WAAW,8CAA+C,SAAQ,wBAAwB;IAC9F,oCAAoC;IACpC,QAAQ,EAAE,yBAAyB,CAAC,iCAAiC,CAAC;IAEtE;;OAEG;IACH,OAAO,EAAE,+BAA+B,GAAG,+BAA+B,EAAE,CAAC;IAE7E;;OAEG;IACH,eAAe,CAAC,EAAE,+BAA+B,GAAG,+BAA+B,EAAE,CAAC;IAEtF;;;;OAIG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;IAEzC;;;OAGG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAE1C;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentInstancesOfSpecificClassesSpecification.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { MultiSchemaClassesSpecification } from \"../ClassSpecifications\";\r\nimport { ContentSpecificationBase, ContentSpecificationTypes } from \"./ContentSpecification\";\r\n\r\n/**\r\n * Creates content for ECInstance(s) of specified classes.\r\n *\r\n * **Note**: this specification doesn't rely on selection. It always returns instances no matter\r\n * what the selection is, so pre-filtering should be done in [[ContentRule]] condition and [[instanceFilter]].\r\n *\r\n * @see [More details]($docs/presentation/Content/ContentInstancesOfSpecificClasses.md)\r\n * @public\r\n */\r\nexport interface ContentInstancesOfSpecificClassesSpecification extends ContentSpecificationBase {\r\n /** Used for serializing to JSON. */\r\n specType: ContentSpecificationTypes.ContentInstancesOfSpecificClasses;\r\n\r\n /**\r\n * List of ECClass specifications whose ECInstances should be selected.\r\n */\r\n classes: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];\r\n\r\n /** Whether to get content from instances of derived `classes`. */\r\n handleInstancesPolymorphically?: boolean;\r\n\r\n /**\r\n * Whether to get content from properties of derived `classes`. If `true`, properties from `classes` with no instances\r\n * do not appear in the result set.\r\n */\r\n handlePropertiesPolymorphically?: boolean;\r\n\r\n /**\r\n * Condition for filtering instances of defined classes.\r\n *\r\n * **See:** [ECExpressions available in instance filter]($docs/presentation/Content/ECExpressions.md#instance-filter)\r\n */\r\n instanceFilter?: string;\r\n}\r\n"]}
1
+ {"version":3,"file":"ContentInstancesOfSpecificClassesSpecification.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { MultiSchemaClassesSpecification } from \"../ClassSpecifications\";\r\nimport { ContentSpecificationBase, ContentSpecificationTypes } from \"./ContentSpecification\";\r\n\r\n/**\r\n * Creates content for ECInstance(s) of specified classes.\r\n *\r\n * **Note**: this specification doesn't rely on selection. It always returns instances no matter\r\n * what the selection is, so pre-filtering should be done in [[ContentRule]] condition and [[instanceFilter]].\r\n *\r\n * @see [More details]($docs/presentation/Content/ContentInstancesOfSpecificClasses.md)\r\n * @public\r\n */\r\nexport interface ContentInstancesOfSpecificClassesSpecification extends ContentSpecificationBase {\r\n /** Used for serializing to JSON. */\r\n specType: ContentSpecificationTypes.ContentInstancesOfSpecificClasses;\r\n\r\n /**\r\n * List of ECClass specifications whose ECInstances should be selected.\r\n */\r\n classes: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];\r\n\r\n /**\r\n * List of ECClass specifications whose ECInstances should be excluded.\r\n */\r\n excludedClasses?: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];\r\n\r\n /**\r\n * Whether to get content from instances of derived `classes`.\r\n * Acts as default value for [[classes.arePolymorphic]] and [[excludedClasses.arePolymorphic]].\r\n * @deprecated Specify polymorphism value inside [[classes.arePolymorphic]] or [[excludedClasses.arePolymorphic]].\r\n */\r\n handleInstancesPolymorphically?: boolean;\r\n\r\n /**\r\n * Whether to get content from properties of derived `classes`. If `true`, properties from `classes` with no instances\r\n * do not appear in the result set.\r\n */\r\n handlePropertiesPolymorphically?: boolean;\r\n\r\n /**\r\n * Condition for filtering instances of defined classes.\r\n *\r\n * **See:** [ECExpressions available in instance filter]($docs/presentation/Content/ECExpressions.md#instance-filter)\r\n */\r\n instanceFilter?: string;\r\n}\r\n"]}
@@ -17,7 +17,13 @@ export interface InstanceNodesOfSpecificClassesSpecification extends ChildNodeSp
17
17
  */
18
18
  classes: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];
19
19
  /**
20
- * Should all [[classes]] be handled polymorphically.
20
+ * Specifications of ECClasses whose instances should be excluded.
21
+ */
22
+ excludedClasses?: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];
23
+ /**
24
+ * Whether to get instances from derived `classes`.
25
+ * Acts as default value for [[classes.arePolymorphic]] and [[excludedClasses.arePolymorphic]].
26
+ * @deprecated Specify polymorphism value inside [[classes.arePolymorphic]] or [[excludedClasses.arePolymorphic]].
21
27
  */
22
28
  arePolymorphic?: boolean;
23
29
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"InstanceNodesOfSpecificClassesSpecification.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AAEvI;;;;;GAKG;AACH,MAAM,WAAW,2CAA4C,SAAQ,0BAA0B,EAAE,kCAAkC;IACjI,oCAAoC;IACpC,QAAQ,EAAE,2BAA2B,CAAC,8BAA8B,CAAC;IAErE;;OAEG;IACH,OAAO,EAAE,+BAA+B,GAAG,+BAA+B,EAAE,CAAC;IAE7E;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"InstanceNodesOfSpecificClassesSpecification.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AAEvI;;;;;GAKG;AACH,MAAM,WAAW,2CAA4C,SAAQ,0BAA0B,EAAE,kCAAkC;IACjI,oCAAoC;IACpC,QAAQ,EAAE,2BAA2B,CAAC,8BAA8B,CAAC;IAErE;;OAEG;IACH,OAAO,EAAE,+BAA+B,GAAG,+BAA+B,EAAE,CAAC;IAE7E;;OAEG;IACH,eAAe,CAAC,EAAE,+BAA+B,GAAG,+BAA+B,EAAE,CAAC;IAEtF;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"InstanceNodesOfSpecificClassesSpecification.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { MultiSchemaClassesSpecification } from \"../ClassSpecifications\";\r\nimport { ChildNodeSpecificationBase, ChildNodeSpecificationTypes, DefaultGroupingPropertiesContainer } from \"./ChildNodeSpecification\";\r\n\r\n/**\r\n * Creates nodes for all instances of specified ECClasses.\r\n *\r\n * @see [More details]($docs/presentation/Hierarchies/InstanceNodesOfSpecificClasses.md)\r\n * @public\r\n */\r\nexport interface InstanceNodesOfSpecificClassesSpecification extends ChildNodeSpecificationBase, DefaultGroupingPropertiesContainer {\r\n /** Used for serializing to JSON. */\r\n specType: ChildNodeSpecificationTypes.InstanceNodesOfSpecificClasses;\r\n\r\n /**\r\n * Specifications of ECClasses whose instances should be returned.\r\n */\r\n classes: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];\r\n\r\n /**\r\n * Should all [[classes]] be handled polymorphically.\r\n */\r\n arePolymorphic?: boolean;\r\n\r\n /**\r\n * Condition for filtering instances of defined classes.\r\n *\r\n * **See:** [ECExpressions Available in InstanceFilter]($docs/presentation/Hierarchies/ECExpressions.md#instance-filter).\r\n */\r\n instanceFilter?: string;\r\n}\r\n"]}
1
+ {"version":3,"file":"InstanceNodesOfSpecificClassesSpecification.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { MultiSchemaClassesSpecification } from \"../ClassSpecifications\";\r\nimport { ChildNodeSpecificationBase, ChildNodeSpecificationTypes, DefaultGroupingPropertiesContainer } from \"./ChildNodeSpecification\";\r\n\r\n/**\r\n * Creates nodes for all instances of specified ECClasses.\r\n *\r\n * @see [More details]($docs/presentation/Hierarchies/InstanceNodesOfSpecificClasses.md)\r\n * @public\r\n */\r\nexport interface InstanceNodesOfSpecificClassesSpecification extends ChildNodeSpecificationBase, DefaultGroupingPropertiesContainer {\r\n /** Used for serializing to JSON. */\r\n specType: ChildNodeSpecificationTypes.InstanceNodesOfSpecificClasses;\r\n\r\n /**\r\n * Specifications of ECClasses whose instances should be returned.\r\n */\r\n classes: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];\r\n\r\n /**\r\n * Specifications of ECClasses whose instances should be excluded.\r\n */\r\n excludedClasses?: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];\r\n\r\n /**\r\n * Whether to get instances from derived `classes`.\r\n * Acts as default value for [[classes.arePolymorphic]] and [[excludedClasses.arePolymorphic]].\r\n * @deprecated Specify polymorphism value inside [[classes.arePolymorphic]] or [[excludedClasses.arePolymorphic]].\r\n */\r\n arePolymorphic?: boolean;\r\n\r\n /**\r\n * Condition for filtering instances of defined classes.\r\n *\r\n * **See:** [ECExpressions Available in InstanceFilter]($docs/presentation/Hierarchies/ECExpressions.md#instance-filter).\r\n */\r\n instanceFilter?: string;\r\n}\r\n"]}
@@ -34,16 +34,11 @@ export interface MultiSchemaClassesSpecification {
34
34
  schemaName: string;
35
35
  /**
36
36
  * List of ECClass names.
37
- *
38
- * Each class name may be prefixed with:
39
- * - `E:` to exclude class from results
40
- * - `PE:` to exclude class and all its sublasses from results
41
- * So generally the list may contain `["base_class_name", "PE:derived_class_name"]` to
42
- * include all instances of `base_class_name` except all polymorphic instances of
43
- * `derived_class_name`.
44
- *
45
- * @pattern ^(E:|PE:)?[\w\d]+$
46
37
  */
47
38
  classNames: string[];
39
+ /**
40
+ * Should all classes specified in [[classNames]] array be handled polymorphically.
41
+ */
42
+ arePolymorphic?: boolean;
48
43
  }
49
44
  //# sourceMappingURL=ClassSpecifications.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClassSpecifications.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/rules/ClassSpecifications.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;;;OAWG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB"}
1
+ {"version":3,"file":"ClassSpecifications.d.ts","sourceRoot":"","sources":["../../../../src/presentation-common/rules/ClassSpecifications.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"ClassSpecifications.js","sourceRoot":"","sources":["../../../../src/presentation-common/rules/ClassSpecifications.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\n/**\r\n * Specification for a single ECClass\r\n * @public\r\n */\r\nexport interface SingleSchemaClassSpecification {\r\n /**\r\n * Name of ECSchema\r\n *\r\n * @pattern ^[\\w\\d]+$\r\n */\r\n schemaName: string;\r\n\r\n /**\r\n * Name of ECClass\r\n *\r\n * @pattern ^[\\w\\d]+$\r\n */\r\n className: string;\r\n}\r\n\r\n/**\r\n * Specification for multiple ECClasses that belong to\r\n * the same ECSchema.\r\n *\r\n * @public\r\n */\r\nexport interface MultiSchemaClassesSpecification {\r\n /**\r\n * Name of ECSchema\r\n *\r\n * @pattern ^[\\w\\d]+$\r\n */\r\n schemaName: string;\r\n\r\n /**\r\n * List of ECClass names.\r\n *\r\n * Each class name may be prefixed with:\r\n * - `E:` to exclude class from results\r\n * - `PE:` to exclude class and all its sublasses from results\r\n * So generally the list may contain `[\"base_class_name\", \"PE:derived_class_name\"]` to\r\n * include all instances of `base_class_name` except all polymorphic instances of\r\n * `derived_class_name`.\r\n *\r\n * @pattern ^(E:|PE:)?[\\w\\d]+$\r\n */\r\n classNames: string[];\r\n}\r\n"]}
1
+ {"version":3,"file":"ClassSpecifications.js","sourceRoot":"","sources":["../../../../src/presentation-common/rules/ClassSpecifications.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\n/**\r\n * Specification for a single ECClass\r\n * @public\r\n */\r\nexport interface SingleSchemaClassSpecification {\r\n /**\r\n * Name of ECSchema\r\n *\r\n * @pattern ^[\\w\\d]+$\r\n */\r\n schemaName: string;\r\n\r\n /**\r\n * Name of ECClass\r\n *\r\n * @pattern ^[\\w\\d]+$\r\n */\r\n className: string;\r\n}\r\n\r\n/**\r\n * Specification for multiple ECClasses that belong to\r\n * the same ECSchema.\r\n *\r\n * @public\r\n */\r\nexport interface MultiSchemaClassesSpecification {\r\n /**\r\n * Name of ECSchema\r\n *\r\n * @pattern ^[\\w\\d]+$\r\n */\r\n schemaName: string;\r\n\r\n /**\r\n * List of ECClass names.\r\n */\r\n classNames: string[];\r\n\r\n /**\r\n * Should all classes specified in [[classNames]] array be handled polymorphically.\r\n */\r\n arePolymorphic?: boolean;\r\n}\r\n"]}
@@ -19,7 +19,15 @@ export interface ContentInstancesOfSpecificClassesSpecification extends ContentS
19
19
  * List of ECClass specifications whose ECInstances should be selected.
20
20
  */
21
21
  classes: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];
22
- /** Whether to get content from instances of derived `classes`. */
22
+ /**
23
+ * List of ECClass specifications whose ECInstances should be excluded.
24
+ */
25
+ excludedClasses?: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];
26
+ /**
27
+ * Whether to get content from instances of derived `classes`.
28
+ * Acts as default value for [[classes.arePolymorphic]] and [[excludedClasses.arePolymorphic]].
29
+ * @deprecated Specify polymorphism value inside [[classes.arePolymorphic]] or [[excludedClasses.arePolymorphic]].
30
+ */
23
31
  handleInstancesPolymorphically?: boolean;
24
32
  /**
25
33
  * Whether to get content from properties of derived `classes`. If `true`, properties from `classes` with no instances
@@ -1 +1 @@
1
- {"version":3,"file":"ContentInstancesOfSpecificClassesSpecification.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAE7F;;;;;;;;GAQG;AACH,MAAM,WAAW,8CAA+C,SAAQ,wBAAwB;IAC9F,oCAAoC;IACpC,QAAQ,EAAE,yBAAyB,CAAC,iCAAiC,CAAC;IAEtE;;OAEG;IACH,OAAO,EAAE,+BAA+B,GAAG,+BAA+B,EAAE,CAAC;IAE7E,kEAAkE;IAClE,8BAA8B,CAAC,EAAE,OAAO,CAAC;IAEzC;;;OAGG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAE1C;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"ContentInstancesOfSpecificClassesSpecification.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAE7F;;;;;;;;GAQG;AACH,MAAM,WAAW,8CAA+C,SAAQ,wBAAwB;IAC9F,oCAAoC;IACpC,QAAQ,EAAE,yBAAyB,CAAC,iCAAiC,CAAC;IAEtE;;OAEG;IACH,OAAO,EAAE,+BAA+B,GAAG,+BAA+B,EAAE,CAAC;IAE7E;;OAEG;IACH,eAAe,CAAC,EAAE,+BAA+B,GAAG,+BAA+B,EAAE,CAAC;IAEtF;;;;OAIG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;IAEzC;;;OAGG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAE1C;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentInstancesOfSpecificClassesSpecification.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { MultiSchemaClassesSpecification } from \"../ClassSpecifications\";\r\nimport { ContentSpecificationBase, ContentSpecificationTypes } from \"./ContentSpecification\";\r\n\r\n/**\r\n * Creates content for ECInstance(s) of specified classes.\r\n *\r\n * **Note**: this specification doesn't rely on selection. It always returns instances no matter\r\n * what the selection is, so pre-filtering should be done in [[ContentRule]] condition and [[instanceFilter]].\r\n *\r\n * @see [More details]($docs/presentation/Content/ContentInstancesOfSpecificClasses.md)\r\n * @public\r\n */\r\nexport interface ContentInstancesOfSpecificClassesSpecification extends ContentSpecificationBase {\r\n /** Used for serializing to JSON. */\r\n specType: ContentSpecificationTypes.ContentInstancesOfSpecificClasses;\r\n\r\n /**\r\n * List of ECClass specifications whose ECInstances should be selected.\r\n */\r\n classes: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];\r\n\r\n /** Whether to get content from instances of derived `classes`. */\r\n handleInstancesPolymorphically?: boolean;\r\n\r\n /**\r\n * Whether to get content from properties of derived `classes`. If `true`, properties from `classes` with no instances\r\n * do not appear in the result set.\r\n */\r\n handlePropertiesPolymorphically?: boolean;\r\n\r\n /**\r\n * Condition for filtering instances of defined classes.\r\n *\r\n * **See:** [ECExpressions available in instance filter]($docs/presentation/Content/ECExpressions.md#instance-filter)\r\n */\r\n instanceFilter?: string;\r\n}\r\n"]}
1
+ {"version":3,"file":"ContentInstancesOfSpecificClassesSpecification.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { MultiSchemaClassesSpecification } from \"../ClassSpecifications\";\r\nimport { ContentSpecificationBase, ContentSpecificationTypes } from \"./ContentSpecification\";\r\n\r\n/**\r\n * Creates content for ECInstance(s) of specified classes.\r\n *\r\n * **Note**: this specification doesn't rely on selection. It always returns instances no matter\r\n * what the selection is, so pre-filtering should be done in [[ContentRule]] condition and [[instanceFilter]].\r\n *\r\n * @see [More details]($docs/presentation/Content/ContentInstancesOfSpecificClasses.md)\r\n * @public\r\n */\r\nexport interface ContentInstancesOfSpecificClassesSpecification extends ContentSpecificationBase {\r\n /** Used for serializing to JSON. */\r\n specType: ContentSpecificationTypes.ContentInstancesOfSpecificClasses;\r\n\r\n /**\r\n * List of ECClass specifications whose ECInstances should be selected.\r\n */\r\n classes: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];\r\n\r\n /**\r\n * List of ECClass specifications whose ECInstances should be excluded.\r\n */\r\n excludedClasses?: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];\r\n\r\n /**\r\n * Whether to get content from instances of derived `classes`.\r\n * Acts as default value for [[classes.arePolymorphic]] and [[excludedClasses.arePolymorphic]].\r\n * @deprecated Specify polymorphism value inside [[classes.arePolymorphic]] or [[excludedClasses.arePolymorphic]].\r\n */\r\n handleInstancesPolymorphically?: boolean;\r\n\r\n /**\r\n * Whether to get content from properties of derived `classes`. If `true`, properties from `classes` with no instances\r\n * do not appear in the result set.\r\n */\r\n handlePropertiesPolymorphically?: boolean;\r\n\r\n /**\r\n * Condition for filtering instances of defined classes.\r\n *\r\n * **See:** [ECExpressions available in instance filter]($docs/presentation/Content/ECExpressions.md#instance-filter)\r\n */\r\n instanceFilter?: string;\r\n}\r\n"]}
@@ -17,7 +17,13 @@ export interface InstanceNodesOfSpecificClassesSpecification extends ChildNodeSp
17
17
  */
18
18
  classes: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];
19
19
  /**
20
- * Should all [[classes]] be handled polymorphically.
20
+ * Specifications of ECClasses whose instances should be excluded.
21
+ */
22
+ excludedClasses?: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];
23
+ /**
24
+ * Whether to get instances from derived `classes`.
25
+ * Acts as default value for [[classes.arePolymorphic]] and [[excludedClasses.arePolymorphic]].
26
+ * @deprecated Specify polymorphism value inside [[classes.arePolymorphic]] or [[excludedClasses.arePolymorphic]].
21
27
  */
22
28
  arePolymorphic?: boolean;
23
29
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"InstanceNodesOfSpecificClassesSpecification.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AAEvI;;;;;GAKG;AACH,MAAM,WAAW,2CAA4C,SAAQ,0BAA0B,EAAE,kCAAkC;IACjI,oCAAoC;IACpC,QAAQ,EAAE,2BAA2B,CAAC,8BAA8B,CAAC;IAErE;;OAEG;IACH,OAAO,EAAE,+BAA+B,GAAG,+BAA+B,EAAE,CAAC;IAE7E;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"InstanceNodesOfSpecificClassesSpecification.d.ts","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AAEvI;;;;;GAKG;AACH,MAAM,WAAW,2CAA4C,SAAQ,0BAA0B,EAAE,kCAAkC;IACjI,oCAAoC;IACpC,QAAQ,EAAE,2BAA2B,CAAC,8BAA8B,CAAC;IAErE;;OAEG;IACH,OAAO,EAAE,+BAA+B,GAAG,+BAA+B,EAAE,CAAC;IAE7E;;OAEG;IACH,eAAe,CAAC,EAAE,+BAA+B,GAAG,+BAA+B,EAAE,CAAC;IAEtF;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"InstanceNodesOfSpecificClassesSpecification.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { MultiSchemaClassesSpecification } from \"../ClassSpecifications\";\r\nimport { ChildNodeSpecificationBase, ChildNodeSpecificationTypes, DefaultGroupingPropertiesContainer } from \"./ChildNodeSpecification\";\r\n\r\n/**\r\n * Creates nodes for all instances of specified ECClasses.\r\n *\r\n * @see [More details]($docs/presentation/Hierarchies/InstanceNodesOfSpecificClasses.md)\r\n * @public\r\n */\r\nexport interface InstanceNodesOfSpecificClassesSpecification extends ChildNodeSpecificationBase, DefaultGroupingPropertiesContainer {\r\n /** Used for serializing to JSON. */\r\n specType: ChildNodeSpecificationTypes.InstanceNodesOfSpecificClasses;\r\n\r\n /**\r\n * Specifications of ECClasses whose instances should be returned.\r\n */\r\n classes: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];\r\n\r\n /**\r\n * Should all [[classes]] be handled polymorphically.\r\n */\r\n arePolymorphic?: boolean;\r\n\r\n /**\r\n * Condition for filtering instances of defined classes.\r\n *\r\n * **See:** [ECExpressions Available in InstanceFilter]($docs/presentation/Hierarchies/ECExpressions.md#instance-filter).\r\n */\r\n instanceFilter?: string;\r\n}\r\n"]}
1
+ {"version":3,"file":"InstanceNodesOfSpecificClassesSpecification.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module PresentationRules\r\n */\r\n\r\nimport { MultiSchemaClassesSpecification } from \"../ClassSpecifications\";\r\nimport { ChildNodeSpecificationBase, ChildNodeSpecificationTypes, DefaultGroupingPropertiesContainer } from \"./ChildNodeSpecification\";\r\n\r\n/**\r\n * Creates nodes for all instances of specified ECClasses.\r\n *\r\n * @see [More details]($docs/presentation/Hierarchies/InstanceNodesOfSpecificClasses.md)\r\n * @public\r\n */\r\nexport interface InstanceNodesOfSpecificClassesSpecification extends ChildNodeSpecificationBase, DefaultGroupingPropertiesContainer {\r\n /** Used for serializing to JSON. */\r\n specType: ChildNodeSpecificationTypes.InstanceNodesOfSpecificClasses;\r\n\r\n /**\r\n * Specifications of ECClasses whose instances should be returned.\r\n */\r\n classes: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];\r\n\r\n /**\r\n * Specifications of ECClasses whose instances should be excluded.\r\n */\r\n excludedClasses?: MultiSchemaClassesSpecification | MultiSchemaClassesSpecification[];\r\n\r\n /**\r\n * Whether to get instances from derived `classes`.\r\n * Acts as default value for [[classes.arePolymorphic]] and [[excludedClasses.arePolymorphic]].\r\n * @deprecated Specify polymorphism value inside [[classes.arePolymorphic]] or [[excludedClasses.arePolymorphic]].\r\n */\r\n arePolymorphic?: boolean;\r\n\r\n /**\r\n * Condition for filtering instances of defined classes.\r\n *\r\n * **See:** [ECExpressions Available in InstanceFilter]($docs/presentation/Hierarchies/ECExpressions.md#instance-filter).\r\n */\r\n instanceFilter?: string;\r\n}\r\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/presentation-common",
3
- "version": "3.0.0-dev.122",
3
+ "version": "3.0.0-dev.126",
4
4
  "description": "Common pieces for iModel.js presentation packages",
5
5
  "imodeljsSharedLibrary": true,
6
6
  "license": "MIT",
@@ -22,16 +22,16 @@
22
22
  "module": "lib/esm/presentation-common.js",
23
23
  "typings": "lib/cjs/presentation-common",
24
24
  "peerDependencies": {
25
- "@itwin/core-bentley": "^3.0.0-dev.122",
26
- "@itwin/core-common": "^3.0.0-dev.122",
27
- "@itwin/core-quantity": "^3.0.0-dev.122"
25
+ "@itwin/core-bentley": "^3.0.0-dev.126",
26
+ "@itwin/core-common": "^3.0.0-dev.126",
27
+ "@itwin/core-quantity": "^3.0.0-dev.126"
28
28
  },
29
29
  "devDependencies": {
30
- "@itwin/core-bentley": "3.0.0-dev.122",
31
- "@itwin/build-tools": "3.0.0-dev.122",
32
- "@itwin/eslint-plugin": "3.0.0-dev.122",
33
- "@itwin/core-common": "3.0.0-dev.122",
34
- "@itwin/core-quantity": "3.0.0-dev.122",
30
+ "@itwin/core-bentley": "3.0.0-dev.126",
31
+ "@itwin/build-tools": "3.0.0-dev.126",
32
+ "@itwin/eslint-plugin": "3.0.0-dev.126",
33
+ "@itwin/core-common": "3.0.0-dev.126",
34
+ "@itwin/core-quantity": "3.0.0-dev.126",
35
35
  "@types/chai": "^4.1.4",
36
36
  "@types/chai-as-promised": "^7",
37
37
  "@types/chai-jest-snapshot": "^1.3.0",
@@ -46,7 +46,7 @@
46
46
  "chai-as-promised": "^7",
47
47
  "chai-jest-snapshot": "^2.0.0",
48
48
  "chai-subset": "1.6.0",
49
- "cpx": "^1.5.0",
49
+ "cpx2": "^3.0.0",
50
50
  "cross-env": "^5.1.4",
51
51
  "deep-equal": "^1",
52
52
  "eslint": "^7.11.0",