@citolab/qti-components 6.0.31 → 6.0.33

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/index.css CHANGED
@@ -683,6 +683,11 @@ qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[aria-rea
683
683
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
684
684
  }
685
685
 
686
+ qti-choice-interaction qti-simple-choice > p{
687
+ margin: 0px;
688
+ padding: 0px;
689
+ }
690
+
686
691
  qti-text-entry-interaction{
687
692
  margin-top: 0.5rem;
688
693
  margin-bottom: 0.5rem;
package/dist/index.d.cts CHANGED
@@ -481,8 +481,11 @@ declare abstract class Choices extends Interaction {
481
481
  private _looseChoiceElement;
482
482
  private _determineInputType;
483
483
  private _setInputType;
484
- private _choiceElementSelectedHandler;
485
- private _choiceElementSelected;
484
+ protected _choiceElementSelectedHandler(event: CustomEvent<{
485
+ identifier: string;
486
+ checked: boolean;
487
+ }>): void;
488
+ protected _choiceElementSelected(): void;
486
489
  }
487
490
 
488
491
  declare class QtiHottextInteraction extends Choices {
@@ -524,7 +527,7 @@ declare class QtiChoiceInteraction extends Choices {
524
527
  static styles: CSSResultGroup;
525
528
  /** orientation of choices */
526
529
  orientation: 'horizontal' | 'vertical';
527
- render: () => lit_html.TemplateResult<1>;
530
+ render(): lit_html.TemplateResult<1>;
528
531
  }
529
532
  declare global {
530
533
  interface HTMLElementTagNameMap {
@@ -703,6 +706,10 @@ declare class QtiStringMatch extends QtiExpression<boolean> {
703
706
  calculate(): boolean;
704
707
  }
705
708
 
709
+ declare class QtiSum extends QtiExpression<number> {
710
+ calculate(): number;
711
+ }
712
+
706
713
  declare class QtiPortableCustomInteraction extends LitElement {
707
714
  private responseIdentifier;
708
715
  private module;
@@ -1044,4 +1051,4 @@ declare const qtiTransform: (xmlValue: string) => {
1044
1051
  xml(): string;
1045
1052
  };
1046
1053
 
1047
- export { BaseType, Calculate, Cardinality, Events, InteractionChangedDetails, Multiple, Ordered, OutcomeChangedDetails, OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, qtiChoiceElementSelected as QtiChoiceElementSelected, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, 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, QtiMember, 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, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiTextEntryInteraction, QtiVariable, ResponseInteraction, ResponseVariable, ResultVariable, VariableDeclaration, directedPair, float, integer, qtiContentBody, qtiRubricBlock, qtiTransform };
1054
+ export { BaseType, Calculate, Cardinality, Events, Interaction, InteractionChangedDetails, Multiple, Ordered, OutcomeChangedDetails, OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, qtiChoiceElementSelected as QtiChoiceElementSelected, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, 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, QtiMember, 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, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSum, QtiTextEntryInteraction, QtiVariable, ResponseInteraction, ResponseVariable, ResultVariable, VariableDeclaration, directedPair, float, integer, qtiContentBody, qtiRubricBlock, qtiTransform };
package/dist/index.d.ts CHANGED
@@ -481,8 +481,11 @@ declare abstract class Choices extends Interaction {
481
481
  private _looseChoiceElement;
482
482
  private _determineInputType;
483
483
  private _setInputType;
484
- private _choiceElementSelectedHandler;
485
- private _choiceElementSelected;
484
+ protected _choiceElementSelectedHandler(event: CustomEvent<{
485
+ identifier: string;
486
+ checked: boolean;
487
+ }>): void;
488
+ protected _choiceElementSelected(): void;
486
489
  }
487
490
 
488
491
  declare class QtiHottextInteraction extends Choices {
@@ -524,7 +527,7 @@ declare class QtiChoiceInteraction extends Choices {
524
527
  static styles: CSSResultGroup;
525
528
  /** orientation of choices */
526
529
  orientation: 'horizontal' | 'vertical';
527
- render: () => lit_html.TemplateResult<1>;
530
+ render(): lit_html.TemplateResult<1>;
528
531
  }
529
532
  declare global {
530
533
  interface HTMLElementTagNameMap {
@@ -703,6 +706,10 @@ declare class QtiStringMatch extends QtiExpression<boolean> {
703
706
  calculate(): boolean;
704
707
  }
705
708
 
709
+ declare class QtiSum extends QtiExpression<number> {
710
+ calculate(): number;
711
+ }
712
+
706
713
  declare class QtiPortableCustomInteraction extends LitElement {
707
714
  private responseIdentifier;
708
715
  private module;
@@ -1044,4 +1051,4 @@ declare const qtiTransform: (xmlValue: string) => {
1044
1051
  xml(): string;
1045
1052
  };
1046
1053
 
1047
- export { BaseType, Calculate, Cardinality, Events, InteractionChangedDetails, Multiple, Ordered, OutcomeChangedDetails, OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, qtiChoiceElementSelected as QtiChoiceElementSelected, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, 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, QtiMember, 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, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiTextEntryInteraction, QtiVariable, ResponseInteraction, ResponseVariable, ResultVariable, VariableDeclaration, directedPair, float, integer, qtiContentBody, qtiRubricBlock, qtiTransform };
1054
+ export { BaseType, Calculate, Cardinality, Events, Interaction, InteractionChangedDetails, Multiple, Ordered, OutcomeChangedDetails, OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, qtiChoiceElementSelected as QtiChoiceElementSelected, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, 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, QtiMember, 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, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSum, QtiTextEntryInteraction, QtiVariable, ResponseInteraction, ResponseVariable, ResultVariable, VariableDeclaration, directedPair, float, integer, qtiContentBody, qtiRubricBlock, qtiTransform };