@citolab/qti-components 9.2.0 → 9.3.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.
- package/cdn/index.global.js +1 -1
- package/cdn/index.js +331 -214
- package/dist/{chunk-ZOQVTG5L.js → chunk-7VDR765S.js} +2 -2
- package/dist/{chunk-GPGUXZ3X.js → chunk-CQHGVPOT.js} +2 -2
- package/dist/{chunk-7PXUE2GR.js → chunk-TDWLV5OD.js} +497 -125
- package/dist/chunk-TDWLV5OD.js.map +1 -0
- package/dist/corrections.d.ts +1 -1
- package/dist/corrections.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/qti-components-jsx.d.ts +291 -18
- package/dist/{qti-test.d-BfAZE6UF.d.ts → qti-test.d-D-ELy0Mr.d.ts} +91 -13
- package/dist/test.d.ts +3 -3
- package/dist/test.js +4 -2
- package/package.json +2 -2
- package/dist/chunk-7PXUE2GR.js.map +0 -1
- /package/dist/{chunk-ZOQVTG5L.js.map → chunk-7VDR765S.js.map} +0 -0
- /package/dist/{chunk-GPGUXZ3X.js.map → chunk-CQHGVPOT.js.map} +0 -0
package/dist/corrections.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { g as QtiGapText, k as QtiHotspotChoice, m as QtiHottext, v as QtiSimple
|
|
|
6
6
|
import { QtiAssessmentItem } from './elements.js';
|
|
7
7
|
import { Q as QtiItem } from './qti-item.d-D_-9_0e6.js';
|
|
8
8
|
import { V as View, C as ComputedItemContext } from './session.context.d-Cjs0BkJB.js';
|
|
9
|
-
import { h as QtiTest, T as TestCheckItem, q as TestNavigation } from './qti-test.d-
|
|
9
|
+
import { h as QtiTest, T as TestCheckItem, q as TestNavigation } from './qti-test.d-D-ELy0Mr.js';
|
|
10
10
|
import { a as ComputedItem, C as ComputedContext } from './computed.types.d-DB5gfOh9.js';
|
|
11
11
|
import './config.context.d-BvU9r-Mg.js';
|
|
12
12
|
import './interaction.interface.d-CvjHM2bi.js';
|
package/dist/corrections.js
CHANGED
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
TestNavigationCorrection,
|
|
35
35
|
TestShowCorrectResponse,
|
|
36
36
|
correctionPart
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-CQHGVPOT.js";
|
|
38
38
|
import {
|
|
39
39
|
qtiTestElements
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-TDWLV5OD.js";
|
|
41
41
|
import {
|
|
42
42
|
qtiContentElements
|
|
43
43
|
} from "./chunk-REKCRWJV.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as ITestNavigationMixin, a as ItemRefTemplateModel, Q as QtiAssessmentItemRef, b as QtiAssessmentSection, c as QtiAssessmentTest, d as QtiItemSessionControl, e as QtiNumberSelected, f as QtiOutcomeProcessing, g as QtiOutcomeProcessingProcessor, h as QtiTest, i as QtiTestFeedback, j as QtiTestPart, k as QtiTestVariables, l as QtiTestVariablesExpression, S as SpeechState, T as TestCheckItem, m as TestContainer, n as TestEndAttempt, o as TestItemLink, p as TestItemToSpeech, q as TestNavigation, r as TestNext, s as TestPagingButtonsStamp, t as TestPrev, u as TestPrintContext, v as TestPrintVariables, w as TestScoringButtons, x as TestScoringFeedback, y as TestSectionButtonsStamp, z as TestSectionLink, A as TestStamp, B as TestTtsNext, C as TestTtsPause, D as
|
|
1
|
+
export { I as ITestNavigationMixin, a as ItemRefTemplateModel, Q as QtiAssessmentItemRef, b as QtiAssessmentSection, c as QtiAssessmentTest, d as QtiItemSessionControl, e as QtiNumberSelected, f as QtiOutcomeProcessing, g as QtiOutcomeProcessingProcessor, h as QtiTest, i as QtiTestFeedback, j as QtiTestPart, k as QtiTestVariables, l as QtiTestVariablesExpression, S as SpeechState, T as TestCheckItem, m as TestContainer, n as TestEndAttempt, o as TestItemLink, p as TestItemToSpeech, q as TestNavigation, r as TestNext, s as TestPagingButtonsStamp, t as TestPrev, u as TestPrintContext, v as TestPrintVariables, w as TestScoringButtons, x as TestScoringFeedback, y as TestSectionButtonsStamp, z as TestSectionLink, A as TestStamp, B as TestTtsNext, C as TestTtsPause, D as TestTtsPick, E as TestTtsPlay, F as TestTtsPrev, G as TestTtsResume, H as TestTtsStop, J as TestView, K as TestViewToggle, L as TtsContext, M as ttsContext } from './qti-test.d-D-ELy0Mr.js';
|
|
2
2
|
export { IMyQtiTest, IQtiTest, ITestProcessingMixin } from './test.js';
|
|
3
3
|
export { I as ItemContainer, a as ItemPrintVariables, Q as QtiItem } from './qti-item.d-D_-9_0e6.js';
|
|
4
4
|
export { ItemViewMixin } from './item.js';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-7VDR765S.js";
|
|
2
2
|
import {
|
|
3
3
|
CandidateCorrectionMixin,
|
|
4
4
|
ChoiceCorrectionMixin,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
TestNavigationCorrection,
|
|
36
36
|
TestShowCorrectResponse,
|
|
37
37
|
correctionPart
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-CQHGVPOT.js";
|
|
39
39
|
import {
|
|
40
40
|
QtiAssessmentItemRef,
|
|
41
41
|
QtiAssessmentSection,
|
|
@@ -67,6 +67,7 @@ import {
|
|
|
67
67
|
TestStamp,
|
|
68
68
|
TestTtsNext,
|
|
69
69
|
TestTtsPause,
|
|
70
|
+
TestTtsPick,
|
|
70
71
|
TestTtsPlay,
|
|
71
72
|
TestTtsPrev,
|
|
72
73
|
TestTtsResume,
|
|
@@ -74,7 +75,7 @@ import {
|
|
|
74
75
|
TestView,
|
|
75
76
|
TestViewToggle,
|
|
76
77
|
ttsContext
|
|
77
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-TDWLV5OD.js";
|
|
78
79
|
import "./chunk-JLZCZVRX.js";
|
|
79
80
|
import {
|
|
80
81
|
QtiAssessmentItem,
|
|
@@ -482,6 +483,7 @@ export {
|
|
|
482
483
|
TestStamp,
|
|
483
484
|
TestTtsNext,
|
|
484
485
|
TestTtsPause,
|
|
486
|
+
TestTtsPick,
|
|
485
487
|
TestTtsPlay,
|
|
486
488
|
TestTtsPrev,
|
|
487
489
|
TestTtsResume,
|
|
@@ -90,6 +90,7 @@ import type {
|
|
|
90
90
|
TestTtsResume,
|
|
91
91
|
TestTtsPrev,
|
|
92
92
|
TestTtsPlay,
|
|
93
|
+
TestTtsPick,
|
|
93
94
|
TestTtsPause,
|
|
94
95
|
TestTtsNext,
|
|
95
96
|
TestItemToSpeech,
|
|
@@ -4645,15 +4646,27 @@ export type TestItemLinkSolidJsProps = {
|
|
|
4645
4646
|
};
|
|
4646
4647
|
|
|
4647
4648
|
export type TestItemToSpeechProps = {
|
|
4648
|
-
/**
|
|
4649
|
+
/** Fallback language when neither the item content nor the document declares one. */
|
|
4649
4650
|
language?: TestItemToSpeech["language"] | undefined;
|
|
4651
|
+
/** Identifier of the `qti-assessment-item-ref` this player reads. Leave unset to follow the
|
|
4652
|
+
navigation cursor (`navItemRefId`) instead. */
|
|
4653
|
+
"item-ref-id"?: TestItemToSpeech["itemRefId"] | undefined;
|
|
4654
|
+
/** Identifier of the `qti-assessment-item-ref` this player reads. Leave unset to follow the
|
|
4655
|
+
navigation cursor (`navItemRefId`) instead. */
|
|
4656
|
+
itemRefId?: TestItemToSpeech["itemRefId"] | undefined;
|
|
4650
4657
|
/** */
|
|
4651
4658
|
_ttsContext?: TestItemToSpeech["_ttsContext"] | undefined;
|
|
4652
4659
|
};
|
|
4653
4660
|
|
|
4654
4661
|
export type TestItemToSpeechSolidJsProps = {
|
|
4655
|
-
/**
|
|
4662
|
+
/** Fallback language when neither the item content nor the document declares one. */
|
|
4656
4663
|
"prop:language"?: TestItemToSpeech["language"] | undefined;
|
|
4664
|
+
/** Identifier of the `qti-assessment-item-ref` this player reads. Leave unset to follow the
|
|
4665
|
+
navigation cursor (`navItemRefId`) instead. */
|
|
4666
|
+
"attr:item-ref-id"?: TestItemToSpeech["itemRefId"] | undefined;
|
|
4667
|
+
/** Identifier of the `qti-assessment-item-ref` this player reads. Leave unset to follow the
|
|
4668
|
+
navigation cursor (`navItemRefId`) instead. */
|
|
4669
|
+
"prop:itemRefId"?: TestItemToSpeech["itemRefId"] | undefined;
|
|
4657
4670
|
/** */
|
|
4658
4671
|
"prop:_ttsContext"?: TestItemToSpeech["_ttsContext"] | undefined;
|
|
4659
4672
|
|
|
@@ -4663,54 +4676,141 @@ export type TestItemToSpeechSolidJsProps = {
|
|
|
4663
4676
|
textContent?: string | number | undefined;
|
|
4664
4677
|
};
|
|
4665
4678
|
|
|
4666
|
-
export type TestTtsPlayProps = {
|
|
4679
|
+
export type TestTtsPlayProps = {
|
|
4680
|
+
/** Accessible name of the button while speech is playing; see `label`. */
|
|
4681
|
+
"pause-label"?: TestTtsPlay["pauseLabel"] | undefined;
|
|
4682
|
+
/** Accessible name of the button while speech is playing; see `label`. */
|
|
4683
|
+
pauseLabel?: TestTtsPlay["pauseLabel"] | undefined;
|
|
4684
|
+
/** Accessible name of the button. Without it the default icon carries an English name, and
|
|
4685
|
+
slotted content names the button by its text; set it when you slot an icon of your own,
|
|
4686
|
+
which has no text to be named by. */
|
|
4687
|
+
label?: TestTtsPlay["label"] | undefined;
|
|
4688
|
+
};
|
|
4667
4689
|
|
|
4668
4690
|
export type TestTtsPlaySolidJsProps = {
|
|
4691
|
+
/** Accessible name of the button while speech is playing; see `label`. */
|
|
4692
|
+
"attr:pause-label"?: TestTtsPlay["pauseLabel"] | undefined;
|
|
4693
|
+
/** Accessible name of the button while speech is playing; see `label`. */
|
|
4694
|
+
"prop:pauseLabel"?: TestTtsPlay["pauseLabel"] | undefined;
|
|
4695
|
+
/** Accessible name of the button. Without it the default icon carries an English name, and
|
|
4696
|
+
slotted content names the button by its text; set it when you slot an icon of your own,
|
|
4697
|
+
which has no text to be named by. */
|
|
4698
|
+
"prop:label"?: TestTtsPlay["label"] | undefined;
|
|
4699
|
+
|
|
4669
4700
|
/** Set the innerHTML of the element */
|
|
4670
4701
|
innerHTML?: string | undefined;
|
|
4671
4702
|
/** Set the textContent of the element */
|
|
4672
4703
|
textContent?: string | number | undefined;
|
|
4673
4704
|
};
|
|
4674
4705
|
|
|
4675
|
-
export type TestTtsPauseProps = {
|
|
4706
|
+
export type TestTtsPauseProps = {
|
|
4707
|
+
/** Accessible name of the button. Without it the default icon carries an English name, and
|
|
4708
|
+
slotted content names the button by its text; set it when you slot an icon of your own,
|
|
4709
|
+
which has no text to be named by. */
|
|
4710
|
+
label?: TestTtsPause["label"] | undefined;
|
|
4711
|
+
};
|
|
4676
4712
|
|
|
4677
4713
|
export type TestTtsPauseSolidJsProps = {
|
|
4714
|
+
/** Accessible name of the button. Without it the default icon carries an English name, and
|
|
4715
|
+
slotted content names the button by its text; set it when you slot an icon of your own,
|
|
4716
|
+
which has no text to be named by. */
|
|
4717
|
+
"prop:label"?: TestTtsPause["label"] | undefined;
|
|
4718
|
+
|
|
4678
4719
|
/** Set the innerHTML of the element */
|
|
4679
4720
|
innerHTML?: string | undefined;
|
|
4680
4721
|
/** Set the textContent of the element */
|
|
4681
4722
|
textContent?: string | number | undefined;
|
|
4682
4723
|
};
|
|
4683
4724
|
|
|
4684
|
-
export type TestTtsResumeProps = {
|
|
4725
|
+
export type TestTtsResumeProps = {
|
|
4726
|
+
/** Accessible name of the button. Without it the default icon carries an English name, and
|
|
4727
|
+
slotted content names the button by its text; set it when you slot an icon of your own,
|
|
4728
|
+
which has no text to be named by. */
|
|
4729
|
+
label?: TestTtsResume["label"] | undefined;
|
|
4730
|
+
};
|
|
4685
4731
|
|
|
4686
4732
|
export type TestTtsResumeSolidJsProps = {
|
|
4733
|
+
/** Accessible name of the button. Without it the default icon carries an English name, and
|
|
4734
|
+
slotted content names the button by its text; set it when you slot an icon of your own,
|
|
4735
|
+
which has no text to be named by. */
|
|
4736
|
+
"prop:label"?: TestTtsResume["label"] | undefined;
|
|
4737
|
+
|
|
4687
4738
|
/** Set the innerHTML of the element */
|
|
4688
4739
|
innerHTML?: string | undefined;
|
|
4689
4740
|
/** Set the textContent of the element */
|
|
4690
4741
|
textContent?: string | number | undefined;
|
|
4691
4742
|
};
|
|
4692
4743
|
|
|
4693
|
-
export type TestTtsStopProps = {
|
|
4744
|
+
export type TestTtsStopProps = {
|
|
4745
|
+
/** Accessible name of the button. Without it the default icon carries an English name, and
|
|
4746
|
+
slotted content names the button by its text; set it when you slot an icon of your own,
|
|
4747
|
+
which has no text to be named by. */
|
|
4748
|
+
label?: TestTtsStop["label"] | undefined;
|
|
4749
|
+
};
|
|
4694
4750
|
|
|
4695
4751
|
export type TestTtsStopSolidJsProps = {
|
|
4752
|
+
/** Accessible name of the button. Without it the default icon carries an English name, and
|
|
4753
|
+
slotted content names the button by its text; set it when you slot an icon of your own,
|
|
4754
|
+
which has no text to be named by. */
|
|
4755
|
+
"prop:label"?: TestTtsStop["label"] | undefined;
|
|
4756
|
+
|
|
4696
4757
|
/** Set the innerHTML of the element */
|
|
4697
4758
|
innerHTML?: string | undefined;
|
|
4698
4759
|
/** Set the textContent of the element */
|
|
4699
4760
|
textContent?: string | number | undefined;
|
|
4700
4761
|
};
|
|
4701
4762
|
|
|
4702
|
-
export type TestTtsPrevProps = {
|
|
4763
|
+
export type TestTtsPrevProps = {
|
|
4764
|
+
/** Accessible name of the button. Without it the default icon carries an English name, and
|
|
4765
|
+
slotted content names the button by its text; set it when you slot an icon of your own,
|
|
4766
|
+
which has no text to be named by. */
|
|
4767
|
+
label?: TestTtsPrev["label"] | undefined;
|
|
4768
|
+
};
|
|
4703
4769
|
|
|
4704
4770
|
export type TestTtsPrevSolidJsProps = {
|
|
4771
|
+
/** Accessible name of the button. Without it the default icon carries an English name, and
|
|
4772
|
+
slotted content names the button by its text; set it when you slot an icon of your own,
|
|
4773
|
+
which has no text to be named by. */
|
|
4774
|
+
"prop:label"?: TestTtsPrev["label"] | undefined;
|
|
4775
|
+
|
|
4705
4776
|
/** Set the innerHTML of the element */
|
|
4706
4777
|
innerHTML?: string | undefined;
|
|
4707
4778
|
/** Set the textContent of the element */
|
|
4708
4779
|
textContent?: string | number | undefined;
|
|
4709
4780
|
};
|
|
4710
4781
|
|
|
4711
|
-
export type TestTtsNextProps = {
|
|
4782
|
+
export type TestTtsNextProps = {
|
|
4783
|
+
/** Accessible name of the button. Without it the default icon carries an English name, and
|
|
4784
|
+
slotted content names the button by its text; set it when you slot an icon of your own,
|
|
4785
|
+
which has no text to be named by. */
|
|
4786
|
+
label?: TestTtsNext["label"] | undefined;
|
|
4787
|
+
};
|
|
4712
4788
|
|
|
4713
4789
|
export type TestTtsNextSolidJsProps = {
|
|
4790
|
+
/** Accessible name of the button. Without it the default icon carries an English name, and
|
|
4791
|
+
slotted content names the button by its text; set it when you slot an icon of your own,
|
|
4792
|
+
which has no text to be named by. */
|
|
4793
|
+
"prop:label"?: TestTtsNext["label"] | undefined;
|
|
4794
|
+
|
|
4795
|
+
/** Set the innerHTML of the element */
|
|
4796
|
+
innerHTML?: string | undefined;
|
|
4797
|
+
/** Set the textContent of the element */
|
|
4798
|
+
textContent?: string | number | undefined;
|
|
4799
|
+
};
|
|
4800
|
+
|
|
4801
|
+
export type TestTtsPickProps = {
|
|
4802
|
+
/** Accessible name of the button. Without it the default icon carries an English name, and
|
|
4803
|
+
slotted content names the button by its text; set it when you slot an icon of your own,
|
|
4804
|
+
which has no text to be named by. */
|
|
4805
|
+
label?: TestTtsPick["label"] | undefined;
|
|
4806
|
+
};
|
|
4807
|
+
|
|
4808
|
+
export type TestTtsPickSolidJsProps = {
|
|
4809
|
+
/** Accessible name of the button. Without it the default icon carries an English name, and
|
|
4810
|
+
slotted content names the button by its text; set it when you slot an icon of your own,
|
|
4811
|
+
which has no text to be named by. */
|
|
4812
|
+
"prop:label"?: TestTtsPick["label"] | undefined;
|
|
4813
|
+
|
|
4714
4814
|
/** Set the innerHTML of the element */
|
|
4715
4815
|
innerHTML?: string | undefined;
|
|
4716
4816
|
/** Set the textContent of the element */
|
|
@@ -9426,7 +9526,9 @@ export type CustomElements = {
|
|
|
9426
9526
|
*
|
|
9427
9527
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
9428
9528
|
*
|
|
9429
|
-
* - `language`:
|
|
9529
|
+
* - `language`: Fallback language when neither the item content nor the document declares one.
|
|
9530
|
+
* - `item-ref-id`/`itemRefId`: Identifier of the `qti-assessment-item-ref` this player reads. Leave unset to follow the
|
|
9531
|
+
* navigation cursor (`navItemRefId`) instead.
|
|
9430
9532
|
* - `_ttsContext`: undefined (property only)
|
|
9431
9533
|
*
|
|
9432
9534
|
* ## CSS States
|
|
@@ -9434,6 +9536,7 @@ export type CustomElements = {
|
|
|
9434
9536
|
* These can be used to apply styling when a component is in a given state.
|
|
9435
9537
|
*
|
|
9436
9538
|
* - `idle`: No speech active
|
|
9539
|
+
* - `picking`: Pick mode: all reading elements highlighted, waiting for a click
|
|
9437
9540
|
* - `playing`: Speech is playing
|
|
9438
9541
|
* - `paused`: Speech is paused
|
|
9439
9542
|
*/
|
|
@@ -9443,7 +9546,17 @@ export type CustomElements = {
|
|
|
9443
9546
|
|
|
9444
9547
|
/**
|
|
9445
9548
|
* Play/pause/resume toggle button — always enabled, cycles through states.
|
|
9446
|
-
* Use named slots `play` and `pause` to customise the icons/labels independently
|
|
9549
|
+
* Use named slots `play` and `pause` to customise the icons/labels independently; `label` and
|
|
9550
|
+
* `pause-label` name the button in each state (set them when the slotted content is an icon).
|
|
9551
|
+
*
|
|
9552
|
+
* ## Attributes & Properties
|
|
9553
|
+
*
|
|
9554
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
9555
|
+
*
|
|
9556
|
+
* - `pause-label`/`pauseLabel`: Accessible name of the button while speech is playing; see `label`.
|
|
9557
|
+
* - `label`: Accessible name of the button. Without it the default icon carries an English name, and
|
|
9558
|
+
* slotted content names the button by its text; set it when you slot an icon of your own,
|
|
9559
|
+
* which has no text to be named by.
|
|
9447
9560
|
*
|
|
9448
9561
|
* ## CSS Parts
|
|
9449
9562
|
*
|
|
@@ -9464,6 +9577,14 @@ export type CustomElements = {
|
|
|
9464
9577
|
/**
|
|
9465
9578
|
* Pause button — enabled only when playing.
|
|
9466
9579
|
*
|
|
9580
|
+
* ## Attributes & Properties
|
|
9581
|
+
*
|
|
9582
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
9583
|
+
*
|
|
9584
|
+
* - `label`: Accessible name of the button. Without it the default icon carries an English name, and
|
|
9585
|
+
* slotted content names the button by its text; set it when you slot an icon of your own,
|
|
9586
|
+
* which has no text to be named by.
|
|
9587
|
+
*
|
|
9467
9588
|
* ## CSS Parts
|
|
9468
9589
|
*
|
|
9469
9590
|
* Custom selectors for styling elements within the component.
|
|
@@ -9483,6 +9604,14 @@ export type CustomElements = {
|
|
|
9483
9604
|
/**
|
|
9484
9605
|
* Resume button — enabled only when paused.
|
|
9485
9606
|
*
|
|
9607
|
+
* ## Attributes & Properties
|
|
9608
|
+
*
|
|
9609
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
9610
|
+
*
|
|
9611
|
+
* - `label`: Accessible name of the button. Without it the default icon carries an English name, and
|
|
9612
|
+
* slotted content names the button by its text; set it when you slot an icon of your own,
|
|
9613
|
+
* which has no text to be named by.
|
|
9614
|
+
*
|
|
9486
9615
|
* ## CSS Parts
|
|
9487
9616
|
*
|
|
9488
9617
|
* Custom selectors for styling elements within the component.
|
|
@@ -9500,7 +9629,15 @@ export type CustomElements = {
|
|
|
9500
9629
|
>;
|
|
9501
9630
|
|
|
9502
9631
|
/**
|
|
9503
|
-
* Stop button — enabled when playing or
|
|
9632
|
+
* Stop button — enabled when playing, paused, or in pick mode (where it leaves pick mode).
|
|
9633
|
+
*
|
|
9634
|
+
* ## Attributes & Properties
|
|
9635
|
+
*
|
|
9636
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
9637
|
+
*
|
|
9638
|
+
* - `label`: Accessible name of the button. Without it the default icon carries an English name, and
|
|
9639
|
+
* slotted content names the button by its text; set it when you slot an icon of your own,
|
|
9640
|
+
* which has no text to be named by.
|
|
9504
9641
|
*
|
|
9505
9642
|
* ## CSS Parts
|
|
9506
9643
|
*
|
|
@@ -9520,7 +9657,17 @@ export type CustomElements = {
|
|
|
9520
9657
|
|
|
9521
9658
|
/**
|
|
9522
9659
|
* Prev-element button — moves cursor to the previous reading element and pauses.
|
|
9523
|
-
* Disabled at the first element
|
|
9660
|
+
* Disabled at the first element. Reading elements are collected lazily, so an element count
|
|
9661
|
+
* of 0 means "not looked yet" rather than "nothing to read": the button stays enabled and the
|
|
9662
|
+
* first click collects them.
|
|
9663
|
+
*
|
|
9664
|
+
* ## Attributes & Properties
|
|
9665
|
+
*
|
|
9666
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
9667
|
+
*
|
|
9668
|
+
* - `label`: Accessible name of the button. Without it the default icon carries an English name, and
|
|
9669
|
+
* slotted content names the button by its text; set it when you slot an icon of your own,
|
|
9670
|
+
* which has no text to be named by.
|
|
9524
9671
|
*
|
|
9525
9672
|
* ## CSS Parts
|
|
9526
9673
|
*
|
|
@@ -9540,7 +9687,16 @@ export type CustomElements = {
|
|
|
9540
9687
|
|
|
9541
9688
|
/**
|
|
9542
9689
|
* Next-element button — moves cursor to the next reading element and pauses.
|
|
9543
|
-
* Disabled at the last element
|
|
9690
|
+
* Disabled at the last element; enabled while the elements have not been collected yet
|
|
9691
|
+
* (see `TestTtsPrev`).
|
|
9692
|
+
*
|
|
9693
|
+
* ## Attributes & Properties
|
|
9694
|
+
*
|
|
9695
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
9696
|
+
*
|
|
9697
|
+
* - `label`: Accessible name of the button. Without it the default icon carries an English name, and
|
|
9698
|
+
* slotted content names the button by its text; set it when you slot an icon of your own,
|
|
9699
|
+
* which has no text to be named by.
|
|
9544
9700
|
*
|
|
9545
9701
|
* ## CSS Parts
|
|
9546
9702
|
*
|
|
@@ -9558,6 +9714,35 @@ export type CustomElements = {
|
|
|
9558
9714
|
TestTtsNextProps & BaseProps<TestTtsNext> & BaseEvents
|
|
9559
9715
|
>;
|
|
9560
9716
|
|
|
9717
|
+
/**
|
|
9718
|
+
* Pick button — toggles pick mode on the controller: every reading element is highlighted and
|
|
9719
|
+
* a click on one of them starts reading from there. Reflects the mode as `:state(picking)`.
|
|
9720
|
+
*
|
|
9721
|
+
* ## Attributes & Properties
|
|
9722
|
+
*
|
|
9723
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
9724
|
+
*
|
|
9725
|
+
* - `label`: Accessible name of the button. Without it the default icon carries an English name, and
|
|
9726
|
+
* slotted content names the button by its text; set it when you slot an icon of your own,
|
|
9727
|
+
* which has no text to be named by.
|
|
9728
|
+
*
|
|
9729
|
+
* ## CSS Parts
|
|
9730
|
+
*
|
|
9731
|
+
* Custom selectors for styling elements within the component.
|
|
9732
|
+
*
|
|
9733
|
+
* - `button`: undefined
|
|
9734
|
+
*
|
|
9735
|
+
* ## CSS States
|
|
9736
|
+
*
|
|
9737
|
+
* These can be used to apply styling when a component is in a given state.
|
|
9738
|
+
*
|
|
9739
|
+
* - `idle`: / playing / paused
|
|
9740
|
+
* - `picking`: undefined
|
|
9741
|
+
*/
|
|
9742
|
+
"test-tts-pick": Partial<
|
|
9743
|
+
TestTtsPickProps & BaseProps<TestTtsPick> & BaseEvents
|
|
9744
|
+
>;
|
|
9745
|
+
|
|
9561
9746
|
/**
|
|
9562
9747
|
* Represents a custom element for navigating to the next test item.
|
|
9563
9748
|
*
|
|
@@ -15112,7 +15297,9 @@ export type CustomElementsSolidJs = {
|
|
|
15112
15297
|
*
|
|
15113
15298
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
15114
15299
|
*
|
|
15115
|
-
* - `language`:
|
|
15300
|
+
* - `language`: Fallback language when neither the item content nor the document declares one.
|
|
15301
|
+
* - `item-ref-id`/`itemRefId`: Identifier of the `qti-assessment-item-ref` this player reads. Leave unset to follow the
|
|
15302
|
+
* navigation cursor (`navItemRefId`) instead.
|
|
15116
15303
|
* - `_ttsContext`: undefined (property only)
|
|
15117
15304
|
*
|
|
15118
15305
|
* ## CSS States
|
|
@@ -15120,6 +15307,7 @@ export type CustomElementsSolidJs = {
|
|
|
15120
15307
|
* These can be used to apply styling when a component is in a given state.
|
|
15121
15308
|
*
|
|
15122
15309
|
* - `idle`: No speech active
|
|
15310
|
+
* - `picking`: Pick mode: all reading elements highlighted, waiting for a click
|
|
15123
15311
|
* - `playing`: Speech is playing
|
|
15124
15312
|
* - `paused`: Speech is paused
|
|
15125
15313
|
*/
|
|
@@ -15132,7 +15320,17 @@ export type CustomElementsSolidJs = {
|
|
|
15132
15320
|
|
|
15133
15321
|
/**
|
|
15134
15322
|
* Play/pause/resume toggle button — always enabled, cycles through states.
|
|
15135
|
-
* Use named slots `play` and `pause` to customise the icons/labels independently
|
|
15323
|
+
* Use named slots `play` and `pause` to customise the icons/labels independently; `label` and
|
|
15324
|
+
* `pause-label` name the button in each state (set them when the slotted content is an icon).
|
|
15325
|
+
*
|
|
15326
|
+
* ## Attributes & Properties
|
|
15327
|
+
*
|
|
15328
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
15329
|
+
*
|
|
15330
|
+
* - `pause-label`/`pauseLabel`: Accessible name of the button while speech is playing; see `label`.
|
|
15331
|
+
* - `label`: Accessible name of the button. Without it the default icon carries an English name, and
|
|
15332
|
+
* slotted content names the button by its text; set it when you slot an icon of your own,
|
|
15333
|
+
* which has no text to be named by.
|
|
15136
15334
|
*
|
|
15137
15335
|
* ## CSS Parts
|
|
15138
15336
|
*
|
|
@@ -15156,6 +15354,14 @@ export type CustomElementsSolidJs = {
|
|
|
15156
15354
|
/**
|
|
15157
15355
|
* Pause button — enabled only when playing.
|
|
15158
15356
|
*
|
|
15357
|
+
* ## Attributes & Properties
|
|
15358
|
+
*
|
|
15359
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
15360
|
+
*
|
|
15361
|
+
* - `label`: Accessible name of the button. Without it the default icon carries an English name, and
|
|
15362
|
+
* slotted content names the button by its text; set it when you slot an icon of your own,
|
|
15363
|
+
* which has no text to be named by.
|
|
15364
|
+
*
|
|
15159
15365
|
* ## CSS Parts
|
|
15160
15366
|
*
|
|
15161
15367
|
* Custom selectors for styling elements within the component.
|
|
@@ -15178,6 +15384,14 @@ export type CustomElementsSolidJs = {
|
|
|
15178
15384
|
/**
|
|
15179
15385
|
* Resume button — enabled only when paused.
|
|
15180
15386
|
*
|
|
15387
|
+
* ## Attributes & Properties
|
|
15388
|
+
*
|
|
15389
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
15390
|
+
*
|
|
15391
|
+
* - `label`: Accessible name of the button. Without it the default icon carries an English name, and
|
|
15392
|
+
* slotted content names the button by its text; set it when you slot an icon of your own,
|
|
15393
|
+
* which has no text to be named by.
|
|
15394
|
+
*
|
|
15181
15395
|
* ## CSS Parts
|
|
15182
15396
|
*
|
|
15183
15397
|
* Custom selectors for styling elements within the component.
|
|
@@ -15198,7 +15412,15 @@ export type CustomElementsSolidJs = {
|
|
|
15198
15412
|
>;
|
|
15199
15413
|
|
|
15200
15414
|
/**
|
|
15201
|
-
* Stop button — enabled when playing or
|
|
15415
|
+
* Stop button — enabled when playing, paused, or in pick mode (where it leaves pick mode).
|
|
15416
|
+
*
|
|
15417
|
+
* ## Attributes & Properties
|
|
15418
|
+
*
|
|
15419
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
15420
|
+
*
|
|
15421
|
+
* - `label`: Accessible name of the button. Without it the default icon carries an English name, and
|
|
15422
|
+
* slotted content names the button by its text; set it when you slot an icon of your own,
|
|
15423
|
+
* which has no text to be named by.
|
|
15202
15424
|
*
|
|
15203
15425
|
* ## CSS Parts
|
|
15204
15426
|
*
|
|
@@ -15221,7 +15443,17 @@ export type CustomElementsSolidJs = {
|
|
|
15221
15443
|
|
|
15222
15444
|
/**
|
|
15223
15445
|
* Prev-element button — moves cursor to the previous reading element and pauses.
|
|
15224
|
-
* Disabled at the first element
|
|
15446
|
+
* Disabled at the first element. Reading elements are collected lazily, so an element count
|
|
15447
|
+
* of 0 means "not looked yet" rather than "nothing to read": the button stays enabled and the
|
|
15448
|
+
* first click collects them.
|
|
15449
|
+
*
|
|
15450
|
+
* ## Attributes & Properties
|
|
15451
|
+
*
|
|
15452
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
15453
|
+
*
|
|
15454
|
+
* - `label`: Accessible name of the button. Without it the default icon carries an English name, and
|
|
15455
|
+
* slotted content names the button by its text; set it when you slot an icon of your own,
|
|
15456
|
+
* which has no text to be named by.
|
|
15225
15457
|
*
|
|
15226
15458
|
* ## CSS Parts
|
|
15227
15459
|
*
|
|
@@ -15244,7 +15476,16 @@ export type CustomElementsSolidJs = {
|
|
|
15244
15476
|
|
|
15245
15477
|
/**
|
|
15246
15478
|
* Next-element button — moves cursor to the next reading element and pauses.
|
|
15247
|
-
* Disabled at the last element
|
|
15479
|
+
* Disabled at the last element; enabled while the elements have not been collected yet
|
|
15480
|
+
* (see `TestTtsPrev`).
|
|
15481
|
+
*
|
|
15482
|
+
* ## Attributes & Properties
|
|
15483
|
+
*
|
|
15484
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
15485
|
+
*
|
|
15486
|
+
* - `label`: Accessible name of the button. Without it the default icon carries an English name, and
|
|
15487
|
+
* slotted content names the button by its text; set it when you slot an icon of your own,
|
|
15488
|
+
* which has no text to be named by.
|
|
15248
15489
|
*
|
|
15249
15490
|
* ## CSS Parts
|
|
15250
15491
|
*
|
|
@@ -15265,6 +15506,38 @@ export type CustomElementsSolidJs = {
|
|
|
15265
15506
|
BaseEvents
|
|
15266
15507
|
>;
|
|
15267
15508
|
|
|
15509
|
+
/**
|
|
15510
|
+
* Pick button — toggles pick mode on the controller: every reading element is highlighted and
|
|
15511
|
+
* a click on one of them starts reading from there. Reflects the mode as `:state(picking)`.
|
|
15512
|
+
*
|
|
15513
|
+
* ## Attributes & Properties
|
|
15514
|
+
*
|
|
15515
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
15516
|
+
*
|
|
15517
|
+
* - `label`: Accessible name of the button. Without it the default icon carries an English name, and
|
|
15518
|
+
* slotted content names the button by its text; set it when you slot an icon of your own,
|
|
15519
|
+
* which has no text to be named by.
|
|
15520
|
+
*
|
|
15521
|
+
* ## CSS Parts
|
|
15522
|
+
*
|
|
15523
|
+
* Custom selectors for styling elements within the component.
|
|
15524
|
+
*
|
|
15525
|
+
* - `button`: undefined
|
|
15526
|
+
*
|
|
15527
|
+
* ## CSS States
|
|
15528
|
+
*
|
|
15529
|
+
* These can be used to apply styling when a component is in a given state.
|
|
15530
|
+
*
|
|
15531
|
+
* - `idle`: / playing / paused
|
|
15532
|
+
* - `picking`: undefined
|
|
15533
|
+
*/
|
|
15534
|
+
"test-tts-pick": Partial<
|
|
15535
|
+
TestTtsPickProps &
|
|
15536
|
+
TestTtsPickSolidJsProps &
|
|
15537
|
+
BaseProps<TestTtsPick> &
|
|
15538
|
+
BaseEvents
|
|
15539
|
+
>;
|
|
15540
|
+
|
|
15268
15541
|
/**
|
|
15269
15542
|
* Represents a custom element for navigating to the next test item.
|
|
15270
15543
|
*
|