@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
@@ -4,9 +4,8 @@
4
4
  */
5
5
  /* eslint accessor-pairs: [2, { "getWithoutSet": false }] */
6
6
  import _ from 'lodash';
7
- import { ChangeSet, PathHelper, TypeIdHelper } from '@fluid-experimental/property-changeset';
8
- import { constants } from '@fluid-experimental/property-common';
9
- import { ConsoleUtils } from '@fluid-experimental/property-common';
7
+ import { ChangeSet, PathHelper, TypeIdHelper, } from '@fluid-experimental/property-changeset';
8
+ import { ConsoleUtils, constants } from '@fluid-experimental/property-common';
10
9
  import { LazyLoadedProperties as Property } from './lazyLoadedProperties';
11
10
  const { MSG, PROPERTY_PATH_DELIMITER } = constants;
12
11
  const BREAK_TRAVERSAL = 'BREAK';
@@ -34,7 +33,6 @@ var MODIFIED_STATE_FLAGS;
34
33
  /** The property has been modified and the result has not yet been reported to the application for scene updates */
35
34
  MODIFIED_STATE_FLAGS[MODIFIED_STATE_FLAGS["DIRTY"] = 2] = "DIRTY";
36
35
  })(MODIFIED_STATE_FLAGS || (MODIFIED_STATE_FLAGS = {}));
37
- ;
38
36
  /**
39
37
  * Token Types
40
38
  * @enum Object
@@ -46,7 +44,7 @@ const PATH_TOKENS = {
46
44
  /** A * that indicates a dereferencing operation */ // note: reversed!
47
45
  REF: { 'token': 'REF' },
48
46
  /** A ../ that indicates one step above the current path */
49
- UP: { 'token': 'UP' }
47
+ UP: { 'token': 'UP' },
50
48
  };
51
49
  /**
52
50
  * The options to selectively create only a subset of a property.
@@ -85,21 +83,18 @@ export class BaseProperty {
85
83
  this._dirty = MODIFIED_STATE_FLAGS.CLEAN;
86
84
  }
87
85
  }
88
- ;
89
86
  /**
90
87
  * @returns The typeid of this property
91
88
  */
92
89
  getTypeid() {
93
90
  return this._typeid;
94
91
  }
95
- ;
96
92
  /**
97
93
  * @returns The context of this property
98
94
  */
99
95
  getContext() {
100
96
  return this._context;
101
97
  }
102
- ;
103
98
  /**
104
99
  * Get the scope to which this property belongs to.
105
100
  * @returns The guid representing the scope in which the
@@ -113,7 +108,6 @@ export class BaseProperty {
113
108
  return undefined;
114
109
  }
115
110
  }
116
- ;
117
111
  /**
118
112
  * Returns the full property type identifier for the ChangeSet including the enum type id
119
113
  * @param in_hideCollection - if true the collection type (if applicable) will be omitted
@@ -123,7 +117,6 @@ export class BaseProperty {
123
117
  getFullTypeid(in_hideCollection = false) {
124
118
  return this._typeid;
125
119
  }
126
- ;
127
120
  /**
128
121
  * Updates the parent for the property
129
122
  *
@@ -138,7 +131,6 @@ export class BaseProperty {
138
131
  this._parent._setDirty(false, this);
139
132
  }
140
133
  }
141
- ;
142
134
  /**
143
135
  * Is this property the root of the property set tree?
144
136
  *
@@ -149,7 +141,6 @@ export class BaseProperty {
149
141
  // (all other properties should have a parent property)
150
142
  return this._parent === undefined;
151
143
  }
152
- ;
153
144
  /**
154
145
  * Is this property the ancestor of in_otherProperty?
155
146
  * Note: A property is not considered an ancestor of itself
@@ -170,7 +161,6 @@ export class BaseProperty {
170
161
  }
171
162
  return false;
172
163
  }
173
- ;
174
164
  /**
175
165
  * Is this property the descendant of in_otherProperty?
176
166
  * Note: A property is not considered a descendant of itself
@@ -182,7 +172,6 @@ export class BaseProperty {
182
172
  ConsoleUtils.assert(in_otherProperty, MSG.MISSING_IN_OTHERPROP);
183
173
  return in_otherProperty.isAncestorOf(this);
184
174
  }
185
- ;
186
175
  /**
187
176
  * Is this property a leaf node with regard to flattening?
188
177
  *
@@ -193,7 +182,6 @@ export class BaseProperty {
193
182
  _isFlattenLeaf() {
194
183
  return false;
195
184
  }
196
- ;
197
185
  /**
198
186
  * Get the parent of this property
199
187
  *
@@ -202,7 +190,6 @@ export class BaseProperty {
202
190
  getParent() {
203
191
  return this._parent;
204
192
  }
205
- ;
206
193
  /**
207
194
  * checks whether the property is dynamic (only properties inherting from NodeProperty are)
208
195
  * @returns True if it is a dynamic property.
@@ -210,7 +197,6 @@ export class BaseProperty {
210
197
  isDynamic() {
211
198
  return false;
212
199
  }
213
- ;
214
200
  /**
215
201
  * Sets the property as dirty and/or pending. This will add one or both flags if not already set and will
216
202
  * do the same for its parent. This does not clear any flag, it only sets.
@@ -244,7 +230,6 @@ export class BaseProperty {
244
230
  this._reportDirtinessToView();
245
231
  }
246
232
  }
247
- ;
248
233
  /**
249
234
  * Sets the dirty flags for this property
250
235
  * @param in_flags - The dirty flags
@@ -252,7 +237,6 @@ export class BaseProperty {
252
237
  _setDirtyFlags(in_flags) {
253
238
  this._dirty = in_flags;
254
239
  }
255
- ;
256
240
  /**
257
241
  * Gets the dirty flags for this property
258
242
  * @returns The dirty flags
@@ -260,7 +244,6 @@ export class BaseProperty {
260
244
  _getDirtyFlags() {
261
245
  return this._dirty;
262
246
  }
263
- ;
264
247
  /**
265
248
  * Helper function, which reports the fact that a property has been dirtied to the checkout view
266
249
  * @private
@@ -283,7 +266,6 @@ export class BaseProperty {
283
266
  currentNode._tree._reportDirtinessToView();
284
267
  }
285
268
  }
286
- ;
287
269
  /**
288
270
  * Modifies the property according to the given changeset
289
271
  *
@@ -297,7 +279,6 @@ export class BaseProperty {
297
279
  // We just forward the call to the internal function
298
280
  this._applyChangeset(in_changeSet, true);
299
281
  }
300
- ;
301
282
  /**
302
283
  * Modifies the property according to the given changeset
303
284
  *
@@ -333,7 +314,6 @@ export class BaseProperty {
333
314
  this._reportDirtinessToView();
334
315
  }
335
316
  }
336
- ;
337
317
  /**
338
318
  * Re-apply dirty flags from changesets
339
319
  *
@@ -369,7 +349,6 @@ export class BaseProperty {
369
349
  resolvePath(path, params) {
370
350
  throw new Error("Method not implemented.");
371
351
  }
372
- ;
373
352
  /**
374
353
  * Removes the dirtiness flag from this property
375
354
  * @param {property-properties.BaseProperty.MODIFIED_STATE_FLAGS} [in_flags] - The flags to clean, if none are supplied all
@@ -380,7 +359,6 @@ export class BaseProperty {
380
359
  this._setDirtyFlags(in_flags === undefined ? MODIFIED_STATE_FLAGS.CLEAN :
381
360
  (this._getDirtyFlags() & ~in_flags));
382
361
  }
383
- ;
384
362
  /**
385
363
  * Removes the dirtiness flag from this property and recursively from all of its children
386
364
  *
@@ -397,7 +375,6 @@ export class BaseProperty {
397
375
  // after all paths are clean, we are also clean!
398
376
  this._cleanDirty(in_flags);
399
377
  }
400
- ;
401
378
  /**
402
379
  * Indicates that the property has been modified and a corresponding modified call has not yet been sent to the
403
380
  * application for runtime scene updates.
@@ -408,7 +385,6 @@ export class BaseProperty {
408
385
  _isDirty(in_dirtinessType = MODIFIED_STATE_FLAGS.DIRTY) {
409
386
  return !!(this._getDirtyFlags() & in_dirtinessType);
410
387
  }
411
- ;
412
388
  /**
413
389
  * Indicates that the property has been modified and a corresponding modified call has not yet been sent to the
414
390
  * application for runtime scene updates.
@@ -418,7 +394,6 @@ export class BaseProperty {
418
394
  isDirty() {
419
395
  return this._isDirty();
420
396
  }
421
- ;
422
397
  /**
423
398
  * The property has pending changes in the current ChangeSet.
424
399
  * @returns True if the property has pending changes. False otherwise.
@@ -426,7 +401,6 @@ export class BaseProperty {
426
401
  hasPendingChanges() {
427
402
  return this._isDirty(MODIFIED_STATE_FLAGS.PENDING_CHANGE);
428
403
  }
429
- ;
430
404
  /**
431
405
  * Returns the ChangeSet of all sub-properties
432
406
  *
@@ -436,7 +410,6 @@ export class BaseProperty {
436
410
  var serialized = this._serialize(true, false, BaseProperty.MODIFIED_STATE_FLAGS.PENDING_CHANGE);
437
411
  return new ChangeSet(serialized);
438
412
  }
439
- ;
440
413
  /**
441
414
  * Get the id of this property
442
415
  *
@@ -445,7 +418,6 @@ export class BaseProperty {
445
418
  getId() {
446
419
  return this._id;
447
420
  }
448
- ;
449
421
  /**
450
422
  * Sets the checkedOutRepositoryInfo.
451
423
  * @param {property-properties.CheckoutView~CheckedOutRepositoryInfo} value - The checkedOut repository info.
@@ -454,7 +426,6 @@ export class BaseProperty {
454
426
  _setCheckoutView(value) {
455
427
  this._checkoutView = value;
456
428
  }
457
- ;
458
429
  /**
459
430
  * Returns the checkoutView
460
431
  * @return {property-properties.CheckoutView} - the checkout view
@@ -463,7 +434,6 @@ export class BaseProperty {
463
434
  let checkedOutRepositoryInfo = this._getCheckedOutRepositoryInfo();
464
435
  return checkedOutRepositoryInfo ? checkedOutRepositoryInfo.getCheckoutView() : undefined;
465
436
  }
466
- ;
467
437
  /**
468
438
  * Returns the checkedOutRepositoryInfo.
469
439
  * @return {property-properties.CheckoutView~CheckedOutRepositoryInfo} The checkedOut repository info.
@@ -477,7 +447,6 @@ export class BaseProperty {
477
447
  return this.getRoot() ? this.getRoot()._getCheckedOutRepositoryInfo() : undefined;
478
448
  }
479
449
  }
480
- ;
481
450
  /**
482
451
  * Returns the Workspace
483
452
  * @returns The workspace containing the property.
@@ -486,7 +455,6 @@ export class BaseProperty {
486
455
  const root = this.getRoot();
487
456
  return root ? root._tree : undefined;
488
457
  }
489
- ;
490
458
  /**
491
459
  * Returns the path segment for a child
492
460
  *
@@ -497,7 +465,6 @@ export class BaseProperty {
497
465
  _getPathSegmentForChildNode(in_childNode) {
498
466
  return PROPERTY_PATH_DELIMITER + PathHelper.quotePathSegmentIfNeeded(in_childNode.getId());
499
467
  }
500
- ;
501
468
  /**
502
469
  * Resolves a direct child node based on the given path segment
503
470
  *
@@ -514,7 +481,6 @@ export class BaseProperty {
514
481
  }
515
482
  return this.get(in_segment, { referenceResolutionMode: BaseProperty.REFERENCE_RESOLUTION.NEVER });
516
483
  }
517
- ;
518
484
  /**
519
485
  * Set the id of this property
520
486
  *
@@ -535,7 +501,6 @@ export class BaseProperty {
535
501
  this._setDirty();
536
502
  return in_id;
537
503
  }
538
- ;
539
504
  /**
540
505
  * Return a clone of this property
541
506
  * @returns The cloned property
@@ -550,7 +515,6 @@ export class BaseProperty {
550
515
  BaseProperty.MODIFIED_STATE_FLAGS.DIRTY);
551
516
  return clone;
552
517
  }
553
- ;
554
518
  /**
555
519
  * Returns true if the property is a primitive type
556
520
  * @return {boolean} true if the property is a primitive type
@@ -558,7 +522,6 @@ export class BaseProperty {
558
522
  isPrimitiveType() {
559
523
  return TypeIdHelper.isPrimitiveType(this._typeid);
560
524
  }
561
- ;
562
525
  /**
563
526
  * Get a flattened, tree like representation of this object and all of it's
564
527
  * descendants. The flattening will stop at primitive properties and collections.
@@ -573,7 +536,6 @@ export class BaseProperty {
573
536
  _flatten() {
574
537
  return { propertyNode: this };
575
538
  }
576
- ;
577
539
  /**
578
540
  * Repeatedly calls back the given function with human-readable string representations
579
541
  * of the property and of its sub-properties. By default it logs to the console.
@@ -586,7 +548,6 @@ export class BaseProperty {
586
548
  }
587
549
  this._prettyPrint('', '', printFct);
588
550
  }
589
- ;
590
551
  /**
591
552
  * Return a JSON representation of the properties and its children.
592
553
  * @return {object} A JSON representation of the properties and its children.
@@ -598,7 +559,7 @@ export class BaseProperty {
598
559
  context: this._context,
599
560
  typeid: this.getTypeid(),
600
561
  isConstant: this._isConstant,
601
- value: []
562
+ value: [],
602
563
  };
603
564
  var ids = this.getIds();
604
565
  for (const id of ids) {
@@ -606,7 +567,6 @@ export class BaseProperty {
606
567
  }
607
568
  return json;
608
569
  }
609
- ;
610
570
  getIds() {
611
571
  return [];
612
572
  }
@@ -635,7 +595,6 @@ export class BaseProperty {
635
595
  printFct(indent + externalId + this.getId() + ' (' + context + this.getTypeid() + '):');
636
596
  this._prettyPrintChildren(indent, printFct);
637
597
  }
638
- ;
639
598
  /**
640
599
  * Repeatedly calls back the given function with human-readable string
641
600
  * representations of the property's sub-properties.
@@ -649,7 +608,6 @@ export class BaseProperty {
649
608
  this.get(ids[i], { referenceResolutionMode: BaseProperty.REFERENCE_RESOLUTION.NEVER })._prettyPrint(indent, '', printFct);
650
609
  }
651
610
  }
652
- ;
653
611
  /**
654
612
  * Returns the possible paths from the given from_property to this property. If multiple paths
655
613
  * through multiple repository references are possible, returns more than one path.
@@ -703,7 +661,6 @@ export class BaseProperty {
703
661
  }
704
662
  return [];
705
663
  }
706
- ;
707
664
  /**
708
665
  * Returns the possible paths from the given in_fromProperty to this property. If no direct paths
709
666
  * exist, it returns an indirect path between the two properties.
@@ -736,7 +693,6 @@ export class BaseProperty {
736
693
  return undefined;
737
694
  }
738
695
  }
739
- ;
740
696
  /**
741
697
  * Returns the path from the given in_fromProperty to this property if a direct path
742
698
  * exists between the two properties. Otherwise returns undefined.
@@ -777,7 +733,6 @@ export class BaseProperty {
777
733
  return undefined;
778
734
  }
779
735
  }
780
- ;
781
736
  /**
782
737
  * Returns the possible paths from the given in_fromProperty to this property.
783
738
  *
@@ -802,7 +757,6 @@ export class BaseProperty {
802
757
  }
803
758
  }
804
759
  }
805
- ;
806
760
  /**
807
761
  * Returns the path from the given fron_property to this node if such a path exists.
808
762
  * If more than one paths exist (as might be the case with multiple repository references
@@ -833,7 +787,6 @@ export class BaseProperty {
833
787
  }
834
788
  return paths[0];
835
789
  }
836
- ;
837
790
  /**
838
791
  * Returns the path from the root of the workspace to this node
839
792
  * (including a slash at the beginning)
@@ -888,7 +841,6 @@ export class BaseProperty {
888
841
  absolutePath = '/' + absolutePath;
889
842
  return absolutePath;
890
843
  }
891
- ;
892
844
  /**
893
845
  * Traverses the property hierarchy upwards until the a node without parent is reached
894
846
  *
@@ -911,7 +863,6 @@ export class BaseProperty {
911
863
  }
912
864
  return undefined;
913
865
  }
914
- ;
915
866
  /**
916
867
  * Returns all children which are dirty (this only returns direct children, it does not travers recursively)
917
868
  *
@@ -923,7 +874,6 @@ export class BaseProperty {
923
874
  _getDirtyChildren(in_flags) {
924
875
  return [];
925
876
  }
926
- ;
927
877
  /**
928
878
  * Returns the root of the property hierarchy
929
879
  * @returns The root property
@@ -931,7 +881,6 @@ export class BaseProperty {
931
881
  getRoot() {
932
882
  return this._parent ? this._parent.getRoot() : this;
933
883
  }
934
- ;
935
884
  /**
936
885
  * Traverses all children in the child hierarchy
937
886
  * TODO: How should this behave for collections?
@@ -945,7 +894,6 @@ export class BaseProperty {
945
894
  _traverse(in_callback, in_pathFromTraversalStart) {
946
895
  return undefined;
947
896
  }
948
- ;
949
897
  /**
950
898
  * Deserialize takes a currently existing property and sets it to the hierarchy described in the normalized
951
899
  * ChangeSet passed as parameter. It will return a ChangeSet that describes the difference between the
@@ -969,7 +917,6 @@ export class BaseProperty {
969
917
  this._checkIsNotReadOnly(false);
970
918
  return this._deserialize(in_serializedObj, in_reportToView, in_filteringOptions, in_createChangeSet);
971
919
  }
972
- ;
973
920
  /**
974
921
  * Sets the property to the state in the given normalized changeset
975
922
  *
@@ -987,7 +934,6 @@ export class BaseProperty {
987
934
  _deserialize(in_serializedObj, in_reportToView, in_filteringOptions = {}, in_createChangeSet = true) {
988
935
  return {};
989
936
  }
990
- ;
991
937
  /**
992
938
  * Serialize the property into a changeSet
993
939
  *
@@ -1005,7 +951,6 @@ export class BaseProperty {
1005
951
  _serialize(in_dirtyOnly = false, in_includeRootTypeid = false, in_dirtinessType = MODIFIED_STATE_FLAGS.PENDING_CHANGE, in_includeReferencedRepositories = false) {
1006
952
  return {};
1007
953
  }
1008
- ;
1009
954
  /**
1010
955
  * Serialize the property
1011
956
  *
@@ -1018,16 +963,16 @@ export class BaseProperty {
1018
963
  dirtyOnly: false,
1019
964
  includeRootTypeid: false,
1020
965
  dirtinessType: MODIFIED_STATE_FLAGS.PENDING_CHANGE,
1021
- includeReferencedRepositories: false
966
+ includeReferencedRepositories: false,
1022
967
  };
1023
968
  if (in_options !== undefined) {
1024
- if (typeof in_options !== 'object')
969
+ if (typeof in_options !== 'object') {
1025
970
  throw new Error(MSG.SERIALIZE_TAKES_OBJECT);
971
+ }
1026
972
  Object.assign(opts, in_options);
1027
973
  }
1028
974
  return this._serialize(opts.dirtyOnly, opts.includeRootTypeid, opts.dirtinessType, opts.includeReferencedRepositories);
1029
975
  }
1030
- ;
1031
976
  /**
1032
977
  * Indicate that all static members have been added to the property
1033
978
  *
@@ -1035,7 +980,6 @@ export class BaseProperty {
1035
980
  * @protected
1036
981
  */
1037
982
  _signalAllStaticMembersHaveBeenAdded() { }
1038
- ;
1039
983
  /**
1040
984
  * Tests whether this property may be modified
1041
985
  * @param {checkConstant} in_checkConstant - Check if is readonly constant property
@@ -1052,7 +996,6 @@ export class BaseProperty {
1052
996
  }
1053
997
  }
1054
998
  }
1055
- ;
1056
999
  /**
1057
1000
  * Set a property and its children as constants (readonly properties)
1058
1001
  */
@@ -1068,7 +1011,6 @@ export class BaseProperty {
1068
1011
  traverseDown(arg0) {
1069
1012
  throw new Error("Method not implemented.");
1070
1013
  }
1071
- ;
1072
1014
  /**
1073
1015
  * Unsets a property and its children as constants
1074
1016
  */
@@ -1085,7 +1027,6 @@ export class BaseProperty {
1085
1027
  });
1086
1028
  }
1087
1029
  }
1088
- ;
1089
1030
  /**
1090
1031
  * Dirties this node and all of its children
1091
1032
  *
@@ -1104,7 +1045,6 @@ export class BaseProperty {
1104
1045
  this._reportDirtinessToView();
1105
1046
  }
1106
1047
  }
1107
- ;
1108
1048
  /**
1109
1049
  * Determines whether a property can be inserted as a child of another property
1110
1050
  * This does NOT validate if the parent can accept the child property, it only validates if
@@ -1130,7 +1070,6 @@ export class BaseProperty {
1130
1070
  throw new Error(MSG.INSERTED_ENTRY_WITH_PARENT);
1131
1071
  }
1132
1072
  }
1133
- ;
1134
1073
  /**
1135
1074
  * TODO: Remove it later. Kept not to modify tests
1136
1075
  *
@@ -1179,7 +1118,6 @@ export class BaseProperty {
1179
1118
  }
1180
1119
  return false;
1181
1120
  }
1182
- ;
1183
1121
  get _properties() {
1184
1122
  return this._flatten();
1185
1123
  }