@api-components/api-type-document
Advanced tools
Comparing version 4.2.14 to 4.2.15
{ | ||
"name": "@api-components/api-type-document", | ||
"description": "A documentation table for type (resource) properties. Works with AMF data model", | ||
"version": "4.2.14", | ||
"version": "4.2.15", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -183,3 +183,3 @@ import { LitElement, CSSResult, TemplateResult } from 'lit-element'; | ||
_computeRenderMainExample(noMainExample: boolean, hasExamples: boolean): boolean; | ||
_computeRenderMainExample(noMainExample: boolean, hasExamples: boolean, isScalar: boolean): boolean; | ||
@@ -186,0 +186,0 @@ /** |
@@ -292,5 +292,7 @@ import { LitElement, html } from 'lit-element'; | ||
this.requestUpdate('_hasExamples', old); | ||
const scalarType = this._hasType(this.type, this.ns.aml.vocabularies.shapes.ScalarShape); | ||
this._renderMainExample = this._computeRenderMainExample( | ||
this.noMainExample, | ||
value | ||
value, | ||
scalarType | ||
); | ||
@@ -341,4 +343,4 @@ } | ||
_computeRenderMainExample(noMainExample, hasExamples) { | ||
return !!(!noMainExample && hasExamples); | ||
_computeRenderMainExample(noMainExample, hasExamples, isScalar = false) { | ||
return isScalar ? false : !!(!noMainExample && hasExamples); | ||
} | ||
@@ -345,0 +347,0 @@ |
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
140500
4200