@design.estate/dees-catalog 21.28.0 → 21.29.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 +281 -99
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-45QQJK4L.js → chunk-CJVVAKHG.js} +509 -358
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-45QQJK4L.js.map → chunk-CJVVAKHG.js.map} +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-C63GPX4U.js → chunk-QFJ7LA5L.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-OYJYQPHK.js → dees-modal-NVJRWZKO.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-UTDYRJTX.js → dees-workspace-terminal-BSBYG5IX.js} +3 -3
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00actionerror.d.ts +4 -2
- package/dist_ts_web/elements/00actionerror.js +1 -1
- package/dist_ts_web/elements/00group-button/dees-actionfooter/dees-actionfooter.d.ts +77 -0
- package/dist_ts_web/elements/00group-button/dees-actionfooter/dees-actionfooter.demo.d.ts +1 -0
- package/dist_ts_web/elements/00group-button/dees-actionfooter/dees-actionfooter.demo.js +60 -0
- package/dist_ts_web/elements/00group-button/dees-actionfooter/dees-actionfooter.js +240 -0
- package/dist_ts_web/elements/00group-button/dees-actionfooter/index.d.ts +1 -0
- package/dist_ts_web/elements/00group-button/dees-actionfooter/index.js +2 -0
- package/dist_ts_web/elements/00group-button/index.d.ts +1 -0
- package/dist_ts_web/elements/00group-button/index.js +2 -1
- package/dist_ts_web/elements/00group-dataview/dees-table/filters.d.ts +8 -3
- package/dist_ts_web/elements/00group-dataview/dees-table/filters.js +13 -15
- package/dist_ts_web/elements/00group-dataview/dees-table/search.js +3 -2
- package/dist_ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.d.ts +7 -1
- package/dist_ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.demo.js +17 -2
- package/dist_ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.js +25 -4
- package/dist_ts_web/elements/00group-input/profilepicture/profilepicture.modal.d.ts +1 -1
- package/dist_ts_web/elements/00group-input/profilepicture/profilepicture.modal.js +8 -20
- package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.d.ts +44 -3
- package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.demo.d.ts +2 -0
- package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.demo.js +118 -9
- package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.js +70 -13
- package/dist_ts_web/elements/00group-layout/dees-stepper/styles.js +54 -6
- package/dist_ts_web/elements/00group-overlay/dees-modal/dees-modal.d.ts +18 -26
- package/dist_ts_web/elements/00group-overlay/dees-modal/dees-modal.js +33 -100
- package/dist_ts_web/elements/00group-overlay/dees-popover/dees-popover.d.ts +14 -0
- package/dist_ts_web/elements/00group-overlay/dees-popover/dees-popover.js +49 -6
- package/package.json +1 -1
- package/readme.md +109 -16
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00actionerror.ts +4 -2
- package/ts_web/elements/00group-button/dees-actionfooter/dees-actionfooter.demo.ts +64 -0
- package/ts_web/elements/00group-button/dees-actionfooter/dees-actionfooter.ts +196 -0
- package/ts_web/elements/00group-button/dees-actionfooter/index.ts +1 -0
- package/ts_web/elements/00group-button/index.ts +1 -0
- package/ts_web/elements/00group-dataview/dees-table/filters.ts +14 -14
- package/ts_web/elements/00group-dataview/dees-table/search.ts +2 -1
- package/ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.demo.ts +22 -1
- package/ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.ts +31 -5
- package/ts_web/elements/00group-input/profilepicture/profilepicture.modal.ts +7 -19
- package/ts_web/elements/00group-layout/dees-stepper/dees-stepper.demo.ts +106 -4
- package/ts_web/elements/00group-layout/dees-stepper/dees-stepper.ts +95 -33
- package/ts_web/elements/00group-layout/dees-stepper/styles.ts +55 -5
- package/ts_web/elements/00group-overlay/dees-modal/dees-modal.ts +43 -101
- package/ts_web/elements/00group-overlay/dees-popover/dees-popover.ts +36 -2
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-C63GPX4U.js.map → chunk-QFJ7LA5L.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-OYJYQPHK.js.map → dees-modal-NVJRWZKO.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-UTDYRJTX.js.map → dees-workspace-terminal-BSBYG5IX.js.map} +0 -0
package/dist_bundle/bundle.js
CHANGED
|
@@ -26,9 +26,10 @@ import {
|
|
|
26
26
|
ownAppuiLabels,
|
|
27
27
|
resolveAppuiLabels,
|
|
28
28
|
xtermStyles
|
|
29
|
-
} from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-
|
|
29
|
+
} from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-QFJ7LA5L.js";
|
|
30
30
|
import {
|
|
31
31
|
D,
|
|
32
|
+
DeesActionFooter,
|
|
32
33
|
DeesButton,
|
|
33
34
|
DeesButtonExit,
|
|
34
35
|
DeesContextmenu,
|
|
@@ -51,6 +52,7 @@ import {
|
|
|
51
52
|
actionErrorEventName,
|
|
52
53
|
actionErrorMessage,
|
|
53
54
|
b,
|
|
55
|
+
catalogAction,
|
|
54
56
|
componentZIndex,
|
|
55
57
|
concealOverlay,
|
|
56
58
|
createWorkspace,
|
|
@@ -113,7 +115,7 @@ import {
|
|
|
113
115
|
workspaceVisibility,
|
|
114
116
|
zIndexLayers,
|
|
115
117
|
zIndexRegistry
|
|
116
|
-
} from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-
|
|
118
|
+
} from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-CJVVAKHG.js";
|
|
117
119
|
import {
|
|
118
120
|
dcMessages,
|
|
119
121
|
dcSourceI18n,
|
|
@@ -267,7 +269,7 @@ var notifyStorageMutation = /* @__PURE__ */ __name((host, detail) => {
|
|
|
267
269
|
host.dispatchEvent(new CustomEvent("storage-mutation", { detail, bubbles: true, composed: true }));
|
|
268
270
|
}, "notifyStorageMutation");
|
|
269
271
|
var allowsStorageCapability = /* @__PURE__ */ __name((capabilities, capability) => capabilities?.[capability] !== false, "allowsStorageCapability");
|
|
270
|
-
var joinStorageMenuSections = /* @__PURE__ */ __name((
|
|
272
|
+
var joinStorageMenuSections = /* @__PURE__ */ __name((sections5) => sections5.filter((section) => section.length > 0).flatMap((section, index) => index === 0 ? section : [{ divider: true }, ...section]), "joinStorageMenuSections");
|
|
271
273
|
var isSameStorageSelection = /* @__PURE__ */ __name((a, b2) => a.length === b2.length && a.every((entry, index) => entry.key === b2[index].key), "isSameStorageSelection");
|
|
272
274
|
var toggleStorageSelection = /* @__PURE__ */ __name((selection, entry) => selection.some((item) => item.key === entry.key) ? selection.filter((item) => item.key !== entry.key) : [...selection, entry], "toggleStorageSelection");
|
|
273
275
|
var rangeStorageSelection = /* @__PURE__ */ __name((rows, anchorKey, targetKey) => {
|
|
@@ -5690,7 +5692,27 @@ __runInitializers(_init15, 1, _DeesInputToggle);
|
|
|
5690
5692
|
var DeesInputToggle = _DeesInputToggle;
|
|
5691
5693
|
|
|
5692
5694
|
// ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.demo.ts
|
|
5693
|
-
var
|
|
5695
|
+
var imports = [
|
|
5696
|
+
{ key: "manual", option: "Enter the details yourself", description: "Type the name and whatever else you know." },
|
|
5697
|
+
{ key: "text", option: "Read them from a text", description: "Paste a signature or a letterhead; a language model picks out the details." },
|
|
5698
|
+
{ key: "website", option: "Read them from a website", description: "Give the address of an imprint page; a language model reads it." }
|
|
5699
|
+
];
|
|
5700
|
+
var sections = b`
|
|
5701
|
+
${demoSection(
|
|
5702
|
+
"Choices that explain themselves",
|
|
5703
|
+
"An option can carry a description: a line under its label that says what the choice does. The circle stays on the label's line, and assistive technology reads the description with the option.",
|
|
5704
|
+
b`
|
|
5705
|
+
<dees-input-radiogroup key="source" label="How do you want to add the contact?" .options=${imports} selectedOption="manual"
|
|
5706
|
+
@change=${(event) => showDemoResult(
|
|
5707
|
+
event.currentTarget,
|
|
5708
|
+
`Chosen: ${event.currentTarget.selectedOption}`
|
|
5709
|
+
)}></dees-input-radiogroup>
|
|
5710
|
+
${demoOutput("Chosen: manual")}
|
|
5711
|
+
${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
|
+
`
|
|
5713
|
+
)}
|
|
5714
|
+
`;
|
|
5715
|
+
var demoFunc8 = /* @__PURE__ */ __name(() => focusedInputDemo("radiogroup", sections), "demoFunc");
|
|
5694
5716
|
|
|
5695
5717
|
// ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.ts
|
|
5696
5718
|
var _validationState_dec, _direction_dec, _selectedOption_dec3, _options_dec4, _a14, _DeesInputRadiogroup_decorators, _init16, _options4, _selectedOption3, _direction, _validationState;
|
|
@@ -5733,20 +5755,22 @@ var _DeesInputRadiogroup = class _DeesInputRadiogroup extends (_a14 = DeesInputB
|
|
|
5733
5755
|
render() {
|
|
5734
5756
|
const keys = this.options.map((option) => this.getOptionKey(option));
|
|
5735
5757
|
const tabStop = keys.includes(this.selectedOption) ? this.selectedOption : keys[0];
|
|
5758
|
+
const described = this.options.some((option) => this.getOptionDescription(option));
|
|
5736
5759
|
return b`
|
|
5737
5760
|
<div class="input-wrapper">
|
|
5738
5761
|
${this.label ? this.renderLabel() : ""}
|
|
5739
|
-
<div class="maincontainer ${this.direction}" role="radiogroup"
|
|
5762
|
+
<div class="maincontainer ${this.direction} ${described ? "described" : ""}" role="radiogroup"
|
|
5740
5763
|
aria-label=${this.label} aria-required=${this.required ? "true" : "false"}
|
|
5741
5764
|
aria-disabled=${this.disabled ? "true" : "false"}
|
|
5742
5765
|
aria-invalid=${this.validationState === "invalid" ? "true" : "false"}>
|
|
5743
5766
|
${this.options.map((option) => {
|
|
5744
5767
|
const optionKey = this.getOptionKey(option);
|
|
5745
5768
|
const optionLabel = this.getOptionLabel(option);
|
|
5769
|
+
const optionDescription = this.getOptionDescription(option);
|
|
5746
5770
|
const isSelected = this.selectedOption === optionKey;
|
|
5747
5771
|
return b`
|
|
5748
5772
|
<div
|
|
5749
|
-
class="radio-option ${isSelected ? "selected" : ""}"
|
|
5773
|
+
class="radio-option ${isSelected ? "selected" : ""} ${optionDescription ? "described" : ""}"
|
|
5750
5774
|
@click="${() => this.selectOption(optionKey)}"
|
|
5751
5775
|
@keydown="${(e2) => this.handleKeydown(e2, optionKey)}"
|
|
5752
5776
|
>
|
|
@@ -5756,8 +5780,12 @@ var _DeesInputRadiogroup = class _DeesInputRadiogroup extends (_a14 = DeesInputB
|
|
|
5756
5780
|
role="radio"
|
|
5757
5781
|
aria-checked="${isSelected}"
|
|
5758
5782
|
aria-label="${optionLabel}"
|
|
5783
|
+
.ariaDescription=${optionDescription || null}
|
|
5759
5784
|
></div>
|
|
5760
|
-
<div class="radio-
|
|
5785
|
+
<div class="radio-text">
|
|
5786
|
+
<div class="radio-label">${optionLabel}</div>
|
|
5787
|
+
${optionDescription ? b`<div class="radio-description">${optionDescription}</div>` : ""}
|
|
5788
|
+
</div>
|
|
5761
5789
|
</div>
|
|
5762
5790
|
`;
|
|
5763
5791
|
})}
|
|
@@ -5778,6 +5806,9 @@ var _DeesInputRadiogroup = class _DeesInputRadiogroup extends (_a14 = DeesInputB
|
|
|
5778
5806
|
}
|
|
5779
5807
|
return option.option;
|
|
5780
5808
|
}
|
|
5809
|
+
getOptionDescription(option) {
|
|
5810
|
+
return typeof option === "string" ? void 0 : option.description || void 0;
|
|
5811
|
+
}
|
|
5781
5812
|
getOptionByKey(key) {
|
|
5782
5813
|
return this.options.find((opt) => this.getOptionKey(opt) === key);
|
|
5783
5814
|
}
|
|
@@ -5950,6 +5981,18 @@ __publicField(_DeesInputRadiogroup, "styles", [
|
|
|
5950
5981
|
line-height: var(--dees-font-subhead-line);
|
|
5951
5982
|
}
|
|
5952
5983
|
|
|
5984
|
+
/* Described choices: the explanation under the label, the circle on the label's line. */
|
|
5985
|
+
.maincontainer.vertical.described { gap: var(--dees-spacing-md); }
|
|
5986
|
+
.radio-option.described { align-items: flex-start; }
|
|
5987
|
+
.radio-text { min-width: 0; }
|
|
5988
|
+
.radio-description {
|
|
5989
|
+
margin-block-start: var(--dees-spacing-2xs);
|
|
5990
|
+
font-size: var(--dees-font-footnote-size);
|
|
5991
|
+
line-height: var(--dees-font-footnote-line);
|
|
5992
|
+
color: var(--dees-color-text-secondary);
|
|
5993
|
+
overflow-wrap: anywhere;
|
|
5994
|
+
}
|
|
5995
|
+
|
|
5953
5996
|
@media (pointer: coarse) {
|
|
5954
5997
|
.radio-option { min-height: var(--dees-control-height-touch); }
|
|
5955
5998
|
}
|
|
@@ -6047,11 +6090,6 @@ var tableFilterPanelStyles = i`
|
|
|
6047
6090
|
padding-top: 14px;
|
|
6048
6091
|
border-top: var(--dees-line-width-hairline) solid var(--dees-color-border-subtle);
|
|
6049
6092
|
}
|
|
6050
|
-
|
|
6051
|
-
.filterPanelFooter {
|
|
6052
|
-
display: flex;
|
|
6053
|
-
justify-content: flex-end;
|
|
6054
|
-
}
|
|
6055
6093
|
`;
|
|
6056
6094
|
var renderFilterField = /* @__PURE__ */ __name((tableArg, filterArg) => {
|
|
6057
6095
|
const value = filterValueOf(filterArg, tableArg.filterValues);
|
|
@@ -6102,14 +6140,14 @@ var renderTableFilterPanel = /* @__PURE__ */ __name((tableArg, t) => {
|
|
|
6102
6140
|
}}
|
|
6103
6141
|
></dees-input-radiogroup>
|
|
6104
6142
|
</div>
|
|
6105
|
-
<div class="filterPanelFooter">
|
|
6106
|
-
<dees-button class="clearFilters" type="outline" size="sm" .text=${t("table.clearFilters")}
|
|
6107
|
-
.disabled=${!tableArg.activeFilters.length}
|
|
6108
|
-
@clicked=${() => tableArg.clearFilters()}
|
|
6109
|
-
></dees-button>
|
|
6110
|
-
</div>
|
|
6111
6143
|
</div>`;
|
|
6112
6144
|
}, "renderTableFilterPanel");
|
|
6145
|
+
var tableFilterActions = /* @__PURE__ */ __name((tableArg, t) => [{
|
|
6146
|
+
name: t("table.clearFilters"),
|
|
6147
|
+
primary: false,
|
|
6148
|
+
disabled: !tableArg.activeFilters.length,
|
|
6149
|
+
action: /* @__PURE__ */ __name(async () => tableArg.clearFilters(), "action")
|
|
6150
|
+
}], "tableFilterActions");
|
|
6113
6151
|
|
|
6114
6152
|
// ts_web/elements/00group-dataview/dees-table/styles.ts
|
|
6115
6153
|
var rowActionGlyphPx = 16;
|
|
@@ -8166,6 +8204,7 @@ var TableSearchField = class {
|
|
|
8166
8204
|
</button>
|
|
8167
8205
|
</div>${table ? b`<dees-popover class="filterBubble" .label=${this.t("table.filters")} .open=${this.filtersOpen}
|
|
8168
8206
|
.dismissOnTab=${false} width="min(320px, calc(100vw - 16px))" maxHeight="min(70vh, 560px)"
|
|
8207
|
+
.actions=${tableFilterActions(table, this.t)}
|
|
8169
8208
|
@dees-popover-close=${this.handleClose}
|
|
8170
8209
|
>${renderTableFilterPanel(table, this.t)}</dees-popover>` : ""}`;
|
|
8171
8210
|
}
|
|
@@ -14598,16 +14637,16 @@ var _DeesDataviewCodebox = class _DeesDataviewCodebox extends (_a24 = DeesElemen
|
|
|
14598
14637
|
`;
|
|
14599
14638
|
}
|
|
14600
14639
|
renderDiff() {
|
|
14601
|
-
const
|
|
14602
|
-
if (!
|
|
14640
|
+
const sections5 = this.displaySectionsWithFolds();
|
|
14641
|
+
if (!sections5.length) {
|
|
14603
14642
|
return b`<div class="diffDocumentNotice">${this.t("codebox.noSections")}</div>`;
|
|
14604
14643
|
}
|
|
14605
|
-
return this.effectiveDiffView === "split" ? b`${
|
|
14644
|
+
return this.effectiveDiffView === "split" ? b`${sections5.map(({ file, rows }) => b`
|
|
14606
14645
|
<section class="diffFile">
|
|
14607
14646
|
${this.renderDiffFileHeader(file)}
|
|
14608
14647
|
${rows.length ? this.renderSplitGrid(rows) : this.renderDiffFileNotice(file)}
|
|
14609
14648
|
</section>
|
|
14610
|
-
`)}` : b`<div class="diffScroll">${
|
|
14649
|
+
`)}` : b`<div class="diffScroll">${sections5.map(({ file, rows }) => b`
|
|
14611
14650
|
<section class="diffFile">
|
|
14612
14651
|
${this.renderDiffFileHeader(file)}
|
|
14613
14652
|
${rows.length ? this.renderInlineGrid(rows) : this.renderDiffFileNotice(file)}
|
|
@@ -27964,7 +28003,7 @@ var showMarkdownValue = /* @__PURE__ */ __name((event) => {
|
|
|
27964
28003
|
showDemoResult(editor, editor.value === releaseNotes ? "The value is byte-identical to the loaded document." : "Edited. The value holds your change and leaves every other byte as it was.");
|
|
27965
28004
|
}, "showMarkdownValue");
|
|
27966
28005
|
var savedState = null;
|
|
27967
|
-
var
|
|
28006
|
+
var sections2 = b`
|
|
27968
28007
|
<style>${demoLocalStyles}</style>
|
|
27969
28008
|
|
|
27970
28009
|
${demoSection(
|
|
@@ -28041,7 +28080,7 @@ var sections = b`
|
|
|
28041
28080
|
`
|
|
28042
28081
|
)}
|
|
28043
28082
|
`;
|
|
28044
|
-
var demoFunc31 = /* @__PURE__ */ __name(() => focusedInputDemo("wysiwyg",
|
|
28083
|
+
var demoFunc31 = /* @__PURE__ */ __name(() => focusedInputDemo("wysiwyg", sections2), "demoFunc");
|
|
28045
28084
|
|
|
28046
28085
|
// ts_web/elements/00group-input/dees-input-wysiwyg/wysiwyg.shortcuts.ts
|
|
28047
28086
|
var WysiwygShortcuts = class {
|
|
@@ -42647,10 +42686,10 @@ var _DeesForm = class _DeesForm extends (_a55 = DeesElement, _horizontalLayout_d
|
|
|
42647
42686
|
* Runs whenever the form's children change.
|
|
42648
42687
|
*/
|
|
42649
42688
|
applySections() {
|
|
42650
|
-
const
|
|
42651
|
-
if (
|
|
42689
|
+
const sections5 = [...this.querySelectorAll("dees-form-section")].filter((section) => section.closest("dees-form") === this);
|
|
42690
|
+
if (sections5.some((section) => section.parentElement === this)) this.internals.states.add("sections");
|
|
42652
42691
|
else this.internals.states.delete("sections");
|
|
42653
|
-
for (const section of
|
|
42692
|
+
for (const section of sections5) section.grouped = this.grouped;
|
|
42654
42693
|
this.applyGroupedMode();
|
|
42655
42694
|
}
|
|
42656
42695
|
/**
|
|
@@ -65498,10 +65537,10 @@ var _DeesAppui = class _DeesAppui extends (_a88 = DeesElement, _appbarMenuItems_
|
|
|
65498
65537
|
keywords: path,
|
|
65499
65538
|
run: /* @__PURE__ */ __name(() => this.runMenuItem(item, "profile"), "run")
|
|
65500
65539
|
})));
|
|
65501
|
-
const
|
|
65540
|
+
const sections5 = [];
|
|
65502
65541
|
for (const { item: row, group, parent } of secondaryMenuTabRows(this.secondarymenuGroups)) {
|
|
65503
65542
|
if (row.disabled || row.hidden || parent?.disabled || parent?.hidden) continue;
|
|
65504
|
-
|
|
65543
|
+
sections5.push({
|
|
65505
65544
|
id: `section:${group.name}:${row.key}`,
|
|
65506
65545
|
label: row.label ?? row.key,
|
|
65507
65546
|
iconName: row.iconName,
|
|
@@ -65509,7 +65548,7 @@ var _DeesAppui = class _DeesAppui extends (_a88 = DeesElement, _appbarMenuItems_
|
|
|
65509
65548
|
run: /* @__PURE__ */ __name(() => this.selectSecondaryMenuItem(row, group, parent), "run")
|
|
65510
65549
|
});
|
|
65511
65550
|
}
|
|
65512
|
-
push(this.word("paletteSections"),
|
|
65551
|
+
push(this.word("paletteSections"), sections5);
|
|
65513
65552
|
push(this.word("paletteTabs"), this.maincontentTabs.map((tab) => ({
|
|
65514
65553
|
id: `tab:${tab.key}`,
|
|
65515
65554
|
label: tab.label ?? tab.key,
|
|
@@ -68146,7 +68185,7 @@ __runInitializers(_init94, 1, _DeesTableSearch);
|
|
|
68146
68185
|
var DeesTableSearch = _DeesTableSearch;
|
|
68147
68186
|
|
|
68148
68187
|
// ts_web/elements/00group-dataview/dees-grouped-list/dees-grouped-list.demo.ts
|
|
68149
|
-
var
|
|
68188
|
+
var sections3 = [
|
|
68150
68189
|
{
|
|
68151
68190
|
header: "General",
|
|
68152
68191
|
rows: [
|
|
@@ -68180,13 +68219,13 @@ var toggled = /* @__PURE__ */ __name((event) => showDemoResult(event.currentTarg
|
|
|
68180
68219
|
var demoFunc63 = /* @__PURE__ */ __name(() => demoPage("Grouped list", "An inset-grouped settings list. Navigation and action rows are buttons: Tab reaches them and Enter or Space activates them. A toggle row is operated by its switch, which carries the row's label as its name.", b`
|
|
68181
68220
|
${demoSection("Settings", "Sections with headers, footnotes, values, toggles, navigation rows, a disabled row and a destructive action. Alerts has an action too: its label opens it, its switch only toggles.", b`
|
|
68182
68221
|
<div class="dees-demo-canvas">
|
|
68183
|
-
<dees-grouped-list .sections=${
|
|
68222
|
+
<dees-grouped-list .sections=${sections3} @rowSelect=${selected} @rowToggle=${toggled}></dees-grouped-list>
|
|
68184
68223
|
</div>
|
|
68185
68224
|
${demoOutput("Activate a row or flip a toggle to see the event.")}
|
|
68186
68225
|
`)}
|
|
68187
68226
|
${demoSection("Full width", "Without the inset the cards span the container.", b`
|
|
68188
68227
|
<div class="dees-demo-canvas">
|
|
68189
|
-
<dees-grouped-list .inset=${false} .sections=${[
|
|
68228
|
+
<dees-grouped-list .inset=${false} .sections=${[sections3[0]]} @rowSelect=${selected}></dees-grouped-list>
|
|
68190
68229
|
</div>
|
|
68191
68230
|
${demoOutput("Activate a row to see the event.")}
|
|
68192
68231
|
`)}
|
|
@@ -69263,14 +69302,14 @@ var _DeesStatusbutton = class _DeesStatusbutton extends (_a96 = DeesElement, _it
|
|
|
69263
69302
|
(group, index, all) => all.findIndex((other) => other.key === group.key) === index
|
|
69264
69303
|
);
|
|
69265
69304
|
const keys = new Set(groups.map((group) => group.key));
|
|
69266
|
-
const
|
|
69305
|
+
const sections5 = [
|
|
69267
69306
|
{ items: bySeverity(this.list.filter((item) => item.group === void 0 || !keys.has(item.group))) },
|
|
69268
69307
|
...groups.map((group) => {
|
|
69269
69308
|
const items = this.list.filter((item) => item.group === group.key);
|
|
69270
69309
|
return { group, items: group.order === "given" ? items : bySeverity(items) };
|
|
69271
69310
|
})
|
|
69272
69311
|
];
|
|
69273
|
-
return
|
|
69312
|
+
return sections5.filter((section) => section.items.length);
|
|
69274
69313
|
}
|
|
69275
69314
|
renderSection(section) {
|
|
69276
69315
|
const heading = section.group?.heading;
|
|
@@ -69816,7 +69855,7 @@ var _DeesHarnessConversationPicker = class _DeesHarnessConversationPicker extend
|
|
|
69816
69855
|
* cancelled. Focus returns to whatever had it when the picker opened.
|
|
69817
69856
|
*/
|
|
69818
69857
|
static async pick(optionsArg = {}) {
|
|
69819
|
-
const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-
|
|
69858
|
+
const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-NVJRWZKO.js");
|
|
69820
69859
|
const picker = new _DeesHarnessConversationPicker();
|
|
69821
69860
|
picker.sessions = optionsArg.sessions ?? [];
|
|
69822
69861
|
picker.groups = optionsArg.groups ?? [];
|
|
@@ -70277,7 +70316,7 @@ var handleResourceContext = /* @__PURE__ */ __name(async (event) => {
|
|
|
70277
70316
|
list.selectedResourceId = event.detail.resource.id;
|
|
70278
70317
|
}, "handleResourceContext");
|
|
70279
70318
|
var openModal = /* @__PURE__ */ __name(async (sessions, groups) => {
|
|
70280
|
-
const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-
|
|
70319
|
+
const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-NVJRWZKO.js");
|
|
70281
70320
|
const content = document.createElement("dees-harness-session-list");
|
|
70282
70321
|
content.sessions = sessions;
|
|
70283
70322
|
content.groups = groups;
|
|
@@ -72807,7 +72846,7 @@ __runInitializers(_init100, 1, _DeesHarnessSessionList);
|
|
|
72807
72846
|
var DeesHarnessSessionList = _DeesHarnessSessionList;
|
|
72808
72847
|
|
|
72809
72848
|
// ts_web/elements/00group-harness/dees-harness-sidebar/dees-harness-sidebar.demo.ts
|
|
72810
|
-
var
|
|
72849
|
+
var sections4 = [
|
|
72811
72850
|
{ key: "screencast", label: "Screencast", icon: "lucide:MonitorPlay", badge: "4.4 ms" },
|
|
72812
72851
|
{ key: "transport", label: "Transport", icon: "lucide:Activity", badge: "webrtc" },
|
|
72813
72852
|
{ key: "notes", label: "Notes", icon: "lucide:NotebookPen" }
|
|
@@ -72819,7 +72858,7 @@ var sampleCounters = /* @__PURE__ */ __name((eventArg) => {
|
|
|
72819
72858
|
const decodeMs = (4.4 + sampleCount % 6 * 0.3).toFixed(1);
|
|
72820
72859
|
scope.querySelector('[data-metric="frames"]').textContent = `${1440 + sampleCount * 24}`;
|
|
72821
72860
|
scope.querySelector('[data-metric="decode"]').textContent = `${decodeMs} ms`;
|
|
72822
|
-
scope.querySelector("dees-harness-sidebar").sections =
|
|
72861
|
+
scope.querySelector("dees-harness-sidebar").sections = sections4.map(
|
|
72823
72862
|
(section) => section.key === "screencast" ? { ...section, badge: `${decodeMs} ms` } : section
|
|
72824
72863
|
);
|
|
72825
72864
|
}, "sampleCounters");
|
|
@@ -72854,7 +72893,7 @@ var demoFunc68 = /* @__PURE__ */ __name(() => demoPage("Sidebar", "A host-compos
|
|
|
72854
72893
|
</div>
|
|
72855
72894
|
<div class="harnessSidebarPanel">
|
|
72856
72895
|
<dees-harness-sidebar
|
|
72857
|
-
.sections=${
|
|
72896
|
+
.sections=${sections4}
|
|
72858
72897
|
@harness-sidebar-section-change=${(event) => {
|
|
72859
72898
|
showDemoResult(event.currentTarget.closest(".harnessSidebarDemo"), event.detail);
|
|
72860
72899
|
}}
|
|
@@ -76855,16 +76894,12 @@ var _ProfilePictureModal = class _ProfilePictureModal extends (_a107 = DeesEleme
|
|
|
76855
76894
|
`}
|
|
76856
76895
|
</div>
|
|
76857
76896
|
|
|
76858
|
-
|
|
76859
|
-
|
|
76860
|
-
|
|
76861
|
-
|
|
76862
|
-
|
|
76863
|
-
|
|
76864
|
-
${this.t("common.save")}
|
|
76865
|
-
</dees-button>
|
|
76866
|
-
` : ""}
|
|
76867
|
-
</div>
|
|
76897
|
+
${this.currentStep === "crop" ? b`
|
|
76898
|
+
<dees-actionfooter .actions=${[
|
|
76899
|
+
{ name: this.t("common.cancel"), action: /* @__PURE__ */ __name(() => this.close(), "action") },
|
|
76900
|
+
{ name: this.t("common.save"), action: /* @__PURE__ */ __name(() => this.handleCrop(), "action") }
|
|
76901
|
+
]}></dees-actionfooter>
|
|
76902
|
+
` : ""}
|
|
76868
76903
|
</div>
|
|
76869
76904
|
`;
|
|
76870
76905
|
}
|
|
@@ -77080,14 +77115,6 @@ __publicField(_ProfilePictureModal, "styles", [
|
|
|
77080
77115
|
100% { transform: scale(1); opacity: 1; }
|
|
77081
77116
|
}
|
|
77082
77117
|
|
|
77083
|
-
.modal-footer {
|
|
77084
|
-
padding: 20px 24px;
|
|
77085
|
-
border-top: var(--dees-line-width-hairline) solid var(--dees-color-hover);
|
|
77086
|
-
display: flex;
|
|
77087
|
-
gap: 10px;
|
|
77088
|
-
justify-content: flex-end;
|
|
77089
|
-
}
|
|
77090
|
-
|
|
77091
77118
|
.instructions {
|
|
77092
77119
|
text-align: center;
|
|
77093
77120
|
color: var(--dees-color-text-muted);
|
|
@@ -81566,7 +81593,7 @@ __runInitializers(_init118, 1, _DeesSparklebox);
|
|
|
81566
81593
|
var DeesSparklebox = _DeesSparklebox;
|
|
81567
81594
|
|
|
81568
81595
|
// ts_web/elements/00group-layout/dees-stepper/dees-stepper.demo.ts
|
|
81569
|
-
var _result_dec, _closed_dec, _layout_dec2, _width_dec, _scenario_dec3, _a117, _DeesDemoStepper_decorators, _init119, _scenario3, _width, _layout2, _closed, _result;
|
|
81596
|
+
var _result_dec, _closed_dec, _card_dec, _layout_dec2, _width_dec, _scenario_dec3, _a117, _DeesDemoStepper_decorators, _init119, _scenario3, _width, _layout2, _card, _closed, _result;
|
|
81570
81597
|
var waitForProgressTick = /* @__PURE__ */ __name((duration, signal) => new Promise((resolve) => {
|
|
81571
81598
|
if (signal?.aborted) {
|
|
81572
81599
|
resolve(false);
|
|
@@ -81736,26 +81763,113 @@ var createLongSteps = /* @__PURE__ */ __name((finish) => {
|
|
|
81736
81763
|
}, "action") } : { name: "Continue", action: /* @__PURE__ */ __name(async (stepper) => stepper?.goNext(), "action") }]
|
|
81737
81764
|
}));
|
|
81738
81765
|
}, "createLongSteps");
|
|
81766
|
+
var createChoiceSteps = /* @__PURE__ */ __name((finish) => {
|
|
81767
|
+
let source = "manual";
|
|
81768
|
+
const read = { name: "", email: "" };
|
|
81769
|
+
const create2 = { name: "Create contact", action: /* @__PURE__ */ __name(async (stepper) => {
|
|
81770
|
+
finish(read.name);
|
|
81771
|
+
await stepper?.destroy();
|
|
81772
|
+
}, "action") };
|
|
81773
|
+
const collect = /* @__PURE__ */ __name((event) => {
|
|
81774
|
+
Object.assign(read, event.detail.data);
|
|
81775
|
+
}, "collect");
|
|
81776
|
+
const reviewForm = /* @__PURE__ */ __name(() => b`<dees-form @formData=${collect}>
|
|
81777
|
+
<dees-input-text key="name" label="Name" .value=${read.name} required></dees-input-text>
|
|
81778
|
+
<dees-input-text key="email" label="Email" .value=${read.email} type="email"></dees-input-text>
|
|
81779
|
+
</dees-form>`, "reviewForm");
|
|
81780
|
+
const review = {
|
|
81781
|
+
title: "Check the details.",
|
|
81782
|
+
description: "Correct anything that was read wrongly. Nothing is saved until you create the contact.",
|
|
81783
|
+
content: reviewForm(),
|
|
81784
|
+
menuOptions: [create2]
|
|
81785
|
+
};
|
|
81786
|
+
const reading = /* @__PURE__ */ __name((label, readDetails) => ({
|
|
81787
|
+
title: "Reading the details.",
|
|
81788
|
+
description: "This takes a few seconds.",
|
|
81789
|
+
countsAsStep: false,
|
|
81790
|
+
content: b``,
|
|
81791
|
+
progressStep: { label, indeterminate: true, showPercentage: false },
|
|
81792
|
+
validationFunc: /* @__PURE__ */ __name(async (_stepper, _element, signal) => {
|
|
81793
|
+
if (!await waitForProgressTick(1800, signal)) return;
|
|
81794
|
+
readDetails();
|
|
81795
|
+
review.content = reviewForm();
|
|
81796
|
+
}, "validationFunc")
|
|
81797
|
+
}), "reading");
|
|
81798
|
+
const flows = {
|
|
81799
|
+
manual: [{
|
|
81800
|
+
title: "Enter the details.",
|
|
81801
|
+
description: "Only the name is required. You can add the rest later.",
|
|
81802
|
+
content: b`<dees-form @formData=${collect}>
|
|
81803
|
+
<dees-input-text key="name" label="Name" placeholder="Northwind Traders GmbH" required></dees-input-text>
|
|
81804
|
+
<dees-input-text key="email" label="Email" placeholder="hello@northwind.example" type="email"></dees-input-text>
|
|
81805
|
+
</dees-form>`,
|
|
81806
|
+
menuOptions: [create2]
|
|
81807
|
+
}],
|
|
81808
|
+
text: [{
|
|
81809
|
+
title: "Paste the text.",
|
|
81810
|
+
description: "A signature, a letterhead or an email: whatever names the contact.",
|
|
81811
|
+
content: b`<dees-form>
|
|
81812
|
+
<dees-input-textarea key="text" label="Text" .rows=${5} required
|
|
81813
|
+
.value=${"Northwind Traders GmbH\nHafenstra\xDFe 12, 20457 Hamburg\nhello@northwind.example"}></dees-input-textarea>
|
|
81814
|
+
</dees-form>`,
|
|
81815
|
+
menuOptions: [{ name: "Read the details", action: /* @__PURE__ */ __name(async (stepper) => stepper?.goNext(), "action") }]
|
|
81816
|
+
}, reading("Reading the text", () => Object.assign(read, { name: "Northwind Traders GmbH", email: "hello@northwind.example" })), review],
|
|
81817
|
+
website: [{
|
|
81818
|
+
title: "Give the website.",
|
|
81819
|
+
description: "The address of its imprint page, or the website itself.",
|
|
81820
|
+
content: b`<dees-form>
|
|
81821
|
+
<dees-input-text key="url" label="Imprint address" value="https://northwind.example/imprint" required></dees-input-text>
|
|
81822
|
+
</dees-form>`,
|
|
81823
|
+
menuOptions: [{ name: "Read the imprint", action: /* @__PURE__ */ __name(async (stepper) => stepper?.goNext(), "action") }]
|
|
81824
|
+
}, reading("Reading the imprint", () => Object.assign(read, { name: "Northwind Traders GmbH", email: "imprint@northwind.example" })), review]
|
|
81825
|
+
};
|
|
81826
|
+
const choose = {
|
|
81827
|
+
title: "Add a contact.",
|
|
81828
|
+
description: "How do you want to bring in the details?",
|
|
81829
|
+
content: b`<dees-form @formData=${(event) => {
|
|
81830
|
+
source = event.detail.data.source || source;
|
|
81831
|
+
}}>
|
|
81832
|
+
<dees-input-radiogroup key="source" label="Source" labelPosition="none" selectedOption="manual" .options=${[
|
|
81833
|
+
{ key: "manual", option: "Enter the details yourself", description: "Type the name and whatever else you know." },
|
|
81834
|
+
{ key: "text", option: "Read them from a text", description: "Paste a signature or a letterhead; a language model picks out the details." },
|
|
81835
|
+
{ key: "website", option: "Read them from a website", description: "Give the address of an imprint page; a language model reads it." }
|
|
81836
|
+
]}></dees-input-radiogroup>
|
|
81837
|
+
</dees-form>`,
|
|
81838
|
+
menuOptions: [{ name: "Continue", action: /* @__PURE__ */ __name(async (stepper) => {
|
|
81839
|
+
if (!stepper) return;
|
|
81840
|
+
stepper.steps = [choose, ...flows[source]];
|
|
81841
|
+
stepper.goNext();
|
|
81842
|
+
}, "action") }]
|
|
81843
|
+
};
|
|
81844
|
+
const beforeClose = /* @__PURE__ */ __name(async () => !read.name || DeesModal.confirm({ heading: "Discard what was read?", question: "Reading the details again takes another request.", confirmLabel: "Discard" }), "beforeClose");
|
|
81845
|
+
return { steps: [choose, ...flows.manual], beforeClose };
|
|
81846
|
+
}, "createChoiceSteps");
|
|
81739
81847
|
_DeesDemoStepper_decorators = [customElement("dees-demo-stepper")];
|
|
81740
|
-
var _DeesDemoStepper = class _DeesDemoStepper extends (_a117 = DeesElement, _scenario_dec3 = [n()], _width_dec = [n()], _layout_dec2 = [n()], _closed_dec = [r2()], _result_dec = [r2()], _a117) {
|
|
81848
|
+
var _DeesDemoStepper = class _DeesDemoStepper extends (_a117 = DeesElement, _scenario_dec3 = [n()], _width_dec = [n()], _layout_dec2 = [n()], _card_dec = [n()], _closed_dec = [r2()], _result_dec = [r2()], _a117) {
|
|
81741
81849
|
constructor() {
|
|
81742
81850
|
super(...arguments);
|
|
81743
81851
|
__privateAdd(this, _scenario3, __runInitializers(_init119, 8, this, "Standard setup")), __runInitializers(_init119, 11, this);
|
|
81744
81852
|
__privateAdd(this, _width, __runInitializers(_init119, 12, this, "Wide")), __runInitializers(_init119, 15, this);
|
|
81745
81853
|
__privateAdd(this, _layout2, __runInitializers(_init119, 16, this, "Auto")), __runInitializers(_init119, 19, this);
|
|
81746
|
-
__privateAdd(this,
|
|
81747
|
-
__privateAdd(this,
|
|
81854
|
+
__privateAdd(this, _card, __runInitializers(_init119, 20, this, "Top")), __runInitializers(_init119, 23, this);
|
|
81855
|
+
__privateAdd(this, _closed, __runInitializers(_init119, 24, this, false)), __runInitializers(_init119, 27, this);
|
|
81856
|
+
__privateAdd(this, _result, __runInitializers(_init119, 28, this, "")), __runInitializers(_init119, 31, this);
|
|
81748
81857
|
__publicField(this, "steps", createDemoSteps(false, (name) => {
|
|
81749
81858
|
this.result = `${name} is ready.`;
|
|
81750
81859
|
}));
|
|
81860
|
+
__publicField(this, "beforeClose");
|
|
81751
81861
|
__publicField(this, "overlayStepper");
|
|
81752
81862
|
}
|
|
81753
81863
|
reset() {
|
|
81754
81864
|
this.result = "";
|
|
81755
81865
|
this.closed = false;
|
|
81866
|
+
const choice = this.scenario === "Choice first" ? createChoiceSteps((name) => {
|
|
81867
|
+
this.result = `${name} was added.`;
|
|
81868
|
+
}) : null;
|
|
81869
|
+
this.beforeClose = choice?.beforeClose;
|
|
81756
81870
|
this.steps = this.scenario === "Lookup" ? createLookupSteps((name) => {
|
|
81757
81871
|
this.result = `${name} was added.`;
|
|
81758
|
-
}) : this.scenario === "Long flow" ? createLongSteps((name) => {
|
|
81872
|
+
}) : choice ? choice.steps : this.scenario === "Long flow" ? createLongSteps((name) => {
|
|
81759
81873
|
this.result = `${name} is complete.`;
|
|
81760
81874
|
}) : createDemoSteps(this.scenario === "Retry example", (name) => {
|
|
81761
81875
|
this.result = `${name} is ready.`;
|
|
@@ -81767,6 +81881,7 @@ var _DeesDemoStepper = class _DeesDemoStepper extends (_a117 = DeesElement, _sce
|
|
|
81767
81881
|
this.overlayStepper = await DeesStepper.createAndShow({
|
|
81768
81882
|
cancelable,
|
|
81769
81883
|
layout: this.stepperLayout(),
|
|
81884
|
+
cardAlign: this.stepperAlign(),
|
|
81770
81885
|
steps: createDemoSteps(this.scenario === "Retry example", (name) => {
|
|
81771
81886
|
this.result = `${name} is ready.`;
|
|
81772
81887
|
})
|
|
@@ -81775,10 +81890,13 @@ var _DeesDemoStepper = class _DeesDemoStepper extends (_a117 = DeesElement, _sce
|
|
|
81775
81890
|
stepperLayout() {
|
|
81776
81891
|
return this.layout === "Horizontal" ? "horizontal" : this.layout === "Vertical" ? "vertical" : "auto";
|
|
81777
81892
|
}
|
|
81893
|
+
stepperAlign() {
|
|
81894
|
+
return this.card === "Centred" ? "center" : "start";
|
|
81895
|
+
}
|
|
81778
81896
|
render() {
|
|
81779
81897
|
return b`<div class="toolbar">
|
|
81780
81898
|
<dees-input-multitoggle size="sm" label="Demo scenario" labelPosition="none"
|
|
81781
|
-
.options=${["Standard setup", "Retry example", "Lookup", "Long flow"]} .selectedOption=${this.scenario}
|
|
81899
|
+
.options=${["Standard setup", "Retry example", "Lookup", "Choice first", "Long flow"]} .selectedOption=${this.scenario}
|
|
81782
81900
|
@change=${(event) => {
|
|
81783
81901
|
this.scenario = event.detail.value;
|
|
81784
81902
|
this.reset();
|
|
@@ -81792,6 +81910,11 @@ var _DeesDemoStepper = class _DeesDemoStepper extends (_a117 = DeesElement, _sce
|
|
|
81792
81910
|
.options=${["Auto", "Horizontal", "Vertical"]} .selectedOption=${this.layout}
|
|
81793
81911
|
@change=${(event) => {
|
|
81794
81912
|
this.layout = event.detail.value;
|
|
81913
|
+
}}></dees-input-multitoggle>
|
|
81914
|
+
<dees-input-multitoggle size="sm" label="Demo card" labelPosition="none"
|
|
81915
|
+
.options=${["Top", "Centred"]} .selectedOption=${this.card}
|
|
81916
|
+
@change=${(event) => {
|
|
81917
|
+
this.card = event.detail.value;
|
|
81795
81918
|
}}></dees-input-multitoggle>
|
|
81796
81919
|
<div class="actions"><dees-button type="secondary" text="Open overlay" @clicked=${() => this.openOverlay()}></dees-button>
|
|
81797
81920
|
<dees-button type="ghost" text="Reset" @clicked=${this.reset}></dees-button></div>
|
|
@@ -81800,10 +81923,10 @@ var _DeesDemoStepper = class _DeesDemoStepper extends (_a117 = DeesElement, _sce
|
|
|
81800
81923
|
<dees-icon icon=${this.result ? "lucide:CircleCheck" : "lucide:Layers"} iconSize="32"></dees-icon>
|
|
81801
81924
|
<h2>${this.result || "Setup cancelled."}</h2><p>This example uses local sample data.</p>
|
|
81802
81925
|
<dees-button type="secondary" text="Start again" @clicked=${this.reset}></dees-button>
|
|
81803
|
-
</div>` : b`<dees-stepper .steps=${this.steps} .layout=${this.stepperLayout()} .stepCounter=${this.scenario === "Lookup" ? "position" : "total"} @stepper-close=${() => {
|
|
81926
|
+
</div>` : b`<dees-stepper .steps=${this.steps} .layout=${this.stepperLayout()} .cardAlign=${this.stepperAlign()} .stepCounter=${this.scenario === "Lookup" ? "position" : "total"} .beforeClose=${this.beforeClose} @stepper-close=${() => {
|
|
81804
81927
|
this.closed = true;
|
|
81805
81928
|
}}></dees-stepper>`}</div>
|
|
81806
|
-
<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 === "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."}</p>
|
|
81929
|
+
<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>
|
|
81807
81930
|
<details><summary class="caption">Completion required</summary>
|
|
81808
81931
|
<p class="caption">For a flow that must finish, such as a required update, cancellation can be disabled.</p>
|
|
81809
81932
|
<dees-button type="secondary" text="Open required setup" @clicked=${() => this.openOverlay(false)}></dees-button>
|
|
@@ -81818,11 +81941,13 @@ _init119 = __decoratorStart(_a117);
|
|
|
81818
81941
|
_scenario3 = new WeakMap();
|
|
81819
81942
|
_width = new WeakMap();
|
|
81820
81943
|
_layout2 = new WeakMap();
|
|
81944
|
+
_card = new WeakMap();
|
|
81821
81945
|
_closed = new WeakMap();
|
|
81822
81946
|
_result = new WeakMap();
|
|
81823
81947
|
__decorateElement(_init119, 4, "scenario", _scenario_dec3, _DeesDemoStepper, _scenario3);
|
|
81824
81948
|
__decorateElement(_init119, 4, "width", _width_dec, _DeesDemoStepper, _width);
|
|
81825
81949
|
__decorateElement(_init119, 4, "layout", _layout_dec2, _DeesDemoStepper, _layout2);
|
|
81950
|
+
__decorateElement(_init119, 4, "card", _card_dec, _DeesDemoStepper, _card);
|
|
81826
81951
|
__decorateElement(_init119, 4, "closed", _closed_dec, _DeesDemoStepper, _closed);
|
|
81827
81952
|
__decorateElement(_init119, 4, "result", _result_dec, _DeesDemoStepper, _result);
|
|
81828
81953
|
_DeesDemoStepper = __decorateElement(_init119, 0, "DeesDemoStepper", _DeesDemoStepper_decorators, _DeesDemoStepper);
|
|
@@ -81903,6 +82028,30 @@ var verticalLayout = i`
|
|
|
81903
82028
|
& .step-rail li { width: var(--stepper-pitch); height: 100%; }
|
|
81904
82029
|
& .stage { grid-column: 1; grid-row: 2; justify-self: center; width: 100%; max-width: var(--dees-stepper-width, 520px); }
|
|
81905
82030
|
`;
|
|
82031
|
+
var centredCard = i`
|
|
82032
|
+
--stepper-offset: var(--dees-spacing-xl);
|
|
82033
|
+
--stepper-card-max: calc(100cqh - var(--stepper-offset) - var(--dees-spacing-xl));
|
|
82034
|
+
grid-template-rows:
|
|
82035
|
+
minmax(0, 1fr)
|
|
82036
|
+
minmax(min(var(--stepper-step-min-height), var(--stepper-card-max)), auto)
|
|
82037
|
+
minmax(0, 1fr);
|
|
82038
|
+
& .progress { grid-row: 2; max-height: var(--stepper-card-max); }
|
|
82039
|
+
& .stage { grid-row: 1 / -1; grid-template-rows: subgrid; }
|
|
82040
|
+
& dees-tile.step { grid-row: 1 / -1; align-self: center; max-height: var(--stepper-card-max); }
|
|
82041
|
+
& dees-tile.step.selected { grid-row: 2; }
|
|
82042
|
+
`;
|
|
82043
|
+
var centredStrip = i`
|
|
82044
|
+
--stepper-card-max: calc(100cqh - var(--stepper-rail) - var(--dees-spacing-md) * 5);
|
|
82045
|
+
grid-template-rows:
|
|
82046
|
+
minmax(0, 1fr)
|
|
82047
|
+
auto
|
|
82048
|
+
minmax(min(var(--stepper-step-min-height), var(--stepper-card-max)), auto)
|
|
82049
|
+
minmax(0, 1fr);
|
|
82050
|
+
& .progress { grid-row: 2; max-height: none; }
|
|
82051
|
+
& .stage { grid-row: 1 / -1; }
|
|
82052
|
+
& dees-tile.step.selected { grid-row: 3; }
|
|
82053
|
+
& dees-tile.step:not(.selected) { margin-block-start: calc(var(--stepper-rail) + var(--dees-spacing-md)); }
|
|
82054
|
+
`;
|
|
81906
82055
|
var stepperStyles = i`
|
|
81907
82056
|
:host {
|
|
81908
82057
|
--stepper-motion-duration: var(--dees-transition-slow);
|
|
@@ -81919,6 +82068,8 @@ var stepperStyles = i`
|
|
|
81919
82068
|
--stepper-done: var(--dees-color-text-muted);
|
|
81920
82069
|
--stepper-fill: var(--dees-color-fill-tertiary);
|
|
81921
82070
|
--stepper-surface: var(--dees-tile-surface, var(--dees-color-bg-primary));
|
|
82071
|
+
/* the least height of a step's card, where the stepper has room for it */
|
|
82072
|
+
--stepper-step-min-height: 280px;
|
|
81922
82073
|
display: block;
|
|
81923
82074
|
position: relative;
|
|
81924
82075
|
width: 100%;
|
|
@@ -82124,7 +82275,7 @@ var stepperStyles = i`
|
|
|
82124
82275
|
align-self: start;
|
|
82125
82276
|
width: 100%;
|
|
82126
82277
|
max-height: 100%;
|
|
82127
|
-
min-height: min(
|
|
82278
|
+
min-height: min(var(--stepper-step-min-height), 100%);
|
|
82128
82279
|
opacity: 0;
|
|
82129
82280
|
visibility: hidden;
|
|
82130
82281
|
pointer-events: none;
|
|
@@ -82237,10 +82388,13 @@ var stepperStyles = i`
|
|
|
82237
82388
|
.predestroy .step.selected, .predestroy .progress { animation: none; }
|
|
82238
82389
|
}
|
|
82239
82390
|
|
|
82240
|
-
/* --- The vertical layout, chosen or on a narrow surface in the automatic one --- */
|
|
82391
|
+
/* --- The centred card; the vertical layout, chosen or on a narrow surface in the automatic one --- */
|
|
82392
|
+
.stepperSurface:where([data-align='center']) { ${centredCard} }
|
|
82241
82393
|
.stepperSurface:where([data-layout='vertical']) { ${verticalLayout} }
|
|
82394
|
+
.stepperSurface:where([data-layout='vertical'][data-align='center']) { ${centredStrip} }
|
|
82242
82395
|
@container stepper-surface (max-width: 640px) {
|
|
82243
82396
|
.stepperSurface:where([data-layout='auto']) { ${verticalLayout} }
|
|
82397
|
+
.stepperSurface:where([data-layout='auto'][data-align='center']) { ${centredStrip} }
|
|
82244
82398
|
/* a narrow surface, in any layout: a closer card, the hint on a row of its own */
|
|
82245
82399
|
.step-header { padding: var(--dees-spacing-md) var(--dees-spacing-lg); }
|
|
82246
82400
|
.step-body { padding: var(--dees-spacing-lg); }
|
|
@@ -82257,7 +82411,7 @@ var stepperStyles = i`
|
|
|
82257
82411
|
`;
|
|
82258
82412
|
|
|
82259
82413
|
// ts_web/elements/00group-layout/dees-stepper/dees-stepper.ts
|
|
82260
|
-
var _railFocus_dec, _narrow_dec, _pendingAction_dec, _actionPending_dec, _progressRunning_dec, _stepError_dec, _activeFormValid_dec, _activeForm_dec, _layout_dec3, _stepCounter_dec, _stepperZIndex_dec, _cancelable_dec, _overlay_dec, _selectedStep_dec, _steps_dec, _a118, _DeesStepper_decorators, _init120, _steps, _selectedStep, _overlay, _cancelable, _stepperZIndex, _stepCounter, _layout3, _activeForm, _activeFormValid, _stepError, _progressRunning, _actionPending, _pendingAction, _narrow, _railFocus;
|
|
82414
|
+
var _railFocus_dec, _narrow_dec, _pendingAction_dec, _actionPending_dec, _progressRunning_dec, _stepError_dec, _activeFormValid_dec, _activeForm_dec, _cardAlign_dec, _layout_dec3, _stepCounter_dec, _stepperZIndex_dec, _beforeClose_dec, _cancelable_dec, _overlay_dec, _selectedStep_dec, _steps_dec, _a118, _DeesStepper_decorators, _init120, _steps, _selectedStep, _overlay, _cancelable, _beforeClose, _stepperZIndex, _stepCounter, _layout3, _cardAlign, _activeForm, _activeFormValid, _stepError, _progressRunning, _actionPending, _pendingAction, _narrow, _railFocus;
|
|
82261
82415
|
var narrowSurfaceWidth = 640;
|
|
82262
82416
|
_DeesStepper_decorators = [customElement("dees-stepper")];
|
|
82263
82417
|
var _DeesStepper = class _DeesStepper extends (_a118 = DeesElement, _steps_dec = [n({
|
|
@@ -82270,26 +82424,28 @@ var _DeesStepper = class _DeesStepper extends (_a118 = DeesElement, _steps_dec =
|
|
|
82270
82424
|
})], _cancelable_dec = [n({
|
|
82271
82425
|
type: Boolean,
|
|
82272
82426
|
reflect: true
|
|
82273
|
-
})], _stepperZIndex_dec = [n({ type: Number, attribute: false })], _stepCounter_dec = [n({ type: String, reflect: true })], _layout_dec3 = [n({ type: String, reflect: true })], _activeForm_dec = [n({ type: Object, attribute: false })], _activeFormValid_dec = [n({ type: Boolean, attribute: false })], _stepError_dec = [r2()], _progressRunning_dec = [r2()], _actionPending_dec = [r2()], _pendingAction_dec = [r2()], _narrow_dec = [r2()], _railFocus_dec = [r2()], _a118) {
|
|
82427
|
+
})], _beforeClose_dec = [n({ attribute: false })], _stepperZIndex_dec = [n({ type: Number, attribute: false })], _stepCounter_dec = [n({ type: String, reflect: true })], _layout_dec3 = [n({ type: String, reflect: true })], _cardAlign_dec = [n({ type: String, reflect: true })], _activeForm_dec = [n({ type: Object, attribute: false })], _activeFormValid_dec = [n({ type: Boolean, attribute: false })], _stepError_dec = [r2()], _progressRunning_dec = [r2()], _actionPending_dec = [r2()], _pendingAction_dec = [r2()], _narrow_dec = [r2()], _railFocus_dec = [r2()], _a118) {
|
|
82274
82428
|
constructor() {
|
|
82275
82429
|
super();
|
|
82276
82430
|
__privateAdd(this, _steps, __runInitializers(_init120, 8, this, [])), __runInitializers(_init120, 11, this);
|
|
82277
82431
|
__privateAdd(this, _selectedStep, __runInitializers(_init120, 12, this)), __runInitializers(_init120, 15, this);
|
|
82278
82432
|
__privateAdd(this, _overlay, __runInitializers(_init120, 16, this, false)), __runInitializers(_init120, 19, this);
|
|
82279
82433
|
__privateAdd(this, _cancelable, __runInitializers(_init120, 20, this, true)), __runInitializers(_init120, 23, this);
|
|
82280
|
-
__privateAdd(this,
|
|
82281
|
-
__privateAdd(this,
|
|
82282
|
-
__privateAdd(this,
|
|
82283
|
-
__privateAdd(this,
|
|
82284
|
-
__privateAdd(this,
|
|
82434
|
+
__privateAdd(this, _beforeClose, __runInitializers(_init120, 24, this)), __runInitializers(_init120, 27, this);
|
|
82435
|
+
__privateAdd(this, _stepperZIndex, __runInitializers(_init120, 28, this, 1e3)), __runInitializers(_init120, 31, this);
|
|
82436
|
+
__privateAdd(this, _stepCounter, __runInitializers(_init120, 32, this, "total")), __runInitializers(_init120, 35, this);
|
|
82437
|
+
__privateAdd(this, _layout3, __runInitializers(_init120, 36, this, "auto")), __runInitializers(_init120, 39, this);
|
|
82438
|
+
__privateAdd(this, _cardAlign, __runInitializers(_init120, 40, this, "start")), __runInitializers(_init120, 43, this);
|
|
82439
|
+
__privateAdd(this, _activeForm, __runInitializers(_init120, 44, this, null)), __runInitializers(_init120, 47, this);
|
|
82440
|
+
__privateAdd(this, _activeFormValid, __runInitializers(_init120, 48, this, true)), __runInitializers(_init120, 51, this);
|
|
82285
82441
|
__publicField(this, "activeFormSubscription");
|
|
82286
82442
|
__publicField(this, "t", dcLocalize(this));
|
|
82287
|
-
__privateAdd(this, _stepError, __runInitializers(_init120,
|
|
82288
|
-
__privateAdd(this, _progressRunning, __runInitializers(_init120,
|
|
82289
|
-
__privateAdd(this, _actionPending, __runInitializers(_init120,
|
|
82290
|
-
__privateAdd(this, _pendingAction, __runInitializers(_init120,
|
|
82291
|
-
__privateAdd(this, _narrow, __runInitializers(_init120,
|
|
82292
|
-
__privateAdd(this, _railFocus, __runInitializers(_init120,
|
|
82443
|
+
__privateAdd(this, _stepError, __runInitializers(_init120, 52, this, "")), __runInitializers(_init120, 55, this);
|
|
82444
|
+
__privateAdd(this, _progressRunning, __runInitializers(_init120, 56, this, false)), __runInitializers(_init120, 59, this);
|
|
82445
|
+
__privateAdd(this, _actionPending, __runInitializers(_init120, 60, this, false)), __runInitializers(_init120, 63, this);
|
|
82446
|
+
__privateAdd(this, _pendingAction, __runInitializers(_init120, 64, this, null)), __runInitializers(_init120, 67, this);
|
|
82447
|
+
__privateAdd(this, _narrow, __runInitializers(_init120, 68, this, false)), __runInitializers(_init120, 71, this);
|
|
82448
|
+
__privateAdd(this, _railFocus, __runInitializers(_init120, 72, this, -1)), __runInitializers(_init120, 75, this);
|
|
82293
82449
|
__publicField(this, "resizeObserver");
|
|
82294
82450
|
/**
|
|
82295
82451
|
* The steps whose tiles are still leaving the stage: each stays until its
|
|
@@ -82354,6 +82510,8 @@ var _DeesStepper = class _DeesStepper extends (_a118 = DeesElement, _steps_dec =
|
|
|
82354
82510
|
}
|
|
82355
82511
|
if (optionsArg.stepCounter !== void 0) stepper.stepCounter = optionsArg.stepCounter;
|
|
82356
82512
|
if (optionsArg.layout !== void 0) stepper.layout = optionsArg.layout;
|
|
82513
|
+
if (optionsArg.cardAlign !== void 0) stepper.cardAlign = optionsArg.cardAlign;
|
|
82514
|
+
if (optionsArg.beforeClose) stepper.beforeClose = optionsArg.beforeClose;
|
|
82357
82515
|
body.append(stepper);
|
|
82358
82516
|
stepper.stepperZIndex = zIndexRegistry.getNextZIndex();
|
|
82359
82517
|
zIndexRegistry.register(stepper, stepper.stepperZIndex, "modal");
|
|
@@ -82372,7 +82530,7 @@ var _DeesStepper = class _DeesStepper extends (_a118 = DeesElement, _steps_dec =
|
|
|
82372
82530
|
if (!this.steps.length) return b`<div class="empty">${this.t("stepper.empty")}</div>`;
|
|
82373
82531
|
const selectedIndex = this.getIndexOfStep(this.selectedStep);
|
|
82374
82532
|
const backIcon = this.matches(":dir(rtl)") ? "lucide:ChevronRight" : "lucide:ChevronLeft";
|
|
82375
|
-
return b`<div class="stepperSurface" data-layout=${this.getLayout()}>
|
|
82533
|
+
return b`<div class="stepperSurface" data-layout=${this.getLayout()} data-align=${this.cardAlign === "center" ? "center" : "start"}>
|
|
82376
82534
|
${this.renderRibbon()}
|
|
82377
82535
|
<div class="stage">
|
|
82378
82536
|
${directives_exports.repeat(this.steps.filter((step) => step === this.selectedStep || this.leavingSteps.has(step)), (step) => step, (stepArg) => {
|
|
@@ -82605,7 +82763,7 @@ var _DeesStepper = class _DeesStepper extends (_a118 = DeesElement, _steps_dec =
|
|
|
82605
82763
|
if (!changedProperties.has("selectedStep") && !changedProperties.has("steps") && !changedProperties.has("overlay")) return;
|
|
82606
82764
|
this.revealCurrentMarker();
|
|
82607
82765
|
await this.activateSelectedStep();
|
|
82608
|
-
if (!this.isConnected) return;
|
|
82766
|
+
if (!this.isConnected || !changedProperties.has("selectedStep") && !changedProperties.has("overlay")) return;
|
|
82609
82767
|
if (this.overlay || this.shadowRoot?.activeElement) {
|
|
82610
82768
|
this.shadowRoot?.querySelector(".selected .title")?.focus({ preventScroll: true });
|
|
82611
82769
|
}
|
|
@@ -82802,7 +82960,7 @@ var _DeesStepper = class _DeesStepper extends (_a118 = DeesElement, _steps_dec =
|
|
|
82802
82960
|
if (!this.isConnected || step !== this.selectedStep) return;
|
|
82803
82961
|
await optionArg.action(this);
|
|
82804
82962
|
} catch (error) {
|
|
82805
|
-
if (
|
|
82963
|
+
if (step === this.selectedStep) this.stepError = error instanceof Error ? error.message : this.t("stepper.actionFailed");
|
|
82806
82964
|
} finally {
|
|
82807
82965
|
if (this.actionStep === step) {
|
|
82808
82966
|
this.actionPending = false;
|
|
@@ -82932,9 +83090,10 @@ var _DeesStepper = class _DeesStepper extends (_a118 = DeesElement, _steps_dec =
|
|
|
82932
83090
|
}
|
|
82933
83091
|
/**
|
|
82934
83092
|
* Shown by the backdrop click, Escape and the step header's close control.
|
|
82935
|
-
*
|
|
82936
|
-
*
|
|
82937
|
-
*
|
|
83093
|
+
* Asks `beforeClose` when it is set and closes the flow unless it answers
|
|
83094
|
+
* `false`. Otherwise presents a dees-modal asking the user to confirm
|
|
83095
|
+
* cancellation. If they confirm, the stepper and window layer are destroyed;
|
|
83096
|
+
* otherwise the confirm modal is dismissed and the stepper stays open.
|
|
82938
83097
|
*
|
|
82939
83098
|
* The isConnected check on the cached reference handles the case where the
|
|
82940
83099
|
* user dismissed the previous confirm modal by clicking ITS OWN backdrop —
|
|
@@ -82948,6 +83107,19 @@ var _DeesStepper = class _DeesStepper extends (_a118 = DeesElement, _steps_dec =
|
|
|
82948
83107
|
this.cancelConfirmModal = void 0;
|
|
82949
83108
|
this.cancelRequestPending = true;
|
|
82950
83109
|
try {
|
|
83110
|
+
if (this.beforeClose) {
|
|
83111
|
+
const beforeClose = this.beforeClose;
|
|
83112
|
+
let close = false;
|
|
83113
|
+
await runAction(
|
|
83114
|
+
this,
|
|
83115
|
+
{ action: beforeClose, source: "stepper-cancel", ownerElement: this.shadowRoot?.querySelector("dialog") },
|
|
83116
|
+
async () => {
|
|
83117
|
+
close = await beforeClose() !== false;
|
|
83118
|
+
}
|
|
83119
|
+
);
|
|
83120
|
+
if (close) await this.destroy();
|
|
83121
|
+
return;
|
|
83122
|
+
}
|
|
82951
83123
|
this.cancelConfirmModal = await DeesModal.createAndShow({
|
|
82952
83124
|
heading: this.t("stepper.cancelHeading"),
|
|
82953
83125
|
width: "small",
|
|
@@ -82976,6 +83148,7 @@ var _DeesStepper = class _DeesStepper extends (_a118 = DeesElement, _steps_dec =
|
|
|
82976
83148
|
this.cancelRequestPending = false;
|
|
82977
83149
|
}
|
|
82978
83150
|
}
|
|
83151
|
+
/** Closes the flow: the stepper removes itself and fires `stepper-close`. */
|
|
82979
83152
|
destroy() {
|
|
82980
83153
|
return this.destroyPromise ??= this.closeAndRemove();
|
|
82981
83154
|
}
|
|
@@ -82987,7 +83160,14 @@ var _DeesStepper = class _DeesStepper extends (_a118 = DeesElement, _steps_dec =
|
|
|
82987
83160
|
await Promise.allSettled(leaving.flatMap((element) => element.getAnimations()).map((animation) => animation.finished));
|
|
82988
83161
|
this.shadowRoot?.querySelector("dialog")?.close();
|
|
82989
83162
|
this.remove();
|
|
83163
|
+
this.dispatchEvent(new CustomEvent("stepper-close", { bubbles: true, composed: true }));
|
|
82990
83164
|
}
|
|
83165
|
+
/**
|
|
83166
|
+
* Leaving the page is not closing the flow: an inline stepper the page takes
|
|
83167
|
+
* out and puts back (a tab switched away and back) keeps its steps, what was
|
|
83168
|
+
* entered and a running action, and fires no `stepper-close`. Its step's work
|
|
83169
|
+
* is aborted here and starts again when it returns.
|
|
83170
|
+
*/
|
|
82991
83171
|
async disconnectedCallback() {
|
|
82992
83172
|
this.selectedStep?.abortController?.abort();
|
|
82993
83173
|
if (this.selectedStep) this.selectedStep.validationFuncCalled = false;
|
|
@@ -82999,12 +83179,8 @@ var _DeesStepper = class _DeesStepper extends (_a118 = DeesElement, _steps_dec =
|
|
|
82999
83179
|
this.activeFormSubscription?.unsubscribe();
|
|
83000
83180
|
this.activeFormSubscription = void 0;
|
|
83001
83181
|
this.activeForm = null;
|
|
83002
|
-
this.actionPending = false;
|
|
83003
|
-
this.pendingAction = null;
|
|
83004
|
-
this.actionStep = void 0;
|
|
83005
83182
|
this.progressRunning = false;
|
|
83006
83183
|
zIndexRegistry.unregister(this);
|
|
83007
|
-
this.dispatchEvent(new CustomEvent("stepper-close", { bubbles: true, composed: true }));
|
|
83008
83184
|
await super.disconnectedCallback();
|
|
83009
83185
|
}
|
|
83010
83186
|
};
|
|
@@ -83013,9 +83189,11 @@ _steps = new WeakMap();
|
|
|
83013
83189
|
_selectedStep = new WeakMap();
|
|
83014
83190
|
_overlay = new WeakMap();
|
|
83015
83191
|
_cancelable = new WeakMap();
|
|
83192
|
+
_beforeClose = new WeakMap();
|
|
83016
83193
|
_stepperZIndex = new WeakMap();
|
|
83017
83194
|
_stepCounter = new WeakMap();
|
|
83018
83195
|
_layout3 = new WeakMap();
|
|
83196
|
+
_cardAlign = new WeakMap();
|
|
83019
83197
|
_activeForm = new WeakMap();
|
|
83020
83198
|
_activeFormValid = new WeakMap();
|
|
83021
83199
|
_stepError = new WeakMap();
|
|
@@ -83028,9 +83206,11 @@ __decorateElement(_init120, 4, "steps", _steps_dec, _DeesStepper, _steps);
|
|
|
83028
83206
|
__decorateElement(_init120, 4, "selectedStep", _selectedStep_dec, _DeesStepper, _selectedStep);
|
|
83029
83207
|
__decorateElement(_init120, 4, "overlay", _overlay_dec, _DeesStepper, _overlay);
|
|
83030
83208
|
__decorateElement(_init120, 4, "cancelable", _cancelable_dec, _DeesStepper, _cancelable);
|
|
83209
|
+
__decorateElement(_init120, 4, "beforeClose", _beforeClose_dec, _DeesStepper, _beforeClose);
|
|
83031
83210
|
__decorateElement(_init120, 4, "stepperZIndex", _stepperZIndex_dec, _DeesStepper, _stepperZIndex);
|
|
83032
83211
|
__decorateElement(_init120, 4, "stepCounter", _stepCounter_dec, _DeesStepper, _stepCounter);
|
|
83033
83212
|
__decorateElement(_init120, 4, "layout", _layout_dec3, _DeesStepper, _layout3);
|
|
83213
|
+
__decorateElement(_init120, 4, "cardAlign", _cardAlign_dec, _DeesStepper, _cardAlign);
|
|
83034
83214
|
__decorateElement(_init120, 4, "activeForm", _activeForm_dec, _DeesStepper, _activeForm);
|
|
83035
83215
|
__decorateElement(_init120, 4, "activeFormValid", _activeFormValid_dec, _DeesStepper, _activeFormValid);
|
|
83036
83216
|
__decorateElement(_init120, 4, "stepError", _stepError_dec, _DeesStepper, _stepError);
|
|
@@ -112222,7 +112402,7 @@ var _DeesSimpleAppDash = class _DeesSimpleAppDash extends (_a137 = DeesElement,
|
|
|
112222
112402
|
this.terminalOpen = true;
|
|
112223
112403
|
const request = ++this.terminalRequest;
|
|
112224
112404
|
try {
|
|
112225
|
-
const { DeesWorkspaceTerminal: DeesWorkspaceTerminal3 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-workspace-terminal-
|
|
112405
|
+
const { DeesWorkspaceTerminal: DeesWorkspaceTerminal3 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-workspace-terminal-BSBYG5IX.js");
|
|
112226
112406
|
await this.updateComplete;
|
|
112227
112407
|
if (!this.isConnected || request !== this.terminalRequest) return;
|
|
112228
112408
|
const terminal = new DeesWorkspaceTerminal3();
|
|
@@ -116705,14 +116885,14 @@ var TypeScriptIntelliSenseManager = class {
|
|
|
116705
116885
|
* Parse imports from TypeScript/JavaScript content
|
|
116706
116886
|
*/
|
|
116707
116887
|
parseImports(content) {
|
|
116708
|
-
const
|
|
116888
|
+
const imports2 = [];
|
|
116709
116889
|
const importRegex = /import\s+(?:[\w*{}\s,]+from\s+)?['"]([^'"]+)['"]/g;
|
|
116710
116890
|
let match;
|
|
116711
116891
|
while ((match = importRegex.exec(content)) !== null) {
|
|
116712
116892
|
const importPath = match[1];
|
|
116713
116893
|
if (!importPath.startsWith(".") && !importPath.startsWith("/")) {
|
|
116714
116894
|
const packageName = importPath.startsWith("@") ? importPath.split("/").slice(0, 2).join("/") : importPath.split("/")[0];
|
|
116715
|
-
|
|
116895
|
+
imports2.push(packageName);
|
|
116716
116896
|
}
|
|
116717
116897
|
}
|
|
116718
116898
|
const requireRegex = /require\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
@@ -116720,10 +116900,10 @@ var TypeScriptIntelliSenseManager = class {
|
|
|
116720
116900
|
const importPath = match[1];
|
|
116721
116901
|
if (!importPath.startsWith(".") && !importPath.startsWith("/")) {
|
|
116722
116902
|
const packageName = importPath.startsWith("@") ? importPath.split("/").slice(0, 2).join("/") : importPath.split("/")[0];
|
|
116723
|
-
|
|
116903
|
+
imports2.push(packageName);
|
|
116724
116904
|
}
|
|
116725
116905
|
}
|
|
116726
|
-
return [...new Set(
|
|
116906
|
+
return [...new Set(imports2)];
|
|
116727
116907
|
}
|
|
116728
116908
|
/**
|
|
116729
116909
|
* Load type definitions for a package from virtual FS
|
|
@@ -116831,8 +117011,8 @@ var TypeScriptIntelliSenseManager = class {
|
|
|
116831
117011
|
* Process content change and load types for any new imports
|
|
116832
117012
|
*/
|
|
116833
117013
|
async processContentChange(content) {
|
|
116834
|
-
const
|
|
116835
|
-
for (const packageName of
|
|
117014
|
+
const imports2 = this.parseImports(content);
|
|
117015
|
+
for (const packageName of imports2) {
|
|
116836
117016
|
if (!this.loadedLibs.has(packageName)) {
|
|
116837
117017
|
await this.loadTypesForPackage(packageName);
|
|
116838
117018
|
}
|
|
@@ -119227,7 +119407,7 @@ var bright = {
|
|
|
119227
119407
|
// ts_web/00_commitinfo_data.ts
|
|
119228
119408
|
var commitinfo = {
|
|
119229
119409
|
name: "@design.estate/dees-catalog",
|
|
119230
|
-
version: "21.
|
|
119410
|
+
version: "21.29.0",
|
|
119231
119411
|
description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
|
|
119232
119412
|
};
|
|
119233
119413
|
export {
|
|
@@ -119237,6 +119417,7 @@ export {
|
|
|
119237
119417
|
CDN_VERSIONS,
|
|
119238
119418
|
CHART_LEGEND_STATS,
|
|
119239
119419
|
CanvasPool,
|
|
119420
|
+
DeesActionFooter,
|
|
119240
119421
|
DeesActionbar,
|
|
119241
119422
|
DeesAppui,
|
|
119242
119423
|
DeesAppuiActivitylog,
|
|
@@ -119411,6 +119592,7 @@ export {
|
|
|
119411
119592
|
appuiWords,
|
|
119412
119593
|
buildSplitRows,
|
|
119413
119594
|
builtinBodyRenderers,
|
|
119595
|
+
catalogAction,
|
|
119414
119596
|
colors_exports as colors,
|
|
119415
119597
|
commitinfo,
|
|
119416
119598
|
componentZIndex,
|