@citolab/qti-components 6.9.1-beta.9 → 7.0.1

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.
Files changed (47) hide show
  1. package/cdn/index.global.js +277 -0
  2. package/cdn/index.min.cjs +4489 -0
  3. package/cdn/index.min.js +4489 -0
  4. package/dist/custom-element-eslint-rules.js +337 -0
  5. package/dist/item.css +2613 -738
  6. package/dist/qti-components/index.cjs +6704 -0
  7. package/dist/qti-components/index.cjs.map +1 -0
  8. package/dist/qti-components/index.d.cts +150 -0
  9. package/dist/qti-components/index.d.ts +7 -7
  10. package/dist/qti-components/index.js +6244 -224
  11. package/dist/qti-components/index.js.map +1 -0
  12. package/dist/qti-components-jsx.d.ts +2170 -0
  13. package/dist/qti-item/index.cjs +89 -0
  14. package/dist/qti-item/index.cjs.map +1 -0
  15. package/dist/qti-item/index.d.cts +24 -0
  16. package/dist/qti-item/index.d.ts +15 -10
  17. package/dist/qti-item/index.js +63 -1504
  18. package/dist/qti-item/index.js.map +1 -0
  19. package/dist/qti-loader/index.cjs +332 -0
  20. package/dist/qti-loader/index.cjs.map +1 -0
  21. package/dist/qti-loader/index.d.cts +20 -0
  22. package/dist/qti-loader/index.d.ts +19 -4
  23. package/dist/qti-loader/index.js +305 -2
  24. package/dist/qti-loader/index.js.map +1 -0
  25. package/dist/{qti-simple-choice-CafJuhnH.d.ts → qti-simple-choice-CynLWb8d.d.cts} +183 -171
  26. package/dist/qti-simple-choice-CynLWb8d.d.ts +1185 -0
  27. package/dist/qti-test/index.cjs +4632 -0
  28. package/dist/qti-test/index.cjs.map +1 -0
  29. package/dist/qti-test/index.d.cts +304 -0
  30. package/dist/qti-test/index.d.ts +304 -0
  31. package/dist/qti-test/index.js +4599 -0
  32. package/dist/qti-test/index.js.map +1 -0
  33. package/dist/qti-transformers/index.cjs +316 -0
  34. package/dist/qti-transformers/index.cjs.map +1 -0
  35. package/dist/qti-transformers/index.d.cts +75 -0
  36. package/dist/qti-transformers/index.d.ts +25 -120
  37. package/dist/qti-transformers/index.js +288 -2
  38. package/dist/qti-transformers/index.js.map +1 -0
  39. package/dist/vscode.css-custom-data.json +72 -0
  40. package/dist/vscode.html-custom-data.json +914 -0
  41. package/package.json +178 -68
  42. package/dist/chunk-62FWJYVB.js +0 -24
  43. package/dist/chunk-E7TLXHQH.js +0 -2
  44. package/dist/custom-elements.json +0 -8035
  45. package/dist/index.js +0 -2326
  46. /package/{LICENSE → LICENSE.md} +0 -0
  47. /package/{readme.md → README.md} +0 -0
@@ -0,0 +1,150 @@
1
+ import { Q as QtiRule, a as QtiRuleBase, b as QtiExpressionBase, c as QtiExpression, B as BaseType, d as QtiConditionExpression, R as ResponseVariable, V as VariableDeclaration, I as ItemContext } from '../qti-simple-choice-CynLWb8d.cjs';
2
+ export { s as ActiveElementMixin, A as ActiveElementMixinInterface, C as Calculate, m as Cardinality, r as ChoiceInterface, ai as Interaction, e as InteractionChangedDetails, M as Multiple, l as Ordered, N as Orientation, O as OutcomeChangedDetails, o as OutcomeVariable, X as QtiAnd, p as QtiAssessmentItem, q as QtiAssessmentStimulusRef, aj as QtiAssociableHotspot, a1 as QtiAssociateInteraction, P as QtiChoiceInteraction, y as QtiCompanionMaterialsInfo, z as QtiContentBody, a2 as QtiCustomInteraction, ah as QtiCustomOperator, a3 as QtiEndAttemptInteraction, H as QtiExtendedTextInteraction, E as QtiFeedbackBlock, F as QtiFeedbackInline, ak as QtiGap, al as QtiGapImg, a4 as QtiGapMatchInteraction, am as QtiGapText, a5 as QtiGraphicAssociateInteraction, a6 as QtiGraphicGapMatchInteraction, a7 as QtiGraphicOrderInteraction, an as QtiHotspotChoice, a8 as QtiHotspotInteraction, ao as QtiHottext, K as QtiHottextInteraction, ap as QtiInlineChoice, L as QtiInlineChoiceInteraction, f as QtiInteractionChanged, t as QtiItemBody, W as QtiLookupOutcomeValue, Z as QtiMapping, a9 as QtiMatchInteraction, aa as QtiMediaInteraction, G as QtiModalFeedback, ab as QtiOrderInteraction, g as QtiOutcomeChanged, w as QtiOutcomeDeclaration, S as QtiOutcomeProcessing, T as QtiOutcomeProcessingProcessor, a0 as QtiPortableCustomInteraction, ac as QtiPositionObjectStage, u as QtiPrompt, x as QtiResponseDeclaration, U as QtiResponseProcessing, D as QtiRubricBlock, ad as QtiSelectPointInteraction, aq as QtiSimpleAssociableChoice, ar as QtiSimpleChoice, ae as QtiSliderInteraction, v as QtiStylesheet, _ as QtiSubtract, J as QtiTextEntryInteraction, i as ResponseInteraction, n as VariableValue, h as directedPair, j as float, k as integer, ag as itemContext, af as itemContextVariables, Y as qtiAndMixin, $ as qtiSubtractMixin } from '../qti-simple-choice-CynLWb8d.cjs';
3
+ import * as lit_html from 'lit-html';
4
+ import * as lit from 'lit';
5
+ import { LitElement } from 'lit';
6
+ import 'lit-html/directives/ref.js';
7
+
8
+ declare class QtiResponseCondition extends QtiRule {
9
+ render(): lit_html.TemplateResult<1>;
10
+ process(): void;
11
+ }
12
+
13
+ declare class QtiSetOutcomeValue extends QtiRule {
14
+ process(): void;
15
+ }
16
+ declare class QtiSetOutcomeValueRule<T> implements QtiRuleBase {
17
+ private expression;
18
+ constructor(expression: QtiExpressionBase<T>);
19
+ process(): any;
20
+ }
21
+
22
+ declare class QtiResponseElse extends LitElement {
23
+ render(): lit_html.TemplateResult<1>;
24
+ calculate(): boolean;
25
+ getSubRules(): QtiRule[];
26
+ process(): void;
27
+ }
28
+
29
+ declare class QtiResponseIf extends QtiResponseElse {
30
+ calculate(): boolean;
31
+ getSubRules(): QtiRule[];
32
+ }
33
+
34
+ declare class QtiResponseElseIf extends QtiResponseIf {
35
+ render(): lit_html.TemplateResult<1>;
36
+ }
37
+
38
+ declare class QtiBaseValue extends QtiExpression<string> {
39
+ baseType: BaseType;
40
+ getResult(): string;
41
+ }
42
+
43
+ declare class QtiContains extends QtiConditionExpression {
44
+ getResult(): boolean;
45
+ }
46
+
47
+ declare class QtiCorrect extends QtiExpression<string | string[]> {
48
+ get interpretation(): string;
49
+ getResult(): string | string[];
50
+ }
51
+
52
+ declare class QtiEqualRounded extends QtiExpression<boolean> {
53
+ roundingMode: 'decimalPlaces' | 'significantFigures';
54
+ get figures(): number;
55
+ getResult(): boolean;
56
+ }
57
+
58
+ declare class QtiEqual extends QtiExpression<boolean> {
59
+ toleranceMode: 'exact' | 'relative' | 'absolute';
60
+ getResult(): boolean;
61
+ }
62
+
63
+ declare class QtiGt extends QtiExpression<boolean> {
64
+ getResult(): boolean;
65
+ }
66
+
67
+ declare class QtiGte extends QtiConditionExpression {
68
+ getResult(): boolean;
69
+ }
70
+
71
+ declare class QtiIsNull extends QtiExpression<boolean> {
72
+ getResult(): boolean;
73
+ }
74
+
75
+ declare class QtiLt extends QtiExpression<boolean> {
76
+ getResult(): boolean;
77
+ }
78
+
79
+ declare class QtiLte extends QtiConditionExpression {
80
+ getResult(): boolean;
81
+ }
82
+
83
+ declare class QtiMapResponse extends QtiExpression<number> {
84
+ identifier: string;
85
+ getResult(): number;
86
+ }
87
+
88
+ declare class QtiMatch extends QtiExpression<boolean> {
89
+ getResult(): boolean;
90
+ static match(valueToMap: ResponseVariable, correctValueInfo: ResponseVariable): boolean;
91
+ }
92
+
93
+ declare class QtiMember extends QtiExpression<boolean | null> {
94
+ getResult(): boolean;
95
+ }
96
+
97
+ declare class QtiMultiple extends QtiExpression<VariableDeclaration<string | string[]>[]> {
98
+ getResult(): ResponseVariable[];
99
+ }
100
+
101
+ declare class QtiNot extends QtiExpression<boolean> {
102
+ render(): lit_html.TemplateResult<1>;
103
+ getResult(): boolean;
104
+ }
105
+
106
+ declare class QtiOr extends QtiConditionExpression {
107
+ getResult(): boolean;
108
+ }
109
+
110
+ declare class QtiOrdered extends QtiExpression<ResponseVariable[]> {
111
+ getResult(): ResponseVariable[];
112
+ }
113
+
114
+ declare class QtiPrintedVariable extends LitElement {
115
+ identifier: string;
116
+ protected context?: ItemContext;
117
+ render(): lit_html.TemplateResult<1>;
118
+ calculate(): VariableDeclaration<string | string[]>;
119
+ }
120
+
121
+ declare class QtiProduct extends QtiExpression<number> {
122
+ getResult(): number;
123
+ }
124
+
125
+ declare class QtiStringMatch extends QtiExpression<boolean> {
126
+ caseSensitive: string;
127
+ getResult(): boolean;
128
+ }
129
+
130
+ declare class QtiSum extends QtiExpression<number> {
131
+ private _expression;
132
+ constructor();
133
+ getResult(): number;
134
+ }
135
+ declare class QtiSumExpression implements QtiExpressionBase<number> {
136
+ private expressions;
137
+ constructor(expressions: QtiExpressionBase<number>[]);
138
+ calculate(): number;
139
+ }
140
+
141
+ declare class QtiVariable extends QtiExpression<string | string[]> {
142
+ getResult(): Readonly<string | string[]>;
143
+ }
144
+
145
+ declare class QtiPositionObjectInteraction extends LitElement {
146
+ render(): lit_html.TemplateResult<1>;
147
+ static styles: lit.CSSResult[];
148
+ }
149
+
150
+ export { BaseType, ItemContext, QtiBaseValue, QtiConditionExpression, QtiContains, QtiCorrect, QtiEqual, QtiEqualRounded, QtiExpression, QtiExpressionBase, QtiGt, QtiGte, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMatch, QtiMember, QtiMultiple, QtiNot, QtiOr, QtiOrdered, QtiPositionObjectInteraction, QtiPrintedVariable, QtiProduct, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRule, QtiRuleBase, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiStringMatch, QtiSum, QtiSumExpression, QtiVariable, ResponseVariable, VariableDeclaration };
@@ -1,5 +1,5 @@
1
- import { Q as QtiRule, a as QtiRuleBase, b as QtiExpressionBase, c as QtiExpression, B as BaseType, d as QtiConditionExpression, R as ResponseVariable, V as VariableDeclaration, I as ItemContext } from '../qti-simple-choice-CafJuhnH.js';
2
- export { C as Calculate, m as Cardinality, ad as Interaction, e as InteractionChangedDetails, T as MockQtiExpression, M as Multiple, l as Ordered, O as OutcomeChangedDetails, o as OutcomeVariable, S as QtiAnd, p as QtiAssessmentItem, q as QtiAssessmentStimulusRef, ae as QtiAssociableHotspot, Y as QtiAssociateInteraction, r as QtiChoice, J as QtiChoiceInteraction, w as QtiCompanionMaterialsInfo, x as QtiContentBody, Z as QtiCustomInteraction, ac as QtiCustomOperator, _ as QtiEndAttemptInteraction, E as QtiExtendedTextInteraction, z as QtiFeedbackBlock, A as QtiFeedbackInline, af as QtiGap, ag as QtiGapImg, $ as QtiGapMatchInteraction, ah as QtiGapText, a0 as QtiGraphicAssociateInteraction, a1 as QtiGraphicGapMatchInteraction, a2 as QtiGraphicOrderInteraction, ai as QtiHotspotChoice, a3 as QtiHotspotInteraction, aj as QtiHottext, G as QtiHottextInteraction, ak as QtiInlineChoice, H as QtiInlineChoiceInteraction, f as QtiInteractionChanged, P as QtiLookupOutcomeValue, W as QtiMapping, a4 as QtiMatchInteraction, a5 as QtiMediaInteraction, D as QtiModalFeedback, a6 as QtiOrderInteraction, g as QtiOutcomeChanged, u as QtiOutcomeDeclaration, K as QtiOutcomeProcessing, L as QtiOutcomeProcessingProcessor, X as QtiPortableCustomInteraction, a7 as QtiPositionObjectStage, s as QtiPrompt, v as QtiResponseDeclaration, N as QtiResponseProcessing, y as QtiRubricBlock, a8 as QtiSelectPointInteraction, al as QtiSimpleAssociableChoice, am as QtiSimpleChoice, a9 as QtiSliderInteraction, t as QtiStylesheet, F as QtiTextEntryInteraction, i as ResponseInteraction, n as VariableValue, h as directedPair, j as float, k as integer, ab as itemContext, aa as itemContextVariables, U as qtiAndMixin } from '../qti-simple-choice-CafJuhnH.js';
1
+ import { Q as QtiRule, a as QtiRuleBase, b as QtiExpressionBase, c as QtiExpression, B as BaseType, d as QtiConditionExpression, R as ResponseVariable, V as VariableDeclaration, I as ItemContext } from '../qti-simple-choice-CynLWb8d.js';
2
+ export { s as ActiveElementMixin, A as ActiveElementMixinInterface, C as Calculate, m as Cardinality, r as ChoiceInterface, ai as Interaction, e as InteractionChangedDetails, M as Multiple, l as Ordered, N as Orientation, O as OutcomeChangedDetails, o as OutcomeVariable, X as QtiAnd, p as QtiAssessmentItem, q as QtiAssessmentStimulusRef, aj as QtiAssociableHotspot, a1 as QtiAssociateInteraction, P as QtiChoiceInteraction, y as QtiCompanionMaterialsInfo, z as QtiContentBody, a2 as QtiCustomInteraction, ah as QtiCustomOperator, a3 as QtiEndAttemptInteraction, H as QtiExtendedTextInteraction, E as QtiFeedbackBlock, F as QtiFeedbackInline, ak as QtiGap, al as QtiGapImg, a4 as QtiGapMatchInteraction, am as QtiGapText, a5 as QtiGraphicAssociateInteraction, a6 as QtiGraphicGapMatchInteraction, a7 as QtiGraphicOrderInteraction, an as QtiHotspotChoice, a8 as QtiHotspotInteraction, ao as QtiHottext, K as QtiHottextInteraction, ap as QtiInlineChoice, L as QtiInlineChoiceInteraction, f as QtiInteractionChanged, t as QtiItemBody, W as QtiLookupOutcomeValue, Z as QtiMapping, a9 as QtiMatchInteraction, aa as QtiMediaInteraction, G as QtiModalFeedback, ab as QtiOrderInteraction, g as QtiOutcomeChanged, w as QtiOutcomeDeclaration, S as QtiOutcomeProcessing, T as QtiOutcomeProcessingProcessor, a0 as QtiPortableCustomInteraction, ac as QtiPositionObjectStage, u as QtiPrompt, x as QtiResponseDeclaration, U as QtiResponseProcessing, D as QtiRubricBlock, ad as QtiSelectPointInteraction, aq as QtiSimpleAssociableChoice, ar as QtiSimpleChoice, ae as QtiSliderInteraction, v as QtiStylesheet, _ as QtiSubtract, J as QtiTextEntryInteraction, i as ResponseInteraction, n as VariableValue, h as directedPair, j as float, k as integer, ag as itemContext, af as itemContextVariables, Y as qtiAndMixin, $ as qtiSubtractMixin } from '../qti-simple-choice-CynLWb8d.js';
3
3
  import * as lit_html from 'lit-html';
4
4
  import * as lit from 'lit';
5
5
  import { LitElement } from 'lit';
@@ -111,11 +111,11 @@ declare class QtiOrdered extends QtiExpression<ResponseVariable[]> {
111
111
  getResult(): ResponseVariable[];
112
112
  }
113
113
 
114
- declare class QtPrintedVariable extends LitElement {
114
+ declare class QtiPrintedVariable extends LitElement {
115
115
  identifier: string;
116
- itemContext?: ItemContext;
116
+ protected context?: ItemContext;
117
117
  render(): lit_html.TemplateResult<1>;
118
- calculate(): Readonly<string | string[]>;
118
+ calculate(): VariableDeclaration<string | string[]>;
119
119
  }
120
120
 
121
121
  declare class QtiProduct extends QtiExpression<number> {
@@ -142,9 +142,9 @@ declare class QtiVariable extends QtiExpression<string | string[]> {
142
142
  getResult(): Readonly<string | string[]>;
143
143
  }
144
144
 
145
- declare class QtiSPositionObjectInteraction extends LitElement {
145
+ declare class QtiPositionObjectInteraction extends LitElement {
146
146
  render(): lit_html.TemplateResult<1>;
147
147
  static styles: lit.CSSResult[];
148
148
  }
149
149
 
150
- export { BaseType, ItemContext, QtPrintedVariable, QtiBaseValue, QtiConditionExpression, QtiContains, QtiCorrect, QtiEqual, QtiEqualRounded, QtiExpression, QtiExpressionBase, QtiGt, QtiGte, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMatch, QtiMember, QtiMultiple, QtiNot, QtiOr, QtiOrdered, QtiProduct, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRule, QtiRuleBase, QtiSPositionObjectInteraction, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiStringMatch, QtiSum, QtiSumExpression, QtiVariable, ResponseVariable, VariableDeclaration };
150
+ export { BaseType, ItemContext, QtiBaseValue, QtiConditionExpression, QtiContains, QtiCorrect, QtiEqual, QtiEqualRounded, QtiExpression, QtiExpressionBase, QtiGt, QtiGte, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMatch, QtiMember, QtiMultiple, QtiNot, QtiOr, QtiOrdered, QtiPositionObjectInteraction, QtiPrintedVariable, QtiProduct, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRule, QtiRuleBase, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiStringMatch, QtiSum, QtiSumExpression, QtiVariable, ResponseVariable, VariableDeclaration };