@citolab/qti-components 6.7.1-11 → 6.7.1-13
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/custom-elements.json +93 -0
- package/dist/index.js +75 -71
- package/dist/qti-components/index.d.ts +33 -5
- package/dist/qti-components/index.js +79 -75
- package/package.json +1 -1
|
@@ -266,6 +266,7 @@ declare class QtiVariableDeclaration extends LitElement {
|
|
|
266
266
|
|
|
267
267
|
declare class QtiOutcomeDeclaration extends QtiVariableDeclaration {
|
|
268
268
|
baseType: BaseType;
|
|
269
|
+
externalScored: String;
|
|
269
270
|
identifier: string;
|
|
270
271
|
cardinality: Cardinality;
|
|
271
272
|
itemContext?: ItemContext;
|
|
@@ -482,20 +483,26 @@ declare global {
|
|
|
482
483
|
}
|
|
483
484
|
}
|
|
484
485
|
|
|
485
|
-
|
|
486
|
+
interface QtiExpressionBase<T> {
|
|
487
|
+
calculate(): Readonly<T>;
|
|
488
|
+
}
|
|
489
|
+
declare abstract class QtiExpression<T> extends LitElement implements QtiExpressionBase<T> {
|
|
486
490
|
protected result: any;
|
|
487
491
|
static styles: lit.CSSResult;
|
|
488
492
|
render(): lit_html.TemplateResult<1>;
|
|
489
493
|
calculate(): Readonly<T>;
|
|
490
494
|
protected getResult(): Readonly<T>;
|
|
491
|
-
|
|
492
|
-
|
|
495
|
+
get assessmentItem(): QtiAssessmentItem;
|
|
496
|
+
getVariables: () => VariableDeclaration<number | string | (number | string)[] | null>[];
|
|
493
497
|
}
|
|
494
498
|
|
|
495
|
-
declare class QtiRule extends LitElement {
|
|
499
|
+
declare class QtiRule extends LitElement implements QtiRuleBase {
|
|
496
500
|
render(): lit_html.TemplateResult<1>;
|
|
497
501
|
process(): void;
|
|
498
502
|
}
|
|
503
|
+
interface QtiRuleBase {
|
|
504
|
+
process(): any;
|
|
505
|
+
}
|
|
499
506
|
declare global {
|
|
500
507
|
interface HTMLElementTagNameMap {
|
|
501
508
|
'qti-rule': QtiRule;
|
|
@@ -526,6 +533,11 @@ declare class QtiResponseCondition extends QtiRule {
|
|
|
526
533
|
declare class QtiSetOutcomeValue extends QtiRule {
|
|
527
534
|
process(): void;
|
|
528
535
|
}
|
|
536
|
+
declare class QtiSetOutcomeValueRule<T> implements QtiRuleBase {
|
|
537
|
+
private expression;
|
|
538
|
+
constructor(expression: QtiExpressionBase<T>);
|
|
539
|
+
process(): any;
|
|
540
|
+
}
|
|
529
541
|
|
|
530
542
|
declare class QtiResponseElse extends LitElement {
|
|
531
543
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -666,13 +678,29 @@ declare class QtiStringMatch extends QtiExpression<boolean> {
|
|
|
666
678
|
}
|
|
667
679
|
|
|
668
680
|
declare class QtiSum extends QtiExpression<number> {
|
|
681
|
+
private _expression;
|
|
682
|
+
constructor();
|
|
669
683
|
getResult(): number;
|
|
670
684
|
}
|
|
685
|
+
declare class QtiSumExpression implements QtiExpressionBase<number> {
|
|
686
|
+
private expressions;
|
|
687
|
+
constructor(expressions: QtiExpressionBase<number>[]);
|
|
688
|
+
calculate(): number;
|
|
689
|
+
}
|
|
671
690
|
|
|
672
691
|
declare class QtiVariable extends QtiExpression<string | string[]> {
|
|
673
692
|
getResult(): Readonly<string | string[]>;
|
|
674
693
|
}
|
|
675
694
|
|
|
695
|
+
declare class QtiOutcomeProcessing extends LitElement {
|
|
696
|
+
static styles: lit.CSSResult[];
|
|
697
|
+
render(): lit_html.TemplateResult<1>;
|
|
698
|
+
process(): void;
|
|
699
|
+
}
|
|
700
|
+
declare class QtiOutcomeProcessingProcessor {
|
|
701
|
+
process(rules: QtiRuleBase[]): void;
|
|
702
|
+
}
|
|
703
|
+
|
|
676
704
|
declare class QtiPortableCustomInteraction extends LitElement {
|
|
677
705
|
private responseIdentifier;
|
|
678
706
|
private module;
|
|
@@ -1007,4 +1035,4 @@ declare global {
|
|
|
1007
1035
|
}
|
|
1008
1036
|
}
|
|
1009
1037
|
|
|
1010
|
-
export { type BaseType, type Calculate, type Cardinality, Interaction, type InteractionChangedDetails, type ItemContext, type MockQtiExpression, type Multiple, type Ordered, type OutcomeChangedDetails, type OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, QtiContains, QtiContentBody, QtiCorrect, QtiCustomOperator, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiExtendedTextInteraction, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, type QtiInteractionChanged, QtiIsNull, QtiLookupOutcomeValue, QtiLt, QtiLte, QtiMapResponse, QtiMapping, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, type QtiOutcomeChanged, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRubricBlock, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSum, QtiTextEntryInteraction, QtiVariable, type ResponseInteraction, type ResponseVariable, type VariableDeclaration, type VariableValue, type directedPair, type float, type integer, itemContext, itemContextVariables, qtiAndMixin };
|
|
1038
|
+
export { type BaseType, type Calculate, type Cardinality, Interaction, type InteractionChangedDetails, type ItemContext, type MockQtiExpression, type Multiple, type Ordered, type OutcomeChangedDetails, type OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, QtiContains, QtiContentBody, QtiCorrect, QtiCustomOperator, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, type QtiExpressionBase, QtiExtendedTextInteraction, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, type QtiInteractionChanged, QtiIsNull, QtiLookupOutcomeValue, QtiLt, QtiLte, QtiMapResponse, QtiMapping, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, type QtiOutcomeChanged, QtiOutcomeDeclaration, QtiOutcomeProcessing, QtiOutcomeProcessingProcessor, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRubricBlock, QtiRule, type QtiRuleBase, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSum, QtiSumExpression, QtiTextEntryInteraction, QtiVariable, type ResponseInteraction, type ResponseVariable, type VariableDeclaration, type VariableValue, type directedPair, type float, type integer, itemContext, itemContextVariables, qtiAndMixin };
|