@rak200/ui 0.6.3 → 0.6.5

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/button.d.ts CHANGED
@@ -15,6 +15,7 @@ export type ButtonVariant = 'primary' | 'secondary';
15
15
  * ```
16
16
  */
17
17
  export declare class UiButton extends LitElement {
18
+ #private;
18
19
  static readonly styles: import("lit").CSSResult;
19
20
  static readonly properties: {
20
21
  variant: {
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../src/button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGjE,+CAA+C;AAC/C,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,CAAC;AAEpD;;;;;;;;;;;;GAYG;AACH,qBAAa,QAAS,SAAQ,UAAU;IACpC,gBAAyB,MAAM,0BA6E7B;IAEF,gBAAyB,UAAU;;;;;;;;;MAGjC;IAEF;;;;;;;;OAQG;IACH,OAAO,EAAE,aAAa,CAAa;IAEnC,kFAAkF;IAClF,QAAQ,UAAS;IAER,MAAM,IAAI,cAAc;CAOpC;AAQD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,WAAW,EAAE,QAAQ,CAAC;KACzB;CACJ"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../src/button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAIjE,+CAA+C;AAC/C,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,CAAC;AAEpD;;;;;;;;;;;;GAYG;AACH,qBAAa,QAAS,SAAQ,UAAU;;IACpC,gBAAyB,MAAM,0BA6E7B;IAEF,gBAAyB,UAAU;;;;;;;;;MAGjC;IAEF;;;;;;;;OAQG;IACH,OAAO,EAAE,aAAa,CAAa;IAEnC,kFAAkF;IAClF,QAAQ,UAAS;IAkBR,MAAM,IAAI,cAAc;CAapC;AAQD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,WAAW,EAAE,QAAQ,CAAC;KACzB;CACJ"}
package/dist/button.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { LitElement, css, html } from 'lit';
2
+ import { Description } from './description.js';
2
3
  import { reference } from './reference.js';
3
4
  /**
4
5
  * A button.
@@ -28,6 +29,21 @@ export class UiButton extends LitElement {
28
29
  this.variant = 'primary';
29
30
  /** Whether the button rejects interaction. Reflected, so CSS can select on it. */
30
31
  this.disabled = false;
32
+ /**
33
+ * The sentence a `<ui-tooltip>` handed over, and the node its `<button>` points at.
34
+ *
35
+ * **Built in the field initialiser**, which runs inside the constructor: the tooltip
36
+ * waits on `customElements.whenDefined` before it hands anything over and that
37
+ * resolves after the constructor, so this is in time where a listener added on first
38
+ * render would not be.
39
+ *
40
+ * Private, because a writable `description` is the option RFC 0006 rejected twice
41
+ * over: it makes the host write a sentence the tooltip is already holding, and a
42
+ * property written before an element upgrades shadows its accessor permanently on
43
+ * anything not built on Lit. What is public here is the event, which reports whether
44
+ * anyone took it.
45
+ */
46
+ this.#description = new Description(this);
31
47
  }
32
48
  static { this.styles = css `
33
49
  :host {
@@ -111,11 +127,32 @@ export class UiButton extends LitElement {
111
127
  variant: { type: String, reflect: true },
112
128
  disabled: { type: Boolean, reflect: true },
113
129
  }; }
130
+ /**
131
+ * The sentence a `<ui-tooltip>` handed over, and the node its `<button>` points at.
132
+ *
133
+ * **Built in the field initialiser**, which runs inside the constructor: the tooltip
134
+ * waits on `customElements.whenDefined` before it hands anything over and that
135
+ * resolves after the constructor, so this is in time where a listener added on first
136
+ * render would not be.
137
+ *
138
+ * Private, because a writable `description` is the option RFC 0006 rejected twice
139
+ * over: it makes the host write a sentence the tooltip is already holding, and a
140
+ * property written before an element upgrades shadows its accessor permanently on
141
+ * anything not built on Lit. What is public here is the event, which reports whether
142
+ * anyone took it.
143
+ */
144
+ #description;
114
145
  render() {
115
146
  return html `
116
- <button class=${this.variant} ?disabled=${this.disabled} part="button">
147
+ <button
148
+ class=${this.variant}
149
+ ?disabled=${this.disabled}
150
+ aria-describedby=${this.#description.reference()}
151
+ part="button"
152
+ >
117
153
  <slot></slot>
118
154
  </button>
155
+ ${this.#description.carrier()}
119
156
  `;
120
157
  }
121
158
  }
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","sourceRoot":"","sources":["../src/button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAuB,MAAM,KAAK,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAK3C;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,QAAS,SAAQ,UAAU;IAAxC;;QAqFI;;;;;;;;WAQG;QACH,YAAO,GAAkB,SAAS,CAAC;QAEnC,kFAAkF;QAClF,aAAQ,GAAG,KAAK,CAAC;IASrB,CAAC;aAzG4B,WAAM,GAAG,GAAG,CAAA;;;;;;;2BAOd,SAAS,CAAC,WAAW,CAAC;;6BAEpB,SAAS,CAAC,aAAa,CAAC;uBAC9B,SAAS,CAAC,YAAY,CAAC,SAAS,SAAS,CAAC,YAAY,CAAC;;;;;;;;;;;;;;2CAcnC,SAAS,CAAC,qBAAqB,CAAC;kBACzD,SAAS,CAAC,mBAAmB,CAAC;;;;;;;;;;;iCAWf,SAAS,CAAC,kBAAkB,CAAC;;;;;0BAKpC,SAAS,CAAC,mBAAmB,CAAC;qBACnC,SAAS,CAAC,4BAA4B,CAAC;;;;0BAIlC,SAAS,CAAC,oBAAoB,CAAC;qBACpC,SAAS,CAAC,iBAAiB,CAAC;;;;;;;;;0BASvB,SAAS,CAAC,yBAAyB,CAAC;;;;0BAIpC,SAAS,CAAC,kBAAkB,CAAC;;;;;;;;;0BAS7B,SAAS,CAAC,2BAA2B,CAAC;;;;;0BAKtC,SAAS,CAAC,oBAAoB,CAAC;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kBAAkB,CAAC;;;;;0BAKpC,SAAS,CAAC,mBAAmB,CAAC;qBACnC,SAAS,CAAC,4BAA4B,CAAC;;;;0BAIlC,SAAS,CAAC,oBAAoB,CAAC;qBACpC,SAAS,CAAC,iBAAiB,CAAC;;;;;;;;;0BASvB,SAAS,CAAC,yBAAyB,CAAC;;;;0BAIpC,SAAS,CAAC,kBAAkB,CAAC;;;;;;;;;0BAS7B,SAAS,CAAC,2BAA2B,CAAC;;;;;0BAKtC,SAAS,CAAC,oBAAoB,CAAC;;;KAGpD,AA7E8B,CA6E7B;aAEuB,eAAU,GAAG;QAClC,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE;QACxC,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;KAC7C,AAHkC,CAGjC;IAgBF;;;;;;;;;;;;;OAaG;IACM,YAAY,CAAyB;IAErC,MAAM;QACX,OAAO,IAAI,CAAA;;wBAEK,IAAI,CAAC,OAAO;4BACR,IAAI,CAAC,QAAQ;mCACN,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE;;;;;cAKlD,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE;SAChC,CAAC;IACN,CAAC;;AAGL,kFAAkF;AAClF,wFAAwF;AACxF,yFAAyF;AACzF,4EAA4E;AAC5E,cAAc,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * The sentence a `<ui-tooltip>` hands over, and the node a control points at.
3
+ *
4
+ * **An `aria-describedby` written in the host's tree cannot name anything inside a
5
+ * control's shadow root** — one IDREF, one tree scope — which is the failure #156 measured
6
+ * across most of this package. RFC 0006 answered it by moving the *text* rather than the
7
+ * reference: the tooltip dispatches it at the trigger, and a control that accepts it
8
+ * renders it into its own root where its own `aria-describedby` reaches.
9
+ *
10
+ * **This module exists because `<ui-menu>` is the second element to need it**, which is
11
+ * the same moment and the same reason `src/placement.ts` was extracted: two answers to one
12
+ * problem is one too many. Six classes carry the protocol when the rollout is done, and a
13
+ * copy in each is six chances for one of them to drift into accepting text it never
14
+ * renders.
15
+ *
16
+ * **What it does not own is the rendering.** `<ui-button>` draws its control from a
17
+ * template and `<ui-menu>` builds one imperatively, so each points its own control at
18
+ * {@link Description.reference} and places {@link Description.carrier} where that control
19
+ * can resolve it. What is shared is the part that is identical wherever it goes: the
20
+ * listener, the sentence, and the rule that an empty one is no description at all.
21
+ *
22
+ * Internal — it is not re-exported from `src/index.ts`, because what a consumer writes is
23
+ * the tip, never this.
24
+ */
25
+ import { nothing, type TemplateResult } from 'lit';
26
+ /** The host's half of the contract: enough of `LitElement` to take the text and redraw. */
27
+ interface Described extends HTMLElement {
28
+ requestUpdate: () => void;
29
+ }
30
+ export declare class Description {
31
+ #private;
32
+ /**
33
+ * Listens from the constructor, which is where the host must build it.
34
+ *
35
+ * The tooltip waits on `customElements.whenDefined` before it hands anything over, and
36
+ * that resolves *after* the constructor has run — so a listener added on connection
37
+ * would still be in time, and one added on first render would not. The constructor is
38
+ * the earliest of the three and the only one with nothing to reason about.
39
+ */
40
+ constructor(host: Described);
41
+ /**
42
+ * What the control's `aria-describedby` is bound to, or `nothing` when there is no
43
+ * description — an empty attribute is not the same shape as an absent one.
44
+ */
45
+ reference(): string | typeof nothing;
46
+ /**
47
+ * Points a control built by hand at the carrier, or stops pointing it.
48
+ *
49
+ * The imperative half of {@link Description.reference}, and both exist because the
50
+ * controls do: `<ui-button>` draws its `<button>` from a template and `<ui-menu>`
51
+ * builds one with `document.createElement`, so the same rule has to be expressible
52
+ * twice. It lives here rather than at each call site so *empty means absent* is
53
+ * decided once — an `aria-describedby=""` is a different shape from no attribute, and
54
+ * a control that wrote one would be describing nothing rather than nothing at all.
55
+ */
56
+ point(control: Element): void;
57
+ /** The node that reference resolves to, rendered into the control's own root. */
58
+ carrier(): TemplateResult | typeof nothing;
59
+ }
60
+ export {};
61
+ //# sourceMappingURL=description.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"description.d.ts","sourceRoot":"","sources":["../src/description.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAQ,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEzD,2FAA2F;AAC3F,UAAU,SAAU,SAAQ,WAAW;IACnC,aAAa,EAAE,MAAM,IAAI,CAAC;CAC7B;AAyDD,qBAAa,WAAW;;IAKpB;;;;;;;OAOG;gBACS,IAAI,EAAE,SAAS;IA8B3B;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,OAAO,OAAO;IAIpC;;;;;;;;;OASG;IACH,KAAK,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAY7B,iFAAiF;IACjF,OAAO,IAAI,cAAc,GAAG,OAAO,OAAO;CAK7C"}
@@ -0,0 +1,147 @@
1
+ /**
2
+ * The sentence a `<ui-tooltip>` hands over, and the node a control points at.
3
+ *
4
+ * **An `aria-describedby` written in the host's tree cannot name anything inside a
5
+ * control's shadow root** — one IDREF, one tree scope — which is the failure #156 measured
6
+ * across most of this package. RFC 0006 answered it by moving the *text* rather than the
7
+ * reference: the tooltip dispatches it at the trigger, and a control that accepts it
8
+ * renders it into its own root where its own `aria-describedby` reaches.
9
+ *
10
+ * **This module exists because `<ui-menu>` is the second element to need it**, which is
11
+ * the same moment and the same reason `src/placement.ts` was extracted: two answers to one
12
+ * problem is one too many. Six classes carry the protocol when the rollout is done, and a
13
+ * copy in each is six chances for one of them to drift into accepting text it never
14
+ * renders.
15
+ *
16
+ * **What it does not own is the rendering.** `<ui-button>` draws its control from a
17
+ * template and `<ui-menu>` builds one imperatively, so each points its own control at
18
+ * {@link Description.reference} and places {@link Description.carrier} where that control
19
+ * can resolve it. What is shared is the part that is identical wherever it goes: the
20
+ * listener, the sentence, and the rule that an empty one is no description at all.
21
+ *
22
+ * Internal — it is not re-exported from `src/index.ts`, because what a consumer writes is
23
+ * the tip, never this.
24
+ */
25
+ import { html, nothing } from 'lit';
26
+ /**
27
+ * The id the carrier takes, fixed per root the way `help` and `error` already are.
28
+ *
29
+ * **The carrier deliberately carries no `part`.** `help` and `error` expose one because a
30
+ * host is meant to style them; this node exists to be read and not seen, and a part on it
31
+ * is an invitation to unclip it — which would put the sentence on screen twice, beside the
32
+ * tip already showing it.
33
+ */
34
+ const id = 'description';
35
+ /**
36
+ * Keeps the carrier out of the paint without taking it out of the tree, **inline**.
37
+ *
38
+ * The sentence is already on screen — in the tip, which is the whole point of the
39
+ * handoff — so drawing it again would show it twice.
40
+ *
41
+ * It is written on the node rather than adopted from a stylesheet because a stylesheet is
42
+ * a thing each of the six components has to remember, and the day one forgets, the
43
+ * sentence renders **visibly** beside the tip that already carries it. Measured, on the
44
+ * first host that consumed this module without adopting the rule: 363px of text nobody
45
+ * asked to see. There is no token in any of these values and nothing here for a host to
46
+ * retune, so travelling with the node costs the rule nothing.
47
+ *
48
+ * **Four declarations, and the well-known recipe has eight.** The other four survived the
49
+ * mutation floor, which is how they were found to be doing nothing here:
50
+ *
51
+ * - `margin: -1px` keeps a 1px box from disturbing the layout, and `position: absolute`
52
+ * already took it out of the flow.
53
+ * - `padding: 0` resets an inherited padding. A `<span>` has none, and nothing in these
54
+ * components styles this id.
55
+ * - `overflow: hidden` clips the content to the box, which `clip-path` then clips to
56
+ * nothing — so it removes a sliver that is already gone.
57
+ * - `white-space: nowrap` is carried for a claim about how a screen reader reads wrapped
58
+ * text, and no instrument in this toolchain can read an accessibility tree. By the rule
59
+ * `docs/select.md` applies to `appearance: base-select`, that is not adopted here.
60
+ *
61
+ * Each of the four that stay does something no other one does, and the suite says which:
62
+ * out of flow, one column wide, one row tall, and painted nowhere.
63
+ *
64
+ * display:none would be the shorter way and it is the one this package will not take. The
65
+ * accessible description of a hidden element that is DIRECTLY referenced is computed
66
+ * anyway, by specification; whether every engine does it is the same unverifiable claim,
67
+ * and the clip has nothing left to disagree about: in the tree in every engine, and
68
+ * painted in none.
69
+ *
70
+ * No offsets with the absolute, deliberately: an out-of-flow box with none stays at its
71
+ * static position, so it neither travels nor grows the scrollable area.
72
+ */
73
+ const clipped = [
74
+ 'position:absolute',
75
+ 'inline-size:1px',
76
+ 'block-size:1px',
77
+ 'clip-path:inset(50%)',
78
+ ].join(';');
79
+ export class Description {
80
+ #sentence = '';
81
+ #host;
82
+ /**
83
+ * Listens from the constructor, which is where the host must build it.
84
+ *
85
+ * The tooltip waits on `customElements.whenDefined` before it hands anything over, and
86
+ * that resolves *after* the constructor has run — so a listener added on connection
87
+ * would still be in time, and one added on first render would not. The constructor is
88
+ * the earliest of the three and the only one with nothing to reason about.
89
+ */
90
+ constructor(host) {
91
+ this.#host = host;
92
+ host.addEventListener('ui-describe', this.#take);
93
+ }
94
+ /**
95
+ * Takes the sentence, and leaves anything else unclaimed.
96
+ *
97
+ * The payload is tested and the event's class is not, which is narrower than it looks:
98
+ * a plain `Event` carries no `detail` at all, so the type test stops one as surely as
99
+ * an `instanceof` would — and an `instanceof` here was dead weight the mutation floor
100
+ * could not kill, because nothing reached it that this line did not already turn away.
101
+ *
102
+ * `preventDefault()` is the whole of the acknowledgement: the dispatch's return value
103
+ * is what tells the tooltip whether to warn, so a malformed payload has to read as a
104
+ * refusal rather than be accepted and ignored.
105
+ */
106
+ #take = (event) => {
107
+ const handed = event.detail;
108
+ if (typeof handed !== 'string') {
109
+ return;
110
+ }
111
+ event.preventDefault();
112
+ this.#sentence = handed;
113
+ this.#host.requestUpdate();
114
+ };
115
+ /**
116
+ * What the control's `aria-describedby` is bound to, or `nothing` when there is no
117
+ * description — an empty attribute is not the same shape as an absent one.
118
+ */
119
+ reference() {
120
+ return this.#sentence === '' ? nothing : id;
121
+ }
122
+ /**
123
+ * Points a control built by hand at the carrier, or stops pointing it.
124
+ *
125
+ * The imperative half of {@link Description.reference}, and both exist because the
126
+ * controls do: `<ui-button>` draws its `<button>` from a template and `<ui-menu>`
127
+ * builds one with `document.createElement`, so the same rule has to be expressible
128
+ * twice. It lives here rather than at each call site so *empty means absent* is
129
+ * decided once — an `aria-describedby=""` is a different shape from no attribute, and
130
+ * a control that wrote one would be describing nothing rather than nothing at all.
131
+ */
132
+ point(control) {
133
+ const described = this.reference();
134
+ if (described === nothing) {
135
+ control.removeAttribute('aria-describedby');
136
+ return;
137
+ }
138
+ control.setAttribute('aria-describedby', described);
139
+ }
140
+ /** The node that reference resolves to, rendered into the control's own root. */
141
+ carrier() {
142
+ return this.#sentence === ''
143
+ ? nothing
144
+ : html `<span id=${id} style=${clipped}>${this.#sentence}</span>`;
145
+ }
146
+ }
147
+ //# sourceMappingURL=description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"description.js","sourceRoot":"","sources":["../src/description.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AAOzD;;;;;;;GAOG;AACH,MAAM,EAAE,GAAG,aAAa,CAAC;AAEzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,OAAO,GAAG;IACZ,mBAAmB;IACnB,iBAAiB;IACjB,gBAAgB;IAChB,sBAAsB;CACzB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,MAAM,OAAO,WAAW;IACpB,SAAS,GAAG,EAAE,CAAC;IAEN,KAAK,CAAY;IAE1B;;;;;;;OAOG;IACH,YAAY,IAAe;QACvB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IACrD,CAAC;IAED;;;;;;;;;;;OAWG;IACM,KAAK,GAAG,CAAC,KAAY,EAAQ,EAAE;QACpC,MAAM,MAAM,GAAa,KAA8B,CAAC,MAAM,CAAC;QAE/D,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE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;CAwNpC;AAQD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,SAAS,EAAE,MAAM,CAAC;KACrB;CACJ"}
1
+ {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../src/menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AA6DjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,qBAAa,MAAO,SAAQ,UAAU;;IAClC,gBAAyB,MAAM,0BAsJ7B;IAEF,gBAAyB,UAAU;;;;;MAEjC;IAEF;;;;;;;;;;OAUG;IACH,IAAI,UAAS;;IAoFJ,oBAAoB,IAAI,IAAI;IAmB5B,OAAO,IAAI,IAAI;IA6Bf,MAAM,IAAI,cAAc;CA2NpC;AAQD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,SAAS,EAAE,MAAM,CAAC;KACrB;CACJ"}
package/dist/menu.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { LitElement, css, html } from 'lit';
2
2
  import { place } from './placement.js';
3
+ import { Description } from './description.js';
3
4
  import { reference } from './reference.js';
4
5
  /**
5
6
  * The panel's id, and it needs no counter behind it.
@@ -254,6 +255,19 @@ export class UiMenu extends LitElement {
254
255
  }; }
255
256
  /** The button this component owns, so the relationship below cannot be miswired. */
256
257
  #trigger;
258
+ /**
259
+ * The sentence a `<ui-tooltip>` hands over, and the node the trigger points at.
260
+ *
261
+ * This element is the hardest place the protocol goes and it is taken second on
262
+ * purpose: it renders its own trigger, drives a popover, already holds an
263
+ * `aria-controls` reference and hand-writes the focus return across a shadow
264
+ * boundary. A protocol that broke here first would not say whether the protocol or
265
+ * the menu was at fault — so `<ui-button>`, which has none of that, proved it. RFC 0006
266
+ *
267
+ * The trigger is built with `document.createElement`, so the reference is written in
268
+ * {@link UiMenu.updated} beside `aria-expanded` rather than bound in the template.
269
+ */
270
+ #description;
257
271
  /** The menu itself, in the same tree scope as the trigger that names it. */
258
272
  #panel;
259
273
  /** What a pending typeahead has collected, and the clock that forgets it. */
@@ -290,6 +304,19 @@ export class UiMenu extends LitElement {
290
304
  this.open = false;
291
305
  /** The button this component owns, so the relationship below cannot be miswired. */
292
306
  this.#trigger = document.createElement('button');
307
+ /**
308
+ * The sentence a `<ui-tooltip>` hands over, and the node the trigger points at.
309
+ *
310
+ * This element is the hardest place the protocol goes and it is taken second on
311
+ * purpose: it renders its own trigger, drives a popover, already holds an
312
+ * `aria-controls` reference and hand-writes the focus return across a shadow
313
+ * boundary. A protocol that broke here first would not say whether the protocol or
314
+ * the menu was at fault — so `<ui-button>`, which has none of that, proved it. RFC 0006
315
+ *
316
+ * The trigger is built with `document.createElement`, so the reference is written in
317
+ * {@link UiMenu.updated} beside `aria-expanded` rather than bound in the template.
318
+ */
319
+ this.#description = new Description(this);
293
320
  /** The menu itself, in the same tree scope as the trigger that names it. */
294
321
  this.#panel = document.createElement('div');
295
322
  /** What a pending typeahead has collected, and the clock that forgets it. */
@@ -439,10 +466,21 @@ export class UiMenu extends LitElement {
439
466
  // framework unmounted would otherwise keep re-placing an element that is no longer
440
467
  // in a document.
441
468
  this.#watching.abort();
469
+ // Stryker disable next-line CallExpression: this reaches exactly two things in Lit
470
+ // and this element has neither — `__controllers` is empty, because nothing here
471
+ // registers a reactive controller, and `__childPart.setConnected(false)` speaks
472
+ // only to async directives, which this template does not use. `Description` is a
473
+ // plain object rather than a `ReactiveController` for precisely that reason: it
474
+ // needs `requestUpdate` and no lifecycle hook, so it adds nothing here to
475
+ // disconnect. The same annotation is in `src/toast.ts` with the same reading, and
476
+ // the call stays for the same reason: Lit documents it as the extension point it
477
+ // reserves for later additions, so the day this element grows a controller the
478
+ // mutant stops being equivalent and nothing else would say so.
442
479
  super.disconnectedCallback();
443
480
  }
444
481
  updated() {
445
482
  this.#trigger.setAttribute('aria-expanded', String(this.open));
483
+ this.#description.point(this.#trigger);
446
484
  // Compared against the platform's own state rather than against Lit's changed
447
485
  // properties, and it has to be: on the first update Lit reports every initialised
448
486
  // property as changed, so a menu that has never been open would run the closing
@@ -468,7 +506,10 @@ export class UiMenu extends LitElement {
468
506
  }
469
507
  }
470
508
  render() {
471
- return html `${this.#trigger}${this.#panel}`;
509
+ // The carrier sits beside the trigger rather than inside the panel: the panel is a
510
+ // popover and the reference has to resolve from where the reader's focus lands,
511
+ // which is the trigger's own tree scope and not the layer above it.
512
+ return html `${this.#trigger}${this.#panel}${this.#description.carrier()}`;
472
513
  }
473
514
  /** The items, which are the host's own controls rather than anything rendered here. */
474
515
  #items() {
package/dist/menu.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"menu.js","sourceRoot":"","sources":["../src/menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAuB,MAAM,KAAK,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;;;;;;GAOG;AACH,MAAM,OAAO,GAAG,MAAM,CAAC;AAEvB,uEAAuE;AACvE,MAAM,IAAI,GAAG,WAAW,CAAC;AAEzB;;;;;;;GAOG;AACH,MAAM,MAAM,GAAG,GAAG,CAAC;AAEnB,8FAA8F;AAC9F,MAAM,KAAK,GAAG,4BAA4B,CAAC;AAE3C,uFAAuF;AACvF,SAAS,IAAI,CAAC,IAAI,GAAG,EAAE;IACnB,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AACnE,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,KAAK;IACV,MAAM,IAAI,GAAG,QAAQ,CAAC,eAAe,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACpD,MAAM,MAAM,GAAG,QAAQ,CAAC,eAAe,CAAC,KAAK,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;;;;;;;GAyDG;AACH,qBAAa,SAAU,SAAQ,UAAU;;IACrC,gBAAyB,MAAM,0BAkD7B;IAyFO,iBAAiB,IAAI,IAAI;IAqBzB,oBAAoB,IAAI,IAAI;IAU5B,MAAM,IAAI,cAAc;CAgQpC;AAQD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,YAAY,EAAE,SAAS,CAAC;KAC3B;CACJ"}
1
+ {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../src/tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AA4CjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,qBAAa,SAAU,SAAQ,UAAU;;IACrC,gBAAyB,MAAM,0BAkD7B;IAyFO,iBAAiB,IAAI,IAAI;IA0BzB,oBAAoB,IAAI,IAAI;IAe5B,MAAM,IAAI,cAAc;CA2WpC;AAQD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,YAAY,EAAE,SAAS,CAAC;KAC3B;CACJ"}
package/dist/tooltip.js CHANGED
@@ -12,14 +12,6 @@ const side = 'data-side';
12
12
  * inside the boundary, not how the element was made able to take it.
13
13
  */
14
14
  const focusable = 'a[href], button, input, select, textarea, [tabindex]';
15
- /**
16
- * The ids already describing a trigger, as a list rather than the attribute's string.
17
- *
18
- * Both halves of the wiring read it — one to add an id, the other to take the same one
19
- * back out — and they have to agree about what the string means. The empty filter is what
20
- * makes an absent attribute an empty list: `''.split(' ')` is `['']`, and a list with one
21
- * empty entry joins back with a leading space.
22
- */
23
15
  function describing(trigger) {
24
16
  return (trigger.getAttribute('aria-describedby') ?? '').split(' ').filter((id) => id !== '');
25
17
  }
@@ -227,6 +219,10 @@ export class UiTooltip extends LitElement {
227
219
  this.addEventListener('pointerleave', this.#onLeave, watched);
228
220
  this.addEventListener('focusin', this.#onFocus, watched);
229
221
  this.addEventListener('focusout', this.#onLeave, watched);
222
+ // A tooltip a framework moved in the tree comes back wired. `disconnectedCallback`
223
+ // withdraws the description, and nothing fires a `slotchange` on reconnection to
224
+ // put it back — the same argument the fresh `AbortController` above is here for.
225
+ this.#associate();
230
226
  }
231
227
  disconnectedCallback() {
232
228
  // Removed while shown, the tip takes the window listeners with it. A tooltip that
@@ -234,6 +230,10 @@ export class UiTooltip extends LitElement {
234
230
  // is no longer in a document.
235
231
  this.#hide();
236
232
  this.#listeners.abort();
233
+ // The trigger is this element's own child, so it usually leaves with it and has
234
+ // nobody left to describe. What this is for is the host that moves the trigger out
235
+ // first, and the framework that unmounts this element alone.
236
+ this.#unwire();
237
237
  super.disconnectedCallback();
238
238
  }
239
239
  render() {
@@ -299,9 +299,93 @@ export class UiTooltip extends LitElement {
299
299
  if (!described.includes(tip.id)) {
300
300
  trigger.setAttribute('aria-describedby', [...described, tip.id].join(' '));
301
301
  }
302
- this.#wired = { trigger, tip };
303
- this.#complain(trigger);
302
+ // The sentence crosses to the trigger as a **copy**, so unlike the IDREF beside it
303
+ // it goes stale the moment the host touches the original — and `slotchange` fires
304
+ // when the tip element is *replaced* and for **neither** in-place edit, measured:
305
+ // not text rewritten through `textContent`, not a node appended to it. The three
306
+ // options are one decision: an edit can land on a descendant as readily as on the
307
+ // tip itself.
308
+ //
309
+ // It rides in the wiring rather than beside it so there is one thing to be absent
310
+ // rather than two — and the pair is what it speaks for, so a disconnected observer
311
+ // and a cleared pair cannot come apart. One per tooltip, over this element's own
312
+ // slotted child: the bridge this proposal rejected owed one observer **per
313
+ // control**, over a node each control had to resolve an id in first. RFC 0006
314
+ const observer = new MutationObserver(() => {
315
+ this.#hand(wiring);
316
+ });
317
+ const wiring = { trigger, tip, observer };
318
+ observer.observe(tip, { characterData: true, childList: true, subtree: true });
319
+ this.#wired = wiring;
320
+ this.#offer(wiring);
304
321
  };
322
+ /**
323
+ * Hands the sentence over, once the trigger is in a state where refusal means refusal.
324
+ *
325
+ * A dispatch at an element whose definition has not arrived is heard by nobody and
326
+ * comes back **uncancelled** — which is exactly what a trigger that accepts no text
327
+ * returns. The two are indistinguishable, so warning on that answer would warn at an
328
+ * element that would have accepted. Measured, and measured again for the recovery:
329
+ * the upgrade fires no `slotchange`, no hook and no event at all, so this promise is
330
+ * the only signal there is and waiting on it is a requirement rather than a
331
+ * refinement. RFC 0006
332
+ *
333
+ * **The hyphen test is load-bearing rather than a shortcut**: `whenDefined` throws on
334
+ * a name that could never be a custom element, so `<button>` has to be answered
335
+ * before the registry is asked about it.
336
+ */
337
+ #offer(wiring) {
338
+ const name = wiring.trigger.localName;
339
+ if (name.includes('-') && customElements.get(name) === undefined) {
340
+ void customElements.whenDefined(name).then(() => {
341
+ // The wiring can have moved on while the definition was travelling, and
342
+ // this element only ever speaks for the one it is holding now.
343
+ if (this.#wired === wiring) {
344
+ this.#hand(wiring);
345
+ }
346
+ });
347
+ return;
348
+ }
349
+ this.#hand(wiring);
350
+ }
351
+ /**
352
+ * The dispatch itself, carrying whatever the tip says right now.
353
+ *
354
+ * **The most recent dispatch wins and a trigger never accumulates**: a tooltip has one
355
+ * tip, so this is a value being written rather than an item being added — and
356
+ * accumulation would owe a withdrawal per sentence, which this element has nothing to
357
+ * identify one by.
358
+ *
359
+ * **The advertisement is the return value.** A control that takes the text calls
360
+ * `preventDefault()`, so `dispatchEvent` comes back `false` exactly when someone
361
+ * accepted — which is why the warning below needs no roster of elements, and this
362
+ * proposal already recorded that a roster ages exactly like the sentence it replaced.
363
+ */
364
+ #hand(wiring) {
365
+ // The markup around the sentence is not the sentence: a tip written across lines
366
+ // carries its indentation into `textContent`, and what the trigger renders is
367
+ // announced rather than laid out.
368
+ if (!this.#say(wiring.trigger, wiring.tip.textContent.trim())) {
369
+ this.#complain(wiring.trigger);
370
+ }
371
+ }
372
+ /**
373
+ * The dispatch, which is the entire protocol.
374
+ *
375
+ * **One site for both directions**, the sentence and its withdrawal, and that is not
376
+ * only tidiness: the flags are the contract, and written twice only one copy would be
377
+ * read back. `cancelable` is what lets a control answer at all — without it
378
+ * `preventDefault()` does nothing and every trigger reads as refusing — so it belongs
379
+ * where the answer is consumed rather than beside a call that ignores it.
380
+ *
381
+ * @returns whether a control took it, which is the whole of the advertisement: the
382
+ * acknowledgement is `preventDefault()`, so no roster of elements is needed — and
383
+ * this proposal already recorded that a roster ages exactly like the sentence it
384
+ * replaced. RFC 0006
385
+ */
386
+ #say(trigger, sentence) {
387
+ return !trigger.dispatchEvent(new CustomEvent('ui-describe', { detail: sentence, cancelable: true }));
388
+ }
305
389
  /**
306
390
  * Takes back the one id this element wrote, and leaves every other one alone.
307
391
  *
@@ -316,6 +400,17 @@ export class UiTooltip extends LitElement {
316
400
  return;
317
401
  }
318
402
  this.#wired = undefined;
403
+ wired.observer.disconnect();
404
+ // The withdrawal, on the same event rather than a second name: `detail` is a
405
+ // string whose empty value means *absent*, which is the shape `help` and `error`
406
+ // already have everywhere else in this package. Without it a control keeps
407
+ // pointing at text describing a tip the reader can no longer summon, which is
408
+ // worse than never having had it because it reads as current.
409
+ //
410
+ // The answer is not read here, and that is deliberate: a trigger that refuses to
411
+ // let go is not a trigger the description failed to reach, so {@link
412
+ // UiTooltip.#complain} has nothing to say about it. RFC 0006
413
+ this.#say(wired.trigger, '');
319
414
  const remaining = describing(wired.trigger).filter((id) => id !== wired.tip.id);
320
415
  if (remaining.length === 0) {
321
416
  wired.trigger.removeAttribute('aria-describedby');
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../src/tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAuB,MAAM,KAAK,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,+DAA+D;AAC/D,IAAI,QAAQ,GAAG,CAAC,CAAC;AAEjB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AAM;QACF,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAChC,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QAExB,IAAI,OAAO,KAAK,SAAS,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YAC7C,OAAO;QACX,CAAC;QAED,MAAM,IAAI,GAAG,QAAQ,CAAC,eAAe,CAAC;QACtC,MAAM,SAAS,GAAG,KAAK,CACnB,OAAO,CAAC,qBAAqB,EAAE,EAC/B,GAAG,CAAC,qBAAqB,EAAE,EAC3B,EAAE,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,EACtD,aAAa,EACb,QAAQ,CACX,CAAC;QAEF,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;QACvC,GAAG,CAAC,KAAK,CAAC,eAAe,GAAG,GAAG,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC;QAChE,GAAG,CAAC,KAAK,CAAC,gBAAgB,GAAG,GAAG,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC;IACtE,CAAC;;AAGL,yFAAyF;AACzF,yFAAyF;AACzF,yFAAyF;AACzF,oEAAoE;AACpE,cAAc,CAAC,MAAM,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rak200/ui",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
4
4
  "description": "Host-agnostic custom-element UI components for the rak200 ecosystem",
5
5
  "license": "MIT",
6
6
  "author": "rak200 <rak.ricardo@windowslive.com>",