@brandsync/wc 1.19.0 → 1.20.0

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 (859) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/REFERENCE.md +264 -9
  3. package/custom-elements.json +11409 -6963
  4. package/dist/brandsync-wc/brandsync-wc.css +1 -1
  5. package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
  6. package/dist/brandsync-wc/index.esm.js +1 -1
  7. package/dist/brandsync-wc/p-040d4755.entry.js +1 -0
  8. package/dist/brandsync-wc/{p-30ff0659.entry.js → p-050270f5.entry.js} +1 -1
  9. package/dist/brandsync-wc/{p-a688a7ca.entry.js → p-08a5e178.entry.js} +1 -1
  10. package/dist/brandsync-wc/{p-a50c5e68.entry.js → p-08d08dc9.entry.js} +1 -1
  11. package/dist/brandsync-wc/{p-568de1b0.entry.js → p-0ebb60a8.entry.js} +1 -1
  12. package/dist/brandsync-wc/{p-f3b60029.entry.js → p-0f864a4f.entry.js} +1 -1
  13. package/dist/brandsync-wc/{p-e7c80f48.entry.js → p-105c316e.entry.js} +1 -1
  14. package/dist/brandsync-wc/{p-10b8937f.entry.js → p-11fefb5a.entry.js} +1 -1
  15. package/dist/brandsync-wc/{p-313ec145.entry.js → p-13d98ec3.entry.js} +1 -1
  16. package/dist/brandsync-wc/{p-8ac86d16.entry.js → p-16f15ba5.entry.js} +1 -1
  17. package/dist/brandsync-wc/{p-42fcf134.entry.js → p-18cfec13.entry.js} +1 -1
  18. package/dist/brandsync-wc/{p-9751a12d.entry.js → p-1a549f9a.entry.js} +1 -1
  19. package/dist/brandsync-wc/{p-a28ef52e.entry.js → p-1bf8a54a.entry.js} +1 -1
  20. package/dist/brandsync-wc/{p-5371b31c.entry.js → p-1ce4395a.entry.js} +1 -1
  21. package/dist/brandsync-wc/{p-de0dfd1c.entry.js → p-1daf48b1.entry.js} +1 -1
  22. package/dist/brandsync-wc/{p-86f04e9e.entry.js → p-20dd8b76.entry.js} +1 -1
  23. package/dist/brandsync-wc/{p-391504ab.entry.js → p-2210c680.entry.js} +1 -1
  24. package/dist/brandsync-wc/{p-f10b19a8.entry.js → p-23367a4d.entry.js} +1 -1
  25. package/dist/brandsync-wc/{p-02314404.entry.js → p-238be384.entry.js} +1 -1
  26. package/dist/brandsync-wc/p-23affb5d.entry.js +1 -0
  27. package/dist/brandsync-wc/p-23b3958e.entry.js +1 -0
  28. package/dist/brandsync-wc/{p-03ad83a3.entry.js → p-2621b1b2.entry.js} +1 -1
  29. package/dist/brandsync-wc/p-28723df1.entry.js +1 -0
  30. package/dist/brandsync-wc/{p-d484e976.entry.js → p-28a34097.entry.js} +1 -1
  31. package/dist/brandsync-wc/{p-129a4de7.entry.js → p-2a96ce61.entry.js} +1 -1
  32. package/dist/brandsync-wc/{p-7160a72e.entry.js → p-2f58b161.entry.js} +1 -1
  33. package/dist/brandsync-wc/p-319b7baa.entry.js +1 -0
  34. package/dist/brandsync-wc/{p-8a606b38.entry.js → p-32004fb3.entry.js} +1 -1
  35. package/dist/brandsync-wc/{p-78c94cfe.entry.js → p-32157c7a.entry.js} +1 -1
  36. package/dist/brandsync-wc/{p-ab99b8c3.entry.js → p-32d83763.entry.js} +1 -1
  37. package/dist/brandsync-wc/{p-8b21f623.entry.js → p-338b5e39.entry.js} +1 -1
  38. package/dist/brandsync-wc/p-3f6be3f7.entry.js +1 -0
  39. package/dist/brandsync-wc/p-409cf56b.entry.js +1 -0
  40. package/dist/brandsync-wc/{p-8e107d7a.entry.js → p-452f6c13.entry.js} +1 -1
  41. package/dist/brandsync-wc/{p-527fd08d.entry.js → p-47fc5f29.entry.js} +1 -1
  42. package/dist/brandsync-wc/p-4810bcc8.entry.js +1 -0
  43. package/dist/brandsync-wc/p-484a6546.entry.js +1 -0
  44. package/dist/brandsync-wc/p-4ae7b8b9.entry.js +1 -0
  45. package/dist/brandsync-wc/p-4d6f2fec.entry.js +1 -0
  46. package/dist/brandsync-wc/{p-4ffcf41a.entry.js → p-4f19e8d8.entry.js} +1 -1
  47. package/dist/brandsync-wc/p-50a154b8.entry.js +1 -0
  48. package/dist/brandsync-wc/{p-26e0ab15.entry.js → p-50ac6889.entry.js} +1 -1
  49. package/dist/brandsync-wc/p-520b277a.entry.js +1 -0
  50. package/dist/brandsync-wc/p-53b1c545.entry.js +1 -0
  51. package/dist/brandsync-wc/{p-90d8d45f.entry.js → p-548b96f7.entry.js} +1 -1
  52. package/dist/brandsync-wc/{p-144b6ac8.entry.js → p-57ed5ac6.entry.js} +1 -1
  53. package/dist/brandsync-wc/{p-028d3244.entry.js → p-587be2c6.entry.js} +1 -1
  54. package/dist/brandsync-wc/p-5a35d573.entry.js +1 -0
  55. package/dist/brandsync-wc/p-5b48a6c7.entry.js +1 -0
  56. package/dist/brandsync-wc/{p-4d1ee16e.entry.js → p-5ea899c4.entry.js} +1 -1
  57. package/dist/brandsync-wc/p-6096900b.entry.js +1 -0
  58. package/dist/brandsync-wc/{p-fc76031e.entry.js → p-630d41ab.entry.js} +1 -1
  59. package/dist/brandsync-wc/p-66f1ca2e.entry.js +1 -0
  60. package/dist/brandsync-wc/p-69489f45.entry.js +1 -0
  61. package/dist/brandsync-wc/p-6adc9c4f.entry.js +1 -0
  62. package/dist/brandsync-wc/p-6bdd9ef9.entry.js +1 -0
  63. package/dist/brandsync-wc/{p-dc2ea372.entry.js → p-6db03e96.entry.js} +1 -1
  64. package/dist/brandsync-wc/{p-64e19200.entry.js → p-70924681.entry.js} +1 -1
  65. package/dist/brandsync-wc/p-7632f773.entry.js +1 -0
  66. package/dist/brandsync-wc/{p-590deea0.entry.js → p-78e4dd14.entry.js} +1 -1
  67. package/dist/brandsync-wc/{p-f96f45ae.entry.js → p-806bb471.entry.js} +1 -1
  68. package/dist/brandsync-wc/{p-2a8b2ac9.entry.js → p-86fdbe8f.entry.js} +1 -1
  69. package/dist/brandsync-wc/{p-8a18864a.entry.js → p-89dbb3c8.entry.js} +1 -1
  70. package/dist/brandsync-wc/{p-ebcd105d.entry.js → p-8a4d64fd.entry.js} +1 -1
  71. package/dist/brandsync-wc/p-8c83cc99.entry.js +1 -0
  72. package/dist/brandsync-wc/p-8ccd1735.entry.js +1 -0
  73. package/dist/brandsync-wc/p-8d674f11.entry.js +1 -0
  74. package/dist/brandsync-wc/{p-8d1ad4b0.entry.js → p-90442341.entry.js} +1 -1
  75. package/dist/brandsync-wc/{p-a2bfbf02.entry.js → p-9e93b482.entry.js} +1 -1
  76. package/dist/brandsync-wc/{p-020cb767.entry.js → p-9f852c8b.entry.js} +1 -1
  77. package/dist/brandsync-wc/p-Vo0zbGRB.js +1 -0
  78. package/dist/brandsync-wc/p-a1d34ff3.entry.js +1 -0
  79. package/dist/brandsync-wc/{p-15c6f0f3.entry.js → p-a3c7b4e7.entry.js} +1 -1
  80. package/dist/brandsync-wc/{p-9ba500f1.entry.js → p-a6cbb6c6.entry.js} +1 -1
  81. package/dist/brandsync-wc/{p-70a5897b.entry.js → p-a86560e6.entry.js} +1 -1
  82. package/dist/brandsync-wc/p-aa70e80c.entry.js +1 -0
  83. package/dist/brandsync-wc/{p-0dff9822.entry.js → p-b0f4cbca.entry.js} +1 -1
  84. package/dist/brandsync-wc/{p-3c6980b9.entry.js → p-b1663378.entry.js} +1 -1
  85. package/dist/brandsync-wc/{p-25914efc.entry.js → p-b1b14615.entry.js} +1 -1
  86. package/dist/brandsync-wc/{p-2389f473.entry.js → p-b7545d9b.entry.js} +1 -1
  87. package/dist/brandsync-wc/{p-d80eecf4.entry.js → p-baca1abf.entry.js} +1 -1
  88. package/dist/brandsync-wc/{p-a92c0f06.entry.js → p-bfdd135b.entry.js} +1 -1
  89. package/dist/brandsync-wc/{p-89fa7567.entry.js → p-c23e274a.entry.js} +1 -1
  90. package/dist/brandsync-wc/{p-4928c4ad.entry.js → p-c39e6be9.entry.js} +1 -1
  91. package/dist/brandsync-wc/{p-30736034.entry.js → p-c6c15b9f.entry.js} +1 -1
  92. package/dist/brandsync-wc/{p-776b677f.entry.js → p-c9888d09.entry.js} +1 -1
  93. package/dist/brandsync-wc/p-ca8a1e51.entry.js +1 -0
  94. package/dist/brandsync-wc/{p-9fa7bd83.entry.js → p-d263deec.entry.js} +1 -1
  95. package/dist/brandsync-wc/p-d555984e.entry.js +1 -0
  96. package/dist/brandsync-wc/p-d6600c7c.entry.js +1 -0
  97. package/dist/brandsync-wc/{p-e5235e76.entry.js → p-d67840f5.entry.js} +1 -1
  98. package/dist/brandsync-wc/p-d8a299a9.entry.js +1 -0
  99. package/dist/brandsync-wc/{p-f4796801.entry.js → p-dd3499ab.entry.js} +1 -1
  100. package/dist/brandsync-wc/p-debc308d.entry.js +1 -0
  101. package/dist/brandsync-wc/{p-c01e231e.entry.js → p-e18cb639.entry.js} +1 -1
  102. package/dist/brandsync-wc/{p-7bff3aa5.entry.js → p-e18e45bc.entry.js} +1 -1
  103. package/dist/brandsync-wc/{p-4c51da66.entry.js → p-e2268c96.entry.js} +1 -1
  104. package/dist/brandsync-wc/p-e4033ebc.entry.js +1 -0
  105. package/dist/brandsync-wc/{p-1e33bc10.entry.js → p-e6f57fae.entry.js} +1 -1
  106. package/dist/brandsync-wc/p-e8027825.entry.js +1 -0
  107. package/dist/brandsync-wc/{p-7c741b8d.entry.js → p-eb1b1497.entry.js} +1 -1
  108. package/dist/brandsync-wc/{p-9868ee72.entry.js → p-eb4ad606.entry.js} +1 -1
  109. package/dist/brandsync-wc/p-ecb1a27d.entry.js +1 -0
  110. package/dist/brandsync-wc/p-f229f59a.entry.js +1 -0
  111. package/dist/brandsync-wc/{p-0819add7.entry.js → p-f22d2db8.entry.js} +1 -1
  112. package/dist/brandsync-wc/{p-feb46fa6.entry.js → p-f71d7582.entry.js} +1 -1
  113. package/dist/brandsync-wc/p-fa894893.entry.js +1 -0
  114. package/dist/brandsync-wc/p-fbd204b6.entry.js +1 -0
  115. package/dist/brandsync-wc/{p-21e5d4d6.entry.js → p-fc7df528.entry.js} +1 -1
  116. package/dist/brandsync-wc/{p-27663faf.entry.js → p-fe6f71da.entry.js} +1 -1
  117. package/dist/brandsync-wc/{p-e1d30e31.entry.js → p-ff14edb6.entry.js} +1 -1
  118. package/dist/brandsync-wc/p-ff85a9d8.entry.js +1 -0
  119. package/dist/brandsync-wc/p-wz7B473u.js +3 -0
  120. package/dist/cjs/brandsync-wc.cjs.js +2 -2
  121. package/dist/cjs/bs-accordion-group.cjs.entry.js +2 -2
  122. package/dist/cjs/bs-accordion.cjs.entry.js +1 -1
  123. package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +2 -2
  124. package/dist/cjs/bs-ai-greeting.cjs.entry.js +2 -2
  125. package/dist/cjs/bs-ai-thinking.cjs.entry.js +2 -2
  126. package/dist/cjs/bs-app-recent-item_3.cjs.entry.js +5 -5
  127. package/dist/cjs/bs-app-shell.cjs.entry.js +2 -2
  128. package/dist/cjs/bs-app-switcher.cjs.entry.js +1 -1
  129. package/dist/cjs/bs-attachment-list.cjs.entry.js +2 -2
  130. package/dist/cjs/bs-attachment.cjs.entry.js +2 -2
  131. package/dist/cjs/bs-avatar.cjs.entry.js +3 -10
  132. package/dist/cjs/bs-badge.cjs.entry.js +2 -2
  133. package/dist/cjs/bs-breadcrumb-overflow.cjs.entry.js +1 -1
  134. package/dist/cjs/bs-breadcrumb.cjs.entry.js +3 -3
  135. package/dist/cjs/bs-breadcrumbs.cjs.entry.js +10 -2
  136. package/dist/cjs/bs-button-skeleton.cjs.entry.js +2 -2
  137. package/dist/cjs/bs-button_2.cjs.entry.js +17 -4
  138. package/dist/cjs/bs-card.cjs.entry.js +44 -3
  139. package/dist/cjs/bs-carousel.cjs.entry.js +1 -1
  140. package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +3 -7
  141. package/dist/cjs/bs-chatbot-header.cjs.entry.js +3 -7
  142. package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +2 -2
  143. package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +2 -2
  144. package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +3 -3
  145. package/dist/cjs/bs-checkbox-group.cjs.entry.js +80 -0
  146. package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +2 -2
  147. package/dist/cjs/bs-checkbox.cjs.entry.js +1 -1
  148. package/dist/cjs/bs-chip-filter.cjs.entry.js +2 -2
  149. package/dist/cjs/bs-chip-informative.cjs.entry.js +2 -2
  150. package/dist/cjs/bs-chip-input.cjs.entry.js +2 -2
  151. package/dist/cjs/bs-citation-preview.cjs.entry.js +2 -2
  152. package/dist/cjs/bs-code-block.cjs.entry.js +75 -0
  153. package/dist/cjs/bs-command-palette.cjs.entry.js +2 -2
  154. package/dist/cjs/bs-compact-menu-block_2.cjs.entry.js +5 -5
  155. package/dist/cjs/bs-company-switcher.cjs.entry.js +3 -3
  156. package/dist/cjs/bs-composer-status-banner.cjs.entry.js +2 -2
  157. package/dist/cjs/bs-composer.cjs.entry.js +6 -4
  158. package/dist/cjs/bs-container.cjs.entry.js +2 -2
  159. package/dist/cjs/bs-cookie-consent.cjs.entry.js +1 -1
  160. package/dist/cjs/bs-data-table.cjs.entry.js +8 -5
  161. package/dist/cjs/bs-datepicker.cjs.entry.js +2 -2
  162. package/dist/cjs/bs-description-item.cjs.entry.js +23 -0
  163. package/dist/cjs/bs-description-list.cjs.entry.js +40 -0
  164. package/dist/cjs/bs-dialog.cjs.entry.js +1 -1
  165. package/dist/cjs/bs-divider.cjs.entry.js +2 -2
  166. package/dist/cjs/bs-dropdown.cjs.entry.js +96 -0
  167. package/dist/cjs/bs-empty-state.cjs.entry.js +7 -3
  168. package/dist/cjs/bs-error-page.cjs.entry.js +2 -2
  169. package/dist/cjs/bs-file-upload-item.cjs.entry.js +2 -2
  170. package/dist/cjs/bs-file-upload.cjs.entry.js +2 -2
  171. package/dist/cjs/bs-global-search.cjs.entry.js +3 -3
  172. package/dist/cjs/bs-grid.cjs.entry.js +3 -3
  173. package/dist/cjs/bs-heading.cjs.entry.js +28 -0
  174. package/dist/cjs/bs-icon-button.cjs.entry.js +10 -3
  175. package/dist/cjs/bs-icon-tile.cjs.entry.js +3 -3
  176. package/dist/cjs/bs-icon.cjs.entry.js +35 -0
  177. package/dist/cjs/bs-inline-tab.cjs.entry.js +3 -3
  178. package/dist/cjs/bs-input_4.cjs.entry.js +794 -0
  179. package/dist/cjs/bs-key-caps.cjs.entry.js +2 -2
  180. package/dist/cjs/bs-key.cjs.entry.js +2 -2
  181. package/dist/cjs/bs-keyboard-shortcuts.cjs.entry.js +3 -3
  182. package/dist/cjs/bs-link.cjs.entry.js +52 -0
  183. package/dist/cjs/bs-list-item.cjs.entry.js +68 -0
  184. package/dist/cjs/bs-list.cjs.entry.js +9 -3
  185. package/dist/cjs/bs-logo.cjs.entry.js +1 -1
  186. package/dist/cjs/bs-mega-menu.cjs.entry.js +2 -2
  187. package/dist/cjs/bs-message-list.cjs.entry.js +2 -2
  188. package/dist/cjs/bs-message.cjs.entry.js +2 -2
  189. package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +26 -5
  190. package/dist/cjs/bs-navigation-drawer.cjs.entry.js +4 -4
  191. package/dist/cjs/bs-navigation-header.cjs.entry.js +4 -4
  192. package/dist/cjs/bs-onboarding-checklist.cjs.entry.js +1 -1
  193. package/dist/cjs/bs-page-header.cjs.entry.js +2 -2
  194. package/dist/cjs/bs-pagination.cjs.entry.js +2 -2
  195. package/dist/cjs/{bs-list-item_2.cjs.entry.js → bs-popover.cjs.entry.js} +2 -64
  196. package/dist/cjs/bs-presence.cjs.entry.js +2 -2
  197. package/dist/cjs/bs-product-tour.cjs.entry.js +1 -1
  198. package/dist/cjs/bs-progress-linear.cjs.entry.js +4 -4
  199. package/dist/cjs/bs-progress.cjs.entry.js +3 -3
  200. package/dist/cjs/bs-qr-code.cjs.entry.js +2 -2
  201. package/dist/cjs/bs-radio-group.cjs.entry.js +90 -0
  202. package/dist/cjs/bs-radio.cjs.entry.js +6 -2
  203. package/dist/cjs/bs-search-item.cjs.entry.js +2 -2
  204. package/dist/cjs/bs-select.cjs.entry.js +234 -0
  205. package/dist/cjs/bs-session-timeout.cjs.entry.js +2 -2
  206. package/dist/cjs/bs-shortcut-row.cjs.entry.js +2 -2
  207. package/dist/cjs/bs-side-panel.cjs.entry.js +1 -1
  208. package/dist/cjs/bs-skip-link.cjs.entry.js +52 -0
  209. package/dist/cjs/bs-slider.cjs.entry.js +3 -3
  210. package/dist/cjs/bs-snackbar.cjs.entry.js +3 -3
  211. package/dist/cjs/bs-source-link.cjs.entry.js +4 -4
  212. package/dist/cjs/bs-split-pane.cjs.entry.js +2 -2
  213. package/dist/cjs/bs-stack.cjs.entry.js +2 -2
  214. package/dist/cjs/bs-stat.cjs.entry.js +53 -0
  215. package/dist/cjs/bs-stepper-step.cjs.entry.js +2 -2
  216. package/dist/cjs/bs-stepper.cjs.entry.js +2 -2
  217. package/dist/cjs/bs-switch.cjs.entry.js +2 -2
  218. package/dist/cjs/bs-tab_3.cjs.entry.js +16 -9
  219. package/dist/cjs/bs-table-of-contents.cjs.entry.js +171 -0
  220. package/dist/cjs/bs-tag.cjs.entry.js +51 -0
  221. package/dist/cjs/bs-text.cjs.entry.js +24 -0
  222. package/dist/cjs/bs-timepicker.cjs.entry.js +3 -3
  223. package/dist/cjs/bs-toast.cjs.entry.js +2 -2
  224. package/dist/cjs/bs-toggle-button-group.cjs.entry.js +108 -0
  225. package/dist/cjs/bs-toggle-button.cjs.entry.js +57 -0
  226. package/dist/cjs/bs-toolbar.cjs.entry.js +195 -0
  227. package/dist/cjs/bs-tooltip-trigger.cjs.entry.js +2 -2
  228. package/dist/cjs/bs-tooltip.cjs.entry.js +2 -2
  229. package/dist/cjs/bs-tree-item.cjs.entry.js +3 -3
  230. package/dist/cjs/bs-tree.cjs.entry.js +2 -2
  231. package/dist/cjs/bs-whats-new.cjs.entry.js +1 -1
  232. package/dist/cjs/icon-registry-DWYCqjKw.js +64 -0
  233. package/dist/cjs/{index-BYfMRtlW.js → index-BFxk-bY6.js} +1 -1
  234. package/dist/cjs/index.cjs.js +4 -0
  235. package/dist/cjs/loader.cjs.js +2 -2
  236. package/dist/collection/collection-manifest.json +19 -1
  237. package/dist/collection/components/bs-a11y.cmp.test.js +9 -0
  238. package/dist/collection/components/bs-accordion-group/bs-accordion-group.js +1 -1
  239. package/dist/collection/components/bs-ai-disclaimer/bs-ai-disclaimer.js +1 -1
  240. package/dist/collection/components/bs-ai-greeting/bs-ai-greeting.js +1 -1
  241. package/dist/collection/components/bs-ai-thinking/bs-ai-thinking.js +1 -1
  242. package/dist/collection/components/bs-app-recent-item/bs-app-recent-item.js +3 -3
  243. package/dist/collection/components/bs-app-shell/bs-app-shell.js +1 -1
  244. package/dist/collection/components/bs-attachment/bs-attachment.cmp.test.js +10 -0
  245. package/dist/collection/components/bs-attachment/bs-attachment.css +6 -6
  246. package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
  247. package/dist/collection/components/bs-avatar/bs-avatar.cmp.test.js +11 -1
  248. package/dist/collection/components/bs-avatar/bs-avatar.css +9 -4
  249. package/dist/collection/components/bs-avatar/bs-avatar.js +1 -8
  250. package/dist/collection/components/bs-badge/bs-badge.css +4 -1
  251. package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.cmp.test.js +13 -0
  252. package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.css +8 -0
  253. package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.js +1 -1
  254. package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +26 -1
  255. package/dist/collection/components/bs-button/bs-button/bs-button.cmp.test.js +31 -2
  256. package/dist/collection/components/bs-button/bs-button/bs-button.css +16 -18
  257. package/dist/collection/components/bs-button/bs-button/bs-button.js +102 -7
  258. package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.cmp.test.js +43 -0
  259. package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.css +32 -2
  260. package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +68 -1
  261. package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
  262. package/dist/collection/components/bs-card/bs-card.cmp.test.js +78 -0
  263. package/dist/collection/components/bs-card/bs-card.css +75 -0
  264. package/dist/collection/components/bs-card/bs-card.js +200 -1
  265. package/dist/collection/components/bs-card/bs-card.stories.js +32 -0
  266. package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.cmp.test.js +8 -0
  267. package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.css +11 -8
  268. package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.js +1 -5
  269. package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.css +2 -3
  270. package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +1 -5
  271. package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +1 -1
  272. package/dist/collection/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.js +1 -1
  273. package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.cmp.test.js +18 -0
  274. package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.css +8 -2
  275. package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js +4 -1
  276. package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.js +1 -1
  277. package/dist/collection/components/bs-checkbox-group/bs-checkbox-group.cmp.test.js +58 -0
  278. package/dist/collection/components/bs-checkbox-group/bs-checkbox-group.css +65 -0
  279. package/dist/collection/components/bs-checkbox-group/bs-checkbox-group.js +254 -0
  280. package/dist/collection/components/bs-checkbox-group/bs-checkbox-group.stories.js +34 -0
  281. package/dist/collection/components/bs-chip/bs-chip-filter/bs-chip-filter.js +1 -1
  282. package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.js +1 -1
  283. package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.js +1 -1
  284. package/dist/collection/components/bs-citation-preview/bs-citation-preview.js +1 -1
  285. package/dist/collection/components/bs-code-block/bs-code-block.cmp.test.js +78 -0
  286. package/dist/collection/components/bs-code-block/bs-code-block.css +132 -0
  287. package/dist/collection/components/bs-code-block/bs-code-block.js +317 -0
  288. package/dist/collection/components/bs-code-block/bs-code-block.stories.js +56 -0
  289. package/dist/collection/components/bs-command-palette/bs-command-palette.js +1 -1
  290. package/dist/collection/components/bs-compact-menu-block/bs-compact-menu-block.js +1 -1
  291. package/dist/collection/components/bs-company-switcher/bs-company-switcher.js +2 -2
  292. package/dist/collection/components/bs-composer/bs-composer.cmp.test.js +29 -0
  293. package/dist/collection/components/bs-composer/bs-composer.css +2 -1
  294. package/dist/collection/components/bs-composer/bs-composer.js +4 -2
  295. package/dist/collection/components/bs-composer/bs-composer.stories.js +0 -1
  296. package/dist/collection/components/bs-composer-status-banner/bs-composer-status-banner.js +1 -1
  297. package/dist/collection/components/bs-container/bs-container.js +1 -1
  298. package/dist/collection/components/bs-cookie-consent/bs-cookie-consent.cmp.test.js +1 -1
  299. package/dist/collection/components/bs-data-table/bs-data-table.cmp.test.js +39 -0
  300. package/dist/collection/components/bs-data-table/bs-data-table.css +12 -0
  301. package/dist/collection/components/bs-data-table/bs-data-table.js +34 -3
  302. package/dist/collection/components/bs-data-table/bs-data-table.stories.js +1 -1
  303. package/dist/collection/components/bs-datepicker/bs-datepicker.js +1 -1
  304. package/dist/collection/components/bs-description-item/bs-description-item.cmp.test.js +14 -0
  305. package/dist/collection/components/bs-description-item/bs-description-item.css +47 -0
  306. package/dist/collection/components/bs-description-item/bs-description-item.js +111 -0
  307. package/dist/collection/components/bs-description-list/bs-description-list.cmp.test.js +58 -0
  308. package/dist/collection/components/bs-description-list/bs-description-list.css +15 -0
  309. package/dist/collection/components/bs-description-list/bs-description-list.js +127 -0
  310. package/dist/collection/components/bs-description-list/bs-description-list.stories.js +34 -0
  311. package/dist/collection/components/bs-divider/bs-divider.js +1 -1
  312. package/dist/collection/components/bs-dropdown/bs-dropdown.cmp.test.js +135 -0
  313. package/dist/collection/components/bs-dropdown/bs-dropdown.css +3 -0
  314. package/dist/collection/components/bs-dropdown/bs-dropdown.js +218 -0
  315. package/dist/collection/components/bs-dropdown/bs-dropdown.stories.js +42 -0
  316. package/dist/collection/components/bs-empty-state/bs-empty-state.cmp.test.js +15 -0
  317. package/dist/collection/components/bs-empty-state/bs-empty-state.css +30 -1
  318. package/dist/collection/components/bs-empty-state/bs-empty-state.js +29 -1
  319. package/dist/collection/components/bs-empty-state/bs-empty-state.stories.js +24 -1
  320. package/dist/collection/components/bs-error-page/bs-error-page.js +1 -1
  321. package/dist/collection/components/bs-file-upload/bs-file-upload.js +1 -1
  322. package/dist/collection/components/bs-file-upload-item/bs-file-upload-item.js +1 -1
  323. package/dist/collection/components/bs-global-search/bs-global-search.js +2 -2
  324. package/dist/collection/components/bs-grid/bs-grid.js +2 -2
  325. package/dist/collection/components/bs-heading/bs-heading.cmp.test.js +38 -0
  326. package/dist/collection/components/bs-heading/bs-heading.css +42 -0
  327. package/dist/collection/components/bs-heading/bs-heading.js +154 -0
  328. package/dist/collection/components/bs-heading/bs-heading.stories.js +28 -0
  329. package/dist/collection/components/bs-icon/bs-icon.cmp.test.js +78 -0
  330. package/dist/collection/components/bs-icon/bs-icon.css +47 -0
  331. package/dist/collection/components/bs-icon/bs-icon.js +155 -0
  332. package/dist/collection/components/bs-icon/bs-icon.stories.js +52 -0
  333. package/dist/collection/components/bs-icon/icon-registry.js +58 -0
  334. package/dist/collection/components/bs-icon-tile/bs-icon-tile.js +2 -2
  335. package/dist/collection/components/bs-input/bs-input.cmp.test.js +431 -45
  336. package/dist/collection/components/bs-input/bs-input.css +196 -12
  337. package/dist/collection/components/bs-input/bs-input.js +565 -46
  338. package/dist/collection/components/bs-input/bs-input.stories.js +32 -4
  339. package/dist/collection/components/bs-key/bs-key.js +1 -1
  340. package/dist/collection/components/bs-key-caps/bs-key-caps.js +1 -1
  341. package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.js +2 -2
  342. package/dist/collection/components/bs-link/bs-link.cmp.test.js +52 -0
  343. package/dist/collection/components/bs-link/bs-link.css +129 -0
  344. package/dist/collection/components/bs-link/bs-link.js +257 -0
  345. package/dist/collection/components/bs-link/bs-link.stories.js +31 -0
  346. package/dist/collection/components/bs-list/bs-list.cmp.test.js +23 -0
  347. package/dist/collection/components/bs-list/bs-list.js +32 -2
  348. package/dist/collection/components/bs-list/bs-list.stories.js +35 -2
  349. package/dist/collection/components/bs-list-item/bs-list-item.css +8 -0
  350. package/dist/collection/components/bs-list-item/bs-list-item.js +24 -1
  351. package/dist/collection/components/bs-mega-menu/bs-mega-menu.js +1 -1
  352. package/dist/collection/components/bs-menu/bs-menu.js +1 -1
  353. package/dist/collection/components/bs-menu-block/bs-menu-block.js +3 -3
  354. package/dist/collection/components/bs-menu-item/bs-menu-item.js +1 -1
  355. package/dist/collection/components/bs-message/bs-message.js +1 -1
  356. package/dist/collection/components/bs-message-list/bs-message-list.js +1 -1
  357. package/dist/collection/components/bs-page-header/bs-page-header.js +1 -1
  358. package/dist/collection/components/bs-pagination/bs-pagination.js +1 -1
  359. package/dist/collection/components/bs-popover/bs-popover.js +1 -1
  360. package/dist/collection/components/bs-presence/bs-presence.js +1 -1
  361. package/dist/collection/components/bs-progress/bs-progress.js +2 -2
  362. package/dist/collection/components/bs-progress-linear/bs-progress-linear.css +4 -1
  363. package/dist/collection/components/bs-progress-linear/bs-progress-linear.js +2 -2
  364. package/dist/collection/components/bs-qr-code/bs-qr-code.js +1 -1
  365. package/dist/collection/components/bs-radio/bs-radio.cmp.test.js +8 -0
  366. package/dist/collection/components/bs-radio/bs-radio.js +25 -1
  367. package/dist/collection/components/bs-radio-group/bs-radio-group.cmp.test.js +85 -0
  368. package/dist/collection/components/bs-radio-group/bs-radio-group.css +59 -0
  369. package/dist/collection/components/bs-radio-group/bs-radio-group.js +309 -0
  370. package/dist/collection/components/bs-radio-group/bs-radio-group.stories.js +35 -0
  371. package/dist/collection/components/bs-ripple/bs-ripple.js +1 -1
  372. package/dist/collection/components/bs-search-item/bs-search-item.js +1 -1
  373. package/dist/collection/components/bs-select/bs-select.cmp.test.js +108 -0
  374. package/dist/collection/components/bs-select/bs-select.css +231 -0
  375. package/dist/collection/components/bs-select/bs-select.js +506 -0
  376. package/dist/collection/components/bs-select/bs-select.stories.js +58 -0
  377. package/dist/collection/components/bs-session-timeout/bs-session-timeout.js +1 -1
  378. package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.js +1 -1
  379. package/dist/collection/components/bs-skeleton/bs-skeleton.js +1 -1
  380. package/dist/collection/components/bs-skip-link/bs-skip-link.cmp.test.js +60 -0
  381. package/dist/collection/components/bs-skip-link/bs-skip-link.css +58 -0
  382. package/dist/collection/components/bs-skip-link/bs-skip-link.js +123 -0
  383. package/dist/collection/components/bs-skip-link/bs-skip-link.stories.js +27 -0
  384. package/dist/collection/components/bs-slider/bs-slider.cmp.test.js +13 -0
  385. package/dist/collection/components/bs-slider/bs-slider.css +3 -2
  386. package/dist/collection/components/bs-slider/bs-slider.js +1 -1
  387. package/dist/collection/components/bs-snackbar/bs-snackbar.cmp.test.js +22 -0
  388. package/dist/collection/components/bs-snackbar/bs-snackbar.css +23 -0
  389. package/dist/collection/components/bs-snackbar/bs-snackbar.js +1 -1
  390. package/dist/collection/components/bs-source-link/bs-source-link.js +3 -3
  391. package/dist/collection/components/bs-spinner/bs-spinner.js +1 -1
  392. package/dist/collection/components/bs-split-pane/bs-split-pane.js +1 -1
  393. package/dist/collection/components/bs-stack/bs-stack.js +1 -1
  394. package/dist/collection/components/bs-stat/bs-stat.cmp.test.js +49 -0
  395. package/dist/collection/components/bs-stat/bs-stat.css +116 -0
  396. package/dist/collection/components/bs-stat/bs-stat.js +284 -0
  397. package/dist/collection/components/bs-stat/bs-stat.stories.js +44 -0
  398. package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.js +1 -1
  399. package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.js +1 -1
  400. package/dist/collection/components/bs-switch/bs-switch.js +1 -1
  401. package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.css +2 -2
  402. package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.js +1 -1
  403. package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.stories.js +0 -4
  404. package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +1 -1
  405. package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.cmp.test.js +35 -0
  406. package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.css +6 -2
  407. package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +13 -6
  408. package/dist/collection/components/bs-table-of-contents/bs-table-of-contents.cmp.test.js +125 -0
  409. package/dist/collection/components/bs-table-of-contents/bs-table-of-contents.css +115 -0
  410. package/dist/collection/components/bs-table-of-contents/bs-table-of-contents.js +392 -0
  411. package/dist/collection/components/bs-table-of-contents/bs-table-of-contents.stories.js +58 -0
  412. package/dist/collection/components/bs-tag/bs-tag.cmp.test.js +66 -0
  413. package/dist/collection/components/bs-tag/bs-tag.css +101 -0
  414. package/dist/collection/components/bs-tag/bs-tag.js +233 -0
  415. package/dist/collection/components/bs-tag/bs-tag.stories.js +59 -0
  416. package/dist/collection/components/bs-text/bs-text.cmp.test.js +33 -0
  417. package/dist/collection/components/bs-text/bs-text.css +48 -0
  418. package/dist/collection/components/bs-text/bs-text.js +126 -0
  419. package/dist/collection/components/bs-text/bs-text.stories.js +25 -0
  420. package/dist/collection/components/bs-timepicker/bs-timepicker.js +2 -2
  421. package/dist/collection/components/bs-toast/bs-toast.js +1 -1
  422. package/dist/collection/components/bs-toggle-button/bs-toggle-button.cmp.test.js +47 -0
  423. package/dist/collection/components/bs-toggle-button/bs-toggle-button.css +125 -0
  424. package/dist/collection/components/bs-toggle-button/bs-toggle-button.js +234 -0
  425. package/dist/collection/components/bs-toggle-button/bs-toggle-button.stories.js +22 -0
  426. package/dist/collection/components/bs-toggle-button-group/bs-toggle-button-group.cmp.test.js +69 -0
  427. package/dist/collection/components/bs-toggle-button-group/bs-toggle-button-group.css +43 -0
  428. package/dist/collection/components/bs-toggle-button-group/bs-toggle-button-group.js +264 -0
  429. package/dist/collection/components/bs-toggle-button-group/bs-toggle-button-group.stories.js +42 -0
  430. package/dist/collection/components/bs-toolbar/bs-toolbar.cmp.test.js +149 -0
  431. package/dist/collection/components/bs-toolbar/bs-toolbar.css +82 -0
  432. package/dist/collection/components/bs-toolbar/bs-toolbar.js +345 -0
  433. package/dist/collection/components/bs-toolbar/bs-toolbar.stories.js +49 -0
  434. package/dist/collection/components/bs-tooltip/bs-tooltip.js +1 -1
  435. package/dist/collection/components/bs-tooltip-trigger/bs-tooltip-trigger.js +1 -1
  436. package/dist/collection/components/bs-tree/bs-tree.js +1 -1
  437. package/dist/collection/components/bs-tree-item/bs-tree-item.js +2 -2
  438. package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.js +1 -1
  439. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.cmp.test.js +25 -0
  440. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.css +2 -2
  441. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.js +2 -2
  442. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.cmp.test.js +58 -0
  443. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.css +10 -2
  444. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.js +63 -4
  445. package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.cmp.test.js +42 -9
  446. package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.css +44 -37
  447. package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +2 -2
  448. package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.stories.js +22 -0
  449. package/dist/collection/index.js +1 -0
  450. package/dist/collection/test/helpers/block-link-navigation.js +13 -0
  451. package/dist/collection/test/helpers/contrast.js +57 -0
  452. package/dist/components/bs-accordion-group.js +1 -1
  453. package/dist/components/bs-accordion.js +1 -1
  454. package/dist/components/bs-ai-disclaimer.js +1 -1
  455. package/dist/components/bs-ai-greeting.js +1 -1
  456. package/dist/components/bs-ai-thinking.js +1 -1
  457. package/dist/components/bs-app-recent-item.js +1 -1
  458. package/dist/components/bs-app-shell.js +1 -1
  459. package/dist/components/bs-app-switcher.js +1 -1
  460. package/dist/components/bs-app-tile.js +1 -1
  461. package/dist/components/bs-attachment-list.js +1 -1
  462. package/dist/components/bs-attachment.js +1 -1
  463. package/dist/components/bs-avatar.js +1 -1
  464. package/dist/components/bs-badge.js +1 -1
  465. package/dist/components/bs-breadcrumb-overflow.js +1 -1
  466. package/dist/components/bs-breadcrumb.js +1 -1
  467. package/dist/components/bs-breadcrumbs.js +1 -1
  468. package/dist/components/bs-button-skeleton.js +1 -1
  469. package/dist/components/bs-button.js +1 -1
  470. package/dist/components/bs-card.js +1 -1
  471. package/dist/components/bs-carousel.js +1 -1
  472. package/dist/components/bs-chatbot-feedback.js +1 -1
  473. package/dist/components/bs-chatbot-header.js +1 -1
  474. package/dist/components/bs-chatbot-response-action.js +1 -1
  475. package/dist/components/bs-chatbot-sources-drawer.js +1 -1
  476. package/dist/components/bs-chatbot-suggestion-button.js +1 -1
  477. package/dist/components/bs-checkbox-group.d.ts +11 -0
  478. package/dist/components/bs-checkbox-group.js +1 -0
  479. package/dist/components/bs-checkbox-skeleton.js +1 -1
  480. package/dist/components/bs-checkbox.js +1 -1
  481. package/dist/components/bs-chip-filter.js +1 -1
  482. package/dist/components/bs-chip-informative.js +1 -1
  483. package/dist/components/bs-chip-input.js +1 -1
  484. package/dist/components/bs-citation-preview.js +1 -1
  485. package/dist/components/bs-code-block.d.ts +11 -0
  486. package/dist/components/bs-code-block.js +1 -0
  487. package/dist/components/bs-command-palette.js +1 -1
  488. package/dist/components/bs-compact-menu-block.js +1 -1
  489. package/dist/components/bs-company-switcher.js +1 -1
  490. package/dist/components/bs-composer-status-banner.js +1 -1
  491. package/dist/components/bs-composer.js +1 -1
  492. package/dist/components/bs-container.js +1 -1
  493. package/dist/components/bs-cookie-consent.js +1 -1
  494. package/dist/components/bs-data-table.js +1 -1
  495. package/dist/components/bs-datepicker.js +1 -1
  496. package/dist/components/bs-description-item.d.ts +11 -0
  497. package/dist/components/bs-description-item.js +1 -0
  498. package/dist/components/bs-description-list.d.ts +11 -0
  499. package/dist/components/bs-description-list.js +1 -0
  500. package/dist/components/bs-dialog.js +1 -1
  501. package/dist/components/bs-divider.js +1 -1
  502. package/dist/components/bs-dropdown.d.ts +11 -0
  503. package/dist/components/bs-dropdown.js +1 -0
  504. package/dist/components/bs-empty-state.js +1 -1
  505. package/dist/components/bs-error-page.js +1 -1
  506. package/dist/components/bs-file-upload-item.js +1 -1
  507. package/dist/components/bs-file-upload.js +1 -1
  508. package/dist/components/bs-global-search.js +1 -1
  509. package/dist/components/bs-grid.js +1 -1
  510. package/dist/components/bs-heading.d.ts +11 -0
  511. package/dist/components/bs-heading.js +1 -0
  512. package/dist/components/bs-icon-button.js +1 -1
  513. package/dist/components/bs-icon-tile.js +1 -1
  514. package/dist/components/bs-icon.d.ts +11 -0
  515. package/dist/components/bs-icon.js +1 -0
  516. package/dist/components/bs-inline-tab.js +1 -1
  517. package/dist/components/bs-input.js +1 -1
  518. package/dist/components/bs-key-caps.js +1 -1
  519. package/dist/components/bs-key.js +1 -1
  520. package/dist/components/bs-keyboard-shortcuts.js +1 -1
  521. package/dist/components/bs-link.d.ts +11 -0
  522. package/dist/components/bs-link.js +1 -0
  523. package/dist/components/bs-list-item.js +1 -1
  524. package/dist/components/bs-list.js +1 -1
  525. package/dist/components/bs-logo.js +1 -1
  526. package/dist/components/bs-mega-menu.js +1 -1
  527. package/dist/components/bs-menu-block.js +1 -1
  528. package/dist/components/bs-menu-item.js +1 -1
  529. package/dist/components/bs-menu.js +1 -1
  530. package/dist/components/bs-message-list.js +1 -1
  531. package/dist/components/bs-message.js +1 -1
  532. package/dist/components/bs-navigation-drawer-item.js +1 -1
  533. package/dist/components/bs-navigation-drawer.js +1 -1
  534. package/dist/components/bs-navigation-header.js +1 -1
  535. package/dist/components/bs-onboarding-checklist.js +1 -1
  536. package/dist/components/bs-page-header.js +1 -1
  537. package/dist/components/bs-pagination.js +1 -1
  538. package/dist/components/bs-popover.js +1 -1
  539. package/dist/components/bs-presence.js +1 -1
  540. package/dist/components/bs-product-tour.js +1 -1
  541. package/dist/components/bs-progress-linear.js +1 -1
  542. package/dist/components/bs-progress.js +1 -1
  543. package/dist/components/bs-qr-code.js +1 -1
  544. package/dist/components/bs-radio-group.d.ts +11 -0
  545. package/dist/components/bs-radio-group.js +1 -0
  546. package/dist/components/bs-radio.js +1 -1
  547. package/dist/components/bs-ripple.js +1 -1
  548. package/dist/components/bs-search-item.js +1 -1
  549. package/dist/components/bs-select.d.ts +11 -0
  550. package/dist/components/bs-select.js +1 -0
  551. package/dist/components/bs-session-timeout.js +1 -1
  552. package/dist/components/bs-shortcut-row.js +1 -1
  553. package/dist/components/bs-side-panel.js +1 -1
  554. package/dist/components/bs-skeleton.js +1 -1
  555. package/dist/components/bs-skip-link.d.ts +11 -0
  556. package/dist/components/bs-skip-link.js +1 -0
  557. package/dist/components/bs-slider.js +1 -1
  558. package/dist/components/bs-snackbar.js +1 -1
  559. package/dist/components/bs-source-link.js +1 -1
  560. package/dist/components/bs-spinner.js +1 -1
  561. package/dist/components/bs-split-pane.js +1 -1
  562. package/dist/components/bs-stack.js +1 -1
  563. package/dist/components/bs-stat.d.ts +11 -0
  564. package/dist/components/bs-stat.js +1 -0
  565. package/dist/components/bs-stepper-step.js +1 -1
  566. package/dist/components/bs-stepper.js +1 -1
  567. package/dist/components/bs-switch.js +1 -1
  568. package/dist/components/bs-tab.js +1 -1
  569. package/dist/components/bs-table-of-contents.d.ts +11 -0
  570. package/dist/components/bs-table-of-contents.js +1 -0
  571. package/dist/components/bs-tabs.js +1 -1
  572. package/dist/components/bs-tag.d.ts +11 -0
  573. package/dist/components/bs-tag.js +1 -0
  574. package/dist/components/bs-text.d.ts +11 -0
  575. package/dist/components/bs-text.js +1 -0
  576. package/dist/components/bs-timepicker.js +1 -1
  577. package/dist/components/bs-toast.js +1 -1
  578. package/dist/components/bs-toggle-button-group.d.ts +11 -0
  579. package/dist/components/bs-toggle-button-group.js +1 -0
  580. package/dist/components/bs-toggle-button.d.ts +11 -0
  581. package/dist/components/bs-toggle-button.js +1 -0
  582. package/dist/components/bs-toolbar.d.ts +11 -0
  583. package/dist/components/bs-toolbar.js +1 -0
  584. package/dist/components/bs-tooltip-trigger.js +1 -1
  585. package/dist/components/bs-tooltip.js +1 -1
  586. package/dist/components/bs-tree-item.js +1 -1
  587. package/dist/components/bs-tree.js +1 -1
  588. package/dist/components/bs-whats-new-entry.js +1 -1
  589. package/dist/components/bs-whats-new.js +1 -1
  590. package/dist/components/index.js +1 -1
  591. package/dist/components/{p-CFR3Q0io.js → p-BB1HiIxJ.js} +1 -1
  592. package/dist/components/p-BLJL4BVY.js +1 -0
  593. package/dist/components/{p-D5eN9Lfa.js → p-BR7C-aKy.js} +1 -1
  594. package/dist/components/{p-D3PuUD8Z.js → p-Ba8J2kHD.js} +1 -1
  595. package/dist/components/p-CALH_mHQ.js +1 -0
  596. package/dist/components/{p-lPTgyF9v.js → p-CL99S8-7.js} +1 -1
  597. package/dist/components/{p-BpkPo4ay.js → p-CXv8kx8w.js} +1 -1
  598. package/dist/components/{p-Dj393s3S.js → p-CZfbB-t_.js} +1 -1
  599. package/dist/components/p-CcAX4o5o.js +1 -0
  600. package/dist/components/{p-DXwatzvM.js → p-CePOtLtZ.js} +1 -1
  601. package/dist/components/{p-6Rr9bjVN.js → p-Cso2DKAz.js} +1 -1
  602. package/dist/components/{p-CVQycAap.js → p-CxNNy2m6.js} +1 -1
  603. package/dist/components/{p-CHZE_FrW.js → p-Cz38kNDe.js} +1 -1
  604. package/dist/components/p-D3XmFqCQ.js +1 -0
  605. package/dist/components/{p-Y5FyLR8G.js → p-D4W5LcEW.js} +1 -1
  606. package/dist/components/{p--Tyv3LIl.js → p-DARbgzSz.js} +1 -1
  607. package/dist/components/{p-DXbcyEgd.js → p-DBgafacj.js} +1 -1
  608. package/dist/components/p-DHZ_DStJ.js +1 -0
  609. package/dist/components/{p-BQ4rSQDm.js → p-DK1uv2fu.js} +1 -1
  610. package/dist/components/{p-DLnZG_G9.js → p-DL9HtG41.js} +1 -1
  611. package/dist/components/{p-Cr8cHmpM.js → p-DLNoxNuW.js} +1 -1
  612. package/dist/components/{p-4yShCgRb.js → p-DMp5CvEJ.js} +1 -1
  613. package/dist/components/p-DO4sVZCh.js +1 -0
  614. package/dist/components/{p-DDgzEg1C.js → p-DOW-YekD.js} +1 -1
  615. package/dist/components/{p-BTPdjnXT.js → p-DVqoLSEW.js} +1 -1
  616. package/dist/components/{p-DF2FcJPs.js → p-DYpJMHAH.js} +1 -1
  617. package/dist/components/{p-DtkTnaOp.js → p-DaKBSL2O.js} +1 -1
  618. package/dist/components/{p-ZfE38vXZ.js → p-Dlp2c-Ii.js} +1 -1
  619. package/dist/components/{p-XZXdZpt4.js → p-DnagAPBF.js} +1 -1
  620. package/dist/components/p-Dt3b6VYT.js +1 -0
  621. package/dist/components/{p-DcD5eV_Z.js → p-DztU3DwY.js} +1 -1
  622. package/dist/components/{p-BWRkbt0f.js → p-KiyJJwzr.js} +1 -1
  623. package/dist/components/p-Vo0zbGRB.js +1 -0
  624. package/dist/components/p-abyVFrPp.js +1 -0
  625. package/dist/components/p-mxDA3wKn.js +1 -0
  626. package/dist/components/p-wd9-vGpQ.js +1 -0
  627. package/dist/components/p-wscU7FUD.js +1 -0
  628. package/dist/esm/brandsync-wc.js +3 -3
  629. package/dist/esm/bs-accordion-group.entry.js +2 -2
  630. package/dist/esm/bs-accordion.entry.js +1 -1
  631. package/dist/esm/bs-ai-disclaimer.entry.js +2 -2
  632. package/dist/esm/bs-ai-greeting.entry.js +2 -2
  633. package/dist/esm/bs-ai-thinking.entry.js +2 -2
  634. package/dist/esm/bs-app-recent-item_3.entry.js +5 -5
  635. package/dist/esm/bs-app-shell.entry.js +2 -2
  636. package/dist/esm/bs-app-switcher.entry.js +1 -1
  637. package/dist/esm/bs-attachment-list.entry.js +2 -2
  638. package/dist/esm/bs-attachment.entry.js +2 -2
  639. package/dist/esm/bs-avatar.entry.js +3 -10
  640. package/dist/esm/bs-badge.entry.js +2 -2
  641. package/dist/esm/bs-breadcrumb-overflow.entry.js +1 -1
  642. package/dist/esm/bs-breadcrumb.entry.js +3 -3
  643. package/dist/esm/bs-breadcrumbs.entry.js +10 -2
  644. package/dist/esm/bs-button-skeleton.entry.js +2 -2
  645. package/dist/esm/bs-button_2.entry.js +17 -4
  646. package/dist/esm/bs-card.entry.js +44 -3
  647. package/dist/esm/bs-carousel.entry.js +1 -1
  648. package/dist/esm/bs-chatbot-feedback.entry.js +3 -7
  649. package/dist/esm/bs-chatbot-header.entry.js +3 -7
  650. package/dist/esm/bs-chatbot-response-action.entry.js +2 -2
  651. package/dist/esm/bs-chatbot-sources-drawer.entry.js +2 -2
  652. package/dist/esm/bs-chatbot-suggestion-button.entry.js +3 -3
  653. package/dist/esm/bs-checkbox-group.entry.js +78 -0
  654. package/dist/esm/bs-checkbox-skeleton.entry.js +2 -2
  655. package/dist/esm/bs-checkbox.entry.js +1 -1
  656. package/dist/esm/bs-chip-filter.entry.js +2 -2
  657. package/dist/esm/bs-chip-informative.entry.js +2 -2
  658. package/dist/esm/bs-chip-input.entry.js +2 -2
  659. package/dist/esm/bs-citation-preview.entry.js +2 -2
  660. package/dist/esm/bs-code-block.entry.js +73 -0
  661. package/dist/esm/bs-command-palette.entry.js +2 -2
  662. package/dist/esm/bs-compact-menu-block_2.entry.js +5 -5
  663. package/dist/esm/bs-company-switcher.entry.js +3 -3
  664. package/dist/esm/bs-composer-status-banner.entry.js +2 -2
  665. package/dist/esm/bs-composer.entry.js +6 -4
  666. package/dist/esm/bs-container.entry.js +2 -2
  667. package/dist/esm/bs-cookie-consent.entry.js +1 -1
  668. package/dist/esm/bs-data-table.entry.js +8 -5
  669. package/dist/esm/bs-datepicker.entry.js +2 -2
  670. package/dist/esm/bs-description-item.entry.js +21 -0
  671. package/dist/esm/bs-description-list.entry.js +38 -0
  672. package/dist/esm/bs-dialog.entry.js +1 -1
  673. package/dist/esm/bs-divider.entry.js +2 -2
  674. package/dist/esm/bs-dropdown.entry.js +94 -0
  675. package/dist/esm/bs-empty-state.entry.js +7 -3
  676. package/dist/esm/bs-error-page.entry.js +2 -2
  677. package/dist/esm/bs-file-upload-item.entry.js +2 -2
  678. package/dist/esm/bs-file-upload.entry.js +2 -2
  679. package/dist/esm/bs-global-search.entry.js +3 -3
  680. package/dist/esm/bs-grid.entry.js +3 -3
  681. package/dist/esm/bs-heading.entry.js +26 -0
  682. package/dist/esm/bs-icon-button.entry.js +10 -3
  683. package/dist/esm/bs-icon-tile.entry.js +3 -3
  684. package/dist/esm/bs-icon.entry.js +33 -0
  685. package/dist/esm/bs-inline-tab.entry.js +3 -3
  686. package/dist/esm/bs-input_4.entry.js +789 -0
  687. package/dist/esm/bs-key-caps.entry.js +2 -2
  688. package/dist/esm/bs-key.entry.js +2 -2
  689. package/dist/esm/bs-keyboard-shortcuts.entry.js +3 -3
  690. package/dist/esm/bs-link.entry.js +50 -0
  691. package/dist/esm/bs-list-item.entry.js +66 -0
  692. package/dist/esm/bs-list.entry.js +9 -3
  693. package/dist/esm/bs-logo.entry.js +1 -1
  694. package/dist/esm/bs-mega-menu.entry.js +2 -2
  695. package/dist/esm/bs-message-list.entry.js +2 -2
  696. package/dist/esm/bs-message.entry.js +2 -2
  697. package/dist/esm/bs-navigation-drawer-item.entry.js +26 -5
  698. package/dist/esm/bs-navigation-drawer.entry.js +4 -4
  699. package/dist/esm/bs-navigation-header.entry.js +4 -4
  700. package/dist/esm/bs-onboarding-checklist.entry.js +1 -1
  701. package/dist/esm/bs-page-header.entry.js +2 -2
  702. package/dist/esm/bs-pagination.entry.js +2 -2
  703. package/dist/esm/{bs-list-item_2.entry.js → bs-popover.entry.js} +3 -64
  704. package/dist/esm/bs-presence.entry.js +2 -2
  705. package/dist/esm/bs-product-tour.entry.js +1 -1
  706. package/dist/esm/bs-progress-linear.entry.js +4 -4
  707. package/dist/esm/bs-progress.entry.js +3 -3
  708. package/dist/esm/bs-qr-code.entry.js +2 -2
  709. package/dist/esm/bs-radio-group.entry.js +88 -0
  710. package/dist/esm/bs-radio.entry.js +6 -2
  711. package/dist/esm/bs-search-item.entry.js +2 -2
  712. package/dist/esm/bs-select.entry.js +232 -0
  713. package/dist/esm/bs-session-timeout.entry.js +2 -2
  714. package/dist/esm/bs-shortcut-row.entry.js +2 -2
  715. package/dist/esm/bs-side-panel.entry.js +1 -1
  716. package/dist/esm/bs-skip-link.entry.js +50 -0
  717. package/dist/esm/bs-slider.entry.js +3 -3
  718. package/dist/esm/bs-snackbar.entry.js +3 -3
  719. package/dist/esm/bs-source-link.entry.js +4 -4
  720. package/dist/esm/bs-split-pane.entry.js +2 -2
  721. package/dist/esm/bs-stack.entry.js +2 -2
  722. package/dist/esm/bs-stat.entry.js +51 -0
  723. package/dist/esm/bs-stepper-step.entry.js +2 -2
  724. package/dist/esm/bs-stepper.entry.js +2 -2
  725. package/dist/esm/bs-switch.entry.js +2 -2
  726. package/dist/esm/bs-tab_3.entry.js +16 -9
  727. package/dist/esm/bs-table-of-contents.entry.js +169 -0
  728. package/dist/esm/bs-tag.entry.js +49 -0
  729. package/dist/esm/bs-text.entry.js +22 -0
  730. package/dist/esm/bs-timepicker.entry.js +3 -3
  731. package/dist/esm/bs-toast.entry.js +2 -2
  732. package/dist/esm/bs-toggle-button-group.entry.js +106 -0
  733. package/dist/esm/bs-toggle-button.entry.js +55 -0
  734. package/dist/esm/bs-toolbar.entry.js +193 -0
  735. package/dist/esm/bs-tooltip-trigger.entry.js +2 -2
  736. package/dist/esm/bs-tooltip.entry.js +2 -2
  737. package/dist/esm/bs-tree-item.entry.js +3 -3
  738. package/dist/esm/bs-tree.entry.js +2 -2
  739. package/dist/esm/bs-whats-new.entry.js +1 -1
  740. package/dist/esm/icon-registry-Vo0zbGRB.js +60 -0
  741. package/dist/esm/{index-D3SkQJpw.js → index-wz7B473u.js} +1 -1
  742. package/dist/esm/index.js +2 -0
  743. package/dist/esm/loader.js +3 -3
  744. package/dist/types/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.d.ts +9 -0
  745. package/dist/types/components/bs-button/bs-button/bs-button.d.ts +22 -6
  746. package/dist/types/components/bs-button/bs-icon-button/bs-icon-button.d.ts +7 -0
  747. package/dist/types/components/bs-card/bs-card.d.ts +35 -0
  748. package/dist/types/components/bs-card/bs-card.stories.d.ts +3 -0
  749. package/dist/types/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.d.ts +3 -0
  750. package/dist/types/components/bs-checkbox-group/bs-checkbox-group.cmp.test.d.ts +1 -0
  751. package/dist/types/components/bs-checkbox-group/bs-checkbox-group.d.ts +48 -0
  752. package/dist/types/components/bs-checkbox-group/bs-checkbox-group.stories.d.ts +15 -0
  753. package/dist/types/components/bs-code-block/bs-code-block.cmp.test.d.ts +1 -0
  754. package/dist/types/components/bs-code-block/bs-code-block.d.ts +68 -0
  755. package/dist/types/components/bs-code-block/bs-code-block.stories.d.ts +18 -0
  756. package/dist/types/components/bs-data-table/bs-data-table.d.ts +11 -0
  757. package/dist/types/components/bs-description-item/bs-description-item.cmp.test.d.ts +1 -0
  758. package/dist/types/components/bs-description-item/bs-description-item.d.ts +34 -0
  759. package/dist/types/components/bs-description-list/bs-description-list.cmp.test.d.ts +1 -0
  760. package/dist/types/components/bs-description-list/bs-description-list.d.ts +33 -0
  761. package/dist/types/components/bs-description-list/bs-description-list.stories.d.ts +11 -0
  762. package/dist/types/components/bs-dropdown/bs-dropdown.cmp.test.d.ts +1 -0
  763. package/dist/types/components/bs-dropdown/bs-dropdown.d.ts +51 -0
  764. package/dist/types/components/bs-dropdown/bs-dropdown.stories.d.ts +12 -0
  765. package/dist/types/components/bs-empty-state/bs-empty-state.d.ts +6 -0
  766. package/dist/types/components/bs-empty-state/bs-empty-state.stories.d.ts +3 -0
  767. package/dist/types/components/bs-heading/bs-heading.cmp.test.d.ts +1 -0
  768. package/dist/types/components/bs-heading/bs-heading.d.ts +34 -0
  769. package/dist/types/components/bs-heading/bs-heading.stories.d.ts +15 -0
  770. package/dist/types/components/bs-icon/bs-icon.cmp.test.d.ts +1 -0
  771. package/dist/types/components/bs-icon/bs-icon.d.ts +39 -0
  772. package/dist/types/components/bs-icon/bs-icon.stories.d.ts +16 -0
  773. package/dist/types/components/bs-icon/icon-registry.d.ts +16 -0
  774. package/dist/types/components/bs-input/bs-input.d.ts +83 -12
  775. package/dist/types/components/bs-input/bs-input.stories.d.ts +3 -1
  776. package/dist/types/components/bs-link/bs-link.cmp.test.d.ts +1 -0
  777. package/dist/types/components/bs-link/bs-link.d.ts +48 -0
  778. package/dist/types/components/bs-link/bs-link.stories.d.ts +19 -0
  779. package/dist/types/components/bs-list/bs-list.d.ts +6 -0
  780. package/dist/types/components/bs-list/bs-list.stories.d.ts +4 -0
  781. package/dist/types/components/bs-list-item/bs-list-item.d.ts +3 -0
  782. package/dist/types/components/bs-radio/bs-radio.d.ts +4 -0
  783. package/dist/types/components/bs-radio-group/bs-radio-group.cmp.test.d.ts +1 -0
  784. package/dist/types/components/bs-radio-group/bs-radio-group.d.ts +57 -0
  785. package/dist/types/components/bs-radio-group/bs-radio-group.stories.d.ts +16 -0
  786. package/dist/types/components/bs-select/bs-select.cmp.test.d.ts +1 -0
  787. package/dist/types/components/bs-select/bs-select.d.ts +85 -0
  788. package/dist/types/components/bs-select/bs-select.stories.d.ts +19 -0
  789. package/dist/types/components/bs-skip-link/bs-skip-link.cmp.test.d.ts +1 -0
  790. package/dist/types/components/bs-skip-link/bs-skip-link.d.ts +40 -0
  791. package/dist/types/components/bs-skip-link/bs-skip-link.stories.d.ts +10 -0
  792. package/dist/types/components/bs-stat/bs-stat.cmp.test.d.ts +1 -0
  793. package/dist/types/components/bs-stat/bs-stat.d.ts +56 -0
  794. package/dist/types/components/bs-stat/bs-stat.stories.d.ts +16 -0
  795. package/dist/types/components/bs-tab/bs-inline-tab/bs-inline-tab.stories.d.ts +0 -1
  796. package/dist/types/components/bs-tab/bs-tabs/bs-tabs.d.ts +5 -3
  797. package/dist/types/components/bs-table-of-contents/bs-table-of-contents.cmp.test.d.ts +1 -0
  798. package/dist/types/components/bs-table-of-contents/bs-table-of-contents.d.ts +96 -0
  799. package/dist/types/components/bs-table-of-contents/bs-table-of-contents.stories.d.ts +13 -0
  800. package/dist/types/components/bs-tag/bs-tag.cmp.test.d.ts +1 -0
  801. package/dist/types/components/bs-tag/bs-tag.d.ts +49 -0
  802. package/dist/types/components/bs-tag/bs-tag.stories.d.ts +16 -0
  803. package/dist/types/components/bs-text/bs-text.cmp.test.d.ts +1 -0
  804. package/dist/types/components/bs-text/bs-text.d.ts +31 -0
  805. package/dist/types/components/bs-text/bs-text.stories.d.ts +14 -0
  806. package/dist/types/components/bs-toggle-button/bs-toggle-button.cmp.test.d.ts +1 -0
  807. package/dist/types/components/bs-toggle-button/bs-toggle-button.d.ts +48 -0
  808. package/dist/types/components/bs-toggle-button/bs-toggle-button.stories.d.ts +13 -0
  809. package/dist/types/components/bs-toggle-button-group/bs-toggle-button-group.cmp.test.d.ts +1 -0
  810. package/dist/types/components/bs-toggle-button-group/bs-toggle-button-group.d.ts +42 -0
  811. package/dist/types/components/bs-toggle-button-group/bs-toggle-button-group.stories.d.ts +13 -0
  812. package/dist/types/components/bs-toolbar/bs-toolbar.cmp.test.d.ts +1 -0
  813. package/dist/types/components/bs-toolbar/bs-toolbar.d.ts +88 -0
  814. package/dist/types/components/bs-toolbar/bs-toolbar.stories.d.ts +13 -0
  815. package/dist/types/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.d.ts +11 -1
  816. package/dist/types/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.stories.d.ts +3 -0
  817. package/dist/types/components.d.ts +3107 -88
  818. package/dist/types/index.d.ts +1 -0
  819. package/dist/types/test/helpers/block-link-navigation.d.ts +8 -0
  820. package/dist/types/test/helpers/contrast.d.ts +5 -0
  821. package/package.json +1 -1
  822. package/reference.d.ts +63 -9
  823. package/reference.json +668 -15
  824. package/dist/brandsync-wc/p-08649f52.entry.js +0 -1
  825. package/dist/brandsync-wc/p-1580c56c.entry.js +0 -1
  826. package/dist/brandsync-wc/p-171fa239.entry.js +0 -1
  827. package/dist/brandsync-wc/p-197ac73f.entry.js +0 -1
  828. package/dist/brandsync-wc/p-270b2cb0.entry.js +0 -1
  829. package/dist/brandsync-wc/p-28c38959.entry.js +0 -1
  830. package/dist/brandsync-wc/p-2a967b45.entry.js +0 -1
  831. package/dist/brandsync-wc/p-2b3d0bd4.entry.js +0 -1
  832. package/dist/brandsync-wc/p-3627e0c6.entry.js +0 -1
  833. package/dist/brandsync-wc/p-38a2210a.entry.js +0 -1
  834. package/dist/brandsync-wc/p-3b212a8a.entry.js +0 -1
  835. package/dist/brandsync-wc/p-4dfd4715.entry.js +0 -1
  836. package/dist/brandsync-wc/p-6afacd47.entry.js +0 -1
  837. package/dist/brandsync-wc/p-6f32a08e.entry.js +0 -1
  838. package/dist/brandsync-wc/p-D3SkQJpw.js +0 -3
  839. package/dist/brandsync-wc/p-ab301e9d.entry.js +0 -1
  840. package/dist/brandsync-wc/p-d15e48eb.entry.js +0 -1
  841. package/dist/brandsync-wc/p-e776d145.entry.js +0 -1
  842. package/dist/brandsync-wc/p-eb680cff.entry.js +0 -1
  843. package/dist/brandsync-wc/p-f4628861.entry.js +0 -1
  844. package/dist/brandsync-wc/p-f5e6fdf8.entry.js +0 -1
  845. package/dist/brandsync-wc/p-f93127e1.entry.js +0 -1
  846. package/dist/cjs/bs-input_3.cjs.entry.js +0 -461
  847. package/dist/cjs/bs-spinner.cjs.entry.js +0 -24
  848. package/dist/components/p-B2gx7SZk.js +0 -1
  849. package/dist/components/p-BHzj13sd.js +0 -1
  850. package/dist/components/p-BIxcCDgl.js +0 -1
  851. package/dist/components/p-BfCah-Ij.js +0 -1
  852. package/dist/components/p-CvSewXZF.js +0 -1
  853. package/dist/components/p-DsBToIYE.js +0 -1
  854. package/dist/components/p-EGNLb4cQ.js +0 -1
  855. package/dist/components/p-Jik5UkAe.js +0 -1
  856. package/dist/components/p-syO0ipbw.js +0 -1
  857. package/dist/components/p-up01gvHY.js +0 -1
  858. package/dist/esm/bs-input_3.entry.js +0 -457
  859. package/dist/esm/bs-spinner.entry.js +0 -22
@@ -1 +1 @@
1
- import{t as e,p as s,H as t,c as a,h as n,d as r}from"./p-B2gx7SZk.js";const i=["fade","slide-up","slide-down","scale","collapse"],c=s(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsTransitionEnd=a(this,"bsTransitionEnd")}get el(){return this}active=!1;preset="fade";duration="default";easing="standard";bsTransitionEnd;clip;shell;onActiveChange(e){const s=this.clip,t=this.shell;s?.getAnimations().forEach((e=>e.cancel())),t?.getAnimations().forEach((e=>e.cancel()));const a=this.motionDuration();if(!s||0===a)return void this.bsTransitionEnd.emit(e);const n=getComputedStyle(this.el),r=n.getPropertyValue("--bs-presence-easing").trim()||"ease",c=n.getPropertyValue("--bs-presence-distance").trim()||"0px",o=n.getPropertyValue("--bs-presence-scale").trim()||"1",d=i.includes(this.preset)?this.preset:"fade",p={opacity:1,transform:"none"},l={opacity:0,transform:"slide-up"===d?`translateY(${c})`:"slide-down"===d?`translateY(calc(${c} * -1))`:"scale"===d?`scale(${o})`:"none"},b=s.animate(e?[l,p]:[p,l],{duration:a,easing:r,fill:"both"});"collapse"===d&&t&&t.animate(e?[{gridTemplateRows:"0fr"},{gridTemplateRows:"1fr"}]:[{gridTemplateRows:"1fr"},{gridTemplateRows:"0fr"}],{duration:a,easing:r,fill:"both"}),b.onfinish=()=>{b.cancel(),t?.getAnimations().forEach((e=>e.cancel())),this.active===e&&this.bsTransitionEnd.emit(e)}}motionDuration(){const e=getComputedStyle(this.el).getPropertyValue("--bs-presence-duration").trim();return e.endsWith("ms")?parseFloat(e):e.endsWith("s")?1e3*parseFloat(e):0}render(){const e=i.includes(this.preset)?this.preset:"fade";return n(r,{key:"2defd735d80a2efdccffd600c23f1db31ef5914d",inert:!this.active||void 0,"aria-hidden":this.active?null:"true"},n("div",{key:"bebdec566c415bcb0baa196c3f74b04adc80dfb4",part:"content",class:`bs-presence bs-presence--${e}${this.active?"":" bs-presence--closed"}`,ref:e=>this.shell=e},n("div",{key:"fac80d18429fe4aa2b00533ede5b7ae228cf142e",class:"bs-presence__clip",ref:e=>this.clip=e},n("slot",{key:"86fc247c13f2c64c365f8c8f9d959af6befaa89a"}))))}static get watchers(){return{active:[{onActiveChange:0}]}}static get style(){return":host{display:block;--bs-presence-duration:var(--bs-duration-default);--bs-presence-easing:var(--bs-easing-standard);--bs-presence-distance:var(--bs-spacing-400);--bs-presence-scale:0.96}:host([duration='instant']){--bs-presence-duration:var(--bs-duration-instant)}:host([duration='fast']){--bs-presence-duration:var(--bs-duration-fast)}:host([duration='default']){--bs-presence-duration:var(--bs-duration-default)}:host([duration='slow']){--bs-presence-duration:var(--bs-duration-slow)}:host([duration='slower']){--bs-presence-duration:var(--bs-duration-slower)}:host([easing='standard']){--bs-presence-easing:var(--bs-easing-standard)}:host([easing='decelerate']){--bs-presence-easing:var(--bs-easing-decelerate)}:host([easing='accelerate']){--bs-presence-easing:var(--bs-easing-accelerate)}:host([easing='linear']){--bs-presence-easing:var(--bs-easing-linear)}@media (prefers-reduced-motion: reduce){:host{--bs-presence-duration:var(--bs-duration-instant)}}.bs-presence{display:grid;grid-template-rows:1fr}.bs-presence--closed.bs-presence--collapse{grid-template-rows:0fr}.bs-presence--collapse .bs-presence__clip{overflow:hidden}.bs-presence__clip{min-height:0;opacity:1;transform:none}.bs-presence--closed .bs-presence__clip{opacity:0;pointer-events:none}.bs-presence--slide-up.bs-presence--closed .bs-presence__clip{transform:translateY(var(--bs-presence-distance))}.bs-presence--slide-down.bs-presence--closed .bs-presence__clip{transform:translateY(calc(var(--bs-presence-distance) * -1))}.bs-presence--scale.bs-presence--closed .bs-presence__clip{transform:scale(var(--bs-presence-scale))}"}},[769,"bs-presence",{active:[516],preset:[513],duration:[513],easing:[513]},void 0,{active:[{onActiveChange:0}]}]);function o(){"undefined"!=typeof customElements&&["bs-presence"].forEach((s=>{"bs-presence"===s&&(customElements.get(e(s))||customElements.define(e(s),c))}))}o();const d=c,p=o;export{d as BsPresence,p as defineCustomElement}
1
+ import{t as e,p as s,H as t,c as a,h as n,d as r}from"./p-CcAX4o5o.js";const i=["fade","slide-up","slide-down","scale","collapse"],c=s(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsTransitionEnd=a(this,"bsTransitionEnd")}get el(){return this}active=!1;preset="fade";duration="default";easing="standard";bsTransitionEnd;clip;shell;onActiveChange(e){const s=this.clip,t=this.shell;s?.getAnimations().forEach((e=>e.cancel())),t?.getAnimations().forEach((e=>e.cancel()));const a=this.motionDuration();if(!s||0===a)return void this.bsTransitionEnd.emit(e);const n=getComputedStyle(this.el),r=n.getPropertyValue("--bs-presence-easing").trim()||"ease",c=n.getPropertyValue("--bs-presence-distance").trim()||"0px",o=n.getPropertyValue("--bs-presence-scale").trim()||"1",d=i.includes(this.preset)?this.preset:"fade",p={opacity:1,transform:"none"},l={opacity:0,transform:"slide-up"===d?`translateY(${c})`:"slide-down"===d?`translateY(calc(${c} * -1))`:"scale"===d?`scale(${o})`:"none"},b=s.animate(e?[l,p]:[p,l],{duration:a,easing:r,fill:"both"});"collapse"===d&&t&&t.animate(e?[{gridTemplateRows:"0fr"},{gridTemplateRows:"1fr"}]:[{gridTemplateRows:"1fr"},{gridTemplateRows:"0fr"}],{duration:a,easing:r,fill:"both"}),b.onfinish=()=>{b.cancel(),t?.getAnimations().forEach((e=>e.cancel())),this.active===e&&this.bsTransitionEnd.emit(e)}}motionDuration(){const e=getComputedStyle(this.el).getPropertyValue("--bs-presence-duration").trim();return e.endsWith("ms")?parseFloat(e):e.endsWith("s")?1e3*parseFloat(e):0}render(){const e=i.includes(this.preset)?this.preset:"fade";return n(r,{key:"9d25523c831b2851a7fb0f2c012361ddb6726e73",inert:!this.active||void 0,"aria-hidden":this.active?null:"true"},n("div",{key:"14726f5a42d6821866737b46f23cd4b103ca5649",part:"content",class:`bs-presence bs-presence--${e}${this.active?"":" bs-presence--closed"}`,ref:e=>this.shell=e},n("div",{key:"35619f949a9e75db1c25ebca2c05d9e629d2ba51",class:"bs-presence__clip",ref:e=>this.clip=e},n("slot",{key:"65da3ddd001ae35ae919550b10c1118285bbaffa"}))))}static get watchers(){return{active:[{onActiveChange:0}]}}static get style(){return":host{display:block;--bs-presence-duration:var(--bs-duration-default);--bs-presence-easing:var(--bs-easing-standard);--bs-presence-distance:var(--bs-spacing-400);--bs-presence-scale:0.96}:host([duration='instant']){--bs-presence-duration:var(--bs-duration-instant)}:host([duration='fast']){--bs-presence-duration:var(--bs-duration-fast)}:host([duration='default']){--bs-presence-duration:var(--bs-duration-default)}:host([duration='slow']){--bs-presence-duration:var(--bs-duration-slow)}:host([duration='slower']){--bs-presence-duration:var(--bs-duration-slower)}:host([easing='standard']){--bs-presence-easing:var(--bs-easing-standard)}:host([easing='decelerate']){--bs-presence-easing:var(--bs-easing-decelerate)}:host([easing='accelerate']){--bs-presence-easing:var(--bs-easing-accelerate)}:host([easing='linear']){--bs-presence-easing:var(--bs-easing-linear)}@media (prefers-reduced-motion: reduce){:host{--bs-presence-duration:var(--bs-duration-instant)}}.bs-presence{display:grid;grid-template-rows:1fr}.bs-presence--closed.bs-presence--collapse{grid-template-rows:0fr}.bs-presence--collapse .bs-presence__clip{overflow:hidden}.bs-presence__clip{min-height:0;opacity:1;transform:none}.bs-presence--closed .bs-presence__clip{opacity:0;pointer-events:none}.bs-presence--slide-up.bs-presence--closed .bs-presence__clip{transform:translateY(var(--bs-presence-distance))}.bs-presence--slide-down.bs-presence--closed .bs-presence__clip{transform:translateY(calc(var(--bs-presence-distance) * -1))}.bs-presence--scale.bs-presence--closed .bs-presence__clip{transform:scale(var(--bs-presence-scale))}"}},[769,"bs-presence",{active:[516],preset:[513],duration:[513],easing:[513]},void 0,{active:[{onActiveChange:0}]}]);function o(){"undefined"!=typeof customElements&&["bs-presence"].forEach((s=>{"bs-presence"===s&&(customElements.get(e(s))||customElements.define(e(s),c))}))}o();const d=c,p=o;export{d as BsPresence,p as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as r,H as o,c as s,h as a}from"./p-B2gx7SZk.js";import{d as e}from"./p-up01gvHY.js";import{d as i}from"./p-EGNLb4cQ.js";import{d as c}from"./p-BfCah-Ij.js";import{d as p}from"./p-CHZE_FrW.js";import{d as u}from"./p-DtkTnaOp.js";const d=r(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.bsPrimary=s(this,"bsPrimary"),this.bsSecondary=s(this,"bsSecondary"),this.bsClose=s(this,"bsClose")}type="welcome";direction="top";heading;description;step=1;total=0;progressLabel="{step} of {total}";primaryLabel;secondaryLabel;closable=!1;closeLabel="Close";bsPrimary;bsSecondary;bsClose;get primary(){return void 0!==this.primaryLabel?this.primaryLabel:{welcome:"Start",success:"Done",pointer:"Next"}[this.type]??""}get secondary(){return void 0!==this.secondaryLabel?this.secondaryLabel:{welcome:"Later",success:"",pointer:"Back"}[this.type]??""}renderActions(t,r){const{primary:o,secondary:s}=this;return o||s?a("div",{part:"actions",class:"bs-product-tour__actions"},s&&a("bs-button",{part:"secondary",variant:r,size:t,onClick:()=>this.bsSecondary.emit()},s),o&&a("bs-button",{part:"primary",variant:"primary",size:t,onClick:()=>this.bsPrimary.emit()},o)):null}renderCard(){const t="success"===this.type;return a("bs-card",{part:"container",class:"bs-product-tour bs-product-tour--card",surface:"base"},a("div",{class:"bs-product-tour__body"},a("bs-icon-tile",{part:"art",class:"bs-product-tour__art",intent:t?"success":"brand",size:"lg"},a("slot",{name:"icon"},a(t?b:n,null))),this.heading&&a("p",{part:"heading",class:"bs-product-tour__heading"},this.heading),this.description&&a("p",{part:"description",class:"bs-product-tour__description"},this.description),this.renderActions("md","outlined")))}renderPointer(){const t=this.total>0?this.progressLabel.replace("{step}",this.step+"").replace("{total}",this.total+""):"";return a("div",{class:"bs-product-tour bs-product-tour--pointer"},a("div",{part:"arrow",class:"bs-product-tour__arrow","aria-hidden":"true"}),a("bs-card",{part:"container",class:"bs-product-tour__card",surface:"base"},this.closable&&a("bs-icon-button",{part:"close",class:"bs-product-tour__close",variant:"subtle",size:"sm",ariaLabel:this.closeLabel,onClick:()=>this.bsClose.emit()},a("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round","aria-hidden":"true"},a("path",{d:"M5 5L15 15M15 5L5 15"}))),a("div",{class:"bs-product-tour__body"},a("div",{class:"bs-product-tour__text"},this.heading&&a("p",{part:"heading",class:"bs-product-tour__heading"},this.heading),this.description&&a("p",{part:"description",class:"bs-product-tour__description"},this.description)),a("div",{part:"footer",class:"bs-product-tour__footer"},t?a("span",{part:"progress",class:"bs-product-tour__progress"},t):a("span",null),this.renderActions("sm","subtle")))))}render(){return"pointer"===this.type?this.renderPointer():this.renderCard()}static get style(){return":host{display:inline-block;--bs-product-tour-bg:var(--bs-paper-bg-base);--bs-product-tour-radius:var(--bs-border-radius-150);--bs-product-tour-color:var(--bs-text-default);--bs-product-tour-color-secondary:var(--bs-text-secondary);--bs-product-tour-art-size:64px;--bs-product-tour-art-icon-size:28px;--bs-product-tour-arrow-width:22px;--bs-product-tour-arrow-height:16px;--bs-product-tour-arrow-offset:36px;--bs-product-tour-width:400px;--bs-product-tour-padding:var(--bs-spacing-300);--bs-product-tour-gap:var(--bs-spacing-150);--bs-product-tour-shadow-color:var(--bs-elevation-medium)}:host([type='pointer']){--bs-product-tour-width:320px;--bs-product-tour-padding:var(--bs-spacing-200);--bs-product-tour-gap:var(--bs-spacing-100);--bs-product-tour-shadow-color:var(--bs-elevation-high)}.bs-product-tour{position:relative;width:var(--bs-product-tour-width);max-width:100%;color:var(--bs-product-tour-color);font-family:inherit}.bs-product-tour,.bs-product-tour__card{--bs-card-bg:var(--bs-product-tour-bg);--bs-card-radius:var(--bs-product-tour-radius);--bs-card-padding:var(--bs-product-tour-padding)}.bs-product-tour__body{display:flex;flex-direction:column;gap:var(--bs-product-tour-gap)}.bs-product-tour p{margin:0}.bs-product-tour--card{--bs-card-shadow:0 4px 8px var(--bs-product-tour-shadow-color)}.bs-product-tour--card .bs-product-tour__body{align-items:center;text-align:center}.bs-product-tour__art{--bs-icon-tile-size:var(--bs-product-tour-art-size);--bs-icon-tile-icon-size:var(--bs-product-tour-art-icon-size)}.bs-product-tour__glyph,::slotted([slot='icon']){width:var(--bs-product-tour-art-icon-size);height:var(--bs-product-tour-art-icon-size)}.bs-product-tour--card .bs-product-tour__heading{align-self:stretch;font-size:var(--bs-font-size-2xl);font-weight:var(--bs-font-weight-bold);line-height:32px}.bs-product-tour--card .bs-product-tour__description{align-self:stretch;color:var(--bs-product-tour-color-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-product-tour--card .bs-product-tour__actions{padding-top:var(--bs-spacing-100)}.bs-product-tour--card .bs-product-tour__actions bs-button{--bs-button-height-md:var(--bs-spacing-550);min-width:94px}.bs-product-tour--pointer{filter:drop-shadow(0 4px 4px var(--bs-product-tour-shadow-color))}.bs-product-tour__card{display:block;--bs-card-shadow:none}.bs-product-tour--pointer .bs-product-tour__body{min-height:calc(140px - var(--bs-product-tour-padding) * 2)}.bs-product-tour--pointer .bs-product-tour__text{display:flex;flex-direction:column;gap:var(--bs-spacing-25);padding-inline-end:var(--bs-spacing-500)}.bs-product-tour--pointer .bs-product-tour__heading{font-size:var(--bs-font-size-md);font-weight:var(--bs-font-weight-semibold);line-height:24px}.bs-product-tour--pointer .bs-product-tour__description{color:var(--bs-product-tour-color-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-product-tour__close{position:absolute;top:3px;inset-inline-end:3px}.bs-product-tour__close svg{width:20px;height:20px}.bs-product-tour__footer{display:flex;align-items:center;justify-content:space-between;gap:var(--bs-spacing-100);margin-top:auto;padding-top:4px}.bs-product-tour__progress{color:var(--bs-product-tour-color-secondary);font-size:var(--bs-font-size-xs);line-height:16px;white-space:nowrap}.bs-product-tour--pointer .bs-product-tour__actions{display:flex;align-items:center;gap:var(--bs-spacing-100)}.bs-product-tour--pointer .bs-product-tour__actions bs-button{--bs-button-height-sm:var(--bs-spacing-400)}.bs-product-tour--card .bs-product-tour__actions{display:flex;align-items:center;gap:var(--bs-spacing-100)}.bs-product-tour__arrow{position:absolute;background:var(--bs-product-tour-bg);pointer-events:none}:host([direction^='top']) .bs-product-tour__arrow,:host([direction^='bottom']) .bs-product-tour__arrow{width:var(--bs-product-tour-arrow-width);height:calc(var(--bs-product-tour-arrow-height) + 1px)}:host([direction^='top']) .bs-product-tour__arrow{bottom:calc(100% - 1px);clip-path:polygon(50% 0, 100% 100%, 0 100%)}:host([direction^='bottom']) .bs-product-tour__arrow{top:calc(100% - 1px);clip-path:polygon(0 0, 100% 0, 50% 100%)}:host([direction='top']) .bs-product-tour__arrow,:host([direction='bottom']) .bs-product-tour__arrow{left:50%;transform:translateX(-50%)}:host([direction$='-left']) .bs-product-tour__arrow{left:var(--bs-product-tour-arrow-offset);transform:translateX(-50%)}:host([direction$='-right']) .bs-product-tour__arrow{right:var(--bs-product-tour-arrow-offset);transform:translateX(50%)}:host([direction^='left']) .bs-product-tour__arrow,:host([direction^='right']) .bs-product-tour__arrow{width:calc(var(--bs-product-tour-arrow-height) + 1px);height:var(--bs-product-tour-arrow-width)}:host([direction^='left']) .bs-product-tour__arrow{right:calc(100% - 1px);clip-path:polygon(0 50%, 100% 0, 100% 100%)}:host([direction^='right']) .bs-product-tour__arrow{left:calc(100% - 1px);clip-path:polygon(0 0, 100% 50%, 0 100%)}:host([direction='left']) .bs-product-tour__arrow,:host([direction='right']) .bs-product-tour__arrow{top:50%;transform:translateY(-50%)}:host([direction$='-top']) .bs-product-tour__arrow{top:var(--bs-product-tour-arrow-offset);transform:translateY(-50%)}:host([direction$='-bottom']) .bs-product-tour__arrow{bottom:var(--bs-product-tour-arrow-offset);transform:translateY(50%)}"}},[769,"bs-product-tour",{type:[513],direction:[513],heading:[1],description:[1],step:[2],total:[2],progressLabel:[1,"progress-label"],primaryLabel:[1,"primary-label"],secondaryLabel:[1,"secondary-label"],closable:[4],closeLabel:[1,"close-label"]}]),n=()=>a("svg",{class:"bs-product-tour__glyph",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},a("path",{d:"M9.5 4L11.2 9.3L16.5 11L11.2 12.7L9.5 18L7.8 12.7L2.5 11L7.8 9.3L9.5 4Z"}),a("path",{d:"M18.5 3V7"}),a("path",{d:"M16.5 5H20.5"}),a("path",{d:"M18 16V20"}),a("path",{d:"M16 18H20"})),b=()=>a("svg",{class:"bs-product-tour__glyph",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},a("circle",{cx:"12",cy:"12",r:"9"}),a("path",{d:"M8 12.5L10.8 15.3L16 9.5"}));function l(){"undefined"!=typeof customElements&&["bs-product-tour","bs-button","bs-card","bs-icon-button","bs-icon-tile","bs-ripple"].forEach((r=>{switch(r){case"bs-product-tour":customElements.get(t(r))||customElements.define(t(r),d);break;case"bs-button":customElements.get(t(r))||e();break;case"bs-card":customElements.get(t(r))||i();break;case"bs-icon-button":customElements.get(t(r))||c();break;case"bs-icon-tile":customElements.get(t(r))||p();break;case"bs-ripple":customElements.get(t(r))||u()}}))}l();const h=d,_=l;export{h as BsProductTour,_ as defineCustomElement}
1
+ import{t,p as r,H as o,c as s,h as a}from"./p-CcAX4o5o.js";import{d as e}from"./p-wscU7FUD.js";import{d as i}from"./p-mxDA3wKn.js";import{d as c}from"./p-wd9-vGpQ.js";import{d as p}from"./p-Cz38kNDe.js";import{d as u}from"./p-DaKBSL2O.js";const d=r(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.bsPrimary=s(this,"bsPrimary"),this.bsSecondary=s(this,"bsSecondary"),this.bsClose=s(this,"bsClose")}type="welcome";direction="top";heading;description;step=1;total=0;progressLabel="{step} of {total}";primaryLabel;secondaryLabel;closable=!1;closeLabel="Close";bsPrimary;bsSecondary;bsClose;get primary(){return void 0!==this.primaryLabel?this.primaryLabel:{welcome:"Start",success:"Done",pointer:"Next"}[this.type]??""}get secondary(){return void 0!==this.secondaryLabel?this.secondaryLabel:{welcome:"Later",success:"",pointer:"Back"}[this.type]??""}renderActions(t,r){const{primary:o,secondary:s}=this;return o||s?a("div",{part:"actions",class:"bs-product-tour__actions"},s&&a("bs-button",{part:"secondary",variant:r,size:t,onClick:()=>this.bsSecondary.emit()},s),o&&a("bs-button",{part:"primary",variant:"primary",size:t,onClick:()=>this.bsPrimary.emit()},o)):null}renderCard(){const t="success"===this.type;return a("bs-card",{part:"container",class:"bs-product-tour bs-product-tour--card",surface:"base"},a("div",{class:"bs-product-tour__body"},a("bs-icon-tile",{part:"art",class:"bs-product-tour__art",intent:t?"success":"brand",size:"lg"},a("slot",{name:"icon"},a(t?b:n,null))),this.heading&&a("p",{part:"heading",class:"bs-product-tour__heading"},this.heading),this.description&&a("p",{part:"description",class:"bs-product-tour__description"},this.description),this.renderActions("md","outlined")))}renderPointer(){const t=this.total>0?this.progressLabel.replace("{step}",this.step+"").replace("{total}",this.total+""):"";return a("div",{class:"bs-product-tour bs-product-tour--pointer"},a("div",{part:"arrow",class:"bs-product-tour__arrow","aria-hidden":"true"}),a("bs-card",{part:"container",class:"bs-product-tour__card",surface:"base"},this.closable&&a("bs-icon-button",{part:"close",class:"bs-product-tour__close",variant:"subtle",size:"sm",ariaLabel:this.closeLabel,onClick:()=>this.bsClose.emit()},a("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round","aria-hidden":"true"},a("path",{d:"M5 5L15 15M15 5L5 15"}))),a("div",{class:"bs-product-tour__body"},a("div",{class:"bs-product-tour__text"},this.heading&&a("p",{part:"heading",class:"bs-product-tour__heading"},this.heading),this.description&&a("p",{part:"description",class:"bs-product-tour__description"},this.description)),a("div",{part:"footer",class:"bs-product-tour__footer"},t?a("span",{part:"progress",class:"bs-product-tour__progress"},t):a("span",null),this.renderActions("sm","subtle")))))}render(){return"pointer"===this.type?this.renderPointer():this.renderCard()}static get style(){return":host{display:inline-block;--bs-product-tour-bg:var(--bs-paper-bg-base);--bs-product-tour-radius:var(--bs-border-radius-150);--bs-product-tour-color:var(--bs-text-default);--bs-product-tour-color-secondary:var(--bs-text-secondary);--bs-product-tour-art-size:64px;--bs-product-tour-art-icon-size:28px;--bs-product-tour-arrow-width:22px;--bs-product-tour-arrow-height:16px;--bs-product-tour-arrow-offset:36px;--bs-product-tour-width:400px;--bs-product-tour-padding:var(--bs-spacing-300);--bs-product-tour-gap:var(--bs-spacing-150);--bs-product-tour-shadow-color:var(--bs-elevation-medium)}:host([type='pointer']){--bs-product-tour-width:320px;--bs-product-tour-padding:var(--bs-spacing-200);--bs-product-tour-gap:var(--bs-spacing-100);--bs-product-tour-shadow-color:var(--bs-elevation-high)}.bs-product-tour{position:relative;width:var(--bs-product-tour-width);max-width:100%;color:var(--bs-product-tour-color);font-family:inherit}.bs-product-tour,.bs-product-tour__card{--bs-card-bg:var(--bs-product-tour-bg);--bs-card-radius:var(--bs-product-tour-radius);--bs-card-padding:var(--bs-product-tour-padding)}.bs-product-tour__body{display:flex;flex-direction:column;gap:var(--bs-product-tour-gap)}.bs-product-tour p{margin:0}.bs-product-tour--card{--bs-card-shadow:0 4px 8px var(--bs-product-tour-shadow-color)}.bs-product-tour--card .bs-product-tour__body{align-items:center;text-align:center}.bs-product-tour__art{--bs-icon-tile-size:var(--bs-product-tour-art-size);--bs-icon-tile-icon-size:var(--bs-product-tour-art-icon-size)}.bs-product-tour__glyph,::slotted([slot='icon']){width:var(--bs-product-tour-art-icon-size);height:var(--bs-product-tour-art-icon-size)}.bs-product-tour--card .bs-product-tour__heading{align-self:stretch;font-size:var(--bs-font-size-2xl);font-weight:var(--bs-font-weight-bold);line-height:32px}.bs-product-tour--card .bs-product-tour__description{align-self:stretch;color:var(--bs-product-tour-color-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-product-tour--card .bs-product-tour__actions{padding-top:var(--bs-spacing-100)}.bs-product-tour--card .bs-product-tour__actions bs-button{--bs-button-height-md:var(--bs-spacing-550);min-width:94px}.bs-product-tour--pointer{filter:drop-shadow(0 4px 4px var(--bs-product-tour-shadow-color))}.bs-product-tour__card{display:block;--bs-card-shadow:none}.bs-product-tour--pointer .bs-product-tour__body{min-height:calc(140px - var(--bs-product-tour-padding) * 2)}.bs-product-tour--pointer .bs-product-tour__text{display:flex;flex-direction:column;gap:var(--bs-spacing-25);padding-inline-end:var(--bs-spacing-500)}.bs-product-tour--pointer .bs-product-tour__heading{font-size:var(--bs-font-size-md);font-weight:var(--bs-font-weight-semibold);line-height:24px}.bs-product-tour--pointer .bs-product-tour__description{color:var(--bs-product-tour-color-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-product-tour__close{position:absolute;top:3px;inset-inline-end:3px}.bs-product-tour__close svg{width:20px;height:20px}.bs-product-tour__footer{display:flex;align-items:center;justify-content:space-between;gap:var(--bs-spacing-100);margin-top:auto;padding-top:4px}.bs-product-tour__progress{color:var(--bs-product-tour-color-secondary);font-size:var(--bs-font-size-xs);line-height:16px;white-space:nowrap}.bs-product-tour--pointer .bs-product-tour__actions{display:flex;align-items:center;gap:var(--bs-spacing-100)}.bs-product-tour--pointer .bs-product-tour__actions bs-button{--bs-button-height-sm:var(--bs-spacing-400)}.bs-product-tour--card .bs-product-tour__actions{display:flex;align-items:center;gap:var(--bs-spacing-100)}.bs-product-tour__arrow{position:absolute;background:var(--bs-product-tour-bg);pointer-events:none}:host([direction^='top']) .bs-product-tour__arrow,:host([direction^='bottom']) .bs-product-tour__arrow{width:var(--bs-product-tour-arrow-width);height:calc(var(--bs-product-tour-arrow-height) + 1px)}:host([direction^='top']) .bs-product-tour__arrow{bottom:calc(100% - 1px);clip-path:polygon(50% 0, 100% 100%, 0 100%)}:host([direction^='bottom']) .bs-product-tour__arrow{top:calc(100% - 1px);clip-path:polygon(0 0, 100% 0, 50% 100%)}:host([direction='top']) .bs-product-tour__arrow,:host([direction='bottom']) .bs-product-tour__arrow{left:50%;transform:translateX(-50%)}:host([direction$='-left']) .bs-product-tour__arrow{left:var(--bs-product-tour-arrow-offset);transform:translateX(-50%)}:host([direction$='-right']) .bs-product-tour__arrow{right:var(--bs-product-tour-arrow-offset);transform:translateX(50%)}:host([direction^='left']) .bs-product-tour__arrow,:host([direction^='right']) .bs-product-tour__arrow{width:calc(var(--bs-product-tour-arrow-height) + 1px);height:var(--bs-product-tour-arrow-width)}:host([direction^='left']) .bs-product-tour__arrow{right:calc(100% - 1px);clip-path:polygon(0 50%, 100% 0, 100% 100%)}:host([direction^='right']) .bs-product-tour__arrow{left:calc(100% - 1px);clip-path:polygon(0 0, 100% 50%, 0 100%)}:host([direction='left']) .bs-product-tour__arrow,:host([direction='right']) .bs-product-tour__arrow{top:50%;transform:translateY(-50%)}:host([direction$='-top']) .bs-product-tour__arrow{top:var(--bs-product-tour-arrow-offset);transform:translateY(-50%)}:host([direction$='-bottom']) .bs-product-tour__arrow{bottom:var(--bs-product-tour-arrow-offset);transform:translateY(50%)}"}},[769,"bs-product-tour",{type:[513],direction:[513],heading:[1],description:[1],step:[2],total:[2],progressLabel:[1,"progress-label"],primaryLabel:[1,"primary-label"],secondaryLabel:[1,"secondary-label"],closable:[4],closeLabel:[1,"close-label"]}]),n=()=>a("svg",{class:"bs-product-tour__glyph",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},a("path",{d:"M9.5 4L11.2 9.3L16.5 11L11.2 12.7L9.5 18L7.8 12.7L2.5 11L7.8 9.3L9.5 4Z"}),a("path",{d:"M18.5 3V7"}),a("path",{d:"M16.5 5H20.5"}),a("path",{d:"M18 16V20"}),a("path",{d:"M16 18H20"})),b=()=>a("svg",{class:"bs-product-tour__glyph",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},a("circle",{cx:"12",cy:"12",r:"9"}),a("path",{d:"M8 12.5L10.8 15.3L16 9.5"}));function l(){"undefined"!=typeof customElements&&["bs-product-tour","bs-button","bs-card","bs-icon-button","bs-icon-tile","bs-ripple"].forEach((r=>{switch(r){case"bs-product-tour":customElements.get(t(r))||customElements.define(t(r),d);break;case"bs-button":customElements.get(t(r))||e();break;case"bs-card":customElements.get(t(r))||i();break;case"bs-icon-button":customElements.get(t(r))||c();break;case"bs-icon-tile":customElements.get(t(r))||p();break;case"bs-ripple":customElements.get(t(r))||u()}}))}l();const h=d,_=l;export{h as BsProductTour,_ as defineCustomElement}
@@ -1 +1 @@
1
- import{B as o,d as s}from"./p-DDgzEg1C.js";const p=o,r=s;export{p as BsProgressLinear,r as defineCustomElement}
1
+ import{B as o,d as s}from"./p-DOW-YekD.js";const p=o,r=s;export{p as BsProgressLinear,r as defineCustomElement}
@@ -1 +1 @@
1
- import{B as o,d as p}from"./p-Cr8cHmpM.js";const r=o,s=p;export{r as BsProgress,s as defineCustomElement}
1
+ import{B as o,d as s}from"./p-DLNoxNuW.js";const p=o,r=s;export{p as BsProgress,r as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as s,H as o,c as r,h as a}from"./p-B2gx7SZk.js";import{d as t}from"./p-up01gvHY.js";import{d}from"./p-EGNLb4cQ.js";import{d as i}from"./p-DXwatzvM.js";import{d as c}from"./p-BfCah-Ij.js";import{d as b}from"./p-Cr8cHmpM.js";import{d as n}from"./p-DtkTnaOp.js";const l=s(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsDownload=r(this,"bsDownload"),this.bsCopy=r(this,"bsCopy"),this.bsRetry=r(this,"bsRetry"),this.bsRefresh=r(this,"bsRefresh"),this.bsClose=r(this,"bsClose")}type="default";size="md";state="default";heading="Share the order";description;url;amount;amountLabel="Total";expiry;matrix;codeLabel="QR code";closable=!1;hideActions=!1;hideDownload=!1;hideCopy=!1;downloadLabel="Download PNG";copyLabel="Copy link";retryLabel="Retry";refreshLabel="Refresh";loadingLabel="Generating code";errorLabel="Couldn't load code";expiredLabel="Code expired";scannedLabel;closeLabel="Close";bsDownload;bsCopy;bsRetry;bsRefresh;bsClose;hasLogo=!1;onCopy=async()=>{if(this.url)try{await(navigator.clipboard?.writeText(this.url))}catch{}this.bsCopy.emit({url:this.url})};renderMatrix(){const e=this.matrix;if(!e||!e.length)return null;const s=e.length;let o="";for(let r=0;r<s;r++){let a=0;for(;a<s;){if(!e[r][a]){a++;continue}const t=a;for(;a<s&&e[r][a];)a++;o+=`M${t} ${r}h${a-t}v1h-${a-t}z`}}return a("svg",{class:"bs-qr-code__matrix",viewBox:`0 0 ${s} ${s}`,"shape-rendering":"crispEdges",role:"img","aria-label":this.codeLabel},a("path",{d:o,fill:"currentColor"}))}renderOverlay(){const{state:e}=this;return"default"===e?null:"loading"===e?a("div",{part:"overlay",class:"bs-qr-code__overlay bs-qr-code__overlay--loading",role:"status"},a("bs-progress",{type:"indeterminate",size:"medium",ariaLabel:this.loadingLabel}),a("p",{class:"bs-qr-code__overlay-caption"},this.loadingLabel)):"error"===e?a("div",{part:"overlay",class:"bs-qr-code__overlay bs-qr-code__overlay--error",role:"alert"},a("svg",{class:"bs-qr-code__status-icon bs-qr-code__status-icon--error",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","aria-hidden":"true"},a("circle",{cx:"12",cy:"12",r:"9"}),a("path",{d:"M12 7.5V12.5"}),a("path",{d:"M12 16.2V16.3"})),a("p",{class:"bs-qr-code__overlay-text"},this.errorLabel),a("bs-button",{variant:"outlined",onClick:()=>this.bsRetry.emit()},a(f,{slot:"icon"}),this.retryLabel)):"expired"===e?a("div",{part:"overlay",class:"bs-qr-code__overlay bs-qr-code__overlay--expired",role:"status"},a("svg",{class:"bs-qr-code__status-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},a("circle",{cx:"12",cy:"12",r:"9"}),a("path",{d:"M12 7V12L15 14"})),a("p",{class:"bs-qr-code__overlay-text"},this.expiredLabel),a("bs-button",{variant:"primary",onClick:()=>this.bsRefresh.emit()},a(f,{slot:"icon"}),this.refreshLabel)):a("div",{part:"overlay",class:"bs-qr-code__overlay bs-qr-code__overlay--scanned",role:"status"},a("svg",{class:"bs-qr-code__status-icon bs-qr-code__status-icon--scanned",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},a("circle",{cx:"12",cy:"12",r:"9"}),a("path",{d:"M8 12.5L10.8 15.3L16 9.5"})),a("p",{class:"bs-qr-code__overlay-text bs-qr-code__overlay-text--strong"},this.scannedLabel??("payment"===this.type?"Payment received":"Scanned")))}render(){const{state:e}=this,s="default"===e,o=!this.hideActions&&"scanned"!==e,r="sm"===this.size?"sm":"md";return a("bs-card",{key:"4e167a1963bdcf3cfab55d45512b9a6892967863",part:"container",class:"bs-qr-code",surface:"base"},this.closable&&a("bs-icon-button",{key:"6515eda31ed66c48f751a030aac2a1e8787168bb",part:"close",class:"bs-qr-code__close",variant:"subtle",size:"sm",ariaLabel:this.closeLabel,onClick:()=>this.bsClose.emit()},a("svg",{key:"3fcb2f17e996eec1f0d7b63ce801a0c2afaa34f5",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round","aria-hidden":"true"},a("path",{key:"2918e13d5155c393d5bcd38770f4288c4a580249",d:"M5 5L15 15M15 5L5 15"}))),a("div",{key:"9e78a07d15f1c796d5d3a95250048f792dffed66",class:"bs-qr-code__body"},a("div",{key:"f11274026541602224216fd1c9125ee6747fa863",part:"head",class:"bs-qr-code__head"},a("p",{key:"2bad1953d7f5c67c92e3759999d4aa4010b016c5",part:"title",class:"bs-qr-code__title"},this.heading),this.description&&a("p",{key:"abb48d14fbf8b307d4f370601cd2eb5ffc4df421",part:"description",class:"bs-qr-code__description"},this.description)),a("div",{key:"17af9e23f1a66d89367d9c26bb8ea551c069b2c0",part:"qr",class:"bs-qr-code__qr"},a("div",{key:"2092115e613237a13c31243d7370f20bd3fc4c09",part:"code",class:"bs-qr-code__code"},a("slot",{key:"c189b0b1edf6f61489e9d1ebe8275c2685862e77",name:"code"},this.renderMatrix()),a("div",{key:"1e082f0d8b7ee552ab35f2da7ec13c0a9c5d7d86",part:"logo",class:{"bs-qr-code__logo":!0,"bs-qr-code__logo--visible":this.hasLogo}},a("slot",{key:"5c305729c9771f95d3bf1877efe86de9f63054e7",name:"logo",onSlotchange:e=>this.hasLogo=e.target.assignedNodes().length>0}))),this.renderOverlay()),"payment"===this.type&&this.amount&&a("div",{key:"d896562fc83349ada191a1956dfe8b3ffe02dfda",part:"amount",class:"bs-qr-code__amount"},this.amountLabel&&a("p",{key:"8523dd83e68c5f7af690afa71152d82a8f33280d",class:"bs-qr-code__amount-label"},this.amountLabel),a("p",{key:"b558183ed05e918b49f17901c5f4a90455527c07",class:"bs-qr-code__amount-value"},this.amount)),"default"===this.type&&this.url&&a("div",{key:"b2e14982c041255d561c733465ec946191f71308",part:"url",class:"bs-qr-code__url"},this.url),this.expiry&&a("bs-chip-informative",{key:"73443e59dd874d9888b4635d25f8abfb66e2ba15",part:"expiry",size:"md"},a(q,{key:"e2c8e896629106af6b6e43f5927cc40cb986c895",slot:"icon"}),this.expiry),o&&a("div",{key:"c0e4e621b7535020de664c18b156a40ebd0f9cc5",part:"actions",class:"bs-qr-code__actions"},!this.hideDownload&&a("bs-button",{key:"7d20bfd9ef09f9f739f7c2482d4f6a460dc4380d",part:"download",variant:s?"outlined":"primary",size:r,disabled:!s,onClick:()=>s&&this.bsDownload.emit()},a(h,{key:"27ea6048df80bc0882178f428ab8484d9c2d3e0c",slot:"icon"}),this.downloadLabel),!this.hideCopy&&a("bs-button",{key:"814e7b49e0b2b3d1c55042910495cb33da115210",part:"copy",variant:s?"outlined":"primary",size:r,disabled:!s,onClick:()=>s&&this.onCopy()},a(u,{key:"82af9fe245268df404461f9f750c61b0b4ade027",slot:"icon"}),this.copyLabel))))}static get style(){return":host{display:inline-block;max-width:100%;--bs-qr-code-bg:var(--bs-paper-bg-base);--bs-qr-code-border:var(--bs-border-default);--bs-qr-code-radius:var(--bs-border-radius-150);--bs-qr-code-quiet-zone-bg:var(--bs-text-static-white);--bs-qr-code-module-color:var(--bs-text-static-black);--bs-qr-code-qr-border:var(--bs-border-default);--bs-qr-code-qr-radius:var(--bs-border-radius-100);--bs-qr-code-color:var(--bs-text-default);--bs-qr-code-color-secondary:var(--bs-text-secondary);--bs-qr-code-url-bg:var(--bs-surface-container);--bs-qr-code-url-radius:6px;--bs-qr-code-logo-size:20%;--bs-qr-code-padding:var(--bs-spacing-300);--bs-qr-code-gap:var(--bs-spacing-200);--bs-qr-code-code-size:200px;--bs-qr-code-quiet-zone:var(--bs-spacing-150);--bs-qr-code-amount-size:var(--bs-font-size-2xl);--bs-qr-code-amount-line-height:32px;--bs-qr-code-download-min-width:168px;--bs-qr-code-copy-min-width:126px}:host([size='sm']){--bs-qr-code-padding:var(--bs-spacing-200);--bs-qr-code-gap:var(--bs-spacing-150);--bs-qr-code-code-size:128px;--bs-qr-code-quiet-zone:var(--bs-spacing-100);--bs-qr-code-amount-size:var(--bs-font-size-xl);--bs-qr-code-amount-line-height:24px;--bs-qr-code-download-min-width:139px;--bs-qr-code-copy-min-width:102px}:host([size='lg']){--bs-qr-code-padding:var(--bs-spacing-400);--bs-qr-code-gap:var(--bs-spacing-250);--bs-qr-code-code-size:288px;--bs-qr-code-amount-size:32px;--bs-qr-code-amount-line-height:40px}.bs-qr-code{position:relative;width:fit-content;max-width:100%;color:var(--bs-qr-code-color);--bs-card-bg:var(--bs-qr-code-bg);--bs-card-radius:var(--bs-qr-code-radius);--bs-card-padding:var(--bs-qr-code-padding);--bs-card-border-width:1px;--bs-card-border-color:var(--bs-qr-code-border);--bs-card-shadow:none}.bs-qr-code__body{display:flex;flex-direction:column;align-items:center;gap:var(--bs-qr-code-gap)}.bs-qr-code__close{position:absolute;top:var(--bs-spacing-100);inset-inline-end:var(--bs-spacing-100)}.bs-qr-code__close svg{width:20px;height:20px}.bs-qr-code__head{display:flex;flex-direction:column;align-items:center;gap:2px;width:272px;max-width:100%;text-align:center}.bs-qr-code__head p,.bs-qr-code__amount p,.bs-qr-code__overlay p{margin:0}.bs-qr-code__title{font-size:var(--bs-font-size-2xl);font-weight:var(--bs-font-weight-bold);line-height:32px}.bs-qr-code__description{color:var(--bs-qr-code-color-secondary);font-size:var(--bs-font-size-md);line-height:24px}.bs-qr-code__qr{position:relative;box-sizing:border-box;flex:none;padding:var(--bs-qr-code-quiet-zone);border:1px solid var(--bs-qr-code-qr-border);border-radius:var(--bs-qr-code-qr-radius);background:var(--bs-qr-code-quiet-zone-bg);overflow:hidden}.bs-qr-code__code{position:relative;width:var(--bs-qr-code-code-size);height:var(--bs-qr-code-code-size);background:var(--bs-qr-code-quiet-zone-bg);color:var(--bs-qr-code-module-color)}.bs-qr-code__matrix,::slotted([slot='code']){display:block;width:100%;height:100%}.bs-qr-code__logo{position:absolute;top:50%;left:50%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--bs-qr-code-logo-size);height:var(--bs-qr-code-logo-size);padding:4px;border-radius:var(--bs-border-radius-50);background:var(--bs-qr-code-quiet-zone-bg);transform:translate(-50%, -50%)}.bs-qr-code__logo{display:none}.bs-qr-code__logo--visible{display:flex}::slotted([slot='logo']){width:100%;height:100%;object-fit:contain}.bs-qr-code__overlay{position:absolute;inset:-1px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--bs-spacing-100);padding:var(--bs-spacing-150);overflow:hidden;text-align:center;white-space:nowrap}.bs-qr-code__overlay--loading{background:var(--bs-color-neutral-container)}.bs-qr-code__overlay--error{background:var(--bs-surface-container)}.bs-qr-code__overlay--expired,.bs-qr-code__overlay--scanned{background:var(--bs-surface-base)}.bs-qr-code__overlay-caption{color:var(--bs-qr-code-color-secondary);font-size:var(--bs-font-size-xs);line-height:16px}.bs-qr-code__overlay-text{color:var(--bs-qr-code-color);font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-medium);line-height:20px}.bs-qr-code__overlay-text--strong{font-weight:var(--bs-font-weight-semibold)}.bs-qr-code__status-icon{width:32px;height:32px;color:var(--bs-qr-code-color-secondary)}.bs-qr-code__status-icon--error{color:var(--bs-icon-error)}.bs-qr-code__status-icon--scanned{width:44px;height:44px;color:var(--bs-icon-success)}.bs-qr-code__overlay bs-button{--bs-button-height-md:var(--bs-spacing-550)}.bs-qr-code__amount{display:flex;flex-direction:column;align-items:center;white-space:nowrap}.bs-qr-code__amount-label{color:var(--bs-qr-code-color-secondary);font-size:var(--bs-font-size-xs);line-height:16px}.bs-qr-code__amount-value{font-size:var(--bs-qr-code-amount-size);font-weight:var(--bs-font-weight-bold);line-height:var(--bs-qr-code-amount-line-height)}.bs-qr-code__url{padding:4px 10px;border-radius:var(--bs-qr-code-url-radius);background:var(--bs-qr-code-url-bg);font-size:var(--bs-font-size-xs);line-height:16px;text-align:center;white-space:nowrap}.bs-qr-code__actions{display:flex;align-items:center;gap:var(--bs-spacing-100)}.bs-qr-code__actions bs-button{display:inline-flex}.bs-qr-code__actions bs-button::part(button){width:100%}.bs-qr-code__actions bs-button[part='download']{min-width:var(--bs-qr-code-download-min-width)}.bs-qr-code__actions bs-button[part='copy']{min-width:var(--bs-qr-code-copy-min-width)}:host([size='sm']) .bs-qr-code__actions bs-button{--bs-button-height-sm:var(--bs-spacing-400)}"}},[769,"bs-qr-code",{type:[513],size:[513],state:[513],heading:[1],description:[1],url:[1],amount:[1],amountLabel:[1,"amount-label"],expiry:[1],matrix:[16],codeLabel:[1,"code-label"],closable:[4],hideActions:[4,"hide-actions"],hideDownload:[4,"hide-download"],hideCopy:[4,"hide-copy"],downloadLabel:[1,"download-label"],copyLabel:[1,"copy-label"],retryLabel:[1,"retry-label"],refreshLabel:[1,"refresh-label"],loadingLabel:[1,"loading-label"],errorLabel:[1,"error-label"],expiredLabel:[1,"expired-label"],scannedLabel:[1,"scanned-label"],closeLabel:[1,"close-label"],hasLogo:[32]}]),p={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},h=e=>a("svg",{...p,...e},a("path",{d:"M12 4V15"}),a("path",{d:"M7.5 11L12 15.5L16.5 11"}),a("path",{d:"M4.5 19.5H19.5"})),u=e=>a("svg",{...p,...e},a("rect",{x:"8",y:"8",width:"11.5",height:"11.5",rx:"1.5"}),a("path",{d:"M16 8V5.5A1.5 1.5 0 0 0 14.5 4H5.5A1.5 1.5 0 0 0 4 5.5V14.5A1.5 1.5 0 0 0 5.5 16H8"})),f=e=>a("svg",{...p,...e},a("path",{d:"M19.5 12A7.5 7.5 0 1 1 17.3 6.7"}),a("path",{d:"M19.5 4.5V8.5H15.5"})),q=e=>a("svg",{...p,...e},a("circle",{cx:"12",cy:"13.5",r:"7"}),a("path",{d:"M12 10V13.5L14 15"}),a("path",{d:"M9.5 3.5H14.5"}));function v(){"undefined"!=typeof customElements&&["bs-qr-code","bs-button","bs-card","bs-chip-informative","bs-icon-button","bs-progress","bs-ripple"].forEach((s=>{switch(s){case"bs-qr-code":customElements.get(e(s))||customElements.define(e(s),l);break;case"bs-button":customElements.get(e(s))||t();break;case"bs-card":customElements.get(e(s))||d();break;case"bs-chip-informative":customElements.get(e(s))||i();break;case"bs-icon-button":customElements.get(e(s))||c();break;case"bs-progress":customElements.get(e(s))||b();break;case"bs-ripple":customElements.get(e(s))||n()}}))}v();const _=l,g=v;export{_ as BsQrCode,g as defineCustomElement}
1
+ import{t as e,p as o,H as s,c as r,h as a}from"./p-CcAX4o5o.js";import{d as t}from"./p-wscU7FUD.js";import{d}from"./p-mxDA3wKn.js";import{d as i}from"./p-CePOtLtZ.js";import{d as c}from"./p-wd9-vGpQ.js";import{d as b}from"./p-DLNoxNuW.js";import{d as n}from"./p-DaKBSL2O.js";const l=o(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsDownload=r(this,"bsDownload"),this.bsCopy=r(this,"bsCopy"),this.bsRetry=r(this,"bsRetry"),this.bsRefresh=r(this,"bsRefresh"),this.bsClose=r(this,"bsClose")}type="default";size="md";state="default";heading="Share the order";description;url;amount;amountLabel="Total";expiry;matrix;codeLabel="QR code";closable=!1;hideActions=!1;hideDownload=!1;hideCopy=!1;downloadLabel="Download PNG";copyLabel="Copy link";retryLabel="Retry";refreshLabel="Refresh";loadingLabel="Generating code";errorLabel="Couldn't load code";expiredLabel="Code expired";scannedLabel;closeLabel="Close";bsDownload;bsCopy;bsRetry;bsRefresh;bsClose;hasLogo=!1;onCopy=async()=>{if(this.url)try{await(navigator.clipboard?.writeText(this.url))}catch{}this.bsCopy.emit({url:this.url})};renderMatrix(){const e=this.matrix;if(!e||!e.length)return null;const o=e.length;let s="";for(let r=0;r<o;r++){let a=0;for(;a<o;){if(!e[r][a]){a++;continue}const t=a;for(;a<o&&e[r][a];)a++;s+=`M${t} ${r}h${a-t}v1h-${a-t}z`}}return a("svg",{class:"bs-qr-code__matrix",viewBox:`0 0 ${o} ${o}`,"shape-rendering":"crispEdges",role:"img","aria-label":this.codeLabel},a("path",{d:s,fill:"currentColor"}))}renderOverlay(){const{state:e}=this;return"default"===e?null:"loading"===e?a("div",{part:"overlay",class:"bs-qr-code__overlay bs-qr-code__overlay--loading",role:"status"},a("bs-progress",{type:"indeterminate",size:"medium",ariaLabel:this.loadingLabel}),a("p",{class:"bs-qr-code__overlay-caption"},this.loadingLabel)):"error"===e?a("div",{part:"overlay",class:"bs-qr-code__overlay bs-qr-code__overlay--error",role:"alert"},a("svg",{class:"bs-qr-code__status-icon bs-qr-code__status-icon--error",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","aria-hidden":"true"},a("circle",{cx:"12",cy:"12",r:"9"}),a("path",{d:"M12 7.5V12.5"}),a("path",{d:"M12 16.2V16.3"})),a("p",{class:"bs-qr-code__overlay-text"},this.errorLabel),a("bs-button",{variant:"outlined",onClick:()=>this.bsRetry.emit()},a(q,{slot:"icon"}),this.retryLabel)):"expired"===e?a("div",{part:"overlay",class:"bs-qr-code__overlay bs-qr-code__overlay--expired",role:"status"},a("svg",{class:"bs-qr-code__status-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},a("circle",{cx:"12",cy:"12",r:"9"}),a("path",{d:"M12 7V12L15 14"})),a("p",{class:"bs-qr-code__overlay-text"},this.expiredLabel),a("bs-button",{variant:"primary",onClick:()=>this.bsRefresh.emit()},a(q,{slot:"icon"}),this.refreshLabel)):a("div",{part:"overlay",class:"bs-qr-code__overlay bs-qr-code__overlay--scanned",role:"status"},a("svg",{class:"bs-qr-code__status-icon bs-qr-code__status-icon--scanned",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},a("circle",{cx:"12",cy:"12",r:"9"}),a("path",{d:"M8 12.5L10.8 15.3L16 9.5"})),a("p",{class:"bs-qr-code__overlay-text bs-qr-code__overlay-text--strong"},this.scannedLabel??("payment"===this.type?"Payment received":"Scanned")))}render(){const{state:e}=this,o="default"===e,s=!this.hideActions&&"scanned"!==e,r="sm"===this.size?"sm":"md";return a("bs-card",{key:"9dcc08a36b53be095268fa035cd353e9b7c41c99",part:"container",class:"bs-qr-code",surface:"base"},this.closable&&a("bs-icon-button",{key:"a21cc673270c2c62b45d940f64c0bb699015aea6",part:"close",class:"bs-qr-code__close",variant:"subtle",size:"sm",ariaLabel:this.closeLabel,onClick:()=>this.bsClose.emit()},a("svg",{key:"041c7fa3a28984132b902790be6eb39a705d3264",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round","aria-hidden":"true"},a("path",{key:"98674de35512104169431e97649bc3c96503e0f8",d:"M5 5L15 15M15 5L5 15"}))),a("div",{key:"7a23d1ca31ca4783e1dbd38b104d9b03b9005a22",class:"bs-qr-code__body"},a("div",{key:"6dd6d0b87236d6014a0139cde0eb4f1c49f58b6f",part:"head",class:"bs-qr-code__head"},a("p",{key:"daceb6bc02f5222d57d2927646eaf070b7bd2eb8",part:"title",class:"bs-qr-code__title"},this.heading),this.description&&a("p",{key:"093646862310a7c1e1e69d50ce2fbb3e4a314b4c",part:"description",class:"bs-qr-code__description"},this.description)),a("div",{key:"1f72b15e61abefa109b2df0fbce25ca2361dc7ad",part:"qr",class:"bs-qr-code__qr"},a("div",{key:"734ed44250b1c83b06cebadb1a79c4fdab8bd08a",part:"code",class:"bs-qr-code__code"},a("slot",{key:"c2387e32896dcff0b40cf6120c9a87288d473e2d",name:"code"},this.renderMatrix()),a("div",{key:"2201211627ac42a11c353d436133cc130d69fafd",part:"logo",class:{"bs-qr-code__logo":!0,"bs-qr-code__logo--visible":this.hasLogo}},a("slot",{key:"f9951a31812036669bf4a478964b3ebfab6d1de6",name:"logo",onSlotchange:e=>this.hasLogo=e.target.assignedNodes().length>0}))),this.renderOverlay()),"payment"===this.type&&this.amount&&a("div",{key:"13f499cb0d56c35f86dfd068e576d61ea2e7780f",part:"amount",class:"bs-qr-code__amount"},this.amountLabel&&a("p",{key:"ac7fa6ac5d9367812f679c8d43a5abdb65b07bbb",class:"bs-qr-code__amount-label"},this.amountLabel),a("p",{key:"93d93733c7fa87f8def870f000b713347b0c991c",class:"bs-qr-code__amount-value"},this.amount)),"default"===this.type&&this.url&&a("div",{key:"6ba70952dc39ec3feb3e1e93bcdbddad1ae0502d",part:"url",class:"bs-qr-code__url"},this.url),this.expiry&&a("bs-chip-informative",{key:"9a010954e75bee6c336aa252497309774d99b186",part:"expiry",size:"md"},a(v,{key:"b8e4be04e71c93ce27c0ce62e33414d83a710d45",slot:"icon"}),this.expiry),s&&a("div",{key:"6f3c1a0894ddf3dad11981fae385fd5f8e8c1c22",part:"actions",class:"bs-qr-code__actions"},!this.hideDownload&&a("bs-button",{key:"6fcc1e9e93b22ce2a71195e471fc0283eba308ae",part:"download",variant:o?"outlined":"primary",size:r,disabled:!o,onClick:()=>o&&this.bsDownload.emit()},a(h,{key:"c8f881995f35bba01785f8c170625857c24c1a62",slot:"icon"}),this.downloadLabel),!this.hideCopy&&a("bs-button",{key:"d0277646f40e5703dafa7d526d873c1f68506396",part:"copy",variant:o?"outlined":"primary",size:r,disabled:!o,onClick:()=>o&&this.onCopy()},a(u,{key:"e4e0c6bd298beba16a1f60c11a0cbecff494a972",slot:"icon"}),this.copyLabel))))}static get style(){return":host{display:inline-block;max-width:100%;--bs-qr-code-bg:var(--bs-paper-bg-base);--bs-qr-code-border:var(--bs-border-default);--bs-qr-code-radius:var(--bs-border-radius-150);--bs-qr-code-quiet-zone-bg:var(--bs-text-static-white);--bs-qr-code-module-color:var(--bs-text-static-black);--bs-qr-code-qr-border:var(--bs-border-default);--bs-qr-code-qr-radius:var(--bs-border-radius-100);--bs-qr-code-color:var(--bs-text-default);--bs-qr-code-color-secondary:var(--bs-text-secondary);--bs-qr-code-url-bg:var(--bs-surface-container);--bs-qr-code-url-radius:6px;--bs-qr-code-logo-size:20%;--bs-qr-code-padding:var(--bs-spacing-300);--bs-qr-code-gap:var(--bs-spacing-200);--bs-qr-code-code-size:200px;--bs-qr-code-quiet-zone:var(--bs-spacing-150);--bs-qr-code-amount-size:var(--bs-font-size-2xl);--bs-qr-code-amount-line-height:32px;--bs-qr-code-download-min-width:168px;--bs-qr-code-copy-min-width:126px}:host([size='sm']){--bs-qr-code-padding:var(--bs-spacing-200);--bs-qr-code-gap:var(--bs-spacing-150);--bs-qr-code-code-size:128px;--bs-qr-code-quiet-zone:var(--bs-spacing-100);--bs-qr-code-amount-size:var(--bs-font-size-xl);--bs-qr-code-amount-line-height:24px;--bs-qr-code-download-min-width:139px;--bs-qr-code-copy-min-width:102px}:host([size='lg']){--bs-qr-code-padding:var(--bs-spacing-400);--bs-qr-code-gap:var(--bs-spacing-250);--bs-qr-code-code-size:288px;--bs-qr-code-amount-size:32px;--bs-qr-code-amount-line-height:40px}.bs-qr-code{position:relative;width:fit-content;max-width:100%;color:var(--bs-qr-code-color);--bs-card-bg:var(--bs-qr-code-bg);--bs-card-radius:var(--bs-qr-code-radius);--bs-card-padding:var(--bs-qr-code-padding);--bs-card-border-width:1px;--bs-card-border-color:var(--bs-qr-code-border);--bs-card-shadow:none}.bs-qr-code__body{display:flex;flex-direction:column;align-items:center;gap:var(--bs-qr-code-gap)}.bs-qr-code__close{position:absolute;top:var(--bs-spacing-100);inset-inline-end:var(--bs-spacing-100)}.bs-qr-code__close svg{width:20px;height:20px}.bs-qr-code__head{display:flex;flex-direction:column;align-items:center;gap:2px;width:272px;max-width:100%;text-align:center}.bs-qr-code__head p,.bs-qr-code__amount p,.bs-qr-code__overlay p{margin:0}.bs-qr-code__title{font-size:var(--bs-font-size-2xl);font-weight:var(--bs-font-weight-bold);line-height:32px}.bs-qr-code__description{color:var(--bs-qr-code-color-secondary);font-size:var(--bs-font-size-md);line-height:24px}.bs-qr-code__qr{position:relative;box-sizing:border-box;flex:none;padding:var(--bs-qr-code-quiet-zone);border:1px solid var(--bs-qr-code-qr-border);border-radius:var(--bs-qr-code-qr-radius);background:var(--bs-qr-code-quiet-zone-bg);overflow:hidden}.bs-qr-code__code{position:relative;width:var(--bs-qr-code-code-size);height:var(--bs-qr-code-code-size);background:var(--bs-qr-code-quiet-zone-bg);color:var(--bs-qr-code-module-color)}.bs-qr-code__matrix,::slotted([slot='code']){display:block;width:100%;height:100%}.bs-qr-code__logo{position:absolute;top:50%;left:50%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--bs-qr-code-logo-size);height:var(--bs-qr-code-logo-size);padding:4px;border-radius:var(--bs-border-radius-50);background:var(--bs-qr-code-quiet-zone-bg);transform:translate(-50%, -50%)}.bs-qr-code__logo{display:none}.bs-qr-code__logo--visible{display:flex}::slotted([slot='logo']){width:100%;height:100%;object-fit:contain}.bs-qr-code__overlay{position:absolute;inset:-1px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--bs-spacing-100);padding:var(--bs-spacing-150);overflow:hidden;text-align:center;white-space:nowrap}.bs-qr-code__overlay--loading{background:var(--bs-color-neutral-container)}.bs-qr-code__overlay--error{background:var(--bs-surface-container)}.bs-qr-code__overlay--expired,.bs-qr-code__overlay--scanned{background:var(--bs-surface-base)}.bs-qr-code__overlay-caption{color:var(--bs-qr-code-color-secondary);font-size:var(--bs-font-size-xs);line-height:16px}.bs-qr-code__overlay-text{color:var(--bs-qr-code-color);font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-medium);line-height:20px}.bs-qr-code__overlay-text--strong{font-weight:var(--bs-font-weight-semibold)}.bs-qr-code__status-icon{width:32px;height:32px;color:var(--bs-qr-code-color-secondary)}.bs-qr-code__status-icon--error{color:var(--bs-icon-error)}.bs-qr-code__status-icon--scanned{width:44px;height:44px;color:var(--bs-icon-success)}.bs-qr-code__overlay bs-button{--bs-button-height-md:var(--bs-spacing-550)}.bs-qr-code__amount{display:flex;flex-direction:column;align-items:center;white-space:nowrap}.bs-qr-code__amount-label{color:var(--bs-qr-code-color-secondary);font-size:var(--bs-font-size-xs);line-height:16px}.bs-qr-code__amount-value{font-size:var(--bs-qr-code-amount-size);font-weight:var(--bs-font-weight-bold);line-height:var(--bs-qr-code-amount-line-height)}.bs-qr-code__url{padding:4px 10px;border-radius:var(--bs-qr-code-url-radius);background:var(--bs-qr-code-url-bg);font-size:var(--bs-font-size-xs);line-height:16px;text-align:center;white-space:nowrap}.bs-qr-code__actions{display:flex;align-items:center;gap:var(--bs-spacing-100)}.bs-qr-code__actions bs-button{display:inline-flex}.bs-qr-code__actions bs-button::part(button){width:100%}.bs-qr-code__actions bs-button[part='download']{min-width:var(--bs-qr-code-download-min-width)}.bs-qr-code__actions bs-button[part='copy']{min-width:var(--bs-qr-code-copy-min-width)}:host([size='sm']) .bs-qr-code__actions bs-button{--bs-button-height-sm:var(--bs-spacing-400)}"}},[769,"bs-qr-code",{type:[513],size:[513],state:[513],heading:[1],description:[1],url:[1],amount:[1],amountLabel:[1,"amount-label"],expiry:[1],matrix:[16],codeLabel:[1,"code-label"],closable:[4],hideActions:[4,"hide-actions"],hideDownload:[4,"hide-download"],hideCopy:[4,"hide-copy"],downloadLabel:[1,"download-label"],copyLabel:[1,"copy-label"],retryLabel:[1,"retry-label"],refreshLabel:[1,"refresh-label"],loadingLabel:[1,"loading-label"],errorLabel:[1,"error-label"],expiredLabel:[1,"expired-label"],scannedLabel:[1,"scanned-label"],closeLabel:[1,"close-label"],hasLogo:[32]}]),p={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},h=e=>a("svg",{...p,...e},a("path",{d:"M12 4V15"}),a("path",{d:"M7.5 11L12 15.5L16.5 11"}),a("path",{d:"M4.5 19.5H19.5"})),u=e=>a("svg",{...p,...e},a("rect",{x:"8",y:"8",width:"11.5",height:"11.5",rx:"1.5"}),a("path",{d:"M16 8V5.5A1.5 1.5 0 0 0 14.5 4H5.5A1.5 1.5 0 0 0 4 5.5V14.5A1.5 1.5 0 0 0 5.5 16H8"})),q=e=>a("svg",{...p,...e},a("path",{d:"M19.5 12A7.5 7.5 0 1 1 17.3 6.7"}),a("path",{d:"M19.5 4.5V8.5H15.5"})),v=e=>a("svg",{...p,...e},a("circle",{cx:"12",cy:"13.5",r:"7"}),a("path",{d:"M12 10V13.5L14 15"}),a("path",{d:"M9.5 3.5H14.5"}));function _(){"undefined"!=typeof customElements&&["bs-qr-code","bs-button","bs-card","bs-chip-informative","bs-icon-button","bs-progress","bs-ripple"].forEach((o=>{switch(o){case"bs-qr-code":customElements.get(e(o))||customElements.define(e(o),l);break;case"bs-button":customElements.get(e(o))||t();break;case"bs-card":customElements.get(e(o))||d();break;case"bs-chip-informative":customElements.get(e(o))||i();break;case"bs-icon-button":customElements.get(e(o))||c();break;case"bs-progress":customElements.get(e(o))||b();break;case"bs-ripple":customElements.get(e(o))||n()}}))}_();const f=l,g=_;export{f as BsQrCode,g as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BsRadioGroup extends Components.BsRadioGroup, HTMLElement {}
4
+ export const BsRadioGroup: {
5
+ prototype: BsRadioGroup;
6
+ new (): BsRadioGroup;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{t as r,p as o,H as i,c as a,h as s}from"./p-CcAX4o5o.js";let e=0;const t=o(class extends i{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.bsChange=a(this,"bsChange")}get el(){return this}id="bs-radio-group-"+ ++e;label;description;error;orientation="vertical";name;value;required=!1;selectFirst=!1;bsChange;radios(){return Array.from(this.el.querySelectorAll("bs-radio"))}onValueOrName(){this.sync(!0)}componentWillLoad(){this.sync(!1)}sync(r){const o=this.radios(),i=this.name??this.id;o.forEach((r=>r.name=i));const a=o.filter((r=>r.checked));let s;(r||null!=this.value)&&(s=o.find((r=>r.value===this.value))),s||(s=a[0]),!s&&this.selectFirst&&(s=o.find((r=>!r.disabled))),o.forEach((r=>{const o=r===s;r.checked!==o&&(r.checked=o)}));const e=s?.value;e!==this.value&&(s||r)&&(this.value=e)}onSlotchange=()=>this.sync(!1);onRadioChange(r){r.target!==this.el&&(r.stopImmediatePropagation(),this.value=r.detail,this.bsChange.emit(r.detail))}render(){const r=this.id+"-label",o=this.id+"-desc",i=this.error||this.description;return s("div",{key:"c7083540ebf734f8b78a3ee20480e32d5448f2d2",part:"group",class:{"bs-radio-group":!0,"bs-radio-group--error":!!this.error},role:"radiogroup","aria-labelledby":this.label?r:void 0,"aria-describedby":i?o:void 0,"aria-invalid":this.error?"true":void 0,"aria-required":this.required?"true":void 0},this.label&&s("span",{key:"604f60844e305a5057f42e2cebbf5ec80d04952d",id:r,part:"label",class:"bs-radio-group__label"},this.label,this.required&&s("span",{key:"196ce4747d209610f45afe5eabc1d629220e9560","aria-hidden":"true"}," *")),s("div",{key:"b3c30a8aa04a56227033d76f905166a7c556ed4a",part:"options",class:"bs-radio-group__options"},s("slot",{key:"70f9d26d4c52ce386a3c25fe9ca7297fe49ea77c",onSlotchange:this.onSlotchange})),i&&s("span",{key:"9252a1a05bfe98719612aac2a6ff5c72ddff7621",id:o,part:this.error?"error":"description",class:this.error?"bs-radio-group__error":"bs-radio-group__description"},this.error||this.description))}static get watchers(){return{value:[{onValueOrName:0}],name:[{onValueOrName:0}]}}static get style(){return":host{display:block;--bs-radio-group-gap:var(--bs-spacing-50);--bs-radio-group-options-gap:var(--bs-spacing-0);--bs-radio-group-label-color:var(--bs-text-default);--bs-radio-group-description-color:var(--bs-text-secondary);--bs-radio-group-error-color:var(--bs-text-error)}:host([orientation='horizontal']){--bs-radio-group-options-gap:var(--bs-spacing-300)}.bs-radio-group{display:flex;flex-direction:column;gap:var(--bs-radio-group-gap);font-family:inherit}.bs-radio-group__label{font-size:var(--bs-font-size-md);font-weight:var(--bs-font-weight-medium);color:var(--bs-radio-group-label-color)}.bs-radio-group__options{display:flex;flex-direction:column;align-items:flex-start;gap:var(--bs-radio-group-options-gap)}:host([orientation='horizontal']) .bs-radio-group__options{flex-direction:row;flex-wrap:wrap;align-items:center}.bs-radio-group__description,.bs-radio-group__error{font-size:var(--bs-font-size-xs)}.bs-radio-group__description{color:var(--bs-radio-group-description-color)}.bs-radio-group__error{color:var(--bs-radio-group-error-color)}"}},[769,"bs-radio-group",{label:[1],description:[1],error:[1],orientation:[513],name:[1],value:[1537],required:[4],selectFirst:[4,"select-first"]},[[0,"bsChange","onRadioChange"]],{value:[{onValueOrName:0}],name:[{onValueOrName:0}]}]);function n(){"undefined"!=typeof customElements&&["bs-radio-group"].forEach((o=>{"bs-radio-group"===o&&(customElements.get(r(o))||customElements.define(r(o),t))}))}n();const d=t,l=n;export{d as BsRadioGroup,l as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as r,H as a,c as i,h as s}from"./p-B2gx7SZk.js";import{d as o}from"./p-DtkTnaOp.js";const d=r(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsChange=i(this,"bsChange"),this.internals=this.attachInternals()}get el(){return this}name;value;checked=!1;disabled=!1;bsChange;internals;initialChecked=!1;groupHasChecked=!1;groupMembers(){if(!this.name)return[this.el];const e=this.el.getRootNode();return Array.from(e.querySelectorAll("bs-radio")).filter((e=>e.name===this.name))}onCheckedChange(){this.internals?.setFormValue?.(this.checked?this.value??"on":null),this.checked&&this.groupMembers().forEach((e=>{e!==this.el&&e.checked&&(e.checked=!1)})),this.refreshGroupState()}onAnyRadioChange(){this.refreshGroupState()}refreshGroupState(){this.groupHasChecked=this.groupMembers().some((e=>e.checked))}componentWillLoad(){this.initialChecked=this.checked,this.internals?.setFormValue?.(this.checked?this.value??"on":null)}componentDidLoad(){this.refreshGroupState()}formResetCallback(){this.checked=this.initialChecked}onKeyDown=e=>{const r="ArrowRight"===e.key||"ArrowDown"===e.key;if(!r&&"ArrowLeft"!==e.key&&"ArrowUp"!==e.key)return;const a=this.groupMembers().filter((e=>!e.disabled));if(a.length<2)return;e.preventDefault();const i=a.indexOf(this.el),s=a[(i+(r?1:-1)+a.length)%a.length],o=s.shadowRoot?.querySelector("input");o?.click(),o?.focus()};onChange=e=>{const r=e.target.checked;this.checked=r,r&&this.bsChange.emit(this.value)};render(){return s("label",{key:"45b7a8896d570c915d86a073ae624cd9d7cba26a",class:"bs-radio "+(this.disabled?"bs-radio--disabled":"")},s("input",{key:"1952e33f69903cfc8b85f6e6e3a544381d8785ed",class:"bs-radio__input",type:"radio",name:this.name,value:this.value,checked:this.checked,disabled:this.disabled,tabIndex:this.checked||!this.groupHasChecked?0:-1,onKeyDown:this.onKeyDown,onChange:this.onChange}),s("span",{key:"5c88f70158e39dd51ce403860dd66eebaea1ddf7",class:"bs-radio__hit-area"},s("bs-ripple",{key:"041e1e5535e9267b551d87f5fd66ccb29d7aa4d3",part:"ripple",class:"bs-radio__ripple",centered:!0,triggerSelector:".bs-radio",disabled:this.disabled}),s("span",{key:"7bbdb3278e70e531fcf5b7f3f237fec299d5282e",class:"bs-radio__state-layer"},s("span",{key:"7586e3baaeef3900c1f9676524ef69378bbdc121",part:"circle",class:"bs-radio__circle "+(this.checked?"bs-radio__circle--selected":"")},this.checked&&s("span",{key:"72a0571227b331512de1b89471aa18b909f34b84",part:"dot",class:"bs-radio__dot"})))),s("span",{key:"c48f3a4b3acb74bb5e71eb561dba2217460af8a0",part:"label",class:"bs-radio__label"},s("slot",{key:"48fab02676fb747aff3160ddc3cf2e0ee5cd2883"})))}static get delegatesFocus(){return!0}static get formAssociated(){return!0}static get watchers(){return{checked:[{onCheckedChange:0}],value:[{onCheckedChange:0}]}}static get style(){return":host{display:inline-block;--bs-radio-size:var(--bs-spacing-300);--bs-radio-border-width:2px;--bs-radio-state-layer-size:40px;--bs-radio-hit-area-size:48px;--bs-radio-gap:var(--bs-spacing-100)}.bs-radio{position:relative;display:inline-flex;align-items:center;gap:var(--bs-radio-gap);font-family:inherit;cursor:pointer}.bs-radio--disabled{cursor:not-allowed}.bs-radio__input{position:absolute;top:0;inset-inline-start:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}.bs-radio__input:disabled{cursor:not-allowed}.bs-radio__hit-area{box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--bs-radio-hit-area-size);height:var(--bs-radio-hit-area-size)}.bs-radio__state-layer{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:var(--bs-radio-state-layer-size);height:var(--bs-radio-state-layer-size);border-radius:50%;background:var(--bs-radio-bg-default)}.bs-radio__circle{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--bs-radio-size);height:var(--bs-radio-size);border:var(--bs-radio-border-width) solid var(--bs-radio-enabled-border-default);border-radius:50%;background:transparent}.bs-radio__circle--selected{border-color:var(--bs-radio-selected-border-default)}.bs-radio__dot{width:50%;height:50%;border-radius:50%;background:var(--bs-radio-icon-checked)}.bs-radio__input:hover:not(:disabled)~.bs-radio__hit-area .bs-radio__state-layer{background:var(--bs-radio-bg-hover)}.bs-radio__input:hover:not(:disabled)~.bs-radio__hit-area .bs-radio__circle{border-color:var(--bs-radio-enabled-border-hover)}.bs-radio__input:hover:not(:disabled)~.bs-radio__hit-area .bs-radio__circle--selected{border-color:var(--bs-radio-selected-border-hover)}.bs-radio__input:hover:not(:disabled)~.bs-radio__hit-area .bs-radio__circle--selected .bs-radio__dot{background:var(--bs-radio-icon-hover)}.bs-radio__input:focus-visible~.bs-radio__hit-area .bs-radio__state-layer{background:var(--bs-radio-bg-focus);outline:2px solid var(--bs-radio-focus-ring);outline-offset:2px}.bs-radio__input:focus-visible~.bs-radio__hit-area .bs-radio__circle{border-color:var(--bs-radio-enabled-border-focus)}.bs-radio__input:focus-visible~.bs-radio__hit-area .bs-radio__circle--selected{border-color:var(--bs-radio-selected-border-focus)}.bs-radio__input:active:not(:disabled)~.bs-radio__hit-area .bs-radio__state-layer{background:var(--bs-radio-bg-pressed)}.bs-radio__input:active:not(:disabled)~.bs-radio__hit-area .bs-radio__circle{border-color:var(--bs-radio-enabled-border-pressed)}.bs-radio__input:active:not(:disabled)~.bs-radio__hit-area .bs-radio__circle--selected{border-color:var(--bs-radio-selected-border-pressed)}.bs-radio__input:disabled~.bs-radio__hit-area .bs-radio__state-layer{background:var(--bs-radio-bg-disabled)}.bs-radio__input:disabled~.bs-radio__hit-area .bs-radio__circle{border-color:var(--bs-radio-border-disabled)}.bs-radio__input:disabled~.bs-radio__hit-area .bs-radio__circle--selected .bs-radio__dot{background:var(--bs-radio-icon-disabled)}.bs-radio__label{font-size:var(--bs-font-size-md);color:var(--bs-radio-label-default)}.bs-radio--disabled .bs-radio__label{color:var(--bs-radio-label-disabled)}@media (forced-colors: active){.bs-radio__circle{border:2px solid ButtonText;forced-color-adjust:none;background:Canvas}.bs-radio__dot{background:Highlight}}.bs-radio__ripple{border-radius:50%;--bs-ripple-color:var(--bs-color-primary-default)}"}},[849,"bs-radio",{name:[513],value:[1],checked:[1540],disabled:[516],groupHasChecked:[32]},[[4,"bsChange","onAnyRadioChange"]],{checked:[{onCheckedChange:0}],value:[{onCheckedChange:0}]}]);function t(){"undefined"!=typeof customElements&&["bs-radio","bs-ripple"].forEach((r=>{switch(r){case"bs-radio":customElements.get(e(r))||customElements.define(e(r),d);break;case"bs-ripple":customElements.get(e(r))||o()}}))}t();const b=d,c=t;export{b as BsRadio,c as defineCustomElement}
1
+ import{t as e,p as a,H as r,c as i,h as s}from"./p-CcAX4o5o.js";import{d as o}from"./p-DaKBSL2O.js";const d=a(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsChange=i(this,"bsChange"),this.internals=this.attachInternals()}get el(){return this}name;value;ariaLabel=null;checked=!1;disabled=!1;bsChange;internals;initialChecked=!1;groupHasChecked=!1;groupMembers(){if(!this.name)return[this.el];const e=this.el.getRootNode();return Array.from(e.querySelectorAll("bs-radio")).filter((e=>e.name===this.name))}onCheckedChange(){this.internals?.setFormValue?.(this.checked?this.value??"on":null),this.checked&&this.groupMembers().forEach((e=>{e!==this.el&&e.checked&&(e.checked=!1)})),this.refreshGroupState()}onAnyRadioChange(){this.refreshGroupState()}refreshGroupState(){this.groupHasChecked=this.groupMembers().some((e=>e.checked))}componentWillLoad(){this.initialChecked=this.checked,this.internals?.setFormValue?.(this.checked?this.value??"on":null)}componentDidLoad(){this.refreshGroupState()}formResetCallback(){this.checked=this.initialChecked}onKeyDown=e=>{const a="ArrowRight"===e.key||"ArrowDown"===e.key;if(!a&&"ArrowLeft"!==e.key&&"ArrowUp"!==e.key)return;const r=this.groupMembers().filter((e=>!e.disabled));if(r.length<2)return;e.preventDefault();const i=r.indexOf(this.el),s=r[(i+(a?1:-1)+r.length)%r.length],o=s.shadowRoot?.querySelector("input");o?.click(),o?.focus()};onChange=e=>{const a=e.target.checked;this.checked=a,a&&this.bsChange.emit(this.value)};render(){return s("label",{key:"1dfd58a24e299fe2a26e16dbfeb7d7246b7ae061",class:"bs-radio "+(this.disabled?"bs-radio--disabled":"")},s("input",{key:"3fd3733f26e706e37721bc7e5444aeba2f9ca635",class:"bs-radio__input",type:"radio",name:this.name,value:this.value,checked:this.checked,disabled:this.disabled,"aria-label":this.ariaLabel,tabIndex:this.checked||!this.groupHasChecked?0:-1,onKeyDown:this.onKeyDown,onChange:this.onChange}),s("span",{key:"c3a5a1e790748393f384525413a4cf59be9d1885",class:"bs-radio__hit-area"},s("bs-ripple",{key:"20b0b6b017644e259a3935ab88b9a512ea9471b7",part:"ripple",class:"bs-radio__ripple",centered:!0,triggerSelector:".bs-radio",disabled:this.disabled}),s("span",{key:"0bed296533c97c2e94260969a5486c76b905e205",class:"bs-radio__state-layer"},s("span",{key:"a8f71a9aecdaff2329d3179de0d37797c53a79d6",part:"circle",class:"bs-radio__circle "+(this.checked?"bs-radio__circle--selected":"")},this.checked&&s("span",{key:"0409d98b080ac54541353068548d149fb22e0dba",part:"dot",class:"bs-radio__dot"})))),s("span",{key:"ce380ae5ab8ccb1b0b033d04095bb53dd2090be4",part:"label",class:"bs-radio__label"},s("slot",{key:"39b83b5fd4a2337379cfbba0dd931a93e9c379e3"})))}static get delegatesFocus(){return!0}static get formAssociated(){return!0}static get watchers(){return{checked:[{onCheckedChange:0}],value:[{onCheckedChange:0}]}}static get style(){return":host{display:inline-block;--bs-radio-size:var(--bs-spacing-300);--bs-radio-border-width:2px;--bs-radio-state-layer-size:40px;--bs-radio-hit-area-size:48px;--bs-radio-gap:var(--bs-spacing-100)}.bs-radio{position:relative;display:inline-flex;align-items:center;gap:var(--bs-radio-gap);font-family:inherit;cursor:pointer}.bs-radio--disabled{cursor:not-allowed}.bs-radio__input{position:absolute;top:0;inset-inline-start:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}.bs-radio__input:disabled{cursor:not-allowed}.bs-radio__hit-area{box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--bs-radio-hit-area-size);height:var(--bs-radio-hit-area-size)}.bs-radio__state-layer{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:var(--bs-radio-state-layer-size);height:var(--bs-radio-state-layer-size);border-radius:50%;background:var(--bs-radio-bg-default)}.bs-radio__circle{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--bs-radio-size);height:var(--bs-radio-size);border:var(--bs-radio-border-width) solid var(--bs-radio-enabled-border-default);border-radius:50%;background:transparent}.bs-radio__circle--selected{border-color:var(--bs-radio-selected-border-default)}.bs-radio__dot{width:50%;height:50%;border-radius:50%;background:var(--bs-radio-icon-checked)}.bs-radio__input:hover:not(:disabled)~.bs-radio__hit-area .bs-radio__state-layer{background:var(--bs-radio-bg-hover)}.bs-radio__input:hover:not(:disabled)~.bs-radio__hit-area .bs-radio__circle{border-color:var(--bs-radio-enabled-border-hover)}.bs-radio__input:hover:not(:disabled)~.bs-radio__hit-area .bs-radio__circle--selected{border-color:var(--bs-radio-selected-border-hover)}.bs-radio__input:hover:not(:disabled)~.bs-radio__hit-area .bs-radio__circle--selected .bs-radio__dot{background:var(--bs-radio-icon-hover)}.bs-radio__input:focus-visible~.bs-radio__hit-area .bs-radio__state-layer{background:var(--bs-radio-bg-focus);outline:2px solid var(--bs-radio-focus-ring);outline-offset:2px}.bs-radio__input:focus-visible~.bs-radio__hit-area .bs-radio__circle{border-color:var(--bs-radio-enabled-border-focus)}.bs-radio__input:focus-visible~.bs-radio__hit-area .bs-radio__circle--selected{border-color:var(--bs-radio-selected-border-focus)}.bs-radio__input:active:not(:disabled)~.bs-radio__hit-area .bs-radio__state-layer{background:var(--bs-radio-bg-pressed)}.bs-radio__input:active:not(:disabled)~.bs-radio__hit-area .bs-radio__circle{border-color:var(--bs-radio-enabled-border-pressed)}.bs-radio__input:active:not(:disabled)~.bs-radio__hit-area .bs-radio__circle--selected{border-color:var(--bs-radio-selected-border-pressed)}.bs-radio__input:disabled~.bs-radio__hit-area .bs-radio__state-layer{background:var(--bs-radio-bg-disabled)}.bs-radio__input:disabled~.bs-radio__hit-area .bs-radio__circle{border-color:var(--bs-radio-border-disabled)}.bs-radio__input:disabled~.bs-radio__hit-area .bs-radio__circle--selected .bs-radio__dot{background:var(--bs-radio-icon-disabled)}.bs-radio__label{font-size:var(--bs-font-size-md);color:var(--bs-radio-label-default)}.bs-radio--disabled .bs-radio__label{color:var(--bs-radio-label-disabled)}@media (forced-colors: active){.bs-radio__circle{border:2px solid ButtonText;forced-color-adjust:none;background:Canvas}.bs-radio__dot{background:Highlight}}.bs-radio__ripple{border-radius:50%;--bs-ripple-color:var(--bs-color-primary-default)}"}},[849,"bs-radio",{name:[513],value:[1],ariaLabel:[1,"aria-label"],checked:[1540],disabled:[516],groupHasChecked:[32]},[[4,"bsChange","onAnyRadioChange"]],{checked:[{onCheckedChange:0}],value:[{onCheckedChange:0}]}]);function t(){"undefined"!=typeof customElements&&["bs-radio","bs-ripple"].forEach((a=>{switch(a){case"bs-radio":customElements.get(e(a))||customElements.define(e(a),d);break;case"bs-ripple":customElements.get(e(a))||o()}}))}t();const b=d,l=t;export{b as BsRadio,l as defineCustomElement}
@@ -1 +1 @@
1
- import{B as o,d as p}from"./p-DtkTnaOp.js";const s=o,t=p;export{s as BsRipple,t as defineCustomElement}
1
+ import{B as o,d as s}from"./p-DaKBSL2O.js";const a=o,p=s;export{a as BsRipple,p as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as s,H as i,c as t,h as a}from"./p-B2gx7SZk.js";import{d as r}from"./p-DtkTnaOp.js";const c=s(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsItemSelect=t(this,"bsItemSelect")}get el(){return this}value;active=!1;disabled=!1;trailing;selectionRole=null;hasIcon=!1;hasDescription=!1;hasTrailingSlot=!1;bsItemSelect;componentWillLoad(){const e=e=>Array.from(this.el.children).some((s=>s.getAttribute("slot")===e));this.hasIcon=e("icon"),this.hasDescription=e("description"),this.hasTrailingSlot=e("trailing")}onClick(){this.disabled||this.bsItemSelect.emit(this.value)}slotFilled=e=>s=>e(s.target.assignedNodes().length>0);render(){const e=this.selectionRole??void 0;return a("div",{key:"5a3a8580e47d0c10e55db1b787b0b74e6cb3a4f3",part:"container",class:"bs-search-item",role:e,"aria-selected":e?this.active+"":void 0,"aria-disabled":e&&this.disabled?"true":void 0},!this.disabled&&a("bs-ripple",{key:"c8e27ae7b1e0d50f8ecff26c91bcae9c3b62950f",part:"ripple"}),a("span",{key:"81ad3c5bec85021e7276909753e4f1a3a17e4b00",part:"icon",class:{"bs-search-item__icon":!0,"bs-search-item__icon--hidden":!this.hasIcon}},a("slot",{key:"88262df53a785c5e60b8ec3935b1d1861cf1ae6a",name:"icon",onSlotchange:this.slotFilled((e=>this.hasIcon=e))})),a("span",{key:"5924d34123f7889eddd068ee24a2dfc6df8f41b3",part:"content",class:"bs-search-item__content"},a("span",{key:"671557c0b077e15450be02e5bb474c0f449dfea7",part:"label",class:"bs-search-item__label"},a("slot",{key:"97ebaf915bcc552fd77d78e7ddb39fdc640ee023"})),a("span",{key:"e60d0190f0c562c041d0c305917220f4a34f450f",part:"description",class:{"bs-search-item__description":!0,"bs-search-item__description--hidden":!this.hasDescription}},a("slot",{key:"d044cb988f1edc550a18cfe06a9258b7cae2f15f",name:"description",onSlotchange:this.slotFilled((e=>this.hasDescription=e))}))),a("span",{key:"e55b0b5c9a7fb2531f6d20667970dc587a27b140",part:"trailing",class:{"bs-search-item__trailing":!0,"bs-search-item__trailing--hidden":!this.hasTrailingSlot&&!this.trailing}},a("slot",{key:"bae1da141d180b3dbb788c19a632548d0127bd64",name:"trailing",onSlotchange:this.slotFilled((e=>this.hasTrailingSlot=e))},this.trailing)))}static get style(){return":host{display:block;width:100%;box-sizing:border-box;--bs-search-item-min-height:var(--bs-spacing-600);--bs-search-item-padding-y:var(--bs-spacing-100);--bs-search-item-padding-x:var(--bs-spacing-150);--bs-search-item-gap:var(--bs-spacing-100);--bs-search-item-radius:var(--bs-border-radius-100);--bs-search-item-bg:transparent;--bs-search-item-bg-active:var(--bs-surface-hover);--bs-search-item-bg-pressed:var(--bs-surface-pressed);--bs-search-item-color:var(--bs-text-default);--bs-search-item-color-muted:var(--bs-text-muted);--bs-search-item-color-disabled:var(--bs-text-on-disabled);--bs-search-item-icon-color:var(--bs-icon-default)}.bs-search-item{position:relative;box-sizing:border-box;display:flex;align-items:center;gap:var(--bs-search-item-gap);width:100%;min-height:var(--bs-search-item-min-height);padding:var(--bs-search-item-padding-y) var(--bs-search-item-padding-x);border-radius:var(--bs-search-item-radius);background:var(--bs-search-item-bg);color:var(--bs-search-item-color);font-family:inherit;cursor:pointer;transition:background-color 120ms ease}:host([active]) .bs-search-item,.bs-search-item:hover{background:var(--bs-search-item-bg-active)}.bs-search-item:active{background:var(--bs-search-item-bg-pressed)}:host([disabled]) .bs-search-item{background:var(--bs-search-item-bg);color:var(--bs-search-item-color-disabled);cursor:default}.bs-search-item__icon{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:24px;height:24px;color:var(--bs-search-item-icon-color)}.bs-search-item__icon--hidden,.bs-search-item__description--hidden,.bs-search-item__trailing--hidden{display:none}.bs-search-item__icon ::slotted(svg){width:24px;height:24px}.bs-search-item__content{flex:1 1 0;min-width:0;display:flex;flex-direction:column}.bs-search-item__label{font-size:var(--bs-font-size-md);font-weight:var(--bs-font-weight-regular);line-height:24px}.bs-search-item__label ::slotted(b),.bs-search-item__label ::slotted(strong){font-weight:var(--bs-font-weight-semibold)}.bs-search-item__description{color:var(--bs-search-item-color-muted);font-size:var(--bs-font-size-sm);line-height:20px}.bs-search-item__trailing{flex:0 0 auto;color:var(--bs-search-item-color-muted);font-size:var(--bs-font-size-sm);line-height:20px;white-space:nowrap}:host([disabled]) .bs-search-item__description,:host([disabled]) .bs-search-item__trailing{color:var(--bs-search-item-color-disabled)}@media (prefers-reduced-motion: reduce){.bs-search-item{transition:none}}"}},[769,"bs-search-item",{value:[1],active:[516],disabled:[516],trailing:[1],selectionRole:[1,"selection-role"],hasIcon:[32],hasDescription:[32],hasTrailingSlot:[32]},[[0,"click","onClick"]]]);function o(){"undefined"!=typeof customElements&&["bs-search-item","bs-ripple"].forEach((s=>{switch(s){case"bs-search-item":customElements.get(e(s))||customElements.define(e(s),c);break;case"bs-ripple":customElements.get(e(s))||r()}}))}o();const n=c,b=o;export{n as BsSearchItem,b as defineCustomElement}
1
+ import{t as e,p as s,H as i,c as t,h as a}from"./p-CcAX4o5o.js";import{d as r}from"./p-DaKBSL2O.js";const c=s(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsItemSelect=t(this,"bsItemSelect")}get el(){return this}value;active=!1;disabled=!1;trailing;selectionRole=null;hasIcon=!1;hasDescription=!1;hasTrailingSlot=!1;bsItemSelect;componentWillLoad(){const e=e=>Array.from(this.el.children).some((s=>s.getAttribute("slot")===e));this.hasIcon=e("icon"),this.hasDescription=e("description"),this.hasTrailingSlot=e("trailing")}onClick(){this.disabled||this.bsItemSelect.emit(this.value)}slotFilled=e=>s=>e(s.target.assignedNodes().length>0);render(){const e=this.selectionRole??void 0;return a("div",{key:"4e02263a2d377be0989f3469555f19f9b4933840",part:"container",class:"bs-search-item",role:e,"aria-selected":e?this.active+"":void 0,"aria-disabled":e&&this.disabled?"true":void 0},!this.disabled&&a("bs-ripple",{key:"00523f734a7d994cf448df045a73d4588da1c00c",part:"ripple"}),a("span",{key:"2d030afeec12e555c72d1659f0ac7d2ecb4df70a",part:"icon",class:{"bs-search-item__icon":!0,"bs-search-item__icon--hidden":!this.hasIcon}},a("slot",{key:"ab14918cfcb5425b33c1489232ea18bf940dc49d",name:"icon",onSlotchange:this.slotFilled((e=>this.hasIcon=e))})),a("span",{key:"eee1f17e15fa4195f3a65fa7bc7f3ad12d839b7c",part:"content",class:"bs-search-item__content"},a("span",{key:"75cd5ada24d085dce96331782c4e71317d0d8ed4",part:"label",class:"bs-search-item__label"},a("slot",{key:"47fbf5d269d2a23eb824ba32084886efdad2aa96"})),a("span",{key:"b2e4154147a02059d08505bc9f452931bbcff2bf",part:"description",class:{"bs-search-item__description":!0,"bs-search-item__description--hidden":!this.hasDescription}},a("slot",{key:"8b72f89b59fa15c21c0d02b3db88b3e291d72f81",name:"description",onSlotchange:this.slotFilled((e=>this.hasDescription=e))}))),a("span",{key:"e0b5675b2d71fe5e740fd90ff2aea5eecca2f9eb",part:"trailing",class:{"bs-search-item__trailing":!0,"bs-search-item__trailing--hidden":!this.hasTrailingSlot&&!this.trailing}},a("slot",{key:"c0dc999d7b4da6b670690b72071f5b844b86b35b",name:"trailing",onSlotchange:this.slotFilled((e=>this.hasTrailingSlot=e))},this.trailing)))}static get style(){return":host{display:block;width:100%;box-sizing:border-box;--bs-search-item-min-height:var(--bs-spacing-600);--bs-search-item-padding-y:var(--bs-spacing-100);--bs-search-item-padding-x:var(--bs-spacing-150);--bs-search-item-gap:var(--bs-spacing-100);--bs-search-item-radius:var(--bs-border-radius-100);--bs-search-item-bg:transparent;--bs-search-item-bg-active:var(--bs-surface-hover);--bs-search-item-bg-pressed:var(--bs-surface-pressed);--bs-search-item-color:var(--bs-text-default);--bs-search-item-color-muted:var(--bs-text-muted);--bs-search-item-color-disabled:var(--bs-text-on-disabled);--bs-search-item-icon-color:var(--bs-icon-default)}.bs-search-item{position:relative;box-sizing:border-box;display:flex;align-items:center;gap:var(--bs-search-item-gap);width:100%;min-height:var(--bs-search-item-min-height);padding:var(--bs-search-item-padding-y) var(--bs-search-item-padding-x);border-radius:var(--bs-search-item-radius);background:var(--bs-search-item-bg);color:var(--bs-search-item-color);font-family:inherit;cursor:pointer;transition:background-color 120ms ease}:host([active]) .bs-search-item,.bs-search-item:hover{background:var(--bs-search-item-bg-active)}.bs-search-item:active{background:var(--bs-search-item-bg-pressed)}:host([disabled]) .bs-search-item{background:var(--bs-search-item-bg);color:var(--bs-search-item-color-disabled);cursor:default}.bs-search-item__icon{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:24px;height:24px;color:var(--bs-search-item-icon-color)}.bs-search-item__icon--hidden,.bs-search-item__description--hidden,.bs-search-item__trailing--hidden{display:none}.bs-search-item__icon ::slotted(svg){width:24px;height:24px}.bs-search-item__content{flex:1 1 0;min-width:0;display:flex;flex-direction:column}.bs-search-item__label{font-size:var(--bs-font-size-md);font-weight:var(--bs-font-weight-regular);line-height:24px}.bs-search-item__label ::slotted(b),.bs-search-item__label ::slotted(strong){font-weight:var(--bs-font-weight-semibold)}.bs-search-item__description{color:var(--bs-search-item-color-muted);font-size:var(--bs-font-size-sm);line-height:20px}.bs-search-item__trailing{flex:0 0 auto;color:var(--bs-search-item-color-muted);font-size:var(--bs-font-size-sm);line-height:20px;white-space:nowrap}:host([disabled]) .bs-search-item__description,:host([disabled]) .bs-search-item__trailing{color:var(--bs-search-item-color-disabled)}@media (prefers-reduced-motion: reduce){.bs-search-item{transition:none}}"}},[769,"bs-search-item",{value:[1],active:[516],disabled:[516],trailing:[1],selectionRole:[1,"selection-role"],hasIcon:[32],hasDescription:[32],hasTrailingSlot:[32]},[[0,"click","onClick"]]]);function o(){"undefined"!=typeof customElements&&["bs-search-item","bs-ripple"].forEach((s=>{switch(s){case"bs-search-item":customElements.get(e(s))||customElements.define(e(s),c);break;case"bs-ripple":customElements.get(e(s))||r()}}))}o();const b=c,n=o;export{b as BsSearchItem,n as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BsSelect extends Components.BsSelect, HTMLElement {}
4
+ export const BsSelect: {
5
+ prototype: BsSelect;
6
+ new (): BsSelect;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{t as e,p as s,H as t,c as i,h as o}from"./p-CcAX4o5o.js";let r=0;const l=s(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsChange=i(this,"bsChange"),this.internals=this.attachInternals()}get el(){return this}internals;uid=++r;initialValue="";typeahead="";typeaheadTimer;listEl;fieldEl;name;value="";options=[];label;ariaLabel=null;placeholder="Select";description;error;disabled=!1;required=!1;open=!1;bsChange;activeIndex=-1;syncForm(){this.internals?.setFormValue?.(this.value||null),this.required&&!this.value?this.internals?.setValidity?.({valueMissing:!0},"Please select an item in the list.",this.fieldEl):this.internals?.setValidity?.({})}onOpen(e){if(e){const e=this.options.findIndex((e=>e.value===this.value&&!e.disabled));this.activeIndex=e>=0?e:this.step(-1,1),document.addEventListener("click",this.onDocClick,!0)}else document.removeEventListener("click",this.onDocClick,!0)}formResetCallback(){this.value=this.initialValue,this.open=!1}componentWillLoad(){this.initialValue=this.value,this.syncForm()}componentDidRender(){if(this.open&&this.activeIndex>=0){const e=this.listEl?.children[this.activeIndex];e?.scrollIntoView?.({block:"nearest"})}}disconnectedCallback(){document.removeEventListener("click",this.onDocClick,!0)}onDocClick=e=>{e.composedPath().includes(this.el)||(this.open=!1)};step(e,s){for(let t=e+s;t>=0&&t<this.options.length;t+=s)if(!this.options[t].disabled)return t;return e>=0&&e<this.options.length&&!this.options[e].disabled?e:-1}commit(e){const s=this.options[e];if(!s||s.disabled)return;const t=s.value!==this.value;this.value=s.value,this.open=!1,t&&this.bsChange.emit(s.value)}selectedIndex(){return this.options.findIndex((e=>e.value===this.value))}findByPrefix(e,s){const t=this.options.length;for(let i=0;i<t;i++){const o=(s+i)%t,r=this.options[o];if(!r.disabled&&r.label.toLowerCase().startsWith(e))return o}return-1}onKeyDown=e=>{if(this.disabled||e.altKey||e.ctrlKey||e.metaKey)return;const s=e.key,t=this.open?this.activeIndex:this.selectedIndex(),i=e=>{e<0||(this.open?this.activeIndex=e:this.commit(e))};if(!this.open&&("Enter"===s||" "===s))return e.preventDefault(),void(this.open=!0);switch(s){case"ArrowDown":return e.preventDefault(),void(this.open?i(this.step(t,1)):this.open=!0);case"ArrowUp":return e.preventDefault(),void(this.open?i(this.step(t,-1)):this.open=!0);case"Home":return e.preventDefault(),void i(this.step(-1,1));case"End":return e.preventDefault(),void i(this.step(this.options.length,-1));case"Enter":case" ":return e.preventDefault(),void this.commit(this.activeIndex);case"Escape":return void(this.open&&(e.preventDefault(),this.open=!1));case"Tab":return void(this.open=!1)}if(1===s.length&&/\S/.test(s)){e.preventDefault(),clearTimeout(this.typeaheadTimer),this.typeahead+=s.toLowerCase(),this.typeaheadTimer=setTimeout((()=>this.typeahead=""),600);const o=this.typeahead.split("").every((e=>e===this.typeahead[0]));i(this.findByPrefix(o?this.typeahead[0]:this.typeahead,t<0?0:o&&this.typeahead.length>1?t+1:t))}};onFieldClick=()=>{this.disabled||(this.open=!this.open)};onBlur=()=>{this.open&&(this.open=!1)};render(){const e="bs-select-label-"+this.uid,s="bs-select-list-"+this.uid,t="bs-select-msg-"+this.uid,i=this.options.find((e=>e.value===this.value)),r=e=>`bs-select-opt-${this.uid}-${e}`,l=["bs-select__field",this.error?"bs-select__field--error":"",this.disabled?"bs-select__field--disabled":"",this.open?"bs-select__field--open":""].filter(Boolean).join(" ");return o("div",{key:"b966bfa9b43400d8e96ea994e4899690f41a3b25",class:"bs-select "+(this.error?"bs-select--error":"")},this.label&&o("span",{key:"e5b3827d0e15beacd42b13c1e02bbb5b8eec724f",part:"label",id:e,class:"bs-select__label",onClick:()=>!this.disabled&&this.fieldEl?.focus()},this.label,this.required&&o("span",{key:"69edf6965f73dd1380bebf7ce6a19d2d3456c495",class:"bs-select__required","aria-hidden":"true"},"*")),o("div",{key:"3f66523ef85b2274c60775bd3700649551fb1777",class:"bs-select__wrapper"},o("div",{key:"e234bc7060b6f121ca4425d5359ec74221626418",part:"field",class:l,ref:e=>this.fieldEl=e,role:"combobox",tabindex:this.disabled?-1:0,"aria-haspopup":"listbox","aria-expanded":this.open+"","aria-controls":s,"aria-labelledby":this.label?e:void 0,"aria-label":this.label?void 0:this.ariaLabel,"aria-activedescendant":this.open&&this.activeIndex>=0?r(this.activeIndex):void 0,"aria-describedby":this.error||this.description?t:void 0,"aria-invalid":this.error?"true":void 0,"aria-required":this.required?"true":void 0,"aria-disabled":this.disabled?"true":void 0,onClick:this.onFieldClick,onKeyDown:this.onKeyDown,onBlur:this.onBlur},o("span",{key:"800c4eff295238e60c2cb976e2118d968cd30851",part:"value",class:"bs-select__value "+(i?"":"bs-select__value--placeholder")},i?i.label:this.placeholder),o("svg",{key:"cfa09749f81c702957b7bc45f1f418f0d90c4eb8",part:"icon",class:"bs-select__chevron",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},o("path",{key:"b166df87f7112440d1adea4c07ef7a3ec08ea59d",d:"M4 6L8 10L12 6",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))),o("ul",{key:"883dc5c400045f43c40faad9b1113f3fd479e2e4",part:"listbox",id:s,class:"bs-select__listbox",role:"listbox","aria-labelledby":this.label?e:void 0,"aria-label":this.label?void 0:this.ariaLabel,hidden:!this.open,ref:e=>this.listEl=e,onMouseDown:e=>e.preventDefault()},this.options.map(((e,s)=>o("li",{part:"option",id:r(s),key:e.value,role:"option","aria-selected":(e.value===this.value)+"","aria-disabled":e.disabled?"true":void 0,class:["bs-select__option",s===this.activeIndex?"bs-select__option--active":"",e.disabled?"bs-select__option--disabled":"",e.value===this.value?"bs-select__option--selected":""].filter(Boolean).join(" "),onClick:()=>this.commit(s),onMouseMove:()=>!e.disabled&&this.activeIndex!==s&&(this.activeIndex=s)},o("span",{class:"bs-select__option-label"},e.label),e.value===this.value&&o("svg",{class:"bs-select__check",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},o("path",{d:"M3.5 8.5L6.5 11.5L12.5 4.5",stroke:"currentColor","stroke-width":"1.75","stroke-linecap":"round","stroke-linejoin":"round"}))))))),this.error?o("span",{id:t,part:"error",class:"bs-select__error"},this.error):this.description?o("span",{id:t,part:"description",class:"bs-select__description"},this.description):null)}static get delegatesFocus(){return!0}static get formAssociated(){return!0}static get watchers(){return{value:[{syncForm:0}],required:[{syncForm:0}],options:[{syncForm:0}],open:[{onOpen:0}]}}static get style(){return":host{display:block;position:relative;--bs-select-radius:var(--bs-border-radius-100);--bs-select-height:var(--bs-spacing-550);--bs-select-padding-x:var(--bs-spacing-150);--bs-select-stack-gap:var(--bs-spacing-50);--bs-select-icon-size:var(--bs-spacing-300);--bs-select-field-bg:var(--bs-input-bg-default);--bs-select-field-bg-disabled:var(--bs-input-bg-disabled);--bs-select-field-border:var(--bs-input-border-default);--bs-select-field-border-hover:var(--bs-input-border-hover);--bs-select-field-border-focus:var(--bs-input-border-focus);--bs-select-field-border-error:var(--bs-input-border-error);--bs-select-field-text:var(--bs-input-text);--bs-select-field-text-disabled:var(--bs-input-text-disabled);--bs-select-placeholder-color:var(--bs-input-placeholder);--bs-select-icon-color:var(--bs-icon-muted);--bs-select-label-color:var(--bs-input-label);--bs-select-description-color:var(--bs-input-description);--bs-select-error-color:var(--bs-input-error);--bs-select-listbox-bg:var(--bs-surface-raised);--bs-select-listbox-radius:var(--bs-border-radius-100);--bs-select-listbox-shadow:var(--bs-shadow-md);--bs-select-listbox-max-height:var(--bs-scale-3200);--bs-select-listbox-z-index:var(--bs-z-index-popover);--bs-select-option-height:var(--bs-spacing-550);--bs-select-option-hover:var(--bs-color-neutral-container-hover);--bs-select-option-selected:var(--bs-surface-selected);--bs-select-option-color:var(--bs-text-default);--bs-select-option-color-disabled:var(--bs-text-on-disabled);--bs-select-check-color:var(--bs-icon-action);--bs-select-focus-ring-color:var(--bs-border-neutral-focus)}.bs-select{display:flex;flex-direction:column;gap:var(--bs-select-stack-gap);font-family:inherit}.bs-select__label{font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-medium);color:var(--bs-select-label-color)}.bs-select__required{color:var(--bs-select-error-color);margin-inline-start:2px}.bs-select__wrapper{position:relative}.bs-select__field{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:var(--bs-spacing-100);height:var(--bs-select-height);padding:0 var(--bs-select-padding-x);border:1px solid var(--bs-select-field-border);border-radius:var(--bs-select-radius);background:var(--bs-select-field-bg);color:var(--bs-select-field-text);font-size:var(--bs-font-size-md);cursor:pointer;outline:none}.bs-select__field:hover:not(.bs-select__field--disabled){border-color:var(--bs-select-field-border-hover)}.bs-select__field:focus-visible,.bs-select__field--open{border-color:var(--bs-select-field-border-focus)}.bs-select__field:focus-visible{outline:2px solid var(--bs-select-focus-ring-color);outline-offset:2px}.bs-select__field--error{border-color:var(--bs-select-field-border-error)}.bs-select__field--disabled{background:var(--bs-select-field-bg-disabled);color:var(--bs-select-field-text-disabled);cursor:not-allowed}.bs-select__value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bs-select__value--placeholder{color:var(--bs-select-placeholder-color)}.bs-select__chevron{flex-shrink:0;width:var(--bs-select-icon-size);height:var(--bs-select-icon-size);color:var(--bs-select-icon-color);transition:transform 0.15s ease}.bs-select__field--open .bs-select__chevron{transform:rotate(180deg)}.bs-select__listbox{box-sizing:border-box;position:absolute;inset-inline:0;top:calc(100% + var(--bs-spacing-50));z-index:var(--bs-select-listbox-z-index);margin:0;padding:var(--bs-spacing-50) 0;list-style:none;max-height:var(--bs-select-listbox-max-height);overflow-y:auto;background:var(--bs-select-listbox-bg);border-radius:var(--bs-select-listbox-radius);box-shadow:var(--bs-select-listbox-shadow)}.bs-select__listbox[hidden]{display:none}.bs-select__option{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:var(--bs-spacing-100);min-height:var(--bs-select-option-height);padding:var(--bs-spacing-100) var(--bs-select-padding-x);color:var(--bs-select-option-color);font-size:var(--bs-font-size-md);cursor:pointer}.bs-select__option--active{background:var(--bs-select-option-hover)}.bs-select__option--selected{background:var(--bs-select-option-selected);font-weight:var(--bs-font-weight-semibold)}.bs-select__option--selected.bs-select__option--active{background:var(--bs-select-option-hover)}.bs-select__option--disabled{color:var(--bs-select-option-color-disabled);cursor:not-allowed}.bs-select__check{flex-shrink:0;width:var(--bs-select-icon-size);height:var(--bs-select-icon-size);color:var(--bs-select-check-color)}.bs-select__description,.bs-select__error{font-size:var(--bs-font-size-sm)}.bs-select__description{color:var(--bs-select-description-color)}.bs-select__error{color:var(--bs-select-error-color)}@media (forced-colors: active){.bs-select__field{border-color:ButtonText}.bs-select__option--active{background:Highlight;color:HighlightText}}"}},[593,"bs-select",{name:[513],value:[1537],options:[16],label:[1],ariaLabel:[1,"aria-label"],placeholder:[1],description:[1],error:[1],disabled:[516],required:[4],open:[1540],activeIndex:[32]},void 0,{value:[{syncForm:0}],required:[{syncForm:0}],options:[{syncForm:0}],open:[{onOpen:0}]}]);function c(){"undefined"!=typeof customElements&&["bs-select"].forEach((s=>{"bs-select"===s&&(customElements.get(e(s))||customElements.define(e(s),l))}))}c();const a=l,b=c;export{a as BsSelect,b as defineCustomElement}
@@ -1 +1 @@
1
- import{h as s,t,p as e,H as i,c as o}from"./p-B2gx7SZk.js";import{d as a}from"./p-DsBToIYE.js";import{d as n}from"./p-up01gvHY.js";import{d as r}from"./p-EGNLb4cQ.js";import{d as c}from"./p-DXwatzvM.js";import{d as b}from"./p-BfCah-Ij.js";import{d as l}from"./p-CHZE_FrW.js";import{d}from"./p-CvSewXZF.js";import{d as u}from"./p-CVQycAap.js";import{d as m}from"./p-D5eN9Lfa.js";import{d as p}from"./p-DDgzEg1C.js";import{d as h}from"./p-DtkTnaOp.js";const g=e(class extends i{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.bsPrimary=o(this,"bsPrimary"),this.bsSecondary=o(this,"bsSecondary"),this.bsAlternative=o(this,"bsAlternative"),this.bsCancel=o(this,"bsCancel"),this.bsExpire=o(this,"bsExpire")}get el(){return this}type="warning";heading;headingLevel=2;description;hideIcon=!1;primaryLabel;secondaryLabel;secondsLeft=0;totalSeconds=0;countdown=!1;timeLeftLabel="minutes left";secondsLeftLabel="seconds left";savedMessage;accountName;accountEmail;accountInitials;passwordLabel="Password";passwordError;dividerLabel="or";alternatives=[{id:"passkey",label:"Use passkey",icon:"fingerprint"},{id:"bankid",label:"Use BankID",icon:"key"}];cancelLabel="Cancel";bsPrimary;bsSecondary;bsAlternative;bsCancel;bsExpire;password="";announcement="";initialTotal=0;timer;componentWillLoad(){this.initialTotal=this.secondsLeft}componentDidLoad(){this.syncTimer()}disconnectedCallback(){this.stopTimer()}connectedCallback(){void 0===this.timer&&this.el.isConnected&&this.syncTimer()}onTimerInputsChange(){this.syncTimer()}stopTimer(){void 0!==this.timer&&clearInterval(this.timer),this.timer=void 0}syncTimer(){this.stopTimer(),!this.countdown||"warning"!==this.type||this.secondsLeft<=0||(this.timer=setInterval((()=>this.tick()),1e3))}tick(){this.secondsLeft<=0||(this.secondsLeft=this.secondsLeft-1,[60,30,10].includes(this.secondsLeft)&&(this.announcement=`${f(this.secondsLeft)} ${this.secondsLeft>=60?this.timeLeftLabel:this.secondsLeftLabel}`),this.secondsLeft<=0&&(this.stopTimer(),this.bsExpire.emit()))}get defaults(){return C[this.type]??C.warning}renderHeading(t,e){const i=Math.min(6,Math.max(1,Math.trunc(Number(this.headingLevel))||2));return s("div",{class:"bs-session-timeout__heading-group"},s("h"+i,{part:"heading",id:"heading",class:{"bs-session-timeout__heading":!0}},t),e&&s("p",{part:"description",class:"bs-session-timeout__description"},e))}renderWarning(){const t=this.totalSeconds>0?this.totalSeconds:this.initialTotal||this.secondsLeft,e=t>0?Math.max(0,Math.min(100,this.secondsLeft/t*100)):0,i=this.secondsLeft>=60?this.timeLeftLabel:this.secondsLeftLabel;return s("div",{part:"countdown",class:"bs-session-timeout__countdown"},s("div",{class:"bs-session-timeout__time-row"},s("span",{part:"time",class:"bs-session-timeout__time",role:"timer"},f(this.secondsLeft)),s("span",{class:"bs-session-timeout__unit"},i)),s("bs-progress-linear",{type:"determinate",size:"large",value:e,showLabel:!1,ariaLabel:`${f(this.secondsLeft)} ${i}`}))}renderAccount(){const t=this.accountName??"",e=this.accountInitials??t.split(/\s+/).filter(Boolean).slice(0,2).map((s=>s[0].toUpperCase())).join("");return t||this.accountEmail?s("div",{part:"account",class:"bs-session-timeout__account"},s("bs-avatar",{type:"initials",size:"lg",initials:e,ariaLabel:t||this.accountEmail}),s("div",{class:"bs-session-timeout__account-text"},t&&s("span",{class:"bs-session-timeout__account-name"},t),this.accountEmail&&s("span",{class:"bs-session-timeout__account-email"},this.accountEmail))):null}renderConfirm(){const t=this.alternatives??[];return[s("bs-input",{part:"password",class:"bs-session-timeout__password",type:"password",label:this.passwordLabel,value:this.password,error:this.passwordError,onBsInput:s=>this.password=s.detail,onBsChange:s=>this.password=s.detail}),s("bs-button",{part:"primary",class:"bs-session-timeout__block-button",variant:"primary",onClick:()=>this.bsPrimary.emit({password:this.password})},this.primaryLabel??this.defaults.primary),t.length>0&&s("div",{part:"divider",class:"bs-session-timeout__divider",role:"separator"},s("span",{class:"bs-session-timeout__rule"}),s("span",{class:"bs-session-timeout__divider-label"},this.dividerLabel),s("span",{class:"bs-session-timeout__rule"})),t.length>0&&s("div",{part:"alternatives",class:"bs-session-timeout__alternatives"},t.map((t=>s("bs-button",{key:t.id,variant:"outlined",onClick:()=>this.bsAlternative.emit({id:t.id})},s("key"===t.icon?x:w,{slot:"icon"}),t.label)))),this.cancelLabel&&s("bs-button",{part:"cancel",class:"bs-session-timeout__block-button bs-session-timeout__text-button",variant:"subtle",size:"lg",onClick:()=>this.bsCancel.emit()},this.cancelLabel)]}render(){const t=this.defaults,e=this.heading??t.heading,i=this.description??t.description,o=this.primaryLabel??t.primary,a=this.secondaryLabel??t.secondary;return s("bs-card",{key:"6e8091dcd3e15ebf5b68dc024f69ef23cf1850d4",part:"container",class:"bs-session-timeout",surface:"base",role:"region","aria-labelledby":"heading"},s("div",{key:"53eca19dff3cde4bac5b0fac889da620980db6d6",class:"bs-session-timeout__body"},!this.hideIcon&&s("bs-icon-tile",{key:"07074e81e49beaada9dd4b92770bfd4999353629",part:"art",intent:t.intent,size:"lg"},s("slot",{key:"362feaab173e019303ab2e69bb6c38a8ac5898f6",name:"icon"},t.glyph())),this.renderHeading(e,i),"warning"===this.type&&this.renderWarning(),"warning"===this.type&&this.savedMessage&&s("p",{key:"b264006e5b5fc1ad21850d2b00b7a8fda4f0da18",part:"saved",class:"bs-session-timeout__saved"},s(k,{key:"b5928e557e3b4b84e56e4312652725f03a3349da"}),s("span",{key:"a9830a6ecb1cc3c889132c298bf93ae1cd590b09"},this.savedMessage)),"signed-out"===this.type&&this.renderAccount(),"confirm-identity"===this.type&&this.renderConfirm(),"warning"===this.type&&(o||a)&&s("div",{key:"de05950cdcbbaee5bea7f9078ab21675423720a5",part:"actions",class:"bs-session-timeout__actions"},a&&s("bs-button",{key:"f3c9295fd63ab6362ff3c3821e994523a6faed4a",part:"secondary",variant:"outlined",onClick:()=>this.bsSecondary.emit()},a),o&&s("bs-button",{key:"b121ea361fd5e69092079f5aa87f5af06e46039e",part:"primary",variant:"primary",onClick:()=>this.bsPrimary.emit()},o)),"signed-out"===this.type&&(o||a)&&s("div",{key:"77acc3ed926513e60706d02fcb3077dee05b5b26",part:"actions",class:"bs-session-timeout__actions bs-session-timeout__actions--stacked"},o&&s("bs-button",{key:"f8279d2ddb817395c88bd5d467f3a53ce927ac77",part:"primary",class:"bs-session-timeout__block-button",variant:"primary",onClick:()=>this.bsPrimary.emit()},o),a&&s("bs-button",{key:"40c06a5a88c6b91833f50b61db6953a205f8102a",part:"secondary",class:"bs-session-timeout__text-button",variant:"subtle",size:"lg",onClick:()=>this.bsSecondary.emit()},a)),s("div",{key:"179e7d8a22872c50f531758bfc64b1de7c4f557d",class:"bs-session-timeout__sr-only",role:"status","aria-live":"polite"},this.announcement)))}static get watchers(){return{countdown:[{onTimerInputsChange:0}],type:[{onTimerInputsChange:0}]}}static get style(){return":host{display:block;width:var(--bs-session-timeout-width);min-width:var(--bs-session-timeout-min-width);max-width:var(--bs-session-timeout-max-width);--bs-session-timeout-width:440px;--bs-session-timeout-min-width:380px;--bs-session-timeout-max-width:560px;--bs-session-timeout-bg:var(--bs-paper-bg-base);--bs-session-timeout-radius:var(--bs-border-radius-150);--bs-session-timeout-padding:var(--bs-spacing-200);--bs-session-timeout-gap:var(--bs-spacing-150);--bs-session-timeout-shadow:0 8px 8px var(--bs-elevation-higher);--bs-session-timeout-color:var(--bs-text-default);--bs-session-timeout-color-secondary:var(--bs-text-secondary);--bs-session-timeout-countdown-bg:var(--bs-surface-container);--bs-session-timeout-countdown-fill:var(--bs-color-warning-default);--bs-session-timeout-countdown-track:var(--bs-surface-hover);--bs-session-timeout-rule:var(--bs-border-default)}.bs-session-timeout{--bs-card-bg:var(--bs-session-timeout-bg);--bs-card-radius:var(--bs-session-timeout-radius);--bs-card-padding:var(--bs-session-timeout-padding);--bs-card-shadow:var(--bs-session-timeout-shadow);color:var(--bs-session-timeout-color)}.bs-session-timeout__body{display:flex;flex-direction:column;align-items:stretch;gap:var(--bs-session-timeout-gap)}bs-icon-tile{align-self:flex-start}.bs-session-timeout__glyph,::slotted([slot='icon']){width:24px;height:24px}.bs-session-timeout__heading-group{display:flex;flex-direction:column;gap:6px}.bs-session-timeout__heading{margin:0;font-size:var(--bs-font-size-2xl);font-weight:var(--bs-font-weight-bold);line-height:32px}.bs-session-timeout__description{margin:0;color:var(--bs-session-timeout-color-secondary);font-size:var(--bs-font-size-md);line-height:24px}.bs-session-timeout__countdown{display:flex;flex-direction:column;gap:var(--bs-spacing-100);padding:var(--bs-spacing-200);border-radius:var(--bs-border-radius-100);background:var(--bs-session-timeout-countdown-bg)}.bs-session-timeout__countdown bs-progress-linear{--bs-progress-linear-fill:var(--bs-session-timeout-countdown-fill);--bs-progress-linear-track:var(--bs-session-timeout-countdown-track)}.bs-session-timeout__time-row{display:flex;align-items:flex-end;gap:var(--bs-spacing-100)}.bs-session-timeout__time{font-size:var(--bs-font-size-3xl);font-weight:var(--bs-font-weight-bold);line-height:40px;font-variant-numeric:tabular-nums}.bs-session-timeout__unit{padding-bottom:6px;color:var(--bs-session-timeout-color-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-session-timeout__saved{display:flex;align-items:center;gap:var(--bs-spacing-100);margin:0;color:var(--bs-session-timeout-color-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-session-timeout__saved-icon{flex:none;width:16px;height:16px}.bs-session-timeout__actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--bs-spacing-100)}.bs-session-timeout__actions bs-button,.bs-session-timeout__alternatives bs-button,.bs-session-timeout__block-button{--bs-button-height-md:var(--bs-spacing-550)}.bs-session-timeout__account{display:flex;align-items:center;gap:var(--bs-spacing-200);padding:var(--bs-spacing-150) var(--bs-spacing-200);border:1px solid var(--bs-session-timeout-rule);border-radius:var(--bs-border-radius-100)}.bs-session-timeout__account-text{display:flex;flex-direction:column;gap:var(--bs-spacing-25);min-width:0;line-height:24px}.bs-session-timeout__account-name{font-weight:var(--bs-font-weight-semibold)}.bs-session-timeout__account-email{overflow-wrap:anywhere}.bs-session-timeout__actions--stacked{flex-direction:column;align-items:stretch;justify-content:flex-start}.bs-session-timeout__block-button,.bs-session-timeout__alternatives bs-button,.bs-session-timeout__actions--stacked bs-button{--bs-button-width:100%}.bs-session-timeout__text-button{--bs-button-subtle-color:var(--bs-text-action);--bs-button-height-lg:var(--bs-spacing-600)}.bs-session-timeout__password{display:block;--bs-input-label-font-size:var(--bs-font-size-md);--bs-input-label-font-weight:var(--bs-font-weight-semibold);--bs-input-label-line-height:calc(var(--bs-line-height-body-md) * 1px);margin-bottom:calc(var(--bs-spacing-200) - var(--bs-session-timeout-gap))}.bs-session-timeout__divider{display:flex;align-items:center;gap:var(--bs-spacing-100);align-self:center;width:320px;max-width:100%;color:var(--bs-session-timeout-color-secondary);font-size:var(--bs-font-size-xs);line-height:16px}.bs-session-timeout__rule{flex:1 1 0;height:1px;background:var(--bs-session-timeout-rule)}.bs-session-timeout__alternatives{display:grid;grid-template-columns:repeat(auto-fit, minmax(0, 1fr));gap:var(--bs-spacing-100)}.bs-session-timeout__sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}"}},[769,"bs-session-timeout",{type:[513],heading:[1],headingLevel:[2,"heading-level"],description:[1],hideIcon:[4,"hide-icon"],primaryLabel:[1,"primary-label"],secondaryLabel:[1,"secondary-label"],secondsLeft:[1026,"seconds-left"],totalSeconds:[2,"total-seconds"],countdown:[4],timeLeftLabel:[1,"time-left-label"],secondsLeftLabel:[1,"seconds-left-label"],savedMessage:[1,"saved-message"],accountName:[1,"account-name"],accountEmail:[1,"account-email"],accountInitials:[1,"account-initials"],passwordLabel:[1,"password-label"],passwordError:[1,"password-error"],dividerLabel:[1,"divider-label"],alternatives:[16],cancelLabel:[1,"cancel-label"],password:[32],announcement:[32],initialTotal:[32]},void 0,{countdown:[{onTimerInputsChange:0}],type:[{onTimerInputsChange:0}]}]);function f(s){const t=Math.max(0,Math.trunc(Number(s))||0);return`${Math.floor(t/60)}:${function(s){return(s+"").padStart(2,"0")}(t%60)}`}const v=t=>e=>s("svg",{class:"bs-session-timeout__glyph",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",...e},t),_=v(s("g",null,s("circle",{cx:"12",cy:"13.5",r:"7"}),s("path",{d:"M12 10V13.5L14 15"}),s("path",{d:"M9.5 3.5H14.5"}))),y=v(s("g",null,s("rect",{x:"5",y:"10.5",width:"14",height:"9.5",rx:"1.5"}),s("path",{d:"M8.5 10.5V8A3.5 3.5 0 0 1 15.5 8V10.5"}))),w=v(s("g",null,s("path",{d:"M6 10A6 6 0 0 1 18 10"}),s("path",{d:"M9 20C10 18 10 16 10 13A2 2 0 0 1 14 13C14 16 13.5 18.5 12.5 20.5"}),s("path",{d:"M6 13C6 15.5 5.5 17.5 4.5 19.5"}),s("path",{d:"M18 13C18 15.5 17.5 18 16.5 20"}),s("path",{d:"M12 13C12 15 11.5 17 10.8 18.5"}))),x=v(s("g",null,s("circle",{cx:"8",cy:"15",r:"4"}),s("path",{d:"M11 12L19.5 3.5"}),s("path",{d:"M16 7L19 10"}))),k=()=>s("svg",{class:"bs-session-timeout__saved-icon",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor","stroke-width":"1.3","stroke-linecap":"round","aria-hidden":"true"},s("circle",{cx:"8",cy:"8",r:"6.2"}),s("path",{d:"M8 7.2V11"}),s("path",{d:"M8 5V5.1"})),C={warning:{intent:"warning",heading:"You’ll be signed out soon",description:"For your security, we sign you out after a period without activity.",primary:"Stay signed in",secondary:"Sign out now",glyph:()=>s(_,null)},"signed-out":{intent:"default",heading:"You’ve been signed out",description:"You were inactive for a while. Your work was saved and will be there when you sign in.",primary:"Sign in again",secondary:"Use a different account",glyph:()=>s(y,null)},"confirm-identity":{intent:"default",heading:"Confirm it’s you",description:"This action needs a fresh sign-in.",primary:"Confirm",secondary:"",glyph:()=>s(w,null)}};function L(){"undefined"!=typeof customElements&&["bs-session-timeout","bs-avatar","bs-button","bs-card","bs-chip-informative","bs-icon-button","bs-icon-tile","bs-input","bs-menu","bs-menu-item","bs-progress-linear","bs-ripple"].forEach((s=>{switch(s){case"bs-session-timeout":customElements.get(t(s))||customElements.define(t(s),g);break;case"bs-avatar":customElements.get(t(s))||a();break;case"bs-button":customElements.get(t(s))||n();break;case"bs-card":customElements.get(t(s))||r();break;case"bs-chip-informative":customElements.get(t(s))||c();break;case"bs-icon-button":customElements.get(t(s))||b();break;case"bs-icon-tile":customElements.get(t(s))||l();break;case"bs-input":customElements.get(t(s))||d();break;case"bs-menu":customElements.get(t(s))||u();break;case"bs-menu-item":customElements.get(t(s))||m();break;case"bs-progress-linear":customElements.get(t(s))||p();break;case"bs-ripple":customElements.get(t(s))||h()}}))}L();const E=g,M=L;export{E as BsSessionTimeout,M as defineCustomElement}
1
+ import{h as s,t as e,p as t,H as i,c as o}from"./p-CcAX4o5o.js";import{d as n}from"./p-CALH_mHQ.js";import{d as a}from"./p-wscU7FUD.js";import{d as r}from"./p-mxDA3wKn.js";import{d as c}from"./p-CePOtLtZ.js";import{d as b}from"./p-DHZ_DStJ.js";import{d as l}from"./p-wd9-vGpQ.js";import{d}from"./p-Cz38kNDe.js";import{d as u}from"./p-D3XmFqCQ.js";import{d as m}from"./p-CxNNy2m6.js";import{d as p}from"./p-BR7C-aKy.js";import{d as h}from"./p-DOW-YekD.js";import{d as g}from"./p-DaKBSL2O.js";import{d as f}from"./p-D4W5LcEW.js";const v=t(class extends i{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.bsPrimary=o(this,"bsPrimary"),this.bsSecondary=o(this,"bsSecondary"),this.bsAlternative=o(this,"bsAlternative"),this.bsCancel=o(this,"bsCancel"),this.bsExpire=o(this,"bsExpire")}get el(){return this}type="warning";heading;headingLevel=2;description;hideIcon=!1;primaryLabel;secondaryLabel;secondsLeft=0;totalSeconds=0;countdown=!1;timeLeftLabel="minutes left";secondsLeftLabel="seconds left";savedMessage;accountName;accountEmail;accountInitials;passwordLabel="Password";passwordError;dividerLabel="or";alternatives=[{id:"passkey",label:"Use passkey",icon:"fingerprint"},{id:"bankid",label:"Use BankID",icon:"key"}];cancelLabel="Cancel";bsPrimary;bsSecondary;bsAlternative;bsCancel;bsExpire;password="";announcement="";initialTotal=0;timer;componentWillLoad(){this.initialTotal=this.secondsLeft}componentDidLoad(){this.syncTimer()}disconnectedCallback(){this.stopTimer()}connectedCallback(){void 0===this.timer&&this.el.isConnected&&this.syncTimer()}onTimerInputsChange(){this.syncTimer()}stopTimer(){void 0!==this.timer&&clearInterval(this.timer),this.timer=void 0}syncTimer(){this.stopTimer(),!this.countdown||"warning"!==this.type||this.secondsLeft<=0||(this.timer=setInterval((()=>this.tick()),1e3))}tick(){this.secondsLeft<=0||(this.secondsLeft=this.secondsLeft-1,[60,30,10].includes(this.secondsLeft)&&(this.announcement=`${_(this.secondsLeft)} ${this.secondsLeft>=60?this.timeLeftLabel:this.secondsLeftLabel}`),this.secondsLeft<=0&&(this.stopTimer(),this.bsExpire.emit()))}get defaults(){return E[this.type]??E.warning}renderHeading(e,t){const i=Math.min(6,Math.max(1,Math.trunc(Number(this.headingLevel))||2));return s("div",{class:"bs-session-timeout__heading-group"},s("h"+i,{part:"heading",id:"heading",class:{"bs-session-timeout__heading":!0}},e),t&&s("p",{part:"description",class:"bs-session-timeout__description"},t))}renderWarning(){const e=this.totalSeconds>0?this.totalSeconds:this.initialTotal||this.secondsLeft,t=e>0?Math.max(0,Math.min(100,this.secondsLeft/e*100)):0,i=this.secondsLeft>=60?this.timeLeftLabel:this.secondsLeftLabel;return s("div",{part:"countdown",class:"bs-session-timeout__countdown"},s("div",{class:"bs-session-timeout__time-row"},s("span",{part:"time",class:"bs-session-timeout__time",role:"timer"},_(this.secondsLeft)),s("span",{class:"bs-session-timeout__unit"},i)),s("bs-progress-linear",{type:"determinate",size:"large",value:t,showLabel:!1,ariaLabel:`${_(this.secondsLeft)} ${i}`}))}renderAccount(){const e=this.accountName??"",t=this.accountInitials??e.split(/\s+/).filter(Boolean).slice(0,2).map((s=>s[0].toUpperCase())).join("");return e||this.accountEmail?s("div",{part:"account",class:"bs-session-timeout__account"},s("bs-avatar",{type:"initials",size:"lg",initials:t,ariaLabel:e||this.accountEmail}),s("div",{class:"bs-session-timeout__account-text"},e&&s("span",{class:"bs-session-timeout__account-name"},e),this.accountEmail&&s("span",{class:"bs-session-timeout__account-email"},this.accountEmail))):null}renderConfirm(){const e=this.alternatives??[];return[s("bs-input",{part:"password",class:"bs-session-timeout__password",type:"password",label:this.passwordLabel,value:this.password,error:this.passwordError,onBsInput:s=>this.password=s.detail,onBsChange:s=>this.password=s.detail}),s("bs-button",{part:"primary",class:"bs-session-timeout__block-button",variant:"primary",onClick:()=>this.bsPrimary.emit({password:this.password})},this.primaryLabel??this.defaults.primary),e.length>0&&s("div",{part:"divider",class:"bs-session-timeout__divider",role:"separator"},s("span",{class:"bs-session-timeout__rule"}),s("span",{class:"bs-session-timeout__divider-label"},this.dividerLabel),s("span",{class:"bs-session-timeout__rule"})),e.length>0&&s("div",{part:"alternatives",class:"bs-session-timeout__alternatives"},e.map((e=>s("bs-button",{key:e.id,variant:"outlined",onClick:()=>this.bsAlternative.emit({id:e.id})},s("key"===e.icon?C:k,{slot:"icon"}),e.label)))),this.cancelLabel&&s("bs-button",{part:"cancel",class:"bs-session-timeout__block-button bs-session-timeout__text-button",variant:"subtle",size:"lg",onClick:()=>this.bsCancel.emit()},this.cancelLabel)]}render(){const e=this.defaults,t=this.heading??e.heading,i=this.description??e.description,o=this.primaryLabel??e.primary,n=this.secondaryLabel??e.secondary;return s("bs-card",{key:"62d189825b91f610d76413f186aa5cd46f535553",part:"container",class:"bs-session-timeout",surface:"base",role:"region","aria-labelledby":"heading"},s("div",{key:"658dcf88fb5e6b46184d2bd1d7211f2f3b70cedc",class:"bs-session-timeout__body"},!this.hideIcon&&s("bs-icon-tile",{key:"5355eb08e32eeb42edcccd0e078bdae383aba564",part:"art",intent:e.intent,size:"lg"},s("slot",{key:"cf1169b6f28504292026bd99189fae658001c76b",name:"icon"},e.glyph())),this.renderHeading(t,i),"warning"===this.type&&this.renderWarning(),"warning"===this.type&&this.savedMessage&&s("p",{key:"c5327542b3737b79fc986aed5103db57d699d92b",part:"saved",class:"bs-session-timeout__saved"},s(L,{key:"faa674e2a70d71591efbe4fd7eb94b39851f315d"}),s("span",{key:"399c78c01aafe8d79ec69b28e5451e2a06fba836"},this.savedMessage)),"signed-out"===this.type&&this.renderAccount(),"confirm-identity"===this.type&&this.renderConfirm(),"warning"===this.type&&(o||n)&&s("div",{key:"42987f730c2767ef88b57ae3e28c08db804085de",part:"actions",class:"bs-session-timeout__actions"},n&&s("bs-button",{key:"f758266373ef8f94edd5d53de97397b6498af3ac",part:"secondary",variant:"outlined",onClick:()=>this.bsSecondary.emit()},n),o&&s("bs-button",{key:"eaced5b60ea1a15398c3beea9d8d1522fc60792e",part:"primary",variant:"primary",onClick:()=>this.bsPrimary.emit()},o)),"signed-out"===this.type&&(o||n)&&s("div",{key:"9e731177eb48665ef99c64a564be0ba8340b79f3",part:"actions",class:"bs-session-timeout__actions bs-session-timeout__actions--stacked"},o&&s("bs-button",{key:"f7bfa81c52bc83c0d9e4009c4aecb2584632b95d",part:"primary",class:"bs-session-timeout__block-button",variant:"primary",onClick:()=>this.bsPrimary.emit()},o),n&&s("bs-button",{key:"6fe76eeaefdd48288e2c4821991f12ee12bbe358",part:"secondary",class:"bs-session-timeout__text-button",variant:"subtle",size:"lg",onClick:()=>this.bsSecondary.emit()},n)),s("div",{key:"77bd8a11863bccceaae1ab0103ef81771ca9f1f1",class:"bs-session-timeout__sr-only",role:"status","aria-live":"polite"},this.announcement)))}static get watchers(){return{countdown:[{onTimerInputsChange:0}],type:[{onTimerInputsChange:0}]}}static get style(){return":host{display:block;width:var(--bs-session-timeout-width);min-width:var(--bs-session-timeout-min-width);max-width:var(--bs-session-timeout-max-width);--bs-session-timeout-width:440px;--bs-session-timeout-min-width:380px;--bs-session-timeout-max-width:560px;--bs-session-timeout-bg:var(--bs-paper-bg-base);--bs-session-timeout-radius:var(--bs-border-radius-150);--bs-session-timeout-padding:var(--bs-spacing-200);--bs-session-timeout-gap:var(--bs-spacing-150);--bs-session-timeout-shadow:0 8px 8px var(--bs-elevation-higher);--bs-session-timeout-color:var(--bs-text-default);--bs-session-timeout-color-secondary:var(--bs-text-secondary);--bs-session-timeout-countdown-bg:var(--bs-surface-container);--bs-session-timeout-countdown-fill:var(--bs-color-warning-default);--bs-session-timeout-countdown-track:var(--bs-surface-hover);--bs-session-timeout-rule:var(--bs-border-default)}.bs-session-timeout{--bs-card-bg:var(--bs-session-timeout-bg);--bs-card-radius:var(--bs-session-timeout-radius);--bs-card-padding:var(--bs-session-timeout-padding);--bs-card-shadow:var(--bs-session-timeout-shadow);color:var(--bs-session-timeout-color)}.bs-session-timeout__body{display:flex;flex-direction:column;align-items:stretch;gap:var(--bs-session-timeout-gap)}bs-icon-tile{align-self:flex-start}.bs-session-timeout__glyph,::slotted([slot='icon']){width:24px;height:24px}.bs-session-timeout__heading-group{display:flex;flex-direction:column;gap:6px}.bs-session-timeout__heading{margin:0;font-size:var(--bs-font-size-2xl);font-weight:var(--bs-font-weight-bold);line-height:32px}.bs-session-timeout__description{margin:0;color:var(--bs-session-timeout-color-secondary);font-size:var(--bs-font-size-md);line-height:24px}.bs-session-timeout__countdown{display:flex;flex-direction:column;gap:var(--bs-spacing-100);padding:var(--bs-spacing-200);border-radius:var(--bs-border-radius-100);background:var(--bs-session-timeout-countdown-bg)}.bs-session-timeout__countdown bs-progress-linear{--bs-progress-linear-fill:var(--bs-session-timeout-countdown-fill);--bs-progress-linear-track:var(--bs-session-timeout-countdown-track)}.bs-session-timeout__time-row{display:flex;align-items:flex-end;gap:var(--bs-spacing-100)}.bs-session-timeout__time{font-size:var(--bs-font-size-3xl);font-weight:var(--bs-font-weight-bold);line-height:40px;font-variant-numeric:tabular-nums}.bs-session-timeout__unit{padding-bottom:6px;color:var(--bs-session-timeout-color-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-session-timeout__saved{display:flex;align-items:center;gap:var(--bs-spacing-100);margin:0;color:var(--bs-session-timeout-color-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-session-timeout__saved-icon{flex:none;width:16px;height:16px}.bs-session-timeout__actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--bs-spacing-100)}.bs-session-timeout__actions bs-button,.bs-session-timeout__alternatives bs-button,.bs-session-timeout__block-button{--bs-button-height-md:var(--bs-spacing-550)}.bs-session-timeout__account{display:flex;align-items:center;gap:var(--bs-spacing-200);padding:var(--bs-spacing-150) var(--bs-spacing-200);border:1px solid var(--bs-session-timeout-rule);border-radius:var(--bs-border-radius-100)}.bs-session-timeout__account-text{display:flex;flex-direction:column;gap:var(--bs-spacing-25);min-width:0;line-height:24px}.bs-session-timeout__account-name{font-weight:var(--bs-font-weight-semibold)}.bs-session-timeout__account-email{overflow-wrap:anywhere}.bs-session-timeout__actions--stacked{flex-direction:column;align-items:stretch;justify-content:flex-start}.bs-session-timeout__block-button,.bs-session-timeout__alternatives bs-button,.bs-session-timeout__actions--stacked bs-button{--bs-button-width:100%}.bs-session-timeout__text-button{--bs-button-subtle-color:var(--bs-text-action);--bs-button-height-lg:var(--bs-spacing-600)}.bs-session-timeout__password{display:block;--bs-input-label-font-size:var(--bs-font-size-md);--bs-input-label-font-weight:var(--bs-font-weight-semibold);--bs-input-label-line-height:calc(var(--bs-line-height-body-md) * 1px);margin-bottom:calc(var(--bs-spacing-200) - var(--bs-session-timeout-gap))}.bs-session-timeout__divider{display:flex;align-items:center;gap:var(--bs-spacing-100);align-self:center;width:320px;max-width:100%;color:var(--bs-session-timeout-color-secondary);font-size:var(--bs-font-size-xs);line-height:16px}.bs-session-timeout__rule{flex:1 1 0;height:1px;background:var(--bs-session-timeout-rule)}.bs-session-timeout__alternatives{display:grid;grid-template-columns:repeat(auto-fit, minmax(0, 1fr));gap:var(--bs-spacing-100)}.bs-session-timeout__sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}"}},[769,"bs-session-timeout",{type:[513],heading:[1],headingLevel:[2,"heading-level"],description:[1],hideIcon:[4,"hide-icon"],primaryLabel:[1,"primary-label"],secondaryLabel:[1,"secondary-label"],secondsLeft:[1026,"seconds-left"],totalSeconds:[2,"total-seconds"],countdown:[4],timeLeftLabel:[1,"time-left-label"],secondsLeftLabel:[1,"seconds-left-label"],savedMessage:[1,"saved-message"],accountName:[1,"account-name"],accountEmail:[1,"account-email"],accountInitials:[1,"account-initials"],passwordLabel:[1,"password-label"],passwordError:[1,"password-error"],dividerLabel:[1,"divider-label"],alternatives:[16],cancelLabel:[1,"cancel-label"],password:[32],announcement:[32],initialTotal:[32]},void 0,{countdown:[{onTimerInputsChange:0}],type:[{onTimerInputsChange:0}]}]);function _(s){const e=Math.max(0,Math.trunc(Number(s))||0);return`${Math.floor(e/60)}:${function(s){return(s+"").padStart(2,"0")}(e%60)}`}const y=e=>t=>s("svg",{class:"bs-session-timeout__glyph",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",...t},e),w=y(s("g",null,s("circle",{cx:"12",cy:"13.5",r:"7"}),s("path",{d:"M12 10V13.5L14 15"}),s("path",{d:"M9.5 3.5H14.5"}))),x=y(s("g",null,s("rect",{x:"5",y:"10.5",width:"14",height:"9.5",rx:"1.5"}),s("path",{d:"M8.5 10.5V8A3.5 3.5 0 0 1 15.5 8V10.5"}))),k=y(s("g",null,s("path",{d:"M6 10A6 6 0 0 1 18 10"}),s("path",{d:"M9 20C10 18 10 16 10 13A2 2 0 0 1 14 13C14 16 13.5 18.5 12.5 20.5"}),s("path",{d:"M6 13C6 15.5 5.5 17.5 4.5 19.5"}),s("path",{d:"M18 13C18 15.5 17.5 18 16.5 20"}),s("path",{d:"M12 13C12 15 11.5 17 10.8 18.5"}))),C=y(s("g",null,s("circle",{cx:"8",cy:"15",r:"4"}),s("path",{d:"M11 12L19.5 3.5"}),s("path",{d:"M16 7L19 10"}))),L=()=>s("svg",{class:"bs-session-timeout__saved-icon",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor","stroke-width":"1.3","stroke-linecap":"round","aria-hidden":"true"},s("circle",{cx:"8",cy:"8",r:"6.2"}),s("path",{d:"M8 7.2V11"}),s("path",{d:"M8 5V5.1"})),E={warning:{intent:"warning",heading:"You’ll be signed out soon",description:"For your security, we sign you out after a period without activity.",primary:"Stay signed in",secondary:"Sign out now",glyph:()=>s(w,null)},"signed-out":{intent:"default",heading:"You’ve been signed out",description:"You were inactive for a while. Your work was saved and will be there when you sign in.",primary:"Sign in again",secondary:"Use a different account",glyph:()=>s(x,null)},"confirm-identity":{intent:"default",heading:"Confirm it’s you",description:"This action needs a fresh sign-in.",primary:"Confirm",secondary:"",glyph:()=>s(k,null)}};function M(){"undefined"!=typeof customElements&&["bs-session-timeout","bs-avatar","bs-button","bs-card","bs-chip-informative","bs-icon","bs-icon-button","bs-icon-tile","bs-input","bs-menu","bs-menu-item","bs-progress-linear","bs-ripple","bs-spinner"].forEach((s=>{switch(s){case"bs-session-timeout":customElements.get(e(s))||customElements.define(e(s),v);break;case"bs-avatar":customElements.get(e(s))||n();break;case"bs-button":customElements.get(e(s))||a();break;case"bs-card":customElements.get(e(s))||r();break;case"bs-chip-informative":customElements.get(e(s))||c();break;case"bs-icon":customElements.get(e(s))||b();break;case"bs-icon-button":customElements.get(e(s))||l();break;case"bs-icon-tile":customElements.get(e(s))||d();break;case"bs-input":customElements.get(e(s))||u();break;case"bs-menu":customElements.get(e(s))||m();break;case"bs-menu-item":customElements.get(e(s))||p();break;case"bs-progress-linear":customElements.get(e(s))||h();break;case"bs-ripple":customElements.get(e(s))||g();break;case"bs-spinner":customElements.get(e(s))||f()}}))}M();const z=v,j=M;export{z as BsSessionTimeout,j as defineCustomElement}
@@ -1 +1 @@
1
- import{B as o,d as s}from"./p-DXbcyEgd.js";const p=o,r=s;export{p as BsShortcutRow,r as defineCustomElement}
1
+ import{B as a,d as o}from"./p-DBgafacj.js";const s=a,p=o;export{s as BsShortcutRow,p as defineCustomElement}
@@ -1 +1 @@
1
- import{t as s,p as e,H as i,c as t,h as n}from"./p-B2gx7SZk.js";import{c as a,r as o,p as l}from"./p-BSt9HeTa.js";import{d}from"./p-BfCah-Ij.js";import{d as r}from"./p-DtkTnaOp.js";let p=0;const h=e(class extends i{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.bsClose=t(this,"bsClose")}get el(){return this}open=!1;heading="";side="end";closeLabel="Close";overlay=!1;bsClose;headingId="bs-side-panel-heading-"+ ++p;previouslyFocused=null;panelEl;inertified=[];closing=!1;overlayEl;enterPending=!1;exitPending=!1;motionRun=0;wasRendered=!1;onOpenChange(s){this.motionRun++,a(this.overlayEl,this.panelEl),s?(this.closing=!1,this.enterPending=!0):this.wasRendered&&o(this.el,"bs-side-panel").ms>0&&(this.closing=!0,this.exitPending=!0),s?(this.previouslyFocused=document.activeElement??null,this.applyInert()):(this.restoreInert(),this.previouslyFocused?.focus?.(),this.previouslyFocused=null)}onOverlayChange(){this.open&&(this.restoreInert(),this.applyInert())}connectedCallback(){this.open&&this.applyInert()}disconnectedCallback(){this.restoreInert()}applyInert(){if(!this.overlay||this.inertified.length)return;let s=this.el;for(;s&&s!==document.body;){const e=s.parentElement;if(!e)break;Array.from(e.children).forEach((e=>{e!==s&&e instanceof i&&!e.inert&&(e.inert=!0,this.inertified.push(e))})),s=e}}restoreInert(){this.inertified.forEach((s=>s.inert=!1)),this.inertified=[]}getFocusables(){const s=[],e=s=>{Array.from(s.children).forEach((s=>{s instanceof HTMLSlotElement?s.assignedElements({flatten:!0}).forEach((s=>t(s))):t(s)}))},t=t=>{t instanceof i&&!t.hidden&&!t.inert&&(t.matches('a[href],button:not([disabled]),input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"]),bs-icon-button,[contenteditable="true"]')&&"-1"!==t.getAttribute("tabindex")?s.push(t):e(t.shadowRoot??t))};return this.panelEl&&e(this.panelEl),s}trapTab(s){const e=this.getFocusables();if(!e.length)return s.preventDefault(),void this.panelEl?.focus();const i=e[0],t=e[e.length-1],n=s.composedPath(),a=e.find((s=>n.includes(s))),o=n[0]===this.panelEl;!s.shiftKey||!o&&a!==i&&a?s.shiftKey||a!==t&&(a||o)||(s.preventDefault(),i.focus()):(s.preventDefault(),t.focus())}offscreen(){return"start"===this.side?"translateX(-100%)":"translateX(100%)"}playEnter(){const{ms:s,easing:e}=o(this.el,"bs-side-panel");0!==s&&(l(this.overlayEl,[{opacity:0},{opacity:1}],s,e),l(this.panelEl,[{transform:this.offscreen()},{transform:"none"}],s,e))}playExit(){const{ms:s,easing:e}=o(this.el,"bs-side-panel"),i=++this.motionRun;Promise.all([l(this.overlayEl,[{opacity:1},{opacity:0}],s,e,"forwards"),l(this.panelEl,[{transform:"none"},{transform:this.offscreen()}],s,e,"forwards")]).then((()=>{i===this.motionRun&&(this.closing=!1)}))}componentDidRender(){this.wasRendered=this.open||this.closing,this.open&&this.enterPending?(this.enterPending=!1,this.playEnter()):!this.open&&this.closing&&this.exitPending&&(this.exitPending=!1,this.playExit()),this.open&&this.panelEl&&!this.focusedIn?(this.focusedIn=!0,this.panelEl.focus()):this.open||(this.focusedIn=!1)}focusedIn=!1;close=()=>{this.open=!1,this.bsClose.emit()};onKeyDown=s=>{"Escape"===s.key&&this.open?(s.stopPropagation(),this.close()):"Tab"===s.key&&this.open&&this.trapTab(s)};render(){return this.open||this.closing?n("div",{class:`bs-side-panel bs-side-panel--${this.side} ${this.open?"":"bs-side-panel--closing"}`,onKeyDown:this.onKeyDown},this.overlay&&n("div",{part:"overlay",class:"bs-side-panel__overlay",onClick:this.close,ref:s=>this.overlayEl=s}),n("div",{part:"panel",class:"bs-side-panel__panel",role:"dialog","aria-modal":"true","aria-labelledby":this.headingId,tabindex:"-1",ref:s=>this.panelEl=s},n("div",{part:"header",class:"bs-side-panel__header"},n("h2",{part:"heading",id:this.headingId,class:"bs-side-panel__heading"},this.heading),n("div",{class:"bs-side-panel__actions"},n("slot",{name:"header-actions"}),n("bs-icon-button",{variant:"subtle",ariaLabel:this.closeLabel,onClick:this.close},n("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},n("path",{d:"M6 6L18 18M18 6L6 18",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"}))))),n("div",{part:"body",class:"bs-side-panel__body"},n("slot",null)),n("div",{part:"footer",class:"bs-side-panel__footer"},n("slot",{name:"footer"})))):null}static get watchers(){return{open:[{onOpenChange:0}],overlay:[{onOverlayChange:0}]}}static get style(){return":host{--bs-side-panel-bg:var(--bs-surface-raised);--bs-side-panel-width:calc(var(--bs-scale-1600) * 3);--bs-side-panel-padding:var(--bs-spacing-200);--bs-side-panel-shadow:var(--bs-shadow-md);--bs-side-panel-overlay-bg:var(--bs-surface-overlay);--bs-side-panel-color:var(--bs-text-default);--bs-side-panel-z-index:var(--bs-z-index-modal);--bs-side-panel-duration:var(--bs-duration-slow);--bs-side-panel-easing:var(--bs-easing-standard)}.bs-side-panel{position:fixed;inset:0;z-index:var(--bs-side-panel-z-index);pointer-events:none}.bs-side-panel__overlay{position:absolute;inset:0;background:var(--bs-side-panel-overlay-bg);pointer-events:auto}.bs-side-panel__panel{position:absolute;top:0;bottom:0;display:flex;flex-direction:column;box-sizing:border-box;width:var(--bs-side-panel-width);max-width:100%;background:var(--bs-side-panel-bg);color:var(--bs-side-panel-color);box-shadow:var(--bs-side-panel-shadow);pointer-events:auto;outline:none}.bs-side-panel--start .bs-side-panel__panel{left:0}.bs-side-panel--end .bs-side-panel__panel{right:0}.bs-side-panel__header{display:flex;align-items:center;justify-content:space-between;gap:var(--bs-spacing-100);padding:var(--bs-side-panel-padding)}.bs-side-panel__heading{margin:0;font-size:var(--bs-font-size-lg);font-weight:var(--bs-font-weight-semibold)}.bs-side-panel__actions{display:flex;align-items:center;gap:var(--bs-spacing-100)}.bs-side-panel__body{flex:1;overflow-y:auto;padding:0 var(--bs-side-panel-padding)}.bs-side-panel__footer{padding:var(--bs-side-panel-padding)}.bs-side-panel--closing .bs-side-panel__overlay,.bs-side-panel--closing .bs-side-panel__panel{pointer-events:none}"}},[769,"bs-side-panel",{open:[1540],heading:[1],side:[513],closeLabel:[1,"close-label"],overlay:[516],closing:[32]},void 0,{open:[{onOpenChange:0}],overlay:[{onOverlayChange:0}]}]);function b(){"undefined"!=typeof customElements&&["bs-side-panel","bs-icon-button","bs-ripple"].forEach((e=>{switch(e){case"bs-side-panel":customElements.get(s(e))||customElements.define(s(e),h);break;case"bs-icon-button":customElements.get(s(e))||d();break;case"bs-ripple":customElements.get(s(e))||r()}}))}b();const c=h,g=b;export{c as BsSidePanel,g as defineCustomElement}
1
+ import{t as s,p as e,H as i,c as t,h as n}from"./p-CcAX4o5o.js";import{c as a,r as o,p as l}from"./p-BSt9HeTa.js";import{d}from"./p-wd9-vGpQ.js";import{d as r}from"./p-DaKBSL2O.js";let p=0;const h=e(class extends i{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.bsClose=t(this,"bsClose")}get el(){return this}open=!1;heading="";side="end";closeLabel="Close";overlay=!1;bsClose;headingId="bs-side-panel-heading-"+ ++p;previouslyFocused=null;panelEl;inertified=[];closing=!1;overlayEl;enterPending=!1;exitPending=!1;motionRun=0;wasRendered=!1;onOpenChange(s){this.motionRun++,a(this.overlayEl,this.panelEl),s?(this.closing=!1,this.enterPending=!0):this.wasRendered&&o(this.el,"bs-side-panel").ms>0&&(this.closing=!0,this.exitPending=!0),s?(this.previouslyFocused=document.activeElement??null,this.applyInert()):(this.restoreInert(),this.previouslyFocused?.focus?.(),this.previouslyFocused=null)}onOverlayChange(){this.open&&(this.restoreInert(),this.applyInert())}connectedCallback(){this.open&&this.applyInert()}disconnectedCallback(){this.restoreInert()}applyInert(){if(!this.overlay||this.inertified.length)return;let s=this.el;for(;s&&s!==document.body;){const e=s.parentElement;if(!e)break;Array.from(e.children).forEach((e=>{e!==s&&e instanceof i&&!e.inert&&(e.inert=!0,this.inertified.push(e))})),s=e}}restoreInert(){this.inertified.forEach((s=>s.inert=!1)),this.inertified=[]}getFocusables(){const s=[],e=s=>{Array.from(s.children).forEach((s=>{s instanceof HTMLSlotElement?s.assignedElements({flatten:!0}).forEach((s=>t(s))):t(s)}))},t=t=>{t instanceof i&&!t.hidden&&!t.inert&&(t.matches('a[href],button:not([disabled]),input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"]),bs-icon-button,[contenteditable="true"]')&&"-1"!==t.getAttribute("tabindex")?s.push(t):e(t.shadowRoot??t))};return this.panelEl&&e(this.panelEl),s}trapTab(s){const e=this.getFocusables();if(!e.length)return s.preventDefault(),void this.panelEl?.focus();const i=e[0],t=e[e.length-1],n=s.composedPath(),a=e.find((s=>n.includes(s))),o=n[0]===this.panelEl;!s.shiftKey||!o&&a!==i&&a?s.shiftKey||a!==t&&(a||o)||(s.preventDefault(),i.focus()):(s.preventDefault(),t.focus())}offscreen(){return"start"===this.side?"translateX(-100%)":"translateX(100%)"}playEnter(){const{ms:s,easing:e}=o(this.el,"bs-side-panel");0!==s&&(l(this.overlayEl,[{opacity:0},{opacity:1}],s,e),l(this.panelEl,[{transform:this.offscreen()},{transform:"none"}],s,e))}playExit(){const{ms:s,easing:e}=o(this.el,"bs-side-panel"),i=++this.motionRun;Promise.all([l(this.overlayEl,[{opacity:1},{opacity:0}],s,e,"forwards"),l(this.panelEl,[{transform:"none"},{transform:this.offscreen()}],s,e,"forwards")]).then((()=>{i===this.motionRun&&(this.closing=!1)}))}componentDidRender(){this.wasRendered=this.open||this.closing,this.open&&this.enterPending?(this.enterPending=!1,this.playEnter()):!this.open&&this.closing&&this.exitPending&&(this.exitPending=!1,this.playExit()),this.open&&this.panelEl&&!this.focusedIn?(this.focusedIn=!0,this.panelEl.focus()):this.open||(this.focusedIn=!1)}focusedIn=!1;close=()=>{this.open=!1,this.bsClose.emit()};onKeyDown=s=>{"Escape"===s.key&&this.open?(s.stopPropagation(),this.close()):"Tab"===s.key&&this.open&&this.trapTab(s)};render(){return this.open||this.closing?n("div",{class:`bs-side-panel bs-side-panel--${this.side} ${this.open?"":"bs-side-panel--closing"}`,onKeyDown:this.onKeyDown},this.overlay&&n("div",{part:"overlay",class:"bs-side-panel__overlay",onClick:this.close,ref:s=>this.overlayEl=s}),n("div",{part:"panel",class:"bs-side-panel__panel",role:"dialog","aria-modal":"true","aria-labelledby":this.headingId,tabindex:"-1",ref:s=>this.panelEl=s},n("div",{part:"header",class:"bs-side-panel__header"},n("h2",{part:"heading",id:this.headingId,class:"bs-side-panel__heading"},this.heading),n("div",{class:"bs-side-panel__actions"},n("slot",{name:"header-actions"}),n("bs-icon-button",{variant:"subtle",ariaLabel:this.closeLabel,onClick:this.close},n("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},n("path",{d:"M6 6L18 18M18 6L6 18",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"}))))),n("div",{part:"body",class:"bs-side-panel__body"},n("slot",null)),n("div",{part:"footer",class:"bs-side-panel__footer"},n("slot",{name:"footer"})))):null}static get watchers(){return{open:[{onOpenChange:0}],overlay:[{onOverlayChange:0}]}}static get style(){return":host{--bs-side-panel-bg:var(--bs-surface-raised);--bs-side-panel-width:calc(var(--bs-scale-1600) * 3);--bs-side-panel-padding:var(--bs-spacing-200);--bs-side-panel-shadow:var(--bs-shadow-md);--bs-side-panel-overlay-bg:var(--bs-surface-overlay);--bs-side-panel-color:var(--bs-text-default);--bs-side-panel-z-index:var(--bs-z-index-modal);--bs-side-panel-duration:var(--bs-duration-slow);--bs-side-panel-easing:var(--bs-easing-standard)}.bs-side-panel{position:fixed;inset:0;z-index:var(--bs-side-panel-z-index);pointer-events:none}.bs-side-panel__overlay{position:absolute;inset:0;background:var(--bs-side-panel-overlay-bg);pointer-events:auto}.bs-side-panel__panel{position:absolute;top:0;bottom:0;display:flex;flex-direction:column;box-sizing:border-box;width:var(--bs-side-panel-width);max-width:100%;background:var(--bs-side-panel-bg);color:var(--bs-side-panel-color);box-shadow:var(--bs-side-panel-shadow);pointer-events:auto;outline:none}.bs-side-panel--start .bs-side-panel__panel{left:0}.bs-side-panel--end .bs-side-panel__panel{right:0}.bs-side-panel__header{display:flex;align-items:center;justify-content:space-between;gap:var(--bs-spacing-100);padding:var(--bs-side-panel-padding)}.bs-side-panel__heading{margin:0;font-size:var(--bs-font-size-lg);font-weight:var(--bs-font-weight-semibold)}.bs-side-panel__actions{display:flex;align-items:center;gap:var(--bs-spacing-100)}.bs-side-panel__body{flex:1;overflow-y:auto;padding:0 var(--bs-side-panel-padding)}.bs-side-panel__footer{padding:var(--bs-side-panel-padding)}.bs-side-panel--closing .bs-side-panel__overlay,.bs-side-panel--closing .bs-side-panel__panel{pointer-events:none}"}},[769,"bs-side-panel",{open:[1540],heading:[1],side:[513],closeLabel:[1,"close-label"],overlay:[516],closing:[32]},void 0,{open:[{onOpenChange:0}],overlay:[{onOverlayChange:0}]}]);function b(){"undefined"!=typeof customElements&&["bs-side-panel","bs-icon-button","bs-ripple"].forEach((e=>{switch(e){case"bs-side-panel":customElements.get(s(e))||customElements.define(s(e),h);break;case"bs-icon-button":customElements.get(s(e))||d();break;case"bs-ripple":customElements.get(s(e))||r()}}))}b();const c=h,g=b;export{c as BsSidePanel,g as defineCustomElement}
@@ -1 +1 @@
1
- import{B as o,d as r}from"./p-BQ4rSQDm.js";const s=o,m=r;export{s as BsSkeleton,m as defineCustomElement}
1
+ import{B as o,d as s}from"./p-DK1uv2fu.js";const p=o,r=s;export{p as BsSkeleton,r as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface BsSkipLink extends Components.BsSkipLink, HTMLElement {}
4
+ export const BsSkipLink: {
5
+ prototype: BsSkipLink;
6
+ new (): BsSkipLink;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{t as s,p as i,H as n,c as t,h as e}from"./p-CcAX4o5o.js";const r=i(class extends n{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.bsSkip=t(this,"bsSkip")}get el(){return this}href="#main-content";bsSkip;resolveTarget(){if(!this.href||!this.href.startsWith("#")||this.href.length<2)return null;const s=decodeURIComponent(this.href.slice(1)),i=this.el.getRootNode();return i.getElementById?.(s)??document.getElementById(s)}onClick=s=>{if(s.defaultPrevented||0!==s.button||s.metaKey||s.ctrlKey||s.shiftKey||s.altKey)return;const i=this.resolveTarget();this.bsSkip.emit({href:this.href,target:i}).defaultPrevented?s.preventDefault():i&&(i.hasAttribute("tabindex")||i.matches("a[href],button,input,select,textarea,[contenteditable]")||(i.setAttribute("tabindex","-1"),i.addEventListener("blur",(()=>i.removeAttribute("tabindex")),{once:!0})),i.focus())};render(){return e("a",{key:"7f3d5a4e355caaa5529b5602c048c864a5e7e5a9",part:"link",class:"bs-skip-link",href:this.href,onClick:this.onClick},e("slot",{key:"938c117509a209ac79d99af9cbe8e1eccf7a4c22"},"Skip to main content"))}static get delegatesFocus(){return!0}static get style(){return":host{display:block;height:0;--bs-skip-link-bg:var(--bs-surface-action);--bs-skip-link-color:var(--bs-text-on-action);--bs-skip-link-radius:var(--bs-border-radius-100);--bs-skip-link-padding-x:var(--bs-spacing-200);--bs-skip-link-padding-y:var(--bs-spacing-100);--bs-skip-link-font-size:var(--bs-font-size-md);--bs-skip-link-font-weight:var(--bs-font-weight-semibold);--bs-skip-link-offset:var(--bs-spacing-100);--bs-skip-link-focus-ring-color:var(--bs-border-neutral-focus);--bs-skip-link-z-index:var(--bs-z-index-modal)}.bs-skip-link{position:fixed;inset-block-start:var(--bs-skip-link-offset);inset-inline-start:var(--bs-skip-link-offset);z-index:var(--bs-skip-link-z-index);box-sizing:border-box;padding:var(--bs-skip-link-padding-y) var(--bs-skip-link-padding-x);border-radius:var(--bs-skip-link-radius);background:var(--bs-skip-link-bg);color:var(--bs-skip-link-color);font-family:inherit;font-size:var(--bs-skip-link-font-size);font-weight:var(--bs-skip-link-font-weight);text-decoration:underline;transform:translateY(-300%)}.bs-skip-link:focus,.bs-skip-link:focus-visible{transform:none;outline:2px solid var(--bs-skip-link-focus-ring-color);outline-offset:2px}@media (forced-colors: active){.bs-skip-link{border:1px solid CanvasText}}"}},[785,"bs-skip-link",{href:[1]}]);function o(){"undefined"!=typeof customElements&&["bs-skip-link"].forEach((i=>{"bs-skip-link"===i&&(customElements.get(s(i))||customElements.define(s(i),r))}))}o();const a=r,k=o;export{a as BsSkipLink,k as defineCustomElement}
@@ -1 +1 @@
1
- import{t as s,p as e,H as i,c as t,h as r}from"./p-B2gx7SZk.js";const a=e(class extends i{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.bsChange=t(this,"bsChange"),this.bsRangeChange=t(this,"bsRangeChange"),this.internals=this.attachInternals()}get el(){return this}type="default";name;showLabel=!0;label="Label";min=0;max=100;step=1;value=0;valueStart;valueEnd;segments=10;disabled=!1;startValueLabel="Start value";endValueLabel="End value";ariaLabel=null;bsChange;bsRangeChange;internals;initial={value:0,valueStart:void 0,valueEnd:void 0};componentWillLoad(){this.initial={value:this.value,valueStart:this.valueStart,valueEnd:this.valueEnd},this.syncFormValue()}syncFormValue(){if(this.internals?.setFormValue)if("range"===this.type){const s=new FormData;this.name&&(s.append(this.name,this.effectiveValueStart+""),s.append(this.name,this.effectiveValueEnd+"")),this.internals.setFormValue(s)}else this.internals.setFormValue(this.value+"")}formResetCallback(){this.value=this.initial.value,this.valueStart=this.initial.valueStart,this.valueEnd=this.initial.valueEnd}get effectiveValueStart(){return this.valueStart??this.min}get effectiveValueEnd(){return this.valueEnd??this.max}get effectiveStep(){return"segmented"===this.type&&this.segments>0?(this.max-this.min)/this.segments:this.step}clamp(s){return Number.isNaN(s)?this.min:Math.min(this.max,Math.max(this.min,s))}percent(s){return this.max===this.min?0:(s-this.min)/(this.max-this.min)*100}onInputChange=s=>{if(this.disabled)return;const e=this.clamp(parseFloat(s.target.value));this.value=e,this.bsChange.emit(e)};clampPercent(s){return Number.isNaN(s)?0:Math.min(100,Math.max(0,s))}fromPercent(s){return this.min+this.clampPercent(s)/100*(this.max-this.min)}onPercentFieldChange=s=>{if(this.disabled)return;const e=this.clamp(this.fromPercent(parseFloat(s.target.value)));this.value=e,this.bsChange.emit(e)};onStartInputChange=s=>{if(this.disabled)return;let e=this.clamp(parseFloat(s.target.value));e=Math.min(e,this.effectiveValueEnd),this.valueStart=e,this.bsRangeChange.emit({start:e,end:this.effectiveValueEnd})};onEndInputChange=s=>{if(this.disabled)return;let e=this.clamp(parseFloat(s.target.value));e=Math.max(e,this.effectiveValueStart),this.valueEnd=e,this.bsRangeChange.emit({start:this.effectiveValueStart,end:e})};onStartPercentFieldChange=s=>{if(this.disabled)return;let e=this.clamp(this.fromPercent(parseFloat(s.target.value)));e=Math.min(e,this.effectiveValueEnd),this.valueStart=e,this.bsRangeChange.emit({start:e,end:this.effectiveValueEnd})};onEndPercentFieldChange=s=>{if(this.disabled)return;let e=this.clamp(this.fromPercent(parseFloat(s.target.value)));e=Math.max(e,this.effectiveValueStart),this.valueEnd=e,this.bsRangeChange.emit({start:this.effectiveValueStart,end:e})};renderPercentField(s,e,i){return r("span",{part:"field",class:"bs-slider__field"},r("input",{type:"number",class:"bs-slider__field-input",value:Math.round(this.clampPercent(s)),min:0,max:100,disabled:this.disabled,"aria-label":i,onChange:e}),r("span",{class:"bs-slider__field-suffix","aria-hidden":"true"},"%"))}renderSegmentedTicks(){return"segmented"!==this.type||this.segments<=0?null:r("div",{class:"bs-slider__ticks","aria-hidden":"true"},Array.from({length:this.segments+1}).map(((s,e)=>r("span",{class:"bs-slider__tick "+(0===e?"bs-slider__tick--hidden":"")}))))}renderSingleThumb(){const s=this.percent(this.value);return r("div",{class:"bs-slider__track-wrapper",style:{"--bs-slider-fill-start":"0%","--bs-slider-fill-end":s+"%"}},r("div",{part:"track",class:"bs-slider__track"},r("div",{part:"fill",class:"bs-slider__track-fill"}),this.renderSegmentedTicks()),r("input",{type:"range",part:"control",class:"bs-slider__input",min:this.min,max:this.max,step:this.effectiveStep,value:this.value,disabled:this.disabled,"aria-label":this.ariaLabel??void 0,"aria-labelledby":!this.ariaLabel&&this.showLabel?"bs-slider-label":void 0,onInput:this.onInputChange,onChange:this.onInputChange}),r("span",{class:"bs-slider__tooltip",part:"tooltip",style:{left:s+"%"},"aria-hidden":"true"},Math.round(this.percent(this.value)),"%"))}renderRangeThumbs(){const s=this.effectiveValueStart,e=this.effectiveValueEnd,i=this.percent(s),t=this.percent(e),a=this.percent(s)>50;return r("div",{class:"bs-slider__track-wrapper",style:{"--bs-slider-fill-start":i+"%","--bs-slider-fill-end":t+"%"}},r("div",{part:"track",class:"bs-slider__track"},r("div",{part:"fill",class:"bs-slider__track-fill"})),r("input",{type:"range",part:"control",class:"bs-slider__input bs-slider__input--start",style:{zIndex:a?"4":"3"},min:this.min,max:this.max,step:this.step,value:s,disabled:this.disabled,"aria-label":this.ariaLabel??this.startValueLabel,onInput:this.onStartInputChange,onChange:this.onStartInputChange}),r("input",{type:"range",part:"control",class:"bs-slider__input bs-slider__input--end",style:{zIndex:a?"3":"4"},min:this.min,max:this.max,step:this.step,value:e,disabled:this.disabled,"aria-label":this.ariaLabel?this.ariaLabel+" end":this.endValueLabel,onInput:this.onEndInputChange,onChange:this.onEndInputChange}),r("span",{class:"bs-slider__tooltip bs-slider__tooltip--start",part:"tooltip",style:{left:i+"%"},"aria-hidden":"true"},Math.round(this.percent(s)),"%"),r("span",{class:"bs-slider__tooltip bs-slider__tooltip--end",part:"tooltip",style:{left:t+"%"},"aria-hidden":"true"},Math.round(this.percent(e)),"%"))}render(){const s="range"===this.type,e=["bs-slider",this.disabled?"bs-slider--disabled":""].filter(Boolean).join(" ");return r("div",{key:"78480dc37808335f258e1ad06e8b19ca97aed1b9",class:e},this.showLabel&&r("div",{key:"0fd24602403f811367605786a07d9962c6f3522f",class:"bs-slider__header"},r("span",{key:"dd1c85fa0c4718e381bfef7f00977230d60e9d6c",id:"bs-slider-label",part:"label",class:"bs-slider__label"},this.label),s?r("span",{class:"bs-slider__value-fields"},this.renderPercentField(this.percent(this.effectiveValueStart),this.onStartPercentFieldChange,this.ariaLabel??this.startValueLabel),r("span",{class:"bs-slider__separator"},"–"),this.renderPercentField(this.percent(this.effectiveValueEnd),this.onEndPercentFieldChange,this.ariaLabel?this.ariaLabel+" end":this.endValueLabel)):this.renderPercentField(this.percent(this.value),this.onPercentFieldChange,this.ariaLabel?this.ariaLabel+" value":"Value")),r("div",{key:"6628c6c2332590f3580a759903bfc2b817ec1ef6",class:"bs-slider__row"},this.showLabel&&r("span",{key:"ecda7ec3285991312fbd0fba003294ba94fa8777",part:"bound",class:"bs-slider__bound"},this.min),s?this.renderRangeThumbs():this.renderSingleThumb(),this.showLabel&&r("span",{key:"3db1ee50efbfe1d14aae2609997bbd589710f2d1",part:"bound",class:"bs-slider__bound"},this.max)))}static get delegatesFocus(){return!0}static get formAssociated(){return!0}static get watchers(){return{value:[{syncFormValue:0}],valueStart:[{syncFormValue:0}],valueEnd:[{syncFormValue:0}],type:[{syncFormValue:0}]}}static get style(){return":host{display:block;--bs-slider-gap:var(--bs-spacing-100);--bs-slider-label-color:var(--bs-text-default);--bs-slider-label-color-disabled:var(--bs-text-muted);--bs-slider-label-font-weight:var(--bs-font-weight-semibold);--bs-slider-track-height:var(--bs-spacing-50);--bs-slider-track-radius:var(--bs-border-radius-full);--bs-slider-track-bg:var(--bs-surface-container);--bs-slider-track-bg-disabled:var(--bs-surface-action-disabled);--bs-slider-fill-bg:var(--bs-surface-action);--bs-slider-fill-bg-disabled:var(--bs-surface-on-action-disabled);--bs-slider-knob-hit-size:var(--bs-spacing-600);--bs-slider-knob-size:var(--bs-spacing-300);--bs-slider-knob-bg:var(--bs-surface-action);--bs-slider-knob-color-disabled:var(--bs-surface-on-action-disabled);--bs-slider-focus-ring-color:var(--bs-border-primary-focus);--bs-slider-focus-ring-gap-color:var(--bs-surface-base);--bs-slider-tick-bg:var(--bs-surface-inset);--bs-slider-tooltip-bg:var(--bs-surface-inverse);--bs-slider-tooltip-color:var(--bs-text-inverse);--bs-slider-tooltip-radius:var(--bs-border-radius-50);--bs-slider-field-width:56px;--bs-slider-field-border:var(--bs-input-border-default);--bs-slider-field-bg:var(--bs-input-bg-default);--bs-slider-field-radius:var(--bs-border-radius-100);--bs-slider-field-text:var(--bs-input-text);--bs-slider-field-text-disabled:var(--bs-text-on-disabled);--bs-slider-bound-color:var(--bs-text-default);--bs-slider-bound-color-disabled:var(--bs-text-on-disabled)}.bs-slider{display:flex;flex-direction:column;gap:var(--bs-slider-gap);font-family:inherit}.bs-slider__label{font-size:var(--bs-font-size-sm);font-weight:var(--bs-slider-label-font-weight);color:var(--bs-slider-label-color)}.bs-slider--disabled .bs-slider__label{color:var(--bs-slider-label-color-disabled);font-weight:normal}.bs-slider__header{display:flex;align-items:center;justify-content:space-between;gap:var(--bs-slider-gap)}.bs-slider__value-fields{display:flex;align-items:center;gap:var(--bs-spacing-100)}.bs-slider__row{display:flex;align-items:center;gap:var(--bs-slider-gap)}.bs-slider__bound{color:var(--bs-slider-bound-color);font-size:var(--bs-font-size-md);flex-shrink:0}.bs-slider--disabled .bs-slider__bound{color:var(--bs-slider-bound-color-disabled)}.bs-slider__separator{color:var(--bs-slider-field-text);flex-shrink:0}.bs-slider--disabled .bs-slider__separator{color:var(--bs-slider-field-text-disabled)}.bs-slider__field{box-sizing:border-box;display:flex;align-items:center;gap:var(--bs-spacing-25);flex-shrink:0;width:var(--bs-slider-field-width);border:1px solid var(--bs-slider-field-border);border-radius:var(--bs-slider-field-radius);background:var(--bs-slider-field-bg);padding:var(--bs-spacing-50) var(--bs-spacing-100)}.bs-slider--disabled .bs-slider__field{cursor:not-allowed}.bs-slider__field-input{flex:1;min-width:0;border:none;outline:none;padding:0;background:transparent;color:var(--bs-slider-field-text);font-size:var(--bs-font-size-sm);font-family:inherit;text-align:left;-moz-appearance:textfield}.bs-slider__field-suffix{flex-shrink:0;color:var(--bs-slider-field-text);font-size:var(--bs-font-size-sm)}.bs-slider--disabled .bs-slider__field-suffix{color:var(--bs-slider-field-text-disabled)}.bs-slider__field-input::-webkit-outer-spin-button,.bs-slider__field-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.bs-slider__field-input:disabled{color:var(--bs-slider-field-text-disabled);cursor:not-allowed}.bs-slider__track-wrapper{position:relative;flex:1;min-width:0;height:var(--bs-slider-knob-hit-size);display:flex;align-items:center}.bs-slider__track{position:relative;width:100%;height:var(--bs-slider-track-height);border-radius:var(--bs-slider-track-radius);background:var(--bs-slider-track-bg);overflow:visible;pointer-events:none}.bs-slider--disabled .bs-slider__track{background:var(--bs-slider-track-bg-disabled)}.bs-slider__track-fill{position:absolute;top:0;bottom:0;left:var(--bs-slider-fill-start, 0%);right:calc(100% - var(--bs-slider-fill-end, 0%));border-radius:var(--bs-slider-track-radius);background:var(--bs-slider-fill-bg)}.bs-slider--disabled .bs-slider__track-fill{background:var(--bs-slider-fill-bg-disabled)}.bs-slider__ticks{position:absolute;top:50%;left:0;width:100%;height:0;display:flex;justify-content:space-between;transform:translateY(-50%);pointer-events:none}.bs-slider__tick{width:2px;height:var(--bs-spacing-50);background:var(--bs-slider-tick-bg)}.bs-slider__tick--hidden{opacity:0}.bs-slider__input{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;appearance:none;background:transparent;cursor:pointer}.bs-slider--disabled .bs-slider__input{cursor:not-allowed}.bs-slider__input::-webkit-slider-runnable-track{background:transparent}.bs-slider__input::-moz-range-track{background:transparent}.bs-slider__input::-webkit-slider-thumb{appearance:none;box-sizing:border-box;width:var(--bs-slider-knob-size);height:var(--bs-slider-knob-size);border-radius:var(--bs-border-radius-full);border:none;background:var(--bs-slider-knob-bg);cursor:pointer}.bs-slider__input::-moz-range-thumb{box-sizing:border-box;width:var(--bs-slider-knob-size);height:var(--bs-slider-knob-size);border-radius:var(--bs-border-radius-full);border:none;background:var(--bs-slider-knob-bg);cursor:pointer}.bs-slider--disabled .bs-slider__input::-webkit-slider-thumb{cursor:not-allowed;background:var(--bs-slider-knob-color-disabled)}.bs-slider--disabled .bs-slider__input::-moz-range-thumb{cursor:not-allowed;background:var(--bs-slider-knob-color-disabled)}.bs-slider__input--start,.bs-slider__input--end{pointer-events:none}.bs-slider__input--start::-webkit-slider-thumb,.bs-slider__input--end::-webkit-slider-thumb{pointer-events:auto}.bs-slider__input--start::-moz-range-thumb,.bs-slider__input--end::-moz-range-thumb{pointer-events:auto}.bs-slider__input:focus-visible::-webkit-slider-thumb,.bs-slider__input:active::-webkit-slider-thumb{box-shadow:0 0 0 2px var(--bs-slider-focus-ring-gap-color), 0 0 0 4px var(--bs-slider-focus-ring-color)}.bs-slider__input:focus-visible::-moz-range-thumb,.bs-slider__input:active::-moz-range-thumb{box-shadow:0 0 0 2px var(--bs-slider-focus-ring-gap-color), 0 0 0 4px var(--bs-slider-focus-ring-color)}.bs-slider__tooltip{position:absolute;bottom:calc(50% + 38px);transform:translateX(-50%);padding:var(--bs-spacing-25) var(--bs-spacing-100);background:var(--bs-slider-tooltip-bg);color:var(--bs-slider-tooltip-color);border-radius:var(--bs-slider-tooltip-radius);font-size:var(--bs-font-size-xs);white-space:nowrap;opacity:0;pointer-events:none;transition:opacity 0.1s ease}.bs-slider__tooltip::after{content:'';position:absolute;top:100%;left:50%;transform:translateX(-50%);width:8px;height:8px;background:var(--bs-slider-tooltip-bg);clip-path:polygon(50% 100%, 0% 0%, 100% 0%)}.bs-slider__input:focus-visible~.bs-slider__tooltip,.bs-slider__input:active~.bs-slider__tooltip{opacity:1}.bs-slider__input--start:focus-visible~.bs-slider__tooltip--end,.bs-slider__input--start:active~.bs-slider__tooltip--end,.bs-slider__input--end:focus-visible~.bs-slider__tooltip--start,.bs-slider__input--end:active~.bs-slider__tooltip--start{opacity:0}"}},[593,"bs-slider",{type:[1],name:[513],showLabel:[4,"show-label"],label:[1],min:[2],max:[2],step:[2],value:[1026],valueStart:[1026,"value-start"],valueEnd:[1026,"value-end"],segments:[2],disabled:[516],startValueLabel:[1,"start-value-label"],endValueLabel:[1,"end-value-label"],ariaLabel:[1,"aria-label"]},void 0,{value:[{syncFormValue:0}],valueStart:[{syncFormValue:0}],valueEnd:[{syncFormValue:0}],type:[{syncFormValue:0}]}]);function l(){"undefined"!=typeof customElements&&["bs-slider"].forEach((e=>{"bs-slider"===e&&(customElements.get(s(e))||customElements.define(s(e),a))}))}l();const d=a,b=l;export{d as BsSlider,b as defineCustomElement}
1
+ import{t as s,p as e,H as i,c as t,h as r}from"./p-CcAX4o5o.js";const a=e(class extends i{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.bsChange=t(this,"bsChange"),this.bsRangeChange=t(this,"bsRangeChange"),this.internals=this.attachInternals()}get el(){return this}type="default";name;showLabel=!0;label="Label";min=0;max=100;step=1;value=0;valueStart;valueEnd;segments=10;disabled=!1;startValueLabel="Start value";endValueLabel="End value";ariaLabel=null;bsChange;bsRangeChange;internals;initial={value:0,valueStart:void 0,valueEnd:void 0};componentWillLoad(){this.initial={value:this.value,valueStart:this.valueStart,valueEnd:this.valueEnd},this.syncFormValue()}syncFormValue(){if(this.internals?.setFormValue)if("range"===this.type){const s=new FormData;this.name&&(s.append(this.name,this.effectiveValueStart+""),s.append(this.name,this.effectiveValueEnd+"")),this.internals.setFormValue(s)}else this.internals.setFormValue(this.value+"")}formResetCallback(){this.value=this.initial.value,this.valueStart=this.initial.valueStart,this.valueEnd=this.initial.valueEnd}get effectiveValueStart(){return this.valueStart??this.min}get effectiveValueEnd(){return this.valueEnd??this.max}get effectiveStep(){return"segmented"===this.type&&this.segments>0?(this.max-this.min)/this.segments:this.step}clamp(s){return Number.isNaN(s)?this.min:Math.min(this.max,Math.max(this.min,s))}percent(s){return this.max===this.min?0:(s-this.min)/(this.max-this.min)*100}onInputChange=s=>{if(this.disabled)return;const e=this.clamp(parseFloat(s.target.value));this.value=e,this.bsChange.emit(e)};clampPercent(s){return Number.isNaN(s)?0:Math.min(100,Math.max(0,s))}fromPercent(s){return this.min+this.clampPercent(s)/100*(this.max-this.min)}onPercentFieldChange=s=>{if(this.disabled)return;const e=this.clamp(this.fromPercent(parseFloat(s.target.value)));this.value=e,this.bsChange.emit(e)};onStartInputChange=s=>{if(this.disabled)return;let e=this.clamp(parseFloat(s.target.value));e=Math.min(e,this.effectiveValueEnd),this.valueStart=e,this.bsRangeChange.emit({start:e,end:this.effectiveValueEnd})};onEndInputChange=s=>{if(this.disabled)return;let e=this.clamp(parseFloat(s.target.value));e=Math.max(e,this.effectiveValueStart),this.valueEnd=e,this.bsRangeChange.emit({start:this.effectiveValueStart,end:e})};onStartPercentFieldChange=s=>{if(this.disabled)return;let e=this.clamp(this.fromPercent(parseFloat(s.target.value)));e=Math.min(e,this.effectiveValueEnd),this.valueStart=e,this.bsRangeChange.emit({start:e,end:this.effectiveValueEnd})};onEndPercentFieldChange=s=>{if(this.disabled)return;let e=this.clamp(this.fromPercent(parseFloat(s.target.value)));e=Math.max(e,this.effectiveValueStart),this.valueEnd=e,this.bsRangeChange.emit({start:this.effectiveValueStart,end:e})};renderPercentField(s,e,i){return r("span",{part:"field",class:"bs-slider__field"},r("input",{type:"number",class:"bs-slider__field-input",value:Math.round(this.clampPercent(s)),min:0,max:100,disabled:this.disabled,"aria-label":i,onChange:e}),r("span",{class:"bs-slider__field-suffix","aria-hidden":"true"},"%"))}renderSegmentedTicks(){return"segmented"!==this.type||this.segments<=0?null:r("div",{class:"bs-slider__ticks","aria-hidden":"true"},Array.from({length:this.segments+1}).map(((s,e)=>r("span",{class:"bs-slider__tick "+(0===e?"bs-slider__tick--hidden":"")}))))}renderSingleThumb(){const s=this.percent(this.value);return r("div",{class:"bs-slider__track-wrapper",style:{"--bs-slider-fill-start":"0%","--bs-slider-fill-end":s+"%"}},r("div",{part:"track",class:"bs-slider__track"},r("div",{part:"fill",class:"bs-slider__track-fill"}),this.renderSegmentedTicks()),r("input",{type:"range",part:"control",class:"bs-slider__input",min:this.min,max:this.max,step:this.effectiveStep,value:this.value,disabled:this.disabled,"aria-label":this.ariaLabel??void 0,"aria-labelledby":!this.ariaLabel&&this.showLabel?"bs-slider-label":void 0,onInput:this.onInputChange,onChange:this.onInputChange}),r("span",{class:"bs-slider__tooltip",part:"tooltip",style:{left:s+"%"},"aria-hidden":"true"},Math.round(this.percent(this.value)),"%"))}renderRangeThumbs(){const s=this.effectiveValueStart,e=this.effectiveValueEnd,i=this.percent(s),t=this.percent(e),a=this.percent(s)>50;return r("div",{class:"bs-slider__track-wrapper",style:{"--bs-slider-fill-start":i+"%","--bs-slider-fill-end":t+"%"}},r("div",{part:"track",class:"bs-slider__track"},r("div",{part:"fill",class:"bs-slider__track-fill"})),r("input",{type:"range",part:"control",class:"bs-slider__input bs-slider__input--start",style:{zIndex:a?"4":"3"},min:this.min,max:this.max,step:this.step,value:s,disabled:this.disabled,"aria-label":this.ariaLabel??this.startValueLabel,onInput:this.onStartInputChange,onChange:this.onStartInputChange}),r("input",{type:"range",part:"control",class:"bs-slider__input bs-slider__input--end",style:{zIndex:a?"3":"4"},min:this.min,max:this.max,step:this.step,value:e,disabled:this.disabled,"aria-label":this.ariaLabel?this.ariaLabel+" end":this.endValueLabel,onInput:this.onEndInputChange,onChange:this.onEndInputChange}),r("span",{class:"bs-slider__tooltip bs-slider__tooltip--start",part:"tooltip",style:{left:i+"%"},"aria-hidden":"true"},Math.round(this.percent(s)),"%"),r("span",{class:"bs-slider__tooltip bs-slider__tooltip--end",part:"tooltip",style:{left:t+"%"},"aria-hidden":"true"},Math.round(this.percent(e)),"%"))}render(){const s="range"===this.type,e=["bs-slider",this.disabled?"bs-slider--disabled":""].filter(Boolean).join(" ");return r("div",{key:"242e99440bf989ab9e8370772a415ef98ea4df97",class:e},this.showLabel&&r("div",{key:"23063ed9dd2dfefc2df1ae8794fdb6d54195ee39",class:"bs-slider__header"},r("span",{key:"15debc72803ed291564d1573179e9e30fd4a40f6",id:"bs-slider-label",part:"label",class:"bs-slider__label"},this.label),s?r("span",{class:"bs-slider__value-fields"},this.renderPercentField(this.percent(this.effectiveValueStart),this.onStartPercentFieldChange,this.ariaLabel??this.startValueLabel),r("span",{class:"bs-slider__separator"},"–"),this.renderPercentField(this.percent(this.effectiveValueEnd),this.onEndPercentFieldChange,this.ariaLabel?this.ariaLabel+" end":this.endValueLabel)):this.renderPercentField(this.percent(this.value),this.onPercentFieldChange,this.ariaLabel?this.ariaLabel+" value":"Value")),r("div",{key:"b975a8200846dbd43622473d3e62255c805e0359",class:"bs-slider__row"},this.showLabel&&r("span",{key:"c82b225aa14924963005a578fdaf0ab1accf8c2b",part:"bound",class:"bs-slider__bound"},this.min),s?this.renderRangeThumbs():this.renderSingleThumb(),this.showLabel&&r("span",{key:"5e85c40cb85d2b71591020249cac4d5ae0c300a4",part:"bound",class:"bs-slider__bound"},this.max)))}static get delegatesFocus(){return!0}static get formAssociated(){return!0}static get watchers(){return{value:[{syncFormValue:0}],valueStart:[{syncFormValue:0}],valueEnd:[{syncFormValue:0}],type:[{syncFormValue:0}]}}static get style(){return":host{display:block;--bs-slider-gap:var(--bs-spacing-100);--bs-slider-label-color:var(--bs-text-default);--bs-slider-label-color-disabled:var(--bs-text-muted);--bs-slider-label-font-weight:var(--bs-font-weight-semibold);--bs-slider-track-height:var(--bs-spacing-50);--bs-slider-track-radius:var(--bs-border-radius-full);--bs-slider-track-bg:var(--bs-surface-container);--bs-slider-track-bg-disabled:var(--bs-surface-action-disabled);--bs-slider-fill-bg:var(--bs-surface-action);--bs-slider-fill-bg-disabled:var(--bs-surface-on-action-disabled);--bs-slider-knob-hit-size:var(--bs-spacing-600);--bs-slider-knob-size:var(--bs-spacing-300);--bs-slider-knob-bg:var(--bs-surface-action);--bs-slider-knob-color-disabled:var(--bs-surface-on-action-disabled);--bs-slider-focus-ring-color:var(--bs-border-primary-focus);--bs-slider-focus-ring-gap-color:var(--bs-surface-base);--bs-slider-tick-bg:var(--bs-surface-inset);--bs-slider-tooltip-bg:var(--bs-surface-inverse);--bs-slider-tooltip-color:var(--bs-text-inverse);--bs-slider-tooltip-radius:var(--bs-border-radius-50);--bs-slider-field-width:56px;--bs-slider-field-border:var(--bs-input-border-default);--bs-slider-field-bg:var(--bs-input-bg-default);--bs-slider-field-radius:var(--bs-border-radius-100);--bs-slider-field-text:var(--bs-input-text);--bs-slider-field-text-disabled:var(--bs-text-on-disabled);--bs-slider-bound-color:var(--bs-text-default);--bs-slider-bound-color-disabled:var(--bs-text-on-disabled)}.bs-slider{display:flex;flex-direction:column;gap:var(--bs-slider-gap);font-family:inherit}.bs-slider__label{font-size:var(--bs-font-size-sm);font-weight:var(--bs-slider-label-font-weight);color:var(--bs-slider-label-color)}.bs-slider--disabled .bs-slider__label{color:var(--bs-slider-label-color-disabled);font-weight:normal}.bs-slider__header{display:flex;align-items:center;justify-content:space-between;gap:var(--bs-slider-gap)}.bs-slider__value-fields{display:flex;align-items:center;gap:var(--bs-spacing-100)}.bs-slider__row{display:flex;align-items:center;gap:var(--bs-slider-gap)}.bs-slider__bound{color:var(--bs-slider-bound-color);font-size:var(--bs-font-size-md);flex-shrink:0}.bs-slider--disabled .bs-slider__bound{color:var(--bs-slider-bound-color-disabled)}.bs-slider__separator{color:var(--bs-slider-field-text);flex-shrink:0}.bs-slider--disabled .bs-slider__separator{color:var(--bs-slider-field-text-disabled)}.bs-slider__field{box-sizing:border-box;display:flex;align-items:center;gap:var(--bs-spacing-25);flex-shrink:0;width:var(--bs-slider-field-width);border:1px solid var(--bs-slider-field-border);border-radius:var(--bs-slider-field-radius);background:var(--bs-slider-field-bg);padding:var(--bs-spacing-50) var(--bs-spacing-100)}.bs-slider--disabled .bs-slider__field{cursor:not-allowed}.bs-slider__field-input{flex:1;min-width:0;border:none;outline:none;padding:0;background:transparent;color:var(--bs-slider-field-text);font-size:var(--bs-font-size-sm);font-family:inherit;text-align:left;-moz-appearance:textfield}.bs-slider__field-suffix{flex-shrink:0;color:var(--bs-slider-field-text);font-size:var(--bs-font-size-sm)}.bs-slider--disabled .bs-slider__field-suffix{color:var(--bs-slider-field-text-disabled)}.bs-slider__field-input::-webkit-outer-spin-button,.bs-slider__field-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.bs-slider__field-input:disabled{color:var(--bs-slider-field-text-disabled);cursor:not-allowed}.bs-slider__track-wrapper{position:relative;flex:1;min-width:0;height:var(--bs-slider-knob-hit-size);display:flex;align-items:center}.bs-slider__track{position:relative;width:100%;height:var(--bs-slider-track-height);border-radius:var(--bs-slider-track-radius);background:var(--bs-slider-track-bg);overflow:visible;pointer-events:none}.bs-slider--disabled .bs-slider__track{background:var(--bs-slider-track-bg-disabled)}.bs-slider__track-fill{position:absolute;top:0;bottom:0;left:var(--bs-slider-fill-start, 0%);right:calc(100% - var(--bs-slider-fill-end, 0%));border-radius:var(--bs-slider-track-radius);background:var(--bs-slider-fill-bg)}.bs-slider--disabled .bs-slider__track-fill{background:var(--bs-slider-fill-bg-disabled)}.bs-slider__ticks{position:absolute;top:50%;left:0;width:100%;height:var(--bs-slider-knob-size);display:flex;justify-content:space-between;transform:translateY(-50%);pointer-events:none}.bs-slider__tick{width:2px;height:100%;background:var(--bs-slider-tick-bg)}.bs-slider__tick--hidden{opacity:0}.bs-slider__input{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;appearance:none;background:transparent;cursor:pointer}.bs-slider--disabled .bs-slider__input{cursor:not-allowed}.bs-slider__input::-webkit-slider-runnable-track{background:transparent}.bs-slider__input::-moz-range-track{background:transparent}.bs-slider__input::-webkit-slider-thumb{appearance:none;box-sizing:border-box;width:var(--bs-slider-knob-size);height:var(--bs-slider-knob-size);border-radius:var(--bs-border-radius-full);border:none;background:var(--bs-slider-knob-bg);cursor:pointer}.bs-slider__input::-moz-range-thumb{box-sizing:border-box;width:var(--bs-slider-knob-size);height:var(--bs-slider-knob-size);border-radius:var(--bs-border-radius-full);border:none;background:var(--bs-slider-knob-bg);cursor:pointer}.bs-slider--disabled .bs-slider__input::-webkit-slider-thumb{cursor:not-allowed;background:var(--bs-slider-knob-color-disabled)}.bs-slider--disabled .bs-slider__input::-moz-range-thumb{cursor:not-allowed;background:var(--bs-slider-knob-color-disabled)}.bs-slider__input--start,.bs-slider__input--end{pointer-events:none}.bs-slider__input--start::-webkit-slider-thumb,.bs-slider__input--end::-webkit-slider-thumb{pointer-events:auto}.bs-slider__input--start::-moz-range-thumb,.bs-slider__input--end::-moz-range-thumb{pointer-events:auto}.bs-slider__input:focus-visible::-webkit-slider-thumb,.bs-slider__input:active::-webkit-slider-thumb{box-shadow:0 0 0 2px var(--bs-slider-focus-ring-gap-color), 0 0 0 4px var(--bs-slider-focus-ring-color)}.bs-slider__input:focus-visible::-moz-range-thumb,.bs-slider__input:active::-moz-range-thumb{box-shadow:0 0 0 2px var(--bs-slider-focus-ring-gap-color), 0 0 0 4px var(--bs-slider-focus-ring-color)}.bs-slider__tooltip{position:absolute;bottom:calc(50% + 38px);transform:translateX(-50%);padding:var(--bs-spacing-25) var(--bs-spacing-100);background:var(--bs-slider-tooltip-bg);color:var(--bs-slider-tooltip-color);border-radius:var(--bs-slider-tooltip-radius);font-size:var(--bs-font-size-xs);white-space:nowrap;opacity:0;pointer-events:none;transition:opacity 0.1s ease}.bs-slider__tooltip::after{content:'';position:absolute;top:100%;left:50%;transform:translateX(-50%);width:8px;height:8px;background:var(--bs-slider-tooltip-bg);clip-path:polygon(50% 100%, 0% 0%, 100% 0%)}.bs-slider__input:focus-visible~.bs-slider__tooltip,.bs-slider__input:active~.bs-slider__tooltip{opacity:1}.bs-slider__input--start:focus-visible~.bs-slider__tooltip--end,.bs-slider__input--start:active~.bs-slider__tooltip--end,.bs-slider__input--end:focus-visible~.bs-slider__tooltip--start,.bs-slider__input--end:active~.bs-slider__tooltip--start{opacity:0}"}},[593,"bs-slider",{type:[1],name:[513],showLabel:[4,"show-label"],label:[1],min:[2],max:[2],step:[2],value:[1026],valueStart:[1026,"value-start"],valueEnd:[1026,"value-end"],segments:[2],disabled:[516],startValueLabel:[1,"start-value-label"],endValueLabel:[1,"end-value-label"],ariaLabel:[1,"aria-label"]},void 0,{value:[{syncFormValue:0}],valueStart:[{syncFormValue:0}],valueEnd:[{syncFormValue:0}],type:[{syncFormValue:0}]}]);function l(){"undefined"!=typeof customElements&&["bs-slider"].forEach((e=>{"bs-slider"===e&&(customElements.get(s(e))||customElements.define(s(e),a))}))}l();const d=a,b=l;export{d as BsSlider,b as defineCustomElement}
@@ -1 +1 @@
1
- import{B as o,d as s}from"./p-BIxcCDgl.js";const p=o,r=s;export{p as BsSnackbar,r as defineCustomElement}
1
+ import{B as o,d as p}from"./p-abyVFrPp.js";const r=o,s=p;export{r as BsSnackbar,s as defineCustomElement}
@@ -1 +1 @@
1
- import{B as o,d as s}from"./p-BWRkbt0f.js";const t=o,p=s;export{t as BsSourceLink,p as defineCustomElement}
1
+ import{B as o,d as r}from"./p-KiyJJwzr.js";const s=o,p=r;export{s as BsSourceLink,p as defineCustomElement}
@@ -1 +1 @@
1
- import{B as o,d as s}from"./p-Y5FyLR8G.js";const p=o,r=s;export{p as BsSpinner,r as defineCustomElement}
1
+ import{B as o,d as s}from"./p-D4W5LcEW.js";const p=o,r=s;export{p as BsSpinner,r as defineCustomElement}