@ni/spright-components 6.21.3 → 6.21.5

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.
@@ -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 l={configurable:!1,enumerable:!1,writable:!1}
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 On(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(hi.has(t))return hi.get(t)
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 Vo extends xn{}const Ho=t=>`${Po(t)}:host{box-sizing:border-box;}*{box-siz
1016
1019
  color-scheme: dark;
1017
1020
  }
1018
1021
  `
1019
- class ka{constructor(){this.lang=document.documentElement.lang
1022
+ class ka{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],ka.prototype,"lang",void 0)
1021
1024
  const Sa=new ka
1022
1025
  function $a(t){try{return new Intl.Locale(t),!0}catch(t){return!1}}const _a=xi.create({name:"lang",cssCustomPropertyName:null}).withDefault(()=>$a(Sa.lang)?Sa.lang:"en-US"),Ma=xi.create({name:"direction",cssCustomPropertyName:null}).withDefault(mn.ltr),Ia=xi.create({name:"theme",cssCustomPropertyName:null}).withDefault(qo)
@@ -1858,18 +1861,18 @@ e&&Ia.unsubscribe(e)}}const yh=(t,e)=>new bh(t,e),wh=_t`
1858
1861
  }
1859
1862
 
1860
1863
  :host([severity="error"]) .control {
1861
- --ni-private-step-icon-color: ${rc};
1864
+ --ni-private-step-icon-color: var(--ni-private-step-icon-inverse-color);
1862
1865
  --ni-private-step-icon-border-color: ${rc};
1863
- --ni-private-step-icon-background-color: rgb(from ${rc} r g b / 30%);
1864
- --ni-private-step-icon-background-size: var(--ni-private-step-icon-background-none-size);
1866
+ --ni-private-step-icon-background-color: ${rc};
1867
+ --ni-private-step-icon-background-size: var(--ni-private-step-icon-background-full-size);
1865
1868
  --ni-private-step-line-color: ${rc};
1866
1869
  }
1867
1870
 
1868
1871
  :host([severity="warning"]) .control {
1869
- --ni-private-step-icon-color: ${sc};
1872
+ --ni-private-step-icon-color: var(--ni-private-step-icon-inverse-color);
1870
1873
  --ni-private-step-icon-border-color: ${sc};
1871
- --ni-private-step-icon-background-color: rgb(from ${sc} r g b / 30%);
1872
- --ni-private-step-icon-background-size: var(--ni-private-step-icon-background-none-size);
1874
+ --ni-private-step-icon-background-color: ${sc};
1875
+ --ni-private-step-icon-background-size: var(--ni-private-step-icon-background-full-size);
1873
1876
  --ni-private-step-line-color: ${sc};
1874
1877
  }
1875
1878
 
@@ -1890,6 +1893,27 @@ e&&Ia.unsubscribe(e)}}const yh=(t,e)=>new bh(t,e),wh=_t`
1890
1893
  --ni-private-step-line-color: ${dc};
1891
1894
  }
1892
1895
 
1896
+ :host([selected][severity="error"]) .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
+
1903
+ :host([selected][severity="warning"]) .control {
1904
+ --ni-private-step-icon-color: ${sc};
1905
+ --ni-private-step-icon-border-color: ${sc};
1906
+ --ni-private-step-icon-background-color: rgb(from ${sc} r g b / 30%);
1907
+ --ni-private-step-line-color: ${sc};
1908
+ }
1909
+
1910
+ :host([selected][severity="success"]) .control {
1911
+ --ni-private-step-icon-color: ${lc};
1912
+ --ni-private-step-icon-border-color: ${lc};
1913
+ --ni-private-step-icon-background-color: rgb(from ${lc} r g b / 30%);
1914
+ --ni-private-step-line-color: ${lc};
1915
+ }
1916
+
1893
1917
  .icon-background {
1894
1918
  grid-area: icon;
1895
1919
  display: inline-block;
@@ -1958,7 +1982,6 @@ e&&Ia.unsubscribe(e)}}const yh=(t,e)=>new bh(t,e),wh=_t`
1958
1982
  display: none;
1959
1983
  }
1960
1984
 
1961
- :host([selected]) .step-indicator,
1962
1985
  :host([disabled]) .step-indicator {
1963
1986
  display: contents;
1964
1987
  }
@@ -1973,7 +1996,6 @@ e&&Ia.unsubscribe(e)}}const yh=(t,e)=>new bh(t,e),wh=_t`
1973
1996
  display: contents;
1974
1997
  }
1975
1998
 
1976
- :host([selected]) .icon-severity,
1977
1999
  :host([disabled]) .icon-severity {
1978
2000
  display: none;
1979
2001
  }
@@ -2064,14 +2086,16 @@ e&&Ia.unsubscribe(e)}}const yh=(t,e)=>new bh(t,e),wh=_t`
2064
2086
  }
2065
2087
 
2066
2088
  :host([severity="error"]) .control:hover {
2089
+ --ni-private-step-icon-color: var(--ni-private-step-icon-inverse-color);
2067
2090
  --ni-private-step-icon-border-color: ${rc};
2068
- --ni-private-step-icon-background-size: var(--ni-private-step-icon-background-none-size);
2091
+ --ni-private-step-icon-background-size: var(--ni-private-step-icon-background-inset-size);
2069
2092
  --ni-private-step-line-color: ${rc};
2070
2093
  }
2071
2094
 
2072
2095
  :host([severity="warning"]) .control:hover {
2096
+ --ni-private-step-icon-color: var(--ni-private-step-icon-inverse-color);
2073
2097
  --ni-private-step-icon-border-color: ${sc};
2074
- --ni-private-step-icon-background-size: var(--ni-private-step-icon-background-none-size);
2098
+ --ni-private-step-icon-background-size: var(--ni-private-step-icon-background-inset-size);
2075
2099
  --ni-private-step-line-color: ${sc};
2076
2100
  }
2077
2101
 
@@ -2083,12 +2107,37 @@ e&&Ia.unsubscribe(e)}}const yh=(t,e)=>new bh(t,e),wh=_t`
2083
2107
  }
2084
2108
 
2085
2109
  :host([selected]) .control:hover {
2086
- --ni-private-step-icon-color: ${Ad};
2110
+ --ni-private-step-icon-color: ${dc};
2087
2111
  --ni-private-step-icon-border-color: ${dc};
2088
- --ni-private-step-icon-background-size: var(--ni-private-step-icon-background-inset-size);
2112
+ --ni-private-step-icon-border-width: 3px;
2113
+ --ni-private-step-icon-background-size: var(--ni-private-step-icon-background-none-size);
2089
2114
  --ni-private-step-line-color: ${dc};
2090
2115
  }
2091
2116
 
2117
+ :host([selected][severity="error"]) .control:hover {
2118
+ --ni-private-step-icon-color: ${rc};
2119
+ --ni-private-step-icon-border-color: ${rc};
2120
+ --ni-private-step-icon-border-width: 3px;
2121
+ --ni-private-step-icon-background-size: var(--ni-private-step-icon-background-none-size);
2122
+ --ni-private-step-line-color: ${rc};
2123
+ }
2124
+
2125
+ :host([selected][severity="warning"]) .control:hover {
2126
+ --ni-private-step-icon-color: ${sc};
2127
+ --ni-private-step-icon-border-color: ${sc};
2128
+ --ni-private-step-icon-border-width: 3px;
2129
+ --ni-private-step-icon-background-size: var(--ni-private-step-icon-background-none-size);
2130
+ --ni-private-step-line-color: ${sc};
2131
+ }
2132
+
2133
+ :host([selected][severity="success"]) .control:hover {
2134
+ --ni-private-step-icon-color: ${lc};
2135
+ --ni-private-step-icon-border-color: ${lc};
2136
+ --ni-private-step-icon-border-width: 3px;
2137
+ --ni-private-step-icon-background-size: var(--ni-private-step-icon-background-none-size);
2138
+ --ni-private-step-line-color: ${lc};
2139
+ }
2140
+
2092
2141
  :host([readonly]) .control:hover {
2093
2142
  --ni-private-step-icon-color: revert-layer;
2094
2143
  --ni-private-step-icon-border-color: revert-layer;
@@ -2097,6 +2146,14 @@ e&&Ia.unsubscribe(e)}}const yh=(t,e)=>new bh(t,e),wh=_t`
2097
2146
  --ni-private-step-line-color: revert-layer;
2098
2147
  }
2099
2148
 
2149
+ :host([selected][readonly]) .control:hover {
2150
+ --ni-private-step-icon-color: revert-layer;
2151
+ --ni-private-step-icon-border-color: revert-layer;
2152
+ --ni-private-step-icon-border-width: revert-layer;
2153
+ --ni-private-step-icon-background-size: revert-layer;
2154
+ --ni-private-step-line-color: revert-layer;
2155
+ }
2156
+
2100
2157
  .control:hover .line {
2101
2158
  transform: scale(1, 2);
2102
2159
  }
@@ -2120,16 +2177,18 @@ e&&Ia.unsubscribe(e)}}const yh=(t,e)=>new bh(t,e),wh=_t`
2120
2177
  }
2121
2178
 
2122
2179
  :host([severity="error"]) .control${Uo} {
2180
+ --ni-private-step-icon-color: var(--ni-private-step-icon-inverse-color);
2123
2181
  --ni-private-step-icon-border-color: ${rc};
2124
- --ni-private-step-icon-background-size: var(--ni-private-step-icon-background-none-size);
2125
- --ni-private-step-icon-outline-inset-color: ${rc};
2182
+ --ni-private-step-icon-background-size: var(--ni-private-step-icon-background-inset-size);
2183
+ --ni-private-step-icon-outline-inset-color: transparent;
2126
2184
  --ni-private-step-line-color: ${rc};
2127
2185
  }
2128
2186
 
2129
2187
  :host([severity="warning"]) .control${Uo} {
2188
+ --ni-private-step-icon-color: var(--ni-private-step-icon-inverse-color);
2130
2189
  --ni-private-step-icon-border-color: ${sc};
2131
- --ni-private-step-icon-background-size: var(--ni-private-step-icon-background-none-size);
2132
- --ni-private-step-icon-outline-inset-color: ${sc};
2190
+ --ni-private-step-icon-background-size: var(--ni-private-step-icon-background-inset-size);
2191
+ --ni-private-step-icon-outline-inset-color: transparent;
2133
2192
  --ni-private-step-line-color: ${sc};
2134
2193
  }
2135
2194
 
@@ -2149,6 +2208,27 @@ e&&Ia.unsubscribe(e)}}const yh=(t,e)=>new bh(t,e),wh=_t`
2149
2208
  --ni-private-step-line-color: ${dc};
2150
2209
  }
2151
2210
 
2211
+ :host([selected][severity="error"]) .control${Uo} {
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
+
2218
+ :host([selected][severity="warning"]) .control${Uo} {
2219
+ --ni-private-step-icon-color: ${sc};
2220
+ --ni-private-step-icon-border-color: ${sc};
2221
+ --ni-private-step-icon-outline-inset-color: ${sc};
2222
+ --ni-private-step-line-color: ${sc};
2223
+ }
2224
+
2225
+ :host([selected][severity="success"]) .control${Uo} {
2226
+ --ni-private-step-icon-color: ${lc};
2227
+ --ni-private-step-icon-border-color: ${lc};
2228
+ --ni-private-step-icon-outline-inset-color: ${lc};
2229
+ --ni-private-step-line-color: ${lc};
2230
+ }
2231
+
2152
2232
  .control${Uo} .icon::before {
2153
2233
  outline-width: ${Fc};
2154
2234
  ${""}
@@ -2174,12 +2254,14 @@ e&&Ia.unsubscribe(e)}}const yh=(t,e)=>new bh(t,e),wh=_t`
2174
2254
  }
2175
2255
 
2176
2256
  :host([severity="error"]) .control:active {
2257
+ --ni-private-step-icon-color: ${rc};
2177
2258
  --ni-private-step-icon-border-color: ${rc};
2178
2259
  --ni-private-step-icon-background-color: rgb(from ${rc} r g b / 30%);
2179
2260
  --ni-private-step-line-color: ${rc};
2180
2261
  }
2181
2262
 
2182
2263
  :host([severity="warning"]) .control:active {
2264
+ --ni-private-step-icon-color: ${sc};
2183
2265
  --ni-private-step-icon-border-color: ${sc};
2184
2266
  --ni-private-step-icon-background-color: rgb(from ${sc} r g b / 30%);
2185
2267
  --ni-private-step-line-color: ${sc};
@@ -2199,6 +2281,27 @@ e&&Ia.unsubscribe(e)}}const yh=(t,e)=>new bh(t,e),wh=_t`
2199
2281
  --ni-private-step-line-color: ${dc};
2200
2282
  }
2201
2283
 
2284
+ :host([selected][severity="error"]) .control:active {
2285
+ --ni-private-step-icon-color: ${rc};
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
+
2291
+ :host([selected][severity="warning"]) .control:active {
2292
+ --ni-private-step-icon-color: ${sc};
2293
+ --ni-private-step-icon-border-color: ${sc};
2294
+ --ni-private-step-icon-background-color: rgb(from ${sc} r g b / 30%);
2295
+ --ni-private-step-line-color: ${sc};
2296
+ }
2297
+
2298
+ :host([selected][severity="success"]) .control:active {
2299
+ --ni-private-step-icon-color: ${Ad};
2300
+ --ni-private-step-icon-border-color: ${lc};
2301
+ --ni-private-step-icon-background-color: rgb(from ${lc} r g b / 30%);
2302
+ --ni-private-step-line-color: ${lc};
2303
+ }
2304
+
2202
2305
  :host([readonly]) .control:active {
2203
2306
  --ni-private-step-icon-color: revert-layer;
2204
2307
  --ni-private-step-icon-border-color: revert-layer;
@@ -2208,6 +2311,15 @@ e&&Ia.unsubscribe(e)}}const yh=(t,e)=>new bh(t,e),wh=_t`
2208
2311
  --ni-private-step-line-color: revert-layer;
2209
2312
  }
2210
2313
 
2314
+ :host([selected][readonly]) .control:active {
2315
+ --ni-private-step-icon-color: revert-layer;
2316
+ --ni-private-step-icon-border-color: revert-layer;
2317
+ --ni-private-step-icon-border-width: revert-layer;
2318
+ --ni-private-step-icon-background-color: revert-layer;
2319
+ --ni-private-step-icon-background-size: revert-layer;
2320
+ --ni-private-step-line-color: revert-layer;
2321
+ }
2322
+
2211
2323
  .control:active .icon::before {
2212
2324
  outline-width: 0px;
2213
2325
  outline-offset: -1px;
@@ -2274,10 +2386,35 @@ e&&Ia.unsubscribe(e)}}const yh=(t,e)=>new bh(t,e),wh=_t`
2274
2386
  --ni-private-step-icon-inverse-color: ${nl};
2275
2387
  }
2276
2388
 
2389
+ :host([severity="error"]) .control {
2390
+ --ni-private-step-icon-border-color:: rgb(from ${rc} r g b / 30%);
2391
+ --ni-private-step-icon-background-color: rgb(from ${rc} r g b / 30%);
2392
+ }
2393
+
2394
+ :host([severity="warning"]) .control {
2395
+ --ni-private-step-icon-border-color:: rgb(from ${sc} r g b / 30%);
2396
+ --ni-private-step-icon-background-color: rgb(from ${sc} r g b / 30%);
2397
+ }
2398
+
2277
2399
  :host([severity="success"]) .control {
2400
+ --ni-private-step-icon-border-color:: rgb(from ${lc} r g b / 30%);
2278
2401
  --ni-private-step-icon-background-color: rgb(from ${lc} r g b / 30%);
2279
2402
  }
2280
2403
  }
2404
+
2405
+ @layer focusVisible {
2406
+ :host([severity="error"]) .control${Uo} {
2407
+ --ni-private-step-icon-outline-inset-color: ${rc};
2408
+ }
2409
+
2410
+ :host([severity="warning"]) .control${Uo} {
2411
+ --ni-private-step-icon-outline-inset-color: ${sc};
2412
+ }
2413
+
2414
+ :host([severity="success"]) .control${Uo} {
2415
+ --ni-private-step-icon-outline-inset-color: ${lc};
2416
+ }
2417
+ }
2281
2418
  `)),xh=_t`
2282
2419
  ${wh}
2283
2420
  ${""}
@@ -17698,11 +17835,11 @@ const p3=_t`
17698
17835
  ></${Qm}>
17699
17836
  ${Cv}
17700
17837
  </div>`
17701
- class m3 extends(kv(He)){constructor(){super(...arguments),this.value="",this.maxLength=-1,this.processing=!1,this.sendDisabled=!1,this.isInputEmpty=!0,this.scrollbarWidth=-1,this.footerActionsIsEmpty=!0,this.attachmentsIsEmpty=!0,this.updateScrollbarWidthQueued=!1}slottedFooterActionsElementsChanged(t,e){this.footerActionsIsEmpty=void 0===e||0===e.length}slottedAttachmentsElementsChanged(t,e){this.attachmentsIsEmpty=void 0===e||0===e.length}textAreaKeydownHandler(t){return!(t.key===sn&&!t.shiftKey)||(this.processing||this.sendButtonClickHandler(),!1)}textAreaInputHandler(){this.value=this.textArea.value,this.isInputEmpty=0===this.textArea.value.length,this.adjustTextAreaHeight(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(){this.textArea&&(this.textArea.value=this.value,this.isInputEmpty=0===this.textArea.value.length,this.adjustTextAreaHeight(),this.queueUpdateScrollbarWidth())}connectedCallback(){super.connectedCallback(),this.textArea.value=this.value,this.isInputEmpty=0===this.textArea.value.length,this.adjustTextAreaHeight(),this.resizeObserver=new ResizeObserver(()=>this.onResize()),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}sendButtonClickHandler(){if(this.shouldDisableSendButton())return
17838
+ class m3 extends(kv(He)){constructor(){super(...arguments),this.value="",this.maxLength=-1,this.processing=!1,this.sendDisabled=!1,this.isInputEmpty=!0,this.scrollbarWidth=-1,this.footerActionsIsEmpty=!0,this.attachmentsIsEmpty=!0,this.updateScrollbarWidthQueued=!1,this.fieldSizingSupported=CSS.supports("field-sizing","content")}slottedFooterActionsElementsChanged(t,e){this.footerActionsIsEmpty=void 0===e||0===e.length}slottedAttachmentsElementsChanged(t,e){this.attachmentsIsEmpty=void 0===e||0===e.length}textAreaKeydownHandler(t){return!(t.key===sn&&!t.shiftKey)||(this.processing||this.sendButtonClickHandler(),!1)}textAreaInputHandler(){this.value=this.textArea.value,this.isInputEmpty=0===this.textArea.value.length,this.adjustTextAreaHeight(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(){this.textArea&&(this.textArea.value=this.value,this.isInputEmpty=0===this.textArea.value.length,this.adjustTextAreaHeight(),this.queueUpdateScrollbarWidth())}connectedCallback(){super.connectedCallback(),this.textArea.value=this.value,this.isInputEmpty=0===this.textArea.value.length,this.adjustTextAreaHeight(),this.resizeObserver=new ResizeObserver(()=>this.onResize()),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}sendButtonClickHandler(){if(this.shouldDisableSendButton())return
17702
17839
  const t={text:this.textArea.value}
17703
- this.resetInput(),this.$emit("send",t)}stopButtonClickHandler(){this.processing&&(this.$emit("stop"),this.textArea?.blur())}shouldDisableSendButton(){return this.sendDisabled||0===this.textArea.value.length}resetInput(){this.value="",this.isInputEmpty=!0,this.textArea&&(this.textArea.value="",this.adjustTextAreaHeight(),this.textArea.focus())}onResize(){this.adjustTextAreaHeight(),this.scrollbarWidth=this.textArea.offsetWidth-this.textArea.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,b.queueUpdate(()=>this.updateScrollbarWidth())))}adjustTextAreaHeight(){if(m3.fieldSizingSupported||!this.textArea)return
17840
+ this.resetInput(),this.$emit("send",t)}stopButtonClickHandler(){this.processing&&(this.$emit("stop"),this.textArea?.blur())}shouldDisableSendButton(){return this.sendDisabled||0===this.textArea.value.length}resetInput(){this.value="",this.isInputEmpty=!0,this.textArea&&(this.textArea.value="",this.adjustTextAreaHeight(),this.textArea.focus())}onResize(){this.adjustTextAreaHeight(),this.scrollbarWidth=this.textArea.offsetWidth-this.textArea.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,b.queueUpdate(()=>this.updateScrollbarWidth())))}adjustTextAreaHeight(){if(this.fieldSizingSupported||!this.textArea)return
17704
17841
  const t=this.textArea
17705
- t.style.height="auto",t.style.height=`${t.scrollHeight}px`}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.textArea.offsetWidth-this.textArea.clientWidth}}m3.fieldSizingSupported=CSS.supports("field-sizing","content"),t([pt],m3.prototype,"placeholder",void 0),t([pt({attribute:"send-button-label"})],m3.prototype,"sendButtonLabel",void 0),t([pt({attribute:"stop-button-label"})],m3.prototype,"stopButtonLabel",void 0),t([pt],m3.prototype,"value",void 0),t([pt({attribute:"tabindex",converter:ht})],m3.prototype,"tabIndex",void 0),t([pt({attribute:"maxlength",converter:ht})],m3.prototype,"maxLength",void 0),t([pt({attribute:"processing",mode:"boolean"})],m3.prototype,"processing",void 0),t([pt({attribute:"send-disabled",mode:"boolean"})],m3.prototype,"sendDisabled",void 0),t([C],m3.prototype,"textArea",void 0),t([C],m3.prototype,"isInputEmpty",void 0),t([C],m3.prototype,"scrollbarWidth",void 0),t([C],m3.prototype,"footerActionsIsEmpty",void 0),t([C],m3.prototype,"slottedFooterActionsElements",void 0),t([C],m3.prototype,"attachmentsIsEmpty",void 0),t([C],m3.prototype,"slottedAttachmentsElements",void 0)
17842
+ t.style.height="auto",t.style.height=`${t.scrollHeight}px`}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.textArea.offsetWidth-this.textArea.clientWidth}}t([pt],m3.prototype,"placeholder",void 0),t([pt({attribute:"send-button-label"})],m3.prototype,"sendButtonLabel",void 0),t([pt({attribute:"stop-button-label"})],m3.prototype,"stopButtonLabel",void 0),t([pt],m3.prototype,"value",void 0),t([pt({attribute:"tabindex",converter:ht})],m3.prototype,"tabIndex",void 0),t([pt({attribute:"maxlength",converter:ht})],m3.prototype,"maxLength",void 0),t([pt({attribute:"processing",mode:"boolean"})],m3.prototype,"processing",void 0),t([pt({attribute:"send-disabled",mode:"boolean"})],m3.prototype,"sendDisabled",void 0),t([C],m3.prototype,"textArea",void 0),t([C],m3.prototype,"isInputEmpty",void 0),t([C],m3.prototype,"scrollbarWidth",void 0),t([C],m3.prototype,"footerActionsIsEmpty",void 0),t([C],m3.prototype,"slottedFooterActionsElements",void 0),t([C],m3.prototype,"attachmentsIsEmpty",void 0),t([C],m3.prototype,"slottedAttachmentsElements",void 0)
17706
17843
  const g3=m3.compose({baseName:"chat-input",template:f3,styles:p3,shadowOptions:{delegatesFocus:!0}})
17707
17844
  Mi.getOrCreate().withPrefix("spright").register(g3())
17708
17845
  const v3={system:void 0,outbound:"outbound",inbound:"inbound"},b3=_t`