@brad-frost-web/eddie-charts 0.72.0 → 0.73.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.
|
@@ -5,10 +5,10 @@ import { property as h, query as k } from "lit/decorators.js";
|
|
|
5
5
|
import { ifDefined as w } from "lit/directives/if-defined.js";
|
|
6
6
|
import { observeThemeChange as x, prefersReducedMotion as $ } from "../../theme-bridge.js";
|
|
7
7
|
import { formatPoint as L, isGap as T, NO_DATA as z } from "../../gaps.js";
|
|
8
|
-
const F = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}.ed-r-bar-chart{display:block;container-type:inline-size;color:var(--ed-theme-color-content-default)}.ed-r-bar-chart__canvas{position:relative;width:100%;min-width:0;height:20rem;margin-block-end:1.5rem}.ed-r-bar-chart__canvas-el{display:block;max-width:100%}.ed-r-bar-chart__details{margin-block-end:1rem;border:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-sm);background:var(--ed-theme-color-background-subtle)}.ed-r-bar-chart__summary{padding:.5rem 1rem;cursor:pointer;font-weight:700;color:var(--ed-theme-color-content-default)}.ed-r-bar-chart__table{width:100%;border-collapse:collapse;color:var(--ed-theme-color-content-default)}.ed-r-bar-chart__caption{padding:.5rem 1rem;text-align:start;font-weight:700;caption-side:top}.ed-r-bar-chart__th,.ed-r-bar-chart__td{padding:.5rem 1rem;border-block-end:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle);text-align:start}.ed-r-bar-chart__th{background:var(--ed-theme-color-background-subtle);font-weight:700}.ed-r-bar-chart__gap-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}';
|
|
9
|
-
var J = Object.defineProperty,
|
|
10
|
-
for (var a = void 0, s =
|
|
11
|
-
(r =
|
|
8
|
+
const F = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}:host([hidden]:not([hidden=until-found i])),[hidden]:not([hidden=until-found i]){display:none!important}.ed-r-bar-chart{display:block;container-type:inline-size;color:var(--ed-theme-color-content-default)}.ed-r-bar-chart__canvas{position:relative;width:100%;min-width:0;height:20rem;margin-block-end:1.5rem}.ed-r-bar-chart__canvas-el{display:block;max-width:100%}.ed-r-bar-chart__details{margin-block-end:1rem;border:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-sm);background:var(--ed-theme-color-background-subtle)}.ed-r-bar-chart__summary{padding:.5rem 1rem;cursor:pointer;font-weight:700;color:var(--ed-theme-color-content-default)}.ed-r-bar-chart__table{width:100%;border-collapse:collapse;color:var(--ed-theme-color-content-default)}.ed-r-bar-chart__caption{padding:.5rem 1rem;text-align:start;font-weight:700;caption-side:top}.ed-r-bar-chart__th,.ed-r-bar-chart__td{padding:.5rem 1rem;border-block-end:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle);text-align:start}.ed-r-bar-chart__th{background:var(--ed-theme-color-background-subtle);font-weight:700}.ed-r-bar-chart__gap-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}';
|
|
9
|
+
var J = Object.defineProperty, d = (c, t, e, o) => {
|
|
10
|
+
for (var a = void 0, s = c.length - 1, r; s >= 0; s--)
|
|
11
|
+
(r = c[s]) && (a = r(t, e, a) || a);
|
|
12
12
|
return a && J(t, e, a), a;
|
|
13
13
|
};
|
|
14
14
|
p.register(u, _, v, g, f, C);
|
|
@@ -153,25 +153,25 @@ class l extends m {
|
|
|
153
153
|
return i`<td class="ed-r-bar-chart__td">${this.yFormat(t)}</td>`;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
d([
|
|
157
157
|
h({ attribute: !1 })
|
|
158
158
|
], l.prototype, "data");
|
|
159
|
-
|
|
159
|
+
d([
|
|
160
160
|
h({ reflect: !0 })
|
|
161
161
|
], l.prototype, "orientation");
|
|
162
|
-
|
|
162
|
+
d([
|
|
163
163
|
h({ reflect: !0 })
|
|
164
164
|
], l.prototype, "variant");
|
|
165
|
-
|
|
165
|
+
d([
|
|
166
166
|
h()
|
|
167
167
|
], l.prototype, "chartLabel");
|
|
168
|
-
|
|
168
|
+
d([
|
|
169
169
|
h({ type: Boolean })
|
|
170
170
|
], l.prototype, "dataTable");
|
|
171
|
-
|
|
171
|
+
d([
|
|
172
172
|
h({ attribute: !1 })
|
|
173
173
|
], l.prototype, "yFormat");
|
|
174
|
-
|
|
174
|
+
d([
|
|
175
175
|
k("canvas")
|
|
176
176
|
], l.prototype, "canvas");
|
|
177
177
|
customElements.get("ed-r-bar-chart") === void 0 && customElements.define("ed-r-bar-chart", l);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { EdElement as m } from "@brad-frost-web/eddie-web-components/components/EdElement.js";
|
|
2
2
|
import { Chart as u, DoughnutController as p, ArcElement as b, Tooltip as g, Legend as v } from "chart.js";
|
|
3
|
-
import { unsafeCSS as _, html as
|
|
3
|
+
import { unsafeCSS as _, html as l } from "lit";
|
|
4
4
|
import { property as i, query as f } from "lit/decorators.js";
|
|
5
5
|
import { ifDefined as y } from "lit/directives/if-defined.js";
|
|
6
6
|
import { observeThemeChange as C, prefersReducedMotion as k } from "../../theme-bridge.js";
|
|
7
|
-
const w = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}.ed-r-doughnut{display:block;container-type:inline-size;color:var(--ed-theme-color-content-default)}.ed-r-doughnut__canvas{position:relative;width:100%;min-width:0;height:20rem;margin-block-end:1.5rem}.ed-r-doughnut__canvas-el{display:block;max-width:100%}.ed-r-doughnut__details{margin-block-end:1rem;border:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-sm);background:var(--ed-theme-color-background-subtle)}.ed-r-doughnut__summary{padding:.5rem 1rem;cursor:pointer;font-weight:700;color:var(--ed-theme-color-content-default)}.ed-r-doughnut__table{width:100%;border-collapse:collapse;color:var(--ed-theme-color-content-default)}.ed-r-doughnut__caption{padding:.5rem 1rem;text-align:start;font-weight:700;caption-side:top}.ed-r-doughnut__th,.ed-r-doughnut__td{padding:.5rem 1rem;border-block-end:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle);text-align:start}.ed-r-doughnut__th{background:var(--ed-theme-color-background-subtle);font-weight:700}';
|
|
8
|
-
var F = Object.defineProperty, d = (
|
|
9
|
-
for (var r = void 0,
|
|
10
|
-
(
|
|
11
|
-
return r && F(t,
|
|
7
|
+
const w = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}:host([hidden]:not([hidden=until-found i])),[hidden]:not([hidden=until-found i]){display:none!important}.ed-r-doughnut{display:block;container-type:inline-size;color:var(--ed-theme-color-content-default)}.ed-r-doughnut__canvas{position:relative;width:100%;min-width:0;height:20rem;margin-block-end:1.5rem}.ed-r-doughnut__canvas-el{display:block;max-width:100%}.ed-r-doughnut__details{margin-block-end:1rem;border:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-sm);background:var(--ed-theme-color-background-subtle)}.ed-r-doughnut__summary{padding:.5rem 1rem;cursor:pointer;font-weight:700;color:var(--ed-theme-color-content-default)}.ed-r-doughnut__table{width:100%;border-collapse:collapse;color:var(--ed-theme-color-content-default)}.ed-r-doughnut__caption{padding:.5rem 1rem;text-align:start;font-weight:700;caption-side:top}.ed-r-doughnut__th,.ed-r-doughnut__td{padding:.5rem 1rem;border-block-end:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle);text-align:start}.ed-r-doughnut__th{background:var(--ed-theme-color-background-subtle);font-weight:700}';
|
|
8
|
+
var F = Object.defineProperty, d = (h, t, o, e) => {
|
|
9
|
+
for (var r = void 0, n = h.length - 1, a; n >= 0; n--)
|
|
10
|
+
(a = h[n]) && (r = a(t, o, r) || r);
|
|
11
|
+
return r && F(t, o, r), r;
|
|
12
12
|
};
|
|
13
13
|
u.register(p, b, g, v);
|
|
14
14
|
class s extends m {
|
|
@@ -37,13 +37,13 @@ class s extends m {
|
|
|
37
37
|
}));
|
|
38
38
|
}
|
|
39
39
|
toChartJsData() {
|
|
40
|
-
const { palette: t, positive:
|
|
40
|
+
const { palette: t, positive: o, negative: e, neutral: r } = this.theme, n = this.data.map((a, c) => a.semantic === "positive" ? o : a.semantic === "negative" ? e : a.semantic === "neutral" ? r : t[c % t.length]);
|
|
41
41
|
return {
|
|
42
|
-
labels: this.data.map((
|
|
42
|
+
labels: this.data.map((a) => this.labelFormat(a)),
|
|
43
43
|
datasets: [
|
|
44
44
|
{
|
|
45
|
-
data: this.data.map((
|
|
46
|
-
backgroundColor:
|
|
45
|
+
data: this.data.map((a) => a.value),
|
|
46
|
+
backgroundColor: n,
|
|
47
47
|
borderColor: this.theme.tooltipBg,
|
|
48
48
|
borderWidth: 2
|
|
49
49
|
}
|
|
@@ -51,7 +51,7 @@ class s extends m {
|
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
toChartJsOptions() {
|
|
54
|
-
const t = this.theme,
|
|
54
|
+
const t = this.theme, o = this.valueFormat;
|
|
55
55
|
return {
|
|
56
56
|
responsive: !0,
|
|
57
57
|
maintainAspectRatio: !1,
|
|
@@ -69,18 +69,18 @@ class s extends m {
|
|
|
69
69
|
borderColor: t.tooltipBorder,
|
|
70
70
|
borderWidth: 1,
|
|
71
71
|
callbacks: {
|
|
72
|
-
label: (e) => `${e.label}: ${
|
|
72
|
+
label: (e) => `${e.label}: ${o(Number(e.parsed))}`
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
total() {
|
|
79
|
-
return this.data.reduce((t,
|
|
79
|
+
return this.data.reduce((t, o) => t + o.value, 0);
|
|
80
80
|
}
|
|
81
81
|
render() {
|
|
82
82
|
const t = this.componentClassNames("ed-r-doughnut", {});
|
|
83
|
-
return
|
|
83
|
+
return l`
|
|
84
84
|
<div class="${t}">
|
|
85
85
|
<div class="ed-r-doughnut__canvas" role="img" aria-label=${y(this.chartLabel || void 0)}>
|
|
86
86
|
<canvas class="ed-r-doughnut__canvas-el"></canvas>
|
|
@@ -91,8 +91,8 @@ class s extends m {
|
|
|
91
91
|
`;
|
|
92
92
|
}
|
|
93
93
|
renderTable() {
|
|
94
|
-
const t = this.total(),
|
|
95
|
-
return
|
|
94
|
+
const t = this.total(), o = (e) => t === 0 ? "—" : `${(e / t * 100).toFixed(1)}%`;
|
|
95
|
+
return l`
|
|
96
96
|
<details class="ed-r-doughnut__details">
|
|
97
97
|
<summary class="ed-r-doughnut__summary">View data table</summary>
|
|
98
98
|
<table class="ed-r-doughnut__table">
|
|
@@ -105,11 +105,11 @@ class s extends m {
|
|
|
105
105
|
</tr>
|
|
106
106
|
</thead>
|
|
107
107
|
<tbody class="ed-r-doughnut__tbody">
|
|
108
|
-
${this.data.map((e) =>
|
|
108
|
+
${this.data.map((e) => l`
|
|
109
109
|
<tr class="ed-r-doughnut__row">
|
|
110
110
|
<th scope="row" class="ed-r-doughnut__th">${this.labelFormat(e)}</th>
|
|
111
111
|
<td class="ed-r-doughnut__td">${this.valueFormat(e.value)}</td>
|
|
112
|
-
<td class="ed-r-doughnut__td">${
|
|
112
|
+
<td class="ed-r-doughnut__td">${o(e.value)}</td>
|
|
113
113
|
</tr>
|
|
114
114
|
`)}
|
|
115
115
|
</tbody>
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { EdElement as
|
|
2
|
-
import { Chart as
|
|
1
|
+
import { EdElement as m } from "@brad-frost-web/eddie-web-components/components/EdElement.js";
|
|
2
|
+
import { Chart as c, LineController as b, LineElement as u, PointElement as _, CategoryScale as f, LinearScale as g, Filler as v, Tooltip as C, Legend as y } from "chart.js";
|
|
3
3
|
import { unsafeCSS as w, html as o } from "lit";
|
|
4
|
-
import { property as
|
|
4
|
+
import { property as d, query as k } from "lit/decorators.js";
|
|
5
5
|
import { ifDefined as L } from "lit/directives/if-defined.js";
|
|
6
6
|
import { observeThemeChange as $, prefersReducedMotion as x } from "../../theme-bridge.js";
|
|
7
7
|
import { formatPoint as P, isGap as F, NO_DATA as T } from "../../gaps.js";
|
|
8
|
-
const D = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}.ed-r-line-chart{display:block;container-type:inline-size;color:var(--ed-theme-color-content-default)}.ed-r-line-chart__canvas{position:relative;width:100%;min-width:0;height:20rem;margin-block-end:1.5rem}.ed-r-line-chart__canvas-el{display:block;max-width:100%}.ed-r-line-chart__details{margin-block-end:1rem;border:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-sm);background:var(--ed-theme-color-background-subtle)}.ed-r-line-chart__summary{padding:.5rem 1rem;cursor:pointer;font-weight:700;color:var(--ed-theme-color-content-default)}.ed-r-line-chart__table{width:100%;border-collapse:collapse;color:var(--ed-theme-color-content-default)}.ed-r-line-chart__caption{padding:.5rem 1rem;text-align:start;font-weight:700;caption-side:top}.ed-r-line-chart__th,.ed-r-line-chart__td{padding:.5rem 1rem;border-block-end:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle);text-align:start}.ed-r-line-chart__th{background:var(--ed-theme-color-background-subtle);font-weight:700}.ed-r-line-chart__gap-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}';
|
|
9
|
-
var E = Object.defineProperty, n = (
|
|
10
|
-
for (var r = void 0, s =
|
|
11
|
-
(l =
|
|
8
|
+
const D = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}:host([hidden]:not([hidden=until-found i])),[hidden]:not([hidden=until-found i]){display:none!important}.ed-r-line-chart{display:block;container-type:inline-size;color:var(--ed-theme-color-content-default)}.ed-r-line-chart__canvas{position:relative;width:100%;min-width:0;height:20rem;margin-block-end:1.5rem}.ed-r-line-chart__canvas-el{display:block;max-width:100%}.ed-r-line-chart__details{margin-block-end:1rem;border:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-sm);background:var(--ed-theme-color-background-subtle)}.ed-r-line-chart__summary{padding:.5rem 1rem;cursor:pointer;font-weight:700;color:var(--ed-theme-color-content-default)}.ed-r-line-chart__table{width:100%;border-collapse:collapse;color:var(--ed-theme-color-content-default)}.ed-r-line-chart__caption{padding:.5rem 1rem;text-align:start;font-weight:700;caption-side:top}.ed-r-line-chart__th,.ed-r-line-chart__td{padding:.5rem 1rem;border-block-end:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle);text-align:start}.ed-r-line-chart__th{background:var(--ed-theme-color-background-subtle);font-weight:700}.ed-r-line-chart__gap-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}';
|
|
9
|
+
var E = Object.defineProperty, n = (h, t, e, a) => {
|
|
10
|
+
for (var r = void 0, s = h.length - 1, l; s >= 0; s--)
|
|
11
|
+
(l = h[s]) && (r = l(t, e, r) || r);
|
|
12
12
|
return r && E(t, e, r), r;
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
c.register(
|
|
15
|
+
b,
|
|
16
16
|
u,
|
|
17
17
|
_,
|
|
18
18
|
f,
|
|
@@ -21,7 +21,7 @@ d.register(
|
|
|
21
21
|
C,
|
|
22
22
|
y
|
|
23
23
|
);
|
|
24
|
-
class i extends
|
|
24
|
+
class i extends m {
|
|
25
25
|
constructor() {
|
|
26
26
|
super(...arguments), this.data = { labels: [], datasets: [] }, this.chartLabel = "", this.dataTable = !0, this.yFormat = (t) => t.toLocaleString(), this.theme = null;
|
|
27
27
|
}
|
|
@@ -40,7 +40,7 @@ class i extends b {
|
|
|
40
40
|
!this.chart || !this.theme || (t.has("data") || t.has("showPaceLine") || t.has("yFormat")) && (this.chart.data = this.toChartJsData(), this.chart.options = this.toChartJsOptions(), this.chart.update());
|
|
41
41
|
}
|
|
42
42
|
createChart() {
|
|
43
|
-
!this.canvas || !this.theme || (this.chart = new
|
|
43
|
+
!this.canvas || !this.theme || (this.chart = new c(this.canvas, {
|
|
44
44
|
type: "line",
|
|
45
45
|
data: this.toChartJsData(),
|
|
46
46
|
options: this.toChartJsOptions()
|
|
@@ -177,19 +177,19 @@ class i extends b {
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
n([
|
|
180
|
-
|
|
180
|
+
d({ attribute: !1 })
|
|
181
181
|
], i.prototype, "data");
|
|
182
182
|
n([
|
|
183
|
-
|
|
183
|
+
d({ attribute: !1 })
|
|
184
184
|
], i.prototype, "showPaceLine");
|
|
185
185
|
n([
|
|
186
|
-
|
|
186
|
+
d()
|
|
187
187
|
], i.prototype, "chartLabel");
|
|
188
188
|
n([
|
|
189
|
-
|
|
189
|
+
d({ type: Boolean })
|
|
190
190
|
], i.prototype, "dataTable");
|
|
191
191
|
n([
|
|
192
|
-
|
|
192
|
+
d({ attribute: !1 })
|
|
193
193
|
], i.prototype, "yFormat");
|
|
194
194
|
n([
|
|
195
195
|
k("canvas")
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EdElement as m } from "@brad-frost-web/eddie-web-components/components/EdElement.js";
|
|
2
|
-
import { Chart as u, LineController as f, LineElement as _, PointElement as g, CategoryScale as v, LinearScale as j, Tooltip as
|
|
2
|
+
import { Chart as u, LineController as f, LineElement as _, PointElement as g, CategoryScale as v, LinearScale as j, Tooltip as y, Legend as C } from "chart.js";
|
|
3
3
|
import { unsafeCSS as k, html as p } from "lit";
|
|
4
4
|
import { property as c, query as x } from "lit/decorators.js";
|
|
5
5
|
import { ifDefined as w } from "lit/directives/if-defined.js";
|
|
6
6
|
import { observeThemeChange as L, prefersReducedMotion as $ } from "../../theme-bridge.js";
|
|
7
|
-
const P = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}.ed-r-projection{display:block;container-type:inline-size;color:var(--ed-theme-color-content-default)}.ed-r-projection__canvas{position:relative;width:100%;min-width:0;height:20rem;margin-block-end:1.5rem}.ed-r-projection__canvas-el{display:block;max-width:100%}.ed-r-projection__details{margin-block-end:1rem;border:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-sm);background:var(--ed-theme-color-background-subtle)}.ed-r-projection__summary{padding:.5rem 1rem;cursor:pointer;font-weight:700;color:var(--ed-theme-color-content-default)}.ed-r-projection__table{width:100%;border-collapse:collapse;color:var(--ed-theme-color-content-default)}.ed-r-projection__caption{padding:.5rem 1rem;text-align:start;font-weight:700;caption-side:top}.ed-r-projection__th,.ed-r-projection__td{padding:.5rem 1rem;border-block-end:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle);text-align:start}.ed-r-projection__th{background:var(--ed-theme-color-background-subtle);font-weight:700}';
|
|
7
|
+
const P = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}html{scroll-padding-block-start:var(--ed-site-header-block-size, 0px)}h1,h2,h3,h4,h5,h6{margin:0}:host([hidden]:not([hidden=until-found i])),[hidden]:not([hidden=until-found i]){display:none!important}.ed-r-projection{display:block;container-type:inline-size;color:var(--ed-theme-color-content-default)}.ed-r-projection__canvas{position:relative;width:100%;min-width:0;height:20rem;margin-block-end:1.5rem}.ed-r-projection__canvas-el{display:block;max-width:100%}.ed-r-projection__details{margin-block-end:1rem;border:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-sm);background:var(--ed-theme-color-background-subtle)}.ed-r-projection__summary{padding:.5rem 1rem;cursor:pointer;font-weight:700;color:var(--ed-theme-color-content-default)}.ed-r-projection__table{width:100%;border-collapse:collapse;color:var(--ed-theme-color-content-default)}.ed-r-projection__caption{padding:.5rem 1rem;text-align:start;font-weight:700;caption-side:top}.ed-r-projection__th,.ed-r-projection__td{padding:.5rem 1rem;border-block-end:var(--ed-theme-border-width-sm) solid var(--ed-theme-color-border-subtle);text-align:start}.ed-r-projection__th{background:var(--ed-theme-color-background-subtle);font-weight:700}';
|
|
8
8
|
var N = Object.defineProperty, n = (d, t, r, o) => {
|
|
9
9
|
for (var e = void 0, a = d.length - 1, s; a >= 0; a--)
|
|
10
10
|
(s = d[a]) && (e = s(t, r, e) || e);
|
|
@@ -16,8 +16,8 @@ u.register(
|
|
|
16
16
|
g,
|
|
17
17
|
v,
|
|
18
18
|
j,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
y,
|
|
20
|
+
C
|
|
21
21
|
);
|
|
22
22
|
class i extends m {
|
|
23
23
|
constructor() {
|