@itwin/core-i18n 3.6.0-dev.3 → 3.6.0-dev.33

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.
@@ -8690,7 +8690,7 @@ exports.transferFlags = __webpack_require__(/*! ./transferFlags */ "../../common
8690
8690
  * Deep equal utility
8691
8691
  */
8692
8692
 
8693
- exports.eql = __webpack_require__(/*! deep-eql */ "../../common/temp/node_modules/.pnpm/deep-eql@4.1.2/node_modules/deep-eql/index.js");
8693
+ exports.eql = __webpack_require__(/*! deep-eql */ "../../common/temp/node_modules/.pnpm/deep-eql@4.1.3/node_modules/deep-eql/index.js");
8694
8694
 
8695
8695
  /*!
8696
8696
  * Deep path info
@@ -10255,9 +10255,9 @@ module.exports = exports
10255
10255
 
10256
10256
  /***/ }),
10257
10257
 
10258
- /***/ "../../common/temp/node_modules/.pnpm/deep-eql@4.1.2/node_modules/deep-eql/index.js":
10258
+ /***/ "../../common/temp/node_modules/.pnpm/deep-eql@4.1.3/node_modules/deep-eql/index.js":
10259
10259
  /*!******************************************************************************************!*\
10260
- !*** ../../common/temp/node_modules/.pnpm/deep-eql@4.1.2/node_modules/deep-eql/index.js ***!
10260
+ !*** ../../common/temp/node_modules/.pnpm/deep-eql@4.1.3/node_modules/deep-eql/index.js ***!
10261
10261
  \******************************************************************************************/
10262
10262
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10263
10263
 
@@ -10656,8 +10656,15 @@ function getEnumerableKeys(target) {
10656
10656
  return keys;
10657
10657
  }
10658
10658
 
10659
- function getNonEnumerableSymbols(target) {
10660
- var keys = Object.getOwnPropertySymbols(target);
10659
+ function getEnumerableSymbols(target) {
10660
+ var keys = [];
10661
+ var allKeys = Object.getOwnPropertySymbols(target);
10662
+ for (var i = 0; i < allKeys.length; i += 1) {
10663
+ var key = allKeys[i];
10664
+ if (Object.getOwnPropertyDescriptor(target, key).enumerable) {
10665
+ keys.push(key);
10666
+ }
10667
+ }
10661
10668
  return keys;
10662
10669
  }
10663
10670
 
@@ -10696,8 +10703,8 @@ function keysEqual(leftHandOperand, rightHandOperand, keys, options) {
10696
10703
  function objectEqual(leftHandOperand, rightHandOperand, options) {
10697
10704
  var leftHandKeys = getEnumerableKeys(leftHandOperand);
10698
10705
  var rightHandKeys = getEnumerableKeys(rightHandOperand);
10699
- var leftHandSymbols = getNonEnumerableSymbols(leftHandOperand);
10700
- var rightHandSymbols = getNonEnumerableSymbols(rightHandOperand);
10706
+ var leftHandSymbols = getEnumerableSymbols(leftHandOperand);
10707
+ var rightHandSymbols = getEnumerableSymbols(rightHandOperand);
10701
10708
  leftHandKeys = leftHandKeys.concat(leftHandSymbols);
10702
10709
  rightHandKeys = rightHandKeys.concat(rightHandSymbols);
10703
10710
 
@@ -16323,8 +16330,8 @@ var IModelStatus;
16323
16330
  IModelStatus[IModelStatus["FunctionNotFound"] = 65606] = "FunctionNotFound";
16324
16331
  IModelStatus[IModelStatus["NoActiveCommand"] = 65607] = "NoActiveCommand";
16325
16332
  })(IModelStatus || (IModelStatus = {}));
16326
- /** Error status from various briefcase operations
16327
- * @beta Should these be internal?
16333
+ /** Error statuses produced by various briefcase operations, typically encountered as the `errorNumber` of an [IModelError]($common).
16334
+ * @public
16328
16335
  */
16329
16336
  var BriefcaseStatus;
16330
16337
  (function (BriefcaseStatus) {
@@ -16340,7 +16347,7 @@ var BriefcaseStatus;
16340
16347
  BriefcaseStatus[BriefcaseStatus["ContainsDeletedChangeSets"] = 131080] = "ContainsDeletedChangeSets";
16341
16348
  })(BriefcaseStatus || (BriefcaseStatus = {}));
16342
16349
  /** RpcInterface status codes
16343
- * @beta Should these be internal?
16350
+ * @beta
16344
16351
  */
16345
16352
  var RpcInterfaceStatus;
16346
16353
  (function (RpcInterfaceStatus) {
@@ -16349,8 +16356,8 @@ var RpcInterfaceStatus;
16349
16356
  /** The RpcInterface implemented by the server is incompatible with the interface requested by the client. */
16350
16357
  RpcInterfaceStatus[RpcInterfaceStatus["IncompatibleVersion"] = 135168] = "IncompatibleVersion";
16351
16358
  })(RpcInterfaceStatus || (RpcInterfaceStatus = {}));
16352
- /** Error status from various Changeset operations
16353
- * @beta Should these be internal?
16359
+ /** Error statuses produced by various Changeset operations, typically encountered as the `errorNumber` of an [IModelError]($common).
16360
+ * @public
16354
16361
  */
16355
16362
  var ChangeSetStatus;
16356
16363
  (function (ChangeSetStatus) {
@@ -16410,7 +16417,7 @@ var ChangeSetStatus;
16410
16417
  ChangeSetStatus[ChangeSetStatus["DownloadCancelled"] = 90138] = "DownloadCancelled";
16411
16418
  })(ChangeSetStatus || (ChangeSetStatus = {}));
16412
16419
  /** Return codes for methods which perform repository management operations
16413
- * @beta Should these be internal?
16420
+ * @internal
16414
16421
  */
16415
16422
  var RepositoryStatus;
16416
16423
  (function (RepositoryStatus) {
@@ -16447,7 +16454,7 @@ var RepositoryStatus;
16447
16454
  RepositoryStatus[RepositoryStatus["ChannelConstraintViolation"] = 86031] = "ChannelConstraintViolation";
16448
16455
  })(RepositoryStatus || (RepositoryStatus = {}));
16449
16456
  /** Status from returned HTTP status code
16450
- * @beta Should these be internal?
16457
+ * @beta
16451
16458
  */
16452
16459
  var HttpStatus;
16453
16460
  (function (HttpStatus) {
@@ -16462,8 +16469,8 @@ var HttpStatus;
16462
16469
  /** 5xx Server errors */
16463
16470
  HttpStatus[HttpStatus["ServerError"] = 94212] = "ServerError";
16464
16471
  })(HttpStatus || (HttpStatus = {}));
16465
- /** iModelHub Services Errors
16466
- * @beta Right package?
16472
+ /** Statuses produced by APIs that interact with iModelHub, typically encountered as the `errorNumber` of an [IModelError]($common).
16473
+ * @public
16467
16474
  */
16468
16475
  var IModelHubStatus;
16469
16476
  (function (IModelHubStatus) {
@@ -16983,7 +16990,7 @@ __webpack_require__.r(__webpack_exports__);
16983
16990
  /** Allows the contents of an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)
16984
16991
  * to be consumed sequentially using methods to extract
16985
16992
  * data of a particular type from the bytes beginning at the current read position.
16986
- * Methods and properties beginning with 'next' consume data at the current read position and advance it
16993
+ * Methods and properties beginning with 'read' and taking no arguments consume data at the current read position and advance it
16987
16994
  * by the size of the data read. The read position can also be directly adjusted by the caller.
16988
16995
  * @public
16989
16996
  */
@@ -17068,21 +17075,37 @@ class ByteStream {
17068
17075
  /** Resets the current read position to the beginning of the stream */
17069
17076
  reset() { this.curPos = 0; }
17070
17077
  /** Read a unsigned 8-bit integer from the current read position and advance by 1 byte. */
17071
- get nextUint8() { return this.read(1, (view) => view.getUint8(this.curPos)); }
17078
+ readUint8() { return this.read(1, (view) => view.getUint8(this.curPos)); }
17072
17079
  /** Read an unsigned 16-bit integer from the current read position and advance by 2 bytes. */
17073
- get nextUint16() { return this.read(2, (view) => view.getUint16(this.curPos, true)); }
17080
+ readUint16() { return this.read(2, (view) => view.getUint16(this.curPos, true)); }
17074
17081
  /** Read an unsigned 32-bit integer from the current read position and advance by 4 bytes. */
17075
- get nextUint32() { return this.read(4, (view) => view.getUint32(this.curPos, true)); }
17082
+ readUint32() { return this.read(4, (view) => view.getUint32(this.curPos, true)); }
17076
17083
  /** Read a signed 32-bit integer from the current read position and advance by 4 bytes. */
17077
- get nextInt32() { return this.read(4, (view) => view.getInt32(this.curPos, true)); }
17084
+ readInt32() { return this.read(4, (view) => view.getInt32(this.curPos, true)); }
17078
17085
  /** Read a 32-bit floating point number from the current read position and advance by 4 bytes. */
17079
- get nextFloat32() { return this.read(4, (view) => view.getFloat32(this.curPos, true)); }
17086
+ readFloat32() { return this.read(4, (view) => view.getFloat32(this.curPos, true)); }
17080
17087
  /** Read a 64-bit floating point number from the current read position and advance by 8 bytes. */
17081
- get nextFloat64() { return this.read(8, (view) => view.getFloat64(this.curPos, true)); }
17088
+ readFloat64() { return this.read(8, (view) => view.getFloat64(this.curPos, true)); }
17082
17089
  /** Read an unsigned 64-bit integer from the current read position, advance by 8 bytes, and return the 64-bit value as an Id64String. */
17083
- get nextId64() { return _Id__WEBPACK_IMPORTED_MODULE_1__.Id64.fromUint32Pair(this.nextUint32, this.nextUint32); }
17090
+ readId64() { return _Id__WEBPACK_IMPORTED_MODULE_1__.Id64.fromUint32Pair(this.readUint32(), this.readUint32()); }
17084
17091
  /** Read an unsigned 24-bit integer from the current read position and advance by 3 bytes. */
17085
- get nextUint24() { return this.nextUint8 | (this.nextUint8 << 8) | (this.nextUint8 << 16); }
17092
+ readUint24() { return this.readUint8() | (this.readUint8() << 8) | (this.readUint8() << 16); }
17093
+ /** @deprecated use [[readUint8]]. */
17094
+ get nextUint8() { return this.readUint8(); }
17095
+ /** @deprecated use [[readUint16]]. */
17096
+ get nextUint16() { return this.readUint16(); }
17097
+ /** @deprecated use [[readUint32]]. */
17098
+ get nextUint32() { return this.readUint32(); }
17099
+ /** @deprecated use [[readInt32]]. */
17100
+ get nextInt32() { return this.readInt32(); }
17101
+ /** @deprecated use [[readFloat32]]. */
17102
+ get nextFloat32() { return this.readFloat32(); }
17103
+ /** @deprecated use [[readFloat64]]. */
17104
+ get nextFloat64() { return this.readFloat64(); }
17105
+ /** @deprecated use [[readId64]]. */
17106
+ get nextId64() { return this.readId64(); }
17107
+ /** @deprecated use [[readUint32]]. */
17108
+ get nextUint24() { return this.readUint24(); }
17086
17109
  /** Read the specified number of bytes beginning at the current read position into a Uint8Array and advance by the specified number of byte.
17087
17110
  * @param numBytes The number of bytes to read.
17088
17111
  */
@@ -18605,8 +18628,16 @@ class TransientIdSequence {
18605
18628
  constructor() {
18606
18629
  this._localId = 0;
18607
18630
  }
18631
+ /** Generate and return the next transient Id64String in the sequence.
18632
+ * @deprecated Use [[getNext]].
18633
+ */
18634
+ get next() {
18635
+ return this.getNext();
18636
+ }
18608
18637
  /** Generate and return the next transient Id64String in the sequence. */
18609
- get next() { return Id64.fromLocalAndBriefcaseIds(++this._localId, 0xffffff); }
18638
+ getNext() {
18639
+ return Id64.fromLocalAndBriefcaseIds(++this._localId, 0xffffff);
18640
+ }
18610
18641
  }
18611
18642
  /**
18612
18643
  * The Guid namespace provides facilities for working with GUID strings using the "8-4-4-4-12" pattern.
@@ -21677,7 +21708,8 @@ __webpack_require__.r(__webpack_exports__);
21677
21708
  /* harmony export */ "TypedArrayBuilder": () => (/* binding */ TypedArrayBuilder),
21678
21709
  /* harmony export */ "Uint16ArrayBuilder": () => (/* binding */ Uint16ArrayBuilder),
21679
21710
  /* harmony export */ "Uint32ArrayBuilder": () => (/* binding */ Uint32ArrayBuilder),
21680
- /* harmony export */ "Uint8ArrayBuilder": () => (/* binding */ Uint8ArrayBuilder)
21711
+ /* harmony export */ "Uint8ArrayBuilder": () => (/* binding */ Uint8ArrayBuilder),
21712
+ /* harmony export */ "UintArrayBuilder": () => (/* binding */ UintArrayBuilder)
21681
21713
  /* harmony export */ });
21682
21714
  /* harmony import */ var _Assert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Assert */ "../bentley/lib/esm/Assert.js");
21683
21715
  /*---------------------------------------------------------------------------------------------
@@ -21688,7 +21720,7 @@ __webpack_require__.r(__webpack_exports__);
21688
21720
  * @module Collections
21689
21721
  */
21690
21722
 
21691
- /** Incrementally builds a [TypedArray] of unsigned 8-, 16-, or 32-bit integers.
21723
+ /** Incrementally builds a [TypedArray](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) of unsigned 8-, 16-, or 32-bit integers.
21692
21724
  * Sometimes you wish to populate a `TypedArray`, but you don't know how many elements you will need.
21693
21725
  * `TypedArray` requires you to specify the size upon construction, and does not permit you to change the size later.
21694
21726
  *
@@ -21699,6 +21731,7 @@ __webpack_require__.r(__webpack_exports__);
21699
21731
  *
21700
21732
  * Once you've finished adding elements, you can obtain the finished `TypedArray` via [[toTypedArray]].
21701
21733
  * @see [[Uint8ArrayBuilder]], [[Uint16ArrayBuilder]], and [[Uint32ArrayBuilder]] to build specific types of arrays.
21734
+ * @see [[UintArrayBuilder]] when you don't know the maximum number of bytes required for each element in the array.
21702
21735
  * @public
21703
21736
  */
21704
21737
  class TypedArrayBuilder {
@@ -21778,7 +21811,7 @@ class TypedArrayBuilder {
21778
21811
  * @public
21779
21812
  */
21780
21813
  class Uint8ArrayBuilder extends TypedArrayBuilder {
21781
- /** @see [[TypedArrayBuilder]] constructor. */
21814
+ /** See [[TypedArrayBuilder]] constructor. */
21782
21815
  constructor(options) {
21783
21816
  super(Uint8Array, options);
21784
21817
  }
@@ -21787,7 +21820,7 @@ class Uint8ArrayBuilder extends TypedArrayBuilder {
21787
21820
  * @public
21788
21821
  */
21789
21822
  class Uint16ArrayBuilder extends TypedArrayBuilder {
21790
- /** @see [[TypedArrayBuilder]] constructor. */
21823
+ /** See [[TypedArrayBuilder]] constructor. */
21791
21824
  constructor(options) {
21792
21825
  super(Uint16Array, options);
21793
21826
  }
@@ -21796,7 +21829,7 @@ class Uint16ArrayBuilder extends TypedArrayBuilder {
21796
21829
  * @public
21797
21830
  */
21798
21831
  class Uint32ArrayBuilder extends TypedArrayBuilder {
21799
- /** @see [[TypedArrayBuilder]] constructor. */
21832
+ /** See [[TypedArrayBuilder]] constructor. */
21800
21833
  constructor(options) {
21801
21834
  super(Uint32Array, options);
21802
21835
  }
@@ -21807,6 +21840,78 @@ class Uint32ArrayBuilder extends TypedArrayBuilder {
21807
21840
  return new Uint8Array(this._data.buffer, 0, this.length * 4);
21808
21841
  }
21809
21842
  }
21843
+ /** A [[TypedArrayBuilder]] that can populate a [[UintArray]] with the minimum
21844
+ * [bytes per element](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/BYTES_PER_ELEMENT) required.
21845
+ *
21846
+ * By default, the underlying array is a `Uint8Array`, though this can be configured via [[UintArrayBuilderOptions.initialType]].
21847
+ * As values are added to the array, if the bytes per element supported by the underlying array is too small to hold one of the new values, the array is
21848
+ * reallocated to a type large enough to hold all of the new values. For example, the following produces a `Uint8Array` because all values are less than 256:
21849
+ *
21850
+ * ```ts
21851
+ * const builder = new UintArrayBuilder();
21852
+ * builder.append([1, 2, 254, 255]);
21853
+ * const array = builder.toTypedArray();
21854
+ * assert(array instanceof Uint8Array);
21855
+ * ```
21856
+ *
21857
+ * However, the following produces a `Uint16Array` because one of the values is larger than 255 but none are larger than 65,535:
21858
+ *
21859
+ * ```ts
21860
+ * const builder = new UintArrayBuilder();
21861
+ * builder.append([1, 255, 257, 65535]);
21862
+ * const array = builder.toTypedArray();
21863
+ * assert(array instanceof Uint16Array);
21864
+ * ```
21865
+ *
21866
+ * @see [[Uint8ArrayBuilder]], [[Uint16ArrayBuilder]], or [[Uint32ArrayBuilder]] if you know the number of bytes you want to allocate for each element in the array.
21867
+ * @public
21868
+ */
21869
+ class UintArrayBuilder extends TypedArrayBuilder {
21870
+ constructor(options) {
21871
+ var _a;
21872
+ super((_a = options === null || options === void 0 ? void 0 : options.initialType) !== null && _a !== void 0 ? _a : Uint8Array, options);
21873
+ }
21874
+ /** The number of bytes (1, 2, or 4) currently allocated per element by the underlying array.
21875
+ * This may change as larger values are added to the array.
21876
+ */
21877
+ get bytesPerElement() {
21878
+ return this._data.BYTES_PER_ELEMENT;
21879
+ }
21880
+ /** Ensures that the underlying array is of a type that can contain the largest value in `newValues`.
21881
+ * For example, if `_data` is a `Uint16Array` and `newValues` contains any value(s) larger than 65,535, it will be replaced with a `Uint32Array`.
21882
+ * This method is invoked by [[push]] and [[append]].
21883
+ */
21884
+ ensureBytesPerElement(newValues) {
21885
+ const curBytesPerElem = this.bytesPerElement;
21886
+ (0,_Assert__WEBPACK_IMPORTED_MODULE_0__.assert)(curBytesPerElem === 1 || curBytesPerElem === 2 || curBytesPerElem === 4);
21887
+ if (curBytesPerElem >= 4)
21888
+ return;
21889
+ let neededBytesPerElem = curBytesPerElem;
21890
+ for (const value of newValues) {
21891
+ if (value > 0xffff) {
21892
+ neededBytesPerElem = 4;
21893
+ break;
21894
+ }
21895
+ else if (value > 0xff) {
21896
+ neededBytesPerElem = 2;
21897
+ }
21898
+ }
21899
+ if (neededBytesPerElem <= curBytesPerElem)
21900
+ return;
21901
+ this._constructor = neededBytesPerElem === 1 ? Uint8Array : (neededBytesPerElem === 2 ? Uint16Array : Uint32Array);
21902
+ this._data = new this._constructor(this._data);
21903
+ }
21904
+ /** See [[TypedArrayBuilder.push]]. */
21905
+ push(value) {
21906
+ this.ensureBytesPerElement([value]);
21907
+ super.push(value);
21908
+ }
21909
+ /** See [[TypedArrayBuilder.append]]. */
21910
+ append(values) {
21911
+ this.ensureBytesPerElement(values);
21912
+ super.append(values);
21913
+ }
21914
+ }
21810
21915
 
21811
21916
 
21812
21917
  /***/ }),
@@ -22058,6 +22163,7 @@ __webpack_require__.r(__webpack_exports__);
22058
22163
  /* harmony export */ "Uint16ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__.Uint16ArrayBuilder),
22059
22164
  /* harmony export */ "Uint32ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__.Uint32ArrayBuilder),
22060
22165
  /* harmony export */ "Uint8ArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__.Uint8ArrayBuilder),
22166
+ /* harmony export */ "UintArrayBuilder": () => (/* reexport safe */ _TypedArrayBuilder__WEBPACK_IMPORTED_MODULE_32__.UintArrayBuilder),
22061
22167
  /* harmony export */ "UnexpectedErrors": () => (/* reexport safe */ _UnexpectedErrors__WEBPACK_IMPORTED_MODULE_33__.UnexpectedErrors),
22062
22168
  /* harmony export */ "YieldManager": () => (/* reexport safe */ _YieldManager__WEBPACK_IMPORTED_MODULE_35__.YieldManager),
22063
22169
  /* harmony export */ "areEqualPossiblyUndefined": () => (/* reexport safe */ _Compare__WEBPACK_IMPORTED_MODULE_10__.areEqualPossiblyUndefined),