@design.estate/dees-catalog 21.47.0 → 21.49.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.
- package/dist_bundle/bundle.js +83 -25
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-feedback/dees-statusbutton/dees-statusbutton.d.ts +13 -4
- package/dist_ts_web/elements/00group-feedback/dees-statusbutton/dees-statusbutton.demo.js +17 -2
- package/dist_ts_web/elements/00group-feedback/dees-statusbutton/dees-statusbutton.js +10 -2
- 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/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/package.json +1 -1
- package/readme.md +14 -7
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-feedback/dees-statusbutton/dees-statusbutton.demo.ts +16 -1
- package/ts_web/elements/00group-feedback/dees-statusbutton/dees-statusbutton.ts +20 -5
- 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/harness.markdown.ts +12 -1
- package/ts_web/elements/00group-harness/index.ts +1 -1
package/dist_bundle/bundle.js
CHANGED
|
@@ -45401,6 +45401,10 @@ var demoFunc37 = /* @__PURE__ */ __name(() => demoPage("Messages", "Conversation
|
|
|
45401
45401
|
`), "demoFunc");
|
|
45402
45402
|
|
|
45403
45403
|
// ts_web/elements/00group-harness/harness.markdown.ts
|
|
45404
|
+
var harnessMarkdownRenderOptions = Object.freeze({
|
|
45405
|
+
frontmatter: false,
|
|
45406
|
+
breaks: true
|
|
45407
|
+
});
|
|
45404
45408
|
var HarnessMarkdown = class _HarnessMarkdown {
|
|
45405
45409
|
static {
|
|
45406
45410
|
__name(this, "HarnessMarkdown");
|
|
@@ -45419,7 +45423,7 @@ var HarnessMarkdown = class _HarnessMarkdown {
|
|
|
45419
45423
|
this.cache.set(markdownText, cached);
|
|
45420
45424
|
return cached;
|
|
45421
45425
|
}
|
|
45422
|
-
const html = await domtools_pluginexports_exports.smartmarkdown.SmartMarkdown.
|
|
45426
|
+
const html = await domtools_pluginexports_exports.smartmarkdown.SmartMarkdown.markdownToHtml(markdownText, harnessMarkdownRenderOptions);
|
|
45423
45427
|
const processed = this.postProcess(html);
|
|
45424
45428
|
this.cache.set(markdownText, processed);
|
|
45425
45429
|
if (this.cache.size > _HarnessMarkdown.maxCacheEntries) {
|
|
@@ -54009,7 +54013,7 @@ var demoFunc46 = /* @__PURE__ */ __name(() => demoPage("Composer", "Write, attac
|
|
|
54009
54013
|
accountNote="Accounts could not be loaded. Chat resumes once the account service answers."
|
|
54010
54014
|
.modelOptions=${["gpt-5.5", "gpt-5"]}
|
|
54011
54015
|
></dees-harness-composer>
|
|
54012
|
-
<div class="dees-demo-label">Slash commands: type / to list them, Enter or Tab completes,
|
|
54016
|
+
<div class="dees-demo-label">Slash commands: type / to list them, Enter or Tab completes, Enter again runs</div>
|
|
54013
54017
|
<dees-harness-composer
|
|
54014
54018
|
.showModelControls=${false}
|
|
54015
54019
|
.commands=${[
|
|
@@ -54194,7 +54198,7 @@ var _DeesHarnessComposer = class _DeesHarnessComposer extends (_a67 = DeesElemen
|
|
|
54194
54198
|
}, "handleTextInput"));
|
|
54195
54199
|
__publicField(this, "handleKeydown", /* @__PURE__ */ __name((event) => {
|
|
54196
54200
|
if (this.interactionLocked) return;
|
|
54197
|
-
if (event.isComposing || this.composing) return;
|
|
54201
|
+
if (event.isComposing || this.composing || event.keyCode === 229) return;
|
|
54198
54202
|
if (event.key === "Enter" && event.altKey && this.busy && this.busyDeliveryModes.includes("queue")) {
|
|
54199
54203
|
event.preventDefault();
|
|
54200
54204
|
this.send("queue");
|
|
@@ -54220,7 +54224,7 @@ var _DeesHarnessComposer = class _DeesHarnessComposer extends (_a67 = DeesElemen
|
|
|
54220
54224
|
}
|
|
54221
54225
|
if (event.key === "Enter" || event.key === "Tab") {
|
|
54222
54226
|
const entry = menu.entries[this.activeMenuEntryIndex(menu)];
|
|
54223
|
-
if (entry) {
|
|
54227
|
+
if (entry && !(event.key === "Enter" && this.promptIsEntry(entry))) {
|
|
54224
54228
|
event.preventDefault();
|
|
54225
54229
|
void this.chooseMenuEntry(entry);
|
|
54226
54230
|
return;
|
|
@@ -54228,6 +54232,11 @@ var _DeesHarnessComposer = class _DeesHarnessComposer extends (_a67 = DeesElemen
|
|
|
54228
54232
|
}
|
|
54229
54233
|
}
|
|
54230
54234
|
}
|
|
54235
|
+
if (event.key === "Enter" && !event.shiftKey && !event.altKey) {
|
|
54236
|
+
event.preventDefault();
|
|
54237
|
+
this.send(this.primaryDelivery);
|
|
54238
|
+
return;
|
|
54239
|
+
}
|
|
54231
54240
|
if (this.handlePromptHistoryKey(event)) return;
|
|
54232
54241
|
if (event.key === "Tab" && event.shiftKey && this.modeOptions.length) {
|
|
54233
54242
|
event.preventDefault();
|
|
@@ -54463,7 +54472,7 @@ var _DeesHarnessComposer = class _DeesHarnessComposer extends (_a67 = DeesElemen
|
|
|
54463
54472
|
` : ""}
|
|
54464
54473
|
</div>
|
|
54465
54474
|
` : ""}
|
|
54466
|
-
<
|
|
54475
|
+
<div class="actions">
|
|
54467
54476
|
${this.busy && this.queuedCount > 0 ? b`<span class="queuedStatus" aria-live="polite">${this.t("composer.queued", { count: this.queuedCount })}</span>` : ""}
|
|
54468
54477
|
${this.busy && this.primaryBusyDelivery && !typedCommand ? b`<span class="deliveryHint">${this.t(deliveryHintKeys[this.primaryBusyDelivery])}</span>` : ""}
|
|
54469
54478
|
${this.menuActions.length ? b`
|
|
@@ -54517,6 +54526,7 @@ var _DeesHarnessComposer = class _DeesHarnessComposer extends (_a67 = DeesElemen
|
|
|
54517
54526
|
${typedCommand ? this.t("composer.run") : this.t(deliveryLabelKeys[this.primaryDelivery ?? "turn"])}
|
|
54518
54527
|
</dees-button>
|
|
54519
54528
|
</div>
|
|
54529
|
+
</div>
|
|
54520
54530
|
${this.showModelControls ? b`<p class="accountNote ${this.accountNote ? "" : "empty"}" role="status">${this.accountNote ? b`<dees-icon icon="lucide:Info" iconSize="12" aria-hidden="true"></dees-icon>
|
|
54521
54531
|
<span>${this.accountNote}</span>` : ""}</p>` : ""}
|
|
54522
54532
|
</div>
|
|
@@ -54690,10 +54700,18 @@ var _DeesHarnessComposer = class _DeesHarnessComposer extends (_a67 = DeesElemen
|
|
|
54690
54700
|
if (!this.promptFocused || this.interactionLocked || this.commandMenuDismissed) return void 0;
|
|
54691
54701
|
return commandMenuFor(this.value, this.commands);
|
|
54692
54702
|
}
|
|
54693
|
-
/**
|
|
54703
|
+
/**
|
|
54704
|
+
* The highlighted entry: the one moved to, else the one the prompt already is (`/model gpt-5`
|
|
54705
|
+
* among `gpt-5.5` and `gpt-5`), else the first that can be completed.
|
|
54706
|
+
*/
|
|
54694
54707
|
activeMenuEntryIndex(menuArg) {
|
|
54695
54708
|
if (this.activeMenuIndex >= 0 && this.activeMenuIndex < menuArg.entries.length) return this.activeMenuIndex;
|
|
54696
|
-
|
|
54709
|
+
const typed = menuArg.entries.findIndex((entry) => this.promptIsEntry(entry));
|
|
54710
|
+
return typed >= 0 ? typed : menuArg.entries.findIndex((entry) => !entry.unavailable);
|
|
54711
|
+
}
|
|
54712
|
+
/** The prompt is the entry's completion already, and the entry leads nowhere further. */
|
|
54713
|
+
promptIsEntry(entryArg) {
|
|
54714
|
+
return !entryArg.unavailable && !entryArg.opensOptions && entryArg.completion === this.value.trim();
|
|
54697
54715
|
}
|
|
54698
54716
|
commandMenuOptionId(indexArg) {
|
|
54699
54717
|
return `${this.commandMenuId}-option-${indexArg}`;
|
|
@@ -55119,6 +55137,11 @@ __publicField(_DeesHarnessComposer, "styles", [
|
|
|
55119
55137
|
|
|
55120
55138
|
.composer {
|
|
55121
55139
|
display: grid;
|
|
55140
|
+
/* No control may widen the composer past its column: a row that does not fit wraps. */
|
|
55141
|
+
grid-template-columns: minmax(0, 1fr);
|
|
55142
|
+
/* The controls' breakpoints measure the content box, which a docked bar insets to the
|
|
55143
|
+
transcript's measure, not the full-bleed host. */
|
|
55144
|
+
container: harness-composer / inline-size;
|
|
55122
55145
|
gap: var(--dees-spacing-sm);
|
|
55123
55146
|
padding: 12px;
|
|
55124
55147
|
border: var(--dees-line-width-hairline) solid var(--dees-color-border-subtle);
|
|
@@ -55269,8 +55292,13 @@ __publicField(_DeesHarnessComposer, "styles", [
|
|
|
55269
55292
|
color: var(--dees-color-text-primary);
|
|
55270
55293
|
}
|
|
55271
55294
|
|
|
55295
|
+
/*
|
|
55296
|
+
* One row while everything fits: the pickers shrink to their minimum widths first, then the
|
|
55297
|
+
* trailing actions wrap together onto a line of their own, still at the trailing edge.
|
|
55298
|
+
*/
|
|
55272
55299
|
.controlsRow {
|
|
55273
55300
|
display: flex;
|
|
55301
|
+
flex-wrap: wrap;
|
|
55274
55302
|
align-items: center;
|
|
55275
55303
|
gap: var(--dees-spacing-sm);
|
|
55276
55304
|
}
|
|
@@ -55280,10 +55308,18 @@ __publicField(_DeesHarnessComposer, "styles", [
|
|
|
55280
55308
|
.modelControls {
|
|
55281
55309
|
display: flex;
|
|
55282
55310
|
gap: var(--dees-spacing-xs);
|
|
55283
|
-
/*
|
|
55284
|
-
|
|
55311
|
+
/* takes the row's free space; its pickers stop at their own widths */
|
|
55312
|
+
flex: 1 1 auto;
|
|
55313
|
+
min-width: 0;
|
|
55314
|
+
}
|
|
55315
|
+
|
|
55316
|
+
.actions {
|
|
55317
|
+
display: flex;
|
|
55318
|
+
align-items: center;
|
|
55319
|
+
gap: var(--dees-spacing-sm);
|
|
55285
55320
|
flex: 0 1 auto;
|
|
55286
55321
|
min-width: 0;
|
|
55322
|
+
margin-inline-start: auto;
|
|
55287
55323
|
}
|
|
55288
55324
|
|
|
55289
55325
|
.modelControls dees-input-dropdown {
|
|
@@ -55293,19 +55329,26 @@ __publicField(_DeesHarnessComposer, "styles", [
|
|
|
55293
55329
|
--dees-input-control-border: transparent;
|
|
55294
55330
|
}
|
|
55295
55331
|
|
|
55332
|
+
/*
|
|
55333
|
+
* The pickers size from these widths, never from their labels (inline-size containment): a
|
|
55334
|
+
* long label truncates instead of asking the row for room, so the row wraps only when the
|
|
55335
|
+
* pickers at their minimum widths and the actions do not fit.
|
|
55336
|
+
*/
|
|
55296
55337
|
.accountSelect {
|
|
55297
|
-
flex:
|
|
55298
|
-
width: 180px;
|
|
55338
|
+
flex: 1 1 120px;
|
|
55299
55339
|
min-width: 120px;
|
|
55340
|
+
max-width: 180px;
|
|
55341
|
+
contain: inline-size;
|
|
55300
55342
|
}
|
|
55301
55343
|
|
|
55302
55344
|
/* Model identifiers are provider-qualified ("anthropic/claude-opus-5"),
|
|
55303
55345
|
so the control grows into the free space instead of truncating,
|
|
55304
55346
|
while still shrinking on narrow hosts. */
|
|
55305
55347
|
.modelSelect {
|
|
55306
|
-
flex:
|
|
55307
|
-
width: 280px;
|
|
55348
|
+
flex: 1 1 150px;
|
|
55308
55349
|
min-width: 150px;
|
|
55350
|
+
max-width: 280px;
|
|
55351
|
+
contain: inline-size;
|
|
55309
55352
|
}
|
|
55310
55353
|
|
|
55311
55354
|
.effortSelect {
|
|
@@ -55313,10 +55356,6 @@ __publicField(_DeesHarnessComposer, "styles", [
|
|
|
55313
55356
|
width: 110px;
|
|
55314
55357
|
}
|
|
55315
55358
|
|
|
55316
|
-
.spacer {
|
|
55317
|
-
flex: 1;
|
|
55318
|
-
}
|
|
55319
|
-
|
|
55320
55359
|
.accountNote {
|
|
55321
55360
|
display: flex;
|
|
55322
55361
|
align-items: flex-start;
|
|
@@ -55353,11 +55392,7 @@ __publicField(_DeesHarnessComposer, "styles", [
|
|
|
55353
55392
|
font-variant-numeric: tabular-nums;
|
|
55354
55393
|
}
|
|
55355
55394
|
|
|
55356
|
-
@container (max-width: 760px) {
|
|
55357
|
-
.controlsRow {
|
|
55358
|
-
flex-wrap: wrap;
|
|
55359
|
-
}
|
|
55360
|
-
|
|
55395
|
+
@container harness-composer (max-width: 760px) {
|
|
55361
55396
|
.modelControls {
|
|
55362
55397
|
order: -1;
|
|
55363
55398
|
flex: 1 0 100%;
|
|
@@ -72501,6 +72536,18 @@ var demoFunc68 = /* @__PURE__ */ __name(() => {
|
|
|
72501
72536
|
throw new Error("The bank refused the connection (403).");
|
|
72502
72537
|
}, "action")
|
|
72503
72538
|
}
|
|
72539
|
+
},
|
|
72540
|
+
{
|
|
72541
|
+
key: "unmatched",
|
|
72542
|
+
severity: "warning",
|
|
72543
|
+
text: "1 payment is not matched to an invoice.",
|
|
72544
|
+
action: {
|
|
72545
|
+
label: "Match payment",
|
|
72546
|
+
iconName: "lucide:Link",
|
|
72547
|
+
// Matching opens in the page, under the panel: the panel closes before it does.
|
|
72548
|
+
closesPanel: true,
|
|
72549
|
+
action: /* @__PURE__ */ __name(() => showDemoResult(actionStatus, "Match payment: the panel closed first (panel-toggle: action), the focus is on the status button, and the matching would open in the page now."), "action")
|
|
72550
|
+
}
|
|
72504
72551
|
}
|
|
72505
72552
|
];
|
|
72506
72553
|
return demoPage("Status button", "A page's status in its header: one button beside the page's actions that shows the worst status and a count of the warnings and errors, and opens a speech-bubble panel that lists them. An error or a severe warning opens the panel by itself.", b`
|
|
@@ -72581,10 +72628,13 @@ const statuses: IStatusbuttonItem[] = [
|
|
|
72581
72628
|
</div>
|
|
72582
72629
|
${demoOutput("Add an error.")}
|
|
72583
72630
|
`)}
|
|
72584
|
-
${demoSection("Actions on statuses", "A status can offer the way to resolve it. Remove duplicates runs for a moment and resolves its warning; Retry sync fails, and the failure is reported as dees-action-error, here shown as a toast.", b`
|
|
72631
|
+
${demoSection("Actions on statuses", "A status can offer the way to resolve it. Remove duplicates runs for a moment and resolves its warning; Retry sync fails, and the failure is reported as dees-action-error, here shown as a toast. Match payment takes the reader on to a flow in the page (closesPanel): the panel closes before it runs.", b`
|
|
72585
72632
|
<div class="dees-demo-row">
|
|
72586
72633
|
${actionStatus}
|
|
72587
72634
|
</div>
|
|
72635
|
+
${demoOutput("Press Match payment.")}
|
|
72636
|
+
${demoCode(`{ key: 'unmatched', severity: 'warning', text: '1 payment is not matched to an invoice.',
|
|
72637
|
+
action: { label: 'Match payment', iconName: 'lucide:Link', closesPanel: true, action: () => openMatching() } }`)}
|
|
72588
72638
|
`)}
|
|
72589
72639
|
`);
|
|
72590
72640
|
}, "demoFunc");
|
|
@@ -72637,6 +72687,8 @@ var _DeesStatusbutton = class _DeesStatusbutton extends (_a98 = DeesElement, _it
|
|
|
72637
72687
|
__publicField(this, "autoOpening", false);
|
|
72638
72688
|
/** Why the panel is about to open, set by whoever opens it; unset, the host set `open`. */
|
|
72639
72689
|
__publicField(this, "openReason");
|
|
72690
|
+
/** Why the panel is closing through the popover's `close()`, set around the call; unset, a press of the button. */
|
|
72691
|
+
__publicField(this, "closeReason");
|
|
72640
72692
|
/** The popover accepted the last opening: the panel is on screen. */
|
|
72641
72693
|
__publicField(this, "panelShown", false);
|
|
72642
72694
|
/** Tells when the button comes on screen, for an automatic opening that had to wait. */
|
|
@@ -72659,7 +72711,7 @@ var _DeesStatusbutton = class _DeesStatusbutton extends (_a98 = DeesElement, _it
|
|
|
72659
72711
|
if (!shown) return;
|
|
72660
72712
|
this.clearAnnouncements();
|
|
72661
72713
|
const reason = event.detail.reason;
|
|
72662
|
-
this.dispatchToggle(false, reason === "explicit" ? "button" : reason);
|
|
72714
|
+
this.dispatchToggle(false, reason === "explicit" ? this.closeReason ?? "button" : reason);
|
|
72663
72715
|
}, "handlePopoverClose"));
|
|
72664
72716
|
}
|
|
72665
72717
|
/** The statuses, an absent list counting as none. */
|
|
@@ -72951,6 +73003,11 @@ var _DeesStatusbutton = class _DeesStatusbutton extends (_a98 = DeesElement, _it
|
|
|
72951
73003
|
async runItemAction(item, button) {
|
|
72952
73004
|
const action = item.action;
|
|
72953
73005
|
if (!action || action.disabled || this.pendingActions.has(item.key)) return;
|
|
73006
|
+
if (action.closesPanel && this.open) {
|
|
73007
|
+
this.closeReason = "action";
|
|
73008
|
+
this.popoverElement?.close();
|
|
73009
|
+
this.closeReason = void 0;
|
|
73010
|
+
}
|
|
72954
73011
|
this.pendingActions = /* @__PURE__ */ new Set([...this.pendingActions, item.key]);
|
|
72955
73012
|
try {
|
|
72956
73013
|
await runAction(this, { action, source: "statusbutton-action" }, () => action.action());
|
|
@@ -125299,7 +125356,7 @@ var bright = {
|
|
|
125299
125356
|
// ts_web/00_commitinfo_data.ts
|
|
125300
125357
|
var commitinfo = {
|
|
125301
125358
|
name: "@design.estate/dees-catalog",
|
|
125302
|
-
version: "21.
|
|
125359
|
+
version: "21.49.0",
|
|
125303
125360
|
description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
|
|
125304
125361
|
};
|
|
125305
125362
|
export {
|
|
@@ -125532,6 +125589,7 @@ export {
|
|
|
125532
125589
|
harnessIsRecord,
|
|
125533
125590
|
harnessIsSupportedAttachmentType,
|
|
125534
125591
|
harnessLanguageForPath,
|
|
125592
|
+
harnessMarkdownRenderOptions,
|
|
125535
125593
|
harnessMaxAttachmentBytes,
|
|
125536
125594
|
harnessMaxTotalAttachmentBytes,
|
|
125537
125595
|
harnessMediaTypeForFile,
|