@aparte/core 1.4.0 → 1.5.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.
@@ -11,6 +11,11 @@ export interface AparteConversationListItem {
11
11
  }
12
12
  export interface AparteConversationSelectDetail {
13
13
  id: string;
14
+ /**
15
+ * The id of the chat the list drives, its `target`, when it has one: the conversation
16
+ * opens in that chat alone. Without it, in every chat of the page.
17
+ */
18
+ targetId?: string;
14
19
  }
15
20
  export interface AparteConversationDeleteDetail {
16
21
  id: string;
@@ -88,6 +93,12 @@ export interface AparteConversationStatusDetail {
88
93
  * `setConversationManager()`, instead of leaving you six listeners to write. The
89
94
  * event still fires first, and `preventDefault()` on it takes the gesture back.
90
95
  * Off by default, and selecting stays yours either way.
96
+ * @attr {string} target - The id of the chat this list drives, for a page with more than one chat
97
+ * or a list placed beside its chat: a row's click then opens the conversation
98
+ * in that chat alone (`targetId` in `aparte-conversation-select`), and `manage`
99
+ * acts on that chat's conversation manager. Read at every gesture rather than
100
+ * observed. Without it, a click is for every chat of the page, and `manage`
101
+ * finds the manager where the list sits.
91
102
  *
92
103
  * @fires {CustomEvent<AparteConversationSelectDetail>} aparte-conversation-select - A row's title was activated; the host loads that conversation.
93
104
  * @fires {CustomEvent<AparteConversationRenameDetail>} aparte-conversation-rename - A rename was committed with a new, non-empty title. Cancelable: `preventDefault()` takes the gesture back from `manage`.
@@ -1 +1 @@
1
- {"version":3,"file":"aparte-conversation-list.d.ts","sourceRoot":"","sources":["../../../src/components/conversation-list/aparte-conversation-list.ts"],"names":[],"mappings":"AASA,OAAO,EAIH,KAAK,wBAAwB,EAChC,MAAM,4CAA4C,CAAC;AAGpD,MAAM,WAAW,0BAA0B;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,UAAU,CAAC,EAAE,MAAM,CAAC;IAC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AAC,UAAU;IAelB;;;;;;OAMG;IACH,OAAO,CAAC,YAAY,CAAS;IAE7B,OAAO,CAAC,oBAAoB,CAE1B;IAEF,OAAO,CAAC,sBAAsB,CAW5B;IAEF,OAAO,CAAC,eAAe,CAErB;IAEF,OAAO,CAAC,WAAW,CAWjB;IAEF;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,OAAO;IAkBf,OAAO,CAAC,aAAa;IAsGrB,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,cAAc;IA6BtB,OAAO,CAAC,YAAY;IAsBpB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,aAAa;IAwBrB,OAAO,CAAC,QAAQ,CA2Bd;IAEF,OAAO,CAAC,UAAU,CAYhB;IAEF,sEAAsE;IACtE,OAAO,CAAC,kBAAkB;CAQ7B"}
1
+ {"version":3,"file":"aparte-conversation-list.d.ts","sourceRoot":"","sources":["../../../src/components/conversation-list/aparte-conversation-list.ts"],"names":[],"mappings":"AASA,OAAO,EAIH,KAAK,wBAAwB,EAChC,MAAM,4CAA4C,CAAC;AAGpD,MAAM,WAAW,0BAA0B;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,8BAA8B;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,8BAA8B;IAC3C,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,+BAA+B;IAC5C,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,2BAA2B;IACxC,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,8BAA8B;IAC3C,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,CAAC,YAAY;IAsBpB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,aAAa;IAwBrB,OAAO,CAAC,QAAQ,CA4Bd;IAEF,OAAO,CAAC,UAAU,CAYhB;IAEF,sEAAsE;IACtE,OAAO,CAAC,kBAAkB;CAQ7B"}
@@ -300,6 +300,8 @@ export declare class AparteLauncher extends HTMLElement {
300
300
  * leaves the key to the dialog, which is the answer that loses nothing.
301
301
  */
302
302
  private _inModalDialog;
303
+ /** A sidebar open as a drawer inside the card: Escape closes it before it closes the chat. */
304
+ private _drawerOpen;
303
305
  private _onKeydown;
304
306
  }
305
307
  //# sourceMappingURL=aparte-launcher.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"aparte-launcher.d.ts","sourceRoot":"","sources":["../../../src/components/launcher/aparte-launcher.ts"],"names":[],"mappings":"AAOA,kEAAkE;AAClE,MAAM,WAAW,0BAA0B;IACvC,IAAI,EAAE,OAAO,CAAC;IACd,mLAAmL;IACnL,KAAK,EAAE,OAAO,CAAC;IACf,0IAA0I;IAC1I,SAAS,EAAE,OAAO,CAAC;IACnB,6LAA6L;IAC7L,MAAM,EAAE,OAAO,CAAC;CACnB;AAqBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC3C,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,OAAO,CAAC,OAAO,CAAkC;IACjD;;;;OAIG;IACH,OAAO,CAAC,OAAO,CAA4B;IAC3C,OAAO,CAAC,OAAO,CAA4B;IAC3C,mFAAmF;IACnF,OAAO,CAAC,cAAc,CAAqC;IAC3D,OAAO,CAAC,cAAc,CAA6B;IACnD,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,SAAS,CAA4B;IAC7C,OAAO,CAAC,SAAS,CAAkC;IACnD,OAAO,CAAC,aAAa,CA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;;;;;;OAOG;IACH,OAAO,CAAC,OAAO;IAKf;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAInB;;;;;;;OAOG;IACH,OAAO,CAAC,aAAa;IA0BrB,mFAAmF;IACnF,OAAO,CAAC,MAAM,CAAC,MAAM;IAUrB;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAKtB;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,aAAa;IAM5B,0EAA0E;IAC1E,OAAO,CAAC,MAAM,CAAC,aAAa;IAO5B,4FAA4F;IAC5F,OAAO,CAAC,MAAM,CAAC,KAAK;IAMpB,OAAO,CAAC,YAAY;IAiCpB;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAmCrB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAiBnB;;;;OAIG;IACH,OAAO,CAAC,gBAAgB;IAOxB,OAAO,CAAC,YAAY;IAWpB;;;;OAIG;IACH,OAAO,CAAC,qBAAqB;IAU7B,OAAO,CAAC,cAAc,CAAiE;IAEvF,+FAA+F;IAC/F,OAAO,CAAC,gBAAgB;IAaxB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAanB,sFAAsF;IACtF,OAAO,CAAC,WAAW;IAKnB;;;;;;OAMG;IACH,OAAO,CAAC,UAAU;IAQlB;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAQpB;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAWd;IAEF;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,UAAU,CAiChB;CACL"}
1
+ {"version":3,"file":"aparte-launcher.d.ts","sourceRoot":"","sources":["../../../src/components/launcher/aparte-launcher.ts"],"names":[],"mappings":"AAOA,kEAAkE;AAClE,MAAM,WAAW,0BAA0B;IACvC,IAAI,EAAE,OAAO,CAAC;IACd,mLAAmL;IACnL,KAAK,EAAE,OAAO,CAAC;IACf,0IAA0I;IAC1I,SAAS,EAAE,OAAO,CAAC;IACnB,6LAA6L;IAC7L,MAAM,EAAE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AanB,sFAAsF;IACtF,OAAO,CAAC,WAAW;IAKnB;;;;;;OAMG;IACH,OAAO,CAAC,UAAU;IAQlB;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAQpB;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAWd;IAEF;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAUtB,8FAA8F;IAC9F,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,UAAU,CAoChB;CACL"}
@@ -1,7 +1,7 @@
1
1
  /** Detail of `aparte-sidebar-toggle`: the state just entered. */
2
2
  export interface AparteSidebarToggleDetail {
3
3
  collapsed: boolean;
4
- /** True while the sidebar is a drawer — the window is under the breakpoint. */
4
+ /** True while the sidebar is a drawer: the window is under the breakpoint, or it is in a floating chat's card. */
5
5
  drawer: boolean;
6
6
  }
7
7
  /**
@@ -18,7 +18,8 @@ export interface AparteSidebarToggleDetail {
18
18
  *
19
19
  * **Collapse.** `collapsed` is an attribute, reflected, so the host can set it, read
20
20
  * it and persist it. Any element carrying `data-aparte-sidebar-toggle` anywhere on
21
- * the page toggles the nearest sidebar (or the one whose id the attribute names), so
21
+ * the page toggles its sidebar: the one it is in, else the one of the `.aparte-app-shell`
22
+ * it is in, else the first of the page (or the one whose id the attribute names). So
22
23
  * a hamburger in the header needs no script — and the sidebar keeps `aria-expanded`
23
24
  * and `aria-controls` on that control in step, whoever changed the state (it gives
24
25
  * itself an id when the host wrote none). `aparte-sidebar-toggle` fires on every
@@ -33,6 +34,14 @@ export interface AparteSidebarToggleDetail {
33
34
  * get away with. Collapsed — folded as a column or slid off as a drawer — it carries
34
35
  * `inert` and `aria-hidden`, so nothing invisible keeps a tab stop.
35
36
  *
37
+ * **In the floating chat.** Inside `<aparte-launcher>` the chat is a card a few hundred pixels
38
+ * wide in the widest window, so a sidebar that is the direct child of the card's
39
+ * `.aparte-app-shell` follows the chat and not the window: a drawer in the card, held by the
40
+ * shell, whose scrim covers the card and not the page; a column again once the chat fills the
41
+ * window (maximized, unless `maximizable="panel"`, which is still narrow); and closed when the
42
+ * chat closes. `breakpoint="none"` keeps it a column there too. Anywhere else in a card it
43
+ * follows the window, as it does on a page.
44
+ *
36
45
  * **Search.** An input carrying `data-aparte-sidebar-search` filters the conversation
37
46
  * list below it by title as the user types — rows that do not match are hidden, and a
38
47
  * date group with nothing left hides with them. Client-side, on the titles the list
@@ -41,8 +50,8 @@ export interface AparteSidebarToggleDetail {
41
50
  * @element aparte-sidebar
42
51
  *
43
52
  * @attr {boolean} collapsed - Hidden (in the flow) or closed (as a drawer). Reflected; set it to start closed.
44
- * @attr {string} breakpoint - The window width under which the sidebar becomes a drawer: a length (default `48rem`), or `none` for a column that never does.
45
- * @attr {boolean} data-drawer - Reflected BY the element while the window is narrower than `breakpoint` (48rem unless you set it). Read-only.
53
+ * @attr {string} breakpoint - The window width under which the sidebar becomes a drawer: a length (default `48rem`), or `none` for a column that never does, in a floating chat's card included.
54
+ * @attr {boolean} data-drawer - Reflected BY the element while the window is narrower than `breakpoint` (48rem unless you set it), and in the card of an `<aparte-launcher>` when it is the direct child of the card's `.aparte-app-shell`. Read-only.
46
55
  *
47
56
  * @fires {CustomEvent<AparteSidebarToggleDetail>} aparte-sidebar-toggle - The sidebar opened or closed, by a toggle, by Escape, by a click on the scrim or by `collapsed` being set. Bubbles.
48
57
  *
@@ -117,6 +126,9 @@ export declare class AparteSidebar extends HTMLElement {
117
126
  private _hostIntentSeeded;
118
127
  /** Raised around `_applyDrawer`'s own writes, so the breakpoint is never read as a host's intent. */
119
128
  private _auto;
129
+ /** The floating chat this sidebar is in, if any: its size decides the drawer, not the window's. */
130
+ private _launcher;
131
+ private _launcherWatch;
120
132
  /**
121
133
  * The element wrote `inert`/`aria-hidden` and may take them back. A host that inerts
122
134
  * the sidebar behind its own modal wrote them itself, and `_syncHidden` runs on every
@@ -131,7 +143,7 @@ export declare class AparteSidebar extends HTMLElement {
131
143
  /** Whether the sidebar is collapsed (hidden in the flow, or closed as a drawer). */
132
144
  get collapsed(): boolean;
133
145
  set collapsed(value: boolean);
134
- /** True while the window is under the breakpoint and the sidebar is a drawer. */
146
+ /** True while the sidebar is a drawer: the window is under the breakpoint, or it is in a floating chat's card. */
135
147
  get drawer(): boolean;
136
148
  connectedCallback(): void;
137
149
  /**
@@ -140,6 +152,31 @@ export declare class AparteSidebar extends HTMLElement {
140
152
  * a narrow host that has room for it wants, and a documentation frame needs.
141
153
  */
142
154
  private _watchBreakpoint;
155
+ /**
156
+ * A drawer under the window's breakpoint, and in the card of a floating chat whatever
157
+ * the window: the card is narrow in the widest one. `breakpoint="none"` is the host's
158
+ * word for a column at any width, and it holds in a card too.
159
+ */
160
+ private _wantsDrawer;
161
+ /**
162
+ * In a floating chat that does not fill the window: its card, or the panel
163
+ * `maximizable="panel"` runs along the window's edge, which is as narrow. Only as the
164
+ * child of the card's shell, which is what holds the drawer there: anywhere else in a
165
+ * card a drawer is fixed to the window, and one forced on a wide window would open over
166
+ * the page the chat floats on.
167
+ */
168
+ private _inCard;
169
+ /**
170
+ * The floating chat opened, closed or changed size. Its size decides the drawer, and a
171
+ * drawer does not outlive the chat it is in: left open under a closed chat it would still
172
+ * answer Escape for the whole page, and stand over the chat when it opens again.
173
+ */
174
+ private _followLauncher;
175
+ /**
176
+ * The shell the scrim covers in a floating chat, when the sidebar is that shell's own
177
+ * child: the stylesheet positions the drawer against it there (`sidebar.css`).
178
+ */
179
+ private _cardShell;
143
180
  disconnectedCallback(): void;
144
181
  attributeChangedCallback(name: string): void;
145
182
  /** Open the sidebar. `opener` is the control to hand the focus back to when it closes. */
@@ -1 +1 @@
1
- {"version":3,"file":"aparte-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/aparte-sidebar.ts"],"names":[],"mappings":"AAOA,iEAAiE;AACjE,MAAM,WAAW,yBAAyB;IACtC,SAAS,EAAE,OAAO,CAAC;IACnB,+EAA+E;IAC/E,MAAM,EAAE,OAAO,CAAC;CACnB;AAKD;;;;;;;;;;;;;;;;;;;;;;;;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