@citolab/qti-components 7.22.0 → 7.23.0
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 +2550 -2447
- package/custom-elements.json +91 -208
- package/dist/{chunk-J7X6NAL5.js → chunk-2EVAV2SS.js} +1117 -1365
- package/dist/chunk-2EVAV2SS.js.map +1 -0
- package/dist/{chunk-MF25NAZ4.js → chunk-5WZZMNCU.js} +2 -2
- package/dist/{chunk-MF25NAZ4.js.map → chunk-5WZZMNCU.js.map} +1 -1
- package/dist/{chunk-HCVDQUP7.js → chunk-AIS537EU.js} +1486 -1236
- package/dist/chunk-AIS537EU.js.map +1 -0
- package/dist/{chunk-YAGFD5RQ.js → chunk-DDKFUQ22.js} +2 -2
- package/dist/chunk-DDKFUQ22.js.map +1 -0
- package/dist/index.js +4 -4
- package/dist/interactions.d.ts +8 -23
- package/dist/interactions.js +1 -1
- package/dist/item.css +1484 -1234
- package/dist/item.js +2 -2
- package/dist/qti-components-jsx.d.ts +11563 -0
- package/dist/test.js +2 -2
- package/package.json +8 -8
- package/dist/chunk-HCVDQUP7.js.map +0 -1
- package/dist/chunk-J7X6NAL5.js.map +0 -1
- package/dist/chunk-YAGFD5RQ.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -16756,15 +16756,6 @@
|
|
|
16756
16756
|
"description": "",
|
|
16757
16757
|
"name": "QtiInlineChoiceInteraction",
|
|
16758
16758
|
"members": [
|
|
16759
|
-
{
|
|
16760
|
-
"kind": "field",
|
|
16761
|
-
"name": "_calculatedMinWidth",
|
|
16762
|
-
"type": {
|
|
16763
|
-
"text": "number"
|
|
16764
|
-
},
|
|
16765
|
-
"privacy": "private",
|
|
16766
|
-
"default": "0"
|
|
16767
|
-
},
|
|
16768
16759
|
{
|
|
16769
16760
|
"kind": "field",
|
|
16770
16761
|
"name": "_context",
|
|
@@ -16799,12 +16790,6 @@
|
|
|
16799
16790
|
"privacy": "protected",
|
|
16800
16791
|
"default": "false"
|
|
16801
16792
|
},
|
|
16802
|
-
{
|
|
16803
|
-
"kind": "method",
|
|
16804
|
-
"name": "_estimateOptimalWidth",
|
|
16805
|
-
"privacy": "private",
|
|
16806
|
-
"description": "Simple width estimation based on text content length - no DOM manipulation needed"
|
|
16807
|
-
},
|
|
16808
16793
|
{
|
|
16809
16794
|
"kind": "field",
|
|
16810
16795
|
"name": "_handleShowCandidateCorrectionChange",
|
|
@@ -16858,61 +16843,106 @@
|
|
|
16858
16843
|
},
|
|
16859
16844
|
{
|
|
16860
16845
|
"kind": "field",
|
|
16861
|
-
"name": "
|
|
16862
|
-
"type": {
|
|
16863
|
-
"text": "boolean | null"
|
|
16864
|
-
},
|
|
16846
|
+
"name": "_menuId",
|
|
16865
16847
|
"privacy": "private",
|
|
16866
|
-
"
|
|
16867
|
-
"default": "
|
|
16848
|
+
"readonly": true,
|
|
16849
|
+
"default": "`qti-inline-choice-menu-${inlineChoiceMenuCounter++}`"
|
|
16868
16850
|
},
|
|
16869
16851
|
{
|
|
16870
16852
|
"kind": "field",
|
|
16871
|
-
"name": "
|
|
16853
|
+
"name": "_slotObserver",
|
|
16872
16854
|
"type": {
|
|
16873
|
-
"text": "
|
|
16855
|
+
"text": "MutationObserver | null"
|
|
16874
16856
|
},
|
|
16875
16857
|
"privacy": "private",
|
|
16876
16858
|
"default": "null"
|
|
16877
16859
|
},
|
|
16878
16860
|
{
|
|
16879
16861
|
"kind": "method",
|
|
16880
|
-
"name": "#
|
|
16862
|
+
"name": "#allMenuOptions",
|
|
16863
|
+
"privacy": "private",
|
|
16864
|
+
"return": {
|
|
16865
|
+
"type": {
|
|
16866
|
+
"text": "HTMLElement[]"
|
|
16867
|
+
}
|
|
16868
|
+
}
|
|
16869
|
+
},
|
|
16870
|
+
{
|
|
16871
|
+
"kind": "method",
|
|
16872
|
+
"name": "#estimateOptimalWidth",
|
|
16881
16873
|
"privacy": "private"
|
|
16882
16874
|
},
|
|
16883
16875
|
{
|
|
16884
|
-
"kind": "
|
|
16885
|
-
"name": "#
|
|
16876
|
+
"kind": "method",
|
|
16877
|
+
"name": "#focusTrigger",
|
|
16886
16878
|
"privacy": "private"
|
|
16887
16879
|
},
|
|
16880
|
+
{
|
|
16881
|
+
"kind": "method",
|
|
16882
|
+
"name": "#getDeepActiveElement",
|
|
16883
|
+
"privacy": "private",
|
|
16884
|
+
"return": {
|
|
16885
|
+
"type": {
|
|
16886
|
+
"text": "Element | null"
|
|
16887
|
+
}
|
|
16888
|
+
}
|
|
16889
|
+
},
|
|
16890
|
+
{
|
|
16891
|
+
"kind": "method",
|
|
16892
|
+
"name": "#isElementInsideInteraction",
|
|
16893
|
+
"privacy": "private",
|
|
16894
|
+
"return": {
|
|
16895
|
+
"type": {
|
|
16896
|
+
"text": "boolean"
|
|
16897
|
+
}
|
|
16898
|
+
},
|
|
16899
|
+
"parameters": [
|
|
16900
|
+
{
|
|
16901
|
+
"name": "element",
|
|
16902
|
+
"type": {
|
|
16903
|
+
"text": "HTMLElement"
|
|
16904
|
+
}
|
|
16905
|
+
}
|
|
16906
|
+
]
|
|
16907
|
+
},
|
|
16908
|
+
{
|
|
16909
|
+
"kind": "method",
|
|
16910
|
+
"name": "#menuElement",
|
|
16911
|
+
"privacy": "private",
|
|
16912
|
+
"return": {
|
|
16913
|
+
"type": {
|
|
16914
|
+
"text": "HTMLElement | null"
|
|
16915
|
+
}
|
|
16916
|
+
}
|
|
16917
|
+
},
|
|
16888
16918
|
{
|
|
16889
16919
|
"kind": "field",
|
|
16890
|
-
"name": "#
|
|
16920
|
+
"name": "#onChoicesSlotChange",
|
|
16891
16921
|
"privacy": "private"
|
|
16892
16922
|
},
|
|
16893
16923
|
{
|
|
16894
16924
|
"kind": "field",
|
|
16895
|
-
"name": "#
|
|
16925
|
+
"name": "#onCustomMenuKeyDown",
|
|
16896
16926
|
"privacy": "private"
|
|
16897
16927
|
},
|
|
16898
16928
|
{
|
|
16899
16929
|
"kind": "field",
|
|
16900
|
-
"name": "#
|
|
16930
|
+
"name": "#onCustomTriggerKeyDown",
|
|
16901
16931
|
"privacy": "private"
|
|
16902
16932
|
},
|
|
16903
16933
|
{
|
|
16904
16934
|
"kind": "field",
|
|
16905
|
-
"name": "#
|
|
16935
|
+
"name": "#onMenuToggle",
|
|
16906
16936
|
"privacy": "private"
|
|
16907
16937
|
},
|
|
16908
16938
|
{
|
|
16909
16939
|
"kind": "field",
|
|
16910
|
-
"name": "#
|
|
16940
|
+
"name": "#onSlottedChoiceClick",
|
|
16911
16941
|
"privacy": "private"
|
|
16912
16942
|
},
|
|
16913
16943
|
{
|
|
16914
|
-
"kind": "
|
|
16915
|
-
"name": "#
|
|
16944
|
+
"kind": "field",
|
|
16945
|
+
"name": "#onTriggerClick",
|
|
16916
16946
|
"privacy": "private"
|
|
16917
16947
|
},
|
|
16918
16948
|
{
|
|
@@ -16953,14 +16983,18 @@
|
|
|
16953
16983
|
},
|
|
16954
16984
|
{
|
|
16955
16985
|
"kind": "method",
|
|
16956
|
-
"name": "#
|
|
16957
|
-
"privacy": "private"
|
|
16958
|
-
|
|
16959
|
-
|
|
16960
|
-
|
|
16961
|
-
|
|
16962
|
-
|
|
16963
|
-
|
|
16986
|
+
"name": "#startSlotObserver",
|
|
16987
|
+
"privacy": "private"
|
|
16988
|
+
},
|
|
16989
|
+
{
|
|
16990
|
+
"kind": "method",
|
|
16991
|
+
"name": "#syncSlottedChoices",
|
|
16992
|
+
"privacy": "private"
|
|
16993
|
+
},
|
|
16994
|
+
{
|
|
16995
|
+
"kind": "method",
|
|
16996
|
+
"name": "#teardownSlottedChoices",
|
|
16997
|
+
"privacy": "private"
|
|
16964
16998
|
},
|
|
16965
16999
|
{
|
|
16966
17000
|
"kind": "method",
|
|
@@ -17027,15 +17061,6 @@
|
|
|
17027
17061
|
"module": "packages/qti-base/src/abstract/interaction.ts"
|
|
17028
17062
|
}
|
|
17029
17063
|
},
|
|
17030
|
-
{
|
|
17031
|
-
"kind": "field",
|
|
17032
|
-
"name": "dataPrompt",
|
|
17033
|
-
"type": {
|
|
17034
|
-
"text": "string"
|
|
17035
|
-
},
|
|
17036
|
-
"default": "''",
|
|
17037
|
-
"attribute": "data-prompt"
|
|
17038
|
-
},
|
|
17039
17064
|
{
|
|
17040
17065
|
"kind": "field",
|
|
17041
17066
|
"name": "disabled",
|
|
@@ -17081,16 +17106,6 @@
|
|
|
17081
17106
|
"text": "formResetCallback() => void"
|
|
17082
17107
|
}
|
|
17083
17108
|
},
|
|
17084
|
-
{
|
|
17085
|
-
"kind": "field",
|
|
17086
|
-
"name": "inputWidthClass",
|
|
17087
|
-
"type": {
|
|
17088
|
-
"text": "array"
|
|
17089
|
-
},
|
|
17090
|
-
"privacy": "public",
|
|
17091
|
-
"static": true,
|
|
17092
|
-
"default": "[ '', 'qti-input-width-2', 'qti-input-width-1', 'qti-input-width-3', 'qti-input-width-4', 'qti-input-width-6', 'qti-input-width-10', 'qti-input-width-15', 'qti-input-width-20', 'qti-input-width-72' ]"
|
|
17093
|
-
},
|
|
17094
17109
|
{
|
|
17095
17110
|
"kind": "field",
|
|
17096
17111
|
"name": "internals",
|
|
@@ -17228,6 +17243,14 @@
|
|
|
17228
17243
|
"module": "packages/qti-base/src/abstract/interaction.ts"
|
|
17229
17244
|
}
|
|
17230
17245
|
},
|
|
17246
|
+
{
|
|
17247
|
+
"kind": "field",
|
|
17248
|
+
"name": "role",
|
|
17249
|
+
"type": {
|
|
17250
|
+
"text": "string"
|
|
17251
|
+
},
|
|
17252
|
+
"default": "'listbox'"
|
|
17253
|
+
},
|
|
17231
17254
|
{
|
|
17232
17255
|
"kind": "method",
|
|
17233
17256
|
"name": "saveResponse",
|
|
@@ -17428,6 +17451,12 @@
|
|
|
17428
17451
|
}
|
|
17429
17452
|
}
|
|
17430
17453
|
],
|
|
17454
|
+
"superclass": {
|
|
17455
|
+
"name": "Interaction",
|
|
17456
|
+
"package": "@qti-components/base"
|
|
17457
|
+
},
|
|
17458
|
+
"tagName": "qti-inline-choice-interaction",
|
|
17459
|
+
"customElement": true,
|
|
17431
17460
|
"attributes": [
|
|
17432
17461
|
{
|
|
17433
17462
|
"name": "correct-response",
|
|
@@ -17441,14 +17470,6 @@
|
|
|
17441
17470
|
"module": "packages/qti-base/src/abstract/interaction.ts"
|
|
17442
17471
|
}
|
|
17443
17472
|
},
|
|
17444
|
-
{
|
|
17445
|
-
"name": "data-prompt",
|
|
17446
|
-
"type": {
|
|
17447
|
-
"text": "string"
|
|
17448
|
-
},
|
|
17449
|
-
"default": "''",
|
|
17450
|
-
"fieldName": "dataPrompt"
|
|
17451
|
-
},
|
|
17452
17473
|
{
|
|
17453
17474
|
"name": "disabled",
|
|
17454
17475
|
"type": {
|
|
@@ -17532,12 +17553,6 @@
|
|
|
17532
17553
|
}
|
|
17533
17554
|
}
|
|
17534
17555
|
],
|
|
17535
|
-
"superclass": {
|
|
17536
|
-
"name": "Interaction",
|
|
17537
|
-
"package": "@qti-components/base"
|
|
17538
|
-
},
|
|
17539
|
-
"tagName": "qti-inline-choice-interaction",
|
|
17540
|
-
"customElement": true,
|
|
17541
17556
|
"events": [
|
|
17542
17557
|
{
|
|
17543
17558
|
"name": "qti-interaction-response",
|
|
@@ -22623,13 +22638,7 @@
|
|
|
22623
22638
|
"kind": "method",
|
|
22624
22639
|
"name": "#addMarkupToIframe",
|
|
22625
22640
|
"privacy": "private",
|
|
22626
|
-
"description": "IFRAME MODE: Add markup and properties to iframe"
|
|
22627
|
-
},
|
|
22628
|
-
{
|
|
22629
|
-
"kind": "method",
|
|
22630
|
-
"name": "#addStylesheetsToIframe",
|
|
22631
|
-
"privacy": "private",
|
|
22632
|
-
"description": "IFRAME MODE: Add stylesheets to iframe"
|
|
22641
|
+
"description": "IFRAME MODE: Add markup, stylesheets, and properties to iframe"
|
|
22633
22642
|
},
|
|
22634
22643
|
{
|
|
22635
22644
|
"kind": "method",
|
|
@@ -23053,37 +23062,6 @@
|
|
|
23053
23062
|
},
|
|
23054
23063
|
"description": "Build a QTI_CONTEXT record for PCI consumption"
|
|
23055
23064
|
},
|
|
23056
|
-
{
|
|
23057
|
-
"kind": "method",
|
|
23058
|
-
"name": "getSharedStylesheetConfig",
|
|
23059
|
-
"privacy": "private",
|
|
23060
|
-
"return": {
|
|
23061
|
-
"type": {
|
|
23062
|
-
"text": "{ content: string; scoped: boolean; key: string } | null"
|
|
23063
|
-
}
|
|
23064
|
-
}
|
|
23065
|
-
},
|
|
23066
|
-
{
|
|
23067
|
-
"kind": "method",
|
|
23068
|
-
"name": "getSharedStylesheetContent",
|
|
23069
|
-
"privacy": "private",
|
|
23070
|
-
"return": {
|
|
23071
|
-
"type": {
|
|
23072
|
-
"text": "string | null"
|
|
23073
|
-
}
|
|
23074
|
-
}
|
|
23075
|
-
},
|
|
23076
|
-
{
|
|
23077
|
-
"kind": "method",
|
|
23078
|
-
"name": "getStylesheetConfigs",
|
|
23079
|
-
"privacy": "private",
|
|
23080
|
-
"return": {
|
|
23081
|
-
"type": {
|
|
23082
|
-
"text": "Array<{ href?: string; content?: string; scoped?: boolean; key?: string }>"
|
|
23083
|
-
}
|
|
23084
|
-
},
|
|
23085
|
-
"description": "Collect qti-stylesheet elements for iframe injection"
|
|
23086
|
-
},
|
|
23087
23065
|
{
|
|
23088
23066
|
"kind": "method",
|
|
23089
23067
|
"name": "getTemplateVariables",
|
|
@@ -23307,25 +23285,6 @@
|
|
|
23307
23285
|
"text": "reset() => void"
|
|
23308
23286
|
}
|
|
23309
23287
|
},
|
|
23310
|
-
{
|
|
23311
|
-
"kind": "method",
|
|
23312
|
-
"name": "resolveStylesheetHref",
|
|
23313
|
-
"privacy": "private",
|
|
23314
|
-
"return": {
|
|
23315
|
-
"type": {
|
|
23316
|
-
"text": "string"
|
|
23317
|
-
}
|
|
23318
|
-
},
|
|
23319
|
-
"parameters": [
|
|
23320
|
-
{
|
|
23321
|
-
"name": "href",
|
|
23322
|
-
"type": {
|
|
23323
|
-
"text": "string"
|
|
23324
|
-
}
|
|
23325
|
-
}
|
|
23326
|
-
],
|
|
23327
|
-
"description": "Resolve stylesheet href against baseUrl or document origin"
|
|
23328
|
-
},
|
|
23329
23288
|
{
|
|
23330
23289
|
"kind": "field",
|
|
23331
23290
|
"name": "response",
|
|
@@ -24049,17 +24008,7 @@
|
|
|
24049
24008
|
"kind": "method",
|
|
24050
24009
|
"name": "#addMarkupToIframe",
|
|
24051
24010
|
"privacy": "private",
|
|
24052
|
-
"description": "IFRAME MODE: Add markup and properties to iframe",
|
|
24053
|
-
"inheritedFrom": {
|
|
24054
|
-
"name": "QtiPortableCustomInteraction",
|
|
24055
|
-
"module": "packages/qti-interactions/src/components/qti-portable-custom-interaction/qti-portable-custom-interaction.ts"
|
|
24056
|
-
}
|
|
24057
|
-
},
|
|
24058
|
-
{
|
|
24059
|
-
"kind": "method",
|
|
24060
|
-
"name": "#addStylesheetsToIframe",
|
|
24061
|
-
"privacy": "private",
|
|
24062
|
-
"description": "IFRAME MODE: Add stylesheets to iframe",
|
|
24011
|
+
"description": "IFRAME MODE: Add markup, stylesheets, and properties to iframe",
|
|
24063
24012
|
"inheritedFrom": {
|
|
24064
24013
|
"name": "QtiPortableCustomInteraction",
|
|
24065
24014
|
"module": "packages/qti-interactions/src/components/qti-portable-custom-interaction/qti-portable-custom-interaction.ts"
|
|
@@ -24629,49 +24578,6 @@
|
|
|
24629
24578
|
"module": "packages/qti-interactions/src/components/qti-portable-custom-interaction/qti-portable-custom-interaction.ts"
|
|
24630
24579
|
}
|
|
24631
24580
|
},
|
|
24632
|
-
{
|
|
24633
|
-
"kind": "method",
|
|
24634
|
-
"name": "getSharedStylesheetConfig",
|
|
24635
|
-
"privacy": "private",
|
|
24636
|
-
"return": {
|
|
24637
|
-
"type": {
|
|
24638
|
-
"text": "{ content: string; scoped: boolean; key: string } | null"
|
|
24639
|
-
}
|
|
24640
|
-
},
|
|
24641
|
-
"inheritedFrom": {
|
|
24642
|
-
"name": "QtiPortableCustomInteraction",
|
|
24643
|
-
"module": "packages/qti-interactions/src/components/qti-portable-custom-interaction/qti-portable-custom-interaction.ts"
|
|
24644
|
-
}
|
|
24645
|
-
},
|
|
24646
|
-
{
|
|
24647
|
-
"kind": "method",
|
|
24648
|
-
"name": "getSharedStylesheetContent",
|
|
24649
|
-
"privacy": "private",
|
|
24650
|
-
"return": {
|
|
24651
|
-
"type": {
|
|
24652
|
-
"text": "string | null"
|
|
24653
|
-
}
|
|
24654
|
-
},
|
|
24655
|
-
"inheritedFrom": {
|
|
24656
|
-
"name": "QtiPortableCustomInteraction",
|
|
24657
|
-
"module": "packages/qti-interactions/src/components/qti-portable-custom-interaction/qti-portable-custom-interaction.ts"
|
|
24658
|
-
}
|
|
24659
|
-
},
|
|
24660
|
-
{
|
|
24661
|
-
"kind": "method",
|
|
24662
|
-
"name": "getStylesheetConfigs",
|
|
24663
|
-
"privacy": "private",
|
|
24664
|
-
"return": {
|
|
24665
|
-
"type": {
|
|
24666
|
-
"text": "Array<{ href?: string; content?: string; scoped?: boolean; key?: string }>"
|
|
24667
|
-
}
|
|
24668
|
-
},
|
|
24669
|
-
"description": "Collect qti-stylesheet elements for iframe injection",
|
|
24670
|
-
"inheritedFrom": {
|
|
24671
|
-
"name": "QtiPortableCustomInteraction",
|
|
24672
|
-
"module": "packages/qti-interactions/src/components/qti-portable-custom-interaction/qti-portable-custom-interaction.ts"
|
|
24673
|
-
}
|
|
24674
|
-
},
|
|
24675
24581
|
{
|
|
24676
24582
|
"kind": "method",
|
|
24677
24583
|
"name": "getTemplateVariables",
|
|
@@ -25128,29 +25034,6 @@
|
|
|
25128
25034
|
"text": "reset() => void"
|
|
25129
25035
|
}
|
|
25130
25036
|
},
|
|
25131
|
-
{
|
|
25132
|
-
"kind": "method",
|
|
25133
|
-
"name": "resolveStylesheetHref",
|
|
25134
|
-
"privacy": "private",
|
|
25135
|
-
"return": {
|
|
25136
|
-
"type": {
|
|
25137
|
-
"text": "string"
|
|
25138
|
-
}
|
|
25139
|
-
},
|
|
25140
|
-
"parameters": [
|
|
25141
|
-
{
|
|
25142
|
-
"name": "href",
|
|
25143
|
-
"type": {
|
|
25144
|
-
"text": "string"
|
|
25145
|
-
}
|
|
25146
|
-
}
|
|
25147
|
-
],
|
|
25148
|
-
"description": "Resolve stylesheet href against baseUrl or document origin",
|
|
25149
|
-
"inheritedFrom": {
|
|
25150
|
-
"name": "QtiPortableCustomInteraction",
|
|
25151
|
-
"module": "packages/qti-interactions/src/components/qti-portable-custom-interaction/qti-portable-custom-interaction.ts"
|
|
25152
|
-
}
|
|
25153
|
-
},
|
|
25154
25037
|
{
|
|
25155
25038
|
"kind": "field",
|
|
25156
25039
|
"name": "response",
|