@pb33f/cowboy-components 0.12.1 → 0.12.3

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 (80) hide show
  1. package/dist/{_basePickBy-CHhH8kjm.js → _basePickBy-C6qM4JsN.js} +2 -2
  2. package/dist/{_baseUniq-CqLfUP_m.js → _baseUniq-CL6N5X0S.js} +1 -1
  3. package/dist/{arc-Bc0dbGi3.js → arc-BPodQwCA.js} +1 -1
  4. package/dist/{architecture-U656AL7Q-B1Af1iSx.js → architecture-U656AL7Q-8RM8yUJq.js} +1 -1
  5. package/dist/{architectureDiagram-VXUJARFQ-CJl5OVfp.js → architectureDiagram-VXUJARFQ-DscfMtRk.js} +3 -3
  6. package/dist/{blockDiagram-VD42YOAC-CICDv6Wk.js → blockDiagram-VD42YOAC-znVYL4bL.js} +5 -5
  7. package/dist/{c4Diagram-YG6GDRKO-MIX4hsr0.js → c4Diagram-YG6GDRKO-MnOpRb7b.js} +2 -2
  8. package/dist/{channel-DrLe0ToL.js → channel-7F7ZxLBh.js} +1 -1
  9. package/dist/{chunk-4BX2VUAB-C0WUXJTj.js → chunk-4BX2VUAB-E29URZIE.js} +1 -1
  10. package/dist/{chunk-55IACEB6-BQmuOZTD.js → chunk-55IACEB6--z9Lfwh_.js} +1 -1
  11. package/dist/{chunk-B4BG7PRW-BVzpD5kO.js → chunk-B4BG7PRW-BJCNIBMq.js} +4 -4
  12. package/dist/{chunk-DI55MBZ5-BBKOtSgz.js → chunk-DI55MBZ5-CBBeJcxE.js} +3 -3
  13. package/dist/{chunk-FMBD7UC4-CKC9V5WI.js → chunk-FMBD7UC4-DiJf6vf4.js} +1 -1
  14. package/dist/{chunk-QN33PNHL-BpLt0jar.js → chunk-QN33PNHL-BQeCdAO4.js} +1 -1
  15. package/dist/{chunk-QZHKN3VN-D8_F_eNC.js → chunk-QZHKN3VN-B10WHNRh.js} +1 -1
  16. package/dist/{chunk-TZMSLE5B-DT1-HT9H.js → chunk-TZMSLE5B-CihFGYBL.js} +1 -1
  17. package/dist/{classDiagram-v2-WZHVMYZB-Cw7wLeoA.js → classDiagram-2ON5EDUG-DqCtRU7b.js} +2 -2
  18. package/dist/{classDiagram-2ON5EDUG-Cw7wLeoA.js → classDiagram-v2-WZHVMYZB-DqCtRU7b.js} +2 -2
  19. package/dist/{clone-ygSTXFFk.js → clone-MZzrSJSF.js} +1 -1
  20. package/dist/components/charts/chart-colors.d.ts +7 -1
  21. package/dist/components/charts/chart-colors.js +30 -2
  22. package/dist/components/charts/doughnut-chart.js +5 -5
  23. package/dist/components/details-drawer/generic-details-drawer.css.js +15 -1
  24. package/dist/components/details-drawer/handlers/diagram-handler.js +11 -4
  25. package/dist/components/editor/editor.d.ts +1 -1
  26. package/dist/components/editor/editor.js +185 -19
  27. package/dist/components/mermaid/mermaid-renderer.d.ts +2 -1
  28. package/dist/components/the-doctor/settings.js +2 -3
  29. package/dist/components/the-doctor/sparks.d.ts +1 -1
  30. package/dist/components/the-doctor/sparks.js +10 -5
  31. package/dist/components/theme-switcher/theme-switcher.css.js +13 -2
  32. package/dist/components/theme-switcher/theme-switcher.d.ts +7 -1
  33. package/dist/components/theme-switcher/theme-switcher.js +62 -39
  34. package/dist/components/waiting-line/waiting-line.d.ts +1 -1
  35. package/dist/components/waiting-line/waiting-line.js +14 -4
  36. package/dist/{cose-bilkent-S5V4N54A-DxgFNfEN.js → cose-bilkent-S5V4N54A-C8s1yfS0.js} +1 -1
  37. package/dist/{cowboy-components-Bg77T9d-.js → cowboy-components-BOtD4JRB.js} +7225 -6894
  38. package/dist/cowboy-components.css +1 -1
  39. package/dist/cowboy-components.umd.cjs +670 -633
  40. package/dist/css/cowboy-components.css +13 -0
  41. package/dist/css/pb33f-theme.css +161 -0
  42. package/dist/css/prism.css.js +2 -2
  43. package/dist/{dagre-6UL2VRFP-D9TgF5Zl.js → dagre-6UL2VRFP-CXk4xnBN.js} +6 -6
  44. package/dist/{diagram-PSM6KHXK-BYwvaRBx.js → diagram-PSM6KHXK-B76lutCg.js} +4 -4
  45. package/dist/{diagram-QEK2KX5R-D5qHrA0J.js → diagram-QEK2KX5R-C0scswmK.js} +3 -3
  46. package/dist/{diagram-S2PKOQOG-fAU_B7kH.js → diagram-S2PKOQOG-Dvfy3XRY.js} +3 -3
  47. package/dist/{erDiagram-Q2GNP2WA-hZ_gfIFY.js → erDiagram-Q2GNP2WA-Drjuuc5E.js} +4 -4
  48. package/dist/events/theme.d.ts +2 -1
  49. package/dist/{flowDiagram-NV44I4VS-vUzBvpAl.js → flowDiagram-NV44I4VS-CLZmRZQ6.js} +5 -5
  50. package/dist/{ganttDiagram-LVOFAZNH-WYbgDSC6.js → ganttDiagram-LVOFAZNH-CZPElQEs.js} +2 -2
  51. package/dist/{gitGraph-F6HP7TQM-BGxu6gOF.js → gitGraph-F6HP7TQM-BzA4ClGr.js} +1 -1
  52. package/dist/{gitGraphDiagram-NY62KEGX-fZaPPkg2.js → gitGraphDiagram-NY62KEGX-BJwWbwgF.js} +4 -4
  53. package/dist/{graph-DXbidQWz.js → graph-pJ6oxTQB.js} +2 -2
  54. package/dist/info-NVLQJR56-BxxpWbyi.js +5 -0
  55. package/dist/{infoDiagram-F6ZHWCRC-CE5aCiKV.js → infoDiagram-F6ZHWCRC-CVzPLdyj.js} +2 -2
  56. package/dist/{journeyDiagram-XKPGCS4Q-DJ6V2dBQ.js → journeyDiagram-XKPGCS4Q-C4cf1nuE.js} +4 -4
  57. package/dist/{kanban-definition-3W4ZIXB7-CHwozqlt.js → kanban-definition-3W4ZIXB7-ZvGqbEKN.js} +2 -2
  58. package/dist/{layout-D2zY0T7Y.js → layout-1b5SERdg.js} +4 -4
  59. package/dist/{linear-BTUJ7KAT.js → linear-Q8xXzk-g.js} +1 -1
  60. package/dist/{mermaid-parser.core-CyYIBqRM.js → mermaid-parser.core-C6Rmy8E_.js} +11 -11
  61. package/dist/{mindmap-definition-VGOIOE7T-CEY6R2uT.js → mindmap-definition-VGOIOE7T-BWQxJK_Z.js} +3 -3
  62. package/dist/{packet-BFZMPI3H-BRke7E6n.js → packet-BFZMPI3H-BPVsBhV7.js} +1 -1
  63. package/dist/pie-7BOR55EZ-McIzKv77.js +5 -0
  64. package/dist/{pieDiagram-ADFJNKIX-COTsjh1f.js → pieDiagram-ADFJNKIX-BPoDBWKB.js} +4 -4
  65. package/dist/{quadrantDiagram-AYHSOK5B-CwZFHRdc.js → quadrantDiagram-AYHSOK5B-Cjtvt5Zm.js} +2 -2
  66. package/dist/radar-NHE76QYJ-BJQ-x123.js +5 -0
  67. package/dist/{requirementDiagram-UZGBJVZJ-IWxwgSOA.js → requirementDiagram-UZGBJVZJ-Bq8-k6RZ.js} +3 -3
  68. package/dist/{sankeyDiagram-TZEHDZUN-CNxVVwLZ.js → sankeyDiagram-TZEHDZUN-CA13G8xm.js} +1 -1
  69. package/dist/{sequenceDiagram-WL72ISMW-DKEYvd1s.js → sequenceDiagram-WL72ISMW-Dd_OoMk9.js} +3 -3
  70. package/dist/services/mermaid-config-service.d.ts +3 -1
  71. package/dist/services/mermaid-config-service.js +120 -3
  72. package/dist/{stateDiagram-FKZM4ZOC-YsmqtK1x.js → stateDiagram-FKZM4ZOC-DVjTZilp.js} +4 -4
  73. package/dist/{stateDiagram-v2-4FDKWEC3-DHLeiZBf.js → stateDiagram-v2-4FDKWEC3-CpEcR9je.js} +2 -2
  74. package/dist/{timeline-definition-IT6M3QCI-wc-Q7mjm.js → timeline-definition-IT6M3QCI-B75AXgTN.js} +2 -2
  75. package/dist/{treemap-KMMF4GRG-CRJ0PvT3.js → treemap-KMMF4GRG-DuO22dun.js} +1 -1
  76. package/dist/{xychartDiagram-PRI3JC2R-C9a1QBu6.js → xychartDiagram-PRI3JC2R-vDUPV6Ax.js} +2 -2
  77. package/package.json +1 -1
  78. package/dist/info-NVLQJR56-BRqR8nwN.js +0 -5
  79. package/dist/pie-7BOR55EZ-CSvfOnqQ.js +0 -5
  80. package/dist/radar-NHE76QYJ-COI8FsH2.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-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";
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-CL6N5X0S.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-BOtD4JRB.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-Bg77T9d-.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-BOtD4JRB.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-Bg77T9d-.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-BOtD4JRB.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-CyYIBqRM.js";
1
+ import { A as c, e as t } from "./mermaid-parser.core-C6Rmy8E_.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-Bg77T9d-.js";
2
- import { p as fr } from "./chunk-4BX2VUAB-C0WUXJTj.js";
3
- import { p as cr } from "./mermaid-parser.core-CyYIBqRM.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-BOtD4JRB.js";
2
+ import { p as fr } from "./chunk-4BX2VUAB-E29URZIE.js";
3
+ import { p as cr } from "./mermaid-parser.core-C6Rmy8E_.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-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";
1
+ import { g as oe } from "./chunk-FMBD7UC4-DiJf6vf4.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-BOtD4JRB.js";
3
+ import { c as Le } from "./clone-MZzrSJSF.js";
4
+ import { G as Se } from "./graph-pJ6oxTQB.js";
5
+ import { c as ke } from "./channel-7F7ZxLBh.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-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";
1
+ import { g as Se, d as De } from "./chunk-TZMSLE5B-CihFGYBL.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-BOtD4JRB.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-Bg77T9d-.js";
1
+ import { ap as o, aq as n } from "./cowboy-components-BOtD4JRB.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-Bg77T9d-.js";
1
+ import { _ as i } from "./cowboy-components-BOtD4JRB.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-Bg77T9d-.js";
1
+ import { _ as a, d as o } from "./cowboy-components-BOtD4JRB.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-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";
1
+ import { g as et } from "./chunk-FMBD7UC4-DiJf6vf4.js";
2
+ import { g as tt } from "./chunk-55IACEB6--z9Lfwh_.js";
3
+ import { s as st } from "./chunk-QN33PNHL-BQeCdAO4.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-BOtD4JRB.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-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";
1
+ import { g as te } from "./chunk-55IACEB6--z9Lfwh_.js";
2
+ import { s as ee } from "./chunk-QN33PNHL-BQeCdAO4.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-BOtD4JRB.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-Bg77T9d-.js";
1
+ import { _ as e } from "./cowboy-components-BOtD4JRB.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-Bg77T9d-.js";
1
+ import { _ as a, e as w, l as x } from "./cowboy-components-BOtD4JRB.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-Bg77T9d-.js";
1
+ import { _ as s } from "./cowboy-components-BOtD4JRB.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-Bg77T9d-.js";
1
+ import { _ as n, U as o, j as l } from "./cowboy-components-BOtD4JRB.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-BVzpD5kO.js";
2
- import { _ as l } from "./cowboy-components-Bg77T9d-.js";
1
+ import { s as r, c as s, a as e, C as t } from "./chunk-B4BG7PRW-BJCNIBMq.js";
2
+ import { _ as l } from "./cowboy-components-BOtD4JRB.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-BVzpD5kO.js";
2
- import { _ as l } from "./cowboy-components-Bg77T9d-.js";
1
+ import { s as r, c as s, a as e, C as t } from "./chunk-B4BG7PRW-BJCNIBMq.js";
2
+ import { _ as l } from "./cowboy-components-BOtD4JRB.js";
3
3
  var d = {
4
4
  parser: e,
5
5
  get db() {
@@ -1,4 +1,4 @@
1
- import { b as r } from "./_baseUniq-CqLfUP_m.js";
1
+ import { b as r } from "./_baseUniq-CL6N5X0S.js";
2
2
  var e = 4;
3
3
  function a(o) {
4
4
  return r(o, e);
@@ -1,5 +1,6 @@
1
1
  import { LitElement } from "lit";
2
2
  import { Color, FontSpec } from "chart.js/auto";
3
+ import { ThemeName } from "../../events/theme.js";
3
4
  export declare class Colorful extends LitElement {
4
5
  primary: string;
5
6
  secondary: string;
@@ -18,18 +19,23 @@ export declare class Colorful extends LitElement {
18
19
  mediumFont: FontSpec;
19
20
  fontBold: FontSpec;
20
21
  titleFont: FontSpec;
21
- protected currentTheme: string;
22
+ protected currentTheme: ThemeName;
22
23
  private _themeHandler;
23
24
  constructor();
24
25
  private readColors;
25
26
  firstUpdated(): void;
26
27
  disconnectedCallback(): void;
27
28
  }
29
+ export declare function getCurrentTheme(): ThemeName;
28
30
  export declare function isLightMode(): boolean;
31
+ export declare function isTektronixMode(): boolean;
29
32
  export declare const ChartColors: string[];
30
33
  export declare const LightChartColors: string[];
34
+ export declare const TektronixChartColors: string[];
31
35
  export declare const ChartColorsChanges: string[];
32
36
  export declare const LightChartColorsChanges: string[];
37
+ export declare const TektronixChartColorsChanges: string[];
33
38
  export declare const BinaryChartColors: string[];
34
39
  export declare const LightBinaryChartColors: string[];
40
+ export declare const TektronixBinaryChartColors: string[];
35
41
  export declare function CreateRadialGradient(context: any, c1: any, c2: any, c3: any, c4: any): any;
@@ -14,7 +14,7 @@ export class Colorful extends LitElement {
14
14
  this.currentTheme = 'dark';
15
15
  this._themeHandler = () => {
16
16
  this.readColors();
17
- this.currentTheme = isLightMode() ? 'light' : 'dark';
17
+ this.currentTheme = getCurrentTheme();
18
18
  };
19
19
  }
20
20
  readColors() {
@@ -34,7 +34,7 @@ export class Colorful extends LitElement {
34
34
  }
35
35
  firstUpdated() {
36
36
  this.readColors();
37
- this.currentTheme = isLightMode() ? 'light' : 'dark';
37
+ this.currentTheme = getCurrentTheme();
38
38
  this.font = fontSpec;
39
39
  this.smallFont = smallFont;
40
40
  this.mediumFont = mediumFont;
@@ -50,9 +50,20 @@ export class Colorful extends LitElement {
50
50
  __decorate([
51
51
  state()
52
52
  ], Colorful.prototype, "currentTheme", void 0);
53
+ export function getCurrentTheme() {
54
+ const theme = document.documentElement.getAttribute('theme');
55
+ if (theme === 'light')
56
+ return 'light';
57
+ if (theme === 'tektronix')
58
+ return 'tektronix';
59
+ return 'dark';
60
+ }
53
61
  export function isLightMode() {
54
62
  return document.documentElement.getAttribute('theme') === 'light';
55
63
  }
64
+ export function isTektronixMode() {
65
+ return document.documentElement.getAttribute('theme') === 'tektronix';
66
+ }
56
67
  export const ChartColors = [
57
68
  "#f83aff",
58
69
  "rgba(98, 196, 255, 1)",
@@ -69,6 +80,14 @@ export const LightChartColors = [
69
80
  "rgba(0, 0, 0, 0.08)",
70
81
  "rgba(0, 0, 0, 0.5)"
71
82
  ];
83
+ export const TektronixChartColors = [
84
+ "#33ff33",
85
+ "rgba(102, 255, 102, 0.8)",
86
+ "rgba(51, 255, 51, 0.47)",
87
+ "rgba(102, 255, 102, 0.6)",
88
+ "rgba(51, 255, 51, 0.25)",
89
+ "rgba(102, 255, 102, 0.4)"
90
+ ];
72
91
  export const ChartColorsChanges = [
73
92
  "#f83aff",
74
93
  "#00FF00",
@@ -79,6 +98,11 @@ export const LightChartColorsChanges = [
79
98
  "rgba(0, 0, 0, 0.35)",
80
99
  "rgba(0, 0, 0, 0.15)",
81
100
  ];
101
+ export const TektronixChartColorsChanges = [
102
+ "#33ff33",
103
+ "#66ff66",
104
+ "#1a991a",
105
+ ];
82
106
  export const BinaryChartColors = [
83
107
  "#ff246b",
84
108
  "rgba(98, 196, 255, 1)",
@@ -87,6 +111,10 @@ export const LightBinaryChartColors = [
87
111
  "rgba(0, 0, 0, 0.6)",
88
112
  "rgba(0, 0, 0, 0.25)",
89
113
  ];
114
+ export const TektronixBinaryChartColors = [
115
+ "#66ff66",
116
+ "#1a991a",
117
+ ];
90
118
  const cache = new Map();
91
119
  let width = null;
92
120
  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, isLightMode, LightBinaryChartColors, LightChartColors, LightChartColorsChanges } from "./chart-colors";
10
+ import { BinaryChartColors, ChartColors, ChartColorsChanges, Colorful, LightBinaryChartColors, LightChartColors, LightChartColorsChanges, TektronixBinaryChartColors, TektronixChartColors, TektronixChartColorsChanges } from "./chart-colors";
11
11
  let DoughnutChart = class DoughnutChart extends Colorful {
12
12
  constructor() {
13
13
  super();
@@ -47,15 +47,15 @@ let DoughnutChart = class DoughnutChart extends Colorful {
47
47
  if (this.chart) {
48
48
  this.chart.destroy();
49
49
  }
50
- const light = isLightMode();
50
+ const theme = this.currentTheme;
51
51
  if (this.changesChart) {
52
- this.colors = light ? LightChartColorsChanges : ChartColorsChanges;
52
+ this.colors = theme === 'tektronix' ? TektronixChartColorsChanges : theme === 'light' ? LightChartColorsChanges : ChartColorsChanges;
53
53
  }
54
54
  else if (this.breakingChanges) {
55
- this.colors = light ? LightBinaryChartColors : BinaryChartColors;
55
+ this.colors = theme === 'tektronix' ? TektronixBinaryChartColors : theme === 'light' ? LightBinaryChartColors : BinaryChartColors;
56
56
  }
57
57
  else {
58
- this.colors = light ? LightChartColors : ChartColors;
58
+ this.colors = theme === 'tektronix' ? TektronixChartColors : theme === 'light' ? LightChartColors : ChartColors;
59
59
  }
60
60
  this.datasets.forEach((data) => {
61
61
  data.backgroundColor = this.colors;
@@ -137,7 +137,21 @@ export const styles = css `
137
137
  flex: 1;
138
138
  overflow: auto;
139
139
  padding: var(--sl-spacing-small);
140
- background: var(--background-color);
140
+ background: transparent;
141
+ }
142
+
143
+ .code-content::-webkit-scrollbar {
144
+ width: 8px;
145
+ height: 8px;
146
+ }
147
+
148
+ .code-content::-webkit-scrollbar-track {
149
+ background-color: var(--terminal-background);
150
+ }
151
+
152
+ .code-content::-webkit-scrollbar-thumb {
153
+ box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
154
+ background: var(--secondary-color-lowalpha);
141
155
  }
142
156
 
143
157
  .code-content pre {
@@ -25,7 +25,7 @@ export class DiagramHandler {
25
25
  if (!(event instanceof CustomEvent))
26
26
  return;
27
27
  const theme = event.detail?.theme;
28
- if (theme === 'light' || theme === 'dark') {
28
+ if (theme === 'light' || theme === 'dark' || theme === 'tektronix') {
29
29
  this.currentTheme = theme;
30
30
  }
31
31
  };
@@ -85,9 +85,16 @@ export class DiagramHandler {
85
85
  }
86
86
  detectTheme() {
87
87
  const htmlElement = document.querySelector('html');
88
- const isDark = htmlElement?.className.includes('sl-theme-dark') ||
89
- htmlElement?.getAttribute('theme') === 'dark';
90
- this.currentTheme = isDark ? 'dark' : 'light';
88
+ const theme = htmlElement?.getAttribute('theme');
89
+ if (theme === 'tektronix') {
90
+ this.currentTheme = 'tektronix';
91
+ }
92
+ else if (theme === 'dark') {
93
+ this.currentTheme = 'dark';
94
+ }
95
+ else {
96
+ this.currentTheme = 'light';
97
+ }
91
98
  }
92
99
  canHandle(event) {
93
100
  return event.type === DrawerContentType.DIAGRAM;
@@ -25,7 +25,7 @@ export declare class SpecEditor extends LitElement {
25
25
  showBreadcrumb: boolean;
26
26
  private showPlaceholder;
27
27
  private isActive;
28
- private isLightTheme;
28
+ private currentEditorTheme;
29
29
  private pendingValue;
30
30
  private linkDecorations;
31
31
  private decorationIdToLinkTarget;