@design.estate/dees-catalog 23.3.0 → 23.4.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 +3033 -2785
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-T6MJ73SK.js → chunk-6M55MVYH.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-I4IO5H5N.js → chunk-CM67HGUE.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-74TRVA7N.js → chunk-QVHO2EIW.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-74TRVA7N.js.map → chunk-QVHO2EIW.js.map} +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-OOMCZNLC.js → de-ZWMPLB5K.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-ZWMPLB5K.js.map +1 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-HUKGQIM3.js → dees-modal-75MIWWY2.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-OISBUFI7.js → dees-workspace-terminal-6V4DLJS3.js} +4 -4
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-composer/dees-harness-composer.d.ts +9 -39
- package/dist_ts_web/elements/00group-harness/dees-harness-composer/dees-harness-composer.js +85 -419
- package/dist_ts_web/elements/00group-input/dees-picker-fold/dees-picker-fold.d.ts +133 -0
- package/dist_ts_web/elements/00group-input/dees-picker-fold/dees-picker-fold.demo.d.ts +1 -0
- package/dist_ts_web/elements/00group-input/dees-picker-fold/dees-picker-fold.demo.js +71 -0
- package/dist_ts_web/elements/00group-input/dees-picker-fold/dees-picker-fold.js +600 -0
- package/dist_ts_web/elements/00group-input/dees-picker-fold/index.d.ts +1 -0
- package/dist_ts_web/elements/00group-input/dees-picker-fold/index.js +2 -0
- package/dist_ts_web/elements/00group-input/index.d.ts +1 -0
- package/dist_ts_web/elements/00group-input/index.js +2 -1
- package/dist_ts_web/i18n/de.d.ts +4 -4
- package/dist_ts_web/i18n/de.js +2 -2
- package/dist_ts_web/i18n/messages.d.ts +4 -4
- package/dist_ts_web/i18n/messages.js +2 -2
- package/package.json +1 -1
- package/readme.md +47 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-harness/dees-harness-composer/dees-harness-composer.ts +82 -403
- package/ts_web/elements/00group-input/dees-picker-fold/dees-picker-fold.demo.ts +77 -0
- package/ts_web/elements/00group-input/dees-picker-fold/dees-picker-fold.ts +559 -0
- package/ts_web/elements/00group-input/dees-picker-fold/index.ts +1 -0
- package/ts_web/elements/00group-input/index.ts +1 -0
- package/ts_web/i18n/de.ts +1 -1
- package/ts_web/i18n/messages.ts +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-OOMCZNLC.js.map +0 -1
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-T6MJ73SK.js.map → chunk-6M55MVYH.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-I4IO5H5N.js.map → chunk-CM67HGUE.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-HUKGQIM3.js.map → dees-modal-75MIWWY2.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-OISBUFI7.js.map → dees-workspace-terminal-6V4DLJS3.js.map} +0 -0
package/readme.md
CHANGED
|
@@ -22,6 +22,7 @@ switcher**, **view-toggle**, and **single-selection toggle** all lead to
|
|
|
22
22
|
| Turn one setting on or off | [`dees-input-toggle`](#deesinputtoggle), [`dees-input-checkbox`](#deesinputcheckbox) | Boolean setting or checkable form choice. Multitoggle's boolean mode is useful when both alternatives need explicit labels. |
|
|
23
23
|
| Toggle an independent toolbar option | [`dees-button`](#deesbutton) with `pressed`, [`dees-input-toggle`](#deesinputtoggle) | A toolbar or app-bar command that stays on uses a button with `pressed`; a labelled setting uses the switch. A set of independent options is not a single-selection multitoggle. |
|
|
24
24
|
| Choose from a longer menu of values | [`dees-input-dropdown`](#deesinputdropdown) | Searchable single selection; `enableSearch` defaults to true. |
|
|
25
|
+
| Put several dropdowns on a row that may be too narrow for them: a model and its effort, an account | [`dees-picker-fold`](#deespickerfold) | Where they do not fit, one button says the choices and opens the same dropdowns in a speech bubble; `fold="always"` for a narrow cell. Never hand-build the fold. |
|
|
25
26
|
| Group related commands | [`dees-button-group`](#deesbuttongroup), [`dees-actionbar`](#deesactionbar) | Layout for actions. A button group does not own a selected value. |
|
|
26
27
|
| Navigate open content panels, with optional close controls | [`dees-appui-tabs`](#deesappuitabs) | Tab selection, close actions and keyboard focus. Use multitoggle for changing a display mode within a panel. |
|
|
27
28
|
| Build an application shell with views and menus | [`dees-appui`](#deesappui) | Main/secondary navigation, content tabs, bars and view lifecycle. Routes by hash, or by path beside the host's server routes. |
|
|
@@ -462,6 +463,7 @@ task guide and examples deliberately; the generated table does not replace them.
|
|
|
462
463
|
| `dees-pagination` | layout | [DeesPagination](#deespagination) | [Source](ts_web/elements/00group-layout/dees-pagination/dees-pagination.ts) |
|
|
463
464
|
| `dees-panel` | layout | [DeesPanel](#deespanel) | [Source](ts_web/elements/00group-layout/dees-panel/dees-panel.ts) |
|
|
464
465
|
| `dees-pdf-viewer` | media | [DeesPdfViewer](#deespdfviewer) | [Source](ts_web/elements/00group-media/dees-pdf-viewer/component.ts) |
|
|
466
|
+
| `dees-picker-fold` | input | [DeesPickerFold](#deespickerfold) | [Source](ts_web/elements/00group-input/dees-picker-fold/dees-picker-fold.ts) |
|
|
465
467
|
| `dees-popover` | overlay | [DeesPopover](#deespopover) | [Source](ts_web/elements/00group-overlay/dees-popover/dees-popover.ts) |
|
|
466
468
|
| `dees-preview` | media | [DeesPreview](#deespreview) | [Source](ts_web/elements/00group-media/dees-preview/dees-preview.ts) |
|
|
467
469
|
| `dees-profilepicture-modal` | input | — | [Source](ts_web/elements/00group-input/profilepicture/profilepicture.modal.ts) |
|
|
@@ -1954,6 +1956,50 @@ usable one.
|
|
|
1954
1956
|
]}
|
|
1955
1957
|
```
|
|
1956
1958
|
|
|
1959
|
+
#### `DeesPickerFold`
|
|
1960
|
+
Dropdowns on a row that fold into one button where they do not fit. The button says the choices
|
|
1961
|
+
and opens the same dropdowns, one under another with their names, in a speech bubble
|
|
1962
|
+
(`dees-popover`); `dees-harness-composer` folds its account, model and effort this way.
|
|
1963
|
+
|
|
1964
|
+
```typescript
|
|
1965
|
+
<dees-picker-fold
|
|
1966
|
+
label="Model settings"
|
|
1967
|
+
primary="model"
|
|
1968
|
+
.pickers=${[
|
|
1969
|
+
{ key: 'model', label: 'Model', options: models, selectedOption: model, placeholder: 'Choose a model', minWidth: 150, maxWidth: 280 },
|
|
1970
|
+
{ key: 'effort', label: 'Reasoning effort', options: efforts, selectedOption: effort, minWidth: 150, maxWidth: 150 },
|
|
1971
|
+
]}
|
|
1972
|
+
@picker-change=${(event) => save(event.detail.key, event.detail.option.key)}
|
|
1973
|
+
></dees-picker-fold>
|
|
1974
|
+
```
|
|
1975
|
+
|
|
1976
|
+
- Each picker (`IPickerFoldPicker`) is a `dees-input-dropdown`: its `key`, its `label` (shown above
|
|
1977
|
+
it in the bubble only; on the row its choice speaks for it), `options`, `selectedOption`,
|
|
1978
|
+
`placeholder`, `disabled`, `enableSearch`, and `description`, a line under it in the bubble such
|
|
1979
|
+
as why it cannot be chosen now. On the row it is at least `minWidth` px and grows to `maxWidth`
|
|
1980
|
+
(absent, into what the row leaves); it sizes from these, never from its label.
|
|
1981
|
+
- `fold="auto"` (the default) folds where the pickers do not fit at their smallest widths. Among
|
|
1982
|
+
the items of a flex row the control takes the free space, and the pickers have to fit beside the
|
|
1983
|
+
row's other items at their widths, whichever line those wrapped onto; anywhere else, in the
|
|
1984
|
+
control's own width. The decision never reads the control's own content, so it never flips back
|
|
1985
|
+
and forth, and an open bubble keeps the pickers folded until it closes. `fold="always"` keeps them
|
|
1986
|
+
folded, for a cell too narrow to hold them; the button is then as wide as what it says.
|
|
1987
|
+
- The button says `summary`, or, empty, every picker's choice (else its placeholder) joined with
|
|
1988
|
+
" · ", where the choice of the `primary` picker gives way first and the others keep their words.
|
|
1989
|
+
Its tooltip holds every choice and its name is "`label`: what it says", however little shows.
|
|
1990
|
+
`warning` (such as a saved choice no longer offered) gives it the warning tone and says it in its
|
|
1991
|
+
tooltip and description.
|
|
1992
|
+
- The button and the row's pickers share the field's look, which a host sets for both through the
|
|
1993
|
+
dropdown's custom properties (`--dees-input-control-height`, `--dees-input-control-bg`,
|
|
1994
|
+
`--dees-input-control-border`); the bubble's pickers keep the catalog's look.
|
|
1995
|
+
- Controlled: a choice emits the bubbling `picker-change` with `{ key, option }`, and the pickers
|
|
1996
|
+
show what the host passes in `pickers`. A host that refuses a choice passes its own choice again
|
|
1997
|
+
(new option objects) and the dropdown shows it.
|
|
1998
|
+
- The focus follows a fold: a focused picker that folds away hands it to the button; when the
|
|
1999
|
+
pickers unfold, the same picker on the row takes it, or the `primary` one when it was on the
|
|
2000
|
+
button. `openPicker(key?)` focuses a picker and opens its list, opening the bubble first while
|
|
2001
|
+
folded; without a key, the primary picker. `folded` says whether the button stands in for them.
|
|
2002
|
+
|
|
1957
2003
|
#### `DeesInputFileupload`
|
|
1958
2004
|
File upload component with drag-and-drop support.
|
|
1959
2005
|
|
|
@@ -6272,7 +6318,7 @@ Set `setupItems` (`THarnessComposerSetupItem[]`) while a new session is being se
|
|
|
6272
6318
|
|
|
6273
6319
|
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.
|
|
6274
6320
|
|
|
6275
|
-
Prompt input: one card holds the prompt and its controls (docked, it floats on the transcript's measure with the chat's own surface around it; the card takes the focus ring while the prompt has focus), autogrow textarea at the subhead size, attachment picker/paste/drag-drop (an image with its data shows as a 48px thumbnail tile with its remove control on it; files as chips) 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 keep one row: the account, model and effort pickers shrink to their smallest widths (120, 150 and 110 px; they size from those widths, never from their labels), and where even those do not fit beside the attach button, the mode switch and the trailing actions, they fold into one settings button. It says the model, or the first choice still to make, and opens the same dropdowns, with their names, in a popover; an open popover keeps them folded until it closes. Only where even the folded row does not fit (a phone while a turn runs) do the trailing actions (queued count, delivery hint, More options, Stop, Queue, the main action) wrap together onto their own line at the trailing edge. The prompt's words, and the chat's "Replying to" line, start `md` in from the card's outer edge, where the transcript's words start above the docked composer. The main action and Stop are pills and keep their words (Send, Steer, Queue, Run; Stop with a square glyph). 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".
|
|
6321
|
+
Prompt input: one card holds the prompt and its controls (docked, it floats on the transcript's measure with the chat's own surface around it; the card takes the focus ring while the prompt has focus), autogrow textarea at the subhead size, attachment picker/paste/drag-drop (an image with its data shows as a 48px thumbnail tile with its remove control on it; files as chips) 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 keep one row: the account, model and effort pickers shrink to their smallest widths (120, 150 and 110 px; they size from those widths, never from their labels), and where even those do not fit beside the attach button, the mode switch and the trailing actions, they fold into one settings button ([DeesPickerFold](#deespickerfold)). It says the model, or the first choice still to make, and opens the same dropdowns, with their names, in a popover; an open popover keeps them folded until it closes. Only where even the folded row does not fit (a phone while a turn runs) do the trailing actions (queued count, delivery hint, More options, Stop, Queue, the main action) wrap together onto their own line at the trailing edge. The prompt's words, and the chat's "Replying to" line, start `md` in from the card's outer edge, where the transcript's words start above the docked composer. The main action and Stop are pills and keep their words (Send, Steer, Queue, Run; Stop with a square glyph). 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".
|
|
6276
6322
|
|
|
6277
6323
|
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.
|
|
6278
6324
|
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@design.estate/dees-catalog',
|
|
6
|
-
version: '23.
|
|
6
|
+
version: '23.4.0',
|
|
7
7
|
description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.'
|
|
8
8
|
}
|