lintje 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-elements/actions.js +1 -1
- package/dist-elements/chunks/{base-DRGvkF-r.js → base-CVKIPSLx.js} +99 -96
- package/dist-elements/chunks/chart-styles-JK4clSyA.js +108 -0
- package/dist-elements/chunks/{dialog-B7aRBtjy.js → dialog-D4V467iC.js} +2 -2
- package/dist-elements/chunks/{disclosure-DirPLy2E.js → disclosure-DVex7Lo_.js} +1 -1
- package/dist-elements/chunks/download-D7ZarlMZ.js +103 -0
- package/dist-elements/chunks/{focus-trap-Dv8zu64A.js → focus-trap-rje9Oz19.js} +1 -1
- package/dist-elements/chunks/{input-BGMLam-O.js → input-DEHA2Z_0.js} +1 -1
- package/dist-elements/chunks/{player-BApadXr8.js → player-DDDWUevR.js} +1 -1
- package/dist-elements/chunks/{sentence-0wO85ZdJ.js → sentence-mY0Iqu5H.js} +1 -1
- package/dist-elements/chunks/{stagger-BB_gcxBI.js → stagger-Dvkth9_C.js} +95 -94
- package/dist-elements/content.js +1 -0
- package/dist-elements/core.js +1 -1
- package/dist-elements/custom-elements.json +120 -2
- package/dist-elements/data-types.json +208 -1
- package/dist-elements/feedback.js +1 -1
- package/dist-elements/guides/loading.md +1 -1
- package/dist-elements/inputs.js +2 -2
- package/dist-elements/layout.js +1 -1
- package/dist-elements/lintje.js +2836 -1915
- package/dist-elements/overlays.js +1 -1
- package/dist-elements/tag/activity-log.js +1 -1
- package/dist-elements/tag/ai-label.js +1 -1
- package/dist-elements/tag/announcement.js +2 -2
- package/dist-elements/tag/app-search.js +2 -2
- package/dist-elements/tag/audio-player.js +2 -2
- package/dist-elements/tag/badge.js +1 -1
- package/dist-elements/tag/breadcrumbs.js +1 -1
- package/dist-elements/tag/button.js +1 -1
- package/dist-elements/tag/card-list.js +1 -1
- package/dist-elements/tag/card.js +1 -1
- package/dist-elements/tag/chart.js +1020 -961
- package/dist-elements/tag/chat-answer.js +2 -2
- package/dist-elements/tag/chat-composer.js +1 -1
- package/dist-elements/tag/chat-message.js +1 -1
- package/dist-elements/tag/chat-strip.js +1 -1
- package/dist-elements/tag/chat-suggestions.js +1 -1
- package/dist-elements/tag/chat.js +1 -1
- package/dist-elements/tag/checkbox-group.js +2 -2
- package/dist-elements/tag/checkbox.js +2 -2
- package/dist-elements/tag/code.js +1 -1
- package/dist-elements/tag/combobox.js +2 -2
- package/dist-elements/tag/conflict-alert.js +1 -1
- package/dist-elements/tag/copy-button.js +1 -1
- package/dist-elements/tag/data-table.js +264 -263
- package/dist-elements/tag/date-input.js +2 -2
- package/dist-elements/tag/date-range.js +3 -3
- package/dist-elements/tag/description-list.js +1 -1
- package/dist-elements/tag/dialog.js +3 -3
- package/dist-elements/tag/document-viewer.js +1 -1
- package/dist-elements/tag/drawer.js +3 -3
- package/dist-elements/tag/empty-state.js +1 -1
- package/dist-elements/tag/error-page.js +1 -1
- package/dist-elements/tag/error-summary.js +1 -1
- package/dist-elements/tag/expander.js +2 -2
- package/dist-elements/tag/explainer.js +2 -2
- package/dist-elements/tag/field.js +1 -1
- package/dist-elements/tag/file-upload.js +3 -3
- package/dist-elements/tag/filter-bar.js +3 -3
- package/dist-elements/tag/filter-sheet.js +3 -3
- package/dist-elements/tag/filter-zone.js +2 -2
- package/dist-elements/tag/find.js +15 -11
- package/dist-elements/tag/footer.js +1 -1
- package/dist-elements/tag/form-actions.js +1 -1
- package/dist-elements/tag/form-section.js +1 -1
- package/dist-elements/tag/form.js +1 -1
- package/dist-elements/tag/gallery.js +1 -1
- package/dist-elements/tag/grid-item.js +1 -1
- package/dist-elements/tag/grid.js +1 -1
- package/dist-elements/tag/hero.js +1 -1
- package/dist-elements/tag/highlight.js +1 -1
- package/dist-elements/tag/icon-button.js +1 -1
- package/dist-elements/tag/icon.js +1 -1
- package/dist-elements/tag/job-list.js +1 -1
- package/dist-elements/tag/kpi-row.js +1 -1
- package/dist-elements/tag/kpi.js +38 -36
- package/dist-elements/tag/level-meter.js +1 -1
- package/dist-elements/tag/list.js +2 -2
- package/dist-elements/tag/log-viewer.d.ts +1 -0
- package/dist-elements/tag/log-viewer.js +847 -0
- package/dist-elements/tag/logo.js +1 -1
- package/dist-elements/tag/map.js +184 -183
- package/dist-elements/tag/menu-button.js +14 -9
- package/dist-elements/tag/modal.js +2 -2
- package/dist-elements/tag/multiselect.js +3 -3
- package/dist-elements/tag/note.js +1 -1
- package/dist-elements/tag/notifications.js +2 -2
- package/dist-elements/tag/number-input.js +2 -2
- package/dist-elements/tag/page-header.js +1 -1
- package/dist-elements/tag/pagination.js +16 -16
- package/dist-elements/tag/popover.js +1 -1
- package/dist-elements/tag/progress-bar.js +1 -1
- package/dist-elements/tag/prose.js +1 -1
- package/dist-elements/tag/qr-code.js +1 -1
- package/dist-elements/tag/radio-group.js +2 -2
- package/dist-elements/tag/range.js +2 -2
- package/dist-elements/tag/recording-status.js +1 -1
- package/dist-elements/tag/repeater.js +1 -1
- package/dist-elements/tag/segmented.js +2 -2
- package/dist-elements/tag/select.js +2 -2
- package/dist-elements/tag/shell.js +2 -2
- package/dist-elements/tag/skeleton.js +1 -1
- package/dist-elements/tag/slot-picker.js +2 -2
- package/dist-elements/tag/sortable-list.js +1 -1
- package/dist-elements/tag/spinner.js +1 -1
- package/dist-elements/tag/split-pane.js +1 -1
- package/dist-elements/tag/status-dot.js +1 -1
- package/dist-elements/tag/stepper.js +1 -1
- package/dist-elements/tag/streaming-text.js +1 -1
- package/dist-elements/tag/sub-nav.js +1 -1
- package/dist-elements/tag/tabs.js +1 -1
- package/dist-elements/tag/tag-input.js +2 -2
- package/dist-elements/tag/text-editor.js +2 -2
- package/dist-elements/tag/text-input.js +2 -2
- package/dist-elements/tag/textarea.js +2 -2
- package/dist-elements/tag/tile.js +1 -1
- package/dist-elements/tag/time-input.js +2 -2
- package/dist-elements/tag/toast.js +2 -2
- package/dist-elements/tag/toggle.js +2 -2
- package/dist-elements/tag/toggletip.js +2 -2
- package/dist-elements/tag/token-value.js +1 -1
- package/dist-elements/tag/tooltip.js +1 -1
- package/dist-elements/tag/transcript.js +1 -1
- package/dist-elements/tag/translator.js +1 -1
- package/dist-elements/tag/tree-view.js +1 -1
- package/dist-elements/tag/user-menu.js +1 -1
- package/dist-elements/tag/video-player.js +2 -2
- package/dist-elements/tokens.css +2 -0
- package/dist-elements/tokens.json +4 -0
- package/dist-elements/types/bundle/content.d.ts +1 -0
- package/dist-elements/types/bundle/index.d.ts +1 -1
- package/dist-elements/types/components/actions/menu-button/menu-button.d.ts +4 -1
- package/dist-elements/types/components/content/log-viewer/lines.d.ts +33 -0
- package/dist-elements/types/components/content/log-viewer/log-viewer.d.ts +117 -0
- package/dist-elements/types/components/index.d.ts +2 -0
- package/dist-elements/types/components/inputs/find/find.d.ts +1 -0
- package/dist-elements/types/components/shared/charts/shared/axes.d.ts +7 -1
- package/dist-elements/types/components/shared/charts/shared/controller.d.ts +0 -1
- package/dist-elements/types/components/shared/charts/shared/layer-motion.d.ts +21 -0
- package/dist-elements/types/components/shared/download.d.ts +2 -0
- package/dist-elements/types/types.d.ts +44 -0
- package/package.json +1 -1
- package/dist-elements/chunks/download-C68kcwPj.js +0 -206
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { bt as e, en as t, in as n, lt as r, nn as i, ut as a } from "./base-CVKIPSLx.js";
|
|
2
|
+
//#region src/components/shared/charts/shared/chart-icons.ts
|
|
3
|
+
function o(e, n, r = 16, i) {
|
|
4
|
+
let o = a(e, {
|
|
5
|
+
size: r,
|
|
6
|
+
flip: i
|
|
7
|
+
});
|
|
8
|
+
return o === t ? n : o;
|
|
9
|
+
}
|
|
10
|
+
var s = [
|
|
11
|
+
{
|
|
12
|
+
action: "in",
|
|
13
|
+
name: "functioneel-plus",
|
|
14
|
+
text: "+",
|
|
15
|
+
label: "Inzoomen"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
action: "out",
|
|
19
|
+
name: "functioneel-minus",
|
|
20
|
+
text: "−",
|
|
21
|
+
label: "Uitzoomen"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
action: "home",
|
|
25
|
+
name: "functioneel-refresh",
|
|
26
|
+
flip: "horizontal",
|
|
27
|
+
text: "Terug",
|
|
28
|
+
label: "Kaart terugzetten"
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/shared/charts/shared/chart-states.ts
|
|
33
|
+
function c(t = "100%", n = 12, r = "") {
|
|
34
|
+
let a = (e) => typeof e == "number" ? `${e}px` : e;
|
|
35
|
+
return i`<span class="lintje-skeleton ${r}"
|
|
36
|
+
${e({
|
|
37
|
+
width: a(t),
|
|
38
|
+
height: a(n)
|
|
39
|
+
})} aria-hidden="true"></span>`;
|
|
40
|
+
}
|
|
41
|
+
function l({ kind: n = "line", height: r, status: a = !0 } = {}) {
|
|
42
|
+
return i`
|
|
43
|
+
<div class="lintje-chart-skeleton lintje-chart-skeleton--${n}"
|
|
44
|
+
${e({ height: r ?? (n === "table" ? void 0 : "var(--chart-h-main)") })}
|
|
45
|
+
role=${a ? "status" : t}
|
|
46
|
+
aria-hidden=${a ? t : "true"}>
|
|
47
|
+
<!-- In words, not only in a label: a status region is spoken from its content. -->
|
|
48
|
+
${a ? i`<span class="visually-hidden">Gegevens laden…</span>` : t}
|
|
49
|
+
${n === "line" || n === "bar" ? i`
|
|
50
|
+
<div class="lintje-chart-skeleton__y-labels">
|
|
51
|
+
${[
|
|
52
|
+
0,
|
|
53
|
+
1,
|
|
54
|
+
2,
|
|
55
|
+
3
|
|
56
|
+
].map(() => c(24, 10))}
|
|
57
|
+
</div>
|
|
58
|
+
<div class="lintje-chart-skeleton__x-labels">
|
|
59
|
+
${[
|
|
60
|
+
0,
|
|
61
|
+
1,
|
|
62
|
+
2
|
|
63
|
+
].map(() => c(32, 10))}
|
|
64
|
+
</div>
|
|
65
|
+
<div class="lintje-chart-skeleton__plot">
|
|
66
|
+
${c("100%", "100%", "lintje-chart-skeleton__fill")}
|
|
67
|
+
</div>
|
|
68
|
+
` : t}
|
|
69
|
+
${n === "pie" || n === "donut" ? i`
|
|
70
|
+
<!-- Sized by the skeleton's own box, so it always fits beside its lines. -->
|
|
71
|
+
${c("min(100cqh, 60cqw, 200px)", "auto", "lintje-chart-skeleton__disc")}
|
|
72
|
+
<div class="lintje-chart-skeleton__lines">
|
|
73
|
+
${[
|
|
74
|
+
"80%",
|
|
75
|
+
"64%",
|
|
76
|
+
"48%"
|
|
77
|
+
].map((e) => c(e, 13))}
|
|
78
|
+
</div>
|
|
79
|
+
` : t}
|
|
80
|
+
${n === "heatmap" ? Array.from({ length: 35 }, () => c("100%", "100%")) : t}
|
|
81
|
+
${n === "map" ? i`
|
|
82
|
+
${c("100%", "100%", "lintje-chart-skeleton__fill")}
|
|
83
|
+
<div class="lintje-chart-skeleton__zoom" aria-hidden="true">
|
|
84
|
+
${s.map((e) => i`
|
|
85
|
+
<span class="lintje-chart-skeleton__zoom-button">${o(e.name, e.text, 16, "flip" in e ? e.flip : void 0)}</span>
|
|
86
|
+
`)}
|
|
87
|
+
</div>
|
|
88
|
+
` : t}
|
|
89
|
+
${n === "table" ? Array.from({ length: 5 }, () => i`
|
|
90
|
+
<div class="lintje-chart-skeleton__row">
|
|
91
|
+
${c("32%")}
|
|
92
|
+
${c("12%", 12, "lintje-chart-skeleton__measure")}
|
|
93
|
+
${c("12%")}
|
|
94
|
+
</div>
|
|
95
|
+
`) : t}
|
|
96
|
+
</div>
|
|
97
|
+
`;
|
|
98
|
+
}
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/components/shared/charts/shared/chart.css?inline
|
|
101
|
+
var u = ".lintje-chart { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }\n/* Charts that are as high as their rows (horizontal bars, target progress) center in a taller\n tile instead of leaving the space below them empty. */\n.lintje-chart--rows { margin-block: auto; }\n.lintje-chart__axis-title { font: var(--text-axis); color: var(--color-text-muted); }\n/* The title of the x axis (`xTitle` in `renderChartFrame`): the axis title's type, in the\n drawing, under the x labels at the right. */\n.lintje-chart__x-title { font: var(--text-axis); fill: var(--color-text-muted); }\n.lintje-chart__svg {\n width: 100%;\n display: block;\n overflow: visible;\n}\n\n.lintje-chart__axis-label {\n font-family: var(--font-ui);\n font-size: 0.75rem;\n font-weight: 400;\n fill: var(--color-chart-axis);\n}\n/* Data labels are bold so they read as values rather than axis labels. */\n.lintje-chart__data-label {\n font-family: var(--font-ui);\n font-size: 0.75rem;\n font-weight: 700;\n fill: var(--color-text-primary);\n}\n/* On a mark the label takes the text of the fill it stands on: white on a dark rung, ink on a\n light one. The fills are the same in both modes, so the label is too. */\n.lintje-chart__data-label--inside { fill: var(--color-text-on-fill); }\n.lintje-chart__data-label--inside-light { fill: var(--color-text-on-light-fill); }\n/* On a threshold line (horizontal bars) or beside one (histogram, scatter): a halo in the surface color.\n Invisible on the tile, it cuts a line or a bar where the label crosses it. */\n.lintje-chart__data-label--halo,\n.lintje-chart__axis-label--halo {\n stroke: var(--color-bg-surface);\n stroke-width: 4px;\n stroke-linejoin: round;\n paint-order: stroke fill;\n}\n.lintje-chart__as-of-label {\n font-family: var(--font-ui);\n font-size: 0.75rem;\n font-weight: 700;\n fill: var(--color-text-primary);\n}\n.lintje-chart__as-of-note {\n font-family: var(--font-ui);\n font-size: 0.75rem;\n fill: var(--color-text-muted);\n /* A halo in the surface, as a data label on a line has: an event line may cross it. */\n stroke: var(--color-bg-surface);\n stroke-width: 4px;\n stroke-linejoin: round;\n paint-order: stroke fill;\n}\n\n.lintje-chart__line { stroke-width: 2.5; fill: none; stroke-linejoin: round; }\n/* 1 px either side of the line, under it (`lineCasing`). */\n.lintje-chart__line--casing { stroke-width: 4.5; }\n\n/* Bars. transform-box: fill-box puts the origin in the bar's own box instead of the svg's:\n a bar widens around its own middle. A horizontal bar is anchored at the category axis. */\n.lintje-chart__bar {\n transform-box: fill-box;\n transform-origin: 50% 100%;\n transition: transform var(--dur-hover) var(--ease-in-motion), filter var(--dur-hover) var(--ease-in-motion);\n}\n.lintje-chart__bar--horizontal { transform-origin: 0 50%; }\n\n/* The bar under the pointer widens a little and lifts with a light\n shadow, so it is clear what the tooltip describes — the same lift as a pie segment. Only the\n width grows: the length carries the value. A stacked column lifts as a whole. */\n.lintje-chart__bar-group:hover .lintje-chart__bar,\n.lintje-chart__bar-group.is-hovered .lintje-chart__bar {\n transform: scaleX(1.06);\n filter: drop-shadow(var(--shadow-chart-hover));\n}\n/* A histogram's classes touch: its lift is a copy drawn over its neighbours. */\n.lintje-chart__bar--lifted {\n transform: scaleX(1.06);\n filter: drop-shadow(var(--shadow-chart-hover));\n pointer-events: none;\n}\n.lintje-chart__bar-row:hover .lintje-chart__bar--horizontal,\n.lintje-chart__bar-row.is-hovered .lintje-chart__bar--horizontal {\n transform: scaleY(1.12);\n filter: drop-shadow(var(--shadow-chart-hover));\n}\n\n/* A mark that drills. The same three states wherever a mark can carry a\n href — bars, stacked segments, pie slices — and the same ones the map draws: the chosen\n mark takes the text colour as a 2 px outline (the outline is the carrier, not the colour,\n rule 13) and every other mark steps back so it reads against them; .45 is the legend's own\n dimming. The focus ring is the orange 3 px of every other control, around the shape with\n a 1 px gap in the surface (`renderFocusRing`, axes.ts), so an orange mark keeps it too: the\n box an outline draws around a slice or a stacked segment is not the shape the reader is on. */\n.lintje-chart__mark.is-clickable { cursor: pointer; }\n.lintje-chart__mark.is-selected { stroke: var(--color-text-primary); stroke-width: 2; }\n.lintje-chart__mark.is-muted { fill-opacity: .45; }\n/* A focused SVG element with a tabindex gets the browser's own box even where `:focus-visible`\n does not match, after a click: the ring below is the only one. */\n.lintje-chart__mark:focus { outline: none; }\n/* Weighs as much as the hover's lift and stands after it, so the ring is what a focused bar\n under the pointer shows. Only a clickable mark takes the focus. */\n.lintje-chart__mark.is-clickable:focus-visible {\n outline: none;\n filter: var(--lintje-focus-ring);\n}\n.lintje-chart__focus-ring { flood-color: var(--color-focus); }\n.lintje-chart__focus-gap { flood-color: var(--color-bg-surface); }\n/* Stacked segments and slices of neighbouring tints part with a 1 px line in the surface:\n two rungs of the ladder differ by 1.2–1.5:1. */\n.lintje-chart__segment { stroke: var(--color-bg-surface); stroke-width: 1px; }\n\n/* Radar: polygon rings in the grid; the spokes are the axes and take the zero line's colour. */\n.lintje-radar__ring { fill: none; stroke: var(--color-chart-grid); stroke-width: 1; }\n.lintje-radar__spoke { stroke: var(--color-chart-zero); stroke-width: 1; }\n.lintje-radar__spoke.is-active { stroke: var(--color-chart-axis); stroke-width: 1.5; }\n.lintje-radar__name { font: var(--text-small); fill: var(--color-text-primary); }\n.lintje-radar__no-value { font-weight: 400; fill: var(--color-text-muted); }\n/* The fill a line chart gives its area. */\n.lintje-radar__area { fill-opacity: 0; transition: fill-opacity var(--dur-hover) var(--ease-in-motion); }\n.lintje-radar__area.is-filled { fill-opacity: .14; }\n.lintje-radar__norm { fill: none; stroke: var(--color-chart-emphasis); stroke-width: 1.5; stroke-dasharray: 4 3; }\n/* Of more layers the one pointed at in the legend leads; the others step back as a hidden one does. */\n.lintje-radar__layer { transition: opacity var(--dur-hover) var(--ease-in-motion); }\n.lintje-radar__layer.is-muted { opacity: .45; }\n.lintje-radar__lift { pointer-events: none; }\n.lintje-radar__zero { stroke: var(--color-chart-zero); stroke-width: 1; }\n.lintje-radar__row.is-active .lintje-radar__name { font-weight: 700; }\n\n/* Draw-in takes 900 ms for data marks only. Axes, grid and titles appear immediately. */\n@media (prefers-reduced-motion: no-preference) {\n /* A line and the area below it are uncovered together from left to right. The clip opens over the box\n of the series; the negative insets leave room for the stroke outside that box. */\n .lintje-chart__reveal { animation: lintje-reveal var(--dur-draw) var(--ease-in-motion) backwards; }\n /* Bars grow from the axis one after another: left to right, or top to bottom when horizontal\n --lintje-stagger (0 to 1, set per bar) spreads the starts over the first\n 40 % of the draw and each bar grows in the other 60 %, so all are done at --dur-draw. A\n column grows as a whole, so stacked segments stay together. Fill mode `backwards`, not\n `both`: a transform held after the end would override the hover transform. */\n .lintje-chart__bar-group,\n .lintje-chart__bar--horizontal {\n animation-duration: calc(var(--dur-draw) * 0.6);\n animation-timing-function: var(--ease-in-motion);\n animation-delay: calc(var(--dur-draw) * 0.4 * var(--lintje-stagger, 0));\n animation-fill-mode: backwards;\n }\n .lintje-chart__bar-group {\n transform-box: fill-box;\n transform-origin: 50% 100%;\n animation-name: lintje-grow;\n }\n .lintje-chart__bar--horizontal { animation-name: lintje-grow-x; }\n .lintje-chart__bar--lifted { animation: lintje-lift var(--dur-hover) var(--ease-in-motion) backwards; }\n /* Data labels fade in once the marks are drawn, eased at both ends. */\n .lintje-chart__data-label { animation: lintje-fade-in var(--dur-data-label) ease-in-out var(--dur-draw) both; }\n /* A reference line comes in with its label once the marks are drawn, as a data label does;\n a data label inside it does not fade a second time. */\n .lintje-chart__reference { animation: lintje-fade-in var(--dur-data-label) ease-in-out var(--dur-draw) both; }\n /* A scatter point grows from its middle as a map point does, one after another along x, with\n the bars' timing. */\n .lintje-chart__point {\n transform-box: fill-box;\n transform-origin: 50% 50%;\n animation: lintje-point-grow calc(var(--dur-draw) * 0.6) var(--ease-in-motion)\n calc(var(--dur-draw) * 0.4 * var(--lintje-stagger, 0)) backwards;\n }\n .lintje-chart__reference .lintje-chart__data-label { animation: none; }\n /* A radar's layers grow from the centre once, with the bars' timing; the norm comes after. */\n .lintje-radar__layer {\n animation: lintje-point-grow calc(var(--dur-draw) * 0.6) var(--ease-in-motion)\n calc(var(--dur-draw) * 0.4) backwards;\n }\n\n /* Draw in only once the chart comes into view. By default the marks are\n paused on their first frame (series covered, bar flat, label gone); as soon\n as usePlotArea sets data-in-view on the outermost chart element, they run.\n These rules come after the `animation` shorthands above: those set\n animation-play-state back to running and would otherwise win at equal\n specificity. They sit inside this media block because with reduced motion\n there is no animation — and a paused fill-mode would keep the marks\n invisible there. */\n .lintje-chart__reveal,\n .lintje-chart__bar-group,\n .lintje-chart__bar--horizontal,\n .lintje-chart__data-label,\n .lintje-chart__reference,\n .lintje-chart__point,\n .lintje-radar__layer { animation-play-state: paused; }\n [data-in-view] .lintje-chart__reveal,\n [data-in-view] .lintje-chart__bar-group,\n [data-in-view] .lintje-chart__bar--horizontal,\n [data-in-view] .lintje-chart__data-label,\n [data-in-view] .lintje-chart__reference,\n [data-in-view] .lintje-chart__point,\n [data-in-view] .lintje-radar__layer { animation-play-state: running; }\n}\n@keyframes lintje-reveal {\n from { clip-path: inset(-8px calc(100% + 8px) -8px -8px); }\n to { clip-path: inset(-8px); }\n}\n@keyframes lintje-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }\n@keyframes lintje-lift { from { transform: none; filter: none; } }\n@keyframes lintje-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }\n\n/* A series or reference switched off in the legend keeps its nodes and fades, so switching it\n back fades it in rather than drawing it in again; gone, it is hidden to the pointer and the\n reader. The fade sits on its own element: a draw-in held with fill mode `both` would win. */\n.lintje-chart__series.is-off,\n.lintje-chart__point.is-off { opacity: 0; visibility: hidden; pointer-events: none; }\n@media (prefers-reduced-motion: no-preference) {\n .lintje-chart__series,\n .lintje-chart__point { transition: opacity var(--dur-layer) var(--ease-fade), visibility 0s; }\n .lintje-chart__series.is-off,\n .lintje-chart__point.is-off {\n transition: opacity var(--dur-layer) var(--ease-fade), visibility 0s var(--dur-layer);\n }\n}\n\n/* --- Legend -------------------------------------------------------------- */\n.lintje-legend {\n display: flex;\n flex-wrap: wrap;\n gap: var(--space-2) var(--space-4);\n font: var(--text-small);\n color: var(--color-text-primary);\n}\n/* A legend above the chart keeps 12 px to the axis title below it. */\n.lintje-chart-wrap > .lintje-legend { margin-bottom: var(--space-3); }\n.lintje-legend--right { flex-direction: column; flex-wrap: nowrap; }\n.lintje-legend__item { display: flex; align-items: center; gap: 6px; }\n.lintje-legend__button { display: flex; align-items: center; gap: 6px; font: inherit; color: inherit; }\n/* A series switched off: the marker steps back and the name is struck through, at full\n contrast — the strike and `aria-pressed` carry the state, not a faded word. */\n.lintje-legend__item.is-hidden .lintje-legend__marker { opacity: 0.45; }\n@media (prefers-reduced-motion: no-preference) {\n .lintje-legend__marker { transition: opacity var(--dur-layer) var(--ease-fade); }\n}\n.lintje-legend__item.is-hidden .lintje-legend__label { text-decoration: line-through; }\n\n.lintje-legend__marker { flex: none; display: block; }\n.lintje-legend__marker--symbol { width: 14px; height: 14px; }\n.lintje-legend__marker--square { width: 12px; height: 12px; background: currentColor; }\n.lintje-legend__marker--line { width: 14px; height: 3px; background: currentColor; }\n/* \"No data\" on a map: the hatch the mark carries, on the surface (rule 15). */\n.lintje-legend__marker--hatch {\n width: 16px; height: 10px;\n background: repeating-linear-gradient(45deg, var(--color-chart-hatch) 0 2px, transparent 2px 6px);\n border: 1px solid var(--color-border-default);\n}\n.lintje-legend__marker--dashed {\n width: 14px; height: 0;\n border-top: 2px dashed currentColor;\n}\n\n/* --- Tooltip ------------------------------------------------------------- */\n.lintje-chart-tooltip {\n position: absolute;\n z-index: 55;\n pointer-events: none;\n background: var(--color-bg-surface);\n border: 1px solid var(--color-border-popover);\n box-shadow: var(--shadow-popover);\n padding: var(--space-2) 10px;\n font: var(--text-small);\n min-width: 160px;\n /* Its own width, whatever its position: shrink-to-fit narrowed it near the right edge. */\n width: max-content;\n max-width: 320px;\n}\n.lintje-chart-tooltip__title { font-weight: 700; margin-bottom: 4px; }\n.lintje-chart-tooltip__row { display: flex; align-items: center; gap: 6px; justify-content: space-between; }\n.lintje-chart-tooltip__label { display: flex; align-items: center; gap: 6px; }\n.lintje-chart-tooltip__marker { width: 10px; height: 10px; flex: none; }\n.lintje-chart-tooltip__marker--symbol { width: 14px; height: 14px; }\n.lintje-chart-tooltip__marker--line { width: 14px; height: 3px; background: currentColor; }\n.lintje-chart-tooltip__marker--dashed { width: 14px; height: 0; border-top: 2px dashed currentColor; }\n.lintje-chart-tooltip__row--divider {\n border-top: 1px solid var(--color-border-popover);\n margin-top: var(--space-1);\n padding-top: var(--space-1);\n}\n.lintje-chart-tooltip__value { font-weight: 700; margin-left: var(--space-3); }\n.lintje-chart-tooltip__event {\n display: flex;\n align-items: flex-start;\n gap: var(--space-2);\n margin-top: var(--space-1);\n padding-top: var(--space-1);\n border-top: 1px solid var(--color-border-default);\n}\n/* One line divides the values from the events, not one event from the next. */\n.lintje-chart-tooltip__event + .lintje-chart-tooltip__event { padding-top: 0; border-top: 0; }\n\n.lintje-chart-wrap { position: relative; min-width: 0; }\n\n/* Chart tooltip anchor: coordinates and positioning both share this element. */\n[data-tooltip-anchor] { position: relative; }\n\n/* Hover point on a line: 4 px in the series color — the size of the as-of point —\n with a ring in the surface color, so it stays legible on the line and on the\n filled area below it. No animation: hover does not redraw. */\n.lintje-chart__hover-point { stroke: var(--color-bg-surface); stroke-width: 2; pointer-events: none; }\n/* The edge of a dark-yellow hover point (`lineCasing`), over its ring. */\n.lintje-chart__hover-casing { fill: none; stroke-width: 1; pointer-events: none; }\n\n/* The scatter plot's one pointer target, under its points: the nearest point within half of\n --h-target answers (`pick`, scatter-chart.ts), so a small point is a full target. */\n.lintje-chart__hit { fill: transparent; }\n.lintje-chart__hit.is-clickable { cursor: pointer; }\n\n/* An event: a numbered square above the plot with a solid line to the zero line — apart from\n the dashed as-of line — and its text in a list under the chart and in the tooltip. */\n.lintje-chart__event-line { stroke: var(--color-chart-axis); stroke-width: 1px; }\n.lintje-chart__event-chip { fill: var(--color-text-primary); }\n.lintje-chart__event-number {\n font-family: var(--font-ui);\n font-size: 0.75rem;\n font-weight: 700;\n fill: var(--color-text-inverse);\n}\n/* The square stands in a box one line of its text tall, so it centres on the first line. The\n size comes from the drawing (`--lintje-event-size`), where the squares are measured. */\n.lintje-event-chip { flex: none; display: flex; align-items: center; height: 1lh; }\n.lintje-event-chip__number {\n width: var(--lintje-event-size);\n height: var(--lintje-event-size);\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--color-text-primary);\n color: var(--color-text-inverse);\n font-family: var(--font-ui);\n font-size: 0.75rem;\n font-weight: 700;\n}\n.lintje-chart-events {\n display: flex;\n flex-direction: column;\n gap: var(--space-2);\n margin-top: var(--space-3);\n font: var(--text-small);\n color: var(--color-text-primary);\n}\n.lintje-chart-events__item { display: flex; align-items: flex-start; gap: var(--space-2); }\n.lintje-chart-events__category { font-weight: 700; }\n\n\n/* --- States -------------------------------------------------------------- */\n/* Loading uses a skeleton per chart type, exactly as tall as the chart it stands in for. */\n/* The stand-in grows into a tile that is taller than it: a tile that holds its height\n while it fetches again or stretches to its row. `height` stays\n the basis, so where there is no room to take nothing changes; in a held box that is\n shorter than the stand-in it shrinks to fit. */\n.lintje-chart-skeleton { position: relative; min-width: 0; overflow: hidden; flex: 1 1 auto; min-height: 0; }\n/* Line, area and bars: \"assen echt, datavlak één glanzend blok\". Real axis lines around one\n shimmering block, in the charts' plot area (left 52, right 8, top 16, bottom 28). The axis\n labels load with the data: four bars in the gutter, from the top line to the zero line where\n the labels sit, and three below the axis, so the gutter doesn't read as empty. */\n.lintje-chart-skeleton__plot {\n position: absolute;\n top: 16px; right: 8px; bottom: 28px; left: 52px;\n border-left: 1px solid var(--color-chart-grid);\n border-bottom: 1px solid var(--color-chart-zero);\n}\n.lintje-chart-skeleton__fill { position: absolute; inset: 0; }\n.lintje-chart-skeleton__y-labels {\n position: absolute;\n top: 11px; bottom: 23px; left: 0; width: 44px;\n display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;\n}\n.lintje-chart-skeleton__x-labels {\n position: absolute;\n right: 8px; bottom: 7px; left: 52px;\n display: flex; justify-content: space-between;\n}\n/* Pie and donut: \"ring + drie legendaregels\", a disc for the pie and a ring\n with a 62 % hole for the donut, beside three lines. The skeleton is a size container: the disc\n is never taller than the skeleton, never wider than 60 % of it and at most 200 px, so the lines\n keep their room in a narrow tile. */\n.lintje-chart-skeleton--pie,\n.lintje-chart-skeleton--donut { container-type: size; display: flex; align-items: center; gap: var(--space-5); }\n.lintje-chart-skeleton__disc {\n position: relative;\n flex: none;\n aspect-ratio: 1;\n border-radius: var(--radius-round);\n}\n.lintje-chart-skeleton--donut .lintje-chart-skeleton__disc::after {\n content: '';\n position: absolute;\n inset: 19%;\n border-radius: var(--radius-round);\n background: var(--color-bg-surface);\n}\n.lintje-chart-skeleton__lines {\n flex: 1;\n min-width: 0;\n max-width: 240px;\n display: flex;\n flex-direction: column;\n gap: var(--space-3);\n}\n/* Heatmap: \"cellen glanzen individueel\" — cells with the heatmap's 3 px gutter, each with its\n own sweep. */\n.lintje-chart-skeleton--heatmap {\n display: grid;\n grid-template-columns: repeat(7, minmax(0, 1fr));\n grid-template-rows: repeat(5, minmax(0, 1fr));\n gap: 3px;\n}\n/* Map: \"kaartvlak glanst, overlays echt\" — the map area shimmers; the zoom buttons are drawn\n as on the map (48 px, top right). */\n.lintje-chart-skeleton__zoom {\n position: absolute;\n top: var(--space-2); right: var(--space-2);\n display: flex;\n flex-direction: column;\n}\n.lintje-chart-skeleton__zoom-button {\n width: var(--h-target); height: var(--h-target);\n display: flex; align-items: center; justify-content: center;\n background: var(--color-bg-surface);\n color: var(--color-text-primary);\n border: 1px solid var(--color-border-strong);\n margin-top: -1px;\n}\n.lintje-chart-skeleton__zoom-button:first-child { margin-top: 0; }\n/* Table: \"5 rijen\" — five rows at the table's row height. */\n.lintje-chart-skeleton--table { display: flex; flex-direction: column; }\n.lintje-chart-skeleton__row {\n flex: none;\n height: var(--h-table-row);\n display: flex;\n align-items: center;\n gap: var(--space-6);\n padding: 0 var(--space-3);\n border-bottom: 1px solid var(--color-border-default);\n}\n.lintje-chart-skeleton__measure { margin-left: auto; }\n\n/* --- Forced colours ------------------------------------------------------- */\n/* One colour per variable is what tells the series apart, and the legend's\n marker is what ties a colour to a name: with the reader's palette they would\n all come out one colour. So the data marks and the markers keep their drawing\n (`forced-color-adjust: none`) — the bars, segments and slices, the lines and\n their areas, the hover point, the legend's and the tooltip's markers — and\n nothing else does: the axes, the grid, the labels and the titles take the\n reader's palette. A data label is forced again even where it stands in a\n group that is not (the stacked column), except one drawn ON a mark, which keeps\n its own colour against that mark. The halo behind a label is the surface, so\n Canvas, and so are the gap between segments and the one inside the focus\n ring. The chosen mark is outlined in CanvasText and the focused one ringed in\n Highlight. */\n@media (forced-colors: active) {\n .lintje-chart__bar,\n .lintje-chart__mark,\n .lintje-chart__line,\n .lintje-chart__reveal,\n .lintje-chart__hover-point,\n .lintje-chart__hover-casing,\n .lintje-chart__hit,\n .lintje-legend__marker,\n .lintje-chart-tooltip__marker,\n .lintje-event-chip__number { forced-color-adjust: none; }\n .lintje-chart__data-label { forced-color-adjust: auto; }\n /* Text in the reader's palette by name, not left to the engine: not every\n engine repaints an SVG `fill`, and near-black on a black Canvas is nothing. */\n .lintje-chart__axis-label,\n .lintje-chart__data-label,\n .lintje-chart__as-of-label,\n .lintje-chart__as-of-note,\n .lintje-chart__x-title,\n .lintje-radar__name { fill: CanvasText; }\n .lintje-radar__ring,\n .lintje-radar__spoke,\n .lintje-radar__zero { stroke: CanvasText; }\n .lintje-chart__data-label--inside { forced-color-adjust: none; fill: var(--color-text-on-fill); }\n .lintje-chart__data-label--inside-light { forced-color-adjust: none; fill: var(--color-text-on-light-fill); }\n .lintje-chart__data-label--halo,\n .lintje-chart__as-of-note { stroke: Canvas; }\n .lintje-chart__axis-label--halo { stroke: Canvas; }\n .lintje-chart__segment { stroke: Canvas; }\n .lintje-chart__mark.is-selected { stroke: CanvasText; }\n .lintje-chart__focus-ring { flood-color: Highlight; }\n .lintje-chart__focus-gap { flood-color: Canvas; }\n /* An event's square in the reader's text colour, its number in the canvas. */\n .lintje-chart__event-line { stroke: CanvasText; }\n .lintje-chart__event-chip { fill: CanvasText; }\n .lintje-chart__event-number { fill: Canvas; }\n .lintje-event-chip__number { background: CanvasText; color: Canvas; }\n}\n", d = ".lintje-pie-chart {\n display: flex; gap: var(--space-8); align-items: center; justify-content: center; flex-wrap: wrap;\n padding-top: var(--space-3);\n}\n.lintje-pie-chart--expanded { gap: var(--space-10); height: 100%; padding-top: 0; }\n.lintje-pie-chart--expanded .lintje-pie-chart__table { flex: 0 1 440px; min-width: 260px; }\n.lintje-pie-chart__center { font-family: var(--font-ui); font-size: 1.5rem; font-weight: 700; fill: var(--color-text-primary); }\n.lintje-pie-chart__table { flex: 1; min-width: 200px; border-collapse: collapse; font: var(--text-small); }\n.lintje-pie-chart__column-label,\n.lintje-pie-chart__label,\n.lintje-pie-chart__value,\n.lintje-pie-chart__total-label,\n.lintje-pie-chart__total { padding: 5px 0; text-align: left; font-weight: 400; }\n.lintje-pie-chart__column-label {\n font-size: var(--label-size); font-weight: var(--label-weight);\n letter-spacing: var(--label-tracking); text-transform: uppercase;\n color: var(--color-text-muted);\n border-bottom: 1px solid var(--color-border-default);\n}\n/* The numeric columns sit right-aligned under their heading, a fixed step from their neighbour. */\n.lintje-pie-chart__column-label--numeric,\n.lintje-pie-chart__value,\n.lintje-pie-chart__total { padding-left: var(--space-4); text-align: right; }\n.lintje-pie-chart__value,\n.lintje-pie-chart__total { font-variant-numeric: tabular-nums; }\n.lintje-pie-chart__label { display: flex; align-items: center; gap: 6px; }\n.lintje-pie-chart__total-label,\n.lintje-pie-chart__total {\n font-weight: 700; border-top: 1px solid var(--color-border-default); padding-top: 6px;\n}\n.lintje-pie-chart__marker { width: 10px; height: 10px; flex: none; display: block; }\n\n/* Hover scales the segment around the center, so its side edges keep their angle. The shadow\n sits on a copy on top (`__lift`); the segment itself only scales and eases back. */\n.lintje-pie-chart__svg { overflow: visible; flex: none; }\n.lintje-pie-chart__segment { transition: transform var(--dur-hover) var(--ease-in-motion); }\n.lintje-pie-chart__segment.is-hovered { transform: scale(1.03); }\n.lintje-pie-chart__lift {\n pointer-events: none;\n transform: scale(1.03);\n filter: drop-shadow(var(--shadow-chart-hover));\n animation: lintje-pie-lift var(--dur-hover) var(--ease-in-motion) backwards;\n}\n@keyframes lintje-pie-lift { from { transform: none; filter: none; } }\n.lintje-pie-chart__row.is-hovered { background: var(--color-bg-subtle); }\n/* The chosen row carries the outline the chosen slice has (rule 13). */\n.lintje-pie-chart__row.is-muted .lintje-pie-chart__marker { opacity: .45; }\n.lintje-pie-chart__row.is-selected .lintje-pie-chart__marker { outline: 2px solid var(--color-text-primary); }\n.lintje-pie-chart__row.is-selected .lintje-pie-chart__label { font-weight: 700; }\n\n/* Forced colours: the slices, the lifted copy and the table's swatches keep their colours (as\n `chart.css`); the chosen row's swatch is outlined in CanvasText. */\n@media (forced-colors: active) {\n .lintje-pie-chart__lift,\n .lintje-pie-chart__marker { forced-color-adjust: none; }\n .lintje-pie-chart__center { fill: CanvasText; }\n .lintje-pie-chart__row.is-selected .lintje-pie-chart__marker { outline-color: CanvasText; }\n}\n", f = ".lintje-heatmap { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }\n.lintje-heatmap__grid { border-collapse: separate; border-spacing: 3px; width: 100%; }\n.lintje-heatmap__column-label,\n.lintje-heatmap__row-label {\n font: var(--text-axis);\n font-weight: 400;\n color: var(--color-text-muted);\n text-align: center;\n padding: 2px;\n}\n/* `width: 1%` keeps the auto table layout from handing the label column surplus width; a longer\n label ends in an ellipsis. */\n.lintje-heatmap__row-label { text-align: right; padding-right: var(--space-2); white-space: nowrap; width: 1%; }\n.lintje-heatmap__row-label-text { display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }\n.lintje-heatmap__slot { padding: 0; }\n\n.lintje-heatmap__cell {\n width: 100%;\n height: 34px;\n display: flex; align-items: center; justify-content: center;\n font-size: 0.75rem;\n font-weight: 700;\n font-variant-numeric: tabular-nums;\n /* The class range is the same in both modes, so the text on it is too: ink up to the fourth\n rung (5.9:1), white on the darkest (4.5:1). */\n background: var(--lintje-cell);\n color: var(--color-text-on-light-fill);\n transition: background-color var(--dur-layer) var(--ease-fade);\n}\n.lintje-heatmap__cell--class-4 { color: var(--color-text-on-fill); }\n.lintje-heatmap__cell--class-0 { box-shadow: inset 0 0 0 1px var(--color-border-default); }\n.lintje-heatmap__cell.is-selected { outline: 2px solid currentColor; outline-offset: -2px; }\n/* A cell steps back by its fill alone, mixed into the surface; the figure stays in the text\n colour, which reaches 4.5:1 on every rung so mixed, in both modes. */\n.lintje-heatmap__cell.is-dimmed {\n background: color-mix(in srgb, var(--lintje-cell) 25%, var(--color-bg-surface));\n color: var(--color-text-primary);\n}\n/* A drilling cell that is not chosen steps back while a cell is chosen; less than a class\n switched off in the legend. */\n.lintje-heatmap__cell.is-muted {\n background: color-mix(in srgb, var(--lintje-cell) 40%, var(--color-bg-surface));\n color: var(--color-text-primary);\n}\n.lintje-heatmap__cell.is-empty { background: var(--color-bg-subtle); }\n\n/* Cells fade in left to right, then top to bottom. Fill mode `backwards`: a held opacity would\n override a dimmed class. The paused declaration follows the shorthand, see chart.css. */\n@media (prefers-reduced-motion: no-preference) {\n .lintje-heatmap__cell:not(.is-empty) {\n animation: lintje-fade-in calc(var(--dur-draw) * 0.6) ease-in-out calc(var(--dur-draw) * 0.4 * var(--lintje-stagger, 0)) backwards;\n animation-play-state: paused;\n }\n [data-in-view] .lintje-heatmap__cell:not(.is-empty) { animation-play-state: running; }\n}\n\n.lintje-heatmap__selection {\n min-height: var(--h-touch);\n display: flex; align-items: center; gap: 6px;\n padding: 0 var(--space-3);\n background: var(--color-bg-subtle);\n font: var(--text-small);\n}\n\n/* The lightest class is edged so its swatch shows on the surface, as its cells are. */\n.lintje-heatmap > .lintje-legend > .lintje-legend__item:first-child .lintje-legend__marker {\n box-shadow: inset 0 0 0 1px var(--color-border-default);\n}\n\n/* Forced colours: the class colours are the heatmap, so the cells keep them\n (`forced-color-adjust: none`), as the legend's markers do. */\n@media (forced-colors: active) {\n .lintje-heatmap__cell { forced-color-adjust: none; }\n}\n", p = n(u), m = [
|
|
102
|
+
p,
|
|
103
|
+
n(d),
|
|
104
|
+
n(f),
|
|
105
|
+
r
|
|
106
|
+
];
|
|
107
|
+
//#endregion
|
|
108
|
+
export { o as a, s as i, m as n, l as r, p as t };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { P as e, en as t, nn as n } from "./base-CVKIPSLx.js";
|
|
2
|
+
import "../tag/modal.js";
|
|
3
|
+
//#region src/components/shared/content-tile.ts
|
|
4
|
+
var r = class extends e {
|
|
5
|
+
constructor(...e) {
|
|
6
|
+
super(...e), this.expanded = !1;
|
|
7
|
+
}
|
|
8
|
+
static {
|
|
9
|
+
this.properties = { expanded: { state: !0 } };
|
|
10
|
+
}
|
|
11
|
+
expand(e) {
|
|
12
|
+
this.expanded !== e && (this.expanded = e, this.expandChanged(e));
|
|
13
|
+
}
|
|
14
|
+
expandChanged(e) {}
|
|
15
|
+
renderExpandModal(e, r) {
|
|
16
|
+
let { heading: i, subtitle: a, footnote: o, csv: s, png: c } = r;
|
|
17
|
+
return n`<lintje-modal
|
|
18
|
+
.open=${this.expanded}
|
|
19
|
+
heading=${i ?? "Vergroot"}
|
|
20
|
+
subtitle=${a ?? t}
|
|
21
|
+
.csv=${s !== void 0}
|
|
22
|
+
.png=${c !== void 0}
|
|
23
|
+
@lintje-close=${(e) => {
|
|
24
|
+
e.stopPropagation(), this.expand(!1);
|
|
25
|
+
}}
|
|
26
|
+
@lintje-download-csv=${(e) => {
|
|
27
|
+
e.stopPropagation(), s?.();
|
|
28
|
+
}}
|
|
29
|
+
@lintje-download-png=${(e) => {
|
|
30
|
+
e.stopPropagation(), c?.();
|
|
31
|
+
}}
|
|
32
|
+
>
|
|
33
|
+
${e}${o ? n`<span slot="footer">${o}</span>` : t}
|
|
34
|
+
</lintje-modal>`;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/components/shared/download.ts
|
|
39
|
+
function i(e) {
|
|
40
|
+
if (e == null) return "";
|
|
41
|
+
let t = typeof e == "number" ? String(e).replace(".", ",") : e;
|
|
42
|
+
return /[";\n\r]/.test(t) ? `"${t.replace(/"/g, "\"\"")}"` : t;
|
|
43
|
+
}
|
|
44
|
+
function a(e) {
|
|
45
|
+
return e.map((e) => e.map(i).join(";")).join("\r\n");
|
|
46
|
+
}
|
|
47
|
+
function o(e, t) {
|
|
48
|
+
let n = URL.createObjectURL(e), r = document.createElement("a");
|
|
49
|
+
r.href = n, r.download = t, r.click(), setTimeout(() => URL.revokeObjectURL(n), 0);
|
|
50
|
+
}
|
|
51
|
+
function s(e, t, n) {
|
|
52
|
+
o(new Blob([t], { type: `${n};charset=utf-8` }), e);
|
|
53
|
+
}
|
|
54
|
+
function c(e, t) {
|
|
55
|
+
let n = e.toLowerCase().endsWith(".csv") ? e : `${e}.csv`;
|
|
56
|
+
o(new Blob(["", a(t)], { type: "text/csv;charset=utf-8" }), n);
|
|
57
|
+
}
|
|
58
|
+
var l = [
|
|
59
|
+
"fill",
|
|
60
|
+
"fill-opacity",
|
|
61
|
+
"stroke",
|
|
62
|
+
"stroke-width",
|
|
63
|
+
"stroke-dasharray",
|
|
64
|
+
"stroke-linecap",
|
|
65
|
+
"stroke-linejoin",
|
|
66
|
+
"opacity",
|
|
67
|
+
"font-family",
|
|
68
|
+
"font-size",
|
|
69
|
+
"font-weight",
|
|
70
|
+
"text-anchor",
|
|
71
|
+
"dominant-baseline",
|
|
72
|
+
"letter-spacing"
|
|
73
|
+
];
|
|
74
|
+
function u(e, t) {
|
|
75
|
+
let n = getComputedStyle(e), r = t.style;
|
|
76
|
+
for (let e of l) r.setProperty(e, n.getPropertyValue(e));
|
|
77
|
+
let i = e.children, a = t.children;
|
|
78
|
+
for (let e = 0; e < i.length; e += 1) {
|
|
79
|
+
let t = a[e];
|
|
80
|
+
t && u(i[e], t);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
function d(e) {
|
|
84
|
+
let t = (e) => getComputedStyle(e).getPropertyValue("--color-bg-surface").trim();
|
|
85
|
+
return t(e) || t(document.documentElement);
|
|
86
|
+
}
|
|
87
|
+
async function f(e, t) {
|
|
88
|
+
let n = e.toLowerCase().endsWith(".png") ? e : `${e}.png`, r = t.getBoundingClientRect(), i = Math.max(1, Math.round(r.width)), a = Math.max(1, Math.round(r.height)), s = t.cloneNode(!0);
|
|
89
|
+
s.setAttribute("xmlns", "http://www.w3.org/2000/svg"), s.setAttribute("width", String(i)), s.setAttribute("height", String(a)), u(t, s);
|
|
90
|
+
let c = d(t), l = new XMLSerializer().serializeToString(s), f = new Image();
|
|
91
|
+
f.decoding = "sync", await new Promise((e, t) => {
|
|
92
|
+
f.onload = () => e(), f.onerror = () => t(/* @__PURE__ */ Error("svg")), f.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(l)}`;
|
|
93
|
+
});
|
|
94
|
+
let p = document.createElement("canvas");
|
|
95
|
+
p.width = i * 2, p.height = a * 2;
|
|
96
|
+
let m = p.getContext("2d");
|
|
97
|
+
if (!m) return;
|
|
98
|
+
c && (m.fillStyle = c, m.fillRect(0, 0, p.width, p.height)), m.drawImage(f, 0, 0, p.width, p.height);
|
|
99
|
+
let h = await new Promise((e) => p.toBlob(e, "image/png"));
|
|
100
|
+
h && o(h, n);
|
|
101
|
+
}
|
|
102
|
+
//#endregion
|
|
103
|
+
export { r as i, f as n, s as r, c as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as e, en as t, nn as n, st as r, ut as i } from "./base-
|
|
1
|
+
import { P as e, en as t, nn as n, st as r, ut as i } from "./base-CVKIPSLx.js";
|
|
2
2
|
import { d as a, s as o, u as s } from "./controls-_4ac1Lpz.js";
|
|
3
3
|
//#region src/components/inputs/shared/field-foot.ts
|
|
4
4
|
function c(e, n, r) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Jt as e, Q as t, bt as n, en as r, nn as i, st as a, ut as o } from "./base-
|
|
1
|
+
import { Jt as e, Q as t, bt as n, en as r, nn as i, st as a, ut as o } from "./base-CVKIPSLx.js";
|
|
2
2
|
import { a as s, h as c, i as l, l as u, m as d, s as f, t as p } from "./playback-DZJ_NMXv.js";
|
|
3
3
|
//#region src/components/content/shared/player.ts
|
|
4
4
|
var m = /* @__PURE__ */ new Set([
|