@qti-components/extended 0.0.0-stage → 0.0.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.
Files changed (62) hide show
  1. package/LICENSE.md +674 -0
  2. package/dist/elements.d.ts +100 -0
  3. package/dist/elements.js +44 -0
  4. package/dist/elements.js.map +1 -0
  5. package/dist/index.d.ts +11 -0
  6. package/dist/index.js +12 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/qti-extended-jsx.d.ts +1894 -0
  9. package/dist/qti-extended-jsx.js +1 -0
  10. package/dist/register.d.ts +1 -0
  11. package/dist/register.js +7 -0
  12. package/dist/register.js.map +1 -0
  13. package/dist/test-bookmark/test-bookmark.d.ts +45 -0
  14. package/dist/test-bookmark/test-bookmark.js +136 -0
  15. package/dist/test-bookmark/test-bookmark.js.map +1 -0
  16. package/dist/test-character-sheet/test-character-sheet.d.ts +46 -0
  17. package/dist/test-character-sheet/test-character-sheet.js +259 -0
  18. package/dist/test-character-sheet/test-character-sheet.js.map +1 -0
  19. package/dist/test-item-link/test-item-link.d.ts +13 -0
  20. package/dist/test-item-link/test-item-link.js +28 -0
  21. package/dist/test-item-link/test-item-link.js.map +1 -0
  22. package/dist/test-lock/test-lock.d.ts +72 -0
  23. package/dist/test-lock/test-lock.js +242 -0
  24. package/dist/test-lock/test-lock.js.map +1 -0
  25. package/dist/test-print-context/test-print-context.d.ts +11 -0
  26. package/dist/test-print-context/test-print-context.js +20 -0
  27. package/dist/test-print-context/test-print-context.js.map +1 -0
  28. package/dist/test-print-item-variables/test-print-item-variables.d.ts +17 -0
  29. package/dist/test-print-item-variables/test-print-item-variables.js +95 -0
  30. package/dist/test-print-item-variables/test-print-item-variables.js.map +1 -0
  31. package/dist/test-print-state/test-print-state.d.ts +29 -0
  32. package/dist/test-print-state/test-print-state.js +101 -0
  33. package/dist/test-print-state/test-print-state.js.map +1 -0
  34. package/dist/test-scoring-buttons/test-scoring-buttons.d.ts +19 -0
  35. package/dist/test-scoring-buttons/test-scoring-buttons.js +95 -0
  36. package/dist/test-scoring-buttons/test-scoring-buttons.js.map +1 -0
  37. package/dist/test-scoring-feedback/test-scoring-feedback.d.ts +13 -0
  38. package/dist/test-scoring-feedback/test-scoring-feedback.js +54 -0
  39. package/dist/test-scoring-feedback/test-scoring-feedback.js.map +1 -0
  40. package/dist/test-section-link/test-section-link.d.ts +13 -0
  41. package/dist/test-section-link/test-section-link.js +28 -0
  42. package/dist/test-section-link/test-section-link.js.map +1 -0
  43. package/dist/test-stamp/test-stamp.d.ts +29 -0
  44. package/dist/test-stamp/test-stamp.js +105 -0
  45. package/dist/test-stamp/test-stamp.js.map +1 -0
  46. package/dist/test-view-toggle/test-view-toggle.d.ts +16 -0
  47. package/dist/test-view-toggle/test-view-toggle.js +49 -0
  48. package/dist/test-view-toggle/test-view-toggle.js.map +1 -0
  49. package/dist/test-view-toggle/test-view.d.ts +20 -0
  50. package/dist/test-view-toggle/test-view.js +73 -0
  51. package/dist/test-view-toggle/test-view.js.map +1 -0
  52. package/dist/test-zoom/test-zoom.d.ts +75 -0
  53. package/dist/test-zoom/test-zoom.js +158 -0
  54. package/dist/test-zoom/test-zoom.js.map +1 -0
  55. package/dist/tts/elements.d.ts +28 -0
  56. package/dist/tts/elements.js +14 -0
  57. package/dist/tts/elements.js.map +1 -0
  58. package/dist/tts/test-item-to-speech.d.ts +260 -0
  59. package/dist/tts/test-item-to-speech.js +1091 -0
  60. package/dist/tts/test-item-to-speech.js.map +1 -0
  61. package/package.json +65 -3
  62. package/README.md +0 -3
@@ -0,0 +1,1894 @@
1
+ import type {
2
+ TestBookmark,
3
+ bookmarkedItems,
4
+ TestCharacterSheet,
5
+ TestItemLink,
6
+ TestLock,
7
+ lockState,
8
+ TestPrintContext,
9
+ TestPrintVariables,
10
+ formatVariableValue,
11
+ TestPrintState,
12
+ TestScoringButtons,
13
+ TestScoringFeedback,
14
+ TestSectionLink,
15
+ TestStamp,
16
+ TestView,
17
+ TestViewToggle,
18
+ TestZoomReset,
19
+ TestZoomOut,
20
+ TestZoomIn,
21
+ zoomLevel,
22
+ zoomElements,
23
+ TestTtsStop,
24
+ TestTtsResume,
25
+ TestTtsPrev,
26
+ TestTtsPlay,
27
+ TestTtsPick,
28
+ TestTtsPause,
29
+ TestTtsNext,
30
+ TestItemToSpeech,
31
+ SpeechState,
32
+ ttsContext,
33
+ } from "./index.js";
34
+
35
+ /**
36
+ * This type can be used to create scoped tags for your components.
37
+ *
38
+ * Usage:
39
+ *
40
+ * ```ts
41
+ * import type { ScopedElements } from "path/to/library/jsx-integration";
42
+ *
43
+ * declare module "my-library" {
44
+ * namespace JSX {
45
+ * interface IntrinsicElements
46
+ * extends ScopedElements<'test-', ''> {}
47
+ * }
48
+ * }
49
+ * ```
50
+ *
51
+ * @deprecated Runtime scoped elements result in duplicate types and can confusing for developers. It is recommended to use the `prefix` and `suffix` options to generate new types instead.
52
+ */
53
+ export type ScopedElements<
54
+ Prefix extends string = "",
55
+ Suffix extends string = "",
56
+ > = {
57
+ [Key in keyof CustomElements as `${Prefix}${Key}${Suffix}`]: CustomElements[Key];
58
+ };
59
+
60
+ type BaseProps<T extends HTMLElement> = {
61
+ /** Content added between the opening and closing tags of the element */
62
+ children?: any | undefined;
63
+ /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
64
+ class?: string | undefined;
65
+ /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
66
+ className?: string | undefined;
67
+ /** Takes an object where the key is the class name(s) and the value is a boolean expression. When true, the class is applied, and when false, it is removed. */
68
+ classList?: Record<string, boolean | undefined> | undefined;
69
+ /** Specifies the text direction of the element. */
70
+ dir?: "ltr" | "rtl" | undefined;
71
+ /** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
72
+ exportparts?: string | undefined;
73
+ /** For <label> and <output>, lets you associate the label with some control. */
74
+ htmlFor?: string | undefined;
75
+ /** Specifies whether the element should be hidden. */
76
+ hidden?: boolean | string | undefined;
77
+ /** A unique identifier for the element. */
78
+ id?: string | undefined;
79
+ /** Keys tell React which array item each component corresponds to */
80
+ key?: string | number | undefined;
81
+ /** Specifies the language of the element. */
82
+ lang?: string | undefined;
83
+ /** Defines the element's semantic role for accessibility APIs. */
84
+ role?: string | undefined;
85
+ /** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
86
+ part?: string | undefined;
87
+ /** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
88
+ ref?: (T | ((e: T) => void) | { current: T | null } | null) | undefined;
89
+ /** Adds a reference for a custom element slot */
90
+ slot?: string | undefined;
91
+ /** Prop for setting inline styles */
92
+ style?: Record<string, string | number> | undefined;
93
+ /** Overrides the default Tab button behavior. Avoid using values other than -1 and 0. */
94
+ tabIndex?: number | undefined;
95
+ /** Specifies the tooltip text for the element. */
96
+ title?: string | undefined;
97
+ /** Passing 'no' excludes the element content from being translated. */
98
+ translate?: "yes" | "no" | undefined;
99
+ /** The popover global attribute is used to designate an element as a popover element. */
100
+ popover?: "auto" | "hint" | "manual" | undefined;
101
+ /** Turns an element element into a popover control button; takes the ID of the popover element to control as its value. */
102
+ popovertarget?: "top" | "bottom" | "left" | "right" | "auto" | undefined;
103
+ /** Specifies the action to be performed on a popover element being controlled by a control element. */
104
+ popovertargetaction?: "show" | "hide" | "toggle" | undefined;
105
+ };
106
+
107
+ type BaseEvents = {};
108
+
109
+ export type TestBookmarkProps = {
110
+ /** The item-ref identifier this button marks; without it, the item it is stamped into, or else the one on screen. */
111
+ item?: TestBookmark["item"] | undefined;
112
+ /** Reflected: the item on screen is bookmarked. */
113
+ bookmarked?: TestBookmark["bookmarked"] | undefined;
114
+ /** Reflected: there is no item on screen. */
115
+ disabled?: TestBookmark["disabled"] | undefined;
116
+ };
117
+
118
+ export type TestBookmarkSolidJsProps = {
119
+ /** The item-ref identifier this button marks; without it, the item it is stamped into, or else the one on screen. */
120
+ "prop:item"?: TestBookmark["item"] | undefined;
121
+ /** Reflected: the item on screen is bookmarked. */
122
+ "prop:bookmarked"?: TestBookmark["bookmarked"] | undefined;
123
+ /** Reflected: there is no item on screen. */
124
+ "prop:disabled"?: TestBookmark["disabled"] | undefined;
125
+
126
+ /** Set the innerHTML of the element */
127
+ innerHTML?: string | undefined;
128
+ /** Set the textContent of the element */
129
+ textContent?: string | number | undefined;
130
+ };
131
+
132
+ export type TestCharacterSheetProps = {
133
+ /** The characters of the sheet, separated by spaces. */
134
+ characters?: TestCharacterSheet["characters"] | undefined;
135
+ /** Reflected: the sheet is open. */
136
+ open?: TestCharacterSheet["open"] | undefined;
137
+ /** Reflected: no answer field has had focus yet. */
138
+ disabled?: TestCharacterSheet["disabled"] | undefined;
139
+ };
140
+
141
+ export type TestCharacterSheetSolidJsProps = {
142
+ /** The characters of the sheet, separated by spaces. */
143
+ "prop:characters"?: TestCharacterSheet["characters"] | undefined;
144
+ /** Reflected: the sheet is open. */
145
+ "prop:open"?: TestCharacterSheet["open"] | undefined;
146
+ /** Reflected: no answer field has had focus yet. */
147
+ "prop:disabled"?: TestCharacterSheet["disabled"] | undefined;
148
+
149
+ /** Set the innerHTML of the element */
150
+ innerHTML?: string | undefined;
151
+ /** Set the textContent of the element */
152
+ textContent?: string | number | undefined;
153
+ };
154
+
155
+ export type TestItemLinkProps = {
156
+ /** */
157
+ "item-id"?: TestItemLink["itemId"] | undefined;
158
+ /** */
159
+ itemId?: TestItemLink["itemId"] | undefined;
160
+ };
161
+
162
+ export type TestItemLinkSolidJsProps = {
163
+ /** */
164
+ "attr:item-id"?: TestItemLink["itemId"] | undefined;
165
+ /** */
166
+ "prop:itemId"?: TestItemLink["itemId"] | undefined;
167
+
168
+ /** Set the innerHTML of the element */
169
+ innerHTML?: string | undefined;
170
+ /** Set the textContent of the element */
171
+ textContent?: string | number | undefined;
172
+ };
173
+
174
+ export type TestLockProps = {
175
+ /** The code that unlocks the test; without it only `unlock()` does. */
176
+ code?: TestLock["code"] | undefined;
177
+ /** Reflected: the test is locked. */
178
+ locked?: TestLock["locked"] | undefined;
179
+ /** The label of the code field. */
180
+ "code-label"?: TestLock["codeLabel"] | undefined;
181
+ /** The label of the code field. */
182
+ codeLabel?: TestLock["codeLabel"] | undefined;
183
+ /** The label of the unlock button. */
184
+ "unlock-label"?: TestLock["unlockLabel"] | undefined;
185
+ /** The label of the unlock button. */
186
+ unlockLabel?: TestLock["unlockLabel"] | undefined;
187
+ /** The message for a wrong code. */
188
+ "wrong-code-label"?: TestLock["wrongCodeLabel"] | undefined;
189
+ /** The message for a wrong code. */
190
+ wrongCodeLabel?: TestLock["wrongCodeLabel"] | undefined;
191
+
192
+ /** The test was locked (also when a restored state is locked). */
193
+ onlock?: ((e: Event) => void) | undefined;
194
+ /** The test was unlocked. */
195
+ onunlock?: ((e: Event) => void) | undefined;
196
+ };
197
+
198
+ export type TestLockSolidJsProps = {
199
+ /** The code that unlocks the test; without it only `unlock()` does. */
200
+ "prop:code"?: TestLock["code"] | undefined;
201
+ /** Reflected: the test is locked. */
202
+ "prop:locked"?: TestLock["locked"] | undefined;
203
+ /** The label of the code field. */
204
+ "attr:code-label"?: TestLock["codeLabel"] | undefined;
205
+ /** The label of the code field. */
206
+ "prop:codeLabel"?: TestLock["codeLabel"] | undefined;
207
+ /** The label of the unlock button. */
208
+ "attr:unlock-label"?: TestLock["unlockLabel"] | undefined;
209
+ /** The label of the unlock button. */
210
+ "prop:unlockLabel"?: TestLock["unlockLabel"] | undefined;
211
+ /** The message for a wrong code. */
212
+ "attr:wrong-code-label"?: TestLock["wrongCodeLabel"] | undefined;
213
+ /** The message for a wrong code. */
214
+ "prop:wrongCodeLabel"?: TestLock["wrongCodeLabel"] | undefined;
215
+ /** The test was locked (also when a restored state is locked). */
216
+ "on:lock"?: ((e: Event) => void) | undefined;
217
+ /** The test was unlocked. */
218
+ "on:unlock"?: ((e: Event) => void) | undefined;
219
+
220
+ /** Set the innerHTML of the element */
221
+ innerHTML?: string | undefined;
222
+ /** Set the textContent of the element */
223
+ textContent?: string | number | undefined;
224
+ };
225
+
226
+ export type TestPrintContextProps = {
227
+ /** */
228
+ computedContext?: TestPrintContext["computedContext"] | undefined;
229
+ };
230
+
231
+ export type TestPrintContextSolidJsProps = {
232
+ /** */
233
+ "prop:computedContext"?: TestPrintContext["computedContext"] | undefined;
234
+
235
+ /** Set the innerHTML of the element */
236
+ innerHTML?: string | undefined;
237
+ /** Set the textContent of the element */
238
+ textContent?: string | number | undefined;
239
+ };
240
+
241
+ export type TestPrintVariablesProps = {
242
+ /** */
243
+ computedContext?: TestPrintVariables["computedContext"] | undefined;
244
+ };
245
+
246
+ export type TestPrintVariablesSolidJsProps = {
247
+ /** */
248
+ "prop:computedContext"?: TestPrintVariables["computedContext"] | undefined;
249
+
250
+ /** Set the innerHTML of the element */
251
+ innerHTML?: string | undefined;
252
+ /** Set the textContent of the element */
253
+ textContent?: string | number | undefined;
254
+ };
255
+
256
+ export type TestPrintStateProps = {};
257
+
258
+ export type TestPrintStateSolidJsProps = {
259
+ /** Set the innerHTML of the element */
260
+ innerHTML?: string | undefined;
261
+ /** Set the textContent of the element */
262
+ textContent?: string | number | undefined;
263
+ };
264
+
265
+ export type TestScoringButtonsProps = {
266
+ /** */
267
+ view?: TestScoringButtons["view"] | undefined;
268
+ /** */
269
+ disabled?: TestScoringButtons["disabled"] | undefined;
270
+ /** */
271
+ myTemplate?: TestScoringButtons["myTemplate"] | undefined;
272
+ };
273
+
274
+ export type TestScoringButtonsSolidJsProps = {
275
+ /** */
276
+ "prop:view"?: TestScoringButtons["view"] | undefined;
277
+ /** */
278
+ "prop:disabled"?: TestScoringButtons["disabled"] | undefined;
279
+ /** */
280
+ "prop:myTemplate"?: TestScoringButtons["myTemplate"] | undefined;
281
+
282
+ /** Set the innerHTML of the element */
283
+ innerHTML?: string | undefined;
284
+ /** Set the textContent of the element */
285
+ textContent?: string | number | undefined;
286
+ };
287
+
288
+ export type TestScoringFeedbackProps = {
289
+ /** */
290
+ view?: TestScoringFeedback["view"] | undefined;
291
+ };
292
+
293
+ export type TestScoringFeedbackSolidJsProps = {
294
+ /** */
295
+ "prop:view"?: TestScoringFeedback["view"] | undefined;
296
+
297
+ /** Set the innerHTML of the element */
298
+ innerHTML?: string | undefined;
299
+ /** Set the textContent of the element */
300
+ textContent?: string | number | undefined;
301
+ };
302
+
303
+ export type TestSectionLinkProps = {
304
+ /** */
305
+ "section-id"?: TestSectionLink["sectionId"] | undefined;
306
+ /** */
307
+ sectionId?: TestSectionLink["sectionId"] | undefined;
308
+ };
309
+
310
+ export type TestSectionLinkSolidJsProps = {
311
+ /** */
312
+ "attr:section-id"?: TestSectionLink["sectionId"] | undefined;
313
+ /** */
314
+ "prop:sectionId"?: TestSectionLink["sectionId"] | undefined;
315
+
316
+ /** Set the innerHTML of the element */
317
+ innerHTML?: string | undefined;
318
+ /** Set the textContent of the element */
319
+ textContent?: string | number | undefined;
320
+ };
321
+
322
+ export type TestStampProps = {
323
+ /** Indicates whether the component is in debug mode.
324
+ When set to `true`, the available objects and properties (i.e.: stampContext) is displayed. */
325
+ debug?: TestStamp["debug"] | undefined;
326
+ /** */
327
+ myTemplate?: TestStamp["myTemplate"] | undefined;
328
+
329
+ /** */
330
+ "onqti-stamp-context-updated"?: ((e: CustomEvent) => void) | undefined;
331
+ };
332
+
333
+ export type TestStampSolidJsProps = {
334
+ /** Indicates whether the component is in debug mode.
335
+ When set to `true`, the available objects and properties (i.e.: stampContext) is displayed. */
336
+ "prop:debug"?: TestStamp["debug"] | undefined;
337
+ /** */
338
+ "prop:myTemplate"?: TestStamp["myTemplate"] | undefined;
339
+ /** */
340
+ "on:qti-stamp-context-updated"?: ((e: CustomEvent) => void) | undefined;
341
+
342
+ /** Set the innerHTML of the element */
343
+ innerHTML?: string | undefined;
344
+ /** Set the textContent of the element */
345
+ textContent?: string | number | undefined;
346
+ };
347
+
348
+ export type TestViewProps = {
349
+ /** label accompanying the select view dropdown */
350
+ label?: TestView["label"] | undefined;
351
+ /** The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor'] */
352
+ "view-options"?: TestView["viewOptions"] | undefined;
353
+ /** The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor'] */
354
+ viewOptions?: TestView["viewOptions"] | undefined;
355
+ };
356
+
357
+ export type TestViewSolidJsProps = {
358
+ /** label accompanying the select view dropdown */
359
+ "prop:label"?: TestView["label"] | undefined;
360
+ /** The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor'] */
361
+ "attr:view-options"?: TestView["viewOptions"] | undefined;
362
+ /** The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor'] */
363
+ "prop:viewOptions"?: TestView["viewOptions"] | undefined;
364
+
365
+ /** Set the innerHTML of the element */
366
+ innerHTML?: string | undefined;
367
+ /** Set the textContent of the element */
368
+ textContent?: string | number | undefined;
369
+ };
370
+
371
+ export type TestViewToggleProps = {
372
+ /** */
373
+ myTemplate?: TestViewToggle["myTemplate"] | undefined;
374
+ };
375
+
376
+ export type TestViewToggleSolidJsProps = {
377
+ /** */
378
+ "prop:myTemplate"?: TestViewToggle["myTemplate"] | undefined;
379
+
380
+ /** Set the innerHTML of the element */
381
+ innerHTML?: string | undefined;
382
+ /** Set the textContent of the element */
383
+ textContent?: string | number | undefined;
384
+ };
385
+
386
+ export type TestZoomInProps = {
387
+ /** How much one press adds to the level (default 0.1). @attr max - The largest level (default 2). */
388
+ step?: TestZoomIn["step"] | undefined;
389
+ /** The smallest level `zoom-out` reaches. */
390
+ min?: TestZoomIn["min"] | undefined;
391
+ /** The largest level `zoom-in` reaches. */
392
+ max?: TestZoomIn["max"] | undefined;
393
+ /** */
394
+ disabled?: TestZoomIn["disabled"] | undefined;
395
+ };
396
+
397
+ export type TestZoomInSolidJsProps = {
398
+ /** How much one press adds to the level (default 0.1). @attr max - The largest level (default 2). */
399
+ "prop:step"?: TestZoomIn["step"] | undefined;
400
+ /** The smallest level `zoom-out` reaches. */
401
+ "prop:min"?: TestZoomIn["min"] | undefined;
402
+ /** The largest level `zoom-in` reaches. */
403
+ "prop:max"?: TestZoomIn["max"] | undefined;
404
+ /** */
405
+ "prop:disabled"?: TestZoomIn["disabled"] | undefined;
406
+
407
+ /** Set the innerHTML of the element */
408
+ innerHTML?: string | undefined;
409
+ /** Set the textContent of the element */
410
+ textContent?: string | number | undefined;
411
+ };
412
+
413
+ export type TestZoomOutProps = {
414
+ /** How much one press takes off the level (default 0.1). @attr min - The smallest level (default 0.5). */
415
+ step?: TestZoomOut["step"] | undefined;
416
+ /** The smallest level `zoom-out` reaches. */
417
+ min?: TestZoomOut["min"] | undefined;
418
+ /** The largest level `zoom-in` reaches. */
419
+ max?: TestZoomOut["max"] | undefined;
420
+ /** */
421
+ disabled?: TestZoomOut["disabled"] | undefined;
422
+ };
423
+
424
+ export type TestZoomOutSolidJsProps = {
425
+ /** How much one press takes off the level (default 0.1). @attr min - The smallest level (default 0.5). */
426
+ "prop:step"?: TestZoomOut["step"] | undefined;
427
+ /** The smallest level `zoom-out` reaches. */
428
+ "prop:min"?: TestZoomOut["min"] | undefined;
429
+ /** The largest level `zoom-in` reaches. */
430
+ "prop:max"?: TestZoomOut["max"] | undefined;
431
+ /** */
432
+ "prop:disabled"?: TestZoomOut["disabled"] | undefined;
433
+
434
+ /** Set the innerHTML of the element */
435
+ innerHTML?: string | undefined;
436
+ /** Set the textContent of the element */
437
+ textContent?: string | number | undefined;
438
+ };
439
+
440
+ export type TestZoomResetProps = {
441
+ /** How much one press changes the level. */
442
+ step?: TestZoomReset["step"] | undefined;
443
+ /** The smallest level `zoom-out` reaches. */
444
+ min?: TestZoomReset["min"] | undefined;
445
+ /** The largest level `zoom-in` reaches. */
446
+ max?: TestZoomReset["max"] | undefined;
447
+ /** */
448
+ disabled?: TestZoomReset["disabled"] | undefined;
449
+ };
450
+
451
+ export type TestZoomResetSolidJsProps = {
452
+ /** How much one press changes the level. */
453
+ "prop:step"?: TestZoomReset["step"] | undefined;
454
+ /** The smallest level `zoom-out` reaches. */
455
+ "prop:min"?: TestZoomReset["min"] | undefined;
456
+ /** The largest level `zoom-in` reaches. */
457
+ "prop:max"?: TestZoomReset["max"] | undefined;
458
+ /** */
459
+ "prop:disabled"?: TestZoomReset["disabled"] | undefined;
460
+
461
+ /** Set the innerHTML of the element */
462
+ innerHTML?: string | undefined;
463
+ /** Set the textContent of the element */
464
+ textContent?: string | number | undefined;
465
+ };
466
+
467
+ export type TestItemToSpeechProps = {
468
+ /** Fallback language when neither the item content nor the document declares one. */
469
+ language?: TestItemToSpeech["language"] | undefined;
470
+ /** */
471
+ _ttsContext?: TestItemToSpeech["_ttsContext"] | undefined;
472
+ };
473
+
474
+ export type TestItemToSpeechSolidJsProps = {
475
+ /** Fallback language when neither the item content nor the document declares one. */
476
+ "prop:language"?: TestItemToSpeech["language"] | undefined;
477
+ /** */
478
+ "prop:_ttsContext"?: TestItemToSpeech["_ttsContext"] | undefined;
479
+
480
+ /** Set the innerHTML of the element */
481
+ innerHTML?: string | undefined;
482
+ /** Set the textContent of the element */
483
+ textContent?: string | number | undefined;
484
+ };
485
+
486
+ export type TestTtsPlayProps = {
487
+ /** Accessible name of the button while speech is playing; see `label`. */
488
+ "pause-label"?: TestTtsPlay["pauseLabel"] | undefined;
489
+ /** Accessible name of the button while speech is playing; see `label`. */
490
+ pauseLabel?: TestTtsPlay["pauseLabel"] | undefined;
491
+ /** Accessible name of the button. Without it the default icon carries an English name, and
492
+ slotted content names the button by its text; set it when you slot an icon of your own,
493
+ which has no text to be named by. */
494
+ label?: TestTtsPlay["label"] | undefined;
495
+ };
496
+
497
+ export type TestTtsPlaySolidJsProps = {
498
+ /** Accessible name of the button while speech is playing; see `label`. */
499
+ "attr:pause-label"?: TestTtsPlay["pauseLabel"] | undefined;
500
+ /** Accessible name of the button while speech is playing; see `label`. */
501
+ "prop:pauseLabel"?: TestTtsPlay["pauseLabel"] | undefined;
502
+ /** Accessible name of the button. Without it the default icon carries an English name, and
503
+ slotted content names the button by its text; set it when you slot an icon of your own,
504
+ which has no text to be named by. */
505
+ "prop:label"?: TestTtsPlay["label"] | undefined;
506
+
507
+ /** Set the innerHTML of the element */
508
+ innerHTML?: string | undefined;
509
+ /** Set the textContent of the element */
510
+ textContent?: string | number | undefined;
511
+ };
512
+
513
+ export type TestTtsPauseProps = {
514
+ /** Accessible name of the button. Without it the default icon carries an English name, and
515
+ slotted content names the button by its text; set it when you slot an icon of your own,
516
+ which has no text to be named by. */
517
+ label?: TestTtsPause["label"] | undefined;
518
+ };
519
+
520
+ export type TestTtsPauseSolidJsProps = {
521
+ /** Accessible name of the button. Without it the default icon carries an English name, and
522
+ slotted content names the button by its text; set it when you slot an icon of your own,
523
+ which has no text to be named by. */
524
+ "prop:label"?: TestTtsPause["label"] | undefined;
525
+
526
+ /** Set the innerHTML of the element */
527
+ innerHTML?: string | undefined;
528
+ /** Set the textContent of the element */
529
+ textContent?: string | number | undefined;
530
+ };
531
+
532
+ export type TestTtsResumeProps = {
533
+ /** Accessible name of the button. Without it the default icon carries an English name, and
534
+ slotted content names the button by its text; set it when you slot an icon of your own,
535
+ which has no text to be named by. */
536
+ label?: TestTtsResume["label"] | undefined;
537
+ };
538
+
539
+ export type TestTtsResumeSolidJsProps = {
540
+ /** Accessible name of the button. Without it the default icon carries an English name, and
541
+ slotted content names the button by its text; set it when you slot an icon of your own,
542
+ which has no text to be named by. */
543
+ "prop:label"?: TestTtsResume["label"] | undefined;
544
+
545
+ /** Set the innerHTML of the element */
546
+ innerHTML?: string | undefined;
547
+ /** Set the textContent of the element */
548
+ textContent?: string | number | undefined;
549
+ };
550
+
551
+ export type TestTtsStopProps = {
552
+ /** Accessible name of the button. Without it the default icon carries an English name, and
553
+ slotted content names the button by its text; set it when you slot an icon of your own,
554
+ which has no text to be named by. */
555
+ label?: TestTtsStop["label"] | undefined;
556
+ };
557
+
558
+ export type TestTtsStopSolidJsProps = {
559
+ /** Accessible name of the button. Without it the default icon carries an English name, and
560
+ slotted content names the button by its text; set it when you slot an icon of your own,
561
+ which has no text to be named by. */
562
+ "prop:label"?: TestTtsStop["label"] | undefined;
563
+
564
+ /** Set the innerHTML of the element */
565
+ innerHTML?: string | undefined;
566
+ /** Set the textContent of the element */
567
+ textContent?: string | number | undefined;
568
+ };
569
+
570
+ export type TestTtsPrevProps = {
571
+ /** Accessible name of the button. Without it the default icon carries an English name, and
572
+ slotted content names the button by its text; set it when you slot an icon of your own,
573
+ which has no text to be named by. */
574
+ label?: TestTtsPrev["label"] | undefined;
575
+ };
576
+
577
+ export type TestTtsPrevSolidJsProps = {
578
+ /** Accessible name of the button. Without it the default icon carries an English name, and
579
+ slotted content names the button by its text; set it when you slot an icon of your own,
580
+ which has no text to be named by. */
581
+ "prop:label"?: TestTtsPrev["label"] | undefined;
582
+
583
+ /** Set the innerHTML of the element */
584
+ innerHTML?: string | undefined;
585
+ /** Set the textContent of the element */
586
+ textContent?: string | number | undefined;
587
+ };
588
+
589
+ export type TestTtsNextProps = {
590
+ /** Accessible name of the button. Without it the default icon carries an English name, and
591
+ slotted content names the button by its text; set it when you slot an icon of your own,
592
+ which has no text to be named by. */
593
+ label?: TestTtsNext["label"] | undefined;
594
+ };
595
+
596
+ export type TestTtsNextSolidJsProps = {
597
+ /** Accessible name of the button. Without it the default icon carries an English name, and
598
+ slotted content names the button by its text; set it when you slot an icon of your own,
599
+ which has no text to be named by. */
600
+ "prop:label"?: TestTtsNext["label"] | undefined;
601
+
602
+ /** Set the innerHTML of the element */
603
+ innerHTML?: string | undefined;
604
+ /** Set the textContent of the element */
605
+ textContent?: string | number | undefined;
606
+ };
607
+
608
+ export type TestTtsPickProps = {
609
+ /** Accessible name of the button. Without it the default icon carries an English name, and
610
+ slotted content names the button by its text; set it when you slot an icon of your own,
611
+ which has no text to be named by. */
612
+ label?: TestTtsPick["label"] | undefined;
613
+ };
614
+
615
+ export type TestTtsPickSolidJsProps = {
616
+ /** Accessible name of the button. Without it the default icon carries an English name, and
617
+ slotted content names the button by its text; set it when you slot an icon of your own,
618
+ which has no text to be named by. */
619
+ "prop:label"?: TestTtsPick["label"] | undefined;
620
+
621
+ /** Set the innerHTML of the element */
622
+ innerHTML?: string | undefined;
623
+ /** Set the textContent of the element */
624
+ textContent?: string | number | undefined;
625
+ };
626
+
627
+ export type CustomElements = {
628
+ /**
629
+ * A toggle that marks the item on screen to come back to. The marks live in the test's state under
630
+ * `bookmarks` (`session.plugins.bookmarks`), so a host that stores `state` stores them, and a
631
+ * reloaded test shows them again.
632
+ *
633
+ * Put it inside `<test-navigation>`, either in the toolbar, where it marks the item on screen, or in
634
+ * the `<template item-ref>`, where each item gets its own and it marks that item. It is a button
635
+ * (`role="button"`, `aria-pressed`) and reflects `bookmarked` on the host for styling; its content is
636
+ * the label. In the toolbar it is `disabled` while no item is on screen. A host's own navigation reads
637
+ * the marks with `bookmarkedItems(computedContext)`.
638
+ *
639
+ * Give it an `item` (an item-ref identifier) to mark that item instead, wherever the button sits: in a
640
+ * stamp template that lists the items of a section, `<test-bookmark item="{{ item.identifier }}">`
641
+ * puts a button next to each one.
642
+ *
643
+ * ## Attributes & Properties
644
+ *
645
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
646
+ *
647
+ * - `item`: The item-ref identifier this button marks; without it, the item it is stamped into, or else the one on screen.
648
+ * - `bookmarked`: Reflected: the item on screen is bookmarked.
649
+ * - `disabled`: Reflected: there is no item on screen.
650
+ *
651
+ * ## Slots
652
+ *
653
+ * Areas where markup can be added to the component.
654
+ *
655
+ * - `(default)`: The label.
656
+ */
657
+ "test-bookmark": Partial<
658
+ TestBookmarkProps & BaseProps<TestBookmark> & BaseEvents
659
+ >;
660
+
661
+ /**
662
+ * The character sheet plugin: a button that opens a sheet of characters that are not on the keyboard
663
+ * (`é`, `€`, `²`, …) and types the one the candidate picks into the answer field they were writing in.
664
+ *
665
+ * It follows the keyboard focus: the last text field or text area of a rendered item that had focus is
666
+ * the one it types into, so a candidate writes, opens the sheet, picks a character and goes on writing.
667
+ * Until an answer field has had focus it is `disabled`. A character goes in at the caret, replacing a
668
+ * selection, and the field gets a `change` event, so the interaction records the new answer.
669
+ *
670
+ * Put it inside `<test-navigation>`. It is a button (`role="button"`, `aria-expanded`) with its content
671
+ * as the label; `characters` is the sheet, as a string with the characters separated by spaces (the
672
+ * default is a Dutch set). The sheet opens in the top layer below the button, closes on Escape, on a
673
+ * click outside it, and when another item comes on screen. Style the sheet with `::part(sheet)` and its
674
+ * keys with `::part(key)`.
675
+ *
676
+ * ## Attributes & Properties
677
+ *
678
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
679
+ *
680
+ * - `characters`: The characters of the sheet, separated by spaces.
681
+ * - `open`: Reflected: the sheet is open.
682
+ * - `disabled`: Reflected: no answer field has had focus yet.
683
+ *
684
+ * ## Slots
685
+ *
686
+ * Areas where markup can be added to the component.
687
+ *
688
+ * - `(default)`: The label of the button.
689
+ *
690
+ * ## CSS Parts
691
+ *
692
+ * Custom selectors for styling elements within the component.
693
+ *
694
+ * - `button`: The button.
695
+ * - `sheet`: The sheet of characters.
696
+ * - `key`: One character on the sheet.
697
+ */
698
+ "test-character-sheet": Partial<
699
+ TestCharacterSheetProps & BaseProps<TestCharacterSheet> & BaseEvents
700
+ >;
701
+
702
+ /**
703
+ *
704
+ *
705
+ * ## Attributes & Properties
706
+ *
707
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
708
+ *
709
+ * - `item-id`/`itemId`: undefined
710
+ */
711
+ "test-item-link": Partial<
712
+ TestItemLinkProps & BaseProps<TestItemLink> & BaseEvents
713
+ >;
714
+
715
+ /**
716
+ * Locks the test when the candidate leaves the page: another tab or window, or the page hidden. A
717
+ * modal covers the test until it is unlocked, so the candidate cannot go on answering. It is a
718
+ * deterrent for a supervised session, not security: the page is the candidate's.
719
+ *
720
+ * The lock lives in the test's state under `lock` (`session.plugins.lock`, `{ locked, times }`), so a
721
+ * host that stores `state` stores it: reloading the page does not escape it, and `times` tells a
722
+ * proctor how often the candidate left. `lockState(computedContext)` reads it.
723
+ *
724
+ * Unlocking: with a `code`, the modal asks for it, and the right code unlocks. The code is in the page
725
+ * for anyone who opens the developer tools, so it keeps a candidate from simply carrying on, nothing
726
+ * more. Without a `code`, the modal only shows its message and the host unlocks, with `unlock()` (for
727
+ * example after a proctor's action on another screen).
728
+ *
729
+ * Focus moving into an iframe (a portable custom interaction, a video) is not leaving the page.
730
+ *
731
+ * Put it inside `<test-navigation>`; it shows nothing until the test is locked. The modal's message
732
+ * is the element's content.
733
+ *
734
+ * ## Attributes & Properties
735
+ *
736
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
737
+ *
738
+ * - `code`: The code that unlocks the test; without it only `unlock()` does.
739
+ * - `locked`: Reflected: the test is locked.
740
+ * - `code-label`/`codeLabel`: The label of the code field.
741
+ * - `unlock-label`/`unlockLabel`: The label of the unlock button.
742
+ * - `wrong-code-label`/`wrongCodeLabel`: The message for a wrong code.
743
+ *
744
+ * ## Events
745
+ *
746
+ * Events that will be emitted by the component.
747
+ *
748
+ * - `lock`: The test was locked (also when a restored state is locked).
749
+ * - `unlock`: The test was unlocked.
750
+ *
751
+ * ## Slots
752
+ *
753
+ * Areas where markup can be added to the component.
754
+ *
755
+ * - `(default)`: The message in the modal.
756
+ *
757
+ * ## Methods
758
+ *
759
+ * Methods that can be called to access component functionality.
760
+ *
761
+ * - `unlock() => void`: Unlocks the test, whatever the code: for a host that unlocks from its own screen.
762
+ *
763
+ * ## CSS Parts
764
+ *
765
+ * Custom selectors for styling elements within the component.
766
+ *
767
+ * - `dialog`: The modal.
768
+ * - `notice`: The message. (Not `message`: the theme paints that part as a validation message.)
769
+ * - `form`: The code field and button.
770
+ * - `input`: The code field.
771
+ * - `button`: The unlock button.
772
+ * - `error`: The message for a wrong code.
773
+ */
774
+ "test-lock": Partial<TestLockProps & BaseProps<TestLock> & BaseEvents>;
775
+
776
+ /**
777
+ *
778
+ *
779
+ * ## Attributes & Properties
780
+ *
781
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
782
+ *
783
+ * - `computedContext`: undefined (property only)
784
+ */
785
+ "test-print-context": Partial<
786
+ TestPrintContextProps & BaseProps<TestPrintContext> & BaseEvents
787
+ >;
788
+
789
+ /**
790
+ *
791
+ *
792
+ * ## Attributes & Properties
793
+ *
794
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
795
+ *
796
+ * - `computedContext`: undefined (property only)
797
+ */
798
+ "test-print-item-variables": Partial<
799
+ TestPrintVariablesProps & BaseProps<TestPrintVariables> & BaseEvents
800
+ >;
801
+
802
+ /**
803
+ * Shows the test's state (`qtiTest.state`) as a tree you can fold open and shut. It shows the state
804
+ * each `qc-test-state-changed` of its own test carries: the test sends one once it is ready and one on
805
+ * every change, so place it in the page from the start. A debug helper: drop it anywhere inside
806
+ * `<qti-test>`.
807
+ *
808
+ * The first two levels start open. A list entry with an `identifier` (an item, a variable) is labelled
809
+ * by it. The element only lays out the tree; give it a font, colour and height from the page.
810
+ *
811
+ * ## CSS Parts
812
+ *
813
+ * Custom selectors for styling elements within the component.
814
+ *
815
+ * - `key`: the name of a field, or the label of a list entry
816
+ * - `value`: a value that is not an object or a list
817
+ * - `count`: the number of entries of a folded object or list
818
+ */
819
+ "test-print-state": Partial<
820
+ TestPrintStateProps & BaseProps<TestPrintState> & BaseEvents
821
+ >;
822
+
823
+ /**
824
+ *
825
+ *
826
+ * ## Attributes & Properties
827
+ *
828
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
829
+ *
830
+ * - `view`: undefined
831
+ * - `disabled`: undefined
832
+ * - `myTemplate`: undefined (property only)
833
+ */
834
+ "test-scoring-buttons": Partial<
835
+ TestScoringButtonsProps & BaseProps<TestScoringButtons> & BaseEvents
836
+ >;
837
+
838
+ /**
839
+ *
840
+ *
841
+ * ## Attributes & Properties
842
+ *
843
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
844
+ *
845
+ * - `view`: undefined
846
+ */
847
+ "test-scoring-feedback": Partial<
848
+ TestScoringFeedbackProps & BaseProps<TestScoringFeedback> & BaseEvents
849
+ >;
850
+
851
+ /**
852
+ *
853
+ *
854
+ * ## Attributes & Properties
855
+ *
856
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
857
+ *
858
+ * - `section-id`/`sectionId`: undefined
859
+ */
860
+ "test-section-link": Partial<
861
+ TestSectionLinkProps & BaseProps<TestSectionLink> & BaseEvents
862
+ >;
863
+
864
+ /**
865
+ * The stamp plugin: renders its `<template>` child with the state of the test (`test`,
866
+ * `activeTestpart`, `activeSection`, `activeItem`, `view`), again on every change, so a player
867
+ * can show progress or numbered navigation without writing a component.
868
+ *
869
+ * ## Attributes & Properties
870
+ *
871
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
872
+ *
873
+ * - `debug`: Indicates whether the component is in debug mode.
874
+ * When set to `true`, the available objects and properties (i.e.: stampContext) is displayed.
875
+ * - `myTemplate`: undefined (property only)
876
+ *
877
+ * ## Events
878
+ *
879
+ * Events that will be emitted by the component.
880
+ *
881
+ * - `qti-stamp-context-updated`: undefined
882
+ */
883
+ "test-stamp": Partial<TestStampProps & BaseProps<TestStamp> & BaseEvents>;
884
+
885
+ /**
886
+ *
887
+ *
888
+ * ## Attributes & Properties
889
+ *
890
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
891
+ *
892
+ * - `label`: label accompanying the select view dropdown
893
+ * - `view-options`/`viewOptions`: The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor']
894
+ */
895
+ "test-view": Partial<TestViewProps & BaseProps<TestView> & BaseEvents>;
896
+
897
+ /**
898
+ *
899
+ *
900
+ * ## Attributes & Properties
901
+ *
902
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
903
+ *
904
+ * - `myTemplate`: undefined (property only)
905
+ *
906
+ * ## Methods
907
+ *
908
+ * Methods that can be called to access component functionality.
909
+ *
910
+ * - `_switchView(view: string) => void`: undefined
911
+ */
912
+ "test-view-toggle": Partial<
913
+ TestViewToggleProps & BaseProps<TestViewToggle> & BaseEvents
914
+ >;
915
+
916
+ /**
917
+ *
918
+ *
919
+ * ## Attributes & Properties
920
+ *
921
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
922
+ *
923
+ * - `step`: How much one press adds to the level (default 0.1). @attr max - The largest level (default 2).
924
+ * - `min`: The smallest level `zoom-out` reaches.
925
+ * - `max`: The largest level `zoom-in` reaches.
926
+ * - `disabled`: undefined
927
+ */
928
+ "test-zoom-in": Partial<TestZoomInProps & BaseProps<TestZoomIn> & BaseEvents>;
929
+
930
+ /**
931
+ *
932
+ *
933
+ * ## Attributes & Properties
934
+ *
935
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
936
+ *
937
+ * - `step`: How much one press takes off the level (default 0.1). @attr min - The smallest level (default 0.5).
938
+ * - `min`: The smallest level `zoom-out` reaches.
939
+ * - `max`: The largest level `zoom-in` reaches.
940
+ * - `disabled`: undefined
941
+ */
942
+ "test-zoom-out": Partial<
943
+ TestZoomOutProps & BaseProps<TestZoomOut> & BaseEvents
944
+ >;
945
+
946
+ /**
947
+ * Back to 100%. Shows the level when it has no content of its own; never disabled, so the level always reads well.
948
+ *
949
+ * ## Attributes & Properties
950
+ *
951
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
952
+ *
953
+ * - `step`: How much one press changes the level.
954
+ * - `min`: The smallest level `zoom-out` reaches.
955
+ * - `max`: The largest level `zoom-in` reaches.
956
+ * - `disabled`: undefined
957
+ */
958
+ "test-zoom-reset": Partial<
959
+ TestZoomResetProps & BaseProps<TestZoomReset> & BaseEvents
960
+ >;
961
+
962
+ /**
963
+ * `<test-item-to-speech>` is the controller and context provider. It manages
964
+ * speech synthesis, word highlighting, and item element lookup. Compose your
965
+ * own player by placing control elements as children.
966
+ *
967
+ * ## Attributes & Properties
968
+ *
969
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
970
+ *
971
+ * - `language`: Fallback language when neither the item content nor the document declares one.
972
+ * - `_ttsContext`: undefined (property only)
973
+ *
974
+ * ## CSS States
975
+ *
976
+ * These can be used to apply styling when a component is in a given state.
977
+ *
978
+ * - `idle`: No speech active
979
+ * - `picking`: Pick mode: all reading elements highlighted, waiting for a click
980
+ * - `playing`: Speech is playing
981
+ * - `paused`: Speech is paused
982
+ */
983
+ "test-item-to-speech": Partial<
984
+ TestItemToSpeechProps & BaseProps<TestItemToSpeech> & BaseEvents
985
+ >;
986
+
987
+ /**
988
+ * Play/pause/resume toggle button — always enabled, cycles through states.
989
+ * Use named slots `play` and `pause` to customise the icons/labels independently; `label` and
990
+ * `pause-label` name the button in each state (set them when the slotted content is an icon).
991
+ *
992
+ * ## Attributes & Properties
993
+ *
994
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
995
+ *
996
+ * - `pause-label`/`pauseLabel`: Accessible name of the button while speech is playing; see `label`.
997
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
998
+ * slotted content names the button by its text; set it when you slot an icon of your own,
999
+ * which has no text to be named by.
1000
+ *
1001
+ * ## CSS Parts
1002
+ *
1003
+ * Custom selectors for styling elements within the component.
1004
+ *
1005
+ * - `button`: undefined
1006
+ *
1007
+ * ## CSS States
1008
+ *
1009
+ * These can be used to apply styling when a component is in a given state.
1010
+ *
1011
+ * - `idle`: / playing / paused
1012
+ */
1013
+ "test-tts-play": Partial<
1014
+ TestTtsPlayProps & BaseProps<TestTtsPlay> & BaseEvents
1015
+ >;
1016
+
1017
+ /**
1018
+ * Pause button — enabled only when playing.
1019
+ *
1020
+ * ## Attributes & Properties
1021
+ *
1022
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1023
+ *
1024
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
1025
+ * slotted content names the button by its text; set it when you slot an icon of your own,
1026
+ * which has no text to be named by.
1027
+ *
1028
+ * ## CSS Parts
1029
+ *
1030
+ * Custom selectors for styling elements within the component.
1031
+ *
1032
+ * - `button`: undefined
1033
+ *
1034
+ * ## CSS States
1035
+ *
1036
+ * These can be used to apply styling when a component is in a given state.
1037
+ *
1038
+ * - `idle`: / playing / paused
1039
+ */
1040
+ "test-tts-pause": Partial<
1041
+ TestTtsPauseProps & BaseProps<TestTtsPause> & BaseEvents
1042
+ >;
1043
+
1044
+ /**
1045
+ * Resume button — enabled only when paused.
1046
+ *
1047
+ * ## Attributes & Properties
1048
+ *
1049
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1050
+ *
1051
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
1052
+ * slotted content names the button by its text; set it when you slot an icon of your own,
1053
+ * which has no text to be named by.
1054
+ *
1055
+ * ## CSS Parts
1056
+ *
1057
+ * Custom selectors for styling elements within the component.
1058
+ *
1059
+ * - `button`: undefined
1060
+ *
1061
+ * ## CSS States
1062
+ *
1063
+ * These can be used to apply styling when a component is in a given state.
1064
+ *
1065
+ * - `idle`: / playing / paused
1066
+ */
1067
+ "test-tts-resume": Partial<
1068
+ TestTtsResumeProps & BaseProps<TestTtsResume> & BaseEvents
1069
+ >;
1070
+
1071
+ /**
1072
+ * Stop button — enabled when playing, paused, or in pick mode (where it leaves pick mode).
1073
+ *
1074
+ * ## Attributes & Properties
1075
+ *
1076
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1077
+ *
1078
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
1079
+ * slotted content names the button by its text; set it when you slot an icon of your own,
1080
+ * which has no text to be named by.
1081
+ *
1082
+ * ## CSS Parts
1083
+ *
1084
+ * Custom selectors for styling elements within the component.
1085
+ *
1086
+ * - `button`: undefined
1087
+ *
1088
+ * ## CSS States
1089
+ *
1090
+ * These can be used to apply styling when a component is in a given state.
1091
+ *
1092
+ * - `idle`: / playing / paused
1093
+ */
1094
+ "test-tts-stop": Partial<
1095
+ TestTtsStopProps & BaseProps<TestTtsStop> & BaseEvents
1096
+ >;
1097
+
1098
+ /**
1099
+ * Prev-element button — moves cursor to the previous reading element and pauses.
1100
+ * Disabled at the first element. Reading elements are collected lazily, so an element count
1101
+ * of 0 means "not looked yet" rather than "nothing to read": the button stays enabled and the
1102
+ * first click collects them.
1103
+ *
1104
+ * ## Attributes & Properties
1105
+ *
1106
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1107
+ *
1108
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
1109
+ * slotted content names the button by its text; set it when you slot an icon of your own,
1110
+ * which has no text to be named by.
1111
+ *
1112
+ * ## CSS Parts
1113
+ *
1114
+ * Custom selectors for styling elements within the component.
1115
+ *
1116
+ * - `button`: undefined
1117
+ *
1118
+ * ## CSS States
1119
+ *
1120
+ * These can be used to apply styling when a component is in a given state.
1121
+ *
1122
+ * - `idle`: / playing / paused
1123
+ */
1124
+ "test-tts-prev": Partial<
1125
+ TestTtsPrevProps & BaseProps<TestTtsPrev> & BaseEvents
1126
+ >;
1127
+
1128
+ /**
1129
+ * Next-element button — moves cursor to the next reading element and pauses.
1130
+ * Disabled at the last element; enabled while the elements have not been collected yet
1131
+ * (see `TestTtsPrev`).
1132
+ *
1133
+ * ## Attributes & Properties
1134
+ *
1135
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1136
+ *
1137
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
1138
+ * slotted content names the button by its text; set it when you slot an icon of your own,
1139
+ * which has no text to be named by.
1140
+ *
1141
+ * ## CSS Parts
1142
+ *
1143
+ * Custom selectors for styling elements within the component.
1144
+ *
1145
+ * - `button`: undefined
1146
+ *
1147
+ * ## CSS States
1148
+ *
1149
+ * These can be used to apply styling when a component is in a given state.
1150
+ *
1151
+ * - `idle`: / playing / paused
1152
+ */
1153
+ "test-tts-next": Partial<
1154
+ TestTtsNextProps & BaseProps<TestTtsNext> & BaseEvents
1155
+ >;
1156
+
1157
+ /**
1158
+ * Pick button — toggles pick mode on the controller: every reading element is highlighted and
1159
+ * a click on one of them starts reading from there. Reflects the mode as `:state(picking)`, and,
1160
+ * being the toggle that switched it on, as `:state(selected)`, painted through
1161
+ * `--button-selected-background-color` / `--button-selected-color`.
1162
+ *
1163
+ * ## Attributes & Properties
1164
+ *
1165
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1166
+ *
1167
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
1168
+ * slotted content names the button by its text; set it when you slot an icon of your own,
1169
+ * which has no text to be named by.
1170
+ *
1171
+ * ## CSS Parts
1172
+ *
1173
+ * Custom selectors for styling elements within the component.
1174
+ *
1175
+ * - `button`: undefined
1176
+ *
1177
+ * ## CSS States
1178
+ *
1179
+ * These can be used to apply styling when a component is in a given state.
1180
+ *
1181
+ * - `idle`: / playing / paused
1182
+ * - `picking`: undefined
1183
+ * - `selected`: This toggle is on: pick mode is active
1184
+ */
1185
+ "test-tts-pick": Partial<
1186
+ TestTtsPickProps & BaseProps<TestTtsPick> & BaseEvents
1187
+ >;
1188
+ };
1189
+
1190
+ export type CustomElementsSolidJs = {
1191
+ /**
1192
+ * A toggle that marks the item on screen to come back to. The marks live in the test's state under
1193
+ * `bookmarks` (`session.plugins.bookmarks`), so a host that stores `state` stores them, and a
1194
+ * reloaded test shows them again.
1195
+ *
1196
+ * Put it inside `<test-navigation>`, either in the toolbar, where it marks the item on screen, or in
1197
+ * the `<template item-ref>`, where each item gets its own and it marks that item. It is a button
1198
+ * (`role="button"`, `aria-pressed`) and reflects `bookmarked` on the host for styling; its content is
1199
+ * the label. In the toolbar it is `disabled` while no item is on screen. A host's own navigation reads
1200
+ * the marks with `bookmarkedItems(computedContext)`.
1201
+ *
1202
+ * Give it an `item` (an item-ref identifier) to mark that item instead, wherever the button sits: in a
1203
+ * stamp template that lists the items of a section, `<test-bookmark item="{{ item.identifier }}">`
1204
+ * puts a button next to each one.
1205
+ *
1206
+ * ## Attributes & Properties
1207
+ *
1208
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1209
+ *
1210
+ * - `item`: The item-ref identifier this button marks; without it, the item it is stamped into, or else the one on screen.
1211
+ * - `bookmarked`: Reflected: the item on screen is bookmarked.
1212
+ * - `disabled`: Reflected: there is no item on screen.
1213
+ *
1214
+ * ## Slots
1215
+ *
1216
+ * Areas where markup can be added to the component.
1217
+ *
1218
+ * - `(default)`: The label.
1219
+ */
1220
+ "test-bookmark": Partial<
1221
+ TestBookmarkProps &
1222
+ TestBookmarkSolidJsProps &
1223
+ BaseProps<TestBookmark> &
1224
+ BaseEvents
1225
+ >;
1226
+
1227
+ /**
1228
+ * The character sheet plugin: a button that opens a sheet of characters that are not on the keyboard
1229
+ * (`é`, `€`, `²`, …) and types the one the candidate picks into the answer field they were writing in.
1230
+ *
1231
+ * It follows the keyboard focus: the last text field or text area of a rendered item that had focus is
1232
+ * the one it types into, so a candidate writes, opens the sheet, picks a character and goes on writing.
1233
+ * Until an answer field has had focus it is `disabled`. A character goes in at the caret, replacing a
1234
+ * selection, and the field gets a `change` event, so the interaction records the new answer.
1235
+ *
1236
+ * Put it inside `<test-navigation>`. It is a button (`role="button"`, `aria-expanded`) with its content
1237
+ * as the label; `characters` is the sheet, as a string with the characters separated by spaces (the
1238
+ * default is a Dutch set). The sheet opens in the top layer below the button, closes on Escape, on a
1239
+ * click outside it, and when another item comes on screen. Style the sheet with `::part(sheet)` and its
1240
+ * keys with `::part(key)`.
1241
+ *
1242
+ * ## Attributes & Properties
1243
+ *
1244
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1245
+ *
1246
+ * - `characters`: The characters of the sheet, separated by spaces.
1247
+ * - `open`: Reflected: the sheet is open.
1248
+ * - `disabled`: Reflected: no answer field has had focus yet.
1249
+ *
1250
+ * ## Slots
1251
+ *
1252
+ * Areas where markup can be added to the component.
1253
+ *
1254
+ * - `(default)`: The label of the button.
1255
+ *
1256
+ * ## CSS Parts
1257
+ *
1258
+ * Custom selectors for styling elements within the component.
1259
+ *
1260
+ * - `button`: The button.
1261
+ * - `sheet`: The sheet of characters.
1262
+ * - `key`: One character on the sheet.
1263
+ */
1264
+ "test-character-sheet": Partial<
1265
+ TestCharacterSheetProps &
1266
+ TestCharacterSheetSolidJsProps &
1267
+ BaseProps<TestCharacterSheet> &
1268
+ BaseEvents
1269
+ >;
1270
+
1271
+ /**
1272
+ *
1273
+ *
1274
+ * ## Attributes & Properties
1275
+ *
1276
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1277
+ *
1278
+ * - `item-id`/`itemId`: undefined
1279
+ */
1280
+ "test-item-link": Partial<
1281
+ TestItemLinkProps &
1282
+ TestItemLinkSolidJsProps &
1283
+ BaseProps<TestItemLink> &
1284
+ BaseEvents
1285
+ >;
1286
+
1287
+ /**
1288
+ * Locks the test when the candidate leaves the page: another tab or window, or the page hidden. A
1289
+ * modal covers the test until it is unlocked, so the candidate cannot go on answering. It is a
1290
+ * deterrent for a supervised session, not security: the page is the candidate's.
1291
+ *
1292
+ * The lock lives in the test's state under `lock` (`session.plugins.lock`, `{ locked, times }`), so a
1293
+ * host that stores `state` stores it: reloading the page does not escape it, and `times` tells a
1294
+ * proctor how often the candidate left. `lockState(computedContext)` reads it.
1295
+ *
1296
+ * Unlocking: with a `code`, the modal asks for it, and the right code unlocks. The code is in the page
1297
+ * for anyone who opens the developer tools, so it keeps a candidate from simply carrying on, nothing
1298
+ * more. Without a `code`, the modal only shows its message and the host unlocks, with `unlock()` (for
1299
+ * example after a proctor's action on another screen).
1300
+ *
1301
+ * Focus moving into an iframe (a portable custom interaction, a video) is not leaving the page.
1302
+ *
1303
+ * Put it inside `<test-navigation>`; it shows nothing until the test is locked. The modal's message
1304
+ * is the element's content.
1305
+ *
1306
+ * ## Attributes & Properties
1307
+ *
1308
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1309
+ *
1310
+ * - `code`: The code that unlocks the test; without it only `unlock()` does.
1311
+ * - `locked`: Reflected: the test is locked.
1312
+ * - `code-label`/`codeLabel`: The label of the code field.
1313
+ * - `unlock-label`/`unlockLabel`: The label of the unlock button.
1314
+ * - `wrong-code-label`/`wrongCodeLabel`: The message for a wrong code.
1315
+ *
1316
+ * ## Events
1317
+ *
1318
+ * Events that will be emitted by the component.
1319
+ *
1320
+ * - `lock`: The test was locked (also when a restored state is locked).
1321
+ * - `unlock`: The test was unlocked.
1322
+ *
1323
+ * ## Slots
1324
+ *
1325
+ * Areas where markup can be added to the component.
1326
+ *
1327
+ * - `(default)`: The message in the modal.
1328
+ *
1329
+ * ## Methods
1330
+ *
1331
+ * Methods that can be called to access component functionality.
1332
+ *
1333
+ * - `unlock() => void`: Unlocks the test, whatever the code: for a host that unlocks from its own screen.
1334
+ *
1335
+ * ## CSS Parts
1336
+ *
1337
+ * Custom selectors for styling elements within the component.
1338
+ *
1339
+ * - `dialog`: The modal.
1340
+ * - `notice`: The message. (Not `message`: the theme paints that part as a validation message.)
1341
+ * - `form`: The code field and button.
1342
+ * - `input`: The code field.
1343
+ * - `button`: The unlock button.
1344
+ * - `error`: The message for a wrong code.
1345
+ */
1346
+ "test-lock": Partial<
1347
+ TestLockProps & TestLockSolidJsProps & BaseProps<TestLock> & BaseEvents
1348
+ >;
1349
+
1350
+ /**
1351
+ *
1352
+ *
1353
+ * ## Attributes & Properties
1354
+ *
1355
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1356
+ *
1357
+ * - `computedContext`: undefined (property only)
1358
+ */
1359
+ "test-print-context": Partial<
1360
+ TestPrintContextProps &
1361
+ TestPrintContextSolidJsProps &
1362
+ BaseProps<TestPrintContext> &
1363
+ BaseEvents
1364
+ >;
1365
+
1366
+ /**
1367
+ *
1368
+ *
1369
+ * ## Attributes & Properties
1370
+ *
1371
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1372
+ *
1373
+ * - `computedContext`: undefined (property only)
1374
+ */
1375
+ "test-print-item-variables": Partial<
1376
+ TestPrintVariablesProps &
1377
+ TestPrintVariablesSolidJsProps &
1378
+ BaseProps<TestPrintVariables> &
1379
+ BaseEvents
1380
+ >;
1381
+
1382
+ /**
1383
+ * Shows the test's state (`qtiTest.state`) as a tree you can fold open and shut. It shows the state
1384
+ * each `qc-test-state-changed` of its own test carries: the test sends one once it is ready and one on
1385
+ * every change, so place it in the page from the start. A debug helper: drop it anywhere inside
1386
+ * `<qti-test>`.
1387
+ *
1388
+ * The first two levels start open. A list entry with an `identifier` (an item, a variable) is labelled
1389
+ * by it. The element only lays out the tree; give it a font, colour and height from the page.
1390
+ *
1391
+ * ## CSS Parts
1392
+ *
1393
+ * Custom selectors for styling elements within the component.
1394
+ *
1395
+ * - `key`: the name of a field, or the label of a list entry
1396
+ * - `value`: a value that is not an object or a list
1397
+ * - `count`: the number of entries of a folded object or list
1398
+ */
1399
+ "test-print-state": Partial<
1400
+ TestPrintStateProps &
1401
+ TestPrintStateSolidJsProps &
1402
+ BaseProps<TestPrintState> &
1403
+ BaseEvents
1404
+ >;
1405
+
1406
+ /**
1407
+ *
1408
+ *
1409
+ * ## Attributes & Properties
1410
+ *
1411
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1412
+ *
1413
+ * - `view`: undefined
1414
+ * - `disabled`: undefined
1415
+ * - `myTemplate`: undefined (property only)
1416
+ */
1417
+ "test-scoring-buttons": Partial<
1418
+ TestScoringButtonsProps &
1419
+ TestScoringButtonsSolidJsProps &
1420
+ BaseProps<TestScoringButtons> &
1421
+ BaseEvents
1422
+ >;
1423
+
1424
+ /**
1425
+ *
1426
+ *
1427
+ * ## Attributes & Properties
1428
+ *
1429
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1430
+ *
1431
+ * - `view`: undefined
1432
+ */
1433
+ "test-scoring-feedback": Partial<
1434
+ TestScoringFeedbackProps &
1435
+ TestScoringFeedbackSolidJsProps &
1436
+ BaseProps<TestScoringFeedback> &
1437
+ BaseEvents
1438
+ >;
1439
+
1440
+ /**
1441
+ *
1442
+ *
1443
+ * ## Attributes & Properties
1444
+ *
1445
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1446
+ *
1447
+ * - `section-id`/`sectionId`: undefined
1448
+ */
1449
+ "test-section-link": Partial<
1450
+ TestSectionLinkProps &
1451
+ TestSectionLinkSolidJsProps &
1452
+ BaseProps<TestSectionLink> &
1453
+ BaseEvents
1454
+ >;
1455
+
1456
+ /**
1457
+ * The stamp plugin: renders its `<template>` child with the state of the test (`test`,
1458
+ * `activeTestpart`, `activeSection`, `activeItem`, `view`), again on every change, so a player
1459
+ * can show progress or numbered navigation without writing a component.
1460
+ *
1461
+ * ## Attributes & Properties
1462
+ *
1463
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1464
+ *
1465
+ * - `debug`: Indicates whether the component is in debug mode.
1466
+ * When set to `true`, the available objects and properties (i.e.: stampContext) is displayed.
1467
+ * - `myTemplate`: undefined (property only)
1468
+ *
1469
+ * ## Events
1470
+ *
1471
+ * Events that will be emitted by the component.
1472
+ *
1473
+ * - `qti-stamp-context-updated`: undefined
1474
+ */
1475
+ "test-stamp": Partial<
1476
+ TestStampProps & TestStampSolidJsProps & BaseProps<TestStamp> & BaseEvents
1477
+ >;
1478
+
1479
+ /**
1480
+ *
1481
+ *
1482
+ * ## Attributes & Properties
1483
+ *
1484
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1485
+ *
1486
+ * - `label`: label accompanying the select view dropdown
1487
+ * - `view-options`/`viewOptions`: The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor']
1488
+ */
1489
+ "test-view": Partial<
1490
+ TestViewProps & TestViewSolidJsProps & BaseProps<TestView> & BaseEvents
1491
+ >;
1492
+
1493
+ /**
1494
+ *
1495
+ *
1496
+ * ## Attributes & Properties
1497
+ *
1498
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1499
+ *
1500
+ * - `myTemplate`: undefined (property only)
1501
+ *
1502
+ * ## Methods
1503
+ *
1504
+ * Methods that can be called to access component functionality.
1505
+ *
1506
+ * - `_switchView(view: string) => void`: undefined
1507
+ */
1508
+ "test-view-toggle": Partial<
1509
+ TestViewToggleProps &
1510
+ TestViewToggleSolidJsProps &
1511
+ BaseProps<TestViewToggle> &
1512
+ BaseEvents
1513
+ >;
1514
+
1515
+ /**
1516
+ *
1517
+ *
1518
+ * ## Attributes & Properties
1519
+ *
1520
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1521
+ *
1522
+ * - `step`: How much one press adds to the level (default 0.1). @attr max - The largest level (default 2).
1523
+ * - `min`: The smallest level `zoom-out` reaches.
1524
+ * - `max`: The largest level `zoom-in` reaches.
1525
+ * - `disabled`: undefined
1526
+ */
1527
+ "test-zoom-in": Partial<
1528
+ TestZoomInProps &
1529
+ TestZoomInSolidJsProps &
1530
+ BaseProps<TestZoomIn> &
1531
+ BaseEvents
1532
+ >;
1533
+
1534
+ /**
1535
+ *
1536
+ *
1537
+ * ## Attributes & Properties
1538
+ *
1539
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1540
+ *
1541
+ * - `step`: How much one press takes off the level (default 0.1). @attr min - The smallest level (default 0.5).
1542
+ * - `min`: The smallest level `zoom-out` reaches.
1543
+ * - `max`: The largest level `zoom-in` reaches.
1544
+ * - `disabled`: undefined
1545
+ */
1546
+ "test-zoom-out": Partial<
1547
+ TestZoomOutProps &
1548
+ TestZoomOutSolidJsProps &
1549
+ BaseProps<TestZoomOut> &
1550
+ BaseEvents
1551
+ >;
1552
+
1553
+ /**
1554
+ * Back to 100%. Shows the level when it has no content of its own; never disabled, so the level always reads well.
1555
+ *
1556
+ * ## Attributes & Properties
1557
+ *
1558
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1559
+ *
1560
+ * - `step`: How much one press changes the level.
1561
+ * - `min`: The smallest level `zoom-out` reaches.
1562
+ * - `max`: The largest level `zoom-in` reaches.
1563
+ * - `disabled`: undefined
1564
+ */
1565
+ "test-zoom-reset": Partial<
1566
+ TestZoomResetProps &
1567
+ TestZoomResetSolidJsProps &
1568
+ BaseProps<TestZoomReset> &
1569
+ BaseEvents
1570
+ >;
1571
+
1572
+ /**
1573
+ * `<test-item-to-speech>` is the controller and context provider. It manages
1574
+ * speech synthesis, word highlighting, and item element lookup. Compose your
1575
+ * own player by placing control elements as children.
1576
+ *
1577
+ * ## Attributes & Properties
1578
+ *
1579
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1580
+ *
1581
+ * - `language`: Fallback language when neither the item content nor the document declares one.
1582
+ * - `_ttsContext`: undefined (property only)
1583
+ *
1584
+ * ## CSS States
1585
+ *
1586
+ * These can be used to apply styling when a component is in a given state.
1587
+ *
1588
+ * - `idle`: No speech active
1589
+ * - `picking`: Pick mode: all reading elements highlighted, waiting for a click
1590
+ * - `playing`: Speech is playing
1591
+ * - `paused`: Speech is paused
1592
+ */
1593
+ "test-item-to-speech": Partial<
1594
+ TestItemToSpeechProps &
1595
+ TestItemToSpeechSolidJsProps &
1596
+ BaseProps<TestItemToSpeech> &
1597
+ BaseEvents
1598
+ >;
1599
+
1600
+ /**
1601
+ * Play/pause/resume toggle button — always enabled, cycles through states.
1602
+ * Use named slots `play` and `pause` to customise the icons/labels independently; `label` and
1603
+ * `pause-label` name the button in each state (set them when the slotted content is an icon).
1604
+ *
1605
+ * ## Attributes & Properties
1606
+ *
1607
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1608
+ *
1609
+ * - `pause-label`/`pauseLabel`: Accessible name of the button while speech is playing; see `label`.
1610
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
1611
+ * slotted content names the button by its text; set it when you slot an icon of your own,
1612
+ * which has no text to be named by.
1613
+ *
1614
+ * ## CSS Parts
1615
+ *
1616
+ * Custom selectors for styling elements within the component.
1617
+ *
1618
+ * - `button`: undefined
1619
+ *
1620
+ * ## CSS States
1621
+ *
1622
+ * These can be used to apply styling when a component is in a given state.
1623
+ *
1624
+ * - `idle`: / playing / paused
1625
+ */
1626
+ "test-tts-play": Partial<
1627
+ TestTtsPlayProps &
1628
+ TestTtsPlaySolidJsProps &
1629
+ BaseProps<TestTtsPlay> &
1630
+ BaseEvents
1631
+ >;
1632
+
1633
+ /**
1634
+ * Pause button — enabled only when playing.
1635
+ *
1636
+ * ## Attributes & Properties
1637
+ *
1638
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1639
+ *
1640
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
1641
+ * slotted content names the button by its text; set it when you slot an icon of your own,
1642
+ * which has no text to be named by.
1643
+ *
1644
+ * ## CSS Parts
1645
+ *
1646
+ * Custom selectors for styling elements within the component.
1647
+ *
1648
+ * - `button`: undefined
1649
+ *
1650
+ * ## CSS States
1651
+ *
1652
+ * These can be used to apply styling when a component is in a given state.
1653
+ *
1654
+ * - `idle`: / playing / paused
1655
+ */
1656
+ "test-tts-pause": Partial<
1657
+ TestTtsPauseProps &
1658
+ TestTtsPauseSolidJsProps &
1659
+ BaseProps<TestTtsPause> &
1660
+ BaseEvents
1661
+ >;
1662
+
1663
+ /**
1664
+ * Resume button — enabled only when paused.
1665
+ *
1666
+ * ## Attributes & Properties
1667
+ *
1668
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1669
+ *
1670
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
1671
+ * slotted content names the button by its text; set it when you slot an icon of your own,
1672
+ * which has no text to be named by.
1673
+ *
1674
+ * ## CSS Parts
1675
+ *
1676
+ * Custom selectors for styling elements within the component.
1677
+ *
1678
+ * - `button`: undefined
1679
+ *
1680
+ * ## CSS States
1681
+ *
1682
+ * These can be used to apply styling when a component is in a given state.
1683
+ *
1684
+ * - `idle`: / playing / paused
1685
+ */
1686
+ "test-tts-resume": Partial<
1687
+ TestTtsResumeProps &
1688
+ TestTtsResumeSolidJsProps &
1689
+ BaseProps<TestTtsResume> &
1690
+ BaseEvents
1691
+ >;
1692
+
1693
+ /**
1694
+ * Stop button — enabled when playing, paused, or in pick mode (where it leaves pick mode).
1695
+ *
1696
+ * ## Attributes & Properties
1697
+ *
1698
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1699
+ *
1700
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
1701
+ * slotted content names the button by its text; set it when you slot an icon of your own,
1702
+ * which has no text to be named by.
1703
+ *
1704
+ * ## CSS Parts
1705
+ *
1706
+ * Custom selectors for styling elements within the component.
1707
+ *
1708
+ * - `button`: undefined
1709
+ *
1710
+ * ## CSS States
1711
+ *
1712
+ * These can be used to apply styling when a component is in a given state.
1713
+ *
1714
+ * - `idle`: / playing / paused
1715
+ */
1716
+ "test-tts-stop": Partial<
1717
+ TestTtsStopProps &
1718
+ TestTtsStopSolidJsProps &
1719
+ BaseProps<TestTtsStop> &
1720
+ BaseEvents
1721
+ >;
1722
+
1723
+ /**
1724
+ * Prev-element button — moves cursor to the previous reading element and pauses.
1725
+ * Disabled at the first element. Reading elements are collected lazily, so an element count
1726
+ * of 0 means "not looked yet" rather than "nothing to read": the button stays enabled and the
1727
+ * first click collects them.
1728
+ *
1729
+ * ## Attributes & Properties
1730
+ *
1731
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1732
+ *
1733
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
1734
+ * slotted content names the button by its text; set it when you slot an icon of your own,
1735
+ * which has no text to be named by.
1736
+ *
1737
+ * ## CSS Parts
1738
+ *
1739
+ * Custom selectors for styling elements within the component.
1740
+ *
1741
+ * - `button`: undefined
1742
+ *
1743
+ * ## CSS States
1744
+ *
1745
+ * These can be used to apply styling when a component is in a given state.
1746
+ *
1747
+ * - `idle`: / playing / paused
1748
+ */
1749
+ "test-tts-prev": Partial<
1750
+ TestTtsPrevProps &
1751
+ TestTtsPrevSolidJsProps &
1752
+ BaseProps<TestTtsPrev> &
1753
+ BaseEvents
1754
+ >;
1755
+
1756
+ /**
1757
+ * Next-element button — moves cursor to the next reading element and pauses.
1758
+ * Disabled at the last element; enabled while the elements have not been collected yet
1759
+ * (see `TestTtsPrev`).
1760
+ *
1761
+ * ## Attributes & Properties
1762
+ *
1763
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1764
+ *
1765
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
1766
+ * slotted content names the button by its text; set it when you slot an icon of your own,
1767
+ * which has no text to be named by.
1768
+ *
1769
+ * ## CSS Parts
1770
+ *
1771
+ * Custom selectors for styling elements within the component.
1772
+ *
1773
+ * - `button`: undefined
1774
+ *
1775
+ * ## CSS States
1776
+ *
1777
+ * These can be used to apply styling when a component is in a given state.
1778
+ *
1779
+ * - `idle`: / playing / paused
1780
+ */
1781
+ "test-tts-next": Partial<
1782
+ TestTtsNextProps &
1783
+ TestTtsNextSolidJsProps &
1784
+ BaseProps<TestTtsNext> &
1785
+ BaseEvents
1786
+ >;
1787
+
1788
+ /**
1789
+ * Pick button — toggles pick mode on the controller: every reading element is highlighted and
1790
+ * a click on one of them starts reading from there. Reflects the mode as `:state(picking)`, and,
1791
+ * being the toggle that switched it on, as `:state(selected)`, painted through
1792
+ * `--button-selected-background-color` / `--button-selected-color`.
1793
+ *
1794
+ * ## Attributes & Properties
1795
+ *
1796
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1797
+ *
1798
+ * - `label`: Accessible name of the button. Without it the default icon carries an English name, and
1799
+ * slotted content names the button by its text; set it when you slot an icon of your own,
1800
+ * which has no text to be named by.
1801
+ *
1802
+ * ## CSS Parts
1803
+ *
1804
+ * Custom selectors for styling elements within the component.
1805
+ *
1806
+ * - `button`: undefined
1807
+ *
1808
+ * ## CSS States
1809
+ *
1810
+ * These can be used to apply styling when a component is in a given state.
1811
+ *
1812
+ * - `idle`: / playing / paused
1813
+ * - `picking`: undefined
1814
+ * - `selected`: This toggle is on: pick mode is active
1815
+ */
1816
+ "test-tts-pick": Partial<
1817
+ TestTtsPickProps &
1818
+ TestTtsPickSolidJsProps &
1819
+ BaseProps<TestTtsPick> &
1820
+ BaseEvents
1821
+ >;
1822
+ };
1823
+
1824
+ export type CustomCssProperties = {};
1825
+
1826
+ declare module "react" {
1827
+ namespace JSX {
1828
+ interface IntrinsicElements extends CustomElements {}
1829
+ }
1830
+ export interface CSSProperties extends CustomCssProperties {}
1831
+ }
1832
+
1833
+ declare module "react/jsx-runtime" {
1834
+ namespace JSX {
1835
+ interface IntrinsicElements extends CustomElements {}
1836
+ }
1837
+ export interface CSSProperties extends CustomCssProperties {}
1838
+ }
1839
+
1840
+ declare module "react/jsx-dev-runtime" {
1841
+ namespace JSX {
1842
+ interface IntrinsicElements extends CustomElements {}
1843
+ }
1844
+ export interface CSSProperties extends CustomCssProperties {}
1845
+ }
1846
+
1847
+ declare module "preact" {
1848
+ namespace JSX {
1849
+ interface IntrinsicElements extends CustomElements {}
1850
+ }
1851
+ export interface CSSProperties extends CustomCssProperties {}
1852
+ }
1853
+
1854
+ declare module "@builder.io/qwik" {
1855
+ namespace JSX {
1856
+ interface IntrinsicElements extends CustomElements {}
1857
+ }
1858
+ export interface CSSProperties extends CustomCssProperties {}
1859
+ }
1860
+
1861
+ declare module "@stencil/core" {
1862
+ namespace JSX {
1863
+ interface IntrinsicElements extends CustomElements {}
1864
+ }
1865
+ export interface CSSProperties extends CustomCssProperties {}
1866
+ }
1867
+
1868
+ declare module "hono/jsx" {
1869
+ namespace JSX {
1870
+ interface IntrinsicElements extends CustomElements {}
1871
+ }
1872
+ export interface CSSProperties extends CustomCssProperties {}
1873
+ }
1874
+
1875
+ declare module "react-native" {
1876
+ namespace JSX {
1877
+ interface IntrinsicElements extends CustomElements {}
1878
+ }
1879
+ export interface CSSProperties extends CustomCssProperties {}
1880
+ }
1881
+
1882
+ declare module "solid-js" {
1883
+ namespace JSX {
1884
+ interface IntrinsicElements extends CustomElementsSolidJs {}
1885
+ }
1886
+ export interface CSSProperties extends CustomCssProperties {}
1887
+ }
1888
+
1889
+ declare global {
1890
+ namespace JSX {
1891
+ interface IntrinsicElements extends CustomElements {}
1892
+ }
1893
+ export interface CSSProperties extends CustomCssProperties {}
1894
+ }