@design.estate/dees-catalog 21.45.0 → 21.46.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist_bundle/bundle.js +299 -84
  2. package/dist_bundle/bundle.js.map +1 -1
  3. package/dist_bundle/bundle.js.third-party-notices.json +1 -1
  4. package/dist_bundle/bundle.js.third-party-notices.txt +1 -1
  5. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-L4Z3DS4M.js → chunk-FCUX4QGD.js} +3 -3
  6. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-Y2OCV2BV.js → chunk-LWT7IIPZ.js} +2 -2
  7. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-L3H6FV4W.js → chunk-VJVZHESI.js} +37 -14
  8. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-VJVZHESI.js.map +1 -0
  9. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-SOLSWJ7V.js → de-7PGZC4IF.js} +2 -2
  10. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-VDA5LOS7.js → dees-modal-VOIWY235.js} +3 -3
  11. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-SD4GXHX5.js → dees-workspace-terminal-EJRHSZ5F.js} +4 -4
  12. package/dist_bundle/third-party-notices.md +2 -2
  13. package/dist_ts_web/00_commitinfo_data.js +1 -1
  14. package/dist_ts_web/elements/00group-appui/dees-appui/dees-appui.d.ts +37 -3
  15. package/dist_ts_web/elements/00group-appui/dees-appui/dees-appui.js +79 -19
  16. package/dist_ts_web/elements/00group-dataview/dees-table/dees-table.d.ts +24 -7
  17. package/dist_ts_web/elements/00group-dataview/dees-table/dees-table.js +53 -18
  18. package/dist_ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.d.ts +11 -1
  19. package/dist_ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.demo.js +17 -1
  20. package/dist_ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.js +19 -2
  21. package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.d.ts +33 -2
  22. package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.demo.js +92 -13
  23. package/dist_ts_web/elements/00group-layout/dees-stepper/dees-stepper.js +58 -15
  24. package/dist_ts_web/elements/00group-layout/dees-stepper/styles.js +31 -2
  25. package/dist_ts_web/elements/interfaces/appconfig.d.ts +9 -2
  26. package/package.json +2 -2
  27. package/readme.md +35 -6
  28. package/third-party-notices.md +2 -2
  29. package/ts_web/00_commitinfo_data.ts +1 -1
  30. package/ts_web/elements/00group-appui/dees-appui/dees-appui.ts +95 -21
  31. package/ts_web/elements/00group-appui/dees-appui/readme.md +16 -4
  32. package/ts_web/elements/00group-dataview/dees-table/dees-table.ts +54 -17
  33. package/ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.demo.ts +20 -0
  34. package/ts_web/elements/00group-input/dees-input-radiogroup/dees-input-radiogroup.ts +18 -1
  35. package/ts_web/elements/00group-layout/dees-stepper/dees-stepper.demo.ts +79 -4
  36. package/ts_web/elements/00group-layout/dees-stepper/dees-stepper.ts +69 -13
  37. package/ts_web/elements/00group-layout/dees-stepper/styles.ts +32 -1
  38. package/ts_web/elements/interfaces/appconfig.ts +9 -2
  39. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-L3H6FV4W.js.map +0 -1
  40. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-L4Z3DS4M.js.map → chunk-FCUX4QGD.js.map} +0 -0
  41. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-Y2OCV2BV.js.map → chunk-LWT7IIPZ.js.map} +0 -0
  42. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-SOLSWJ7V.js.map → de-7PGZC4IF.js.map} +0 -0
  43. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-VDA5LOS7.js.map → dees-modal-VOIWY235.js.map} +0 -0
  44. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-SD4GXHX5.js.map → dees-workspace-terminal-EJRHSZ5F.js.map} +0 -0
@@ -25,7 +25,7 @@ import {
25
25
  ownAppuiLabels,
26
26
  resolveAppuiLabels,
27
27
  xtermStyles
28
- } from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-L4Z3DS4M.js";
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-Y2OCV2BV.js";
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-L3H6FV4W.js";
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 === " ") {
@@ -8357,8 +8396,17 @@ var _DeesTable = class _DeesTable extends (_a17 = DeesElement, _heading1_dec = [
8357
8396
  * virtualized.
8358
8397
  */
8359
8398
  __publicField(this, "__settledAnchor");
8360
- /** The window whose values the column widths were last checked against. */
8399
+ /**
8400
+ * The window, and the view it showed, whose values the column widths were
8401
+ * last checked against: a search, a filter or a sort shows other rows in the
8402
+ * same window.
8403
+ */
8361
8404
  __publicField(this, "__virtualColumnsCheckedFor");
8405
+ /**
8406
+ * What each data column's values have needed, laid out at their natural
8407
+ * width, in the windows shown since the widths were frozen.
8408
+ */
8409
+ __publicField(this, "__columnContentWidths");
8362
8410
  __publicField(this, "__virtualSettleFrame");
8363
8411
  __privateAdd(this, ___virtualRange, __runInitializers(_init19, 212, this, { start: 0, end: 0 })), __runInitializers(_init19, 215, this);
8364
8412
  /** The row that holds the rows' tab stop in a table whose rows activate. */
@@ -9381,9 +9429,13 @@ var _DeesTable = class _DeesTable extends (_a17 = DeesElement, _heading1_dec = [
9381
9429
  /**
9382
9430
  * The column widths are frozen from the first window. Under virtualization
9383
9431
  * later windows bring other values, so a column widens to the widest value
9384
- * rendered so far: the window is laid out at its natural widths once and
9385
- * every column keeps the larger of that and its frozen width. Returns
9386
- * whether a column widened.
9432
+ * rendered so far: the window is laid out at its natural widths once, and
9433
+ * each column needs the widest it has been in any window since the freeze.
9434
+ * A column that needs more than it has takes the room the columns were
9435
+ * stretched by to fill the table's container, shared out in proportion to
9436
+ * what each needs as the browser shares it; the table grows wider than its
9437
+ * container only once the columns need more than it holds. Returns whether
9438
+ * a column's width changed.
9387
9439
  */
9388
9440
  __growColumnWidths() {
9389
9441
  const table = this.__realTableEl;
@@ -9399,15 +9451,20 @@ var _DeesTable = class _DeesTable extends (_a17 = DeesElement, _heading1_dec = [
9399
9451
  cell.style.width = "";
9400
9452
  });
9401
9453
  const natural = cells.map((cell) => parseFloat(getComputedStyle(cell).width) || 0);
9402
- let grew = false;
9454
+ const naturalTotal = natural.reduce((sum, width) => sum + width, 0);
9455
+ const naturalTableWidth = parseFloat(getComputedStyle(table).width) || 0;
9456
+ table.style.minWidth = "";
9457
+ const room = (parseFloat(getComputedStyle(table).width) || 0) - (naturalTableWidth - naturalTotal);
9458
+ const before = this.__columnContentWidths?.length === cells.length ? this.__columnContentWidths : [];
9459
+ const needed = natural.map((width, index) => Math.max(before[index] ?? 0, width));
9460
+ this.__columnContentWidths = needed;
9461
+ const neededTotal = needed.reduce((sum, width) => sum + width, 0);
9462
+ const widths = !needed.some((width, index) => width > frozen[index] + 0.5) ? frozen : neededTotal >= room ? needed : needed.map((width) => width + Math.floor((room - neededTotal) * width / neededTotal));
9403
9463
  cells.forEach((cell, index) => {
9404
- const width = Math.max(frozen[index], natural[index]);
9405
- if (width > frozen[index] + 0.5) grew = true;
9406
- cell.style.width = `${width}px`;
9464
+ cell.style.width = `${widths[index]}px`;
9407
9465
  });
9408
- table.style.minWidth = "";
9409
9466
  table.style.tableLayout = "fixed";
9410
- return grew;
9467
+ return widths.some((width, index) => Math.abs(width - frozen[index]) > 0.5);
9411
9468
  }
9412
9469
  /** Settles the window on the next frame: at most one range change per frame. */
9413
9470
  __scheduleVirtualSettle() {
@@ -9420,14 +9477,15 @@ var _DeesTable = class _DeesTable extends (_a17 = DeesElement, _heading1_dec = [
9420
9477
  this.__restoreVirtualAnchor(settled);
9421
9478
  }
9422
9479
  const range = this.__virtualRange;
9480
+ const view = this.__rowKeysFor?.view;
9423
9481
  const checked = this.__virtualColumnsCheckedFor;
9424
- if (!checked || checked.start !== range.start || checked.end !== range.end) {
9482
+ if (!checked || checked.start !== range.start || checked.end !== range.end || checked.view !== view) {
9425
9483
  const anchor = this.__captureVirtualAnchor();
9426
9484
  if (this.__growColumnWidths()) {
9427
9485
  this.__measureRenderedRows();
9428
9486
  if (anchor) this.__restoreVirtualAnchor(anchor);
9429
9487
  }
9430
- if (this.__realTableEl?.style.tableLayout === "fixed") this.__virtualColumnsCheckedFor = { ...range };
9488
+ if (this.__realTableEl?.style.tableLayout === "fixed") this.__virtualColumnsCheckedFor = { ...range, view };
9431
9489
  }
9432
9490
  this.__measureRenderedRows();
9433
9491
  this.__computeVirtualRange();
@@ -10017,7 +10075,13 @@ var _DeesTable = class _DeesTable extends (_a17 = DeesElement, _heading1_dec = [
10017
10075
  dataCells.forEach((cell) => {
10018
10076
  cell.style.width = "";
10019
10077
  });
10078
+ this.__columnContentWidths = void 0;
10020
10079
  if (!table.querySelector("tbody tr[data-row-idx]")) return;
10080
+ if (this.virtualized) {
10081
+ table.style.minWidth = "0";
10082
+ this.__columnContentWidths = dataCells.map((cell) => parseFloat(getComputedStyle(cell).width) || 0);
10083
+ table.style.minWidth = "";
10084
+ }
10021
10085
  const widths = dataCells.map((cell) => getComputedStyle(cell).width);
10022
10086
  dataCells.forEach((cell, index) => {
10023
10087
  cell.style.width = widths[index];
@@ -64829,6 +64893,10 @@ var _DeesAppui = class _DeesAppui extends (_a86 = DeesElement, _appbarMenuItems_
64829
64893
  __publicField(this, "latestNavigationRequest", 0);
64830
64894
  __publicField(this, "historyOwner", "");
64831
64895
  __publicField(this, "historyIndex", 0);
64896
+ /** Numbers the history entries this shell writes, so an entry it pushes can name the one it was pushed from. */
64897
+ __publicField(this, "historyEntries", 0);
64898
+ /** The location each history entry this shell wrote shows, by the entry's number: what a return finds before it (`returnsBack`). */
64899
+ __publicField(this, "historyEntryLocations", /* @__PURE__ */ new Map());
64832
64900
  /** The traversal back a refused browser change started, to `location`; the next change of any address ends it. */
64833
64901
  __publicField(this, "restoringHistory");
64834
64902
  /** A storage operation failed: the host hears it once, and the shell goes on without it. */
@@ -66096,10 +66164,12 @@ var _DeesAppui = class _DeesAppui extends (_a86 = DeesElement, _appbarMenuItems_
66096
66164
  * Navigate to a registered view. The URL follows an accepted activation, and
66097
66165
  * `options.history` decides whether that leaves a step behind: `push` (the
66098
66166
  * default) adds a history entry, `replace` rewrites the current one, which is
66099
- * what a screen correcting its own route needs.
66167
+ * what a screen correcting its own route needs, and `return` goes back to the
66168
+ * screen a step was taken from, where the entry before the current one shows
66169
+ * it, and replaces the current entry elsewhere.
66100
66170
  */
66101
66171
  navigateToView(viewId, params = {}, query2 = {}, options) {
66102
- const mode = options?.history === "replace" ? "replace" : "push";
66172
+ const mode = options?.history === "replace" || options?.history === "return" ? options.history : "push";
66103
66173
  return this.queueNavigation(viewId, { ...params }, { ...query2 }, mode, mode === "replace" ? "system" : "reader");
66104
66174
  }
66105
66175
  queueNavigation(viewId, params, query2, mode, intent, index, traversalLocation) {
@@ -66139,8 +66209,8 @@ var _DeesAppui = class _DeesAppui extends (_a86 = DeesElement, _appbarMenuItems_
66139
66209
  this.markViewInMainMenu(viewId);
66140
66210
  if (mode !== "push") {
66141
66211
  this.historyIndex = index ?? this.historyIndex;
66142
- if (mode === "replace" || this.addressing.currentLocation() === traversalLocation)
66143
- window.history.replaceState(this.routeHistoryState(), "", this.addressing.entryLocation(location));
66212
+ if (mode === "replace" || mode === "return" || this.addressing.currentLocation() === traversalLocation)
66213
+ window.history.replaceState(this.routeHistoryState(location), "", this.addressing.entryLocation(location));
66144
66214
  }
66145
66215
  return true;
66146
66216
  }
@@ -66185,11 +66255,13 @@ var _DeesAppui = class _DeesAppui extends (_a86 = DeesElement, _appbarMenuItems_
66185
66255
  }
66186
66256
  if (mode === "push") {
66187
66257
  this.historyIndex++;
66188
- window.history.pushState(this.routeHistoryState(), "", location);
66258
+ window.history.pushState(this.routeHistoryState(location, true), "", location);
66259
+ } else if (mode === "return" && this.returnsBack(location)) {
66260
+ await this.goBackTo(location);
66189
66261
  } else {
66190
66262
  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));
66263
+ if (mode === "replace" || mode === "return" || this.addressing.currentLocation() === traversalLocation) {
66264
+ window.history.replaceState(this.routeHistoryState(location), "", this.addressing.entryLocation(location));
66193
66265
  }
66194
66266
  }
66195
66267
  return true;
@@ -66230,13 +66302,14 @@ var _DeesAppui = class _DeesAppui extends (_a86 = DeesElement, _appbarMenuItems_
66230
66302
  * Ask again for the screen that failed to load, as the reader who pressed
66231
66303
  * Retry: the same view, parameters and query. History is written the way the
66232
66304
  * failed request would have left it: onto the current entry for a replace, or
66233
- * while the address still shows the attempted route; as a new entry otherwise,
66234
- * which is also where a rolled-back traversal left the reader.
66305
+ * while the address still shows the attempted route; back to the entry before
66306
+ * for a return that may still go there; as a new entry otherwise, which is
66307
+ * also where a rolled-back traversal left the reader.
66235
66308
  */
66236
66309
  retryFailedNavigation() {
66237
66310
  const failed = this.failedNavigation;
66238
66311
  if (!failed) return;
66239
- const mode = failed.mode === "replace" || this.addressing.currentLocation() === failed.location ? "replace" : "push";
66312
+ const mode = failed.mode === "replace" || this.addressing.currentLocation() === failed.location ? "replace" : failed.mode === "return" ? "return" : "push";
66240
66313
  void this.queueNavigation(failed.view.id, failed.params, failed.query, mode, "reader");
66241
66314
  }
66242
66315
  /**
@@ -66260,24 +66333,67 @@ var _DeesAppui = class _DeesAppui extends (_a86 = DeesElement, _appbarMenuItems_
66260
66333
  i18n: this.t.i18n
66261
66334
  });
66262
66335
  }
66263
- routeHistoryState() {
66264
- return { ...window.history.state, deesAppui: { owner: this.historyOwner, index: this.historyIndex } };
66336
+ /**
66337
+ * The state of a history entry the shell writes, showing a location: where the
66338
+ * entry stands (`historyIndex`) and a number of its own. An entry pushed also
66339
+ * names the entry it was pushed from, the one right before it; one rewritten
66340
+ * keeps its number and the entry before it. The location an entry shows is
66341
+ * kept by its number, so a return can tell what the entry before shows
66342
+ * (`returnsBack`).
66343
+ */
66344
+ routeHistoryState(locationArg, pushedArg = false) {
66345
+ const current = this.historyMarker();
66346
+ const entry = pushedArg || !current ? ++this.historyEntries : current.entry;
66347
+ const previous = pushedArg ? current?.entry : current?.previous;
66348
+ if (locationArg !== void 0) this.historyEntryLocations.set(entry, locationArg);
66349
+ const marker = { owner: this.historyOwner, index: this.historyIndex, entry, previous };
66350
+ return { ...window.history.state, deesAppui: marker };
66351
+ }
66352
+ /** This shell's marker on the entry the browser stands on; absent on an entry this shell never wrote. */
66353
+ historyMarker() {
66354
+ const marker = window.history.state?.deesAppui;
66355
+ return marker?.owner === this.historyOwner ? marker : void 0;
66265
66356
  }
66266
66357
  /**
66267
66358
  * Where the browser's session history stands right now: the location it shows and
66268
66359
  * this shell's marker on the entry, absent on an entry this shell never wrote.
66269
66360
  */
66270
66361
  browserPosition() {
66271
- const marker = window.history.state?.deesAppui;
66272
66362
  return {
66273
66363
  location: this.addressing.currentLocation(),
66274
- index: marker?.owner === this.historyOwner ? marker.index : void 0
66364
+ index: this.historyMarker()?.index
66275
66365
  };
66276
66366
  }
66277
66367
  hasBrowserMoved(positionArg) {
66278
66368
  const current = this.browserPosition();
66279
66369
  return current.location !== positionArg.location || current.index !== positionArg.index;
66280
66370
  }
66371
+ /**
66372
+ * Whether a return to a location goes back: the browser stands where this
66373
+ * shell is, on an entry it pushed, and the entry that one was pushed from —
66374
+ * the one right before it — still shows the location. An entry the shell did
66375
+ * not push from one of its own, such as the first one after a reload or a deep
66376
+ * link into a flow, has no entry before it the shell knows, so a return from it
66377
+ * replaces. So does one whose address shows the location already: going back
66378
+ * from it would change no address, and no change would say it landed.
66379
+ */
66380
+ returnsBack(locationArg) {
66381
+ const marker = this.historyMarker();
66382
+ return marker?.index === this.historyIndex && marker.previous !== void 0 && this.historyEntryLocations.get(marker.previous) === locationArg && this.addressing.currentLocation() !== locationArg;
66383
+ }
66384
+ /**
66385
+ * Goes back one entry, to the location of the screen already on show, and
66386
+ * waits until the browser stands there, so no request writes history from
66387
+ * the entry it leaves. The change the browser brings finds that location
66388
+ * and is not taken as a move of the reader's (`restoringHistory`).
66389
+ */
66390
+ goBackTo(locationArg) {
66391
+ this.historyIndex--;
66392
+ return new Promise((resolve) => {
66393
+ this.restoringHistory = { location: locationArg, resolve };
66394
+ window.history.back();
66395
+ });
66396
+ }
66281
66397
  /**
66282
66398
  * Get the current view
66283
66399
  */
@@ -66446,6 +66562,7 @@ var _DeesAppui = class _DeesAppui extends (_a86 = DeesElement, _appbarMenuItems_
66446
66562
  this.failedNavigation = void 0;
66447
66563
  this.historyOwner = `${Date.now()}-${Math.random()}`;
66448
66564
  this.historyIndex = 0;
66565
+ this.historyEntryLocations.clear();
66449
66566
  }
66450
66567
  /** Follow the address: mark the entry the shell stands on, listen for its changes, show the first screen. */
66451
66568
  startRouting() {
@@ -66533,8 +66650,7 @@ var _DeesAppui = class _DeesAppui extends (_a86 = DeesElement, _appbarMenuItems_
66533
66650
  if (location !== addressing.currentLocation()) return;
66534
66651
  const route = addressing.routeOf(new URL(window.location.href));
66535
66652
  if (route === void 0) return;
66536
- const marker = window.history.state?.deesAppui;
66537
- const index = marker?.owner === this.historyOwner ? marker.index : this.historyIndex + 1;
66653
+ const index = this.historyMarker()?.index ?? this.historyIndex + 1;
66538
66654
  if (location === this.activeLocation) {
66539
66655
  this.historyIndex = index;
66540
66656
  return;
@@ -66551,7 +66667,7 @@ var _DeesAppui = class _DeesAppui extends (_a86 = DeesElement, _appbarMenuItems_
66551
66667
  this.restoringHistory = { location: this.activeLocation, resolve };
66552
66668
  window.history.go(distance);
66553
66669
  });
66554
- } else window.history.replaceState(this.routeHistoryState(), "", this.addressing.entryLocation(this.activeLocation));
66670
+ } else window.history.replaceState(this.routeHistoryState(this.activeLocation), "", this.addressing.entryLocation(this.activeLocation));
66555
66671
  return false;
66556
66672
  });
66557
66673
  this.navigationQueue = restore;
@@ -73133,7 +73249,7 @@ var _DeesHarnessConversationPicker = class _DeesHarnessConversationPicker extend
73133
73249
  * cancelled. Focus returns to whatever had it when the picker opened.
73134
73250
  */
73135
73251
  static async pick(optionsArg = {}) {
73136
- const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-VDA5LOS7.js");
73252
+ const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-VOIWY235.js");
73137
73253
  const picker = new _DeesHarnessConversationPicker();
73138
73254
  picker.sessions = optionsArg.sessions ?? [];
73139
73255
  picker.groups = optionsArg.groups ?? [];
@@ -73594,7 +73710,7 @@ var handleResourceContext = /* @__PURE__ */ __name(async (event) => {
73594
73710
  list.selectedResourceId = event.detail.resource.id;
73595
73711
  }, "handleResourceContext");
73596
73712
  var openModal = /* @__PURE__ */ __name(async (sessions, groups) => {
73597
- const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-VDA5LOS7.js");
73713
+ const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-VOIWY235.js");
73598
73714
  const content = document.createElement("dees-harness-session-list");
73599
73715
  content.sessions = sessions;
73600
73716
  content.groups = groups;
@@ -86637,7 +86753,7 @@ __runInitializers(_init120, 1, _DeesSparklebox);
86637
86753
  var DeesSparklebox = _DeesSparklebox;
86638
86754
 
86639
86755
  // 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;
86756
+ 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
86757
  var waitForProgressTick = /* @__PURE__ */ __name((duration, signal) => new Promise((resolve) => {
86642
86758
  if (signal?.aborted) {
86643
86759
  resolve(false);
@@ -86904,21 +87020,64 @@ var createChoiceSteps = /* @__PURE__ */ __name((finish) => {
86904
87020
  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
87021
  return { steps: [choose, ...flows.manual], beforeClose };
86906
87022
  }, "createChoiceSteps");
87023
+ var defineRecordWords = /* @__PURE__ */ __name(() => {
87024
+ const catalog = dist_ts_exports.defineCatalog({
87025
+ namespace: "@design.estate/dees-catalog/demo-stepper",
87026
+ source: "en",
87027
+ messages: {
87028
+ "record.yearClosed": {
87029
+ 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.",
87030
+ description: "Why a change cannot start on the day chosen; {year} is a closed year."
87031
+ }
87032
+ }
87033
+ });
87034
+ catalog.addTranslation(catalog.translation("de", {
87035
+ "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."
87036
+ }));
87037
+ return catalog;
87038
+ }, "defineRecordWords");
87039
+ var demoRecordWords;
87040
+ var createOneStep = /* @__PURE__ */ __name((finish, refuse) => {
87041
+ let attempts = 0;
87042
+ return [{
87043
+ title: "Record a change.",
87044
+ description: "One fact, from the day it holds. Nothing is recorded until you choose Record.",
87045
+ content: b`<dees-form>
87046
+ <dees-input-radiogroup key="fact" aria-label="Which fact holds from a day on?" selectedOption="small_business" .options=${[
87047
+ { key: "small_business", option: "Small business rule", description: "No VAT is charged on sales from this day on." },
87048
+ { key: "cash_basis", option: "Cash basis", description: "Income and expenses count on the day they are paid." },
87049
+ { key: "business_start", option: "Business start", description: "The day the business began." }
87050
+ ]}></dees-input-radiogroup>
87051
+ </dees-form>`,
87052
+ menuOptions: [{ name: "Record", action: /* @__PURE__ */ __name(async (stepper) => {
87053
+ attempts++;
87054
+ if (attempts === 1) throw refuse();
87055
+ finish("The change");
87056
+ await stepper?.destroy();
87057
+ }, "action") }]
87058
+ }];
87059
+ }, "createOneStep");
87060
+ var languages3 = [{ key: "en", label: "English" }, { key: "de", label: "Deutsch" }];
86907
87061
  _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) {
87062
+ 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
87063
  constructor() {
86910
- super(...arguments);
87064
+ super();
86911
87065
  __privateAdd(this, _scenario3, __runInitializers(_init122, 8, this, "Standard setup")), __runInitializers(_init122, 11, this);
86912
87066
  __privateAdd(this, _width, __runInitializers(_init122, 12, this, "Wide")), __runInitializers(_init122, 15, this);
86913
87067
  __privateAdd(this, _layout2, __runInitializers(_init122, 16, this, "Auto")), __runInitializers(_init122, 19, this);
86914
87068
  __privateAdd(this, _card, __runInitializers(_init122, 20, this, "Top")), __runInitializers(_init122, 23, this);
86915
- __privateAdd(this, _closed2, __runInitializers(_init122, 24, this, false)), __runInitializers(_init122, 27, this);
86916
- __privateAdd(this, _result, __runInitializers(_init122, 28, this, "")), __runInitializers(_init122, 31, this);
87069
+ __privateAdd(this, _language5, __runInitializers(_init122, 24, this, "English")), __runInitializers(_init122, 27, this);
87070
+ __privateAdd(this, _closed2, __runInitializers(_init122, 28, this, false)), __runInitializers(_init122, 31, this);
87071
+ __privateAdd(this, _result, __runInitializers(_init122, 32, this, "")), __runInitializers(_init122, 35, this);
86917
87072
  __publicField(this, "steps", createDemoSteps(false, (name) => {
86918
87073
  this.result = `${name} is ready.`;
86919
87074
  }));
86920
87075
  __publicField(this, "beforeClose");
86921
87076
  __publicField(this, "overlayStepper");
87077
+ /** The language the demo's steppers speak, apart from the page's: their own words follow it, the sample's stay English. */
87078
+ __publicField(this, "i18n", dist_ts_exports.createI18n({ locale: "en", locales: ["en", "de"] }));
87079
+ __publicField(this, "recordWords", demoRecordWords ??= defineRecordWords());
87080
+ provideI18n(this, this.i18n);
86922
87081
  }
86923
87082
  reset() {
86924
87083
  this.result = "";
@@ -86927,7 +87086,10 @@ var _DeesDemoStepper = class _DeesDemoStepper extends (_b4 = DeesElement, _scena
86927
87086
  this.result = `${name} was added.`;
86928
87087
  }) : null;
86929
87088
  this.beforeClose = choice?.beforeClose;
86930
- this.steps = this.scenario === "Lookup" ? createLookupSteps((name) => {
87089
+ const words = this.i18n.bind(this.recordWords);
87090
+ this.steps = this.scenario === "One step" ? createOneStep((name) => {
87091
+ this.result = `${name} was recorded.`;
87092
+ }, () => new dist_ts_exports.LocalizedError(words, "record.yearClosed", { year: "2025" })) : this.scenario === "Lookup" ? createLookupSteps((name) => {
86931
87093
  this.result = `${name} was added.`;
86932
87094
  }) : choice ? choice.steps : this.scenario === "Long flow" ? createLongSteps((name) => {
86933
87095
  this.result = `${name} is complete.`;
@@ -86940,6 +87102,7 @@ var _DeesDemoStepper = class _DeesDemoStepper extends (_b4 = DeesElement, _scena
86940
87102
  if (this.overlayStepper?.isConnected) return;
86941
87103
  this.overlayStepper = await DeesStepper.createAndShow({
86942
87104
  cancelable,
87105
+ i18n: this.i18n,
86943
87106
  layout: this.stepperLayout(),
86944
87107
  cardAlign: this.stepperAlign(),
86945
87108
  steps: createDemoSteps(this.scenario === "Retry example", (name) => {
@@ -86953,10 +87116,14 @@ var _DeesDemoStepper = class _DeesDemoStepper extends (_b4 = DeesElement, _scena
86953
87116
  stepperAlign() {
86954
87117
  return this.card === "Centred" ? "center" : "start";
86955
87118
  }
87119
+ async setLanguage(label) {
87120
+ const locale = languages3.find((language) => language.label === label)?.key ?? "en";
87121
+ if (await this.i18n.setLocale(locale)) this.language = label;
87122
+ }
86956
87123
  render() {
86957
87124
  return b`<div class="toolbar">
86958
87125
  <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}
87126
+ .options=${["Standard setup", "Retry example", "Component step", "Lookup", "Choice first", "Long flow", "One step"]} .selectedOption=${this.scenario}
86960
87127
  @change=${(event) => {
86961
87128
  this.scenario = event.detail.value;
86962
87129
  this.reset();
@@ -86975,6 +87142,11 @@ var _DeesDemoStepper = class _DeesDemoStepper extends (_b4 = DeesElement, _scena
86975
87142
  .options=${["Top", "Centred"]} .selectedOption=${this.card}
86976
87143
  @change=${(event) => {
86977
87144
  this.card = event.detail.value;
87145
+ }}></dees-input-multitoggle>
87146
+ <dees-input-multitoggle size="sm" label="Demo language" labelPosition="none"
87147
+ .options=${languages3.map((language) => language.label)} .selectedOption=${this.language}
87148
+ @change=${(event) => {
87149
+ void this.setLanguage(event.detail.value);
86978
87150
  }}></dees-input-multitoggle>
86979
87151
  <div class="actions"><dees-button type="secondary" text="Open overlay" @clicked=${() => this.openOverlay()}></dees-button>
86980
87152
  <dees-button type="ghost" text="Reset" @clicked=${this.reset}></dees-button></div>
@@ -86983,10 +87155,10 @@ var _DeesDemoStepper = class _DeesDemoStepper extends (_b4 = DeesElement, _scena
86983
87155
  <dees-icon icon=${this.result ? "lucide:CircleCheck" : "lucide:Layers"} iconSize="32"></dees-icon>
86984
87156
  <h2>${this.result || "Setup cancelled."}</h2><p>This example uses local sample data.</p>
86985
87157
  <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=${() => {
87158
+ </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
87159
  this.closed = true;
86988
87160
  }}></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>
87161
+ <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
87162
  <details><summary class="caption">Completion required</summary>
86991
87163
  <p class="caption">For a flow that must finish, such as a required update, cancellation can be disabled.</p>
86992
87164
  <dees-button type="secondary" text="Open required setup" @clicked=${() => this.openOverlay(false)}></dees-button>
@@ -87002,12 +87174,14 @@ _scenario3 = new WeakMap();
87002
87174
  _width = new WeakMap();
87003
87175
  _layout2 = new WeakMap();
87004
87176
  _card = new WeakMap();
87177
+ _language5 = new WeakMap();
87005
87178
  _closed2 = new WeakMap();
87006
87179
  _result = new WeakMap();
87007
87180
  __decorateElement(_init122, 4, "scenario", _scenario_dec3, _DeesDemoStepper, _scenario3);
87008
87181
  __decorateElement(_init122, 4, "width", _width_dec, _DeesDemoStepper, _width);
87009
87182
  __decorateElement(_init122, 4, "layout", _layout_dec2, _DeesDemoStepper, _layout2);
87010
87183
  __decorateElement(_init122, 4, "card", _card_dec, _DeesDemoStepper, _card);
87184
+ __decorateElement(_init122, 4, "language", _language_dec5, _DeesDemoStepper, _language5);
87011
87185
  __decorateElement(_init122, 4, "closed", _closed_dec2, _DeesDemoStepper, _closed2);
87012
87186
  __decorateElement(_init122, 4, "result", _result_dec, _DeesDemoStepper, _result);
87013
87187
  _DeesDemoStepper = __decorateElement(_init122, 0, "DeesDemoStepper", _DeesDemoStepper_decorators, _DeesDemoStepper);
@@ -87113,6 +87287,22 @@ var centredStrip = i`
87113
87287
  & dees-tile.step.selected { grid-row: 3; }
87114
87288
  & dees-tile.step:not(.selected) { margin-block-start: calc(var(--stepper-rail) + var(--dees-spacing-md)); }
87115
87289
  `;
87290
+ var verticalAlone = i`
87291
+ grid-template-rows: minmax(0, 1fr);
87292
+ row-gap: 0;
87293
+ & .stage { grid-row: 1; }
87294
+ `;
87295
+ var centredAlone = i`
87296
+ --stepper-card-max: calc(100cqh - var(--dees-spacing-md) * 2);
87297
+ grid-template-rows:
87298
+ minmax(0, 1fr)
87299
+ minmax(min(var(--stepper-step-min-height), var(--stepper-card-max)), auto)
87300
+ minmax(0, 1fr);
87301
+ row-gap: 0;
87302
+ & .stage { grid-row: 1 / -1; }
87303
+ & dees-tile.step.selected { grid-row: 2; }
87304
+ & dees-tile.step:not(.selected) { margin-block-start: 0; }
87305
+ `;
87116
87306
  var stepperStyles = i`
87117
87307
  :host {
87118
87308
  --stepper-motion-duration: var(--dees-transition-slow);
@@ -87469,13 +87659,18 @@ var stepperStyles = i`
87469
87659
  .predestroy .step.selected, .predestroy .progress { animation: none; }
87470
87660
  }
87471
87661
 
87472
- /* --- The centred card; the vertical layout, chosen or on a narrow surface in the automatic one --- */
87662
+ /* --- The centred card; the vertical layout, chosen or on a narrow surface in the automatic one; each without the ribbon --- */
87473
87663
  .stepperSurface:where([data-align='center']) { ${centredCard} }
87664
+ .stepperSurface:where([data-ribbon='hidden'])::after { content: none; }
87474
87665
  .stepperSurface:where([data-layout='vertical']) { ${verticalLayout} }
87666
+ .stepperSurface:where([data-layout='vertical'][data-ribbon='hidden']) { ${verticalAlone} }
87475
87667
  .stepperSurface:where([data-layout='vertical'][data-align='center']) { ${centredStrip} }
87668
+ .stepperSurface:where([data-layout='vertical'][data-align='center'][data-ribbon='hidden']) { ${centredAlone} }
87476
87669
  @container stepper-surface (max-width: 640px) {
87477
87670
  .stepperSurface:where([data-layout='auto']) { ${verticalLayout} }
87671
+ .stepperSurface:where([data-layout='auto'][data-ribbon='hidden']) { ${verticalAlone} }
87478
87672
  .stepperSurface:where([data-layout='auto'][data-align='center']) { ${centredStrip} }
87673
+ .stepperSurface:where([data-layout='auto'][data-align='center'][data-ribbon='hidden']) { ${centredAlone} }
87479
87674
  /* a narrow surface, in any layout: a closer card, the hint on a row of its own */
87480
87675
  .step-header { padding: var(--dees-spacing-md) var(--dees-spacing-lg); }
87481
87676
  .step-body { padding: var(--dees-spacing-lg); }
@@ -87492,7 +87687,7 @@ var stepperStyles = i`
87492
87687
  `;
87493
87688
 
87494
87689
  // 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;
87690
+ 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
87691
  var narrowSurfaceWidth = 640;
87497
87692
  _DeesStepper_decorators = [customElement("dees-stepper")];
87498
87693
  var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec = [n({
@@ -87505,7 +87700,7 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
87505
87700
  })], _cancelable_dec = [n({
87506
87701
  type: Boolean,
87507
87702
  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) {
87703
+ })], _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
87704
  constructor() {
87510
87705
  super();
87511
87706
  __privateAdd(this, _steps, __runInitializers(_init123, 8, this, [])), __runInitializers(_init123, 11, this);
@@ -87517,16 +87712,17 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
87517
87712
  __privateAdd(this, _stepCounter, __runInitializers(_init123, 32, this, "total")), __runInitializers(_init123, 35, this);
87518
87713
  __privateAdd(this, _layout3, __runInitializers(_init123, 36, this, "auto")), __runInitializers(_init123, 39, this);
87519
87714
  __privateAdd(this, _cardAlign, __runInitializers(_init123, 40, this, "start")), __runInitializers(_init123, 43, this);
87520
- __privateAdd(this, _activeForm, __runInitializers(_init123, 44, this, null)), __runInitializers(_init123, 47, this);
87521
- __privateAdd(this, _activeFormValid, __runInitializers(_init123, 48, this, true)), __runInitializers(_init123, 51, this);
87715
+ __privateAdd(this, _ribbon, __runInitializers(_init123, 44, this, "always")), __runInitializers(_init123, 47, this);
87716
+ __privateAdd(this, _activeForm, __runInitializers(_init123, 48, this, null)), __runInitializers(_init123, 51, this);
87717
+ __privateAdd(this, _activeFormValid, __runInitializers(_init123, 52, this, true)), __runInitializers(_init123, 55, this);
87522
87718
  __publicField(this, "activeFormSubscription");
87523
87719
  __publicField(this, "t", dcLocalize(this));
87524
- __privateAdd(this, _stepError, __runInitializers(_init123, 52, this, "")), __runInitializers(_init123, 55, this);
87525
- __privateAdd(this, _progressRunning, __runInitializers(_init123, 56, this, false)), __runInitializers(_init123, 59, this);
87526
- __privateAdd(this, _actionPending, __runInitializers(_init123, 60, this, false)), __runInitializers(_init123, 63, this);
87527
- __privateAdd(this, _pendingAction, __runInitializers(_init123, 64, this, null)), __runInitializers(_init123, 67, this);
87528
- __privateAdd(this, _narrow, __runInitializers(_init123, 68, this, false)), __runInitializers(_init123, 71, this);
87529
- __privateAdd(this, _railFocus, __runInitializers(_init123, 72, this, -1)), __runInitializers(_init123, 75, this);
87720
+ __privateAdd(this, _stepError, __runInitializers(_init123, 56, this, null)), __runInitializers(_init123, 59, this);
87721
+ __privateAdd(this, _progressRunning, __runInitializers(_init123, 60, this, false)), __runInitializers(_init123, 63, this);
87722
+ __privateAdd(this, _actionPending, __runInitializers(_init123, 64, this, false)), __runInitializers(_init123, 67, this);
87723
+ __privateAdd(this, _pendingAction, __runInitializers(_init123, 68, this, null)), __runInitializers(_init123, 71, this);
87724
+ __privateAdd(this, _narrow, __runInitializers(_init123, 72, this, false)), __runInitializers(_init123, 75, this);
87725
+ __privateAdd(this, _railFocus, __runInitializers(_init123, 76, this, -1)), __runInitializers(_init123, 79, this);
87530
87726
  __publicField(this, "resizeObserver");
87531
87727
  /**
87532
87728
  * The steps whose tiles are still leaving the stage: each stays until its
@@ -87595,6 +87791,7 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
87595
87791
  if (optionsArg.stepCounter !== void 0) stepper.stepCounter = optionsArg.stepCounter;
87596
87792
  if (optionsArg.layout !== void 0) stepper.layout = optionsArg.layout;
87597
87793
  if (optionsArg.cardAlign !== void 0) stepper.cardAlign = optionsArg.cardAlign;
87794
+ if (optionsArg.ribbon !== void 0) stepper.ribbon = optionsArg.ribbon;
87598
87795
  if (optionsArg.beforeClose) stepper.beforeClose = optionsArg.beforeClose;
87599
87796
  body.append(stepper);
87600
87797
  stepper.stepperZIndex = zIndexRegistry.getNextZIndex();
@@ -87614,9 +87811,10 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
87614
87811
  if (!this.steps.length) return b`<div class="empty">${this.t("stepper.empty")}</div>`;
87615
87812
  const selectedIndex = this.getIndexOfStep(this.selectedStep);
87616
87813
  const backIcon = this.matches(":dir(rtl)") ? "lucide:ChevronRight" : "lucide:ChevronLeft";
87814
+ const ribbonShown = this.showsRibbon();
87617
87815
  return b`<div class="stepperSurface" data-layout=${this.getLayout()} data-align=${this.cardAlign === "center" ? "center" : "start"}
87618
- data-counter=${this.getCounterText()}>
87619
- ${this.renderRibbon()}
87816
+ data-ribbon=${ribbonShown ? "shown" : "hidden"} data-counter=${ribbonShown ? this.getCounterText() : ""}>
87817
+ ${ribbonShown ? this.renderRibbon() : ""}
87620
87818
  <div class="stage">
87621
87819
  ${directives_exports.repeat(this.steps.filter((step) => step === this.selectedStep || this.leavingSteps.has(step)), (step) => step, (stepArg) => {
87622
87820
  const stepIndex = this.getIndexOfStep(stepArg);
@@ -87651,7 +87849,7 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
87651
87849
  ` : ""}
87652
87850
  ${this.stepContents.get(stepArg)?.host ?? ""}
87653
87851
  ${isSelected && this.stepError ? b`<div class="step-error" role="alert">
87654
- <dees-icon icon="lucide:CircleAlert" iconSize="16"></dees-icon><span>${this.stepError}</span>
87852
+ <dees-icon icon="lucide:CircleAlert" iconSize="16"></dees-icon><span>${this.getStepErrorText()}</span>
87655
87853
  </div>` : ""}
87656
87854
  </div>
87657
87855
  <div slot="footer" class="step-footer">
@@ -87718,8 +87916,9 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
87718
87916
  }
87719
87917
  /**
87720
87918
  * What the counter under the ribbon reads, empty without a counted step.
87721
- * The surface holds it as `data-counter` too: the styles keep the room it
87722
- * takes beside the steps free on their other side as well.
87919
+ * While the ribbon shows, the surface holds it as `data-counter` too: the
87920
+ * styles keep the room it takes beside the steps free on their other side
87921
+ * as well.
87723
87922
  */
87724
87923
  getCounterText() {
87725
87924
  const counted = this.steps.filter((step) => step.countsAsStep !== false);
@@ -87728,6 +87927,20 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
87728
87927
  if (current < 0) return "";
87729
87928
  return this.stepCounter === "position" ? this.t("stepper.counterPosition", { current: current + 1 }) : this.t("stepper.counter", { current: current + 1, total: counted.length });
87730
87929
  }
87930
+ /** Whether the ribbon and its counter show: always, or under `ribbon: 'auto'` for two counted steps or more. */
87931
+ showsRibbon() {
87932
+ return this.ribbon !== "auto" || this.steps.filter((step) => step.countsAsStep !== false).length > 1;
87933
+ }
87934
+ /** The failure as it is kept: a thrown error, or the key of the stepper's own words for one that is no `Error`. */
87935
+ toStepFailure(error, key) {
87936
+ return error instanceof Error ? { error } : { key };
87937
+ }
87938
+ /** The current step's failure in words, read anew at every render: in the language the stepper speaks now. */
87939
+ getStepErrorText() {
87940
+ const failure = this.stepError;
87941
+ if (!failure) return "";
87942
+ return "error" in failure ? failure.error.message : this.t(failure.key);
87943
+ }
87731
87944
  /**
87732
87945
  * Arrow keys, Home and End move the focus along the ribbon's markers.
87733
87946
  * ArrowUp and ArrowDown go to the step before and after; ArrowLeft and
@@ -87802,7 +88015,7 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
87802
88015
  this.activeValidationStep?.abortController?.abort();
87803
88016
  if (this.activeValidationStep) this.activeValidationStep.validationFuncCalled = false;
87804
88017
  this.activeValidationStep = this.selectedStep;
87805
- this.stepError = "";
88018
+ this.stepError = null;
87806
88019
  this.progressRunning = false;
87807
88020
  this.actionPending = false;
87808
88021
  this.pendingAction = null;
@@ -87947,7 +88160,7 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
87947
88160
  try {
87948
88161
  await target.onReturnToStepFunc?.(this, this.shadowRoot.querySelector(".selected"));
87949
88162
  } catch (error) {
87950
- if (this.selectedStep === target) this.stepError = error instanceof Error ? error.message : this.t("stepper.returnFailed");
88163
+ if (this.selectedStep === target) this.stepError = this.toStepFailure(error, "stepper.returnFailed");
87951
88164
  }
87952
88165
  }
87953
88166
  }
@@ -88077,13 +88290,13 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
88077
88290
  this.actionPending = true;
88078
88291
  this.pendingAction = optionArg;
88079
88292
  this.actionStep = step;
88080
- this.stepError = "";
88293
+ this.stepError = null;
88081
88294
  try {
88082
88295
  if (isPrimary && form && !await form.gatherAndDispatch()) return;
88083
88296
  if (!this.isConnected || step !== this.selectedStep) return;
88084
88297
  await optionArg.action(this);
88085
88298
  } catch (error) {
88086
- if (step === this.selectedStep) this.stepError = error instanceof Error ? error.message : this.t("stepper.actionFailed");
88299
+ if (step === this.selectedStep) this.stepError = this.toStepFailure(error, "stepper.actionFailed");
88087
88300
  } finally {
88088
88301
  if (this.actionStep === step) {
88089
88302
  this.actionPending = false;
@@ -88146,8 +88359,8 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
88146
88359
  if (signal.aborted || !this.isConnected || this.selectedStep !== stepArg) {
88147
88360
  return;
88148
88361
  }
88149
- const errorText = error instanceof Error ? error.message : this.t("stepper.stepFailed");
88150
- this.stepError = errorText;
88362
+ this.stepError = this.toStepFailure(error, "stepper.stepFailed");
88363
+ const errorText = this.getStepErrorText();
88151
88364
  if (stepArg.progressStep) {
88152
88365
  this.appendProgressStepLine(errorText, stepArg);
88153
88366
  this.updateProgressStep(
@@ -88168,7 +88381,7 @@ var _DeesStepper = class _DeesStepper extends (_a120 = DeesElement, _steps_dec =
88168
88381
  if (!step?.validationFunc || this.progressRunning || this.actionPending) return;
88169
88382
  step.abortController?.abort();
88170
88383
  step.validationFuncCalled = false;
88171
- this.stepError = "";
88384
+ this.stepError = null;
88172
88385
  this.prepareStepForActivation(step);
88173
88386
  await this.activateSelectedStep();
88174
88387
  }
@@ -88318,6 +88531,7 @@ _stepperZIndex = new WeakMap();
88318
88531
  _stepCounter = new WeakMap();
88319
88532
  _layout3 = new WeakMap();
88320
88533
  _cardAlign = new WeakMap();
88534
+ _ribbon = new WeakMap();
88321
88535
  _activeForm = new WeakMap();
88322
88536
  _activeFormValid = new WeakMap();
88323
88537
  _stepError = new WeakMap();
@@ -88335,6 +88549,7 @@ __decorateElement(_init123, 4, "stepperZIndex", _stepperZIndex_dec, _DeesStepper
88335
88549
  __decorateElement(_init123, 4, "stepCounter", _stepCounter_dec, _DeesStepper, _stepCounter);
88336
88550
  __decorateElement(_init123, 4, "layout", _layout_dec3, _DeesStepper, _layout3);
88337
88551
  __decorateElement(_init123, 4, "cardAlign", _cardAlign_dec, _DeesStepper, _cardAlign);
88552
+ __decorateElement(_init123, 4, "ribbon", _ribbon_dec, _DeesStepper, _ribbon);
88338
88553
  __decorateElement(_init123, 4, "activeForm", _activeForm_dec, _DeesStepper, _activeForm);
88339
88554
  __decorateElement(_init123, 4, "activeFormValid", _activeFormValid_dec, _DeesStepper, _activeFormValid);
88340
88555
  __decorateElement(_init123, 4, "stepError", _stepError_dec, _DeesStepper, _stepError);
@@ -113918,7 +114133,7 @@ var DeesPdfViewer = _DeesPdfViewer;
113918
114133
  var demoFunc81 = /* @__PURE__ */ __name(() => mediaDemo("preview"), "demoFunc");
113919
114134
 
113920
114135
  // 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, _language_dec5, _contentType_dec2, _textContent_dec, _base64_dec, _file_dec, _url_dec, _a126, _DeesPreview_decorators, _init129, _url, _file, _base64, _textContent, _contentType2, _language5, _mimeType, _filename4, _showToolbar5, _showFilename, _frameless18, _resolvedType, _resolvedSrc, _resolvedText, _resolvedLang, _loading16, _error11;
114136
+ 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
114137
  var EXTENSION_MAP = {
113923
114138
  // Image
113924
114139
  jpg: "image",
@@ -114031,7 +114246,7 @@ var TYPE_ICONS = {
114031
114246
  unknown: "lucide:File"
114032
114247
  };
114033
114248
  _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 })], _language_dec5 = [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) {
114249
+ 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
114250
  constructor() {
114036
114251
  super(...arguments);
114037
114252
  __publicField(this, "t", dcLocalize(this));
@@ -114040,7 +114255,7 @@ var _DeesPreview = class _DeesPreview extends (_a126 = DeesElement, _url_dec = [
114040
114255
  __privateAdd(this, _base64, __runInitializers(_init129, 16, this, "")), __runInitializers(_init129, 19, this);
114041
114256
  __privateAdd(this, _textContent, __runInitializers(_init129, 20, this, "")), __runInitializers(_init129, 23, this);
114042
114257
  __privateAdd(this, _contentType2, __runInitializers(_init129, 24, this)), __runInitializers(_init129, 27, this);
114043
- __privateAdd(this, _language5, __runInitializers(_init129, 28, this, "")), __runInitializers(_init129, 31, this);
114258
+ __privateAdd(this, _language6, __runInitializers(_init129, 28, this, "")), __runInitializers(_init129, 31, this);
114044
114259
  __privateAdd(this, _mimeType, __runInitializers(_init129, 32, this, "")), __runInitializers(_init129, 35, this);
114045
114260
  __privateAdd(this, _filename4, __runInitializers(_init129, 36, this, "")), __runInitializers(_init129, 39, this);
114046
114261
  __privateAdd(this, _showToolbar5, __runInitializers(_init129, 40, this, true)), __runInitializers(_init129, 43, this);
@@ -114273,7 +114488,7 @@ _file = new WeakMap();
114273
114488
  _base64 = new WeakMap();
114274
114489
  _textContent = new WeakMap();
114275
114490
  _contentType2 = new WeakMap();
114276
- _language5 = new WeakMap();
114491
+ _language6 = new WeakMap();
114277
114492
  _mimeType = new WeakMap();
114278
114493
  _filename4 = new WeakMap();
114279
114494
  _showToolbar5 = new WeakMap();
@@ -114290,7 +114505,7 @@ __decorateElement(_init129, 4, "file", _file_dec, _DeesPreview, _file);
114290
114505
  __decorateElement(_init129, 4, "base64", _base64_dec, _DeesPreview, _base64);
114291
114506
  __decorateElement(_init129, 4, "textContent", _textContent_dec, _DeesPreview, _textContent);
114292
114507
  __decorateElement(_init129, 4, "contentType", _contentType_dec2, _DeesPreview, _contentType2);
114293
- __decorateElement(_init129, 4, "language", _language_dec5, _DeesPreview, _language5);
114508
+ __decorateElement(_init129, 4, "language", _language_dec6, _DeesPreview, _language6);
114294
114509
  __decorateElement(_init129, 4, "mimeType", _mimeType_dec, _DeesPreview, _mimeType);
114295
114510
  __decorateElement(_init129, 4, "filename", _filename_dec4, _DeesPreview, _filename4);
114296
114511
  __decorateElement(_init129, 4, "showToolbar", _showToolbar_dec5, _DeesPreview, _showToolbar5);
@@ -116293,14 +116508,14 @@ Action Items:
116293
116508
  }, "demo");
116294
116509
 
116295
116510
  // ts_web/elements/00group-media/dees-thumbnail-note/component.ts
116296
- var _isHovering_dec3, _language_dec6, _content_dec3, _title_dec3, _a132, _DeesThumbnailNote_decorators, _init135, _title3, _content3, _language6, _isHovering3;
116511
+ var _isHovering_dec3, _language_dec7, _content_dec3, _title_dec3, _a132, _DeesThumbnailNote_decorators, _init135, _title3, _content3, _language7, _isHovering3;
116297
116512
  _DeesThumbnailNote_decorators = [customElement("dees-thumbnail-note")];
116298
- var _DeesThumbnailNote = class _DeesThumbnailNote extends (_a132 = DeesThumbnailBase, _title_dec3 = [n({ type: String })], _content_dec3 = [n({ type: String })], _language_dec6 = [n({ type: String, reflect: true })], _isHovering_dec3 = [r2()], _a132) {
116513
+ 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
116514
  constructor() {
116300
116515
  super(...arguments);
116301
116516
  __privateAdd(this, _title3, __runInitializers(_init135, 8, this, "")), __runInitializers(_init135, 11, this);
116302
116517
  __privateAdd(this, _content3, __runInitializers(_init135, 12, this, "")), __runInitializers(_init135, 15, this);
116303
- __privateAdd(this, _language6, __runInitializers(_init135, 16, this, "")), __runInitializers(_init135, 19, this);
116518
+ __privateAdd(this, _language7, __runInitializers(_init135, 16, this, "")), __runInitializers(_init135, 19, this);
116304
116519
  __privateAdd(this, _isHovering3, __runInitializers(_init135, 20, this, false)), __runInitializers(_init135, 23, this);
116305
116520
  __publicField(this, "noteBodyElement", null);
116306
116521
  }
@@ -116377,11 +116592,11 @@ var _DeesThumbnailNote = class _DeesThumbnailNote extends (_a132 = DeesThumbnail
116377
116592
  _init135 = __decoratorStart(_a132);
116378
116593
  _title3 = new WeakMap();
116379
116594
  _content3 = new WeakMap();
116380
- _language6 = new WeakMap();
116595
+ _language7 = new WeakMap();
116381
116596
  _isHovering3 = new WeakMap();
116382
116597
  __decorateElement(_init135, 4, "title", _title_dec3, _DeesThumbnailNote, _title3);
116383
116598
  __decorateElement(_init135, 4, "content", _content_dec3, _DeesThumbnailNote, _content3);
116384
- __decorateElement(_init135, 4, "language", _language_dec6, _DeesThumbnailNote, _language6);
116599
+ __decorateElement(_init135, 4, "language", _language_dec7, _DeesThumbnailNote, _language7);
116385
116600
  __decorateElement(_init135, 4, "isHovering", _isHovering_dec3, _DeesThumbnailNote, _isHovering3);
116386
116601
  _DeesThumbnailNote = __decorateElement(_init135, 0, "DeesThumbnailNote", _DeesThumbnailNote_decorators, _DeesThumbnailNote);
116387
116602
  __name(_DeesThumbnailNote, "DeesThumbnailNote");
@@ -117540,7 +117755,7 @@ var _DeesSimpleAppDash = class _DeesSimpleAppDash extends (_a139 = DeesElement,
117540
117755
  this.terminalOpen = true;
117541
117756
  const request = ++this.terminalRequest;
117542
117757
  try {
117543
- const { DeesWorkspaceTerminal: DeesWorkspaceTerminal3 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-workspace-terminal-SD4GXHX5.js");
117758
+ const { DeesWorkspaceTerminal: DeesWorkspaceTerminal3 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-workspace-terminal-EJRHSZ5F.js");
117544
117759
  await this.updateComplete;
117545
117760
  if (!this.isConnected || request !== this.terminalRequest) return;
117546
117761
  const terminal = new DeesWorkspaceTerminal3();
@@ -122258,9 +122473,9 @@ var TypeScriptIntelliSenseManager = class {
122258
122473
  };
122259
122474
 
122260
122475
  // ts_web/elements/00group-workspace/dees-workspace-diff-editor/dees-workspace-diff-editor.ts
122261
- var _loadError_dec5, _filePath_dec2, _language_dec7, _modifiedLabel_dec, _originalLabel_dec, _modifiedContent_dec, _originalContent_dec, _a148, _DeesWorkspaceDiffEditor_decorators, _init156, _originalContent, _modifiedContent, _originalLabel, _modifiedLabel, _language7, _filePath2, _loadError5;
122476
+ 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
122477
  _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 })], _language_dec7 = [n({ type: String, reflect: true })], _filePath_dec2 = [n({ type: String, reflect: true })], _loadError_dec5 = [r2()], _a148) {
122478
+ 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
122479
  constructor() {
122265
122480
  super();
122266
122481
  __publicField(this, "t", dcLocalize(this));
@@ -122274,7 +122489,7 @@ var _DeesWorkspaceDiffEditor = class _DeesWorkspaceDiffEditor extends (_a148 = D
122274
122489
  __privateAdd(this, _modifiedContent, __runInitializers(_init156, 12, this, "")), __runInitializers(_init156, 15, this);
122275
122490
  __privateAdd(this, _originalLabel, __runInitializers(_init156, 16, this, "")), __runInitializers(_init156, 19, this);
122276
122491
  __privateAdd(this, _modifiedLabel, __runInitializers(_init156, 20, this, "")), __runInitializers(_init156, 23, this);
122277
- __privateAdd(this, _language7, __runInitializers(_init156, 24, this, "typescript")), __runInitializers(_init156, 27, this);
122492
+ __privateAdd(this, _language8, __runInitializers(_init156, 24, this, "typescript")), __runInitializers(_init156, 27, this);
122278
122493
  __privateAdd(this, _filePath2, __runInitializers(_init156, 28, this, "")), __runInitializers(_init156, 31, this);
122279
122494
  __privateAdd(this, _loadError5, __runInitializers(_init156, 32, this, "")), __runInitializers(_init156, 35, this);
122280
122495
  __publicField(this, "diffEditor", null);
@@ -122459,14 +122674,14 @@ _originalContent = new WeakMap();
122459
122674
  _modifiedContent = new WeakMap();
122460
122675
  _originalLabel = new WeakMap();
122461
122676
  _modifiedLabel = new WeakMap();
122462
- _language7 = new WeakMap();
122677
+ _language8 = new WeakMap();
122463
122678
  _filePath2 = new WeakMap();
122464
122679
  _loadError5 = new WeakMap();
122465
122680
  __decorateElement(_init156, 4, "originalContent", _originalContent_dec, _DeesWorkspaceDiffEditor, _originalContent);
122466
122681
  __decorateElement(_init156, 4, "modifiedContent", _modifiedContent_dec, _DeesWorkspaceDiffEditor, _modifiedContent);
122467
122682
  __decorateElement(_init156, 4, "originalLabel", _originalLabel_dec, _DeesWorkspaceDiffEditor, _originalLabel);
122468
122683
  __decorateElement(_init156, 4, "modifiedLabel", _modifiedLabel_dec, _DeesWorkspaceDiffEditor, _modifiedLabel);
122469
- __decorateElement(_init156, 4, "language", _language_dec7, _DeesWorkspaceDiffEditor, _language7);
122684
+ __decorateElement(_init156, 4, "language", _language_dec8, _DeesWorkspaceDiffEditor, _language8);
122470
122685
  __decorateElement(_init156, 4, "filePath", _filePath_dec2, _DeesWorkspaceDiffEditor, _filePath2);
122471
122686
  __decorateElement(_init156, 4, "loadError", _loadError_dec5, _DeesWorkspaceDiffEditor, _loadError5);
122472
122687
  _DeesWorkspaceDiffEditor = __decorateElement(_init156, 0, "DeesWorkspaceDiffEditor", _DeesWorkspaceDiffEditor_decorators, _DeesWorkspaceDiffEditor);
@@ -124544,7 +124759,7 @@ var bright = {
124544
124759
  // ts_web/00_commitinfo_data.ts
124545
124760
  var commitinfo = {
124546
124761
  name: "@design.estate/dees-catalog",
124547
- version: "21.45.0",
124762
+ version: "21.46.1",
124548
124763
  description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
124549
124764
  };
124550
124765
  export {