@pb33f/cowboy-components 0.1.12 → 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.
- package/dist/components/editor/editor.js +4 -4
- package/dist/components/footer/footer.js +1 -1
- package/dist/components/paginator/paginator-navigator.d.ts +2 -2
- package/dist/components/paginator/paginator-navigator.js +3 -3
- package/dist/components/percent-bar/percent-bar.js +2 -2
- package/dist/components/problem-list/problem-list.d.ts +1 -1
- package/dist/components/problem-list/problem-list.js +9 -9
- package/dist/components/problems-overview/problem-overview-group.js +2 -2
- package/dist/components/render-json-path/render-json-path.js +1 -1
- package/dist/components/the-doctor/feedback.js +1 -1
- package/dist/components/the-doctor/the-doctor.d.ts +1 -1
- package/dist/components/the-doctor/the-doctor.js +3 -3
- package/dist/cowboy-components.umd.cjs +4 -4
- package/dist/services/linting-service.d.ts +4 -4
- package/dist/services/linting-service.js +1 -1
- package/package.json +1 -1
|
@@ -12,13 +12,13 @@ import * as monaco from "monaco-editor";
|
|
|
12
12
|
// @ts-ignore
|
|
13
13
|
import styles from "monaco-editor/min/vs/editor/editor.main.css?inline";
|
|
14
14
|
// @ts-ignore
|
|
15
|
-
import editorWorker from "monaco-editor/esm/vs/editor/editor.worker?worker";
|
|
15
|
+
import editorWorker from "monaco-editor/esm/vs/editor/editor.worker.js?worker";
|
|
16
16
|
// @ts-ignore
|
|
17
|
-
import htmlWorker from "monaco-editor/esm/vs/language/html/html.worker?worker";
|
|
17
|
+
import htmlWorker from "monaco-editor/esm/vs/language/html/html.worker.js?worker";
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
import cssWorker from "monaco-editor/esm/vs/language/css/css.worker?worker";
|
|
19
|
+
import cssWorker from "monaco-editor/esm/vs/language/css/css.worker.js?worker";
|
|
20
20
|
// @ts-ignore
|
|
21
|
-
import jsonWorker from "monaco-editor/esm/vs/language/json/json.worker?worker";
|
|
21
|
+
import jsonWorker from "monaco-editor/esm/vs/language/json/json.worker.js?worker";
|
|
22
22
|
import { EditorClicked, EditorUpdated } from "../../events/doctor.js";
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
self.MonacoEnvironment = {
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { customElement, property } from "lit/decorators.js";
|
|
8
8
|
import { html, LitElement } from "lit";
|
|
9
9
|
import footerCss from "./footer.css.js";
|
|
10
|
-
import linksCss from "../../css/links.css";
|
|
10
|
+
import linksCss from "../../css/links.css.js";
|
|
11
11
|
let FooterComponent = class FooterComponent extends LitElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
import SlIconButton from "@shoelace-style/shoelace/dist/components/icon-button/icon-button.js";
|
|
3
1
|
import "@shoelace-style/shoelace/dist/components/format-number/format-number.js";
|
|
2
|
+
import SlIconButton from "@shoelace-style/shoelace/dist/components/icon-button/icon-button.js";
|
|
3
|
+
import { LitElement } from "lit";
|
|
4
4
|
export declare class PaginatorNavigation extends LitElement {
|
|
5
5
|
static styles: import("lit").CSSResult[];
|
|
6
6
|
currentPage: number;
|
|
@@ -4,11 +4,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
+
import "@shoelace-style/shoelace/dist/components/format-number/format-number.js";
|
|
7
8
|
import { customElement, property, query, state } from "lit/decorators.js";
|
|
8
9
|
import { html, LitElement } from "lit";
|
|
9
|
-
import paginatorNavigatorCss from "./paginator-navigator.css";
|
|
10
|
-
import { PaginatorFirstPage, PaginatorLastPage, PaginatorNextPage, PaginatorPreviousPage } from "
|
|
11
|
-
import "@shoelace-style/shoelace/dist/components/format-number/format-number.js";
|
|
10
|
+
import paginatorNavigatorCss from "./paginator-navigator.css.js";
|
|
11
|
+
import { PaginatorFirstPage, PaginatorLastPage, PaginatorNextPage, PaginatorPreviousPage } from "./paginator-events.js";
|
|
12
12
|
let PaginatorNavigation = class PaginatorNavigation extends LitElement {
|
|
13
13
|
constructor() {
|
|
14
14
|
super();
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { html, LitElement, svg } from "lit";
|
|
8
8
|
import { property, customElement } from "lit/decorators.js";
|
|
9
|
-
import percentBarCss from "./percent-bar.css";
|
|
9
|
+
import percentBarCss from "./percent-bar.css.js";
|
|
10
10
|
let PercentBar = class PercentBar extends LitElement {
|
|
11
11
|
constructor() {
|
|
12
12
|
super();
|
|
@@ -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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import { ProblemItem } from "./problem-item.js";
|
|
3
3
|
import { MainViewSlideChangedEvent, ProblemClickedEvent, ProblemRuleFilterChangedEvent } from "../../events/doctor";
|
|
4
|
-
import { Problem } from "../../model/problem";
|
|
4
|
+
import { Problem } from "../../model/problem.js";
|
|
5
5
|
export declare class ProblemList extends LitElement {
|
|
6
6
|
static styles: import("lit").CSSResult[];
|
|
7
7
|
private searchWorker;
|
|
@@ -9,15 +9,15 @@ import { html, LitElement } from "lit";
|
|
|
9
9
|
import { ProblemItem } from "./problem-item.js";
|
|
10
10
|
import { ProblemMainView } from "./problem-mainview.js";
|
|
11
11
|
import { MainViewSlideChanged, ProblemClicked, ProblemLabelViewFilterChanged, ProblemSortFilterChanged, ProblemSearchFilterChanged, MessageEvent, ProblemRuleFilterChanged, ProblemRuleFilterChangedManual } from "../../events/doctor";
|
|
12
|
-
import problemListCss from "./problem-list.css";
|
|
13
|
-
import sharedCss from "../../css/shared.css";
|
|
14
|
-
import { Problem } from "../../model/problem";
|
|
15
|
-
import { ProblemToolbar } from "./problem-toolbar";
|
|
16
|
-
import { ProblemLabelView } from "./problem-label-view-filter";
|
|
17
|
-
import { Paginator } from "../paginator/paginator";
|
|
18
|
-
import { ProblemSortView } from "./problem-sort-filter";
|
|
19
|
-
import { Rules } from "./problem-rule-filter";
|
|
20
|
-
import SearchWorker from "../../workers/search-problems.worker?worker";
|
|
12
|
+
import problemListCss from "./problem-list.css.js";
|
|
13
|
+
import sharedCss from "../../css/shared.css.js";
|
|
14
|
+
import { Problem } from "../../model/problem.js";
|
|
15
|
+
import { ProblemToolbar } from "./problem-toolbar.js";
|
|
16
|
+
import { ProblemLabelView } from "./problem-label-view-filter.js";
|
|
17
|
+
import { Paginator } from "../paginator/paginator.js";
|
|
18
|
+
import { ProblemSortView } from "./problem-sort-filter.js";
|
|
19
|
+
import { Rules } from "./problem-rule-filter.js";
|
|
20
|
+
import SearchWorker from "../../workers/search-problems.worker.js?worker";
|
|
21
21
|
let ProblemList = class ProblemList extends LitElement {
|
|
22
22
|
constructor() {
|
|
23
23
|
super();
|
|
@@ -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';
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { LitElement, html } from 'lit';
|
|
8
8
|
import { customElement, property } from 'lit/decorators.js';
|
|
9
9
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
10
|
-
import renderJsonPathCss from "./render-json-path.css";
|
|
10
|
+
import renderJsonPathCss from "./render-json-path.css.js";
|
|
11
11
|
const bracketRegex = /(\{)([\w.-_$:]+)(})|(:)([\w.-_$:]+)/g;
|
|
12
12
|
const pathRegex = /(\[)(["']?)([\w${}:./\\]+)(['"]?)(])/g;
|
|
13
13
|
let RenderJSONPathComponent = class RenderJSONPathComponent extends LitElement {
|
|
@@ -54,7 +54,7 @@ let FeedbackComponent = class FeedbackComponent extends LitElement {
|
|
|
54
54
|
<hr/>
|
|
55
55
|
<sl-input label="Email (optional)" placeholder="your@email.com"></sl-input>
|
|
56
56
|
<sl-textarea placeholder="What do you like? What do you hate? What would make the doctor better?"
|
|
57
|
-
size="small" @sl-input="${this.toggleButton}">
|
|
57
|
+
size="small" @sl-input="${this.toggleButton}" maxlength="1800">
|
|
58
58
|
</sl-textarea>
|
|
59
59
|
<sl-button @click="${this.send}" disabled>Send Feedback</sl-button>
|
|
60
60
|
${mailinglist}
|
|
@@ -9,7 +9,7 @@ import { LitElement } from "lit";
|
|
|
9
9
|
import { EditorUpdatedEvent, ProblemRuleFilterChangedEvent } from "../../events/doctor.js";
|
|
10
10
|
import { ProblemDrawerEvent } from "../problem-list/details-drawer.js";
|
|
11
11
|
import { SlSwitch, SlTab, SlTabGroup } from "@shoelace-style/shoelace";
|
|
12
|
-
import { AttentionBox } from "../attention-box/attention-box";
|
|
12
|
+
import { AttentionBox } from "../attention-box/attention-box.js";
|
|
13
13
|
export declare const DoctorDocumentBag = "pb33f-doctor-editor";
|
|
14
14
|
export declare const HowToFixBag = "pb33f-doctor-howtofix";
|
|
15
15
|
export declare const RuleDocumentationBag = "pb33f-doctor-ruledocs";
|
|
@@ -24,11 +24,11 @@ import { ProblemsOverview } from "../problems-overview/problems-overview.js";
|
|
|
24
24
|
import { ErrorBanner } from "../error-banner/error-banner.js";
|
|
25
25
|
import { StatusBar } from "./status-bar.js";
|
|
26
26
|
import { FeedbackComponent } from "./feedback.js";
|
|
27
|
-
import { FeedbackService } from "../../services/feedback-service";
|
|
28
|
-
import { ActivitySpinner } from "./activity-spinner";
|
|
27
|
+
import { FeedbackService } from "../../services/feedback-service.js";
|
|
28
|
+
import { ActivitySpinner } from "./activity-spinner.js";
|
|
29
29
|
import RuleDocumentationWorker from "../../workers/rule-documentation.worker.js?worker";
|
|
30
30
|
import theDoctorCss from "./the-doctor.css.js";
|
|
31
|
-
import linksCss from "../../css/links.css";
|
|
31
|
+
import linksCss from "../../css/links.css.js";
|
|
32
32
|
export const DoctorDocumentBag = "pb33f-doctor-editor";
|
|
33
33
|
export const HowToFixBag = "pb33f-doctor-howtofix";
|
|
34
34
|
export const RuleDocumentationBag = "pb33f-doctor-ruledocs";
|
|
@@ -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>
|
|
@@ -3488,7 +3488,7 @@ Please report this to https://github.com/markedjs/marked.`,e){const t="<p>An err
|
|
|
3488
3488
|
<hr/>
|
|
3489
3489
|
<sl-input label="Email (optional)" placeholder="your@email.com"></sl-input>
|
|
3490
3490
|
<sl-textarea placeholder="What do you like? What do you hate? What would make the doctor better?"
|
|
3491
|
-
size="small" @sl-input="${this.toggleButton}">
|
|
3491
|
+
size="small" @sl-input="${this.toggleButton}" maxlength="1800">
|
|
3492
3492
|
</sl-textarea>
|
|
3493
3493
|
<sl-button @click="${this.send}" disabled>Send Feedback</sl-button>
|
|
3494
3494
|
${r}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Problem } from "../model/problem";
|
|
2
|
-
import { HowToFix } from "../model/how_to_fix";
|
|
3
|
-
import { DrDiagnostics } from "../model/document-statistics";
|
|
4
|
-
import { Session } from "../model/session";
|
|
1
|
+
import { Problem } from "../model/problem.js";
|
|
2
|
+
import { HowToFix } from "../model/how_to_fix.js";
|
|
3
|
+
import { DrDiagnostics } from "../model/document-statistics.js";
|
|
4
|
+
import { Session } from "../model/session.js";
|
|
5
5
|
export declare class LintingService {
|
|
6
6
|
static doctorEndpoint: string;
|
|
7
7
|
static compareProblems(a: Problem, b: Problem): number;
|
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",
|