@citolab/qti-components 10.0.0-next.14 → 10.0.0-next.16
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/cdn/index.global.js +1 -1
- package/cdn/index.js +1643 -2742
- package/dist/base.d.ts +32 -8
- package/dist/base.js +7 -1
- package/dist/{chunk-HGKLF7SP.js → chunk-4DC5Z2LQ.js} +2 -2
- package/dist/{chunk-MP2SUN7J.js → chunk-7MYZHZWV.js} +981 -383
- package/dist/chunk-7MYZHZWV.js.map +1 -0
- package/dist/{chunk-LFVPS7KB.js → chunk-DAOLVUTR.js} +2 -2
- package/dist/{chunk-CCI3QMQA.js → chunk-H3Z3TMFB.js} +55 -60
- package/dist/chunk-H3Z3TMFB.js.map +1 -0
- package/dist/{chunk-LEF7AAYZ.js → chunk-J3F3JSCW.js} +2 -2
- package/dist/{chunk-NYNL5HSR.js → chunk-L3LBSAGZ.js} +2 -2
- package/dist/{chunk-BZPMN57E.js → chunk-L7J2ZOJL.js} +2 -2
- package/dist/{chunk-TLAVOBEM.js → chunk-LORYM4U2.js} +120 -1
- package/dist/chunk-LORYM4U2.js.map +1 -0
- package/dist/{chunk-6XRNX574.js → chunk-LQ65RILE.js} +141 -106
- package/dist/chunk-LQ65RILE.js.map +1 -0
- package/dist/{chunk-C7SYDLMG.js → chunk-M4TZIB3W.js} +61 -27
- package/dist/chunk-M4TZIB3W.js.map +1 -0
- package/dist/{chunk-S5GLISQA.js → chunk-NWSDBYK7.js} +2 -2
- package/dist/{chunk-O2ENNGKV.js → chunk-NZ7ZC4SP.js} +126 -7
- package/dist/chunk-NZ7ZC4SP.js.map +1 -0
- package/dist/{chunk-SWNFCQ4G.js → chunk-OG5HIRHE.js} +4 -4
- package/dist/{chunk-TU34FFWF.js → chunk-UDJ7MHLF.js} +4 -4
- package/dist/chunk-UDJ7MHLF.js.map +1 -0
- package/dist/chunk-WWY2H2YO.js +7 -0
- package/dist/chunk-WWY2H2YO.js.map +1 -0
- package/dist/{computed.types.d-IXACuBr7.d.ts → computed.types.d-n3K2VvB0.d.ts} +2 -2
- package/dist/{config.context.d-BniMHSBB.d.ts → config.context.d-CCqlJXpE.d.ts} +2 -1
- package/dist/corrections.d.ts +119 -15
- package/dist/corrections.js +9 -9
- package/dist/elements.d.ts +67 -16
- package/dist/elements.js +4 -4
- package/dist/index.d.ts +11 -11
- package/dist/index.js +21 -15
- package/dist/interactions.d.ts +83 -17
- package/dist/interactions.js +3 -3
- package/dist/item.css +1133 -2370
- package/dist/item.d.ts +4 -4
- package/dist/item.js +5 -5
- package/dist/loader.d.ts +1 -1
- package/dist/loader.js +2 -2
- package/dist/processing.js +3 -3
- package/dist/qti-components-jsx.d.ts +1239 -214
- package/dist/{qti-feedback.d-DbzPSJuK.d.ts → qti-feedback.d-1JL_qHjc.d.ts} +7 -0
- package/dist/{qti-item.d-BqWYBdV2.d.ts → qti-item.d-DDMDjWIk.d.ts} +2 -2
- package/dist/{qti-test.d-C0I1BIdH.d.ts → qti-test.d-CDdyCp6e.d.ts} +21 -18
- package/dist/{qti-text-entry-interaction.d-V4sWE9TO.d.ts → qti-text-entry-interaction.d-BTAKmr4b.d.ts} +160 -50
- package/dist/{qti-transform-test.d-BL7GGFJj.d.ts → qti-transform-test.d-Bb9vnLzP.d.ts} +1 -0
- package/dist/{record.d-C6m0Y4xr.d.ts → record.d-Bojj6_LW.d.ts} +34 -3
- package/dist/{session.context.d-DW09Lrie.d.ts → session.context.d-BNxGeyh9.d.ts} +1 -1
- package/dist/test.d.ts +9 -9
- package/dist/test.js +6 -6
- package/dist/transformers.d.ts +1 -1
- package/dist/transformers.js +1 -1
- package/package.json +11 -11
- package/dist/chunk-6XRNX574.js.map +0 -1
- package/dist/chunk-C7SYDLMG.js.map +0 -1
- package/dist/chunk-CCI3QMQA.js.map +0 -1
- package/dist/chunk-MP2SUN7J.js.map +0 -1
- package/dist/chunk-O2ENNGKV.js.map +0 -1
- package/dist/chunk-Q4MJCEDE.js +0 -7
- package/dist/chunk-Q4MJCEDE.js.map +0 -1
- package/dist/chunk-TLAVOBEM.js.map +0 -1
- package/dist/chunk-TU34FFWF.js.map +0 -1
- /package/dist/{chunk-HGKLF7SP.js.map → chunk-4DC5Z2LQ.js.map} +0 -0
- /package/dist/{chunk-LFVPS7KB.js.map → chunk-DAOLVUTR.js.map} +0 -0
- /package/dist/{chunk-LEF7AAYZ.js.map → chunk-J3F3JSCW.js.map} +0 -0
- /package/dist/{chunk-NYNL5HSR.js.map → chunk-L3LBSAGZ.js.map} +0 -0
- /package/dist/{chunk-BZPMN57E.js.map → chunk-L7J2ZOJL.js.map} +0 -0
- /package/dist/{chunk-S5GLISQA.js.map → chunk-NWSDBYK7.js.map} +0 -0
- /package/dist/{chunk-SWNFCQ4G.js.map → chunk-OG5HIRHE.js.map} +0 -0
|
@@ -16,6 +16,13 @@ declare abstract class QtiFeedback extends LitElement {
|
|
|
16
16
|
private get _context();
|
|
17
17
|
private _computedContext?;
|
|
18
18
|
checkShowFeedback(outcomeIdentifier: string): void;
|
|
19
|
+
/**
|
|
20
|
+
* Called when this feedback is about to show. Return `false` to keep it hidden: the host shows the
|
|
21
|
+
* content itself. The elements dispatch `qc-feedback-show` here.
|
|
22
|
+
*/
|
|
23
|
+
protected feedbackShowing(): boolean;
|
|
24
|
+
/** Called when this feedback is about to hide. Return `false` to keep it showing: the host hides it itself. */
|
|
25
|
+
protected feedbackHiding(): boolean;
|
|
19
26
|
}
|
|
20
27
|
|
|
21
28
|
export { QtiFeedback as Q, QtiVariableDeclaration as a };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as lit from 'lit';
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
3
|
import { Q as QtiContext } from './qti.context.d-CejJMlfZ.js';
|
|
4
|
-
import { C as ComputedItemContext, V as View } from './session.context.d-
|
|
5
|
-
import { C as ConfigContext } from './config.context.d-
|
|
4
|
+
import { C as ComputedItemContext, V as View } from './session.context.d-BNxGeyh9.js';
|
|
5
|
+
import { C as ConfigContext } from './config.context.d-CCqlJXpE.js';
|
|
6
6
|
import { QtiAssessmentItem } from './elements.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as lit from 'lit';
|
|
2
2
|
import { LitElement, PropertyValues, TemplateResult, nothing } from 'lit';
|
|
3
|
-
import { b as transformTestApi, t as transformItemApi } from './qti-transform-test.d-
|
|
4
|
-
import { C as ComputedContext, a as ComputedItem } from './computed.types.d-
|
|
3
|
+
import { b as transformTestApi, t as transformItemApi } from './qti-transform-test.d-Bb9vnLzP.js';
|
|
4
|
+
import { C as ComputedContext, a as ComputedItem } from './computed.types.d-n3K2VvB0.js';
|
|
5
5
|
import { QtiAssessmentItem, QtiModalFeedback } from './elements.js';
|
|
6
6
|
import { Q as QtiContext } from './qti.context.d-CejJMlfZ.js';
|
|
7
7
|
import { T as TestContext, Q as QtiExpression, a as QtiExpressionBase } from './qti-expression.d-B-Cfbqlb.js';
|
|
8
8
|
import { TemplateFunction } from '@heximal/templates';
|
|
9
9
|
import { h as VariableValue, b as ItemContext, c as OutcomeVariable, V as VariableDeclaration } from './item.types.d-DuVR0ZVK.js';
|
|
10
|
-
import { S as SessionContext, V as View } from './session.context.d-
|
|
11
|
-
import { C as ConfigContext } from './config.context.d-
|
|
10
|
+
import { S as SessionContext, V as View } from './session.context.d-BNxGeyh9.js';
|
|
11
|
+
import { C as ConfigContext } from './config.context.d-CCqlJXpE.js';
|
|
12
12
|
import { b as QtiRuleBase } from './qti-rule-base.d-CeKP0Ooi.js';
|
|
13
13
|
|
|
14
14
|
declare class QtiAssessmentTest extends LitElement {
|
|
@@ -27,7 +27,7 @@ declare global {
|
|
|
27
27
|
}
|
|
28
28
|
declare module '../../public-events' {
|
|
29
29
|
interface PublicEventMap {
|
|
30
|
-
'
|
|
30
|
+
'qc-test-loaded': CustomEvent<QtiAssessmentTest>;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -382,7 +382,7 @@ interface ITestNavigationMixin {
|
|
|
382
382
|
/**
|
|
383
383
|
* Everything a host needs to persist to resume a candidate's test session, and nothing else.
|
|
384
384
|
*
|
|
385
|
-
* Read it from `qtiTest.state` or the `
|
|
385
|
+
* Read it from `qtiTest.state` or the `qc-test-state-changed` event, store it wherever you like —
|
|
386
386
|
* a database, `localStorage`, `sessionStorage` — and assign it back to `qtiTest.state` to resume.
|
|
387
387
|
*
|
|
388
388
|
* Deliberately not here:
|
|
@@ -435,11 +435,6 @@ interface QtiTestStateSession {
|
|
|
435
435
|
navItemRefId?: string | null;
|
|
436
436
|
}
|
|
437
437
|
|
|
438
|
-
declare global {
|
|
439
|
-
interface GlobalEventHandlersEventMap {
|
|
440
|
-
'qti-state-changed': CustomEvent<QtiTestState>;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
438
|
interface ITestStateMixin {
|
|
444
439
|
/**
|
|
445
440
|
* The candidate's persistable state: what they answered and where they are.
|
|
@@ -576,7 +571,7 @@ declare global {
|
|
|
576
571
|
|
|
577
572
|
/**
|
|
578
573
|
* A button that ends the attempt of an item: its response is processed, `numAttempts` goes up and
|
|
579
|
-
* feedback is shown as the item's session control allows. It dispatches `
|
|
574
|
+
* feedback is shown as the item's session control allows. It dispatches `qc-test-end-attempt`,
|
|
580
575
|
* which `<test-navigation>` handles.
|
|
581
576
|
*
|
|
582
577
|
* Put it inside `<test-navigation>`, either in the toolbar, where it ends the attempt of the item on
|
|
@@ -756,7 +751,7 @@ declare global {
|
|
|
756
751
|
|
|
757
752
|
/**
|
|
758
753
|
* Shows the test's state (`qtiTest.state`) as a tree you can fold open and shut, and keeps it current
|
|
759
|
-
* on every `
|
|
754
|
+
* on every `qc-test-state-changed`. A debug helper: drop it anywhere inside `<qti-test>`.
|
|
760
755
|
*
|
|
761
756
|
* The first two levels start open. A list entry with an `identifier` (an item, a variable) is labelled
|
|
762
757
|
* by it. The element only lays out the tree; give it a font, colour and height from the page.
|
|
@@ -837,7 +832,7 @@ declare global {
|
|
|
837
832
|
|
|
838
833
|
/**
|
|
839
834
|
* Scores the test: on click the test resets its outcomes to their declared defaults, runs its
|
|
840
|
-
* outcome processing and dispatches `
|
|
835
|
+
* outcome processing and dispatches `qc-test-submitted`, after which the host reads the outcomes.
|
|
841
836
|
* The host decides where it sits, for example on the last item or in a review view.
|
|
842
837
|
*/
|
|
843
838
|
declare class TestSubmit extends LitElement {
|
|
@@ -920,6 +915,8 @@ declare abstract class TtsButtonBase extends LitElement {
|
|
|
920
915
|
*/
|
|
921
916
|
label?: string;
|
|
922
917
|
protected _tts?: TtsContext;
|
|
918
|
+
/** Whether this control is a toggle that is on; mirrored as `:state(selected)`. A plain button never is. */
|
|
919
|
+
protected get selected(): boolean;
|
|
923
920
|
updated(_changed: PropertyValues): void;
|
|
924
921
|
}
|
|
925
922
|
/**
|
|
@@ -940,7 +937,9 @@ declare abstract class TtsButtonBase extends LitElement {
|
|
|
940
937
|
* The controller lays its controls out as a wrapping row; each control draws an icon button,
|
|
941
938
|
* and slotted content replaces the icon — a slotted `<svg>` is sized like the default one. Give a
|
|
942
939
|
* control with a slotted icon a `label`, since an icon has no text to name the button by. Buttons read the qti-theme tokens (with the theme's
|
|
943
|
-
* defaults as fallbacks)
|
|
940
|
+
* defaults as fallbacks), are painted through the `--button-*` slots every button in the theme shares
|
|
941
|
+
* (`--test-button-*` still works as an alias), and can be sized with `--button-size` and
|
|
942
|
+
* `--test-tts-icon-size`.
|
|
944
943
|
*
|
|
945
944
|
* ### Language resolution
|
|
946
945
|
*
|
|
@@ -1112,12 +1111,16 @@ declare class TestTtsNext extends TtsButtonBase {
|
|
|
1112
1111
|
}
|
|
1113
1112
|
/**
|
|
1114
1113
|
* Pick button — toggles pick mode on the controller: every reading element is highlighted and
|
|
1115
|
-
* a click on one of them starts reading from there. Reflects the mode as `:state(picking)
|
|
1114
|
+
* a click on one of them starts reading from there. Reflects the mode as `:state(picking)`, and,
|
|
1115
|
+
* being the toggle that switched it on, as `:state(selected)`, painted through
|
|
1116
|
+
* `--button-selected-background-color` / `--button-selected-color`.
|
|
1116
1117
|
* @cssstate idle / playing / paused
|
|
1117
1118
|
* @cssstate picking
|
|
1119
|
+
* @cssstate selected - This toggle is on: pick mode is active
|
|
1118
1120
|
* @csspart button
|
|
1119
1121
|
*/
|
|
1120
1122
|
declare class TestTtsPick extends TtsButtonBase {
|
|
1123
|
+
protected get selected(): boolean;
|
|
1121
1124
|
render(): lit.TemplateResult<1>;
|
|
1122
1125
|
}
|
|
1123
1126
|
declare global {
|
|
@@ -1190,8 +1193,8 @@ declare const QtiTest_base: (abstract new (...args: any[]) => ITestNavigationMix
|
|
|
1190
1193
|
* You can use normal class names to style the elements.
|
|
1191
1194
|
* And you can use the `test-prev` and `test-next` elements to navigate through the test.
|
|
1192
1195
|
*
|
|
1193
|
-
* @event
|
|
1194
|
-
* @event qti-test-context-updated - Deprecated: listen to `
|
|
1196
|
+
* @event qc-test-state-changed - The candidate's persistable state changed. `detail` is a `QtiTestState`; assign it back to `state` to resume.
|
|
1197
|
+
* @event qti-test-context-updated - Deprecated: listen to `qc-test-state-changed` to persist a session. `detail` is the full test context, including declaration metadata and the answer key. Removed in the next major.
|
|
1195
1198
|
*/
|
|
1196
1199
|
declare class QtiTest extends QtiTest_base {
|
|
1197
1200
|
constructor();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as lit from 'lit';
|
|
2
2
|
import { LitElement, CSSResultGroup, PropertyValues } from 'lit';
|
|
3
|
-
import { I as Interaction, b as RecordValue } from './record.d-
|
|
3
|
+
import { I as Interaction, c as ValidityTrigger, b as RecordValue } from './record.d-Bojj6_LW.js';
|
|
4
4
|
import { V as ValidatableInteraction } from './interaction.interface.d-CvjHM2bi.js';
|
|
5
|
-
import { C as ConfigContext } from './config.context.d-
|
|
5
|
+
import { C as ConfigContext } from './config.context.d-CCqlJXpE.js';
|
|
6
6
|
import { B as BaseType, a as Cardinality, b as ItemContext, Q as QtiAreaMapEntry } from './item.types.d-DuVR0ZVK.js';
|
|
7
7
|
import { Q as QtiContext } from './qti.context.d-CejJMlfZ.js';
|
|
8
8
|
import * as lit_directives_ref_js from 'lit/directives/ref.js';
|
|
@@ -99,9 +99,21 @@ declare global {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
declare const QtiHotspotChoice_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
|
|
102
|
+
/**
|
|
103
|
+
* A clickable area on the image of `qti-hotspot-interaction` or `qti-graphic-order-interaction`.
|
|
104
|
+
*
|
|
105
|
+
* @customElement qti-hotspot-choice
|
|
106
|
+
* @cssstate checked - Chosen by the candidate.
|
|
107
|
+
* @cssstate disabled - Switched off by the interaction.
|
|
108
|
+
* @cssstate readonly - Frozen by the interaction.
|
|
109
|
+
* @attr {number} data-order - Graphic order: the 1-based position the candidate gave this choice.
|
|
110
|
+
* A theme prints it with `attr(data-order)`. Reflected from the `order` property; the old
|
|
111
|
+
* `aria-ordervalue` spelling (not an ARIA attribute) is written too for one major.
|
|
112
|
+
*/
|
|
102
113
|
declare class QtiHotspotChoice extends QtiHotspotChoice_base {
|
|
103
114
|
static styles: CSSResultGroup;
|
|
104
115
|
order: number;
|
|
116
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
105
117
|
}
|
|
106
118
|
declare global {
|
|
107
119
|
interface HTMLElementTagNameMap {
|
|
@@ -244,7 +256,7 @@ interface DragDropState {
|
|
|
244
256
|
* Target identifier -> how many chips it holds for capacity purposes.
|
|
245
257
|
*
|
|
246
258
|
* Deliberately *not* `dragsByTarget[id].length`. Capacity counts
|
|
247
|
-
* `max(draggablesSelector matches, [
|
|
259
|
+
* `max(draggablesSelector matches, [data-draggable] matches)`, because a dropped clone may not
|
|
248
260
|
* match the interaction's structural selector (match-interaction's nested choices do; a bare
|
|
249
261
|
* clone elsewhere may only carry the attribute). Response serialisation uses the selector
|
|
250
262
|
* only. Collapsing the two would silently change `matchMax` behaviour.
|
|
@@ -418,7 +430,7 @@ type DragDropCore = Interaction & {
|
|
|
418
430
|
initiateDrag(dragElement: HTMLElement, startX: number, startY: number, inputType: 'mouse' | 'touch', eventSource?: 'pointer' | 'mouse' | 'touch', pointerId?: number, startedFromTrustedEvent?: boolean): void;
|
|
419
431
|
createDragClone(element: HTMLElement, rect: DOMRect): HTMLElement;
|
|
420
432
|
updateClonePosition(clientX: number, clientY: number): void;
|
|
421
|
-
activateAllDroppables(): void;
|
|
433
|
+
activateAllDroppables(fromDroppable?: boolean): void;
|
|
422
434
|
setupMoveObservables(inputType: 'mouse' | 'touch', eventSource?: 'pointer' | 'mouse' | 'touch'): void;
|
|
423
435
|
};
|
|
424
436
|
interface DragState {
|
|
@@ -455,7 +467,9 @@ type DragDropSlotted = DragDropCore & DropzoneAutoSize & {
|
|
|
455
467
|
disableAnimations: boolean;
|
|
456
468
|
enableFlipAnimations: boolean;
|
|
457
469
|
validate(): boolean;
|
|
458
|
-
reportValidity(
|
|
470
|
+
reportValidity(options?: {
|
|
471
|
+
trigger?: ValidityTrigger;
|
|
472
|
+
}): boolean;
|
|
459
473
|
reset(): void;
|
|
460
474
|
saveResponse(value?: string | string[]): void;
|
|
461
475
|
shouldTreatBlockedMaxAsInvalid(): boolean;
|
|
@@ -506,11 +520,15 @@ declare const QtiAssociateInteraction_base: (abstract new (...args: any[]) => Dr
|
|
|
506
520
|
* @slot prompt - The prompt shown above the choices.
|
|
507
521
|
* @slot qti-simple-associable-choice - The associable choice sources.
|
|
508
522
|
*
|
|
509
|
-
* @csspart
|
|
523
|
+
* @csspart bank - The slot holding the unplaced chips (was `drags`).
|
|
510
524
|
* @csspart drops - The container holding all drop targets.
|
|
511
|
-
* @csspart
|
|
512
|
-
* @csspart drop - Each individual drop target.
|
|
525
|
+
* @csspart row - One left/right drop pair (was `drop-row`).
|
|
526
|
+
* @csspart drop - Each individual drop target. Tokens: `filled`, `full`, `drag-active`, `drag-over`
|
|
527
|
+
* (a plain div cannot carry `:state()`, so the state names are part tokens here).
|
|
513
528
|
* @csspart message - Live validation message region (role="alert").
|
|
529
|
+
* @cssstate disabled - The interaction is switched off.
|
|
530
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
531
|
+
* @cssstate drag-active - A drag is in progress (was `dragzone-active`, `dragzone-enabled`).
|
|
514
532
|
*/
|
|
515
533
|
declare class QtiAssociateInteraction extends QtiAssociateInteraction_base {
|
|
516
534
|
#private;
|
|
@@ -565,8 +583,10 @@ declare const QtiChoiceInteraction_base: (abstract new (...args: any[]) => {}) &
|
|
|
565
583
|
* @slot - Default slot for `qti-simple-choice` elements.
|
|
566
584
|
*
|
|
567
585
|
* @csspart prompt - Wrapper around the prompt slot.
|
|
568
|
-
* @csspart
|
|
586
|
+
* @csspart choices - The slot holding the choices (was `slot`).
|
|
569
587
|
* @csspart message - Live validation message region (role="alert").
|
|
588
|
+
* @cssstate disabled - The interaction is switched off.
|
|
589
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
570
590
|
*/
|
|
571
591
|
declare class QtiChoiceInteraction extends QtiChoiceInteraction_base implements ChoicesInterface {
|
|
572
592
|
#private;
|
|
@@ -617,6 +637,9 @@ declare global {
|
|
|
617
637
|
* @slot prompt - The prompt shown above the textarea.
|
|
618
638
|
*
|
|
619
639
|
* @csspart textarea - The textarea input element.
|
|
640
|
+
* @csspart message - The validation message, hidden until `reportValidity` shows it.
|
|
641
|
+
* @cssstate disabled - The interaction is switched off.
|
|
642
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
620
643
|
*/
|
|
621
644
|
declare class QtiExtendedTextInteraction extends Interaction {
|
|
622
645
|
#private;
|
|
@@ -649,7 +672,9 @@ declare class QtiExtendedTextInteraction extends Interaction {
|
|
|
649
672
|
get value(): string | null;
|
|
650
673
|
set value(val: string | null);
|
|
651
674
|
validate(): boolean;
|
|
652
|
-
reportValidity(
|
|
675
|
+
reportValidity(options?: {
|
|
676
|
+
trigger?: ValidityTrigger;
|
|
677
|
+
}): boolean;
|
|
653
678
|
/** The prompt, above the field. */
|
|
654
679
|
protected renderPrompt(): unknown;
|
|
655
680
|
/** The field itself. */
|
|
@@ -689,12 +714,18 @@ declare const QtiGapMatchInteraction_base: (abstract new (...args: any[]) => Dra
|
|
|
689
714
|
* @slot drags - The draggable choice sources.
|
|
690
715
|
* @slot - Default slot for the drop targets (gaps).
|
|
691
716
|
*
|
|
692
|
-
* @csspart
|
|
693
|
-
* @csspart drops - Wrapper around the drop targets slot.
|
|
717
|
+
* @csspart bank - The slot holding the unplaced chips (was `drags`).
|
|
718
|
+
* @csspart drops - Wrapper around the drop targets slot. The targets themselves are `qti-gap`
|
|
719
|
+
* elements in the light DOM; they carry their own states (`drop`, `filled`, `full`, …).
|
|
694
720
|
* @csspart message - Live validation message region (role="alert").
|
|
721
|
+
* @cssstate disabled - The interaction is switched off.
|
|
722
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
723
|
+
* @cssstate drag-active - A drag is in progress (was `dragzone-active`, `dragzone-enabled`).
|
|
695
724
|
*/
|
|
696
725
|
declare class QtiGapMatchInteraction extends QtiGapMatchInteraction_base {
|
|
697
726
|
static styles: CSSResultGroup;
|
|
727
|
+
/** QTI's default (information model §5.57). */
|
|
728
|
+
maxAssociations: number;
|
|
698
729
|
render(): lit.TemplateResult<1>;
|
|
699
730
|
}
|
|
700
731
|
declare global {
|
|
@@ -709,10 +740,19 @@ declare global {
|
|
|
709
740
|
* @slot prompt - The prompt shown above the image.
|
|
710
741
|
* @slot - Default slot for hotspot choices layered over the image.
|
|
711
742
|
*
|
|
712
|
-
* @csspart line - Each line drawn by the candidate.
|
|
713
|
-
*
|
|
714
|
-
* @csspart point -
|
|
743
|
+
* @csspart line - Each line drawn by the candidate. Tokens: `answer-key` on a line of the correct
|
|
744
|
+
* response, drawn by `qti-corrections` (was the part `correct-line`).
|
|
745
|
+
* @csspart point - The in-progress line from the first chosen hotspot to the pointer.
|
|
746
|
+
*
|
|
747
|
+
* Interaction: click (or Enter / Space on a focused point) a point to start a line, then another
|
|
748
|
+
* point to finish it. The chosen start point carries `:state(checked)`; clicking it again, Escape,
|
|
749
|
+
* or a click on the image away from the points cancels. A point that already takes its `match-max`
|
|
750
|
+
* lines carries `:state(full)` and cannot start or end another. Click a line (or focus it and press
|
|
751
|
+
* Enter, Space, Delete or Backspace) to remove it. The response is `pair`, undirected: "B A" is the
|
|
752
|
+
* existing "A B", and a point cannot be paired with itself.
|
|
715
753
|
* @csspart message - Live validation message region (role="alert").
|
|
754
|
+
* @cssstate disabled - The interaction is switched off.
|
|
755
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
716
756
|
*/
|
|
717
757
|
declare class QtiGraphicAssociateInteraction extends Interaction {
|
|
718
758
|
#private;
|
|
@@ -722,8 +762,15 @@ declare class QtiGraphicAssociateInteraction extends Interaction {
|
|
|
722
762
|
grImage: any[];
|
|
723
763
|
private _response;
|
|
724
764
|
constructor();
|
|
765
|
+
/** Fewest associations a valid response holds (QTI `min-associations`, default 0). */
|
|
766
|
+
minAssociations: number;
|
|
767
|
+
/** Most associations a candidate can draw (QTI `max-associations`, default 1; 0 = no limit). */
|
|
768
|
+
maxAssociations: number;
|
|
725
769
|
reset(): void;
|
|
726
770
|
validate(): boolean;
|
|
771
|
+
reportValidity(options?: {
|
|
772
|
+
trigger?: ValidityTrigger;
|
|
773
|
+
}): boolean;
|
|
727
774
|
set response(val: string | string[] | null);
|
|
728
775
|
get response(): string[] | null;
|
|
729
776
|
/** Extension hook for optional SVG lines rendered above the candidate response. */
|
|
@@ -747,12 +794,17 @@ declare const QtiGraphicGapMatchInteraction_base: (abstract new (...args: any[])
|
|
|
747
794
|
* @slot - Default slot for the base image and hotspots.
|
|
748
795
|
*
|
|
749
796
|
* @csspart image - Wrapper around the image slot.
|
|
750
|
-
* @csspart
|
|
797
|
+
* @csspart bank - The slot holding the unplaced chips (was `drags`).
|
|
751
798
|
* @csspart message - Live validation message region (role="alert").
|
|
799
|
+
* @cssstate disabled - The interaction is switched off.
|
|
800
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
801
|
+
* @cssstate drag-active - A drag is in progress (was `dragzone-active`, `dragzone-enabled`).
|
|
752
802
|
*/
|
|
753
803
|
declare class QtiGraphicGapMatchInteraction extends QtiGraphicGapMatchInteraction_base {
|
|
754
804
|
#private;
|
|
755
805
|
static styles: CSSResultGroup;
|
|
806
|
+
/** QTI's default (information model §5.60). */
|
|
807
|
+
maxAssociations: number;
|
|
756
808
|
/**
|
|
757
809
|
* A hotspot's box is its authored `coords`, always (CONFIGURABILITY.md §4). The measured
|
|
758
810
|
* `--qti-dropzone-min-*` reservation is a floor on the hotspot's `min-width`/`min-height`, and it
|
|
@@ -789,6 +841,8 @@ declare const QtiGraphicOrderInteraction_base: (abstract new (...args: any[]) =>
|
|
|
789
841
|
* @slot - Default slot for the image and hotspot choices.
|
|
790
842
|
*
|
|
791
843
|
* @csspart message - Live validation message region (role="alert").
|
|
844
|
+
* @cssstate disabled - The interaction is switched off.
|
|
845
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
792
846
|
*/
|
|
793
847
|
declare class QtiGraphicOrderInteraction extends QtiGraphicOrderInteraction_base {
|
|
794
848
|
#private;
|
|
@@ -818,6 +872,10 @@ declare const QtiHotspotInteraction_base: (abstract new (...args: any[]) => Choi
|
|
|
818
872
|
*
|
|
819
873
|
* @slot prompt - The prompt shown above the image.
|
|
820
874
|
* @slot - Default slot for the image and hotspot choices.
|
|
875
|
+
*
|
|
876
|
+
* @csspart message - Live validation message region (role="alert").
|
|
877
|
+
* @cssstate disabled - The interaction is switched off.
|
|
878
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
821
879
|
*/
|
|
822
880
|
declare class QtiHotspotInteraction extends QtiHotspotInteraction_base {
|
|
823
881
|
#private;
|
|
@@ -848,6 +906,8 @@ declare const QtiHottextInteraction_base: (abstract new (...args: any[]) => Choi
|
|
|
848
906
|
* @slot - Default slot for the mixed content and `qti-hottext` choices.
|
|
849
907
|
*
|
|
850
908
|
* @csspart message - Live validation message region (role="alert").
|
|
909
|
+
* @cssstate disabled - The interaction is switched off.
|
|
910
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
851
911
|
*/
|
|
852
912
|
declare class QtiHottextInteraction extends QtiHottextInteraction_base {
|
|
853
913
|
static styles: CSSResultGroup;
|
|
@@ -883,12 +943,19 @@ declare const QtiInlineChoiceInteraction_base: (abstract new (...args: any[]) =>
|
|
|
883
943
|
*
|
|
884
944
|
* @csspart trigger - The dropdown trigger button.
|
|
885
945
|
* @csspart value - The currently displayed value inside the trigger.
|
|
886
|
-
* @csspart
|
|
946
|
+
* @csspart icon - The chevron inside the trigger (was `dropdown-icon`). Tokens: `open` while the
|
|
947
|
+
* menu is open (was `dropdown-icon-open`).
|
|
887
948
|
* @csspart menu - The popover element containing the option list.
|
|
888
|
-
* @csspart option -
|
|
889
|
-
* `
|
|
890
|
-
*
|
|
949
|
+
* @csspart option - The prompt row in the menu: the way back to "nothing chosen". Tokens: `prompt`;
|
|
950
|
+
* `selected` while nothing is chosen; `clear` when the row is the clear button (see
|
|
951
|
+
* `data-clear-label`). Were `option-prompt`, `option-selected`, `option-clear`. The other rows
|
|
952
|
+
* are `qti-inline-choice` elements and carry their own parts and states.
|
|
953
|
+
* @csspart option-content - The content wrapper inside the prompt row.
|
|
891
954
|
* @csspart clear-icon - The x glyph inside the clear row.
|
|
955
|
+
* @csspart message - The validation message, hidden until `reportValidity` shows it.
|
|
956
|
+
* @cssstate disabled - The interaction is switched off.
|
|
957
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
958
|
+
* @cssstate open - The menu is open. The chosen option carries `checked`, on the `qti-inline-choice`.
|
|
892
959
|
*/
|
|
893
960
|
declare class QtiInlineChoiceInteraction extends QtiInlineChoiceInteraction_base {
|
|
894
961
|
#private;
|
|
@@ -984,7 +1051,9 @@ declare class QtiInlineChoiceInteraction extends QtiInlineChoiceInteraction_base
|
|
|
984
1051
|
*/
|
|
985
1052
|
menuAutoSizeExtraWidth(): number;
|
|
986
1053
|
validate(): boolean;
|
|
987
|
-
reportValidity(
|
|
1054
|
+
reportValidity(options?: {
|
|
1055
|
+
trigger?: ValidityTrigger;
|
|
1056
|
+
}): boolean;
|
|
988
1057
|
reset(): void;
|
|
989
1058
|
/**
|
|
990
1059
|
* Captures an attribute-set response before slotted options have been
|
|
@@ -1008,15 +1077,17 @@ declare const QtiMatchInteraction_base: (abstract new (...args: any[]) => DragDr
|
|
|
1008
1077
|
* @customElement qti-match-interaction
|
|
1009
1078
|
*
|
|
1010
1079
|
* @attr {string} response-identifier - Required. Identifier of the bound response variable.
|
|
1011
|
-
* @attr {number} [max-associations=
|
|
1012
|
-
* means unlimited. QTI's
|
|
1013
|
-
*
|
|
1014
|
-
* @attr {
|
|
1080
|
+
* @attr {number} [max-associations=1] - Maximum pairings across the whole interaction; `0`
|
|
1081
|
+
* means unlimited. Without the attribute it is QTI's default of 1 (information model §5.89).
|
|
1082
|
+
* @attr {number} [min-associations=0] - Minimum pairings for a valid response (QTI's default).
|
|
1083
|
+
* @attr {string} data-first-column-header - QTI shared vocabulary, with `qti-match-tabular`: the
|
|
1084
|
+
* text of the table's top-left cell.
|
|
1015
1085
|
* @attr {boolean} [shuffle=false] - Requests shuffling of both match sets. Applied by the
|
|
1016
1086
|
* transform pipeline (`qti-transformers`), not by this element.
|
|
1017
|
-
* @attr {'qti-match-tabular'|'qti-choices-top'|'qti-choices-bottom'|'qti-choices-left'|'qti-choices-right'} class -
|
|
1087
|
+
* @attr {'qti-match-tabular'|'qti-header-hidden'|'qti-choices-top'|'qti-choices-bottom'|'qti-choices-left'|'qti-choices-right'} class -
|
|
1018
1088
|
* QTI shared presentation vocabulary. `qti-match-tabular` renders a checkbox/radio grid
|
|
1019
|
-
* instead of drag-and-drop
|
|
1089
|
+
* instead of drag-and-drop, and with it `qti-header-hidden` leaves out the column-header row;
|
|
1090
|
+
* the `qti-choices-*` values position the source set.
|
|
1020
1091
|
* @attr {boolean} [auto-size-dropzones=false] - Extension, not QTI. Sizes every drop target to
|
|
1021
1092
|
* the widest chip so placement does not reflow the layout. The mixin default is `true`; this
|
|
1022
1093
|
* interaction is the one that overrides it to `false`, because a match target is a category card
|
|
@@ -1030,19 +1101,22 @@ declare const QtiMatchInteraction_base: (abstract new (...args: any[]) => DragDr
|
|
|
1030
1101
|
* @slot - Default slot for the two match sets (drag-and-drop mode).
|
|
1031
1102
|
*
|
|
1032
1103
|
* @csspart grid - The tabular grid container.
|
|
1033
|
-
* @csspart corner - The top-left corner cell of the grid
|
|
1034
|
-
* @csspart
|
|
1035
|
-
* @csspart
|
|
1036
|
-
* @csspart rows
|
|
1037
|
-
* @csspart
|
|
1038
|
-
* @csspart
|
|
1039
|
-
* @csspart
|
|
1040
|
-
* @csspart control - The visible checkbox/radio box (tabular mode).
|
|
1041
|
-
*
|
|
1042
|
-
* `::part(control radio checked correct)`. These mirror the custom-state vocabulary;
|
|
1043
|
-
* are plain spans in the shadow root, so they cannot carry real `:state()`.
|
|
1044
|
-
* @csspart control-mark - The inner mark element; carries the same
|
|
1104
|
+
* @csspart corner - The top-left corner cell of the grid; shows `data-first-column-header`.
|
|
1105
|
+
* @csspart columns - Wrapper row for the column headers (was `cols-wrap`).
|
|
1106
|
+
* @csspart column-header - The column header slot (was `c-header`).
|
|
1107
|
+
* @csspart rows - Wrapper column for the row headers (was `rows-wrap`).
|
|
1108
|
+
* @csspart row-header - The row header slot (was `r-header`).
|
|
1109
|
+
* @csspart cells - The interactive cell grid area (was `checkbox-grid`).
|
|
1110
|
+
* @csspart cell - Each cell's label element (was `input-cell`).
|
|
1111
|
+
* @csspart control - The visible checkbox/radio box (tabular mode). Tokens: `radio` | `checkbox`,
|
|
1112
|
+
* `checked`, `candidate-correct` | `candidate-incorrect` — e.g.
|
|
1113
|
+
* `::part(control radio checked candidate-correct)`. These mirror the custom-state vocabulary;
|
|
1114
|
+
* the cells are plain spans in the shadow root, so they cannot carry real `:state()`.
|
|
1115
|
+
* @csspart control-mark - The inner mark element; carries the same tokens as `control`.
|
|
1045
1116
|
* @csspart message - Live validation message region (role="alert").
|
|
1117
|
+
* @cssstate disabled - The interaction is switched off.
|
|
1118
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
1119
|
+
* @cssstate drag-active - A drag is in progress (was `dragzone-active`, `dragzone-enabled`).
|
|
1046
1120
|
*/
|
|
1047
1121
|
declare class QtiMatchInteraction extends QtiMatchInteraction_base {
|
|
1048
1122
|
static styles: CSSResultGroup;
|
|
@@ -1059,10 +1133,14 @@ declare class QtiMatchInteraction extends QtiMatchInteraction_base {
|
|
|
1059
1133
|
* their drops are exactly the widest chip plus the inset.
|
|
1060
1134
|
*/
|
|
1061
1135
|
autoSizeDropzones: boolean;
|
|
1136
|
+
/** QTI's defaults (information model §5.89). */
|
|
1137
|
+
maxAssociations: number;
|
|
1138
|
+
minAssociations: number;
|
|
1062
1139
|
protected sourceChoices: QtiSimpleAssociableChoice[];
|
|
1063
1140
|
protected targetChoices: QtiSimpleAssociableChoice[];
|
|
1064
1141
|
protected lastCheckedRadio: HTMLInputElement | null;
|
|
1065
1142
|
class: string;
|
|
1143
|
+
dataFirstColumnHeader: string;
|
|
1066
1144
|
protected _response: string | string[];
|
|
1067
1145
|
get response(): string[];
|
|
1068
1146
|
set response(val: string[]);
|
|
@@ -1118,11 +1196,16 @@ declare const QtiOrderInteraction_base: (abstract new (...args: any[]) => DragDr
|
|
|
1118
1196
|
* @slot prompt - The prompt shown above the interaction.
|
|
1119
1197
|
* @slot drags - The draggable choice sources.
|
|
1120
1198
|
*
|
|
1121
|
-
* @csspart container - The outer container wrapping
|
|
1122
|
-
* @csspart
|
|
1199
|
+
* @csspart container - The outer container wrapping the bank and the drops.
|
|
1200
|
+
* @csspart bank - The slot holding the unplaced chips (was `drags`).
|
|
1123
1201
|
* @csspart drops - The drop-target region.
|
|
1124
|
-
* @csspart drop - Each individual drop target.
|
|
1125
|
-
*
|
|
1202
|
+
* @csspart drop - Each individual drop target. Tokens: `filled`, `full`, `drag-active`, `drag-over`
|
|
1203
|
+
* (a plain div cannot carry `:state()`, so the state names are part tokens here).
|
|
1204
|
+
* @csspart chip - A choice placed into a drop target (was `drag`).
|
|
1205
|
+
* @csspart message - Live validation message region (role="alert").
|
|
1206
|
+
* @cssstate disabled - The interaction is switched off.
|
|
1207
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
1208
|
+
* @cssstate drag-active - A drag is in progress (was `dragzone-active`, `dragzone-enabled`).
|
|
1126
1209
|
*/
|
|
1127
1210
|
declare class QtiOrderInteraction extends QtiOrderInteraction_base {
|
|
1128
1211
|
static styles: lit.CSSResult[];
|
|
@@ -1255,6 +1338,15 @@ declare const inlineScriptText: (text: string) => string;
|
|
|
1255
1338
|
declare const inlineStyleText: (text: string) => string;
|
|
1256
1339
|
/** A response value as this interaction holds it: a record response is its field map. */
|
|
1257
1340
|
type PciResponseValue = string | string[] | RecordValue;
|
|
1341
|
+
/**
|
|
1342
|
+
* Portable custom interaction (PCI): hosts a third-party interaction module.
|
|
1343
|
+
*
|
|
1344
|
+
* No parts: the PCI renders its own markup into the default slot (or into an iframe) and the
|
|
1345
|
+
* element adds nothing of its own to theme.
|
|
1346
|
+
*
|
|
1347
|
+
* @cssstate disabled - The interaction is switched off.
|
|
1348
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
1349
|
+
*/
|
|
1258
1350
|
declare class QtiPortableCustomInteraction extends Interaction {
|
|
1259
1351
|
#private;
|
|
1260
1352
|
protected _iframeLoaded: boolean;
|
|
@@ -1467,7 +1559,11 @@ declare global {
|
|
|
1467
1559
|
* @slot prompt - The prompt shown above the image.
|
|
1468
1560
|
* @slot - Default slot for the base image.
|
|
1469
1561
|
*
|
|
1470
|
-
* @csspart point - Each selected point marker.
|
|
1562
|
+
* @csspart point - Each selected point marker. Tokens: `candidate-correct` |
|
|
1563
|
+
* `candidate-incorrect` when `qti-corrections` has marked it.
|
|
1564
|
+
* @csspart message - The validation message, hidden until `reportValidity` shows it.
|
|
1565
|
+
* @cssstate disabled - The interaction is switched off.
|
|
1566
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
1471
1567
|
* @cssprop --qti-select-point-icon - Marker mask image (SVG data URL). Should be a solid silhouette for color inheritance.
|
|
1472
1568
|
* @cssprop --qti-select-point-marker-size - Marker size.
|
|
1473
1569
|
* @cssprop --qti-select-point-marker-anchor - Vertical translate anchor (`-100%` for bottom tip, `-50%` for center).
|
|
@@ -1492,6 +1588,11 @@ declare class QtiSelectPointInteraction extends Interaction {
|
|
|
1492
1588
|
*/
|
|
1493
1589
|
areaMappings: string | null;
|
|
1494
1590
|
private _areaEntries;
|
|
1591
|
+
/**
|
|
1592
|
+
* Every route into the response (a click, a removed marker, a restore, a reset) updates the form
|
|
1593
|
+
* value and the validity; a click or a removal also reports, as a change.
|
|
1594
|
+
*/
|
|
1595
|
+
protected _handleResponseChange: () => void;
|
|
1495
1596
|
protected _handleAreaMappingsChange: () => void;
|
|
1496
1597
|
protected get _effectiveAreaEntries(): QtiAreaMapEntry[];
|
|
1497
1598
|
connectedCallback(): void;
|
|
@@ -1507,7 +1608,9 @@ declare class QtiSelectPointInteraction extends Interaction {
|
|
|
1507
1608
|
protected positionOverlayElements(elements: Iterable<HTMLElement>): void;
|
|
1508
1609
|
render(): lit.TemplateResult<1>;
|
|
1509
1610
|
validate(): boolean;
|
|
1510
|
-
reportValidity(
|
|
1611
|
+
reportValidity(options?: {
|
|
1612
|
+
trigger?: ValidityTrigger;
|
|
1613
|
+
}): boolean;
|
|
1511
1614
|
firstUpdated(): void;
|
|
1512
1615
|
disconnectedCallback(): void;
|
|
1513
1616
|
}
|
|
@@ -1526,9 +1629,11 @@ declare global {
|
|
|
1526
1629
|
* @csspart bounds - The min/max bounds label wrapper.
|
|
1527
1630
|
* @csspart ticks - The tick marks along the rail.
|
|
1528
1631
|
* @csspart rail - The rail element the knob slides along.
|
|
1529
|
-
* @csspart knob - The draggable knob.
|
|
1530
|
-
*
|
|
1531
|
-
* @csspart
|
|
1632
|
+
* @csspart knob - The draggable knob. Tokens: `answer-key` on the ghost knob `qti-corrections`
|
|
1633
|
+
* draws at the correct response (was the part `knob-correct`).
|
|
1634
|
+
* @csspart value - The current value display.
|
|
1635
|
+
* @cssstate disabled - The interaction is switched off.
|
|
1636
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
1532
1637
|
*/
|
|
1533
1638
|
declare class QtiSliderInteraction extends Interaction {
|
|
1534
1639
|
#private;
|
|
@@ -1576,9 +1681,12 @@ declare global {
|
|
|
1576
1681
|
* single-line input has no formatting to render: it can show neither preserved line breaks nor
|
|
1577
1682
|
* markup. The field is always plain text, so this is not planned either.
|
|
1578
1683
|
*
|
|
1579
|
-
* @csspart answer - The answer
|
|
1684
|
+
* @csspart answer-key - The correct answer, revealed above the field when the correct response is
|
|
1685
|
+
* shown (was `answer`).
|
|
1580
1686
|
* @csspart input - The text input element.
|
|
1581
1687
|
* @csspart message - The validation message, hidden until `reportValidity` shows it.
|
|
1688
|
+
* @cssstate disabled - The interaction is switched off.
|
|
1689
|
+
* @cssstate readonly - The interaction is frozen: it shows its value and takes no input.
|
|
1582
1690
|
*/
|
|
1583
1691
|
declare class QtiTextEntryInteraction extends Interaction {
|
|
1584
1692
|
static styles: CSSResultGroup;
|
|
@@ -1602,7 +1710,9 @@ declare class QtiTextEntryInteraction extends Interaction {
|
|
|
1602
1710
|
protected renderValidationMessage(): unknown;
|
|
1603
1711
|
render(): lit.TemplateResult<1>;
|
|
1604
1712
|
protected textChanged(event: Event): void;
|
|
1605
|
-
reportValidity(
|
|
1713
|
+
reportValidity(options?: {
|
|
1714
|
+
trigger?: ValidityTrigger;
|
|
1715
|
+
}): boolean;
|
|
1606
1716
|
reset(): void;
|
|
1607
1717
|
}
|
|
1608
1718
|
declare global {
|
|
@@ -27,6 +27,7 @@ type transformItemApi = {
|
|
|
27
27
|
convertCDATAtoComment: () => transformItemApi;
|
|
28
28
|
shuffleInteractions: (seed?: string | number | null) => transformItemApi;
|
|
29
29
|
stripStyleSheets: () => transformItemApi;
|
|
30
|
+
validateBindings: () => transformItemApi;
|
|
30
31
|
html: () => string;
|
|
31
32
|
xml: () => string;
|
|
32
33
|
htmlDoc: (registry?: CustomElementRegistry) => DocumentFragment;
|