@itwin/physical-material-backend 5.0.0-dev.90 → 5.0.0-dev.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.PhysicalMaterialSchema = void 0;
11
11
  const path = require("path");
12
12
  const core_backend_1 = require("@itwin/core-backend");
13
- const elementsModule = require("./PhysicalMaterialElements");
13
+ const elementsModule = require("./PhysicalMaterialElements.js");
14
14
  /** The PhysicalMaterialSchema contains standard physical material classes.
15
15
  * A physical material defines the matter that makes up physical elements.
16
16
  * @see [PhysicalMaterial]($backend)
@@ -1 +1 @@
1
- {"version":3,"file":"PhysicalMaterialSchema.js","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,6BAA6B;AAC7B,sDAAqF;AACrF,6DAA6D;AAE7D;;;;GAIG;AACH,MAAa,sBAAuB,SAAQ,qBAAM;IACzC,MAAM,KAAc,UAAU,KAAa,OAAO,kBAAkB,CAAC,CAAC,CAAC;IACvE,MAAM,KAAK,cAAc,KAAa,OAAO,IAAI,CAAC,IAAI,CAAC,6BAAc,CAAC,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,sBAAsB,CAAC,UAAU,eAAe,CAAC,CAAC,CAAC,CAAC;IAErK,MAAM,CAAC,cAAc;QAC1B,IAAI,IAAI,KAAK,sBAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAC1D,sBAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC1C,sBAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YAC7B,4BAAa,CAAC,cAAc,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;CACF;AAXD,wDAWC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PhysicalMaterial\n */\n\nimport * as path from \"path\";\nimport { ClassRegistry, KnownLocations, Schema, Schemas } from \"@itwin/core-backend\";\nimport * as elementsModule from \"./PhysicalMaterialElements\";\n\n/** The PhysicalMaterialSchema contains standard physical material classes.\n * A physical material defines the matter that makes up physical elements.\n * @see [PhysicalMaterial]($backend)\n * @public\n */\nexport class PhysicalMaterialSchema extends Schema {\n public static override get schemaName(): string { return \"PhysicalMaterial\"; }\n public static get schemaFilePath(): string { return path.join(KnownLocations.nativeAssetsDir, \"ECSchemas\", \"Domain\", `${PhysicalMaterialSchema.schemaName}.ecschema.xml`); }\n\n public static registerSchema() {\n if (this !== Schemas.getRegisteredSchema(this.schemaName)) {\n Schemas.unregisterSchema(this.schemaName);\n Schemas.registerSchema(this);\n ClassRegistry.registerModule(elementsModule, this);\n }\n }\n}\n"]}
1
+ {"version":3,"file":"PhysicalMaterialSchema.js","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,6BAA6B;AAC7B,sDAAqF;AACrF,gEAAgE;AAEhE;;;;GAIG;AACH,MAAa,sBAAuB,SAAQ,qBAAM;IACzC,MAAM,KAAc,UAAU,KAAa,OAAO,kBAAkB,CAAC,CAAC,CAAC;IACvE,MAAM,KAAK,cAAc,KAAa,OAAO,IAAI,CAAC,IAAI,CAAC,6BAAc,CAAC,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,sBAAsB,CAAC,UAAU,eAAe,CAAC,CAAC,CAAC,CAAC;IAErK,MAAM,CAAC,cAAc;QAC1B,IAAI,IAAI,KAAK,sBAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAC1D,sBAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC1C,sBAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YAC7B,4BAAa,CAAC,cAAc,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;CACF;AAXD,wDAWC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PhysicalMaterial\n */\n\nimport * as path from \"path\";\nimport { ClassRegistry, KnownLocations, Schema, Schemas } from \"@itwin/core-backend\";\nimport * as elementsModule from \"./PhysicalMaterialElements.js\";\n\n/** The PhysicalMaterialSchema contains standard physical material classes.\n * A physical material defines the matter that makes up physical elements.\n * @see [PhysicalMaterial]($backend)\n * @public\n */\nexport class PhysicalMaterialSchema extends Schema {\n public static override get schemaName(): string { return \"PhysicalMaterial\"; }\n public static get schemaFilePath(): string { return path.join(KnownLocations.nativeAssetsDir, \"ECSchemas\", \"Domain\", `${PhysicalMaterialSchema.schemaName}.ecschema.xml`); }\n\n public static registerSchema() {\n if (this !== Schemas.getRegisteredSchema(this.schemaName)) {\n Schemas.unregisterSchema(this.schemaName);\n Schemas.registerSchema(this);\n ClassRegistry.registerModule(elementsModule, this);\n }\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
- export * from "./PhysicalMaterialElements";
2
- export * from "./PhysicalMaterialSchema";
1
+ export * from "./PhysicalMaterialElements.js";
2
+ export * from "./PhysicalMaterialSchema.js";
3
3
  /** @docs-package-description
4
4
  * The `@itwin/physical-material-backend` package contains classes related to working with physical materials on the backend.
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"physical-material-backend.d.ts","sourceRoot":"","sources":["../../src/physical-material-backend.ts"],"names":[],"mappings":"AAKA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AAEzC;;GAEG;AAEH;;GAEG"}
1
+ {"version":3,"file":"physical-material-backend.d.ts","sourceRoot":"","sources":["../../src/physical-material-backend.ts"],"names":[],"mappings":"AAKA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAE5C;;GAEG;AAEH;;GAEG"}
@@ -18,8 +18,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
18
18
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
- __exportStar(require("./PhysicalMaterialElements"), exports);
22
- __exportStar(require("./PhysicalMaterialSchema"), exports);
21
+ __exportStar(require("./PhysicalMaterialElements.js"), exports);
22
+ __exportStar(require("./PhysicalMaterialSchema.js"), exports);
23
23
  /** @docs-package-description
24
24
  * The `@itwin/physical-material-backend` package contains classes related to working with physical materials on the backend.
25
25
  */
@@ -1 +1 @@
1
- {"version":3,"file":"physical-material-backend.js","sourceRoot":"","sources":["../../src/physical-material-backend.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;AAE/F,6DAA2C;AAC3C,2DAAyC;AAEzC;;GAEG;AAEH;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nexport * from \"./PhysicalMaterialElements\";\nexport * from \"./PhysicalMaterialSchema\";\n\n/** @docs-package-description\n * The `@itwin/physical-material-backend` package contains classes related to working with physical materials on the backend.\n */\n\n/** @docs-group-description PhysicalMaterial\n * A PhysicalMaterial defines the matter that makes up physical elements.\n */\n"]}
1
+ {"version":3,"file":"physical-material-backend.js","sourceRoot":"","sources":["../../src/physical-material-backend.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;AAE/F,gEAA8C;AAC9C,8DAA4C;AAE5C;;GAEG;AAEH;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nexport * from \"./PhysicalMaterialElements.js\";\nexport * from \"./PhysicalMaterialSchema.js\";\n\n/** @docs-package-description\n * The `@itwin/physical-material-backend` package contains classes related to working with physical materials on the backend.\n */\n\n/** @docs-group-description PhysicalMaterial\n * A PhysicalMaterial defines the matter that makes up physical elements.\n */\n"]}
@@ -0,0 +1,47 @@
1
+ /** @packageDocumentation
2
+ * @module PhysicalMaterial
3
+ */
4
+ import { IModelDb, PhysicalMaterial } from "@itwin/core-backend";
5
+ import { DefinitionElementProps } from "@itwin/core-common";
6
+ /** Aggregate is a bis:PhysicalMaterial representing a broad category of coarse to medium grained particulate material typically used in construction as
7
+ * well as base material under foundations, roadways, and railways.
8
+ * @public
9
+ */
10
+ export declare class Aggregate extends PhysicalMaterial {
11
+ /** @internal */
12
+ static get className(): string;
13
+ constructor(props: DefinitionElementProps, iModel: IModelDb);
14
+ }
15
+ /** Aluminum is a bis:PhysicalMaterial representing aluminum (atomic symbol Al) or one of its alloys.
16
+ * @public
17
+ */
18
+ export declare class Aluminum extends PhysicalMaterial {
19
+ /** @internal */
20
+ static get className(): string;
21
+ constructor(props: DefinitionElementProps, iModel: IModelDb);
22
+ }
23
+ /** Asphalt is a bis:PhysicalMaterial representing a mixture of a bituminous binder and aggregates. Asphalt is typically used for roadway surfacing.
24
+ * @public
25
+ */
26
+ export declare class Asphalt extends PhysicalMaterial {
27
+ /** @internal */
28
+ static get className(): string;
29
+ constructor(props: DefinitionElementProps, iModel: IModelDb);
30
+ }
31
+ /** Concrete is a bis:PhysicalMaterial representing a mixture of hydraulic cement, aggregates, water and optionally other materials.
32
+ * @public
33
+ */
34
+ export declare class Concrete extends PhysicalMaterial {
35
+ /** @internal */
36
+ static get className(): string;
37
+ constructor(props: DefinitionElementProps, iModel: IModelDb);
38
+ }
39
+ /** Steel is a bis:PhysicalMaterial representing an alloy of iron, carbon and other elements.
40
+ * @public
41
+ */
42
+ export declare class Steel extends PhysicalMaterial {
43
+ /** @internal */
44
+ static get className(): string;
45
+ constructor(props: DefinitionElementProps, iModel: IModelDb);
46
+ }
47
+ //# sourceMappingURL=PhysicalMaterialElements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PhysicalMaterialElements.d.ts","sourceRoot":"","sources":["../../src/PhysicalMaterialElements.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAE5D;;;GAGG;AACH,qBAAa,SAAU,SAAQ,gBAAgB;IAC7C,gBAAgB;IAChB,WAA2B,SAAS,IAAI,MAAM,CAAwB;gBACnD,KAAK,EAAE,sBAAsB,EAAE,MAAM,EAAE,QAAQ;CACnE;AAED;;GAEG;AACH,qBAAa,QAAS,SAAQ,gBAAgB;IAC5C,gBAAgB;IAChB,WAA2B,SAAS,IAAI,MAAM,CAAuB;gBAClD,KAAK,EAAE,sBAAsB,EAAE,MAAM,EAAE,QAAQ;CACnE;AAED;;GAEG;AACH,qBAAa,OAAQ,SAAQ,gBAAgB;IAC3C,gBAAgB;IAChB,WAA2B,SAAS,IAAI,MAAM,CAAsB;gBACjD,KAAK,EAAE,sBAAsB,EAAE,MAAM,EAAE,QAAQ;CACnE;AAED;;GAEG;AACH,qBAAa,QAAS,SAAQ,gBAAgB;IAC5C,gBAAgB;IAChB,WAA2B,SAAS,IAAI,MAAM,CAAuB;gBAClD,KAAK,EAAE,sBAAsB,EAAE,MAAM,EAAE,QAAQ;CACnE;AAED;;GAEG;AACH,qBAAa,KAAM,SAAQ,gBAAgB;IACzC,gBAAgB;IAChB,WAA2B,SAAS,IAAI,MAAM,CAAoB;gBAC/C,KAAK,EAAE,sBAAsB,EAAE,MAAM,EAAE,QAAQ;CACnE"}
@@ -0,0 +1,50 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ /** @packageDocumentation
6
+ * @module PhysicalMaterial
7
+ */
8
+ import { PhysicalMaterial } from "@itwin/core-backend";
9
+ /** Aggregate is a bis:PhysicalMaterial representing a broad category of coarse to medium grained particulate material typically used in construction as
10
+ * well as base material under foundations, roadways, and railways.
11
+ * @public
12
+ */
13
+ export class Aggregate extends PhysicalMaterial {
14
+ /** @internal */
15
+ static get className() { return "Aggregate"; }
16
+ constructor(props, iModel) { super(props, iModel); }
17
+ }
18
+ /** Aluminum is a bis:PhysicalMaterial representing aluminum (atomic symbol Al) or one of its alloys.
19
+ * @public
20
+ */
21
+ export class Aluminum extends PhysicalMaterial {
22
+ /** @internal */
23
+ static get className() { return "Aluminum"; }
24
+ constructor(props, iModel) { super(props, iModel); }
25
+ }
26
+ /** Asphalt is a bis:PhysicalMaterial representing a mixture of a bituminous binder and aggregates. Asphalt is typically used for roadway surfacing.
27
+ * @public
28
+ */
29
+ export class Asphalt extends PhysicalMaterial {
30
+ /** @internal */
31
+ static get className() { return "Asphalt"; }
32
+ constructor(props, iModel) { super(props, iModel); }
33
+ }
34
+ /** Concrete is a bis:PhysicalMaterial representing a mixture of hydraulic cement, aggregates, water and optionally other materials.
35
+ * @public
36
+ */
37
+ export class Concrete extends PhysicalMaterial {
38
+ /** @internal */
39
+ static get className() { return "Concrete"; }
40
+ constructor(props, iModel) { super(props, iModel); }
41
+ }
42
+ /** Steel is a bis:PhysicalMaterial representing an alloy of iron, carbon and other elements.
43
+ * @public
44
+ */
45
+ export class Steel extends PhysicalMaterial {
46
+ /** @internal */
47
+ static get className() { return "Steel"; }
48
+ constructor(props, iModel) { super(props, iModel); }
49
+ }
50
+ //# sourceMappingURL=PhysicalMaterialElements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PhysicalMaterialElements.js","sourceRoot":"","sources":["../../src/PhysicalMaterialElements.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAY,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGjE;;;GAGG;AACH,MAAM,OAAO,SAAU,SAAQ,gBAAgB;IAC7C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,WAAW,CAAC,CAAC,CAAC;IACtE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAED;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,gBAAgB;IAC5C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,UAAU,CAAC,CAAC,CAAC;IACrE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAED;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,gBAAgB;IAC3C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,SAAS,CAAC,CAAC,CAAC;IACpE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAED;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,gBAAgB;IAC5C,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,UAAU,CAAC,CAAC,CAAC;IACrE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F;AAED;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,gBAAgB;IACzC,gBAAgB;IACT,MAAM,KAAc,SAAS,KAAa,OAAO,OAAO,CAAC,CAAC,CAAC;IAClE,YAAmB,KAA6B,EAAE,MAAgB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC9F","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PhysicalMaterial\n */\n\nimport { IModelDb, PhysicalMaterial } from \"@itwin/core-backend\";\nimport { DefinitionElementProps } from \"@itwin/core-common\";\n\n/** Aggregate is a bis:PhysicalMaterial representing a broad category of coarse to medium grained particulate material typically used in construction as\n * well as base material under foundations, roadways, and railways.\n * @public\n */\nexport class Aggregate extends PhysicalMaterial {\n /** @internal */\n public static override get className(): string { return \"Aggregate\"; }\n public constructor(props: DefinitionElementProps, iModel: IModelDb) { super(props, iModel); }\n}\n\n/** Aluminum is a bis:PhysicalMaterial representing aluminum (atomic symbol Al) or one of its alloys.\n * @public\n */\nexport class Aluminum extends PhysicalMaterial {\n /** @internal */\n public static override get className(): string { return \"Aluminum\"; }\n public constructor(props: DefinitionElementProps, iModel: IModelDb) { super(props, iModel); }\n}\n\n/** Asphalt is a bis:PhysicalMaterial representing a mixture of a bituminous binder and aggregates. Asphalt is typically used for roadway surfacing.\n * @public\n */\nexport class Asphalt extends PhysicalMaterial {\n /** @internal */\n public static override get className(): string { return \"Asphalt\"; }\n public constructor(props: DefinitionElementProps, iModel: IModelDb) { super(props, iModel); }\n}\n\n/** Concrete is a bis:PhysicalMaterial representing a mixture of hydraulic cement, aggregates, water and optionally other materials.\n * @public\n */\nexport class Concrete extends PhysicalMaterial {\n /** @internal */\n public static override get className(): string { return \"Concrete\"; }\n public constructor(props: DefinitionElementProps, iModel: IModelDb) { super(props, iModel); }\n}\n\n/** Steel is a bis:PhysicalMaterial representing an alloy of iron, carbon and other elements.\n * @public\n */\nexport class Steel extends PhysicalMaterial {\n /** @internal */\n public static override get className(): string { return \"Steel\"; }\n public constructor(props: DefinitionElementProps, iModel: IModelDb) { super(props, iModel); }\n}\n"]}
@@ -0,0 +1,15 @@
1
+ /** @packageDocumentation
2
+ * @module PhysicalMaterial
3
+ */
4
+ import { Schema } from "@itwin/core-backend";
5
+ /** The PhysicalMaterialSchema contains standard physical material classes.
6
+ * A physical material defines the matter that makes up physical elements.
7
+ * @see [PhysicalMaterial]($backend)
8
+ * @public
9
+ */
10
+ export declare class PhysicalMaterialSchema extends Schema {
11
+ static get schemaName(): string;
12
+ static get schemaFilePath(): string;
13
+ static registerSchema(): void;
14
+ }
15
+ //# sourceMappingURL=PhysicalMaterialSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PhysicalMaterialSchema.d.ts","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAiC,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAGrF;;;;GAIG;AACH,qBAAa,sBAAuB,SAAQ,MAAM;IAChD,WAA2B,UAAU,IAAI,MAAM,CAA+B;IAC9E,WAAkB,cAAc,IAAI,MAAM,CAAkI;WAE9J,cAAc;CAO7B"}
@@ -0,0 +1,27 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ /** @packageDocumentation
6
+ * @module PhysicalMaterial
7
+ */
8
+ import * as path from "path";
9
+ import { ClassRegistry, KnownLocations, Schema, Schemas } from "@itwin/core-backend";
10
+ import * as elementsModule from "./PhysicalMaterialElements.js";
11
+ /** The PhysicalMaterialSchema contains standard physical material classes.
12
+ * A physical material defines the matter that makes up physical elements.
13
+ * @see [PhysicalMaterial]($backend)
14
+ * @public
15
+ */
16
+ export class PhysicalMaterialSchema extends Schema {
17
+ static get schemaName() { return "PhysicalMaterial"; }
18
+ static get schemaFilePath() { return path.join(KnownLocations.nativeAssetsDir, "ECSchemas", "Domain", `${PhysicalMaterialSchema.schemaName}.ecschema.xml`); }
19
+ static registerSchema() {
20
+ if (this !== Schemas.getRegisteredSchema(this.schemaName)) {
21
+ Schemas.unregisterSchema(this.schemaName);
22
+ Schemas.registerSchema(this);
23
+ ClassRegistry.registerModule(elementsModule, this);
24
+ }
25
+ }
26
+ }
27
+ //# sourceMappingURL=PhysicalMaterialSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PhysicalMaterialSchema.js","sourceRoot":"","sources":["../../src/PhysicalMaterialSchema.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,KAAK,cAAc,MAAM,+BAA+B,CAAC;AAEhE;;;;GAIG;AACH,MAAM,OAAO,sBAAuB,SAAQ,MAAM;IACzC,MAAM,KAAc,UAAU,KAAa,OAAO,kBAAkB,CAAC,CAAC,CAAC;IACvE,MAAM,KAAK,cAAc,KAAa,OAAO,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,sBAAsB,CAAC,UAAU,eAAe,CAAC,CAAC,CAAC,CAAC;IAErK,MAAM,CAAC,cAAc;QAC1B,IAAI,IAAI,KAAK,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAC1D,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC1C,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YAC7B,aAAa,CAAC,cAAc,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module PhysicalMaterial\n */\n\nimport * as path from \"path\";\nimport { ClassRegistry, KnownLocations, Schema, Schemas } from \"@itwin/core-backend\";\nimport * as elementsModule from \"./PhysicalMaterialElements.js\";\n\n/** The PhysicalMaterialSchema contains standard physical material classes.\n * A physical material defines the matter that makes up physical elements.\n * @see [PhysicalMaterial]($backend)\n * @public\n */\nexport class PhysicalMaterialSchema extends Schema {\n public static override get schemaName(): string { return \"PhysicalMaterial\"; }\n public static get schemaFilePath(): string { return path.join(KnownLocations.nativeAssetsDir, \"ECSchemas\", \"Domain\", `${PhysicalMaterialSchema.schemaName}.ecschema.xml`); }\n\n public static registerSchema() {\n if (this !== Schemas.getRegisteredSchema(this.schemaName)) {\n Schemas.unregisterSchema(this.schemaName);\n Schemas.registerSchema(this);\n ClassRegistry.registerModule(elementsModule, this);\n }\n }\n}\n"]}
@@ -0,0 +1,9 @@
1
+ export * from "./PhysicalMaterialElements.js";
2
+ export * from "./PhysicalMaterialSchema.js";
3
+ /** @docs-package-description
4
+ * The `@itwin/physical-material-backend` package contains classes related to working with physical materials on the backend.
5
+ */
6
+ /** @docs-group-description PhysicalMaterial
7
+ * A PhysicalMaterial defines the matter that makes up physical elements.
8
+ */
9
+ //# sourceMappingURL=physical-material-backend.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"physical-material-backend.d.ts","sourceRoot":"","sources":["../../src/physical-material-backend.ts"],"names":[],"mappings":"AAKA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAE5C;;GAEG;AAEH;;GAEG"}
@@ -0,0 +1,13 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ export * from "./PhysicalMaterialElements.js";
6
+ export * from "./PhysicalMaterialSchema.js";
7
+ /** @docs-package-description
8
+ * The `@itwin/physical-material-backend` package contains classes related to working with physical materials on the backend.
9
+ */
10
+ /** @docs-group-description PhysicalMaterial
11
+ * A PhysicalMaterial defines the matter that makes up physical elements.
12
+ */
13
+ //# sourceMappingURL=physical-material-backend.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"physical-material-backend.js","sourceRoot":"","sources":["../../src/physical-material-backend.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAE5C;;GAEG;AAEH;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nexport * from \"./PhysicalMaterialElements.js\";\nexport * from \"./PhysicalMaterialSchema.js\";\n\n/** @docs-package-description\n * The `@itwin/physical-material-backend` package contains classes related to working with physical materials on the backend.\n */\n\n/** @docs-group-description PhysicalMaterial\n * A PhysicalMaterial defines the matter that makes up physical elements.\n */\n"]}
package/package.json CHANGED
@@ -1,8 +1,16 @@
1
1
  {
2
2
  "name": "@itwin/physical-material-backend",
3
- "version": "5.0.0-dev.90",
3
+ "version": "5.0.0-dev.93",
4
4
  "main": "lib/cjs/physical-material-backend.js",
5
+ "module": "lib/esm/physical-material-backend.js",
5
6
  "typings": "lib/cjs/physical-material-backend",
7
+ "type": "module",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./lib/esm/physical-material-backend.js",
11
+ "require": "./lib/cjs/physical-material-backend.js"
12
+ }
13
+ },
6
14
  "license": "MIT",
7
15
  "engines": {
8
16
  "node": "^20.0.0 || ^22.0.0"
@@ -22,9 +30,9 @@
22
30
  "url": "http://www.bentley.com"
23
31
  },
24
32
  "peerDependencies": {
25
- "@itwin/core-backend": "5.0.0-dev.90",
26
- "@itwin/core-bentley": "5.0.0-dev.90",
27
- "@itwin/core-common": "5.0.0-dev.90"
33
+ "@itwin/core-backend": "5.0.0-dev.93",
34
+ "@itwin/core-bentley": "5.0.0-dev.93",
35
+ "@itwin/core-common": "5.0.0-dev.93"
28
36
  },
29
37
  "//devDependencies": [
30
38
  "NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install",
@@ -42,10 +50,11 @@
42
50
  "nyc": "^17.1.0",
43
51
  "rimraf": "^6.0.1",
44
52
  "typescript": "~5.6.2",
45
- "@itwin/core-backend": "5.0.0-dev.90",
46
- "@itwin/build-tools": "5.0.0-dev.90",
47
- "@itwin/core-common": "5.0.0-dev.90",
48
- "@itwin/core-bentley": "5.0.0-dev.90"
53
+ "@itwin/build-tools": "5.0.0-dev.93",
54
+ "@itwin/core-bentley": "5.0.0-dev.93",
55
+ "@itwin/core-common": "5.0.0-dev.93",
56
+ "@itwin/core-backend": "5.0.0-dev.93",
57
+ "internal-tools": "3.0.0-dev.69"
49
58
  },
50
59
  "TODO-dependencies": {
51
60
  "@bentley/physicalmaterial-schema": "~1.0.1"
@@ -54,8 +63,9 @@
54
63
  "extends": "./node_modules/@itwin/build-tools/.nycrc"
55
64
  },
56
65
  "scripts": {
57
- "build": "npm run -s build:cjs",
58
- "build:cjs": "tsc 1>&2 --outDir lib/cjs",
66
+ "build": "npm run -s build:cjs && npm run -s build:esm",
67
+ "build:cjs": "internal-tools build-cjs",
68
+ "build:esm": "tsc 1>&2 --outDir lib/esm",
59
69
  "clean": "rimraf -g lib .rush/temp/package-deps*.json",
60
70
  "cover": "nyc npm -s test",
61
71
  "docs": "betools docs --json=../../../generated-docs/domains/physical-material-backend/file.json --tsIndexFile=./physical-material-backend.ts --onlyJson",