@citolab/qti-components 6.0.31 → 6.0.34

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;
@@ -772,6 +777,7 @@ qti-gap-match-interaction qti-gap-text{
772
777
  --tw-ring-inset: inset;
773
778
  --tw-ring-opacity: 1;
774
779
  --tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
780
+ display: inline-block;
775
781
  cursor: grab;
776
782
  --tw-bg-opacity: 1;
777
783
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
@@ -1379,6 +1385,7 @@ qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type
1379
1385
  --tw-ring-inset: inset;
1380
1386
  --tw-ring-opacity: 1;
1381
1387
  --tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
1388
+ display: inline-block;
1382
1389
  cursor: grab;
1383
1390
  --tw-bg-opacity: 1;
1384
1391
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
@@ -1471,6 +1478,7 @@ qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type
1471
1478
  --tw-ring-inset: inset;
1472
1479
  --tw-ring-opacity: 1;
1473
1480
  --tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
1481
+ display: inline-block;
1474
1482
  cursor: grab;
1475
1483
  --tw-bg-opacity: 1;
1476
1484
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
@@ -1521,6 +1529,7 @@ qti-order-interaction::part(qti-simple-choice),
1521
1529
  --tw-ring-inset: inset;
1522
1530
  --tw-ring-opacity: 1;
1523
1531
  --tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
1532
+ display: inline-block;
1524
1533
  cursor: grab;
1525
1534
  --tw-bg-opacity: 1;
1526
1535
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
@@ -1628,6 +1637,7 @@ qti-associate-interaction::part(qti-simple-associable-choice),
1628
1637
  --tw-ring-inset: inset;
1629
1638
  --tw-ring-opacity: 1;
1630
1639
  --tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
1640
+ display: inline-block;
1631
1641
  cursor: grab;
1632
1642
  --tw-bg-opacity: 1;
1633
1643
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
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 };