@telesign/boreal-web-components 0.1.0-alpha.4 → 0.1.0-alpha.6

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 (571) hide show
  1. package/components-build/bds-avatar.js +1 -1
  2. package/components-build/bds-badge.js +1 -1
  3. package/components-build/bds-banner.js +1 -1
  4. package/components-build/bds-breadcrumb-item.d.ts +11 -0
  5. package/components-build/bds-breadcrumb-item.js +1 -0
  6. package/components-build/bds-breadcrumb.d.ts +11 -0
  7. package/components-build/bds-breadcrumb.js +1 -0
  8. package/components-build/bds-button-group.d.ts +11 -0
  9. package/components-build/bds-button-group.js +1 -0
  10. package/components-build/bds-button.js +1 -1
  11. package/components-build/bds-checkbox-button.d.ts +11 -0
  12. package/components-build/bds-checkbox-button.js +1 -0
  13. package/components-build/bds-checkbox-card.d.ts +11 -0
  14. package/components-build/bds-checkbox-card.js +1 -0
  15. package/components-build/bds-checkbox-group.d.ts +11 -0
  16. package/components-build/bds-checkbox-group.js +1 -0
  17. package/components-build/bds-checkbox.js +1 -1
  18. package/components-build/bds-dialog.js +1 -1
  19. package/components-build/bds-divider.js +1 -1
  20. package/components-build/bds-flag.js +1 -1
  21. package/components-build/bds-grid-item.js +1 -1
  22. package/components-build/bds-grid.js +1 -1
  23. package/components-build/bds-list-menu-item.js +1 -1
  24. package/components-build/bds-list-menu.js +1 -1
  25. package/components-build/bds-popover.js +1 -1
  26. package/components-build/bds-radio-button.d.ts +11 -0
  27. package/components-build/bds-radio-button.js +1 -0
  28. package/components-build/bds-radio-card.d.ts +11 -0
  29. package/components-build/bds-radio-card.js +1 -0
  30. package/components-build/bds-radio-group.d.ts +11 -0
  31. package/components-build/bds-radio-group.js +1 -0
  32. package/components-build/bds-radio.d.ts +11 -0
  33. package/components-build/bds-radio.js +1 -0
  34. package/components-build/bds-select.d.ts +11 -0
  35. package/components-build/bds-select.js +1 -0
  36. package/components-build/bds-slider.d.ts +11 -0
  37. package/components-build/bds-slider.js +1 -0
  38. package/components-build/bds-spinner.js +1 -1
  39. package/components-build/bds-status.js +1 -1
  40. package/components-build/bds-tag.js +1 -1
  41. package/components-build/bds-text-field.js +1 -1
  42. package/components-build/bds-toggle.js +1 -1
  43. package/components-build/bds-tooltip.js +1 -1
  44. package/components-build/bds-typography.js +1 -1
  45. package/components-build/index.js +1 -1
  46. package/components-build/p-B6e9eIHB.js +1 -0
  47. package/components-build/p-CJBdGD_4.js +1 -0
  48. package/components-build/p-CPvuMm5C.js +1 -0
  49. package/components-build/p-DcR7mHFE.js +1 -0
  50. package/components-build/p-DdOPD9wW.js +1 -0
  51. package/components-build/p-DfaYciGa.js +1 -0
  52. package/components-build/p-Dh8DSJs_.js +1 -0
  53. package/components-build/p-DoNZM78n.js +1 -0
  54. package/components-build/p-DrkDx75U.js +1 -0
  55. package/components-build/p-DuBzr05c.js +1 -0
  56. package/components-build/p-PmjPRW8X.js +1 -0
  57. package/components-build/p-cgdh1LO-.js +1 -0
  58. package/{dist/boreal-web-components/p-CaHOghy5.js → components-build/p-fUK0GCeC.js} +1 -1
  59. package/components-build/p-nxYzL9uu.js +1 -0
  60. package/components-build/p-yLNcMg2E.js +1 -0
  61. package/custom-elements.json +5078 -1524
  62. package/dist/boreal-web-components/boreal-web-components.esm.js +1 -1
  63. package/dist/boreal-web-components/css/boreal.css +60 -0
  64. package/dist/boreal-web-components/css/theme-connect.css +15 -0
  65. package/dist/boreal-web-components/css/theme-engage.css +15 -0
  66. package/dist/boreal-web-components/css/theme-protect.css +15 -0
  67. package/dist/boreal-web-components/css/theme-proximus.css +15 -0
  68. package/dist/boreal-web-components/p-02e53626.entry.js +1 -0
  69. package/dist/boreal-web-components/p-0357450d.system.entry.js +1 -0
  70. package/dist/boreal-web-components/{p-e0bf8a6e.entry.js → p-1250ba53.entry.js} +1 -1
  71. package/dist/boreal-web-components/p-1911b978.entry.js +1 -0
  72. package/dist/boreal-web-components/{p-2158a7cd.entry.js → p-19f9352d.entry.js} +1 -1
  73. package/dist/boreal-web-components/p-1mOd23lT.system.js +1 -0
  74. package/dist/boreal-web-components/{p-52600375.system.entry.js → p-25823f7d.system.entry.js} +1 -1
  75. package/dist/boreal-web-components/p-2db71382.system.entry.js +1 -0
  76. package/dist/boreal-web-components/{p-251d35df.system.entry.js → p-365e8e5c.system.entry.js} +1 -1
  77. package/dist/boreal-web-components/p-367e40f9.entry.js +1 -0
  78. package/dist/boreal-web-components/p-3946d587.entry.js +1 -0
  79. package/dist/boreal-web-components/p-44b6fe6c.system.entry.js +1 -0
  80. package/dist/boreal-web-components/{p-7a4efddd.system.entry.js → p-48712a63.system.entry.js} +1 -1
  81. package/dist/boreal-web-components/{p-251b3002.entry.js → p-49ea207a.entry.js} +1 -1
  82. package/dist/boreal-web-components/p-4b028406.entry.js +1 -0
  83. package/dist/boreal-web-components/p-4b615de8.system.entry.js +1 -0
  84. package/dist/boreal-web-components/{p-edca16b6.system.entry.js → p-4f431941.system.entry.js} +1 -1
  85. package/dist/boreal-web-components/p-524421f7.system.entry.js +1 -0
  86. package/dist/boreal-web-components/p-530c8c7f.entry.js +1 -0
  87. package/dist/boreal-web-components/p-55aeff0c.system.entry.js +1 -0
  88. package/dist/boreal-web-components/p-5c8650b3.system.entry.js +1 -0
  89. package/dist/boreal-web-components/p-5e590291.system.entry.js +1 -0
  90. package/dist/boreal-web-components/p-5ee0841f.entry.js +1 -0
  91. package/dist/boreal-web-components/{p-871c9a9f.system.entry.js → p-65923619.system.entry.js} +1 -1
  92. package/dist/boreal-web-components/p-66ec16d9.entry.js +1 -0
  93. package/dist/boreal-web-components/{p-127a4134.entry.js → p-714bf70d.entry.js} +1 -1
  94. package/dist/boreal-web-components/{p-66360e63.entry.js → p-71ed1e1d.entry.js} +1 -1
  95. package/dist/boreal-web-components/{p-b12d4788.system.entry.js → p-732e98f1.system.entry.js} +1 -1
  96. package/dist/boreal-web-components/p-7626338e.system.entry.js +1 -0
  97. package/dist/boreal-web-components/{p-80822731.system.entry.js → p-77658a5b.system.entry.js} +1 -1
  98. package/dist/boreal-web-components/p-7G4h4DI7.js +1 -0
  99. package/dist/boreal-web-components/p-800fc096.system.entry.js +1 -0
  100. package/dist/boreal-web-components/p-824485ad.entry.js +1 -0
  101. package/dist/boreal-web-components/p-8dfe3a9f.entry.js +1 -0
  102. package/dist/boreal-web-components/p-90022071.entry.js +1 -0
  103. package/dist/boreal-web-components/{p-1d1bb9d2.entry.js → p-9d02057d.entry.js} +1 -1
  104. package/dist/boreal-web-components/p-C-g3hhl_.system.js +1 -0
  105. package/dist/boreal-web-components/p-C0P3gzq5.system.js +1 -0
  106. package/dist/boreal-web-components/p-C4HM8wQe.js +1 -0
  107. package/dist/boreal-web-components/p-CPvuMm5C.js +1 -0
  108. package/dist/boreal-web-components/p-CRMH6mfq.system.js +1 -0
  109. package/dist/boreal-web-components/p-CU_dRLdk.system.js +1 -0
  110. package/dist/boreal-web-components/p-CW4-dkCF.system.js +1 -0
  111. package/dist/boreal-web-components/p-CcENtewr.js +1 -0
  112. package/dist/boreal-web-components/{p-BuxZeJbu.system.js → p-DSU8tkVw.system.js} +1 -1
  113. package/dist/boreal-web-components/p-DfaYciGa.js +1 -0
  114. package/dist/boreal-web-components/p-Dk9dfU9-.system.js +1 -0
  115. package/dist/boreal-web-components/p-DlVzZK7o.js +1 -0
  116. package/dist/boreal-web-components/p-DnIhjwCH.system.js +1 -0
  117. package/dist/boreal-web-components/p-Dwo1hcd9.js +1 -0
  118. package/dist/boreal-web-components/p-K7DvMlRo.system.js +1 -0
  119. package/{components-build/p-CaHOghy5.js → dist/boreal-web-components/p-U9yfbs7i.js} +1 -1
  120. package/dist/boreal-web-components/p-UEj9YHof.system.js +1 -0
  121. package/dist/boreal-web-components/p-b54fe67f.system.entry.js +1 -0
  122. package/dist/boreal-web-components/p-bbcd3a30.system.entry.js +1 -0
  123. package/dist/boreal-web-components/p-bea25d3d.system.entry.js +1 -0
  124. package/dist/boreal-web-components/p-bed506d3.entry.js +1 -0
  125. package/dist/boreal-web-components/p-bfd62034.system.entry.js +1 -0
  126. package/dist/boreal-web-components/p-c07d6b82.system.entry.js +1 -0
  127. package/dist/boreal-web-components/p-cc5c359f.entry.js +1 -0
  128. package/dist/boreal-web-components/p-cgdh1LO-.js +1 -0
  129. package/dist/boreal-web-components/p-d2b6ae79.entry.js +1 -0
  130. package/dist/boreal-web-components/{p-695d0830.entry.js → p-dc7d429c.entry.js} +1 -1
  131. package/dist/boreal-web-components/p-e21b8416.entry.js +1 -0
  132. package/dist/boreal-web-components/p-e4364a44.system.entry.js +1 -0
  133. package/dist/boreal-web-components/p-e51407b2.system.entry.js +1 -0
  134. package/dist/boreal-web-components/p-e8cde179.system.entry.js +1 -0
  135. package/dist/boreal-web-components/p-eecc3028.system.entry.js +1 -0
  136. package/dist/boreal-web-components/p-f3bd824d.system.entry.js +1 -0
  137. package/dist/boreal-web-components/{p-44ceff4e.system.entry.js → p-f65e9d0c.system.entry.js} +1 -1
  138. package/dist/boreal-web-components/p-f6eabb16.entry.js +1 -0
  139. package/dist/boreal-web-components/p-f7acf6e5.system.entry.js +1 -0
  140. package/dist/boreal-web-components/{p-7db870b7.entry.js → p-f9560509.entry.js} +1 -1
  141. package/dist/boreal-web-components/p-fa128cad.system.entry.js +1 -0
  142. package/dist/boreal-web-components/p-fab1a01d.entry.js +1 -0
  143. package/dist/boreal-web-components/{p-fc24d963.entry.js → p-fb9a0e94.entry.js} +1 -1
  144. package/dist/boreal-web-components/p-fb9ba833.entry.js +1 -0
  145. package/dist/boreal-web-components/p-fbe0c9f2.entry.js +1 -0
  146. package/dist/boreal-web-components/p-fbe88555.entry.js +1 -0
  147. package/dist/boreal-web-components/p-fc1fa966.system.entry.js +1 -0
  148. package/dist/boreal-web-components/p-fc4ffa0e.entry.js +1 -0
  149. package/dist/boreal-web-components/p-fef13445.entry.js +1 -0
  150. package/dist/boreal-web-components/p-iq2UuV7c.js +1 -0
  151. package/dist/boreal-web-components/p-qGhMe8Hk.js +1 -0
  152. package/dist/boreal-web-components/p-vzZJGcYF.system.js +1 -1
  153. package/dist/boreal-web-components/scss/maps/_theme-connect.scss +16 -1
  154. package/dist/boreal-web-components/scss/maps/_theme-engage.scss +16 -1
  155. package/dist/boreal-web-components/scss/maps/_theme-protect.scss +16 -1
  156. package/dist/boreal-web-components/scss/maps/_theme-proximus.scss +16 -1
  157. package/dist/boreal-web-components/scss/variables/_theme-connect.scss +16 -1
  158. package/dist/boreal-web-components/scss/variables/_theme-engage.scss +16 -1
  159. package/dist/boreal-web-components/scss/variables/_theme-protect.scss +16 -1
  160. package/dist/boreal-web-components/scss/variables/_theme-proximus.scss +16 -1
  161. package/dist/cjs/KeyboardController-B_g3peyB.js +1067 -0
  162. package/dist/cjs/Keys-DXn16dlA.js +34 -0
  163. package/dist/cjs/Logger-DnziItRH.js +51 -0
  164. package/dist/cjs/{attributes-wIHueigW.js → attributes-CgRFplrN.js} +3 -0
  165. package/dist/cjs/bds-avatar.cjs.entry.js +2 -2
  166. package/dist/cjs/bds-badge.cjs.entry.js +1 -1
  167. package/dist/cjs/bds-banner.cjs.entry.js +2 -2
  168. package/dist/cjs/bds-breadcrumb-item.cjs.entry.js +106 -0
  169. package/dist/cjs/bds-breadcrumb.cjs.entry.js +127 -0
  170. package/dist/cjs/bds-button-group.cjs.entry.js +116 -0
  171. package/dist/cjs/bds-button.cjs.entry.js +38 -17
  172. package/dist/cjs/bds-checkbox-button.cjs.entry.js +119 -0
  173. package/dist/cjs/bds-checkbox-card.cjs.entry.js +135 -0
  174. package/dist/cjs/bds-checkbox-group.cjs.entry.js +292 -0
  175. package/dist/cjs/bds-checkbox.cjs.entry.js +67 -29
  176. package/dist/cjs/bds-dialog.cjs.entry.js +4 -4
  177. package/dist/cjs/bds-divider.cjs.entry.js +2 -2
  178. package/dist/cjs/bds-flag.cjs.entry.js +1 -1
  179. package/dist/cjs/bds-grid-item.cjs.entry.js +1 -1
  180. package/dist/cjs/bds-grid.cjs.entry.js +1 -1
  181. package/dist/cjs/bds-list-menu-item.cjs.entry.js +59 -23
  182. package/dist/cjs/bds-list-menu.cjs.entry.js +126 -22
  183. package/dist/cjs/bds-popover.cjs.entry.js +15 -6
  184. package/dist/cjs/bds-radio-button.cjs.entry.js +60 -0
  185. package/dist/cjs/bds-radio-card.cjs.entry.js +76 -0
  186. package/dist/cjs/bds-radio-group.cjs.entry.js +291 -0
  187. package/dist/cjs/bds-radio.cjs.entry.js +60 -0
  188. package/dist/cjs/bds-select.cjs.entry.js +394 -0
  189. package/dist/cjs/bds-slider.cjs.entry.js +655 -0
  190. package/dist/cjs/bds-spinner.cjs.entry.js +1 -1
  191. package/dist/cjs/bds-status.cjs.entry.js +1 -1
  192. package/dist/cjs/bds-tag.cjs.entry.js +2 -2
  193. package/dist/cjs/bds-text-field.cjs.entry.js +15 -9
  194. package/dist/cjs/bds-toggle.cjs.entry.js +7 -6
  195. package/dist/cjs/bds-tooltip_2.cjs.entry.js +12 -9
  196. package/dist/cjs/boreal-web-components.cjs.js +1 -1
  197. package/dist/cjs/checkbox-form-association-DTEpHXUD.js +43 -0
  198. package/dist/cjs/coreColors-CQGojc0l.js +10 -0
  199. package/dist/cjs/{enum-DLblRCkQ.js → enum-DeTWfR0D.js} +3 -3
  200. package/dist/cjs/form-associated.mixin-BCR6bj29.js +33 -0
  201. package/dist/cjs/{getOffset-m4hBgyVP.js → getOffset-CsDHFjPW.js} +6 -53
  202. package/dist/cjs/{form-associated.mixin-DXwvF_vW.js → internals-D8x7GMfR.js} +0 -31
  203. package/dist/cjs/loader.cjs.js +1 -1
  204. package/dist/cjs/orientation-DQAIleEJ.js +8 -0
  205. package/dist/collection/collection-manifest.json +18 -6
  206. package/dist/collection/components/actions/bds-button/bds-button.css +55 -55
  207. package/dist/collection/components/actions/bds-button/bds-button.js +35 -11
  208. package/dist/collection/components/actions/bds-button/types/enum.js +3 -3
  209. package/dist/collection/components/actions/bds-button-group/bds-button-group.css +77 -0
  210. package/dist/collection/components/actions/bds-button-group/bds-button-group.js +264 -0
  211. package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.css +27 -1
  212. package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.js +283 -51
  213. package/dist/collection/components/actions/bds-list-menu/bds-list-menu/types/enum.js +4 -0
  214. package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.css +30 -11
  215. package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.js +65 -7
  216. package/dist/collection/components/actions/bds-toggle/bds-toggle.css +3 -3
  217. package/dist/collection/components/actions/bds-toggle/bds-toggle.js +1 -1
  218. package/dist/collection/components/feedback/bds-badge/bds-badge.js +1 -1
  219. package/dist/collection/components/feedback/bds-banner/bds-banner.js +1 -1
  220. package/dist/collection/components/feedback/bds-spinner/bds-spinner.js +1 -1
  221. package/dist/collection/components/feedback/bds-status/bds-status.js +1 -1
  222. package/dist/collection/components/feedback/bds-tag/bds-tag.css +6 -6
  223. package/dist/collection/components/feedback/bds-tag/bds-tag.js +1 -1
  224. package/dist/collection/components/forms/bds-checkbox/bds-checkbox/bds-checkbox.css +132 -0
  225. package/dist/collection/components/forms/bds-checkbox/{bds-checkbox.js → bds-checkbox/bds-checkbox.js} +138 -35
  226. package/dist/collection/components/forms/bds-checkbox/bds-checkbox-button/bds-checkbox-button.css +113 -0
  227. package/dist/collection/components/forms/bds-checkbox/bds-checkbox-button/bds-checkbox-button.js +382 -0
  228. package/dist/collection/components/forms/bds-checkbox/bds-checkbox-card/bds-checkbox-card.css +139 -0
  229. package/dist/collection/components/forms/bds-checkbox/bds-checkbox-card/bds-checkbox-card.js +443 -0
  230. package/dist/collection/components/forms/bds-checkbox/bds-checkbox-group/bds-checkbox-group.css +55 -0
  231. package/dist/collection/components/forms/bds-checkbox/bds-checkbox-group/bds-checkbox-group.js +648 -0
  232. package/dist/collection/components/forms/bds-checkbox/bds-checkbox-group/types/enum.js +5 -0
  233. package/dist/collection/components/forms/bds-checkbox/bds-checkbox-group/types/index.js +3 -0
  234. package/dist/collection/components/forms/bds-checkbox/utils/checkbox-form-association.js +39 -0
  235. package/dist/collection/components/forms/bds-checkbox/utils/index.js +1 -0
  236. package/dist/collection/components/forms/bds-flag/bds-flag.js +1 -1
  237. package/dist/collection/components/forms/bds-radio/bds-radio/bds-radio.css +121 -0
  238. package/dist/collection/components/forms/bds-radio/bds-radio/bds-radio.js +238 -0
  239. package/dist/collection/components/forms/bds-radio/bds-radio/types/IRadio.js +1 -0
  240. package/dist/collection/components/forms/bds-radio/bds-radio-button/bds-radio-button.css +113 -0
  241. package/dist/collection/components/forms/bds-radio/bds-radio-button/bds-radio-button.js +238 -0
  242. package/dist/collection/components/forms/bds-radio/bds-radio-button/types/IRadioButton.js +1 -0
  243. package/dist/collection/components/forms/bds-radio/bds-radio-card/bds-radio-card.css +156 -0
  244. package/dist/collection/components/forms/bds-radio/bds-radio-card/bds-radio-card.js +307 -0
  245. package/dist/collection/components/forms/bds-radio/bds-radio-card/types/IRadioCard.js +1 -0
  246. package/dist/collection/components/forms/bds-radio/bds-radio-group/bds-radio-group.css +55 -0
  247. package/dist/collection/components/forms/bds-radio/bds-radio-group/bds-radio-group.js +648 -0
  248. package/dist/collection/components/forms/bds-radio/bds-radio-group/types/IRadioGroup.js +1 -0
  249. package/dist/collection/components/forms/bds-radio/bds-radio-group/types/enum.js +5 -0
  250. package/dist/collection/components/forms/bds-radio/bds-radio-group/types/types.js +1 -0
  251. package/dist/collection/components/forms/bds-select/bds-select.css +23 -0
  252. package/dist/collection/components/forms/bds-select/bds-select.js +431 -0
  253. package/dist/collection/components/forms/bds-select/types/ISelect.js +1 -0
  254. package/dist/collection/components/forms/bds-slider/bds-slider.css +213 -0
  255. package/dist/collection/components/forms/bds-slider/bds-slider.js +847 -0
  256. package/dist/collection/components/forms/bds-slider/helpers/SliderDOMController.js +61 -0
  257. package/dist/collection/components/forms/bds-slider/helpers/SliderService.js +93 -0
  258. package/dist/collection/components/forms/bds-slider/helpers/index.js +3 -0
  259. package/dist/collection/components/forms/bds-slider/helpers/parseValues.js +43 -0
  260. package/dist/collection/components/forms/bds-slider/types/ChangeDetail.js +1 -0
  261. package/dist/collection/components/forms/bds-slider/types/ISlider.js +1 -0
  262. package/dist/collection/components/forms/bds-slider/types/ISliderOptions.js +1 -0
  263. package/dist/collection/components/forms/bds-slider/types/enum.js +16 -0
  264. package/dist/collection/components/forms/bds-slider/types/index.js +5 -0
  265. package/dist/collection/components/forms/bds-slider/types/types.js +1 -0
  266. package/dist/collection/components/forms/bds-text-field/bds-text-field.css +10 -3
  267. package/dist/collection/components/forms/bds-text-field/bds-text-field.js +47 -2
  268. package/dist/collection/components/helpers/{bds-divider.css → bds-divider/bds-divider.css} +12 -4
  269. package/dist/collection/components/helpers/{bds-divider.js → bds-divider/bds-divider.js} +3 -3
  270. package/dist/collection/components/helpers/bds-divider/types/IDivider.js +1 -0
  271. package/dist/collection/components/helpers/bds-divider/types/types.js +1 -0
  272. package/dist/collection/components/images-icons/bds-avatar/bds-avatar.js +1 -1
  273. package/dist/collection/components/layouts/bds-grid/{grid → bds-grid}/bds-grid.js +3 -3
  274. package/dist/collection/components/layouts/bds-grid/bds-grid/types/IGrid.js +1 -0
  275. package/dist/collection/components/layouts/bds-grid/bds-grid/types/types.js +1 -0
  276. package/dist/collection/components/layouts/bds-grid/{grid-item → bds-grid-item}/bds-grid-item.js +9 -9
  277. package/dist/collection/components/layouts/bds-grid/bds-grid-item/types/IGridItem.js +1 -0
  278. package/dist/collection/components/layouts/bds-grid/bds-grid-item/types/types.js +1 -0
  279. package/dist/collection/components/navigation/bds-breadcrumb/bds-breadcrumb.css +21 -0
  280. package/dist/collection/components/navigation/bds-breadcrumb/bds-breadcrumb.js +292 -0
  281. package/dist/collection/components/navigation/bds-breadcrumb/types/IBreadcrumb.js +1 -0
  282. package/dist/collection/components/navigation/bds-breadcrumb-item/bds-breadcrumb-item.css +64 -0
  283. package/dist/collection/components/navigation/bds-breadcrumb-item/bds-breadcrumb-item.js +369 -0
  284. package/dist/collection/components/navigation/bds-breadcrumb-item/types/IBreadcrumbItem.js +1 -0
  285. package/dist/collection/components/overlays/bds-dialog/bds-dialog.css +1 -1
  286. package/dist/collection/components/overlays/bds-dialog/bds-dialog.js +2 -2
  287. package/dist/collection/components/overlays/bds-popover/bds-popover.js +49 -3
  288. package/dist/collection/components/overlays/bds-tooltip/bds-tooltip.js +3 -3
  289. package/dist/collection/components/titles-text/bds-typography/bds-typography.css +5 -0
  290. package/dist/collection/components/titles-text/bds-typography/bds-typography.js +30 -47
  291. package/dist/collection/components/titles-text/bds-typography/utils/bds-typography-utils.js +1 -1
  292. package/dist/collection/css/boreal.css +60 -0
  293. package/dist/collection/css/theme-connect.css +15 -0
  294. package/dist/collection/css/theme-engage.css +15 -0
  295. package/dist/collection/css/theme-protect.css +15 -0
  296. package/dist/collection/css/theme-proximus.css +15 -0
  297. package/dist/collection/mixins/anchored.mixin.js +2 -2
  298. package/dist/collection/mixins/links.mixin.js +1 -2
  299. package/dist/collection/mixins/menu-behavior.mixin.js +12 -6
  300. package/dist/collection/scss/maps/_theme-connect.scss +16 -1
  301. package/dist/collection/scss/maps/_theme-engage.scss +16 -1
  302. package/dist/collection/scss/maps/_theme-protect.scss +16 -1
  303. package/dist/collection/scss/maps/_theme-proximus.scss +16 -1
  304. package/dist/collection/scss/variables/_theme-connect.scss +16 -1
  305. package/dist/collection/scss/variables/_theme-engage.scss +16 -1
  306. package/dist/collection/scss/variables/_theme-protect.scss +16 -1
  307. package/dist/collection/scss/variables/_theme-proximus.scss +16 -1
  308. package/dist/collection/types/index.js +2 -1
  309. package/dist/collection/types/orientation.js +4 -0
  310. package/dist/collection/utils/a11y/index.js +4 -0
  311. package/dist/collection/utils/a11y/keyboard/KeyboardController.js +566 -0
  312. package/dist/collection/utils/a11y/keyboard/_constants.js +30 -0
  313. package/dist/collection/utils/a11y/keyboard/focus/aria-activedescendant.js +41 -0
  314. package/dist/collection/utils/a11y/keyboard/focus/resolve.js +48 -0
  315. package/dist/collection/utils/a11y/keyboard/focus/roving-tabindex.js +55 -0
  316. package/dist/collection/utils/a11y/keyboard/navigation/grid-navigation.js +194 -0
  317. package/dist/collection/utils/a11y/keyboard/navigation/linear-navigation.js +137 -0
  318. package/dist/collection/utils/a11y/keyboard/types/IKeyboardController.js +1 -0
  319. package/dist/collection/utils/a11y/keyboard/types/index.js +2 -0
  320. package/dist/collection/utils/a11y/keyboard/types/types.js +1 -0
  321. package/dist/collection/utils/constants/common/Keys.js +29 -24
  322. package/dist/collection/utils/dom/elements.js +63 -0
  323. package/dist/collection/utils/menu/menu-item.utils.js +9 -8
  324. package/dist/collection/utils/testing/helpers.js +10 -0
  325. package/dist/css/boreal.css +60 -0
  326. package/dist/css/theme-connect.css +15 -0
  327. package/dist/css/theme-engage.css +15 -0
  328. package/dist/css/theme-protect.css +15 -0
  329. package/dist/css/theme-proximus.css +15 -0
  330. package/dist/esm/KeyboardController-DcnXb5F5.js +1064 -0
  331. package/dist/esm/Keys-7G4h4DI7.js +31 -0
  332. package/dist/esm/Logger-iq2UuV7c.js +49 -0
  333. package/dist/esm/{attributes-CaHOghy5.js → attributes-U9yfbs7i.js} +3 -0
  334. package/dist/esm/bds-avatar.entry.js +2 -2
  335. package/dist/esm/bds-badge.entry.js +1 -1
  336. package/dist/esm/bds-banner.entry.js +2 -2
  337. package/dist/esm/bds-breadcrumb-item.entry.js +104 -0
  338. package/dist/esm/bds-breadcrumb.entry.js +125 -0
  339. package/dist/esm/bds-button-group.entry.js +114 -0
  340. package/dist/esm/bds-button.entry.js +36 -15
  341. package/dist/esm/bds-checkbox-button.entry.js +117 -0
  342. package/dist/esm/bds-checkbox-card.entry.js +133 -0
  343. package/dist/esm/bds-checkbox-group.entry.js +290 -0
  344. package/dist/esm/bds-checkbox.entry.js +67 -29
  345. package/dist/esm/bds-dialog.entry.js +4 -4
  346. package/dist/esm/bds-divider.entry.js +2 -2
  347. package/dist/esm/bds-flag.entry.js +1 -1
  348. package/dist/esm/bds-grid-item.entry.js +1 -1
  349. package/dist/esm/bds-grid.entry.js +1 -1
  350. package/dist/esm/bds-list-menu-item.entry.js +59 -23
  351. package/dist/esm/bds-list-menu.entry.js +126 -22
  352. package/dist/esm/bds-popover.entry.js +15 -6
  353. package/dist/esm/bds-radio-button.entry.js +58 -0
  354. package/dist/esm/bds-radio-card.entry.js +74 -0
  355. package/dist/esm/bds-radio-group.entry.js +289 -0
  356. package/dist/esm/bds-radio.entry.js +58 -0
  357. package/dist/esm/bds-select.entry.js +392 -0
  358. package/dist/esm/bds-slider.entry.js +653 -0
  359. package/dist/esm/bds-spinner.entry.js +1 -1
  360. package/dist/esm/bds-status.entry.js +1 -1
  361. package/dist/esm/bds-tag.entry.js +2 -2
  362. package/dist/esm/bds-text-field.entry.js +10 -4
  363. package/dist/esm/bds-toggle.entry.js +5 -4
  364. package/dist/esm/bds-tooltip_2.entry.js +12 -9
  365. package/dist/esm/boreal-web-components.js +1 -1
  366. package/dist/esm/checkbox-form-association-cgdh1LO-.js +41 -0
  367. package/dist/esm/coreColors-Dwo1hcd9.js +8 -0
  368. package/dist/esm/{enum-C8mRvnTA.js → enum-DlVzZK7o.js} +4 -4
  369. package/dist/esm/form-associated.mixin-C4HM8wQe.js +31 -0
  370. package/dist/esm/{getOffset-DKPjeBHi.js → getOffset-DCLpJBcp.js} +4 -51
  371. package/dist/esm/{form-associated.mixin-CvK2d92c.js → internals-DfaYciGa.js} +1 -31
  372. package/dist/esm/loader.js +1 -1
  373. package/dist/esm/orientation-CPvuMm5C.js +6 -0
  374. package/dist/esm-es5/KeyboardController-DcnXb5F5.js +1 -0
  375. package/dist/esm-es5/Keys-7G4h4DI7.js +1 -0
  376. package/dist/esm-es5/Logger-iq2UuV7c.js +1 -0
  377. package/dist/esm-es5/{attributes-CaHOghy5.js → attributes-U9yfbs7i.js} +1 -1
  378. package/dist/esm-es5/bds-avatar.entry.js +1 -1
  379. package/dist/esm-es5/bds-badge.entry.js +1 -1
  380. package/dist/esm-es5/bds-banner.entry.js +1 -1
  381. package/dist/esm-es5/bds-breadcrumb-item.entry.js +1 -0
  382. package/dist/esm-es5/bds-breadcrumb.entry.js +1 -0
  383. package/dist/esm-es5/bds-button-group.entry.js +1 -0
  384. package/dist/esm-es5/bds-button.entry.js +1 -1
  385. package/dist/esm-es5/bds-checkbox-button.entry.js +1 -0
  386. package/dist/esm-es5/bds-checkbox-card.entry.js +1 -0
  387. package/dist/esm-es5/bds-checkbox-group.entry.js +1 -0
  388. package/dist/esm-es5/bds-checkbox.entry.js +1 -1
  389. package/dist/esm-es5/bds-dialog.entry.js +1 -1
  390. package/dist/esm-es5/bds-divider.entry.js +1 -1
  391. package/dist/esm-es5/bds-flag.entry.js +1 -1
  392. package/dist/esm-es5/bds-grid-item.entry.js +1 -1
  393. package/dist/esm-es5/bds-grid.entry.js +1 -1
  394. package/dist/esm-es5/bds-list-menu-item.entry.js +1 -1
  395. package/dist/esm-es5/bds-list-menu.entry.js +1 -1
  396. package/dist/esm-es5/bds-popover.entry.js +1 -1
  397. package/dist/esm-es5/bds-radio-button.entry.js +1 -0
  398. package/dist/esm-es5/bds-radio-card.entry.js +1 -0
  399. package/dist/esm-es5/bds-radio-group.entry.js +1 -0
  400. package/dist/esm-es5/bds-radio.entry.js +1 -0
  401. package/dist/esm-es5/bds-select.entry.js +1 -0
  402. package/dist/esm-es5/bds-slider.entry.js +1 -0
  403. package/dist/esm-es5/bds-spinner.entry.js +1 -1
  404. package/dist/esm-es5/bds-status.entry.js +1 -1
  405. package/dist/esm-es5/bds-tag.entry.js +1 -1
  406. package/dist/esm-es5/bds-text-field.entry.js +1 -1
  407. package/dist/esm-es5/bds-toggle.entry.js +1 -1
  408. package/dist/esm-es5/bds-tooltip_2.entry.js +1 -1
  409. package/dist/esm-es5/boreal-web-components.js +1 -1
  410. package/dist/esm-es5/checkbox-form-association-cgdh1LO-.js +1 -0
  411. package/dist/esm-es5/coreColors-Dwo1hcd9.js +1 -0
  412. package/dist/esm-es5/enum-DlVzZK7o.js +1 -0
  413. package/dist/esm-es5/form-associated.mixin-C4HM8wQe.js +1 -0
  414. package/dist/esm-es5/getOffset-DCLpJBcp.js +1 -0
  415. package/dist/esm-es5/internals-DfaYciGa.js +1 -0
  416. package/dist/esm-es5/loader.js +1 -1
  417. package/dist/esm-es5/orientation-CPvuMm5C.js +1 -0
  418. package/dist/scss/maps/_theme-connect.scss +16 -1
  419. package/dist/scss/maps/_theme-engage.scss +16 -1
  420. package/dist/scss/maps/_theme-protect.scss +16 -1
  421. package/dist/scss/maps/_theme-proximus.scss +16 -1
  422. package/dist/scss/variables/_theme-connect.scss +16 -1
  423. package/dist/scss/variables/_theme-engage.scss +16 -1
  424. package/dist/scss/variables/_theme-protect.scss +16 -1
  425. package/dist/scss/variables/_theme-proximus.scss +16 -1
  426. package/dist/types/components/actions/bds-button/bds-button.d.ts +8 -4
  427. package/dist/types/components/actions/bds-button/types/enum.d.ts +3 -3
  428. package/dist/types/components/actions/bds-button-group/bds-button-group.d.ts +40 -0
  429. package/dist/types/components/actions/bds-button-group/types/IButtonGroup.d.ts +11 -0
  430. package/dist/types/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.d.ts +32 -15
  431. package/dist/types/components/actions/bds-list-menu/bds-list-menu/types/IListMenu.d.ts +17 -0
  432. package/dist/types/components/actions/bds-list-menu/bds-list-menu/types/enum.d.ts +5 -0
  433. package/dist/types/components/actions/bds-list-menu/bds-list-menu/types/types.d.ts +3 -0
  434. package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.d.ts +10 -1
  435. package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem.d.ts +2 -0
  436. package/dist/types/components/actions/bds-toggle/types/IToggle.d.ts +1 -1
  437. package/dist/types/components/forms/bds-checkbox/{bds-checkbox.d.ts → bds-checkbox/bds-checkbox.d.ts} +24 -9
  438. package/dist/types/components/forms/bds-checkbox/bds-checkbox-button/bds-checkbox-button.d.ts +68 -0
  439. package/dist/types/components/forms/bds-checkbox/bds-checkbox-button/types/ICheckboxButton.d.ts +15 -0
  440. package/dist/types/components/forms/bds-checkbox/bds-checkbox-card/bds-checkbox-card.d.ts +63 -0
  441. package/dist/types/components/forms/bds-checkbox/bds-checkbox-card/types/ICheckboxCard.d.ts +9 -0
  442. package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/bds-checkbox-group.d.ts +86 -0
  443. package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/types/ICheckboxGroup.d.ts +27 -0
  444. package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/types/enum.d.ts +6 -0
  445. package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/types/index.d.ts +4 -0
  446. package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/types/types.d.ts +4 -0
  447. package/dist/types/components/forms/bds-checkbox/types/ICheckbox.d.ts +7 -22
  448. package/dist/types/components/forms/bds-checkbox/utils/checkbox-form-association.d.ts +10 -0
  449. package/dist/types/components/forms/bds-checkbox/utils/index.d.ts +2 -0
  450. package/dist/types/components/forms/bds-radio/bds-radio/bds-radio.d.ts +36 -0
  451. package/dist/types/components/forms/bds-radio/bds-radio/types/IRadio.d.ts +13 -0
  452. package/dist/types/components/forms/bds-radio/bds-radio-button/bds-radio-button.d.ts +36 -0
  453. package/dist/types/components/forms/bds-radio/bds-radio-button/types/IRadioButton.d.ts +14 -0
  454. package/dist/types/components/forms/bds-radio/bds-radio-card/bds-radio-card.d.ts +57 -0
  455. package/dist/types/components/forms/bds-radio/bds-radio-card/types/IRadioCard.d.ts +14 -0
  456. package/dist/types/components/forms/bds-radio/bds-radio-group/bds-radio-group.d.ts +85 -0
  457. package/dist/types/components/forms/bds-radio/bds-radio-group/types/IRadioGroup.d.ts +20 -0
  458. package/dist/types/components/forms/bds-radio/bds-radio-group/types/enum.d.ts +6 -0
  459. package/dist/types/components/forms/bds-radio/bds-radio-group/types/types.d.ts +3 -0
  460. package/dist/types/components/forms/bds-select/bds-select.d.ts +98 -0
  461. package/dist/types/components/forms/bds-select/types/ISelect.d.ts +6 -0
  462. package/dist/types/components/forms/bds-slider/bds-slider.d.ts +176 -0
  463. package/dist/types/components/forms/bds-slider/helpers/SliderDOMController.d.ts +38 -0
  464. package/dist/types/components/forms/bds-slider/helpers/SliderService.d.ts +44 -0
  465. package/dist/types/components/forms/bds-slider/helpers/index.d.ts +4 -0
  466. package/dist/types/components/forms/bds-slider/helpers/parseValues.d.ts +18 -0
  467. package/dist/types/components/forms/bds-slider/types/ChangeDetail.d.ts +9 -0
  468. package/dist/types/components/forms/bds-slider/types/ISlider.d.ts +17 -0
  469. package/dist/types/components/forms/bds-slider/types/ISliderOptions.d.ts +31 -0
  470. package/dist/types/components/forms/bds-slider/types/enum.d.ts +17 -0
  471. package/dist/types/components/forms/bds-slider/types/index.d.ts +6 -0
  472. package/dist/types/components/forms/bds-slider/types/types.d.ts +5 -0
  473. package/dist/types/components/forms/bds-text-field/bds-text-field.d.ts +4 -0
  474. package/dist/types/components/navigation/bds-breadcrumb/bds-breadcrumb.d.ts +57 -0
  475. package/dist/types/components/navigation/bds-breadcrumb/types/IBreadcrumb.d.ts +17 -0
  476. package/dist/types/components/navigation/bds-breadcrumb-item/bds-breadcrumb-item.d.ts +83 -0
  477. package/dist/types/components/navigation/bds-breadcrumb-item/types/IBreadcrumbItem.d.ts +20 -0
  478. package/dist/types/components/overlays/bds-popover/bds-popover.d.ts +4 -0
  479. package/dist/types/components/titles-text/bds-typography/bds-typography.d.ts +2 -46
  480. package/dist/types/components/titles-text/bds-typography/types/ITypography.d.ts +1 -0
  481. package/dist/types/components.d.ts +2187 -450
  482. package/dist/types/mixins/menu-behavior.mixin.d.ts +5 -1
  483. package/dist/types/types/form.d.ts +24 -0
  484. package/dist/types/types/index.d.ts +2 -1
  485. package/dist/types/types/orientation.d.ts +6 -0
  486. package/dist/types/utils/a11y/index.d.ts +4 -0
  487. package/dist/types/utils/a11y/keyboard/KeyboardController.d.ts +321 -0
  488. package/dist/types/utils/a11y/keyboard/_constants.d.ts +28 -0
  489. package/dist/types/utils/a11y/keyboard/focus/aria-activedescendant.d.ts +17 -0
  490. package/dist/types/utils/a11y/keyboard/focus/resolve.d.ts +23 -0
  491. package/dist/types/utils/a11y/keyboard/focus/roving-tabindex.d.ts +20 -0
  492. package/dist/types/utils/a11y/keyboard/navigation/grid-navigation.d.ts +9 -0
  493. package/dist/types/utils/a11y/keyboard/navigation/linear-navigation.d.ts +13 -0
  494. package/dist/types/utils/a11y/keyboard/types/IKeyboardController.d.ts +125 -0
  495. package/dist/types/utils/a11y/keyboard/types/index.d.ts +3 -0
  496. package/dist/types/utils/a11y/keyboard/types/types.d.ts +6 -0
  497. package/dist/types/utils/constants/common/Keys.d.ts +28 -14
  498. package/dist/types/utils/dom/elements.d.ts +41 -0
  499. package/dist/types/utils/menu/menu-item.utils.d.ts +2 -2
  500. package/dist/types/utils/testing/helpers.d.ts +8 -0
  501. package/package.json +1 -1
  502. package/components-build/p-B8n1ru5i.js +0 -1
  503. package/components-build/p-CGdxFth9.js +0 -1
  504. package/components-build/p-CrAt6pGl.js +0 -1
  505. package/components-build/p-DCwT43Kz.js +0 -1
  506. package/components-build/p-DIY3CDNL.js +0 -1
  507. package/dist/boreal-web-components/p-0028481c.entry.js +0 -1
  508. package/dist/boreal-web-components/p-1466de58.system.entry.js +0 -1
  509. package/dist/boreal-web-components/p-2b8bd1dd.entry.js +0 -1
  510. package/dist/boreal-web-components/p-32c23246.system.entry.js +0 -1
  511. package/dist/boreal-web-components/p-3fbcc233.entry.js +0 -1
  512. package/dist/boreal-web-components/p-401f1aee.system.entry.js +0 -1
  513. package/dist/boreal-web-components/p-41b48701.system.entry.js +0 -1
  514. package/dist/boreal-web-components/p-41cac1b8.system.entry.js +0 -1
  515. package/dist/boreal-web-components/p-627b19a5.system.entry.js +0 -1
  516. package/dist/boreal-web-components/p-649737e5.entry.js +0 -1
  517. package/dist/boreal-web-components/p-64cb5825.entry.js +0 -1
  518. package/dist/boreal-web-components/p-6a99f4c6.system.entry.js +0 -1
  519. package/dist/boreal-web-components/p-731b88cc.entry.js +0 -1
  520. package/dist/boreal-web-components/p-74c13bed.system.entry.js +0 -1
  521. package/dist/boreal-web-components/p-7f7ac40f.entry.js +0 -1
  522. package/dist/boreal-web-components/p-82d49661.entry.js +0 -1
  523. package/dist/boreal-web-components/p-83ca193e.entry.js +0 -1
  524. package/dist/boreal-web-components/p-BQ_zoZa2.js +0 -1
  525. package/dist/boreal-web-components/p-C8mRvnTA.js +0 -1
  526. package/dist/boreal-web-components/p-CdKFZYxk.system.js +0 -1
  527. package/dist/boreal-web-components/p-CtknSula.system.js +0 -1
  528. package/dist/boreal-web-components/p-CvK2d92c.js +0 -1
  529. package/dist/boreal-web-components/p-CzYQb3pP.js +0 -1
  530. package/dist/boreal-web-components/p-DZcx75cy.system.js +0 -1
  531. package/dist/boreal-web-components/p-Dme-NuTD.system.js +0 -1
  532. package/dist/boreal-web-components/p-ab5ffa15.system.entry.js +0 -1
  533. package/dist/boreal-web-components/p-ba2b625a.system.entry.js +0 -1
  534. package/dist/boreal-web-components/p-bf2ef10b.entry.js +0 -1
  535. package/dist/boreal-web-components/p-c7aee9f4.system.entry.js +0 -1
  536. package/dist/cjs/Keys-DbIXSJF2.js +0 -22
  537. package/dist/collection/components/forms/bds-checkbox/bds-checkbox.css +0 -90
  538. package/dist/esm/Keys-CzYQb3pP.js +0 -20
  539. package/dist/esm-es5/Keys-CzYQb3pP.js +0 -1
  540. package/dist/esm-es5/enum-C8mRvnTA.js +0 -1
  541. package/dist/esm-es5/form-associated.mixin-CvK2d92c.js +0 -1
  542. package/dist/esm-es5/getOffset-DKPjeBHi.js +0 -1
  543. package/dist/types/types/IFormProps.d.ts +0 -25
  544. /package/dist/collection/components/{helpers/types/IDivider.js → actions/bds-button-group/types/IButtonGroup.js} +0 -0
  545. /package/dist/collection/components/{helpers/types/types.js → actions/bds-list-menu/bds-list-menu/types/IListMenu.js} +0 -0
  546. /package/dist/collection/components/{layouts/bds-grid/grid-item → actions/bds-list-menu/bds-list-menu}/types/types.js +0 -0
  547. /package/dist/collection/components/{layouts/bds-grid/grid-item/types/IGridItem.js → forms/bds-checkbox/bds-checkbox-button/types/ICheckboxButton.js} +0 -0
  548. /package/dist/collection/components/{layouts/bds-grid/grid/types/IGrid.js → forms/bds-checkbox/bds-checkbox-card/types/ICheckboxCard.js} +0 -0
  549. /package/dist/collection/components/{layouts/bds-grid/grid/types/types.js → forms/bds-checkbox/bds-checkbox-group/types/ICheckboxGroup.js} +0 -0
  550. /package/dist/collection/{types/IFormProps.js → components/forms/bds-checkbox/bds-checkbox-group/types/types.js} +0 -0
  551. /package/dist/collection/components/helpers/{types → bds-divider/types}/enum.js +0 -0
  552. /package/dist/collection/components/layouts/bds-grid/{grid → bds-grid}/bds-grid.css +0 -0
  553. /package/dist/collection/components/layouts/bds-grid/{grid → bds-grid}/types/enum.js +0 -0
  554. /package/dist/collection/components/layouts/bds-grid/{grid → bds-grid}/types/index.js +0 -0
  555. /package/dist/collection/components/layouts/bds-grid/{grid-item → bds-grid-item}/bds-grid-item.css +0 -0
  556. /package/dist/collection/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/enum.js +0 -0
  557. /package/dist/collection/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/index.js +0 -0
  558. /package/dist/types/components/helpers/{bds-divider.d.ts → bds-divider/bds-divider.d.ts} +0 -0
  559. /package/dist/types/components/helpers/{types → bds-divider/types}/IDivider.d.ts +0 -0
  560. /package/dist/types/components/helpers/{types → bds-divider/types}/enum.d.ts +0 -0
  561. /package/dist/types/components/helpers/{types → bds-divider/types}/types.d.ts +0 -0
  562. /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/bds-grid.d.ts +0 -0
  563. /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/types/IGrid.d.ts +0 -0
  564. /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/types/enum.d.ts +0 -0
  565. /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/types/index.d.ts +0 -0
  566. /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/types/types.d.ts +0 -0
  567. /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/bds-grid-item.d.ts +0 -0
  568. /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/IGridItem.d.ts +0 -0
  569. /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/enum.d.ts +0 -0
  570. /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/index.d.ts +0 -0
  571. /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/types.d.ts +0 -0
@@ -0,0 +1 @@
1
+ import{p as e,a as o,c as a,h as s,H as d,t as r}from"./index.js";import{d as i}from"./p-B6e9eIHB.js";const t=e(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.bdsChange=a(this,"bdsChange"),this.checked=!1,this.disabled=!1,this.value="on",this.name="",this.label="",this.error=!1,this.info="",this.handleClick=()=>this.select(),this.handleKeyDown=e=>{" "===e.key&&(e.preventDefault(),this.select())}}componentDidLoad(){this.el.setAttribute("role","radio"),this.el.setAttribute("aria-checked",this.checked+""),this.el.setAttribute("tabindex","-1")}select(){this.disabled||this.checked||(this.checked=!0,this.el.setAttribute("aria-checked","true"),this.bdsChange.emit({checked:!0,value:this.value}))}get classMap(){return{"bds-radio":!0,"bds-radio--checked":this.checked,"bds-radio--error":this.error,"bds-radio--disabled":this.disabled}}render(){return s(d,{key:"460a06887759af9d8ff04be3b76e93c48a6e59f6",class:this.classMap,onClick:this.handleClick,onKeyDown:this.handleKeyDown},s("input",{key:"10e93de9010a5002d4a6605ef35f3a5273f20dc2",type:"radio",name:this.name,value:this.value,checked:this.checked,disabled:this.disabled,"aria-hidden":"true",tabIndex:-1,onFocus:()=>this.el.focus()}),s("span",{key:"e660d053bec4d6fb7a134230aad1317c1cc839cd",class:"bds-radio__button"},s("span",{key:"2a983b9b97396c9d0f0485e7b00309292c398cd6",class:"bds-radio__dot"})),s("span",{key:"e616d473595a3efd5f01f2896d8481d91c9195ac",class:"bds-radio__content"},s("span",{key:"50e7006d945aad95fb2c01d7beae98672e5fc532",class:"bds-radio__icon"},s("slot",{key:"d2f2018dbc9cb25e996b33be2fbfab3b96c84f14",name:"icon"})),s("span",{key:"b39791291a81d307dae7f45b4d764695d34d8f8f",class:"bds-radio__label"},this.label||s("slot",{key:"1aef7b131da161b51afb52383913d5187332352f"})),this.info&&s("span",{key:"943d3e05512fab78db5700d5c1527c3db9eeb272",class:"bds-radio__info"},s("span",{key:"d2a2a78eac436334545013539f8410c73ed06b2e",class:"bds-radio__info-icon bds-icon-info-circle","aria-hidden":"true"}),s("bds-tooltip",{key:"f6add279f359fde8c9727219a6126b776c755eff"},this.info))))}get el(){return this}static get style(){return'@charset "UTF-8";.bds-radio__content,.bds-radio__icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.bds-radio__info{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}.bds-radio{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-2xs);cursor:pointer;outline:none}.bds-radio input[type=radio]{position:absolute;opacity:0;width:0;height:0;margin:0;pointer-events:none}.bds-radio__content{gap:var(--boreal-spacing-3xs)}.bds-radio__icon{-ms-flex-negative:0;flex-shrink:0;line-height:1}.bds-radio__label{font-family:var(--boreal-typography-font-family-primary);font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-sm);color:var(--boreal-text-default)}.bds-radio__button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0;width:18px;height:18px;border-radius:var(--boreal-radius-full);border:1px solid var(--boreal-stroke-default-light);background-color:var(--boreal-ui-inverse);-webkit-transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease}.bds-radio__dot{width:10px;height:10px;border-radius:var(--boreal-radius-full);background-color:transparent;-webkit-transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease}.bds-radio__info-icon{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-size:var(--boreal-typography-font-size-sm);line-height:1;color:var(--boreal-icon-default-ink)}.bds-radio:hover:not(.bds-radio--disabled):not(.bds-radio--checked) .bds-radio__button{border-color:var(--boreal-stroke-default-light);-webkit-box-shadow:var(--boreal-depth-box-shadow-xs);box-shadow:var(--boreal-depth-box-shadow-xs)}.bds-radio:hover:not(.bds-radio--disabled):not(.bds-radio--checked) .bds-radio__dot{background-color:var(--boreal-ui-base-light)}.bds-radio:is(:focus-visible,:focus) .bds-radio__button{-webkit-box-shadow:var(--boreal-depth-box-shadow-focus);box-shadow:var(--boreal-depth-box-shadow-focus)}.bds-radio:active:not(.bds-radio--disabled):not(.bds-radio--checked) .bds-radio__button{-webkit-box-shadow:var(--boreal-depth-box-shadow-active);box-shadow:var(--boreal-depth-box-shadow-active)}.bds-radio--checked .bds-radio__button{border-color:var(--boreal-stroke-primary-base)}.bds-radio--checked .bds-radio__dot{background-color:var(--boreal-ui-primary-base)}.bds-radio--error .bds-radio__button{border-color:var(--boreal-stroke-danger-base)}.bds-radio--disabled{cursor:not-allowed;pointer-events:none}.bds-radio--disabled .bds-radio__button{border-color:var(--boreal-stroke-default-light);background-color:var(--boreal-ui-disabled)}.bds-radio--disabled .bds-radio__label{color:var(--boreal-text-disabled)}.bds-radio--disabled.bds-radio--checked .bds-radio__button{border-color:var(--boreal-ui-primary-light)}.bds-radio--disabled.bds-radio--checked .bds-radio__dot{background-color:var(--boreal-ui-primary-light)}'}},[260,"bds-radio",{checked:[1540],disabled:[516],value:[1],name:[513],label:[1],error:[516],info:[1]}]),b=t,n=function(){"undefined"!=typeof customElements&&["bds-radio","bds-tooltip"].forEach((e=>{switch(e){case"bds-radio":customElements.get(r(e))||customElements.define(r(e),t);break;case"bds-tooltip":customElements.get(r(e))||i()}}))};export{b as BdsRadio,n as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface BdsSelect extends Components.BdsSelect, HTMLElement {}
4
+ export const BdsSelect: {
5
+ prototype: BdsSelect;
6
+ new (): BdsSelect;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{p as t,a as s,c as i,h as e,H as h,t as l}from"./index.js";import{a as n}from"./p-fUK0GCeC.js";import{L as a}from"./p-yLNcMg2E.js";import{c as o}from"./p-DhSchGPI.js";import{d}from"./p-DdOPD9wW.js";import{d as r}from"./p-PmjPRW8X.js";function u(t){const s=t;return null!==s&&s.textContent?.trim()||""}function c(t,s,i){null!==t&&(t[s]=i)}function b(t,s,i){null!=t&&t.setAttribute(s,i)}function p(t,s,i){null!=t&&t.addEventListener(s,i)}function m(t,s,i){null!=t&&t.removeEventListener(s,i)}const f=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.bdsChange=i(this,"bdsChange"),this.valueChange=i(this,"valueChange"),this.inheritedAttributes={},this.hostForm=null,this.value="",this.searchable=!1,this.name="",this.valueString="",this.popoverVisible=!1,this.listId="bds-select-list-"+o(),this._preventFocusOpen=!1,this.listenListMenu=t=>{if(t.stopPropagation(),null!==this.bdsList){const s=t.detail;this._preventFocusOpen=!0,this.setValue(s||""),this.bdsPopover?.closePopover()}},this.listenClearInput=()=>{this.setValue(""),this.valueString="",this.resetChildren()},this.listenField=t=>{t.stopPropagation();const s=t.target.value;""!==s?(this.popoverVisible||this.bdsPopover?.openPopover(),this.searcherElement(s)):this.resetChildren()},this.listenBlurInput=t=>{const s=t.relatedTarget;s&&this.el.contains(s)||(this.resetValueField(),this.resetChildren())},this.listenKeydown=t=>{if("Tab"!==t.key||!this.popoverVisible||this.searchable)return;t.preventDefault();const s=(""!==this.value?this.bdsList?.querySelector(`bds-list-menu-item[value="${this.value}"]`):null)??this.bdsList?.querySelector('bds-list-menu-item:not([disabled]):not([hidden]):not([variant="label"])');s?.focus()},this.listenMouseDown=()=>{this._preventFocusOpen=!0},this.listenFocusInput=()=>{this._preventFocusOpen?this._preventFocusOpen=!1:this.bdsPopover?.openPopover()},this.stopFieldValueChange=t=>{t.stopPropagation()},this.listenFormReset=()=>{this.value="",this.valueString="",this.bdsList?.setSelectedValues("").catch((()=>{(new a).warn("bds-select","No options available to reset the value")}))}}watchPopoverVisible(t){b(this.bdsInput,"aria-expanded",""+t),b(this.el,"aria-expanded",""+t)}watchValue(){this.loadValue()}watchValueString(t){b(this.bdsField,"value",t)}componentWillLoad(){this.inheritedAttributes={...n(this.el,["role"])}}componentDidLoad(){this.hostForm=this.el.closest("form"),p(this.hostForm,"reset",this.listenFormReset),this.assignListeners(),this.loadDefaultProps(),this.loadValue()}disconnectedCallback(){m(this.hostForm,"reset",this.listenFormReset),this.removeListeners()}get bdsList(){return null!==this.el?this.el.querySelector("bds-list-menu"):null}get bdsField(){return null!==this.el?this.el.querySelector("bds-text-field"):null}get bdsInput(){return null!==this.bdsField?this.bdsField.querySelector("input"):null}get bdsPopover(){return null!==this.el?this.el.querySelector("bds-popover"):null}assignListeners(){p(this.bdsList,"bdsChange",this.listenListMenu),p(this.bdsField,"bdsClear",this.listenClearInput),p(this.bdsField,"bdsInput",this.listenField),p(this.bdsField,"valueChange",this.stopFieldValueChange),p(this.bdsInput,"blur",this.listenBlurInput),p(this.bdsInput,"keydown",this.listenKeydown),this.searchable&&(p(this.bdsInput,"focus",this.listenFocusInput),p(this.el,"mousedown",this.listenMouseDown)),this.listenPopOver()}removeListeners(){m(this.bdsList,"bdsChange",this.listenListMenu),m(this.bdsField,"bdsClear",this.listenClearInput),m(this.bdsField,"bdsInput",this.listenField),m(this.bdsField,"valueChange",this.stopFieldValueChange),m(this.bdsInput,"blur",this.listenBlurInput),m(this.bdsInput,"keydown",this.listenKeydown),m(this.bdsInput,"focus",this.listenFocusInput),m(this.el,"mousedown",this.listenMouseDown)}loadDefaultProps(){this.loadDefaultTextFieldProps(),this.loadDefaultListMenuProps()}loadDefaultTextFieldProps(){c(this.bdsField,"clearable",!0),c(this.bdsField,"selectable",!this.searchable),c(this.bdsField,"iconRight","bds-icon-chevron-down"),b(this.bdsInput,"role","combobox"),b(this.bdsInput,"aria-haspopup","listbox"),b(this.bdsInput,"aria-expanded","false"),b(this.bdsInput,"aria-autocomplete",this.searchable?"list":"none"),b(this.bdsInput,"aria-controls",this.listId)}loadDefaultListMenuProps(){b(this.bdsList,"menu-role","listbox"),b(this.bdsList,"id",this.listId)}setValue(t){this.value=t,this.bdsChange.emit(t),this.valueChange.emit(t)}listenPopOver(){c(this.bdsPopover,"floatingOptions",{hideArrow:!0,onAfterShow:()=>(this.popoverVisible=!0,!0),onAfterHide:()=>(this.popoverVisible=!1,this.resetValueField(),this.resetChildren(),!0)})}resetValueField(){""===this.value?this.bdsField?.setAttribute("value",""):""!==this.valueString&&this.bdsField?.setAttribute("value",this.valueString)}searcherElement(t){const s=t.toLowerCase();this.bdsList?.querySelectorAll("bds-list-menu-item").forEach((t=>{const i=t.getAttribute("value")||"",e=t.querySelector(".bds-list-item__content-left__text"),h=(null!==e?u(e):"").toLowerCase().includes(s)||i.toLowerCase().includes(s);c(t,"hidden",!h),b(t,"tabindex",h?"0":"-1"),h&&this.showParentLabel(t)}));const i=this.bdsList?.querySelectorAll("bds-list-menu-item:not([hidden])");c(this.bdsList,"empty",0===i?.length)}showParentLabel(t){let s=t.previousElementSibling;for(;null!==s;){if("label"===s.variant){c(s,"hidden",!1);break}s=s.previousElementSibling}}resetChildren(){this.bdsList?.querySelectorAll("bds-list-menu-item").forEach((t=>{c(t,"hidden",!1)}))}loadValue(){const t=this.value;if(""===t||null===this.bdsList||null===this.bdsField)return this.valueString="",void this.bdsList?.setSelectedValues("").catch((()=>{(new a).warn("bds-select","No options available to select the value")}));const s=this.bdsList.querySelector(`bds-list-menu-item[value="${t}"]`);if(null===s)return;const i=u(s.querySelector(".bds-list-item__content-left__text"));this.bdsList.setSelectedValues(t).then((()=>{this.valueString=i,s.scrollIntoView({block:"nearest"})})).catch((()=>{(new a).warn("bds-select","Failed to set selected value")}))}render(){return e(h,{key:"03665a810a8bccc7613bb617624253edf36ba543",role:"none",...this.inheritedAttributes},e("slot",{key:"dd6e528ceaf121f372ce82cc1682a676d6a5a64a",name:"field"}),e("input",{key:"4ff9a9348bac3c0a838950357523fd379e44d497",type:"hidden",value:this.value,name:this.name}),e("bds-popover",{key:"4f03fb1eb766c29ccaf26cf6450b8346d3681dc7",width:"full"},e("slot",{key:"80e28f34ed9369a1a8f3f687dbbda40aa246e3fb",name:"list"})))}get el(){return this}static get watchers(){return{popoverVisible:[{watchPopoverVisible:0}],value:[{watchValue:0}],valueString:[{watchValueString:0}]}}static get style(){return'@charset "UTF-8";bds-select{position:relative;display:-ms-flexbox;display:flex}bds-select .bds-list-menu{--bds-list-menu-max-width:100%}'}},[260,"bds-select",{value:[1537],searchable:[4],name:[1],valueString:[32],popoverVisible:[32]},void 0,{popoverVisible:[{watchPopoverVisible:0}],value:[{watchValue:0}],valueString:[{watchValueString:0}]}]),v=f,w=function(){"undefined"!=typeof customElements&&["bds-select","bds-button","bds-popover"].forEach((t=>{switch(t){case"bds-select":customElements.get(l(t))||customElements.define(l(t),f);break;case"bds-button":customElements.get(l(t))||d();break;case"bds-popover":customElements.get(l(t))||r()}}))};export{v as BdsSelect,w as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface BdsSlider extends Components.BdsSlider, HTMLElement {}
4
+ export const BdsSlider: {
5
+ prototype: BdsSlider;
6
+ new (): BdsSlider;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{p as t,M as s,c as i,h as e,H as a,t as r}from"./index.js";import{f as o}from"./p-nxYzL9uu.js";import{s as n}from"./p-DfaYciGa.js";import{d as l}from"./p-B6e9eIHB.js";import{d as h}from"./p-CJBdGD_4.js";const d="never",b="focus",u="single",p="range";function c(t,s=[0]){if(Array.isArray(t)){const i=t.map(Number).filter((t=>!isNaN(t)));return i.length>0?i:s}try{const i=JSON.parse(t),e=(Array.isArray(i)?i:[i]).map(Number).filter((t=>!isNaN(t)));return e.length>0?e:s}catch{const i=Number(t);return isNaN(i)?s:[i]}}class v{constructor(t){this.options=t}clamp(t){return Math.min(Math.max(t,this.options.min),this.options.max)}snapToStep(t){return this.clamp(Math.round((t-this.options.min)/this.options.step)*this.options.step+this.options.min)}applyCollision(t,s){const i=[...t],e=this.options.step;return this.options.type!==p||i.length<2||(0===s?i[0]=Math.min(i[0]??this.options.min,(i[1]??this.options.max)-e):i[1]=Math.max(i[1]??this.options.max,(i[0]??this.options.min)+e)),i}toPercent(t){const s=this.options.max-this.options.min;return 0===s?0:(t-this.options.min)/s*100}getConnectSegment(t){if(this.options.type===u)return{left:0,width:this.toPercent(t[0]??this.options.min)};const s=t[0]??this.options.min,i=t[1]??this.options.max;return{left:this.toPercent(s),width:this.toPercent(i-s+this.options.min)}}getPipPositions(){const{min:t,max:s,step:i}=this.options,e=[],a=(s-t)/i;for(let s=1;s<a;s++)e.push(this.toPercent(t+s*i));return e}getThumbCSSPosition(t,s,i){return this.toPercent(t)/100*(s-i)+i/2}}class g{static addTooltipsStates(t,s){void 0!==t&&t.classList.add(s+"__tooltip--visible",s+"__tooltip--active")}static removeTooltipsStates(t,s){void 0!==t&&t.classList.remove(s+"__tooltip--visible",s+"__tooltip--active")}static syncTooltips(t,s){t.forEach(((t,i)=>{const e=s[i];void 0!==e&&(e.value=t+"",e.setAttribute("value",t+""),e.setAttribute("aria-valuenow",t+""))}))}static moveConnect(t,s){t.style.left=s.left+"%",t.style.width=s.width+"%"}static getThumbCSSPosition(t){const s="var(--handle-size, 16px)";return`calc(${t}% + (${s} / 2) - (${t} * ${s} / 100))`}static updateInputValue(t,s){t.value=s+"",t.setAttribute("value",s+""),t.setAttribute("aria-valuenow",s+"")}}const m=t(class extends(s(o)){constructor(t){super(!1),!1!==t&&this.__registerHost(),this.bdsChange=i(this,"bdsChange"),this.valueChange=i(this,"valueChange"),this.bdsClick=i(this,"bdsClick"),this.internals=this.attachInternals(),this.blockClass="bds-slider",this.inputEls=[],this.tooltipEls=[],this.min=0,this.max=100,this.type=u,this.label="",this.step=1,this.showLimits=!1,this.value=[0],this.disabled=!1,this.name="",this.disabledHandlers="[]",this.discrete=!1,this.tooltip=b,this.isDisabled=!1,this.isDiscrete=!1,this.internalValues=[0],this.handleClick=t=>{this.bdsClick.emit({target:t.target,value:[...this.internalValues]})}}onDisabledChange(t){this.isDisabled=t,this.syncDOMUpdates()}onDisabledHandlersChange(){this.syncDOMUpdates()}onValueChange(t){this.internalValues=this.resolveValues(t),this.syncDOMUpdates()}onConfigChange(){this.isDiscrete=this.discrete,this.internalValues=this.resolveValues(this.value),this.buildAdapter(),this.syncDOMUpdates()}onRangeChange(){this.buildAdapter(),this.syncDOMUpdates()}formAssociatedCallback(){this.syncFormValue()}formResetCallback(){const t=this.resolveValues(this.value);this.updateValues(t,!1),this.syncDOMUpdates(),this.emitChange(t)}formStateRestoreCallback(t,s){if("string"!=typeof t)return;const i=t.split(",").map((t=>parseFloat(t))).filter((t=>!Number.isNaN(t)));0!==i.length&&(this.updateValues(i,!1),this.syncDOMUpdates(),n(this.internals,t))}syncFormValue(){n(this.internals,function(t){return t.join(",")}(this.internalValues))}async getValues(){return[...this.internalValues]}async setValues(t){const s=this.resolveValues(t);this.updateValues(s,!1),this.syncDOMUpdates(),this.syncFormValue(),this.emitChange(s)}buildAdapter(){this.service=new v({min:Number(this.min),max:Number(this.max),step:Number(this.step),type:this.type,value:this.internalValues,disabledHandlers:c(this.disabledHandlers,[]),discrete:this.isDiscrete,disabled:this.isDisabled,name:(this.name??"")+""})}syncDOMUpdates(){this.syncInputsToValues(),this.updateProgress(),this.syncTooltips()}handleInputEvent(t,s){const i=s?.target,e=i??this.inputEls[t];if(void 0===e)return;let a=this.service.snapToStep(parseFloat(e.value));const r=[...this.internalValues];r[t]=a;const o=this.service.applyCollision(r,t);a=o[t]??a,this.internalValues=o,g.updateInputValue(e,a),this.updateProgress(),this.syncTooltip(t,a),this.syncFormValue()}handleChangeEvent(t,s){this.handleInputEvent(t,s),this.isDisabled||this.emitChange([...this.internalValues])}onHandleFocus(t){g.addTooltipsStates(this.tooltipEls[t],this.blockClass)}onHandleBlur(t){g.removeTooltipsStates(this.tooltipEls[t],this.blockClass)}onHandleInactive(t){const s=this.inputEls[t];g.removeTooltipsStates(s,this.blockClass),s.blur()}syncInputsToValues(){g.syncTooltips(this.internalValues,this.inputEls)}updateProgress(){if(void 0===this.connectEl||void 0===this.service)return;const t=this.service.getConnectSegment(this.internalValues);g.moveConnect(this.connectEl,t)}syncTooltip(t,s){const i=this.tooltipEls[t];void 0!==i&&(i.textContent=s+"",i.style.left=this.getThumbPosition(s)+"px")}syncTooltips(){this.internalValues.forEach(((t,s)=>{this.syncTooltip(s,t)}))}resolveValues(t){const s=this.service;return function(t,s,i,e){const a=c(t,[Number(s)]);return e===p?a.length>=2?[a[0]??Number(s),a[1]??Number(i)]:[a[0]??Number(s),Number(i)]:[a[0]??Number(s)]}(t,this.min,this.max,this.type).map((t=>s.clamp(t)))}updateValues(t,s=!0){this.internalValues=t,s&&this.emitChange(t)}emitChange(t){this.isDisabled||(this.bdsChange.emit({value:t}),this.valueChange.emit(t),this.syncFormValue())}isHandleDisabled(t){const s=c(this.disabledHandlers,[]);return this.isDisabled||s.includes(t)}getPipPositions(){return void 0===this.service?[]:this.service.getPipPositions()}get classMap(){const t="bds-slider";return{[t]:!0,[t+"--disabled"]:this.isDisabled,[t+"--discrete"]:this.isDiscrete,[t+"--label"]:!!this.label.trim(),[t+"--tooltip"]:!!this.tooltip&&this.tooltip!==d&&!1===this.isDisabled,[t+"--tooltip-never"]:this.tooltip===d,[t+"--tooltip-focus"]:this.tooltip===b}}getThumbPosition(t){if(void 0===this.trackEl||void 0===this.service)return 0;const s=this.trackEl.getBoundingClientRect().width,i=parseFloat(getComputedStyle(this.el).getPropertyValue("--handle-size"))||16;return this.service.getThumbCSSPosition(t,s,i)}getThumbCSSPosition(t){return g.getThumbCSSPosition(t)}renderInput(t,s){const i=this.isHandleDisabled(s);return e("input",{class:this.blockClass+"__input",type:"range",min:this.min,max:this.max,step:this.step,value:s,disabled:i,"data-handle":t,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":s,"aria-disabled":i?"true":void 0,"aria-describedby":"bds-slider-tooltip-"+t,onInput:s=>this.handleInputEvent(t,s),onChange:s=>this.handleChangeEvent(t,s),onFocus:()=>this.onHandleFocus(t),onBlur:()=>this.onHandleBlur(t),onPointerUp:()=>this.onHandleInactive(t),ref:s=>{void 0!==s&&(this.inputEls[t]=s)}})}renderMinMax(){return!1===this.showLimits?null:e("div",{class:this.blockClass+"__limits"},e("bds-typography",{variant:"helper"},this.min),e("bds-typography",{variant:"helper"},this.max))}handleTrackClick(t){if(this.isDisabled||void 0===this.trackEl)return;if(t.target.classList.contains(this.blockClass+"__input"))return;const s=this.trackEl.getBoundingClientRect(),i=Math.min(Math.max((t.clientX-s.left)/s.width,0),1),e=this.service.snapToStep(Number(this.min)+i*(Number(this.max)-Number(this.min))),a=[...this.internalValues];if(this.type===u){if(this.isHandleDisabled(a[0]))return;a[0]=e,this.internalValues=a}else{const[t,s]=a,i=Math.abs(e-t)<=Math.abs(e-s)?0:1;if(this.isHandleDisabled(a[i]))return;a[i]=e,this.internalValues=this.service.applyCollision(a,i)}this.syncDOMUpdates(),this.emitChange([...this.internalValues])}renderTooltip(t,s){return this.tooltip===d?null:e("div",{id:"bds-slider-tooltip-"+t,class:{[this.blockClass+"__tooltip"]:!0,[`${this.blockClass}__tooltip--${this.tooltip}`]:!0},role:"tooltip",onClick:t=>{t.stopPropagation()},style:{left:(this.service?.toPercent(s)??0)+"%"},ref:s=>{void 0!==s&&(this.tooltipEls[t]=s)}},s)}renderPips(){return this.isDiscrete?e("div",{class:this.blockClass+"__pips"},this.getPipPositions().map(((t,s)=>e("div",{key:"pip-"+s,class:this.blockClass+"__pip",style:{left:this.getThumbCSSPosition(t)}})))):null}renderLabel(){return""===this.label.trim()||void 0===this.label?null:e("bds-typography",{class:this.blockClass+"__label",htmlFor:this.el.id,variant:"label"},this.label)}componentWillLoad(){this.isDisabled=this.disabled,this.isDiscrete=this.discrete,this.buildAdapter(),this.internalValues=this.resolveValues(this.value)}componentDidLoad(){this.syncDOMUpdates()}componentDidUpdate(){this.syncDOMUpdates()}disconnectedCallback(){this.inputEls=[],this.tooltipEls=[]}render(){return e(a,{key:"d883f67c2dfc80f8b97f2d7394b99ad6c30798fa",class:this.classMap,"aria-disabled":this.isDisabled?"true":void 0,onClick:this.handleClick},this.renderLabel(),e("div",{key:"2704c76fbc751029ca89519950dfb90c3294d5e7",class:this.blockClass+"__wrapper",onClick:t=>this.handleTrackClick(t)},e("div",{key:"db67ea023a4f200069e68e02281539378e9e39db",class:this.blockClass+"__track-base",ref:t=>{void 0!==t&&(this.trackEl=t)}}),e("div",{key:"02163060bb531de138aae3ad1a4e7f221e7c127f",class:this.blockClass+"__connect",ref:t=>{void 0!==t&&(this.connectEl=t)}}),this.renderPips(),this.internalValues.map(((t,s)=>this.renderInput(s,t))),this.internalValues.map(((t,s)=>this.renderTooltip(s,t)))),this.renderMinMax())}static get formAssociated(){return!0}get el(){return this}static get watchers(){return{disabled:[{onDisabledChange:0}],disabledHandlers:[{onDisabledHandlersChange:0}],value:[{onValueChange:0}],type:[{onConfigChange:0}],discrete:[{onConfigChange:0}],min:[{onRangeChange:0}],max:[{onRangeChange:0}],step:[{onRangeChange:0}]}}static get style(){return'@charset "UTF-8";.bds-slider{display:block;width:100%;--handle-size:16px}.bds-slider--range .bds-slider__input{pointer-events:none}.bds-slider--tooltip{margin-top:var(--boreal-spacing-xl)}.bds-slider--tooltip.bds-slider--label{margin-top:var(--boreal-spacing-ml)}.bds-slider--disabled .bds-slider__tooltip{display:none}.bds-slider--disabled .bds-slider__wrapper{cursor:auto}.bds-slider--disabled .bds-slider__connect{background:var(--boreal-ui-primary-light)}.bds-slider__label{margin-bottom:var(--boreal-spacing-3xs)}.bds-slider__wrapper{position:relative;width:100%;height:var(--handle-size);overflow:visible;cursor:pointer}.bds-slider__track-base{position:absolute;left:0;right:0;top:50%;height:var(--boreal-spacing-2xs);-webkit-transform:translateY(-50%);transform:translateY(-50%);background:var(--boreal-base-light);border-radius:var(--boreal-radius-full);pointer-events:none;z-index:1}.bds-slider__connect{position:absolute;top:50%;height:4px;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:var(--boreal-ui-primary-base);border-radius:var(--boreal-radius-full);pointer-events:none;z-index:2}.bds-slider__input{position:absolute;left:0;top:50%;width:100%;height:var(--handle-size);-webkit-transform:translateY(-50%);transform:translateY(-50%);margin:0;padding:0;background:transparent;outline:none;-moz-appearance:none;appearance:none;-webkit-appearance:none;pointer-events:none;z-index:5}.bds-slider__input::-webkit-slider-runnable-track{height:var(--handle-size);background:transparent;border:none;appearance:none;-webkit-appearance:none}.bds-slider__input::-webkit-slider-thumb{width:var(--handle-size);height:var(--handle-size);margin-top:0;border-radius:var(--boreal-radius-full);background:var(--boreal-ui-inverse);border:var(--boreal-spacing-4xs) solid var(--boreal-stroke-default-light);-webkit-box-shadow:var(--boreal-depth-box-shadow-xs);box-shadow:var(--boreal-depth-box-shadow-xs);cursor:-webkit-grab;cursor:grab;pointer-events:auto;appearance:none;-webkit-appearance:none}.bds-slider__input::-moz-range-track{height:var(--handle-size);background:transparent;border:none}.bds-slider__input::-moz-range-thumb{width:var(--handle-size);height:var(--handle-size);border-radius:var(--boreal-radius-full);background:var(--boreal-ui-inverse);border:var(--boreal-spacing-4xs) solid var(--boreal-stroke-default-light);box-shadow:var(--boreal-depth-box-shadow-xs);cursor:grab;pointer-events:auto}.bds-slider__input:focus-visible::-webkit-slider-thumb,.bds-slider__input:active::-webkit-slider-thumb{-webkit-box-shadow:var(--boreal-depth-box-shadow-active);box-shadow:var(--boreal-depth-box-shadow-active)}.bds-slider__input:focus-visible::-webkit-slider-thumb .bds-slider__tooltip--active,.bds-slider__input:active::-webkit-slider-thumb .bds-slider__tooltip--active{-webkit-box-shadow:var(--boreal-depth-box-shadow-xs);box-shadow:var(--boreal-depth-box-shadow-xs)}.bds-slider__input:focus-visible::-moz-range-thumb,.bds-slider__input:active::-moz-range-thumb{box-shadow:var(--boreal-depth-box-shadow-active)}.bds-slider__input:focus-visible::-moz-range-thumb .bds-slider__tooltip--active,.bds-slider__input:active::-moz-range-thumb .bds-slider__tooltip--active{box-shadow:var(--boreal-depth-box-shadow-xs)}.bds-slider__input:active::-webkit-slider-thumb{cursor:-webkit-grabbing;cursor:grabbing}.bds-slider__input:active::-moz-range-thumb{cursor:grabbing}.bds-slider__input:disabled{pointer-events:none}.bds-slider__input:disabled.bds-slider__connect{background:var(--boreal-ui-disabled)}.bds-slider__input:disabled::-webkit-slider-thumb{background:var(--boreal-ui-disabled);border-color:var(--boreal-base-light);-webkit-box-shadow:none;box-shadow:none;cursor:not-allowed}.bds-slider__input:disabled::-moz-range-thumb{background:var(--boreal-ui-disabled);border-color:var(--boreal-base-light);box-shadow:none;cursor:not-allowed}.bds-slider__pips{position:absolute;left:0;right:0;top:50%;height:var(--boreal-spacing-2xs);-webkit-transform:translateY(-50%);transform:translateY(-50%);pointer-events:none;z-index:3}.bds-slider__pip{position:absolute;top:0;width:var(--boreal-spacing-3xs);height:100%;background:var(--boreal-ui-inverse);-webkit-transform:translateX(-50%);transform:translateX(-50%)}.bds-slider__limits{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;margin-top:var(--boreal-spacing-3xs)}.bds-slider__tooltip{position:absolute;bottom:calc(100% + 10px);-webkit-transform:translateX(-50%);transform:translateX(-50%);color:var(--boreal-text-default);background:var(--boreal-ui-inverse);border-radius:var(--boreal-radius-xs);padding:var(--boreal-spacing-2xs) var(--boreal-spacing-2xs);font-size:var(--boreal-typography-font-size-xs);font-family:var(--boreal-typography-font-family-primary);white-space:nowrap;cursor:auto;pointer-events:fill;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:var(--boreal-layout-ml);height:var(--boreal-layout-ml)}.bds-slider__tooltip--active{-webkit-box-shadow:var(--boreal-depth-box-shadow-xs);box-shadow:var(--boreal-depth-box-shadow-xs)}.bds-slider__tooltip--never{opacity:0}.bds-slider__tooltip--focus{opacity:0;-webkit-transition:opacity 0.15s ease;transition:opacity 0.15s ease}.bds-slider__tooltip--focus.bds-slider__tooltip--visible{opacity:1}'}},[576,"bds-slider",{min:[514],max:[514],type:[513],label:[513],step:[514],showLimits:[516,"show-limits"],value:[1],disabled:[516],name:[513],disabledHandlers:[513,"disabled-handlers"],discrete:[516],tooltip:[513],isDisabled:[32],isDiscrete:[32],internalValues:[32],getValues:[64],setValues:[64]},void 0,{disabled:[{onDisabledChange:0}],disabledHandlers:[{onDisabledHandlersChange:0}],value:[{onValueChange:0}],type:[{onConfigChange:0}],discrete:[{onConfigChange:0}],min:[{onRangeChange:0}],max:[{onRangeChange:0}],step:[{onRangeChange:0}]}]),_=m,f=function(){"undefined"!=typeof customElements&&["bds-slider","bds-tooltip","bds-typography"].forEach((t=>{switch(t){case"bds-slider":customElements.get(r(t))||customElements.define(r(t),m);break;case"bds-tooltip":customElements.get(r(t))||l();break;case"bds-typography":customElements.get(r(t))||h()}}))};export{_ as BdsSlider,f as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,H as t,h as r,a,t as s}from"./index.js";import{v as o}from"./p-kGnB15Lz.js";const i={SMALL:"sm",MEDIUM:"md",LARGE:"lg"},n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.size=i.SMALL,this.label="Loading"}checkPropValues(){o(Object.values(i),i.SMALL,this.el,"size")}componentWillLoad(){this.checkPropValues()}get getClassMap(){return{"bds-spinner":!0,"bds-spinner--small":this.size===i.SMALL,"bds-spinner--medium":this.size===i.MEDIUM,"bds-spinner--large":this.size===i.LARGE}}render(){return r(a,{key:"d114eb6445b81a4e7beafd0ff08b8aaf6e1a96e7",class:this.getClassMap,role:"status","aria-label":this.label,"aria-live":"polite","aria-busy":"true"},r("span",{key:"fa45675b2e258eca9c44a9374a65f26c781343d5",class:"bds-spinner__sr-only"},this.label))}get el(){return this}static get watchers(){return{size:[{checkPropValues:0}]}}static get style(){return'@charset "UTF-8";bds-spinner{display:inline-block;position:relative;width:1em;height:1em}bds-spinner::before,bds-spinner::after{content:"";position:absolute;border-color:transparent transparent var(--boreal-primary-base) transparent;border-radius:50%;border-width:3px;border-style:solid;top:0;left:0;width:100%;height:100%;-webkit-box-sizing:border-box;box-sizing:border-box}bds-spinner::before{opacity:0.2;border-style:dashed;-webkit-animation:spin 0.8s linear infinite;animation:spin 0.8s linear infinite}bds-spinner::after{-webkit-animation:draw-arc 0.8s linear infinite;animation:draw-arc 0.8s linear infinite}.bds-spinner--small{width:var(--boreal-layout-m);height:var(--boreal-layout-m)}.bds-spinner--medium{width:var(--boreal-layout-ml);height:var(--boreal-layout-ml)}.bds-spinner--large{width:var(--boreal-layout-xl);height:var(--boreal-layout-xl)}.bds-spinner__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap;border:0}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes draw-arc{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}60%{-webkit-transform:rotate(330deg);transform:rotate(330deg)}65%{-webkit-transform:rotate(335deg);transform:rotate(335deg)}90%{-webkit-transform:rotate(350deg);transform:rotate(350deg)}95%{-webkit-transform:rotate(355deg);transform:rotate(355deg)}98%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes draw-arc{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}60%{-webkit-transform:rotate(330deg);transform:rotate(330deg)}65%{-webkit-transform:rotate(335deg);transform:rotate(335deg)}90%{-webkit-transform:rotate(350deg);transform:rotate(350deg)}95%{-webkit-transform:rotate(355deg);transform:rotate(355deg)}98%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}'}},[0,"bds-spinner",{size:[1],label:[1]},void 0,{size:[{checkPropValues:0}]}]),d=n,b=function(){"undefined"!=typeof customElements&&["bds-spinner"].forEach((e=>{"bds-spinner"===e&&(customElements.get(s(e))||customElements.define(s(e),n))}))};export{d as BdsSpinner,b as defineCustomElement}
1
+ import{p as e,a as t,h as r,H as a,t as s}from"./index.js";import{v as o}from"./p-kGnB15Lz.js";const i={SMALL:"sm",MEDIUM:"md",LARGE:"lg"},n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.size=i.SMALL,this.label="Loading"}checkPropValues(){o(Object.values(i),i.SMALL,this.el,"size")}componentWillLoad(){this.checkPropValues()}get getClassMap(){return{"bds-spinner":!0,"bds-spinner--small":this.size===i.SMALL,"bds-spinner--medium":this.size===i.MEDIUM,"bds-spinner--large":this.size===i.LARGE}}render(){return r(a,{key:"7e7846adadb6224abfcaaf2478768b72ec712659",class:this.getClassMap,role:"status","aria-label":this.label,"aria-live":"polite","aria-busy":"true"},r("span",{key:"1c6aad446ed35a3adcb4e4f28fd4a3e7b9b7cb3a",class:"bds-spinner__sr-only"},this.label))}get el(){return this}static get watchers(){return{size:[{checkPropValues:0}]}}static get style(){return'@charset "UTF-8";bds-spinner{display:inline-block;position:relative;width:1em;height:1em}bds-spinner::before,bds-spinner::after{content:"";position:absolute;border-color:transparent transparent var(--boreal-primary-base) transparent;border-radius:50%;border-width:3px;border-style:solid;top:0;left:0;width:100%;height:100%;-webkit-box-sizing:border-box;box-sizing:border-box}bds-spinner::before{opacity:0.2;border-style:dashed;-webkit-animation:spin 0.8s linear infinite;animation:spin 0.8s linear infinite}bds-spinner::after{-webkit-animation:draw-arc 0.8s linear infinite;animation:draw-arc 0.8s linear infinite}.bds-spinner--small{width:var(--boreal-layout-m);height:var(--boreal-layout-m)}.bds-spinner--medium{width:var(--boreal-layout-ml);height:var(--boreal-layout-ml)}.bds-spinner--large{width:var(--boreal-layout-xl);height:var(--boreal-layout-xl)}.bds-spinner__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap;border:0}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes draw-arc{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}60%{-webkit-transform:rotate(330deg);transform:rotate(330deg)}65%{-webkit-transform:rotate(335deg);transform:rotate(335deg)}90%{-webkit-transform:rotate(350deg);transform:rotate(350deg)}95%{-webkit-transform:rotate(355deg);transform:rotate(355deg)}98%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes draw-arc{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}60%{-webkit-transform:rotate(330deg);transform:rotate(330deg)}65%{-webkit-transform:rotate(335deg);transform:rotate(335deg)}90%{-webkit-transform:rotate(350deg);transform:rotate(350deg)}95%{-webkit-transform:rotate(355deg);transform:rotate(355deg)}98%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}'}},[0,"bds-spinner",{size:[1],label:[1]},void 0,{size:[{checkPropValues:0}]}]),d=n,b=function(){"undefined"!=typeof customElements&&["bds-spinner"].forEach((e=>{"bds-spinner"===e&&(customElements.get(s(e))||customElements.define(s(e),n))}))};export{d as BdsSpinner,b as defineCustomElement}
@@ -1 +1 @@
1
- import{p as a,H as s,h as t,a as e,t as r}from"./index.js";import{P as o}from"./p-Bfazyxqi.js";import{v as l}from"./p-kGnB15Lz.js";const n={NONE:"none",DOT:"dot",ICON:"icon"},i=a(class extends s{constructor(a){super(),!1!==a&&this.__registerHost(),this.state=o.NEUTRAL,this.indicator=n.NONE}checkPropValues(){l(Object.values(o),o.NEUTRAL,this.el,"state"),l(Object.values(n),n.NONE,this.el,"indicator")}componentWillLoad(){this.checkPropValues()}get classMap(){return{"bds-status":!0,["bds-status--"+this.state]:!0,["bds-status--"+this.indicator]:!0}}render(){return t(e,{key:"36cf2dfe777002b02d126d38cb9ed2bce3f828a6",class:this.classMap,role:"status"},this.indicator===n.DOT?t("div",{class:"bds-status__dot","aria-hidden":"true"}):"",t("slot",{key:"99ab1fa89dc28f3ffca617508b5c577abf874d7a",name:"icon"}),t("slot",{key:"8ff726d294fc524950ac0255c71f4ba65b3c9b96"}))}get el(){return this}static get watchers(){return{state:[{checkPropValues:0}],indicator:[{checkPropValues:0}]}}static get style(){return'@charset "UTF-8";.bds-status{color:var(--boreal-text-default-ink);text-align:center;font-family:var(--boreal-typography-font-family-primary);font-size:var(--boreal-typography-font-size-xs);font-style:normal;font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-xs);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;gap:var(--boreal-spacing-3xs);padding:var(--boreal-spacing-3xs) var(--boreal-spacing-xs);min-height:var(--boreal-spacing-ml);border-radius:var(--boreal-radius-xs)}.bds-status>[slot=icon]{display:none}.bds-status--icon>[slot=icon]{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:var(--boreal-layout-s);height:var(--boreal-layout-s)}.bds-status__dot{background-color:var(--boreal-icon-default-light);width:var(--boreal-spacing-xs);height:var(--boreal-spacing-xs);border-radius:var(--boreal-radius-full)}.bds-status--neutral{color:var(--boreal-text-default-ink);background-color:var(--boreal-ui-default-lighter)}.bds-status--neutral>.bds-status__dot{background-color:var(--boreal-icon-default-lighter)}.bds-status--neutral>[slot=icon]{color:var(--boreal-icon-default-lighter)}.bds-status--neutral>.bds-status__dot{background-color:var(--boreal-icon-default-light)}.bds-status--pending{color:var(--boreal-text-warning-dark);background-color:var(--boreal-ui-warning-lighter)}.bds-status--pending>.bds-status__dot{background-color:var(--boreal-icon-warning-base)}.bds-status--pending>[slot=icon]{color:var(--boreal-icon-warning-base)}.bds-status--in-progress{color:var(--boreal-text-information-dark);background-color:var(--boreal-ui-info-lighter)}.bds-status--in-progress>.bds-status__dot{background-color:var(--boreal-icon-info-base)}.bds-status--in-progress>[slot=icon]{color:var(--boreal-icon-info-base)}.bds-status--complete{color:var(--boreal-text-success-dark);background-color:var(--boreal-ui-success-lighter)}.bds-status--complete>.bds-status__dot{background-color:var(--boreal-icon-success-base)}.bds-status--complete>[slot=icon]{color:var(--boreal-icon-success-base)}.bds-status--cancel{color:var(--boreal-text-danger-dark);background-color:var(--boreal-ui-danger-lighter)}.bds-status--cancel>.bds-status__dot{background-color:var(--boreal-icon-danger-base)}.bds-status--cancel>[slot=icon]{color:var(--boreal-icon-danger-base)}'}},[260,"bds-status",{state:[1],indicator:[1]},void 0,{state:[{checkPropValues:0}],indicator:[{checkPropValues:0}]}]),c=i,d=function(){"undefined"!=typeof customElements&&["bds-status"].forEach((a=>{"bds-status"===a&&(customElements.get(r(a))||customElements.define(r(a),i))}))};export{c as BdsStatus,d as defineCustomElement}
1
+ import{p as a,a as s,h as t,H as e,t as r}from"./index.js";import{P as o}from"./p-Bfazyxqi.js";import{v as l}from"./p-kGnB15Lz.js";const n={NONE:"none",DOT:"dot",ICON:"icon"},i=a(class extends s{constructor(a){super(),!1!==a&&this.__registerHost(),this.state=o.NEUTRAL,this.indicator=n.NONE}checkPropValues(){l(Object.values(o),o.NEUTRAL,this.el,"state"),l(Object.values(n),n.NONE,this.el,"indicator")}componentWillLoad(){this.checkPropValues()}get classMap(){return{"bds-status":!0,["bds-status--"+this.state]:!0,["bds-status--"+this.indicator]:!0}}render(){return t(e,{key:"9a952b22de8565fcca464d045f71ea86c92c8632",class:this.classMap,role:"status"},this.indicator===n.DOT?t("div",{class:"bds-status__dot","aria-hidden":"true"}):"",t("slot",{key:"47e03b139fcb4da8b15fe115518856c54d02a320",name:"icon"}),t("slot",{key:"e512e975c2df8fa3e3380f27808eec96be5ad455"}))}get el(){return this}static get watchers(){return{state:[{checkPropValues:0}],indicator:[{checkPropValues:0}]}}static get style(){return'@charset "UTF-8";.bds-status{color:var(--boreal-text-default-ink);text-align:center;font-family:var(--boreal-typography-font-family-primary);font-size:var(--boreal-typography-font-size-xs);font-style:normal;font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-xs);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;gap:var(--boreal-spacing-3xs);padding:var(--boreal-spacing-3xs) var(--boreal-spacing-xs);min-height:var(--boreal-spacing-ml);border-radius:var(--boreal-radius-xs)}.bds-status>[slot=icon]{display:none}.bds-status--icon>[slot=icon]{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:var(--boreal-layout-s);height:var(--boreal-layout-s)}.bds-status__dot{background-color:var(--boreal-icon-default-light);width:var(--boreal-spacing-xs);height:var(--boreal-spacing-xs);border-radius:var(--boreal-radius-full)}.bds-status--neutral{color:var(--boreal-text-default-ink);background-color:var(--boreal-ui-default-lighter)}.bds-status--neutral>.bds-status__dot{background-color:var(--boreal-icon-default-lighter)}.bds-status--neutral>[slot=icon]{color:var(--boreal-icon-default-lighter)}.bds-status--neutral>.bds-status__dot{background-color:var(--boreal-icon-default-light)}.bds-status--pending{color:var(--boreal-text-warning-dark);background-color:var(--boreal-ui-warning-lighter)}.bds-status--pending>.bds-status__dot{background-color:var(--boreal-icon-warning-base)}.bds-status--pending>[slot=icon]{color:var(--boreal-icon-warning-base)}.bds-status--in-progress{color:var(--boreal-text-information-dark);background-color:var(--boreal-ui-info-lighter)}.bds-status--in-progress>.bds-status__dot{background-color:var(--boreal-icon-info-base)}.bds-status--in-progress>[slot=icon]{color:var(--boreal-icon-info-base)}.bds-status--complete{color:var(--boreal-text-success-dark);background-color:var(--boreal-ui-success-lighter)}.bds-status--complete>.bds-status__dot{background-color:var(--boreal-icon-success-base)}.bds-status--complete>[slot=icon]{color:var(--boreal-icon-success-base)}.bds-status--cancel{color:var(--boreal-text-danger-dark);background-color:var(--boreal-ui-danger-lighter)}.bds-status--cancel>.bds-status__dot{background-color:var(--boreal-icon-danger-base)}.bds-status--cancel>[slot=icon]{color:var(--boreal-icon-danger-base)}'}},[260,"bds-status",{state:[1],indicator:[1]},void 0,{state:[{checkPropValues:0}],indicator:[{checkPropValues:0}]}]),c=i,d=function(){"undefined"!=typeof customElements&&["bds-status"].forEach((a=>{"bds-status"===a&&(customElements.get(r(a))||customElements.define(r(a),i))}))};export{c as BdsStatus,d as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,H as a,c as o,h as t,F as r,a as s,t as l}from"./index.js";import{c as d}from"./p-DhSchGPI.js";import{v as b}from"./p-kGnB15Lz.js";const i={GRAY:"gray",CYAN:"cyan",TEAL:"teal",LIME:"lime",ORANGE:"orange",COBALT:"cobalt",ROSE:"rose",PURPLE:"purple"},n=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.bdsClose=o(this,"bdsClose"),this.bdsSelect=o(this,"bdsSelect"),this._id=d("bds-tag"),this.internalSelected=!1,this.multiselect=!1,this.selected=!1,this.closeButtonLabel="Close tag",this.color=i.GRAY,this.readonly=!1,this.disabled=!1,this.handleClose=e=>{this.disabled||(void 0!==e&&(e.preventDefault(),e.stopPropagation()),this.bdsClose.emit({id:this._id,selected:this.internalSelected,el:this.el}))},this.handleKeyDown=e=>{this.disabled||(this.readonly||!["Delete","Backspace"].includes(e.key)?[" ","Enter"].includes(e.key)&&e.target===this.el&&(e.preventDefault(),this.handleSelection()):this.handleClose(e))},this.handleSelection=()=>{this.disabled||this.multiselect&&(this.internalSelected=!this.internalSelected,this.bdsSelect.emit({id:this._id,selected:this.internalSelected,el:this.el}))}}componentWillLoad(){this.syncSelectedFromProp(this.selected),this.checkPropValues(),this.validateMultiselectRole()}checkPropValues(){b(Object.values(i),i.GRAY,this.el,"color")}syncSelectedFromProp(e){this.internalSelected=e}validateMultiselectRole(){this.multiselect&&null===this.el.closest('[role="listbox"], [role="group"], bds-tag-group')&&console.warn('[BorealDS Tag] Missing required ARIA parent. Expected role="listbox", role="group", or <bds-tag-group> when multiselect=true.')}getClasses(){return{"bds-tag":!0,["bds-tag--"+this.color]:!0,"bds-tag--disabled":this.disabled,"bds-tag--selected":this.internalSelected}}renderTag(){return t(r,null,t("span",{"aria-hidden":"true",class:"bds-tag__icon"},t("slot",{name:"icon"})),t("span",{class:"bds-tag__text"},t("slot",null)))}renderCloseIcon(){return t("button",{class:"bds-tag__close-button","aria-label":this.closeButtonLabel,onClick:e=>this.handleClose(e),disabled:this.disabled,type:"button"},t("em",{class:"bds-icon-close","aria-hidden":"true"}))}render(){const e=this.getClasses(),a=!this.readonly,o=this.multiselect;return t(s,{key:"0864f3764aef3354e5b2c7494a5c9c2cb261582f",class:e,role:o?"option":void 0,tabIndex:o&&!this.disabled?0:-1,"aria-disabled":this.disabled?"true":void 0,"aria-selected":o?""+this.internalSelected:void 0,onKeyDown:this.disabled?void 0:e=>this.handleKeyDown(e),onClick:this.disabled?void 0:this.handleSelection,id:this._id},this.renderTag(),a&&this.renderCloseIcon())}get el(){return this}static get watchers(){return{color:[{checkPropValues:0}],selected:[{syncSelectedFromProp:0}]}}static get style(){return'@charset "UTF-8";.bds-tag{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;vertical-align:middle;gap:var(--boreal-spacing-3xs);padding:var(--boreal-spacing-3xs) var(--boreal-spacing-3xs) var(--boreal-spacing-3xs) var(--boreal-spacing-2xs);border-radius:var(--boreal-radius-m);cursor:default;max-width:100%;min-width:0;font-family:var(--boreal-typography-font-family-primary);font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-xs)}.bds-tag:hover:not(.bds-tag--selected):not(.bds-tag--disabled){-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-tag:focus:not(.bds-tag--selected){outline:none;-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-tag--selected{outline:none;-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset}.bds-tag__icon{font-size:var(--boreal-typography-font-size-md);max-height:var(--boreal-spacing-m)}.bds-tag__icon:empty{display:none}.bds-tag__text{margin-right:var(--boreal-spacing-2xs);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bds-tag__close-button{display:-ms-flexbox;display:flex;padding:var(--boreal-spacing-3xs);width:var(--boreal-spacing-s);height:var(--boreal-spacing-s);-webkit-box-sizing:content-box;box-sizing:content-box;border-radius:var(--boreal-radius-full);border:0px solid transparent;background-color:transparent;opacity:0.5;cursor:pointer}.bds-tag__close-button:hover{-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);background-color:var(--boreal-ui-inverse);opacity:0.5}.bds-tag__close-button:focus{background-color:var(--boreal-ui-inverse);opacity:0.5;outline:none;-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset}.bds-tag__close-button:active{background-color:var(--boreal-ui-inverse);opacity:0.5;-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset, 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset, 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset}.bds-tag--disabled{cursor:not-allowed}.bds-tag--disabled .bds-tag__close-button{pointer-events:none}.bds-tag--gray{background-color:var(--boreal-extended-onyx-light);color:var(--boreal-extended-onyx-dark)}.bds-tag--gray .bds-tag__close-button{color:var(--boreal-extended-onyx-dark)}.bds-tag--gray.bds-tag--disabled{color:var(--boreal-extended-onyx-base);background-color:var(--boreal-extended-onyx-lighter)}.bds-tag--gray.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-onyx-base)}.bds-tag--purple{background-color:var(--boreal-extended-purple-light);color:var(--boreal-extended-purple-dark)}.bds-tag--purple .bds-tag__close-button{color:var(--boreal-extended-purple-dark)}.bds-tag--purple.bds-tag--disabled{color:var(--boreal-extended-purple-light);background-color:var(--boreal-extended-purple-lighter)}.bds-tag--purple.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-purple-light)}.bds-tag--rose{background-color:var(--boreal-extended-rose-light);color:var(--boreal-extended-rose-dark)}.bds-tag--rose .bds-tag__close-button{color:var(--boreal-extended-rose-dark)}.bds-tag--rose.bds-tag--disabled{color:var(--boreal-extended-rose-light);background-color:var(--boreal-extended-rose-lighter)}.bds-tag--rose.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-rose-light)}.bds-tag--lime{background-color:var(--boreal-extended-lime-light);color:var(--boreal-extended-lime-dark)}.bds-tag--lime .bds-tag__close-button{color:var(--boreal-extended-lime-dark)}.bds-tag--lime.bds-tag--disabled{color:var(--boreal-extended-lime-light);background-color:var(--boreal-extended-lime-lighter)}.bds-tag--lime.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-lime-light)}.bds-tag--cobalt{background-color:var(--boreal-extended-cobalt-light);color:var(--boreal-extended-cobalt-dark)}.bds-tag--cobalt .bds-tag__close-button{color:var(--boreal-extended-cobalt-dark)}.bds-tag--cobalt.bds-tag--disabled{color:var(--boreal-extended-cobalt-light);background-color:var(--boreal-extended-cobalt-lighter)}.bds-tag--cobalt.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-cobalt-light)}.bds-tag--orange{background-color:var(--boreal-extended-orange-light);color:var(--boreal-extended-orange-dark)}.bds-tag--orange .bds-tag__close-button{color:var(--boreal-extended-orange-dark)}.bds-tag--orange.bds-tag--disabled{color:var(--boreal-extended-orange-light);background-color:var(--boreal-extended-orange-lighter)}.bds-tag--orange.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-orange-light)}.bds-tag--teal{background-color:var(--boreal-extended-teal-light);color:var(--boreal-extended-teal-dark)}.bds-tag--teal .bds-tag__close-button{color:var(--boreal-extended-teal-dark)}.bds-tag--teal.bds-tag--disabled{color:var(--boreal-extended-teal-light);background-color:var(--boreal-extended-teal-lighter)}.bds-tag--teal.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-teal-light)}.bds-tag--cyan{background-color:var(--boreal-extended-cyan-light);color:var(--boreal-extended-cyan-dark)}.bds-tag--cyan .bds-tag__close-button{color:var(--boreal-extended-cyan-dark)}.bds-tag--cyan.bds-tag--disabled{color:var(--boreal-extended-cyan-light);background-color:var(--boreal-extended-cyan-lighter)}.bds-tag--cyan.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-cyan-light)}'}},[260,"bds-tag",{multiselect:[4],selected:[4],closeButtonLabel:[1,"close-button-label"],color:[1],readonly:[4],disabled:[4],internalSelected:[32]},void 0,{color:[{checkPropValues:0}],selected:[{syncSelectedFromProp:0}]}]),c=n,g=function(){"undefined"!=typeof customElements&&["bds-tag"].forEach((e=>{"bds-tag"===e&&(customElements.get(l(e))||customElements.define(l(e),n))}))};export{c as BdsTag,g as defineCustomElement}
1
+ import{p as e,a,c as o,h as t,F as r,H as d,t as s}from"./index.js";import{c as l}from"./p-DhSchGPI.js";import{v as b}from"./p-kGnB15Lz.js";const i={GRAY:"gray",CYAN:"cyan",TEAL:"teal",LIME:"lime",ORANGE:"orange",COBALT:"cobalt",ROSE:"rose",PURPLE:"purple"},n=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.bdsClose=o(this,"bdsClose"),this.bdsSelect=o(this,"bdsSelect"),this._id=l("bds-tag"),this.internalSelected=!1,this.multiselect=!1,this.selected=!1,this.closeButtonLabel="Close tag",this.color=i.GRAY,this.readonly=!1,this.disabled=!1,this.handleClose=e=>{this.disabled||(void 0!==e&&(e.preventDefault(),e.stopPropagation()),this.bdsClose.emit({id:this._id,selected:this.internalSelected,el:this.el}))},this.handleKeyDown=e=>{this.disabled||(this.readonly||!["Delete","Backspace"].includes(e.key)?[" ","Enter"].includes(e.key)&&e.target===this.el&&(e.preventDefault(),this.handleSelection()):this.handleClose(e))},this.handleSelection=()=>{this.disabled||this.multiselect&&(this.internalSelected=!this.internalSelected,this.bdsSelect.emit({id:this._id,selected:this.internalSelected,el:this.el}))}}componentWillLoad(){this.syncSelectedFromProp(this.selected),this.checkPropValues(),this.validateMultiselectRole()}checkPropValues(){b(Object.values(i),i.GRAY,this.el,"color")}syncSelectedFromProp(e){this.internalSelected=e}validateMultiselectRole(){this.multiselect&&null===this.el.closest('[role="listbox"], [role="group"], bds-tag-group')&&console.warn('[BorealDS Tag] Missing required ARIA parent. Expected role="listbox", role="group", or <bds-tag-group> when multiselect=true.')}getClasses(){return{"bds-tag":!0,["bds-tag--"+this.color]:!0,"bds-tag--disabled":this.disabled,"bds-tag--selected":this.internalSelected}}renderTag(){return t(r,null,t("span",{"aria-hidden":"true",class:"bds-tag__icon"},t("slot",{name:"icon"})),t("span",{class:"bds-tag__text"},t("slot",null)))}renderCloseIcon(){return t("button",{class:"bds-tag__close-button","aria-label":this.closeButtonLabel,onClick:e=>this.handleClose(e),disabled:this.disabled,type:"button"},t("em",{class:"bds-icon-close","aria-hidden":"true"}))}render(){const e=this.getClasses(),a=!this.readonly,o=this.multiselect;return t(d,{key:"bd62a05fccbfa4aed3b7f72b9edf800c3ab05362",class:e,role:o?"option":void 0,tabIndex:o&&!this.disabled?0:-1,"aria-disabled":this.disabled?"true":void 0,"aria-selected":o?""+this.internalSelected:void 0,onKeyDown:this.disabled?void 0:e=>this.handleKeyDown(e),onClick:this.disabled?void 0:this.handleSelection,id:this._id},this.renderTag(),a&&this.renderCloseIcon())}get el(){return this}static get watchers(){return{color:[{checkPropValues:0}],selected:[{syncSelectedFromProp:0}]}}static get style(){return'@charset "UTF-8";.bds-tag{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;vertical-align:middle;gap:var(--boreal-spacing-3xs);padding:var(--boreal-spacing-3xs) var(--boreal-spacing-3xs) var(--boreal-spacing-3xs) var(--boreal-spacing-2xs);border-radius:var(--boreal-radius-m);cursor:default;max-width:100%;min-width:0;font-family:var(--boreal-typography-font-family-primary);font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-xs)}.bds-tag:hover:not(.bds-tag--selected):not(.bds-tag--disabled){-webkit-box-shadow:var(--boreal-depth-box-shadow-xs);box-shadow:var(--boreal-depth-box-shadow-xs)}.bds-tag:focus:not(.bds-tag--selected){outline:none;-webkit-box-shadow:var(--boreal-depth-box-shadow-focus);box-shadow:var(--boreal-depth-box-shadow-focus)}.bds-tag--selected{outline:none;-webkit-box-shadow:var(--boreal-depth-box-shadow-active);box-shadow:var(--boreal-depth-box-shadow-active)}.bds-tag__icon{font-size:var(--boreal-typography-font-size-md);max-height:var(--boreal-spacing-m)}.bds-tag__icon:empty{display:none}.bds-tag__text{margin-right:var(--boreal-spacing-2xs);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bds-tag__close-button{display:-ms-flexbox;display:flex;padding:var(--boreal-spacing-3xs);width:var(--boreal-spacing-s);height:var(--boreal-spacing-s);-webkit-box-sizing:content-box;box-sizing:content-box;border-radius:var(--boreal-radius-full);border:0px solid transparent;background-color:transparent;opacity:0.5;cursor:pointer}.bds-tag__close-button:hover{-webkit-box-shadow:var(--boreal-depth-box-shadow-xs);box-shadow:var(--boreal-depth-box-shadow-xs);background-color:var(--boreal-ui-inverse);opacity:0.5}.bds-tag__close-button:focus{background-color:var(--boreal-ui-inverse);opacity:0.5;outline:none;-webkit-box-shadow:var(--boreal-depth-box-shadow-active);box-shadow:var(--boreal-depth-box-shadow-active)}.bds-tag__close-button:active{background-color:var(--boreal-ui-inverse);opacity:0.5;-webkit-box-shadow:var(--boreal-depth-box-shadow-active);box-shadow:var(--boreal-depth-box-shadow-active)}.bds-tag--disabled{cursor:not-allowed}.bds-tag--disabled .bds-tag__close-button{pointer-events:none}.bds-tag--gray{background-color:var(--boreal-extended-onyx-light);color:var(--boreal-extended-onyx-dark)}.bds-tag--gray .bds-tag__close-button{color:var(--boreal-extended-onyx-dark)}.bds-tag--gray.bds-tag--disabled{color:var(--boreal-extended-onyx-base);background-color:var(--boreal-extended-onyx-lighter)}.bds-tag--gray.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-onyx-base)}.bds-tag--purple{background-color:var(--boreal-extended-purple-light);color:var(--boreal-extended-purple-dark)}.bds-tag--purple .bds-tag__close-button{color:var(--boreal-extended-purple-dark)}.bds-tag--purple.bds-tag--disabled{color:var(--boreal-extended-purple-light);background-color:var(--boreal-extended-purple-lighter)}.bds-tag--purple.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-purple-light)}.bds-tag--rose{background-color:var(--boreal-extended-rose-light);color:var(--boreal-extended-rose-dark)}.bds-tag--rose .bds-tag__close-button{color:var(--boreal-extended-rose-dark)}.bds-tag--rose.bds-tag--disabled{color:var(--boreal-extended-rose-light);background-color:var(--boreal-extended-rose-lighter)}.bds-tag--rose.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-rose-light)}.bds-tag--lime{background-color:var(--boreal-extended-lime-light);color:var(--boreal-extended-lime-dark)}.bds-tag--lime .bds-tag__close-button{color:var(--boreal-extended-lime-dark)}.bds-tag--lime.bds-tag--disabled{color:var(--boreal-extended-lime-light);background-color:var(--boreal-extended-lime-lighter)}.bds-tag--lime.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-lime-light)}.bds-tag--cobalt{background-color:var(--boreal-extended-cobalt-light);color:var(--boreal-extended-cobalt-dark)}.bds-tag--cobalt .bds-tag__close-button{color:var(--boreal-extended-cobalt-dark)}.bds-tag--cobalt.bds-tag--disabled{color:var(--boreal-extended-cobalt-light);background-color:var(--boreal-extended-cobalt-lighter)}.bds-tag--cobalt.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-cobalt-light)}.bds-tag--orange{background-color:var(--boreal-extended-orange-light);color:var(--boreal-extended-orange-dark)}.bds-tag--orange .bds-tag__close-button{color:var(--boreal-extended-orange-dark)}.bds-tag--orange.bds-tag--disabled{color:var(--boreal-extended-orange-light);background-color:var(--boreal-extended-orange-lighter)}.bds-tag--orange.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-orange-light)}.bds-tag--teal{background-color:var(--boreal-extended-teal-light);color:var(--boreal-extended-teal-dark)}.bds-tag--teal .bds-tag__close-button{color:var(--boreal-extended-teal-dark)}.bds-tag--teal.bds-tag--disabled{color:var(--boreal-extended-teal-light);background-color:var(--boreal-extended-teal-lighter)}.bds-tag--teal.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-teal-light)}.bds-tag--cyan{background-color:var(--boreal-extended-cyan-light);color:var(--boreal-extended-cyan-dark)}.bds-tag--cyan .bds-tag__close-button{color:var(--boreal-extended-cyan-dark)}.bds-tag--cyan.bds-tag--disabled{color:var(--boreal-extended-cyan-light);background-color:var(--boreal-extended-cyan-lighter)}.bds-tag--cyan.bds-tag--disabled .bds-tag__close-button{color:var(--boreal-extended-cyan-light)}'}},[260,"bds-tag",{multiselect:[4],selected:[4],closeButtonLabel:[1,"close-button-label"],color:[1],readonly:[4],disabled:[4],internalSelected:[32]},void 0,{color:[{checkPropValues:0}],selected:[{syncSelectedFromProp:0}]}]),c=n,g=function(){"undefined"!=typeof customElements&&["bds-tag"].forEach((e=>{"bds-tag"===e&&(customElements.get(s(e))||customElements.define(s(e),n))}))};export{c as BdsTag,g as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,M as t,c as s,h as i,a,t as o}from"./index.js";import{f as l,s as r,r as d}from"./p-DCwT43Kz.js";import{c as n}from"./p-DhSchGPI.js";import{v as h}from"./p-kGnB15Lz.js";import{d as b}from"./p-CGdxFth9.js";import{d as c}from"./p-DIY3CDNL.js";const f={TEXT:"text",PASSWORD:"password"},x={OUTLINE:"outline",PLAIN:"plain"},p={BLUR:"blur",CHANGE:"change",INPUT:"input",SUBMIT:"submit"},u=e(class extends(t(l)){constructor(e){super(!1),!1!==e&&this.__registerHost(),this.valueChange=s(this,"valueChange"),this.bdsInput=s(this,"bdsInput"),this.bdsChange=s(this,"bdsChange"),this.bdsFocus=s(this,"bdsFocus"),this.bdsBlur=s(this,"bdsBlur"),this.bdsClear=s(this,"bdsClear"),this.bdsValidationChange=s(this,"bdsValidationChange"),this.internals=this.attachInternals(),this.name="",this.disabled=!1,this.required=!1,this.isDisabled=!1,this.value="",this.error=!1,this.errorMessage="",this.customValidators=[],this.validationTiming=p.BLUR,this.type=f.TEXT,this.variant=x.OUTLINE,this.placeholder="",this.readOnly=!1,this.autocomplete="off",this.pattern="",this.minLength=0,this.maxLength=0,this.label="",this.sublabel="",this.icon="",this.helperText="",this.info="",this.clearable=!1,this.clearOnHover=!1,this.charCount=0,this.counter=!1,this.customWidth="",this.focused=!1,this.showPassword=!1,this.touched=!1,this.dirty=!1,this.currentCharCount=0,this.validationError=!1,this.validationMessage="",this._valueAtFocus="",this._id=n("bds-text-field"),this.invalidHandler=e=>{e.preventDefault(),this.validationError=!0,this.validationMessage=this.internals.validationMessage,this.bdsValidationChange.emit({valid:!1,validity:this.internals.validity,value:this.value,touched:this.touched,dirty:this.dirty})}}async checkValidity(){return this.internals.checkValidity()}async reportValidity(){return this.internals.reportValidity()}onDisabledChange(e){this.isDisabled=e}checkPropValues(){h(Object.values(f),f.TEXT,this.el,"type"),h(Object.values(x),x.OUTLINE,this.el,"variant"),h(Object.values(p),p.BLUR,this.el,"validationTiming")}componentWillLoad(){this.checkPropValues(),this.isDisabled=this.disabled,this.currentCharCount=this.value.length}componentDidLoad(){this.el.addEventListener("invalid",this.invalidHandler)}disconnectedCallback(){this.el.removeEventListener("invalid",this.invalidHandler)}onCustomValidatorsChange(){this.updateValidity()}onValueChange(e){r(this.internals,e),this.currentCharCount=e.length,this.updateValidity(),this.valueChange.emit(e)}formAssociatedCallback(){r(this.internals,this.value),this.updateValidity()}formResetCallback(){this.value="",this.touched=!1,this.dirty=!1,this.currentCharCount=0,this.validationError=!1,this.validationMessage="",r(this.internals,null),this.updateValidity()}formStateRestoreCallback(e,t){this.value="string"==typeof e?e:"",r(this.internals,this.value),this.updateValidity()}updateValidity(e=!1){const t=d(this.internals,[...this.validators,...this.customValidators],this.el);e&&(this.validationError=!t,this.validationMessage=t?"":this.internals.validationMessage,this.bdsValidationChange.emit({valid:t,validity:this.internals.validity,value:this.value,touched:this.touched,dirty:this.dirty}))}handleInput(e){this.value=e.target.value,this.dirty=!0,this.bdsInput.emit({value:this.value,event:e}),this.validationTiming===p.INPUT&&this.updateValidity(!0)}handleChange(e){this.bdsChange.emit({value:this.value,event:e}),this.validationTiming===p.CHANGE&&this.updateValidity(!0)}handleFocus(e){this.focused=!0,this._valueAtFocus=this.value,this.bdsFocus.emit({event:e})}handleBlur(e){this.focused=!1,this.touched=!0,this.bdsBlur.emit({event:e}),(this.validationTiming===p.BLUR||this.validationTiming===p.CHANGE&&this.value!==this._valueAtFocus)&&this.updateValidity(!0)}handleShowPassword(){this.showPassword=!this.showPassword}handleClear(){this.value="",this.dirty=!0,this.validationError=!1,this.validationMessage="",this.bdsClear.emit(),this.el.querySelector("input")?.focus()}handleMouseDown(e){this.readOnly&&e.preventDefault()}get validators(){return[{key:"valueMissing",isValid:()=>!this.required||""!==this.value,message:"This field is required. Please fill it out."},{key:"tooShort",isValid:()=>0===this.minLength||this.value.length>=this.minLength,message:`Please enter at least ${this.minLength} characters.`},{key:"patternMismatch",isValid:()=>{if(""===this.pattern||""===this.value)return!0;try{return RegExp(this.pattern).test(this.value)}catch{return!0}},message:"Please match the requested format."}]}get effectiveMaxLength(){return 0!==this.maxLength?this.maxLength:this.counter&&this.charCount>0?this.charCount:void 0}get classMap(){return{"bds-text-field":!0,"bds-text-field--error":this.error||this.validationError,"bds-text-field--disabled":this.isDisabled,"bds-text-field--focused":this.focused,"bds-text-field--readonly":this.readOnly,"bds-text-field--plain":this.variant===x.PLAIN,"bds-text-field--clear-on-hover":this.clearOnHover}}get hostStyle(){return""!==this.customWidth?{"--bds-text-field-width":this.customWidth}:void 0}get iconClear(){return this.clearable||this.clearOnHover?"bds-icon-close":""}get showPasswordIcon(){return this.showPassword?"bds-icon-sight-on":"bds-icon-sight-off"}render(){const e=this._id+"-label",t=this._id+"-helper",s=(this.clearable||this.clearOnHover)&&""!==this.value&&!this.isDisabled&&!this.readOnly,o=this.error&&""!==this.errorMessage?this.errorMessage:this.validationError&&""!==this.validationMessage?this.validationMessage:this.helperText,l=""!==o||this.counter&&this.charCount>0,r=this.isDisabled?"disabled":this.error||this.validationError?"error":"default";return i(a,{key:"96b7e057fa7f25e8f7d13b7de0fd17f12de602bb",class:this.classMap,style:this.hostStyle,tabIndex:-1,onFocus:()=>!this.readOnly&&this.el.querySelector("input")?.focus()},""!==this.label&&i("bds-typography",{key:"e827b43ea347037ff2d404229aaefdd258d2ad22",id:e,variant:"label",htmlFor:this._id,required:this.required,tooltipText:""!==this.info?this.info:void 0,state:r},this.label),i("div",{key:"f579762db25f65031917874dbb4c2347b5d9f027",class:"bds-text-field__container"},(""!==this.icon||""!==this.sublabel)&&i("span",{key:"191d2ccec9baf8b739163eea112dce9a1073f4bd",class:"bds-text-field__sublabel"},""!==this.icon&&i("em",{key:"1cc1b1b7ece610b2a18ba872c4b7035d2239731b",class:this.icon}),this.sublabel),i("slot",{key:"ba7b08573b6ae35c10649125991a2bbed15f31f3",name:"prefix"}),i("input",{key:"6391338c4f636382cf19f888dc810baaf6820c80",id:this._id,class:"bds-text-field__control","aria-labelledby":""!==this.label?e:void 0,"aria-describedby":l&&""!==o?t:void 0,"aria-invalid":this.error||this.validationError?"true":void 0,"aria-required":this.required?"true":void 0,type:this.type===f.PASSWORD&&this.showPassword?f.TEXT:this.type,value:this.value,disabled:this.isDisabled,readOnly:this.readOnly,tabIndex:this.readOnly?-1:void 0,placeholder:this.placeholder,autocomplete:this.autocomplete,pattern:""!==this.pattern?this.pattern:void 0,minLength:0!==this.minLength?this.minLength:void 0,maxLength:this.effectiveMaxLength,onMouseDown:e=>this.handleMouseDown(e),onInput:e=>this.handleInput(e),onChange:e=>this.handleChange(e),onFocus:e=>this.handleFocus(e),onBlur:e=>this.handleBlur(e)}),(s||this.type===f.PASSWORD)&&i("div",{key:"e5dc4cab3d536ef09eaeae96ca68a7d4b4e15d92",class:"bds-text-field__actions"},s&&i("button",{key:"b18d06de000c3ea465be221dcbb77ab49bb3949f",class:"bds-text-field__action bds-text-field__action--clear",type:"button","aria-label":"Clear",onClick:()=>this.handleClear()},i("em",{key:"0aa5d75c5214b7832a2a2e80a1cd2c42af5bea9a",class:this.iconClear})),this.type===f.PASSWORD&&i("button",{key:"fd97135cca8d32178461bf7109c9b6a7eec543e9",class:"bds-text-field__action bds-text-field__action--password",type:"button","aria-label":this.showPassword?"Hide password":"Show password",onClick:()=>this.handleShowPassword()},i("em",{key:"0de72e7756ad62bbe4fb5f925526071720f358db",class:this.showPasswordIcon})))),l&&i("div",{key:"9d1c0e8920511650ab6711f2f813c01491d52414",class:"bds-text-field__footer"},""!==o&&i("bds-typography",{key:"f27235a7a38f34b9a9f7bae762c3c6be12acd8b0",id:t,variant:"helper",state:r},o),this.counter&&this.charCount>0&&i("span",{key:"3aa43ea8bd6a35963f0983ec8814e0ce19ee71ce",class:"bds-text-field__char-count"},this.currentCharCount,"/",this.charCount)))}static get formAssociated(){return!0}get el(){return this}static get watchers(){return{disabled:[{onDisabledChange:0}],type:[{checkPropValues:0}],variant:[{checkPropValues:0}],validationTiming:[{checkPropValues:0}],customValidators:[{onCustomValidatorsChange:0}],value:[{onValueChange:0}]}}static get style(){return'@charset "UTF-8";.bds-text-field__container,.bds-text-field__sublabel,.bds-text-field__actions,.bds-text-field__action,.bds-text-field__footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.bds-text-field [slot=prefix],.bds-text-field__sublabel{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-xs)}.bds-text-field{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--boreal-spacing-2xs);width:var(--bds-text-field-width, 100%);font-family:var(--boreal-typography-font-family-primary);color:var(--boreal-text-default)}.bds-text-field__container{padding:var(--boreal-spacing-1xs);padding-left:0;height:var(--boreal-layout-l);border:1px solid var(--boreal-stroke-default-light);border-radius:var(--boreal-radius-xs);background-color:var(--boreal-ui-inverse);-webkit-transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease;overflow:hidden}.bds-text-field__sublabel{gap:var(--boreal-spacing-3xs);padding-left:var(--boreal-spacing-xs);white-space:nowrap}.bds-text-field__sublabel em[class^=bds-icon-],.bds-text-field__sublabel em[class*=" bds-icon-"]{width:var(--boreal-icons-m);height:var(--boreal-icons-m);font-size:var(--boreal-typography-font-size-md);line-height:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.bds-text-field [slot=prefix]{padding-left:var(--boreal-spacing-xs);overflow:hidden;white-space:nowrap;-ms-flex-negative:0;flex-shrink:0}.bds-text-field__control{min-width:0;width:100%;border:none;outline:none;background:transparent;padding:0;padding-left:var(--boreal-spacing-xs);font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-sm)}.bds-text-field__control::-webkit-input-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control::-moz-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control:-ms-input-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control::-ms-input-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control::placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control:disabled{cursor:not-allowed}.bds-text-field__actions{padding-left:var(--boreal-spacing-xs);gap:var(--boreal-spacing-3xs)}.bds-text-field__action{-ms-flex-pack:center;justify-content:center;background:none;border:none;padding:var(--boreal-spacing-3xs);cursor:pointer;color:var(--boreal-icon-default-light);line-height:1;-webkit-transition:color 0.3s ease, opacity 0.3s ease;transition:color 0.3s ease, opacity 0.3s ease}.bds-text-field__action--clear em[class^=bds-icon-],.bds-text-field__action--clear em[class*=" bds-icon-"]{width:var(--boreal-icons-s);height:var(--boreal-icons-s);font-size:var(--boreal-typography-font-size-xs);line-height:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.bds-text-field__action--password em[class^=bds-icon-],.bds-text-field__action--password em[class*=" bds-icon-"]{width:var(--boreal-icons-l);height:var(--boreal-icons-l);font-size:var(--boreal-typography-font-size-lg);line-height:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.bds-text-field__action:hover{color:var(--boreal-icon-default-dark)}.bds-text-field__action:focus-visible{-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-text-field__footer{-ms-flex-pack:justify;justify-content:space-between}.bds-text-field__char-count{-ms-flex-negative:0;flex-shrink:0;font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-xs);color:var(--boreal-text-default-light)}.bds-text-field--focused .bds-text-field__container{border-color:var(--boreal-stroke-focus);-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-text-field--error .bds-text-field__container{border-color:var(--boreal-stroke-danger-base)}.bds-text-field--disabled{cursor:not-allowed}.bds-text-field--disabled .bds-text-field__container{background-color:var(--boreal-ui-default-lighter);border-color:var(--boreal-stroke-default-light)}.bds-text-field--disabled .bds-text-field__sublabel{color:var(--boreal-text-disabled)}.bds-text-field--disabled .bds-text-field__sublabel em[class^=bds-icon-],.bds-text-field--disabled .bds-text-field__sublabel em[class*=" bds-icon-"]{color:var(--boreal-icon-disabled)}.bds-text-field--disabled .bds-text-field__control{color:var(--boreal-icon-disabled)}.bds-text-field--readonly .bds-text-field__container{background-color:transparent;border:none}.bds-text-field--readonly .bds-text-field__control::-webkit-input-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control::-moz-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control:-ms-input-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control::-ms-input-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control::placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--plain .bds-text-field__container{border-color:transparent}.bds-text-field--plain.bds-text-field--focused .bds-text-field__container{border-color:var(--boreal-stroke-focus)}.bds-text-field--clear-on-hover .bds-text-field__action--clear{opacity:0;pointer-events:none}.bds-text-field--clear-on-hover:hover .bds-text-field__action--clear{opacity:1;pointer-events:auto}'}},[836,"bds-text-field",{name:[513],disabled:[516],required:[516],value:[1537],error:[516],errorMessage:[1,"error-message"],customValidators:[16],validationTiming:[1,"validation-timing"],type:[513],variant:[513],placeholder:[1],readOnly:[4,"readonly"],autocomplete:[1],pattern:[1],minLength:[2,"min-length"],maxLength:[2,"max-length"],label:[1],sublabel:[1],icon:[1],helperText:[1,"helper-text"],info:[1],clearable:[4],clearOnHover:[4,"clear-on-hover"],charCount:[2,"char-count"],counter:[4],customWidth:[1,"custom-width"],isDisabled:[32],focused:[32],showPassword:[32],touched:[32],dirty:[32],currentCharCount:[32],validationError:[32],validationMessage:[32],checkValidity:[64],reportValidity:[64]},void 0,{disabled:[{onDisabledChange:0}],type:[{checkPropValues:0}],variant:[{checkPropValues:0}],validationTiming:[{checkPropValues:0}],customValidators:[{onCustomValidatorsChange:0}],value:[{onValueChange:0}]}]),g=u,v=function(){"undefined"!=typeof customElements&&["bds-text-field","bds-tooltip","bds-typography"].forEach((e=>{switch(e){case"bds-text-field":customElements.get(o(e))||customElements.define(o(e),u);break;case"bds-tooltip":customElements.get(o(e))||b();break;case"bds-typography":customElements.get(o(e))||c()}}))};export{g as BdsTextField,v as defineCustomElement}
1
+ import{p as e,M as t,c as s,h as i,H as a,t as o}from"./index.js";import{f as l}from"./p-nxYzL9uu.js";import{s as r,r as d}from"./p-DfaYciGa.js";import{c as n}from"./p-DhSchGPI.js";import{v as h}from"./p-kGnB15Lz.js";import{d as c}from"./p-B6e9eIHB.js";import{d as b}from"./p-CJBdGD_4.js";const f={TEXT:"text",PASSWORD:"password"},x={OUTLINE:"outline",PLAIN:"plain"},p={BLUR:"blur",CHANGE:"change",INPUT:"input",SUBMIT:"submit"},u=e(class extends(t(l)){constructor(e){super(!1),!1!==e&&this.__registerHost(),this.valueChange=s(this,"valueChange"),this.bdsInput=s(this,"bdsInput"),this.bdsChange=s(this,"bdsChange"),this.bdsFocus=s(this,"bdsFocus"),this.bdsBlur=s(this,"bdsBlur"),this.bdsClear=s(this,"bdsClear"),this.bdsValidationChange=s(this,"bdsValidationChange"),this.internals=this.attachInternals(),this.name="",this.disabled=!1,this.required=!1,this.isDisabled=!1,this.value="",this.error=!1,this.errorMessage="",this.customValidators=[],this.validationTiming=p.BLUR,this.type=f.TEXT,this.variant=x.OUTLINE,this.placeholder="",this.readOnly=!1,this.autocomplete="off",this.pattern="",this.minLength=0,this.maxLength=0,this.label="",this.sublabel="",this.icon="",this.helperText="",this.info="",this.clearable=!1,this.clearOnHover=!1,this.charCount=0,this.counter=!1,this.customWidth="",this.selectable=!1,this.iconRight="",this.focused=!1,this.showPassword=!1,this.touched=!1,this.dirty=!1,this.currentCharCount=0,this.validationError=!1,this.validationMessage="",this._valueAtFocus="",this._id=n("bds-text-field"),this.invalidHandler=e=>{e.preventDefault(),this.validationError=!0,this.validationMessage=this.internals.validationMessage,this.bdsValidationChange.emit({valid:!1,validity:this.internals.validity,value:this.value,touched:this.touched,dirty:this.dirty})}}async checkValidity(){return this.internals.checkValidity()}async reportValidity(){return this.internals.reportValidity()}onDisabledChange(e){this.isDisabled=e}checkPropValues(){h(Object.values(f),f.TEXT,this.el,"type"),h(Object.values(x),x.OUTLINE,this.el,"variant"),h(Object.values(p),p.BLUR,this.el,"validationTiming")}componentWillLoad(){this.checkPropValues(),this.isDisabled=this.disabled,this.currentCharCount=this.value.length}componentDidLoad(){this.el.addEventListener("invalid",this.invalidHandler)}disconnectedCallback(){this.el.removeEventListener("invalid",this.invalidHandler)}onCustomValidatorsChange(){this.updateValidity()}onValueChange(e){r(this.internals,e),this.currentCharCount=e.length,this.updateValidity(this.touched||this.validationError),this.valueChange.emit(e)}formAssociatedCallback(){r(this.internals,this.value),this.updateValidity()}formResetCallback(){this.value="",this.touched=!1,this.dirty=!1,this.currentCharCount=0,this.validationError=!1,this.validationMessage="",r(this.internals,null),this.updateValidity()}formStateRestoreCallback(e,t){this.value="string"==typeof e?e:"",r(this.internals,this.value),this.updateValidity()}updateValidity(e=!1){const t=d(this.internals,[...this.validators,...this.customValidators],this.el);e&&(this.validationError=!t,this.validationMessage=t?"":this.internals.validationMessage,this.bdsValidationChange.emit({valid:t,validity:this.internals.validity,value:this.value,touched:this.touched,dirty:this.dirty}))}handleInput(e){this.value=e.target.value,this.dirty=!0,this.bdsInput.emit({value:this.value,event:e}),this.validationTiming===p.INPUT&&this.updateValidity(!0)}handleChange(e){this.bdsChange.emit({value:this.value,event:e}),this.validationTiming===p.CHANGE&&this.updateValidity(!0)}handleFocus(e){this.focused=!0,this._valueAtFocus=this.value,this.bdsFocus.emit({event:e})}handleBlur(e){this.focused=!1,this.touched=!0,this.bdsBlur.emit({event:e}),(this.validationTiming===p.BLUR||this.validationTiming===p.CHANGE&&this.value!==this._valueAtFocus)&&this.updateValidity(!0)}handleShowPassword(){this.showPassword=!this.showPassword}handleClear(){this.value="",this.dirty=!0,this.validationError=!1,this.validationMessage="",this.bdsClear.emit(),this.el.querySelector("input")?.focus()}handleMouseDown(e){this.readOnly&&e.preventDefault()}get validators(){return[{key:"valueMissing",isValid:()=>!this.required||""!==this.value,message:"This field is required. Please fill it out."},{key:"tooShort",isValid:()=>0===this.minLength||this.value.length>=this.minLength,message:`Please enter at least ${this.minLength} characters.`},{key:"patternMismatch",isValid:()=>{if(""===this.pattern||""===this.value)return!0;try{return RegExp(this.pattern).test(this.value)}catch{return!0}},message:"Please match the requested format."}]}get effectiveMaxLength(){return 0!==this.maxLength?this.maxLength:this.counter&&this.charCount>0?this.charCount:void 0}get classMap(){return{"bds-text-field":!0,"bds-text-field--error":this.error||this.validationError,"bds-text-field--disabled":this.isDisabled,"bds-text-field--focused":this.focused,"bds-text-field--readonly":this.readOnly,"bds-text-field--plain":this.variant===x.PLAIN,"bds-text-field--clear-on-hover":this.clearOnHover,"bds-text-field--selectable":this.selectable}}get hostStyle(){return""!==this.customWidth?{"--bds-text-field-width":this.customWidth}:void 0}get iconClear(){return this.clearable||this.clearOnHover?"bds-icon-close":""}get showPasswordIcon(){return this.showPassword?"bds-icon-sight-on":"bds-icon-sight-off"}render(){const e=this._id+"-label",t=this._id+"-helper",s=(this.clearable||this.clearOnHover)&&""!==this.value&&!this.isDisabled&&!this.readOnly,o=this.error&&""!==this.errorMessage?this.errorMessage:this.validationError&&""!==this.validationMessage?this.validationMessage:this.helperText,l=""!==o||this.counter&&this.charCount>0,r=this.isDisabled?"disabled":this.error||this.validationError?"error":"default";return i(a,{key:"6481e9c4eac94aee0b9a24fdaae8a00d3ae100b3",class:this.classMap,style:this.hostStyle,tabIndex:-1,onFocus:()=>!this.readOnly&&this.el.querySelector("input")?.focus()},""!==this.label&&i("bds-typography",{key:"f21f1a20b452876a3d3e91276318142e517d4099",id:e,variant:"label",htmlFor:this._id,required:this.required,tooltipText:""!==this.info?this.info:void 0,state:r},this.label),i("div",{key:"08c4e6498a31ee97f8ab1e3b6f2774bd30b933df",class:"bds-text-field__container"},(""!==this.icon||""!==this.sublabel)&&i("span",{key:"aad475c4e9b6870ea2dae597a14aa9a42a3eb837",class:"bds-text-field__sublabel"},""!==this.icon&&i("em",{key:"f6cdaddf127e35143fcc3749395438e2082eb7c1",class:this.icon}),this.sublabel),i("slot",{key:"29fae2b0cf57634c0fa64eacc450a4989d4bbbf0",name:"prefix"}),i("slot",{key:"446a355e5d028e0a8ed0401c2f6452ab32a51959",name:"tags"}),i("input",{key:"d4dbc554a0121ac773d965d39277291562924e3f",id:this._id,class:"bds-text-field__control","aria-labelledby":""!==this.label?e:void 0,"aria-describedby":l&&""!==o?t:void 0,"aria-invalid":this.error||this.validationError?"true":void 0,"aria-required":this.required?"true":void 0,type:this.type===f.PASSWORD&&this.showPassword?f.TEXT:this.type,value:this.value,disabled:this.isDisabled,readOnly:this.readOnly||this.selectable,tabIndex:this.readOnly?-1:void 0,placeholder:this.placeholder,autocomplete:this.autocomplete,pattern:""!==this.pattern?this.pattern:void 0,minLength:0!==this.minLength?this.minLength:void 0,maxLength:this.effectiveMaxLength,onMouseDown:e=>this.handleMouseDown(e),onInput:e=>this.handleInput(e),onChange:e=>this.handleChange(e),onFocus:e=>this.handleFocus(e),onBlur:e=>this.handleBlur(e)}),(s||this.type===f.PASSWORD||""!==this.iconRight)&&i("div",{key:"47964ef2af3f328434fee12cbea2db2976c12d13",class:"bds-text-field__actions"},s&&i("button",{key:"f5265e5b44d1025697b4bb8237d4c6fccf5e1c2a",class:"bds-text-field__action bds-text-field__action--clear",type:"button","aria-label":"Clear",onClick:()=>this.handleClear()},i("em",{key:"bddaa1e6a9f347fea502e9d59eef0e008329b76b",class:this.iconClear})),this.type===f.PASSWORD&&i("button",{key:"deb294a70355419c49748f7821db56c83e811115",class:"bds-text-field__action bds-text-field__action--password",type:"button","aria-label":this.showPassword?"Hide password":"Show password",onClick:()=>this.handleShowPassword()},i("em",{key:"29945864601c1461054da11465ac0695a9c4432e",class:this.showPasswordIcon})),""!==this.iconRight&&i("span",{key:"a69939fe890b5c05a7752bbdba6cff9c159ea08c",class:"bds-text-field__action bds-text-field__action--icon-right","aria-hidden":"true"},i("i",{key:"db51d8c6dc8a3d74f26190ea8859a3fb19fad879",class:this.iconRight})))),l&&i("div",{key:"0052fb8c0e466d74afc7e30d55ae8016f48fe20b",class:"bds-text-field__footer"},""!==o&&i("bds-typography",{key:"aa7528b125145b7b36582dd1607cc80bf85948e4",id:t,variant:"helper",state:r},o),this.counter&&this.charCount>0&&i("span",{key:"5274eea422b00ec03da9f0b3ff90d055336b2727",class:"bds-text-field__char-count"},this.currentCharCount,"/",this.charCount)))}static get formAssociated(){return!0}get el(){return this}static get watchers(){return{disabled:[{onDisabledChange:0}],type:[{checkPropValues:0}],variant:[{checkPropValues:0}],validationTiming:[{checkPropValues:0}],customValidators:[{onCustomValidatorsChange:0}],value:[{onValueChange:0}]}}static get style(){return'@charset "UTF-8";.bds-text-field__container,.bds-text-field__sublabel,.bds-text-field__actions,.bds-text-field__action,.bds-text-field__footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.bds-text-field [slot=prefix],.bds-text-field__sublabel{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-xs)}.bds-text-field{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--boreal-spacing-2xs);width:var(--bds-text-field-width, 100%);font-family:var(--boreal-typography-font-family-primary);color:var(--boreal-text-default)}.bds-text-field__container{padding:var(--boreal-spacing-1xs);padding-left:0;height:var(--boreal-layout-l);border:1px solid var(--boreal-stroke-default-light);border-radius:var(--boreal-radius-xs);background-color:var(--boreal-ui-inverse);-webkit-transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease;overflow:hidden}.bds-text-field__sublabel{gap:var(--boreal-spacing-3xs);padding-left:var(--boreal-spacing-xs);white-space:nowrap}.bds-text-field__sublabel em[class^=bds-icon-],.bds-text-field__sublabel em[class*=" bds-icon-"]{width:var(--boreal-icons-m);height:var(--boreal-icons-m);font-size:var(--boreal-typography-font-size-md);line-height:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.bds-text-field [slot=prefix]{padding-left:var(--boreal-spacing-xs);overflow:hidden;white-space:nowrap;-ms-flex-negative:0;flex-shrink:0}.bds-text-field__control{min-width:0;width:100%;border:none;outline:none;background:transparent;padding:0;padding-left:var(--boreal-spacing-xs);font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-sm)}.bds-text-field__control::-webkit-input-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control::-moz-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control:-ms-input-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control::-ms-input-placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control::placeholder{color:var(--boreal-text-default-light)}.bds-text-field__control:disabled{cursor:not-allowed}.bds-text-field__control[aria-expanded=true]~.bds-text-field__actions .bds-text-field__action--icon-right{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bds-text-field__actions{padding-left:var(--boreal-spacing-xs);gap:var(--boreal-spacing-3xs)}.bds-text-field__action{-ms-flex-pack:center;justify-content:center;background:none;border:none;padding:var(--boreal-spacing-3xs);cursor:pointer;color:var(--boreal-icon-default-light);line-height:1;-webkit-transition:color 0.3s ease, opacity 0.3s ease, -webkit-transform 0.3s ease-in-out;transition:color 0.3s ease, opacity 0.3s ease, -webkit-transform 0.3s ease-in-out;transition:color 0.3s ease, opacity 0.3s ease, transform 0.3s ease-in-out;transition:color 0.3s ease, opacity 0.3s ease, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out}.bds-text-field__action--clear em[class^=bds-icon-],.bds-text-field__action--clear em[class*=" bds-icon-"]{width:var(--boreal-icons-s);height:var(--boreal-icons-s);font-size:var(--boreal-typography-font-size-xs);line-height:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.bds-text-field__action--password em[class^=bds-icon-],.bds-text-field__action--password em[class*=" bds-icon-"]{width:var(--boreal-icons-l);height:var(--boreal-icons-l);font-size:var(--boreal-typography-font-size-lg);line-height:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.bds-text-field__action:hover{color:var(--boreal-icon-default-dark)}.bds-text-field__action:focus-visible{-webkit-box-shadow:var(--boreal-depth-box-shadow-focus);box-shadow:var(--boreal-depth-box-shadow-focus)}.bds-text-field__footer{-ms-flex-pack:justify;justify-content:space-between}.bds-text-field__char-count{-ms-flex-negative:0;flex-shrink:0;font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-xs);color:var(--boreal-text-default-light)}.bds-text-field--focused .bds-text-field__container{border-color:var(--boreal-stroke-focus);-webkit-box-shadow:var(--boreal-depth-box-shadow-focus);box-shadow:var(--boreal-depth-box-shadow-focus)}.bds-text-field--error .bds-text-field__container{border-color:var(--boreal-stroke-danger-base)}.bds-text-field--disabled{cursor:not-allowed}.bds-text-field--disabled .bds-text-field__container{background-color:var(--boreal-ui-default-lighter);border-color:var(--boreal-stroke-default-light)}.bds-text-field--disabled .bds-text-field__sublabel{color:var(--boreal-text-disabled)}.bds-text-field--disabled .bds-text-field__sublabel em[class^=bds-icon-],.bds-text-field--disabled .bds-text-field__sublabel em[class*=" bds-icon-"]{color:var(--boreal-icon-disabled)}.bds-text-field--disabled .bds-text-field__control{color:var(--boreal-icon-disabled)}.bds-text-field--selectable .bds-text-field__container input{cursor:pointer;pointer-events:auto}.bds-text-field--readonly .bds-text-field__container{background-color:transparent;border:none}.bds-text-field--readonly .bds-text-field__control::-webkit-input-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control::-moz-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control:-ms-input-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control::-ms-input-placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--readonly .bds-text-field__control::placeholder{color:var(--boreal-text-default-darker)}.bds-text-field--plain .bds-text-field__container{border-color:transparent}.bds-text-field--plain.bds-text-field--focused .bds-text-field__container{border-color:var(--boreal-stroke-focus)}.bds-text-field--clear-on-hover .bds-text-field__action--clear{opacity:0;pointer-events:none}.bds-text-field--clear-on-hover:hover .bds-text-field__action--clear{opacity:1;pointer-events:auto}'}},[836,"bds-text-field",{name:[513],disabled:[516],required:[516],value:[1537],error:[516],errorMessage:[1,"error-message"],customValidators:[16],validationTiming:[1,"validation-timing"],type:[513],variant:[513],placeholder:[1],readOnly:[4,"readonly"],autocomplete:[1],pattern:[1],minLength:[2,"min-length"],maxLength:[2,"max-length"],label:[1],sublabel:[1],icon:[1],helperText:[1,"helper-text"],info:[1],clearable:[4],clearOnHover:[4,"clear-on-hover"],charCount:[2,"char-count"],counter:[4],customWidth:[1,"custom-width"],selectable:[4],iconRight:[1,"icon-right"],isDisabled:[32],focused:[32],showPassword:[32],touched:[32],dirty:[32],currentCharCount:[32],validationError:[32],validationMessage:[32],checkValidity:[64],reportValidity:[64]},void 0,{disabled:[{onDisabledChange:0}],type:[{checkPropValues:0}],variant:[{checkPropValues:0}],validationTiming:[{checkPropValues:0}],customValidators:[{onCustomValidatorsChange:0}],value:[{onValueChange:0}]}]),g=u,v=function(){"undefined"!=typeof customElements&&["bds-text-field","bds-tooltip","bds-typography"].forEach((e=>{switch(e){case"bds-text-field":customElements.get(o(e))||customElements.define(o(e),u);break;case"bds-tooltip":customElements.get(o(e))||c();break;case"bds-typography":customElements.get(o(e))||b()}}))};export{g as BdsTextField,v as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,M as t,c as s,h as i,a as o,t as a}from"./index.js";import{f as r,s as l}from"./p-DCwT43Kz.js";import{a as d}from"./p-CaHOghy5.js";import{c as n}from"./p-DhSchGPI.js";import{d as h}from"./p-CGdxFth9.js";import{d as b}from"./p-DIY3CDNL.js";const g=e(class extends(t(r)){constructor(e){super(!1),!1!==e&&this.__registerHost(),this.valueChange=s(this,"valueChange"),this.bdsChange=s(this,"bdsChange"),this.internals=this.attachInternals(),this.inheritedAttributes={},this.disabled=!1,this.required=!1,this.info="",this.error=!1,this.errorMessage="",this.checked=!1,this.placement="left",this.label="",this.helperText="",this.value="on",this._id=n("bds-toggle"),this.isDisabled=!1,this.validationError=!1,this.validationMessage="",this.isChecked=!1,this.handleClick=()=>this.toggle(),this.handleKeyDown=e=>{" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this.toggle())},this.handleInvalid=e=>{e.preventDefault(),this.validate()}}componentWillLoad(){this.isChecked=this.checked||!1,this.isDisabled=this.disabled||!1,this.inheritedAttributes={...d(this.el)},this.syncFormValue()}onCheckedChange(e){this.isChecked=e,this.syncFormValue()}onDisabledChange(e){this.isDisabled=e}formAssociatedCallback(){this.syncFormValue()}formDisabledCallback(e){this.isDisabled=e}formResetCallback(){this.isChecked=!1,this.internals.setValidity({}),l(this.internals,null)}formStateRestoreCallback(e,t){this.isChecked=e===this.value,this.internals.setValidity({}),this.syncFormValue()}syncFormValue(){l(this.internals,this.isChecked?this.value:null)}validate(){if(this.isDisabled||!this.required||this.isChecked)this.validationError=!1,this.validationMessage="",this.internals.setValidity({});else{const e=this.el.querySelector("input");this.validationError=!0,this.validationMessage="This field is required",this.internals.setValidity({valueMissing:!0},this.validationMessage,e??this.el)}}toggle(){this.isDisabled||(this.isChecked=!this.isChecked,this.syncFormValue(),this.validate(),this.valueChange.emit(this.isChecked),this.bdsChange.emit({checked:this.isChecked,value:this.value}))}get containerClasses(){return{"bds-toggle__container":!0,"bds-toggle__container--inverse":"right"===this.placement,"bds-toggle__container--checked":this.isChecked,"bds-toggle__container--disabled":this.isDisabled}}get canShowLabel(){return void 0!==this.label&&""!==this.label.trim()&&null!=this.label}render(){const e="bds-toggle",t=this.isDisabled?"disabled":this.error||this.validationError?"error":"default",s=this.error&&""!==this.errorMessage?this.errorMessage:this.validationError&&""!==this.validationMessage?this.validationMessage:this.helperText;return i(o,{key:"8aa5ec26708ce8eb834020353e2e01e882cefad6",...this.inheritedAttributes,onClick:this.handleClick,onKeyDown:this.handleKeyDown,class:e},i("div",{key:"a62ae102ba2167be5e03758c5bfc6197e8f3b73c",part:"container",class:this.containerClasses},this.canShowLabel&&i("bds-typography",{key:"c6129d113b083f9db5bad181f5a8cf1ae161b593",variant:"label",class:e+"__label",htmlFor:this._id,required:this.required,tooltipText:this.info},this.label),i("label",{key:"570a0637d106b24823d39945e1b7a68a4cec4f36",class:e+"__switch",htmlFor:this._id,onClick:e=>e.preventDefault()},i("input",{key:"197a94215e42e7a8a9d5a5652ad1163b501799ab",class:e+"__input","aria-invalid":this.error||this.validationError?"true":void 0,"aria-label":this.label||null,id:this._id,type:"checkbox",name:this.name,required:this.required,disabled:this.isDisabled,checked:this.isChecked,onInvalid:this.handleInvalid}),i("span",{key:"09ac81f91f9dc92c4e4cac593db4be4697243ce0",class:`${e}__slider ${e}__slider--round`}))),""!==s&&i("bds-typography",{key:"4a35755ec9e280dfedb839826683f1272c76223d",class:e+"__helper-text",variant:"helper",state:t,onClick:e=>e.stopPropagation()},s))}static get formAssociated(){return!0}get el(){return this}static get watchers(){return{checked:[{onCheckedChange:0}],disabled:[{onDisabledChange:0}]}}static get style(){return'@charset "UTF-8";.bds-toggle{font-family:var(--boreal-typography-font-family-primary);display:inline-block}.bds-toggle__container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-2xs);outline:none;width:-webkit-max-content;width:-moz-max-content;width:max-content}.bds-toggle__container:focus{outline:none}.bds-toggle__container--inverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.bds-toggle:active,.bds-toggle:focus-visible{outline:none}.bds-toggle:active .bds-toggle__input:not([disabled])+.bds-toggle__slider,.bds-toggle:focus-visible .bds-toggle__input:not([disabled])+.bds-toggle__slider{-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-toggle .bds-toggle__input:active:not([disabled])+.bds-toggle__slider,.bds-toggle .bds-toggle__input:focus-visible:not([disabled])+.bds-toggle__slider{-webkit-box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus);box-shadow:0 0 0 1px var(--boreal-ui-inverse), 0 0 0 3px var(--boreal-stroke-focus)}.bds-toggle:hover:not(:active):not([checked]):not([disabled]) .bds-toggle__slider,.bds-toggle:hover:not(:active):focus-within:not([checked]) .bds-toggle__slider{-webkit-box-shadow:0 1px 2px 0 var(--boreal-stroke-default-light);box-shadow:0 1px 2px 0 var(--boreal-stroke-default-light)}.bds-toggle__switch{position:relative;display:inline-block;width:var(--boreal-spacing-3xl);height:var(--boreal-spacing-l)}.bds-toggle__input{opacity:0;width:0;height:0}.bds-toggle__input:not(:checked)+.bds-toggle__slider{border:1px solid var(--boreal-stroke-default-light)}.bds-toggle__input:checked+.bds-toggle__slider{background-color:var(--boreal-ui-primary-base)}.bds-toggle__input:checked+.bds-toggle__slider::before{-webkit-transform:translateX(var(--boreal-spacing-l));-ms-transform:translateX(var(--boreal-spacing-l));transform:translateX(var(--boreal-spacing-l))}.bds-toggle__input:disabled+.bds-toggle__slider{background-color:var(--boreal-ui-disabled);cursor:default}.bds-toggle__input:disabled+.bds-toggle__slider::before{background-color:var(--boreal-icon-default-light)}.bds-toggle__input:disabled:checked+.bds-toggle__slider{background-color:var(--boreal-ui-primary-light)}.bds-toggle__input:disabled:checked+.bds-toggle__slider::before{background-color:var(--boreal-icon-inverse)}.bds-toggle__slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--boreal-ui-base-light);-webkit-transition:all 0.4s, border-color 0s;transition:all 0.4s, border-color 0s}.bds-toggle__slider::before{position:absolute;content:"";height:var(--boreal-typography-font-size-md);width:var(--boreal-typography-font-size-md);left:var(--boreal-spacing-2xs);background-color:var(--boreal-text-inverse);bottom:0;top:0;margin:auto;-webkit-transition:0.3s;transition:0.3s}.bds-toggle__slider--round{border-radius:var(--boreal-radius-m)}.bds-toggle__slider--round::before{border-radius:var(--boreal-radius-full)}.bds-toggle__label{font-size:var(--boreal-typography-font-size-sm);color:var(--boreal-text-default)}.bds-toggle__helper-text{display:-ms-flexbox;display:flex;position:relative;color:var(--boreal-text-default-light);font-size:var(--boreal-typography-font-size-xs);margin-top:var(--boreal-spacing-2xs)}'}},[576,"bds-toggle",{name:[513],disabled:[516],required:[516],info:[1],error:[516],errorMessage:[513,"error-message"],checked:[516],placement:[513],label:[513],helperText:[513,"helper-text"],value:[1],isDisabled:[32],validationError:[32],validationMessage:[32],isChecked:[32]},void 0,{checked:[{onCheckedChange:0}],disabled:[{onDisabledChange:0}]}]),c=g,p=function(){"undefined"!=typeof customElements&&["bds-toggle","bds-tooltip","bds-typography"].forEach((e=>{switch(e){case"bds-toggle":customElements.get(a(e))||customElements.define(a(e),g);break;case"bds-tooltip":customElements.get(a(e))||h();break;case"bds-typography":customElements.get(a(e))||b()}}))};export{c as BdsToggle,p as defineCustomElement}
1
+ import{p as e,M as t,c as s,h as i,H as o,t as a}from"./index.js";import{f as l}from"./p-nxYzL9uu.js";import{i as r}from"./p-fUK0GCeC.js";import{s as d}from"./p-DfaYciGa.js";import{c as h}from"./p-DhSchGPI.js";import{d as b}from"./p-B6e9eIHB.js";import{d as n}from"./p-CJBdGD_4.js";const g=e(class extends(t(l)){constructor(e){super(!1),!1!==e&&this.__registerHost(),this.valueChange=s(this,"valueChange"),this.bdsChange=s(this,"bdsChange"),this.internals=this.attachInternals(),this.inheritedAttributes={},this.disabled=!1,this.required=!1,this.info="",this.error=!1,this.errorMessage="",this.checked=!1,this.placement="left",this.label="",this.helperText="",this.value="on",this._id=h("bds-toggle"),this.isDisabled=!1,this.validationError=!1,this.validationMessage="",this.isChecked=!1,this.handleClick=()=>this.toggle(),this.handleKeyDown=e=>{" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this.toggle())},this.handleInvalid=e=>{e.preventDefault(),this.validate()}}componentWillLoad(){this.isChecked=this.checked||!1,this.isDisabled=this.disabled||!1,this.inheritedAttributes={...r(this.el)},this.syncFormValue()}onCheckedChange(e){this.isChecked=e,this.syncFormValue()}onDisabledChange(e){this.isDisabled=e}formAssociatedCallback(){this.syncFormValue()}formDisabledCallback(e){this.isDisabled=e}formResetCallback(){this.isChecked=!1,this.internals.setValidity({}),d(this.internals,null)}formStateRestoreCallback(e,t){this.isChecked=e===this.value,this.internals.setValidity({}),this.syncFormValue()}syncFormValue(){d(this.internals,this.isChecked?this.value:null)}validate(){if(this.isDisabled||!this.required||this.isChecked)this.validationError=!1,this.validationMessage="",this.internals.setValidity({});else{const e=this.el.querySelector("input");this.validationError=!0,this.validationMessage="This field is required",this.internals.setValidity({valueMissing:!0},this.validationMessage,e??this.el)}}toggle(){this.isDisabled||(this.isChecked=!this.isChecked,this.syncFormValue(),this.validate(),this.valueChange.emit(this.isChecked),this.bdsChange.emit({checked:this.isChecked,value:this.value}))}get containerClasses(){return{"bds-toggle__container":!0,"bds-toggle__container--inverse":"right"===this.placement,"bds-toggle__container--checked":this.isChecked,"bds-toggle__container--disabled":this.isDisabled}}get canShowLabel(){return void 0!==this.label&&""!==this.label.trim()&&null!=this.label}render(){const e="bds-toggle",t=this.isDisabled?"disabled":this.error||this.validationError?"error":"default",s=this.error&&""!==this.errorMessage?this.errorMessage:this.validationError&&""!==this.validationMessage?this.validationMessage:this.helperText;return i(o,{key:"b5d27825358eaadb5cbca86e48488350e6099d8f",...this.inheritedAttributes,onClick:this.handleClick,onKeyDown:this.handleKeyDown,class:e},i("div",{key:"9b7bb4c4551beb61ed72c9ee4a4d7ee14e746c4e",part:"container",class:this.containerClasses},this.canShowLabel&&i("bds-typography",{key:"a95e1b66d8452b983002348b9456aa0c3674b202",variant:"label",class:e+"__label",htmlFor:this._id,required:this.required,tooltipText:this.info},this.label),i("label",{key:"954125135521cd6e65c2e6c3dfa41216e6f52dd3",class:e+"__switch",htmlFor:this._id,onClick:e=>e.preventDefault()},i("input",{key:"c3e0ee266aba0bd6e8ca7fb2d3efaeb412161806",class:e+"__input","aria-invalid":this.error||this.validationError?"true":void 0,"aria-label":this.label||null,id:this._id,type:"checkbox",name:this.name,required:this.required,disabled:this.isDisabled,checked:this.isChecked,onInvalid:this.handleInvalid}),i("span",{key:"68912685234edb7c6ec972231c7f951531862f7c",class:`${e}__slider ${e}__slider--round`}))),""!==s&&i("bds-typography",{key:"3e5645d234edc1f3efe7805260def2c74bc7cd44",class:e+"__helper-text",variant:"helper",state:t,onClick:e=>e.stopPropagation()},s))}static get formAssociated(){return!0}get el(){return this}static get watchers(){return{checked:[{onCheckedChange:0}],disabled:[{onDisabledChange:0}]}}static get style(){return'@charset "UTF-8";.bds-toggle{font-family:var(--boreal-typography-font-family-primary);display:inline-block}.bds-toggle__container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-2xs);outline:none;width:-webkit-max-content;width:-moz-max-content;width:max-content}.bds-toggle__container:focus{outline:none}.bds-toggle__container--inverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.bds-toggle:active,.bds-toggle:focus-visible{outline:none}.bds-toggle:active .bds-toggle__input:not([disabled])+.bds-toggle__slider,.bds-toggle:focus-visible .bds-toggle__input:not([disabled])+.bds-toggle__slider{-webkit-box-shadow:var(--boreal-depth-box-shadow-focus);box-shadow:var(--boreal-depth-box-shadow-focus)}.bds-toggle .bds-toggle__input:active:not([disabled])+.bds-toggle__slider,.bds-toggle .bds-toggle__input:focus-visible:not([disabled])+.bds-toggle__slider{-webkit-box-shadow:var(--boreal-depth-box-shadow-focus);box-shadow:var(--boreal-depth-box-shadow-focus)}.bds-toggle:hover:not(:active):not([checked]):not([disabled]) .bds-toggle__slider,.bds-toggle:hover:not(:active):focus-within:not([checked]) .bds-toggle__slider{-webkit-box-shadow:var(--boreal-depth-box-shadow-xs);box-shadow:var(--boreal-depth-box-shadow-xs)}.bds-toggle__switch{position:relative;display:inline-block;width:var(--boreal-spacing-3xl);height:var(--boreal-spacing-l)}.bds-toggle__input{opacity:0;width:0;height:0}.bds-toggle__input:not(:checked)+.bds-toggle__slider{border:1px solid var(--boreal-stroke-default-light)}.bds-toggle__input:checked+.bds-toggle__slider{background-color:var(--boreal-ui-primary-base)}.bds-toggle__input:checked+.bds-toggle__slider::before{-webkit-transform:translateX(var(--boreal-spacing-l));-ms-transform:translateX(var(--boreal-spacing-l));transform:translateX(var(--boreal-spacing-l))}.bds-toggle__input:disabled+.bds-toggle__slider{background-color:var(--boreal-ui-disabled);cursor:default}.bds-toggle__input:disabled+.bds-toggle__slider::before{background-color:var(--boreal-icon-default-light)}.bds-toggle__input:disabled:checked+.bds-toggle__slider{background-color:var(--boreal-ui-primary-light)}.bds-toggle__input:disabled:checked+.bds-toggle__slider::before{background-color:var(--boreal-icon-inverse)}.bds-toggle__slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--boreal-ui-base-light);-webkit-transition:all 0.4s, border-color 0s;transition:all 0.4s, border-color 0s}.bds-toggle__slider::before{position:absolute;content:"";height:var(--boreal-typography-font-size-md);width:var(--boreal-typography-font-size-md);left:var(--boreal-spacing-2xs);background-color:var(--boreal-text-inverse);bottom:0;top:0;margin:auto;-webkit-transition:0.3s;transition:0.3s}.bds-toggle__slider--round{border-radius:var(--boreal-radius-m)}.bds-toggle__slider--round::before{border-radius:var(--boreal-radius-full)}.bds-toggle__label{font-size:var(--boreal-typography-font-size-sm);color:var(--boreal-text-default)}.bds-toggle__helper-text{display:-ms-flexbox;display:flex;position:relative;color:var(--boreal-text-default-light);font-size:var(--boreal-typography-font-size-xs);margin-top:var(--boreal-spacing-2xs)}'}},[576,"bds-toggle",{name:[513],disabled:[516],required:[516],info:[1],error:[516],errorMessage:[513,"error-message"],checked:[516],placement:[513],label:[513],helperText:[513,"helper-text"],value:[1],isDisabled:[32],validationError:[32],validationMessage:[32],isChecked:[32]},void 0,{checked:[{onCheckedChange:0}],disabled:[{onDisabledChange:0}]}]),c=g,p=function(){"undefined"!=typeof customElements&&["bds-toggle","bds-tooltip","bds-typography"].forEach((e=>{switch(e){case"bds-toggle":customElements.get(a(e))||customElements.define(a(e),g);break;case"bds-tooltip":customElements.get(a(e))||b();break;case"bds-typography":customElements.get(a(e))||n()}}))};export{c as BdsToggle,p as defineCustomElement}
@@ -1 +1 @@
1
- import{B as o,d as s}from"./p-CGdxFth9.js";const t=o,p=s;export{t as BdsTooltip,p as defineCustomElement}
1
+ import{B as o,d as s}from"./p-B6e9eIHB.js";const e=o,p=s;export{e as BdsTooltip,p as defineCustomElement}
@@ -1 +1 @@
1
- import{B as o,d as s}from"./p-DIY3CDNL.js";const p=o,r=s;export{p as BdsTypography,r as defineCustomElement}
1
+ import{B as o,d as s}from"./p-CJBdGD_4.js";const p=o,r=s;export{p as BdsTypography,r as defineCustomElement}
@@ -1 +1 @@
1
- var t=(t,e)=>{var n;Object.entries(null!=(n=e.o.t)?n:{}).map((([n,[o]])=>{if(31&o||32&o){const o=t[n],s=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);s&&Object.defineProperty(t,n,{get(){return s.get.call(this)},set(t){s.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.l.has(n)?e.l.get(n):o}}))},e=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},n=(t,e)=>e in t,o=(t,e)=>(0,console.error)(t,e),s=new Map,l="http://www.w3.org/1999/xlink",i=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],r="undefined"!=typeof window?window:{},c=r.HTMLElement||class{},f={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},u=(()=>{try{return!!r.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),a=!!u&&(()=>!!r.document&&Object.getOwnPropertyDescriptor(r.document.adoptedStyleSheets,"length").writable)(),h=!1,d=[],p=[],b=(t,e)=>n=>{t.push(n),h||(h=!0,e&&4&f.i?y(m):f.raf(m))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){o(t)}t.length=0},m=()=>{v(d),v(p),(h=d.length>0)&&f.raf(m)},y=t=>Promise.resolve(void 0).then(t),g=b(p,!0),$=t=>{const e=new URL(t,f.u);return e.origin!==r.location.origin?e.href:e.pathname},j=t=>f.u=t,O=t=>{const e=Y(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&N(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!S(t,x(t),!1).length)}));let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&Y(t,"childNodes").length&&O(t)}},w=t=>{const e=[];for(let n=0;n<t.length;n++){const o=t[n]["s-nr"]||void 0;o&&o.isConnected&&e.push(o)}return e};function N(t,e,n){let o,s=0,l=[];for(;s<t.length;s++){if(o=t[s],o["s-sr"]&&(!e||o["s-hn"]===e)&&(void 0===n||x(o)===n)&&(l.push(o),void 0!==n))return l;l=[...l,...N(o.childNodes,e,n)]}return l}var S=(t,e,n=!0)=>{const o=[];(n&&t["s-sr"]||!t["s-sr"])&&o.push(t);let s=t;for(;s=s.nextSibling;)x(s)!==e||!n&&s["s-sr"]||o.push(s);return o},C=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,k=(t,e,n)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const o=document.createTextNode("");if(o["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const s=e["s-cr"].parentNode;Y(s,n?"prepend":"appendChild").call(s,o),t["s-ol"]=o,t["s-sh"]=e["s-hn"]},x=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function E(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}function _(t,e){var n;if(!(e=e||(null==(n=t["s-ol"])?void 0:n.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=x(t)||"";return{slotNode:N(Y(e,"childNodes"),e.tagName,o)[0],slotName:o}}var A=t=>{if(t.__cloneNode)return;const e=t.__cloneNode=t.cloneNode;t.cloneNode=function(t){const n=e.call(this,!1);if(t){let t,e,o=0;const s=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"],l=this.__childNodes||this.childNodes;for(;o<l.length;o++)t=l[o]["s-nr"],e=s.every((t=>!l[o][t])),t&&(n.__appendChild?n.__appendChild(t.cloneNode(!0)):n.appendChild(t.cloneNode(!0))),e&&n.appendChild(l[o].cloneNode(!0))}return n}},M=t=>{t.__appendChild||(t.__appendChild=t.appendChild,t.appendChild=function(t){const{slotName:e,slotNode:n}=_(t,this);if(n){k(t,n);const o=S(n,e),s=o[o.length-1],l=Y(s,"parentNode"),i=Y(l,"insertBefore")(t,s.nextSibling);return E(n),O(this),i}return this.__appendChild(t)})},R=t=>{t.__removeChild||(t.__removeChild=t.removeChild,t.removeChild=function(t){return t&&void 0!==t["s-sn"]&&N(this.__childNodes||this.childNodes,this.tagName,t["s-sn"])&&t.isConnected?(t.remove(),void O(this)):this.__removeChild(t)})},F=t=>{t.__prepend||(t.__prepend=t.prepend,t.prepend=function(...e){e.forEach((e=>{"string"==typeof e&&(e=this.ownerDocument.createTextNode(e));const n=(e["s-sn"]=x(e))||"",o=N(Y(this,"childNodes"),this.tagName,n)[0];if(o){k(e,o,!0);const t=S(o,n)[0],s=Y(t,"parentNode"),l=Y(s,"insertBefore")(e,Y(t,"nextSibling"));return E(o),l}return 1===e.nodeType&&e.getAttribute("slot")&&(e.hidden=!0),t.__prepend(e)}))})},T=t=>{t.__append||(t.__append=t.append,t.append=function(...t){t.forEach((t=>{"string"==typeof t&&(t=this.ownerDocument.createTextNode(t)),this.appendChild(t)}))})},L=t=>{if(t.__insertAdjacentHTML)return;const e=t.insertAdjacentHTML;t.insertAdjacentHTML=function(t,n){if("afterbegin"!==t&&"beforeend"!==t)return e.call(this,t,n);const o=this.ownerDocument.createElement("_");let s;if(o.innerHTML=n,"afterbegin"===t)for(;s=o.firstChild;)this.prepend(s);else if("beforeend"===t)for(;s=o.firstChild;)this.append(s)}},B=t=>{t.insertAdjacentText=function(t,e){this.insertAdjacentHTML(t,e)}},D=t=>{t.__insertBefore||t.__insertBefore||(t.__insertBefore=t.insertBefore,t.insertBefore=function(t,e){const{slotName:n,slotNode:o}=_(t,this),s=this.__childNodes?this.childNodes:w(this.childNodes);if(o){let l=!1;if(s.forEach((s=>{if(s!==e&&null!==e);else{if(l=!0,null===e||n!==e["s-sn"])return void this.appendChild(t);if(n===e["s-sn"]){k(t,o);const n=Y(e,"parentNode");Y(n,"insertBefore")(t,e),E(o)}}})),l)return t}const l=null==e?void 0:e.__parentNode;return l&&!this.isSameNode(l)?this.appendChild(t):this.__insertBefore(t,e)})},P=t=>{if(t.__insertAdjacentElement)return;const e=t.insertAdjacentElement;t.insertAdjacentElement=function(t,n){return"afterbegin"!==t&&"beforeend"!==t?e.call(this,t,n):"afterbegin"===t?(this.prepend(n),n):"beforeend"===t?(this.append(n),n):n}},U=t=>{z("textContent",t),Object.defineProperty(t,"textContent",{get:function(){let t="";return(this.__childNodes?this.childNodes:w(this.childNodes)).forEach((e=>t+=e.textContent||"")),t},set:function(t){(this.__childNodes?this.childNodes:w(this.childNodes)).forEach((t=>{t["s-ol"]&&t["s-ol"].remove(),t.remove()})),this.insertAdjacentHTML("beforeend",t)}})},W=t=>{class e extends Array{item(t){return this[t]}}z("children",t),Object.defineProperty(t,"children",{get(){return this.childNodes.filter((t=>1===t.nodeType))}}),Object.defineProperty(t,"childElementCount",{get(){return this.children.length}}),z("firstChild",t),Object.defineProperty(t,"firstChild",{get(){return this.childNodes[0]}}),z("lastChild",t),Object.defineProperty(t,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),z("childNodes",t),Object.defineProperty(t,"childNodes",{get(){const t=new e;return t.push(...w(this.__childNodes)),t}})},H=t=>{t&&!t.__parentNode&&(z("parentNode",t),Object.defineProperty(t,"parentNode",{get:function(){var t;return(null==(t=this["s-ol"])?void 0:t.parentNode)||this.__parentNode},set:function(t){this.__parentNode=t}}))},V=["children","nextElementSibling","previousElementSibling"],q=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function z(t,e){if(!globalThis.Node||!globalThis.Element)return;let n;V.includes(t)?n=Object.getOwnPropertyDescriptor(Element.prototype,t):q.includes(t)&&(n=Object.getOwnPropertyDescriptor(Node.prototype,t)),n||(n=Object.getOwnPropertyDescriptor(e,t)),n&&Object.defineProperty(e,"__"+t,n)}function Y(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var I,Z,G=new WeakMap,J=t=>"sc-"+t.h,K=t=>"object"==(t=typeof t)||"function"===t,Q=(t,e,...n)=>{let o=null,s=null,l=null,i=!1,r=!1;const c=[],f=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?f(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!K(o))&&(o+=""),i&&r?c[c.length-1].p+=o:c.push(i?X(null,o):o),r=i)};if(f(n),e){e.key&&(s=e.key),e.name&&(l=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,et);const u=X(t,null);return u.v=e,c.length>0&&(u.m=c),u.$=s,u.j=l,u},X=(t,e)=>({i:0,O:t,p:null!=e?e:null,N:null,m:null,v:null,$:null,j:null}),tt={},et={forEach:(t,e)=>t.map(nt).forEach(e),map:(t,e)=>t.map(nt).map(e).map(ot)},nt=t=>({vattrs:t.v,vchildren:t.m,vkey:t.$,vname:t.j,vtag:t.O,vtext:t.p}),ot=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),Q(t.vtag,e,...t.vchildren||[])}const e=X(t.vtag,t.vtext);return e.v=t.vattrs,e.m=t.vchildren,e.$=t.vkey,e.j=t.vname,e},st=(t,e,n)=>null==t||K(t)?t:4&e?(n&&"string"==typeof t||"false"!==t)&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,lt=(t,e)=>{const n=t;return{emit:t=>it(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},it=(t,e,n)=>{const o=f.ce(e,n);return t.dispatchEvent(o),o},rt=(t,o,s,i,c,u)=>{if(s===i)return;let a=n(t,o),h=o.toLowerCase();if("class"===o){const e=t.classList,n=ft(s);let o=ft(i);e.remove(...n.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!n.includes(t))))}else if("style"===o){for(const e in s)i&&null!=i[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in i)s&&i[e]===s[e]||(e.includes("-")?t.style.setProperty(e,i[e]):t.style[e]=i[e])}else if("key"===o);else if("ref"===o)i&&At(i,t);else if(t.__lookupSetter__(o)||"o"!==o[0]||"n"!==o[1]){if("a"===o[0]&&o.startsWith("attr:")){const n=o.slice(5);let s;{const o=e(t);if(o&&o.o&&o.o.t){const t=o.o.t[n];t&&t[1]&&(s=t[1])}}return s||(s=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==i||!1===i?!1===i&&""!==t.getAttribute(s)||t.removeAttribute(s):t.setAttribute(s,!0===i?"":i))}if("p"===o[0]&&o.startsWith("prop:")){const e=o.slice(5);try{t[e]=i}catch(t){}return}{const e=K(i);if((a||e&&null!==i)&&!c)try{if(t.tagName.includes("-"))t[o]!==i&&(t[o]=i);else{const e=null==i?"":i;"list"===o?a=!1:null!=s&&t[o]===e||("function"==typeof t.__lookupSetter__(o)?t[o]=e:t.setAttribute(o,e))}}catch(t){}let n=!1;h!==(h=h.replace(/^xlink\:?/,""))&&(o=h,n=!0),null==i||!1===i?!1===i&&""!==t.getAttribute(o)||(n?t.removeAttributeNS(l,o):t.removeAttribute(o)):(!a||4&u||c)&&!e&&1===t.nodeType&&(i=!0===i?"":i,n?t.setAttributeNS(l,o,i):t.setAttribute(o,i))}}else if(o="-"===o[2]?o.slice(3):n(r,h)?h.slice(2):h[2]+o.slice(3),s||i){const e=o.endsWith(ut);o=o.replace(at,""),s&&f.rel(t,o,s,e),i&&f.ael(t,o,i,e)}},ct=/\s/,ft=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(ct):[]),ut="Capture",at=RegExp(ut+"$"),ht=(t,e,n)=>{const o=11===e.N.nodeType&&e.N.host?e.N.host:e.N,s=t&&t.v||{},l=e.v||{};for(const t of dt(Object.keys(s)))t in l||rt(o,t,s[t],void 0,n,e.i);for(const t of dt(Object.keys(l)))rt(o,t,s[t],l[t],n,e.i)};function dt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var pt=!1,bt=!1,vt=!1,mt=!1,yt=[],gt=[],$t=(t,e,n)=>{var o;const s=e.m[n];let l,i,c,f=0;if(pt||(vt=!0,"slot"===s.O&&(s.i|=s.m?2:1)),null!=s.p)l=s.N=r.document.createTextNode(s.p);else if(1&s.i)l=s.N=r.document.createTextNode(""),ht(null,s,mt);else{if(mt||(mt="svg"===s.O),!r.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=s.N=r.document.createElementNS(mt?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!pt&&2&s.i?"slot-fb":s.O),mt&&"foreignObject"===s.O&&(mt=!1),ht(null,s,mt),s.m){const e="template"===s.O?l.content:l;for(f=0;f<s.m.length;++f)i=$t(t,s,f),i&&e.appendChild(i)}"svg"===s.O?mt=!1:"foreignObject"===l.tagName&&(mt=!0)}return l["s-hn"]=Z,3&s.i&&(l["s-sr"]=!0,l["s-cr"]=I,l["s-sn"]=s.j||"",l["s-rf"]=null==(o=s.v)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const s=this["s-cr"].parentElement;return(s.__childNodes?s.childNodes:w(s.childNodes)).forEach((t=>{o===x(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}(l),c=t&&t.m&&t.m[n],c&&c.O===s.O&&t.N&&jt(t.N)),l},jt=t=>{f.i|=1;const e=t.closest(Z.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of n?o.reverse():o)null!=t["s-sh"]&&(Mt(e,t,null!=n?n:null),t["s-sh"]=void 0,vt=!0)}f.i&=-2},Ot=(t,e)=>{f.i|=1;const n=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let e=t;for(;e=e.nextSibling;)e&&e["s-sn"]===t["s-sn"]&&e["s-sh"]===Z&&n.push(e)}for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==Z&&o["s-ol"]&&(Mt(Ct(o).parentNode,o,Ct(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,vt=!0),e&&Ot(o,e)}f.i&=-2},wt=(t,e,n,o,s,l)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for("template"===n.O&&(r=r.content);s<=l;++s)o[s]&&(i=$t(null,n,s),i&&(o[s].N=i,Mt(r,i,Ct(e))))},Nt=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.N;_t(e),t&&(bt=!0,t["s-ol"]?t["s-ol"].remove():Ot(t,!0),t.remove())}}},St=(t,e,n=!1)=>t.O===e.O&&("slot"===t.O?t.j===e.j:n?(n&&!t.$&&e.$&&(t.$=e.$),!0):t.$===e.$),Ct=t=>t&&t["s-ol"]||t,kt=(t,e,n=!1)=>{const o=e.N=t.N,s=t.m,l=e.m,i=e.O,r=e.p;let c;null==r?(mt="svg"===i||"foreignObject"!==i&&mt,"slot"!==i||pt||t.j!==e.j&&(e.N["s-sn"]=e.j||"",jt(e.N.parentElement)),ht(t,e,mt),null!==s&&null!==l?((t,e,n,o,s=!1)=>{let l,i,r=0,c=0,f=0,u=0,a=e.length-1,h=e[0],d=e[a],p=o.length-1,b=o[0],v=o[p];const m="template"===n.O?t.content:t;for(;r<=a&&c<=p;)if(null==h)h=e[++r];else if(null==d)d=e[--a];else if(null==b)b=o[++c];else if(null==v)v=o[--p];else if(St(h,b,s))kt(h,b,s),h=e[++r],b=o[++c];else if(St(d,v,s))kt(d,v,s),d=e[--a],v=o[--p];else if(St(h,v,s))"slot"!==h.O&&"slot"!==v.O||Ot(h.N.parentNode,!1),kt(h,v,s),Mt(m,h.N,d.N.nextSibling),h=e[++r],v=o[--p];else if(St(d,b,s))"slot"!==h.O&&"slot"!==v.O||Ot(d.N.parentNode,!1),kt(d,b,s),Mt(m,d.N,h.N),d=e[--a],b=o[++c];else{for(f=-1,u=r;u<=a;++u)if(e[u]&&null!==e[u].$&&e[u].$===b.$){f=u;break}f>=0?(i=e[f],i.O!==b.O?l=$t(e&&e[c],n,f):(kt(i,b,s),e[f]=void 0,l=i.N),b=o[++c]):(l=$t(e&&e[c],n,c),b=o[++c]),l&&Mt(Ct(h.N).parentNode,l,Ct(h.N))}r>a?wt(t,null==o[p+1]?null:o[p+1].N,n,o,c,p):c>p&&Nt(e,r,a)})(o,s,e,l,n):null!==l?(null!==t.p&&(o.textContent=""),wt(o,null,e,l,0,l.length-1)):!n&&null!==s&&Nt(s,0,s.length-1),mt&&"svg"===i&&(mt=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.p!==r&&(o.data=r)},xt=[],Et=t=>{let e,n,o;const s=t.__childNodes||t.childNodes;for(const t of s){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const s=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!(e["s-cn"]||e["s-nr"]||e["s-hn"]===t["s-hn"]||e["s-sh"]&&e["s-sh"]===t["s-hn"]))if(C(e,s)){let n=xt.find((t=>t.S===e));bt=!0,e["s-sn"]=e["s-sn"]||s,n?(n.S["s-sh"]=t["s-hn"],n.C=t):(e["s-sh"]=t["s-hn"],xt.push({C:t,S:e})),e["s-sr"]&&xt.map((t=>{C(t.S,e["s-sn"])&&(n=xt.find((t=>t.S===e)),n&&!t.C&&(t.C=n.C))}))}else xt.some((t=>t.S===e))||xt.push({S:e})}1===t.nodeType&&Et(t)}},_t=t=>{t.v&&t.v.ref&&yt.push((()=>t.v.ref(null))),t.m&&t.m.map(_t)},At=(t,e)=>{gt.push((()=>t(e)))},Mt=(t,e,n,o)=>{if("string"==typeof e["s-sn"]){11!==t.getRootNode().nodeType&&H(e),t.insertBefore(e,n);const{slotNode:s}=_(e);return s&&!o&&E(s),e}return t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n)},Rt=(t,e,n=!1)=>{var o,s,l,i,c;const u=t.$hostElement$,a=t.o,h=t.k||X(null,null),d=(t=>t&&t.O===tt)(e)?e:Q(null,null,e);if(Z=u.tagName,a._&&(d.v=d.v||{},a._.forEach((([t,e])=>{d.v[e]=u[t]}))),n&&d.v)for(const t of Object.keys(d.v))u.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(d.v[t]=u[t]);if(d.O=null,d.i|=4,t.k=d,d.N=h.N=u,pt=false,I=u["s-cr"],bt=!1,kt(h,d,n),f.i|=1,vt){Et(d.N);for(const t of xt){const e=t.S;if(!e["s-ol"]&&r.document){const t=r.document.createTextNode("");t["s-nr"]=e,Mt(e.parentNode,e["s-ol"]=t,e,n)}}for(const t of xt){const e=t.S,c=t.C;if(1===e.nodeType&&n&&(e["s-ih"]=null!=(o=e.hidden)&&o),c){const t=c.parentNode;let o=c.nextSibling;if(o&&1===o.nodeType){let n=null==(s=e["s-ol"])?void 0:s.previousSibling;for(;n;){let s=null!=(l=n["s-nr"])?l:null;if(s&&s["s-sn"]===e["s-sn"]&&t===(s.__parentNode||s.parentNode)){for(s=s.nextSibling;s===e||(null==s?void 0:s["s-sr"]);)s=null==s?void 0:s.nextSibling;if(!s||!s["s-nr"]){o=s;break}}n=n.previousSibling}}if((!o&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==o)&&e!==o){if(Mt(t,e,o,n),8===e.nodeType&&e.nodeValue.startsWith("s-nt-")){const t=r.document.createTextNode(e.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=e["s-hn"],t["s-sn"]=e["s-sn"],t["s-sh"]=e["s-sh"],t["s-sr"]=e["s-sr"],t["s-ol"]=e["s-ol"],t["s-ol"]["s-nr"]=t,Mt(e.parentNode,t,e,n),e.parentNode.removeChild(e)}1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(i=e["s-ih"])&&i)}e&&"function"==typeof c["s-rf"]&&c["s-rf"](c)}else 1===e.nodeType&&(e.hidden=!0)}}if(bt&&O(d.N),f.i&=-2,xt.length=0,!pt&&!(1&a.i)&&u["s-cr"]){const t=d.N.__childNodes||d.N.childNodes;for(const e of t)if(e["s-hn"]!==Z&&!e["s-sh"])if(n&&null==e["s-ih"]&&(e["s-ih"]=null!=(c=e.hidden)&&c),1===e.nodeType)e.hidden=!0;else if(3===e.nodeType&&e.nodeValue.trim()){const t=r.document.createComment("s-nt-"+e.nodeValue);t["s-sn"]=e["s-sn"],Mt(e.parentNode,t,e,n),e.parentNode.removeChild(e)}}I=void 0,yt.forEach((t=>t())),yt.length=0,gt.forEach((t=>t())),gt.length=0},Ft=(t,e)=>{if(e&&!t.A&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.A=()=>{e["s-p"].splice(n-1,1),o()})))}},Tt=(t,e)=>{if(t.i|=16,4&t.i)return void(t.i|=512);Ft(t,t.M);const n=()=>Lt(t,e);if(!e)return g(n);queueMicrotask((()=>{n()}))},Lt=(t,e)=>{const n=t.$hostElement$,o=n;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return s=Vt(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),s=Bt(s,(()=>Vt(o,"componentWillRender",void 0,n))),Bt(s,(()=>Pt(t,o,e)))},Bt=(t,e)=>Dt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Dt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Pt=async(t,e,n)=>{var o;const l=t.$hostElement$,i=l["s-rc"];n&&(t=>{const e=t.o;((t,e)=>{var n,o,l;const i=J(e),c=s.get(i);if(!r.document)return i;if(t=11===t.nodeType?t:r.document,c)if("string"==typeof c){let s,l=G.get(t=t.head||t);if(l||G.set(t,l=new Set),!l.has(i)){s=r.document.createElement("style"),s.textContent=c;const h=null!=(n=f.R)?n:function(){var t,e,n;return null!=(n=null==(e=null==(t=r.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?n:void 0}();if(null!=h&&s.setAttribute("nonce",h),!(1&e.i))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(u){const e=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(c),a?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=c+e.textContent:t.prepend(s)}else t.append(s);1&e.i&&t.insertBefore(s,null),4&e.i&&(s.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),l&&l.add(i)}}else{let e=G.get(t);if(e||G.set(t,e=new Set),!e.has(i)){const n=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(c.constructor===n.CSSStyleSheet)o=c;else{o=new n.CSSStyleSheet;for(let t=0;t<c.cssRules.length;t++)o.insertRule(c.cssRules[t].cssText,t)}a?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],e.add(i)}}})(t.$hostElement$.getRootNode(),e)})(t);Ut(t,e,l,n),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>Wt(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.i|=4,e.length=0)}},Ut=(t,e,n,s)=>{try{e=e.render(),t.i&=-17,t.i|=2,Rt(t,e,s)}catch(e){o(e,t.$hostElement$)}return null},Wt=t=>{const e=t.$hostElement$,n=e,o=t.M;Vt(n,"componentDidRender",void 0,e),64&t.i?Vt(n,"componentDidUpdate",void 0,e):(t.i|=64,qt(e),Vt(n,"componentDidLoad",void 0,e),t.F(e),o||Ht()),t.A&&(t.A(),t.A=void 0),512&t.i&&y((()=>Tt(t,!1))),t.i&=-517},Ht=()=>{y((()=>it(r,"appload",{detail:{namespace:"boreal-web-components"}})))},Vt=(t,e,n,s)=>{if(t&&t[e])try{return t[e](n)}catch(t){o(t,s)}},qt=t=>t.classList.add("hydrated"),zt=(t,n,s,l)=>{const i=e(t);if(!i)return;const r=t,c=i.l.get(n),f=i.i,u=r;if(!((s=st(s,l.t[n][0],!!(64&l.i)))===c||Number.isNaN(c)&&Number.isNaN(s))){if(i.l.set(n,s),l.T){const t=l.T[n];t&&t.map((t=>{try{const[[e,o]]=Object.entries(t);(128&f||1&o)&&(u?u[e](s,c,n):i.L.push((()=>{i.B[e](s,c,n)})))}catch(t){o(t,r)}}))}if(2&f){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(s,c,n)&&!(16&f))return;16&f||Tt(i,!1)}}},Yt=(t,n,o)=>{var s,l;const r=t.prototype;64&n.i&&1&o&&i.forEach((t=>{const n=r[t];Object.defineProperty(r,t,{value(...o){var s;const l=e(this),i=this;i?"function"==typeof n&&n.call(i,...o):null==(s=null==l?void 0:l.D)||s.then((e=>{const n=e[t];"function"==typeof n&&n.call(e,...o)}))}})}));{t.watchers&&!n.T&&(n.T=t.watchers),t.deserializers&&!n.P&&(n.P=t.deserializers),t.serializers&&!n.U&&(n.U=t.serializers);const o=Object.entries(null!=(s=n.t)?s:{});o.map((([t,[o]])=>{if(31&o||32&o){const{get:s,set:l}=Object.getOwnPropertyDescriptor(r,t)||{};s&&(n.t[t][0]|=2048),l&&(n.t[t][0]|=4096),Object.defineProperty(r,t,{get(){return s?s.apply(this):((t,n)=>e(this).l.get(n))(0,t)},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(s){const i=e(this);if(i){if(l)return void 0===(32&o?this[t]:i.$hostElement$[t])&&i.l.get(t)&&(s=i.l.get(t)),l.call(this,st(s,o,!!(64&n.i))),void zt(this,t,s=32&o?this[t]:i.$hostElement$[t],n);zt(this,t,s,n)}}})}}));{const s=new Map;r.attributeChangedCallback=function(t,l,i){f.jmp((()=>{var c;const f=s.get(t),u=e(this);if(this.hasOwnProperty(f),r.hasOwnProperty(f)&&"number"==typeof this[f]&&this[f]==i)return;if(null==f){const e=null==u?void 0:u.i;if(u&&e&&!(8&e)&&i!==l){const o=this,s=null==(c=n.T)?void 0:c[t];null==s||s.forEach((n=>{const[[s,r]]=Object.entries(n);null!=o[s]&&(128&e||1&r)&&o[s].call(o,i,l,t)}))}return}const a=o.find((([t])=>t===f));a&&4&a[1][0]&&(i=null!==i&&"false"!==i);const h=Object.getOwnPropertyDescriptor(r,f);i==this[f]||h.get&&!h.set||(this[f]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=n.T)?l:{}),...o.filter((([t,e])=>31&e[0])).map((([t,e])=>{var o;const l=e[1]||t;return s.set(l,t),512&e[0]&&(null==(o=n._)||o.push([t,l])),l}))]))}}return t},It=(n,l)=>{const i={i:l[0],h:l[1]};try{i.t=l[2],i.W=l[3],i.T=n.T,i.P=n.P,i.U=n.U,i._=[],!(1&i.i)&&256&i.i?(t=>{A(t),M(t),T(t),F(t),P(t),L(t),B(t),D(t),U(t),W(t),R(t)})(n.prototype):A(n.prototype);const c=n.prototype.connectedCallback,a=n.prototype.disconnectedCallback;return Object.assign(n.prototype,{__hasHostListenerAttached:!1,__registerHost(){((e,n)=>{const o={i:0,$hostElement$:e,o:n,l:new Map,H:new Map};o.D=new Promise((t=>o.F=t)),e["s-p"]=[],e["s-rc"]=[];const s=o;e.__stencil__getHostRef=()=>s,512&n.i&&t(e,o)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const t=e(this);if(!t)return;Gt(this,t,i.W),this.__hasHostListenerAttached=!0}(t=>{if(!(1&f.i)){const n=e(t);if(!n)return;const l=n.o,i=()=>{};if(1&n.i)Gt(t,n,l.W),(null==n?void 0:n.B)||(null==n?void 0:n.D)&&n.D.then((()=>{}));else{n.i|=1,12&l.i&&(t=>{if(!r.document)return;const e=t["s-cr"]=r.document.createComment("");e["s-cn"]=!0,Mt(t,e,t.firstChild)})(t);{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){Ft(n,n.M=e);break}}l.t&&Object.entries(l.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let l;try{if(!(32&e.i)&&(e.i|=32,l=t.constructor,customElements.whenDefined(t.localName).then((()=>e.i|=128)),l&&l.style)){let t;"string"==typeof l.style&&(t=l.style);const e=J(n);if(!s.has(e)){const o=()=>{};((t,e,n)=>{let o=s.get(t);u&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,s.set(t,o)})(e,t,!!(1&n.i)),o()}}const o=e.M,i=()=>Tt(e,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()}catch(n){o(n,t),e.A&&(e.A(),e.A=void 0),e.F&&e.F(t)}})(t,n,l)}i()}})(this),c&&c.call(this)},disconnectedCallback(){(async t=>{if(!(1&f.i)){const n=e(t);(null==n?void 0:n.V)&&(n.V.map((t=>t())),n.V=void 0)}G.has(t)&&G.delete(t),t.shadowRoot&&G.has(t.shadowRoot)&&G.delete(t.shadowRoot)})(this),a&&a.call(this)},__attachShadow(){this.shadowRoot=this}}),Object.defineProperty(n,"is",{value:i.h,configurable:!0}),Yt(n,i,3)}catch(t){return o(t),n}},Zt=(t,e)=>e,Gt=(t,e,n)=>{n&&r.document&&n.map((([n,o,s])=>{const l=t,i=Jt(e,s),r=Kt(n);f.ael(l,o,i,r),(e.V=e.V||[]).push((()=>f.rel(l,o,i,r)))}))},Jt=(t,e)=>n=>{try{t.$hostElement$[e](n)}catch(e){o(e,t.$hostElement$)}},Kt=t=>({passive:!!(1&t),capture:!!(2&t)}),Qt=globalThis.HTMLElement||class{};function Xt(...t){return t.reduceRight(((t,e)=>e(t)),Qt)}var te=t=>f.R=t,ee=t=>Object.assign(f,t);function ne(t,e){Rt({o:{i:0,h:e.tagName},$hostElement$:e},t)}function oe(t){return t}export{Zt as F,c as H,Xt as M,tt as a,lt as c,$ as getAssetPath,Q as h,It as p,ne as render,j as setAssetPath,te as setNonce,ee as setPlatformOptions,oe as t}
1
+ var t=(t,e)=>{var n;Object.entries(null!=(n=e.o.t)?n:{}).map((([n,[o]])=>{if(31&o||32&o){const o=t[n],s=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);s&&Object.defineProperty(t,n,{get(){return s.get.call(this)},set(t){s.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.l.has(n)?e.l.get(n):o}}))},e=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},n=(t,e)=>e in t,o=(t,e)=>(0,console.error)(t,e),s=new Map,l="http://www.w3.org/1999/xlink",i=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],r="undefined"!=typeof window?window:{},c=r.HTMLElement||class{},f={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},u=(()=>{try{return!!r.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),a=!!u&&(()=>!!r.document&&Object.getOwnPropertyDescriptor(r.document.adoptedStyleSheets,"length").writable)(),h=!1,d=[],p=[],b=(t,e)=>n=>{t.push(n),h||(h=!0,e&&4&f.i?y(m):f.raf(m))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){o(t)}t.length=0},m=()=>{v(d),v(p),(h=d.length>0)&&f.raf(m)},y=t=>Promise.resolve(void 0).then(t),g=b(p,!0),$=t=>{const e=new URL(t,f.u);return e.origin!==r.location.origin?e.href:e.pathname},j=t=>f.u=t,O=t=>{const e=Y(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&N(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!S(t,x(t),!1).length)}));let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&Y(t,"childNodes").length&&O(t)}},w=t=>{const e=[];for(let n=0;n<t.length;n++){const o=t[n]["s-nr"]||void 0;o&&o.isConnected&&e.push(o)}return e};function N(t,e,n){let o,s=0,l=[];for(;s<t.length;s++){if(o=t[s],o["s-sr"]&&(!e||o["s-hn"]===e)&&(void 0===n||x(o)===n)&&(l.push(o),void 0!==n))return l;l=[...l,...N(o.childNodes,e,n)]}return l}var S=(t,e,n=!0)=>{const o=[];(n&&t["s-sr"]||!t["s-sr"])&&o.push(t);let s=t;for(;s=s.nextSibling;)x(s)!==e||!n&&s["s-sr"]||o.push(s);return o},C=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,k=(t,e,n)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const o=document.createTextNode("");if(o["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const s=e["s-cr"].parentNode;Y(s,n?"prepend":"appendChild").call(s,o),t["s-ol"]=o,t["s-sh"]=e["s-hn"]},x=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function E(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}function _(t,e){var n;if(!(e=e||(null==(n=t["s-ol"])?void 0:n.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=x(t)||"";return{slotNode:N(Y(e,"childNodes"),e.tagName,o)[0],slotName:o}}var A=t=>{if(t.__cloneNode)return;const e=t.__cloneNode=t.cloneNode;t.cloneNode=function(t){const n=e.call(this,!1);if(t){let t,e,o=0;const s=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"],l=this.__childNodes||this.childNodes;for(;o<l.length;o++)t=l[o]["s-nr"],e=s.every((t=>!l[o][t])),t&&(n.__appendChild?n.__appendChild(t.cloneNode(!0)):n.appendChild(t.cloneNode(!0))),e&&n.appendChild(l[o].cloneNode(!0))}return n}},M=t=>{t.__appendChild||(t.__appendChild=t.appendChild,t.appendChild=function(t){const{slotName:e,slotNode:n}=_(t,this);if(n){k(t,n);const o=S(n,e),s=o[o.length-1],l=Y(s,"parentNode"),i=Y(l,"insertBefore")(t,s.nextSibling);return E(n),O(this),i}return this.__appendChild(t)})},R=t=>{t.__removeChild||(t.__removeChild=t.removeChild,t.removeChild=function(t){return t&&void 0!==t["s-sn"]&&N(this.__childNodes||this.childNodes,this.tagName,t["s-sn"])&&t.isConnected?(t.remove(),void O(this)):this.__removeChild(t)})},F=t=>{t.__prepend||(t.__prepend=t.prepend,t.prepend=function(...e){e.forEach((e=>{"string"==typeof e&&(e=this.ownerDocument.createTextNode(e));const n=(e["s-sn"]=x(e))||"",o=N(Y(this,"childNodes"),this.tagName,n)[0];if(o){k(e,o,!0);const t=S(o,n)[0],s=Y(t,"parentNode"),l=Y(s,"insertBefore")(e,Y(t,"nextSibling"));return E(o),l}return 1===e.nodeType&&e.getAttribute("slot")&&(e.hidden=!0),t.__prepend(e)}))})},T=t=>{t.__append||(t.__append=t.append,t.append=function(...t){t.forEach((t=>{"string"==typeof t&&(t=this.ownerDocument.createTextNode(t)),this.appendChild(t)}))})},L=t=>{if(t.__insertAdjacentHTML)return;const e=t.insertAdjacentHTML;t.insertAdjacentHTML=function(t,n){if("afterbegin"!==t&&"beforeend"!==t)return e.call(this,t,n);const o=this.ownerDocument.createElement("_");let s;if(o.innerHTML=n,"afterbegin"===t)for(;s=o.firstChild;)this.prepend(s);else if("beforeend"===t)for(;s=o.firstChild;)this.append(s)}},B=t=>{t.insertAdjacentText=function(t,e){this.insertAdjacentHTML(t,e)}},D=t=>{t.__insertBefore||t.__insertBefore||(t.__insertBefore=t.insertBefore,t.insertBefore=function(t,e){const{slotName:n,slotNode:o}=_(t,this),s=this.__childNodes?this.childNodes:w(this.childNodes);if(o){let l=!1;if(s.forEach((s=>{if(s!==e&&null!==e);else{if(l=!0,null===e||n!==e["s-sn"])return void this.appendChild(t);if(n===e["s-sn"]){k(t,o);const n=Y(e,"parentNode");Y(n,"insertBefore")(t,e),E(o)}}})),l)return t}const l=null==e?void 0:e.__parentNode;return l&&!this.isSameNode(l)?this.appendChild(t):this.__insertBefore(t,e)})},P=t=>{if(t.__insertAdjacentElement)return;const e=t.insertAdjacentElement;t.insertAdjacentElement=function(t,n){return"afterbegin"!==t&&"beforeend"!==t?e.call(this,t,n):"afterbegin"===t?(this.prepend(n),n):"beforeend"===t?(this.append(n),n):n}},H=t=>{z("textContent",t),Object.defineProperty(t,"textContent",{get:function(){let t="";return(this.__childNodes?this.childNodes:w(this.childNodes)).forEach((e=>t+=e.textContent||"")),t},set:function(t){(this.__childNodes?this.childNodes:w(this.childNodes)).forEach((t=>{t["s-ol"]&&t["s-ol"].remove(),t.remove()})),this.insertAdjacentHTML("beforeend",t)}})},U=t=>{class e extends Array{item(t){return this[t]}}z("children",t),Object.defineProperty(t,"children",{get(){return this.childNodes.filter((t=>1===t.nodeType))}}),Object.defineProperty(t,"childElementCount",{get(){return this.children.length}}),z("firstChild",t),Object.defineProperty(t,"firstChild",{get(){return this.childNodes[0]}}),z("lastChild",t),Object.defineProperty(t,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),z("childNodes",t),Object.defineProperty(t,"childNodes",{get(){const t=new e;return t.push(...w(this.__childNodes)),t}})},W=t=>{t&&!t.__parentNode&&(z("parentNode",t),Object.defineProperty(t,"parentNode",{get:function(){var t;return(null==(t=this["s-ol"])?void 0:t.parentNode)||this.__parentNode},set:function(t){this.__parentNode=t}}))},V=["children","nextElementSibling","previousElementSibling"],q=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function z(t,e){if(!globalThis.Node||!globalThis.Element)return;let n;V.includes(t)?n=Object.getOwnPropertyDescriptor(Element.prototype,t):q.includes(t)&&(n=Object.getOwnPropertyDescriptor(Node.prototype,t)),n||(n=Object.getOwnPropertyDescriptor(e,t)),n&&Object.defineProperty(e,"__"+t,n)}function Y(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var I,Z,G=new WeakMap,J=t=>"sc-"+t.h,K=t=>"object"==(t=typeof t)||"function"===t,Q=(t,e,...n)=>{let o=null,s=null,l=null,i=!1,r=!1;const c=[],f=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?f(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!K(o))&&(o+=""),i&&r?c[c.length-1].p+=o:c.push(i?X(null,o):o),r=i)};if(f(n),e){e.key&&(s=e.key),e.name&&(l=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,et);const u=X(t,null);return u.v=e,c.length>0&&(u.m=c),u.$=s,u.j=l,u},X=(t,e)=>({i:0,O:t,p:null!=e?e:null,N:null,m:null,v:null,$:null,j:null}),tt={},et={forEach:(t,e)=>t.map(nt).forEach(e),map:(t,e)=>t.map(nt).map(e).map(ot)},nt=t=>({vattrs:t.v,vchildren:t.m,vkey:t.$,vname:t.j,vtag:t.O,vtext:t.p}),ot=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),Q(t.vtag,e,...t.vchildren||[])}const e=X(t.vtag,t.vtext);return e.v=t.vattrs,e.m=t.vchildren,e.$=t.vkey,e.j=t.vname,e},st=(t,e,n)=>null==t||K(t)?t:4&e?(n&&"string"==typeof t||"false"!==t)&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,lt=(t,e)=>{const n=t;return{emit:t=>it(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},it=(t,e,n)=>{const o=f.ce(e,n);return t.dispatchEvent(o),o},rt=(t,o,s,i,c,u)=>{if(s===i)return;let a=n(t,o),h=o.toLowerCase();if("class"===o){const e=t.classList,n=ft(s);let o=ft(i);e.remove(...n.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!n.includes(t))))}else if("style"===o){for(const e in s)i&&null!=i[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in i)s&&i[e]===s[e]||(e.includes("-")?t.style.setProperty(e,i[e]):t.style[e]=i[e])}else if("key"===o);else if("ref"===o)i&&At(i,t);else if(t.__lookupSetter__(o)||"o"!==o[0]||"n"!==o[1]){if("a"===o[0]&&o.startsWith("attr:")){const n=o.slice(5);let s;{const o=e(t);if(o&&o.o&&o.o.t){const t=o.o.t[n];t&&t[1]&&(s=t[1])}}return s||(s=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==i||!1===i?!1===i&&""!==t.getAttribute(s)||t.removeAttribute(s):t.setAttribute(s,!0===i?"":i))}if("p"===o[0]&&o.startsWith("prop:")){const e=o.slice(5);try{t[e]=i}catch(t){}return}{const e=K(i);if((a||e&&null!==i)&&!c)try{if(t.tagName.includes("-"))t[o]!==i&&(t[o]=i);else{const e=null==i?"":i;"list"===o?a=!1:null!=s&&t[o]===e||("function"==typeof t.__lookupSetter__(o)?t[o]=e:t.setAttribute(o,e))}}catch(t){}let n=!1;h!==(h=h.replace(/^xlink\:?/,""))&&(o=h,n=!0),null==i||!1===i?!1===i&&""!==t.getAttribute(o)||(n?t.removeAttributeNS(l,o):t.removeAttribute(o)):(!a||4&u||c)&&!e&&1===t.nodeType&&(i=!0===i?"":i,n?t.setAttributeNS(l,o,i):t.setAttribute(o,i))}}else if(o="-"===o[2]?o.slice(3):n(r,h)?h.slice(2):h[2]+o.slice(3),s||i){const e=o.endsWith(ut);o=o.replace(at,""),s&&f.rel(t,o,s,e),i&&f.ael(t,o,i,e)}},ct=/\s/,ft=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(ct):[]),ut="Capture",at=RegExp(ut+"$"),ht=(t,e,n)=>{const o=11===e.N.nodeType&&e.N.host?e.N.host:e.N,s=t&&t.v||{},l=e.v||{};for(const t of dt(Object.keys(s)))t in l||rt(o,t,s[t],void 0,n,e.i);for(const t of dt(Object.keys(l)))rt(o,t,s[t],l[t],n,e.i)};function dt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var pt=!1,bt=!1,vt=!1,mt=!1,yt=[],gt=[],$t=(t,e,n)=>{var o;const s=e.m[n];let l,i,c,f=0;if(pt||(vt=!0,"slot"===s.O&&(s.i|=s.m?2:1)),null!=s.p)l=s.N=r.document.createTextNode(s.p);else if(1&s.i)l=s.N=r.document.createTextNode(""),ht(null,s,mt);else{if(mt||(mt="svg"===s.O),!r.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=s.N=r.document.createElementNS(mt?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!pt&&2&s.i?"slot-fb":s.O),mt&&"foreignObject"===s.O&&(mt=!1),ht(null,s,mt),s.m){const e="template"===s.O?l.content:l;for(f=0;f<s.m.length;++f)i=$t(t,s,f),i&&e.appendChild(i)}"svg"===s.O?mt=!1:"foreignObject"===l.tagName&&(mt=!0)}return l["s-hn"]=Z,3&s.i&&(l["s-sr"]=!0,l["s-cr"]=I,l["s-sn"]=s.j||"",l["s-rf"]=null==(o=s.v)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const s=this["s-cr"].parentElement;return(s.__childNodes?s.childNodes:w(s.childNodes)).forEach((t=>{o===x(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}(l),c=t&&t.m&&t.m[n],c&&c.O===s.O&&t.N&&jt(t.N)),l},jt=t=>{f.i|=1;const e=t.closest(Z.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of n?o.reverse():o)null!=t["s-sh"]&&(Mt(e,t,null!=n?n:null),t["s-sh"]=void 0,vt=!0)}f.i&=-2},Ot=(t,e)=>{f.i|=1;const n=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let e=t;for(;e=e.nextSibling;)e&&e["s-sn"]===t["s-sn"]&&e["s-sh"]===Z&&n.push(e)}for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==Z&&o["s-ol"]&&(Mt(Ct(o).parentNode,o,Ct(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,vt=!0),e&&Ot(o,e)}f.i&=-2},wt=(t,e,n,o,s,l)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for("template"===n.O&&(r=r.content);s<=l;++s)o[s]&&(i=$t(null,n,s),i&&(o[s].N=i,Mt(r,i,Ct(e))))},Nt=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.N;_t(e),t&&(bt=!0,t["s-ol"]?t["s-ol"].remove():Ot(t,!0),t.remove())}}},St=(t,e,n=!1)=>t.O===e.O&&("slot"===t.O?t.j===e.j:n?(n&&!t.$&&e.$&&(t.$=e.$),!0):t.$===e.$),Ct=t=>t&&t["s-ol"]||t,kt=(t,e,n=!1)=>{const o=e.N=t.N,s=t.m,l=e.m,i=e.O,r=e.p;let c;null==r?(mt="svg"===i||"foreignObject"!==i&&mt,"slot"!==i||pt||t.j!==e.j&&(e.N["s-sn"]=e.j||"",jt(e.N.parentElement)),ht(t,e,mt),null!==s&&null!==l?((t,e,n,o,s=!1)=>{let l,i,r=0,c=0,f=0,u=0,a=e.length-1,h=e[0],d=e[a],p=o.length-1,b=o[0],v=o[p];const m="template"===n.O?t.content:t;for(;r<=a&&c<=p;)if(null==h)h=e[++r];else if(null==d)d=e[--a];else if(null==b)b=o[++c];else if(null==v)v=o[--p];else if(St(h,b,s))kt(h,b,s),h=e[++r],b=o[++c];else if(St(d,v,s))kt(d,v,s),d=e[--a],v=o[--p];else if(St(h,v,s))"slot"!==h.O&&"slot"!==v.O||Ot(h.N.parentNode,!1),kt(h,v,s),Mt(m,h.N,d.N.nextSibling),h=e[++r],v=o[--p];else if(St(d,b,s))"slot"!==h.O&&"slot"!==v.O||Ot(d.N.parentNode,!1),kt(d,b,s),Mt(m,d.N,h.N),d=e[--a],b=o[++c];else{for(f=-1,u=r;u<=a;++u)if(e[u]&&null!==e[u].$&&e[u].$===b.$){f=u;break}f>=0?(i=e[f],i.O!==b.O?l=$t(e&&e[c],n,f):(kt(i,b,s),e[f]=void 0,l=i.N),b=o[++c]):(l=$t(e&&e[c],n,c),b=o[++c]),l&&Mt(Ct(h.N).parentNode,l,Ct(h.N))}r>a?wt(t,null==o[p+1]?null:o[p+1].N,n,o,c,p):c>p&&Nt(e,r,a)})(o,s,e,l,n):null!==l?(null!==t.p&&(o.textContent=""),wt(o,null,e,l,0,l.length-1)):!n&&null!==s&&Nt(s,0,s.length-1),mt&&"svg"===i&&(mt=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.p!==r&&(o.data=r)},xt=[],Et=t=>{let e,n,o;const s=t.__childNodes||t.childNodes;for(const t of s){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const s=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!(e["s-cn"]||e["s-nr"]||e["s-hn"]===t["s-hn"]||e["s-sh"]&&e["s-sh"]===t["s-hn"]))if(C(e,s)){let n=xt.find((t=>t.S===e));bt=!0,e["s-sn"]=e["s-sn"]||s,n?(n.S["s-sh"]=t["s-hn"],n.C=t):(e["s-sh"]=t["s-hn"],xt.push({C:t,S:e})),e["s-sr"]&&xt.map((t=>{C(t.S,e["s-sn"])&&(n=xt.find((t=>t.S===e)),n&&!t.C&&(t.C=n.C))}))}else xt.some((t=>t.S===e))||xt.push({S:e})}1===t.nodeType&&Et(t)}},_t=t=>{t.v&&t.v.ref&&yt.push((()=>t.v.ref(null))),t.m&&t.m.map(_t)},At=(t,e)=>{gt.push((()=>t(e)))},Mt=(t,e,n,o)=>{if("string"==typeof e["s-sn"]){11!==t.getRootNode().nodeType&&W(e),t.insertBefore(e,n);const{slotNode:s}=_(e);return s&&!o&&E(s),e}return t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n)},Rt=(t,e,n=!1)=>{var o,s,l,i,c;const u=t.$hostElement$,a=t.o,h=t.k||X(null,null),d=(t=>t&&t.O===tt)(e)?e:Q(null,null,e);if(Z=u.tagName,a._&&(d.v=d.v||{},a._.forEach((([t,e])=>{d.v[e]=u[t]}))),n&&d.v)for(const t of Object.keys(d.v))u.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(d.v[t]=u[t]);if(d.O=null,d.i|=4,t.k=d,d.N=h.N=u,pt=false,I=u["s-cr"],bt=!1,kt(h,d,n),f.i|=1,vt){Et(d.N);for(const t of xt){const e=t.S;if(!e["s-ol"]&&r.document){const t=r.document.createTextNode("");t["s-nr"]=e,Mt(e.parentNode,e["s-ol"]=t,e,n)}}for(const t of xt){const e=t.S,c=t.C;if(1===e.nodeType&&n&&(e["s-ih"]=null!=(o=e.hidden)&&o),c){const t=c.parentNode;let o=c.nextSibling;if(o&&1===o.nodeType){let n=null==(s=e["s-ol"])?void 0:s.previousSibling;for(;n;){let s=null!=(l=n["s-nr"])?l:null;if(s&&s["s-sn"]===e["s-sn"]&&t===(s.__parentNode||s.parentNode)){for(s=s.nextSibling;s===e||(null==s?void 0:s["s-sr"]);)s=null==s?void 0:s.nextSibling;if(!s||!s["s-nr"]){o=s;break}}n=n.previousSibling}}if((!o&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==o)&&e!==o){if(Mt(t,e,o,n),8===e.nodeType&&e.nodeValue.startsWith("s-nt-")){const t=r.document.createTextNode(e.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=e["s-hn"],t["s-sn"]=e["s-sn"],t["s-sh"]=e["s-sh"],t["s-sr"]=e["s-sr"],t["s-ol"]=e["s-ol"],t["s-ol"]["s-nr"]=t,Mt(e.parentNode,t,e,n),e.parentNode.removeChild(e)}1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(i=e["s-ih"])&&i)}e&&"function"==typeof c["s-rf"]&&c["s-rf"](c)}else 1===e.nodeType&&(e.hidden=!0)}}if(bt&&O(d.N),f.i&=-2,xt.length=0,!pt&&!(1&a.i)&&u["s-cr"]){const t=d.N.__childNodes||d.N.childNodes;for(const e of t)if(e["s-hn"]!==Z&&!e["s-sh"])if(n&&null==e["s-ih"]&&(e["s-ih"]=null!=(c=e.hidden)&&c),1===e.nodeType)e.hidden=!0;else if(3===e.nodeType&&e.nodeValue.trim()){const t=r.document.createComment("s-nt-"+e.nodeValue);t["s-sn"]=e["s-sn"],Mt(e.parentNode,t,e,n),e.parentNode.removeChild(e)}}I=void 0,yt.forEach((t=>t())),yt.length=0,gt.forEach((t=>t())),gt.length=0},Ft=(t,e)=>{if(e&&!t.A&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.A=()=>{e["s-p"].splice(n-1,1),o()})))}},Tt=(t,e)=>{if(t.i|=16,4&t.i)return void(t.i|=512);Ft(t,t.M);const n=()=>Lt(t,e);if(!e)return g(n);queueMicrotask((()=>{n()}))},Lt=(t,e)=>{const n=t.$hostElement$,o=n;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let s;return s=Vt(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),s=Bt(s,(()=>Vt(o,"componentWillRender",void 0,n))),Bt(s,(()=>Pt(t,o,e)))},Bt=(t,e)=>Dt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Dt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Pt=async(t,e,n)=>{var o;const l=t.$hostElement$,i=l["s-rc"];n&&(t=>{const e=t.o;((t,e)=>{var n,o,l;const i=J(e),c=s.get(i);if(!r.document)return i;if(t=11===t.nodeType?t:r.document,c)if("string"==typeof c){let s,l=G.get(t=t.head||t);if(l||G.set(t,l=new Set),!l.has(i)){s=r.document.createElement("style"),s.textContent=c;const h=null!=(n=f.R)?n:function(){var t,e,n;return null!=(n=null==(e=null==(t=r.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?n:void 0}();if(null!=h&&s.setAttribute("nonce",h),!(1&e.i))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(u){const e=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(c),a?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=c+e.textContent:t.prepend(s)}else t.append(s);1&e.i&&t.insertBefore(s,null),4&e.i&&(s.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),l&&l.add(i)}}else{let e=G.get(t);if(e||G.set(t,e=new Set),!e.has(i)){const n=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(c.constructor===n.CSSStyleSheet)o=c;else{o=new n.CSSStyleSheet;for(let t=0;t<c.cssRules.length;t++)o.insertRule(c.cssRules[t].cssText,t)}a?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],e.add(i)}}})(t.$hostElement$.getRootNode(),e)})(t);Ht(t,e,l,n),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>Ut(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.i|=4,e.length=0)}},Ht=(t,e,n,s)=>{try{e=e.render(),t.i&=-17,t.i|=2,Rt(t,e,s)}catch(e){o(e,t.$hostElement$)}return null},Ut=t=>{const e=t.$hostElement$,n=e,o=t.M;Vt(n,"componentDidRender",void 0,e),64&t.i?Vt(n,"componentDidUpdate",void 0,e):(t.i|=64,qt(e),Vt(n,"componentDidLoad",void 0,e),t.F(e),o||Wt()),t.A&&(t.A(),t.A=void 0),512&t.i&&y((()=>Tt(t,!1))),t.i&=-517},Wt=()=>{y((()=>it(r,"appload",{detail:{namespace:"boreal-web-components"}})))},Vt=(t,e,n,s)=>{if(t&&t[e])try{return t[e](n)}catch(t){o(t,s)}},qt=t=>t.classList.add("hydrated"),zt=(t,n,s,l)=>{const i=e(t);if(!i)return;const r=t,c=i.l.get(n),f=i.i,u=r;if(!((s=st(s,l.t[n][0],!!(64&l.i)))===c||Number.isNaN(c)&&Number.isNaN(s))){if(i.l.set(n,s),l.T){const t=l.T[n];t&&t.map((t=>{try{const[[e,o]]=Object.entries(t);(128&f||1&o)&&(u?u[e](s,c,n):i.L.push((()=>{i.B[e](s,c,n)})))}catch(t){o(t,r)}}))}if(2&f){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(s,c,n)&&!(16&f))return;16&f||Tt(i,!1)}}},Yt=(t,n,o)=>{var s,l;const r=t.prototype;64&n.i&&1&o&&i.forEach((t=>{const n=r[t];Object.defineProperty(r,t,{value(...o){var s;const l=e(this),i=this;i?"function"==typeof n&&n.call(i,...o):null==(s=null==l?void 0:l.D)||s.then((e=>{const n=e[t];"function"==typeof n&&n.call(e,...o)}))}})}));{t.watchers&&!n.T&&(n.T=t.watchers),t.deserializers&&!n.P&&(n.P=t.deserializers),t.serializers&&!n.H&&(n.H=t.serializers);const o=Object.entries(null!=(s=n.t)?s:{});o.map((([t,[o]])=>{if(31&o||32&o){const{get:s,set:l}=Object.getOwnPropertyDescriptor(r,t)||{};s&&(n.t[t][0]|=2048),l&&(n.t[t][0]|=4096),Object.defineProperty(r,t,{get(){return s?s.apply(this):((t,n)=>e(this).l.get(n))(0,t)},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(s){const i=e(this);if(i){if(l)return void 0===(32&o?this[t]:i.$hostElement$[t])&&i.l.get(t)&&(s=i.l.get(t)),l.call(this,st(s,o,!!(64&n.i))),void zt(this,t,s=32&o?this[t]:i.$hostElement$[t],n);zt(this,t,s,n)}}})}}));{const s=new Map;r.attributeChangedCallback=function(t,l,i){f.jmp((()=>{var c;const f=s.get(t),u=e(this);if(this.hasOwnProperty(f),r.hasOwnProperty(f)&&"number"==typeof this[f]&&this[f]==i)return;if(null==f){const e=null==u?void 0:u.i;if(u&&e&&!(8&e)&&i!==l){const o=this,s=null==(c=n.T)?void 0:c[t];null==s||s.forEach((n=>{const[[s,r]]=Object.entries(n);null!=o[s]&&(128&e||1&r)&&o[s].call(o,i,l,t)}))}return}const a=o.find((([t])=>t===f));a&&4&a[1][0]&&(i=null!==i&&"false"!==i);const h=Object.getOwnPropertyDescriptor(r,f);i==this[f]||h.get&&!h.set||(this[f]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=n.T)?l:{}),...o.filter((([t,e])=>31&e[0])).map((([t,e])=>{var o;const l=e[1]||t;return s.set(l,t),512&e[0]&&(null==(o=n._)||o.push([t,l])),l}))]))}}return t},It=(n,l)=>{const i={i:l[0],h:l[1]};try{i.t=l[2],i.U=l[3],i.T=n.T,i.P=n.P,i.H=n.H,i._=[],!(1&i.i)&&256&i.i?(t=>{A(t),M(t),T(t),F(t),P(t),L(t),B(t),D(t),H(t),U(t),R(t)})(n.prototype):A(n.prototype);const c=n.prototype.connectedCallback,a=n.prototype.disconnectedCallback;return Object.assign(n.prototype,{__hasHostListenerAttached:!1,__registerHost(){((e,n)=>{const o={i:0,$hostElement$:e,o:n,l:new Map,W:new Map};o.D=new Promise((t=>o.F=t)),e["s-p"]=[],e["s-rc"]=[];const s=o;e.__stencil__getHostRef=()=>s,512&n.i&&t(e,o)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const t=e(this);if(!t)return;Gt(this,t,i.U),this.__hasHostListenerAttached=!0}(t=>{if(!(1&f.i)){const n=e(t);if(!n)return;const l=n.o,i=()=>{};if(1&n.i)Gt(t,n,l.U),(null==n?void 0:n.B)||(null==n?void 0:n.D)&&n.D.then((()=>{}));else{n.i|=1,12&l.i&&(t=>{if(!r.document)return;const e=t["s-cr"]=r.document.createComment("");e["s-cn"]=!0,Mt(t,e,t.firstChild)})(t);{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){Ft(n,n.M=e);break}}l.t&&Object.entries(l.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let l;try{if(!(32&e.i)&&(e.i|=32,l=t.constructor,customElements.whenDefined(t.localName).then((()=>e.i|=128)),l&&l.style)){let t;"string"==typeof l.style&&(t=l.style);const e=J(n);if(!s.has(e)){const o=()=>{};((t,e,n)=>{let o=s.get(t);u&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,s.set(t,o)})(e,t,!!(1&n.i)),o()}}const o=e.M,i=()=>Tt(e,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()}catch(n){o(n,t),e.A&&(e.A(),e.A=void 0),e.F&&e.F(t)}})(t,n,l)}i()}})(this),c&&c.call(this)},disconnectedCallback(){(async t=>{if(!(1&f.i)){const n=e(t);(null==n?void 0:n.V)&&(n.V.map((t=>t())),n.V=void 0)}G.has(t)&&G.delete(t),t.shadowRoot&&G.has(t.shadowRoot)&&G.delete(t.shadowRoot)})(this),a&&a.call(this)},__attachShadow(){this.shadowRoot=this}}),Object.defineProperty(n,"is",{value:i.h,configurable:!0}),Yt(n,i,3)}catch(t){return o(t),n}},Zt=(t,e)=>e,Gt=(t,e,n)=>{n&&r.document&&n.map((([n,o,s])=>{const l=t,i=Jt(e,s),r=Kt(n);f.ael(l,o,i,r),(e.V=e.V||[]).push((()=>f.rel(l,o,i,r)))}))},Jt=(t,e)=>n=>{try{t.$hostElement$[e](n)}catch(e){o(e,t.$hostElement$)}},Kt=t=>({passive:!!(1&t),capture:!!(2&t)}),Qt=globalThis.HTMLElement||class{};function Xt(...t){return t.reduceRight(((t,e)=>e(t)),Qt)}var te=t=>f.R=t,ee=t=>Object.assign(f,t);function ne(t,e){Rt({o:{i:0,h:e.tagName},$hostElement$:e},t)}function oe(t){return t}export{Zt as F,tt as H,Xt as M,c as a,lt as c,$ as getAssetPath,Q as h,It as p,ne as render,j as setAssetPath,te as setNonce,ee as setPlatformOptions,oe as t}
@@ -0,0 +1 @@
1
+ import{p as t,M as o,h as e,H as i,t as r}from"./index.js";import{g as a,a as s}from"./p-DrkDx75U.js";const l=t(class extends(o(s)){constructor(t){super(!1),!1!==t&&this.__registerHost(),this.multiline=!1,this.disabled=!1,this.floatingOptions={},this.isVisible=!1}get options(){return{placement:this.floatingOptions.placement??"top",offset:a(this.floatingOptions?.hideArrow,this.floatingOptions.offset,4),arrow:this.floatingOptions.hideArrow?void 0:this.arrowElement,strategy:"fixed"}}get hooks(){return{onPositionUpdate:t=>this.handlePosition(t),onBeforeShow:()=>this.validateShow(),onBeforeHide:t=>this.validateHide(t),subscribeToTrigger:t=>this.subscribe(t)}}get canShowArrow(){return!this.floatingOptions.hideArrow||!1}get getPlacement(){return this.floatingOptions.placement||"top"}validateShow(){return!this.disabled}validateHide(t){return!this.floatingOptions.stayOnHover||void 0===t||!t.isConnected||!this.floatingContent.contains(t)&&this.floatingContent!==t}handlePosition(t){this.floatingContent.setAttribute("data-placement",t.placement),this.setArrowPosition(t)}setArrowPosition(t){if(t.middlewareData?.arrow&&!this.disabled&&this.arrowElement?.isConnected){const{x:o,y:e}=t.middlewareData.arrow;Object.assign(this.arrowElement.style,{left:null!=o?`${o}px`:"",top:null!=e?`${e}px`:""})}}get hasMultiline(){return void 0!==this.multiline&&this.multiline}get tooltipStyles(){return{"tooltip-content":!0,"tooltip-content--multiline":this.hasMultiline}}subscribe(t){void 0!==t&&(t.setAttribute("part","tooltip-trigger"),t.setAttribute("ariaDescribedBy","tooltip-content"),t.addEventListener("mouseenter",(()=>this.show())),t.addEventListener("mouseleave",(t=>this.hide(t.target))))}render(){return e(i,{key:"d86d09d733df866cd6575dc5b2b6cd8f9193de19",class:"tooltip"},e("div",{key:"f277bed354746928e0bca3a85103b70437a34692",id:"tooltip-content",part:"tooltip-content",class:this.tooltipStyles,popover:"manual",role:"tooltip","aria-hidden":this.isVisible?"false":"true","data-placement":this.getPlacement,"data-multiline":this.multiline,"data-hidearrow":this.canShowArrow,ref:t=>this.floatingContent=t},this.canShowArrow&&e("div",{key:"c22acfac98e8ebb09a0d967d2a82d438d43cecb2",class:"tooltip-arrow",part:"arrow",ref:t=>this.arrowElement=t}),e("slot",{key:"373a096f06baf800e958e39dd606994c1ca23ac1"})))}get el(){return this}static get style(){return'@charset "UTF-8";:root{--tooltip-arrow-size:var(--boreal-spacing-s);--tooltip-width:320px}.tooltip-content{position:fixed;margin:0;overflow:visible;border-radius:var(--boreal-radius-xs2);background:var(--boreal-ui-black);color:var(--boreal-text-inverse);padding:var(--boreal-spacing-2xs) var(--boreal-spacing-s);font-size:var(--boreal-typography-font-size-xs);line-height:var(--boreal-typography-line-height-xs);font-family:var(--boreal-typography-font-family-primary);border:var(--boreal-spacing-2xs) solid var(--boreal-ui-black);font-weight:var(--boreal-typography-font-weight-regular)}.tooltip-content--multiline{white-space:normal;max-width:var(--tooltip-width, 320px);word-break:break-word;text-align:center}.tooltip-arrow{position:absolute;width:var(--tooltip-arrow-size);height:var(--tooltip-arrow-size);pointer-events:none;z-index:-1}.tooltip-arrow::before{content:"";position:absolute;width:var(--tooltip-arrow-size);height:var(--tooltip-arrow-size);background:var(--boreal-ui-black);-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-transform-origin:center;transform-origin:center;inset:0}.tooltip-content[data-placement^=top] .tooltip-arrow{bottom:calc(var(--tooltip-arrow-size) / -2)}.tooltip-content[data-placement^=bottom] .tooltip-arrow{top:calc(var(--tooltip-arrow-size) / -2)}.tooltip-content[data-placement^=left] .tooltip-arrow{right:calc(var(--tooltip-arrow-size) / -2)}.tooltip-content[data-placement^=right] .tooltip-arrow{left:calc(var(--tooltip-arrow-size) / -2)}'}},[772,"bds-tooltip",{multiline:[4],disabled:[4],floatingOptions:[16],isVisible:[32]}]);function n(){"undefined"!=typeof customElements&&["bds-tooltip"].forEach((t=>{"bds-tooltip"===t&&(customElements.get(r(t))||customElements.define(r(t),l))}))}export{l as B,n as d}
@@ -0,0 +1 @@
1
+ import{p as t,a as e,h as a,H as r,t as o}from"./index.js";import{C as i}from"./p-Bfazyxqi.js";import{i as s}from"./p-fUK0GCeC.js";import{d as l}from"./p-B6e9eIHB.js";const h="md",p={link:{states:[i.DISABLED],size:["sm",h]},label:{states:[i.DISABLED],required:!0,canUseTooltip:!0},heading:{canUseTooltip:!0},subheading:{canUseTooltip:!0},helper:{states:[i.ERROR]},display:{size:["xs","sm",h,"lg","xl"]}},y=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.inheritedAttributes={},this.variant="display",this.size=h,this.state=i.DEFAULT,this.rel="",this.customClass="",this.element="p",this.align="start",this.ellipsis=!1,this.maxLines=1,this.tooltipText="",this.required=!1,this.htmlFor=void 0,this.href=null,this.target=null,this.downloadable=!1,this.filename="download",this.sanitizedHref=""}async updateSanitizedHref(){if("a"===this.getTagName&&null!==this.href){const{sanitizeUrl:t}=await import("./p-noyWJ11s.js").then((function(t){return t.i}));this.sanitizedHref=t(this.href)}else this.sanitizedHref=""}async componentWillLoad(){"a"===this.getTagName&&null!==this.href&&await this.updateSanitizedHref(),this.inheritedAttributes={...s(this.el)}}get getTagName(){return"link"===this.variant?"a":this.element.toLowerCase()}getVariantConfig(){return p[this.variant]??{}}getAccessibilityTags(){const{required:t=!1}=this.getVariantConfig(),e=["a","label"].includes(this.getTagName);return{"aria-required":this.required&&t,"aria-disabled":this.state===i.DISABLED&&e}}getVariantStateStyles(){const t=this.getVariantConfig();return{[`bds-typography--${this.variant}`]:!0,[`bds-typography--align-${this.align}`]:!0,[`bds-typography--${this.state}`]:!(!t?.states||!t?.states.includes(this.state)),[`bds-typography--size-${this.size}`]:!(!t?.size||!t?.size.includes(this.size)),"bds-typography--required":!(!t?.required||!this.required),"bds-typography--ellipsis":this.ellipsis&&this.maxLines<=1,"bds-typography--ellipsis-multiline":this.ellipsis&&this.maxLines>1,[this.customClass]:""!==this.customClass}}render(){const t=this.getTagName,e={...(o=this,s=t,{a:{href:o.state!==i.DISABLED?o.sanitizedHref:null,target:o.target,download:o.downloadable?o.filename:null,rel:"_blank"===o.target?"noopener noreferrer":o.rel},label:{htmlFor:o.htmlFor}}[s]||{}),...this.inheritedAttributes,...this.getAccessibilityTags()};var o,s;const l=this.getVariantStateStyles(),{canUseTooltip:h=null,required:p=null}=this.getVariantConfig();return a(r,{key:"ab4e3734b72e12d49cd91b82da34c9a74a806fb1",class:"bds-typography "+(this.state===i.DISABLED?"bds-typography--disabled-cursor":"")},a(t,{key:"166bf124185b9c713afbca95b61a54356a214537",class:l,style:{webkitLineClamp:this.maxLines},...e},a("slot",{key:"5bc61723dd8942560c7308f0d3a4ba330d06695d"}),this.required&&p&&a("em",{key:"f30ff90c2600b262b155dbcbfaba63c1e54b68e9",class:"bds-typography__required-indicator","aria-hidden":"true"},"*"),this.tooltipText&&h&&a("span",{key:"0639b26cdb61369b7fecb2267ff3b543f139564b",class:"bds-typography__info"},a("span",{key:"e007db27b60782daf0863022573b61dfc2b3f9cf",class:"bds-typography__info-icon bds-icon-info-circle","aria-label":this.tooltipText}),a("bds-tooltip",{key:"9ad52be88f97084406613d990ef7d75607837bb8"},this.tooltipText))))}get el(){return this}static get watchers(){return{href:[{updateSanitizedHref:0}]}}static get style(){return'@charset "UTF-8";.bds-typography__info{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}bds-typography.bds-typography--disabled-cursor{cursor:not-allowed}.bds-typography{display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:var(--boreal-typography-font-family-primary);font-weight:var(--boreal-typography-font-weight-regular)}.bds-typography__required-indicator{color:var(--boreal-icon-danger-base);font-weight:var(--boreal-typography-font-weight-regular)}.bds-typography__info-icon{color:var(--boreal-icon-default-light)}.bds-typography--heading,.bds-typography--subheading{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-3xs)}.bds-typography--label{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-3xs)}.bds-typography--display{display:block}.bds-typography--caption,.bds-typography--helper,.bds-typography--link{display:inline-block}.bds-typography--caption{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-default-light)}.bds-typography--helper{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-sm);color:var(--boreal-text-default-light)}.bds-typography--link{font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-primary-base);text-decoration:none}.bds-typography--link:hover{text-decoration:underline}.bds-typography--link:visited{color:var(--boreal-text-primary-base)}.bds-typography--link:active{color:var(--boreal-text-primary-dark)}.bds-typography--link.bds-typography--size-sm{font-size:var(--boreal-typography-font-size-xs)}.bds-typography--link.bds-typography--size-md{font-size:var(--boreal-typography-font-size-sm)}.bds-typography--code{font-family:var(--boreal-typography-font-family-secondary);font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default);line-height:var(--boreal-typography-line-height-md);overflow-wrap:break-word;background-color:var(--boreal-bg-neutral);padding:var(--boreal-spacing-3xs) var(--boreal-spacing-xs);border-radius:var(--boreal-radius-xs);display:inline;box-decoration-break:clone;-webkit-box-decoration-break:clone}.bds-typography--label{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-default-darker)}.bds-typography--display{font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default)}.bds-typography--display.bds-typography--size-sm{font-size:var(--boreal-typography-font-size-xl);line-height:var(--boreal-typography-line-height-xl)}.bds-typography--display.bds-typography--size-md{font-size:var(--boreal-typography-font-size-2xl);line-height:var(--boreal-typography-line-height-2xl)}.bds-typography--display.bds-typography--size-lg{font-size:var(--boreal-typography-font-size-3xl);line-height:var(--boreal-typography-line-height-3xl);font-weight:var(--boreal-typography-font-weight-light)}.bds-typography--display.bds-typography--size-xl{font-size:var(--boreal-typography-font-size-4xl);line-height:var(--boreal-typography-line-height-4xl);font-weight:var(--boreal-typography-font-weight-light)}.bds-typography--heading{font-size:var(--boreal-typography-font-size-lg);line-height:var(--boreal-typography-line-height-lg);font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default)}.bds-typography h1.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-4xl);line-height:var(--boreal-typography-line-height-4xl)}.bds-typography h2.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-3xl);line-height:var(--boreal-typography-line-height-3xl)}.bds-typography h3.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-2xl);line-height:var(--boreal-typography-line-height-2xl)}.bds-typography h4.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-xl);line-height:var(--boreal-typography-line-height-xl)}.bds-typography h5.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-lg);line-height:var(--boreal-typography-line-height-lg)}.bds-typography h6.bds-typography--heading{font-size:var(--boreal-typography-font-size-md);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-md)}.bds-typography--subheading{font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md);font-weight:var(--boreal-typography-font-weight-semibold)}.bds-typography--align-start{text-align:start}.bds-typography--align-center{text-align:center}.bds-typography--align-end{text-align:end}.bds-typography--align-inherit{text-align:inherit}.bds-typography--error{color:var(--boreal-text-danger-base)}.bds-typography--disabled{color:var(--boreal-text-disabled);pointer-events:none;cursor:not-allowed}.bds-typography--disabled .bds-typography__required-indicator{color:var(--boreal-text-danger-light)}.bds-typography--ellipsis{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.bds-typography--ellipsis-multiline{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal;width:100%}'}},[260,"bds-typography",{variant:[513],size:[513],state:[513],rel:[1],customClass:[1,"custom-class"],element:[1],align:[1],ellipsis:[4],maxLines:[2,"max-lines"],tooltipText:[1,"tooltip-text"],required:[516],htmlFor:[1,"html-for"],href:[1],target:[1],downloadable:[4],filename:[1],sanitizedHref:[32]},void 0,{href:[{updateSanitizedHref:0}]}]);function n(){"undefined"!=typeof customElements&&["bds-typography","bds-tooltip"].forEach((t=>{switch(t){case"bds-typography":customElements.get(o(t))||customElements.define(o(t),y);break;case"bds-tooltip":customElements.get(o(t))||l()}}))}export{y as B,n as d}
@@ -0,0 +1 @@
1
+ const o={HORIZONTAL:"horizontal",VERTICAL:"vertical"};export{o as O}
@@ -0,0 +1 @@
1
+ import{K as t,L as n,a as e}from"./p-yLNcMg2E.js";import{O as i}from"./p-CPvuMm5C.js";const s={KEYDOWN:"keydown",KEYUP:"keyup"},r={...i,BOTH:"both"},o={ROVING_TABINDEX:"roving-tabindex",ARIA_ACTIVE_DESCENDANT:"aria-activedescendant"},l="first",a="last";function c(t){return null!=t}function u(t,n){const e=t[n];if(null==e)return;const i=t.findIndex((t=>"0"===t.getAttribute("tabindex")));e.setAttribute("tabindex","0"),e.focus(),-1!==i&&i!==n&&t[i].setAttribute("tabindex","-1")}function h(t){return null!=t}function f(t,n){t.forEach(((t,e)=>{0===t.id.length&&(t.id=`${n}-${e}-${Math.random().toString(36).slice(2,7)}`)}))}function d(t,n,e,i){const s=t[n];null!=s&&(f(t,i),t.forEach((t=>t.setAttribute("tabindex","-1"))),e.setAttribute("aria-activedescendant",s.id),s.scrollIntoView({block:"nearest"}))}function v(t,n,e,i,s){const r=t.flat().filter(h),o=t[n]?.[e];null!=o&&(f(r,s),r.forEach((t=>t.setAttribute("tabindex","-1"))),i.setAttribute("aria-activedescendant",o.id),o.scrollIntoView({block:"nearest"}))}function b(t,n,e){if(n===o.ARIA_ACTIVE_DESCENDANT){const n=e?.getAttribute("aria-activedescendant");return null==n?-1:t.findIndex((t=>t.id===n))}return t.indexOf(document.activeElement)}function g(t,n,e){if(n===o.ARIA_ACTIVE_DESCENDANT){const n=e?.getAttribute("aria-activedescendant");if(null!=n)for(let e=0;e<t.length;e++)for(let i=0;i<t[e].length;i++)if(t[e][i]?.id===n)return{row:e,col:i};return{row:-1,col:-1}}const i=document.activeElement;for(let n=0;n<t.length;n++)for(let e=0;e<t[n].length;e++)if(t[n][e]===i)return{row:n,col:e};return{row:-1,col:-1}}function p(t){return null!=t}function w(t){const n=[];return t.forEach(((t,e)=>{t.forEach(((t,i)=>{p(t)&&n.push({row:e,col:i,cell:t})}))})),n}function y(t,n){return t[n]?.map(((t,e)=>p(t)?{row:n,col:e,cell:t}:null)).filter((t=>null!=t))??[]}function m(t,n,e,i){const s=t.length;let r=n;for(let n=0;n<s;n++){if(r<0||r>=s){if(!i)return-1;r=r<0?s-1:0}if(y(t,r).length>0)return r;r+=e}return-1}const A={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};function x(t){return t in A}const k={ctrl:e.Control,cmd:e.Meta,win:e.Meta,option:e.Alt,space:t.Space};function M(t){if(" "===t)return" ";const n=t.trim().toLowerCase();return k[n]??n}function N(t){const n=(Array.isArray(t)?t:t.split("+")).map(M),e=n.filter((t=>x(t)));return{keys:n.filter((t=>!x(t))),modifiers:e}}function E(t,n){const e=[...t].sort();return[...Object.keys(A).filter((t=>n.includes(t))),...e].join("+")}class C{constructor(t={preventDefault:!0}){this._bindings=new Map,this._allowedKeys=new Set,this._pressedKeys=new Set,this._logger=new n,this._abortController=null,this._root=null,this._strategyType=o.ROVING_TABINDEX,this._idPrefix="bds-nav-item",this._defaults=t}attach(t){this.detach(),this._root=t,this._abortController=new AbortController;const{signal:n}=this._abortController,e=t=>this._dispatchKeyEvent(t),i=()=>this._pressedKeys.clear();return t.addEventListener(s.KEYDOWN,e,{signal:n}),t.addEventListener(s.KEYUP,e,{signal:n}),t.addEventListener("focusout",i,{signal:n}),globalThis.addEventListener("blur",i,{signal:n}),this}detach(){this._abortController?.abort(),this._abortController=null,this._root=null,this._pressedKeys.clear()}_ensureAttached(t){return null!=this._root&&null!=this._abortController||(this._logger.warn("KeyboardController",`${t}() was called before attach(). Call attach(el) first.`),!1)}_rebuildAllowedKeys(){this._allowedKeys.clear(),this._bindings.forEach((t=>{for(const n of[...t.keys,...t.modifiers])this._allowedKeys.add(n)}))}_dispatchKeyEvent(t){const n=t.key.toLowerCase(),e=t.type===s.KEYDOWN,i=t.type===s.KEYUP;if(!this._allowedKeys.has(n))return void(!x(n)&&i&&this._pressedKeys.delete(n));!x(n)&&e&&this._pressedKeys.add(n);const r=Object.keys(A).filter((n=>A[n](t))),o=E(Array.from(this._pressedKeys),r);let l=this._bindings.get(o);void 0===l&&this._pressedKeys.size>1&&(l=this._bindings.get(E([n],r))),void 0!==l&&(l.options.preventDefault&&e&&t.preventDefault(),this._matchesTrigger(l,t)&&(l.options.preventDefault&&i&&t.preventDefault(),l.options.stopPropagation&&t.stopPropagation(),l.handler(t))),!x(n)&&i&&this._pressedKeys.delete(n)}_matchesTrigger(t,n){const e=t.options.triggers??[s.KEYDOWN];return n.type===s.KEYDOWN&&e.includes(s.KEYDOWN)?!n.repeat||Boolean(t.options.repeat):!(n.type!==s.KEYUP||!e.includes(s.KEYUP))}set(t,n,e){if(Array.isArray(t)){const i=t.map(M);if(!i.some((t=>x(t))))return i.forEach((t=>this.set(t,n,e))),this}const{keys:i,modifiers:s}=N(t),r=E(i,s),o={...this._defaults,...e};for(const t of[...i,...s])this._allowedKeys.add(t);return this._bindings.set(r,{keys:i,modifiers:s,handler:n,options:o}),this}setActivateHandler(n,e){return this.set([t.Enter,t.Space],n,e)}onFocusOut(t){return null==this._root||null==this._abortController||this._root.addEventListener("focusout",t,{signal:this._abortController.signal}),this}rovingTabindex(t,n){return 0===t.length||u(t,Math.max(0,Math.min(n,t.length-1))),this}ariaActiveDescendant(t,n,e){if(0===t.length)return this;const i=e?.container??this._root;if(null==i)return this;const s=e?.idPrefix??"bds-nav-item";return d(t,Math.max(0,Math.min(n,t.length-1)),i,s),this}applyFocus(t,n){return this._strategyType===o.ARIA_ACTIVE_DESCENDANT?this.ariaActiveDescendant(t,n,{idPrefix:this._idPrefix}):this.rovingTabindex(t,n)}setLinearNavigation(n){return this._ensureAttached("setLinearNavigation")?(function(n,e){const{orientation:i=r.BOTH,wrap:s=!0,focusStrategy:c={type:o.ROVING_TABINDEX},initialActiveSelector:h,onNavigate:f,onItemActive:v,onActivate:g,activateKeys:p=[t.Enter,t.Space],onEscape:w,repeatThrottleMs:y=100}=n,m=c.type,A=c.type===o.ARIA_ACTIVE_DESCENDANT?c.idPrefix??`${e.root?.tagName.toLowerCase()??"bds-nav"}-item`:"bds-nav-item";e.onStrategyResolved(m,A);const x="function"==typeof n.items?n.items:()=>Array.from(e.root?.querySelectorAll(n.items)??[]);let k=-1;const M=(t,n)=>{const i=x();if(0===i.length)return;let r,c=b(i,m,e.root);if(-1===c&&null!=n&&(c=i.indexOf(n)),t===l)r=0;else if(t===a)r=i.length-1;else{const n=(-1===c?1===t?-1:0:c)+t;r=n<0?s?i.length-1:0:n>=i.length?s?0:i.length-1:n}null!=v&&m===o.ARIA_ACTIVE_DESCENDANT&&v(i[r],k>=0?i[k]:null),null!=f?f(r,i):m===o.ARIA_ACTIVE_DESCENDANT?null!=e.root&&d(i,r,e.root,A):u(i,r),k=r},N=t=>t.target;let E=0;const C=t=>n=>{if(n.repeat&&y>0){const t=Date.now();if(t-E<y)return;E=t}t(n)};if(i!==r.HORIZONTAL&&i!==r.BOTH||(e.register(t.ArrowLeft,C((t=>M(-1,N(t)))),{repeat:!0}),e.register(t.ArrowRight,C((t=>M(1,N(t)))),{repeat:!0})),i!==r.VERTICAL&&i!==r.BOTH||(e.register(t.ArrowUp,C((t=>M(-1,N(t)))),{repeat:!0}),e.register(t.ArrowDown,C((t=>M(1,N(t)))),{repeat:!0})),e.register(t.Home,(()=>M(l))),e.register(t.End,(()=>M(a))),null!=g&&p.length>0&&e.register(p,g),null!=w&&e.register(t.Escape,w),null!=e.root&&null!=e.abortController){const t=e.root,{signal:n}=e.abortController;m===o.ARIA_ACTIVE_DESCENDANT&&t.addEventListener("mousedown",(n=>{n.preventDefault(),t.focus()}),{signal:n});const i=x();if(i.length>0){let n=b(i,m,t);-1===n&&null!=h&&(n=i.findIndex((t=>t.matches(h))));const e=-1!==n?n:m===o.ROVING_TABINDEX?0:-1;-1!==e?(null!=v&&m===o.ARIA_ACTIVE_DESCENDANT&&v(i[e],null),k=e,m===o.ARIA_ACTIVE_DESCENDANT?d(i,e,t,A):function(t,n){const e=t[n];null!=e&&(t.forEach((t=>t.setAttribute("tabindex","-1"))),e.setAttribute("tabindex","0"))}(i,e)):i.forEach((t=>t.setAttribute("tabindex","-1")))}}}(n,{root:this._root,abortController:this._abortController,register:(t,n,e)=>this.set(t,n,e),onStrategyResolved:(t,n)=>{this._strategyType=t,this._idPrefix=n}}),this):this}setGridNavigation(n){return this._ensureAttached("setGridNavigation")?(function(n,e){const{wrap:i=!1,focusStrategy:s={type:o.ROVING_TABINDEX},initialActiveSelector:r,onNavigate:l,onActivate:a,activateKeys:u=[t.Enter,t.Space],onPageUp:h,onPageDown:f,onEscape:d,repeatThrottleMs:b=100}=n,A=s.type,x=s.type===o.ARIA_ACTIVE_DESCENDANT?s.idPrefix??`${e.root?.tagName.toLowerCase()??"bds-grid"}-item`:"bds-grid-item";e.onStrategyResolved(A,x);const k="function"==typeof n.items?n.items:()=>n.items,M=(t,n,i)=>{const s=t[n]?.[i];null!=s&&(null==l?A===o.ARIA_ACTIVE_DESCENDANT?null!=e.root&&v(t,n,i,e.root,x):function(t,n,e){t.flat().filter(c).forEach((t=>t.setAttribute("tabindex","-1")));const i=t[n]?.[e];null!=i&&(i.setAttribute("tabindex","0"),i.focus())}(t,n,i):l(n,i,t))},N=(t,n)=>{const s=k(),r=w(s);if(0===r.length)return;let{row:o,col:l}=g(s,A,e.root);const a=function(t,n,e){if(n<0||e<0)return null;const i=t.at(n)?.at(e);return p(i)?i:null}(s,o,l);if(p(a)||(o=r[0].row,l=r[0].col),0!==t){const n=m(s,o+t,t>0?1:-1,i);if(-1===n)return;const e=function(t,n){return t.reduce(((t,e)=>null==t||Math.abs(e.col-n)<Math.abs(t.col-n)?e:t),null)}(y(s,n),l);return void(null!=e&&M(s,e.row,e.col))}const c=y(s,o),u=c.findIndex((t=>t.col===l))+n;if(u>=0&&u<c.length){const t=c[u];return void M(s,t.row,t.col)}if(i&&s.length>1){const t=m(s,o+n,n>0?1:-1,!0);if(-1===t)return;const e=y(s,t),i=n>0?e[0]:e[e.length-1];return void M(s,i.row,i.col)}const h=n>0?c[c.length-1]:c[0];M(s,h.row,h.col)},E=t=>{const n=k(),i=w(n);if(0===i.length)return;let{row:s}=g(n,A,e.root);switch(-1!==s&&0!==y(n,s).length||(s=i[0].row),t){case"row-start":{const t=y(n,s)[0];M(n,t.row,t.col);break}case"row-end":{const t=y(n,s),e=t[t.length-1];M(n,e.row,e.col);break}case"grid-start":M(n,i[0].row,i[0].col);break;case"grid-end":{const t=i[i.length-1];M(n,t.row,t.col);break}}};let C=0;const D=t=>n=>{if(n.repeat&&b>0){const t=Date.now();if(t-C<b)return;C=t}t()};if(e.register(t.ArrowLeft,D((()=>N(0,-1))),{repeat:!0}),e.register(t.ArrowRight,D((()=>N(0,1))),{repeat:!0}),e.register(t.ArrowUp,D((()=>N(-1,0))),{repeat:!0}),e.register(t.ArrowDown,D((()=>N(1,0))),{repeat:!0}),e.register(t.Home,(()=>E("row-start"))),e.register(t.End,(()=>E("row-end"))),e.register(["control",t.Home],(()=>E("grid-start"))),e.register(["control",t.End],(()=>E("grid-end"))),null!=a&&u.length>0&&e.register(u,a),null!=h&&e.register(t.PageUp,h),null!=f&&e.register(t.PageDown,f),null!=d&&e.register(t.Escape,d),null!=e.root&&null!=e.abortController){const t=k(),n=w(t);if(n.length>0){const i=(null!=r?n.find((t=>t.cell.matches(r))):void 0)??n[0];if(A===o.ARIA_ACTIVE_DESCENDANT){v(t,i.row,i.col,e.root,x);const n=e.root,{signal:s}=e.abortController;n.addEventListener("mousedown",(t=>{t.preventDefault(),n.focus()}),{signal:s})}else!function(t,n,e){t.flat().filter(c).forEach((t=>t.setAttribute("tabindex","-1")));const i=t[n]?.[e];null!=i&&i.setAttribute("tabindex","0")}(t,i.row,i.col)}}}(n,{root:this._root,abortController:this._abortController,register:(t,n,e)=>this.set(t,n,e),onStrategyResolved:(t,n)=>{this._strategyType=t,this._idPrefix=n}}),this):this}remove(t){const{keys:n,modifiers:e}=N(t);return this._bindings.delete(E(n,e)),this._rebuildAllowedKeys(),this}}export{C as K,s as a}