@itwin/presentation-common 5.4.0-dev.7 → 5.5.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -1
- package/lib/cjs/presentation-common/ElementProperties.d.ts +1 -1
- package/lib/cjs/presentation-common/ElementProperties.d.ts.map +1 -1
- package/lib/cjs/presentation-common/ElementProperties.js +11 -5
- package/lib/cjs/presentation-common/ElementProperties.js.map +1 -1
- package/lib/cjs/presentation-common/content/ContentTraverser.d.ts +22 -0
- package/lib/cjs/presentation-common/content/ContentTraverser.d.ts.map +1 -1
- package/lib/cjs/presentation-common/content/ContentTraverser.js +29 -15
- package/lib/cjs/presentation-common/content/ContentTraverser.js.map +1 -1
- package/lib/cjs/presentation-common-internal.d.ts +1 -1
- package/lib/cjs/presentation-common-internal.d.ts.map +1 -1
- package/lib/cjs/presentation-common-internal.js +2 -2
- package/lib/cjs/presentation-common-internal.js.map +1 -1
- package/lib/cjs/presentation-common.d.ts +1 -1
- package/lib/cjs/presentation-common.d.ts.map +1 -1
- package/lib/cjs/presentation-common.js +3 -1
- package/lib/cjs/presentation-common.js.map +1 -1
- package/lib/esm/presentation-common/ElementProperties.d.ts +1 -1
- package/lib/esm/presentation-common/ElementProperties.d.ts.map +1 -1
- package/lib/esm/presentation-common/ElementProperties.js +10 -4
- package/lib/esm/presentation-common/ElementProperties.js.map +1 -1
- package/lib/esm/presentation-common/content/ContentTraverser.d.ts +22 -0
- package/lib/esm/presentation-common/content/ContentTraverser.d.ts.map +1 -1
- package/lib/esm/presentation-common/content/ContentTraverser.js +28 -15
- package/lib/esm/presentation-common/content/ContentTraverser.js.map +1 -1
- package/lib/esm/presentation-common-internal.d.ts +1 -1
- package/lib/esm/presentation-common-internal.d.ts.map +1 -1
- package/lib/esm/presentation-common-internal.js +1 -1
- package/lib/esm/presentation-common-internal.js.map +1 -1
- package/lib/esm/presentation-common.d.ts +1 -1
- package/lib/esm/presentation-common.d.ts.map +1 -1
- package/lib/esm/presentation-common.js +1 -1
- package/lib/esm/presentation-common.js.map +1 -1
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentTraverser.js","sourceRoot":"","sources":["../../../../src/presentation-common/content/ContentTraverser.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAG7C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,EAAE,KAAK,EAAsB,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAmB,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EACL,YAAY,EAIZ,KAAK,IAAI,iBAAiB,GAG3B,MAAM,YAAY,CAAC;AAEpB,MAAM,2BAA2B,GAAG,MAAM,EAAE,CAAC;AAyP7C;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CAAC,SAAyB,EAAE,EAAkC;IAClG,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC;QAClB,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,cAAc,EAAE,EAAE,CAAC,sBAAsB,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,CAAC;IAChG,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,OAAwB,EAAE,OAAgB;IACxE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,EAAE,CAAC;QAC9D,OAAO;IACT,CAAC;IAED,IAAI,CAAC;QACH,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAC3E,OAAO,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M,CAAC,SAAS,CAAC,CAAC;IACxC,MAAM,CAAC,iBAAiB,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC;IACpD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;IACxD,CAAC;IAED,MAAM,SAAS,GAAG,sDAAsD,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;IACnG,MAAM,aAAa,GAAG,IAAI,IAAI,CAAC;QAC7B,GAAG,IAAI;QACP,MAAM,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,GAAG,EAAE;QACtC,aAAa,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,OAAO,EAAE;QACjD,gBAAgB,EAAE,SAAS,CAAC,gBAAgB;KAC7C,CAAC,CAAC;IACH,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC;AACnD,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Content\n */\n\nimport { assert } from \"@itwin/core-bentley\";\nimport { LabelDefinition } from \"../LabelDefinition.js\";\nimport { CategoryDescription } from \"./Category.js\";\nimport { Content } from \"./Content.js\";\nimport { Descriptor } from \"./Descriptor.js\";\nimport { Field, NestedContentField } from \"./Fields.js\";\nimport { Item } from \"./Item.js\";\nimport { PropertyValueFormat, TypeDescription } from \"./TypeDescription.js\";\nimport {\n DisplayValue,\n DisplayValuesArray,\n DisplayValuesMap,\n NestedContentValue,\n Value as PresentationValue,\n ValuesArray as PresentationValuesArray,\n ValuesMap as PresentationValuesMap,\n} from \"./Value.js\";\n\nconst NESTED_CONTENT_LABEL_SYMBOL = Symbol();\n\ntype ValuesMap = PresentationValuesMap & {\n [NESTED_CONTENT_LABEL_SYMBOL]?: LabelDefinition;\n};\n\ntype Value = Exclude<PresentationValue, PresentationValuesMap> | ValuesMap;\n\ntype ValuesArray = Array<Value>;\n\n/**\n * A data structure to define a hierarchy of [[Field]] objects.\n * @public\n */\nexport interface FieldHierarchy {\n /** Parent field. */\n field: Field;\n /** Nested fields. */\n childFields: FieldHierarchy[];\n}\n\n/**\n * Props for the [[IContentVisitor.startContent]] call.\n * @public\n */\nexport interface StartContentProps {\n /** Descriptor of the visited content. */\n descriptor: Descriptor;\n}\n\n/**\n * Props for the [[IContentVisitor.processFieldHierarchies]] call.\n * @public\n */\nexport interface ProcessFieldHierarchiesProps {\n /**\n * The root list of fields, which may be mutated by the visitor to change order or the fields,\n * add new fields, etc.\n */\n hierarchies: FieldHierarchy[];\n}\n\n/**\n * Props for the [[IContentVisitor.startItem]] call.\n * @public\n */\nexport interface StartItemProps {\n /** The content item that's about to be visited. */\n item: Item;\n}\n\n/**\n * Props for the [[IContentVisitor.startCategory]] call.\n * @public\n */\nexport interface StartCategoryProps {\n /** The content category that's about to be visited. */\n category: CategoryDescription;\n}\n\n/**\n * Props for the [[IContentVisitor.startField]] call.\n * @public\n */\nexport interface StartFieldProps {\n /** The field that's about to be visited. */\n hierarchy: FieldHierarchy;\n}\n\n/**\n * Props for the [[IContentVisitor.startStruct]] call.\n * @public\n */\nexport interface StartStructProps {\n /** Field that describes the struct. */\n hierarchy: FieldHierarchy;\n /** Type of the struct. */\n valueType: TypeDescription;\n /** Name of the parent field (if there is one). */\n parentFieldName?: string;\n /** Member raw values. */\n rawValues: PresentationValuesMap;\n /** Member display values. */\n displayValues: DisplayValuesMap;\n /** Label definition of the ECInstance that the struct represents. */\n label?: LabelDefinition;\n}\n\n/**\n * Props for the [[IContentVisitor.startArray]] call.\n * @public\n */\nexport interface StartArrayProps {\n /** Field that describes the array. */\n hierarchy: FieldHierarchy;\n /** Type of the array. */\n valueType: TypeDescription;\n /** Name of the parent field (if there is one). */\n parentFieldName?: string;\n /** Item raw values. */\n rawValues: PresentationValuesArray;\n /** Item display values. */\n displayValues: DisplayValuesArray;\n}\n\n/**\n * Props for the [[IContentVisitor.processMergedValue]] call.\n * @public\n */\nexport interface ProcessMergedValueProps {\n /** The field whose values are merged. */\n mergedField: Field;\n /**\n * Generally this matches the [[mergedField]], but there are situations when a nested field is propagated\n * up to display it as if it wasn't nested its parent fields. In those cases, if one of the parent fields\n * is merged, the merged parent is going to be represented by [[mergedField]] and the field we wanted to\n * process is going to be represented by [[requestedField]].\n */\n requestedField: Field;\n /** Name of the parent field (if there is one). */\n parentFieldName?: string;\n}\n\n/**\n * Props for the [[IContentVisitor.processPrimitiveValue]] call.\n * @public\n */\nexport interface ProcessPrimitiveValueProps {\n /** Field whose value is being processed. */\n field: Field;\n /** Type of the value. */\n valueType: TypeDescription;\n /** Name of the parent field (if there is one). */\n parentFieldName?: string;\n /** Raw value. */\n rawValue: PresentationValue;\n /** Display value. */\n displayValue: DisplayValue;\n}\n\n/**\n * An interface for a visitor that can be passed to the [[traverseContent]] function\n * to be called on each piece of content.\n *\n * The order of calls when using the visitor with [[traverseContent]] or [[traverseContentItem]]:\n *\n * ```\n * startContent\n * processFieldHierarchies\n * for each content item:\n * startItem\n * for each field in root level:\n * for each category in field's category stack from root to field's category:\n * startCategory\n * startField\n * valueProcessing:\n * if item's value for this field is merged:\n * processMergedValue\n * else if the field is struct:\n * startStruct\n * for each struct member:\n * recurse into the valueProcessing step\n * finishStruct\n * else if the field is array:\n * startArray\n * for each array item:\n * recurse into the valueProcessing step\n * finishArray\n * else if the field is primitive:\n * processPrimitiveValue\n * finishField\n * finishItem\n * finishContent\n * ```\n * @public\n */\nexport interface IContentVisitor {\n /**\n * Called before starting [[Content]] processing. This is a good place to initialize various caches and prepare\n * for parsing content.\n *\n * Processing is skipped if the function returns `false` and [[finishContent]] is not called in that case.\n */\n startContent(props: StartContentProps): boolean;\n /** Called after processing of [[Content]] is complete. */\n finishContent(): void;\n\n /** Called to post-process field hierarchies after they're extracted from [[Descriptor]] in processed [[Content]]. */\n processFieldHierarchies(props: ProcessFieldHierarchiesProps): void;\n\n /**\n * Called before starting each [[Item]] processing. This is a good place to initialize for a new content item, e.g.\n * set up a new row in table.\n *\n * Processing is skipped if the function returns `false` and [[finishItem]] is not called in that case.\n */\n startItem(props: StartItemProps): boolean;\n /**\n * Called after processing of [[Item]] is complete. May be used to do any kind of post-processing after all\n * values for one content item have been processed.\n */\n finishItem(): void;\n\n /**\n * Called before processing a content item field ([[startField]] call) for each category in the field's\n * category stack, starting from the root and finishing with the field's category.\n *\n * Processing is skipped if the function returns `false` and [[finishCategory]] is not called in that case.\n */\n startCategory(props: StartCategoryProps): boolean;\n /** Called after processing of field is complete for every category in the field's category stack. */\n finishCategory(): void;\n\n /**\n * Called before starting [[Field]] processing for each individual [[Item]]. This is a good callback\n * to skip a field if it doesn't need to be handled.\n *\n * Processing is skipped if the function returns `false` and [[finishField]] is not called in that case.\n */\n startField(props: StartFieldProps): boolean;\n /** Called after processing of [[Field]] for individual [[Item]] is complete. */\n finishField(): void;\n\n /**\n * Called before processing a struct value. This is a good callback to skip handling the value or set up\n * for struct member values handling.\n *\n * Processing is skipped if the function returns `false` and [[finishStruct]] is not called in that case.\n */\n startStruct(props: StartStructProps): boolean;\n /** Called after processing of struct value is complete. */\n finishStruct(): void;\n\n /**\n * Called before processing an array value. This is a good callback to skip handling the value or set up\n * for array items handling.\n *\n * Processing is skipped if the function returns `false` and [[finishArray]] is not called in that case.\n */\n startArray(props: StartArrayProps): boolean;\n /** Called after processing of array value is complete. */\n finishArray(): void;\n\n /** Called to process a [merged value]($docs/presentation/content/Terminology.md#value-merging). */\n processMergedValue(props: ProcessMergedValueProps): void;\n /** Called to process a primitive value. */\n processPrimitiveValue(props: ProcessPrimitiveValueProps): void;\n}\n\n/**\n * An utility for traversing field hierarchy. Stops traversal as soon as `cb` returns `false`.\n * @public\n */\nexport function traverseFieldHierarchy(hierarchy: FieldHierarchy, cb: (h: FieldHierarchy) => boolean) {\n if (cb(hierarchy)) {\n hierarchy.childFields.forEach((childHierarchy) => traverseFieldHierarchy(childHierarchy, cb));\n }\n}\n\n/**\n * An utility to traverse content using provided visitor. Provides means to parse content into different formats,\n * for different components.\n * @public\n */\nexport function traverseContent(visitor: IContentVisitor, content: Content) {\n if (!visitor.startContent({ descriptor: content.descriptor })) {\n return;\n }\n\n try {\n const fieldHierarchies = createFieldHierarchies(content.descriptor.fields);\n visitor.processFieldHierarchies({ hierarchies: fieldHierarchies });\n content.contentSet.forEach((item) => {\n traverseContentItemFields(visitor, fieldHierarchies, item);\n });\n } finally {\n visitor.finishContent();\n }\n}\n\n/**\n * An utility for calling [[traverseContent]] when there's only one content item.\n * @public\n */\nexport function traverseContentItem(visitor: IContentVisitor, descriptor: Descriptor, item: Item) {\n traverseContent(visitor, new Content(descriptor, [item]));\n}\n\nclass VisitedCategories implements Disposable {\n private _visitedCategories: CategoryDescription[];\n private _didVisitAllHierarchy: boolean;\n constructor(\n private _visitor: IContentVisitor,\n category: CategoryDescription,\n ) {\n const stack: CategoryDescription[] = [];\n let curr: CategoryDescription | undefined = category;\n while (curr) {\n stack.push(curr);\n curr = curr.parent;\n }\n stack.reverse();\n\n this._didVisitAllHierarchy = true;\n this._visitedCategories = [];\n for (curr of stack) {\n if (this._visitor.startCategory({ category: curr })) {\n this._visitedCategories.push(curr);\n } else {\n this._didVisitAllHierarchy = false;\n break;\n }\n }\n }\n public [Symbol.dispose]() {\n while (this._visitedCategories.pop()) {\n this._visitor.finishCategory();\n }\n }\n public get shouldContinue(): boolean {\n return this._didVisitAllHierarchy;\n }\n}\n\nfunction traverseContentItemFields(visitor: IContentVisitor, fieldHierarchies: FieldHierarchy[], item: Item) {\n if (!visitor.startItem({ item })) {\n return;\n }\n\n try {\n fieldHierarchies.forEach((fieldHierarchy) => {\n using res = new VisitedCategories(visitor, fieldHierarchy.field.category);\n if (res.shouldContinue) {\n traverseContentItemField(visitor, fieldHierarchy, item);\n }\n });\n } finally {\n visitor.finishItem();\n }\n}\n\nfunction traverseContentItemField(visitor: IContentVisitor, fieldHierarchy: FieldHierarchy, item: Item) {\n if (!visitor.startField({ hierarchy: fieldHierarchy })) {\n return;\n }\n\n try {\n const rootToThisField = createFieldPath(fieldHierarchy.field);\n let parentFieldName: string | undefined;\n const pathUpToField = rootToThisField.slice(undefined, -1);\n for (let i = 0; i < pathUpToField.length; ++i) {\n const parentField = pathUpToField[i] as NestedContentField;\n const nextField = rootToThisField[i + 1];\n\n if (item.isFieldMerged(parentField.name)) {\n visitor.processMergedValue({ requestedField: fieldHierarchy.field, mergedField: parentField, parentFieldName });\n return;\n }\n\n const { emptyNestedItem, convertedItem } = convertNestedContentItemToStructArrayItem(item, parentField, nextField);\n if (emptyNestedItem) {\n return;\n }\n\n item = convertedItem;\n parentFieldName = combineFieldNames(parentField.name, parentFieldName);\n }\n\n if (item.isFieldMerged(fieldHierarchy.field.name)) {\n visitor.processMergedValue({ requestedField: fieldHierarchy.field, mergedField: fieldHierarchy.field, parentFieldName });\n return;\n }\n\n if (fieldHierarchy.field.isNestedContentField()) {\n fieldHierarchy = convertNestedContentFieldHierarchyToStructArrayHierarchy(fieldHierarchy, parentFieldName);\n const { emptyNestedItem, convertedItem } = convertNestedContentFieldHierarchyItemToStructArrayItem(item, fieldHierarchy);\n if (emptyNestedItem) {\n return;\n }\n item = convertedItem;\n } else if (pathUpToField.length > 0) {\n fieldHierarchy = {\n ...fieldHierarchy,\n field: (function () {\n const clone = fieldHierarchy.field.clone();\n clone.type = {\n valueFormat: PropertyValueFormat.Array,\n typeName: `${fieldHierarchy.field.type.typeName}[]`,\n memberType: fieldHierarchy.field.type,\n };\n return clone;\n })(),\n };\n }\n\n traverseContentItemFieldValue(\n visitor,\n fieldHierarchy,\n item.mergedFieldNames,\n fieldHierarchy.field.type,\n parentFieldName,\n item.values[fieldHierarchy.field.name],\n item.displayValues[fieldHierarchy.field.name],\n );\n } finally {\n visitor.finishField();\n }\n}\n\nfunction traverseContentItemFieldValue(\n visitor: IContentVisitor,\n fieldHierarchy: FieldHierarchy,\n mergedFieldNames: string[],\n valueType: TypeDescription,\n parentFieldName: string | undefined,\n rawValue: Value,\n displayValue: DisplayValue,\n) {\n if (rawValue !== undefined) {\n if (valueType.valueFormat === PropertyValueFormat.Array) {\n assert(PresentationValue.isArray(rawValue));\n assert(DisplayValue.isArray(displayValue));\n return traverseContentItemArrayFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValue, displayValue);\n }\n if (valueType.valueFormat === PropertyValueFormat.Struct) {\n assert(PresentationValue.isMap(rawValue));\n assert(DisplayValue.isMap(displayValue));\n return traverseContentItemStructFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValue, displayValue);\n }\n }\n traverseContentItemPrimitiveFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValue, displayValue);\n}\n\nfunction traverseContentItemArrayFieldValue(\n visitor: IContentVisitor,\n fieldHierarchy: FieldHierarchy,\n mergedFieldNames: string[],\n valueType: TypeDescription,\n parentFieldName: string | undefined,\n rawValues: ValuesArray,\n displayValues: DisplayValuesArray,\n) {\n assert(rawValues.length === displayValues.length);\n assert(valueType.valueFormat === PropertyValueFormat.Array);\n if (!visitor.startArray({ hierarchy: fieldHierarchy, valueType, parentFieldName, rawValues, displayValues })) {\n return;\n }\n\n try {\n const itemType = valueType.memberType;\n rawValues.forEach((_, i) => {\n traverseContentItemFieldValue(visitor, fieldHierarchy, mergedFieldNames, itemType, parentFieldName, rawValues[i], displayValues[i]);\n });\n } finally {\n visitor.finishArray();\n }\n}\n\nfunction traverseContentItemStructFieldValue(\n visitor: IContentVisitor,\n fieldHierarchy: FieldHierarchy,\n mergedFieldNames: string[],\n valueType: TypeDescription,\n parentFieldName: string | undefined,\n rawValues: ValuesMap,\n displayValues: DisplayValuesMap,\n) {\n assert(valueType.valueFormat === PropertyValueFormat.Struct);\n const label = rawValues[NESTED_CONTENT_LABEL_SYMBOL];\n if (!visitor.startStruct({ hierarchy: fieldHierarchy, valueType, parentFieldName, rawValues, displayValues, label })) {\n return;\n }\n\n try {\n if (fieldHierarchy.field.isNestedContentField()) {\n parentFieldName = combineFieldNames(fieldHierarchy.field.name, parentFieldName);\n }\n\n valueType.members.forEach((memberDescription) => {\n let memberField = fieldHierarchy.childFields.find((f) => f.field.name === memberDescription.name);\n if (!memberField) {\n // Not finding a member field means we're traversing an ECStruct. If current field is `StructPropertiesField`\n // try looking up member field in there. Otherwise, just create fake field to propagate information.\n const structMemberField =\n fieldHierarchy.field.isPropertiesField() && fieldHierarchy.field.isStructPropertiesField()\n ? fieldHierarchy.field.memberFields.find((mf) => mf.name === memberDescription.name)\n : undefined;\n\n memberField = {\n field:\n structMemberField ??\n new Field({\n category: fieldHierarchy.field.category,\n name: memberDescription.name,\n label: memberDescription.label,\n type: memberDescription.type,\n isReadonly: fieldHierarchy.field.isReadonly,\n priority: 0,\n }),\n childFields: [],\n };\n }\n traverseContentItemFieldValue(\n visitor,\n memberField,\n mergedFieldNames,\n memberDescription.type,\n parentFieldName,\n rawValues[memberDescription.name],\n displayValues[memberDescription.name],\n );\n });\n } finally {\n visitor.finishStruct();\n }\n}\n\nfunction traverseContentItemPrimitiveFieldValue(\n visitor: IContentVisitor,\n fieldHierarchy: FieldHierarchy,\n mergedFieldNames: string[],\n valueType: TypeDescription,\n parentFieldName: string | undefined,\n rawValue: Value,\n displayValue: DisplayValue,\n) {\n if (-1 !== mergedFieldNames.indexOf(fieldHierarchy.field.name)) {\n visitor.processMergedValue({ mergedField: fieldHierarchy.field, requestedField: fieldHierarchy.field, parentFieldName });\n return;\n }\n\n visitor.processPrimitiveValue({ field: fieldHierarchy.field, valueType, parentFieldName, rawValue, displayValue });\n}\n\n/**\n * Parses a list of [[Field]] objects into a list of [[FieldHierarchy]].\n *\n * @param ignoreCategories Enables adding all of the `nestedFields` to parent field's `childFields`\n * without considering categories.\n *\n * @public\n */\nexport function createFieldHierarchies(fields: Field[], ignoreCategories?: boolean) {\n const hierarchies = new Array<FieldHierarchy>();\n const visitField = (category: CategoryDescription, field: Field, parentField: Field | undefined): FieldHierarchy | undefined => {\n let childFields: FieldHierarchy[] = [];\n if (field.isNestedContentField()) {\n // visit all nested fields\n childFields = visitFields(field.nestedFields, field);\n if (0 === childFields.length) {\n return undefined;\n }\n }\n const fieldHierarchy = { field, childFields };\n if (category === parentField?.category || (ignoreCategories && parentField)) {\n // if categories of this field and its parent field match - return the field hierarchy without\n // including it as a top level field\n return fieldHierarchy;\n }\n addFieldHierarchy(hierarchies, fieldHierarchy);\n return undefined;\n };\n const visitFields = (visitedFields: Field[], parentField: NestedContentField | undefined) => {\n const includedFields: FieldHierarchy[] = [];\n visitedFields.forEach((field) => {\n const visitedField = visitField(field.category, field, parentField);\n if (visitedField) {\n includedFields.push(visitedField);\n }\n });\n return includedFields;\n };\n visitFields(fields, undefined);\n return hierarchies;\n}\n\nfunction findRelatedFields(rootFields: FieldHierarchy[], hierarchy: FieldHierarchy) {\n // build a list of parent fields in hierarchy\n const fields: Field[] = [];\n let currField: Field | undefined = hierarchy.field;\n while (currField) {\n fields.push(currField);\n currField = currField.parent;\n }\n\n for (let rootIndex = 0; rootIndex < rootFields.length; ++rootIndex) {\n const rootFieldHierarchy = rootFields[rootIndex];\n if (rootFieldHierarchy.field.category !== hierarchy.field.category) {\n // only interested in fields with the same category\n continue;\n }\n\n let first = true;\n currField = rootFieldHierarchy.field;\n while (currField) {\n const index = fields.findIndex((f) => f.name === currField!.name);\n if (-1 !== index) {\n return {\n existing: {\n field: currField,\n hierarchy: first ? rootFieldHierarchy : undefined,\n index: rootIndex,\n },\n matchingField: fields[index],\n };\n }\n currField = currField.parent;\n first = false;\n }\n }\n\n return undefined;\n}\n\nfunction buildParentHierarchy(hierarchy: FieldHierarchy, parentField: Field) {\n // note: parentField is found by walking up the parentship relationship\n // from hierarchy.field, so we expect to always find it here\n while (hierarchy.field !== parentField) {\n const hierarchyParent = hierarchy.field.parent;\n assert(hierarchyParent !== undefined);\n hierarchy = { field: hierarchyParent, childFields: [hierarchy] };\n }\n return hierarchy;\n}\n\nfunction mergeHierarchies(lhs: FieldHierarchy, rhs: FieldHierarchy) {\n assert(lhs.field.name === rhs.field.name);\n const result: FieldHierarchy = {\n field: lhs.field.clone(),\n childFields: [...lhs.childFields],\n };\n rhs.childFields.forEach((rhsChildHierarchy) => {\n const indexInResult = result.childFields.findIndex((resultHierarchy) => resultHierarchy.field.name === rhsChildHierarchy.field.name);\n if (indexInResult !== -1) {\n result.childFields[indexInResult] = mergeHierarchies(result.childFields[indexInResult], rhsChildHierarchy);\n } else {\n result.childFields.push(rhsChildHierarchy);\n }\n });\n return result;\n}\n\n/**\n * Adds a field hierarchy into root field hierarchies list.\n * @public\n */\nexport function addFieldHierarchy(rootHierarchies: FieldHierarchy[], hierarchy: FieldHierarchy): void {\n const match = findRelatedFields(rootHierarchies, hierarchy);\n if (!match) {\n rootHierarchies.push(hierarchy);\n return;\n }\n\n const targetHierarchy = rootHierarchies[match.existing.index];\n const existingHierarchy = match.existing.hierarchy ?? buildParentHierarchy(targetHierarchy, match.existing.field);\n const insertHierarchy = buildParentHierarchy(hierarchy, match.matchingField);\n const mergedHierarchy = mergeHierarchies(existingHierarchy, insertHierarchy);\n mergedHierarchy.field.category = hierarchy.field.category;\n rootHierarchies[match.existing.index] = mergedHierarchy;\n}\n\nfunction createFieldPath(field: Field): Field[] {\n const path = [field];\n let currField = field;\n while (currField.parent) {\n currField = currField.parent;\n path.push(currField);\n }\n path.reverse();\n return path;\n}\n\n/** @internal */\nexport const FIELD_NAMES_SEPARATOR = \"$\";\n/**\n * Combines given field names in a way that allows them to be parsed back into a list of individual names using the [[parseCombinedFieldNames]] function.\n * @public\n */\nexport function combineFieldNames(fieldName: string, parentFieldName?: string) {\n return parentFieldName ? `${parentFieldName}${FIELD_NAMES_SEPARATOR}${fieldName}` : fieldName;\n}\n/**\n * Parses given combined field names string, constructed using [[combineFieldNames]], into a list of individual field names.\n * @public\n */\nexport function parseCombinedFieldNames(combinedName: string) {\n return combinedName ? combinedName.split(FIELD_NAMES_SEPARATOR) : [];\n}\n\ninterface NestedItemConversionResult {\n emptyNestedItem: boolean;\n convertedItem: Item;\n}\n\nfunction convertNestedContentItemToStructArrayItem(item: Readonly<Item>, field: Field, nextField: Field): NestedItemConversionResult {\n const value = item.values[field.name] ?? [];\n assert(PresentationValue.isNestedContent(value));\n if (value.length === 0) {\n return { emptyNestedItem: true, convertedItem: item };\n }\n\n let nextFieldValues: { raw: PresentationValuesArray | NestedContentValue[]; display: DisplayValuesArray } = { raw: [], display: [] };\n if (nextField.isNestedContentField()) {\n const nextNestedContent: NestedContentValue[] = [];\n value.forEach((ncv) => {\n const nextRawValue = ncv.values[nextField.name];\n if (nextRawValue) {\n assert(PresentationValue.isNestedContent(nextRawValue));\n nextNestedContent.push(...nextRawValue);\n }\n });\n nextFieldValues.raw = nextNestedContent;\n } else {\n const nextValues: { raw: PresentationValuesArray; display: DisplayValuesArray } = { raw: [], display: [] };\n value.forEach((ncv) => {\n nextValues.raw.push(ncv.values[nextField.name]);\n nextValues.display.push(ncv.displayValues[nextField.name]);\n });\n nextFieldValues = nextValues;\n }\n const convertedItem = new Item({\n ...item,\n values: { [nextField.name]: nextFieldValues.raw },\n displayValues: { [nextField.name]: nextFieldValues.display },\n });\n return { emptyNestedItem: false, convertedItem };\n}\n\nfunction convertNestedContentFieldHierarchyToStructArrayHierarchy(fieldHierarchy: FieldHierarchy, parentFieldName: string | undefined) {\n const fieldName = fieldHierarchy.field.name;\n const convertedChildFieldHierarchies = fieldHierarchy.childFields.map((child) => {\n if (child.field.isNestedContentField()) {\n return convertNestedContentFieldHierarchyToStructArrayHierarchy(child, combineFieldNames(fieldName, parentFieldName));\n }\n return child;\n });\n const convertedFieldHierarchy: FieldHierarchy = {\n field: (function () {\n const clone = fieldHierarchy.field.clone();\n clone.type = {\n valueFormat: PropertyValueFormat.Array,\n typeName: `${fieldHierarchy.field.type.typeName}[]`,\n memberType: {\n valueFormat: PropertyValueFormat.Struct,\n typeName: fieldHierarchy.field.type.typeName,\n members: convertedChildFieldHierarchies.map((member) => ({\n name: member.field.name,\n label: member.field.label,\n type: member.field.type,\n })),\n },\n };\n return clone;\n })(),\n childFields: convertedChildFieldHierarchies,\n };\n return convertedFieldHierarchy;\n}\n\nfunction convertNestedContentValuesToStructArrayValuesRecursive(fieldHierarchy: FieldHierarchy, ncvs: ReadonlyArray<NestedContentValue>) {\n const result: {\n raw: ValuesArray;\n display: DisplayValuesArray;\n mergedFieldNames: string[];\n } = { raw: [], display: [], mergedFieldNames: [] };\n\n ncvs.forEach((ncv) => {\n const values: ValuesMap = { ...ncv.values };\n const displayValues: DisplayValuesMap = { ...ncv.displayValues };\n const mergedFieldNames: string[] = [...ncv.mergedFieldNames];\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n values[NESTED_CONTENT_LABEL_SYMBOL] = ncv.label ?? ncv.labelDefinition;\n\n fieldHierarchy.childFields.forEach((childFieldHierarchy) => {\n const childFieldName = childFieldHierarchy.field.name;\n if (-1 !== ncv.mergedFieldNames.indexOf(childFieldName)) {\n return;\n }\n if (childFieldHierarchy.field.isNestedContentField()) {\n const value = values[childFieldName];\n assert(PresentationValue.isNestedContent(value));\n const convertedValues = convertNestedContentValuesToStructArrayValuesRecursive(childFieldHierarchy, value);\n values[childFieldName] = convertedValues.raw;\n displayValues[childFieldName] = convertedValues.display;\n mergedFieldNames.push(...convertedValues.mergedFieldNames);\n }\n });\n result.raw.push(values);\n result.display.push(displayValues);\n result.mergedFieldNames.push(...mergedFieldNames);\n });\n return result;\n}\n\nfunction convertNestedContentFieldHierarchyItemToStructArrayItem(item: Readonly<Item>, fieldHierarchy: FieldHierarchy): NestedItemConversionResult {\n const fieldName = fieldHierarchy.field.name;\n const rawValue = item.values[fieldName];\n assert(PresentationValue.isNestedContent(rawValue));\n if (rawValue.length === 0) {\n return { emptyNestedItem: true, convertedItem: item };\n }\n\n const converted = convertNestedContentValuesToStructArrayValuesRecursive(fieldHierarchy, rawValue);\n const convertedItem = new Item({\n ...item,\n values: { [fieldName]: converted.raw },\n displayValues: { [fieldName]: converted.display },\n mergedFieldNames: converted.mergedFieldNames,\n });\n return { emptyNestedItem: false, convertedItem };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ContentTraverser.js","sourceRoot":"","sources":["../../../../src/presentation-common/content/ContentTraverser.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAK7C,OAAO,EAAE,KAAK,EAAsB,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAmB,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EACL,YAAY,EAIZ,KAAK,IAAI,iBAAiB,GAG3B,MAAM,YAAY,CAAC;AAEpB,MAAM,2BAA2B,GAAG,MAAM,EAAE,CAAC;AAyP7C;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CAAC,SAAyB,EAAE,EAAkC;IAClG,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC;QAClB,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,cAAc,EAAE,EAAE,CAAC,sBAAsB,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,CAAC;IAChG,CAAC;AACH,CAAC;AAED,qBAAqB;AAErB;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,OAAwB,EAAE,OAAgB;IACxE,OAAO,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AACjF,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAwB,EAAE,UAAsB,EAAE,I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a,CAAC,cAAc,CAAC,GAAG,eAAe,CAAC,OAAO,CAAC;gBACxD,gBAAgB,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC;YAC7D,CAAC;QACH,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACxB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACnC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,gBAAgB,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,uDAAuD,CAAC,IAAoB,EAAE,cAA8B;IACnH,MAAM,SAAS,GAAG,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC;IAC5C,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACxC,MAAM,CAAC,iBAAiB,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC;IACpD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;IACxD,CAAC;IAED,MAAM,SAAS,GAAG,sDAAsD,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;IACnG,MAAM,aAAa,GAAG,IAAI,IAAI,CAAC;QAC7B,GAAG,IAAI;QACP,MAAM,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,GAAG,EAAE;QACtC,aAAa,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,OAAO,EAAE;QACjD,gBAAgB,EAAE,SAAS,CAAC,gBAAgB;KAC7C,CAAC,CAAC;IACH,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC;AACnD,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Content\n */\n\nimport { assert } from \"@itwin/core-bentley\";\nimport { LabelDefinition } from \"../LabelDefinition.js\";\nimport { CategoryDescription } from \"./Category.js\";\nimport { Content } from \"./Content.js\";\nimport { Descriptor } from \"./Descriptor.js\";\nimport { Field, NestedContentField } from \"./Fields.js\";\nimport { Item } from \"./Item.js\";\nimport { PropertyValueFormat, TypeDescription } from \"./TypeDescription.js\";\nimport {\n DisplayValue,\n DisplayValuesArray,\n DisplayValuesMap,\n NestedContentValue,\n Value as PresentationValue,\n ValuesArray as PresentationValuesArray,\n ValuesMap as PresentationValuesMap,\n} from \"./Value.js\";\n\nconst NESTED_CONTENT_LABEL_SYMBOL = Symbol();\n\ntype ValuesMap = PresentationValuesMap & {\n [NESTED_CONTENT_LABEL_SYMBOL]?: LabelDefinition;\n};\n\ntype Value = Exclude<PresentationValue, PresentationValuesMap> | ValuesMap;\n\ntype ValuesArray = Array<Value>;\n\n/**\n * A data structure to define a hierarchy of [[Field]] objects.\n * @public\n */\nexport interface FieldHierarchy {\n /** Parent field. */\n field: Field;\n /** Nested fields. */\n childFields: FieldHierarchy[];\n}\n\n/**\n * Props for the [[IContentVisitor.startContent]] call.\n * @public\n */\nexport interface StartContentProps {\n /** Descriptor of the visited content. */\n descriptor: Descriptor;\n}\n\n/**\n * Props for the [[IContentVisitor.processFieldHierarchies]] call.\n * @public\n */\nexport interface ProcessFieldHierarchiesProps {\n /**\n * The root list of fields, which may be mutated by the visitor to change order or the fields,\n * add new fields, etc.\n */\n hierarchies: FieldHierarchy[];\n}\n\n/**\n * Props for the [[IContentVisitor.startItem]] call.\n * @public\n */\nexport interface StartItemProps {\n /** The content item that's about to be visited. */\n item: Item;\n}\n\n/**\n * Props for the [[IContentVisitor.startCategory]] call.\n * @public\n */\nexport interface StartCategoryProps {\n /** The content category that's about to be visited. */\n category: CategoryDescription;\n}\n\n/**\n * Props for the [[IContentVisitor.startField]] call.\n * @public\n */\nexport interface StartFieldProps {\n /** The field that's about to be visited. */\n hierarchy: FieldHierarchy;\n}\n\n/**\n * Props for the [[IContentVisitor.startStruct]] call.\n * @public\n */\nexport interface StartStructProps {\n /** Field that describes the struct. */\n hierarchy: FieldHierarchy;\n /** Type of the struct. */\n valueType: TypeDescription;\n /** Name of the parent field (if there is one). */\n parentFieldName?: string;\n /** Member raw values. */\n rawValues: PresentationValuesMap;\n /** Member display values. */\n displayValues: DisplayValuesMap;\n /** Label definition of the ECInstance that the struct represents. */\n label?: LabelDefinition;\n}\n\n/**\n * Props for the [[IContentVisitor.startArray]] call.\n * @public\n */\nexport interface StartArrayProps {\n /** Field that describes the array. */\n hierarchy: FieldHierarchy;\n /** Type of the array. */\n valueType: TypeDescription;\n /** Name of the parent field (if there is one). */\n parentFieldName?: string;\n /** Item raw values. */\n rawValues: PresentationValuesArray;\n /** Item display values. */\n displayValues: DisplayValuesArray;\n}\n\n/**\n * Props for the [[IContentVisitor.processMergedValue]] call.\n * @public\n */\nexport interface ProcessMergedValueProps {\n /** The field whose values are merged. */\n mergedField: Field;\n /**\n * Generally this matches the [[mergedField]], but there are situations when a nested field is propagated\n * up to display it as if it wasn't nested its parent fields. In those cases, if one of the parent fields\n * is merged, the merged parent is going to be represented by [[mergedField]] and the field we wanted to\n * process is going to be represented by [[requestedField]].\n */\n requestedField: Field;\n /** Name of the parent field (if there is one). */\n parentFieldName?: string;\n}\n\n/**\n * Props for the [[IContentVisitor.processPrimitiveValue]] call.\n * @public\n */\nexport interface ProcessPrimitiveValueProps {\n /** Field whose value is being processed. */\n field: Field;\n /** Type of the value. */\n valueType: TypeDescription;\n /** Name of the parent field (if there is one). */\n parentFieldName?: string;\n /** Raw value. */\n rawValue: PresentationValue;\n /** Display value. */\n displayValue: DisplayValue;\n}\n\n/**\n * An interface for a visitor that can be passed to the [[traverseContent]] function\n * to be called on each piece of content.\n *\n * The order of calls when using the visitor with [[traverseContent]] or [[traverseContentItem]]:\n *\n * ```\n * startContent\n * processFieldHierarchies\n * for each content item:\n * startItem\n * for each field in root level:\n * for each category in field's category stack from root to field's category:\n * startCategory\n * startField\n * valueProcessing:\n * if item's value for this field is merged:\n * processMergedValue\n * else if the field is struct:\n * startStruct\n * for each struct member:\n * recurse into the valueProcessing step\n * finishStruct\n * else if the field is array:\n * startArray\n * for each array item:\n * recurse into the valueProcessing step\n * finishArray\n * else if the field is primitive:\n * processPrimitiveValue\n * finishField\n * finishItem\n * finishContent\n * ```\n * @public\n */\nexport interface IContentVisitor {\n /**\n * Called before starting [[Content]] processing. This is a good place to initialize various caches and prepare\n * for parsing content.\n *\n * Processing is skipped if the function returns `false` and [[finishContent]] is not called in that case.\n */\n startContent(props: StartContentProps): boolean;\n /** Called after processing of [[Content]] is complete. */\n finishContent(): void;\n\n /** Called to post-process field hierarchies after they're extracted from [[Descriptor]] in processed [[Content]]. */\n processFieldHierarchies(props: ProcessFieldHierarchiesProps): void;\n\n /**\n * Called before starting each [[Item]] processing. This is a good place to initialize for a new content item, e.g.\n * set up a new row in table.\n *\n * Processing is skipped if the function returns `false` and [[finishItem]] is not called in that case.\n */\n startItem(props: StartItemProps): boolean;\n /**\n * Called after processing of [[Item]] is complete. May be used to do any kind of post-processing after all\n * values for one content item have been processed.\n */\n finishItem(): void;\n\n /**\n * Called before processing a content item field ([[startField]] call) for each category in the field's\n * category stack, starting from the root and finishing with the field's category.\n *\n * Processing is skipped if the function returns `false` and [[finishCategory]] is not called in that case.\n */\n startCategory(props: StartCategoryProps): boolean;\n /** Called after processing of field is complete for every category in the field's category stack. */\n finishCategory(): void;\n\n /**\n * Called before starting [[Field]] processing for each individual [[Item]]. This is a good callback\n * to skip a field if it doesn't need to be handled.\n *\n * Processing is skipped if the function returns `false` and [[finishField]] is not called in that case.\n */\n startField(props: StartFieldProps): boolean;\n /** Called after processing of [[Field]] for individual [[Item]] is complete. */\n finishField(): void;\n\n /**\n * Called before processing a struct value. This is a good callback to skip handling the value or set up\n * for struct member values handling.\n *\n * Processing is skipped if the function returns `false` and [[finishStruct]] is not called in that case.\n */\n startStruct(props: StartStructProps): boolean;\n /** Called after processing of struct value is complete. */\n finishStruct(): void;\n\n /**\n * Called before processing an array value. This is a good callback to skip handling the value or set up\n * for array items handling.\n *\n * Processing is skipped if the function returns `false` and [[finishArray]] is not called in that case.\n */\n startArray(props: StartArrayProps): boolean;\n /** Called after processing of array value is complete. */\n finishArray(): void;\n\n /** Called to process a [merged value]($docs/presentation/content/Terminology.md#value-merging). */\n processMergedValue(props: ProcessMergedValueProps): void;\n /** Called to process a primitive value. */\n processPrimitiveValue(props: ProcessPrimitiveValueProps): void;\n}\n\n/**\n * An utility for traversing field hierarchy. Stops traversal as soon as `cb` returns `false`.\n * @public\n */\nexport function traverseFieldHierarchy(hierarchy: FieldHierarchy, cb: (h: FieldHierarchy) => boolean) {\n if (cb(hierarchy)) {\n hierarchy.childFields.forEach((childHierarchy) => traverseFieldHierarchy(childHierarchy, cb));\n }\n}\n\n/* c8 ignore start */\n\n/**\n * An utility to traverse content using provided visitor. Provides means to parse content into different formats,\n * for different components.\n * @public\n * @deprecated in 5.4. Use [[createContentTraverser]] instead.\n */\nexport function traverseContent(visitor: IContentVisitor, content: Content) {\n return createContentTraverser(visitor, content.descriptor)(content.contentSet);\n}\n\n/**\n * An utility for calling [[traverseContent]] when there's only one content item.\n * @public\n * @deprecated in 5.4. Use [[createContentTraverser]] instead.\n */\nexport function traverseContentItem(visitor: IContentVisitor, descriptor: Descriptor, item: Item) {\n return createContentTraverser(visitor, descriptor)([item]);\n}\n\n/* c8 ignore end */\n\n/**\n * An utility to traverse content using provided visitor. Provides means to parse content into different formats,\n * for different components.\n *\n * This overload takes only the visitor and returns a function that takes descriptor and items to traverse, which is\n * more convenient when item sets need to be traversed with different descriptors.\n *\n * @public\n */\nexport function createContentTraverser(visitor: IContentVisitor): (descriptor: Descriptor, items: Item[]) => void;\n/**\n * An utility to traverse content using provided visitor. Provides means to parse content into different formats,\n * for different components.\n *\n * This overload takes the visitor and descriptor and returns a function that takes items to traverse, which is more convenient\n * when multiple sets of items need to be traversed with the same descriptor.\n *\n * @public\n */\nexport function createContentTraverser(visitor: IContentVisitor, descriptor: Descriptor): (items: Item[]) => void;\n/** @public */\nexport function createContentTraverser(visitor: IContentVisitor, descriptorArg?: Descriptor) {\n let memo: { descriptor: Descriptor; fieldHierarchies: FieldHierarchy[] } | undefined;\n const traverseContentItems = (descriptor: Descriptor, items: Item[]) => {\n if (!visitor.startContent({ descriptor })) {\n return;\n }\n try {\n if (memo?.descriptor !== descriptor) {\n const fieldHierarchies = createFieldHierarchies(descriptor.fields);\n visitor.processFieldHierarchies({ hierarchies: fieldHierarchies });\n memo = { descriptor, fieldHierarchies };\n }\n items.forEach((item) => {\n traverseContentItemFields(visitor, memo!.fieldHierarchies, item);\n });\n } finally {\n visitor.finishContent();\n }\n };\n return descriptorArg ? (items: Item[]) => traverseContentItems(descriptorArg, items) : traverseContentItems;\n}\n\nclass VisitedCategories implements Disposable {\n private _visitedCategories: CategoryDescription[];\n private _didVisitAllHierarchy: boolean;\n constructor(\n private _visitor: IContentVisitor,\n category: CategoryDescription,\n ) {\n const stack: CategoryDescription[] = [];\n let curr: CategoryDescription | undefined = category;\n while (curr) {\n stack.push(curr);\n curr = curr.parent;\n }\n stack.reverse();\n\n this._didVisitAllHierarchy = true;\n this._visitedCategories = [];\n for (curr of stack) {\n if (this._visitor.startCategory({ category: curr })) {\n this._visitedCategories.push(curr);\n } else {\n this._didVisitAllHierarchy = false;\n break;\n }\n }\n }\n public [Symbol.dispose]() {\n while (this._visitedCategories.pop()) {\n this._visitor.finishCategory();\n }\n }\n public get shouldContinue(): boolean {\n return this._didVisitAllHierarchy;\n }\n}\n\nfunction traverseContentItemFields(visitor: IContentVisitor, fieldHierarchies: FieldHierarchy[], item: Item) {\n if (!visitor.startItem({ item })) {\n return;\n }\n\n try {\n fieldHierarchies.forEach((fieldHierarchy) => {\n using res = new VisitedCategories(visitor, fieldHierarchy.field.category);\n if (res.shouldContinue) {\n traverseContentItemField(visitor, fieldHierarchy, item);\n }\n });\n } finally {\n visitor.finishItem();\n }\n}\n\nfunction traverseContentItemField(visitor: IContentVisitor, fieldHierarchy: FieldHierarchy, item: Item) {\n if (!visitor.startField({ hierarchy: fieldHierarchy })) {\n return;\n }\n\n try {\n const rootToThisField = createFieldPath(fieldHierarchy.field);\n let parentFieldName: string | undefined;\n const pathUpToField = rootToThisField.slice(undefined, -1);\n for (let i = 0; i < pathUpToField.length; ++i) {\n const parentField = pathUpToField[i] as NestedContentField;\n const nextField = rootToThisField[i + 1];\n\n if (item.isFieldMerged(parentField.name)) {\n visitor.processMergedValue({ requestedField: fieldHierarchy.field, mergedField: parentField, parentFieldName });\n return;\n }\n\n const { emptyNestedItem, convertedItem } = convertNestedContentItemToStructArrayItem(item, parentField, nextField);\n if (emptyNestedItem) {\n return;\n }\n\n item = convertedItem;\n parentFieldName = combineFieldNames(parentField.name, parentFieldName);\n }\n\n if (item.isFieldMerged(fieldHierarchy.field.name)) {\n visitor.processMergedValue({ requestedField: fieldHierarchy.field, mergedField: fieldHierarchy.field, parentFieldName });\n return;\n }\n\n if (fieldHierarchy.field.isNestedContentField()) {\n fieldHierarchy = convertNestedContentFieldHierarchyToStructArrayHierarchy(fieldHierarchy, parentFieldName);\n const { emptyNestedItem, convertedItem } = convertNestedContentFieldHierarchyItemToStructArrayItem(item, fieldHierarchy);\n if (emptyNestedItem) {\n return;\n }\n item = convertedItem;\n } else if (pathUpToField.length > 0) {\n fieldHierarchy = {\n ...fieldHierarchy,\n field: (function () {\n const clone = fieldHierarchy.field.clone();\n clone.type = {\n valueFormat: PropertyValueFormat.Array,\n typeName: `${fieldHierarchy.field.type.typeName}[]`,\n memberType: fieldHierarchy.field.type,\n };\n return clone;\n })(),\n };\n }\n\n traverseContentItemFieldValue(\n visitor,\n fieldHierarchy,\n item.mergedFieldNames,\n fieldHierarchy.field.type,\n parentFieldName,\n item.values[fieldHierarchy.field.name],\n item.displayValues[fieldHierarchy.field.name],\n );\n } finally {\n visitor.finishField();\n }\n}\n\nfunction traverseContentItemFieldValue(\n visitor: IContentVisitor,\n fieldHierarchy: FieldHierarchy,\n mergedFieldNames: string[],\n valueType: TypeDescription,\n parentFieldName: string | undefined,\n rawValue: Value,\n displayValue: DisplayValue,\n) {\n if (rawValue !== undefined) {\n if (valueType.valueFormat === PropertyValueFormat.Array) {\n assert(PresentationValue.isArray(rawValue));\n assert(DisplayValue.isArray(displayValue));\n return traverseContentItemArrayFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValue, displayValue);\n }\n if (valueType.valueFormat === PropertyValueFormat.Struct) {\n assert(PresentationValue.isMap(rawValue));\n assert(DisplayValue.isMap(displayValue));\n return traverseContentItemStructFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValue, displayValue);\n }\n }\n traverseContentItemPrimitiveFieldValue(visitor, fieldHierarchy, mergedFieldNames, valueType, parentFieldName, rawValue, displayValue);\n}\n\nfunction traverseContentItemArrayFieldValue(\n visitor: IContentVisitor,\n fieldHierarchy: FieldHierarchy,\n mergedFieldNames: string[],\n valueType: TypeDescription,\n parentFieldName: string | undefined,\n rawValues: ValuesArray,\n displayValues: DisplayValuesArray,\n) {\n assert(rawValues.length === displayValues.length);\n assert(valueType.valueFormat === PropertyValueFormat.Array);\n if (!visitor.startArray({ hierarchy: fieldHierarchy, valueType, parentFieldName, rawValues, displayValues })) {\n return;\n }\n\n try {\n const itemType = valueType.memberType;\n rawValues.forEach((_, i) => {\n traverseContentItemFieldValue(visitor, fieldHierarchy, mergedFieldNames, itemType, parentFieldName, rawValues[i], displayValues[i]);\n });\n } finally {\n visitor.finishArray();\n }\n}\n\nfunction traverseContentItemStructFieldValue(\n visitor: IContentVisitor,\n fieldHierarchy: FieldHierarchy,\n mergedFieldNames: string[],\n valueType: TypeDescription,\n parentFieldName: string | undefined,\n rawValues: ValuesMap,\n displayValues: DisplayValuesMap,\n) {\n assert(valueType.valueFormat === PropertyValueFormat.Struct);\n const label = rawValues[NESTED_CONTENT_LABEL_SYMBOL];\n if (!visitor.startStruct({ hierarchy: fieldHierarchy, valueType, parentFieldName, rawValues, displayValues, label })) {\n return;\n }\n\n try {\n if (fieldHierarchy.field.isNestedContentField()) {\n parentFieldName = combineFieldNames(fieldHierarchy.field.name, parentFieldName);\n }\n\n valueType.members.forEach((memberDescription) => {\n let memberField = fieldHierarchy.childFields.find((f) => f.field.name === memberDescription.name);\n if (!memberField) {\n // Not finding a member field means we're traversing an ECStruct. If current field is `StructPropertiesField`\n // try looking up member field in there. Otherwise, just create fake field to propagate information.\n const structMemberField =\n fieldHierarchy.field.isPropertiesField() && fieldHierarchy.field.isStructPropertiesField()\n ? fieldHierarchy.field.memberFields.find((mf) => mf.name === memberDescription.name)\n : undefined;\n\n memberField = {\n field:\n structMemberField ??\n new Field({\n category: fieldHierarchy.field.category,\n name: memberDescription.name,\n label: memberDescription.label,\n type: memberDescription.type,\n isReadonly: fieldHierarchy.field.isReadonly,\n priority: 0,\n }),\n childFields: [],\n };\n }\n traverseContentItemFieldValue(\n visitor,\n memberField,\n mergedFieldNames,\n memberDescription.type,\n parentFieldName,\n rawValues[memberDescription.name],\n displayValues[memberDescription.name],\n );\n });\n } finally {\n visitor.finishStruct();\n }\n}\n\nfunction traverseContentItemPrimitiveFieldValue(\n visitor: IContentVisitor,\n fieldHierarchy: FieldHierarchy,\n mergedFieldNames: string[],\n valueType: TypeDescription,\n parentFieldName: string | undefined,\n rawValue: Value,\n displayValue: DisplayValue,\n) {\n if (-1 !== mergedFieldNames.indexOf(fieldHierarchy.field.name)) {\n visitor.processMergedValue({ mergedField: fieldHierarchy.field, requestedField: fieldHierarchy.field, parentFieldName });\n return;\n }\n\n visitor.processPrimitiveValue({ field: fieldHierarchy.field, valueType, parentFieldName, rawValue, displayValue });\n}\n\n/**\n * Parses a list of [[Field]] objects into a list of [[FieldHierarchy]].\n *\n * @param ignoreCategories Enables adding all of the `nestedFields` to parent field's `childFields`\n * without considering categories.\n *\n * @public\n */\nexport function createFieldHierarchies(fields: Field[], ignoreCategories?: boolean) {\n const hierarchies = new Array<FieldHierarchy>();\n const visitField = (category: CategoryDescription, field: Field, parentField: Field | undefined): FieldHierarchy | undefined => {\n let childFields: FieldHierarchy[] = [];\n if (field.isNestedContentField()) {\n // visit all nested fields\n childFields = visitFields(field.nestedFields, field);\n if (0 === childFields.length) {\n return undefined;\n }\n }\n const fieldHierarchy = { field, childFields };\n if (category === parentField?.category || (ignoreCategories && parentField)) {\n // if categories of this field and its parent field match - return the field hierarchy without\n // including it as a top level field\n return fieldHierarchy;\n }\n addFieldHierarchy(hierarchies, fieldHierarchy);\n return undefined;\n };\n const visitFields = (visitedFields: Field[], parentField: NestedContentField | undefined) => {\n const includedFields: FieldHierarchy[] = [];\n visitedFields.forEach((field) => {\n const visitedField = visitField(field.category, field, parentField);\n if (visitedField) {\n includedFields.push(visitedField);\n }\n });\n return includedFields;\n };\n visitFields(fields, undefined);\n return hierarchies;\n}\n\nfunction findRelatedFields(rootFields: FieldHierarchy[], hierarchy: FieldHierarchy) {\n // build a list of parent fields in hierarchy\n const fields: Field[] = [];\n let currField: Field | undefined = hierarchy.field;\n while (currField) {\n fields.push(currField);\n currField = currField.parent;\n }\n\n for (let rootIndex = 0; rootIndex < rootFields.length; ++rootIndex) {\n const rootFieldHierarchy = rootFields[rootIndex];\n if (rootFieldHierarchy.field.category !== hierarchy.field.category) {\n // only interested in fields with the same category\n continue;\n }\n\n let first = true;\n currField = rootFieldHierarchy.field;\n while (currField) {\n const index = fields.findIndex((f) => f.name === currField!.name);\n if (-1 !== index) {\n return {\n existing: {\n field: currField,\n hierarchy: first ? rootFieldHierarchy : undefined,\n index: rootIndex,\n },\n matchingField: fields[index],\n };\n }\n currField = currField.parent;\n first = false;\n }\n }\n\n return undefined;\n}\n\nfunction buildParentHierarchy(hierarchy: FieldHierarchy, parentField: Field) {\n // note: parentField is found by walking up the parentship relationship\n // from hierarchy.field, so we expect to always find it here\n while (hierarchy.field !== parentField) {\n const hierarchyParent = hierarchy.field.parent;\n assert(hierarchyParent !== undefined);\n hierarchy = { field: hierarchyParent, childFields: [hierarchy] };\n }\n return hierarchy;\n}\n\nfunction mergeHierarchies(lhs: FieldHierarchy, rhs: FieldHierarchy) {\n assert(lhs.field.name === rhs.field.name);\n const result: FieldHierarchy = {\n field: lhs.field.clone(),\n childFields: [...lhs.childFields],\n };\n rhs.childFields.forEach((rhsChildHierarchy) => {\n const indexInResult = result.childFields.findIndex((resultHierarchy) => resultHierarchy.field.name === rhsChildHierarchy.field.name);\n if (indexInResult !== -1) {\n result.childFields[indexInResult] = mergeHierarchies(result.childFields[indexInResult], rhsChildHierarchy);\n } else {\n result.childFields.push(rhsChildHierarchy);\n }\n });\n return result;\n}\n\n/**\n * Adds a field hierarchy into root field hierarchies list.\n * @public\n */\nexport function addFieldHierarchy(rootHierarchies: FieldHierarchy[], hierarchy: FieldHierarchy): void {\n const match = findRelatedFields(rootHierarchies, hierarchy);\n if (!match) {\n rootHierarchies.push(hierarchy);\n return;\n }\n\n const targetHierarchy = rootHierarchies[match.existing.index];\n const existingHierarchy = match.existing.hierarchy ?? buildParentHierarchy(targetHierarchy, match.existing.field);\n const insertHierarchy = buildParentHierarchy(hierarchy, match.matchingField);\n const mergedHierarchy = mergeHierarchies(existingHierarchy, insertHierarchy);\n mergedHierarchy.field.category = hierarchy.field.category;\n rootHierarchies[match.existing.index] = mergedHierarchy;\n}\n\nfunction createFieldPath(field: Field): Field[] {\n const path = [field];\n let currField = field;\n while (currField.parent) {\n currField = currField.parent;\n path.push(currField);\n }\n path.reverse();\n return path;\n}\n\n/** @internal */\nexport const FIELD_NAMES_SEPARATOR = \"$\";\n/**\n * Combines given field names in a way that allows them to be parsed back into a list of individual names using the [[parseCombinedFieldNames]] function.\n * @public\n */\nexport function combineFieldNames(fieldName: string, parentFieldName?: string) {\n return parentFieldName ? `${parentFieldName}${FIELD_NAMES_SEPARATOR}${fieldName}` : fieldName;\n}\n/**\n * Parses given combined field names string, constructed using [[combineFieldNames]], into a list of individual field names.\n * @public\n */\nexport function parseCombinedFieldNames(combinedName: string) {\n return combinedName ? combinedName.split(FIELD_NAMES_SEPARATOR) : [];\n}\n\ninterface NestedItemConversionResult {\n emptyNestedItem: boolean;\n convertedItem: Item;\n}\n\nfunction convertNestedContentItemToStructArrayItem(item: Readonly<Item>, field: Field, nextField: Field): NestedItemConversionResult {\n const value = item.values[field.name] ?? [];\n assert(PresentationValue.isNestedContent(value));\n if (value.length === 0) {\n return { emptyNestedItem: true, convertedItem: item };\n }\n\n let nextFieldValues: { raw: PresentationValuesArray | NestedContentValue[]; display: DisplayValuesArray } = { raw: [], display: [] };\n if (nextField.isNestedContentField()) {\n const nextNestedContent: NestedContentValue[] = [];\n value.forEach((ncv) => {\n const nextRawValue = ncv.values[nextField.name];\n if (nextRawValue) {\n assert(PresentationValue.isNestedContent(nextRawValue));\n nextNestedContent.push(...nextRawValue);\n }\n });\n nextFieldValues.raw = nextNestedContent;\n } else {\n const nextValues: { raw: PresentationValuesArray; display: DisplayValuesArray } = { raw: [], display: [] };\n value.forEach((ncv) => {\n nextValues.raw.push(ncv.values[nextField.name]);\n nextValues.display.push(ncv.displayValues[nextField.name]);\n });\n nextFieldValues = nextValues;\n }\n const convertedItem = new Item({\n ...item,\n values: { [nextField.name]: nextFieldValues.raw },\n displayValues: { [nextField.name]: nextFieldValues.display },\n });\n return { emptyNestedItem: false, convertedItem };\n}\n\nfunction convertNestedContentFieldHierarchyToStructArrayHierarchy(fieldHierarchy: FieldHierarchy, parentFieldName: string | undefined) {\n const fieldName = fieldHierarchy.field.name;\n const convertedChildFieldHierarchies = fieldHierarchy.childFields.map((child) => {\n if (child.field.isNestedContentField()) {\n return convertNestedContentFieldHierarchyToStructArrayHierarchy(child, combineFieldNames(fieldName, parentFieldName));\n }\n return child;\n });\n const convertedFieldHierarchy: FieldHierarchy = {\n field: (function () {\n const clone = fieldHierarchy.field.clone();\n clone.type = {\n valueFormat: PropertyValueFormat.Array,\n typeName: `${fieldHierarchy.field.type.typeName}[]`,\n memberType: {\n valueFormat: PropertyValueFormat.Struct,\n typeName: fieldHierarchy.field.type.typeName,\n members: convertedChildFieldHierarchies.map((member) => ({\n name: member.field.name,\n label: member.field.label,\n type: member.field.type,\n })),\n },\n };\n return clone;\n })(),\n childFields: convertedChildFieldHierarchies,\n };\n return convertedFieldHierarchy;\n}\n\nfunction convertNestedContentValuesToStructArrayValuesRecursive(fieldHierarchy: FieldHierarchy, ncvs: ReadonlyArray<NestedContentValue>) {\n const result: {\n raw: ValuesArray;\n display: DisplayValuesArray;\n mergedFieldNames: string[];\n } = { raw: [], display: [], mergedFieldNames: [] };\n\n ncvs.forEach((ncv) => {\n const values: ValuesMap = { ...ncv.values };\n const displayValues: DisplayValuesMap = { ...ncv.displayValues };\n const mergedFieldNames: string[] = [...ncv.mergedFieldNames];\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n values[NESTED_CONTENT_LABEL_SYMBOL] = ncv.label ?? ncv.labelDefinition;\n\n fieldHierarchy.childFields.forEach((childFieldHierarchy) => {\n const childFieldName = childFieldHierarchy.field.name;\n if (-1 !== ncv.mergedFieldNames.indexOf(childFieldName)) {\n return;\n }\n if (childFieldHierarchy.field.isNestedContentField()) {\n const value = values[childFieldName];\n assert(PresentationValue.isNestedContent(value));\n const convertedValues = convertNestedContentValuesToStructArrayValuesRecursive(childFieldHierarchy, value);\n values[childFieldName] = convertedValues.raw;\n displayValues[childFieldName] = convertedValues.display;\n mergedFieldNames.push(...convertedValues.mergedFieldNames);\n }\n });\n result.raw.push(values);\n result.display.push(displayValues);\n result.mergedFieldNames.push(...mergedFieldNames);\n });\n return result;\n}\n\nfunction convertNestedContentFieldHierarchyItemToStructArrayItem(item: Readonly<Item>, fieldHierarchy: FieldHierarchy): NestedItemConversionResult {\n const fieldName = fieldHierarchy.field.name;\n const rawValue = item.values[fieldName];\n assert(PresentationValue.isNestedContent(rawValue));\n if (rawValue.length === 0) {\n return { emptyNestedItem: true, convertedItem: item };\n }\n\n const converted = convertNestedContentValuesToStructArrayValuesRecursive(fieldHierarchy, rawValue);\n const convertedItem = new Item({\n ...item,\n values: { [fieldName]: converted.raw },\n displayValues: { [fieldName]: converted.display },\n mergedFieldNames: converted.mergedFieldNames,\n });\n return { emptyNestedItem: false, convertedItem };\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { PRESENTATION_IPC_CHANNEL_NAME, PresentationIpcEvents, PresentationIpcInterface } from "./presentation-common/PresentationIpcInterface.js";
|
|
2
2
|
export { combineDiagnosticsSeverities, compareDiagnosticsSeverities } from "./presentation-common/Diagnostics.js";
|
|
3
|
-
export {
|
|
3
|
+
export { createElementPropertiesBuilder } from "./presentation-common/ElementProperties.js";
|
|
4
4
|
export { createCancellableTimeoutPromise, deepReplaceNullsToUndefined } from "./presentation-common/Utils.js";
|
|
5
5
|
export { LocalizationHelper } from "./presentation-common/LocalizationHelper.js";
|
|
6
6
|
export { isSingleElementPropertiesRequestOptions } from "./presentation-common/PresentationManagerOptions.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation-common-internal.d.ts","sourceRoot":"","sources":["../../src/presentation-common-internal.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,6BAA6B,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,mDAAmD,CAAC;AACnJ,OAAO,EAAE,4BAA4B,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAClH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"presentation-common-internal.d.ts","sourceRoot":"","sources":["../../src/presentation-common-internal.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,6BAA6B,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,mDAAmD,CAAC;AACnJ,OAAO,EAAE,4BAA4B,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAClH,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,EAAE,+BAA+B,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAC9G,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,uCAAuC,EAAE,MAAM,qDAAqD,CAAC;AAC9G,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// They should not be used outside of these packages. These APIs may be broken or removed at any time without notice.
|
|
7
7
|
export { PRESENTATION_IPC_CHANNEL_NAME, PresentationIpcEvents } from "./presentation-common/PresentationIpcInterface.js";
|
|
8
8
|
export { combineDiagnosticsSeverities, compareDiagnosticsSeverities } from "./presentation-common/Diagnostics.js";
|
|
9
|
-
export {
|
|
9
|
+
export { createElementPropertiesBuilder } from "./presentation-common/ElementProperties.js";
|
|
10
10
|
export { createCancellableTimeoutPromise, deepReplaceNullsToUndefined } from "./presentation-common/Utils.js";
|
|
11
11
|
export { LocalizationHelper } from "./presentation-common/LocalizationHelper.js";
|
|
12
12
|
export { isSingleElementPropertiesRequestOptions } from "./presentation-common/PresentationManagerOptions.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation-common-internal.js","sourceRoot":"","sources":["../../src/presentation-common-internal.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,6IAA6I;AAC7I,qHAAqH;AAErH,OAAO,EAAE,6BAA6B,EAAE,qBAAqB,EAA4B,MAAM,mDAAmD,CAAC;AACnJ,OAAO,EAAE,4BAA4B,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAClH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"presentation-common-internal.js","sourceRoot":"","sources":["../../src/presentation-common-internal.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,6IAA6I;AAC7I,qHAAqH;AAErH,OAAO,EAAE,6BAA6B,EAAE,qBAAqB,EAA4B,MAAM,mDAAmD,CAAC;AACnJ,OAAO,EAAE,4BAA4B,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAClH,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,EAAE,+BAA+B,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAC9G,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,uCAAuC,EAAE,MAAM,qDAAqD,CAAC;AAC9G,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n\n// WARNING: This barrel file exports internal APIs only for use by `@itwin/presentation-backend` and `@itwin/presentation-frontend` packages.\n// They should not be used outside of these packages. These APIs may be broken or removed at any time without notice.\n\nexport { PRESENTATION_IPC_CHANNEL_NAME, PresentationIpcEvents, PresentationIpcInterface } from \"./presentation-common/PresentationIpcInterface.js\";\nexport { combineDiagnosticsSeverities, compareDiagnosticsSeverities } from \"./presentation-common/Diagnostics.js\";\nexport { createElementPropertiesBuilder } from \"./presentation-common/ElementProperties.js\";\nexport { createCancellableTimeoutPromise, deepReplaceNullsToUndefined } from \"./presentation-common/Utils.js\";\nexport { LocalizationHelper } from \"./presentation-common/LocalizationHelper.js\";\nexport { isSingleElementPropertiesRequestOptions } from \"./presentation-common/PresentationManagerOptions.js\";\nexport { RpcRequestsHandler } from \"./presentation-common/RpcRequestsHandler.js\";\nexport { AsyncTasksTracker } from \"./presentation-common/AsyncTasks.js\";\n"]}
|
|
@@ -49,7 +49,7 @@ export { PropertyAccessor, PropertyAccessorPath, Property, PropertyJSON } from "
|
|
|
49
49
|
export { RendererDescription } from "./presentation-common/content/Renderer.js";
|
|
50
50
|
export { PropertyValueFormat, PrimitiveTypeDescription, ArrayTypeDescription, StructFieldMemberDescription, StructTypeDescription, TypeDescription, } from "./presentation-common/content/TypeDescription.js";
|
|
51
51
|
export { Value, ValuesMap, ValuesArray, DisplayValue, DisplayValuesMap, DisplayValuesArray, NestedContentValue, NavigationPropertyValue, DisplayValueGroup, } from "./presentation-common/content/Value.js";
|
|
52
|
-
export { FieldHierarchy, StartContentProps, ProcessFieldHierarchiesProps, StartItemProps, StartCategoryProps, StartFieldProps, StartStructProps, StartArrayProps, ProcessMergedValueProps, ProcessPrimitiveValueProps, IContentVisitor, traverseFieldHierarchy, traverseContent, traverseContentItem, createFieldHierarchies, addFieldHierarchy, combineFieldNames, parseCombinedFieldNames, } from "./presentation-common/content/ContentTraverser.js";
|
|
52
|
+
export { FieldHierarchy, StartContentProps, ProcessFieldHierarchiesProps, StartItemProps, StartCategoryProps, StartFieldProps, StartStructProps, StartArrayProps, ProcessMergedValueProps, ProcessPrimitiveValueProps, IContentVisitor, traverseFieldHierarchy, traverseContent, traverseContentItem, createContentTraverser, createFieldHierarchies, addFieldHierarchy, combineFieldNames, parseCombinedFieldNames, } from "./presentation-common/content/ContentTraverser.js";
|
|
53
53
|
export { createContentFormatter } from "./presentation-common/content/PropertyValueFormatter.js";
|
|
54
54
|
export { ElementProperties, ElementPropertiesCategoryItem, ElementPropertiesPrimitivePropertyItem, ElementPropertiesPrimitiveArrayPropertyItem, ElementPropertiesStructArrayPropertyItem, ElementPropertiesArrayPropertyItem, ElementPropertiesStructPropertyItem, ElementPropertiesPropertyValueType, ElementPropertiesPropertyItem, ElementPropertiesItem, } from "./presentation-common/ElementProperties.js";
|
|
55
55
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation-common.d.ts","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AAc,2DAA2D,CAAC;AAC1E,cAAc,oEAAoE,CAAC;AACnF,cAAc,0DAA0D,CAAC;AACzE,cAAc,uFAAuF,CAAC;AACtG,cAAc,6EAA6E,CAAC;AAC5F,cAAc,oDAAoD,CAAC;AACnE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,2EAA2E,CAAC;AAC1F,cAAc,wEAAwE,CAAC;AACvF,cAAc,oFAAoF,CAAC;AACnG,cAAc,kEAAkE,CAAC;AACjF,cAAc,gFAAgF,CAAC;AAC/F,cAAc,+EAA+E,CAAC;AAC9F,cAAc,8EAA8E,CAAC;AAC7F,cAAc,iFAAiF,CAAC;AAChG,cAAc,oDAAoD,CAAC;AACnE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,sDAAsD,CAAC;AACrE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,qCAAqC,CAAC;AACpD,cAAc,wCAAwC,CAAC;AACvD,cAAc,qDAAqD,CAAC;AACpE,cAAc,0CAA0C,CAAC"}
|
|
1
|
+
{"version":3,"file":"presentation-common.d.ts","sourceRoot":"","sources":["../../src/presentation-common.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,OAAO,EACL,yBAAyB,EACzB,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC1B,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,OAAO,EACP,UAAU,EACV,WAAW,EACX,SAAS,EACT,uBAAuB,EACvB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B,EAC1B,YAAY,EACZ,wBAAwB,EACxB,8BAA8B,EAC9B,+BAA+B,EAC/B,6BAA6B,EAC7B,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,wCAAwC,EACxC,4CAA4C,EAC5C,gBAAgB,EAChB,oBAA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E,cAAc,qCAAqC,CAAC;AACpD,cAAc,wCAAwC,CAAC;AACvD,cAAc,qDAAqD,CAAC;AACpE,cAAc,0CAA0C,CAAC"}
|
|
@@ -42,7 +42,7 @@ export { Item } from "./presentation-common/content/Item.js";
|
|
|
42
42
|
export { Property } from "./presentation-common/content/Property.js";
|
|
43
43
|
export { PropertyValueFormat, } from "./presentation-common/content/TypeDescription.js";
|
|
44
44
|
export { Value, DisplayValue, } from "./presentation-common/content/Value.js";
|
|
45
|
-
export { traverseFieldHierarchy, traverseContent, traverseContentItem, createFieldHierarchies, addFieldHierarchy, combineFieldNames, parseCombinedFieldNames, } from "./presentation-common/content/ContentTraverser.js";
|
|
45
|
+
export { traverseFieldHierarchy, traverseContent, traverseContentItem, createContentTraverser, createFieldHierarchies, addFieldHierarchy, combineFieldNames, parseCombinedFieldNames, } from "./presentation-common/content/ContentTraverser.js";
|
|
46
46
|
export { createContentFormatter } from "./presentation-common/content/PropertyValueFormatter.js";
|
|
47
47
|
export { StandardNodeTypes, NodeKey, } from "./presentation-common/hierarchy/Key.js";
|
|
48
48
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation-common.js","sourceRoot":"","sources":["../../src/presentation-common.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;;;;GAKG;AACH,OAAO,EAUL,mBAAmB,GACpB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAGL,WAAW,EAMX,sBAAsB,EAEtB,YAAY,EAMZ,gBAAgB,EAEhB,wCAAwC,EAExC,gBAAgB,GAIjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,EAAE,GAAG,EAAoB,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAsC,eAAe,EAAE,MAAM,0CAA0C,CAAC;AA4B/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;A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AIhD;;;;;GAKG;AACH,kFAAkF;AAClF,cAAc,wDAAwD,CAAC;AACvE,cAAc,iEAAiE,CAAC;AAChF,cAAc,kEAAkE,CAAC;AACjF,cAAc,gFAAgF,CAAC;AAC/F,cAAc,sFAAsF,CAAC;AACrG,cAAc,yDAAyD,CAAC;AACxE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,4EAA4E,CAAC;AAC3F,cAAc,uDAAuD,CAAC;AACtE,cAAc,uDAAuD,CAAC;AACtE,cAAc,gEAAgE,CAAC;AAC/E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,2DAA2D,CAAC;AAC1E,cAAc,oEAAoE,CAAC;AACnF,cAAc,0DAA0D,CAAC;AACzE,cAAc,uFAAuF,CAAC;AACtG,cAAc,6EAA6E,CAAC;AAC5F,cAAc,oDAAoD,CAAC;AACnE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,2EAA2E,CAAC;AAC1F,cAAc,wEAAwE,CAAC;AACvF,cAAc,oFAAoF,CAAC;AACnG,cAAc,kEAAkE,CAAC;AACjF,cAAc,gFAAgF,CAAC;AAC/F,cAAc,+EAA+E,CAAC;AAC9F,cAAc,8EAA8E,CAAC;AAC7F,cAAc,iFAAiF,CAAC;AAChG,cAAc,oDAAoD,CAAC;AACnE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,sDAAsD,CAAC;AACrE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,qCAAqC,CAAC;AACpD,cAAc,wCAAwC,CAAC;AACvD,cAAc,qDAAqD,CAAC;AACpE,cAAc,0CAA0C,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/**\n * @module Core\n *\n * @docs-group-description Core\n * Common types used all across Presentation packages.\n */\nexport {\n DiagnosticsLoggerSeverity,\n Diagnostics,\n ClientDiagnostics,\n DiagnosticsOptions,\n ClientDiagnosticsHandler,\n ClientDiagnosticsOptions,\n ClientDiagnosticsAttribute,\n DiagnosticsLogMessage,\n DiagnosticsScopeLogs,\n DiagnosticsLogEntry,\n} from \"./presentation-common/Diagnostics.js\";\nexport {\n ClassId,\n InstanceId,\n InstanceKey,\n ClassInfo,\n CompressedClassInfoJSON,\n EnumerationChoice,\n EnumerationInfo,\n KindOfQuantityInfo,\n NavigationPropertyInfo,\n NavigationPropertyInfoJSON,\n PropertyInfo,\n PropertyValueConstraints,\n StringPropertyValueConstraints,\n NumericPropertyValueConstraints,\n ArrayPropertyValueConstraints,\n PropertyInfoJSON,\n RelatedClassInfo,\n RelatedClassInfoJSON,\n RelatedClassInfoWithOptionalRelationship,\n RelatedClassInfoWithOptionalRelationshipJSON,\n RelationshipPath,\n RelationshipPathJSON,\n StrippedRelatedClassInfo,\n StrippedRelationshipPath,\n} from \"./presentation-common/EC.js\";\nexport { PresentationStatus, PresentationError } from \"./presentation-common/Error.js\";\nexport { Key, Keys, KeySetJSON, KeySet } from \"./presentation-common/KeySet.js\";\nexport { LabelCompositeValue, LabelRawValue, LabelDefinition } from \"./presentation-common/LabelDefinition.js\";\nexport {\n RequestOptions,\n RequestOptionsWithRuleset,\n HierarchyRequestOptions,\n HierarchyLevelDescriptorRequestOptions,\n FilterByInstancePathsHierarchyRequestOptions,\n FilterByTextHierarchyRequestOptions,\n ContentSourcesRequestOptions,\n ContentDescriptorRequestOptions,\n ContentRequestOptions,\n DistinctValuesRequestOptions,\n ElementPropertiesRequestOptions,\n SingleElementPropertiesRequestOptions,\n MultiElementPropertiesByClassRequestOptions,\n MultiElementPropertiesByIdsRequestOptions,\n MultiElementPropertiesRequestOptions,\n ContentInstanceKeysRequestOptions,\n DisplayLabelRequestOptions,\n DisplayLabelsRequestOptions,\n SelectionScopeRequestOptions,\n ComputeSelectionRequestOptions,\n HierarchyCompareOptions,\n PageOptions,\n Paged,\n Prioritized,\n WithCancelEvent,\n} from \"./presentation-common/PresentationManagerOptions.js\";\nexport { RegisteredRuleset } from \"./presentation-common/RegisteredRuleset.js\";\nexport {\n VariableValueTypes,\n VariableValue,\n VariableValueJSON,\n BooleanRulesetVariable,\n StringRulesetVariable,\n IntRulesetVariable,\n IntsRulesetVariable,\n Id64RulesetVariable,\n Id64sRulesetVariable,\n RulesetVariable,\n Id64sRulesetVariableJSON,\n RulesetVariableJSON,\n} from \"./presentation-common/RulesetVariables.js\";\nexport { RulesetsFactory, ComputeDisplayValueCallback, PrimitivePropertyValue } from \"./presentation-common/RulesetsFactory.js\";\nexport {\n UPDATE_FULL,\n UpdateInfo,\n HierarchyUpdateInfo,\n ContentUpdateInfo,\n PartialHierarchyModification,\n NodeInsertionInfo,\n NodeDeletionInfo,\n NodeUpdateInfo,\n HierarchyCompareInfo,\n} from \"./presentation-common/Update.js\";\nexport { DEFAULT_KEYS_BATCH_SIZE, Omit, PagedResponse, PartialBy, Subtract, ValuesDictionary, getInstancesCount } from \"./presentation-common/Utils.js\";\nexport {\n InstanceFilterDefinition,\n InstanceFilterRelatedInstanceDefinition,\n InstanceFilterRelatedInstancePath,\n InstanceFilterRelatedInstanceTargetAlias,\n InstanceFilterRelatedInstanceRelationshipAlias,\n} from \"./presentation-common/InstanceFilterDefinition.js\";\nexport { UnitSystemFormat, FormatsMap, FormatOptions, KoqPropertyValueFormatter } from \"./presentation-common/KoqPropertyValueFormatter.js\";\n\n/**\n * @module RPC\n *\n * @docs-group-description RPC\n * Types used for RPC communication between frontend and backend. Generally should\n * only be used internally by presentation packages.\n */\nexport {\n PresentationRpcRequestOptions,\n PresentationRpcResponseData,\n RpcDiagnosticsOptions,\n PresentationRpcResponse,\n HierarchyRpcRequestOptions,\n HierarchyLevelDescriptorRpcRequestOptions,\n FilterByInstancePathsHierarchyRpcRequestOptions,\n FilterByTextHierarchyRpcRequestOptions,\n ContentSourcesRpcRequestOptions,\n ContentSourcesRpcResult,\n ContentDescriptorRpcRequestOptions,\n ContentRpcRequestOptions,\n SingleElementPropertiesRpcRequestOptions,\n DistinctValuesRpcRequestOptions,\n ContentInstanceKeysRpcRequestOptions,\n DisplayLabelRpcRequestOptions,\n DisplayLabelsRpcRequestOptions,\n SelectionScopeRpcRequestOptions,\n ComputeSelectionRpcRequestOptions,\n PresentationRpcInterface,\n} from \"./presentation-common/PresentationRpcInterface.js\";\n\n/**\n * @module UnifiedSelection\n *\n * @docs-group-description UnifiedSelection\n * Types related to [unified selection]($docs/presentation/unified-selection/index.md).\n */\nexport { SelectionScope, ElementSelectionScopeProps, SelectionScopeProps } from \"./presentation-common/selection/SelectionScope.js\";\n\n/**\n * @module Content\n *\n * @docs-group-description Content\n * Types related to presentation [content]($docs/presentation/content/index.md).\n */\nexport { CategoryDescription, CategoryDescriptionJSON } from \"./presentation-common/content/Category.js\";\nexport { ContentJSON, Content } from \"./presentation-common/content/Content.js\";\nexport {\n SelectClassInfo,\n SelectClassInfoJSON,\n ContentFlags,\n SortDirection,\n SelectionInfo,\n DescriptorJSON,\n DescriptorOverrides,\n DescriptorSource,\n Descriptor,\n} from \"./presentation-common/content/Descriptor.js\";\nexport { DefaultContentDisplayTypes } from \"./presentation-common/content/DisplayTypes.js\";\nexport { EditorDescription } from \"./presentation-common/content/Editor.js\";\nexport {\n PropertiesFieldJSON,\n ArrayPropertiesFieldJSON,\n StructPropertiesFieldJSON,\n NestedContentFieldJSON,\n FieldJSON,\n Field,\n PropertiesField,\n ArrayPropertiesField,\n StructPropertiesField,\n NestedContentField,\n FieldDescriptorType,\n FieldDescriptor,\n NamedFieldDescriptor,\n PropertiesFieldDescriptor,\n} from \"./presentation-common/content/Fields.js\";\nexport { ItemJSON, Item } from \"./presentation-common/content/Item.js\";\nexport { PropertyAccessor, PropertyAccessorPath, Property, PropertyJSON } from \"./presentation-common/content/Property.js\";\nexport { RendererDescription } from \"./presentation-common/content/Renderer.js\";\nexport {\n PropertyValueFormat,\n PrimitiveTypeDescription,\n ArrayTypeDescription,\n StructFieldMemberDescription,\n StructTypeDescription,\n TypeDescription,\n} from \"./presentation-common/content/TypeDescription.js\";\nexport {\n Value,\n ValuesMap,\n ValuesArray,\n DisplayValue,\n DisplayValuesMap,\n DisplayValuesArray,\n NestedContentValue,\n NavigationPropertyValue,\n DisplayValueGroup,\n} from \"./presentation-common/content/Value.js\";\nexport {\n FieldHierarchy,\n StartContentProps,\n ProcessFieldHierarchiesProps,\n StartItemProps,\n StartCategoryProps,\n StartFieldProps,\n StartStructProps,\n StartArrayProps,\n ProcessMergedValueProps,\n ProcessPrimitiveValueProps,\n IContentVisitor,\n traverseFieldHierarchy,\n traverseContent,\n traverseContentItem,\n createFieldHierarchies,\n addFieldHierarchy,\n combineFieldNames,\n parseCombinedFieldNames,\n} from \"./presentation-common/content/ContentTraverser.js\";\nexport { createContentFormatter } from \"./presentation-common/content/PropertyValueFormatter.js\";\nexport {\n ElementProperties,\n ElementPropertiesCategoryItem,\n ElementPropertiesPrimitivePropertyItem,\n ElementPropertiesPrimitiveArrayPropertyItem,\n ElementPropertiesStructArrayPropertyItem,\n ElementPropertiesArrayPropertyItem,\n ElementPropertiesStructPropertyItem,\n ElementPropertiesPropertyValueType,\n ElementPropertiesPropertyItem,\n ElementPropertiesItem,\n} from \"./presentation-common/ElementProperties.js\";\n\n/**\n * @module Hierarchies\n *\n * @docs-group-description Hierarchies\n * Types related to presentation [hierarchies]($docs/presentation/hierarchies/index.md).\n */\nexport { HierarchyLevel } from \"./presentation-common/hierarchy/HierarchyLevel.js\";\nexport {\n StandardNodeTypes,\n NodeKey,\n NodeKeyPath,\n BaseNodeKey,\n ECInstancesNodeKey,\n GroupingNodeKey,\n ECClassGroupingNodeKey,\n ECPropertyGroupingNodeKey,\n LabelGroupingNodeKey,\n PresentationQuery,\n IdBinding,\n IdSetBinding,\n ECValueBinding,\n ECValueSetBinding,\n PresentationQueryBinding,\n} from \"./presentation-common/hierarchy/Key.js\";\nexport { Node, PartialNode } from \"./presentation-common/hierarchy/Node.js\";\nexport { NodePathElement, NodePathFilteringData } from \"./presentation-common/hierarchy/NodePathElement.js\";\n\n/**\n * @module PresentationRules\n *\n * @docs-group-description PresentationRules\n * Types for defining the presentation ruleset.\n */\n// note: everything under `rules/` is public, so no need to name each exported api\nexport * from \"./presentation-common/rules/hierarchy/ChildNodeRule.js\";\nexport * from \"./presentation-common/rules/hierarchy/ChildNodeSpecification.js\";\nexport * from \"./presentation-common/rules/hierarchy/CustomNodeSpecification.js\";\nexport * from \"./presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js\";\nexport * from \"./presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js\";\nexport * from \"./presentation-common/rules/hierarchy/NavigationRule.js\";\nexport * from \"./presentation-common/rules/hierarchy/NodeArtifactsRule.js\";\nexport * from \"./presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js\";\nexport * from \"./presentation-common/rules/hierarchy/RootNodeRule.js\";\nexport * from \"./presentation-common/rules/hierarchy/SubCondition.js\";\nexport * from \"./presentation-common/rules/customization/CustomizationRule.js\";\nexport * from \"./presentation-common/rules/customization/ExtendedDataRule.js\";\nexport * from \"./presentation-common/rules/customization/GroupingRule.js\";\nexport * from \"./presentation-common/rules/customization/InstanceLabelOverride.js\";\nexport * from \"./presentation-common/rules/customization/SortingRule.js\";\nexport * from \"./presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js\";\nexport * from \"./presentation-common/rules/content/ContentRelatedInstancesSpecification.js\";\nexport * from \"./presentation-common/rules/content/ContentRule.js\";\nexport * from \"./presentation-common/rules/content/ContentSpecification.js\";\nexport * from \"./presentation-common/rules/content/PropertySpecification.js\";\nexport * from \"./presentation-common/rules/content/SelectedNodeInstancesSpecification.js\";\nexport * from \"./presentation-common/rules/content/DefaultPropertyCategoryOverride.js\";\nexport * from \"./presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js\";\nexport * from \"./presentation-common/rules/content/modifiers/ContentModifier.js\";\nexport * from \"./presentation-common/rules/content/modifiers/PropertyCategorySpecification.js\";\nexport * from \"./presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js\";\nexport * from \"./presentation-common/rules/content/modifiers/CustomRendererSpecification.js\";\nexport * from \"./presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js\";\nexport * from \"./presentation-common/rules/ClassSpecifications.js\";\nexport * from \"./presentation-common/rules/RelatedInstanceSpecification.js\";\nexport * from \"./presentation-common/rules/RelationshipDirection.js\";\nexport * from \"./presentation-common/rules/RelationshipPathSpecification.js\";\nexport * from \"./presentation-common/rules/Rule.js\";\nexport * from \"./presentation-common/rules/Ruleset.js\";\nexport * from \"./presentation-common/rules/SchemasSpecification.js\";\nexport * from \"./presentation-common/rules/Variables.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"presentation-common.js","sourceRoot":"","sources":["../../src/presentation-common.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;;;;GAKG;AACH,OAAO,EAUL,mBAAmB,GACpB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAGL,WAAW,EAMX,sBAAsB,EAEtB,YAAY,EAMZ,gBAAgB,EAEhB,wCAAwC,EAExC,gBAAgB,GAIjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,EAAE,GAAG,EAAoB,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAsC,eAAe,EAAE,MAAM,0CAA0C,CAAC;AA4B/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAC/E,OAAO,EACL,kBAAkB,EASlB,eAAe,GAGhB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,eAAe,EAAuD,MAAM,0CAA0C,CAAC;AAChI,OAAO,EACL,WAAW,GASZ,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,uBAAuB,EAA8D,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAQxJ,OAAO,EAA+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AAC;AAC3F,cAAc,uDAAuD,CAAC;AACtE,cAAc,uDAAuD,CAAC;AACtE,cAAc,gEAAgE,CAAC;AAC/E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,2DAA2D,CAAC;AAC1E,cAAc,oEAAoE,CAAC;AACnF,cAAc,0DAA0D,CAAC;AACzE,cAAc,uFAAuF,CAAC;AACtG,cAAc,6EAA6E,CAAC;AAC5F,cAAc,oDAAoD,CAAC;AACnE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,2EAA2E,CAAC;AAC1F,cAAc,wEAAwE,CAAC;AACvF,cAAc,oFAAoF,CAAC;AACnG,cAAc,kEAAkE,CAAC;AACjF,cAAc,gFAAgF,CAAC;AAC/F,cAAc,+EAA+E,CAAC;AAC9F,cAAc,8EAA8E,CAAC;AAC7F,cAAc,iFAAiF,CAAC;AAChG,cAAc,oDAAoD,CAAC;AACnE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,sDAAsD,CAAC;AACrE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,qCAAqC,CAAC;AACpD,cAAc,wCAAwC,CAAC;AACvD,cAAc,qDAAqD,CAAC;AACpE,cAAc,0CAA0C,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/**\n * @module Core\n *\n * @docs-group-description Core\n * Common types used all across Presentation packages.\n */\nexport {\n DiagnosticsLoggerSeverity,\n Diagnostics,\n ClientDiagnostics,\n DiagnosticsOptions,\n ClientDiagnosticsHandler,\n ClientDiagnosticsOptions,\n ClientDiagnosticsAttribute,\n DiagnosticsLogMessage,\n DiagnosticsScopeLogs,\n DiagnosticsLogEntry,\n} from \"./presentation-common/Diagnostics.js\";\nexport {\n ClassId,\n InstanceId,\n InstanceKey,\n ClassInfo,\n CompressedClassInfoJSON,\n EnumerationChoice,\n EnumerationInfo,\n KindOfQuantityInfo,\n NavigationPropertyInfo,\n NavigationPropertyInfoJSON,\n PropertyInfo,\n PropertyValueConstraints,\n StringPropertyValueConstraints,\n NumericPropertyValueConstraints,\n ArrayPropertyValueConstraints,\n PropertyInfoJSON,\n RelatedClassInfo,\n RelatedClassInfoJSON,\n RelatedClassInfoWithOptionalRelationship,\n RelatedClassInfoWithOptionalRelationshipJSON,\n RelationshipPath,\n RelationshipPathJSON,\n StrippedRelatedClassInfo,\n StrippedRelationshipPath,\n} from \"./presentation-common/EC.js\";\nexport { PresentationStatus, PresentationError } from \"./presentation-common/Error.js\";\nexport { Key, Keys, KeySetJSON, KeySet } from \"./presentation-common/KeySet.js\";\nexport { LabelCompositeValue, LabelRawValue, LabelDefinition } from \"./presentation-common/LabelDefinition.js\";\nexport {\n RequestOptions,\n RequestOptionsWithRuleset,\n HierarchyRequestOptions,\n HierarchyLevelDescriptorRequestOptions,\n FilterByInstancePathsHierarchyRequestOptions,\n FilterByTextHierarchyRequestOptions,\n ContentSourcesRequestOptions,\n ContentDescriptorRequestOptions,\n ContentRequestOptions,\n DistinctValuesRequestOptions,\n ElementPropertiesRequestOptions,\n SingleElementPropertiesRequestOptions,\n MultiElementPropertiesByClassRequestOptions,\n MultiElementPropertiesByIdsRequestOptions,\n MultiElementPropertiesRequestOptions,\n ContentInstanceKeysRequestOptions,\n DisplayLabelRequestOptions,\n DisplayLabelsRequestOptions,\n SelectionScopeRequestOptions,\n ComputeSelectionRequestOptions,\n HierarchyCompareOptions,\n PageOptions,\n Paged,\n Prioritized,\n WithCancelEvent,\n} from \"./presentation-common/PresentationManagerOptions.js\";\nexport { RegisteredRuleset } from \"./presentation-common/RegisteredRuleset.js\";\nexport {\n VariableValueTypes,\n VariableValue,\n VariableValueJSON,\n BooleanRulesetVariable,\n StringRulesetVariable,\n IntRulesetVariable,\n IntsRulesetVariable,\n Id64RulesetVariable,\n Id64sRulesetVariable,\n RulesetVariable,\n Id64sRulesetVariableJSON,\n RulesetVariableJSON,\n} from \"./presentation-common/RulesetVariables.js\";\nexport { RulesetsFactory, ComputeDisplayValueCallback, PrimitivePropertyValue } from \"./presentation-common/RulesetsFactory.js\";\nexport {\n UPDATE_FULL,\n UpdateInfo,\n HierarchyUpdateInfo,\n ContentUpdateInfo,\n PartialHierarchyModification,\n NodeInsertionInfo,\n NodeDeletionInfo,\n NodeUpdateInfo,\n HierarchyCompareInfo,\n} from \"./presentation-common/Update.js\";\nexport { DEFAULT_KEYS_BATCH_SIZE, Omit, PagedResponse, PartialBy, Subtract, ValuesDictionary, getInstancesCount } from \"./presentation-common/Utils.js\";\nexport {\n InstanceFilterDefinition,\n InstanceFilterRelatedInstanceDefinition,\n InstanceFilterRelatedInstancePath,\n InstanceFilterRelatedInstanceTargetAlias,\n InstanceFilterRelatedInstanceRelationshipAlias,\n} from \"./presentation-common/InstanceFilterDefinition.js\";\nexport { UnitSystemFormat, FormatsMap, FormatOptions, KoqPropertyValueFormatter } from \"./presentation-common/KoqPropertyValueFormatter.js\";\n\n/**\n * @module RPC\n *\n * @docs-group-description RPC\n * Types used for RPC communication between frontend and backend. Generally should\n * only be used internally by presentation packages.\n */\nexport {\n PresentationRpcRequestOptions,\n PresentationRpcResponseData,\n RpcDiagnosticsOptions,\n PresentationRpcResponse,\n HierarchyRpcRequestOptions,\n HierarchyLevelDescriptorRpcRequestOptions,\n FilterByInstancePathsHierarchyRpcRequestOptions,\n FilterByTextHierarchyRpcRequestOptions,\n ContentSourcesRpcRequestOptions,\n ContentSourcesRpcResult,\n ContentDescriptorRpcRequestOptions,\n ContentRpcRequestOptions,\n SingleElementPropertiesRpcRequestOptions,\n DistinctValuesRpcRequestOptions,\n ContentInstanceKeysRpcRequestOptions,\n DisplayLabelRpcRequestOptions,\n DisplayLabelsRpcRequestOptions,\n SelectionScopeRpcRequestOptions,\n ComputeSelectionRpcRequestOptions,\n PresentationRpcInterface,\n} from \"./presentation-common/PresentationRpcInterface.js\";\n\n/**\n * @module UnifiedSelection\n *\n * @docs-group-description UnifiedSelection\n * Types related to [unified selection]($docs/presentation/unified-selection/index.md).\n */\nexport { SelectionScope, ElementSelectionScopeProps, SelectionScopeProps } from \"./presentation-common/selection/SelectionScope.js\";\n\n/**\n * @module Content\n *\n * @docs-group-description Content\n * Types related to presentation [content]($docs/presentation/content/index.md).\n */\nexport { CategoryDescription, CategoryDescriptionJSON } from \"./presentation-common/content/Category.js\";\nexport { ContentJSON, Content } from \"./presentation-common/content/Content.js\";\nexport {\n SelectClassInfo,\n SelectClassInfoJSON,\n ContentFlags,\n SortDirection,\n SelectionInfo,\n DescriptorJSON,\n DescriptorOverrides,\n DescriptorSource,\n Descriptor,\n} from \"./presentation-common/content/Descriptor.js\";\nexport { DefaultContentDisplayTypes } from \"./presentation-common/content/DisplayTypes.js\";\nexport { EditorDescription } from \"./presentation-common/content/Editor.js\";\nexport {\n PropertiesFieldJSON,\n ArrayPropertiesFieldJSON,\n StructPropertiesFieldJSON,\n NestedContentFieldJSON,\n FieldJSON,\n Field,\n PropertiesField,\n ArrayPropertiesField,\n StructPropertiesField,\n NestedContentField,\n FieldDescriptorType,\n FieldDescriptor,\n NamedFieldDescriptor,\n PropertiesFieldDescriptor,\n} from \"./presentation-common/content/Fields.js\";\nexport { ItemJSON, Item } from \"./presentation-common/content/Item.js\";\nexport { PropertyAccessor, PropertyAccessorPath, Property, PropertyJSON } from \"./presentation-common/content/Property.js\";\nexport { RendererDescription } from \"./presentation-common/content/Renderer.js\";\nexport {\n PropertyValueFormat,\n PrimitiveTypeDescription,\n ArrayTypeDescription,\n StructFieldMemberDescription,\n StructTypeDescription,\n TypeDescription,\n} from \"./presentation-common/content/TypeDescription.js\";\nexport {\n Value,\n ValuesMap,\n ValuesArray,\n DisplayValue,\n DisplayValuesMap,\n DisplayValuesArray,\n NestedContentValue,\n NavigationPropertyValue,\n DisplayValueGroup,\n} from \"./presentation-common/content/Value.js\";\nexport {\n FieldHierarchy,\n StartContentProps,\n ProcessFieldHierarchiesProps,\n StartItemProps,\n StartCategoryProps,\n StartFieldProps,\n StartStructProps,\n StartArrayProps,\n ProcessMergedValueProps,\n ProcessPrimitiveValueProps,\n IContentVisitor,\n traverseFieldHierarchy,\n traverseContent,\n traverseContentItem,\n createContentTraverser,\n createFieldHierarchies,\n addFieldHierarchy,\n combineFieldNames,\n parseCombinedFieldNames,\n} from \"./presentation-common/content/ContentTraverser.js\";\nexport { createContentFormatter } from \"./presentation-common/content/PropertyValueFormatter.js\";\nexport {\n ElementProperties,\n ElementPropertiesCategoryItem,\n ElementPropertiesPrimitivePropertyItem,\n ElementPropertiesPrimitiveArrayPropertyItem,\n ElementPropertiesStructArrayPropertyItem,\n ElementPropertiesArrayPropertyItem,\n ElementPropertiesStructPropertyItem,\n ElementPropertiesPropertyValueType,\n ElementPropertiesPropertyItem,\n ElementPropertiesItem,\n} from \"./presentation-common/ElementProperties.js\";\n\n/**\n * @module Hierarchies\n *\n * @docs-group-description Hierarchies\n * Types related to presentation [hierarchies]($docs/presentation/hierarchies/index.md).\n */\nexport { HierarchyLevel } from \"./presentation-common/hierarchy/HierarchyLevel.js\";\nexport {\n StandardNodeTypes,\n NodeKey,\n NodeKeyPath,\n BaseNodeKey,\n ECInstancesNodeKey,\n GroupingNodeKey,\n ECClassGroupingNodeKey,\n ECPropertyGroupingNodeKey,\n LabelGroupingNodeKey,\n PresentationQuery,\n IdBinding,\n IdSetBinding,\n ECValueBinding,\n ECValueSetBinding,\n PresentationQueryBinding,\n} from \"./presentation-common/hierarchy/Key.js\";\nexport { Node, PartialNode } from \"./presentation-common/hierarchy/Node.js\";\nexport { NodePathElement, NodePathFilteringData } from \"./presentation-common/hierarchy/NodePathElement.js\";\n\n/**\n * @module PresentationRules\n *\n * @docs-group-description PresentationRules\n * Types for defining the presentation ruleset.\n */\n// note: everything under `rules/` is public, so no need to name each exported api\nexport * from \"./presentation-common/rules/hierarchy/ChildNodeRule.js\";\nexport * from \"./presentation-common/rules/hierarchy/ChildNodeSpecification.js\";\nexport * from \"./presentation-common/rules/hierarchy/CustomNodeSpecification.js\";\nexport * from \"./presentation-common/rules/hierarchy/CustomQueryInstanceNodesSpecification.js\";\nexport * from \"./presentation-common/rules/hierarchy/InstanceNodesOfSpecificClassesSpecification.js\";\nexport * from \"./presentation-common/rules/hierarchy/NavigationRule.js\";\nexport * from \"./presentation-common/rules/hierarchy/NodeArtifactsRule.js\";\nexport * from \"./presentation-common/rules/hierarchy/RelatedInstanceNodesSpecification.js\";\nexport * from \"./presentation-common/rules/hierarchy/RootNodeRule.js\";\nexport * from \"./presentation-common/rules/hierarchy/SubCondition.js\";\nexport * from \"./presentation-common/rules/customization/CustomizationRule.js\";\nexport * from \"./presentation-common/rules/customization/ExtendedDataRule.js\";\nexport * from \"./presentation-common/rules/customization/GroupingRule.js\";\nexport * from \"./presentation-common/rules/customization/InstanceLabelOverride.js\";\nexport * from \"./presentation-common/rules/customization/SortingRule.js\";\nexport * from \"./presentation-common/rules/content/ContentInstancesOfSpecificClassesSpecification.js\";\nexport * from \"./presentation-common/rules/content/ContentRelatedInstancesSpecification.js\";\nexport * from \"./presentation-common/rules/content/ContentRule.js\";\nexport * from \"./presentation-common/rules/content/ContentSpecification.js\";\nexport * from \"./presentation-common/rules/content/PropertySpecification.js\";\nexport * from \"./presentation-common/rules/content/SelectedNodeInstancesSpecification.js\";\nexport * from \"./presentation-common/rules/content/DefaultPropertyCategoryOverride.js\";\nexport * from \"./presentation-common/rules/content/modifiers/CalculatedPropertiesSpecification.js\";\nexport * from \"./presentation-common/rules/content/modifiers/ContentModifier.js\";\nexport * from \"./presentation-common/rules/content/modifiers/PropertyCategorySpecification.js\";\nexport * from \"./presentation-common/rules/content/modifiers/PropertyEditorsSpecification.js\";\nexport * from \"./presentation-common/rules/content/modifiers/CustomRendererSpecification.js\";\nexport * from \"./presentation-common/rules/content/modifiers/RelatedPropertiesSpecification.js\";\nexport * from \"./presentation-common/rules/ClassSpecifications.js\";\nexport * from \"./presentation-common/rules/RelatedInstanceSpecification.js\";\nexport * from \"./presentation-common/rules/RelationshipDirection.js\";\nexport * from \"./presentation-common/rules/RelationshipPathSpecification.js\";\nexport * from \"./presentation-common/rules/Rule.js\";\nexport * from \"./presentation-common/rules/Ruleset.js\";\nexport * from \"./presentation-common/rules/SchemasSpecification.js\";\nexport * from \"./presentation-common/rules/Variables.js\";\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/presentation-common",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0-dev.2",
|
|
4
4
|
"description": "Common pieces for iModel.js presentation packages",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"@itwin/presentation-shared": "^1.2.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@itwin/core-bentley": "5.
|
|
50
|
-
"@itwin/core-
|
|
51
|
-
"@itwin/core-
|
|
52
|
-
"@itwin/ecschema-metadata": "5.
|
|
49
|
+
"@itwin/core-bentley": "5.5.0-dev.2",
|
|
50
|
+
"@itwin/core-quantity": "5.5.0-dev.2",
|
|
51
|
+
"@itwin/core-common": "5.5.0-dev.2",
|
|
52
|
+
"@itwin/ecschema-metadata": "5.5.0-dev.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@itwin/eslint-plugin": "5.2.2-dev.2",
|
|
@@ -81,12 +81,12 @@
|
|
|
81
81
|
"typescript": "~5.6.2",
|
|
82
82
|
"typescript-json-schema": "^0.55.0",
|
|
83
83
|
"yargs": "^17.4.0",
|
|
84
|
-
"@itwin/core-bentley": "5.
|
|
85
|
-
"@itwin/build-tools": "5.
|
|
86
|
-
"@itwin/
|
|
87
|
-
"
|
|
88
|
-
"@itwin/
|
|
89
|
-
"
|
|
84
|
+
"@itwin/core-bentley": "5.5.0-dev.2",
|
|
85
|
+
"@itwin/build-tools": "5.5.0-dev.2",
|
|
86
|
+
"@itwin/core-quantity": "5.5.0-dev.2",
|
|
87
|
+
"internal-tools": "3.0.0-dev.69",
|
|
88
|
+
"@itwin/ecschema-metadata": "5.5.0-dev.2",
|
|
89
|
+
"@itwin/core-common": "5.5.0-dev.2"
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|
|
92
92
|
"build": "npm run -s ruleset-json-schema && npm run -s build:assets && npm run -s build:public && npm run -s build:cjs && npm run -s build:esm",
|