@fluid-experimental/property-properties 0.54.2 → 0.56.0-49831

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 (120) hide show
  1. package/dist/properties/arrayProperty.d.ts.map +1 -1
  2. package/dist/properties/arrayProperty.js +4 -4
  3. package/dist/properties/arrayProperty.js.map +1 -1
  4. package/dist/properties/baseProperty.d.ts +1 -1
  5. package/dist/properties/baseProperty.d.ts.map +1 -1
  6. package/dist/properties/baseProperty.js +13 -12
  7. package/dist/properties/baseProperty.js.map +1 -1
  8. package/dist/properties/boolProperty.d.ts.map +1 -1
  9. package/dist/properties/boolProperty.js +3 -2
  10. package/dist/properties/boolProperty.js.map +1 -1
  11. package/dist/properties/containerProperty.d.ts +1 -1
  12. package/dist/properties/containerProperty.d.ts.map +1 -1
  13. package/dist/properties/containerProperty.js +12 -3
  14. package/dist/properties/containerProperty.js.map +1 -1
  15. package/dist/properties/enumArrayProperty.js +2 -1
  16. package/dist/properties/enumArrayProperty.js.map +1 -1
  17. package/dist/properties/enumProperty.d.ts.map +1 -1
  18. package/dist/properties/enumProperty.js +2 -1
  19. package/dist/properties/enumProperty.js.map +1 -1
  20. package/dist/properties/floatProperties.d.ts.map +1 -1
  21. package/dist/properties/floatProperties.js +6 -4
  22. package/dist/properties/floatProperties.js.map +1 -1
  23. package/dist/properties/indexedCollectionBaseProperty.d.ts +2 -2
  24. package/dist/properties/indexedCollectionBaseProperty.d.ts.map +1 -1
  25. package/dist/properties/indexedCollectionBaseProperty.js +2 -2
  26. package/dist/properties/indexedCollectionBaseProperty.js.map +1 -1
  27. package/dist/properties/intProperties.d.ts.map +1 -1
  28. package/dist/properties/intProperties.js +15 -10
  29. package/dist/properties/intProperties.js.map +1 -1
  30. package/dist/properties/mapProperty.d.ts.map +1 -1
  31. package/dist/properties/mapProperty.js +2 -1
  32. package/dist/properties/mapProperty.js.map +1 -1
  33. package/dist/properties/namedNodeProperty.js +2 -1
  34. package/dist/properties/namedNodeProperty.js.map +1 -1
  35. package/dist/properties/namedProperty.js +2 -1
  36. package/dist/properties/namedProperty.js.map +1 -1
  37. package/dist/properties/nodeProperty.d.ts.map +1 -1
  38. package/dist/properties/nodeProperty.js +3 -1
  39. package/dist/properties/nodeProperty.js.map +1 -1
  40. package/dist/properties/referenceArrayProperty.js +2 -1
  41. package/dist/properties/referenceArrayProperty.js.map +1 -1
  42. package/dist/properties/referenceMapProperty.js +2 -1
  43. package/dist/properties/referenceMapProperty.js.map +1 -1
  44. package/dist/properties/referenceProperty.d.ts +1 -1
  45. package/dist/properties/referenceProperty.d.ts.map +1 -1
  46. package/dist/properties/referenceProperty.js +3 -2
  47. package/dist/properties/referenceProperty.js.map +1 -1
  48. package/dist/properties/setProperty.d.ts.map +1 -1
  49. package/dist/properties/setProperty.js +3 -2
  50. package/dist/properties/setProperty.js.map +1 -1
  51. package/dist/properties/stringProperty.d.ts.map +1 -1
  52. package/dist/properties/stringProperty.js +12 -3
  53. package/dist/properties/stringProperty.js.map +1 -1
  54. package/dist/properties/uintProperties.d.ts.map +1 -1
  55. package/dist/properties/uintProperties.js +9 -6
  56. package/dist/properties/uintProperties.js.map +1 -1
  57. package/dist/properties/valueArrayProperty.d.ts +1 -1
  58. package/dist/properties/valueArrayProperty.d.ts.map +1 -1
  59. package/dist/properties/valueArrayProperty.js +25 -13
  60. package/dist/properties/valueArrayProperty.js.map +1 -1
  61. package/dist/properties/valueMapProperty.d.ts.map +1 -1
  62. package/dist/properties/valueMapProperty.js +38 -26
  63. package/dist/properties/valueMapProperty.js.map +1 -1
  64. package/dist/propertyFactory.d.ts.map +1 -1
  65. package/dist/propertyFactory.js +442 -86
  66. package/dist/propertyFactory.js.map +1 -1
  67. package/dist/propertyTemplateWrapper.d.ts +0 -34
  68. package/dist/propertyTemplateWrapper.d.ts.map +1 -1
  69. package/dist/propertyTemplateWrapper.js +0 -108
  70. package/dist/propertyTemplateWrapper.js.map +1 -1
  71. package/dist/test/propertyFactory.spec.js +5 -2
  72. package/dist/test/propertyFactory.spec.js.map +1 -1
  73. package/dist/test/tsconfig.tsbuildinfo +11 -11
  74. package/lib/properties/arrayProperty.js +4 -4
  75. package/lib/properties/arrayProperty.js.map +1 -1
  76. package/lib/properties/baseProperty.js +13 -12
  77. package/lib/properties/baseProperty.js.map +1 -1
  78. package/lib/properties/boolProperty.js +3 -2
  79. package/lib/properties/boolProperty.js.map +1 -1
  80. package/lib/properties/containerProperty.js +12 -3
  81. package/lib/properties/containerProperty.js.map +1 -1
  82. package/lib/properties/enumArrayProperty.js +2 -1
  83. package/lib/properties/enumArrayProperty.js.map +1 -1
  84. package/lib/properties/enumProperty.js +2 -1
  85. package/lib/properties/enumProperty.js.map +1 -1
  86. package/lib/properties/floatProperties.js +6 -4
  87. package/lib/properties/floatProperties.js.map +1 -1
  88. package/lib/properties/indexedCollectionBaseProperty.js +2 -2
  89. package/lib/properties/indexedCollectionBaseProperty.js.map +1 -1
  90. package/lib/properties/intProperties.js +15 -10
  91. package/lib/properties/intProperties.js.map +1 -1
  92. package/lib/properties/mapProperty.js +2 -1
  93. package/lib/properties/mapProperty.js.map +1 -1
  94. package/lib/properties/namedNodeProperty.js +2 -1
  95. package/lib/properties/namedNodeProperty.js.map +1 -1
  96. package/lib/properties/namedProperty.js +2 -1
  97. package/lib/properties/namedProperty.js.map +1 -1
  98. package/lib/properties/nodeProperty.js +3 -1
  99. package/lib/properties/nodeProperty.js.map +1 -1
  100. package/lib/properties/referenceArrayProperty.js +2 -1
  101. package/lib/properties/referenceArrayProperty.js.map +1 -1
  102. package/lib/properties/referenceMapProperty.js +2 -1
  103. package/lib/properties/referenceMapProperty.js.map +1 -1
  104. package/lib/properties/referenceProperty.js +3 -2
  105. package/lib/properties/referenceProperty.js.map +1 -1
  106. package/lib/properties/setProperty.js +3 -2
  107. package/lib/properties/setProperty.js.map +1 -1
  108. package/lib/properties/stringProperty.js +12 -3
  109. package/lib/properties/stringProperty.js.map +1 -1
  110. package/lib/properties/uintProperties.js +9 -6
  111. package/lib/properties/uintProperties.js.map +1 -1
  112. package/lib/properties/valueArrayProperty.js +25 -13
  113. package/lib/properties/valueArrayProperty.js.map +1 -1
  114. package/lib/properties/valueMapProperty.js +38 -26
  115. package/lib/properties/valueMapProperty.js.map +1 -1
  116. package/lib/propertyFactory.js +442 -86
  117. package/lib/propertyFactory.js.map +1 -1
  118. package/lib/propertyTemplateWrapper.js +0 -108
  119. package/lib/propertyTemplateWrapper.js.map +1 -1
  120. package/package.json +5 -5
@@ -28,7 +28,6 @@ class ValueArrayProperty extends ArrayProperty {
28
28
  */
29
29
  constructor(in_params) {
30
30
  super(in_params, true);
31
- this._isPrimitive = true;
32
31
  }
33
32
  ;
34
33
  /**
@@ -105,6 +104,7 @@ class ValueArrayProperty extends ArrayProperty {
105
104
  ;
106
105
  }
107
106
  exports.ValueArrayProperty = ValueArrayProperty;
107
+ ValueArrayProperty.prototype._isPrimitive = true;
108
108
  /**
109
109
  * An ArrayProperty which stores Float32 values
110
110
  */
@@ -119,7 +119,7 @@ class Float32ArrayProperty extends ValueArrayProperty {
119
119
  * @category Arrays
120
120
  */
121
121
  constructor(in_params) {
122
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Float32' }));
122
+ super(in_params);
123
123
  }
124
124
  ;
125
125
  /**
@@ -132,6 +132,7 @@ class Float32ArrayProperty extends ValueArrayProperty {
132
132
  ;
133
133
  }
134
134
  exports.Float32ArrayProperty = Float32ArrayProperty;
135
+ Float32ArrayProperty.prototype._typeid = 'Float32';
135
136
  /**
136
137
  * An ArrayProperty which stores Float64 values
137
138
  */
@@ -146,7 +147,7 @@ class Float64ArrayProperty extends ValueArrayProperty {
146
147
  * @category Arrays
147
148
  */
148
149
  constructor(in_params) {
149
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Float64' }));
150
+ super(in_params);
150
151
  }
151
152
  ;
152
153
  /**
@@ -159,6 +160,7 @@ class Float64ArrayProperty extends ValueArrayProperty {
159
160
  ;
160
161
  }
161
162
  exports.Float64ArrayProperty = Float64ArrayProperty;
163
+ Float64ArrayProperty.prototype._typeid = 'Float64';
162
164
  /**
163
165
  * An ArrayProperty which stores Uint8 values
164
166
  */
@@ -173,7 +175,7 @@ class Uint8ArrayProperty extends ValueArrayProperty {
173
175
  * @category Arrays
174
176
  */
175
177
  constructor(in_params) {
176
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Uint8' }));
178
+ super(in_params);
177
179
  }
178
180
  ;
179
181
  /**
@@ -186,6 +188,7 @@ class Uint8ArrayProperty extends ValueArrayProperty {
186
188
  ;
187
189
  }
188
190
  exports.Uint8ArrayProperty = Uint8ArrayProperty;
191
+ Uint8ArrayProperty.prototype._typeid = 'Uint8';
189
192
  /**
190
193
  * An ArrayProperty which stores Int8 values
191
194
  *
@@ -201,7 +204,7 @@ class Int8ArrayProperty extends ValueArrayProperty {
201
204
  * @category Arrays
202
205
  */
203
206
  constructor(in_params) {
204
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Int8' }));
207
+ super(in_params);
205
208
  }
206
209
  ;
207
210
  /**
@@ -214,6 +217,7 @@ class Int8ArrayProperty extends ValueArrayProperty {
214
217
  ;
215
218
  }
216
219
  exports.Int8ArrayProperty = Int8ArrayProperty;
220
+ Int8ArrayProperty.prototype._typeid = 'Int8';
217
221
  /**
218
222
  * An ArrayProperty which stores Uint16 values
219
223
  */
@@ -228,7 +232,7 @@ class Uint16ArrayProperty extends ValueArrayProperty {
228
232
  * @category Arrays
229
233
  */
230
234
  constructor(in_params) {
231
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Uint16' }));
235
+ super(in_params);
232
236
  }
233
237
  ;
234
238
  /**
@@ -241,6 +245,7 @@ class Uint16ArrayProperty extends ValueArrayProperty {
241
245
  ;
242
246
  }
243
247
  exports.Uint16ArrayProperty = Uint16ArrayProperty;
248
+ Uint16ArrayProperty.prototype._typeid = 'Uint16';
244
249
  /**
245
250
  * An ArrayProperty which stores Int16 values
246
251
  */
@@ -255,7 +260,7 @@ class Int16ArrayProperty extends ValueArrayProperty {
255
260
  * @category Arrays
256
261
  */
257
262
  constructor(in_params) {
258
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Int16' }));
263
+ super(in_params);
259
264
  }
260
265
  ;
261
266
  /**
@@ -268,6 +273,7 @@ class Int16ArrayProperty extends ValueArrayProperty {
268
273
  ;
269
274
  }
270
275
  exports.Int16ArrayProperty = Int16ArrayProperty;
276
+ Int16ArrayProperty.prototype._typeid = 'Int16';
271
277
  /**
272
278
  * An ArrayProperty which stores Uint32 values
273
279
  */
@@ -281,7 +287,7 @@ class Uint32ArrayProperty extends ValueArrayProperty {
281
287
  * @category Arrays
282
288
  */
283
289
  constructor(in_params) {
284
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Uint32' }));
290
+ super(in_params);
285
291
  }
286
292
  ;
287
293
  /**
@@ -294,6 +300,7 @@ class Uint32ArrayProperty extends ValueArrayProperty {
294
300
  ;
295
301
  }
296
302
  exports.Uint32ArrayProperty = Uint32ArrayProperty;
303
+ Uint32ArrayProperty.prototype._typeid = 'Uint32';
297
304
  /**
298
305
  * An ArrayProperty which stores Int32 values
299
306
  */
@@ -308,7 +315,7 @@ class Int32ArrayProperty extends ValueArrayProperty {
308
315
  * @category Arrays
309
316
  */
310
317
  constructor(in_params) {
311
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Int32' }));
318
+ super(in_params);
312
319
  }
313
320
  ;
314
321
  /**
@@ -321,6 +328,7 @@ class Int32ArrayProperty extends ValueArrayProperty {
321
328
  ;
322
329
  }
323
330
  exports.Int32ArrayProperty = Int32ArrayProperty;
331
+ Int32ArrayProperty.prototype._typeid = 'Int32';
324
332
  /**
325
333
  * An ArrayProperty which stores Int64 values
326
334
  */
@@ -423,7 +431,7 @@ class Int64ArrayProperty extends Integer64ArrayProperty {
423
431
  * @category Arrays
424
432
  */
425
433
  constructor(in_params) {
426
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Int64' }));
434
+ super(in_params);
427
435
  }
428
436
  ;
429
437
  /**
@@ -486,6 +494,7 @@ class Int64ArrayProperty extends Integer64ArrayProperty {
486
494
  ;
487
495
  }
488
496
  exports.Int64ArrayProperty = Int64ArrayProperty;
497
+ Int64ArrayProperty.prototype._typeid = 'Int64';
489
498
  /**
490
499
  * An ArrayProperty which stores Uint64 values
491
500
  */
@@ -500,7 +509,7 @@ class Uint64ArrayProperty extends Integer64ArrayProperty {
500
509
  * @category Arrays
501
510
  */
502
511
  constructor(in_params) {
503
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Uint64' }));
512
+ super(in_params);
504
513
  }
505
514
  ;
506
515
  /**
@@ -563,6 +572,7 @@ class Uint64ArrayProperty extends Integer64ArrayProperty {
563
572
  ;
564
573
  }
565
574
  exports.Uint64ArrayProperty = Uint64ArrayProperty;
575
+ Uint64ArrayProperty.prototype._typeid = 'Uint64';
566
576
  /**
567
577
  * An ArrayProperty which stores String values
568
578
  */
@@ -577,7 +587,7 @@ class StringArrayProperty extends ValueArrayProperty {
577
587
  * @category Arrays
578
588
  */
579
589
  constructor(in_params) {
580
- super(Object.assign(Object.assign({}, in_params), { typeid: 'String' }));
590
+ super(in_params);
581
591
  }
582
592
  ;
583
593
  /**
@@ -593,6 +603,7 @@ class StringArrayProperty extends ValueArrayProperty {
593
603
  ;
594
604
  }
595
605
  exports.StringArrayProperty = StringArrayProperty;
606
+ StringArrayProperty.prototype._typeid = 'String';
596
607
  /**
597
608
  * An ArrayProperty which stores Boolean values
598
609
  */
@@ -607,7 +618,7 @@ class BoolArrayProperty extends ValueArrayProperty {
607
618
  * @category Arrays
608
619
  */
609
620
  constructor(in_params) {
610
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Bool' }), Array, true);
621
+ super(in_params, Array, true);
611
622
  }
612
623
  ;
613
624
  /**
@@ -623,4 +634,5 @@ class BoolArrayProperty extends ValueArrayProperty {
623
634
  ;
624
635
  }
625
636
  exports.BoolArrayProperty = BoolArrayProperty;
637
+ BoolArrayProperty.prototype._typeid = 'Bool';
626
638
  //# sourceMappingURL=valueArrayProperty.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"valueArrayProperty.js","sourceRoot":"","sources":["../../src/properties/valueArrayProperty.js"],"names":[],"mappings":";AAAA;;;GAGG;AACH,2BAA2B;AAC3B;;GAEG;;;AAEH,MAAM,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC5B,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAC,SAAS,CAAC;AACzE,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAC1D,MAAM,EACF,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,MAAM,EACN,KAAK,EACR,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAC;AACnD,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AACrD,MAAM,EAAE,aAAa,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;AAEjF;;GAEG;AACH,MAAa,kBAAmB,SAAQ,aAAa;IAEjD;;;;;;OAMG;IACH,YAAY,SAAS;QACjB,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QAG3B,iBAAY,GAAG,IAAI,CAAC;IAFpB,CAAC;IAAA,CAAC;IAIF;;;;OAIG;IACH,SAAS,CAAC,WAAW;QACjB,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IACpD,CAAC;IAAA,CAAC;IAEF;;;;OAIG;IACH,SAAS;QACL,IAAI,MAAM,GAAG,EAAE,CAAC;QAChB,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QACxB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACjC,MAAM,CAAC,IAAI,CAAC,IAAI,C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CAEL;AAzBD,kDAyBC;AAED;;GAEG;AACH,MAAa,iBAAkB,SAAQ,kBAAkB;IACrD;;;;;;;;OAQG;IACH,YAAY,SAAS;QACjB,KAAK,iCAAM,SAAS,KAAE,MAAM,EAAE,MAAM,KAAI,KAAK,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;IAAA,CAAC;IAEF;;;OAGG;IACH,gBAAgB,CAAC,SAAS;QACtB,IAAI,CAAC,aAAa,GAAG,IAAI,aAAa,CAAC,SAAS,CAAC,CAAC;QAClD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,EAAE;YAChC,IAAI,CAAC,kBAAkB,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;SACrC;IACL,CAAC;IAAA,CAAC;CACL;AAxBD,8CAwBC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n/* eslint-disable new-cap*/\n/**\n * @fileoverview Definition of the valuearray property class\n */\n\nconst _ = require('lodash');\nconst { MSG } = require('@fluid-experimental/property-common').constants;\nconst { _castFunctors } = require('./primitiveTypeCasts');\nconst {\n BaseDataArray,\n UniversalDataArray,\n BoolDataArray,\n Uint64,\n Int64\n} = require('@fluid-experimental/property-common');\nconst { ArrayProperty } = require('./arrayProperty');\nconst { Int64Property, Uint64Property } = require('../properties/intProperties');\n\n/**\n * An array property which stores primitive values\n */\nexport class ValueArrayProperty extends ArrayProperty {\n\n /**\n * @param {Object} in_params - Input parameters for property creation\n * @constructor\n * @protected\n * @extends property-properties.ArrayProperty\n * @alias property-properties.ValueArrayProperty\n */\n constructor(in_params) {\n super(in_params, true);\n };\n\n _isPrimitive = true;\n\n /**\n * returns the value at in_position for a primitive array\n * @param {number} in_position the array index\n * @return {*} the value\n */\n _getValue(in_position) {\n return this._dataArrayRef.getValue(in_position);\n };\n\n /**\n * returns the array of primitive values.\n * @return {Array<*>} the array of values.\n * For example: ['string1', 'string2']\n */\n getValues() {\n var result = [];\n var ids = this.getIds();\n for (var i = 0; i < ids.length; i++) {\n result.push(this.get(ids[i]));\n }\n return result;\n };\n\n /**\n * Resolves a direct child node based on the given path segment\n *\n * @param {String} in_segment - The path segment to resolve\n * @param {property-properties.PathHelper.TOKEN_TYPES} in_segmentType - The type of segment in the tokenized path\n *\n * @return {property-properties.BaseProperty|undefined} The child property that has been resolved\n * @protected\n */\n _resolvePathSegment(in_segment, in_segmentType) {\n return this.get(in_segment);\n };\n\n /**\n * Function to serialize special primitive types.\n * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n * special treatment on serialization. For supported types, we can just return the input here.\n *\n * @param {*} in_obj - The object to be serialized\n * @return {property-properties.SerializedChangeSet} the serialized object\n */\n _serializeValue(in_obj) {\n return in_obj;\n };\n\n /**\n * Function to serialize arrays of special primitive types.\n * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n * special treatment on serialization. For supported types, we can just return the input here.\n *\n * @param {Array} in_array - The array of special objects to be serialized\n * @return {Array<property-properties.SerializedChangeSet>} the serialized object\n */\n _serializeArray(in_array) {\n return in_array;\n };\n\n /**\n * Function to deserialize arrays of special primitive types.\n * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n * special treatment on deserialization. For supported types, we can just return the input here.\n *\n * @param {Array<property-properties.SerializedChangeSet>} in_serializedObj the serialized object\n * @return {Array} in_array - The array of special objects that were deserialized\n */\n _deserializeArray(in_serializedObj) {\n return in_serializedObj;\n };\n}\n\n/**\n * An ArrayProperty which stores Float32 values\n */\nexport class Float32ArrayProperty extends ValueArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.Float32ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super({ ...in_params, typeid: 'Float32' });\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new BaseDataArray(Float32Array, in_length);\n };\n}\n\n/**\n * An ArrayProperty which stores Float64 values\n */\nexport class Float64ArrayProperty extends ValueArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.Float64ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super({ ...in_params, typeid: 'Float64' });\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new BaseDataArray(Float64Array, in_length);\n };\n}\n\n/**\n * An ArrayProperty which stores Uint8 values\n */\nexport class Uint8ArrayProperty extends ValueArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.Uint8ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super({ ...in_params, typeid: 'Uint8' });\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new BaseDataArray(Uint8Array, in_length);\n };\n}\n\n/**\n * An ArrayProperty which stores Int8 values\n *\n*/\nexport class Int8ArrayProperty extends ValueArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.Int8ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super({ ...in_params, typeid: 'Int8' });\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new BaseDataArray(Int8Array, in_length);\n };\n\n}\n\n/**\n * An ArrayProperty which stores Uint16 values\n */\nexport class Uint16ArrayProperty extends ValueArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.Uint16ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super({ ...in_params, typeid: 'Uint16' });\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new BaseDataArray(Uint16Array, in_length);\n };\n}\n\n\n/**\n * An ArrayProperty which stores Int16 values\n */\nexport class Int16ArrayProperty extends ValueArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.Int16ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super({ ...in_params, typeid: 'Int16' });\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new BaseDataArray(Int16Array, in_length);\n };\n\n}\n\n/**\n * An ArrayProperty which stores Uint32 values\n */\nexport class Uint32ArrayProperty extends ValueArrayProperty {\n /** @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.Uint32ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super({ ...in_params, typeid: 'Uint32' });\n };\n\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new BaseDataArray(Uint32Array, in_length);\n };\n}\n\n\n/**\n * An ArrayProperty which stores Int32 values\n */\nexport class Int32ArrayProperty extends ValueArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.Int32ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super({ ...in_params, typeid: 'Int32' });\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new BaseDataArray(Int32Array, in_length);\n };\n}\n\n/**\n * An ArrayProperty which stores Int64 values\n */\nexport class Integer64ArrayProperty extends ValueArrayProperty {\n /** @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.Integer64ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super(in_params);\n };\n\n /**\n * Function to serialize special primitive types.\n * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n * special treatment on serialization. For supported types, we can just return the input here.\n *\n * @param {*} in_obj - The object to be serialized\n * @return {property-properties.SerializedChangeSet} the serialized object\n */\n _serializeValue(in_obj) {\n if (in_obj instanceof Int64 || in_obj instanceof Uint64) {\n return [in_obj.getValueLow(), in_obj.getValueHigh()];\n }\n return in_obj;\n };\n\n\n /**\n * Function to serialize arrays of special primitive types.\n * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n * special treatment on serialization. For supported types, we can just return the input here.\n *\n * @param {Array} in_array - The array of special objects to be serialized\n * @return {Array<property-properties.SerializedChangeSet>} the serialized object\n */\n _serializeArray(in_array) {\n var result = [];\n for (var i = 0; i < in_array.length; i++) {\n result.push(this._serializeValue(in_array[i]));\n }\n return result;\n };\n\n /**\n * Function to deserialize arrays of special primitive types.\n * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n * special treatment on deserialization. For supported types, we can just return the input here.\n *\n * @param {Array<property-properties.SerializedChangeSet>} in_serializedObj the serialized object\n * @return {Array} in_array - The array of special objects that were deserialized\n */\n _deserializeArray(in_serializedObj) {\n var result = [];\n for (var i = 0; i < in_serializedObj.length; i++) {\n result.push(this._deserializeValue(in_serializedObj[i]));\n }\n return result;\n };\n\n /**\n * @inheritdoc\n */\n _prettyPrint(indent, externalId, printFct) {\n\n printFct(indent + externalId + this.getId() + ' (Array of ' + this.getTypeid() + '): [');\n var childIndent = indent + ' ';\n var int64Prop;\n for (var i = 0; i < this._dataArrayGetLength(); i++) {\n // TODO: The 'toString()' function is defined on Integer64Property, so we need to create\n // such object to use it. It would be better to have it in Integer64.prototype.toString\n if (this._dataArrayGetValue(i) instanceof Int64) {\n int64Prop = new Int64Property({});\n } else {\n int64Prop = new Uint64Property({});\n }\n int64Prop.setValueLow(this._dataArrayGetValue(i).getValueLow());\n int64Prop.setValueHigh(this._dataArrayGetValue(i).getValueHigh());\n printFct(childIndent + i + ': ' + int64Prop);\n }\n printFct(indent + ']');\n };\n}\n/**\n * An ArrayProperty which stores Int64 values\n */\nexport class Int64ArrayProperty extends Integer64ArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.Integer64ArrayProperty\n * @alias property-properties.Int64ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super({ ...in_params, typeid: 'Int64' });\n };\n\n /**\n * Sets the array properties elements to the content of the given array\n * All changed elements must already exist. This will overwrite existing elements.\n * @param {number} in_offset target start index\n * @param {Array<*>|Array<property-properties.BaseProperty>} in_array contains the elements to be set\n * @throws if in_offset is not a number\n * @throws if in_offset is smaller than zero or higher than the length of the array\n */\n setRange(in_offset, in_array) {\n if (!_.isArray(in_array)) {\n throw new Error(MSG.IN_ARRAY_NOT_ARRAY + 'Int64ArrayProperty.setRange');\n }\n var out_array = in_array.map((element) => {\n return _castFunctors.Int64(element);\n });\n ArrayProperty.prototype.setRange.call(this, in_offset, out_array);\n };\n\n /**\n * Inserts the content of a given array into the array property\n * It will not overwrite the existing values but push them to the right instead.\n * E.g. [1, 2, 3] .insertRange(1, [9, 8]) => [1, 9, 8, 2, 3]\n * @param {number} in_offset target index\n * @param {Array<*>} in_array the array to be inserted\n * @throws if in_offset is smaller than zero, larger than the length of the array or not a number.\n * @throws if trying to insert a property that already has a parent.\n * @throws if tyring to modify a referenced property.\n */\n insertRange(in_offset, in_array) {\n var out_array = in_array.map((element) => {\n return _castFunctors.Int64(element);\n });\n ArrayProperty.prototype.insertRange.call(this, in_offset, out_array);\n };\n\n /**\n * Specialized function to deserialize Int64 primitive types.\n * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n * special treatment on deserialization. For supported types, we can just return the input here.\n *\n * @param {property-properties.SerializedChangeSet} in_serializedObj - The object to be deserialized\n * @return {Int64} the deserialized value\n */\n _deserializeValue(in_serializedObj) {\n return new Int64(in_serializedObj[0], in_serializedObj[1]);\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new UniversalDataArray(in_length);\n for (var i = 0; i < in_length; i++) {\n this._dataArraySetValue(i, new Int64());\n }\n };\n\n}\n\n/**\n * An ArrayProperty which stores Uint64 values\n */\nexport class Uint64ArrayProperty extends Integer64ArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.Integer64ArrayProperty\n * @alias property-properties.Uint64ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super({ ...in_params, typeid: 'Uint64' });\n };\n\n /**\n * Specialized function to deserialize Uint64 primitive types.\n * Some primitive types (e.g. Uint64, which is not natively supported by javascript) require\n * special treatment on deserialization. For supported types, we can just return the input here.\n *\n * @param {property-properties.SerializedChangeSet} in_serializedObj - The object to be deserialized\n * @return {Uint64} the deserialized value\n */\n _deserializeValue(in_serializedObj) {\n return new Uint64(in_serializedObj[0], in_serializedObj[1]);\n };\n\n /**\n * Sets the array properties elements to the content of the given array\n * All changed elements must already exist. This will overwrite existing elements.\n * @param {number} in_offset target start index\n * @param {Array<*>|Array<property-properties.BaseProperty>} in_array contains the elements to be set\n * @throws if in_offset is not a number\n * @throws if in_offset is smaller than zero or higher than the length of the array\n */\n setRange(in_offset, in_array) {\n if (!_.isArray(in_array)) {\n throw new Error(MSG.IN_ARRAY_NOT_ARRAY + 'Uint64ArrayProperty.setRange');\n }\n var out_array = in_array.map((element) => {\n return _castFunctors.Uint64(element);\n });\n ArrayProperty.prototype.setRange.call(this, in_offset, out_array);\n };\n\n /**\n * Inserts the content of a given array into the array property\n * It will not overwrite the existing values but push them to the right instead.\n * E.g. [1, 2, 3] .insertRange(1, [9, 8]) => [1, 9, 8, 2, 3]\n * @param {number} in_offset target index\n * @param {Array<*>} in_array the array to be inserted\n * @throws if in_offset is smaller than zero, larger than the length of the array or not a number.\n * @throws if trying to insert a property that already has a parent.\n * @throws if tyring to modify a referenced property.\n */\n insertRange(in_offset, in_array) {\n var out_array = in_array.map((element) => {\n return _castFunctors.Uint64(element);\n });\n ArrayProperty.prototype.insertRange.call(this, in_offset, out_array);\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new UniversalDataArray(in_length);\n for (var i = 0; i < in_length; i++) {\n this._dataArraySetValue(i, new Uint64());\n }\n };\n\n}\n\n/**\n * An ArrayProperty which stores String values\n */\nexport class StringArrayProperty extends ValueArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.StringArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super({ ...in_params, typeid: 'String' });\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new UniversalDataArray(in_length);\n for (var i = 0; i < in_length; i++) {\n this._dataArraySetValue(i, '');\n }\n };\n\n}\n\n/**\n * An ArrayProperty which stores Boolean values\n */\nexport class BoolArrayProperty extends ValueArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.BoolArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super({ ...in_params, typeid: 'Bool' }, Array, true);\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new BoolDataArray(in_length);\n for (var i = 0; i < in_length; i++) {\n this._dataArraySetValue(i, false);\n }\n };\n}\n"]}
1
+ {"version":3,"file":"valueArrayProperty.js","sourceRo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C,SAAS,CAAC,CAAC;QACvD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,EAAE;YAChC,IAAI,CAAC,kBAAkB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;SAClC;IACL,CAAC;IAAA,CAAC;CAEL;AAzBD,kDAyBC;AACD,mBAAmB,CAAC,SAAS,CAAC,OAAO,GAAG,QAAQ,CAAC;AAEjD;;GAEG;AACH,MAAa,iBAAkB,SAAQ,kBAAkB;IACrD;;;;;;;;OAQG;IACH,YAAY,SAAS;QACjB,KAAK,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;IAAA,CAAC;IAEF;;;OAGG;IACH,gBAAgB,CAAC,SAAS;QACtB,IAAI,CAAC,aAAa,GAAG,IAAI,aAAa,CAAC,SAAS,CAAC,CAAC;QAClD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,EAAE;YAChC,IAAI,CAAC,kBAAkB,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;SACrC;IACL,CAAC;IAAA,CAAC;CACL;AAxBD,8CAwBC;AACD,iBAAiB,CAAC,SAAS,CAAC,OAAO,GAAG,MAAM,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n/* eslint-disable new-cap*/\n/**\n * @fileoverview Definition of the valuearray property class\n */\n\nconst _ = require('lodash');\nconst { MSG } = require('@fluid-experimental/property-common').constants;\nconst { _castFunctors } = require('./primitiveTypeCasts');\nconst {\n BaseDataArray,\n UniversalDataArray,\n BoolDataArray,\n Uint64,\n Int64\n} = require('@fluid-experimental/property-common');\nconst { ArrayProperty } = require('./arrayProperty');\nconst { Int64Property, Uint64Property } = require('../properties/intProperties');\n\n/**\n * An array property which stores primitive values\n */\nexport class ValueArrayProperty extends ArrayProperty {\n\n /**\n * @param {Object} in_params - Input parameters for property creation\n * @constructor\n * @protected\n * @extends property-properties.ArrayProperty\n * @alias property-properties.ValueArrayProperty\n */\n constructor(in_params) {\n super(in_params, true);\n };\n\n /**\n * returns the value at in_position for a primitive array\n * @param {number} in_position the array index\n * @return {*} the value\n */\n _getValue(in_position) {\n return this._dataArrayRef.getValue(in_position);\n };\n\n /**\n * returns the array of primitive values.\n * @return {Array<*>} the array of values.\n * For example: ['string1', 'string2']\n */\n getValues() {\n var result = [];\n var ids = this.getIds();\n for (var i = 0; i < ids.length; i++) {\n result.push(this.get(ids[i]));\n }\n return result;\n };\n\n /**\n * Resolves a direct child node based on the given path segment\n *\n * @param {String} in_segment - The path segment to resolve\n * @param {property-properties.PathHelper.TOKEN_TYPES} in_segmentType - The type of segment in the tokenized path\n *\n * @return {property-properties.BaseProperty|undefined} The child property that has been resolved\n * @protected\n */\n _resolvePathSegment(in_segment, in_segmentType) {\n return this.get(in_segment);\n };\n\n /**\n * Function to serialize special primitive types.\n * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n * special treatment on serialization. For supported types, we can just return the input here.\n *\n * @param {*} in_obj - The object to be serialized\n * @return {property-properties.SerializedChangeSet} the serialized object\n */\n _serializeValue(in_obj) {\n return in_obj;\n };\n\n /**\n * Function to serialize arrays of special primitive types.\n * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n * special treatment on serialization. For supported types, we can just return the input here.\n *\n * @param {Array} in_array - The array of special objects to be serialized\n * @return {Array<property-properties.SerializedChangeSet>} the serialized object\n */\n _serializeArray(in_array) {\n return in_array;\n };\n\n /**\n * Function to deserialize arrays of special primitive types.\n * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n * special treatment on deserialization. For supported types, we can just return the input here.\n *\n * @param {Array<property-properties.SerializedChangeSet>} in_serializedObj the serialized object\n * @return {Array} in_array - The array of special objects that were deserialized\n */\n _deserializeArray(in_serializedObj) {\n return in_serializedObj;\n };\n}\nValueArrayProperty.prototype._isPrimitive = true;\n\n/**\n * An ArrayProperty which stores Float32 values\n */\nexport class Float32ArrayProperty extends ValueArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.Float32ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super(in_params);\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new BaseDataArray(Float32Array, in_length);\n };\n}\nFloat32ArrayProperty.prototype._typeid = 'Float32';\n\n/**\n * An ArrayProperty which stores Float64 values\n */\nexport class Float64ArrayProperty extends ValueArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.Float64ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super(in_params);\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new BaseDataArray(Float64Array, in_length);\n };\n}\nFloat64ArrayProperty.prototype._typeid = 'Float64';\n\n/**\n * An ArrayProperty which stores Uint8 values\n */\nexport class Uint8ArrayProperty extends ValueArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.Uint8ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super(in_params);\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new BaseDataArray(Uint8Array, in_length);\n };\n}\nUint8ArrayProperty.prototype._typeid = 'Uint8';\n\n/**\n * An ArrayProperty which stores Int8 values\n *\n*/\nexport class Int8ArrayProperty extends ValueArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.Int8ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super(in_params);\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new BaseDataArray(Int8Array, in_length);\n };\n}\nInt8ArrayProperty.prototype._typeid = 'Int8';\n\n/**\n * An ArrayProperty which stores Uint16 values\n */\nexport class Uint16ArrayProperty extends ValueArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.Uint16ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super(in_params);\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new BaseDataArray(Uint16Array, in_length);\n };\n}\nUint16ArrayProperty.prototype._typeid = 'Uint16';\n\n/**\n * An ArrayProperty which stores Int16 values\n */\nexport class Int16ArrayProperty extends ValueArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.Int16ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super(in_params);\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new BaseDataArray(Int16Array, in_length);\n };\n}\nInt16ArrayProperty.prototype._typeid = 'Int16';\n\n/**\n * An ArrayProperty which stores Uint32 values\n */\nexport class Uint32ArrayProperty extends ValueArrayProperty {\n /** @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.Uint32ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super(in_params);\n };\n\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new BaseDataArray(Uint32Array, in_length);\n };\n}\nUint32ArrayProperty.prototype._typeid = 'Uint32';\n\n/**\n * An ArrayProperty which stores Int32 values\n */\nexport class Int32ArrayProperty extends ValueArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.Int32ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super(in_params);\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new BaseDataArray(Int32Array, in_length);\n };\n}\nInt32ArrayProperty.prototype._typeid = 'Int32';\n\n/**\n * An ArrayProperty which stores Int64 values\n */\nexport class Integer64ArrayProperty extends ValueArrayProperty {\n /** @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.Integer64ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super(in_params);\n };\n\n /**\n * Function to serialize special primitive types.\n * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n * special treatment on serialization. For supported types, we can just return the input here.\n *\n * @param {*} in_obj - The object to be serialized\n * @return {property-properties.SerializedChangeSet} the serialized object\n */\n _serializeValue(in_obj) {\n if (in_obj instanceof Int64 || in_obj instanceof Uint64) {\n return [in_obj.getValueLow(), in_obj.getValueHigh()];\n }\n return in_obj;\n };\n\n\n /**\n * Function to serialize arrays of special primitive types.\n * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n * special treatment on serialization. For supported types, we can just return the input here.\n *\n * @param {Array} in_array - The array of special objects to be serialized\n * @return {Array<property-properties.SerializedChangeSet>} the serialized object\n */\n _serializeArray(in_array) {\n var result = [];\n for (var i = 0; i < in_array.length; i++) {\n result.push(this._serializeValue(in_array[i]));\n }\n return result;\n };\n\n /**\n * Function to deserialize arrays of special primitive types.\n * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n * special treatment on deserialization. For supported types, we can just return the input here.\n *\n * @param {Array<property-properties.SerializedChangeSet>} in_serializedObj the serialized object\n * @return {Array} in_array - The array of special objects that were deserialized\n */\n _deserializeArray(in_serializedObj) {\n var result = [];\n for (var i = 0; i < in_serializedObj.length; i++) {\n result.push(this._deserializeValue(in_serializedObj[i]));\n }\n return result;\n };\n\n /**\n * @inheritdoc\n */\n _prettyPrint(indent, externalId, printFct) {\n\n printFct(indent + externalId + this.getId() + ' (Array of ' + this.getTypeid() + '): [');\n var childIndent = indent + ' ';\n var int64Prop;\n for (var i = 0; i < this._dataArrayGetLength(); i++) {\n // TODO: The 'toString()' function is defined on Integer64Property, so we need to create\n // such object to use it. It would be better to have it in Integer64.prototype.toString\n if (this._dataArrayGetValue(i) instanceof Int64) {\n int64Prop = new Int64Property({});\n } else {\n int64Prop = new Uint64Property({});\n }\n int64Prop.setValueLow(this._dataArrayGetValue(i).getValueLow());\n int64Prop.setValueHigh(this._dataArrayGetValue(i).getValueHigh());\n printFct(childIndent + i + ': ' + int64Prop);\n }\n printFct(indent + ']');\n };\n}\n/**\n * An ArrayProperty which stores Int64 values\n */\nexport class Int64ArrayProperty extends Integer64ArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.Integer64ArrayProperty\n * @alias property-properties.Int64ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super(in_params);\n };\n\n /**\n * Sets the array properties elements to the content of the given array\n * All changed elements must already exist. This will overwrite existing elements.\n * @param {number} in_offset target start index\n * @param {Array<*>|Array<property-properties.BaseProperty>} in_array contains the elements to be set\n * @throws if in_offset is not a number\n * @throws if in_offset is smaller than zero or higher than the length of the array\n */\n setRange(in_offset, in_array) {\n if (!_.isArray(in_array)) {\n throw new Error(MSG.IN_ARRAY_NOT_ARRAY + 'Int64ArrayProperty.setRange');\n }\n var out_array = in_array.map((element) => {\n return _castFunctors.Int64(element);\n });\n ArrayProperty.prototype.setRange.call(this, in_offset, out_array);\n };\n\n /**\n * Inserts the content of a given array into the array property\n * It will not overwrite the existing values but push them to the right instead.\n * E.g. [1, 2, 3] .insertRange(1, [9, 8]) => [1, 9, 8, 2, 3]\n * @param {number} in_offset target index\n * @param {Array<*>} in_array the array to be inserted\n * @throws if in_offset is smaller than zero, larger than the length of the array or not a number.\n * @throws if trying to insert a property that already has a parent.\n * @throws if tyring to modify a referenced property.\n */\n insertRange(in_offset, in_array) {\n var out_array = in_array.map((element) => {\n return _castFunctors.Int64(element);\n });\n ArrayProperty.prototype.insertRange.call(this, in_offset, out_array);\n };\n\n /**\n * Specialized function to deserialize Int64 primitive types.\n * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n * special treatment on deserialization. For supported types, we can just return the input here.\n *\n * @param {property-properties.SerializedChangeSet} in_serializedObj - The object to be deserialized\n * @return {Int64} the deserialized value\n */\n _deserializeValue(in_serializedObj) {\n return new Int64(in_serializedObj[0], in_serializedObj[1]);\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new UniversalDataArray(in_length);\n for (var i = 0; i < in_length; i++) {\n this._dataArraySetValue(i, new Int64());\n }\n };\n\n}\nInt64ArrayProperty.prototype._typeid = 'Int64';\n\n/**\n * An ArrayProperty which stores Uint64 values\n */\nexport class Uint64ArrayProperty extends Integer64ArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.Integer64ArrayProperty\n * @alias property-properties.Uint64ArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super(in_params);\n };\n\n /**\n * Specialized function to deserialize Uint64 primitive types.\n * Some primitive types (e.g. Uint64, which is not natively supported by javascript) require\n * special treatment on deserialization. For supported types, we can just return the input here.\n *\n * @param {property-properties.SerializedChangeSet} in_serializedObj - The object to be deserialized\n * @return {Uint64} the deserialized value\n */\n _deserializeValue(in_serializedObj) {\n return new Uint64(in_serializedObj[0], in_serializedObj[1]);\n };\n\n /**\n * Sets the array properties elements to the content of the given array\n * All changed elements must already exist. This will overwrite existing elements.\n * @param {number} in_offset target start index\n * @param {Array<*>|Array<property-properties.BaseProperty>} in_array contains the elements to be set\n * @throws if in_offset is not a number\n * @throws if in_offset is smaller than zero or higher than the length of the array\n */\n setRange(in_offset, in_array) {\n if (!_.isArray(in_array)) {\n throw new Error(MSG.IN_ARRAY_NOT_ARRAY + 'Uint64ArrayProperty.setRange');\n }\n var out_array = in_array.map((element) => {\n return _castFunctors.Uint64(element);\n });\n ArrayProperty.prototype.setRange.call(this, in_offset, out_array);\n };\n\n /**\n * Inserts the content of a given array into the array property\n * It will not overwrite the existing values but push them to the right instead.\n * E.g. [1, 2, 3] .insertRange(1, [9, 8]) => [1, 9, 8, 2, 3]\n * @param {number} in_offset target index\n * @param {Array<*>} in_array the array to be inserted\n * @throws if in_offset is smaller than zero, larger than the length of the array or not a number.\n * @throws if trying to insert a property that already has a parent.\n * @throws if tyring to modify a referenced property.\n */\n insertRange(in_offset, in_array) {\n var out_array = in_array.map((element) => {\n return _castFunctors.Uint64(element);\n });\n ArrayProperty.prototype.insertRange.call(this, in_offset, out_array);\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new UniversalDataArray(in_length);\n for (var i = 0; i < in_length; i++) {\n this._dataArraySetValue(i, new Uint64());\n }\n };\n}\nUint64ArrayProperty.prototype._typeid = 'Uint64';\n\n/**\n * An ArrayProperty which stores String values\n */\nexport class StringArrayProperty extends ValueArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.StringArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super(in_params);\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new UniversalDataArray(in_length);\n for (var i = 0; i < in_length; i++) {\n this._dataArraySetValue(i, '');\n }\n };\n\n}\nStringArrayProperty.prototype._typeid = 'String';\n\n/**\n * An ArrayProperty which stores Boolean values\n */\nexport class BoolArrayProperty extends ValueArrayProperty {\n /**\n * @param {Object} in_params - Input parameters for property creation\n *\n * @constructor\n * @protected\n * @extends property-properties.ValueArrayProperty\n * @alias property-properties.BoolArrayProperty\n * @category Arrays\n */\n constructor(in_params) {\n super(in_params, Array, true);\n };\n\n /**\n * Creates and initializes the data array\n * @param {Number} in_length the initial length of the array\n */\n _dataArrayCreate(in_length) {\n this._dataArrayRef = new BoolDataArray(in_length);\n for (var i = 0; i < in_length; i++) {\n this._dataArraySetValue(i, false);\n }\n };\n}\nBoolArrayProperty.prototype._typeid = 'Bool';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"valueMapProperty.d.ts","sourceRoot":"","sources":["../../src/properties/valueMapProperty.js"],"names":[],"mappings":"AAkBA;;GAEG;AACH;IAEI;;;;;;;;OAQG;IACH,wBAEC;IA4FD,4BAEC;CAoEJ;AAED;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAED,kBAAqC;CACxC;AAED;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IACD,kBAAqC;CACxC;AAED;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAED,kBAAoC;CAEvC;AAED;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAED,kBAAoC;CACvC;AAED;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAED,kBAAmC;CACtC;AAED;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAED,kBAAmC;CACtC;AAED;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;CAuDJ;AAED;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAED,8DAAmC;CAetC;AAED;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAED,8DAAoC;CAavC;AAED;;GAEG;AACH;IACI;;;;;;;OAOG;IACH,wBAEC;IAED,kBAAmC;CACtC;AAED;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAED,kBAAkC;CACrC;AAED;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAED,2CAAoC;CACvC;AAED;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAED,6CAAqC;CACxC"}
1
+ {"version":3,"file":"valueMapProperty.d.ts","sourceRoot":"","sources":["../../src/properties/valueMapProperty.js"],"names":[],"mappings":"AAkBA;;GAEG;AACH;IAEI;;;;;;;;OAQG;IACH,wBAEC;IAyFD,4BAEC;CAoEJ;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAIL,kBAAyC;CAFxC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAGL,kBAAyC;CAFxC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAGL,kBAAwC;CAFvC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAGL,kBAAwC;CAFvC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAGL,kBAAuC;CAFtC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAGL,kBAAuC;CAFtC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;CAuDJ;AAED;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAgBL,8DAAuC;CAFtC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAeL,8DAAwC;CAFvC;AAID;;GAEG;AACH;IACI;;;;;;;OAOG;IACH,wBAEC;IAGL,kBAAuC;CAFtC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAGL,kBAAsC;CAFrC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAGL,2CAAwC;CAFvC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAGL,6CAAsC;CAFrC"}
@@ -31,8 +31,6 @@ class ValueMapProperty extends MapProperty {
31
31
  */
32
32
  constructor(in_params) {
33
33
  super(in_params);
34
- // The value map contains primitive types
35
- this._containsPrimitiveTypes = true;
36
34
  }
37
35
  ;
38
36
  /**
@@ -192,6 +190,8 @@ class ValueMapProperty extends MapProperty {
192
190
  ;
193
191
  }
194
192
  exports.ValueMapProperty = ValueMapProperty;
193
+ // The value map contains primitive types
194
+ ValueMapProperty.prototype._containsPrimitiveTypes = true;
195
195
  /**
196
196
  * A ValueMapProperty which stores Float32 values
197
197
  */
@@ -206,11 +206,12 @@ class Float32MapProperty extends ValueMapProperty {
206
206
  * @category Maps
207
207
  */
208
208
  constructor(in_params) {
209
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Float32' }));
210
- this._castFunctor = _castFunctors.Float32;
209
+ super(in_params);
211
210
  }
212
211
  }
213
212
  exports.Float32MapProperty = Float32MapProperty;
213
+ Float32MapProperty.prototype._typeid = 'Float32';
214
+ Float32MapProperty.prototype._castFunctor = _castFunctors.Float32;
214
215
  /**
215
216
  * A ValueMapProperty which stores Float64 values
216
217
  */
@@ -225,12 +226,13 @@ class Float64MapProperty extends ValueMapProperty {
225
226
  * @category Maps
226
227
  */
227
228
  constructor(in_params) {
228
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Float64' }));
229
- this._castFunctor = _castFunctors.Float64;
229
+ super(in_params);
230
230
  }
231
231
  ;
232
232
  }
233
233
  exports.Float64MapProperty = Float64MapProperty;
234
+ Float64MapProperty.prototype._typeid = 'Float64';
235
+ Float64MapProperty.prototype._castFunctor = _castFunctors.Float64;
234
236
  /**
235
237
  * A ValueMapProperty which stores Uint32 values
236
238
  */
@@ -245,12 +247,13 @@ class Uint32MapProperty extends ValueMapProperty {
245
247
  * @category Maps
246
248
  */
247
249
  constructor(in_params) {
248
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Uint32' }));
249
- this._castFunctor = _castFunctors.Uint32;
250
+ super(in_params);
250
251
  }
251
252
  ;
252
253
  }
253
254
  exports.Uint32MapProperty = Uint32MapProperty;
255
+ Uint32MapProperty.prototype._typeid = 'Uint32';
256
+ Uint32MapProperty.prototype._castFunctor = _castFunctors.Uint32;
254
257
  /**
255
258
  * A ValueMapProperty which stores Uint16 values
256
259
  */
@@ -265,12 +268,13 @@ class Uint16MapProperty extends ValueMapProperty {
265
268
  * @category Maps
266
269
  */
267
270
  constructor(in_params) {
268
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Uint16' }));
269
- this._castFunctor = _castFunctors.Uint16;
271
+ super(in_params);
270
272
  }
271
273
  ;
272
274
  }
273
275
  exports.Uint16MapProperty = Uint16MapProperty;
276
+ Uint16MapProperty.prototype._typeid = 'Uint16';
277
+ Uint16MapProperty.prototype._castFunctor = _castFunctors.Uint16;
274
278
  /**
275
279
  * A ValueMapProperty which stores Uint8 values
276
280
  */
@@ -285,12 +289,13 @@ class Uint8MapProperty extends ValueMapProperty {
285
289
  * @category Maps
286
290
  */
287
291
  constructor(in_params) {
288
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Uint8' }));
289
- this._castFunctor = _castFunctors.Uint8;
292
+ super(in_params);
290
293
  }
291
294
  ;
292
295
  }
293
296
  exports.Uint8MapProperty = Uint8MapProperty;
297
+ Uint8MapProperty.prototype._typeid = 'Uint8';
298
+ Uint8MapProperty.prototype._castFunctor = _castFunctors.Uint8;
294
299
  /**
295
300
  * A ValueMapProperty which stores Int32 values
296
301
  */
@@ -305,12 +310,13 @@ class Int32MapProperty extends ValueMapProperty {
305
310
  * @category Maps
306
311
  */
307
312
  constructor(in_params) {
308
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Int32' }));
309
- this._castFunctor = _castFunctors.Int32;
313
+ super(in_params);
310
314
  }
311
315
  ;
312
316
  }
313
317
  exports.Int32MapProperty = Int32MapProperty;
318
+ Int32MapProperty.prototype._typeid = 'Int32';
319
+ Int32MapProperty.prototype._castFunctor = _castFunctors.Int32;
314
320
  /**
315
321
  * An abstract base class for 64 bit integer map properties
316
322
  */
@@ -400,8 +406,7 @@ class Int64MapProperty extends Integer64MapProperty {
400
406
  * @category Maps
401
407
  */
402
408
  constructor(in_params) {
403
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Int64' }));
404
- this._castFunctor = _castFunctors.Int64;
409
+ super(in_params);
405
410
  }
406
411
  ;
407
412
  /**
@@ -418,6 +423,8 @@ class Int64MapProperty extends Integer64MapProperty {
418
423
  ;
419
424
  }
420
425
  exports.Int64MapProperty = Int64MapProperty;
426
+ Int64MapProperty.prototype._typeid = 'Int64';
427
+ Int64MapProperty.prototype._castFunctor = _castFunctors.Int64;
421
428
  /**
422
429
  * A ValueMapProperty which stores Uint64 Properties
423
430
  */
@@ -432,8 +439,7 @@ class Uint64MapProperty extends Integer64MapProperty {
432
439
  * @category Maps
433
440
  */
434
441
  constructor(in_params) {
435
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Uint64' }));
436
- this._castFunctor = _castFunctors.Uint64;
442
+ super(in_params);
437
443
  }
438
444
  ;
439
445
  /**
@@ -450,6 +456,8 @@ class Uint64MapProperty extends Integer64MapProperty {
450
456
  ;
451
457
  }
452
458
  exports.Uint64MapProperty = Uint64MapProperty;
459
+ Uint64MapProperty.prototype._typeid = 'Uint64';
460
+ Uint64MapProperty.prototype._castFunctor = _castFunctors.Uint64;
453
461
  /**
454
462
  * A ValueMapProperty which stores Int16 values
455
463
  */
@@ -463,12 +471,13 @@ class Int16MapProperty extends ValueMapProperty {
463
471
  * @category Maps
464
472
  */
465
473
  constructor(in_params) {
466
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Int16' }));
467
- this._castFunctor = _castFunctors.Int16;
474
+ super(in_params);
468
475
  }
469
476
  ;
470
477
  }
471
478
  exports.Int16MapProperty = Int16MapProperty;
479
+ Int16MapProperty.prototype._typeid = 'Int16';
480
+ Int16MapProperty.prototype._castFunctor = _castFunctors.Int16;
472
481
  /**
473
482
  * A ValueMapProperty which stores Int8 values
474
483
  */
@@ -483,12 +492,13 @@ class Int8MapProperty extends ValueMapProperty {
483
492
  * @category Maps
484
493
  */
485
494
  constructor(in_params) {
486
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Int8' }));
487
- this._castFunctor = _castFunctors.Int8;
495
+ super(in_params);
488
496
  }
489
497
  ;
490
498
  }
491
499
  exports.Int8MapProperty = Int8MapProperty;
500
+ Int8MapProperty.prototype._typeid = 'Int8';
501
+ Int8MapProperty.prototype._castFunctor = _castFunctors.Int8;
492
502
  /**
493
503
  * A ValueMapProperty which stores string values
494
504
  */
@@ -503,12 +513,13 @@ class StringMapProperty extends ValueMapProperty {
503
513
  * @category Maps
504
514
  */
505
515
  constructor(in_params) {
506
- super(Object.assign({ typeid: 'String' }, in_params));
507
- this._castFunctor = _castFunctors.String;
516
+ super(in_params);
508
517
  }
509
518
  ;
510
519
  }
511
520
  exports.StringMapProperty = StringMapProperty;
521
+ StringMapProperty.prototype._typeid = 'String';
522
+ StringMapProperty.prototype._castFunctor = _castFunctors.String;
512
523
  /**
513
524
  * A ValueMapProperty which stores boolean values
514
525
  */
@@ -523,10 +534,11 @@ class BoolMapProperty extends ValueMapProperty {
523
534
  * @category Maps
524
535
  */
525
536
  constructor(in_params) {
526
- super(Object.assign(Object.assign({}, in_params), { typeid: 'Bool' }));
527
- this._castFunctor = _castFunctors.Boolean;
537
+ super(in_params);
528
538
  }
529
539
  ;
530
540
  }
531
541
  exports.BoolMapProperty = BoolMapProperty;
542
+ BoolMapProperty.prototype._typeid = 'Bool';
543
+ BoolMapProperty.prototype._castFunctor = _castFunctors.Boolean;
532
544
  //# sourceMappingURL=valueMapProperty.js.map