@itwin/presentation-common 3.2.0-dev.1 → 3.2.0-dev.12

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 (72) hide show
  1. package/CHANGELOG.md +6 -1
  2. package/lib/cjs/presentation-common/content/ContentTraverser.js +2 -2
  3. package/lib/cjs/presentation-common/content/ContentTraverser.js.map +1 -1
  4. package/lib/cjs/presentation-common/content/Descriptor.d.ts +4 -1
  5. package/lib/cjs/presentation-common/content/Descriptor.d.ts.map +1 -1
  6. package/lib/cjs/presentation-common/content/Descriptor.js +4 -1
  7. package/lib/cjs/presentation-common/content/Descriptor.js.map +1 -1
  8. package/lib/cjs/presentation-common/content/Item.d.ts +5 -1
  9. package/lib/cjs/presentation-common/content/Item.d.ts.map +1 -1
  10. package/lib/cjs/presentation-common/content/Item.js +1 -1
  11. package/lib/cjs/presentation-common/content/Item.js.map +1 -1
  12. package/lib/cjs/presentation-common/hierarchy/Node.d.ts +35 -7
  13. package/lib/cjs/presentation-common/hierarchy/Node.d.ts.map +1 -1
  14. package/lib/cjs/presentation-common/hierarchy/Node.js.map +1 -1
  15. package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.d.ts +1 -1
  16. package/lib/cjs/presentation-common/rules/RelatedInstanceSpecification.js.map +1 -1
  17. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.d.ts +2 -2
  18. package/lib/cjs/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
  19. package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts +4 -1
  20. package/lib/cjs/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
  21. package/lib/cjs/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  22. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts +1 -0
  23. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.d.ts.map +1 -1
  24. package/lib/cjs/presentation-common/rules/customization/CheckBoxRule.js.map +1 -1
  25. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.d.ts +5 -2
  26. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.d.ts.map +1 -1
  27. package/lib/cjs/presentation-common/rules/customization/CustomizationRule.js.map +1 -1
  28. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts +1 -0
  29. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.d.ts.map +1 -1
  30. package/lib/cjs/presentation-common/rules/customization/ImageIdOverride.js.map +1 -1
  31. package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts +1 -0
  32. package/lib/cjs/presentation-common/rules/customization/LabelOverride.d.ts.map +1 -1
  33. package/lib/cjs/presentation-common/rules/customization/LabelOverride.js.map +1 -1
  34. package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts +1 -0
  35. package/lib/cjs/presentation-common/rules/customization/StyleOverride.d.ts.map +1 -1
  36. package/lib/cjs/presentation-common/rules/customization/StyleOverride.js.map +1 -1
  37. package/lib/esm/presentation-common/content/ContentTraverser.js +2 -2
  38. package/lib/esm/presentation-common/content/ContentTraverser.js.map +1 -1
  39. package/lib/esm/presentation-common/content/Descriptor.d.ts +4 -1
  40. package/lib/esm/presentation-common/content/Descriptor.d.ts.map +1 -1
  41. package/lib/esm/presentation-common/content/Descriptor.js +4 -1
  42. package/lib/esm/presentation-common/content/Descriptor.js.map +1 -1
  43. package/lib/esm/presentation-common/content/Item.d.ts +5 -1
  44. package/lib/esm/presentation-common/content/Item.d.ts.map +1 -1
  45. package/lib/esm/presentation-common/content/Item.js +1 -1
  46. package/lib/esm/presentation-common/content/Item.js.map +1 -1
  47. package/lib/esm/presentation-common/hierarchy/Node.d.ts +35 -7
  48. package/lib/esm/presentation-common/hierarchy/Node.d.ts.map +1 -1
  49. package/lib/esm/presentation-common/hierarchy/Node.js.map +1 -1
  50. package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.d.ts +1 -1
  51. package/lib/esm/presentation-common/rules/RelatedInstanceSpecification.js.map +1 -1
  52. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.d.ts +2 -2
  53. package/lib/esm/presentation-common/rules/RelationshipPathSpecification.js.map +1 -1
  54. package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts +4 -1
  55. package/lib/esm/presentation-common/rules/content/ContentSpecification.d.ts.map +1 -1
  56. package/lib/esm/presentation-common/rules/content/ContentSpecification.js.map +1 -1
  57. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts +1 -0
  58. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.d.ts.map +1 -1
  59. package/lib/esm/presentation-common/rules/customization/CheckBoxRule.js.map +1 -1
  60. package/lib/esm/presentation-common/rules/customization/CustomizationRule.d.ts +5 -2
  61. package/lib/esm/presentation-common/rules/customization/CustomizationRule.d.ts.map +1 -1
  62. package/lib/esm/presentation-common/rules/customization/CustomizationRule.js.map +1 -1
  63. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts +1 -0
  64. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.d.ts.map +1 -1
  65. package/lib/esm/presentation-common/rules/customization/ImageIdOverride.js.map +1 -1
  66. package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts +1 -0
  67. package/lib/esm/presentation-common/rules/customization/LabelOverride.d.ts.map +1 -1
  68. package/lib/esm/presentation-common/rules/customization/LabelOverride.js.map +1 -1
  69. package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts +1 -0
  70. package/lib/esm/presentation-common/rules/customization/StyleOverride.d.ts.map +1 -1
  71. package/lib/esm/presentation-common/rules/customization/StyleOverride.js.map +1 -1
  72. package/package.json +9 -9
@@ -1 +1 @@
1
- {"version":3,"file":"StyleOverride.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/StyleOverride.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 { ConditionContainer, RuleBase, RuleTypes } from \"../Rule\";\r\n\r\n/**\r\n * Rule to override default node style and dynamically define a foreground/background\r\n * colors and a font style for a particular nodes.\r\n *\r\n * @see [More details]($docs/presentation/Customization/StyleOverride.md)\r\n * @public\r\n */\r\nexport interface StyleOverride extends RuleBase, ConditionContainer {\r\n /** Used for serializing to JSON. */\r\n ruleType: RuleTypes.StyleOverride;\r\n\r\n /**\r\n * Defines a condition for the rule, which needs to be met in order to execute it. Condition\r\n * is an [ECExpression]($docs/presentation/Advanced/ECExpressions.md), which can use\r\n * a [limited set of symbols]($docs/presentation/Customization/ECExpressions.md#rule-condition).\r\n */\r\n condition?: string;\r\n\r\n /**\r\n * Foreground color that should be used for node. The value should be an [ECExpression]($docs/presentation/Advanced/ECExpressions.md)\r\n * whose result would evaluate to one the following formats:\r\n * - color name (`Red`, `Blue`, etc.)\r\n * - `rgb(255, 255, 255)`\r\n * - `#0F0F0F`\r\n */\r\n foreColor?: string;\r\n\r\n /**\r\n * Background color that should be used for node. The value should be an [ECExpression]($docs/presentation/Advanced/ECExpressions.md)\r\n * whose result would evaluate to one the following formats:\r\n * - color name (`Red`, `Blue`, etc.)\r\n * - `rgb(255, 255, 255)`\r\n * - `#0F0F0F`\r\n */\r\n backColor?: string;\r\n\r\n /**\r\n * Font style that should be used for node. The value should be an [ECExpression]($docs/presentation/Advanced/ECExpressions.md)\r\n * whose result would evaluate to one the following values:\r\n * - `\"Bold\"`\r\n * - `\"Italic\"`\r\n * - `\"Italic,Bold\"`\r\n * - `\"Regular\"`\r\n *\r\n * Defaults to `\"FontStyle.Regular\"`.\r\n */\r\n fontStyle?: string;\r\n}\r\n"]}
1
+ {"version":3,"file":"StyleOverride.js","sourceRoot":"","sources":["../../../../../src/presentation-common/rules/customization/StyleOverride.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 { ConditionContainer, RuleBase, RuleTypes } from \"../Rule\";\r\n\r\n/**\r\n * Rule to override default node style and dynamically define a foreground/background\r\n * colors and a font style for a particular nodes.\r\n *\r\n * @see [More details]($docs/presentation/Customization/StyleOverride.md)\r\n * @public\r\n * @deprecated Use [[ExtendedDataRule]] instead. See [extended data usage page]($docs/presentation/Customization/ExtendedDataUsage.md) for more details.\r\n */\r\nexport interface StyleOverride extends RuleBase, ConditionContainer {\r\n /** Used for serializing to JSON. */\r\n ruleType: RuleTypes.StyleOverride;\r\n\r\n /**\r\n * Defines a condition for the rule, which needs to be met in order to execute it. Condition\r\n * is an [ECExpression]($docs/presentation/Advanced/ECExpressions.md), which can use\r\n * a [limited set of symbols]($docs/presentation/Customization/ECExpressions.md#rule-condition).\r\n */\r\n condition?: string;\r\n\r\n /**\r\n * Foreground color that should be used for node. The value should be an [ECExpression]($docs/presentation/Advanced/ECExpressions.md)\r\n * whose result would evaluate to one the following formats:\r\n * - color name (`Red`, `Blue`, etc.)\r\n * - `rgb(255, 255, 255)`\r\n * - `#0F0F0F`\r\n */\r\n foreColor?: string;\r\n\r\n /**\r\n * Background color that should be used for node. The value should be an [ECExpression]($docs/presentation/Advanced/ECExpressions.md)\r\n * whose result would evaluate to one the following formats:\r\n * - color name (`Red`, `Blue`, etc.)\r\n * - `rgb(255, 255, 255)`\r\n * - `#0F0F0F`\r\n */\r\n backColor?: string;\r\n\r\n /**\r\n * Font style that should be used for node. The value should be an [ECExpression]($docs/presentation/Advanced/ECExpressions.md)\r\n * whose result would evaluate to one the following values:\r\n * - `\"Bold\"`\r\n * - `\"Italic\"`\r\n * - `\"Italic,Bold\"`\r\n * - `\"Regular\"`\r\n *\r\n * Defaults to `\"FontStyle.Regular\"`.\r\n */\r\n fontStyle?: string;\r\n}\r\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/presentation-common",
3
- "version": "3.2.0-dev.1",
3
+ "version": "3.2.0-dev.12",
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.2.0-dev.1",
26
- "@itwin/core-common": "^3.2.0-dev.1",
27
- "@itwin/core-quantity": "^3.2.0-dev.1"
25
+ "@itwin/core-bentley": "^3.2.0-dev.12",
26
+ "@itwin/core-common": "^3.2.0-dev.12",
27
+ "@itwin/core-quantity": "^3.2.0-dev.12"
28
28
  },
29
29
  "devDependencies": {
30
- "@itwin/build-tools": "3.2.0-dev.1",
31
- "@itwin/core-bentley": "3.2.0-dev.1",
32
- "@itwin/core-common": "3.2.0-dev.1",
33
- "@itwin/core-quantity": "3.2.0-dev.1",
34
- "@itwin/eslint-plugin": "3.2.0-dev.1",
30
+ "@itwin/build-tools": "3.2.0-dev.12",
31
+ "@itwin/core-bentley": "3.2.0-dev.12",
32
+ "@itwin/core-common": "3.2.0-dev.12",
33
+ "@itwin/core-quantity": "3.2.0-dev.12",
34
+ "@itwin/eslint-plugin": "3.2.0-dev.12",
35
35
  "@types/chai": "^4.1.4",
36
36
  "@types/chai-as-promised": "^7",
37
37
  "@types/chai-jest-snapshot": "^1.3.0",