@pb33f/cowboy-components 0.11.0 → 0.12.1

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.
Files changed (73) hide show
  1. package/dist/{_basePickBy-D0MVaff7.js → _basePickBy-CHhH8kjm.js} +2 -2
  2. package/dist/{_baseUniq-DVhBEtEZ.js → _baseUniq-CqLfUP_m.js} +1 -1
  3. package/dist/{arc-DfidlRZC.js → arc-Bc0dbGi3.js} +1 -1
  4. package/dist/{architecture-U656AL7Q-2l0oI7kq.js → architecture-U656AL7Q-B1Af1iSx.js} +1 -1
  5. package/dist/{architectureDiagram-VXUJARFQ-CluOaK7l.js → architectureDiagram-VXUJARFQ-CJl5OVfp.js} +3 -3
  6. package/dist/{blockDiagram-VD42YOAC-RbyzthW7.js → blockDiagram-VD42YOAC-CICDv6Wk.js} +5 -5
  7. package/dist/{c4Diagram-YG6GDRKO-Bx8eR5aW.js → c4Diagram-YG6GDRKO-MIX4hsr0.js} +2 -2
  8. package/dist/{channel-Dsjz0D5Z.js → channel-DrLe0ToL.js} +1 -1
  9. package/dist/{chunk-4BX2VUAB-Dk4r_XjO.js → chunk-4BX2VUAB-C0WUXJTj.js} +1 -1
  10. package/dist/{chunk-55IACEB6-O_k-h5nN.js → chunk-55IACEB6-BQmuOZTD.js} +1 -1
  11. package/dist/{chunk-B4BG7PRW-DVDQ5atJ.js → chunk-B4BG7PRW-BVzpD5kO.js} +4 -4
  12. package/dist/{chunk-DI55MBZ5-CeD8zHDH.js → chunk-DI55MBZ5-BBKOtSgz.js} +3 -3
  13. package/dist/{chunk-FMBD7UC4-_BECV2vM.js → chunk-FMBD7UC4-CKC9V5WI.js} +1 -1
  14. package/dist/{chunk-QN33PNHL-BZt9yPgN.js → chunk-QN33PNHL-BpLt0jar.js} +1 -1
  15. package/dist/{chunk-QZHKN3VN-VPFLLErx.js → chunk-QZHKN3VN-D8_F_eNC.js} +1 -1
  16. package/dist/{chunk-TZMSLE5B-DRZQTDqv.js → chunk-TZMSLE5B-DT1-HT9H.js} +1 -1
  17. package/dist/{classDiagram-v2-WZHVMYZB-Pjlv98sa.js → classDiagram-2ON5EDUG-Cw7wLeoA.js} +2 -2
  18. package/dist/{classDiagram-2ON5EDUG-Pjlv98sa.js → classDiagram-v2-WZHVMYZB-Cw7wLeoA.js} +2 -2
  19. package/dist/{clone-CXHEQoEn.js → clone-ygSTXFFk.js} +1 -1
  20. package/dist/components/charts/beefy-chart.d.ts +4 -1
  21. package/dist/components/charts/beefy-chart.js +25 -5
  22. package/dist/components/editor/editor.js +6 -2
  23. package/dist/components/github/github-workspace-view.js +1 -1
  24. package/dist/components/model-icon/doctor-icon.d.ts +1 -1
  25. package/dist/components/model-icon/doctor-icon.js +6 -4
  26. package/dist/components/model-icon/model-icon.d.ts +3 -0
  27. package/dist/components/model-icon/model-icon.js +10 -0
  28. package/dist/components/problems-overview/problems-overview.css.js +1 -1
  29. package/dist/components/the-doctor/status-bar.css.js +23 -2
  30. package/dist/components/the-doctor/status-bar.js +1 -1
  31. package/dist/components/the-doctor/the-doctor.css.js +5 -1
  32. package/dist/components/time-vortex/timeline-view.css.js +11 -0
  33. package/dist/components/time-vortex/timeline-view.js +0 -1
  34. package/dist/{cose-bilkent-S5V4N54A-BgwjXRSW.js → cose-bilkent-S5V4N54A-DxgFNfEN.js} +1 -1
  35. package/dist/{cowboy-components-BRANjWMG.js → cowboy-components-Bg77T9d-.js} +832 -773
  36. package/dist/cowboy-components.css +1 -1
  37. package/dist/cowboy-components.umd.cjs +240 -201
  38. package/dist/css/cowboy-components.css +3 -0
  39. package/dist/{dagre-6UL2VRFP-BzQ5nLXU.js → dagre-6UL2VRFP-D9TgF5Zl.js} +6 -6
  40. package/dist/{diagram-PSM6KHXK-CdohCqjr.js → diagram-PSM6KHXK-BYwvaRBx.js} +4 -4
  41. package/dist/{diagram-QEK2KX5R-BP_3efmD.js → diagram-QEK2KX5R-D5qHrA0J.js} +3 -3
  42. package/dist/{diagram-S2PKOQOG-BftsBKuz.js → diagram-S2PKOQOG-fAU_B7kH.js} +3 -3
  43. package/dist/{erDiagram-Q2GNP2WA-fSbCC-Ow.js → erDiagram-Q2GNP2WA-hZ_gfIFY.js} +4 -4
  44. package/dist/{flowDiagram-NV44I4VS-CCPxaTIx.js → flowDiagram-NV44I4VS-vUzBvpAl.js} +5 -5
  45. package/dist/{ganttDiagram-LVOFAZNH-Cb2dn6QY.js → ganttDiagram-LVOFAZNH-WYbgDSC6.js} +2 -2
  46. package/dist/{gitGraph-F6HP7TQM-B-Up3f_K.js → gitGraph-F6HP7TQM-BGxu6gOF.js} +1 -1
  47. package/dist/{gitGraphDiagram-NY62KEGX-DdaCm8WP.js → gitGraphDiagram-NY62KEGX-fZaPPkg2.js} +4 -4
  48. package/dist/{graph-BSko0AhB.js → graph-DXbidQWz.js} +2 -2
  49. package/dist/info-NVLQJR56-BRqR8nwN.js +5 -0
  50. package/dist/{infoDiagram-F6ZHWCRC-DoDRDWc6.js → infoDiagram-F6ZHWCRC-CE5aCiKV.js} +2 -2
  51. package/dist/{journeyDiagram-XKPGCS4Q-B8rBrT3-.js → journeyDiagram-XKPGCS4Q-DJ6V2dBQ.js} +4 -4
  52. package/dist/{kanban-definition-3W4ZIXB7-qXzC-ucZ.js → kanban-definition-3W4ZIXB7-CHwozqlt.js} +2 -2
  53. package/dist/{layout-crJEPmAx.js → layout-D2zY0T7Y.js} +4 -4
  54. package/dist/{linear-C9sTEJtE.js → linear-BTUJ7KAT.js} +1 -1
  55. package/dist/{mermaid-parser.core-quOEU4Mi.js → mermaid-parser.core-CyYIBqRM.js} +11 -11
  56. package/dist/{mindmap-definition-VGOIOE7T-BGn7cQVA.js → mindmap-definition-VGOIOE7T-CEY6R2uT.js} +3 -3
  57. package/dist/{packet-BFZMPI3H-BKreTkjY.js → packet-BFZMPI3H-BRke7E6n.js} +1 -1
  58. package/dist/pie-7BOR55EZ-CSvfOnqQ.js +5 -0
  59. package/dist/{pieDiagram-ADFJNKIX-BeLJhCCS.js → pieDiagram-ADFJNKIX-COTsjh1f.js} +4 -4
  60. package/dist/{quadrantDiagram-AYHSOK5B-z-oixLGm.js → quadrantDiagram-AYHSOK5B-CwZFHRdc.js} +2 -2
  61. package/dist/radar-NHE76QYJ-COI8FsH2.js +5 -0
  62. package/dist/{requirementDiagram-UZGBJVZJ-Bso8sdSb.js → requirementDiagram-UZGBJVZJ-IWxwgSOA.js} +3 -3
  63. package/dist/{sankeyDiagram-TZEHDZUN-BqcEpr7O.js → sankeyDiagram-TZEHDZUN-CNxVVwLZ.js} +1 -1
  64. package/dist/{sequenceDiagram-WL72ISMW-DTAwlNVG.js → sequenceDiagram-WL72ISMW-DKEYvd1s.js} +3 -3
  65. package/dist/{stateDiagram-FKZM4ZOC-EGdzJIDA.js → stateDiagram-FKZM4ZOC-YsmqtK1x.js} +4 -4
  66. package/dist/{stateDiagram-v2-4FDKWEC3-DZo5Qb9X.js → stateDiagram-v2-4FDKWEC3-DHLeiZBf.js} +2 -2
  67. package/dist/{timeline-definition-IT6M3QCI-BjX2TakV.js → timeline-definition-IT6M3QCI-wc-Q7mjm.js} +2 -2
  68. package/dist/{treemap-KMMF4GRG-D8sK0Tmc.js → treemap-KMMF4GRG-CRJ0PvT3.js} +1 -1
  69. package/dist/{xychartDiagram-PRI3JC2R-CWx19mhU.js → xychartDiagram-PRI3JC2R-C9a1QBu6.js} +2 -2
  70. package/package.json +1 -1
  71. package/dist/info-NVLQJR56-BNIO2OjW.js +0 -5
  72. package/dist/pie-7BOR55EZ-DUWhTPH8.js +0 -5
  73. package/dist/radar-NHE76QYJ-DXE9hYwD.js +0 -5
@@ -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-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";
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-CqLfUP_m.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-Bg77T9d-.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-BRANjWMG.js";
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-Bg77T9d-.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-BRANjWMG.js";
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-Bg77T9d-.js";
2
2
  function cn(l) {
3
3
  return l.innerRadius;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { A as c, e as t } from "./mermaid-parser.core-quOEU4Mi.js";
1
+ import { A as c, e as t } from "./mermaid-parser.core-CyYIBqRM.js";
2
2
  export {
3
3
  c as ArchitectureModule,
4
4
  t as createArchitectureServices
@@ -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-BRANjWMG.js";
2
- import { p as fr } from "./chunk-4BX2VUAB-Dk4r_XjO.js";
3
- import { p as cr } from "./mermaid-parser.core-quOEU4Mi.js";
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-Bg77T9d-.js";
2
+ import { p as fr } from "./chunk-4BX2VUAB-C0WUXJTj.js";
3
+ import { p as cr } from "./mermaid-parser.core-CyYIBqRM.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-_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";
1
+ import { g as oe } from "./chunk-FMBD7UC4-CKC9V5WI.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-Bg77T9d-.js";
3
+ import { c as Le } from "./clone-ygSTXFFk.js";
4
+ import { G as Se } from "./graph-DXbidQWz.js";
5
+ import { c as ke } from "./channel-DrLe0ToL.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-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";
1
+ import { g as Se, d as De } from "./chunk-TZMSLE5B-DT1-HT9H.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-Bg77T9d-.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 { ap as o, aq as n } from "./cowboy-components-BRANjWMG.js";
1
+ import { ap as o, aq as n } from "./cowboy-components-Bg77T9d-.js";
2
2
  const t = (a, r) => o.lang.round(n.parse(a)[r]);
3
3
  export {
4
4
  t as c
@@ -1,4 +1,4 @@
1
- import { _ as i } from "./cowboy-components-BRANjWMG.js";
1
+ import { _ as i } from "./cowboy-components-Bg77T9d-.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-BRANjWMG.js";
1
+ import { _ as a, d as o } from "./cowboy-components-Bg77T9d-.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-_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";
1
+ import { g as et } from "./chunk-FMBD7UC4-CKC9V5WI.js";
2
+ import { g as tt } from "./chunk-55IACEB6-BQmuOZTD.js";
3
+ import { s as st } from "./chunk-QN33PNHL-BpLt0jar.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-Bg77T9d-.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-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";
1
+ import { g as te } from "./chunk-55IACEB6-BQmuOZTD.js";
2
+ import { s as ee } from "./chunk-QN33PNHL-BpLt0jar.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-Bg77T9d-.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 e } from "./cowboy-components-BRANjWMG.js";
1
+ import { _ as e } from "./cowboy-components-Bg77T9d-.js";
2
2
  var l = /* @__PURE__ */ e(() => `
3
3
  /* Font Awesome icon styling - consolidated */
4
4
  .label-icon {
@@ -1,4 +1,4 @@
1
- import { _ as a, e as w, l as x } from "./cowboy-components-BRANjWMG.js";
1
+ import { _ as a, e as w, l as x } from "./cowboy-components-Bg77T9d-.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 s } from "./cowboy-components-BRANjWMG.js";
1
+ import { _ as s } from "./cowboy-components-Bg77T9d-.js";
2
2
  var t, e = (t = class {
3
3
  /**
4
4
  * @param init - Function that creates the default state.
@@ -1,4 +1,4 @@
1
- import { _ as n, U as o, j as l } from "./cowboy-components-BRANjWMG.js";
1
+ import { _ as n, U as o, j as l } from "./cowboy-components-Bg77T9d-.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-DVDQ5atJ.js";
2
- import { _ as l } from "./cowboy-components-BRANjWMG.js";
1
+ import { s as r, c as s, a as e, C as t } from "./chunk-B4BG7PRW-BVzpD5kO.js";
2
+ import { _ as l } from "./cowboy-components-Bg77T9d-.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-DVDQ5atJ.js";
2
- import { _ as l } from "./cowboy-components-BRANjWMG.js";
1
+ import { s as r, c as s, a as e, C as t } from "./chunk-B4BG7PRW-BVzpD5kO.js";
2
+ import { _ as l } from "./cowboy-components-Bg77T9d-.js";
3
3
  var d = {
4
4
  parser: e,
5
5
  get db() {
@@ -1,4 +1,4 @@
1
- import { b as r } from "./_baseUniq-DVhBEtEZ.js";
1
+ import { b as r } from "./_baseUniq-CqLfUP_m.js";
2
2
  var e = 4;
3
3
  function a(o) {
4
4
  return r(o, e);
@@ -12,10 +12,13 @@ export declare class BeefyChart extends Colorful {
12
12
  width: number;
13
13
  stepSize: number;
14
14
  chartType: any;
15
- chart: Chart;
15
+ chart: Chart | null;
16
16
  constructor();
17
17
  updateChart(): void;
18
18
  buildChart(): void;
19
+ connectedCallback(): void;
20
+ disconnectedCallback(): void;
21
+ resize(): void;
19
22
  firstUpdated(): void;
20
23
  updated(changedProperties: Map<string, unknown>): void;
21
24
  render(): import("lit-html").TemplateResult<1>;
@@ -14,7 +14,6 @@ let BeefyChart = class BeefyChart extends Colorful {
14
14
  this.title = 'chart';
15
15
  this.legend = false;
16
16
  this.height = 458;
17
- this.width = 800;
18
17
  this.smallTitle = false;
19
18
  this.stepSize = 1;
20
19
  this.chartType = 'line';
@@ -42,6 +41,7 @@ let BeefyChart = class BeefyChart extends Colorful {
42
41
  },
43
42
  options: {
44
43
  responsive: true,
44
+ maintainAspectRatio: false,
45
45
  elements: {
46
46
  point: {
47
47
  borderColor: this.secondary,
@@ -107,6 +107,22 @@ let BeefyChart = class BeefyChart extends Colorful {
107
107
  }
108
108
  });
109
109
  }
110
+ connectedCallback() {
111
+ super.connectedCallback();
112
+ if (!this.chart && this.hasUpdated) {
113
+ this.updateComplete.then(() => this.buildChart());
114
+ }
115
+ }
116
+ disconnectedCallback() {
117
+ super.disconnectedCallback();
118
+ if (this.chart) {
119
+ this.chart.destroy();
120
+ this.chart = null;
121
+ }
122
+ }
123
+ resize() {
124
+ this.chart?.resize();
125
+ }
110
126
  firstUpdated() {
111
127
  super.firstUpdated();
112
128
  this.buildChart();
@@ -118,16 +134,20 @@ let BeefyChart = class BeefyChart extends Colorful {
118
134
  }
119
135
  render() {
120
136
  return html `
121
- <canvas id="chart" style="width: ${this.width}px; height: ${this.height}px; "></canvas>
137
+ <div class="chart-container" style="height: ${this.height}px;${this.width ? ` max-width: ${this.width}px;` : ''}">
138
+ <canvas id="chart" style="width: 100%; height: ${this.height}px;"></canvas>
139
+ </div>
122
140
  `;
123
141
  }
124
142
  };
125
143
  BeefyChart.styles = css `
126
144
  :host {
127
- display: block; /* ensures the host takes up space */
128
- /* Optionally, set explicit dimensions if needed */
145
+ display: block;
146
+ width: 100%;
147
+ }
148
+ .chart-container {
149
+ position: relative;
129
150
  width: 100%;
130
-
131
151
  }`;
132
152
  __decorate([
133
153
  property()
@@ -274,7 +274,9 @@ function generatePb33fLightTheme() {
274
274
  'editor.lineHighlightBackground': '#e8e8e8',
275
275
  'editorLineNumber.foreground': '#aaaaaa',
276
276
  'editorLineNumber.activeForeground': '#000000',
277
- 'editor.inactiveSelectionBackground': 'rgba(0, 0, 0, 0.15)',
277
+ 'editor.selectionBackground': 'rgba(0, 0, 0, 0.15)',
278
+ 'editor.inactiveSelectionBackground': 'rgba(0, 0, 0, 0.1)',
279
+ 'editor.selectionHighlightBackground': 'rgba(0, 0, 0, 0.08)',
278
280
  'diffEditor.removedTextBackground': editorRedDimLight,
279
281
  'diffEditor.insertedTextBackground': editorGreenDimmerLight,
280
282
  'diffEditor.insertedLineBackground': editorBrownLight,
@@ -352,7 +354,9 @@ function generateDeadLightTheme() {
352
354
  'editor.lineHighlightBackground': '#fafafa',
353
355
  'editorLineNumber.foreground': '#cccccc',
354
356
  'editorLineNumber.activeForeground': '#aaaaaa',
355
- 'editor.inactiveSelectionBackground': '#f0f0f0',
357
+ 'editor.selectionBackground': 'rgba(0, 0, 0, 0.1)',
358
+ 'editor.inactiveSelectionBackground': 'rgba(0, 0, 0, 0.06)',
359
+ 'editor.selectionHighlightBackground': 'rgba(0, 0, 0, 0.05)',
356
360
  'diffEditor.removedTextBackground': 'rgba(0, 0, 0, 0.12)',
357
361
  'diffEditor.insertedTextBackground': 'rgba(0, 0, 0, 0.05)',
358
362
  'diffEditor.insertedLineBackground': 'rgba(0, 0, 0, 0.04)',
@@ -368,7 +368,7 @@ let GitHubWorkspaceView = class GitHubWorkspaceView extends LitElement {
368
368
  @mouseover="${handleMouseOver}"
369
369
  @mouseout="${handleMouseOut}"
370
370
  style="${isImporting ? 'display: flex; align-items: center;' : ''}">
371
- ${DoctorIcon.getOpenAPIIcon(ICON_SIZE)}
371
+ ${DoctorIcon.getOpenAPIIcon(ICON_SIZE, document.documentElement.getAttribute('theme') === 'light')}
372
372
  ${isImporting ? html `
373
373
  <pb33f-indeterminate-loader
374
374
  constantFlow
@@ -3,7 +3,7 @@ export declare class DoctorIcon extends LitElement {
3
3
  static styles: import("lit").CSSResult;
4
4
  size: number;
5
5
  iconType: string;
6
- static getOpenAPIIcon(size?: number): TemplateResult;
6
+ static getOpenAPIIcon(size?: number, lightMode?: boolean): TemplateResult;
7
7
  static getGitHubIcon(size?: number): TemplateResult;
8
8
  render(): TemplateResult;
9
9
  }
@@ -13,9 +13,11 @@ let DoctorIcon = DoctorIcon_1 = class DoctorIcon extends LitElement {
13
13
  this.size = 20;
14
14
  this.iconType = 'openapi';
15
15
  }
16
- static getOpenAPIIcon(size = 20) {
16
+ static getOpenAPIIcon(size = 20, lightMode = false) {
17
+ const centerFill = lightMode ? '#000' : '#fff';
18
+ const filterStyle = lightMode ? 'filter: grayscale(100%);' : '';
17
19
  return html `
18
- <svg width="${size}" height="${size}" id="openapi-logo" data-name="openapi-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 784.37 784.29" style=" vertical-align: middle;">
20
+ <svg width="${size}" height="${size}" id="openapi-logo" data-name="openapi-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 784.37 784.29" style="vertical-align: middle; ${filterStyle}">
19
21
  <path d="M207.28,450.97H.31c.04,1.02.07,2.03.12,3.03.08,1.95.22,3.88.34,5.83.05.84.09,1.67.16,2.5.16,2.25.35,4.5.56,6.73.05.51.09,1.02.14,1.5.24,2.5.51,4.99.8,7.47.01.24.04.48.08.72.33,2.67.67,5.35,1.06,8,0,.04,0,.08.01.1,2.39,16.54,5.96,32.88,10.7,48.9.03.07.05.13.07.2.75,2.54,1.53,5.05,2.33,7.54.05.14.1.3.14.44s.09.29.14.44c.73,2.26,1.5,4.51,2.28,6.77.2.56.39,1.14.6,1.71.69,1.95,1.4,3.9,2.13,5.86.34.88.67,1.75.99,2.64.64,1.62,1.26,3.23,1.9,4.84.48,1.22.98,2.43,1.49,3.63.52,1.27,1.05,2.51,1.58,3.78.65,1.54,1.35,3.07,2.03,4.62.41.92.82,1.82,1.23,2.73.84,1.84,1.7,3.69,2.58,5.52.29.59.56,1.18.85,1.75,1.02,2.12,2.05,4.2,3.1,6.28.18.31.33.64.5.95,1.18,2.3,2.38,4.59,3.62,6.86.05.1.12.2.16.31.26.47.55.93.81,1.4l176.76-106.47.65-.39c-6.97-14.7-11.31-30.33-12.93-46.22h0Z" style="fill: #359ed3;"/>
20
22
  <path d="M258.15,545.99l-.5.5-145.79,145.77c.75.69,1.49,1.41,2.26,2.08,1.36,1.24,2.75,2.46,4.12,3.67.72.63,1.41,1.26,2.13,1.88,1.65,1.43,3.32,2.81,4.98,4.21.46.38.89.75,1.35,1.12,2.12,1.74,4.26,3.46,6.42,5.15,2.07,1.63,4.14,3.22,6.26,4.81.09.05.16.1.24.17,8.8,6.57,17.9,12.72,27.27,18.44.31.21.64.39.97.6,1.79,1.06,3.57,2.12,5.37,3.16l3.29,1.88c1.05.6,2.08,1.18,3.12,1.75,1.9,1.03,3.79,2.07,5.7,3.07.26.14.52.29.8.42,5.3,2.77,10.68,5.35,16.12,7.83l5.18-12.57,73.33-178.04.26-.65c-8-4.29-15.68-9.36-22.89-15.27h0Z" style="fill: #62c4ff;"/>
21
23
  <path d="M242.97,531.46c-1.57-1.74-3.08-3.53-4.55-5.36-1.31-1.61-2.56-3.23-3.78-4.88-1.4-1.88-2.76-3.79-4.05-5.73-1.29-1.95-2.58-3.91-3.78-5.9l-176.98,106.6c2.72,4.52,5.54,8.92,8.45,13.26.09.16.18.31.29.46.03.07.07.1.1.17.09.13.18.29.27.43.01.01.03.03.03.05.24.34.47.68.71,1.03.01.01.03.04.05.07s.01.01.01.03c3.07,4.54,6.24,9.01,9.49,13.38.07.09.14.18.21.27.08.09.14.18.21.27,1.43,1.87,2.84,3.74,4.3,5.6.2.25.38.48.59.72,1.49,1.92,3.02,3.82,4.58,5.69.37.44.75.89,1.11,1.35,1.4,1.67,2.8,3.33,4.22,4.98.61.71,1.24,1.43,1.87,2.12,1.22,1.39,2.42,2.77,3.66,4.13.68.75,1.39,1.5,2.08,2.25.31.35.63.68.95,1.03.9.98,1.8,1.96,2.72,2.93.37.38.76.76,1.12,1.15,1.61,1.67,3.24,3.36,4.89,5.01l146.01-145.98c-1.67-1.67-3.24-3.4-4.79-5.13h0Z" style="fill: #f6f;"/>
@@ -25,7 +27,7 @@ let DoctorIcon = DoctorIcon_1 = class DoctorIcon extends LitElement {
25
27
  <path d="M340.37,89.8c-2.34.05-4.68.05-7.01.14-14.6.59-29.18,2.08-43.64,4.51-.31.05-.63.1-.95.16-2.03.35-4.04.72-6.05,1.1-1.14.22-2.29.43-3.44.65-1.19.24-2.37.48-3.56.75-1.96.41-3.92.84-5.87,1.29-.37.07-.72.16-1.07.24-28.98,6.77-56.99,17.21-83.33,31.07-1.71.92-3.39,1.95-5.1,2.88-2.04,1.12-4.08,2.28-6.11,3.44-1.5.88-3.03,1.67-4.54,2.56-.01.01-.04.03-.05.03-.1.07-.21.13-.31.18-.39.25-.8.44-1.19.68v.03s3.63,6,3.63,6l102.97,170.93c2.01-1.2,4.07-2.31,6.12-3.41,2.07-1.11,4.16-2.16,6.26-3.15,14.55-6.95,30.19-11.33,46.23-12.96,2.33-.24,4.65-.43,7-.55,2.33-.12,4.67-.24,7.01-.24V89.65c-2.34,0-4.67.1-7,.14h0Z" style="fill: #f6f;"/>
26
28
  <path d="M694.3,419.9c-.1-1.86-.21-3.7-.34-5.57-.05-.92-.11-1.85-.18-2.77-.14-2.18-.33-4.37-.54-6.55-.04-.56-.09-1.12-.14-1.69-.24-2.45-.5-4.88-.78-7.31-.03-.2-.04-.39-.07-.59l-.04-.27c-.31-2.63-.67-5.26-1.03-7.87l-.04-.25c-2.38-16.5-5.95-32.82-10.67-48.81-.04-.12-.07-.21-.1-.31-.75-2.5-1.52-4.97-2.29-7.44-.12-.33-.22-.65-.33-.98-.73-2.24-1.48-4.46-2.25-6.68l-.63-1.8c-.68-1.92-1.39-3.84-2.09-5.77-.35-.92-.69-1.83-1.06-2.73-.6-1.6-1.22-3.18-1.86-4.75-.5-1.27-1.01-2.51-1.52-3.74-.51-1.24-1.03-2.46-1.54-3.69-.68-1.57-1.37-3.14-2.07-4.69-.39-.88-.78-1.77-1.19-2.65-.85-1.86-1.73-3.73-2.6-5.58-.27-.55-.55-1.12-.82-1.69-1.02-2.12-2.07-4.25-3.14-6.34-.14-.29-.3-.59-.44-.88-1.19-2.31-2.42-4.64-3.65-6.93-.05-.08-.09-.17-.14-.25-6-11.03-12.6-21.74-19.76-32.06l-152.38,152.38c3.46,10.21,5.71,20.74,6.81,31.34h207c-.05-1.03-.08-2.07-.13-3.07h0Z" style="fill: #62c4ff;"/>
27
29
  <path d="M488.24,436.97c0,2.34-.22,4.67-.34,7.01s-.16,4.68-.39,7c-2.67,26.9-13.04,53.15-31.13,75.21-1.46,1.79-3.12,3.46-4.71,5.2-1.57,1.73-3.02,3.52-4.69,5.19l146.01,145.98c1.66-1.66,3.22-3.37,4.84-5.06s3.27-3.35,4.84-5.06c10.8-11.7,20.68-23.94,29.58-36.66.37-.51.69-1.01,1.05-1.5,1.09-1.56,2.13-3.14,3.2-4.71.93-1.41,1.86-2.81,2.76-4.24.46-.68.9-1.39,1.33-2.07,33.49-52.57,51.41-112.17,53.82-172.29.09-2.33.14-4.67.18-7.01.05-2.33.12-4.65.12-7h-206.46Z" style="fill: #f6f;"/>
28
- <path d="M756.04,28.33c-37.77-37.77-99.02-37.77-136.79,0-30.14,30.12-36.17,75.17-18.21,111.33l-210.72,210.7c-36.17-17.94-81.22-11.92-111.36,18.2-37.77,37.77-37.76,99.02,0,136.79,37.79,37.77,99.04,37.76,136.82,0,30.14-30.14,36.15-75.18,18.2-111.35l210.72-210.69c36.18,17.94,81.21,11.92,111.35-18.21,37.77-37.76,37.77-99,0-136.78h0Z" style="fill: #fff;"/>
30
+ <path d="M756.04,28.33c-37.77-37.77-99.02-37.77-136.79,0-30.14,30.12-36.17,75.17-18.21,111.33l-210.72,210.7c-36.17-17.94-81.22-11.92-111.36,18.2-37.77,37.77-37.76,99.02,0,136.79,37.79,37.77,99.04,37.76,136.82,0,30.14-30.14,36.15-75.18,18.2-111.35l210.72-210.69c36.18,17.94,81.21,11.92,111.35-18.21,37.77-37.76,37.77-99,0-136.78h0Z" style="fill: ${centerFill};"/>
29
31
  </svg>
30
32
  `;
31
33
  }
@@ -38,7 +40,7 @@ let DoctorIcon = DoctorIcon_1 = class DoctorIcon extends LitElement {
38
40
  }
39
41
  render() {
40
42
  if (this.iconType === 'openapi') {
41
- return DoctorIcon_1.getOpenAPIIcon(this.size);
43
+ return DoctorIcon_1.getOpenAPIIcon(this.size, document.documentElement.getAttribute('theme') === 'light');
42
44
  }
43
45
  return html ``;
44
46
  }
@@ -27,7 +27,10 @@ export declare class ModelIconComponent extends LitElement {
27
27
  tooltip: string;
28
28
  getSize(): string;
29
29
  getIconColor(): string;
30
+ private _themeHandler;
30
31
  constructor();
32
+ connectedCallback(): void;
33
+ disconnectedCallback(): void;
31
34
  isLightMode(): boolean;
32
35
  getNodeTypeFromIcon(icon: string): NodeType;
33
36
  static getIconForType(nodeType: NodeType): string;
@@ -13,6 +13,7 @@ import formattingCss from "../../css/formatting.css.js";
13
13
  import { html, LitElement } from "lit";
14
14
  import { NodeType } from "../../model/node_type.js";
15
15
  import tooltipCss from "../../css/tooltip.css.js";
16
+ import { PB33F_THEME_CHANGE } from "../../events/theme.js";
16
17
  export var IconSize;
17
18
  (function (IconSize) {
18
19
  IconSize["tiny"] = "tiny";
@@ -74,9 +75,18 @@ let ModelIconComponent = ModelIconComponent_1 = class ModelIconComponent extends
74
75
  }
75
76
  constructor() {
76
77
  super();
78
+ this._themeHandler = () => this.requestUpdate();
77
79
  this.size = IconSize.medium;
78
80
  this.color = IconColor.primary;
79
81
  }
82
+ connectedCallback() {
83
+ super.connectedCallback();
84
+ window.addEventListener(PB33F_THEME_CHANGE, this._themeHandler);
85
+ }
86
+ disconnectedCallback() {
87
+ super.disconnectedCallback();
88
+ window.removeEventListener(PB33F_THEME_CHANGE, this._themeHandler);
89
+ }
80
90
  isLightMode() {
81
91
  return document.documentElement.getAttribute('theme') === 'light';
82
92
  }
@@ -22,7 +22,7 @@ export default css `
22
22
  }
23
23
 
24
24
  .overview-container {
25
- height: 100%;
25
+ height: calc(100vh - 125px);
26
26
  padding-right: 5px;
27
27
  }
28
28
 
@@ -2,7 +2,7 @@ import { css } from "lit";
2
2
  export default css `
3
3
  .status-bar {
4
4
  position: absolute;
5
- bottom: 8px;
5
+ bottom: 4px;
6
6
  left: 0;
7
7
  width: calc(100% - 6px);
8
8
  height: 22px;
@@ -33,7 +33,7 @@ export default css `
33
33
 
34
34
  .warning {
35
35
  border-top: 1px dashed var(--warn-color);
36
- border-bottom: none;
36
+ border-bottom: 1px dashed var(--warn-color);
37
37
  }
38
38
 
39
39
  .error {
@@ -42,6 +42,27 @@ export default css `
42
42
  border-bottom: none;
43
43
  color: var(--font-color)
44
44
  }
45
+
46
+ :host-context(html[theme="light"]) .error {
47
+ background-color: #000;
48
+ color: #fff;
49
+ }
50
+
51
+ :host-context(html[theme="light"]) .error sl-dialog {
52
+ color: var(--font-color);
53
+ }
54
+
55
+ :host-context(html[theme="light"]) .error a {
56
+ text-decoration: underline;
57
+ }
58
+
59
+ :host-context(html[theme="light"]) .error a,
60
+ :host-context(html[theme="light"]) .error a strong,
61
+ :host-context(html[theme="light"]) .error strong,
62
+ :host-context(html[theme="light"]) .error sl-icon,
63
+ :host-context(html[theme="light"]) .error .error-icon {
64
+ color: #fff;
65
+ }
45
66
 
46
67
  strong {
47
68
  font-family: var(--font-stack-bold), monospace;
@@ -46,7 +46,7 @@ let StatusBar = class StatusBar extends LitElement {
46
46
  if (this.callsRemaining <= 0) {
47
47
  clazz = 'error';
48
48
  clazzIcon = 'error-icon';
49
- actionText = 'You have run out of credit. Service disabled';
49
+ actionText = 'Disabled';
50
50
  icon = 'exclamation-square';
51
51
  }
52
52
  return html `
@@ -47,7 +47,11 @@ export default css `
47
47
  max-height: calc(100vh - 100px);
48
48
  overflow: hidden;
49
49
  }
50
-
50
+
51
+
52
+ pb33f-doctor-sidebar-panel {
53
+ height: calc(100vh - 90px);
54
+ }
51
55
 
52
56
  .problems::-webkit-scrollbar,.problems-data::-webkit-scrollbar {
53
57
  width: 8px;
@@ -4,6 +4,17 @@ export default css `
4
4
  display: flex;
5
5
  padding: 10px 10px 10px 20px;
6
6
  height: 370px;
7
+ width: 100%;
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ pb33f-chart {
12
+ flex: 1;
13
+ min-width: 0;
14
+ }
15
+
16
+ .stats-container > div {
17
+ flex-shrink: 0;
7
18
  }
8
19
 
9
20
  .changes-chart {
@@ -166,7 +166,6 @@ let TimelineView = class TimelineView extends Colorful {
166
166
  <div class="changes-chart stats-container">
167
167
  <pb33f-chart id="diagnosis-chart"
168
168
  height="400"
169
- width="1000"
170
169
  smallTitle
171
170
  ?legend=${false}
172
171
  title="Diagnosis score over time"
@@ -1,4 +1,4 @@
1
- import { aI as lt, _ as V, l as k, d as gt } from "./cowboy-components-BRANjWMG.js";
1
+ import { aI as lt, _ as V, l as k, d as gt } from "./cowboy-components-Bg77T9d-.js";
2
2
  import { c as tt } from "./cytoscape.esm-DfdJODL8.js";
3
3
  var Z = { exports: {} }, $ = { exports: {} }, Q = { exports: {} }, ut = Q.exports, j;
4
4
  function ft() {