@citolab/qti-components 3.0.77 → 3.0.80
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/package.json +12 -12
- package/environments/environment.d.ts +0 -6
- package/environments/environment.prod.d.ts +0 -6
- package/index.css +0 -2885
- package/index.d.ts +0 -52
- package/index.js +0 -377
- package/index.umd.css +0 -2885
- package/index.umd.js +0 -490
- package/lab/qti-context/qti-context.d.ts +0 -7
- package/lab/qti-custom/qti-custom-operator/qti-custom-operator-levenshtein.d.ts +0 -11
- package/lab/qti-custom/qti-custom-operator/qti-custom-operator-numeric-parse-nl.d.ts +0 -11
- package/lab/qti-custom/qti-custom-operator/qti-custom-operator-numeric.d.ts +0 -6
- package/lab/qti-custom/qti-custom-operator/qti-custom-operator-remove-spaces.d.ts +0 -6
- package/lab/qti-custom/qti-custom-operator/qti-custom-operator-trim.d.ts +0 -6
- package/lab/qti-item/qti-item.d.ts +0 -20
- package/lab/qti-manual-scoring/qti-manual-scoring.d.ts +0 -15
- package/lab/qti-test/index.d.ts +0 -2
- package/lab/qti-test/qti-test-buttons.d.ts +0 -1
- package/lab/qti-test/qti-test.d.ts +0 -58
- package/lib/qti-base/qti-assessment-item/qti-assessment-item.d.ts +0 -44
- package/lib/qti-base/qti-choice/qti-choice.d.ts +0 -34
- package/lib/qti-base/qti-choice/qti-hottext/qti-hottext.d.ts +0 -9
- package/lib/qti-base/qti-choice/qti-simple-choice/qti-simple-choice.d.ts +0 -9
- package/lib/qti-base/qti-companion-materials-info/qti-companion-materials-info.d.ts +0 -3
- package/lib/qti-base/qti-feedback/qti-feedback-inline/qti-feedback-inline.d.ts +0 -5
- package/lib/qti-base/qti-feedback/qti-feedback.d.ts +0 -30
- package/lib/qti-base/qti-feedback/qti-modal-feedback/qti-modal-feedback.d.ts +0 -5
- package/lib/qti-base/qti-interaction/qti-choice-interaction/qti-choice-interaction.d.ts +0 -11
- package/lib/qti-base/qti-interaction/qti-extended-text-interaction/qti-extended-text-interaction.d.ts +0 -19
- package/lib/qti-base/qti-interaction/qti-hottext-interaction/qti-hottext-interaction.d.ts +0 -6
- package/lib/qti-base/qti-interaction/qti-inline-choice-interaction/qti-inline-choice-interaction.d.ts +0 -27
- package/lib/qti-base/qti-interaction/qti-text-entry-interaction/qti-text-entry-interaction.d.ts +0 -34
- package/lib/qti-base/qti-item-body/qti-item-body.d.ts +0 -5
- package/lib/qti-base/qti-preview/qti-associable-hotspot.d.ts +0 -6
- package/lib/qti-base/qti-preview/qti-associate-interaction/qti-associate-interaction.d.ts +0 -10
- package/lib/qti-base/qti-preview/qti-associate-interaction/qti-simple-associable-choice.d.ts +0 -5
- package/lib/qti-base/qti-preview/qti-custom-interaction/qti-portable-custom-interaction.d.ts +0 -34
- package/lib/qti-base/qti-preview/qti-gap-match-interaction/qti-gap-match-interaction.d.ts +0 -8
- package/lib/qti-base/qti-preview/qti-gap-match-interaction/qti-gap-text.d.ts +0 -5
- package/lib/qti-base/qti-preview/qti-gap-match-interaction/qti-gap.d.ts +0 -4
- package/lib/qti-base/qti-preview/qti-graphic-associate-interaction/qti-graphic-associate-interaction.d.ts +0 -10
- package/lib/qti-base/qti-preview/qti-graphic-gap-match-interaction/qti-gap-img.d.ts +0 -3
- package/lib/qti-base/qti-preview/qti-graphic-gap-match-interaction/qti-graphic-gap-match-interaction.d.ts +0 -11
- package/lib/qti-base/qti-preview/qti-graphic-order-interaction/qti-graphic-order-interaction.d.ts +0 -11
- package/lib/qti-base/qti-preview/qti-hotspot-choice.d.ts +0 -5
- package/lib/qti-base/qti-preview/qti-hotspot-interaction/qti-hotspot-interaction.d.ts +0 -9
- package/lib/qti-base/qti-preview/qti-match-interaction/qti-match-interaction.d.ts +0 -8
- package/lib/qti-base/qti-preview/qti-media-interaction/qti-media-interaction.d.ts +0 -19
- package/lib/qti-base/qti-preview/qti-order-interaction/qti-order-interaction.d.ts +0 -23
- package/lib/qti-base/qti-preview/qti-preview-badge.d.ts +0 -1
- package/lib/qti-base/qti-preview/qti-select-point-interaction/qti-select-point-interaction.d.ts +0 -10
- package/lib/qti-base/qti-preview/qti-slider-interaction/qti-slider-interaction.d.ts +0 -32
- package/lib/qti-base/qti-prompt/qti-prompt.d.ts +0 -6
- package/lib/qti-base/qti-responseprocessing/index.d.ts +0 -18
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-and/qti-and.d.ts +0 -7
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-basevalue/qti-basevalue.d.ts +0 -6
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-contains/qti-contains.d.ts +0 -6
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-correct/qti-correct.d.ts +0 -6
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-expression.d.ts +0 -6
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-gte/qti-gte.d.ts +0 -6
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-is-null/qti-is-null.d.ts +0 -6
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-mapresponse/qti-mapresponse.d.ts +0 -4
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-match/qti-match.d.ts +0 -4
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-multiple/qti-multiple.d.ts +0 -4
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-or/qti-or.d.ts +0 -7
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-variable/qti-variable.d.ts +0 -6
- package/lib/qti-base/qti-responseprocessing/qti-responseelse/qti-responseelse.d.ts +0 -15
- package/lib/qti-base/qti-responseprocessing/qti-responseelse/qti-responseif/qti-responseelseif/qti-responseelseif.d.ts +0 -4
- package/lib/qti-base/qti-responseprocessing/qti-responseelse/qti-responseif/qti-responseif.d.ts +0 -7
- package/lib/qti-base/qti-responseprocessing/qti-responseprocessing/qti-responseprocessing.d.ts +0 -7
- package/lib/qti-base/qti-responseprocessing/qti-rule/qti-responsecondition/qti-responsecondition.d.ts +0 -5
- package/lib/qti-base/qti-responseprocessing/qti-rule/qti-rule.d.ts +0 -5
- package/lib/qti-base/qti-responseprocessing/qti-rule/qti-setoutcomevalue/qti-setoutcomevalue.d.ts +0 -4
- package/lib/qti-base/qti-rubric-block/qti-content-body.d.ts +0 -5
- package/lib/qti-base/qti-rubric-block/qti-rubric-block.d.ts +0 -16
- package/lib/qti-base/qti-stylesheet/qti-stylesheet.d.ts +0 -7
- package/lib/qti-base/qti-variabledeclaration/qti-outcomedeclaration/qti-outcomedeclaration.d.ts +0 -5
- package/lib/qti-base/qti-variabledeclaration/qti-responsedeclaration/qti-responsedeclaration.d.ts +0 -9
- package/lib/qti-base/qti-variabledeclaration/qti-variabledeclaration.d.ts +0 -4
- package/lib/qti-utilities/EventStrings.d.ts +0 -19
- package/lib/qti-utilities/EventTypes.d.ts +0 -7
- package/lib/qti-utilities/ExpressionResult.d.ts +0 -43
- package/lib/qti-utilities/OutcomeVariable.d.ts +0 -8
- package/lib/qti-utilities/ResponseVariable.d.ts +0 -28
- package/lib/qti-utilities/TemplateStrings.d.ts +0 -3
- package/lib/qti-utilities/VariableDeclaration.d.ts +0 -7
- package/lib/utilities/choice/choices.d.ts +0 -23
- package/lib/utilities/decorators/liveQuery.d.ts +0 -10
- package/lib/utilities/decorators/watch.d.ts +0 -14
- package/lib/utilities/drag-drop/drag-drop-api.d.ts +0 -91
- package/lib/utilities/drag-drop/drag-drop-interaction-mixin.d.ts +0 -5
- package/lib/utilities/drag-drop/draggables-mixin.d.ts +0 -0
- package/lib/utilities/drag-drop/droppables-mixin.d.ts +0 -6
- package/lib/utilities/drag-drop/flippables-mixin.d.ts +0 -8
- package/lib/utilities/drag-drop/index.d.ts +0 -4
- package/lib/utilities/element/qti-element.d.ts +0 -6
- package/lib/utilities/hotspots/hotspot.d.ts +0 -2
- package/lib/utilities/interaction/interaction.d.ts +0 -14
- package/lib/utilities/interaction/interaction.interface.d.ts +0 -8
- package/lib/utilities/reset-styles/reset-shadowroot-styles.d.ts +0 -1
- package/lib/utilities/scale-to-fit/scale-to-fit.mixin.d.ts +0 -6
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Interaction } from '../../../utilities/interaction/interaction';
|
|
2
|
-
import { ResponseType } from '../../../qti-utilities/ExpressionResult';
|
|
3
|
-
import './qti-slider-interaction.scss';
|
|
4
|
-
export declare class QtiSliderInteraction extends Interaction {
|
|
5
|
-
private _knob;
|
|
6
|
-
private _rail;
|
|
7
|
-
value: number;
|
|
8
|
-
stepLabel: boolean;
|
|
9
|
-
reverse: boolean;
|
|
10
|
-
private _min;
|
|
11
|
-
set min(value: number);
|
|
12
|
-
get min(): number;
|
|
13
|
-
private _max;
|
|
14
|
-
set max(value: number);
|
|
15
|
-
get max(): number;
|
|
16
|
-
private _step;
|
|
17
|
-
set step(value: number);
|
|
18
|
-
get step(): number;
|
|
19
|
-
_handleDisabledChange: (old: any, disabled: any) => void;
|
|
20
|
-
_handleReadonlyChange: (old: any, readonly: any) => void;
|
|
21
|
-
reset(): void;
|
|
22
|
-
validate(): boolean;
|
|
23
|
-
set response(myResponse: ResponseType);
|
|
24
|
-
static styles: import("lit").CSSResult[];
|
|
25
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
26
|
-
connectedCallback(): void;
|
|
27
|
-
private _onTouchMove;
|
|
28
|
-
private _onMouseDown;
|
|
29
|
-
/** calculateValue gets x position and compares this with the total width in pixels */
|
|
30
|
-
private calculateValue;
|
|
31
|
-
private getPositionFromEvent;
|
|
32
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export * from "./qti-responseprocessing/qti-responseprocessing";
|
|
2
|
-
export * from "./qti-rule/qti-responsecondition/qti-responsecondition";
|
|
3
|
-
export * from "./qti-responseelse/qti-responseelse";
|
|
4
|
-
export * from "./qti-responseelse/qti-responseif/qti-responseif";
|
|
5
|
-
export * from "./qti-responseelse/qti-responseif/qti-responseelseif/qti-responseelseif";
|
|
6
|
-
export * from "./qti-expression/qti-mapresponse/qti-mapresponse";
|
|
7
|
-
export * from "./qti-rule/qti-setoutcomevalue/qti-setoutcomevalue";
|
|
8
|
-
export * from "./qti-expression/qti-correct/qti-correct";
|
|
9
|
-
export * from "./qti-expression/qti-variable/qti-variable";
|
|
10
|
-
export * from "./qti-expression/qti-match/qti-match";
|
|
11
|
-
export * from "./qti-expression/qti-basevalue/qti-basevalue";
|
|
12
|
-
export * from "./qti-expression/qti-contains/qti-contains";
|
|
13
|
-
export * from "./qti-expression/qti-gte/qti-gte";
|
|
14
|
-
export * from "./qti-expression/qti-multiple/qti-multiple";
|
|
15
|
-
export * from "./qti-expression/qti-and/qti-and";
|
|
16
|
-
export * from "./qti-expression/qti-or/qti-or";
|
|
17
|
-
export * from "./qti-expression/qti-is-null/qti-is-null";
|
|
18
|
-
export * from "./qti-expression/qti-expression";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Calculate } from '../../../../qti-utilities/ExpressionResult';
|
|
2
|
-
import { QtiExpression } from '../qti-expression';
|
|
3
|
-
export declare class QtiAnd extends QtiExpression implements Calculate {
|
|
4
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
5
|
-
calculate(): boolean;
|
|
6
|
-
private static calculate;
|
|
7
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Calculate, ResponseType } from "../../../../qti-utilities/ExpressionResult";
|
|
2
|
-
import { QtiExpression } from "../qti-expression";
|
|
3
|
-
export declare class QtiBaseValue extends QtiExpression implements Calculate {
|
|
4
|
-
calculate(): ResponseType;
|
|
5
|
-
private static calculate;
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import QtiElement from '../../../utilities/element/qti-element';
|
|
2
|
-
import { ResponseType } from '../../../qti-utilities/ExpressionResult';
|
|
3
|
-
export declare class QtiExpression extends QtiElement {
|
|
4
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
5
|
-
calculate(): ResponseType;
|
|
6
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Calculate } from '../../../../qti-utilities/ExpressionResult';
|
|
2
|
-
import { QtiExpression } from '../qti-expression';
|
|
3
|
-
export declare class QtiOr extends QtiExpression implements Calculate {
|
|
4
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
5
|
-
calculate(): boolean;
|
|
6
|
-
private static calculate;
|
|
7
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Calculate } from "../../../../qti-utilities/ExpressionResult";
|
|
2
|
-
import { QtiExpression } from "../qti-expression";
|
|
3
|
-
export declare class QtiVariable extends QtiExpression implements Calculate {
|
|
4
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
5
|
-
calculate(): import("../../../../qti-utilities/ExpressionResult").ResponseType;
|
|
6
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import { ResponseType } from '../../../qti-utilities/ExpressionResult';
|
|
3
|
-
import { QtiRule } from '../qti-rule/qti-rule';
|
|
4
|
-
export declare class QtiResponseElse extends LitElement {
|
|
5
|
-
debugCalculateResult: ResponseType;
|
|
6
|
-
static get properties(): {
|
|
7
|
-
debugCalculateResult: {
|
|
8
|
-
type: ObjectConstructor;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
12
|
-
calculate(): boolean;
|
|
13
|
-
getSubRules(): QtiRule[];
|
|
14
|
-
process(): void;
|
|
15
|
-
}
|
package/lib/qti-base/qti-responseprocessing/qti-responseelse/qti-responseif/qti-responseif.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { QtiRule } from '../../qti-rule/qti-rule';
|
|
2
|
-
import { QtiResponseElse } from "../qti-responseelse";
|
|
3
|
-
export declare class QtiResponseIf extends QtiResponseElse {
|
|
4
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
5
|
-
calculate(): boolean;
|
|
6
|
-
getSubRules(): QtiRule[];
|
|
7
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import QtiElement from '../../utilities/element/qti-element';
|
|
2
|
-
import { ContextConsumer } from '@lit-labs/context';
|
|
3
|
-
import './qti-rubric-block.scss';
|
|
4
|
-
export declare class qtiRubricBlock extends QtiElement {
|
|
5
|
-
id: any;
|
|
6
|
-
use: 'instructions' | 'scoring' | 'navigation';
|
|
7
|
-
view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';
|
|
8
|
-
classNames: any;
|
|
9
|
-
handleclassNamesChange(old: any, disabled: boolean): void;
|
|
10
|
-
static styles: import("lit").CSSResult;
|
|
11
|
-
logger: ContextConsumer<{
|
|
12
|
-
__context__: import("../../../lab/qti-context/qti-context").Logger;
|
|
13
|
-
}, this>;
|
|
14
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
15
|
-
connectedCallback(): void;
|
|
16
|
-
}
|
package/lib/qti-base/qti-variabledeclaration/qti-responsedeclaration/qti-responsedeclaration.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { QtiVariableDeclaration } from '../qti-variabledeclaration';
|
|
2
|
-
export declare class QtiResponseDeclaration extends QtiVariableDeclaration {
|
|
3
|
-
baseType: string;
|
|
4
|
-
identifier: string;
|
|
5
|
-
cardinality: string;
|
|
6
|
-
connectedCallback(): void;
|
|
7
|
-
private get correctResponse();
|
|
8
|
-
private get mapping();
|
|
9
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare const Events: {
|
|
2
|
-
ON_OUTCOME_CHANGED: string;
|
|
3
|
-
ON_INTERACTION_CHANGED: string;
|
|
4
|
-
ON_REGISTER_VARIABLE: string;
|
|
5
|
-
ON_REGISTER_FEEDBACK: string;
|
|
6
|
-
ON_REGISTER_INTERACTION: string;
|
|
7
|
-
ON_REGISTER_CHOICE: string;
|
|
8
|
-
ON_REGISTER_HOTSPOT: string;
|
|
9
|
-
ON_LOOSE_CHOICE: string;
|
|
10
|
-
ON_INTERACTION_RESPONSE: string;
|
|
11
|
-
ON_DROPDOWN_SELECTED: string;
|
|
12
|
-
ON_CHOICE_ELEMENT_SELECTED: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const Status: {
|
|
15
|
-
EMPTY: string;
|
|
16
|
-
USER: string;
|
|
17
|
-
FEEDBACK: string;
|
|
18
|
-
EXPECTED: string;
|
|
19
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { QtiVariableJSON, ResponseInteraction, ResponseType } from "./ExpressionResult";
|
|
2
|
-
export declare type OutcomeChangedDetails = {
|
|
3
|
-
item: string;
|
|
4
|
-
outcomeIdentifier: string;
|
|
5
|
-
value: ResponseType;
|
|
6
|
-
};
|
|
7
|
-
export declare type InteractionChangedDetails = ResponseInteraction<QtiVariableJSON>;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export interface directedPair {
|
|
2
|
-
destination: string;
|
|
3
|
-
source: string;
|
|
4
|
-
}
|
|
5
|
-
export interface ResponseInteraction<T> {
|
|
6
|
-
responseIdentifier: string;
|
|
7
|
-
responses: T;
|
|
8
|
-
}
|
|
9
|
-
export interface ResponseItem<T> {
|
|
10
|
-
item: string;
|
|
11
|
-
interaction: ResponseInteraction<T>;
|
|
12
|
-
}
|
|
13
|
-
export interface InputResponseFormat<T> {
|
|
14
|
-
item: string;
|
|
15
|
-
interactions: ResponseInteraction<T>[];
|
|
16
|
-
}
|
|
17
|
-
export interface Calculate {
|
|
18
|
-
calculate: () => ResponseType;
|
|
19
|
-
}
|
|
20
|
-
export declare type QtiVariableJSON = {
|
|
21
|
-
[K in 'list' | 'base']?: {
|
|
22
|
-
[Ka in 'boolean' | 'integer' | 'float' | 'string' | 'pair' | 'directedPair' | 'identifier']?: ResponseType;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export declare type float = number;
|
|
26
|
-
export declare type integer = number;
|
|
27
|
-
export declare type ResponseType = boolean | directedPair | float | integer | string | ResponseType[];
|
|
28
|
-
export declare enum BaseType {
|
|
29
|
-
boolean = "boolean",
|
|
30
|
-
directedPair = "directedPair",
|
|
31
|
-
float = "float",
|
|
32
|
-
integer = "integer",
|
|
33
|
-
string = "string",
|
|
34
|
-
identifier = "identifier",
|
|
35
|
-
pair = "pair"
|
|
36
|
-
}
|
|
37
|
-
export declare type Multiple = Array<ResponseType>;
|
|
38
|
-
export declare type Ordered = Array<ResponseType>;
|
|
39
|
-
export declare enum Cardinality {
|
|
40
|
-
multiple = "multiple",
|
|
41
|
-
ordered = "ordered",
|
|
42
|
-
single = "single"
|
|
43
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BaseType, Cardinality, ResponseType } from './ExpressionResult';
|
|
2
|
-
import { VariableDeclaration } from './VariableDeclaration';
|
|
3
|
-
export declare class OutcomeVariable implements VariableDeclaration {
|
|
4
|
-
identifier: string;
|
|
5
|
-
cardinality: Cardinality;
|
|
6
|
-
baseType: BaseType;
|
|
7
|
-
value: ResponseType;
|
|
8
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { BaseType, Cardinality, QtiVariableJSON, ResponseType } from "./ExpressionResult";
|
|
2
|
-
import { VariableDeclaration } from "./VariableDeclaration";
|
|
3
|
-
export declare class ResponseVariable implements VariableDeclaration {
|
|
4
|
-
private _candidateResponse;
|
|
5
|
-
private _mapping;
|
|
6
|
-
private _correctResponse;
|
|
7
|
-
private _cardinality;
|
|
8
|
-
private _identifier;
|
|
9
|
-
private _basetype;
|
|
10
|
-
private _qtiVariable;
|
|
11
|
-
static getCandidateResponse(value: QtiVariableJSON): any;
|
|
12
|
-
constructor({ mapping, correctResponse, cardinality, baseType, identifier }: {
|
|
13
|
-
mapping: any;
|
|
14
|
-
correctResponse: any;
|
|
15
|
-
cardinality: any;
|
|
16
|
-
baseType: any;
|
|
17
|
-
identifier: any;
|
|
18
|
-
});
|
|
19
|
-
get mapping(): Map<string, number>;
|
|
20
|
-
get correctResponse(): BaseType;
|
|
21
|
-
get cardinality(): Cardinality;
|
|
22
|
-
get baseType(): BaseType;
|
|
23
|
-
get identifier(): string;
|
|
24
|
-
get value(): ResponseType;
|
|
25
|
-
set value(val: ResponseType);
|
|
26
|
-
set qtiVariable(value: QtiVariableJSON);
|
|
27
|
-
get qtiVariable(): QtiVariableJSON;
|
|
28
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const matchCorrect = "<qti-response-processing>\n <qti-response-condition>\n <qti-response-if>\n <qti-match>\n <qti-variable identifier=\"RESPONSE\"></qti-variable>\n <qti-correct identifier=\"RESPONSE\"></qti-correct>\n </qti-match>\n <qti-set-outcome-value identifier=\"SCORE\">\n <qti-base-value base-type=\"float\">1</qti-base-value>\n </qti-set-outcome-value>\n </qti-response-if>\n <qti-response-else>\n <qti-set-outcome-value identifier=\"SCORE\">\n <qti-base-value base-type=\"float\">0</qti-base-value>\n </qti-set-outcome-value>\n </qti-response-else>\n </qti-response-condition>\n</qti-response-processing>";
|
|
2
|
-
export declare const mapResponse = "<qti-response-processing>\n <qti-response-condition>\n <qti-response-if>\n <qti-is-null>\n <qti-variable identifier=\"RESPONSE\"></qti-variable>\n </qti-is-null>\n <qti-set-outcome-value identifier=\"SCORE\">\n <qti-base-value base-type=\"float\">0.0</qti-base-value>\n </qti-set-outcome-value>\n </qti-response-if>\n <qti-response-else>\n <qti-set-outcome-value identifier=\"SCORE\">\n <qti-map-response identifier=\"RESPONSE\"> </qti-map-response>\n </qti-set-outcome-value>\n </qti-response-else>\n </qti-response-condition>\n</qti-response-processing>";
|
|
3
|
-
export declare const mapResponsePoint = "<qti-response-processing>\n <qti-response-condition>\n <qti-response-if>\n <qti-is-null>\n <qti-variable identifier=\"RESPONSE\"></qti-variable>\n </qti-is-null>\n <qti-set-outcome-value identifier=\"SCORE\">\n <qti-base-value base-type=\"float\">0</qti-base-value>\n </qti-set-outcome-value>\n </qti-response-if>\n <qti-response-else>\n <qti-set-outcome-value identifier=\"SCORE\">\n <qti-map-response-point identifier=\"RESPONSE\"></qti-map-response-point>\n </qti-set-outcome-value>\n </qti-response-else>\n </qti-response-condition>\n</qti-response-processing>";
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ResponseType } from '../../qti-utilities/ExpressionResult';
|
|
2
|
-
import { QtiChoice } from '../../qti-base/qti-choice/qti-choice';
|
|
3
|
-
import { Interaction } from '../interaction/interaction';
|
|
4
|
-
export declare class Choices extends Interaction {
|
|
5
|
-
protected _choiceElements: QtiChoice[];
|
|
6
|
-
private _minChoices;
|
|
7
|
-
private _maxChoices;
|
|
8
|
-
_handleDisabledChange: (old: any, disabled: any) => void;
|
|
9
|
-
_handleReadonlyChange: (old: any, readonly: any) => void;
|
|
10
|
-
_handleMaxChoicesChange: () => void;
|
|
11
|
-
constructor();
|
|
12
|
-
reset(): void;
|
|
13
|
-
validate(): boolean;
|
|
14
|
-
set response(myResponse: ResponseType);
|
|
15
|
-
connectedCallback(): void;
|
|
16
|
-
disconnectedCallback(): void;
|
|
17
|
-
private _registerChoiceElement;
|
|
18
|
-
private _looseChoiceElement;
|
|
19
|
-
private _determineInputType;
|
|
20
|
-
private _setInputType;
|
|
21
|
-
private _choiceElementSelectedHandler;
|
|
22
|
-
private _choiceElementSelected;
|
|
23
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { LitElement } from 'lit';
|
|
2
|
-
declare type UpdateHandler = (prev?: unknown, next?: unknown) => void;
|
|
3
|
-
declare type NonUndefined<A> = A extends undefined ? never : A;
|
|
4
|
-
declare type UpdateHandlerFunctionKeys<T extends object> = {
|
|
5
|
-
[K in keyof T]-?: NonUndefined<T[K]> extends UpdateHandler ? K : never;
|
|
6
|
-
}[keyof T];
|
|
7
|
-
interface LiveQueryOptions {
|
|
8
|
-
}
|
|
9
|
-
export declare function liveQuery(querySelector: string, options?: LiveQueryOptions): <ElemClass extends LitElement>(proto: ElemClass, decoratedFnName: UpdateHandlerFunctionKeys<ElemClass>) => void;
|
|
10
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { LitElement } from 'lit';
|
|
2
|
-
declare type UpdateHandler = (prev?: unknown, next?: unknown) => void;
|
|
3
|
-
declare type NonUndefined<A> = A extends undefined ? never : A;
|
|
4
|
-
declare type UpdateHandlerFunctionKeys<T extends object> = {
|
|
5
|
-
[K in keyof T]-?: NonUndefined<T[K]> extends UpdateHandler ? K : never;
|
|
6
|
-
}[keyof T];
|
|
7
|
-
interface WatchOptions {
|
|
8
|
-
/**
|
|
9
|
-
* If true, will only start watching after the initial update/render
|
|
10
|
-
*/
|
|
11
|
-
waitUntilFirstUpdate?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare function watch(propName: string, options?: WatchOptions): <ElemClass extends LitElement>(proto: ElemClass, decoratedFnName: UpdateHandlerFunctionKeys<ElemClass>) => void;
|
|
14
|
-
export {};
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020 Jonas Jelonek <jonas.jelonek@protonmail.ch>
|
|
3
|
-
* https://github.com/jonasjelonek/TouchDragAndDrop
|
|
4
|
-
*/
|
|
5
|
-
export declare class TouchDragAndDrop {
|
|
6
|
-
_touchBegin: number;
|
|
7
|
-
_touchDown: any;
|
|
8
|
-
_lastClick: number;
|
|
9
|
-
_canDrag: boolean;
|
|
10
|
-
_dragSrc: any;
|
|
11
|
-
_dragCopy: any;
|
|
12
|
-
_touchEndCalled: boolean;
|
|
13
|
-
_dragRunning: boolean;
|
|
14
|
-
_dataTransfer: {
|
|
15
|
-
data: {};
|
|
16
|
-
setData: (type: any, val: any) => void;
|
|
17
|
-
getData: (type: any) => any;
|
|
18
|
-
effectAllowed: string;
|
|
19
|
-
};
|
|
20
|
-
_copyOffset: {
|
|
21
|
-
x: number;
|
|
22
|
-
y: number;
|
|
23
|
-
};
|
|
24
|
-
_lastTarget: any;
|
|
25
|
-
_currentDropContainer: any;
|
|
26
|
-
_handleClick: boolean;
|
|
27
|
-
_DBLCLICKDELAY: number;
|
|
28
|
-
_CONTEXTMENUDELAY: number;
|
|
29
|
-
_DRAGDELTA: number;
|
|
30
|
-
_COPYOPACITY: number;
|
|
31
|
-
static _instance: TouchDragAndDrop;
|
|
32
|
-
copyStylesDragClone: boolean;
|
|
33
|
-
dragOnClick: boolean;
|
|
34
|
-
constructor();
|
|
35
|
-
addDraggables(draggables: Element[]): void;
|
|
36
|
-
/**
|
|
37
|
-
* Callback for touchstart event listener.
|
|
38
|
-
* @param {TouchEvent} e
|
|
39
|
-
*/
|
|
40
|
-
_touchStart(e: any): void;
|
|
41
|
-
/**
|
|
42
|
-
* Callback for touchmove event listener.
|
|
43
|
-
* @param {TouchEvent} e
|
|
44
|
-
*/
|
|
45
|
-
_touchMove(e: any): void;
|
|
46
|
-
createDragCopy: (e: any, _touches: {
|
|
47
|
-
clientX: number;
|
|
48
|
-
clientY: number;
|
|
49
|
-
}) => void;
|
|
50
|
-
/**
|
|
51
|
-
* Callback for touchend event listener.
|
|
52
|
-
* @param {TouchEvent} e
|
|
53
|
-
*/
|
|
54
|
-
_touchEnd(e: any): void;
|
|
55
|
-
/**
|
|
56
|
-
* Callback for touchcancel event listener, in case browser supports this.
|
|
57
|
-
* @param {TouchEvent} e
|
|
58
|
-
*/
|
|
59
|
-
_touchCancel(e: any): void;
|
|
60
|
-
/**
|
|
61
|
-
* Determines the next droppable element at current point.
|
|
62
|
-
* @param {Object} pt
|
|
63
|
-
*/
|
|
64
|
-
_findDroppable(event: any): any;
|
|
65
|
-
_getPoint(event: any, page?: any): {
|
|
66
|
-
x: any;
|
|
67
|
-
y: any;
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* Calculates the offset for displaying the drag copy to have a seamless dragging.
|
|
71
|
-
* @param {Touch} touch The current touch.
|
|
72
|
-
*/
|
|
73
|
-
_calculateDragCopyPosition(touch: any): void;
|
|
74
|
-
/**
|
|
75
|
-
* Calculates the pixel delta between first touch and the current touch position.
|
|
76
|
-
* @param {Object} touch
|
|
77
|
-
*/
|
|
78
|
-
_getDelta(touch: any): number;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @param {Element} e The event's target element.
|
|
82
|
-
* @param {string} eventType The type of the event.
|
|
83
|
-
* @param {bool} bubble Sets whether the event should bubble.
|
|
84
|
-
*/
|
|
85
|
-
_dispatchEvent(e: any, eventType: any, bubble?: boolean): boolean;
|
|
86
|
-
/**
|
|
87
|
-
* Resets all variables and prepares for new Drag and Drop.
|
|
88
|
-
*/
|
|
89
|
-
_reset(): void;
|
|
90
|
-
private getPositionFromEvent;
|
|
91
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import { IInteraction } from '../interaction/interaction.interface';
|
|
3
|
-
declare type Constructor<T> = new (...args: any[]) => T;
|
|
4
|
-
export declare const DragDropInteractionMixin: <T extends Constructor<LitElement>>(superClass: T, draggablesSelector: string, droppablesInShadowRoot: boolean, droppablesSelector: string) => Constructor<IInteraction> & T;
|
|
5
|
-
export {};
|
|
File without changes
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
declare type Constructor<T> = new (...args: any[]) => T;
|
|
3
|
-
declare class DroppablesInterface {
|
|
4
|
-
}
|
|
5
|
-
export declare const DroppablesMixin: <T extends Constructor<LitElement>>(superClass: T, droppablesInShadowRoot: boolean, droppablesSelector: string) => Constructor<DroppablesInterface> & T;
|
|
6
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
declare type Constructor<T> = new (...args: any[]) => T;
|
|
3
|
-
export declare class FlippablesInterface {
|
|
4
|
-
connectedCallback(): void;
|
|
5
|
-
disconnectedCallback(): void;
|
|
6
|
-
}
|
|
7
|
-
export declare const FlippablesMixin: <T extends Constructor<LitElement>>(superClass: T, droppablesSel: string, draggablesSel: string) => Constructor<FlippablesInterface> & T;
|
|
8
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import QtiElement from '../element/qti-element';
|
|
2
|
-
import { QtiVariableJSON } from '../../qti-utilities/ExpressionResult';
|
|
3
|
-
export declare abstract class Interaction extends QtiElement {
|
|
4
|
-
responseIdentifier: string;
|
|
5
|
-
/** disabled should be exposed to the attributes and accessible as property */
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
/** readonly should be exposed to the attributes and accessible as property */
|
|
8
|
-
readonly: boolean;
|
|
9
|
-
abstract reset(): any;
|
|
10
|
-
abstract validate(): boolean;
|
|
11
|
-
abstract set response(val: any);
|
|
12
|
-
connectedCallback(): void;
|
|
13
|
-
saveResponse(value: QtiVariableJSON): void;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const resetCss: import("lit").CSSResult;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
declare type Constructor<T> = new (...args: any[]) => T;
|
|
3
|
-
export declare class ScaleToFitInterface {
|
|
4
|
-
}
|
|
5
|
-
export declare const ScaleToFitMixin: <T extends Constructor<LitElement>>(superClass: T, scaleSelector: string) => Constructor<ScaleToFitInterface> & T;
|
|
6
|
-
export {};
|