@fluid-experimental/property-properties 0.59.1001-62246 → 0.59.2000
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,216 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An array property which stores primitive values
|
|
3
|
+
*/
|
|
4
|
+
export class ValueArrayProperty extends ArrayProperty {
|
|
5
|
+
/**
|
|
6
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
7
|
+
* @constructor
|
|
8
|
+
* @protected
|
|
9
|
+
* @extends property-properties.ArrayProperty
|
|
10
|
+
* @alias property-properties.ValueArrayProperty
|
|
11
|
+
*/
|
|
12
|
+
protected constructor();
|
|
13
|
+
/**
|
|
14
|
+
* returns the value at in_position for a primitive array
|
|
15
|
+
* @param {number} in_position the array index
|
|
16
|
+
* @return {*} the value
|
|
17
|
+
*/
|
|
18
|
+
_getValue(in_position: number): any;
|
|
19
|
+
_isPrimitive: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* An ArrayProperty which stores Float32 values
|
|
23
|
+
*/
|
|
24
|
+
export class Float32ArrayProperty extends ValueArrayProperty {
|
|
25
|
+
/**
|
|
26
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
27
|
+
*
|
|
28
|
+
* @constructor
|
|
29
|
+
* @protected
|
|
30
|
+
* @extends property-properties.ValueArrayProperty
|
|
31
|
+
* @alias property-properties.Float32ArrayProperty
|
|
32
|
+
* @category Arrays
|
|
33
|
+
*/
|
|
34
|
+
protected constructor();
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* An ArrayProperty which stores Float64 values
|
|
38
|
+
*/
|
|
39
|
+
export class Float64ArrayProperty extends ValueArrayProperty {
|
|
40
|
+
/**
|
|
41
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
42
|
+
*
|
|
43
|
+
* @constructor
|
|
44
|
+
* @protected
|
|
45
|
+
* @extends property-properties.ValueArrayProperty
|
|
46
|
+
* @alias property-properties.Float64ArrayProperty
|
|
47
|
+
* @category Arrays
|
|
48
|
+
*/
|
|
49
|
+
protected constructor();
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* An ArrayProperty which stores Uint8 values
|
|
53
|
+
*/
|
|
54
|
+
export class Uint8ArrayProperty extends ValueArrayProperty {
|
|
55
|
+
/**
|
|
56
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
57
|
+
*
|
|
58
|
+
* @constructor
|
|
59
|
+
* @protected
|
|
60
|
+
* @extends property-properties.ValueArrayProperty
|
|
61
|
+
* @alias property-properties.Uint8ArrayProperty
|
|
62
|
+
* @category Arrays
|
|
63
|
+
*/
|
|
64
|
+
protected constructor();
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* An ArrayProperty which stores Int8 values
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
export class Int8ArrayProperty extends ValueArrayProperty {
|
|
71
|
+
/**
|
|
72
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
73
|
+
*
|
|
74
|
+
* @constructor
|
|
75
|
+
* @protected
|
|
76
|
+
* @extends property-properties.ValueArrayProperty
|
|
77
|
+
* @alias property-properties.Int8ArrayProperty
|
|
78
|
+
* @category Arrays
|
|
79
|
+
*/
|
|
80
|
+
protected constructor();
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* An ArrayProperty which stores Uint16 values
|
|
84
|
+
*/
|
|
85
|
+
export class Uint16ArrayProperty extends ValueArrayProperty {
|
|
86
|
+
/**
|
|
87
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
88
|
+
*
|
|
89
|
+
* @constructor
|
|
90
|
+
* @protected
|
|
91
|
+
* @extends property-properties.ValueArrayProperty
|
|
92
|
+
* @alias property-properties.Uint16ArrayProperty
|
|
93
|
+
* @category Arrays
|
|
94
|
+
*/
|
|
95
|
+
protected constructor();
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* An ArrayProperty which stores Int16 values
|
|
99
|
+
*/
|
|
100
|
+
export class Int16ArrayProperty extends ValueArrayProperty {
|
|
101
|
+
/**
|
|
102
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
103
|
+
*
|
|
104
|
+
* @constructor
|
|
105
|
+
* @protected
|
|
106
|
+
* @extends property-properties.ValueArrayProperty
|
|
107
|
+
* @alias property-properties.Int16ArrayProperty
|
|
108
|
+
* @category Arrays
|
|
109
|
+
*/
|
|
110
|
+
protected constructor();
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* An ArrayProperty which stores Uint32 values
|
|
114
|
+
*/
|
|
115
|
+
export class Uint32ArrayProperty extends ValueArrayProperty {
|
|
116
|
+
/** @param {Object} in_params - Input parameters for property creation
|
|
117
|
+
*
|
|
118
|
+
* @constructor
|
|
119
|
+
* @protected
|
|
120
|
+
* @extends property-properties.ValueArrayProperty
|
|
121
|
+
* @alias property-properties.Uint32ArrayProperty
|
|
122
|
+
* @category Arrays
|
|
123
|
+
*/
|
|
124
|
+
protected constructor();
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* An ArrayProperty which stores Int32 values
|
|
128
|
+
*/
|
|
129
|
+
export class Int32ArrayProperty extends ValueArrayProperty {
|
|
130
|
+
/**
|
|
131
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
132
|
+
*
|
|
133
|
+
* @constructor
|
|
134
|
+
* @protected
|
|
135
|
+
* @extends property-properties.ValueArrayProperty
|
|
136
|
+
* @alias property-properties.Int32ArrayProperty
|
|
137
|
+
* @category Arrays
|
|
138
|
+
*/
|
|
139
|
+
protected constructor();
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* An ArrayProperty which stores Int64 values
|
|
143
|
+
*/
|
|
144
|
+
export class Integer64ArrayProperty extends ValueArrayProperty {
|
|
145
|
+
/** @param {Object} in_params - Input parameters for property creation
|
|
146
|
+
*
|
|
147
|
+
* @constructor
|
|
148
|
+
* @protected
|
|
149
|
+
* @extends property-properties.ValueArrayProperty
|
|
150
|
+
* @alias property-properties.Integer64ArrayProperty
|
|
151
|
+
* @category Arrays
|
|
152
|
+
*/
|
|
153
|
+
protected constructor();
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* An ArrayProperty which stores Int64 values
|
|
157
|
+
*/
|
|
158
|
+
export class Int64ArrayProperty extends Integer64ArrayProperty {
|
|
159
|
+
/**
|
|
160
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
161
|
+
*
|
|
162
|
+
* @constructor
|
|
163
|
+
* @protected
|
|
164
|
+
* @extends property-properties.Integer64ArrayProperty
|
|
165
|
+
* @alias property-properties.Int64ArrayProperty
|
|
166
|
+
* @category Arrays
|
|
167
|
+
*/
|
|
168
|
+
protected constructor();
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* An ArrayProperty which stores Uint64 values
|
|
172
|
+
*/
|
|
173
|
+
export class Uint64ArrayProperty extends Integer64ArrayProperty {
|
|
174
|
+
/**
|
|
175
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
176
|
+
*
|
|
177
|
+
* @constructor
|
|
178
|
+
* @protected
|
|
179
|
+
* @extends property-properties.Integer64ArrayProperty
|
|
180
|
+
* @alias property-properties.Uint64ArrayProperty
|
|
181
|
+
* @category Arrays
|
|
182
|
+
*/
|
|
183
|
+
protected constructor();
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* An ArrayProperty which stores String values
|
|
187
|
+
*/
|
|
188
|
+
export class StringArrayProperty extends ValueArrayProperty {
|
|
189
|
+
/**
|
|
190
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
191
|
+
*
|
|
192
|
+
* @constructor
|
|
193
|
+
* @protected
|
|
194
|
+
* @extends property-properties.ValueArrayProperty
|
|
195
|
+
* @alias property-properties.StringArrayProperty
|
|
196
|
+
* @category Arrays
|
|
197
|
+
*/
|
|
198
|
+
protected constructor();
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* An ArrayProperty which stores Boolean values
|
|
202
|
+
*/
|
|
203
|
+
export class BoolArrayProperty extends ValueArrayProperty {
|
|
204
|
+
/**
|
|
205
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
206
|
+
*
|
|
207
|
+
* @constructor
|
|
208
|
+
* @protected
|
|
209
|
+
* @extends property-properties.ValueArrayProperty
|
|
210
|
+
* @alias property-properties.BoolArrayProperty
|
|
211
|
+
* @category Arrays
|
|
212
|
+
*/
|
|
213
|
+
protected constructor();
|
|
214
|
+
}
|
|
215
|
+
import { ArrayProperty } from "./arrayProperty";
|
|
216
|
+
//# sourceMappingURL=valueArrayProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valueArrayProperty.d.ts","sourceRoot":"","sources":["../../src/properties/valueArrayProperty.js"],"names":[],"mappings":"AAsBA;;GAEG;AACH;IACI;;;;;;OAMG;IACH,wBAEC;IAED;;;;OAIG;IACH,uBAHW,MAAM,OAKhB;IAiEL,sBAAyC;CADxC;AAGD;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;CASJ;AAGD;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;CASJ;AAGD;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;CASJ;AAGD;;;EAGE;AACF;IACI;;;;;;;;OAQG;IACH,wBAEC;CASJ;AAGD;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;CASJ;AAGD;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;CASJ;AAGD;;GAEG;AACH;IACI;;;;;;;OAOG;IACH,wBAEC;CASJ;AAGD;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;CASJ;AAGD;;GAEG;AACH;IACI;;;;;;;OAOG;IACH,wBAEC;CAsEJ;AACD;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;CA2DJ;AAGD;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;CA2DJ;AAGD;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;CAYJ;AAGD;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;CAYJ"}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A ValueMapProperty is a collection class that can contain an dictionary that maps from strings to primitive types.
|
|
3
|
+
*/
|
|
4
|
+
export class ValueMapProperty extends MapProperty {
|
|
5
|
+
/**
|
|
6
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
7
|
+
*
|
|
8
|
+
* @constructor
|
|
9
|
+
* @protected
|
|
10
|
+
* @extends property-properties.MapProperty
|
|
11
|
+
* @alias property-properties.ValueMapProperty
|
|
12
|
+
* @category Maps
|
|
13
|
+
*/
|
|
14
|
+
protected constructor();
|
|
15
|
+
_getValue(in_key: any): any;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A ValueMapProperty which stores Float32 values
|
|
19
|
+
*/
|
|
20
|
+
export class Float32MapProperty extends ValueMapProperty {
|
|
21
|
+
/**
|
|
22
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
23
|
+
*
|
|
24
|
+
* @constructor
|
|
25
|
+
* @protected
|
|
26
|
+
* @extends property-properties.ValueMapProperty
|
|
27
|
+
* @alias property-properties.Float32MapProperty
|
|
28
|
+
* @category Maps
|
|
29
|
+
*/
|
|
30
|
+
protected constructor();
|
|
31
|
+
_castFunctor: any;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* A ValueMapProperty which stores Float64 values
|
|
35
|
+
*/
|
|
36
|
+
export class Float64MapProperty extends ValueMapProperty {
|
|
37
|
+
/**
|
|
38
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
39
|
+
*
|
|
40
|
+
* @constructor
|
|
41
|
+
* @protected
|
|
42
|
+
* @extends property-properties.ValueMapProperty
|
|
43
|
+
* @alias property-properties.Float64MapProperty
|
|
44
|
+
* @category Maps
|
|
45
|
+
*/
|
|
46
|
+
protected constructor();
|
|
47
|
+
_castFunctor: any;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A ValueMapProperty which stores Uint32 values
|
|
51
|
+
*/
|
|
52
|
+
export class Uint32MapProperty extends ValueMapProperty {
|
|
53
|
+
/**
|
|
54
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
55
|
+
*
|
|
56
|
+
* @constructor
|
|
57
|
+
* @protected
|
|
58
|
+
* @extends property-properties.ValueMapProperty
|
|
59
|
+
* @alias property-properties.Uint32MapProperty
|
|
60
|
+
* @category Maps
|
|
61
|
+
*/
|
|
62
|
+
protected constructor();
|
|
63
|
+
_castFunctor: any;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* A ValueMapProperty which stores Uint16 values
|
|
67
|
+
*/
|
|
68
|
+
export class Uint16MapProperty extends ValueMapProperty {
|
|
69
|
+
/**
|
|
70
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
71
|
+
*
|
|
72
|
+
* @constructor
|
|
73
|
+
* @protected
|
|
74
|
+
* @extends property-properties.ValueMapProperty
|
|
75
|
+
* @alias property-properties.Uint16MapProperty
|
|
76
|
+
* @category Maps
|
|
77
|
+
*/
|
|
78
|
+
protected constructor();
|
|
79
|
+
_castFunctor: any;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* A ValueMapProperty which stores Uint8 values
|
|
83
|
+
*/
|
|
84
|
+
export class Uint8MapProperty extends ValueMapProperty {
|
|
85
|
+
/**
|
|
86
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
87
|
+
*
|
|
88
|
+
* @constructor
|
|
89
|
+
* @protected
|
|
90
|
+
* @extends property-properties.ValueMapProperty
|
|
91
|
+
* @alias property-properties.Uint8MapProperty
|
|
92
|
+
* @category Maps
|
|
93
|
+
*/
|
|
94
|
+
protected constructor();
|
|
95
|
+
_castFunctor: any;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* A ValueMapProperty which stores Int32 values
|
|
99
|
+
*/
|
|
100
|
+
export class Int32MapProperty extends ValueMapProperty {
|
|
101
|
+
/**
|
|
102
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
103
|
+
*
|
|
104
|
+
* @constructor
|
|
105
|
+
* @protected
|
|
106
|
+
* @extends property-properties.ValueMapProperty
|
|
107
|
+
* @alias property-properties.Int32MapProperty
|
|
108
|
+
* @category Maps
|
|
109
|
+
*/
|
|
110
|
+
protected constructor();
|
|
111
|
+
_castFunctor: any;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* An abstract base class for 64 bit integer map properties
|
|
115
|
+
*/
|
|
116
|
+
export class Integer64MapProperty extends ValueMapProperty {
|
|
117
|
+
/**
|
|
118
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
119
|
+
*
|
|
120
|
+
* @constructor
|
|
121
|
+
* @protected
|
|
122
|
+
* @extends property-properties.ValueMapProperty
|
|
123
|
+
* @alias property-properties.Integer64MapProperty
|
|
124
|
+
* @category Maps
|
|
125
|
+
*/
|
|
126
|
+
protected constructor();
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* A ValueMapProperty which stores Int64 Properties
|
|
130
|
+
*/
|
|
131
|
+
export class Int64MapProperty extends Integer64MapProperty {
|
|
132
|
+
/**
|
|
133
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
134
|
+
*
|
|
135
|
+
* @constructor
|
|
136
|
+
* @protected
|
|
137
|
+
* @extends Integer64MapProperty
|
|
138
|
+
* @alias property-properties.Int64MapProperty
|
|
139
|
+
* @category Maps
|
|
140
|
+
*/
|
|
141
|
+
protected constructor();
|
|
142
|
+
_castFunctor: (in_value: number, in_radix?: number) => number;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* A ValueMapProperty which stores Uint64 Properties
|
|
146
|
+
*/
|
|
147
|
+
export class Uint64MapProperty extends Integer64MapProperty {
|
|
148
|
+
/**
|
|
149
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
150
|
+
*
|
|
151
|
+
* @constructor
|
|
152
|
+
* @protected
|
|
153
|
+
* @extends Integer64MapProperty
|
|
154
|
+
* @alias property-properties.Uint64MapProperty
|
|
155
|
+
* @category Maps
|
|
156
|
+
*/
|
|
157
|
+
protected constructor();
|
|
158
|
+
_castFunctor: (in_value: number, in_radix?: number) => number;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* A ValueMapProperty which stores Int16 values
|
|
162
|
+
*/
|
|
163
|
+
export class Int16MapProperty extends ValueMapProperty {
|
|
164
|
+
/** @param {Object} in_params - Input parameters for property creation
|
|
165
|
+
*
|
|
166
|
+
* @constructor
|
|
167
|
+
* @protected
|
|
168
|
+
* @extends property-properties.ValueMapProperty
|
|
169
|
+
* @alias property-properties.Int16MapProperty
|
|
170
|
+
* @category Maps
|
|
171
|
+
*/
|
|
172
|
+
protected constructor();
|
|
173
|
+
_castFunctor: any;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* A ValueMapProperty which stores Int8 values
|
|
177
|
+
*/
|
|
178
|
+
export class Int8MapProperty extends ValueMapProperty {
|
|
179
|
+
/**
|
|
180
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
181
|
+
*
|
|
182
|
+
* @constructor
|
|
183
|
+
* @protected
|
|
184
|
+
* @extends property-properties.ValueMapProperty
|
|
185
|
+
* @alias property-properties.Int8MapProperty
|
|
186
|
+
* @category Maps
|
|
187
|
+
*/
|
|
188
|
+
protected constructor();
|
|
189
|
+
_castFunctor: any;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* A ValueMapProperty which stores string values
|
|
193
|
+
*/
|
|
194
|
+
export class StringMapProperty extends ValueMapProperty {
|
|
195
|
+
/**
|
|
196
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
197
|
+
*
|
|
198
|
+
* @constructor
|
|
199
|
+
* @protected
|
|
200
|
+
* @extends property-properties.ValueMapProperty
|
|
201
|
+
* @alias property-properties.StringMapProperty
|
|
202
|
+
* @category Maps
|
|
203
|
+
*/
|
|
204
|
+
protected constructor();
|
|
205
|
+
_castFunctor: (in_value: number) => number;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* A ValueMapProperty which stores boolean values
|
|
209
|
+
*/
|
|
210
|
+
export class BoolMapProperty extends ValueMapProperty {
|
|
211
|
+
/**
|
|
212
|
+
* @param {Object} in_params - Input parameters for property creation
|
|
213
|
+
*
|
|
214
|
+
* @constructor
|
|
215
|
+
* @protected
|
|
216
|
+
* @extends property-properties.ValueMapProperty
|
|
217
|
+
* @alias property-properties.BoolMapProperty
|
|
218
|
+
* @category Maps
|
|
219
|
+
*/
|
|
220
|
+
protected constructor();
|
|
221
|
+
_castFunctor: (in_value: boolean) => boolean;
|
|
222
|
+
}
|
|
223
|
+
import { MapProperty } from "./mapProperty";
|
|
224
|
+
//# sourceMappingURL=valueMapProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valueMapProperty.d.ts","sourceRoot":"","sources":["../../src/properties/valueMapProperty.js"],"names":[],"mappings":"AAiBA;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAyFD,4BAEC;CAmEJ;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAGL,kBAAyC;CAFxC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAGL,kBAAyC;CAFxC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAGL,kBAAwC;CAFvC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAGL,kBAAwC;CAFvC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAGL,kBAAuC;CAFtC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAGL,kBAAuC;CAFtC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;CAuDJ;AAED;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAeL,8DAAuC;CAFtC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAeL,8DAAwC;CAFvC;AAID;;GAEG;AACH;IACI;;;;;;;OAOG;IACH,wBAEC;IAGL,kBAAuC;CAFtC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAGL,kBAAsC;CAFrC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAGL,2CAAwC;CAFvC;AAID;;GAEG;AACH;IACI;;;;;;;;OAQG;IACH,wBAEC;IAGL,6CAAsC;CAFrC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* its associated data field that we are interested in. If no data field is
|
|
5
|
+
* present this property will fail constructing.
|
|
6
|
+
*/
|
|
7
|
+
export class ValueProperty extends BaseProperty {
|
|
8
|
+
/**
|
|
9
|
+
* @virtual
|
|
10
|
+
* @param {Object=} in_params - the parameters
|
|
11
|
+
* @param {Object=} in_params.dataObj optional argument containing an object
|
|
12
|
+
* that should be used as the backing store of this value
|
|
13
|
+
* property
|
|
14
|
+
* @param {Object=} in_params.dataId optional argument must be provided when
|
|
15
|
+
* in_params.dataObj is passed. Must contain a valid member
|
|
16
|
+
* name of dataObj. This member will be used to set/get
|
|
17
|
+
* values of this value property
|
|
18
|
+
* @constructor
|
|
19
|
+
* @protected
|
|
20
|
+
* @extends property-properties.BaseProperty
|
|
21
|
+
* @alias property-properties.ValueProperty
|
|
22
|
+
* @category Value Properties
|
|
23
|
+
*/
|
|
24
|
+
protected constructor();
|
|
25
|
+
_data: any;
|
|
26
|
+
/**
|
|
27
|
+
* returns the current value of ValueProperty
|
|
28
|
+
* @return {*} the current value
|
|
29
|
+
*/
|
|
30
|
+
getValue(): any;
|
|
31
|
+
/**
|
|
32
|
+
* @param {*} in_value the new value
|
|
33
|
+
* @throws if property is read only
|
|
34
|
+
*/
|
|
35
|
+
setValue(in_value: any): void;
|
|
36
|
+
/**
|
|
37
|
+
* Internal function to update the value of a property
|
|
38
|
+
*
|
|
39
|
+
* @param {*} in_value the new value
|
|
40
|
+
* @param {boolean} [in_reportToView = true] - By default, the dirtying will always be reported to the checkout view
|
|
41
|
+
* and trigger a modified event there. When batching updates, this
|
|
42
|
+
* can be prevented via this flag.
|
|
43
|
+
* @return {boolean} true if the value was actually changed
|
|
44
|
+
*/
|
|
45
|
+
_setValue(in_value: any, in_reportToView?: boolean): boolean;
|
|
46
|
+
set value(arg: any);
|
|
47
|
+
get value(): any;
|
|
48
|
+
}
|
|
49
|
+
import { BaseProperty } from "./baseProperty";
|
|
50
|
+
//# sourceMappingURL=valueProperty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valueProperty.d.ts","sourceRoot":"","sources":["../../src/properties/valueProperty.js"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH;IACI;;;;;;;;;;;;;;;OAeG;IACH,wBAGC;IADG,WAAsB;IAc1B;;;OAGG;IACH,gBAEC;IAYD;;;OAGG;IACH,8BAGC;IAED;;;;;;;;OAQG;IACH,2CALW,OAAO,GAGN,OAAO,CAelB;IAsGD,oBAEC;IALD,iBAEC;CAIJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertyFactory.d.ts","sourceRoot":"","sources":["../src/propertyFactory.js"],"names":[],"mappings":";AA6sEA,4CAAuD"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
export class PropertyTemplate {
|
|
2
|
+
/**
|
|
3
|
+
* Determines if the argument is a template structure
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
* @param {object} in_param parameter to assess
|
|
7
|
+
*
|
|
8
|
+
* @return {Boolean} returns true if in_param is a template
|
|
9
|
+
*/
|
|
10
|
+
public static isTemplate(in_param: object): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Extracts typeids directly referred to in a template
|
|
13
|
+
*
|
|
14
|
+
* @public
|
|
15
|
+
* @param {object} template structure from which to extract dependencies
|
|
16
|
+
*
|
|
17
|
+
* @return {Array} list of typeids this template refers directly to
|
|
18
|
+
*/
|
|
19
|
+
public static extractDependencies(template: object): any[];
|
|
20
|
+
/**
|
|
21
|
+
* Constructor for creating a PropertyTemplate based on the given parameters.
|
|
22
|
+
* @param {object} in_params List of parameters
|
|
23
|
+
* @param {string} in_params.id id of the property
|
|
24
|
+
* @param {string} in_params.name Name of the property
|
|
25
|
+
* @param {string} in_params.typeid The type identifier
|
|
26
|
+
* @param {number=} [in_params.length=1] The length of the property. Only valid if
|
|
27
|
+
* the property is an array, otherwise the length defaults to 1
|
|
28
|
+
* @param {string} in_params.context The type of property this template represents
|
|
29
|
+
* i.e. array, hash, etc.
|
|
30
|
+
* @param {Array.<object>} in_params.properties List of property templates that
|
|
31
|
+
* are used to define children properties
|
|
32
|
+
* @param {Array.<object>} in_params.constants List of property templates that
|
|
33
|
+
* are used to define constant properties and their values
|
|
34
|
+
* @param {Array.<string>} in_params.inherits List of property template typeids that this
|
|
35
|
+
* PropertyTemplate inherits from
|
|
36
|
+
*
|
|
37
|
+
* @constructor
|
|
38
|
+
* @protected
|
|
39
|
+
* @category Properties
|
|
40
|
+
*/
|
|
41
|
+
protected constructor();
|
|
42
|
+
/** The identifier of the property */
|
|
43
|
+
id: any;
|
|
44
|
+
/** The type identifier of the property */
|
|
45
|
+
typeid: any;
|
|
46
|
+
length: number;
|
|
47
|
+
/** The context of the property */
|
|
48
|
+
context: any;
|
|
49
|
+
/** Array with sub-properties */
|
|
50
|
+
properties: any;
|
|
51
|
+
/** The annotation object */
|
|
52
|
+
annotation: any;
|
|
53
|
+
/** Array with constant properties */
|
|
54
|
+
constants: any;
|
|
55
|
+
/** Typeids of properties this property inherits from */
|
|
56
|
+
inherits: any;
|
|
57
|
+
_enumDictionary: {};
|
|
58
|
+
_serializedParams: {
|
|
59
|
+
id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
typeid: string;
|
|
62
|
+
length?: number | undefined;
|
|
63
|
+
context: string;
|
|
64
|
+
properties: Array<object>;
|
|
65
|
+
constants: Array<object>;
|
|
66
|
+
inherits: Array<string>;
|
|
67
|
+
};
|
|
68
|
+
hasNestedProperties(): boolean;
|
|
69
|
+
hasNestedConstants(): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* internal function to recursivly traverse a property template and create dictionaries for found inline enums
|
|
72
|
+
* @param {{}} in_currentPropertyLevel the current level in the template hierarchie
|
|
73
|
+
*/
|
|
74
|
+
_digestNestedInlineEnumProperties(in_currentPropertyLevel: {}): void;
|
|
75
|
+
/**
|
|
76
|
+
* read the enum types list of a template and create a dictionary [value->enum] and [enum->value] for it
|
|
77
|
+
* to efficiently lookup enums/values when setting/getting them from the property
|
|
78
|
+
* @param {Array} in_enumProperties - the list of enums and their values and annotations
|
|
79
|
+
* @return {{}} a dictionary [value->enum] and [enum->value]
|
|
80
|
+
*/
|
|
81
|
+
_parseEnums(in_enumProperties: any[]): {};
|
|
82
|
+
/**
|
|
83
|
+
* Clones the PropertyTemplate
|
|
84
|
+
*
|
|
85
|
+
* @return {property-properties.PropertyTemplate} The cloned template
|
|
86
|
+
*/
|
|
87
|
+
clone(): any;
|
|
88
|
+
/**
|
|
89
|
+
* Method used to check whether the template is versioned.
|
|
90
|
+
* A versioned template is of the form `xxxx-1.0.0`
|
|
91
|
+
* @return {boolean} Returns true if the template is versioned, false otherwise
|
|
92
|
+
*/
|
|
93
|
+
_isVersioned(): boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Return the version number of the template.
|
|
96
|
+
* @return {string} The version string is returned.
|
|
97
|
+
*/
|
|
98
|
+
getVersion(): string;
|
|
99
|
+
/**
|
|
100
|
+
* Canonical representation of a PropertyTemplate.
|
|
101
|
+
* This is similar to a deep copy but with adjustments so that the target is in
|
|
102
|
+
* canonical form for a template property i.e. a) if array length
|
|
103
|
+
* is not specified it is set to 0 in the target, b) string value
|
|
104
|
+
* for 'inherits' property is converted to single-value array
|
|
105
|
+
* Deep copy an object.
|
|
106
|
+
*
|
|
107
|
+
* @param {*} in_obj - the object to create a canonical copy of.
|
|
108
|
+
* @param {Object|Array} [in_target_] - copy into this object.
|
|
109
|
+
* @param {string} [in_key_] - key in in_target_ at which to place
|
|
110
|
+
* the copied object.
|
|
111
|
+
* @param {boolean} [in_preserve_ = false] - do not overwrite structs / arrays in
|
|
112
|
+
* in an existing object
|
|
113
|
+
*
|
|
114
|
+
* @return {*} in_target_ if specified, new object containing canonical copy of @obj
|
|
115
|
+
* otherwise.
|
|
116
|
+
* @return {string} The version string is returned.
|
|
117
|
+
*/
|
|
118
|
+
_canonicalForm(in_obj: any, in_target_?: any | any[], in_key_?: string, in_preserve_?: boolean): any;
|
|
119
|
+
/**
|
|
120
|
+
* Return the serialized parameters passed in the constructor
|
|
121
|
+
* @return {object} Serialized parameters
|
|
122
|
+
*/
|
|
123
|
+
serialize(): object;
|
|
124
|
+
/**
|
|
125
|
+
* Return the serialized parameters passed in the constructor, in a template canonical form
|
|
126
|
+
* @return {object} canonical serialized parameters
|
|
127
|
+
*/
|
|
128
|
+
serializeCanonical(): object;
|
|
129
|
+
/**
|
|
130
|
+
* Return the typeid of the template without the version number
|
|
131
|
+
* i.e. autodesk.core:color instead of autodesk.core:color-1.0.0
|
|
132
|
+
* @return {string} The typeid without the version is returned.
|
|
133
|
+
* If the template is not versioned, the typeid is return.
|
|
134
|
+
*/
|
|
135
|
+
getTypeidWithoutVersion(): string;
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=propertyTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertyTemplate.d.ts","sourceRoot":"","sources":["../src/propertyTemplate.js"],"names":[],"mappings":"AAgBA;IA2SI;;;;;;;QAOI;IACJ,mCAJY,MAAM,WASjB;IAED;;;;;;;MAOE;IACF,4CAJU,MAAM,SAiFf;IA9YD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,wBAwCC;IAtCG,qCAAqC;IACrC,QAAmB;IACnB,0CAA0C;IAC1C,YAA2B;IAKnB,eAA2B;IASnC,kCAAkC;IAClC,aAA6B;IAE7B,gCAAgC;IAChC,gBAAmC;IAEnC,4BAA4B;IAC5B,gBAAyC;IAEzC,qCAAqC;IACrC,eAAiC;IAEjC,wDAAwD;IACxD,cAAiF;IAG7E,oBAAwD;IAI5D;YAzDO,MAAM;cACN,MAAM;gBACN,MAAM;iBACN,MAAM;iBAEN,MAAM;oBAEN,MAAO,MAAM,CAAC;mBAEd,MAAO,MAAM,CAAC;kBAEd,MAAO,MAAM,CAAC;MA8Ca;IAGtC,+BAEC;IAED,8BAEC;IAED;;;OAGG;IACH,2DAFW,EAAE,QAcZ;IAED;;;;;OAKG;IACH,uCAFY,EAAE,CAyBb;IAED;;;;OAIG;IACH,aAEC;IAED;;;;OAIG;IACH,gBAFY,OAAO,CAYlB;IAED;;;OAGG;IACH,cAFY,MAAM,CAWjB;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,yCAVW,WAAY,YACZ,MAAM,iBAEN,OAAO,OA4FjB;IAED;;;OAGG;IACH,aAFY,MAAM,CAIjB;IAED;;;OAGG;IACH,sBAFY,MAAM,CAIjB;IAED;;;;;OAKG;IACH,2BAHY,MAAM,CAUjB;CAuGJ"}
|