@itwin/core-quantity 3.1.0-dev.8 → 3.2.0-dev.3

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/lib/cjs/Exception.d.ts.map +1 -1
  3. package/lib/cjs/Exception.js +1 -0
  4. package/lib/cjs/Exception.js.map +1 -1
  5. package/lib/cjs/Formatter/Format.d.ts +37 -41
  6. package/lib/cjs/Formatter/Format.d.ts.map +1 -1
  7. package/lib/cjs/Formatter/Format.js +117 -341
  8. package/lib/cjs/Formatter/Format.js.map +1 -1
  9. package/lib/cjs/Formatter/FormatEnums.d.ts +46 -1
  10. package/lib/cjs/Formatter/FormatEnums.d.ts.map +1 -1
  11. package/lib/cjs/Formatter/FormatEnums.js +219 -2
  12. package/lib/cjs/Formatter/FormatEnums.js.map +1 -1
  13. package/lib/cjs/Formatter/FormatterSpec.js +1 -1
  14. package/lib/cjs/Formatter/FormatterSpec.js.map +1 -1
  15. package/lib/cjs/Interfaces.d.ts +9 -1
  16. package/lib/cjs/Interfaces.d.ts.map +1 -1
  17. package/lib/cjs/Interfaces.js.map +1 -1
  18. package/lib/esm/Exception.d.ts.map +1 -1
  19. package/lib/esm/Exception.js +2 -1
  20. package/lib/esm/Exception.js.map +1 -1
  21. package/lib/esm/Formatter/Format.d.ts +37 -41
  22. package/lib/esm/Formatter/Format.d.ts.map +1 -1
  23. package/lib/esm/Formatter/Format.js +116 -341
  24. package/lib/esm/Formatter/Format.js.map +1 -1
  25. package/lib/esm/Formatter/FormatEnums.d.ts +46 -1
  26. package/lib/esm/Formatter/FormatEnums.d.ts.map +1 -1
  27. package/lib/esm/Formatter/FormatEnums.js +205 -1
  28. package/lib/esm/Formatter/FormatEnums.js.map +1 -1
  29. package/lib/esm/Formatter/FormatterSpec.js +1 -1
  30. package/lib/esm/Formatter/FormatterSpec.js.map +1 -1
  31. package/lib/esm/Interfaces.d.ts +9 -1
  32. package/lib/esm/Interfaces.d.ts.map +1 -1
  33. package/lib/esm/Interfaces.js.map +1 -1
  34. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,6 +1,22 @@
1
1
  # Change Log - @itwin/core-quantity
2
2
 
3
- This log was last generated on Wed, 12 Jan 2022 14:52:38 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 24 Feb 2022 15:26:55 GMT and should not be manually modified.
4
+
5
+ ## 3.0.1
6
+ Thu, 24 Feb 2022 15:26:55 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 3.0.0
11
+ Mon, 24 Jan 2022 14:00:52 GMT
12
+
13
+ ### Updates
14
+
15
+ - Remove alternateLabels from UnitProps and require them to be provided via AlternateUnitLabelsProvider
16
+ - Upgrade target to ES2019 and deliver both a CommonJs and ESModule version of package
17
+ - use new @itwin package names
18
+ - rename to @itwin/core-quantity
19
+ - Added `UnitSystemKey` to identify different unit systems.
4
20
 
5
21
  ## 2.19.28
6
22
  Wed, 12 Jan 2022 14:52:38 GMT
@@ -1 +1 @@
1
- {"version":3,"file":"Exception.d.ts","sourceRoot":"","sources":["../../src/Exception.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD;;;GAGG;AACH,oBAAY,cAAc;IACxB,mBAAmB,QAAS;IAC5B,OAAO,IAAI;IACX,WAAW,QAA0B;IACrC,sBAAsB,QAA0B;IAChD,2BAA2B,QAA0B;IACrD,0BAA0B,QAA0B;IACpD,8BAA8B,QAA0B;IACxD,WAAW,QAA0B;IACrC,oCAAoC,QAA0B;CAC/D;AAED;;GAEG;AACH,qBAAa,aAAc,SAAQ,YAAY;aACD,WAAW,EAAE,MAAM;gBAAnB,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAGlF"}
1
+ {"version":3,"file":"Exception.d.ts","sourceRoot":"","sources":["../../src/Exception.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAU,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;;GAGG;AACH,oBAAY,cAAc;IACxB,mBAAmB,QAAS;IAC5B,OAAO,IAAI;IACX,WAAW,QAA0B;IACrC,sBAAsB,QAA0B;IAChD,2BAA2B,QAA0B;IACrD,0BAA0B,QAA0B;IACpD,8BAA8B,QAA0B;IACxD,WAAW,QAA0B;IACrC,oCAAoC,QAA0B;CAC/D;AAED;;GAEG;AACH,qBAAa,aAAc,SAAQ,YAAY;aACD,WAAW,EAAE,MAAM;gBAAnB,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAIlF"}
@@ -32,6 +32,7 @@ class QuantityError extends core_bentley_1.BentleyError {
32
32
  constructor(errorNumber, message) {
33
33
  super(errorNumber, message);
34
34
  this.errorNumber = errorNumber;
35
+ (0, core_bentley_1.assert)(errorNumber !== QuantityStatus.Success, message);
35
36
  }
36
37
  }
37
38
  exports.QuantityError = QuantityError;
@@ -1 +1 @@
1
- {"version":3,"file":"Exception.js","sourceRoot":"","sources":["../../src/Exception.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAmD;AAEnD;;;GAGG;AACH,IAAY,cAUX;AAVD,WAAY,cAAc;IACxB,qFAA4B,CAAA;IAC5B,yDAAW,CAAA;IACX,qEAAqC,CAAA;IACrC,2FAAgD,CAAA;IAChD,qGAAqD,CAAA;IACrD,mGAAoD,CAAA;IACpD,2GAAwD,CAAA;IACxD,qEAAqC,CAAA;IACrC,uHAA8D,CAAA;AAChE,CAAC,EAVW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAUzB;AAED;;GAEG;AACH,MAAa,aAAc,SAAQ,2BAAY;IAC7C,YAA4C,WAAmB,EAAE,OAAgB;QAC/E,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QADc,gBAAW,GAAX,WAAW,CAAQ;IAE/D,CAAC;CACF;AAJD,sCAIC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Quantity\r\n */\r\n\r\nimport { BentleyError } from \"@itwin/core-bentley\";\r\n\r\n/**\r\n * Status codes used during Quantity parsing and formatting processing.\r\n * @beta\r\n */\r\nexport enum QuantityStatus {\r\n QUANTITY_ERROR_BASE = 0x88DF,\r\n Success = 0,\r\n InvalidJson = QUANTITY_ERROR_BASE + 1,\r\n InvalidCompositeFormat = QUANTITY_ERROR_BASE + 2,\r\n UnableToGenerateParseTokens = QUANTITY_ERROR_BASE + 3,\r\n NoValueOrUnitFoundInString = QUANTITY_ERROR_BASE + 4,\r\n UnitLabelSuppliedButNotMatched = QUANTITY_ERROR_BASE + 5,\r\n UnknownUnit = QUANTITY_ERROR_BASE + 6,\r\n UnableToConvertParseTokensToQuantity = QUANTITY_ERROR_BASE + 7,\r\n}\r\n\r\n/** The error type thrown by this module. See [[QuantityStatus]] for `errorNumber` values.\r\n * @beta\r\n */\r\nexport class QuantityError extends BentleyError {\r\n public constructor(public override readonly errorNumber: number, message?: string) {\r\n super(errorNumber, message);\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"Exception.js","sourceRoot":"","sources":["../../src/Exception.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAA2D;AAE3D;;;GAGG;AACH,IAAY,cAUX;AAVD,WAAY,cAAc;IACxB,qFAA4B,CAAA;IAC5B,yDAAW,CAAA;IACX,qEAAqC,CAAA;IACrC,2FAAgD,CAAA;IAChD,qGAAqD,CAAA;IACrD,mGAAoD,CAAA;IACpD,2GAAwD,CAAA;IACxD,qEAAqC,CAAA;IACrC,uHAA8D,CAAA;AAChE,CAAC,EAVW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAUzB;AAED;;GAEG;AACH,MAAa,aAAc,SAAQ,2BAAY;IAC7C,YAA4C,WAAmB,EAAE,OAAgB;QAC/E,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QADc,gBAAW,GAAX,WAAW,CAAQ;QAE7D,IAAA,qBAAM,EAAC,WAAW,KAAK,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;CACF;AALD,sCAKC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Quantity\r\n */\r\n\r\nimport { assert, BentleyError } from \"@itwin/core-bentley\";\r\n\r\n/**\r\n * Status codes used during Quantity parsing and formatting processing.\r\n * @beta\r\n */\r\nexport enum QuantityStatus {\r\n QUANTITY_ERROR_BASE = 0x88DF,\r\n Success = 0,\r\n InvalidJson = QUANTITY_ERROR_BASE + 1,\r\n InvalidCompositeFormat = QUANTITY_ERROR_BASE + 2,\r\n UnableToGenerateParseTokens = QUANTITY_ERROR_BASE + 3,\r\n NoValueOrUnitFoundInString = QUANTITY_ERROR_BASE + 4,\r\n UnitLabelSuppliedButNotMatched = QUANTITY_ERROR_BASE + 5,\r\n UnknownUnit = QUANTITY_ERROR_BASE + 6,\r\n UnableToConvertParseTokensToQuantity = QUANTITY_ERROR_BASE + 7,\r\n}\r\n\r\n/** The error type thrown by this module. See [[QuantityStatus]] for `errorNumber` values.\r\n * @beta\r\n */\r\nexport class QuantityError extends BentleyError {\r\n public constructor(public override readonly errorNumber: number, message?: string) {\r\n super(errorNumber, message);\r\n assert(errorNumber !== QuantityStatus.Success, message);\r\n }\r\n}\r\n"]}
@@ -4,84 +4,80 @@
4
4
  import { UnitProps, UnitsProvider } from "../Interfaces";
5
5
  import { DecimalPrecision, FormatTraits, FormatType, FractionalPrecision, ScientificType, ShowSignOption } from "./FormatEnums";
6
6
  import { CloneOptions, FormatProps } from "./Interfaces";
7
- /** A class used to define the specifications for formatting quantity values. This class is typically loaded by reading [[FormatProps]].
7
+ /** A base Format class with shared properties and functionality between quantity and ecschema-metadata Format classes
8
8
  * @beta
9
9
  */
10
- export declare class Format {
10
+ export declare class BaseFormat {
11
11
  private _name;
12
12
  protected _roundFactor: number;
13
13
  protected _type: FormatType;
14
14
  protected _precision: number;
15
- protected _minWidth?: number;
16
- protected _scientificType?: ScientificType;
17
15
  protected _showSignOption: ShowSignOption;
18
16
  protected _decimalSeparator: string;
19
17
  protected _thousandSeparator: string;
20
18
  protected _uomSeparator: string;
21
19
  protected _stationSeparator: string;
22
- protected _stationOffsetSize?: number;
23
20
  protected _formatTraits: FormatTraits;
24
21
  protected _spacer: string;
25
22
  protected _includeZero: boolean;
26
- protected _units?: Array<[UnitProps, string | undefined]>;
27
- protected _customProps?: any;
28
- /** Constructor
29
- * @param name The name of a format specification. TODO: make optional or remove
30
- */
23
+ protected _minWidth?: number;
24
+ protected _scientificType?: ScientificType;
25
+ protected _stationOffsetSize?: number;
31
26
  constructor(name: string);
32
27
  get name(): string;
33
28
  get roundFactor(): number;
29
+ set roundFactor(roundFactor: number);
34
30
  get type(): FormatType;
31
+ set type(formatType: FormatType);
35
32
  get precision(): DecimalPrecision | FractionalPrecision;
33
+ set precision(precision: DecimalPrecision | FractionalPrecision);
36
34
  get minWidth(): number | undefined;
35
+ set minWidth(minWidth: number | undefined);
37
36
  get scientificType(): ScientificType | undefined;
37
+ set scientificType(scientificType: ScientificType | undefined);
38
38
  get showSignOption(): ShowSignOption;
39
+ set showSignOption(showSignOption: ShowSignOption);
39
40
  get decimalSeparator(): string;
41
+ set decimalSeparator(decimalSeparator: string);
40
42
  get thousandSeparator(): string;
43
+ set thousandSeparator(thousandSeparator: string);
41
44
  get uomSeparator(): string;
45
+ set uomSeparator(uomSeparator: string);
42
46
  get stationSeparator(): string;
47
+ set stationSeparator(stationSeparator: string);
43
48
  get stationOffsetSize(): number | undefined;
49
+ set stationOffsetSize(stationOffsetSize: number | undefined);
44
50
  get formatTraits(): FormatTraits;
45
- get spacer(): string;
46
- get includeZero(): boolean;
51
+ set formatTraits(formatTraits: FormatTraits);
52
+ get spacer(): string | undefined;
53
+ set spacer(spacer: string | undefined);
54
+ get includeZero(): boolean | undefined;
55
+ set includeZero(includeZero: boolean | undefined);
56
+ /** This method parses input string that is typically extracted for persisted JSON data and validates that the string is a valid FormatType. Throws exception if not valid. */
57
+ parseFormatTraits(formatTraitsFromJson: string | string[]): void;
58
+ /** This method returns true if the formatTrait is set in this Format object. */
59
+ hasFormatTraitSet(formatTrait: FormatTraits): boolean;
60
+ loadFormatProperties(formatProps: FormatProps): void;
61
+ }
62
+ /** A class used to define the specifications for formatting quantity values. This class is typically loaded by reading [[FormatProps]].
63
+ * @beta
64
+ */
65
+ export declare class Format extends BaseFormat {
66
+ protected _units?: Array<[UnitProps, string | undefined]>;
67
+ protected _customProps?: any;
68
+ /** Constructor
69
+ * @param name The name of a format specification. TODO: make optional or remove
70
+ */
71
+ constructor(name: string);
47
72
  get units(): Array<[UnitProps, string | undefined]> | undefined;
48
73
  get hasUnits(): boolean;
49
74
  get customProps(): any;
50
- static scientificTypeToString(scientificType: ScientificType): string;
51
- /** This method parses input string that is typically extracted for persisted JSON data and validates that the string is a valid ScientificType. Throws exception if not valid. */
52
- static parseScientificType(scientificType: string, formatName: string): ScientificType;
53
- /** Method used when generating a JSON object that represents this Format. */
54
- static showSignOptionToString(showSign: ShowSignOption): string;
55
- /** This method parses input string that is typically extracted for persisted JSON data and validates that the string is a valid ShowSignOption. Throws exception if not valid. */
56
- static parseShowSignOption(showSignOption: string, formatName: string): ShowSignOption;
57
75
  static isFormatTraitSetInProps(formatProps: FormatProps, trait: FormatTraits): boolean;
58
- /** Get string used in FormatProps */
59
- static getTraitString(trait: FormatTraits): "trailZeroes" | "keepSingleZero" | "zeroEmpty" | "keepDecimalPoint" | "applyRounding" | "fractionDash" | "showUnitLabel" | "prependUnitLabel" | "use1000Separator" | "exponentOnlyNegative";
60
- /** Method used when generating a JSON object that represents this Format. */
61
- static formatTraitsToArray(currentFormatTrait: FormatTraits): string[];
62
- /** This method parses input string that is typically extracted for persisted JSON data and validates that the string is a valid FormatTrait. Throws exception if not valid. */
63
- static parseFormatTrait(stringToCheck: string, currentFormatTrait: number): FormatTraits;
64
- /** Get FormatTrait from entry in FormatProps */
65
- static parseFormatTraits(formatTraitsFromJson: string | string[] | undefined): FormatTraits | undefined;
66
- /** Method used when generating a JSON object that represents this Format. */
67
- static formatTypeToString(type: FormatType): string;
68
- /** This method parses input string that is typically extracted for persisted JSON data and validates that the string is a valid FormatType. Throws exception if not valid. */
69
- static parseFormatType(jsonObjType: string, formatName: string): FormatType;
70
- /** This method validates the input value, that is typically extracted for persisted JSON data, is a valid DecimalPrecision. Throws exception if not valid. */
71
- static parseDecimalPrecision(jsonObjPrecision: number): DecimalPrecision;
72
- /** This method validates the input value, that is typically extracted for persisted JSON data, is a valid FractionalPrecision. Throws exception if not valid. */
73
- static parseFractionalPrecision(jsonObjPrecision: number, formatName: string): FractionalPrecision;
74
- /** This method validates the input value, that is typically extracted for persisted JSON data, is a valid DecimalPrecision or FractionalPrecision. Throws exception if not valid. */
75
- static parsePrecision(precision: number, formatName: string, type: FormatType): DecimalPrecision | FractionalPrecision;
76
- private verifyFormatTraitsOptions;
77
- /** This method returns true if the formatTrait is set in this Format object. */
78
- hasFormatTraitSet(formatTrait: FormatTraits): boolean;
79
76
  private createUnit;
80
77
  /**
81
78
  * Clone Format
82
79
  */
83
80
  clone(options?: CloneOptions): Format;
84
- private loadFormatProperties;
85
81
  /**
86
82
  * Populates this Format with the values from the provided.
87
83
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Format.d.ts","sourceRoot":"","sources":["../../../src/Formatter/Format.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,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