@citolab/qti-components 6.9.1-beta.48 → 6.9.1-beta.49
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.
|
@@ -96,161 +96,6 @@
|
|
|
96
96
|
}
|
|
97
97
|
]
|
|
98
98
|
},
|
|
99
|
-
{
|
|
100
|
-
"kind": "javascript-module",
|
|
101
|
-
"path": "src/lib/qti-item/index.ts",
|
|
102
|
-
"declarations": [],
|
|
103
|
-
"exports": [
|
|
104
|
-
{
|
|
105
|
-
"kind": "js",
|
|
106
|
-
"name": "*",
|
|
107
|
-
"declaration": {
|
|
108
|
-
"name": "*",
|
|
109
|
-
"package": "./qti-item"
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"kind": "js",
|
|
114
|
-
"name": "*",
|
|
115
|
-
"declaration": {
|
|
116
|
-
"name": "*",
|
|
117
|
-
"package": "./qti-item.mixin"
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
]
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"kind": "javascript-module",
|
|
124
|
-
"path": "src/lib/qti-item/qti-item.mixin.ts",
|
|
125
|
-
"declarations": [
|
|
126
|
-
{
|
|
127
|
-
"kind": "mixin",
|
|
128
|
-
"description": "",
|
|
129
|
-
"name": "QtiItemMixin",
|
|
130
|
-
"members": [],
|
|
131
|
-
"events": [
|
|
132
|
-
{
|
|
133
|
-
"name": "qti-item-connected",
|
|
134
|
-
"type": {
|
|
135
|
-
"text": "CustomEvent"
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
],
|
|
139
|
-
"attributes": [
|
|
140
|
-
{
|
|
141
|
-
"name": "identifier",
|
|
142
|
-
"type": {
|
|
143
|
-
"text": "string | undefined"
|
|
144
|
-
},
|
|
145
|
-
"fieldName": "identifier"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"name": "href",
|
|
149
|
-
"type": {
|
|
150
|
-
"text": "string | undefined"
|
|
151
|
-
},
|
|
152
|
-
"fieldName": "href"
|
|
153
|
-
}
|
|
154
|
-
],
|
|
155
|
-
"parameters": [
|
|
156
|
-
{
|
|
157
|
-
"name": "Base",
|
|
158
|
-
"type": {
|
|
159
|
-
"text": "T"
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
]
|
|
163
|
-
}
|
|
164
|
-
],
|
|
165
|
-
"exports": [
|
|
166
|
-
{
|
|
167
|
-
"kind": "js",
|
|
168
|
-
"name": "QtiItemMixin",
|
|
169
|
-
"declaration": {
|
|
170
|
-
"name": "QtiItemMixin",
|
|
171
|
-
"module": "src/lib/qti-item/qti-item.mixin.ts"
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
]
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"kind": "javascript-module",
|
|
178
|
-
"path": "src/lib/qti-item/qti-item.ts",
|
|
179
|
-
"declarations": [
|
|
180
|
-
{
|
|
181
|
-
"kind": "class",
|
|
182
|
-
"description": "",
|
|
183
|
-
"name": "QtiItem",
|
|
184
|
-
"mixins": [
|
|
185
|
-
{
|
|
186
|
-
"name": "QtiItemMixin",
|
|
187
|
-
"module": "/src/lib/qti-item/qti-item.mixin"
|
|
188
|
-
}
|
|
189
|
-
],
|
|
190
|
-
"superclass": {
|
|
191
|
-
"name": "LitElement",
|
|
192
|
-
"package": "lit"
|
|
193
|
-
},
|
|
194
|
-
"tagName": "qti-item",
|
|
195
|
-
"customElement": true,
|
|
196
|
-
"attributes": [
|
|
197
|
-
{
|
|
198
|
-
"name": "identifier",
|
|
199
|
-
"type": {
|
|
200
|
-
"text": "string | undefined"
|
|
201
|
-
},
|
|
202
|
-
"fieldName": "identifier",
|
|
203
|
-
"inheritedFrom": {
|
|
204
|
-
"name": "QtiItemMixin",
|
|
205
|
-
"module": "src/lib/qti-item/qti-item.mixin.ts"
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"name": "href",
|
|
210
|
-
"type": {
|
|
211
|
-
"text": "string | undefined"
|
|
212
|
-
},
|
|
213
|
-
"fieldName": "href",
|
|
214
|
-
"inheritedFrom": {
|
|
215
|
-
"name": "QtiItemMixin",
|
|
216
|
-
"module": "src/lib/qti-item/qti-item.mixin.ts"
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
],
|
|
220
|
-
"members": [],
|
|
221
|
-
"events": [
|
|
222
|
-
{
|
|
223
|
-
"name": "qti-item-connected",
|
|
224
|
-
"type": {
|
|
225
|
-
"text": "CustomEvent"
|
|
226
|
-
},
|
|
227
|
-
"inheritedFrom": {
|
|
228
|
-
"name": "QtiItemMixin",
|
|
229
|
-
"module": "src/lib/qti-item/qti-item.mixin.ts"
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
]
|
|
233
|
-
}
|
|
234
|
-
],
|
|
235
|
-
"exports": [
|
|
236
|
-
{
|
|
237
|
-
"kind": "js",
|
|
238
|
-
"name": "QtiItem",
|
|
239
|
-
"declaration": {
|
|
240
|
-
"name": "QtiItem",
|
|
241
|
-
"module": "src/lib/qti-item/qti-item.ts"
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
"kind": "custom-element-definition",
|
|
246
|
-
"name": "qti-item",
|
|
247
|
-
"declaration": {
|
|
248
|
-
"name": "QtiItem",
|
|
249
|
-
"module": "src/lib/qti-item/qti-item.ts"
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
]
|
|
253
|
-
},
|
|
254
99
|
{
|
|
255
100
|
"kind": "javascript-module",
|
|
256
101
|
"path": "src/lib/qti-components/index.ts",
|
|
@@ -682,6 +527,161 @@
|
|
|
682
527
|
}
|
|
683
528
|
]
|
|
684
529
|
},
|
|
530
|
+
{
|
|
531
|
+
"kind": "javascript-module",
|
|
532
|
+
"path": "src/lib/qti-item/index.ts",
|
|
533
|
+
"declarations": [],
|
|
534
|
+
"exports": [
|
|
535
|
+
{
|
|
536
|
+
"kind": "js",
|
|
537
|
+
"name": "*",
|
|
538
|
+
"declaration": {
|
|
539
|
+
"name": "*",
|
|
540
|
+
"package": "./qti-item"
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"kind": "js",
|
|
545
|
+
"name": "*",
|
|
546
|
+
"declaration": {
|
|
547
|
+
"name": "*",
|
|
548
|
+
"package": "./qti-item.mixin"
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
]
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"kind": "javascript-module",
|
|
555
|
+
"path": "src/lib/qti-item/qti-item.mixin.ts",
|
|
556
|
+
"declarations": [
|
|
557
|
+
{
|
|
558
|
+
"kind": "mixin",
|
|
559
|
+
"description": "",
|
|
560
|
+
"name": "QtiItemMixin",
|
|
561
|
+
"members": [],
|
|
562
|
+
"events": [
|
|
563
|
+
{
|
|
564
|
+
"name": "qti-item-connected",
|
|
565
|
+
"type": {
|
|
566
|
+
"text": "CustomEvent"
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
],
|
|
570
|
+
"attributes": [
|
|
571
|
+
{
|
|
572
|
+
"name": "identifier",
|
|
573
|
+
"type": {
|
|
574
|
+
"text": "string | undefined"
|
|
575
|
+
},
|
|
576
|
+
"fieldName": "identifier"
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"name": "href",
|
|
580
|
+
"type": {
|
|
581
|
+
"text": "string | undefined"
|
|
582
|
+
},
|
|
583
|
+
"fieldName": "href"
|
|
584
|
+
}
|
|
585
|
+
],
|
|
586
|
+
"parameters": [
|
|
587
|
+
{
|
|
588
|
+
"name": "Base",
|
|
589
|
+
"type": {
|
|
590
|
+
"text": "T"
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
]
|
|
594
|
+
}
|
|
595
|
+
],
|
|
596
|
+
"exports": [
|
|
597
|
+
{
|
|
598
|
+
"kind": "js",
|
|
599
|
+
"name": "QtiItemMixin",
|
|
600
|
+
"declaration": {
|
|
601
|
+
"name": "QtiItemMixin",
|
|
602
|
+
"module": "src/lib/qti-item/qti-item.mixin.ts"
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
]
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"kind": "javascript-module",
|
|
609
|
+
"path": "src/lib/qti-item/qti-item.ts",
|
|
610
|
+
"declarations": [
|
|
611
|
+
{
|
|
612
|
+
"kind": "class",
|
|
613
|
+
"description": "",
|
|
614
|
+
"name": "QtiItem",
|
|
615
|
+
"mixins": [
|
|
616
|
+
{
|
|
617
|
+
"name": "QtiItemMixin",
|
|
618
|
+
"module": "/src/lib/qti-item/qti-item.mixin"
|
|
619
|
+
}
|
|
620
|
+
],
|
|
621
|
+
"superclass": {
|
|
622
|
+
"name": "LitElement",
|
|
623
|
+
"package": "lit"
|
|
624
|
+
},
|
|
625
|
+
"tagName": "qti-item",
|
|
626
|
+
"customElement": true,
|
|
627
|
+
"attributes": [
|
|
628
|
+
{
|
|
629
|
+
"name": "identifier",
|
|
630
|
+
"type": {
|
|
631
|
+
"text": "string | undefined"
|
|
632
|
+
},
|
|
633
|
+
"fieldName": "identifier",
|
|
634
|
+
"inheritedFrom": {
|
|
635
|
+
"name": "QtiItemMixin",
|
|
636
|
+
"module": "src/lib/qti-item/qti-item.mixin.ts"
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"name": "href",
|
|
641
|
+
"type": {
|
|
642
|
+
"text": "string | undefined"
|
|
643
|
+
},
|
|
644
|
+
"fieldName": "href",
|
|
645
|
+
"inheritedFrom": {
|
|
646
|
+
"name": "QtiItemMixin",
|
|
647
|
+
"module": "src/lib/qti-item/qti-item.mixin.ts"
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
],
|
|
651
|
+
"members": [],
|
|
652
|
+
"events": [
|
|
653
|
+
{
|
|
654
|
+
"name": "qti-item-connected",
|
|
655
|
+
"type": {
|
|
656
|
+
"text": "CustomEvent"
|
|
657
|
+
},
|
|
658
|
+
"inheritedFrom": {
|
|
659
|
+
"name": "QtiItemMixin",
|
|
660
|
+
"module": "src/lib/qti-item/qti-item.mixin.ts"
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
]
|
|
664
|
+
}
|
|
665
|
+
],
|
|
666
|
+
"exports": [
|
|
667
|
+
{
|
|
668
|
+
"kind": "js",
|
|
669
|
+
"name": "QtiItem",
|
|
670
|
+
"declaration": {
|
|
671
|
+
"name": "QtiItem",
|
|
672
|
+
"module": "src/lib/qti-item/qti-item.ts"
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"kind": "custom-element-definition",
|
|
677
|
+
"name": "qti-item",
|
|
678
|
+
"declaration": {
|
|
679
|
+
"name": "QtiItem",
|
|
680
|
+
"module": "src/lib/qti-item/qti-item.ts"
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
]
|
|
684
|
+
},
|
|
685
685
|
{
|
|
686
686
|
"kind": "javascript-module",
|
|
687
687
|
"path": "src/lib/qti-loader/index.ts",
|
package/dist/item.css
CHANGED
|
@@ -2124,6 +2124,13 @@ qti-response-declaration {
|
|
|
2124
2124
|
qti-gap-match-interaction {
|
|
2125
2125
|
& qti-gap-text {
|
|
2126
2126
|
|
|
2127
|
+
&[dragging] {
|
|
2128
|
+
pointer-events: none;
|
|
2129
|
+
rotate: -2deg;
|
|
2130
|
+
box-shadow: 0 8px 12px rgb(0 0 0 / 20%),
|
|
2131
|
+
0 4px 8px rgb(0 0 0 / 10%);
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2127
2134
|
&:hover {
|
|
2128
2135
|
background-color: var(--qti-bg-gray-50);
|
|
2129
2136
|
}
|
|
@@ -2167,6 +2174,23 @@ qti-response-declaration {
|
|
|
2167
2174
|
|
|
2168
2175
|
& qti-gap {
|
|
2169
2176
|
|
|
2177
|
+
&[enabled] {
|
|
2178
|
+
background-color: var(--qti-primary-light);
|
|
2179
|
+
}
|
|
2180
|
+
|
|
2181
|
+
&[disabled] {
|
|
2182
|
+
cursor: not-allowed;
|
|
2183
|
+
background-color: var(--qti-bg-gray-100);
|
|
2184
|
+
color: var(--qti-text-gray-500);
|
|
2185
|
+
border-color: var(--qti-border-color-gray);
|
|
2186
|
+
outline: 4px solid var(--qti-bg-gray-100);
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
&[active] {
|
|
2190
|
+
border-color: var(--qti-bg-primary);
|
|
2191
|
+
background-color: var(--qti-primary-light);
|
|
2192
|
+
}
|
|
2193
|
+
|
|
2170
2194
|
display: inline-flex;
|
|
2171
2195
|
width: 8rem; /* w-32 */
|
|
2172
2196
|
&:empty::after {
|
|
@@ -2735,6 +2759,13 @@ qti-response-declaration {
|
|
|
2735
2759
|
&::part(qti-simple-choice),
|
|
2736
2760
|
& qti-simple-choice {
|
|
2737
2761
|
|
|
2762
|
+
&[dragging] {
|
|
2763
|
+
pointer-events: none;
|
|
2764
|
+
rotate: -2deg;
|
|
2765
|
+
box-shadow: 0 8px 12px rgb(0 0 0 / 20%),
|
|
2766
|
+
0 4px 8px rgb(0 0 0 / 10%);
|
|
2767
|
+
}
|
|
2768
|
+
|
|
2738
2769
|
&:hover {
|
|
2739
2770
|
background-color: var(--qti-bg-gray-50);
|
|
2740
2771
|
}
|
|
@@ -2792,8 +2823,14 @@ qti-response-declaration {
|
|
|
2792
2823
|
gap: 0.5rem; /* gap-2 */
|
|
2793
2824
|
}
|
|
2794
2825
|
|
|
2826
|
+
|
|
2827
|
+
|
|
2795
2828
|
&::part(drop-list) {
|
|
2796
2829
|
|
|
2830
|
+
&[enabled] {
|
|
2831
|
+
background-color: var(--qti-primary-light);
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2797
2834
|
&:hover {
|
|
2798
2835
|
background-color: var(--qti-bg-gray-50);
|
|
2799
2836
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as ActiveElementMixin, C as Calculate,
|
|
1
|
+
import { Q as QtiRule, a as QtiRuleBase, b as QtiExpressionBase, c as QtiExpression, B as BaseType, d as QtiConditionExpression, R as ResponseVariable, V as VariableDeclaration, I as ItemContext } from '../qti-simple-choice-Bil0gmT4.js';
|
|
2
|
+
export { A as ActiveElementMixin, C as Calculate, m as Cardinality, r as ChoiceInterface, ae as Interaction, e as InteractionChangedDetails, U as MockQtiExpression, M as Multiple, l as Ordered, O as OutcomeChangedDetails, o as OutcomeVariable, T as QtiAnd, p as QtiAssessmentItem, q as QtiAssessmentStimulusRef, af as QtiAssociableHotspot, Z as QtiAssociateInteraction, K as QtiChoiceInteraction, w as QtiCompanionMaterialsInfo, x as QtiContentBody, _ as QtiCustomInteraction, ad as QtiCustomOperator, $ as QtiEndAttemptInteraction, F as QtiExtendedTextInteraction, z as QtiFeedbackBlock, D as QtiFeedbackInline, ag as QtiGap, ah as QtiGapImg, a0 as QtiGapMatchInteraction, ai as QtiGapText, a1 as QtiGraphicAssociateInteraction, a2 as QtiGraphicGapMatchInteraction, a3 as QtiGraphicOrderInteraction, aj as QtiHotspotChoice, a4 as QtiHotspotInteraction, ak as QtiHottext, H as QtiHottextInteraction, al as QtiInlineChoice, J as QtiInlineChoiceInteraction, f as QtiInteractionChanged, S as QtiLookupOutcomeValue, X as QtiMapping, a5 as QtiMatchInteraction, a6 as QtiMediaInteraction, E as QtiModalFeedback, a7 as QtiOrderInteraction, g as QtiOutcomeChanged, u as QtiOutcomeDeclaration, L as QtiOutcomeProcessing, N as QtiOutcomeProcessingProcessor, Y as QtiPortableCustomInteraction, a8 as QtiPositionObjectStage, s as QtiPrompt, v as QtiResponseDeclaration, P as QtiResponseProcessing, y as QtiRubricBlock, a9 as QtiSelectPointInteraction, am as QtiSimpleAssociableChoice, an as QtiSimpleChoice, aa as QtiSliderInteraction, t as QtiStylesheet, G as QtiTextEntryInteraction, i as ResponseInteraction, n as VariableValue, h as directedPair, j as float, k as integer, ac as itemContext, ab as itemContextVariables, W as qtiAndMixin } from '../qti-simple-choice-Bil0gmT4.js';
|
|
3
3
|
import * as lit_html from 'lit-html';
|
|
4
4
|
import * as lit from 'lit';
|
|
5
5
|
import { LitElement } from 'lit';
|
package/dist/qti-item/index.d.ts
CHANGED
|
@@ -1151,4 +1151,4 @@ declare global {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
1153
|
|
|
1154
|
-
export { QtiEndAttemptInteraction as $, ActiveElementMixin as A, type BaseType as B, type Calculate as C, QtiFeedbackInline as D, QtiModalFeedback as E, QtiExtendedTextInteraction as F, QtiTextEntryInteraction as G, QtiHottextInteraction as H, type ItemContext as I, QtiInlineChoiceInteraction as J, QtiChoiceInteraction as K, QtiOutcomeProcessing as L, type Multiple as M, QtiOutcomeProcessingProcessor as N, type OutcomeChangedDetails as O, QtiResponseProcessing as P,
|
|
1154
|
+
export { QtiEndAttemptInteraction as $, ActiveElementMixin as A, type BaseType as B, type Calculate as C, QtiFeedbackInline as D, QtiModalFeedback as E, QtiExtendedTextInteraction as F, QtiTextEntryInteraction as G, QtiHottextInteraction as H, type ItemContext as I, QtiInlineChoiceInteraction as J, QtiChoiceInteraction as K, QtiOutcomeProcessing as L, type Multiple as M, QtiOutcomeProcessingProcessor as N, type OutcomeChangedDetails as O, QtiResponseProcessing as P, QtiRule as Q, type ResponseVariable as R, QtiLookupOutcomeValue as S, QtiAnd as T, type MockQtiExpression as U, type VariableDeclaration as V, qtiAndMixin as W, QtiMapping as X, QtiPortableCustomInteraction as Y, QtiAssociateInteraction as Z, QtiCustomInteraction as _, type QtiRuleBase as a, QtiGapMatchInteraction as a0, QtiGraphicAssociateInteraction as a1, QtiGraphicGapMatchInteraction as a2, QtiGraphicOrderInteraction as a3, QtiHotspotInteraction as a4, QtiMatchInteraction as a5, QtiMediaInteraction as a6, QtiOrderInteraction as a7, QtiPositionObjectStage as a8, QtiSelectPointInteraction as a9, QtiSliderInteraction as aa, itemContextVariables as ab, itemContext as ac, QtiCustomOperator as ad, Interaction as ae, QtiAssociableHotspot as af, QtiGap as ag, QtiGapImg as ah, QtiGapText as ai, QtiHotspotChoice as aj, QtiHottext as ak, QtiInlineChoice as al, QtiSimpleAssociableChoice as am, QtiSimpleChoice as an, type QtiExpressionBase as b, QtiExpression as c, QtiConditionExpression as d, type InteractionChangedDetails as e, type QtiInteractionChanged as f, type QtiOutcomeChanged as g, type directedPair as h, type ResponseInteraction as i, type float as j, type integer as k, type Ordered as l, type Cardinality as m, type VariableValue as n, type OutcomeVariable as o, QtiAssessmentItem as p, QtiAssessmentStimulusRef as q, type ChoiceInterface as r, QtiPrompt as s, QtiStylesheet as t, QtiOutcomeDeclaration as u, QtiResponseDeclaration as v, QtiCompanionMaterialsInfo as w, QtiContentBody as x, QtiRubricBlock as y, QtiFeedbackBlock as z };
|