@citolab/qti-components 6.9.1-beta.76 → 6.9.1-beta.78

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.
@@ -1,5 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
- import { p as QtiAssessmentItem } from '../qti-simple-choice-C7xBKYaS.cjs';
2
+ import { p as QtiAssessmentItem } from '../qti-simple-choice-DC5DJota.cjs';
3
3
  import 'lit-html';
4
4
  import 'lit-html/directives/ref.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
- import { p as QtiAssessmentItem } from '../qti-simple-choice-C7xBKYaS.js';
2
+ import { p as QtiAssessmentItem } from '../qti-simple-choice-DC5DJota.js';
3
3
  import 'lit-html';
4
4
  import 'lit-html/directives/ref.js';
5
5
 
@@ -1,4 +1,4 @@
1
- import { p as QtiAssessmentItem } from '../qti-simple-choice-C7xBKYaS.cjs';
1
+ import { p as QtiAssessmentItem } from '../qti-simple-choice-DC5DJota.cjs';
2
2
  import 'lit-html';
3
3
  import 'lit';
4
4
  import 'lit-html/directives/ref.js';
@@ -1,4 +1,4 @@
1
- import { p as QtiAssessmentItem } from '../qti-simple-choice-C7xBKYaS.js';
1
+ import { p as QtiAssessmentItem } from '../qti-simple-choice-DC5DJota.js';
2
2
  import 'lit-html';
3
3
  import 'lit';
4
4
  import 'lit-html/directives/ref.js';
@@ -436,7 +436,6 @@ type Choice = HTMLElement & ChoiceInterface & {
436
436
  internals: ElementInternals;
437
437
  };
438
438
  interface ChoicesInterface extends IInteraction {
439
- _choiceElements: Array<Choice>;
440
439
  correctResponse: string | string[];
441
440
  }
442
441
 
@@ -478,11 +477,13 @@ declare global {
478
477
  }
479
478
  }
480
479
 
480
+ type Orientation = 'horizontal' | 'vertical' | undefined;
481
481
  declare const QtiChoiceInteraction_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
482
482
  declare class QtiChoiceInteraction extends QtiChoiceInteraction_base implements ChoicesInterface {
483
483
  static styles: CSSResultGroup;
484
+ constructor();
484
485
  /** orientation of choices */
485
- orientation: 'horizontal' | 'vertical';
486
+ orientation: Orientation;
486
487
  render(): lit_html.TemplateResult<1>;
487
488
  }
488
489
  declare global {
@@ -796,6 +797,7 @@ declare global {
796
797
  declare const QtiGraphicOrderInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
797
798
  declare class QtiGraphicOrderInteraction extends QtiGraphicOrderInteraction_base {
798
799
  choiceOrdering: boolean;
800
+ protected _choiceElements: Choice[];
799
801
  static styles: lit.CSSResult[];
800
802
  render(): lit_html.TemplateResult<1>;
801
803
  private setHotspotOrder;
@@ -1132,4 +1134,4 @@ declare global {
1132
1134
  }
1133
1135
  }
1134
1136
 
1135
- 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 };
1137
+ export { QtiPortableCustomInteraction 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, type Orientation as N, type OutcomeChangedDetails as O, QtiChoiceInteraction as P, QtiRule as Q, type ResponseVariable as R, QtiOutcomeProcessing as S, QtiOutcomeProcessingProcessor as T, QtiResponseProcessing as U, type VariableDeclaration as V, QtiLookupOutcomeValue as W, QtiAnd as X, type MockQtiExpression as Y, qtiAndMixin as Z, QtiMapping as _, type QtiRuleBase as a, QtiAssociateInteraction as a0, QtiCustomInteraction as a1, QtiEndAttemptInteraction as a2, QtiGapMatchInteraction as a3, QtiGraphicAssociateInteraction as a4, QtiGraphicGapMatchInteraction as a5, QtiGraphicOrderInteraction as a6, QtiHotspotInteraction as a7, QtiMatchInteraction as a8, QtiMediaInteraction as a9, QtiOrderInteraction as aa, QtiPositionObjectStage as ab, QtiSelectPointInteraction as ac, QtiSliderInteraction as ad, itemContextVariables as ae, itemContext as af, QtiCustomOperator as ag, Interaction as ah, QtiAssociableHotspot as ai, QtiGap as aj, QtiGapImg as ak, QtiGapText as al, QtiHotspotChoice as am, QtiHottext as an, QtiInlineChoice as ao, QtiSimpleAssociableChoice as ap, QtiSimpleChoice as aq, 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 };
@@ -436,7 +436,6 @@ type Choice = HTMLElement & ChoiceInterface & {
436
436
  internals: ElementInternals;
437
437
  };
438
438
  interface ChoicesInterface extends IInteraction {
439
- _choiceElements: Array<Choice>;
440
439
  correctResponse: string | string[];
441
440
  }
442
441
 
@@ -478,11 +477,13 @@ declare global {
478
477
  }
479
478
  }
480
479
 
480
+ type Orientation = 'horizontal' | 'vertical' | undefined;
481
481
  declare const QtiChoiceInteraction_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
482
482
  declare class QtiChoiceInteraction extends QtiChoiceInteraction_base implements ChoicesInterface {
483
483
  static styles: CSSResultGroup;
484
+ constructor();
484
485
  /** orientation of choices */
485
- orientation: 'horizontal' | 'vertical';
486
+ orientation: Orientation;
486
487
  render(): lit_html.TemplateResult<1>;
487
488
  }
488
489
  declare global {
@@ -796,6 +797,7 @@ declare global {
796
797
  declare const QtiGraphicOrderInteraction_base: (abstract new (...args: any[]) => ChoicesInterface) & typeof Interaction;
797
798
  declare class QtiGraphicOrderInteraction extends QtiGraphicOrderInteraction_base {
798
799
  choiceOrdering: boolean;
800
+ protected _choiceElements: Choice[];
799
801
  static styles: lit.CSSResult[];
800
802
  render(): lit_html.TemplateResult<1>;
801
803
  private setHotspotOrder;
@@ -1132,4 +1134,4 @@ declare global {
1132
1134
  }
1133
1135
  }
1134
1136
 
1135
- 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 };
1137
+ export { QtiPortableCustomInteraction 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, type Orientation as N, type OutcomeChangedDetails as O, QtiChoiceInteraction as P, QtiRule as Q, type ResponseVariable as R, QtiOutcomeProcessing as S, QtiOutcomeProcessingProcessor as T, QtiResponseProcessing as U, type VariableDeclaration as V, QtiLookupOutcomeValue as W, QtiAnd as X, type MockQtiExpression as Y, qtiAndMixin as Z, QtiMapping as _, type QtiRuleBase as a, QtiAssociateInteraction as a0, QtiCustomInteraction as a1, QtiEndAttemptInteraction as a2, QtiGapMatchInteraction as a3, QtiGraphicAssociateInteraction as a4, QtiGraphicGapMatchInteraction as a5, QtiGraphicOrderInteraction as a6, QtiHotspotInteraction as a7, QtiMatchInteraction as a8, QtiMediaInteraction as a9, QtiOrderInteraction as aa, QtiPositionObjectStage as ab, QtiSelectPointInteraction as ac, QtiSliderInteraction as ad, itemContextVariables as ae, itemContext as af, QtiCustomOperator as ag, Interaction as ah, QtiAssociableHotspot as ai, QtiGap as aj, QtiGapImg as ak, QtiGapText as al, QtiHotspotChoice as am, QtiHottext as an, QtiInlineChoice as ao, QtiSimpleAssociableChoice as ap, QtiSimpleChoice as aq, 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 };