@itwin/presentation-common 5.1.0-dev.5 → 5.1.0-dev.52

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 (77) hide show
  1. package/CHANGELOG.md +84 -1
  2. package/Ruleset.schema.json +3 -3
  3. package/lib/cjs/presentation-common/AsyncTasks.js.map +1 -1
  4. package/lib/cjs/presentation-common/EC.d.ts.map +1 -1
  5. package/lib/cjs/presentation-common/EC.js +9 -2
  6. package/lib/cjs/presentation-common/EC.js.map +1 -1
  7. package/lib/cjs/presentation-common/Error.d.ts +1 -1
  8. package/lib/cjs/presentation-common/Error.js +1 -1
  9. package/lib/cjs/presentation-common/Error.js.map +1 -1
  10. package/lib/cjs/presentation-common/KoqPropertyValueFormatter.d.ts +24 -2
  11. package/lib/cjs/presentation-common/KoqPropertyValueFormatter.d.ts.map +1 -1
  12. package/lib/cjs/presentation-common/KoqPropertyValueFormatter.js +97 -104
  13. package/lib/cjs/presentation-common/KoqPropertyValueFormatter.js.map +1 -1
  14. package/lib/cjs/presentation-common/PresentationManagerOptions.d.ts +3 -3
  15. package/lib/cjs/presentation-common/PresentationManagerOptions.js.map +1 -1
  16. package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts +19 -19
  17. package/lib/cjs/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  18. package/lib/cjs/presentation-common/PresentationRpcInterface.js +17 -17
  19. package/lib/cjs/presentation-common/PresentationRpcInterface.js.map +1 -1
  20. package/lib/cjs/presentation-common/RegisteredRuleset.d.ts +1 -1
  21. package/lib/cjs/presentation-common/RegisteredRuleset.d.ts.map +1 -1
  22. package/lib/cjs/presentation-common/RegisteredRuleset.js +1 -1
  23. package/lib/cjs/presentation-common/RegisteredRuleset.js.map +1 -1
  24. package/lib/cjs/presentation-common/content/Fields.d.ts +14 -14
  25. package/lib/cjs/presentation-common/content/Fields.js +9 -9
  26. package/lib/cjs/presentation-common/content/Fields.js.map +1 -1
  27. package/lib/cjs/presentation-common/content/Item.d.ts +2 -2
  28. package/lib/cjs/presentation-common/content/Item.d.ts.map +1 -1
  29. package/lib/cjs/presentation-common/content/Item.js.map +1 -1
  30. package/lib/cjs/presentation-common/content/Value.d.ts +1 -1
  31. package/lib/cjs/presentation-common/content/Value.js.map +1 -1
  32. package/lib/cjs/presentation-common/hierarchy/Node.d.ts +1 -1
  33. package/lib/cjs/presentation-common/hierarchy/Node.js.map +1 -1
  34. package/lib/cjs/presentation-common/rules/customization/GroupingRule.d.ts +2 -2
  35. package/lib/cjs/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  36. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +1 -1
  37. package/lib/cjs/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  38. package/lib/cjs/presentation-common/selection/SelectionScope.d.ts +3 -3
  39. package/lib/cjs/presentation-common/selection/SelectionScope.js.map +1 -1
  40. package/lib/esm/presentation-common/AsyncTasks.js.map +1 -1
  41. package/lib/esm/presentation-common/EC.d.ts.map +1 -1
  42. package/lib/esm/presentation-common/EC.js +9 -2
  43. package/lib/esm/presentation-common/EC.js.map +1 -1
  44. package/lib/esm/presentation-common/Error.d.ts +1 -1
  45. package/lib/esm/presentation-common/Error.js +1 -1
  46. package/lib/esm/presentation-common/Error.js.map +1 -1
  47. package/lib/esm/presentation-common/KoqPropertyValueFormatter.d.ts +24 -2
  48. package/lib/esm/presentation-common/KoqPropertyValueFormatter.d.ts.map +1 -1
  49. package/lib/esm/presentation-common/KoqPropertyValueFormatter.js +97 -104
  50. package/lib/esm/presentation-common/KoqPropertyValueFormatter.js.map +1 -1
  51. package/lib/esm/presentation-common/PresentationManagerOptions.d.ts +3 -3
  52. package/lib/esm/presentation-common/PresentationManagerOptions.js.map +1 -1
  53. package/lib/esm/presentation-common/PresentationRpcInterface.d.ts +19 -19
  54. package/lib/esm/presentation-common/PresentationRpcInterface.d.ts.map +1 -1
  55. package/lib/esm/presentation-common/PresentationRpcInterface.js +17 -17
  56. package/lib/esm/presentation-common/PresentationRpcInterface.js.map +1 -1
  57. package/lib/esm/presentation-common/RegisteredRuleset.d.ts +1 -1
  58. package/lib/esm/presentation-common/RegisteredRuleset.d.ts.map +1 -1
  59. package/lib/esm/presentation-common/RegisteredRuleset.js +1 -1
  60. package/lib/esm/presentation-common/RegisteredRuleset.js.map +1 -1
  61. package/lib/esm/presentation-common/content/Fields.d.ts +14 -14
  62. package/lib/esm/presentation-common/content/Fields.js +9 -9
  63. package/lib/esm/presentation-common/content/Fields.js.map +1 -1
  64. package/lib/esm/presentation-common/content/Item.d.ts +2 -2
  65. package/lib/esm/presentation-common/content/Item.d.ts.map +1 -1
  66. package/lib/esm/presentation-common/content/Item.js.map +1 -1
  67. package/lib/esm/presentation-common/content/Value.d.ts +1 -1
  68. package/lib/esm/presentation-common/content/Value.js.map +1 -1
  69. package/lib/esm/presentation-common/hierarchy/Node.d.ts +1 -1
  70. package/lib/esm/presentation-common/hierarchy/Node.js.map +1 -1
  71. package/lib/esm/presentation-common/rules/customization/GroupingRule.d.ts +2 -2
  72. package/lib/esm/presentation-common/rules/customization/GroupingRule.js.map +1 -1
  73. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.d.ts +1 -1
  74. package/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.js.map +1 -1
  75. package/lib/esm/presentation-common/selection/SelectionScope.d.ts +3 -3
  76. package/lib/esm/presentation-common/selection/SelectionScope.js.map +1 -1
  77. package/package.json +16 -12
@@ -1 +1 @@
1
- {"version":3,"file":"CustomNodeSpecification.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/CustomNodeSpecification.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG","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 *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PresentationRules\n */\n\nimport { ChildNodeSpecificationBase } from \"./ChildNodeSpecification.js\";\n\n/**\n * Returns a static custom-defined node that's not based on an ECInstance.\n *\n * @see [Custom node specification reference documentation page]($docs/presentation/hierarchies/CustomNode.md)\n * @public\n */\nexport interface CustomNodeSpecification extends ChildNodeSpecificationBase {\n /** Used for serializing to JSON. */\n specType: \"CustomNode\";\n\n /** Specifies node type, which is assigned to node's key. */\n type: string;\n\n /**\n * Specifies node label. This is a string value that may be [localized]($docs/presentation/advanced/Localization.md).\n */\n label: string;\n\n /**\n * Specifies the value of [[Node.description]] property, which is a string that may\n * be [localized]($docs/presentation/advanced/Localization.md). UI component displaying the node may choose\n * whether and how to surface this information to users.\n */\n description?: string;\n\n /**\n * Specifies node's image ID. If set, the ID is assigned to [[Node.imageId]] and it's\n * up to the UI component to decide what to do with it.\n *\n * @deprecated in 5.x. Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.\n */\n imageId?: string;\n}\n"]}
1
+ {"version":3,"file":"CustomNodeSpecification.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/hierarchy/CustomNodeSpecification.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG","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 *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PresentationRules\n */\n\nimport { ChildNodeSpecificationBase } from \"./ChildNodeSpecification.js\";\n\n/**\n * Returns a static custom-defined node that's not based on an ECInstance.\n *\n * @see [Custom node specification reference documentation page]($docs/presentation/hierarchies/CustomNode.md)\n * @public\n */\nexport interface CustomNodeSpecification extends ChildNodeSpecificationBase {\n /** Used for serializing to JSON. */\n specType: \"CustomNode\";\n\n /** Specifies node type, which is assigned to node's key. */\n type: string;\n\n /**\n * Specifies node label. This is a string value that may be [localized]($docs/presentation/advanced/Localization.md).\n */\n label: string;\n\n /**\n * Specifies the value of [[Node.description]] property, which is a string that may\n * be [localized]($docs/presentation/advanced/Localization.md). UI component displaying the node may choose\n * whether and how to surface this information to users.\n */\n description?: string;\n\n /**\n * Specifies node's image ID. If set, the ID is assigned to [[Node.imageId]] and it's\n * up to the UI component to decide what to do with it.\n *\n * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/customization/ExtendedDataUsage.md) for more details.\n */\n imageId?: string;\n}\n"]}
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Data structure that describes a [selection scope]($docs/presentation/unified-selection/index#selection-scopes).
6
6
  * @public
7
- * @deprecated in 5.0. Use `Props<typeof computeSelection>["scope"]` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.
7
+ * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use `Props<typeof computeSelection>["scope"]` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.
8
8
  */
9
9
  export interface SelectionScope {
10
10
  /** Unique ID of the selection scope */
@@ -17,7 +17,7 @@ export interface SelectionScope {
17
17
  /**
18
18
  * A data structure that defines properties for applying element selection scope.
19
19
  * @public
20
- * @deprecated in 5.0. Use `Props<typeof computeSelection>["scope"]` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.
20
+ * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use `Props<typeof computeSelection>["scope"]` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.
21
21
  */
22
22
  export interface ElementSelectionScopeProps {
23
23
  /** Identifies this as the "element" selection scope */
@@ -34,7 +34,7 @@ export interface ElementSelectionScopeProps {
34
34
  /**
35
35
  * A data structure that defines properties for applying a selection scope.
36
36
  * @public
37
- * @deprecated in 5.0. Use `Props<typeof computeSelection>["scope"]` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.
37
+ * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use `Props<typeof computeSelection>["scope"]` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.
38
38
  */
39
39
  export type SelectionScopeProps = ElementSelectionScopeProps | {
40
40
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectionScope.js","sourceRoot":"","sources":["../../../../src/presentation-common/selection/SelectionScope.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG,qDAAqD;AACrD;;GAEG","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 *--------------------------------------------------------------------------------------------*/\n/* eslint-disable @typescript-eslint/no-deprecated */\n/** @packageDocumentation\n * @module UnifiedSelection\n */\n\n/**\n * Data structure that describes a [selection scope]($docs/presentation/unified-selection/index#selection-scopes).\n * @public\n * @deprecated in 5.0. Use `Props<typeof computeSelection>[\"scope\"]` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.\n */\nexport interface SelectionScope {\n /** Unique ID of the selection scope */\n id: string;\n /** Label */\n label: string;\n /** Description */\n description?: string;\n}\n\n/**\n * A data structure that defines properties for applying element selection scope.\n * @public\n * @deprecated in 5.0. Use `Props<typeof computeSelection>[\"scope\"]` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.\n */\nexport interface ElementSelectionScopeProps {\n /** Identifies this as the \"element\" selection scope */\n id: \"element\";\n /**\n * Specifies how far \"up\" we should walk to find the target element. When not specified or `0`,\n * the target element matches the request element. When `1`, the target element matches the direct parent element.\n * When `2`, the target element is parent of the parent element and so on. In all situations when this is `> 0`,\n * we're not walking further than the last existing element, for example when `ancestorLevel = 1` (direct parent\n * element is requested), but the request element doesn't have a parent, the request element is returned as the result.\n */\n ancestorLevel?: number;\n}\n\n/**\n * A data structure that defines properties for applying a selection scope.\n * @public\n * @deprecated in 5.0. Use `Props<typeof computeSelection>[\"scope\"]` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.\n */\nexport type SelectionScopeProps = ElementSelectionScopeProps | { id: string };\n"]}
1
+ {"version":3,"file":"SelectionScope.js","sourceRoot":"","sources":["../../../../src/presentation-common/selection/SelectionScope.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG,qDAAqD;AACrD;;GAEG","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 *--------------------------------------------------------------------------------------------*/\n/* eslint-disable @typescript-eslint/no-deprecated */\n/** @packageDocumentation\n * @module UnifiedSelection\n */\n\n/**\n * Data structure that describes a [selection scope]($docs/presentation/unified-selection/index#selection-scopes).\n * @public\n * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use `Props<typeof computeSelection>[\"scope\"]` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.\n */\nexport interface SelectionScope {\n /** Unique ID of the selection scope */\n id: string;\n /** Label */\n label: string;\n /** Description */\n description?: string;\n}\n\n/**\n * A data structure that defines properties for applying element selection scope.\n * @public\n * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use `Props<typeof computeSelection>[\"scope\"]` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.\n */\nexport interface ElementSelectionScopeProps {\n /** Identifies this as the \"element\" selection scope */\n id: \"element\";\n /**\n * Specifies how far \"up\" we should walk to find the target element. When not specified or `0`,\n * the target element matches the request element. When `1`, the target element matches the direct parent element.\n * When `2`, the target element is parent of the parent element and so on. In all situations when this is `> 0`,\n * we're not walking further than the last existing element, for example when `ancestorLevel = 1` (direct parent\n * element is requested), but the request element doesn't have a parent, the request element is returned as the result.\n */\n ancestorLevel?: number;\n}\n\n/**\n * A data structure that defines properties for applying a selection scope.\n * @public\n * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use `Props<typeof computeSelection>[\"scope\"]` from [@itwin/unified-selection](https://github.com/iTwin/presentation/blob/master/packages/unified-selection/README.md#selection-scopes) package instead.\n */\nexport type SelectionScopeProps = ElementSelectionScopeProps | { id: string };\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/presentation-common",
3
- "version": "5.1.0-dev.5",
3
+ "version": "5.1.0-dev.52",
4
4
  "description": "Common pieces for iModel.js presentation packages",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -39,13 +39,17 @@
39
39
  "import": "./lib/assets/locales/*",
40
40
  "require": "./lib/assets/locales/*"
41
41
  },
42
- "./package.json": "./package.json"
42
+ "./package.json": "./package.json",
43
+ "./Ruleset.schema.json": "./Ruleset.schema.json"
44
+ },
45
+ "dependencies": {
46
+ "@itwin/presentation-shared": "^1.2.1"
43
47
  },
44
48
  "peerDependencies": {
45
- "@itwin/core-quantity": "5.1.0-dev.5",
46
- "@itwin/core-bentley": "5.1.0-dev.5",
47
- "@itwin/core-common": "5.1.0-dev.5",
48
- "@itwin/ecschema-metadata": "5.1.0-dev.5"
49
+ "@itwin/core-bentley": "5.1.0-dev.52",
50
+ "@itwin/core-common": "5.1.0-dev.52",
51
+ "@itwin/core-quantity": "5.1.0-dev.52",
52
+ "@itwin/ecschema-metadata": "5.1.0-dev.52"
49
53
  },
50
54
  "devDependencies": {
51
55
  "@itwin/eslint-plugin": "5.0.0-dev.1",
@@ -77,12 +81,12 @@
77
81
  "typescript": "~5.6.2",
78
82
  "typescript-json-schema": "^0.55.0",
79
83
  "yargs": "^17.4.0",
80
- "@itwin/build-tools": "5.1.0-dev.5",
81
- "@itwin/core-bentley": "5.1.0-dev.5",
82
- "@itwin/core-quantity": "5.1.0-dev.5",
83
- "internal-tools": "3.0.0-dev.69",
84
- "@itwin/core-common": "5.1.0-dev.5",
85
- "@itwin/ecschema-metadata": "5.1.0-dev.5"
84
+ "@itwin/build-tools": "5.1.0-dev.52",
85
+ "@itwin/core-bentley": "5.1.0-dev.52",
86
+ "@itwin/ecschema-metadata": "5.1.0-dev.52",
87
+ "@itwin/core-quantity": "5.1.0-dev.52",
88
+ "@itwin/core-common": "5.1.0-dev.52",
89
+ "internal-tools": "3.0.0-dev.69"
86
90
  },
87
91
  "scripts": {
88
92
  "build": "npm run -s ruleset-json-schema && npm run -s build:assets && npm run -s build:public && npm run -s build:cjs && npm run -s build:esm",