@fluid-experimental/property-properties 2.0.2 → 2.1.0-276326
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/arrayProperty.d.ts.map +1 -1
- package/dist/properties/arrayProperty.js +1 -2
- package/dist/properties/arrayProperty.js.map +1 -1
- package/dist/propertyFactory.d.ts.map +1 -1
- package/dist/propertyFactory.js +1 -2
- package/dist/propertyFactory.js.map +1 -1
- package/dist/propertyTemplate.d.ts.map +1 -1
- package/dist/propertyTemplate.js +1 -2
- package/dist/propertyTemplate.js.map +1 -1
- package/lib/properties/arrayProperty.d.ts.map +1 -1
- package/lib/properties/arrayProperty.js +1 -2
- package/lib/properties/arrayProperty.js.map +1 -1
- package/lib/propertyFactory.d.ts.map +1 -1
- package/lib/propertyFactory.js +1 -2
- package/lib/propertyFactory.js.map +1 -1
- package/lib/propertyTemplate.d.ts.map +1 -1
- package/lib/propertyTemplate.js +1 -2
- package/lib/propertyTemplate.js.map +1 -1
- package/package.json +4 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propertyTemplate.d.ts","sourceRoot":"","sources":["../src/propertyTemplate.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"propertyTemplate.d.ts","sourceRoot":"","sources":["../src/propertyTemplate.js"],"names":[],"mappings":"AAeA;;GAEG;AACH;IAsTC;;;;;;OAMG;IACH,4BAJW,MAAM,WAShB;IAED;;;;;;OAMG;IACH,qCAJW,MAAM,SAsFhB;IA5ZD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,wBAoCC;IAlCA,qCAAqC;IACrC,QAAmB;IACnB,0CAA0C;IAC1C,YAA2B;IAI1B,YAA6D;IAM9D,kCAAkC;IAClC,aAA6B;IAE7B,gCAAgC;IAChC,gBAAmC;IAEnC,4BAA4B;IAC5B,gBAAyC;IAEzC,qCAAqC;IACrC,eAAiC;IAEjC,wDAAwD;IACxD,cAAiF;IAGhF,oBAAwD;IAIzD;YArDU,MAAM;cACN,MAAM;gBACN,MAAM;iBACN,MAAM;iBAEN,MAAM;oBAEN,MAAO,MAAM,CAAC;mBAEd,MAAO,MAAM,CAAC;kBAEd,MAAO,MAAM,CAAC;MA0CU;IAGnC,+BAEC;IAED,8BAEC;IAED;;;OAGG;IACH,2DAFW,EAAE,QAcZ;IAED;;;;;OAKG;IACH,uCAFY,EAAE,CAiCb;IAED;;;;OAIG;IACH,kBAEC;IAED;;;;OAIG;IACH,gBAFY,OAAO,CAYlB;IAED;;;OAGG;IACH,cAFY,MAAM,CAWjB;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,yCARW,WAAY,YACZ,MAAM,iBACN,OAAO,OAoGjB;IAED;;;OAGG;IACH,aAFY,MAAM,CAIjB;IAED;;;OAGG;IACH,sBAFY,MAAM,CAIjB;IAED;;;;;OAKG;IACH,2BAHY,MAAM,CAUjB;CA0GD"}
|
package/dist/propertyTemplate.js
CHANGED
|
@@ -12,9 +12,8 @@ exports.PropertyTemplate = void 0;
|
|
|
12
12
|
const { TypeIdHelper } = require("@fluid-experimental/property-changeset");
|
|
13
13
|
const { ConsoleUtils } = require("@fluid-experimental/property-common");
|
|
14
14
|
const { MSG } = require("@fluid-experimental/property-common").constants;
|
|
15
|
-
const fastestJSONCopy = require("fastest-json-copy");
|
|
16
15
|
const _ = require("lodash");
|
|
17
|
-
const deepCopy =
|
|
16
|
+
const { cloneDeep: deepCopy } = _;
|
|
18
17
|
/**
|
|
19
18
|
* @internal
|
|
20
19
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propertyTemplate.js","sourceRoot":"","sources":["../src/propertyTemplate.js"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;;GAGG;AACH,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,wCAAwC,CAAC,CAAC;AAC3E,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAC;AACxE,MAAM,EAA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MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;4BACtC,IAAI,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;4BACjD,IAAI,MAAM,EAAE,CAAC;gCACZ,YAAY,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;4BAC7B,CAAC;wBACF,CAAC;oBACF,CAAC;gBACF,CAAC;YACF,CAAC;QACF,CAAC;QAED,OAAO,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAClC,CAAC;CACD;AA9ZD,4CA8ZC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * @fileoverview Declaration of the PropertyTemplate module.\n * PropertyTemplate is used to describe a static property.\n */\nconst { TypeIdHelper } = require(\"@fluid-experimental/property-changeset\");\nconst { ConsoleUtils } = require(\"@fluid-experimental/property-common\");\nconst { MSG } = require(\"@fluid-experimental/property-common\").constants;\nconst fastestJSONCopy = require(\"fastest-json-copy\");\nconst _ = require(\"lodash\");\nconst deepCopy = fastestJSONCopy.copy;\n\n/**\n * @internal\n */\nexport class PropertyTemplate {\n\t/**\n\t * Constructor for creating a PropertyTemplate based on the given parameters.\n\t * @param {object} in_params - List of parameters\n\t * @param {string} in_params.id - id of the property\n\t * @param {string} in_params.name - Name of the property\n\t * @param {string} in_params.typeid - The type identifier\n\t * @param {number=} [in_params.length=1] - The length of the property. Only valid if\n\t * the property is an array, otherwise the length defaults to 1\n\t * @param {string} in_params.context - The type of property this template represents\n\t * i.e. array, hash, etc.\n\t * @param {Array.<object>} in_params.properties - List of property templates that\n\t * are used to define children properties\n\t * @param {Array.<object>} in_params.constants - List of property templates that\n\t * are used to define constant properties and their values\n\t * @param {Array.<string>} in_params.inherits - List of property template typeids that this\n\t * PropertyTemplate inherits from\n\t *\n\t * @constructor\n\t * @protected\n\t * @category Properties\n\t */\n\tconstructor(in_params = {}) {\n\t\tlet params = deepCopy(in_params);\n\t\t/** The identifier of the property */\n\t\tthis.id = params.id;\n\t\t/** The type identifier of the property */\n\t\tthis.typeid = params.typeid;\n\n\t\t/** Size of the property (if this is an array) */\n\t\tif (params.context === \"array\") {\n\t\t\tthis.length = params.length !== undefined ? params.length : 0;\n\t\t} else {\n\t\t\tthis.length = 1;\n\t\t}\n\t\tConsoleUtils.assert(_.isNumber(this.length), MSG.LENGTH_MUST_BE_NUMBER + this.length);\n\n\t\t/** The context of the property */\n\t\tthis.context = params.context;\n\n\t\t/** Array with sub-properties */\n\t\tthis.properties = params.properties;\n\n\t\t/** The annotation object */\n\t\tthis.annotation = params.annotation || {};\n\n\t\t/** Array with constant properties */\n\t\tthis.constants = params.constants;\n\n\t\t/** Typeids of properties this property inherits from */\n\t\tthis.inherits = _.isString(params.inherits) ? [params.inherits] : params.inherits;\n\n\t\tif (_.includes(this.inherits, \"Enum\")) {\n\t\t\tthis._enumDictionary = this._parseEnums(this.properties);\n\t\t}\n\t\t// check for inlined enums and parse them:\n\t\tthis._digestNestedInlineEnumProperties(this);\n\t\tthis._serializedParams = in_params;\n\t}\n\n\thasNestedProperties() {\n\t\treturn this.properties && this.properties.length > 0;\n\t}\n\n\thasNestedConstants() {\n\t\treturn this.constants && this.constants.length > 0;\n\t}\n\n\t/**\n\t * Internal function to recursivly traverse a property template and create dictionaries for found inline enums\n\t * @param {{}} in_currentPropertyLevel - The current level in the template hierarchie\n\t */\n\t_digestNestedInlineEnumProperties(in_currentPropertyLevel) {\n\t\tif (in_currentPropertyLevel.properties) {\n\t\t\tfor (var i = 0; i < in_currentPropertyLevel.properties.length; i++) {\n\t\t\t\tif (in_currentPropertyLevel.properties[i].typeid === \"Enum\") {\n\t\t\t\t\tvar dictionary = this._parseEnums(in_currentPropertyLevel.properties[i].properties);\n\t\t\t\t\tin_currentPropertyLevel.properties[i]._enumDictionary = dictionary;\n\t\t\t\t} else if (in_currentPropertyLevel.properties[i].properties) {\n\t\t\t\t\t// call self\n\t\t\t\t\tthis._digestNestedInlineEnumProperties(in_currentPropertyLevel.properties[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * read the enum types list of a template and create a dictionary [value->enum] and [enum->value] for it\n\t * to efficiently lookup enums/values when setting/getting them from the property\n\t * @param {Array} in_enumProperties - the list of enums and their values and annotations\n\t * @return {{}} a dictionary [value->enum] and [enum->value]\n\t */\n\t_parseEnums(in_enumProperties) {\n\t\tvar enumDictionary = {\n\t\t\tenumEntriesById: {},\n\t\t\tenumEntriesByValue: {},\n\t\t\tdefaultValue: undefined,\n\t\t};\n\t\tvar minValue;\n\t\tif (in_enumProperties.length !== 0) {\n\t\t\tminValue = in_enumProperties[0].value;\n\t\t}\n\t\tfor (var i = 0; i < in_enumProperties.length; i++) {\n\t\t\tvar enumEntry = in_enumProperties[i];\n\t\t\tvar value = enumEntry.value;\n\t\t\tConsoleUtils.assert(enumEntry.id, MSG.ENUM_TYPEID_MISSING);\n\t\t\tConsoleUtils.assert(!_.isNaN(enumEntry.value), MSG.ENUM_VALUE_NOT_NUMBER + value);\n\t\t\tenumDictionary.enumEntriesById[enumEntry.id] = {\n\t\t\t\tvalue: value,\n\t\t\t\tannotation: enumEntry.annotation,\n\t\t\t};\n\t\t\tenumDictionary.enumEntriesByValue[value] = {\n\t\t\t\tid: enumEntry.id,\n\t\t\t\tannotation: enumEntry.annotation,\n\t\t\t};\n\t\t\tminValue = value < minValue ? value : minValue;\n\t\t}\n\n\t\tenumDictionary.defaultValue = enumDictionary.enumEntriesByValue.hasOwnProperty(0)\n\t\t\t? 0\n\t\t\t: minValue;\n\n\t\treturn enumDictionary;\n\t}\n\n\t/**\n\t * Clones the PropertyTemplate\n\t *\n\t * @return {property-properties.PropertyTemplate} The cloned template\n\t */\n\tclone() {\n\t\treturn new PropertyTemplate(deepCopy(this._serializedParams));\n\t}\n\n\t/**\n\t * Method used to check whether the template is versioned.\n\t * A versioned template is of the form `xxxx-1.0.0`\n\t * @return {boolean} Returns true if the template is versioned, false otherwise\n\t */\n\t_isVersioned() {\n\t\tvar splitTypeId = TypeIdHelper.extractVersion(this.typeid);\n\n\t\tif (!splitTypeId.version) {\n\t\t\treturn false;\n\t\t}\n\n\t\tvar version = splitTypeId.version;\n\n\t\treturn /^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)$/.test(version);\n\t}\n\n\t/**\n\t * Return the version number of the template.\n\t * @return {string} The version string is returned.\n\t */\n\tgetVersion() {\n\t\tif (this._isVersioned()) {\n\t\t\tvar splitTypeId = TypeIdHelper.extractVersion(this.typeid);\n\t\t\tvar version = splitTypeId.version;\n\t\t\treturn version;\n\t\t} else {\n\t\t\tconsole.warn(MSG.TEMPLATE_NOT_VERSIONED, this.typeid);\n\t\t\treturn undefined;\n\t\t}\n\t}\n\n\t/**\n\t * Canonical representation of a PropertyTemplate.\n\t * This is similar to a deep copy but with adjustments so that the target is in\n\t * canonical form for a template property i.e. a) if array length\n\t * is not specified it is set to 0 in the target, b) string value\n\t * for 'inherits' property is converted to single-value array\n\t * Deep copy an object.\n\t *\n\t * @param {*} in_obj - The object to create a canonical copy of.\n\t * @param {Object|Array} [in_target_] - Copy into this object.\n\t * @param {string} [in_key_] - Key in in_target_ at which to place the copied object.\n\t * @param {boolean} [in_preserve_ = false] - Do not overwrite structs / arrays in an existing object\n\t *\n\t * @return {*} in_target_ if specified, new object containing canonical copy of @obj\n\t * otherwise.\n\t * @return {string} The version string is returned.\n\t */\n\t_canonicalForm(in_obj, in_target_, in_key_, in_preserve_) {\n\t\tin_preserve_ = in_preserve_ === undefined ? false : in_preserve_;\n\n\t\tvar target, copyMembers;\n\t\tvar copyDirectlyIntoKey = false;\n\t\tif (\n\t\t\tin_target_ &&\n\t\t\t(in_key_ === undefined ||\n\t\t\t\t(in_key_ &&\n\t\t\t\t\tin_target_.hasOwnProperty(in_key_) &&\n\t\t\t\t\t_.isObject(in_target_[in_key_]) &&\n\t\t\t\t\tin_preserve_))\n\t\t) {\n\t\t\t// If no key is given, we directly copy into the\n\t\t\t// target object. Additionally, when a key is given, the member already exists\n\t\t\t// in the target object and preserve is set, we also keep the target object.\n\t\t\t// This is only possible if the target is already an\n\t\t\t// object.\n\t\t\ttarget = in_key_ ? in_target_[in_key_] : in_target_;\n\n\t\t\tif (\n\t\t\t\t_.isFunction(in_obj) ||\n\t\t\t\t_.isDate(in_obj) ||\n\t\t\t\t_.isRegExp(in_obj) ||\n\t\t\t\t_.isObject(in_obj) !== _.isObject(target) ||\n\t\t\t\t_.isArray(in_obj) !== _.isArray(target) ||\n\t\t\t\t!_.isObject(target)\n\t\t\t) {\n\t\t\t\tthrow new TypeError(MSG.INVALID_TARGET_PROPERTY_TEMPLATE + this.typeid);\n\t\t\t}\n\t\t\tcopyMembers = true;\n\t\t\tcopyDirectlyIntoKey = true;\n\t\t} else {\n\t\t\t// If no existing target object, we create a new object.\n\n\t\t\t// literals are directly assigned to the target\n\t\t\tif (!in_obj || !_.isObject(in_obj) || _.isFunction(in_obj)) {\n\t\t\t\ttarget = in_obj;\n\t\t\t\t// Special case handlers for dates and regexps\n\t\t\t\t// (https://github.com/jashkenas/underscore/pull/595)\n\t\t\t} else if (_.isDate(in_obj)) {\n\t\t\t\ttarget = new Date(in_obj.getTime());\n\t\t\t} else if (_.isRegExp(in_obj)) {\n\t\t\t\ttarget = new RegExp(in_obj.source, in_obj.toString().replace(/.*\\//, \"\"));\n\t\t\t\t// For objects and arrays we create a new object/array\n\t\t\t} else if (_.isObject(in_obj)) {\n\t\t\t\ttarget = _.isArray(in_obj) ? [] : {};\n\t\t\t\tcopyMembers = true;\n\t\t\t} else {\n\t\t\t\tthrow new TypeError(MSG.MISSING_CASE_IN_TEMPLATE_SERIALIZATION + this.typeid);\n\t\t\t}\n\t\t}\n\n\t\t// If this is either an object or an array, we have to do a 'normalized' deep copy\n\t\t// and recursively copy all members. Normalized means the target will be a normalized\n\t\t// representation of the input property with respect to the canonical representation\n\t\t// of a template i.e. : if array length is not specified it is set to 0.\n\t\t// Other rules will follow\n\t\tif (copyMembers) {\n\t\t\tvar keys = _.keys(in_obj);\n\t\t\tvar l = keys.length;\n\t\t\tfor (var i = 0; i < l; i++) {\n\t\t\t\tvar key = keys[i];\n\t\t\t\tthis._canonicalForm(in_obj[key], target, key, in_preserve_);\n\t\t\t}\n\n\t\t\t// If context is array and length is absent set it to 0\n\t\t\tif (\n\t\t\t\t_.includes(keys, \"context\") &&\n\t\t\t\tin_obj[\"context\"] === \"array\" &&\n\t\t\t\t!_.includes(keys, \"length\")\n\t\t\t) {\n\t\t\t\ttarget[\"length\"] = 0;\n\t\t\t}\n\n\t\t\t// If inherit value is present and is a single string convert it to single element array\n\t\t\tif (\n\t\t\t\t_.includes(keys, \"inherits\") &&\n\t\t\t\tin_obj[\"inherits\"] &&\n\t\t\t\t!_.isObject(in_obj[\"inherits\"])\n\t\t\t) {\n\t\t\t\ttarget[\"inherits\"] = [in_obj[\"inherits\"]];\n\t\t\t}\n\t\t}\n\n\t\tif (!in_key_) {\n\t\t\t// If you don't give a path, then we return the original or copied object\n\t\t\treturn target;\n\t\t} else if (!copyDirectlyIntoKey) {\n\t\t\t// If you give a path, we use the path as a key.\n\t\t\tin_target_[in_key_] = target;\n\t\t}\n\n\t\treturn in_target_;\n\t}\n\n\t/**\n\t * Return the serialized parameters passed in the constructor\n\t * @return {object} Serialized parameters\n\t */\n\tserialize() {\n\t\treturn deepCopy(this._serializedParams);\n\t}\n\n\t/**\n\t * Return the serialized parameters passed in the constructor, in a template canonical form\n\t * @return {object} canonical serialized parameters\n\t */\n\tserializeCanonical() {\n\t\treturn PropertyTemplate.prototype._canonicalForm(this._serializedParams);\n\t}\n\n\t/**\n\t * Return the typeid of the template without the version number\n\t * i.e. autodesk.core:color instead of autodesk.core:color-1.0.0\n\t * @return {string} The typeid without the version is returned.\n\t * If the template is not versioned, the typeid is return.\n\t */\n\tgetTypeidWithoutVersion() {\n\t\tif (this._isVersioned()) {\n\t\t\tvar splitTypeId = TypeIdHelper.extractVersion(this.typeid);\n\t\t\treturn splitTypeId.typeidWithoutVersion;\n\t\t} else {\n\t\t\treturn this.typeid;\n\t\t}\n\t}\n\n\t/**\n\t * Determines if the argument is a template structure\n\t *\n\t * @param {object} in_param - Parameter to assess\n\t *\n\t * @return {Boolean} true if in_param is a template\n\t */\n\tstatic isTemplate(in_param) {\n\t\tif (in_param.typeid && in_param.typeid.indexOf(\":\") !== -1) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * Extracts typeids directly referred to in a template\n\t *\n\t * @param {object} template - Structure from which to extract dependencies\n\t *\n\t * @return {Array} List of typeids this template refers directly to\n\t */\n\tstatic extractDependencies(template) {\n\t\tvar dependencies = {};\n\n\t\tif (template.inherits) {\n\t\t\tvar inherits =\n\t\t\t\ttypeof template.inherits === \"string\" ? [template.inherits] : template.inherits;\n\t\t\tfor (var i = 0; i < inherits.length; i++) {\n\t\t\t\tvar elem = TypeIdHelper.extractTypeId(inherits[i]);\n\t\t\t\tdependencies[elem] = true;\n\t\t\t}\n\t\t}\n\n\t\tif (template.properties) {\n\t\t\tvar properties = template.properties;\n\t\t\tfor (var i = 0; i < properties.length; i++) {\n\t\t\t\tvar property = properties[i];\n\t\t\t\tif (PropertyTemplate.isTemplate(property)) {\n\t\t\t\t\tvar typeid = TypeIdHelper.extractTypeId(property.typeid);\n\t\t\t\t\tdependencies[typeid] = true;\n\n\t\t\t\t\tif (property.typedValue) {\n\t\t\t\t\t\tfor (var t = 0; t < property.typedValue.length; t++) {\n\t\t\t\t\t\t\tvar typedValue = property.typedValue[t];\n\t\t\t\t\t\t\tdependencies[typedValue.typeid] = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (property.properties) {\n\t\t\t\t\tvar deps = PropertyTemplate.extractDependencies(property);\n\t\t\t\t\tfor (var j = 0; j < deps.length; j++) {\n\t\t\t\t\t\tvar typeid = TypeIdHelper.extractTypeId(deps[j]);\n\t\t\t\t\t\tdependencies[typeid] = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (template.constants) {\n\t\t\tvar constants = template.constants;\n\t\t\tfor (var i = 0; i < constants.length; i++) {\n\t\t\t\tvar constant = constants[i];\n\t\t\t\tif (PropertyTemplate.isTemplate(constant)) {\n\t\t\t\t\tvar typeid = TypeIdHelper.extractTypeId(constant.typeid);\n\t\t\t\t\tdependencies[typeid] = true;\n\t\t\t\t} else if (\n\t\t\t\t\tconstant.context === \"map\" &&\n\t\t\t\t\tconstant.contextKeyType === \"typeid\" &&\n\t\t\t\t\tconstant.value\n\t\t\t\t) {\n\t\t\t\t\tvar keys = Object.keys(constant.value);\n\t\t\t\t\tfor (var k = 0; k < keys.length; k++) {\n\t\t\t\t\t\tvar typeid = TypeIdHelper.extractTypeId(keys[k]);\n\t\t\t\t\t\tdependencies[typeid] = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Search for typeid hidden in typedValue\n\t\t\t\t// the context could be inherited and therefore missing, so we have to try them all.\n\t\t\t\tif (constant.typedValue) {\n\t\t\t\t\t// for arrays\n\t\t\t\t\tif (_.isArray(constant.typedValue)) {\n\t\t\t\t\t\tfor (var t = 0; t < constant.typedValue.length; t++) {\n\t\t\t\t\t\t\tvar typedValue = constant.typedValue[t];\n\t\t\t\t\t\t\tdependencies[typedValue.typeid] = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// for singles\n\t\t\t\t\t} else if (constant.typedValue.typeid) {\n\t\t\t\t\t\tdependencies[constant.typedValue.typeid] = true;\n\t\t\t\t\t\t// for maps\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar keys = Object.keys(constant.typedValue);\n\t\t\t\t\t\tfor (var k = 0; k < keys.length; k++) {\n\t\t\t\t\t\t\tvar typeid = constant.typedValue[keys[k]].typeid;\n\t\t\t\t\t\t\tif (typeid) {\n\t\t\t\t\t\t\t\tdependencies[typeid]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xC,CAAC;wBACD,cAAc;oBACf,CAAC;yBAAM,IAAI,QAAQ,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;wBACvC,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;wBAChD,WAAW;oBACZ,CAAC;yBAAM,CAAC;wBACP,IAAI,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;wBAC5C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;4BACtC,IAAI,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;4BACjD,IAAI,MAAM,EAAE,CAAC;gCACZ,YAAY,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;4BAC7B,CAAC;wBACF,CAAC;oBACF,CAAC;gBACF,CAAC;YACF,CAAC;QACF,CAAC;QAED,OAAO,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAClC,CAAC;CACD;AA9ZD,4CA8ZC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * @fileoverview Declaration of the PropertyTemplate module.\n * PropertyTemplate is used to describe a static property.\n */\nconst { TypeIdHelper } = require(\"@fluid-experimental/property-changeset\");\nconst { ConsoleUtils } = require(\"@fluid-experimental/property-common\");\nconst { MSG } = require(\"@fluid-experimental/property-common\").constants;\nconst _ = require(\"lodash\");\nconst { cloneDeep: deepCopy } = _;\n\n/**\n * @internal\n */\nexport class PropertyTemplate {\n\t/**\n\t * Constructor for creating a PropertyTemplate based on the given parameters.\n\t * @param {object} in_params - List of parameters\n\t * @param {string} in_params.id - id of the property\n\t * @param {string} in_params.name - Name of the property\n\t * @param {string} in_params.typeid - The type identifier\n\t * @param {number=} [in_params.length=1] - The length of the property. Only valid if\n\t * the property is an array, otherwise the length defaults to 1\n\t * @param {string} in_params.context - The type of property this template represents\n\t * i.e. array, hash, etc.\n\t * @param {Array.<object>} in_params.properties - List of property templates that\n\t * are used to define children properties\n\t * @param {Array.<object>} in_params.constants - List of property templates that\n\t * are used to define constant properties and their values\n\t * @param {Array.<string>} in_params.inherits - List of property template typeids that this\n\t * PropertyTemplate inherits from\n\t *\n\t * @constructor\n\t * @protected\n\t * @category Properties\n\t */\n\tconstructor(in_params = {}) {\n\t\tlet params = deepCopy(in_params);\n\t\t/** The identifier of the property */\n\t\tthis.id = params.id;\n\t\t/** The type identifier of the property */\n\t\tthis.typeid = params.typeid;\n\n\t\t/** Size of the property (if this is an array) */\n\t\tif (params.context === \"array\") {\n\t\t\tthis.length = params.length !== undefined ? params.length : 0;\n\t\t} else {\n\t\t\tthis.length = 1;\n\t\t}\n\t\tConsoleUtils.assert(_.isNumber(this.length), MSG.LENGTH_MUST_BE_NUMBER + this.length);\n\n\t\t/** The context of the property */\n\t\tthis.context = params.context;\n\n\t\t/** Array with sub-properties */\n\t\tthis.properties = params.properties;\n\n\t\t/** The annotation object */\n\t\tthis.annotation = params.annotation || {};\n\n\t\t/** Array with constant properties */\n\t\tthis.constants = params.constants;\n\n\t\t/** Typeids of properties this property inherits from */\n\t\tthis.inherits = _.isString(params.inherits) ? [params.inherits] : params.inherits;\n\n\t\tif (_.includes(this.inherits, \"Enum\")) {\n\t\t\tthis._enumDictionary = this._parseEnums(this.properties);\n\t\t}\n\t\t// check for inlined enums and parse them:\n\t\tthis._digestNestedInlineEnumProperties(this);\n\t\tthis._serializedParams = in_params;\n\t}\n\n\thasNestedProperties() {\n\t\treturn this.properties && this.properties.length > 0;\n\t}\n\n\thasNestedConstants() {\n\t\treturn this.constants && this.constants.length > 0;\n\t}\n\n\t/**\n\t * Internal function to recursivly traverse a property template and create dictionaries for found inline enums\n\t * @param {{}} in_currentPropertyLevel - The current level in the template hierarchie\n\t */\n\t_digestNestedInlineEnumProperties(in_currentPropertyLevel) {\n\t\tif (in_currentPropertyLevel.properties) {\n\t\t\tfor (var i = 0; i < in_currentPropertyLevel.properties.length; i++) {\n\t\t\t\tif (in_currentPropertyLevel.properties[i].typeid === \"Enum\") {\n\t\t\t\t\tvar dictionary = this._parseEnums(in_currentPropertyLevel.properties[i].properties);\n\t\t\t\t\tin_currentPropertyLevel.properties[i]._enumDictionary = dictionary;\n\t\t\t\t} else if (in_currentPropertyLevel.properties[i].properties) {\n\t\t\t\t\t// call self\n\t\t\t\t\tthis._digestNestedInlineEnumProperties(in_currentPropertyLevel.properties[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * read the enum types list of a template and create a dictionary [value->enum] and [enum->value] for it\n\t * to efficiently lookup enums/values when setting/getting them from the property\n\t * @param {Array} in_enumProperties - the list of enums and their values and annotations\n\t * @return {{}} a dictionary [value->enum] and [enum->value]\n\t */\n\t_parseEnums(in_enumProperties) {\n\t\tvar enumDictionary = {\n\t\t\tenumEntriesById: {},\n\t\t\tenumEntriesByValue: {},\n\t\t\tdefaultValue: undefined,\n\t\t};\n\t\tvar minValue;\n\t\tif (in_enumProperties.length !== 0) {\n\t\t\tminValue = in_enumProperties[0].value;\n\t\t}\n\t\tfor (var i = 0; i < in_enumProperties.length; i++) {\n\t\t\tvar enumEntry = in_enumProperties[i];\n\t\t\tvar value = enumEntry.value;\n\t\t\tConsoleUtils.assert(enumEntry.id, MSG.ENUM_TYPEID_MISSING);\n\t\t\tConsoleUtils.assert(!_.isNaN(enumEntry.value), MSG.ENUM_VALUE_NOT_NUMBER + value);\n\t\t\tenumDictionary.enumEntriesById[enumEntry.id] = {\n\t\t\t\tvalue: value,\n\t\t\t\tannotation: enumEntry.annotation,\n\t\t\t};\n\t\t\tenumDictionary.enumEntriesByValue[value] = {\n\t\t\t\tid: enumEntry.id,\n\t\t\t\tannotation: enumEntry.annotation,\n\t\t\t};\n\t\t\tminValue = value < minValue ? value : minValue;\n\t\t}\n\n\t\tenumDictionary.defaultValue = enumDictionary.enumEntriesByValue.hasOwnProperty(0)\n\t\t\t? 0\n\t\t\t: minValue;\n\n\t\treturn enumDictionary;\n\t}\n\n\t/**\n\t * Clones the PropertyTemplate\n\t *\n\t * @return {property-properties.PropertyTemplate} The cloned template\n\t */\n\tclone() {\n\t\treturn new PropertyTemplate(deepCopy(this._serializedParams));\n\t}\n\n\t/**\n\t * Method used to check whether the template is versioned.\n\t * A versioned template is of the form `xxxx-1.0.0`\n\t * @return {boolean} Returns true if the template is versioned, false otherwise\n\t */\n\t_isVersioned() {\n\t\tvar splitTypeId = TypeIdHelper.extractVersion(this.typeid);\n\n\t\tif (!splitTypeId.version) {\n\t\t\treturn false;\n\t\t}\n\n\t\tvar version = splitTypeId.version;\n\n\t\treturn /^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)$/.test(version);\n\t}\n\n\t/**\n\t * Return the version number of the template.\n\t * @return {string} The version string is returned.\n\t */\n\tgetVersion() {\n\t\tif (this._isVersioned()) {\n\t\t\tvar splitTypeId = TypeIdHelper.extractVersion(this.typeid);\n\t\t\tvar version = splitTypeId.version;\n\t\t\treturn version;\n\t\t} else {\n\t\t\tconsole.warn(MSG.TEMPLATE_NOT_VERSIONED, this.typeid);\n\t\t\treturn undefined;\n\t\t}\n\t}\n\n\t/**\n\t * Canonical representation of a PropertyTemplate.\n\t * This is similar to a deep copy but with adjustments so that the target is in\n\t * canonical form for a template property i.e. a) if array length\n\t * is not specified it is set to 0 in the target, b) string value\n\t * for 'inherits' property is converted to single-value array\n\t * Deep copy an object.\n\t *\n\t * @param {*} in_obj - The object to create a canonical copy of.\n\t * @param {Object|Array} [in_target_] - Copy into this object.\n\t * @param {string} [in_key_] - Key in in_target_ at which to place the copied object.\n\t * @param {boolean} [in_preserve_ = false] - Do not overwrite structs / arrays in an existing object\n\t *\n\t * @return {*} in_target_ if specified, new object containing canonical copy of @obj\n\t * otherwise.\n\t * @return {string} The version string is returned.\n\t */\n\t_canonicalForm(in_obj, in_target_, in_key_, in_preserve_) {\n\t\tin_preserve_ = in_preserve_ === undefined ? false : in_preserve_;\n\n\t\tvar target, copyMembers;\n\t\tvar copyDirectlyIntoKey = false;\n\t\tif (\n\t\t\tin_target_ &&\n\t\t\t(in_key_ === undefined ||\n\t\t\t\t(in_key_ &&\n\t\t\t\t\tin_target_.hasOwnProperty(in_key_) &&\n\t\t\t\t\t_.isObject(in_target_[in_key_]) &&\n\t\t\t\t\tin_preserve_))\n\t\t) {\n\t\t\t// If no key is given, we directly copy into the\n\t\t\t// target object. Additionally, when a key is given, the member already exists\n\t\t\t// in the target object and preserve is set, we also keep the target object.\n\t\t\t// This is only possible if the target is already an\n\t\t\t// object.\n\t\t\ttarget = in_key_ ? in_target_[in_key_] : in_target_;\n\n\t\t\tif (\n\t\t\t\t_.isFunction(in_obj) ||\n\t\t\t\t_.isDate(in_obj) ||\n\t\t\t\t_.isRegExp(in_obj) ||\n\t\t\t\t_.isObject(in_obj) !== _.isObject(target) ||\n\t\t\t\t_.isArray(in_obj) !== _.isArray(target) ||\n\t\t\t\t!_.isObject(target)\n\t\t\t) {\n\t\t\t\tthrow new TypeError(MSG.INVALID_TARGET_PROPERTY_TEMPLATE + this.typeid);\n\t\t\t}\n\t\t\tcopyMembers = true;\n\t\t\tcopyDirectlyIntoKey = true;\n\t\t} else {\n\t\t\t// If no existing target object, we create a new object.\n\n\t\t\t// literals are directly assigned to the target\n\t\t\tif (!in_obj || !_.isObject(in_obj) || _.isFunction(in_obj)) {\n\t\t\t\ttarget = in_obj;\n\t\t\t\t// Special case handlers for dates and regexps\n\t\t\t\t// (https://github.com/jashkenas/underscore/pull/595)\n\t\t\t} else if (_.isDate(in_obj)) {\n\t\t\t\ttarget = new Date(in_obj.getTime());\n\t\t\t} else if (_.isRegExp(in_obj)) {\n\t\t\t\ttarget = new RegExp(in_obj.source, in_obj.toString().replace(/.*\\//, \"\"));\n\t\t\t\t// For objects and arrays we create a new object/array\n\t\t\t} else if (_.isObject(in_obj)) {\n\t\t\t\ttarget = _.isArray(in_obj) ? [] : {};\n\t\t\t\tcopyMembers = true;\n\t\t\t} else {\n\t\t\t\tthrow new TypeError(MSG.MISSING_CASE_IN_TEMPLATE_SERIALIZATION + this.typeid);\n\t\t\t}\n\t\t}\n\n\t\t// If this is either an object or an array, we have to do a 'normalized' deep copy\n\t\t// and recursively copy all members. Normalized means the target will be a normalized\n\t\t// representation of the input property with respect to the canonical representation\n\t\t// of a template i.e. : if array length is not specified it is set to 0.\n\t\t// Other rules will follow\n\t\tif (copyMembers) {\n\t\t\tvar keys = _.keys(in_obj);\n\t\t\tvar l = keys.length;\n\t\t\tfor (var i = 0; i < l; i++) {\n\t\t\t\tvar key = keys[i];\n\t\t\t\tthis._canonicalForm(in_obj[key], target, key, in_preserve_);\n\t\t\t}\n\n\t\t\t// If context is array and length is absent set it to 0\n\t\t\tif (\n\t\t\t\t_.includes(keys, \"context\") &&\n\t\t\t\tin_obj[\"context\"] === \"array\" &&\n\t\t\t\t!_.includes(keys, \"length\")\n\t\t\t) {\n\t\t\t\ttarget[\"length\"] = 0;\n\t\t\t}\n\n\t\t\t// If inherit value is present and is a single string convert it to single element array\n\t\t\tif (\n\t\t\t\t_.includes(keys, \"inherits\") &&\n\t\t\t\tin_obj[\"inherits\"] &&\n\t\t\t\t!_.isObject(in_obj[\"inherits\"])\n\t\t\t) {\n\t\t\t\ttarget[\"inherits\"] = [in_obj[\"inherits\"]];\n\t\t\t}\n\t\t}\n\n\t\tif (!in_key_) {\n\t\t\t// If you don't give a path, then we return the original or copied object\n\t\t\treturn target;\n\t\t} else if (!copyDirectlyIntoKey) {\n\t\t\t// If you give a path, we use the path as a key.\n\t\t\tin_target_[in_key_] = target;\n\t\t}\n\n\t\treturn in_target_;\n\t}\n\n\t/**\n\t * Return the serialized parameters passed in the constructor\n\t * @return {object} Serialized parameters\n\t */\n\tserialize() {\n\t\treturn deepCopy(this._serializedParams);\n\t}\n\n\t/**\n\t * Return the serialized parameters passed in the constructor, in a template canonical form\n\t * @return {object} canonical serialized parameters\n\t */\n\tserializeCanonical() {\n\t\treturn PropertyTemplate.prototype._canonicalForm(this._serializedParams);\n\t}\n\n\t/**\n\t * Return the typeid of the template without the version number\n\t * i.e. autodesk.core:color instead of autodesk.core:color-1.0.0\n\t * @return {string} The typeid without the version is returned.\n\t * If the template is not versioned, the typeid is return.\n\t */\n\tgetTypeidWithoutVersion() {\n\t\tif (this._isVersioned()) {\n\t\t\tvar splitTypeId = TypeIdHelper.extractVersion(this.typeid);\n\t\t\treturn splitTypeId.typeidWithoutVersion;\n\t\t} else {\n\t\t\treturn this.typeid;\n\t\t}\n\t}\n\n\t/**\n\t * Determines if the argument is a template structure\n\t *\n\t * @param {object} in_param - Parameter to assess\n\t *\n\t * @return {Boolean} true if in_param is a template\n\t */\n\tstatic isTemplate(in_param) {\n\t\tif (in_param.typeid && in_param.typeid.indexOf(\":\") !== -1) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * Extracts typeids directly referred to in a template\n\t *\n\t * @param {object} template - Structure from which to extract dependencies\n\t *\n\t * @return {Array} List of typeids this template refers directly to\n\t */\n\tstatic extractDependencies(template) {\n\t\tvar dependencies = {};\n\n\t\tif (template.inherits) {\n\t\t\tvar inherits =\n\t\t\t\ttypeof template.inherits === \"string\" ? [template.inherits] : template.inherits;\n\t\t\tfor (var i = 0; i < inherits.length; i++) {\n\t\t\t\tvar elem = TypeIdHelper.extractTypeId(inherits[i]);\n\t\t\t\tdependencies[elem] = true;\n\t\t\t}\n\t\t}\n\n\t\tif (template.properties) {\n\t\t\tvar properties = template.properties;\n\t\t\tfor (var i = 0; i < properties.length; i++) {\n\t\t\t\tvar property = properties[i];\n\t\t\t\tif (PropertyTemplate.isTemplate(property)) {\n\t\t\t\t\tvar typeid = TypeIdHelper.extractTypeId(property.typeid);\n\t\t\t\t\tdependencies[typeid] = true;\n\n\t\t\t\t\tif (property.typedValue) {\n\t\t\t\t\t\tfor (var t = 0; t < property.typedValue.length; t++) {\n\t\t\t\t\t\t\tvar typedValue = property.typedValue[t];\n\t\t\t\t\t\t\tdependencies[typedValue.typeid] = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (property.properties) {\n\t\t\t\t\tvar deps = PropertyTemplate.extractDependencies(property);\n\t\t\t\t\tfor (var j = 0; j < deps.length; j++) {\n\t\t\t\t\t\tvar typeid = TypeIdHelper.extractTypeId(deps[j]);\n\t\t\t\t\t\tdependencies[typeid] = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (template.constants) {\n\t\t\tvar constants = template.constants;\n\t\t\tfor (var i = 0; i < constants.length; i++) {\n\t\t\t\tvar constant = constants[i];\n\t\t\t\tif (PropertyTemplate.isTemplate(constant)) {\n\t\t\t\t\tvar typeid = TypeIdHelper.extractTypeId(constant.typeid);\n\t\t\t\t\tdependencies[typeid] = true;\n\t\t\t\t} else if (\n\t\t\t\t\tconstant.context === \"map\" &&\n\t\t\t\t\tconstant.contextKeyType === \"typeid\" &&\n\t\t\t\t\tconstant.value\n\t\t\t\t) {\n\t\t\t\t\tvar keys = Object.keys(constant.value);\n\t\t\t\t\tfor (var k = 0; k < keys.length; k++) {\n\t\t\t\t\t\tvar typeid = TypeIdHelper.extractTypeId(keys[k]);\n\t\t\t\t\t\tdependencies[typeid] = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Search for typeid hidden in typedValue\n\t\t\t\t// the context could be inherited and therefore missing, so we have to try them all.\n\t\t\t\tif (constant.typedValue) {\n\t\t\t\t\t// for arrays\n\t\t\t\t\tif (_.isArray(constant.typedValue)) {\n\t\t\t\t\t\tfor (var t = 0; t < constant.typedValue.length; t++) {\n\t\t\t\t\t\t\tvar typedValue = constant.typedValue[t];\n\t\t\t\t\t\t\tdependencies[typedValue.typeid] = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// for singles\n\t\t\t\t\t} else if (constant.typedValue.typeid) {\n\t\t\t\t\t\tdependencies[constant.typedValue.typeid] = true;\n\t\t\t\t\t\t// for maps\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar keys = Object.keys(constant.typedValue);\n\t\t\t\t\t\tfor (var k = 0; k < keys.length; k++) {\n\t\t\t\t\t\t\tvar typeid = constant.typedValue[keys[k]].typeid;\n\t\t\t\t\t\t\tif (typeid) {\n\t\t\t\t\t\t\t\tdependencies[typeid] = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn Object.keys(dependencies);\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrayProperty.d.ts","sourceRoot":"","sources":["../../src/properties/arrayProperty.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"arrayProperty.d.ts","sourceRoot":"","sources":["../../src/properties/arrayProperty.js"],"names":[],"mappings":"AAqJA;;GAEG;AACH;IACC;;;;;;OAMG;IACH,wBAaC;IARA,YAAuB;IAItB,eAAsB;IA0DxB;;;;;;;;;OASG;IACH,oBAPW,MAAM,uBAShB;IAaD;;;;;;;OAOG;IACH,sBAFY,MAAM,CASjB;IAED;;OAEG;IACH,gCAEC;IAED;;;;;;;;;OASG;IACH,yBAFY,MAAM,CASjB;IAED;;;;;;;;;OASG;IACH,oBANW,MAAM,YAUhB;IAED;;;;OAIG;IACH,gBAUC;IAED;;;OAGG;IACH,SAFY,cAAU,CAYrB;IAED;;OAEG;IACH,eAEC;IAED;;;;;;;OAOG;IACH,iBALW,MAAM,uBAUhB;IAED;;;;;;;;;;;;OAYG;IACH,yCAPW,QAAQ,MAAM,YACd,OAAO,cACP,OAAO,QA0CjB;IAED;;;;OAIG;IACH,8BAFW,QAAQ,MAAM,QAsCxB;IAED;;;;;;;;;OASG;IACH,qBAHW,QAAQ,MAAM,QAYxB;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;OAIG;IACH,qBAHY,MAAM,CA0BjB;IAcD;;;OAGG;IACH,0CAcC;IAXA,kCAAsD;IAavD;;;OAGG;IACH,8BAEC;IAED;;;OAGG;IACH,6BAEC;IAED;;;;;OAKG;IACH,0CAEC;IAED;;;;OAIG;IACH,0DAEC;IAED;;;OAGG;IACH,mCAFW,QAAQ,MAAM,QAIxB;IAED;;;;OAIG;IACH,qDAFW,QAAQ,MAAM,QAIxB;IAED;;;;OAIG;IACH,oEAEC;IAED;;;;OAIG;IACH,kDAFW,QAAQ,MAAM,QAIxB;IAqBD,wBAEC;IARD;;OAEG;IACH,qBAEC;CAID"}
|
|
@@ -8,14 +8,13 @@
|
|
|
8
8
|
const { ArrayChangeSetIterator, ChangeSet, PathHelper, TypeIdHelper, } = require("@fluid-experimental/property-changeset");
|
|
9
9
|
const { MSG } = require("@fluid-experimental/property-common").constants;
|
|
10
10
|
const { UniversalDataArray, ConsoleUtils } = require("@fluid-experimental/property-common");
|
|
11
|
-
const fastestJSONCopy = require("fastest-json-copy");
|
|
12
11
|
const _ = require("lodash");
|
|
12
|
+
const { cloneDeep: deepCopy } = _;
|
|
13
13
|
const { deserializeNonPrimitiveArrayElements } = require("../containerSerializer");
|
|
14
14
|
const { validationsEnabled } = require("../enableValidations");
|
|
15
15
|
const { AbstractStaticCollectionProperty } = require("./abstractStaticCollectionProperty");
|
|
16
16
|
const { BaseProperty } = require("./baseProperty");
|
|
17
17
|
const { LazyLoadedProperties: Property } = require("./lazyLoadedProperties");
|
|
18
|
-
const deepCopy = fastestJSONCopy.copy;
|
|
19
18
|
var MODIFIED_STATE_FLAGS = BaseProperty.MODIFIED_STATE_FLAGS;
|
|
20
19
|
// Some global constant objects that are used to indicate a few special
|
|
21
20
|
// cases for the dirty object. If there are no entries in the pending and
|