@design.estate/dees-catalog 24.3.0 → 24.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist_bundle/bundle.js +161 -259
  2. package/dist_bundle/bundle.js.map +1 -1
  3. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-7CM7S6EQ.js → chunk-LRGVCS7F.js} +2 -2
  4. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-R6EBIDCM.js → chunk-PKH6IGY6.js} +347 -4
  5. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-R6EBIDCM.js.map → chunk-PKH6IGY6.js.map} +1 -1
  6. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-Z3DSEMNI.js → dees-modal-ORXOZADW.js} +2 -2
  7. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-KPB3RVGL.js → dees-workspace-terminal-MUU2HDU3.js} +3 -3
  8. package/dist_ts_web/00_commitinfo_data.js +1 -1
  9. package/dist_ts_web/elements/00group-appui/dees-appui/dees-appui.d.ts +42 -23
  10. package/dist_ts_web/elements/00group-appui/dees-appui/dees-appui.demo.js +2 -3
  11. package/dist_ts_web/elements/00group-appui/dees-appui/dees-appui.js +93 -81
  12. package/dist_ts_web/elements/00group-appui/dees-appui/shell.storage.d.ts +11 -4
  13. package/dist_ts_web/elements/00group-appui/dees-appui/shell.storage.js +32 -9
  14. package/dist_ts_web/elements/00group-input/dees-input-multitoggle/dees-input-multitoggle.d.ts +8 -1
  15. package/dist_ts_web/elements/00group-input/dees-input-multitoggle/dees-input-multitoggle.demo.js +7 -1
  16. package/dist_ts_web/elements/00group-input/dees-input-multitoggle/dees-input-multitoggle.js +18 -5
  17. package/dist_ts_web/elements/00group-input/dees-input-tags/dees-input-tags.d.ts +4 -13
  18. package/dist_ts_web/elements/00group-input/dees-input-tags/dees-input-tags.js +29 -174
  19. package/dist_ts_web/elements/00group-input/dees-input-text/dees-input-text.d.ts +41 -0
  20. package/dist_ts_web/elements/00group-input/dees-input-text/dees-input-text.demo.js +16 -1
  21. package/dist_ts_web/elements/00group-input/dees-input-text/dees-input-text.js +103 -3
  22. package/dist_ts_web/elements/00group-input/suggestion-list.d.ts +102 -0
  23. package/dist_ts_web/elements/00group-input/suggestion-list.js +300 -0
  24. package/dist_ts_web/elements/interfaces/appconfig.d.ts +28 -10
  25. package/package.json +1 -1
  26. package/readme.md +36 -7
  27. package/scripts/token-baseline.json +1 -1
  28. package/ts_web/00_commitinfo_data.ts +1 -1
  29. package/ts_web/elements/00group-appui/dees-appui/dees-appui.demo.ts +1 -2
  30. package/ts_web/elements/00group-appui/dees-appui/dees-appui.ts +102 -89
  31. package/ts_web/elements/00group-appui/dees-appui/readme.md +42 -26
  32. package/ts_web/elements/00group-appui/dees-appui/shell.storage.ts +42 -11
  33. package/ts_web/elements/00group-input/dees-input-multitoggle/dees-input-multitoggle.demo.ts +6 -0
  34. package/ts_web/elements/00group-input/dees-input-multitoggle/dees-input-multitoggle.ts +24 -7
  35. package/ts_web/elements/00group-input/dees-input-tags/dees-input-tags.ts +27 -171
  36. package/ts_web/elements/00group-input/dees-input-text/dees-input-text.demo.ts +17 -0
  37. package/ts_web/elements/00group-input/dees-input-text/dees-input-text.ts +106 -1
  38. package/ts_web/elements/00group-input/suggestion-list.ts +323 -0
  39. package/ts_web/elements/interfaces/appconfig.ts +29 -10
  40. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-7CM7S6EQ.js.map → chunk-LRGVCS7F.js.map} +0 -0
  41. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-Z3DSEMNI.js.map → dees-modal-ORXOZADW.js.map} +0 -0
  42. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-KPB3RVGL.js.map → dees-workspace-terminal-MUU2HDU3.js.map} +0 -0
@@ -25,7 +25,7 @@ import {
25
25
  ownAppuiLabels,
26
26
  resolveAppuiLabels,
27
27
  xtermStyles
28
- } from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-7CM7S6EQ.js";
28
+ } from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-LRGVCS7F.js";
29
29
  import {
30
30
  ActionRunController,
31
31
  BarInfoController,
@@ -54,6 +54,7 @@ import {
54
54
  OverlayScrollbarController,
55
55
  OverlayScrollbars,
56
56
  ScrollEdgeShadowController,
57
+ SuggestionListController,
57
58
  ZIndexRegistry,
58
59
  actionControlStyles,
59
60
  actionErrorEventName,
@@ -89,6 +90,7 @@ import {
89
90
  getOverlayContainer,
90
91
  getZIndex,
91
92
  i,
93
+ inputSuggestion,
92
94
  insetInlineStyles,
93
95
  listenForScrollAround,
94
96
  n,
@@ -114,6 +116,7 @@ import {
114
116
  scrollEdgeShadowStyles,
115
117
  showDemoResult,
116
118
  smartstring_indent_exports,
119
+ suggestionListStyles,
117
120
  systemFontFamily,
118
121
  terminalFontFamily,
119
122
  terminalTheme,
@@ -129,7 +132,7 @@ import {
129
132
  workspaceVisibility,
130
133
  zIndexLayers,
131
134
  zIndexRegistry
132
- } from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-R6EBIDCM.js";
135
+ } from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-PKH6IGY6.js";
133
136
  import {
134
137
  dcMessages,
135
138
  dcSourceI18n,
@@ -4262,6 +4265,12 @@ var demoFunc4 = /* @__PURE__ */ __name(() => demoPage("Segmented controls", "Cho
4262
4265
  <dees-input-multitoggle label="Managed access" .options=${["Private", "Team", "Public"]} selectedOption="Team" disabled></dees-input-multitoggle>
4263
4266
  </div>${demoOutput("Change a setting to inspect its value.")}
4264
4267
  `)}
4268
+ ${demoSection("Toned choices", "A choice whose state matters takes a tone while it is selected. Unselected, it looks like any other.", b`
4269
+ <dees-input-multitoggle label="Permission mode"
4270
+ .options=${[{ key: "ask", label: "Ask first" }, { key: "edits", label: "Accept edits", tone: "info" }, { key: "bypass", label: "Bypass", icon: "lucide:ShieldOff", tone: "warning", description: "Every action runs without asking." }]}
4271
+ .selectedOption=${"bypass"} @change=${changed}></dees-input-multitoggle>
4272
+ ${demoOutput("bypass")}
4273
+ `)}
4265
4274
  ${demoSection("Form values", "The form collects the selected key and the boolean value.", b`
4266
4275
  <dees-form @formData=${(event) => showDemoResult(event.currentTarget, event.detail)}>
4267
4276
  <dees-input-multitoggle key="view" label="Default view" .options=${[{ key: "list", label: "List" }, { key: "columns", label: "Columns" }]} selectedOption="list"></dees-input-multitoggle>
@@ -4314,6 +4323,9 @@ var _DeesInputMultitoggle = class _DeesInputMultitoggle extends (_a6 = DeesInput
4314
4323
  optionDisabled(option) {
4315
4324
  return this.disabled || typeof option === "object" && !!option.disabled;
4316
4325
  }
4326
+ optionTone(option) {
4327
+ return typeof option === "object" ? option.tone : void 0;
4328
+ }
4317
4329
  willUpdate(changed3) {
4318
4330
  if (this.type === "boolean") {
4319
4331
  const oldTrue = String(changed3.get("booleanTrueName") ?? this.booleanTrueName);
@@ -4327,11 +4339,12 @@ var _DeesInputMultitoggle = class _DeesInputMultitoggle extends (_a6 = DeesInput
4327
4339
  }
4328
4340
  }
4329
4341
  render() {
4342
+ const selectedTone = this.optionTone(this.options.find((option) => this.optionKey(option) === this.selectedOption));
4330
4343
  const focusKey = this.options.some((option) => this.optionKey(option) === this.selectedOption && !this.optionDisabled(option)) ? this.selectedOption : this.options.find((option) => !this.optionDisabled(option));
4331
4344
  return b`<div class="input-wrapper">
4332
4345
  ${this.labelPosition !== "none" && this.label ? this.renderLabel() : ""}
4333
4346
  <div class="selections input-container ${this.size === "sm" ? "small" : ""}" role="radiogroup" aria-label=${this.label || this.key || "Options"} aria-disabled=${this.disabled}>
4334
- <div class="indicator" aria-hidden="true"></div>
4347
+ <div class="indicator" aria-hidden="true" data-tone=${selectedTone ?? ""}></div>
4335
4348
  ${this.options.map((option) => {
4336
4349
  const key = this.optionKey(option);
4337
4350
  const label = this.optionLabel(option);
@@ -4339,7 +4352,8 @@ var _DeesInputMultitoggle = class _DeesInputMultitoggle extends (_a6 = DeesInput
4339
4352
  const icon = typeof option === "string" ? void 0 : option.icon;
4340
4353
  const badge = typeof option === "string" ? void 0 : option.badge;
4341
4354
  const description = typeof option === "string" ? void 0 : option.description;
4342
- return b`<button type="button" role="radio" class="option ${selected2 ? "selected" : ""}" data-option=${label} .title=${description ?? ""}
4355
+ const tone = this.optionTone(option);
4356
+ return b`<button type="button" role="radio" class="option ${selected2 ? "selected" : ""}" data-option=${label} data-tone=${tone ?? ""} .title=${description ?? ""}
4343
4357
  aria-checked=${selected2} ?disabled=${this.optionDisabled(option)} tabindex=${key === (typeof focusKey === "object" ? focusKey.key : focusKey) ? 0 : -1}
4344
4358
  @click=${() => this.handleSelection(key)} @keydown=${this.handleKeydown}><span class="option-content">${icon ? b`<dees-icon .icon=${icon} iconSize="14" aria-hidden="true"></dees-icon>` : ""}<span class="option-label">${label}</span>${badge !== void 0 ? b`<span class="option-badge">${badge}</span>` : ""}</span></button>`;
4345
4359
  })}
@@ -4417,17 +4431,27 @@ __publicField(_DeesInputMultitoggle, "demo", demoFunc4);
4417
4431
  __publicField(_DeesInputMultitoggle, "demoGroups", ["Input"]);
4418
4432
  __publicField(_DeesInputMultitoggle, "styles", [themeDefaultStyles, ...DeesInputBase.baseStyles, cssManager.defaultStyles, i`
4419
4433
  :host { display: block; min-width: 0; font-family: var(--dees-font-family); color: var(--dees-color-text-primary); }
4420
- .selections { position: relative; display: inline-flex; flex-wrap: wrap; align-items: stretch; gap: var(--dees-spacing-2xs); max-width: 100%; padding: var(--dees-spacing-2xs); border-radius: var(--dees-radius-lg); background: var(--dees-color-fill-tertiary); user-select: none; }
4434
+ /* The tone is the component's own: reset inside the shadow tree, so a value set on an ancestor
4435
+ never reaches an untoned option, and set only on a toned option and the segment under it. */
4436
+ .selections { --multitoggle-tone: initial; position: relative; display: inline-flex; flex-wrap: wrap; align-items: stretch; gap: var(--dees-spacing-2xs); max-width: 100%; padding: var(--dees-spacing-2xs); border-radius: var(--dees-radius-lg); background: var(--dees-color-fill-tertiary); user-select: none; }
4421
4437
  .option { position: relative; display: grid; place-items: center; flex: 1 0 auto; min-width: 0; max-width: 100%; min-height: calc(var(--dees-input-height) - 4px); padding: var(--dees-spacing-2xs) var(--dees-spacing-md); border: 0; border-radius: calc(var(--dees-radius-lg) - 2px); background: transparent; color: var(--dees-color-text-secondary); font: 13px/1.4 var(--dees-font-family); text-align: center; overflow-wrap: anywhere; cursor: pointer; z-index: 1; transition: color var(--dees-transition-fast) var(--dees-ease-standard), background-color var(--dees-transition-fast) var(--dees-ease-standard); }
4422
4438
  .option-content, .option::after { grid-area: 1 / 1; }
4423
4439
  .option-content { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; }
4424
4440
  .option-content dees-icon { flex-shrink: 0; }
4425
4441
  .option-badge { padding: 0 5px; border-radius: var(--dees-radius-sm); background: var(--dees-color-fill-tertiary); color: var(--dees-color-text-secondary); font-size: 10px; line-height: 16px; }
4426
4442
  .option::after { content: attr(data-option); visibility: hidden; font-weight: 600; pointer-events: none; }
4427
- .option.selected { color: var(--dees-color-text-primary); font-weight: 600; }
4443
+ .option.selected { color: var(--multitoggle-tone, var(--dees-color-text-primary)); font-weight: 600; }
4428
4444
  .option:focus-visible { outline: var(--dees-line-width-focus-ring) solid var(--dees-color-focus-ring); outline-offset: 1px; }
4429
4445
  .option:disabled { opacity: .5; cursor: default; }
4446
+ [data-tone='neutral'] { --multitoggle-tone: var(--dees-color-text-secondary); }
4447
+ [data-tone='info'] { --multitoggle-tone: var(--dees-color-text-info); }
4448
+ [data-tone='success'] { --multitoggle-tone: var(--dees-color-text-success); }
4449
+ [data-tone='warning'] { --multitoggle-tone: var(--dees-color-text-warning); }
4450
+ [data-tone='error'] { --multitoggle-tone: var(--dees-color-text-error); }
4430
4451
  .indicator { position: absolute; opacity: 0; border-radius: calc(var(--dees-radius-lg) - 2px); background: var(--dees-color-control-thumb); box-shadow: var(--dees-shadow-xs), inset 0 0 0 var(--dees-line-width-hairline) var(--dees-color-surface-highlight); pointer-events: none; transition: transform var(--dees-transition-fast) var(--dees-ease-standard), width var(--dees-transition-fast) var(--dees-ease-standard), height var(--dees-transition-fast) var(--dees-ease-standard); left: 0; top: 0; }
4452
+ /* A toned selection: the segment takes a tint of the tone over the surface and a hairline in it;
4453
+ the tone's text token reads on the tinted surface in both themes. */
4454
+ .indicator:not([data-tone='']) { background: color-mix(in srgb, var(--multitoggle-tone, transparent) 14%, var(--dees-color-bg-primary)); box-shadow: var(--dees-shadow-xs), inset 0 0 0 var(--dees-line-width-hairline) color-mix(in srgb, var(--multitoggle-tone, transparent) 45%, transparent); }
4431
4455
  .selections[aria-disabled='true'] { opacity: .5; }
4432
4456
  .selections[aria-disabled='true'] .option:disabled { opacity: 1; }
4433
4457
  .small .option { min-height: 24px; padding: 1px 10px; font-size: 12px; }
@@ -8967,10 +8991,10 @@ var tableStyles = [
8967
8991
  var demoFunc11 = /* @__PURE__ */ __name(() => focusedInputDemo("tags"), "demoFunc");
8968
8992
 
8969
8993
  // ts_web/elements/00group-input/dees-input-tags/dees-input-tags.ts
8970
- var _validationText_dec2, _highlightedSuggestionIndex_dec, _showSuggestions_dec, _inputValue_dec, _suggestions_dec, _maxTags_dec, _placeholder_dec3, _value_dec4, _a15, _DeesInputTags_decorators, _init17, _value4, _placeholder3, _maxTags, _suggestions, _inputValue, _showSuggestions, _highlightedSuggestionIndex, _validationText2;
8994
+ var _validationText_dec2, _inputValue_dec, _suggestions_dec, _maxTags_dec, _placeholder_dec3, _value_dec4, _a15, _DeesInputTags_decorators, _init17, _value4, _placeholder3, _maxTags, _suggestions, _inputValue, _validationText2;
8971
8995
  var tagRemoveGlyphPx = 10;
8972
8996
  _DeesInputTags_decorators = [customElement("dees-input-tags")];
8973
- var _DeesInputTags = class _DeesInputTags extends (_a15 = DeesInputBase, _value_dec4 = [n({ type: Array })], _placeholder_dec3 = [n({ type: String, reflect: true })], _maxTags_dec = [n({ type: Number, reflect: true })], _suggestions_dec = [n({ type: Array })], _inputValue_dec = [r2()], _showSuggestions_dec = [r2()], _highlightedSuggestionIndex_dec = [r2()], _validationText_dec2 = [n({ type: String, reflect: true })], _a15) {
8997
+ var _DeesInputTags = class _DeesInputTags extends (_a15 = DeesInputBase, _value_dec4 = [n({ type: Array })], _placeholder_dec3 = [n({ type: String, reflect: true })], _maxTags_dec = [n({ type: Number, reflect: true })], _suggestions_dec = [n({ type: Array })], _inputValue_dec = [r2()], _validationText_dec2 = [n({ type: String, reflect: true })], _a15) {
8974
8998
  constructor() {
8975
8999
  super(...arguments);
8976
9000
  __publicField(this, "t", dcLocalize(this));
@@ -8979,49 +9003,23 @@ var _DeesInputTags = class _DeesInputTags extends (_a15 = DeesInputBase, _value_
8979
9003
  __privateAdd(this, _maxTags, __runInitializers(_init17, 16, this, 0)), __runInitializers(_init17, 19, this);
8980
9004
  __privateAdd(this, _suggestions, __runInitializers(_init17, 20, this, [])), __runInitializers(_init17, 23, this);
8981
9005
  __privateAdd(this, _inputValue, __runInitializers(_init17, 24, this, "")), __runInitializers(_init17, 27, this);
8982
- __privateAdd(this, _showSuggestions, __runInitializers(_init17, 28, this, false)), __runInitializers(_init17, 31, this);
8983
- __privateAdd(this, _highlightedSuggestionIndex, __runInitializers(_init17, 32, this, -1)), __runInitializers(_init17, 35, this);
8984
- __privateAdd(this, _validationText2, __runInitializers(_init17, 36, this, "")), __runInitializers(_init17, 39, this);
8985
- /** Ends the listeners that keep the open suggestions beside the field. */
8986
- __publicField(this, "suggestionsTracking");
8987
- /** The suggestions' scrollbar, shown while they scroll. */
8988
- __publicField(this, "scrollbars", new OverlayScrollbarController(
8989
- this,
8990
- () => this.shadowRoot?.querySelector(".suggestions-list")
8991
- ));
8992
- /**
8993
- * The open suggestions stand in the top layer, below the field or above it without room there,
8994
- * so no scroll container or clipping ancestor around the field cuts them off. They follow the
8995
- * field as it scrolls or grows and step out of view while none of it shows.
8996
- */
8997
- __publicField(this, "placeSuggestions", /* @__PURE__ */ __name(() => {
8998
- const list = this.shadowRoot?.querySelector(".suggestions-dropdown");
8999
- const field = this.shadowRoot?.querySelector(".tags-container");
9000
- if (!list || !field) return;
9001
- const shown = visibleRect(field);
9002
- if (!shown) {
9003
- if (list.matches(":popover-open")) list.hidePopover();
9004
- return;
9005
- }
9006
- if (!list.matches(":popover-open")) list.showPopover();
9007
- const box = field.getBoundingClientRect();
9008
- list.style.width = `${box.width}px`;
9009
- const placed = placeAnchored({
9010
- anchor: { left: box.left, right: box.right, top: shown.top, bottom: shown.bottom },
9011
- width: box.width,
9012
- height: list.offsetHeight,
9013
- placement: "bottom",
9014
- flip: true,
9015
- gap: 4
9016
- });
9017
- list.style.left = `${placed.left}px`;
9018
- list.style.top = `${placed.top}px`;
9019
- }, "placeSuggestions"));
9006
+ __privateAdd(this, _validationText2, __runInitializers(_init17, 28, this, "")), __runInitializers(_init17, 31, this);
9007
+ /** The suggestions under the field, as a combobox list. */
9008
+ __publicField(this, "suggestionList", new SuggestionListController(this, {
9009
+ anchor: /* @__PURE__ */ __name(() => this.shadowRoot?.querySelector(".tags-container"), "anchor"),
9010
+ pick: /* @__PURE__ */ __name((index) => {
9011
+ const suggestion = this.filteredSuggestions[index];
9012
+ if (suggestion) this.addTag(suggestion);
9013
+ }, "pick")
9014
+ }));
9020
9015
  }
9021
- render() {
9022
- const filteredSuggestions = this.suggestions.filter(
9016
+ /** The suggestions not yet a tag that hold the typed text. */
9017
+ get filteredSuggestions() {
9018
+ return this.suggestions.filter(
9023
9019
  (suggestion) => !this.value.includes(suggestion) && suggestion.toLowerCase().includes(this.inputValue.toLowerCase())
9024
9020
  );
9021
+ }
9022
+ render() {
9025
9023
  return b`
9026
9024
  <div class="input-wrapper">
9027
9025
  ${this.renderLabel()}
@@ -9058,22 +9056,7 @@ var _DeesInputTags = class _DeesInputTags extends (_a15 = DeesInputBase, _value_
9058
9056
  ` : ""}
9059
9057
  </div>
9060
9058
 
9061
- ${this.showSuggestions && filteredSuggestions.length > 0 ? b`
9062
- <div class="suggestions-dropdown" popover="manual"><div class="suggestions-list">
9063
- ${filteredSuggestions.map((suggestion, index) => b`
9064
- <div
9065
- class="suggestion ${index === this.highlightedSuggestionIndex ? "highlighted" : ""}"
9066
- @mousedown=${(e2) => {
9067
- e2.preventDefault();
9068
- this.addTag(suggestion);
9069
- }}
9070
- @mouseenter=${() => this.highlightedSuggestionIndex = index}
9071
- >
9072
- ${suggestion}
9073
- </div>
9074
- `)}
9075
- </div></div>
9076
- ` : ""}
9059
+ ${this.suggestionList.render(this.filteredSuggestions.map(inputSuggestion), this.label)}
9077
9060
 
9078
9061
  ${this.validationText ? b`
9079
9062
  <div class="validation-message">${this.validationText}</div>
@@ -9085,28 +9068,10 @@ var _DeesInputTags = class _DeesInputTags extends (_a15 = DeesInputBase, _value_
9085
9068
  }
9086
9069
  updated(changedProperties) {
9087
9070
  super.updated(changedProperties);
9088
- const list = this.shadowRoot.querySelector(".suggestions-dropdown");
9089
- if (!list) {
9090
- this.suggestionsTracking?.abort();
9091
- this.suggestionsTracking = void 0;
9092
- return;
9093
- }
9094
- if (!this.suggestionsTracking) {
9095
- const field = this.shadowRoot.querySelector(".tags-container");
9096
- const tracking = new AbortController();
9097
- this.suggestionsTracking = tracking;
9098
- listenForScrollAround(field, this.placeSuggestions, tracking.signal);
9099
- window.addEventListener("resize", this.placeSuggestions, { passive: true, signal: tracking.signal });
9100
- const observer = new ResizeObserver(this.placeSuggestions);
9101
- observer.observe(field);
9102
- tracking.signal.addEventListener("abort", () => observer.disconnect());
9071
+ const input = this.shadowRoot.querySelector(".tag-input");
9072
+ if (input) {
9073
+ this.suggestionList.applyComboboxAttributes(input, this.filteredSuggestions.length, this.suggestions.length > 0);
9103
9074
  }
9104
- this.placeSuggestions();
9105
- }
9106
- async disconnectedCallback() {
9107
- this.suggestionsTracking?.abort();
9108
- this.suggestionsTracking = void 0;
9109
- await super.disconnectedCallback();
9110
9075
  }
9111
9076
  handleContainerClick(e2) {
9112
9077
  if (this.disabled) return;
@@ -9138,48 +9103,25 @@ var _DeesInputTags = class _DeesInputTags extends (_a15 = DeesInputBase, _value_
9138
9103
  }
9139
9104
  handleKeyDown(e2) {
9140
9105
  if (this.disabled || e2.isComposing) return;
9141
- const input = e2.target;
9106
+ if (this.suggestionList.handleKeydown(e2, this.filteredSuggestions.length)) return;
9142
9107
  if (e2.key === "Enter") {
9143
9108
  e2.preventDefault();
9144
- if (this.highlightedSuggestionIndex >= 0 && this.showSuggestions) {
9145
- const filteredSuggestions = this.suggestions.filter(
9146
- (suggestion) => !this.value.includes(suggestion) && suggestion.toLowerCase().includes(this.inputValue.toLowerCase())
9147
- );
9148
- if (filteredSuggestions[this.highlightedSuggestionIndex]) {
9149
- this.addTag(filteredSuggestions[this.highlightedSuggestionIndex]);
9150
- }
9151
- } else if (this.inputValue.trim()) {
9109
+ if (this.inputValue.trim()) {
9152
9110
  this.addTag(this.inputValue.trim());
9153
9111
  }
9154
9112
  } else if (e2.key === "Backspace" && !this.inputValue && this.value.length > 0) {
9155
9113
  this.removeTag(e2, this.value[this.value.length - 1]);
9156
- } else if (e2.key === "ArrowDown" && this.showSuggestions) {
9157
- e2.preventDefault();
9158
- const filteredCount = this.suggestions.filter(
9159
- (s) => !this.value.includes(s) && s.toLowerCase().includes(this.inputValue.toLowerCase())
9160
- ).length;
9161
- this.highlightedSuggestionIndex = Math.min(
9162
- this.highlightedSuggestionIndex + 1,
9163
- filteredCount - 1
9164
- );
9165
- } else if (e2.key === "ArrowUp" && this.showSuggestions) {
9166
- e2.preventDefault();
9167
- this.highlightedSuggestionIndex = Math.max(this.highlightedSuggestionIndex - 1, 0);
9168
9114
  } else if (e2.key === "Tab") {
9169
9115
  this.addPendingInput();
9170
- } else if (e2.key === "Escape") {
9171
- this.showSuggestions = false;
9172
- this.highlightedSuggestionIndex = -1;
9173
9116
  }
9174
9117
  }
9175
9118
  handleFocus() {
9176
9119
  if (this.suggestions.length > 0) {
9177
- this.showSuggestions = true;
9120
+ this.suggestionList.show();
9178
9121
  }
9179
9122
  }
9180
9123
  handleBlur(e2) {
9181
- this.showSuggestions = false;
9182
- this.highlightedSuggestionIndex = -1;
9124
+ this.suggestionList.hide();
9183
9125
  const input = e2.target;
9184
9126
  if (this.shadowRoot?.activeElement === input) return;
9185
9127
  this.addPendingInput();
@@ -9211,8 +9153,7 @@ var _DeesInputTags = class _DeesInputTags extends (_a15 = DeesInputBase, _value_
9211
9153
  if (!tag || this.value.includes(tag)) return;
9212
9154
  if (this.maxTags && this.value.length >= this.maxTags) return;
9213
9155
  this.value = [...this.value, tag];
9214
- this.showSuggestions = false;
9215
- this.highlightedSuggestionIndex = -1;
9156
+ this.suggestionList.hide();
9216
9157
  this.clearInput();
9217
9158
  this.emitChange();
9218
9159
  }
@@ -9248,16 +9189,12 @@ _placeholder3 = new WeakMap();
9248
9189
  _maxTags = new WeakMap();
9249
9190
  _suggestions = new WeakMap();
9250
9191
  _inputValue = new WeakMap();
9251
- _showSuggestions = new WeakMap();
9252
- _highlightedSuggestionIndex = new WeakMap();
9253
9192
  _validationText2 = new WeakMap();
9254
9193
  __decorateElement(_init17, 4, "value", _value_dec4, _DeesInputTags, _value4);
9255
9194
  __decorateElement(_init17, 4, "placeholder", _placeholder_dec3, _DeesInputTags, _placeholder3);
9256
9195
  __decorateElement(_init17, 4, "maxTags", _maxTags_dec, _DeesInputTags, _maxTags);
9257
9196
  __decorateElement(_init17, 4, "suggestions", _suggestions_dec, _DeesInputTags, _suggestions);
9258
9197
  __decorateElement(_init17, 4, "inputValue", _inputValue_dec, _DeesInputTags, _inputValue);
9259
- __decorateElement(_init17, 4, "showSuggestions", _showSuggestions_dec, _DeesInputTags, _showSuggestions);
9260
- __decorateElement(_init17, 4, "highlightedSuggestionIndex", _highlightedSuggestionIndex_dec, _DeesInputTags, _highlightedSuggestionIndex);
9261
9198
  __decorateElement(_init17, 4, "validationText", _validationText_dec2, _DeesInputTags, _validationText2);
9262
9199
  _DeesInputTags = __decorateElement(_init17, 0, "DeesInputTags", _DeesInputTags_decorators, _DeesInputTags);
9263
9200
  __name(_DeesInputTags, "DeesInputTags");
@@ -9270,6 +9207,7 @@ __publicField(_DeesInputTags, "styles", [
9270
9207
  ...DeesInputBase.baseStyles,
9271
9208
  cssManager.defaultStyles,
9272
9209
  overlayScrollbarStyles,
9210
+ suggestionListStyles,
9273
9211
  i`
9274
9212
  :host {
9275
9213
  display: block;
@@ -9377,58 +9315,6 @@ __publicField(_DeesInputTags, "styles", [
9377
9315
  cursor: not-allowed;
9378
9316
  }
9379
9317
 
9380
- /* Suggestions: a popover in the top layer, placed below the field by placeSuggestions.
9381
- The list scrolls inside it, the frame its scrollbar is placed in. */
9382
- .suggestions-dropdown {
9383
- position: fixed;
9384
- inset: auto;
9385
- margin: 0;
9386
- padding: 0;
9387
- color: inherit;
9388
- background: var(--dees-material-regular-bg-opaque);
9389
- border: var(--dees-line-width-hairline) solid var(--dees-color-border-default);
9390
- border-radius: var(--dees-radius-lg);
9391
- corner-shape: var(--dees-corner-shape);
9392
- box-shadow: var(--dees-shadow-lg);
9393
- overflow: hidden;
9394
- }
9395
-
9396
- .suggestions-list {
9397
- max-height: calc(200px - 2 * var(--dees-line-width-hairline));
9398
- overflow-y: auto;
9399
- }
9400
-
9401
- @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
9402
- .suggestions-dropdown {
9403
- background: var(--dees-material-regular-bg-opaque);
9404
- }
9405
- }
9406
-
9407
- @media (prefers-reduced-transparency: reduce) {
9408
- .suggestions-dropdown {
9409
- background: var(--dees-material-regular-bg-opaque);
9410
- -webkit-backdrop-filter: none;
9411
- backdrop-filter: none;
9412
- }
9413
- }
9414
-
9415
- .suggestion {
9416
- padding: 6px 10px;
9417
- cursor: pointer;
9418
- transition: background-color var(--dees-transition-fast) var(--dees-ease-standard);
9419
- font-size: 14px;
9420
- color: var(--dees-color-text-primary);
9421
- }
9422
-
9423
- .suggestion:hover {
9424
- background: var(--dees-color-hover);
9425
- }
9426
-
9427
- .suggestion.highlighted {
9428
- background: var(--dees-color-active);
9429
- color: var(--dees-color-text-primary);
9430
- }
9431
-
9432
9318
  /* Validation styles */
9433
9319
  .validation-message {
9434
9320
  color: var(--dees-color-accent-error);
@@ -65164,8 +65050,7 @@ var layoutIcons = { browse: "PanelLeft", inspect: "PanelsTopLeft", focus: "Maxim
65164
65050
  var assistantReply = "edge-eu is back within its 200 ms latency target, and its database connections have recovered. The runbook for the next incident is in Files, under runbooks/latency.md.";
65165
65051
  var keptKeys = /* @__PURE__ */ new Set([
65166
65052
  "dees-appui.secondaryPaneWidth",
65167
- "dees-appui.activityPaneWidth",
65168
- "dees-appui.assistantPaneWidth",
65053
+ "dees-appui.asidePaneWidth",
65169
65054
  "dees-appui.lastView"
65170
65055
  ]);
65171
65056
  var sessionShellStorage = {
@@ -70294,6 +70179,9 @@ var ViewRegistry = class {
70294
70179
 
70295
70180
  // ts_web/elements/00group-appui/dees-appui/shell.storage.ts
70296
70181
  var paneWidthKey = /* @__PURE__ */ __name((pane) => `${pane}PaneWidth`, "paneWidthKey");
70182
+ var supersededKeys = {
70183
+ asidePaneWidth: ["assistantPaneWidth", "activityPaneWidth"]
70184
+ };
70297
70185
  var storageKey = /* @__PURE__ */ __name((key) => `dees-appui.${key}`, "storageKey");
70298
70186
  var isBoolean = /* @__PURE__ */ __name((value) => typeof value === "boolean", "isBoolean");
70299
70187
  var isWidth = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value), "isWidth");
@@ -70304,6 +70192,7 @@ var storedShapes = {
70304
70192
  mainMenuCollapsed: isBoolean,
70305
70193
  secondaryMenuCollapsed: isBoolean,
70306
70194
  secondaryPaneWidth: isWidth,
70195
+ asidePaneWidth: isWidth,
70307
70196
  activityPaneWidth: isWidth,
70308
70197
  assistantPaneWidth: isWidth,
70309
70198
  aside: /* @__PURE__ */ __name((value) => value === null || value === "activity" || value === "assistant", "aside"),
@@ -70331,20 +70220,28 @@ var ShellStorage = class {
70331
70220
  * Applies a key's stored value. An adapter that answers at once is applied
70332
70221
  * at once, before the render the caller is part of, so nothing shows the
70333
70222
  * value it replaces. A later answer is applied when it arrives, unless
70334
- * another storage took over or the key was written meanwhile. Resolves once
70335
- * the answer is applied or dropped.
70223
+ * another storage took over or the key was written meanwhile. The keys it
70224
+ * superseded are asked with it; while the key holds nothing usable, the
70225
+ * first of them that does is applied and written under the key. Resolves
70226
+ * once the answer is applied or dropped.
70336
70227
  */
70337
70228
  restore(key, apply) {
70229
+ const sources = [key, ...supersededKeys[key] ?? []];
70338
70230
  const settle = /* @__PURE__ */ __name((stored) => {
70339
- const value = this.decode(key, stored);
70340
- if (value !== void 0) apply(value);
70231
+ for (const [index, source] of sources.entries()) {
70232
+ const value = this.decode(source, stored[index]);
70233
+ if (value === void 0) continue;
70234
+ apply(value);
70235
+ if (source !== key) this.write(key, value);
70236
+ return;
70237
+ }
70341
70238
  }, "settle");
70342
- const answer2 = this.readStored(key);
70343
- if (!(answer2 instanceof Promise)) {
70344
- settle(answer2);
70239
+ const answers = sources.map((source) => this.readStored(source));
70240
+ if (!answers.some((answer2) => answer2 instanceof Promise)) {
70241
+ settle(answers);
70345
70242
  return Promise.resolve();
70346
70243
  }
70347
- return answer2.then((stored) => {
70244
+ return Promise.all(answers).then((stored) => {
70348
70245
  if (!this.retired && !this.written.has(key)) settle(stored);
70349
70246
  });
70350
70247
  }
@@ -72802,6 +72699,7 @@ var assertAsideAvailable = /* @__PURE__ */ __name((aside, assistant) => {
72802
72699
  throw new Error("The side panel can show the assistant only when the configuration has one.");
72803
72700
  }
72804
72701
  }, "assertAsideAvailable");
72702
+ var configuredAsideWidth = /* @__PURE__ */ __name((config) => config.asideWidth ?? config.assistant?.width ?? config.activityLog?.width, "configuredAsideWidth");
72805
72703
  var assertFinitePaneWidth = /* @__PURE__ */ __name((pane, width) => {
72806
72704
  if (!Number.isFinite(width)) {
72807
72705
  throw new RangeError(`The ${pane} pane width must be a finite number of pixels, not ${width}.`);
@@ -72818,6 +72716,7 @@ var assertValidConfig = /* @__PURE__ */ __name((config) => {
72818
72716
  if (config.notFoundView && !config.views.some((view) => view.id === config.notFoundView)) {
72819
72717
  throw new Error(`The not-found view "${config.notFoundView}" must be one of the configured views.`);
72820
72718
  }
72719
+ if (config.asideWidth !== void 0) assertFinitePaneWidth("aside", config.asideWidth);
72821
72720
  if (config.activityLog?.width !== void 0) assertFinitePaneWidth("activity", config.activityLog.width);
72822
72721
  if (config.assistant?.width !== void 0) assertFinitePaneWidth("assistant", config.assistant.width);
72823
72722
  assertAsideAvailable(config.aside, config.assistant);
@@ -72831,27 +72730,18 @@ var assertValidConfig = /* @__PURE__ */ __name((config) => {
72831
72730
  const locale = config.labels?.locale;
72832
72731
  if (locale !== void 0) assertValidLocale(locale);
72833
72732
  }, "assertValidConfig");
72733
+ var shellPaneOf = /* @__PURE__ */ __name((pane) => pane === "secondary" ? "secondary" : "aside", "shellPaneOf");
72834
72734
  var resizablePanes = {
72835
72735
  secondary: {
72836
72736
  elementId: "secondary-menu",
72837
72737
  side: "start",
72838
- handleLabel: "resizeSecondary",
72839
72738
  defaultWidth: 240,
72840
72739
  minWidth: 180,
72841
72740
  maxWidth: 400
72842
72741
  },
72843
- activity: {
72844
- elementId: sidePanelId,
72845
- side: "end",
72846
- handleLabel: "resizeActivity",
72847
- defaultWidth: 280,
72848
- minWidth: 240,
72849
- maxWidth: 480
72850
- },
72851
- assistant: {
72742
+ aside: {
72852
72743
  elementId: sidePanelId,
72853
72744
  side: "end",
72854
- handleLabel: "resizeAssistant",
72855
72745
  defaultWidth: 400,
72856
72746
  minWidth: 320,
72857
72747
  maxWidth: 640
@@ -72973,8 +72863,7 @@ var _DeesAppui = class _DeesAppui extends (_a95 = DeesElement, _appbarMenuItems_
72973
72863
  __publicField(this, "shortcuts", []);
72974
72864
  __privateAdd(this, _paneWidths, __runInitializers(_init96, 260, this, {
72975
72865
  secondary: resizablePanes.secondary.defaultWidth,
72976
- activity: resizablePanes.activity.defaultWidth,
72977
- assistant: resizablePanes.assistant.defaultWidth
72866
+ aside: resizablePanes.aside.defaultWidth
72978
72867
  })), __runInitializers(_init96, 263, this);
72979
72868
  __publicField(this, "navigationQueue", Promise.resolve(true));
72980
72869
  __publicField(this, "routingGeneration", 0);
@@ -73231,7 +73120,7 @@ var _DeesAppui = class _DeesAppui extends (_a95 = DeesElement, _appbarMenuItems_
73231
73120
  }}
73232
73121
  ></dees-appui-bottombar>
73233
73122
  </div>
73234
- ${this.aside && this.isPaneResizable(this.aside) ? this.renderPaneHandle(this.aside) : ""}
73123
+ ${this.isPaneResizable("aside") ? this.renderPaneHandle("aside") : ""}
73235
73124
  <aside
73236
73125
  id=${sidePanelId}
73237
73126
  class="side-panel"
@@ -73260,14 +73149,14 @@ var _DeesAppui = class _DeesAppui extends (_a95 = DeesElement, _appbarMenuItems_
73260
73149
  `;
73261
73150
  }
73262
73151
  /**
73263
- * The shell's tracks: the workspace, and the side panel at the width of the
73264
- * tool it shows. Showing, closing and switching tools all move that last
73265
- * track, through the shell's transition. The compact panel covers the
73266
- * workspace instead.
73152
+ * The shell's tracks: the workspace, and the side panel at its width while it
73153
+ * shows a tool. Showing and closing the panel move that last track, through
73154
+ * the shell's transition; switching tools leaves it where it is. The compact
73155
+ * panel covers the workspace instead.
73267
73156
  */
73268
73157
  shellColumns() {
73269
73158
  if (this.compact) return "minmax(0, 1fr)";
73270
- return `minmax(0, 1fr) ${this.aside ? `var(--dees-appui-${this.aside}-width)` : "0px"}`;
73159
+ return `minmax(0, 1fr) ${this.aside ? "var(--dees-appui-aside-width)" : "0px"}`;
73271
73160
  }
73272
73161
  /** The workspace's tracks: one column when compact, else each shown menu and the content. */
73273
73162
  gridColumns() {
@@ -73306,7 +73195,7 @@ var _DeesAppui = class _DeesAppui extends (_a95 = DeesElement, _appbarMenuItems_
73306
73195
  `;
73307
73196
  }
73308
73197
  /**
73309
- * A tool's place in the side panel, at the tool's own width. Both places stay
73198
+ * A tool's place in the side panel, at the panel's width. Both places stay
73310
73199
  * mounted; the one the panel does not hold is inert. A tool that asks to
73311
73200
  * close the panel asks here.
73312
73201
  */
@@ -73325,14 +73214,14 @@ var _DeesAppui = class _DeesAppui extends (_a95 = DeesElement, _appbarMenuItems_
73325
73214
  * once; a size that settles is reported to the host.
73326
73215
  */
73327
73216
  renderPaneHandle(pane) {
73328
- const { elementId, side, handleLabel, defaultWidth, minWidth, maxWidth } = resizablePanes[pane];
73217
+ const { elementId, side, defaultWidth, minWidth, maxWidth } = resizablePanes[pane];
73329
73218
  return b`
73330
73219
  <dees-resize-handle
73331
73220
  class="pane-handle"
73332
73221
  data-pane=${pane}
73333
73222
  aria-controls=${elementId}
73334
73223
  .primary=${side}
73335
- .label=${this.word(handleLabel)}
73224
+ .label=${this.word(this.paneHandleLabel(pane))}
73336
73225
  .hint=${this.word("resizeReset")}
73337
73226
  .value=${this.paneWidths[pane]}
73338
73227
  .min=${minWidth}
@@ -73888,7 +73777,6 @@ var _DeesAppui = class _DeesAppui extends (_a95 = DeesElement, _appbarMenuItems_
73888
73777
  const content = assistant?.content;
73889
73778
  const replaced = content !== this.assistantConfig?.content;
73890
73779
  this.assistantConfig = assistant;
73891
- if (assistant?.width !== void 0) this.applyPaneWidth("assistant", assistant.width);
73892
73780
  if (!replaced) return;
73893
73781
  this.handFocusOutOf("assistant");
73894
73782
  this.assistantElement = typeof content === "function" ? void 0 : content;
@@ -74134,29 +74022,43 @@ var _DeesAppui = class _DeesAppui extends (_a95 = DeesElement, _appbarMenuItems_
74134
74022
  // PROGRAMMATIC API: LAYOUT
74135
74023
  // ==========================================
74136
74024
  /**
74137
- * Size a pane — `secondary`, the section menu, `activity`, the activity log,
74138
- * or `assistant`, the assistant — in CSS pixels, clamped to the pane's range
74139
- * and rounded to whole pixels. The width lands at once, even while the pane
74140
- * is hidden or collapsed, and the configured storage keeps it. Nothing is
74025
+ * Size a pane — `secondary`, the section menu, or `aside`, the side panel,
74026
+ * whichever tool it shows — in CSS pixels, clamped to the pane's range and
74027
+ * rounded to whole pixels. The width lands at once, even while the pane is
74028
+ * hidden or collapsed, and the configured storage keeps it. Nothing is
74141
74029
  * emitted: `pane-resize` reports what a reader did, so a host restoring a
74142
- * width of its own never hears it echoed back.
74030
+ * width of its own never hears it echoed back. `activity` and `assistant`
74031
+ * are deprecated names of `aside`: they size the one side panel.
74143
74032
  */
74144
74033
  setPaneWidth(pane, width) {
74145
74034
  assertFinitePaneWidth(pane, width);
74146
- this.applyPaneWidth(pane, width);
74147
- this.storePaneWidth(pane);
74035
+ const shellPane = shellPaneOf(pane);
74036
+ this.applyPaneWidth(shellPane, width);
74037
+ this.storePaneWidth(shellPane);
74148
74038
  }
74149
- /** A pane's width in CSS pixels, kept while the pane is hidden or collapsed. */
74039
+ /**
74040
+ * A pane's width in CSS pixels, kept while the pane is hidden or collapsed.
74041
+ * `activity` and `assistant` are deprecated names of `aside`: both answer
74042
+ * the side panel's one width.
74043
+ */
74150
74044
  getPaneWidth(pane) {
74151
- return this.paneWidths[pane];
74045
+ return this.paneWidths[shellPaneOf(pane)];
74152
74046
  }
74153
74047
  /**
74154
74048
  * A pane can be resized while it stands open beside the content, never as a
74155
- * compact drawer or overlay; a side panel tool only while the panel shows it.
74049
+ * compact drawer or overlay; the side panel while it shows a tool.
74156
74050
  */
74157
74051
  isPaneResizable(pane) {
74158
74052
  if (this.compact) return false;
74159
- return pane === "secondary" ? this.secondaryMenuShown(this.chromeOnScreen()) && !this.secondarymenuCollapsed : this.aside === pane;
74053
+ return pane === "secondary" ? this.secondaryMenuShown(this.chromeOnScreen()) && !this.secondarymenuCollapsed : this.aside !== null;
74054
+ }
74055
+ /**
74056
+ * The words a pane's handle is named with. The side panel's names the tool a
74057
+ * reader sees beside it; either way it sizes the panel.
74058
+ */
74059
+ paneHandleLabel(pane) {
74060
+ if (pane === "secondary") return "resizeSecondary";
74061
+ return this.asideTool === "activity" ? "resizeActivity" : "resizeAssistant";
74160
74062
  }
74161
74063
  /** The one writer of the pane widths, whoever asks: a handle, `setPaneWidth()`, `configure()` or the storage. */
74162
74064
  applyPaneWidth(pane, width) {
@@ -74168,17 +74070,21 @@ var _DeesAppui = class _DeesAppui extends (_a95 = DeesElement, _appbarMenuItems_
74168
74070
  }
74169
74071
  /**
74170
74072
  * Puts the pane widths on the host as `--dees-appui-<pane>-width`, where the
74171
- * grid, the panes and anybody reading the layout find them. The tracks and
74172
- * the section menu animate a pane being shown or collapsed, but a width
74173
- * lands at once: `resizing` switches those transitions off, and because a
74174
- * transition is decided when styles resolve, the styles are resolved before
74175
- * `resizing` goes.
74073
+ * grid, the panes and anybody reading the layout find them, the side panel's
74074
+ * also under the deprecated names `--dees-appui-activity-width` and
74075
+ * `--dees-appui-assistant-width`. The tracks and the section menu animate a
74076
+ * pane being shown or collapsed, but a width lands at once: `resizing`
74077
+ * switches those transitions off, and because a transition is decided when
74078
+ * styles resolve, the styles are resolved before `resizing` goes.
74176
74079
  */
74177
74080
  writePaneWidths() {
74178
74081
  this.toggleAttribute("resizing", true);
74179
74082
  for (const [pane, width] of Object.entries(this.paneWidths)) {
74180
74083
  this.style.setProperty(`--dees-appui-${pane}-width`, `${width}px`);
74181
74084
  }
74085
+ for (const tool of ["activity", "assistant"]) {
74086
+ this.style.setProperty(`--dees-appui-${tool}-width`, `${this.paneWidths.aside}px`);
74087
+ }
74182
74088
  void getComputedStyle(this).display;
74183
74089
  this.toggleAttribute("resizing", false);
74184
74090
  }
@@ -74188,12 +74094,14 @@ var _DeesAppui = class _DeesAppui extends (_a95 = DeesElement, _appbarMenuItems_
74188
74094
  }
74189
74095
  /**
74190
74096
  * A reader settled a pane at a new width: the configured storage keeps it,
74191
- * and the host hears it once, to keep it or to follow it.
74097
+ * and the host hears it once, to keep it or to follow it. The side panel is
74098
+ * reported under the name of the tool it shows, as hosts written while each
74099
+ * tool had a width of its own expect; either name is the panel's one width.
74192
74100
  */
74193
74101
  reportPaneResize(pane) {
74194
74102
  this.storePaneWidth(pane);
74195
74103
  this.dispatchEvent(new CustomEvent("pane-resize", {
74196
- detail: { pane, width: this.paneWidths[pane] },
74104
+ detail: { pane: pane === "aside" ? this.asideTool : pane, width: this.paneWidths[pane] },
74197
74105
  bubbles: true,
74198
74106
  composed: true
74199
74107
  }));
@@ -74543,8 +74451,11 @@ var _DeesAppui = class _DeesAppui extends (_a95 = DeesElement, _appbarMenuItems_
74543
74451
  * `bottomBar` section replaces the bar's widgets and actions, the assistant
74544
74452
  * is this call's or none, the side panel shows what `aside` says, the labels
74545
74453
  * and the storage are this call's or none, and routing starts over. What the
74546
- * storage holds wins over what the call sets, and nothing is written. A
74547
- * configuration it cannot honour — a `notFoundView` that is not among
74454
+ * storage holds wins over what the call sets, and nothing is written but,
74455
+ * once, a side panel width the storage still keeps under a tool's old key,
74456
+ * which moves to the panel's own. The side panel's first width is
74457
+ * `asideWidth`, else the deprecated `assistant.width`, else the deprecated
74458
+ * `activityLog.width`. A configuration it cannot honour — a `notFoundView` that is not among
74548
74459
  * `views`, a location base URL of another app, a width that is no finite
74549
74460
  * number, `aside: 'assistant'` without an assistant, an assistant shortcut
74550
74461
  * that names no key, `restoreLastView` without `storage`, a labels `locale`
@@ -74596,8 +74507,9 @@ var _DeesAppui = class _DeesAppui extends (_a95 = DeesElement, _appbarMenuItems_
74596
74507
  if (config.activityLog) {
74597
74508
  this.activityLogToggleVisible = config.activityLog.toggle ?? true;
74598
74509
  if (config.activityLog.live !== void 0) this.activityLogLive = config.activityLog.live;
74599
- if (config.activityLog.width !== void 0) this.applyPaneWidth("activity", config.activityLog.width);
74600
74510
  }
74511
+ const asideWidth = configuredAsideWidth(config);
74512
+ if (asideWidth !== void 0) this.applyPaneWidth("aside", asideWidth);
74601
74513
  this.applyAssistantConfig(config.assistant);
74602
74514
  this.applyAside(config.aside ?? null);
74603
74515
  this.storage?.retire();
@@ -74632,8 +74544,9 @@ var _DeesAppui = class _DeesAppui extends (_a95 = DeesElement, _appbarMenuItems_
74632
74544
  * for a host whose storage scope changes while the shell runs: a reader who
74633
74545
  * switches to another set of books, whose tray tabs are that set's. The
74634
74546
  * shell reads what it restores from the new storage, as `configure()` does,
74635
- * and writes nothing: the layout (both menus' collapse, the pane widths, the
74636
- * side panel), where a key the new storage does not hold keeps what the shell
74547
+ * and writes nothing but, once, a side panel width the storage still keeps
74548
+ * under a tool's old key: the layout (both menus' collapse, the pane widths,
74549
+ * the side panel), where a key the new storage does not hold keeps what the shell
74637
74550
  * shows, and, where the tray is offered, the tray's tabs, which belong to the
74638
74551
  * storage: the tray empties at once and shows the new storage's tabs, or none.
74639
74552
  * The last view is not read; the route stays. From here on every change is
@@ -74656,7 +74569,9 @@ var _DeesAppui = class _DeesAppui extends (_a95 = DeesElement, _appbarMenuItems_
74656
74569
  /**
74657
74570
  * What a reader left the layout at, read from the configured storage over
74658
74571
  * what the configuration set: both menus' collapse, the pane widths and what
74659
- * the side panel shows. A stored assistant the configuration no longer
74572
+ * the side panel shows. A side panel width kept only under a tool's key from
74573
+ * before the panel had one width is taken once and kept under the panel's
74574
+ * (`ShellStorage.restore()`). A stored assistant the configuration no longer
74660
74575
  * offers is stale, not an error, and leaves the panel as configured.
74661
74576
  * Resolves once the storage answered every key.
74662
74577
  */
@@ -75719,11 +75634,11 @@ __publicField(_DeesAppui, "styles", [
75719
75634
  }
75720
75635
 
75721
75636
  /* The side panel fills the shell's last track and clips what does not
75722
- fit it, so the track reveals the panel as it slides in while the panel
75723
- keeps the width of the tool it holds: nothing in it reflows with the
75724
- track. It clips rather than hides its overflow, which would make it a
75725
- scroll container that focusing a tool mid-slide could scroll. Closed
75726
- and slid out, it leaves the rendering. */
75637
+ fit it, so the track reveals the panel as it slides in while what it
75638
+ holds keeps the panel's width: nothing in it reflows with the track.
75639
+ It clips rather than hides its overflow, which would make it a scroll
75640
+ container that focusing a tool mid-slide could scroll. Closed and slid
75641
+ out, it leaves the rendering. */
75727
75642
  .side-panel {
75728
75643
  position: relative;
75729
75644
  grid-area: 1 / 2;
@@ -75744,25 +75659,16 @@ __publicField(_DeesAppui, "styles", [
75744
75659
  /* The panel's own rows, which continue the bars it stands beside: a
75745
75660
  header as tall as the app bar and a footer as tall as the bottom bar,
75746
75661
  drawing their lines where the bars draw theirs, and the tool between. */
75747
- /* As wide as the tool it holds, so the panel slides over a frame that
75748
- does not reflow, and never narrower than the panel, so a switch to
75749
- the narrower tool keeps the header across the panel while it
75750
- narrows. */
75662
+ /* At the panel's width whichever tool it holds, so the panel slides over
75663
+ a frame that does not reflow, and a switch moves nothing. */
75751
75664
  .side-frame {
75752
75665
  justify-self: start;
75753
75666
  display: grid;
75754
75667
  grid-template: auto minmax(0, 1fr) auto / minmax(0, 1fr);
75668
+ width: var(--dees-appui-aside-width);
75755
75669
  min-height: 0;
75756
75670
  }
75757
75671
 
75758
- .side-frame[data-tool='activity'] {
75759
- width: max(100%, var(--dees-appui-activity-width));
75760
- }
75761
-
75762
- .side-frame[data-tool='assistant'] {
75763
- width: max(100%, var(--dees-appui-assistant-width));
75764
- }
75765
-
75766
75672
  .side-header,
75767
75673
  .side-footer {
75768
75674
  display: flex;
@@ -75890,29 +75796,25 @@ __publicField(_DeesAppui, "styles", [
75890
75796
  min-height: 0;
75891
75797
  }
75892
75798
 
75893
- /* Both tools share one place and stay mounted and laid out: a switch
75894
- keeps a draft, a scroll position and a stream, and no tool sees its
75895
- size fall to nothing. The tool the panel does not hold is inert and
75896
- transparent: transparency hides all it contains, where visibility
75897
- would let a descendant that declares itself visible, such as an open
75898
- drawer, show through. */
75799
+ /* Both tools share one place at the panel's width and stay mounted and
75800
+ laid out: a switch keeps a draft, a scroll position and a stream, and
75801
+ no tool sees its size change or fall to nothing. The tool the panel
75802
+ does not hold is inert and transparent: transparency hides all it
75803
+ contains, where visibility would let a descendant that declares
75804
+ itself visible, such as an open drawer, show through. */
75899
75805
  .side-tool {
75900
75806
  grid-area: 1 / 1;
75901
75807
  justify-self: start;
75902
75808
  display: grid;
75903
75809
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
75810
+ width: var(--dees-appui-aside-width);
75904
75811
  min-height: 0;
75905
75812
  }
75906
75813
 
75907
- .side-tool[data-tool='activity'] {
75908
- width: var(--dees-appui-activity-width);
75909
- }
75910
-
75911
75814
  /* The activity log draws the edge it shares with the content; an
75912
75815
  assistant does not know it stands beside the content, so its place
75913
75816
  draws that edge. */
75914
75817
  .side-tool[data-tool='assistant'] {
75915
- width: var(--dees-appui-assistant-width);
75916
75818
  border-inline-start: var(--dees-line-width-hairline) solid var(--dees-color-border-subtle);
75917
75819
  }
75918
75820
 
@@ -83155,7 +83057,7 @@ var _DeesHarnessConversationPicker = class _DeesHarnessConversationPicker extend
83155
83057
  * cancelled. Focus returns to whatever had it when the picker opened.
83156
83058
  */
83157
83059
  static async pick(optionsArg = {}) {
83158
- const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-Z3DSEMNI.js");
83060
+ const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-ORXOZADW.js");
83159
83061
  const picker = new _DeesHarnessConversationPicker();
83160
83062
  picker.sessions = optionsArg.sessions ?? [];
83161
83063
  picker.groups = optionsArg.groups ?? [];
@@ -83624,7 +83526,7 @@ var handleResourceContext = /* @__PURE__ */ __name(async (event) => {
83624
83526
  list.selectedResourceId = event.detail.resource.id;
83625
83527
  }, "handleResourceContext");
83626
83528
  var openModal = /* @__PURE__ */ __name(async (sessions, groups) => {
83627
- const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-Z3DSEMNI.js");
83529
+ const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-ORXOZADW.js");
83628
83530
  const content = document.createElement("dees-harness-resource-list");
83629
83531
  content.sessions = sessions;
83630
83532
  content.groups = groups;
@@ -131079,7 +130981,7 @@ var _DeesSimpleAppDash = class _DeesSimpleAppDash extends (_a154 = DeesElement,
131079
130981
  this.terminalOpen = true;
131080
130982
  const request = ++this.terminalRequest;
131081
130983
  try {
131082
- const { DeesWorkspaceTerminal: DeesWorkspaceTerminal3 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-workspace-terminal-KPB3RVGL.js");
130984
+ const { DeesWorkspaceTerminal: DeesWorkspaceTerminal3 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-workspace-terminal-MUU2HDU3.js");
131083
130985
  await this.updateComplete;
131084
130986
  if (!this.isConnected || request !== this.terminalRequest) return;
131085
130987
  const terminal = new DeesWorkspaceTerminal3();
@@ -137051,7 +136953,7 @@ var bright = {
137051
136953
  // ts_web/00_commitinfo_data.ts
137052
136954
  var commitinfo = {
137053
136955
  name: "@design.estate/dees-catalog",
137054
- version: "24.3.0",
136956
+ version: "24.5.0",
137055
136957
  description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
137056
136958
  };
137057
136959
  export {