@pb33f/cowboy-components 0.8.0 → 0.10.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/README.md +2 -0
- package/dist/{_basePickBy-DtTwxTrV.js → _basePickBy-D0MVaff7.js} +2 -2
- package/dist/{_baseUniq-C5Y4WFmx.js → _baseUniq-DVhBEtEZ.js} +1 -1
- package/dist/{arc-a-7w7y90.js → arc-DfidlRZC.js} +1 -1
- package/dist/{architecture-U656AL7Q-c_zxypEp.js → architecture-U656AL7Q-2l0oI7kq.js} +1 -1
- package/dist/{architectureDiagram-VXUJARFQ-CIhQJ6xS.js → architectureDiagram-VXUJARFQ-CluOaK7l.js} +3 -3
- package/dist/{blockDiagram-VD42YOAC-BLl5ID-l.js → blockDiagram-VD42YOAC-RbyzthW7.js} +5 -5
- package/dist/{c4Diagram-YG6GDRKO-BOGfb13x.js → c4Diagram-YG6GDRKO-Bx8eR5aW.js} +2 -2
- package/dist/{channel-DYeI56io.js → channel-Dsjz0D5Z.js} +1 -1
- package/dist/{chunk-4BX2VUAB-BeHGB7ON.js → chunk-4BX2VUAB-Dk4r_XjO.js} +1 -1
- package/dist/{chunk-55IACEB6-DgHUzWsw.js → chunk-55IACEB6-O_k-h5nN.js} +1 -1
- package/dist/{chunk-B4BG7PRW-Vs7GiQMf.js → chunk-B4BG7PRW-DVDQ5atJ.js} +4 -4
- package/dist/{chunk-DI55MBZ5-CHjdGXx0.js → chunk-DI55MBZ5-CeD8zHDH.js} +3 -3
- package/dist/{chunk-FMBD7UC4-D-H9-bHN.js → chunk-FMBD7UC4-_BECV2vM.js} +1 -1
- package/dist/{chunk-QN33PNHL-D7uE2r1Y.js → chunk-QN33PNHL-BZt9yPgN.js} +1 -1
- package/dist/{chunk-QZHKN3VN-Cp3sUp7e.js → chunk-QZHKN3VN-VPFLLErx.js} +1 -1
- package/dist/{chunk-TZMSLE5B-BmXGcXo9.js → chunk-TZMSLE5B-DRZQTDqv.js} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-9ilqiDEi.js → classDiagram-2ON5EDUG-Pjlv98sa.js} +2 -2
- package/dist/{classDiagram-2ON5EDUG-9ilqiDEi.js → classDiagram-v2-WZHVMYZB-Pjlv98sa.js} +2 -2
- package/dist/{clone-CybyMoa0.js → clone-CXHEQoEn.js} +1 -1
- package/dist/components/charts/beefy-chart.d.ts +1 -0
- package/dist/components/charts/beefy-chart.js +6 -1
- package/dist/components/charts/chart-colors.d.ts +8 -0
- package/dist/components/charts/chart-colors.js +46 -1
- package/dist/components/charts/doughnut-chart.js +10 -5
- package/dist/components/credit-ticker/credit-ticker.js +2 -6
- package/dist/components/editor/editor.js +17 -23
- package/dist/components/editor/schemas/openapi32.json +1666 -0
- package/dist/components/github/github-workspace-view.css.js +1 -0
- package/dist/components/github/github-workspace-view.d.ts +2 -0
- package/dist/components/github/github-workspace-view.js +14 -8
- package/dist/components/http-method/http-method.css.js +6 -0
- package/dist/components/manage-ruleset/manage-ruleset.css.js +1 -1
- package/dist/components/manage-ruleset/manage-ruleset.js +1 -1
- package/dist/components/manage-ruleset/rule-input.d.ts +1 -0
- package/dist/components/manage-ruleset/rule-input.js +9 -0
- package/dist/components/model-renderer/change.css.js +11 -1
- package/dist/components/model-renderer/rendered-node.css.js +1 -1
- package/dist/components/model-tree/tree.css.js +4 -1
- package/dist/components/model-tree/tree.js +11 -1
- package/dist/components/paginator/paginator.css.js +1 -1
- package/dist/components/problem-list/problem-list.css.js +3 -3
- package/dist/components/problem-list/problem-list.d.ts +2 -0
- package/dist/components/problem-list/problem-list.js +19 -0
- package/dist/components/problems-overview/problems-overview.css.js +2 -1
- package/dist/components/problems-overview/problems-overview.js +7 -6
- package/dist/components/terminal-emulator/terminal-emulator.css.js +1 -1
- package/dist/components/the-doctor/doctor-editor-panel.js +1 -0
- package/dist/components/the-doctor/doctor-navigator-panel.css.js +1 -1
- package/dist/components/the-doctor/doctor-sidebar-panel.css.js +1 -1
- package/dist/components/the-doctor/sparks.d.ts +3 -0
- package/dist/components/the-doctor/sparks.js +22 -4
- package/dist/components/the-doctor/the-doctor.css.js +4 -4
- package/dist/components/the-doctor/the-doctor.d.ts +1 -0
- package/dist/components/the-doctor/the-doctor.js +25 -24
- package/dist/components/the-doctor/upload-archive.css.js +6 -0
- package/dist/components/the-doctor/upload-archive.js +2 -0
- package/dist/components/time-vortex/history-picker.css.js +18 -1
- package/dist/components/time-vortex/history-picker.js +18 -0
- package/dist/components/time-vortex/tardis-control.css.js +20 -2
- package/dist/components/time-vortex/tardis-control.d.ts +1 -0
- package/dist/components/time-vortex/tardis-control.js +29 -3
- package/dist/components/toast/toast-manager.js +9 -6
- package/dist/components/visualizer/equalizer.css.js +1 -1
- package/dist/components/workspaces/workspace-view.css.js +1 -1
- package/dist/controllers/broker-controller.d.ts +1 -0
- package/dist/controllers/broker-controller.js +12 -7
- package/dist/controllers/diagnostic-controller.d.ts +7 -0
- package/dist/controllers/diagnostic-controller.js +101 -45
- package/dist/controllers/github-controller.js +45 -35
- package/dist/controllers/rolodex-controller.js +3 -5
- package/dist/controllers/spec-controller.d.ts +1 -0
- package/dist/controllers/spec-controller.js +15 -1
- package/dist/controllers/state-controller.js +10 -9
- package/dist/controllers/timeline-controller.js +1 -1
- package/dist/{cose-bilkent-S5V4N54A-2TG-C-n3.js → cose-bilkent-S5V4N54A-BgwjXRSW.js} +1 -1
- package/dist/{cowboy-components-BcyXo9oX.js → cowboy-components-BRANjWMG.js} +18882 -18621
- package/dist/cowboy-components.css +1 -1
- package/dist/cowboy-components.umd.cjs +1588 -1499
- package/dist/css/chroma-synxtax.css.js +14 -14
- package/dist/css/cowboy-components.css +11 -1
- package/dist/css/pb33f-theme.css +47 -8
- package/dist/css/scrollbar.css.js +1 -1
- package/dist/{dagre-6UL2VRFP-BIlmTbhO.js → dagre-6UL2VRFP-BzQ5nLXU.js} +6 -6
- package/dist/{diagram-PSM6KHXK-CeWby24E.js → diagram-PSM6KHXK-CdohCqjr.js} +4 -4
- package/dist/{diagram-QEK2KX5R-DGonyVCK.js → diagram-QEK2KX5R-BP_3efmD.js} +3 -3
- package/dist/{diagram-S2PKOQOG-mGn-y1uX.js → diagram-S2PKOQOG-BftsBKuz.js} +3 -3
- package/dist/{erDiagram-Q2GNP2WA-BlBBw4Mz.js → erDiagram-Q2GNP2WA-fSbCC-Ow.js} +4 -4
- package/dist/events/doctor.d.ts +1 -0
- package/dist/events/doctor.js +1 -0
- package/dist/{flowDiagram-NV44I4VS-BlLzzy1C.js → flowDiagram-NV44I4VS-CCPxaTIx.js} +5 -5
- package/dist/{ganttDiagram-LVOFAZNH-BoQtPC8k.js → ganttDiagram-LVOFAZNH-Cb2dn6QY.js} +2 -2
- package/dist/{gitGraph-F6HP7TQM-CShNSlrW.js → gitGraph-F6HP7TQM-B-Up3f_K.js} +1 -1
- package/dist/{gitGraphDiagram-NY62KEGX-BdpWBgHy.js → gitGraphDiagram-NY62KEGX-DdaCm8WP.js} +4 -4
- package/dist/{graph-D9HS4Ahd.js → graph-BSko0AhB.js} +2 -2
- package/dist/helpers/filename-colorizer.js +4 -2
- package/dist/info-NVLQJR56-BNIO2OjW.js +5 -0
- package/dist/{infoDiagram-F6ZHWCRC-DmhhbuMJ.js → infoDiagram-F6ZHWCRC-DoDRDWc6.js} +2 -2
- package/dist/interfaces/doctor-interfaces.d.ts +7 -0
- package/dist/{journeyDiagram-XKPGCS4Q-CpkhK8vl.js → journeyDiagram-XKPGCS4Q-B8rBrT3-.js} +4 -4
- package/dist/{kanban-definition-3W4ZIXB7-BFbucfYE.js → kanban-definition-3W4ZIXB7-qXzC-ucZ.js} +2 -2
- package/dist/{layout-B8H1_UrM.js → layout-crJEPmAx.js} +4 -4
- package/dist/{linear-Bo0rJUSQ.js → linear-C9sTEJtE.js} +1 -1
- package/dist/{mermaid-parser.core-BPror82d.js → mermaid-parser.core-quOEU4Mi.js} +11 -11
- package/dist/{mindmap-definition-VGOIOE7T-VAn-EShH.js → mindmap-definition-VGOIOE7T-BGn7cQVA.js} +3 -3
- package/dist/model/timeline.d.ts +3 -0
- package/dist/{packet-BFZMPI3H-CXPCK9Q2.js → packet-BFZMPI3H-BKreTkjY.js} +1 -1
- package/dist/pie-7BOR55EZ-DUWhTPH8.js +5 -0
- package/dist/{pieDiagram-ADFJNKIX-C0kdlQqn.js → pieDiagram-ADFJNKIX-BeLJhCCS.js} +4 -4
- package/dist/{quadrantDiagram-AYHSOK5B-CRVq6wY3.js → quadrantDiagram-AYHSOK5B-z-oixLGm.js} +2 -2
- package/dist/radar-NHE76QYJ-DXE9hYwD.js +5 -0
- package/dist/{requirementDiagram-UZGBJVZJ-B8ZGgMKn.js → requirementDiagram-UZGBJVZJ-Bso8sdSb.js} +3 -3
- package/dist/{sankeyDiagram-TZEHDZUN-CWAUJJue.js → sankeyDiagram-TZEHDZUN-BqcEpr7O.js} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-nz81a4Cq.js → sequenceDiagram-WL72ISMW-DTAwlNVG.js} +3 -3
- package/dist/services/linting-service.d.ts +1 -0
- package/dist/services/linting-service.js +22 -0
- package/dist/{stateDiagram-FKZM4ZOC-3PFzJlcG.js → stateDiagram-FKZM4ZOC-EGdzJIDA.js} +4 -4
- package/dist/{stateDiagram-v2-4FDKWEC3-Bp46vM6_.js → stateDiagram-v2-4FDKWEC3-DZo5Qb9X.js} +2 -2
- package/dist/{timeline-definition-IT6M3QCI-utm7jTLb.js → timeline-definition-IT6M3QCI-BjX2TakV.js} +2 -2
- package/dist/{treemap-KMMF4GRG-BvEKHn43.js → treemap-KMMF4GRG-D8sK0Tmc.js} +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-twqDKWMX.js → xychartDiagram-PRI3JC2R-CWx19mhU.js} +2 -2
- package/package.json +1 -1
- package/dist/info-NVLQJR56-Bpi6I8up.js +0 -5
- package/dist/pie-7BOR55EZ-CMcuUZ_S.js +0 -5
- package/dist/radar-NHE76QYJ-CX_Gyp4h.js +0 -5
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as x, c as O, g as m, k as P, h as p, j as w, l as A, m as c, n as I, t as N, o as E } from "./_baseUniq-
|
|
2
|
-
import { aR as g, aA as F, aS as M, aT as T, aU as _, aV as l, aW as $, aX as B, aY as S, aZ as y } from "./cowboy-components-
|
|
1
|
+
import { e as x, c as O, g as m, k as P, h as p, j as w, l as A, m as c, n as I, t as N, o as E } from "./_baseUniq-DVhBEtEZ.js";
|
|
2
|
+
import { aR as g, aA as F, aS as M, aT as T, aU as _, aV as l, aW as $, aX as B, aY as S, aZ as y } from "./cowboy-components-BRANjWMG.js";
|
|
3
3
|
var R = /\s/;
|
|
4
4
|
function G(n) {
|
|
5
5
|
for (var r = n.length; r-- && R.test(n.charAt(r)); )
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { be as S, bf as Rn, aW as T, bg as w, bh as xn, bi as mn, aV as sn, bj as Mn, bk as un, bl as x, aT as U, bm as Cn, bn as on, bo as Fn, bp as E, bc as gn, bq as R, aR as ln, br as Dn, bs as D, bt as Gn, bu as Un, bv as _, aZ as Bn, bw as Nn, aU as Kn, bx as X, by as jn, bz as Hn, aY as qn, aX as cn, ba as Yn, bA as M } from "./cowboy-components-
|
|
1
|
+
import { be as S, bf as Rn, aW as T, bg as w, bh as xn, bi as mn, aV as sn, bj as Mn, bk as un, bl as x, aT as U, bm as Cn, bn as on, bo as Fn, bp as E, bc as gn, bq as R, aR as ln, br as Dn, bs as D, bt as Gn, bu as Un, bv as _, aZ as Bn, bw as Nn, aU as Kn, bx as X, by as jn, bz as Hn, aY as qn, aX as cn, ba as Yn, bA as M } from "./cowboy-components-BRANjWMG.js";
|
|
2
2
|
var Zn = "[object Symbol]";
|
|
3
3
|
function B(n) {
|
|
4
4
|
return typeof n == "symbol" || S(n) && Rn(n) == Zn;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a0 as ln, a1 as an, a2 as y, a3 as tn, a4 as H, a5 as q, a6 as _, a7 as un, a8 as B, a9 as rn, aa as L, ab as o, ac as sn, ad as on, ae as fn } from "./cowboy-components-
|
|
1
|
+
import { a0 as ln, a1 as an, a2 as y, a3 as tn, a4 as H, a5 as q, a6 as _, a7 as un, a8 as B, a9 as rn, aa as L, ab as o, ac as sn, ad as on, ae as fn } from "./cowboy-components-BRANjWMG.js";
|
|
2
2
|
function cn(l) {
|
|
3
3
|
return l.innerRadius;
|
|
4
4
|
}
|
package/dist/{architectureDiagram-VXUJARFQ-CIhQJ6xS.js → architectureDiagram-VXUJARFQ-CluOaK7l.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aI as ke, _ as dt, H as Ze, V as qe, l as Se, b as Qe, a as Je, p as Ke, q as je, g as _e, s as tr, y as er, D as rr, E as ir, F as ar, c as Ee, ak as me, aJ as pe, i as nr, d as or, x as sr, aK as hr, aL as lr } from "./cowboy-components-
|
|
2
|
-
import { p as fr } from "./chunk-4BX2VUAB-
|
|
3
|
-
import { p as cr } from "./mermaid-parser.core-
|
|
1
|
+
import { aI as ke, _ as dt, H as Ze, V as qe, l as Se, b as Qe, a as Je, p as Ke, q as je, g as _e, s as tr, y as er, D as rr, E as ir, F as ar, c as Ee, ak as me, aJ as pe, i as nr, d as or, x as sr, aK as hr, aL as lr } from "./cowboy-components-BRANjWMG.js";
|
|
2
|
+
import { p as fr } from "./chunk-4BX2VUAB-Dk4r_XjO.js";
|
|
3
|
+
import { p as cr } from "./mermaid-parser.core-quOEU4Mi.js";
|
|
4
4
|
import { c as Fe } from "./cytoscape.esm-DfdJODL8.js";
|
|
5
5
|
var he = { exports: {} }, le = { exports: {} }, fe = { exports: {} }, gr = fe.exports, we;
|
|
6
6
|
function ur() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as oe } from "./chunk-FMBD7UC4-
|
|
2
|
-
import { _ as d, E as rt, d as O, e as he, l as L, y as de, A as ge, c as R, ai as ue, R as pe, S as fe, O as xe, aj as j, ak as Wt, al as ye, u as $, k as be, am as we, an as xt, i as yt, ao as me } from "./cowboy-components-
|
|
3
|
-
import { c as Le } from "./clone-
|
|
4
|
-
import { G as Se } from "./graph-
|
|
5
|
-
import { c as ke } from "./channel-
|
|
1
|
+
import { g as oe } from "./chunk-FMBD7UC4-_BECV2vM.js";
|
|
2
|
+
import { _ as d, E as rt, d as O, e as he, l as L, y as de, A as ge, c as R, ai as ue, R as pe, S as fe, O as xe, aj as j, ak as Wt, al as ye, u as $, k as be, am as we, an as xt, i as yt, ao as me } from "./cowboy-components-BRANjWMG.js";
|
|
3
|
+
import { c as Le } from "./clone-CXHEQoEn.js";
|
|
4
|
+
import { G as Se } from "./graph-BSko0AhB.js";
|
|
5
|
+
import { c as ke } from "./channel-Dsjz0D5Z.js";
|
|
6
6
|
var bt = (function() {
|
|
7
7
|
var e = /* @__PURE__ */ d(function(D, y, g, f) {
|
|
8
8
|
for (g = g || {}, f = D.length; f--; g[D[f]] = y) ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as Se, d as De } from "./chunk-TZMSLE5B-
|
|
2
|
-
import { _ as g, s as Pe, g as Be, a as Ie, b as Me, c as Bt, d as jt, l as de, e as Le, f as Ne, h as Tt, i as ge, j as Ye, w as je, k as $t, m as fe } from "./cowboy-components-
|
|
1
|
+
import { g as Se, d as De } from "./chunk-TZMSLE5B-DRZQTDqv.js";
|
|
2
|
+
import { _ as g, s as Pe, g as Be, a as Ie, b as Me, c as Bt, d as jt, l as de, e as Le, f as Ne, h as Tt, i as ge, j as Ye, w as je, k as $t, m as fe } from "./cowboy-components-BRANjWMG.js";
|
|
3
3
|
var Ft = (function() {
|
|
4
4
|
var e = /* @__PURE__ */ g(function(_t, x, m, v) {
|
|
5
5
|
for (m = m || {}, v = _t.length; v--; m[_t[v]] = x) ;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as i } from "./cowboy-components-
|
|
1
|
+
import { _ as i } from "./cowboy-components-BRANjWMG.js";
|
|
2
2
|
function t(c, e) {
|
|
3
3
|
c.accDescr && e.setAccDescription?.(c.accDescr), c.accTitle && e.setAccTitle?.(c.accTitle), c.title && e.setDiagramTitle?.(c.title);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as a, d as o } from "./cowboy-components-
|
|
1
|
+
import { _ as a, d as o } from "./cowboy-components-BRANjWMG.js";
|
|
2
2
|
var d = /* @__PURE__ */ a((t, e) => {
|
|
3
3
|
let n;
|
|
4
4
|
return e === "sandbox" && (n = o("#i" + t)), (e === "sandbox" ? o(n.nodes()[0].contentDocument.body) : o("body")).select(`[id="${t}"]`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as et } from "./chunk-FMBD7UC4-
|
|
2
|
-
import { g as tt } from "./chunk-55IACEB6-
|
|
3
|
-
import { s as st } from "./chunk-QN33PNHL-
|
|
4
|
-
import { _ as A, l as Oe, c as D, o as it, r as at, u as we, d as ee, b as nt, a as rt, s as ut, g as lt, p as ot, q as ct, k as v, y as ht, x as dt, i as pt, Q as R } from "./cowboy-components-
|
|
1
|
+
import { g as et } from "./chunk-FMBD7UC4-_BECV2vM.js";
|
|
2
|
+
import { g as tt } from "./chunk-55IACEB6-O_k-h5nN.js";
|
|
3
|
+
import { s as st } from "./chunk-QN33PNHL-BZt9yPgN.js";
|
|
4
|
+
import { _ as A, l as Oe, c as D, o as it, r as at, u as we, d as ee, b as nt, a as rt, s as ut, g as lt, p as ot, q as ct, k as v, y as ht, x as dt, i as pt, Q as R } from "./cowboy-components-BRANjWMG.js";
|
|
5
5
|
var Ve = (function() {
|
|
6
6
|
var s = /* @__PURE__ */ A(function(I, o, c, d) {
|
|
7
7
|
for (c = c || {}, d = I.length; d--; c[I[d]] = o) ;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as te } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as ee } from "./chunk-QN33PNHL-
|
|
3
|
-
import { _ as u, l as b, c as w, r as se, u as ie, a as re, b as ae, g as ne, s as oe, p as le, q as ce, T as he, k as U, y as ue } from "./cowboy-components-
|
|
1
|
+
import { g as te } from "./chunk-55IACEB6-O_k-h5nN.js";
|
|
2
|
+
import { s as ee } from "./chunk-QN33PNHL-BZt9yPgN.js";
|
|
3
|
+
import { _ as u, l as b, c as w, r as se, u as ie, a as re, b as ae, g as ne, s as oe, p as le, q as ce, T as he, k as U, y as ue } from "./cowboy-components-BRANjWMG.js";
|
|
4
4
|
var vt = (function() {
|
|
5
5
|
var t = /* @__PURE__ */ u(function(Y, o, c, n) {
|
|
6
6
|
for (c = c || {}, n = Y.length; n--; c[Y[n]] = o) ;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as a, e as w, l as x } from "./cowboy-components-
|
|
1
|
+
import { _ as a, e as w, l as x } from "./cowboy-components-BRANjWMG.js";
|
|
2
2
|
var d = /* @__PURE__ */ a((e, t, i, r) => {
|
|
3
3
|
e.attr("class", i);
|
|
4
4
|
const { width: o, height: h, x: n, y: c } = u(e, t);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as n, U as o, j as l } from "./cowboy-components-
|
|
1
|
+
import { _ as n, U as o, j as l } from "./cowboy-components-BRANjWMG.js";
|
|
2
2
|
var x = /* @__PURE__ */ n((s, t) => {
|
|
3
3
|
const e = s.append("rect");
|
|
4
4
|
if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx && e.attr("rx", t.rx), t.ry && e.attr("ry", t.ry), t.attrs !== void 0)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as r, c as s, a as e, C as t } from "./chunk-B4BG7PRW-
|
|
2
|
-
import { _ as l } from "./cowboy-components-
|
|
1
|
+
import { s as r, c as s, a as e, C as t } from "./chunk-B4BG7PRW-DVDQ5atJ.js";
|
|
2
|
+
import { _ as l } from "./cowboy-components-BRANjWMG.js";
|
|
3
3
|
var d = {
|
|
4
4
|
parser: e,
|
|
5
5
|
get db() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as r, c as s, a as e, C as t } from "./chunk-B4BG7PRW-
|
|
2
|
-
import { _ as l } from "./cowboy-components-
|
|
1
|
+
import { s as r, c as s, a as e, C as t } from "./chunk-B4BG7PRW-DVDQ5atJ.js";
|
|
2
|
+
import { _ as l } from "./cowboy-components-BRANjWMG.js";
|
|
3
3
|
var d = {
|
|
4
4
|
parser: e,
|
|
5
5
|
get db() {
|
|
@@ -97,7 +97,7 @@ let BeefyChart = class BeefyChart extends Colorful {
|
|
|
97
97
|
position: 'bottom',
|
|
98
98
|
maxHeight: 40,
|
|
99
99
|
labels: {
|
|
100
|
-
color:
|
|
100
|
+
color: this.secondary,
|
|
101
101
|
font: this.mediumFont,
|
|
102
102
|
pointStyle: 'line',
|
|
103
103
|
boxHeight: 1,
|
|
@@ -111,6 +111,11 @@ let BeefyChart = class BeefyChart extends Colorful {
|
|
|
111
111
|
super.firstUpdated();
|
|
112
112
|
this.buildChart();
|
|
113
113
|
}
|
|
114
|
+
updated(changedProperties) {
|
|
115
|
+
if (changedProperties.has('currentTheme') && this.chart) {
|
|
116
|
+
this.buildChart();
|
|
117
|
+
}
|
|
118
|
+
}
|
|
114
119
|
render() {
|
|
115
120
|
return html `
|
|
116
121
|
<canvas id="chart" style="width: ${this.width}px; height: ${this.height}px; "></canvas>
|
|
@@ -18,10 +18,18 @@ export declare class Colorful extends LitElement {
|
|
|
18
18
|
mediumFont: FontSpec;
|
|
19
19
|
fontBold: FontSpec;
|
|
20
20
|
titleFont: FontSpec;
|
|
21
|
+
protected currentTheme: string;
|
|
22
|
+
private _themeHandler;
|
|
21
23
|
constructor();
|
|
24
|
+
private readColors;
|
|
22
25
|
firstUpdated(): void;
|
|
26
|
+
disconnectedCallback(): void;
|
|
23
27
|
}
|
|
28
|
+
export declare function isLightMode(): boolean;
|
|
24
29
|
export declare const ChartColors: string[];
|
|
30
|
+
export declare const LightChartColors: string[];
|
|
25
31
|
export declare const ChartColorsChanges: string[];
|
|
32
|
+
export declare const LightChartColorsChanges: string[];
|
|
26
33
|
export declare const BinaryChartColors: string[];
|
|
34
|
+
export declare const LightBinaryChartColors: string[];
|
|
27
35
|
export declare function CreateRadialGradient(context: any, c1: any, c2: any, c3: any, c4: any): any;
|
|
@@ -1,10 +1,23 @@
|
|
|
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
|
+
};
|
|
1
7
|
import { LitElement } from "lit";
|
|
8
|
+
import { state } from "lit/decorators.js";
|
|
2
9
|
import { fontBold, fontSpec, fontTitle, mediumFont, smallFont } from "./config";
|
|
10
|
+
import { PB33F_THEME_CHANGE } from "../../events/theme.js";
|
|
3
11
|
export class Colorful extends LitElement {
|
|
4
12
|
constructor() {
|
|
5
13
|
super();
|
|
14
|
+
this.currentTheme = 'dark';
|
|
15
|
+
this._themeHandler = () => {
|
|
16
|
+
this.readColors();
|
|
17
|
+
this.currentTheme = isLightMode() ? 'light' : 'dark';
|
|
18
|
+
};
|
|
6
19
|
}
|
|
7
|
-
|
|
20
|
+
readColors() {
|
|
8
21
|
const styles = getComputedStyle(this);
|
|
9
22
|
this.primary = styles.getPropertyValue('--primary-color').trim();
|
|
10
23
|
this.secondary = styles.getPropertyValue('--secondary-color').trim();
|
|
@@ -18,13 +31,28 @@ export class Colorful extends LitElement {
|
|
|
18
31
|
this.color3 = styles.getPropertyValue('--chart-color3').trim();
|
|
19
32
|
this.color4 = styles.getPropertyValue('--chart-color4').trim();
|
|
20
33
|
this.color5 = styles.getPropertyValue('--chart-color5').trim();
|
|
34
|
+
}
|
|
35
|
+
firstUpdated() {
|
|
36
|
+
this.readColors();
|
|
37
|
+
this.currentTheme = isLightMode() ? 'light' : 'dark';
|
|
21
38
|
this.font = fontSpec;
|
|
22
39
|
this.smallFont = smallFont;
|
|
23
40
|
this.mediumFont = mediumFont;
|
|
24
41
|
this.titleFont = fontTitle;
|
|
25
42
|
this.fontBold = fontBold;
|
|
43
|
+
window.addEventListener(PB33F_THEME_CHANGE, this._themeHandler);
|
|
44
|
+
}
|
|
45
|
+
disconnectedCallback() {
|
|
46
|
+
super.disconnectedCallback();
|
|
47
|
+
window.removeEventListener(PB33F_THEME_CHANGE, this._themeHandler);
|
|
26
48
|
}
|
|
27
49
|
}
|
|
50
|
+
__decorate([
|
|
51
|
+
state()
|
|
52
|
+
], Colorful.prototype, "currentTheme", void 0);
|
|
53
|
+
export function isLightMode() {
|
|
54
|
+
return document.documentElement.getAttribute('theme') === 'light';
|
|
55
|
+
}
|
|
28
56
|
export const ChartColors = [
|
|
29
57
|
"#f83aff",
|
|
30
58
|
"rgba(98, 196, 255, 1)",
|
|
@@ -33,15 +61,32 @@ export const ChartColors = [
|
|
|
33
61
|
"rgba(248,58,255,0.2)",
|
|
34
62
|
"rgba(98, 196, 255, 0.5)"
|
|
35
63
|
];
|
|
64
|
+
export const LightChartColors = [
|
|
65
|
+
"rgba(0, 0, 0, 0.6)",
|
|
66
|
+
"rgba(0, 0, 0, 0.4)",
|
|
67
|
+
"rgba(0, 0, 0, 0.25)",
|
|
68
|
+
"rgba(0, 0, 0, 0.15)",
|
|
69
|
+
"rgba(0, 0, 0, 0.08)",
|
|
70
|
+
"rgba(0, 0, 0, 0.5)"
|
|
71
|
+
];
|
|
36
72
|
export const ChartColorsChanges = [
|
|
37
73
|
"#f83aff",
|
|
38
74
|
"#00FF00",
|
|
39
75
|
"#787878",
|
|
40
76
|
];
|
|
77
|
+
export const LightChartColorsChanges = [
|
|
78
|
+
"rgba(0, 0, 0, 0.6)",
|
|
79
|
+
"rgba(0, 0, 0, 0.35)",
|
|
80
|
+
"rgba(0, 0, 0, 0.15)",
|
|
81
|
+
];
|
|
41
82
|
export const BinaryChartColors = [
|
|
42
83
|
"#ff246b",
|
|
43
84
|
"rgba(98, 196, 255, 1)",
|
|
44
85
|
];
|
|
86
|
+
export const LightBinaryChartColors = [
|
|
87
|
+
"rgba(0, 0, 0, 0.6)",
|
|
88
|
+
"rgba(0, 0, 0, 0.25)",
|
|
89
|
+
];
|
|
45
90
|
const cache = new Map();
|
|
46
91
|
let width = null;
|
|
47
92
|
let height = null;
|
|
@@ -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 } from "lit";
|
|
9
9
|
import Chart from 'chart.js/auto';
|
|
10
|
-
import { BinaryChartColors, ChartColors, ChartColorsChanges, Colorful, } from "./chart-colors";
|
|
10
|
+
import { BinaryChartColors, ChartColors, ChartColorsChanges, Colorful, isLightMode, LightBinaryChartColors, LightChartColors, LightChartColorsChanges } from "./chart-colors";
|
|
11
11
|
let DoughnutChart = class DoughnutChart extends Colorful {
|
|
12
12
|
constructor() {
|
|
13
13
|
super();
|
|
@@ -39,6 +39,7 @@ let DoughnutChart = class DoughnutChart extends Colorful {
|
|
|
39
39
|
const needsRebuild = !this.chart ||
|
|
40
40
|
changedProperties.has('changesChart') ||
|
|
41
41
|
changedProperties.has('breakingChanges') ||
|
|
42
|
+
changedProperties.has('currentTheme') ||
|
|
42
43
|
this.dataChanged();
|
|
43
44
|
if (!needsRebuild) {
|
|
44
45
|
return;
|
|
@@ -46,11 +47,15 @@ let DoughnutChart = class DoughnutChart extends Colorful {
|
|
|
46
47
|
if (this.chart) {
|
|
47
48
|
this.chart.destroy();
|
|
48
49
|
}
|
|
50
|
+
const light = isLightMode();
|
|
49
51
|
if (this.changesChart) {
|
|
50
|
-
this.colors = ChartColorsChanges;
|
|
52
|
+
this.colors = light ? LightChartColorsChanges : ChartColorsChanges;
|
|
51
53
|
}
|
|
52
|
-
if (this.breakingChanges) {
|
|
53
|
-
this.colors = BinaryChartColors;
|
|
54
|
+
else if (this.breakingChanges) {
|
|
55
|
+
this.colors = light ? LightBinaryChartColors : BinaryChartColors;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
this.colors = light ? LightChartColors : ChartColors;
|
|
54
59
|
}
|
|
55
60
|
this.datasets.forEach((data) => {
|
|
56
61
|
data.backgroundColor = this.colors;
|
|
@@ -102,7 +107,7 @@ let DoughnutChart = class DoughnutChart extends Colorful {
|
|
|
102
107
|
position: 'right',
|
|
103
108
|
maxHeight: 40,
|
|
104
109
|
labels: {
|
|
105
|
-
color:
|
|
110
|
+
color: this.secondary,
|
|
106
111
|
font: this.mediumFont,
|
|
107
112
|
}
|
|
108
113
|
},
|
|
@@ -50,13 +50,9 @@ let CreditTicker = class CreditTicker extends LitElement {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
|
-
if (!this.visible) {
|
|
53
|
+
if (!this.visible || this.credits < 0) {
|
|
54
54
|
return html ``;
|
|
55
55
|
}
|
|
56
|
-
let credits = this.credits;
|
|
57
|
-
if (credits < 0) {
|
|
58
|
-
credits = '--';
|
|
59
|
-
}
|
|
60
56
|
let arrowClass = 'ok';
|
|
61
57
|
if (this.credits <= 10 && this.credits > 0) {
|
|
62
58
|
arrowClass = 'warning';
|
|
@@ -68,7 +64,7 @@ let CreditTicker = class CreditTicker extends LitElement {
|
|
|
68
64
|
<div class="credit-ticker ${arrowClass}">
|
|
69
65
|
<sl-icon name="cash-coin" aria-hidden="true"></sl-icon>
|
|
70
66
|
<span class="credits">
|
|
71
|
-
<sl-format-number value="${credits}"></sl-format-number>
|
|
67
|
+
<sl-format-number value="${this.credits}"></sl-format-number>
|
|
72
68
|
</span>
|
|
73
69
|
<div class="arrow">
|
|
74
70
|
<sl-animation
|
|
@@ -16,6 +16,7 @@ import editorCss from "./editor.css.js";
|
|
|
16
16
|
// schemas
|
|
17
17
|
import openapi3 from './schemas/openapi3.json';
|
|
18
18
|
import openapi31 from './schemas/openapi31.json';
|
|
19
|
+
import openapi32 from './schemas/openapi32.json';
|
|
19
20
|
// register the YAML worker (only once)
|
|
20
21
|
configureMonacoYaml(monaco, {
|
|
21
22
|
// mirror the old setDiagnosticsOptions flags:
|
|
@@ -24,18 +25,7 @@ configureMonacoYaml(monaco, {
|
|
|
24
25
|
completion: true,
|
|
25
26
|
validate: true,
|
|
26
27
|
format: true,
|
|
27
|
-
schemas: [
|
|
28
|
-
// {
|
|
29
|
-
// uri: "inmemory://schema/openapi-3.0.json",
|
|
30
|
-
// fileMatch: ["*.yaml","*.yml"],
|
|
31
|
-
// schema: openapi3
|
|
32
|
-
// },
|
|
33
|
-
{
|
|
34
|
-
uri: "inmemory://schema/openapi-3.1.json",
|
|
35
|
-
fileMatch: ["*.yaml", "*.yml"],
|
|
36
|
-
schema: openapi31
|
|
37
|
-
}
|
|
38
|
-
]
|
|
28
|
+
schemas: []
|
|
39
29
|
});
|
|
40
30
|
const editorGreen = '#00FF00FF';
|
|
41
31
|
const editorGreenDim = '#008a00';
|
|
@@ -49,9 +39,9 @@ const editorPink = '#E400FB';
|
|
|
49
39
|
const editorGreenLight = '#000000';
|
|
50
40
|
const editorGreenDimLight = '#444444';
|
|
51
41
|
const editorGreenDimmerLight = 'rgba(0, 0, 0, 0.15)';
|
|
52
|
-
const editorRedLight = '#
|
|
53
|
-
const editorRedDimLight = 'rgba(
|
|
54
|
-
const editorRedDimmerLight = 'rgba(
|
|
42
|
+
const editorRedLight = '#000000';
|
|
43
|
+
const editorRedDimLight = 'rgba(0, 0, 0, 0.25)';
|
|
44
|
+
const editorRedDimmerLight = 'rgba(0, 0, 0, 0.12)';
|
|
55
45
|
const editorBrownLight = 'rgba(0, 0, 0, 0.08)';
|
|
56
46
|
const editorBlueLight = '#000000';
|
|
57
47
|
const editorPinkLight = '#000000';
|
|
@@ -258,7 +248,7 @@ function generatePb33fLightTheme() {
|
|
|
258
248
|
"foreground": "000000",
|
|
259
249
|
"token": "keyword"
|
|
260
250
|
},
|
|
261
|
-
{ token: 'constant', foreground: '
|
|
251
|
+
{ token: 'constant', foreground: '000000' },
|
|
262
252
|
{
|
|
263
253
|
"foreground": "888888",
|
|
264
254
|
"token": "comment",
|
|
@@ -284,7 +274,7 @@ function generatePb33fLightTheme() {
|
|
|
284
274
|
'editor.lineHighlightBackground': '#e8e8e8',
|
|
285
275
|
'editorLineNumber.foreground': '#aaaaaa',
|
|
286
276
|
'editorLineNumber.activeForeground': '#000000',
|
|
287
|
-
'editor.inactiveSelectionBackground': 'rgba(
|
|
277
|
+
'editor.inactiveSelectionBackground': 'rgba(0, 0, 0, 0.15)',
|
|
288
278
|
'diffEditor.removedTextBackground': editorRedDimLight,
|
|
289
279
|
'diffEditor.insertedTextBackground': editorGreenDimmerLight,
|
|
290
280
|
'diffEditor.insertedLineBackground': editorBrownLight,
|
|
@@ -302,10 +292,10 @@ function generatePb33fLightTheme() {
|
|
|
302
292
|
'editorBracketHighlight.foreground2': '#444444',
|
|
303
293
|
'editorBracketHighlight.foreground3': '#666666',
|
|
304
294
|
'editorBracketHighlight.foreground4': '#888888',
|
|
305
|
-
'editorError.foreground': '#
|
|
295
|
+
'editorError.foreground': '#000000',
|
|
306
296
|
'editorWarning.foreground': '#888888',
|
|
307
297
|
'editorInfo.foreground': '#cccccc',
|
|
308
|
-
'editorOverviewRuler.errorForeground': '#
|
|
298
|
+
'editorOverviewRuler.errorForeground': '#000000',
|
|
309
299
|
'editorOverviewRuler.warningForeground': '#888888',
|
|
310
300
|
'editorOverviewRuler.infoForeground': '#cccccc',
|
|
311
301
|
}
|
|
@@ -363,8 +353,12 @@ function generateDeadLightTheme() {
|
|
|
363
353
|
'editorLineNumber.foreground': '#cccccc',
|
|
364
354
|
'editorLineNumber.activeForeground': '#aaaaaa',
|
|
365
355
|
'editor.inactiveSelectionBackground': '#f0f0f0',
|
|
366
|
-
'diffEditor.removedTextBackground': 'rgba(
|
|
356
|
+
'diffEditor.removedTextBackground': 'rgba(0, 0, 0, 0.12)',
|
|
367
357
|
'diffEditor.insertedTextBackground': 'rgba(0, 0, 0, 0.05)',
|
|
358
|
+
'diffEditor.insertedLineBackground': 'rgba(0, 0, 0, 0.04)',
|
|
359
|
+
'diffEditor.removedLineBackground': 'rgba(0, 0, 0, 0.08)',
|
|
360
|
+
'diffEditorGutter.insertedLineBackground': 'rgba(0, 0, 0, 0.04)',
|
|
361
|
+
'diffEditorGutter.removedLineBackground': 'rgba(0, 0, 0, 0.08)',
|
|
368
362
|
'editorLink.activeForeground': '#bbbbbb',
|
|
369
363
|
'editorHoverWidget.background': '#fafafa',
|
|
370
364
|
'editorHoverWidget.border': '#dddddd',
|
|
@@ -656,13 +650,13 @@ let SpecEditor = class SpecEditor extends LitElement {
|
|
|
656
650
|
if (!m) {
|
|
657
651
|
return; // no version yet
|
|
658
652
|
}
|
|
659
|
-
const ver = m[1].startsWith('3.1') ? '3.1' : '3.0';
|
|
653
|
+
const ver = m[1].startsWith('3.2') ? '3.2' : m[1].startsWith('3.1') ? '3.1' : '3.0';
|
|
660
654
|
if (ver === this.currentVersion) {
|
|
661
655
|
return; // no change
|
|
662
656
|
}
|
|
663
657
|
this.currentVersion = ver;
|
|
664
658
|
// pick the right JSON schema
|
|
665
|
-
const schema =
|
|
659
|
+
const schema = ver === '3.2' ? openapi32 : ver === '3.1' ? openapi31 : openapi3;
|
|
666
660
|
const uri = `inmemory://schema/openapi-${ver}.json`;
|
|
667
661
|
// 4) update monaco-yaml with the new schema
|
|
668
662
|
const settings = {
|
|
@@ -918,7 +912,7 @@ let SpecEditor = class SpecEditor extends LitElement {
|
|
|
918
912
|
window
|
|
919
913
|
.matchMedia("(prefers-color-scheme: dark)")
|
|
920
914
|
.addEventListener("change", () => {
|
|
921
|
-
monaco.editor.setTheme(this.
|
|
915
|
+
monaco.editor.setTheme(getActiveTheme(this.isActive, this.isLightTheme));
|
|
922
916
|
});
|
|
923
917
|
// Apply any pending value that was set before Monaco was initialized
|
|
924
918
|
if (this.pendingValue && this.editor && !this.diffMode) {
|