@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,74 @@
|
|
|
1
|
+
export class PropertyTemplateWrapper {
|
|
2
|
+
/**
|
|
3
|
+
* Constructor for creating a PropertyTemplateWrapper based on the given template.
|
|
4
|
+
* @param {PropertyTemplate} in_remoteTemplate A property template
|
|
5
|
+
* @param {string} in_scope The scope of the template
|
|
6
|
+
*
|
|
7
|
+
* @constructor
|
|
8
|
+
* @package
|
|
9
|
+
* @alias property-properties.PropertyTemplateWrapper
|
|
10
|
+
* @category Properties
|
|
11
|
+
*/
|
|
12
|
+
constructor(in_remoteTemplate: any, in_scope: string);
|
|
13
|
+
/** The property template this object is wrapping */
|
|
14
|
+
_propertyTemplate: any;
|
|
15
|
+
/** A property template created from this.propertyTemplate with the addition of all information
|
|
16
|
+
* from templates this template inherits from.
|
|
17
|
+
*/
|
|
18
|
+
_compiledPropertyTemplate: any;
|
|
19
|
+
_objectCreationType: string;
|
|
20
|
+
_scope: string;
|
|
21
|
+
/**
|
|
22
|
+
* To get the property template that this is wrapping.
|
|
23
|
+
* @return {property-properties.PropertyTemplate} The template this wrapper contains
|
|
24
|
+
* @package
|
|
25
|
+
*/
|
|
26
|
+
getPropertyTemplate(): any;
|
|
27
|
+
/**
|
|
28
|
+
* Gets the compiled template or creates it then returns it.
|
|
29
|
+
* @param {property-properties.PropertyFactory} in_propertyFactory The assosiated PropertyFactory.
|
|
30
|
+
* @return {property-properties.PropertyTemplate} The compiled template
|
|
31
|
+
* A compiled template is the template which is actually used for creating objects.
|
|
32
|
+
* It has all information from parent Templates, and other changes.
|
|
33
|
+
* @package
|
|
34
|
+
*/
|
|
35
|
+
getCompiledTemplate(in_propertyFactory: any): any;
|
|
36
|
+
/**
|
|
37
|
+
* Returns if the compiled template has been created.
|
|
38
|
+
* @return {boolean} if the compiled template has been created
|
|
39
|
+
* @package
|
|
40
|
+
*/
|
|
41
|
+
hasCompiledTemplate(): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* To get the creation type of the template this wraps.
|
|
44
|
+
* @return {string} A typeid which represents the creation type of this template
|
|
45
|
+
* @package
|
|
46
|
+
*/
|
|
47
|
+
getCreationType(): string;
|
|
48
|
+
/**
|
|
49
|
+
* If current creation type is undefined, sets it to in_typeid if in_typeid is a creation type.
|
|
50
|
+
* If current creation type is defined, throws if in_typeid is a creation type.
|
|
51
|
+
*
|
|
52
|
+
* @param {string} in_typeid A typeid
|
|
53
|
+
* @package
|
|
54
|
+
*/
|
|
55
|
+
setCreationType(in_typeid: string): void;
|
|
56
|
+
/**
|
|
57
|
+
* Contructs the compiled template from the template this wraps
|
|
58
|
+
* @param {property-properties.PropertyFactory} in_propertyFactory The associated PropertyFactory.
|
|
59
|
+
* @return {property-properties.PropertyTemplate} The compiled template
|
|
60
|
+
* A compiled template is the template which is actually used for creating objects.
|
|
61
|
+
* It has all information from parent Templates, and other changes.
|
|
62
|
+
* @package
|
|
63
|
+
*/
|
|
64
|
+
_contructCompiledTemplate(in_propertyFactory: any): any;
|
|
65
|
+
/**
|
|
66
|
+
* A helper function which merges a child and parent property.
|
|
67
|
+
* The changes are applied directly to the in_childProperty.
|
|
68
|
+
* @param {object} in_childProperty The child's property defition.
|
|
69
|
+
* @param {object} in_parentProperty The parent's property defition.
|
|
70
|
+
* @package
|
|
71
|
+
*/
|
|
72
|
+
_mergeProperty(in_childProperty: object, in_parentProperty: object): void;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=propertyTemplateWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertyTemplateWrapper.d.ts","sourceRoot":"","sources":["../src/propertyTemplateWrapper.js"],"names":[],"mappings":"AA6BA;IACI;;;;;;;;;OASG;IACH,8CAPW,MAAM,EAqBhB;IAbG,oDAAoD;IACpD,uBAA0C;IAE1C;;OAEG;IACH,+BAA0C;IAG1C,4BAAoC;IAGpC,eAAsB;IAG1B;;;;OAIG;IACH,2BAEC;IAED;;;;;;;OAOG;IACH,kDAKC;IAED;;;;OAIG;IACH,uBAHY,OAAO,CAKlB;IAED;;;;OAIG;IACH,mBAHY,MAAM,CAKjB;IAED;;;;;;OAMG;IACH,2BAHW,MAAM,QAmBhB;IAED;;;;;;;OAOG;IACH,wDAuHC;IAED;;;;;;OAMG;IACH,iCAJW,MAAM,qBACN,MAAM,QAqEhB;CACJ"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
export class PropertyUtils {
|
|
6
|
+
/**
|
|
7
|
+
* Gather all properties that pass an arbitrary predicate function
|
|
8
|
+
* @param {property-properties.NodeProperty} in_rootProperty The root property to traverse from
|
|
9
|
+
* @param {function} in_predicate The predicate function
|
|
10
|
+
* @return {Array.<property-properties.BaseProperty>} The list of properties that passed the predicate
|
|
11
|
+
* function
|
|
12
|
+
*/
|
|
13
|
+
static gatherProperties: (in_rootProperty: any, in_predicate: Function) => Array<any>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=propertyUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertyUtils.d.ts","sourceRoot":"","sources":["../src/propertyUtils.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;IACI;;;;;;OAMG;IACH,2EAHY,UAAe,CAYzB;CACL"}
|
package/lib/propertyUtils.js
CHANGED
|
@@ -8,7 +8,7 @@ export class PropertyUtils {
|
|
|
8
8
|
* Gather all properties that pass an arbitrary predicate function
|
|
9
9
|
* @param {property-properties.NodeProperty} in_rootProperty The root property to traverse from
|
|
10
10
|
* @param {function} in_predicate The predicate function
|
|
11
|
-
* @return {Array.<property-properties.
|
|
11
|
+
* @return {Array.<property-properties.BaseProperty>} The list of properties that passed the predicate
|
|
12
12
|
* function
|
|
13
13
|
*/
|
|
14
14
|
PropertyUtils.gatherProperties = function (in_rootProperty, in_predicate) {
|
package/lib/propertyUtils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propertyUtils.js","sourceRoot":"","sources":["../src/propertyUtils.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,OAAO,aAAa;;AACtB;;;;;;GAMG;AACI,8BAAgB,GAAG,UAAS,eAAe,EAAE,YAAY;IAC5D,IAAI,kBAAkB,GAAG,EAAE,CAAC;IAC5B,eAAe,CAAC,YAAY,CAAC,UAAS,QAAQ,EAAE,IAAI;QAChD,IAAI,YAAY,CAAC,QAAQ,CAAC,EAAE;YACxB,kBAAkB,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC;SACvC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,kBAAkB,CAAC;AAC9B,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport class PropertyUtils {\n /**\n * Gather all properties that pass an arbitrary predicate function\n * @param {property-properties.NodeProperty} in_rootProperty The root property to traverse from\n * @param {function} in_predicate The predicate function\n * @return {Array.<property-properties.
|
|
1
|
+
{"version":3,"file":"propertyUtils.js","sourceRoot":"","sources":["../src/propertyUtils.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,OAAO,aAAa;;AACtB;;;;;;GAMG;AACI,8BAAgB,GAAG,UAAS,eAAe,EAAE,YAAY;IAC5D,IAAI,kBAAkB,GAAG,EAAE,CAAC;IAC5B,eAAe,CAAC,YAAY,CAAC,UAAS,QAAQ,EAAE,IAAI;QAChD,IAAI,YAAY,CAAC,QAAQ,CAAC,EAAE;YACxB,kBAAkB,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC;SACvC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,kBAAkB,CAAC;AAC9B,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport class PropertyUtils {\n /**\n * Gather all properties that pass an arbitrary predicate function\n * @param {property-properties.NodeProperty} in_rootProperty The root property to traverse from\n * @param {function} in_predicate The predicate function\n * @return {Array.<property-properties.BaseProperty>} The list of properties that passed the predicate\n * function\n */\n static gatherProperties = function(in_rootProperty, in_predicate) {\n var gatheredProperties = {};\n in_rootProperty.traverseDown(function(property, path) {\n if (in_predicate(property)) {\n gatheredProperties[path] = property;\n }\n });\n\n return gatheredProperties;\n };\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-experimental/property-properties",
|
|
3
|
-
"version": "0.59.2000-
|
|
3
|
+
"version": "0.59.2000-63294",
|
|
4
4
|
"description": "definitions of properties",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"temp-directory": "nyc/.nyc_output"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@fluid-experimental/property-changeset": "0.59.2000-
|
|
65
|
-
"@fluid-experimental/property-common": "0.59.2000-
|
|
64
|
+
"@fluid-experimental/property-changeset": "0.59.2000-63294",
|
|
65
|
+
"@fluid-experimental/property-common": "0.59.2000-63294",
|
|
66
66
|
"ajv": "7.1.1",
|
|
67
67
|
"async": "^3.2.0",
|
|
68
68
|
"fastest-json-copy": "^1.0.1",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@fluidframework/build-common": "^0.23.0",
|
|
76
|
-
"@fluidframework/mocha-test-setup": "0.59.2000-
|
|
76
|
+
"@fluidframework/mocha-test-setup": "0.59.2000-63294",
|
|
77
77
|
"@types/mocha": "^8.2.2",
|
|
78
78
|
"chai": "^4.2.0",
|
|
79
79
|
"concurrently": "^6.2.0",
|
|
@@ -82,8 +82,11 @@
|
|
|
82
82
|
"eslint-plugin-editorconfig": "~3.2.0",
|
|
83
83
|
"eslint-plugin-eslint-comments": "~3.2.0",
|
|
84
84
|
"eslint-plugin-import": "~2.25.4",
|
|
85
|
-
"eslint-plugin-
|
|
85
|
+
"eslint-plugin-jest": "~26.1.3",
|
|
86
|
+
"eslint-plugin-mocha": "~10.0.3",
|
|
87
|
+
"eslint-plugin-promise": "~6.0.0",
|
|
86
88
|
"eslint-plugin-react": "~7.28.0",
|
|
89
|
+
"eslint-plugin-tsdoc": "~0.2.14",
|
|
87
90
|
"eslint-plugin-unicorn": "~40.0.0",
|
|
88
91
|
"mocha": "^8.4.0",
|
|
89
92
|
"nock": "^10.0.1",
|
package/src/index.d.ts
CHANGED
|
@@ -2244,7 +2244,7 @@ declare module "@fluid-experimental/property-properties" {
|
|
|
2244
2244
|
/**
|
|
2245
2245
|
* Returns the full property type identifier for the ChangeSet including the enum type id
|
|
2246
2246
|
* @param in_hideCollection if true the collection type (if applicable) will be omitted
|
|
2247
|
-
* since that is not
|
|
2247
|
+
* since that is not applicable here, this param is ignored. Default to false
|
|
2248
2248
|
* @return The typeid
|
|
2249
2249
|
*/
|
|
2250
2250
|
getFullTypeid(in_hideCollection?: boolean): string;
|
|
@@ -2267,7 +2267,7 @@ declare module "@fluid-experimental/property-properties" {
|
|
|
2267
2267
|
*/
|
|
2268
2268
|
getParent(): BaseProperty | undefined;
|
|
2269
2269
|
/**
|
|
2270
|
-
* checks whether the property is dynamic (only properties
|
|
2270
|
+
* checks whether the property is dynamic (only properties inheriting from NodeProperty are)
|
|
2271
2271
|
*/
|
|
2272
2272
|
isDynamic(): boolean;
|
|
2273
2273
|
/**
|
|
@@ -2547,7 +2547,7 @@ declare module "@fluid-experimental/property-properties" {
|
|
|
2547
2547
|
/**
|
|
2548
2548
|
* Returns the full property type identifier for the ChangeSet including the enum type id
|
|
2549
2549
|
* @param in_hideCollection - if true the collection type (if applicable) will be omitted
|
|
2550
|
-
* since that is not
|
|
2550
|
+
* since that is not applicable here, this param is ignored. Default to false
|
|
2551
2551
|
* @return The typeid
|
|
2552
2552
|
*/
|
|
2553
2553
|
getFullTypeid(in_hideCollection: boolean): string;
|