@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.
- package/cdn/index.global.js +277 -0
- package/cdn/index.min.cjs +4489 -0
- package/cdn/index.min.js +4489 -0
- package/dist/custom-element-eslint-rules.js +337 -0
- package/dist/item.css +2613 -738
- package/dist/qti-components/index.cjs +6704 -0
- package/dist/qti-components/index.cjs.map +1 -0
- package/dist/qti-components/index.d.cts +150 -0
- package/dist/qti-components/index.d.ts +7 -7
- package/dist/qti-components/index.js +6244 -224
- package/dist/qti-components/index.js.map +1 -0
- package/dist/qti-components-jsx.d.ts +2170 -0
- package/dist/qti-item/index.cjs +89 -0
- package/dist/qti-item/index.cjs.map +1 -0
- package/dist/qti-item/index.d.cts +24 -0
- package/dist/qti-item/index.d.ts +15 -10
- package/dist/qti-item/index.js +63 -1504
- package/dist/qti-item/index.js.map +1 -0
- package/dist/qti-loader/index.cjs +332 -0
- package/dist/qti-loader/index.cjs.map +1 -0
- package/dist/qti-loader/index.d.cts +20 -0
- package/dist/qti-loader/index.d.ts +19 -4
- package/dist/qti-loader/index.js +305 -2
- package/dist/qti-loader/index.js.map +1 -0
- package/dist/{qti-simple-choice-CafJuhnH.d.ts → qti-simple-choice-CynLWb8d.d.cts} +183 -171
- package/dist/qti-simple-choice-CynLWb8d.d.ts +1185 -0
- package/dist/qti-test/index.cjs +4632 -0
- package/dist/qti-test/index.cjs.map +1 -0
- package/dist/qti-test/index.d.cts +304 -0
- package/dist/qti-test/index.d.ts +304 -0
- package/dist/qti-test/index.js +4599 -0
- package/dist/qti-test/index.js.map +1 -0
- package/dist/qti-transformers/index.cjs +316 -0
- package/dist/qti-transformers/index.cjs.map +1 -0
- package/dist/qti-transformers/index.d.cts +75 -0
- package/dist/qti-transformers/index.d.ts +25 -120
- package/dist/qti-transformers/index.js +288 -2
- package/dist/qti-transformers/index.js.map +1 -0
- package/dist/vscode.css-custom-data.json +72 -0
- package/dist/vscode.html-custom-data.json +914 -0
- package/package.json +178 -68
- package/dist/chunk-62FWJYVB.js +0 -24
- package/dist/chunk-E7TLXHQH.js +0 -2
- package/dist/custom-elements.json +0 -8035
- package/dist/index.js +0 -2326
- /package/{LICENSE → LICENSE.md} +0 -0
- /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-
|
|
2
|
-
export { C as Calculate, m as Cardinality,
|
|
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
|
|
114
|
+
declare class QtiPrintedVariable extends LitElement {
|
|
115
115
|
identifier: string;
|
|
116
|
-
|
|
116
|
+
protected context?: ItemContext;
|
|
117
117
|
render(): lit_html.TemplateResult<1>;
|
|
118
|
-
calculate():
|
|
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
|
|
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,
|
|
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 };
|