@design.estate/dees-catalog 21.30.0 → 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.
- package/dist_bundle/bundle.js +250 -214
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/demos/charts.js +5 -3
- package/dist_ts_web/elements/00group-chart/dees-chart-area/component.d.ts +14 -3
- package/dist_ts_web/elements/00group-chart/dees-chart-area/component.js +23 -5
- package/dist_ts_web/elements/00group-chart/dees-chart-area/styles.js +7 -2
- package/dist_ts_web/elements/00group-chart/dees-chart-area/template.js +28 -32
- package/dist_ts_web/elements/00group-chart/dees-chart-echarts-base.d.ts +2 -8
- package/dist_ts_web/elements/00group-chart/dees-chart-echarts-base.js +21 -33
- package/dist_ts_web/elements/00group-chart/dees-chart-echarts-styles.d.ts +0 -7
- package/dist_ts_web/elements/00group-chart/dees-chart-echarts-styles.js +3 -42
- package/dist_ts_web/elements/00group-chart/dees-chart-frame.d.ts +41 -0
- package/dist_ts_web/elements/00group-chart/dees-chart-frame.js +78 -0
- package/dist_ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.d.ts +10 -2
- package/dist_ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.demo.d.ts +1 -0
- package/dist_ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.demo.js +7 -2
- package/dist_ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.js +88 -96
- package/dist_ts_web/elements/00group-form/dees-form/dees-form.d.ts +8 -1
- package/dist_ts_web/elements/00group-form/dees-form/dees-form.js +10 -2
- package/dist_ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.d.ts +17 -0
- package/dist_ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.demo.js +8 -1
- package/dist_ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.js +36 -6
- package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.d.ts +4 -3
- package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.demo.js +8 -4
- package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.js +7 -6
- package/package.json +1 -1
- package/readme.md +35 -14
- package/scripts/reflect-allowlist.json +2 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/demos/charts.ts +4 -2
- package/ts_web/elements/00group-chart/dees-chart-area/component.ts +16 -3
- package/ts_web/elements/00group-chart/dees-chart-area/styles.ts +6 -1
- package/ts_web/elements/00group-chart/dees-chart-area/template.ts +27 -31
- package/ts_web/elements/00group-chart/dees-chart-echarts-base.ts +13 -26
- package/ts_web/elements/00group-chart/dees-chart-echarts-styles.ts +2 -42
- package/ts_web/elements/00group-chart/dees-chart-frame.ts +100 -0
- package/ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.demo.ts +6 -1
- package/ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.ts +81 -94
- package/ts_web/elements/00group-form/dees-form/dees-form.ts +10 -2
- package/ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.demo.ts +10 -0
- package/ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.ts +31 -1
- package/ts_web/elements/00group-layout/dees-stepper/dees-stepper.demo.ts +7 -3
- package/ts_web/elements/00group-layout/dees-stepper/dees-stepper.ts +5 -4
package/dist_bundle/bundle.js
CHANGED
|
@@ -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"]}
|
|
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>` : ""}
|
|
@@ -5710,20 +5712,37 @@ var sections = b`
|
|
|
5710
5712
|
${demoOutput("Chosen: manual")}
|
|
5711
5713
|
${demoCode("<dees-input-radiogroup .options=${[\n { key: 'manual', option: 'Enter the details yourself', description: 'Type the name and whatever else you know.' },\n ...\n]}></dees-input-radiogroup>")}
|
|
5712
5714
|
`
|
|
5715
|
+
)}
|
|
5716
|
+
${demoSection(
|
|
5717
|
+
"Named by the question above it",
|
|
5718
|
+
"Where a heading or a step title already asks the question, the group shows no label of its own. An aria-label names it instead, so assistive technology still announces the question when the focus enters the group.",
|
|
5719
|
+
b`
|
|
5720
|
+
<p class="dees-demo-label">How do you want to add the contact?</p>
|
|
5721
|
+
<dees-input-radiogroup key="source" aria-label="How do you want to add the contact?" .options=${imports} selectedOption="text"
|
|
5722
|
+
@change=${(event) => showDemoResult(
|
|
5723
|
+
event.currentTarget,
|
|
5724
|
+
`Chosen: ${event.currentTarget.selectedOption}`
|
|
5725
|
+
)}></dees-input-radiogroup>
|
|
5726
|
+
${demoOutput("Chosen: text")}
|
|
5727
|
+
${demoCode('<p>How do you want to add the contact?</p>\n<dees-input-radiogroup aria-label="How do you want to add the contact?" .options=${options}></dees-input-radiogroup>')}
|
|
5728
|
+
`
|
|
5713
5729
|
)}
|
|
5714
5730
|
`;
|
|
5715
5731
|
var demoFunc8 = /* @__PURE__ */ __name(() => focusedInputDemo("radiogroup", sections), "demoFunc");
|
|
5716
5732
|
|
|
5717
5733
|
// ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.ts
|
|
5718
|
-
var _validationState_dec, _direction_dec, _selectedOption_dec3, _options_dec4, _a14, _DeesInputRadiogroup_decorators, _init16, _options4, _selectedOption3, _direction, _validationState;
|
|
5734
|
+
var _ariaLabel_dec2, _validationState_dec, _direction_dec, _selectedOption_dec3, _options_dec4, _a14, _DeesInputRadiogroup_decorators, _init16, _options4, _selectedOption3, _direction, _validationState, _ariaLabel2;
|
|
5719
5735
|
_DeesInputRadiogroup_decorators = [customElement("dees-input-radiogroup")];
|
|
5720
|
-
var _DeesInputRadiogroup = class _DeesInputRadiogroup extends (_a14 = DeesInputBase, _options_dec4 = [n({ type: Array })], _selectedOption_dec3 = [n()], _direction_dec = [n({ type: String, reflect: true })], _validationState_dec = [n({ type: String, reflect: true })], _a14) {
|
|
5736
|
+
var _DeesInputRadiogroup = class _DeesInputRadiogroup extends (_a14 = DeesInputBase, _options_dec4 = [n({ type: Array })], _selectedOption_dec3 = [n()], _direction_dec = [n({ type: String, reflect: true })], _validationState_dec = [n({ type: String, reflect: true })], _ariaLabel_dec2 = [n({ type: String, attribute: "aria-label" })], _a14) {
|
|
5721
5737
|
constructor() {
|
|
5722
5738
|
super(...arguments);
|
|
5723
5739
|
__privateAdd(this, _options4, __runInitializers(_init16, 8, this, [])), __runInitializers(_init16, 11, this);
|
|
5724
5740
|
__privateAdd(this, _selectedOption3, __runInitializers(_init16, 12, this, "")), __runInitializers(_init16, 15, this);
|
|
5725
5741
|
__privateAdd(this, _direction, __runInitializers(_init16, 16, this, "vertical")), __runInitializers(_init16, 19, this);
|
|
5726
5742
|
__privateAdd(this, _validationState, __runInitializers(_init16, 20, this, null)), __runInitializers(_init16, 23, this);
|
|
5743
|
+
__privateAdd(this, _ariaLabel2, __runInitializers(_init16, 24, this, null)), __runInitializers(_init16, 27, this);
|
|
5744
|
+
/** Whether the host's `aria-label` was just removed by the group itself, after moving it. */
|
|
5745
|
+
__publicField(this, "movedAriaLabel", false);
|
|
5727
5746
|
}
|
|
5728
5747
|
// Form compatibility
|
|
5729
5748
|
get value() {
|
|
@@ -5760,7 +5779,7 @@ var _DeesInputRadiogroup = class _DeesInputRadiogroup extends (_a14 = DeesInputB
|
|
|
5760
5779
|
<div class="input-wrapper">
|
|
5761
5780
|
${this.label ? this.renderLabel() : ""}
|
|
5762
5781
|
<div class="maincontainer ${this.direction} ${described ? "described" : ""}" role="radiogroup"
|
|
5763
|
-
|
|
5782
|
+
.ariaLabel=${this.ariaLabel || this.label || null} aria-required=${this.required ? "true" : "false"}
|
|
5764
5783
|
aria-disabled=${this.disabled ? "true" : "false"}
|
|
5765
5784
|
aria-invalid=${this.validationState === "invalid" ? "true" : "false"}>
|
|
5766
5785
|
${this.options.map((option) => {
|
|
@@ -5794,6 +5813,22 @@ var _DeesInputRadiogroup = class _DeesInputRadiogroup extends (_a14 = DeesInputB
|
|
|
5794
5813
|
</div>
|
|
5795
5814
|
`;
|
|
5796
5815
|
}
|
|
5816
|
+
/**
|
|
5817
|
+
* An `aria-label` written on the host sets `ariaLabel`, which the group
|
|
5818
|
+
* carries, and leaves the host: kept there, Chromium would expose a generic
|
|
5819
|
+
* node with the name beside the group. The removal the group makes itself
|
|
5820
|
+
* changes nothing; to clear the name, set `ariaLabel` to `null`.
|
|
5821
|
+
*/
|
|
5822
|
+
attributeChangedCallback(name, oldValue, value) {
|
|
5823
|
+
if (name === "aria-label" && value === null && this.movedAriaLabel) {
|
|
5824
|
+
this.movedAriaLabel = false;
|
|
5825
|
+
return;
|
|
5826
|
+
}
|
|
5827
|
+
super.attributeChangedCallback(name, oldValue, value);
|
|
5828
|
+
if (name !== "aria-label" || value === null) return;
|
|
5829
|
+
this.movedAriaLabel = true;
|
|
5830
|
+
this.removeAttribute(name);
|
|
5831
|
+
}
|
|
5797
5832
|
getOptionKey(option) {
|
|
5798
5833
|
if (typeof option === "string") {
|
|
5799
5834
|
return option;
|
|
@@ -5872,10 +5907,12 @@ _options4 = new WeakMap();
|
|
|
5872
5907
|
_selectedOption3 = new WeakMap();
|
|
5873
5908
|
_direction = new WeakMap();
|
|
5874
5909
|
_validationState = new WeakMap();
|
|
5910
|
+
_ariaLabel2 = new WeakMap();
|
|
5875
5911
|
__decorateElement(_init16, 4, "options", _options_dec4, _DeesInputRadiogroup, _options4);
|
|
5876
5912
|
__decorateElement(_init16, 4, "selectedOption", _selectedOption_dec3, _DeesInputRadiogroup, _selectedOption3);
|
|
5877
5913
|
__decorateElement(_init16, 4, "direction", _direction_dec, _DeesInputRadiogroup, _direction);
|
|
5878
5914
|
__decorateElement(_init16, 4, "validationState", _validationState_dec, _DeesInputRadiogroup, _validationState);
|
|
5915
|
+
__decorateElement(_init16, 4, "ariaLabel", _ariaLabel_dec2, _DeesInputRadiogroup, _ariaLabel2);
|
|
5879
5916
|
_DeesInputRadiogroup = __decorateElement(_init16, 0, "DeesInputRadiogroup", _DeesInputRadiogroup_decorators, _DeesInputRadiogroup);
|
|
5880
5917
|
__name(_DeesInputRadiogroup, "DeesInputRadiogroup");
|
|
5881
5918
|
__publicField(_DeesInputRadiogroup, "inputLayout", "choice");
|
|
@@ -19480,7 +19517,7 @@ var DeesStorageBrowser = _DeesStorageBrowser;
|
|
|
19480
19517
|
// ts_web/elements/00group-chart/dees-chart-area/demo.ts
|
|
19481
19518
|
var demoFunc18 = /* @__PURE__ */ __name(() => chartDemo("area"), "demoFunc");
|
|
19482
19519
|
|
|
19483
|
-
// ts_web/elements/00group-chart/dees-chart-
|
|
19520
|
+
// ts_web/elements/00group-chart/dees-chart-frame.ts
|
|
19484
19521
|
var chartInsetStyles = insetInlineStyles("--chart-inset-inline");
|
|
19485
19522
|
var chartFrameStyles = i`
|
|
19486
19523
|
:host { display: block; height: 400px; min-width: 0; font: 13px/1.5 var(--dees-font-family); color: var(--dees-color-text-primary); }
|
|
@@ -19491,36 +19528,39 @@ var chartFrameStyles = i`
|
|
|
19491
19528
|
:host > dees-tile > * { --dees-inset-inline: initial; }
|
|
19492
19529
|
dees-tile::part(outer) { border-color: var(--dees-color-border-subtle); }
|
|
19493
19530
|
.chartHeader { ${tileHeaderBar} }
|
|
19494
|
-
|
|
19495
|
-
|
|
19496
|
-
|
|
19497
|
-
.
|
|
19498
|
-
.
|
|
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; }
|
|
19499
19536
|
.chartMeta { min-width: 0; color: var(--dees-color-text-muted); font-weight: 400; overflow-wrap: anywhere; }
|
|
19500
19537
|
.chartLegend { ${tileFooterBar} }
|
|
19501
|
-
.chartContainer { position: absolute; inset: 0; }
|
|
19502
|
-
.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); }
|
|
19503
|
-
.chartSummary { ${visuallyHidden} }
|
|
19504
|
-
.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; }
|
|
19505
|
-
.expandBtn:focus-visible { outline: var(--dees-line-width-focus-ring) solid var(--dees-color-focus-ring); outline-offset: 2px; }
|
|
19506
|
-
@media (hover: hover) { .expandBtn:hover { background: var(--dees-color-hover); } }
|
|
19507
|
-
@media (pointer: coarse) { .expandBtn { width: var(--dees-control-height-touch); height: var(--dees-control-height-touch); } }
|
|
19508
|
-
`;
|
|
19509
|
-
var echartsPlotStyles = i`
|
|
19510
19538
|
dees-tile::part(content) { display: flex; flex-direction: column; }
|
|
19511
|
-
.chartArea { position: relative; flex: 1 1 var(--dees-chart-plot-height, 320px); min-height: 0; }
|
|
19512
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)); }
|
|
19513
19540
|
.chartRows.empty { display: none; }
|
|
19514
|
-
.
|
|
19515
|
-
.
|
|
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} }
|
|
19516
19545
|
`;
|
|
19517
|
-
var
|
|
19518
|
-
|
|
19519
|
-
|
|
19520
|
-
|
|
19521
|
-
|
|
19522
|
-
|
|
19523
|
-
|
|
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");
|
|
19524
19564
|
|
|
19525
19565
|
// ts_web/elements/00group-chart/dees-chart-area/styles.ts
|
|
19526
19566
|
var chartAreaStyles = [
|
|
@@ -19536,6 +19576,11 @@ var chartAreaStyles = [
|
|
|
19536
19576
|
.chartContainer {
|
|
19537
19577
|
margin: 12px max(0px, calc(var(--chart-inset-inline, 16px) - 16px)) 8px var(--chart-inset-inline, 16px);
|
|
19538
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); } }
|
|
19539
19584
|
/* compact also drops the content divider; its frame goes through the tile's frameless mode. */
|
|
19540
19585
|
:host([compact]) dees-tile::part(content) { border: 0; }
|
|
19541
19586
|
:host([compact]) .chartContainer { margin: 4px 0 0; }
|
|
@@ -19913,32 +19958,24 @@ var statWords = {
|
|
|
19913
19958
|
avg: "chart.statAvg"
|
|
19914
19959
|
};
|
|
19915
19960
|
var renderChartArea = /* @__PURE__ */ __name((component) => {
|
|
19916
|
-
return
|
|
19917
|
-
|
|
19918
|
-
|
|
19919
|
-
|
|
19920
|
-
|
|
19921
|
-
|
|
19922
|
-
|
|
19923
|
-
|
|
19924
|
-
|
|
19925
|
-
|
|
19926
|
-
|
|
19927
|
-
|
|
19928
|
-
|
|
19929
|
-
|
|
19930
|
-
|
|
19931
|
-
|
|
19932
|
-
|
|
19933
|
-
|
|
19934
|
-
label: s.name,
|
|
19935
|
-
color: s.color,
|
|
19936
|
-
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]) }))
|
|
19937
|
-
}))}></dees-legend>
|
|
19938
|
-
</div>
|
|
19939
|
-
` : ""}
|
|
19940
|
-
</dees-tile>
|
|
19941
|
-
`;
|
|
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
|
+
});
|
|
19942
19979
|
}, "renderChartArea");
|
|
19943
19980
|
|
|
19944
19981
|
// ts_web/elements/00group-chart/dees-chart-area/realtime-updates.ts
|
|
@@ -20142,7 +20179,7 @@ var createZonedTimeScale = /* @__PURE__ */ __name((lcBundleArg, formatsArg) => {
|
|
|
20142
20179
|
}, "createZonedTimeScale");
|
|
20143
20180
|
|
|
20144
20181
|
// ts_web/elements/00group-chart/dees-chart-area/component.ts
|
|
20145
|
-
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;
|
|
20146
20183
|
var readSeries = /* @__PURE__ */ __name((data) => {
|
|
20147
20184
|
let readings;
|
|
20148
20185
|
for (const point of data) {
|
|
@@ -20168,7 +20205,7 @@ var readSeries = /* @__PURE__ */ __name((data) => {
|
|
|
20168
20205
|
}, "readSeries");
|
|
20169
20206
|
var CHART_LEGEND_STATS = ["latest", "min", "max", "avg"];
|
|
20170
20207
|
_DeesChartArea_decorators = [customElement("dees-chart-area")];
|
|
20171
|
-
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) {
|
|
20172
20209
|
constructor() {
|
|
20173
20210
|
super();
|
|
20174
20211
|
/** The element's words and formats, in the reader's language; read by its template module too. */
|
|
@@ -20177,21 +20214,22 @@ var _DeesChartArea = class _DeesChartArea extends (_a32 = DeesElement, _chart_de
|
|
|
20177
20214
|
__privateAdd(this, _seriesStats, __runInitializers(_init34, 12, this, [])), __runInitializers(_init34, 15, this);
|
|
20178
20215
|
__privateAdd(this, _isFullPage, __runInitializers(_init34, 16, this, false)), __runInitializers(_init34, 19, this);
|
|
20179
20216
|
__privateAdd(this, _label4, __runInitializers(_init34, 20, this, "")), __runInitializers(_init34, 23, this);
|
|
20180
|
-
__privateAdd(this,
|
|
20181
|
-
__privateAdd(this,
|
|
20182
|
-
__privateAdd(this,
|
|
20183
|
-
__privateAdd(this,
|
|
20184
|
-
__privateAdd(this,
|
|
20185
|
-
__privateAdd(this,
|
|
20186
|
-
__privateAdd(this,
|
|
20187
|
-
__privateAdd(this,
|
|
20188
|
-
__privateAdd(this,
|
|
20189
|
-
__privateAdd(this,
|
|
20190
|
-
__privateAdd(this,
|
|
20191
|
-
__privateAdd(this,
|
|
20192
|
-
__privateAdd(this,
|
|
20193
|
-
__privateAdd(this,
|
|
20194
|
-
__privateAdd(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);
|
|
20195
20233
|
__publicField(this, "internalChartData", []);
|
|
20196
20234
|
__publicField(this, "autoScrollTimer", null);
|
|
20197
20235
|
__publicField(this, "lcBundle", null);
|
|
@@ -21228,6 +21266,7 @@ _chart = new WeakMap();
|
|
|
21228
21266
|
_seriesStats = new WeakMap();
|
|
21229
21267
|
_isFullPage = new WeakMap();
|
|
21230
21268
|
_label4 = new WeakMap();
|
|
21269
|
+
_meta = new WeakMap();
|
|
21231
21270
|
_series = new WeakMap();
|
|
21232
21271
|
_yAxisFormatter = new WeakMap();
|
|
21233
21272
|
_summary = new WeakMap();
|
|
@@ -21247,6 +21286,7 @@ __decorateElement(_init34, 4, "chart", _chart_dec, _DeesChartArea, _chart);
|
|
|
21247
21286
|
__decorateElement(_init34, 4, "seriesStats", _seriesStats_dec, _DeesChartArea, _seriesStats);
|
|
21248
21287
|
__decorateElement(_init34, 4, "isFullPage", _isFullPage_dec, _DeesChartArea, _isFullPage);
|
|
21249
21288
|
__decorateElement(_init34, 4, "label", _label_dec4, _DeesChartArea, _label4);
|
|
21289
|
+
__decorateElement(_init34, 4, "meta", _meta_dec, _DeesChartArea, _meta);
|
|
21250
21290
|
__decorateElement(_init34, 4, "series", _series_dec, _DeesChartArea, _series);
|
|
21251
21291
|
__decorateElement(_init34, 4, "yAxisFormatter", _yAxisFormatter_dec, _DeesChartArea, _yAxisFormatter);
|
|
21252
21292
|
__decorateElement(_init34, 4, "summary", _summary_dec, _DeesChartArea, _summary);
|
|
@@ -21271,14 +21311,14 @@ __runInitializers(_init34, 1, _DeesChartArea);
|
|
|
21271
21311
|
var DeesChartArea = _DeesChartArea;
|
|
21272
21312
|
|
|
21273
21313
|
// ts_web/elements/00group-chart/dees-chart-echarts-base.ts
|
|
21274
|
-
var _hiddenSeries_dec, _loadError_dec, _loading_dec6, _summary_dec2, _frameless_dec7,
|
|
21275
|
-
var _DeesChartEchartsBase = class _DeesChartEchartsBase extends (_a33 = DeesElement, _label_dec5 = [n({ reflect: true })],
|
|
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) {
|
|
21276
21316
|
constructor() {
|
|
21277
21317
|
super();
|
|
21278
21318
|
/** The chart's words and formats, in the reader's language. */
|
|
21279
21319
|
__publicField(this, "t", dcLocalize(this));
|
|
21280
21320
|
__privateAdd(this, _label5, __runInitializers(_init35, 8, this, "")), __runInitializers(_init35, 11, this);
|
|
21281
|
-
__privateAdd(this,
|
|
21321
|
+
__privateAdd(this, _meta2, __runInitializers(_init35, 12, this, "")), __runInitializers(_init35, 15, this);
|
|
21282
21322
|
__privateAdd(this, _frameless7, __runInitializers(_init35, 16, this, false)), __runInitializers(_init35, 19, this);
|
|
21283
21323
|
__privateAdd(this, _summary2, __runInitializers(_init35, 20, this, "")), __runInitializers(_init35, 23, this);
|
|
21284
21324
|
__publicField(this, "chartInstance", null);
|
|
@@ -21372,32 +21412,21 @@ var _DeesChartEchartsBase = class _DeesChartEchartsBase extends (_a33 = DeesElem
|
|
|
21372
21412
|
values: item.value === void 0 ? void 0 : [{ value: item.value }],
|
|
21373
21413
|
off: !this.legendShown(item.name)
|
|
21374
21414
|
}));
|
|
21375
|
-
return
|
|
21376
|
-
|
|
21377
|
-
|
|
21378
|
-
|
|
21379
|
-
|
|
21380
|
-
|
|
21381
|
-
|
|
21382
|
-
|
|
21383
|
-
|
|
21384
|
-
|
|
21385
|
-
|
|
21386
|
-
|
|
21387
|
-
|
|
21388
|
-
|
|
21389
|
-
|
|
21390
|
-
}}></dees-legend></div>` : ""}
|
|
21391
|
-
</dees-tile>`;
|
|
21392
|
-
}
|
|
21393
|
-
/**
|
|
21394
|
-
* The host's rows over or under the plot, from the slot `above` or `below`; no row, and no room,
|
|
21395
|
-
* while nothing is slotted there. Read from the light DOM as each render runs, so the first frame
|
|
21396
|
-
* already has them; a `slotchange` renders again.
|
|
21397
|
-
*/
|
|
21398
|
-
renderRows(placeArg) {
|
|
21399
|
-
const slotted = this.querySelector(`:scope > [slot="${placeArg}"]`) !== null;
|
|
21400
|
-
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
|
+
});
|
|
21401
21430
|
}
|
|
21402
21431
|
async updated(changedProperties) {
|
|
21403
21432
|
super.updated(changedProperties);
|
|
@@ -21445,14 +21474,14 @@ var _DeesChartEchartsBase = class _DeesChartEchartsBase extends (_a33 = DeesElem
|
|
|
21445
21474
|
};
|
|
21446
21475
|
_init35 = __decoratorStart(_a33);
|
|
21447
21476
|
_label5 = new WeakMap();
|
|
21448
|
-
|
|
21477
|
+
_meta2 = new WeakMap();
|
|
21449
21478
|
_frameless7 = new WeakMap();
|
|
21450
21479
|
_summary2 = new WeakMap();
|
|
21451
21480
|
_loading6 = new WeakMap();
|
|
21452
21481
|
_loadError = new WeakMap();
|
|
21453
21482
|
_hiddenSeries = new WeakMap();
|
|
21454
21483
|
__decorateElement(_init35, 4, "label", _label_dec5, _DeesChartEchartsBase, _label5);
|
|
21455
|
-
__decorateElement(_init35, 4, "meta",
|
|
21484
|
+
__decorateElement(_init35, 4, "meta", _meta_dec2, _DeesChartEchartsBase, _meta2);
|
|
21456
21485
|
__decorateElement(_init35, 4, "frameless", _frameless_dec7, _DeesChartEchartsBase, _frameless7);
|
|
21457
21486
|
__decorateElement(_init35, 4, "summary", _summary_dec2, _DeesChartEchartsBase, _summary2);
|
|
21458
21487
|
__decorateElement(_init35, 4, "loading", _loading_dec6, _DeesChartEchartsBase, _loading6);
|
|
@@ -21465,6 +21494,19 @@ var DeesChartEchartsBase = _DeesChartEchartsBase;
|
|
|
21465
21494
|
// ts_web/elements/00group-chart/dees-chart-bar/demo.ts
|
|
21466
21495
|
var demoFunc20 = /* @__PURE__ */ __name(() => chartDemo("bar"), "demoFunc");
|
|
21467
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
|
+
|
|
21468
21510
|
// ts_web/elements/00group-chart/dees-chart-bar/styles.ts
|
|
21469
21511
|
var barStyles = [
|
|
21470
21512
|
...echartsBaseStyles,
|
|
@@ -42551,6 +42593,13 @@ var _DeesForm = class _DeesForm extends (_a55 = DeesElement, _horizontalLayout_d
|
|
|
42551
42593
|
}
|
|
42552
42594
|
return valueObject;
|
|
42553
42595
|
}
|
|
42596
|
+
/**
|
|
42597
|
+
* Dispatches the collected data as `formData`, unless a field refuses: the
|
|
42598
|
+
* first enabled field whose `checkValidity()` fails reports its validity and
|
|
42599
|
+
* takes the focus, and nothing is dispatched. Resolves to `true` once
|
|
42600
|
+
* `formData` went out and to `false` after a refusal, so a host that submits
|
|
42601
|
+
* through the form (a stepper's primary) can stop where the field did.
|
|
42602
|
+
*/
|
|
42554
42603
|
async gatherAndDispatch() {
|
|
42555
42604
|
for (const child of this.getFormElements()) {
|
|
42556
42605
|
if (child.disabled) continue;
|
|
@@ -42558,7 +42607,7 @@ var _DeesForm = class _DeesForm extends (_a55 = DeesElement, _horizontalLayout_d
|
|
|
42558
42607
|
if (input.checkValidity?.() === false) {
|
|
42559
42608
|
input.reportValidity?.();
|
|
42560
42609
|
child.focus();
|
|
42561
|
-
return;
|
|
42610
|
+
return false;
|
|
42562
42611
|
}
|
|
42563
42612
|
}
|
|
42564
42613
|
const valueObject = await this.collectFormData();
|
|
@@ -42569,6 +42618,7 @@ var _DeesForm = class _DeesForm extends (_a55 = DeesElement, _horizontalLayout_d
|
|
|
42569
42618
|
bubbles: true
|
|
42570
42619
|
});
|
|
42571
42620
|
this.dispatchEvent(formDataEvent);
|
|
42621
|
+
return true;
|
|
42572
42622
|
}
|
|
42573
42623
|
/**
|
|
42574
42624
|
* Shows a status on the submit button and freezes or releases the fields with it:
|
|
@@ -67302,6 +67352,7 @@ var demoFunc61 = /* @__PURE__ */ __name(() => {
|
|
|
67302
67352
|
<div class="section-title">Structured Logs (ILogEntry)</div>
|
|
67303
67353
|
<div class="section-description">
|
|
67304
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.
|
|
67305
67356
|
</div>
|
|
67306
67357
|
<div class="controls">
|
|
67307
67358
|
<dees-button>Add Structured Log</dees-button>
|
|
@@ -67311,9 +67362,12 @@ var demoFunc61 = /* @__PURE__ */ __name(() => {
|
|
|
67311
67362
|
<dees-chart-log
|
|
67312
67363
|
id="structured-log"
|
|
67313
67364
|
.label=${"Production Server Logs"}
|
|
67365
|
+
.meta=${"api-7f9c \xB7 eu-central"}
|
|
67314
67366
|
.highlightKeywords=${["error", "failed", "timeout"]}
|
|
67315
67367
|
.showMetrics=${true}
|
|
67316
|
-
|
|
67368
|
+
>
|
|
67369
|
+
<dees-hint slot="above" text="Debug entries are sampled: the server keeps one in ten."></dees-hint>
|
|
67370
|
+
</dees-chart-log>
|
|
67317
67371
|
</div>
|
|
67318
67372
|
|
|
67319
67373
|
<!-- Raw Logs Section -->
|
|
@@ -67339,7 +67393,7 @@ var demoFunc61 = /* @__PURE__ */ __name(() => {
|
|
|
67339
67393
|
}, "demoFunc");
|
|
67340
67394
|
|
|
67341
67395
|
// ts_web/elements/00group-chart/dees-chart-log/dees-chart-log.ts
|
|
67342
|
-
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;
|
|
67343
67397
|
var rateWindowMs = 1e4;
|
|
67344
67398
|
var emptyMetrics = /* @__PURE__ */ __name(() => ({
|
|
67345
67399
|
debug: 0,
|
|
@@ -67368,21 +67422,22 @@ var hiddenPlaceholder = /* @__PURE__ */ __name((countArg, tArg) => `${sgr.dim}${
|
|
|
67368
67422
|
`, "hiddenPlaceholder");
|
|
67369
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");
|
|
67370
67424
|
_DeesChartLog_decorators = [customElement("dees-chart-log")];
|
|
67371
|
-
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) {
|
|
67372
67426
|
constructor() {
|
|
67373
67427
|
super();
|
|
67374
67428
|
__publicField(this, "t", dcLocalize(this));
|
|
67375
67429
|
__privateAdd(this, _label7, __runInitializers(_init92, 8, this, "")), __runInitializers(_init92, 11, this);
|
|
67376
|
-
__privateAdd(this,
|
|
67377
|
-
__privateAdd(this,
|
|
67378
|
-
__privateAdd(this,
|
|
67379
|
-
__privateAdd(this,
|
|
67380
|
-
__privateAdd(this,
|
|
67381
|
-
__privateAdd(this,
|
|
67382
|
-
__privateAdd(this,
|
|
67383
|
-
__privateAdd(this,
|
|
67384
|
-
__privateAdd(this,
|
|
67385
|
-
__privateAdd(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);
|
|
67386
67441
|
/** Every entry the log holds, oldest first, bounded by `maxEntries`. */
|
|
67387
67442
|
__publicField(this, "logBuffer", []);
|
|
67388
67443
|
/** The list `logEntries` last bound, as the host handed it over. */
|
|
@@ -67414,52 +67469,53 @@ var _DeesChartLog = class _DeesChartLog extends (_a91 = DeesElement, _label_dec7
|
|
|
67414
67469
|
render() {
|
|
67415
67470
|
const jumpTitle = /* @__PURE__ */ __name((labelArg) => this.canJumpToMatch ? labelArg : this.t("chartlog.jumpUnavailable"), "jumpTitle");
|
|
67416
67471
|
const label = this.label || this.t("chartlog.defaultLabel");
|
|
67417
|
-
return
|
|
67418
|
-
|
|
67419
|
-
|
|
67420
|
-
|
|
67421
|
-
|
|
67422
|
-
|
|
67423
|
-
|
|
67424
|
-
|
|
67425
|
-
|
|
67426
|
-
|
|
67427
|
-
|
|
67428
|
-
|
|
67429
|
-
|
|
67430
|
-
|
|
67431
|
-
|
|
67432
|
-
?disabled=${!this.canJumpToMatch}
|
|
67433
|
-
@click=${() => this.searchPrevious()}
|
|
67434
|
-
title=${jumpTitle(this.t("chartlog.previousMatch"))}
|
|
67435
|
-
>↑</button>
|
|
67436
|
-
<button
|
|
67437
|
-
?disabled=${!this.canJumpToMatch}
|
|
67438
|
-
@click=${() => this.searchNext()}
|
|
67439
|
-
title=${jumpTitle(this.t("chartlog.nextMatch"))}
|
|
67440
|
-
>↓</button>
|
|
67441
|
-
</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">
|
|
67442
67487
|
<button
|
|
67443
|
-
|
|
67444
|
-
@click=${() => this.
|
|
67445
|
-
title=${this.t(
|
|
67446
|
-
>
|
|
67447
|
-
${this.t(this.filterMode ? "chartlog.filter" : "chartlog.highlight")}
|
|
67448
|
-
</button>
|
|
67449
|
-
</div>
|
|
67450
|
-
<div class="controls">
|
|
67488
|
+
?disabled=${!this.canJumpToMatch}
|
|
67489
|
+
@click=${() => this.searchPrevious()}
|
|
67490
|
+
title=${jumpTitle(this.t("chartlog.previousMatch"))}
|
|
67491
|
+
>↑</button>
|
|
67451
67492
|
<button
|
|
67452
|
-
|
|
67453
|
-
@click=${() => this.
|
|
67454
|
-
|
|
67455
|
-
|
|
67456
|
-
</button>
|
|
67457
|
-
<button class="control-button" @click=${() => this.clearLogs()}>
|
|
67458
|
-
${this.t("chartlog.clear")}
|
|
67459
|
-
</button>
|
|
67493
|
+
?disabled=${!this.canJumpToMatch}
|
|
67494
|
+
@click=${() => this.searchNext()}
|
|
67495
|
+
title=${jumpTitle(this.t("chartlog.nextMatch"))}
|
|
67496
|
+
>↓</button>
|
|
67460
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>
|
|
67461
67505
|
</div>
|
|
67462
|
-
|
|
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`
|
|
67463
67519
|
<dees-terminal-view
|
|
67464
67520
|
.readOnly=${true}
|
|
67465
67521
|
.convertEol=${true}
|
|
@@ -67467,21 +67523,18 @@ var _DeesChartLog = class _DeesChartLog extends (_a91 = DeesElement, _label_dec7
|
|
|
67467
67523
|
.scrollback=${this.maxEntries}
|
|
67468
67524
|
.label=${label}
|
|
67469
67525
|
></dees-terminal-view>
|
|
67470
|
-
|
|
67471
|
-
|
|
67472
|
-
|
|
67473
|
-
|
|
67474
|
-
|
|
67475
|
-
|
|
67476
|
-
|
|
67477
|
-
|
|
67478
|
-
|
|
67479
|
-
|
|
67480
|
-
|
|
67481
|
-
|
|
67482
|
-
` : ""}
|
|
67483
|
-
</dees-tile>
|
|
67484
|
-
`;
|
|
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
|
+
});
|
|
67485
67538
|
}
|
|
67486
67539
|
updated(changedPropertiesArg) {
|
|
67487
67540
|
super.updated(changedPropertiesArg);
|
|
@@ -67795,6 +67848,7 @@ var _DeesChartLog = class _DeesChartLog extends (_a91 = DeesElement, _label_dec7
|
|
|
67795
67848
|
};
|
|
67796
67849
|
_init92 = __decoratorStart(_a91);
|
|
67797
67850
|
_label7 = new WeakMap();
|
|
67851
|
+
_meta3 = new WeakMap();
|
|
67798
67852
|
_logEntries = new WeakMap();
|
|
67799
67853
|
_autoScroll = new WeakMap();
|
|
67800
67854
|
_maxEntries = new WeakMap();
|
|
@@ -67806,6 +67860,7 @@ _filterMode = new WeakMap();
|
|
|
67806
67860
|
_metrics2 = new WeakMap();
|
|
67807
67861
|
_canJumpToMatch = new WeakMap();
|
|
67808
67862
|
__decorateElement(_init92, 4, "label", _label_dec7, _DeesChartLog, _label7);
|
|
67863
|
+
__decorateElement(_init92, 4, "meta", _meta_dec3, _DeesChartLog, _meta3);
|
|
67809
67864
|
__decorateElement(_init92, 4, "logEntries", _logEntries_dec, _DeesChartLog, _logEntries);
|
|
67810
67865
|
__decorateElement(_init92, 4, "autoScroll", _autoScroll_dec, _DeesChartLog, _autoScroll);
|
|
67811
67866
|
__decorateElement(_init92, 4, "maxEntries", _maxEntries_dec, _DeesChartLog, _maxEntries);
|
|
@@ -67823,32 +67878,18 @@ __publicField(_DeesChartLog, "demoGroups", ["Chart", "Workspace"]);
|
|
|
67823
67878
|
__publicField(_DeesChartLog, "styles", [
|
|
67824
67879
|
themeDefaultStyles,
|
|
67825
67880
|
cssManager.defaultStyles,
|
|
67826
|
-
|
|
67881
|
+
chartInsetStyles,
|
|
67882
|
+
chartFrameStyles,
|
|
67827
67883
|
i`
|
|
67828
|
-
|
|
67829
|
-
|
|
67830
|
-
|
|
67831
|
-
font-family: var(--dees-font-family);
|
|
67832
|
-
color: var(--dees-color-text-primary);
|
|
67833
|
-
}
|
|
67834
|
-
|
|
67835
|
-
dees-tile {
|
|
67836
|
-
height: 100%;
|
|
67837
|
-
}
|
|
67838
|
-
|
|
67839
|
-
.header {
|
|
67840
|
-
padding: 8px var(--chartlog-inset-inline, 12px);
|
|
67841
|
-
display: flex;
|
|
67842
|
-
align-items: center;
|
|
67843
|
-
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 {
|
|
67844
67887
|
flex-wrap: wrap;
|
|
67888
|
+
column-gap: 12px;
|
|
67845
67889
|
}
|
|
67846
67890
|
|
|
67847
|
-
.
|
|
67848
|
-
|
|
67849
|
-
font-size: 14px;
|
|
67850
|
-
color: var(--dees-color-text-primary);
|
|
67851
|
-
white-space: nowrap;
|
|
67891
|
+
.chartHeading {
|
|
67892
|
+
flex: 0 1 auto;
|
|
67852
67893
|
}
|
|
67853
67894
|
|
|
67854
67895
|
.search-box {
|
|
@@ -67966,20 +68007,13 @@ __publicField(_DeesChartLog, "styles", [
|
|
|
67966
68007
|
}
|
|
67967
68008
|
}
|
|
67968
68009
|
|
|
67969
|
-
/* The
|
|
68010
|
+
/* The frame's plot is the surface: the view fills it and fits to it. */
|
|
67970
68011
|
dees-terminal-view {
|
|
67971
68012
|
position: absolute;
|
|
67972
68013
|
inset: 0;
|
|
67973
68014
|
}
|
|
67974
68015
|
|
|
67975
|
-
/* The
|
|
67976
|
-
legend of the level counts, then the rate at the end. */
|
|
67977
|
-
.metrics-bar {
|
|
67978
|
-
${tileFooterBar}
|
|
67979
|
-
padding-inline: var(--chartlog-inset-inline, 12px);
|
|
67980
|
-
width: 100%;
|
|
67981
|
-
}
|
|
67982
|
-
|
|
68016
|
+
/* The footer bar: the legend of the level counts, then the rate at the end. */
|
|
67983
68017
|
.rate {
|
|
67984
68018
|
margin-inline-start: auto;
|
|
67985
68019
|
color: var(--dees-color-text-secondary);
|
|
@@ -83064,6 +83098,7 @@ var createChoiceSteps = /* @__PURE__ */ __name((finish) => {
|
|
|
83064
83098
|
review.content = reviewForm();
|
|
83065
83099
|
}, "validationFunc")
|
|
83066
83100
|
}), "reading");
|
|
83101
|
+
const reachable = /* @__PURE__ */ __name((value) => /\S+@\S+\.\S+|\+?\d[\d\s/-]{5,}/.test(value) ? { valid: true } : { valid: false, message: "Include an email address or a phone number, so the contact can be reached." }, "reachable");
|
|
83067
83102
|
const flows = {
|
|
83068
83103
|
manual: [{
|
|
83069
83104
|
title: "Enter the details.",
|
|
@@ -83078,7 +83113,7 @@ var createChoiceSteps = /* @__PURE__ */ __name((finish) => {
|
|
|
83078
83113
|
title: "Paste the text.",
|
|
83079
83114
|
description: "A signature, a letterhead or an email: whatever names the contact.",
|
|
83080
83115
|
content: b`<dees-form>
|
|
83081
|
-
<dees-input-textarea key="text" label="Text" .rows=${5} required
|
|
83116
|
+
<dees-input-textarea key="text" label="Text" .rows=${5} .validationFunction=${reachable} required
|
|
83082
83117
|
.value=${"Northwind Traders GmbH\nHafenstra\xDFe 12, 20457 Hamburg\nhello@northwind.example"}></dees-input-textarea>
|
|
83083
83118
|
</dees-form>`,
|
|
83084
83119
|
menuOptions: [{ name: "Read the details", action: /* @__PURE__ */ __name(async (stepper) => stepper?.goNext(), "action") }]
|
|
@@ -83098,7 +83133,7 @@ var createChoiceSteps = /* @__PURE__ */ __name((finish) => {
|
|
|
83098
83133
|
content: b`<dees-form @formData=${(event) => {
|
|
83099
83134
|
source = event.detail.data.source || source;
|
|
83100
83135
|
}}>
|
|
83101
|
-
<dees-input-radiogroup key="source" label="
|
|
83136
|
+
<dees-input-radiogroup key="source" aria-label="How do you want to bring in the details?" selectedOption="manual" .options=${[
|
|
83102
83137
|
{ key: "manual", option: "Enter the details yourself", description: "Type the name and whatever else you know." },
|
|
83103
83138
|
{ key: "text", option: "Read them from a text", description: "Paste a signature or a letterhead; a language model picks out the details." },
|
|
83104
83139
|
{ key: "website", option: "Read them from a website", description: "Give the address of an imprint page; a language model reads it." }
|
|
@@ -83195,7 +83230,7 @@ var _DeesDemoStepper = class _DeesDemoStepper extends (_a118 = DeesElement, _sce
|
|
|
83195
83230
|
</div>` : b`<dees-stepper .steps=${this.steps} .layout=${this.stepperLayout()} .cardAlign=${this.stepperAlign()} .stepCounter=${this.scenario === "Lookup" ? "position" : "total"} .beforeClose=${this.beforeClose} @stepper-close=${() => {
|
|
83196
83231
|
this.closed = true;
|
|
83197
83232
|
}}></dees-stepper>`}</div>
|
|
83198
|
-
<p class="caption">${this.scenario === "Retry example" ? "The first setup attempt pauses with an error. Try again to continue with your saved choices." : this.scenario === "Lookup" ? "The counter says only where you are and the ribbon fades out after it; the lookup is not a step of its own and can be stopped while it runs. Discard asks first, and only Discard waits for the answer." : this.scenario === "Choice first" ? "The first step asks how; the steps after it follow the answer. Entering the details takes one more step; reading them from a text or a website reads first and then shows what was read for checking. Cancelling closes at once until something was read, and asks first after that. Centred stands the card in the middle of the stage, as a flow with a tab of its own would." : this.scenario === "Long flow" ? "More steps than the ribbon has room for: it scrolls and keeps the current marker in view. Use a completed marker to go back." : "Move forward, go back with Back or a completed marker in the ribbon, and review your choices. Vertical, and Auto on a narrow surface, show the ribbon as a strip above the steps, and the steps slide sideways. Centred stands the card in the middle of the stage."}</p>
|
|
83233
|
+
<p class="caption">${this.scenario === "Retry example" ? "The first setup attempt pauses with an error. Try again to continue with your saved choices." : this.scenario === "Lookup" ? "The counter says only where you are and the ribbon fades out after it; the lookup is not a step of its own and can be stopped while it runs. Discard asks first, and only Discard waits for the answer." : this.scenario === "Choice first" ? "The first step asks how; the steps after it follow the answer. Entering the details takes one more step; reading them from a text or a website reads first and then shows what was read for checking. A text that names no email address or phone number stays on its step: the field says why and takes the focus. Cancelling closes at once until something was read, and asks first after that. Centred stands the card in the middle of the stage, as a flow with a tab of its own would." : this.scenario === "Long flow" ? "More steps than the ribbon has room for: it scrolls and keeps the current marker in view. Use a completed marker to go back." : "Move forward, go back with Back or a completed marker in the ribbon, and review your choices. Vertical, and Auto on a narrow surface, show the ribbon as a strip above the steps, and the steps slide sideways. Centred stands the card in the middle of the stage."}</p>
|
|
83199
83234
|
<details><summary class="caption">Completion required</summary>
|
|
83200
83235
|
<p class="caption">For a flow that must finish, such as a required update, cancellation can be disabled.</p>
|
|
83201
83236
|
<dees-button type="secondary" text="Open required setup" @clicked=${() => this.openOverlay(false)}></dees-button>
|
|
@@ -84210,9 +84245,10 @@ var _DeesStepper = class _DeesStepper extends (_a119 = DeesElement, _steps_dec =
|
|
|
84210
84245
|
/**
|
|
84211
84246
|
* Click handler for menuOption buttons in the footer. For the primary (last)
|
|
84212
84247
|
* button, if an active form is present, gates on required-field validity and
|
|
84213
|
-
* triggers the form's gatherAndDispatch() before running the action
|
|
84214
|
-
*
|
|
84215
|
-
*
|
|
84248
|
+
* triggers the form's gatherAndDispatch() before running the action; when a
|
|
84249
|
+
* field refuses there, the field reports why and takes the focus, and the
|
|
84250
|
+
* action does not run. The action is awaited so any async work it starts (a
|
|
84251
|
+
* save, a question) completes before the click handler returns.
|
|
84216
84252
|
*/
|
|
84217
84253
|
async handleMenuOptionClick(optionArg, isPrimary) {
|
|
84218
84254
|
if (this.actionPending || isPrimary && this.progressRunning) return;
|
|
@@ -84225,7 +84261,7 @@ var _DeesStepper = class _DeesStepper extends (_a119 = DeesElement, _steps_dec =
|
|
|
84225
84261
|
this.actionStep = step;
|
|
84226
84262
|
this.stepError = "";
|
|
84227
84263
|
try {
|
|
84228
|
-
if (isPrimary && form
|
|
84264
|
+
if (isPrimary && form && !await form.gatherAndDispatch()) return;
|
|
84229
84265
|
if (!this.isConnected || step !== this.selectedStep) return;
|
|
84230
84266
|
await optionArg.action(this);
|
|
84231
84267
|
} catch (error) {
|
|
@@ -120676,7 +120712,7 @@ var bright = {
|
|
|
120676
120712
|
// ts_web/00_commitinfo_data.ts
|
|
120677
120713
|
var commitinfo = {
|
|
120678
120714
|
name: "@design.estate/dees-catalog",
|
|
120679
|
-
version: "21.
|
|
120715
|
+
version: "21.31.0",
|
|
120680
120716
|
description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
|
|
120681
120717
|
};
|
|
120682
120718
|
export {
|