@aurodesignsystem-dev/auro-formkit 0.0.0-pr1413.2 → 0.0.0-pr1419.1

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.
Files changed (231) hide show
  1. package/package.json +32 -31
  2. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +0 -66
  3. package/components/bibtemplate/dist/buttonVersion.d.ts +0 -2
  4. package/components/bibtemplate/dist/headerVersion.d.ts +0 -2
  5. package/components/bibtemplate/dist/iconVersion.d.ts +0 -2
  6. package/components/bibtemplate/dist/index.d.ts +0 -2
  7. package/components/bibtemplate/dist/index.js +0 -395
  8. package/components/bibtemplate/dist/registered.js +0 -395
  9. package/components/bibtemplate/dist/styles/color-css.d.ts +0 -2
  10. package/components/bibtemplate/dist/styles/style-css.d.ts +0 -2
  11. package/components/bibtemplate/dist/styles/tokens-css.d.ts +0 -2
  12. package/components/checkbox/demo/api.md +0 -489
  13. package/components/checkbox/demo/api.min.js +0 -2133
  14. package/components/checkbox/demo/index.md +0 -55
  15. package/components/checkbox/demo/index.min.js +0 -2108
  16. package/components/checkbox/demo/keyboardBehavior.md +0 -0
  17. package/components/checkbox/demo/readme.md +0 -142
  18. package/components/checkbox/dist/auro-checkbox-group.d.ts +0 -176
  19. package/components/checkbox/dist/auro-checkbox.d.ts +0 -209
  20. package/components/checkbox/dist/index.d.ts +0 -3
  21. package/components/checkbox/dist/index.js +0 -2057
  22. package/components/checkbox/dist/registered.js +0 -2058
  23. package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +0 -2
  24. package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +0 -2
  25. package/components/checkbox/dist/styles/color-css.d.ts +0 -2
  26. package/components/checkbox/dist/styles/colorGroup-css.d.ts +0 -2
  27. package/components/checkbox/dist/styles/tokens-css.d.ts +0 -2
  28. package/components/combobox/demo/api.md +0 -2287
  29. package/components/combobox/demo/api.min.js +0 -17800
  30. package/components/combobox/demo/index.md +0 -196
  31. package/components/combobox/demo/index.min.js +0 -17705
  32. package/components/combobox/demo/keyboardBehavior.md +0 -281
  33. package/components/combobox/demo/readme.md +0 -158
  34. package/components/combobox/dist/auro-combobox.d.ts +0 -566
  35. package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +0 -8
  36. package/components/combobox/dist/index.d.ts +0 -2
  37. package/components/combobox/dist/index.js +0 -15604
  38. package/components/combobox/dist/registered.js +0 -15606
  39. package/components/combobox/dist/styles/emphasized/style-css.d.ts +0 -2
  40. package/components/combobox/dist/styles/snowflake/style-css.d.ts +0 -2
  41. package/components/combobox/dist/styles/style-css.d.ts +0 -2
  42. package/components/counter/demo/api.md +0 -1285
  43. package/components/counter/demo/api.min.js +0 -8112
  44. package/components/counter/demo/index.md +0 -92
  45. package/components/counter/demo/index.min.js +0 -8093
  46. package/components/counter/demo/keyboardBehavior.md +0 -127
  47. package/components/counter/demo/readme.md +0 -161
  48. package/components/counter/dist/auro-counter-button.d.ts +0 -14
  49. package/components/counter/dist/auro-counter-group.d.ts +0 -390
  50. package/components/counter/dist/auro-counter-wrapper.d.ts +0 -17
  51. package/components/counter/dist/auro-counter.d.ts +0 -136
  52. package/components/counter/dist/buttonVersion.d.ts +0 -2
  53. package/components/counter/dist/iconVersion.d.ts +0 -2
  54. package/components/counter/dist/index.d.ts +0 -3
  55. package/components/counter/dist/index.js +0 -8015
  56. package/components/counter/dist/keyboardStrategy.d.ts +0 -4
  57. package/components/counter/dist/registered.js +0 -8016
  58. package/components/counter/dist/styles/color-css.d.ts +0 -2
  59. package/components/counter/dist/styles/counter-button-color-css.d.ts +0 -2
  60. package/components/counter/dist/styles/counter-button-css.d.ts +0 -2
  61. package/components/counter/dist/styles/counter-group-css.d.ts +0 -2
  62. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +0 -2
  63. package/components/counter/dist/styles/counter-wrapper-css.d.ts +0 -2
  64. package/components/counter/dist/styles/shapeSize-css.d.ts +0 -2
  65. package/components/counter/dist/styles/style-css.d.ts +0 -2
  66. package/components/counter/dist/styles/tokens-css.d.ts +0 -2
  67. package/components/datepicker/demo/api.md +0 -1824
  68. package/components/datepicker/demo/api.min.js +0 -24510
  69. package/components/datepicker/demo/index.md +0 -158
  70. package/components/datepicker/demo/index.min.js +0 -24231
  71. package/components/datepicker/demo/keyboardBehavior.md +0 -24
  72. package/components/datepicker/demo/readme.md +0 -137
  73. package/components/datepicker/dist/auro-calendar-cell.d.ts +0 -169
  74. package/components/datepicker/dist/auro-calendar-month.d.ts +0 -20
  75. package/components/datepicker/dist/auro-calendar.d.ts +0 -173
  76. package/components/datepicker/dist/auro-datepicker.d.ts +0 -715
  77. package/components/datepicker/dist/buttonVersion.d.ts +0 -2
  78. package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +0 -1
  79. package/components/datepicker/dist/iconVersion.d.ts +0 -2
  80. package/components/datepicker/dist/index.d.ts +0 -2
  81. package/components/datepicker/dist/index.js +0 -24146
  82. package/components/datepicker/dist/popoverVersion.d.ts +0 -2
  83. package/components/datepicker/dist/registered.js +0 -24146
  84. package/components/datepicker/dist/styles/classic/color-css.d.ts +0 -2
  85. package/components/datepicker/dist/styles/classic/style-css.d.ts +0 -2
  86. package/components/datepicker/dist/styles/color-calendar-css.d.ts +0 -2
  87. package/components/datepicker/dist/styles/color-cell-css.d.ts +0 -2
  88. package/components/datepicker/dist/styles/color-css.d.ts +0 -2
  89. package/components/datepicker/dist/styles/color-month-css.d.ts +0 -2
  90. package/components/datepicker/dist/styles/shapeSize-css.d.ts +0 -2
  91. package/components/datepicker/dist/styles/snowflake/color-css.d.ts +0 -2
  92. package/components/datepicker/dist/styles/snowflake/style-css.d.ts +0 -2
  93. package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +0 -2
  94. package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +0 -2
  95. package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +0 -2
  96. package/components/datepicker/dist/styles/style-css.d.ts +0 -2
  97. package/components/datepicker/dist/styles/tokens-css.d.ts +0 -2
  98. package/components/datepicker/dist/utilities.d.ts +0 -78
  99. package/components/datepicker/dist/utilitiesCalendar.d.ts +0 -38
  100. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +0 -50
  101. package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +0 -5
  102. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +0 -60
  103. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +0 -1
  104. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +0 -57
  105. package/components/dropdown/demo/api.md +0 -1358
  106. package/components/dropdown/demo/api.min.js +0 -4894
  107. package/components/dropdown/demo/index.md +0 -283
  108. package/components/dropdown/demo/index.min.js +0 -4829
  109. package/components/dropdown/demo/keyboardBehavior.md +0 -77
  110. package/components/dropdown/demo/readme.md +0 -160
  111. package/components/dropdown/dist/auro-dropdown.d.ts +0 -482
  112. package/components/dropdown/dist/auro-dropdownBib.d.ts +0 -128
  113. package/components/dropdown/dist/dropdownBibKeyboardStrategy.d.ts +0 -7
  114. package/components/dropdown/dist/iconVersion.d.ts +0 -2
  115. package/components/dropdown/dist/index.d.ts +0 -2
  116. package/components/dropdown/dist/index.js +0 -4722
  117. package/components/dropdown/dist/registered.js +0 -4722
  118. package/components/dropdown/dist/styles/classic/bibColors-css.d.ts +0 -2
  119. package/components/dropdown/dist/styles/classic/bibStyles-css.d.ts +0 -2
  120. package/components/dropdown/dist/styles/classic/color-css.d.ts +0 -2
  121. package/components/dropdown/dist/styles/classic/style-css.d.ts +0 -2
  122. package/components/dropdown/dist/styles/color-css.d.ts +0 -2
  123. package/components/dropdown/dist/styles/emphasized/style-css.d.ts +0 -2
  124. package/components/dropdown/dist/styles/shapeSize-css.d.ts +0 -2
  125. package/components/dropdown/dist/styles/snowflake/style-css.d.ts +0 -2
  126. package/components/dropdown/dist/styles/style-css.d.ts +0 -2
  127. package/components/dropdown/dist/styles/tokens-css.d.ts +0 -2
  128. package/components/form/demo/api.md +0 -319
  129. package/components/form/demo/api.min.js +0 -70505
  130. package/components/form/demo/index.md +0 -128
  131. package/components/form/demo/index.min.js +0 -70505
  132. package/components/form/demo/keyboardBehavior.md +0 -0
  133. package/components/form/demo/readme.md +0 -145
  134. package/components/form/dist/auro-form.d.ts +0 -280
  135. package/components/form/dist/index.d.ts +0 -2
  136. package/components/form/dist/index.js +0 -718
  137. package/components/form/dist/registered.d.ts +0 -1
  138. package/components/form/dist/registered.js +0 -718
  139. package/components/form/dist/styles/style-css.d.ts +0 -2
  140. package/components/helptext/dist/auro-helptext.d.ts +0 -69
  141. package/components/helptext/dist/index.d.ts +0 -2
  142. package/components/helptext/dist/index.js +0 -231
  143. package/components/helptext/dist/registered.js +0 -231
  144. package/components/helptext/dist/styles/color-css.d.ts +0 -2
  145. package/components/helptext/dist/styles/style-css.d.ts +0 -2
  146. package/components/helptext/dist/styles/tokens-css.d.ts +0 -2
  147. package/components/input/demo/api.md +0 -1397
  148. package/components/input/demo/api.min.js +0 -7460
  149. package/components/input/demo/index.md +0 -161
  150. package/components/input/demo/index.min.js +0 -7380
  151. package/components/input/demo/keyboardBehavior.md +0 -0
  152. package/components/input/demo/readme.md +0 -134
  153. package/components/input/dist/auro-input.d.ts +0 -206
  154. package/components/input/dist/base-input.d.ts +0 -629
  155. package/components/input/dist/buttonVersion.d.ts +0 -2
  156. package/components/input/dist/i18n.d.ts +0 -18
  157. package/components/input/dist/iconVersion.d.ts +0 -2
  158. package/components/input/dist/index.d.ts +0 -2
  159. package/components/input/dist/index.js +0 -7292
  160. package/components/input/dist/registered.js +0 -7292
  161. package/components/input/dist/styles/classic/color-css.d.ts +0 -2
  162. package/components/input/dist/styles/classic/style-css.d.ts +0 -2
  163. package/components/input/dist/styles/color-css.d.ts +0 -2
  164. package/components/input/dist/styles/default/borders-css.d.ts +0 -2
  165. package/components/input/dist/styles/default/color-css.d.ts +0 -2
  166. package/components/input/dist/styles/default/mixins-css.d.ts +0 -2
  167. package/components/input/dist/styles/default/notificationIcons-css.d.ts +0 -2
  168. package/components/input/dist/styles/default/style-css.d.ts +0 -2
  169. package/components/input/dist/styles/emphasized/color-css.d.ts +0 -2
  170. package/components/input/dist/styles/emphasized/style-css.d.ts +0 -2
  171. package/components/input/dist/styles/mixins-css.d.ts +0 -2
  172. package/components/input/dist/styles/shapeSize-css.d.ts +0 -2
  173. package/components/input/dist/styles/snowflake/style-css.d.ts +0 -2
  174. package/components/input/dist/styles/style-css.d.ts +0 -2
  175. package/components/input/dist/styles/tokens-css.d.ts +0 -2
  176. package/components/input/dist/utilities.d.ts +0 -25
  177. package/components/layoutElement/dist/auroElement.d.ts +0 -40
  178. package/components/layoutElement/dist/index.d.ts +0 -2
  179. package/components/layoutElement/dist/index.js +0 -107
  180. package/components/layoutElement/dist/registered.js +0 -107
  181. package/components/menu/demo/api.md +0 -1200
  182. package/components/menu/demo/api.min.js +0 -2413
  183. package/components/menu/demo/index.md +0 -72
  184. package/components/menu/demo/index.min.js +0 -2306
  185. package/components/menu/demo/keyboardBehavior.md +0 -0
  186. package/components/menu/demo/readme.md +0 -145
  187. package/components/menu/dist/auro-menu-utils.d.ts +0 -34
  188. package/components/menu/dist/auro-menu.context.d.ts +0 -239
  189. package/components/menu/dist/auro-menu.d.ts +0 -316
  190. package/components/menu/dist/auro-menuoption.d.ts +0 -210
  191. package/components/menu/dist/iconVersion.d.ts +0 -2
  192. package/components/menu/dist/index.d.ts +0 -4
  193. package/components/menu/dist/index.js +0 -2269
  194. package/components/menu/dist/registered.js +0 -2217
  195. package/components/menu/dist/styles/default/color-menu-css.d.ts +0 -2
  196. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +0 -2
  197. package/components/menu/dist/styles/default/style-menu-css.d.ts +0 -2
  198. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +0 -2
  199. package/components/menu/dist/styles/default/tokens-css.d.ts +0 -2
  200. package/components/radio/demo/api.md +0 -675
  201. package/components/radio/demo/api.min.js +0 -2210
  202. package/components/radio/demo/index.md +0 -73
  203. package/components/radio/demo/index.min.js +0 -2167
  204. package/components/radio/demo/keyboardBehavior.md +0 -0
  205. package/components/radio/demo/readme.md +0 -141
  206. package/components/radio/dist/auro-radio-group.d.ts +0 -250
  207. package/components/radio/dist/auro-radio.d.ts +0 -180
  208. package/components/radio/dist/index.d.ts +0 -3
  209. package/components/radio/dist/index.js +0 -2116
  210. package/components/radio/dist/registered.js +0 -2117
  211. package/components/radio/dist/styles/auro-radio-group-css.d.ts +0 -2
  212. package/components/radio/dist/styles/color-css.d.ts +0 -2
  213. package/components/radio/dist/styles/groupColor-css.d.ts +0 -2
  214. package/components/radio/dist/styles/style-css.d.ts +0 -2
  215. package/components/radio/dist/styles/tokens-css.d.ts +0 -2
  216. package/components/select/demo/api.md +0 -2378
  217. package/components/select/demo/api.min.js +0 -10400
  218. package/components/select/demo/index.md +0 -355
  219. package/components/select/demo/index.min.js +0 -10307
  220. package/components/select/demo/keyboardBehavior.md +0 -246
  221. package/components/select/demo/readme.md +0 -148
  222. package/components/select/dist/auro-select.d.ts +0 -545
  223. package/components/select/dist/index.d.ts +0 -2
  224. package/components/select/dist/index.js +0 -8218
  225. package/components/select/dist/registered.js +0 -8218
  226. package/components/select/dist/selectKeyboardStrategy.d.ts +0 -11
  227. package/components/select/dist/styles/emphasized/color-css.d.ts +0 -2
  228. package/components/select/dist/styles/shapeSize-css.d.ts +0 -2
  229. package/components/select/dist/styles/style-css.d.ts +0 -2
  230. package/components/select/dist/styles/tokens-css.d.ts +0 -2
  231. package/custom-elements.json +0 -18768
@@ -1,2108 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2019 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
6
- const t$2=globalThis,e$4=t$2.ShadowRoot&&(void 0===t$2.ShadyCSS||t$2.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$3=Symbol(),o$5=new WeakMap;let n$3 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$3)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$4&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$5.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$5.set(s,t));}return t}toString(){return this.cssText}};const r$2=t=>new n$3("string"==typeof t?t:t+"",void 0,s$3),i$5=(t,...e)=>{const o=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new n$3(o,t,s$3)},S$1=(s,o)=>{if(e$4)s.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const e of o){const o=document.createElement("style"),n=t$2.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2=e$4?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$2(e)})(t):t;
7
-
8
- /**
9
- * @license
10
- * Copyright 2017 Google LLC
11
- * SPDX-License-Identifier: BSD-3-Clause
12
- */const{is:i$4,defineProperty:e$3,getOwnPropertyDescriptor:h$1,getOwnPropertyNames:r$1,getOwnPropertySymbols:o$4,getPrototypeOf:n$2}=Object,a$2=globalThis,c$1=a$2.trustedTypes,l$2=c$1?c$1.emptyScript:"",p$1=a$2.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1=(t,s)=>!i$4(t,s),b$1={attribute:true,type:String,converter:u$2,reflect:false,useDefault:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;let y$1 = class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b$1){if(s.state&&(s.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=true),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e$3(this.prototype,t,h);}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??b$1}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$2(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...r$1(t),...o$4(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach(t=>t.hostConnected?.());}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.());}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2;this._$Em=e;const r=h.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null;}}requestUpdate(t,s,i,e=false,h){if(void 0!==t){const r=this.constructor;if(false===e&&(h=this[t]),i??=r.getPropertyOptions(t),!((i.hasChanged??f$1)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,i))))return;this.C(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$EP());}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),true!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),true===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t));}async _$EP(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];true!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e);}}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(s)):this._$EM();}catch(s){throw t=false,this._$EM(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EM(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM();}updated(t){}firstUpdated(t){}};y$1.elementStyles=[],y$1.shadowRootOptions={mode:"open"},y$1[d$1("elementProperties")]=new Map,y$1[d$1("finalized")]=new Map,p$1?.({ReactiveElement:y$1}),(a$2.reactiveElementVersions??=[]).push("2.1.2");
13
-
14
- /**
15
- * @license
16
- * Copyright 2017 Google LLC
17
- * SPDX-License-Identifier: BSD-3-Clause
18
- */
19
- const t$1=globalThis,i$3=t=>t,s$2=t$1.trustedTypes,e$2=s$2?s$2.createPolicy("lit-html",{createHTML:t=>t}):void 0,h="$lit$",o$3=`lit$${Math.random().toFixed(9).slice(2)}$`,n$1="?"+o$3,r=`<${n$1}>`,l$1=document,c=()=>l$1.createComment(""),a$1=t=>null===t||"object"!=typeof t&&"function"!=typeof t,u$1=Array.isArray,d=t=>u$1(t)||"function"==typeof t?.[Symbol.iterator],f="[ \t\n\f\r]",v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,m=/>/g,p=RegExp(`>|${f}(?:([^\\s"'>=/]+)(${f}*=${f}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,x=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),b=x(1),E=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),C=new WeakMap,P=l$1.createTreeWalker(l$1,129);function V(t,i){if(!u$1(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==e$2?e$2.createHTML(i):i}const N=(t,i)=>{const s=t.length-1,e=[];let n,l=2===i?"<svg>":3===i?"<math>":"",c=v;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,f=0;for(;f<s.length&&(c.lastIndex=f,u=c.exec(s),null!==u);)f=c.lastIndex,c===v?"!--"===u[1]?c=_:void 0!==u[1]?c=m:void 0!==u[2]?(y.test(u[2])&&(n=RegExp("</"+u[2],"g")),c=p):void 0!==u[3]&&(c=p):c===p?">"===u[0]?(c=n??v,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?p:'"'===u[3]?$:g):c===$||c===g?c=p:c===_||c===m?c=v:(c=p,n=void 0);const x=c===p&&t[i+1].startsWith("/>")?" ":"";l+=c===v?s+r:d>=0?(e.push(a),s.slice(0,d)+h+s.slice(d)+o$3+x):s+o$3+(-2===d?i:x);}return [V(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),e]};class S{constructor({strings:t,_$litType$:i},e){let r;this.parts=[];let l=0,a=0;const u=t.length-1,d=this.parts,[f,v]=N(t,i);if(this.el=S.createElement(f,e),P.currentNode=this.el.content,2===i||3===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=P.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(h)){const i=v[a++],s=r.getAttribute(t).split(o$3),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:l,name:e[2],strings:s,ctor:"."===e[1]?I:"?"===e[1]?L:"@"===e[1]?z:H}),r.removeAttribute(t);}else t.startsWith(o$3)&&(d.push({type:6,index:l}),r.removeAttribute(t));if(y.test(r.tagName)){const t=r.textContent.split(o$3),i=t.length-1;if(i>0){r.textContent=s$2?s$2.emptyScript:"";for(let s=0;s<i;s++)r.append(t[s],c()),P.nextNode(),d.push({type:2,index:++l});r.append(t[i],c());}}}else if(8===r.nodeType)if(r.data===n$1)d.push({type:2,index:l});else {let t=-1;for(;-1!==(t=r.data.indexOf(o$3,t+1));)d.push({type:7,index:l}),t+=o$3.length-1;}l++;}}static createElement(t,i){const s=l$1.createElement("template");return s.innerHTML=t,s}}function M(t,i,s=t,e){if(i===E)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=a$1(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=M(t,h._$AS(t,i.values),h,e)),i}class R{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??l$1).importNode(i,true);P.currentNode=e;let h=P.nextNode(),o=0,n=0,r=s[0];for(;void 0!==r;){if(o===r.index){let i;2===r.type?i=new k(h,h.nextSibling,this,t):1===r.type?i=new r.ctor(h,r.name,r.strings,this,t):6===r.type&&(i=new Z(h,this,t)),this._$AV.push(i),r=s[++n];}o!==r?.index&&(h=P.nextNode(),o++);}return P.currentNode=l$1,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class k{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=M(this,t,i),a$1(t)?t===A||null==t||""===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==E&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):d(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==A&&a$1(this._$AH)?this._$AA.nextSibling.data=t:this.T(l$1.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=S.createElement(V(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new R(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=C.get(t.strings);return void 0===i&&C.set(t.strings,i=new S(t)),i}k(t){u$1(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new k(this.O(c()),this.O(c()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(false,true,s);t!==this._$AB;){const s=i$3(t).nextSibling;i$3(t).remove(),t=s;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class H{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=M(this,t,i,0),o=!a$1(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=M(this,e[s+n],i,n),r===E&&(r=this._$AH[n]),o||=!a$1(r)||r!==this._$AH[n],r===A?t=A:t!==A&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class I extends H{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===A?void 0:t;}}class L extends H{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A);}}class z extends H{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=M(this,t,i,0)??A)===E)return;const s=this._$AH,e=t===A&&s!==A||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==A&&(s===A||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class Z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t);}}const B=t$1.litHtmlPolyfillSupport;B?.(S,k),(t$1.litHtmlVersions??=[]).push("3.3.2");const D=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new k(i.insertBefore(c(),t),t,void 0,s??{});}return h._$AI(t),h};
20
-
21
- /**
22
- * @license
23
- * Copyright 2017 Google LLC
24
- * SPDX-License-Identifier: BSD-3-Clause
25
- */const s$1=globalThis;let i$2 = class i extends y$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=D(r,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return E}};i$2._$litElement$=true,i$2["finalized"]=true,s$1.litElementHydrateSupport?.({LitElement:i$2});const o$2=s$1.litElementPolyfillSupport;o$2?.({LitElement:i$2});(s$1.litElementVersions??=[]).push("4.2.2");
26
-
27
- /**
28
- * @license
29
- * Copyright 2017 Google LLC
30
- * SPDX-License-Identifier: BSD-3-Clause
31
- */
32
- const t={ATTRIBUTE:1},e$1=t=>(...e)=>({_$litDirective$:t,values:e});let i$1 = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
33
-
34
- /**
35
- * @license
36
- * Copyright 2018 Google LLC
37
- * SPDX-License-Identifier: BSD-3-Clause
38
- */const e=e$1(class extends i$1{constructor(t$1){if(super(t$1),t$1.type!==t.ATTRIBUTE||"class"!==t$1.name||t$1.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter(s=>t[s]).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return E}});
39
-
40
- /**
41
- * @license
42
- * Copyright 2018 Google LLC
43
- * SPDX-License-Identifier: BSD-3-Clause
44
- */const o$1=o=>o??A;
45
-
46
- var styleCss$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host{display:block;--cbxLocation: var(--ds-size-50, 0.25rem)}:host(:focus-visible){outline:none !important}fieldset{all:unset}@media screen and (min-width: 576px){.displayFlex slot{display:flex}}.cbxContainer{position:relative;display:flex;flex-direction:row;gap:var(--ds-size-100, 0.5rem);padding-left:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-100, 0.5rem)}.cbxContainer:hover{cursor:pointer}.label{display:block;padding-top:var(--ds-size-50, 0.25rem)}.label:hover{cursor:pointer}:host([disabled]) .cbxContainer{pointer-events:none;cursor:default}.inputContainer{position:relative}.inputContainer:after{-webkit-tap-highlight-color:transparent;display:block;content:"";align-items:center;justify-content:center;margin-top:var(--cbxLocation);width:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem));border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);outline-style:solid;outline-width:1px;z-index:0}.svg--cbx{position:absolute;left:0;top:3px;bottom:3px;z-index:1;pointer-events:none}`;
47
-
48
- var colorCss$2 = i$5`:host(:not([checked])) .cbxContainer:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse-hover, #f2f2f2)}:host .label{color:var(--ds-auro-checkbox-label-color)}:host .inputContainer:after{background-color:var(--ds-auro-checkbox-container-color);border-color:var(--ds-auro-checkbox-border-color);outline-color:var(--ds-auro-checkbox-outline-color)}:host .inputContainer:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse-hover, #f2f2f2)}:host .svg--cbx{color:var(--ds-auro-checkbox-checkmark-color)}:host(:focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-checkbox-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([checked]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-istrue, #01426a);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-istrue, #01426a)}:host([checked]) .cbxContainer:hover,:host([checked]) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-istrue-hover, #00274a);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-istrue-hover, #00274a)}:host([checked]:focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([checked]:focus-within) .cbxContainer:hover,:host([checked]:focus-within) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-istrue-hover, #00274a)}:host([disabled]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-background-disabled, #dddddd);--ds-auro-checkbox-label-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([disabled]) .cbxContainer:hover,:host([disabled]) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-background-disabled, #dddddd);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse, #ffffff)}:host([disabled][checked]){--ds-auro-checkbox-container-color: var(--ds-advanced-color-state-background-disabled, #dddddd)}:host([disabled][checked]) .cbxContainer:hover,:host([disabled][checked]) .inputContainer:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-state-background-disabled, #dddddd)}:host([error]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error, #e31f26)}:host([error]:not([checked]):focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-checkbox-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([error][checked]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error, #e31f26);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-error, #e31f26)}:host([error][checked]) .cbxContainer:hover,:host([error][checked]) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error-hover, #b1161c);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-error-hover, #b1161c)}:host([error][checked]:focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([error][checked]:focus-within) .cbxContainer:hover,:host([error][checked]:focus-within) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-error-hover, #b1161c)}:host([onDark]),:host([appearance=inverse]){--ds-auro-checkbox-label-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-checkbox-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-checkbox-container-color: transparent}:host([onDark]) .cbxContainer:hover,:host([onDark]) .inputContainer:hover,:host([appearance=inverse]) .cbxContainer:hover,:host([appearance=inverse]) .inputContainer:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse-inverse-hover, rgba(255, 255, 255, 0.2))}:host([onDark]:not([checked])) .cbxContainer:hover,:host([onDark]:not([checked])) .inputContainer:hover,:host([appearance=inverse]:not([checked])) .cbxContainer:hover,:host([appearance=inverse]:not([checked])) .inputContainer:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse-inverse-hover, rgba(255, 255, 255, 0.2))}:host([onDark]:focus-within),:host([appearance=inverse]:focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-checkbox-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][checked]),:host([appearance=inverse][checked]){--ds-auro-checkbox-checkmark-color: var(--ds-advanced-color-boolean-indicator-inverse, #00274a);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-istrue-inverse, #ffffff)}:host([onDark][checked]) .cbxContainer:hover,:host([onDark][checked]) .inputContainer:hover,:host([appearance=inverse][checked]) .cbxContainer:hover,:host([appearance=inverse][checked]) .inputContainer:hover{--ds-auro-checkbox-border-color: transparent;--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-istrue-inverse-hover, rgba(255, 255, 255, 0.7))}:host([onDark][checked]:focus-within),:host([appearance=inverse][checked]:focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([onDark][checked]:focus-within) .cbxContainer:hover,:host([onDark][checked]:focus-within) .inputContainer:hover,:host([appearance=inverse][checked]:focus-within) .cbxContainer:hover,:host([appearance=inverse][checked]:focus-within) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-istrue-inverse-hover, rgba(255, 255, 255, 0.7))}:host([onDark][disabled]),:host([appearance=inverse][disabled]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894);--ds-auro-checkbox-label-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][disabled]) .cbxContainer:hover,:host([onDark][disabled]) .inputContainer:hover,:host([appearance=inverse][disabled]) .cbxContainer:hover,:host([appearance=inverse][disabled]) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894);--ds-auro-checkbox-container-color: transparent}:host([onDark][disabled][checked]),:host([appearance=inverse][disabled][checked]){--ds-auro-checkbox-container-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894)}:host([onDark][disabled][checked]) .cbxContainer:hover,:host([onDark][disabled][checked]) .inputContainer:hover,:host([appearance=inverse][disabled][checked]) .cbxContainer:hover,:host([appearance=inverse][disabled][checked]) .inputContainer:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894)}:host([onDark][error]),:host([appearance=inverse][error]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error-inverse, #f9a4a8)}:host([onDark][error]:not([checked]):focus-within),:host([appearance=inverse][error]:not([checked]):focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-checkbox-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][error][checked]),:host([appearance=inverse][error][checked]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error-inverse, #f9a4a8);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-error-inverse, #f9a4a8)}:host([onDark][error][checked]) .cbxContainer:hover,:host([onDark][error][checked]) .inputContainer:hover,:host([appearance=inverse][error][checked]) .cbxContainer:hover,:host([appearance=inverse][error][checked]) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error-inverse-hover, #f15f65);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-error-inverse-hover, #f15f65)}:host([onDark][error][checked]:focus-within),:host([appearance=inverse][error][checked]:focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([onDark][error][checked]:focus-within) .cbxContainer:hover,:host([onDark][error][checked]:focus-within) .inputContainer:hover,:host([appearance=inverse][error][checked]:focus-within) .cbxContainer:hover,:host([appearance=inverse][error][checked]:focus-within) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-error-inverse-hover, #f15f65)}`;
49
-
50
- var tokensCss$1 = i$5`:host{--ds-auro-checkbox-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-checkbox-checkmark-color: var(--ds-advanced-color-boolean-indicator, #ffffff);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse, #ffffff);--ds-auro-checkbox-label-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-checkbox-outline-color: transparent;--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
51
-
52
- var checkLg = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-hidden=\"true\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><path d=\"M5.321 12.514a.75.75 0 0 0-1.142.972l4.25 5a.75.75 0 0 0 1.141.001l10.25-12a.75.75 0 1 0-1.14-.975L9 16.844z\"/></svg>"};
53
-
54
- // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
55
- // See LICENSE in the project root for license information.
56
-
57
- // ---------------------------------------------------------------------
58
-
59
- /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
60
-
61
- let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
62
-
63
- /* eslint-disable jsdoc/require-param */
64
-
65
- /**
66
- * This will register a new custom element with the browser.
67
- * @param {String} name - The name of the custom element.
68
- * @param {Object} componentClass - The class to register as a custom element.
69
- * @returns {void}
70
- */
71
- registerComponent(name, componentClass) {
72
- if (!customElements.get(name)) {
73
- customElements.define(name, class extends componentClass {});
74
- }
75
- }
76
-
77
- /**
78
- * Finds and returns the closest HTML Element based on a selector.
79
- * @returns {void}
80
- */
81
- closestElement(
82
- selector, // selector like in .closest()
83
- base = this, // extra functionality to skip a parent
84
- __Closest = (el, found = el && el.closest(selector)) =>
85
- !el || el === document || el === window
86
- ? null // standard .closest() returns null for non-found selectors also
87
- : found
88
- ? found // found a selector INside this element
89
- : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
90
- ) {
91
- return __Closest(base);
92
- }
93
- /* eslint-enable jsdoc/require-param */
94
-
95
- /**
96
- * If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
97
- * @param {Object} elem - The element to check.
98
- * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
99
- * @returns {void}
100
- */
101
- handleComponentTagRename(elem, tagName) {
102
- const tag = tagName.toLowerCase();
103
- const elemTag = elem.tagName.toLowerCase();
104
-
105
- if (elemTag !== tag) {
106
- elem.setAttribute(tag, true);
107
- }
108
- }
109
-
110
- /**
111
- * Validates if an element is a specific Auro component.
112
- * @param {Object} elem - The element to validate.
113
- * @param {String} tagName - The name of the Auro component to check against.
114
- * @returns {Boolean} - Returns true if the element is the specified Auro component.
115
- */
116
- elementMatch(elem, tagName) {
117
- const tag = tagName.toLowerCase();
118
- const elemTag = elem.tagName.toLowerCase();
119
-
120
- return elemTag === tag || elem.hasAttribute(tag);
121
- }
122
-
123
- /**
124
- * Gets the text content of a named slot.
125
- * @returns {String}
126
- * @private
127
- */
128
- getSlotText(elem, name) {
129
- const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
130
- const nodes = slot?.assignedNodes({ flatten: true }) || [];
131
- const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
132
-
133
- return text || null;
134
- }
135
- };
136
-
137
- // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
138
- // See LICENSE in the project root for license information.
139
-
140
-
141
- /**
142
- * The `auro-checkbox` element is for the purpose of allowing users to select one or more options of a limited number of choices.
143
- * @customElement auro-checkbox
144
- *
145
- * @csspart checkbox - apply css to a specific checkbox.
146
- * @csspart checkbox-input - apply css to a specific checkbox's input.
147
- * @csspart checkbox-label - apply css to a specific checkbox's label.
148
- *
149
- * @slot default - The default slot for the checkbox label.
150
- *
151
- * @fires {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
152
- * @fires {InputEvent} input - Notifies when when checked value is changed by user's interface.
153
- */
154
-
155
- // build the component class
156
- class AuroCheckbox extends i$2 {
157
- constructor() {
158
- super();
159
-
160
- this._initializeDefaults();
161
- }
162
-
163
- _initializeDefaults() {
164
- this.apperance = 'default';
165
- this.checked = false;
166
- this.disabled = false;
167
- this.error = false;
168
- this.onDark = false;
169
- this.touched = false;
170
- this.tabIndex = 0;
171
- this.ariaChecked = 'false';
172
- this.role = 'checkbox';
173
-
174
- /**
175
- * @private
176
- */
177
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
178
- }
179
-
180
- static get styles() {
181
- return [
182
- styleCss$2,
183
- colorCss$2,
184
- tokensCss$1
185
- ];
186
- }
187
-
188
- // function to define props used within the scope of this component
189
- static get properties() {
190
- return {
191
- ...super.properties,
192
-
193
- /**
194
- * Defines whether the component will be on lighter or darker backgrounds.
195
- * @type {'default' | 'inverse'}
196
- * @default 'default'
197
- */
198
- appearance: {
199
- type: String,
200
- reflect: true
201
- },
202
-
203
- /**
204
- * If set to true, the checkbox will be filled with a checkmark.
205
- */
206
- checked: {
207
- type: Boolean,
208
- reflect: true
209
- },
210
-
211
- /**
212
- * If set to true, the checkbox will not be clickable.
213
- */
214
- disabled: {
215
- type: Boolean,
216
- reflect: true
217
- },
218
-
219
- /**
220
- * If set to true, the checkbox will be displayed with an error state.
221
- */
222
- error: {
223
- type: Boolean,
224
- reflect: true
225
- },
226
-
227
- /**
228
- * The id global attribute defines an identifier (ID) which must be unique in the whole document.
229
- */
230
- id: {
231
- type: String
232
- },
233
-
234
- /**
235
- * The id for input node.
236
- * @private
237
- */
238
- inputId: {
239
- type: String,
240
- reflect: false,
241
- attribute: false
242
- },
243
-
244
- /**
245
- * Accepts any string and is used to identify related checkboxes when submitting form data.
246
- */
247
- name: { type: String },
248
-
249
- /**
250
- * DEPRECATED - use `appearance="inverse"` instead.
251
- */
252
- onDark: {
253
- type: Boolean,
254
- reflect: true
255
- },
256
-
257
- /**
258
- * Indicates whether the checkbox has been interacted with.
259
- * @private
260
- */
261
- touched: {
262
- type: Boolean,
263
- reflect: true,
264
- attribute: false
265
- },
266
-
267
- /**
268
- * Sets the element's input value. Must be unique within an auro-checkbox-group element.
269
- */
270
- value: {
271
- type: String,
272
- reflect: false
273
- },
274
-
275
- /**
276
- * The tabindex attribute for the checkbox.
277
- * @private
278
- */
279
- tabIndex: {
280
- type: Number,
281
- reflect: true,
282
- attribute: 'tabindex'
283
- },
284
-
285
- /**
286
- * The aria-checked attribute for the checkbox.
287
- * @private
288
- */
289
- ariaChecked: {
290
- type: String,
291
- reflect: true,
292
- attribute: 'aria-checked'
293
- },
294
-
295
- /**
296
- * The aria-disabled attribute for the checkbox.
297
- * @private
298
- */
299
- ariaDisabled: {
300
- type: String,
301
- reflect: true,
302
- attribute: 'aria-disabled'
303
- },
304
-
305
- /**
306
- * The ARIA role for the element. Must remain 'checkbox' for screen readers
307
- * to correctly identify this as a checkbox control.
308
- * @private
309
- */
310
- role: {
311
- type: String,
312
- reflect: true
313
- },
314
-
315
- };
316
- }
317
-
318
- /**
319
- * This will register this element with the browser.
320
- * @param {string} [name="auro-checkbox"] - The name of element that you want to register to.
321
- *
322
- * @example
323
- * AuroCheckbox.register("custom-checkbox") // this will register this element to <custom-checkbox/>
324
- *
325
- */
326
- static register(name = "auro-checkbox") {
327
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroCheckbox);
328
- }
329
-
330
- /**
331
- * Handles the change event for the checkbox input.
332
- * Updates the checked state and dispatches a corresponding custom event.
333
- * This custom event is only for the purpose of supporting IE.
334
- * @private
335
- * @param {Event} event - The change event from the checkbox input.
336
- * @returns {void}
337
- */
338
- handleChange(event) {
339
- this.checked = event.target.checked;
340
- const customEvent = new CustomEvent(event.type, event);
341
-
342
- this.dispatchEvent(customEvent);
343
- }
344
-
345
- /**
346
- * Handles the input event for the checkbox input.
347
- * Updates the checked state and dispatches a custom 'auroCheckbox-input' event.
348
- * @private
349
- * @param {Event} event - The input event from the checkbox input.
350
- * @returns {void}
351
- */
352
- handleInput(event) {
353
- this.checked = event.target.checked;
354
-
355
- // Old event we need to deprecate
356
- this.dispatchEvent(new CustomEvent('auroCheckbox-input', {
357
- bubbles: true,
358
- cancelable: false,
359
- composed: true,
360
- }));
361
- }
362
-
363
- /**
364
- * Function to support @focusin event.
365
- * @private
366
- * @returns {void}
367
- */
368
- handleFocusin() {
369
- this.touched = true;
370
- this.dispatchEvent(new CustomEvent('auroCheckbox-focusin', {
371
- bubbles: true,
372
- cancelable: false,
373
- composed: true,
374
- }));
375
- }
376
-
377
- /**
378
- * Function to generate checkmark svg.
379
- * @private
380
- * @returns {HTMLElement}
381
- */
382
- generateIconHtml() {
383
- this.dom = new DOMParser().parseFromString(checkLg.svg, 'text/html');
384
- this.svg = this.dom.body.firstChild;
385
-
386
- this.svg.classList.add('svg--cbx');
387
-
388
- return this.svg;
389
- }
390
-
391
- /**
392
- * Resets component to initial state.
393
- * @returns {void}
394
- */
395
- reset() {
396
- this.checked = false;
397
- this.error = false;
398
- this.touched = false;
399
- }
400
-
401
- /**
402
- * Updates the aria-label based on slot content.
403
- * @private
404
- * @returns {void}
405
- */
406
- updateAriaLabel() {
407
- const slot = this.shadowRoot.querySelector('slot');
408
- const text = slot.assignedNodes().
409
- map((node) => node.textContent).
410
- join('').
411
- trim();
412
- if (text) {
413
- this.setAttribute('aria-label', text);
414
- }
415
- }
416
-
417
- firstUpdated() {
418
- // Add the tag name as an attribute if it is different than the component name
419
- this.runtimeUtils.handleComponentTagRename(this, 'auro-checkbox');
420
-
421
- this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
422
-
423
- this.addEventListener('click', (evt) => {
424
- // Only prevent default for real user events, not tests or programmatic calls
425
- if (evt.isTrusted) {
426
- evt.preventDefault();
427
- }
428
-
429
- if (!this.disabled) {
430
- this.shadowRoot.querySelector('input').click();
431
- this.handleFocusin();
432
- }
433
- });
434
-
435
- this.addEventListener('focusin', () => {
436
- this.handleFocusin();
437
- });
438
-
439
- this.addEventListener('focusout', () => {
440
- this.dispatchEvent(new CustomEvent('auroCheckbox-focusout', {
441
- bubbles: true,
442
- cancelable: false,
443
- composed: true,
444
- }));
445
- });
446
- }
447
-
448
- connectedCallback() {
449
- super.connectedCallback();
450
-
451
- this.handleKeyDown = this.handleKeyDown.bind(this);
452
- this.addEventListener('keydown', this.handleKeyDown);
453
- }
454
-
455
- disconnectedCallback() {
456
- super.disconnectedCallback();
457
-
458
- this.removeEventListener('keydown', this.handleKeyDown);
459
- }
460
-
461
- /**
462
- * Updates ARIA attributes when properties change.
463
- * @private
464
- * @param {Map} changedProperties - Map of changed properties.
465
- * @returns {void}
466
- */
467
- updated(changedProperties) {
468
- super.updated(changedProperties);
469
-
470
- if (changedProperties.has('checked')) {
471
- this.ariaChecked = this.checked ? 'true' : 'false';
472
- }
473
-
474
- if (changedProperties.has('disabled')) {
475
- this.ariaDisabled = this.disabled ? 'true' : undefined;
476
- }
477
- }
478
-
479
- /**
480
- * Handles keydown event to toggle the checkbox with Space key.
481
- * @private
482
- * @param {KeyboardEvent} event - The keydown event from the checkbox input.
483
- * @returns {void}
484
- */
485
- handleKeyDown(event) {
486
- if (event.key === ' ' && !this.disabled) {
487
- event.preventDefault();
488
-
489
- this.shadowRoot.querySelector('input').click();
490
- }
491
- }
492
-
493
- /**
494
- * @private
495
- * @returns {HTMLElement}
496
- */
497
- render() {
498
- const labelClasses = {
499
- 'label': true,
500
- 'label--cbx': true,
501
- 'errorBorder': this.error
502
- };
503
-
504
- return b`
505
- <div class="cbxContainer body-default" part="checkbox">
506
- <div class="inputContainer">
507
- <input
508
- class="util_displayHidden cbx--input"
509
- part="checkbox-input"
510
- @change="${this.handleChange}"
511
- @input="${this.handleInput}"
512
- ?disabled="${this.disabled}"
513
- ?checked="${this.checked}"
514
- id="${this.inputId}"
515
- name="${o$1(this.name)}"
516
- type="checkbox"
517
- .value="${this.value}"
518
- aria-hidden="true"
519
- tabindex="-1"
520
- />
521
- ${this.checked ? this.generateIconHtml() : undefined}
522
- </div>
523
-
524
- <span class="${e(labelClasses)}" part="checkbox-label">
525
- <slot @slotchange="${this.updateAriaLabel}"></slot>
526
- </span>
527
- </div>
528
- `;
529
- }
530
- }
531
-
532
- /**
533
- * @license
534
- * Copyright 2020 Google LLC
535
- * SPDX-License-Identifier: BSD-3-Clause
536
- */
537
- const a=Symbol.for(""),o=t=>{if(t?.r===a)return t?._$litStatic$},s=t=>({_$litStatic$:t,r:a}),i=(t,...r)=>({_$litStatic$:r.reduce((r,e,a)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1],t[0]),r:a}),l=new Map,n=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");void 0===(r=l.get(t))&&(n.raw=n,l.set(t,r=n)),e=u;}return t(r,...e)},u=n(b);
538
-
539
- class DateFormatter {
540
-
541
- constructor() {
542
-
543
- /**
544
- * @description Parses a date string into its components.
545
- * @param {string} dateStr - Date string to parse.
546
- * @param {string} format - Date format to parse.
547
- * @returns {Object<key["month" | "day" | "year"]: number>|undefined}
548
- */
549
- this.parseDate = (dateStr, format = 'mm/dd/yyyy') => {
550
-
551
- // Guard Clause: Date string is defined
552
- if (!dateStr) {
553
- return undefined;
554
- }
555
-
556
- // Assume the separator is a "/" a defined in our code base
557
- const separator = '/';
558
-
559
- // Get the parts of the date and format
560
- const valueParts = dateStr.split(separator);
561
- const formatParts = format.split(separator);
562
-
563
- // Check if the value and format have the correct number of parts
564
- if (valueParts.length !== formatParts.length) {
565
- throw new Error('AuroDatepickerUtilities | parseDate: Date string and format length do not match');
566
- }
567
-
568
- // Holds the result to be returned
569
- const result = formatParts.reduce((acc, part, index) => {
570
- const value = valueParts[index];
571
-
572
- if ((/m/iu).test(part)) {
573
- acc.month = value;
574
- } else if ((/d/iu).test(part)) {
575
- acc.day = value;
576
- } else if ((/y/iu).test(part)) {
577
- acc.year = value;
578
- }
579
-
580
- return acc;
581
- }, {});
582
-
583
- // If we found all the parts, return the result
584
- if (result.month && result.year) {
585
- return result;
586
- }
587
-
588
- // Throw an error to let the dev know we were unable to parse the date string
589
- throw new Error('AuroDatepickerUtilities | parseDate: Unable to parse date string');
590
- };
591
-
592
- /**
593
- * Convert a date object to string format.
594
- * @param {Object} date - Date to convert to string.
595
- * @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
596
- * @returns {String} Returns the date as a string.
597
- */
598
- this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
599
- year: "numeric",
600
- month: "2-digit",
601
- day: "2-digit",
602
- });
603
-
604
- /**
605
- * Converts a date string to a North American date format.
606
- * @param {String} dateStr - Date to validate.
607
- * @param {String} format - Date format to validate against.
608
- * @returns {Boolean}
609
- */
610
- this.toNorthAmericanFormat = (dateStr, format) => {
611
-
612
- if (format === 'mm/dd/yyyy') {
613
- return dateStr;
614
- }
615
-
616
- const parsedDate = this.parseDate(dateStr, format);
617
-
618
- if (!parsedDate) {
619
- throw new Error('AuroDatepickerUtilities | toNorthAmericanFormat: Unable to parse date string');
620
- }
621
-
622
- const { month, day, year } = parsedDate;
623
-
624
- const dateParts = [];
625
- if (month) {
626
- dateParts.push(month);
627
- }
628
-
629
- if (day) {
630
- dateParts.push(day);
631
- }
632
-
633
- if (year) {
634
- dateParts.push(year);
635
- }
636
-
637
- return dateParts.join('/');
638
- };
639
- }
640
- }
641
- const dateFormatter = new DateFormatter();
642
-
643
- // filepath: dateConstraints.mjs
644
- const DATE_UTIL_CONSTRAINTS = {
645
- maxDay: 31,
646
- maxMonth: 12,
647
- maxYear: 2400,
648
- minDay: 1,
649
- minMonth: 1,
650
- minYear: 1900,
651
- };
652
-
653
- class AuroDateUtilitiesBase {
654
-
655
- /**
656
- * @description The maximum day value allowed by the various utilities in this class.
657
- * @readonly
658
- * @type {Number}
659
- */
660
- get maxDay() {
661
- return DATE_UTIL_CONSTRAINTS.maxDay;
662
- }
663
-
664
- /**
665
- * @description The maximum month value allowed by the various utilities in this class.
666
- * @readonly
667
- * @type {Number}
668
- */
669
- get maxMonth() {
670
- return DATE_UTIL_CONSTRAINTS.maxMonth;
671
- }
672
-
673
- /**
674
- * @description The maximum year value allowed by the various utilities in this class.
675
- * @readonly
676
- * @type {Number}
677
- */
678
- get maxYear() {
679
- return DATE_UTIL_CONSTRAINTS.maxYear;
680
- }
681
-
682
- /**
683
- * @description The minimum day value allowed by the various utilities in this class.
684
- * @readonly
685
- * @type {Number}
686
- */
687
- get minDay() {
688
- return DATE_UTIL_CONSTRAINTS.minDay;
689
- }
690
-
691
- /**
692
- * @description The minimum month value allowed by the various utilities in this class.
693
- * @readonly
694
- * @type {Number}
695
- */
696
- get minMonth() {
697
- return DATE_UTIL_CONSTRAINTS.minMonth;
698
- }
699
-
700
- /**
701
- * @description The minimum year value allowed by the various utilities in this class.
702
- * @readonly
703
- * @type {Number}
704
- */
705
- get minYear() {
706
- return DATE_UTIL_CONSTRAINTS.minYear;
707
- }
708
- }
709
-
710
- /* eslint-disable no-magic-numbers */
711
-
712
- class AuroDateUtilities extends AuroDateUtilitiesBase {
713
-
714
- /**
715
- * Returns the current century.
716
- * @returns {String} The current century.
717
- */
718
- getCentury () {
719
- return String(new Date().getFullYear()).slice(0, 2);
720
- }
721
-
722
- /**
723
- * Returns a four digit year.
724
- * @param {String} year - The year to convert to four digits.
725
- * @returns {String} The four digit year.
726
- */
727
- getFourDigitYear (year) {
728
-
729
- const strYear = String(year).trim();
730
- return strYear.length <= 2 ? this.getCentury() + strYear : strYear;
731
- }
732
-
733
- constructor() {
734
-
735
- super();
736
-
737
- /**
738
- * Compares two dates to see if they match.
739
- * @param {Object} date1 - First date to compare.
740
- * @param {Object} date2 - Second date to compare.
741
- * @returns {Boolean} Returns true if the dates match.
742
- */
743
- this.datesMatch = (date1, date2) => new Date(date1).getTime() === new Date(date2).getTime();
744
-
745
- /**
746
- * Returns true if value passed in is a valid date.
747
- * @param {String} date - Date to validate.
748
- * @param {String} format - Date format to validate against.
749
- * @returns {Boolean}
750
- */
751
- this.validDateStr = (date, format) => {
752
-
753
- // The length we expect the date string to be
754
- const dateStrLength = format.length;
755
-
756
- // Guard Clause: Date and format are defined
757
- if (typeof date === "undefined" || typeof format === "undefined") {
758
- throw new Error('AuroDatepickerUtilities | validateDateStr: Date and format are required');
759
- }
760
-
761
- // Guard Clause: Date should be of type string
762
- if (typeof date !== "string") {
763
- throw new Error('AuroDatepickerUtilities | validateDateStr: Date must be a string');
764
- }
765
-
766
- // Guard Clause: Format should be of type string
767
- if (typeof format !== "string") {
768
- throw new Error('AuroDatepickerUtilities | validateDateStr: Format must be a string');
769
- }
770
-
771
- // Guard Clause: Length is what we expect it to be
772
- if (date.length !== dateStrLength) {
773
- return false;
774
- }
775
- // Get a formatted date string and parse it
776
- const dateParts = dateFormatter.parseDate(date, format);
777
-
778
- // Guard Clause: Date parse succeeded
779
- if (!dateParts) {
780
- return false;
781
- }
782
-
783
- // Create the expected date string based on the date parts
784
- const expectedDateStr = `${dateParts.month}/${dateParts.day || "01"}/${this.getFourDigitYear(dateParts.year)}`;
785
-
786
- // Generate a date object that we will extract a string date from to compare to the passed in date string
787
- const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
788
-
789
- // Get the date string of the date object we created from the string date
790
- const actualDateStr = dateFormatter.getDateAsString(dateObj, "en-US");
791
-
792
- // Guard Clause: Generated date matches date string input
793
- if (expectedDateStr !== actualDateStr) {
794
- return false;
795
- }
796
-
797
- // If we passed all other checks, we can assume the date is valid
798
- return true;
799
- };
800
-
801
- /**
802
- * Determines if a string date value matches the format provided.
803
- * @param {string} value = The date string value.
804
- * @param { string} format = The date format to match against.
805
- * @returns {boolean}
806
- */
807
- this.dateAndFormatMatch = (value, format) => {
808
-
809
- // Ensure we have both values we need to do the comparison
810
- if (!value || !format) {
811
- throw new Error('AuroFormValidation | dateFormatMatch: value and format are required');
812
- }
813
-
814
- // If the lengths are different, they cannot match
815
- if (value.length !== format.length) {
816
- return false;
817
- }
818
-
819
- // Get the parts of the date
820
- const dateParts = dateFormatter.parseDate(value, format);
821
-
822
- // Validator for day
823
- const dayValueIsValid = (day) => {
824
-
825
- // Guard clause: if there is no day in the dateParts, we can ignore this check.
826
- if (!dateParts.day) {
827
- return true;
828
- }
829
-
830
- // Guard clause: ensure day exists.
831
- if (!day) {
832
- return false;
833
- }
834
-
835
- // Convert day to number
836
- const numDay = Number.parseInt(day, 10);
837
-
838
- // Guard clause: ensure day is a valid integer
839
- if (Number.isNaN(numDay)) {
840
- throw new Error('AuroDatepickerUtilities | dayValueIsValid: Unable to parse day value integer');
841
- }
842
-
843
- // Guard clause: ensure day is within the valid range
844
- if (numDay < this.minDay || numDay > this.maxDay) {
845
- return false;
846
- }
847
-
848
- // Default return
849
- return true;
850
- };
851
-
852
- // Validator for month
853
- const monthValueIsValid = (month) => {
854
-
855
- // Guard clause: ensure month exists.
856
- if (!month) {
857
- return false;
858
- }
859
-
860
- // Convert month to number
861
- const numMonth = Number.parseInt(month, 10);
862
-
863
- // Guard clause: ensure month is a valid integer
864
- if (Number.isNaN(numMonth)) {
865
- throw new Error('AuroDatepickerUtilities | monthValueIsValid: Unable to parse month value integer');
866
- }
867
-
868
- // Guard clause: ensure month is within the valid range
869
- if (numMonth < this.minMonth || numMonth > this.maxMonth) {
870
- return false;
871
- }
872
-
873
- // Default return
874
- return true;
875
- };
876
-
877
- // Validator for year
878
- const yearIsValid = (_year) => {
879
-
880
- // Guard clause: ensure year exists.
881
- if (!_year) {
882
- return false;
883
- }
884
-
885
- // Get the full year
886
- const year = this.getFourDigitYear(_year);
887
-
888
- // Convert year to number
889
- const numYear = Number.parseInt(year, 10);
890
-
891
- // Guard clause: ensure year is a valid integer
892
- if (Number.isNaN(numYear)) {
893
- throw new Error('AuroDatepickerUtilities | yearValueIsValid: Unable to parse year value integer');
894
- }
895
-
896
- // Guard clause: ensure year is within the valid range
897
- if (numYear < this.minYear || numYear > this.maxYear) {
898
- return false;
899
- }
900
-
901
- // Default return
902
- return true;
903
- };
904
-
905
- // Self-contained checks for month, day, and year
906
- const checks = [
907
- monthValueIsValid(dateParts.month),
908
- dayValueIsValid(dateParts.day),
909
- yearIsValid(dateParts.year)
910
- ];
911
-
912
- // If any of the checks failed, the date format does not match and the result is invalid
913
- const isValid = checks.every((check) => check === true);
914
-
915
- // If the check is invalid, return false
916
- if (!isValid) {
917
- return false;
918
- }
919
-
920
- // Default case
921
- return true;
922
- };
923
- }
924
- }
925
-
926
- // Export a class instance
927
- const dateUtilities = new AuroDateUtilities();
928
-
929
- // Export the class instance methods individually
930
- const {
931
- datesMatch,
932
- validDateStr,
933
- dateAndFormatMatch,
934
- minDay,
935
- minMonth,
936
- minYear,
937
- maxDay,
938
- maxMonth,
939
- maxYear
940
- } = dateUtilities;
941
-
942
- const {
943
- toNorthAmericanFormat,
944
- parseDate,
945
- getDateAsString
946
- } = dateFormatter;
947
-
948
- // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
949
- // See LICENSE in the project root for license information.
950
-
951
-
952
- class AuroFormValidation {
953
-
954
- constructor() {
955
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
956
- }
957
-
958
- /**
959
- * Resets the element to its initial state.
960
- * @private
961
- * @param {object} elem - HTML element to reset.
962
- * @returns {void}
963
- */
964
- reset(elem) {
965
- elem.validity = undefined;
966
- elem.value = undefined;
967
- elem.touched = false;
968
-
969
- // Resets the second value of the datepicker in range state
970
- if (elem.valueEnd) {
971
- elem.valueEnd = undefined;
972
- }
973
-
974
- // Resets selected option of element
975
- if (elem.optionSelected) {
976
- elem.optionSelected = undefined;
977
- }
978
-
979
- // Runs validation to handle error attribute
980
- this.validate(elem);
981
- }
982
-
983
- /**
984
- * Validates the attributes of a given element based on predefined validation rules.
985
- *
986
- * @param {HTMLElement} elem - The element to be validated.
987
- * @returns {void}
988
- *
989
- * @example
990
- * // Assuming `inputElement` is a reference to an input element in the DOM
991
- * validateElementAttributes(inputElement);
992
- *
993
- * The function checks the element's attributes against the validation rules defined for 'input' and 'counter' types.
994
- * If a validation rule is violated, it sets the element's validity state and error message accordingly.
995
- *
996
- * Validation rules:
997
- * - input:
998
- * - length:
999
- * - tooShort: Checks if the value length is less than the minimum length.
1000
- * - tooLong: Checks if the value length exceeds the maximum length.
1001
- * - pattern:
1002
- * - patternMismatch: Checks if the value does not match the specified pattern.
1003
- * - counter:
1004
- * - range:
1005
- * - rangeOverflow: Checks if the value exceeds the maximum value.
1006
- * - rangeUnderflow: Checks if the value is less than the minimum value.
1007
- */
1008
- validateElementAttributes(elem) {
1009
- const validationRules = {
1010
- input: {
1011
- length: [
1012
- {
1013
- check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
1014
- validity: 'tooShort',
1015
- message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
1016
- },
1017
- {
1018
- check: (e) => e.value?.length > e.maxLength,
1019
- validity: 'tooLong',
1020
- message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
1021
- }
1022
- ],
1023
- pattern: [
1024
- {
1025
- check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
1026
- validity: 'patternMismatch',
1027
- message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
1028
- }
1029
- ]
1030
- },
1031
- counter: {
1032
- range: [
1033
- {
1034
- check: (e) => e.max !== undefined && Number(e.max) < Number(e.value),
1035
- validity: 'rangeOverflow',
1036
- message: e => e.getAttribute('setCustomValidityRangeOverflow') || ''
1037
- },
1038
- {
1039
- check: (e) => e.min !== undefined && Number(e.min) > Number(e.value),
1040
- validity: 'rangeUnderflow',
1041
- message: e => e.getAttribute('setCustomValidityRangeUnderflow') || ''
1042
- }
1043
- ]
1044
- },
1045
- combobox: {
1046
- filter: [
1047
- {
1048
- check: (e) => {
1049
-
1050
- // Guard Clause: If the behavior is not 'filter', skip this validation
1051
- if (e.behavior !== 'filter') return false;
1052
-
1053
- // Get the current input value
1054
- const currentInputValue = e.input.value;
1055
-
1056
- // Skip validation if the input has no value
1057
- if (!currentInputValue) return false;
1058
-
1059
- /**
1060
- * Let's check if the option selected and combobox value match.
1061
- */
1062
-
1063
- // Guard Clause: If there is no option selected fail the validation
1064
- if (!e.optionSelected) return true;
1065
-
1066
- // Guard Clause: If there is no value fail the validation
1067
- if (!e.value) return true;
1068
-
1069
- // Guard Clause: If the selected option's value doesn't match the input value fail the validation
1070
- if (e.optionSelected.value !== e.value) return true;
1071
-
1072
- /**
1073
- * Now let's make sure the user hasn't change the value in the input after selecting an option.
1074
- * This is to make sure there's no user confusion if they select an option but then change the value to something else.
1075
- */
1076
-
1077
- // Guard Clause: If the current input value doesn't match the option selected value fail the validation
1078
- if (currentInputValue && currentInputValue !== e.optionSelected.value) return true;
1079
-
1080
- // Guard Clause: If the current input value doesn't match the combobox value fail the validation
1081
- if (currentInputValue && currentInputValue !== e.value) return true;
1082
-
1083
- // If all the checks passed the validation passes
1084
- return false;
1085
- },
1086
- validity: 'valueMissing',
1087
- message: e => e.getAttribute('setCustomValidityValueMissingFilter') || e.setCustomValidity || ''
1088
- }
1089
- ]
1090
- }
1091
- };
1092
-
1093
- let elementType;
1094
- if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
1095
- elementType = 'input';
1096
- } else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
1097
- elementType = 'counter';
1098
- } else if (this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
1099
- elementType = 'combobox';
1100
- }
1101
-
1102
- if (elementType) {
1103
- const rules = validationRules[elementType];
1104
-
1105
- if (rules) {
1106
- Object.values(rules).flat().forEach(rule => {
1107
- if (rule.check(elem)) {
1108
- elem.validity = rule.validity;
1109
- elem.errorMessage = rule.message(elem);
1110
- }
1111
- });
1112
- }
1113
- }
1114
- }
1115
-
1116
- /**
1117
- * Determines the validity state of the element based on the type attribute.
1118
- * @private
1119
- * @param {object} elem - HTML element to validate.
1120
- * @returns {void}
1121
- */
1122
- validateType(elem) {
1123
- if (elem.hasAttribute('type')) {
1124
- if (elem.type === 'email') {
1125
- const emailRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; // eslint-disable-line require-unicode-regexp
1126
-
1127
- if (!elem.value.match(emailRegex)) {
1128
- elem.validity = 'patternMismatch';
1129
- elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
1130
- return;
1131
- }
1132
- } else if (elem.type === 'credit-card') {
1133
- if (elem.value.length > 0 && elem.value.length < elem.validationCCLength) {
1134
- elem.validity = 'tooShort';
1135
- elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
1136
- return;
1137
- }
1138
- } else if (elem.type === 'number') {
1139
- if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
1140
- elem.validity = 'rangeOverflow';
1141
- elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
1142
- return;
1143
- }
1144
-
1145
- if (elem.min !== undefined && elem.value?.length > 0 && Number(elem.min) > Number(elem.value)) {
1146
- elem.validity = 'rangeUnderflow';
1147
- elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
1148
- return;
1149
- }
1150
- } else if (elem.type === 'date' && elem.value?.length > 0) {
1151
-
1152
- // Guard Clause: if the value is too short
1153
- if (elem.value?.length < elem.lengthForType) {
1154
-
1155
- elem.validity = 'tooShort';
1156
- elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
1157
- return;
1158
- }
1159
-
1160
- // Guard Clause: If the value is too long for the type
1161
- if (elem.value?.length > elem.lengthForType) {
1162
-
1163
- elem.validity = 'tooLong';
1164
- elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || '';
1165
- return;
1166
- }
1167
-
1168
- // Validate that the date passed was the correct format
1169
- if (!dateAndFormatMatch(elem.value, elem.format)) {
1170
- elem.validity = 'patternMismatch';
1171
- elem.errorMessage = elem.setCustomValidityForType || elem.setCustomValidity || 'Invalid Date Format Entered';
1172
- return;
1173
- }
1174
-
1175
- // Validate that the date passed was a valid date
1176
- if (!validDateStr(elem.value, elem.format)) {
1177
- elem.validity = 'invalidDate';
1178
- elem.errorMessage = elem.setCustomValidityInvalidDate || elem.setCustomValidity || 'Invalid Date Entered';
1179
- return;
1180
- }
1181
-
1182
- // Perform the rest of the validation
1183
- const formattedValue = toNorthAmericanFormat(elem.value, elem.format);
1184
- const valueDate = new Date(formattedValue);
1185
-
1186
- // // Validate max date
1187
- if (elem.max?.length === elem.lengthForType) {
1188
-
1189
- const maxDate = new Date(toNorthAmericanFormat(elem.max, elem.format));
1190
-
1191
- if (valueDate > maxDate) {
1192
- elem.validity = 'rangeOverflow';
1193
- elem.errorMessage = elem.setCustomValidityRangeOverflow || elem.setCustomValidity || '';
1194
- return;
1195
- }
1196
- }
1197
-
1198
- // Validate min date
1199
- if (elem.min?.length === elem.lengthForType) {
1200
- const minDate = new Date(toNorthAmericanFormat(elem.min, elem.format));
1201
-
1202
- if (valueDate < minDate) {
1203
- elem.validity = 'rangeUnderflow';
1204
- elem.errorMessage = elem.setCustomValidityRangeUnderflow || elem.setCustomValidity || '';
1205
- return;
1206
- }
1207
- }
1208
- }
1209
- }
1210
- }
1211
-
1212
- /**
1213
- * Determines the validity state of the element.
1214
- * @param {object} elem - HTML element to validate.
1215
- * @param {boolean} force - Boolean that forces validation to run.
1216
- * @returns {void}
1217
- */
1218
- validate(elem, force) {
1219
- this.getInputElements(elem);
1220
- this.getAuroInputs(elem);
1221
-
1222
- // Check if validation should run
1223
- let validationShouldRun =
1224
-
1225
- // If the validation was forced
1226
- force ||
1227
-
1228
- // If the validation should run on input
1229
- elem.validateOnInput ||
1230
-
1231
- // State-based checks
1232
- (
1233
- // Element is not currently focused
1234
- !elem.contains(document.activeElement) && // native input is not focused directly
1235
- !document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
1236
-
1237
- // And element has been touched or is untouched but has a value
1238
- ( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
1239
- );
1240
-
1241
- if (elem.hasAttribute('error')) {
1242
- elem.validity = 'customError';
1243
- elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
1244
- validationShouldRun = false;
1245
- } else if (validationShouldRun) {
1246
- elem.validity = 'valid';
1247
- elem.errorMessage = '';
1248
-
1249
- /**
1250
- * Only validate once we interact with the datepicker
1251
- * elem.value === undefined is the initial state pre-interaction.
1252
- *
1253
- * The validityState definitions are located at https://developer.mozilla.org/en-US/docs/Web/API/ValidityState.
1254
- */
1255
-
1256
- let hasValue = false;
1257
-
1258
- // Check string for having a value
1259
- if (typeof elem.value === "string") {
1260
- hasValue = elem.value && elem.value.length > 0;
1261
- }
1262
-
1263
- if (typeof elem.value === "boolean") {
1264
- hasValue = elem.value || elem.value === false;
1265
- }
1266
-
1267
- if (typeof elem.value === "number") {
1268
- hasValue = !isNaN(elem.value) && elem.value !== null;
1269
- }
1270
-
1271
- // Check array value types for having a value
1272
- if (Array.isArray(elem.value)) {
1273
- hasValue = Boolean(
1274
- elem.value.length > 0 &&
1275
- elem.value.some((value) => typeof value === "string" && value.length > 0)
1276
- );
1277
- }
1278
-
1279
- // If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
1280
- if (this.auroInputElements?.length === 2) {
1281
- if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
1282
- hasValue = false;
1283
- }
1284
- }
1285
-
1286
- const isCombobox = this.runtimeUtils.elementMatch(elem, 'auro-combobox');
1287
-
1288
- if (isCombobox) {
1289
-
1290
- if (!elem.persistInput || elem.behavior === "filter") {
1291
- hasValue = elem.input.value?.length > 0;
1292
- }
1293
- }
1294
-
1295
- if (!hasValue && elem.required && (force || elem.touched)) {
1296
- elem.validity = 'valueMissing';
1297
- elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
1298
- } else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
1299
- this.validateType(elem);
1300
- this.validateElementAttributes(elem);
1301
- } else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
1302
- this.validateElementAttributes(elem);
1303
- } else if (isCombobox) {
1304
- this.validateElementAttributes(elem);
1305
-
1306
- // Don't run extra validation for cases where the combobox is not being used as a filter
1307
- validationShouldRun = elem.behavior !== 'filter';
1308
- }
1309
- }
1310
-
1311
- if (this.auroInputElements?.length > 0 && elem.validity !== "valueMissing" && elem.validity !== "customError") {
1312
-
1313
- const isCombobox = this.runtimeUtils.elementMatch(elem, 'auro-combobox');
1314
-
1315
- // Don't reset combobox validity if persistInput is set since we can't use the input value to validate
1316
- if (!isCombobox || isCombobox && !elem.persistInput) {
1317
-
1318
- // run validation on all inputs since we're going to use them to set the validity of this component
1319
- this.auroInputElements.forEach(input => input.validate(force));
1320
-
1321
- // Reset element validity to the validity of the input
1322
- elem.validity = this.auroInputElements[0].validity;
1323
- elem.errorMessage = this.auroInputElements[0].errorMessage;
1324
- }
1325
-
1326
- // multiple input in one components (datepicker)
1327
- // combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
1328
- if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !isCombobox) {
1329
- elem.validity = this.auroInputElements[1].validity;
1330
- elem.errorMessage = this.auroInputElements[1].errorMessage;
1331
- }
1332
- }
1333
-
1334
- if (validationShouldRun || elem.hasAttribute('error')) {
1335
- // Use the validity message override if it is declared
1336
- if (elem.validity && elem.validity !== 'valid' && elem.ValidityMessageOverride) {
1337
- elem.errorMessage = elem.ValidityMessageOverride;
1338
- }
1339
-
1340
- this.getErrorMessage(elem);
1341
- }
1342
-
1343
- elem.dispatchEvent(new CustomEvent('auroFormElement-validated', {
1344
- bubbles: true,
1345
- composed: true,
1346
- detail: {
1347
- validity: elem.validity,
1348
- message: elem.errorMessage
1349
- }
1350
- }));
1351
- }
1352
-
1353
- /**
1354
- * Gets all the HTML5 `inputs` in the element shadow DOM.
1355
- * @private
1356
- * @param {object} elem - HTML element to validate.
1357
- * @returns {void}
1358
- */
1359
- getInputElements(elem) {
1360
- this.inputElements = elem.renderRoot.querySelectorAll('input');
1361
- }
1362
-
1363
- /**
1364
- * Gets all the `auro-inputs` in the element shadow DOM.
1365
- * @private
1366
- * @param {object} elem - HTML element to validate.
1367
- * @returns {void}
1368
- */
1369
- getAuroInputs(elem) {
1370
- this.auroInputElements = elem.shadowRoot.querySelectorAll('auro-input, [auro-input]');
1371
- }
1372
-
1373
- /**
1374
- * Return appropriate error message.
1375
- * @private
1376
- * @param {object} elem - HTML element to validate.
1377
- * @returns {void}
1378
- */
1379
- getErrorMessage(elem) {
1380
- if (elem.validity !== 'valid') {
1381
- if (elem.setCustomValidity) {
1382
- elem.errorMessage = elem.setCustomValidity;
1383
- } else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
1384
- const input = elem.renderRoot.querySelector('input');
1385
-
1386
- if (input.validationMessage.length > 0) {
1387
- elem.errorMessage = input.validationMessage;
1388
- }
1389
- } else if (this.runtimeUtils.elementMatch(elem, 'auro-combobox') && elem.errorMessage === '') {
1390
- elem.errorMessage = elem.input?.inputElement?.validationMessage;
1391
- } else if (this.inputElements?.length > 0 && elem.errorMessage === '') {
1392
- const firstInput = this.inputElements[0];
1393
-
1394
- if (firstInput.validationMessage.length > 0) {
1395
- elem.errorMessage = firstInput.validationMessage;
1396
- } else if (this.inputElements?.length === 2) {
1397
- const secondInput = this.inputElements[1];
1398
-
1399
- if (secondInput.validationMessage.length > 0) {
1400
- elem.errorMessage = secondInput.validationMessage;
1401
- }
1402
- }
1403
- }
1404
- } else {
1405
- elem.errorMessage = '';
1406
- }
1407
- }
1408
- }
1409
-
1410
- // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1411
- // See LICENSE in the project root for license information.
1412
-
1413
-
1414
- class AuroDependencyVersioning {
1415
-
1416
- /**
1417
- * Generates a unique string to be used for child auro element naming.
1418
- * @private
1419
- * @param {string} baseName - Defines the first part of the unique element name.
1420
- * @param {string} version - Version of the component that will be appended to the baseName.
1421
- * @returns {string} - Unique string to be used for naming.
1422
- */
1423
- generateElementName(baseName, version) {
1424
- let result = baseName;
1425
-
1426
- result += '-';
1427
- result += version.replace(/[.]/g, '_');
1428
-
1429
- return result;
1430
- }
1431
-
1432
- /**
1433
- * Generates a unique string to be used for child auro element naming.
1434
- * @param {string} baseName - Defines the first part of the unique element name.
1435
- * @param {string} version - Version of the component that will be appended to the baseName.
1436
- * @returns {string} - Unique string to be used for naming.
1437
- */
1438
- generateTag(baseName, version, tagClass) {
1439
- const elementName = this.generateElementName(baseName, version);
1440
- const tag = i`${s(elementName)}`;
1441
-
1442
- if (!customElements.get(elementName)) {
1443
- customElements.define(elementName, class extends tagClass {});
1444
- }
1445
-
1446
- return tag;
1447
- }
1448
- }
1449
-
1450
- var styleCss$1 = i$5`:host{display:block;padding-bottom:var(--ds-size-150, 0.75rem)}.displayFlex legend+slot{display:flex;white-space:nowrap}fieldset{all:unset}legend{margin-bottom:var(--ds-size-150, 0.75rem)}[auro-helptext]{margin-top:var(--ds-size-150, 0.75rem)}`;
1451
-
1452
- var colorCss$1 = i$5`:host{color:var(--ds-auro-checkbox-group-text-color)}:host([disabled]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([onDark]),:host([appearance=inverse]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][disabled]),:host([appearance=inverse][disabled]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
1453
-
1454
- var colorCss = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]),:host([appearance=inverse]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]),:host([appearance=inverse][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
1455
-
1456
- var styleCss = i$5`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host{position:relative;display:block}.helptext-wrapper{display:none}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
1457
-
1458
- var tokensCss = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
1459
-
1460
- // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1461
- // See LICENSE in the project root for license information.
1462
-
1463
- // ---------------------------------------------------------------------
1464
-
1465
- /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
1466
-
1467
- class AuroLibraryRuntimeUtils {
1468
-
1469
- /* eslint-disable jsdoc/require-param */
1470
-
1471
- /**
1472
- * This will register a new custom element with the browser.
1473
- * @param {String} name - The name of the custom element.
1474
- * @param {Object} componentClass - The class to register as a custom element.
1475
- * @returns {void}
1476
- */
1477
- registerComponent(name, componentClass) {
1478
- if (!customElements.get(name)) {
1479
- customElements.define(name, class extends componentClass {});
1480
- }
1481
- }
1482
-
1483
- /**
1484
- * Finds and returns the closest HTML Element based on a selector.
1485
- * @returns {void}
1486
- */
1487
- closestElement(
1488
- selector, // selector like in .closest()
1489
- base = this, // extra functionality to skip a parent
1490
- __Closest = (el, found = el && el.closest(selector)) =>
1491
- !el || el === document || el === window
1492
- ? null // standard .closest() returns null for non-found selectors also
1493
- : found
1494
- ? found // found a selector INside this element
1495
- : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
1496
- ) {
1497
- return __Closest(base);
1498
- }
1499
- /* eslint-enable jsdoc/require-param */
1500
-
1501
- /**
1502
- * If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
1503
- * @param {Object} elem - The element to check.
1504
- * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
1505
- * @returns {void}
1506
- */
1507
- handleComponentTagRename(elem, tagName) {
1508
- const tag = tagName.toLowerCase();
1509
- const elemTag = elem.tagName.toLowerCase();
1510
-
1511
- if (elemTag !== tag) {
1512
- elem.setAttribute(tag, true);
1513
- }
1514
- }
1515
-
1516
- /**
1517
- * Validates if an element is a specific Auro component.
1518
- * @param {Object} elem - The element to validate.
1519
- * @param {String} tagName - The name of the Auro component to check against.
1520
- * @returns {Boolean} - Returns true if the element is the specified Auro component.
1521
- */
1522
- elementMatch(elem, tagName) {
1523
- const tag = tagName.toLowerCase();
1524
- const elemTag = elem.tagName.toLowerCase();
1525
-
1526
- return elemTag === tag || elem.hasAttribute(tag);
1527
- }
1528
-
1529
- /**
1530
- * Gets the text content of a named slot.
1531
- * @returns {String}
1532
- * @private
1533
- */
1534
- getSlotText(elem, name) {
1535
- const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
1536
- const nodes = slot?.assignedNodes({ flatten: true }) || [];
1537
- const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
1538
-
1539
- return text || null;
1540
- }
1541
- }
1542
-
1543
- // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1544
- // See LICENSE in the project root for license information.
1545
-
1546
-
1547
- /**
1548
- * Displays help text or error messages within form elements - Internal Use Only.
1549
- */
1550
- class AuroHelpText extends i$2 {
1551
-
1552
- constructor() {
1553
- super();
1554
-
1555
- this.error = false;
1556
- this.appearance = "default";
1557
- this.onDark = false;
1558
- this.hasTextContent = false;
1559
-
1560
- AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-helptext');
1561
- }
1562
-
1563
- static get styles() {
1564
- return [
1565
- colorCss,
1566
- styleCss,
1567
- tokensCss
1568
- ];
1569
- }
1570
-
1571
- // function to define props used within the scope of this component
1572
- static get properties() {
1573
- return {
1574
-
1575
- /**
1576
- * Defines whether the component will be on lighter or darker backgrounds.
1577
- * @property {'default', 'inverse'}
1578
- * @default 'default'
1579
- */
1580
- appearance: {
1581
- type: String,
1582
- reflect: true
1583
- },
1584
-
1585
- /**
1586
- * @private
1587
- */
1588
- slotNodes: {
1589
- type: Boolean,
1590
- },
1591
-
1592
- /**
1593
- * @private
1594
- */
1595
- hasTextContent: {
1596
- type: Boolean,
1597
- },
1598
-
1599
- /**
1600
- * If declared, make font color red.
1601
- */
1602
- error: {
1603
- type: Boolean,
1604
- reflect: true,
1605
- },
1606
-
1607
- /**
1608
- * DEPRECATED - use `appearance` instead.
1609
- */
1610
- onDark: {
1611
- type: Boolean,
1612
- reflect: true
1613
- }
1614
- };
1615
- }
1616
-
1617
- /**
1618
- * This will register this element with the browser.
1619
- * @param {string} [name="auro-helptext"] - The name of element that you want to register to.
1620
- *
1621
- * @example
1622
- * AuroCheckbox.register("custom-helptext") // this will register this element to <custom-helptext/>
1623
- *
1624
- */
1625
- static register(name = "auro-helptext") {
1626
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHelpText);
1627
- }
1628
-
1629
- updated() {
1630
- this.handleSlotChange();
1631
- }
1632
-
1633
- handleSlotChange(event) {
1634
- if (event) {
1635
- this.slotNodes = event.target.assignedNodes();
1636
- }
1637
-
1638
- this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
1639
- }
1640
-
1641
- /**
1642
- * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
1643
- *
1644
- * @param {NodeList|Array} nodes - The list of nodes to check for content.
1645
- * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
1646
- * @private
1647
- */
1648
- checkSlotsForContent(nodes) {
1649
- if (!nodes) {
1650
- return false;
1651
- }
1652
-
1653
- return nodes.some((node) => {
1654
- if (node.textContent.trim()) {
1655
- return true;
1656
- }
1657
-
1658
- if (!node.querySelector) {
1659
- return false;
1660
- }
1661
-
1662
- const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
1663
- if (!nestedSlot) {
1664
- return false;
1665
- }
1666
-
1667
- const nestedSlotNodes = nestedSlot.assignedNodes();
1668
- return this.checkSlotsForContent(nestedSlotNodes);
1669
- });
1670
- }
1671
-
1672
- // function that renders the HTML and CSS into the scope of the component
1673
- render() {
1674
- return b`
1675
- <div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
1676
- <slot @slotchange=${this.handleSlotChange}></slot>
1677
- </div>
1678
- `;
1679
- }
1680
- }
1681
-
1682
- var formkitVersion = '202604031554';
1683
-
1684
- // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1685
- // See LICENSE in the project root for license information.
1686
-
1687
-
1688
- /**
1689
- * The `auro-checkbox-group` element is a wrapper for `auro-checkbox` elements.
1690
- * @customElement auro-checkbox-group
1691
- *
1692
- * @slot legend - Allows for the legend to be overridden.
1693
- * @slot optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
1694
- * @slot helpText - Allows for the helper text to be overridden.
1695
- * @slot default - The default slot for the checkbox items.
1696
- * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
1697
- */
1698
-
1699
- class AuroCheckboxGroup extends i$2 {
1700
- constructor() {
1701
- super();
1702
-
1703
- this._initializeDefaults();
1704
- }
1705
-
1706
- _initializeDefaults() {
1707
- this.appearance = 'default';
1708
- this.validity = undefined;
1709
- this.disabled = undefined;
1710
- this.required = false;
1711
- this.horizontal = false;
1712
- this.onDark = false;
1713
-
1714
- /**
1715
- * Indicates whether the checkbox group is in a dirty state (has been interacted with).
1716
- * @type {boolean}
1717
- * @default false
1718
- * @private
1719
- */
1720
- this.touched = false;
1721
-
1722
- /**
1723
- * @private
1724
- */
1725
- this.value = undefined;
1726
-
1727
- /**
1728
- * @private
1729
- */
1730
- this.index = 0;
1731
-
1732
- /**
1733
- * @private
1734
- */
1735
- this.maxNumber = 3;
1736
-
1737
- /**
1738
- * @private
1739
- */
1740
- this.validation = new AuroFormValidation();
1741
-
1742
- /**
1743
- * @private
1744
- */
1745
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
1746
-
1747
- /**
1748
- * Generate unique names for dependency components.
1749
- */
1750
- const versioning = new AuroDependencyVersioning();
1751
-
1752
- /**
1753
- * @private
1754
- */
1755
- this.helpTextTag = versioning.generateTag('auro-formkit-checkbox-helptext', formkitVersion, AuroHelpText);
1756
- }
1757
-
1758
- static get styles() {
1759
- return [
1760
- styleCss$1,
1761
- colorCss$1,
1762
- tokensCss$1
1763
- ];
1764
- }
1765
-
1766
- static get properties() {
1767
- return {
1768
- ...super.properties,
1769
-
1770
- /**
1771
- * Defines whether the component will be on lighter or darker backgrounds.
1772
- * @type {'default' | 'inverse'}
1773
- * @default 'default'
1774
- */
1775
- appearance: {
1776
- type: String,
1777
- reflect: true
1778
- },
1779
-
1780
- /**
1781
- * If set, disables the checkbox group.
1782
- */
1783
- disabled: {
1784
- type: Boolean,
1785
- reflect: true
1786
- },
1787
-
1788
- /**
1789
- * When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
1790
- */
1791
- error: {
1792
- type: String,
1793
- reflect: true
1794
- },
1795
-
1796
- /**
1797
- * If set, checkboxes will be aligned horizontally.
1798
- */
1799
- horizontal: {
1800
- type: Boolean,
1801
- reflect: true
1802
- },
1803
-
1804
- /**
1805
- * If set, disables auto-validation on blur.
1806
- */
1807
- noValidate: {
1808
- type: Boolean,
1809
- reflect: true
1810
- },
1811
-
1812
- /**
1813
- * DEPRECATED - use `appearance="inverse"` instead.
1814
- */
1815
- onDark: {
1816
- type: Boolean,
1817
- reflect: true
1818
- },
1819
-
1820
- /**
1821
- * Populates the `required` attribute on the element. Used for client-side validation.
1822
- */
1823
- required: {
1824
- type: Boolean,
1825
- reflect: true
1826
- },
1827
-
1828
- /**
1829
- * Sets a custom help text message to display for all validityStates.
1830
- */
1831
- setCustomValidity: {
1832
- type: String
1833
- },
1834
-
1835
- /**
1836
- * Custom help text message to display when validity = `customError`.
1837
- */
1838
- setCustomValidityCustomError: {
1839
- type: String
1840
- },
1841
-
1842
- /**
1843
- * Custom help text message to display when validity = `valueMissing`.
1844
- */
1845
- setCustomValidityValueMissing: {
1846
- type: String
1847
- },
1848
-
1849
- /**
1850
- * Specifies the `validityState` this element is in.
1851
- */
1852
- validity: {
1853
- type: String,
1854
- reflect: true
1855
- }
1856
- };
1857
- }
1858
-
1859
- /**
1860
- * This will register this element with the browser.
1861
- * @param {string} [name="auro-checkbox-group"] - The name of the element that you want to register.
1862
- *
1863
- * @example
1864
- * AuroCheckboxGroup.register("custom-checkbox-group") // this will register this element to <custom-checkbox-group/>
1865
- *
1866
- */
1867
- static register(name = "auro-checkbox-group") {
1868
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroCheckboxGroup);
1869
- }
1870
-
1871
- connectedCallback() {
1872
- super.connectedCallback();
1873
- this.handleItems();
1874
- }
1875
-
1876
- /**
1877
- * Helper method to handle checkbox value changing.
1878
- * @private
1879
- * @param {String} value - The value of the checkbox.
1880
- * @param {Boolean} selected - The checked state of the checkbox.
1881
- * @returns {void}
1882
- */
1883
- handleValueUpdate(value, selected) {
1884
- if (selected) {
1885
- // add if it isn't already in the value list
1886
- if (!this.value.includes(value)) {
1887
- this.value.push(value);
1888
- }
1889
- } else if (this.value.indexOf(value) > -1) { // eslint-disable-line no-magic-numbers
1890
- // remove if it is in the value list
1891
- const index = this.value.indexOf(value);
1892
-
1893
- this.value.splice(index, 1);
1894
- }
1895
-
1896
- this.dispatchEvent(new CustomEvent('input', {
1897
- bubbles: true,
1898
- cancelable: false,
1899
- composed: true,
1900
- }));
1901
-
1902
- this.validate(true);
1903
- }
1904
-
1905
- firstUpdated() {
1906
- // Add the tag name as an attribute if it is different than the component name
1907
- this.runtimeUtils.handleComponentTagRename(this, 'auro-checkbox-group');
1908
-
1909
- // must declare this function as a variable to correctly pass the reference to the removeEventListener
1910
- const checkFocusWithin = function(evt) {
1911
- if (document.auroCheckboxGroupActive && !document.auroCheckboxGroupActive.contains(evt.target)) {
1912
- // if focus has left the group, cleanup and validate
1913
- document.auroCheckboxGroupActive.focusWithin = false;
1914
- window.removeEventListener('focusin', checkFocusWithin);
1915
- document.removeEventListener('click', checkFocusWithin);
1916
- // execute the validation
1917
- document.auroCheckboxGroupActive.validation.validate(document.auroCheckboxGroupActive);
1918
- }
1919
- };
1920
-
1921
- this.addEventListener('auroCheckbox-focusin', () => {
1922
- this.touched = true;
1923
-
1924
- if (!this.value) {
1925
- this.value = [];
1926
- }
1927
-
1928
- // handle click outside the group
1929
- if (!this.focusWithin) {
1930
- document.addEventListener('click', checkFocusWithin);
1931
- }
1932
-
1933
- this.focusWithin = true;
1934
- });
1935
-
1936
- this.addEventListener('auroCheckbox-focusout', () => {
1937
- document.auroCheckboxGroupActive = this;
1938
-
1939
- // Only add the focusWithin check event listener once as you move focus through the options
1940
- if (this.focusWithin) {
1941
- window.addEventListener('focusin', checkFocusWithin);
1942
- } else {
1943
- this.focusWithin = true;
1944
- }
1945
- });
1946
-
1947
- this.addEventListener('auroCheckbox-input', (evt) => {
1948
- this.handleValueUpdate(evt.target.value, evt.target.checked);
1949
- });
1950
- }
1951
-
1952
- /**
1953
- * Helper method that handles the state of preselected checkboxes.
1954
- * @private
1955
- * @returns {void}
1956
- */
1957
- handlePreselectedItems() {
1958
- let preSelectedValues = false;
1959
-
1960
- this.checkboxes.forEach((item) => {
1961
- if (item.hasAttribute('checked') && this.value === undefined) {
1962
- preSelectedValues = true;
1963
- }
1964
- });
1965
-
1966
- if (preSelectedValues) {
1967
- if (!this.value) {
1968
- this.value = [];
1969
- }
1970
-
1971
- this.checkboxes.forEach((item) => {
1972
- this.handleValueUpdate(item.getAttribute('value'), Boolean(item.hasAttribute('checked')));
1973
- });
1974
- }
1975
- }
1976
-
1977
- /**
1978
- * Helper method that handles the state of checkboxes.
1979
- * @private
1980
- * @returns {void}
1981
- */
1982
- handleItems() {
1983
- const groupTagName = this.tagName.toLowerCase();
1984
- const checkboxTagName = groupTagName.substring(0, groupTagName.indexOf('-group'));
1985
-
1986
- this.checkboxes = Array.from(this.querySelectorAll(checkboxTagName));
1987
-
1988
- this.handlePreselectedItems();
1989
-
1990
- this.validate();
1991
- }
1992
-
1993
- /**
1994
- * Resets component to initial state.
1995
- * @returns {void}
1996
- */
1997
- reset() {
1998
- this.checkboxes.forEach((checkbox) => {
1999
- checkbox.reset();
2000
- });
2001
-
2002
- this.validation.reset(this);
2003
- }
2004
-
2005
- /**
2006
- * LitElement lifecycle method. Called after the DOM has been updated.
2007
- * @param {Map<string, any>} changedProperties - Keys are the names of changed properties, values are the corresponding previous values.
2008
- * @returns {void}
2009
- */
2010
- updated(changedProperties) {
2011
- if (changedProperties.has('layout')) {
2012
- this.checkboxes.forEach((el) => {
2013
- el.layout = this.layout;
2014
- });
2015
- }
2016
-
2017
- if (changedProperties.has('disabled')) {
2018
- this.checkboxes.forEach((el) => {
2019
- if (this.disabled) {
2020
- el.setAttribute('disabled', true);
2021
- } else {
2022
- el.removeAttribute('disabled');
2023
- }
2024
- });
2025
- }
2026
-
2027
- if (changedProperties.has('validity')) {
2028
- this.checkboxes.forEach((el) => {
2029
- if (this.validity && this.validity !== 'valid') {
2030
- el.setAttribute('error', true);
2031
- } else {
2032
- el.removeAttribute('error');
2033
- }
2034
- });
2035
- }
2036
-
2037
- if (changedProperties.has('required')) {
2038
- if (this.required) {
2039
- this.setAttribute('aria-required', true);
2040
- } else {
2041
- this.removeAttribute('aria-required');
2042
- }
2043
- }
2044
-
2045
- if (changedProperties.has('onDark')) {
2046
- this.checkboxes.forEach((el) => {
2047
- el.onDark = this.onDark;
2048
- });
2049
- }
2050
-
2051
- if (changedProperties.has('appearance')) {
2052
- this.checkboxes.forEach((el) => {
2053
- el.appearance = this.appearance;
2054
- });
2055
- }
2056
-
2057
- if (changedProperties.has('error')) {
2058
- if (this.error) {
2059
- this.setAttribute('aria-invalid', true);
2060
- } else {
2061
- this.removeAttribute('aria-invalid');
2062
- }
2063
-
2064
- this.validate(true);
2065
- }
2066
- }
2067
-
2068
- /**
2069
- * Validates value.
2070
- * @param {boolean} [force=false] - Whether to force validation.
2071
- */
2072
- validate(force = false) {
2073
- this.validation.validate(this, force);
2074
- }
2075
-
2076
- render() {
2077
- const groupClasses = {
2078
- 'displayFlex': this.horizontal && this.checkboxes.length <= this.maxNumber
2079
- };
2080
-
2081
- return u`
2082
- <fieldset class="${e(groupClasses)}">
2083
- <legend>
2084
- <slot name="legend"></slot>
2085
- ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
2086
- </legend>
2087
- <slot @slotchange=${this.handleItems}></slot>
2088
- </fieldset>
2089
-
2090
- ${!this.validity || this.validity === undefined || this.validity === 'valid'
2091
- ? u`
2092
- <${this.helpTextTag} part="helpText" appearance="${this.onDark ? 'inverse' : this.appearance}">
2093
- <slot name="helpText"></slot>
2094
- </${this.helpTextTag}>`
2095
- : u`
2096
- <${this.helpTextTag} error appearance="${this.onDark ? 'inverse' : this.appearance}"" role="alert" aria-live="assertive" part="helpText">
2097
- ${this.errorMessage}
2098
- </${this.helpTextTag}>`
2099
- }
2100
- `;
2101
- }
2102
- }
2103
-
2104
- AuroCheckbox.register(); // registering to `auro-checkbox`
2105
- AuroCheckboxGroup.register(); // registering to `auro-checkbox-group`
2106
-
2107
- AuroCheckbox.register('custom-checkbox');
2108
- AuroCheckboxGroup.register('custom-checkbox-group');