@design.estate/dees-catalog 24.1.0 → 24.3.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 +7274 -5319
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{addon-fit-XY7VCF6W.js → addon-fit-RDDY6CA4.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{addon-search-OQXRIIMV.js → addon-search-UT4OBXLU.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{addon-serialize-BV6MHBIQ.js → addon-serialize-U4KTWHZ2.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{addon-web-links-IYKN5JS7.js → addon-web-links-QMZRXLUR.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-FUMEXHR4.js → chunk-4UZGSPGV.js} +39 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-FUMEXHR4.js.map → chunk-4UZGSPGV.js.map} +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-K2UNUD5D.js → chunk-7CM7S6EQ.js} +19 -19
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-MV6OSXZD.js → chunk-AR2XNHGF.js} +2 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-NFVJ3L3L.js → chunk-LFHMAQWF.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-4DJP4JAJ.js → chunk-OPVBP4HP.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-BTYTET7H.js → chunk-R6EBIDCM.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-XE2K545Z.js → de-LD3JG4AD.js} +35 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-LD3JG4AD.js.map +1 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-IIOB2SYP.js → dees-modal-Z3DSEMNI.js} +4 -4
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-EEY5WEF4.js → dees-workspace-terminal-KPB3RVGL.js} +5 -5
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-2OQWGHFH.js → dist-2U2U7ROC.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-CRWOBKHW.js → dist-4S4PAFPC.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-J3O6DO5O.js → dist-5P27Y36A.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-IIHC67RE.js → dist-6GIZONLS.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-ERBPCUJB.js → dist-CRHDJ3CC.js} +4 -4
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-3OMAY2ID.js → dist-OASEKGFQ.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-FJCH275Q.js → dist-UJJOGV5H.js} +4 -4
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{echarts-Z2APN5DY.js → echarts-QMOTMVTN.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/es-J75P6Y7U.js +1461 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/es-J75P6Y7U.js.map +1 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/fr-FXZISX5I.js +1461 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/fr-FXZISX5I.js.map +1 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{highlightjs-2VS4UD5C.js → highlightjs-CH6EL3U4.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{lightweight-charts.production-BYPU2BNH.js → lightweight-charts.production-VKUEJKDY.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{xterm-44R3YQOT.js → xterm-KAKUMKDA.js} +2 -2
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-appui/appui.helpers.d.ts +6 -0
- package/dist_ts_web/elements/00group-appui/appui.helpers.js +7 -1
- package/dist_ts_web/elements/00group-appui/dees-appui/dees-appui.js +7 -10
- package/dist_ts_web/elements/00group-appui/dees-appui-detailpane/dees-appui-detailpane.d.ts +88 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-detailpane/dees-appui-detailpane.demo.d.ts +34 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-detailpane/dees-appui-detailpane.demo.js +317 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-detailpane/dees-appui-detailpane.js +510 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-detailpane/index.d.ts +1 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-detailpane/index.js +2 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.d.ts +43 -17
- package/dist_ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.demo.d.ts +2 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.demo.js +28 -3
- package/dist_ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.js +113 -152
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarytabs/dees-appui-secondarytabs.d.ts +68 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarytabs/dees-appui-secondarytabs.demo.d.ts +4 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarytabs/dees-appui-secondarytabs.demo.js +57 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarytabs/dees-appui-secondarytabs.js +357 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarytabs/index.d.ts +1 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarytabs/index.js +2 -0
- package/dist_ts_web/elements/00group-appui/index.d.ts +2 -0
- package/dist_ts_web/elements/00group-appui/index.js +3 -1
- package/dist_ts_web/elements/00group-dataview/dees-table/styles.js +1 -1
- package/dist_ts_web/elements/00group-feedback/dees-statusbutton/dees-statusbutton.demo.js +6 -6
- package/dist_ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.d.ts +7 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.js +17 -2
- package/dist_ts_web/elements/00group-harness/dees-harness-elicitation-card/dees-harness-elicitation-card.d.ts +79 -0
- package/dist_ts_web/elements/00group-harness/dees-harness-elicitation-card/dees-harness-elicitation-card.demo.d.ts +1 -0
- package/dist_ts_web/elements/00group-harness/dees-harness-elicitation-card/dees-harness-elicitation-card.demo.js +87 -0
- package/dist_ts_web/elements/00group-harness/dees-harness-elicitation-card/dees-harness-elicitation-card.js +995 -0
- package/dist_ts_web/elements/00group-harness/dees-harness-elicitation-card/index.d.ts +1 -0
- package/dist_ts_web/elements/00group-harness/dees-harness-elicitation-card/index.js +2 -0
- package/dist_ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.d.ts +14 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.js +60 -5
- package/dist_ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.d.ts +9 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.demo.js +25 -3
- package/dist_ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.js +57 -5
- package/dist_ts_web/elements/00group-harness/index.d.ts +1 -0
- package/dist_ts_web/elements/00group-harness/index.js +2 -1
- package/dist_ts_web/elements/00group-harness/interfaces.d.ts +141 -0
- package/dist_ts_web/elements/00group-media/dees-pdf-viewer/component.d.ts +10 -0
- package/dist_ts_web/elements/00group-media/dees-pdf-viewer/component.js +38 -6
- package/dist_ts_web/elements/00group-media/dees-pdf-viewer/styles.js +4 -1
- package/dist_ts_web/i18n/de.d.ts +128 -0
- package/dist_ts_web/i18n/de.js +33 -1
- package/dist_ts_web/i18n/es.d.ts +5780 -0
- package/dist_ts_web/i18n/es.js +1452 -0
- package/dist_ts_web/i18n/fr.d.ts +5780 -0
- package/dist_ts_web/i18n/fr.js +1452 -0
- package/dist_ts_web/i18n/messages.d.ts +129 -1
- package/dist_ts_web/i18n/messages.js +38 -2
- package/package.json +3 -3
- package/readme.md +178 -21
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-appui/appui.helpers.ts +7 -0
- package/ts_web/elements/00group-appui/dees-appui/dees-appui.ts +6 -10
- package/ts_web/elements/00group-appui/dees-appui-detailpane/dees-appui-detailpane.demo.ts +267 -0
- package/ts_web/elements/00group-appui/dees-appui-detailpane/dees-appui-detailpane.ts +451 -0
- package/ts_web/elements/00group-appui/dees-appui-detailpane/index.ts +1 -0
- package/ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.demo.ts +30 -2
- package/ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.ts +113 -148
- package/ts_web/elements/00group-appui/dees-appui-secondarytabs/dees-appui-secondarytabs.demo.ts +62 -0
- package/ts_web/elements/00group-appui/dees-appui-secondarytabs/dees-appui-secondarytabs.ts +299 -0
- package/ts_web/elements/00group-appui/dees-appui-secondarytabs/index.ts +1 -0
- package/ts_web/elements/00group-appui/index.ts +2 -0
- package/ts_web/elements/00group-dataview/dees-table/styles.ts +1 -1
- package/ts_web/elements/00group-feedback/dees-statusbutton/dees-statusbutton.demo.ts +5 -5
- package/ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.ts +11 -0
- package/ts_web/elements/00group-harness/dees-harness-elicitation-card/dees-harness-elicitation-card.demo.ts +100 -0
- package/ts_web/elements/00group-harness/dees-harness-elicitation-card/dees-harness-elicitation-card.ts +997 -0
- package/ts_web/elements/00group-harness/dees-harness-elicitation-card/index.ts +1 -0
- package/ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.ts +62 -2
- package/ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.demo.ts +24 -2
- package/ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.ts +57 -4
- package/ts_web/elements/00group-harness/index.ts +1 -0
- package/ts_web/elements/00group-harness/interfaces.ts +172 -0
- package/ts_web/elements/00group-media/dees-pdf-viewer/component.ts +37 -5
- package/ts_web/elements/00group-media/dees-pdf-viewer/styles.ts +3 -0
- package/ts_web/i18n/de.ts +32 -0
- package/ts_web/i18n/es.ts +1452 -0
- package/ts_web/i18n/fr.ts +1452 -0
- package/ts_web/i18n/messages.ts +38 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-XE2K545Z.js.map +0 -1
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{addon-fit-XY7VCF6W.js.map → addon-fit-RDDY6CA4.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{addon-search-OQXRIIMV.js.map → addon-search-UT4OBXLU.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{addon-serialize-BV6MHBIQ.js.map → addon-serialize-U4KTWHZ2.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{addon-web-links-IYKN5JS7.js.map → addon-web-links-QMZRXLUR.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-K2UNUD5D.js.map → chunk-7CM7S6EQ.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-MV6OSXZD.js.map → chunk-AR2XNHGF.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-NFVJ3L3L.js.map → chunk-LFHMAQWF.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-4DJP4JAJ.js.map → chunk-OPVBP4HP.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-BTYTET7H.js.map → chunk-R6EBIDCM.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-IIOB2SYP.js.map → dees-modal-Z3DSEMNI.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-EEY5WEF4.js.map → dees-workspace-terminal-KPB3RVGL.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-2OQWGHFH.js.map → dist-2U2U7ROC.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-CRWOBKHW.js.map → dist-4S4PAFPC.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-J3O6DO5O.js.map → dist-5P27Y36A.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-IIHC67RE.js.map → dist-6GIZONLS.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-3OMAY2ID.js.map → dist-CRHDJ3CC.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-ERBPCUJB.js.map → dist-OASEKGFQ.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dist-FJCH275Q.js.map → dist-UJJOGV5H.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{echarts-Z2APN5DY.js.map → echarts-QMOTMVTN.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{highlightjs-2VS4UD5C.js.map → highlightjs-CH6EL3U4.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{lightweight-charts.production-BYPU2BNH.js.map → lightweight-charts.production-VKUEJKDY.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{xterm-44R3YQOT.js.map → xterm-KAKUMKDA.js.map} +0 -0
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DeesElement,
|
|
3
|
+
type TemplateResult,
|
|
4
|
+
property,
|
|
5
|
+
customElement,
|
|
6
|
+
html,
|
|
7
|
+
css,
|
|
8
|
+
cssManager,
|
|
9
|
+
} from '@design.estate/dees-element';
|
|
10
|
+
import { themeDefaultStyles } from '../../00theme.js';
|
|
11
|
+
import { OverlayScrollbarController, overlayScrollbarStyles } from '../../00scrollbars.js';
|
|
12
|
+
import { prefersReducedMotion } from '../../00motion.js';
|
|
13
|
+
import '../../00group-utility/dees-icon/dees-icon.js';
|
|
14
|
+
import { nextRovingIndex } from '../appui.roving.js';
|
|
15
|
+
import { normalizeIconName } from '../appui.helpers.js';
|
|
16
|
+
import type { IAppuiPageTab, IAppuiPageTabSelectEvent } from '../dees-appui-page/dees-appui-page.js';
|
|
17
|
+
import { demoFunc } from './dees-appui-secondarytabs.demo.js';
|
|
18
|
+
|
|
19
|
+
declare global {
|
|
20
|
+
interface HTMLElementTagNameMap {
|
|
21
|
+
'dees-appui-secondarytabs': DeesAppuiSecondarytabs;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A view's second level of tabs — the sub-views of a page or the parts of a
|
|
27
|
+
* record — as a stripe across the content's width under the page heading,
|
|
28
|
+
* with a hairline of its own below it. The selected tab's line lies on that
|
|
29
|
+
* hairline. `dees-appui-page` draws its `tabs` with one.
|
|
30
|
+
*
|
|
31
|
+
* The tabs are `IAppuiPageTab`s (`key`, `label`, `iconName?`, `badge?`), a
|
|
32
|
+
* badge a count or a short mark after the label. `selectedTab` (reflected) is
|
|
33
|
+
* the selected key, the first tab while it names none; `label` names the tab
|
|
34
|
+
* list. The tabs are one Tab stop: the arrow keys move along them in the
|
|
35
|
+
* writing direction, Home and End go to the ends, and Enter, Space or a click
|
|
36
|
+
* select one, which reflects as `selectedTab` and is reported as a bubbling,
|
|
37
|
+
* composed `tab-select` (`{ key, tab }`). The tabs name the element that shows
|
|
38
|
+
* the selected tab, `controlsElement`, as the panel they control.
|
|
39
|
+
*
|
|
40
|
+
* The first tab's label stands at the region inset, `--dees-inset-inline`,
|
|
41
|
+
* where a container declares one (32px, 16px below 700px of width, where none
|
|
42
|
+
* does), so it lines up with the title above it; its hover face reaches into
|
|
43
|
+
* the inset. `--dees-appui-secondarytabs-max-width` caps the row, centred,
|
|
44
|
+
* while the hairline keeps the full width. A row wider than the stripe scrolls
|
|
45
|
+
* sideways under an overlay scrollbar, and the selected tab scrolls into view.
|
|
46
|
+
*/
|
|
47
|
+
@customElement('dees-appui-secondarytabs')
|
|
48
|
+
export class DeesAppuiSecondarytabs extends DeesElement {
|
|
49
|
+
public static demo = demoFunc;
|
|
50
|
+
public static demoGroups = ['App UI'];
|
|
51
|
+
|
|
52
|
+
@property({ attribute: false })
|
|
53
|
+
accessor tabs: IAppuiPageTab[] = [];
|
|
54
|
+
|
|
55
|
+
/** The key of the selected tab; the first tab while it names none. */
|
|
56
|
+
@property({ type: String, reflect: true })
|
|
57
|
+
accessor selectedTab: string = '';
|
|
58
|
+
|
|
59
|
+
/** The tab list's accessible name: what the tabs divide, such as the page's title. */
|
|
60
|
+
@property({ type: String, reflect: true })
|
|
61
|
+
accessor label: string = '';
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The element that shows the selected tab's content, which every tab names as
|
|
65
|
+
* the panel it controls. An `aria-controls` IDREF cannot cross this element's
|
|
66
|
+
* shadow boundary, so the panel is an element reference.
|
|
67
|
+
*/
|
|
68
|
+
@property({ attribute: false })
|
|
69
|
+
accessor controlsElement: HTMLElement | null = null;
|
|
70
|
+
|
|
71
|
+
/** The row's scrollbar, shown while it scrolls. */
|
|
72
|
+
private readonly scrollbars = new OverlayScrollbarController(
|
|
73
|
+
this,
|
|
74
|
+
() => this.shadowRoot?.querySelector<HTMLElement>('.tabs'),
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
public static styles = [
|
|
78
|
+
themeDefaultStyles,
|
|
79
|
+
cssManager.defaultStyles,
|
|
80
|
+
overlayScrollbarStyles,
|
|
81
|
+
css`
|
|
82
|
+
:host {
|
|
83
|
+
display: block;
|
|
84
|
+
container-type: inline-size;
|
|
85
|
+
color: var(--dees-color-text-primary);
|
|
86
|
+
font-family: var(--dees-font-family);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.stripe {
|
|
90
|
+
--secondarytabs-inset: var(--dees-inset-inline, var(--dees-spacing-2xl));
|
|
91
|
+
border-bottom: var(--dees-line-width-hairline) solid var(--dees-color-border-subtle);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* The box the row's scrollbar is placed in. It reaches over the stripe's
|
|
95
|
+
hairline, so the selected tab's line lies on it. */
|
|
96
|
+
.frame {
|
|
97
|
+
position: relative;
|
|
98
|
+
box-sizing: border-box;
|
|
99
|
+
max-width: var(--dees-appui-secondarytabs-max-width, none);
|
|
100
|
+
min-width: 0;
|
|
101
|
+
margin-inline: auto;
|
|
102
|
+
margin-bottom: calc(-1 * var(--dees-line-width-hairline));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* The first tab's label stands at the inset; its hover face reaches into it. */
|
|
106
|
+
.tabs {
|
|
107
|
+
display: flex;
|
|
108
|
+
gap: var(--dees-spacing-xs);
|
|
109
|
+
overflow-x: auto;
|
|
110
|
+
padding-block: var(--dees-spacing-xs) 0;
|
|
111
|
+
padding-inline: calc(var(--secondarytabs-inset) - var(--dees-spacing-md)) var(--secondarytabs-inset);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.tab {
|
|
115
|
+
position: relative;
|
|
116
|
+
display: inline-flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
gap: var(--dees-spacing-sm);
|
|
119
|
+
flex: none;
|
|
120
|
+
height: var(--dees-control-height-lg);
|
|
121
|
+
margin-bottom: var(--dees-spacing-sm);
|
|
122
|
+
padding: 0 var(--dees-spacing-md);
|
|
123
|
+
border: 0;
|
|
124
|
+
border-radius: var(--dees-radius-md);
|
|
125
|
+
background: transparent;
|
|
126
|
+
color: var(--dees-color-text-secondary);
|
|
127
|
+
font: inherit;
|
|
128
|
+
font-size: var(--dees-font-footnote-size);
|
|
129
|
+
font-weight: 500;
|
|
130
|
+
white-space: nowrap;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
transition: background var(--dees-transition-fast) var(--dees-ease-standard),
|
|
133
|
+
color var(--dees-transition-fast) var(--dees-ease-standard);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.tab:hover {
|
|
137
|
+
background: var(--dees-color-hover);
|
|
138
|
+
color: var(--dees-color-text-primary);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* Inset: the row scrolls, and would clip a ring drawn outside a tab. */
|
|
142
|
+
.tab:focus-visible {
|
|
143
|
+
outline: var(--dees-line-width-focus-ring) solid var(--dees-color-focus-ring);
|
|
144
|
+
outline-offset: -2px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.tab[aria-selected='true'] {
|
|
148
|
+
color: var(--dees-color-text-primary);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* At the bottom of the tab's margin: on the stripe's hairline. */
|
|
152
|
+
.tab[aria-selected='true']::after {
|
|
153
|
+
content: '';
|
|
154
|
+
position: absolute;
|
|
155
|
+
inset-inline: var(--dees-spacing-md);
|
|
156
|
+
bottom: calc(-1 * var(--dees-spacing-sm));
|
|
157
|
+
height: 2px;
|
|
158
|
+
border-radius: 1px;
|
|
159
|
+
background: var(--dees-color-accent-primary);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.tabBadge {
|
|
163
|
+
min-width: 16px;
|
|
164
|
+
padding: 0 var(--dees-spacing-xs);
|
|
165
|
+
border-radius: var(--dees-radius-full);
|
|
166
|
+
background: var(--dees-color-fill-secondary);
|
|
167
|
+
color: var(--dees-color-text-secondary);
|
|
168
|
+
font-size: var(--dees-font-caption2-size);
|
|
169
|
+
line-height: 16px;
|
|
170
|
+
text-align: center;
|
|
171
|
+
box-sizing: border-box;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@container (max-width: 700px) {
|
|
175
|
+
.stripe {
|
|
176
|
+
--secondarytabs-inset: var(--dees-inset-inline, var(--dees-spacing-lg));
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
@media (pointer: coarse) {
|
|
181
|
+
.tab {
|
|
182
|
+
height: var(--dees-control-height-touch);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@media (prefers-reduced-motion: reduce) {
|
|
187
|
+
.tab {
|
|
188
|
+
transition: none;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
`,
|
|
192
|
+
];
|
|
193
|
+
|
|
194
|
+
public render(): TemplateResult {
|
|
195
|
+
const tabs = this.tabs;
|
|
196
|
+
if (!tabs.length) return html``;
|
|
197
|
+
const selected = this.currentTab();
|
|
198
|
+
return html`
|
|
199
|
+
<div class="stripe">
|
|
200
|
+
<div class="frame">
|
|
201
|
+
<div class="tabs" role="tablist" @keydown=${this.handleKeydown}>
|
|
202
|
+
${tabs.map((tab, index) => this.renderTab(tab, index, tab.key === selected?.key))}
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
`;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
private renderTab(tab: IAppuiPageTab, index: number, selected: boolean): TemplateResult {
|
|
210
|
+
return html`<button
|
|
211
|
+
class="tab"
|
|
212
|
+
type="button"
|
|
213
|
+
role="tab"
|
|
214
|
+
id=${`tab-${index}`}
|
|
215
|
+
data-key=${tab.key}
|
|
216
|
+
aria-selected=${selected ? 'true' : 'false'}
|
|
217
|
+
@click=${() => this.selectTab(tab)}
|
|
218
|
+
>
|
|
219
|
+
${tab.iconName
|
|
220
|
+
? html`<dees-icon aria-hidden="true" .icon=${normalizeIconName(tab.iconName)} iconSize="14"></dees-icon>`
|
|
221
|
+
: ''}
|
|
222
|
+
<span>${tab.label}</span>
|
|
223
|
+
${tab.badge !== undefined && tab.badge !== '' ? html`<span class="tabBadge">${tab.badge}</span>` : ''}
|
|
224
|
+
</button>`;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* One Tab stop: the focused tab while the reader moves along the tabs, the
|
|
229
|
+
* selected one otherwise. Every tab names the panel; the list its name.
|
|
230
|
+
*/
|
|
231
|
+
public updated(changedProperties: Map<string | number | symbol, unknown>): void {
|
|
232
|
+
super.updated(changedProperties);
|
|
233
|
+
const list = this.shadowRoot?.querySelector<HTMLElement>('.tabs');
|
|
234
|
+
if (!list) return;
|
|
235
|
+
if (this.label) list.setAttribute('aria-label', this.label);
|
|
236
|
+
else list.removeAttribute('aria-label');
|
|
237
|
+
const buttons = this.tabButtons();
|
|
238
|
+
const focused = buttons.find((button) => button === this.shadowRoot?.activeElement);
|
|
239
|
+
const stop = focused ?? buttons.find((button) => button.getAttribute('aria-selected') === 'true');
|
|
240
|
+
for (const button of buttons) {
|
|
241
|
+
button.tabIndex = button === stop ? 0 : -1;
|
|
242
|
+
button.ariaControlsElements = this.controlsElement ? [this.controlsElement] : null;
|
|
243
|
+
}
|
|
244
|
+
if (changedProperties.has('selectedTab') || changedProperties.has('tabs')) this.scrollSelectedIntoView(list);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
private tabButtons(): HTMLButtonElement[] {
|
|
248
|
+
return [...(this.shadowRoot?.querySelectorAll<HTMLButtonElement>('.tab') ?? [])];
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/** The selected tab: the one `selectedTab` names, else the first. */
|
|
252
|
+
private currentTab(): IAppuiPageTab | undefined {
|
|
253
|
+
return this.tabs.find((tab) => tab.key === this.selectedTab) ?? this.tabs[0];
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
private selectTab(tab: IAppuiPageTab): void {
|
|
257
|
+
if (tab.key === this.currentTab()?.key && tab.key === this.selectedTab) return;
|
|
258
|
+
this.selectedTab = tab.key;
|
|
259
|
+
this.dispatchEvent(new CustomEvent<IAppuiPageTabSelectEvent>('tab-select', {
|
|
260
|
+
detail: { key: tab.key, tab },
|
|
261
|
+
bubbles: true,
|
|
262
|
+
composed: true,
|
|
263
|
+
}));
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Scrolls the row, and only the row, the least distance that shows the
|
|
268
|
+
* selected tab whole and clear of the inset at either end (at once under
|
|
269
|
+
* reduced motion). A tab already in view stays put.
|
|
270
|
+
*/
|
|
271
|
+
private scrollSelectedIntoView(list: HTMLElement): void {
|
|
272
|
+
if (list.scrollWidth <= list.clientWidth) return;
|
|
273
|
+
const tab = this.tabButtons().find((button) => button.getAttribute('aria-selected') === 'true');
|
|
274
|
+
if (!tab) return;
|
|
275
|
+
const view = list.getBoundingClientRect();
|
|
276
|
+
const rect = tab.getBoundingClientRect();
|
|
277
|
+
const inset = Number.parseFloat(getComputedStyle(list).paddingInlineEnd) || 0;
|
|
278
|
+
const clearance = Math.min(inset, Math.max(0, (view.width - rect.width) / 2));
|
|
279
|
+
let distance = 0;
|
|
280
|
+
if (rect.left < view.left + clearance || rect.width > view.width) distance = rect.left - view.left - clearance;
|
|
281
|
+
else if (rect.right > view.right - clearance) distance = rect.right - view.right + clearance;
|
|
282
|
+
if (Math.abs(distance) < 1) return;
|
|
283
|
+
list.scrollTo({ left: list.scrollLeft + distance, behavior: prefersReducedMotion() ? 'auto' : 'smooth' });
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/** Arrow keys follow the writing direction, Home and End go to the ends; the focus moves, the selection waits for Enter. */
|
|
287
|
+
private readonly handleKeydown = (event: KeyboardEvent) => {
|
|
288
|
+
const buttons = this.tabButtons();
|
|
289
|
+
const current = buttons.findIndex((button) => event.composedPath().includes(button));
|
|
290
|
+
if (current < 0) return;
|
|
291
|
+
const rtl = getComputedStyle(this).direction === 'rtl';
|
|
292
|
+
const key = rtl && event.key === 'ArrowLeft' ? 'ArrowRight' : rtl && event.key === 'ArrowRight' ? 'ArrowLeft' : event.key;
|
|
293
|
+
const next = nextRovingIndex(key, current, buttons.length, 'horizontal');
|
|
294
|
+
if (next === null) return;
|
|
295
|
+
event.preventDefault();
|
|
296
|
+
for (const button of buttons) button.tabIndex = button === buttons[next] ? 0 : -1;
|
|
297
|
+
buttons[next].focus();
|
|
298
|
+
};
|
|
299
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dees-appui-secondarytabs.js';
|
|
@@ -8,11 +8,13 @@ export * from './dees-appui-appbar/index.js';
|
|
|
8
8
|
export * from './dees-appui-bottombar/index.js';
|
|
9
9
|
export * from './dees-appui-commandpalette/index.js';
|
|
10
10
|
export * from './dees-appui-contentheading/index.js';
|
|
11
|
+
export * from './dees-appui-detailpane/index.js';
|
|
11
12
|
export * from './dees-appui/index.js';
|
|
12
13
|
export * from './dees-appui-maincontent/index.js';
|
|
13
14
|
export * from './dees-appui-mainmenu/index.js';
|
|
14
15
|
export * from './dees-appui-page/index.js';
|
|
15
16
|
export * from './dees-appui-secondarymenu/index.js';
|
|
17
|
+
export * from './dees-appui-secondarytabs/index.js';
|
|
16
18
|
export * from './dees-appui-signin/index.js';
|
|
17
19
|
export * from './dees-appui-profiledropdown/index.js';
|
|
18
20
|
export * from './dees-appui-tabs/index.js';
|
|
@@ -219,7 +219,7 @@ export const tableStyles: CSSResult[] = [
|
|
|
219
219
|
columns that can use it, the wrapping ones. Scoped to the data rows: the empty state wraps. */
|
|
220
220
|
table.wrapsCells { width: 100%; }
|
|
221
221
|
table.wrapsCells th, table.wrapsCells tr[data-row-idx] > td { white-space: nowrap; }
|
|
222
|
-
table.wrapsCells tr[data-row-idx] > td.wrapCell { white-space: normal; overflow-wrap:
|
|
222
|
+
table.wrapsCells tr[data-row-idx] > td.wrapCell { white-space: normal; overflow-wrap: anywhere; }
|
|
223
223
|
table.wrapsCells tr[data-row-idx] > td.wrapCell .innerCellContainer { min-width: 20ch; }
|
|
224
224
|
th, td { box-sizing: border-box; padding: 6px 16px; text-align: start; vertical-align: middle; }
|
|
225
225
|
th { height: var(--table-header-height); background: var(--table-head-surface); color: var(--dees-color-text-secondary); font-size: 12px; font-weight: 500; border-bottom: var(--dees-line-width-hairline) solid var(--dees-color-border-subtle); }
|
|
@@ -141,23 +141,23 @@ export const demoFunc = () => {
|
|
|
141
141
|
},
|
|
142
142
|
];
|
|
143
143
|
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.', html`
|
|
144
|
-
${demoSection('In a page header', 'The statuses that a page would stack above its table as hints sit in the header; the table starts right under it, frameless. Press the button to open the panel, Escape to close it.', html`
|
|
144
|
+
${demoSection('In a page header', 'The statuses that a page would stack above its table as hints sit in the header, in its tools before the actions; the table starts right under it, frameless. Press the button to open the panel, Escape to close it.', html`
|
|
145
145
|
<div style="background: var(--dees-color-bg-canvas); border: 1px solid var(--dees-color-border-subtle); border-radius: var(--dees-radius-xl); overflow: hidden;">
|
|
146
146
|
<dees-appui-page
|
|
147
147
|
heading="Bank statements"
|
|
148
148
|
description="4 statements · 2 accounts"
|
|
149
149
|
.actions=${pageActions}
|
|
150
150
|
>
|
|
151
|
-
<dees-table-search slot="
|
|
152
|
-
<dees-statusbutton slot="
|
|
151
|
+
<dees-table-search slot="tools" for="statusbuttonDemoStatements" dataName="statements"></dees-table-search>
|
|
152
|
+
<dees-statusbutton slot="tools" .items=${pageItems} @panel-toggle=${reportToggle}></dees-statusbutton>
|
|
153
153
|
<dees-table id="statusbuttonDemoStatements" frameless fill .searchable=${false} dataName="statements"
|
|
154
154
|
.columns=${columns} .data=${statements} .selectionMode=${'none'}></dees-table>
|
|
155
155
|
</dees-appui-page>
|
|
156
156
|
</div>
|
|
157
157
|
${demoOutput('Open or close the panel.')}
|
|
158
158
|
${demoCode(`<dees-appui-page heading="Bank statements" .actions=\${actions}>
|
|
159
|
-
<dees-table-search slot="
|
|
160
|
-
<dees-statusbutton slot="
|
|
159
|
+
<dees-table-search slot="tools" for="statements" dataName="statements"></dees-table-search>
|
|
160
|
+
<dees-statusbutton slot="tools" .items=\${statuses}></dees-statusbutton>
|
|
161
161
|
<dees-table id="statements" frameless fill .searchable=\${false} dataName="statements"
|
|
162
162
|
.columns=\${columns} .data=\${rows}></dees-table>
|
|
163
163
|
</dees-appui-page>`)}
|
|
@@ -22,6 +22,7 @@ import type {
|
|
|
22
22
|
IHarnessComposerHistoryEntry,
|
|
23
23
|
IHarnessComposerOption,
|
|
24
24
|
IHarnessMessage,
|
|
25
|
+
IHarnessElicitationRequest,
|
|
25
26
|
IHarnessPermissionRequest,
|
|
26
27
|
IHarnessQuestionPersonResult,
|
|
27
28
|
IHarnessQuestionRejection,
|
|
@@ -135,6 +136,14 @@ export class DeesHarnessChat extends DeesElement {
|
|
|
135
136
|
@property({ attribute: false })
|
|
136
137
|
accessor questions: IHarnessQuestionRequest[] = [];
|
|
137
138
|
|
|
139
|
+
/**
|
|
140
|
+
* what MCP servers of the session ask the owner for: one `dees-harness-elicitation-card` each,
|
|
141
|
+
* pinned to the end of the transcript while the host keeps it; it answers with
|
|
142
|
+
* `harness-elicitation-response`
|
|
143
|
+
*/
|
|
144
|
+
@property({ attribute: false })
|
|
145
|
+
accessor elicitations: IHarnessElicitationRequest[] = [];
|
|
146
|
+
|
|
138
147
|
@property({ attribute: false })
|
|
139
148
|
accessor status: IHarnessStatus = { type: 'idle' };
|
|
140
149
|
|
|
@@ -1029,6 +1038,7 @@ export class DeesHarnessChat extends DeesElement {
|
|
|
1029
1038
|
.permissions=${this.permissions}
|
|
1030
1039
|
.permissionsBusy=${this.disabled}
|
|
1031
1040
|
.questions=${this.questions}
|
|
1041
|
+
.elicitations=${this.elicitations}
|
|
1032
1042
|
.status=${this.status}
|
|
1033
1043
|
.transcriptKey=${this.transcriptKey}
|
|
1034
1044
|
.hasEarlierMessages=${this.hasEarlierMessages}
|
|
@@ -1150,6 +1160,7 @@ export class DeesHarnessChat extends DeesElement {
|
|
|
1150
1160
|
&& !this.messages.length
|
|
1151
1161
|
&& !this.permissions.length
|
|
1152
1162
|
&& !this.questions.length
|
|
1163
|
+
&& !this.elicitations.length
|
|
1153
1164
|
&& !this.hasEarlierMessages
|
|
1154
1165
|
&& !this.loadingEarlier;
|
|
1155
1166
|
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { html } from '@design.estate/dees-element';
|
|
2
|
+
import { demoPage, demoSection, demoOutput, showDemoResult } from '../../../demos/templates.js';
|
|
3
|
+
import type { IHarnessElicitationRequest, IHarnessElicitationResponseDetail } from '../interfaces.js';
|
|
4
|
+
|
|
5
|
+
type TElicitationCard = HTMLElementTagNameMap['dees-harness-elicitation-card'];
|
|
6
|
+
|
|
7
|
+
/** The address the demo's host turns down, so the card asks again with what was entered kept. */
|
|
8
|
+
const TAKEN_EMAIL = 'taken@example.com';
|
|
9
|
+
|
|
10
|
+
const minute = 60_000;
|
|
11
|
+
|
|
12
|
+
const signUp = (): IHarnessElicitationRequest => ({
|
|
13
|
+
id: 'e-form',
|
|
14
|
+
mode: 'form',
|
|
15
|
+
serverName: 'crm',
|
|
16
|
+
message: 'Create the contact for the new supplier. I need a few details first.',
|
|
17
|
+
createdAt: Date.now() - minute,
|
|
18
|
+
fields: [
|
|
19
|
+
{ kind: 'text', name: 'name', title: 'Contact name', required: true, minLength: 2, maxLength: 40 },
|
|
20
|
+
{ kind: 'text', name: 'email', title: 'Email', description: `"${TAKEN_EMAIL}" is refused by this demo's host.`, required: true, format: 'email' },
|
|
21
|
+
{ kind: 'text', name: 'since', title: 'Customer since', required: false, format: 'date' },
|
|
22
|
+
{ kind: 'number', name: 'seats', title: 'Seats', required: true, integer: true, minimum: 1, maximum: 500, default: 5 },
|
|
23
|
+
{ kind: 'number', name: 'discount', title: 'Discount (%)', required: false, integer: false, minimum: 0, maximum: 30 },
|
|
24
|
+
{ kind: 'boolean', name: 'newsletter', title: 'Send the newsletter', required: true },
|
|
25
|
+
{
|
|
26
|
+
kind: 'choice', name: 'region', title: 'Region', required: true, default: 'eu',
|
|
27
|
+
options: [{ value: 'eu', label: 'Europe' }, { value: 'us', label: 'United States' }, { value: 'apac', label: 'Asia-Pacific' }],
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
kind: 'choices', name: 'channels', title: 'Channels', description: 'Choose one or two.', required: true, minItems: 1, maxItems: 2,
|
|
31
|
+
options: [{ value: 'mail', label: 'Mail' }, { value: 'phone', label: 'Phone' }, { value: 'chat', label: 'Chat' }],
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
const visits: IHarnessElicitationRequest[] = [
|
|
37
|
+
{
|
|
38
|
+
id: 'e-url',
|
|
39
|
+
mode: 'url',
|
|
40
|
+
serverName: 'github',
|
|
41
|
+
message: 'Authorize the GitHub app for this workspace, then come back here.',
|
|
42
|
+
createdAt: Date.now() - 2 * minute,
|
|
43
|
+
url: 'https://github.com/login/oauth/authorize?client_id=Iv1.8a61f9b3a7aba766&state=7f3c2a',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: 'e-url-hidden',
|
|
47
|
+
mode: 'url',
|
|
48
|
+
serverName: 'unknown-tools',
|
|
49
|
+
message: 'Confirm your account at the address below.',
|
|
50
|
+
createdAt: Date.now() - 3 * minute,
|
|
51
|
+
// a right-to-left override and a zero-width space would make this read as another address
|
|
52
|
+
url: 'https://accounts.example.com\u200B.evil.example/\u202Egnp.nigol',
|
|
53
|
+
},
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
const unsupported: IHarnessElicitationRequest = {
|
|
57
|
+
id: 'e-unsupported',
|
|
58
|
+
mode: 'unsupported',
|
|
59
|
+
serverName: 'deploy',
|
|
60
|
+
message: 'Fill in the release checklist.',
|
|
61
|
+
createdAt: Date.now() - 4 * minute,
|
|
62
|
+
reason: 'The form\'s field "checklist" asks for a nested object, which this app cannot show.',
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/** The host answers as AGL would: it refuses a taken address at its field, and otherwise takes the answer. */
|
|
66
|
+
const answer = (eventArg: CustomEvent<IHarnessElicitationResponseDetail>) => {
|
|
67
|
+
const card = eventArg.target as TElicitationCard;
|
|
68
|
+
const { detail } = eventArg;
|
|
69
|
+
showDemoResult(eventArg.currentTarget as Element, detail);
|
|
70
|
+
if (detail.action === 'accept' && detail.content?.email === TAKEN_EMAIL) {
|
|
71
|
+
setTimeout(() => {
|
|
72
|
+
card.request = { ...card.request!, refusals: [{ field: 'email', reason: 'The server already has a contact with this address.' }] };
|
|
73
|
+
}, 400);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export const demoFunc = () => demoPage(
|
|
78
|
+
'Elicitation card',
|
|
79
|
+
'An MCP server of a session asks the owner for input: a form, a visit to an address, or a request the app cannot collect. What the owner enters stays in the card until the answer.',
|
|
80
|
+
html`
|
|
81
|
+
${demoSection('A form', `Every field kind: text with lengths and formats, whole and decimal numbers, a yes or no, a single choice and several. Send waits while a required field is empty or a value does not fit; it sends the values typed. Enter "${TAKEN_EMAIL}" to see the host refuse the answer at its field: the card asks again and keeps what was entered.`, html`
|
|
82
|
+
<div class="dees-demo-stack" @harness-elicitation-response=${answer}>
|
|
83
|
+
<dees-harness-elicitation-card .request=${signUp()}></dees-harness-elicitation-card>
|
|
84
|
+
</div>
|
|
85
|
+
${demoOutput()}
|
|
86
|
+
`)}
|
|
87
|
+
${demoSection('Visit an address', 'The address is text, shown exactly and never opened or loaded: the owner visits it, then marks it as done. A character that would not show, such as one that turns the text around or one of zero width, shows by its code point.', html`
|
|
88
|
+
<div class="dees-demo-stack" @harness-elicitation-response=${answer}>
|
|
89
|
+
${visits.map((request) => html`<dees-harness-elicitation-card .request=${request}></dees-harness-elicitation-card>`)}
|
|
90
|
+
</div>
|
|
91
|
+
${demoOutput()}
|
|
92
|
+
`)}
|
|
93
|
+
${demoSection('A request the app cannot collect', 'The host\'s reason, and Decline and Cancel only: nothing to accept, and nothing declines it on the owner\'s behalf.', html`
|
|
94
|
+
<div class="dees-demo-stack" @harness-elicitation-response=${answer}>
|
|
95
|
+
<dees-harness-elicitation-card .request=${unsupported}></dees-harness-elicitation-card>
|
|
96
|
+
</div>
|
|
97
|
+
${demoOutput()}
|
|
98
|
+
`)}
|
|
99
|
+
`,
|
|
100
|
+
);
|