@itwin/ecschema-metadata 3.6.0-dev.11 → 3.6.0-dev.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -1
- package/lib/cjs/Constants.d.ts +23 -23
- package/lib/cjs/Constants.js +33 -33
- package/lib/cjs/Constants.js.map +1 -1
- package/lib/cjs/Context.d.ts +139 -139
- package/lib/cjs/Context.js +204 -204
- package/lib/cjs/DelayedPromise.d.ts +88 -88
- package/lib/cjs/DelayedPromise.js +91 -91
- package/lib/cjs/DelayedPromise.js.map +1 -1
- package/lib/cjs/Deserialization/AbstractParser.d.ts +45 -45
- package/lib/cjs/Deserialization/AbstractParser.js +11 -11
- package/lib/cjs/Deserialization/AbstractParser.js.map +1 -1
- package/lib/cjs/Deserialization/Helper.d.ts +251 -251
- package/lib/cjs/Deserialization/Helper.js +843 -843
- package/lib/cjs/Deserialization/Helper.js.map +1 -1
- package/lib/cjs/Deserialization/JsonParser.d.ts +165 -165
- package/lib/cjs/Deserialization/JsonParser.js +680 -680
- package/lib/cjs/Deserialization/JsonParser.js.map +1 -1
- package/lib/cjs/Deserialization/JsonProps.d.ts +282 -282
- package/lib/cjs/Deserialization/JsonProps.js +9 -9
- package/lib/cjs/Deserialization/JsonProps.js.map +1 -1
- package/lib/cjs/Deserialization/SchemaGraphUtil.d.ts +34 -34
- package/lib/cjs/Deserialization/SchemaGraphUtil.js +77 -77
- package/lib/cjs/Deserialization/SchemaGraphUtil.js.map +1 -1
- package/lib/cjs/Deserialization/XmlParser.d.ts +85 -85
- package/lib/cjs/Deserialization/XmlParser.js +973 -973
- package/lib/cjs/Deserialization/XmlParser.js.map +1 -1
- package/lib/cjs/Deserialization/XmlSerializationUtils.d.ts +54 -54
- package/lib/cjs/Deserialization/XmlSerializationUtils.js +174 -174
- package/lib/cjs/Deserialization/XmlSerializationUtils.js.map +1 -1
- package/lib/cjs/ECName.d.ts +30 -30
- package/lib/cjs/ECName.js +85 -85
- package/lib/cjs/ECName.js.map +1 -1
- package/lib/cjs/ECObjects.d.ts +162 -162
- package/lib/cjs/ECObjects.js +453 -453
- package/lib/cjs/ECObjects.js.map +1 -1
- package/lib/cjs/Exception.d.ts +43 -43
- package/lib/cjs/Exception.js +86 -86
- package/lib/cjs/Exception.js.map +1 -1
- package/lib/cjs/Interfaces.d.ts +66 -66
- package/lib/cjs/Interfaces.js +9 -9
- package/lib/cjs/Interfaces.js.map +1 -1
- package/lib/cjs/Metadata/Class.d.ts +243 -243
- package/lib/cjs/Metadata/Class.js +558 -558
- package/lib/cjs/Metadata/Class.js.map +1 -1
- package/lib/cjs/Metadata/Constant.d.ts +64 -64
- package/lib/cjs/Metadata/Constant.js +123 -123
- package/lib/cjs/Metadata/Constant.js.map +1 -1
- package/lib/cjs/Metadata/CustomAttribute.d.ts +23 -23
- package/lib/cjs/Metadata/CustomAttribute.js +27 -27
- package/lib/cjs/Metadata/CustomAttribute.js.map +1 -1
- package/lib/cjs/Metadata/CustomAttributeClass.d.ts +39 -39
- package/lib/cjs/Metadata/CustomAttributeClass.js +68 -68
- package/lib/cjs/Metadata/CustomAttributeClass.js.map +1 -1
- package/lib/cjs/Metadata/EntityClass.d.ts +77 -77
- package/lib/cjs/Metadata/EntityClass.js +230 -230
- package/lib/cjs/Metadata/EntityClass.js.map +1 -1
- package/lib/cjs/Metadata/Enumeration.d.ts +86 -86
- package/lib/cjs/Metadata/Enumeration.js +159 -159
- package/lib/cjs/Metadata/Enumeration.js.map +1 -1
- package/lib/cjs/Metadata/Format.d.ts +98 -98
- package/lib/cjs/Metadata/Format.js +242 -242
- package/lib/cjs/Metadata/Format.js.map +1 -1
- package/lib/cjs/Metadata/InvertedUnit.d.ts +49 -49
- package/lib/cjs/Metadata/InvertedUnit.js +97 -97
- package/lib/cjs/Metadata/InvertedUnit.js.map +1 -1
- package/lib/cjs/Metadata/KindOfQuantity.d.ts +65 -65
- package/lib/cjs/Metadata/KindOfQuantity.js +225 -225
- package/lib/cjs/Metadata/KindOfQuantity.js.map +1 -1
- package/lib/cjs/Metadata/Mixin.d.ts +54 -54
- package/lib/cjs/Metadata/Mixin.js +113 -113
- package/lib/cjs/Metadata/Mixin.js.map +1 -1
- package/lib/cjs/Metadata/OverrideFormat.d.ts +55 -55
- package/lib/cjs/Metadata/OverrideFormat.js +88 -88
- package/lib/cjs/Metadata/OverrideFormat.js.map +1 -1
- package/lib/cjs/Metadata/Phenomenon.d.ts +33 -33
- package/lib/cjs/Metadata/Phenomenon.js +59 -59
- package/lib/cjs/Metadata/Phenomenon.js.map +1 -1
- package/lib/cjs/Metadata/Property.d.ts +197 -197
- package/lib/cjs/Metadata/Property.js +491 -491
- package/lib/cjs/Metadata/Property.js.map +1 -1
- package/lib/cjs/Metadata/PropertyCategory.d.ts +39 -39
- package/lib/cjs/Metadata/PropertyCategory.js +61 -61
- package/lib/cjs/Metadata/PropertyCategory.js.map +1 -1
- package/lib/cjs/Metadata/RelationshipClass.d.ts +152 -152
- package/lib/cjs/Metadata/RelationshipClass.js +349 -349
- package/lib/cjs/Metadata/RelationshipClass.js.map +1 -1
- package/lib/cjs/Metadata/Schema.d.ts +291 -291
- package/lib/cjs/Metadata/Schema.js +520 -520
- package/lib/cjs/Metadata/Schema.js.map +1 -1
- package/lib/cjs/Metadata/SchemaItem.d.ts +61 -61
- package/lib/cjs/Metadata/SchemaItem.js +136 -136
- package/lib/cjs/Metadata/SchemaItem.js.map +1 -1
- package/lib/cjs/Metadata/Unit.d.ts +76 -76
- package/lib/cjs/Metadata/Unit.js +162 -162
- package/lib/cjs/Metadata/UnitSystem.d.ts +20 -20
- package/lib/cjs/Metadata/UnitSystem.js +29 -29
- package/lib/cjs/Metadata/UnitSystem.js.map +1 -1
- package/lib/cjs/PropertyTypes.d.ts +49 -49
- package/lib/cjs/PropertyTypes.js +91 -91
- package/lib/cjs/PropertyTypes.js.map +1 -1
- package/lib/cjs/SchemaJsonLocater.d.ts +34 -34
- package/lib/cjs/SchemaJsonLocater.js +42 -42
- package/lib/cjs/SchemaJsonLocater.js.map +1 -1
- package/lib/cjs/SchemaKey.d.ts +110 -110
- package/lib/cjs/SchemaKey.js +219 -219
- package/lib/cjs/SchemaKey.js.map +1 -1
- package/lib/cjs/SchemaLoader.d.ts +23 -23
- package/lib/cjs/SchemaLoader.js +47 -47
- package/lib/cjs/SchemaLoader.js.map +1 -1
- package/lib/cjs/SchemaPartVisitorDelegate.d.ts +274 -274
- package/lib/cjs/SchemaPartVisitorDelegate.js +212 -212
- package/lib/cjs/SchemaPartVisitorDelegate.js.map +1 -1
- package/lib/cjs/UnitConversion/Graph.d.ts +34 -34
- package/lib/cjs/UnitConversion/Graph.js +83 -83
- package/lib/cjs/UnitConversion/Graph.js.map +1 -1
- package/lib/cjs/UnitConversion/Parser.d.ts +8 -8
- package/lib/cjs/UnitConversion/Parser.js +42 -42
- package/lib/cjs/UnitConversion/Parser.js.map +1 -1
- package/lib/cjs/UnitConversion/UnitConversion.d.ts +45 -45
- package/lib/cjs/UnitConversion/UnitConversion.js +77 -77
- package/lib/cjs/UnitConversion/UnitConversion.js.map +1 -1
- package/lib/cjs/UnitConversion/UnitConverter.d.ts +39 -39
- package/lib/cjs/UnitConversion/UnitConverter.js +116 -116
- package/lib/cjs/UnitConversion/UnitConverter.js.map +1 -1
- package/lib/cjs/UnitConversion/UnitTree.d.ts +43 -43
- package/lib/cjs/UnitConversion/UnitTree.js +169 -169
- package/lib/cjs/UnitConversion/UnitTree.js.map +1 -1
- package/lib/cjs/UnitProvider/SchemaUnitProvider.d.ts +77 -77
- package/lib/cjs/UnitProvider/SchemaUnitProvider.js +236 -236
- package/lib/cjs/UnitProvider/SchemaUnitProvider.js.map +1 -1
- package/lib/cjs/Validation/SchemaWalker.d.ts +23 -23
- package/lib/cjs/Validation/SchemaWalker.js +53 -53
- package/lib/cjs/Validation/SchemaWalker.js.map +1 -1
- package/lib/cjs/ecschema-metadata.d.ts +51 -51
- package/lib/cjs/ecschema-metadata.js +96 -96
- package/lib/cjs/ecschema-metadata.js.map +1 -1
- package/lib/cjs/utils/SchemaGraph.d.ts +25 -25
- package/lib/cjs/utils/SchemaGraph.js +65 -65
- package/lib/cjs/utils/SchemaGraph.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Metadata
|
|
3
|
-
*/
|
|
4
|
-
import { FormatProps } from "../Deserialization/JsonProps";
|
|
5
|
-
import { SchemaItemType } from "../ECObjects";
|
|
6
|
-
import { BaseFormat, DecimalPrecision, FormatTraits, FormatType, FractionalPrecision, ScientificType, ShowSignOption } from "@itwin/core-quantity";
|
|
7
|
-
import { InvertedUnit } from "./InvertedUnit";
|
|
8
|
-
import { Schema } from "./Schema";
|
|
9
|
-
import { SchemaItem } from "./SchemaItem";
|
|
10
|
-
import { Unit } from "./Unit";
|
|
11
|
-
/**
|
|
12
|
-
* @beta
|
|
13
|
-
*/
|
|
14
|
-
export declare class Format extends SchemaItem {
|
|
15
|
-
readonly schemaItemType: SchemaItemType.Format;
|
|
16
|
-
protected _base: BaseFormat;
|
|
17
|
-
protected _units?: Array<[Unit | InvertedUnit, string | undefined]>;
|
|
18
|
-
constructor(schema: Schema, name: string);
|
|
19
|
-
get roundFactor(): number;
|
|
20
|
-
get type(): FormatType;
|
|
21
|
-
get precision(): DecimalPrecision | FractionalPrecision;
|
|
22
|
-
get minWidth(): number | undefined;
|
|
23
|
-
get scientificType(): ScientificType | undefined;
|
|
24
|
-
get showSignOption(): ShowSignOption;
|
|
25
|
-
get decimalSeparator(): string;
|
|
26
|
-
get thousandSeparator(): string;
|
|
27
|
-
get uomSeparator(): string;
|
|
28
|
-
get stationSeparator(): string;
|
|
29
|
-
get stationOffsetSize(): number | undefined;
|
|
30
|
-
get formatTraits(): FormatTraits;
|
|
31
|
-
get spacer(): string | undefined;
|
|
32
|
-
get includeZero(): boolean | undefined;
|
|
33
|
-
get units(): Array<[Unit | InvertedUnit, string | undefined]> | undefined;
|
|
34
|
-
private parseFormatTraits;
|
|
35
|
-
hasFormatTrait(formatTrait: FormatTraits): boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Adds a Unit, or InvertedUnit, with an optional label override.
|
|
38
|
-
* @param unit The Unit, or InvertedUnit, to add to this Format.
|
|
39
|
-
* @param label A label that overrides the label defined within the Unit when a value is formatted.
|
|
40
|
-
*/
|
|
41
|
-
protected addUnit(unit: Unit | InvertedUnit, label?: string): void;
|
|
42
|
-
protected setPrecision(precision: number): void;
|
|
43
|
-
private typecheck;
|
|
44
|
-
fromJSONSync(formatProps: FormatProps): void;
|
|
45
|
-
fromJSON(formatProps: FormatProps): Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
* Save this Format's properties to an object for serializing to JSON.
|
|
48
|
-
* @param standalone Serialization includes only this object (as opposed to the full schema).
|
|
49
|
-
* @param includeSchemaVersion Include the Schema's version information in the serialized object.
|
|
50
|
-
*/
|
|
51
|
-
toJSON(standalone?: boolean, includeSchemaVersion?: boolean): FormatProps;
|
|
52
|
-
/** @internal */
|
|
53
|
-
toXml(schemaXml: Document): Promise<Element>;
|
|
54
|
-
/**
|
|
55
|
-
* @alpha Used in schema editing.
|
|
56
|
-
*/
|
|
57
|
-
protected setFormatType(formatType: FormatType): void;
|
|
58
|
-
/**
|
|
59
|
-
* @alpha Used in schema editing.
|
|
60
|
-
*/
|
|
61
|
-
protected setRoundFactor(roundFactor: number): void;
|
|
62
|
-
/**
|
|
63
|
-
* @alpha Used in schema editing.
|
|
64
|
-
*/
|
|
65
|
-
protected setShowSignOption(signOption: ShowSignOption): void;
|
|
66
|
-
/**
|
|
67
|
-
* @alpha Used in schema editing.
|
|
68
|
-
*/
|
|
69
|
-
protected setDecimalSeparator(separator: string): void;
|
|
70
|
-
/**
|
|
71
|
-
* @alpha Used in schema editing.
|
|
72
|
-
*/
|
|
73
|
-
protected setThousandSeparator(separator: string): void;
|
|
74
|
-
/**
|
|
75
|
-
* @alpha Used in schema editing.
|
|
76
|
-
*/
|
|
77
|
-
protected setUomSeparator(separator: string): void;
|
|
78
|
-
/**
|
|
79
|
-
* @alpha Used in schema editing.
|
|
80
|
-
*/
|
|
81
|
-
protected setStationSeparator(separator: string): void;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* @internal
|
|
85
|
-
* An abstract class used for schema editing.
|
|
86
|
-
*/
|
|
87
|
-
export declare abstract class MutableFormat extends Format {
|
|
88
|
-
abstract addUnit(unit: Unit | InvertedUnit, label?: string): void;
|
|
89
|
-
abstract setPrecision(precision: number): void;
|
|
90
|
-
abstract setFormatType(formatType: FormatType): void;
|
|
91
|
-
abstract setRoundFactor(roundFactor: number): void;
|
|
92
|
-
abstract setShowSignOption(signOption: ShowSignOption): void;
|
|
93
|
-
abstract setDecimalSeparator(separator: string): void;
|
|
94
|
-
abstract setThousandSeparator(separator: string): void;
|
|
95
|
-
abstract setUomSeparator(separator: string): void;
|
|
96
|
-
abstract setStationSeparator(separator: string): void;
|
|
97
|
-
abstract setDisplayLabel(displayLabel: string): void;
|
|
98
|
-
}
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Metadata
|
|
3
|
+
*/
|
|
4
|
+
import { FormatProps } from "../Deserialization/JsonProps";
|
|
5
|
+
import { SchemaItemType } from "../ECObjects";
|
|
6
|
+
import { BaseFormat, DecimalPrecision, FormatTraits, FormatType, FractionalPrecision, ScientificType, ShowSignOption } from "@itwin/core-quantity";
|
|
7
|
+
import { InvertedUnit } from "./InvertedUnit";
|
|
8
|
+
import { Schema } from "./Schema";
|
|
9
|
+
import { SchemaItem } from "./SchemaItem";
|
|
10
|
+
import { Unit } from "./Unit";
|
|
11
|
+
/**
|
|
12
|
+
* @beta
|
|
13
|
+
*/
|
|
14
|
+
export declare class Format extends SchemaItem {
|
|
15
|
+
readonly schemaItemType: SchemaItemType.Format;
|
|
16
|
+
protected _base: BaseFormat;
|
|
17
|
+
protected _units?: Array<[Unit | InvertedUnit, string | undefined]>;
|
|
18
|
+
constructor(schema: Schema, name: string);
|
|
19
|
+
get roundFactor(): number;
|
|
20
|
+
get type(): FormatType;
|
|
21
|
+
get precision(): DecimalPrecision | FractionalPrecision;
|
|
22
|
+
get minWidth(): number | undefined;
|
|
23
|
+
get scientificType(): ScientificType | undefined;
|
|
24
|
+
get showSignOption(): ShowSignOption;
|
|
25
|
+
get decimalSeparator(): string;
|
|
26
|
+
get thousandSeparator(): string;
|
|
27
|
+
get uomSeparator(): string;
|
|
28
|
+
get stationSeparator(): string;
|
|
29
|
+
get stationOffsetSize(): number | undefined;
|
|
30
|
+
get formatTraits(): FormatTraits;
|
|
31
|
+
get spacer(): string | undefined;
|
|
32
|
+
get includeZero(): boolean | undefined;
|
|
33
|
+
get units(): Array<[Unit | InvertedUnit, string | undefined]> | undefined;
|
|
34
|
+
private parseFormatTraits;
|
|
35
|
+
hasFormatTrait(formatTrait: FormatTraits): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Adds a Unit, or InvertedUnit, with an optional label override.
|
|
38
|
+
* @param unit The Unit, or InvertedUnit, to add to this Format.
|
|
39
|
+
* @param label A label that overrides the label defined within the Unit when a value is formatted.
|
|
40
|
+
*/
|
|
41
|
+
protected addUnit(unit: Unit | InvertedUnit, label?: string): void;
|
|
42
|
+
protected setPrecision(precision: number): void;
|
|
43
|
+
private typecheck;
|
|
44
|
+
fromJSONSync(formatProps: FormatProps): void;
|
|
45
|
+
fromJSON(formatProps: FormatProps): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Save this Format's properties to an object for serializing to JSON.
|
|
48
|
+
* @param standalone Serialization includes only this object (as opposed to the full schema).
|
|
49
|
+
* @param includeSchemaVersion Include the Schema's version information in the serialized object.
|
|
50
|
+
*/
|
|
51
|
+
toJSON(standalone?: boolean, includeSchemaVersion?: boolean): FormatProps;
|
|
52
|
+
/** @internal */
|
|
53
|
+
toXml(schemaXml: Document): Promise<Element>;
|
|
54
|
+
/**
|
|
55
|
+
* @alpha Used in schema editing.
|
|
56
|
+
*/
|
|
57
|
+
protected setFormatType(formatType: FormatType): void;
|
|
58
|
+
/**
|
|
59
|
+
* @alpha Used in schema editing.
|
|
60
|
+
*/
|
|
61
|
+
protected setRoundFactor(roundFactor: number): void;
|
|
62
|
+
/**
|
|
63
|
+
* @alpha Used in schema editing.
|
|
64
|
+
*/
|
|
65
|
+
protected setShowSignOption(signOption: ShowSignOption): void;
|
|
66
|
+
/**
|
|
67
|
+
* @alpha Used in schema editing.
|
|
68
|
+
*/
|
|
69
|
+
protected setDecimalSeparator(separator: string): void;
|
|
70
|
+
/**
|
|
71
|
+
* @alpha Used in schema editing.
|
|
72
|
+
*/
|
|
73
|
+
protected setThousandSeparator(separator: string): void;
|
|
74
|
+
/**
|
|
75
|
+
* @alpha Used in schema editing.
|
|
76
|
+
*/
|
|
77
|
+
protected setUomSeparator(separator: string): void;
|
|
78
|
+
/**
|
|
79
|
+
* @alpha Used in schema editing.
|
|
80
|
+
*/
|
|
81
|
+
protected setStationSeparator(separator: string): void;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
* An abstract class used for schema editing.
|
|
86
|
+
*/
|
|
87
|
+
export declare abstract class MutableFormat extends Format {
|
|
88
|
+
abstract addUnit(unit: Unit | InvertedUnit, label?: string): void;
|
|
89
|
+
abstract setPrecision(precision: number): void;
|
|
90
|
+
abstract setFormatType(formatType: FormatType): void;
|
|
91
|
+
abstract setRoundFactor(roundFactor: number): void;
|
|
92
|
+
abstract setShowSignOption(signOption: ShowSignOption): void;
|
|
93
|
+
abstract setDecimalSeparator(separator: string): void;
|
|
94
|
+
abstract setThousandSeparator(separator: string): void;
|
|
95
|
+
abstract setUomSeparator(separator: string): void;
|
|
96
|
+
abstract setStationSeparator(separator: string): void;
|
|
97
|
+
abstract setDisplayLabel(displayLabel: string): void;
|
|
98
|
+
}
|
|
99
99
|
//# sourceMappingURL=Format.d.ts.map
|