@fluid-experimental/property-properties 0.59.2000-61729 → 0.59.2000-63294
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/dist/properties/abstractStaticCollectionProperty.d.ts +5 -5
- package/dist/properties/abstractStaticCollectionProperty.d.ts.map +1 -1
- package/dist/properties/abstractStaticCollectionProperty.js +3 -3
- package/dist/properties/abstractStaticCollectionProperty.js.map +1 -1
- package/dist/properties/intProperties.d.ts +4 -4
- package/dist/properties/intProperties.d.ts.map +1 -1
- package/dist/properties/intProperties.js +2 -2
- package/dist/properties/intProperties.js.map +1 -1
- package/dist/propertyUtils.d.ts +1 -1
- package/dist/propertyUtils.js +1 -1
- package/dist/propertyUtils.js.map +1 -1
- package/dist/test/tsconfig.tsbuildinfo +6 -6
- package/lib/containerSerializer.d.ts +27 -0
- package/lib/containerSerializer.d.ts.map +1 -0
- package/lib/enableValidations.d.ts +15 -0
- package/lib/enableValidations.d.ts.map +1 -0
- package/lib/index.d.ts +25 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/properties/abstractStaticCollectionProperty.d.ts +153 -0
- package/lib/properties/abstractStaticCollectionProperty.d.ts.map +1 -0
- package/lib/properties/abstractStaticCollectionProperty.js +3 -3
- package/lib/properties/abstractStaticCollectionProperty.js.map +1 -1
- package/lib/properties/arrayProperty.d.ts +315 -0
- package/lib/properties/arrayProperty.d.ts.map +1 -0
- package/lib/properties/baseProperty.d.ts +594 -0
- package/lib/properties/baseProperty.d.ts.map +1 -0
- package/lib/properties/boolProperty.d.ts +12 -0
- package/lib/properties/boolProperty.d.ts.map +1 -0
- package/lib/properties/containerProperty.d.ts +102 -0
- package/lib/properties/containerProperty.d.ts.map +1 -0
- package/lib/properties/enumArrayProperty.d.ts +60 -0
- package/lib/properties/enumArrayProperty.d.ts.map +1 -0
- package/lib/properties/enumProperty.d.ts +36 -0
- package/lib/properties/enumProperty.d.ts.map +1 -0
- package/lib/properties/floatProperties.d.ts +32 -0
- package/lib/properties/floatProperties.d.ts.map +1 -0
- package/lib/properties/index.d.ts +29 -0
- package/lib/properties/index.d.ts.map +1 -0
- package/lib/properties/indexedCollectionBaseProperty.d.ts +74 -0
- package/lib/properties/indexedCollectionBaseProperty.d.ts.map +1 -0
- package/lib/properties/intProperties.d.ts +132 -0
- package/lib/properties/intProperties.d.ts.map +1 -0
- package/lib/properties/intProperties.js +2 -2
- package/lib/properties/intProperties.js.map +1 -1
- package/lib/properties/lazyLoadedProperties.d.ts +14 -0
- package/lib/properties/lazyLoadedProperties.d.ts.map +1 -0
- package/lib/properties/mapProperty.d.ts +84 -0
- package/lib/properties/mapProperty.d.ts.map +1 -0
- package/lib/properties/namedNodeProperty.d.ts +25 -0
- package/lib/properties/namedNodeProperty.d.ts.map +1 -0
- package/lib/properties/namedProperty.d.ts +20 -0
- package/lib/properties/namedProperty.d.ts.map +1 -0
- package/lib/properties/nodeProperty.d.ts +17 -0
- package/lib/properties/nodeProperty.d.ts.map +1 -0
- package/lib/properties/primitiveTypeCasts.d.ts +15 -0
- package/lib/properties/primitiveTypeCasts.d.ts.map +1 -0
- package/lib/properties/referenceArrayProperty.d.ts +47 -0
- package/lib/properties/referenceArrayProperty.d.ts.map +1 -0
- package/lib/properties/referenceMapProperty.d.ts +46 -0
- package/lib/properties/referenceMapProperty.d.ts.map +1 -0
- package/lib/properties/referenceProperty.d.ts +59 -0
- package/lib/properties/referenceProperty.d.ts.map +1 -0
- package/lib/properties/setProperty.d.ts +69 -0
- package/lib/properties/setProperty.d.ts.map +1 -0
- package/lib/properties/stringProperty.d.ts +39 -0
- package/lib/properties/stringProperty.d.ts.map +1 -0
- package/lib/properties/uintProperties.d.ts +47 -0
- package/lib/properties/uintProperties.d.ts.map +1 -0
- package/lib/properties/valueArrayProperty.d.ts +216 -0
- package/lib/properties/valueArrayProperty.d.ts.map +1 -0
- package/lib/properties/valueMapProperty.d.ts +224 -0
- package/lib/properties/valueMapProperty.d.ts.map +1 -0
- package/lib/properties/valueProperty.d.ts +50 -0
- package/lib/properties/valueProperty.d.ts.map +1 -0
- package/lib/propertyFactory.d.ts +3 -0
- package/lib/propertyFactory.d.ts.map +1 -0
- package/lib/propertyTemplate.d.ts +137 -0
- package/lib/propertyTemplate.d.ts.map +1 -0
- package/lib/propertyTemplateWrapper.d.ts +74 -0
- package/lib/propertyTemplateWrapper.d.ts.map +1 -0
- package/lib/propertyUtils.d.ts +15 -0
- package/lib/propertyUtils.d.ts.map +1 -0
- package/lib/propertyUtils.js +1 -1
- package/lib/propertyUtils.js.map +1 -1
- package/package.json +8 -5
- package/src/index.d.ts +3 -3
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* typedef {property-properties.BaseProperty|string|number|boolean} property-properties.MapProperty~MapValueType
|
|
3
|
+
*
|
|
4
|
+
* The type of the values that are set/inserted into the map. Depending on the type of the map, these can either
|
|
5
|
+
* be property objects or primitive values
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* A MapProperty is a collection class that can contain an dictionary that maps from strings to properties.
|
|
9
|
+
*/
|
|
10
|
+
export class MapProperty extends IndexedCollectionBaseProperty {
|
|
11
|
+
/**
|
|
12
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
13
|
+
* @param {string|undefined} in_scope - The scope in which the map typeid is defined
|
|
14
|
+
* @constructor
|
|
15
|
+
* @protected
|
|
16
|
+
* @extends property-properties.IndexedCollectionBaseProperty
|
|
17
|
+
* @alias property-properties.MapProperty
|
|
18
|
+
* @category Maps
|
|
19
|
+
*/
|
|
20
|
+
protected constructor();
|
|
21
|
+
_scope: string;
|
|
22
|
+
_contextKeyType: any;
|
|
23
|
+
/** Contains the actual entries of the map */
|
|
24
|
+
_dynamicChildren: {};
|
|
25
|
+
/**
|
|
26
|
+
* Sets multiple values in a map.
|
|
27
|
+
*
|
|
28
|
+
* @param {object} in_values to assign to the collection
|
|
29
|
+
* @param {Boolean} in_typed - If the map's items have a typeid and a value then create the
|
|
30
|
+
* properties with that typeid, else use the set's typeid (support polymorphic items).
|
|
31
|
+
* @see {setValues}
|
|
32
|
+
* @private
|
|
33
|
+
*/
|
|
34
|
+
private _setValuesInternal;
|
|
35
|
+
/**
|
|
36
|
+
* Inserts a property or value into the map
|
|
37
|
+
*
|
|
38
|
+
* Note: This will trigger an exception when this key already exists in the map. If you want to overwrite
|
|
39
|
+
* existing entries you can use the set function.
|
|
40
|
+
*
|
|
41
|
+
* @param {string} in_key - The key under which the entry is added
|
|
42
|
+
* @param {property-properties.Property} in_property - The property to insert
|
|
43
|
+
* @throws if the property already exists
|
|
44
|
+
* @throws if the property already has a parent
|
|
45
|
+
* @throws if in_key is not a string
|
|
46
|
+
* @throws if the property is a root property
|
|
47
|
+
*/
|
|
48
|
+
insert(in_key: string, in_property: any): void;
|
|
49
|
+
/**
|
|
50
|
+
* Removes the entry with the given key from the map
|
|
51
|
+
*
|
|
52
|
+
* @param {string} in_key - The key of the entry to remove from the map
|
|
53
|
+
* @throws if trying to remove an entry that does not exist
|
|
54
|
+
* @return {*} the item removed
|
|
55
|
+
*/
|
|
56
|
+
remove(in_key: string): any;
|
|
57
|
+
/**
|
|
58
|
+
* Sets the entry with the given key to the property passed in
|
|
59
|
+
*
|
|
60
|
+
* Note: this will overwrite an already existing value
|
|
61
|
+
*
|
|
62
|
+
* @param {string} in_key - The key under which the entry is stored
|
|
63
|
+
* @param {property-properties.MapProperty~MapValueType} in_property - The property to store in the map
|
|
64
|
+
* @throws if in_property is not a property
|
|
65
|
+
* @throws if trying to insert a property that has a parent
|
|
66
|
+
* @throws if in_key is not a string or a number
|
|
67
|
+
*/
|
|
68
|
+
set(in_key: string, in_property: any): void;
|
|
69
|
+
/**
|
|
70
|
+
* Returns all entries of the map as an array.
|
|
71
|
+
*
|
|
72
|
+
* NOTE: This function creates a copy and thus is less efficient as getEntriesReadOnly.
|
|
73
|
+
*
|
|
74
|
+
* @return {Array.<property-properties.BaseProperty | *>} Array with all entries of the map. This array
|
|
75
|
+
* is a shallow copy which can be modified by the caller without effects on the map.
|
|
76
|
+
*/
|
|
77
|
+
getAsArray(): Array<any>;
|
|
78
|
+
/**
|
|
79
|
+
* Deletes all values from the Map
|
|
80
|
+
*/
|
|
81
|
+
clear(): void;
|
|
82
|
+
}
|
|
83
|
+
import { IndexedCollectionBaseProperty } from "./indexedCollectionBaseProperty";
|
|
84
|
+
//# sourceMappingURL=mapProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapProperty.d.ts","sourceRoot":"","sources":["../../src/properties/mapProperty.js"],"names":[],"mappings":"AAmBA;;;;;GAKG;AAEH;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAQC;IALG,eAAsB;IACtB,qBAA2D;IAE3D,6CAA6C;IAC7C,qBAA0B;IA2B9B;;;;;;;;OAQG;IACH,2BAsCC;IA+FD;;;;;;;;;;;;OAYG;IACH,eAPW,MAAM,0BAsBhB;IAED;;;;;;OAMG;IACH,eAJW,MAAM,OAQhB;IAED;;;;;;;;;;OAUG;IACH,YANW,MAAM,0BAwBhB;IAwED;;;;;;;OAOG;IACH,cAHY,UAAe,CAK1B;IA8BD;;OAEG;IACH,cAKC;CACJ"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A NamedNodeProperty is a NodeProperty that has a GUID which unique identifies the property object.
|
|
3
|
+
* This makes it possible to store it in a set collection.
|
|
4
|
+
*/
|
|
5
|
+
export class NamedNodeProperty extends NodeProperty {
|
|
6
|
+
/**
|
|
7
|
+
* @param {object} in_params - List of parameters
|
|
8
|
+
* @param {string} in_params.id - id of the property (null, if the GUID should be used for the ID)
|
|
9
|
+
* @param {string} in_params.typeid - The type identifier
|
|
10
|
+
*
|
|
11
|
+
* @constructor
|
|
12
|
+
* @protected
|
|
13
|
+
* @extends property-properties.NodeProperty
|
|
14
|
+
* @alias property-properties.NamedNodeProperty
|
|
15
|
+
* @category Other Collections
|
|
16
|
+
*/
|
|
17
|
+
protected constructor();
|
|
18
|
+
/**
|
|
19
|
+
* Return the URN for this named property
|
|
20
|
+
* @return {string} The URN
|
|
21
|
+
*/
|
|
22
|
+
getUrn: any;
|
|
23
|
+
}
|
|
24
|
+
import { NodeProperty } from "./nodeProperty";
|
|
25
|
+
//# sourceMappingURL=namedNodeProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namedNodeProperty.d.ts","sourceRoot":"","sources":["../../src/properties/namedNodeProperty.js"],"names":[],"mappings":"AAYA;;;GAGG;AACH;IACI;;;;;;;;;;OAUG;IACH,wBAEC;IAoBD;;;OAGG;IACH,YAAwC;CAC3C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A NamedProperty has a URN which uniquely identifies the property object. This makes it possible to store it in a
|
|
3
|
+
* set collection.
|
|
4
|
+
*/
|
|
5
|
+
export class NamedProperty extends ContainerProperty {
|
|
6
|
+
/**
|
|
7
|
+
* @param {object} in_params - List of parameters
|
|
8
|
+
* @param {string} in_params.id - id of the property (null, if the GUID should be used for the ID)
|
|
9
|
+
* @param {string} in_params.typeid - The type identifier
|
|
10
|
+
*
|
|
11
|
+
* @constructor
|
|
12
|
+
* @protected
|
|
13
|
+
* @extends property-properties.ContainerProperty
|
|
14
|
+
* @alias property-properties.NamedProperty
|
|
15
|
+
* @category Properties
|
|
16
|
+
*/
|
|
17
|
+
protected constructor();
|
|
18
|
+
}
|
|
19
|
+
import { ContainerProperty } from "./containerProperty";
|
|
20
|
+
//# sourceMappingURL=namedProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namedProperty.d.ts","sourceRoot":"","sources":["../../src/properties/namedProperty.js"],"names":[],"mappings":"AAWA;;;GAGG;AACH;IACI;;;;;;;;;;OAUG;IACH,wBAEC;CAqCJ"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A property object that allows to add child properties dynamically.
|
|
3
|
+
*/
|
|
4
|
+
export class NodeProperty extends ContainerProperty {
|
|
5
|
+
/**
|
|
6
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
7
|
+
*
|
|
8
|
+
* @constructor
|
|
9
|
+
* @protected
|
|
10
|
+
* @extends property-properties.ContainerProperty
|
|
11
|
+
* @alias property-properties.NodeProperty
|
|
12
|
+
* @category Other Collections
|
|
13
|
+
*/
|
|
14
|
+
protected constructor();
|
|
15
|
+
}
|
|
16
|
+
import { ContainerProperty } from "./containerProperty";
|
|
17
|
+
//# sourceMappingURL=nodeProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeProperty.d.ts","sourceRoot":"","sources":["../../src/properties/nodeProperty.js"],"names":[],"mappings":"AAUA;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAGC;CAWJ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export namespace _castFunctors {
|
|
2
|
+
function Uint64(in_value: number, in_radix?: number): number;
|
|
3
|
+
const Uint32: any;
|
|
4
|
+
const Uint16: any;
|
|
5
|
+
const Uint8: any;
|
|
6
|
+
function Int64(in_value: number, in_radix?: number): number;
|
|
7
|
+
const Int32: any;
|
|
8
|
+
const Int16: any;
|
|
9
|
+
const Int8: any;
|
|
10
|
+
const Float32: any;
|
|
11
|
+
const Float64: any;
|
|
12
|
+
function String(in_value: number): number;
|
|
13
|
+
function Boolean(in_value: boolean): boolean;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=primitiveTypeCasts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitiveTypeCasts.d.ts","sourceRoot":"","sources":["../../src/properties/primitiveTypeCasts.js"],"names":[],"mappings":";IAkDY,6DAWP;;;;IA8BM,4DAWN;;;;;;IA0CO,0CAEP;IAOQ,6CAER"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An ArrayProperty which stores reference values
|
|
3
|
+
*/
|
|
4
|
+
export class ReferenceArrayProperty extends ValueArrayProperty {
|
|
5
|
+
/**
|
|
6
|
+
* Validates the array and returns a sanitized version of it containing only strings.
|
|
7
|
+
*
|
|
8
|
+
* @param {Array<property-properties.BaseProperty|undefined|String>} in_array - contains the properties to be set or
|
|
9
|
+
* the paths to those properties. If undefined is passed, the reference will be set to an empty string to
|
|
10
|
+
* indicate an empty reference.
|
|
11
|
+
* @param {String} in_callerName - the name of the function that called, to make it appear in
|
|
12
|
+
* the error message if any
|
|
13
|
+
* @return {Array<string>} the array of paths
|
|
14
|
+
* @throws if in_array is not an array
|
|
15
|
+
* @throws if one of the items in in_array is defined, but is not a property or a string.
|
|
16
|
+
*/
|
|
17
|
+
static _convertInputToPaths: (in_array: any, in_callerName: string) => Array<string>;
|
|
18
|
+
/**
|
|
19
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
20
|
+
*
|
|
21
|
+
* @constructor
|
|
22
|
+
* @protected
|
|
23
|
+
* @extends property-properties.ArrayProperty
|
|
24
|
+
* @alias property-properties.ReferenceArrayProperty
|
|
25
|
+
* @category Arrays
|
|
26
|
+
*/
|
|
27
|
+
protected constructor();
|
|
28
|
+
/**
|
|
29
|
+
* Returns the typeid for the target of this reference
|
|
30
|
+
*
|
|
31
|
+
* Note: This is the type that is specified in the typeid of this reference and not the actual type
|
|
32
|
+
* of the referenced object, which might inherit from that typeid.
|
|
33
|
+
*
|
|
34
|
+
* @return {string} The typeid of the nodes this reference may point to
|
|
35
|
+
*/
|
|
36
|
+
getReferenceTargetTypeId(): string;
|
|
37
|
+
/**
|
|
38
|
+
* Checks whether the reference is valid. This is either the case when it is empty or when the referenced
|
|
39
|
+
* property exists.
|
|
40
|
+
*
|
|
41
|
+
* @param {number} in_position the target index
|
|
42
|
+
* @return {boolean} True if the reference is valid, otherwise false.
|
|
43
|
+
*/
|
|
44
|
+
isReferenceValid(in_position: number): boolean;
|
|
45
|
+
}
|
|
46
|
+
import { ValueArrayProperty } from "./valueArrayProperty";
|
|
47
|
+
//# sourceMappingURL=referenceArrayProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"referenceArrayProperty.d.ts","sourceRoot":"","sources":["../../src/properties/referenceArrayProperty.js"],"names":[],"mappings":"AAgBA;;GAEG;AACH;IAgNI;;;;;;;;;;;OAWG;IACH,uEAJY,MAAM,MAAM,CAAC,CAcvB;IArOF;;;;;;;;OAQG;IACH,wBAEC;IAED;;;;;;;OAOG;IACH,4BAFY,MAAM,CAIjB;IAqCD;;;;;;OAMG;IACH,8BAHW,MAAM,GACL,OAAO,CAKlB;CAgKJ"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A StringMapProperty which stores reference values
|
|
3
|
+
*/
|
|
4
|
+
export class ReferenceMapProperty extends StringMapProperty {
|
|
5
|
+
/**
|
|
6
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
7
|
+
*
|
|
8
|
+
* @constructor
|
|
9
|
+
* @protected
|
|
10
|
+
* @extends property-properties.StringMapProperty
|
|
11
|
+
* @alias property-properties.ReferenceMapProperty
|
|
12
|
+
* @category Maps
|
|
13
|
+
*/
|
|
14
|
+
protected constructor();
|
|
15
|
+
/**
|
|
16
|
+
* Returns the typeid for the target of this reference
|
|
17
|
+
*
|
|
18
|
+
* Note: This is the type that is specified in the typeid of this reference and not the actual type
|
|
19
|
+
* of the referenced object, which might inherit from that typeid.
|
|
20
|
+
*
|
|
21
|
+
* @return {string} The typeid of the nodes this reference may point to
|
|
22
|
+
*/
|
|
23
|
+
getReferenceTargetTypeId(): string;
|
|
24
|
+
/**
|
|
25
|
+
* Sets or inserts the reference to point to the given property object or to be equal to the given path string.
|
|
26
|
+
*
|
|
27
|
+
* @param {string} in_key - The key under which the entry is stored
|
|
28
|
+
* @param {property-properties.BaseProperty|undefined|String} in_value - The property to assign to the reference or
|
|
29
|
+
* the path to this property. If undefined is passed, the reference will be set to an empty string to
|
|
30
|
+
* indicate an empty reference.
|
|
31
|
+
* @throws if in_key is not a string
|
|
32
|
+
* @throws if in_value is defined, but is not a property or a string.
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
35
|
+
setValue(...args: any[]): void;
|
|
36
|
+
/**
|
|
37
|
+
* Checks whether the reference is valid. This is either the case when it is empty or when the referenced
|
|
38
|
+
* property exists.
|
|
39
|
+
*
|
|
40
|
+
* @param {string} in_key - key of the entry to check
|
|
41
|
+
* @return {boolean} True if the reference is valid, otherwise false.
|
|
42
|
+
*/
|
|
43
|
+
isReferenceValid(in_key: string): boolean;
|
|
44
|
+
}
|
|
45
|
+
import { StringMapProperty } from "./valueMapProperty";
|
|
46
|
+
//# sourceMappingURL=referenceMapProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"referenceMapProperty.d.ts","sourceRoot":"","sources":["../../src/properties/referenceMapProperty.js"],"names":[],"mappings":"AAeA;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAED;;;;;;;OAOG;IACH,4BAFY,MAAM,CAIjB;IAqFD;;;;;;;;;;OAUG;IACH,+BAEC;IAiBD;;;;;;OAMG;IACH,yBAHW,MAAM,GACL,OAAO,CAMlB;CAuBJ"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This class serves as a view to read, write and listen to changes in an
|
|
3
|
+
* object's value field. To do this we simply keep a pointer to the object and
|
|
4
|
+
* it's associated data field that we are interested in. If no data field is
|
|
5
|
+
* present this property will have an undefined value.
|
|
6
|
+
*/
|
|
7
|
+
export class ReferenceProperty extends ValueProperty {
|
|
8
|
+
/**
|
|
9
|
+
* Validates the input and does as much as possible to return a string representing a path.
|
|
10
|
+
*
|
|
11
|
+
* @param {property-properties.BaseProperty|undefined|String} in_value - contains the property to be set or
|
|
12
|
+
* the path to this property. If undefined is passed, the reference will be set to an empty string to
|
|
13
|
+
* indicate an empty reference.
|
|
14
|
+
* @return {string} the path
|
|
15
|
+
* @throws if in_value is defined, but is not a property or a string.
|
|
16
|
+
*/
|
|
17
|
+
static _convertInputToPath(in_value: any): string;
|
|
18
|
+
/**
|
|
19
|
+
* @param {Object=} in_params - the parameters
|
|
20
|
+
*
|
|
21
|
+
* @constructor
|
|
22
|
+
* @protected
|
|
23
|
+
* @extends property-properties.ValueProperty
|
|
24
|
+
* @alias property-properties.ReferenceProperty
|
|
25
|
+
* @category Properties
|
|
26
|
+
*/
|
|
27
|
+
protected constructor();
|
|
28
|
+
/**
|
|
29
|
+
* Returns the typeid for the target of this reference
|
|
30
|
+
*
|
|
31
|
+
* Note: This is the type that is specified in the typeid of this reference and not the actual type
|
|
32
|
+
* of the referenced object, which might inherit from that typeid.
|
|
33
|
+
*
|
|
34
|
+
* @return {string} The typeid of the nodes this reference may point to
|
|
35
|
+
*/
|
|
36
|
+
getReferenceTargetTypeId(): string;
|
|
37
|
+
/**
|
|
38
|
+
* Checks whether the reference is valid. This is either the case when it is empty or when the referenced
|
|
39
|
+
* property exists.
|
|
40
|
+
*
|
|
41
|
+
* @return {boolean} True if the reference is valid, otherwise false.
|
|
42
|
+
*/
|
|
43
|
+
isReferenceValid(): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Sets the reference to point to the given property object or to be equal to the given path string.
|
|
46
|
+
*
|
|
47
|
+
* @param {property-properties.BaseProperty|undefined|String} in_value - The property to assign to the reference or
|
|
48
|
+
* the path to this property. If undefined is passed, the reference will be set to an empty string to
|
|
49
|
+
* indicate an empty reference.
|
|
50
|
+
* @throws if property is read only
|
|
51
|
+
* @throws if in_value is defined but is not a property or a string.
|
|
52
|
+
*/
|
|
53
|
+
set(...args: any[]): void;
|
|
54
|
+
set ref(arg: any);
|
|
55
|
+
get ref(): any;
|
|
56
|
+
_castFunctor: (in_value: number) => number;
|
|
57
|
+
}
|
|
58
|
+
import { ValueProperty } from "./valueProperty";
|
|
59
|
+
//# sourceMappingURL=referenceProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"referenceProperty.d.ts","sourceRoot":"","sources":["../../src/properties/referenceProperty.js"],"names":[],"mappings":"AAgBA;;;;;GAKG;AACH;IAmKI;;;;;;;;OAQG;IACH,2CAHY,MAAM,CAkBjB;IA1LD;;;;;;;;MAQE;IACF,wBAIC;IAUD;;;;;;;OAOG;IACH,4BAFY,MAAM,CAIjB;IAoED;;;;;OAKG;IACH,oBAFY,OAAO,CAIlB;IAkBD;;;;;;;;OAQG;IACH,0BAEC;IAoBD,kBAEC;IAND,eAEC;IAgCL,2CAAwC;CADvC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A SetProperty is a collection class that can contain an unordered set of properties. These properties
|
|
3
|
+
* must derive from NamedProperty and their URN is used to identify them within the set.
|
|
4
|
+
*/
|
|
5
|
+
export class SetProperty extends IndexedCollectionBaseProperty {
|
|
6
|
+
/**
|
|
7
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
8
|
+
* @param {string|undefined} in_scope - The scope in which the map typeid is defined
|
|
9
|
+
*
|
|
10
|
+
* @constructor
|
|
11
|
+
* @protected
|
|
12
|
+
* @extends property-properties.IndexedCollectionBaseProperty
|
|
13
|
+
* @alias property-properties.SetProperty
|
|
14
|
+
* @category Other Collections
|
|
15
|
+
*/
|
|
16
|
+
protected constructor();
|
|
17
|
+
_scope: string;
|
|
18
|
+
/** Contains the actual entries of the set, indexed by their GUID */
|
|
19
|
+
_dynamicChildren: {};
|
|
20
|
+
/**
|
|
21
|
+
* Inserts a property into the set
|
|
22
|
+
*
|
|
23
|
+
* @param {property-properties.NamedProperty} in_property - The property to insert
|
|
24
|
+
* @throws if trying to insert non-named properties
|
|
25
|
+
* @throws if trying to insert a property that has a parent
|
|
26
|
+
* @throws if a property already exists with the same guid as in_property
|
|
27
|
+
*/
|
|
28
|
+
insert(in_property: any): void;
|
|
29
|
+
/**
|
|
30
|
+
* Adds a property to the set
|
|
31
|
+
* - If the property's key exists, the entry is replaced with new one.
|
|
32
|
+
* - If the property's key does not exist, the property is appended.*
|
|
33
|
+
*
|
|
34
|
+
* @param {NamedProperty|NamedNodeProperty|Object} in_property - The property to add to the list
|
|
35
|
+
*/
|
|
36
|
+
set(in_property: any | any | any): void;
|
|
37
|
+
/**
|
|
38
|
+
* Removes the given property from the set
|
|
39
|
+
*
|
|
40
|
+
* @param {property-properties.NamedProperty|string} in_entry - The property or its URN to remove from the set
|
|
41
|
+
* @return {property-properties.NamedProperty} the property that was removed.
|
|
42
|
+
* @throws if trying to remove an entry that does not exist
|
|
43
|
+
*/
|
|
44
|
+
remove(in_entry: any): any;
|
|
45
|
+
/**
|
|
46
|
+
* Adds a list of properties to the set.
|
|
47
|
+
* @see {setValues}
|
|
48
|
+
* @param {NamedProperty[]|NamedNodeProperty[]|Object[]} in_properties - The list of properties to add to the list
|
|
49
|
+
* @param {Boolean} in_typed - If the set's items have a typeid and a value then create the
|
|
50
|
+
* properties with that typeid, else use the set's typeid (support polymorphic items).
|
|
51
|
+
* @private
|
|
52
|
+
*/
|
|
53
|
+
private _setValuesInternal;
|
|
54
|
+
/**
|
|
55
|
+
* Returns all entries of the set as an array.
|
|
56
|
+
*
|
|
57
|
+
* NOTE: This function creates a copy and thus is less efficient as getEntriesReadOnly.
|
|
58
|
+
*
|
|
59
|
+
* @return {Array.<property-properties.NamedProperty>} Array with all entries of the set. This array is a shallow copy
|
|
60
|
+
* which can be modified by the caller without effects on the set.
|
|
61
|
+
*/
|
|
62
|
+
getAsArray(): Array<any>;
|
|
63
|
+
/**
|
|
64
|
+
* Delete all values from Set
|
|
65
|
+
*/
|
|
66
|
+
clear(): void;
|
|
67
|
+
}
|
|
68
|
+
import { IndexedCollectionBaseProperty } from "./indexedCollectionBaseProperty";
|
|
69
|
+
//# sourceMappingURL=setProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setProperty.d.ts","sourceRoot":"","sources":["../../src/properties/setProperty.js"],"names":[],"mappings":"AAiBA;;;GAGG;AACH;IACI;;;;;;;;;OASG;IACH,wBAOC;IAJG,eAAsB;IAEtB,oEAAoE;IACpE,qBAA0B;IAmF9B;;;;;;;OAOG;IACH,+BAOC;IAED;;;;;;OAMG;IACH,iBAFW,eAAsC,QAehD;IAED;;;;;;OAMG;IACH,2BASC;IAwED;;;;;;;OAOG;IACH,2BAkBC;IAsCD;;;;;;;OAOG;IACH,cAHY,UAAe,CAK1B;IAmBD;;OAEG;IACH,cAKC;CACJ"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A primitive property for a string value.
|
|
3
|
+
*/
|
|
4
|
+
export class StringProperty extends ValueArrayProperty {
|
|
5
|
+
/**
|
|
6
|
+
* @param {Object=} in_params - the parameters
|
|
7
|
+
* @constructor
|
|
8
|
+
* @protected
|
|
9
|
+
* @extends property-properties.ValueArrayProperty
|
|
10
|
+
* @alias property-properties.StringProperty
|
|
11
|
+
* @category Arrays
|
|
12
|
+
*/
|
|
13
|
+
protected constructor();
|
|
14
|
+
/**
|
|
15
|
+
* inserts values
|
|
16
|
+
* @param {number} in_position target index
|
|
17
|
+
* @param {string} in_value the string to be inserted
|
|
18
|
+
*/
|
|
19
|
+
_insertRange(in_position: number, in_value: string): void;
|
|
20
|
+
/**
|
|
21
|
+
* @param {string} in_value the new value
|
|
22
|
+
* @throws if string property is read only
|
|
23
|
+
*/
|
|
24
|
+
setValue(in_value: string): void;
|
|
25
|
+
/**
|
|
26
|
+
* Internal function to update the value of a property
|
|
27
|
+
*
|
|
28
|
+
* @param {string} in_value the new value
|
|
29
|
+
* @param {boolean} [in_reportToView = true] - By default, the dirtying will always be reported to the checkout view
|
|
30
|
+
* and trigger a modified event there. When batching updates, this
|
|
31
|
+
* can be prevented via this flag.
|
|
32
|
+
* @return {boolean} true if the value was actually changed
|
|
33
|
+
*/
|
|
34
|
+
_setValue(in_value: string, in_reportToView?: boolean): boolean;
|
|
35
|
+
set value(arg: string);
|
|
36
|
+
get value(): string;
|
|
37
|
+
}
|
|
38
|
+
import { ValueArrayProperty } from "./valueArrayProperty";
|
|
39
|
+
//# sourceMappingURL=stringProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stringProperty.d.ts","sourceRoot":"","sources":["../../src/properties/stringProperty.js"],"names":[],"mappings":"AAuDA;;GAEG;AACH;IACI;;;;;;;OAOG;IACH,wBAEC;IA6FD;;;;OAIG;IACH,0BAHW,MAAM,YACN,MAAM,QAMhB;IA+ID;;;OAGG;IACH,mBAHW,MAAM,QAMhB;IA2BD;;;;;;;;OAQG;IACH,oBANW,MAAM,oBACN,OAAO,GAGN,OAAO,CAyBlB;IAoPD,uBAEC;IAND,oBAEC;CAeJ"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A primitive property for an unsigned 8 bit integer value.
|
|
3
|
+
*/
|
|
4
|
+
export class Uint8Property extends ValueProperty {
|
|
5
|
+
/**
|
|
6
|
+
* @param {Object=} in_params - the parameters
|
|
7
|
+
* @constructor
|
|
8
|
+
* @private
|
|
9
|
+
* @extends property-properties.ValueProperty
|
|
10
|
+
* @alias property-properties.Uint8Property
|
|
11
|
+
* @category Value Properties
|
|
12
|
+
*/
|
|
13
|
+
private constructor();
|
|
14
|
+
_castFunctor: any;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A primitive property for an unsigned 16 bit integer value.
|
|
18
|
+
*/
|
|
19
|
+
export class Uint16Property extends ValueProperty {
|
|
20
|
+
/**
|
|
21
|
+
* @param {Object=} in_params - the parameters
|
|
22
|
+
* @constructor
|
|
23
|
+
* @private
|
|
24
|
+
* @extends property-properties.ValueProperty
|
|
25
|
+
* @alias property-properties.Uint16Property
|
|
26
|
+
* @category Value Properties
|
|
27
|
+
*/
|
|
28
|
+
private constructor();
|
|
29
|
+
_castFunctor: any;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A primitive property for an unsigned 32 bit integer value.
|
|
33
|
+
*/
|
|
34
|
+
export class Uint32Property extends ValueProperty {
|
|
35
|
+
/**
|
|
36
|
+
* @param {Object=} in_params - the parameters
|
|
37
|
+
* @constructor
|
|
38
|
+
* @protected
|
|
39
|
+
* @extends property-properties.ValueProperty
|
|
40
|
+
* @alias property-properties.Uint32Property
|
|
41
|
+
* @category Value Properties
|
|
42
|
+
*/
|
|
43
|
+
protected constructor();
|
|
44
|
+
_castFunctor: any;
|
|
45
|
+
}
|
|
46
|
+
import { ValueProperty } from "./valueProperty";
|
|
47
|
+
//# sourceMappingURL=uintProperties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uintProperties.d.ts","sourceRoot":"","sources":["../../src/properties/uintProperties.js"],"names":[],"mappings":"AAWA;;GAEG;AACH;IACI;;;;;;;OAOG;IACH,sBAIC;IAGL,kBAAoC;CAFnC;AAID;;GAEG;AACH;IACI;;;;;;;OAOG;IACH,sBAIC;IAGL,kBAAqC;CAFpC;AAID;;GAEG;AACH;IACI;;;;;;;OAOG;IACH,wBAIC;IAGL,kBAAqC;CAFpC"}
|