@design.estate/dees-catalog 24.4.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 (31) hide show
  1. package/dist_bundle/bundle.js +60 -174
  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-input/dees-input-multitoggle/dees-input-multitoggle.d.ts +8 -1
  10. package/dist_ts_web/elements/00group-input/dees-input-multitoggle/dees-input-multitoggle.demo.js +7 -1
  11. package/dist_ts_web/elements/00group-input/dees-input-multitoggle/dees-input-multitoggle.js +18 -5
  12. package/dist_ts_web/elements/00group-input/dees-input-tags/dees-input-tags.d.ts +4 -13
  13. package/dist_ts_web/elements/00group-input/dees-input-tags/dees-input-tags.js +29 -174
  14. package/dist_ts_web/elements/00group-input/dees-input-text/dees-input-text.d.ts +41 -0
  15. package/dist_ts_web/elements/00group-input/dees-input-text/dees-input-text.demo.js +16 -1
  16. package/dist_ts_web/elements/00group-input/dees-input-text/dees-input-text.js +103 -3
  17. package/dist_ts_web/elements/00group-input/suggestion-list.d.ts +102 -0
  18. package/dist_ts_web/elements/00group-input/suggestion-list.js +300 -0
  19. package/package.json +1 -1
  20. package/readme.md +27 -1
  21. package/scripts/token-baseline.json +1 -1
  22. package/ts_web/00_commitinfo_data.ts +1 -1
  23. package/ts_web/elements/00group-input/dees-input-multitoggle/dees-input-multitoggle.demo.ts +6 -0
  24. package/ts_web/elements/00group-input/dees-input-multitoggle/dees-input-multitoggle.ts +24 -7
  25. package/ts_web/elements/00group-input/dees-input-tags/dees-input-tags.ts +27 -171
  26. package/ts_web/elements/00group-input/dees-input-text/dees-input-text.demo.ts +17 -0
  27. package/ts_web/elements/00group-input/dees-input-text/dees-input-text.ts +106 -1
  28. package/ts_web/elements/00group-input/suggestion-list.ts +323 -0
  29. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-7CM7S6EQ.js.map → chunk-LRGVCS7F.js.map} +0 -0
  30. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-Z3DSEMNI.js.map → dees-modal-ORXOZADW.js.map} +0 -0
  31. /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);
@@ -83171,7 +83057,7 @@ var _DeesHarnessConversationPicker = class _DeesHarnessConversationPicker extend
83171
83057
  * cancelled. Focus returns to whatever had it when the picker opened.
83172
83058
  */
83173
83059
  static async pick(optionsArg = {}) {
83174
- const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-Z3DSEMNI.js");
83060
+ const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-ORXOZADW.js");
83175
83061
  const picker = new _DeesHarnessConversationPicker();
83176
83062
  picker.sessions = optionsArg.sessions ?? [];
83177
83063
  picker.groups = optionsArg.groups ?? [];
@@ -83640,7 +83526,7 @@ var handleResourceContext = /* @__PURE__ */ __name(async (event) => {
83640
83526
  list.selectedResourceId = event.detail.resource.id;
83641
83527
  }, "handleResourceContext");
83642
83528
  var openModal = /* @__PURE__ */ __name(async (sessions, groups) => {
83643
- const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-Z3DSEMNI.js");
83529
+ const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-ORXOZADW.js");
83644
83530
  const content = document.createElement("dees-harness-resource-list");
83645
83531
  content.sessions = sessions;
83646
83532
  content.groups = groups;
@@ -131095,7 +130981,7 @@ var _DeesSimpleAppDash = class _DeesSimpleAppDash extends (_a154 = DeesElement,
131095
130981
  this.terminalOpen = true;
131096
130982
  const request = ++this.terminalRequest;
131097
130983
  try {
131098
- 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");
131099
130985
  await this.updateComplete;
131100
130986
  if (!this.isConnected || request !== this.terminalRequest) return;
131101
130987
  const terminal = new DeesWorkspaceTerminal3();
@@ -137067,7 +136953,7 @@ var bright = {
137067
136953
  // ts_web/00_commitinfo_data.ts
137068
136954
  var commitinfo = {
137069
136955
  name: "@design.estate/dees-catalog",
137070
- version: "24.4.0",
136956
+ version: "24.5.0",
137071
136957
  description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
137072
136958
  };
137073
136959
  export {