@api-components/api-type-document
Advanced tools
Comparing version 4.2.7 to 4.2.8
{ | ||
"name": "@api-components/api-type-document", | ||
"description": "A documentation table for type (resource) properties. Works with AMF data model", | ||
"version": "4.2.7", | ||
"version": "4.2.8", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -61,3 +61,4 @@ [![Published on NPM](https://img.shields.io/npm/v/@api-components/api-type-document.svg)](https://www.npmjs.com/package/@api-components/api-type-document) | ||
### Installation | ||
``` | ||
```sh | ||
npm install --save @api-components/api-type-document | ||
@@ -112,4 +113,5 @@ ``` | ||
### Running the tests | ||
```sh | ||
npm test | ||
``` |
@@ -655,3 +655,3 @@ import { LitElement, html } from 'lit-element'; | ||
></property-shape-document>` | ||
: ''} | ||
: html`<span>Array of:</span>`} | ||
@@ -658,0 +658,0 @@ <div class="array-children"> |
@@ -422,3 +422,3 @@ /** | ||
if (this._hasType(list, this.ns.aml.vocabularies.shapes.ScalarShape)) { | ||
return this._computeRangeDataType(list); | ||
return `Array of ${this._computeRangeDataType(list)}`; | ||
} | ||
@@ -425,0 +425,0 @@ return this._computeDisplayName(list, list); |
@@ -184,2 +184,3 @@ import { LitElement, html } from 'lit-element'; | ||
typed = typed.replace(this.ns.w3.xmlSchema.key, ''); | ||
typed = typed.replace(this.ns.aml.vocabularies.shapes.toString(), ''); | ||
const stLetter = typed[0].toUpperCase(); | ||
@@ -299,2 +300,5 @@ return `${stLetter}${typed.substr(1)}`; | ||
)); | ||
if (name === undefined) { | ||
return undefined | ||
} | ||
if (name && name.indexOf('amf_inline_type') === 0) { | ||
@@ -301,0 +305,0 @@ return undefined; |
@@ -29,3 +29,3 @@ import { css } from 'lit-element'; | ||
.attribute-label { | ||
font-weight: 500; | ||
font-weight: var(--api-type-document-property-range-attribute-label-font-weight, 500); | ||
margin-right: 12px; | ||
@@ -32,0 +32,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
136111
4062
116