@citolab/qti-components 7.27.2 → 7.27.3
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/cdn/index.global.js +1 -1
- package/cdn/index.js +216 -202
- package/dist/base.js +1 -1
- package/dist/{chunk-QUWFDFGZ.js → chunk-3XXXAWMZ.js} +18 -18
- package/dist/{chunk-TORB5UN2.js → chunk-A7HX4462.js} +291 -242
- package/dist/chunk-A7HX4462.js.map +1 -0
- package/dist/{chunk-KY3II5OX.js → chunk-CSYOTHK2.js} +220 -189
- package/dist/chunk-CSYOTHK2.js.map +1 -0
- package/dist/{chunk-G5ZUC3OT.js → chunk-CVB5ISWF.js} +23 -23
- package/dist/chunk-CVB5ISWF.js.map +1 -0
- package/dist/{chunk-TZMDZQFG.js → chunk-D6EHVZG2.js} +467 -217
- package/dist/chunk-D6EHVZG2.js.map +1 -0
- package/dist/{chunk-DG5TP35K.js → chunk-DGIXWHK3.js} +5 -5
- package/dist/{chunk-DG5TP35K.js.map → chunk-DGIXWHK3.js.map} +1 -1
- package/dist/{chunk-GG36UR7F.js → chunk-PHCCFYNE.js} +12 -12
- package/dist/{chunk-GG36UR7F.js.map → chunk-PHCCFYNE.js.map} +1 -1
- package/dist/{chunk-75ME6QG5.js → chunk-WMPG7ULB.js} +17 -17
- package/dist/elements.js +3 -3
- package/dist/index.js +8 -8
- package/dist/interactions.d.ts +8 -7
- package/dist/interactions.js +3 -3
- package/dist/item.js +3 -3
- package/dist/processing.js +2 -2
- package/dist/qti-components-jsx.d.ts +202 -202
- package/dist/test.js +5 -5
- package/package.json +11 -11
- package/dist/chunk-G5ZUC3OT.js.map +0 -1
- package/dist/chunk-KY3II5OX.js.map +0 -1
- package/dist/chunk-TORB5UN2.js.map +0 -1
- package/dist/chunk-TZMDZQFG.js.map +0 -1
- /package/dist/{chunk-QUWFDFGZ.js.map → chunk-3XXXAWMZ.js.map} +0 -0
- /package/dist/{chunk-75ME6QG5.js.map → chunk-WMPG7ULB.js.map} +0 -0
|
@@ -78,9 +78,9 @@ import type { QtiCustomInteraction } from "packages/interactions/custom-interact
|
|
|
78
78
|
import type { QtiEndAttemptInteraction } from "packages/interactions/end-attempt-interaction/src/qti-end-attempt-interaction.ts";
|
|
79
79
|
import type { QtiExtendedTextInteraction } from "packages/interactions/extended-text-interaction/src/qti-extended-text-interaction.ts";
|
|
80
80
|
import type { QtiGapMatchInteraction } from "packages/interactions/gap-match-interaction/src/qti-gap-match-interaction.ts";
|
|
81
|
-
import type { QtiGraphicAssociateInteraction } from "packages/interactions/graphic-associate-interaction/src/qti-graphic-associate-interaction.ts";
|
|
82
81
|
import type { QtiGraphicGapMatchInteraction } from "packages/interactions/graphic-gap-match-interaction/src/qti-graphic-gap-match-interaction.ts";
|
|
83
82
|
import type { QtiGraphicOrderInteraction } from "packages/interactions/graphic-order-interaction/src/qti-graphic-order-interaction.ts";
|
|
83
|
+
import type { QtiGraphicAssociateInteraction } from "packages/interactions/graphic-associate-interaction/src/qti-graphic-associate-interaction.ts";
|
|
84
84
|
import type { QtiHotspotInteraction } from "packages/interactions/hotspot-interaction/src/qti-hotspot-interaction.ts";
|
|
85
85
|
import type { QtiHottextInteraction } from "packages/interactions/hottext-interaction/src/qti-hottext-interaction.ts";
|
|
86
86
|
import type { QtiInlineChoiceInteraction } from "packages/interactions/inline-choice-interaction/src/qti-inline-choice-interaction.ts";
|
|
@@ -2411,116 +2411,6 @@ export type QtiGapMatchInteractionSolidJsProps = {
|
|
|
2411
2411
|
textContent?: string | number;
|
|
2412
2412
|
};
|
|
2413
2413
|
|
|
2414
|
-
export type QtiGraphicAssociateInteractionProps = {
|
|
2415
|
-
/** */
|
|
2416
|
-
"response-identifier"?: QtiGraphicAssociateInteraction["responseIdentifier"];
|
|
2417
|
-
/** */
|
|
2418
|
-
responseIdentifier?: QtiGraphicAssociateInteraction["responseIdentifier"];
|
|
2419
|
-
/** */
|
|
2420
|
-
disabled?: QtiGraphicAssociateInteraction["disabled"];
|
|
2421
|
-
/** */
|
|
2422
|
-
readonly?: QtiGraphicAssociateInteraction["readonly"];
|
|
2423
|
-
/** */
|
|
2424
|
-
name?: QtiGraphicAssociateInteraction["name"];
|
|
2425
|
-
/** The correct response for this interaction. Can be set as a comma-separated
|
|
2426
|
-
string via attribute or as string/string[] via property. */
|
|
2427
|
-
"correct-response"?: QtiGraphicAssociateInteraction["correctResponseAttr"];
|
|
2428
|
-
/** The correct response for this interaction. Can be set as a comma-separated
|
|
2429
|
-
string via attribute or as string/string[] via property. */
|
|
2430
|
-
correctResponseAttr?: QtiGraphicAssociateInteraction["correctResponseAttr"];
|
|
2431
|
-
/** Shows which choices are correct with inline indicators.
|
|
2432
|
-
Adds `correct-response` / `incorrect-response` states to choices. */
|
|
2433
|
-
"show-correct-response"?: QtiGraphicAssociateInteraction["showCorrectResponse"];
|
|
2434
|
-
/** Shows which choices are correct with inline indicators.
|
|
2435
|
-
Adds `correct-response` / `incorrect-response` states to choices. */
|
|
2436
|
-
showCorrectResponse?: QtiGraphicAssociateInteraction["showCorrectResponse"];
|
|
2437
|
-
/** Shows a cloned interaction with the correct answers filled in.
|
|
2438
|
-
Creates a disabled copy positioned after this interaction. */
|
|
2439
|
-
"show-full-correct-response"?: QtiGraphicAssociateInteraction["showFullCorrectResponse"];
|
|
2440
|
-
/** Shows a cloned interaction with the correct answers filled in.
|
|
2441
|
-
Creates a disabled copy positioned after this interaction. */
|
|
2442
|
-
showFullCorrectResponse?: QtiGraphicAssociateInteraction["showFullCorrectResponse"];
|
|
2443
|
-
/** Shows feedback on candidate's selections compared to correct response.
|
|
2444
|
-
Adds `candidate-correct` / `candidate-incorrect` states to choices. */
|
|
2445
|
-
"show-candidate-correction"?: QtiGraphicAssociateInteraction["showCandidateCorrection"];
|
|
2446
|
-
/** Shows feedback on candidate's selections compared to correct response.
|
|
2447
|
-
Adds `candidate-correct` / `candidate-incorrect` states to choices. */
|
|
2448
|
-
showCandidateCorrection?: QtiGraphicAssociateInteraction["showCandidateCorrection"];
|
|
2449
|
-
/** */
|
|
2450
|
-
grImage?: QtiGraphicAssociateInteraction["grImage"];
|
|
2451
|
-
/** */
|
|
2452
|
-
response?: QtiGraphicAssociateInteraction["response"];
|
|
2453
|
-
/** */
|
|
2454
|
-
isFullCorrectResponse?: QtiGraphicAssociateInteraction["isFullCorrectResponse"];
|
|
2455
|
-
/** Get/set correct response programmatically.
|
|
2456
|
-
This property syncs with the `correct-response` attribute. */
|
|
2457
|
-
correctResponse?: QtiGraphicAssociateInteraction["correctResponse"];
|
|
2458
|
-
/** */
|
|
2459
|
-
value?: QtiGraphicAssociateInteraction["value"];
|
|
2460
|
-
|
|
2461
|
-
/** */
|
|
2462
|
-
"onqti-register-interaction"?: (e: CustomEvent) => void;
|
|
2463
|
-
/** */
|
|
2464
|
-
"onqti-interaction-response"?: (e: CustomEvent) => void;
|
|
2465
|
-
};
|
|
2466
|
-
|
|
2467
|
-
export type QtiGraphicAssociateInteractionSolidJsProps = {
|
|
2468
|
-
/** */
|
|
2469
|
-
"attr:response-identifier"?: QtiGraphicAssociateInteraction["responseIdentifier"];
|
|
2470
|
-
/** */
|
|
2471
|
-
"prop:responseIdentifier"?: QtiGraphicAssociateInteraction["responseIdentifier"];
|
|
2472
|
-
/** */
|
|
2473
|
-
"prop:disabled"?: QtiGraphicAssociateInteraction["disabled"];
|
|
2474
|
-
/** */
|
|
2475
|
-
"prop:readonly"?: QtiGraphicAssociateInteraction["readonly"];
|
|
2476
|
-
/** */
|
|
2477
|
-
"prop:name"?: QtiGraphicAssociateInteraction["name"];
|
|
2478
|
-
/** The correct response for this interaction. Can be set as a comma-separated
|
|
2479
|
-
string via attribute or as string/string[] via property. */
|
|
2480
|
-
"attr:correct-response"?: QtiGraphicAssociateInteraction["correctResponseAttr"];
|
|
2481
|
-
/** The correct response for this interaction. Can be set as a comma-separated
|
|
2482
|
-
string via attribute or as string/string[] via property. */
|
|
2483
|
-
"prop:correctResponseAttr"?: QtiGraphicAssociateInteraction["correctResponseAttr"];
|
|
2484
|
-
/** Shows which choices are correct with inline indicators.
|
|
2485
|
-
Adds `correct-response` / `incorrect-response` states to choices. */
|
|
2486
|
-
"bool:show-correct-response"?: QtiGraphicAssociateInteraction["showCorrectResponse"];
|
|
2487
|
-
/** Shows which choices are correct with inline indicators.
|
|
2488
|
-
Adds `correct-response` / `incorrect-response` states to choices. */
|
|
2489
|
-
"prop:showCorrectResponse"?: QtiGraphicAssociateInteraction["showCorrectResponse"];
|
|
2490
|
-
/** Shows a cloned interaction with the correct answers filled in.
|
|
2491
|
-
Creates a disabled copy positioned after this interaction. */
|
|
2492
|
-
"bool:show-full-correct-response"?: QtiGraphicAssociateInteraction["showFullCorrectResponse"];
|
|
2493
|
-
/** Shows a cloned interaction with the correct answers filled in.
|
|
2494
|
-
Creates a disabled copy positioned after this interaction. */
|
|
2495
|
-
"prop:showFullCorrectResponse"?: QtiGraphicAssociateInteraction["showFullCorrectResponse"];
|
|
2496
|
-
/** Shows feedback on candidate's selections compared to correct response.
|
|
2497
|
-
Adds `candidate-correct` / `candidate-incorrect` states to choices. */
|
|
2498
|
-
"bool:show-candidate-correction"?: QtiGraphicAssociateInteraction["showCandidateCorrection"];
|
|
2499
|
-
/** Shows feedback on candidate's selections compared to correct response.
|
|
2500
|
-
Adds `candidate-correct` / `candidate-incorrect` states to choices. */
|
|
2501
|
-
"prop:showCandidateCorrection"?: QtiGraphicAssociateInteraction["showCandidateCorrection"];
|
|
2502
|
-
/** */
|
|
2503
|
-
"prop:grImage"?: QtiGraphicAssociateInteraction["grImage"];
|
|
2504
|
-
/** */
|
|
2505
|
-
"prop:response"?: QtiGraphicAssociateInteraction["response"];
|
|
2506
|
-
/** */
|
|
2507
|
-
"prop:isFullCorrectResponse"?: QtiGraphicAssociateInteraction["isFullCorrectResponse"];
|
|
2508
|
-
/** Get/set correct response programmatically.
|
|
2509
|
-
This property syncs with the `correct-response` attribute. */
|
|
2510
|
-
"prop:correctResponse"?: QtiGraphicAssociateInteraction["correctResponse"];
|
|
2511
|
-
/** */
|
|
2512
|
-
"prop:value"?: QtiGraphicAssociateInteraction["value"];
|
|
2513
|
-
/** */
|
|
2514
|
-
"on:qti-register-interaction"?: (e: CustomEvent) => void;
|
|
2515
|
-
/** */
|
|
2516
|
-
"on:qti-interaction-response"?: (e: CustomEvent) => void;
|
|
2517
|
-
|
|
2518
|
-
/** Set the innerHTML of the element */
|
|
2519
|
-
innerHTML?: string;
|
|
2520
|
-
/** Set the textContent of the element */
|
|
2521
|
-
textContent?: string | number;
|
|
2522
|
-
};
|
|
2523
|
-
|
|
2524
2414
|
export type QtiGraphicGapMatchInteractionProps = {
|
|
2525
2415
|
/** */
|
|
2526
2416
|
allowReorder?: QtiGraphicGapMatchInteraction["allowReorder"];
|
|
@@ -2666,6 +2556,116 @@ This property syncs with the `correct-response` attribute. */
|
|
|
2666
2556
|
textContent?: string | number;
|
|
2667
2557
|
};
|
|
2668
2558
|
|
|
2559
|
+
export type QtiGraphicAssociateInteractionProps = {
|
|
2560
|
+
/** */
|
|
2561
|
+
"response-identifier"?: QtiGraphicAssociateInteraction["responseIdentifier"];
|
|
2562
|
+
/** */
|
|
2563
|
+
responseIdentifier?: QtiGraphicAssociateInteraction["responseIdentifier"];
|
|
2564
|
+
/** */
|
|
2565
|
+
disabled?: QtiGraphicAssociateInteraction["disabled"];
|
|
2566
|
+
/** */
|
|
2567
|
+
readonly?: QtiGraphicAssociateInteraction["readonly"];
|
|
2568
|
+
/** */
|
|
2569
|
+
name?: QtiGraphicAssociateInteraction["name"];
|
|
2570
|
+
/** The correct response for this interaction. Can be set as a comma-separated
|
|
2571
|
+
string via attribute or as string/string[] via property. */
|
|
2572
|
+
"correct-response"?: QtiGraphicAssociateInteraction["correctResponseAttr"];
|
|
2573
|
+
/** The correct response for this interaction. Can be set as a comma-separated
|
|
2574
|
+
string via attribute or as string/string[] via property. */
|
|
2575
|
+
correctResponseAttr?: QtiGraphicAssociateInteraction["correctResponseAttr"];
|
|
2576
|
+
/** Shows which choices are correct with inline indicators.
|
|
2577
|
+
Adds `correct-response` / `incorrect-response` states to choices. */
|
|
2578
|
+
"show-correct-response"?: QtiGraphicAssociateInteraction["showCorrectResponse"];
|
|
2579
|
+
/** Shows which choices are correct with inline indicators.
|
|
2580
|
+
Adds `correct-response` / `incorrect-response` states to choices. */
|
|
2581
|
+
showCorrectResponse?: QtiGraphicAssociateInteraction["showCorrectResponse"];
|
|
2582
|
+
/** Shows a cloned interaction with the correct answers filled in.
|
|
2583
|
+
Creates a disabled copy positioned after this interaction. */
|
|
2584
|
+
"show-full-correct-response"?: QtiGraphicAssociateInteraction["showFullCorrectResponse"];
|
|
2585
|
+
/** Shows a cloned interaction with the correct answers filled in.
|
|
2586
|
+
Creates a disabled copy positioned after this interaction. */
|
|
2587
|
+
showFullCorrectResponse?: QtiGraphicAssociateInteraction["showFullCorrectResponse"];
|
|
2588
|
+
/** Shows feedback on candidate's selections compared to correct response.
|
|
2589
|
+
Adds `candidate-correct` / `candidate-incorrect` states to choices. */
|
|
2590
|
+
"show-candidate-correction"?: QtiGraphicAssociateInteraction["showCandidateCorrection"];
|
|
2591
|
+
/** Shows feedback on candidate's selections compared to correct response.
|
|
2592
|
+
Adds `candidate-correct` / `candidate-incorrect` states to choices. */
|
|
2593
|
+
showCandidateCorrection?: QtiGraphicAssociateInteraction["showCandidateCorrection"];
|
|
2594
|
+
/** */
|
|
2595
|
+
grImage?: QtiGraphicAssociateInteraction["grImage"];
|
|
2596
|
+
/** */
|
|
2597
|
+
response?: QtiGraphicAssociateInteraction["response"];
|
|
2598
|
+
/** */
|
|
2599
|
+
isFullCorrectResponse?: QtiGraphicAssociateInteraction["isFullCorrectResponse"];
|
|
2600
|
+
/** Get/set correct response programmatically.
|
|
2601
|
+
This property syncs with the `correct-response` attribute. */
|
|
2602
|
+
correctResponse?: QtiGraphicAssociateInteraction["correctResponse"];
|
|
2603
|
+
/** */
|
|
2604
|
+
value?: QtiGraphicAssociateInteraction["value"];
|
|
2605
|
+
|
|
2606
|
+
/** */
|
|
2607
|
+
"onqti-register-interaction"?: (e: CustomEvent) => void;
|
|
2608
|
+
/** */
|
|
2609
|
+
"onqti-interaction-response"?: (e: CustomEvent) => void;
|
|
2610
|
+
};
|
|
2611
|
+
|
|
2612
|
+
export type QtiGraphicAssociateInteractionSolidJsProps = {
|
|
2613
|
+
/** */
|
|
2614
|
+
"attr:response-identifier"?: QtiGraphicAssociateInteraction["responseIdentifier"];
|
|
2615
|
+
/** */
|
|
2616
|
+
"prop:responseIdentifier"?: QtiGraphicAssociateInteraction["responseIdentifier"];
|
|
2617
|
+
/** */
|
|
2618
|
+
"prop:disabled"?: QtiGraphicAssociateInteraction["disabled"];
|
|
2619
|
+
/** */
|
|
2620
|
+
"prop:readonly"?: QtiGraphicAssociateInteraction["readonly"];
|
|
2621
|
+
/** */
|
|
2622
|
+
"prop:name"?: QtiGraphicAssociateInteraction["name"];
|
|
2623
|
+
/** The correct response for this interaction. Can be set as a comma-separated
|
|
2624
|
+
string via attribute or as string/string[] via property. */
|
|
2625
|
+
"attr:correct-response"?: QtiGraphicAssociateInteraction["correctResponseAttr"];
|
|
2626
|
+
/** The correct response for this interaction. Can be set as a comma-separated
|
|
2627
|
+
string via attribute or as string/string[] via property. */
|
|
2628
|
+
"prop:correctResponseAttr"?: QtiGraphicAssociateInteraction["correctResponseAttr"];
|
|
2629
|
+
/** Shows which choices are correct with inline indicators.
|
|
2630
|
+
Adds `correct-response` / `incorrect-response` states to choices. */
|
|
2631
|
+
"bool:show-correct-response"?: QtiGraphicAssociateInteraction["showCorrectResponse"];
|
|
2632
|
+
/** Shows which choices are correct with inline indicators.
|
|
2633
|
+
Adds `correct-response` / `incorrect-response` states to choices. */
|
|
2634
|
+
"prop:showCorrectResponse"?: QtiGraphicAssociateInteraction["showCorrectResponse"];
|
|
2635
|
+
/** Shows a cloned interaction with the correct answers filled in.
|
|
2636
|
+
Creates a disabled copy positioned after this interaction. */
|
|
2637
|
+
"bool:show-full-correct-response"?: QtiGraphicAssociateInteraction["showFullCorrectResponse"];
|
|
2638
|
+
/** Shows a cloned interaction with the correct answers filled in.
|
|
2639
|
+
Creates a disabled copy positioned after this interaction. */
|
|
2640
|
+
"prop:showFullCorrectResponse"?: QtiGraphicAssociateInteraction["showFullCorrectResponse"];
|
|
2641
|
+
/** Shows feedback on candidate's selections compared to correct response.
|
|
2642
|
+
Adds `candidate-correct` / `candidate-incorrect` states to choices. */
|
|
2643
|
+
"bool:show-candidate-correction"?: QtiGraphicAssociateInteraction["showCandidateCorrection"];
|
|
2644
|
+
/** Shows feedback on candidate's selections compared to correct response.
|
|
2645
|
+
Adds `candidate-correct` / `candidate-incorrect` states to choices. */
|
|
2646
|
+
"prop:showCandidateCorrection"?: QtiGraphicAssociateInteraction["showCandidateCorrection"];
|
|
2647
|
+
/** */
|
|
2648
|
+
"prop:grImage"?: QtiGraphicAssociateInteraction["grImage"];
|
|
2649
|
+
/** */
|
|
2650
|
+
"prop:response"?: QtiGraphicAssociateInteraction["response"];
|
|
2651
|
+
/** */
|
|
2652
|
+
"prop:isFullCorrectResponse"?: QtiGraphicAssociateInteraction["isFullCorrectResponse"];
|
|
2653
|
+
/** Get/set correct response programmatically.
|
|
2654
|
+
This property syncs with the `correct-response` attribute. */
|
|
2655
|
+
"prop:correctResponse"?: QtiGraphicAssociateInteraction["correctResponse"];
|
|
2656
|
+
/** */
|
|
2657
|
+
"prop:value"?: QtiGraphicAssociateInteraction["value"];
|
|
2658
|
+
/** */
|
|
2659
|
+
"on:qti-register-interaction"?: (e: CustomEvent) => void;
|
|
2660
|
+
/** */
|
|
2661
|
+
"on:qti-interaction-response"?: (e: CustomEvent) => void;
|
|
2662
|
+
|
|
2663
|
+
/** Set the innerHTML of the element */
|
|
2664
|
+
innerHTML?: string;
|
|
2665
|
+
/** Set the textContent of the element */
|
|
2666
|
+
textContent?: string | number;
|
|
2667
|
+
};
|
|
2668
|
+
|
|
2669
2669
|
export type QtiHotspotInteractionProps = {
|
|
2670
2670
|
/** */
|
|
2671
2671
|
"min-choices"?: QtiHotspotInteraction["minChoices"];
|
|
@@ -6348,6 +6348,37 @@ export type CustomElements = {
|
|
|
6348
6348
|
*
|
|
6349
6349
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
6350
6350
|
*
|
|
6351
|
+
* - `allowReorder`: undefined (property only)
|
|
6352
|
+
* - `sortablePlaceholderConfig`: undefined (property only)
|
|
6353
|
+
* - `sortableAnimationConfig`: undefined (property only)
|
|
6354
|
+
* - `isDraggingFromSlot`: undefined (property only) (readonly)
|
|
6355
|
+
*
|
|
6356
|
+
* ## Methods
|
|
6357
|
+
*
|
|
6358
|
+
* Methods that can be called to access component functionality.
|
|
6359
|
+
*
|
|
6360
|
+
* - `shouldReturnToInventoryOnInventoryDrop() => boolean`: undefined
|
|
6361
|
+
* - `initiateDrag(dragElement: HTMLElement, startX: number, startY: number, inputType: 'mouse' | 'touch', rest: [eventSource?: 'pointer' | 'mouse' | 'touch']) => void`: undefined
|
|
6362
|
+
* - `onSortableDragMove(clientX: number, clientY: number) => void`: undefined
|
|
6363
|
+
* - `allowDrop(draggable: HTMLElement, droppable: HTMLElement) => boolean`: undefined
|
|
6364
|
+
* - `handleDrop(draggable: HTMLElement, droppable: HTMLElement) => void`: undefined
|
|
6365
|
+
* - `handleInvalidDrop(dragSource: HTMLElement | null) => void`: undefined
|
|
6366
|
+
*/
|
|
6367
|
+
"qti-graphic-gap-match-interaction": Partial<
|
|
6368
|
+
QtiGraphicGapMatchInteractionProps &
|
|
6369
|
+
BaseProps<QtiGraphicGapMatchInteraction> &
|
|
6370
|
+
BaseEvents
|
|
6371
|
+
>;
|
|
6372
|
+
|
|
6373
|
+
/**
|
|
6374
|
+
*
|
|
6375
|
+
*
|
|
6376
|
+
* ## Attributes & Properties
|
|
6377
|
+
*
|
|
6378
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
6379
|
+
*
|
|
6380
|
+
* - `min-choices`/`minChoices`: undefined
|
|
6381
|
+
* - `max-choices`/`maxChoices`: undefined
|
|
6351
6382
|
* - `response-identifier`/`responseIdentifier`: undefined
|
|
6352
6383
|
* - `disabled`: undefined
|
|
6353
6384
|
* - `readonly`: undefined
|
|
@@ -6360,8 +6391,8 @@ export type CustomElements = {
|
|
|
6360
6391
|
* Creates a disabled copy positioned after this interaction.
|
|
6361
6392
|
* - `show-candidate-correction`/`showCandidateCorrection`: Shows feedback on candidate's selections compared to correct response.
|
|
6362
6393
|
* Adds `candidate-correct` / `candidate-incorrect` states to choices.
|
|
6363
|
-
* - `grImage`: undefined (property only)
|
|
6364
6394
|
* - `response`: undefined (property only)
|
|
6395
|
+
* - `value`: undefined (property only)
|
|
6365
6396
|
* - `internals`: undefined (property only) (readonly)
|
|
6366
6397
|
* - `isFullCorrectResponse`: undefined (property only)
|
|
6367
6398
|
* - `correctResponse`: Get/set correct response programmatically.
|
|
@@ -6371,7 +6402,6 @@ export type CustomElements = {
|
|
|
6371
6402
|
* item context mode (using responseVariable). (property only) (readonly)
|
|
6372
6403
|
* - `isInline`: undefined (property only) (readonly)
|
|
6373
6404
|
* - `responseVariable`: undefined (property only) (readonly)
|
|
6374
|
-
* - `value`: undefined (property only)
|
|
6375
6405
|
*
|
|
6376
6406
|
* ## Events
|
|
6377
6407
|
*
|
|
@@ -6384,47 +6414,18 @@ export type CustomElements = {
|
|
|
6384
6414
|
*
|
|
6385
6415
|
* Methods that can be called to access component functionality.
|
|
6386
6416
|
*
|
|
6387
|
-
* - `reset() => void`: undefined
|
|
6388
|
-
* - `validate() => boolean`: undefined
|
|
6389
6417
|
* - `toggleCorrectResponse(show: boolean) => void`: undefined
|
|
6390
6418
|
* - `toggleCandidateCorrection(show: boolean) => void`: undefined
|
|
6419
|
+
* - `validate() => boolean`: undefined
|
|
6391
6420
|
* - `reportValidity() => boolean`: undefined
|
|
6421
|
+
* - `reset() => void`: undefined
|
|
6392
6422
|
* - `formResetCallback() => void`: Called by the browser when the associated form is reset.
|
|
6393
6423
|
* Part of the Form-Associated Custom Elements API.
|
|
6394
6424
|
* - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
|
|
6395
6425
|
*/
|
|
6396
|
-
"qti-graphic-
|
|
6397
|
-
|
|
6398
|
-
BaseProps<
|
|
6399
|
-
BaseEvents
|
|
6400
|
-
>;
|
|
6401
|
-
|
|
6402
|
-
/**
|
|
6403
|
-
*
|
|
6404
|
-
*
|
|
6405
|
-
* ## Attributes & Properties
|
|
6406
|
-
*
|
|
6407
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
6408
|
-
*
|
|
6409
|
-
* - `allowReorder`: undefined (property only)
|
|
6410
|
-
* - `sortablePlaceholderConfig`: undefined (property only)
|
|
6411
|
-
* - `sortableAnimationConfig`: undefined (property only)
|
|
6412
|
-
* - `isDraggingFromSlot`: undefined (property only) (readonly)
|
|
6413
|
-
*
|
|
6414
|
-
* ## Methods
|
|
6415
|
-
*
|
|
6416
|
-
* Methods that can be called to access component functionality.
|
|
6417
|
-
*
|
|
6418
|
-
* - `shouldReturnToInventoryOnInventoryDrop() => boolean`: undefined
|
|
6419
|
-
* - `initiateDrag(dragElement: HTMLElement, startX: number, startY: number, inputType: 'mouse' | 'touch', rest: [eventSource?: 'pointer' | 'mouse' | 'touch']) => void`: undefined
|
|
6420
|
-
* - `onSortableDragMove(clientX: number, clientY: number) => void`: undefined
|
|
6421
|
-
* - `allowDrop(draggable: HTMLElement, droppable: HTMLElement) => boolean`: undefined
|
|
6422
|
-
* - `handleDrop(draggable: HTMLElement, droppable: HTMLElement) => void`: undefined
|
|
6423
|
-
* - `handleInvalidDrop(dragSource: HTMLElement | null) => void`: undefined
|
|
6424
|
-
*/
|
|
6425
|
-
"qti-graphic-gap-match-interaction": Partial<
|
|
6426
|
-
QtiGraphicGapMatchInteractionProps &
|
|
6427
|
-
BaseProps<QtiGraphicGapMatchInteraction> &
|
|
6426
|
+
"qti-graphic-order-interaction": Partial<
|
|
6427
|
+
QtiGraphicOrderInteractionProps &
|
|
6428
|
+
BaseProps<QtiGraphicOrderInteraction> &
|
|
6428
6429
|
BaseEvents
|
|
6429
6430
|
>;
|
|
6430
6431
|
|
|
@@ -6435,8 +6436,6 @@ export type CustomElements = {
|
|
|
6435
6436
|
*
|
|
6436
6437
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
6437
6438
|
*
|
|
6438
|
-
* - `min-choices`/`minChoices`: undefined
|
|
6439
|
-
* - `max-choices`/`maxChoices`: undefined
|
|
6440
6439
|
* - `response-identifier`/`responseIdentifier`: undefined
|
|
6441
6440
|
* - `disabled`: undefined
|
|
6442
6441
|
* - `readonly`: undefined
|
|
@@ -6449,8 +6448,8 @@ export type CustomElements = {
|
|
|
6449
6448
|
* Creates a disabled copy positioned after this interaction.
|
|
6450
6449
|
* - `show-candidate-correction`/`showCandidateCorrection`: Shows feedback on candidate's selections compared to correct response.
|
|
6451
6450
|
* Adds `candidate-correct` / `candidate-incorrect` states to choices.
|
|
6451
|
+
* - `grImage`: undefined (property only)
|
|
6452
6452
|
* - `response`: undefined (property only)
|
|
6453
|
-
* - `value`: undefined (property only)
|
|
6454
6453
|
* - `internals`: undefined (property only) (readonly)
|
|
6455
6454
|
* - `isFullCorrectResponse`: undefined (property only)
|
|
6456
6455
|
* - `correctResponse`: Get/set correct response programmatically.
|
|
@@ -6460,6 +6459,7 @@ export type CustomElements = {
|
|
|
6460
6459
|
* item context mode (using responseVariable). (property only) (readonly)
|
|
6461
6460
|
* - `isInline`: undefined (property only) (readonly)
|
|
6462
6461
|
* - `responseVariable`: undefined (property only) (readonly)
|
|
6462
|
+
* - `value`: undefined (property only)
|
|
6463
6463
|
*
|
|
6464
6464
|
* ## Events
|
|
6465
6465
|
*
|
|
@@ -6472,18 +6472,18 @@ export type CustomElements = {
|
|
|
6472
6472
|
*
|
|
6473
6473
|
* Methods that can be called to access component functionality.
|
|
6474
6474
|
*
|
|
6475
|
+
* - `reset() => void`: undefined
|
|
6476
|
+
* - `validate() => boolean`: undefined
|
|
6475
6477
|
* - `toggleCorrectResponse(show: boolean) => void`: undefined
|
|
6476
6478
|
* - `toggleCandidateCorrection(show: boolean) => void`: undefined
|
|
6477
|
-
* - `validate() => boolean`: undefined
|
|
6478
6479
|
* - `reportValidity() => boolean`: undefined
|
|
6479
|
-
* - `reset() => void`: undefined
|
|
6480
6480
|
* - `formResetCallback() => void`: Called by the browser when the associated form is reset.
|
|
6481
6481
|
* Part of the Form-Associated Custom Elements API.
|
|
6482
6482
|
* - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
|
|
6483
6483
|
*/
|
|
6484
|
-
"qti-graphic-
|
|
6485
|
-
|
|
6486
|
-
BaseProps<
|
|
6484
|
+
"qti-graphic-associate-interaction": Partial<
|
|
6485
|
+
QtiGraphicAssociateInteractionProps &
|
|
6486
|
+
BaseProps<QtiGraphicAssociateInteraction> &
|
|
6487
6487
|
BaseEvents
|
|
6488
6488
|
>;
|
|
6489
6489
|
|
|
@@ -9743,6 +9743,38 @@ export type CustomElementsSolidJs = {
|
|
|
9743
9743
|
*
|
|
9744
9744
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
9745
9745
|
*
|
|
9746
|
+
* - `allowReorder`: undefined (property only)
|
|
9747
|
+
* - `sortablePlaceholderConfig`: undefined (property only)
|
|
9748
|
+
* - `sortableAnimationConfig`: undefined (property only)
|
|
9749
|
+
* - `isDraggingFromSlot`: undefined (property only) (readonly)
|
|
9750
|
+
*
|
|
9751
|
+
* ## Methods
|
|
9752
|
+
*
|
|
9753
|
+
* Methods that can be called to access component functionality.
|
|
9754
|
+
*
|
|
9755
|
+
* - `shouldReturnToInventoryOnInventoryDrop() => boolean`: undefined
|
|
9756
|
+
* - `initiateDrag(dragElement: HTMLElement, startX: number, startY: number, inputType: 'mouse' | 'touch', rest: [eventSource?: 'pointer' | 'mouse' | 'touch']) => void`: undefined
|
|
9757
|
+
* - `onSortableDragMove(clientX: number, clientY: number) => void`: undefined
|
|
9758
|
+
* - `allowDrop(draggable: HTMLElement, droppable: HTMLElement) => boolean`: undefined
|
|
9759
|
+
* - `handleDrop(draggable: HTMLElement, droppable: HTMLElement) => void`: undefined
|
|
9760
|
+
* - `handleInvalidDrop(dragSource: HTMLElement | null) => void`: undefined
|
|
9761
|
+
*/
|
|
9762
|
+
"qti-graphic-gap-match-interaction": Partial<
|
|
9763
|
+
QtiGraphicGapMatchInteractionProps &
|
|
9764
|
+
QtiGraphicGapMatchInteractionSolidJsProps &
|
|
9765
|
+
BaseProps<QtiGraphicGapMatchInteraction> &
|
|
9766
|
+
BaseEvents
|
|
9767
|
+
>;
|
|
9768
|
+
|
|
9769
|
+
/**
|
|
9770
|
+
*
|
|
9771
|
+
*
|
|
9772
|
+
* ## Attributes & Properties
|
|
9773
|
+
*
|
|
9774
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
9775
|
+
*
|
|
9776
|
+
* - `min-choices`/`minChoices`: undefined
|
|
9777
|
+
* - `max-choices`/`maxChoices`: undefined
|
|
9746
9778
|
* - `response-identifier`/`responseIdentifier`: undefined
|
|
9747
9779
|
* - `disabled`: undefined
|
|
9748
9780
|
* - `readonly`: undefined
|
|
@@ -9755,8 +9787,8 @@ export type CustomElementsSolidJs = {
|
|
|
9755
9787
|
* Creates a disabled copy positioned after this interaction.
|
|
9756
9788
|
* - `show-candidate-correction`/`showCandidateCorrection`: Shows feedback on candidate's selections compared to correct response.
|
|
9757
9789
|
* Adds `candidate-correct` / `candidate-incorrect` states to choices.
|
|
9758
|
-
* - `grImage`: undefined (property only)
|
|
9759
9790
|
* - `response`: undefined (property only)
|
|
9791
|
+
* - `value`: undefined (property only)
|
|
9760
9792
|
* - `internals`: undefined (property only) (readonly)
|
|
9761
9793
|
* - `isFullCorrectResponse`: undefined (property only)
|
|
9762
9794
|
* - `correctResponse`: Get/set correct response programmatically.
|
|
@@ -9766,7 +9798,6 @@ export type CustomElementsSolidJs = {
|
|
|
9766
9798
|
* item context mode (using responseVariable). (property only) (readonly)
|
|
9767
9799
|
* - `isInline`: undefined (property only) (readonly)
|
|
9768
9800
|
* - `responseVariable`: undefined (property only) (readonly)
|
|
9769
|
-
* - `value`: undefined (property only)
|
|
9770
9801
|
*
|
|
9771
9802
|
* ## Events
|
|
9772
9803
|
*
|
|
@@ -9779,49 +9810,19 @@ export type CustomElementsSolidJs = {
|
|
|
9779
9810
|
*
|
|
9780
9811
|
* Methods that can be called to access component functionality.
|
|
9781
9812
|
*
|
|
9782
|
-
* - `reset() => void`: undefined
|
|
9783
|
-
* - `validate() => boolean`: undefined
|
|
9784
9813
|
* - `toggleCorrectResponse(show: boolean) => void`: undefined
|
|
9785
9814
|
* - `toggleCandidateCorrection(show: boolean) => void`: undefined
|
|
9815
|
+
* - `validate() => boolean`: undefined
|
|
9786
9816
|
* - `reportValidity() => boolean`: undefined
|
|
9817
|
+
* - `reset() => void`: undefined
|
|
9787
9818
|
* - `formResetCallback() => void`: Called by the browser when the associated form is reset.
|
|
9788
9819
|
* Part of the Form-Associated Custom Elements API.
|
|
9789
9820
|
* - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
|
|
9790
9821
|
*/
|
|
9791
|
-
"qti-graphic-
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
BaseProps<
|
|
9795
|
-
BaseEvents
|
|
9796
|
-
>;
|
|
9797
|
-
|
|
9798
|
-
/**
|
|
9799
|
-
*
|
|
9800
|
-
*
|
|
9801
|
-
* ## Attributes & Properties
|
|
9802
|
-
*
|
|
9803
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
9804
|
-
*
|
|
9805
|
-
* - `allowReorder`: undefined (property only)
|
|
9806
|
-
* - `sortablePlaceholderConfig`: undefined (property only)
|
|
9807
|
-
* - `sortableAnimationConfig`: undefined (property only)
|
|
9808
|
-
* - `isDraggingFromSlot`: undefined (property only) (readonly)
|
|
9809
|
-
*
|
|
9810
|
-
* ## Methods
|
|
9811
|
-
*
|
|
9812
|
-
* Methods that can be called to access component functionality.
|
|
9813
|
-
*
|
|
9814
|
-
* - `shouldReturnToInventoryOnInventoryDrop() => boolean`: undefined
|
|
9815
|
-
* - `initiateDrag(dragElement: HTMLElement, startX: number, startY: number, inputType: 'mouse' | 'touch', rest: [eventSource?: 'pointer' | 'mouse' | 'touch']) => void`: undefined
|
|
9816
|
-
* - `onSortableDragMove(clientX: number, clientY: number) => void`: undefined
|
|
9817
|
-
* - `allowDrop(draggable: HTMLElement, droppable: HTMLElement) => boolean`: undefined
|
|
9818
|
-
* - `handleDrop(draggable: HTMLElement, droppable: HTMLElement) => void`: undefined
|
|
9819
|
-
* - `handleInvalidDrop(dragSource: HTMLElement | null) => void`: undefined
|
|
9820
|
-
*/
|
|
9821
|
-
"qti-graphic-gap-match-interaction": Partial<
|
|
9822
|
-
QtiGraphicGapMatchInteractionProps &
|
|
9823
|
-
QtiGraphicGapMatchInteractionSolidJsProps &
|
|
9824
|
-
BaseProps<QtiGraphicGapMatchInteraction> &
|
|
9822
|
+
"qti-graphic-order-interaction": Partial<
|
|
9823
|
+
QtiGraphicOrderInteractionProps &
|
|
9824
|
+
QtiGraphicOrderInteractionSolidJsProps &
|
|
9825
|
+
BaseProps<QtiGraphicOrderInteraction> &
|
|
9825
9826
|
BaseEvents
|
|
9826
9827
|
>;
|
|
9827
9828
|
|
|
@@ -9832,8 +9833,6 @@ export type CustomElementsSolidJs = {
|
|
|
9832
9833
|
*
|
|
9833
9834
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
9834
9835
|
*
|
|
9835
|
-
* - `min-choices`/`minChoices`: undefined
|
|
9836
|
-
* - `max-choices`/`maxChoices`: undefined
|
|
9837
9836
|
* - `response-identifier`/`responseIdentifier`: undefined
|
|
9838
9837
|
* - `disabled`: undefined
|
|
9839
9838
|
* - `readonly`: undefined
|
|
@@ -9846,8 +9845,8 @@ export type CustomElementsSolidJs = {
|
|
|
9846
9845
|
* Creates a disabled copy positioned after this interaction.
|
|
9847
9846
|
* - `show-candidate-correction`/`showCandidateCorrection`: Shows feedback on candidate's selections compared to correct response.
|
|
9848
9847
|
* Adds `candidate-correct` / `candidate-incorrect` states to choices.
|
|
9848
|
+
* - `grImage`: undefined (property only)
|
|
9849
9849
|
* - `response`: undefined (property only)
|
|
9850
|
-
* - `value`: undefined (property only)
|
|
9851
9850
|
* - `internals`: undefined (property only) (readonly)
|
|
9852
9851
|
* - `isFullCorrectResponse`: undefined (property only)
|
|
9853
9852
|
* - `correctResponse`: Get/set correct response programmatically.
|
|
@@ -9857,6 +9856,7 @@ export type CustomElementsSolidJs = {
|
|
|
9857
9856
|
* item context mode (using responseVariable). (property only) (readonly)
|
|
9858
9857
|
* - `isInline`: undefined (property only) (readonly)
|
|
9859
9858
|
* - `responseVariable`: undefined (property only) (readonly)
|
|
9859
|
+
* - `value`: undefined (property only)
|
|
9860
9860
|
*
|
|
9861
9861
|
* ## Events
|
|
9862
9862
|
*
|
|
@@ -9869,19 +9869,19 @@ export type CustomElementsSolidJs = {
|
|
|
9869
9869
|
*
|
|
9870
9870
|
* Methods that can be called to access component functionality.
|
|
9871
9871
|
*
|
|
9872
|
+
* - `reset() => void`: undefined
|
|
9873
|
+
* - `validate() => boolean`: undefined
|
|
9872
9874
|
* - `toggleCorrectResponse(show: boolean) => void`: undefined
|
|
9873
9875
|
* - `toggleCandidateCorrection(show: boolean) => void`: undefined
|
|
9874
|
-
* - `validate() => boolean`: undefined
|
|
9875
9876
|
* - `reportValidity() => boolean`: undefined
|
|
9876
|
-
* - `reset() => void`: undefined
|
|
9877
9877
|
* - `formResetCallback() => void`: Called by the browser when the associated form is reset.
|
|
9878
9878
|
* Part of the Form-Associated Custom Elements API.
|
|
9879
9879
|
* - `saveResponse(value: string | string[], state?: string | null) => void`: undefined
|
|
9880
9880
|
*/
|
|
9881
|
-
"qti-graphic-
|
|
9882
|
-
|
|
9883
|
-
|
|
9884
|
-
BaseProps<
|
|
9881
|
+
"qti-graphic-associate-interaction": Partial<
|
|
9882
|
+
QtiGraphicAssociateInteractionProps &
|
|
9883
|
+
QtiGraphicAssociateInteractionSolidJsProps &
|
|
9884
|
+
BaseProps<QtiGraphicAssociateInteraction> &
|
|
9885
9885
|
BaseEvents
|
|
9886
9886
|
>;
|
|
9887
9887
|
|
package/dist/test.js
CHANGED
|
@@ -23,12 +23,12 @@ import {
|
|
|
23
23
|
TestStamp,
|
|
24
24
|
TestView,
|
|
25
25
|
TestViewToggle
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-D6EHVZG2.js";
|
|
27
|
+
import "./chunk-3XXXAWMZ.js";
|
|
28
|
+
import "./chunk-DGIXWHK3.js";
|
|
29
|
+
import "./chunk-CVB5ISWF.js";
|
|
30
30
|
import "./chunk-K7HR6ZAY.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-A7HX4462.js";
|
|
32
32
|
import "./chunk-QXBXORM3.js";
|
|
33
33
|
export {
|
|
34
34
|
QtiAssessmentItemRef,
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citolab/qti-components",
|
|
3
3
|
"description": "QTI component utilities",
|
|
4
|
-
"version": "7.27.
|
|
4
|
+
"version": "7.27.3",
|
|
5
5
|
"author": "",
|
|
6
6
|
"customElements": "custom-elements.json",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@heximal/templates": "^0.1.5",
|
|
9
9
|
"@lit/context": "^1.1.6",
|
|
10
|
-
"lit": "^3.3.
|
|
10
|
+
"lit": "^3.3.2"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@qti-components/
|
|
14
|
-
"@qti-components/elements": "^1.6.
|
|
15
|
-
"@qti-components/
|
|
16
|
-
"@qti-components/
|
|
17
|
-
"@qti-components/
|
|
18
|
-
"@qti-components/
|
|
19
|
-
"@qti-components/
|
|
20
|
-
"@qti-components/theme": "^1.3.
|
|
21
|
-
"@qti-components/transformers": "^1.6.
|
|
13
|
+
"@qti-components/interactions": "^1.10.2",
|
|
14
|
+
"@qti-components/elements": "^1.6.2",
|
|
15
|
+
"@qti-components/base": "^1.4.2",
|
|
16
|
+
"@qti-components/item": "^1.3.2",
|
|
17
|
+
"@qti-components/loader": "^1.3.2",
|
|
18
|
+
"@qti-components/processing": "^1.3.2",
|
|
19
|
+
"@qti-components/test": "^1.4.2",
|
|
20
|
+
"@qti-components/theme": "^1.3.2",
|
|
21
|
+
"@qti-components/transformers": "^1.6.2"
|
|
22
22
|
},
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|