@design.estate/dees-catalog 21.42.0 → 21.43.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 +13 -5
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.d.ts +2 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.js +2 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-composer/dees-harness-composer.d.ts +10 -2
- package/dist_ts_web/elements/00group-harness/dees-harness-composer/dees-harness-composer.js +26 -6
- package/dist_ts_web/elements/00group-input/dees-input-multitoggle/dees-input-multitoggle.d.ts +2 -0
- package/dist_ts_web/elements/00group-input/dees-input-multitoggle/dees-input-multitoggle.js +3 -2
- package/package.json +1 -1
- package/readme.md +2 -2
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.ts +2 -1
- package/ts_web/elements/00group-harness/dees-harness-composer/dees-harness-composer.ts +28 -5
- package/ts_web/elements/00group-input/dees-input-multitoggle/dees-input-multitoggle.ts +4 -2
package/dist_bundle/bundle.js
CHANGED
|
@@ -1876,7 +1876,8 @@ var _DeesInputMultitoggle = class _DeesInputMultitoggle extends (_a5 = DeesInput
|
|
|
1876
1876
|
const selected2 = key === this.selectedOption;
|
|
1877
1877
|
const icon = typeof option === "string" ? void 0 : option.icon;
|
|
1878
1878
|
const badge = typeof option === "string" ? void 0 : option.badge;
|
|
1879
|
-
|
|
1879
|
+
const description = typeof option === "string" ? void 0 : option.description;
|
|
1880
|
+
return b`<button type="button" role="radio" class="option ${selected2 ? "selected" : ""}" data-option=${label} .title=${description ?? ""}
|
|
1880
1881
|
aria-checked=${selected2} ?disabled=${this.optionDisabled(option)} tabindex=${key === (typeof focusKey === "object" ? focusKey.key : focusKey) ? 0 : -1}
|
|
1881
1882
|
@click=${() => this.handleSelection(key)} @keydown=${this.handleKeydown}><span class="option-content">${icon ? b`<dees-icon .icon=${icon} iconSize="14" aria-hidden="true"></dees-icon>` : ""}<span class="option-label">${label}</span>${badge !== void 0 ? b`<span class="option-badge">${badge}</span>` : ""}</span></button>`;
|
|
1882
1883
|
})}
|
|
@@ -53663,6 +53664,8 @@ var demoFunc46 = /* @__PURE__ */ __name(() => demoPage("Composer", "Write, attac
|
|
|
53663
53664
|
var _actionMenuOpen_dec, _actionMenu_dec, _menuActions_dec, _showModelControls_dec, _modeOptions_dec, _mode_dec, _effortOptions_dec, _reasoningEffort_dec, _modelOptions_dec, _model_dec, _accountNote_dec, _accountOptions_dec, _account_dec, _attachmentAccept_dec, _maxAttachmentCount_dec, _maxTotalAttachmentBytes_dec, _maxAttachmentBytes_dec, _promptFocused_dec, _commandMenuDismissed_dec, _activeMenuIndex_dec, _commands_dec, _attachmentsEnabled_dec, _attachments_dec, _queuedCount_dec, _abortDisabledReason_dec, _abortEnabled_dec, _busyDeliveryModes_dec, _busy_dec3, _inputLocked_dec, _disabled_dec3, _docked_dec, _contextDescription_dec, _placeholder_dec6, _pendingMessageId_dec, _pendingMessagePresent_dec, _historyKey_dec, _loadEarlierHistory_dec, _hasEarlierHistory_dec, _history_dec, _value_dec16, _a67, _DeesHarnessComposer_decorators, _init69, _value16, _history, _hasEarlierHistory, _loadEarlierHistory, _historyKey, _pendingMessagePresent, _pendingMessageId, _placeholder6, _contextDescription, _docked, _disabled3, _inputLocked, _busy3, _busyDeliveryModes, _abortEnabled, _abortDisabledReason, _queuedCount, _attachments, _attachmentsEnabled, _commands, _activeMenuIndex, _commandMenuDismissed, _promptFocused, _maxAttachmentBytes, _maxTotalAttachmentBytes, _maxAttachmentCount, _attachmentAccept, _account, _accountOptions, _accountNote, _model, _modelOptions, _reasoningEffort, _effortOptions, _mode, _modeOptions, _showModelControls, _menuActions, _actionMenu, _actionMenuOpen;
|
|
53664
53665
|
var toDropdownOptions = /* @__PURE__ */ __name((values) => values.map((value) => ({ option: value, key: value })), "toDropdownOptions");
|
|
53665
53666
|
var toLabeledDropdownOptions = /* @__PURE__ */ __name((values) => values.map((value) => ({ option: value.label, key: value.value, disabled: value.disabled, description: value.description })), "toLabeledDropdownOptions");
|
|
53667
|
+
var modeOptionValue = /* @__PURE__ */ __name((option) => typeof option === "string" ? option : option.value, "modeOptionValue");
|
|
53668
|
+
var toModeToggleOptions = /* @__PURE__ */ __name((values) => values.map((value) => typeof value === "string" ? value : { key: value.value, label: value.label, disabled: value.disabled, description: value.description }), "toModeToggleOptions");
|
|
53666
53669
|
var nextCommandMenuId = 0;
|
|
53667
53670
|
var commandNameInput = /^\/([^\s/\\]*)$/u;
|
|
53668
53671
|
var commandArgumentInput = /^\/([^\s/\\]+)[ \t]+([^\n]*)$/u;
|
|
@@ -53760,6 +53763,8 @@ var _DeesHarnessComposer = class _DeesHarnessComposer extends (_a67 = DeesElemen
|
|
|
53760
53763
|
__privateAdd(this, _effortOptions, __runInitializers(_init69, 140, this, [])), __runInitializers(_init69, 143, this);
|
|
53761
53764
|
__privateAdd(this, _mode, __runInitializers(_init69, 144, this, "")), __runInitializers(_init69, 147, this);
|
|
53762
53765
|
__privateAdd(this, _modeOptions, __runInitializers(_init69, 148, this, [])), __runInitializers(_init69, 151, this);
|
|
53766
|
+
/** The switch's options, rebuilt only with `modeOptions`, so typing never redraws the switch. */
|
|
53767
|
+
__publicField(this, "modeToggleOptions", []);
|
|
53763
53768
|
__privateAdd(this, _showModelControls, __runInitializers(_init69, 152, this, true)), __runInitializers(_init69, 155, this);
|
|
53764
53769
|
__privateAdd(this, _menuActions, __runInitializers(_init69, 156, this, [])), __runInitializers(_init69, 159, this);
|
|
53765
53770
|
__privateAdd(this, _actionMenu, __runInitializers(_init69, 160, this)), __runInitializers(_init69, 163, this);
|
|
@@ -53814,8 +53819,10 @@ var _DeesHarnessComposer = class _DeesHarnessComposer extends (_a67 = DeesElemen
|
|
|
53814
53819
|
if (this.handlePromptHistoryKey(event)) return;
|
|
53815
53820
|
if (event.key === "Tab" && event.shiftKey && this.modeOptions.length) {
|
|
53816
53821
|
event.preventDefault();
|
|
53817
|
-
const
|
|
53818
|
-
|
|
53822
|
+
const modes = this.modeOptions.filter((option) => typeof option === "string" || !option.disabled).map(modeOptionValue);
|
|
53823
|
+
if (!modes.length) return;
|
|
53824
|
+
const nextMode = modes[(modes.indexOf(this.mode) + 1) % modes.length];
|
|
53825
|
+
if (nextMode === this.mode) return;
|
|
53819
53826
|
this.mode = nextMode;
|
|
53820
53827
|
this.emit("harness-mode-change", { mode: nextMode });
|
|
53821
53828
|
}
|
|
@@ -53913,6 +53920,7 @@ var _DeesHarnessComposer = class _DeesHarnessComposer extends (_a67 = DeesElemen
|
|
|
53913
53920
|
super.willUpdate(changedProperties);
|
|
53914
53921
|
if (changedProperties.has("value") || changedProperties.has("commands")) this.activeMenuIndex = -1;
|
|
53915
53922
|
if (changedProperties.has("historyKey")) this.resetHistoryNavigation();
|
|
53923
|
+
if (changedProperties.has("modeOptions")) this.modeToggleOptions = toModeToggleOptions(this.modeOptions);
|
|
53916
53924
|
}
|
|
53917
53925
|
updated(changedProperties) {
|
|
53918
53926
|
super.updated(changedProperties);
|
|
@@ -53988,7 +53996,7 @@ var _DeesHarnessComposer = class _DeesHarnessComposer extends (_a67 = DeesElemen
|
|
|
53988
53996
|
</dees-button>` : ""}
|
|
53989
53997
|
${this.modeOptions.length ? b`
|
|
53990
53998
|
<dees-input-multitoggle class="modeSwitch" label=${this.t("composer.mode")} .labelPosition=${"none"}
|
|
53991
|
-
.options=${this.
|
|
53999
|
+
.options=${this.modeToggleOptions} .selectedOption=${this.mode} .disabled=${this.interactionLocked}
|
|
53992
54000
|
@input=${(event) => event.stopPropagation()}
|
|
53993
54001
|
@change=${(event) => {
|
|
53994
54002
|
event.stopPropagation();
|
|
@@ -124157,7 +124165,7 @@ var bright = {
|
|
|
124157
124165
|
// ts_web/00_commitinfo_data.ts
|
|
124158
124166
|
var commitinfo = {
|
|
124159
124167
|
name: "@design.estate/dees-catalog",
|
|
124160
|
-
version: "21.
|
|
124168
|
+
version: "21.43.0",
|
|
124161
124169
|
description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
|
|
124162
124170
|
};
|
|
124163
124171
|
export {
|