@citolab/qti-components 6.9.1-beta.50 → 6.9.1-beta.52
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/dist/chunk-SOXSSPDZ.js +24 -0
- package/dist/custom-elements.json +486 -376
- package/dist/index.global.js +1 -1
- package/dist/index.js +1 -1
- package/dist/item.css +11 -5
- package/dist/qti-components/index.d.ts +2 -2
- package/dist/qti-components/index.js +101 -95
- package/dist/qti-item/index.d.ts +1 -1
- package/dist/qti-loader/index.d.ts +8 -9
- package/dist/qti-loader/index.js +2 -2
- package/dist/{qti-simple-choice-Bil0gmT4.d.ts → qti-simple-choice-CFhbe77e.d.ts} +89 -53
- package/dist/qti-transformers/index.d.ts +4 -5
- package/dist/qti-transformers/index.js +1 -1
- package/package.json +12 -12
- package/dist/chunk-IRTOORT6.js +0 -24
package/dist/qti-item/index.d.ts
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { p as QtiAssessmentItem } from '../qti-simple-choice-
|
|
1
|
+
import { p as QtiAssessmentItem } from '../qti-simple-choice-CFhbe77e.js';
|
|
2
2
|
import 'lit-html';
|
|
3
3
|
import 'lit';
|
|
4
4
|
import 'lit-html/directives/ref.js';
|
|
5
5
|
|
|
6
|
-
type
|
|
7
|
-
itemLocation: string;
|
|
6
|
+
type ManifestInfo = {
|
|
8
7
|
testIdentifier: string;
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
testHTMLDoc: DocumentFragment;
|
|
9
|
+
testURI: string;
|
|
10
|
+
testURL: string;
|
|
11
11
|
items: {
|
|
12
12
|
identifier: string;
|
|
13
13
|
href: string;
|
|
14
14
|
category: string;
|
|
15
15
|
}[];
|
|
16
16
|
};
|
|
17
|
-
declare const
|
|
18
|
-
declare const
|
|
19
|
-
declare const getItemByUri: (itemUri: string, cancelPreviousRequest?: boolean) => Promise<QtiAssessmentItem>;
|
|
17
|
+
declare const getManifestInfo: (manifestURL: string) => Promise<ManifestInfo>;
|
|
18
|
+
declare const getItemByUri: (itemUri: string) => Promise<QtiAssessmentItem>;
|
|
20
19
|
|
|
21
|
-
export { type
|
|
20
|
+
export { type ManifestInfo, getItemByUri, getManifestInfo };
|
package/dist/qti-loader/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import{a as i,b as o,c as r}from"../chunk-SOXSSPDZ.js";import"../chunk-NYAUPIAG.js";var h=async s=>{let t=s.substring(0,s.lastIndexOf("/")),e=await o().load(`${s}`).then(n=>n.assessmentTest()),m=await r().load(`${t}/${e.href}`).then(n=>n.htmlDoc()),f=await r().load(`${t}/${e.href}`).then(n=>n.items()),a=`${t}/${e.href}`,c=`${t}/${e.href.substring(0,e.href.lastIndexOf("/"))}`;return{testHTMLDoc:m,testURI:c,testURL:a,items:f,testIdentifier:e.identifier}},d=async s=>i().load(s).then(t=>t.htmlDoc().firstElementChild);export{d as getItemByUri,h as getManifestInfo};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vc3JjL2xpYi9xdGktbG9hZGVyL3F0aS1sb2FkZXIudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImltcG9ydCB7IFF0aUFzc2Vzc21lbnRJdGVtIH0gZnJvbSAnLi4vcXRpLWNvbXBvbmVudHMnO1xuaW1wb3J0IHsgcXRpVHJhbnNmb3JtSXRlbSwgcXRpVHJhbnNmb3JtVGVzdCB9IGZyb20gJy4uL3F0aS10cmFuc2Zvcm1lcnMnO1xuaW1wb3J0IHsgcXRpVHJhbnNmb3JtTWFuaWZlc3QgfSBmcm9tICcuLi9xdGktdHJhbnNmb3JtZXJzL3F0aS10cmFuc2Zvcm0tbWFuaWZlc3QnO1xuXG5leHBvcnQgdHlwZSBNYW5pZmVzdEluZm8gPSB7XG4gIHRlc3RJZGVudGlmaWVyOiBzdH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wsQ0FBTyxJQUFJQyxFQUFLLElBQUksRUFBRSxFQUM5QixLQUFLRSxHQUFPQSxFQUFJLFFBQVEsQ0FBQyxFQUV0QkcsRUFBUSxNQUFNRCxFQUFpQixFQUNsQyxLQUFLLEdBQUdMLENBQU8sSUFBSUMsRUFBSyxJQUFJLEVBQUUsRUFDOUIsS0FBS0UsR0FBT0EsRUFBSSxNQUFNLENBQUMsRUFFcEJJLEVBQVUsR0FBR1AsQ0FBTyxJQUFJQyxFQUFLLElBQUksR0FDakNPLEVBQVUsR0FBR1IsQ0FBTyxJQUFJQyxFQUFLLEtBQUssVUFBVSxFQUFHQSxFQUFLLEtBQUssWUFBWSxHQUFHLENBQUMsQ0FBQyxHQUVoRixNQUFPLENBQ0wsWUFBQUcsRUFDQSxRQUFBSSxFQUNBLFFBQUFELEVBQ0EsTUFBQUQsRUFDQSxlQUFnQkwsRUFBSyxVQUN2QixDQUNGLEVBR2FRLEVBQWUsTUFBT0MsR0FDakNDLEVBQWlCLEVBQ2QsS0FBS0QsQ0FBTyxFQUNaLEtBQUtQLEdBQU9BLEVBQUksUUFBUSxFQUFFLGlCQUFzQyIsCiAgIm5hbWVzIjogWyJnZXRNYW5pZmVzdEluZm8iLCAibWFuaWZlc3RVUkwiLCAiYmFzZVVSSSIsICJ0ZXN0IiwgInF0aVRyYW5zZm9ybU1hbmlmZXN0IiwgImFwaSIsICJ0ZXN0SFRNTERvYyIsICJxdGlUcmFuc2Zvcm1UZXN0IiwgIml0ZW1zIiwgInRlc3RVUkwiLCAidGVzdFVSSSIsICJnZXRJdGVtQnlVcmkiLCAiaXRlbVVyaSIsICJxdGlUcmFuc2Zvcm1JdGVtIl0KfQo=
|
|
@@ -210,7 +210,7 @@ declare global {
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
type Constructor$1<T = {}> = new (...args: any[]) => T;
|
|
213
|
+
type Constructor$1<T = {}> = abstract new (...args: any[]) => T;
|
|
214
214
|
interface ChoiceInterface {
|
|
215
215
|
identifier: string;
|
|
216
216
|
disabled: boolean;
|
|
@@ -224,7 +224,14 @@ interface ChoiceInterface {
|
|
|
224
224
|
* @param type - The type of the choice, used in event names.
|
|
225
225
|
* @returns A new class extending the base class with choice functionality.
|
|
226
226
|
*/
|
|
227
|
-
|
|
227
|
+
interface ActiveElementMixinInterface {
|
|
228
|
+
identifier: string;
|
|
229
|
+
tabIndex: number;
|
|
230
|
+
disabled: boolean;
|
|
231
|
+
readonly: boolean;
|
|
232
|
+
internals: ElementInternals;
|
|
233
|
+
}
|
|
234
|
+
declare function ActiveElementMixin<T extends Constructor$1<LitElement>>(Base: T, type: string): Constructor$1<ActiveElementMixinInterface> & T;
|
|
228
235
|
|
|
229
236
|
/**
|
|
230
237
|
* @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.
|
|
@@ -257,8 +264,9 @@ declare global {
|
|
|
257
264
|
}
|
|
258
265
|
|
|
259
266
|
declare class QtiStylesheet extends LitElement {
|
|
260
|
-
private
|
|
267
|
+
private styleElement;
|
|
261
268
|
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
269
|
+
private minifyCss;
|
|
262
270
|
disconnectedCallback(): void;
|
|
263
271
|
}
|
|
264
272
|
declare global {
|
|
@@ -395,15 +403,35 @@ declare global {
|
|
|
395
403
|
}
|
|
396
404
|
}
|
|
397
405
|
|
|
398
|
-
|
|
406
|
+
interface IInteraction {
|
|
407
|
+
correctResponse: Readonly<string | string[]>;
|
|
408
|
+
value: string | string[];
|
|
409
|
+
responseIdentifier: string;
|
|
410
|
+
disabled: boolean;
|
|
411
|
+
readonly: boolean;
|
|
412
|
+
validate(): boolean;
|
|
413
|
+
reportValidity(): boolean;
|
|
414
|
+
reset(): void;
|
|
415
|
+
saveResponse(value: string | string[]): void;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
declare abstract class Interaction extends LitElement implements IInteraction {
|
|
419
|
+
static formAssociated: boolean;
|
|
399
420
|
responseIdentifier: string;
|
|
400
421
|
/** disabled should be exposed to the attributes and accessible as property */
|
|
401
422
|
disabled: boolean;
|
|
402
423
|
/** readonly should be exposed to the attributes and accessible as property */
|
|
403
424
|
readonly: boolean;
|
|
425
|
+
protected _correctResponse: string | string[];
|
|
426
|
+
protected _internals: ElementInternals;
|
|
427
|
+
constructor();
|
|
404
428
|
abstract validate(): boolean;
|
|
405
|
-
|
|
406
|
-
|
|
429
|
+
reportValidity(): boolean;
|
|
430
|
+
reset(): void;
|
|
431
|
+
abstract get value(): string | string[];
|
|
432
|
+
abstract set value(val: string | string[]);
|
|
433
|
+
get correctResponse(): string | string[];
|
|
434
|
+
set correctResponse(value: string | string[]);
|
|
407
435
|
connectedCallback(): void;
|
|
408
436
|
saveResponse(value: string | string[]): void;
|
|
409
437
|
}
|
|
@@ -415,15 +443,17 @@ declare class QtiExtendedTextInteraction extends Interaction {
|
|
|
415
443
|
patternMask: string;
|
|
416
444
|
/** text appearing in the extended-text-nteraction if it is empty */
|
|
417
445
|
placeholderText: string;
|
|
446
|
+
dataPatternmaskMessage: string;
|
|
418
447
|
private _value;
|
|
419
448
|
classNames: any;
|
|
420
449
|
handleclassNamesChange(old: any, classes: string): void;
|
|
421
|
-
|
|
450
|
+
get value(): string | string[];
|
|
451
|
+
set value(val: string | string[]);
|
|
422
452
|
validate(): boolean;
|
|
453
|
+
reportValidity(): boolean;
|
|
423
454
|
static get styles(): lit.CSSResult[];
|
|
424
455
|
render(): lit_html.TemplateResult<1>;
|
|
425
456
|
protected textChanged(event: Event): void;
|
|
426
|
-
reset(): void;
|
|
427
457
|
private setEmptyAttribute;
|
|
428
458
|
}
|
|
429
459
|
declare global {
|
|
@@ -437,15 +467,15 @@ declare class QtiTextEntryInteraction extends Interaction {
|
|
|
437
467
|
expectedLength: number;
|
|
438
468
|
patternMask: string;
|
|
439
469
|
placeholderText: string;
|
|
470
|
+
dataPatternmaskMessage: string;
|
|
440
471
|
private _value;
|
|
441
|
-
private _correctValue;
|
|
442
|
-
private _size;
|
|
443
472
|
inputRef: lit_html_directives_ref_js.Ref<HTMLInputElement>;
|
|
444
|
-
|
|
473
|
+
get value(): string | string[];
|
|
474
|
+
set value(val: string | string[]);
|
|
445
475
|
validate(): boolean;
|
|
446
|
-
set correctResponse(value: string);
|
|
447
476
|
render(): lit_html.TemplateResult<1>;
|
|
448
477
|
protected textChanged(event: Event): void;
|
|
478
|
+
reportValidity(): boolean;
|
|
449
479
|
reset(): void;
|
|
450
480
|
private setEmptyAttribute;
|
|
451
481
|
}
|
|
@@ -455,14 +485,15 @@ declare global {
|
|
|
455
485
|
}
|
|
456
486
|
}
|
|
457
487
|
|
|
458
|
-
type Choice = HTMLElement & ChoiceInterface
|
|
459
|
-
|
|
460
|
-
|
|
488
|
+
type Choice = HTMLElement & ChoiceInterface & {
|
|
489
|
+
internals: ElementInternals;
|
|
490
|
+
};
|
|
491
|
+
interface ChoicesInterface extends IInteraction {
|
|
461
492
|
_choiceElements: Array<Choice>;
|
|
462
493
|
correctResponse: string | string[];
|
|
463
494
|
}
|
|
464
495
|
|
|
465
|
-
declare const QtiHottextInteraction_base: (new (...args: any[]) => ChoicesInterface) & typeof
|
|
496
|
+
declare const QtiHottextInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
|
|
466
497
|
declare class QtiHottextInteraction extends QtiHottextInteraction_base {
|
|
467
498
|
connectedCallback(): void;
|
|
468
499
|
render: () => lit_html.TemplateResult<1>;
|
|
@@ -489,8 +520,9 @@ declare class QtiInlineChoiceInteraction extends Interaction {
|
|
|
489
520
|
disconnectedCallback(): void;
|
|
490
521
|
validate(): boolean;
|
|
491
522
|
reset(): void;
|
|
492
|
-
set
|
|
493
|
-
|
|
523
|
+
set value(value: string);
|
|
524
|
+
get value(): string;
|
|
525
|
+
set correctResponse(value: string | string[]);
|
|
494
526
|
choiceSelected(event: Event): void;
|
|
495
527
|
}
|
|
496
528
|
declare global {
|
|
@@ -499,7 +531,7 @@ declare global {
|
|
|
499
531
|
}
|
|
500
532
|
}
|
|
501
533
|
|
|
502
|
-
declare const QtiChoiceInteraction_base: (new (...args: any[]) => {}) & (new (...args: any[]) => {}) & (new (...args: any[]) => ChoicesInterface) & typeof
|
|
534
|
+
declare const QtiChoiceInteraction_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
|
|
503
535
|
declare class QtiChoiceInteraction extends QtiChoiceInteraction_base implements ChoicesInterface {
|
|
504
536
|
static styles: CSSResultGroup;
|
|
505
537
|
/** orientation of choices */
|
|
@@ -673,7 +705,8 @@ declare class QtiPortableCustomInteraction extends Interaction {
|
|
|
673
705
|
private startChecking;
|
|
674
706
|
private stopChecking;
|
|
675
707
|
validate(): boolean;
|
|
676
|
-
set
|
|
708
|
+
set value(val: string | string[]);
|
|
709
|
+
get value(): string | string[];
|
|
677
710
|
getTAOConfig(node: any): {};
|
|
678
711
|
register(pci: IMSpci<unknown>): void;
|
|
679
712
|
connectedCallback(): void;
|
|
@@ -692,20 +725,15 @@ declare global {
|
|
|
692
725
|
}
|
|
693
726
|
}
|
|
694
727
|
|
|
695
|
-
|
|
696
|
-
disabled: boolean;
|
|
697
|
-
readonly: boolean;
|
|
698
|
-
response: string | string[];
|
|
699
|
-
reset(): any;
|
|
700
|
-
validate(): boolean;
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
declare const QtiAssociateInteraction_base: (new (...args: any[]) => IInteraction) & typeof LitElement;
|
|
728
|
+
declare const QtiAssociateInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
|
|
704
729
|
declare class QtiAssociateInteraction extends QtiAssociateInteraction_base {
|
|
705
730
|
private _childrenMap;
|
|
706
731
|
static styles: CSSResultGroup;
|
|
707
|
-
|
|
732
|
+
private _registerChoiceHandler;
|
|
708
733
|
constructor();
|
|
734
|
+
private _registerChoice;
|
|
735
|
+
render(): lit_html.TemplateResult<1>;
|
|
736
|
+
disconnectedCallback(): void;
|
|
709
737
|
}
|
|
710
738
|
declare global {
|
|
711
739
|
interface HTMLElementTagNameMap {
|
|
@@ -734,7 +762,8 @@ declare class QtiCustomInteraction extends Interaction {
|
|
|
734
762
|
private postToWindowAndIframes;
|
|
735
763
|
handlePostMessage(event: MessageEvent): void;
|
|
736
764
|
validate(): boolean;
|
|
737
|
-
|
|
765
|
+
get value(): string | string[];
|
|
766
|
+
set value(val: string | string[]);
|
|
738
767
|
disconnectedCallback(): void;
|
|
739
768
|
render(): lit_html.TemplateResult<1>;
|
|
740
769
|
}
|
|
@@ -748,7 +777,8 @@ declare class QtiEndAttemptInteraction extends Interaction {
|
|
|
748
777
|
countAttempt: string;
|
|
749
778
|
title: 'end attempt';
|
|
750
779
|
validate(): boolean;
|
|
751
|
-
|
|
780
|
+
get value(): string | string[];
|
|
781
|
+
set value(val: string | string[]);
|
|
752
782
|
render(): lit_html.TemplateResult<1>;
|
|
753
783
|
endAttempt(e: Event): void;
|
|
754
784
|
}
|
|
@@ -758,11 +788,11 @@ declare global {
|
|
|
758
788
|
}
|
|
759
789
|
}
|
|
760
790
|
|
|
761
|
-
declare const QtiGapMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof
|
|
791
|
+
declare const QtiGapMatchInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
|
|
762
792
|
declare class QtiGapMatchInteraction extends QtiGapMatchInteraction_base {
|
|
763
793
|
static styles: lit.CSSResult[];
|
|
764
794
|
render(): lit_html.TemplateResult<1>;
|
|
765
|
-
set correctResponse(value:
|
|
795
|
+
set correctResponse(value: string | string[]);
|
|
766
796
|
}
|
|
767
797
|
declare global {
|
|
768
798
|
interface HTMLElementTagNameMap {
|
|
@@ -791,7 +821,8 @@ declare class QtiGraphicAssociateInteraction extends Interaction {
|
|
|
791
821
|
constructor();
|
|
792
822
|
reset(): void;
|
|
793
823
|
validate(): boolean;
|
|
794
|
-
set
|
|
824
|
+
set value(val: string | string[]);
|
|
825
|
+
get value(): string | string[];
|
|
795
826
|
render(): lit_html.TemplateResult<1>;
|
|
796
827
|
private positionHotspotOnRegister;
|
|
797
828
|
firstUpdated(e: any): void;
|
|
@@ -803,7 +834,7 @@ declare global {
|
|
|
803
834
|
}
|
|
804
835
|
}
|
|
805
836
|
|
|
806
|
-
declare const QtiGraphicGapMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof
|
|
837
|
+
declare const QtiGraphicGapMatchInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
|
|
807
838
|
declare class QtiGraphicGapMatchInteraction extends QtiGraphicGapMatchInteraction_base {
|
|
808
839
|
static styles: lit.CSSResult;
|
|
809
840
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -817,7 +848,7 @@ declare global {
|
|
|
817
848
|
}
|
|
818
849
|
}
|
|
819
850
|
|
|
820
|
-
declare const QtiGraphicOrderInteraction_base: (new (...args: any[]) => ChoicesInterface) & typeof
|
|
851
|
+
declare const QtiGraphicOrderInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
|
|
821
852
|
declare class QtiGraphicOrderInteraction extends QtiGraphicOrderInteraction_base {
|
|
822
853
|
choiceOrdering: boolean;
|
|
823
854
|
static styles: lit.CSSResult[];
|
|
@@ -833,7 +864,7 @@ declare global {
|
|
|
833
864
|
}
|
|
834
865
|
}
|
|
835
866
|
|
|
836
|
-
declare const QtiHotspotInteraction_base: (new (...args: any[]) => ChoicesInterface) & typeof
|
|
867
|
+
declare const QtiHotspotInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
|
|
837
868
|
declare class QtiHotspotInteraction extends QtiHotspotInteraction_base {
|
|
838
869
|
static styles: lit.CSSResult[];
|
|
839
870
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -847,7 +878,7 @@ declare global {
|
|
|
847
878
|
}
|
|
848
879
|
}
|
|
849
880
|
|
|
850
|
-
declare const QtiSimpleAssociableChoice_base: (new (...args: any[]) =>
|
|
881
|
+
declare const QtiSimpleAssociableChoice_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
|
|
851
882
|
declare class QtiSimpleAssociableChoice extends QtiSimpleAssociableChoice_base {
|
|
852
883
|
static styles: lit.CSSResult;
|
|
853
884
|
/** the minimal number of selections a candidate must make */
|
|
@@ -864,15 +895,15 @@ declare global {
|
|
|
864
895
|
}
|
|
865
896
|
}
|
|
866
897
|
|
|
867
|
-
declare const QtiMatchInteraction_base: (new (...args: any[]) => IInteraction) & typeof
|
|
898
|
+
declare const QtiMatchInteraction_base: (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
|
|
868
899
|
declare class QtiMatchInteraction extends QtiMatchInteraction_base {
|
|
869
900
|
static styles: CSSResultGroup;
|
|
870
901
|
rows: QtiSimpleAssociableChoice[];
|
|
871
902
|
cols: QtiSimpleAssociableChoice[];
|
|
872
903
|
lastCheckedRadio: HTMLInputElement | null;
|
|
873
904
|
_response: string | string[];
|
|
874
|
-
get
|
|
875
|
-
set
|
|
905
|
+
get value(): string[];
|
|
906
|
+
set value(val: string[]);
|
|
876
907
|
correctOptions: string[];
|
|
877
908
|
responseIdentifier: string;
|
|
878
909
|
connectedCallback(): Promise<void>;
|
|
@@ -888,10 +919,11 @@ declare global {
|
|
|
888
919
|
}
|
|
889
920
|
|
|
890
921
|
declare class QtiMediaInteraction extends Interaction {
|
|
891
|
-
|
|
922
|
+
private _value;
|
|
892
923
|
reset(): void;
|
|
893
924
|
validate(): boolean;
|
|
894
|
-
|
|
925
|
+
get value(): string | string[];
|
|
926
|
+
set value(val: string | string[]);
|
|
895
927
|
static get properties(): {
|
|
896
928
|
step: {
|
|
897
929
|
type: NumberConstructor;
|
|
@@ -910,7 +942,7 @@ declare global {
|
|
|
910
942
|
}
|
|
911
943
|
}
|
|
912
944
|
|
|
913
|
-
declare const QtiOrderInteraction_base: (new (...args: any[]) => {}) & (new (...args: any[]) => IInteraction) & typeof
|
|
945
|
+
declare const QtiOrderInteraction_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => IInteraction) & typeof Interaction;
|
|
914
946
|
declare class QtiOrderInteraction extends QtiOrderInteraction_base {
|
|
915
947
|
childrenMap: Element[];
|
|
916
948
|
nrChoices: number;
|
|
@@ -920,7 +952,7 @@ declare class QtiOrderInteraction extends QtiOrderInteraction_base {
|
|
|
920
952
|
orientation: 'horizontal' | 'vertical';
|
|
921
953
|
static styles: lit.CSSResult[];
|
|
922
954
|
render(): lit_html.TemplateResult<1>;
|
|
923
|
-
set correctResponse(value:
|
|
955
|
+
set correctResponse(value: string | string[]);
|
|
924
956
|
protected getResponse(): string[];
|
|
925
957
|
firstUpdated(changedProps: any): Promise<void>;
|
|
926
958
|
}
|
|
@@ -959,7 +991,8 @@ declare class QtiSelectPointInteraction extends Interaction {
|
|
|
959
991
|
render(): lit_html.TemplateResult<1>;
|
|
960
992
|
reset(): void;
|
|
961
993
|
validate(): boolean;
|
|
962
|
-
set
|
|
994
|
+
set value(val: string | string[]);
|
|
995
|
+
get value(): string | string[];
|
|
963
996
|
firstUpdated(): void;
|
|
964
997
|
disconnectedCallback(): void;
|
|
965
998
|
}
|
|
@@ -993,10 +1026,10 @@ declare global {
|
|
|
993
1026
|
* @slot prompt - slot where the prompt is placed.
|
|
994
1027
|
*/
|
|
995
1028
|
declare class QtiSliderInteraction extends Interaction {
|
|
1029
|
+
private _value;
|
|
996
1030
|
csLive: CSSStyleDeclaration;
|
|
997
1031
|
private _knob;
|
|
998
1032
|
private _rail;
|
|
999
|
-
value: number;
|
|
1000
1033
|
stepLabel: boolean;
|
|
1001
1034
|
reverse: boolean;
|
|
1002
1035
|
private _min;
|
|
@@ -1012,6 +1045,8 @@ declare class QtiSliderInteraction extends Interaction {
|
|
|
1012
1045
|
_handleReadonlyChange: (old: any, readonly: any) => void;
|
|
1013
1046
|
reset(): void;
|
|
1014
1047
|
validate(): boolean;
|
|
1048
|
+
get value(): string | string[];
|
|
1049
|
+
set value(val: string | string[]);
|
|
1015
1050
|
constructor();
|
|
1016
1051
|
set response(myResponse: string | string[]);
|
|
1017
1052
|
static styles: lit.CSSResult[];
|
|
@@ -1086,7 +1121,7 @@ declare global {
|
|
|
1086
1121
|
}
|
|
1087
1122
|
}
|
|
1088
1123
|
|
|
1089
|
-
declare const QtiGapText_base: (new (...args: any[]) =>
|
|
1124
|
+
declare const QtiGapText_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
|
|
1090
1125
|
declare class QtiGapText extends QtiGapText_base {
|
|
1091
1126
|
static styles: lit.CSSResult;
|
|
1092
1127
|
tabindex: number | undefined;
|
|
@@ -1099,7 +1134,7 @@ declare global {
|
|
|
1099
1134
|
}
|
|
1100
1135
|
}
|
|
1101
1136
|
|
|
1102
|
-
declare const QtiHotspotChoice_base: (new (...args: any[]) =>
|
|
1137
|
+
declare const QtiHotspotChoice_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
|
|
1103
1138
|
declare class QtiHotspotChoice extends QtiHotspotChoice_base {
|
|
1104
1139
|
static styles: lit.CSSResult;
|
|
1105
1140
|
order: number;
|
|
@@ -1110,7 +1145,7 @@ declare global {
|
|
|
1110
1145
|
}
|
|
1111
1146
|
}
|
|
1112
1147
|
|
|
1113
|
-
declare const QtiHottext_base: (new (...args: any[]) =>
|
|
1148
|
+
declare const QtiHottext_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
|
|
1114
1149
|
declare class QtiHottext extends QtiHottext_base {
|
|
1115
1150
|
static styles: lit.CSSResult;
|
|
1116
1151
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -1135,7 +1170,7 @@ declare global {
|
|
|
1135
1170
|
}
|
|
1136
1171
|
}
|
|
1137
1172
|
|
|
1138
|
-
declare const QtiSimpleChoice_base: (new (...args: any[]) =>
|
|
1173
|
+
declare const QtiSimpleChoice_base: (abstract new (...args: any[]) => ActiveElementMixinInterface) & typeof LitElement;
|
|
1139
1174
|
/**
|
|
1140
1175
|
* qti-order-interaction
|
|
1141
1176
|
* qti-choice-interaction
|
|
@@ -1143,6 +1178,7 @@ declare const QtiSimpleChoice_base: (new (...args: any[]) => ChoiceInterface) &
|
|
|
1143
1178
|
declare class QtiSimpleChoice extends QtiSimpleChoice_base {
|
|
1144
1179
|
static styles: lit.CSSResult;
|
|
1145
1180
|
marker: string;
|
|
1181
|
+
get checked(): boolean;
|
|
1146
1182
|
render(): lit_html.TemplateResult<1>;
|
|
1147
1183
|
}
|
|
1148
1184
|
declare global {
|
|
@@ -1151,4 +1187,4 @@ declare global {
|
|
|
1151
1187
|
}
|
|
1152
1188
|
}
|
|
1153
1189
|
|
|
1154
|
-
export {
|
|
1190
|
+
export { QtiAssociateInteraction 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, QtiChoiceInteraction as N, type OutcomeChangedDetails as O, QtiOutcomeProcessing as P, QtiRule as Q, type ResponseVariable as R, QtiOutcomeProcessingProcessor as S, QtiResponseProcessing as T, QtiLookupOutcomeValue as U, type VariableDeclaration as V, QtiAnd as W, type MockQtiExpression as X, qtiAndMixin as Y, QtiMapping as Z, QtiPortableCustomInteraction as _, type QtiRuleBase as a, QtiCustomInteraction as a0, QtiEndAttemptInteraction as a1, QtiGapMatchInteraction as a2, QtiGraphicAssociateInteraction as a3, QtiGraphicGapMatchInteraction as a4, QtiGraphicOrderInteraction as a5, QtiHotspotInteraction as a6, QtiMatchInteraction as a7, QtiMediaInteraction as a8, QtiOrderInteraction as a9, QtiPositionObjectStage as aa, QtiSelectPointInteraction as ab, QtiSliderInteraction as ac, itemContextVariables as ad, itemContext as ae, QtiCustomOperator as af, Interaction as ag, QtiAssociableHotspot as ah, QtiGap as ai, QtiGapImg as aj, QtiGapText as ak, QtiHotspotChoice as al, QtiHottext as am, QtiInlineChoice as an, QtiSimpleAssociableChoice as ao, QtiSimpleChoice as ap, 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 };
|
|
@@ -26,8 +26,8 @@ type transformItemApi = {
|
|
|
26
26
|
stripStyleSheets: () => transformItemApi;
|
|
27
27
|
html: () => string;
|
|
28
28
|
xml: () => string;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
htmlDoc: () => DocumentFragment;
|
|
30
|
+
xmlDoc: () => XMLDocument;
|
|
31
31
|
};
|
|
32
32
|
declare const qtiTransformItem: () => transformItemApi;
|
|
33
33
|
|
|
@@ -59,7 +59,6 @@ declare const qtiTransformManifest: () => {
|
|
|
59
59
|
type transformTestApi = {
|
|
60
60
|
load: (uri: string) => Promise<transformTestApi>;
|
|
61
61
|
parse: (xmlString: string) => transformTestApi;
|
|
62
|
-
extendElementName: (tagName: string, extend: string) => transformTestApi;
|
|
63
62
|
fn: (fn: (xmlFragment: XMLDocument) => void) => transformTestApi;
|
|
64
63
|
items: () => {
|
|
65
64
|
identifier: string;
|
|
@@ -68,8 +67,8 @@ type transformTestApi = {
|
|
|
68
67
|
}[];
|
|
69
68
|
html: () => string;
|
|
70
69
|
xml: () => string;
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
htmlDoc: () => DocumentFragment;
|
|
71
|
+
xmlDoc: () => XMLDocument;
|
|
73
72
|
};
|
|
74
73
|
declare const qtiTransformTest: () => transformTestApi;
|
|
75
74
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c}from"../chunk-
|
|
1
|
+
import{a,b,c}from"../chunk-SOXSSPDZ.js";import"../chunk-NYAUPIAG.js";export{a as qtiTransformItem,b as qtiTransformManifest,c as qtiTransformTest};
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFtdLAogICJzb3VyY2VzQ29udGVudCI6IFtdLAogICJtYXBwaW5ncyI6ICIiLAogICJuYW1lcyI6IFtdCn0K
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=20.0.0"
|
|
23
23
|
},
|
|
24
|
-
"version": "6.9.1-beta.
|
|
24
|
+
"version": "6.9.1-beta.52",
|
|
25
25
|
"type": "module",
|
|
26
26
|
"exports": {
|
|
27
27
|
"./qti-components": "./dist/qti-components/index.js",
|
|
@@ -93,17 +93,17 @@
|
|
|
93
93
|
"@eslint/js": "^9.13.0",
|
|
94
94
|
"@lit-labs/preact-signals": "^1.0.2",
|
|
95
95
|
"@lit/context": "^1.1.3",
|
|
96
|
-
"@storybook/addon-a11y": "^8.4.
|
|
97
|
-
"@storybook/addon-essentials": "^8.4.
|
|
98
|
-
"@storybook/addon-interactions": "^8.4.
|
|
99
|
-
"@storybook/addon-links": "^8.4.
|
|
100
|
-
"@storybook/blocks": "^8.4.
|
|
101
|
-
"@storybook/preview-api": "^8.4.
|
|
102
|
-
"@storybook/test": "^8.4.
|
|
96
|
+
"@storybook/addon-a11y": "^8.4.2",
|
|
97
|
+
"@storybook/addon-essentials": "^8.4.2",
|
|
98
|
+
"@storybook/addon-interactions": "^8.4.2",
|
|
99
|
+
"@storybook/addon-links": "^8.4.2",
|
|
100
|
+
"@storybook/blocks": "^8.4.2",
|
|
101
|
+
"@storybook/preview-api": "^8.4.2",
|
|
102
|
+
"@storybook/test": "^8.4.2",
|
|
103
103
|
"@storybook/test-runner": "^0.19.1",
|
|
104
104
|
"@storybook/testing-library": "^0.2.2",
|
|
105
|
-
"@storybook/web-components": "^8.4.
|
|
106
|
-
"@storybook/web-components-vite": "^8.4.
|
|
105
|
+
"@storybook/web-components": "^8.4.2",
|
|
106
|
+
"@storybook/web-components-vite": "^8.4.2",
|
|
107
107
|
"@testing-library/dom": "^10.4.0",
|
|
108
108
|
"@types/dom-view-transitions": "^1.0.5",
|
|
109
109
|
"@types/node": "^22.8.6",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"eslint-plugin-lit-a11y": "^4.1.4",
|
|
123
123
|
"eslint-plugin-react": "^7.37.2",
|
|
124
124
|
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
|
|
125
|
-
"eslint-plugin-storybook": "^0.
|
|
125
|
+
"eslint-plugin-storybook": "^0.11.0",
|
|
126
126
|
"eslint-plugin-wc": "^2.2.0",
|
|
127
127
|
"globals": "^15.11.0",
|
|
128
128
|
"lit": "^3.2.1",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"postcss-nesting": "^13.0.1",
|
|
137
137
|
"prettier": "3.3.3",
|
|
138
138
|
"remark-gfm": "^4.0.0",
|
|
139
|
-
"storybook": "^8.4.
|
|
139
|
+
"storybook": "^8.4.2",
|
|
140
140
|
"stylelint": "^16.10.0",
|
|
141
141
|
"stylelint-config-standard": "^36.0.1",
|
|
142
142
|
"stylelint-prettier": "^5.0.2",
|