@design.estate/dees-catalog 21.30.1 → 21.31.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.
Files changed (30) hide show
  1. package/dist_bundle/bundle.js +194 -203
  2. package/dist_bundle/bundle.js.map +1 -1
  3. package/dist_ts_web/00_commitinfo_data.js +1 -1
  4. package/dist_ts_web/demos/charts.js +5 -3
  5. package/dist_ts_web/elements/00group-chart/dees-chart-area/component.d.ts +14 -3
  6. package/dist_ts_web/elements/00group-chart/dees-chart-area/component.js +23 -5
  7. package/dist_ts_web/elements/00group-chart/dees-chart-area/styles.js +7 -2
  8. package/dist_ts_web/elements/00group-chart/dees-chart-area/template.js +28 -32
  9. package/dist_ts_web/elements/00group-chart/dees-chart-echarts-base.d.ts +2 -8
  10. package/dist_ts_web/elements/00group-chart/dees-chart-echarts-base.js +21 -33
  11. package/dist_ts_web/elements/00group-chart/dees-chart-echarts-styles.d.ts +0 -7
  12. package/dist_ts_web/elements/00group-chart/dees-chart-echarts-styles.js +3 -42
  13. package/dist_ts_web/elements/00group-chart/dees-chart-frame.d.ts +41 -0
  14. package/dist_ts_web/elements/00group-chart/dees-chart-frame.js +78 -0
  15. package/dist_ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.d.ts +10 -2
  16. package/dist_ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.demo.d.ts +1 -0
  17. package/dist_ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.demo.js +7 -2
  18. package/dist_ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.js +88 -96
  19. package/package.json +1 -1
  20. package/readme.md +18 -11
  21. package/ts_web/00_commitinfo_data.ts +1 -1
  22. package/ts_web/demos/charts.ts +4 -2
  23. package/ts_web/elements/00group-chart/dees-chart-area/component.ts +16 -3
  24. package/ts_web/elements/00group-chart/dees-chart-area/styles.ts +6 -1
  25. package/ts_web/elements/00group-chart/dees-chart-area/template.ts +27 -31
  26. package/ts_web/elements/00group-chart/dees-chart-echarts-base.ts +13 -26
  27. package/ts_web/elements/00group-chart/dees-chart-echarts-styles.ts +2 -42
  28. package/ts_web/elements/00group-chart/dees-chart-frame.ts +100 -0
  29. package/ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.demo.ts +6 -1
  30. package/ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.ts +81 -94
@@ -909,7 +909,7 @@ var chartSamples = /* @__PURE__ */ __name((step = 0, sampledAt = Date.now()) =>
909
909
  }, "chartSamples");
910
910
  var languages = [{ key: "en", label: "English" }, { key: "de", label: "Deutsch" }];
911
911
  var descriptions = {
912
- area: ["Activity over time", "Follow a service through the latest sample. Drag across the plot to inspect a time range. Below, the host states throughput unrounded: hovering shows each value in full, while the axis keeps the width of its own labels."],
912
+ area: ["Activity over time", "Follow a service through the latest sample. Drag across the plot to inspect a time range. Below, the host states throughput unrounded: hovering shows each value in full, while the axis keeps the width of its own labels. Its terms stand beside the title, before the full-page button, and a note of the host's own sits under the plot, at the header's inset: the chart grows with it, its plot keeping 240 px."],
913
913
  bar: ["Compare traffic", "Compare requests and cache hits across the week. Switch orientation or stack related series. Below, each month has two columns that reach both ways from zero: money in above, money out below, and the operating column marks its surplus or deficit at its end. Its header states what the chart covers beside the title, and a line of the host's own under the plot, at the header's inset, names what the chart leaves out: the legend stays the tile's last row."],
914
914
  donut: ["Traffic distribution", "Understand the share of requests from each region. Labels and legends remain optional. Below, three months of spending: each donut keeps one size whatever its legend holds, and the host's own list draws its dots in the charts' palette."],
915
915
  gauge: ["Capacity", "See used capacity against a defined range and warning thresholds."],
@@ -1021,7 +1021,9 @@ var _DeesDemoChartWorkspace = class _DeesDemoChartWorkspace extends (_a3 = DeesE
1021
1021
  <p slot="below" class="note">Left out: 0480 Office equipment and 1800 Private withdrawals, which are none of these parts.</p>
1022
1022
  </dees-chart-bar>` : ""}
1023
1023
  ${this.kind === "area" ? b`<dees-chart-area label="Requests per minute" .series=${this.empty ? [] : data.timeline} .yAxisFormatter=${(value) => `${Math.round(value)}k`} .legendStats=${["latest", "min", "max"]} .chartLines=${[]} .rangeSelectionEnabled=${true}></dees-chart-area>
1024
- <dees-chart-area label="Network throughput" .series=${this.empty ? [] : data.throughput} .yAxisFormatter=${(value) => `${value} Mbit/s`} .legendStats=${["latest", "max"]}></dees-chart-area>` : ""}
1024
+ <dees-chart-area class="withRows" label="Network throughput" meta="edge-1 · per minute" .series=${this.empty ? [] : data.throughput} .yAxisFormatter=${(value) => `${value} Mbit/s`} .legendStats=${["latest", "max"]}>
1025
+ <p slot="below" class="note">Outbound leaves out the nightly backup to the offsite store, which runs on a link of its own.</p>
1026
+ </dees-chart-area>` : ""}
1025
1027
  ${this.kind === "donut" ? b`<dees-chart-donut label="Requests by region" .data=${this.empty ? [] : data.regions} .showLabels=${!this.alternate} .showLegend=${!this.secondary} .valueFormatter=${(value) => `${Math.round(value)}k`}></dees-chart-donut>
1026
1028
  ${this.renderSpending(data)}` : ""}
1027
1029
  ${this.kind === "gauge" ? b`<dees-chart-gauge label="Queue capacity" .value=${data.capacity} .showTicks=${this.alternate} .thresholds=${[{ value: 60, tone: "success" }, { value: 80, tone: "warning" }, { value: 100, tone: "danger" }]}></dees-chart-gauge>` : ""}
@@ -19515,7 +19517,7 @@ var DeesStorageBrowser = _DeesStorageBrowser;
19515
19517
  // ts_web/elements/00group-chart/dees-chart-area/demo.ts
19516
19518
  var demoFunc18 = /* @__PURE__ */ __name(() => chartDemo("area"), "demoFunc");
19517
19519
 
19518
- // ts_web/elements/00group-chart/dees-chart-echarts-styles.ts
19520
+ // ts_web/elements/00group-chart/dees-chart-frame.ts
19519
19521
  var chartInsetStyles = insetInlineStyles("--chart-inset-inline");
19520
19522
  var chartFrameStyles = i`
19521
19523
  :host { display: block; height: 400px; min-width: 0; font: 13px/1.5 var(--dees-font-family); color: var(--dees-color-text-primary); }
@@ -19526,36 +19528,39 @@ var chartFrameStyles = i`
19526
19528
  :host > dees-tile > * { --dees-inset-inline: initial; }
19527
19529
  dees-tile::part(outer) { border-color: var(--dees-color-border-subtle); }
19528
19530
  .chartHeader { ${tileHeaderBar} }
19529
- .chartLabel { flex: 1; min-width: 0; margin: 0; font: inherit; overflow-wrap: anywhere; }
19530
- /* The meta text at the end of the header's line, muted as a table's subtitle; where the tile is
19531
- too narrow for both it wraps under the title, at its start, and the bar grows by that line. */
19532
- .chartHeader.hasMeta { flex-wrap: wrap; gap: var(--dees-spacing-2xs) var(--dees-spacing-md); }
19533
- .chartHeader.hasMeta .chartLabel { flex: 1 1 auto; }
19531
+ /* The label, and the meta text at the end of its line, muted as a table's subtitle; where the
19532
+ heading is too narrow for both the meta wraps under the label, at its start, and the bar grows
19533
+ by that line. Controls of the chart's own follow the heading, at the bar's end. */
19534
+ .chartHeading { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--dees-spacing-2xs) var(--dees-spacing-md); }
19535
+ .chartLabel { flex: 1 1 auto; min-width: 0; margin: 0; font: inherit; overflow-wrap: anywhere; }
19534
19536
  .chartMeta { min-width: 0; color: var(--dees-color-text-muted); font-weight: 400; overflow-wrap: anywhere; }
19535
19537
  .chartLegend { ${tileFooterBar} }
19536
- .chartContainer { position: absolute; inset: 0; }
19537
- .chartState { position: absolute; inset: 0; display: grid; place-content: center; padding: 24px; text-align: center; color: var(--dees-color-text-muted); background: var(--dees-color-bg-primary); }
19538
- .chartSummary { ${visuallyHidden} }
19539
- .expandBtn { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-inline-start: auto; width: 28px; height: 28px; border: 0; border-radius: var(--dees-radius-md); background: transparent; color: var(--dees-color-text-secondary); cursor: pointer; padding: 0; }
19540
- .expandBtn:focus-visible { outline: var(--dees-line-width-focus-ring) solid var(--dees-color-focus-ring); outline-offset: 2px; }
19541
- @media (hover: hover) { .expandBtn:hover { background: var(--dees-color-hover); } }
19542
- @media (pointer: coarse) { .expandBtn { width: var(--dees-control-height-touch); height: var(--dees-control-height-touch); } }
19543
- `;
19544
- var echartsPlotStyles = i`
19545
19538
  dees-tile::part(content) { display: flex; flex-direction: column; }
19546
- .chartArea { position: relative; flex: 1 1 var(--dees-chart-plot-height, 320px); min-height: 0; }
19547
19539
  .chartRows { flex: none; display: flex; flex-direction: column; gap: var(--dees-spacing-md); padding: var(--dees-spacing-md) var(--chart-inset-inline, var(--dees-spacing-lg)); }
19548
19540
  .chartRows.empty { display: none; }
19549
- .chartContainer { inset-inline: calc(var(--chart-inset-inline, 16px) - 16px); }
19550
- .chartPlot { width: 100%; height: 100%; }
19541
+ .chartArea { position: relative; flex: 1 1 var(--dees-chart-plot-height, 320px); min-height: 0; }
19542
+ .chartContainer { position: absolute; inset: 0; }
19543
+ .chartState { position: absolute; inset: 0; display: grid; place-content: center; padding: 24px; text-align: center; color: var(--dees-color-text-muted); background: var(--dees-color-bg-primary); }
19544
+ .chartSummary { ${visuallyHidden} }
19551
19545
  `;
19552
- var echartsBaseStyles = [
19553
- themeDefaultStyles,
19554
- cssManager.defaultStyles,
19555
- chartInsetStyles,
19556
- chartFrameStyles,
19557
- echartsPlotStyles
19558
- ];
19546
+ var chartRows = /* @__PURE__ */ __name((hostArg, placeArg) => {
19547
+ const slotted = hostArg.querySelector(`:scope > [slot="${placeArg}"]`) !== null;
19548
+ return b`<div class="chartRows ${placeArg} ${slotted ? "" : "empty"}"><slot name=${placeArg} @slotchange=${() => hostArg.requestUpdate()}></slot></div>`;
19549
+ }, "chartRows");
19550
+ var chartFrame = /* @__PURE__ */ __name((hostArg, contentArg) => {
19551
+ const heading = contentArg.label || contentArg.meta ? b`<div class="chartHeading">${contentArg.label ? b`<h2 class="chartLabel">${contentArg.label}</h2>` : ""}${contentArg.meta ? b`<span class="chartMeta">${contentArg.meta}</span>` : ""}</div>` : "";
19552
+ return b`<dees-tile .frameless=${contentArg.frameless}>
19553
+ ${heading || contentArg.headerTools ? b`<div slot="header" class="chartHeader">${heading}${contentArg.headerTools ?? ""}</div>` : ""}
19554
+ ${chartRows(hostArg, "above")}
19555
+ <div class="chartArea">
19556
+ ${contentArg.plot}
19557
+ ${contentArg.state ? b`<div class="chartState" role="status">${contentArg.state}</div>` : ""}
19558
+ </div>
19559
+ ${chartRows(hostArg, "below")}
19560
+ ${contentArg.summary === void 0 ? "" : b`<p class="chartSummary">${contentArg.summary}</p>`}
19561
+ ${contentArg.footer ? b`<div slot="footer" class="chartLegend">${contentArg.footer}</div>` : ""}
19562
+ </dees-tile>`;
19563
+ }, "chartFrame");
19559
19564
 
19560
19565
  // ts_web/elements/00group-chart/dees-chart-area/styles.ts
19561
19566
  var chartAreaStyles = [
@@ -19571,6 +19576,11 @@ var chartAreaStyles = [
19571
19576
  .chartContainer {
19572
19577
  margin: 12px max(0px, calc(var(--chart-inset-inline, 16px) - 16px)) 8px var(--chart-inset-inline, 16px);
19573
19578
  }
19579
+ /* The full-page action, at the header bar's end. */
19580
+ .expandBtn { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-inline-start: auto; width: 28px; height: 28px; border: 0; border-radius: var(--dees-radius-md); background: transparent; color: var(--dees-color-text-secondary); cursor: pointer; padding: 0; }
19581
+ .expandBtn:focus-visible { outline: var(--dees-line-width-focus-ring) solid var(--dees-color-focus-ring); outline-offset: 2px; }
19582
+ @media (hover: hover) { .expandBtn:hover { background: var(--dees-color-hover); } }
19583
+ @media (pointer: coarse) { .expandBtn { width: var(--dees-control-height-touch); height: var(--dees-control-height-touch); } }
19574
19584
  /* compact also drops the content divider; its frame goes through the tile's frameless mode. */
19575
19585
  :host([compact]) dees-tile::part(content) { border: 0; }
19576
19586
  :host([compact]) .chartContainer { margin: 4px 0 0; }
@@ -19948,32 +19958,24 @@ var statWords = {
19948
19958
  avg: "chart.statAvg"
19949
19959
  };
19950
19960
  var renderChartArea = /* @__PURE__ */ __name((component) => {
19951
- return b`
19952
- <dees-tile .frameless=${component.frameless || component.compact}>
19953
- ${component.compact ? "" : b`
19954
- <div slot="header" class="chartHeader">
19955
- ${component.label ? b`<h2 class="chartLabel">${component.label}</h2>` : ""}
19956
- <button type="button" aria-label=${component.t(component.isFullPage ? "chartarea.exitFullPage" : "chartarea.expand")} class="expandBtn" @click=${() => component.toggleFullPage()} title=${component.t(component.isFullPage ? "chartarea.exitFullPage" : "chartarea.fullPage")}>
19957
- <dees-icon .icon=${component.isFullPage ? "lucide:Minimize2" : "lucide:Maximize2"} .iconSize=${14}></dees-icon>
19958
- </button>
19959
- </div>
19960
- `}
19961
- <div class="chartContainer" aria-hidden="true">
19962
- <div class="rangeSelectionOverlay"></div>
19963
- </div>
19964
- <p class="chartSummary">${component.summaryText}</p>
19965
- ${!component.chartSeries.some((series) => series.data.some((point) => point.y !== null)) ? b`<div class="chartState" role="status">${component.t("chart.noData")}</div>` : ""}
19966
- ${component.seriesStats.length > 0 && !component.hideLegend && !component.compact ? b`
19967
- <div slot="footer" class="chartLegend">
19968
- <dees-legend label=${component.t("chart.series")} .items=${component.seriesStats.map((s) => ({
19969
- label: s.name,
19970
- color: s.color,
19971
- values: component.legendStats.filter((key) => key === "latest" || key === "min" || key === "max" || key === "avg").map((key) => ({ caption: component.t(statWords[key]), value: s[key] === null ? "\u2014" : component.yAxisFormatter(s[key]) }))
19972
- }))}></dees-legend>
19973
- </div>
19974
- ` : ""}
19975
- </dees-tile>
19976
- `;
19961
+ return chartFrame(component, {
19962
+ label: component.compact ? "" : component.label,
19963
+ meta: component.compact ? "" : component.meta,
19964
+ frameless: component.frameless || component.compact,
19965
+ headerTools: component.compact ? void 0 : b`<button type="button" aria-label=${component.t(component.isFullPage ? "chartarea.exitFullPage" : "chartarea.expand")} class="expandBtn" @click=${() => component.toggleFullPage()} title=${component.t(component.isFullPage ? "chartarea.exitFullPage" : "chartarea.fullPage")}>
19966
+ <dees-icon .icon=${component.isFullPage ? "lucide:Minimize2" : "lucide:Maximize2"} .iconSize=${14}></dees-icon>
19967
+ </button>`,
19968
+ plot: b`<div class="chartContainer" aria-hidden="true">
19969
+ <div class="rangeSelectionOverlay"></div>
19970
+ </div>`,
19971
+ state: component.chartSeries.some((series) => series.data.some((point) => point.y !== null)) ? void 0 : component.t("chart.noData"),
19972
+ summary: component.summaryText,
19973
+ footer: component.seriesStats.length > 0 && !component.hideLegend && !component.compact ? b`<dees-legend label=${component.t("chart.series")} .items=${component.seriesStats.map((s) => ({
19974
+ label: s.name,
19975
+ color: s.color,
19976
+ values: component.legendStats.filter((key) => key === "latest" || key === "min" || key === "max" || key === "avg").map((key) => ({ caption: component.t(statWords[key]), value: s[key] === null ? "\u2014" : component.yAxisFormatter(s[key]) }))
19977
+ }))}></dees-legend>` : void 0
19978
+ });
19977
19979
  }, "renderChartArea");
19978
19980
 
19979
19981
  // ts_web/elements/00group-chart/dees-chart-area/realtime-updates.ts
@@ -20177,7 +20179,7 @@ var createZonedTimeScale = /* @__PURE__ */ __name((lcBundleArg, formatsArg) => {
20177
20179
  }, "createZonedTimeScale");
20178
20180
 
20179
20181
  // ts_web/elements/00group-chart/dees-chart-area/component.ts
20180
- var _selectedRange_dec, _rangeSelectionEnabled_dec, _chartLines_dec, _frameless_dec6, _compact_dec2, _hideLegend_dec, _legendStats_dec, _autoScrollInterval_dec, _yAxisMax_dec, _yAxisScaling_dec, _realtimeMode_dec, _rollingWindow_dec, _summary_dec, _yAxisFormatter_dec, _series_dec, _label_dec4, _isFullPage_dec, _seriesStats_dec, _chart_dec, _a32, _DeesChartArea_decorators, _init34, _chart, _seriesStats, _isFullPage, _label4, _series, _yAxisFormatter, _summary, _rollingWindow, _realtimeMode, _yAxisScaling, _yAxisMax, _autoScrollInterval, _legendStats, _hideLegend, _compact2, _frameless6, _chartLines, _rangeSelectionEnabled, _selectedRange;
20182
+ var _selectedRange_dec, _rangeSelectionEnabled_dec, _chartLines_dec, _frameless_dec6, _compact_dec2, _hideLegend_dec, _legendStats_dec, _autoScrollInterval_dec, _yAxisMax_dec, _yAxisScaling_dec, _realtimeMode_dec, _rollingWindow_dec, _summary_dec, _yAxisFormatter_dec, _series_dec, _meta_dec, _label_dec4, _isFullPage_dec, _seriesStats_dec, _chart_dec, _a32, _DeesChartArea_decorators, _init34, _chart, _seriesStats, _isFullPage, _label4, _meta, _series, _yAxisFormatter, _summary, _rollingWindow, _realtimeMode, _yAxisScaling, _yAxisMax, _autoScrollInterval, _legendStats, _hideLegend, _compact2, _frameless6, _chartLines, _rangeSelectionEnabled, _selectedRange;
20181
20183
  var readSeries = /* @__PURE__ */ __name((data) => {
20182
20184
  let readings;
20183
20185
  for (const point of data) {
@@ -20203,7 +20205,7 @@ var readSeries = /* @__PURE__ */ __name((data) => {
20203
20205
  }, "readSeries");
20204
20206
  var CHART_LEGEND_STATS = ["latest", "min", "max", "avg"];
20205
20207
  _DeesChartArea_decorators = [customElement("dees-chart-area")];
20206
- var _DeesChartArea = class _DeesChartArea extends (_a32 = DeesElement, _chart_dec = [r2()], _seriesStats_dec = [r2()], _isFullPage_dec = [r2()], _label_dec4 = [n({ reflect: true })], _series_dec = [n({ type: Array })], _yAxisFormatter_dec = [n({ attribute: false })], _summary_dec = [n({ type: String, reflect: true })], _rollingWindow_dec = [n({ type: Number, reflect: true })], _realtimeMode_dec = [n({ type: Boolean, reflect: true })], _yAxisScaling_dec = [n({ type: String, reflect: true })], _yAxisMax_dec = [n({ type: Number, reflect: true })], _autoScrollInterval_dec = [n({ type: Number, reflect: true })], _legendStats_dec = [n({ type: Array })], _hideLegend_dec = [n({ type: Boolean, reflect: true })], _compact_dec2 = [n({ type: Boolean, reflect: true })], _frameless_dec6 = [n({ type: Boolean, reflect: true })], _chartLines_dec = [n({ type: Array })], _rangeSelectionEnabled_dec = [n({ type: Boolean, reflect: true })], _selectedRange_dec = [n({ attribute: false })], _a32) {
20208
+ var _DeesChartArea = class _DeesChartArea extends (_a32 = DeesElement, _chart_dec = [r2()], _seriesStats_dec = [r2()], _isFullPage_dec = [r2()], _label_dec4 = [n({ reflect: true })], _meta_dec = [n({ reflect: true })], _series_dec = [n({ type: Array })], _yAxisFormatter_dec = [n({ attribute: false })], _summary_dec = [n({ type: String, reflect: true })], _rollingWindow_dec = [n({ type: Number, reflect: true })], _realtimeMode_dec = [n({ type: Boolean, reflect: true })], _yAxisScaling_dec = [n({ type: String, reflect: true })], _yAxisMax_dec = [n({ type: Number, reflect: true })], _autoScrollInterval_dec = [n({ type: Number, reflect: true })], _legendStats_dec = [n({ type: Array })], _hideLegend_dec = [n({ type: Boolean, reflect: true })], _compact_dec2 = [n({ type: Boolean, reflect: true })], _frameless_dec6 = [n({ type: Boolean, reflect: true })], _chartLines_dec = [n({ type: Array })], _rangeSelectionEnabled_dec = [n({ type: Boolean, reflect: true })], _selectedRange_dec = [n({ attribute: false })], _a32) {
20207
20209
  constructor() {
20208
20210
  super();
20209
20211
  /** The element's words and formats, in the reader's language; read by its template module too. */
@@ -20212,21 +20214,22 @@ var _DeesChartArea = class _DeesChartArea extends (_a32 = DeesElement, _chart_de
20212
20214
  __privateAdd(this, _seriesStats, __runInitializers(_init34, 12, this, [])), __runInitializers(_init34, 15, this);
20213
20215
  __privateAdd(this, _isFullPage, __runInitializers(_init34, 16, this, false)), __runInitializers(_init34, 19, this);
20214
20216
  __privateAdd(this, _label4, __runInitializers(_init34, 20, this, "")), __runInitializers(_init34, 23, this);
20215
- __privateAdd(this, _series, __runInitializers(_init34, 24, this, [])), __runInitializers(_init34, 27, this);
20216
- __privateAdd(this, _yAxisFormatter, __runInitializers(_init34, 28, this, /* @__PURE__ */ __name((val) => this.t.format.intlNumberFormat({ maximumFractionDigits: 2 }).format(val), "yAxisFormatter"))), __runInitializers(_init34, 31, this);
20217
- __privateAdd(this, _summary, __runInitializers(_init34, 32, this, "")), __runInitializers(_init34, 35, this);
20218
- __privateAdd(this, _rollingWindow, __runInitializers(_init34, 36, this, 0)), __runInitializers(_init34, 39, this);
20219
- __privateAdd(this, _realtimeMode, __runInitializers(_init34, 40, this, false)), __runInitializers(_init34, 43, this);
20220
- __privateAdd(this, _yAxisScaling, __runInitializers(_init34, 44, this, "dynamic")), __runInitializers(_init34, 47, this);
20221
- __privateAdd(this, _yAxisMax, __runInitializers(_init34, 48, this, 100)), __runInitializers(_init34, 51, this);
20222
- __privateAdd(this, _autoScrollInterval, __runInitializers(_init34, 52, this, 1e3)), __runInitializers(_init34, 55, this);
20223
- __privateAdd(this, _legendStats, __runInitializers(_init34, 56, this, [...CHART_LEGEND_STATS])), __runInitializers(_init34, 59, this);
20224
- __privateAdd(this, _hideLegend, __runInitializers(_init34, 60, this, false)), __runInitializers(_init34, 63, this);
20225
- __privateAdd(this, _compact2, __runInitializers(_init34, 64, this, false)), __runInitializers(_init34, 67, this);
20226
- __privateAdd(this, _frameless6, __runInitializers(_init34, 68, this, false)), __runInitializers(_init34, 71, this);
20227
- __privateAdd(this, _chartLines, __runInitializers(_init34, 72, this, ["avg", "max"])), __runInitializers(_init34, 75, this);
20228
- __privateAdd(this, _rangeSelectionEnabled, __runInitializers(_init34, 76, this, false)), __runInitializers(_init34, 79, this);
20229
- __privateAdd(this, _selectedRange, __runInitializers(_init34, 80, this, null)), __runInitializers(_init34, 83, this);
20217
+ __privateAdd(this, _meta, __runInitializers(_init34, 24, this, "")), __runInitializers(_init34, 27, this);
20218
+ __privateAdd(this, _series, __runInitializers(_init34, 28, this, [])), __runInitializers(_init34, 31, this);
20219
+ __privateAdd(this, _yAxisFormatter, __runInitializers(_init34, 32, this, /* @__PURE__ */ __name((val) => this.t.format.intlNumberFormat({ maximumFractionDigits: 2 }).format(val), "yAxisFormatter"))), __runInitializers(_init34, 35, this);
20220
+ __privateAdd(this, _summary, __runInitializers(_init34, 36, this, "")), __runInitializers(_init34, 39, this);
20221
+ __privateAdd(this, _rollingWindow, __runInitializers(_init34, 40, this, 0)), __runInitializers(_init34, 43, this);
20222
+ __privateAdd(this, _realtimeMode, __runInitializers(_init34, 44, this, false)), __runInitializers(_init34, 47, this);
20223
+ __privateAdd(this, _yAxisScaling, __runInitializers(_init34, 48, this, "dynamic")), __runInitializers(_init34, 51, this);
20224
+ __privateAdd(this, _yAxisMax, __runInitializers(_init34, 52, this, 100)), __runInitializers(_init34, 55, this);
20225
+ __privateAdd(this, _autoScrollInterval, __runInitializers(_init34, 56, this, 1e3)), __runInitializers(_init34, 59, this);
20226
+ __privateAdd(this, _legendStats, __runInitializers(_init34, 60, this, [...CHART_LEGEND_STATS])), __runInitializers(_init34, 63, this);
20227
+ __privateAdd(this, _hideLegend, __runInitializers(_init34, 64, this, false)), __runInitializers(_init34, 67, this);
20228
+ __privateAdd(this, _compact2, __runInitializers(_init34, 68, this, false)), __runInitializers(_init34, 71, this);
20229
+ __privateAdd(this, _frameless6, __runInitializers(_init34, 72, this, false)), __runInitializers(_init34, 75, this);
20230
+ __privateAdd(this, _chartLines, __runInitializers(_init34, 76, this, ["avg", "max"])), __runInitializers(_init34, 79, this);
20231
+ __privateAdd(this, _rangeSelectionEnabled, __runInitializers(_init34, 80, this, false)), __runInitializers(_init34, 83, this);
20232
+ __privateAdd(this, _selectedRange, __runInitializers(_init34, 84, this, null)), __runInitializers(_init34, 87, this);
20230
20233
  __publicField(this, "internalChartData", []);
20231
20234
  __publicField(this, "autoScrollTimer", null);
20232
20235
  __publicField(this, "lcBundle", null);
@@ -21263,6 +21266,7 @@ _chart = new WeakMap();
21263
21266
  _seriesStats = new WeakMap();
21264
21267
  _isFullPage = new WeakMap();
21265
21268
  _label4 = new WeakMap();
21269
+ _meta = new WeakMap();
21266
21270
  _series = new WeakMap();
21267
21271
  _yAxisFormatter = new WeakMap();
21268
21272
  _summary = new WeakMap();
@@ -21282,6 +21286,7 @@ __decorateElement(_init34, 4, "chart", _chart_dec, _DeesChartArea, _chart);
21282
21286
  __decorateElement(_init34, 4, "seriesStats", _seriesStats_dec, _DeesChartArea, _seriesStats);
21283
21287
  __decorateElement(_init34, 4, "isFullPage", _isFullPage_dec, _DeesChartArea, _isFullPage);
21284
21288
  __decorateElement(_init34, 4, "label", _label_dec4, _DeesChartArea, _label4);
21289
+ __decorateElement(_init34, 4, "meta", _meta_dec, _DeesChartArea, _meta);
21285
21290
  __decorateElement(_init34, 4, "series", _series_dec, _DeesChartArea, _series);
21286
21291
  __decorateElement(_init34, 4, "yAxisFormatter", _yAxisFormatter_dec, _DeesChartArea, _yAxisFormatter);
21287
21292
  __decorateElement(_init34, 4, "summary", _summary_dec, _DeesChartArea, _summary);
@@ -21306,14 +21311,14 @@ __runInitializers(_init34, 1, _DeesChartArea);
21306
21311
  var DeesChartArea = _DeesChartArea;
21307
21312
 
21308
21313
  // ts_web/elements/00group-chart/dees-chart-echarts-base.ts
21309
- var _hiddenSeries_dec, _loadError_dec, _loading_dec6, _summary_dec2, _frameless_dec7, _meta_dec, _label_dec5, _a33, _init35, _label5, _meta, _frameless7, _summary2, _loading6, _loadError, _hiddenSeries;
21310
- var _DeesChartEchartsBase = class _DeesChartEchartsBase extends (_a33 = DeesElement, _label_dec5 = [n({ reflect: true })], _meta_dec = [n({ reflect: true })], _frameless_dec7 = [n({ type: Boolean, reflect: true })], _summary_dec2 = [n({ type: String, reflect: true })], _loading_dec6 = [r2()], _loadError_dec = [r2()], _hiddenSeries_dec = [r2()], _a33) {
21314
+ var _hiddenSeries_dec, _loadError_dec, _loading_dec6, _summary_dec2, _frameless_dec7, _meta_dec2, _label_dec5, _a33, _init35, _label5, _meta2, _frameless7, _summary2, _loading6, _loadError, _hiddenSeries;
21315
+ var _DeesChartEchartsBase = class _DeesChartEchartsBase extends (_a33 = DeesElement, _label_dec5 = [n({ reflect: true })], _meta_dec2 = [n({ reflect: true })], _frameless_dec7 = [n({ type: Boolean, reflect: true })], _summary_dec2 = [n({ type: String, reflect: true })], _loading_dec6 = [r2()], _loadError_dec = [r2()], _hiddenSeries_dec = [r2()], _a33) {
21311
21316
  constructor() {
21312
21317
  super();
21313
21318
  /** The chart's words and formats, in the reader's language. */
21314
21319
  __publicField(this, "t", dcLocalize(this));
21315
21320
  __privateAdd(this, _label5, __runInitializers(_init35, 8, this, "")), __runInitializers(_init35, 11, this);
21316
- __privateAdd(this, _meta, __runInitializers(_init35, 12, this, "")), __runInitializers(_init35, 15, this);
21321
+ __privateAdd(this, _meta2, __runInitializers(_init35, 12, this, "")), __runInitializers(_init35, 15, this);
21317
21322
  __privateAdd(this, _frameless7, __runInitializers(_init35, 16, this, false)), __runInitializers(_init35, 19, this);
21318
21323
  __privateAdd(this, _summary2, __runInitializers(_init35, 20, this, "")), __runInitializers(_init35, 23, this);
21319
21324
  __publicField(this, "chartInstance", null);
@@ -21407,32 +21412,21 @@ var _DeesChartEchartsBase = class _DeesChartEchartsBase extends (_a33 = DeesElem
21407
21412
  values: item.value === void 0 ? void 0 : [{ value: item.value }],
21408
21413
  off: !this.legendShown(item.name)
21409
21414
  }));
21410
- return b`<dees-tile .frameless=${this.frameless}>
21411
- ${this.label || this.meta ? b`<div slot="header" class="chartHeader ${this.meta ? "hasMeta" : ""}">${this.label ? b`<h2 class="chartLabel">${this.label}</h2>` : ""}${this.meta ? b`<span class="chartMeta">${this.meta}</span>` : ""}</div>` : ""}
21412
- ${this.renderRows("above")}
21413
- <div class="chartArea">
21414
- <div class="chartContainer" aria-hidden="true"><div class="chartPlot"></div></div>
21415
- ${message ? b`<div class="chartState" role="status">${message}</div>` : ""}
21416
- </div>
21417
- ${this.renderRows("below")}
21418
- <p class="chartSummary">${this.summary || this.dataSummary()}</p>
21419
- ${legend.length ? b`<div slot="footer" class="chartLegend"><dees-legend interactive label=${this.t("chart.series")} .items=${legend} @item-toggle=${(event) => {
21420
- const hidden = new Set(this.hiddenSeries);
21421
- if (event.detail.on) hidden.delete(event.detail.item.label);
21422
- else hidden.add(event.detail.item.label);
21423
- this.hiddenSeries = hidden;
21424
- this.updateChart();
21425
- }}></dees-legend></div>` : ""}
21426
- </dees-tile>`;
21427
- }
21428
- /**
21429
- * The host's rows over or under the plot, from the slot `above` or `below`; no row, and no room,
21430
- * while nothing is slotted there. Read from the light DOM as each render runs, so the first frame
21431
- * already has them; a `slotchange` renders again.
21432
- */
21433
- renderRows(placeArg) {
21434
- const slotted = this.querySelector(`:scope > [slot="${placeArg}"]`) !== null;
21435
- return b`<div class="chartRows ${placeArg} ${slotted ? "" : "empty"}"><slot name=${placeArg} @slotchange=${() => this.requestUpdate()}></slot></div>`;
21415
+ return chartFrame(this, {
21416
+ label: this.label,
21417
+ meta: this.meta,
21418
+ frameless: this.frameless,
21419
+ plot: b`<div class="chartContainer" aria-hidden="true"><div class="chartPlot"></div></div>`,
21420
+ state: message,
21421
+ summary: this.summary || this.dataSummary(),
21422
+ footer: legend.length ? b`<dees-legend interactive label=${this.t("chart.series")} .items=${legend} @item-toggle=${(event) => {
21423
+ const hidden = new Set(this.hiddenSeries);
21424
+ if (event.detail.on) hidden.delete(event.detail.item.label);
21425
+ else hidden.add(event.detail.item.label);
21426
+ this.hiddenSeries = hidden;
21427
+ this.updateChart();
21428
+ }}></dees-legend>` : void 0
21429
+ });
21436
21430
  }
21437
21431
  async updated(changedProperties) {
21438
21432
  super.updated(changedProperties);
@@ -21480,14 +21474,14 @@ var _DeesChartEchartsBase = class _DeesChartEchartsBase extends (_a33 = DeesElem
21480
21474
  };
21481
21475
  _init35 = __decoratorStart(_a33);
21482
21476
  _label5 = new WeakMap();
21483
- _meta = new WeakMap();
21477
+ _meta2 = new WeakMap();
21484
21478
  _frameless7 = new WeakMap();
21485
21479
  _summary2 = new WeakMap();
21486
21480
  _loading6 = new WeakMap();
21487
21481
  _loadError = new WeakMap();
21488
21482
  _hiddenSeries = new WeakMap();
21489
21483
  __decorateElement(_init35, 4, "label", _label_dec5, _DeesChartEchartsBase, _label5);
21490
- __decorateElement(_init35, 4, "meta", _meta_dec, _DeesChartEchartsBase, _meta);
21484
+ __decorateElement(_init35, 4, "meta", _meta_dec2, _DeesChartEchartsBase, _meta2);
21491
21485
  __decorateElement(_init35, 4, "frameless", _frameless_dec7, _DeesChartEchartsBase, _frameless7);
21492
21486
  __decorateElement(_init35, 4, "summary", _summary_dec2, _DeesChartEchartsBase, _summary2);
21493
21487
  __decorateElement(_init35, 4, "loading", _loading_dec6, _DeesChartEchartsBase, _loading6);
@@ -21500,6 +21494,19 @@ var DeesChartEchartsBase = _DeesChartEchartsBase;
21500
21494
  // ts_web/elements/00group-chart/dees-chart-bar/demo.ts
21501
21495
  var demoFunc20 = /* @__PURE__ */ __name(() => chartDemo("bar"), "demoFunc");
21502
21496
 
21497
+ // ts_web/elements/00group-chart/dees-chart-echarts-styles.ts
21498
+ var echartsPlotStyles = i`
21499
+ .chartContainer { inset-inline: calc(var(--chart-inset-inline, 16px) - 16px); }
21500
+ .chartPlot { width: 100%; height: 100%; }
21501
+ `;
21502
+ var echartsBaseStyles = [
21503
+ themeDefaultStyles,
21504
+ cssManager.defaultStyles,
21505
+ chartInsetStyles,
21506
+ chartFrameStyles,
21507
+ echartsPlotStyles
21508
+ ];
21509
+
21503
21510
  // ts_web/elements/00group-chart/dees-chart-bar/styles.ts
21504
21511
  var barStyles = [
21505
21512
  ...echartsBaseStyles,
@@ -67345,6 +67352,7 @@ var demoFunc61 = /* @__PURE__ */ __name(() => {
67345
67352
  <div class="section-title">Structured Logs (ILogEntry)</div>
67346
67353
  <div class="section-description">
67347
67354
  Structured log entries with level, message, and source. Supports search and keyword highlighting.
67355
+ The log states its source beside the title, and a notice of the host's own sits over the terminal.
67348
67356
  </div>
67349
67357
  <div class="controls">
67350
67358
  <dees-button>Add Structured Log</dees-button>
@@ -67354,9 +67362,12 @@ var demoFunc61 = /* @__PURE__ */ __name(() => {
67354
67362
  <dees-chart-log
67355
67363
  id="structured-log"
67356
67364
  .label=${"Production Server Logs"}
67365
+ .meta=${"api-7f9c \xB7 eu-central"}
67357
67366
  .highlightKeywords=${["error", "failed", "timeout"]}
67358
67367
  .showMetrics=${true}
67359
- ></dees-chart-log>
67368
+ >
67369
+ <dees-hint slot="above" text="Debug entries are sampled: the server keeps one in ten."></dees-hint>
67370
+ </dees-chart-log>
67360
67371
  </div>
67361
67372
 
67362
67373
  <!-- Raw Logs Section -->
@@ -67382,7 +67393,7 @@ var demoFunc61 = /* @__PURE__ */ __name(() => {
67382
67393
  }, "demoFunc");
67383
67394
 
67384
67395
  // ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.ts
67385
- var _canJumpToMatch_dec, _metrics_dec2, _filterMode_dec, _searchQuery_dec3, _frameless_dec13, _showMetrics_dec, _highlightKeywords_dec, _maxEntries_dec, _autoScroll_dec, _logEntries_dec, _label_dec7, _a91, _DeesChartLog_decorators, _init92, _label7, _logEntries, _autoScroll, _maxEntries, _highlightKeywords, _showMetrics, _frameless13, _searchQuery3, _filterMode, _metrics2, _canJumpToMatch;
67396
+ var _canJumpToMatch_dec, _metrics_dec2, _filterMode_dec, _searchQuery_dec3, _frameless_dec13, _showMetrics_dec, _highlightKeywords_dec, _maxEntries_dec, _autoScroll_dec, _logEntries_dec, _meta_dec3, _label_dec7, _a91, _DeesChartLog_decorators, _init92, _label7, _meta3, _logEntries, _autoScroll, _maxEntries, _highlightKeywords, _showMetrics, _frameless13, _searchQuery3, _filterMode, _metrics2, _canJumpToMatch;
67386
67397
  var rateWindowMs = 1e4;
67387
67398
  var emptyMetrics = /* @__PURE__ */ __name(() => ({
67388
67399
  debug: 0,
@@ -67411,21 +67422,22 @@ var hiddenPlaceholder = /* @__PURE__ */ __name((countArg, tArg) => `${sgr.dim}${
67411
67422
  `, "hiddenPlaceholder");
67412
67423
  var sameEntry = /* @__PURE__ */ __name((oneArg, otherArg) => otherArg !== void 0 && oneArg.timestamp === otherArg.timestamp && oneArg.level === otherArg.level && oneArg.message === otherArg.message && oneArg.source === otherArg.source, "sameEntry");
67413
67424
  _DeesChartLog_decorators = [customElement("dees-chart-log")];
67414
- var _DeesChartLog = class _DeesChartLog extends (_a91 = DeesElement, _label_dec7 = [n({ reflect: true })], _logEntries_dec = [n({ type: Array })], _autoScroll_dec = [n({ type: Boolean, reflect: true })], _maxEntries_dec = [n({ type: Number, reflect: true })], _highlightKeywords_dec = [n({ type: Array })], _showMetrics_dec = [n({ type: Boolean, reflect: true })], _frameless_dec13 = [n({ type: Boolean, reflect: true })], _searchQuery_dec3 = [r2()], _filterMode_dec = [r2()], _metrics_dec2 = [r2()], _canJumpToMatch_dec = [r2()], _a91) {
67425
+ var _DeesChartLog = class _DeesChartLog extends (_a91 = DeesElement, _label_dec7 = [n({ reflect: true })], _meta_dec3 = [n({ reflect: true })], _logEntries_dec = [n({ type: Array })], _autoScroll_dec = [n({ type: Boolean, reflect: true })], _maxEntries_dec = [n({ type: Number, reflect: true })], _highlightKeywords_dec = [n({ type: Array })], _showMetrics_dec = [n({ type: Boolean, reflect: true })], _frameless_dec13 = [n({ type: Boolean, reflect: true })], _searchQuery_dec3 = [r2()], _filterMode_dec = [r2()], _metrics_dec2 = [r2()], _canJumpToMatch_dec = [r2()], _a91) {
67415
67426
  constructor() {
67416
67427
  super();
67417
67428
  __publicField(this, "t", dcLocalize(this));
67418
67429
  __privateAdd(this, _label7, __runInitializers(_init92, 8, this, "")), __runInitializers(_init92, 11, this);
67419
- __privateAdd(this, _logEntries, __runInitializers(_init92, 12, this, [])), __runInitializers(_init92, 15, this);
67420
- __privateAdd(this, _autoScroll, __runInitializers(_init92, 16, this, true)), __runInitializers(_init92, 19, this);
67421
- __privateAdd(this, _maxEntries, __runInitializers(_init92, 20, this, 1e4)), __runInitializers(_init92, 23, this);
67422
- __privateAdd(this, _highlightKeywords, __runInitializers(_init92, 24, this, [])), __runInitializers(_init92, 27, this);
67423
- __privateAdd(this, _showMetrics, __runInitializers(_init92, 28, this, true)), __runInitializers(_init92, 31, this);
67424
- __privateAdd(this, _frameless13, __runInitializers(_init92, 32, this, false)), __runInitializers(_init92, 35, this);
67425
- __privateAdd(this, _searchQuery3, __runInitializers(_init92, 36, this, "")), __runInitializers(_init92, 39, this);
67426
- __privateAdd(this, _filterMode, __runInitializers(_init92, 40, this, false)), __runInitializers(_init92, 43, this);
67427
- __privateAdd(this, _metrics2, __runInitializers(_init92, 44, this, emptyMetrics())), __runInitializers(_init92, 47, this);
67428
- __privateAdd(this, _canJumpToMatch, __runInitializers(_init92, 48, this, false)), __runInitializers(_init92, 51, this);
67430
+ __privateAdd(this, _meta3, __runInitializers(_init92, 12, this, "")), __runInitializers(_init92, 15, this);
67431
+ __privateAdd(this, _logEntries, __runInitializers(_init92, 16, this, [])), __runInitializers(_init92, 19, this);
67432
+ __privateAdd(this, _autoScroll, __runInitializers(_init92, 20, this, true)), __runInitializers(_init92, 23, this);
67433
+ __privateAdd(this, _maxEntries, __runInitializers(_init92, 24, this, 1e4)), __runInitializers(_init92, 27, this);
67434
+ __privateAdd(this, _highlightKeywords, __runInitializers(_init92, 28, this, [])), __runInitializers(_init92, 31, this);
67435
+ __privateAdd(this, _showMetrics, __runInitializers(_init92, 32, this, true)), __runInitializers(_init92, 35, this);
67436
+ __privateAdd(this, _frameless13, __runInitializers(_init92, 36, this, false)), __runInitializers(_init92, 39, this);
67437
+ __privateAdd(this, _searchQuery3, __runInitializers(_init92, 40, this, "")), __runInitializers(_init92, 43, this);
67438
+ __privateAdd(this, _filterMode, __runInitializers(_init92, 44, this, false)), __runInitializers(_init92, 47, this);
67439
+ __privateAdd(this, _metrics2, __runInitializers(_init92, 48, this, emptyMetrics())), __runInitializers(_init92, 51, this);
67440
+ __privateAdd(this, _canJumpToMatch, __runInitializers(_init92, 52, this, false)), __runInitializers(_init92, 55, this);
67429
67441
  /** Every entry the log holds, oldest first, bounded by `maxEntries`. */
67430
67442
  __publicField(this, "logBuffer", []);
67431
67443
  /** The list `logEntries` last bound, as the host handed it over. */
@@ -67457,52 +67469,53 @@ var _DeesChartLog = class _DeesChartLog extends (_a91 = DeesElement, _label_dec7
67457
67469
  render() {
67458
67470
  const jumpTitle = /* @__PURE__ */ __name((labelArg) => this.canJumpToMatch ? labelArg : this.t("chartlog.jumpUnavailable"), "jumpTitle");
67459
67471
  const label = this.label || this.t("chartlog.defaultLabel");
67460
- return b`
67461
- <dees-tile .heading=${label} .frameless=${this.frameless}>
67462
- <div slot="header" class="header">
67463
- <div class="title">${label}</div>
67464
- <div class="search-box">
67465
- <input
67466
- type="text"
67467
- placeholder=${this.t("chartlog.search")}
67468
- aria-label=${this.t("chartlog.search")}
67469
- .value=${this.searchQuery}
67470
- @input=${(eventArg) => this.handleSearchInput(eventArg)}
67471
- @keydown=${(eventArg) => this.handleSearchKeydown(eventArg)}
67472
- />
67473
- <div class="search-nav">
67474
- <button
67475
- ?disabled=${!this.canJumpToMatch}
67476
- @click=${() => this.searchPrevious()}
67477
- title=${jumpTitle(this.t("chartlog.previousMatch"))}
67478
- >↑</button>
67479
- <button
67480
- ?disabled=${!this.canJumpToMatch}
67481
- @click=${() => this.searchNext()}
67482
- title=${jumpTitle(this.t("chartlog.nextMatch"))}
67483
- >↓</button>
67484
- </div>
67472
+ return chartFrame(this, {
67473
+ label,
67474
+ meta: this.meta,
67475
+ frameless: this.frameless,
67476
+ headerTools: b`
67477
+ <div class="search-box">
67478
+ <input
67479
+ type="text"
67480
+ placeholder=${this.t("chartlog.search")}
67481
+ aria-label=${this.t("chartlog.search")}
67482
+ .value=${this.searchQuery}
67483
+ @input=${(eventArg) => this.handleSearchInput(eventArg)}
67484
+ @keydown=${(eventArg) => this.handleSearchKeydown(eventArg)}
67485
+ />
67486
+ <div class="search-nav">
67485
67487
  <button
67486
- class="filter-toggle ${this.filterMode ? "active" : ""}"
67487
- @click=${() => this.toggleFilterMode()}
67488
- title=${this.t(this.filterMode ? "chartlog.toHighlight" : "chartlog.toFilter")}
67489
- >
67490
- ${this.t(this.filterMode ? "chartlog.filter" : "chartlog.highlight")}
67491
- </button>
67492
- </div>
67493
- <div class="controls">
67488
+ ?disabled=${!this.canJumpToMatch}
67489
+ @click=${() => this.searchPrevious()}
67490
+ title=${jumpTitle(this.t("chartlog.previousMatch"))}
67491
+ >↑</button>
67494
67492
  <button
67495
- class="control-button ${this.autoScroll ? "active" : ""}"
67496
- @click=${() => this.toggleAutoScroll()}
67497
- >
67498
- ${this.t("chartlog.autoScroll")}
67499
- </button>
67500
- <button class="control-button" @click=${() => this.clearLogs()}>
67501
- ${this.t("chartlog.clear")}
67502
- </button>
67493
+ ?disabled=${!this.canJumpToMatch}
67494
+ @click=${() => this.searchNext()}
67495
+ title=${jumpTitle(this.t("chartlog.nextMatch"))}
67496
+ >↓</button>
67503
67497
  </div>
67498
+ <button
67499
+ class="filter-toggle ${this.filterMode ? "active" : ""}"
67500
+ @click=${() => this.toggleFilterMode()}
67501
+ title=${this.t(this.filterMode ? "chartlog.toHighlight" : "chartlog.toFilter")}
67502
+ >
67503
+ ${this.t(this.filterMode ? "chartlog.filter" : "chartlog.highlight")}
67504
+ </button>
67504
67505
  </div>
67505
-
67506
+ <div class="controls">
67507
+ <button
67508
+ class="control-button ${this.autoScroll ? "active" : ""}"
67509
+ @click=${() => this.toggleAutoScroll()}
67510
+ >
67511
+ ${this.t("chartlog.autoScroll")}
67512
+ </button>
67513
+ <button class="control-button" @click=${() => this.clearLogs()}>
67514
+ ${this.t("chartlog.clear")}
67515
+ </button>
67516
+ </div>
67517
+ `,
67518
+ plot: b`
67506
67519
  <dees-terminal-view
67507
67520
  .readOnly=${true}
67508
67521
  .convertEol=${true}
@@ -67510,21 +67523,18 @@ var _DeesChartLog = class _DeesChartLog extends (_a91 = DeesElement, _label_dec7
67510
67523
  .scrollback=${this.maxEntries}
67511
67524
  .label=${label}
67512
67525
  ></dees-terminal-view>
67513
-
67514
- ${this.showMetrics ? b`
67515
- <div slot="footer" class="metrics-bar">
67516
- <dees-legend label=${this.t("chartlog.levels")} .items=${[
67517
- { label: this.t("chartlog.errors", { count: this.metrics.error }), color: "var(--dees-color-accent-error)" },
67518
- { label: this.t("chartlog.warnings", { count: this.metrics.warn }), color: "var(--dees-color-accent-warning)" },
67519
- { label: this.t("chartlog.info", { count: this.metrics.info }), color: "var(--dees-color-accent-primary)" },
67520
- { label: this.t("chartlog.success", { count: this.metrics.success }), color: "var(--dees-color-accent-success)" },
67521
- { label: this.t("chartlog.debug", { count: this.metrics.debug }), color: "var(--dees-color-text-muted)" }
67522
- ]}></dees-legend>
67523
- <span class="rate">${this.t("chartlog.rate", { rate: this.t.format.intlNumberFormat({ minimumFractionDigits: 1, maximumFractionDigits: 1 }).format(this.metrics.rate) })}</span>
67524
- </div>
67525
- ` : ""}
67526
- </dees-tile>
67527
- `;
67526
+ `,
67527
+ footer: this.showMetrics ? b`
67528
+ <dees-legend label=${this.t("chartlog.levels")} .items=${[
67529
+ { label: this.t("chartlog.errors", { count: this.metrics.error }), color: "var(--dees-color-accent-error)" },
67530
+ { label: this.t("chartlog.warnings", { count: this.metrics.warn }), color: "var(--dees-color-accent-warning)" },
67531
+ { label: this.t("chartlog.info", { count: this.metrics.info }), color: "var(--dees-color-accent-primary)" },
67532
+ { label: this.t("chartlog.success", { count: this.metrics.success }), color: "var(--dees-color-accent-success)" },
67533
+ { label: this.t("chartlog.debug", { count: this.metrics.debug }), color: "var(--dees-color-text-muted)" }
67534
+ ]}></dees-legend>
67535
+ <span class="rate">${this.t("chartlog.rate", { rate: this.t.format.intlNumberFormat({ minimumFractionDigits: 1, maximumFractionDigits: 1 }).format(this.metrics.rate) })}</span>
67536
+ ` : void 0
67537
+ });
67528
67538
  }
67529
67539
  updated(changedPropertiesArg) {
67530
67540
  super.updated(changedPropertiesArg);
@@ -67838,6 +67848,7 @@ var _DeesChartLog = class _DeesChartLog extends (_a91 = DeesElement, _label_dec7
67838
67848
  };
67839
67849
  _init92 = __decoratorStart(_a91);
67840
67850
  _label7 = new WeakMap();
67851
+ _meta3 = new WeakMap();
67841
67852
  _logEntries = new WeakMap();
67842
67853
  _autoScroll = new WeakMap();
67843
67854
  _maxEntries = new WeakMap();
@@ -67849,6 +67860,7 @@ _filterMode = new WeakMap();
67849
67860
  _metrics2 = new WeakMap();
67850
67861
  _canJumpToMatch = new WeakMap();
67851
67862
  __decorateElement(_init92, 4, "label", _label_dec7, _DeesChartLog, _label7);
67863
+ __decorateElement(_init92, 4, "meta", _meta_dec3, _DeesChartLog, _meta3);
67852
67864
  __decorateElement(_init92, 4, "logEntries", _logEntries_dec, _DeesChartLog, _logEntries);
67853
67865
  __decorateElement(_init92, 4, "autoScroll", _autoScroll_dec, _DeesChartLog, _autoScroll);
67854
67866
  __decorateElement(_init92, 4, "maxEntries", _maxEntries_dec, _DeesChartLog, _maxEntries);
@@ -67866,32 +67878,18 @@ __publicField(_DeesChartLog, "demoGroups", ["Chart", "Workspace"]);
67866
67878
  __publicField(_DeesChartLog, "styles", [
67867
67879
  themeDefaultStyles,
67868
67880
  cssManager.defaultStyles,
67869
- insetInlineStyles("--chartlog-inset-inline"),
67881
+ chartInsetStyles,
67882
+ chartFrameStyles,
67870
67883
  i`
67871
- :host {
67872
- display: block;
67873
- height: 400px;
67874
- font-family: var(--dees-font-family);
67875
- color: var(--dees-color-text-primary);
67876
- }
67877
-
67878
- dees-tile {
67879
- height: 100%;
67880
- }
67881
-
67882
- .header {
67883
- padding: 8px var(--chartlog-inset-inline, 12px);
67884
- display: flex;
67885
- align-items: center;
67886
- gap: 12px;
67884
+ /* The heading keeps its width and the search follows it; where the bar is too narrow, the
67885
+ search and the controls wrap onto further lines. */
67886
+ .chartHeader {
67887
67887
  flex-wrap: wrap;
67888
+ column-gap: 12px;
67888
67889
  }
67889
67890
 
67890
- .title {
67891
- font-weight: 500;
67892
- font-size: 14px;
67893
- color: var(--dees-color-text-primary);
67894
- white-space: nowrap;
67891
+ .chartHeading {
67892
+ flex: 0 1 auto;
67895
67893
  }
67896
67894
 
67897
67895
  .search-box {
@@ -68009,20 +68007,13 @@ __publicField(_DeesChartLog, "styles", [
68009
68007
  }
68010
68008
  }
68011
68009
 
68012
- /* The tile's content box is the surface: the view fills it and fits to it. */
68010
+ /* The frame's plot is the surface: the view fills it and fits to it. */
68013
68011
  dees-terminal-view {
68014
68012
  position: absolute;
68015
68013
  inset: 0;
68016
68014
  }
68017
68015
 
68018
- /* The tile's standard footer bar, at the log's own inset, which its header keeps: the
68019
- legend of the level counts, then the rate at the end. */
68020
- .metrics-bar {
68021
- ${tileFooterBar}
68022
- padding-inline: var(--chartlog-inset-inline, 12px);
68023
- width: 100%;
68024
- }
68025
-
68016
+ /* The footer bar: the legend of the level counts, then the rate at the end. */
68026
68017
  .rate {
68027
68018
  margin-inline-start: auto;
68028
68019
  color: var(--dees-color-text-secondary);
@@ -120721,7 +120712,7 @@ var bright = {
120721
120712
  // ts_web/00_commitinfo_data.ts
120722
120713
  var commitinfo = {
120723
120714
  name: "@design.estate/dees-catalog",
120724
- version: "21.30.1",
120715
+ version: "21.31.0",
120725
120716
  description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
120726
120717
  };
120727
120718
  export {