@rak200/ui 0.6.4 → 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
@@ -39,7 +39,6 @@ export declare class UiButton extends LitElement {
39
39
  variant: ButtonVariant;
40
40
  /** Whether the button rejects interaction. Reflected, so CSS can select on it. */
41
41
  disabled: boolean;
42
- constructor();
43
42
  render(): TemplateResult;
44
43
  }
45
44
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../src/button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1E,+CAA+C;AAC/C,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,CAAC;AAEpD;;;;;;;;;;;;GAYG;AACH,qBAAa,QAAS,SAAQ,UAAU;;IACpC,gBAAyB,MAAM,0BAsG7B;IAEF,gBAAyB,UAAU;;;;;;;;;MAGjC;IAEF;;;;;;;;OAQG;IACH,OAAO,EAAE,aAAa,CAAa;IAEnC,kFAAkF;IAClF,QAAQ,UAAS;;IAmDR,MAAM,IAAI,cAAc;CAiBpC;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
- import { LitElement, css, html, nothing } from 'lit';
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.
@@ -14,6 +15,36 @@ import { reference } from './reference.js';
14
15
  * ```
15
16
  */
16
17
  export class UiButton extends LitElement {
18
+ constructor() {
19
+ super(...arguments);
20
+ /**
21
+ * How much visual weight the button carries.
22
+ *
23
+ * A plain field, not the `accessor` keyword: `accessor` is an auto-accessor, the
24
+ * browser the suite runs in does not implement it, and the transform leaves it in
25
+ * place — the module then fails to parse. The classic Lit pattern, a `static
26
+ * properties` map beside plain fields with `useDefineForClassFields: false`, needs
27
+ * neither the keyword nor decorators.
28
+ */
29
+ this.variant = 'primary';
30
+ /** Whether the button rejects interaction. Reflected, so CSS can select on it. */
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);
47
+ }
17
48
  static { this.styles = css `
18
49
  :host {
19
50
  display: inline-block;
@@ -91,125 +122,37 @@ export class UiButton extends LitElement {
91
122
  background: ${reference('--ui-color-pressed')};
92
123
  transition-duration: 0s;
93
124
  }
94
-
95
- /* The sentence a tooltip handed over: present to a screen reader and absent to
96
- everybody else. It is already on screen — in the tip, which is the whole point of
97
- the handoff — so drawing it again would show it twice.
98
-
99
- display:none would be the shorter way and it is the one this package will not take.
100
- The accessible description of a hidden element that is DIRECTLY referenced is
101
- computed anyway, by specification; whether every engine does it is a claim this
102
- toolchain cannot check, because no instrument here reads an accessibility tree.
103
- docs/select.md already settles what to do with a feature that cannot be verified,
104
- and the clip below has nothing left to disagree about: the node is in the tree in
105
- every engine, and painted in none.
106
-
107
- No offsets with the absolute, deliberately: an out-of-flow box with none stays at
108
- its static position, so it neither travels nor grows the scrollable area. */
109
- #description {
110
- position: absolute;
111
- inline-size: 1px;
112
- block-size: 1px;
113
- margin: -1px;
114
- padding: 0;
115
- overflow: hidden;
116
- clip-path: inset(50%);
117
- white-space: nowrap;
118
- }
119
125
  `; }
120
126
  static { this.properties = {
121
127
  variant: { type: String, reflect: true },
122
128
  disabled: { type: Boolean, reflect: true },
123
129
  }; }
124
130
  /**
125
- * The sentence a `<ui-tooltip>` handed over, empty until one does.
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.
126
137
  *
127
- * **Private, and the update is asked for by hand rather than declared.** A declared
128
- * reactive property is one a host can write, and a writable `description` is the
129
- * option RFC 0006 rejected twice over: it makes the host write the same sentence a
130
- * tooltip is already holding, and a property written before an element upgrades
131
- * shadows its accessor permanently on anything not built on Lit — reading back a
132
- * value it never delivered. What is public here is the event, which reports whether
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
133
142
  * anyone took it.
134
143
  */
135
144
  #description;
136
- constructor() {
137
- super();
138
- /**
139
- * How much visual weight the button carries.
140
- *
141
- * A plain field, not the `accessor` keyword: `accessor` is an auto-accessor, the
142
- * browser the suite runs in does not implement it, and the transform leaves it in
143
- * place — the module then fails to parse. The classic Lit pattern, a `static
144
- * properties` map beside plain fields with `useDefineForClassFields: false`, needs
145
- * neither the keyword nor decorators.
146
- */
147
- this.variant = 'primary';
148
- /** Whether the button rejects interaction. Reflected, so CSS can select on it. */
149
- this.disabled = false;
150
- /**
151
- * The sentence a `<ui-tooltip>` handed over, empty until one does.
152
- *
153
- * **Private, and the update is asked for by hand rather than declared.** A declared
154
- * reactive property is one a host can write, and a writable `description` is the
155
- * option RFC 0006 rejected twice over: it makes the host write the same sentence a
156
- * tooltip is already holding, and a property written before an element upgrades
157
- * shadows its accessor permanently on anything not built on Lit — reading back a
158
- * value it never delivered. What is public here is the event, which reports whether
159
- * anyone took it.
160
- */
161
- this.#description = '';
162
- /**
163
- * Takes the tip's sentence and renders it where an IDREF can reach it.
164
- *
165
- * An `aria-describedby` written in the host's tree cannot name a node in here — one
166
- * IDREF, one tree scope — which is the failure #156 measured and this is the answer
167
- * RFC 0006 chose. `preventDefault()` is the whole of the acknowledgement: the
168
- * dispatch's return value is what tells the tooltip whether to warn, so a malformed
169
- * payload is left unclaimed on purpose rather than accepted and ignored.
170
- */
171
- this.#describe = (event) => {
172
- // The payload is tested and the event's class is not, which is narrower than it
173
- // looks: a plain `Event` carries no `detail` at all, so the type test below stops
174
- // one as surely as an `instanceof` would. The guard that used to be here is gone
175
- // because the mutation floor could not kill it — nothing reached it that the next
176
- // line did not already turn away, which makes it dead weight rather than defence.
177
- const handed = event.detail;
178
- if (typeof handed !== 'string') {
179
- return;
180
- }
181
- event.preventDefault();
182
- this.#description = handed;
183
- this.requestUpdate();
184
- };
185
- // In the constructor rather than on connection, because the listener has to exist
186
- // by the time an upgrade is observable: the tooltip waits on
187
- // `customElements.whenDefined`, which resolves after this has run.
188
- this.addEventListener('ui-describe', this.#describe);
189
- }
190
- /**
191
- * Takes the tip's sentence and renders it where an IDREF can reach it.
192
- *
193
- * An `aria-describedby` written in the host's tree cannot name a node in here — one
194
- * IDREF, one tree scope — which is the failure #156 measured and this is the answer
195
- * RFC 0006 chose. `preventDefault()` is the whole of the acknowledgement: the
196
- * dispatch's return value is what tells the tooltip whether to warn, so a malformed
197
- * payload is left unclaimed on purpose rather than accepted and ignored.
198
- */
199
- #describe;
200
145
  render() {
201
146
  return html `
202
147
  <button
203
148
  class=${this.variant}
204
149
  ?disabled=${this.disabled}
205
- aria-describedby=${this.#description === '' ? nothing : 'description'}
150
+ aria-describedby=${this.#description.reference()}
206
151
  part="button"
207
152
  >
208
153
  <slot></slot>
209
154
  </button>
210
- ${this.#description === ''
211
- ? nothing
212
- : html `<span id="description">${this.#description}</span>`}
155
+ ${this.#description.carrier()}
213
156
  `;
214
157
  }
215
158
  }
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","sourceRoot":"","sources":["../src/button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAK3C;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,QAAS,SAAQ,UAAU;aACX,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,CAA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BAKpC,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,CAAC;YAC7B,OAAO;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,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,EAAE,MAAM,CAAC,CA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K,EAAE,GAAG,OAAO,CAAC,CAAC;QAErC,KAAK;aACA,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC9E,EAAE,KAAK,EAAE,CAAC;IAClB,CAAC;IAED;;;;;;;OAOG;IACH,MAAM;QACF,MAAM,IAAI,GAAG,QAAQ,CAAC,eAAe,CAAC;QACtC,MAAM,SAAS,GAAG,KAAK,CACnB,IAAI,CAAC,QAAQ,CAAC,qBAAqB,EAAE,EACrC,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE,EACnC,EAAE,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,EACtD,WAAW,EACX,cAAc,CACjB,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,eAAe,GAAG,GAAG,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC;QACxE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,GAAG,GAAG,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC;IAC9E,CAAC;;AAGL,yFAAyF;AACzF,yFAAyF;AACzF,yFAAyF;AACzF,oEAAoE;AACpE,cAAc,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rak200/ui",
3
- "version": "0.6.4",
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>",