@pb33f/cowboy-components 0.1.13 → 0.1.14
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.
|
@@ -39,7 +39,7 @@ let PercentBar = class PercentBar extends LitElement {
|
|
|
39
39
|
}
|
|
40
40
|
return html `
|
|
41
41
|
<div class="bar">
|
|
42
|
-
<svg xmlns="http://www.w3.org/2000/svg" style="height: ${this.height}" class="${clazz}">
|
|
42
|
+
<svg xmlns="http://www.w3.org/2000/svg" style="height: ${this.height}px" class="${clazz}">
|
|
43
43
|
${nodes.map((node) => {
|
|
44
44
|
count++;
|
|
45
45
|
let width = 1.5;
|
|
@@ -54,12 +54,12 @@ let ProblemOverviewGroup = class ProblemOverviewGroup extends LitElement {
|
|
|
54
54
|
if (this.rank == 1) {
|
|
55
55
|
clazz = "error";
|
|
56
56
|
pc = html `
|
|
57
|
-
<pb33f-percent-bar value="${this.violationPercent}"
|
|
57
|
+
<pb33f-percent-bar value="${this.violationPercent}"></pb33f-percent-bar>`;
|
|
58
58
|
}
|
|
59
59
|
if (this.rank == 2) {
|
|
60
60
|
clazz = "warn";
|
|
61
61
|
pc = html `
|
|
62
|
-
<pb33f-percent-bar value="${this.violationPercent}"
|
|
62
|
+
<pb33f-percent-bar value="${this.violationPercent}"></pb33f-percent-bar>`;
|
|
63
63
|
}
|
|
64
64
|
if (!this.groupName || this.groupName === '') {
|
|
65
65
|
this.groupName = 'invalid OpenAPI specification';
|
|
@@ -3132,7 +3132,7 @@ Please report this to https://github.com/markedjs/marked.`,e){const t="<p>An err
|
|
|
3132
3132
|
|
|
3133
3133
|
`;var Qn=Object.defineProperty,fn=Object.getOwnPropertyDescriptor,Me=(r,e,o,A)=>{for(var t=A>1?void 0:A?fn(e,o):e,n=r.length-1,i;n>=0;n--)(i=r[n])&&(t=(A?i(e,o,t):i(t))||t);return A&&t&&Qn(e,o,t),t};let K=class extends a.LitElement{constructor(){super(),this.value=0,this.height=20}render(){let r=[];for(let n=0;n<this.value/2;n++)r.push((n+.2)*2);let e=0,o="",A="var(--primary-color)";this.warning&&(A="var(--warn-color)",o="warning"),this.error&&(A="var(--error-color)",o="error"),this.success&&(A="var(--terminal-text)",o="success");let t=`${this.value}`;return this.value<1&&(t="<1"),a.html`
|
|
3134
3134
|
<div class="bar">
|
|
3135
|
-
<svg xmlns="http://www.w3.org/2000/svg" style="height: ${this.height}" class="${o}">
|
|
3135
|
+
<svg xmlns="http://www.w3.org/2000/svg" style="height: ${this.height}px" class="${o}">
|
|
3136
3136
|
${r.map(n=>{e++;let i=1.5;return e==50&&(i=1),a.svg`
|
|
3137
3137
|
<rect
|
|
3138
3138
|
width="${i}%"
|
|
@@ -3261,8 +3261,8 @@ Please report this to https://github.com/markedjs/marked.`,e){const t="<p>An err
|
|
|
3261
3261
|
|
|
3262
3262
|
`;var Mn=Object.defineProperty,Cn=Object.getOwnPropertyDescriptor,q=(r,e,o,A)=>{for(var t=A>1?void 0:A?Cn(e,o):e,n=r.length-1,i;n>=0;n--)(i=r[n])&&(t=(A?i(e,o,t):i(t))||t);return A&&t&&Mn(e,o,t),t};let U=class extends a.LitElement{constructor(){super()}viewRuleDocs(){this.dispatchEvent(new CustomEvent(Oe,{bubbles:!0,composed:!0,detail:{type:le.RULE_DOCS,rule:this.groupName}}))}selectRule(){this.dispatchEvent(new CustomEvent(_A,{bubbles:!0,composed:!0,detail:{rule:this.groupName}}))}selectLine(r){this.dispatchEvent(new CustomEvent(po,{bubbles:!0,composed:!0,detail:{problem:r,launchedFromProblems:!1}}))}render(){var A;const r=(A=this.problems)==null?void 0:A.slice(0,4);let e=a.html`
|
|
3263
3263
|
<pb33f-percent-bar value="${this.violationPercent}"></pb33f-percent-bar>`,o="";return this.rank==1&&(o="error",e=a.html`
|
|
3264
|
-
<pb33f-percent-bar value="${this.violationPercent}"
|
|
3265
|
-
<pb33f-percent-bar value="${this.violationPercent}"
|
|
3264
|
+
<pb33f-percent-bar value="${this.violationPercent}"></pb33f-percent-bar>`),this.rank==2&&(o="warn",e=a.html`
|
|
3265
|
+
<pb33f-percent-bar value="${this.violationPercent}"></pb33f-percent-bar>`),(!this.groupName||this.groupName==="")&&(this.groupName="invalid OpenAPI specification"),a.html`
|
|
3266
3266
|
<div class="problem-overview-group">
|
|
3267
3267
|
<div class="group-rank">
|
|
3268
3268
|
<span>${this.rank}</span>
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Princess Beef Heavy Industries Cowboy Components",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.14",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./dist/cowboy-components.umd.cjs",
|
|
9
9
|
"module": "./dist/cowboy-components.js",
|