@citolab/qti-components 6.4.0 → 6.4.4
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/dist/{chunk-C4LCNAWX.js → chunk-67E36LYB.js} +170 -3
- package/dist/{chunk-4UAPG3LE.cjs → chunk-BD6FQ6G6.cjs} +169 -2
- package/dist/chunk-N4M5S3KO.js +416 -0
- package/dist/chunk-ULLHUYN2.cjs +416 -0
- package/dist/custom-elements.json +519 -513
- package/dist/index.cjs +508 -330
- package/dist/index.css +167 -0
- package/dist/index.d.cts +15 -11
- package/dist/index.d.ts +15 -11
- package/dist/index.js +507 -329
- package/dist/qti-item/index.cjs +1 -1
- package/dist/qti-item/index.js +1 -1
- package/dist/qti-item-react/index.cjs +1 -1
- package/dist/qti-item-react/index.js +1 -1
- package/dist/qti-test/index.cjs +1 -1
- package/dist/qti-test/index.d.cts +15 -11
- package/dist/qti-test/index.d.ts +15 -11
- package/dist/qti-test/index.js +1 -1
- package/dist/qti-test-react/index.cjs +1 -1
- package/dist/qti-test-react/index.d.cts +2 -0
- package/dist/qti-test-react/index.d.ts +2 -0
- package/dist/qti-test-react/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-DMECNMIP.js +0 -405
- package/dist/chunk-W7PJYSDO.cjs +0 -405
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as n}from"./chunk-AWSFYZS5.js";import{c as i}from"./chunk-YWGBLO7P.js";import{css as c,html as d,LitElement as g}from"lit";import{customElement as h,property as e,state as
|
|
1
|
+
import{a as n}from"./chunk-AWSFYZS5.js";import{c as i}from"./chunk-YWGBLO7P.js";import{css as c,html as d,LitElement as g}from"lit";import{customElement as h,property as e,state as p}from"lit/decorators.js";import{unsafeHTML as l}from"lit/directives/unsafe-html.js";var s=`
|
|
2
2
|
/** default styles for all components */
|
|
3
3
|
*, ::before, ::after{
|
|
4
4
|
--tw-border-spacing-x: 0;
|
|
@@ -1929,7 +1929,174 @@ qti-choice-interaction.qti-orientation-horizontal {
|
|
|
1929
1929
|
qti-choice-interaction[orientation='horizontal'] {
|
|
1930
1930
|
flex-direction: row;
|
|
1931
1931
|
}
|
|
1932
|
-
|
|
1932
|
+
/* only applied in qti-test, if present */
|
|
1933
|
+
/*
|
|
1934
|
+
::host {
|
|
1935
|
+
@apply h-screen w-screen bg-slate-50;
|
|
1936
|
+
}
|
|
1937
|
+
*/
|
|
1938
|
+
/* qti-assessment-test {
|
|
1939
|
+
@apply grid h-full w-full grid-cols-3;
|
|
1940
|
+
qti-test-part {
|
|
1941
|
+
@apply container col-span-3 mx-auto aspect-[4/3];
|
|
1942
|
+
}
|
|
1943
|
+
} */
|
|
1944
|
+
qti-assessment-test qti-test-part qti-assessment-section{
|
|
1945
|
+
display: block;
|
|
1946
|
+
overflow-y: auto;
|
|
1947
|
+
border-radius: 0.125rem;
|
|
1948
|
+
--tw-bg-opacity: 1;
|
|
1949
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1950
|
+
padding: 2rem;
|
|
1951
|
+
}
|
|
1952
|
+
qti-assessment-test .nav{
|
|
1953
|
+
isolation: isolate;
|
|
1954
|
+
margin-top: 1rem;
|
|
1955
|
+
display: inline-flex;
|
|
1956
|
+
width: 100%;
|
|
1957
|
+
}
|
|
1958
|
+
qti-assessment-test .nav > :not([hidden]) ~ :not([hidden]){
|
|
1959
|
+
--tw-space-x-reverse: 0;
|
|
1960
|
+
margin-right: calc(-1px * var(--tw-space-x-reverse));
|
|
1961
|
+
margin-left: calc(-1px * calc(1 - var(--tw-space-x-reverse)));
|
|
1962
|
+
}
|
|
1963
|
+
qti-assessment-test .nav{
|
|
1964
|
+
border-radius: 0.375rem;
|
|
1965
|
+
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
1966
|
+
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
1967
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1968
|
+
}
|
|
1969
|
+
qti-assessment-test test-prev::part(button) {
|
|
1970
|
+
all: unset;
|
|
1971
|
+
position: relative;
|
|
1972
|
+
display: inline-flex;
|
|
1973
|
+
align-items: center;
|
|
1974
|
+
border-top-left-radius: 0.375rem;
|
|
1975
|
+
border-bottom-left-radius: 0.375rem;
|
|
1976
|
+
--tw-bg-opacity: 1;
|
|
1977
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1978
|
+
padding-top: 0.5rem;
|
|
1979
|
+
padding-bottom: 0.5rem;
|
|
1980
|
+
padding-left: 0.5rem;
|
|
1981
|
+
padding-right: 1rem;
|
|
1982
|
+
--tw-text-opacity: 1;
|
|
1983
|
+
color: rgb(156 163 175 / var(--tw-text-opacity));
|
|
1984
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1985
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1986
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1987
|
+
--tw-ring-inset: inset;
|
|
1988
|
+
--tw-ring-opacity: 1;
|
|
1989
|
+
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
1990
|
+
}
|
|
1991
|
+
qti-assessment-test test-prev::part(button):hover{
|
|
1992
|
+
--tw-bg-opacity: 1;
|
|
1993
|
+
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1994
|
+
}
|
|
1995
|
+
qti-assessment-test test-prev::part(button):focus{
|
|
1996
|
+
z-index: 20;
|
|
1997
|
+
outline-offset: 0px;
|
|
1998
|
+
}
|
|
1999
|
+
qti-assessment-test test-slider::part(input){
|
|
2000
|
+
width: 100%;
|
|
2001
|
+
}
|
|
2002
|
+
qti-assessment-test test-next::part(button) {
|
|
2003
|
+
all: unset;
|
|
2004
|
+
position: relative;
|
|
2005
|
+
display: inline-flex;
|
|
2006
|
+
align-items: center;
|
|
2007
|
+
border-top-right-radius: 0.375rem;
|
|
2008
|
+
border-bottom-right-radius: 0.375rem;
|
|
2009
|
+
--tw-bg-opacity: 1;
|
|
2010
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
2011
|
+
padding-top: 0.5rem;
|
|
2012
|
+
padding-bottom: 0.5rem;
|
|
2013
|
+
padding-left: 1rem;
|
|
2014
|
+
padding-right: 0.5rem;
|
|
2015
|
+
--tw-text-opacity: 1;
|
|
2016
|
+
color: rgb(156 163 175 / var(--tw-text-opacity));
|
|
2017
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2018
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2019
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2020
|
+
--tw-ring-inset: inset;
|
|
2021
|
+
--tw-ring-opacity: 1;
|
|
2022
|
+
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
2023
|
+
}
|
|
2024
|
+
qti-assessment-test test-next::part(button):hover{
|
|
2025
|
+
--tw-bg-opacity: 1;
|
|
2026
|
+
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
2027
|
+
}
|
|
2028
|
+
qti-assessment-test test-next::part(button):focus{
|
|
2029
|
+
z-index: 20;
|
|
2030
|
+
outline-offset: 0px;
|
|
2031
|
+
}
|
|
2032
|
+
qti-assessment-test test-paging-buttons{
|
|
2033
|
+
display: none;
|
|
2034
|
+
width: 100%;
|
|
2035
|
+
justify-content: center;
|
|
2036
|
+
}
|
|
2037
|
+
@media (min-width: 768px){
|
|
2038
|
+
qti-assessment-test test-paging-buttons{
|
|
2039
|
+
margin-top: -1px;
|
|
2040
|
+
display: flex;
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
qti-assessment-test test-paging-buttons > button{
|
|
2044
|
+
position: relative;
|
|
2045
|
+
display: inline-flex;
|
|
2046
|
+
align-items: center;
|
|
2047
|
+
--tw-bg-opacity: 1;
|
|
2048
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
2049
|
+
padding-left: 1rem;
|
|
2050
|
+
padding-right: 1rem;
|
|
2051
|
+
padding-top: 0.5rem;
|
|
2052
|
+
padding-bottom: 0.5rem;
|
|
2053
|
+
font-size: 0.875rem;
|
|
2054
|
+
line-height: 1.25rem;
|
|
2055
|
+
font-weight: 600;
|
|
2056
|
+
--tw-text-opacity: 1;
|
|
2057
|
+
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
2058
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2059
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2060
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2061
|
+
--tw-ring-inset: inset;
|
|
2062
|
+
--tw-ring-opacity: 1;
|
|
2063
|
+
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
2064
|
+
}
|
|
2065
|
+
qti-assessment-test test-paging-buttons > button:hover{
|
|
2066
|
+
--tw-bg-opacity: 1;
|
|
2067
|
+
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
2068
|
+
}
|
|
2069
|
+
qti-assessment-test test-paging-buttons > button:focus{
|
|
2070
|
+
z-index: 20;
|
|
2071
|
+
outline-offset: 0px;
|
|
2072
|
+
}
|
|
2073
|
+
qti-assessment-test test-paging-buttons > button[data-active-item='true']{
|
|
2074
|
+
position: relative;
|
|
2075
|
+
z-index: 10;
|
|
2076
|
+
display: inline-flex;
|
|
2077
|
+
align-items: center;
|
|
2078
|
+
--tw-bg-opacity: 1;
|
|
2079
|
+
background-color: rgb(79 70 229 / var(--tw-bg-opacity));
|
|
2080
|
+
padding-left: 1rem;
|
|
2081
|
+
padding-right: 1rem;
|
|
2082
|
+
padding-top: 0.5rem;
|
|
2083
|
+
padding-bottom: 0.5rem;
|
|
2084
|
+
font-size: 0.875rem;
|
|
2085
|
+
line-height: 1.25rem;
|
|
2086
|
+
font-weight: 600;
|
|
2087
|
+
--tw-text-opacity: 1;
|
|
2088
|
+
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
2089
|
+
}
|
|
2090
|
+
qti-assessment-test test-paging-buttons > button[data-active-item='true']:focus{
|
|
2091
|
+
z-index: 20;
|
|
2092
|
+
}
|
|
2093
|
+
qti-assessment-test test-paging-buttons > button[data-active-item='true']:focus-visible{
|
|
2094
|
+
outline-style: solid;
|
|
2095
|
+
outline-width: 2px;
|
|
2096
|
+
outline-offset: 2px;
|
|
2097
|
+
outline-color: #4f46e5;
|
|
2098
|
+
}
|
|
2099
|
+
`;var o=class extends g{constructor(){super();this.itemLocation="";this.disabled=!1;this._xml="";this.audienceContext={view:"candidate"};this.render=()=>d`${l(this._xml)}<slot></slot>`;this.addEventListener("qti-item-first-updated",t=>{this.checkAudienceContext()})}update(t){t.has("disabled")&&this.assessmentItem&&(this.assessmentItem.disabled=this.disabled),t.has("audienceContext")&&this.checkAudienceContext(),super.update(t)}checkAudienceContext(){var t,a;(t=this.shadowRoot.querySelectorAll("[view]"))==null||t.forEach(r=>{r.getAttribute("view")===this.audienceContext.view?r.classList.add("show"):r.classList.remove("show")}),(a=this.assessmentItem)==null||a.showCorrectResponse(this.audienceContext.view==="scorer")}set xml(t){this._xml=n(t).customTypes().cDataToComment().customDefinition().assetsLocation(`${this.itemLocation}`).xml()}set css(t){var r;let a=new CSSStyleSheet;a.replaceSync(t),(r=this.shadowRoot)==null||r.adoptedStyleSheets.push(a)}get assessmentItem(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector("qti-assessment-item")}connectedCallback(){super.connectedCallback(),this.css=s}};o.styles=c`
|
|
1933
2100
|
[view],
|
|
1934
2101
|
qti-outcome-declaration,
|
|
1935
2102
|
qti-response-declaration {
|
|
@@ -1938,4 +2105,4 @@ qti-choice-interaction[orientation='horizontal'] {
|
|
|
1938
2105
|
[view].show {
|
|
1939
2106
|
display: block;
|
|
1940
2107
|
}
|
|
1941
|
-
`,i([e({type:String,attribute:"item-location"})],o.prototype,"itemLocation",2),i([e({type:Boolean,attribute:!1})],o.prototype,"disabled",2),i([
|
|
2108
|
+
`,i([e({type:String,attribute:"item-location"})],o.prototype,"itemLocation",2),i([e({type:Boolean,attribute:!1})],o.prototype,"disabled",2),i([p()],o.prototype,"_xml",2),i([e({attribute:!1})],o.prototype,"audienceContext",2),o=i([h("qti-item")],o);export{o as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkCCQXZDO6cjs = require('./chunk-CCQXZDO6.cjs');var _chunkHYQC3D4Zcjs = require('./chunk-HYQC3D4Z.cjs');var _lit = require('lit');var _decoratorsjs = require('lit/decorators.js');var _unsafehtmljs = require('lit/directives/unsafe-html.js');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkCCQXZDO6cjs = require('./chunk-CCQXZDO6.cjs');var _chunkHYQC3D4Zcjs = require('./chunk-HYQC3D4Z.cjs');var _lit = require('lit');var _decoratorsjs = require('lit/decorators.js');var _unsafehtmljs = require('lit/directives/unsafe-html.js');var s=`
|
|
2
2
|
/** default styles for all components */
|
|
3
3
|
*, ::before, ::after{
|
|
4
4
|
--tw-border-spacing-x: 0;
|
|
@@ -1929,7 +1929,174 @@ qti-choice-interaction.qti-orientation-horizontal {
|
|
|
1929
1929
|
qti-choice-interaction[orientation='horizontal'] {
|
|
1930
1930
|
flex-direction: row;
|
|
1931
1931
|
}
|
|
1932
|
-
|
|
1932
|
+
/* only applied in qti-test, if present */
|
|
1933
|
+
/*
|
|
1934
|
+
::host {
|
|
1935
|
+
@apply h-screen w-screen bg-slate-50;
|
|
1936
|
+
}
|
|
1937
|
+
*/
|
|
1938
|
+
/* qti-assessment-test {
|
|
1939
|
+
@apply grid h-full w-full grid-cols-3;
|
|
1940
|
+
qti-test-part {
|
|
1941
|
+
@apply container col-span-3 mx-auto aspect-[4/3];
|
|
1942
|
+
}
|
|
1943
|
+
} */
|
|
1944
|
+
qti-assessment-test qti-test-part qti-assessment-section{
|
|
1945
|
+
display: block;
|
|
1946
|
+
overflow-y: auto;
|
|
1947
|
+
border-radius: 0.125rem;
|
|
1948
|
+
--tw-bg-opacity: 1;
|
|
1949
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1950
|
+
padding: 2rem;
|
|
1951
|
+
}
|
|
1952
|
+
qti-assessment-test .nav{
|
|
1953
|
+
isolation: isolate;
|
|
1954
|
+
margin-top: 1rem;
|
|
1955
|
+
display: inline-flex;
|
|
1956
|
+
width: 100%;
|
|
1957
|
+
}
|
|
1958
|
+
qti-assessment-test .nav > :not([hidden]) ~ :not([hidden]){
|
|
1959
|
+
--tw-space-x-reverse: 0;
|
|
1960
|
+
margin-right: calc(-1px * var(--tw-space-x-reverse));
|
|
1961
|
+
margin-left: calc(-1px * calc(1 - var(--tw-space-x-reverse)));
|
|
1962
|
+
}
|
|
1963
|
+
qti-assessment-test .nav{
|
|
1964
|
+
border-radius: 0.375rem;
|
|
1965
|
+
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
1966
|
+
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
1967
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1968
|
+
}
|
|
1969
|
+
qti-assessment-test test-prev::part(button) {
|
|
1970
|
+
all: unset;
|
|
1971
|
+
position: relative;
|
|
1972
|
+
display: inline-flex;
|
|
1973
|
+
align-items: center;
|
|
1974
|
+
border-top-left-radius: 0.375rem;
|
|
1975
|
+
border-bottom-left-radius: 0.375rem;
|
|
1976
|
+
--tw-bg-opacity: 1;
|
|
1977
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1978
|
+
padding-top: 0.5rem;
|
|
1979
|
+
padding-bottom: 0.5rem;
|
|
1980
|
+
padding-left: 0.5rem;
|
|
1981
|
+
padding-right: 1rem;
|
|
1982
|
+
--tw-text-opacity: 1;
|
|
1983
|
+
color: rgb(156 163 175 / var(--tw-text-opacity));
|
|
1984
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1985
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1986
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1987
|
+
--tw-ring-inset: inset;
|
|
1988
|
+
--tw-ring-opacity: 1;
|
|
1989
|
+
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
1990
|
+
}
|
|
1991
|
+
qti-assessment-test test-prev::part(button):hover{
|
|
1992
|
+
--tw-bg-opacity: 1;
|
|
1993
|
+
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1994
|
+
}
|
|
1995
|
+
qti-assessment-test test-prev::part(button):focus{
|
|
1996
|
+
z-index: 20;
|
|
1997
|
+
outline-offset: 0px;
|
|
1998
|
+
}
|
|
1999
|
+
qti-assessment-test test-slider::part(input){
|
|
2000
|
+
width: 100%;
|
|
2001
|
+
}
|
|
2002
|
+
qti-assessment-test test-next::part(button) {
|
|
2003
|
+
all: unset;
|
|
2004
|
+
position: relative;
|
|
2005
|
+
display: inline-flex;
|
|
2006
|
+
align-items: center;
|
|
2007
|
+
border-top-right-radius: 0.375rem;
|
|
2008
|
+
border-bottom-right-radius: 0.375rem;
|
|
2009
|
+
--tw-bg-opacity: 1;
|
|
2010
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
2011
|
+
padding-top: 0.5rem;
|
|
2012
|
+
padding-bottom: 0.5rem;
|
|
2013
|
+
padding-left: 1rem;
|
|
2014
|
+
padding-right: 0.5rem;
|
|
2015
|
+
--tw-text-opacity: 1;
|
|
2016
|
+
color: rgb(156 163 175 / var(--tw-text-opacity));
|
|
2017
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2018
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2019
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2020
|
+
--tw-ring-inset: inset;
|
|
2021
|
+
--tw-ring-opacity: 1;
|
|
2022
|
+
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
2023
|
+
}
|
|
2024
|
+
qti-assessment-test test-next::part(button):hover{
|
|
2025
|
+
--tw-bg-opacity: 1;
|
|
2026
|
+
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
2027
|
+
}
|
|
2028
|
+
qti-assessment-test test-next::part(button):focus{
|
|
2029
|
+
z-index: 20;
|
|
2030
|
+
outline-offset: 0px;
|
|
2031
|
+
}
|
|
2032
|
+
qti-assessment-test test-paging-buttons{
|
|
2033
|
+
display: none;
|
|
2034
|
+
width: 100%;
|
|
2035
|
+
justify-content: center;
|
|
2036
|
+
}
|
|
2037
|
+
@media (min-width: 768px){
|
|
2038
|
+
qti-assessment-test test-paging-buttons{
|
|
2039
|
+
margin-top: -1px;
|
|
2040
|
+
display: flex;
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
qti-assessment-test test-paging-buttons > button{
|
|
2044
|
+
position: relative;
|
|
2045
|
+
display: inline-flex;
|
|
2046
|
+
align-items: center;
|
|
2047
|
+
--tw-bg-opacity: 1;
|
|
2048
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
2049
|
+
padding-left: 1rem;
|
|
2050
|
+
padding-right: 1rem;
|
|
2051
|
+
padding-top: 0.5rem;
|
|
2052
|
+
padding-bottom: 0.5rem;
|
|
2053
|
+
font-size: 0.875rem;
|
|
2054
|
+
line-height: 1.25rem;
|
|
2055
|
+
font-weight: 600;
|
|
2056
|
+
--tw-text-opacity: 1;
|
|
2057
|
+
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
2058
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2059
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2060
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2061
|
+
--tw-ring-inset: inset;
|
|
2062
|
+
--tw-ring-opacity: 1;
|
|
2063
|
+
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
2064
|
+
}
|
|
2065
|
+
qti-assessment-test test-paging-buttons > button:hover{
|
|
2066
|
+
--tw-bg-opacity: 1;
|
|
2067
|
+
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
2068
|
+
}
|
|
2069
|
+
qti-assessment-test test-paging-buttons > button:focus{
|
|
2070
|
+
z-index: 20;
|
|
2071
|
+
outline-offset: 0px;
|
|
2072
|
+
}
|
|
2073
|
+
qti-assessment-test test-paging-buttons > button[data-active-item='true']{
|
|
2074
|
+
position: relative;
|
|
2075
|
+
z-index: 10;
|
|
2076
|
+
display: inline-flex;
|
|
2077
|
+
align-items: center;
|
|
2078
|
+
--tw-bg-opacity: 1;
|
|
2079
|
+
background-color: rgb(79 70 229 / var(--tw-bg-opacity));
|
|
2080
|
+
padding-left: 1rem;
|
|
2081
|
+
padding-right: 1rem;
|
|
2082
|
+
padding-top: 0.5rem;
|
|
2083
|
+
padding-bottom: 0.5rem;
|
|
2084
|
+
font-size: 0.875rem;
|
|
2085
|
+
line-height: 1.25rem;
|
|
2086
|
+
font-weight: 600;
|
|
2087
|
+
--tw-text-opacity: 1;
|
|
2088
|
+
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
2089
|
+
}
|
|
2090
|
+
qti-assessment-test test-paging-buttons > button[data-active-item='true']:focus{
|
|
2091
|
+
z-index: 20;
|
|
2092
|
+
}
|
|
2093
|
+
qti-assessment-test test-paging-buttons > button[data-active-item='true']:focus-visible{
|
|
2094
|
+
outline-style: solid;
|
|
2095
|
+
outline-width: 2px;
|
|
2096
|
+
outline-offset: 2px;
|
|
2097
|
+
outline-color: #4f46e5;
|
|
2098
|
+
}
|
|
2099
|
+
`;var o=class extends _lit.LitElement{constructor(){super();this.itemLocation="";this.disabled=!1;this._xml="";this.audienceContext={view:"candidate"};this.render=()=>_lit.html`${_unsafehtmljs.unsafeHTML.call(void 0, this._xml)}<slot></slot>`;this.addEventListener("qti-item-first-updated",t=>{this.checkAudienceContext()})}update(t){t.has("disabled")&&this.assessmentItem&&(this.assessmentItem.disabled=this.disabled),t.has("audienceContext")&&this.checkAudienceContext(),super.update(t)}checkAudienceContext(){var t,a;(t=this.shadowRoot.querySelectorAll("[view]"))==null||t.forEach(r=>{r.getAttribute("view")===this.audienceContext.view?r.classList.add("show"):r.classList.remove("show")}),(a=this.assessmentItem)==null||a.showCorrectResponse(this.audienceContext.view==="scorer")}set xml(t){this._xml=_chunkCCQXZDO6cjs.a.call(void 0, t).customTypes().cDataToComment().customDefinition().assetsLocation(`${this.itemLocation}`).xml()}set css(t){var r;let a=new CSSStyleSheet;a.replaceSync(t),(r=this.shadowRoot)==null||r.adoptedStyleSheets.push(a)}get assessmentItem(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector("qti-assessment-item")}connectedCallback(){super.connectedCallback(),this.css=s}};o.styles=_lit.css`
|
|
1933
2100
|
[view],
|
|
1934
2101
|
qti-outcome-declaration,
|
|
1935
2102
|
qti-response-declaration {
|