@decidables/detectable-elements 0.1.2 → 0.1.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/CHANGELOG.md +12 -0
- package/lib/detectableElements.esm.js +15 -8
- package/lib/detectableElements.esm.js.map +1 -1
- package/lib/detectableElements.esm.min.js +15 -8
- package/lib/detectableElements.esm.min.js.map +1 -1
- package/lib/detectableElements.umd.js +15 -8
- package/lib/detectableElements.umd.js.map +1 -1
- package/lib/detectableElements.umd.min.js +15 -8
- package/lib/detectableElements.umd.min.js.map +1 -1
- package/package.json +3 -3
- package/src/components/detectable-table.js +2 -2
- package/src/components/roc-space.js +1 -1
- package/src/equations/hmfacr2acc.js +1 -1
- package/src/equations/sdt-equation.js +6 -0
- package/src/examples/sdt-example.js +1 -2
|
@@ -78,6 +78,8 @@ var W,Q;null==G||G(U,V),(null!==(m=globalThis.litHtmlVersions)&&void 0!==m?m:glo
|
|
|
78
78
|
---font-family-base: var(--font-family-base, "Source Sans", sans-serif);
|
|
79
79
|
---font-family-math: var(--font-family-math, "Source Serif", serif);
|
|
80
80
|
|
|
81
|
+
---border: var(--border, 1px solid var(---color-border));
|
|
82
|
+
---border-radius: var(--border-radius, 0.25rem);
|
|
81
83
|
---transition-duration: var(--transition-duration, 500ms);
|
|
82
84
|
|
|
83
85
|
font-family: var(---font-family-base);
|
|
@@ -111,7 +113,7 @@ var W,Q;null==G||G(U,V),(null!==(m=globalThis.litHtmlVersions)&&void 0!==m?m:glo
|
|
|
111
113
|
width: 0;
|
|
112
114
|
height: 0;
|
|
113
115
|
}
|
|
114
|
-
`),i(this.cssBoxShadow(0)),i(this.cssBoxShadow(2)),i(this.cssBoxShadow(4)),i(this.cssBoxShadow(8)),i(this.greys.white),i(this.greys.light75),i(this.greys.dark75),i(this.greys.white),i(this.greys.dark25),i(this.greys.light75),i(this.greys.light50),i(this.greys.
|
|
116
|
+
`),i(this.cssBoxShadow(0)),i(this.cssBoxShadow(2)),i(this.cssBoxShadow(4)),i(this.cssBoxShadow(8)),i(this.greys.white),i(this.greys.light75),i(this.greys.dark75),i(this.greys.white),i(this.greys.dark25),i(this.greys.light75),i(this.greys.light50),i(this.greys.dark25),i(this.greys.grey),i(this.greys.dark50),i(this.greys.dark75))}}let La,Va,ja=t=>t;customElements.define("decidables-button",class extends Da{static get properties(){return{disabled:{attribute:"disabled",type:Boolean,reflect:!0}}}constructor(){super(),this.disabled=!1}static get styles(){return[super.styles,s(La||(La=ja`
|
|
115
117
|
:host {
|
|
116
118
|
margin: 0.25rem;
|
|
117
119
|
}
|
|
@@ -127,7 +129,7 @@ var W,Q;null==G||G(U,V),(null!==(m=globalThis.litHtmlVersions)&&void 0!==m?m:glo
|
|
|
127
129
|
color: var(---color-text-inverse);
|
|
128
130
|
|
|
129
131
|
border: 0;
|
|
130
|
-
border-radius:
|
|
132
|
+
border-radius: var(---border-radius);
|
|
131
133
|
outline: none;
|
|
132
134
|
}
|
|
133
135
|
|
|
@@ -985,7 +987,7 @@ const Ba=t=>null!=t?t:F;let Ka,Xa,Za=t=>t;customElements.define("decidables-slid
|
|
|
985
987
|
.point .label {
|
|
986
988
|
font-size: 0.75rem;
|
|
987
989
|
|
|
988
|
-
dominant-baseline:
|
|
990
|
+
dominant-baseline: central;
|
|
989
991
|
text-anchor: middle;
|
|
990
992
|
|
|
991
993
|
fill: var(---color-text-inverse);
|
|
@@ -1663,10 +1665,10 @@ const Ba=t=>null!=t?t:F;let Ka,Xa,Za=t=>t;customElements.define("decidables-slid
|
|
|
1663
1665
|
</tr>
|
|
1664
1666
|
<tr>
|
|
1665
1667
|
<th class="th th-sub" scope="col">
|
|
1666
|
-
|
|
1668
|
+
‘Present’
|
|
1667
1669
|
</th>
|
|
1668
1670
|
<th class="th th-sub" scope="col">
|
|
1669
|
-
|
|
1671
|
+
‘Absent’
|
|
1670
1672
|
</th>
|
|
1671
1673
|
</tr>
|
|
1672
1674
|
</thead>
|
|
@@ -1759,6 +1761,10 @@ const Ba=t=>null!=t?t:F;let Ka,Xa,Za=t=>t;customElements.define("decidables-slid
|
|
|
1759
1761
|
font-style: normal;
|
|
1760
1762
|
}
|
|
1761
1763
|
|
|
1764
|
+
var {
|
|
1765
|
+
border-radius: var(---border-radius);
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1762
1768
|
.tight {
|
|
1763
1769
|
padding: 0;
|
|
1764
1770
|
}
|
|
@@ -1784,6 +1790,8 @@ const Ba=t=>null!=t?t:F;let Ka,Xa,Za=t=>t;customElements.define("decidables-slid
|
|
|
1784
1790
|
padding: 0.125rem 0.375rem 0.375rem;
|
|
1785
1791
|
|
|
1786
1792
|
vertical-align: middle;
|
|
1793
|
+
|
|
1794
|
+
border-radius: var(---border-radius);
|
|
1787
1795
|
}
|
|
1788
1796
|
|
|
1789
1797
|
.bottom {
|
|
@@ -2069,7 +2077,7 @@ const Ba=t=>null!=t?t:F;let Ka,Xa,Za=t=>t;customElements.define("decidables-slid
|
|
|
2069
2077
|
</tr>
|
|
2070
2078
|
</tbody>
|
|
2071
2079
|
</table>
|
|
2072
|
-
</div>`),i,t,n,t,e,r
|
|
2080
|
+
</div>`),i,t,n,t,n,e,r)}}customElements.define("sdt-equation-hmfacr2acc",yh);let wh,xh,kh,$h,_h,Sh,Ah,Eh,Th,Mh,Ch,Nh=t=>t;class Rh extends bc{static get properties(){return{unequal:{attribute:"unequal",type:Boolean,reflect:!0},hr:{attribute:"hit-rate",type:Number,reflect:!0},far:{attribute:"false-alarm-rate",type:Number,reflect:!0},s:{attribute:"s",type:Number,reflect:!0},c:{attribute:!1,type:Number,reflect:!1}}}constructor(){super(),this.unequal=!1,this.hr=0,this.far=0,this.s=1,this.alignState()}alignState(){this.c=yo.hrFar2C(this.hr,this.far,this.s)}sendEvent(){this.dispatchEvent(new CustomEvent("sdt-equation-hrfar2c-change",{detail:{hr:this.hr,far:this.far,s:this.s,c:this.c},bubbles:!0}))}hrInput(t){this.hr=parseFloat(t.target.value),this.alignState(),this.sendEvent()}farInput(t){this.far=parseFloat(t.target.value),this.alignState(),this.sendEvent()}sInput(t){this.s=parseFloat(t.target.value),this.alignState(),this.sendEvent()}render(){let t,e,r,n,i;return this.alignState(),this.numeric?(t=q(wh||(wh=Nh`
|
|
2073
2081
|
<decidables-spinner class="hr bottom" ?disabled=${0} min="0" max="1" step=".001" .value="${0}" @input=${0}>
|
|
2074
2082
|
<var>Hit Rate</var>
|
|
2075
2083
|
</decidables-spinner>
|
|
@@ -2176,7 +2184,6 @@ const Ba=t=>null!=t?t:F;let Ka,Xa,Za=t=>t;customElements.define("decidables-slid
|
|
|
2176
2184
|
</table>
|
|
2177
2185
|
</div>`),i)}}customElements.define("sdt-equation-hrfar2d",Bh);let Kh,Xh,Zh=t=>t;class Yh extends ho{static get styles(){return[super.styles,s(Kh||(Kh=Zh`
|
|
2178
2186
|
:host {
|
|
2179
|
-
---border: var(--border, 1px solid var(---color-border));
|
|
2180
2187
|
display: inline-block;
|
|
2181
2188
|
|
|
2182
2189
|
margin-bottom: 1rem;
|
|
@@ -2197,7 +2204,7 @@ const Ba=t=>null!=t?t:F;let Ka,Xa,Za=t=>t;customElements.define("decidables-slid
|
|
|
2197
2204
|
padding: 0.625rem;
|
|
2198
2205
|
|
|
2199
2206
|
border: var(---border);
|
|
2200
|
-
border-radius:
|
|
2207
|
+
border-radius: var(---border-radius);
|
|
2201
2208
|
}
|
|
2202
2209
|
|
|
2203
2210
|
.body ::slotted(*) {
|