@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.
- package/dist_bundle/bundle.js +143 -154
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-QG5BHDQO.js → chunk-2O2L36Y3.js} +91 -69
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-QG5BHDQO.js.map → chunk-2O2L36Y3.js.map} +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-Q5VY4AV7.js → chunk-DTFC5CU3.js} +493 -34
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-DTFC5CU3.js.map +1 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-YOGT7PSU.js → dees-modal-4DMZSC7L.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-ORLONA36.js → dees-workspace-terminal-DM23WG2C.js} +3 -3
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-appui/dees-appui-activitylog/dees-appui-activitylog.d.ts +2 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-activitylog/dees-appui-activitylog.js +5 -20
- package/dist_ts_web/elements/00group-appui/dees-appui-mainmenu/dees-appui-mainmenu.d.ts +2 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-mainmenu/dees-appui-mainmenu.js +5 -18
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarymenu/dees-appui-secondarymenu.d.ts +2 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarymenu/dees-appui-secondarymenu.js +5 -18
- package/dist_ts_web/elements/00group-appui/dees-appui-tabs/dees-appui-tabs.d.ts +2 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-tabs/dees-appui-tabs.js +10 -33
- package/dist_ts_web/elements/00group-feedback/dees-progressbar/dees-progressbar.d.ts +2 -0
- package/dist_ts_web/elements/00group-feedback/dees-progressbar/dees-progressbar.js +6 -14
- package/dist_ts_web/elements/00group-harness/dees-harness-composer/dees-harness-composer.d.ts +11 -4
- package/dist_ts_web/elements/00group-harness/dees-harness-composer/dees-harness-composer.demo.js +1 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-composer/dees-harness-composer.js +61 -25
- package/dist_ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.d.ts +2 -0
- package/dist_ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.js +14 -4
- package/dist_ts_web/elements/00group-harness/harness.markdown.d.ts +7 -0
- package/dist_ts_web/elements/00group-harness/harness.markdown.js +11 -2
- package/dist_ts_web/elements/00group-harness/index.d.ts +1 -1
- package/dist_ts_web/elements/00group-harness/index.js +2 -2
- package/dist_ts_web/elements/00group-input/dees-input-dropdown/dees-input-dropdown-popup.d.ts +2 -0
- package/dist_ts_web/elements/00group-input/dees-input-dropdown/dees-input-dropdown-popup.js +5 -18
- package/dist_ts_web/elements/00group-input/dees-input-tags/dees-input-tags.d.ts +2 -0
- package/dist_ts_web/elements/00group-input/dees-input-tags/dees-input-tags.js +14 -23
- package/dist_ts_web/elements/00group-input/dees-input-wysiwyg/blocks/text/code.block.js +7 -19
- package/dist_ts_web/elements/00group-input/dees-input-wysiwyg/wysiwyg.markdown.view.d.ts +3 -0
- package/dist_ts_web/elements/00group-input/dees-input-wysiwyg/wysiwyg.markdown.view.js +15 -1
- package/dist_ts_web/elements/00scrollbars.d.ts +122 -0
- package/dist_ts_web/elements/00scrollbars.js +545 -0
- package/dist_ts_web/elements/00scrolledges.d.ts +1 -14
- package/dist_ts_web/elements/00scrolledges.js +7 -70
- package/dist_ts_web/elements/00scrollerwatch.d.ts +31 -0
- package/dist_ts_web/elements/00scrollerwatch.js +88 -0
- package/dist_ts_web/elements/index.d.ts +1 -0
- package/dist_ts_web/elements/index.js +3 -1
- package/package.json +1 -1
- package/readme.md +49 -4
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-appui/dees-appui-activitylog/dees-appui-activitylog.ts +8 -19
- package/ts_web/elements/00group-appui/dees-appui-mainmenu/dees-appui-mainmenu.ts +8 -17
- package/ts_web/elements/00group-appui/dees-appui-secondarymenu/dees-appui-secondarymenu.ts +8 -17
- package/ts_web/elements/00group-appui/dees-appui-tabs/dees-appui-tabs.ts +13 -32
- package/ts_web/elements/00group-feedback/dees-progressbar/dees-progressbar.ts +9 -13
- package/ts_web/elements/00group-harness/dees-harness-composer/dees-harness-composer.demo.ts +1 -1
- package/ts_web/elements/00group-harness/dees-harness-composer/dees-harness-composer.ts +61 -24
- package/ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.ts +13 -3
- package/ts_web/elements/00group-harness/harness.markdown.ts +12 -1
- package/ts_web/elements/00group-harness/index.ts +1 -1
- package/ts_web/elements/00group-input/dees-input-dropdown/dees-input-dropdown-popup.ts +8 -17
- package/ts_web/elements/00group-input/dees-input-tags/dees-input-tags.ts +17 -22
- package/ts_web/elements/00group-input/dees-input-wysiwyg/blocks/text/code.block.ts +7 -18
- package/ts_web/elements/00group-input/dees-input-wysiwyg/wysiwyg.markdown.view.ts +14 -0
- package/ts_web/elements/00scrollbars.ts +613 -0
- package/ts_web/elements/00scrolledges.ts +6 -71
- package/ts_web/elements/00scrollerwatch.ts +89 -0
- package/ts_web/elements/index.ts +2 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-Q5VY4AV7.js.map +0 -1
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-YOGT7PSU.js.map → dees-modal-4DMZSC7L.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-ORLONA36.js.map → dees-workspace-terminal-DM23WG2C.js.map} +0 -0
|
@@ -15,6 +15,7 @@ import * as domtools from '@design.estate/dees-domtools';
|
|
|
15
15
|
import { demoFunc } from './dees-appui-tabs.demo.js';
|
|
16
16
|
import { themeDefaultStyles } from '../../00theme.js';
|
|
17
17
|
import { prefersReducedMotion } from '../../00motion.js';
|
|
18
|
+
import { OverlayScrollbarController, overlayScrollbarStyles } from '../../00scrollbars.js';
|
|
18
19
|
import '../../00group-feedback/dees-badge/dees-badge.js';
|
|
19
20
|
import { DeesContextmenu } from '../../00group-overlay/dees-contextmenu/dees-contextmenu.js';
|
|
20
21
|
import { nextRovingIndex } from '../appui.roving.js';
|
|
@@ -88,11 +89,18 @@ export class DeesAppuiTabs extends DeesElement {
|
|
|
88
89
|
private accessor canScrollRight: boolean = false;
|
|
89
90
|
|
|
90
91
|
private resizeObserver: ResizeObserver | null = null;
|
|
92
|
+
|
|
93
|
+
/** The horizontal strip's scrollbar, shown while it scrolls or the pointer is over it. */
|
|
94
|
+
private readonly scrollbars = new OverlayScrollbarController(
|
|
95
|
+
this,
|
|
96
|
+
() => this.shadowRoot?.querySelector<HTMLElement>('.tabsContainer.horizontal'),
|
|
97
|
+
);
|
|
91
98
|
private renaming = false;
|
|
92
99
|
|
|
93
100
|
public static styles = [
|
|
94
101
|
themeDefaultStyles,
|
|
95
102
|
cssManager.defaultStyles,
|
|
103
|
+
overlayScrollbarStyles,
|
|
96
104
|
css`
|
|
97
105
|
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
|
|
98
106
|
|
|
@@ -149,6 +157,11 @@ export class DeesAppuiTabs extends DeesElement {
|
|
|
149
157
|
opacity: 1;
|
|
150
158
|
}
|
|
151
159
|
|
|
160
|
+
/* The strip's scrollbar draws over the fades at its ends. */
|
|
161
|
+
.scroll-area > .overlayScrollbar {
|
|
162
|
+
z-index: 11;
|
|
163
|
+
}
|
|
164
|
+
|
|
152
165
|
.scroll-area {
|
|
153
166
|
position: relative;
|
|
154
167
|
flex: 1;
|
|
@@ -226,44 +239,12 @@ export class DeesAppuiTabs extends DeesElement {
|
|
|
226
239
|
overflow-x: auto;
|
|
227
240
|
overflow-y: hidden;
|
|
228
241
|
overscroll-behavior: contain;
|
|
229
|
-
scrollbar-width: thin;
|
|
230
|
-
scrollbar-color: transparent transparent;
|
|
231
242
|
height: 100%;
|
|
232
243
|
width: 100%;
|
|
233
244
|
padding: 4px 12px 0;
|
|
234
245
|
gap: 4px;
|
|
235
246
|
}
|
|
236
247
|
|
|
237
|
-
/* Show scrollbar on hover */
|
|
238
|
-
.tabs-wrapper:hover .tabsContainer.horizontal,
|
|
239
|
-
.scroll-area:hover .tabsContainer.horizontal {
|
|
240
|
-
scrollbar-color: var(--dees-color-scrollbar-thumb) transparent;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.tabsContainer.horizontal::-webkit-scrollbar {
|
|
244
|
-
height: 4px;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.tabsContainer.horizontal::-webkit-scrollbar-track {
|
|
248
|
-
background: transparent;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.tabsContainer.horizontal::-webkit-scrollbar-thumb {
|
|
252
|
-
background: transparent;
|
|
253
|
-
border-radius: 2px;
|
|
254
|
-
transition: background var(--dees-transition-default) var(--dees-ease-standard);
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.tabs-wrapper:hover .tabsContainer.horizontal::-webkit-scrollbar-thumb,
|
|
258
|
-
.scroll-area:hover .tabsContainer.horizontal::-webkit-scrollbar-thumb {
|
|
259
|
-
background: var(--dees-color-scrollbar-thumb);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.tabs-wrapper:hover .tabsContainer.horizontal::-webkit-scrollbar-thumb:hover,
|
|
263
|
-
.scroll-area:hover .tabsContainer.horizontal::-webkit-scrollbar-thumb:hover {
|
|
264
|
-
background: var(--dees-color-scrollbar-thumb-hover);
|
|
265
|
-
}
|
|
266
|
-
|
|
267
248
|
.tabsContainer.vertical {
|
|
268
249
|
display: flex;
|
|
269
250
|
flex-direction: column;
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
} from '@design.estate/dees-element';
|
|
11
11
|
import { themeDefaultStyles } from '../../00theme.js';
|
|
12
12
|
import { reducedMotionQuery } from '../../00motion.js';
|
|
13
|
+
import { OverlayScrollbarController, overlayScrollbarStyles } from '../../00scrollbars.js';
|
|
13
14
|
import { dcLocalize } from '../../../i18n/localize.js';
|
|
14
15
|
|
|
15
16
|
declare global {
|
|
@@ -83,9 +84,16 @@ export class DeesProgressbar extends DeesElement {
|
|
|
83
84
|
/** Owned for the length of a connection, so the text spinner stops and starts with the preference. */
|
|
84
85
|
private reducedMotion: MediaQueryList | undefined;
|
|
85
86
|
|
|
87
|
+
/** The terminal's scrollbar, shown while it scrolls or the pointer is over it; the panel is its frame. */
|
|
88
|
+
private readonly scrollbars = new OverlayScrollbarController(
|
|
89
|
+
this,
|
|
90
|
+
() => this.shadowRoot?.querySelector<HTMLElement>('.terminalScroller'),
|
|
91
|
+
);
|
|
92
|
+
|
|
86
93
|
public static styles = [
|
|
87
94
|
themeDefaultStyles,
|
|
88
95
|
cssManager.defaultStyles,
|
|
96
|
+
overlayScrollbarStyles,
|
|
89
97
|
css`
|
|
90
98
|
:host {
|
|
91
99
|
/* inner bevel hairline, dark mode only */
|
|
@@ -149,6 +157,7 @@ export class DeesProgressbar extends DeesElement {
|
|
|
149
157
|
}
|
|
150
158
|
|
|
151
159
|
.statusPanel {
|
|
160
|
+
position: relative;
|
|
152
161
|
margin-top: var(--dees-spacing-sm);
|
|
153
162
|
height: calc(var(--status-rows, 3) * var(--dees-font-caption1-line) + 2 * var(--dees-spacing-sm));
|
|
154
163
|
min-height: calc(var(--status-rows, 3) * var(--dees-font-caption1-line) + 2 * var(--dees-spacing-sm));
|
|
@@ -176,19 +185,6 @@ export class DeesProgressbar extends DeesElement {
|
|
|
176
185
|
overflow: auto;
|
|
177
186
|
}
|
|
178
187
|
|
|
179
|
-
.terminalScroller::-webkit-scrollbar {
|
|
180
|
-
width: 6px;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.terminalScroller::-webkit-scrollbar-thumb {
|
|
184
|
-
background: var(--dees-color-border-strong);
|
|
185
|
-
border-radius: var(--dees-radius-full);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.terminalScroller::-webkit-scrollbar-track {
|
|
189
|
-
background: transparent;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
188
|
.linePrefix {
|
|
193
189
|
width: 1ch;
|
|
194
190
|
flex: 0 0 1ch;
|
|
@@ -60,7 +60,7 @@ export const demoFunc = () => demoPage('Composer', 'Write, attach files, choose
|
|
|
60
60
|
accountNote="Accounts could not be loaded. Chat resumes once the account service answers."
|
|
61
61
|
.modelOptions=${['gpt-5.5', 'gpt-5']}
|
|
62
62
|
></dees-harness-composer>
|
|
63
|
-
<div class="dees-demo-label">Slash commands: type / to list them, Enter or Tab completes,
|
|
63
|
+
<div class="dees-demo-label">Slash commands: type / to list them, Enter or Tab completes, Enter again runs</div>
|
|
64
64
|
<dees-harness-composer
|
|
65
65
|
.showModelControls=${false}
|
|
66
66
|
.commands=${[
|
|
@@ -156,7 +156,8 @@ const deliveryHintKeys = {
|
|
|
156
156
|
/**
|
|
157
157
|
* Prompt composer: autogrow textarea, attachments (picker / paste /
|
|
158
158
|
* drag-drop with accepted types and per-file and total size limits), optional account, model,
|
|
159
|
-
* and reasoning-effort dropdowns. Cmd/Ctrl+Enter sends
|
|
159
|
+
* and reasoning-effort dropdowns. Enter (also Cmd/Ctrl+Enter) sends, Shift+Enter starts a new line,
|
|
160
|
+
* and an Enter that commits an IME composition stays the composition's. While busy, Stop is an
|
|
160
161
|
* additional button and the main action delivers the draft the way the host supports
|
|
161
162
|
* (`busyDeliveryModes`): Steer (read at the next step) when it can, else Send (read after this
|
|
162
163
|
* turn); "Queue for after this turn" is the secondary action, also on Alt+Enter.
|
|
@@ -165,7 +166,8 @@ const deliveryHintKeys = {
|
|
|
165
166
|
* Slash commands: `commands` lists the commands the host understands. A prompt that starts with
|
|
166
167
|
* `/` and part of a name opens a menu of the matching commands, and once a name is complete, of
|
|
167
168
|
* its argument options; any other prompt opens nothing. Enter or Tab completes the highlighted
|
|
168
|
-
* entry
|
|
169
|
+
* entry, Enter on the entry the prompt already is sends it, and Escape closes the menu until the
|
|
170
|
+
* next keystroke. Sending a prompt that
|
|
169
171
|
* names a listed command emits `harness-command` instead of `harness-send`, busy or not, and the
|
|
170
172
|
* main button reads Run; every other prompt, such as `/tmp/build.log`, is a message.
|
|
171
173
|
*
|
|
@@ -255,7 +257,7 @@ export class DeesHarnessComposer extends DeesElement {
|
|
|
255
257
|
|
|
256
258
|
/**
|
|
257
259
|
* How the host can deliver a message sent while a turn runs (`THarnessBusyDelivery`). The main
|
|
258
|
-
* action (Cmd/Ctrl+Enter) is `steer` when listed ("Steer", read at the next step), else
|
|
260
|
+
* action (Enter, Cmd/Ctrl+Enter) is `steer` when listed ("Steer", read at the next step), else
|
|
259
261
|
* `next-turn` ("Send", read after this turn), else `queue` ("Queue"); with `queue` listed beside
|
|
260
262
|
* one of the others, "Queue" is a secondary action for after this turn (Alt+Enter). Empty, a
|
|
261
263
|
* busy composer sends nothing. `harness-send` carries the chosen `delivery`.
|
|
@@ -479,6 +481,11 @@ export class DeesHarnessComposer extends DeesElement {
|
|
|
479
481
|
|
|
480
482
|
.composer {
|
|
481
483
|
display: grid;
|
|
484
|
+
/* No control may widen the composer past its column: a row that does not fit wraps. */
|
|
485
|
+
grid-template-columns: minmax(0, 1fr);
|
|
486
|
+
/* The controls' breakpoints measure the content box, which a docked bar insets to the
|
|
487
|
+
transcript's measure, not the full-bleed host. */
|
|
488
|
+
container: harness-composer / inline-size;
|
|
482
489
|
gap: var(--dees-spacing-sm);
|
|
483
490
|
padding: 12px;
|
|
484
491
|
border: var(--dees-line-width-hairline) solid var(--dees-color-border-subtle);
|
|
@@ -629,8 +636,13 @@ export class DeesHarnessComposer extends DeesElement {
|
|
|
629
636
|
color: var(--dees-color-text-primary);
|
|
630
637
|
}
|
|
631
638
|
|
|
639
|
+
/*
|
|
640
|
+
* One row while everything fits: the pickers shrink to their minimum widths first, then the
|
|
641
|
+
* trailing actions wrap together onto a line of their own, still at the trailing edge.
|
|
642
|
+
*/
|
|
632
643
|
.controlsRow {
|
|
633
644
|
display: flex;
|
|
645
|
+
flex-wrap: wrap;
|
|
634
646
|
align-items: center;
|
|
635
647
|
gap: var(--dees-spacing-sm);
|
|
636
648
|
}
|
|
@@ -640,10 +652,18 @@ export class DeesHarnessComposer extends DeesElement {
|
|
|
640
652
|
.modelControls {
|
|
641
653
|
display: flex;
|
|
642
654
|
gap: var(--dees-spacing-xs);
|
|
643
|
-
/*
|
|
644
|
-
|
|
655
|
+
/* takes the row's free space; its pickers stop at their own widths */
|
|
656
|
+
flex: 1 1 auto;
|
|
657
|
+
min-width: 0;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
.actions {
|
|
661
|
+
display: flex;
|
|
662
|
+
align-items: center;
|
|
663
|
+
gap: var(--dees-spacing-sm);
|
|
645
664
|
flex: 0 1 auto;
|
|
646
665
|
min-width: 0;
|
|
666
|
+
margin-inline-start: auto;
|
|
647
667
|
}
|
|
648
668
|
|
|
649
669
|
.modelControls dees-input-dropdown {
|
|
@@ -653,19 +673,26 @@ export class DeesHarnessComposer extends DeesElement {
|
|
|
653
673
|
--dees-input-control-border: transparent;
|
|
654
674
|
}
|
|
655
675
|
|
|
676
|
+
/*
|
|
677
|
+
* The pickers size from these widths, never from their labels (inline-size containment): a
|
|
678
|
+
* long label truncates instead of asking the row for room, so the row wraps only when the
|
|
679
|
+
* pickers at their minimum widths and the actions do not fit.
|
|
680
|
+
*/
|
|
656
681
|
.accountSelect {
|
|
657
|
-
flex:
|
|
658
|
-
width: 180px;
|
|
682
|
+
flex: 1 1 120px;
|
|
659
683
|
min-width: 120px;
|
|
684
|
+
max-width: 180px;
|
|
685
|
+
contain: inline-size;
|
|
660
686
|
}
|
|
661
687
|
|
|
662
688
|
/* Model identifiers are provider-qualified ("anthropic/claude-opus-5"),
|
|
663
689
|
so the control grows into the free space instead of truncating,
|
|
664
690
|
while still shrinking on narrow hosts. */
|
|
665
691
|
.modelSelect {
|
|
666
|
-
flex:
|
|
667
|
-
width: 280px;
|
|
692
|
+
flex: 1 1 150px;
|
|
668
693
|
min-width: 150px;
|
|
694
|
+
max-width: 280px;
|
|
695
|
+
contain: inline-size;
|
|
669
696
|
}
|
|
670
697
|
|
|
671
698
|
.effortSelect {
|
|
@@ -673,10 +700,6 @@ export class DeesHarnessComposer extends DeesElement {
|
|
|
673
700
|
width: 110px;
|
|
674
701
|
}
|
|
675
702
|
|
|
676
|
-
.spacer {
|
|
677
|
-
flex: 1;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
703
|
.accountNote {
|
|
681
704
|
display: flex;
|
|
682
705
|
align-items: flex-start;
|
|
@@ -713,11 +736,7 @@ export class DeesHarnessComposer extends DeesElement {
|
|
|
713
736
|
font-variant-numeric: tabular-nums;
|
|
714
737
|
}
|
|
715
738
|
|
|
716
|
-
@container (max-width: 760px) {
|
|
717
|
-
.controlsRow {
|
|
718
|
-
flex-wrap: wrap;
|
|
719
|
-
}
|
|
720
|
-
|
|
739
|
+
@container harness-composer (max-width: 760px) {
|
|
721
740
|
.modelControls {
|
|
722
741
|
order: -1;
|
|
723
742
|
flex: 1 0 100%;
|
|
@@ -927,7 +946,7 @@ export class DeesHarnessComposer extends DeesElement {
|
|
|
927
946
|
</div>
|
|
928
947
|
`
|
|
929
948
|
: ''}
|
|
930
|
-
<
|
|
949
|
+
<div class="actions">
|
|
931
950
|
${this.busy && this.queuedCount > 0
|
|
932
951
|
? html`<span class="queuedStatus" aria-live="polite">${this.t('composer.queued', { count: this.queuedCount })}</span>`
|
|
933
952
|
: ''}
|
|
@@ -997,6 +1016,7 @@ export class DeesHarnessComposer extends DeesElement {
|
|
|
997
1016
|
${typedCommand ? this.t('composer.run') : this.t(deliveryLabelKeys[this.primaryDelivery ?? 'turn'])}
|
|
998
1017
|
</dees-button>
|
|
999
1018
|
</div>
|
|
1019
|
+
</div>
|
|
1000
1020
|
${this.showModelControls
|
|
1001
1021
|
? html`<p class="accountNote ${this.accountNote ? '' : 'empty'}" role="status">${this.accountNote
|
|
1002
1022
|
? html`<dees-icon icon="lucide:Info" iconSize="12" aria-hidden="true"></dees-icon>
|
|
@@ -1097,7 +1117,8 @@ export class DeesHarnessComposer extends DeesElement {
|
|
|
1097
1117
|
|
|
1098
1118
|
private handleKeydown = (event: KeyboardEvent): void => {
|
|
1099
1119
|
if (this.interactionLocked) return;
|
|
1100
|
-
|
|
1120
|
+
// Some browsers deliver the Enter that commits an IME composition after compositionend, as key 229.
|
|
1121
|
+
if (event.isComposing || this.composing || event.keyCode === 229) return;
|
|
1101
1122
|
// Alt+Enter queues for after this turn wherever the host queues; alone or with Cmd/Ctrl.
|
|
1102
1123
|
if (event.key === 'Enter' && event.altKey && this.busy && this.busyDeliveryModes.includes('queue')) {
|
|
1103
1124
|
event.preventDefault();
|
|
@@ -1123,10 +1144,11 @@ export class DeesHarnessComposer extends DeesElement {
|
|
|
1123
1144
|
return;
|
|
1124
1145
|
}
|
|
1125
1146
|
// Enter and Tab complete the highlighted entry. On a highlighted entry that cannot be
|
|
1126
|
-
// completed they do nothing; with no entry highlighted they keep their own meaning
|
|
1147
|
+
// completed they do nothing; with no entry highlighted they keep their own meaning, and
|
|
1148
|
+
// Enter on the entry the prompt already is sends the prompt.
|
|
1127
1149
|
if (event.key === 'Enter' || event.key === 'Tab') {
|
|
1128
1150
|
const entry = menu.entries[this.activeMenuEntryIndex(menu)];
|
|
1129
|
-
if (entry) {
|
|
1151
|
+
if (entry && !(event.key === 'Enter' && this.promptIsEntry(entry))) {
|
|
1130
1152
|
event.preventDefault();
|
|
1131
1153
|
void this.chooseMenuEntry(entry);
|
|
1132
1154
|
return;
|
|
@@ -1134,6 +1156,12 @@ export class DeesHarnessComposer extends DeesElement {
|
|
|
1134
1156
|
}
|
|
1135
1157
|
}
|
|
1136
1158
|
}
|
|
1159
|
+
// Enter sends the prompt (the main action while busy); Shift+Enter is the textarea's new line.
|
|
1160
|
+
if (event.key === 'Enter' && !event.shiftKey && !event.altKey) {
|
|
1161
|
+
event.preventDefault();
|
|
1162
|
+
this.send(this.primaryDelivery);
|
|
1163
|
+
return;
|
|
1164
|
+
}
|
|
1137
1165
|
if (this.handlePromptHistoryKey(event)) return;
|
|
1138
1166
|
// Shift+Tab cycles the agent mode without leaving the prompt
|
|
1139
1167
|
if (event.key === 'Tab' && event.shiftKey && this.modeOptions.length) {
|
|
@@ -1295,10 +1323,19 @@ export class DeesHarnessComposer extends DeesElement {
|
|
|
1295
1323
|
return commandMenuFor(this.value, this.commands);
|
|
1296
1324
|
}
|
|
1297
1325
|
|
|
1298
|
-
/**
|
|
1326
|
+
/**
|
|
1327
|
+
* The highlighted entry: the one moved to, else the one the prompt already is (`/model gpt-5`
|
|
1328
|
+
* among `gpt-5.5` and `gpt-5`), else the first that can be completed.
|
|
1329
|
+
*/
|
|
1299
1330
|
private activeMenuEntryIndex(menuArg: ICommandMenu): number {
|
|
1300
1331
|
if (this.activeMenuIndex >= 0 && this.activeMenuIndex < menuArg.entries.length) return this.activeMenuIndex;
|
|
1301
|
-
|
|
1332
|
+
const typed = menuArg.entries.findIndex((entry) => this.promptIsEntry(entry));
|
|
1333
|
+
return typed >= 0 ? typed : menuArg.entries.findIndex((entry) => !entry.unavailable);
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
/** The prompt is the entry's completion already, and the entry leads nowhere further. */
|
|
1337
|
+
private promptIsEntry(entryArg: ICommandMenuEntry): boolean {
|
|
1338
|
+
return !entryArg.unavailable && !entryArg.opensOptions && entryArg.completion === this.value.trim();
|
|
1302
1339
|
}
|
|
1303
1340
|
|
|
1304
1341
|
private commandMenuOptionId(indexArg: number): string {
|
package/ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.ts
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
import { dcLocalize } from '../../../i18n/localize.js';
|
|
14
14
|
import { themeDefaultStyles } from '../../00theme.js';
|
|
15
15
|
import { prefersReducedMotion } from '../../00motion.js';
|
|
16
|
+
import { OverlayScrollbarController, overlayScrollbarStyles } from '../../00scrollbars.js';
|
|
16
17
|
import type {
|
|
17
18
|
IHarnessMessage,
|
|
18
19
|
IHarnessMessageViewState,
|
|
@@ -227,6 +228,16 @@ export class DeesHarnessMessageList extends DeesElement {
|
|
|
227
228
|
}),
|
|
228
229
|
t: this.t,
|
|
229
230
|
});
|
|
231
|
+
/** A thumb dragged up is a scrollbar gesture: it asks for earlier messages at the top, as wheel and touch do. */
|
|
232
|
+
private readonly scrollbars = new OverlayScrollbarController(this, () => this.scrollContainer, {
|
|
233
|
+
onDrag: (dragging) => {
|
|
234
|
+
this.scrollbarGestureActive = dragging;
|
|
235
|
+
if (dragging) {
|
|
236
|
+
this.cancelFullAnchorRestore();
|
|
237
|
+
this.markUserUnpinned();
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
});
|
|
230
241
|
private readonly localViewState: IHarnessTranscriptViewState = {
|
|
231
242
|
messages: {},
|
|
232
243
|
permissions: {},
|
|
@@ -293,6 +304,7 @@ export class DeesHarnessMessageList extends DeesElement {
|
|
|
293
304
|
cssManager.defaultStyles,
|
|
294
305
|
harnessArrivalStyles,
|
|
295
306
|
harnessQueueStyles,
|
|
307
|
+
overlayScrollbarStyles,
|
|
296
308
|
css`
|
|
297
309
|
:host {
|
|
298
310
|
position: relative;
|
|
@@ -308,8 +320,6 @@ export class DeesHarnessMessageList extends DeesElement {
|
|
|
308
320
|
overflow-y: auto;
|
|
309
321
|
overflow-anchor: none;
|
|
310
322
|
overscroll-behavior: contain;
|
|
311
|
-
scrollbar-width: thin;
|
|
312
|
-
scrollbar-color: var(--dees-color-scrollbar-thumb) transparent;
|
|
313
323
|
padding: 16px;
|
|
314
324
|
box-sizing: border-box;
|
|
315
325
|
container: harness-transcript / inline-size;
|
|
@@ -319,7 +329,7 @@ export class DeesHarnessMessageList extends DeesElement {
|
|
|
319
329
|
scrollbar-width: none;
|
|
320
330
|
}
|
|
321
331
|
|
|
322
|
-
.scroll.hideScrollbar
|
|
332
|
+
.scroll.hideScrollbar ~ .overlayScrollbar {
|
|
323
333
|
display: none;
|
|
324
334
|
}
|
|
325
335
|
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { css, type CSSResult } from '@design.estate/dees-element';
|
|
2
2
|
import * as domtools from '@design.estate/dees-domtools';
|
|
3
|
+
import type { IMarkdownHtmlOptions } from '@push.rocks/smartmarkdown';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A reply renders as it streamed: each line break the model wrote is a line break (`breaks`), as
|
|
7
|
+
* the plain streaming text shows it, and a reply is never a document with frontmatter, so `---`
|
|
8
|
+
* blocks at its start stay its own text (`frontmatter: false`).
|
|
9
|
+
*/
|
|
10
|
+
export const harnessMarkdownRenderOptions: Readonly<IMarkdownHtmlOptions> = Object.freeze({
|
|
11
|
+
frontmatter: false,
|
|
12
|
+
breaks: true,
|
|
13
|
+
});
|
|
3
14
|
|
|
4
15
|
/**
|
|
5
16
|
* Markdown service for harness messages. Uses smartmarkdown (already in the
|
|
@@ -27,7 +38,7 @@ export class HarnessMarkdown {
|
|
|
27
38
|
this.cache.set(markdownText, cached);
|
|
28
39
|
return cached;
|
|
29
40
|
}
|
|
30
|
-
const html = await domtools.plugins.smartmarkdown.SmartMarkdown.
|
|
41
|
+
const html = await domtools.plugins.smartmarkdown.SmartMarkdown.markdownToHtml(markdownText, harnessMarkdownRenderOptions);
|
|
31
42
|
const processed = this.postProcess(html);
|
|
32
43
|
this.cache.set(markdownText, processed);
|
|
33
44
|
if (this.cache.size > HarnessMarkdown.maxCacheEntries) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
export * from './interfaces.js';
|
|
5
5
|
export * from './toolregistry.js';
|
|
6
6
|
export * from './harness.helpers.js';
|
|
7
|
-
export { HarnessMarkdown, markdownStyles } from './harness.markdown.js';
|
|
7
|
+
export { HarnessMarkdown, harnessMarkdownRenderOptions, markdownStyles } from './harness.markdown.js';
|
|
8
8
|
export { harnessCardStyles, harnessPillStyles, harnessMonoStyles } from './harness.styles.js';
|
|
9
9
|
export * from './harness.demodata.js';
|
|
10
10
|
export * from './dees-harness-overflow-text.js';
|
|
@@ -13,6 +13,7 @@ import { zIndexRegistry } from '../../00zindex.js';
|
|
|
13
13
|
import { themeDefaultStyles } from '../../00theme.js';
|
|
14
14
|
import { DeesWindowLayer } from '../../00group-overlay/dees-windowlayer/dees-windowlayer.js';
|
|
15
15
|
import { listenForScrollAround } from '../../00anchorplacement.js';
|
|
16
|
+
import { OverlayScrollbarController, overlayScrollbarStyles } from '../../00scrollbars.js';
|
|
16
17
|
import { dcLocalize } from '../../../i18n/localize.js';
|
|
17
18
|
|
|
18
19
|
declare global {
|
|
@@ -97,9 +98,16 @@ export class DeesInputDropdownPopup extends DeesElement {
|
|
|
97
98
|
/** The list's openings so far: a close removes the list after its exit only if none came since. */
|
|
98
99
|
private openings = 0;
|
|
99
100
|
|
|
101
|
+
/** The options' scrollbar, shown while they scroll or the pointer is over them; the box is its frame. */
|
|
102
|
+
private readonly scrollbars = new OverlayScrollbarController(
|
|
103
|
+
this,
|
|
104
|
+
() => this.shadowRoot?.querySelector<HTMLElement>('.options-container'),
|
|
105
|
+
);
|
|
106
|
+
|
|
100
107
|
public static styles = [
|
|
101
108
|
themeDefaultStyles,
|
|
102
109
|
cssManager.defaultStyles,
|
|
110
|
+
overlayScrollbarStyles,
|
|
103
111
|
css`
|
|
104
112
|
:host {
|
|
105
113
|
position: fixed;
|
|
@@ -246,23 +254,6 @@ export class DeesInputDropdownPopup extends DeesElement {
|
|
|
246
254
|
}
|
|
247
255
|
.options-container:focus-visible { outline: var(--dees-line-width-focus-ring) solid var(--dees-color-focus-ring); outline-offset: -2px; }
|
|
248
256
|
@media (prefers-reduced-motion: reduce) { .selectionBox, .option { transition: none; transform: none; } }
|
|
249
|
-
|
|
250
|
-
.options-container::-webkit-scrollbar {
|
|
251
|
-
width: 8px;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.options-container::-webkit-scrollbar-track {
|
|
255
|
-
background: transparent;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.options-container::-webkit-scrollbar-thumb {
|
|
259
|
-
background: var(--dees-color-border-default);
|
|
260
|
-
border-radius: var(--dees-radius-sm);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.options-container::-webkit-scrollbar-thumb:hover {
|
|
264
|
-
background: var(--dees-color-border-strong);
|
|
265
|
-
}
|
|
266
257
|
`,
|
|
267
258
|
];
|
|
268
259
|
|
|
@@ -12,6 +12,7 @@ import '../../00group-utility/dees-icon/dees-icon.js';
|
|
|
12
12
|
import { demoFunc } from './dees-input-tags.demo.js';
|
|
13
13
|
import { themeDefaultStyles } from '../../00theme.js';
|
|
14
14
|
import { listenForScrollAround, placeAnchored, visibleRect } from '../../00anchorplacement.js';
|
|
15
|
+
import { OverlayScrollbarController, overlayScrollbarStyles } from '../../00scrollbars.js';
|
|
15
16
|
import { dcLocalize } from '../../../i18n/localize.js';
|
|
16
17
|
|
|
17
18
|
/**
|
|
@@ -63,10 +64,17 @@ export class DeesInputTags extends DeesInputBase<DeesInputTags> {
|
|
|
63
64
|
/** Ends the listeners that keep the open suggestions beside the field. */
|
|
64
65
|
private suggestionsTracking?: AbortController;
|
|
65
66
|
|
|
67
|
+
/** The suggestions' scrollbar, shown while they scroll or the pointer is over them. */
|
|
68
|
+
private readonly scrollbars = new OverlayScrollbarController(
|
|
69
|
+
this,
|
|
70
|
+
() => this.shadowRoot?.querySelector<HTMLElement>('.suggestions-list'),
|
|
71
|
+
);
|
|
72
|
+
|
|
66
73
|
public static styles = [
|
|
67
74
|
themeDefaultStyles,
|
|
68
75
|
...DeesInputBase.baseStyles,
|
|
69
76
|
cssManager.defaultStyles,
|
|
77
|
+
overlayScrollbarStyles,
|
|
70
78
|
css`
|
|
71
79
|
:host {
|
|
72
80
|
display: block;
|
|
@@ -174,7 +182,8 @@ export class DeesInputTags extends DeesInputBase<DeesInputTags> {
|
|
|
174
182
|
cursor: not-allowed;
|
|
175
183
|
}
|
|
176
184
|
|
|
177
|
-
/* Suggestions: a popover in the top layer, placed below the field by placeSuggestions.
|
|
185
|
+
/* Suggestions: a popover in the top layer, placed below the field by placeSuggestions.
|
|
186
|
+
The list scrolls inside it, the frame its scrollbar is placed in. */
|
|
178
187
|
.suggestions-dropdown {
|
|
179
188
|
position: fixed;
|
|
180
189
|
inset: auto;
|
|
@@ -186,7 +195,11 @@ export class DeesInputTags extends DeesInputBase<DeesInputTags> {
|
|
|
186
195
|
border-radius: var(--dees-radius-lg);
|
|
187
196
|
corner-shape: var(--dees-corner-shape);
|
|
188
197
|
box-shadow: var(--dees-shadow-lg);
|
|
189
|
-
|
|
198
|
+
overflow: hidden;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.suggestions-list {
|
|
202
|
+
max-height: calc(200px - 2 * var(--dees-line-width-hairline));
|
|
190
203
|
overflow-y: auto;
|
|
191
204
|
}
|
|
192
205
|
|
|
@@ -228,24 +241,6 @@ export class DeesInputTags extends DeesInputBase<DeesInputTags> {
|
|
|
228
241
|
margin-top: 6px;
|
|
229
242
|
line-height: 1.5;
|
|
230
243
|
}
|
|
231
|
-
|
|
232
|
-
/* Scrollbar styling */
|
|
233
|
-
.suggestions-dropdown::-webkit-scrollbar {
|
|
234
|
-
width: 8px;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.suggestions-dropdown::-webkit-scrollbar-track {
|
|
238
|
-
background: transparent;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.suggestions-dropdown::-webkit-scrollbar-thumb {
|
|
242
|
-
background: var(--dees-color-border-default);
|
|
243
|
-
border-radius: 4px;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.suggestions-dropdown::-webkit-scrollbar-thumb:hover {
|
|
247
|
-
background: var(--dees-color-border-strong);
|
|
248
|
-
}
|
|
249
244
|
`,
|
|
250
245
|
];
|
|
251
246
|
|
|
@@ -293,7 +288,7 @@ export class DeesInputTags extends DeesInputBase<DeesInputTags> {
|
|
|
293
288
|
</div>
|
|
294
289
|
|
|
295
290
|
${this.showSuggestions && filteredSuggestions.length > 0 ? html`
|
|
296
|
-
<div class="suggestions-dropdown" popover="manual">
|
|
291
|
+
<div class="suggestions-dropdown" popover="manual"><div class="suggestions-list">
|
|
297
292
|
${filteredSuggestions.map((suggestion, index) => html`
|
|
298
293
|
<div
|
|
299
294
|
class="suggestion ${index === this.highlightedSuggestionIndex ? 'highlighted' : ''}"
|
|
@@ -306,7 +301,7 @@ export class DeesInputTags extends DeesInputBase<DeesInputTags> {
|
|
|
306
301
|
${suggestion}
|
|
307
302
|
</div>
|
|
308
303
|
`)}
|
|
309
|
-
</div>
|
|
304
|
+
</div></div>
|
|
310
305
|
` : ''}
|
|
311
306
|
|
|
312
307
|
${this.validationText ? html`
|
|
@@ -4,6 +4,7 @@ import { cssManager } from '@design.estate/dees-element';
|
|
|
4
4
|
import { WysiwygSelection } from '../../wysiwyg.selection.js';
|
|
5
5
|
import type { HLJSApi } from 'highlight.js';
|
|
6
6
|
import { cssMonoFontFamily } from '../../../../00fonts.js';
|
|
7
|
+
import { OverlayScrollbars, overlayScrollbarStyles } from '../../../../00scrollbars.js';
|
|
7
8
|
import {
|
|
8
9
|
isPlainTextLanguage,
|
|
9
10
|
loadSyntaxHighlighter,
|
|
@@ -81,6 +82,9 @@ export class CodeBlockHandler extends BaseBlockHandler {
|
|
|
81
82
|
const languageSelector = element.querySelector('.language-selector') as HTMLSelectElement;
|
|
82
83
|
|
|
83
84
|
if (!editor || !container) return;
|
|
85
|
+
|
|
86
|
+
// A long line scrolls the code sideways, under the overlay scrollbar.
|
|
87
|
+
new OverlayScrollbars().attach(element.querySelector<HTMLElement>('.code-content'));
|
|
84
88
|
|
|
85
89
|
// Setup language selector
|
|
86
90
|
if (languageSelector) {
|
|
@@ -473,6 +477,9 @@ export class CodeBlockHandler extends BaseBlockHandler {
|
|
|
473
477
|
/* shared syntax palette (system code colors, dark defaults + gobright overrides) */
|
|
474
478
|
${syntaxPaletteStyles.cssText}
|
|
475
479
|
|
|
480
|
+
/* the overlay scrollbar of a long line */
|
|
481
|
+
${overlayScrollbarStyles.cssText}
|
|
482
|
+
|
|
476
483
|
/* Code Block Container - Minimalist shadcn style */
|
|
477
484
|
.code-block-container {
|
|
478
485
|
position: relative;
|
|
@@ -654,24 +661,6 @@ export class CodeBlockHandler extends BaseBlockHandler {
|
|
|
654
661
|
.code-editor *::selection {
|
|
655
662
|
background: color-mix(in srgb, var(--dees-color-accent-primary) 25%, transparent);
|
|
656
663
|
}
|
|
657
|
-
|
|
658
|
-
/* Scrollbar styling - Minimal */
|
|
659
|
-
.code-content::-webkit-scrollbar {
|
|
660
|
-
height: 6px;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
.code-content::-webkit-scrollbar-track {
|
|
664
|
-
background: transparent;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
.code-content::-webkit-scrollbar-thumb {
|
|
668
|
-
background: var(--dees-color-scrollbar-thumb);
|
|
669
|
-
border-radius: 3px;
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
.code-content::-webkit-scrollbar-thumb:hover {
|
|
673
|
-
background: var(--dees-color-scrollbar-thumb-hover);
|
|
674
|
-
}
|
|
675
664
|
`;
|
|
676
665
|
}
|
|
677
666
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { HLJSApi } from 'highlight.js';
|
|
2
2
|
import { dcSourceWords, type TDcTranslator } from '../../../i18n/messages.js';
|
|
3
3
|
import { isPlainTextLanguage, loadSyntaxHighlighter } from '../../00syntax.js';
|
|
4
|
+
import { OverlayScrollbars } from '../../00scrollbars.js';
|
|
4
5
|
import { programmingLanguageWord } from './wysiwyg.constants.js';
|
|
5
6
|
import {
|
|
6
7
|
DeesContextmenu,
|
|
@@ -101,6 +102,8 @@ export class MarkdownView {
|
|
|
101
102
|
private nodeByElement = new WeakMap<HTMLElement, IMarkdownNode>();
|
|
102
103
|
private fillers = new WeakSet<Text>();
|
|
103
104
|
private definitions = new Map<string, string>();
|
|
105
|
+
/** The overlay scrollbars of the code blocks rendered, let go when the document renders anew. */
|
|
106
|
+
private codeScrollbars: OverlayScrollbars[] = [];
|
|
104
107
|
|
|
105
108
|
constructor(
|
|
106
109
|
private readonly t: TDcTranslator = dcSourceWords,
|
|
@@ -110,6 +113,7 @@ export class MarkdownView {
|
|
|
110
113
|
/** Renders the document editable into `container`, with an empty paragraph at `gap`. */
|
|
111
114
|
public render(container: HTMLElement, source: string, tree: TMarkdownRoot,
|
|
112
115
|
options: { sourceMode: boolean; gap: number | null }): void {
|
|
116
|
+
this.releaseCodeScrollbars();
|
|
113
117
|
this.container = container;
|
|
114
118
|
this.source = source;
|
|
115
119
|
this.tree = tree;
|
|
@@ -143,6 +147,12 @@ export class MarkdownView {
|
|
|
143
147
|
|
|
144
148
|
public detach(): void {
|
|
145
149
|
this.container = null;
|
|
150
|
+
this.releaseCodeScrollbars();
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
private releaseCodeScrollbars(): void {
|
|
154
|
+
for (const scrollbars of this.codeScrollbars) scrollbars.detach();
|
|
155
|
+
this.codeScrollbars = [];
|
|
146
156
|
}
|
|
147
157
|
|
|
148
158
|
/** The Markdown node an editable element shows. */
|
|
@@ -473,6 +483,10 @@ export class MarkdownView {
|
|
|
473
483
|
pre.appendChild(editor);
|
|
474
484
|
content.appendChild(pre);
|
|
475
485
|
body.append(numbers, content);
|
|
486
|
+
// A long line scrolls the code sideways, under the overlay scrollbar, as in block mode.
|
|
487
|
+
const scrollbars = new OverlayScrollbars();
|
|
488
|
+
scrollbars.attach(content);
|
|
489
|
+
this.codeScrollbars.push(scrollbars);
|
|
476
490
|
container.appendChild(body);
|
|
477
491
|
return container;
|
|
478
492
|
}
|