Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@itwin/presentation-shared

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@itwin/presentation-shared - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

lib/cjs/package.json

15

CHANGELOG.md
# @itwin/presentation-shared
## 1.1.0
### Minor Changes
- [#740](https://github.com/iTwin/presentation/pull/740): Added an utility `julianToDateTime` function to convert julian date format to javascript's Date object.
- [#740](https://github.com/iTwin/presentation/pull/740): Define `type` and `exports` attributes in `package.json`.
The change moves this package a step closer towards dropping CommonJS support - it's now transpiled from ESM to CommonJS instead of the opposite.
In addition, the `exports` attribute has been added to `package.json` to prohibit access to APIs that are not intended to be used by external consumers.
### Patch Changes
- [#758](https://github.com/iTwin/presentation/pull/758): Promote `@beta` APIs to `@public`.
## 1.0.0

@@ -4,0 +19,0 @@

22

lib/cjs/presentation-shared.d.ts

@@ -1,13 +0,13 @@

import * as ECSql from "./shared/ecsql-snippets";
import * as ECSql from "./shared/ecsql-snippets/index.js";
export { ECSql };
export { ConcatenatedValue, ConcatenatedValuePart } from "./shared/ConcatenatedValue";
export { ECSqlBinding, ECSqlQueryDef, ECSqlQueryExecutor, ECSqlQueryReaderOptions, ECSqlQueryRow } from "./shared/ECSqlCore";
export { createDefaultValueFormatter, formatConcatenatedValue, IPrimitiveValueFormatter } from "./shared/Formatting";
export { IInstanceLabelSelectClauseFactory, createDefaultInstanceLabelSelectClauseFactory, createClassBasedInstanceLabelSelectClauseFactory, createBisInstanceLabelSelectClauseFactory, parseInstanceLabel, } from "./shared/InstanceLabelSelectClauseFactory";
export { ILogger, NOOP_LOGGER, LogFunction, LogLevel } from "./shared/Logging";
export { ArrayElement, OmitOverUnion } from "./shared/MappedTypes";
export { createCachingECClassHierarchyInspector, EC, getClass, ECClassHierarchyInspector, ECSchemaProvider } from "./shared/Metadata";
export { normalizeFullClassName, parseFullClassName, trimWhitespace, releaseMainThread, createMainThreadReleaseOnTimePassedHandler } from "./shared/Utils";
export { InstanceKey, PrimitiveValue, TypedPrimitiveValue } from "./shared/Values";
export { Event } from "./shared/Event";
export { ConcatenatedValue, ConcatenatedValuePart } from "./shared/ConcatenatedValue.js";
export { ECSqlBinding, ECSqlQueryDef, ECSqlQueryExecutor, ECSqlQueryReaderOptions, ECSqlQueryRow } from "./shared/ECSqlCore.js";
export { createDefaultValueFormatter, formatConcatenatedValue, IPrimitiveValueFormatter } from "./shared/Formatting.js";
export { IInstanceLabelSelectClauseFactory, createDefaultInstanceLabelSelectClauseFactory, createClassBasedInstanceLabelSelectClauseFactory, createBisInstanceLabelSelectClauseFactory, parseInstanceLabel, } from "./shared/InstanceLabelSelectClauseFactory.js";
export { ILogger, NOOP_LOGGER, LogFunction, LogLevel } from "./shared/Logging.js";
export { ArrayElement, OmitOverUnion } from "./shared/MappedTypes.js";
export { createCachingECClassHierarchyInspector, EC, getClass, ECClassHierarchyInspector, ECSchemaProvider } from "./shared/Metadata.js";
export { createMainThreadReleaseOnTimePassedHandler, julianToDateTime, normalizeFullClassName, parseFullClassName, releaseMainThread, trimWhitespace, } from "./shared/Utils.js";
export { InstanceKey, PrimitiveValue, TypedPrimitiveValue } from "./shared/Values.js";
export { Event } from "./shared/Event.js";
//# sourceMappingURL=presentation-shared.d.ts.map

@@ -30,32 +30,32 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.TypedPrimitiveValue = exports.PrimitiveValue = exports.InstanceKey = exports.createMainThreadReleaseOnTimePassedHandler = exports.releaseMainThread = exports.trimWhitespace = exports.parseFullClassName = exports.normalizeFullClassName = exports.getClass = exports.createCachingECClassHierarchyInspector = exports.NOOP_LOGGER = exports.parseInstanceLabel = exports.createBisInstanceLabelSelectClauseFactory = exports.createClassBasedInstanceLabelSelectClauseFactory = exports.createDefaultInstanceLabelSelectClauseFactory = exports.formatConcatenatedValue = exports.createDefaultValueFormatter = exports.ConcatenatedValuePart = exports.ConcatenatedValue = exports.ECSql = void 0;
// eslint-disable-next-line @itwin/no-internal-barrel-imports
const ECSql = __importStar(require("./shared/ecsql-snippets"));
exports.TypedPrimitiveValue = exports.PrimitiveValue = exports.InstanceKey = exports.trimWhitespace = exports.releaseMainThread = exports.parseFullClassName = exports.normalizeFullClassName = exports.julianToDateTime = exports.createMainThreadReleaseOnTimePassedHandler = exports.getClass = exports.createCachingECClassHierarchyInspector = exports.NOOP_LOGGER = exports.parseInstanceLabel = exports.createBisInstanceLabelSelectClauseFactory = exports.createClassBasedInstanceLabelSelectClauseFactory = exports.createDefaultInstanceLabelSelectClauseFactory = exports.formatConcatenatedValue = exports.createDefaultValueFormatter = exports.ConcatenatedValuePart = exports.ConcatenatedValue = exports.ECSql = void 0;
const ECSql = __importStar(require("./shared/ecsql-snippets/index.js"));
exports.ECSql = ECSql;
var ConcatenatedValue_1 = require("./shared/ConcatenatedValue");
Object.defineProperty(exports, "ConcatenatedValue", { enumerable: true, get: function () { return ConcatenatedValue_1.ConcatenatedValue; } });
Object.defineProperty(exports, "ConcatenatedValuePart", { enumerable: true, get: function () { return ConcatenatedValue_1.ConcatenatedValuePart; } });
var Formatting_1 = require("./shared/Formatting");
Object.defineProperty(exports, "createDefaultValueFormatter", { enumerable: true, get: function () { return Formatting_1.createDefaultValueFormatter; } });
Object.defineProperty(exports, "formatConcatenatedValue", { enumerable: true, get: function () { return Formatting_1.formatConcatenatedValue; } });
var InstanceLabelSelectClauseFactory_1 = require("./shared/InstanceLabelSelectClauseFactory");
Object.defineProperty(exports, "createDefaultInstanceLabelSelectClauseFactory", { enumerable: true, get: function () { return InstanceLabelSelectClauseFactory_1.createDefaultInstanceLabelSelectClauseFactory; } });
Object.defineProperty(exports, "createClassBasedInstanceLabelSelectClauseFactory", { enumerable: true, get: function () { return InstanceLabelSelectClauseFactory_1.createClassBasedInstanceLabelSelectClauseFactory; } });
Object.defineProperty(exports, "createBisInstanceLabelSelectClauseFactory", { enumerable: true, get: function () { return InstanceLabelSelectClauseFactory_1.createBisInstanceLabelSelectClauseFactory; } });
Object.defineProperty(exports, "parseInstanceLabel", { enumerable: true, get: function () { return InstanceLabelSelectClauseFactory_1.parseInstanceLabel; } });
var Logging_1 = require("./shared/Logging");
Object.defineProperty(exports, "NOOP_LOGGER", { enumerable: true, get: function () { return Logging_1.NOOP_LOGGER; } });
var Metadata_1 = require("./shared/Metadata");
Object.defineProperty(exports, "createCachingECClassHierarchyInspector", { enumerable: true, get: function () { return Metadata_1.createCachingECClassHierarchyInspector; } });
Object.defineProperty(exports, "getClass", { enumerable: true, get: function () { return Metadata_1.getClass; } });
var Utils_1 = require("./shared/Utils");
Object.defineProperty(exports, "normalizeFullClassName", { enumerable: true, get: function () { return Utils_1.normalizeFullClassName; } });
Object.defineProperty(exports, "parseFullClassName", { enumerable: true, get: function () { return Utils_1.parseFullClassName; } });
Object.defineProperty(exports, "trimWhitespace", { enumerable: true, get: function () { return Utils_1.trimWhitespace; } });
Object.defineProperty(exports, "releaseMainThread", { enumerable: true, get: function () { return Utils_1.releaseMainThread; } });
Object.defineProperty(exports, "createMainThreadReleaseOnTimePassedHandler", { enumerable: true, get: function () { return Utils_1.createMainThreadReleaseOnTimePassedHandler; } });
var Values_1 = require("./shared/Values");
Object.defineProperty(exports, "InstanceKey", { enumerable: true, get: function () { return Values_1.InstanceKey; } });
Object.defineProperty(exports, "PrimitiveValue", { enumerable: true, get: function () { return Values_1.PrimitiveValue; } });
Object.defineProperty(exports, "TypedPrimitiveValue", { enumerable: true, get: function () { return Values_1.TypedPrimitiveValue; } });
var ConcatenatedValue_js_1 = require("./shared/ConcatenatedValue.js");
Object.defineProperty(exports, "ConcatenatedValue", { enumerable: true, get: function () { return ConcatenatedValue_js_1.ConcatenatedValue; } });
Object.defineProperty(exports, "ConcatenatedValuePart", { enumerable: true, get: function () { return ConcatenatedValue_js_1.ConcatenatedValuePart; } });
var Formatting_js_1 = require("./shared/Formatting.js");
Object.defineProperty(exports, "createDefaultValueFormatter", { enumerable: true, get: function () { return Formatting_js_1.createDefaultValueFormatter; } });
Object.defineProperty(exports, "formatConcatenatedValue", { enumerable: true, get: function () { return Formatting_js_1.formatConcatenatedValue; } });
var InstanceLabelSelectClauseFactory_js_1 = require("./shared/InstanceLabelSelectClauseFactory.js");
Object.defineProperty(exports, "createDefaultInstanceLabelSelectClauseFactory", { enumerable: true, get: function () { return InstanceLabelSelectClauseFactory_js_1.createDefaultInstanceLabelSelectClauseFactory; } });
Object.defineProperty(exports, "createClassBasedInstanceLabelSelectClauseFactory", { enumerable: true, get: function () { return InstanceLabelSelectClauseFactory_js_1.createClassBasedInstanceLabelSelectClauseFactory; } });
Object.defineProperty(exports, "createBisInstanceLabelSelectClauseFactory", { enumerable: true, get: function () { return InstanceLabelSelectClauseFactory_js_1.createBisInstanceLabelSelectClauseFactory; } });
Object.defineProperty(exports, "parseInstanceLabel", { enumerable: true, get: function () { return InstanceLabelSelectClauseFactory_js_1.parseInstanceLabel; } });
var Logging_js_1 = require("./shared/Logging.js");
Object.defineProperty(exports, "NOOP_LOGGER", { enumerable: true, get: function () { return Logging_js_1.NOOP_LOGGER; } });
var Metadata_js_1 = require("./shared/Metadata.js");
Object.defineProperty(exports, "createCachingECClassHierarchyInspector", { enumerable: true, get: function () { return Metadata_js_1.createCachingECClassHierarchyInspector; } });
Object.defineProperty(exports, "getClass", { enumerable: true, get: function () { return Metadata_js_1.getClass; } });
var Utils_js_1 = require("./shared/Utils.js");
Object.defineProperty(exports, "createMainThreadReleaseOnTimePassedHandler", { enumerable: true, get: function () { return Utils_js_1.createMainThreadReleaseOnTimePassedHandler; } });
Object.defineProperty(exports, "julianToDateTime", { enumerable: true, get: function () { return Utils_js_1.julianToDateTime; } });
Object.defineProperty(exports, "normalizeFullClassName", { enumerable: true, get: function () { return Utils_js_1.normalizeFullClassName; } });
Object.defineProperty(exports, "parseFullClassName", { enumerable: true, get: function () { return Utils_js_1.parseFullClassName; } });
Object.defineProperty(exports, "releaseMainThread", { enumerable: true, get: function () { return Utils_js_1.releaseMainThread; } });
Object.defineProperty(exports, "trimWhitespace", { enumerable: true, get: function () { return Utils_js_1.trimWhitespace; } });
var Values_js_1 = require("./shared/Values.js");
Object.defineProperty(exports, "InstanceKey", { enumerable: true, get: function () { return Values_js_1.InstanceKey; } });
Object.defineProperty(exports, "PrimitiveValue", { enumerable: true, get: function () { return Values_js_1.PrimitiveValue; } });
Object.defineProperty(exports, "TypedPrimitiveValue", { enumerable: true, get: function () { return Values_js_1.TypedPrimitiveValue; } });
//# sourceMappingURL=presentation-shared.js.map

@@ -1,2 +0,2 @@

import { TypedPrimitiveValue } from "./Values";
import { TypedPrimitiveValue } from "./Values.js";
/**

@@ -10,12 +10,12 @@ * A part of a `ConcatenatedValue`, describing one piece of the value. Possible types:

* @see `ConcatenatedValue`
* @beta
* @public
*/
export type ConcatenatedValuePart = ConcatenatedValue | TypedPrimitiveValue | string;
/** @beta */
/** @public */
export declare namespace ConcatenatedValuePart {
/** @beta */
/** @public */
function isString(part: ConcatenatedValuePart): part is string;
/** @beta */
/** @public */
function isPrimitive(part: ConcatenatedValuePart): part is TypedPrimitiveValue;
/** @beta */
/** @public */
function isConcatenatedValue(part: ConcatenatedValuePart): part is ConcatenatedValue;

@@ -27,6 +27,6 @@ }

*
* @beta
* @public
*/
export type ConcatenatedValue = ConcatenatedValuePart[];
/** @beta */
/** @public */
export declare namespace ConcatenatedValue {

@@ -37,3 +37,3 @@ /**

*
* @beta
* @public
*/

@@ -40,0 +40,0 @@ function serialize(props: {

@@ -8,7 +8,7 @@ "use strict";

exports.ConcatenatedValue = exports.ConcatenatedValuePart = void 0;
/** @beta */
/** @public */
// eslint-disable-next-line @typescript-eslint/no-redeclare
var ConcatenatedValuePart;
(function (ConcatenatedValuePart) {
/** @beta */
/** @public */
function isString(part) {

@@ -18,3 +18,3 @@ return typeof part === "string";

ConcatenatedValuePart.isString = isString;
/** @beta */
/** @public */
function isPrimitive(part) {

@@ -24,3 +24,3 @@ return !!part.type;

ConcatenatedValuePart.isPrimitive = isPrimitive;
/** @beta */
/** @public */
function isConcatenatedValue(part) {

@@ -31,3 +31,3 @@ return Array.isArray(part);

})(ConcatenatedValuePart || (exports.ConcatenatedValuePart = ConcatenatedValuePart = {}));
/** @beta */
/** @public */
// eslint-disable-next-line @typescript-eslint/no-redeclare

@@ -40,3 +40,3 @@ var ConcatenatedValue;

*
* @beta
* @public
*/

@@ -43,0 +43,0 @@ async function serialize(props) {

@@ -1,5 +0,5 @@

import { ECSchemaProvider, RelationshipPath, RelationshipPathStep } from "../Metadata";
import { ECSchemaProvider, RelationshipPath, RelationshipPathStep } from "../Metadata.js";
/**
* Describes a single JOIN step from source to target through a relationship.
* @beta
* @public
*/

@@ -14,3 +14,3 @@ interface JoinRelationshipPathStep extends RelationshipPathStep {

* Describes a path of JOINs from source to target.
* @beta
* @public
*/

@@ -20,3 +20,3 @@ type JoinRelationshipPath = RelationshipPath<JoinRelationshipPathStep>;

* Props for `createRelationshipPathJoinClause`.
* @beta
* @public
*/

@@ -49,3 +49,3 @@ interface CreateRelationshipPathJoinClauseProps {

* ```
* @beta
* @public
*/

@@ -52,0 +52,0 @@ export declare function createRelationshipPathJoinClause(props: CreateRelationshipPathJoinClauseProps): Promise<string>;

@@ -8,4 +8,4 @@ "use strict";

exports.createRelationshipPathJoinClause = createRelationshipPathJoinClause;
const Metadata_1 = require("../Metadata");
const ECSqlValueSelectorSnippets_1 = require("./ECSqlValueSelectorSnippets");
const Metadata_js_1 = require("../Metadata.js");
const ECSqlValueSelectorSnippets_js_1 = require("./ECSqlValueSelectorSnippets.js");
/**

@@ -33,3 +33,3 @@ * Creates an ECSQL JOIN snippet for given relationships' path.

* ```
* @beta
* @public
*/

@@ -53,8 +53,8 @@ async function createRelationshipPathJoinClause(props) {

? {
this: (0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(step.targetAlias, "ECInstanceId"),
next: (0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(prev.alias, navigationProperty.name, "Id"),
this: (0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(step.targetAlias, "ECInstanceId"),
next: (0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(prev.alias, navigationProperty.name, "Id"),
}
: {
this: (0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(step.targetAlias, navigationProperty.name, "Id"),
next: (0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(prev.alias, prev.joinPropertyName),
this: (0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(step.targetAlias, navigationProperty.name, "Id"),
next: (0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(prev.alias, prev.joinPropertyName),
};

@@ -81,7 +81,7 @@ clause += `

${getJoinClause("inner")} ${getClassSelectClause(step.target, step.targetAlias)}
ON ${(0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(step.targetAlias, "ECInstanceId")}
= ${(0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(step.relationshipAlias, relationshipJoinPropertyNames.next)}
ON ${(0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(step.targetAlias, "ECInstanceId")}
= ${(0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(step.relationshipAlias, relationshipJoinPropertyNames.next)}
) [${step.relationshipAlias}]
ON ${(0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(step.relationshipAlias, relationshipJoinPropertyNames.this)}
= ${(0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(prev.alias, prev.joinPropertyName)}
ON ${(0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(step.relationshipAlias, relationshipJoinPropertyNames.this)}
= ${(0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(prev.alias, prev.joinPropertyName)}
`;

@@ -92,4 +92,4 @@ }

${getJoinClause("inner")} ${getClassSelectClause(step.relationship, step.relationshipAlias)}
ON ${(0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(step.relationshipAlias, relationshipJoinPropertyNames.this)}
= ${(0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(prev.alias, prev.joinPropertyName)}
ON ${(0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(step.relationshipAlias, relationshipJoinPropertyNames.this)}
= ${(0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(prev.alias, prev.joinPropertyName)}
`;

@@ -99,4 +99,4 @@ }

${getJoinClause(step.joinType)} ${getClassSelectClause(step.target, step.targetAlias)}
ON ${(0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(step.targetAlias, "ECInstanceId")}
= ${(0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(step.relationshipAlias, relationshipJoinPropertyNames.next)}
ON ${(0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(step.targetAlias, "ECInstanceId")}
= ${(0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(step.relationshipAlias, relationshipJoinPropertyNames.next)}
`;

@@ -116,5 +116,5 @@ prev = {

...rest,
source: await (0, Metadata_1.getClass)(schemaProvider, sourceClassName),
relationship: (await (0, Metadata_1.getClass)(schemaProvider, relationshipName)),
target: await (0, Metadata_1.getClass)(schemaProvider, targetClassName),
source: await (0, Metadata_js_1.getClass)(schemaProvider, sourceClassName),
relationship: (await (0, Metadata_js_1.getClass)(schemaProvider, relationshipName)),
target: await (0, Metadata_js_1.getClass)(schemaProvider, targetClassName),
};

@@ -126,3 +126,2 @@ }

for (const prop of await source.getProperties()) {
// istanbul ignore else
if (prop.isNavigation() && prop.direction === "Forward" && (await prop.relationshipClass).fullName === step.relationship.fullName) {

@@ -133,3 +132,2 @@ return prop;

for (const prop of await target.getProperties()) {
// istanbul ignore else
if (prop.isNavigation() && prop.direction === "Backward" && (await prop.relationshipClass).fullName === step.relationship.fullName) {

@@ -136,0 +134,0 @@ return prop;

@@ -1,6 +0,6 @@

import { ECSchemaProvider, PrimitiveValueType } from "../Metadata";
import { PrimitiveValue, TypedPrimitiveValue } from "../Values";
import { ECSchemaProvider, PrimitiveValueType } from "../Metadata.js";
import { PrimitiveValue, TypedPrimitiveValue } from "../Values.js";
/**
* Props for selecting a `TypedPrimitiveValue` using given ECSQL selector.
* @beta
* @public
*/

@@ -23,6 +23,6 @@ type TypedPrimitiveValueSelectorProps = {

* A union of prop types for selecting a value and its metadata in ECSQL query.
* @beta
* @public
*/
export type TypedValueSelectClauseProps = TypedPrimitiveValue | TypedPrimitiveValueSelectorProps;
/** @beta */
/** @public */
export declare namespace TypedValueSelectClauseProps {

@@ -35,3 +35,3 @@ function isPrimitiveValue(props: TypedValueSelectClauseProps): props is TypedPrimitiveValue;

* @throws Error if the property is not found, is not primitive or has unsupported primitive type (Binary, IGeometry).
* @beta
* @public
*/

@@ -52,3 +52,3 @@ export declare function createPrimitivePropertyValueSelectorProps({ schemaProvider, propertyClassAlias, propertyClassName, propertyName, }: {

*
* @beta
* @public
*/

@@ -63,3 +63,3 @@ export declare function createRawPropertyValueSelector(classAlias: string, propertyName: string, componentName?: string): string;

*
* @beta
* @public
*/

@@ -69,3 +69,3 @@ export declare function createRawPrimitiveValueSelector(value: PrimitiveValue | undefined): string;

* Creates an ECSQL selector that results in a stringified `InstanceKey` object.
* @beta
* @public
*/

@@ -82,3 +82,3 @@ export declare function createInstanceKeySelector(props: {

*
* @beta
* @public
*/

@@ -104,3 +104,3 @@ export declare function createNullableSelector(props: {

*
* @beta
* @public
*/

@@ -124,3 +124,3 @@ export declare function createConcatenatedValueJsonSelector(selectors: TypedValueSelectClauseProps[], checkSelector?: string): string;

*
* @beta
* @public
*/

@@ -127,0 +127,0 @@ export declare function createConcatenatedValueStringSelector(selectors: TypedValueSelectClauseProps[], checkSelector?: string): string;

@@ -16,5 +16,5 @@ "use strict";

const core_bentley_1 = require("@itwin/core-bentley");
const Metadata_1 = require("../Metadata");
const Values_1 = require("../Values");
/** @beta */
const Metadata_js_1 = require("../Metadata.js");
const Values_js_1 = require("../Values.js");
/** @public */
// eslint-disable-next-line @typescript-eslint/no-redeclare

@@ -35,6 +35,6 @@ var TypedValueSelectClauseProps;

* @throws Error if the property is not found, is not primitive or has unsupported primitive type (Binary, IGeometry).
* @beta
* @public
*/
async function createPrimitivePropertyValueSelectorProps({ schemaProvider, propertyClassAlias, propertyClassName, propertyName, }) {
const ecClass = await (0, Metadata_1.getClass)(schemaProvider, propertyClassName);
const ecClass = await (0, Metadata_js_1.getClass)(schemaProvider, propertyClassName);
const property = await ecClass.getProperty(propertyName);

@@ -65,3 +65,3 @@ if (!property) {

type: "Point2d",
...(extendedType ? { extendedType } : /* istanbul ignore next */ {}),
...(extendedType ? { extendedType } : /* c8 ignore next */ {}),
};

@@ -72,3 +72,3 @@ case "Point3d":

type: "Point3d",
...(extendedType ? { extendedType } : /* istanbul ignore next */ {}),
...(extendedType ? { extendedType } : /* c8 ignore next */ {}),
};

@@ -80,4 +80,4 @@ case "Double":

type: "Double",
...(extendedType ? { extendedType } : /* istanbul ignore next */ {}),
...(koqName ? { koqName } : /* istanbul ignore next */ {}),
...(extendedType ? { extendedType } : /* c8 ignore next */ {}),
...(koqName ? { koqName } : /* c8 ignore next */ {}),
};

@@ -88,3 +88,3 @@ }

type: propertyValueType,
...(extendedType ? { extendedType } : /* istanbul ignore next */ {}),
...(extendedType ? { extendedType } : /* c8 ignore next */ {}),
};

@@ -96,3 +96,3 @@ }

*
* @beta
* @public
*/

@@ -113,3 +113,3 @@ function createRawPropertyValueSelector(classAlias, propertyName, componentName) {

*
* @beta
* @public
*/

@@ -123,6 +123,6 @@ function createRawPrimitiveValueSelector(value) {

}
if (Values_1.PrimitiveValue.isPoint3d(value)) {
if (Values_js_1.PrimitiveValue.isPoint3d(value)) {
return `json_object('x', ${value.x}, 'y', ${value.y}, 'z', ${value.z})`;
}
if (Values_1.PrimitiveValue.isPoint2d(value)) {
if (Values_js_1.PrimitiveValue.isPoint2d(value)) {
return `json_object('x', ${value.x}, 'y', ${value.y})`;

@@ -141,3 +141,3 @@ }

* Creates an ECSQL selector that results in a stringified `InstanceKey` object.
* @beta
* @public
*/

@@ -156,3 +156,3 @@ function createInstanceKeySelector(props) {

*
* @beta
* @public
*/

@@ -177,3 +177,3 @@ function createNullableSelector(props) {

*
* @beta
* @public
*/

@@ -214,6 +214,6 @@ function createConcatenatedValueJsonSelector(selectors, checkSelector) {

}
if (Values_1.PrimitiveValue.isPoint3d(value)) {
if (Values_js_1.PrimitiveValue.isPoint3d(value)) {
return `json_object('x', ${value.x}, 'y', ${value.y}, 'z', ${value.z})`;
}
if (Values_1.PrimitiveValue.isPoint2d(value)) {
if (Values_js_1.PrimitiveValue.isPoint2d(value)) {
return `json_object('x', ${value.x}, 'y', ${value.y})`;

@@ -246,3 +246,3 @@ }

*
* @beta
* @public
*/

@@ -266,6 +266,6 @@ function createConcatenatedValueStringSelector(selectors, checkSelector) {

}
if (Values_1.PrimitiveValue.isPoint3d(value)) {
if (Values_js_1.PrimitiveValue.isPoint3d(value)) {
return `'(${value.x}, ${value.y}, ${value.z})'`;
}
if (Values_1.PrimitiveValue.isPoint2d(value)) {
if (Values_js_1.PrimitiveValue.isPoint2d(value)) {
return `'(${value.x}, ${value.y})'`;

@@ -272,0 +272,0 @@ }

@@ -1,3 +0,3 @@

export { createRawPropertyValueSelector, createRawPrimitiveValueSelector, createNullableSelector, createConcatenatedValueJsonSelector, createConcatenatedValueStringSelector, createInstanceKeySelector, createPrimitivePropertyValueSelectorProps, } from "./ECSqlValueSelectorSnippets";
export { createRelationshipPathJoinClause } from "./ECSqlJoinSnippets";
export { createRawPropertyValueSelector, createRawPrimitiveValueSelector, createNullableSelector, createConcatenatedValueJsonSelector, createConcatenatedValueStringSelector, createInstanceKeySelector, createPrimitivePropertyValueSelectorProps, } from "./ECSqlValueSelectorSnippets.js";
export { createRelationshipPathJoinClause } from "./ECSqlJoinSnippets.js";
//# sourceMappingURL=index.d.ts.map

@@ -8,12 +8,12 @@ "use strict";

exports.createRelationshipPathJoinClause = exports.createPrimitivePropertyValueSelectorProps = exports.createInstanceKeySelector = exports.createConcatenatedValueStringSelector = exports.createConcatenatedValueJsonSelector = exports.createNullableSelector = exports.createRawPrimitiveValueSelector = exports.createRawPropertyValueSelector = void 0;
var ECSqlValueSelectorSnippets_1 = require("./ECSqlValueSelectorSnippets");
Object.defineProperty(exports, "createRawPropertyValueSelector", { enumerable: true, get: function () { return ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector; } });
Object.defineProperty(exports, "createRawPrimitiveValueSelector", { enumerable: true, get: function () { return ECSqlValueSelectorSnippets_1.createRawPrimitiveValueSelector; } });
Object.defineProperty(exports, "createNullableSelector", { enumerable: true, get: function () { return ECSqlValueSelectorSnippets_1.createNullableSelector; } });
Object.defineProperty(exports, "createConcatenatedValueJsonSelector", { enumerable: true, get: function () { return ECSqlValueSelectorSnippets_1.createConcatenatedValueJsonSelector; } });
Object.defineProperty(exports, "createConcatenatedValueStringSelector", { enumerable: true, get: function () { return ECSqlValueSelectorSnippets_1.createConcatenatedValueStringSelector; } });
Object.defineProperty(exports, "createInstanceKeySelector", { enumerable: true, get: function () { return ECSqlValueSelectorSnippets_1.createInstanceKeySelector; } });
Object.defineProperty(exports, "createPrimitivePropertyValueSelectorProps", { enumerable: true, get: function () { return ECSqlValueSelectorSnippets_1.createPrimitivePropertyValueSelectorProps; } });
var ECSqlJoinSnippets_1 = require("./ECSqlJoinSnippets");
Object.defineProperty(exports, "createRelationshipPathJoinClause", { enumerable: true, get: function () { return ECSqlJoinSnippets_1.createRelationshipPathJoinClause; } });
var ECSqlValueSelectorSnippets_js_1 = require("./ECSqlValueSelectorSnippets.js");
Object.defineProperty(exports, "createRawPropertyValueSelector", { enumerable: true, get: function () { return ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector; } });
Object.defineProperty(exports, "createRawPrimitiveValueSelector", { enumerable: true, get: function () { return ECSqlValueSelectorSnippets_js_1.createRawPrimitiveValueSelector; } });
Object.defineProperty(exports, "createNullableSelector", { enumerable: true, get: function () { return ECSqlValueSelectorSnippets_js_1.createNullableSelector; } });
Object.defineProperty(exports, "createConcatenatedValueJsonSelector", { enumerable: true, get: function () { return ECSqlValueSelectorSnippets_js_1.createConcatenatedValueJsonSelector; } });
Object.defineProperty(exports, "createConcatenatedValueStringSelector", { enumerable: true, get: function () { return ECSqlValueSelectorSnippets_js_1.createConcatenatedValueStringSelector; } });
Object.defineProperty(exports, "createInstanceKeySelector", { enumerable: true, get: function () { return ECSqlValueSelectorSnippets_js_1.createInstanceKeySelector; } });
Object.defineProperty(exports, "createPrimitivePropertyValueSelectorProps", { enumerable: true, get: function () { return ECSqlValueSelectorSnippets_js_1.createPrimitivePropertyValueSelectorProps; } });
var ECSqlJoinSnippets_js_1 = require("./ECSqlJoinSnippets.js");
Object.defineProperty(exports, "createRelationshipPathJoinClause", { enumerable: true, get: function () { return ECSqlJoinSnippets_js_1.createRelationshipPathJoinClause; } });
//# sourceMappingURL=index.js.map

@@ -6,3 +6,3 @@ import { Id64String } from "@itwin/core-bentley";

*
* @beta
* @public
*/

@@ -40,3 +40,3 @@ export type ECSqlBinding = {

* Defines an ECSQL query and its bindings.
* @beta
* @public
*/

@@ -60,3 +60,3 @@ export interface ECSqlQueryDef {

* @see [QueryRowFormat](https://www.itwinjs.org/reference/core-common/imodels/queryrowformat/)
* @beta
* @public
*/

@@ -67,3 +67,3 @@ type ECSqlQueryRowFormat = "ECSqlPropertyNames" | "Indexes";

* @see [QueryOptions](https://www.itwinjs.org/reference/core-common/imodels/queryoptions/)
* @beta
* @public
*/

@@ -77,3 +77,3 @@ export interface ECSqlQueryReaderOptions {

* @see [QueryRowProxy](https://www.itwinjs.org/reference/core-common/imodels/queryrowproxy/)
* @beta
* @public
*/

@@ -87,3 +87,3 @@ export interface ECSqlQueryRow {

* @see [ECSqlReader](https://www.itwinjs.org/reference/core-common/imodels/ecsqlreader/)
* @beta
* @public
*/

@@ -94,3 +94,3 @@ type ECSqlQueryReader = AsyncIterableIterator<ECSqlQueryRow>;

* @see `createECSqlQueryExecutor` in `@itwin/presentation-core-interop`.
* @beta
* @public
*/

@@ -97,0 +97,0 @@ export interface ECSqlQueryExecutor {

/**
* An interface that allows subscribing and unsubscribing listeners that are called upon an event.
* @beta
* @public
*/

@@ -5,0 +5,0 @@ export interface Event<TListener extends (...args: any[]) => void = () => void> {

@@ -1,7 +0,7 @@

import { ConcatenatedValue } from "./ConcatenatedValue";
import { TypedPrimitiveValue } from "./Values";
import { ConcatenatedValue } from "./ConcatenatedValue.js";
import { TypedPrimitiveValue } from "./Values.js";
/**
* A type definition for a function that knows how to create a display string for a typed primitive value.
* @see `createDefaultValueFormatter`
* @beta
* @public
*/

@@ -13,3 +13,3 @@ export type IPrimitiveValueFormatter = (value: TypedPrimitiveValue) => Promise<string>;

*
* @beta
* @public
*/

@@ -42,5 +42,5 @@ export declare function formatConcatenatedValue(props: {

*
* @beta
* @public
*/
export declare function createDefaultValueFormatter(): IPrimitiveValueFormatter;
//# sourceMappingURL=Formatting.d.ts.map

@@ -10,4 +10,4 @@ "use strict";

const core_bentley_1 = require("@itwin/core-bentley");
const ConcatenatedValue_1 = require("./ConcatenatedValue");
const InternalUtils_1 = require("./InternalUtils");
const ConcatenatedValue_js_1 = require("./ConcatenatedValue.js");
const Utils_js_1 = require("./Utils.js");
/**

@@ -17,3 +17,3 @@ * Formats a concatenated value into a string, taking into account different types of `ConcatenatedValuePart` that

*
* @beta
* @public
*/

@@ -25,7 +25,7 @@ async function formatConcatenatedValue(props) {

}
return ConcatenatedValue_1.ConcatenatedValue.serialize({
return ConcatenatedValue_js_1.ConcatenatedValue.serialize({
parts: value,
partFormatter: async (part) => {
// strings are converted to typed strings
if (ConcatenatedValue_1.ConcatenatedValuePart.isString(part)) {
if (ConcatenatedValue_js_1.ConcatenatedValuePart.isString(part)) {
part = {

@@ -63,3 +63,3 @@ value: part,

*
* @beta
* @public
*/

@@ -96,3 +96,3 @@ function createDefaultValueFormatter() {

function getDate(julianOrDate) {
return typeof julianOrDate === "number" ? (0, InternalUtils_1.julianToDateTime)(julianOrDate) : typeof julianOrDate === "string" ? new Date(julianOrDate) : julianOrDate;
return typeof julianOrDate === "number" ? (0, Utils_js_1.julianToDateTime)(julianOrDate) : typeof julianOrDate === "string" ? new Date(julianOrDate) : julianOrDate;
}

@@ -99,0 +99,0 @@ if (value.type !== "DateTime") {

@@ -1,7 +0,7 @@

import { ConcatenatedValue } from "./ConcatenatedValue";
import { TypedValueSelectClauseProps } from "./ecsql-snippets/ECSqlValueSelectorSnippets";
import { ECClassHierarchyInspector } from "./Metadata";
import { ConcatenatedValue } from "./ConcatenatedValue.js";
import { TypedValueSelectClauseProps } from "./ecsql-snippets/ECSqlValueSelectorSnippets.js";
import { ECClassHierarchyInspector } from "./Metadata.js";
/**
* Props for `IInstanceLabelSelectClauseFactory.createSelectClause`.
* @beta
* @public
*/

@@ -59,3 +59,3 @@ interface CreateInstanceLabelSelectClauseProps {

* @see `createBisInstanceLabelSelectClauseFactory`
* @beta
* @public
*/

@@ -71,3 +71,3 @@ export interface IInstanceLabelSelectClauseFactory {

*
* @beta
* @public
*/

@@ -82,3 +82,3 @@ export declare function parseInstanceLabel(value: string | undefined): ConcatenatedValue | string;

* @see https://www.itwinjs.org/presentation/advanced/defaultbisrules/#label-overrides
* @beta
* @public
*/

@@ -88,3 +88,3 @@ export declare function createDefaultInstanceLabelSelectClauseFactory(): IInstanceLabelSelectClauseFactory;

* An association of a class and an instance label select clause factory method.
* @beta
* @public
*/

@@ -99,3 +99,3 @@ interface ClassBasedLabelSelectClause {

* Props for `createClassBasedInstanceLabelSelectClauseFactory`.
* @beta
* @public
*/

@@ -121,3 +121,3 @@ interface ClassBasedInstanceLabelSelectClauseFactoryProps {

* Creates an instance label select clause based on its class.
* @beta
* @public
*/

@@ -127,3 +127,3 @@ export declare function createClassBasedInstanceLabelSelectClauseFactory(props: ClassBasedInstanceLabelSelectClauseFactoryProps): IInstanceLabelSelectClauseFactory;

* Props for `createBisInstanceLabelSelectClauseFactory`.
* @beta
* @public
*/

@@ -136,3 +136,3 @@ interface BisInstanceLabelSelectClauseFactoryProps {

* @see https://www.itwinjs.org/presentation/advanced/defaultbisrules/#label-overrides
* @beta
* @public
*/

@@ -139,0 +139,0 @@ export declare function createBisInstanceLabelSelectClauseFactory(props: BisInstanceLabelSelectClauseFactoryProps): IInstanceLabelSelectClauseFactory;

@@ -11,3 +11,3 @@ "use strict";

exports.createBisInstanceLabelSelectClauseFactory = createBisInstanceLabelSelectClauseFactory;
const ECSqlValueSelectorSnippets_1 = require("./ecsql-snippets/ECSqlValueSelectorSnippets");
const ECSqlValueSelectorSnippets_js_1 = require("./ecsql-snippets/ECSqlValueSelectorSnippets.js");
/**

@@ -18,3 +18,3 @@ * Parses an instance label from query result into a string or a `ConcatenatedValue`. The latter type of result

*
* @beta
* @public
*/

@@ -43,3 +43,3 @@ function parseInstanceLabel(value) {

* @see https://www.itwinjs.org/presentation/advanced/defaultbisrules/#label-overrides
* @beta
* @public
*/

@@ -54,4 +54,4 @@ function createDefaultInstanceLabelSelectClauseFactory() {

selector: `COALESCE(
${(0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)("c", "DisplayLabel")},
${(0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)("c", "Name")}
${(0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)("c", "DisplayLabel")},
${(0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)("c", "Name")}
)`,

@@ -62,3 +62,3 @@ },

FROM [meta].[ECClassDef] AS [c]
WHERE [c].[ECInstanceId] = ${(0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(props.classAlias, "ECClassId")}
WHERE [c].[ECInstanceId] = ${(0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(props.classAlias, "ECClassId")}
)`;

@@ -70,3 +70,3 @@ },

* Creates an instance label select clause based on its class.
* @beta
* @public
*/

@@ -112,3 +112,3 @@ function createClassBasedInstanceLabelSelectClauseFactory(props) {

IIF(
${(0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(clauseProps.classAlias, "ECClassId")} IS (${className}),
${(0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(clauseProps.classAlias, "ECClassId")} IS (${className}),
${clause.trim()},

@@ -127,3 +127,3 @@ NULL

* @see https://www.itwinjs.org/presentation/advanced/defaultbisrules/#label-overrides
* @beta
* @public
*/

@@ -140,4 +140,4 @@ function createBisInstanceLabelSelectClauseFactory(props) {

COALESCE(
${(0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(classAlias, "CodeValue")},
${concatenate(rest, [{ selector: (0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(classAlias, "UserLabel") }, ...createECInstanceIdSuffixSelectors(classAlias)], `${(0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(classAlias, "UserLabel")} IS NOT NULL`)}
${(0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(classAlias, "CodeValue")},
${concatenate(rest, [{ selector: (0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(classAlias, "UserLabel") }, ...createECInstanceIdSuffixSelectors(classAlias)], `${(0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(classAlias, "UserLabel")} IS NOT NULL`)}
)

@@ -149,4 +149,4 @@ `,

COALESCE(
${(0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(classAlias, "UserLabel")},
${(0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(classAlias, "CodeValue")}
${(0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(classAlias, "UserLabel")},
${(0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(classAlias, "CodeValue")}
)

@@ -159,3 +159,3 @@ `,

FROM [bis].[Element] AS [e]
WHERE [e].[ECInstanceId] = ${(0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(classAlias, "ModeledElement", "Id")}
WHERE [e].[ECInstanceId] = ${(0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(classAlias, "ModeledElement", "Id")}
)`,

@@ -168,5 +168,5 @@ });

{ value: ` [`, type: "String" },
{ selector: `CAST(base36(${(0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(classAlias, "ECInstanceId")} >> 40) AS TEXT)` },
{ selector: `CAST(base36(${(0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(classAlias, "ECInstanceId")} >> 40) AS TEXT)` },
{ value: `-`, type: "String" },
{ selector: `CAST(base36(${(0, ECSqlValueSelectorSnippets_1.createRawPropertyValueSelector)(classAlias, "ECInstanceId")} & ((1 << 40) - 1)) AS TEXT)` },
{ selector: `CAST(base36(${(0, ECSqlValueSelectorSnippets_js_1.createRawPropertyValueSelector)(classAlias, "ECInstanceId")} & ((1 << 40) - 1)) AS TEXT)` },
{ value: `]`, type: "String" },

@@ -176,4 +176,4 @@ ];

function concatenate(props, selectors, checkSelector) {
return (props.selectorsConcatenator ?? ECSqlValueSelectorSnippets_1.createConcatenatedValueJsonSelector)(selectors, checkSelector);
return (props.selectorsConcatenator ?? ECSqlValueSelectorSnippets_js_1.createConcatenatedValueJsonSelector)(selectors, checkSelector);
}
//# sourceMappingURL=InstanceLabelSelectClauseFactory.js.map
/**
* Defines a type for a logging function.
* @beta
* @public
*/

@@ -8,3 +8,3 @@ export type LogFunction = (category: string, message: string) => void;

* Defines logging severities.
* @beta
* @public
*/

@@ -14,3 +14,3 @@ export type LogLevel = "error" | "warning" | "info" | "trace";

* An interface for a logger used by presentation packages.
* @beta
* @public
*/

@@ -26,5 +26,5 @@ export interface ILogger {

* A logger implementation that does nothing.
* @beta
* @public
*/
export declare const NOOP_LOGGER: ILogger;
//# sourceMappingURL=Logging.d.ts.map

@@ -10,5 +10,5 @@ "use strict";

* A logger implementation that does nothing.
* @beta
* @public
*/
// istanbul ignore next
/* c8 ignore next 7 */
exports.NOOP_LOGGER = {

@@ -15,0 +15,0 @@ isEnabled: () => false,

/**
* An utility `Omit` type which works with union types.
* @beta
* @public
*/

@@ -8,5 +8,5 @@ export type OmitOverUnion<T, K extends PropertyKey> = T extends T ? Omit<T, K> : never;

* An utility generic type to get array element's type.
* @beta
* @public
*/
export type ArrayElement<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
//# sourceMappingURL=MappedTypes.d.ts.map

@@ -5,3 +5,3 @@ /**

* @see `createECSchemaProvider` in `@itwin/presentation-core-interop`.
* @beta
* @public
*/

@@ -14,3 +14,3 @@ export interface ECSchemaProvider {

* @see `createCachingECClassHierarchyInspector`
* @beta
* @public
*/

@@ -22,3 +22,3 @@ export interface ECClassHierarchyInspector {

* Creates a new `ECClassHierarchyInspector` that caches results of `derivesFrom` calls.
* @beta
* @public
*/

@@ -33,3 +33,3 @@ export declare function createCachingECClassHierarchyInspector(props: {

* A namespace containing various [EC types](https://www.itwinjs.org/bis/ec/).
* @beta
* @public
* @see `ECSchemaProvider`

@@ -41,3 +41,3 @@ */

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/schema/
* @beta
* @public
*/

@@ -51,3 +51,3 @@ interface Schema {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/schemaitem/
* @beta
* @public
*/

@@ -63,3 +63,3 @@ interface SchemaItem {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/ecclass/
* @beta
* @public
*/

@@ -79,3 +79,3 @@ interface Class extends SchemaItem {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/entityclass/
* @beta
* @public
*/

@@ -86,3 +86,3 @@ type EntityClass = Class;

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/structclass/
* @beta
* @public
*/

@@ -93,3 +93,3 @@ type StructClass = Class;

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/mixin/
* @beta
* @public
*/

@@ -100,3 +100,3 @@ type Mixin = Class;

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/kindofquantity/
* @beta
* @public
*/

@@ -107,3 +107,3 @@ type KindOfQuantity = SchemaItem;

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/relationshipmultiplicity/
* @beta
* @public
*/

@@ -117,3 +117,3 @@ interface RelationshipConstraintMultiplicity {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/relationshipconstraint/
* @beta
* @public
*/

@@ -128,3 +128,3 @@ interface RelationshipConstraint {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/relationshipclass/
* @beta
* @public
*/

@@ -139,3 +139,3 @@ interface RelationshipClass extends Class {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/enumerator/
* @beta
* @public
*/

@@ -151,3 +151,3 @@ interface Enumerator<T> {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/enumeration/
* @beta
* @public
*/

@@ -162,3 +162,3 @@ interface Enumeration extends SchemaItem {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/property/
* @beta
* @public
*/

@@ -179,3 +179,3 @@ interface Property {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/arrayproperty/
* @beta
* @public
*/

@@ -189,3 +189,3 @@ interface ArrayPropertyAttributes {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/structarrayproperty/
* @beta
* @public
*/

@@ -196,3 +196,3 @@ type StructArrayProperty = StructProperty & ArrayPropertyAttributes;

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/enumerationarrayproperty/
* @beta
* @public
*/

@@ -203,3 +203,3 @@ type EnumerationArrayProperty = EnumerationProperty & ArrayPropertyAttributes;

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/primitivearrayproperty/
* @beta
* @public
*/

@@ -210,3 +210,3 @@ type PrimitiveArrayProperty = PrimitiveProperty & ArrayPropertyAttributes;

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/anyarrayproperty/
* @beta
* @public
*/

@@ -217,3 +217,3 @@ type ArrayProperty = StructArrayProperty | EnumerationArrayProperty | PrimitiveArrayProperty;

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/structproperty/
* @beta
* @public
*/

@@ -226,3 +226,3 @@ interface StructProperty extends Property {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/enumerationproperty/
* @beta
* @public
*/

@@ -236,3 +236,3 @@ interface EnumerationProperty extends Property {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/navigationproperty/
* @beta
* @public
*/

@@ -246,3 +246,3 @@ interface NavigationProperty extends Property {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/primitivetype/
* @beta
* @public
*/

@@ -253,3 +253,3 @@ type PrimitiveType = "Binary" | "Boolean" | "DateTime" | "Double" | "Integer" | "Long" | "Point2d" | "Point3d" | "String" | "IGeometry";

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/primitiveproperty/
* @beta
* @public
*/

@@ -263,3 +263,3 @@ interface PrimitiveProperty extends Property {

* An identifiers' union of all supported primitive value types.
* @beta
* @public
*/

@@ -269,3 +269,3 @@ export type PrimitiveValueType = "Id" | Exclude<EC.PrimitiveType, "Binary" | "IGeometry">;

* Describes a single step through an ECRelationship from source ECClass to target ECClass.
* @beta
* @public
*/

@@ -288,3 +288,3 @@ export interface RelationshipPathStep {

* Describes a path from source ECClass to target ECClass through multiple ECRelationships.
* @beta
* @public
*/

@@ -295,5 +295,5 @@ export type RelationshipPath<TStep extends RelationshipPathStep = RelationshipPathStep> = TStep[];

* @throws Error if the schema or class is not found.
* @beta
* @public
*/
export declare function getClass(schemaProvider: ECSchemaProvider, fullClassName: string): Promise<EC.Class>;
//# sourceMappingURL=Metadata.d.ts.map

@@ -10,6 +10,6 @@ "use strict";

const core_bentley_1 = require("@itwin/core-bentley");
const Utils_1 = require("./Utils");
const Utils_js_1 = require("./Utils.js");
/**
* Creates a new `ECClassHierarchyInspector` that caches results of `derivesFrom` calls.
* @beta
* @public
*/

@@ -40,6 +40,6 @@ function createCachingECClassHierarchyInspector(props) {

* @throws Error if the schema or class is not found.
* @beta
* @public
*/
async function getClass(schemaProvider, fullClassName) {
const { schemaName, className } = (0, Utils_1.parseFullClassName)(fullClassName);
const { schemaName, className } = (0, Utils_js_1.parseFullClassName)(fullClassName);
const schema = await schemaProvider.getSchema(schemaName);

@@ -46,0 +46,0 @@ if (!schema) {

/**
* An utility to parse schema and class names from full class name, where
* schema and class names are separated by either `:` or `.`.
* @beta
* @public
*/

@@ -13,3 +13,3 @@ export declare function parseFullClassName(fullClassName: string): {

* `SchemaName.ClassName` to always use the dot format.
* @beta
* @public
*/

@@ -19,3 +19,3 @@ export declare function normalizeFullClassName(fullClassName: string): string;

* An utility to remove all extra whitespace from a given string.
* @beta
* @public
*/

@@ -25,3 +25,3 @@ export declare function trimWhitespace(str: string): string;

* An utility to remove all extra whitespace from a given string.
* @beta
* @public
*/

@@ -33,3 +33,3 @@ export declare function trimWhitespace(str: string | undefined): string | undefined;

*
* @beta
* @public
*/

@@ -51,5 +51,10 @@ export declare function releaseMainThread(): Promise<void>;

* @param releaseOnTimePassed The amount of time in milliseconds after which the main thread should be released. Defaults to `40` ms.
* @beta
* @public
*/
export declare function createMainThreadReleaseOnTimePassedHandler(releaseOnTimePassed?: number): () => Promise<void> | undefined;
/**
* An utility to convert a julian day format to `Date`.
* @public
*/
export declare function julianToDateTime(julianDate: number): Date;
//# sourceMappingURL=Utils.d.ts.map

@@ -12,2 +12,3 @@ "use strict";

exports.createMainThreadReleaseOnTimePassedHandler = createMainThreadReleaseOnTimePassedHandler;
exports.julianToDateTime = julianToDateTime;
const core_bentley_1 = require("@itwin/core-bentley");

@@ -17,3 +18,3 @@ /**

* schema and class names are separated by either `:` or `.`.
* @beta
* @public
*/

@@ -28,3 +29,3 @@ function parseFullClassName(fullClassName) {

* `SchemaName.ClassName` to always use the dot format.
* @beta
* @public
*/

@@ -41,5 +42,5 @@ function normalizeFullClassName(fullClassName) {

}
/** @beta */
/** @public */
function trimWhitespace(str) {
// istanbul ignore next
/* c8 ignore next 3 */
if (!str) {

@@ -59,3 +60,3 @@ return str;

*
* @beta
* @public
*/

@@ -79,3 +80,3 @@ async function releaseMainThread() {

* @param releaseOnTimePassed The amount of time in milliseconds after which the main thread should be released. Defaults to `40` ms.
* @beta
* @public
*/

@@ -94,2 +95,10 @@ function createMainThreadReleaseOnTimePassedHandler(releaseOnTimePassed = 40) {

}
/**
* An utility to convert a julian day format to `Date`.
* @public
*/
function julianToDateTime(julianDate) {
const millis = (julianDate - 2440587.5) * 86400000;
return new Date(millis);
}
//# sourceMappingURL=Utils.js.map
import { Id64String } from "@itwin/core-bentley";
import { PrimitiveValueType } from "./Metadata";
import { PrimitiveValueType } from "./Metadata.js";
/**
* A data structure uniquely identifying an ECInstance in an iModel.
* @beta
* @public
*/

@@ -13,7 +13,7 @@ export interface InstanceKey {

}
/** @beta */
/** @public */
export declare namespace InstanceKey {
/**
* Checks whether the two given instance keys are equal.
* @beta
* @public
*/

@@ -32,3 +32,3 @@ function equals(lhs: InstanceKey, rhs: InstanceKey): boolean;

* A data structure for a 2d point.
* @beta
* @public
*/

@@ -41,3 +41,3 @@ export interface Point2d {

* A data structure for a 3d point.
* @beta
* @public
*/

@@ -51,6 +51,6 @@ export interface Point3d {

* A union for all supported primitive value types.
* @beta
* @public
*/
export type PrimitiveValue = Id64String | string | number | boolean | Date | Point2d | Point3d;
/** @beta */
/** @public */
export declare namespace PrimitiveValue {

@@ -60,3 +60,3 @@ /**

* @note Since `Point3d` is a superset of `Point2d`, this function will return `true` for `Point3d` as well.
* @beta
* @public
*/

@@ -66,3 +66,3 @@ function isPoint2d(value: PrimitiveValue): value is Point2d;

* Checks whether the given value is a `Point3d`.
* @beta
* @public
*/

@@ -74,3 +74,3 @@ function isPoint3d(value: PrimitiveValue): value is Point3d;

* @note Use `TypedPrimitiveValue.create` to create an instance of this type.
* @beta
* @public
*/

@@ -105,3 +105,3 @@ export type TypedPrimitiveValue = ({

};
/** @beta */
/** @public */
export declare namespace TypedPrimitiveValue {

@@ -111,3 +111,3 @@ /**

* @throws Error if primitive type and value are incompatible.
* @beta
* @public
*/

@@ -114,0 +114,0 @@ function create(value: PrimitiveValue, type: PrimitiveValueType, koqName?: string, extendedType?: string): TypedPrimitiveValue;

@@ -9,3 +9,3 @@ "use strict";

const core_bentley_1 = require("@itwin/core-bentley");
/** @beta */
/** @public */
var InstanceKey;

@@ -15,3 +15,3 @@ (function (InstanceKey) {

* Checks whether the two given instance keys are equal.
* @beta
* @public
*/

@@ -38,3 +38,3 @@ function equals(lhs, rhs) {

})(InstanceKey || (exports.InstanceKey = InstanceKey = {}));
/** @beta */
/** @public */
// eslint-disable-next-line @typescript-eslint/no-redeclare

@@ -46,3 +46,3 @@ var PrimitiveValue;

* @note Since `Point3d` is a superset of `Point2d`, this function will return `true` for `Point3d` as well.
* @beta
* @public
*/

@@ -59,3 +59,3 @@ function isPoint2d(value) {

* Checks whether the given value is a `Point3d`.
* @beta
* @public
*/

@@ -71,3 +71,3 @@ function isPoint3d(value) {

})(PrimitiveValue || (exports.PrimitiveValue = PrimitiveValue = {}));
/** @beta */
/** @public */
// eslint-disable-next-line @typescript-eslint/no-redeclare

@@ -79,3 +79,3 @@ var TypedPrimitiveValue;

* @throws Error if primitive type and value are incompatible.
* @beta
* @public
*/

@@ -82,0 +82,0 @@ function create(value, type, koqName, extendedType) {

@@ -1,13 +0,13 @@

import * as ECSql from "./shared/ecsql-snippets";
import * as ECSql from "./shared/ecsql-snippets/index.js";
export { ECSql };
export { ConcatenatedValue, ConcatenatedValuePart } from "./shared/ConcatenatedValue";
export { ECSqlBinding, ECSqlQueryDef, ECSqlQueryExecutor, ECSqlQueryReaderOptions, ECSqlQueryRow } from "./shared/ECSqlCore";
export { createDefaultValueFormatter, formatConcatenatedValue, IPrimitiveValueFormatter } from "./shared/Formatting";
export { IInstanceLabelSelectClauseFactory, createDefaultInstanceLabelSelectClauseFactory, createClassBasedInstanceLabelSelectClauseFactory, createBisInstanceLabelSelectClauseFactory, parseInstanceLabel, } from "./shared/InstanceLabelSelectClauseFactory";
export { ILogger, NOOP_LOGGER, LogFunction, LogLevel } from "./shared/Logging";
export { ArrayElement, OmitOverUnion } from "./shared/MappedTypes";
export { createCachingECClassHierarchyInspector, EC, getClass, ECClassHierarchyInspector, ECSchemaProvider } from "./shared/Metadata";
export { normalizeFullClassName, parseFullClassName, trimWhitespace, releaseMainThread, createMainThreadReleaseOnTimePassedHandler } from "./shared/Utils";
export { InstanceKey, PrimitiveValue, TypedPrimitiveValue } from "./shared/Values";
export { Event } from "./shared/Event";
export { ConcatenatedValue, ConcatenatedValuePart } from "./shared/ConcatenatedValue.js";
export { ECSqlBinding, ECSqlQueryDef, ECSqlQueryExecutor, ECSqlQueryReaderOptions, ECSqlQueryRow } from "./shared/ECSqlCore.js";
export { createDefaultValueFormatter, formatConcatenatedValue, IPrimitiveValueFormatter } from "./shared/Formatting.js";
export { IInstanceLabelSelectClauseFactory, createDefaultInstanceLabelSelectClauseFactory, createClassBasedInstanceLabelSelectClauseFactory, createBisInstanceLabelSelectClauseFactory, parseInstanceLabel, } from "./shared/InstanceLabelSelectClauseFactory.js";
export { ILogger, NOOP_LOGGER, LogFunction, LogLevel } from "./shared/Logging.js";
export { ArrayElement, OmitOverUnion } from "./shared/MappedTypes.js";
export { createCachingECClassHierarchyInspector, EC, getClass, ECClassHierarchyInspector, ECSchemaProvider } from "./shared/Metadata.js";
export { createMainThreadReleaseOnTimePassedHandler, julianToDateTime, normalizeFullClassName, parseFullClassName, releaseMainThread, trimWhitespace, } from "./shared/Utils.js";
export { InstanceKey, PrimitiveValue, TypedPrimitiveValue } from "./shared/Values.js";
export { Event } from "./shared/Event.js";
//# sourceMappingURL=presentation-shared.d.ts.map

@@ -5,12 +5,11 @@ /*---------------------------------------------------------------------------------------------

*--------------------------------------------------------------------------------------------*/
// eslint-disable-next-line @itwin/no-internal-barrel-imports
import * as ECSql from "./shared/ecsql-snippets";
import * as ECSql from "./shared/ecsql-snippets/index.js";
export { ECSql };
export { ConcatenatedValue, ConcatenatedValuePart } from "./shared/ConcatenatedValue";
export { createDefaultValueFormatter, formatConcatenatedValue } from "./shared/Formatting";
export { createDefaultInstanceLabelSelectClauseFactory, createClassBasedInstanceLabelSelectClauseFactory, createBisInstanceLabelSelectClauseFactory, parseInstanceLabel, } from "./shared/InstanceLabelSelectClauseFactory";
export { NOOP_LOGGER } from "./shared/Logging";
export { createCachingECClassHierarchyInspector, getClass } from "./shared/Metadata";
export { normalizeFullClassName, parseFullClassName, trimWhitespace, releaseMainThread, createMainThreadReleaseOnTimePassedHandler } from "./shared/Utils";
export { InstanceKey, PrimitiveValue, TypedPrimitiveValue } from "./shared/Values";
export { ConcatenatedValue, ConcatenatedValuePart } from "./shared/ConcatenatedValue.js";
export { createDefaultValueFormatter, formatConcatenatedValue } from "./shared/Formatting.js";
export { createDefaultInstanceLabelSelectClauseFactory, createClassBasedInstanceLabelSelectClauseFactory, createBisInstanceLabelSelectClauseFactory, parseInstanceLabel, } from "./shared/InstanceLabelSelectClauseFactory.js";
export { NOOP_LOGGER } from "./shared/Logging.js";
export { createCachingECClassHierarchyInspector, getClass } from "./shared/Metadata.js";
export { createMainThreadReleaseOnTimePassedHandler, julianToDateTime, normalizeFullClassName, parseFullClassName, releaseMainThread, trimWhitespace, } from "./shared/Utils.js";
export { InstanceKey, PrimitiveValue, TypedPrimitiveValue } from "./shared/Values.js";
//# sourceMappingURL=presentation-shared.js.map

@@ -1,2 +0,2 @@

import { TypedPrimitiveValue } from "./Values";
import { TypedPrimitiveValue } from "./Values.js";
/**

@@ -10,12 +10,12 @@ * A part of a `ConcatenatedValue`, describing one piece of the value. Possible types:

* @see `ConcatenatedValue`
* @beta
* @public
*/
export type ConcatenatedValuePart = ConcatenatedValue | TypedPrimitiveValue | string;
/** @beta */
/** @public */
export declare namespace ConcatenatedValuePart {
/** @beta */
/** @public */
function isString(part: ConcatenatedValuePart): part is string;
/** @beta */
/** @public */
function isPrimitive(part: ConcatenatedValuePart): part is TypedPrimitiveValue;
/** @beta */
/** @public */
function isConcatenatedValue(part: ConcatenatedValuePart): part is ConcatenatedValue;

@@ -27,6 +27,6 @@ }

*
* @beta
* @public
*/
export type ConcatenatedValue = ConcatenatedValuePart[];
/** @beta */
/** @public */
export declare namespace ConcatenatedValue {

@@ -37,3 +37,3 @@ /**

*
* @beta
* @public
*/

@@ -40,0 +40,0 @@ function serialize(props: {

@@ -5,7 +5,7 @@ /*---------------------------------------------------------------------------------------------

*--------------------------------------------------------------------------------------------*/
/** @beta */
/** @public */
// eslint-disable-next-line @typescript-eslint/no-redeclare
export var ConcatenatedValuePart;
(function (ConcatenatedValuePart) {
/** @beta */
/** @public */
function isString(part) {

@@ -15,3 +15,3 @@ return typeof part === "string";

ConcatenatedValuePart.isString = isString;
/** @beta */
/** @public */
function isPrimitive(part) {

@@ -21,3 +21,3 @@ return !!part.type;

ConcatenatedValuePart.isPrimitive = isPrimitive;
/** @beta */
/** @public */
function isConcatenatedValue(part) {

@@ -28,3 +28,3 @@ return Array.isArray(part);

})(ConcatenatedValuePart || (ConcatenatedValuePart = {}));
/** @beta */
/** @public */
// eslint-disable-next-line @typescript-eslint/no-redeclare

@@ -37,3 +37,3 @@ export var ConcatenatedValue;

*
* @beta
* @public
*/

@@ -40,0 +40,0 @@ async function serialize(props) {

@@ -1,5 +0,5 @@

import { ECSchemaProvider, RelationshipPath, RelationshipPathStep } from "../Metadata";
import { ECSchemaProvider, RelationshipPath, RelationshipPathStep } from "../Metadata.js";
/**
* Describes a single JOIN step from source to target through a relationship.
* @beta
* @public
*/

@@ -14,3 +14,3 @@ interface JoinRelationshipPathStep extends RelationshipPathStep {

* Describes a path of JOINs from source to target.
* @beta
* @public
*/

@@ -20,3 +20,3 @@ type JoinRelationshipPath = RelationshipPath<JoinRelationshipPathStep>;

* Props for `createRelationshipPathJoinClause`.
* @beta
* @public
*/

@@ -49,3 +49,3 @@ interface CreateRelationshipPathJoinClauseProps {

* ```
* @beta
* @public
*/

@@ -52,0 +52,0 @@ export declare function createRelationshipPathJoinClause(props: CreateRelationshipPathJoinClauseProps): Promise<string>;

@@ -5,4 +5,4 @@ /*---------------------------------------------------------------------------------------------

*--------------------------------------------------------------------------------------------*/
import { getClass } from "../Metadata";
import { createRawPropertyValueSelector } from "./ECSqlValueSelectorSnippets";
import { getClass } from "../Metadata.js";
import { createRawPropertyValueSelector } from "./ECSqlValueSelectorSnippets.js";
/**

@@ -30,3 +30,3 @@ * Creates an ECSQL JOIN snippet for given relationships' path.

* ```
* @beta
* @public
*/

@@ -118,3 +118,2 @@ export async function createRelationshipPathJoinClause(props) {

for (const prop of await source.getProperties()) {
// istanbul ignore else
if (prop.isNavigation() && prop.direction === "Forward" && (await prop.relationshipClass).fullName === step.relationship.fullName) {

@@ -125,3 +124,2 @@ return prop;

for (const prop of await target.getProperties()) {
// istanbul ignore else
if (prop.isNavigation() && prop.direction === "Backward" && (await prop.relationshipClass).fullName === step.relationship.fullName) {

@@ -128,0 +126,0 @@ return prop;

@@ -1,6 +0,6 @@

import { ECSchemaProvider, PrimitiveValueType } from "../Metadata";
import { PrimitiveValue, TypedPrimitiveValue } from "../Values";
import { ECSchemaProvider, PrimitiveValueType } from "../Metadata.js";
import { PrimitiveValue, TypedPrimitiveValue } from "../Values.js";
/**
* Props for selecting a `TypedPrimitiveValue` using given ECSQL selector.
* @beta
* @public
*/

@@ -23,6 +23,6 @@ type TypedPrimitiveValueSelectorProps = {

* A union of prop types for selecting a value and its metadata in ECSQL query.
* @beta
* @public
*/
export type TypedValueSelectClauseProps = TypedPrimitiveValue | TypedPrimitiveValueSelectorProps;
/** @beta */
/** @public */
export declare namespace TypedValueSelectClauseProps {

@@ -35,3 +35,3 @@ function isPrimitiveValue(props: TypedValueSelectClauseProps): props is TypedPrimitiveValue;

* @throws Error if the property is not found, is not primitive or has unsupported primitive type (Binary, IGeometry).
* @beta
* @public
*/

@@ -52,3 +52,3 @@ export declare function createPrimitivePropertyValueSelectorProps({ schemaProvider, propertyClassAlias, propertyClassName, propertyName, }: {

*
* @beta
* @public
*/

@@ -63,3 +63,3 @@ export declare function createRawPropertyValueSelector(classAlias: string, propertyName: string, componentName?: string): string;

*
* @beta
* @public
*/

@@ -69,3 +69,3 @@ export declare function createRawPrimitiveValueSelector(value: PrimitiveValue | undefined): string;

* Creates an ECSQL selector that results in a stringified `InstanceKey` object.
* @beta
* @public
*/

@@ -82,3 +82,3 @@ export declare function createInstanceKeySelector(props: {

*
* @beta
* @public
*/

@@ -104,3 +104,3 @@ export declare function createNullableSelector(props: {

*
* @beta
* @public
*/

@@ -124,3 +124,3 @@ export declare function createConcatenatedValueJsonSelector(selectors: TypedValueSelectClauseProps[], checkSelector?: string): string;

*
* @beta
* @public
*/

@@ -127,0 +127,0 @@ export declare function createConcatenatedValueStringSelector(selectors: TypedValueSelectClauseProps[], checkSelector?: string): string;

@@ -6,5 +6,5 @@ /*---------------------------------------------------------------------------------------------

import { Id64 } from "@itwin/core-bentley";
import { getClass } from "../Metadata";
import { PrimitiveValue } from "../Values";
/** @beta */
import { getClass } from "../Metadata.js";
import { PrimitiveValue } from "../Values.js";
/** @public */
// eslint-disable-next-line @typescript-eslint/no-redeclare

@@ -25,3 +25,3 @@ export var TypedValueSelectClauseProps;

* @throws Error if the property is not found, is not primitive or has unsupported primitive type (Binary, IGeometry).
* @beta
* @public
*/

@@ -55,3 +55,3 @@ export async function createPrimitivePropertyValueSelectorProps({ schemaProvider, propertyClassAlias, propertyClassName, propertyName, }) {

type: "Point2d",
...(extendedType ? { extendedType } : /* istanbul ignore next */ {}),
...(extendedType ? { extendedType } : /* c8 ignore next */ {}),
};

@@ -62,3 +62,3 @@ case "Point3d":

type: "Point3d",
...(extendedType ? { extendedType } : /* istanbul ignore next */ {}),
...(extendedType ? { extendedType } : /* c8 ignore next */ {}),
};

@@ -70,4 +70,4 @@ case "Double":

type: "Double",
...(extendedType ? { extendedType } : /* istanbul ignore next */ {}),
...(koqName ? { koqName } : /* istanbul ignore next */ {}),
...(extendedType ? { extendedType } : /* c8 ignore next */ {}),
...(koqName ? { koqName } : /* c8 ignore next */ {}),
};

@@ -78,3 +78,3 @@ }

type: propertyValueType,
...(extendedType ? { extendedType } : /* istanbul ignore next */ {}),
...(extendedType ? { extendedType } : /* c8 ignore next */ {}),
};

@@ -86,3 +86,3 @@ }

*
* @beta
* @public
*/

@@ -103,3 +103,3 @@ export function createRawPropertyValueSelector(classAlias, propertyName, componentName) {

*
* @beta
* @public
*/

@@ -130,3 +130,3 @@ export function createRawPrimitiveValueSelector(value) {

* Creates an ECSQL selector that results in a stringified `InstanceKey` object.
* @beta
* @public
*/

@@ -145,3 +145,3 @@ export function createInstanceKeySelector(props) {

*
* @beta
* @public
*/

@@ -166,3 +166,3 @@ export function createNullableSelector(props) {

*
* @beta
* @public
*/

@@ -234,3 +234,3 @@ export function createConcatenatedValueJsonSelector(selectors, checkSelector) {

*
* @beta
* @public
*/

@@ -237,0 +237,0 @@ export function createConcatenatedValueStringSelector(selectors, checkSelector) {

@@ -1,3 +0,3 @@

export { createRawPropertyValueSelector, createRawPrimitiveValueSelector, createNullableSelector, createConcatenatedValueJsonSelector, createConcatenatedValueStringSelector, createInstanceKeySelector, createPrimitivePropertyValueSelectorProps, } from "./ECSqlValueSelectorSnippets";
export { createRelationshipPathJoinClause } from "./ECSqlJoinSnippets";
export { createRawPropertyValueSelector, createRawPrimitiveValueSelector, createNullableSelector, createConcatenatedValueJsonSelector, createConcatenatedValueStringSelector, createInstanceKeySelector, createPrimitivePropertyValueSelectorProps, } from "./ECSqlValueSelectorSnippets.js";
export { createRelationshipPathJoinClause } from "./ECSqlJoinSnippets.js";
//# sourceMappingURL=index.d.ts.map

@@ -5,4 +5,4 @@ /*---------------------------------------------------------------------------------------------

*--------------------------------------------------------------------------------------------*/
export { createRawPropertyValueSelector, createRawPrimitiveValueSelector, createNullableSelector, createConcatenatedValueJsonSelector, createConcatenatedValueStringSelector, createInstanceKeySelector, createPrimitivePropertyValueSelectorProps, } from "./ECSqlValueSelectorSnippets";
export { createRelationshipPathJoinClause } from "./ECSqlJoinSnippets";
export { createRawPropertyValueSelector, createRawPrimitiveValueSelector, createNullableSelector, createConcatenatedValueJsonSelector, createConcatenatedValueStringSelector, createInstanceKeySelector, createPrimitivePropertyValueSelectorProps, } from "./ECSqlValueSelectorSnippets.js";
export { createRelationshipPathJoinClause } from "./ECSqlJoinSnippets.js";
//# sourceMappingURL=index.js.map

@@ -6,3 +6,3 @@ import { Id64String } from "@itwin/core-bentley";

*
* @beta
* @public
*/

@@ -40,3 +40,3 @@ export type ECSqlBinding = {

* Defines an ECSQL query and its bindings.
* @beta
* @public
*/

@@ -60,3 +60,3 @@ export interface ECSqlQueryDef {

* @see [QueryRowFormat](https://www.itwinjs.org/reference/core-common/imodels/queryrowformat/)
* @beta
* @public
*/

@@ -67,3 +67,3 @@ type ECSqlQueryRowFormat = "ECSqlPropertyNames" | "Indexes";

* @see [QueryOptions](https://www.itwinjs.org/reference/core-common/imodels/queryoptions/)
* @beta
* @public
*/

@@ -77,3 +77,3 @@ export interface ECSqlQueryReaderOptions {

* @see [QueryRowProxy](https://www.itwinjs.org/reference/core-common/imodels/queryrowproxy/)
* @beta
* @public
*/

@@ -87,3 +87,3 @@ export interface ECSqlQueryRow {

* @see [ECSqlReader](https://www.itwinjs.org/reference/core-common/imodels/ecsqlreader/)
* @beta
* @public
*/

@@ -94,3 +94,3 @@ type ECSqlQueryReader = AsyncIterableIterator<ECSqlQueryRow>;

* @see `createECSqlQueryExecutor` in `@itwin/presentation-core-interop`.
* @beta
* @public
*/

@@ -97,0 +97,0 @@ export interface ECSqlQueryExecutor {

/**
* An interface that allows subscribing and unsubscribing listeners that are called upon an event.
* @beta
* @public
*/

@@ -5,0 +5,0 @@ export interface Event<TListener extends (...args: any[]) => void = () => void> {

@@ -1,7 +0,7 @@

import { ConcatenatedValue } from "./ConcatenatedValue";
import { TypedPrimitiveValue } from "./Values";
import { ConcatenatedValue } from "./ConcatenatedValue.js";
import { TypedPrimitiveValue } from "./Values.js";
/**
* A type definition for a function that knows how to create a display string for a typed primitive value.
* @see `createDefaultValueFormatter`
* @beta
* @public
*/

@@ -13,3 +13,3 @@ export type IPrimitiveValueFormatter = (value: TypedPrimitiveValue) => Promise<string>;

*
* @beta
* @public
*/

@@ -42,5 +42,5 @@ export declare function formatConcatenatedValue(props: {

*
* @beta
* @public
*/
export declare function createDefaultValueFormatter(): IPrimitiveValueFormatter;
//# sourceMappingURL=Formatting.d.ts.map

@@ -6,4 +6,4 @@ /*---------------------------------------------------------------------------------------------

import { assert } from "@itwin/core-bentley";
import { ConcatenatedValue, ConcatenatedValuePart } from "./ConcatenatedValue";
import { julianToDateTime } from "./InternalUtils";
import { ConcatenatedValue, ConcatenatedValuePart } from "./ConcatenatedValue.js";
import { julianToDateTime } from "./Utils.js";
/**

@@ -13,3 +13,3 @@ * Formats a concatenated value into a string, taking into account different types of `ConcatenatedValuePart` that

*
* @beta
* @public
*/

@@ -58,3 +58,3 @@ export async function formatConcatenatedValue(props) {

*
* @beta
* @public
*/

@@ -61,0 +61,0 @@ export function createDefaultValueFormatter() {

@@ -1,7 +0,7 @@

import { ConcatenatedValue } from "./ConcatenatedValue";
import { TypedValueSelectClauseProps } from "./ecsql-snippets/ECSqlValueSelectorSnippets";
import { ECClassHierarchyInspector } from "./Metadata";
import { ConcatenatedValue } from "./ConcatenatedValue.js";
import { TypedValueSelectClauseProps } from "./ecsql-snippets/ECSqlValueSelectorSnippets.js";
import { ECClassHierarchyInspector } from "./Metadata.js";
/**
* Props for `IInstanceLabelSelectClauseFactory.createSelectClause`.
* @beta
* @public
*/

@@ -59,3 +59,3 @@ interface CreateInstanceLabelSelectClauseProps {

* @see `createBisInstanceLabelSelectClauseFactory`
* @beta
* @public
*/

@@ -71,3 +71,3 @@ export interface IInstanceLabelSelectClauseFactory {

*
* @beta
* @public
*/

@@ -82,3 +82,3 @@ export declare function parseInstanceLabel(value: string | undefined): ConcatenatedValue | string;

* @see https://www.itwinjs.org/presentation/advanced/defaultbisrules/#label-overrides
* @beta
* @public
*/

@@ -88,3 +88,3 @@ export declare function createDefaultInstanceLabelSelectClauseFactory(): IInstanceLabelSelectClauseFactory;

* An association of a class and an instance label select clause factory method.
* @beta
* @public
*/

@@ -99,3 +99,3 @@ interface ClassBasedLabelSelectClause {

* Props for `createClassBasedInstanceLabelSelectClauseFactory`.
* @beta
* @public
*/

@@ -121,3 +121,3 @@ interface ClassBasedInstanceLabelSelectClauseFactoryProps {

* Creates an instance label select clause based on its class.
* @beta
* @public
*/

@@ -127,3 +127,3 @@ export declare function createClassBasedInstanceLabelSelectClauseFactory(props: ClassBasedInstanceLabelSelectClauseFactoryProps): IInstanceLabelSelectClauseFactory;

* Props for `createBisInstanceLabelSelectClauseFactory`.
* @beta
* @public
*/

@@ -136,3 +136,3 @@ interface BisInstanceLabelSelectClauseFactoryProps {

* @see https://www.itwinjs.org/presentation/advanced/defaultbisrules/#label-overrides
* @beta
* @public
*/

@@ -139,0 +139,0 @@ export declare function createBisInstanceLabelSelectClauseFactory(props: BisInstanceLabelSelectClauseFactoryProps): IInstanceLabelSelectClauseFactory;

@@ -5,3 +5,3 @@ /*---------------------------------------------------------------------------------------------

*--------------------------------------------------------------------------------------------*/
import { createConcatenatedValueJsonSelector, createRawPropertyValueSelector } from "./ecsql-snippets/ECSqlValueSelectorSnippets";
import { createConcatenatedValueJsonSelector, createRawPropertyValueSelector, } from "./ecsql-snippets/ECSqlValueSelectorSnippets.js";
/**

@@ -12,3 +12,3 @@ * Parses an instance label from query result into a string or a `ConcatenatedValue`. The latter type of result

*
* @beta
* @public
*/

@@ -37,3 +37,3 @@ export function parseInstanceLabel(value) {

* @see https://www.itwinjs.org/presentation/advanced/defaultbisrules/#label-overrides
* @beta
* @public
*/

@@ -62,3 +62,3 @@ export function createDefaultInstanceLabelSelectClauseFactory() {

* Creates an instance label select clause based on its class.
* @beta
* @public
*/

@@ -118,3 +118,3 @@ export function createClassBasedInstanceLabelSelectClauseFactory(props) {

* @see https://www.itwinjs.org/presentation/advanced/defaultbisrules/#label-overrides
* @beta
* @public
*/

@@ -121,0 +121,0 @@ export function createBisInstanceLabelSelectClauseFactory(props) {

/**
* Defines a type for a logging function.
* @beta
* @public
*/

@@ -8,3 +8,3 @@ export type LogFunction = (category: string, message: string) => void;

* Defines logging severities.
* @beta
* @public
*/

@@ -14,3 +14,3 @@ export type LogLevel = "error" | "warning" | "info" | "trace";

* An interface for a logger used by presentation packages.
* @beta
* @public
*/

@@ -26,5 +26,5 @@ export interface ILogger {

* A logger implementation that does nothing.
* @beta
* @public
*/
export declare const NOOP_LOGGER: ILogger;
//# sourceMappingURL=Logging.d.ts.map

@@ -7,5 +7,5 @@ /*---------------------------------------------------------------------------------------------

* A logger implementation that does nothing.
* @beta
* @public
*/
// istanbul ignore next
/* c8 ignore next 7 */
export const NOOP_LOGGER = {

@@ -12,0 +12,0 @@ isEnabled: () => false,

/**
* An utility `Omit` type which works with union types.
* @beta
* @public
*/

@@ -8,5 +8,5 @@ export type OmitOverUnion<T, K extends PropertyKey> = T extends T ? Omit<T, K> : never;

* An utility generic type to get array element's type.
* @beta
* @public
*/
export type ArrayElement<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
//# sourceMappingURL=MappedTypes.d.ts.map

@@ -5,3 +5,3 @@ /**

* @see `createECSchemaProvider` in `@itwin/presentation-core-interop`.
* @beta
* @public
*/

@@ -14,3 +14,3 @@ export interface ECSchemaProvider {

* @see `createCachingECClassHierarchyInspector`
* @beta
* @public
*/

@@ -22,3 +22,3 @@ export interface ECClassHierarchyInspector {

* Creates a new `ECClassHierarchyInspector` that caches results of `derivesFrom` calls.
* @beta
* @public
*/

@@ -33,3 +33,3 @@ export declare function createCachingECClassHierarchyInspector(props: {

* A namespace containing various [EC types](https://www.itwinjs.org/bis/ec/).
* @beta
* @public
* @see `ECSchemaProvider`

@@ -41,3 +41,3 @@ */

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/schema/
* @beta
* @public
*/

@@ -51,3 +51,3 @@ interface Schema {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/schemaitem/
* @beta
* @public
*/

@@ -63,3 +63,3 @@ interface SchemaItem {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/ecclass/
* @beta
* @public
*/

@@ -79,3 +79,3 @@ interface Class extends SchemaItem {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/entityclass/
* @beta
* @public
*/

@@ -86,3 +86,3 @@ type EntityClass = Class;

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/structclass/
* @beta
* @public
*/

@@ -93,3 +93,3 @@ type StructClass = Class;

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/mixin/
* @beta
* @public
*/

@@ -100,3 +100,3 @@ type Mixin = Class;

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/kindofquantity/
* @beta
* @public
*/

@@ -107,3 +107,3 @@ type KindOfQuantity = SchemaItem;

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/relationshipmultiplicity/
* @beta
* @public
*/

@@ -117,3 +117,3 @@ interface RelationshipConstraintMultiplicity {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/relationshipconstraint/
* @beta
* @public
*/

@@ -128,3 +128,3 @@ interface RelationshipConstraint {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/relationshipclass/
* @beta
* @public
*/

@@ -139,3 +139,3 @@ interface RelationshipClass extends Class {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/enumerator/
* @beta
* @public
*/

@@ -151,3 +151,3 @@ interface Enumerator<T> {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/enumeration/
* @beta
* @public
*/

@@ -162,3 +162,3 @@ interface Enumeration extends SchemaItem {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/property/
* @beta
* @public
*/

@@ -179,3 +179,3 @@ interface Property {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/arrayproperty/
* @beta
* @public
*/

@@ -189,3 +189,3 @@ interface ArrayPropertyAttributes {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/structarrayproperty/
* @beta
* @public
*/

@@ -196,3 +196,3 @@ type StructArrayProperty = StructProperty & ArrayPropertyAttributes;

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/enumerationarrayproperty/
* @beta
* @public
*/

@@ -203,3 +203,3 @@ type EnumerationArrayProperty = EnumerationProperty & ArrayPropertyAttributes;

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/primitivearrayproperty/
* @beta
* @public
*/

@@ -210,3 +210,3 @@ type PrimitiveArrayProperty = PrimitiveProperty & ArrayPropertyAttributes;

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/anyarrayproperty/
* @beta
* @public
*/

@@ -217,3 +217,3 @@ type ArrayProperty = StructArrayProperty | EnumerationArrayProperty | PrimitiveArrayProperty;

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/structproperty/
* @beta
* @public
*/

@@ -226,3 +226,3 @@ interface StructProperty extends Property {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/enumerationproperty/
* @beta
* @public
*/

@@ -236,3 +236,3 @@ interface EnumerationProperty extends Property {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/navigationproperty/
* @beta
* @public
*/

@@ -246,3 +246,3 @@ interface NavigationProperty extends Property {

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/primitivetype/
* @beta
* @public
*/

@@ -253,3 +253,3 @@ type PrimitiveType = "Binary" | "Boolean" | "DateTime" | "Double" | "Integer" | "Long" | "Point2d" | "Point3d" | "String" | "IGeometry";

* @see https://www.itwinjs.org/reference/ecschema-metadata/metadata/primitiveproperty/
* @beta
* @public
*/

@@ -263,3 +263,3 @@ interface PrimitiveProperty extends Property {

* An identifiers' union of all supported primitive value types.
* @beta
* @public
*/

@@ -269,3 +269,3 @@ export type PrimitiveValueType = "Id" | Exclude<EC.PrimitiveType, "Binary" | "IGeometry">;

* Describes a single step through an ECRelationship from source ECClass to target ECClass.
* @beta
* @public
*/

@@ -288,3 +288,3 @@ export interface RelationshipPathStep {

* Describes a path from source ECClass to target ECClass through multiple ECRelationships.
* @beta
* @public
*/

@@ -295,5 +295,5 @@ export type RelationshipPath<TStep extends RelationshipPathStep = RelationshipPathStep> = TStep[];

* @throws Error if the schema or class is not found.
* @beta
* @public
*/
export declare function getClass(schemaProvider: ECSchemaProvider, fullClassName: string): Promise<EC.Class>;
//# sourceMappingURL=Metadata.d.ts.map

@@ -6,6 +6,6 @@ /*---------------------------------------------------------------------------------------------

import { LRUMap } from "@itwin/core-bentley";
import { parseFullClassName } from "./Utils";
import { parseFullClassName } from "./Utils.js";
/**
* Creates a new `ECClassHierarchyInspector` that caches results of `derivesFrom` calls.
* @beta
* @public
*/

@@ -36,3 +36,3 @@ export function createCachingECClassHierarchyInspector(props) {

* @throws Error if the schema or class is not found.
* @beta
* @public
*/

@@ -39,0 +39,0 @@ export async function getClass(schemaProvider, fullClassName) {

/**
* An utility to parse schema and class names from full class name, where
* schema and class names are separated by either `:` or `.`.
* @beta
* @public
*/

@@ -13,3 +13,3 @@ export declare function parseFullClassName(fullClassName: string): {

* `SchemaName.ClassName` to always use the dot format.
* @beta
* @public
*/

@@ -19,3 +19,3 @@ export declare function normalizeFullClassName(fullClassName: string): string;

* An utility to remove all extra whitespace from a given string.
* @beta
* @public
*/

@@ -25,3 +25,3 @@ export declare function trimWhitespace(str: string): string;

* An utility to remove all extra whitespace from a given string.
* @beta
* @public
*/

@@ -33,3 +33,3 @@ export declare function trimWhitespace(str: string | undefined): string | undefined;

*
* @beta
* @public
*/

@@ -51,5 +51,10 @@ export declare function releaseMainThread(): Promise<void>;

* @param releaseOnTimePassed The amount of time in milliseconds after which the main thread should be released. Defaults to `40` ms.
* @beta
* @public
*/
export declare function createMainThreadReleaseOnTimePassedHandler(releaseOnTimePassed?: number): () => Promise<void> | undefined;
/**
* An utility to convert a julian day format to `Date`.
* @public
*/
export declare function julianToDateTime(julianDate: number): Date;
//# sourceMappingURL=Utils.d.ts.map

@@ -9,3 +9,3 @@ /*---------------------------------------------------------------------------------------------

* schema and class names are separated by either `:` or `.`.
* @beta
* @public
*/

@@ -20,3 +20,3 @@ export function parseFullClassName(fullClassName) {

* `SchemaName.ClassName` to always use the dot format.
* @beta
* @public
*/

@@ -33,5 +33,5 @@ export function normalizeFullClassName(fullClassName) {

}
/** @beta */
/** @public */
export function trimWhitespace(str) {
// istanbul ignore next
/* c8 ignore next 3 */
if (!str) {

@@ -51,3 +51,3 @@ return str;

*
* @beta
* @public
*/

@@ -71,3 +71,3 @@ export async function releaseMainThread() {

* @param releaseOnTimePassed The amount of time in milliseconds after which the main thread should be released. Defaults to `40` ms.
* @beta
* @public
*/

@@ -86,2 +86,10 @@ export function createMainThreadReleaseOnTimePassedHandler(releaseOnTimePassed = 40) {

}
/**
* An utility to convert a julian day format to `Date`.
* @public
*/
export function julianToDateTime(julianDate) {
const millis = (julianDate - 2440587.5) * 86400000;
return new Date(millis);
}
//# sourceMappingURL=Utils.js.map
import { Id64String } from "@itwin/core-bentley";
import { PrimitiveValueType } from "./Metadata";
import { PrimitiveValueType } from "./Metadata.js";
/**
* A data structure uniquely identifying an ECInstance in an iModel.
* @beta
* @public
*/

@@ -13,7 +13,7 @@ export interface InstanceKey {

}
/** @beta */
/** @public */
export declare namespace InstanceKey {
/**
* Checks whether the two given instance keys are equal.
* @beta
* @public
*/

@@ -32,3 +32,3 @@ function equals(lhs: InstanceKey, rhs: InstanceKey): boolean;

* A data structure for a 2d point.
* @beta
* @public
*/

@@ -41,3 +41,3 @@ export interface Point2d {

* A data structure for a 3d point.
* @beta
* @public
*/

@@ -51,6 +51,6 @@ export interface Point3d {

* A union for all supported primitive value types.
* @beta
* @public
*/
export type PrimitiveValue = Id64String | string | number | boolean | Date | Point2d | Point3d;
/** @beta */
/** @public */
export declare namespace PrimitiveValue {

@@ -60,3 +60,3 @@ /**

* @note Since `Point3d` is a superset of `Point2d`, this function will return `true` for `Point3d` as well.
* @beta
* @public
*/

@@ -66,3 +66,3 @@ function isPoint2d(value: PrimitiveValue): value is Point2d;

* Checks whether the given value is a `Point3d`.
* @beta
* @public
*/

@@ -74,3 +74,3 @@ function isPoint3d(value: PrimitiveValue): value is Point3d;

* @note Use `TypedPrimitiveValue.create` to create an instance of this type.
* @beta
* @public
*/

@@ -105,3 +105,3 @@ export type TypedPrimitiveValue = ({

};
/** @beta */
/** @public */
export declare namespace TypedPrimitiveValue {

@@ -111,3 +111,3 @@ /**

* @throws Error if primitive type and value are incompatible.
* @beta
* @public
*/

@@ -114,0 +114,0 @@ function create(value: PrimitiveValue, type: PrimitiveValueType, koqName?: string, extendedType?: string): TypedPrimitiveValue;

@@ -6,3 +6,3 @@ /*---------------------------------------------------------------------------------------------

import { compareStrings, Id64 } from "@itwin/core-bentley";
/** @beta */
/** @public */
export var InstanceKey;

@@ -12,3 +12,3 @@ (function (InstanceKey) {

* Checks whether the two given instance keys are equal.
* @beta
* @public
*/

@@ -35,3 +35,3 @@ function equals(lhs, rhs) {

})(InstanceKey || (InstanceKey = {}));
/** @beta */
/** @public */
// eslint-disable-next-line @typescript-eslint/no-redeclare

@@ -43,3 +43,3 @@ export var PrimitiveValue;

* @note Since `Point3d` is a superset of `Point2d`, this function will return `true` for `Point3d` as well.
* @beta
* @public
*/

@@ -56,3 +56,3 @@ function isPoint2d(value) {

* Checks whether the given value is a `Point3d`.
* @beta
* @public
*/

@@ -68,3 +68,3 @@ function isPoint3d(value) {

})(PrimitiveValue || (PrimitiveValue = {}));
/** @beta */
/** @public */
// eslint-disable-next-line @typescript-eslint/no-redeclare

@@ -76,3 +76,3 @@ export var TypedPrimitiveValue;

* @throws Error if primitive type and value are incompatible.
* @beta
* @public
*/

@@ -79,0 +79,0 @@ function create(value, type, koqName, extendedType) {

{
"name": "@itwin/presentation-shared",
"version": "1.0.0",
"version": "1.1.0",
"description": "The package contains types and utilities used across different iTwin.js Presentation packages.",

@@ -23,5 +23,13 @@ "license": "MIT",

],
"type": "module",
"main": "lib/cjs/presentation-shared.js",
"types": "lib/cjs/presentation-shared",
"module": "lib/esm/presentation-shared.js",
"types": "lib/cjs/presentation-shared.d.ts",
"exports": {
".": {
"import": "./lib/esm/presentation-shared.js",
"require": "./lib/cjs/presentation-shared.js"
},
"./package.json": "./package.json"
},
"dependencies": {

@@ -31,4 +39,4 @@ "@itwin/core-bentley": "^4.9.0"

"devDependencies": {
"@itwin/build-tools": "^4.9.0",
"@itwin/eslint-plugin": "^4.1.1",
"@itwin/build-tools": "^4.10.0-dev.33",
"@itwin/eslint-plugin": "5.0.0-dev.1",
"@types/chai": "^4.3.16",

@@ -41,12 +49,12 @@ "@types/chai-as-promised": "^7.1.8",

"@types/sinon-chai": "^3.2.12",
"c8": "^10.1.2",
"chai": "^4.4.1",
"chai-as-promised": "^7.1.2",
"chai-subset": "^1.6.0",
"eslint": "^8.57.0",
"mocha": "^10.6.0",
"nyc": "^17.0.0",
"eslint": "^9.13.0",
"mocha": "^10.7.3",
"rimraf": "^6.0.1",
"sinon": "^18.0.0",
"sinon-chai": "^3.7.0",
"typescript": "~5.5.3",
"typescript": "~5.6.3",
"presentation-build-tools": "^0.0.0",

@@ -57,9 +65,9 @@ "presentation-test-utilities": "^0.0.0"

"build": "npm run -s build:cjs && npm run -s build:esm",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:cjs": "node ../../scripts/package-cjs.mjs ./lib/cjs && tsc -p tsconfig.cjs.json",
"build:esm": "tsc -p tsconfig.esm.json",
"build:watch": "npm run -s build:cjs -- -w",
"clean": "rimraf lib temp",
"cover": "nyc npm -s test",
"cover": "c8 npm -s test",
"lint": "eslint \"./src/**/*.ts\"",
"test": "mocha --enable-source-maps --config ./.mocharc.json \"./lib/cjs/test/**/*.test.js\"",
"test:dev": "mocha --enable-source-maps --config ./.mocharc.json",
"test": "npm run test:dev",
"extract-api": "extract-api --entry=presentation-shared --apiReportFolder=./api --apiReportTempFolder=./api/temp --apiSummaryFolder=./api",

@@ -66,0 +74,0 @@ "check-internal": "node ../../scripts/checkInternal.js --apiSummary ./api/presentation-shared.api.md",

@@ -452,2 +452,4 @@ # @itwin/presentation-shared

- `julianToDateTime` - converts a julian date to a JavaScript `Date` object.
- `releaseMainThread` - returns a promise that immediately resolves. Awaiting on the returned promise releases the main thread and allows other tasks to run.

@@ -454,0 +456,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc