@api-components/api-type-document
Advanced tools
Comparing version 4.2.18 to 4.2.19
{ | ||
"name": "@api-components/api-type-document", | ||
"description": "A documentation table for type (resource) properties. Works with AMF data model", | ||
"version": "4.2.18", | ||
"version": "4.2.19", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -306,2 +306,21 @@ import { LitElement, html } from 'lit-element'; | ||
_arrayPropertiesTemplate() { | ||
const { range } = this; | ||
return html` ${this._hasProperty(range, this.ns.w3.shacl.minCount) | ||
? this._listItemTemplate( | ||
'Minimum array length', | ||
'Minimum amount of items in array', | ||
this.ns.w3.shacl.minCount | ||
) | ||
: ''} | ||
${this._hasProperty(range, this.ns.w3.shacl.maxCount) | ||
? this._listItemTemplate( | ||
'Maximum array length', | ||
'Maximum amount of items in array', | ||
this.ns.w3.shacl.maxCount | ||
) | ||
: ''}`; | ||
} | ||
/** | ||
@@ -359,2 +378,3 @@ * @return {TemplateResult|string} Template for the element. | ||
${this.isEnum ? this._enumTemplate() : ''} | ||
${this.isArray ? this._arrayPropertiesTemplate() : ''} | ||
@@ -361,0 +381,0 @@ <section class="examples" ?hidden="${!this._hasExamples}"> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
142348
4260