@fluid-experimental/property-properties 2.0.0-internal.3.0.2 → 2.0.0-internal.3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/containerSerializer.d.ts.map +1 -1
- package/dist/containerSerializer.js +5 -5
- package/dist/containerSerializer.js.map +1 -1
- package/dist/enableValidations.js.map +1 -1
- package/dist/index.d.ts +19 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/properties/abstractStaticCollectionProperty.d.ts +10 -10
- package/dist/properties/abstractStaticCollectionProperty.d.ts.map +1 -1
- package/dist/properties/abstractStaticCollectionProperty.js +70 -53
- package/dist/properties/abstractStaticCollectionProperty.js.map +1 -1
- package/dist/properties/arrayProperty.d.ts.map +1 -1
- package/dist/properties/arrayProperty.js +152 -103
- package/dist/properties/arrayProperty.js.map +1 -1
- package/dist/properties/baseProperty.d.ts +4 -4
- package/dist/properties/baseProperty.d.ts.map +1 -1
- package/dist/properties/baseProperty.js +69 -47
- package/dist/properties/baseProperty.js.map +1 -1
- package/dist/properties/boolProperty.d.ts.map +1 -1
- package/dist/properties/boolProperty.js +3 -3
- package/dist/properties/boolProperty.js.map +1 -1
- package/dist/properties/containerProperty.d.ts +8 -8
- package/dist/properties/containerProperty.d.ts.map +1 -1
- package/dist/properties/containerProperty.js +33 -26
- package/dist/properties/containerProperty.js.map +1 -1
- package/dist/properties/enumArrayProperty.d.ts.map +1 -1
- package/dist/properties/enumArrayProperty.js +14 -14
- package/dist/properties/enumArrayProperty.js.map +1 -1
- package/dist/properties/enumProperty.d.ts.map +1 -1
- package/dist/properties/enumProperty.js +17 -17
- package/dist/properties/enumProperty.js.map +1 -1
- package/dist/properties/floatProperties.js +4 -4
- package/dist/properties/floatProperties.js.map +1 -1
- package/dist/properties/index.d.ts +23 -23
- package/dist/properties/index.d.ts.map +1 -1
- package/dist/properties/index.js.map +1 -1
- package/dist/properties/indexedCollectionBaseProperty.d.ts.map +1 -1
- package/dist/properties/indexedCollectionBaseProperty.js +47 -37
- package/dist/properties/indexedCollectionBaseProperty.js.map +1 -1
- package/dist/properties/intProperties.d.ts.map +1 -1
- package/dist/properties/intProperties.js +10 -10
- package/dist/properties/intProperties.js.map +1 -1
- package/dist/properties/lazyLoadedProperties.js.map +1 -1
- package/dist/properties/mapProperty.d.ts.map +1 -1
- package/dist/properties/mapProperty.js +21 -17
- package/dist/properties/mapProperty.js.map +1 -1
- package/dist/properties/namedNodeProperty.d.ts.map +1 -1
- package/dist/properties/namedNodeProperty.js +3 -3
- package/dist/properties/namedNodeProperty.js.map +1 -1
- package/dist/properties/namedProperty.d.ts.map +1 -1
- package/dist/properties/namedProperty.js +7 -5
- package/dist/properties/namedProperty.js.map +1 -1
- package/dist/properties/nodeProperty.d.ts.map +1 -1
- package/dist/properties/nodeProperty.js +5 -3
- package/dist/properties/nodeProperty.js.map +1 -1
- package/dist/properties/primitiveTypeCasts.d.ts.map +1 -1
- package/dist/properties/primitiveTypeCasts.js +9 -9
- package/dist/properties/primitiveTypeCasts.js.map +1 -1
- package/dist/properties/referenceArrayProperty.d.ts.map +1 -1
- package/dist/properties/referenceArrayProperty.js +31 -25
- package/dist/properties/referenceArrayProperty.js.map +1 -1
- package/dist/properties/referenceMapProperty.d.ts.map +1 -1
- package/dist/properties/referenceMapProperty.js +18 -18
- package/dist/properties/referenceMapProperty.js.map +1 -1
- package/dist/properties/referenceProperty.d.ts.map +1 -1
- package/dist/properties/referenceProperty.js +33 -29
- package/dist/properties/referenceProperty.js.map +1 -1
- package/dist/properties/setProperty.d.ts.map +1 -1
- package/dist/properties/setProperty.js +31 -29
- package/dist/properties/setProperty.js.map +1 -1
- package/dist/properties/stringProperty.d.ts.map +1 -1
- package/dist/properties/stringProperty.js +56 -40
- package/dist/properties/stringProperty.js.map +1 -1
- package/dist/properties/uintProperties.js +5 -5
- package/dist/properties/uintProperties.js.map +1 -1
- package/dist/properties/valueArrayProperty.d.ts +1 -1
- package/dist/properties/valueArrayProperty.d.ts.map +1 -1
- package/dist/properties/valueArrayProperty.js +30 -29
- package/dist/properties/valueArrayProperty.js.map +1 -1
- package/dist/properties/valueMapProperty.d.ts.map +1 -1
- package/dist/properties/valueMapProperty.js +31 -29
- package/dist/properties/valueMapProperty.js.map +1 -1
- package/dist/properties/valueProperty.d.ts.map +1 -1
- package/dist/properties/valueProperty.js +11 -9
- package/dist/properties/valueProperty.js.map +1 -1
- package/dist/propertyFactory.d.ts.map +1 -1
- package/dist/propertyFactory.js +309 -252
- package/dist/propertyFactory.js.map +1 -1
- package/dist/propertyTemplate.d.ts +17 -17
- package/dist/propertyTemplate.d.ts.map +1 -1
- package/dist/propertyTemplate.js +64 -45
- package/dist/propertyTemplate.js.map +1 -1
- package/dist/propertyTemplateWrapper.d.ts.map +1 -1
- package/dist/propertyTemplateWrapper.js +40 -25
- package/dist/propertyTemplateWrapper.js.map +1 -1
- package/dist/propertyUtils.d.ts.map +1 -1
- package/dist/propertyUtils.js.map +1 -1
- package/dist/test/properties/arrayProperty.spec.js +566 -490
- package/dist/test/properties/arrayProperty.spec.js.map +1 -1
- package/dist/test/properties/baseProperty.spec.js +293 -280
- package/dist/test/properties/baseProperty.spec.js.map +1 -1
- package/dist/test/properties/containerProperty.spec.js +100 -94
- package/dist/test/properties/containerProperty.spec.js.map +1 -1
- package/dist/test/properties/customArrayProperty.spec.js +174 -147
- package/dist/test/properties/customArrayProperty.spec.js.map +1 -1
- package/dist/test/properties/enumArrayProperty.spec.js +67 -63
- package/dist/test/properties/enumArrayProperty.spec.js.map +1 -1
- package/dist/test/properties/enumProperty.spec.js +115 -97
- package/dist/test/properties/enumProperty.spec.js.map +1 -1
- package/dist/test/properties/float32.spec.js +5 -5
- package/dist/test/properties/float32.spec.js.map +1 -1
- package/dist/test/properties/int64ArrayProperty.spec.js +157 -93
- package/dist/test/properties/int64ArrayProperty.spec.js.map +1 -1
- package/dist/test/properties/int64MapProperty.spec.js +185 -166
- package/dist/test/properties/int64MapProperty.spec.js.map +1 -1
- package/dist/test/properties/int64Property.spec.js +109 -109
- package/dist/test/properties/int64Property.spec.js.map +1 -1
- package/dist/test/properties/isLeafNode.spec.js +75 -76
- package/dist/test/properties/isLeafNode.spec.js.map +1 -1
- package/dist/test/properties/mapProperty.spec.js +571 -531
- package/dist/test/properties/mapProperty.spec.js.map +1 -1
- package/dist/test/properties/namedNodeProperty.spec.js +31 -31
- package/dist/test/properties/namedNodeProperty.spec.js.map +1 -1
- package/dist/test/properties/nodeProperty.spec.js +805 -795
- package/dist/test/properties/nodeProperty.spec.js.map +1 -1
- package/dist/test/properties/referenceProperty.spec.js +729 -679
- package/dist/test/properties/referenceProperty.spec.js.map +1 -1
- package/dist/test/properties/relationshipProperty.spec.js +16 -16
- package/dist/test/properties/relationshipProperty.spec.js.map +1 -1
- package/dist/test/properties/setProperty.spec.js +288 -227
- package/dist/test/properties/setProperty.spec.js.map +1 -1
- package/dist/test/properties/stringProperty.spec.js +326 -318
- package/dist/test/properties/stringProperty.spec.js.map +1 -1
- package/dist/test/properties/uint64Property.spec.js +46 -36
- package/dist/test/properties/uint64Property.spec.js.map +1 -1
- package/dist/test/properties/valueMapProperty.spec.js +259 -246
- package/dist/test/properties/valueMapProperty.spec.js.map +1 -1
- package/dist/test/properties/valueProperty.spec.js +49 -43
- package/dist/test/properties/valueProperty.spec.js.map +1 -1
- package/dist/test/propertyFactory.spec.js +2038 -1631
- package/dist/test/propertyFactory.spec.js.map +1 -1
- package/dist/test/propertyTemplateWrapper.spec.js +72 -102
- package/dist/test/propertyTemplateWrapper.spec.js.map +1 -1
- package/dist/test/propertyUtils.spec.js +22 -21
- package/dist/test/propertyUtils.spec.js.map +1 -1
- package/dist/test/reversibleChangeset.spec.js +857 -703
- package/dist/test/reversibleChangeset.spec.js.map +1 -1
- package/dist/test/setup.js +5 -5
- package/dist/test/setup.js.map +1 -1
- package/dist/test/tsconfig.tsbuildinfo +1 -1
- package/dist/test/utils.spec.js +1334 -1144
- package/dist/test/utils.spec.js.map +1 -1
- package/dist/test/validation/badMissingSemverInTypeid.js +20 -20
- package/dist/test/validation/badMissingSemverInTypeid.js.map +1 -1
- package/dist/test/validation/badPrimitiveTypeid.js +12 -12
- package/dist/test/validation/badPrimitiveTypeid.js.map +1 -1
- package/dist/test/validation/goodColorId.js +91 -91
- package/dist/test/validation/goodColorId.js.map +1 -1
- package/dist/test/validation/goodColorPalette.js +4 -4
- package/dist/test/validation/goodColorPalette.js.map +1 -1
- package/dist/test/validation/goodPointId.js +20 -20
- package/dist/test/validation/goodPointId.js.map +1 -1
- package/dist/test/validation/reversibleChangeSetTestData.js +23841 -2
- package/dist/test/validation/reversibleChangeSetTestData.js.map +1 -1
- package/lib/containerSerializer.d.ts.map +1 -1
- package/lib/containerSerializer.js +5 -5
- package/lib/containerSerializer.js.map +1 -1
- package/lib/enableValidations.js.map +1 -1
- package/lib/index.d.ts +19 -19
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +19 -19
- package/lib/index.js.map +1 -1
- package/lib/properties/abstractStaticCollectionProperty.d.ts +10 -10
- package/lib/properties/abstractStaticCollectionProperty.d.ts.map +1 -1
- package/lib/properties/abstractStaticCollectionProperty.js +70 -53
- package/lib/properties/abstractStaticCollectionProperty.js.map +1 -1
- package/lib/properties/arrayProperty.d.ts.map +1 -1
- package/lib/properties/arrayProperty.js +152 -103
- package/lib/properties/arrayProperty.js.map +1 -1
- package/lib/properties/baseProperty.d.ts +4 -4
- package/lib/properties/baseProperty.d.ts.map +1 -1
- package/lib/properties/baseProperty.js +73 -51
- package/lib/properties/baseProperty.js.map +1 -1
- package/lib/properties/boolProperty.d.ts.map +1 -1
- package/lib/properties/boolProperty.js +3 -3
- package/lib/properties/boolProperty.js.map +1 -1
- package/lib/properties/containerProperty.d.ts +8 -8
- package/lib/properties/containerProperty.d.ts.map +1 -1
- package/lib/properties/containerProperty.js +33 -26
- package/lib/properties/containerProperty.js.map +1 -1
- package/lib/properties/enumArrayProperty.d.ts.map +1 -1
- package/lib/properties/enumArrayProperty.js +14 -14
- package/lib/properties/enumArrayProperty.js.map +1 -1
- package/lib/properties/enumProperty.d.ts.map +1 -1
- package/lib/properties/enumProperty.js +17 -17
- package/lib/properties/enumProperty.js.map +1 -1
- package/lib/properties/floatProperties.js +4 -4
- package/lib/properties/floatProperties.js.map +1 -1
- package/lib/properties/index.d.ts +23 -23
- package/lib/properties/index.d.ts.map +1 -1
- package/lib/properties/index.js +23 -23
- package/lib/properties/index.js.map +1 -1
- package/lib/properties/indexedCollectionBaseProperty.d.ts.map +1 -1
- package/lib/properties/indexedCollectionBaseProperty.js +47 -37
- package/lib/properties/indexedCollectionBaseProperty.js.map +1 -1
- package/lib/properties/intProperties.d.ts.map +1 -1
- package/lib/properties/intProperties.js +10 -10
- package/lib/properties/intProperties.js.map +1 -1
- package/lib/properties/lazyLoadedProperties.js.map +1 -1
- package/lib/properties/mapProperty.d.ts.map +1 -1
- package/lib/properties/mapProperty.js +21 -17
- package/lib/properties/mapProperty.js.map +1 -1
- package/lib/properties/namedNodeProperty.d.ts.map +1 -1
- package/lib/properties/namedNodeProperty.js +3 -3
- package/lib/properties/namedNodeProperty.js.map +1 -1
- package/lib/properties/namedProperty.d.ts.map +1 -1
- package/lib/properties/namedProperty.js +7 -5
- package/lib/properties/namedProperty.js.map +1 -1
- package/lib/properties/nodeProperty.d.ts.map +1 -1
- package/lib/properties/nodeProperty.js +5 -3
- package/lib/properties/nodeProperty.js.map +1 -1
- package/lib/properties/primitiveTypeCasts.d.ts.map +1 -1
- package/lib/properties/primitiveTypeCasts.js +9 -9
- package/lib/properties/primitiveTypeCasts.js.map +1 -1
- package/lib/properties/referenceArrayProperty.d.ts.map +1 -1
- package/lib/properties/referenceArrayProperty.js +31 -25
- package/lib/properties/referenceArrayProperty.js.map +1 -1
- package/lib/properties/referenceMapProperty.d.ts.map +1 -1
- package/lib/properties/referenceMapProperty.js +18 -18
- package/lib/properties/referenceMapProperty.js.map +1 -1
- package/lib/properties/referenceProperty.d.ts.map +1 -1
- package/lib/properties/referenceProperty.js +33 -29
- package/lib/properties/referenceProperty.js.map +1 -1
- package/lib/properties/setProperty.d.ts.map +1 -1
- package/lib/properties/setProperty.js +31 -29
- package/lib/properties/setProperty.js.map +1 -1
- package/lib/properties/stringProperty.d.ts.map +1 -1
- package/lib/properties/stringProperty.js +56 -40
- package/lib/properties/stringProperty.js.map +1 -1
- package/lib/properties/uintProperties.js +5 -5
- package/lib/properties/uintProperties.js.map +1 -1
- package/lib/properties/valueArrayProperty.d.ts +1 -1
- package/lib/properties/valueArrayProperty.d.ts.map +1 -1
- package/lib/properties/valueArrayProperty.js +30 -29
- package/lib/properties/valueArrayProperty.js.map +1 -1
- package/lib/properties/valueMapProperty.d.ts.map +1 -1
- package/lib/properties/valueMapProperty.js +31 -29
- package/lib/properties/valueMapProperty.js.map +1 -1
- package/lib/properties/valueProperty.d.ts.map +1 -1
- package/lib/properties/valueProperty.js +11 -9
- package/lib/properties/valueProperty.js.map +1 -1
- package/lib/propertyFactory.d.ts.map +1 -1
- package/lib/propertyFactory.js +309 -252
- package/lib/propertyFactory.js.map +1 -1
- package/lib/propertyTemplate.d.ts +17 -17
- package/lib/propertyTemplate.d.ts.map +1 -1
- package/lib/propertyTemplate.js +64 -45
- package/lib/propertyTemplate.js.map +1 -1
- package/lib/propertyTemplateWrapper.d.ts.map +1 -1
- package/lib/propertyTemplateWrapper.js +40 -25
- package/lib/propertyTemplateWrapper.js.map +1 -1
- package/lib/propertyUtils.d.ts.map +1 -1
- package/lib/propertyUtils.js.map +1 -1
- package/package.json +28 -28
- package/src/index.d.ts +2750 -2681
|
@@ -8,12 +8,12 @@ exports.BoolArrayProperty = exports.StringArrayProperty = exports.Uint64ArrayPro
|
|
|
8
8
|
/**
|
|
9
9
|
* @fileoverview Definition of the valuearray property class
|
|
10
10
|
*/
|
|
11
|
-
const _ = require(
|
|
12
|
-
const { MSG } = require(
|
|
13
|
-
const { BaseDataArray, UniversalDataArray, BoolDataArray, Uint64, Int64, } = require(
|
|
14
|
-
const { Int64Property, Uint64Property } = require(
|
|
15
|
-
const { _castFunctors } = require(
|
|
16
|
-
const { ArrayProperty } = require(
|
|
11
|
+
const _ = require("lodash");
|
|
12
|
+
const { MSG } = require("@fluid-experimental/property-common").constants;
|
|
13
|
+
const { BaseDataArray, UniversalDataArray, BoolDataArray, Uint64, Int64, } = require("@fluid-experimental/property-common");
|
|
14
|
+
const { Int64Property, Uint64Property } = require("../properties/intProperties");
|
|
15
|
+
const { _castFunctors } = require("./primitiveTypeCasts");
|
|
16
|
+
const { ArrayProperty } = require("./arrayProperty");
|
|
17
17
|
/**
|
|
18
18
|
* An array property which stores primitive values
|
|
19
19
|
*/
|
|
@@ -122,7 +122,7 @@ class Float32ArrayProperty extends ValueArrayProperty {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
exports.Float32ArrayProperty = Float32ArrayProperty;
|
|
125
|
-
Float32ArrayProperty.prototype._typeid =
|
|
125
|
+
Float32ArrayProperty.prototype._typeid = "Float32";
|
|
126
126
|
/**
|
|
127
127
|
* An ArrayProperty which stores Float64 values
|
|
128
128
|
*/
|
|
@@ -148,7 +148,7 @@ class Float64ArrayProperty extends ValueArrayProperty {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
exports.Float64ArrayProperty = Float64ArrayProperty;
|
|
151
|
-
Float64ArrayProperty.prototype._typeid =
|
|
151
|
+
Float64ArrayProperty.prototype._typeid = "Float64";
|
|
152
152
|
/**
|
|
153
153
|
* An ArrayProperty which stores Uint8 values
|
|
154
154
|
*/
|
|
@@ -174,11 +174,11 @@ class Uint8ArrayProperty extends ValueArrayProperty {
|
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
exports.Uint8ArrayProperty = Uint8ArrayProperty;
|
|
177
|
-
Uint8ArrayProperty.prototype._typeid =
|
|
177
|
+
Uint8ArrayProperty.prototype._typeid = "Uint8";
|
|
178
178
|
/**
|
|
179
179
|
* An ArrayProperty which stores Int8 values
|
|
180
180
|
*
|
|
181
|
-
*/
|
|
181
|
+
*/
|
|
182
182
|
class Int8ArrayProperty extends ValueArrayProperty {
|
|
183
183
|
/**
|
|
184
184
|
* @param {Object} in_params - Input parameters for property creation
|
|
@@ -201,7 +201,7 @@ class Int8ArrayProperty extends ValueArrayProperty {
|
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
exports.Int8ArrayProperty = Int8ArrayProperty;
|
|
204
|
-
Int8ArrayProperty.prototype._typeid =
|
|
204
|
+
Int8ArrayProperty.prototype._typeid = "Int8";
|
|
205
205
|
/**
|
|
206
206
|
* An ArrayProperty which stores Uint16 values
|
|
207
207
|
*/
|
|
@@ -227,7 +227,7 @@ class Uint16ArrayProperty extends ValueArrayProperty {
|
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
exports.Uint16ArrayProperty = Uint16ArrayProperty;
|
|
230
|
-
Uint16ArrayProperty.prototype._typeid =
|
|
230
|
+
Uint16ArrayProperty.prototype._typeid = "Uint16";
|
|
231
231
|
/**
|
|
232
232
|
* An ArrayProperty which stores Int16 values
|
|
233
233
|
*/
|
|
@@ -253,7 +253,7 @@ class Int16ArrayProperty extends ValueArrayProperty {
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
exports.Int16ArrayProperty = Int16ArrayProperty;
|
|
256
|
-
Int16ArrayProperty.prototype._typeid =
|
|
256
|
+
Int16ArrayProperty.prototype._typeid = "Int16";
|
|
257
257
|
/**
|
|
258
258
|
* An ArrayProperty which stores Uint32 values
|
|
259
259
|
*/
|
|
@@ -278,7 +278,7 @@ class Uint32ArrayProperty extends ValueArrayProperty {
|
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
exports.Uint32ArrayProperty = Uint32ArrayProperty;
|
|
281
|
-
Uint32ArrayProperty.prototype._typeid =
|
|
281
|
+
Uint32ArrayProperty.prototype._typeid = "Uint32";
|
|
282
282
|
/**
|
|
283
283
|
* An ArrayProperty which stores Int32 values
|
|
284
284
|
*/
|
|
@@ -304,7 +304,7 @@ class Int32ArrayProperty extends ValueArrayProperty {
|
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
exports.Int32ArrayProperty = Int32ArrayProperty;
|
|
307
|
-
Int32ArrayProperty.prototype._typeid =
|
|
307
|
+
Int32ArrayProperty.prototype._typeid = "Int32";
|
|
308
308
|
/**
|
|
309
309
|
* An ArrayProperty which stores Int64 values
|
|
310
310
|
*/
|
|
@@ -368,20 +368,21 @@ class Integer64ArrayProperty extends ValueArrayProperty {
|
|
|
368
368
|
* @inheritdoc
|
|
369
369
|
*/
|
|
370
370
|
_prettyPrint(indent, externalId, printFct) {
|
|
371
|
-
printFct(indent + externalId + this.getId() +
|
|
372
|
-
var childIndent = indent +
|
|
371
|
+
printFct(indent + externalId + this.getId() + " (Array of " + this.getTypeid() + "): [");
|
|
372
|
+
var childIndent = indent + " ";
|
|
373
373
|
var int64Prop;
|
|
374
374
|
for (var i = 0; i < this._dataArrayGetLength(); i++) {
|
|
375
375
|
// TODO: The 'toString()' function is defined on Integer64Property, so we need to create
|
|
376
376
|
// such object to use it. It would be better to have it in Integer64.prototype.toString
|
|
377
|
-
int64Prop =
|
|
378
|
-
|
|
379
|
-
|
|
377
|
+
int64Prop =
|
|
378
|
+
this._dataArrayGetValue(i) instanceof Int64
|
|
379
|
+
? new Int64Property({})
|
|
380
|
+
: new Uint64Property({});
|
|
380
381
|
int64Prop.setValueLow(this._dataArrayGetValue(i).getValueLow());
|
|
381
382
|
int64Prop.setValueHigh(this._dataArrayGetValue(i).getValueHigh());
|
|
382
|
-
printFct(childIndent + i +
|
|
383
|
+
printFct(childIndent + i + ": " + int64Prop);
|
|
383
384
|
}
|
|
384
|
-
printFct(indent +
|
|
385
|
+
printFct(indent + "]");
|
|
385
386
|
}
|
|
386
387
|
}
|
|
387
388
|
exports.Integer64ArrayProperty = Integer64ArrayProperty;
|
|
@@ -411,7 +412,7 @@ class Int64ArrayProperty extends Integer64ArrayProperty {
|
|
|
411
412
|
*/
|
|
412
413
|
setRange(in_offset, in_array) {
|
|
413
414
|
if (!_.isArray(in_array)) {
|
|
414
|
-
throw new TypeError(MSG.IN_ARRAY_NOT_ARRAY +
|
|
415
|
+
throw new TypeError(MSG.IN_ARRAY_NOT_ARRAY + "Int64ArrayProperty.setRange");
|
|
415
416
|
}
|
|
416
417
|
var out_array = in_array.map((element) => {
|
|
417
418
|
return _castFunctors.Int64(element);
|
|
@@ -457,7 +458,7 @@ class Int64ArrayProperty extends Integer64ArrayProperty {
|
|
|
457
458
|
}
|
|
458
459
|
}
|
|
459
460
|
exports.Int64ArrayProperty = Int64ArrayProperty;
|
|
460
|
-
Int64ArrayProperty.prototype._typeid =
|
|
461
|
+
Int64ArrayProperty.prototype._typeid = "Int64";
|
|
461
462
|
/**
|
|
462
463
|
* An ArrayProperty which stores Uint64 values
|
|
463
464
|
*/
|
|
@@ -495,7 +496,7 @@ class Uint64ArrayProperty extends Integer64ArrayProperty {
|
|
|
495
496
|
*/
|
|
496
497
|
setRange(in_offset, in_array) {
|
|
497
498
|
if (!_.isArray(in_array)) {
|
|
498
|
-
throw new TypeError(MSG.IN_ARRAY_NOT_ARRAY +
|
|
499
|
+
throw new TypeError(MSG.IN_ARRAY_NOT_ARRAY + "Uint64ArrayProperty.setRange");
|
|
499
500
|
}
|
|
500
501
|
var out_array = in_array.map((element) => {
|
|
501
502
|
return _castFunctors.Uint64(element);
|
|
@@ -530,7 +531,7 @@ class Uint64ArrayProperty extends Integer64ArrayProperty {
|
|
|
530
531
|
}
|
|
531
532
|
}
|
|
532
533
|
exports.Uint64ArrayProperty = Uint64ArrayProperty;
|
|
533
|
-
Uint64ArrayProperty.prototype._typeid =
|
|
534
|
+
Uint64ArrayProperty.prototype._typeid = "Uint64";
|
|
534
535
|
/**
|
|
535
536
|
* An ArrayProperty which stores String values
|
|
536
537
|
*/
|
|
@@ -554,12 +555,12 @@ class StringArrayProperty extends ValueArrayProperty {
|
|
|
554
555
|
_dataArrayCreate(in_length) {
|
|
555
556
|
this._dataArrayRef = new UniversalDataArray(in_length);
|
|
556
557
|
for (var i = 0; i < in_length; i++) {
|
|
557
|
-
this._dataArraySetValue(i,
|
|
558
|
+
this._dataArraySetValue(i, "");
|
|
558
559
|
}
|
|
559
560
|
}
|
|
560
561
|
}
|
|
561
562
|
exports.StringArrayProperty = StringArrayProperty;
|
|
562
|
-
StringArrayProperty.prototype._typeid =
|
|
563
|
+
StringArrayProperty.prototype._typeid = "String";
|
|
563
564
|
/**
|
|
564
565
|
* An ArrayProperty which stores Boolean values
|
|
565
566
|
*/
|
|
@@ -588,5 +589,5 @@ class BoolArrayProperty extends ValueArrayProperty {
|
|
|
588
589
|
}
|
|
589
590
|
}
|
|
590
591
|
exports.BoolArrayProperty = BoolArrayProperty;
|
|
591
|
-
BoolArrayProperty.prototype._typeid =
|
|
592
|
+
BoolArrayProperty.prototype._typeid = "Bool";
|
|
592
593
|
//# sourceMappingURL=valueArrayProperty.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valueArrayProperty.js","sourceRoot":"","sources":["../../src/properties/valueArrayProperty.js"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;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,EACF,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,MAAM,EACN,KAAK,GACR,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAC;AACnD,MAAM,EAAE,aAAa,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;AACjF,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAC1D,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAA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;;;;;;;OAQG;IACH,YAAY,SAAS;QACjB,KAAK,CAAC,SAAS,CAAC,CAAC;IACrB,CAAC;IAED;;;OAGG;IACH,gBAAgB,CAAC,SAAS;QACtB,IAAI,CAAC,aAAa,GAAG,IAAI,kBAAkB,CAAC,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;CACJ;AAxBD,kDAwBC;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;IAED;;;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;CACJ;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\n/**\n * @fileoverview Definition of the valuearray property class\n */\n\nconst _ = require('lodash');\nconst { MSG } = require('@fluid-experimental/property-common').constants;\nconst {\n BaseDataArray,\n UniversalDataArray,\n BoolDataArray,\n Uint64,\n Int64,\n} = require('@fluid-experimental/property-common');\nconst { Int64Property, Uint64Property } = require('../properties/intProperties');\nconst { _castFunctors } = require('./primitiveTypeCasts');\nconst { ArrayProperty } = require('./arrayProperty');\n\n/**\n * An array property which stores primitive values\n */\nexport class ValueArrayProperty extends ArrayProperty {\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 * 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 * 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 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 int64Prop = this._dataArrayGetValue(i) instanceof Int64\n ? new Int64Property({})\n : new Uint64Property({});\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 TypeError(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}\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 TypeError(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}\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
|
+
{"version":3,"file":"valueArrayProperty.js","sourceRoot":"","sources":["../../src/properties/valueArrayProperty.js"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;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,EACL,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,MAAM,EACN,KAAK,GACL,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAC;AACnD,MAAM,EAAE,aAAa,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;AACjF,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAC1D,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAErD;;GAEG;AACH,MAAa,kBAAmB,SAAQ,aAAa;IACpD;;;;;;OAMG;IACH,YAAY,SAAS;QACpB,KA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C,SAAS;QACzB,IAAI,CAAC,aAAa,GAAG,IAAI,kBAAkB,CAAC,SAAS,CAAC,CAAC;QACvD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,EAAE;YACnC,IAAI,CAAC,kBAAkB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;SAC/B;IACF,CAAC;CACD;AAxBD,kDAwBC;AACD,mBAAmB,CAAC,SAAS,CAAC,OAAO,GAAG,QAAQ,CAAC;AAEjD;;GAEG;AACH,MAAa,iBAAkB,SAAQ,kBAAkB;IACxD;;;;;;;;OAQG;IACH,YAAY,SAAS;QACpB,KAAK,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED;;;OAGG;IACH,gBAAgB,CAAC,SAAS;QACzB,IAAI,CAAC,aAAa,GAAG,IAAI,aAAa,CAAC,SAAS,CAAC,CAAC;QAClD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,EAAE;YACnC,IAAI,CAAC,kBAAkB,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;SAClC;IACF,CAAC;CACD;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\n/**\n * @fileoverview Definition of the valuearray property class\n */\n\nconst _ = require(\"lodash\");\nconst { MSG } = require(\"@fluid-experimental/property-common\").constants;\nconst {\n\tBaseDataArray,\n\tUniversalDataArray,\n\tBoolDataArray,\n\tUint64,\n\tInt64,\n} = require(\"@fluid-experimental/property-common\");\nconst { Int64Property, Uint64Property } = require(\"../properties/intProperties\");\nconst { _castFunctors } = require(\"./primitiveTypeCasts\");\nconst { ArrayProperty } = require(\"./arrayProperty\");\n\n/**\n * An array property which stores primitive values\n */\nexport class ValueArrayProperty extends ArrayProperty {\n\t/**\n\t * @param {Object} in_params - Input parameters for property creation\n\t * @constructor\n\t * @protected\n\t * @extends property-properties.ArrayProperty\n\t * @alias property-properties.ValueArrayProperty\n\t */\n\tconstructor(in_params) {\n\t\tsuper(in_params, true);\n\t}\n\n\t/**\n\t * Returns the value at in_position for a primitive array\n\t * @param {number} in_position - The array index\n\t * @return {*} the value\n\t */\n\t_getValue(in_position) {\n\t\treturn this._dataArrayRef.getValue(in_position);\n\t}\n\n\t/**\n\t * returns the array of primitive values.\n\t * @return {Array<*>} the array of values.\n\t * For example: ['string1', 'string2']\n\t */\n\tgetValues() {\n\t\tvar result = [];\n\t\tvar ids = this.getIds();\n\t\tfor (var i = 0; i < ids.length; i++) {\n\t\t\tresult.push(this.get(ids[i]));\n\t\t}\n\t\treturn result;\n\t}\n\n\t/**\n\t * Resolves a direct child node based on the given path segment\n\t *\n\t * @param {String} in_segment - The path segment to resolve\n\t * @param {property-properties.PathHelper.TOKEN_TYPES} in_segmentType - The type of segment in the tokenized path\n\t *\n\t * @return {property-properties.BaseProperty|undefined} The child property that has been resolved\n\t * @protected\n\t */\n\t_resolvePathSegment(in_segment, in_segmentType) {\n\t\treturn this.get(in_segment);\n\t}\n\n\t/**\n\t * Function to serialize special primitive types.\n\t * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n\t * special treatment on serialization. For supported types, we can just return the input here.\n\t *\n\t * @param {*} in_obj - The object to be serialized\n\t * @return {property-properties.SerializedChangeSet} the serialized object\n\t */\n\t_serializeValue(in_obj) {\n\t\treturn in_obj;\n\t}\n\n\t/**\n\t * Function to serialize arrays of special primitive types.\n\t * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n\t * special treatment on serialization. For supported types, we can just return the input here.\n\t *\n\t * @param {Array} in_array - The array of special objects to be serialized\n\t * @return {Array<property-properties.SerializedChangeSet>} the serialized object\n\t */\n\t_serializeArray(in_array) {\n\t\treturn in_array;\n\t}\n\n\t/**\n\t * Function to deserialize arrays of special primitive types.\n\t * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n\t * special treatment on deserialization. For supported types, we can just return the input here.\n\t *\n\t * @param {Array<property-properties.SerializedChangeSet>} in_serializedObj - The serialized object\n\t * @return {Array} in_array - The array of special objects that were deserialized\n\t */\n\t_deserializeArray(in_serializedObj) {\n\t\treturn in_serializedObj;\n\t}\n}\nValueArrayProperty.prototype._isPrimitive = true;\n\n/**\n * An ArrayProperty which stores Float32 values\n */\nexport class Float32ArrayProperty extends ValueArrayProperty {\n\t/**\n\t * @param {Object} in_params - Input parameters for property creation\n\t *\n\t * @constructor\n\t * @protected\n\t * @extends property-properties.ValueArrayProperty\n\t * @alias property-properties.Float32ArrayProperty\n\t * @category Arrays\n\t */\n\tconstructor(in_params) {\n\t\tsuper(in_params);\n\t}\n\n\t/**\n\t * Creates and initializes the data array\n\t * @param {Number} in_length - The initial length of the array\n\t */\n\t_dataArrayCreate(in_length) {\n\t\tthis._dataArrayRef = new BaseDataArray(Float32Array, in_length);\n\t}\n}\nFloat32ArrayProperty.prototype._typeid = \"Float32\";\n\n/**\n * An ArrayProperty which stores Float64 values\n */\nexport class Float64ArrayProperty extends ValueArrayProperty {\n\t/**\n\t * @param {Object} in_params - Input parameters for property creation\n\t *\n\t * @constructor\n\t * @protected\n\t * @extends property-properties.ValueArrayProperty\n\t * @alias property-properties.Float64ArrayProperty\n\t * @category Arrays\n\t */\n\tconstructor(in_params) {\n\t\tsuper(in_params);\n\t}\n\n\t/**\n\t * Creates and initializes the data array\n\t * @param {Number} in_length - The initial length of the array\n\t */\n\t_dataArrayCreate(in_length) {\n\t\tthis._dataArrayRef = new BaseDataArray(Float64Array, in_length);\n\t}\n}\nFloat64ArrayProperty.prototype._typeid = \"Float64\";\n\n/**\n * An ArrayProperty which stores Uint8 values\n */\nexport class Uint8ArrayProperty extends ValueArrayProperty {\n\t/**\n\t * @param {Object} in_params - Input parameters for property creation\n\t *\n\t * @constructor\n\t * @protected\n\t * @extends property-properties.ValueArrayProperty\n\t * @alias property-properties.Uint8ArrayProperty\n\t * @category Arrays\n\t */\n\tconstructor(in_params) {\n\t\tsuper(in_params);\n\t}\n\n\t/**\n\t * Creates and initializes the data array\n\t * @param {Number} in_length - The initial length of the array\n\t */\n\t_dataArrayCreate(in_length) {\n\t\tthis._dataArrayRef = new BaseDataArray(Uint8Array, in_length);\n\t}\n}\nUint8ArrayProperty.prototype._typeid = \"Uint8\";\n\n/**\n * An ArrayProperty which stores Int8 values\n *\n */\nexport class Int8ArrayProperty extends ValueArrayProperty {\n\t/**\n\t * @param {Object} in_params - Input parameters for property creation\n\t *\n\t * @constructor\n\t * @protected\n\t * @extends property-properties.ValueArrayProperty\n\t * @alias property-properties.Int8ArrayProperty\n\t * @category Arrays\n\t */\n\tconstructor(in_params) {\n\t\tsuper(in_params);\n\t}\n\n\t/**\n\t * Creates and initializes the data array\n\t * @param {Number} in_length - The initial length of the array\n\t */\n\t_dataArrayCreate(in_length) {\n\t\tthis._dataArrayRef = new BaseDataArray(Int8Array, in_length);\n\t}\n}\nInt8ArrayProperty.prototype._typeid = \"Int8\";\n\n/**\n * An ArrayProperty which stores Uint16 values\n */\nexport class Uint16ArrayProperty extends ValueArrayProperty {\n\t/**\n\t * @param {Object} in_params - Input parameters for property creation\n\t *\n\t * @constructor\n\t * @protected\n\t * @extends property-properties.ValueArrayProperty\n\t * @alias property-properties.Uint16ArrayProperty\n\t * @category Arrays\n\t */\n\tconstructor(in_params) {\n\t\tsuper(in_params);\n\t}\n\n\t/**\n\t * Creates and initializes the data array\n\t * @param {Number} in_length - The initial length of the array\n\t */\n\t_dataArrayCreate(in_length) {\n\t\tthis._dataArrayRef = new BaseDataArray(Uint16Array, in_length);\n\t}\n}\nUint16ArrayProperty.prototype._typeid = \"Uint16\";\n\n/**\n * An ArrayProperty which stores Int16 values\n */\nexport class Int16ArrayProperty extends ValueArrayProperty {\n\t/**\n\t * @param {Object} in_params - Input parameters for property creation\n\t *\n\t * @constructor\n\t * @protected\n\t * @extends property-properties.ValueArrayProperty\n\t * @alias property-properties.Int16ArrayProperty\n\t * @category Arrays\n\t */\n\tconstructor(in_params) {\n\t\tsuper(in_params);\n\t}\n\n\t/**\n\t * Creates and initializes the data array\n\t * @param {Number} in_length - The initial length of the array\n\t */\n\t_dataArrayCreate(in_length) {\n\t\tthis._dataArrayRef = new BaseDataArray(Int16Array, in_length);\n\t}\n}\nInt16ArrayProperty.prototype._typeid = \"Int16\";\n\n/**\n * An ArrayProperty which stores Uint32 values\n */\nexport class Uint32ArrayProperty extends ValueArrayProperty {\n\t/** @param {Object} in_params - Input parameters for property creation\n\t *\n\t * @constructor\n\t * @protected\n\t * @extends property-properties.ValueArrayProperty\n\t * @alias property-properties.Uint32ArrayProperty\n\t * @category Arrays\n\t */\n\tconstructor(in_params) {\n\t\tsuper(in_params);\n\t}\n\n\t/**\n\t * Creates and initializes the data array\n\t * @param {Number} in_length - The initial length of the array\n\t */\n\t_dataArrayCreate(in_length) {\n\t\tthis._dataArrayRef = new BaseDataArray(Uint32Array, in_length);\n\t}\n}\nUint32ArrayProperty.prototype._typeid = \"Uint32\";\n\n/**\n * An ArrayProperty which stores Int32 values\n */\nexport class Int32ArrayProperty extends ValueArrayProperty {\n\t/**\n\t * @param {Object} in_params - Input parameters for property creation\n\t *\n\t * @constructor\n\t * @protected\n\t * @extends property-properties.ValueArrayProperty\n\t * @alias property-properties.Int32ArrayProperty\n\t * @category Arrays\n\t */\n\tconstructor(in_params) {\n\t\tsuper(in_params);\n\t}\n\n\t/**\n\t * Creates and initializes the data array\n\t * @param {Number} in_length - The initial length of the array\n\t */\n\t_dataArrayCreate(in_length) {\n\t\tthis._dataArrayRef = new BaseDataArray(Int32Array, in_length);\n\t}\n}\nInt32ArrayProperty.prototype._typeid = \"Int32\";\n\n/**\n * An ArrayProperty which stores Int64 values\n */\nexport class Integer64ArrayProperty extends ValueArrayProperty {\n\t/** @param {Object} in_params - Input parameters for property creation\n\t *\n\t * @constructor\n\t * @protected\n\t * @extends property-properties.ValueArrayProperty\n\t * @alias property-properties.Integer64ArrayProperty\n\t * @category Arrays\n\t */\n\tconstructor(in_params) {\n\t\tsuper(in_params);\n\t}\n\n\t/**\n\t * Function to serialize special primitive types.\n\t * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n\t * special treatment on serialization. For supported types, we can just return the input here.\n\t *\n\t * @param {*} in_obj - The object to be serialized\n\t * @return {property-properties.SerializedChangeSet} the serialized object\n\t */\n\t_serializeValue(in_obj) {\n\t\tif (in_obj instanceof Int64 || in_obj instanceof Uint64) {\n\t\t\treturn [in_obj.getValueLow(), in_obj.getValueHigh()];\n\t\t}\n\t\treturn in_obj;\n\t}\n\n\t/**\n\t * Function to serialize arrays of special primitive types.\n\t * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n\t * special treatment on serialization. For supported types, we can just return the input here.\n\t *\n\t * @param {Array} in_array - The array of special objects to be serialized\n\t * @return {Array<property-properties.SerializedChangeSet>} the serialized object\n\t */\n\t_serializeArray(in_array) {\n\t\tvar result = [];\n\t\tfor (var i = 0; i < in_array.length; i++) {\n\t\t\tresult.push(this._serializeValue(in_array[i]));\n\t\t}\n\t\treturn result;\n\t}\n\n\t/**\n\t * Function to deserialize arrays of special primitive types.\n\t * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n\t * special treatment on deserialization. For supported types, we can just return the input here.\n\t *\n\t * @param {Array<property-properties.SerializedChangeSet>} in_serializedObj - The serialized object\n\t * @return {Array} in_array - The array of special objects that were deserialized\n\t */\n\t_deserializeArray(in_serializedObj) {\n\t\tvar result = [];\n\t\tfor (var i = 0; i < in_serializedObj.length; i++) {\n\t\t\tresult.push(this._deserializeValue(in_serializedObj[i]));\n\t\t}\n\t\treturn result;\n\t}\n\n\t/**\n\t * @inheritdoc\n\t */\n\t_prettyPrint(indent, externalId, printFct) {\n\t\tprintFct(indent + externalId + this.getId() + \" (Array of \" + this.getTypeid() + \"): [\");\n\t\tvar childIndent = indent + \" \";\n\t\tvar int64Prop;\n\t\tfor (var i = 0; i < this._dataArrayGetLength(); i++) {\n\t\t\t// TODO: The 'toString()' function is defined on Integer64Property, so we need to create\n\t\t\t// such object to use it. It would be better to have it in Integer64.prototype.toString\n\t\t\tint64Prop =\n\t\t\t\tthis._dataArrayGetValue(i) instanceof Int64\n\t\t\t\t\t? new Int64Property({})\n\t\t\t\t\t: new Uint64Property({});\n\t\t\tint64Prop.setValueLow(this._dataArrayGetValue(i).getValueLow());\n\t\t\tint64Prop.setValueHigh(this._dataArrayGetValue(i).getValueHigh());\n\t\t\tprintFct(childIndent + i + \": \" + int64Prop);\n\t\t}\n\t\tprintFct(indent + \"]\");\n\t}\n}\n/**\n * An ArrayProperty which stores Int64 values\n */\nexport class Int64ArrayProperty extends Integer64ArrayProperty {\n\t/**\n\t * @param {Object} in_params - Input parameters for property creation\n\t *\n\t * @constructor\n\t * @protected\n\t * @extends property-properties.Integer64ArrayProperty\n\t * @alias property-properties.Int64ArrayProperty\n\t * @category Arrays\n\t */\n\tconstructor(in_params) {\n\t\tsuper(in_params);\n\t}\n\n\t/**\n\t * Sets the array properties elements to the content of the given array\n\t * All changed elements must already exist. This will overwrite existing elements.\n\t * @param {number} in_offset - Target start index\n\t * @param {Array<*>|Array<property-properties.BaseProperty>} in_array - contains the elements to be set\n\t * @throws if in_offset is not a number\n\t * @throws if in_offset is smaller than zero or higher than the length of the array\n\t */\n\tsetRange(in_offset, in_array) {\n\t\tif (!_.isArray(in_array)) {\n\t\t\tthrow new TypeError(MSG.IN_ARRAY_NOT_ARRAY + \"Int64ArrayProperty.setRange\");\n\t\t}\n\t\tvar out_array = in_array.map((element) => {\n\t\t\treturn _castFunctors.Int64(element);\n\t\t});\n\t\tArrayProperty.prototype.setRange.call(this, in_offset, out_array);\n\t}\n\n\t/**\n\t * Inserts the content of a given array into the array property\n\t * It will not overwrite the existing values but push them to the right instead.\n\t * E.g. [1, 2, 3] .insertRange(1, [9, 8]) => [1, 9, 8, 2, 3]\n\t * @param {number} in_offset - Target index\n\t * @param {Array<*>} in_array - The array to be inserted\n\t * @throws if in_offset is smaller than zero, larger than the length of the array or not a number.\n\t * @throws if trying to insert a property that already has a parent.\n\t * @throws if tyring to modify a referenced property.\n\t */\n\tinsertRange(in_offset, in_array) {\n\t\tvar out_array = in_array.map((element) => {\n\t\t\treturn _castFunctors.Int64(element);\n\t\t});\n\t\tArrayProperty.prototype.insertRange.call(this, in_offset, out_array);\n\t}\n\n\t/**\n\t * Specialized function to deserialize Int64 primitive types.\n\t * Some primitive types (e.g. Int64, which is not natively supported by javascript) require\n\t * special treatment on deserialization. For supported types, we can just return the input here.\n\t *\n\t * @param {property-properties.SerializedChangeSet} in_serializedObj - The object to be deserialized\n\t * @return {Int64} the deserialized value\n\t */\n\t_deserializeValue(in_serializedObj) {\n\t\treturn new Int64(in_serializedObj[0], in_serializedObj[1]);\n\t}\n\n\t/**\n\t * Creates and initializes the data array\n\t * @param {Number} in_length - The initial length of the array\n\t */\n\t_dataArrayCreate(in_length) {\n\t\tthis._dataArrayRef = new UniversalDataArray(in_length);\n\t\tfor (var i = 0; i < in_length; i++) {\n\t\t\tthis._dataArraySetValue(i, new Int64());\n\t\t}\n\t}\n}\nInt64ArrayProperty.prototype._typeid = \"Int64\";\n\n/**\n * An ArrayProperty which stores Uint64 values\n */\nexport class Uint64ArrayProperty extends Integer64ArrayProperty {\n\t/**\n\t * @param {Object} in_params - Input parameters for property creation\n\t *\n\t * @constructor\n\t * @protected\n\t * @extends property-properties.Integer64ArrayProperty\n\t * @alias property-properties.Uint64ArrayProperty\n\t * @category Arrays\n\t */\n\tconstructor(in_params) {\n\t\tsuper(in_params);\n\t}\n\n\t/**\n\t * Specialized function to deserialize Uint64 primitive types.\n\t * Some primitive types (e.g. Uint64, which is not natively supported by javascript) require\n\t * special treatment on deserialization. For supported types, we can just return the input here.\n\t *\n\t * @param {property-properties.SerializedChangeSet} in_serializedObj - The object to be deserialized\n\t * @return {Uint64} the deserialized value\n\t */\n\t_deserializeValue(in_serializedObj) {\n\t\treturn new Uint64(in_serializedObj[0], in_serializedObj[1]);\n\t}\n\n\t/**\n\t * Sets the array properties elements to the content of the given array\n\t * All changed elements must already exist. This will overwrite existing elements.\n\t * @param {number} in_offset - Target start index\n\t * @param {Array<*>|Array<property-properties.BaseProperty>} in_array - contains the elements to be set\n\t * @throws if in_offset is not a number\n\t * @throws if in_offset is smaller than zero or higher than the length of the array\n\t */\n\tsetRange(in_offset, in_array) {\n\t\tif (!_.isArray(in_array)) {\n\t\t\tthrow new TypeError(MSG.IN_ARRAY_NOT_ARRAY + \"Uint64ArrayProperty.setRange\");\n\t\t}\n\t\tvar out_array = in_array.map((element) => {\n\t\t\treturn _castFunctors.Uint64(element);\n\t\t});\n\t\tArrayProperty.prototype.setRange.call(this, in_offset, out_array);\n\t}\n\n\t/**\n\t * Inserts the content of a given array into the array property\n\t * It will not overwrite the existing values but push them to the right instead.\n\t * E.g. [1, 2, 3] .insertRange(1, [9, 8]) => [1, 9, 8, 2, 3]\n\t * @param {number} in_offset - Target index\n\t * @param {Array<*>} in_array - The array to be inserted\n\t * @throws if in_offset is smaller than zero, larger than the length of the array or not a number.\n\t * @throws if trying to insert a property that already has a parent.\n\t * @throws if tyring to modify a referenced property.\n\t */\n\tinsertRange(in_offset, in_array) {\n\t\tvar out_array = in_array.map((element) => {\n\t\t\treturn _castFunctors.Uint64(element);\n\t\t});\n\t\tArrayProperty.prototype.insertRange.call(this, in_offset, out_array);\n\t}\n\n\t/**\n\t * Creates and initializes the data array\n\t * @param {Number} in_length - The initial length of the array\n\t */\n\t_dataArrayCreate(in_length) {\n\t\tthis._dataArrayRef = new UniversalDataArray(in_length);\n\t\tfor (var i = 0; i < in_length; i++) {\n\t\t\tthis._dataArraySetValue(i, new Uint64());\n\t\t}\n\t}\n}\nUint64ArrayProperty.prototype._typeid = \"Uint64\";\n\n/**\n * An ArrayProperty which stores String values\n */\nexport class StringArrayProperty extends ValueArrayProperty {\n\t/**\n\t * @param {Object} in_params - Input parameters for property creation\n\t *\n\t * @constructor\n\t * @protected\n\t * @extends property-properties.ValueArrayProperty\n\t * @alias property-properties.StringArrayProperty\n\t * @category Arrays\n\t */\n\tconstructor(in_params) {\n\t\tsuper(in_params);\n\t}\n\n\t/**\n\t * Creates and initializes the data array\n\t * @param {Number} in_length - The initial length of the array\n\t */\n\t_dataArrayCreate(in_length) {\n\t\tthis._dataArrayRef = new UniversalDataArray(in_length);\n\t\tfor (var i = 0; i < in_length; i++) {\n\t\t\tthis._dataArraySetValue(i, \"\");\n\t\t}\n\t}\n}\nStringArrayProperty.prototype._typeid = \"String\";\n\n/**\n * An ArrayProperty which stores Boolean values\n */\nexport class BoolArrayProperty extends ValueArrayProperty {\n\t/**\n\t * @param {Object} in_params - Input parameters for property creation\n\t *\n\t * @constructor\n\t * @protected\n\t * @extends property-properties.ValueArrayProperty\n\t * @alias property-properties.BoolArrayProperty\n\t * @category Arrays\n\t */\n\tconstructor(in_params) {\n\t\tsuper(in_params, Array, true);\n\t}\n\n\t/**\n\t * Creates and initializes the data array\n\t * @param {Number} in_length - The initial length of the array\n\t */\n\t_dataArrayCreate(in_length) {\n\t\tthis._dataArrayRef = new BoolDataArray(in_length);\n\t\tfor (var i = 0; i < in_length; i++) {\n\t\t\tthis._dataArraySetValue(i, false);\n\t\t}\n\t}\n}\nBoolArrayProperty.prototype._typeid = \"Bool\";\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valueMapProperty.d.ts","sourceRoot":"","sources":["../../src/properties/valueMapProperty.js"],"names":[],"mappings":"AAiBA;;GAEG;AACH;
|
|
1
|
+
{"version":3,"file":"valueMapProperty.d.ts","sourceRoot":"","sources":["../../src/properties/valueMapProperty.js"],"names":[],"mappings":"AAiBA;;GAEG;AACH;IACC;;;;;;;;OAQG;IACH,wBAEC;IA4FD,4BAEC;CAyED;AAID;;GAEG;AACH;IAeA,kBAAyC;CAFxC;AAID;;GAEG;AACH;IAeA,kBAAyC;CAFxC;AAID;;GAEG;AACH;IAeA,kBAAwC;CAFvC;AAID;;GAEG;AACH;IAeA,kBAAwC;CAFvC;AAID;;GAEG;AACH;IAeA,kBAAuC;CAFtC;AAID;;GAEG;AACH;IAeA,kBAAuC;CAFtC;AAID;;GAEG;AACH;CAiEC;AAED;;GAEG;AACH;IA2BA,8DAAuC;CAFtC;AAID;;GAEG;AACH;IA2BA,8DAAwC;CAFvC;AAID;;GAEG;AACH;IAcA,kBAAuC;CAFtC;AAID;;GAEG;AACH;IAeA,kBAAsC;CAFrC;AAID;;GAEG;AACH;IAeA,2CAAwC;CAFvC;AAID;;GAEG;AACH;IAeA,6CAAsC;CAFrC"}
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.BoolMapProperty = exports.StringMapProperty = exports.Int8MapProperty = exports.Int16MapProperty = exports.Uint64MapProperty = exports.Int64MapProperty = exports.Integer64MapProperty = exports.Int32MapProperty = exports.Uint8MapProperty = exports.Uint16MapProperty = exports.Uint32MapProperty = exports.Float64MapProperty = exports.Float32MapProperty = exports.ValueMapProperty = void 0;
|
|
11
|
-
const _ = require(
|
|
12
|
-
const { MSG } = require(
|
|
13
|
-
const { Int64, Uint64 } = require(
|
|
14
|
-
const { Int64Property, Uint64Property } = require(
|
|
15
|
-
const { validationsEnabled } = require(
|
|
16
|
-
const { _castFunctors } = require(
|
|
17
|
-
const { BaseProperty } = require(
|
|
18
|
-
const { MapProperty } = require(
|
|
11
|
+
const _ = require("lodash");
|
|
12
|
+
const { MSG } = require("@fluid-experimental/property-common").constants;
|
|
13
|
+
const { Int64, Uint64 } = require("@fluid-experimental/property-common");
|
|
14
|
+
const { Int64Property, Uint64Property } = require("../properties/intProperties");
|
|
15
|
+
const { validationsEnabled } = require("../enableValidations");
|
|
16
|
+
const { _castFunctors } = require("./primitiveTypeCasts");
|
|
17
|
+
const { BaseProperty } = require("./baseProperty");
|
|
18
|
+
const { MapProperty } = require("./mapProperty");
|
|
19
19
|
/**
|
|
20
20
|
* A ValueMapProperty is a collection class that can contain an dictionary that maps from strings to primitive types.
|
|
21
21
|
*/
|
|
@@ -53,7 +53,7 @@ class ValueMapProperty extends MapProperty {
|
|
|
53
53
|
* 'secondString': 'test2'
|
|
54
54
|
* }
|
|
55
55
|
* ```
|
|
56
|
-
|
|
56
|
+
*/
|
|
57
57
|
getValues() {
|
|
58
58
|
var ids = this.getIds();
|
|
59
59
|
var result = {};
|
|
@@ -83,15 +83,15 @@ class ValueMapProperty extends MapProperty {
|
|
|
83
83
|
* @param {function} printFct - Function to call for printing each property
|
|
84
84
|
*/
|
|
85
85
|
_prettyPrintChildren(indent, printFct) {
|
|
86
|
-
indent +=
|
|
87
|
-
var prefix =
|
|
88
|
-
var suffix =
|
|
89
|
-
if (this.getTypeid() ===
|
|
86
|
+
indent += " ";
|
|
87
|
+
var prefix = "";
|
|
88
|
+
var suffix = "";
|
|
89
|
+
if (this.getTypeid() === "String") {
|
|
90
90
|
prefix = '"';
|
|
91
91
|
suffix = '"';
|
|
92
92
|
}
|
|
93
93
|
_.mapValues(this._dynamicChildren, function (val, key) {
|
|
94
|
-
printFct(indent + key +
|
|
94
|
+
printFct(indent + key + ": " + prefix + val + suffix);
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
@@ -157,7 +157,9 @@ class ValueMapProperty extends MapProperty {
|
|
|
157
157
|
}
|
|
158
158
|
// Modify entries
|
|
159
159
|
if (in_pendingChangeSet.modify) {
|
|
160
|
-
var modifiedPendingEntries = in_pendingChangeSet
|
|
160
|
+
var modifiedPendingEntries = in_pendingChangeSet
|
|
161
|
+
? in_pendingChangeSet.modify || {}
|
|
162
|
+
: {};
|
|
161
163
|
var modifiedDirtyEntries = in_dirtyChangeSet ? in_dirtyChangeSet.modify || {} : {};
|
|
162
164
|
keys = Object.keys(modifiedPendingEntries).concat(Object.keys(modifiedDirtyEntries));
|
|
163
165
|
for (i = 0; i < keys.length; i++) {
|
|
@@ -205,7 +207,7 @@ class Float32MapProperty extends ValueMapProperty {
|
|
|
205
207
|
}
|
|
206
208
|
}
|
|
207
209
|
exports.Float32MapProperty = Float32MapProperty;
|
|
208
|
-
Float32MapProperty.prototype._typeid =
|
|
210
|
+
Float32MapProperty.prototype._typeid = "Float32";
|
|
209
211
|
Float32MapProperty.prototype._castFunctor = _castFunctors.Float32;
|
|
210
212
|
/**
|
|
211
213
|
* A ValueMapProperty which stores Float64 values
|
|
@@ -225,7 +227,7 @@ class Float64MapProperty extends ValueMapProperty {
|
|
|
225
227
|
}
|
|
226
228
|
}
|
|
227
229
|
exports.Float64MapProperty = Float64MapProperty;
|
|
228
|
-
Float64MapProperty.prototype._typeid =
|
|
230
|
+
Float64MapProperty.prototype._typeid = "Float64";
|
|
229
231
|
Float64MapProperty.prototype._castFunctor = _castFunctors.Float64;
|
|
230
232
|
/**
|
|
231
233
|
* A ValueMapProperty which stores Uint32 values
|
|
@@ -245,7 +247,7 @@ class Uint32MapProperty extends ValueMapProperty {
|
|
|
245
247
|
}
|
|
246
248
|
}
|
|
247
249
|
exports.Uint32MapProperty = Uint32MapProperty;
|
|
248
|
-
Uint32MapProperty.prototype._typeid =
|
|
250
|
+
Uint32MapProperty.prototype._typeid = "Uint32";
|
|
249
251
|
Uint32MapProperty.prototype._castFunctor = _castFunctors.Uint32;
|
|
250
252
|
/**
|
|
251
253
|
* A ValueMapProperty which stores Uint16 values
|
|
@@ -265,7 +267,7 @@ class Uint16MapProperty extends ValueMapProperty {
|
|
|
265
267
|
}
|
|
266
268
|
}
|
|
267
269
|
exports.Uint16MapProperty = Uint16MapProperty;
|
|
268
|
-
Uint16MapProperty.prototype._typeid =
|
|
270
|
+
Uint16MapProperty.prototype._typeid = "Uint16";
|
|
269
271
|
Uint16MapProperty.prototype._castFunctor = _castFunctors.Uint16;
|
|
270
272
|
/**
|
|
271
273
|
* A ValueMapProperty which stores Uint8 values
|
|
@@ -285,7 +287,7 @@ class Uint8MapProperty extends ValueMapProperty {
|
|
|
285
287
|
}
|
|
286
288
|
}
|
|
287
289
|
exports.Uint8MapProperty = Uint8MapProperty;
|
|
288
|
-
Uint8MapProperty.prototype._typeid =
|
|
290
|
+
Uint8MapProperty.prototype._typeid = "Uint8";
|
|
289
291
|
Uint8MapProperty.prototype._castFunctor = _castFunctors.Uint8;
|
|
290
292
|
/**
|
|
291
293
|
* A ValueMapProperty which stores Int32 values
|
|
@@ -305,7 +307,7 @@ class Int32MapProperty extends ValueMapProperty {
|
|
|
305
307
|
}
|
|
306
308
|
}
|
|
307
309
|
exports.Int32MapProperty = Int32MapProperty;
|
|
308
|
-
Int32MapProperty.prototype._typeid =
|
|
310
|
+
Int32MapProperty.prototype._typeid = "Int32";
|
|
309
311
|
Int32MapProperty.prototype._castFunctor = _castFunctors.Int32;
|
|
310
312
|
/**
|
|
311
313
|
* An abstract base class for 64 bit integer map properties
|
|
@@ -360,7 +362,7 @@ class Integer64MapProperty extends ValueMapProperty {
|
|
|
360
362
|
* @inheritdoc
|
|
361
363
|
*/
|
|
362
364
|
_prettyPrintChildren(indent, printFct) {
|
|
363
|
-
indent +=
|
|
365
|
+
indent += " ";
|
|
364
366
|
var int64Prop;
|
|
365
367
|
_.mapValues(this._dynamicChildren, function (val, key) {
|
|
366
368
|
// TODO: The 'toString()' function is defined on Integer64Property, so we need to create
|
|
@@ -368,7 +370,7 @@ class Integer64MapProperty extends ValueMapProperty {
|
|
|
368
370
|
int64Prop = val instanceof Int64 ? new Int64Property({}) : new Uint64Property({});
|
|
369
371
|
int64Prop.setValueLow(val.getValueLow());
|
|
370
372
|
int64Prop.setValueHigh(val.getValueHigh());
|
|
371
|
-
printFct(indent + key +
|
|
373
|
+
printFct(indent + key + ": " + int64Prop);
|
|
372
374
|
});
|
|
373
375
|
}
|
|
374
376
|
}
|
|
@@ -402,7 +404,7 @@ class Int64MapProperty extends Integer64MapProperty {
|
|
|
402
404
|
}
|
|
403
405
|
}
|
|
404
406
|
exports.Int64MapProperty = Int64MapProperty;
|
|
405
|
-
Int64MapProperty.prototype._typeid =
|
|
407
|
+
Int64MapProperty.prototype._typeid = "Int64";
|
|
406
408
|
Int64MapProperty.prototype._castFunctor = _castFunctors.Int64;
|
|
407
409
|
/**
|
|
408
410
|
* A ValueMapProperty which stores Uint64 Properties
|
|
@@ -433,7 +435,7 @@ class Uint64MapProperty extends Integer64MapProperty {
|
|
|
433
435
|
}
|
|
434
436
|
}
|
|
435
437
|
exports.Uint64MapProperty = Uint64MapProperty;
|
|
436
|
-
Uint64MapProperty.prototype._typeid =
|
|
438
|
+
Uint64MapProperty.prototype._typeid = "Uint64";
|
|
437
439
|
Uint64MapProperty.prototype._castFunctor = _castFunctors.Uint64;
|
|
438
440
|
/**
|
|
439
441
|
* A ValueMapProperty which stores Int16 values
|
|
@@ -452,7 +454,7 @@ class Int16MapProperty extends ValueMapProperty {
|
|
|
452
454
|
}
|
|
453
455
|
}
|
|
454
456
|
exports.Int16MapProperty = Int16MapProperty;
|
|
455
|
-
Int16MapProperty.prototype._typeid =
|
|
457
|
+
Int16MapProperty.prototype._typeid = "Int16";
|
|
456
458
|
Int16MapProperty.prototype._castFunctor = _castFunctors.Int16;
|
|
457
459
|
/**
|
|
458
460
|
* A ValueMapProperty which stores Int8 values
|
|
@@ -472,7 +474,7 @@ class Int8MapProperty extends ValueMapProperty {
|
|
|
472
474
|
}
|
|
473
475
|
}
|
|
474
476
|
exports.Int8MapProperty = Int8MapProperty;
|
|
475
|
-
Int8MapProperty.prototype._typeid =
|
|
477
|
+
Int8MapProperty.prototype._typeid = "Int8";
|
|
476
478
|
Int8MapProperty.prototype._castFunctor = _castFunctors.Int8;
|
|
477
479
|
/**
|
|
478
480
|
* A ValueMapProperty which stores string values
|
|
@@ -492,7 +494,7 @@ class StringMapProperty extends ValueMapProperty {
|
|
|
492
494
|
}
|
|
493
495
|
}
|
|
494
496
|
exports.StringMapProperty = StringMapProperty;
|
|
495
|
-
StringMapProperty.prototype._typeid =
|
|
497
|
+
StringMapProperty.prototype._typeid = "String";
|
|
496
498
|
StringMapProperty.prototype._castFunctor = _castFunctors.String;
|
|
497
499
|
/**
|
|
498
500
|
* A ValueMapProperty which stores boolean values
|
|
@@ -512,6 +514,6 @@ class BoolMapProperty extends ValueMapProperty {
|
|
|
512
514
|
}
|
|
513
515
|
}
|
|
514
516
|
exports.BoolMapProperty = BoolMapProperty;
|
|
515
|
-
BoolMapProperty.prototype._typeid =
|
|
517
|
+
BoolMapProperty.prototype._typeid = "Bool";
|
|
516
518
|
BoolMapProperty.prototype._castFunctor = _castFunctors.Boolean;
|
|
517
519
|
//# sourceMappingURL=valueMapProperty.js.map
|