@itwin/rpcinterface-full-stack-tests 4.0.0-dev.80 → 4.0.0-dev.81

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.
@@ -34802,6 +34802,9 @@ class CodeSpec {
34802
34802
  }
34803
34803
  /** Will be true if the id of this CodeSpec is valid. */
34804
34804
  get isValid() { return _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Id64.isValid(this.id); }
34805
+ get isExternal() {
34806
+ return true === this.properties.scopeSpec.fGuidRequired;
34807
+ }
34805
34808
  /** The scope type of this CodeSpec. */
34806
34809
  get scopeType() { return this.properties.scopeSpec.type; }
34807
34810
  set scopeType(scopeType) { this.properties.scopeSpec.type = scopeType; }
@@ -277602,7 +277605,7 @@ class TestContext {
277602
277605
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
277603
277606
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
277604
277607
  await core_frontend_1.NoRenderApp.startup({
277605
- applicationVersion: "4.0.0-dev.80",
277608
+ applicationVersion: "4.0.0-dev.81",
277606
277609
  applicationId: this.settings.gprid,
277607
277610
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
277608
277611
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -277631,43 +277634,42 @@ __webpack_require__.r(__webpack_exports__);
277631
277634
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
277632
277635
  /* harmony export */ "AsyncTasksTracker": () => (/* reexport safe */ _presentation_common_AsyncTasks__WEBPACK_IMPORTED_MODULE_0__.AsyncTasksTracker),
277633
277636
  /* harmony export */ "CategoryDescription": () => (/* reexport safe */ _presentation_common_content_Category__WEBPACK_IMPORTED_MODULE_20__.CategoryDescription),
277634
- /* harmony export */ "ChildNodeSpecificationTypes": () => (/* reexport safe */ _presentation_common_rules_hierarchy_ChildNodeSpecification__WEBPACK_IMPORTED_MODULE_37__.ChildNodeSpecificationTypes),
277637
+ /* harmony export */ "ChildNodeSpecificationTypes": () => (/* reexport safe */ _presentation_common_rules_hierarchy_ChildNodeSpecification__WEBPACK_IMPORTED_MODULE_38__.ChildNodeSpecificationTypes),
277635
277638
  /* harmony export */ "ClassInfo": () => (/* reexport safe */ _presentation_common_EC__WEBPACK_IMPORTED_MODULE_2__.ClassInfo),
277636
277639
  /* harmony export */ "Content": () => (/* reexport safe */ _presentation_common_content_Content__WEBPACK_IMPORTED_MODULE_21__.Content),
277637
277640
  /* harmony export */ "ContentFlags": () => (/* reexport safe */ _presentation_common_content_Descriptor__WEBPACK_IMPORTED_MODULE_22__.ContentFlags),
277638
- /* harmony export */ "ContentPropertyValueFormatter": () => (/* reexport safe */ _presentation_common_PropertyFormatter__WEBPACK_IMPORTED_MODULE_15__.ContentPropertyValueFormatter),
277639
- /* harmony export */ "ContentSpecificationTypes": () => (/* reexport safe */ _presentation_common_rules_content_ContentSpecification__WEBPACK_IMPORTED_MODULE_58__.ContentSpecificationTypes),
277641
+ /* harmony export */ "ContentFormatter": () => (/* reexport safe */ _presentation_common_content_PropertyValueFormatter__WEBPACK_IMPORTED_MODULE_32__.ContentFormatter),
277642
+ /* harmony export */ "ContentPropertyValueFormatter": () => (/* reexport safe */ _presentation_common_content_PropertyValueFormatter__WEBPACK_IMPORTED_MODULE_32__.ContentPropertyValueFormatter),
277643
+ /* harmony export */ "ContentSpecificationTypes": () => (/* reexport safe */ _presentation_common_rules_content_ContentSpecification__WEBPACK_IMPORTED_MODULE_59__.ContentSpecificationTypes),
277640
277644
  /* harmony export */ "DEFAULT_KEYS_BATCH_SIZE": () => (/* reexport safe */ _presentation_common_Utils__WEBPACK_IMPORTED_MODULE_11__.DEFAULT_KEYS_BATCH_SIZE),
277641
277645
  /* harmony export */ "DefaultContentDisplayTypes": () => (/* reexport safe */ _presentation_common_content_DisplayTypes__WEBPACK_IMPORTED_MODULE_23__.DefaultContentDisplayTypes),
277642
277646
  /* harmony export */ "Descriptor": () => (/* reexport safe */ _presentation_common_content_Descriptor__WEBPACK_IMPORTED_MODULE_22__.Descriptor),
277643
277647
  /* harmony export */ "DiagnosticsLogEntry": () => (/* reexport safe */ _presentation_common_Diagnostics__WEBPACK_IMPORTED_MODULE_1__.DiagnosticsLogEntry),
277644
277648
  /* harmony export */ "DisplayValue": () => (/* reexport safe */ _presentation_common_content_Value__WEBPACK_IMPORTED_MODULE_30__.DisplayValue),
277645
277649
  /* harmony export */ "DisplayValueGroup": () => (/* reexport safe */ _presentation_common_content_Value__WEBPACK_IMPORTED_MODULE_30__.DisplayValueGroup),
277646
- /* harmony export */ "ExpandedNodeUpdateRecord": () => (/* reexport safe */ _presentation_common_Update__WEBPACK_IMPORTED_MODULE_10__.ExpandedNodeUpdateRecord),
277647
277650
  /* harmony export */ "FIELD_NAMES_SEPARATOR": () => (/* reexport safe */ _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_31__.FIELD_NAMES_SEPARATOR),
277648
277651
  /* harmony export */ "Field": () => (/* reexport safe */ _presentation_common_content_Fields__WEBPACK_IMPORTED_MODULE_25__.Field),
277649
277652
  /* harmony export */ "FieldDescriptor": () => (/* reexport safe */ _presentation_common_content_Fields__WEBPACK_IMPORTED_MODULE_25__.FieldDescriptor),
277650
277653
  /* harmony export */ "FieldDescriptorType": () => (/* reexport safe */ _presentation_common_content_Fields__WEBPACK_IMPORTED_MODULE_25__.FieldDescriptorType),
277651
- /* harmony export */ "GroupingSpecificationTypes": () => (/* reexport safe */ _presentation_common_rules_customization_GroupingRule__WEBPACK_IMPORTED_MODULE_49__.GroupingSpecificationTypes),
277654
+ /* harmony export */ "GroupingSpecificationTypes": () => (/* reexport safe */ _presentation_common_rules_customization_GroupingRule__WEBPACK_IMPORTED_MODULE_50__.GroupingSpecificationTypes),
277652
277655
  /* harmony export */ "HierarchyCompareInfo": () => (/* reexport safe */ _presentation_common_Update__WEBPACK_IMPORTED_MODULE_10__.HierarchyCompareInfo),
277653
- /* harmony export */ "HierarchyLevel": () => (/* reexport safe */ _presentation_common_hierarchy_HierarchyLevel__WEBPACK_IMPORTED_MODULE_32__.HierarchyLevel),
277654
- /* harmony export */ "HierarchyUpdateInfo": () => (/* reexport safe */ _presentation_common_Update__WEBPACK_IMPORTED_MODULE_10__.HierarchyUpdateInfo),
277655
- /* harmony export */ "HierarchyUpdateRecord": () => (/* reexport safe */ _presentation_common_Update__WEBPACK_IMPORTED_MODULE_10__.HierarchyUpdateRecord),
277656
+ /* harmony export */ "HierarchyLevel": () => (/* reexport safe */ _presentation_common_hierarchy_HierarchyLevel__WEBPACK_IMPORTED_MODULE_33__.HierarchyLevel),
277656
277657
  /* harmony export */ "InstanceKey": () => (/* reexport safe */ _presentation_common_EC__WEBPACK_IMPORTED_MODULE_2__.InstanceKey),
277657
- /* harmony export */ "InstanceLabelOverrideValueSpecificationType": () => (/* reexport safe */ _presentation_common_rules_customization_InstanceLabelOverride__WEBPACK_IMPORTED_MODULE_51__.InstanceLabelOverrideValueSpecificationType),
277658
+ /* harmony export */ "InstanceLabelOverrideValueSpecificationType": () => (/* reexport safe */ _presentation_common_rules_customization_InstanceLabelOverride__WEBPACK_IMPORTED_MODULE_52__.InstanceLabelOverrideValueSpecificationType),
277658
277659
  /* harmony export */ "Item": () => (/* reexport safe */ _presentation_common_content_Item__WEBPACK_IMPORTED_MODULE_26__.Item),
277659
277660
  /* harmony export */ "Key": () => (/* reexport safe */ _presentation_common_KeySet__WEBPACK_IMPORTED_MODULE_4__.Key),
277660
277661
  /* harmony export */ "KeySet": () => (/* reexport safe */ _presentation_common_KeySet__WEBPACK_IMPORTED_MODULE_4__.KeySet),
277662
+ /* harmony export */ "KoqPropertyValueFormatter": () => (/* reexport safe */ _presentation_common_KoqPropertyValueFormatter__WEBPACK_IMPORTED_MODULE_15__.KoqPropertyValueFormatter),
277661
277663
  /* harmony export */ "LabelCompositeValue": () => (/* reexport safe */ _presentation_common_LabelDefinition__WEBPACK_IMPORTED_MODULE_5__.LabelCompositeValue),
277662
277664
  /* harmony export */ "LabelDefinition": () => (/* reexport safe */ _presentation_common_LabelDefinition__WEBPACK_IMPORTED_MODULE_5__.LabelDefinition),
277663
277665
  /* harmony export */ "LocalizationHelper": () => (/* reexport safe */ _presentation_common_LocalizationHelper__WEBPACK_IMPORTED_MODULE_13__.LocalizationHelper),
277664
277666
  /* harmony export */ "NavigationPropertyInfo": () => (/* reexport safe */ _presentation_common_EC__WEBPACK_IMPORTED_MODULE_2__.NavigationPropertyInfo),
277665
277667
  /* harmony export */ "NestedContentField": () => (/* reexport safe */ _presentation_common_content_Fields__WEBPACK_IMPORTED_MODULE_25__.NestedContentField),
277666
277668
  /* harmony export */ "NestedContentValue": () => (/* reexport safe */ _presentation_common_content_Value__WEBPACK_IMPORTED_MODULE_30__.NestedContentValue),
277667
- /* harmony export */ "Node": () => (/* reexport safe */ _presentation_common_hierarchy_Node__WEBPACK_IMPORTED_MODULE_34__.Node),
277668
- /* harmony export */ "NodeKey": () => (/* reexport safe */ _presentation_common_hierarchy_Key__WEBPACK_IMPORTED_MODULE_33__.NodeKey),
277669
- /* harmony export */ "NodePathElement": () => (/* reexport safe */ _presentation_common_hierarchy_NodePathElement__WEBPACK_IMPORTED_MODULE_35__.NodePathElement),
277670
- /* harmony export */ "NodePathFilteringData": () => (/* reexport safe */ _presentation_common_hierarchy_NodePathElement__WEBPACK_IMPORTED_MODULE_35__.NodePathFilteringData),
277669
+ /* harmony export */ "Node": () => (/* reexport safe */ _presentation_common_hierarchy_Node__WEBPACK_IMPORTED_MODULE_35__.Node),
277670
+ /* harmony export */ "NodeKey": () => (/* reexport safe */ _presentation_common_hierarchy_Key__WEBPACK_IMPORTED_MODULE_34__.NodeKey),
277671
+ /* harmony export */ "NodePathElement": () => (/* reexport safe */ _presentation_common_hierarchy_NodePathElement__WEBPACK_IMPORTED_MODULE_36__.NodePathElement),
277672
+ /* harmony export */ "NodePathFilteringData": () => (/* reexport safe */ _presentation_common_hierarchy_NodePathElement__WEBPACK_IMPORTED_MODULE_36__.NodePathFilteringData),
277671
277673
  /* harmony export */ "PRESENTATION_IPC_CHANNEL_NAME": () => (/* reexport safe */ _presentation_common_PresentationIpcInterface__WEBPACK_IMPORTED_MODULE_12__.PRESENTATION_IPC_CHANNEL_NAME),
277672
277674
  /* harmony export */ "PartialHierarchyModification": () => (/* reexport safe */ _presentation_common_Update__WEBPACK_IMPORTED_MODULE_10__.PartialHierarchyModification),
277673
277675
  /* harmony export */ "PresentationError": () => (/* reexport safe */ _presentation_common_Error__WEBPACK_IMPORTED_MODULE_3__.PresentationError),
@@ -277676,31 +277678,29 @@ __webpack_require__.r(__webpack_exports__);
277676
277678
  /* harmony export */ "PresentationStatus": () => (/* reexport safe */ _presentation_common_Error__WEBPACK_IMPORTED_MODULE_3__.PresentationStatus),
277677
277679
  /* harmony export */ "PropertiesField": () => (/* reexport safe */ _presentation_common_content_Fields__WEBPACK_IMPORTED_MODULE_25__.PropertiesField),
277678
277680
  /* harmony export */ "Property": () => (/* reexport safe */ _presentation_common_content_Property__WEBPACK_IMPORTED_MODULE_27__.Property),
277679
- /* harmony export */ "PropertyEditorParameterTypes": () => (/* reexport safe */ _presentation_common_rules_content_modifiers_PropertyEditorsSpecification__WEBPACK_IMPORTED_MODULE_65__.PropertyEditorParameterTypes),
277680
- /* harmony export */ "PropertyGroupingValue": () => (/* reexport safe */ _presentation_common_rules_customization_GroupingRule__WEBPACK_IMPORTED_MODULE_49__.PropertyGroupingValue),
277681
+ /* harmony export */ "PropertyEditorParameterTypes": () => (/* reexport safe */ _presentation_common_rules_content_modifiers_PropertyEditorsSpecification__WEBPACK_IMPORTED_MODULE_66__.PropertyEditorParameterTypes),
277682
+ /* harmony export */ "PropertyGroupingValue": () => (/* reexport safe */ _presentation_common_rules_customization_GroupingRule__WEBPACK_IMPORTED_MODULE_50__.PropertyGroupingValue),
277681
277683
  /* harmony export */ "PropertyInfo": () => (/* reexport safe */ _presentation_common_EC__WEBPACK_IMPORTED_MODULE_2__.PropertyInfo),
277682
277684
  /* harmony export */ "PropertyValueFormat": () => (/* reexport safe */ _presentation_common_content_TypeDescription__WEBPACK_IMPORTED_MODULE_29__.PropertyValueFormat),
277683
- /* harmony export */ "PropertyValueFormatter": () => (/* reexport safe */ _presentation_common_PropertyFormatter__WEBPACK_IMPORTED_MODULE_15__.PropertyValueFormatter),
277684
- /* harmony export */ "QuerySpecificationTypes": () => (/* reexport safe */ _presentation_common_rules_hierarchy_CustomQueryInstanceNodesSpecification__WEBPACK_IMPORTED_MODULE_39__.QuerySpecificationTypes),
277685
+ /* harmony export */ "QuerySpecificationTypes": () => (/* reexport safe */ _presentation_common_rules_hierarchy_CustomQueryInstanceNodesSpecification__WEBPACK_IMPORTED_MODULE_40__.QuerySpecificationTypes),
277685
277686
  /* harmony export */ "RegisteredRuleset": () => (/* reexport safe */ _presentation_common_RegisteredRuleset__WEBPACK_IMPORTED_MODULE_7__.RegisteredRuleset),
277686
277687
  /* harmony export */ "RelatedClassInfo": () => (/* reexport safe */ _presentation_common_EC__WEBPACK_IMPORTED_MODULE_2__.RelatedClassInfo),
277687
277688
  /* harmony export */ "RelatedClassInfoWithOptionalRelationship": () => (/* reexport safe */ _presentation_common_EC__WEBPACK_IMPORTED_MODULE_2__.RelatedClassInfoWithOptionalRelationship),
277688
- /* harmony export */ "RelatedPropertiesSpecialValues": () => (/* reexport safe */ _presentation_common_rules_content_modifiers_RelatedPropertiesSpecification__WEBPACK_IMPORTED_MODULE_67__.RelatedPropertiesSpecialValues),
277689
- /* harmony export */ "RelationshipDirection": () => (/* reexport safe */ _presentation_common_rules_RelationshipDirection__WEBPACK_IMPORTED_MODULE_70__.RelationshipDirection),
277690
- /* harmony export */ "RelationshipMeaning": () => (/* reexport safe */ _presentation_common_rules_content_modifiers_RelatedPropertiesSpecification__WEBPACK_IMPORTED_MODULE_67__.RelationshipMeaning),
277689
+ /* harmony export */ "RelatedPropertiesSpecialValues": () => (/* reexport safe */ _presentation_common_rules_content_modifiers_RelatedPropertiesSpecification__WEBPACK_IMPORTED_MODULE_68__.RelatedPropertiesSpecialValues),
277690
+ /* harmony export */ "RelationshipDirection": () => (/* reexport safe */ _presentation_common_rules_RelationshipDirection__WEBPACK_IMPORTED_MODULE_71__.RelationshipDirection),
277691
+ /* harmony export */ "RelationshipMeaning": () => (/* reexport safe */ _presentation_common_rules_content_modifiers_RelatedPropertiesSpecification__WEBPACK_IMPORTED_MODULE_68__.RelationshipMeaning),
277691
277692
  /* harmony export */ "RelationshipPath": () => (/* reexport safe */ _presentation_common_EC__WEBPACK_IMPORTED_MODULE_2__.RelationshipPath),
277692
277693
  /* harmony export */ "RpcRequestsHandler": () => (/* reexport safe */ _presentation_common_RpcRequestsHandler__WEBPACK_IMPORTED_MODULE_17__.RpcRequestsHandler),
277693
- /* harmony export */ "RuleTypes": () => (/* reexport safe */ _presentation_common_rules_Rule__WEBPACK_IMPORTED_MODULE_72__.RuleTypes),
277694
+ /* harmony export */ "RuleTypes": () => (/* reexport safe */ _presentation_common_rules_Rule__WEBPACK_IMPORTED_MODULE_73__.RuleTypes),
277694
277695
  /* harmony export */ "RulesetVariable": () => (/* reexport safe */ _presentation_common_RulesetVariables__WEBPACK_IMPORTED_MODULE_8__.RulesetVariable),
277695
277696
  /* harmony export */ "RulesetsFactory": () => (/* reexport safe */ _presentation_common_RulesetsFactory__WEBPACK_IMPORTED_MODULE_9__.RulesetsFactory),
277696
- /* harmony export */ "SameLabelInstanceGroupApplicationStage": () => (/* reexport safe */ _presentation_common_rules_customization_GroupingRule__WEBPACK_IMPORTED_MODULE_49__.SameLabelInstanceGroupApplicationStage),
277697
+ /* harmony export */ "SameLabelInstanceGroupApplicationStage": () => (/* reexport safe */ _presentation_common_rules_customization_GroupingRule__WEBPACK_IMPORTED_MODULE_50__.SameLabelInstanceGroupApplicationStage),
277697
277698
  /* harmony export */ "SelectClassInfo": () => (/* reexport safe */ _presentation_common_content_Descriptor__WEBPACK_IMPORTED_MODULE_22__.SelectClassInfo),
277698
277699
  /* harmony export */ "SortDirection": () => (/* reexport safe */ _presentation_common_content_Descriptor__WEBPACK_IMPORTED_MODULE_22__.SortDirection),
277699
- /* harmony export */ "StandardNodeTypes": () => (/* reexport safe */ _presentation_common_hierarchy_Key__WEBPACK_IMPORTED_MODULE_33__.StandardNodeTypes),
277700
+ /* harmony export */ "StandardNodeTypes": () => (/* reexport safe */ _presentation_common_hierarchy_Key__WEBPACK_IMPORTED_MODULE_34__.StandardNodeTypes),
277700
277701
  /* harmony export */ "UPDATE_FULL": () => (/* reexport safe */ _presentation_common_Update__WEBPACK_IMPORTED_MODULE_10__.UPDATE_FULL),
277701
- /* harmony export */ "UpdateInfo": () => (/* reexport safe */ _presentation_common_Update__WEBPACK_IMPORTED_MODULE_10__.UpdateInfo),
277702
277702
  /* harmony export */ "Value": () => (/* reexport safe */ _presentation_common_content_Value__WEBPACK_IMPORTED_MODULE_30__.Value),
277703
- /* harmony export */ "VariableValueType": () => (/* reexport safe */ _presentation_common_rules_Variables__WEBPACK_IMPORTED_MODULE_75__.VariableValueType),
277703
+ /* harmony export */ "VariableValueType": () => (/* reexport safe */ _presentation_common_rules_Variables__WEBPACK_IMPORTED_MODULE_76__.VariableValueType),
277704
277704
  /* harmony export */ "VariableValueTypes": () => (/* reexport safe */ _presentation_common_RulesetVariables__WEBPACK_IMPORTED_MODULE_8__.VariableValueTypes),
277705
277705
  /* harmony export */ "addFieldHierarchy": () => (/* reexport safe */ _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_31__.addFieldHierarchy),
277706
277706
  /* harmony export */ "combineDiagnosticsSeverities": () => (/* reexport safe */ _presentation_common_Diagnostics__WEBPACK_IMPORTED_MODULE_1__.combineDiagnosticsSeverities),
@@ -277731,7 +277731,7 @@ __webpack_require__.r(__webpack_exports__);
277731
277731
  /* harmony import */ var _presentation_common_PresentationIpcInterface__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./presentation-common/PresentationIpcInterface */ "../../presentation/common/lib/esm/presentation-common/PresentationIpcInterface.js");
277732
277732
  /* harmony import */ var _presentation_common_LocalizationHelper__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./presentation-common/LocalizationHelper */ "../../presentation/common/lib/esm/presentation-common/LocalizationHelper.js");
277733
277733
  /* harmony import */ var _presentation_common_InstanceFilterDefinition__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./presentation-common/InstanceFilterDefinition */ "../../presentation/common/lib/esm/presentation-common/InstanceFilterDefinition.js");
277734
- /* harmony import */ var _presentation_common_PropertyFormatter__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./presentation-common/PropertyFormatter */ "../../presentation/common/lib/esm/presentation-common/PropertyFormatter.js");
277734
+ /* harmony import */ var _presentation_common_KoqPropertyValueFormatter__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./presentation-common/KoqPropertyValueFormatter */ "../../presentation/common/lib/esm/presentation-common/KoqPropertyValueFormatter.js");
277735
277735
  /* harmony import */ var _presentation_common_PresentationRpcInterface__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./presentation-common/PresentationRpcInterface */ "../../presentation/common/lib/esm/presentation-common/PresentationRpcInterface.js");
277736
277736
  /* harmony import */ var _presentation_common_RpcRequestsHandler__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./presentation-common/RpcRequestsHandler */ "../../presentation/common/lib/esm/presentation-common/RpcRequestsHandler.js");
277737
277737
  /* harmony import */ var _presentation_common_ElementProperties__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./presentation-common/ElementProperties */ "../../presentation/common/lib/esm/presentation-common/ElementProperties.js");
@@ -277748,50 +277748,51 @@ __webpack_require__.r(__webpack_exports__);
277748
277748
  /* harmony import */ var _presentation_common_content_TypeDescription__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./presentation-common/content/TypeDescription */ "../../presentation/common/lib/esm/presentation-common/content/TypeDescription.js");
277749
277749
  /* harmony import */ var _presentation_common_content_Value__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./presentation-common/content/Value */ "../../presentation/common/lib/esm/presentation-common/content/Value.js");
277750
277750
  /* harmony import */ var _presentation_common_content_ContentTraverser__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./presentation-common/content/ContentTraverser */ "../../presentation/common/lib/esm/presentation-common/content/ContentTraverser.js");
277751
- /* harmony import */ var _presentation_common_hierarchy_HierarchyLevel__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./presentation-common/hierarchy/HierarchyLevel */ "../../presentation/common/lib/esm/presentation-common/hierarchy/HierarchyLevel.js");
277752
- /* harmony import */ var _presentation_common_hierarchy_Key__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./presentation-common/hierarchy/Key */ "../../presentation/common/lib/esm/presentation-common/hierarchy/Key.js");
277753
- /* harmony import */ var _presentation_common_hierarchy_Node__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./presentation-common/hierarchy/Node */ "../../presentation/common/lib/esm/presentation-common/hierarchy/Node.js");
277754
- /* harmony import */ var _presentation_common_hierarchy_NodePathElement__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./presentation-common/hierarchy/NodePathElement */ "../../presentation/common/lib/esm/presentation-common/hierarchy/NodePathElement.js");
277755
- /* harmony import */ var _presentation_common_rules_hierarchy_ChildNodeRule__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/ChildNodeRule */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.js");
277756
- /* harmony import */ var _presentation_common_rules_hierarchy_ChildNodeSpecification__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/ChildNodeSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.js");
277757
- /* harmony import */ var _presentation_common_rules_hierarchy_CustomNodeSpecification__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/CustomNodeSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.js");
277758
- /* harmony import */ var _presentation_common_rules_hierarchy_CustomQueryInstanceNodesSpecification__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js");
277759
- /* harmony import */ var _presentation_common_rules_hierarchy_InstanceNodesOfSpecificClassesSpecification__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js");
277760
- /* harmony import */ var _presentation_common_rules_hierarchy_NavigationRule__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/NavigationRule */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/NavigationRule.js");
277761
- /* harmony import */ var _presentation_common_rules_hierarchy_NodeArtifactsRule__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/NodeArtifactsRule */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.js");
277762
- /* harmony import */ var _presentation_common_rules_hierarchy_RelatedInstanceNodesSpecification__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js");
277763
- /* harmony import */ var _presentation_common_rules_hierarchy_RootNodeRule__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/RootNodeRule */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.js");
277764
- /* harmony import */ var _presentation_common_rules_hierarchy_SubCondition__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/SubCondition */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/SubCondition.js");
277765
- /* harmony import */ var _presentation_common_rules_customization_CheckBoxRule__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./presentation-common/rules/customization/CheckBoxRule */ "../../presentation/common/lib/esm/presentation-common/rules/customization/CheckBoxRule.js");
277766
- /* harmony import */ var _presentation_common_rules_customization_CustomizationRule__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./presentation-common/rules/customization/CustomizationRule */ "../../presentation/common/lib/esm/presentation-common/rules/customization/CustomizationRule.js");
277767
- /* harmony import */ var _presentation_common_rules_customization_ExtendedDataRule__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./presentation-common/rules/customization/ExtendedDataRule */ "../../presentation/common/lib/esm/presentation-common/rules/customization/ExtendedDataRule.js");
277768
- /* harmony import */ var _presentation_common_rules_customization_GroupingRule__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./presentation-common/rules/customization/GroupingRule */ "../../presentation/common/lib/esm/presentation-common/rules/customization/GroupingRule.js");
277769
- /* harmony import */ var _presentation_common_rules_customization_ImageIdOverride__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./presentation-common/rules/customization/ImageIdOverride */ "../../presentation/common/lib/esm/presentation-common/rules/customization/ImageIdOverride.js");
277770
- /* harmony import */ var _presentation_common_rules_customization_InstanceLabelOverride__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./presentation-common/rules/customization/InstanceLabelOverride */ "../../presentation/common/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.js");
277771
- /* harmony import */ var _presentation_common_rules_customization_LabelOverride__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./presentation-common/rules/customization/LabelOverride */ "../../presentation/common/lib/esm/presentation-common/rules/customization/LabelOverride.js");
277772
- /* harmony import */ var _presentation_common_rules_customization_SortingRule__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./presentation-common/rules/customization/SortingRule */ "../../presentation/common/lib/esm/presentation-common/rules/customization/SortingRule.js");
277773
- /* harmony import */ var _presentation_common_rules_customization_StyleOverride__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./presentation-common/rules/customization/StyleOverride */ "../../presentation/common/lib/esm/presentation-common/rules/customization/StyleOverride.js");
277774
- /* harmony import */ var _presentation_common_rules_content_ContentInstancesOfSpecificClassesSpecification__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js");
277775
- /* harmony import */ var _presentation_common_rules_content_ContentRelatedInstancesSpecification__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./presentation-common/rules/content/ContentRelatedInstancesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.js");
277776
- /* harmony import */ var _presentation_common_rules_content_ContentRule__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./presentation-common/rules/content/ContentRule */ "../../presentation/common/lib/esm/presentation-common/rules/content/ContentRule.js");
277777
- /* harmony import */ var _presentation_common_rules_content_ContentSpecification__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./presentation-common/rules/content/ContentSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/ContentSpecification.js");
277778
- /* harmony import */ var _presentation_common_rules_content_PropertySpecification__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./presentation-common/rules/content/PropertySpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/PropertySpecification.js");
277779
- /* harmony import */ var _presentation_common_rules_content_SelectedNodeInstancesSpecification__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./presentation-common/rules/content/SelectedNodeInstancesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.js");
277780
- /* harmony import */ var _presentation_common_rules_content_DefaultPropertyCategoryOverride__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./presentation-common/rules/content/DefaultPropertyCategoryOverride */ "../../presentation/common/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.js");
277781
- /* harmony import */ var _presentation_common_rules_content_modifiers_CalculatedPropertiesSpecification__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js");
277782
- /* harmony import */ var _presentation_common_rules_content_modifiers_ContentModifier__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./presentation-common/rules/content/modifiers/ContentModifier */ "../../presentation/common/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.js");
277783
- /* harmony import */ var _presentation_common_rules_content_modifiers_PropertyCategorySpecification__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./presentation-common/rules/content/modifiers/PropertyCategorySpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js");
277784
- /* harmony import */ var _presentation_common_rules_content_modifiers_PropertyEditorsSpecification__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./presentation-common/rules/content/modifiers/PropertyEditorsSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js");
277785
- /* harmony import */ var _presentation_common_rules_content_modifiers_CustomRendererSpecification__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./presentation-common/rules/content/modifiers/CustomRendererSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/modifiers/CustomRendererSpecification.js");
277786
- /* harmony import */ var _presentation_common_rules_content_modifiers_RelatedPropertiesSpecification__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./presentation-common/rules/content/modifiers/RelatedPropertiesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js");
277787
- /* harmony import */ var _presentation_common_rules_ClassSpecifications__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./presentation-common/rules/ClassSpecifications */ "../../presentation/common/lib/esm/presentation-common/rules/ClassSpecifications.js");
277788
- /* harmony import */ var _presentation_common_rules_RelatedInstanceSpecification__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./presentation-common/rules/RelatedInstanceSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/RelatedInstanceSpecification.js");
277789
- /* harmony import */ var _presentation_common_rules_RelationshipDirection__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./presentation-common/rules/RelationshipDirection */ "../../presentation/common/lib/esm/presentation-common/rules/RelationshipDirection.js");
277790
- /* harmony import */ var _presentation_common_rules_RelationshipPathSpecification__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ./presentation-common/rules/RelationshipPathSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/RelationshipPathSpecification.js");
277791
- /* harmony import */ var _presentation_common_rules_Rule__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ./presentation-common/rules/Rule */ "../../presentation/common/lib/esm/presentation-common/rules/Rule.js");
277792
- /* harmony import */ var _presentation_common_rules_Ruleset__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ./presentation-common/rules/Ruleset */ "../../presentation/common/lib/esm/presentation-common/rules/Ruleset.js");
277793
- /* harmony import */ var _presentation_common_rules_SchemasSpecification__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ./presentation-common/rules/SchemasSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/SchemasSpecification.js");
277794
- /* harmony import */ var _presentation_common_rules_Variables__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ./presentation-common/rules/Variables */ "../../presentation/common/lib/esm/presentation-common/rules/Variables.js");
277751
+ /* harmony import */ var _presentation_common_content_PropertyValueFormatter__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./presentation-common/content/PropertyValueFormatter */ "../../presentation/common/lib/esm/presentation-common/content/PropertyValueFormatter.js");
277752
+ /* harmony import */ var _presentation_common_hierarchy_HierarchyLevel__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./presentation-common/hierarchy/HierarchyLevel */ "../../presentation/common/lib/esm/presentation-common/hierarchy/HierarchyLevel.js");
277753
+ /* harmony import */ var _presentation_common_hierarchy_Key__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./presentation-common/hierarchy/Key */ "../../presentation/common/lib/esm/presentation-common/hierarchy/Key.js");
277754
+ /* harmony import */ var _presentation_common_hierarchy_Node__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./presentation-common/hierarchy/Node */ "../../presentation/common/lib/esm/presentation-common/hierarchy/Node.js");
277755
+ /* harmony import */ var _presentation_common_hierarchy_NodePathElement__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./presentation-common/hierarchy/NodePathElement */ "../../presentation/common/lib/esm/presentation-common/hierarchy/NodePathElement.js");
277756
+ /* harmony import */ var _presentation_common_rules_hierarchy_ChildNodeRule__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/ChildNodeRule */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/ChildNodeRule.js");
277757
+ /* harmony import */ var _presentation_common_rules_hierarchy_ChildNodeSpecification__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/ChildNodeSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/ChildNodeSpecification.js");
277758
+ /* harmony import */ var _presentation_common_rules_hierarchy_CustomNodeSpecification__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/CustomNodeSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/CustomNodeSpecification.js");
277759
+ /* harmony import */ var _presentation_common_rules_hierarchy_CustomQueryInstanceNodesSpecification__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js");
277760
+ /* harmony import */ var _presentation_common_rules_hierarchy_InstanceNodesOfSpecificClassesSpecification__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js");
277761
+ /* harmony import */ var _presentation_common_rules_hierarchy_NavigationRule__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/NavigationRule */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/NavigationRule.js");
277762
+ /* harmony import */ var _presentation_common_rules_hierarchy_NodeArtifactsRule__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/NodeArtifactsRule */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/NodeArtifactsRule.js");
277763
+ /* harmony import */ var _presentation_common_rules_hierarchy_RelatedInstanceNodesSpecification__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js");
277764
+ /* harmony import */ var _presentation_common_rules_hierarchy_RootNodeRule__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/RootNodeRule */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/RootNodeRule.js");
277765
+ /* harmony import */ var _presentation_common_rules_hierarchy_SubCondition__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./presentation-common/rules/hierarchy/SubCondition */ "../../presentation/common/lib/esm/presentation-common/rules/hierarchy/SubCondition.js");
277766
+ /* harmony import */ var _presentation_common_rules_customization_CheckBoxRule__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./presentation-common/rules/customization/CheckBoxRule */ "../../presentation/common/lib/esm/presentation-common/rules/customization/CheckBoxRule.js");
277767
+ /* harmony import */ var _presentation_common_rules_customization_CustomizationRule__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./presentation-common/rules/customization/CustomizationRule */ "../../presentation/common/lib/esm/presentation-common/rules/customization/CustomizationRule.js");
277768
+ /* harmony import */ var _presentation_common_rules_customization_ExtendedDataRule__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./presentation-common/rules/customization/ExtendedDataRule */ "../../presentation/common/lib/esm/presentation-common/rules/customization/ExtendedDataRule.js");
277769
+ /* harmony import */ var _presentation_common_rules_customization_GroupingRule__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./presentation-common/rules/customization/GroupingRule */ "../../presentation/common/lib/esm/presentation-common/rules/customization/GroupingRule.js");
277770
+ /* harmony import */ var _presentation_common_rules_customization_ImageIdOverride__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./presentation-common/rules/customization/ImageIdOverride */ "../../presentation/common/lib/esm/presentation-common/rules/customization/ImageIdOverride.js");
277771
+ /* harmony import */ var _presentation_common_rules_customization_InstanceLabelOverride__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./presentation-common/rules/customization/InstanceLabelOverride */ "../../presentation/common/lib/esm/presentation-common/rules/customization/InstanceLabelOverride.js");
277772
+ /* harmony import */ var _presentation_common_rules_customization_LabelOverride__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./presentation-common/rules/customization/LabelOverride */ "../../presentation/common/lib/esm/presentation-common/rules/customization/LabelOverride.js");
277773
+ /* harmony import */ var _presentation_common_rules_customization_SortingRule__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./presentation-common/rules/customization/SortingRule */ "../../presentation/common/lib/esm/presentation-common/rules/customization/SortingRule.js");
277774
+ /* harmony import */ var _presentation_common_rules_customization_StyleOverride__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./presentation-common/rules/customization/StyleOverride */ "../../presentation/common/lib/esm/presentation-common/rules/customization/StyleOverride.js");
277775
+ /* harmony import */ var _presentation_common_rules_content_ContentInstancesOfSpecificClassesSpecification__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js");
277776
+ /* harmony import */ var _presentation_common_rules_content_ContentRelatedInstancesSpecification__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./presentation-common/rules/content/ContentRelatedInstancesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/ContentRelatedInstancesSpecification.js");
277777
+ /* harmony import */ var _presentation_common_rules_content_ContentRule__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./presentation-common/rules/content/ContentRule */ "../../presentation/common/lib/esm/presentation-common/rules/content/ContentRule.js");
277778
+ /* harmony import */ var _presentation_common_rules_content_ContentSpecification__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./presentation-common/rules/content/ContentSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/ContentSpecification.js");
277779
+ /* harmony import */ var _presentation_common_rules_content_PropertySpecification__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./presentation-common/rules/content/PropertySpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/PropertySpecification.js");
277780
+ /* harmony import */ var _presentation_common_rules_content_SelectedNodeInstancesSpecification__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./presentation-common/rules/content/SelectedNodeInstancesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/SelectedNodeInstancesSpecification.js");
277781
+ /* harmony import */ var _presentation_common_rules_content_DefaultPropertyCategoryOverride__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./presentation-common/rules/content/DefaultPropertyCategoryOverride */ "../../presentation/common/lib/esm/presentation-common/rules/content/DefaultPropertyCategoryOverride.js");
277782
+ /* harmony import */ var _presentation_common_rules_content_modifiers_CalculatedPropertiesSpecification__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js");
277783
+ /* harmony import */ var _presentation_common_rules_content_modifiers_ContentModifier__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./presentation-common/rules/content/modifiers/ContentModifier */ "../../presentation/common/lib/esm/presentation-common/rules/content/modifiers/ContentModifier.js");
277784
+ /* harmony import */ var _presentation_common_rules_content_modifiers_PropertyCategorySpecification__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./presentation-common/rules/content/modifiers/PropertyCategorySpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/modifiers/PropertyCategorySpecification.js");
277785
+ /* harmony import */ var _presentation_common_rules_content_modifiers_PropertyEditorsSpecification__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./presentation-common/rules/content/modifiers/PropertyEditorsSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js");
277786
+ /* harmony import */ var _presentation_common_rules_content_modifiers_CustomRendererSpecification__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./presentation-common/rules/content/modifiers/CustomRendererSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/modifiers/CustomRendererSpecification.js");
277787
+ /* harmony import */ var _presentation_common_rules_content_modifiers_RelatedPropertiesSpecification__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./presentation-common/rules/content/modifiers/RelatedPropertiesSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js");
277788
+ /* harmony import */ var _presentation_common_rules_ClassSpecifications__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./presentation-common/rules/ClassSpecifications */ "../../presentation/common/lib/esm/presentation-common/rules/ClassSpecifications.js");
277789
+ /* harmony import */ var _presentation_common_rules_RelatedInstanceSpecification__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./presentation-common/rules/RelatedInstanceSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/RelatedInstanceSpecification.js");
277790
+ /* harmony import */ var _presentation_common_rules_RelationshipDirection__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ./presentation-common/rules/RelationshipDirection */ "../../presentation/common/lib/esm/presentation-common/rules/RelationshipDirection.js");
277791
+ /* harmony import */ var _presentation_common_rules_RelationshipPathSpecification__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ./presentation-common/rules/RelationshipPathSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/RelationshipPathSpecification.js");
277792
+ /* harmony import */ var _presentation_common_rules_Rule__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ./presentation-common/rules/Rule */ "../../presentation/common/lib/esm/presentation-common/rules/Rule.js");
277793
+ /* harmony import */ var _presentation_common_rules_Ruleset__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ./presentation-common/rules/Ruleset */ "../../presentation/common/lib/esm/presentation-common/rules/Ruleset.js");
277794
+ /* harmony import */ var _presentation_common_rules_SchemasSpecification__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ./presentation-common/rules/SchemasSpecification */ "../../presentation/common/lib/esm/presentation-common/rules/SchemasSpecification.js");
277795
+ /* harmony import */ var _presentation_common_rules_Variables__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ./presentation-common/rules/Variables */ "../../presentation/common/lib/esm/presentation-common/rules/Variables.js");
277795
277796
  /*---------------------------------------------------------------------------------------------
277796
277797
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
277797
277798
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -277853,6 +277854,7 @@ __webpack_require__.r(__webpack_exports__);
277853
277854
 
277854
277855
 
277855
277856
 
277857
+
277856
277858
  /**
277857
277859
  * @module Hierarchies
277858
277860
  *
@@ -278946,6 +278948,175 @@ const some = (set, cb) => {
278946
278948
  };
278947
278949
 
278948
278950
 
278951
+ /***/ }),
278952
+
278953
+ /***/ "../../presentation/common/lib/esm/presentation-common/KoqPropertyValueFormatter.js":
278954
+ /*!******************************************************************************************!*\
278955
+ !*** ../../presentation/common/lib/esm/presentation-common/KoqPropertyValueFormatter.js ***!
278956
+ \******************************************************************************************/
278957
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
278958
+
278959
+ "use strict";
278960
+ __webpack_require__.r(__webpack_exports__);
278961
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
278962
+ /* harmony export */ "KoqPropertyValueFormatter": () => (/* binding */ KoqPropertyValueFormatter)
278963
+ /* harmony export */ });
278964
+ /* harmony import */ var _itwin_core_quantity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-quantity */ "../../core/quantity/lib/esm/core-quantity.js");
278965
+ /* harmony import */ var _itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/ecschema-metadata */ "../../core/ecschema-metadata/lib/cjs/ecschema-metadata.js");
278966
+ /* harmony import */ var _itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_1__);
278967
+ /*---------------------------------------------------------------------------------------------
278968
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
278969
+ * See LICENSE.md in the project root for license terms and full copyright notice.
278970
+ *--------------------------------------------------------------------------------------------*/
278971
+ /** @packageDocumentation
278972
+ * @module Core
278973
+ */
278974
+
278975
+
278976
+ /** @alpha */
278977
+ class KoqPropertyValueFormatter {
278978
+ constructor(_schemaContext) {
278979
+ this._schemaContext = _schemaContext;
278980
+ this._unitsProvider = new _itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_1__.SchemaUnitProvider(_schemaContext);
278981
+ }
278982
+ async format(value, options) {
278983
+ const formatterSpec = await this.getFormatterSpec(options);
278984
+ if (!formatterSpec)
278985
+ return undefined;
278986
+ return formatterSpec.applyFormatting(value);
278987
+ }
278988
+ async getFormatterSpec(options) {
278989
+ const formattingProps = await getFormattingProps(this._schemaContext, options);
278990
+ if (!formattingProps)
278991
+ return undefined;
278992
+ const { formatProps, persistenceUnitName } = formattingProps;
278993
+ const persistenceUnit = await this._unitsProvider.findUnitByName(persistenceUnitName);
278994
+ const format = await _itwin_core_quantity__WEBPACK_IMPORTED_MODULE_0__.Format.createFromJSON("", this._unitsProvider, formatProps);
278995
+ return _itwin_core_quantity__WEBPACK_IMPORTED_MODULE_0__.FormatterSpec.create("", format, this._unitsProvider, persistenceUnit);
278996
+ }
278997
+ async getParserSpec(options) {
278998
+ const formattingProps = await getFormattingProps(this._schemaContext, options);
278999
+ if (!formattingProps)
279000
+ return undefined;
279001
+ const { formatProps, persistenceUnitName } = formattingProps;
279002
+ const persistenceUnit = await this._unitsProvider.findUnitByName(persistenceUnitName);
279003
+ const format = await _itwin_core_quantity__WEBPACK_IMPORTED_MODULE_0__.Format.createFromJSON("", this._unitsProvider, formatProps);
279004
+ return _itwin_core_quantity__WEBPACK_IMPORTED_MODULE_0__.ParserSpec.create(format, this._unitsProvider, persistenceUnit);
279005
+ }
279006
+ }
279007
+ async function getFormattingProps(schemaLocater, options) {
279008
+ const { koqName, unitSystem } = options;
279009
+ const koq = await getKoq(schemaLocater, koqName);
279010
+ if (!koq)
279011
+ return undefined;
279012
+ const persistenceUnit = await koq.persistenceUnit;
279013
+ // istanbul ignore if
279014
+ if (!persistenceUnit)
279015
+ return undefined;
279016
+ const formatProps = await getKoqFormatProps(koq, persistenceUnit, unitSystem);
279017
+ if (!formatProps)
279018
+ return undefined;
279019
+ return { formatProps, persistenceUnitName: persistenceUnit.fullName };
279020
+ }
279021
+ async function getKoq(schemaLocater, fullName) {
279022
+ const [schemaName, propKoqName] = fullName.split(":");
279023
+ const schema = await schemaLocater.getSchema(new _itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_1__.SchemaKey(schemaName), _itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_1__.SchemaMatchType.Latest);
279024
+ if (!schema)
279025
+ return undefined;
279026
+ return schema.getItem(propKoqName);
279027
+ }
279028
+ async function getKoqFormatProps(koq, persistenceUnit, unitSystem) {
279029
+ const unitSystems = getUnitSystemGroupNames(unitSystem);
279030
+ // use one of KOQ presentation format that matches requested unit system
279031
+ const presentationFormat = await getKoqPresentationFormat(koq, unitSystems);
279032
+ if (presentationFormat)
279033
+ return formatToFormatProps(presentationFormat);
279034
+ // use persistence unit format if it matches requested unit system and matching presentation format was not found
279035
+ const persistenceUnitSystem = await persistenceUnit.unitSystem;
279036
+ if (persistenceUnitSystem && unitSystems.includes(persistenceUnitSystem.name.toUpperCase()))
279037
+ return getPersistenceUnitFormatProps(persistenceUnit);
279038
+ // use default presentation format if persistence unit does not match requested unit system
279039
+ if (koq.defaultPresentationFormat)
279040
+ return formatToFormatProps(koq.defaultPresentationFormat);
279041
+ return undefined;
279042
+ }
279043
+ async function getKoqPresentationFormat(koq, unitSystems) {
279044
+ const presentationFormats = koq.presentationFormats;
279045
+ for (const system of unitSystems) {
279046
+ for (const format of presentationFormats) {
279047
+ const unit = format.units && format.units[0][0];
279048
+ // istanbul ignore if
279049
+ if (!unit)
279050
+ continue;
279051
+ const currentUnitSystem = await unit.unitSystem;
279052
+ if (currentUnitSystem && currentUnitSystem.name.toUpperCase() === system)
279053
+ return format;
279054
+ }
279055
+ }
279056
+ return undefined;
279057
+ }
279058
+ function formatToFormatProps(format) {
279059
+ // istanbul ignore if
279060
+ if (_itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_1__.OverrideFormat.isOverrideFormat(format)) {
279061
+ const baseFormat = baseFormatToFormatProps(format.parent);
279062
+ return {
279063
+ ...baseFormat,
279064
+ composite: format.units
279065
+ ? {
279066
+ ...baseFormat.composite,
279067
+ units: format.units.map(([unit, _]) => ({ name: unit.fullName, label: unit.label })),
279068
+ spacer: format.spacer,
279069
+ includeZero: format.includeZero,
279070
+ }
279071
+ : baseFormat.composite,
279072
+ };
279073
+ }
279074
+ return baseFormatToFormatProps(format);
279075
+ }
279076
+ function baseFormatToFormatProps(format) {
279077
+ const json = format.toJSON();
279078
+ return {
279079
+ ...json,
279080
+ composite: json.composite
279081
+ ? {
279082
+ ...json.composite,
279083
+ spacer: format.spacer,
279084
+ includeZero: format.includeZero,
279085
+ }
279086
+ : /* istanbul ignore next */ undefined,
279087
+ };
279088
+ }
279089
+ function getPersistenceUnitFormatProps(persistenceUnit) {
279090
+ // Same as Format "DefaultRealU" in Formats ecschema
279091
+ return {
279092
+ formatTraits: ["keepSingleZero", "keepDecimalPoint", "showUnitLabel"],
279093
+ precision: 6,
279094
+ type: "Decimal",
279095
+ uomSeparator: " ",
279096
+ decimalSeparator: ".",
279097
+ composite: {
279098
+ units: [{
279099
+ name: persistenceUnit.fullName,
279100
+ label: persistenceUnit.label,
279101
+ }],
279102
+ },
279103
+ };
279104
+ }
279105
+ function getUnitSystemGroupNames(unitSystem) {
279106
+ switch (unitSystem) {
279107
+ case "imperial":
279108
+ return ["IMPERIAL", "USCUSTOM", "INTERNATIONAL", "FINANCE"];
279109
+ case "metric":
279110
+ return ["SI", "METRIC", "INTERNATIONAL", "FINANCE"];
279111
+ case "usCustomary":
279112
+ return ["USCUSTOM", "INTERNATIONAL", "FINANCE"];
279113
+ case "usSurvey":
279114
+ return ["USSURVEY", "USCUSTOM", "INTERNATIONAL", "FINANCE"];
279115
+ }
279116
+ return [];
279117
+ }
279118
+
279119
+
278949
279120
  /***/ }),
278950
279121
 
278951
279122
  /***/ "../../presentation/common/lib/esm/presentation-common/LabelDefinition.js":
@@ -279117,6 +279288,9 @@ class LocalizationHelper {
279117
279288
  if (typeof value === "string") {
279118
279289
  value = this.getLocalizedString(value);
279119
279290
  }
279291
+ else if (_content_Value__WEBPACK_IMPORTED_MODULE_1__.Value.isNavigationValue(value)) {
279292
+ this.translateLabelDefinition(value.label);
279293
+ }
279120
279294
  else if (_content_Value__WEBPACK_IMPORTED_MODULE_1__.Value.isNestedContent(value)) {
279121
279295
  for (const nestedValue of value) {
279122
279296
  for (const key in nestedValue.values) {
@@ -279341,220 +279515,6 @@ var PresentationIpcEvents;
279341
279515
  })(PresentationIpcEvents || (PresentationIpcEvents = {}));
279342
279516
 
279343
279517
 
279344
- /***/ }),
279345
-
279346
- /***/ "../../presentation/common/lib/esm/presentation-common/PropertyFormatter.js":
279347
- /*!**********************************************************************************!*\
279348
- !*** ../../presentation/common/lib/esm/presentation-common/PropertyFormatter.js ***!
279349
- \**********************************************************************************/
279350
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
279351
-
279352
- "use strict";
279353
- __webpack_require__.r(__webpack_exports__);
279354
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
279355
- /* harmony export */ "ContentPropertyValueFormatter": () => (/* binding */ ContentPropertyValueFormatter),
279356
- /* harmony export */ "PropertyValueFormatter": () => (/* binding */ PropertyValueFormatter)
279357
- /* harmony export */ });
279358
- /* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
279359
- /* harmony import */ var _itwin_core_quantity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/core-quantity */ "../../core/quantity/lib/esm/core-quantity.js");
279360
- /* harmony import */ var _itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @itwin/ecschema-metadata */ "../../core/ecschema-metadata/lib/cjs/ecschema-metadata.js");
279361
- /* harmony import */ var _itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_2__);
279362
- /* harmony import */ var _content_Value__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./content/Value */ "../../presentation/common/lib/esm/presentation-common/content/Value.js");
279363
- /*---------------------------------------------------------------------------------------------
279364
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
279365
- * See LICENSE.md in the project root for license terms and full copyright notice.
279366
- *--------------------------------------------------------------------------------------------*/
279367
- /** @packageDocumentation
279368
- * @module Core
279369
- */
279370
-
279371
-
279372
-
279373
-
279374
- /** @alpha */
279375
- class PropertyValueFormatter {
279376
- constructor(_schemaContext) {
279377
- this._schemaContext = _schemaContext;
279378
- this._unitsProvider = new _itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_2__.SchemaUnitProvider(_schemaContext);
279379
- }
279380
- async format(value, options) {
279381
- const formatterSpec = await this.getFormatterSpec(options);
279382
- if (!formatterSpec)
279383
- return undefined;
279384
- return formatterSpec.applyFormatting(value);
279385
- }
279386
- async getFormatterSpec(options) {
279387
- const formattingProps = await getFormattingProps(this._schemaContext, options);
279388
- if (!formattingProps)
279389
- return undefined;
279390
- const { formatProps, persistenceUnitName } = formattingProps;
279391
- const persistenceUnit = await this._unitsProvider.findUnitByName(persistenceUnitName);
279392
- const format = await _itwin_core_quantity__WEBPACK_IMPORTED_MODULE_1__.Format.createFromJSON("", this._unitsProvider, formatProps);
279393
- return _itwin_core_quantity__WEBPACK_IMPORTED_MODULE_1__.FormatterSpec.create("", format, this._unitsProvider, persistenceUnit);
279394
- }
279395
- async getParserSpec(options) {
279396
- const formattingProps = await getFormattingProps(this._schemaContext, options);
279397
- if (!formattingProps)
279398
- return undefined;
279399
- const { formatProps, persistenceUnitName } = formattingProps;
279400
- const persistenceUnit = await this._unitsProvider.findUnitByName(persistenceUnitName);
279401
- const format = await _itwin_core_quantity__WEBPACK_IMPORTED_MODULE_1__.Format.createFromJSON("", this._unitsProvider, formatProps);
279402
- return _itwin_core_quantity__WEBPACK_IMPORTED_MODULE_1__.ParserSpec.create(format, this._unitsProvider, persistenceUnit);
279403
- }
279404
- }
279405
- /** @alpha */
279406
- class ContentPropertyValueFormatter {
279407
- constructor(_propertyValueFormatter, _unitSystem) {
279408
- this._propertyValueFormatter = _propertyValueFormatter;
279409
- this._unitSystem = _unitSystem;
279410
- }
279411
- async formatContent(content) {
279412
- const descriptor = content.descriptor;
279413
- for (const item of content.contentSet) {
279414
- await this.formatValues(item.values, item.displayValues, descriptor.fields, item.mergedFieldNames);
279415
- }
279416
- return content;
279417
- }
279418
- async formatValues(values, displayValues, fields, mergedFields) {
279419
- for (const field of fields) {
279420
- const value = values[field.name];
279421
- if (field.isNestedContentField() && !mergedFields.includes(field.name)) {
279422
- (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(_content_Value__WEBPACK_IMPORTED_MODULE_3__.Value.isNestedContent(value));
279423
- await this.formatNestedContentDisplayValues(value, field.nestedFields);
279424
- continue;
279425
- }
279426
- if (!this.isFormattable(field) || typeof value !== "number")
279427
- continue;
279428
- const koq = field.properties[0].property.kindOfQuantity;
279429
- const formattedValue = await this._propertyValueFormatter.format(value, { koqName: koq.name, unitSystem: this._unitSystem });
279430
- if (!formattedValue)
279431
- continue;
279432
- displayValues[field.name] = formattedValue;
279433
- }
279434
- }
279435
- async formatNestedContentDisplayValues(nestedValues, fields) {
279436
- for (const nestedValue of nestedValues) {
279437
- await this.formatValues(nestedValue.values, nestedValue.displayValues, fields, nestedValue.mergedFieldNames);
279438
- }
279439
- }
279440
- isFormattable(field) {
279441
- return field.isPropertiesField()
279442
- && field.properties.length > 0
279443
- && field.properties[0].property.kindOfQuantity !== undefined;
279444
- }
279445
- }
279446
- async function getFormattingProps(schemaLocater, options) {
279447
- const { koqName, unitSystem } = options;
279448
- const koq = await getKoq(schemaLocater, koqName);
279449
- if (!koq)
279450
- return undefined;
279451
- const persistenceUnit = await koq.persistenceUnit;
279452
- // istanbul ignore if
279453
- if (!persistenceUnit)
279454
- return undefined;
279455
- const formatProps = await getKoqFormatProps(koq, persistenceUnit, unitSystem);
279456
- if (!formatProps)
279457
- return undefined;
279458
- return { formatProps, persistenceUnitName: persistenceUnit.fullName };
279459
- }
279460
- async function getKoq(schemaLocater, fullName) {
279461
- const [schemaName, propKoqName] = fullName.split(":");
279462
- const schema = await schemaLocater.getSchema(new _itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_2__.SchemaKey(schemaName), _itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_2__.SchemaMatchType.Latest);
279463
- if (!schema)
279464
- return undefined;
279465
- return schema.getItem(propKoqName);
279466
- }
279467
- async function getKoqFormatProps(koq, persistenceUnit, unitSystem) {
279468
- const unitSystems = getUnitSystemGroupNames(unitSystem);
279469
- // use one of KOQ presentation format that matches requested unit system
279470
- const presentationFormat = await getKoqPresentationFormat(koq, unitSystems);
279471
- if (presentationFormat)
279472
- return formatToFormatProps(presentationFormat);
279473
- // use persistence unit format if it matches requested unit system and matching presentation format was not found
279474
- const persistenceUnitSystem = await persistenceUnit.unitSystem;
279475
- if (persistenceUnitSystem && unitSystems.includes(persistenceUnitSystem.name.toUpperCase()))
279476
- return getPersistenceUnitFormatProps(persistenceUnit);
279477
- // use default presentation format if persistence unit does not match requested unit system
279478
- if (koq.defaultPresentationFormat)
279479
- return formatToFormatProps(koq.defaultPresentationFormat);
279480
- return undefined;
279481
- }
279482
- async function getKoqPresentationFormat(koq, unitSystems) {
279483
- const presentationFormats = koq.presentationFormats;
279484
- for (const system of unitSystems) {
279485
- for (const format of presentationFormats) {
279486
- const unit = format.units && format.units[0][0];
279487
- // istanbul ignore if
279488
- if (!unit)
279489
- continue;
279490
- const currentUnitSystem = await unit.unitSystem;
279491
- if (currentUnitSystem && currentUnitSystem.name.toUpperCase() === system)
279492
- return format;
279493
- }
279494
- }
279495
- return undefined;
279496
- }
279497
- function formatToFormatProps(format) {
279498
- // istanbul ignore if
279499
- if (_itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_2__.OverrideFormat.isOverrideFormat(format)) {
279500
- const baseFormat = baseFormatToFormatProps(format.parent);
279501
- return {
279502
- ...baseFormat,
279503
- composite: format.units
279504
- ? {
279505
- ...baseFormat.composite,
279506
- units: format.units.map(([unit, _]) => ({ name: unit.fullName, label: unit.label })),
279507
- spacer: format.spacer,
279508
- includeZero: format.includeZero,
279509
- }
279510
- : baseFormat.composite,
279511
- };
279512
- }
279513
- return baseFormatToFormatProps(format);
279514
- }
279515
- function baseFormatToFormatProps(format) {
279516
- const json = format.toJSON();
279517
- return {
279518
- ...json,
279519
- composite: json.composite
279520
- ? {
279521
- ...json.composite,
279522
- spacer: format.spacer,
279523
- includeZero: format.includeZero,
279524
- }
279525
- : /* istanbul ignore next */ undefined,
279526
- };
279527
- }
279528
- function getPersistenceUnitFormatProps(persistenceUnit) {
279529
- // Same as Format "DefaultRealU" in Formats ecschema
279530
- return {
279531
- formatTraits: ["keepSingleZero", "keepDecimalPoint", "showUnitLabel"],
279532
- precision: 6,
279533
- type: "Decimal",
279534
- uomSeparator: " ",
279535
- decimalSeparator: ".",
279536
- composite: {
279537
- units: [{
279538
- name: persistenceUnit.fullName,
279539
- label: persistenceUnit.label,
279540
- }],
279541
- },
279542
- };
279543
- }
279544
- function getUnitSystemGroupNames(unitSystem) {
279545
- switch (unitSystem) {
279546
- case "imperial":
279547
- return ["IMPERIAL", "USCUSTOM", "INTERNATIONAL", "FINANCE"];
279548
- case "metric":
279549
- return ["SI", "METRIC", "INTERNATIONAL", "FINANCE"];
279550
- case "usCustomary":
279551
- return ["USCUSTOM", "INTERNATIONAL", "FINANCE"];
279552
- case "usSurvey":
279553
- return ["USSURVEY", "USCUSTOM", "INTERNATIONAL", "FINANCE"];
279554
- }
279555
- }
279556
-
279557
-
279558
279518
  /***/ }),
279559
279519
 
279560
279520
  /***/ "../../presentation/common/lib/esm/presentation-common/RegisteredRuleset.js":
@@ -280102,13 +280062,9 @@ const hexToDec = (id) => {
280102
280062
  "use strict";
280103
280063
  __webpack_require__.r(__webpack_exports__);
280104
280064
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
280105
- /* harmony export */ "ExpandedNodeUpdateRecord": () => (/* binding */ ExpandedNodeUpdateRecord),
280106
280065
  /* harmony export */ "HierarchyCompareInfo": () => (/* binding */ HierarchyCompareInfo),
280107
- /* harmony export */ "HierarchyUpdateInfo": () => (/* binding */ HierarchyUpdateInfo),
280108
- /* harmony export */ "HierarchyUpdateRecord": () => (/* binding */ HierarchyUpdateRecord),
280109
280066
  /* harmony export */ "PartialHierarchyModification": () => (/* binding */ PartialHierarchyModification),
280110
- /* harmony export */ "UPDATE_FULL": () => (/* binding */ UPDATE_FULL),
280111
- /* harmony export */ "UpdateInfo": () => (/* binding */ UpdateInfo)
280067
+ /* harmony export */ "UPDATE_FULL": () => (/* binding */ UPDATE_FULL)
280112
280068
  /* harmony export */ });
280113
280069
  /* harmony import */ var _hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./hierarchy/Key */ "../../presentation/common/lib/esm/presentation-common/hierarchy/Key.js");
280114
280070
  /* harmony import */ var _hierarchy_Node__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./hierarchy/Node */ "../../presentation/common/lib/esm/presentation-common/hierarchy/Node.js");
@@ -280123,118 +280079,6 @@ __webpack_require__.r(__webpack_exports__);
280123
280079
 
280124
280080
  /** @alpha */
280125
280081
  const UPDATE_FULL = "FULL";
280126
- /** @alpha */
280127
- var UpdateInfo;
280128
- (function (UpdateInfo) {
280129
- /** Serialize given object to JSON. */
280130
- function toJSON(obj) {
280131
- const json = {};
280132
- for (const imodel in obj) {
280133
- // istanbul ignore if
280134
- if (!obj.hasOwnProperty(imodel))
280135
- continue;
280136
- json[imodel] = {};
280137
- const rulesetObj = obj[imodel];
280138
- for (const rulesetId in rulesetObj) {
280139
- // istanbul ignore if
280140
- if (!rulesetObj.hasOwnProperty(rulesetId))
280141
- continue;
280142
- json[imodel][rulesetId] = {
280143
- hierarchy: rulesetObj[rulesetId].hierarchy ? HierarchyUpdateInfo.toJSON(rulesetObj[rulesetId].hierarchy) : undefined,
280144
- content: rulesetObj[rulesetId].content,
280145
- };
280146
- }
280147
- }
280148
- return json;
280149
- }
280150
- UpdateInfo.toJSON = toJSON;
280151
- /** Deserialize given object from JSON */
280152
- function fromJSON(json) {
280153
- const obj = {};
280154
- for (const imodel in json) {
280155
- // istanbul ignore if
280156
- if (!json.hasOwnProperty(imodel))
280157
- continue;
280158
- obj[imodel] = {};
280159
- const rulesetJson = json[imodel];
280160
- for (const rulesetId in rulesetJson) {
280161
- // istanbul ignore if
280162
- if (!rulesetJson.hasOwnProperty(rulesetId))
280163
- continue;
280164
- obj[imodel][rulesetId] = {
280165
- hierarchy: rulesetJson[rulesetId].hierarchy ? HierarchyUpdateInfo.fromJSON(rulesetJson[rulesetId].hierarchy) : undefined,
280166
- content: rulesetJson[rulesetId].content,
280167
- };
280168
- }
280169
- }
280170
- return obj;
280171
- }
280172
- UpdateInfo.fromJSON = fromJSON;
280173
- })(UpdateInfo || (UpdateInfo = {}));
280174
- /** @alpha */
280175
- var ExpandedNodeUpdateRecord;
280176
- (function (ExpandedNodeUpdateRecord) {
280177
- /** Serialize given object to JSON. */
280178
- function toJSON(obj) {
280179
- return {
280180
- ...obj,
280181
- // eslint-disable-next-line deprecation/deprecation
280182
- node: _hierarchy_Node__WEBPACK_IMPORTED_MODULE_1__.Node.toJSON(obj.node),
280183
- };
280184
- }
280185
- ExpandedNodeUpdateRecord.toJSON = toJSON;
280186
- /** Deserialize given object from JSON */
280187
- function fromJSON(json) {
280188
- return {
280189
- ...json,
280190
- // eslint-disable-next-line deprecation/deprecation
280191
- node: _hierarchy_Node__WEBPACK_IMPORTED_MODULE_1__.Node.fromJSON(json.node),
280192
- };
280193
- }
280194
- ExpandedNodeUpdateRecord.fromJSON = fromJSON;
280195
- })(ExpandedNodeUpdateRecord || (ExpandedNodeUpdateRecord = {}));
280196
- /** @alpha */
280197
- var HierarchyUpdateRecord;
280198
- (function (HierarchyUpdateRecord) {
280199
- /** Serialize given object to JSON. */
280200
- function toJSON(obj) {
280201
- return {
280202
- ...obj,
280203
- // eslint-disable-next-line deprecation/deprecation
280204
- parent: obj.parent ? _hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.toJSON(obj.parent) : undefined,
280205
- expandedNodes: obj.expandedNodes ? obj.expandedNodes.map(ExpandedNodeUpdateRecord.toJSON) : undefined,
280206
- };
280207
- }
280208
- HierarchyUpdateRecord.toJSON = toJSON;
280209
- /** Deserialize given object from JSON */
280210
- function fromJSON(json) {
280211
- return {
280212
- ...json,
280213
- // eslint-disable-next-line deprecation/deprecation
280214
- parent: json.parent ? _hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__.NodeKey.fromJSON(json.parent) : undefined,
280215
- expandedNodes: json.expandedNodes ? json.expandedNodes.map(ExpandedNodeUpdateRecord.fromJSON) : undefined,
280216
- };
280217
- }
280218
- HierarchyUpdateRecord.fromJSON = fromJSON;
280219
- })(HierarchyUpdateRecord || (HierarchyUpdateRecord = {}));
280220
- /** @alpha */
280221
- var HierarchyUpdateInfo;
280222
- (function (HierarchyUpdateInfo) {
280223
- /** Serialize given object to JSON. */
280224
- function toJSON(obj) {
280225
- if (typeof obj === "string")
280226
- return obj;
280227
- return obj.map(HierarchyUpdateRecord.toJSON);
280228
- }
280229
- HierarchyUpdateInfo.toJSON = toJSON;
280230
- /** Deserialize given object from JSON */
280231
- function fromJSON(json) {
280232
- if (typeof json === "string")
280233
- return json;
280234
- return json.map(HierarchyUpdateRecord.fromJSON);
280235
- }
280236
- HierarchyUpdateInfo.fromJSON = fromJSON;
280237
- })(HierarchyUpdateInfo || (HierarchyUpdateInfo = {}));
280238
280082
  /** @public */
280239
280083
  var PartialHierarchyModification;
280240
280084
  (function (PartialHierarchyModification) {
@@ -281808,6 +281652,158 @@ var Property;
281808
281652
  })(Property || (Property = {}));
281809
281653
 
281810
281654
 
281655
+ /***/ }),
281656
+
281657
+ /***/ "../../presentation/common/lib/esm/presentation-common/content/PropertyValueFormatter.js":
281658
+ /*!***********************************************************************************************!*\
281659
+ !*** ../../presentation/common/lib/esm/presentation-common/content/PropertyValueFormatter.js ***!
281660
+ \***********************************************************************************************/
281661
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
281662
+
281663
+ "use strict";
281664
+ __webpack_require__.r(__webpack_exports__);
281665
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
281666
+ /* harmony export */ "ContentFormatter": () => (/* binding */ ContentFormatter),
281667
+ /* harmony export */ "ContentPropertyValueFormatter": () => (/* binding */ ContentPropertyValueFormatter)
281668
+ /* harmony export */ });
281669
+ /* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
281670
+ /* harmony import */ var _TypeDescription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TypeDescription */ "../../presentation/common/lib/esm/presentation-common/content/TypeDescription.js");
281671
+ /* harmony import */ var _Value__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Value */ "../../presentation/common/lib/esm/presentation-common/content/Value.js");
281672
+ /*---------------------------------------------------------------------------------------------
281673
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
281674
+ * See LICENSE.md in the project root for license terms and full copyright notice.
281675
+ *--------------------------------------------------------------------------------------------*/
281676
+ /** @packageDocumentation
281677
+ * @module Content
281678
+ */
281679
+
281680
+
281681
+
281682
+ /** @alpha */
281683
+ class ContentFormatter {
281684
+ constructor(_propertyValueFormatter, _unitSystem) {
281685
+ this._propertyValueFormatter = _propertyValueFormatter;
281686
+ this._unitSystem = _unitSystem;
281687
+ }
281688
+ async formatContent(content) {
281689
+ const descriptor = content.descriptor;
281690
+ for (const item of content.contentSet) {
281691
+ await this.formatValues(item.values, item.displayValues, descriptor.fields, item.mergedFieldNames);
281692
+ }
281693
+ return content;
281694
+ }
281695
+ async formatValues(values, displayValues, fields, mergedFields) {
281696
+ for (const field of fields) {
281697
+ const value = values[field.name];
281698
+ // format display value of merged values
281699
+ if (mergedFields.includes(field.name)) {
281700
+ displayValues[field.name] = "@Presentation:label.varies@";
281701
+ continue;
281702
+ }
281703
+ // format display values of nested content field
281704
+ if (field.isNestedContentField()) {
281705
+ (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(_Value__WEBPACK_IMPORTED_MODULE_2__.Value.isNestedContent(value));
281706
+ await this.formatNestedContentDisplayValues(value, field.nestedFields);
281707
+ continue;
281708
+ }
281709
+ displayValues[field.name] = await this._propertyValueFormatter.formatPropertyValue(field, value, this._unitSystem);
281710
+ }
281711
+ }
281712
+ async formatNestedContentDisplayValues(nestedValues, fields) {
281713
+ for (const nestedValue of nestedValues) {
281714
+ await this.formatValues(nestedValue.values, nestedValue.displayValues, fields, nestedValue.mergedFieldNames);
281715
+ }
281716
+ }
281717
+ }
281718
+ /** @alpha */
281719
+ class ContentPropertyValueFormatter {
281720
+ constructor(_koqValueFormatter) {
281721
+ this._koqValueFormatter = _koqValueFormatter;
281722
+ }
281723
+ async formatPropertyValue(field, value, unitSystem) {
281724
+ if (isFieldWithKoq(field) && typeof value === "number") {
281725
+ const koq = field.properties[0].property.kindOfQuantity;
281726
+ const formattedValue = await this._koqValueFormatter.format(value, { koqName: koq.name, unitSystem });
281727
+ if (formattedValue !== undefined)
281728
+ return formattedValue;
281729
+ }
281730
+ return this.formatValue(field.type, value);
281731
+ }
281732
+ formatValue(type, value) {
281733
+ switch (type.valueFormat) {
281734
+ case _TypeDescription__WEBPACK_IMPORTED_MODULE_1__.PropertyValueFormat.Primitive:
281735
+ return this.formatPrimitiveValue(type, value);
281736
+ case _TypeDescription__WEBPACK_IMPORTED_MODULE_1__.PropertyValueFormat.Array:
281737
+ return this.formatArrayValue(type, value);
281738
+ case _TypeDescription__WEBPACK_IMPORTED_MODULE_1__.PropertyValueFormat.Struct:
281739
+ return this.formatStructValue(type, value);
281740
+ }
281741
+ }
281742
+ formatPrimitiveValue(type, value) {
281743
+ if (value === undefined)
281744
+ return "";
281745
+ if (type.typeName === "point2d" && isPoint2d(value)) {
281746
+ return `X: ${formatDouble(value.x)} Y: ${formatDouble(value.y)}`;
281747
+ }
281748
+ if (type.typeName === "point3d" && isPoint3d(value)) {
281749
+ return `X: ${formatDouble(value.x)} Y: ${formatDouble(value.y)} Z: ${formatDouble(value.z)}`;
281750
+ }
281751
+ if (type.typeName === "dateTime") {
281752
+ (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(typeof value === "string");
281753
+ return value;
281754
+ }
281755
+ if (type.typeName === "bool" || type.typeName === "boolean") {
281756
+ (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(typeof value === "boolean");
281757
+ return value ? "@Presentation:value.true@" : "@Presentation:value.false@";
281758
+ }
281759
+ if (type.typeName === "int" || type.typeName === "long") {
281760
+ (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(isNumber(value));
281761
+ return value.toFixed(0);
281762
+ }
281763
+ if (type.typeName === "double") {
281764
+ (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(isNumber(value));
281765
+ return formatDouble(value);
281766
+ }
281767
+ if (type.typeName === "navigation") {
281768
+ (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(_Value__WEBPACK_IMPORTED_MODULE_2__.Value.isNavigationValue(value));
281769
+ return value.label.displayValue;
281770
+ }
281771
+ return value.toString();
281772
+ }
281773
+ formatStructValue(type, value) {
281774
+ if (!_Value__WEBPACK_IMPORTED_MODULE_2__.Value.isMap(value))
281775
+ return {};
281776
+ const formattedMember = {};
281777
+ for (const member of type.members) {
281778
+ formattedMember[member.name] = this.formatValue(member.type, value[member.name]);
281779
+ }
281780
+ return formattedMember;
281781
+ }
281782
+ formatArrayValue(type, value) {
281783
+ if (!_Value__WEBPACK_IMPORTED_MODULE_2__.Value.isArray(value))
281784
+ return [];
281785
+ return value.map((arrayVal) => this.formatValue(type.memberType, arrayVal));
281786
+ }
281787
+ }
281788
+ function formatDouble(value) {
281789
+ return value.toFixed(2);
281790
+ }
281791
+ function isFieldWithKoq(field) {
281792
+ return field.isPropertiesField()
281793
+ && field.properties.length > 0
281794
+ && field.properties[0].property.kindOfQuantity !== undefined;
281795
+ }
281796
+ function isPoint2d(obj) {
281797
+ return obj !== undefined && isNumber(obj.x) && isNumber(obj.y);
281798
+ }
281799
+ function isPoint3d(obj) {
281800
+ return isPoint2d(obj) && isNumber(obj.z);
281801
+ }
281802
+ function isNumber(obj) {
281803
+ return !isNaN(Number(obj));
281804
+ }
281805
+
281806
+
281811
281807
  /***/ }),
281812
281808
 
281813
281809
  /***/ "../../presentation/common/lib/esm/presentation-common/content/Renderer.js":
@@ -281909,6 +281905,14 @@ var Value;
281909
281905
  return isNestedContentValue(value);
281910
281906
  }
281911
281907
  Value.isNestedContent = isNestedContent;
281908
+ /** Is the value a navigation value */
281909
+ function isNavigationValue(value) {
281910
+ return value !== undefined
281911
+ && value.id !== undefined
281912
+ && value.className !== undefined
281913
+ && value.label !== undefined;
281914
+ }
281915
+ Value.isNavigationValue = isNavigationValue;
281912
281916
  /**
281913
281917
  * Serialize [[Value]] to JSON
281914
281918
  * @deprecated in 3.x. Use [[Value]]
@@ -283628,34 +283632,33 @@ __webpack_require__.r(__webpack_exports__);
283628
283632
  /* harmony export */ "FAVORITE_PROPERTIES_SETTING_NAME": () => (/* reexport safe */ _presentation_frontend_favorite_properties_FavoritePropertiesStorage__WEBPACK_IMPORTED_MODULE_5__.FAVORITE_PROPERTIES_SETTING_NAME),
283629
283633
  /* harmony export */ "FavoritePropertiesManager": () => (/* reexport safe */ _presentation_frontend_favorite_properties_FavoritePropertiesManager__WEBPACK_IMPORTED_MODULE_4__.FavoritePropertiesManager),
283630
283634
  /* harmony export */ "FavoritePropertiesScope": () => (/* reexport safe */ _presentation_frontend_favorite_properties_FavoritePropertiesManager__WEBPACK_IMPORTED_MODULE_4__.FavoritePropertiesScope),
283631
- /* harmony export */ "HILITE_RULESET": () => (/* reexport safe */ _presentation_frontend_selection_HiliteSetProvider__WEBPACK_IMPORTED_MODULE_14__.HILITE_RULESET),
283632
- /* harmony export */ "HiliteSetProvider": () => (/* reexport safe */ _presentation_frontend_selection_HiliteSetProvider__WEBPACK_IMPORTED_MODULE_14__.HiliteSetProvider),
283635
+ /* harmony export */ "HILITE_RULESET": () => (/* reexport safe */ _presentation_frontend_selection_HiliteSetProvider__WEBPACK_IMPORTED_MODULE_13__.HILITE_RULESET),
283636
+ /* harmony export */ "HiliteSetProvider": () => (/* reexport safe */ _presentation_frontend_selection_HiliteSetProvider__WEBPACK_IMPORTED_MODULE_13__.HiliteSetProvider),
283633
283637
  /* harmony export */ "IMODELJS_PRESENTATION_SETTING_NAMESPACE": () => (/* reexport safe */ _presentation_frontend_favorite_properties_FavoritePropertiesStorage__WEBPACK_IMPORTED_MODULE_5__.IMODELJS_PRESENTATION_SETTING_NAMESPACE),
283634
283638
  /* harmony export */ "IModelAppFavoritePropertiesStorage": () => (/* reexport safe */ _presentation_frontend_favorite_properties_FavoritePropertiesStorage__WEBPACK_IMPORTED_MODULE_5__.IModelAppFavoritePropertiesStorage),
283635
283639
  /* harmony export */ "NoopFavoritePropertiesStorage": () => (/* reexport safe */ _presentation_frontend_favorite_properties_FavoritePropertiesStorage__WEBPACK_IMPORTED_MODULE_5__.NoopFavoritePropertiesStorage),
283636
283640
  /* harmony export */ "OfflineCachingFavoritePropertiesStorage": () => (/* reexport safe */ _presentation_frontend_favorite_properties_FavoritePropertiesStorage__WEBPACK_IMPORTED_MODULE_5__.OfflineCachingFavoritePropertiesStorage),
283637
283641
  /* harmony export */ "Presentation": () => (/* reexport safe */ _presentation_frontend_Presentation__WEBPACK_IMPORTED_MODULE_0__.Presentation),
283638
- /* harmony export */ "PresentationFrontendLoggerCategory": () => (/* reexport safe */ _presentation_frontend_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_8__.PresentationFrontendLoggerCategory),
283642
+ /* harmony export */ "PresentationFrontendLoggerCategory": () => (/* reexport safe */ _presentation_frontend_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_7__.PresentationFrontendLoggerCategory),
283639
283643
  /* harmony export */ "PresentationManager": () => (/* reexport safe */ _presentation_frontend_PresentationManager__WEBPACK_IMPORTED_MODULE_1__.PresentationManager),
283640
283644
  /* harmony export */ "RulesetManagerImpl": () => (/* reexport safe */ _presentation_frontend_RulesetManager__WEBPACK_IMPORTED_MODULE_2__.RulesetManagerImpl),
283641
283645
  /* harmony export */ "RulesetVariablesManagerImpl": () => (/* reexport safe */ _presentation_frontend_RulesetVariablesManager__WEBPACK_IMPORTED_MODULE_3__.RulesetVariablesManagerImpl),
283642
- /* harmony export */ "SelectionChangeEvent": () => (/* reexport safe */ _presentation_frontend_selection_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_9__.SelectionChangeEvent),
283643
- /* harmony export */ "SelectionChangeType": () => (/* reexport safe */ _presentation_frontend_selection_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_9__.SelectionChangeType),
283644
- /* harmony export */ "SelectionHandler": () => (/* reexport safe */ _presentation_frontend_selection_SelectionHandler__WEBPACK_IMPORTED_MODULE_13__.SelectionHandler),
283645
- /* harmony export */ "SelectionHelper": () => (/* reexport safe */ _presentation_frontend_selection_SelectionHelper__WEBPACK_IMPORTED_MODULE_15__.SelectionHelper),
283646
- /* harmony export */ "SelectionManager": () => (/* reexport safe */ _presentation_frontend_selection_SelectionManager__WEBPACK_IMPORTED_MODULE_11__.SelectionManager),
283647
- /* harmony export */ "SelectionScopesManager": () => (/* reexport safe */ _presentation_frontend_selection_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_12__.SelectionScopesManager),
283648
- /* harmony export */ "StateTracker": () => (/* reexport safe */ _presentation_frontend_StateTracker__WEBPACK_IMPORTED_MODULE_6__.StateTracker),
283649
- /* harmony export */ "TRANSIENT_ELEMENT_CLASSNAME": () => (/* reexport safe */ _presentation_frontend_selection_SelectionManager__WEBPACK_IMPORTED_MODULE_11__.TRANSIENT_ELEMENT_CLASSNAME),
283650
- /* harmony export */ "ToolSelectionSyncHandler": () => (/* reexport safe */ _presentation_frontend_selection_SelectionManager__WEBPACK_IMPORTED_MODULE_11__.ToolSelectionSyncHandler),
283646
+ /* harmony export */ "SelectionChangeEvent": () => (/* reexport safe */ _presentation_frontend_selection_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_8__.SelectionChangeEvent),
283647
+ /* harmony export */ "SelectionChangeType": () => (/* reexport safe */ _presentation_frontend_selection_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_8__.SelectionChangeType),
283648
+ /* harmony export */ "SelectionHandler": () => (/* reexport safe */ _presentation_frontend_selection_SelectionHandler__WEBPACK_IMPORTED_MODULE_12__.SelectionHandler),
283649
+ /* harmony export */ "SelectionHelper": () => (/* reexport safe */ _presentation_frontend_selection_SelectionHelper__WEBPACK_IMPORTED_MODULE_14__.SelectionHelper),
283650
+ /* harmony export */ "SelectionManager": () => (/* reexport safe */ _presentation_frontend_selection_SelectionManager__WEBPACK_IMPORTED_MODULE_10__.SelectionManager),
283651
+ /* harmony export */ "SelectionScopesManager": () => (/* reexport safe */ _presentation_frontend_selection_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_11__.SelectionScopesManager),
283652
+ /* harmony export */ "TRANSIENT_ELEMENT_CLASSNAME": () => (/* reexport safe */ _presentation_frontend_selection_SelectionManager__WEBPACK_IMPORTED_MODULE_10__.TRANSIENT_ELEMENT_CLASSNAME),
283653
+ /* harmony export */ "ToolSelectionSyncHandler": () => (/* reexport safe */ _presentation_frontend_selection_SelectionManager__WEBPACK_IMPORTED_MODULE_10__.ToolSelectionSyncHandler),
283651
283654
  /* harmony export */ "buildPagedArrayResponse": () => (/* reexport safe */ _presentation_frontend_PresentationManager__WEBPACK_IMPORTED_MODULE_1__.buildPagedArrayResponse),
283652
- /* harmony export */ "consoleDiagnosticsHandler": () => (/* reexport safe */ _presentation_frontend_Diagnostics__WEBPACK_IMPORTED_MODULE_7__.consoleDiagnosticsHandler),
283653
- /* harmony export */ "createCombinedDiagnosticsHandler": () => (/* reexport safe */ _presentation_frontend_Diagnostics__WEBPACK_IMPORTED_MODULE_7__.createCombinedDiagnosticsHandler),
283655
+ /* harmony export */ "consoleDiagnosticsHandler": () => (/* reexport safe */ _presentation_frontend_Diagnostics__WEBPACK_IMPORTED_MODULE_6__.consoleDiagnosticsHandler),
283656
+ /* harmony export */ "createCombinedDiagnosticsHandler": () => (/* reexport safe */ _presentation_frontend_Diagnostics__WEBPACK_IMPORTED_MODULE_6__.createCombinedDiagnosticsHandler),
283654
283657
  /* harmony export */ "createFavoritePropertiesStorage": () => (/* reexport safe */ _presentation_frontend_favorite_properties_FavoritePropertiesStorage__WEBPACK_IMPORTED_MODULE_5__.createFavoritePropertiesStorage),
283655
283658
  /* harmony export */ "createFieldOrderInfos": () => (/* reexport safe */ _presentation_frontend_favorite_properties_FavoritePropertiesManager__WEBPACK_IMPORTED_MODULE_4__.createFieldOrderInfos),
283656
- /* harmony export */ "createSelectionScopeProps": () => (/* reexport safe */ _presentation_frontend_selection_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_12__.createSelectionScopeProps),
283659
+ /* harmony export */ "createSelectionScopeProps": () => (/* reexport safe */ _presentation_frontend_selection_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_11__.createSelectionScopeProps),
283657
283660
  /* harmony export */ "getFieldInfos": () => (/* reexport safe */ _presentation_frontend_favorite_properties_FavoritePropertiesManager__WEBPACK_IMPORTED_MODULE_4__.getFieldInfos),
283658
- /* harmony export */ "getScopeId": () => (/* reexport safe */ _presentation_frontend_selection_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_12__.getScopeId)
283661
+ /* harmony export */ "getScopeId": () => (/* reexport safe */ _presentation_frontend_selection_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_11__.getScopeId)
283659
283662
  /* harmony export */ });
283660
283663
  /* harmony import */ var _presentation_frontend_Presentation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./presentation-frontend/Presentation */ "../../presentation/frontend/lib/esm/presentation-frontend/Presentation.js");
283661
283664
  /* harmony import */ var _presentation_frontend_PresentationManager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./presentation-frontend/PresentationManager */ "../../presentation/frontend/lib/esm/presentation-frontend/PresentationManager.js");
@@ -283663,16 +283666,15 @@ __webpack_require__.r(__webpack_exports__);
283663
283666
  /* harmony import */ var _presentation_frontend_RulesetVariablesManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./presentation-frontend/RulesetVariablesManager */ "../../presentation/frontend/lib/esm/presentation-frontend/RulesetVariablesManager.js");
283664
283667
  /* harmony import */ var _presentation_frontend_favorite_properties_FavoritePropertiesManager__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./presentation-frontend/favorite-properties/FavoritePropertiesManager */ "../../presentation/frontend/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesManager.js");
283665
283668
  /* harmony import */ var _presentation_frontend_favorite_properties_FavoritePropertiesStorage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./presentation-frontend/favorite-properties/FavoritePropertiesStorage */ "../../presentation/frontend/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesStorage.js");
283666
- /* harmony import */ var _presentation_frontend_StateTracker__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./presentation-frontend/StateTracker */ "../../presentation/frontend/lib/esm/presentation-frontend/StateTracker.js");
283667
- /* harmony import */ var _presentation_frontend_Diagnostics__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./presentation-frontend/Diagnostics */ "../../presentation/frontend/lib/esm/presentation-frontend/Diagnostics.js");
283668
- /* harmony import */ var _presentation_frontend_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./presentation-frontend/FrontendLoggerCategory */ "../../presentation/frontend/lib/esm/presentation-frontend/FrontendLoggerCategory.js");
283669
- /* harmony import */ var _presentation_frontend_selection_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./presentation-frontend/selection/SelectionChangeEvent */ "../../presentation/frontend/lib/esm/presentation-frontend/selection/SelectionChangeEvent.js");
283670
- /* harmony import */ var _presentation_frontend_selection_ISelectionProvider__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./presentation-frontend/selection/ISelectionProvider */ "../../presentation/frontend/lib/esm/presentation-frontend/selection/ISelectionProvider.js");
283671
- /* harmony import */ var _presentation_frontend_selection_SelectionManager__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./presentation-frontend/selection/SelectionManager */ "../../presentation/frontend/lib/esm/presentation-frontend/selection/SelectionManager.js");
283672
- /* harmony import */ var _presentation_frontend_selection_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./presentation-frontend/selection/SelectionScopesManager */ "../../presentation/frontend/lib/esm/presentation-frontend/selection/SelectionScopesManager.js");
283673
- /* harmony import */ var _presentation_frontend_selection_SelectionHandler__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./presentation-frontend/selection/SelectionHandler */ "../../presentation/frontend/lib/esm/presentation-frontend/selection/SelectionHandler.js");
283674
- /* harmony import */ var _presentation_frontend_selection_HiliteSetProvider__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./presentation-frontend/selection/HiliteSetProvider */ "../../presentation/frontend/lib/esm/presentation-frontend/selection/HiliteSetProvider.js");
283675
- /* harmony import */ var _presentation_frontend_selection_SelectionHelper__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./presentation-frontend/selection/SelectionHelper */ "../../presentation/frontend/lib/esm/presentation-frontend/selection/SelectionHelper.js");
283669
+ /* harmony import */ var _presentation_frontend_Diagnostics__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./presentation-frontend/Diagnostics */ "../../presentation/frontend/lib/esm/presentation-frontend/Diagnostics.js");
283670
+ /* harmony import */ var _presentation_frontend_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./presentation-frontend/FrontendLoggerCategory */ "../../presentation/frontend/lib/esm/presentation-frontend/FrontendLoggerCategory.js");
283671
+ /* harmony import */ var _presentation_frontend_selection_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./presentation-frontend/selection/SelectionChangeEvent */ "../../presentation/frontend/lib/esm/presentation-frontend/selection/SelectionChangeEvent.js");
283672
+ /* harmony import */ var _presentation_frontend_selection_ISelectionProvider__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./presentation-frontend/selection/ISelectionProvider */ "../../presentation/frontend/lib/esm/presentation-frontend/selection/ISelectionProvider.js");
283673
+ /* harmony import */ var _presentation_frontend_selection_SelectionManager__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./presentation-frontend/selection/SelectionManager */ "../../presentation/frontend/lib/esm/presentation-frontend/selection/SelectionManager.js");
283674
+ /* harmony import */ var _presentation_frontend_selection_SelectionScopesManager__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./presentation-frontend/selection/SelectionScopesManager */ "../../presentation/frontend/lib/esm/presentation-frontend/selection/SelectionScopesManager.js");
283675
+ /* harmony import */ var _presentation_frontend_selection_SelectionHandler__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./presentation-frontend/selection/SelectionHandler */ "../../presentation/frontend/lib/esm/presentation-frontend/selection/SelectionHandler.js");
283676
+ /* harmony import */ var _presentation_frontend_selection_HiliteSetProvider__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./presentation-frontend/selection/HiliteSetProvider */ "../../presentation/frontend/lib/esm/presentation-frontend/selection/HiliteSetProvider.js");
283677
+ /* harmony import */ var _presentation_frontend_selection_SelectionHelper__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./presentation-frontend/selection/SelectionHelper */ "../../presentation/frontend/lib/esm/presentation-frontend/selection/SelectionHelper.js");
283676
283678
  /*---------------------------------------------------------------------------------------------
283677
283679
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
283678
283680
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -283690,7 +283692,6 @@ __webpack_require__.r(__webpack_exports__);
283690
283692
 
283691
283693
 
283692
283694
 
283693
-
283694
283695
  /**
283695
283696
  * @module Logging
283696
283697
  *
@@ -283903,32 +283904,23 @@ __webpack_require__.r(__webpack_exports__);
283903
283904
  /** @internal */
283904
283905
  class IpcRequestsHandler {
283905
283906
  constructor(clientId) {
283907
+ this._ipcProxy = _itwin_core_frontend__WEBPACK_IMPORTED_MODULE_0__.IpcApp.makeIpcProxy(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_1__.PRESENTATION_IPC_CHANNEL_NAME);
283906
283908
  this.clientId = clientId;
283907
283909
  }
283908
- async call(methodName, ...args) {
283909
- return _itwin_core_frontend__WEBPACK_IMPORTED_MODULE_0__.IpcApp.callIpcChannel(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_1__.PRESENTATION_IPC_CHANNEL_NAME, methodName, ...args);
283910
- }
283911
283910
  async setRulesetVariable(params) {
283912
283911
  const jsonParams = {
283913
283912
  ...params,
283914
283913
  clientId: this.clientId,
283915
283914
  variable: _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_1__.RulesetVariable.toJSON(params.variable),
283916
283915
  };
283917
- return this.call("setRulesetVariable", jsonParams);
283916
+ return this._ipcProxy.setRulesetVariable(jsonParams);
283918
283917
  }
283919
283918
  async unsetRulesetVariable(params) {
283920
283919
  const jsonParams = {
283921
283920
  ...params,
283922
283921
  clientId: this.clientId,
283923
283922
  };
283924
- return this.call("unsetRulesetVariable", jsonParams);
283925
- }
283926
- async updateHierarchyState(params) {
283927
- const jsonParams = {
283928
- ...params,
283929
- clientId: this.clientId,
283930
- };
283931
- return this.call("updateHierarchyState", jsonParams);
283923
+ return this._ipcProxy.unsetRulesetVariable(jsonParams);
283932
283924
  }
283933
283925
  }
283934
283926
 
@@ -284177,7 +284169,6 @@ __webpack_require__.r(__webpack_exports__);
284177
284169
  /* harmony import */ var _RulesetManager__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./RulesetManager */ "../../presentation/frontend/lib/esm/presentation-frontend/RulesetManager.js");
284178
284170
  /* harmony import */ var _RulesetVariablesManager__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./RulesetVariablesManager */ "../../presentation/frontend/lib/esm/presentation-frontend/RulesetVariablesManager.js");
284179
284171
  /* harmony import */ var _selection_SelectionManager__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./selection/SelectionManager */ "../../presentation/frontend/lib/esm/presentation-frontend/selection/SelectionManager.js");
284180
- /* harmony import */ var _StateTracker__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./StateTracker */ "../../presentation/frontend/lib/esm/presentation-frontend/StateTracker.js");
284181
284172
  /*---------------------------------------------------------------------------------------------
284182
284173
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
284183
284174
  * See LICENSE.md in the project root for license terms and full copyright notice.
@@ -284193,7 +284184,6 @@ __webpack_require__.r(__webpack_exports__);
284193
284184
 
284194
284185
 
284195
284186
 
284196
-
284197
284187
  /**
284198
284188
  * Frontend Presentation manager which basically just forwards all calls to
284199
284189
  * the backend implementation.
@@ -284226,7 +284216,7 @@ class PresentationManager {
284226
284216
  // eslint-disable-next-line @typescript-eslint/naming-convention
284227
284217
  this.onUpdate = (_evt, report) => {
284228
284218
  // eslint-disable-next-line @typescript-eslint/no-floating-promises
284229
- this.handleUpdateAsync(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.UpdateInfo.fromJSON(report));
284219
+ this.handleUpdateAsync(report);
284230
284220
  };
284231
284221
  if (props) {
284232
284222
  // eslint-disable-next-line deprecation/deprecation
@@ -284237,11 +284227,11 @@ class PresentationManager {
284237
284227
  this._rulesets = _RulesetManager__WEBPACK_IMPORTED_MODULE_5__.RulesetManagerImpl.create();
284238
284228
  this._localizationHelper = new _LocalizationHelper__WEBPACK_IMPORTED_MODULE_4__.FrontendLocalizationHelper(props?.activeLocale);
284239
284229
  this._connections = new Map();
284230
+ this._schemaContextProvider = props?.schemaContextProvider;
284240
284231
  if (_itwin_core_frontend__WEBPACK_IMPORTED_MODULE_1__.IpcApp.isValid) {
284241
284232
  // Ipc only works in ipc apps, so the `onUpdate` callback will only be called there.
284242
284233
  this._clearEventListener = _itwin_core_frontend__WEBPACK_IMPORTED_MODULE_1__.IpcApp.addListener(_itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.PresentationIpcEvents.Update, this.onUpdate);
284243
284234
  this._ipcRequestsHandler = props?.ipcRequestsHandler ?? new _IpcRequestsHandler__WEBPACK_IMPORTED_MODULE_3__.IpcRequestsHandler(this._requestsHandler.clientId);
284244
- this._stateTracker = props?.stateTracker ?? new _StateTracker__WEBPACK_IMPORTED_MODULE_8__.StateTracker(this._ipcRequestsHandler);
284245
284235
  }
284246
284236
  }
284247
284237
  /** Get / set active locale used for localizing presentation data */
@@ -284299,8 +284289,6 @@ class PresentationManager {
284299
284289
  get rpcRequestsHandler() { return this._requestsHandler; }
284300
284290
  /** @internal */
284301
284291
  get ipcRequestsHandler() { return this._ipcRequestsHandler; }
284302
- /** @internal */
284303
- get stateTracker() { return this._stateTracker; }
284304
284292
  /**
284305
284293
  * Get rulesets manager
284306
284294
  */
@@ -284459,6 +284447,7 @@ class PresentationManager {
284459
284447
  ...options,
284460
284448
  descriptor: getDescriptorOverrides(requestOptions.descriptor),
284461
284449
  keys: stripTransientElementKeys(requestOptions.keys).toJSON(),
284450
+ ...(!requestOptions.omitFormattedValues && this._schemaContextProvider !== undefined ? { omitFormattedValues: true } : undefined),
284462
284451
  });
284463
284452
  let descriptor = (requestOptions.descriptor instanceof _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.Descriptor) ? requestOptions.descriptor : undefined;
284464
284453
  const result = await buildPagedArrayResponse(options.paging, async (partialPageOptions, requestIndex) => {
@@ -284475,9 +284464,15 @@ class PresentationManager {
284475
284464
  if (!descriptor)
284476
284465
  return undefined;
284477
284466
  const items = result.items.map((itemJson) => _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.Item.fromJSON(itemJson)).filter((item) => (item !== undefined));
284467
+ const resultContent = new _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.Content(descriptor, items);
284468
+ if (!requestOptions.omitFormattedValues && this._schemaContextProvider) {
284469
+ const koqPropertyFormatter = new _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.KoqPropertyValueFormatter(this._schemaContextProvider(requestOptions.imodel));
284470
+ const contentFormatter = new _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.ContentFormatter(new _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.ContentPropertyValueFormatter(koqPropertyFormatter), _itwin_core_frontend__WEBPACK_IMPORTED_MODULE_1__.IModelApp.quantityFormatter.activeUnitSystem);
284471
+ await contentFormatter.formatContent(resultContent);
284472
+ }
284478
284473
  return {
284479
284474
  size: result.total,
284480
- content: this._localizationHelper.getLocalizedContent(new _itwin_presentation_common__WEBPACK_IMPORTED_MODULE_2__.Content(descriptor, items)),
284475
+ content: this._localizationHelper.getLocalizedContent(resultContent),
284481
284476
  };
284482
284477
  }
284483
284478
  /** Retrieves distinct values of specific field from the content. */
@@ -284919,146 +284914,6 @@ function arraysEqual(lhs, rhs) {
284919
284914
  }
284920
284915
 
284921
284916
 
284922
- /***/ }),
284923
-
284924
- /***/ "../../presentation/frontend/lib/esm/presentation-frontend/StateTracker.js":
284925
- /*!*********************************************************************************!*\
284926
- !*** ../../presentation/frontend/lib/esm/presentation-frontend/StateTracker.js ***!
284927
- \*********************************************************************************/
284928
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
284929
-
284930
- "use strict";
284931
- __webpack_require__.r(__webpack_exports__);
284932
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
284933
- /* harmony export */ "StateTracker": () => (/* binding */ StateTracker)
284934
- /* harmony export */ });
284935
- /* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
284936
- /*---------------------------------------------------------------------------------------------
284937
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
284938
- * See LICENSE.md in the project root for license terms and full copyright notice.
284939
- *--------------------------------------------------------------------------------------------*/
284940
- /** @packageDocumentation
284941
- * @module Core
284942
- */
284943
-
284944
- /**
284945
- * The tracker stores up-to-date UI state of the hierarchies on the frontend and reports
284946
- * just the state changes to the backend as soon as component sends in a new hierarchy state.
284947
- *
284948
- * @internal
284949
- */
284950
- class StateTracker {
284951
- constructor(ipcRequestsHandler) {
284952
- this._ipcRequestsHandler = ipcRequestsHandler;
284953
- this._hierarchyStates = new Map();
284954
- }
284955
- async updateHierarchyStateIfNeeded(imodelKey, rulesetId, stateChanges) {
284956
- if (stateChanges.length === 0)
284957
- return;
284958
- await this._ipcRequestsHandler.updateHierarchyState({ imodelKey, rulesetId, stateChanges });
284959
- }
284960
- async onHierarchyClosed(imodel, rulesetId, sourceId) {
284961
- const hierarchyState = this._hierarchyStates.get(rulesetId);
284962
- if (!hierarchyState)
284963
- return;
284964
- const stateChanges = [];
284965
- hierarchyState.forEach((entry) => {
284966
- if (!entry.states.has(sourceId)) {
284967
- // the node has no state for this source - nothing to do
284968
- return;
284969
- }
284970
- (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.using)(new MergedNodeStateChangeReporter(entry, stateChanges), (_) => {
284971
- entry.states.delete(sourceId);
284972
- });
284973
- });
284974
- await this.updateHierarchyStateIfNeeded(imodel.key, rulesetId, stateChanges);
284975
- }
284976
- async onHierarchyStateChanged(imodel, rulesetId, sourceId, newHierarchyState) {
284977
- let hierarchyState = this._hierarchyStates.get(rulesetId);
284978
- if (!hierarchyState) {
284979
- if (newHierarchyState.length === 0)
284980
- return;
284981
- hierarchyState = new Map();
284982
- this._hierarchyStates.set(rulesetId, hierarchyState);
284983
- }
284984
- const handledNodeIds = new Set();
284985
- const stateChanges = [];
284986
- // step 1: walk over new state and report all changes
284987
- newHierarchyState.forEach(({ node, state }) => {
284988
- const nodeId = node?.id;
284989
- const nodeKey = node?.key;
284990
- const existingNodeEntry = hierarchyState.get(nodeId);
284991
- if (existingNodeEntry) {
284992
- (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.using)(new MergedNodeStateChangeReporter(existingNodeEntry, stateChanges), (_) => {
284993
- existingNodeEntry.states.set(sourceId, state);
284994
- });
284995
- }
284996
- else {
284997
- hierarchyState.set(nodeId, { key: nodeKey, states: new Map([[sourceId, state]]) });
284998
- stateChanges.push({ ...calculateMergedNodeState([state].values()), nodeKey });
284999
- }
285000
- handledNodeIds.add(nodeId);
285001
- });
285002
- // step 2: walk over old state and remove all state that's not in the new state
285003
- const erasedNodeIds = new Set();
285004
- hierarchyState.forEach((entry, nodeId) => {
285005
- if (handledNodeIds.has(nodeId)) {
285006
- // the node was handled with the new state - nothing to do here
285007
- return;
285008
- }
285009
- if (!entry.states.has(sourceId)) {
285010
- // the node had no state for this source, so it's not affected by this report
285011
- return;
285012
- }
285013
- (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.using)(new MergedNodeStateChangeReporter(entry, stateChanges), (_) => {
285014
- entry.states.delete(sourceId);
285015
- });
285016
- // istanbul ignore next
285017
- if (entry.states.size === 0) {
285018
- // there are no more components holding state for this node
285019
- erasedNodeIds.add(nodeId);
285020
- }
285021
- });
285022
- // step 3: cleanup erased node ids and possibly the whole hierarchy state
285023
- for (const nodeId of erasedNodeIds) {
285024
- hierarchyState.delete(nodeId);
285025
- }
285026
- if (hierarchyState.size === 0)
285027
- this._hierarchyStates.delete(rulesetId);
285028
- // finally, report
285029
- await this.updateHierarchyStateIfNeeded(imodel.key, rulesetId, stateChanges);
285030
- }
285031
- }
285032
- function calculateMergedNodeState(perComponentStates) {
285033
- const merged = {};
285034
- for (const state of perComponentStates) {
285035
- if (state.isExpanded)
285036
- merged.isExpanded = true;
285037
- if (state.instanceFilter) {
285038
- if (!merged.instanceFilters)
285039
- merged.instanceFilters = [state.instanceFilter];
285040
- else if (!merged.instanceFilters.includes(state.instanceFilter))
285041
- merged.instanceFilters.push(state.instanceFilter);
285042
- }
285043
- }
285044
- return merged;
285045
- }
285046
- class MergedNodeStateChangeReporter {
285047
- constructor(entry, outStateChanges) {
285048
- this._entry = entry;
285049
- this._stateBefore = calculateMergedNodeState(this._entry.states.values());
285050
- this._outStateChanges = outStateChanges;
285051
- }
285052
- dispose() {
285053
- const stateAfter = calculateMergedNodeState(this._entry.states.values());
285054
- const expandedFlagsDiffer = !!stateAfter.isExpanded !== !!this._stateBefore.isExpanded;
285055
- const instanceFiltersDiffer = (stateAfter.instanceFilters?.length ?? 0) !== (this._stateBefore.instanceFilters?.length ?? 0);
285056
- if (expandedFlagsDiffer || instanceFiltersDiffer)
285057
- this._outStateChanges.push({ ...stateAfter, nodeKey: this._entry.key });
285058
- }
285059
- }
285060
-
285061
-
285062
284917
  /***/ }),
285063
284918
 
285064
284919
  /***/ "../../presentation/frontend/lib/esm/presentation-frontend/favorite-properties/FavoritePropertiesManager.js":
@@ -297156,7 +297011,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
297156
297011
  /***/ ((module) => {
297157
297012
 
297158
297013
  "use strict";
297159
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.80","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-eslintrc -c \\"./node_modules/@itwin/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.0.0-dev.80","@itwin/core-bentley":"workspace:^4.0.0-dev.80","@itwin/core-common":"workspace:^4.0.0-dev.80","@itwin/core-geometry":"workspace:^4.0.0-dev.80","@itwin/core-orbitgt":"workspace:^4.0.0-dev.80","@itwin/core-quantity":"workspace:^4.0.0-dev.80"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"^4.0.0-dev.33","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^8.2.2","@types/node":"^18.11.5","@types/sinon":"^9.0.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^8.36.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~5.0.2","webpack":"^5.76.0"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/object-storage-azure":"^1.5.0","@itwin/cloud-agnostic-core":"^1.5.0","@itwin/object-storage-core":"^1.5.0","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","wms-capabilities":"0.4.0","reflect-metadata":"0.1.13"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
297014
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.0.0-dev.81","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-eslintrc -c \\"./node_modules/@itwin/eslint-plugin/dist/configs/extension-exports-config.js\\" \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.0.0-dev.81","@itwin/core-bentley":"workspace:^4.0.0-dev.81","@itwin/core-common":"workspace:^4.0.0-dev.81","@itwin/core-geometry":"workspace:^4.0.0-dev.81","@itwin/core-orbitgt":"workspace:^4.0.0-dev.81","@itwin/core-quantity":"workspace:^4.0.0-dev.81"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"^4.0.0-dev.33","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^8.2.2","@types/node":"^18.11.5","@types/sinon":"^9.0.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^8.36.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~5.0.2","webpack":"^5.76.0"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/object-storage-azure":"^1.5.0","@itwin/cloud-agnostic-core":"^1.5.0","@itwin/object-storage-core":"^1.5.0","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","wms-capabilities":"0.4.0","reflect-metadata":"0.1.13"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
297160
297015
 
297161
297016
  /***/ }),
297162
297017