@fluid-experimental/property-properties 0.58.1001 → 0.58.2000-58133

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 (223) hide show
  1. package/dist/containerSerializer.d.ts.map +1 -1
  2. package/dist/containerSerializer.js +4 -10
  3. package/dist/containerSerializer.js.map +1 -1
  4. package/dist/enableValidations.d.ts.map +1 -1
  5. package/dist/enableValidations.js +1 -1
  6. package/dist/enableValidations.js.map +1 -1
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/properties/abstractStaticCollectionProperty.d.ts.map +1 -1
  11. package/dist/properties/abstractStaticCollectionProperty.js +1 -28
  12. package/dist/properties/abstractStaticCollectionProperty.js.map +1 -1
  13. package/dist/properties/arrayProperty.d.ts.map +1 -1
  14. package/dist/properties/arrayProperty.js +26 -85
  15. package/dist/properties/arrayProperty.js.map +1 -1
  16. package/dist/properties/baseProperty.d.ts.map +1 -1
  17. package/dist/properties/baseProperty.js +9 -71
  18. package/dist/properties/baseProperty.js.map +1 -1
  19. package/dist/properties/boolProperty.d.ts.map +1 -1
  20. package/dist/properties/boolProperty.js +0 -1
  21. package/dist/properties/boolProperty.js.map +1 -1
  22. package/dist/properties/containerProperty.d.ts.map +1 -1
  23. package/dist/properties/containerProperty.js +4 -22
  24. package/dist/properties/containerProperty.js.map +1 -1
  25. package/dist/properties/enumArrayProperty.d.ts.map +1 -1
  26. package/dist/properties/enumArrayProperty.js +2 -14
  27. package/dist/properties/enumArrayProperty.js.map +1 -1
  28. package/dist/properties/enumProperty.d.ts.map +1 -1
  29. package/dist/properties/enumProperty.js +3 -10
  30. package/dist/properties/enumProperty.js.map +1 -1
  31. package/dist/properties/floatProperties.js +0 -2
  32. package/dist/properties/floatProperties.js.map +1 -1
  33. package/dist/properties/index.d.ts +7 -38
  34. package/dist/properties/index.d.ts.map +1 -1
  35. package/dist/properties/index.js +37 -68
  36. package/dist/properties/index.js.map +1 -1
  37. package/dist/properties/indexedCollectionBaseProperty.d.ts.map +1 -1
  38. package/dist/properties/indexedCollectionBaseProperty.js +6 -18
  39. package/dist/properties/indexedCollectionBaseProperty.js.map +1 -1
  40. package/dist/properties/intProperties.d.ts.map +1 -1
  41. package/dist/properties/intProperties.js +3 -20
  42. package/dist/properties/intProperties.js.map +1 -1
  43. package/dist/properties/lazyLoadedProperties.js.map +1 -1
  44. package/dist/properties/mapProperty.d.ts.map +1 -1
  45. package/dist/properties/mapProperty.js +4 -23
  46. package/dist/properties/mapProperty.js.map +1 -1
  47. package/dist/properties/namedNodeProperty.d.ts.map +1 -1
  48. package/dist/properties/namedNodeProperty.js.map +1 -1
  49. package/dist/properties/namedProperty.d.ts.map +1 -1
  50. package/dist/properties/namedProperty.js +0 -3
  51. package/dist/properties/namedProperty.js.map +1 -1
  52. package/dist/properties/nodeProperty.d.ts.map +1 -1
  53. package/dist/properties/nodeProperty.js +0 -3
  54. package/dist/properties/nodeProperty.js.map +1 -1
  55. package/dist/properties/primitiveTypeCasts.d.ts.map +1 -1
  56. package/dist/properties/primitiveTypeCasts.js +2 -2
  57. package/dist/properties/primitiveTypeCasts.js.map +1 -1
  58. package/dist/properties/referenceArrayProperty.d.ts.map +1 -1
  59. package/dist/properties/referenceArrayProperty.js +3 -16
  60. package/dist/properties/referenceArrayProperty.js.map +1 -1
  61. package/dist/properties/referenceMapProperty.d.ts.map +1 -1
  62. package/dist/properties/referenceMapProperty.js +3 -13
  63. package/dist/properties/referenceMapProperty.js.map +1 -1
  64. package/dist/properties/referenceProperty.d.ts.map +1 -1
  65. package/dist/properties/referenceProperty.js +4 -12
  66. package/dist/properties/referenceProperty.js.map +1 -1
  67. package/dist/properties/setProperty.d.ts.map +1 -1
  68. package/dist/properties/setProperty.js +3 -22
  69. package/dist/properties/setProperty.js.map +1 -1
  70. package/dist/properties/stringProperty.d.ts.map +1 -1
  71. package/dist/properties/stringProperty.js +12 -48
  72. package/dist/properties/stringProperty.js.map +1 -1
  73. package/dist/properties/uintProperties.js +0 -3
  74. package/dist/properties/uintProperties.js.map +1 -1
  75. package/dist/properties/valueArrayProperty.d.ts.map +1 -1
  76. package/dist/properties/valueArrayProperty.js +3 -45
  77. package/dist/properties/valueArrayProperty.js.map +1 -1
  78. package/dist/properties/valueMapProperty.d.ts.map +1 -1
  79. package/dist/properties/valueMapProperty.js +4 -29
  80. package/dist/properties/valueMapProperty.js.map +1 -1
  81. package/dist/properties/valueProperty.d.ts.map +1 -1
  82. package/dist/properties/valueProperty.js +2 -14
  83. package/dist/properties/valueProperty.js.map +1 -1
  84. package/dist/propertyFactory.d.ts.map +1 -1
  85. package/dist/propertyFactory.js +35 -72
  86. package/dist/propertyFactory.js.map +1 -1
  87. package/dist/propertyTemplate.d.ts.map +1 -1
  88. package/dist/propertyTemplate.js +0 -14
  89. package/dist/propertyTemplate.js.map +1 -1
  90. package/dist/propertyTemplateWrapper.d.ts.map +1 -1
  91. package/dist/propertyTemplateWrapper.js +4 -12
  92. package/dist/propertyTemplateWrapper.js.map +1 -1
  93. package/dist/propertyUtils.d.ts.map +1 -1
  94. package/dist/propertyUtils.js.map +1 -1
  95. package/dist/test/properties/arrayProperty.spec.js +82 -82
  96. package/dist/test/properties/arrayProperty.spec.js.map +1 -1
  97. package/dist/test/properties/baseProperty.spec.js +53 -53
  98. package/dist/test/properties/baseProperty.spec.js.map +1 -1
  99. package/dist/test/properties/containerProperty.spec.js +25 -25
  100. package/dist/test/properties/containerProperty.spec.js.map +1 -1
  101. package/dist/test/properties/customArrayProperty.spec.js +35 -35
  102. package/dist/test/properties/customArrayProperty.spec.js.map +1 -1
  103. package/dist/test/properties/enumArrayProperty.spec.js +6 -6
  104. package/dist/test/properties/enumArrayProperty.spec.js.map +1 -1
  105. package/dist/test/properties/enumProperty.spec.js +26 -26
  106. package/dist/test/properties/enumProperty.spec.js.map +1 -1
  107. package/dist/test/properties/float32.spec.js.map +1 -1
  108. package/dist/test/properties/int64ArrayProperty.spec.js +22 -22
  109. package/dist/test/properties/int64ArrayProperty.spec.js.map +1 -1
  110. package/dist/test/properties/int64MapProperty.spec.js +28 -28
  111. package/dist/test/properties/int64MapProperty.spec.js.map +1 -1
  112. package/dist/test/properties/int64Property.spec.js +11 -11
  113. package/dist/test/properties/int64Property.spec.js.map +1 -1
  114. package/dist/test/properties/isLeafNode.spec.js +25 -25
  115. package/dist/test/properties/isLeafNode.spec.js.map +1 -1
  116. package/dist/test/properties/mapProperty.spec.js +110 -110
  117. package/dist/test/properties/mapProperty.spec.js.map +1 -1
  118. package/dist/test/properties/namedNodeProperty.spec.js +5 -5
  119. package/dist/test/properties/namedNodeProperty.spec.js.map +1 -1
  120. package/dist/test/properties/nodeProperty.spec.js +160 -160
  121. package/dist/test/properties/nodeProperty.spec.js.map +1 -1
  122. package/dist/test/properties/referenceProperty.spec.js +21 -21
  123. package/dist/test/properties/referenceProperty.spec.js.map +1 -1
  124. package/dist/test/properties/relationshipProperty.spec.js +4 -4
  125. package/dist/test/properties/relationshipProperty.spec.js.map +1 -1
  126. package/dist/test/properties/setProperty.spec.js +32 -32
  127. package/dist/test/properties/setProperty.spec.js.map +1 -1
  128. package/dist/test/properties/stringProperty.spec.js +38 -38
  129. package/dist/test/properties/stringProperty.spec.js.map +1 -1
  130. package/dist/test/properties/uint64Property.spec.js +3 -3
  131. package/dist/test/properties/uint64Property.spec.js.map +1 -1
  132. package/dist/test/properties/valueMapProperty.spec.js +28 -28
  133. package/dist/test/properties/valueMapProperty.spec.js.map +1 -1
  134. package/dist/test/properties/valueProperty.spec.js +7 -7
  135. package/dist/test/properties/valueProperty.spec.js.map +1 -1
  136. package/dist/test/propertyFactory.spec.js +559 -560
  137. package/dist/test/propertyFactory.spec.js.map +1 -1
  138. package/dist/test/propertyTemplateWrapper.spec.js +38 -38
  139. package/dist/test/propertyTemplateWrapper.spec.js.map +1 -1
  140. package/dist/test/propertyUtils.spec.js +5 -5
  141. package/dist/test/propertyUtils.spec.js.map +1 -1
  142. package/dist/test/reversibleChangeset.spec.js +266 -266
  143. package/dist/test/reversibleChangeset.spec.js.map +1 -1
  144. package/dist/test/setup.js.map +1 -1
  145. package/dist/test/tsconfig.tsbuildinfo +145 -145
  146. package/dist/test/utils.spec.js +508 -517
  147. package/dist/test/utils.spec.js.map +1 -1
  148. package/dist/test/validation/badMissingSemverInTypeid.js +9 -9
  149. package/dist/test/validation/badMissingSemverInTypeid.js.map +1 -1
  150. package/dist/test/validation/badPrimitiveTypeid.js +5 -5
  151. package/dist/test/validation/badPrimitiveTypeid.js.map +1 -1
  152. package/dist/test/validation/goodColorId.js +42 -42
  153. package/dist/test/validation/goodColorId.js.map +1 -1
  154. package/dist/test/validation/goodColorPalette.js +2 -2
  155. package/dist/test/validation/goodColorPalette.js.map +1 -1
  156. package/dist/test/validation/goodPointId.js +9 -9
  157. package/dist/test/validation/goodPointId.js.map +1 -1
  158. package/dist/test/validation/reversibleChangeSetTestData.js +1 -1
  159. package/dist/test/validation/reversibleChangeSetTestData.js.map +1 -1
  160. package/lib/containerSerializer.js +4 -10
  161. package/lib/containerSerializer.js.map +1 -1
  162. package/lib/enableValidations.js +1 -1
  163. package/lib/enableValidations.js.map +1 -1
  164. package/lib/index.js +1 -1
  165. package/lib/index.js.map +1 -1
  166. package/lib/properties/abstractStaticCollectionProperty.js +1 -28
  167. package/lib/properties/abstractStaticCollectionProperty.js.map +1 -1
  168. package/lib/properties/arrayProperty.js +26 -85
  169. package/lib/properties/arrayProperty.js.map +1 -1
  170. package/lib/properties/baseProperty.js +7 -69
  171. package/lib/properties/baseProperty.js.map +1 -1
  172. package/lib/properties/boolProperty.js +0 -1
  173. package/lib/properties/boolProperty.js.map +1 -1
  174. package/lib/properties/containerProperty.js +4 -22
  175. package/lib/properties/containerProperty.js.map +1 -1
  176. package/lib/properties/enumArrayProperty.js +2 -14
  177. package/lib/properties/enumArrayProperty.js.map +1 -1
  178. package/lib/properties/enumProperty.js +3 -10
  179. package/lib/properties/enumProperty.js.map +1 -1
  180. package/lib/properties/floatProperties.js +0 -2
  181. package/lib/properties/floatProperties.js.map +1 -1
  182. package/lib/properties/index.js +7 -38
  183. package/lib/properties/index.js.map +1 -1
  184. package/lib/properties/indexedCollectionBaseProperty.js +6 -18
  185. package/lib/properties/indexedCollectionBaseProperty.js.map +1 -1
  186. package/lib/properties/intProperties.js +3 -20
  187. package/lib/properties/intProperties.js.map +1 -1
  188. package/lib/properties/lazyLoadedProperties.js.map +1 -1
  189. package/lib/properties/mapProperty.js +4 -23
  190. package/lib/properties/mapProperty.js.map +1 -1
  191. package/lib/properties/namedNodeProperty.js.map +1 -1
  192. package/lib/properties/namedProperty.js +0 -3
  193. package/lib/properties/namedProperty.js.map +1 -1
  194. package/lib/properties/nodeProperty.js +0 -3
  195. package/lib/properties/nodeProperty.js.map +1 -1
  196. package/lib/properties/primitiveTypeCasts.js +2 -2
  197. package/lib/properties/primitiveTypeCasts.js.map +1 -1
  198. package/lib/properties/referenceArrayProperty.js +3 -16
  199. package/lib/properties/referenceArrayProperty.js.map +1 -1
  200. package/lib/properties/referenceMapProperty.js +3 -13
  201. package/lib/properties/referenceMapProperty.js.map +1 -1
  202. package/lib/properties/referenceProperty.js +4 -12
  203. package/lib/properties/referenceProperty.js.map +1 -1
  204. package/lib/properties/setProperty.js +3 -22
  205. package/lib/properties/setProperty.js.map +1 -1
  206. package/lib/properties/stringProperty.js +12 -48
  207. package/lib/properties/stringProperty.js.map +1 -1
  208. package/lib/properties/uintProperties.js +0 -3
  209. package/lib/properties/uintProperties.js.map +1 -1
  210. package/lib/properties/valueArrayProperty.js +3 -45
  211. package/lib/properties/valueArrayProperty.js.map +1 -1
  212. package/lib/properties/valueMapProperty.js +4 -29
  213. package/lib/properties/valueMapProperty.js.map +1 -1
  214. package/lib/properties/valueProperty.js +2 -14
  215. package/lib/properties/valueProperty.js.map +1 -1
  216. package/lib/propertyFactory.js +35 -72
  217. package/lib/propertyFactory.js.map +1 -1
  218. package/lib/propertyTemplate.js +0 -14
  219. package/lib/propertyTemplate.js.map +1 -1
  220. package/lib/propertyTemplateWrapper.js +4 -12
  221. package/lib/propertyTemplateWrapper.js.map +1 -1
  222. package/lib/propertyUtils.js.map +1 -1
  223. package/package.json +13 -6
@@ -12,7 +12,6 @@ exports.BaseProperty = void 0;
12
12
  const lodash_1 = __importDefault(require("lodash"));
13
13
  const property_changeset_1 = require("@fluid-experimental/property-changeset");
14
14
  const property_common_1 = require("@fluid-experimental/property-common");
15
- const property_common_2 = require("@fluid-experimental/property-common");
16
15
  const lazyLoadedProperties_1 = require("./lazyLoadedProperties");
17
16
  const { MSG, PROPERTY_PATH_DELIMITER } = property_common_1.constants;
18
17
  const BREAK_TRAVERSAL = 'BREAK';
@@ -40,7 +39,6 @@ var MODIFIED_STATE_FLAGS;
40
39
  /** The property has been modified and the result has not yet been reported to the application for scene updates */
41
40
  MODIFIED_STATE_FLAGS[MODIFIED_STATE_FLAGS["DIRTY"] = 2] = "DIRTY";
42
41
  })(MODIFIED_STATE_FLAGS || (MODIFIED_STATE_FLAGS = {}));
43
- ;
44
42
  /**
45
43
  * Token Types
46
44
  * @enum Object
@@ -52,7 +50,7 @@ const PATH_TOKENS = {
52
50
  /** A * that indicates a dereferencing operation */ // note: reversed!
53
51
  REF: { 'token': 'REF' },
54
52
  /** A ../ that indicates one step above the current path */
55
- UP: { 'token': 'UP' }
53
+ UP: { 'token': 'UP' },
56
54
  };
57
55
  /**
58
56
  * The options to selectively create only a subset of a property.
@@ -91,21 +89,18 @@ class BaseProperty {
91
89
  this._dirty = MODIFIED_STATE_FLAGS.CLEAN;
92
90
  }
93
91
  }
94
- ;
95
92
  /**
96
93
  * @returns The typeid of this property
97
94
  */
98
95
  getTypeid() {
99
96
  return this._typeid;
100
97
  }
101
- ;
102
98
  /**
103
99
  * @returns The context of this property
104
100
  */
105
101
  getContext() {
106
102
  return this._context;
107
103
  }
108
- ;
109
104
  /**
110
105
  * Get the scope to which this property belongs to.
111
106
  * @returns The guid representing the scope in which the
@@ -119,7 +114,6 @@ class BaseProperty {
119
114
  return undefined;
120
115
  }
121
116
  }
122
- ;
123
117
  /**
124
118
  * Returns the full property type identifier for the ChangeSet including the enum type id
125
119
  * @param in_hideCollection - if true the collection type (if applicable) will be omitted
@@ -129,7 +123,6 @@ class BaseProperty {
129
123
  getFullTypeid(in_hideCollection = false) {
130
124
  return this._typeid;
131
125
  }
132
- ;
133
126
  /**
134
127
  * Updates the parent for the property
135
128
  *
@@ -144,7 +137,6 @@ class BaseProperty {
144
137
  this._parent._setDirty(false, this);
145
138
  }
146
139
  }
147
- ;
148
140
  /**
149
141
  * Is this property the root of the property set tree?
150
142
  *
@@ -155,7 +147,6 @@ class BaseProperty {
155
147
  // (all other properties should have a parent property)
156
148
  return this._parent === undefined;
157
149
  }
158
- ;
159
150
  /**
160
151
  * Is this property the ancestor of in_otherProperty?
161
152
  * Note: A property is not considered an ancestor of itself
@@ -164,7 +155,7 @@ class BaseProperty {
164
155
  * @returns True if it is a ancestor, otherwise false.
165
156
  */
166
157
  isAncestorOf(in_otherProperty) {
167
- property_common_2.ConsoleUtils.assert(in_otherProperty, MSG.MISSING_IN_OTHERPROP);
158
+ property_common_1.ConsoleUtils.assert(in_otherProperty, MSG.MISSING_IN_OTHERPROP);
168
159
  var parent = in_otherProperty.getParent();
169
160
  while (parent) {
170
161
  if (parent === this) {
@@ -176,7 +167,6 @@ class BaseProperty {
176
167
  }
177
168
  return false;
178
169
  }
179
- ;
180
170
  /**
181
171
  * Is this property the descendant of in_otherProperty?
182
172
  * Note: A property is not considered a descendant of itself
@@ -185,10 +175,9 @@ class BaseProperty {
185
175
  * @returns True if it is a descendant, otherwise false.
186
176
  */
187
177
  isDescendantOf(in_otherProperty) {
188
- property_common_2.ConsoleUtils.assert(in_otherProperty, MSG.MISSING_IN_OTHERPROP);
178
+ property_common_1.ConsoleUtils.assert(in_otherProperty, MSG.MISSING_IN_OTHERPROP);
189
179
  return in_otherProperty.isAncestorOf(this);
190
180
  }
191
- ;
192
181
  /**
193
182
  * Is this property a leaf node with regard to flattening?
194
183
  *
@@ -199,7 +188,6 @@ class BaseProperty {
199
188
  _isFlattenLeaf() {
200
189
  return false;
201
190
  }
202
- ;
203
191
  /**
204
192
  * Get the parent of this property
205
193
  *
@@ -208,7 +196,6 @@ class BaseProperty {
208
196
  getParent() {
209
197
  return this._parent;
210
198
  }
211
- ;
212
199
  /**
213
200
  * checks whether the property is dynamic (only properties inherting from NodeProperty are)
214
201
  * @returns True if it is a dynamic property.
@@ -216,7 +203,6 @@ class BaseProperty {
216
203
  isDynamic() {
217
204
  return false;
218
205
  }
219
- ;
220
206
  /**
221
207
  * Sets the property as dirty and/or pending. This will add one or both flags if not already set and will
222
208
  * do the same for its parent. This does not clear any flag, it only sets.
@@ -250,7 +236,6 @@ class BaseProperty {
250
236
  this._reportDirtinessToView();
251
237
  }
252
238
  }
253
- ;
254
239
  /**
255
240
  * Sets the dirty flags for this property
256
241
  * @param in_flags - The dirty flags
@@ -258,7 +243,6 @@ class BaseProperty {
258
243
  _setDirtyFlags(in_flags) {
259
244
  this._dirty = in_flags;
260
245
  }
261
- ;
262
246
  /**
263
247
  * Gets the dirty flags for this property
264
248
  * @returns The dirty flags
@@ -266,7 +250,6 @@ class BaseProperty {
266
250
  _getDirtyFlags() {
267
251
  return this._dirty;
268
252
  }
269
- ;
270
253
  /**
271
254
  * Helper function, which reports the fact that a property has been dirtied to the checkout view
272
255
  * @private
@@ -289,7 +272,6 @@ class BaseProperty {
289
272
  currentNode._tree._reportDirtinessToView();
290
273
  }
291
274
  }
292
- ;
293
275
  /**
294
276
  * Modifies the property according to the given changeset
295
277
  *
@@ -303,7 +285,6 @@ class BaseProperty {
303
285
  // We just forward the call to the internal function
304
286
  this._applyChangeset(in_changeSet, true);
305
287
  }
306
- ;
307
288
  /**
308
289
  * Modifies the property according to the given changeset
309
290
  *
@@ -339,7 +320,6 @@ class BaseProperty {
339
320
  this._reportDirtinessToView();
340
321
  }
341
322
  }
342
- ;
343
323
  /**
344
324
  * Re-apply dirty flags from changesets
345
325
  *
@@ -375,7 +355,6 @@ class BaseProperty {
375
355
  resolvePath(path, params) {
376
356
  throw new Error("Method not implemented.");
377
357
  }
378
- ;
379
358
  /**
380
359
  * Removes the dirtiness flag from this property
381
360
  * @param {property-properties.BaseProperty.MODIFIED_STATE_FLAGS} [in_flags] - The flags to clean, if none are supplied all
@@ -386,7 +365,6 @@ class BaseProperty {
386
365
  this._setDirtyFlags(in_flags === undefined ? MODIFIED_STATE_FLAGS.CLEAN :
387
366
  (this._getDirtyFlags() & ~in_flags));
388
367
  }
389
- ;
390
368
  /**
391
369
  * Removes the dirtiness flag from this property and recursively from all of its children
392
370
  *
@@ -403,7 +381,6 @@ class BaseProperty {
403
381
  // after all paths are clean, we are also clean!
404
382
  this._cleanDirty(in_flags);
405
383
  }
406
- ;
407
384
  /**
408
385
  * Indicates that the property has been modified and a corresponding modified call has not yet been sent to the
409
386
  * application for runtime scene updates.
@@ -414,7 +391,6 @@ class BaseProperty {
414
391
  _isDirty(in_dirtinessType = MODIFIED_STATE_FLAGS.DIRTY) {
415
392
  return !!(this._getDirtyFlags() & in_dirtinessType);
416
393
  }
417
- ;
418
394
  /**
419
395
  * Indicates that the property has been modified and a corresponding modified call has not yet been sent to the
420
396
  * application for runtime scene updates.
@@ -424,7 +400,6 @@ class BaseProperty {
424
400
  isDirty() {
425
401
  return this._isDirty();
426
402
  }
427
- ;
428
403
  /**
429
404
  * The property has pending changes in the current ChangeSet.
430
405
  * @returns True if the property has pending changes. False otherwise.
@@ -432,7 +407,6 @@ class BaseProperty {
432
407
  hasPendingChanges() {
433
408
  return this._isDirty(MODIFIED_STATE_FLAGS.PENDING_CHANGE);
434
409
  }
435
- ;
436
410
  /**
437
411
  * Returns the ChangeSet of all sub-properties
438
412
  *
@@ -442,7 +416,6 @@ class BaseProperty {
442
416
  var serialized = this._serialize(true, false, BaseProperty.MODIFIED_STATE_FLAGS.PENDING_CHANGE);
443
417
  return new property_changeset_1.ChangeSet(serialized);
444
418
  }
445
- ;
446
419
  /**
447
420
  * Get the id of this property
448
421
  *
@@ -451,7 +424,6 @@ class BaseProperty {
451
424
  getId() {
452
425
  return this._id;
453
426
  }
454
- ;
455
427
  /**
456
428
  * Sets the checkedOutRepositoryInfo.
457
429
  * @param {property-properties.CheckoutView~CheckedOutRepositoryInfo} value - The checkedOut repository info.
@@ -460,7 +432,6 @@ class BaseProperty {
460
432
  _setCheckoutView(value) {
461
433
  this._checkoutView = value;
462
434
  }
463
- ;
464
435
  /**
465
436
  * Returns the checkoutView
466
437
  * @return {property-properties.CheckoutView} - the checkout view
@@ -469,7 +440,6 @@ class BaseProperty {
469
440
  let checkedOutRepositoryInfo = this._getCheckedOutRepositoryInfo();
470
441
  return checkedOutRepositoryInfo ? checkedOutRepositoryInfo.getCheckoutView() : undefined;
471
442
  }
472
- ;
473
443
  /**
474
444
  * Returns the checkedOutRepositoryInfo.
475
445
  * @return {property-properties.CheckoutView~CheckedOutRepositoryInfo} The checkedOut repository info.
@@ -483,7 +453,6 @@ class BaseProperty {
483
453
  return this.getRoot() ? this.getRoot()._getCheckedOutRepositoryInfo() : undefined;
484
454
  }
485
455
  }
486
- ;
487
456
  /**
488
457
  * Returns the Workspace
489
458
  * @returns The workspace containing the property.
@@ -492,7 +461,6 @@ class BaseProperty {
492
461
  const root = this.getRoot();
493
462
  return root ? root._tree : undefined;
494
463
  }
495
- ;
496
464
  /**
497
465
  * Returns the path segment for a child
498
466
  *
@@ -503,7 +471,6 @@ class BaseProperty {
503
471
  _getPathSegmentForChildNode(in_childNode) {
504
472
  return PROPERTY_PATH_DELIMITER + property_changeset_1.PathHelper.quotePathSegmentIfNeeded(in_childNode.getId());
505
473
  }
506
- ;
507
474
  /**
508
475
  * Resolves a direct child node based on the given path segment
509
476
  *
@@ -520,7 +487,6 @@ class BaseProperty {
520
487
  }
521
488
  return this.get(in_segment, { referenceResolutionMode: BaseProperty.REFERENCE_RESOLUTION.NEVER });
522
489
  }
523
- ;
524
490
  /**
525
491
  * Set the id of this property
526
492
  *
@@ -541,7 +507,6 @@ class BaseProperty {
541
507
  this._setDirty();
542
508
  return in_id;
543
509
  }
544
- ;
545
510
  /**
546
511
  * Return a clone of this property
547
512
  * @returns The cloned property
@@ -556,7 +521,6 @@ class BaseProperty {
556
521
  BaseProperty.MODIFIED_STATE_FLAGS.DIRTY);
557
522
  return clone;
558
523
  }
559
- ;
560
524
  /**
561
525
  * Returns true if the property is a primitive type
562
526
  * @return {boolean} true if the property is a primitive type
@@ -564,7 +528,6 @@ class BaseProperty {
564
528
  isPrimitiveType() {
565
529
  return property_changeset_1.TypeIdHelper.isPrimitiveType(this._typeid);
566
530
  }
567
- ;
568
531
  /**
569
532
  * Get a flattened, tree like representation of this object and all of it's
570
533
  * descendants. The flattening will stop at primitive properties and collections.
@@ -579,7 +542,6 @@ class BaseProperty {
579
542
  _flatten() {
580
543
  return { propertyNode: this };
581
544
  }
582
- ;
583
545
  /**
584
546
  * Repeatedly calls back the given function with human-readable string representations
585
547
  * of the property and of its sub-properties. By default it logs to the console.
@@ -592,7 +554,6 @@ class BaseProperty {
592
554
  }
593
555
  this._prettyPrint('', '', printFct);
594
556
  }
595
- ;
596
557
  /**
597
558
  * Return a JSON representation of the properties and its children.
598
559
  * @return {object} A JSON representation of the properties and its children.
@@ -604,7 +565,7 @@ class BaseProperty {
604
565
  context: this._context,
605
566
  typeid: this.getTypeid(),
606
567
  isConstant: this._isConstant,
607
- value: []
568
+ value: [],
608
569
  };
609
570
  var ids = this.getIds();
610
571
  for (const id of ids) {
@@ -612,7 +573,6 @@ class BaseProperty {
612
573
  }
613
574
  return json;
614
575
  }
615
- ;
616
576
  getIds() {
617
577
  return [];
618
578
  }
@@ -641,7 +601,6 @@ class BaseProperty {
641
601
  printFct(indent + externalId + this.getId() + ' (' + context + this.getTypeid() + '):');
642
602
  this._prettyPrintChildren(indent, printFct);
643
603
  }
644
- ;
645
604
  /**
646
605
  * Repeatedly calls back the given function with human-readable string
647
606
  * representations of the property's sub-properties.
@@ -655,7 +614,6 @@ class BaseProperty {
655
614
  this.get(ids[i], { referenceResolutionMode: BaseProperty.REFERENCE_RESOLUTION.NEVER })._prettyPrint(indent, '', printFct);
656
615
  }
657
616
  }
658
- ;
659
617
  /**
660
618
  * Returns the possible paths from the given from_property to this property. If multiple paths
661
619
  * through multiple repository references are possible, returns more than one path.
@@ -709,7 +667,6 @@ class BaseProperty {
709
667
  }
710
668
  return [];
711
669
  }
712
- ;
713
670
  /**
714
671
  * Returns the possible paths from the given in_fromProperty to this property. If no direct paths
715
672
  * exist, it returns an indirect path between the two properties.
@@ -742,7 +699,6 @@ class BaseProperty {
742
699
  return undefined;
743
700
  }
744
701
  }
745
- ;
746
702
  /**
747
703
  * Returns the path from the given in_fromProperty to this property if a direct path
748
704
  * exists between the two properties. Otherwise returns undefined.
@@ -783,7 +739,6 @@ class BaseProperty {
783
739
  return undefined;
784
740
  }
785
741
  }
786
- ;
787
742
  /**
788
743
  * Returns the possible paths from the given in_fromProperty to this property.
789
744
  *
@@ -808,7 +763,6 @@ class BaseProperty {
808
763
  }
809
764
  }
810
765
  }
811
- ;
812
766
  /**
813
767
  * Returns the path from the given fron_property to this node if such a path exists.
814
768
  * If more than one paths exist (as might be the case with multiple repository references
@@ -825,7 +779,7 @@ class BaseProperty {
825
779
  * @throws if in_fromProperty is not a property
826
780
  */
827
781
  getRelativePath(in_fromProperty) {
828
- property_common_2.ConsoleUtils.assert(in_fromProperty instanceof BaseProperty, MSG.IN_FROMPROPERTY_MUST_BE_PROPERTY);
782
+ property_common_1.ConsoleUtils.assert(in_fromProperty instanceof BaseProperty, MSG.IN_FROMPROPERTY_MUST_BE_PROPERTY);
829
783
  var paths = this._getAllRelativePaths(in_fromProperty) || [];
830
784
  if (paths.length === 0) {
831
785
  console.warn(MSG.NO_PATH_BETWEEN +
@@ -839,7 +793,6 @@ class BaseProperty {
839
793
  }
840
794
  return paths[0];
841
795
  }
842
- ;
843
796
  /**
844
797
  * Returns the path from the root of the workspace to this node
845
798
  * (including a slash at the beginning)
@@ -894,7 +847,6 @@ class BaseProperty {
894
847
  absolutePath = '/' + absolutePath;
895
848
  return absolutePath;
896
849
  }
897
- ;
898
850
  /**
899
851
  * Traverses the property hierarchy upwards until the a node without parent is reached
900
852
  *
@@ -905,7 +857,7 @@ class BaseProperty {
905
857
  * otherwise undefined
906
858
  */
907
859
  traverseUp(in_callback) {
908
- property_common_2.ConsoleUtils.assert(lodash_1.default.isFunction(in_callback), MSG.CALLBACK_NOT_FCT);
860
+ property_common_1.ConsoleUtils.assert(lodash_1.default.isFunction(in_callback), MSG.CALLBACK_NOT_FCT);
909
861
  if (this._parent) {
910
862
  var result = in_callback(this._parent);
911
863
  if (result !== BREAK_TRAVERSAL) {
@@ -917,7 +869,6 @@ class BaseProperty {
917
869
  }
918
870
  return undefined;
919
871
  }
920
- ;
921
872
  /**
922
873
  * Returns all children which are dirty (this only returns direct children, it does not travers recursively)
923
874
  *
@@ -929,7 +880,6 @@ class BaseProperty {
929
880
  _getDirtyChildren(in_flags) {
930
881
  return [];
931
882
  }
932
- ;
933
883
  /**
934
884
  * Returns the root of the property hierarchy
935
885
  * @returns The root property
@@ -937,7 +887,6 @@ class BaseProperty {
937
887
  getRoot() {
938
888
  return this._parent ? this._parent.getRoot() : this;
939
889
  }
940
- ;
941
890
  /**
942
891
  * Traverses all children in the child hierarchy
943
892
  * TODO: How should this behave for collections?
@@ -951,7 +900,6 @@ class BaseProperty {
951
900
  _traverse(in_callback, in_pathFromTraversalStart) {
952
901
  return undefined;
953
902
  }
954
- ;
955
903
  /**
956
904
  * Deserialize takes a currently existing property and sets it to the hierarchy described in the normalized
957
905
  * ChangeSet passed as parameter. It will return a ChangeSet that describes the difference between the
@@ -975,7 +923,6 @@ class BaseProperty {
975
923
  this._checkIsNotReadOnly(false);
976
924
  return this._deserialize(in_serializedObj, in_reportToView, in_filteringOptions, in_createChangeSet);
977
925
  }
978
- ;
979
926
  /**
980
927
  * Sets the property to the state in the given normalized changeset
981
928
  *
@@ -993,7 +940,6 @@ class BaseProperty {
993
940
  _deserialize(in_serializedObj, in_reportToView, in_filteringOptions = {}, in_createChangeSet = true) {
994
941
  return {};
995
942
  }
996
- ;
997
943
  /**
998
944
  * Serialize the property into a changeSet
999
945
  *
@@ -1011,7 +957,6 @@ class BaseProperty {
1011
957
  _serialize(in_dirtyOnly = false, in_includeRootTypeid = false, in_dirtinessType = MODIFIED_STATE_FLAGS.PENDING_CHANGE, in_includeReferencedRepositories = false) {
1012
958
  return {};
1013
959
  }
1014
- ;
1015
960
  /**
1016
961
  * Serialize the property
1017
962
  *
@@ -1024,16 +969,16 @@ class BaseProperty {
1024
969
  dirtyOnly: false,
1025
970
  includeRootTypeid: false,
1026
971
  dirtinessType: MODIFIED_STATE_FLAGS.PENDING_CHANGE,
1027
- includeReferencedRepositories: false
972
+ includeReferencedRepositories: false,
1028
973
  };
1029
974
  if (in_options !== undefined) {
1030
- if (typeof in_options !== 'object')
975
+ if (typeof in_options !== 'object') {
1031
976
  throw new Error(MSG.SERIALIZE_TAKES_OBJECT);
977
+ }
1032
978
  Object.assign(opts, in_options);
1033
979
  }
1034
980
  return this._serialize(opts.dirtyOnly, opts.includeRootTypeid, opts.dirtinessType, opts.includeReferencedRepositories);
1035
981
  }
1036
- ;
1037
982
  /**
1038
983
  * Indicate that all static members have been added to the property
1039
984
  *
@@ -1041,7 +986,6 @@ class BaseProperty {
1041
986
  * @protected
1042
987
  */
1043
988
  _signalAllStaticMembersHaveBeenAdded() { }
1044
- ;
1045
989
  /**
1046
990
  * Tests whether this property may be modified
1047
991
  * @param {checkConstant} in_checkConstant - Check if is readonly constant property
@@ -1058,7 +1002,6 @@ class BaseProperty {
1058
1002
  }
1059
1003
  }
1060
1004
  }
1061
- ;
1062
1005
  /**
1063
1006
  * Set a property and its children as constants (readonly properties)
1064
1007
  */
@@ -1074,7 +1017,6 @@ class BaseProperty {
1074
1017
  traverseDown(arg0) {
1075
1018
  throw new Error("Method not implemented.");
1076
1019
  }
1077
- ;
1078
1020
  /**
1079
1021
  * Unsets a property and its children as constants
1080
1022
  */
@@ -1091,7 +1033,6 @@ class BaseProperty {
1091
1033
  });
1092
1034
  }
1093
1035
  }
1094
- ;
1095
1036
  /**
1096
1037
  * Dirties this node and all of its children
1097
1038
  *
@@ -1110,7 +1051,6 @@ class BaseProperty {
1110
1051
  this._reportDirtinessToView();
1111
1052
  }
1112
1053
  }
1113
- ;
1114
1054
  /**
1115
1055
  * Determines whether a property can be inserted as a child of another property
1116
1056
  * This does NOT validate if the parent can accept the child property, it only validates if
@@ -1136,7 +1076,6 @@ class BaseProperty {
1136
1076
  throw new Error(MSG.INSERTED_ENTRY_WITH_PARENT);
1137
1077
  }
1138
1078
  }
1139
- ;
1140
1079
  /**
1141
1080
  * TODO: Remove it later. Kept not to modify tests
1142
1081
  *
@@ -1185,7 +1124,6 @@ class BaseProperty {
1185
1124
  }
1186
1125
  return false;
1187
1126
  }
1188
- ;
1189
1127
  get _properties() {
1190
1128
  return this._flatten();
1191
1129
  }