@pb33f/cowboy-components 0.0.14 → 0.1.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/abap-DXvTa7XC.js +1404 -0
- package/dist/apex-DsQH3mjJ.js +332 -0
- package/dist/assets/css.worker-B_qZXUzt.js +84 -0
- package/dist/assets/editor.worker-HEmB0D7P.js +11 -0
- package/dist/assets/html.worker-D3WUrk8Q.js +458 -0
- package/dist/assets/json.worker-CAhUaBo4.js +42 -0
- package/dist/assets/rule-documentation.worker-BFIxMBU8.js +1 -0
- package/dist/assets/search-problems.worker-VJi4P9Gj.js +1 -0
- package/dist/azcli-Cir32SBk.js +74 -0
- package/dist/bat-BsNExolo.js +106 -0
- package/dist/bicep-2KcKzeQF.js +108 -0
- package/dist/cameligo-D0ezznwE.js +180 -0
- package/dist/clojure-DxYzAIlu.js +767 -0
- package/dist/coffee-DgiPTF3g.js +238 -0
- package/dist/components/editor/editor.d.ts +27 -0
- package/dist/components/editor/editor.js +192 -0
- package/dist/components/error-banner/error-banner.css.d.ts +2 -0
- package/dist/components/error-banner/error-banner.css.js +23 -0
- package/dist/components/error-banner/error-banner.d.ts +9 -0
- package/dist/components/error-banner/error-banner.js +40 -0
- package/dist/components/paginator/paginator-events.d.ts +4 -0
- package/dist/components/paginator/paginator-events.js +4 -0
- package/dist/components/paginator/paginator-navigator.css.d.ts +2 -0
- package/dist/components/paginator/paginator-navigator.css.js +35 -0
- package/dist/components/paginator/paginator-navigator.d.ts +27 -0
- package/dist/components/paginator/paginator-navigator.js +168 -0
- package/dist/components/paginator/paginator.css.d.ts +2 -0
- package/dist/components/paginator/paginator.css.js +38 -0
- package/dist/components/paginator/paginator.d.ts +22 -0
- package/dist/components/paginator/paginator.js +122 -0
- package/dist/components/percent-bar/percent-bar.css.d.ts +2 -0
- package/dist/components/percent-bar/percent-bar.css.js +65 -0
- package/dist/components/percent-bar/percent-bar.d.ts +11 -0
- package/dist/components/percent-bar/percent-bar.js +85 -0
- package/dist/components/problem-list/details-drawer.css.d.ts +2 -0
- package/dist/components/problem-list/details-drawer.css.js +42 -0
- package/dist/components/problem-list/details-drawer.d.ts +22 -0
- package/dist/components/problem-list/details-drawer.js +66 -0
- package/dist/components/problem-list/filter.css.d.ts +2 -0
- package/dist/components/problem-list/filter.css.js +67 -0
- package/dist/components/problem-list/problem-item.css.d.ts +2 -0
- package/dist/components/problem-list/problem-item.css.js +170 -0
- package/dist/components/problem-list/problem-item.d.ts +27 -0
- package/dist/components/problem-list/problem-item.js +126 -0
- package/dist/components/problem-list/problem-label-view-filter.css.d.ts +2 -0
- package/dist/components/problem-list/problem-label-view-filter.css.js +6 -0
- package/dist/components/problem-list/problem-label-view-filter.d.ts +18 -0
- package/dist/components/problem-list/problem-label-view-filter.js +66 -0
- package/dist/components/problem-list/problem-list.css.d.ts +2 -0
- package/dist/components/problem-list/problem-list.css.js +59 -0
- package/dist/components/problem-list/problem-list.d.ts +37 -0
- package/dist/components/problem-list/problem-list.js +334 -0
- package/dist/components/problem-list/problem-mainview.css.d.ts +2 -0
- package/dist/components/problem-list/problem-mainview.css.js +100 -0
- package/dist/components/problem-list/problem-mainview.d.ts +20 -0
- package/dist/components/problem-list/problem-mainview.js +126 -0
- package/dist/components/problem-list/problem-rule-filter.d.ts +13 -0
- package/dist/components/problem-list/problem-rule-filter.js +67 -0
- package/dist/components/problem-list/problem-search-filter.d.ts +13 -0
- package/dist/components/problem-list/problem-search-filter.js +45 -0
- package/dist/components/problem-list/problem-sort-filter.d.ts +19 -0
- package/dist/components/problem-list/problem-sort-filter.js +67 -0
- package/dist/components/problem-list/problem-toolbar.css.d.ts +2 -0
- package/dist/components/problem-list/problem-toolbar.css.js +41 -0
- package/dist/components/problem-list/problem-toolbar.d.ts +14 -0
- package/dist/components/problem-list/problem-toolbar.js +63 -0
- package/dist/components/problem-list/shared.css.d.ts +2 -0
- package/dist/components/problem-list/shared.css.js +91 -0
- package/dist/components/problems-overview/diagnostic-evaluation.css.d.ts +2 -0
- package/dist/components/problems-overview/diagnostic-evaluation.css.js +178 -0
- package/dist/components/problems-overview/diagnostic-evaluation.d.ts +13 -0
- package/dist/components/problems-overview/diagnostic-evaluation.js +119 -0
- package/dist/components/problems-overview/document-statistic.css.d.ts +2 -0
- package/dist/components/problems-overview/document-statistic.css.js +16 -0
- package/dist/components/problems-overview/document-statistic.d.ts +10 -0
- package/dist/components/problems-overview/document-statistic.js +49 -0
- package/dist/components/problems-overview/problem-overview-group.css.d.ts +2 -0
- package/dist/components/problems-overview/problem-overview-group.css.js +84 -0
- package/dist/components/problems-overview/problem-overview-group.d.ts +17 -0
- package/dist/components/problems-overview/problem-overview-group.js +121 -0
- package/dist/components/problems-overview/problem-statistic.css.d.ts +2 -0
- package/dist/components/problems-overview/problem-statistic.css.js +40 -0
- package/dist/components/problems-overview/problem-statistic.d.ts +11 -0
- package/dist/components/problems-overview/problem-statistic.js +57 -0
- package/dist/components/problems-overview/problem-statistics.css.d.ts +2 -0
- package/dist/components/problems-overview/problem-statistics.css.js +46 -0
- package/dist/components/problems-overview/problem-statistics.d.ts +14 -0
- package/dist/components/problems-overview/problem-statistics.js +132 -0
- package/dist/components/problems-overview/problems-overview.css.d.ts +2 -0
- package/dist/components/problems-overview/problems-overview.css.js +49 -0
- package/dist/components/problems-overview/problems-overview.d.ts +21 -0
- package/dist/components/problems-overview/problems-overview.js +108 -0
- package/dist/components/render-json-path/render-json-path.css.d.ts +2 -0
- package/dist/components/render-json-path/render-json-path.css.js +86 -0
- package/dist/components/render-json-path/render-json-path.d.ts +11 -0
- package/dist/components/render-json-path/render-json-path.js +105 -0
- package/dist/components/the-doctor/settings.d.ts +5 -0
- package/dist/components/the-doctor/settings.js +22 -0
- package/dist/components/the-doctor/status-bar.css.d.ts +2 -0
- package/dist/components/the-doctor/status-bar.css.js +47 -0
- package/dist/components/the-doctor/status-bar.d.ts +12 -0
- package/dist/components/the-doctor/status-bar.js +71 -0
- package/dist/components/the-doctor/the-doctor.css.d.ts +2 -0
- package/dist/components/the-doctor/the-doctor.css.js +156 -0
- package/dist/components/the-doctor/the-doctor.d.ts +57 -0
- package/dist/components/the-doctor/the-doctor.js +340 -0
- package/dist/cowboy-components-FcPnnXMU.js +114388 -0
- package/dist/cowboy-components.d.ts +5 -2
- package/dist/cowboy-components.js +8 -2
- package/dist/cowboy-components.umd.cjs +3997 -103
- package/dist/cpp-Bq-GnYlH.js +407 -0
- package/dist/csharp-IDcibKAT.js +332 -0
- package/dist/csp-QdYr8JWa.js +59 -0
- package/dist/css/button.css.d.ts +2 -0
- package/dist/css/button.css.js +34 -0
- package/dist/css/chroma-synxtax.css.d.ts +2 -0
- package/dist/css/chroma-synxtax.css.js +130 -0
- package/dist/css/cowboy-components.css +3 -0
- package/dist/css/links.css.d.ts +2 -0
- package/dist/css/links.css.js +17 -0
- package/dist/css/lists.css.d.ts +2 -0
- package/dist/css/lists.css.js +43 -0
- package/dist/css/pb33f-theme.css +2 -2
- package/dist/css/syntax.css.js +1 -1
- package/dist/css-C-wMMefI.js +193 -0
- package/dist/cssMode-DcUlnXpV.js +1541 -0
- package/dist/cypher-BfBo9yir.js +269 -0
- package/dist/dart-Cv3rVfv_.js +287 -0
- package/dist/dockerfile-DyCXBGhV.js +136 -0
- package/dist/ecl-COP_iObm.js +462 -0
- package/dist/elixir-DoEhbk9F.js +575 -0
- package/dist/events/doctor.d.ts +51 -0
- package/dist/events/doctor.js +17 -0
- package/dist/flow9-DuHGSNW1.js +148 -0
- package/dist/freemarker2-sY6FVddl.js +995 -0
- package/dist/fsharp-Dv9PDxVO.js +223 -0
- package/dist/go-CcdAeqiK.js +224 -0
- package/dist/graphql-CoRm4b1H.js +157 -0
- package/dist/handlebars-BqznQEC5.js +425 -0
- package/dist/hcl-BSgAhV5f.js +189 -0
- package/dist/html-DBpY_ZT1.js +314 -0
- package/dist/htmlMode-Cf0lYQWN.js +1551 -0
- package/dist/ini-ewx9HLIq.js +77 -0
- package/dist/java-B5lwcbTy.js +238 -0
- package/dist/javascript-DRgEI2Yf.js +76 -0
- package/dist/jsonMode-CmuECwTh.js +1958 -0
- package/dist/julia-NCcg_P_q.js +517 -0
- package/dist/kotlin-BYlnmGrb.js +259 -0
- package/dist/less-DG4tqgOo.js +168 -0
- package/dist/lexon-CTTPcJLv.js +163 -0
- package/dist/liquid-DWVJYCIL.js +246 -0
- package/dist/lua-CxQ1RWuo.js +168 -0
- package/dist/m3-mHFfpmgx.js +216 -0
- package/dist/markdown-Dh6sYULt.js +235 -0
- package/dist/mdx-Bjcj5AvL.js +171 -0
- package/dist/mips-CNUcjHD1.js +204 -0
- package/dist/model/document-statistics.d.ts +40 -0
- package/dist/model/document-statistics.js +4 -0
- package/dist/model/how_to_fix.d.ts +4 -0
- package/dist/model/how_to_fix.js +1 -0
- package/dist/model/problem.d.ts +19 -0
- package/dist/model/problem.js +106 -0
- package/dist/model/rule_documentation.d.ts +5 -0
- package/dist/model/rule_documentation.js +1 -0
- package/dist/model/session.d.ts +5 -0
- package/dist/model/session.js +1 -0
- package/dist/msdax-ZvxFeKvs.js +381 -0
- package/dist/mysql-COjg31sJ.js +884 -0
- package/dist/objective-c-BqrCFBhT.js +189 -0
- package/dist/pascal-CUpkilAS.js +257 -0
- package/dist/pascaligo-nJfvRJ7x.js +170 -0
- package/dist/perl-CWsX6Ysg.js +632 -0
- package/dist/pgsql-DwgpEXC8.js +857 -0
- package/dist/php-CrbKyd62.js +506 -0
- package/dist/pla-JxXT6Kb-.js +143 -0
- package/dist/postiats-BOdnTRGv.js +913 -0
- package/dist/powerquery-DTkwcXGH.js +896 -0
- package/dist/powershell-Cx53dGpt.js +245 -0
- package/dist/protobuf-Dp9vE-l-.js +426 -0
- package/dist/pug-BSjKVjwP.js +408 -0
- package/dist/python-CiN6iAi3.js +282 -0
- package/dist/qsharp-C5P1RxY3.js +291 -0
- package/dist/r-sEMYnclc.js +249 -0
- package/dist/razor-B4jDf_4z.js +556 -0
- package/dist/redis-DbzUc-fU.js +308 -0
- package/dist/redshift-nrLijj1O.js +815 -0
- package/dist/restructuredtext-CIbGUl6T.js +180 -0
- package/dist/ruby-JcYJisWg.js +517 -0
- package/dist/rust-BgbFBFXH.js +349 -0
- package/dist/sb-hRFFChi7.js +121 -0
- package/dist/scala-Cs0yVo3Q.js +376 -0
- package/dist/scheme-l_0jNtxy.js +114 -0
- package/dist/scss-C4l7ZIRR.js +268 -0
- package/dist/services/linting-service.d.ts +12 -0
- package/dist/services/linting-service.js +121 -0
- package/dist/shell-ikLk_l24.js +227 -0
- package/dist/solidity-4GxCaH9e.js +1373 -0
- package/dist/sophia-tX0WEZsZ.js +205 -0
- package/dist/sparql-D7ky-uMk.js +207 -0
- package/dist/sql-CqEfBVGS.js +859 -0
- package/dist/st-CNWQPqyI.js +422 -0
- package/dist/style.css +1 -1
- package/dist/swift-C_fDfC0d.js +318 -0
- package/dist/systemverilog-gAvsEtN_.js +582 -0
- package/dist/tcl-KbBChuA6.js +238 -0
- package/dist/tsMode-29i0IHrU.js +886 -0
- package/dist/twig-Bb652BpM.js +398 -0
- package/dist/typescript-FDohSLaF.js +349 -0
- package/dist/vb-2e5hSeUh.js +378 -0
- package/dist/wgsl-CYSDq0zg.js +445 -0
- package/dist/workers/rule-documentation.worker.d.ts +1 -0
- package/dist/workers/rule-documentation.worker.js +85 -0
- package/dist/workers/search-problems.worker.d.ts +1 -0
- package/dist/workers/search-problems.worker.js +19 -0
- package/dist/xml-BdgdiRK4.js +101 -0
- package/dist/yaml-CJDq-Ud3.js +212 -0
- package/package.json +6 -4
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export default css `
|
|
3
|
+
.filter {
|
|
4
|
+
display: flex;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.label {
|
|
8
|
+
padding-top: 7px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
sl-button::part(base){
|
|
12
|
+
border: 1px solid var(--primary-color);
|
|
13
|
+
border-radius: 0;
|
|
14
|
+
font-family: var(--font-stack), monospace;
|
|
15
|
+
background-color: var(--background-color);
|
|
16
|
+
color: var(--primary-color);
|
|
17
|
+
min-height: 20px;
|
|
18
|
+
max-height: 20px;
|
|
19
|
+
margin-top: 5px;
|
|
20
|
+
margin-left: 5px;
|
|
21
|
+
min-width: 150px;
|
|
22
|
+
max-width: 180px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
sl-button::part(label){
|
|
26
|
+
line-height: 17px;
|
|
27
|
+
font-size: 0.7rem;
|
|
28
|
+
overflow-x: hidden;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
sl-menu{
|
|
33
|
+
border: 1px solid var(--primary-color);
|
|
34
|
+
border-radius: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
sl-menu-item::part(base){
|
|
38
|
+
color: var(--primary-color);
|
|
39
|
+
font-family: var(--font-stack), monospace;
|
|
40
|
+
line-height: 17px;
|
|
41
|
+
font-size: 0.7rem;
|
|
42
|
+
--sl-color-neutral-100: var(--secondary-color-lowalpha);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
sl-input {
|
|
46
|
+
width: 100%;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
sl-input::part(base){
|
|
50
|
+
border-radius: 0;
|
|
51
|
+
border: 1px solid var(--primary-color);
|
|
52
|
+
font-family: var(--font-stack), monospace;
|
|
53
|
+
font-size: 0.7rem;
|
|
54
|
+
height: 20px;
|
|
55
|
+
padding: 0;
|
|
56
|
+
margin-top: 5px;
|
|
57
|
+
background-color: var(--background-color);
|
|
58
|
+
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
sl-input::part(input){
|
|
62
|
+
border-radius: 0;
|
|
63
|
+
height: 16px;
|
|
64
|
+
padding: 0 0 0 5px;
|
|
65
|
+
|
|
66
|
+
}
|
|
67
|
+
`;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export default css `
|
|
3
|
+
|
|
4
|
+
.problem {
|
|
5
|
+
margin: 0 5px 0 5px;
|
|
6
|
+
padding-top: 5px;
|
|
7
|
+
padding-bottom: 5px;
|
|
8
|
+
border-top: 1px dashed var(--background-color);
|
|
9
|
+
border-bottom: 1px dashed var(--secondary-color-lowalpha);
|
|
10
|
+
font-size: 0.8rem;
|
|
11
|
+
display: flex;
|
|
12
|
+
min-height: 20px;
|
|
13
|
+
line-height: 20px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
.problem:hover {
|
|
18
|
+
color: var(--primary-color);
|
|
19
|
+
font-family: var(--font-stack-bold), monospace;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
border-top: 1px dashed var(--primary-color);
|
|
22
|
+
border-bottom: 1px dashed var(--primary-color);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.problem:hover .location {
|
|
26
|
+
font-family: var(--font-stack), monospace;
|
|
27
|
+
color: var(--primary-color);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.problem:hover .problem-message {
|
|
31
|
+
color: var(--primary-color);
|
|
32
|
+
font-family: var(--font-stack), monospace;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.problem:hover pb33f-render-json-path::part(path) {
|
|
36
|
+
color: var(--font-color);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.problem.selected:hover pb33f-render-json-path::part(path) {
|
|
40
|
+
color: var(--background-color);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.problem.selected-sibling:hover pb33f-render-json-path::part(path) {
|
|
44
|
+
color: var(--font-color);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.problem.selected .location {
|
|
48
|
+
color: var(--background-color);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.problem.selected-sibling .location {
|
|
52
|
+
color: var(--font-color);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.problem.selected:hover .location {
|
|
56
|
+
color: var(--background-color);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.problem.selected:hover .problem-message {
|
|
60
|
+
color: var(--background-color);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.problem.selected-sibling:hover .location {
|
|
64
|
+
color: var(--font-color);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.problem:active {
|
|
68
|
+
color: var(--error-color);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.location {
|
|
72
|
+
min-width: 90px;
|
|
73
|
+
text-align: center;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.selected {
|
|
77
|
+
color: var(--background-color);
|
|
78
|
+
border-bottom: 1px solid var(--primary-color);
|
|
79
|
+
border-top: 1px solid var(--primary-color);
|
|
80
|
+
background-color: var(--primary-color);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.selected-sibling {
|
|
84
|
+
color: var(--primary-color);
|
|
85
|
+
//border-bottom: 1px solid var(--primary-color);
|
|
86
|
+
background-color: var(--primary-color-verylowalpha);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
p {
|
|
90
|
+
padding: 0;
|
|
91
|
+
margin:0;
|
|
92
|
+
display: inline-block;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.selected code {
|
|
96
|
+
border: 1px solid var(--primary-color-lowalpha);
|
|
97
|
+
background-color: var(--background-color);
|
|
98
|
+
color: var(--primary-color);
|
|
99
|
+
text-shadow: none;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
.location {
|
|
104
|
+
color: var(--font-color-sub2);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.selected .location {
|
|
108
|
+
font-family: var(--font-stack),monospace;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
.selected-sibling .location {
|
|
113
|
+
font-family: var(--font-stack),monospace;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.icon {
|
|
117
|
+
margin-right: 10px;
|
|
118
|
+
margin-top: 2px;
|
|
119
|
+
margin-left: 5px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.selected .icon {
|
|
123
|
+
color: var(--background-color);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.selected-sibling .icon {
|
|
127
|
+
color: var(--font-color);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
sl-icon {
|
|
131
|
+
width: 1.2em;
|
|
132
|
+
font-size: 1.1em;;
|
|
133
|
+
|
|
134
|
+
}
|
|
135
|
+
.problem-message {
|
|
136
|
+
word-wrap: break-word;
|
|
137
|
+
overflow: hidden;
|
|
138
|
+
white-space: normal;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
pb33f-render-json-path.selectedPath::part(path) {
|
|
142
|
+
color: var(--font-color);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
code {
|
|
147
|
+
font-family: var(--font-stack), monospace;
|
|
148
|
+
border: none;
|
|
149
|
+
color: var(--secondary-color);
|
|
150
|
+
border-radius: 0;
|
|
151
|
+
padding: 0;
|
|
152
|
+
margin: 0;
|
|
153
|
+
display: inline;
|
|
154
|
+
background: none;
|
|
155
|
+
vertical-align: baseline;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
code:hover {
|
|
159
|
+
border: none;
|
|
160
|
+
color: var(--primary-color);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.problem.selected code {
|
|
164
|
+
background: none;
|
|
165
|
+
border: none;
|
|
166
|
+
color: var(--background-color);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
`;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from "lit";
|
|
2
|
+
import { Problem } from "@/model/problem";
|
|
3
|
+
import { ProblemLabelView } from "@/components/problem-list/problem-label-view-filter";
|
|
4
|
+
import { ProblemList } from "@/components/problem-list/problem-list";
|
|
5
|
+
export declare class ProblemItem extends LitElement {
|
|
6
|
+
static styles: import("lit").CSSResult[];
|
|
7
|
+
source: string;
|
|
8
|
+
problem: string;
|
|
9
|
+
line: number;
|
|
10
|
+
column: number;
|
|
11
|
+
selected: boolean;
|
|
12
|
+
selectedSibling: boolean;
|
|
13
|
+
problemLabelView: ProblemLabelView;
|
|
14
|
+
prob: HTMLElement;
|
|
15
|
+
idx: number;
|
|
16
|
+
problemObject: Problem;
|
|
17
|
+
scrollOnUpdate: boolean;
|
|
18
|
+
parent: ProblemList;
|
|
19
|
+
resultIndex: number;
|
|
20
|
+
constructor();
|
|
21
|
+
renderMessage(sl: boolean): TemplateResult;
|
|
22
|
+
select(select: boolean, scroll?: boolean): void;
|
|
23
|
+
selectSibling(select: boolean, scroll?: boolean): void;
|
|
24
|
+
updated(): void;
|
|
25
|
+
selectedProblem(): void;
|
|
26
|
+
render(): TemplateResult<1>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
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, query } from "lit/decorators.js";
|
|
8
|
+
import { html, LitElement } from "lit";
|
|
9
|
+
import { ProblemClicked } from "@/events/doctor";
|
|
10
|
+
import problemItemCss from "./problem-item.css";
|
|
11
|
+
import sharedCss from "./shared.css";
|
|
12
|
+
import { getProblemClass, getProblemIcon } from "@/model/problem";
|
|
13
|
+
import { ProblemLabelView } from "@/components/problem-list/problem-label-view-filter";
|
|
14
|
+
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
15
|
+
import { marked } from "marked";
|
|
16
|
+
let ProblemItem = class ProblemItem extends LitElement {
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
this.scrollOnUpdate = true;
|
|
20
|
+
this.selectedSibling = false;
|
|
21
|
+
this.problemLabelView = ProblemLabelView.JSONPath;
|
|
22
|
+
}
|
|
23
|
+
renderMessage(sl) {
|
|
24
|
+
let render = html ``;
|
|
25
|
+
switch (this.problemLabelView) {
|
|
26
|
+
case ProblemLabelView.JSONPath:
|
|
27
|
+
render = html `
|
|
28
|
+
<pb33f-render-json-path path="${this.problem}"
|
|
29
|
+
.selected=${sl}
|
|
30
|
+
class="${this.selectedSibling ? 'selectedPath' : ''}"></pb33f-render-json-path>`;
|
|
31
|
+
break;
|
|
32
|
+
case ProblemLabelView.RuleViolation:
|
|
33
|
+
render = html `${this.problemObject.source}</>`;
|
|
34
|
+
break;
|
|
35
|
+
case ProblemLabelView.Message:
|
|
36
|
+
render = html `${unsafeHTML(marked.parse(this.problemObject.message).toString())}</>`;
|
|
37
|
+
break;
|
|
38
|
+
case ProblemLabelView.Category:
|
|
39
|
+
render = html `${this.problemObject.category}</>`;
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
return render;
|
|
43
|
+
}
|
|
44
|
+
select(select, scroll = true) {
|
|
45
|
+
this.selected = select;
|
|
46
|
+
this.scrollOnUpdate = scroll;
|
|
47
|
+
}
|
|
48
|
+
selectSibling(select, scroll = true) {
|
|
49
|
+
this.selectedSibling = select;
|
|
50
|
+
this.scrollOnUpdate = scroll;
|
|
51
|
+
}
|
|
52
|
+
updated() {
|
|
53
|
+
if (this.selected && this.scrollOnUpdate) {
|
|
54
|
+
requestAnimationFrame(() => {
|
|
55
|
+
this.scrollIntoView();
|
|
56
|
+
});
|
|
57
|
+
this.scrollOnUpdate = true;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
selectedProblem() {
|
|
61
|
+
this.selected = true;
|
|
62
|
+
this.scrollOnUpdate = false;
|
|
63
|
+
this.dispatchEvent(new CustomEvent(ProblemClicked, {
|
|
64
|
+
bubbles: false,
|
|
65
|
+
composed: true,
|
|
66
|
+
detail: {
|
|
67
|
+
problem: this,
|
|
68
|
+
launchedFromProblems: true
|
|
69
|
+
}
|
|
70
|
+
}));
|
|
71
|
+
}
|
|
72
|
+
render() {
|
|
73
|
+
let selectedClass = "";
|
|
74
|
+
let sl = false;
|
|
75
|
+
if (this.selected) {
|
|
76
|
+
selectedClass = "selected";
|
|
77
|
+
sl = true;
|
|
78
|
+
}
|
|
79
|
+
if (this.selectedSibling) {
|
|
80
|
+
selectedClass = "selected-sibling";
|
|
81
|
+
sl = true;
|
|
82
|
+
}
|
|
83
|
+
//<pb33f-render-json-path path="${this.problem}" .selected=${sl} class="${this.selectedSibling? 'selectedPath': ''}"></pb33f-render-json-path>
|
|
84
|
+
return html `
|
|
85
|
+
<div @click="${this.selectedProblem}" class="problem ${selectedClass}">
|
|
86
|
+
<div class="icon ${getProblemClass(this.problemObject)} class="${sl ? selectedClass : ''}"">
|
|
87
|
+
<sl-icon name="${getProblemIcon(this.problemObject)}"></sl-icon>
|
|
88
|
+
</div>
|
|
89
|
+
<div class="location">
|
|
90
|
+
${this.line}:${this.column}
|
|
91
|
+
</div>
|
|
92
|
+
<div class="problem-message">
|
|
93
|
+
${this.renderMessage(sl)}
|
|
94
|
+
</div>
|
|
95
|
+
</div>`;
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
ProblemItem.styles = [sharedCss, problemItemCss];
|
|
99
|
+
__decorate([
|
|
100
|
+
property()
|
|
101
|
+
], ProblemItem.prototype, "source", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
property()
|
|
104
|
+
], ProblemItem.prototype, "problem", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
property({ type: Number })
|
|
107
|
+
], ProblemItem.prototype, "line", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
property({ type: Number })
|
|
110
|
+
], ProblemItem.prototype, "column", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
property({ type: Boolean })
|
|
113
|
+
], ProblemItem.prototype, "selected", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
property({ type: Boolean })
|
|
116
|
+
], ProblemItem.prototype, "selectedSibling", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
property({ type: ProblemLabelView })
|
|
119
|
+
], ProblemItem.prototype, "problemLabelView", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
query('.problem')
|
|
122
|
+
], ProblemItem.prototype, "prob", void 0);
|
|
123
|
+
ProblemItem = __decorate([
|
|
124
|
+
customElement("pb33f-problem-item")
|
|
125
|
+
], ProblemItem);
|
|
126
|
+
export { ProblemItem };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import '@shoelace-style/shoelace/dist/components/dropdown/dropdown.js';
|
|
2
|
+
import '@shoelace-style/shoelace/dist/components/menu/menu.js';
|
|
3
|
+
import '@shoelace-style/shoelace/dist/components/menu-item/menu-item.js';
|
|
4
|
+
import { LitElement } from "lit";
|
|
5
|
+
export declare enum ProblemLabelView {
|
|
6
|
+
JSONPath = "Path",
|
|
7
|
+
RuleViolation = "Rule Violation",
|
|
8
|
+
Message = "Message",
|
|
9
|
+
Category = "Category"
|
|
10
|
+
}
|
|
11
|
+
export declare class ProblemLabelViewFilter extends LitElement {
|
|
12
|
+
static styles: import("lit").CSSResult[];
|
|
13
|
+
selectedLabel: string;
|
|
14
|
+
private readonly menuValues;
|
|
15
|
+
constructor();
|
|
16
|
+
filterChanged(event: CustomEvent): void;
|
|
17
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 '@shoelace-style/shoelace/dist/components/dropdown/dropdown.js';
|
|
8
|
+
import '@shoelace-style/shoelace/dist/components/menu/menu.js';
|
|
9
|
+
import '@shoelace-style/shoelace/dist/components/menu-item/menu-item.js';
|
|
10
|
+
import { customElement, property } from "lit/decorators.js";
|
|
11
|
+
import { html, LitElement } from "lit";
|
|
12
|
+
import problemLabelViewFilterCss from "./problem-label-view-filter.css";
|
|
13
|
+
import filterCss from "./filter.css";
|
|
14
|
+
import { ProblemLabelViewFilterChanged } from "@/events/doctor";
|
|
15
|
+
export var ProblemLabelView;
|
|
16
|
+
(function (ProblemLabelView) {
|
|
17
|
+
ProblemLabelView["JSONPath"] = "Path";
|
|
18
|
+
ProblemLabelView["RuleViolation"] = "Rule Violation";
|
|
19
|
+
ProblemLabelView["Message"] = "Message";
|
|
20
|
+
ProblemLabelView["Category"] = "Category";
|
|
21
|
+
})(ProblemLabelView || (ProblemLabelView = {}));
|
|
22
|
+
let ProblemLabelViewFilter = class ProblemLabelViewFilter extends LitElement {
|
|
23
|
+
constructor() {
|
|
24
|
+
super();
|
|
25
|
+
this.menuValues = Object.values(ProblemLabelView);
|
|
26
|
+
this.selectedLabel = this.menuValues[0].toString();
|
|
27
|
+
}
|
|
28
|
+
filterChanged(event) {
|
|
29
|
+
const menuItem = event.detail.item;
|
|
30
|
+
this.selectedLabel = menuItem.value;
|
|
31
|
+
this.dispatchEvent(new CustomEvent(ProblemLabelViewFilterChanged, {
|
|
32
|
+
composed: true,
|
|
33
|
+
detail: {
|
|
34
|
+
label: this.selectedLabel,
|
|
35
|
+
}
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
return html `
|
|
40
|
+
<div class="filter">
|
|
41
|
+
<div class="label"><label>View:</label></div>
|
|
42
|
+
<div class="dropdown">
|
|
43
|
+
<sl-dropdown skidding="5" distance="5">
|
|
44
|
+
<sl-button slot="trigger" caret>${this.selectedLabel}</sl-button>
|
|
45
|
+
<sl-menu @sl-select=${this.filterChanged}>
|
|
46
|
+
${this.menuValues.map((value) => {
|
|
47
|
+
return html `
|
|
48
|
+
<sl-menu-item value="${value}" type="checkbox" .checked=${this.selectedLabel === value}>
|
|
49
|
+
${value}
|
|
50
|
+
</sl-menu-item>`;
|
|
51
|
+
})}
|
|
52
|
+
</sl-menu>
|
|
53
|
+
</sl-dropdown>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
`;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
ProblemLabelViewFilter.styles = [problemLabelViewFilterCss, filterCss];
|
|
60
|
+
__decorate([
|
|
61
|
+
property()
|
|
62
|
+
], ProblemLabelViewFilter.prototype, "selectedLabel", void 0);
|
|
63
|
+
ProblemLabelViewFilter = __decorate([
|
|
64
|
+
customElement('pb33f-problem-label-view-filter')
|
|
65
|
+
], ProblemLabelViewFilter);
|
|
66
|
+
export { ProblemLabelViewFilter };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export default css `
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
.main-view {
|
|
6
|
+
height: 200px;
|
|
7
|
+
width: calc(100% - 2px);
|
|
8
|
+
border: 1px solid var(--primary-color);
|
|
9
|
+
word-break-wrap: break-word;
|
|
10
|
+
margin-bottom: 10px;
|
|
11
|
+
position: relative;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.problem-list-container {
|
|
16
|
+
position: relative;
|
|
17
|
+
//height: calc(100vh - 180px);
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.problem-list {
|
|
22
|
+
position: relative;
|
|
23
|
+
width: 100%;
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.problem-list::-webkit-scrollbar {
|
|
30
|
+
width: 8px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.problem-list::-webkit-scrollbar-track {
|
|
34
|
+
background-color: black;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.problem-list::-webkit-scrollbar-thumb {
|
|
38
|
+
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
|
|
39
|
+
background: var(--secondary-color-lowalpha);
|
|
40
|
+
padding: var(--global-padding);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.problem-list-container::-webkit-scrollbar {
|
|
44
|
+
width: 8px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.problem-list-container::-webkit-scrollbar-track {
|
|
48
|
+
background-color: black;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.problem-list-container::-webkit-scrollbar-thumb {
|
|
52
|
+
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
|
|
53
|
+
background: var(--secondary-color-lowalpha);
|
|
54
|
+
padding: var(--global-padding);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
`;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { ProblemItem } from "@/components/problem-list/problem-item";
|
|
3
|
+
import { MainViewSlideChangedEvent, ProblemClickedEvent, ProblemRuleFilterChangedEvent } from "@/events/doctor";
|
|
4
|
+
import { Problem } from "@/model/problem";
|
|
5
|
+
export declare class ProblemList extends LitElement {
|
|
6
|
+
static styles: import("lit").CSSResult[];
|
|
7
|
+
private searchWorker;
|
|
8
|
+
private problemList;
|
|
9
|
+
private readonly mainView;
|
|
10
|
+
private readonly problemToolbar;
|
|
11
|
+
private problemLabelView;
|
|
12
|
+
private activeProblem;
|
|
13
|
+
private readonly paginator;
|
|
14
|
+
private unfilteredProblems;
|
|
15
|
+
private activeSearch;
|
|
16
|
+
constructor();
|
|
17
|
+
private reset;
|
|
18
|
+
private addSearchWorkerListener;
|
|
19
|
+
ruleFilterChanged(event: CustomEvent<ProblemRuleFilterChangedEvent>): void;
|
|
20
|
+
ruleFilterChangedManual(event: CustomEvent<ProblemRuleFilterChangedEvent>): void;
|
|
21
|
+
private searchFilterChanged;
|
|
22
|
+
private labelFilterChanged;
|
|
23
|
+
private sortFilterChanged;
|
|
24
|
+
private extractProblemsFromList;
|
|
25
|
+
private extractRulesFromProblems;
|
|
26
|
+
private search;
|
|
27
|
+
private changeProblemLabels;
|
|
28
|
+
private changeSorting;
|
|
29
|
+
problemClicked(event: CustomEvent<ProblemClickedEvent>): void;
|
|
30
|
+
slideChanged(event: CustomEvent<MainViewSlideChangedEvent>): void;
|
|
31
|
+
private setActiveProblem;
|
|
32
|
+
get problemItems(): ProblemItem[];
|
|
33
|
+
generateProblemItems(problems: Problem[]): ProblemItem[];
|
|
34
|
+
set problems(problems: Problem[]);
|
|
35
|
+
lineClicked(line: number | undefined, scroll?: boolean, index?: number, stopCycle?: boolean): void;
|
|
36
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
37
|
+
}
|