@ni/nimble-components 35.12.1 → 35.12.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/dist/all-components-bundle.js +211 -21
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +160 -23
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/custom-elements.json +83 -83
- package/dist/custom-elements.md +24 -24
- package/dist/esm/patterns/step/styles.js +150 -16
- package/dist/esm/patterns/step/styles.js.map +1 -1
- package/dist/esm/utilities/models/document-element-lang.js +4 -1
- package/dist/esm/utilities/models/document-element-lang.js.map +1 -1
- package/package.json +5 -4
- package/dist/esm/utilities/style/prefers-reduced-motion.d.ts +0 -4
- package/dist/esm/utilities/style/prefers-reduced-motion.js +0 -5
- package/dist/esm/utilities/style/prefers-reduced-motion.js.map +0 -1
|
@@ -21,7 +21,9 @@ if("undefined"!=typeof self)return self
|
|
|
21
21
|
if("undefined"!=typeof window)return window
|
|
22
22
|
try{return new Function("return this")()}catch{return{}}}()
|
|
23
23
|
void 0===a.trustedTypes&&(a.trustedTypes={createPolicy:(t,e)=>e})
|
|
24
|
-
const
|
|
24
|
+
for(const t of["Node","Element","HTMLElement","ShadowRoot","Event","CustomEvent","MutationObserver","ResizeObserver","IntersectionObserver","CSSStyleSheet"])void 0===a[t]&&(a[t]=class{})
|
|
25
|
+
if(void 0===a.customElements){const t=new Map,e=new Map
|
|
26
|
+
a.customElements={define(n,i){t.has(n)||(t.set(n,i),e.set(i,n))},get:e=>t.get(e),getName:t=>e.get(t)??null,whenDefined:()=>Promise.resolve(),upgrade(){}}}const l={configurable:!1,enumerable:!1,writable:!1}
|
|
25
27
|
void 0===a.FAST&&Reflect.defineProperty(a,"FAST",{value:Object.create(null),...l})
|
|
26
28
|
const c=a.FAST
|
|
27
29
|
if(void 0===c.getById){const t=Object.create(null)
|
|
@@ -36,7 +38,7 @@ function n(){if(e.length)throw e.shift()}function i(t){try{t.call()}catch(t){e.p
|
|
|
36
38
|
for(;e<t.length;)if(i(t[e]),e++,e>1024){for(let n=0,i=t.length-e;n<i;n++)t[n]=t[n+e]
|
|
37
39
|
t.length-=e,e=0}t.length=0}return Object.freeze({enqueue:function(e){t.length<1&&a.requestAnimationFrame(o),t.push(e)},process:o})}),p=a.trustedTypes.createPolicy("fast-html",{createHTML:t=>t})
|
|
38
40
|
let f=p
|
|
39
|
-
const m=`fast-${Math.random().toString(36).substring(2,8)}`,g=`${m}{`,v=`}${m}`,b=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(f!==p)throw new Error("The HTML policy can only be set once.")
|
|
41
|
+
const m=`fast-${Math.random().toString(36).substring(2,8)}`,g=`${m}{`,v=`}${m}`,b=Object.freeze({supportsAdoptedStyleSheets:"undefined"!=typeof document&&"undefined"!=typeof CSSStyleSheet&&Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(f!==p)throw new Error("The HTML policy can only be set once.")
|
|
40
42
|
f=t},createHTML:t=>f.createHTML(t),isMarker:t=>t&&8===t.nodeType&&t.data.startsWith(m),extractDirectiveIndexFromMarker:t=>parseInt(t.data.replace(`${m}:`,"")),createInterpolationPlaceholder:t=>`${g}${t}${v}`,createCustomAttributePlaceholder(t,e){return`${t}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder:t=>`\x3c!--${m}:${t}--\x3e`,queueUpdate:u.enqueue,processUpdates:u.process,nextUpdate:()=>new Promise(u.enqueue),setAttribute(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)},setBooleanAttribute(t,e,n){n?t.setAttribute(e,""):t.removeAttribute(e)},removeChildNodes(t){for(let e=t.firstChild;null!==e;e=t.firstChild)t.removeChild(e)},createTemplateWalker:t=>document.createTreeWalker(t,133,null,!1)})
|
|
41
43
|
class y{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=e}has(t){return void 0===this.spillover?this.sub1===t||this.sub2===t:-1!==this.spillover.indexOf(t)}subscribe(t){const e=this.spillover
|
|
42
44
|
if(void 0===e){if(this.has(t))return
|
|
@@ -597,7 +599,7 @@ this.slottedBreadcrumbItems.forEach(e=>{const n=e===t
|
|
|
597
599
|
this.setItemSeparator(e,n),this.setAriaCurrent(e,n)})}}setItemSeparator(t,e){t instanceof _n&&(t.separator=!e)}findChildWithHref(t){return t.childElementCount>0?t.querySelector("a[href]"):t.shadowRoot?.childElementCount?t.shadowRoot?.querySelector("a[href]"):null}setAriaCurrent(t,e){const n=this.findChildWithHref(t)
|
|
598
600
|
null===n&&t.hasAttribute("href")&&t instanceof _n?e?t.setAttribute("aria-current","page"):t.removeAttribute("aria-current"):null!==n&&(e?n.setAttribute("aria-current","page"):n.removeAttribute("aria-current"))}}
|
|
599
601
|
t([C],Mn.prototype,"slottedBreadcrumbItems",void 0)
|
|
600
|
-
const In="form-associated-proxy",En="ElementInternals",An=En in window&&"setFormValue"in window[En].prototype,Tn=new WeakMap
|
|
602
|
+
const In="form-associated-proxy",En="ElementInternals",An="undefined"!=typeof window&&En in window&&"setFormValue"in window[En].prototype,Tn=new WeakMap
|
|
601
603
|
function Dn(t){const e=class extends t{static get formAssociated(){return An}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels))
|
|
602
604
|
if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const t=this.proxy.labels,e=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),n=t?e.concat(Array.from(t)):e
|
|
603
605
|
return Object.freeze(n)}return d}valueChanged(t,e){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),b.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),b.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!An)return null
|
|
@@ -686,7 +688,7 @@ class ni{}function ii(t){const e=t.parentElement
|
|
|
686
688
|
if(e)return e
|
|
687
689
|
{const e=t.getRootNode()
|
|
688
690
|
if(e.host instanceof HTMLElement)return e.host}return null}t([C],ni.prototype,"ariaAutoComplete",void 0),t([C],ni.prototype,"ariaControls",void 0),je(ni,Wn),je(ei,ne,ni)
|
|
689
|
-
const oi=document.createElement("div")
|
|
691
|
+
const oi="undefined"==typeof document?{}:document.createElement("div")
|
|
690
692
|
class ri{setProperty(t,e){b.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){b.queueUpdate(()=>this.target.removeProperty(t))}}class si extends ri{constructor(){super()
|
|
691
693
|
const t=new CSSStyleSheet
|
|
692
694
|
this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class ai extends ri{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style)
|
|
@@ -705,9 +707,10 @@ const n=pi.getOrCreate(this.normalizeRoot(t))
|
|
|
705
707
|
for(const t in di.properties)n.setProperty(t,di.properties[t])}}static unregisterRoot(t){const{roots:e}=di
|
|
706
708
|
if(e.has(t)){e.delete(t)
|
|
707
709
|
const n=pi.getOrCreate(di.normalizeRoot(t))
|
|
708
|
-
for(const t in di.properties)n.removeProperty(t)}}static normalizeRoot(t){return t===oi?document:t}}const hi=new WeakMap,ui=b.supportsAdoptedStyleSheets?class extends ri{constructor(t){super()
|
|
710
|
+
for(const t in di.properties)n.removeProperty(t)}}static normalizeRoot(t){return t===oi&&"undefined"!=typeof document?document:t}}const hi=new WeakMap,ui=b.supportsAdoptedStyleSheets?class extends ri{constructor(t){super()
|
|
709
711
|
const e=new CSSStyleSheet
|
|
710
|
-
e[nt]=!0,this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(Q.create([e]))}}:li,pi=Object.freeze({getOrCreate(t){if(
|
|
712
|
+
e[nt]=!0,this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(Q.create([e]))}}:li,pi=Object.freeze({getOrCreate(t){if("undefined"==typeof document)return{setProperty(){},removeProperty(){}}
|
|
713
|
+
if(hi.has(t))return hi.get(t)
|
|
711
714
|
let e
|
|
712
715
|
return t===oi?e=new di:t instanceof Document?e=b.supportsAdoptedStyleSheets?new si:new ai:e=t instanceof kt?new ui(t):new ci(t),hi.set(t,e),e}})
|
|
713
716
|
class fi extends St{get appliedTo(){return[...this._appliedTo]}static from(t){return new fi({name:"string"==typeof t?t:t.name,cssCustomPropertyName:"string"==typeof t?t:void 0===t.cssCustomPropertyName?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return"string"==typeof t.cssCustomProperty}static isDerivedDesignTokenValue(t){return"function"==typeof t}static{this.uniqueId=(()=>{let t=0
|
|
@@ -1016,7 +1019,7 @@ class zo extends xn{}const Vo=t=>`${function(t){return`:host([hidden]){display:n
|
|
|
1016
1019
|
color-scheme: dark;
|
|
1017
1020
|
}
|
|
1018
1021
|
`
|
|
1019
|
-
class Ca{constructor(){this.lang=document.documentElement.lang
|
|
1022
|
+
class Ca{constructor(){if(this.lang="undefined"==typeof document?"":document.documentElement.lang,"undefined"==typeof document)return
|
|
1020
1023
|
new MutationObserver(t=>{for(const e of t)"attributes"===e.type&&"lang"===e.attributeName&&(this.lang=e.target.lang)}).observe(document.documentElement,{attributeFilter:["lang"]})}}t([C],Ca.prototype,"lang",void 0)
|
|
1021
1024
|
const ka=new Ca
|
|
1022
1025
|
function Sa(t){try{return new Intl.Locale(t),!0}catch(t){return!1}}const $a=xi.create({name:"lang",cssCustomPropertyName:null}).withDefault(()=>Sa(ka.lang)?ka.lang:"en-US"),_a=xi.create({name:"direction",cssCustomPropertyName:null}).withDefault(mn.ltr),Ma=xi.create({name:"theme",cssCustomPropertyName:null}).withDefault(Uo)
|
|
@@ -1844,18 +1847,18 @@ e&&Ma.unsubscribe(e)}}const lh=(t,e)=>new ah(t,e),ch=_t`
|
|
|
1844
1847
|
}
|
|
1845
1848
|
|
|
1846
1849
|
:host([severity="error"]) .control {
|
|
1847
|
-
--ni-private-step-icon-color:
|
|
1850
|
+
--ni-private-step-icon-color: var(--ni-private-step-icon-inverse-color);
|
|
1848
1851
|
--ni-private-step-icon-border-color: ${nc};
|
|
1849
|
-
--ni-private-step-icon-background-color:
|
|
1850
|
-
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-
|
|
1852
|
+
--ni-private-step-icon-background-color: ${nc};
|
|
1853
|
+
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-full-size);
|
|
1851
1854
|
--ni-private-step-line-color: ${nc};
|
|
1852
1855
|
}
|
|
1853
1856
|
|
|
1854
1857
|
:host([severity="warning"]) .control {
|
|
1855
|
-
--ni-private-step-icon-color:
|
|
1858
|
+
--ni-private-step-icon-color: var(--ni-private-step-icon-inverse-color);
|
|
1856
1859
|
--ni-private-step-icon-border-color: ${ic};
|
|
1857
|
-
--ni-private-step-icon-background-color:
|
|
1858
|
-
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-
|
|
1860
|
+
--ni-private-step-icon-background-color: ${ic};
|
|
1861
|
+
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-full-size);
|
|
1859
1862
|
--ni-private-step-line-color: ${ic};
|
|
1860
1863
|
}
|
|
1861
1864
|
|
|
@@ -1876,6 +1879,27 @@ e&&Ma.unsubscribe(e)}}const lh=(t,e)=>new ah(t,e),ch=_t`
|
|
|
1876
1879
|
--ni-private-step-line-color: ${ac};
|
|
1877
1880
|
}
|
|
1878
1881
|
|
|
1882
|
+
:host([selected][severity="error"]) .control {
|
|
1883
|
+
--ni-private-step-icon-color: ${nc};
|
|
1884
|
+
--ni-private-step-icon-border-color: ${nc};
|
|
1885
|
+
--ni-private-step-icon-background-color: rgb(from ${nc} r g b / 30%);
|
|
1886
|
+
--ni-private-step-line-color: ${nc};
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
:host([selected][severity="warning"]) .control {
|
|
1890
|
+
--ni-private-step-icon-color: ${ic};
|
|
1891
|
+
--ni-private-step-icon-border-color: ${ic};
|
|
1892
|
+
--ni-private-step-icon-background-color: rgb(from ${ic} r g b / 30%);
|
|
1893
|
+
--ni-private-step-line-color: ${ic};
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
:host([selected][severity="success"]) .control {
|
|
1897
|
+
--ni-private-step-icon-color: ${rc};
|
|
1898
|
+
--ni-private-step-icon-border-color: ${rc};
|
|
1899
|
+
--ni-private-step-icon-background-color: rgb(from ${rc} r g b / 30%);
|
|
1900
|
+
--ni-private-step-line-color: ${rc};
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1879
1903
|
.icon-background {
|
|
1880
1904
|
grid-area: icon;
|
|
1881
1905
|
display: inline-block;
|
|
@@ -1944,7 +1968,6 @@ e&&Ma.unsubscribe(e)}}const lh=(t,e)=>new ah(t,e),ch=_t`
|
|
|
1944
1968
|
display: none;
|
|
1945
1969
|
}
|
|
1946
1970
|
|
|
1947
|
-
:host([selected]) .step-indicator,
|
|
1948
1971
|
:host([disabled]) .step-indicator {
|
|
1949
1972
|
display: contents;
|
|
1950
1973
|
}
|
|
@@ -1959,7 +1982,6 @@ e&&Ma.unsubscribe(e)}}const lh=(t,e)=>new ah(t,e),ch=_t`
|
|
|
1959
1982
|
display: contents;
|
|
1960
1983
|
}
|
|
1961
1984
|
|
|
1962
|
-
:host([selected]) .icon-severity,
|
|
1963
1985
|
:host([disabled]) .icon-severity {
|
|
1964
1986
|
display: none;
|
|
1965
1987
|
}
|
|
@@ -2050,14 +2072,16 @@ e&&Ma.unsubscribe(e)}}const lh=(t,e)=>new ah(t,e),ch=_t`
|
|
|
2050
2072
|
}
|
|
2051
2073
|
|
|
2052
2074
|
:host([severity="error"]) .control:hover {
|
|
2075
|
+
--ni-private-step-icon-color: var(--ni-private-step-icon-inverse-color);
|
|
2053
2076
|
--ni-private-step-icon-border-color: ${nc};
|
|
2054
|
-
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-
|
|
2077
|
+
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-inset-size);
|
|
2055
2078
|
--ni-private-step-line-color: ${nc};
|
|
2056
2079
|
}
|
|
2057
2080
|
|
|
2058
2081
|
:host([severity="warning"]) .control:hover {
|
|
2082
|
+
--ni-private-step-icon-color: var(--ni-private-step-icon-inverse-color);
|
|
2059
2083
|
--ni-private-step-icon-border-color: ${ic};
|
|
2060
|
-
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-
|
|
2084
|
+
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-inset-size);
|
|
2061
2085
|
--ni-private-step-line-color: ${ic};
|
|
2062
2086
|
}
|
|
2063
2087
|
|
|
@@ -2069,12 +2093,37 @@ e&&Ma.unsubscribe(e)}}const lh=(t,e)=>new ah(t,e),ch=_t`
|
|
|
2069
2093
|
}
|
|
2070
2094
|
|
|
2071
2095
|
:host([selected]) .control:hover {
|
|
2072
|
-
--ni-private-step-icon-color: ${
|
|
2096
|
+
--ni-private-step-icon-color: ${ac};
|
|
2073
2097
|
--ni-private-step-icon-border-color: ${ac};
|
|
2074
|
-
--ni-private-step-icon-
|
|
2098
|
+
--ni-private-step-icon-border-width: 3px;
|
|
2099
|
+
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-none-size);
|
|
2075
2100
|
--ni-private-step-line-color: ${ac};
|
|
2076
2101
|
}
|
|
2077
2102
|
|
|
2103
|
+
:host([selected][severity="error"]) .control:hover {
|
|
2104
|
+
--ni-private-step-icon-color: ${nc};
|
|
2105
|
+
--ni-private-step-icon-border-color: ${nc};
|
|
2106
|
+
--ni-private-step-icon-border-width: 3px;
|
|
2107
|
+
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-none-size);
|
|
2108
|
+
--ni-private-step-line-color: ${nc};
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
:host([selected][severity="warning"]) .control:hover {
|
|
2112
|
+
--ni-private-step-icon-color: ${ic};
|
|
2113
|
+
--ni-private-step-icon-border-color: ${ic};
|
|
2114
|
+
--ni-private-step-icon-border-width: 3px;
|
|
2115
|
+
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-none-size);
|
|
2116
|
+
--ni-private-step-line-color: ${ic};
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2119
|
+
:host([selected][severity="success"]) .control:hover {
|
|
2120
|
+
--ni-private-step-icon-color: ${rc};
|
|
2121
|
+
--ni-private-step-icon-border-color: ${rc};
|
|
2122
|
+
--ni-private-step-icon-border-width: 3px;
|
|
2123
|
+
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-none-size);
|
|
2124
|
+
--ni-private-step-line-color: ${rc};
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2078
2127
|
:host([readonly]) .control:hover {
|
|
2079
2128
|
--ni-private-step-icon-color: revert-layer;
|
|
2080
2129
|
--ni-private-step-icon-border-color: revert-layer;
|
|
@@ -2083,6 +2132,14 @@ e&&Ma.unsubscribe(e)}}const lh=(t,e)=>new ah(t,e),ch=_t`
|
|
|
2083
2132
|
--ni-private-step-line-color: revert-layer;
|
|
2084
2133
|
}
|
|
2085
2134
|
|
|
2135
|
+
:host([selected][readonly]) .control:hover {
|
|
2136
|
+
--ni-private-step-icon-color: revert-layer;
|
|
2137
|
+
--ni-private-step-icon-border-color: revert-layer;
|
|
2138
|
+
--ni-private-step-icon-border-width: revert-layer;
|
|
2139
|
+
--ni-private-step-icon-background-size: revert-layer;
|
|
2140
|
+
--ni-private-step-line-color: revert-layer;
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2086
2143
|
.control:hover .line {
|
|
2087
2144
|
transform: scale(1, 2);
|
|
2088
2145
|
}
|
|
@@ -2106,16 +2163,18 @@ e&&Ma.unsubscribe(e)}}const lh=(t,e)=>new ah(t,e),ch=_t`
|
|
|
2106
2163
|
}
|
|
2107
2164
|
|
|
2108
2165
|
:host([severity="error"]) .control${Ho} {
|
|
2166
|
+
--ni-private-step-icon-color: var(--ni-private-step-icon-inverse-color);
|
|
2109
2167
|
--ni-private-step-icon-border-color: ${nc};
|
|
2110
|
-
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-
|
|
2111
|
-
--ni-private-step-icon-outline-inset-color:
|
|
2168
|
+
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-inset-size);
|
|
2169
|
+
--ni-private-step-icon-outline-inset-color: transparent;
|
|
2112
2170
|
--ni-private-step-line-color: ${nc};
|
|
2113
2171
|
}
|
|
2114
2172
|
|
|
2115
2173
|
:host([severity="warning"]) .control${Ho} {
|
|
2174
|
+
--ni-private-step-icon-color: var(--ni-private-step-icon-inverse-color);
|
|
2116
2175
|
--ni-private-step-icon-border-color: ${ic};
|
|
2117
|
-
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-
|
|
2118
|
-
--ni-private-step-icon-outline-inset-color:
|
|
2176
|
+
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-inset-size);
|
|
2177
|
+
--ni-private-step-icon-outline-inset-color: transparent;
|
|
2119
2178
|
--ni-private-step-line-color: ${ic};
|
|
2120
2179
|
}
|
|
2121
2180
|
|
|
@@ -2135,6 +2194,27 @@ e&&Ma.unsubscribe(e)}}const lh=(t,e)=>new ah(t,e),ch=_t`
|
|
|
2135
2194
|
--ni-private-step-line-color: ${ac};
|
|
2136
2195
|
}
|
|
2137
2196
|
|
|
2197
|
+
:host([selected][severity="error"]) .control${Ho} {
|
|
2198
|
+
--ni-private-step-icon-color: ${nc};
|
|
2199
|
+
--ni-private-step-icon-border-color: ${nc};
|
|
2200
|
+
--ni-private-step-icon-outline-inset-color: ${nc};
|
|
2201
|
+
--ni-private-step-line-color: ${nc};
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
:host([selected][severity="warning"]) .control${Ho} {
|
|
2205
|
+
--ni-private-step-icon-color: ${ic};
|
|
2206
|
+
--ni-private-step-icon-border-color: ${ic};
|
|
2207
|
+
--ni-private-step-icon-outline-inset-color: ${ic};
|
|
2208
|
+
--ni-private-step-line-color: ${ic};
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2211
|
+
:host([selected][severity="success"]) .control${Ho} {
|
|
2212
|
+
--ni-private-step-icon-color: ${rc};
|
|
2213
|
+
--ni-private-step-icon-border-color: ${rc};
|
|
2214
|
+
--ni-private-step-icon-outline-inset-color: ${rc};
|
|
2215
|
+
--ni-private-step-line-color: ${rc};
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2138
2218
|
.control${Ho} .icon::before {
|
|
2139
2219
|
outline-width: ${$c};
|
|
2140
2220
|
${""}
|
|
@@ -2160,12 +2240,14 @@ e&&Ma.unsubscribe(e)}}const lh=(t,e)=>new ah(t,e),ch=_t`
|
|
|
2160
2240
|
}
|
|
2161
2241
|
|
|
2162
2242
|
:host([severity="error"]) .control:active {
|
|
2243
|
+
--ni-private-step-icon-color: ${nc};
|
|
2163
2244
|
--ni-private-step-icon-border-color: ${nc};
|
|
2164
2245
|
--ni-private-step-icon-background-color: rgb(from ${nc} r g b / 30%);
|
|
2165
2246
|
--ni-private-step-line-color: ${nc};
|
|
2166
2247
|
}
|
|
2167
2248
|
|
|
2168
2249
|
:host([severity="warning"]) .control:active {
|
|
2250
|
+
--ni-private-step-icon-color: ${ic};
|
|
2169
2251
|
--ni-private-step-icon-border-color: ${ic};
|
|
2170
2252
|
--ni-private-step-icon-background-color: rgb(from ${ic} r g b / 30%);
|
|
2171
2253
|
--ni-private-step-line-color: ${ic};
|
|
@@ -2185,6 +2267,27 @@ e&&Ma.unsubscribe(e)}}const lh=(t,e)=>new ah(t,e),ch=_t`
|
|
|
2185
2267
|
--ni-private-step-line-color: ${ac};
|
|
2186
2268
|
}
|
|
2187
2269
|
|
|
2270
|
+
:host([selected][severity="error"]) .control:active {
|
|
2271
|
+
--ni-private-step-icon-color: ${nc};
|
|
2272
|
+
--ni-private-step-icon-border-color: ${nc};
|
|
2273
|
+
--ni-private-step-icon-background-color: rgb(from ${nc} r g b / 30%);
|
|
2274
|
+
--ni-private-step-line-color: ${nc};
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
:host([selected][severity="warning"]) .control:active {
|
|
2278
|
+
--ni-private-step-icon-color: ${ic};
|
|
2279
|
+
--ni-private-step-icon-border-color: ${ic};
|
|
2280
|
+
--ni-private-step-icon-background-color: rgb(from ${ic} r g b / 30%);
|
|
2281
|
+
--ni-private-step-line-color: ${ic};
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
:host([selected][severity="success"]) .control:active {
|
|
2285
|
+
--ni-private-step-icon-color: ${wd};
|
|
2286
|
+
--ni-private-step-icon-border-color: ${rc};
|
|
2287
|
+
--ni-private-step-icon-background-color: rgb(from ${rc} r g b / 30%);
|
|
2288
|
+
--ni-private-step-line-color: ${rc};
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2188
2291
|
:host([readonly]) .control:active {
|
|
2189
2292
|
--ni-private-step-icon-color: revert-layer;
|
|
2190
2293
|
--ni-private-step-icon-border-color: revert-layer;
|
|
@@ -2194,6 +2297,15 @@ e&&Ma.unsubscribe(e)}}const lh=(t,e)=>new ah(t,e),ch=_t`
|
|
|
2194
2297
|
--ni-private-step-line-color: revert-layer;
|
|
2195
2298
|
}
|
|
2196
2299
|
|
|
2300
|
+
:host([selected][readonly]) .control:active {
|
|
2301
|
+
--ni-private-step-icon-color: revert-layer;
|
|
2302
|
+
--ni-private-step-icon-border-color: revert-layer;
|
|
2303
|
+
--ni-private-step-icon-border-width: revert-layer;
|
|
2304
|
+
--ni-private-step-icon-background-color: revert-layer;
|
|
2305
|
+
--ni-private-step-icon-background-size: revert-layer;
|
|
2306
|
+
--ni-private-step-line-color: revert-layer;
|
|
2307
|
+
}
|
|
2308
|
+
|
|
2197
2309
|
.control:active .icon::before {
|
|
2198
2310
|
outline-width: 0px;
|
|
2199
2311
|
outline-offset: -1px;
|
|
@@ -2260,10 +2372,35 @@ e&&Ma.unsubscribe(e)}}const lh=(t,e)=>new ah(t,e),ch=_t`
|
|
|
2260
2372
|
--ni-private-step-icon-inverse-color: ${el};
|
|
2261
2373
|
}
|
|
2262
2374
|
|
|
2375
|
+
:host([severity="error"]) .control {
|
|
2376
|
+
--ni-private-step-icon-border-color:: rgb(from ${nc} r g b / 30%);
|
|
2377
|
+
--ni-private-step-icon-background-color: rgb(from ${nc} r g b / 30%);
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2380
|
+
:host([severity="warning"]) .control {
|
|
2381
|
+
--ni-private-step-icon-border-color:: rgb(from ${ic} r g b / 30%);
|
|
2382
|
+
--ni-private-step-icon-background-color: rgb(from ${ic} r g b / 30%);
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2263
2385
|
:host([severity="success"]) .control {
|
|
2386
|
+
--ni-private-step-icon-border-color:: rgb(from ${rc} r g b / 30%);
|
|
2264
2387
|
--ni-private-step-icon-background-color: rgb(from ${rc} r g b / 30%);
|
|
2265
2388
|
}
|
|
2266
2389
|
}
|
|
2390
|
+
|
|
2391
|
+
@layer focusVisible {
|
|
2392
|
+
:host([severity="error"]) .control${Ho} {
|
|
2393
|
+
--ni-private-step-icon-outline-inset-color: ${nc};
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
:host([severity="warning"]) .control${Ho} {
|
|
2397
|
+
--ni-private-step-icon-outline-inset-color: ${ic};
|
|
2398
|
+
}
|
|
2399
|
+
|
|
2400
|
+
:host([severity="success"]) .control${Ho} {
|
|
2401
|
+
--ni-private-step-icon-outline-inset-color: ${rc};
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2267
2404
|
`)),dh=_t`
|
|
2268
2405
|
${ch}
|
|
2269
2406
|
${""}
|