@citolab/qti-components 6.9.1-beta.81 → 7.0.1
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 +277 -0
- package/cdn/index.min.cjs +4489 -0
- package/cdn/index.min.js +4489 -0
- package/dist/custom-element-eslint-rules.js +25 -19
- package/dist/item.css +172 -5
- package/dist/qti-components/index.cjs +660 -465
- package/dist/qti-components/index.cjs.map +1 -0
- package/dist/qti-components/index.d.cts +4 -4
- package/dist/qti-components/index.d.ts +4 -4
- package/dist/qti-components/index.js +615 -423
- package/dist/qti-components/index.js.map +1 -0
- package/dist/qti-components-jsx.d.ts +398 -64
- package/dist/qti-item/index.cjs +2 -3
- package/dist/qti-item/index.cjs.map +1 -0
- package/dist/qti-item/index.d.cts +1 -1
- package/dist/qti-item/index.d.ts +1 -1
- package/dist/qti-item/index.js +2 -3
- package/dist/qti-item/index.js.map +1 -0
- package/dist/qti-loader/index.cjs +5 -6
- package/dist/qti-loader/index.cjs.map +1 -0
- package/dist/qti-loader/index.d.cts +1 -1
- package/dist/qti-loader/index.d.ts +1 -1
- package/dist/qti-loader/index.js +5 -6
- package/dist/qti-loader/index.js.map +1 -0
- package/dist/{qti-simple-choice-DC5DJota.d.cts → qti-simple-choice-CynLWb8d.d.cts} +74 -26
- package/dist/{qti-simple-choice-DC5DJota.d.ts → qti-simple-choice-CynLWb8d.d.ts} +74 -26
- package/dist/qti-test/index.cjs +4632 -0
- package/dist/qti-test/index.cjs.map +1 -0
- package/dist/qti-test/index.d.cts +304 -0
- package/dist/qti-test/index.d.ts +304 -0
- package/dist/qti-test/index.js +4599 -0
- package/dist/qti-test/index.js.map +1 -0
- package/dist/qti-transformers/index.cjs +5 -6
- package/dist/qti-transformers/index.cjs.map +1 -0
- package/dist/qti-transformers/index.js +5 -6
- package/dist/qti-transformers/index.js.map +1 -0
- package/dist/vscode.css-custom-data.json +28 -0
- package/dist/vscode.html-custom-data.json +179 -230
- package/package.json +96 -67
- package/dist/custom-elements.json +0 -24168
- package/dist/index.global.js +0 -226
- package/dist/index.js +0 -7860
- package/dist/index.min.js +0 -952
- /package/{LICENSE → LICENSE.md} +0 -0
- /package/{readme.md → README.md} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as lit_html from 'lit-html';
|
|
2
2
|
import * as lit from 'lit';
|
|
3
|
-
import { LitElement, CSSResultGroup, PropertyValueMap } from 'lit';
|
|
3
|
+
import { LitElement, CSSResultGroup, PropertyValueMap, PropertyValues } from 'lit';
|
|
4
4
|
import * as lit_html_directives_ref_js from 'lit-html/directives/ref.js';
|
|
5
5
|
|
|
6
6
|
interface directedPair {
|
|
@@ -118,6 +118,7 @@ declare class QtiAssessmentItem extends LitElement {
|
|
|
118
118
|
private handleUpdateResponseVariable;
|
|
119
119
|
updateResponseVariable(identifier: string, value: string | string[] | undefined): void;
|
|
120
120
|
updateOutcomeVariable(identifier: string, value: string | string[] | undefined): void;
|
|
121
|
+
validate(): boolean | null;
|
|
121
122
|
private _getCompletionStatus;
|
|
122
123
|
private _emit;
|
|
123
124
|
}
|
|
@@ -156,7 +157,7 @@ declare global {
|
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
159
|
|
|
159
|
-
type Constructor$
|
|
160
|
+
type Constructor$2<T = {}> = abstract new (...args: any[]) => T;
|
|
160
161
|
interface ChoiceInterface {
|
|
161
162
|
identifier: string;
|
|
162
163
|
disabled: boolean;
|
|
@@ -177,7 +178,7 @@ interface ActiveElementMixinInterface {
|
|
|
177
178
|
readonly: boolean;
|
|
178
179
|
internals: ElementInternals;
|
|
179
180
|
}
|
|
180
|
-
declare function ActiveElementMixin<T extends Constructor$
|
|
181
|
+
declare function ActiveElementMixin<T extends Constructor$2<LitElement>>(Base: T, type: string): Constructor$2<ActiveElementMixinInterface> & T;
|
|
181
182
|
|
|
182
183
|
/**
|
|
183
184
|
* @summary The qti-item-body node contains the text, graphics, media objects and interactions that describe the item's content and information about how it is structured.
|
|
@@ -297,7 +298,7 @@ declare class QtiRubricBlock extends LitElement {
|
|
|
297
298
|
use: 'instructions' | 'scoring' | 'navigation';
|
|
298
299
|
view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';
|
|
299
300
|
classNames: any;
|
|
300
|
-
handleclassNamesChange(
|
|
301
|
+
handleclassNamesChange(): void;
|
|
301
302
|
static styles: lit.CSSResult;
|
|
302
303
|
render(): lit_html.TemplateResult<1>;
|
|
303
304
|
connectedCallback(): void;
|
|
@@ -364,10 +365,8 @@ interface IInteraction {
|
|
|
364
365
|
|
|
365
366
|
declare abstract class Interaction extends LitElement implements IInteraction {
|
|
366
367
|
static formAssociated: boolean;
|
|
367
|
-
responseIdentifier:
|
|
368
|
-
/** disabled should be exposed to the attributes and accessible as property */
|
|
368
|
+
responseIdentifier: any;
|
|
369
369
|
disabled: boolean;
|
|
370
|
-
/** readonly should be exposed to the attributes and accessible as property */
|
|
371
370
|
readonly: boolean;
|
|
372
371
|
protected _correctResponse: string | string[];
|
|
373
372
|
protected _internals: ElementInternals;
|
|
@@ -393,7 +392,7 @@ declare class QtiExtendedTextInteraction extends Interaction {
|
|
|
393
392
|
dataPatternmaskMessage: string;
|
|
394
393
|
private _value;
|
|
395
394
|
classNames: any;
|
|
396
|
-
handleclassNamesChange(
|
|
395
|
+
handleclassNamesChange(_: any, classes: string): void;
|
|
397
396
|
get value(): string | string[];
|
|
398
397
|
set value(val: string | string[]);
|
|
399
398
|
validate(): boolean;
|
|
@@ -479,10 +478,26 @@ declare global {
|
|
|
479
478
|
|
|
480
479
|
type Orientation = 'horizontal' | 'vertical' | undefined;
|
|
481
480
|
declare const QtiChoiceInteraction_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
|
|
481
|
+
/**
|
|
482
|
+
* An sample element.
|
|
483
|
+
*
|
|
484
|
+
* @slot - default slot of the choices
|
|
485
|
+
* @slot prompt - slot of the prompt
|
|
486
|
+
*
|
|
487
|
+
* @csspart slot - The choice elements
|
|
488
|
+
* @csspart prompt - The prompt
|
|
489
|
+
* @csspart message - The validation message
|
|
490
|
+
*
|
|
491
|
+
* @cssprop [--qti-bg-active=#ffecec] - The active background color
|
|
492
|
+
* @cssprop [--qti-border-active=#f86d70] - The active border color
|
|
493
|
+
* @cssprop [--qti-padding-horizontal=1px] - The option horizontal padding
|
|
494
|
+
* @cssprop [--qti-padding-vertical=solid] - The option vertical padding
|
|
495
|
+
* @cssprop [--qti-border-radius=8px] - The option border radius
|
|
496
|
+
*/
|
|
482
497
|
declare class QtiChoiceInteraction extends QtiChoiceInteraction_base implements ChoicesInterface {
|
|
483
498
|
static styles: CSSResultGroup;
|
|
484
499
|
constructor();
|
|
485
|
-
/** orientation
|
|
500
|
+
/** @deprecated, use 'qti-orientation-horizontal' or 'qti-orientation-vertical' instead */
|
|
486
501
|
orientation: Orientation;
|
|
487
502
|
render(): lit_html.TemplateResult<1>;
|
|
488
503
|
}
|
|
@@ -566,28 +581,53 @@ declare abstract class QtiConditionExpression extends QtiExpression<boolean> {
|
|
|
566
581
|
getResult(): Readonly<boolean>;
|
|
567
582
|
}
|
|
568
583
|
|
|
569
|
-
type Constructor<T> = new (...args: any[]) => T;
|
|
584
|
+
type Constructor$1<T> = new (...args: any[]) => T;
|
|
570
585
|
declare const QtiAnd_base: {
|
|
571
586
|
new (...args: any[]): {
|
|
572
|
-
calculateChildren(children: Array<MockQtiExpression<any>>): boolean;
|
|
587
|
+
calculateChildren(children: Array<MockQtiExpression$1<any>>): boolean;
|
|
573
588
|
};
|
|
574
|
-
} & Constructor<QtiConditionExpression>;
|
|
589
|
+
} & Constructor$1<QtiConditionExpression>;
|
|
575
590
|
declare class QtiAnd extends QtiAnd_base {
|
|
576
591
|
calculate(): boolean;
|
|
577
592
|
}
|
|
593
|
+
type MockQtiExpression$1<T> = {
|
|
594
|
+
calculate: () => T;
|
|
595
|
+
};
|
|
596
|
+
type MockConstructor$1 = new (...args: any[]) => {};
|
|
597
|
+
declare function qtiAndMixin<TBase extends MockConstructor$1>(Base: TBase): {
|
|
598
|
+
new (...args: any[]): {
|
|
599
|
+
calculateChildren(children: Array<MockQtiExpression$1<any>>): boolean;
|
|
600
|
+
};
|
|
601
|
+
} & TBase;
|
|
602
|
+
|
|
603
|
+
declare global {
|
|
604
|
+
interface HTMLElementTagNameMap {
|
|
605
|
+
'qti-and': QtiAnd;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
type Constructor<T> = new (...args: any[]) => T;
|
|
610
|
+
declare const QtiSubtract_base: {
|
|
611
|
+
new (...args: any[]): {
|
|
612
|
+
calculateChildren(children: Array<MockQtiExpression<any>>): number;
|
|
613
|
+
};
|
|
614
|
+
} & Constructor<QtiExpression<number>>;
|
|
615
|
+
declare class QtiSubtract extends QtiSubtract_base {
|
|
616
|
+
getResult(): number;
|
|
617
|
+
}
|
|
578
618
|
type MockQtiExpression<T> = {
|
|
579
619
|
calculate: () => T;
|
|
580
620
|
};
|
|
581
621
|
type MockConstructor = new (...args: any[]) => {};
|
|
582
|
-
declare function
|
|
622
|
+
declare function qtiSubtractMixin<TBase extends MockConstructor>(Base: TBase): {
|
|
583
623
|
new (...args: any[]): {
|
|
584
|
-
calculateChildren(children: Array<MockQtiExpression<any>>):
|
|
624
|
+
calculateChildren(children: Array<MockQtiExpression<any>>): number;
|
|
585
625
|
};
|
|
586
626
|
} & TBase;
|
|
587
627
|
|
|
588
628
|
declare global {
|
|
589
629
|
interface HTMLElementTagNameMap {
|
|
590
|
-
'qti-
|
|
630
|
+
'qti-subtract': QtiSubtract;
|
|
591
631
|
}
|
|
592
632
|
}
|
|
593
633
|
|
|
@@ -652,7 +692,7 @@ declare class QtiPortableCustomInteraction extends Interaction {
|
|
|
652
692
|
private startChecking;
|
|
653
693
|
private stopChecking;
|
|
654
694
|
validate(): boolean;
|
|
655
|
-
set value(
|
|
695
|
+
set value(_: string | string[]);
|
|
656
696
|
get value(): string | string[];
|
|
657
697
|
getTAOConfig(node: any): {};
|
|
658
698
|
register(pci: IMSpci<unknown>): void;
|
|
@@ -724,9 +764,9 @@ declare class QtiEndAttemptInteraction extends Interaction {
|
|
|
724
764
|
title: 'end attempt';
|
|
725
765
|
validate(): boolean;
|
|
726
766
|
get value(): string | string[];
|
|
727
|
-
set value(
|
|
767
|
+
set value(_: string | string[]);
|
|
728
768
|
render(): lit_html.TemplateResult<1>;
|
|
729
|
-
endAttempt(
|
|
769
|
+
endAttempt(_: Event): void;
|
|
730
770
|
}
|
|
731
771
|
declare global {
|
|
732
772
|
interface HTMLElementTagNameMap {
|
|
@@ -736,8 +776,13 @@ declare global {
|
|
|
736
776
|
|
|
737
777
|
declare const QtiGapMatchInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
|
|
738
778
|
declare class QtiGapMatchInteraction extends QtiGapMatchInteraction_base {
|
|
739
|
-
|
|
779
|
+
private observer;
|
|
780
|
+
private resizeObserver;
|
|
781
|
+
static styles: CSSResultGroup;
|
|
740
782
|
render(): lit_html.TemplateResult<1>;
|
|
783
|
+
firstUpdated(_changedProperties: PropertyValues): void;
|
|
784
|
+
disconnectedCallback(): void;
|
|
785
|
+
private updateMinDimensionsForDrowZones;
|
|
741
786
|
set correctResponse(value: string | string[]);
|
|
742
787
|
}
|
|
743
788
|
declare global {
|
|
@@ -782,8 +827,12 @@ declare global {
|
|
|
782
827
|
|
|
783
828
|
declare const QtiGraphicGapMatchInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
|
|
784
829
|
declare class QtiGraphicGapMatchInteraction extends QtiGraphicGapMatchInteraction_base {
|
|
785
|
-
static styles:
|
|
830
|
+
static styles: CSSResultGroup;
|
|
831
|
+
private observer;
|
|
832
|
+
private resizeObserver;
|
|
786
833
|
render(): lit_html.TemplateResult<1>;
|
|
834
|
+
firstUpdated(_changedProperties: PropertyValues): void;
|
|
835
|
+
private updateMinDimensionsForDrowZones;
|
|
787
836
|
private positionHotspotOnRegister;
|
|
788
837
|
connectedCallback(): void;
|
|
789
838
|
disconnectedCallback(): void;
|
|
@@ -919,7 +968,7 @@ declare class QtiPositionObjectStage extends LitElement {
|
|
|
919
968
|
constructor();
|
|
920
969
|
dragElementHandler(event: any): void;
|
|
921
970
|
firstUpdated(a: any): void;
|
|
922
|
-
removeMoveListener(
|
|
971
|
+
removeMoveListener(): void;
|
|
923
972
|
disconnectedCallback(): void;
|
|
924
973
|
}
|
|
925
974
|
declare global {
|
|
@@ -975,7 +1024,6 @@ declare global {
|
|
|
975
1024
|
declare class QtiSliderInteraction extends Interaction {
|
|
976
1025
|
private _value;
|
|
977
1026
|
csLive: CSSStyleDeclaration;
|
|
978
|
-
private _knob;
|
|
979
1027
|
private _rail;
|
|
980
1028
|
stepLabel: boolean;
|
|
981
1029
|
reverse: boolean;
|
|
@@ -988,8 +1036,8 @@ declare class QtiSliderInteraction extends Interaction {
|
|
|
988
1036
|
private _step;
|
|
989
1037
|
set step(value: number);
|
|
990
1038
|
get step(): number;
|
|
991
|
-
_handleDisabledChange: (
|
|
992
|
-
_handleReadonlyChange: (
|
|
1039
|
+
_handleDisabledChange: () => void;
|
|
1040
|
+
_handleReadonlyChange: () => void;
|
|
993
1041
|
reset(): void;
|
|
994
1042
|
validate(): boolean;
|
|
995
1043
|
get value(): string | string[];
|
|
@@ -1026,7 +1074,7 @@ declare class QtiCustomOperator extends LitElement implements Calculate {
|
|
|
1026
1074
|
private operatorFunction;
|
|
1027
1075
|
private _context?;
|
|
1028
1076
|
render(): lit_html.TemplateResult<1>;
|
|
1029
|
-
handleSlotChange(
|
|
1077
|
+
handleSlotChange(): void;
|
|
1030
1078
|
calculate(): any;
|
|
1031
1079
|
}
|
|
1032
1080
|
declare global {
|
|
@@ -1134,4 +1182,4 @@ declare global {
|
|
|
1134
1182
|
}
|
|
1135
1183
|
}
|
|
1136
1184
|
|
|
1137
|
-
export {
|
|
1185
|
+
export { qtiSubtractMixin as $, type ActiveElementMixinInterface as A, type BaseType as B, type Calculate as C, QtiRubricBlock as D, QtiFeedbackBlock as E, QtiFeedbackInline as F, QtiModalFeedback as G, QtiExtendedTextInteraction as H, type ItemContext as I, QtiTextEntryInteraction as J, QtiHottextInteraction as K, QtiInlineChoiceInteraction as L, type Multiple as M, type Orientation as N, type OutcomeChangedDetails as O, QtiChoiceInteraction as P, QtiRule as Q, type ResponseVariable as R, QtiOutcomeProcessing as S, QtiOutcomeProcessingProcessor as T, QtiResponseProcessing as U, type VariableDeclaration as V, QtiLookupOutcomeValue as W, QtiAnd as X, qtiAndMixin as Y, QtiMapping as Z, QtiSubtract as _, type QtiRuleBase as a, QtiPortableCustomInteraction as a0, QtiAssociateInteraction as a1, QtiCustomInteraction as a2, QtiEndAttemptInteraction as a3, QtiGapMatchInteraction as a4, QtiGraphicAssociateInteraction as a5, QtiGraphicGapMatchInteraction as a6, QtiGraphicOrderInteraction as a7, QtiHotspotInteraction as a8, QtiMatchInteraction as a9, QtiMediaInteraction as aa, QtiOrderInteraction as ab, QtiPositionObjectStage as ac, QtiSelectPointInteraction as ad, QtiSliderInteraction as ae, itemContextVariables as af, itemContext as ag, QtiCustomOperator as ah, Interaction as ai, QtiAssociableHotspot as aj, QtiGap as ak, QtiGapImg as al, QtiGapText as am, QtiHotspotChoice as an, QtiHottext as ao, QtiInlineChoice as ap, QtiSimpleAssociableChoice as aq, QtiSimpleChoice as ar, type QtiExpressionBase as b, QtiExpression as c, QtiConditionExpression as d, type InteractionChangedDetails as e, type QtiInteractionChanged as f, type QtiOutcomeChanged as g, type directedPair as h, type ResponseInteraction as i, type float as j, type integer as k, type Ordered as l, type Cardinality as m, type VariableValue as n, type OutcomeVariable as o, QtiAssessmentItem as p, QtiAssessmentStimulusRef as q, type ChoiceInterface as r, ActiveElementMixin as s, QtiItemBody as t, QtiPrompt as u, QtiStylesheet as v, QtiOutcomeDeclaration as w, QtiResponseDeclaration as x, QtiCompanionMaterialsInfo as y, QtiContentBody as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as lit_html from 'lit-html';
|
|
2
2
|
import * as lit from 'lit';
|
|
3
|
-
import { LitElement, CSSResultGroup, PropertyValueMap } from 'lit';
|
|
3
|
+
import { LitElement, CSSResultGroup, PropertyValueMap, PropertyValues } from 'lit';
|
|
4
4
|
import * as lit_html_directives_ref_js from 'lit-html/directives/ref.js';
|
|
5
5
|
|
|
6
6
|
interface directedPair {
|
|
@@ -118,6 +118,7 @@ declare class QtiAssessmentItem extends LitElement {
|
|
|
118
118
|
private handleUpdateResponseVariable;
|
|
119
119
|
updateResponseVariable(identifier: string, value: string | string[] | undefined): void;
|
|
120
120
|
updateOutcomeVariable(identifier: string, value: string | string[] | undefined): void;
|
|
121
|
+
validate(): boolean | null;
|
|
121
122
|
private _getCompletionStatus;
|
|
122
123
|
private _emit;
|
|
123
124
|
}
|
|
@@ -156,7 +157,7 @@ declare global {
|
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
159
|
|
|
159
|
-
type Constructor$
|
|
160
|
+
type Constructor$2<T = {}> = abstract new (...args: any[]) => T;
|
|
160
161
|
interface ChoiceInterface {
|
|
161
162
|
identifier: string;
|
|
162
163
|
disabled: boolean;
|
|
@@ -177,7 +178,7 @@ interface ActiveElementMixinInterface {
|
|
|
177
178
|
readonly: boolean;
|
|
178
179
|
internals: ElementInternals;
|
|
179
180
|
}
|
|
180
|
-
declare function ActiveElementMixin<T extends Constructor$
|
|
181
|
+
declare function ActiveElementMixin<T extends Constructor$2<LitElement>>(Base: T, type: string): Constructor$2<ActiveElementMixinInterface> & T;
|
|
181
182
|
|
|
182
183
|
/**
|
|
183
184
|
* @summary The qti-item-body node contains the text, graphics, media objects and interactions that describe the item's content and information about how it is structured.
|
|
@@ -297,7 +298,7 @@ declare class QtiRubricBlock extends LitElement {
|
|
|
297
298
|
use: 'instructions' | 'scoring' | 'navigation';
|
|
298
299
|
view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';
|
|
299
300
|
classNames: any;
|
|
300
|
-
handleclassNamesChange(
|
|
301
|
+
handleclassNamesChange(): void;
|
|
301
302
|
static styles: lit.CSSResult;
|
|
302
303
|
render(): lit_html.TemplateResult<1>;
|
|
303
304
|
connectedCallback(): void;
|
|
@@ -364,10 +365,8 @@ interface IInteraction {
|
|
|
364
365
|
|
|
365
366
|
declare abstract class Interaction extends LitElement implements IInteraction {
|
|
366
367
|
static formAssociated: boolean;
|
|
367
|
-
responseIdentifier:
|
|
368
|
-
/** disabled should be exposed to the attributes and accessible as property */
|
|
368
|
+
responseIdentifier: any;
|
|
369
369
|
disabled: boolean;
|
|
370
|
-
/** readonly should be exposed to the attributes and accessible as property */
|
|
371
370
|
readonly: boolean;
|
|
372
371
|
protected _correctResponse: string | string[];
|
|
373
372
|
protected _internals: ElementInternals;
|
|
@@ -393,7 +392,7 @@ declare class QtiExtendedTextInteraction extends Interaction {
|
|
|
393
392
|
dataPatternmaskMessage: string;
|
|
394
393
|
private _value;
|
|
395
394
|
classNames: any;
|
|
396
|
-
handleclassNamesChange(
|
|
395
|
+
handleclassNamesChange(_: any, classes: string): void;
|
|
397
396
|
get value(): string | string[];
|
|
398
397
|
set value(val: string | string[]);
|
|
399
398
|
validate(): boolean;
|
|
@@ -479,10 +478,26 @@ declare global {
|
|
|
479
478
|
|
|
480
479
|
type Orientation = 'horizontal' | 'vertical' | undefined;
|
|
481
480
|
declare const QtiChoiceInteraction_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
|
|
481
|
+
/**
|
|
482
|
+
* An sample element.
|
|
483
|
+
*
|
|
484
|
+
* @slot - default slot of the choices
|
|
485
|
+
* @slot prompt - slot of the prompt
|
|
486
|
+
*
|
|
487
|
+
* @csspart slot - The choice elements
|
|
488
|
+
* @csspart prompt - The prompt
|
|
489
|
+
* @csspart message - The validation message
|
|
490
|
+
*
|
|
491
|
+
* @cssprop [--qti-bg-active=#ffecec] - The active background color
|
|
492
|
+
* @cssprop [--qti-border-active=#f86d70] - The active border color
|
|
493
|
+
* @cssprop [--qti-padding-horizontal=1px] - The option horizontal padding
|
|
494
|
+
* @cssprop [--qti-padding-vertical=solid] - The option vertical padding
|
|
495
|
+
* @cssprop [--qti-border-radius=8px] - The option border radius
|
|
496
|
+
*/
|
|
482
497
|
declare class QtiChoiceInteraction extends QtiChoiceInteraction_base implements ChoicesInterface {
|
|
483
498
|
static styles: CSSResultGroup;
|
|
484
499
|
constructor();
|
|
485
|
-
/** orientation
|
|
500
|
+
/** @deprecated, use 'qti-orientation-horizontal' or 'qti-orientation-vertical' instead */
|
|
486
501
|
orientation: Orientation;
|
|
487
502
|
render(): lit_html.TemplateResult<1>;
|
|
488
503
|
}
|
|
@@ -566,28 +581,53 @@ declare abstract class QtiConditionExpression extends QtiExpression<boolean> {
|
|
|
566
581
|
getResult(): Readonly<boolean>;
|
|
567
582
|
}
|
|
568
583
|
|
|
569
|
-
type Constructor<T> = new (...args: any[]) => T;
|
|
584
|
+
type Constructor$1<T> = new (...args: any[]) => T;
|
|
570
585
|
declare const QtiAnd_base: {
|
|
571
586
|
new (...args: any[]): {
|
|
572
|
-
calculateChildren(children: Array<MockQtiExpression<any>>): boolean;
|
|
587
|
+
calculateChildren(children: Array<MockQtiExpression$1<any>>): boolean;
|
|
573
588
|
};
|
|
574
|
-
} & Constructor<QtiConditionExpression>;
|
|
589
|
+
} & Constructor$1<QtiConditionExpression>;
|
|
575
590
|
declare class QtiAnd extends QtiAnd_base {
|
|
576
591
|
calculate(): boolean;
|
|
577
592
|
}
|
|
593
|
+
type MockQtiExpression$1<T> = {
|
|
594
|
+
calculate: () => T;
|
|
595
|
+
};
|
|
596
|
+
type MockConstructor$1 = new (...args: any[]) => {};
|
|
597
|
+
declare function qtiAndMixin<TBase extends MockConstructor$1>(Base: TBase): {
|
|
598
|
+
new (...args: any[]): {
|
|
599
|
+
calculateChildren(children: Array<MockQtiExpression$1<any>>): boolean;
|
|
600
|
+
};
|
|
601
|
+
} & TBase;
|
|
602
|
+
|
|
603
|
+
declare global {
|
|
604
|
+
interface HTMLElementTagNameMap {
|
|
605
|
+
'qti-and': QtiAnd;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
type Constructor<T> = new (...args: any[]) => T;
|
|
610
|
+
declare const QtiSubtract_base: {
|
|
611
|
+
new (...args: any[]): {
|
|
612
|
+
calculateChildren(children: Array<MockQtiExpression<any>>): number;
|
|
613
|
+
};
|
|
614
|
+
} & Constructor<QtiExpression<number>>;
|
|
615
|
+
declare class QtiSubtract extends QtiSubtract_base {
|
|
616
|
+
getResult(): number;
|
|
617
|
+
}
|
|
578
618
|
type MockQtiExpression<T> = {
|
|
579
619
|
calculate: () => T;
|
|
580
620
|
};
|
|
581
621
|
type MockConstructor = new (...args: any[]) => {};
|
|
582
|
-
declare function
|
|
622
|
+
declare function qtiSubtractMixin<TBase extends MockConstructor>(Base: TBase): {
|
|
583
623
|
new (...args: any[]): {
|
|
584
|
-
calculateChildren(children: Array<MockQtiExpression<any>>):
|
|
624
|
+
calculateChildren(children: Array<MockQtiExpression<any>>): number;
|
|
585
625
|
};
|
|
586
626
|
} & TBase;
|
|
587
627
|
|
|
588
628
|
declare global {
|
|
589
629
|
interface HTMLElementTagNameMap {
|
|
590
|
-
'qti-
|
|
630
|
+
'qti-subtract': QtiSubtract;
|
|
591
631
|
}
|
|
592
632
|
}
|
|
593
633
|
|
|
@@ -652,7 +692,7 @@ declare class QtiPortableCustomInteraction extends Interaction {
|
|
|
652
692
|
private startChecking;
|
|
653
693
|
private stopChecking;
|
|
654
694
|
validate(): boolean;
|
|
655
|
-
set value(
|
|
695
|
+
set value(_: string | string[]);
|
|
656
696
|
get value(): string | string[];
|
|
657
697
|
getTAOConfig(node: any): {};
|
|
658
698
|
register(pci: IMSpci<unknown>): void;
|
|
@@ -724,9 +764,9 @@ declare class QtiEndAttemptInteraction extends Interaction {
|
|
|
724
764
|
title: 'end attempt';
|
|
725
765
|
validate(): boolean;
|
|
726
766
|
get value(): string | string[];
|
|
727
|
-
set value(
|
|
767
|
+
set value(_: string | string[]);
|
|
728
768
|
render(): lit_html.TemplateResult<1>;
|
|
729
|
-
endAttempt(
|
|
769
|
+
endAttempt(_: Event): void;
|
|
730
770
|
}
|
|
731
771
|
declare global {
|
|
732
772
|
interface HTMLElementTagNameMap {
|
|
@@ -736,8 +776,13 @@ declare global {
|
|
|
736
776
|
|
|
737
777
|
declare const QtiGapMatchInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
|
|
738
778
|
declare class QtiGapMatchInteraction extends QtiGapMatchInteraction_base {
|
|
739
|
-
|
|
779
|
+
private observer;
|
|
780
|
+
private resizeObserver;
|
|
781
|
+
static styles: CSSResultGroup;
|
|
740
782
|
render(): lit_html.TemplateResult<1>;
|
|
783
|
+
firstUpdated(_changedProperties: PropertyValues): void;
|
|
784
|
+
disconnectedCallback(): void;
|
|
785
|
+
private updateMinDimensionsForDrowZones;
|
|
741
786
|
set correctResponse(value: string | string[]);
|
|
742
787
|
}
|
|
743
788
|
declare global {
|
|
@@ -782,8 +827,12 @@ declare global {
|
|
|
782
827
|
|
|
783
828
|
declare const QtiGraphicGapMatchInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
|
|
784
829
|
declare class QtiGraphicGapMatchInteraction extends QtiGraphicGapMatchInteraction_base {
|
|
785
|
-
static styles:
|
|
830
|
+
static styles: CSSResultGroup;
|
|
831
|
+
private observer;
|
|
832
|
+
private resizeObserver;
|
|
786
833
|
render(): lit_html.TemplateResult<1>;
|
|
834
|
+
firstUpdated(_changedProperties: PropertyValues): void;
|
|
835
|
+
private updateMinDimensionsForDrowZones;
|
|
787
836
|
private positionHotspotOnRegister;
|
|
788
837
|
connectedCallback(): void;
|
|
789
838
|
disconnectedCallback(): void;
|
|
@@ -919,7 +968,7 @@ declare class QtiPositionObjectStage extends LitElement {
|
|
|
919
968
|
constructor();
|
|
920
969
|
dragElementHandler(event: any): void;
|
|
921
970
|
firstUpdated(a: any): void;
|
|
922
|
-
removeMoveListener(
|
|
971
|
+
removeMoveListener(): void;
|
|
923
972
|
disconnectedCallback(): void;
|
|
924
973
|
}
|
|
925
974
|
declare global {
|
|
@@ -975,7 +1024,6 @@ declare global {
|
|
|
975
1024
|
declare class QtiSliderInteraction extends Interaction {
|
|
976
1025
|
private _value;
|
|
977
1026
|
csLive: CSSStyleDeclaration;
|
|
978
|
-
private _knob;
|
|
979
1027
|
private _rail;
|
|
980
1028
|
stepLabel: boolean;
|
|
981
1029
|
reverse: boolean;
|
|
@@ -988,8 +1036,8 @@ declare class QtiSliderInteraction extends Interaction {
|
|
|
988
1036
|
private _step;
|
|
989
1037
|
set step(value: number);
|
|
990
1038
|
get step(): number;
|
|
991
|
-
_handleDisabledChange: (
|
|
992
|
-
_handleReadonlyChange: (
|
|
1039
|
+
_handleDisabledChange: () => void;
|
|
1040
|
+
_handleReadonlyChange: () => void;
|
|
993
1041
|
reset(): void;
|
|
994
1042
|
validate(): boolean;
|
|
995
1043
|
get value(): string | string[];
|
|
@@ -1026,7 +1074,7 @@ declare class QtiCustomOperator extends LitElement implements Calculate {
|
|
|
1026
1074
|
private operatorFunction;
|
|
1027
1075
|
private _context?;
|
|
1028
1076
|
render(): lit_html.TemplateResult<1>;
|
|
1029
|
-
handleSlotChange(
|
|
1077
|
+
handleSlotChange(): void;
|
|
1030
1078
|
calculate(): any;
|
|
1031
1079
|
}
|
|
1032
1080
|
declare global {
|
|
@@ -1134,4 +1182,4 @@ declare global {
|
|
|
1134
1182
|
}
|
|
1135
1183
|
}
|
|
1136
1184
|
|
|
1137
|
-
export {
|
|
1185
|
+
export { qtiSubtractMixin as $, type ActiveElementMixinInterface as A, type BaseType as B, type Calculate as C, QtiRubricBlock as D, QtiFeedbackBlock as E, QtiFeedbackInline as F, QtiModalFeedback as G, QtiExtendedTextInteraction as H, type ItemContext as I, QtiTextEntryInteraction as J, QtiHottextInteraction as K, QtiInlineChoiceInteraction as L, type Multiple as M, type Orientation as N, type OutcomeChangedDetails as O, QtiChoiceInteraction as P, QtiRule as Q, type ResponseVariable as R, QtiOutcomeProcessing as S, QtiOutcomeProcessingProcessor as T, QtiResponseProcessing as U, type VariableDeclaration as V, QtiLookupOutcomeValue as W, QtiAnd as X, qtiAndMixin as Y, QtiMapping as Z, QtiSubtract as _, type QtiRuleBase as a, QtiPortableCustomInteraction as a0, QtiAssociateInteraction as a1, QtiCustomInteraction as a2, QtiEndAttemptInteraction as a3, QtiGapMatchInteraction as a4, QtiGraphicAssociateInteraction as a5, QtiGraphicGapMatchInteraction as a6, QtiGraphicOrderInteraction as a7, QtiHotspotInteraction as a8, QtiMatchInteraction as a9, QtiMediaInteraction as aa, QtiOrderInteraction as ab, QtiPositionObjectStage as ac, QtiSelectPointInteraction as ad, QtiSliderInteraction as ae, itemContextVariables as af, itemContext as ag, QtiCustomOperator as ah, Interaction as ai, QtiAssociableHotspot as aj, QtiGap as ak, QtiGapImg as al, QtiGapText as am, QtiHotspotChoice as an, QtiHottext as ao, QtiInlineChoice as ap, QtiSimpleAssociableChoice as aq, QtiSimpleChoice as ar, type QtiExpressionBase as b, QtiExpression as c, QtiConditionExpression as d, type InteractionChangedDetails as e, type QtiInteractionChanged as f, type QtiOutcomeChanged as g, type directedPair as h, type ResponseInteraction as i, type float as j, type integer as k, type Ordered as l, type Cardinality as m, type VariableValue as n, type OutcomeVariable as o, QtiAssessmentItem as p, QtiAssessmentStimulusRef as q, type ChoiceInterface as r, ActiveElementMixin as s, QtiItemBody as t, QtiPrompt as u, QtiStylesheet as v, QtiOutcomeDeclaration as w, QtiResponseDeclaration as x, QtiCompanionMaterialsInfo as y, QtiContentBody as z };
|