@citolab/qti-components 6.0.18 → 6.0.19
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-UD6XWG6V.js +2205 -0
- package/dist/custom-elements.json +815 -528
- package/dist/index.css +1 -0
- package/dist/index.d.ts +35 -5
- package/dist/index.js +85 -72
- package/dist/qti-assessment-item-68bcc951.d.ts +121 -0
- package/dist/qti-components/index.d.ts +36 -7
- package/dist/qti-components/index.js +77 -65
- package/dist/qti-item/index.d.ts +2 -2
- package/dist/qti-item/index.js +1 -1
- package/dist/qti-item-e1fc6a70.d.ts +30 -0
- package/dist/qti-item-react/index.d.ts +3 -3
- package/dist/qti-item-react/index.js +1 -1
- package/dist/qti-simple-choice-d1392d78.d.ts +352 -0
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -705,6 +705,7 @@ qti-text-entry-interaction::part(input){
|
|
|
705
705
|
--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
|
|
706
706
|
--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);
|
|
707
707
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
708
|
+
width: 100%;
|
|
708
709
|
}
|
|
709
710
|
|
|
710
711
|
qti-text-entry-interaction::part(input):hover{
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as lit from 'lit';
|
|
2
|
-
import { LitElement, CSSResultGroup } from 'lit';
|
|
2
|
+
import { LitElement, CSSResultGroup, PropertyValueMap } from 'lit';
|
|
3
3
|
import * as lit_html from 'lit-html';
|
|
4
4
|
import { ContextConsumer } from '@lit-labs/context';
|
|
5
5
|
import * as lit_html_directives_ref from 'lit-html/directives/ref';
|
|
@@ -213,11 +213,11 @@ declare class ResponseVariable implements VariableDeclaration<string | string[]>
|
|
|
213
213
|
set value(val: string | string[]);
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
declare class OutcomeVariable implements VariableDeclaration<number> {
|
|
216
|
+
declare class OutcomeVariable implements VariableDeclaration<number | string | undefined> {
|
|
217
217
|
identifier: string;
|
|
218
218
|
cardinality: Cardinality;
|
|
219
219
|
baseType: BaseType;
|
|
220
|
-
value: number;
|
|
220
|
+
value: number | string | undefined;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
/**
|
|
@@ -262,6 +262,7 @@ declare class QtiAssessmentItem extends LitElement {
|
|
|
262
262
|
private registerInteractionElement;
|
|
263
263
|
private interactionResponse;
|
|
264
264
|
private outcomeChanged;
|
|
265
|
+
private showFeedback;
|
|
265
266
|
setOutcomeValue(identifier: string, value: number): void;
|
|
266
267
|
}
|
|
267
268
|
declare global {
|
|
@@ -388,7 +389,7 @@ declare abstract class QtiFeedback extends LitElement {
|
|
|
388
389
|
protected showStatus: string;
|
|
389
390
|
constructor();
|
|
390
391
|
connectedCallback(): void;
|
|
391
|
-
checkShowFeedback(outcomeIdentifier: string
|
|
392
|
+
checkShowFeedback(outcomeIdentifier: string): void;
|
|
392
393
|
private showFeedback;
|
|
393
394
|
}
|
|
394
395
|
|
|
@@ -401,6 +402,11 @@ declare class QtiModalFeedback extends QtiFeedback {
|
|
|
401
402
|
render(): lit_html.TemplateResult<1>;
|
|
402
403
|
}
|
|
403
404
|
|
|
405
|
+
declare class QtiFeedbackBlock extends QtiFeedback {
|
|
406
|
+
render(): lit_html.TemplateResult<1>;
|
|
407
|
+
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
408
|
+
}
|
|
409
|
+
|
|
404
410
|
declare abstract class Interaction extends LitElement {
|
|
405
411
|
responseIdentifier: string;
|
|
406
412
|
/** disabled should be exposed to the attributes and accessible as property */
|
|
@@ -621,6 +627,12 @@ declare class QtiAnd extends QtiConditionExpression {
|
|
|
621
627
|
calculate(): boolean;
|
|
622
628
|
}
|
|
623
629
|
|
|
630
|
+
declare class QtiProduct extends QtiExpression<number> {
|
|
631
|
+
mult: number;
|
|
632
|
+
render: () => lit_html.TemplateResult<1>;
|
|
633
|
+
calculate(): number;
|
|
634
|
+
}
|
|
635
|
+
|
|
624
636
|
declare class QtiOr extends QtiConditionExpression {
|
|
625
637
|
render(): lit_html.TemplateResult<1>;
|
|
626
638
|
calculate(): boolean;
|
|
@@ -656,6 +668,11 @@ declare class QtiIsNull extends QtiExpression<boolean> {
|
|
|
656
668
|
calculate(): boolean;
|
|
657
669
|
}
|
|
658
670
|
|
|
671
|
+
declare class QtiNot extends QtiExpression<boolean> {
|
|
672
|
+
render(): lit_html.TemplateResult<1>;
|
|
673
|
+
calculate(): boolean;
|
|
674
|
+
}
|
|
675
|
+
|
|
659
676
|
declare class QtiMapResponse extends QtiExpression<number> {
|
|
660
677
|
identifier: string;
|
|
661
678
|
calculate(): number;
|
|
@@ -678,6 +695,13 @@ declare class QtiOrdered extends QtiExpression<ResponseVariable[]> {
|
|
|
678
695
|
calculate(): ResponseVariable[];
|
|
679
696
|
}
|
|
680
697
|
|
|
698
|
+
declare class QtPrintedVariable extends LitElement {
|
|
699
|
+
value: string;
|
|
700
|
+
render(): lit_html.TemplateResult<1>;
|
|
701
|
+
constructor();
|
|
702
|
+
calculate(): string | number | string[];
|
|
703
|
+
}
|
|
704
|
+
|
|
681
705
|
declare class QtiPortableCustomInteraction extends LitElement {
|
|
682
706
|
private responseIdentifier;
|
|
683
707
|
private module;
|
|
@@ -921,6 +945,12 @@ declare class QtiSliderInteraction extends Interaction {
|
|
|
921
945
|
private getPositionFromEvent;
|
|
922
946
|
}
|
|
923
947
|
|
|
948
|
+
declare class QtiEndAttemptInteraction extends LitElement {
|
|
949
|
+
title: 'end attempt';
|
|
950
|
+
render(): lit_html.TemplateResult<1>;
|
|
951
|
+
endAttempt(e: Event): void;
|
|
952
|
+
}
|
|
953
|
+
|
|
924
954
|
declare class QtiAssociableHotspot extends LitElement {
|
|
925
955
|
connectedCallback(): void;
|
|
926
956
|
static styles: lit.CSSResult;
|
|
@@ -1019,4 +1049,4 @@ declare const qtiTransform: (xmlValue: string) => {
|
|
|
1019
1049
|
xml(): string;
|
|
1020
1050
|
};
|
|
1021
1051
|
|
|
1022
|
-
export { BaseType, Calculate, Cardinality, Events, InteractionChangedDetails, Multiple, Ordered, OutcomeChangedDetails, OutcomeVariable, QtiAnd, QtiAssessmentItem, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, qtiChoiceElementSelected as QtiChoiceElementSelected, QtiCompanionMaterialsInfo, QtiContains, QtiCorrect, QtiEqual, QtiEqualRounded, QtiExpression, QtiExtendedTextInteraction, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, qtiInteractionChanged as QtiInteractionChanged, qtiInteractionResponse as QtiInteractionResponse, QtiIsNull, QtiItem, qtiLooseChoice as QtiLooseChoice, QtiLt, QtiLte, QtiMapResponse, QtiMapping, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiModalFeedback, QtiMultiple, QtiOr, QtiOrderInteraction, QtiOrdered, qtiOutcomeChanged as QtiOutcomeChanged, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiPrompt, qtiRegisterChoice as QtiRegisterChoice, qtiRegisterHotspot as QtiRegisterHotspot, qtiRegisterInteraction as QtiRegisterInteraction, qtiRegisterVariable as QtiRegisterVariable, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSliderInteraction, QtiStylesheet, QtiTextEntryInteraction, QtiVariable, ResponseInteraction, ResponseVariable, directedPair, float, integer, qtiContentBody, qtiRubricBlock, qtiTransform };
|
|
1052
|
+
export { BaseType, Calculate, Cardinality, Events, InteractionChangedDetails, Multiple, Ordered, OutcomeChangedDetails, OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, qtiChoiceElementSelected as QtiChoiceElementSelected, QtiCompanionMaterialsInfo, QtiContains, QtiCorrect, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiExtendedTextInteraction, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, qtiInteractionChanged as QtiInteractionChanged, qtiInteractionResponse as QtiInteractionResponse, QtiIsNull, QtiItem, qtiLooseChoice as QtiLooseChoice, QtiLt, QtiLte, QtiMapResponse, QtiMapping, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, qtiOutcomeChanged as QtiOutcomeChanged, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, qtiRegisterChoice as QtiRegisterChoice, qtiRegisterHotspot as QtiRegisterHotspot, qtiRegisterInteraction as QtiRegisterInteraction, qtiRegisterVariable as QtiRegisterVariable, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSliderInteraction, QtiStylesheet, QtiTextEntryInteraction, QtiVariable, ResponseInteraction, ResponseVariable, directedPair, float, integer, qtiContentBody, qtiRubricBlock, qtiTransform };
|