@design.estate/dees-catalog 21.45.0 → 21.46.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 +262 -72
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_bundle/bundle.js.third-party-notices.json +1 -1
- package/dist_bundle/bundle.js.third-party-notices.txt +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-L4Z3DS4M.js → chunk-FCUX4QGD.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-Y2OCV2BV.js → chunk-LWT7IIPZ.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-L3H6FV4W.js → chunk-VJVZHESI.js} +37 -14
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-VJVZHESI.js.map +1 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-SOLSWJ7V.js → de-7PGZC4IF.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-VDA5LOS7.js → dees-modal-VOIWY235.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-SD4GXHX5.js → dees-workspace-terminal-EJRHSZ5F.js} +4 -4
- package/dist_bundle/third-party-notices.md +2 -2
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-appui/dees-appui/dees-appui.d.ts +37 -3
- package/dist_ts_web/elements/00group-appui/dees-appui/dees-appui.js +79 -19
- package/dist_ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.d.ts +11 -1
- package/dist_ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.demo.js +17 -1
- package/dist_ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.js +19 -2
- package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.d.ts +33 -2
- package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.demo.js +92 -13
- package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.js +58 -15
- package/dist_ts_web/elements/00group-layout/dees-stepper/styles.js +31 -2
- package/dist_ts_web/elements/interfaces/appconfig.d.ts +9 -2
- package/package.json +2 -2
- package/readme.md +34 -5
- package/third-party-notices.md +2 -2
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-appui/dees-appui/dees-appui.ts +95 -21
- package/ts_web/elements/00group-appui/dees-appui/readme.md +16 -4
- package/ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.demo.ts +20 -0
- package/ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.ts +18 -1
- package/ts_web/elements/00group-layout/dees-stepper/dees-stepper.demo.ts +79 -4
- package/ts_web/elements/00group-layout/dees-stepper/dees-stepper.ts +69 -13
- package/ts_web/elements/00group-layout/dees-stepper/styles.ts +32 -1
- package/ts_web/elements/interfaces/appconfig.ts +9 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-L3H6FV4W.js.map +0 -1
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-L4Z3DS4M.js.map → chunk-FCUX4QGD.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-Y2OCV2BV.js.map → chunk-LWT7IIPZ.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-SOLSWJ7V.js.map → de-7PGZC4IF.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-VDA5LOS7.js.map → dees-modal-VOIWY235.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-SD4GXHX5.js.map → dees-workspace-terminal-EJRHSZ5F.js.map} +0 -0
package/dist_bundle/bundle.js
CHANGED
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
ownAppuiLabels,
|
|
26
26
|
resolveAppuiLabels,
|
|
27
27
|
xtermStyles
|
|
28
|
-
} from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-
|
|
28
|
+
} from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-FCUX4QGD.js";
|
|
29
29
|
import {
|
|
30
30
|
ActionRunController,
|
|
31
31
|
BarInfoController,
|
|
@@ -124,7 +124,7 @@ import {
|
|
|
124
124
|
workspaceVisibility,
|
|
125
125
|
zIndexLayers,
|
|
126
126
|
zIndexRegistry
|
|
127
|
-
} from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-
|
|
127
|
+
} from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-LWT7IIPZ.js";
|
|
128
128
|
import {
|
|
129
129
|
dcMessages,
|
|
130
130
|
dcSourceI18n,
|
|
@@ -134,7 +134,7 @@ import {
|
|
|
134
134
|
firstDayOfWeek,
|
|
135
135
|
iso_exports,
|
|
136
136
|
momentFormat
|
|
137
|
-
} from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-
|
|
137
|
+
} from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-VJVZHESI.js";
|
|
138
138
|
import {
|
|
139
139
|
__decorateElement,
|
|
140
140
|
__decoratorMetadata,
|
|
@@ -5313,6 +5313,14 @@ var imports = [
|
|
|
5313
5313
|
{ key: "text", option: "Read them from a text", description: "Paste a signature or a letterhead; a language model picks out the details." },
|
|
5314
5314
|
{ key: "website", option: "Read them from a website", description: "Give the address of an imprint page; a language model reads it." }
|
|
5315
5315
|
];
|
|
5316
|
+
var facts = [
|
|
5317
|
+
{ key: "business_start", option: "Business start", description: "The day the business opened; its first fiscal year begins on it." },
|
|
5318
|
+
{ key: "legal_form", option: "Legal form", description: "The legal form from a day on, with the register entry where there is one." },
|
|
5319
|
+
{ key: "bookkeeping_duty", option: "Duty to keep books", description: "From when the books are kept as a merchant's, and why." },
|
|
5320
|
+
{ key: "profit_method", option: "Profit method", description: "Whether the profit is found by comparing assets or by income over expenses." },
|
|
5321
|
+
{ key: "fiscal_year", option: "Fiscal year", description: "The day and month the fiscal years start on, from a year on." },
|
|
5322
|
+
{ key: "accrual_waiver", option: "Accrual waiver", description: "That accruals are waived from a year on, where the law allows it." }
|
|
5323
|
+
];
|
|
5316
5324
|
var sections = b`
|
|
5317
5325
|
${demoSection(
|
|
5318
5326
|
"Choices that explain themselves",
|
|
@@ -5340,6 +5348,21 @@ var sections = b`
|
|
|
5340
5348
|
${demoOutput("Chosen: text")}
|
|
5341
5349
|
${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>')}
|
|
5342
5350
|
`
|
|
5351
|
+
)}
|
|
5352
|
+
${demoSection(
|
|
5353
|
+
"In a scrolled container",
|
|
5354
|
+
"A step's body or a dialog that scrolls: scroll down and press the last option's label or description. The press focuses that option where it stands, so the container stays put and the click chooses the option pressed, whatever option holds the group's tab stop.",
|
|
5355
|
+
b`
|
|
5356
|
+
<div style="max-height: calc(var(--dees-control-height-lg) * 4); overflow: auto; overscroll-behavior: contain;">
|
|
5357
|
+
<dees-input-radiogroup key="fact" aria-label="Which fact holds from a day on?" .options=${facts} required
|
|
5358
|
+
@change=${(event) => showDemoResult(
|
|
5359
|
+
event.currentTarget,
|
|
5360
|
+
`Chosen: ${event.currentTarget.selectedOption}`
|
|
5361
|
+
)}></dees-input-radiogroup>
|
|
5362
|
+
</div>
|
|
5363
|
+
${demoOutput("Nothing chosen yet.")}
|
|
5364
|
+
${demoCode('<div style="max-height: \u2026; overflow: auto">\n <dees-input-radiogroup required .options=${facts}></dees-input-radiogroup>\n</div>')}
|
|
5365
|
+
`
|
|
5343
5366
|
)}
|
|
5344
5367
|
`;
|
|
5345
5368
|
var demoFunc9 = /* @__PURE__ */ __name(() => focusedInputDemo("radiogroup", sections), "demoFunc");
|
|
@@ -5383,7 +5406,8 @@ var _DeesInputRadiogroup = class _DeesInputRadiogroup extends (_a13 = DeesInputB
|
|
|
5383
5406
|
* option, or the first while nothing is chosen. The arrow keys move the
|
|
5384
5407
|
* choice with the focus and wrap; Space chooses the focused option. Enter is
|
|
5385
5408
|
* the form's, as in a native radio group: it moves to the next field or
|
|
5386
|
-
* submits from the last.
|
|
5409
|
+
* submits from the last. A press on an option focuses that option's own
|
|
5410
|
+
* circle, where it is (`focusPressedOption`).
|
|
5387
5411
|
*/
|
|
5388
5412
|
render() {
|
|
5389
5413
|
const keys = this.options.map((option) => this.getOptionKey(option));
|
|
@@ -5404,6 +5428,7 @@ var _DeesInputRadiogroup = class _DeesInputRadiogroup extends (_a13 = DeesInputB
|
|
|
5404
5428
|
return b`
|
|
5405
5429
|
<div
|
|
5406
5430
|
class="radio-option ${isSelected ? "selected" : ""} ${optionDescription ? "described" : ""}"
|
|
5431
|
+
@mousedown="${(e2) => this.focusPressedOption(e2, optionKey)}"
|
|
5407
5432
|
@click="${() => this.selectOption(optionKey)}"
|
|
5408
5433
|
@keydown="${(e2) => this.handleKeydown(e2, optionKey)}"
|
|
5409
5434
|
>
|
|
@@ -5492,6 +5517,20 @@ var _DeesInputRadiogroup = class _DeesInputRadiogroup extends (_a13 = DeesInputB
|
|
|
5492
5517
|
this.selectedOption = this.getOptionKey(firstOption);
|
|
5493
5518
|
}
|
|
5494
5519
|
}
|
|
5520
|
+
/**
|
|
5521
|
+
* A press on an option, on its circle, label or description, focuses that
|
|
5522
|
+
* option's circle without scrolling. Left to the browser, a press on the
|
|
5523
|
+
* label or the description would go to the group's tab stop (the input
|
|
5524
|
+
* delegates focus, `dees-input-base`), and in a scrolled container that
|
|
5525
|
+
* scrolls the tab stop into view: the pressed option moves away before the
|
|
5526
|
+
* release, and the click lands beside it.
|
|
5527
|
+
*/
|
|
5528
|
+
focusPressedOption(event, optionKey) {
|
|
5529
|
+
if (this.disabled) return;
|
|
5530
|
+
event.preventDefault();
|
|
5531
|
+
const keys = this.options.map((option) => this.getOptionKey(option));
|
|
5532
|
+
this.shadowRoot.querySelectorAll(".radio-circle")[keys.indexOf(optionKey)]?.focus({ preventScroll: true });
|
|
5533
|
+
}
|
|
5495
5534
|
handleKeydown(event, optionKey) {
|
|
5496
5535
|
if (this.disabled) return;
|
|
5497
5536
|
if (event.key === " ") {
|
|
@@ -64829,6 +64868,10 @@ var _DeesAppui = class _DeesAppui extends (_a86 = DeesElement, _appbarMenuItems_
|
|
|
64829
64868
|
__publicField(this, "latestNavigationRequest", 0);
|
|
64830
64869
|
__publicField(this, "historyOwner", "");
|
|
64831
64870
|
__publicField(this, "historyIndex", 0);
|
|
64871
|
+
/** Numbers the history entries this shell writes, so an entry it pushes can name the one it was pushed from. */
|
|
64872
|
+
__publicField(this, "historyEntries", 0);
|
|
64873
|
+
/** The location each history entry this shell wrote shows, by the entry's number: what a return finds before it (`returnsBack`). */
|
|
64874
|
+
__publicField(this, "historyEntryLocations", /* @__PURE__ */ new Map());
|
|
64832
64875
|
/** The traversal back a refused browser change started, to `location`; the next change of any address ends it. */
|
|
64833
64876
|
__publicField(this, "restoringHistory");
|
|
64834
64877
|
/** A storage operation failed: the host hears it once, and the shell goes on without it. */
|
|
@@ -66096,10 +66139,12 @@ var _DeesAppui = class _DeesAppui extends (_a86 = DeesElement, _appbarMenuItems_
|
|
|
66096
66139
|
* Navigate to a registered view. The URL follows an accepted activation, and
|
|
66097
66140
|
* `options.history` decides whether that leaves a step behind: `push` (the
|
|
66098
66141
|
* default) adds a history entry, `replace` rewrites the current one, which is
|
|
66099
|
-
* what a screen correcting its own route needs
|
|
66142
|
+
* what a screen correcting its own route needs, and `return` goes back to the
|
|
66143
|
+
* screen a step was taken from, where the entry before the current one shows
|
|
66144
|
+
* it, and replaces the current entry elsewhere.
|
|
66100
66145
|
*/
|
|
66101
66146
|
navigateToView(viewId, params = {}, query2 = {}, options) {
|
|
66102
|
-
const mode = options?.history === "replace"
|
|
66147
|
+
const mode = options?.history === "replace" || options?.history === "return" ? options.history : "push";
|
|
66103
66148
|
return this.queueNavigation(viewId, { ...params }, { ...query2 }, mode, mode === "replace" ? "system" : "reader");
|
|
66104
66149
|
}
|
|
66105
66150
|
queueNavigation(viewId, params, query2, mode, intent, index, traversalLocation) {
|
|
@@ -66139,8 +66184,8 @@ var _DeesAppui = class _DeesAppui extends (_a86 = DeesElement, _appbarMenuItems_
|
|
|
66139
66184
|
this.markViewInMainMenu(viewId);
|
|
66140
66185
|
if (mode !== "push") {
|
|
66141
66186
|
this.historyIndex = index ?? this.historyIndex;
|
|
66142
|
-
if (mode === "replace" || this.addressing.currentLocation() === traversalLocation)
|
|
66143
|
-
window.history.replaceState(this.routeHistoryState(), "", this.addressing.entryLocation(location));
|
|
66187
|
+
if (mode === "replace" || mode === "return" || this.addressing.currentLocation() === traversalLocation)
|
|
66188
|
+
window.history.replaceState(this.routeHistoryState(location), "", this.addressing.entryLocation(location));
|
|
66144
66189
|
}
|
|
66145
66190
|
return true;
|
|
66146
66191
|
}
|
|
@@ -66185,11 +66230,13 @@ var _DeesAppui = class _DeesAppui extends (_a86 = DeesElement, _appbarMenuItems_
|
|
|
66185
66230
|
}
|
|
66186
66231
|
if (mode === "push") {
|
|
66187
66232
|
this.historyIndex++;
|
|
66188
|
-
window.history.pushState(this.routeHistoryState(), "", location);
|
|
66233
|
+
window.history.pushState(this.routeHistoryState(location, true), "", location);
|
|
66234
|
+
} else if (mode === "return" && this.returnsBack(location)) {
|
|
66235
|
+
await this.goBackTo(location);
|
|
66189
66236
|
} else {
|
|
66190
66237
|
if (index !== void 0) this.historyIndex = index;
|
|
66191
|
-
if (mode === "replace" || this.addressing.currentLocation() === traversalLocation) {
|
|
66192
|
-
window.history.replaceState(this.routeHistoryState(), "", this.addressing.entryLocation(location));
|
|
66238
|
+
if (mode === "replace" || mode === "return" || this.addressing.currentLocation() === traversalLocation) {
|
|
66239
|
+
window.history.replaceState(this.routeHistoryState(location), "", this.addressing.entryLocation(location));
|
|
66193
66240
|
}
|
|
66194
66241
|
}
|
|
66195
66242
|
return true;
|
|
@@ -66230,13 +66277,14 @@ var _DeesAppui = class _DeesAppui extends (_a86 = DeesElement, _appbarMenuItems_
|
|
|
66230
66277
|
* Ask again for the screen that failed to load, as the reader who pressed
|
|
66231
66278
|
* Retry: the same view, parameters and query. History is written the way the
|
|
66232
66279
|
* failed request would have left it: onto the current entry for a replace, or
|
|
66233
|
-
* while the address still shows the attempted route;
|
|
66234
|
-
*
|
|
66280
|
+
* while the address still shows the attempted route; back to the entry before
|
|
66281
|
+
* for a return that may still go there; as a new entry otherwise, which is
|
|
66282
|
+
* also where a rolled-back traversal left the reader.
|
|
66235
66283
|
*/
|
|
66236
66284
|
retryFailedNavigation() {
|
|
66237
66285
|
const failed = this.failedNavigation;
|
|
66238
66286
|
if (!failed) return;
|
|
66239
|
-
const mode = failed.mode === "replace" || this.addressing.currentLocation() === failed.location ? "replace" : "push";
|
|
66287
|
+
const mode = failed.mode === "replace" || this.addressing.currentLocation() === failed.location ? "replace" : failed.mode === "return" ? "return" : "push";
|
|
66240
66288
|
void this.queueNavigation(failed.view.id, failed.params, failed.query, mode, "reader");
|
|
66241
66289
|
}
|
|
66242
66290
|
/**
|
|
@@ -66260,24 +66308,67 @@ var _DeesAppui = class _DeesAppui extends (_a86 = DeesElement, _appbarMenuItems_
|
|
|
66260
66308
|
i18n: this.t.i18n
|
|
66261
66309
|
});
|
|
66262
66310
|
}
|
|
66263
|
-
|
|
66264
|
-
|
|
66311
|
+
/**
|
|
66312
|
+
* The state of a history entry the shell writes, showing a location: where the
|
|
66313
|
+
* entry stands (`historyIndex`) and a number of its own. An entry pushed also
|
|
66314
|
+
* names the entry it was pushed from, the one right before it; one rewritten
|
|
66315
|
+
* keeps its number and the entry before it. The location an entry shows is
|
|
66316
|
+
* kept by its number, so a return can tell what the entry before shows
|
|
66317
|
+
* (`returnsBack`).
|
|
66318
|
+
*/
|
|
66319
|
+
routeHistoryState(locationArg, pushedArg = false) {
|
|
66320
|
+
const current = this.historyMarker();
|
|
66321
|
+
const entry = pushedArg || !current ? ++this.historyEntries : current.entry;
|
|
66322
|
+
const previous = pushedArg ? current?.entry : current?.previous;
|
|
66323
|
+
if (locationArg !== void 0) this.historyEntryLocations.set(entry, locationArg);
|
|
66324
|
+
const marker = { owner: this.historyOwner, index: this.historyIndex, entry, previous };
|
|
66325
|
+
return { ...window.history.state, deesAppui: marker };
|
|
66326
|
+
}
|
|
66327
|
+
/** This shell's marker on the entry the browser stands on; absent on an entry this shell never wrote. */
|
|
66328
|
+
historyMarker() {
|
|
66329
|
+
const marker = window.history.state?.deesAppui;
|
|
66330
|
+
return marker?.owner === this.historyOwner ? marker : void 0;
|
|
66265
66331
|
}
|
|
66266
66332
|
/**
|
|
66267
66333
|
* Where the browser's session history stands right now: the location it shows and
|
|
66268
66334
|
* this shell's marker on the entry, absent on an entry this shell never wrote.
|
|
66269
66335
|
*/
|
|
66270
66336
|
browserPosition() {
|
|
66271
|
-
const marker = window.history.state?.deesAppui;
|
|
66272
66337
|
return {
|
|
66273
66338
|
location: this.addressing.currentLocation(),
|
|
66274
|
-
index:
|
|
66339
|
+
index: this.historyMarker()?.index
|
|
66275
66340
|
};
|
|
66276
66341
|
}
|
|
66277
66342
|
hasBrowserMoved(positionArg) {
|
|
66278
66343
|
const current = this.browserPosition();
|
|
66279
66344
|
return current.location !== positionArg.location || current.index !== positionArg.index;
|
|
66280
66345
|
}
|
|
66346
|
+
/**
|
|
66347
|
+
* Whether a return to a location goes back: the browser stands where this
|
|
66348
|
+
* shell is, on an entry it pushed, and the entry that one was pushed from —
|
|
66349
|
+
* the one right before it — still shows the location. An entry the shell did
|
|
66350
|
+
* not push from one of its own, such as the first one after a reload or a deep
|
|
66351
|
+
* link into a flow, has no entry before it the shell knows, so a return from it
|
|
66352
|
+
* replaces. So does one whose address shows the location already: going back
|
|
66353
|
+
* from it would change no address, and no change would say it landed.
|
|
66354
|
+
*/
|
|
66355
|
+
returnsBack(locationArg) {
|
|
66356
|
+
const marker = this.historyMarker();
|
|
66357
|
+
return marker?.index === this.historyIndex && marker.previous !== void 0 && this.historyEntryLocations.get(marker.previous) === locationArg && this.addressing.currentLocation() !== locationArg;
|
|
66358
|
+
}
|
|
66359
|
+
/**
|
|
66360
|
+
* Goes back one entry, to the location of the screen already on show, and
|
|
66361
|
+
* waits until the browser stands there, so no request writes history from
|
|
66362
|
+
* the entry it leaves. The change the browser brings finds that location
|
|
66363
|
+
* and is not taken as a move of the reader's (`restoringHistory`).
|
|
66364
|
+
*/
|
|
66365
|
+
goBackTo(locationArg) {
|
|
66366
|
+
this.historyIndex--;
|
|
66367
|
+
return new Promise((resolve) => {
|
|
66368
|
+
this.restoringHistory = { location: locationArg, resolve };
|
|
66369
|
+
window.history.back();
|
|
66370
|
+
});
|
|
66371
|
+
}
|
|
66281
66372
|
/**
|
|
66282
66373
|
* Get the current view
|
|
66283
66374
|
*/
|
|
@@ -66446,6 +66537,7 @@ var _DeesAppui = class _DeesAppui extends (_a86 = DeesElement, _appbarMenuItems_
|
|
|
66446
66537
|
this.failedNavigation = void 0;
|
|
66447
66538
|
this.historyOwner = `${Date.now()}-${Math.random()}`;
|
|
66448
66539
|
this.historyIndex = 0;
|
|
66540
|
+
this.historyEntryLocations.clear();
|
|
66449
66541
|
}
|
|
66450
66542
|
/** Follow the address: mark the entry the shell stands on, listen for its changes, show the first screen. */
|
|
66451
66543
|
startRouting() {
|
|
@@ -66533,8 +66625,7 @@ var _DeesAppui = class _DeesAppui extends (_a86 = DeesElement, _appbarMenuItems_
|
|
|
66533
66625
|
if (location !== addressing.currentLocation()) return;
|
|
66534
66626
|
const route = addressing.routeOf(new URL(window.location.href));
|
|
66535
66627
|
if (route === void 0) return;
|
|
66536
|
-
const
|
|
66537
|
-
const index = marker?.owner === this.historyOwner ? marker.index : this.historyIndex + 1;
|
|
66628
|
+
const index = this.historyMarker()?.index ?? this.historyIndex + 1;
|
|
66538
66629
|
if (location === this.activeLocation) {
|
|
66539
66630
|
this.historyIndex = index;
|
|
66540
66631
|
return;
|
|
@@ -66551,7 +66642,7 @@ var _DeesAppui = class _DeesAppui extends (_a86 = DeesElement, _appbarMenuItems_
|
|
|
66551
66642
|
this.restoringHistory = { location: this.activeLocation, resolve };
|
|
66552
66643
|
window.history.go(distance);
|
|
66553
66644
|
});
|
|
66554
|
-
} else window.history.replaceState(this.routeHistoryState(), "", this.addressing.entryLocation(this.activeLocation));
|
|
66645
|
+
} else window.history.replaceState(this.routeHistoryState(this.activeLocation), "", this.addressing.entryLocation(this.activeLocation));
|
|
66555
66646
|
return false;
|
|
66556
66647
|
});
|
|
66557
66648
|
this.navigationQueue = restore;
|
|
@@ -73133,7 +73224,7 @@ var _DeesHarnessConversationPicker = class _DeesHarnessConversationPicker extend
|
|
|
73133
73224
|
* cancelled. Focus returns to whatever had it when the picker opened.
|
|
73134
73225
|
*/
|
|
73135
73226
|
static async pick(optionsArg = {}) {
|
|
73136
|
-
const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-
|
|
73227
|
+
const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-VOIWY235.js");
|
|
73137
73228
|
const picker = new _DeesHarnessConversationPicker();
|
|
73138
73229
|
picker.sessions = optionsArg.sessions ?? [];
|
|
73139
73230
|
picker.groups = optionsArg.groups ?? [];
|
|
@@ -73594,7 +73685,7 @@ var handleResourceContext = /* @__PURE__ */ __name(async (event) => {
|
|
|
73594
73685
|
list.selectedResourceId = event.detail.resource.id;
|
|
73595
73686
|
}, "handleResourceContext");
|
|
73596
73687
|
var openModal = /* @__PURE__ */ __name(async (sessions, groups) => {
|
|
73597
|
-
const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-
|
|
73688
|
+
const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-VOIWY235.js");
|
|
73598
73689
|
const content = document.createElement("dees-harness-session-list");
|
|
73599
73690
|
content.sessions = sessions;
|
|
73600
73691
|
content.groups = groups;
|
|
@@ -86637,7 +86728,7 @@ __runInitializers(_init120, 1, _DeesSparklebox);
|
|
|
86637
86728
|
var DeesSparklebox = _DeesSparklebox;
|
|
86638
86729
|
|
|
86639
86730
|
// ts_web/elements/00group-layout/dees-stepper/dees-stepper.demo.ts
|
|
86640
|
-
var _DeesDemoStepperWorkspace_decorators, _init121, _a119, _result_dec, _closed_dec2, _card_dec, _layout_dec2, _width_dec, _scenario_dec3, _b4, _DeesDemoStepper_decorators, _init122, _scenario3, _width, _layout2, _card, _closed2, _result;
|
|
86731
|
+
var _DeesDemoStepperWorkspace_decorators, _init121, _a119, _result_dec, _closed_dec2, _language_dec5, _card_dec, _layout_dec2, _width_dec, _scenario_dec3, _b4, _DeesDemoStepper_decorators, _init122, _scenario3, _width, _layout2, _card, _language5, _closed2, _result;
|
|
86641
86732
|
var waitForProgressTick = /* @__PURE__ */ __name((duration, signal) => new Promise((resolve) => {
|
|
86642
86733
|
if (signal?.aborted) {
|
|
86643
86734
|
resolve(false);
|
|
@@ -86904,21 +86995,64 @@ var createChoiceSteps = /* @__PURE__ */ __name((finish) => {
|
|
|
86904
86995
|
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");
|
|
86905
86996
|
return { steps: [choose, ...flows.manual], beforeClose };
|
|
86906
86997
|
}, "createChoiceSteps");
|
|
86998
|
+
var defineRecordWords = /* @__PURE__ */ __name(() => {
|
|
86999
|
+
const catalog = dist_ts_exports.defineCatalog({
|
|
87000
|
+
namespace: "@design.estate/dees-catalog/demo-stepper",
|
|
87001
|
+
source: "en",
|
|
87002
|
+
messages: {
|
|
87003
|
+
"record.yearClosed": {
|
|
87004
|
+
message: "The books of {year} are closed, so no change can start in that year. Record it again to start it in the open year.",
|
|
87005
|
+
description: "Why a change cannot start on the day chosen; {year} is a closed year."
|
|
87006
|
+
}
|
|
87007
|
+
}
|
|
87008
|
+
});
|
|
87009
|
+
catalog.addTranslation(catalog.translation("de", {
|
|
87010
|
+
"record.yearClosed": "Die B\xFCcher f\xFCr {year} sind abgeschlossen, in diesem Jahr kann keine \xC4nderung beginnen. Erfassen Sie sie erneut, um sie im offenen Jahr beginnen zu lassen."
|
|
87011
|
+
}));
|
|
87012
|
+
return catalog;
|
|
87013
|
+
}, "defineRecordWords");
|
|
87014
|
+
var demoRecordWords;
|
|
87015
|
+
var createOneStep = /* @__PURE__ */ __name((finish, refuse) => {
|
|
87016
|
+
let attempts = 0;
|
|
87017
|
+
return [{
|
|
87018
|
+
title: "Record a change.",
|
|
87019
|
+
description: "One fact, from the day it holds. Nothing is recorded until you choose Record.",
|
|
87020
|
+
content: b`<dees-form>
|
|
87021
|
+
<dees-input-radiogroup key="fact" aria-label="Which fact holds from a day on?" selectedOption="small_business" .options=${[
|
|
87022
|
+
{ key: "small_business", option: "Small business rule", description: "No VAT is charged on sales from this day on." },
|
|
87023
|
+
{ key: "cash_basis", option: "Cash basis", description: "Income and expenses count on the day they are paid." },
|
|
87024
|
+
{ key: "business_start", option: "Business start", description: "The day the business began." }
|
|
87025
|
+
]}></dees-input-radiogroup>
|
|
87026
|
+
</dees-form>`,
|
|
87027
|
+
menuOptions: [{ name: "Record", action: /* @__PURE__ */ __name(async (stepper) => {
|
|
87028
|
+
attempts++;
|
|
87029
|
+
if (attempts === 1) throw refuse();
|
|
87030
|
+
finish("The change");
|
|
87031
|
+
await stepper?.destroy();
|
|
87032
|
+
}, "action") }]
|
|
87033
|
+
}];
|
|
87034
|
+
}, "createOneStep");
|
|
87035
|
+
var languages3 = [{ key: "en", label: "English" }, { key: "de", label: "Deutsch" }];
|
|
86907
87036
|
_DeesDemoStepper_decorators = [customElement("dees-demo-stepper")];
|
|
86908
|
-
var _DeesDemoStepper = class _DeesDemoStepper extends (_b4 = DeesElement, _scenario_dec3 = [n()], _width_dec = [n()], _layout_dec2 = [n()], _card_dec = [n()], _closed_dec2 = [r2()], _result_dec = [r2()], _b4) {
|
|
87037
|
+
var _DeesDemoStepper = class _DeesDemoStepper extends (_b4 = DeesElement, _scenario_dec3 = [n()], _width_dec = [n()], _layout_dec2 = [n()], _card_dec = [n()], _language_dec5 = [r2()], _closed_dec2 = [r2()], _result_dec = [r2()], _b4) {
|
|
86909
87038
|
constructor() {
|
|
86910
|
-
super(
|
|
87039
|
+
super();
|
|
86911
87040
|
__privateAdd(this, _scenario3, __runInitializers(_init122, 8, this, "Standard setup")), __runInitializers(_init122, 11, this);
|
|
86912
87041
|
__privateAdd(this, _width, __runInitializers(_init122, 12, this, "Wide")), __runInitializers(_init122, 15, this);
|
|
86913
87042
|
__privateAdd(this, _layout2, __runInitializers(_init122, 16, this, "Auto")), __runInitializers(_init122, 19, this);
|
|
86914
87043
|
__privateAdd(this, _card, __runInitializers(_init122, 20, this, "Top")), __runInitializers(_init122, 23, this);
|
|
86915
|
-
__privateAdd(this,
|
|
86916
|
-
__privateAdd(this,
|
|
87044
|
+
__privateAdd(this, _language5, __runInitializers(_init122, 24, this, "English")), __runInitializers(_init122, 27, this);
|
|
87045
|
+
__privateAdd(this, _closed2, __runInitializers(_init122, 28, this, false)), __runInitializers(_init122, 31, this);
|
|
87046
|
+
__privateAdd(this, _result, __runInitializers(_init122, 32, this, "")), __runInitializers(_init122, 35, this);
|
|
86917
87047
|
__publicField(this, "steps", createDemoSteps(false, (name) => {
|
|
86918
87048
|
this.result = `${name} is ready.`;
|
|
86919
87049
|
}));
|
|
86920
87050
|
__publicField(this, "beforeClose");
|
|
86921
87051
|
__publicField(this, "overlayStepper");
|
|
87052
|
+
/** The language the demo's steppers speak, apart from the page's: their own words follow it, the sample's stay English. */
|
|
87053
|
+
__publicField(this, "i18n", dist_ts_exports.createI18n({ locale: "en", locales: ["en", "de"] }));
|
|
87054
|
+
__publicField(this, "recordWords", demoRecordWords ??= defineRecordWords());
|
|
87055
|
+
provideI18n(this, this.i18n);
|
|
86922
87056
|
}
|
|
86923
87057
|
reset() {
|
|
86924
87058
|
this.result = "";
|
|
@@ -86927,7 +87061,10 @@ var _DeesDemoStepper = class _DeesDemoStepper extends (_b4 = DeesElement, _scena
|
|
|
86927
87061
|
this.result = `${name} was added.`;
|
|
86928
87062
|
}) : null;
|
|
86929
87063
|
this.beforeClose = choice?.beforeClose;
|
|
86930
|
-
|
|
87064
|
+
const words = this.i18n.bind(this.recordWords);
|
|
87065
|
+
this.steps = this.scenario === "One step" ? createOneStep((name) => {
|
|
87066
|
+
this.result = `${name} was recorded.`;
|
|
87067
|
+
}, () => new dist_ts_exports.LocalizedError(words, "record.yearClosed", { year: "2025" })) : this.scenario === "Lookup" ? createLookupSteps((name) => {
|
|
86931
87068
|
this.result = `${name} was added.`;
|
|
86932
87069
|
}) : choice ? choice.steps : this.scenario === "Long flow" ? createLongSteps((name) => {
|
|
86933
87070
|
this.result = `${name} is complete.`;
|
|
@@ -86940,6 +87077,7 @@ var _DeesDemoStepper = class _DeesDemoStepper extends (_b4 = DeesElement, _scena
|
|
|
86940
87077
|
if (this.overlayStepper?.isConnected) return;
|
|
86941
87078
|
this.overlayStepper = await DeesStepper.createAndShow({
|
|
86942
87079
|
cancelable,
|
|
87080
|
+
i18n: this.i18n,
|
|
86943
87081
|
layout: this.stepperLayout(),
|
|
86944
87082
|
cardAlign: this.stepperAlign(),
|
|
86945
87083
|
steps: createDemoSteps(this.scenario === "Retry example", (name) => {
|
|
@@ -86953,10 +87091,14 @@ var _DeesDemoStepper = class _DeesDemoStepper extends (_b4 = DeesElement, _scena
|
|
|
86953
87091
|
stepperAlign() {
|
|
86954
87092
|
return this.card === "Centred" ? "center" : "start";
|
|
86955
87093
|
}
|
|
87094
|
+
async setLanguage(label) {
|
|
87095
|
+
const locale = languages3.find((language) => language.label === label)?.key ?? "en";
|
|
87096
|
+
if (await this.i18n.setLocale(locale)) this.language = label;
|
|
87097
|
+
}
|
|
86956
87098
|
render() {
|
|
86957
87099
|
return b`<div class="toolbar">
|
|
86958
87100
|
<dees-input-multitoggle size="sm" label="Demo scenario" labelPosition="none"
|
|
86959
|
-
.options=${["Standard setup", "Retry example", "Component step", "Lookup", "Choice first", "Long flow"]} .selectedOption=${this.scenario}
|
|
87101
|
+
.options=${["Standard setup", "Retry example", "Component step", "Lookup", "Choice first", "Long flow", "One step"]} .selectedOption=${this.scenario}
|
|
86960
87102
|
@change=${(event) => {
|
|
86961
87103
|
this.scenario = event.detail.value;
|
|
86962
87104
|
this.reset();
|
|
@@ -86975,6 +87117,11 @@ var _DeesDemoStepper = class _DeesDemoStepper extends (_b4 = DeesElement, _scena
|
|
|
86975
87117
|
.options=${["Top", "Centred"]} .selectedOption=${this.card}
|
|
86976
87118
|
@change=${(event) => {
|
|
86977
87119
|
this.card = event.detail.value;
|
|
87120
|
+
}}></dees-input-multitoggle>
|
|
87121
|
+
<dees-input-multitoggle size="sm" label="Demo language" labelPosition="none"
|
|
87122
|
+
.options=${languages3.map((language) => language.label)} .selectedOption=${this.language}
|
|
87123
|
+
@change=${(event) => {
|
|
87124
|
+
void this.setLanguage(event.detail.value);
|
|
86978
87125
|
}}></dees-input-multitoggle>
|
|
86979
87126
|
<div class="actions"><dees-button type="secondary" text="Open overlay" @clicked=${() => this.openOverlay()}></dees-button>
|
|
86980
87127
|
<dees-button type="ghost" text="Reset" @clicked=${this.reset}></dees-button></div>
|
|
@@ -86983,10 +87130,10 @@ var _DeesDemoStepper = class _DeesDemoStepper extends (_b4 = DeesElement, _scena
|
|
|
86983
87130
|
<dees-icon icon=${this.result ? "lucide:CircleCheck" : "lucide:Layers"} iconSize="32"></dees-icon>
|
|
86984
87131
|
<h2>${this.result || "Setup cancelled."}</h2><p>This example uses local sample data.</p>
|
|
86985
87132
|
<dees-button type="secondary" text="Start again" @clicked=${this.reset}></dees-button>
|
|
86986
|
-
</div>` : b`<dees-stepper .steps=${this.steps} .layout=${this.stepperLayout()} .cardAlign=${this.stepperAlign()} .stepCounter=${this.scenario === "Lookup" ? "position" : "total"} .beforeClose=${this.beforeClose} @stepper-close=${() => {
|
|
87133
|
+
</div>` : b`<dees-stepper .steps=${this.steps} .layout=${this.stepperLayout()} .cardAlign=${this.stepperAlign()} .stepCounter=${this.scenario === "Lookup" ? "position" : "total"} .ribbon=${this.scenario === "One step" ? "auto" : "always"} .beforeClose=${this.beforeClose} @stepper-close=${() => {
|
|
86987
87134
|
this.closed = true;
|
|
86988
87135
|
}}></dees-stepper>`}</div>
|
|
86989
|
-
<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 === "Component step" ? "The first step is a component that draws its form in its own shadow root, as an app's step often is. Its required fields still hold Continue, a field that refuses its value says why and takes the focus, and Enter in the last field goes on." : 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>
|
|
87136
|
+
<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 === "Component step" ? "The first step is a component that draws its form in its own shadow root, as an app's step often is. Its required fields still hold Continue, a field that refuses its value says why and takes the focus, and Enter in the last field goes on." : 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." : this.scenario === "One step" ? `A flow of one step is its card alone: no ribbon and no "1 of 1", and the card stands in the middle. Record is refused once, in the host's own words; switch the language and the refusal follows it. Record again to finish.` : "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>
|
|
86990
87137
|
<details><summary class="caption">Completion required</summary>
|
|
86991
87138
|
<p class="caption">For a flow that must finish, such as a required update, cancellation can be disabled.</p>
|
|
86992
87139
|
<dees-button type="secondary" text="Open required setup" @clicked=${() => this.openOverlay(false)}></dees-button>
|
|
@@ -87002,12 +87149,14 @@ _scenario3 = new WeakMap();
|
|
|
87002
87149
|
_width = new WeakMap();
|
|
87003
87150
|
_layout2 = new WeakMap();
|
|
87004
87151
|
_card = new WeakMap();
|
|
87152
|
+
_language5 = new WeakMap();
|
|
87005
87153
|
_closed2 = new WeakMap();
|
|
87006
87154
|
_result = new WeakMap();
|
|
87007
87155
|
__decorateElement(_init122, 4, "scenario", _scenario_dec3, _DeesDemoStepper, _scenario3);
|
|
87008
87156
|
__decorateElement(_init122, 4, "width", _width_dec, _DeesDemoStepper, _width);
|
|
87009
87157
|
__decorateElement(_init122, 4, "layout", _layout_dec2, _DeesDemoStepper, _layout2);
|
|
87010
87158
|
__decorateElement(_init122, 4, "card", _card_dec, _DeesDemoStepper, _card);
|
|
87159
|
+
__decorateElement(_init122, 4, "language", _language_dec5, _DeesDemoStepper, _language5);
|
|
87011
87160
|
__decorateElement(_init122, 4, "closed", _closed_dec2, _DeesDemoStepper, _closed2);
|
|
87012
87161
|
__decorateElement(_init122, 4, "result", _result_dec, _DeesDemoStepper, _result);
|
|
87013
87162
|
_DeesDemoStepper = __decorateElement(_init122, 0, "DeesDemoStepper", _DeesDemoStepper_decorators, _DeesDemoStepper);
|
|
@@ -87113,6 +87262,22 @@ var centredStrip = i`
|
|
|
87113
87262
|
& dees-tile.step.selected { grid-row: 3; }
|
|
87114
87263
|
& dees-tile.step:not(.selected) { margin-block-start: calc(var(--stepper-rail) + var(--dees-spacing-md)); }
|
|
87115
87264
|
`;
|
|
87265
|
+
var verticalAlone = i`
|
|
87266
|
+
grid-template-rows: minmax(0, 1fr);
|
|
87267
|
+
row-gap: 0;
|
|
87268
|
+
& .stage { grid-row: 1; }
|
|
87269
|
+
`;
|
|
87270
|
+
var centredAlone = i`
|
|
87271
|
+
--stepper-card-max: calc(100cqh - var(--dees-spacing-md) * 2);
|
|
87272
|
+
grid-template-rows:
|
|
87273
|
+
minmax(0, 1fr)
|
|
87274
|
+
minmax(min(var(--stepper-step-min-height), var(--stepper-card-max)), auto)
|
|
87275
|
+
minmax(0, 1fr);
|
|
87276
|
+
row-gap: 0;
|
|
87277
|
+
& .stage { grid-row: 1 / -1; }
|
|
87278
|
+
& dees-tile.step.selected { grid-row: 2; }
|
|
87279
|
+
& dees-tile.step:not(.selected) { margin-block-start: 0; }
|
|
87280
|
+
`;
|
|
87116
87281
|
var stepperStyles = i`
|
|
87117
87282
|
:host {
|
|
87118
87283
|
--stepper-motion-duration: var(--dees-transition-slow);
|
|
@@ -87469,13 +87634,18 @@ var stepperStyles = i`
|
|
|
87469
87634
|
.predestroy .step.selected, .predestroy .progress { animation: none; }
|
|
87470
87635
|
}
|
|
87471
87636
|
|
|
87472
|
-
/* --- The centred card; the vertical layout, chosen or on a narrow surface in the automatic one --- */
|
|
87637
|
+
/* --- The centred card; the vertical layout, chosen or on a narrow surface in the automatic one; each without the ribbon --- */
|
|
87473
87638
|
.stepperSurface:where([data-align='center']) { ${centredCard} }
|
|
87639
|
+
.stepperSurface:where([data-ribbon='hidden'])::after { content: none; }
|
|
87474
87640
|
.stepperSurface:where([data-layout='vertical']) { ${verticalLayout} }
|
|
87641
|
+
.stepperSurface:where([data-layout='vertical'][data-ribbon='hidden']) { ${verticalAlone} }
|
|
87475
87642
|
.stepperSurface:where([data-layout='vertical'][data-align='center']) { ${centredStrip} }
|
|
87643
|
+
.stepperSurface:where([data-layout='vertical'][data-align='center'][data-ribbon='hidden']) { ${centredAlone} }
|
|
87476
87644
|
@container stepper-surface (max-width: 640px) {
|
|
87477
87645
|
.stepperSurface:where([data-layout='auto']) { ${verticalLayout} }
|
|
87646
|
+
.stepperSurface:where([data-layout='auto'][data-ribbon='hidden']) { ${verticalAlone} }
|
|
87478
87647
|
.stepperSurface:where([data-layout='auto'][data-align='center']) { ${centredStrip} }
|
|
87648
|
+
.stepperSurface:where([data-layout='auto'][data-align='center'][data-ribbon='hidden']) { ${centredAlone} }
|
|
87479
87649
|
/* a narrow surface, in any layout: a closer card, the hint on a row of its own */
|
|
87480
87650
|
.step-header { padding: var(--dees-spacing-md) var(--dees-spacing-lg); }
|
|
87481
87651
|
.step-body { padding: var(--dees-spacing-lg); }
|
|
@@ -87492,7 +87662,7 @@ var stepperStyles = i`
|
|
|
87492
87662
|
`;
|
|
87493
87663
|
|
|
87494
87664
|
// ts_web/elements/00group-layout/dees-stepper/dees-stepper.ts
|
|
87495
|
-
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, _a120, _DeesStepper_decorators, _init123, _steps, _selectedStep, _overlay, _cancelable, _beforeClose, _stepperZIndex, _stepCounter, _layout3, _cardAlign, _activeForm, _activeFormValid, _stepError, _progressRunning, _actionPending, _pendingAction, _narrow, _railFocus;
|
|
87665
|
+
var _railFocus_dec, _narrow_dec, _pendingAction_dec, _actionPending_dec, _progressRunning_dec, _stepError_dec, _activeFormValid_dec, _activeForm_dec, _ribbon_dec, _cardAlign_dec, _layout_dec3, _stepCounter_dec, _stepperZIndex_dec, _beforeClose_dec, _cancelable_dec, _overlay_dec, _selectedStep_dec, _steps_dec, _a120, _DeesStepper_decorators, _init123, _steps, _selectedStep, _overlay, _cancelable, _beforeClose, _stepperZIndex, _stepCounter, _layout3, _cardAlign, _ribbon, _activeForm, _activeFormValid, _stepError, _progressRunning, _actionPending, _pendingAction, _narrow, _railFocus;
|
|
87496
87666
|
var narrowSurfaceWidth = 640;
|
|
87497
87667
|
_DeesStepper_decorators = [customElement("dees-stepper")];
|
|
87498
87668
|
var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec = [n({
|
|
@@ -87505,7 +87675,7 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
|
|
|
87505
87675
|
})], _cancelable_dec = [n({
|
|
87506
87676
|
type: Boolean,
|
|
87507
87677
|
reflect: true
|
|
87508
|
-
})], _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()], _a120) {
|
|
87678
|
+
})], _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 })], _ribbon_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()], _a120) {
|
|
87509
87679
|
constructor() {
|
|
87510
87680
|
super();
|
|
87511
87681
|
__privateAdd(this, _steps, __runInitializers(_init123, 8, this, [])), __runInitializers(_init123, 11, this);
|
|
@@ -87517,16 +87687,17 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
|
|
|
87517
87687
|
__privateAdd(this, _stepCounter, __runInitializers(_init123, 32, this, "total")), __runInitializers(_init123, 35, this);
|
|
87518
87688
|
__privateAdd(this, _layout3, __runInitializers(_init123, 36, this, "auto")), __runInitializers(_init123, 39, this);
|
|
87519
87689
|
__privateAdd(this, _cardAlign, __runInitializers(_init123, 40, this, "start")), __runInitializers(_init123, 43, this);
|
|
87520
|
-
__privateAdd(this,
|
|
87521
|
-
__privateAdd(this,
|
|
87690
|
+
__privateAdd(this, _ribbon, __runInitializers(_init123, 44, this, "always")), __runInitializers(_init123, 47, this);
|
|
87691
|
+
__privateAdd(this, _activeForm, __runInitializers(_init123, 48, this, null)), __runInitializers(_init123, 51, this);
|
|
87692
|
+
__privateAdd(this, _activeFormValid, __runInitializers(_init123, 52, this, true)), __runInitializers(_init123, 55, this);
|
|
87522
87693
|
__publicField(this, "activeFormSubscription");
|
|
87523
87694
|
__publicField(this, "t", dcLocalize(this));
|
|
87524
|
-
__privateAdd(this, _stepError, __runInitializers(_init123,
|
|
87525
|
-
__privateAdd(this, _progressRunning, __runInitializers(_init123,
|
|
87526
|
-
__privateAdd(this, _actionPending, __runInitializers(_init123,
|
|
87527
|
-
__privateAdd(this, _pendingAction, __runInitializers(_init123,
|
|
87528
|
-
__privateAdd(this, _narrow, __runInitializers(_init123,
|
|
87529
|
-
__privateAdd(this, _railFocus, __runInitializers(_init123,
|
|
87695
|
+
__privateAdd(this, _stepError, __runInitializers(_init123, 56, this, null)), __runInitializers(_init123, 59, this);
|
|
87696
|
+
__privateAdd(this, _progressRunning, __runInitializers(_init123, 60, this, false)), __runInitializers(_init123, 63, this);
|
|
87697
|
+
__privateAdd(this, _actionPending, __runInitializers(_init123, 64, this, false)), __runInitializers(_init123, 67, this);
|
|
87698
|
+
__privateAdd(this, _pendingAction, __runInitializers(_init123, 68, this, null)), __runInitializers(_init123, 71, this);
|
|
87699
|
+
__privateAdd(this, _narrow, __runInitializers(_init123, 72, this, false)), __runInitializers(_init123, 75, this);
|
|
87700
|
+
__privateAdd(this, _railFocus, __runInitializers(_init123, 76, this, -1)), __runInitializers(_init123, 79, this);
|
|
87530
87701
|
__publicField(this, "resizeObserver");
|
|
87531
87702
|
/**
|
|
87532
87703
|
* The steps whose tiles are still leaving the stage: each stays until its
|
|
@@ -87595,6 +87766,7 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
|
|
|
87595
87766
|
if (optionsArg.stepCounter !== void 0) stepper.stepCounter = optionsArg.stepCounter;
|
|
87596
87767
|
if (optionsArg.layout !== void 0) stepper.layout = optionsArg.layout;
|
|
87597
87768
|
if (optionsArg.cardAlign !== void 0) stepper.cardAlign = optionsArg.cardAlign;
|
|
87769
|
+
if (optionsArg.ribbon !== void 0) stepper.ribbon = optionsArg.ribbon;
|
|
87598
87770
|
if (optionsArg.beforeClose) stepper.beforeClose = optionsArg.beforeClose;
|
|
87599
87771
|
body.append(stepper);
|
|
87600
87772
|
stepper.stepperZIndex = zIndexRegistry.getNextZIndex();
|
|
@@ -87614,9 +87786,10 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
|
|
|
87614
87786
|
if (!this.steps.length) return b`<div class="empty">${this.t("stepper.empty")}</div>`;
|
|
87615
87787
|
const selectedIndex = this.getIndexOfStep(this.selectedStep);
|
|
87616
87788
|
const backIcon = this.matches(":dir(rtl)") ? "lucide:ChevronRight" : "lucide:ChevronLeft";
|
|
87789
|
+
const ribbonShown = this.showsRibbon();
|
|
87617
87790
|
return b`<div class="stepperSurface" data-layout=${this.getLayout()} data-align=${this.cardAlign === "center" ? "center" : "start"}
|
|
87618
|
-
data-counter=${this.getCounterText()}>
|
|
87619
|
-
${this.renderRibbon()}
|
|
87791
|
+
data-ribbon=${ribbonShown ? "shown" : "hidden"} data-counter=${ribbonShown ? this.getCounterText() : ""}>
|
|
87792
|
+
${ribbonShown ? this.renderRibbon() : ""}
|
|
87620
87793
|
<div class="stage">
|
|
87621
87794
|
${directives_exports.repeat(this.steps.filter((step) => step === this.selectedStep || this.leavingSteps.has(step)), (step) => step, (stepArg) => {
|
|
87622
87795
|
const stepIndex = this.getIndexOfStep(stepArg);
|
|
@@ -87651,7 +87824,7 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
|
|
|
87651
87824
|
` : ""}
|
|
87652
87825
|
${this.stepContents.get(stepArg)?.host ?? ""}
|
|
87653
87826
|
${isSelected && this.stepError ? b`<div class="step-error" role="alert">
|
|
87654
|
-
<dees-icon icon="lucide:CircleAlert" iconSize="16"></dees-icon><span>${this.
|
|
87827
|
+
<dees-icon icon="lucide:CircleAlert" iconSize="16"></dees-icon><span>${this.getStepErrorText()}</span>
|
|
87655
87828
|
</div>` : ""}
|
|
87656
87829
|
</div>
|
|
87657
87830
|
<div slot="footer" class="step-footer">
|
|
@@ -87718,8 +87891,9 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
|
|
|
87718
87891
|
}
|
|
87719
87892
|
/**
|
|
87720
87893
|
* What the counter under the ribbon reads, empty without a counted step.
|
|
87721
|
-
*
|
|
87722
|
-
* takes beside the steps free on their other side
|
|
87894
|
+
* While the ribbon shows, the surface holds it as `data-counter` too: the
|
|
87895
|
+
* styles keep the room it takes beside the steps free on their other side
|
|
87896
|
+
* as well.
|
|
87723
87897
|
*/
|
|
87724
87898
|
getCounterText() {
|
|
87725
87899
|
const counted = this.steps.filter((step) => step.countsAsStep !== false);
|
|
@@ -87728,6 +87902,20 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
|
|
|
87728
87902
|
if (current < 0) return "";
|
|
87729
87903
|
return this.stepCounter === "position" ? this.t("stepper.counterPosition", { current: current + 1 }) : this.t("stepper.counter", { current: current + 1, total: counted.length });
|
|
87730
87904
|
}
|
|
87905
|
+
/** Whether the ribbon and its counter show: always, or under `ribbon: 'auto'` for two counted steps or more. */
|
|
87906
|
+
showsRibbon() {
|
|
87907
|
+
return this.ribbon !== "auto" || this.steps.filter((step) => step.countsAsStep !== false).length > 1;
|
|
87908
|
+
}
|
|
87909
|
+
/** The failure as it is kept: a thrown error, or the key of the stepper's own words for one that is no `Error`. */
|
|
87910
|
+
toStepFailure(error, key) {
|
|
87911
|
+
return error instanceof Error ? { error } : { key };
|
|
87912
|
+
}
|
|
87913
|
+
/** The current step's failure in words, read anew at every render: in the language the stepper speaks now. */
|
|
87914
|
+
getStepErrorText() {
|
|
87915
|
+
const failure = this.stepError;
|
|
87916
|
+
if (!failure) return "";
|
|
87917
|
+
return "error" in failure ? failure.error.message : this.t(failure.key);
|
|
87918
|
+
}
|
|
87731
87919
|
/**
|
|
87732
87920
|
* Arrow keys, Home and End move the focus along the ribbon's markers.
|
|
87733
87921
|
* ArrowUp and ArrowDown go to the step before and after; ArrowLeft and
|
|
@@ -87802,7 +87990,7 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
|
|
|
87802
87990
|
this.activeValidationStep?.abortController?.abort();
|
|
87803
87991
|
if (this.activeValidationStep) this.activeValidationStep.validationFuncCalled = false;
|
|
87804
87992
|
this.activeValidationStep = this.selectedStep;
|
|
87805
|
-
this.stepError =
|
|
87993
|
+
this.stepError = null;
|
|
87806
87994
|
this.progressRunning = false;
|
|
87807
87995
|
this.actionPending = false;
|
|
87808
87996
|
this.pendingAction = null;
|
|
@@ -87947,7 +88135,7 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
|
|
|
87947
88135
|
try {
|
|
87948
88136
|
await target.onReturnToStepFunc?.(this, this.shadowRoot.querySelector(".selected"));
|
|
87949
88137
|
} catch (error) {
|
|
87950
|
-
if (this.selectedStep === target) this.stepError =
|
|
88138
|
+
if (this.selectedStep === target) this.stepError = this.toStepFailure(error, "stepper.returnFailed");
|
|
87951
88139
|
}
|
|
87952
88140
|
}
|
|
87953
88141
|
}
|
|
@@ -88077,13 +88265,13 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
|
|
|
88077
88265
|
this.actionPending = true;
|
|
88078
88266
|
this.pendingAction = optionArg;
|
|
88079
88267
|
this.actionStep = step;
|
|
88080
|
-
this.stepError =
|
|
88268
|
+
this.stepError = null;
|
|
88081
88269
|
try {
|
|
88082
88270
|
if (isPrimary && form && !await form.gatherAndDispatch()) return;
|
|
88083
88271
|
if (!this.isConnected || step !== this.selectedStep) return;
|
|
88084
88272
|
await optionArg.action(this);
|
|
88085
88273
|
} catch (error) {
|
|
88086
|
-
if (step === this.selectedStep) this.stepError =
|
|
88274
|
+
if (step === this.selectedStep) this.stepError = this.toStepFailure(error, "stepper.actionFailed");
|
|
88087
88275
|
} finally {
|
|
88088
88276
|
if (this.actionStep === step) {
|
|
88089
88277
|
this.actionPending = false;
|
|
@@ -88146,8 +88334,8 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
|
|
|
88146
88334
|
if (signal.aborted || !this.isConnected || this.selectedStep !== stepArg) {
|
|
88147
88335
|
return;
|
|
88148
88336
|
}
|
|
88149
|
-
|
|
88150
|
-
|
|
88337
|
+
this.stepError = this.toStepFailure(error, "stepper.stepFailed");
|
|
88338
|
+
const errorText = this.getStepErrorText();
|
|
88151
88339
|
if (stepArg.progressStep) {
|
|
88152
88340
|
this.appendProgressStepLine(errorText, stepArg);
|
|
88153
88341
|
this.updateProgressStep(
|
|
@@ -88168,7 +88356,7 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
|
|
|
88168
88356
|
if (!step?.validationFunc || this.progressRunning || this.actionPending) return;
|
|
88169
88357
|
step.abortController?.abort();
|
|
88170
88358
|
step.validationFuncCalled = false;
|
|
88171
|
-
this.stepError =
|
|
88359
|
+
this.stepError = null;
|
|
88172
88360
|
this.prepareStepForActivation(step);
|
|
88173
88361
|
await this.activateSelectedStep();
|
|
88174
88362
|
}
|
|
@@ -88318,6 +88506,7 @@ _stepperZIndex = new WeakMap();
|
|
|
88318
88506
|
_stepCounter = new WeakMap();
|
|
88319
88507
|
_layout3 = new WeakMap();
|
|
88320
88508
|
_cardAlign = new WeakMap();
|
|
88509
|
+
_ribbon = new WeakMap();
|
|
88321
88510
|
_activeForm = new WeakMap();
|
|
88322
88511
|
_activeFormValid = new WeakMap();
|
|
88323
88512
|
_stepError = new WeakMap();
|
|
@@ -88335,6 +88524,7 @@ __decorateElement(_init123, 4, "stepperZIndex", _stepperZIndex_dec, _DeesStepper
|
|
|
88335
88524
|
__decorateElement(_init123, 4, "stepCounter", _stepCounter_dec, _DeesStepper, _stepCounter);
|
|
88336
88525
|
__decorateElement(_init123, 4, "layout", _layout_dec3, _DeesStepper, _layout3);
|
|
88337
88526
|
__decorateElement(_init123, 4, "cardAlign", _cardAlign_dec, _DeesStepper, _cardAlign);
|
|
88527
|
+
__decorateElement(_init123, 4, "ribbon", _ribbon_dec, _DeesStepper, _ribbon);
|
|
88338
88528
|
__decorateElement(_init123, 4, "activeForm", _activeForm_dec, _DeesStepper, _activeForm);
|
|
88339
88529
|
__decorateElement(_init123, 4, "activeFormValid", _activeFormValid_dec, _DeesStepper, _activeFormValid);
|
|
88340
88530
|
__decorateElement(_init123, 4, "stepError", _stepError_dec, _DeesStepper, _stepError);
|
|
@@ -113918,7 +114108,7 @@ var DeesPdfViewer = _DeesPdfViewer;
|
|
|
113918
114108
|
var demoFunc81 = /* @__PURE__ */ __name(() => mediaDemo("preview"), "demoFunc");
|
|
113919
114109
|
|
|
113920
114110
|
// ts_web/elements/00group-media/dees-preview/dees-preview.ts
|
|
113921
|
-
var _error_dec11, _loading_dec16, _resolvedLang_dec, _resolvedText_dec, _resolvedSrc_dec, _resolvedType_dec, _frameless_dec18, _showFilename_dec, _showToolbar_dec5, _filename_dec4, _mimeType_dec,
|
|
114111
|
+
var _error_dec11, _loading_dec16, _resolvedLang_dec, _resolvedText_dec, _resolvedSrc_dec, _resolvedType_dec, _frameless_dec18, _showFilename_dec, _showToolbar_dec5, _filename_dec4, _mimeType_dec, _language_dec6, _contentType_dec2, _textContent_dec, _base64_dec, _file_dec, _url_dec, _a126, _DeesPreview_decorators, _init129, _url, _file, _base64, _textContent, _contentType2, _language6, _mimeType, _filename4, _showToolbar5, _showFilename, _frameless18, _resolvedType, _resolvedSrc, _resolvedText, _resolvedLang, _loading16, _error11;
|
|
113922
114112
|
var EXTENSION_MAP = {
|
|
113923
114113
|
// Image
|
|
113924
114114
|
jpg: "image",
|
|
@@ -114031,7 +114221,7 @@ var TYPE_ICONS = {
|
|
|
114031
114221
|
unknown: "lucide:File"
|
|
114032
114222
|
};
|
|
114033
114223
|
_DeesPreview_decorators = [customElement("dees-preview")];
|
|
114034
|
-
var _DeesPreview = class _DeesPreview extends (_a126 = DeesElement, _url_dec = [n({ reflect: true })], _file_dec = [n({ attribute: false })], _base64_dec = [n()], _textContent_dec = [n()], _contentType_dec2 = [n({ reflect: true })],
|
|
114224
|
+
var _DeesPreview = class _DeesPreview extends (_a126 = DeesElement, _url_dec = [n({ reflect: true })], _file_dec = [n({ attribute: false })], _base64_dec = [n()], _textContent_dec = [n()], _contentType_dec2 = [n({ reflect: true })], _language_dec6 = [n({ reflect: true })], _mimeType_dec = [n({ reflect: true })], _filename_dec4 = [n({ reflect: true })], _showToolbar_dec5 = [n({ type: Boolean, reflect: true })], _showFilename_dec = [n({ type: Boolean, reflect: true })], _frameless_dec18 = [n({ type: Boolean, reflect: true })], _resolvedType_dec = [r2()], _resolvedSrc_dec = [r2()], _resolvedText_dec = [r2()], _resolvedLang_dec = [r2()], _loading_dec16 = [r2()], _error_dec11 = [r2()], _a126) {
|
|
114035
114225
|
constructor() {
|
|
114036
114226
|
super(...arguments);
|
|
114037
114227
|
__publicField(this, "t", dcLocalize(this));
|
|
@@ -114040,7 +114230,7 @@ var _DeesPreview = class _DeesPreview extends (_a126 = DeesElement, _url_dec = [
|
|
|
114040
114230
|
__privateAdd(this, _base64, __runInitializers(_init129, 16, this, "")), __runInitializers(_init129, 19, this);
|
|
114041
114231
|
__privateAdd(this, _textContent, __runInitializers(_init129, 20, this, "")), __runInitializers(_init129, 23, this);
|
|
114042
114232
|
__privateAdd(this, _contentType2, __runInitializers(_init129, 24, this)), __runInitializers(_init129, 27, this);
|
|
114043
|
-
__privateAdd(this,
|
|
114233
|
+
__privateAdd(this, _language6, __runInitializers(_init129, 28, this, "")), __runInitializers(_init129, 31, this);
|
|
114044
114234
|
__privateAdd(this, _mimeType, __runInitializers(_init129, 32, this, "")), __runInitializers(_init129, 35, this);
|
|
114045
114235
|
__privateAdd(this, _filename4, __runInitializers(_init129, 36, this, "")), __runInitializers(_init129, 39, this);
|
|
114046
114236
|
__privateAdd(this, _showToolbar5, __runInitializers(_init129, 40, this, true)), __runInitializers(_init129, 43, this);
|
|
@@ -114273,7 +114463,7 @@ _file = new WeakMap();
|
|
|
114273
114463
|
_base64 = new WeakMap();
|
|
114274
114464
|
_textContent = new WeakMap();
|
|
114275
114465
|
_contentType2 = new WeakMap();
|
|
114276
|
-
|
|
114466
|
+
_language6 = new WeakMap();
|
|
114277
114467
|
_mimeType = new WeakMap();
|
|
114278
114468
|
_filename4 = new WeakMap();
|
|
114279
114469
|
_showToolbar5 = new WeakMap();
|
|
@@ -114290,7 +114480,7 @@ __decorateElement(_init129, 4, "file", _file_dec, _DeesPreview, _file);
|
|
|
114290
114480
|
__decorateElement(_init129, 4, "base64", _base64_dec, _DeesPreview, _base64);
|
|
114291
114481
|
__decorateElement(_init129, 4, "textContent", _textContent_dec, _DeesPreview, _textContent);
|
|
114292
114482
|
__decorateElement(_init129, 4, "contentType", _contentType_dec2, _DeesPreview, _contentType2);
|
|
114293
|
-
__decorateElement(_init129, 4, "language",
|
|
114483
|
+
__decorateElement(_init129, 4, "language", _language_dec6, _DeesPreview, _language6);
|
|
114294
114484
|
__decorateElement(_init129, 4, "mimeType", _mimeType_dec, _DeesPreview, _mimeType);
|
|
114295
114485
|
__decorateElement(_init129, 4, "filename", _filename_dec4, _DeesPreview, _filename4);
|
|
114296
114486
|
__decorateElement(_init129, 4, "showToolbar", _showToolbar_dec5, _DeesPreview, _showToolbar5);
|
|
@@ -116293,14 +116483,14 @@ Action Items:
|
|
|
116293
116483
|
}, "demo");
|
|
116294
116484
|
|
|
116295
116485
|
// ts_web/elements/00group-media/dees-thumbnail-note/component.ts
|
|
116296
|
-
var _isHovering_dec3,
|
|
116486
|
+
var _isHovering_dec3, _language_dec7, _content_dec3, _title_dec3, _a132, _DeesThumbnailNote_decorators, _init135, _title3, _content3, _language7, _isHovering3;
|
|
116297
116487
|
_DeesThumbnailNote_decorators = [customElement("dees-thumbnail-note")];
|
|
116298
|
-
var _DeesThumbnailNote = class _DeesThumbnailNote extends (_a132 = DeesThumbnailBase, _title_dec3 = [n({ type: String })], _content_dec3 = [n({ type: String })],
|
|
116488
|
+
var _DeesThumbnailNote = class _DeesThumbnailNote extends (_a132 = DeesThumbnailBase, _title_dec3 = [n({ type: String })], _content_dec3 = [n({ type: String })], _language_dec7 = [n({ type: String, reflect: true })], _isHovering_dec3 = [r2()], _a132) {
|
|
116299
116489
|
constructor() {
|
|
116300
116490
|
super(...arguments);
|
|
116301
116491
|
__privateAdd(this, _title3, __runInitializers(_init135, 8, this, "")), __runInitializers(_init135, 11, this);
|
|
116302
116492
|
__privateAdd(this, _content3, __runInitializers(_init135, 12, this, "")), __runInitializers(_init135, 15, this);
|
|
116303
|
-
__privateAdd(this,
|
|
116493
|
+
__privateAdd(this, _language7, __runInitializers(_init135, 16, this, "")), __runInitializers(_init135, 19, this);
|
|
116304
116494
|
__privateAdd(this, _isHovering3, __runInitializers(_init135, 20, this, false)), __runInitializers(_init135, 23, this);
|
|
116305
116495
|
__publicField(this, "noteBodyElement", null);
|
|
116306
116496
|
}
|
|
@@ -116377,11 +116567,11 @@ var _DeesThumbnailNote = class _DeesThumbnailNote extends (_a132 = DeesThumbnail
|
|
|
116377
116567
|
_init135 = __decoratorStart(_a132);
|
|
116378
116568
|
_title3 = new WeakMap();
|
|
116379
116569
|
_content3 = new WeakMap();
|
|
116380
|
-
|
|
116570
|
+
_language7 = new WeakMap();
|
|
116381
116571
|
_isHovering3 = new WeakMap();
|
|
116382
116572
|
__decorateElement(_init135, 4, "title", _title_dec3, _DeesThumbnailNote, _title3);
|
|
116383
116573
|
__decorateElement(_init135, 4, "content", _content_dec3, _DeesThumbnailNote, _content3);
|
|
116384
|
-
__decorateElement(_init135, 4, "language",
|
|
116574
|
+
__decorateElement(_init135, 4, "language", _language_dec7, _DeesThumbnailNote, _language7);
|
|
116385
116575
|
__decorateElement(_init135, 4, "isHovering", _isHovering_dec3, _DeesThumbnailNote, _isHovering3);
|
|
116386
116576
|
_DeesThumbnailNote = __decorateElement(_init135, 0, "DeesThumbnailNote", _DeesThumbnailNote_decorators, _DeesThumbnailNote);
|
|
116387
116577
|
__name(_DeesThumbnailNote, "DeesThumbnailNote");
|
|
@@ -117540,7 +117730,7 @@ var _DeesSimpleAppDash = class _DeesSimpleAppDash extends (_a139 = DeesElement,
|
|
|
117540
117730
|
this.terminalOpen = true;
|
|
117541
117731
|
const request = ++this.terminalRequest;
|
|
117542
117732
|
try {
|
|
117543
|
-
const { DeesWorkspaceTerminal: DeesWorkspaceTerminal3 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-workspace-terminal-
|
|
117733
|
+
const { DeesWorkspaceTerminal: DeesWorkspaceTerminal3 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-workspace-terminal-EJRHSZ5F.js");
|
|
117544
117734
|
await this.updateComplete;
|
|
117545
117735
|
if (!this.isConnected || request !== this.terminalRequest) return;
|
|
117546
117736
|
const terminal = new DeesWorkspaceTerminal3();
|
|
@@ -122258,9 +122448,9 @@ var TypeScriptIntelliSenseManager = class {
|
|
|
122258
122448
|
};
|
|
122259
122449
|
|
|
122260
122450
|
// ts_web/elements/00group-workspace/dees-workspace-diff-editor/dees-workspace-diff-editor.ts
|
|
122261
|
-
var _loadError_dec5, _filePath_dec2,
|
|
122451
|
+
var _loadError_dec5, _filePath_dec2, _language_dec8, _modifiedLabel_dec, _originalLabel_dec, _modifiedContent_dec, _originalContent_dec, _a148, _DeesWorkspaceDiffEditor_decorators, _init156, _originalContent, _modifiedContent, _originalLabel, _modifiedLabel, _language8, _filePath2, _loadError5;
|
|
122262
122452
|
_DeesWorkspaceDiffEditor_decorators = [customElement("dees-workspace-diff-editor")];
|
|
122263
|
-
var _DeesWorkspaceDiffEditor = class _DeesWorkspaceDiffEditor extends (_a148 = DeesElement, _originalContent_dec = [n({ type: String })], _modifiedContent_dec = [n({ type: String })], _originalLabel_dec = [n({ type: String, reflect: true })], _modifiedLabel_dec = [n({ type: String, reflect: true })],
|
|
122453
|
+
var _DeesWorkspaceDiffEditor = class _DeesWorkspaceDiffEditor extends (_a148 = DeesElement, _originalContent_dec = [n({ type: String })], _modifiedContent_dec = [n({ type: String })], _originalLabel_dec = [n({ type: String, reflect: true })], _modifiedLabel_dec = [n({ type: String, reflect: true })], _language_dec8 = [n({ type: String, reflect: true })], _filePath_dec2 = [n({ type: String, reflect: true })], _loadError_dec5 = [r2()], _a148) {
|
|
122264
122454
|
constructor() {
|
|
122265
122455
|
super();
|
|
122266
122456
|
__publicField(this, "t", dcLocalize(this));
|
|
@@ -122274,7 +122464,7 @@ var _DeesWorkspaceDiffEditor = class _DeesWorkspaceDiffEditor extends (_a148 = D
|
|
|
122274
122464
|
__privateAdd(this, _modifiedContent, __runInitializers(_init156, 12, this, "")), __runInitializers(_init156, 15, this);
|
|
122275
122465
|
__privateAdd(this, _originalLabel, __runInitializers(_init156, 16, this, "")), __runInitializers(_init156, 19, this);
|
|
122276
122466
|
__privateAdd(this, _modifiedLabel, __runInitializers(_init156, 20, this, "")), __runInitializers(_init156, 23, this);
|
|
122277
|
-
__privateAdd(this,
|
|
122467
|
+
__privateAdd(this, _language8, __runInitializers(_init156, 24, this, "typescript")), __runInitializers(_init156, 27, this);
|
|
122278
122468
|
__privateAdd(this, _filePath2, __runInitializers(_init156, 28, this, "")), __runInitializers(_init156, 31, this);
|
|
122279
122469
|
__privateAdd(this, _loadError5, __runInitializers(_init156, 32, this, "")), __runInitializers(_init156, 35, this);
|
|
122280
122470
|
__publicField(this, "diffEditor", null);
|
|
@@ -122459,14 +122649,14 @@ _originalContent = new WeakMap();
|
|
|
122459
122649
|
_modifiedContent = new WeakMap();
|
|
122460
122650
|
_originalLabel = new WeakMap();
|
|
122461
122651
|
_modifiedLabel = new WeakMap();
|
|
122462
|
-
|
|
122652
|
+
_language8 = new WeakMap();
|
|
122463
122653
|
_filePath2 = new WeakMap();
|
|
122464
122654
|
_loadError5 = new WeakMap();
|
|
122465
122655
|
__decorateElement(_init156, 4, "originalContent", _originalContent_dec, _DeesWorkspaceDiffEditor, _originalContent);
|
|
122466
122656
|
__decorateElement(_init156, 4, "modifiedContent", _modifiedContent_dec, _DeesWorkspaceDiffEditor, _modifiedContent);
|
|
122467
122657
|
__decorateElement(_init156, 4, "originalLabel", _originalLabel_dec, _DeesWorkspaceDiffEditor, _originalLabel);
|
|
122468
122658
|
__decorateElement(_init156, 4, "modifiedLabel", _modifiedLabel_dec, _DeesWorkspaceDiffEditor, _modifiedLabel);
|
|
122469
|
-
__decorateElement(_init156, 4, "language",
|
|
122659
|
+
__decorateElement(_init156, 4, "language", _language_dec8, _DeesWorkspaceDiffEditor, _language8);
|
|
122470
122660
|
__decorateElement(_init156, 4, "filePath", _filePath_dec2, _DeesWorkspaceDiffEditor, _filePath2);
|
|
122471
122661
|
__decorateElement(_init156, 4, "loadError", _loadError_dec5, _DeesWorkspaceDiffEditor, _loadError5);
|
|
122472
122662
|
_DeesWorkspaceDiffEditor = __decorateElement(_init156, 0, "DeesWorkspaceDiffEditor", _DeesWorkspaceDiffEditor_decorators, _DeesWorkspaceDiffEditor);
|
|
@@ -124544,7 +124734,7 @@ var bright = {
|
|
|
124544
124734
|
// ts_web/00_commitinfo_data.ts
|
|
124545
124735
|
var commitinfo = {
|
|
124546
124736
|
name: "@design.estate/dees-catalog",
|
|
124547
|
-
version: "21.
|
|
124737
|
+
version: "21.46.0",
|
|
124548
124738
|
description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
|
|
124549
124739
|
};
|
|
124550
124740
|
export {
|