@citolab/qti-components 6.9.1-beta.52 → 6.9.1-beta.54

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
@@ -2397,7 +2397,7 @@ qti-response-declaration {
2397
2397
  height: calc(var(--qti-form-size) - 6px);
2398
2398
  }
2399
2399
 
2400
- &[role='radio']::part(ch) {
2400
+ &:state(radio)::part(ch) {
2401
2401
  border-radius: var(--qti-border-radius-full);
2402
2402
  display: grid;
2403
2403
  place-content: center;
@@ -2407,12 +2407,12 @@ qti-response-declaration {
2407
2407
  outline: none;
2408
2408
  }
2409
2409
 
2410
- &[role='radio'][aria-checked='true']::part(cha) {
2410
+ &:state(radio):state(--checked)::part(cha) {
2411
2411
  background-color: var(--qti-bg-primary);
2412
2412
  border-radius: var(--qti-border-radius-full);
2413
2413
  }
2414
2414
 
2415
- &[role='checkbox']::part(ch) {
2415
+ &:state(checkbox)::part(ch) {
2416
2416
  display: flex;
2417
2417
  place-items: center;
2418
2418
  border-radius: var(--qti-border-radius-sm);
@@ -2424,7 +2424,7 @@ qti-response-declaration {
2424
2424
  outline: none;
2425
2425
  }
2426
2426
 
2427
- &[role='checkbox'][aria-checked='true']::part(cha) {
2427
+ &:state(checkbox):state(--checked)::part(cha) {
2428
2428
  background-color: var(--qti-bg-primary);
2429
2429
  -webkit-mask-image: var(--check-mask);
2430
2430
  mask-image: var(--check-mask);
@@ -2466,7 +2466,7 @@ qti-response-declaration {
2466
2466
  display: none;
2467
2467
  }
2468
2468
 
2469
- &[aria-checked='true'] {
2469
+ &:state(--checked) {
2470
2470
  border-color: var(--qti-bg-primary);
2471
2471
  background-color: var(--qti-primary-light);
2472
2472
  }
@@ -2516,7 +2516,7 @@ qti-response-declaration {
2516
2516
  display: none;
2517
2517
  }
2518
2518
 
2519
- &[aria-checked='true'] {
2519
+ &:state(--checked) {
2520
2520
  background-color: var(--qti-primary-light); /* bg-blue-200 */
2521
2521
  }
2522
2522
 
@@ -1,5 +1,5 @@
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-CFhbe77e.js';
2
- export { s as ActiveElementMixin, A as ActiveElementMixinInterface, C as Calculate, m as Cardinality, r as ChoiceInterface, ag as Interaction, e as InteractionChangedDetails, X as MockQtiExpression, M as Multiple, l as Ordered, O as OutcomeChangedDetails, o as OutcomeVariable, W as QtiAnd, p as QtiAssessmentItem, q as QtiAssessmentStimulusRef, ah as QtiAssociableHotspot, $ as QtiAssociateInteraction, N as QtiChoiceInteraction, y as QtiCompanionMaterialsInfo, z as QtiContentBody, a0 as QtiCustomInteraction, af as QtiCustomOperator, a1 as QtiEndAttemptInteraction, H as QtiExtendedTextInteraction, E as QtiFeedbackBlock, F as QtiFeedbackInline, ai as QtiGap, aj as QtiGapImg, a2 as QtiGapMatchInteraction, ak as QtiGapText, a3 as QtiGraphicAssociateInteraction, a4 as QtiGraphicGapMatchInteraction, a5 as QtiGraphicOrderInteraction, al as QtiHotspotChoice, a6 as QtiHotspotInteraction, am as QtiHottext, K as QtiHottextInteraction, an as QtiInlineChoice, L as QtiInlineChoiceInteraction, f as QtiInteractionChanged, t as QtiItemBody, U as QtiLookupOutcomeValue, Z as QtiMapping, a7 as QtiMatchInteraction, a8 as QtiMediaInteraction, G as QtiModalFeedback, a9 as QtiOrderInteraction, g as QtiOutcomeChanged, w as QtiOutcomeDeclaration, P as QtiOutcomeProcessing, S as QtiOutcomeProcessingProcessor, _ as QtiPortableCustomInteraction, aa as QtiPositionObjectStage, u as QtiPrompt, x as QtiResponseDeclaration, T as QtiResponseProcessing, D as QtiRubricBlock, ab as QtiSelectPointInteraction, ao as QtiSimpleAssociableChoice, ap as QtiSimpleChoice, ac as QtiSliderInteraction, v as QtiStylesheet, J as QtiTextEntryInteraction, i as ResponseInteraction, n as VariableValue, h as directedPair, j as float, k as integer, ae as itemContext, ad as itemContextVariables, Y as qtiAndMixin } from '../qti-simple-choice-CFhbe77e.js';
1
+ import { a as QtiRule, b as QtiRuleBase, c as QtiExpressionBase, d as QtiExpression, B as BaseType, e as QtiConditionExpression, R as ResponseVariable, V as VariableDeclaration, I as ItemContext } from '../qti-simple-choice-BgkvFwBr.js';
2
+ export { s as ActiveElementMixin, A as ActiveElementMixinInterface, C as Calculate, n as Cardinality, r as ChoiceInterface, ag as Interaction, f as InteractionChangedDetails, X as MockQtiExpression, M as Multiple, m as Ordered, O as OutcomeChangedDetails, p as OutcomeVariable, W as QtiAnd, Q as QtiAssessmentItem, q as QtiAssessmentStimulusRef, ah as QtiAssociableHotspot, $ as QtiAssociateInteraction, N as QtiChoiceInteraction, y as QtiCompanionMaterialsInfo, z as QtiContentBody, a0 as QtiCustomInteraction, af as QtiCustomOperator, a1 as QtiEndAttemptInteraction, H as QtiExtendedTextInteraction, E as QtiFeedbackBlock, F as QtiFeedbackInline, ai as QtiGap, aj as QtiGapImg, a2 as QtiGapMatchInteraction, ak as QtiGapText, a3 as QtiGraphicAssociateInteraction, a4 as QtiGraphicGapMatchInteraction, a5 as QtiGraphicOrderInteraction, al as QtiHotspotChoice, a6 as QtiHotspotInteraction, am as QtiHottext, K as QtiHottextInteraction, an as QtiInlineChoice, L as QtiInlineChoiceInteraction, g as QtiInteractionChanged, t as QtiItemBody, U as QtiLookupOutcomeValue, Z as QtiMapping, a7 as QtiMatchInteraction, a8 as QtiMediaInteraction, G as QtiModalFeedback, a9 as QtiOrderInteraction, h as QtiOutcomeChanged, w as QtiOutcomeDeclaration, P as QtiOutcomeProcessing, S as QtiOutcomeProcessingProcessor, _ as QtiPortableCustomInteraction, aa as QtiPositionObjectStage, u as QtiPrompt, x as QtiResponseDeclaration, T as QtiResponseProcessing, D as QtiRubricBlock, ab as QtiSelectPointInteraction, ao as QtiSimpleAssociableChoice, ap as QtiSimpleChoice, ac as QtiSliderInteraction, v as QtiStylesheet, J as QtiTextEntryInteraction, j as ResponseInteraction, o as VariableValue, i as directedPair, k as float, l as integer, ae as itemContext, ad as itemContextVariables, Y as qtiAndMixin } from '../qti-simple-choice-BgkvFwBr.js';
3
3
  import * as lit_html from 'lit-html';
4
4
  import * as lit from 'lit';
5
5
  import { LitElement } from 'lit';
@@ -1,5 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
- import { p as QtiAssessmentItem } from '../qti-simple-choice-CFhbe77e.js';
2
+ import { Q as QtiAssessmentItem } from '../qti-simple-choice-BgkvFwBr.js';
3
3
  import 'lit-html';
4
4
  import 'lit-html/directives/ref.js';
5
5
 
@@ -1,4 +1,4 @@
1
- import { p as QtiAssessmentItem } from '../qti-simple-choice-CFhbe77e.js';
1
+ import { Q as QtiAssessmentItem } from '../qti-simple-choice-BgkvFwBr.js';
2
2
  import 'lit-html';
3
3
  import 'lit';
4
4
  import 'lit-html/directives/ref.js';
@@ -1187,4 +1187,4 @@ declare global {
1187
1187
  }
1188
1188
  }
1189
1189
 
1190
- export { QtiAssociateInteraction as $, type ActiveElementMixinInterface as A, type BaseType as B, type Calculate as C, QtiRubricBlock as D, QtiFeedbackBlock as E, QtiFeedbackInline as F, QtiModalFeedback as G, QtiExtendedTextInteraction as H, type ItemContext as I, QtiTextEntryInteraction as J, QtiHottextInteraction as K, QtiInlineChoiceInteraction as L, type Multiple as M, QtiChoiceInteraction as N, type OutcomeChangedDetails as O, QtiOutcomeProcessing as P, QtiRule as Q, type ResponseVariable as R, QtiOutcomeProcessingProcessor as S, QtiResponseProcessing as T, QtiLookupOutcomeValue as U, type VariableDeclaration as V, QtiAnd as W, type MockQtiExpression as X, qtiAndMixin as Y, QtiMapping as Z, QtiPortableCustomInteraction as _, type QtiRuleBase as a, QtiCustomInteraction as a0, QtiEndAttemptInteraction as a1, QtiGapMatchInteraction as a2, QtiGraphicAssociateInteraction as a3, QtiGraphicGapMatchInteraction as a4, QtiGraphicOrderInteraction as a5, QtiHotspotInteraction as a6, QtiMatchInteraction as a7, QtiMediaInteraction as a8, QtiOrderInteraction as a9, QtiPositionObjectStage as aa, QtiSelectPointInteraction as ab, QtiSliderInteraction as ac, itemContextVariables as ad, itemContext as ae, QtiCustomOperator as af, Interaction as ag, QtiAssociableHotspot as ah, QtiGap as ai, QtiGapImg as aj, QtiGapText as ak, QtiHotspotChoice as al, QtiHottext as am, QtiInlineChoice as an, QtiSimpleAssociableChoice as ao, QtiSimpleChoice as ap, 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, ActiveElementMixin as s, QtiItemBody as t, QtiPrompt as u, QtiStylesheet as v, QtiOutcomeDeclaration as w, QtiResponseDeclaration as x, QtiCompanionMaterialsInfo as y, QtiContentBody as z };
1190
+ export { QtiAssociateInteraction as $, type ActiveElementMixinInterface as A, type BaseType as B, type Calculate as C, QtiRubricBlock as D, QtiFeedbackBlock as E, QtiFeedbackInline as F, QtiModalFeedback as G, QtiExtendedTextInteraction as H, type ItemContext as I, QtiTextEntryInteraction as J, QtiHottextInteraction as K, QtiInlineChoiceInteraction as L, type Multiple as M, QtiChoiceInteraction as N, type OutcomeChangedDetails as O, QtiOutcomeProcessing as P, QtiAssessmentItem as Q, type ResponseVariable as R, QtiOutcomeProcessingProcessor as S, QtiResponseProcessing as T, QtiLookupOutcomeValue as U, type VariableDeclaration as V, QtiAnd as W, type MockQtiExpression as X, qtiAndMixin as Y, QtiMapping as Z, QtiPortableCustomInteraction as _, QtiRule as a, QtiCustomInteraction as a0, QtiEndAttemptInteraction as a1, QtiGapMatchInteraction as a2, QtiGraphicAssociateInteraction as a3, QtiGraphicGapMatchInteraction as a4, QtiGraphicOrderInteraction as a5, QtiHotspotInteraction as a6, QtiMatchInteraction as a7, QtiMediaInteraction as a8, QtiOrderInteraction as a9, QtiPositionObjectStage as aa, QtiSelectPointInteraction as ab, QtiSliderInteraction as ac, itemContextVariables as ad, itemContext as ae, QtiCustomOperator as af, Interaction as ag, QtiAssociableHotspot as ah, QtiGap as ai, QtiGapImg as aj, QtiGapText as ak, QtiHotspotChoice as al, QtiHottext as am, QtiInlineChoice as an, QtiSimpleAssociableChoice as ao, QtiSimpleChoice as ap, type QtiRuleBase as b, type QtiExpressionBase as c, QtiExpression as d, QtiConditionExpression as e, type InteractionChangedDetails as f, type QtiInteractionChanged as g, type QtiOutcomeChanged as h, type directedPair as i, type ResponseInteraction as j, type float as k, type integer as l, type Ordered as m, type Cardinality as n, type VariableValue as o, type OutcomeVariable as p, QtiAssessmentStimulusRef as q, type ChoiceInterface as r, ActiveElementMixin as s, QtiItemBody as t, QtiPrompt as u, QtiStylesheet as v, QtiOutcomeDeclaration as w, QtiResponseDeclaration as x, QtiCompanionMaterialsInfo as y, QtiContentBody as z };
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "engines": {
22
22
  "node": ">=20.0.0"
23
23
  },
24
- "version": "6.9.1-beta.52",
24
+ "version": "6.9.1-beta.54",
25
25
  "type": "module",
26
26
  "exports": {
27
27
  "./qti-components": "./dist/qti-components/index.js",