@pie-qti/assessment-player 0.1.9 → 0.1.11
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/README.md +22 -82
- package/dist/core/AssessmentPlayer.d.ts +3 -8
- package/dist/core/AssessmentPlayer.js +61 -170
- package/dist/core/AssessmentPlayer.js.map +1 -0
- package/dist/core/AssessmentSessionCoordinator.d.ts +50 -0
- package/dist/core/AssessmentSessionCoordinator.js +216 -0
- package/dist/core/AssessmentSessionCoordinator.js.map +1 -0
- package/dist/core/ItemSessionController.d.ts +0 -1
- package/dist/core/ItemSessionController.js +1 -0
- package/dist/core/ItemSessionController.js.map +1 -0
- package/dist/core/NavigationManager.d.ts +0 -1
- package/dist/core/NavigationManager.js +1 -0
- package/dist/core/NavigationManager.js.map +1 -0
- package/dist/core/StatePersistenceManager.d.ts +0 -1
- package/dist/core/StatePersistenceManager.js +1 -0
- package/dist/core/StatePersistenceManager.js.map +1 -0
- package/dist/core/TimeManager.d.ts +0 -1
- package/dist/core/TimeManager.js +1 -0
- package/dist/core/TimeManager.js.map +1 -0
- package/dist/core/index.d.ts +0 -1
- package/dist/core/index.js +1 -0
- package/dist/core/index.js.map +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -0
- package/dist/integration/ReferenceBackendAdapter.d.ts +0 -1
- package/dist/integration/ReferenceBackendAdapter.js +1 -0
- package/dist/integration/ReferenceBackendAdapter.js.map +1 -0
- package/dist/integration/api-contract.d.ts +0 -1
- package/dist/integration/api-contract.js +1 -0
- package/dist/integration/api-contract.js.map +1 -0
- package/dist/integration/assessment-item-scorer.d.ts +0 -1
- package/dist/integration/assessment-item-scorer.js +1 -0
- package/dist/integration/assessment-item-scorer.js.map +1 -0
- package/dist/integration/index.d.ts +0 -1
- package/dist/integration/index.js +1 -0
- package/dist/integration/index.js.map +1 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/PerformanceMonitor.d.ts +0 -1
- package/dist/utils/PerformanceMonitor.js +1 -0
- package/dist/utils/PerformanceMonitor.js.map +1 -0
- package/package.json +8 -36
- package/dist/core/AssessmentPlayer.d.ts.map +0 -1
- package/dist/core/ItemSessionController.d.ts.map +0 -1
- package/dist/core/NavigationManager.d.ts.map +0 -1
- package/dist/core/StatePersistenceManager.d.ts.map +0 -1
- package/dist/core/TimeManager.d.ts.map +0 -1
- package/dist/core/index.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/integration/ReferenceBackendAdapter.d.ts.map +0 -1
- package/dist/integration/api-contract.d.ts.map +0 -1
- package/dist/integration/assessment-item-scorer.d.ts.map +0 -1
- package/dist/integration/index.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/utils/PerformanceMonitor.d.ts.map +0 -1
- package/src/ambient.d.ts +0 -55
- package/src/components/AccessibilityAnnouncer.svelte +0 -113
- package/src/components/AssessmentHeader.svelte +0 -76
- package/src/components/AssessmentShell.svelte +0 -468
- package/src/components/AssessmentTimer.svelte +0 -251
- package/src/components/ItemRenderer.svelte +0 -157
- package/src/components/ItemSessionInfo.svelte +0 -241
- package/src/components/NavigationBar.svelte +0 -146
- package/src/components/RubricDisplay.svelte +0 -185
- package/src/components/SectionMenu.svelte +0 -273
- package/src/components/SplitPaneResizer.svelte +0 -288
- package/src/components/TestFeedback.svelte +0 -147
- package/src/components/index.ts +0 -19
- package/src/core/AssessmentPlayer.ts +0 -1059
- package/src/core/ItemSessionController.ts +0 -287
- package/src/core/NavigationManager.ts +0 -126
- package/src/core/StatePersistenceManager.ts +0 -344
- package/src/core/TimeManager.ts +0 -306
- package/src/core/index.ts +0 -15
- package/src/index.ts +0 -13
- package/src/integration/ReferenceBackendAdapter.ts +0 -1382
- package/src/integration/api-contract.ts +0 -480
- package/src/integration/assessment-item-scorer.ts +0 -58
- package/src/integration/index.ts +0 -77
- package/src/svelte-shims.d.ts +0 -7
- package/src/types/index.ts +0 -59
- package/src/utils/PerformanceMonitor.ts +0 -222
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { onMount } from 'svelte';
|
|
3
|
-
import type { I18nProvider } from '@pie-qti/i18n';
|
|
4
|
-
import RubricDisplay from './RubricDisplay.svelte';
|
|
5
|
-
|
|
6
|
-
interface Props {
|
|
7
|
-
/** Left pane content (passage/stimulus) */
|
|
8
|
-
leftContent: any[];
|
|
9
|
-
/** Right pane content slot */
|
|
10
|
-
children: any;
|
|
11
|
-
/** Math typesetting function */
|
|
12
|
-
typeset?: (root: HTMLElement) => void | Promise<void>;
|
|
13
|
-
i18n?: I18nProvider;
|
|
14
|
-
/** Storage key for persisting split position */
|
|
15
|
-
storageKey?: string;
|
|
16
|
-
/** Minimum left pane percentage */
|
|
17
|
-
minLeftPct?: number;
|
|
18
|
-
/** Maximum left pane percentage */
|
|
19
|
-
maxLeftPct?: number;
|
|
20
|
-
/** Initial split percentage */
|
|
21
|
-
initialSplitPct?: number;
|
|
22
|
-
/** Callback when right pane element is ready (for scroll management) */
|
|
23
|
-
onRightPaneReady?: (element: HTMLDivElement) => void;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const {
|
|
27
|
-
leftContent,
|
|
28
|
-
children,
|
|
29
|
-
typeset,
|
|
30
|
-
i18n,
|
|
31
|
-
storageKey = 'qti22-split-pane.splitLeftPct',
|
|
32
|
-
minLeftPct = 25,
|
|
33
|
-
maxLeftPct = 75,
|
|
34
|
-
initialSplitPct = 50,
|
|
35
|
-
onRightPaneReady
|
|
36
|
-
}: Props = $props();
|
|
37
|
-
|
|
38
|
-
let splitContainerEl = $state<HTMLDivElement | null>(null);
|
|
39
|
-
let rightPaneEl = $state<HTMLDivElement | null>(null);
|
|
40
|
-
let splitLeftPct = $state<number>(50);
|
|
41
|
-
let isResizing = $state(false);
|
|
42
|
-
let hasInitializedFromProps = $state(false);
|
|
43
|
-
|
|
44
|
-
function clampPct(pct: number) {
|
|
45
|
-
return Math.min(maxLeftPct, Math.max(minLeftPct, pct));
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function saveSplitPct(pct: number) {
|
|
49
|
-
try {
|
|
50
|
-
if (typeof window === 'undefined') return;
|
|
51
|
-
window.localStorage.setItem(storageKey, String(pct));
|
|
52
|
-
} catch {
|
|
53
|
-
// ignore
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function loadSplitPct() {
|
|
58
|
-
try {
|
|
59
|
-
if (typeof window === 'undefined') return null;
|
|
60
|
-
const raw = window.localStorage.getItem(storageKey);
|
|
61
|
-
if (!raw) return null;
|
|
62
|
-
const n = Number(raw);
|
|
63
|
-
if (!Number.isFinite(n)) return null;
|
|
64
|
-
return clampPct(n);
|
|
65
|
-
} catch {
|
|
66
|
-
return null;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function updateSplitFromClientX(clientX: number) {
|
|
71
|
-
if (!splitContainerEl) return;
|
|
72
|
-
const rect = splitContainerEl.getBoundingClientRect();
|
|
73
|
-
if (rect.width <= 0) return;
|
|
74
|
-
const x = clientX - rect.left;
|
|
75
|
-
const pct = (x / rect.width) * 100;
|
|
76
|
-
splitLeftPct = clampPct(pct);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
function onSplitterPointerDown(e: PointerEvent) {
|
|
80
|
-
if (!splitContainerEl) return;
|
|
81
|
-
isResizing = true;
|
|
82
|
-
(e.currentTarget as HTMLElement | null)?.setPointerCapture?.(e.pointerId);
|
|
83
|
-
updateSplitFromClientX(e.clientX);
|
|
84
|
-
|
|
85
|
-
const move = (ev: PointerEvent) => updateSplitFromClientX(ev.clientX);
|
|
86
|
-
const up = () => {
|
|
87
|
-
isResizing = false;
|
|
88
|
-
window.removeEventListener('pointermove', move);
|
|
89
|
-
window.removeEventListener('pointerup', up);
|
|
90
|
-
window.removeEventListener('pointercancel', up);
|
|
91
|
-
saveSplitPct(splitLeftPct);
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
window.addEventListener('pointermove', move);
|
|
95
|
-
window.addEventListener('pointerup', up, { once: true });
|
|
96
|
-
window.addEventListener('pointercancel', up, { once: true });
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
function onSplitterKeyDown(e: KeyboardEvent) {
|
|
100
|
-
// Keyboard accessible resizing
|
|
101
|
-
if (e.key === 'ArrowLeft') {
|
|
102
|
-
e.preventDefault();
|
|
103
|
-
splitLeftPct = clampPct(splitLeftPct - 2);
|
|
104
|
-
saveSplitPct(splitLeftPct);
|
|
105
|
-
} else if (e.key === 'ArrowRight') {
|
|
106
|
-
e.preventDefault();
|
|
107
|
-
splitLeftPct = clampPct(splitLeftPct + 2);
|
|
108
|
-
saveSplitPct(splitLeftPct);
|
|
109
|
-
} else if (e.key === 'Home') {
|
|
110
|
-
e.preventDefault();
|
|
111
|
-
splitLeftPct = minLeftPct;
|
|
112
|
-
saveSplitPct(splitLeftPct);
|
|
113
|
-
} else if (e.key === 'End') {
|
|
114
|
-
e.preventDefault();
|
|
115
|
-
splitLeftPct = maxLeftPct;
|
|
116
|
-
saveSplitPct(splitLeftPct);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
function splitterInteractions(node: HTMLElement) {
|
|
121
|
-
const pointerDown = (e: PointerEvent) => onSplitterPointerDown(e);
|
|
122
|
-
const keyDown = (e: KeyboardEvent) => onSplitterKeyDown(e);
|
|
123
|
-
|
|
124
|
-
node.addEventListener('pointerdown', pointerDown);
|
|
125
|
-
node.addEventListener('keydown', keyDown);
|
|
126
|
-
|
|
127
|
-
return {
|
|
128
|
-
destroy() {
|
|
129
|
-
node.removeEventListener('pointerdown', pointerDown);
|
|
130
|
-
node.removeEventListener('keydown', keyDown);
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
// Load saved position on mount
|
|
136
|
-
onMount(() => {
|
|
137
|
-
const loaded = loadSplitPct();
|
|
138
|
-
if (loaded !== null) splitLeftPct = loaded;
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
// Initialize from prop (once). If there's a saved value, onMount() will override.
|
|
142
|
-
$effect(() => {
|
|
143
|
-
if (hasInitializedFromProps) return;
|
|
144
|
-
splitLeftPct = clampPct(initialSplitPct);
|
|
145
|
-
hasInitializedFromProps = true;
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
// Notify parent when right pane is ready
|
|
149
|
-
$effect(() => {
|
|
150
|
-
if (rightPaneEl && onRightPaneReady) {
|
|
151
|
-
onRightPaneReady(rightPaneEl);
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
</script>
|
|
155
|
-
|
|
156
|
-
<div
|
|
157
|
-
class:resizing={isResizing}
|
|
158
|
-
class="split-layout"
|
|
159
|
-
bind:this={splitContainerEl}
|
|
160
|
-
style={`--split-left: ${splitLeftPct}%;`}
|
|
161
|
-
>
|
|
162
|
-
<!-- Left pane (passage/stimulus) -->
|
|
163
|
-
<div class="pane pane-left">
|
|
164
|
-
<RubricDisplay blocks={leftContent} {typeset} />
|
|
165
|
-
</div>
|
|
166
|
-
|
|
167
|
-
<!-- Resizer -->
|
|
168
|
-
<!-- svelte-ignore a11y_no_noninteractive_tabindex -->
|
|
169
|
-
<div
|
|
170
|
-
class="splitter"
|
|
171
|
-
role="separator"
|
|
172
|
-
aria-orientation="vertical"
|
|
173
|
-
aria-label={i18n?.t('accessibility.resizer', 'Resize passage and question panels')}
|
|
174
|
-
aria-valuemin={minLeftPct}
|
|
175
|
-
aria-valuemax={maxLeftPct}
|
|
176
|
-
aria-valuenow={Math.round(splitLeftPct)}
|
|
177
|
-
tabindex="0"
|
|
178
|
-
use:splitterInteractions
|
|
179
|
-
>
|
|
180
|
-
<div class="splitter-grip" aria-hidden="true"></div>
|
|
181
|
-
</div>
|
|
182
|
-
|
|
183
|
-
<!-- Right pane (question) -->
|
|
184
|
-
<div class="pane pane-right" bind:this={rightPaneEl}>
|
|
185
|
-
{@render children()}
|
|
186
|
-
</div>
|
|
187
|
-
</div>
|
|
188
|
-
|
|
189
|
-
<style>
|
|
190
|
-
.split-layout {
|
|
191
|
-
display: grid;
|
|
192
|
-
--splitter-size: 16px;
|
|
193
|
-
grid-template-columns: minmax(320px, var(--split-left)) var(--splitter-size) minmax(320px, 1fr);
|
|
194
|
-
gap: 0;
|
|
195
|
-
height: 100%;
|
|
196
|
-
padding: 2rem;
|
|
197
|
-
max-width: 1400px;
|
|
198
|
-
margin: 0 auto;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.pane {
|
|
202
|
-
min-height: 0;
|
|
203
|
-
overflow: auto;
|
|
204
|
-
padding: 0 1rem;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.splitter {
|
|
208
|
-
width: var(--splitter-size);
|
|
209
|
-
cursor: col-resize;
|
|
210
|
-
display: flex;
|
|
211
|
-
align-items: center;
|
|
212
|
-
justify-content: center;
|
|
213
|
-
align-self: stretch;
|
|
214
|
-
height: 100%;
|
|
215
|
-
background: var(--color-base-200);
|
|
216
|
-
border-left: 1px solid var(--color-base-300);
|
|
217
|
-
border-right: 1px solid var(--color-base-300);
|
|
218
|
-
user-select: none;
|
|
219
|
-
touch-action: none;
|
|
220
|
-
position: relative;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.splitter:hover {
|
|
224
|
-
background: var(--color-base-300);
|
|
225
|
-
border-left-color: var(--color-base-300);
|
|
226
|
-
border-right-color: var(--color-base-300);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.splitter:focus-visible {
|
|
230
|
-
outline: 2px solid var(--color-primary);
|
|
231
|
-
outline-offset: 2px;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/* High-contrast center rail */
|
|
235
|
-
.splitter::before {
|
|
236
|
-
content: '';
|
|
237
|
-
position: absolute;
|
|
238
|
-
top: 0;
|
|
239
|
-
bottom: 0;
|
|
240
|
-
left: 50%;
|
|
241
|
-
width: 2px;
|
|
242
|
-
transform: translateX(-50%);
|
|
243
|
-
background: color-mix(in oklab, var(--color-base-content) 55%, transparent);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.splitter-grip {
|
|
247
|
-
width: 6px;
|
|
248
|
-
height: 72px;
|
|
249
|
-
border-radius: 999px;
|
|
250
|
-
background: linear-gradient(
|
|
251
|
-
to bottom,
|
|
252
|
-
color-mix(in oklab, var(--color-base-content) 15%, transparent),
|
|
253
|
-
color-mix(in oklab, var(--color-base-content) 55%, transparent),
|
|
254
|
-
color-mix(in oklab, var(--color-base-content) 15%, transparent)
|
|
255
|
-
);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.split-layout.resizing .splitter {
|
|
259
|
-
background: color-mix(in oklab, var(--color-primary) 14%, transparent);
|
|
260
|
-
border-left-color: color-mix(in oklab, var(--color-primary) 60%, transparent);
|
|
261
|
-
border-right-color: color-mix(in oklab, var(--color-primary) 60%, transparent);
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
/* Avoid accidental text selection during resize */
|
|
265
|
-
.split-layout.resizing {
|
|
266
|
-
user-select: none;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
/* Avoid extra bottom spacing in panes */
|
|
270
|
-
.pane :global(.rubric-container) {
|
|
271
|
-
margin-bottom: 0;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
@media (max-width: 768px) {
|
|
275
|
-
.split-layout {
|
|
276
|
-
grid-template-columns: 1fr;
|
|
277
|
-
padding: 1rem;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.splitter {
|
|
281
|
-
display: none;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
.pane-left {
|
|
285
|
-
max-height: 40vh;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
</style>
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
/**
|
|
3
|
-
* TestFeedback Component
|
|
4
|
-
*
|
|
5
|
-
* Displays assessment-level feedback based on outcome conditions.
|
|
6
|
-
* Shows feedback when QTI outcome conditions are met.
|
|
7
|
-
*/
|
|
8
|
-
import type { I18nProvider } from '@pie-qti/i18n';
|
|
9
|
-
|
|
10
|
-
interface FeedbackItem {
|
|
11
|
-
identifier: string;
|
|
12
|
-
content: string;
|
|
13
|
-
access: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
interface Props {
|
|
17
|
-
/** Array of visible feedback items to display */
|
|
18
|
-
feedback?: FeedbackItem[];
|
|
19
|
-
/** Callback when feedback is dismissed (if dismissable) */
|
|
20
|
-
onDismiss?: (identifier: string) => void;
|
|
21
|
-
/** Allow dismissing individual feedback items */
|
|
22
|
-
dismissable?: boolean;
|
|
23
|
-
/** CSS class for custom styling */
|
|
24
|
-
class?: string;
|
|
25
|
-
i18n?: I18nProvider;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
let {
|
|
29
|
-
feedback = [],
|
|
30
|
-
onDismiss,
|
|
31
|
-
dismissable = false,
|
|
32
|
-
class: className = '',
|
|
33
|
-
i18n
|
|
34
|
-
}: Props = $props();
|
|
35
|
-
|
|
36
|
-
// Track dismissed items
|
|
37
|
-
let dismissedItems = $state<Set<string>>(new Set());
|
|
38
|
-
|
|
39
|
-
// Filter out dismissed items
|
|
40
|
-
const visibleFeedback = $derived(
|
|
41
|
-
feedback.filter((fb) => !dismissedItems.has(fb.identifier))
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
function handleDismiss(identifier: string) {
|
|
45
|
-
dismissedItems.add(identifier);
|
|
46
|
-
onDismiss?.(identifier);
|
|
47
|
-
}
|
|
48
|
-
</script>
|
|
49
|
-
|
|
50
|
-
{#if visibleFeedback.length > 0}
|
|
51
|
-
<div class="test-feedback {className}" role="region" aria-label={i18n?.t('feedback.testFeedback') ?? 'Test feedback'}>
|
|
52
|
-
{#each visibleFeedback as item (item.identifier)}
|
|
53
|
-
<div class="feedback-item" data-identifier={item.identifier}>
|
|
54
|
-
<div class="feedback-content">
|
|
55
|
-
{@html item.content}
|
|
56
|
-
</div>
|
|
57
|
-
{#if dismissable}
|
|
58
|
-
<button
|
|
59
|
-
class="feedback-dismiss"
|
|
60
|
-
onclick={() => handleDismiss(item.identifier)}
|
|
61
|
-
aria-label={i18n?.t('feedback.closeFeedback', 'Dismiss feedback')}
|
|
62
|
-
>
|
|
63
|
-
×
|
|
64
|
-
</button>
|
|
65
|
-
{/if}
|
|
66
|
-
</div>
|
|
67
|
-
{/each}
|
|
68
|
-
</div>
|
|
69
|
-
{/if}
|
|
70
|
-
|
|
71
|
-
<style>
|
|
72
|
-
.test-feedback {
|
|
73
|
-
display: flex;
|
|
74
|
-
flex-direction: column;
|
|
75
|
-
gap: 1rem;
|
|
76
|
-
margin: 1rem 0;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.feedback-item {
|
|
80
|
-
position: relative;
|
|
81
|
-
padding: 1rem;
|
|
82
|
-
border-radius: 0.5rem;
|
|
83
|
-
background-color: var(--feedback-bg, #f0f9ff);
|
|
84
|
-
border: 1px solid var(--feedback-border, #0ea5e9);
|
|
85
|
-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.feedback-content {
|
|
89
|
-
color: var(--feedback-text, #0c4a6e);
|
|
90
|
-
line-height: 1.6;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.feedback-content :global(p) {
|
|
94
|
-
margin: 0 0 0.5rem 0;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.feedback-content :global(p:last-child) {
|
|
98
|
-
margin-bottom: 0;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.feedback-content :global(strong) {
|
|
102
|
-
font-weight: 600;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.feedback-content :global(em) {
|
|
106
|
-
font-style: italic;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.feedback-content :global(ul),
|
|
110
|
-
.feedback-content :global(ol) {
|
|
111
|
-
margin: 0.5rem 0;
|
|
112
|
-
padding-left: 1.5rem;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.feedback-content :global(li) {
|
|
116
|
-
margin: 0.25rem 0;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.feedback-dismiss {
|
|
120
|
-
position: absolute;
|
|
121
|
-
top: 0.5rem;
|
|
122
|
-
right: 0.5rem;
|
|
123
|
-
width: 2rem;
|
|
124
|
-
height: 2rem;
|
|
125
|
-
display: flex;
|
|
126
|
-
align-items: center;
|
|
127
|
-
justify-content: center;
|
|
128
|
-
border: none;
|
|
129
|
-
background: transparent;
|
|
130
|
-
color: var(--feedback-dismiss-color, #64748b);
|
|
131
|
-
font-size: 1.5rem;
|
|
132
|
-
line-height: 1;
|
|
133
|
-
cursor: pointer;
|
|
134
|
-
border-radius: 0.25rem;
|
|
135
|
-
transition: all 0.2s;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.feedback-dismiss:hover {
|
|
139
|
-
background-color: var(--feedback-dismiss-hover-bg, rgba(0, 0, 0, 0.05));
|
|
140
|
-
color: var(--feedback-dismiss-hover-color, #1e293b);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.feedback-dismiss:focus {
|
|
144
|
-
outline: 2px solid var(--feedback-dismiss-focus, #0ea5e9);
|
|
145
|
-
outline-offset: 2px;
|
|
146
|
-
}
|
|
147
|
-
</style>
|
package/src/components/index.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* QTI Assessment Player Components
|
|
3
|
-
*
|
|
4
|
-
* Reusable Svelte components for rendering assessments (multi-item tests).
|
|
5
|
-
*
|
|
6
|
-
* Import from '@pie-qti/assessment-player/components' in your Svelte app.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
export { default as AssessmentHeader } from './AssessmentHeader.svelte';
|
|
10
|
-
export { default as AssessmentShell } from './AssessmentShell.svelte';
|
|
11
|
-
export { default as AssessmentTimer } from './AssessmentTimer.svelte';
|
|
12
|
-
export { default as ItemRenderer } from './ItemRenderer.svelte';
|
|
13
|
-
export { default as ItemSessionInfo } from './ItemSessionInfo.svelte';
|
|
14
|
-
export { default as NavigationBar } from './NavigationBar.svelte';
|
|
15
|
-
export { default as RubricDisplay } from './RubricDisplay.svelte';
|
|
16
|
-
export { default as SectionMenu } from './SectionMenu.svelte';
|
|
17
|
-
export { default as SplitPaneResizer } from './SplitPaneResizer.svelte';
|
|
18
|
-
|
|
19
|
-
|