@pb33f/cowboy-components 0.6.7 → 0.7.0
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/assets/equalizer.worker-DyLD5JTU.js +1 -0
- package/dist/assets/search-problems.worker-BAF8L2rX.js +1 -0
- package/dist/components/changelog/changelog.js +1 -1
- package/dist/components/charts/beefy-chart.d.ts +21 -0
- package/dist/components/charts/beefy-chart.js +159 -0
- package/dist/components/charts/chart-colors.d.ts +27 -0
- package/dist/components/charts/chart-colors.js +76 -0
- package/dist/components/charts/config.d.ts +15 -0
- package/dist/components/charts/config.js +35 -0
- package/dist/components/charts/doughnut-chart.d.ts +22 -0
- package/dist/components/charts/doughnut-chart.js +128 -0
- package/dist/components/editor/editor.d.ts +9 -3
- package/dist/components/editor/editor.js +115 -60
- package/dist/components/editor/init.d.ts +0 -0
- package/dist/components/editor/init.js +28 -0
- package/dist/components/editor/schemas/openapi3.json +1651 -0
- package/dist/components/editor/schemas/openapi31.json +1449 -0
- package/dist/components/model-icon/model-icon.js +3 -0
- package/dist/components/model-renderer/callback.js +2 -1
- package/dist/components/model-renderer/change.css.d.ts +2 -0
- package/dist/components/model-renderer/change.css.js +254 -0
- package/dist/components/model-renderer/changes.d.ts +19 -0
- package/dist/components/model-renderer/changes.js +306 -0
- package/dist/components/model-renderer/clickable-ref.d.ts +10 -6
- package/dist/components/model-renderer/clickable-ref.js +9 -0
- package/dist/components/model-renderer/components.js +1 -0
- package/dist/components/model-renderer/contact.js +2 -1
- package/dist/components/model-renderer/document.js +11 -9
- package/dist/components/model-renderer/encoding.js +1 -0
- package/dist/components/model-renderer/example.js +1 -0
- package/dist/components/model-renderer/external-docs.js +1 -0
- package/dist/components/model-renderer/has-changes.d.ts +8 -0
- package/dist/components/model-renderer/has-changes.js +50 -0
- package/dist/components/model-renderer/header.js +1 -0
- package/dist/components/model-renderer/info.js +3 -1
- package/dist/components/model-renderer/license.js +3 -3
- package/dist/components/model-renderer/link.js +1 -1
- package/dist/components/model-renderer/media-type.js +1 -1
- package/dist/components/model-renderer/oauth-flows.js +2 -1
- package/dist/components/model-renderer/operation.js +2 -1
- package/dist/components/model-renderer/parameter.js +1 -0
- package/dist/components/model-renderer/path-item.js +1 -0
- package/dist/components/model-renderer/paths.js +1 -0
- package/dist/components/model-renderer/rendered-node.js +20 -20
- package/dist/components/model-renderer/rendered-property.css.js +4 -0
- package/dist/components/model-renderer/rendered-property.js +5 -2
- package/dist/components/model-renderer/request-body.js +1 -1
- package/dist/components/model-renderer/response.js +1 -1
- package/dist/components/model-renderer/schema.js +57 -54
- package/dist/components/model-renderer/security-scheme.js +1 -1
- package/dist/components/model-renderer/server.js +1 -0
- package/dist/components/model-renderer/tag.js +3 -1
- package/dist/components/model-tree/tree.d.ts +7 -4
- package/dist/components/model-tree/tree.js +54 -25
- package/dist/components/paginator/paginator.css.js +5 -2
- package/dist/components/problem-list/problem-mainview.js +8 -1
- package/dist/components/rodeo/npm/download-statistic.d.ts +41 -0
- package/dist/components/rodeo/npm/download-statistic.js +634 -0
- package/dist/components/rodeo/rodeo-nav.js +1 -0
- package/dist/components/rodeo/rodeo.d.ts +1 -0
- package/dist/components/rodeo/rodeo.js +9 -2
- package/dist/components/rodeo/statistic.css.js +17 -0
- package/dist/components/rodeo/statistic.d.ts +4 -2
- package/dist/components/rodeo/statistic.js +15 -4
- package/dist/components/the-doctor/settings.css.d.ts +2 -0
- package/dist/components/the-doctor/settings.css.js +28 -0
- package/dist/components/the-doctor/settings.d.ts +13 -0
- package/dist/components/the-doctor/settings.js +83 -2
- package/dist/components/the-doctor/the-doctor.css.js +80 -47
- package/dist/components/the-doctor/the-doctor.d.ts +24 -6
- package/dist/components/the-doctor/the-doctor.js +344 -109
- package/dist/components/the-doctor/upload-archive.js +1 -1
- package/dist/components/theme-switcher/theme-switcher.d.ts +1 -1
- package/dist/components/theme-switcher/theme-switcher.js +5 -2
- package/dist/components/time-vortex/change-list-item.css.d.ts +2 -0
- package/dist/components/time-vortex/change-list-item.css.js +96 -0
- package/dist/components/time-vortex/change-list-item.d.ts +10 -0
- package/dist/components/time-vortex/change-list-item.js +58 -0
- package/dist/components/time-vortex/history-picker.css.d.ts +2 -0
- package/dist/components/time-vortex/history-picker.css.js +90 -0
- package/dist/components/time-vortex/history-picker.d.ts +18 -0
- package/dist/components/time-vortex/history-picker.js +143 -0
- package/dist/components/time-vortex/spec-summary-timeline-item.css.d.ts +2 -0
- package/dist/components/time-vortex/spec-summary-timeline-item.css.js +144 -0
- package/dist/components/time-vortex/spec-summary-timeline-item.d.ts +11 -0
- package/dist/components/time-vortex/spec-summary-timeline-item.js +153 -0
- package/dist/components/time-vortex/tardis-control.css.d.ts +2 -0
- package/dist/components/time-vortex/tardis-control.css.js +103 -0
- package/dist/components/time-vortex/tardis-control.d.ts +32 -0
- package/dist/components/time-vortex/tardis-control.js +286 -0
- package/dist/components/time-vortex/time-vortex.d.ts +17 -0
- package/dist/components/time-vortex/time-vortex.js +75 -0
- package/dist/components/time-vortex/timeline-view.css.d.ts +2 -0
- package/dist/components/time-vortex/timeline-view.css.js +28 -0
- package/dist/components/time-vortex/timeline-view.d.ts +32 -0
- package/dist/components/time-vortex/timeline-view.js +233 -0
- package/dist/components/timeline/timeline-item.css.js +95 -48
- package/dist/components/timeline/timeline-item.d.ts +1 -0
- package/dist/components/timeline/timeline-item.js +20 -1
- package/dist/components/timeline/timeline.css.js +46 -40
- package/dist/components/timeline/timeline.d.ts +1 -0
- package/dist/components/timeline/timeline.js +9 -5
- package/dist/components/toast/toast-component.css.js +4 -0
- package/dist/components/visualizer/equalizer.d.ts +2 -0
- package/dist/components/visualizer/equalizer.js +13 -5
- package/dist/components/visualizer/explorer.d.ts +5 -0
- package/dist/components/visualizer/explorer.js +41 -37
- package/dist/components/visualizer/foreign-object.js +3 -0
- package/dist/components/visualizer/nodes/callback.js +3 -1
- package/dist/components/visualizer/nodes/changes.css.d.ts +2 -0
- package/dist/components/visualizer/nodes/changes.css.js +33 -0
- package/dist/components/visualizer/nodes/components.js +3 -1
- package/dist/components/visualizer/nodes/contact.js +3 -1
- package/dist/components/visualizer/nodes/document.js +1 -0
- package/dist/components/visualizer/nodes/graph-node.d.ts +8 -7
- package/dist/components/visualizer/nodes/graph-node.js +55 -1
- package/dist/components/visualizer/nodes/header.js +3 -1
- package/dist/components/visualizer/nodes/info.js +3 -1
- package/dist/components/visualizer/nodes/license.js +8 -1
- package/dist/components/visualizer/nodes/link.js +3 -1
- package/dist/components/visualizer/nodes/media-type.js +3 -1
- package/dist/components/visualizer/nodes/operation.js +4 -1
- package/dist/components/visualizer/nodes/parameter.js +3 -1
- package/dist/components/visualizer/nodes/path-item.js +3 -1
- package/dist/components/visualizer/nodes/request-body.js +3 -1
- package/dist/components/visualizer/nodes/response.js +3 -1
- package/dist/components/visualizer/nodes/schema.js +3 -1
- package/dist/components/visualizer/nodes/security-scheme.js +3 -1
- package/dist/components/visualizer/nodes/server.js +3 -1
- package/dist/components/visualizer/nodes/tag.js +3 -1
- package/dist/components/visualizer/nodes/xml.js +3 -1
- package/dist/components/visualizer/orientation-controls.d.ts +1 -0
- package/dist/components/visualizer/orientation-controls.js +31 -16
- package/dist/components/visualizer/search.js +4 -3
- package/dist/components/warning-stripe/warning-stripe.d.ts +20 -0
- package/dist/components/warning-stripe/warning-stripe.js +124 -0
- package/dist/cowboy-components.umd.cjs +3840 -2216
- package/dist/css/panels.css.d.ts +2 -0
- package/dist/css/panels.css.js +44 -0
- package/dist/css/pb33f-theme.css +8 -1
- package/dist/css/scrollbar.css.d.ts +2 -0
- package/dist/css/scrollbar.css.js +16 -0
- package/dist/css/tabs.css.js +1 -1
- package/dist/events/doctor.d.ts +15 -1
- package/dist/events/doctor.js +5 -0
- package/dist/model/api-response.d.ts +6 -0
- package/dist/model/api-response.js +2 -0
- package/dist/model/chart-data.d.ts +15 -0
- package/dist/model/chart-data.js +1 -0
- package/dist/model/diagnostic-report.d.ts +5 -0
- package/dist/model/diagnostic-report.js +3 -0
- package/dist/model/document.d.ts +1 -0
- package/dist/model/graph.d.ts +26 -0
- package/dist/model/media-type.d.ts +2 -0
- package/dist/model/media-type.js +7 -0
- package/dist/model/node_type.d.ts +2 -0
- package/dist/model/node_type.js +2 -0
- package/dist/model/settings.d.ts +5 -0
- package/dist/model/settings.js +1 -0
- package/dist/model/timeline.d.ts +33 -0
- package/dist/model/timeline.js +1 -0
- package/dist/monacoeditorwork/css.worker.bundle.js +53460 -0
- package/dist/monacoeditorwork/editor.worker.bundle.js +13517 -0
- package/dist/monacoeditorwork/html.worker.bundle.js +29660 -0
- package/dist/monacoeditorwork/json.worker.bundle.js +21318 -0
- package/dist/monacoeditorwork/yaml.worker..bundle.js +37321 -0
- package/dist/services/color-service.d.ts +1 -0
- package/dist/services/color-service.js +13 -0
- package/dist/services/linting-service.d.ts +1 -3
- package/dist/services/linting-service.js +21 -29
- package/dist/services/model-service.d.ts +1 -1
- package/dist/services/model-service.js +35 -8
- package/dist/services/rodeo-service.d.ts +6 -0
- package/dist/services/rodeo-service.js +134 -0
- package/dist/services/timeline-service.d.ts +8 -0
- package/dist/services/timeline-service.js +85 -0
- package/dist/style.css +1 -1
- package/dist/workers/equalizer.worker.js +1 -1
- package/dist/workers/search-problems.worker.js +1 -1
- package/package.json +6 -1
- package/dist/assets/css.worker-Byh--afc.js +0 -84
- package/dist/assets/editor.worker-CYC0jP-p.js +0 -12
- package/dist/assets/equalizer.worker-CdIiiqfH.js +0 -1
- package/dist/assets/html.worker-DArWg-Dy.js +0 -461
- package/dist/assets/json.worker-heCfXoJw.js +0 -49
- package/dist/assets/search-problems.worker-VJi4P9Gj.js +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export default css `
|
|
3
|
+
.stats-container {
|
|
4
|
+
display: flex;
|
|
5
|
+
padding: 10px 10px 10px 20px;
|
|
6
|
+
height: 370px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.changes-chart {
|
|
10
|
+
border-bottom: 1px dashed var(--secondary-color);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
sl-details::part(base) {
|
|
14
|
+
font-size: 1rem;
|
|
15
|
+
border-radius: 0;
|
|
16
|
+
background-color: var(--background-color);
|
|
17
|
+
padding: 0 0 0 10px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
sl-details::part(header) {
|
|
21
|
+
font-size: 0.9rem;
|
|
22
|
+
padding-top: 10px;
|
|
23
|
+
padding-bottom: 13px;
|
|
24
|
+
padding-left: 0;
|
|
25
|
+
font-family: var(--font-stack-bold), monospace;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
`;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Colorful } from "../charts/chart-colors.js";
|
|
2
|
+
import { TemplateResult } from "lit";
|
|
3
|
+
import { LineDataSet } from "../charts/config.js";
|
|
4
|
+
import { BeefyChart } from "../charts/beefy-chart";
|
|
5
|
+
import { Statistic } from "../rodeo/statistic.js";
|
|
6
|
+
import '../rodeo/statistic.js';
|
|
7
|
+
export declare class TimelineView extends Colorful {
|
|
8
|
+
static styles: import("lit").CSSResult[];
|
|
9
|
+
title: string;
|
|
10
|
+
changeDatasets: LineDataSet[];
|
|
11
|
+
violationDatasets: LineDataSet[];
|
|
12
|
+
qualityDatasets: LineDataSet[];
|
|
13
|
+
changeLabels: string[];
|
|
14
|
+
violationLabels: string[];
|
|
15
|
+
qualityLabels: string[];
|
|
16
|
+
charts: BeefyChart[];
|
|
17
|
+
constructor();
|
|
18
|
+
stats: Statistic[];
|
|
19
|
+
totalAdditions: number;
|
|
20
|
+
totalRemovals: number;
|
|
21
|
+
totalModifications: number;
|
|
22
|
+
totalBreakingChanges: number;
|
|
23
|
+
totalErrors: number;
|
|
24
|
+
totalWarnings: number;
|
|
25
|
+
totalInforms: number;
|
|
26
|
+
skipTimeline: boolean;
|
|
27
|
+
updated(): void;
|
|
28
|
+
firstUpdated(): Promise<void>;
|
|
29
|
+
renderChangeStatistics(): TemplateResult[];
|
|
30
|
+
renderViolationStatistics(): TemplateResult[];
|
|
31
|
+
render(): TemplateResult<1>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { customElement, property, queryAll } from "lit/decorators.js";
|
|
8
|
+
import { Colorful } from "../charts/chart-colors.js";
|
|
9
|
+
import { html } from "lit";
|
|
10
|
+
import timelineViewCss from "./timeline-view.css.js";
|
|
11
|
+
import '../rodeo/statistic.js';
|
|
12
|
+
let TimelineView = class TimelineView extends Colorful {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this.title = 'chart';
|
|
16
|
+
this.totalModifications = 0;
|
|
17
|
+
this.totalAdditions = 0;
|
|
18
|
+
this.totalRemovals = 0;
|
|
19
|
+
this.totalBreakingChanges = 0;
|
|
20
|
+
this.skipTimeline = false;
|
|
21
|
+
}
|
|
22
|
+
updated() {
|
|
23
|
+
if (this.charts) {
|
|
24
|
+
this.changeDatasets?.forEach((dataset) => {
|
|
25
|
+
switch (dataset.label) {
|
|
26
|
+
case 'Modifications':
|
|
27
|
+
dataset.borderColor = this.primary;
|
|
28
|
+
this.totalModifications = dataset.data.reduce((a, b) => a + b, 0);
|
|
29
|
+
break;
|
|
30
|
+
case 'Additions':
|
|
31
|
+
dataset.borderColor = this.ok;
|
|
32
|
+
this.totalAdditions = dataset.data.reduce((a, b) => a + b, 0);
|
|
33
|
+
break;
|
|
34
|
+
case 'Removals':
|
|
35
|
+
dataset.borderColor = this.warn;
|
|
36
|
+
this.totalRemovals = dataset.data.reduce((a, b) => a + b, 0);
|
|
37
|
+
break;
|
|
38
|
+
case 'Breaking Changes':
|
|
39
|
+
dataset.borderColor = this.error;
|
|
40
|
+
this.totalBreakingChanges = dataset.data.reduce((a, b) => a + b, 0);
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
this.violationDatasets?.forEach((dataset) => {
|
|
45
|
+
switch (dataset.label) {
|
|
46
|
+
case 'Errors':
|
|
47
|
+
dataset.borderColor = this.error;
|
|
48
|
+
this.totalErrors = dataset.data.reduce((a, b) => a + b, 0);
|
|
49
|
+
break;
|
|
50
|
+
case 'Warnings':
|
|
51
|
+
dataset.borderColor = this.warn;
|
|
52
|
+
this.totalWarnings = dataset.data.reduce((a, b) => a + b, 0);
|
|
53
|
+
break;
|
|
54
|
+
case 'Informs':
|
|
55
|
+
dataset.borderColor = this.primary;
|
|
56
|
+
this.totalInforms = dataset.data.reduce((a, b) => a + b, 0);
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
this.qualityDatasets?.forEach((dataset) => {
|
|
61
|
+
dataset.borderColor = this.primary;
|
|
62
|
+
});
|
|
63
|
+
this.charts?.forEach((chart) => {
|
|
64
|
+
switch (chart.id) {
|
|
65
|
+
case 'change-chart':
|
|
66
|
+
chart.datasets = this.changeDatasets;
|
|
67
|
+
chart.labels = this.changeLabels;
|
|
68
|
+
break;
|
|
69
|
+
case 'violation-chart':
|
|
70
|
+
chart.datasets = this.violationDatasets;
|
|
71
|
+
chart.labels = this.violationLabels;
|
|
72
|
+
break;
|
|
73
|
+
case 'diagnosis-chart':
|
|
74
|
+
chart.datasets = this.qualityDatasets;
|
|
75
|
+
chart.labels = this.qualityLabels;
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
chart.updateChart();
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
this.stats?.forEach((stat) => {
|
|
82
|
+
stat.requestUpdate();
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
async firstUpdated() {
|
|
86
|
+
super.firstUpdated();
|
|
87
|
+
}
|
|
88
|
+
renderChangeStatistics() {
|
|
89
|
+
const stats = [];
|
|
90
|
+
if (this.totalModifications > 0) {
|
|
91
|
+
stats.push(html `
|
|
92
|
+
<pb33f-rodeo-statistic small title="Modifications" value="${this.totalModifications}"
|
|
93
|
+
label="Modifications"></pb33f-rodeo-statistic>`);
|
|
94
|
+
}
|
|
95
|
+
if (this.totalAdditions > 0) {
|
|
96
|
+
stats.push(html `
|
|
97
|
+
<pb33f-rodeo-statistic small title="Additions" value="${this.totalAdditions}"
|
|
98
|
+
label="Additions"></pb33f-rodeo-statistic>`);
|
|
99
|
+
}
|
|
100
|
+
if (this.totalRemovals > 0) {
|
|
101
|
+
stats.push(html `
|
|
102
|
+
<pb33f-rodeo-statistic small title="Removals" value="${this.totalRemovals}"
|
|
103
|
+
label="Removals"></pb33f-rodeo-statistic>`);
|
|
104
|
+
}
|
|
105
|
+
if (this.totalBreakingChanges > 0) {
|
|
106
|
+
stats.push(html `
|
|
107
|
+
<pb33f-rodeo-statistic small title="Breaking Changes" value="${this.totalBreakingChanges}"
|
|
108
|
+
label="Breaking Changes"></pb33f-rodeo-statistic>`);
|
|
109
|
+
}
|
|
110
|
+
return stats;
|
|
111
|
+
}
|
|
112
|
+
renderViolationStatistics() {
|
|
113
|
+
const stats = [];
|
|
114
|
+
if (this.totalErrors > 0) {
|
|
115
|
+
stats.push(html `
|
|
116
|
+
<pb33f-rodeo-statistic small title="Errors" value="${this.totalErrors}"
|
|
117
|
+
label="Errors"></pb33f-rodeo-statistic>`);
|
|
118
|
+
}
|
|
119
|
+
if (this.totalWarnings > 0) {
|
|
120
|
+
stats.push(html `
|
|
121
|
+
<pb33f-rodeo-statistic small title="Warnings" value="${this.totalWarnings}"
|
|
122
|
+
label="Warnings"></pb33f-rodeo-statistic>`);
|
|
123
|
+
}
|
|
124
|
+
if (this.totalInforms > 0) {
|
|
125
|
+
stats.push(html `
|
|
126
|
+
<pb33f-rodeo-statistic small title="Informs" value="${this.totalInforms}"
|
|
127
|
+
label="Informs"></pb33f-rodeo-statistic>`);
|
|
128
|
+
}
|
|
129
|
+
return stats;
|
|
130
|
+
}
|
|
131
|
+
render() {
|
|
132
|
+
return html `
|
|
133
|
+
|
|
134
|
+
<div class="changes-chart stats-container">
|
|
135
|
+
<pb33f-chart id="change-chart"
|
|
136
|
+
height="400"
|
|
137
|
+
smallTitle
|
|
138
|
+
title="Changes made over time"
|
|
139
|
+
.datasets=${this.changeDatasets}
|
|
140
|
+
.labels=${this.changeLabels} legend></pb33f-chart>
|
|
141
|
+
|
|
142
|
+
<div style="padding-top: 20px;">
|
|
143
|
+
<div>
|
|
144
|
+
${this.renderChangeStatistics()}
|
|
145
|
+
</div>
|
|
146
|
+
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
|
|
150
|
+
<div class="changes-chart stats-container">
|
|
151
|
+
<pb33f-chart id="violation-chart"
|
|
152
|
+
height="400"
|
|
153
|
+
smallTitle
|
|
154
|
+
title="Violations over time"
|
|
155
|
+
.datasets=${this.violationDatasets}
|
|
156
|
+
.labels=${this.violationLabels} legend></pb33f-chart>
|
|
157
|
+
|
|
158
|
+
<div style="padding-top: 20px;">
|
|
159
|
+
<div>
|
|
160
|
+
${this.renderViolationStatistics()}
|
|
161
|
+
</div>
|
|
162
|
+
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
|
|
166
|
+
<div class="changes-chart stats-container">
|
|
167
|
+
<pb33f-chart id="diagnosis-chart"
|
|
168
|
+
height="400"
|
|
169
|
+
width="1000"
|
|
170
|
+
smallTitle
|
|
171
|
+
?legend=${false}
|
|
172
|
+
title="Diagnosis score over time"
|
|
173
|
+
.datasets=${this.qualityDatasets}
|
|
174
|
+
.labels=${this.qualityLabels} legend></pb33f-chart>
|
|
175
|
+
</div>`;
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
TimelineView.styles = [timelineViewCss];
|
|
179
|
+
__decorate([
|
|
180
|
+
property()
|
|
181
|
+
], TimelineView.prototype, "title", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
property()
|
|
184
|
+
], TimelineView.prototype, "changeDatasets", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
property()
|
|
187
|
+
], TimelineView.prototype, "violationDatasets", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
property()
|
|
190
|
+
], TimelineView.prototype, "qualityDatasets", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
property()
|
|
193
|
+
], TimelineView.prototype, "changeLabels", void 0);
|
|
194
|
+
__decorate([
|
|
195
|
+
property()
|
|
196
|
+
], TimelineView.prototype, "violationLabels", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
property()
|
|
199
|
+
], TimelineView.prototype, "qualityLabels", void 0);
|
|
200
|
+
__decorate([
|
|
201
|
+
queryAll('pb33f-chart')
|
|
202
|
+
], TimelineView.prototype, "charts", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
queryAll('pb33f-rodeo-statistic')
|
|
205
|
+
], TimelineView.prototype, "stats", void 0);
|
|
206
|
+
__decorate([
|
|
207
|
+
property()
|
|
208
|
+
], TimelineView.prototype, "totalAdditions", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
property()
|
|
211
|
+
], TimelineView.prototype, "totalRemovals", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
property()
|
|
214
|
+
], TimelineView.prototype, "totalModifications", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
property()
|
|
217
|
+
], TimelineView.prototype, "totalBreakingChanges", void 0);
|
|
218
|
+
__decorate([
|
|
219
|
+
property()
|
|
220
|
+
], TimelineView.prototype, "totalErrors", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
property()
|
|
223
|
+
], TimelineView.prototype, "totalWarnings", void 0);
|
|
224
|
+
__decorate([
|
|
225
|
+
property()
|
|
226
|
+
], TimelineView.prototype, "totalInforms", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
property()
|
|
229
|
+
], TimelineView.prototype, "skipTimeline", void 0);
|
|
230
|
+
TimelineView = __decorate([
|
|
231
|
+
customElement("pb33f-timeline-view")
|
|
232
|
+
], TimelineView);
|
|
233
|
+
export { TimelineView };
|
|
@@ -1,63 +1,110 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
2
|
export default css `
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
3
|
+
:host {
|
|
4
|
+
display: flex;
|
|
5
|
+
position: relative;
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.icon {
|
|
10
|
+
max-width: 60px;
|
|
11
|
+
min-width: 55px;
|
|
12
|
+
min-height: 80px;
|
|
13
|
+
position: relative;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.icon:first-child {
|
|
17
|
+
min-height: 20px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.icon > .timeline {
|
|
21
|
+
width: 40px;
|
|
22
|
+
height: 100%;
|
|
23
|
+
border-right: 2px solid var(--bars-and-borders);
|
|
24
|
+
// position: absolute;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.skinny {
|
|
28
|
+
width: 20px!important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.skinny-icon {
|
|
32
|
+
min-width: 40px!important;
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.skinny-time {
|
|
37
|
+
min-width: 0!important;
|
|
38
|
+
max-width: 100%!important;
|
|
39
|
+
padding-top: 0!important;
|
|
40
|
+
height: initial;
|
|
41
|
+
min-height: 0!important;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.skinny-timeline-icon {
|
|
45
|
+
top: 5px!important;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
.timeline-icon {
|
|
50
|
+
width: 20px;
|
|
51
|
+
height: 20px;
|
|
52
|
+
border-radius: 15px;
|
|
53
|
+
margin: 0 10px;
|
|
54
|
+
text-align: center;
|
|
55
|
+
font-size: 20px;
|
|
56
|
+
position: absolute;
|
|
57
|
+
top: 22px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.content {
|
|
61
|
+
width: 100%;
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-grow: 2;
|
|
64
|
+
min-height: 50px;
|
|
65
|
+
padding-top: 10px;
|
|
66
|
+
height: 50px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.content-skinny {
|
|
70
|
+
width: 100%!important;
|
|
71
|
+
min-height: 50px!important;
|
|
72
|
+
height: 70px!important;
|
|
73
|
+
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.request-time {
|
|
77
|
+
font-size: 0.7em;
|
|
78
|
+
color: var(--font-color-sub2);
|
|
79
|
+
//position: absolute;
|
|
80
|
+
//left: 50px;
|
|
81
|
+
//top: 15px;
|
|
82
|
+
min-width: 70px;
|
|
83
|
+
max-width: 70px;
|
|
84
|
+
display: block;
|
|
85
|
+
min-height: 50px;
|
|
86
|
+
padding-top: 15px;
|
|
87
|
+
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.timeline-content {
|
|
91
|
+
width: 100%;
|
|
92
|
+
}
|
|
48
93
|
|
|
49
94
|
@media only screen and (max-width: 1000px) {
|
|
50
95
|
.icon > .timeline {
|
|
51
96
|
width: 2px;
|
|
52
97
|
}
|
|
98
|
+
|
|
53
99
|
.icon {
|
|
54
100
|
width: 15px;
|
|
55
|
-
|
|
101
|
+
|
|
56
102
|
}
|
|
103
|
+
|
|
57
104
|
.request-time {
|
|
58
105
|
display: none;
|
|
59
106
|
}
|
|
60
107
|
}
|
|
61
|
-
|
|
62
|
-
|
|
108
|
+
|
|
109
|
+
|
|
63
110
|
`;
|
|
@@ -4,14 +4,30 @@ 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 { customElement } from "lit/decorators.js";
|
|
7
|
+
import { customElement, property } from "lit/decorators.js";
|
|
8
8
|
import { html, LitElement } from "lit";
|
|
9
9
|
import timelineItemCss from "./timeline-item.css.js";
|
|
10
10
|
let TimelineItemComponent = class TimelineItemComponent extends LitElement {
|
|
11
11
|
constructor() {
|
|
12
12
|
super();
|
|
13
|
+
this.skinny = false;
|
|
13
14
|
}
|
|
14
15
|
render() {
|
|
16
|
+
if (this.skinny) {
|
|
17
|
+
return html `
|
|
18
|
+
|
|
19
|
+
<div class="icon skinny-icon">
|
|
20
|
+
<div class="timeline skinny"></div>
|
|
21
|
+
<div class="timeline-icon skinny-timeline-icon">
|
|
22
|
+
<slot name="icon"></slot>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="content-skinny">
|
|
26
|
+
<slot name="time" class="request-time skinny-time"></slot>
|
|
27
|
+
<slot name="content" class="timeline-content"></slot>
|
|
28
|
+
</div>
|
|
29
|
+
`;
|
|
30
|
+
}
|
|
15
31
|
return html `
|
|
16
32
|
<div class="icon">
|
|
17
33
|
<div class="timeline"></div>
|
|
@@ -26,6 +42,9 @@ let TimelineItemComponent = class TimelineItemComponent extends LitElement {
|
|
|
26
42
|
}
|
|
27
43
|
};
|
|
28
44
|
TimelineItemComponent.styles = timelineItemCss;
|
|
45
|
+
__decorate([
|
|
46
|
+
property({ type: Boolean })
|
|
47
|
+
], TimelineItemComponent.prototype, "skinny", void 0);
|
|
29
48
|
TimelineItemComponent = __decorate([
|
|
30
49
|
customElement('pb33f-timeline-item')
|
|
31
50
|
], TimelineItemComponent);
|
|
@@ -1,50 +1,56 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
2
|
export default css `
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
3
|
+
|
|
4
|
+
pb33f-timeline-item {
|
|
5
|
+
width: 100%;
|
|
6
|
+
margin-bottom: 20px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.start {
|
|
10
|
+
position: relative;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 20px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
.ball-start {
|
|
17
|
+
width: 15px;
|
|
18
|
+
height: 15px;
|
|
19
|
+
border-radius: 10px;
|
|
20
|
+
background-color: var(--bars-and-borders);
|
|
21
|
+
position: absolute;
|
|
22
|
+
left: 33px;
|
|
23
|
+
top: 5px;
|
|
24
|
+
z-index: 10;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.skinny {
|
|
28
|
+
left: 7px!important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ball-end {
|
|
32
|
+
width: 15px;
|
|
33
|
+
height: 15px;
|
|
34
|
+
border-radius: 10px;
|
|
35
|
+
background-color: var(--bars-and-borders);
|
|
36
|
+
position: absolute;
|
|
37
|
+
left: 33px;
|
|
38
|
+
top: 0;
|
|
39
|
+
z-index: 10;
|
|
40
|
+
margin-bottom: 20px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.end {
|
|
44
|
+
position: relative;
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 20px;
|
|
47
|
+
}
|
|
43
48
|
|
|
44
49
|
@media only screen and (max-width: 1000px) {
|
|
45
50
|
.ball-start {
|
|
46
51
|
left: -5px;
|
|
47
52
|
}
|
|
53
|
+
|
|
48
54
|
.ball-end {
|
|
49
55
|
left: -5px;
|
|
50
56
|
|
|
@@ -4,26 +4,30 @@ 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 { customElement } from "lit/decorators.js";
|
|
7
|
+
import { customElement, property } from "lit/decorators.js";
|
|
8
8
|
import { html, LitElement } from "lit";
|
|
9
9
|
import timelineCss from "./timeline.css.js";
|
|
10
10
|
let TimelineComponent = class TimelineComponent extends LitElement {
|
|
11
11
|
constructor() {
|
|
12
12
|
super();
|
|
13
|
+
this.skinny = false;
|
|
13
14
|
}
|
|
14
15
|
render() {
|
|
15
16
|
return html `
|
|
16
|
-
<div class="start">
|
|
17
|
-
<div class="ball-start"></div>
|
|
17
|
+
<div class="start ${this.skinny ? 'skinny' : ''}">
|
|
18
|
+
<div class="ball-start ${this.skinny ? 'skinny' : ''}"></div>
|
|
18
19
|
</div>
|
|
19
20
|
<slot></slot>
|
|
20
|
-
<div class="end">
|
|
21
|
-
<div class="ball-end"></div>
|
|
21
|
+
<div class="end ${this.skinny ? 'skinny' : ''}">
|
|
22
|
+
<div class="ball-end ${this.skinny ? 'skinny' : ''}"></div>
|
|
22
23
|
</div>
|
|
23
24
|
`;
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
27
|
TimelineComponent.styles = timelineCss;
|
|
28
|
+
__decorate([
|
|
29
|
+
property({ type: Boolean })
|
|
30
|
+
], TimelineComponent.prototype, "skinny", void 0);
|
|
27
31
|
TimelineComponent = __decorate([
|
|
28
32
|
customElement('pb33f-timeline')
|
|
29
33
|
], TimelineComponent);
|
|
@@ -41,6 +41,7 @@ export declare class EqualizerComponent extends HasEyes {
|
|
|
41
41
|
renderRefs: boolean;
|
|
42
42
|
renderPoly: boolean;
|
|
43
43
|
dimDependencies: boolean;
|
|
44
|
+
renderEqualizer: boolean;
|
|
44
45
|
renderObjects: {
|
|
45
46
|
type: string;
|
|
46
47
|
label: string;
|
|
@@ -64,6 +65,7 @@ export declare class EqualizerComponent extends HasEyes {
|
|
|
64
65
|
enabled?: undefined;
|
|
65
66
|
})[];
|
|
66
67
|
constructor();
|
|
68
|
+
updated(): void;
|
|
67
69
|
navigateToRoot(): void;
|
|
68
70
|
buildRenderObjects(): void;
|
|
69
71
|
buildRenderObjectFilters(): void;
|