@design.estate/dees-catalog 21.48.0 → 21.49.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 (67) hide show
  1. package/dist_bundle/bundle.js +143 -154
  2. package/dist_bundle/bundle.js.map +1 -1
  3. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-QG5BHDQO.js → chunk-2O2L36Y3.js} +91 -69
  4. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-QG5BHDQO.js.map → chunk-2O2L36Y3.js.map} +1 -1
  5. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-Q5VY4AV7.js → chunk-DTFC5CU3.js} +493 -34
  6. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-DTFC5CU3.js.map +1 -0
  7. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-YOGT7PSU.js → dees-modal-4DMZSC7L.js} +2 -2
  8. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-ORLONA36.js → dees-workspace-terminal-DM23WG2C.js} +3 -3
  9. package/dist_ts_web/00_commitinfo_data.js +1 -1
  10. package/dist_ts_web/elements/00group-appui/dees-appui-activitylog/dees-appui-activitylog.d.ts +2 -0
  11. package/dist_ts_web/elements/00group-appui/dees-appui-activitylog/dees-appui-activitylog.js +5 -20
  12. package/dist_ts_web/elements/00group-appui/dees-appui-mainmenu/dees-appui-mainmenu.d.ts +2 -0
  13. package/dist_ts_web/elements/00group-appui/dees-appui-mainmenu/dees-appui-mainmenu.js +5 -18
  14. package/dist_ts_web/elements/00group-appui/dees-appui-secondarymenu/dees-appui-secondarymenu.d.ts +2 -0
  15. package/dist_ts_web/elements/00group-appui/dees-appui-secondarymenu/dees-appui-secondarymenu.js +5 -18
  16. package/dist_ts_web/elements/00group-appui/dees-appui-tabs/dees-appui-tabs.d.ts +2 -0
  17. package/dist_ts_web/elements/00group-appui/dees-appui-tabs/dees-appui-tabs.js +10 -33
  18. package/dist_ts_web/elements/00group-feedback/dees-progressbar/dees-progressbar.d.ts +2 -0
  19. package/dist_ts_web/elements/00group-feedback/dees-progressbar/dees-progressbar.js +6 -14
  20. package/dist_ts_web/elements/00group-harness/dees-harness-composer/dees-harness-composer.d.ts +11 -4
  21. package/dist_ts_web/elements/00group-harness/dees-harness-composer/dees-harness-composer.demo.js +1 -1
  22. package/dist_ts_web/elements/00group-harness/dees-harness-composer/dees-harness-composer.js +61 -25
  23. package/dist_ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.d.ts +2 -0
  24. package/dist_ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.js +14 -4
  25. package/dist_ts_web/elements/00group-harness/harness.markdown.d.ts +7 -0
  26. package/dist_ts_web/elements/00group-harness/harness.markdown.js +11 -2
  27. package/dist_ts_web/elements/00group-harness/index.d.ts +1 -1
  28. package/dist_ts_web/elements/00group-harness/index.js +2 -2
  29. package/dist_ts_web/elements/00group-input/dees-input-dropdown/dees-input-dropdown-popup.d.ts +2 -0
  30. package/dist_ts_web/elements/00group-input/dees-input-dropdown/dees-input-dropdown-popup.js +5 -18
  31. package/dist_ts_web/elements/00group-input/dees-input-tags/dees-input-tags.d.ts +2 -0
  32. package/dist_ts_web/elements/00group-input/dees-input-tags/dees-input-tags.js +14 -23
  33. package/dist_ts_web/elements/00group-input/dees-input-wysiwyg/blocks/text/code.block.js +7 -19
  34. package/dist_ts_web/elements/00group-input/dees-input-wysiwyg/wysiwyg.markdown.view.d.ts +3 -0
  35. package/dist_ts_web/elements/00group-input/dees-input-wysiwyg/wysiwyg.markdown.view.js +15 -1
  36. package/dist_ts_web/elements/00scrollbars.d.ts +122 -0
  37. package/dist_ts_web/elements/00scrollbars.js +545 -0
  38. package/dist_ts_web/elements/00scrolledges.d.ts +1 -14
  39. package/dist_ts_web/elements/00scrolledges.js +7 -70
  40. package/dist_ts_web/elements/00scrollerwatch.d.ts +31 -0
  41. package/dist_ts_web/elements/00scrollerwatch.js +88 -0
  42. package/dist_ts_web/elements/index.d.ts +1 -0
  43. package/dist_ts_web/elements/index.js +3 -1
  44. package/package.json +1 -1
  45. package/readme.md +49 -4
  46. package/ts_web/00_commitinfo_data.ts +1 -1
  47. package/ts_web/elements/00group-appui/dees-appui-activitylog/dees-appui-activitylog.ts +8 -19
  48. package/ts_web/elements/00group-appui/dees-appui-mainmenu/dees-appui-mainmenu.ts +8 -17
  49. package/ts_web/elements/00group-appui/dees-appui-secondarymenu/dees-appui-secondarymenu.ts +8 -17
  50. package/ts_web/elements/00group-appui/dees-appui-tabs/dees-appui-tabs.ts +13 -32
  51. package/ts_web/elements/00group-feedback/dees-progressbar/dees-progressbar.ts +9 -13
  52. package/ts_web/elements/00group-harness/dees-harness-composer/dees-harness-composer.demo.ts +1 -1
  53. package/ts_web/elements/00group-harness/dees-harness-composer/dees-harness-composer.ts +61 -24
  54. package/ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.ts +13 -3
  55. package/ts_web/elements/00group-harness/harness.markdown.ts +12 -1
  56. package/ts_web/elements/00group-harness/index.ts +1 -1
  57. package/ts_web/elements/00group-input/dees-input-dropdown/dees-input-dropdown-popup.ts +8 -17
  58. package/ts_web/elements/00group-input/dees-input-tags/dees-input-tags.ts +17 -22
  59. package/ts_web/elements/00group-input/dees-input-wysiwyg/blocks/text/code.block.ts +7 -18
  60. package/ts_web/elements/00group-input/dees-input-wysiwyg/wysiwyg.markdown.view.ts +14 -0
  61. package/ts_web/elements/00scrollbars.ts +613 -0
  62. package/ts_web/elements/00scrolledges.ts +6 -71
  63. package/ts_web/elements/00scrollerwatch.ts +89 -0
  64. package/ts_web/elements/index.ts +2 -0
  65. package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-Q5VY4AV7.js.map +0 -1
  66. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-YOGT7PSU.js.map → dees-modal-4DMZSC7L.js.map} +0 -0
  67. /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-ORLONA36.js.map → dees-workspace-terminal-DM23WG2C.js.map} +0 -0
@@ -1,4 +1,5 @@
1
1
  import { css, html } from '@design.estate/dees-element';
2
+ import { ScrollerWatch } from './00scrollerwatch.js';
2
3
  /** Scroll offsets within this distance of an end are layout rounding, not content past the edge. */
3
4
  const edgeThresholdPx = 1;
4
5
  /**
@@ -156,13 +157,10 @@ export const scrollEdgeFadeStyles = css `
156
157
  export class ScrollEdgeShadowController {
157
158
  host;
158
159
  scrollerArg;
159
- scroller = null;
160
160
  connected = false;
161
161
  topVisible = false;
162
162
  bottomVisible = false;
163
- resizeObserver;
164
- mutationObserver;
165
- slots = [];
163
+ watch = new ScrollerWatch(() => this.sync(), () => this.sync());
166
164
  constructor(host, scrollerArg) {
167
165
  this.host = host;
168
166
  this.scrollerArg = scrollerArg;
@@ -181,7 +179,7 @@ export class ScrollEdgeShadowController {
181
179
  this.connected = true;
182
180
  void this.host.updateComplete.then(() => {
183
181
  if (this.connected) {
184
- this.follow();
182
+ this.watch.follow(this.scrollerArg() ?? null);
185
183
  this.sync();
186
184
  }
187
185
  });
@@ -189,13 +187,13 @@ export class ScrollEdgeShadowController {
189
187
  /** Every render may change the scroller, its content or where it is scrolled to. */
190
188
  hostUpdated() {
191
189
  if (this.connected) {
192
- this.follow();
190
+ this.watch.follow(this.scrollerArg() ?? null);
193
191
  this.sync();
194
192
  }
195
193
  }
196
194
  hostDisconnected() {
197
195
  this.connected = false;
198
- this.unfollow();
196
+ this.watch.unfollow();
199
197
  }
200
198
  /**
201
199
  * The bands both edges cast, each visible while content lies past its edge. They go right after
@@ -219,7 +217,7 @@ export class ScrollEdgeShadowController {
219
217
  * scrolls at the edge does, calls it to show the edges in the same frame.
220
218
  */
221
219
  sync = () => {
222
- const scroller = this.scroller;
220
+ const scroller = this.watch.scroller;
223
221
  const top = !!scroller && scroller.scrollTop > edgeThresholdPx;
224
222
  const bottom = !!scroller
225
223
  && scroller.scrollTop + scroller.clientHeight < scroller.scrollHeight - edgeThresholdPx;
@@ -230,66 +228,5 @@ export class ScrollEdgeShadowController {
230
228
  this.bottomVisible = bottom;
231
229
  this.host.requestUpdate();
232
230
  };
233
- /** Follows the scroller the host names now; the same scroller stays followed as it is. */
234
- follow() {
235
- const scroller = this.scrollerArg() ?? null;
236
- if (scroller === this.scroller) {
237
- return;
238
- }
239
- this.unfollow();
240
- this.scroller = scroller;
241
- if (!scroller) {
242
- return;
243
- }
244
- scroller.addEventListener('scroll', this.sync, { passive: true });
245
- this.resizeObserver = new ResizeObserver(this.sync);
246
- this.mutationObserver = new MutationObserver(this.observeContent);
247
- this.mutationObserver.observe(scroller, { childList: true });
248
- this.observeContent();
249
- }
250
- /**
251
- * Observes the scroller and what fills it: the scroll height changes with the size of its
252
- * children, and with the elements assigned to a slot among them. Children that come or go are
253
- * observed anew, and their coming or going is measured at once, since a child that leaves
254
- * resizes nothing that stays.
255
- */
256
- observeContent = () => {
257
- const scroller = this.scroller;
258
- const resizeObserver = this.resizeObserver;
259
- if (!scroller || !resizeObserver) {
260
- return;
261
- }
262
- resizeObserver.disconnect();
263
- for (const slot of this.slots) {
264
- slot.removeEventListener('slotchange', this.observeContent);
265
- }
266
- this.slots = [];
267
- resizeObserver.observe(scroller);
268
- for (const child of scroller.children) {
269
- if (child instanceof HTMLSlotElement) {
270
- this.slots.push(child);
271
- child.addEventListener('slotchange', this.observeContent);
272
- for (const assigned of child.assignedElements({ flatten: true })) {
273
- resizeObserver.observe(assigned);
274
- }
275
- }
276
- else {
277
- resizeObserver.observe(child);
278
- }
279
- }
280
- this.sync();
281
- };
282
- unfollow() {
283
- this.scroller?.removeEventListener('scroll', this.sync);
284
- this.resizeObserver?.disconnect();
285
- this.resizeObserver = undefined;
286
- this.mutationObserver?.disconnect();
287
- this.mutationObserver = undefined;
288
- for (const slot of this.slots) {
289
- slot.removeEventListener('slotchange', this.observeContent);
290
- }
291
- this.slots = [];
292
- this.scroller = null;
293
- }
294
231
  }
295
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBzY3JvbGxlZGdlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzX3dlYi9lbGVtZW50cy8wMHNjcm9sbGVkZ2VzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxHQUFHLEVBQUUsSUFBSSxFQUF5RCxNQUFNLDZCQUE2QixDQUFDO0FBRy9HLG9HQUFvRztBQUNwRyxNQUFNLGVBQWUsR0FBRyxDQUFDLENBQUM7QUFFMUI7Ozs7Ozs7OztHQVNHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sc0JBQXNCLEdBQWMsR0FBRyxDQUFBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0NBMkNuRCxDQUFDO0FBRUY7Ozs7R0FJRztBQUNILE1BQU0sa0JBQWtCLEdBQUcsQ0FBQyx3QkFBd0IsRUFBRSwyQkFBMkIsQ0FBQyxDQUFDO0FBQ25GLElBQUksT0FBTyxHQUFHLEtBQUssV0FBVyxJQUFJLGtCQUFrQixJQUFJLEdBQUcsRUFBRSxDQUFDO0lBQzVELEtBQUssTUFBTSxJQUFJLElBQUksa0JBQWtCLEVBQUUsQ0FBQztRQUN0QyxJQUFJLENBQUM7WUFDSCxHQUFHLENBQUMsZ0JBQWdCLENBQUMsRUFBRSxJQUFJLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxRQUFRLEVBQUUsS0FBSyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQUUsQ0FBQyxDQUFDO1FBQzNGLENBQUM7UUFBQyxPQUFPLEtBQUssRUFBRSxDQUFDO1lBQ2YsSUFB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QUM7SUFFRDs7OztPQUlHO0lBQ0ksV0FBVztRQUNoQixPQUFPLGFBQWEsSUFBSSxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxFQUFFLEdBQUcsSUFBSSxDQUFDLGFBQWEsQ0FBQyxDQUFDLENBQUMsYUFBYSxDQUFDLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQztJQUNwRyxDQUFDO0lBRUQ7Ozs7T0FJRztJQUNhLElBQUksR0FBRyxHQUFTLEVBQUU7UUFDaEMsTUFBTSxRQUFRLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxRQUFRLENBQUM7UUFDckMsTUFBTSxHQUFHLEdBQUcsQ0FBQyxDQUFDLFFBQVEsSUFBSSxRQUFRLENBQUMsU0FBUyxHQUFHLGVBQWUsQ0FBQztRQUMvRCxNQUFNLE1BQU0sR0FBRyxDQUFDLENBQUMsUUFBUTtlQUNwQixRQUFRLENBQUMsU0FBUyxHQUFHLFFBQVEsQ0FBQyxZQUFZLEdBQUcsUUFBUSxDQUFDLFlBQVksR0FBRyxlQUFlLENBQUM7UUFDMUYsSUFBSSxHQUFHLEtBQUssSUFBSSxDQUFDLFVBQVUsSUFBSSxNQUFNLEtBQUssSUFBSSxDQUFDLGFBQWEsRUFBRSxDQUFDO1lBQzdELE9BQU87UUFDVCxDQUFDO1FBQ0QsSUFBSSxDQUFDLFVBQVUsR0FBRyxHQUFHLENBQUM7UUFDdEIsSUFBSSxDQUFDLGFBQWEsR0FBRyxNQUFNLENBQUM7UUFDNUIsSUFBSSxDQUFDLElBQUksQ0FBQyxhQUFhLEVBQUUsQ0FBQztJQUM1QixDQUFDLENBQUM7Q0FDSCJ9
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Follows one scroller for what a scroller's companions measure: it calls `onScroll` when the
3
+ * scroller scrolls and `onLayout` when the scroller or any of its element children resizes — a
4
+ * row added, a group folded, a pane dragged narrower — and when children come or go. A slot among
5
+ * the children stands for the elements assigned to it. Scroll edges and overlay scrollbars both
6
+ * follow their scroller through it.
7
+ */
8
+ export declare class ScrollerWatch {
9
+ private readonly onScroll;
10
+ private readonly onLayout;
11
+ private target;
12
+ private resizeObserver;
13
+ private mutationObserver;
14
+ private slots;
15
+ constructor(onScroll: () => void, onLayout: () => void);
16
+ /** The scroller followed now, if any. */
17
+ get scroller(): HTMLElement | null;
18
+ /**
19
+ * Follows `scroller`, or nothing; the same scroller stays followed as it is. Answers whether the
20
+ * followed scroller changed. A new one is measured at once, through `onLayout`.
21
+ */
22
+ follow(scroller: HTMLElement | null): boolean;
23
+ unfollow(): void;
24
+ /**
25
+ * Observes the scroller and what fills it: the scroll height changes with the size of its
26
+ * children, and with the elements assigned to a slot among them. Children that come or go are
27
+ * observed anew, and their coming or going is measured at once, since a child that leaves
28
+ * resizes nothing that stays.
29
+ */
30
+ private readonly observeContent;
31
+ }
@@ -0,0 +1,88 @@
1
+ /**
2
+ * Follows one scroller for what a scroller's companions measure: it calls `onScroll` when the
3
+ * scroller scrolls and `onLayout` when the scroller or any of its element children resizes — a
4
+ * row added, a group folded, a pane dragged narrower — and when children come or go. A slot among
5
+ * the children stands for the elements assigned to it. Scroll edges and overlay scrollbars both
6
+ * follow their scroller through it.
7
+ */
8
+ export class ScrollerWatch {
9
+ onScroll;
10
+ onLayout;
11
+ target = null;
12
+ resizeObserver;
13
+ mutationObserver;
14
+ slots = [];
15
+ constructor(onScroll, onLayout) {
16
+ this.onScroll = onScroll;
17
+ this.onLayout = onLayout;
18
+ }
19
+ /** The scroller followed now, if any. */
20
+ get scroller() {
21
+ return this.target;
22
+ }
23
+ /**
24
+ * Follows `scroller`, or nothing; the same scroller stays followed as it is. Answers whether the
25
+ * followed scroller changed. A new one is measured at once, through `onLayout`.
26
+ */
27
+ follow(scroller) {
28
+ if (scroller === this.target) {
29
+ return false;
30
+ }
31
+ this.unfollow();
32
+ this.target = scroller;
33
+ if (!scroller) {
34
+ return true;
35
+ }
36
+ scroller.addEventListener('scroll', this.onScroll, { passive: true });
37
+ this.resizeObserver = new ResizeObserver(() => this.onLayout());
38
+ this.mutationObserver = new MutationObserver(this.observeContent);
39
+ this.mutationObserver.observe(scroller, { childList: true });
40
+ this.observeContent();
41
+ return true;
42
+ }
43
+ unfollow() {
44
+ this.target?.removeEventListener('scroll', this.onScroll);
45
+ this.resizeObserver?.disconnect();
46
+ this.resizeObserver = undefined;
47
+ this.mutationObserver?.disconnect();
48
+ this.mutationObserver = undefined;
49
+ for (const slot of this.slots) {
50
+ slot.removeEventListener('slotchange', this.observeContent);
51
+ }
52
+ this.slots = [];
53
+ this.target = null;
54
+ }
55
+ /**
56
+ * Observes the scroller and what fills it: the scroll height changes with the size of its
57
+ * children, and with the elements assigned to a slot among them. Children that come or go are
58
+ * observed anew, and their coming or going is measured at once, since a child that leaves
59
+ * resizes nothing that stays.
60
+ */
61
+ observeContent = () => {
62
+ const scroller = this.target;
63
+ const resizeObserver = this.resizeObserver;
64
+ if (!scroller || !resizeObserver) {
65
+ return;
66
+ }
67
+ resizeObserver.disconnect();
68
+ for (const slot of this.slots) {
69
+ slot.removeEventListener('slotchange', this.observeContent);
70
+ }
71
+ this.slots = [];
72
+ resizeObserver.observe(scroller);
73
+ for (const child of scroller.children) {
74
+ if (child instanceof HTMLSlotElement) {
75
+ this.slots.push(child);
76
+ child.addEventListener('slotchange', this.observeContent);
77
+ for (const assigned of child.assignedElements({ flatten: true })) {
78
+ resizeObserver.observe(assigned);
79
+ }
80
+ }
81
+ else {
82
+ resizeObserver.observe(child);
83
+ }
84
+ }
85
+ this.onLayout();
86
+ };
87
+ }
88
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBzY3JvbGxlcndhdGNoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHNfd2ViL2VsZW1lbnRzLzAwc2Nyb2xsZXJ3YXRjaC50cyJdLCJuYW1lcyI6W10sI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xVQUFVLEVBQUUsQ0FBQztRQUM1QixLQUFLLE1BQU0sSUFBSSxJQUFJLElBQUksQ0FBQyxLQUFLLEVBQUUsQ0FBQztZQUM5QixJQUFJLENBQUMsbUJBQW1CLENBQUMsWUFBWSxFQUFFLElBQUksQ0FBQyxjQUFjLENBQUMsQ0FBQztRQUM5RCxDQUFDO1FBQ0QsSUFBSSxDQUFDLEtBQUssR0FBRyxFQUFFLENBQUM7UUFDaEIsY0FBYyxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNqQyxLQUFLLE1BQU0sS0FBSyxJQUFJLFFBQVEsQ0FBQyxRQUFRLEVBQUUsQ0FBQztZQUN0QyxJQUFJLEtBQUssWUFBWSxlQUFlLEVBQUUsQ0FBQztnQkFDckMsSUFBSSxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUM7Z0JBQ3ZCLEtBQUssQ0FBQyxnQkFBZ0IsQ0FBQyxZQUFZLEVBQUUsSUFBSSxDQUFDLGNBQWMsQ0FBQyxDQUFDO2dCQUMxRCxLQUFLLE1BQU0sUUFBUSxJQUFJLEtBQUssQ0FBQyxnQkFBZ0IsQ0FBQyxFQUFFLE9BQU8sRUFBRSxJQUFJLEVBQUUsQ0FBQyxFQUFFLENBQUM7b0JBQ2pFLGNBQWMsQ0FBQyxPQUFPLENBQUMsUUFBUSxDQUFDLENBQUM7Z0JBQ25DLENBQUM7WUFDSCxDQUFDO2lCQUFNLENBQUM7Z0JBQ04sY0FBYyxDQUFDLE9BQU8sQ0FBQyxLQUFLLENBQUMsQ0FBQztZQUNoQyxDQUFDO1FBQ0gsQ0FBQztRQUNELElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQztJQUNsQixDQUFDLENBQUM7Q0FDSCJ9
@@ -2,6 +2,7 @@ export * from './00actionerror.js';
2
2
  export * from './00zindex.js';
3
3
  export * from './00theme.js';
4
4
  export * from './00scrolledges.js';
5
+ export * from './00scrollbars.js';
5
6
  export * from './00visuallyhidden.js';
6
7
  export * from './00tilebar.js';
7
8
  export type { TBarInfo } from './00barinfo.js';
@@ -3,6 +3,8 @@ export * from './00zindex.js';
3
3
  export * from './00theme.js';
4
4
  // Scroll edges: shadows where content scrolls beneath fixed chrome, fades where it scrolls in a surface of its own.
5
5
  export * from './00scrolledges.js';
6
+ // Overlay scrollbars: shown while a scroller scrolls or the pointer is over it, taking no room.
7
+ export * from './00scrollbars.js';
6
8
  // Text for assistive technology alone, out of sight.
7
9
  export * from './00visuallyhidden.js';
8
10
  // A tile's standard header and footer bar, for a header or footer a component slots into a tile.
@@ -27,4 +29,4 @@ export * from './00group-simple/index.js';
27
29
  export * from './00group-terminal/index.js';
28
30
  export * from './00group-utility/index.js';
29
31
  export * from './00group-workspace/index.js';
30
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90c193ZWIvZWxlbWVudHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLGNBQWMsQ0FBQztBQUM3QixvSEFBb0g7QUFDcEgsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxxREFBcUQ7QUFDckQsY0FBYyx1QkFBdUIsQ0FBQztBQUN0QyxpR0FBaUc7QUFDakcsY0FBYyxnQkFBZ0IsQ0FBQztBQU0vQixzRkFBc0Y7QUFDdEYsY0FBYyx1QkFBdUIsQ0FBQztBQUV0QyxtQkFBbUI7QUFDbkIsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLDJCQUEyQixDQUFDO0FBQzFDLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGN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QXlCLENBQUM7QUFDeEMsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLDJCQUEyQixDQUFDO0FBQzFDLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYywyQkFBMkIsQ0FBQztBQUMxQyxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLDJCQUEyQixDQUFDO0FBQzFDLGNBQWMsNkJBQTZCLENBQUM7QUFDNUMsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLDhCQUE4QixDQUFDIn0=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design.estate/dees-catalog",
3
- "version": "21.48.0",
3
+ "version": "21.49.1",
4
4
  "private": false,
5
5
  "description": "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.",
6
6
  "main": "dist_ts_web/index.js",
package/readme.md CHANGED
@@ -806,6 +806,51 @@ public render() {
806
806
  }
807
807
  ```
808
808
 
809
+ ### Scrollbars
810
+
811
+ A scrollbar shows while its area scrolls and for a second after, and while a mouse rests over
812
+ the area, so the reader finds it and drags its thumb; otherwise it is invisible and takes no room.
813
+ It looks and behaves the same on macOS, Windows and Linux, in Chromium, Safari and Firefox: a 6px
814
+ thumb of `--dees-color-scrollbar-thumb` along the end and bottom edges, `-hover` while the pointer
815
+ rests on it or drags it, fading in with the theme's fast step and out with its slow one, at once
816
+ under reduced motion. The platform's own scrollbars are hidden, so a classic scrollbar (Windows,
817
+ Linux) reserves no gutter either. Wheel, touch, the keyboard and clicks scroll and reach the
818
+ content as before; only a mouse or pen press on a shown thumb is the scrollbar's. In forced
819
+ colours the platform's scrollbars come back, in the system's colours.
820
+
821
+ In the catalog: `dees-appui-mainmenu`, `dees-appui-secondarymenu`, `dees-appui-tabs`,
822
+ `dees-appui-activitylog`, the suggestions of `dees-input-tags`, the options of
823
+ `dees-input-dropdown`, `dees-progressbar`'s log, the code blocks of `dees-input-wysiwyg` (editor
824
+ and Markdown view) and `dees-harness-message-list`, whose `hideScrollbar` hides it altogether.
825
+
826
+ A component of its own joins with `OverlayScrollbarController` and `overlayScrollbarStyles`,
827
+ exported from the package root, instead of styling `::-webkit-scrollbar` (which turns the
828
+ platform's overlay scrollbar into one that always shows) or `scrollbar-width`. The controller
829
+ follows the scroller the host names as the scroll-edge controller does, and inserts the rails
830
+ right after it, in a positioned box around it; the rails cover the scroller's padding box.
831
+ `OverlayScrollbars` does the same for a scroller outside a Lit render (`attach(scroller)`,
832
+ `detach()`; a host that renders its scroller anew detaches the old one's, and a scroller dropped
833
+ with the DOM around it needs no `detach()`, since a drag it held ends at the next release or
834
+ press); `onDrag` tells a host when a thumb drag starts and ends:
835
+
836
+ ```typescript
837
+ import { OverlayScrollbarController, overlayScrollbarStyles, themeDefaultStyles } from '@design.estate/dees-catalog';
838
+
839
+ public static styles = [themeDefaultStyles, overlayScrollbarStyles, css`
840
+ .listFrame { position: relative; flex: 1; min-height: 0; }
841
+ .list { height: 100%; overflow-y: auto; }
842
+ `];
843
+
844
+ private readonly scrollbars = new OverlayScrollbarController(this, () => this.shadowRoot?.querySelector<HTMLElement>('.list'));
845
+
846
+ public render() {
847
+ return html`<div class="listFrame"><div class="list">…</div></div>`;
848
+ }
849
+ ```
850
+
851
+ A host that changes the scroller in a way its renders, its scroll and its children's sizes do not
852
+ show calls `scrollbars.sync()`.
853
+
809
854
  ### Visually hidden
810
855
 
811
856
  Text meant for assistive technology alone — a live region's announcement, the name of a column
@@ -5834,7 +5879,7 @@ For a queued or held user prompt the host can still withdraw, set `pendingAction
5834
5879
 
5835
5880
  Image attachments with inline `dataBase64` open in a `DeesModal` on click. When an image has metadata only, pass `.resolveAttachment` to `dees-harness-chat`, `dees-harness-message-list`, or the message itself. The `THarnessAttachmentResolver` receives `{ messageId, attachmentId }` and returns a complete `IHarnessAttachment` with the image's `dataBase64` after the host authorizes and reads it. The modal shows loading and read failure; closing it, unmounting the message, or replacing the message ignores a late result. The component accepts image bytes only, never a URL or filesystem path.
5836
5881
 
5837
- One message: role accent, markdown (assistant default, `message.markdown` overrides), attachments grid, reasoning parts, streaming cursor, usage/error footer. Markdown renders through `domtools.plugins.smartmarkdown` (GFM, sanitized). `markdownWhileStreaming` defaults to `true`, with throttled ≥150 ms re-parses while streaming; set it to `false` to retain plain text during the stream and parse once when the message ends. Fenced code is highlighted lazily after the final parse. Streaming methods: `appendTextDelta()`, `appendReasoningDelta()`, `endReasoning()`, `endStream(usage?, error?)`. A message that carries nothing but a tool call renders the bare row instead of the message frame, forwards `showTimestamp` to it, and reserves one line while virtualized when the transcript marks it with `data-tool-row`. A `role: 'user'` message carries `pending` (`THarnessPendingState`) while the session has not taken it in yet. The transcript list shows such a message in its queue (see `DeesHarnessMessageList`), and the element renders it like any other user message with one caption line under its content: "Steering · read at the next step" (`'steering'`), "Queued for the next turn" (`'queued'`), "Delivery unconfirmed" (`'uncertain'`), or "Held · not sent" with **Resend** and **Discard** buttons (`'held'`), which emit `harness-held-resend` and `harness-held-discard` with `{ messageId }`, bubbling and composed. A button pressed after the message stopped being held emits nothing. The line is gone once `pending` is cleared, and another role never shows it. `playAcceptanceSweep()` sweeps a scan across a user bubble once to mark that the session took it up: the former tool-card outcome scan in `--dees-color-accent-primary`, a band moving on `transform` alone, clipped to the bubble's rounded box, with nothing laid out anew and nothing clipped at rest. The transcript list calls it once a message it moved out of the queue has landed; a host that shows a message on its own calls it when the session takes the prompt up. It does nothing for another role or under `prefers-reduced-motion: reduce`, a sweep already playing plays on, and a new `id` ends it. A sweep that starts where nobody can see it — a row `content-visibility` skips, a hidden list, a background tab — still ends on schedule and never plays late. A block that appears in a message already shown — the thinking block as reasoning starts, the reply's text after it, attachments, a tool call beside text, the error and the usage footer as the stream ends — opens its space and then blends in, exactly like a transcript row, and takes no space on its first frame; later reasoning parts and streamed text grow the block they belong to instead. Nothing arrives on a first render, while `entering` is set (the list sets it while the message's row opens its space, so a block comes with the row), under reduced motion, or where the message is not rendered, and an engine without `Element.checkVisibility` shows the blocks without motion. Subtask activation emits the bubbling, composed, cancelable `harness-subtask-open` event with `{ sessionId, call }` before any inspector opens.
5882
+ One message: role accent, markdown (assistant default, `message.markdown` overrides), attachments grid, reasoning parts, streaming cursor, usage/error footer. Markdown renders through `domtools.plugins.smartmarkdown` (GFM, sanitized) with `harnessMarkdownRenderOptions`: a line break the model wrote is a line break (`breaks: true`), so a finished reply keeps the lines it streamed with, and `---` blocks at a reply's start are its text, never frontmatter (`frontmatter: false`). `markdownWhileStreaming` defaults to `true`, with throttled ≥150 ms re-parses while streaming; set it to `false` to retain plain text during the stream and parse once when the message ends. Fenced code is highlighted lazily after the final parse. Streaming methods: `appendTextDelta()`, `appendReasoningDelta()`, `endReasoning()`, `endStream(usage?, error?)`. A message that carries nothing but a tool call renders the bare row instead of the message frame, forwards `showTimestamp` to it, and reserves one line while virtualized when the transcript marks it with `data-tool-row`. A `role: 'user'` message carries `pending` (`THarnessPendingState`) while the session has not taken it in yet. The transcript list shows such a message in its queue (see `DeesHarnessMessageList`), and the element renders it like any other user message with one caption line under its content: "Steering · read at the next step" (`'steering'`), "Queued for the next turn" (`'queued'`), "Delivery unconfirmed" (`'uncertain'`), or "Held · not sent" with **Resend** and **Discard** buttons (`'held'`), which emit `harness-held-resend` and `harness-held-discard` with `{ messageId }`, bubbling and composed. A button pressed after the message stopped being held emits nothing. The line is gone once `pending` is cleared, and another role never shows it. `playAcceptanceSweep()` sweeps a scan across a user bubble once to mark that the session took it up: the former tool-card outcome scan in `--dees-color-accent-primary`, a band moving on `transform` alone, clipped to the bubble's rounded box, with nothing laid out anew and nothing clipped at rest. The transcript list calls it once a message it moved out of the queue has landed; a host that shows a message on its own calls it when the session takes the prompt up. It does nothing for another role or under `prefers-reduced-motion: reduce`, a sweep already playing plays on, and a new `id` ends it. A sweep that starts where nobody can see it — a row `content-visibility` skips, a hidden list, a background tab — still ends on schedule and never plays late. A block that appears in a message already shown — the thinking block as reasoning starts, the reply's text after it, attachments, a tool call beside text, the error and the usage footer as the stream ends — opens its space and then blends in, exactly like a transcript row, and takes no space on its first frame; later reasoning parts and streamed text grow the block they belong to instead. Nothing arrives on a first render, while `entering` is set (the list sets it while the message's row opens its space, so a block comes with the row), under reduced motion, or where the message is not rendered, and an engine without `Element.checkVisibility` shows the blocks without motion. Subtask activation emits the bubbling, composed, cancelable `harness-subtask-open` event with `{ sessionId, call }` before any inspector opens.
5838
5883
 
5839
5884
  `refreshMessage()` reconciles direct same-object host mutations across text, reasoning, and tool content.
5840
5885
 
@@ -6025,7 +6070,7 @@ Pass `.history` as `IHarnessComposerHistoryEntry[]` in oldest-to-newest send ord
6025
6070
 
6026
6071
  Place optional reply or task context in `slot="context"` to integrate it above the textarea inside one input surface. Set `contextDescription` to the same context as plain text for the textarea's accessible description. An empty slot reserves no space. Clicking informational context focuses the prompt; links and controls retain their own behavior. `DeesHarnessChat` supplies its reply heading here and keeps the composer within the conversation column, alongside the full-height desktop sidebar.
6027
6072
 
6028
- Prompt input: autogrow textarea, attachment picker/paste/drag-drop with configurable `maxAttachmentCount`, `maxAttachmentBytes` (10 MB default), and `maxTotalAttachmentBytes` (30 MB default), image/text/binary classification, optional account, model, and reasoning-effort dropdowns, Cmd/Ctrl+Enter to send. Attachment count is unlimited unless the host sets it. `attachmentAccept` names the files the host takes, as an `<input type="file">` `accept` list (`.pdf`, `application/pdf`, `image/*`): the picker offers those, and a picked, pasted or dropped file of another type is refused with `harness-attachment-error`; empty takes every file. `dees-harness-chat` forwards all three limits, `attachmentAccept` and `commands` to its composer. Controlled component — the host owns `value`, `attachments`, `commands`, `account`, and the other selections. Set `accountOptions` to `{ label, value }[]` so the dropdown displays readable labels while events retain opaque stable account values. Account changes emit `harness-account-change` with `{ account }`; `harness-send` includes optional `account` alongside `model` and `reasoningEffort`. While `account` names no usable option the account select says "Choose an account", and an empty `model` or `reasoningEffort` reads "Choose a model" or "Choose an effort".
6073
+ Prompt input: autogrow textarea, attachment picker/paste/drag-drop with configurable `maxAttachmentCount`, `maxAttachmentBytes` (10 MB default), and `maxTotalAttachmentBytes` (30 MB default), image/text/binary classification, optional account, model, and reasoning-effort dropdowns, Enter to send (also Cmd/Ctrl+Enter), Shift+Enter for a new line. The controls stay one row while they fit: the account and model pickers shrink to their minimum widths (120 and 150 px; they size from those widths, never from their labels), then the trailing actions (queued count, delivery hint, More options, Stop, Queue, the main action) wrap together onto their own line at the trailing edge; below a 760 px content box — measured inside a docked bar's inset, not on the full-bleed host — the pickers take a row of their own. Nothing widens the composer past its column; an Enter that commits an IME composition (`isComposing`, or key 229 right after `compositionend`) stays the composition's, and an open slash-command menu takes Enter to complete its highlighted entry first. Attachment count is unlimited unless the host sets it. `attachmentAccept` names the files the host takes, as an `<input type="file">` `accept` list (`.pdf`, `application/pdf`, `image/*`): the picker offers those, and a picked, pasted or dropped file of another type is refused with `harness-attachment-error`; empty takes every file. `dees-harness-chat` forwards all three limits, `attachmentAccept` and `commands` to its composer. Controlled component — the host owns `value`, `attachments`, `commands`, `account`, and the other selections. Set `accountOptions` to `{ label, value }[]` so the dropdown displays readable labels while events retain opaque stable account values. Account changes emit `harness-account-change` with `{ account }`; `harness-send` includes optional `account` alongside `model` and `reasoningEffort`. While `account` names no usable option the account select says "Choose an account", and an empty `model` or `reasoningEffort` reads "Choose a model" or "Choose an effort".
6029
6074
 
6030
6075
  An account that cannot be used right now stays listed: give its option `disabled: true` and a `description` with the reason or the fix ("Sign in again in Accounts to use it."). It cannot be chosen, and it is never the current account: an `account` that names a disabled option shows as no selection, and the host's `account` property is left as the host set it. When the host's `account` is a disabled option, `harness-send` carries no `account`, whatever its delivery. Treat a missing `account` as "no usable account": refuse the send or prompt for an account, and never fall back to a default account. `accountNote` is a note on the account choice, shown under the controls with or without options — for accounts that need attention, or for an account service that is unavailable and lists none. Its polite live region (`role="status"`) is in the DOM whenever the model controls show (`showModelControls`), visually hidden and taking no space while the note is empty, so both the note's first appearance and every later change are announced. It hides with the model controls, and `dees-harness-chat` forwards it.
6031
6076
 
@@ -6041,7 +6086,7 @@ and `addFiles()` ingestion; cancels queued/in-flight additions; and sends an emp
6041
6086
  and file drops cannot navigate away from the page. The host-owned attachments array
6042
6087
  is retained, so re-enabling the capability restores its chips without data loss.
6043
6088
 
6044
- Set `commands` to the `IHarnessComposerCommand[]` the host understands, each `{ name, description?, available?, unavailableReason?, argument? }`, where `argument` is `{ hint?, options? }`: `hint` shows after the name (`<model>`, `[prompt]`) and `options` are `IHarnessComposerOption[]` values for it. The composer filters the list itself, and the menu belongs to slash commands only: it opens while the prompt is a slash and part of a name (`/mo` lists the commands whose name starts with `mo`, case-insensitively), and once a name with argument options is complete (`/model `), it lists the options whose label or value contains the typed argument. Any other prompt opens nothing — ordinary text, a path such as `/tmp/build.log`, a name nothing matches, or a second line. While the textarea owns focus, the listbox stays anchored above the composer; moving focus to another control closes it. Arrow keys wrap through rows; Enter or Tab completes the highlighted row and never sends, and Escape closes the menu until the next keystroke. Completing a command puts `/name ` into the prompt (`/name` for a command without an argument) and leads on to its options; completing an option puts `/name value`. Each completion emits the bubbling/composed `harness-input`. A new `commands` array highlights the first row again, so keep its reference stable while the list is unchanged. A command with `available: false`, and an option with `disabled: true`, stays listed with its reason (`unavailableReason`, or the option's `description`) and cannot be completed.
6089
+ Set `commands` to the `IHarnessComposerCommand[]` the host understands, each `{ name, description?, available?, unavailableReason?, argument? }`, where `argument` is `{ hint?, options? }`: `hint` shows after the name (`<model>`, `[prompt]`) and `options` are `IHarnessComposerOption[]` values for it. The composer filters the list itself, and the menu belongs to slash commands only: it opens while the prompt is a slash and part of a name (`/mo` lists the commands whose name starts with `mo`, case-insensitively), and once a name with argument options is complete (`/model `), it lists the options whose label or value contains the typed argument. Any other prompt opens nothing — ordinary text, a path such as `/tmp/build.log`, a name nothing matches, or a second line. While the textarea owns focus, the listbox stays anchored above the composer; moving focus to another control closes it. Arrow keys wrap through rows; Enter or Tab completes the highlighted row, and Escape closes the menu until the next keystroke. A prompt that already is a row's completion (`/model gpt-5` while `gpt-5.5` is listed too, or `/new`) highlights that row, and Enter sends it instead of completing another. Completing a command puts `/name ` into the prompt (`/name` for a command without an argument) and leads on to its options; completing an option puts `/name value`. Each completion emits the bubbling/composed `harness-input`. A new `commands` array highlights the first row again, so keep its reference stable while the list is unchanged. A command with `available: false`, and an option with `disabled: true`, stays listed with its reason (`unavailableReason`, or the option's `description`) and cannot be completed.
6045
6090
 
6046
6091
  Sending a prompt whose first word names a listed command exactly emits `harness-command` instead of `harness-send`, with `IHarnessComposerCommandDetail` `{ name, argument, text, attachments, account?, model?, reasoningEffort? }`: `argument` is the trimmed text after the name, `text` the prompt as typed. A command runs whenever the composer is unlocked, busy or not — `busyDeliveryModes` applies to messages only — and while the prompt names one, the main action reads **Run**; an unavailable command cannot run, and the disabled button shows its reason. Every other prompt is a message and emits `harness-send`, including one that starts with an unlisted `/word`. Neither event clears the prompt: the host does, once it took the message or ran the command (`clearComposer()` on the chat).
6047
6092
 
@@ -6053,7 +6098,7 @@ While `busy` (a turn runs), Stop renders as an additional button and the main ac
6053
6098
  | `next-turn` | For a harness that reads messages only between turns: read after this turn. | **Send**, "Read after this turn" |
6054
6099
  | `queue` | Held by the host and sent as its own turn after this turn. | **Queue**, "Sent after this turn" |
6055
6100
 
6056
- The main action is `steer` when listed, else `next-turn`, else `queue`; its hint shows as a caption beside the actions and as its tooltip. With `queue` listed beside `steer` or `next-turn`, a secondary **Queue** button ("Queue for after this turn") stands between Stop and the main action. Every send emits `harness-send` with `IHarnessComposerSendDetail.delivery`: `'turn'` while nothing runs, otherwise the chosen `THarnessBusyDelivery`. While busy a delivery needs a nonempty draft, and an empty `busyDeliveryModes` sends nothing. Keyboard: **Cmd/Ctrl+Enter** is the main action, and **Alt+Enter** (also with Cmd/Ctrl) queues for after this turn whenever the host lists `queue` (a prompt naming a listed command runs it on either key instead); while nothing runs, or without `queue`, Alt+Enter stays the textarea's own. Stop only halts the running turn: it emits `harness-abort`, sends nothing and keeps the draft. What the session had not taken in yet is the host's to mark `held` (see `DeesHarnessMessageList`); the host owns delivery, acknowledgment and clearing the draft. A positive `queuedCount` shows as "N queued" beside the actions while busy.
6101
+ The main action is `steer` when listed, else `next-turn`, else `queue`; its hint shows as a caption beside the actions and as its tooltip. With `queue` listed beside `steer` or `next-turn`, a secondary **Queue** button ("Queue for after this turn") stands between Stop and the main action. Every send emits `harness-send` with `IHarnessComposerSendDetail.delivery`: `'turn'` while nothing runs, otherwise the chosen `THarnessBusyDelivery`. While busy a delivery needs a nonempty draft, and an empty `busyDeliveryModes` sends nothing. Keyboard: **Enter** (also **Cmd/Ctrl+Enter**) is the main action, and **Alt+Enter** (also with Cmd/Ctrl) queues for after this turn whenever the host lists `queue` (a prompt naming a listed command runs it on either key instead); while nothing runs, or without `queue`, Alt+Enter stays the textarea's own. Stop only halts the running turn: it emits `harness-abort`, sends nothing and keeps the draft. What the session had not taken in yet is the host's to mark `held` (see `DeesHarnessMessageList`); the host owns delivery, acknowledgment and clearing the draft. A positive `queuedCount` shows as "N queued" beside the actions while busy.
6057
6102
 
6058
6103
  Set `menuActions` to `IHarnessComposerMenuAction[]` (`{ key, label, iconName?, disabled?, disabledReason? }`) for host commands that belong to the conversation but not to the prompt, such as restarting the harness it runs in. While the list is not empty, a ghost `sm` button with a vertical ellipsis stands directly before Stop and the send actions. It is named "More options", announces a menu and whether it is open, takes Enter and Space, and opens a `dees-contextmenu` against itself — below it, or above it when the composer sits at the bottom of the window. Choosing a command emits `harness-menu-action` with `{ key }` (`IHarnessComposerMenuActionDetail`), bubbling and composed; the host runs the command. A command that cannot run right now stays listed with `disabled: true` and a `disabledReason` under its label, which the arrow keys reach, so the reason is heard too. The commands belong to the host, not to the prompt: `disabled` and `inputLocked` lock composing and sending only, so the button stays enabled and an open menu stays open while the composer is locked — a restart is often wanted exactly while the host holds the composer read-only. Each command's own `disabled` decides whether it runs, and a command the host disables or withdraws while the menu is open is refused. Emptying `menuActions` closes an open menu. `dees-harness-chat` forwards `menuActions`.
6059
6104
 
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@design.estate/dees-catalog',
6
- version: '21.48.0',
6
+ version: '21.49.1',
7
7
  description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.'
8
8
  }
@@ -17,6 +17,7 @@ import { demoFunc } from './dees-appui-activitylog.demo.js';
17
17
  import * as plugins from '../../00plugins.js';
18
18
  import { themeDefaultStyles } from '../../00theme.js';
19
19
  import { ScrollEdgeShadowController, scrollEdgeShadowStyles } from '../../00scrolledges.js';
20
+ import { OverlayScrollbarController, overlayScrollbarStyles } from '../../00scrollbars.js';
20
21
  import { appuiWords, type TAppuiActivitylogLabels } from '../appui.labels.js';
21
22
  import { dcLocalize } from '../../../i18n/localize.js';
22
23
  import { dcSourceI18n } from '../../../i18n/formats.js';
@@ -69,11 +70,18 @@ export class DeesAppuiActivitylog extends DeesElement implements IActivityLogAPI
69
70
  () => this.shadowRoot?.querySelector<HTMLElement>('.activityContainer'),
70
71
  );
71
72
 
73
+ /** The log's scrollbar, shown while it scrolls or the pointer is over it. */
74
+ private readonly scrollbars = new OverlayScrollbarController(
75
+ this,
76
+ () => this.shadowRoot?.querySelector<HTMLElement>('.activityContainer'),
77
+ );
78
+
72
79
  // STYLES
73
80
  public static styles = [
74
81
  themeDefaultStyles,
75
82
  cssManager.defaultStyles,
76
83
  scrollEdgeShadowStyles,
84
+ overlayScrollbarStyles,
77
85
  css`
78
86
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
79
87
 
@@ -173,25 +181,6 @@ export class DeesAppuiActivitylog extends DeesElement implements IActivityLogAPI
173
181
  padding: var(--activitylog-padding-block) 0;
174
182
  overflow-y: auto;
175
183
  overscroll-behavior: contain;
176
- scrollbar-width: thin;
177
- scrollbar-color: var(--dees-color-border-strong) transparent;
178
- }
179
-
180
- .activityContainer::-webkit-scrollbar {
181
- width: 6px;
182
- }
183
-
184
- .activityContainer::-webkit-scrollbar-track {
185
- background: transparent;
186
- }
187
-
188
- .activityContainer::-webkit-scrollbar-thumb {
189
- background: var(--dees-color-border-strong);
190
- border-radius: 3px;
191
- }
192
-
193
- .activityContainer::-webkit-scrollbar-thumb:hover {
194
- background: var(--dees-color-text-muted);
195
184
  }
196
185
 
197
186
  .empty-state {
@@ -21,6 +21,7 @@ import {
21
21
  import { demoFunc } from './dees-appui-mainmenu.demo.js';
22
22
  import { themeDefaultStyles } from '../../00theme.js';
23
23
  import { ScrollEdgeShadowController, scrollEdgeShadowStyles } from '../../00scrolledges.js';
24
+ import { OverlayScrollbarController, overlayScrollbarStyles } from '../../00scrollbars.js';
24
25
 
25
26
  /**
26
27
  * the most left menu
@@ -87,11 +88,18 @@ export class DeesAppuiMainmenu extends DeesElement {
87
88
  () => this.shadowRoot?.querySelector<HTMLElement>('.menuSection'),
88
89
  );
89
90
 
91
+ /** The groups' scrollbar, shown while they scroll or the pointer is over them. */
92
+ private readonly scrollbars = new OverlayScrollbarController(
93
+ this,
94
+ () => this.shadowRoot?.querySelector<HTMLElement>('.menuSection'),
95
+ );
96
+
90
97
  public static styles = [
91
98
  themeDefaultStyles,
92
99
  cssManager.defaultStyles,
93
100
  appuiRailStyles,
94
101
  scrollEdgeShadowStyles,
102
+ overlayScrollbarStyles,
95
103
  css`
96
104
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
97
105
 
@@ -192,23 +200,6 @@ export class DeesAppuiMainmenu extends DeesElement {
192
200
  padding: var(--dees-spacing-sm) 0;
193
201
  }
194
202
 
195
- .menuSection::-webkit-scrollbar {
196
- width: 6px;
197
- }
198
-
199
- .menuSection::-webkit-scrollbar-track {
200
- background: transparent;
201
- }
202
-
203
- .menuSection::-webkit-scrollbar-thumb {
204
- background: var(--dees-color-scrollbar-thumb);
205
- border-radius: var(--dees-radius-xs);
206
- }
207
-
208
- .menuSection::-webkit-scrollbar-thumb:hover {
209
- background: var(--dees-color-scrollbar-thumb-hover);
210
- }
211
-
212
203
  /* Menu Group. Its inset is the same in the rail, which keeps each icon
213
204
  where it is while the width moves. */
214
205
  .menuGroup {
@@ -24,6 +24,7 @@ import {
24
24
  import { demoFunc } from './dees-appui-secondarymenu.demo.js';
25
25
  import { themeDefaultStyles } from '../../00theme.js';
26
26
  import { ScrollEdgeShadowController, scrollEdgeShadowStyles } from '../../00scrolledges.js';
27
+ import { OverlayScrollbarController, overlayScrollbarStyles } from '../../00scrollbars.js';
27
28
  import { SubtreeOpenState, subtreeFoldTransition, subtreeRevealTransition, subtreeStyles } from '../../00subtree.js';
28
29
 
29
30
  /**
@@ -113,11 +114,18 @@ export class DeesAppuiSecondarymenu extends DeesElement {
113
114
  () => this.shadowRoot?.querySelector<HTMLElement>('.menuSection'),
114
115
  );
115
116
 
117
+ /** The groups' scrollbar, shown while they scroll or the pointer is over them. */
118
+ private readonly scrollbars = new OverlayScrollbarController(
119
+ this,
120
+ () => this.shadowRoot?.querySelector<HTMLElement>('.menuSection'),
121
+ );
122
+
116
123
  public static styles = [
117
124
  themeDefaultStyles,
118
125
  cssManager.defaultStyles,
119
126
  appuiRailStyles,
120
127
  scrollEdgeShadowStyles,
128
+ overlayScrollbarStyles,
121
129
  subtreeStyles,
122
130
  css`
123
131
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@@ -228,23 +236,6 @@ export class DeesAppuiSecondarymenu extends DeesElement {
228
236
  padding: var(--dees-spacing-sm) 0;
229
237
  }
230
238
 
231
- .menuSection::-webkit-scrollbar {
232
- width: 6px;
233
- }
234
-
235
- .menuSection::-webkit-scrollbar-track {
236
- background: transparent;
237
- }
238
-
239
- .menuSection::-webkit-scrollbar-thumb {
240
- background: var(--dees-color-scrollbar-thumb);
241
- border-radius: var(--dees-radius-xs);
242
- }
243
-
244
- .menuSection::-webkit-scrollbar-thumb:hover {
245
- background: var(--dees-color-scrollbar-thumb-hover);
246
- }
247
-
248
239
  /* Menu Group. Its inset is the same in the rail, which keeps each icon
249
240
  where it is while the width moves. */
250
241
  .menuGroup {