@pb33f/cowboy-components 0.6.6 → 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/auth/oauth-login.js +0 -1
- 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 +6 -3
- package/dist/components/paginator/paginator.d.ts +1 -0
- package/dist/components/paginator/paginator.js +26 -7
- 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/sparks.d.ts +3 -0
- package/dist/components/the-doctor/sparks.js +16 -5
- 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 +3849 -2221
- 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
|
@@ -62,7 +62,7 @@ let RenderedSecuritySchemeNodeComponent = class RenderedSecuritySchemeNodeCompon
|
|
|
62
62
|
}
|
|
63
63
|
return html `
|
|
64
64
|
${type}
|
|
65
|
-
${name}${scheme}${schemeIn}${openidConnectUrl}${description}${flows}${ext}`;
|
|
65
|
+
${name}${scheme}${schemeIn}${openidConnectUrl}${description}${flows}${ext}${super.renderChanges()}`;
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
RenderedSecuritySchemeNodeComponent.styles = [sharedCss, modelSharedCss, listsCss, formattingCss];
|
|
@@ -39,7 +39,9 @@ let RenderedTagNodeComponent = class RenderedTagNodeComponent extends ClickableR
|
|
|
39
39
|
return html `
|
|
40
40
|
${description}
|
|
41
41
|
${externalDocs}
|
|
42
|
-
${ext}
|
|
42
|
+
${ext}
|
|
43
|
+
${super.renderChanges()}
|
|
44
|
+
`;
|
|
43
45
|
}
|
|
44
46
|
};
|
|
45
47
|
RenderedTagNodeComponent.styles = [sharedCss, modelSharedCss, formattingCss];
|
|
@@ -2,7 +2,7 @@ import '@shoelace-style/shoelace/dist/components/tree/tree.js';
|
|
|
2
2
|
import '@shoelace-style/shoelace/dist/components/tree-item/tree-item.js';
|
|
3
3
|
import { LitElement, TemplateResult } from "lit";
|
|
4
4
|
import { SlTreeItem } from "@shoelace-style/shoelace";
|
|
5
|
-
import { Node } from "../../model/graph.js";
|
|
5
|
+
import { Change, Node } from "../../model/graph.js";
|
|
6
6
|
export declare class ModelTree extends LitElement {
|
|
7
7
|
static styles: import("lit").CSSResult[];
|
|
8
8
|
node: Node;
|
|
@@ -10,19 +10,22 @@ export declare class ModelTree extends LitElement {
|
|
|
10
10
|
nodeIdMap: Map<string, Node>;
|
|
11
11
|
nodeIdHashMap: Map<string, Node>;
|
|
12
12
|
filteredNodes: Map<string, Node>;
|
|
13
|
+
expand: boolean;
|
|
13
14
|
renderedNodes: Map<string, Node>;
|
|
14
15
|
nodeLimitExceeded: boolean;
|
|
15
16
|
nodeLimit: number;
|
|
17
|
+
nodesWithChanges: Map<string, Node>;
|
|
18
|
+
expandedNodes: Map<string, Node>;
|
|
16
19
|
isRolodex: boolean;
|
|
17
20
|
constructor(nodeMap: Map<string, Node>, nodeIdMap: Map<string, Node>, nodeIdHashMap: Map<string, Node>);
|
|
18
|
-
nodeClicked(
|
|
19
|
-
rolodexClicked(
|
|
21
|
+
nodeClicked(nodeId: string, changes?: Change[]): void;
|
|
22
|
+
rolodexClicked(nodeId: string, path?: string, changes?: Change[]): void;
|
|
20
23
|
openNode(parentId: string): void;
|
|
21
24
|
pendingNavigationHash: string;
|
|
22
25
|
pendingNavigationPath: string;
|
|
23
26
|
updated(): void;
|
|
24
27
|
openNodeByPath(path: string): void;
|
|
25
|
-
explorerClicked(
|
|
28
|
+
explorerClicked(nodeId: string): void;
|
|
26
29
|
collapse(evt: Event, node: Node): void;
|
|
27
30
|
expanded(evt: Event, node: Node): void;
|
|
28
31
|
renderLabel(node: Node, filtered?: boolean): TemplateResult;
|
|
@@ -26,38 +26,44 @@ let ModelTree = class ModelTree extends LitElement {
|
|
|
26
26
|
this.filteredNodes = new Map();
|
|
27
27
|
this.pendingNavigationHash = "";
|
|
28
28
|
this.pendingNavigationPath = "";
|
|
29
|
+
this.nodesWithChanges = new Map();
|
|
30
|
+
this.expand = false;
|
|
31
|
+
this.expandedNodes = new Map();
|
|
29
32
|
}
|
|
30
|
-
nodeClicked(
|
|
33
|
+
nodeClicked(nodeId, changes = []) {
|
|
31
34
|
this.dispatchEvent(new CustomEvent(ModelTreeNodeClicked, {
|
|
32
35
|
bubbles: true,
|
|
33
36
|
composed: true,
|
|
34
37
|
detail: {
|
|
35
|
-
|
|
38
|
+
nodeId: nodeId,
|
|
39
|
+
changes: changes,
|
|
36
40
|
}
|
|
37
41
|
}));
|
|
38
42
|
}
|
|
39
|
-
rolodexClicked(
|
|
43
|
+
rolodexClicked(nodeId, path = '', changes = []) {
|
|
40
44
|
this.dispatchEvent(new CustomEvent(RolodexTreeNodeClicked, {
|
|
41
45
|
bubbles: true,
|
|
42
46
|
composed: true,
|
|
43
47
|
detail: {
|
|
44
|
-
|
|
45
|
-
path: path
|
|
48
|
+
nodeId: nodeId,
|
|
49
|
+
path: path,
|
|
50
|
+
changes: changes
|
|
46
51
|
}
|
|
47
52
|
}));
|
|
48
53
|
}
|
|
49
54
|
openNode(parentId) {
|
|
50
|
-
if (this.
|
|
51
|
-
const parent = this.
|
|
55
|
+
if (this.nodeIdHashMap.get(parentId)) {
|
|
56
|
+
const parent = this.nodeIdHashMap.get(parentId);
|
|
52
57
|
if (parent) {
|
|
58
|
+
this.expandedNodes.set(parent.id, parent);
|
|
53
59
|
this.openNode(parent.parentId);
|
|
60
|
+
this.renderRoot.querySelectorAll(`sl-tree-item#model-${CSS.escape(parent.id)}`)[0]?.setAttribute('expanded', 'true');
|
|
54
61
|
}
|
|
55
|
-
this.renderRoot.querySelectorAll(`sl-tree-item#model-${parent?.idHash}`)[0]?.setAttribute('expanded', 'true');
|
|
56
62
|
this.requestUpdate();
|
|
57
63
|
return;
|
|
58
64
|
}
|
|
59
65
|
else {
|
|
60
|
-
const model = this.renderRoot.querySelectorAll(`sl-tree-item#model-${parentId}`)[0];
|
|
66
|
+
const model = this.renderRoot.querySelectorAll(`sl-tree-item#model-${CSS.escape(parentId)}`)[0];
|
|
61
67
|
if (model) {
|
|
62
68
|
model.setAttribute('expanded', 'true');
|
|
63
69
|
// check if the model has a parent
|
|
@@ -104,21 +110,21 @@ let ModelTree = class ModelTree extends LitElement {
|
|
|
104
110
|
}
|
|
105
111
|
}
|
|
106
112
|
}
|
|
107
|
-
explorerClicked(
|
|
113
|
+
explorerClicked(nodeId) {
|
|
108
114
|
const treeItems = this.renderRoot?.querySelectorAll(`sl-tree-item`);
|
|
109
115
|
if (!treeItems) {
|
|
110
|
-
this.pendingNavigationHash =
|
|
116
|
+
this.pendingNavigationHash = nodeId;
|
|
111
117
|
}
|
|
112
118
|
else {
|
|
113
119
|
if (this.pendingNavigationHash != "") {
|
|
114
|
-
|
|
120
|
+
nodeId = this.pendingNavigationHash;
|
|
115
121
|
this.pendingNavigationHash = "";
|
|
116
122
|
}
|
|
117
123
|
}
|
|
118
124
|
let selected = null;
|
|
119
125
|
for (let i = 0; i < treeItems?.length; i++) {
|
|
120
126
|
const item = treeItems[i];
|
|
121
|
-
item.selected = item.id === `model-${
|
|
127
|
+
item.selected = item.id === `model-${nodeId}`;
|
|
122
128
|
if (item.selected) {
|
|
123
129
|
selected = item;
|
|
124
130
|
item.expanded = true;
|
|
@@ -187,8 +193,11 @@ let ModelTree = class ModelTree extends LitElement {
|
|
|
187
193
|
if (node.label.toLowerCase() == 'document') {
|
|
188
194
|
expanded = true;
|
|
189
195
|
}
|
|
196
|
+
if (this.expandedNodes && this.expandedNodes.get(node.id)) {
|
|
197
|
+
expanded = true;
|
|
198
|
+
}
|
|
190
199
|
let styleIco = IconColor.primary;
|
|
191
|
-
const filtered = (this.filteredNodes.size > 0 && !this.filteredNodes.get(node.
|
|
200
|
+
const filtered = (this.filteredNodes.size > 0 && !this.filteredNodes.get(node.id));
|
|
192
201
|
if (node.type === NodeType.RESPONSE) {
|
|
193
202
|
const label = parseInt(node.label);
|
|
194
203
|
const style = ExtractStatusStyleFromCodeByCode(label);
|
|
@@ -212,8 +221,8 @@ let ModelTree = class ModelTree extends LitElement {
|
|
|
212
221
|
}
|
|
213
222
|
let warnBadge = html ``;
|
|
214
223
|
let errorBadge = html ``;
|
|
215
|
-
if (this.renderedNodes && this.renderedNodes.get(node.
|
|
216
|
-
const renderedNode = this.renderedNodes.get(node.
|
|
224
|
+
if (this.renderedNodes && this.renderedNodes.get(node.id)) {
|
|
225
|
+
const renderedNode = this.renderedNodes.get(node.id);
|
|
217
226
|
if (renderedNode && renderedNode.results) {
|
|
218
227
|
let warnings = 0;
|
|
219
228
|
let errors = 0;
|
|
@@ -325,9 +334,21 @@ let ModelTree = class ModelTree extends LitElement {
|
|
|
325
334
|
}
|
|
326
335
|
}
|
|
327
336
|
}
|
|
337
|
+
let changes = html ``;
|
|
338
|
+
if (node.timeline) {
|
|
339
|
+
this.nodesWithChanges.set(node.id, node);
|
|
340
|
+
changes = html `
|
|
341
|
+
<sl-tooltip content="total changes for ${node.label} object">
|
|
342
|
+
<sl-icon name="stack" style="font-size: 1rem; vertical-align: bottom"></sl-icon> ${node.timeline.length}
|
|
343
|
+
</sl-tooltip>`;
|
|
344
|
+
}
|
|
345
|
+
// hard override if all nodes are expanded
|
|
346
|
+
if (this.expand) {
|
|
347
|
+
expanded = true;
|
|
348
|
+
}
|
|
328
349
|
return html `
|
|
329
350
|
|
|
330
|
-
<sl-tree-item id="model-${node.
|
|
351
|
+
<sl-tree-item id="model-${node.id}" ?expanded="${expanded}"
|
|
331
352
|
@sl-expand="${(evt) => {
|
|
332
353
|
this.expanded(evt, node);
|
|
333
354
|
}}"
|
|
@@ -346,7 +367,7 @@ let ModelTree = class ModelTree extends LitElement {
|
|
|
346
367
|
<sl-icon name="eye-slash" style="vertical-align: middle; font-size: 0.8rem"></sl-icon>
|
|
347
368
|
</sl-tooltip>
|
|
348
369
|
</span>` : html `${this.renderLabel(node)}`}
|
|
349
|
-
${errorBadge} ${warnBadge}
|
|
370
|
+
${errorBadge} ${warnBadge} ${changes}
|
|
350
371
|
</div>
|
|
351
372
|
</div>
|
|
352
373
|
${results}
|
|
@@ -356,20 +377,25 @@ let ModelTree = class ModelTree extends LitElement {
|
|
|
356
377
|
nodesSelected(treeItems) {
|
|
357
378
|
this.selectedNodes = treeItems;
|
|
358
379
|
for (let i = 0; i < treeItems.length; i++) {
|
|
359
|
-
const
|
|
380
|
+
const nodeId = treeItems[i].id.replace('model-', '');
|
|
360
381
|
const path = treeItems[i].getAttribute('data-path');
|
|
361
|
-
if (
|
|
382
|
+
if (nodeId) {
|
|
383
|
+
let changes = [];
|
|
384
|
+
const n = this.nodesWithChanges.get(nodeId);
|
|
385
|
+
if (n?.timeline) {
|
|
386
|
+
changes = n.timeline;
|
|
387
|
+
}
|
|
362
388
|
if (!this.isRolodex) {
|
|
363
|
-
this.nodeClicked(
|
|
389
|
+
this.nodeClicked(nodeId, changes);
|
|
364
390
|
}
|
|
365
391
|
else {
|
|
366
392
|
if (path && path != '') {
|
|
367
|
-
if (this.currentHash ===
|
|
393
|
+
if (this.currentHash === nodeId && this.currentPath === path) {
|
|
368
394
|
return;
|
|
369
395
|
}
|
|
370
|
-
this.currentHash =
|
|
396
|
+
this.currentHash = nodeId;
|
|
371
397
|
this.currentPath = path;
|
|
372
|
-
this.rolodexClicked(
|
|
398
|
+
this.rolodexClicked(nodeId, path, changes);
|
|
373
399
|
}
|
|
374
400
|
}
|
|
375
401
|
}
|
|
@@ -382,7 +408,7 @@ let ModelTree = class ModelTree extends LitElement {
|
|
|
382
408
|
return;
|
|
383
409
|
// if the clicked item is already in selectedNodes, re-fire
|
|
384
410
|
if (this.selectedNodes.some(item => item === clickedItem)) {
|
|
385
|
-
this.nodesSelected(this.selectedNodes);
|
|
411
|
+
// this.nodesSelected(this.selectedNodes);
|
|
386
412
|
}
|
|
387
413
|
}
|
|
388
414
|
render() {
|
|
@@ -427,6 +453,9 @@ __decorate([
|
|
|
427
453
|
__decorate([
|
|
428
454
|
property()
|
|
429
455
|
], ModelTree.prototype, "filteredNodes", void 0);
|
|
456
|
+
__decorate([
|
|
457
|
+
property({ type: Boolean })
|
|
458
|
+
], ModelTree.prototype, "expand", void 0);
|
|
430
459
|
__decorate([
|
|
431
460
|
property()
|
|
432
461
|
], ModelTree.prototype, "isRolodex", void 0);
|
|
@@ -3,9 +3,12 @@ export default css `
|
|
|
3
3
|
|
|
4
4
|
.paginator-values {
|
|
5
5
|
overflow-y: auto;
|
|
6
|
-
max-height: calc(100vh -
|
|
6
|
+
//max-height: calc(100vh - 490px);
|
|
7
|
+
max-height: calc(100vh - 550px);
|
|
7
8
|
}
|
|
8
9
|
|
|
10
|
+
|
|
11
|
+
|
|
9
12
|
.paginator-values::-webkit-scrollbar {
|
|
10
13
|
width: 8px;
|
|
11
14
|
}
|
|
@@ -21,7 +24,7 @@ export default css `
|
|
|
21
24
|
}
|
|
22
25
|
|
|
23
26
|
.no-values {
|
|
24
|
-
|
|
27
|
+
height: 600px;
|
|
25
28
|
width: 500px;
|
|
26
29
|
margin: 0 auto;
|
|
27
30
|
padding-top: 50px;
|
|
@@ -34,7 +37,7 @@ export default css `
|
|
|
34
37
|
|
|
35
38
|
.error {
|
|
36
39
|
color: var(--error-color);
|
|
37
|
-
}
|
|
40
|
+
}
|
|
38
41
|
|
|
39
42
|
.no-values sl-icon {
|
|
40
43
|
margin-bottom: 30px;
|
|
@@ -20,6 +20,7 @@ let Paginator = class Paginator extends LitElement {
|
|
|
20
20
|
this.itemsPerPage = 20;
|
|
21
21
|
this.activeIndex = 0;
|
|
22
22
|
this.invalid = false;
|
|
23
|
+
this.hideSparks = false;
|
|
23
24
|
this.paginatorNavigator = new PaginatorNavigation();
|
|
24
25
|
this.paginatorNavigator.currentPage = this.currentPage;
|
|
25
26
|
this.paginatorNavigator.totalPages = this.totalPages;
|
|
@@ -84,14 +85,29 @@ let Paginator = class Paginator extends LitElement {
|
|
|
84
85
|
}
|
|
85
86
|
render() {
|
|
86
87
|
this.sparks.isError = this.invalid;
|
|
88
|
+
if (this.sparks.animating) {
|
|
89
|
+
this.sparks.stopAnimation();
|
|
90
|
+
}
|
|
87
91
|
if (this.renderValues?.length === 0 || !this.renderValues) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
if (!this.sparks.animating) {
|
|
93
|
+
this.sparks.startAnimation();
|
|
94
|
+
}
|
|
95
|
+
if (!this.hideSparks) {
|
|
96
|
+
return html `
|
|
97
|
+
<div class="no-values ${this.invalid ? 'error' : ''}" style="position: relative">
|
|
98
|
+
<div style="position: absolute; width: 100%; top: -50px; left: 0;">${this.sparks}</div>
|
|
99
|
+
<sl-icon name="prescription2"></sl-icon>
|
|
100
|
+
<br/>
|
|
101
|
+
${this.invalid ? 'invalid / error' : 'healthy!'}
|
|
102
|
+
</div>
|
|
103
|
+
`;
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
return html `
|
|
107
|
+
<div class="no-values" style="position: relative">
|
|
108
|
+
</div>
|
|
109
|
+
`;
|
|
110
|
+
}
|
|
95
111
|
}
|
|
96
112
|
return html `
|
|
97
113
|
${this.paginatorNavigator}
|
|
@@ -126,6 +142,9 @@ __decorate([
|
|
|
126
142
|
__decorate([
|
|
127
143
|
property({ type: Boolean })
|
|
128
144
|
], Paginator.prototype, "invalid", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
property({ type: Boolean })
|
|
147
|
+
], Paginator.prototype, "hideSparks", void 0);
|
|
129
148
|
Paginator = __decorate([
|
|
130
149
|
customElement("pb33f-paginator-navigation")
|
|
131
150
|
], Paginator);
|
|
@@ -101,13 +101,20 @@ let ProblemMainView = class ProblemMainView extends LitElement {
|
|
|
101
101
|
(problem.sourceLocation != 'root.yaml' && problem.sourceLocation != 'root' && problem.sourceLocation != '/root.yaml')) {
|
|
102
102
|
sourceLocation = html `<div class="source-location">Problem file:<br/> <strong>${problem.sourceLocation}</strong></div>`;
|
|
103
103
|
}
|
|
104
|
+
let msg = '';
|
|
105
|
+
if (problem.message && problem.message.length > 0) {
|
|
106
|
+
msg = problem.message;
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
msg = '[no message available]';
|
|
110
|
+
}
|
|
104
111
|
return html `
|
|
105
112
|
<div class="problem">
|
|
106
113
|
<div class="icon ${getProblemClass(problem)}">
|
|
107
114
|
<sl-icon name="${getProblemIcon(problem)}"></sl-icon>
|
|
108
115
|
</div>
|
|
109
116
|
<div class="message">
|
|
110
|
-
${unsafeHTML(marked.parse(
|
|
117
|
+
${unsafeHTML(marked.parse(msg).toString())}
|
|
111
118
|
<div class="location">
|
|
112
119
|
Location: <pb33f-render-json-path path="${problem.jsonPath}"></pb33f-render-json-path>
|
|
113
120
|
</div>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Colorful } from "../../charts/chart-colors.js";
|
|
2
|
+
import { ChartResultData } from "../../../model/chart-data.js";
|
|
3
|
+
import '../../charts/beefy-chart';
|
|
4
|
+
import '../../charts/doughnut-chart.js';
|
|
5
|
+
import { BeefyChart } from "../../charts/beefy-chart";
|
|
6
|
+
interface StatisticSummary {
|
|
7
|
+
total: number;
|
|
8
|
+
peak: number;
|
|
9
|
+
peakDate: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class RodeoDownloadStatistics extends Colorful {
|
|
12
|
+
vacuumStatistics: ChartResultData;
|
|
13
|
+
wiretapStatistics: ChartResultData;
|
|
14
|
+
openapiChangesStatistics: ChartResultData;
|
|
15
|
+
vacuumGithubTotal: ChartResultData;
|
|
16
|
+
changesGithubTotal: ChartResultData;
|
|
17
|
+
wiretapGithubTotal: ChartResultData;
|
|
18
|
+
vacuumClones: ChartResultData;
|
|
19
|
+
libopenapiClones: ChartResultData;
|
|
20
|
+
libopenapiValidatorClones: ChartResultData;
|
|
21
|
+
changesClones: ChartResultData;
|
|
22
|
+
wiretapClones: ChartResultData;
|
|
23
|
+
vacuumStars: ChartResultData;
|
|
24
|
+
libopenapiStars: ChartResultData;
|
|
25
|
+
libopenapiValidatorStars: ChartResultData;
|
|
26
|
+
wiretapStars: ChartResultData;
|
|
27
|
+
changesStars: ChartResultData;
|
|
28
|
+
doctorStars: ChartResultData;
|
|
29
|
+
saddlebagStars: ChartResultData;
|
|
30
|
+
vacuumDockerPulls: ChartResultData;
|
|
31
|
+
changesDockerPulls: ChartResultData;
|
|
32
|
+
wiretapDockerPulls: ChartResultData;
|
|
33
|
+
starHistory: ChartResultData;
|
|
34
|
+
charts: BeefyChart[];
|
|
35
|
+
constructor();
|
|
36
|
+
firstUpdated(): void;
|
|
37
|
+
calculateStatistics(stats: ChartResultData): StatisticSummary;
|
|
38
|
+
composeStarHistory(): number;
|
|
39
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
40
|
+
}
|
|
41
|
+
export {};
|