@citolab/qti-components 3.0.36
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/index.cjs +341 -0
- package/index.css +16965 -0
- package/index.d.ts +47 -0
- package/index.js +341 -0
- package/lab/qti-api/qti-api.stories.d.ts +7 -0
- package/lab/qti-custom/qti-custom-operator/qti-custom-operator-levenshtein.d.ts +11 -0
- package/lab/qti-custom/qti-custom-operator/qti-custom-operator-numeric-parse-nl.d.ts +11 -0
- package/lab/qti-custom/qti-custom-operator/qti-custom-operator-numeric.d.ts +6 -0
- package/lab/qti-custom/qti-custom-operator/qti-custom-operator-remove-spaces.d.ts +6 -0
- package/lab/qti-custom/qti-custom-operator/qti-custom-operator-trim.d.ts +6 -0
- package/lab/qti-custom/qti-custom-operator/qti-custom-operator.stories.d.ts +12 -0
- package/lab/qti-dashboard/qti-item-dashboard.stories.d.ts +8 -0
- package/lab/qti-item/qti-item.d.ts +30 -0
- package/lab/qti-item/qti-item.stories.d.ts +8 -0
- package/lab/qti-test/qti-test-buttons.d.ts +1 -0
- package/lab/qti-test/qti-test.d.ts +40 -0
- package/lab/qti-test/qti-test.stories.d.ts +9 -0
- package/lib/qti-base/qti-assessment-item/qti-assessment-item.d.ts +43 -0
- package/lib/qti-base/qti-choice/qti-choice.d.ts +34 -0
- package/lib/qti-base/qti-choice/qti-hottext/qti-hottext.d.ts +9 -0
- package/lib/qti-base/qti-choice/qti-simple-choice/qti-simple-choice.d.ts +9 -0
- package/lib/qti-base/qti-feedback/qti-feedback-inline/qti-feedback-inline.d.ts +5 -0
- package/lib/qti-base/qti-feedback/qti-feedback.d.ts +30 -0
- package/lib/qti-base/qti-feedback/qti-feedback.stories.d.ts +8 -0
- package/lib/qti-base/qti-feedback/qti-modal-feedback/qti-modal-feedback.d.ts +5 -0
- package/lib/qti-base/qti-interaction/qti-choice-interaction/qti-choice-interaction.d.ts +11 -0
- package/lib/qti-base/qti-interaction/qti-choice-interaction/qti-choice-interaction.stories.d.ts +45 -0
- package/lib/qti-base/qti-interaction/qti-extended-text-interaction/qti-extended-text-interaction.d.ts +41 -0
- package/lib/qti-base/qti-interaction/qti-extended-text-interaction/qti-extended-text-interaction.stories.d.ts +9 -0
- package/lib/qti-base/qti-interaction/qti-hottext-interaction/qti-hottext-interaction.d.ts +6 -0
- package/lib/qti-base/qti-interaction/qti-hottext-interaction/qti-hottext-interaction.stories.d.ts +20 -0
- package/lib/qti-base/qti-interaction/qti-inline-choice-interaction/qti-inline-choice-interaction.d.ts +27 -0
- package/lib/qti-base/qti-interaction/qti-inline-choice-interaction/qti-inline-choice-interaction.stories.d.ts +43 -0
- package/lib/qti-base/qti-interaction/qti-text-entry-interaction/qti-text-entry-interaction.d.ts +34 -0
- package/lib/qti-base/qti-interaction/qti-text-entry-interaction/qti-text-entry-interaction.stories.d.ts +31 -0
- package/lib/qti-base/qti-item-body/qti-item-body.d.ts +4 -0
- package/lib/qti-base/qti-preview/qti-associable-hotspot.d.ts +6 -0
- package/lib/qti-base/qti-preview/qti-associate-interaction/qti-associate-interaction.d.ts +11 -0
- package/lib/qti-base/qti-preview/qti-associate-interaction/qti-associate-interaction.stories.d.ts +7 -0
- package/lib/qti-base/qti-preview/qti-associate-interaction/qti-simple-associable-choice.d.ts +4 -0
- package/lib/qti-base/qti-preview/qti-custom-interaction/qti-portable-custom-interaction.d.ts +34 -0
- package/lib/qti-base/qti-preview/qti-custom-interaction/qti-portable-custom-interaction.stories.d.ts +7 -0
- package/lib/qti-base/qti-preview/qti-gap-match-interaction/qti-gap-match-interaction.d.ts +8 -0
- package/lib/qti-base/qti-preview/qti-gap-match-interaction/qti-gap-match-interaction.stories.d.ts +31 -0
- package/lib/qti-base/qti-preview/qti-gap-match-interaction/qti-gap-text.d.ts +2 -0
- package/lib/qti-base/qti-preview/qti-gap-match-interaction/qti-gap.d.ts +2 -0
- package/lib/qti-base/qti-preview/qti-graphic-associate-interaction/qti-graphic-associate-interaction.d.ts +10 -0
- package/lib/qti-base/qti-preview/qti-graphic-associate-interaction/qti-graphic-associate-interaction.stories.d.ts +7 -0
- package/lib/qti-base/qti-preview/qti-graphic-gap-match-interaction/qti-gap-img.d.ts +3 -0
- package/lib/qti-base/qti-preview/qti-graphic-gap-match-interaction/qti-graphic-gap-match-interaction.d.ts +11 -0
- package/lib/qti-base/qti-preview/qti-graphic-gap-match-interaction/qti-graphic-gap-match-interaction.stories.d.ts +26 -0
- package/lib/qti-base/qti-preview/qti-graphic-order-interaction/qti-graphic-order-interaction.d.ts +11 -0
- package/lib/qti-base/qti-preview/qti-graphic-order-interaction/qti-graphic-order-interaction.stories.d.ts +7 -0
- package/lib/qti-base/qti-preview/qti-hotspot-choice.d.ts +5 -0
- package/lib/qti-base/qti-preview/qti-hotspot-interaction/qti-hotspot-interaction.d.ts +9 -0
- package/lib/qti-base/qti-preview/qti-hotspot-interaction/qti-hotspot-interaction.stories.d.ts +9 -0
- package/lib/qti-base/qti-preview/qti-match-interaction/qti-match-interaction.d.ts +8 -0
- package/lib/qti-base/qti-preview/qti-match-interaction/qti-match-interaction.stories.d.ts +8 -0
- package/lib/qti-base/qti-preview/qti-media-interaction/qti-media-interaction.d.ts +19 -0
- package/lib/qti-base/qti-preview/qti-media-interaction/qti-media-interaction.stories.d.ts +25 -0
- package/lib/qti-base/qti-preview/qti-order-interaction/qti-order-interaction.d.ts +23 -0
- package/lib/qti-base/qti-preview/qti-order-interaction/qti-order-interaction.stories.d.ts +21 -0
- package/lib/qti-base/qti-preview/qti-preview-badge.d.ts +1 -0
- package/lib/qti-base/qti-preview/qti-select-point-interaction/qti-select-point-interaction.d.ts +10 -0
- package/lib/qti-base/qti-preview/qti-select-point-interaction/qti-select-point-interaction.stories.d.ts +7 -0
- package/lib/qti-base/qti-preview/qti-slider-interaction/qti-slider-interaction.d.ts +26 -0
- package/lib/qti-base/qti-preview/qti-slider-interaction/qti-slider-interaction.stories.d.ts +48 -0
- package/lib/qti-base/qti-prompt/qti-prompt.d.ts +6 -0
- package/lib/qti-base/qti-responseprocessing/index.d.ts +18 -0
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-and/qti-and.d.ts +7 -0
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-basevalue/qti-basevalue.d.ts +6 -0
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-contains/qti-contains.d.ts +6 -0
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-correct/qti-correct.d.ts +6 -0
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-expression.d.ts +6 -0
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-gte/qti-gte.d.ts +6 -0
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-is-null/qti-is-null.d.ts +6 -0
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-mapresponse/qti-mapresponse.d.ts +4 -0
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-match/qti-match.d.ts +4 -0
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-multiple/qti-multiple.d.ts +4 -0
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-or/qti-or.d.ts +7 -0
- package/lib/qti-base/qti-responseprocessing/qti-expression/qti-variable/qti-variable.d.ts +6 -0
- package/lib/qti-base/qti-responseprocessing/qti-responseelse/qti-responseelse.d.ts +15 -0
- package/lib/qti-base/qti-responseprocessing/qti-responseelse/qti-responseif/qti-responseelseif/qti-responseelseif.d.ts +4 -0
- package/lib/qti-base/qti-responseprocessing/qti-responseelse/qti-responseif/qti-responseif.d.ts +7 -0
- package/lib/qti-base/qti-responseprocessing/qti-responseprocessing/qti-responseprocessing.d.ts +7 -0
- package/lib/qti-base/qti-responseprocessing/qti-rule/qti-responsecondition/qti-responsecondition.d.ts +5 -0
- package/lib/qti-base/qti-responseprocessing/qti-rule/qti-rule.d.ts +5 -0
- package/lib/qti-base/qti-responseprocessing/qti-rule/qti-setoutcomevalue/qti-setoutcomevalue.d.ts +4 -0
- package/lib/qti-base/qti-stylesheet/qti-stylesheet.d.ts +7 -0
- package/lib/qti-base/qti-variabledeclaration/qti-outcomedeclaration/qti-outcomedeclaration.d.ts +5 -0
- package/lib/qti-base/qti-variabledeclaration/qti-responsedeclaration/qti-responsedeclaration.d.ts +24 -0
- package/lib/qti-base/qti-variabledeclaration/qti-variabledeclaration.d.ts +4 -0
- package/lib/qti-utilities/EventStrings.d.ts +18 -0
- package/lib/qti-utilities/EventTypes.d.ts +7 -0
- package/lib/qti-utilities/ExpressionResult.d.ts +43 -0
- package/lib/qti-utilities/OutcomeVariable.d.ts +8 -0
- package/lib/qti-utilities/ResponseVariable.d.ts +28 -0
- package/lib/qti-utilities/TemplateStrings.d.ts +3 -0
- package/lib/qti-utilities/VariableDeclaration.d.ts +7 -0
- package/lib/utilities/choice/choices.d.ts +23 -0
- package/lib/utilities/drag-drop/drag-drop-interaction-mixin.d.ts +5 -0
- package/lib/utilities/drag-drop/draggables-mixin.d.ts +6 -0
- package/lib/utilities/drag-drop/droppables-mixin.d.ts +6 -0
- package/lib/utilities/drag-drop/flippables-mixin.d.ts +8 -0
- package/lib/utilities/element/qti-element.d.ts +6 -0
- package/lib/utilities/hotspots/hotspot.d.ts +2 -0
- package/lib/utilities/interaction/interaction.d.ts +14 -0
- package/lib/utilities/interaction/interaction.interface.d.ts +8 -0
- package/lib/utilities/reset-styles/reset-shadowroot-styles.d.ts +1 -0
- package/lib/utilities/scale-to-fit/scale-to-fit.mixin.d.ts +6 -0
- package/lib/utilities/watch/watch.d.ts +14 -0
- package/package.json +20 -0
- package/styles/qti-classes.stories.d.ts +5 -0
- package/styles/qti-layout-styles.stories.d.ts +6 -0
- package/styles/qti-styles.stories.d.ts +5 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import './qti-graphic-gap-match-interaction';
|
|
2
|
+
import '../qti-associable-hotspot';
|
|
3
|
+
import './qti-gap-img';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: string;
|
|
7
|
+
argTypes: {
|
|
8
|
+
response: {
|
|
9
|
+
control: {
|
|
10
|
+
type: string;
|
|
11
|
+
options: string[];
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
disabled: {
|
|
15
|
+
control: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
22
|
+
export declare const Interaction: ({ response, disabled, readonly }: {
|
|
23
|
+
response?: any;
|
|
24
|
+
disabled: any;
|
|
25
|
+
readonly: any;
|
|
26
|
+
}) => import("lit-html").TemplateResult<1>;
|
package/lib/qti-base/qti-preview/qti-graphic-order-interaction/qti-graphic-order-interaction.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Choices } from '../../../utilities/choice/choices';
|
|
2
|
+
import './qti-graphic-order-interaction.scss';
|
|
3
|
+
export declare class QtiGraphicOrderInteraction extends Choices {
|
|
4
|
+
choiceOrdering: boolean;
|
|
5
|
+
static styles: import("lit").CSSResult[];
|
|
6
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
7
|
+
private setHotspotOrder;
|
|
8
|
+
private positionHotspotOnRegister;
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
disconnectedCallback(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Choices } from '../../../utilities/choice/choices';
|
|
2
|
+
import './qti-hotspot-interaction.scss';
|
|
3
|
+
export declare class QtiHotspotInteraction extends Choices {
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
6
|
+
private positionHotspotOnRegister;
|
|
7
|
+
connectedCallback(): void;
|
|
8
|
+
disconnectedCallback(): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import './qti-match-interaction.scss';
|
|
3
|
+
declare const QtiMatchInteraction_base: (new (...args: any[]) => import("../../../utilities/interaction/interaction.interface").IInteraction) & typeof LitElement;
|
|
4
|
+
export declare class QtiMatchInteraction extends QtiMatchInteraction_base {
|
|
5
|
+
static styles: import("lit").CSSResult[];
|
|
6
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
7
|
+
}
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Interaction } from '../../../utilities/interaction/interaction';
|
|
2
|
+
import './qti-media-interaction';
|
|
3
|
+
export declare class QtiMediaInteraction extends Interaction {
|
|
4
|
+
value: number;
|
|
5
|
+
reset(): void;
|
|
6
|
+
validate(): boolean;
|
|
7
|
+
set response(val: unknown);
|
|
8
|
+
static get properties(): {
|
|
9
|
+
step: {
|
|
10
|
+
type: NumberConstructor;
|
|
11
|
+
attribute: string;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
static styles: import("lit").CSSResult[];
|
|
16
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
17
|
+
constructor();
|
|
18
|
+
connectedCallback(): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import './qti-media-interaction';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: string;
|
|
5
|
+
argTypes: {
|
|
6
|
+
autostart: {
|
|
7
|
+
type: string;
|
|
8
|
+
description: string;
|
|
9
|
+
};
|
|
10
|
+
minPlays: {
|
|
11
|
+
type: string;
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
maxPlays: {
|
|
15
|
+
type: string;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
loop: {
|
|
19
|
+
type: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
25
|
+
export declare const normal: any;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import QtiElement from '../../../utilities/element/qti-element';
|
|
2
|
+
import './qti-order-interaction.scss';
|
|
3
|
+
declare const QtiOrderInteraction_base: (new (...args: any[]) => import("../../../utilities/interaction/interaction.interface").IInteraction) & typeof QtiElement;
|
|
4
|
+
export declare class QtiOrderInteraction extends QtiOrderInteraction_base {
|
|
5
|
+
childrenMap: Element[];
|
|
6
|
+
private _classNames;
|
|
7
|
+
private _orientation;
|
|
8
|
+
static layoutClass: string[];
|
|
9
|
+
static get properties(): {
|
|
10
|
+
_classNames: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
attribute: string;
|
|
13
|
+
};
|
|
14
|
+
_orientation: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
attribute: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
static styles: import("lit").CSSResult[];
|
|
20
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
21
|
+
connectedCallback(): void;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import './qti-order-interaction';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: string;
|
|
5
|
+
argTypes: {
|
|
6
|
+
layoutClass: {
|
|
7
|
+
control: {
|
|
8
|
+
type: string;
|
|
9
|
+
options: string[];
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
orientation: {
|
|
13
|
+
control: {
|
|
14
|
+
type: string;
|
|
15
|
+
options: string[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
21
|
+
export declare const Normal: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const previewBadgeStyles: import("lit").CSSResult;
|
package/lib/qti-base/qti-preview/qti-select-point-interaction/qti-select-point-interaction.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Choices } from '../../../utilities/choice/choices';
|
|
2
|
+
import './qti-select-point-interaction.scss';
|
|
3
|
+
export declare class QtiSelectPointInteraction extends Choices {
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
choiceOrdering: boolean;
|
|
6
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
7
|
+
constructor();
|
|
8
|
+
connectedCallback(): void;
|
|
9
|
+
disconnectedCallback(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Interaction } from '../../../utilities/interaction/interaction';
|
|
2
|
+
import './qti-slider-interaction.scss';
|
|
3
|
+
export declare class QtiSliderInteraction extends Interaction {
|
|
4
|
+
value: number;
|
|
5
|
+
reset(): void;
|
|
6
|
+
validate(): boolean;
|
|
7
|
+
set response(val: any);
|
|
8
|
+
private _min;
|
|
9
|
+
set min(value: number);
|
|
10
|
+
get min(): number;
|
|
11
|
+
private _max;
|
|
12
|
+
set max(value: number);
|
|
13
|
+
get max(): number;
|
|
14
|
+
private _step;
|
|
15
|
+
set step(value: number);
|
|
16
|
+
get step(): number;
|
|
17
|
+
static styles: import("lit").CSSResult[];
|
|
18
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
19
|
+
constructor();
|
|
20
|
+
firstUpdated(): void;
|
|
21
|
+
connectedCallback(): void;
|
|
22
|
+
get RAIL_WIDTH(): number;
|
|
23
|
+
_onKeyDown(event: any): void;
|
|
24
|
+
_onMouseDown(e: any): void;
|
|
25
|
+
_moveSliderTo(value: any): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import './qti-slider-interaction';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: string;
|
|
5
|
+
argTypes: {
|
|
6
|
+
min: {
|
|
7
|
+
type: string;
|
|
8
|
+
description: string;
|
|
9
|
+
};
|
|
10
|
+
max: {
|
|
11
|
+
type: string;
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
step: {
|
|
15
|
+
type: string;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
steplabel: {
|
|
19
|
+
type: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
orientation: {
|
|
23
|
+
description: string;
|
|
24
|
+
control: {
|
|
25
|
+
type: string;
|
|
26
|
+
options: string[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
reverse: {
|
|
30
|
+
type: string;
|
|
31
|
+
description: string;
|
|
32
|
+
};
|
|
33
|
+
response: {
|
|
34
|
+
type: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
readonly: {
|
|
38
|
+
type: string;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
disabled: {
|
|
42
|
+
type: string;
|
|
43
|
+
description: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export default _default;
|
|
48
|
+
export declare const normal: any;
|
|
@@ -0,0 +1,18 @@
|
|
|
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";
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
}
|
package/lib/qti-base/qti-variabledeclaration/qti-responsedeclaration/qti-responsedeclaration.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { QtiVariableDeclaration } from '../qti-variabledeclaration';
|
|
2
|
+
import { BaseType, Cardinality } from '../../../qti-utilities/ExpressionResult';
|
|
3
|
+
export declare class QtiResponseDeclaration extends QtiVariableDeclaration {
|
|
4
|
+
baseType: BaseType;
|
|
5
|
+
identifier: string;
|
|
6
|
+
cardinality: Cardinality;
|
|
7
|
+
static get properties(): {
|
|
8
|
+
baseType: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
attribute: string;
|
|
11
|
+
};
|
|
12
|
+
identifier: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
attribute: string;
|
|
15
|
+
};
|
|
16
|
+
cardinality: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
attribute: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
connectedCallback(): void;
|
|
22
|
+
private get correctResponse();
|
|
23
|
+
private get mapping();
|
|
24
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const Events: {
|
|
2
|
+
ON_OUTCOME_CHANGED: string;
|
|
3
|
+
ON_INTERACTION_CHANGED: string;
|
|
4
|
+
ON_REGISTER_FEEDBACK: string;
|
|
5
|
+
ON_REGISTER_INTERACTION: string;
|
|
6
|
+
ON_REGISTER_CHOICE: string;
|
|
7
|
+
ON_REGISTER_HOTSPOT: string;
|
|
8
|
+
ON_LOOSE_CHOICE: string;
|
|
9
|
+
ON_INTERACTION_RESPONSE: string;
|
|
10
|
+
ON_DROPDOWN_SELECTED: string;
|
|
11
|
+
ON_CHOICE_ELEMENT_SELECTED: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const Status: {
|
|
14
|
+
EMPTY: string;
|
|
15
|
+
USER: string;
|
|
16
|
+
FEEDBACK: string;
|
|
17
|
+
EXPECTED: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
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>;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
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>";
|