@citolab/qti-components 7.0.4 → 7.0.6-next.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/chunk-25BMUTLC.js +1 -0
- package/cdn/chunk-3DWLPGTE.js +1 -0
- package/cdn/chunk-7BKWTY4S.js +1 -0
- package/cdn/chunk-7CQ4ETXL.js +1 -0
- package/cdn/chunk-7ENNZNJ4.js +1 -0
- package/cdn/chunk-7LGM2TQA.js +1 -0
- package/cdn/chunk-CYJMNT76.js +0 -0
- package/cdn/chunk-DLMFCDQX.js +1 -0
- package/cdn/chunk-DPR6SGCZ.js +1 -0
- package/cdn/chunk-EQGXFSYL.js +8 -0
- package/cdn/chunk-F5VW77RE.js +1 -0
- package/cdn/chunk-FNVXN5CO.js +1 -0
- package/cdn/chunk-GB7DLBFM.js +0 -0
- package/cdn/chunk-GBB54IPA.js +8 -0
- package/cdn/chunk-GPDDPZFH.js +1 -0
- package/cdn/chunk-H4A34YRT.js +0 -0
- package/cdn/chunk-ITXNNGVQ.js +0 -0
- package/cdn/chunk-IV7UP34N.js +5 -0
- package/cdn/chunk-IZZ36JQV.js +0 -0
- package/cdn/chunk-JNT54FPI.js +1 -0
- package/cdn/chunk-JS4S7ZI7.js +1 -0
- package/cdn/chunk-L26FOTPN.js +17 -0
- package/cdn/chunk-LA7TBIPQ.js +0 -0
- package/cdn/chunk-LVW3MHTI.js +23 -0
- package/cdn/chunk-POT65ZY7.js +1 -0
- package/cdn/chunk-Q7PVZA43.js +5 -0
- package/cdn/chunk-QJPHXAUE.js +1 -0
- package/cdn/chunk-QP57JHGY.js +11 -0
- package/cdn/chunk-RB6CONZW.js +3 -0
- package/cdn/chunk-RSRX5JYB.js +1 -0
- package/cdn/chunk-TG6AE3DB.js +0 -0
- package/cdn/chunk-V6YPUNZC.js +0 -0
- package/cdn/chunk-VI2WKTN4.js +1 -0
- package/cdn/chunk-W7X6GNEX.js +902 -0
- package/cdn/chunk-Y63VPWCG.js +3523 -0
- package/cdn/chunk-ZEX7TYC7.js +8 -0
- package/cdn/index.global.js +45 -45
- package/cdn/index.js +1 -4783
- package/cdn/qti-components/index.global.js +226 -0
- package/cdn/qti-components/index.js +1 -0
- package/cdn/qti-item/components/index.global.js +149 -0
- package/cdn/qti-item/components/index.js +1 -0
- package/cdn/qti-item/components/item-container.global.js +149 -0
- package/cdn/qti-item/components/item-container.js +1 -0
- package/cdn/qti-item/index.global.js +149 -0
- package/cdn/qti-item/index.js +1 -0
- package/cdn/qti-item/qti-item.global.js +114 -0
- package/cdn/qti-item/qti-item.js +1 -0
- package/cdn/qti-loader/index.global.js +1 -0
- package/cdn/qti-loader/index.js +1 -0
- package/cdn/qti-test/components/index.global.js +242 -0
- package/cdn/qti-test/components/index.js +1 -0
- package/cdn/qti-test/components/styles.global.js +44 -0
- package/cdn/qti-test/components/styles.js +1 -0
- package/cdn/qti-test/components/test-component.abstract.global.js +170 -0
- package/cdn/qti-test/components/test-component.abstract.js +1 -0
- package/cdn/qti-test/components/test-container.global.js +149 -0
- package/cdn/qti-test/components/test-container.js +1 -0
- package/cdn/qti-test/components/test-item-link.global.js +170 -0
- package/cdn/qti-test/components/test-item-link.js +1 -0
- package/cdn/qti-test/components/test-next.global.js +170 -0
- package/cdn/qti-test/components/test-next.js +1 -0
- package/cdn/qti-test/components/test-next.spec.global.js +297 -0
- package/cdn/qti-test/components/test-next.spec.js +713 -0
- package/cdn/qti-test/components/test-paging-buttons-stamp.global.js +207 -0
- package/cdn/qti-test/components/test-paging-buttons-stamp.js +1 -0
- package/cdn/qti-test/components/test-prev.global.js +170 -0
- package/cdn/qti-test/components/test-prev.js +1 -0
- package/cdn/qti-test/components/test-view.global.js +170 -0
- package/cdn/qti-test/components/test-view.js +1 -0
- package/cdn/qti-test/context/index.global.js +58 -0
- package/cdn/qti-test/context/index.js +1 -0
- package/cdn/qti-test/context/test.context.global.js +58 -0
- package/cdn/qti-test/context/test.context.js +1 -0
- package/cdn/qti-test/index.global.js +242 -0
- package/cdn/qti-test/index.js +1 -0
- package/cdn/qti-test/mixins/index.global.js +1 -0
- package/cdn/qti-test/mixins/index.js +1 -0
- package/cdn/qti-test/mixins/test-loader.mixin.global.js +1 -0
- package/cdn/qti-test/mixins/test-loader.mixin.js +1 -0
- package/cdn/qti-test/mixins/test-navigation.mixin.global.js +1 -0
- package/cdn/qti-test/mixins/test-navigation.mixin.js +1 -0
- package/cdn/qti-test/mixins/test-view.mixin.global.js +1 -0
- package/cdn/qti-test/mixins/test-view.mixin.js +1 -0
- package/cdn/qti-test/qti-assessment-test/index.global.js +170 -0
- package/cdn/qti-test/qti-assessment-test/index.js +1 -0
- package/cdn/qti-test/qti-assessment-test/qti-assessment-item-ref.global.js +170 -0
- package/cdn/qti-test/qti-assessment-test/qti-assessment-item-ref.js +1 -0
- package/cdn/qti-test/qti-assessment-test/qti-assessment-section.global.js +170 -0
- package/cdn/qti-test/qti-assessment-test/qti-assessment-section.js +1 -0
- package/cdn/qti-test/qti-assessment-test/qti-assessment-test.global.js +170 -0
- package/cdn/qti-test/qti-assessment-test/qti-assessment-test.js +1 -0
- package/cdn/qti-test/qti-assessment-test/qti-test-part.global.js +114 -0
- package/cdn/qti-test/qti-assessment-test/qti-test-part.js +1 -0
- package/cdn/qti-test/qti-test.global.js +170 -0
- package/cdn/qti-test/qti-test.js +1 -0
- package/cdn/qti-test/test-base.global.js +170 -0
- package/cdn/qti-test/test-base.js +1 -0
- package/cdn/qti-transformers/index.global.js +1 -0
- package/cdn/qti-transformers/index.js +1 -0
- package/dist/{transformers/index.js → chunk-2OA7E3E7.js} +2 -1
- package/dist/chunk-2OA7E3E7.js.map +1 -0
- package/dist/chunk-37X6KZO3.js +1 -0
- package/dist/chunk-37X6KZO3.js.map +1 -0
- package/dist/chunk-3WLCQQN7.js +3529 -0
- package/dist/chunk-3WLCQQN7.js.map +1 -0
- package/dist/chunk-3YVIK6LO.js +1 -0
- package/dist/chunk-3YVIK6LO.js.map +1 -0
- package/dist/chunk-44VE5POH.js +55 -0
- package/dist/chunk-44VE5POH.js.map +1 -0
- package/dist/chunk-4CSM2PCC.js +37 -0
- package/dist/chunk-4CSM2PCC.js.map +1 -0
- package/dist/chunk-4YG2FPKK.js +31 -0
- package/dist/chunk-4YG2FPKK.js.map +1 -0
- package/dist/chunk-7A6KCSAU.js +44 -0
- package/dist/chunk-7A6KCSAU.js.map +1 -0
- package/dist/chunk-ENVUIH2A.js +118 -0
- package/dist/chunk-ENVUIH2A.js.map +1 -0
- package/dist/chunk-ENZVY5X6.js +20 -0
- package/dist/chunk-ENZVY5X6.js.map +1 -0
- package/dist/chunk-EUCEENQQ.js +6253 -0
- package/dist/chunk-EUCEENQQ.js.map +1 -0
- package/dist/chunk-FNFNAV3G.js +56 -0
- package/dist/chunk-FNFNAV3G.js.map +1 -0
- package/dist/chunk-GSFDTSLL.js +1 -0
- package/dist/chunk-GSFDTSLL.js.map +1 -0
- package/dist/chunk-GTYLWGDG.js +43 -0
- package/dist/chunk-GTYLWGDG.js.map +1 -0
- package/dist/chunk-IAFQ5ZPI.js +29 -0
- package/dist/chunk-IAFQ5ZPI.js.map +1 -0
- package/dist/chunk-JDHBXMKF.js +78 -0
- package/dist/chunk-JDHBXMKF.js.map +1 -0
- package/dist/chunk-L7MBIXEX.js +50 -0
- package/dist/chunk-L7MBIXEX.js.map +1 -0
- package/dist/chunk-LYFMLDNV.js +1 -0
- package/dist/chunk-LYFMLDNV.js.map +1 -0
- package/dist/chunk-NNPTSZGC.js +1 -0
- package/dist/chunk-NNPTSZGC.js.map +1 -0
- package/dist/chunk-NQM35JUI.js +1 -0
- package/dist/chunk-NQM35JUI.js.map +1 -0
- package/dist/chunk-ODUHPWTX.js +65 -0
- package/dist/chunk-ODUHPWTX.js.map +1 -0
- package/dist/chunk-OGHHCP23.js +36 -0
- package/dist/chunk-OGHHCP23.js.map +1 -0
- package/dist/chunk-OQZW2B47.js +75 -0
- package/dist/chunk-OQZW2B47.js.map +1 -0
- package/dist/chunk-OXDOQVRL.js +63 -0
- package/dist/chunk-OXDOQVRL.js.map +1 -0
- package/dist/chunk-PBSMP6VF.js +128 -0
- package/dist/chunk-PBSMP6VF.js.map +1 -0
- package/dist/chunk-Q7OPFS4A.js +1 -0
- package/dist/chunk-Q7OPFS4A.js.map +1 -0
- package/dist/chunk-R4HSV7U7.js +10 -0
- package/dist/chunk-R4HSV7U7.js.map +1 -0
- package/dist/chunk-TXRSYXG3.js +50 -0
- package/dist/chunk-TXRSYXG3.js.map +1 -0
- package/dist/chunk-U3RLYKL5.js +51 -0
- package/dist/chunk-U3RLYKL5.js.map +1 -0
- package/dist/chunk-UB5K44DB.js +30 -0
- package/dist/chunk-UB5K44DB.js.map +1 -0
- package/dist/chunk-VODOQFTJ.js +72 -0
- package/dist/chunk-VODOQFTJ.js.map +1 -0
- package/dist/chunk-VW7VIQBE.js +34 -0
- package/dist/chunk-VW7VIQBE.js.map +1 -0
- package/dist/chunk-X4ZBUCOD.js +94 -0
- package/dist/chunk-X4ZBUCOD.js.map +1 -0
- package/dist/chunk-XFHB6KQW.js +1 -0
- package/dist/chunk-XFHB6KQW.js.map +1 -0
- package/dist/chunk-XNBWN7N2.js +94 -0
- package/dist/chunk-XNBWN7N2.js.map +1 -0
- package/dist/index.d.ts +18 -503
- package/dist/index.js +169 -13584
- package/dist/index.js.map +1 -1
- package/dist/item.css +10 -10
- package/dist/qti-components/index.d.ts +150 -0
- package/dist/qti-components/index.js +189 -0
- package/dist/qti-components/index.js.map +1 -0
- package/dist/qti-components-jsx.d.ts +93 -147
- package/dist/qti-item/components/index.d.ts +3 -0
- package/dist/qti-item/components/index.js +12 -0
- package/dist/qti-item/components/index.js.map +1 -0
- package/dist/qti-item/components/item-container.d.ts +40 -0
- package/dist/qti-item/components/item-container.js +11 -0
- package/dist/qti-item/components/item-container.js.map +1 -0
- package/dist/qti-item/index.d.ts +4 -0
- package/dist/qti-item/index.js +17 -0
- package/dist/qti-item/index.js.map +1 -0
- package/dist/qti-item/qti-item.d.ts +25 -0
- package/dist/qti-item/qti-item.js +8 -0
- package/dist/qti-item/qti-item.js.map +1 -0
- package/dist/{loader → qti-loader}/index.d.ts +1 -1
- package/dist/qti-loader/index.js +11 -0
- package/dist/qti-loader/index.js.map +1 -0
- package/dist/{qti-simple-choice-D0GiMrqD.d.ts → qti-simple-choice-DxWcdKHi.d.ts} +30 -40
- package/dist/qti-test/components/index.d.ts +13 -0
- package/dist/qti-test/components/index.js +40 -0
- package/dist/qti-test/components/index.js.map +1 -0
- package/dist/qti-test/components/styles.d.ts +8 -0
- package/dist/qti-test/components/styles.js +14 -0
- package/dist/qti-test/components/styles.js.map +1 -0
- package/dist/qti-test/components/test-component.abstract.d.ts +23 -0
- package/dist/qti-test/components/test-component.abstract.js +12 -0
- package/dist/qti-test/components/test-component.abstract.js.map +1 -0
- package/dist/qti-test/components/test-container.d.ts +37 -0
- package/dist/qti-test/components/test-container.js +11 -0
- package/dist/qti-test/components/test-container.js.map +1 -0
- package/dist/qti-test/components/test-item-link.d.ts +21 -0
- package/dist/qti-test/components/test-item-link.js +14 -0
- package/dist/qti-test/components/test-item-link.js.map +1 -0
- package/dist/qti-test/components/test-next.d.ts +32 -0
- package/dist/qti-test/components/test-next.js +14 -0
- package/dist/qti-test/components/test-next.js.map +1 -0
- package/dist/qti-test/components/test-next.spec.d.ts +16 -0
- package/dist/qti-test/components/test-next.spec.js +45923 -0
- package/dist/qti-test/components/test-next.spec.js.map +1 -0
- package/dist/qti-test/components/test-paging-buttons-stamp.d.ts +22 -0
- package/dist/qti-test/components/test-paging-buttons-stamp.js +13 -0
- package/dist/qti-test/components/test-paging-buttons-stamp.js.map +1 -0
- package/dist/qti-test/components/test-prev.d.ts +32 -0
- package/dist/qti-test/components/test-prev.js +14 -0
- package/dist/qti-test/components/test-prev.js.map +1 -0
- package/dist/qti-test/components/test-view.d.ts +27 -0
- package/dist/qti-test/components/test-view.js +13 -0
- package/dist/qti-test/components/test-view.js.map +1 -0
- package/dist/qti-test/context/index.d.ts +6 -0
- package/dist/qti-test/context/index.js +11 -0
- package/dist/qti-test/context/index.js.map +1 -0
- package/dist/qti-test/context/test.context.d.ts +6 -0
- package/dist/qti-test/context/test.context.js +10 -0
- package/dist/qti-test/context/test.context.js.map +1 -0
- package/dist/qti-test/index.d.ts +14 -0
- package/dist/qti-test/index.js +72 -0
- package/dist/qti-test/index.js.map +1 -0
- package/dist/qti-test/mixins/index.d.ts +8 -0
- package/dist/qti-test/mixins/index.js +18 -0
- package/dist/qti-test/mixins/index.js.map +1 -0
- package/dist/qti-test/mixins/test-loader.mixin.d.ts +8 -0
- package/dist/qti-test/mixins/test-loader.mixin.js +9 -0
- package/dist/qti-test/mixins/test-loader.mixin.js.map +1 -0
- package/dist/qti-test/mixins/test-navigation.mixin.d.ts +22 -0
- package/dist/qti-test/mixins/test-navigation.mixin.js +8 -0
- package/dist/qti-test/mixins/test-navigation.mixin.js.map +1 -0
- package/dist/qti-test/mixins/test-view.mixin.d.ts +6 -0
- package/dist/qti-test/mixins/test-view.mixin.js +8 -0
- package/dist/qti-test/mixins/test-view.mixin.js.map +1 -0
- package/dist/qti-test/qti-assessment-test/index.d.ts +6 -0
- package/dist/qti-test/qti-assessment-test/index.js +23 -0
- package/dist/qti-test/qti-assessment-test/index.js.map +1 -0
- package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.d.ts +6 -0
- package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.js +10 -0
- package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.js.map +1 -0
- package/dist/qti-test/qti-assessment-test/qti-assessment-section.d.ts +6 -0
- package/dist/qti-test/qti-assessment-test/qti-assessment-section.js +10 -0
- package/dist/qti-test/qti-assessment-test/qti-assessment-section.js.map +1 -0
- package/dist/qti-test/qti-assessment-test/qti-assessment-test.d.ts +6 -0
- package/dist/qti-test/qti-assessment-test/qti-assessment-test.js +10 -0
- package/dist/qti-test/qti-assessment-test/qti-assessment-test.js.map +1 -0
- package/dist/qti-test/qti-assessment-test/qti-test-part.d.ts +19 -0
- package/dist/qti-test/qti-assessment-test/qti-test-part.js +8 -0
- package/dist/qti-test/qti-assessment-test/qti-test-part.js.map +1 -0
- package/dist/qti-test/qti-test.d.ts +68 -0
- package/dist/qti-test/qti-test.js +16 -0
- package/dist/qti-test/qti-test.js.map +1 -0
- package/dist/qti-test/test-base.d.ts +6 -0
- package/dist/qti-test/test-base.js +10 -0
- package/dist/qti-test/test-base.js.map +1 -0
- package/dist/qti-transformers/index.js +12 -0
- package/dist/qti-transformers/index.js.map +1 -0
- package/dist/test-base-BJwG9Ie8.d.ts +109 -0
- package/dist/vscode.html-custom-data.json +49 -38
- package/package.json +28 -52
- package/dist/custom-element-eslint-rules.js +0 -329
- package/dist/custom-elements.json +0 -27271
- package/dist/loader/index.js +0 -310
- package/dist/loader/index.js.map +0 -1
- package/dist/qti-simple-choice-CfgBEvdI.d.ts +0 -1143
- package/dist/qti-simple-choice-UTrFa_RQ.d.ts +0 -1177
- package/dist/qti-simple-choice-zEsDq3c0.d.ts +0 -1147
- package/dist/transformers/index.js.map +0 -1
- /package/dist/{transformers → qti-transformers}/index.d.ts +0 -0
|
@@ -387,24 +387,24 @@ declare abstract class Interaction extends LitElement implements IInteraction {
|
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
declare class QtiExtendedTextInteraction extends Interaction {
|
|
390
|
-
|
|
390
|
+
static styles: CSSResultGroup;
|
|
391
|
+
protected _rows: number;
|
|
391
392
|
/** expected length is mapped to the property maxlength on the textarea */
|
|
392
393
|
expectedLength: number;
|
|
393
394
|
patternMask: string;
|
|
394
395
|
/** text appearing in the extended-text-nteraction if it is empty */
|
|
395
396
|
placeholderText: string;
|
|
396
397
|
dataPatternmaskMessage: string;
|
|
397
|
-
|
|
398
|
+
protected _value: string;
|
|
398
399
|
classNames: any;
|
|
399
400
|
handleclassNamesChange(_: any, classes: string): void;
|
|
400
401
|
get value(): string | string[];
|
|
401
402
|
set value(val: string | string[]);
|
|
402
403
|
validate(): boolean;
|
|
403
404
|
reportValidity(): boolean;
|
|
404
|
-
static get styles(): lit.CSSResult[];
|
|
405
405
|
render(): lit_html.TemplateResult<1>;
|
|
406
406
|
protected textChanged(event: Event): void;
|
|
407
|
-
|
|
407
|
+
protected setEmptyAttribute(text: string): void;
|
|
408
408
|
}
|
|
409
409
|
declare global {
|
|
410
410
|
interface HTMLElementTagNameMap {
|
|
@@ -444,7 +444,6 @@ interface ChoicesInterface extends IInteraction {
|
|
|
444
444
|
|
|
445
445
|
declare const QtiHottextInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
|
|
446
446
|
declare class QtiHottextInteraction extends QtiHottextInteraction_base {
|
|
447
|
-
connectedCallback(): void;
|
|
448
447
|
render: () => lit_html.TemplateResult<1>;
|
|
449
448
|
}
|
|
450
449
|
declare global {
|
|
@@ -461,8 +460,8 @@ interface OptionType {
|
|
|
461
460
|
declare class QtiInlineChoiceInteraction extends Interaction {
|
|
462
461
|
static get styles(): lit.CSSResult[];
|
|
463
462
|
static inputWidthClass: string[];
|
|
464
|
-
options: OptionType[];
|
|
465
|
-
correctOption: string;
|
|
463
|
+
protected options: OptionType[];
|
|
464
|
+
protected correctOption: string;
|
|
466
465
|
dataPrompt: string;
|
|
467
466
|
render(): lit_html.TemplateResult<1>;
|
|
468
467
|
connectedCallback(): void;
|
|
@@ -472,7 +471,7 @@ declare class QtiInlineChoiceInteraction extends Interaction {
|
|
|
472
471
|
set value(value: string);
|
|
473
472
|
get value(): string;
|
|
474
473
|
set correctResponse(value: string | string[]);
|
|
475
|
-
choiceSelected(event: Event): void;
|
|
474
|
+
protected choiceSelected(event: Event): void;
|
|
476
475
|
}
|
|
477
476
|
declare global {
|
|
478
477
|
interface HTMLElementTagNameMap {
|
|
@@ -739,11 +738,11 @@ declare global {
|
|
|
739
738
|
|
|
740
739
|
declare const QtiAssociateInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
|
|
741
740
|
declare class QtiAssociateInteraction extends QtiAssociateInteraction_base {
|
|
742
|
-
private _childrenMap;
|
|
743
741
|
static styles: CSSResultGroup;
|
|
744
|
-
|
|
742
|
+
protected _childrenMap: Element[];
|
|
743
|
+
protected _registerChoiceHandler: (event: CustomEvent) => void;
|
|
745
744
|
constructor();
|
|
746
|
-
|
|
745
|
+
protected _registerChoice(event: CustomEvent): void;
|
|
747
746
|
render(): lit_html.TemplateResult<1>;
|
|
748
747
|
disconnectedCallback(): void;
|
|
749
748
|
}
|
|
@@ -784,12 +783,12 @@ declare global {
|
|
|
784
783
|
}
|
|
785
784
|
}
|
|
786
785
|
|
|
787
|
-
declare class QtiEndAttemptInteraction extends
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
786
|
+
declare class QtiEndAttemptInteraction extends LitElement {
|
|
787
|
+
responseIdentifier: any;
|
|
788
|
+
disabled: boolean;
|
|
789
|
+
/** Defines the number of attempts that a user can make using the 'endAttemptInteraction' mechanism (this can be used to limit the number of hints, etc.). [More information](https://www.imsglobal.org/sites/default/files/spec/qti/v3/info/index.html#DataCharacteristic_EndAttemptInteraction.Attr_count-attempt) */
|
|
790
|
+
countAttempt: 'true' | 'false' | null;
|
|
791
|
+
title: string;
|
|
793
792
|
render(): lit_html.TemplateResult<1>;
|
|
794
793
|
endAttempt(_: Event): void;
|
|
795
794
|
}
|
|
@@ -812,23 +811,14 @@ declare global {
|
|
|
812
811
|
}
|
|
813
812
|
|
|
814
813
|
declare class QtiGraphicAssociateInteraction extends Interaction {
|
|
815
|
-
|
|
816
|
-
hotspots
|
|
817
|
-
startPoint
|
|
818
|
-
endPoint
|
|
819
|
-
_lines
|
|
820
|
-
startCoord
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
};
|
|
824
|
-
mouseCoord: {
|
|
825
|
-
x: number;
|
|
826
|
-
y: number;
|
|
827
|
-
};
|
|
828
|
-
svgContainer: any;
|
|
829
|
-
grImage: any;
|
|
830
|
-
static styles: lit.CSSResult[];
|
|
831
|
-
svg: SVGSVGElement;
|
|
814
|
+
static styles: CSSResultGroup;
|
|
815
|
+
private hotspots;
|
|
816
|
+
private startPoint;
|
|
817
|
+
private endPoint;
|
|
818
|
+
private _lines;
|
|
819
|
+
private startCoord;
|
|
820
|
+
private mouseCoord;
|
|
821
|
+
private grImage;
|
|
832
822
|
constructor();
|
|
833
823
|
reset(): void;
|
|
834
824
|
validate(): boolean;
|
|
@@ -861,9 +851,9 @@ declare global {
|
|
|
861
851
|
|
|
862
852
|
declare const QtiGraphicOrderInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
|
|
863
853
|
declare class QtiGraphicOrderInteraction extends QtiGraphicOrderInteraction_base {
|
|
864
|
-
|
|
854
|
+
static styles: CSSResultGroup;
|
|
855
|
+
protected choiceOrdering: boolean;
|
|
865
856
|
protected _choiceElements: Choice[];
|
|
866
|
-
static styles: lit.CSSResult[];
|
|
867
857
|
render(): lit_html.TemplateResult<1>;
|
|
868
858
|
private setHotspotOrder;
|
|
869
859
|
private positionHotspotOnRegister;
|
|
@@ -878,7 +868,7 @@ declare global {
|
|
|
878
868
|
|
|
879
869
|
declare const QtiHotspotInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
|
|
880
870
|
declare class QtiHotspotInteraction extends QtiHotspotInteraction_base {
|
|
881
|
-
static styles:
|
|
871
|
+
static styles: CSSResultGroup;
|
|
882
872
|
render(): lit_html.TemplateResult<1>;
|
|
883
873
|
private positionHotspotOnRegister;
|
|
884
874
|
connectedCallback(): void;
|
|
@@ -958,8 +948,8 @@ declare global {
|
|
|
958
948
|
declare const QtiOrderInteraction_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
|
|
959
949
|
declare class QtiOrderInteraction extends QtiOrderInteraction_base {
|
|
960
950
|
static styles: lit.CSSResult;
|
|
961
|
-
childrenMap: Element[];
|
|
962
|
-
nrChoices: number;
|
|
951
|
+
protected childrenMap: Element[];
|
|
952
|
+
protected nrChoices: number;
|
|
963
953
|
correctResponses: string[];
|
|
964
954
|
showCorrectResponses: boolean;
|
|
965
955
|
/** orientation of choices */
|
|
@@ -1165,4 +1155,4 @@ declare global {
|
|
|
1165
1155
|
}
|
|
1166
1156
|
}
|
|
1167
1157
|
|
|
1168
|
-
export {
|
|
1158
|
+
export { type QtiRuleBase as $, type ActiveElementMixinInterface as A, type BaseType as B, type Calculate as C, QtiHottextInteraction as D, QtiInlineChoiceInteraction as E, type Orientation as F, QtiChoiceInteraction as G, QtiUploadInteraction as H, type InteractionChangedDetails as I, QtiOutcomeProcessing as J, QtiOutcomeProcessingProcessor as K, QtiResponseProcessing as L, type Multiple as M, QtiLookupOutcomeValue as N, type OutcomeChangedDetails as O, QtiAnd as P, type QtiInteractionChanged as Q, type ResponseInteraction as R, qtiAndMixin as S, QtiConditionExpression as T, type QtiExpressionBase as U, type VariableValue as V, QtiExpression as W, QtiMapping as X, QtiSubtract as Y, qtiSubtractMixin as Z, QtiRule as _, type QtiOutcomeChanged 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, type ItemContext as af, itemContextVariables as ag, itemContext as ah, QtiCustomOperator as ai, Interaction as aj, QtiAssociableHotspot as ak, QtiGap as al, QtiGapImg as am, QtiGapText as an, QtiHotspotChoice as ao, QtiHottext as ap, QtiInlineChoice as aq, QtiSimpleAssociableChoice as ar, QtiSimpleChoice as as, type Ordered as b, type Cardinality as c, type directedPair as d, type VariableDeclaration as e, type float as f, type OutcomeVariable as g, type ResponseVariable as h, type integer as i, QtiAssessmentItem as j, QtiAssessmentStimulusRef as k, type ChoiceInterface as l, ActiveElementMixin as m, QtiItemBody as n, QtiPrompt as o, QtiStylesheet as p, QtiOutcomeDeclaration as q, QtiResponseDeclaration as r, QtiCompanionMaterialsInfo as s, QtiContentBody as t, QtiRubricBlock as u, QtiFeedbackBlock as v, QtiFeedbackInline as w, QtiModalFeedback as x, QtiExtendedTextInteraction as y, QtiTextEntryInteraction as z };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { TestComponent } from './test-component.abstract.js';
|
|
2
|
+
export { TestNext } from './test-next.js';
|
|
3
|
+
export { TestPrev } from './test-prev.js';
|
|
4
|
+
export { TestView } from './test-view.js';
|
|
5
|
+
export { TestItemLink } from './test-item-link.js';
|
|
6
|
+
export { TestContainer } from './test-container.js';
|
|
7
|
+
export { TestPagingButtonsStamp } from './test-paging-buttons-stamp.js';
|
|
8
|
+
import 'lit';
|
|
9
|
+
import '../../test-base-BJwG9Ie8.js';
|
|
10
|
+
import '../qti-assessment-test/qti-test-part.js';
|
|
11
|
+
import 'lit-html';
|
|
12
|
+
import '../../qti-simple-choice-DxWcdKHi.js';
|
|
13
|
+
import 'lit-html/directives/ref.js';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import "../../chunk-GSFDTSLL.js";
|
|
2
|
+
import {
|
|
3
|
+
TestContainer
|
|
4
|
+
} from "../../chunk-X4ZBUCOD.js";
|
|
5
|
+
import {
|
|
6
|
+
TestItemLink
|
|
7
|
+
} from "../../chunk-GTYLWGDG.js";
|
|
8
|
+
import {
|
|
9
|
+
TestNext
|
|
10
|
+
} from "../../chunk-L7MBIXEX.js";
|
|
11
|
+
import {
|
|
12
|
+
TestPagingButtonsStamp
|
|
13
|
+
} from "../../chunk-JDHBXMKF.js";
|
|
14
|
+
import {
|
|
15
|
+
TestPrev
|
|
16
|
+
} from "../../chunk-TXRSYXG3.js";
|
|
17
|
+
import {
|
|
18
|
+
TestView
|
|
19
|
+
} from "../../chunk-VODOQFTJ.js";
|
|
20
|
+
import "../../chunk-UB5K44DB.js";
|
|
21
|
+
import {
|
|
22
|
+
TestComponent
|
|
23
|
+
} from "../../chunk-ENVUIH2A.js";
|
|
24
|
+
import "../../chunk-4CSM2PCC.js";
|
|
25
|
+
import "../../chunk-3WLCQQN7.js";
|
|
26
|
+
import "../../chunk-4YG2FPKK.js";
|
|
27
|
+
import "../../chunk-2OA7E3E7.js";
|
|
28
|
+
import "../../chunk-XFHB6KQW.js";
|
|
29
|
+
import "../../chunk-R4HSV7U7.js";
|
|
30
|
+
import "../../chunk-44VE5POH.js";
|
|
31
|
+
export {
|
|
32
|
+
TestComponent,
|
|
33
|
+
TestContainer,
|
|
34
|
+
TestItemLink,
|
|
35
|
+
TestNext,
|
|
36
|
+
TestPagingButtonsStamp,
|
|
37
|
+
TestPrev,
|
|
38
|
+
TestView
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { T as TestContext, c as TestElement } from '../../test-base-BJwG9Ie8.js';
|
|
3
|
+
import '../qti-assessment-test/qti-test-part.js';
|
|
4
|
+
import 'lit-html';
|
|
5
|
+
import '../../qti-simple-choice-DxWcdKHi.js';
|
|
6
|
+
import 'lit-html/directives/ref.js';
|
|
7
|
+
|
|
8
|
+
declare abstract class TestComponent extends LitElement {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
protected _testContext?: TestContext;
|
|
11
|
+
protected _testElement?: TestElement;
|
|
12
|
+
_handleTestElementChange(_oldValue: TestElement, newValue: TestElement): void;
|
|
13
|
+
protected _internals: ElementInternals;
|
|
14
|
+
protected items: any;
|
|
15
|
+
protected itemIndex: any;
|
|
16
|
+
protected view: any;
|
|
17
|
+
constructor();
|
|
18
|
+
protected willUpdate(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
19
|
+
protected _switchView(view: string): void;
|
|
20
|
+
protected _requestItem(identifier: string): void;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { TestComponent };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TestComponent
|
|
3
|
+
} from "../../chunk-ENVUIH2A.js";
|
|
4
|
+
import "../../chunk-4CSM2PCC.js";
|
|
5
|
+
import "../../chunk-4YG2FPKK.js";
|
|
6
|
+
import "../../chunk-XFHB6KQW.js";
|
|
7
|
+
import "../../chunk-R4HSV7U7.js";
|
|
8
|
+
import "../../chunk-44VE5POH.js";
|
|
9
|
+
export {
|
|
10
|
+
TestComponent
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=test-component.abstract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as lit_html from 'lit-html';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `<test-container>` is a custom element designed for hosting the qti-assessment-item.
|
|
6
|
+
* The `qti-assessment-test` will be placed inside the shadow DOM of this element.
|
|
7
|
+
* The element loads the test from the provided URL and renders it inside the shadow DOM.
|
|
8
|
+
*
|
|
9
|
+
* ```html
|
|
10
|
+
* <qti-test>
|
|
11
|
+
* <test-container class="m-4 bg-white" test-url="./path/to/assessmenttest.xml"></test-container>
|
|
12
|
+
* </qti-test>
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
declare class TestContainer extends LitElement {
|
|
16
|
+
/** URL of the item to load */
|
|
17
|
+
testURL: string;
|
|
18
|
+
/** A parsed HTML document */
|
|
19
|
+
testDoc: DocumentFragment;
|
|
20
|
+
/** The raw XML string */
|
|
21
|
+
testXML: string;
|
|
22
|
+
/** Template content if provided */
|
|
23
|
+
private templateContent;
|
|
24
|
+
protected handleTestURLChange(): Promise<void>;
|
|
25
|
+
protected handleTestXMLChange(): void;
|
|
26
|
+
connectedCallback(): Promise<void>;
|
|
27
|
+
private initializeTemplateContent;
|
|
28
|
+
private applyStyles;
|
|
29
|
+
render(): lit_html.TemplateResult<1>;
|
|
30
|
+
}
|
|
31
|
+
declare global {
|
|
32
|
+
interface HTMLElementTagNameMap {
|
|
33
|
+
'test-container': TestContainer;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { TestContainer };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TestContainer
|
|
3
|
+
} from "../../chunk-X4ZBUCOD.js";
|
|
4
|
+
import "../../chunk-3WLCQQN7.js";
|
|
5
|
+
import "../../chunk-4YG2FPKK.js";
|
|
6
|
+
import "../../chunk-2OA7E3E7.js";
|
|
7
|
+
import "../../chunk-44VE5POH.js";
|
|
8
|
+
export {
|
|
9
|
+
TestContainer
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=test-container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as lit_html from 'lit-html';
|
|
2
|
+
import * as lit from 'lit';
|
|
3
|
+
import { TestComponent } from './test-component.abstract.js';
|
|
4
|
+
import '../../test-base-BJwG9Ie8.js';
|
|
5
|
+
import '../qti-assessment-test/qti-test-part.js';
|
|
6
|
+
import '../../qti-simple-choice-DxWcdKHi.js';
|
|
7
|
+
import 'lit-html/directives/ref.js';
|
|
8
|
+
|
|
9
|
+
declare class TestItemLink extends TestComponent {
|
|
10
|
+
static styles: lit.CSSResult;
|
|
11
|
+
private itemId;
|
|
12
|
+
constructor();
|
|
13
|
+
render(): lit_html.TemplateResult<1>;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
'test-item-link': TestItemLink;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { TestItemLink };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TestItemLink
|
|
3
|
+
} from "../../chunk-GTYLWGDG.js";
|
|
4
|
+
import "../../chunk-UB5K44DB.js";
|
|
5
|
+
import "../../chunk-ENVUIH2A.js";
|
|
6
|
+
import "../../chunk-4CSM2PCC.js";
|
|
7
|
+
import "../../chunk-4YG2FPKK.js";
|
|
8
|
+
import "../../chunk-XFHB6KQW.js";
|
|
9
|
+
import "../../chunk-R4HSV7U7.js";
|
|
10
|
+
import "../../chunk-44VE5POH.js";
|
|
11
|
+
export {
|
|
12
|
+
TestItemLink
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=test-item-link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as lit_html from 'lit-html';
|
|
2
|
+
import * as lit from 'lit';
|
|
3
|
+
import { TestComponent } from './test-component.abstract.js';
|
|
4
|
+
import '../../test-base-BJwG9Ie8.js';
|
|
5
|
+
import '../qti-assessment-test/qti-test-part.js';
|
|
6
|
+
import '../../qti-simple-choice-DxWcdKHi.js';
|
|
7
|
+
import 'lit-html/directives/ref.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Represents a custom element for navigating to the next test item.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* This element provides functionality for navigating to the next test item.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```html
|
|
17
|
+
* <test-next></test-next>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
declare class TestNext extends TestComponent {
|
|
21
|
+
static styles: lit.CSSResult;
|
|
22
|
+
constructor();
|
|
23
|
+
willUpdate(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
24
|
+
render(): lit_html.TemplateResult<1>;
|
|
25
|
+
}
|
|
26
|
+
declare global {
|
|
27
|
+
interface HTMLElementTagNameMap {
|
|
28
|
+
'test-next': TestNext;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { TestNext };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TestNext
|
|
3
|
+
} from "../../chunk-L7MBIXEX.js";
|
|
4
|
+
import "../../chunk-UB5K44DB.js";
|
|
5
|
+
import "../../chunk-ENVUIH2A.js";
|
|
6
|
+
import "../../chunk-4CSM2PCC.js";
|
|
7
|
+
import "../../chunk-4YG2FPKK.js";
|
|
8
|
+
import "../../chunk-XFHB6KQW.js";
|
|
9
|
+
import "../../chunk-R4HSV7U7.js";
|
|
10
|
+
import "../../chunk-44VE5POH.js";
|
|
11
|
+
export {
|
|
12
|
+
TestNext
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=test-next.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import '../qti-test.js';
|
|
2
|
+
import '../../test-base-BJwG9Ie8.js';
|
|
3
|
+
import '../qti-assessment-test/qti-test-part.js';
|
|
4
|
+
import '../../qti-simple-choice-DxWcdKHi.js';
|
|
5
|
+
import './test-next.js';
|
|
6
|
+
import './test-prev.js';
|
|
7
|
+
import './test-view.js';
|
|
8
|
+
import './test-item-link.js';
|
|
9
|
+
import './test-container.js';
|
|
10
|
+
import './test-paging-buttons-stamp.js';
|
|
11
|
+
import '../../qti-item/qti-item.js';
|
|
12
|
+
import '../../qti-item/components/item-container.js';
|
|
13
|
+
import 'lit-html';
|
|
14
|
+
import 'lit';
|
|
15
|
+
import 'lit-html/directives/ref.js';
|
|
16
|
+
import './test-component.abstract.js';
|