@itwin/core-frontend 5.0.0-dev.54 → 5.0.0-dev.55
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.
|
@@ -62,7 +62,7 @@ export interface TxnEntityChangesFilterOptions {
|
|
|
62
62
|
/** Describes a set of elements or models that were modified as part of a transaction in a [[BriefcaseConnection]],
|
|
63
63
|
* serving as the payload for the [[BriefcaseTxns.onElementsChanged]] and [[BriefcaseTxns.onModelsChanged]] events.
|
|
64
64
|
* The [[inserted]], [[deleted]], and [[updated]] compressed Id sets can be awkward to work with.
|
|
65
|
-
* It can be more convenient to iterate over the individual [[TxnEntityChange]]s, especially if you
|
|
65
|
+
* It can be more convenient to iterate over the individual [[TxnEntityChange]]s, especially if you wish to [[filter]] out some
|
|
66
66
|
* changes.
|
|
67
67
|
* @public
|
|
68
68
|
* @extensions
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TxnEntityChanges.js","sourceRoot":"","sources":["../../src/TxnEntityChanges.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAoE;AAuFpE,MAAa,QAAQ;IAInB,YAAmB,IAAY;QAFf,gBAAW,GAAe,EAAE,CAAC;QAG3C,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;IAC5B,CAAC;IAEM,EAAE,CAAC,QAAgB;QACxB,OAAO,QAAQ,KAAK,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/F,CAAC;CACF;AAXD,4BAWC;AAED,QAAS,CAAC,CAAC,qBAAqB,CAAC,OAAsB,EAAE,OAAuC;IAC9F,IAAI,mBAA4C,CAAC;IACjD,IAAI,OAAO,EAAE,eAAe,EAAE,CAAC;QAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,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------------------------------------------------------\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 IModelConnection\n */\n\nimport { CompressedId64Set, Id64String } from \"@itwin/core-bentley\";\nimport { NotifyEntitiesChangedArgs } from \"@itwin/core-common\";\n\n/** Describes the BIS class of a [[TxnEntityChange]].\n * @public\n * @extensions\n */\nexport interface TxnEntityMetadata {\n /** The class's name in \"Schema:Class\" format. */\n readonly classFullName: string;\n\n /** Returns true if this class is or is derived from the specified class.\n * @note Class names are compared case-sensitively.\n */\n is(baseClassFullName: string): boolean;\n}\n\n/** The type of operation that produced a [[TxnEntityChange]].\n * @public\n * @extensions\n */\nexport type TxnEntityChangeType = \"inserted\" | \"deleted\" | \"updated\";\n\n/** Represents a single change to a single [Entity]($backend), as part of a collection of [[TxnEntityChanges]].\n * @public\n * @extensions\n */\nexport interface TxnEntityChange {\n /** The operation that produced the change. */\n type: TxnEntityChangeType;\n /** The Id of the affected entity. */\n id: Id64String;\n /** A representation of the BIS class of the affected entity. */\n metadata: TxnEntityMetadata;\n}\n\n/** A collection of [[TxnEntityChange]]s.\n * @public\n * @extensions\n */\nexport type TxnEntityChangeIterable = Iterable<Readonly<TxnEntityChange>>;\n\n/** A function that returns `true` if a particular BIS [Entity]($backend) class should be included when iterating a [[TxnEntityChangeIterable]].\n * For example, you may wish to include only elements deriving from \"BisCore:GeometricElement\", which you can determine by using [[TxnEntityMetadata.is]].\n * @see [[TxnEntityChangesFilterOptions.includeMetadata]] to supply such a criterion to [[TxnEntityChanges.filter]].\n * @public\n * @extensions\n */\nexport type TxnEntityMetadataCriterion = (metadata: TxnEntityMetadata) => boolean;\n\n/** Options defining criteria by which to filter the contents of a [[TxnEntityChanges]].\n * @public\n * @extensions\n */\nexport interface TxnEntityChangesFilterOptions {\n /** Permits filtering based on metadata. For example, you may wish to include only elements deriving from \"BisCore:GeometricElement\",\n * which you can determine by using [[TxnEntityMetadata.is]].\n * Only entities with metadata for which this function returns `true` will be included in the iteration.\n */\n includeMetadata?: TxnEntityMetadataCriterion;\n\n /** Permits filtering based on the type of change. For example, you may only care about newly-inserted entities, in which case you would specify `[\"inserted\"]`.\n * Only changes of the specified type(s) will be included in the iteration.\n */\n includeTypes?: TxnEntityChangeType[];\n}\n\n/** Describes a set of elements or models that were modified as part of a transaction in a [[BriefcaseConnection]],\n * serving as the payload for the [[BriefcaseTxns.onElementsChanged]] and [[BriefcaseTxns.onModelsChanged]] events.\n * The [[inserted]], [[deleted]], and [[updated]] compressed Id sets can be awkward to work with.\n * It can be more convenient to iterate over the individual [[TxnEntityChange]]s, especially if you
|
|
1
|
+
{"version":3,"file":"TxnEntityChanges.js","sourceRoot":"","sources":["../../src/TxnEntityChanges.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAoE;AAuFpE,MAAa,QAAQ;IAInB,YAAmB,IAAY;QAFf,gBAAW,GAAe,EAAE,CAAC;QAG3C,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;IAC5B,CAAC;IAEM,EAAE,CAAC,QAAgB;QACxB,OAAO,QAAQ,KAAK,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/F,CAAC;CACF;AAXD,4BAWC;AAED,QAAS,CAAC,CAAC,qBAAqB,CAAC,OAAsB,EAAE,OAAuC;IAC9F,IAAI,mBAA4C,CAAC;IACjD,IAAI,OAAO,EAAE,eAAe,EAAE,CAAC;QAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACjD,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,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jB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QAC3D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC9C,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YAC9B,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;gBAC3C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;YAClD,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAW,QAAQ,KAAoC,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnF,IAAW,OAAO,KAAoC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACjF,IAAW,OAAO,KAAoC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IAE1E,CAAC,MAAM,CAAC,QAAQ,CAAC;QACtB,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IAEM,MAAM,CAAC,OAAsC;QAClD,OAAO;YACL,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC;SAC9D,CAAC;IACJ,CAAC;CACF;AA7BD,sCA6BC","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 IModelConnection\n */\n\nimport { CompressedId64Set, Id64String } from \"@itwin/core-bentley\";\nimport { NotifyEntitiesChangedArgs } from \"@itwin/core-common\";\n\n/** Describes the BIS class of a [[TxnEntityChange]].\n * @public\n * @extensions\n */\nexport interface TxnEntityMetadata {\n /** The class's name in \"Schema:Class\" format. */\n readonly classFullName: string;\n\n /** Returns true if this class is or is derived from the specified class.\n * @note Class names are compared case-sensitively.\n */\n is(baseClassFullName: string): boolean;\n}\n\n/** The type of operation that produced a [[TxnEntityChange]].\n * @public\n * @extensions\n */\nexport type TxnEntityChangeType = \"inserted\" | \"deleted\" | \"updated\";\n\n/** Represents a single change to a single [Entity]($backend), as part of a collection of [[TxnEntityChanges]].\n * @public\n * @extensions\n */\nexport interface TxnEntityChange {\n /** The operation that produced the change. */\n type: TxnEntityChangeType;\n /** The Id of the affected entity. */\n id: Id64String;\n /** A representation of the BIS class of the affected entity. */\n metadata: TxnEntityMetadata;\n}\n\n/** A collection of [[TxnEntityChange]]s.\n * @public\n * @extensions\n */\nexport type TxnEntityChangeIterable = Iterable<Readonly<TxnEntityChange>>;\n\n/** A function that returns `true` if a particular BIS [Entity]($backend) class should be included when iterating a [[TxnEntityChangeIterable]].\n * For example, you may wish to include only elements deriving from \"BisCore:GeometricElement\", which you can determine by using [[TxnEntityMetadata.is]].\n * @see [[TxnEntityChangesFilterOptions.includeMetadata]] to supply such a criterion to [[TxnEntityChanges.filter]].\n * @public\n * @extensions\n */\nexport type TxnEntityMetadataCriterion = (metadata: TxnEntityMetadata) => boolean;\n\n/** Options defining criteria by which to filter the contents of a [[TxnEntityChanges]].\n * @public\n * @extensions\n */\nexport interface TxnEntityChangesFilterOptions {\n /** Permits filtering based on metadata. For example, you may wish to include only elements deriving from \"BisCore:GeometricElement\",\n * which you can determine by using [[TxnEntityMetadata.is]].\n * Only entities with metadata for which this function returns `true` will be included in the iteration.\n */\n includeMetadata?: TxnEntityMetadataCriterion;\n\n /** Permits filtering based on the type of change. For example, you may only care about newly-inserted entities, in which case you would specify `[\"inserted\"]`.\n * Only changes of the specified type(s) will be included in the iteration.\n */\n includeTypes?: TxnEntityChangeType[];\n}\n\n/** Describes a set of elements or models that were modified as part of a transaction in a [[BriefcaseConnection]],\n * serving as the payload for the [[BriefcaseTxns.onElementsChanged]] and [[BriefcaseTxns.onModelsChanged]] events.\n * The [[inserted]], [[deleted]], and [[updated]] compressed Id sets can be awkward to work with.\n * It can be more convenient to iterate over the individual [[TxnEntityChange]]s, especially if you wish to [[filter]] out some\n * changes.\n * @public\n * @extensions\n */\nexport interface TxnEntityChanges extends TxnEntityChangeIterable {\n /** The ids of entities that were inserted during the Txn. */\n readonly inserted?: CompressedId64Set;\n /** The ids of entities that were deleted during the Txn. */\n readonly deleted?: CompressedId64Set;\n /** The ids of entities that were modified during the Txn, including any [Element]($backend)s for which one of their [ElementAspect]($backend)s was changed. */\n readonly updated?: CompressedId64Set;\n\n /** Obtain an iterator over changes meeting the criteria specified by `options`. */\n filter(options: TxnEntityChangesFilterOptions): TxnEntityChangeIterable;\n}\n\nexport class Metadata implements TxnEntityMetadata {\n public readonly classFullName: string;\n public readonly baseClasses: Metadata[] = [];\n\n public constructor(name: string) {\n this.classFullName = name;\n }\n\n public is(baseName: string): boolean {\n return baseName === this.classFullName || this.baseClasses.some((base) => base.is(baseName));\n }\n}\n\nfunction * entityChangesIterator(changes: EntityChanges, options?: TxnEntityChangesFilterOptions): Iterator<TxnEntityChange> {\n let excludedMetaIndices: Set<number> | undefined;\n if (options?.includeMetadata) {\n for (let i = 0; i < changes.metadata.length; i++) {\n if (!options.includeMetadata(changes.metadata[i])) {\n excludedMetaIndices = excludedMetaIndices ?? new Set<number>();\n excludedMetaIndices.add(i);\n }\n }\n }\n\n function * process(type: TxnEntityChangeType) {\n if (options?.includeTypes && !options.includeTypes.includes(type)) {\n return;\n }\n\n const ids = changes[type];\n if (undefined === ids) {\n return;\n }\n\n const metaIndices = changes.args[`${type}Meta`];\n let index = 0;\n for (const id of CompressedId64Set.iterable(ids)) {\n const metaIndex = metaIndices[index++];\n if (excludedMetaIndices && excludedMetaIndices.has(metaIndex)) {\n continue;\n }\n\n const metadata = changes.metadata[metaIndex];\n yield { type, id, metadata };\n }\n }\n\n yield* process(\"inserted\");\n yield* process(\"deleted\");\n yield* process(\"updated\");\n}\n\nexport class EntityChanges implements TxnEntityChanges {\n public readonly args: NotifyEntitiesChangedArgs;\n public readonly metadata: Metadata[];\n\n public constructor(args: NotifyEntitiesChangedArgs) {\n this.args = args;\n\n this.metadata = args.meta.map((x) => new Metadata(x.name));\n for (let i = 0; i < this.metadata.length; i++) {\n const meta = this.metadata[i];\n for (const baseIndex of args.meta[i].bases) {\n meta.baseClasses.push(this.metadata[baseIndex]);\n }\n }\n }\n\n public get inserted(): CompressedId64Set | undefined { return this.args.inserted; }\n public get deleted(): CompressedId64Set | undefined { return this.args.deleted; }\n public get updated(): CompressedId64Set | undefined { return this.args.updated; }\n\n public [Symbol.iterator](): Iterator<TxnEntityChange> {\n return entityChangesIterator(this);\n }\n\n public filter(options: TxnEntityChangesFilterOptions): TxnEntityChangeIterable {\n return {\n [Symbol.iterator]: () => entityChangesIterator(this, options),\n };\n }\n}\n"]}
|
|
@@ -62,7 +62,7 @@ export interface TxnEntityChangesFilterOptions {
|
|
|
62
62
|
/** Describes a set of elements or models that were modified as part of a transaction in a [[BriefcaseConnection]],
|
|
63
63
|
* serving as the payload for the [[BriefcaseTxns.onElementsChanged]] and [[BriefcaseTxns.onModelsChanged]] events.
|
|
64
64
|
* The [[inserted]], [[deleted]], and [[updated]] compressed Id sets can be awkward to work with.
|
|
65
|
-
* It can be more convenient to iterate over the individual [[TxnEntityChange]]s, especially if you
|
|
65
|
+
* It can be more convenient to iterate over the individual [[TxnEntityChange]]s, especially if you wish to [[filter]] out some
|
|
66
66
|
* changes.
|
|
67
67
|
* @public
|
|
68
68
|
* @extensions
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TxnEntityChanges.js","sourceRoot":"","sources":["../../src/TxnEnt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C,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;YAClD,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAW,QAAQ,KAAoC,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnF,IAAW,OAAO,KAAoC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACjF,IAAW,OAAO,KAAoC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IAE1E,CAAC,MAAM,CAAC,QAAQ,CAAC;QACtB,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IAEM,MAAM,CAAC,OAAsC;QAClD,OAAO;YACL,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC;SAC9D,CAAC;IACJ,CAAC;CACF","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 IModelConnection\n */\n\nimport { CompressedId64Set, Id64String } from \"@itwin/core-bentley\";\nimport { NotifyEntitiesChangedArgs } from \"@itwin/core-common\";\n\n/** Describes the BIS class of a [[TxnEntityChange]].\n * @public\n * @extensions\n */\nexport interface TxnEntityMetadata {\n /** The class's name in \"Schema:Class\" format. */\n readonly classFullName: string;\n\n /** Returns true if this class is or is derived from the specified class.\n * @note Class names are compared case-sensitively.\n */\n is(baseClassFullName: string): boolean;\n}\n\n/** The type of operation that produced a [[TxnEntityChange]].\n * @public\n * @extensions\n */\nexport type TxnEntityChangeType = \"inserted\" | \"deleted\" | \"updated\";\n\n/** Represents a single change to a single [Entity]($backend), as part of a collection of [[TxnEntityChanges]].\n * @public\n * @extensions\n */\nexport interface TxnEntityChange {\n /** The operation that produced the change. */\n type: TxnEntityChangeType;\n /** The Id of the affected entity. */\n id: Id64String;\n /** A representation of the BIS class of the affected entity. */\n metadata: TxnEntityMetadata;\n}\n\n/** A collection of [[TxnEntityChange]]s.\n * @public\n * @extensions\n */\nexport type TxnEntityChangeIterable = Iterable<Readonly<TxnEntityChange>>;\n\n/** A function that returns `true` if a particular BIS [Entity]($backend) class should be included when iterating a [[TxnEntityChangeIterable]].\n * For example, you may wish to include only elements deriving from \"BisCore:GeometricElement\", which you can determine by using [[TxnEntityMetadata.is]].\n * @see [[TxnEntityChangesFilterOptions.includeMetadata]] to supply such a criterion to [[TxnEntityChanges.filter]].\n * @public\n * @extensions\n */\nexport type TxnEntityMetadataCriterion = (metadata: TxnEntityMetadata) => boolean;\n\n/** Options defining criteria by which to filter the contents of a [[TxnEntityChanges]].\n * @public\n * @extensions\n */\nexport interface TxnEntityChangesFilterOptions {\n /** Permits filtering based on metadata. For example, you may wish to include only elements deriving from \"BisCore:GeometricElement\",\n * which you can determine by using [[TxnEntityMetadata.is]].\n * Only entities with metadata for which this function returns `true` will be included in the iteration.\n */\n includeMetadata?: TxnEntityMetadataCriterion;\n\n /** Permits filtering based on the type of change. For example, you may only care about newly-inserted entities, in which case you would specify `[\"inserted\"]`.\n * Only changes of the specified type(s) will be included in the iteration.\n */\n includeTypes?: TxnEntityChangeType[];\n}\n\n/** Describes a set of elements or models that were modified as part of a transaction in a [[BriefcaseConnection]],\n * serving as the payload for the [[BriefcaseTxns.onElementsChanged]] and [[BriefcaseTxns.onModelsChanged]] events.\n * The [[inserted]], [[deleted]], and [[updated]] compressed Id sets can be awkward to work with.\n * It can be more convenient to iterate over the individual [[TxnEntityChange]]s, especially if you
|
|
1
|
+
{"version":3,"file":"TxnEntityChanges.js","sourceRoot":"","sources":["../../src/TxnEntityChanges.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAc,MAAM,qBAAqB,CAAC;AAuFpE,MAAM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,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnF,IAAW,OAAO,KAAoC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACjF,IAAW,OAAO,KAAoC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IAE1E,CAAC,MAAM,CAAC,QAAQ,CAAC;QACtB,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IAEM,MAAM,CAAC,OAAsC;QAClD,OAAO;YACL,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC;SAC9D,CAAC;IACJ,CAAC;CACF","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 IModelConnection\n */\n\nimport { CompressedId64Set, Id64String } from \"@itwin/core-bentley\";\nimport { NotifyEntitiesChangedArgs } from \"@itwin/core-common\";\n\n/** Describes the BIS class of a [[TxnEntityChange]].\n * @public\n * @extensions\n */\nexport interface TxnEntityMetadata {\n /** The class's name in \"Schema:Class\" format. */\n readonly classFullName: string;\n\n /** Returns true if this class is or is derived from the specified class.\n * @note Class names are compared case-sensitively.\n */\n is(baseClassFullName: string): boolean;\n}\n\n/** The type of operation that produced a [[TxnEntityChange]].\n * @public\n * @extensions\n */\nexport type TxnEntityChangeType = \"inserted\" | \"deleted\" | \"updated\";\n\n/** Represents a single change to a single [Entity]($backend), as part of a collection of [[TxnEntityChanges]].\n * @public\n * @extensions\n */\nexport interface TxnEntityChange {\n /** The operation that produced the change. */\n type: TxnEntityChangeType;\n /** The Id of the affected entity. */\n id: Id64String;\n /** A representation of the BIS class of the affected entity. */\n metadata: TxnEntityMetadata;\n}\n\n/** A collection of [[TxnEntityChange]]s.\n * @public\n * @extensions\n */\nexport type TxnEntityChangeIterable = Iterable<Readonly<TxnEntityChange>>;\n\n/** A function that returns `true` if a particular BIS [Entity]($backend) class should be included when iterating a [[TxnEntityChangeIterable]].\n * For example, you may wish to include only elements deriving from \"BisCore:GeometricElement\", which you can determine by using [[TxnEntityMetadata.is]].\n * @see [[TxnEntityChangesFilterOptions.includeMetadata]] to supply such a criterion to [[TxnEntityChanges.filter]].\n * @public\n * @extensions\n */\nexport type TxnEntityMetadataCriterion = (metadata: TxnEntityMetadata) => boolean;\n\n/** Options defining criteria by which to filter the contents of a [[TxnEntityChanges]].\n * @public\n * @extensions\n */\nexport interface TxnEntityChangesFilterOptions {\n /** Permits filtering based on metadata. For example, you may wish to include only elements deriving from \"BisCore:GeometricElement\",\n * which you can determine by using [[TxnEntityMetadata.is]].\n * Only entities with metadata for which this function returns `true` will be included in the iteration.\n */\n includeMetadata?: TxnEntityMetadataCriterion;\n\n /** Permits filtering based on the type of change. For example, you may only care about newly-inserted entities, in which case you would specify `[\"inserted\"]`.\n * Only changes of the specified type(s) will be included in the iteration.\n */\n includeTypes?: TxnEntityChangeType[];\n}\n\n/** Describes a set of elements or models that were modified as part of a transaction in a [[BriefcaseConnection]],\n * serving as the payload for the [[BriefcaseTxns.onElementsChanged]] and [[BriefcaseTxns.onModelsChanged]] events.\n * The [[inserted]], [[deleted]], and [[updated]] compressed Id sets can be awkward to work with.\n * It can be more convenient to iterate over the individual [[TxnEntityChange]]s, especially if you wish to [[filter]] out some\n * changes.\n * @public\n * @extensions\n */\nexport interface TxnEntityChanges extends TxnEntityChangeIterable {\n /** The ids of entities that were inserted during the Txn. */\n readonly inserted?: CompressedId64Set;\n /** The ids of entities that were deleted during the Txn. */\n readonly deleted?: CompressedId64Set;\n /** The ids of entities that were modified during the Txn, including any [Element]($backend)s for which one of their [ElementAspect]($backend)s was changed. */\n readonly updated?: CompressedId64Set;\n\n /** Obtain an iterator over changes meeting the criteria specified by `options`. */\n filter(options: TxnEntityChangesFilterOptions): TxnEntityChangeIterable;\n}\n\nexport class Metadata implements TxnEntityMetadata {\n public readonly classFullName: string;\n public readonly baseClasses: Metadata[] = [];\n\n public constructor(name: string) {\n this.classFullName = name;\n }\n\n public is(baseName: string): boolean {\n return baseName === this.classFullName || this.baseClasses.some((base) => base.is(baseName));\n }\n}\n\nfunction * entityChangesIterator(changes: EntityChanges, options?: TxnEntityChangesFilterOptions): Iterator<TxnEntityChange> {\n let excludedMetaIndices: Set<number> | undefined;\n if (options?.includeMetadata) {\n for (let i = 0; i < changes.metadata.length; i++) {\n if (!options.includeMetadata(changes.metadata[i])) {\n excludedMetaIndices = excludedMetaIndices ?? new Set<number>();\n excludedMetaIndices.add(i);\n }\n }\n }\n\n function * process(type: TxnEntityChangeType) {\n if (options?.includeTypes && !options.includeTypes.includes(type)) {\n return;\n }\n\n const ids = changes[type];\n if (undefined === ids) {\n return;\n }\n\n const metaIndices = changes.args[`${type}Meta`];\n let index = 0;\n for (const id of CompressedId64Set.iterable(ids)) {\n const metaIndex = metaIndices[index++];\n if (excludedMetaIndices && excludedMetaIndices.has(metaIndex)) {\n continue;\n }\n\n const metadata = changes.metadata[metaIndex];\n yield { type, id, metadata };\n }\n }\n\n yield* process(\"inserted\");\n yield* process(\"deleted\");\n yield* process(\"updated\");\n}\n\nexport class EntityChanges implements TxnEntityChanges {\n public readonly args: NotifyEntitiesChangedArgs;\n public readonly metadata: Metadata[];\n\n public constructor(args: NotifyEntitiesChangedArgs) {\n this.args = args;\n\n this.metadata = args.meta.map((x) => new Metadata(x.name));\n for (let i = 0; i < this.metadata.length; i++) {\n const meta = this.metadata[i];\n for (const baseIndex of args.meta[i].bases) {\n meta.baseClasses.push(this.metadata[baseIndex]);\n }\n }\n }\n\n public get inserted(): CompressedId64Set | undefined { return this.args.inserted; }\n public get deleted(): CompressedId64Set | undefined { return this.args.deleted; }\n public get updated(): CompressedId64Set | undefined { return this.args.updated; }\n\n public [Symbol.iterator](): Iterator<TxnEntityChange> {\n return entityChangesIterator(this);\n }\n\n public filter(options: TxnEntityChangesFilterOptions): TxnEntityChangeIterable {\n return {\n [Symbol.iterator]: () => entityChangesIterator(this, options),\n };\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/core-frontend",
|
|
3
|
-
"version": "5.0.0-dev.
|
|
3
|
+
"version": "5.0.0-dev.55",
|
|
4
4
|
"description": "iTwin.js frontend components",
|
|
5
5
|
"main": "lib/cjs/core-frontend.js",
|
|
6
6
|
"module": "lib/esm/core-frontend.js",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"url": "http://www.bentley.com"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@itwin/appui-abstract": "5.0.0-dev.
|
|
27
|
-
"@itwin/core-
|
|
28
|
-
"@itwin/core-
|
|
29
|
-
"@itwin/core-
|
|
30
|
-
"@itwin/core-
|
|
31
|
-
"@itwin/core-quantity": "5.0.0-dev.
|
|
26
|
+
"@itwin/appui-abstract": "5.0.0-dev.55",
|
|
27
|
+
"@itwin/core-bentley": "5.0.0-dev.55",
|
|
28
|
+
"@itwin/core-common": "5.0.0-dev.55",
|
|
29
|
+
"@itwin/core-geometry": "5.0.0-dev.55",
|
|
30
|
+
"@itwin/core-orbitgt": "5.0.0-dev.55",
|
|
31
|
+
"@itwin/core-quantity": "5.0.0-dev.55"
|
|
32
32
|
},
|
|
33
33
|
"//devDependencies": [
|
|
34
34
|
"NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install",
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
"vite-multiple-assets": "^1.3.1",
|
|
54
54
|
"vite-plugin-static-copy": "1.0.6",
|
|
55
55
|
"webpack": "^5.97.1",
|
|
56
|
-
"@itwin/appui-abstract": "5.0.0-dev.
|
|
57
|
-
"@itwin/core-
|
|
58
|
-
"@itwin/
|
|
59
|
-
"@itwin/
|
|
60
|
-
"@itwin/core-quantity": "5.0.0-dev.
|
|
61
|
-
"@itwin/core-
|
|
62
|
-
"@itwin/core-
|
|
56
|
+
"@itwin/appui-abstract": "5.0.0-dev.55",
|
|
57
|
+
"@itwin/core-common": "5.0.0-dev.55",
|
|
58
|
+
"@itwin/build-tools": "5.0.0-dev.55",
|
|
59
|
+
"@itwin/core-geometry": "5.0.0-dev.55",
|
|
60
|
+
"@itwin/core-quantity": "5.0.0-dev.55",
|
|
61
|
+
"@itwin/core-bentley": "5.0.0-dev.55",
|
|
62
|
+
"@itwin/core-orbitgt": "5.0.0-dev.55"
|
|
63
63
|
},
|
|
64
64
|
"//dependencies": [
|
|
65
65
|
"NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"@loaders.gl/draco": "^3.1.6",
|
|
73
73
|
"fuse.js": "^3.3.0",
|
|
74
74
|
"wms-capabilities": "0.4.0",
|
|
75
|
-
"@itwin/core-i18n": "5.0.0-dev.
|
|
76
|
-
"@itwin/webgl-compatibility": "5.0.0-dev.
|
|
75
|
+
"@itwin/core-i18n": "5.0.0-dev.55",
|
|
76
|
+
"@itwin/webgl-compatibility": "5.0.0-dev.55"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|
|
79
79
|
"build": "npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers",
|