@citolab/qti-components 6.0.24 → 6.0.26

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
- import { V as VariableDeclaration, B as BaseType, C as Cardinality, a as Choices, I as Interaction, Q as QtiRule, b as QtiAssessmentItem, R as ResponseVariable, c as QtiChoice } from '../qti-simple-choice-6d581309.js';
2
- export { f as Calculate, j as InteractionChangedDetails, M as Multiple, O as Ordered, h as OutcomeChangedDetails, t as OutcomeVariable, s as QtiChoiceElementSelected, w as QtiChoiceInteraction, v as QtiExtendedTextInteraction, z as QtiHottext, k as QtiInteractionChanged, r as QtiInteractionResponse, p as QtiLooseChoice, y as QtiMapping, q as QtiOutcomeChanged, n as QtiRegisterChoice, o as QtiRegisterHotspot, m as QtiRegisterInteraction, l as QtiRegisterVariable, x as QtiResponseProcessing, A as QtiSimpleChoice, u as QtiTextEntryInteraction, e as ResponseInteraction, d as directedPair, g as float, i as integer } from '../qti-simple-choice-6d581309.js';
1
+ import { V as VariableDeclaration, B as BaseType, C as Cardinality, a as Choices, I as Interaction, Q as QtiRule, b as QtiAssessmentItem, R as ResponseVariable, c as QtiChoice } from '../qti-simple-choice-86f433b6.js';
2
+ export { f as Calculate, j as InteractionChangedDetails, M as Multiple, O as Ordered, h as OutcomeChangedDetails, u as OutcomeVariable, s as QtiChoiceElementSelected, x as QtiChoiceInteraction, w as QtiExtendedTextInteraction, A as QtiHottext, k as QtiInteractionChanged, r as QtiInteractionResponse, p as QtiLooseChoice, z as QtiMapping, q as QtiOutcomeChanged, n as QtiRegisterChoice, o as QtiRegisterHotspot, m as QtiRegisterInteraction, l as QtiRegisterVariable, y as QtiResponseProcessing, D as QtiSimpleChoice, v as QtiTextEntryInteraction, e as ResponseInteraction, t as ResultVariable, d as directedPair, g as float, i as integer } from '../qti-simple-choice-86f433b6.js';
3
3
  import * as lit from 'lit';
4
4
  import { LitElement, PropertyValueMap } from 'lit';
5
5
  import * as lit_html from 'lit-html';
@@ -163,50 +163,37 @@ declare class QtiResponseElseIf extends QtiResponseIf {
163
163
  }
164
164
 
165
165
  declare abstract class QtiExpression<T> extends LitElement {
166
+ protected _result: any;
166
167
  protected _error: any[];
168
+ private _debug;
167
169
  protected set error(val: string);
168
170
  static styles: lit.CSSResult;
169
171
  render(): lit_html.TemplateResult<1>;
170
172
  calculate(): T;
171
173
  protected get assessmentItem(): QtiAssessmentItem;
172
- protected getVariables: () => VariableDeclaration<number | string | (number | string)[] | undefined>[];
174
+ protected getVariables: () => VariableDeclaration<number | string | (number | string)[] | null>[];
173
175
  }
174
176
 
175
- declare class QtiGt extends QtiExpression<boolean> {
176
- calculate(): boolean;
177
- }
178
-
179
- declare class QtiConditionExpression extends QtiExpression<boolean> {
180
- render(): lit_html.TemplateResult<1>;
181
- calculate(): boolean;
182
- }
183
-
184
- declare class QtiGte extends QtiConditionExpression {
177
+ declare abstract class QtiConditionExpression extends QtiExpression<boolean> {
185
178
  calculate(): boolean;
186
179
  }
187
180
 
188
- declare class QtiLt extends QtiExpression<boolean> {
181
+ declare class QtiAnd extends QtiConditionExpression {
189
182
  calculate(): boolean;
190
183
  }
191
184
 
192
- declare class QtiLte extends QtiConditionExpression {
193
- calculate(): boolean;
185
+ declare class QtiBaseValue extends QtiExpression<string> {
186
+ baseType: BaseType;
187
+ calculate(): string;
194
188
  }
195
189
 
196
- declare class QtiAnd extends QtiConditionExpression {
197
- render(): lit_html.TemplateResult<1>;
190
+ declare class QtiContains extends QtiConditionExpression {
198
191
  calculate(): boolean;
199
192
  }
200
193
 
201
- declare class QtiProduct extends QtiExpression<number> {
202
- mult: number;
203
- render: () => lit_html.TemplateResult<1>;
204
- calculate(): number;
205
- }
206
-
207
- declare class QtiOr extends QtiConditionExpression {
208
- render(): lit_html.TemplateResult<1>;
209
- calculate(): boolean;
194
+ declare class QtiCorrect extends QtiExpression<string | string[]> {
195
+ get interpretation(): string;
196
+ calculate(): string | string[];
210
197
  }
211
198
 
212
199
  declare class QtiEqual extends QtiExpression<boolean> {
@@ -220,27 +207,23 @@ declare class QtiEqualRounded extends QtiExpression<boolean> {
220
207
  calculate(): boolean;
221
208
  }
222
209
 
223
- declare class QtiBaseValue extends QtiExpression<string> {
224
- baseType: BaseType;
225
- calculate(): string;
210
+ declare class QtiGt extends QtiExpression<boolean> {
211
+ calculate(): boolean;
226
212
  }
227
213
 
228
- declare class QtiContains extends QtiExpression<boolean> {
214
+ declare class QtiGte extends QtiConditionExpression {
229
215
  calculate(): boolean;
230
216
  }
231
217
 
232
- declare class QtiCorrect extends QtiExpression<string | string[]> {
233
- render(): lit_html.TemplateResult<1>;
234
- get interpretation(): string;
235
- calculate(): string | string[];
218
+ declare class QtiIsNull extends QtiExpression<boolean> {
219
+ calculate(): boolean;
236
220
  }
237
221
 
238
- declare class QtiIsNull extends QtiExpression<boolean> {
222
+ declare class QtiLt extends QtiExpression<boolean> {
239
223
  calculate(): boolean;
240
224
  }
241
225
 
242
- declare class QtiNot extends QtiExpression<boolean> {
243
- render(): lit_html.TemplateResult<1>;
226
+ declare class QtiLte extends QtiConditionExpression {
244
227
  calculate(): boolean;
245
228
  }
246
229
 
@@ -250,18 +233,28 @@ declare class QtiMapResponse extends QtiExpression<number> {
250
233
  }
251
234
 
252
235
  declare class QtiMatch extends QtiExpression<boolean> {
253
- calculate(): boolean;
236
+ calculate(): any;
237
+ static match(valueToMap: ResponseVariable, correctValueInfo: ResponseVariable): boolean;
254
238
  }
255
239
 
256
- declare class QtiVariable extends QtiExpression<string | string[]> {
257
- render(): lit_html.TemplateResult<1>;
258
- calculate(): string | string[];
240
+ declare class QtiMember extends QtiExpression<boolean | null> {
241
+ calculate(): boolean;
259
242
  }
260
243
 
261
244
  declare class QtiMultiple extends QtiExpression<VariableDeclaration<string | string[]>[]> {
262
245
  calculate(): ResponseVariable[];
263
246
  }
264
247
 
248
+ declare class QtiNot extends QtiExpression<boolean> {
249
+ render(): lit_html.TemplateResult<1>;
250
+ calculate(): boolean;
251
+ }
252
+
253
+ declare class QtiOr extends QtiConditionExpression {
254
+ render(): lit_html.TemplateResult<1>;
255
+ calculate(): boolean;
256
+ }
257
+
265
258
  declare class QtiOrdered extends QtiExpression<ResponseVariable[]> {
266
259
  calculate(): ResponseVariable[];
267
260
  }
@@ -274,8 +267,12 @@ declare class QtPrintedVariable extends LitElement {
274
267
  calculate(): string | string[];
275
268
  }
276
269
 
277
- declare class QtiMember extends QtiExpression<boolean | null> {
278
- calculate(): boolean;
270
+ declare class QtiProduct extends QtiExpression<number> {
271
+ calculate(): number;
272
+ }
273
+
274
+ declare class QtiVariable extends QtiExpression<string | string[]> {
275
+ calculate(): string | string[];
279
276
  }
280
277
 
281
278
  declare class QtiPortableCustomInteraction extends LitElement {
@@ -557,4 +554,4 @@ declare class QtiHotspotChoice extends QtiChoice {
557
554
  declare class QtiInlineChoice extends LitElement {
558
555
  }
559
556
 
560
- export { BaseType, Cardinality, Events, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, QtiCompanionMaterialsInfo, QtiContains, QtiCorrect, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSliderInteraction, QtiStylesheet, QtiVariable, ResponseVariable, qtiContentBody, qtiRubricBlock };
557
+ export { BaseType, Cardinality, Events, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, QtiCompanionMaterialsInfo, QtiConditionExpression, QtiContains, QtiCorrect, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSliderInteraction, QtiStylesheet, QtiVariable, ResponseVariable, VariableDeclaration, qtiContentBody, qtiRubricBlock };
@@ -1,5 +1,5 @@
1
- import { V as VariableDeclaration, B as BaseType, C as Cardinality, a as Choices, I as Interaction, Q as QtiRule, b as QtiAssessmentItem, R as ResponseVariable, c as QtiChoice } from '../qti-simple-choice-6d581309.js';
2
- export { f as Calculate, j as InteractionChangedDetails, M as Multiple, O as Ordered, h as OutcomeChangedDetails, t as OutcomeVariable, s as QtiChoiceElementSelected, w as QtiChoiceInteraction, v as QtiExtendedTextInteraction, z as QtiHottext, k as QtiInteractionChanged, r as QtiInteractionResponse, p as QtiLooseChoice, y as QtiMapping, q as QtiOutcomeChanged, n as QtiRegisterChoice, o as QtiRegisterHotspot, m as QtiRegisterInteraction, l as QtiRegisterVariable, x as QtiResponseProcessing, A as QtiSimpleChoice, u as QtiTextEntryInteraction, e as ResponseInteraction, d as directedPair, g as float, i as integer } from '../qti-simple-choice-6d581309.js';
1
+ import { V as VariableDeclaration, B as BaseType, C as Cardinality, a as Choices, I as Interaction, Q as QtiRule, b as QtiAssessmentItem, R as ResponseVariable, c as QtiChoice } from '../qti-simple-choice-86f433b6.js';
2
+ export { f as Calculate, j as InteractionChangedDetails, M as Multiple, O as Ordered, h as OutcomeChangedDetails, u as OutcomeVariable, s as QtiChoiceElementSelected, x as QtiChoiceInteraction, w as QtiExtendedTextInteraction, A as QtiHottext, k as QtiInteractionChanged, r as QtiInteractionResponse, p as QtiLooseChoice, z as QtiMapping, q as QtiOutcomeChanged, n as QtiRegisterChoice, o as QtiRegisterHotspot, m as QtiRegisterInteraction, l as QtiRegisterVariable, y as QtiResponseProcessing, D as QtiSimpleChoice, v as QtiTextEntryInteraction, e as ResponseInteraction, t as ResultVariable, d as directedPair, g as float, i as integer } from '../qti-simple-choice-86f433b6.js';
3
3
  import * as lit from 'lit';
4
4
  import { LitElement, PropertyValueMap } from 'lit';
5
5
  import * as lit_html from 'lit-html';
@@ -163,50 +163,37 @@ declare class QtiResponseElseIf extends QtiResponseIf {
163
163
  }
164
164
 
165
165
  declare abstract class QtiExpression<T> extends LitElement {
166
+ protected _result: any;
166
167
  protected _error: any[];
168
+ private _debug;
167
169
  protected set error(val: string);
168
170
  static styles: lit.CSSResult;
169
171
  render(): lit_html.TemplateResult<1>;
170
172
  calculate(): T;
171
173
  protected get assessmentItem(): QtiAssessmentItem;
172
- protected getVariables: () => VariableDeclaration<number | string | (number | string)[] | undefined>[];
174
+ protected getVariables: () => VariableDeclaration<number | string | (number | string)[] | null>[];
173
175
  }
174
176
 
175
- declare class QtiGt extends QtiExpression<boolean> {
176
- calculate(): boolean;
177
- }
178
-
179
- declare class QtiConditionExpression extends QtiExpression<boolean> {
180
- render(): lit_html.TemplateResult<1>;
181
- calculate(): boolean;
182
- }
183
-
184
- declare class QtiGte extends QtiConditionExpression {
177
+ declare abstract class QtiConditionExpression extends QtiExpression<boolean> {
185
178
  calculate(): boolean;
186
179
  }
187
180
 
188
- declare class QtiLt extends QtiExpression<boolean> {
181
+ declare class QtiAnd extends QtiConditionExpression {
189
182
  calculate(): boolean;
190
183
  }
191
184
 
192
- declare class QtiLte extends QtiConditionExpression {
193
- calculate(): boolean;
185
+ declare class QtiBaseValue extends QtiExpression<string> {
186
+ baseType: BaseType;
187
+ calculate(): string;
194
188
  }
195
189
 
196
- declare class QtiAnd extends QtiConditionExpression {
197
- render(): lit_html.TemplateResult<1>;
190
+ declare class QtiContains extends QtiConditionExpression {
198
191
  calculate(): boolean;
199
192
  }
200
193
 
201
- declare class QtiProduct extends QtiExpression<number> {
202
- mult: number;
203
- render: () => lit_html.TemplateResult<1>;
204
- calculate(): number;
205
- }
206
-
207
- declare class QtiOr extends QtiConditionExpression {
208
- render(): lit_html.TemplateResult<1>;
209
- calculate(): boolean;
194
+ declare class QtiCorrect extends QtiExpression<string | string[]> {
195
+ get interpretation(): string;
196
+ calculate(): string | string[];
210
197
  }
211
198
 
212
199
  declare class QtiEqual extends QtiExpression<boolean> {
@@ -220,27 +207,23 @@ declare class QtiEqualRounded extends QtiExpression<boolean> {
220
207
  calculate(): boolean;
221
208
  }
222
209
 
223
- declare class QtiBaseValue extends QtiExpression<string> {
224
- baseType: BaseType;
225
- calculate(): string;
210
+ declare class QtiGt extends QtiExpression<boolean> {
211
+ calculate(): boolean;
226
212
  }
227
213
 
228
- declare class QtiContains extends QtiExpression<boolean> {
214
+ declare class QtiGte extends QtiConditionExpression {
229
215
  calculate(): boolean;
230
216
  }
231
217
 
232
- declare class QtiCorrect extends QtiExpression<string | string[]> {
233
- render(): lit_html.TemplateResult<1>;
234
- get interpretation(): string;
235
- calculate(): string | string[];
218
+ declare class QtiIsNull extends QtiExpression<boolean> {
219
+ calculate(): boolean;
236
220
  }
237
221
 
238
- declare class QtiIsNull extends QtiExpression<boolean> {
222
+ declare class QtiLt extends QtiExpression<boolean> {
239
223
  calculate(): boolean;
240
224
  }
241
225
 
242
- declare class QtiNot extends QtiExpression<boolean> {
243
- render(): lit_html.TemplateResult<1>;
226
+ declare class QtiLte extends QtiConditionExpression {
244
227
  calculate(): boolean;
245
228
  }
246
229
 
@@ -250,18 +233,28 @@ declare class QtiMapResponse extends QtiExpression<number> {
250
233
  }
251
234
 
252
235
  declare class QtiMatch extends QtiExpression<boolean> {
253
- calculate(): boolean;
236
+ calculate(): any;
237
+ static match(valueToMap: ResponseVariable, correctValueInfo: ResponseVariable): boolean;
254
238
  }
255
239
 
256
- declare class QtiVariable extends QtiExpression<string | string[]> {
257
- render(): lit_html.TemplateResult<1>;
258
- calculate(): string | string[];
240
+ declare class QtiMember extends QtiExpression<boolean | null> {
241
+ calculate(): boolean;
259
242
  }
260
243
 
261
244
  declare class QtiMultiple extends QtiExpression<VariableDeclaration<string | string[]>[]> {
262
245
  calculate(): ResponseVariable[];
263
246
  }
264
247
 
248
+ declare class QtiNot extends QtiExpression<boolean> {
249
+ render(): lit_html.TemplateResult<1>;
250
+ calculate(): boolean;
251
+ }
252
+
253
+ declare class QtiOr extends QtiConditionExpression {
254
+ render(): lit_html.TemplateResult<1>;
255
+ calculate(): boolean;
256
+ }
257
+
265
258
  declare class QtiOrdered extends QtiExpression<ResponseVariable[]> {
266
259
  calculate(): ResponseVariable[];
267
260
  }
@@ -274,8 +267,12 @@ declare class QtPrintedVariable extends LitElement {
274
267
  calculate(): string | string[];
275
268
  }
276
269
 
277
- declare class QtiMember extends QtiExpression<boolean | null> {
278
- calculate(): boolean;
270
+ declare class QtiProduct extends QtiExpression<number> {
271
+ calculate(): number;
272
+ }
273
+
274
+ declare class QtiVariable extends QtiExpression<string | string[]> {
275
+ calculate(): string | string[];
279
276
  }
280
277
 
281
278
  declare class QtiPortableCustomInteraction extends LitElement {
@@ -557,4 +554,4 @@ declare class QtiHotspotChoice extends QtiChoice {
557
554
  declare class QtiInlineChoice extends LitElement {
558
555
  }
559
556
 
560
- export { BaseType, Cardinality, Events, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, QtiCompanionMaterialsInfo, QtiContains, QtiCorrect, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSliderInteraction, QtiStylesheet, QtiVariable, ResponseVariable, qtiContentBody, qtiRubricBlock };
557
+ export { BaseType, Cardinality, Events, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, QtiCompanionMaterialsInfo, QtiConditionExpression, QtiContains, QtiCorrect, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, QtiIsNull, QtiLt, QtiLte, QtiMapResponse, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSliderInteraction, QtiStylesheet, QtiVariable, ResponseVariable, VariableDeclaration, qtiContentBody, qtiRubricBlock };