@brandsync/wc 1.22.0 → 1.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (624) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
  3. package/dist/brandsync-wc/{p-87b91d38.entry.js → p-02551a4b.entry.js} +1 -1
  4. package/dist/brandsync-wc/{p-60e4e07a.entry.js → p-041c912e.entry.js} +1 -1
  5. package/dist/brandsync-wc/{p-2c167f83.entry.js → p-048b28cb.entry.js} +1 -1
  6. package/dist/brandsync-wc/{p-ad53d283.entry.js → p-0719182b.entry.js} +1 -1
  7. package/dist/brandsync-wc/{p-e8fe79bc.entry.js → p-08a93f66.entry.js} +1 -1
  8. package/dist/brandsync-wc/{p-8a85e144.entry.js → p-0aa93d07.entry.js} +1 -1
  9. package/dist/brandsync-wc/{p-3a13747b.entry.js → p-0b50aab6.entry.js} +1 -1
  10. package/dist/brandsync-wc/{p-214b32bb.entry.js → p-11beaea5.entry.js} +1 -1
  11. package/dist/brandsync-wc/{p-37da7465.entry.js → p-18eab08e.entry.js} +1 -1
  12. package/dist/brandsync-wc/{p-851c1498.entry.js → p-1f38c837.entry.js} +1 -1
  13. package/dist/brandsync-wc/{p-ca71e180.entry.js → p-2013d8ff.entry.js} +1 -1
  14. package/dist/brandsync-wc/{p-0ce29fc2.entry.js → p-20f0bd1f.entry.js} +1 -1
  15. package/dist/brandsync-wc/{p-6aa3dcef.entry.js → p-2561bdeb.entry.js} +1 -1
  16. package/dist/brandsync-wc/p-29dd1cde.entry.js +1 -0
  17. package/dist/brandsync-wc/{p-da091255.entry.js → p-2bcc115c.entry.js} +1 -1
  18. package/dist/brandsync-wc/{p-b90c8b7d.entry.js → p-2becf801.entry.js} +1 -1
  19. package/dist/brandsync-wc/{p-7f50ae81.entry.js → p-32631906.entry.js} +1 -1
  20. package/dist/brandsync-wc/{p-0be65af0.entry.js → p-36e089ba.entry.js} +1 -1
  21. package/dist/brandsync-wc/{p-9988ebab.entry.js → p-37cf0842.entry.js} +1 -1
  22. package/dist/brandsync-wc/{p-bf8da1b5.entry.js → p-3d054e83.entry.js} +1 -1
  23. package/dist/brandsync-wc/{p-4ff5bc4b.entry.js → p-3f189709.entry.js} +1 -1
  24. package/dist/brandsync-wc/{p-9c353a03.entry.js → p-3f8357bd.entry.js} +1 -1
  25. package/dist/brandsync-wc/{p-b145997c.entry.js → p-3fcb9e9f.entry.js} +1 -1
  26. package/dist/brandsync-wc/{p-9d90d3b8.entry.js → p-4105a4f3.entry.js} +1 -1
  27. package/dist/brandsync-wc/{p-020a274b.entry.js → p-4886d77f.entry.js} +1 -1
  28. package/dist/brandsync-wc/{p-cc664465.entry.js → p-48a15e87.entry.js} +1 -1
  29. package/dist/brandsync-wc/{p-d4caa814.entry.js → p-4cd94d94.entry.js} +1 -1
  30. package/dist/brandsync-wc/{p-b6350eab.entry.js → p-5126682b.entry.js} +1 -1
  31. package/dist/brandsync-wc/{p-0b92d0d7.entry.js → p-527b174e.entry.js} +1 -1
  32. package/dist/brandsync-wc/{p-6b11aebb.entry.js → p-55b85126.entry.js} +1 -1
  33. package/dist/brandsync-wc/{p-5399e163.entry.js → p-5a34d5d2.entry.js} +1 -1
  34. package/dist/brandsync-wc/p-5d2d5ffd.entry.js +1 -0
  35. package/dist/brandsync-wc/{p-75ec385a.entry.js → p-5db462ae.entry.js} +1 -1
  36. package/dist/brandsync-wc/{p-e90e4991.entry.js → p-688fc320.entry.js} +1 -1
  37. package/dist/brandsync-wc/{p-f43615f7.entry.js → p-6cd1deee.entry.js} +1 -1
  38. package/dist/brandsync-wc/{p-06a5fe99.entry.js → p-7197c874.entry.js} +1 -1
  39. package/dist/brandsync-wc/{p-bcb09ba4.entry.js → p-73cbb0cb.entry.js} +1 -1
  40. package/dist/brandsync-wc/{p-6d18ba79.entry.js → p-78af4542.entry.js} +1 -1
  41. package/dist/brandsync-wc/{p-1bd3756c.entry.js → p-7a1ca36c.entry.js} +1 -1
  42. package/dist/brandsync-wc/{p-0a0798c4.entry.js → p-7ce68b44.entry.js} +1 -1
  43. package/dist/brandsync-wc/{p-c36f68a2.entry.js → p-7f4ca57d.entry.js} +1 -1
  44. package/dist/brandsync-wc/{p-ee4f3b3d.entry.js → p-83a6dd91.entry.js} +1 -1
  45. package/dist/brandsync-wc/{p-51e9d375.entry.js → p-8738e976.entry.js} +1 -1
  46. package/dist/brandsync-wc/{p-1c2402eb.entry.js → p-87a76b77.entry.js} +1 -1
  47. package/dist/brandsync-wc/{p-9a45899c.entry.js → p-8fd4c240.entry.js} +1 -1
  48. package/dist/brandsync-wc/{p-e0d47019.entry.js → p-932162a6.entry.js} +1 -1
  49. package/dist/brandsync-wc/{p-6fcfd7d7.entry.js → p-93b6e9d2.entry.js} +1 -1
  50. package/dist/brandsync-wc/{p-bde099fb.entry.js → p-9e0e1c2b.entry.js} +1 -1
  51. package/dist/brandsync-wc/{p-697de2b2.entry.js → p-9fe002aa.entry.js} +1 -1
  52. package/dist/brandsync-wc/{p-39afd9b8.entry.js → p-a17bbde9.entry.js} +1 -1
  53. package/dist/brandsync-wc/{p-c4026551.entry.js → p-a386ce3d.entry.js} +1 -1
  54. package/dist/brandsync-wc/{p-4907f66e.entry.js → p-a88e76e7.entry.js} +1 -1
  55. package/dist/brandsync-wc/{p-fca95aae.entry.js → p-adc3b508.entry.js} +1 -1
  56. package/dist/brandsync-wc/{p-3b3a9587.entry.js → p-af178531.entry.js} +1 -1
  57. package/dist/brandsync-wc/{p-4a8c2eca.entry.js → p-b0e91068.entry.js} +1 -1
  58. package/dist/brandsync-wc/{p-9301f01e.entry.js → p-b104ecea.entry.js} +1 -1
  59. package/dist/brandsync-wc/{p-682b9f3e.entry.js → p-b175f945.entry.js} +1 -1
  60. package/dist/brandsync-wc/{p-83977d40.entry.js → p-b399bd6b.entry.js} +1 -1
  61. package/dist/brandsync-wc/{p-181a8372.entry.js → p-b52df3da.entry.js} +1 -1
  62. package/dist/brandsync-wc/{p-645e1a78.entry.js → p-b777bda2.entry.js} +1 -1
  63. package/dist/brandsync-wc/{p-d38394ce.entry.js → p-b89560ea.entry.js} +1 -1
  64. package/dist/brandsync-wc/{p-7f3c8416.entry.js → p-b920cb6b.entry.js} +1 -1
  65. package/dist/brandsync-wc/{p-1436ae47.entry.js → p-baa4e834.entry.js} +1 -1
  66. package/dist/brandsync-wc/{p-aeb99b7d.entry.js → p-c17df994.entry.js} +1 -1
  67. package/dist/brandsync-wc/{p-bb1b2350.entry.js → p-c483c3cb.entry.js} +1 -1
  68. package/dist/brandsync-wc/{p-018ab194.entry.js → p-c668a5b8.entry.js} +1 -1
  69. package/dist/brandsync-wc/p-c7b84459.entry.js +1 -0
  70. package/dist/brandsync-wc/{p-82533674.entry.js → p-cae21871.entry.js} +1 -1
  71. package/dist/brandsync-wc/{p-978c46d9.entry.js → p-cb4ed9d2.entry.js} +1 -1
  72. package/dist/brandsync-wc/{p-c7c3c4ae.entry.js → p-cca9e854.entry.js} +1 -1
  73. package/dist/brandsync-wc/{p-3de7989e.entry.js → p-cee3d9c8.entry.js} +1 -1
  74. package/dist/brandsync-wc/{p-43a792a3.entry.js → p-d12b7a3f.entry.js} +1 -1
  75. package/dist/brandsync-wc/{p-dd7bb223.entry.js → p-d226f18a.entry.js} +1 -1
  76. package/dist/brandsync-wc/{p-0276bca4.entry.js → p-d7116356.entry.js} +1 -1
  77. package/dist/brandsync-wc/{p-71ea6c1c.entry.js → p-d7f9abd7.entry.js} +1 -1
  78. package/dist/brandsync-wc/{p-7a291cfc.entry.js → p-e03a8269.entry.js} +1 -1
  79. package/dist/brandsync-wc/{p-38f4552f.entry.js → p-e0900317.entry.js} +1 -1
  80. package/dist/brandsync-wc/{p-ce3a762e.entry.js → p-e42b118c.entry.js} +1 -1
  81. package/dist/brandsync-wc/{p-284e4e1e.entry.js → p-e454d65b.entry.js} +1 -1
  82. package/dist/brandsync-wc/{p-23e3bffe.entry.js → p-e5209d8b.entry.js} +1 -1
  83. package/dist/brandsync-wc/{p-d8dd2230.entry.js → p-e9d91fb8.entry.js} +1 -1
  84. package/dist/brandsync-wc/{p-ad9c3eea.entry.js → p-eb5a06af.entry.js} +1 -1
  85. package/dist/brandsync-wc/{p-9c1ea6f0.entry.js → p-ecb614b8.entry.js} +1 -1
  86. package/dist/brandsync-wc/{p-55db935b.entry.js → p-f0897031.entry.js} +1 -1
  87. package/dist/brandsync-wc/{p-9bd0c4a7.entry.js → p-f2c9bd85.entry.js} +1 -1
  88. package/dist/brandsync-wc/{p-b93ce581.entry.js → p-f5704ede.entry.js} +1 -1
  89. package/dist/brandsync-wc/{p-74dd9146.entry.js → p-f677df8f.entry.js} +1 -1
  90. package/dist/brandsync-wc/{p-a59b4c08.entry.js → p-f77e1523.entry.js} +1 -1
  91. package/dist/brandsync-wc/{p-03acdd56.entry.js → p-faa24a2e.entry.js} +1 -1
  92. package/dist/brandsync-wc/p-ff25350e.entry.js +1 -0
  93. package/dist/brandsync-wc/{p-21a592a4.entry.js → p-ff57df38.entry.js} +1 -1
  94. package/dist/cjs/bs-accordion-group.cjs.entry.js +1 -1
  95. package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +1 -1
  96. package/dist/cjs/bs-ai-greeting.cjs.entry.js +1 -1
  97. package/dist/cjs/bs-ai-thinking.cjs.entry.js +1 -1
  98. package/dist/cjs/bs-app-recent-item_3.cjs.entry.js +4 -4
  99. package/dist/cjs/bs-app-shell.cjs.entry.js +1 -1
  100. package/dist/cjs/bs-attachment-list.cjs.entry.js +1 -1
  101. package/dist/cjs/bs-breadcrumbs.cjs.entry.js +1 -1
  102. package/dist/cjs/bs-button-skeleton.cjs.entry.js +1 -1
  103. package/dist/cjs/bs-button_2.cjs.entry.js +1 -1
  104. package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +1 -1
  105. package/dist/cjs/bs-chatbot-header.cjs.entry.js +1 -1
  106. package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +1 -1
  107. package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +1 -1
  108. package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +1 -1
  109. package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +1 -1
  110. package/dist/cjs/bs-chip-informative.cjs.entry.js +2 -2
  111. package/dist/cjs/bs-chip-input.cjs.entry.js +1 -1
  112. package/dist/cjs/bs-citation-preview.cjs.entry.js +1 -1
  113. package/dist/cjs/bs-command-palette.cjs.entry.js +1 -1
  114. package/dist/cjs/bs-compact-menu-block_2.cjs.entry.js +4 -4
  115. package/dist/cjs/bs-company-switcher.cjs.entry.js +2 -2
  116. package/dist/cjs/bs-composer-status-banner.cjs.entry.js +1 -1
  117. package/dist/cjs/bs-composer.cjs.entry.js +1 -1
  118. package/dist/cjs/bs-container.cjs.entry.js +1 -1
  119. package/dist/cjs/bs-data-table.cjs.entry.js +2 -2
  120. package/dist/cjs/bs-datepicker.cjs.entry.js +1 -1
  121. package/dist/cjs/bs-description-item.cjs.entry.js +1 -1
  122. package/dist/cjs/bs-description-list.cjs.entry.js +1 -1
  123. package/dist/cjs/bs-divider.cjs.entry.js +1 -1
  124. package/dist/cjs/bs-dropdown.cjs.entry.js +1 -1
  125. package/dist/cjs/bs-empty-state.cjs.entry.js +1 -1
  126. package/dist/cjs/bs-error-page.cjs.entry.js +1 -1
  127. package/dist/cjs/bs-file-upload-item.cjs.entry.js +1 -1
  128. package/dist/cjs/bs-file-upload.cjs.entry.js +1 -1
  129. package/dist/cjs/bs-global-search.cjs.entry.js +2 -2
  130. package/dist/cjs/bs-grid.cjs.entry.js +2 -2
  131. package/dist/cjs/bs-heading.cjs.entry.js +1 -1
  132. package/dist/cjs/bs-icon-button.cjs.entry.js +1 -1
  133. package/dist/cjs/bs-icon-tile.cjs.entry.js +2 -2
  134. package/dist/cjs/bs-icon.cjs.entry.js +1 -1
  135. package/dist/cjs/bs-inline-tab.cjs.entry.js +1 -1
  136. package/dist/cjs/bs-input_4.cjs.entry.js +5 -5
  137. package/dist/cjs/bs-key-caps.cjs.entry.js +1 -1
  138. package/dist/cjs/bs-key.cjs.entry.js +1 -1
  139. package/dist/cjs/bs-keyboard-shortcuts.cjs.entry.js +2 -2
  140. package/dist/cjs/bs-link.cjs.entry.js +1 -1
  141. package/dist/cjs/bs-list-item.cjs.entry.js +1 -1
  142. package/dist/cjs/bs-list.cjs.entry.js +1 -1
  143. package/dist/cjs/bs-mega-menu.cjs.entry.js +1 -1
  144. package/dist/cjs/bs-message-list.cjs.entry.js +1 -1
  145. package/dist/cjs/bs-message.cjs.entry.js +1 -1
  146. package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +1 -1
  147. package/dist/cjs/bs-navigation-drawer.cjs.entry.js +2 -2
  148. package/dist/cjs/bs-navigation-header.cjs.entry.js +2 -2
  149. package/dist/cjs/bs-page-header.cjs.entry.js +1 -1
  150. package/dist/cjs/bs-pagination.cjs.entry.js +1 -1
  151. package/dist/cjs/bs-popover.cjs.entry.js +1 -1
  152. package/dist/cjs/bs-presence.cjs.entry.js +1 -1
  153. package/dist/cjs/bs-progress-linear.cjs.entry.js +2 -2
  154. package/dist/cjs/bs-progress.cjs.entry.js +2 -2
  155. package/dist/cjs/bs-qr-code.cjs.entry.js +1 -1
  156. package/dist/cjs/bs-radio-group.cjs.entry.js +1 -1
  157. package/dist/cjs/bs-radio.cjs.entry.js +1 -1
  158. package/dist/cjs/bs-search-item.cjs.entry.js +1 -1
  159. package/dist/cjs/bs-select.cjs.entry.js +1 -1
  160. package/dist/cjs/bs-session-timeout.cjs.entry.js +1 -1
  161. package/dist/cjs/bs-shortcut-row.cjs.entry.js +1 -1
  162. package/dist/cjs/bs-skip-link.cjs.entry.js +1 -1
  163. package/dist/cjs/bs-slider.cjs.entry.js +1 -1
  164. package/dist/cjs/bs-snackbar.cjs.entry.js +1 -1
  165. package/dist/cjs/bs-source-link.cjs.entry.js +3 -3
  166. package/dist/cjs/bs-split-pane.cjs.entry.js +1 -1
  167. package/dist/cjs/bs-stack.cjs.entry.js +1 -1
  168. package/dist/cjs/bs-stat.cjs.entry.js +1 -1
  169. package/dist/cjs/bs-stepper-step.cjs.entry.js +1 -1
  170. package/dist/cjs/bs-stepper.cjs.entry.js +1 -1
  171. package/dist/cjs/bs-switch.cjs.entry.js +1 -1
  172. package/dist/cjs/bs-tab_3.cjs.entry.js +3 -3
  173. package/dist/cjs/bs-table-of-contents.cjs.entry.js +1 -1
  174. package/dist/cjs/bs-tag.cjs.entry.js +2 -2
  175. package/dist/cjs/bs-text.cjs.entry.js +1 -1
  176. package/dist/cjs/bs-timepicker.cjs.entry.js +2 -2
  177. package/dist/cjs/bs-toast.cjs.entry.js +1 -1
  178. package/dist/cjs/bs-toggle-button-group.cjs.entry.js +1 -1
  179. package/dist/cjs/bs-toggle-button.cjs.entry.js +1 -1
  180. package/dist/cjs/bs-toolbar.cjs.entry.js +1 -1
  181. package/dist/cjs/bs-tooltip-trigger.cjs.entry.js +1 -1
  182. package/dist/cjs/bs-tooltip.cjs.entry.js +1 -1
  183. package/dist/cjs/bs-tree-item.cjs.entry.js +2 -2
  184. package/dist/cjs/bs-tree.cjs.entry.js +1 -1
  185. package/dist/collection/components/bs-accordion/bs-accordion.stories.js +1 -1
  186. package/dist/collection/components/bs-accordion-group/bs-accordion-group.js +1 -1
  187. package/dist/collection/components/bs-accordion-group/bs-accordion-group.stories.js +1 -1
  188. package/dist/collection/components/bs-ai-disclaimer/bs-ai-disclaimer.js +1 -1
  189. package/dist/collection/components/bs-ai-greeting/bs-ai-greeting.js +1 -1
  190. package/dist/collection/components/bs-ai-thinking/bs-ai-thinking.js +1 -1
  191. package/dist/collection/components/bs-app-recent-item/bs-app-recent-item.js +3 -3
  192. package/dist/collection/components/bs-app-recent-item/bs-app-recent-item.stories.js +1 -1
  193. package/dist/collection/components/bs-app-shell/bs-app-shell.js +1 -1
  194. package/dist/collection/components/bs-app-shell/bs-app-shell.stories.js +1 -1
  195. package/dist/collection/components/bs-app-switcher/bs-app-switcher.stories.js +1 -1
  196. package/dist/collection/components/bs-app-tile/bs-app-tile.stories.js +1 -1
  197. package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
  198. package/dist/collection/components/bs-avatar/bs-avatar.stories.js +1 -1
  199. package/dist/collection/components/bs-badge/bs-badge.stories.js +1 -1
  200. package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +1 -1
  201. package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.stories.js +1 -1
  202. package/dist/collection/components/bs-button/bs-button/bs-button.stories.js +1 -1
  203. package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +1 -1
  204. package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.stories.js +1 -1
  205. package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
  206. package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.stories.js +1 -1
  207. package/dist/collection/components/bs-card/bs-card.stories.js +1 -1
  208. package/dist/collection/components/bs-carousel/bs-carousel.stories.js +1 -1
  209. package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.js +1 -1
  210. package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +1 -1
  211. package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +1 -1
  212. package/dist/collection/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.js +1 -1
  213. package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js +1 -1
  214. package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.js +1 -1
  215. package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.stories.js +1 -1
  216. package/dist/collection/components/bs-checkbox/bs-checkbox.stories.js +1 -1
  217. package/dist/collection/components/bs-checkbox-group/bs-checkbox-group.stories.js +1 -1
  218. package/dist/collection/components/bs-chip/bs-chip-filter/bs-chip-filter.stories.js +1 -1
  219. package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.css +22 -2
  220. package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.js +1 -1
  221. package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.stories.js +1 -1
  222. package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.js +1 -1
  223. package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.stories.js +1 -1
  224. package/dist/collection/components/bs-citation-preview/bs-citation-preview.js +1 -1
  225. package/dist/collection/components/bs-code-block/bs-code-block.stories.js +1 -1
  226. package/dist/collection/components/bs-command-palette/bs-command-palette.js +1 -1
  227. package/dist/collection/components/bs-command-palette/bs-command-palette.stories.js +1 -1
  228. package/dist/collection/components/bs-compact-menu-block/bs-compact-menu-block.js +1 -1
  229. package/dist/collection/components/bs-compact-menu-block/bs-compact-menu-block.stories.js +1 -1
  230. package/dist/collection/components/bs-company-switcher/bs-company-switcher.js +2 -2
  231. package/dist/collection/components/bs-company-switcher/bs-company-switcher.stories.js +1 -1
  232. package/dist/collection/components/bs-composer/bs-composer.js +1 -1
  233. package/dist/collection/components/bs-composer-status-banner/bs-composer-status-banner.js +1 -1
  234. package/dist/collection/components/bs-container/bs-container.js +1 -1
  235. package/dist/collection/components/bs-container/bs-container.stories.js +1 -1
  236. package/dist/collection/components/bs-cookie-consent/bs-cookie-consent.stories.js +1 -1
  237. package/dist/collection/components/bs-data-table/bs-data-table.js +2 -2
  238. package/dist/collection/components/bs-data-table/bs-data-table.stories.js +1 -1
  239. package/dist/collection/components/bs-datepicker/bs-datepicker.js +1 -1
  240. package/dist/collection/components/bs-datepicker/bs-datepicker.stories.js +1 -1
  241. package/dist/collection/components/bs-description-item/bs-description-item.js +1 -1
  242. package/dist/collection/components/bs-description-list/bs-description-list.js +1 -1
  243. package/dist/collection/components/bs-description-list/bs-description-list.stories.js +1 -1
  244. package/dist/collection/components/bs-dialog/bs-dialog.stories.js +1 -1
  245. package/dist/collection/components/bs-divider/bs-divider.js +1 -1
  246. package/dist/collection/components/bs-divider/bs-divider.stories.js +1 -1
  247. package/dist/collection/components/bs-dropdown/bs-dropdown.js +1 -1
  248. package/dist/collection/components/bs-dropdown/bs-dropdown.stories.js +1 -1
  249. package/dist/collection/components/bs-empty-state/bs-empty-state.js +1 -1
  250. package/dist/collection/components/bs-empty-state/bs-empty-state.stories.js +1 -1
  251. package/dist/collection/components/bs-error-page/bs-error-page.js +1 -1
  252. package/dist/collection/components/bs-error-page/bs-error-page.stories.js +1 -1
  253. package/dist/collection/components/bs-file-upload/bs-file-upload.js +1 -1
  254. package/dist/collection/components/bs-file-upload/bs-file-upload.stories.js +1 -1
  255. package/dist/collection/components/bs-file-upload-item/bs-file-upload-item.js +1 -1
  256. package/dist/collection/components/bs-file-upload-item/bs-file-upload-item.stories.js +1 -1
  257. package/dist/collection/components/bs-global-search/bs-global-search.js +2 -2
  258. package/dist/collection/components/bs-global-search/bs-global-search.stories.js +1 -1
  259. package/dist/collection/components/bs-grid/bs-grid.js +2 -2
  260. package/dist/collection/components/bs-grid/bs-grid.stories.js +1 -1
  261. package/dist/collection/components/bs-heading/bs-heading.js +1 -1
  262. package/dist/collection/components/bs-heading/bs-heading.stories.js +1 -1
  263. package/dist/collection/components/bs-icon/bs-icon.js +1 -1
  264. package/dist/collection/components/bs-icon/bs-icon.stories.js +1 -1
  265. package/dist/collection/components/bs-icon-tile/bs-icon-tile.js +2 -2
  266. package/dist/collection/components/bs-icon-tile/bs-icon-tile.stories.js +1 -1
  267. package/dist/collection/components/bs-input/bs-input.js +2 -2
  268. package/dist/collection/components/bs-input/bs-input.stories.js +1 -1
  269. package/dist/collection/components/bs-key/bs-key.js +1 -1
  270. package/dist/collection/components/bs-key/bs-key.stories.js +1 -1
  271. package/dist/collection/components/bs-key-caps/bs-key-caps.js +1 -1
  272. package/dist/collection/components/bs-key-caps/bs-key-caps.stories.js +1 -1
  273. package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.js +2 -2
  274. package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.stories.js +1 -1
  275. package/dist/collection/components/bs-link/bs-link.js +1 -1
  276. package/dist/collection/components/bs-link/bs-link.stories.js +1 -1
  277. package/dist/collection/components/bs-list/bs-list.js +1 -1
  278. package/dist/collection/components/bs-list/bs-list.stories.js +1 -1
  279. package/dist/collection/components/bs-list-item/bs-list-item.js +1 -1
  280. package/dist/collection/components/bs-list-item/bs-list-item.stories.js +1 -1
  281. package/dist/collection/components/bs-logo/bs-logo.stories.js +1 -1
  282. package/dist/collection/components/bs-mega-menu/bs-mega-menu.js +1 -1
  283. package/dist/collection/components/bs-mega-menu/bs-mega-menu.stories.js +1 -1
  284. package/dist/collection/components/bs-menu/bs-menu.js +1 -1
  285. package/dist/collection/components/bs-menu/bs-menu.stories.js +1 -1
  286. package/dist/collection/components/bs-menu-block/bs-menu-block.js +3 -3
  287. package/dist/collection/components/bs-menu-block/bs-menu-block.stories.js +1 -1
  288. package/dist/collection/components/bs-menu-item/bs-menu-item.js +1 -1
  289. package/dist/collection/components/bs-menu-item/bs-menu-item.stories.js +1 -1
  290. package/dist/collection/components/bs-message/bs-message.js +1 -1
  291. package/dist/collection/components/bs-message-list/bs-message-list.js +1 -1
  292. package/dist/collection/components/bs-onboarding-checklist/bs-onboarding-checklist.stories.js +1 -1
  293. package/dist/collection/components/bs-page-header/bs-page-header.js +1 -1
  294. package/dist/collection/components/bs-page-header/bs-page-header.stories.js +1 -1
  295. package/dist/collection/components/bs-pagination/bs-pagination.js +1 -1
  296. package/dist/collection/components/bs-pagination/bs-pagination.stories.js +1 -1
  297. package/dist/collection/components/bs-popover/bs-popover.js +1 -1
  298. package/dist/collection/components/bs-popover/bs-popover.stories.js +1 -1
  299. package/dist/collection/components/bs-presence/bs-presence.js +1 -1
  300. package/dist/collection/components/bs-product-tour/bs-product-tour.stories.js +1 -1
  301. package/dist/collection/components/bs-progress/bs-progress.js +2 -2
  302. package/dist/collection/components/bs-progress/bs-progress.stories.js +1 -1
  303. package/dist/collection/components/bs-progress-linear/bs-progress-linear.js +2 -2
  304. package/dist/collection/components/bs-progress-linear/bs-progress-linear.stories.js +1 -1
  305. package/dist/collection/components/bs-qr-code/bs-qr-code.js +1 -1
  306. package/dist/collection/components/bs-qr-code/bs-qr-code.stories.js +1 -1
  307. package/dist/collection/components/bs-radio/bs-radio.js +1 -1
  308. package/dist/collection/components/bs-radio/bs-radio.stories.js +1 -1
  309. package/dist/collection/components/bs-radio-group/bs-radio-group.js +1 -1
  310. package/dist/collection/components/bs-radio-group/bs-radio-group.stories.js +1 -1
  311. package/dist/collection/components/bs-ripple/bs-ripple.js +1 -1
  312. package/dist/collection/components/bs-search-item/bs-search-item.js +1 -1
  313. package/dist/collection/components/bs-search-item/bs-search-item.stories.js +1 -1
  314. package/dist/collection/components/bs-select/bs-select.js +1 -1
  315. package/dist/collection/components/bs-select/bs-select.stories.js +1 -1
  316. package/dist/collection/components/bs-session-timeout/bs-session-timeout.js +1 -1
  317. package/dist/collection/components/bs-session-timeout/bs-session-timeout.stories.js +1 -1
  318. package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.js +1 -1
  319. package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.stories.js +1 -1
  320. package/dist/collection/components/bs-side-panel/bs-side-panel.stories.js +1 -1
  321. package/dist/collection/components/bs-skeleton/bs-skeleton.js +1 -1
  322. package/dist/collection/components/bs-skeleton/bs-skeleton.stories.js +1 -1
  323. package/dist/collection/components/bs-skip-link/bs-skip-link.js +1 -1
  324. package/dist/collection/components/bs-skip-link/bs-skip-link.stories.js +1 -1
  325. package/dist/collection/components/bs-slider/bs-slider.js +1 -1
  326. package/dist/collection/components/bs-slider/bs-slider.stories.js +1 -1
  327. package/dist/collection/components/bs-snackbar/bs-snackbar.js +1 -1
  328. package/dist/collection/components/bs-snackbar/bs-snackbar.stories.js +1 -1
  329. package/dist/collection/components/bs-source-link/bs-source-link.js +3 -3
  330. package/dist/collection/components/bs-spinner/bs-spinner.js +1 -1
  331. package/dist/collection/components/bs-spinner/bs-spinner.stories.js +1 -1
  332. package/dist/collection/components/bs-split-pane/bs-split-pane.js +1 -1
  333. package/dist/collection/components/bs-split-pane/bs-split-pane.stories.js +1 -1
  334. package/dist/collection/components/bs-stack/bs-stack.js +1 -1
  335. package/dist/collection/components/bs-stack/bs-stack.stories.js +1 -1
  336. package/dist/collection/components/bs-stat/bs-stat.js +1 -1
  337. package/dist/collection/components/bs-stat/bs-stat.stories.js +1 -1
  338. package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.js +1 -1
  339. package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.stories.js +1 -1
  340. package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.js +1 -1
  341. package/dist/collection/components/bs-switch/bs-switch.js +1 -1
  342. package/dist/collection/components/bs-switch/bs-switch.stories.js +1 -1
  343. package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.js +1 -1
  344. package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.stories.js +1 -1
  345. package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +1 -1
  346. package/dist/collection/components/bs-tab/bs-tab/bs-tab.stories.js +1 -1
  347. package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +1 -1
  348. package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.stories.js +1 -1
  349. package/dist/collection/components/bs-table-of-contents/bs-table-of-contents.js +1 -1
  350. package/dist/collection/components/bs-table-of-contents/bs-table-of-contents.stories.js +1 -1
  351. package/dist/collection/components/bs-tag/bs-tag.js +2 -2
  352. package/dist/collection/components/bs-tag/bs-tag.stories.js +1 -1
  353. package/dist/collection/components/bs-text/bs-text.js +1 -1
  354. package/dist/collection/components/bs-text/bs-text.stories.js +1 -1
  355. package/dist/collection/components/bs-timepicker/bs-timepicker.js +2 -2
  356. package/dist/collection/components/bs-timepicker/bs-timepicker.stories.js +1 -1
  357. package/dist/collection/components/bs-toast/bs-toast.js +1 -1
  358. package/dist/collection/components/bs-toast/bs-toast.stories.js +1 -1
  359. package/dist/collection/components/bs-toggle-button/bs-toggle-button.js +1 -1
  360. package/dist/collection/components/bs-toggle-button/bs-toggle-button.stories.js +1 -1
  361. package/dist/collection/components/bs-toggle-button-group/bs-toggle-button-group.js +1 -1
  362. package/dist/collection/components/bs-toggle-button-group/bs-toggle-button-group.stories.js +1 -1
  363. package/dist/collection/components/bs-toolbar/bs-toolbar.js +1 -1
  364. package/dist/collection/components/bs-toolbar/bs-toolbar.stories.js +1 -1
  365. package/dist/collection/components/bs-tooltip/bs-tooltip.js +1 -1
  366. package/dist/collection/components/bs-tooltip/bs-tooltip.stories.js +1 -1
  367. package/dist/collection/components/bs-tooltip-trigger/bs-tooltip-trigger.js +1 -1
  368. package/dist/collection/components/bs-tooltip-trigger/bs-tooltip-trigger.stories.js +1 -1
  369. package/dist/collection/components/bs-tree/bs-tree.js +1 -1
  370. package/dist/collection/components/bs-tree/bs-tree.stories.js +1 -1
  371. package/dist/collection/components/bs-tree-item/bs-tree-item.js +2 -2
  372. package/dist/collection/components/bs-tree-item/bs-tree-item.stories.js +1 -1
  373. package/dist/collection/components/bs-whats-new/bs-whats-new.stories.js +1 -1
  374. package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.js +1 -1
  375. package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.stories.js +1 -1
  376. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.js +2 -2
  377. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.js +1 -1
  378. package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +2 -2
  379. package/dist/components/bs-accordion-group.js +1 -1
  380. package/dist/components/bs-ai-disclaimer.js +1 -1
  381. package/dist/components/bs-ai-greeting.js +1 -1
  382. package/dist/components/bs-ai-thinking.js +1 -1
  383. package/dist/components/bs-app-recent-item.js +1 -1
  384. package/dist/components/bs-app-shell.js +1 -1
  385. package/dist/components/bs-app-switcher.js +1 -1
  386. package/dist/components/bs-app-tile.js +1 -1
  387. package/dist/components/bs-attachment-list.js +1 -1
  388. package/dist/components/bs-attachment.js +1 -1
  389. package/dist/components/bs-avatar.js +1 -1
  390. package/dist/components/bs-breadcrumb-overflow.js +1 -1
  391. package/dist/components/bs-breadcrumbs.js +1 -1
  392. package/dist/components/bs-button-skeleton.js +1 -1
  393. package/dist/components/bs-button.js +1 -1
  394. package/dist/components/bs-carousel.js +1 -1
  395. package/dist/components/bs-chatbot-feedback.js +1 -1
  396. package/dist/components/bs-chatbot-header.js +1 -1
  397. package/dist/components/bs-chatbot-response-action.js +1 -1
  398. package/dist/components/bs-chatbot-sources-drawer.js +1 -1
  399. package/dist/components/bs-chatbot-suggestion-button.js +1 -1
  400. package/dist/components/bs-checkbox-skeleton.js +1 -1
  401. package/dist/components/bs-checkbox.js +1 -1
  402. package/dist/components/bs-chip-filter.js +1 -1
  403. package/dist/components/bs-chip-informative.js +1 -1
  404. package/dist/components/bs-chip-input.js +1 -1
  405. package/dist/components/bs-citation-preview.js +1 -1
  406. package/dist/components/bs-code-block.js +1 -1
  407. package/dist/components/bs-command-palette.js +1 -1
  408. package/dist/components/bs-compact-menu-block.js +1 -1
  409. package/dist/components/bs-company-switcher.js +1 -1
  410. package/dist/components/bs-composer-status-banner.js +1 -1
  411. package/dist/components/bs-composer.js +1 -1
  412. package/dist/components/bs-container.js +1 -1
  413. package/dist/components/bs-cookie-consent.js +1 -1
  414. package/dist/components/bs-data-table.js +1 -1
  415. package/dist/components/bs-datepicker.js +1 -1
  416. package/dist/components/bs-description-item.js +1 -1
  417. package/dist/components/bs-description-list.js +1 -1
  418. package/dist/components/bs-dialog.js +1 -1
  419. package/dist/components/bs-divider.js +1 -1
  420. package/dist/components/bs-dropdown.js +1 -1
  421. package/dist/components/bs-empty-state.js +1 -1
  422. package/dist/components/bs-error-page.js +1 -1
  423. package/dist/components/bs-file-upload-item.js +1 -1
  424. package/dist/components/bs-file-upload.js +1 -1
  425. package/dist/components/bs-global-search.js +1 -1
  426. package/dist/components/bs-grid.js +1 -1
  427. package/dist/components/bs-heading.js +1 -1
  428. package/dist/components/bs-icon-button.js +1 -1
  429. package/dist/components/bs-icon-tile.js +1 -1
  430. package/dist/components/bs-icon.js +1 -1
  431. package/dist/components/bs-inline-tab.js +1 -1
  432. package/dist/components/bs-input.js +1 -1
  433. package/dist/components/bs-key-caps.js +1 -1
  434. package/dist/components/bs-key.js +1 -1
  435. package/dist/components/bs-keyboard-shortcuts.js +1 -1
  436. package/dist/components/bs-link.js +1 -1
  437. package/dist/components/bs-list-item.js +1 -1
  438. package/dist/components/bs-list.js +1 -1
  439. package/dist/components/bs-mega-menu.js +1 -1
  440. package/dist/components/bs-menu-block.js +1 -1
  441. package/dist/components/bs-menu-item.js +1 -1
  442. package/dist/components/bs-menu.js +1 -1
  443. package/dist/components/bs-message-list.js +1 -1
  444. package/dist/components/bs-message.js +1 -1
  445. package/dist/components/bs-navigation-drawer-item.js +1 -1
  446. package/dist/components/bs-navigation-drawer.js +1 -1
  447. package/dist/components/bs-navigation-header.js +1 -1
  448. package/dist/components/bs-onboarding-checklist.js +1 -1
  449. package/dist/components/bs-page-header.js +1 -1
  450. package/dist/components/bs-pagination.js +1 -1
  451. package/dist/components/bs-popover.js +1 -1
  452. package/dist/components/bs-presence.js +1 -1
  453. package/dist/components/bs-product-tour.js +1 -1
  454. package/dist/components/bs-progress-linear.js +1 -1
  455. package/dist/components/bs-progress.js +1 -1
  456. package/dist/components/bs-qr-code.js +1 -1
  457. package/dist/components/bs-radio-group.js +1 -1
  458. package/dist/components/bs-radio.js +1 -1
  459. package/dist/components/bs-ripple.js +1 -1
  460. package/dist/components/bs-search-item.js +1 -1
  461. package/dist/components/bs-select.js +1 -1
  462. package/dist/components/bs-session-timeout.js +1 -1
  463. package/dist/components/bs-shortcut-row.js +1 -1
  464. package/dist/components/bs-side-panel.js +1 -1
  465. package/dist/components/bs-skeleton.js +1 -1
  466. package/dist/components/bs-skip-link.js +1 -1
  467. package/dist/components/bs-slider.js +1 -1
  468. package/dist/components/bs-snackbar.js +1 -1
  469. package/dist/components/bs-source-link.js +1 -1
  470. package/dist/components/bs-spinner.js +1 -1
  471. package/dist/components/bs-split-pane.js +1 -1
  472. package/dist/components/bs-stack.js +1 -1
  473. package/dist/components/bs-stat.js +1 -1
  474. package/dist/components/bs-stepper-step.js +1 -1
  475. package/dist/components/bs-stepper.js +1 -1
  476. package/dist/components/bs-switch.js +1 -1
  477. package/dist/components/bs-tab.js +1 -1
  478. package/dist/components/bs-table-of-contents.js +1 -1
  479. package/dist/components/bs-tabs.js +1 -1
  480. package/dist/components/bs-tag.js +1 -1
  481. package/dist/components/bs-text.js +1 -1
  482. package/dist/components/bs-timepicker.js +1 -1
  483. package/dist/components/bs-toast.js +1 -1
  484. package/dist/components/bs-toggle-button-group.js +1 -1
  485. package/dist/components/bs-toggle-button.js +1 -1
  486. package/dist/components/bs-toolbar.js +1 -1
  487. package/dist/components/bs-tooltip-trigger.js +1 -1
  488. package/dist/components/bs-tooltip.js +1 -1
  489. package/dist/components/bs-tree-item.js +1 -1
  490. package/dist/components/bs-tree.js +1 -1
  491. package/dist/components/bs-whats-new-entry.js +1 -1
  492. package/dist/components/bs-whats-new.js +1 -1
  493. package/dist/components/{p-BkzRLgh4.js → p-9Y5WEZ6K.js} +1 -1
  494. package/dist/components/{p-5yADpXI0.js → p-AnA6S3Em.js} +1 -1
  495. package/dist/components/{p-DLGXRivO.js → p-AwofMhxC.js} +1 -1
  496. package/dist/components/{p-B1pqQBKC.js → p-BRCMyssd.js} +1 -1
  497. package/dist/components/{p-TRtv6fbe.js → p-BgB9tIB9.js} +1 -1
  498. package/dist/components/p-BlZZNwM2.js +1 -0
  499. package/dist/components/{p-C4NrLy_y.js → p-BnsfpSS7.js} +1 -1
  500. package/dist/components/{p-DpMqdknQ.js → p-BoA3sM-2.js} +1 -1
  501. package/dist/components/p-Btp5hXvc.js +1 -0
  502. package/dist/components/p-Bu_sXonm.js +1 -0
  503. package/dist/components/{p-DJqNdSU4.js → p-BvR122Y2.js} +1 -1
  504. package/dist/components/{p--3dR13A5.js → p-BwVQ-DXP.js} +1 -1
  505. package/dist/components/{p-DQY3n0nR.js → p-C5CNfDjK.js} +1 -1
  506. package/dist/components/{p-BSaspygR.js → p-CBGHGry4.js} +1 -1
  507. package/dist/components/{p-DoCH1kV9.js → p-CFzdwJ2g.js} +1 -1
  508. package/dist/components/{p-_oStzQSx.js → p-CZWWrlb3.js} +1 -1
  509. package/dist/components/{p-CMhON6jB.js → p-Cipc052L.js} +1 -1
  510. package/dist/components/{p-BenlMTiB.js → p-CjUxGdnN.js} +1 -1
  511. package/dist/components/{p-CA1qkJ9m.js → p-CqRS2iPv.js} +1 -1
  512. package/dist/components/{p-BYZ1TxxS.js → p-Czo6AWrI.js} +1 -1
  513. package/dist/components/{p-B6bXreGu.js → p-DAmDb3zb.js} +1 -1
  514. package/dist/components/{p-hjzkd-La.js → p-DehAshCb.js} +1 -1
  515. package/dist/components/{p-5OSJi5Hq.js → p-DikZ1mnx.js} +1 -1
  516. package/dist/components/{p-Bu47NRjs.js → p-DoiTWM4q.js} +1 -1
  517. package/dist/components/{p-ESiaIgGU.js → p-Lj6_zdoI.js} +1 -1
  518. package/dist/components/{p-DfYJCczy.js → p-Ov2urmo_.js} +1 -1
  519. package/dist/components/{p-BpD6hqIE.js → p-cf5C02kt.js} +1 -1
  520. package/dist/components/{p-bOSY8sKI.js → p-hg8kUgz5.js} +1 -1
  521. package/dist/components/{p-Cau06t9C.js → p-liC69VdX.js} +1 -1
  522. package/dist/components/{p-Dx10cRTc.js → p-nZqO4uTL.js} +1 -1
  523. package/dist/components/{p-DPIDWFCa.js → p-nf0fN-PV.js} +1 -1
  524. package/dist/components/{p-BDqzHL7T.js → p-sXYR1kkr.js} +1 -1
  525. package/dist/components/{p-D9TQ0LLX.js → p-u6CTJrPs.js} +1 -1
  526. package/dist/esm/bs-accordion-group.entry.js +1 -1
  527. package/dist/esm/bs-ai-disclaimer.entry.js +1 -1
  528. package/dist/esm/bs-ai-greeting.entry.js +1 -1
  529. package/dist/esm/bs-ai-thinking.entry.js +1 -1
  530. package/dist/esm/bs-app-recent-item_3.entry.js +4 -4
  531. package/dist/esm/bs-app-shell.entry.js +1 -1
  532. package/dist/esm/bs-attachment-list.entry.js +1 -1
  533. package/dist/esm/bs-breadcrumbs.entry.js +1 -1
  534. package/dist/esm/bs-button-skeleton.entry.js +1 -1
  535. package/dist/esm/bs-button_2.entry.js +1 -1
  536. package/dist/esm/bs-chatbot-feedback.entry.js +1 -1
  537. package/dist/esm/bs-chatbot-header.entry.js +1 -1
  538. package/dist/esm/bs-chatbot-response-action.entry.js +1 -1
  539. package/dist/esm/bs-chatbot-sources-drawer.entry.js +1 -1
  540. package/dist/esm/bs-chatbot-suggestion-button.entry.js +1 -1
  541. package/dist/esm/bs-checkbox-skeleton.entry.js +1 -1
  542. package/dist/esm/bs-chip-informative.entry.js +2 -2
  543. package/dist/esm/bs-chip-input.entry.js +1 -1
  544. package/dist/esm/bs-citation-preview.entry.js +1 -1
  545. package/dist/esm/bs-command-palette.entry.js +1 -1
  546. package/dist/esm/bs-compact-menu-block_2.entry.js +4 -4
  547. package/dist/esm/bs-company-switcher.entry.js +2 -2
  548. package/dist/esm/bs-composer-status-banner.entry.js +1 -1
  549. package/dist/esm/bs-composer.entry.js +1 -1
  550. package/dist/esm/bs-container.entry.js +1 -1
  551. package/dist/esm/bs-data-table.entry.js +2 -2
  552. package/dist/esm/bs-datepicker.entry.js +1 -1
  553. package/dist/esm/bs-description-item.entry.js +1 -1
  554. package/dist/esm/bs-description-list.entry.js +1 -1
  555. package/dist/esm/bs-divider.entry.js +1 -1
  556. package/dist/esm/bs-dropdown.entry.js +1 -1
  557. package/dist/esm/bs-empty-state.entry.js +1 -1
  558. package/dist/esm/bs-error-page.entry.js +1 -1
  559. package/dist/esm/bs-file-upload-item.entry.js +1 -1
  560. package/dist/esm/bs-file-upload.entry.js +1 -1
  561. package/dist/esm/bs-global-search.entry.js +2 -2
  562. package/dist/esm/bs-grid.entry.js +2 -2
  563. package/dist/esm/bs-heading.entry.js +1 -1
  564. package/dist/esm/bs-icon-button.entry.js +1 -1
  565. package/dist/esm/bs-icon-tile.entry.js +2 -2
  566. package/dist/esm/bs-icon.entry.js +1 -1
  567. package/dist/esm/bs-inline-tab.entry.js +1 -1
  568. package/dist/esm/bs-input_4.entry.js +5 -5
  569. package/dist/esm/bs-key-caps.entry.js +1 -1
  570. package/dist/esm/bs-key.entry.js +1 -1
  571. package/dist/esm/bs-keyboard-shortcuts.entry.js +2 -2
  572. package/dist/esm/bs-link.entry.js +1 -1
  573. package/dist/esm/bs-list-item.entry.js +1 -1
  574. package/dist/esm/bs-list.entry.js +1 -1
  575. package/dist/esm/bs-mega-menu.entry.js +1 -1
  576. package/dist/esm/bs-message-list.entry.js +1 -1
  577. package/dist/esm/bs-message.entry.js +1 -1
  578. package/dist/esm/bs-navigation-drawer-item.entry.js +1 -1
  579. package/dist/esm/bs-navigation-drawer.entry.js +2 -2
  580. package/dist/esm/bs-navigation-header.entry.js +2 -2
  581. package/dist/esm/bs-page-header.entry.js +1 -1
  582. package/dist/esm/bs-pagination.entry.js +1 -1
  583. package/dist/esm/bs-popover.entry.js +1 -1
  584. package/dist/esm/bs-presence.entry.js +1 -1
  585. package/dist/esm/bs-progress-linear.entry.js +2 -2
  586. package/dist/esm/bs-progress.entry.js +2 -2
  587. package/dist/esm/bs-qr-code.entry.js +1 -1
  588. package/dist/esm/bs-radio-group.entry.js +1 -1
  589. package/dist/esm/bs-radio.entry.js +1 -1
  590. package/dist/esm/bs-search-item.entry.js +1 -1
  591. package/dist/esm/bs-select.entry.js +1 -1
  592. package/dist/esm/bs-session-timeout.entry.js +1 -1
  593. package/dist/esm/bs-shortcut-row.entry.js +1 -1
  594. package/dist/esm/bs-skip-link.entry.js +1 -1
  595. package/dist/esm/bs-slider.entry.js +1 -1
  596. package/dist/esm/bs-snackbar.entry.js +1 -1
  597. package/dist/esm/bs-source-link.entry.js +3 -3
  598. package/dist/esm/bs-split-pane.entry.js +1 -1
  599. package/dist/esm/bs-stack.entry.js +1 -1
  600. package/dist/esm/bs-stat.entry.js +1 -1
  601. package/dist/esm/bs-stepper-step.entry.js +1 -1
  602. package/dist/esm/bs-stepper.entry.js +1 -1
  603. package/dist/esm/bs-switch.entry.js +1 -1
  604. package/dist/esm/bs-tab_3.entry.js +3 -3
  605. package/dist/esm/bs-table-of-contents.entry.js +1 -1
  606. package/dist/esm/bs-tag.entry.js +2 -2
  607. package/dist/esm/bs-text.entry.js +1 -1
  608. package/dist/esm/bs-timepicker.entry.js +2 -2
  609. package/dist/esm/bs-toast.entry.js +1 -1
  610. package/dist/esm/bs-toggle-button-group.entry.js +1 -1
  611. package/dist/esm/bs-toggle-button.entry.js +1 -1
  612. package/dist/esm/bs-toolbar.entry.js +1 -1
  613. package/dist/esm/bs-tooltip-trigger.entry.js +1 -1
  614. package/dist/esm/bs-tooltip.entry.js +1 -1
  615. package/dist/esm/bs-tree-item.entry.js +2 -2
  616. package/dist/esm/bs-tree.entry.js +1 -1
  617. package/package.json +1 -5
  618. package/dist/brandsync-wc/p-2e2dc322.entry.js +0 -1
  619. package/dist/brandsync-wc/p-5f26d601.entry.js +0 -1
  620. package/dist/brandsync-wc/p-78fdcd05.entry.js +0 -1
  621. package/dist/brandsync-wc/p-ba933f3b.entry.js +0 -1
  622. package/dist/components/p-Dsyt34TD.js +0 -1
  623. package/dist/components/p-EQrsaDKp.js +0 -1
  624. package/dist/components/p-OhKj-S2c.js +0 -1
@@ -1 +1 @@
1
- import{t as e,p as s,H as o,c as n,h as t}from"./p-CcAX4o5o.js";import{d as i}from"./p-BkzRLgh4.js";import{d as c}from"./p-mxDA3wKn.js";import{d as a}from"./p-EQrsaDKp.js";import{d as r}from"./p-DQY3n0nR.js";import{d as b}from"./p-BYZ1TxxS.js";import{d as l}from"./p-ESiaIgGU.js";import{d}from"./p--3dR13A5.js";import{d as p}from"./p-hjzkd-La.js";const h=s(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsAccept=n(this,"bsAccept"),this.bsReject=n(this,"bsReject"),this.bsCustomise=n(this,"bsCustomise"),this.bsSave=n(this,"bsSave"),this.bsChoice=n(this,"bsChoice"),this.bsClose=n(this,"bsClose"),this.bsManage=n(this,"bsManage")}type="banner";heading;headingLevel=2;description;policyUrl;policyLabel="Read the cookie policy";customiseLabel="Customise";rejectLabel="Reject optional";acceptLabel="Accept all";saveLabel="Save choices";changeLabel="Change";alwaysOnLabel="Always on";seeCookiesLabel="See {count} cookies";closeLabel="Close";categories=[{id:"necessary",label:"Strictly necessary",description:"Needed for sign-in, security and to keep the service running. These cannot be turned off.",required:!0,cookies:["Session cookie — keeps you signed in as you move between pages.","Security cookie — helps prevent fraud and unauthorized access.","Consent cookie — remembers your cookie consent choices."]},{id:"preferences",label:"Preferences",description:"Remember your language, theme and table layouts on this device.",enabled:!0},{id:"analytics",label:"Analytics",description:"Help us understand which features are used so we can improve them. Data is anonymised."},{id:"marketing",label:"Marketing",description:"Show relevant products on other websites."}];bsAccept;bsReject;bsCustomise;bsSave;bsChoice;bsClose;bsManage;choices={};open={};componentWillLoad(){this.resetChoices()}onCategoriesChange(){this.resetChoices()}resetChoices(){const e={};(this.categories??[]).forEach((s=>e[s.id]=!!s.required||!!s.enabled)),this.choices=e}all(e){const s={};return(this.categories??[]).forEach((o=>s[o.id]="required"===e?!!o.required:e)),s}get defaults(){return u[this.type]??u.banner}heading_(e){const s=Math.min(6,Math.max(1,Math.trunc(Number(this.headingLevel))||2));return t("h"+s,{part:"heading",id:"heading",class:{"bs-cookie-consent__heading":!0}},e)}policy(){return this.policyUrl?t("a",{part:"policy",class:"bs-cookie-consent__policy",href:this.policyUrl},this.policyLabel):null}customise(){return t("bs-button",{part:"customise",class:"bs-cookie-consent__text-button",variant:"subtle",onClick:()=>this.bsCustomise.emit()},this.customiseLabel)}reject(e="outlined"){return t("bs-button",{part:"reject",variant:e,onClick:()=>this.bsReject.emit({choices:this.all("required")})},this.rejectLabel)}accept(e="primary"){return t("bs-button",{part:"accept",variant:e,onClick:()=>this.bsAccept.emit({choices:this.all(!0)})},this.acceptLabel)}renderBanner(e){return t("bs-card",{part:"container",class:"bs-cookie-consent bs-cookie-consent--banner",surface:"base",role:"region","aria-labelledby":"heading"},t("div",{class:"bs-cookie-consent__banner"},t("div",{class:"bs-cookie-consent__banner-content"},t("bs-icon-tile",{part:"art",size:"lg"},t("slot",{name:"icon"},t(k,null))),t("div",{class:"bs-cookie-consent__copy"},this.heading_(this.heading??e.heading),t("p",{part:"description",class:"bs-cookie-consent__description"},this.description??e.description),this.policy())),t("div",{part:"actions",class:"bs-cookie-consent__actions bs-cookie-consent__actions--banner"},this.customise(),this.reject(),this.accept())))}renderCard(e){return t("bs-card",{part:"container",class:"bs-cookie-consent bs-cookie-consent--card",surface:"base",role:"region","aria-labelledby":"heading"},t("div",{class:"bs-cookie-consent__card"},t("div",{class:"bs-cookie-consent__head"},t("bs-icon-tile",{part:"art",size:"md"},t("slot",{name:"icon"},t(k,null))),this.heading_(this.heading??e.heading)),t("p",{part:"description",class:"bs-cookie-consent__description"},this.description??e.description),this.policy(),t("div",{class:"bs-cookie-consent__rule"}),t("div",{part:"actions",class:"bs-cookie-consent__actions bs-cookie-consent__actions--card"},this.customise(),t("span",{class:"bs-cookie-consent__spacer"}),this.reject(),this.accept())))}renderCategory(e,s){const o=!!this.open[e.id],n=e.cookies?.length??0,i="cookies-"+e.id;return[t("div",{part:"category",class:"bs-cookie-consent__category"},t("div",{class:{"bs-cookie-consent__category-head":!0,"bs-cookie-consent__category-head--switch":!e.required}},t("span",{class:"bs-cookie-consent__category-name"},e.label),e.required?t("bs-chip-informative",{size:"sm",color:"neutral"},this.alwaysOnLabel):t("bs-switch",{part:"switch",size:"md",ariaLabel:e.label,checked:!!this.choices[e.id],onBsChange:s=>{this.choices={...this.choices,[e.id]:s.detail},this.bsChoice.emit({id:e.id,enabled:s.detail})}})),e.description&&t("p",{class:"bs-cookie-consent__category-text"},e.description),n>0&&t("div",{class:"bs-cookie-consent__details"},t("button",{type:"button",class:"bs-cookie-consent__disclosure","aria-expanded":o+"","aria-controls":i,onClick:()=>this.open={...this.open,[e.id]:!o}},t("span",null,this.seeCookiesLabel.replace("{count}",n+"")),t("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},t("path",{d:o?"M6 15L12 9L18 15":"M6 9L12 15L18 9"}))),o&&t("ol",{id:i,class:"bs-cookie-consent__cookie-list"},e.cookies.map((e=>t("li",null,e)))))),!s&&t("div",{class:"bs-cookie-consent__rule"})]}renderPreferences(e){const s=this.categories??[];return t("bs-card",{part:"container",class:"bs-cookie-consent bs-cookie-consent--preferences",surface:"base",role:"group","aria-labelledby":"heading"},t("div",{class:"bs-cookie-consent__prefs"},t("div",{class:"bs-cookie-consent__head"},t("bs-icon-tile",{part:"art",size:"md"},t("slot",{name:"icon"},t(k,null))),this.heading_(this.heading??e.heading),t("span",{class:"bs-cookie-consent__spacer"}),t("bs-icon-button",{part:"close",variant:"subtle",size:"md",ariaLabel:this.closeLabel,onClick:()=>this.bsClose.emit()},t("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round","aria-hidden":"true"},t("path",{d:"M5 5L15 15M15 5L5 15"})))),t("p",{part:"description",class:"bs-cookie-consent__description"},this.description??e.description),s.map(((e,o)=>this.renderCategory(e,o===s.length-1))),t("div",{class:"bs-cookie-consent__rule"}),t("div",{part:"actions",class:"bs-cookie-consent__actions bs-cookie-consent__actions--prefs"},this.reject(),this.accept("outlined"),t("span",{class:"bs-cookie-consent__spacer"}),t("bs-button",{part:"save",variant:"primary",onClick:()=>this.bsSave.emit({choices:{...this.choices}})},this.saveLabel))))}renderSaved(e){return t("bs-snackbar",{part:"container",class:"bs-cookie-consent bs-cookie-consent--saved",actionLabel:this.changeLabel,actionVariant:"subtle",hideClose:!0,onBsAction:()=>this.bsManage.emit()},this.description??e.description)}render(){const e=this.defaults;switch(this.type){case"card":return this.renderCard(e);case"preferences":return this.renderPreferences(e);case"saved":return this.renderSaved(e);default:return this.renderBanner(e)}}static get watchers(){return{categories:[{onCategoriesChange:0}]}}static get style(){return":host{display:block;container-type:inline-size;max-width:100%;--bs-cookie-consent-width:420px;--bs-cookie-consent-bg:var(--bs-paper-bg-base);--bs-cookie-consent-radius:var(--bs-border-radius-150);--bs-cookie-consent-padding:var(--bs-spacing-200);--bs-cookie-consent-shadow:0 8px 8px var(--bs-elevation-higher);--bs-cookie-consent-color:var(--bs-text-default);--bs-cookie-consent-color-secondary:var(--bs-text-secondary);--bs-cookie-consent-link:var(--bs-text-link);--bs-cookie-consent-link-underline:var(--bs-border-info);--bs-cookie-consent-rule:var(--bs-border-default)}:host([type='card']){width:var(--bs-cookie-consent-width)}:host([type='preferences']){--bs-cookie-consent-width:560px;width:var(--bs-cookie-consent-width)}:host([type='saved']){--bs-cookie-consent-width:660px;width:var(--bs-cookie-consent-width)}.bs-cookie-consent--banner,.bs-cookie-consent--card,.bs-cookie-consent--preferences{--bs-card-bg:var(--bs-cookie-consent-bg);--bs-card-radius:var(--bs-cookie-consent-radius);--bs-card-padding:var(--bs-cookie-consent-padding);--bs-card-shadow:var(--bs-cookie-consent-shadow);color:var(--bs-cookie-consent-color)}.bs-cookie-consent p{margin:0}.bs-cookie-consent__glyph,::slotted([slot='icon']){width:var(--bs-cookie-consent-glyph-size, 24px);height:var(--bs-cookie-consent-glyph-size, 24px)}bs-icon-tile[size='md']{--bs-cookie-consent-glyph-size:16px}.bs-cookie-consent__heading{margin:0;font-size:var(--bs-font-size-2xl);font-weight:var(--bs-font-weight-bold);line-height:32px}.bs-cookie-consent__description{color:var(--bs-cookie-consent-color-secondary);font-size:var(--bs-font-size-md);line-height:24px}.bs-cookie-consent__policy{align-self:flex-start;border-bottom:1px solid var(--bs-cookie-consent-link-underline);color:var(--bs-cookie-consent-link);font-size:var(--bs-font-size-sm);line-height:20px;text-decoration:none}.bs-cookie-consent__policy:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-cookie-consent__rule{height:8px;background:linear-gradient(var(--bs-cookie-consent-rule), var(--bs-cookie-consent-rule)) center / 100% 1px no-repeat}.bs-cookie-consent__spacer{flex:1 1 0}.bs-cookie-consent__actions bs-button{--bs-button-height-md:var(--bs-spacing-550)}.bs-cookie-consent__text-button{--bs-button-subtle-color:var(--bs-text-action)}.bs-cookie-consent__actions--banner bs-button{min-width:140px}.bs-cookie-consent__actions bs-button[part='reject']{min-width:140px}.bs-cookie-consent__actions bs-button[part='accept']{min-width:103px}.bs-cookie-consent__actions--banner bs-button[part='accept']{min-width:140px}.bs-cookie-consent__actions bs-button[part='save']{min-width:127px}.bs-cookie-consent__actions bs-button[part='customise']{min-width:109px}.bs-cookie-consent__actions--banner bs-button[part='customise']{min-width:140px}.bs-cookie-consent__banner{display:flex;align-items:center;gap:var(--bs-spacing-200)}.bs-cookie-consent__banner-content{display:flex;align-items:flex-start;gap:var(--bs-spacing-200);flex:1 1 0;min-width:0}bs-icon-tile{flex:none}.bs-cookie-consent__copy{display:flex;flex-direction:column;align-items:flex-start;gap:var(--bs-spacing-100);min-width:0}.bs-cookie-consent__actions{display:flex;align-items:center;gap:var(--bs-spacing-100)}.bs-cookie-consent__actions--banner{flex:none;justify-content:flex-end}@container (max-width: 719px){.bs-cookie-consent__banner{flex-direction:column;align-items:stretch}.bs-cookie-consent__banner-content{flex-direction:column;gap:var(--bs-spacing-150)}.bs-cookie-consent__actions--banner{flex-direction:column-reverse;align-items:stretch}.bs-cookie-consent__actions--banner bs-button{--bs-button-width:100%}}.bs-cookie-consent__card{display:flex;flex-direction:column;gap:var(--bs-spacing-100)}.bs-cookie-consent__prefs{display:flex;flex-direction:column;gap:var(--bs-spacing-150)}.bs-cookie-consent__card .bs-cookie-consent__policy{margin-bottom:0}.bs-cookie-consent__head{display:flex;align-items:center;gap:10px}.bs-cookie-consent--preferences .bs-cookie-consent__head{gap:var(--bs-spacing-100)}.bs-cookie-consent__head .bs-cookie-consent__heading{min-width:0}.bs-cookie-consent__head bs-icon-button svg{width:20px;height:20px}.bs-cookie-consent__actions--card,.bs-cookie-consent__actions--prefs{gap:var(--bs-spacing-100)}.bs-cookie-consent__actions--card{align-items:flex-end;justify-content:space-between}.bs-cookie-consent__category{display:flex;flex-direction:column;gap:6px}.bs-cookie-consent__prefs>.bs-cookie-consent__description+.bs-cookie-consent__category{padding:6px 0}.bs-cookie-consent__category-head{display:flex;align-items:center;justify-content:space-between;gap:var(--bs-spacing-100)}.bs-cookie-consent__category-head--switch{min-height:48px}.bs-cookie-consent__category-head--switch+.bs-cookie-consent__category-text{margin-top:-6px}.bs-cookie-consent__category-name{font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-semibold);line-height:20px}.bs-cookie-consent__category-text{color:var(--bs-cookie-consent-color-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-cookie-consent__disclosure{display:inline-flex;align-items:center;gap:var(--bs-spacing-100);min-height:32px;padding:0;border:none;background:transparent;color:var(--bs-text-action);font-family:inherit;font-size:var(--bs-font-size-md);font-weight:var(--bs-font-weight-semibold);line-height:24px;cursor:pointer}.bs-cookie-consent__disclosure svg{width:24px;height:24px}.bs-cookie-consent__disclosure:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px;border-radius:var(--bs-border-radius-50)}.bs-cookie-consent__cookie-list{margin:0;padding-inline-start:21px;color:var(--bs-cookie-consent-color-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-cookie-consent--saved{display:block;--bs-snackbar-icon-size:32px;--bs-snackbar-gap:0px}.bs-cookie-consent--saved::part(action){--bs-button-subtle-color:var(--bs-snackbar-text-default);--bs-button-subtle-hover:color-mix(in srgb, var(--bs-snackbar-text-default) 16%, transparent);--bs-button-subtle-pressed:color-mix(in srgb, var(--bs-snackbar-text-default) 24%, transparent);--bs-button-height-sm:var(--bs-spacing-550);--bs-button-padding-x-sm:var(--bs-spacing-200)}"}},[769,"bs-cookie-consent",{type:[513],heading:[1],headingLevel:[2,"heading-level"],description:[1],policyUrl:[1,"policy-url"],policyLabel:[1,"policy-label"],customiseLabel:[1,"customise-label"],rejectLabel:[1,"reject-label"],acceptLabel:[1,"accept-label"],saveLabel:[1,"save-label"],changeLabel:[1,"change-label"],alwaysOnLabel:[1,"always-on-label"],seeCookiesLabel:[1,"see-cookies-label"],closeLabel:[1,"close-label"],categories:[16],choices:[32],open:[32]},void 0,{categories:[{onCategoriesChange:0}]}]),k=()=>t("svg",{class:"bs-cookie-consent__glyph",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},t("path",{d:"M20.5 12.5A8.5 8.5 0 1 1 11.5 3.5A3.2 3.2 0 0 0 15 7A3.2 3.2 0 0 0 18.5 9.5A3 3 0 0 0 20.5 12.5Z"}),t("path",{d:"M9 9V9.01"}),t("path",{d:"M8.5 14.5V14.51"}),t("path",{d:"M13 13V13.01"}),t("path",{d:"M14 17V17.01"})),u={banner:{heading:"Your cookie choices",description:"We use necessary cookies to keep you signed in and secure. With your permission we also use cookies to remember your preferences and to understand how this service is used."},card:{heading:"Cookies on this site",description:"We use necessary cookies to keep you signed in. May we also use optional cookies for preferences and analytics?"},preferences:{heading:"Cookie preferences",description:"Choose which optional cookies we may use. You can change this at any time in your privacy settings."},saved:{heading:"",description:"Cookie choices saved. You can change them any time in your privacy settings."}};function _(){"undefined"!=typeof customElements&&["bs-cookie-consent","bs-button","bs-card","bs-chip-informative","bs-icon-button","bs-icon-tile","bs-ripple","bs-snackbar","bs-switch"].forEach((s=>{switch(s){case"bs-cookie-consent":customElements.get(e(s))||customElements.define(e(s),h);break;case"bs-button":customElements.get(e(s))||i();break;case"bs-card":customElements.get(e(s))||c();break;case"bs-chip-informative":customElements.get(e(s))||a();break;case"bs-icon-button":customElements.get(e(s))||r();break;case"bs-icon-tile":customElements.get(e(s))||b();break;case"bs-ripple":customElements.get(e(s))||l();break;case"bs-snackbar":customElements.get(e(s))||d();break;case"bs-switch":customElements.get(e(s))||p()}}))}_();const g=h,m=_;export{g as BsCookieConsent,m as defineCustomElement}
1
+ import{t as e,p as s,H as o,c as n,h as t}from"./p-CcAX4o5o.js";import{d as i}from"./p-9Y5WEZ6K.js";import{d as c}from"./p-mxDA3wKn.js";import{d as a}from"./p-Btp5hXvc.js";import{d as r}from"./p-C5CNfDjK.js";import{d as b}from"./p-Czo6AWrI.js";import{d as l}from"./p-Lj6_zdoI.js";import{d}from"./p-BwVQ-DXP.js";import{d as p}from"./p-DehAshCb.js";const h=s(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsAccept=n(this,"bsAccept"),this.bsReject=n(this,"bsReject"),this.bsCustomise=n(this,"bsCustomise"),this.bsSave=n(this,"bsSave"),this.bsChoice=n(this,"bsChoice"),this.bsClose=n(this,"bsClose"),this.bsManage=n(this,"bsManage")}type="banner";heading;headingLevel=2;description;policyUrl;policyLabel="Read the cookie policy";customiseLabel="Customise";rejectLabel="Reject optional";acceptLabel="Accept all";saveLabel="Save choices";changeLabel="Change";alwaysOnLabel="Always on";seeCookiesLabel="See {count} cookies";closeLabel="Close";categories=[{id:"necessary",label:"Strictly necessary",description:"Needed for sign-in, security and to keep the service running. These cannot be turned off.",required:!0,cookies:["Session cookie — keeps you signed in as you move between pages.","Security cookie — helps prevent fraud and unauthorized access.","Consent cookie — remembers your cookie consent choices."]},{id:"preferences",label:"Preferences",description:"Remember your language, theme and table layouts on this device.",enabled:!0},{id:"analytics",label:"Analytics",description:"Help us understand which features are used so we can improve them. Data is anonymised."},{id:"marketing",label:"Marketing",description:"Show relevant products on other websites."}];bsAccept;bsReject;bsCustomise;bsSave;bsChoice;bsClose;bsManage;choices={};open={};componentWillLoad(){this.resetChoices()}onCategoriesChange(){this.resetChoices()}resetChoices(){const e={};(this.categories??[]).forEach((s=>e[s.id]=!!s.required||!!s.enabled)),this.choices=e}all(e){const s={};return(this.categories??[]).forEach((o=>s[o.id]="required"===e?!!o.required:e)),s}get defaults(){return u[this.type]??u.banner}heading_(e){const s=Math.min(6,Math.max(1,Math.trunc(Number(this.headingLevel))||2));return t("h"+s,{part:"heading",id:"heading",class:{"bs-cookie-consent__heading":!0}},e)}policy(){return this.policyUrl?t("a",{part:"policy",class:"bs-cookie-consent__policy",href:this.policyUrl},this.policyLabel):null}customise(){return t("bs-button",{part:"customise",class:"bs-cookie-consent__text-button",variant:"subtle",onClick:()=>this.bsCustomise.emit()},this.customiseLabel)}reject(e="outlined"){return t("bs-button",{part:"reject",variant:e,onClick:()=>this.bsReject.emit({choices:this.all("required")})},this.rejectLabel)}accept(e="primary"){return t("bs-button",{part:"accept",variant:e,onClick:()=>this.bsAccept.emit({choices:this.all(!0)})},this.acceptLabel)}renderBanner(e){return t("bs-card",{part:"container",class:"bs-cookie-consent bs-cookie-consent--banner",surface:"base",role:"region","aria-labelledby":"heading"},t("div",{class:"bs-cookie-consent__banner"},t("div",{class:"bs-cookie-consent__banner-content"},t("bs-icon-tile",{part:"art",size:"lg"},t("slot",{name:"icon"},t(k,null))),t("div",{class:"bs-cookie-consent__copy"},this.heading_(this.heading??e.heading),t("p",{part:"description",class:"bs-cookie-consent__description"},this.description??e.description),this.policy())),t("div",{part:"actions",class:"bs-cookie-consent__actions bs-cookie-consent__actions--banner"},this.customise(),this.reject(),this.accept())))}renderCard(e){return t("bs-card",{part:"container",class:"bs-cookie-consent bs-cookie-consent--card",surface:"base",role:"region","aria-labelledby":"heading"},t("div",{class:"bs-cookie-consent__card"},t("div",{class:"bs-cookie-consent__head"},t("bs-icon-tile",{part:"art",size:"md"},t("slot",{name:"icon"},t(k,null))),this.heading_(this.heading??e.heading)),t("p",{part:"description",class:"bs-cookie-consent__description"},this.description??e.description),this.policy(),t("div",{class:"bs-cookie-consent__rule"}),t("div",{part:"actions",class:"bs-cookie-consent__actions bs-cookie-consent__actions--card"},this.customise(),t("span",{class:"bs-cookie-consent__spacer"}),this.reject(),this.accept())))}renderCategory(e,s){const o=!!this.open[e.id],n=e.cookies?.length??0,i="cookies-"+e.id;return[t("div",{part:"category",class:"bs-cookie-consent__category"},t("div",{class:{"bs-cookie-consent__category-head":!0,"bs-cookie-consent__category-head--switch":!e.required}},t("span",{class:"bs-cookie-consent__category-name"},e.label),e.required?t("bs-chip-informative",{size:"sm",color:"neutral"},this.alwaysOnLabel):t("bs-switch",{part:"switch",size:"md",ariaLabel:e.label,checked:!!this.choices[e.id],onBsChange:s=>{this.choices={...this.choices,[e.id]:s.detail},this.bsChoice.emit({id:e.id,enabled:s.detail})}})),e.description&&t("p",{class:"bs-cookie-consent__category-text"},e.description),n>0&&t("div",{class:"bs-cookie-consent__details"},t("button",{type:"button",class:"bs-cookie-consent__disclosure","aria-expanded":o+"","aria-controls":i,onClick:()=>this.open={...this.open,[e.id]:!o}},t("span",null,this.seeCookiesLabel.replace("{count}",n+"")),t("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},t("path",{d:o?"M6 15L12 9L18 15":"M6 9L12 15L18 9"}))),o&&t("ol",{id:i,class:"bs-cookie-consent__cookie-list"},e.cookies.map((e=>t("li",null,e)))))),!s&&t("div",{class:"bs-cookie-consent__rule"})]}renderPreferences(e){const s=this.categories??[];return t("bs-card",{part:"container",class:"bs-cookie-consent bs-cookie-consent--preferences",surface:"base",role:"group","aria-labelledby":"heading"},t("div",{class:"bs-cookie-consent__prefs"},t("div",{class:"bs-cookie-consent__head"},t("bs-icon-tile",{part:"art",size:"md"},t("slot",{name:"icon"},t(k,null))),this.heading_(this.heading??e.heading),t("span",{class:"bs-cookie-consent__spacer"}),t("bs-icon-button",{part:"close",variant:"subtle",size:"md",ariaLabel:this.closeLabel,onClick:()=>this.bsClose.emit()},t("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round","aria-hidden":"true"},t("path",{d:"M5 5L15 15M15 5L5 15"})))),t("p",{part:"description",class:"bs-cookie-consent__description"},this.description??e.description),s.map(((e,o)=>this.renderCategory(e,o===s.length-1))),t("div",{class:"bs-cookie-consent__rule"}),t("div",{part:"actions",class:"bs-cookie-consent__actions bs-cookie-consent__actions--prefs"},this.reject(),this.accept("outlined"),t("span",{class:"bs-cookie-consent__spacer"}),t("bs-button",{part:"save",variant:"primary",onClick:()=>this.bsSave.emit({choices:{...this.choices}})},this.saveLabel))))}renderSaved(e){return t("bs-snackbar",{part:"container",class:"bs-cookie-consent bs-cookie-consent--saved",actionLabel:this.changeLabel,actionVariant:"subtle",hideClose:!0,onBsAction:()=>this.bsManage.emit()},this.description??e.description)}render(){const e=this.defaults;switch(this.type){case"card":return this.renderCard(e);case"preferences":return this.renderPreferences(e);case"saved":return this.renderSaved(e);default:return this.renderBanner(e)}}static get watchers(){return{categories:[{onCategoriesChange:0}]}}static get style(){return":host{display:block;container-type:inline-size;max-width:100%;--bs-cookie-consent-width:420px;--bs-cookie-consent-bg:var(--bs-paper-bg-base);--bs-cookie-consent-radius:var(--bs-border-radius-150);--bs-cookie-consent-padding:var(--bs-spacing-200);--bs-cookie-consent-shadow:0 8px 8px var(--bs-elevation-higher);--bs-cookie-consent-color:var(--bs-text-default);--bs-cookie-consent-color-secondary:var(--bs-text-secondary);--bs-cookie-consent-link:var(--bs-text-link);--bs-cookie-consent-link-underline:var(--bs-border-info);--bs-cookie-consent-rule:var(--bs-border-default)}:host([type='card']){width:var(--bs-cookie-consent-width)}:host([type='preferences']){--bs-cookie-consent-width:560px;width:var(--bs-cookie-consent-width)}:host([type='saved']){--bs-cookie-consent-width:660px;width:var(--bs-cookie-consent-width)}.bs-cookie-consent--banner,.bs-cookie-consent--card,.bs-cookie-consent--preferences{--bs-card-bg:var(--bs-cookie-consent-bg);--bs-card-radius:var(--bs-cookie-consent-radius);--bs-card-padding:var(--bs-cookie-consent-padding);--bs-card-shadow:var(--bs-cookie-consent-shadow);color:var(--bs-cookie-consent-color)}.bs-cookie-consent p{margin:0}.bs-cookie-consent__glyph,::slotted([slot='icon']){width:var(--bs-cookie-consent-glyph-size, 24px);height:var(--bs-cookie-consent-glyph-size, 24px)}bs-icon-tile[size='md']{--bs-cookie-consent-glyph-size:16px}.bs-cookie-consent__heading{margin:0;font-size:var(--bs-font-size-2xl);font-weight:var(--bs-font-weight-bold);line-height:32px}.bs-cookie-consent__description{color:var(--bs-cookie-consent-color-secondary);font-size:var(--bs-font-size-md);line-height:24px}.bs-cookie-consent__policy{align-self:flex-start;border-bottom:1px solid var(--bs-cookie-consent-link-underline);color:var(--bs-cookie-consent-link);font-size:var(--bs-font-size-sm);line-height:20px;text-decoration:none}.bs-cookie-consent__policy:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-cookie-consent__rule{height:8px;background:linear-gradient(var(--bs-cookie-consent-rule), var(--bs-cookie-consent-rule)) center / 100% 1px no-repeat}.bs-cookie-consent__spacer{flex:1 1 0}.bs-cookie-consent__actions bs-button{--bs-button-height-md:var(--bs-spacing-550)}.bs-cookie-consent__text-button{--bs-button-subtle-color:var(--bs-text-action)}.bs-cookie-consent__actions--banner bs-button{min-width:140px}.bs-cookie-consent__actions bs-button[part='reject']{min-width:140px}.bs-cookie-consent__actions bs-button[part='accept']{min-width:103px}.bs-cookie-consent__actions--banner bs-button[part='accept']{min-width:140px}.bs-cookie-consent__actions bs-button[part='save']{min-width:127px}.bs-cookie-consent__actions bs-button[part='customise']{min-width:109px}.bs-cookie-consent__actions--banner bs-button[part='customise']{min-width:140px}.bs-cookie-consent__banner{display:flex;align-items:center;gap:var(--bs-spacing-200)}.bs-cookie-consent__banner-content{display:flex;align-items:flex-start;gap:var(--bs-spacing-200);flex:1 1 0;min-width:0}bs-icon-tile{flex:none}.bs-cookie-consent__copy{display:flex;flex-direction:column;align-items:flex-start;gap:var(--bs-spacing-100);min-width:0}.bs-cookie-consent__actions{display:flex;align-items:center;gap:var(--bs-spacing-100)}.bs-cookie-consent__actions--banner{flex:none;justify-content:flex-end}@container (max-width: 719px){.bs-cookie-consent__banner{flex-direction:column;align-items:stretch}.bs-cookie-consent__banner-content{flex-direction:column;gap:var(--bs-spacing-150)}.bs-cookie-consent__actions--banner{flex-direction:column-reverse;align-items:stretch}.bs-cookie-consent__actions--banner bs-button{--bs-button-width:100%}}.bs-cookie-consent__card{display:flex;flex-direction:column;gap:var(--bs-spacing-100)}.bs-cookie-consent__prefs{display:flex;flex-direction:column;gap:var(--bs-spacing-150)}.bs-cookie-consent__card .bs-cookie-consent__policy{margin-bottom:0}.bs-cookie-consent__head{display:flex;align-items:center;gap:10px}.bs-cookie-consent--preferences .bs-cookie-consent__head{gap:var(--bs-spacing-100)}.bs-cookie-consent__head .bs-cookie-consent__heading{min-width:0}.bs-cookie-consent__head bs-icon-button svg{width:20px;height:20px}.bs-cookie-consent__actions--card,.bs-cookie-consent__actions--prefs{gap:var(--bs-spacing-100)}.bs-cookie-consent__actions--card{align-items:flex-end;justify-content:space-between}.bs-cookie-consent__category{display:flex;flex-direction:column;gap:6px}.bs-cookie-consent__prefs>.bs-cookie-consent__description+.bs-cookie-consent__category{padding:6px 0}.bs-cookie-consent__category-head{display:flex;align-items:center;justify-content:space-between;gap:var(--bs-spacing-100)}.bs-cookie-consent__category-head--switch{min-height:48px}.bs-cookie-consent__category-head--switch+.bs-cookie-consent__category-text{margin-top:-6px}.bs-cookie-consent__category-name{font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-semibold);line-height:20px}.bs-cookie-consent__category-text{color:var(--bs-cookie-consent-color-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-cookie-consent__disclosure{display:inline-flex;align-items:center;gap:var(--bs-spacing-100);min-height:32px;padding:0;border:none;background:transparent;color:var(--bs-text-action);font-family:inherit;font-size:var(--bs-font-size-md);font-weight:var(--bs-font-weight-semibold);line-height:24px;cursor:pointer}.bs-cookie-consent__disclosure svg{width:24px;height:24px}.bs-cookie-consent__disclosure:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px;border-radius:var(--bs-border-radius-50)}.bs-cookie-consent__cookie-list{margin:0;padding-inline-start:21px;color:var(--bs-cookie-consent-color-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-cookie-consent--saved{display:block;--bs-snackbar-icon-size:32px;--bs-snackbar-gap:0px}.bs-cookie-consent--saved::part(action){--bs-button-subtle-color:var(--bs-snackbar-text-default);--bs-button-subtle-hover:color-mix(in srgb, var(--bs-snackbar-text-default) 16%, transparent);--bs-button-subtle-pressed:color-mix(in srgb, var(--bs-snackbar-text-default) 24%, transparent);--bs-button-height-sm:var(--bs-spacing-550);--bs-button-padding-x-sm:var(--bs-spacing-200)}"}},[769,"bs-cookie-consent",{type:[513],heading:[1],headingLevel:[2,"heading-level"],description:[1],policyUrl:[1,"policy-url"],policyLabel:[1,"policy-label"],customiseLabel:[1,"customise-label"],rejectLabel:[1,"reject-label"],acceptLabel:[1,"accept-label"],saveLabel:[1,"save-label"],changeLabel:[1,"change-label"],alwaysOnLabel:[1,"always-on-label"],seeCookiesLabel:[1,"see-cookies-label"],closeLabel:[1,"close-label"],categories:[16],choices:[32],open:[32]},void 0,{categories:[{onCategoriesChange:0}]}]),k=()=>t("svg",{class:"bs-cookie-consent__glyph",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},t("path",{d:"M20.5 12.5A8.5 8.5 0 1 1 11.5 3.5A3.2 3.2 0 0 0 15 7A3.2 3.2 0 0 0 18.5 9.5A3 3 0 0 0 20.5 12.5Z"}),t("path",{d:"M9 9V9.01"}),t("path",{d:"M8.5 14.5V14.51"}),t("path",{d:"M13 13V13.01"}),t("path",{d:"M14 17V17.01"})),u={banner:{heading:"Your cookie choices",description:"We use necessary cookies to keep you signed in and secure. With your permission we also use cookies to remember your preferences and to understand how this service is used."},card:{heading:"Cookies on this site",description:"We use necessary cookies to keep you signed in. May we also use optional cookies for preferences and analytics?"},preferences:{heading:"Cookie preferences",description:"Choose which optional cookies we may use. You can change this at any time in your privacy settings."},saved:{heading:"",description:"Cookie choices saved. You can change them any time in your privacy settings."}};function _(){"undefined"!=typeof customElements&&["bs-cookie-consent","bs-button","bs-card","bs-chip-informative","bs-icon-button","bs-icon-tile","bs-ripple","bs-snackbar","bs-switch"].forEach((s=>{switch(s){case"bs-cookie-consent":customElements.get(e(s))||customElements.define(e(s),h);break;case"bs-button":customElements.get(e(s))||i();break;case"bs-card":customElements.get(e(s))||c();break;case"bs-chip-informative":customElements.get(e(s))||a();break;case"bs-icon-button":customElements.get(e(s))||r();break;case"bs-icon-tile":customElements.get(e(s))||b();break;case"bs-ripple":customElements.get(e(s))||l();break;case"bs-snackbar":customElements.get(e(s))||d();break;case"bs-switch":customElements.get(e(s))||p()}}))}_();const g=h,m=_;export{g as BsCookieConsent,m as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as t,H as a,c as s,h as l}from"./p-CcAX4o5o.js";const o=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsSort=s(this,"bsSort"),this.bsRowSelect=s(this,"bsRowSelect")}columns=[];rows=[];sortColumn;sortDirection="asc";selectAllLabel="Select all rows";selectRowLabel="Select row";selectable=!1;striped=!1;cellRenderer;bsSort;bsRowSelect;selectedIds=new Set;onHeaderClick=e=>{e.sortable&&this.bsSort.emit({column:e.key,direction:this.sortColumn===e.key&&"asc"===this.sortDirection?"desc":"asc"})};onRowCheckboxChange=(e,t)=>{const a=t.target.checked,s=new Set(this.selectedIds);a?s.add(e.id):s.delete(e.id),this.selectedIds=s,this.bsRowSelect.emit({id:e.id,selected:a})};onSelectAllChange=e=>{const t=e.target.checked;this.selectedIds=t?new Set(this.rows.map((e=>e.id))):new Set;for(const e of this.rows)this.bsRowSelect.emit({id:e.id,selected:t})};async clearSelection(){const e=Array.from(this.selectedIds);this.selectedIds=new Set;for(const t of e)this.bsRowSelect.emit({id:t,selected:!1})}render(){return l("table",{key:"d24675d99b4bb7070646b7dd8a432d1395737be2",part:"table",class:"bs-data-table"},l("thead",{key:"6cd20167515acc4b9509a17584b8d6963f73b4d9",part:"head"},l("tr",{key:"df8433665b80da7f39c4ee11abe7250827ea0ceb"},this.selectable&&l("th",{key:"cfd133dd0044cef743f528ad2b48b7352be4c3d8",class:"bs-data-table__select-col"},this.rows.length>0&&l("input",{key:"930f6e772809bf3250912b78c17364ceda67a9a8",type:"checkbox","aria-label":this.selectAllLabel,checked:this.selectedIds.size>0&&this.selectedIds.size===this.rows.length,indeterminate:this.selectedIds.size>0&&this.selectedIds.size<this.rows.length,onChange:this.onSelectAllChange})),this.columns.map((e=>{const t=this.sortColumn===e.key;return l("th",{part:"header-cell",class:"bs-data-table__header-cell","aria-sort":e.sortable?t?"asc"===this.sortDirection?"ascending":"descending":"none":void 0},e.sortable?l("button",{type:"button",class:"bs-data-table__sort-button",onClick:()=>this.onHeaderClick(e)},e.label,t&&l("span",{class:"bs-data-table__sort-indicator"},"asc"===this.sortDirection?" ▲":" ▼")):e.label)})))),l("tbody",{key:"efafea945207fc1c29016ae066e0a2fce3ec5f6e",part:"body"},this.rows.map((e=>l("tr",{part:"row",class:"bs-data-table__row"},this.selectable&&l("td",{class:"bs-data-table__select-col"},l("input",{type:"checkbox","aria-label":this.selectRowLabel,checked:this.selectedIds.has(e.id),onChange:t=>this.onRowCheckboxChange(e,t)})),this.columns.map((t=>this.cellRenderer?l("td",{part:"cell",class:"bs-data-table__cell",innerHTML:this.cellRenderer(e,t)}):l("td",{part:"cell",class:"bs-data-table__cell"},l("slot",{name:`cell-${e.id}-${t.key}`},(e[t.key]??"")+"")))))))))}static get style(){return":host{display:block;--bs-data-table-cell-padding-y:var(--bs-spacing-200);--bs-data-table-cell-padding-x:var(--bs-spacing-300);--bs-data-table-stripe-bg:var(--bs-surface-container)}.bs-data-table{width:100%;border-collapse:collapse;font-family:inherit;font-size:var(--bs-font-size-sm);color:var(--bs-text-default)}.bs-data-table__header-cell{text-align:start;padding:var(--bs-data-table-cell-padding-y) var(--bs-data-table-cell-padding-x);border-bottom:1px solid var(--bs-border-default);font-weight:var(--bs-font-weight-semibold);color:var(--bs-text-secondary);white-space:nowrap}.bs-data-table__sort-button{display:inline-flex;align-items:center;border:none;background:none;padding:0;font:inherit;color:inherit;cursor:pointer;user-select:none}.bs-data-table__sort-button:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-data-table__sort-indicator{color:var(--bs-text-action)}.bs-data-table__row:hover{background:var(--bs-surface-hover)}:host([striped]) .bs-data-table__row:nth-child(even){background:var(--bs-data-table-stripe-bg)}:host([striped]) .bs-data-table__row:nth-child(even):hover{background:var(--bs-surface-hover)}.bs-data-table__cell{padding:var(--bs-data-table-cell-padding-y) var(--bs-data-table-cell-padding-x);border-bottom:1px solid var(--bs-border-default)}.bs-data-table__select-col{width:var(--bs-spacing-500);padding:var(--bs-data-table-cell-padding-y) var(--bs-data-table-cell-padding-x);border-bottom:1px solid var(--bs-border-default)}"}},[769,"bs-data-table",{columns:[16],rows:[16],sortColumn:[1,"sort-column"],sortDirection:[1,"sort-direction"],selectAllLabel:[1,"select-all-label"],selectRowLabel:[1,"select-row-label"],selectable:[4],striped:[516],cellRenderer:[16],selectedIds:[32],clearSelection:[64]}]);function c(){"undefined"!=typeof customElements&&["bs-data-table"].forEach((t=>{"bs-data-table"===t&&(customElements.get(e(t))||customElements.define(e(t),o))}))}c();const r=o,d=c;export{r as BsDataTable,d as defineCustomElement}
1
+ import{t,p as e,H as a,c as s,h as l}from"./p-CcAX4o5o.js";const o=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.bsSort=s(this,"bsSort"),this.bsRowSelect=s(this,"bsRowSelect")}columns=[];rows=[];sortColumn;sortDirection="asc";selectAllLabel="Select all rows";selectRowLabel="Select row";selectable=!1;striped=!1;cellRenderer;bsSort;bsRowSelect;selectedIds=new Set;onHeaderClick=t=>{t.sortable&&this.bsSort.emit({column:t.key,direction:this.sortColumn===t.key&&"asc"===this.sortDirection?"desc":"asc"})};onRowCheckboxChange=(t,e)=>{const a=e.target.checked,s=new Set(this.selectedIds);a?s.add(t.id):s.delete(t.id),this.selectedIds=s,this.bsRowSelect.emit({id:t.id,selected:a})};onSelectAllChange=t=>{const e=t.target.checked;this.selectedIds=e?new Set(this.rows.map((t=>t.id))):new Set;for(const t of this.rows)this.bsRowSelect.emit({id:t.id,selected:e})};async clearSelection(){const t=Array.from(this.selectedIds);this.selectedIds=new Set;for(const e of t)this.bsRowSelect.emit({id:e,selected:!1})}render(){return l("table",{key:"86d56c6fb30816c7ff0035b6d53fafc999bc1266",part:"table",class:"bs-data-table"},l("thead",{key:"058e68b03dafaad071168a093978664405caf545",part:"head"},l("tr",{key:"2621d2f1d4bc20bc152d99157b6f3682b7f8c52d"},this.selectable&&l("th",{key:"3c701733d816861d9f18996fc02e42fe9e5e2a7c",class:"bs-data-table__select-col"},this.rows.length>0&&l("input",{key:"21985f46def70a01a0a1556b0fe0aef0a954ab25",type:"checkbox","aria-label":this.selectAllLabel,checked:this.selectedIds.size>0&&this.selectedIds.size===this.rows.length,indeterminate:this.selectedIds.size>0&&this.selectedIds.size<this.rows.length,onChange:this.onSelectAllChange})),this.columns.map((t=>{const e=this.sortColumn===t.key;return l("th",{part:"header-cell",class:"bs-data-table__header-cell","aria-sort":t.sortable?e?"asc"===this.sortDirection?"ascending":"descending":"none":void 0},t.sortable?l("button",{type:"button",class:"bs-data-table__sort-button",onClick:()=>this.onHeaderClick(t)},t.label,e&&l("span",{class:"bs-data-table__sort-indicator"},"asc"===this.sortDirection?" ▲":" ▼")):t.label)})))),l("tbody",{key:"a80faf9643c27ea641794f117ad9ffcdf7caed7f",part:"body"},this.rows.map((t=>l("tr",{part:"row",class:"bs-data-table__row"},this.selectable&&l("td",{class:"bs-data-table__select-col"},l("input",{type:"checkbox","aria-label":this.selectRowLabel,checked:this.selectedIds.has(t.id),onChange:e=>this.onRowCheckboxChange(t,e)})),this.columns.map((e=>this.cellRenderer?l("td",{part:"cell",class:"bs-data-table__cell",innerHTML:this.cellRenderer(t,e)}):l("td",{part:"cell",class:"bs-data-table__cell"},l("slot",{name:`cell-${t.id}-${e.key}`},(t[e.key]??"")+"")))))))))}static get style(){return":host{display:block;--bs-data-table-cell-padding-y:var(--bs-spacing-200);--bs-data-table-cell-padding-x:var(--bs-spacing-300);--bs-data-table-stripe-bg:var(--bs-surface-container)}.bs-data-table{width:100%;border-collapse:collapse;font-family:inherit;font-size:var(--bs-font-size-sm);color:var(--bs-text-default)}.bs-data-table__header-cell{text-align:start;padding:var(--bs-data-table-cell-padding-y) var(--bs-data-table-cell-padding-x);border-bottom:1px solid var(--bs-border-default);font-weight:var(--bs-font-weight-semibold);color:var(--bs-text-secondary);white-space:nowrap}.bs-data-table__sort-button{display:inline-flex;align-items:center;border:none;background:none;padding:0;font:inherit;color:inherit;cursor:pointer;user-select:none}.bs-data-table__sort-button:focus-visible{outline:2px solid var(--bs-border-neutral-focus);outline-offset:2px}.bs-data-table__sort-indicator{color:var(--bs-text-action)}.bs-data-table__row:hover{background:var(--bs-surface-hover)}:host([striped]) .bs-data-table__row:nth-child(even){background:var(--bs-data-table-stripe-bg)}:host([striped]) .bs-data-table__row:nth-child(even):hover{background:var(--bs-surface-hover)}.bs-data-table__cell{padding:var(--bs-data-table-cell-padding-y) var(--bs-data-table-cell-padding-x);border-bottom:1px solid var(--bs-border-default)}.bs-data-table__select-col{width:var(--bs-spacing-500);padding:var(--bs-data-table-cell-padding-y) var(--bs-data-table-cell-padding-x);border-bottom:1px solid var(--bs-border-default)}"}},[769,"bs-data-table",{columns:[16],rows:[16],sortColumn:[1,"sort-column"],sortDirection:[1,"sort-direction"],selectAllLabel:[1,"select-all-label"],selectRowLabel:[1,"select-row-label"],selectable:[4],striped:[516],cellRenderer:[16],selectedIds:[32],clearSelection:[64]}]);function c(){"undefined"!=typeof customElements&&["bs-data-table"].forEach((e=>{"bs-data-table"===e&&(customElements.get(t(e))||customElements.define(t(e),o))}))}c();const r=o,d=c;export{r as BsDataTable,d as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as t,H as a,c as s,h as i}from"./p-CcAX4o5o.js";import{d as r}from"./p-mxDA3wKn.js";import{d as n}from"./p-EQrsaDKp.js";import{d}from"./p-DQY3n0nR.js";import{d as o}from"./p-B1pqQBKC.js";import{d as c}from"./p-DoCH1kV9.js";import{d as b}from"./p-bOSY8sKI.js";import{d as l}from"./p-ESiaIgGU.js";import{d as p}from"./p-5OSJi5Hq.js";const h=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsChange=s(this,"bsChange"),this.internals=this.attachInternals()}get el(){return this}internals;initialValue="";initialStart="";initialEnd="";name;range=!1;value="";start="";end="";min;max;locale="en-GB";firstDayOfWeek=0;startLabel="Start date";endLabel="End date";monthLabel="Month";yearLabel="Year";previousLabel="Previous month";nextLabel="Next month";bsChange;viewDate=m(new Date);focusedIso="";hoverIso="";draft={};openMenu=null;shouldFocusDay=!1;menuToScroll=!1;componentWillLoad(){this.initialValue=this.value,this.initialStart=this.start,this.initialEnd=this.end,this.showSelection(),this.syncFormValue()}componentDidRender(){if(this.menuToScroll){this.menuToScroll=!1;const e=()=>{const e=this.el.shadowRoot?.querySelector(".bs-datepicker__menu"),t=e?.querySelector("[data-current]");e&&t&&(e.scrollTop=t.offsetTop-e.clientHeight/2+t.offsetHeight/2)};requestAnimationFrame((()=>requestAnimationFrame(e)))}if(!this.shouldFocusDay)return;this.shouldFocusDay=!1;const e=this.el.shadowRoot.querySelector(`[data-date="${this.focusedIso}"]`);e?.focus()}onSelectionChange(){this.syncFormValue()}onSelectionJump(){this.showSelection()}formResetCallback(){this.value=this.initialValue,this.start=this.initialStart,this.end=this.initialEnd,this.draft={}}showSelection(){const e=v(this.range?this.start:this.value);e&&(this.viewDate=m(e))}syncFormValue(){if(this.internals?.setFormValue)if(this.range){if(!this.name)return void this.internals.setFormValue(null);const e=new FormData;e.append(this.name+"-start",this.start??""),e.append(this.name+"-end",this.end??""),this.internals.setFormValue(e)}else this.internals.setFormValue(this.value??"")}isDisabled(e){const t=v(this.min),a=v(this.max);return!!t&&e<t||!!a&&e>a}selectDay(e){if(this.isDisabled(e))return;const t=k(e);if(e.getMonth()===this.viewDate.getMonth()&&e.getFullYear()===this.viewDate.getFullYear()||(this.viewDate=m(e)),this.focusedIso=t,!this.range)return this.value=t,void this.bsChange.emit({value:t});!this.start||this.end||t<this.start?(this.start=t,this.end=""):this.end=t,this.hoverIso="",this.draft={},this.bsChange.emit({start:this.start,end:this.end})}commitDraft(e){const t=this.draft[e];if(void 0===t)return;const a=v(t),s={...this.draft};if(delete s[e],this.draft=s,!a||this.isDisabled(a))return;let i="start"===e?k(a):this.start,r="end"===e?k(a):this.end;i&&r&&r<i&&("start"===e?r="":i=""),this.start=i,this.end=r,this.showSelection(),this.bsChange.emit({start:i,end:r})}moveView(e){const t=this.viewDate;this.viewDate=new Date(t.getFullYear(),t.getMonth()+e,1)}onKeyDown=(e,t)=>{const a={ArrowLeft:-1,ArrowRight:1,ArrowUp:-7,ArrowDown:7};let s;if(e.key in a)s=g(t,a[e.key]);else if("Home"===e.key||"End"===e.key){const a=(t.getDay()-this.safeFirstDay+7)%7;s=g(t,"Home"===e.key?-a:6-a)}else{if("PageUp"!==e.key&&"PageDown"!==e.key)return;{const a="PageUp"===e.key?-1:1;s=function(e,t){const a=new Date(e.getFullYear(),e.getMonth()+t,1),s=new Date(a.getFullYear(),a.getMonth()+1,0).getDate();return new Date(a.getFullYear(),a.getMonth(),Math.min(e.getDate(),s))}(t,e.shiftKey?12*a:a)}}e.preventDefault(),this.focusedIso=k(s),this.viewDate=m(s),this.shouldFocusDay=!0};get safeFirstDay(){const e=Math.trunc(Number(this.firstDayOfWeek));return Number.isFinite(e)?(e%7+7)%7:0}get fmt(){const e=this.locale||"en-GB";try{return e}catch{return"en-GB"}}formatField(e){const t=v(e);return t?new Intl.DateTimeFormat(this.fmt,{day:"numeric",month:"short",year:"numeric"}).format(t):""}titleText(){const e=this.range?void 0:v(this.value);return e?new Intl.DateTimeFormat(this.fmt,{day:"numeric",month:"long",year:"numeric"}).format(e):new Intl.DateTimeFormat(this.fmt,{month:"long",year:"numeric"}).format(this.viewDate)}monthOptions(){const e=new Intl.DateTimeFormat(this.fmt,{month:"long"});return Array.from({length:12},((t,a)=>({label:e.format(new Date(2e3,a,1)),value:a+""})))}yearOptions(){const e=this.viewDate.getFullYear(),t=v(this.min)?.getFullYear()??e-100,a=v(this.max)?.getFullYear()??e+100,s=[];for(let i=Math.min(t,e);i<=Math.max(a,e);i++)s.push({label:i+"",value:i+""});return s}weekdays(){const e=new Intl.DateTimeFormat(this.fmt,{weekday:"short"});return Array.from({length:7},((t,a)=>e.format(new Date(2023,0,1+(this.safeFirstDay+a)%7))))}gridDays(){const e=this.viewDate,t=(e.getDay()-this.safeFirstDay+7)%7,a=g(e,-t);return Array.from({length:42},((e,t)=>g(a,t)))}renderHeader(){if(this.range){const e=(e,t)=>i("bs-input",{label:t,placeholder:"YYYY-MM-DD",value:this.draft[e]??this.formatField(this[e]),onBsInput:t=>this.draft={...this.draft,[e]:t.detail},onBsChange:()=>this.commitDraft(e),onFocusin:()=>{void 0===this.draft[e]&&(this.draft={...this.draft,[e]:this[e]})},onFocusout:()=>this.commitDraft(e)});return i("div",{part:"header",class:"bs-datepicker__header bs-datepicker__header--range"},e("start",this.startLabel),e("end",this.endLabel))}return i("div",{part:"header",class:"bs-datepicker__header"},this.renderDropdown("month",this.monthLabel,this.monthOptions(),this.viewDate.getMonth()+"",(e=>this.viewDate=new Date(this.viewDate.getFullYear(),Number(e),1))),this.renderDropdown("year",this.yearLabel,this.yearOptions(),this.viewDate.getFullYear()+"",(e=>this.viewDate=new Date(Number(e),this.viewDate.getMonth(),1))))}renderDropdown(e,t,a,s,r){const n=this.openMenu===e,d=()=>{this.openMenu=null};return i("div",{class:"bs-datepicker__dropdown",onKeyDown:e=>{"Escape"===e.key&&n&&(d(),e.currentTarget.querySelector("bs-input")?.focus())},onFocusout:e=>{const t=e.relatedTarget;!n||t&&e.currentTarget.contains(t)||d()}},i("bs-input",{type:"dropdown",class:"bs-datepicker__select",label:t,value:a.find((e=>e.value===s))?.label??"",open:n,onBsOpen:()=>{this.menuToScroll=!n,this.openMenu=n?null:e}}),n&&i("bs-menu",{part:"menu",class:"bs-datepicker__menu",role:"listbox"},a.map((e=>i("bs-menu-item",{key:e.value,"data-current":e.value===s?"":void 0,"aria-current":e.value===s?"true":void 0,onBsSelect:()=>{r(e.value),d(),this.el.shadowRoot.querySelector(`.bs-datepicker__dropdown bs-input[label="${t}"]`)?.focus()}},i("span",{class:"bs-datepicker__option"},i("span",null,e.label),e.value===s&&i("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},i("path",{d:"M5 12.5L10 17.5L19 7.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))))))))}render(){const e=this.gridDays(),t=k(new Date),a=this.range?this.start:this.value,s=this.range?this.end:"",r=this.range&&this.start&&!this.end&&this.hoverIso>this.start?this.hoverIso:s,n=e.some((e=>k(e)===this.focusedIso&&e.getMonth()===this.viewDate.getMonth()))?this.focusedIso:this.defaultTabbable(e),d=e=>!!a&&!!r&&e>a&&e<r,o=this.weekdays();return i("bs-card",{key:"5dfa1f91fce2714fbaa120c0c159858dd1f22f77",part:"container",class:"bs-datepicker",surface:"raised"},i("div",{key:"d5683ce23acd1f07a9c382254d0e39cb7caf0d9a",class:"bs-datepicker__body"},this.renderHeader(),i("div",{key:"da658aaa5410916b223708890e3f0d012c297d08",part:"nav",class:"bs-datepicker__nav"},i("button",{key:"99df9c289bb4a6e5901aabc9ad294122297ecd05",part:"prev",type:"button",class:"bs-datepicker__nav-button","aria-label":this.previousLabel,onClick:()=>this.moveView(-1)},i("svg",{key:"db686789ae2ca6a9600bd6477e9b56a50adf722e",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},i("path",{key:"99d27b25366ee163c9dda8caeed0630f1c6c6157",d:"M15 18L9 12L15 6",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))),i("div",{key:"297710ca625a8163abca541ca11b858e61431ee0",part:"title",class:"bs-datepicker__title","aria-live":"polite"},this.titleText()),i("button",{key:"26e5b15959adcea0a842f59e85b5bca6bb7ec6a7",part:"next",type:"button",class:"bs-datepicker__nav-button","aria-label":this.nextLabel,onClick:()=>this.moveView(1)},i("svg",{key:"bef119a10f7e01e8c58e8fd3690417442528d071",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},i("path",{key:"d6566754ab7cf16f2e82127c594675c906ce6397",d:"M9 18L15 12L9 6",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})))),i("div",{key:"c9f559c3ba6c929160801ece12d7ed61cb3cbe4b",part:"grid",class:"bs-datepicker__grid",role:"grid","aria-label":this.titleText()},i("div",{key:"214302e6ea6693ba9e4a2e908fa982f0df0d926a",class:"bs-datepicker__row",role:"row"},o.map((e=>i("div",{part:"weekday",class:"bs-datepicker__weekday",role:"columnheader"},e)))),Array.from({length:6},((r,o)=>{const c=e.slice(7*o,7*o+7);return i("div",{class:"bs-datepicker__row",role:"row"},c.map(((e,r)=>{const o=k(e),b=e.getMonth()!==this.viewDate.getMonth(),l=o===a||!!s&&o===s,p=d(o),h={"bs-datepicker__cell":!0,"bs-datepicker__cell--in-range":p,"bs-datepicker__cell--band-start":p&&!(r>0&&d(k(c[r-1]))),"bs-datepicker__cell--band-end":p&&!(r<6&&d(k(c[r+1])))},u=["day",l&&"selected",p&&"in-range",b&&"outside",o===t&&"today"].filter(Boolean).join(" ");return i("div",{class:h,role:"gridcell","aria-selected":l||p?"true":"false"},i("button",{part:u,type:"button",class:{"bs-datepicker__day":!0,"bs-datepicker__day--selected":l,"bs-datepicker__day--in-range":p,"bs-datepicker__day--outside":b,"bs-datepicker__day--today":o===t},"data-date":o,tabindex:o===n?0:-1,disabled:this.isDisabled(e),"aria-current":o===t?"date":void 0,"aria-label":new Intl.DateTimeFormat(this.fmt,{weekday:"long",day:"2-digit",month:"long",year:"numeric"}).format(e),onClick:()=>this.selectDay(e),onKeyDown:t=>this.onKeyDown(t,e),onMouseEnter:()=>{this.range&&this.start&&!this.end&&(this.hoverIso=o)}},(e.getDate()+"").padStart(2,"0")))})))})))))}defaultTabbable(e){const t=t=>e.some((e=>k(e)===t&&e.getMonth()===this.viewDate.getMonth())),a=this.range?this.start:this.value;if(a&&t(a))return a;const s=k(new Date);return t(s)?s:k(this.viewDate)}static get formAssociated(){return!0}static get watchers(){return{value:[{onSelectionChange:0},{onSelectionJump:0}],start:[{onSelectionChange:0},{onSelectionJump:0}],end:[{onSelectionChange:0}],range:[{onSelectionChange:0}],name:[{onSelectionChange:0}]}}static get style(){return":host{display:inline-block;--bs-datepicker-width:364px;--bs-datepicker-bg:var(--bs-paper-bg-raised);--bs-datepicker-radius:var(--bs-border-radius-150);--bs-datepicker-padding:var(--bs-spacing-200);--bs-datepicker-gap:var(--bs-spacing-150);--bs-datepicker-shadow:var(--bs-shadow-md);--bs-datepicker-menu-max-height:280px;--bs-datepicker-day-size:var(--bs-spacing-550);--bs-datepicker-day-radius:var(--bs-border-radius-100);--bs-datepicker-day-gap:var(--bs-spacing-50);--bs-datepicker-band-bridge:var(--bs-spacing-50);--bs-datepicker-font-size:var(--bs-font-size-md);--bs-datepicker-line-height:var(--bs-line-height-body-md);--bs-datepicker-weekday-font-size:var(--bs-font-size-sm);--bs-datepicker-weekday-line-height:var(--bs-line-height-body-sm);--bs-datepicker-color:var(--bs-text-default);--bs-datepicker-color-muted:var(--bs-text-muted);--bs-datepicker-color-weekday:var(--bs-text-secondary);--bs-datepicker-color-disabled:var(--bs-text-on-disabled);--bs-datepicker-hover:var(--bs-surface-hover);--bs-datepicker-pressed:var(--bs-surface-pressed);--bs-datepicker-focus-bg:var(--bs-surface-focus);--bs-datepicker-selected-bg:var(--bs-color-primary-default);--bs-datepicker-selected-bg-hover:var(--bs-color-primary-hover);--bs-datepicker-selected-bg-pressed:var(--bs-color-primary-pressed);--bs-datepicker-selected-bg-focus:var(--bs-color-primary-focused);--bs-datepicker-selected-bg-disabled:var(--bs-surface-action-disabled);--bs-datepicker-selected-color:var(--bs-text-on-action);--bs-datepicker-range-bg:var(--bs-color-primary-container);--bs-datepicker-today-border:var(--bs-border-primary);--bs-datepicker-focus-ring-color:var(--bs-border-neutral-focus)}.bs-datepicker{width:var(--bs-datepicker-width);max-width:100%;color:var(--bs-datepicker-color);font-size:var(--bs-datepicker-font-size);--bs-card-bg:var(--bs-datepicker-bg);--bs-card-radius:var(--bs-datepicker-radius);--bs-card-padding:var(--bs-datepicker-padding);--bs-card-shadow:var(--bs-datepicker-shadow);--bs-card-overflow:visible}.bs-datepicker__body{display:flex;flex-direction:column;gap:var(--bs-datepicker-gap)}.bs-datepicker__header{display:flex;align-items:flex-start;gap:var(--bs-spacing-100)}.bs-datepicker__header--range>bs-input{--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)}.bs-datepicker__header>bs-input{flex:1 1 0;min-width:0}.bs-datepicker__select::part(label){position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.bs-datepicker__dropdown{position:relative;flex:1 1 0;min-width:0}.bs-datepicker__dropdown bs-input{width:100%}.bs-datepicker__menu{position:absolute;top:calc(100% + var(--bs-spacing-50));inset-inline:0;z-index:2;max-height:var(--bs-datepicker-menu-max-height);overflow-y:auto;border-radius:var(--bs-border-radius-100);background:var(--bs-surface-raised);box-shadow:var(--bs-shadow-md);--bs-menu-shadow:none}.bs-datepicker__menu bs-menu-item{--bs-menu-item-color:var(--bs-datepicker-color)}.bs-datepicker__menu bs-menu-item::part(label){flex:1;text-align:start}.bs-datepicker__option{display:flex;align-items:center;justify-content:space-between;gap:var(--bs-spacing-100)}.bs-datepicker__option svg{width:20px;height:20px;flex:none}.bs-datepicker__nav{display:flex;align-items:center;justify-content:space-between}.bs-datepicker__title{font-weight:var(--bs-font-weight-semibold);line-height:calc(var(--bs-datepicker-line-height) * 1px)}.bs-datepicker__nav-button{display:flex;align-items:center;justify-content:center;width:var(--bs-spacing-600);height:var(--bs-spacing-600);padding:0;border:none;border-radius:var(--bs-datepicker-day-radius);background:transparent;color:var(--bs-icon-default);cursor:pointer}.bs-datepicker__nav-button svg{width:24px;height:24px}.bs-datepicker__nav-button:hover{background:var(--bs-datepicker-hover)}.bs-datepicker__grid{display:flex;flex-direction:column;gap:var(--bs-datepicker-day-gap)}.bs-datepicker__row{display:grid;grid-template-columns:repeat(7, var(--bs-datepicker-day-size));justify-content:space-between}.bs-datepicker__weekday{display:flex;align-items:center;justify-content:center;height:var(--bs-datepicker-day-size);color:var(--bs-datepicker-color-weekday);font-size:var(--bs-datepicker-weekday-font-size);font-weight:var(--bs-font-weight-semibold);line-height:calc(var(--bs-datepicker-weekday-line-height) * 1px)}.bs-datepicker__cell{display:flex;justify-content:center}.bs-datepicker__cell--in-range{background:var(--bs-datepicker-range-bg);box-shadow:calc(var(--bs-datepicker-band-bridge) + 1px) 0 0 var(--bs-datepicker-range-bg)}.bs-datepicker__cell--band-start{border-start-start-radius:var(--bs-datepicker-day-radius);border-end-start-radius:var(--bs-datepicker-day-radius)}.bs-datepicker__cell--band-end{border-start-end-radius:var(--bs-datepicker-day-radius);border-end-end-radius:var(--bs-datepicker-day-radius);box-shadow:none}.bs-datepicker__day{width:var(--bs-datepicker-day-size);height:var(--bs-datepicker-day-size);padding:0;border:none;border-radius:var(--bs-datepicker-day-radius);background:transparent;color:var(--bs-datepicker-color);font-family:inherit;font-size:var(--bs-datepicker-font-size);line-height:calc(var(--bs-datepicker-line-height) * 1px);cursor:pointer}.bs-datepicker__day--outside{color:var(--bs-datepicker-color-muted)}.bs-datepicker__day--today{box-shadow:inset 0 0 0 1px var(--bs-datepicker-today-border)}.bs-datepicker__day:not(:disabled):hover{background:var(--bs-datepicker-hover)}.bs-datepicker__day:not(:disabled):active{background:var(--bs-datepicker-pressed)}.bs-datepicker__day--in-range:not(:disabled):hover,.bs-datepicker__day--in-range:not(:disabled):active{background:var(--bs-datepicker-range-bg)}.bs-datepicker__day--selected,.bs-datepicker__day--selected.bs-datepicker__day--outside{background:var(--bs-datepicker-selected-bg);color:var(--bs-datepicker-selected-color)}.bs-datepicker__day--selected:not(:disabled):hover{background:var(--bs-datepicker-selected-bg-hover)}.bs-datepicker__day--selected:not(:disabled):active{background:var(--bs-datepicker-selected-bg-pressed)}.bs-datepicker__day:disabled{color:var(--bs-datepicker-color-disabled);cursor:not-allowed}.bs-datepicker__day--selected:disabled{background:var(--bs-datepicker-selected-bg-disabled)}.bs-datepicker__day:focus-visible{background:var(--bs-datepicker-focus-bg);outline:2px solid var(--bs-datepicker-focus-ring-color);outline-offset:0}.bs-datepicker__day--selected:focus-visible{background:var(--bs-datepicker-selected-bg-focus)}.bs-datepicker__nav-button:focus-visible{outline:2px solid var(--bs-datepicker-focus-ring-color);outline-offset:2px}"}},[577,"bs-datepicker",{name:[513],range:[516],value:[1537],start:[1537],end:[1537],min:[1],max:[1],locale:[1],firstDayOfWeek:[2,"first-day-of-week"],startLabel:[1,"start-label"],endLabel:[1,"end-label"],monthLabel:[1,"month-label"],yearLabel:[1,"year-label"],previousLabel:[1,"previous-label"],nextLabel:[1,"next-label"],viewDate:[32],focusedIso:[32],hoverIso:[32],draft:[32],openMenu:[32]},void 0,{value:[{onSelectionChange:0},{onSelectionJump:0}],start:[{onSelectionChange:0},{onSelectionJump:0}],end:[{onSelectionChange:0}],range:[{onSelectionChange:0}],name:[{onSelectionChange:0}]}]);function u(e){return(e+"").padStart(2,"0")}function k(e){return`${e.getFullYear()}-${u(e.getMonth()+1)}-${u(e.getDate())}`}function v(e){const t=/^(\d{4})-(\d{2})-(\d{2})$/.exec((e??"").trim());if(!t)return;const a=new Date(Number(t[1]),Number(t[2])-1,Number(t[3]));return k(a)===`${t[1]}-${t[2]}-${t[3]}`?a:void 0}function m(e){return new Date(e.getFullYear(),e.getMonth(),1)}function g(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)}function f(){"undefined"!=typeof customElements&&["bs-datepicker","bs-card","bs-chip-informative","bs-icon-button","bs-input","bs-menu","bs-menu-item","bs-ripple","bs-spinner"].forEach((t=>{switch(t){case"bs-datepicker":customElements.get(e(t))||customElements.define(e(t),h);break;case"bs-card":customElements.get(e(t))||r();break;case"bs-chip-informative":customElements.get(e(t))||n();break;case"bs-icon-button":customElements.get(e(t))||d();break;case"bs-input":customElements.get(e(t))||o();break;case"bs-menu":customElements.get(e(t))||c();break;case"bs-menu-item":customElements.get(e(t))||b();break;case"bs-ripple":customElements.get(e(t))||l();break;case"bs-spinner":customElements.get(e(t))||p()}}))}f();const _=h,y=f;export{_ as BsDatepicker,y as defineCustomElement}
1
+ import{t as e,p as t,H as s,c as a,h as i}from"./p-CcAX4o5o.js";import{d as r}from"./p-mxDA3wKn.js";import{d as n}from"./p-Btp5hXvc.js";import{d}from"./p-C5CNfDjK.js";import{d as o}from"./p-BRCMyssd.js";import{d as c}from"./p-CFzdwJ2g.js";import{d as b}from"./p-hg8kUgz5.js";import{d as l}from"./p-Lj6_zdoI.js";import{d as p}from"./p-DikZ1mnx.js";const h=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsChange=a(this,"bsChange"),this.internals=this.attachInternals()}get el(){return this}internals;initialValue="";initialStart="";initialEnd="";name;range=!1;value="";start="";end="";min;max;locale="en-GB";firstDayOfWeek=0;startLabel="Start date";endLabel="End date";monthLabel="Month";yearLabel="Year";previousLabel="Previous month";nextLabel="Next month";bsChange;viewDate=f(new Date);focusedIso="";hoverIso="";draft={};openMenu=null;shouldFocusDay=!1;menuToScroll=!1;componentWillLoad(){this.initialValue=this.value,this.initialStart=this.start,this.initialEnd=this.end,this.showSelection(),this.syncFormValue()}componentDidRender(){if(this.menuToScroll){this.menuToScroll=!1;const e=()=>{const e=this.el.shadowRoot?.querySelector(".bs-datepicker__menu"),t=e?.querySelector("[data-current]");e&&t&&(e.scrollTop=t.offsetTop-e.clientHeight/2+t.offsetHeight/2)};requestAnimationFrame((()=>requestAnimationFrame(e)))}if(!this.shouldFocusDay)return;this.shouldFocusDay=!1;const e=this.el.shadowRoot.querySelector(`[data-date="${this.focusedIso}"]`);e?.focus()}onSelectionChange(){this.syncFormValue()}onSelectionJump(){this.showSelection()}formResetCallback(){this.value=this.initialValue,this.start=this.initialStart,this.end=this.initialEnd,this.draft={}}showSelection(){const e=v(this.range?this.start:this.value);e&&(this.viewDate=f(e))}syncFormValue(){if(this.internals?.setFormValue)if(this.range){if(!this.name)return void this.internals.setFormValue(null);const e=new FormData;e.append(this.name+"-start",this.start??""),e.append(this.name+"-end",this.end??""),this.internals.setFormValue(e)}else this.internals.setFormValue(this.value??"")}isDisabled(e){const t=v(this.min),s=v(this.max);return!!t&&e<t||!!s&&e>s}selectDay(e){if(this.isDisabled(e))return;const t=k(e);if(e.getMonth()===this.viewDate.getMonth()&&e.getFullYear()===this.viewDate.getFullYear()||(this.viewDate=f(e)),this.focusedIso=t,!this.range)return this.value=t,void this.bsChange.emit({value:t});!this.start||this.end||t<this.start?(this.start=t,this.end=""):this.end=t,this.hoverIso="",this.draft={},this.bsChange.emit({start:this.start,end:this.end})}commitDraft(e){const t=this.draft[e];if(void 0===t)return;const s=v(t),a={...this.draft};if(delete a[e],this.draft=a,!s||this.isDisabled(s))return;let i="start"===e?k(s):this.start,r="end"===e?k(s):this.end;i&&r&&r<i&&("start"===e?r="":i=""),this.start=i,this.end=r,this.showSelection(),this.bsChange.emit({start:i,end:r})}moveView(e){const t=this.viewDate;this.viewDate=new Date(t.getFullYear(),t.getMonth()+e,1)}onKeyDown=(e,t)=>{const s={ArrowLeft:-1,ArrowRight:1,ArrowUp:-7,ArrowDown:7};let a;if(e.key in s)a=g(t,s[e.key]);else if("Home"===e.key||"End"===e.key){const s=(t.getDay()-this.safeFirstDay+7)%7;a=g(t,"Home"===e.key?-s:6-s)}else{if("PageUp"!==e.key&&"PageDown"!==e.key)return;{const s="PageUp"===e.key?-1:1;a=function(e,t){const s=new Date(e.getFullYear(),e.getMonth()+t,1),a=new Date(s.getFullYear(),s.getMonth()+1,0).getDate();return new Date(s.getFullYear(),s.getMonth(),Math.min(e.getDate(),a))}(t,e.shiftKey?12*s:s)}}e.preventDefault(),this.focusedIso=k(a),this.viewDate=f(a),this.shouldFocusDay=!0};get safeFirstDay(){const e=Math.trunc(Number(this.firstDayOfWeek));return Number.isFinite(e)?(e%7+7)%7:0}get fmt(){const e=this.locale||"en-GB";try{return e}catch{return"en-GB"}}formatField(e){const t=v(e);return t?new Intl.DateTimeFormat(this.fmt,{day:"numeric",month:"short",year:"numeric"}).format(t):""}titleText(){const e=this.range?void 0:v(this.value);return e?new Intl.DateTimeFormat(this.fmt,{day:"numeric",month:"long",year:"numeric"}).format(e):new Intl.DateTimeFormat(this.fmt,{month:"long",year:"numeric"}).format(this.viewDate)}monthOptions(){const e=new Intl.DateTimeFormat(this.fmt,{month:"long"});return Array.from({length:12},((t,s)=>({label:e.format(new Date(2e3,s,1)),value:s+""})))}yearOptions(){const e=this.viewDate.getFullYear(),t=v(this.min)?.getFullYear()??e-100,s=v(this.max)?.getFullYear()??e+100,a=[];for(let i=Math.min(t,e);i<=Math.max(s,e);i++)a.push({label:i+"",value:i+""});return a}weekdays(){const e=new Intl.DateTimeFormat(this.fmt,{weekday:"short"});return Array.from({length:7},((t,s)=>e.format(new Date(2023,0,1+(this.safeFirstDay+s)%7))))}gridDays(){const e=this.viewDate,t=(e.getDay()-this.safeFirstDay+7)%7,s=g(e,-t);return Array.from({length:42},((e,t)=>g(s,t)))}renderHeader(){if(this.range){const e=(e,t)=>i("bs-input",{label:t,placeholder:"YYYY-MM-DD",value:this.draft[e]??this.formatField(this[e]),onBsInput:t=>this.draft={...this.draft,[e]:t.detail},onBsChange:()=>this.commitDraft(e),onFocusin:()=>{void 0===this.draft[e]&&(this.draft={...this.draft,[e]:this[e]})},onFocusout:()=>this.commitDraft(e)});return i("div",{part:"header",class:"bs-datepicker__header bs-datepicker__header--range"},e("start",this.startLabel),e("end",this.endLabel))}return i("div",{part:"header",class:"bs-datepicker__header"},this.renderDropdown("month",this.monthLabel,this.monthOptions(),this.viewDate.getMonth()+"",(e=>this.viewDate=new Date(this.viewDate.getFullYear(),Number(e),1))),this.renderDropdown("year",this.yearLabel,this.yearOptions(),this.viewDate.getFullYear()+"",(e=>this.viewDate=new Date(Number(e),this.viewDate.getMonth(),1))))}renderDropdown(e,t,s,a,r){const n=this.openMenu===e,d=()=>{this.openMenu=null};return i("div",{class:"bs-datepicker__dropdown",onKeyDown:e=>{"Escape"===e.key&&n&&(d(),e.currentTarget.querySelector("bs-input")?.focus())},onFocusout:e=>{const t=e.relatedTarget;!n||t&&e.currentTarget.contains(t)||d()}},i("bs-input",{type:"dropdown",class:"bs-datepicker__select",label:t,value:s.find((e=>e.value===a))?.label??"",open:n,onBsOpen:()=>{this.menuToScroll=!n,this.openMenu=n?null:e}}),n&&i("bs-menu",{part:"menu",class:"bs-datepicker__menu",role:"listbox"},s.map((e=>i("bs-menu-item",{key:e.value,"data-current":e.value===a?"":void 0,"aria-current":e.value===a?"true":void 0,onBsSelect:()=>{r(e.value),d(),this.el.shadowRoot.querySelector(`.bs-datepicker__dropdown bs-input[label="${t}"]`)?.focus()}},i("span",{class:"bs-datepicker__option"},i("span",null,e.label),e.value===a&&i("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},i("path",{d:"M5 12.5L10 17.5L19 7.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))))))))}render(){const e=this.gridDays(),t=k(new Date),s=this.range?this.start:this.value,a=this.range?this.end:"",r=this.range&&this.start&&!this.end&&this.hoverIso>this.start?this.hoverIso:a,n=e.some((e=>k(e)===this.focusedIso&&e.getMonth()===this.viewDate.getMonth()))?this.focusedIso:this.defaultTabbable(e),d=e=>!!s&&!!r&&e>s&&e<r,o=this.weekdays();return i("bs-card",{key:"deee020382c8f61b97601d7e5504fb8c0f174616",part:"container",class:"bs-datepicker",surface:"raised"},i("div",{key:"041f26feb5c2d0d20a3257ff8b5589fd09c8133b",class:"bs-datepicker__body"},this.renderHeader(),i("div",{key:"5122a1de7c9f3914d740a909b3b7b099919817ae",part:"nav",class:"bs-datepicker__nav"},i("button",{key:"dd9edd71723f2bdb4fcd883ba3374604976f146d",part:"prev",type:"button",class:"bs-datepicker__nav-button","aria-label":this.previousLabel,onClick:()=>this.moveView(-1)},i("svg",{key:"c897bf4dcfa3b1fad4cdc4febb8d4d4c617f36c0",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},i("path",{key:"17d0119479910876f10a67409a882542fec28d76",d:"M15 18L9 12L15 6",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))),i("div",{key:"3052745c0ff62588aab848e0327ab423f4f4469d",part:"title",class:"bs-datepicker__title","aria-live":"polite"},this.titleText()),i("button",{key:"83da87b4463d4501b9fc0ab755d6f743962093da",part:"next",type:"button",class:"bs-datepicker__nav-button","aria-label":this.nextLabel,onClick:()=>this.moveView(1)},i("svg",{key:"5065a4344e6477e895810d42863104c91c7b290f",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},i("path",{key:"ad4523bb1b76235c4a89a3781f671f2f48ef1490",d:"M9 18L15 12L9 6",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})))),i("div",{key:"c0653817a489424cf1177eb90edf1a3f5498e13c",part:"grid",class:"bs-datepicker__grid",role:"grid","aria-label":this.titleText()},i("div",{key:"13d86c20c7f3ec07f2e06f6aaa7dea3d9a68c1c5",class:"bs-datepicker__row",role:"row"},o.map((e=>i("div",{part:"weekday",class:"bs-datepicker__weekday",role:"columnheader"},e)))),Array.from({length:6},((r,o)=>{const c=e.slice(7*o,7*o+7);return i("div",{class:"bs-datepicker__row",role:"row"},c.map(((e,r)=>{const o=k(e),b=e.getMonth()!==this.viewDate.getMonth(),l=o===s||!!a&&o===a,p=d(o),h={"bs-datepicker__cell":!0,"bs-datepicker__cell--in-range":p,"bs-datepicker__cell--band-start":p&&!(r>0&&d(k(c[r-1]))),"bs-datepicker__cell--band-end":p&&!(r<6&&d(k(c[r+1])))},u=["day",l&&"selected",p&&"in-range",b&&"outside",o===t&&"today"].filter(Boolean).join(" ");return i("div",{class:h,role:"gridcell","aria-selected":l||p?"true":"false"},i("button",{part:u,type:"button",class:{"bs-datepicker__day":!0,"bs-datepicker__day--selected":l,"bs-datepicker__day--in-range":p,"bs-datepicker__day--outside":b,"bs-datepicker__day--today":o===t},"data-date":o,tabindex:o===n?0:-1,disabled:this.isDisabled(e),"aria-current":o===t?"date":void 0,"aria-label":new Intl.DateTimeFormat(this.fmt,{weekday:"long",day:"2-digit",month:"long",year:"numeric"}).format(e),onClick:()=>this.selectDay(e),onKeyDown:t=>this.onKeyDown(t,e),onMouseEnter:()=>{this.range&&this.start&&!this.end&&(this.hoverIso=o)}},(e.getDate()+"").padStart(2,"0")))})))})))))}defaultTabbable(e){const t=t=>e.some((e=>k(e)===t&&e.getMonth()===this.viewDate.getMonth())),s=this.range?this.start:this.value;if(s&&t(s))return s;const a=k(new Date);return t(a)?a:k(this.viewDate)}static get formAssociated(){return!0}static get watchers(){return{value:[{onSelectionChange:0},{onSelectionJump:0}],start:[{onSelectionChange:0},{onSelectionJump:0}],end:[{onSelectionChange:0}],range:[{onSelectionChange:0}],name:[{onSelectionChange:0}]}}static get style(){return":host{display:inline-block;--bs-datepicker-width:364px;--bs-datepicker-bg:var(--bs-paper-bg-raised);--bs-datepicker-radius:var(--bs-border-radius-150);--bs-datepicker-padding:var(--bs-spacing-200);--bs-datepicker-gap:var(--bs-spacing-150);--bs-datepicker-shadow:var(--bs-shadow-md);--bs-datepicker-menu-max-height:280px;--bs-datepicker-day-size:var(--bs-spacing-550);--bs-datepicker-day-radius:var(--bs-border-radius-100);--bs-datepicker-day-gap:var(--bs-spacing-50);--bs-datepicker-band-bridge:var(--bs-spacing-50);--bs-datepicker-font-size:var(--bs-font-size-md);--bs-datepicker-line-height:var(--bs-line-height-body-md);--bs-datepicker-weekday-font-size:var(--bs-font-size-sm);--bs-datepicker-weekday-line-height:var(--bs-line-height-body-sm);--bs-datepicker-color:var(--bs-text-default);--bs-datepicker-color-muted:var(--bs-text-muted);--bs-datepicker-color-weekday:var(--bs-text-secondary);--bs-datepicker-color-disabled:var(--bs-text-on-disabled);--bs-datepicker-hover:var(--bs-surface-hover);--bs-datepicker-pressed:var(--bs-surface-pressed);--bs-datepicker-focus-bg:var(--bs-surface-focus);--bs-datepicker-selected-bg:var(--bs-color-primary-default);--bs-datepicker-selected-bg-hover:var(--bs-color-primary-hover);--bs-datepicker-selected-bg-pressed:var(--bs-color-primary-pressed);--bs-datepicker-selected-bg-focus:var(--bs-color-primary-focused);--bs-datepicker-selected-bg-disabled:var(--bs-surface-action-disabled);--bs-datepicker-selected-color:var(--bs-text-on-action);--bs-datepicker-range-bg:var(--bs-color-primary-container);--bs-datepicker-today-border:var(--bs-border-primary);--bs-datepicker-focus-ring-color:var(--bs-border-neutral-focus)}.bs-datepicker{width:var(--bs-datepicker-width);max-width:100%;color:var(--bs-datepicker-color);font-size:var(--bs-datepicker-font-size);--bs-card-bg:var(--bs-datepicker-bg);--bs-card-radius:var(--bs-datepicker-radius);--bs-card-padding:var(--bs-datepicker-padding);--bs-card-shadow:var(--bs-datepicker-shadow);--bs-card-overflow:visible}.bs-datepicker__body{display:flex;flex-direction:column;gap:var(--bs-datepicker-gap)}.bs-datepicker__header{display:flex;align-items:flex-start;gap:var(--bs-spacing-100)}.bs-datepicker__header--range>bs-input{--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)}.bs-datepicker__header>bs-input{flex:1 1 0;min-width:0}.bs-datepicker__select::part(label){position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.bs-datepicker__dropdown{position:relative;flex:1 1 0;min-width:0}.bs-datepicker__dropdown bs-input{width:100%}.bs-datepicker__menu{position:absolute;top:calc(100% + var(--bs-spacing-50));inset-inline:0;z-index:2;max-height:var(--bs-datepicker-menu-max-height);overflow-y:auto;border-radius:var(--bs-border-radius-100);background:var(--bs-surface-raised);box-shadow:var(--bs-shadow-md);--bs-menu-shadow:none}.bs-datepicker__menu bs-menu-item{--bs-menu-item-color:var(--bs-datepicker-color)}.bs-datepicker__menu bs-menu-item::part(label){flex:1;text-align:start}.bs-datepicker__option{display:flex;align-items:center;justify-content:space-between;gap:var(--bs-spacing-100)}.bs-datepicker__option svg{width:20px;height:20px;flex:none}.bs-datepicker__nav{display:flex;align-items:center;justify-content:space-between}.bs-datepicker__title{font-weight:var(--bs-font-weight-semibold);line-height:calc(var(--bs-datepicker-line-height) * 1px)}.bs-datepicker__nav-button{display:flex;align-items:center;justify-content:center;width:var(--bs-spacing-600);height:var(--bs-spacing-600);padding:0;border:none;border-radius:var(--bs-datepicker-day-radius);background:transparent;color:var(--bs-icon-default);cursor:pointer}.bs-datepicker__nav-button svg{width:24px;height:24px}.bs-datepicker__nav-button:hover{background:var(--bs-datepicker-hover)}.bs-datepicker__grid{display:flex;flex-direction:column;gap:var(--bs-datepicker-day-gap)}.bs-datepicker__row{display:grid;grid-template-columns:repeat(7, var(--bs-datepicker-day-size));justify-content:space-between}.bs-datepicker__weekday{display:flex;align-items:center;justify-content:center;height:var(--bs-datepicker-day-size);color:var(--bs-datepicker-color-weekday);font-size:var(--bs-datepicker-weekday-font-size);font-weight:var(--bs-font-weight-semibold);line-height:calc(var(--bs-datepicker-weekday-line-height) * 1px)}.bs-datepicker__cell{display:flex;justify-content:center}.bs-datepicker__cell--in-range{background:var(--bs-datepicker-range-bg);box-shadow:calc(var(--bs-datepicker-band-bridge) + 1px) 0 0 var(--bs-datepicker-range-bg)}.bs-datepicker__cell--band-start{border-start-start-radius:var(--bs-datepicker-day-radius);border-end-start-radius:var(--bs-datepicker-day-radius)}.bs-datepicker__cell--band-end{border-start-end-radius:var(--bs-datepicker-day-radius);border-end-end-radius:var(--bs-datepicker-day-radius);box-shadow:none}.bs-datepicker__day{width:var(--bs-datepicker-day-size);height:var(--bs-datepicker-day-size);padding:0;border:none;border-radius:var(--bs-datepicker-day-radius);background:transparent;color:var(--bs-datepicker-color);font-family:inherit;font-size:var(--bs-datepicker-font-size);line-height:calc(var(--bs-datepicker-line-height) * 1px);cursor:pointer}.bs-datepicker__day--outside{color:var(--bs-datepicker-color-muted)}.bs-datepicker__day--today{box-shadow:inset 0 0 0 1px var(--bs-datepicker-today-border)}.bs-datepicker__day:not(:disabled):hover{background:var(--bs-datepicker-hover)}.bs-datepicker__day:not(:disabled):active{background:var(--bs-datepicker-pressed)}.bs-datepicker__day--in-range:not(:disabled):hover,.bs-datepicker__day--in-range:not(:disabled):active{background:var(--bs-datepicker-range-bg)}.bs-datepicker__day--selected,.bs-datepicker__day--selected.bs-datepicker__day--outside{background:var(--bs-datepicker-selected-bg);color:var(--bs-datepicker-selected-color)}.bs-datepicker__day--selected:not(:disabled):hover{background:var(--bs-datepicker-selected-bg-hover)}.bs-datepicker__day--selected:not(:disabled):active{background:var(--bs-datepicker-selected-bg-pressed)}.bs-datepicker__day:disabled{color:var(--bs-datepicker-color-disabled);cursor:not-allowed}.bs-datepicker__day--selected:disabled{background:var(--bs-datepicker-selected-bg-disabled)}.bs-datepicker__day:focus-visible{background:var(--bs-datepicker-focus-bg);outline:2px solid var(--bs-datepicker-focus-ring-color);outline-offset:0}.bs-datepicker__day--selected:focus-visible{background:var(--bs-datepicker-selected-bg-focus)}.bs-datepicker__nav-button:focus-visible{outline:2px solid var(--bs-datepicker-focus-ring-color);outline-offset:2px}"}},[577,"bs-datepicker",{name:[513],range:[516],value:[1537],start:[1537],end:[1537],min:[1],max:[1],locale:[1],firstDayOfWeek:[2,"first-day-of-week"],startLabel:[1,"start-label"],endLabel:[1,"end-label"],monthLabel:[1,"month-label"],yearLabel:[1,"year-label"],previousLabel:[1,"previous-label"],nextLabel:[1,"next-label"],viewDate:[32],focusedIso:[32],hoverIso:[32],draft:[32],openMenu:[32]},void 0,{value:[{onSelectionChange:0},{onSelectionJump:0}],start:[{onSelectionChange:0},{onSelectionJump:0}],end:[{onSelectionChange:0}],range:[{onSelectionChange:0}],name:[{onSelectionChange:0}]}]);function u(e){return(e+"").padStart(2,"0")}function k(e){return`${e.getFullYear()}-${u(e.getMonth()+1)}-${u(e.getDate())}`}function v(e){const t=/^(\d{4})-(\d{2})-(\d{2})$/.exec((e??"").trim());if(!t)return;const s=new Date(Number(t[1]),Number(t[2])-1,Number(t[3]));return k(s)===`${t[1]}-${t[2]}-${t[3]}`?s:void 0}function f(e){return new Date(e.getFullYear(),e.getMonth(),1)}function g(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)}function m(){"undefined"!=typeof customElements&&["bs-datepicker","bs-card","bs-chip-informative","bs-icon-button","bs-input","bs-menu","bs-menu-item","bs-ripple","bs-spinner"].forEach((t=>{switch(t){case"bs-datepicker":customElements.get(e(t))||customElements.define(e(t),h);break;case"bs-card":customElements.get(e(t))||r();break;case"bs-chip-informative":customElements.get(e(t))||n();break;case"bs-icon-button":customElements.get(e(t))||d();break;case"bs-input":customElements.get(e(t))||o();break;case"bs-menu":customElements.get(e(t))||c();break;case"bs-menu-item":customElements.get(e(t))||b();break;case"bs-ripple":customElements.get(e(t))||l();break;case"bs-spinner":customElements.get(e(t))||p()}}))}m();const _=h,y=m;export{_ as BsDatepicker,y as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as i,H as e,h as s}from"./p-CcAX4o5o.js";const o=i(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}term;description;layout="stacked";render(){return s("dl",{key:"40c0899a000b225ecb5332902e9a9f74f54a8caf",part:"container",class:"bs-description-item"},s("div",{key:"524e64c9808a3aa172854c96466f23719637723e",class:"bs-description-item__group"},s("dt",{key:"1f7b417f6422fe49b537ce57881a094092e177da",part:"term",class:"bs-description-item__term"},s("slot",{key:"6f7893e2ca851a7d55aa82cc4f19593db16e9110",name:"term"},this.term)),s("dd",{key:"861794158a281145f885c5f3990db4506257a4fe",part:"description",class:"bs-description-item__description"},s("slot",{key:"ab3ead012e9cd01c5377af5ab05fbf932ffdb0c9"},this.description))))}static get style(){return":host{display:block;--bs-description-item-gap:var(--bs-spacing-25);--bs-description-item-term-width:12rem;--bs-description-item-column-gap:var(--bs-spacing-200);--bs-description-item-padding-y:var(--bs-spacing-100);--bs-description-item-term-color:var(--bs-text-secondary);--bs-description-item-description-color:var(--bs-text-default)}.bs-description-item{margin:0;padding:var(--bs-description-item-padding-y) 0;font-family:inherit;font-size:var(--bs-font-size-md);line-height:calc(var(--bs-line-height-body-md) * 1px)}.bs-description-item__group{display:flex;flex-direction:column;gap:var(--bs-description-item-gap)}:host([layout='horizontal']) .bs-description-item__group{flex-direction:row;column-gap:var(--bs-description-item-column-gap)}.bs-description-item__term{color:var(--bs-description-item-term-color);font-weight:var(--bs-font-weight-semibold)}:host([layout='horizontal']) .bs-description-item__term{flex:0 0 var(--bs-description-item-term-width);max-width:40%}.bs-description-item__description{margin:0;min-width:0;color:var(--bs-description-item-description-color);font-weight:var(--bs-font-weight-regular);overflow-wrap:anywhere}:host([layout='horizontal']) .bs-description-item__description{flex:1 1 0}"}},[769,"bs-description-item",{term:[1],description:[1],layout:[513]}]);function r(){"undefined"!=typeof customElements&&["bs-description-item"].forEach((i=>{"bs-description-item"===i&&(customElements.get(t(i))||customElements.define(t(i),o))}))}r();const c=o,n=r;export{c as BsDescriptionItem,n as defineCustomElement}
1
+ import{t,p as i,H as e,h as s}from"./p-CcAX4o5o.js";const o=i(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}term;description;layout="stacked";render(){return s("dl",{key:"aec70759575194366c0b4c4a55ceba043b5dddd1",part:"container",class:"bs-description-item"},s("div",{key:"9e58afccdcaad5c33403fb01261c81251b801a1d",class:"bs-description-item__group"},s("dt",{key:"c2ab08452ff2996050d3a87b62fef543d9f68c65",part:"term",class:"bs-description-item__term"},s("slot",{key:"3e8a9fb9a9a3fa6ae183a2b9c934f73b1abf7d54",name:"term"},this.term)),s("dd",{key:"130bdfa0996d78c4aedaf8f11080edf40773dea1",part:"description",class:"bs-description-item__description"},s("slot",{key:"51a5f57b2a198ff07f4a913cb576849cef5f98e1"},this.description))))}static get style(){return":host{display:block;--bs-description-item-gap:var(--bs-spacing-25);--bs-description-item-term-width:12rem;--bs-description-item-column-gap:var(--bs-spacing-200);--bs-description-item-padding-y:var(--bs-spacing-100);--bs-description-item-term-color:var(--bs-text-secondary);--bs-description-item-description-color:var(--bs-text-default)}.bs-description-item{margin:0;padding:var(--bs-description-item-padding-y) 0;font-family:inherit;font-size:var(--bs-font-size-md);line-height:calc(var(--bs-line-height-body-md) * 1px)}.bs-description-item__group{display:flex;flex-direction:column;gap:var(--bs-description-item-gap)}:host([layout='horizontal']) .bs-description-item__group{flex-direction:row;column-gap:var(--bs-description-item-column-gap)}.bs-description-item__term{color:var(--bs-description-item-term-color);font-weight:var(--bs-font-weight-semibold)}:host([layout='horizontal']) .bs-description-item__term{flex:0 0 var(--bs-description-item-term-width);max-width:40%}.bs-description-item__description{margin:0;min-width:0;color:var(--bs-description-item-description-color);font-weight:var(--bs-font-weight-regular);overflow-wrap:anywhere}:host([layout='horizontal']) .bs-description-item__description{flex:1 1 0}"}},[769,"bs-description-item",{term:[1],description:[1],layout:[513]}]);function r(){"undefined"!=typeof customElements&&["bs-description-item"].forEach((i=>{"bs-description-item"===i&&(customElements.get(t(i))||customElements.define(t(i),o))}))}r();const c=o,a=r;export{c as BsDescriptionItem,a as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as s,H as i,h as e}from"./p-CcAX4o5o.js";const o=s(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}get el(){return this}layout="stacked";dividers=!1;ariaLabel=null;onLayout(){this.sync()}componentDidLoad(){this.sync()}sync(){Array.from(this.el.children).filter((t=>"BS-DESCRIPTION-ITEM"===t.tagName)).forEach((t=>t.layout=this.layout))}render(){return e("div",{key:"05c9e878bf5d7c044f0952194ab139504e18bc37",part:"list",class:"bs-description-list",role:"group","aria-label":this.ariaLabel??void 0},e("slot",{key:"e4d5086670583c29bbd5b6d93d49507bd2292aa5",onSlotchange:()=>this.sync()}))}static get watchers(){return{layout:[{onLayout:0}]}}static get style(){return":host{display:block;--bs-description-list-gap:0;--bs-description-list-divider-color:var(--bs-border-neutral-container)}.bs-description-list{display:flex;flex-direction:column;gap:var(--bs-description-list-gap)}:host([dividers]) ::slotted(bs-description-item:not(:last-child)){border-bottom:1px solid var(--bs-description-list-divider-color)}"}},[769,"bs-description-list",{layout:[513],dividers:[516],ariaLabel:[1,"aria-label"]},void 0,{layout:[{onLayout:0}]}]);function r(){"undefined"!=typeof customElements&&["bs-description-list"].forEach((s=>{"bs-description-list"===s&&(customElements.get(t(s))||customElements.define(t(s),o))}))}r();const a=o,l=r;export{a as BsDescriptionList,l as defineCustomElement}
1
+ import{t,p as s,H as i,h as e}from"./p-CcAX4o5o.js";const o=s(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}get el(){return this}layout="stacked";dividers=!1;ariaLabel=null;onLayout(){this.sync()}componentDidLoad(){this.sync()}sync(){Array.from(this.el.children).filter((t=>"BS-DESCRIPTION-ITEM"===t.tagName)).forEach((t=>t.layout=this.layout))}render(){return e("div",{key:"77af76f001bc7d507dc5a0b6a79e406e0081346c",part:"list",class:"bs-description-list",role:"group","aria-label":this.ariaLabel??void 0},e("slot",{key:"15e49c33a811c43599523838852394a5a6dbd5a2",onSlotchange:()=>this.sync()}))}static get watchers(){return{layout:[{onLayout:0}]}}static get style(){return":host{display:block;--bs-description-list-gap:0;--bs-description-list-divider-color:var(--bs-border-neutral-container)}.bs-description-list{display:flex;flex-direction:column;gap:var(--bs-description-list-gap)}:host([dividers]) ::slotted(bs-description-item:not(:last-child)){border-bottom:1px solid var(--bs-description-list-divider-color)}"}},[769,"bs-description-list",{layout:[513],dividers:[516],ariaLabel:[1,"aria-label"]},void 0,{layout:[{onLayout:0}]}]);function r(){"undefined"!=typeof customElements&&["bs-description-list"].forEach((s=>{"bs-description-list"===s&&(customElements.get(t(s))||customElements.define(t(s),o))}))}r();const a=o,l=r;export{a as BsDescriptionList,l as defineCustomElement}
@@ -1 +1 @@
1
- import{t as s,p as i,H as t,c as a,h as o}from"./p-CcAX4o5o.js";import{c as e,r as n,p as l}from"./p-BSt9HeTa.js";import{d}from"./p-DQY3n0nR.js";import{d as r}from"./p-ESiaIgGU.js";const c=i(class extends t{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.bsClose=a(this,"bsClose")}get el(){return this}open=!1;heading;closeLabel="Close";size="md";centered=!1;bsClose;hasFooter=!1;hasImage=!1;hasIcon=!1;onFooterSlotchange=s=>{this.hasFooter=s.target.assignedNodes().length>0};onImageSlotchange=s=>{this.hasImage=s.target.assignedNodes().length>0};onIconSlotchange=s=>{this.hasIcon=s.target.assignedNodes().length>0};closing=!1;backdropRef;enterPending=!1;exitPending=!1;motionRun=0;onOpenChange(s){this.motionRun++,e(this.backdropRef,this.dialogRef),s?(this.closing=!1,this.enterPending=!0):this.wasOpen&&n(this.el,"bs-dialog").ms>0&&(this.closing=!0,this.exitPending=!0)}playEnter(){const{ms:s,easing:i,distance:t}=n(this.el,"bs-dialog");0!==s&&(l(this.backdropRef,[{opacity:0},{opacity:1}],s,i),l(this.dialogRef,[{opacity:0,transform:`translateY(${t}px) scale(0.96)`},{opacity:1,transform:"none"}],s,i))}playExit(){const{ms:s,easing:i,distance:t}=n(this.el,"bs-dialog"),a=++this.motionRun;Promise.all([l(this.backdropRef,[{opacity:1},{opacity:0}],s,i,"forwards"),l(this.dialogRef,[{opacity:1,transform:"none"},{opacity:0,transform:`translateY(${t}px) scale(0.96)`}],s,i,"forwards")]).then((()=>{a===this.motionRun&&(this.closing=!1)}))}dialogRef;previouslyFocused;previousBodyOverflow;wasOpen=!1;close=()=>{this.open=!1,this.bsClose.emit()};onKeydown(s){this.open&&"Escape"===s.key&&this.close()}onBackdropClick=s=>{s.target===s.currentTarget&&this.close()};onFocusIn(s){this.open&&this.dialogRef?.isConnected&&!s.composedPath().includes(this.dialogRef)&&this.dialogRef.focus()}componentDidRender(){this.open&&this.enterPending?(this.enterPending=!1,this.playEnter()):!this.open&&this.closing&&this.exitPending&&(this.exitPending=!1,this.playExit()),this.open&&!this.wasOpen?(this.previouslyFocused=document.activeElement,requestAnimationFrame((()=>this.dialogRef?.focus())),this.previousBodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden"):!this.open&&this.wasOpen&&(this.previouslyFocused?.focus(),document.body.style.overflow=this.previousBodyOverflow??""),this.wasOpen=this.open}disconnectedCallback(){this.wasOpen&&(document.body.style.overflow=this.previousBodyOverflow??"")}render(){if(!this.open&&!this.closing)return null;const s=this.centered||this.hasImage;return o("div",{ref:s=>this.backdropRef=s,part:"backdrop",class:"bs-dialog__backdrop "+(this.open?"":"bs-dialog__backdrop--closing"),onClick:this.onBackdropClick},o("div",{ref:s=>this.dialogRef=s,tabIndex:-1,part:"dialog",class:"bs-dialog__dialog bs-dialog__dialog--"+this.size,role:"dialog","aria-modal":"true","aria-label":this.heading},s&&o("bs-icon-button",{part:"close",class:"bs-dialog__close--floating",variant:"neutral",size:"md","aria-label":this.closeLabel,onClick:this.close},o(g,null)),o("div",{part:"image",class:"bs-dialog__image "+(this.hasImage?"bs-dialog__image--visible":"")},o("slot",{name:"image",onSlotchange:this.onImageSlotchange})),this.centered&&o("div",{part:"icon",class:"bs-dialog__icon "+(this.hasIcon?"bs-dialog__icon--visible":"")},o("slot",{name:"icon",onSlotchange:this.onIconSlotchange})),o("div",{part:"header",class:"bs-dialog__header "+(this.centered?"bs-dialog__header--centered":"")},o("span",{class:"bs-dialog__heading"},this.heading),!s&&o("bs-icon-button",{part:"close",variant:"subtle",size:"md","aria-label":this.closeLabel,onClick:this.close},o(g,null))),o("div",{part:"body",class:"bs-dialog__body "+(this.centered?"bs-dialog__body--centered":"")},o("slot",null)),o("div",{part:"footer",class:"bs-dialog__footer "+(this.hasFooter?"bs-dialog__footer--visible":"")},o("slot",{name:"footer",onSlotchange:this.onFooterSlotchange}))))}static get watchers(){return{open:[{onOpenChange:0}]}}static get style(){return":host{--bs-dialog-duration:var(--bs-duration-default);--bs-dialog-easing:var(--bs-easing-standard);--bs-dialog-distance:var(--bs-spacing-200)}.bs-dialog__backdrop{position:fixed;inset:0;z-index:var(--bs-z-index-modal);display:flex;align-items:center;justify-content:center;background:rgba(0, 0, 0, 0.4)}.bs-dialog__backdrop--closing{pointer-events:none}.bs-dialog__dialog{position:relative;display:flex;flex-direction:column;max-height:calc(100vh - var(--bs-spacing-800));background:var(--bs-surface-base);color:var(--bs-text-default);border-radius:var(--bs-border-radius-200);box-shadow:var(--bs-shadow-xl);font-family:inherit}.bs-dialog__dialog--sm{width:360px}.bs-dialog__dialog--md{width:560px}.bs-dialog__dialog--lg{width:800px}.bs-dialog__header{display:flex;align-items:center;justify-content:space-between;padding:var(--bs-spacing-200) var(--bs-spacing-200) var(--bs-spacing-100)}.bs-dialog__image--visible+.bs-dialog__header,.bs-dialog__icon--visible+.bs-dialog__header{padding-top:0}.bs-dialog__heading{font-size:var(--bs-font-size-lg);font-weight:var(--bs-font-weight-semibold);color:var(--bs-text-default)}.bs-dialog__close--floating{position:absolute;top:var(--bs-spacing-200);inset-inline-end:var(--bs-spacing-200);z-index:1}.bs-dialog__body{padding:0 var(--bs-spacing-200) var(--bs-spacing-200);overflow-y:auto}.bs-dialog__body--centered{text-align:center}.bs-dialog__footer--visible{display:flex;justify-content:flex-end;gap:var(--bs-spacing-200);padding:0 var(--bs-spacing-200) var(--bs-spacing-200)}.bs-dialog__image--visible{overflow:hidden;border-radius:var(--bs-border-radius-200) var(--bs-border-radius-200) 0 0;margin-bottom:var(--bs-spacing-200)}.bs-dialog__image--visible ::slotted(img){display:block;width:100%;height:auto;object-fit:cover}.bs-dialog__icon--visible{display:flex;align-items:center;justify-content:center;padding:var(--bs-spacing-200) var(--bs-spacing-200) 0;margin-bottom:var(--bs-spacing-200)}.bs-dialog__icon--visible ::slotted(*){width:64px;height:64px}.bs-dialog__header--centered{justify-content:center;text-align:center}@media (forced-colors: active){.bs-dialog__dialog{border:1px solid CanvasText}}"}},[769,"bs-dialog",{open:[1540],heading:[1],closeLabel:[1,"close-label"],size:[1],centered:[516],hasFooter:[32],hasImage:[32],hasIcon:[32],closing:[32]},[[4,"keydown","onKeydown"],[4,"focusin","onFocusIn"]],{open:[{onOpenChange:0}]}]),g=()=>o("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},o("path",{d:"M12.5 3.5L3.5 12.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),o("path",{d:"M12.5 12.5L3.5 3.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}));function b(){"undefined"!=typeof customElements&&["bs-dialog","bs-icon-button","bs-ripple"].forEach((i=>{switch(i){case"bs-dialog":customElements.get(s(i))||customElements.define(s(i),c);break;case"bs-icon-button":customElements.get(s(i))||d();break;case"bs-ripple":customElements.get(s(i))||r()}}))}b();const h=c,p=b;export{h as BsDialog,p as defineCustomElement}
1
+ import{t as s,p as i,H as t,c as o,h as a}from"./p-CcAX4o5o.js";import{c as e,r as n,p as l}from"./p-BSt9HeTa.js";import{d}from"./p-C5CNfDjK.js";import{d as r}from"./p-Lj6_zdoI.js";const c=i(class extends t{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.bsClose=o(this,"bsClose")}get el(){return this}open=!1;heading;closeLabel="Close";size="md";centered=!1;bsClose;hasFooter=!1;hasImage=!1;hasIcon=!1;onFooterSlotchange=s=>{this.hasFooter=s.target.assignedNodes().length>0};onImageSlotchange=s=>{this.hasImage=s.target.assignedNodes().length>0};onIconSlotchange=s=>{this.hasIcon=s.target.assignedNodes().length>0};closing=!1;backdropRef;enterPending=!1;exitPending=!1;motionRun=0;onOpenChange(s){this.motionRun++,e(this.backdropRef,this.dialogRef),s?(this.closing=!1,this.enterPending=!0):this.wasOpen&&n(this.el,"bs-dialog").ms>0&&(this.closing=!0,this.exitPending=!0)}playEnter(){const{ms:s,easing:i,distance:t}=n(this.el,"bs-dialog");0!==s&&(l(this.backdropRef,[{opacity:0},{opacity:1}],s,i),l(this.dialogRef,[{opacity:0,transform:`translateY(${t}px) scale(0.96)`},{opacity:1,transform:"none"}],s,i))}playExit(){const{ms:s,easing:i,distance:t}=n(this.el,"bs-dialog"),o=++this.motionRun;Promise.all([l(this.backdropRef,[{opacity:1},{opacity:0}],s,i,"forwards"),l(this.dialogRef,[{opacity:1,transform:"none"},{opacity:0,transform:`translateY(${t}px) scale(0.96)`}],s,i,"forwards")]).then((()=>{o===this.motionRun&&(this.closing=!1)}))}dialogRef;previouslyFocused;previousBodyOverflow;wasOpen=!1;close=()=>{this.open=!1,this.bsClose.emit()};onKeydown(s){this.open&&"Escape"===s.key&&this.close()}onBackdropClick=s=>{s.target===s.currentTarget&&this.close()};onFocusIn(s){this.open&&this.dialogRef?.isConnected&&!s.composedPath().includes(this.dialogRef)&&this.dialogRef.focus()}componentDidRender(){this.open&&this.enterPending?(this.enterPending=!1,this.playEnter()):!this.open&&this.closing&&this.exitPending&&(this.exitPending=!1,this.playExit()),this.open&&!this.wasOpen?(this.previouslyFocused=document.activeElement,requestAnimationFrame((()=>this.dialogRef?.focus())),this.previousBodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden"):!this.open&&this.wasOpen&&(this.previouslyFocused?.focus(),document.body.style.overflow=this.previousBodyOverflow??""),this.wasOpen=this.open}disconnectedCallback(){this.wasOpen&&(document.body.style.overflow=this.previousBodyOverflow??"")}render(){if(!this.open&&!this.closing)return null;const s=this.centered||this.hasImage;return a("div",{ref:s=>this.backdropRef=s,part:"backdrop",class:"bs-dialog__backdrop "+(this.open?"":"bs-dialog__backdrop--closing"),onClick:this.onBackdropClick},a("div",{ref:s=>this.dialogRef=s,tabIndex:-1,part:"dialog",class:"bs-dialog__dialog bs-dialog__dialog--"+this.size,role:"dialog","aria-modal":"true","aria-label":this.heading},s&&a("bs-icon-button",{part:"close",class:"bs-dialog__close--floating",variant:"neutral",size:"md","aria-label":this.closeLabel,onClick:this.close},a(g,null)),a("div",{part:"image",class:"bs-dialog__image "+(this.hasImage?"bs-dialog__image--visible":"")},a("slot",{name:"image",onSlotchange:this.onImageSlotchange})),this.centered&&a("div",{part:"icon",class:"bs-dialog__icon "+(this.hasIcon?"bs-dialog__icon--visible":"")},a("slot",{name:"icon",onSlotchange:this.onIconSlotchange})),a("div",{part:"header",class:"bs-dialog__header "+(this.centered?"bs-dialog__header--centered":"")},a("span",{class:"bs-dialog__heading"},this.heading),!s&&a("bs-icon-button",{part:"close",variant:"subtle",size:"md","aria-label":this.closeLabel,onClick:this.close},a(g,null))),a("div",{part:"body",class:"bs-dialog__body "+(this.centered?"bs-dialog__body--centered":"")},a("slot",null)),a("div",{part:"footer",class:"bs-dialog__footer "+(this.hasFooter?"bs-dialog__footer--visible":"")},a("slot",{name:"footer",onSlotchange:this.onFooterSlotchange}))))}static get watchers(){return{open:[{onOpenChange:0}]}}static get style(){return":host{--bs-dialog-duration:var(--bs-duration-default);--bs-dialog-easing:var(--bs-easing-standard);--bs-dialog-distance:var(--bs-spacing-200)}.bs-dialog__backdrop{position:fixed;inset:0;z-index:var(--bs-z-index-modal);display:flex;align-items:center;justify-content:center;background:rgba(0, 0, 0, 0.4)}.bs-dialog__backdrop--closing{pointer-events:none}.bs-dialog__dialog{position:relative;display:flex;flex-direction:column;max-height:calc(100vh - var(--bs-spacing-800));background:var(--bs-surface-base);color:var(--bs-text-default);border-radius:var(--bs-border-radius-200);box-shadow:var(--bs-shadow-xl);font-family:inherit}.bs-dialog__dialog--sm{width:360px}.bs-dialog__dialog--md{width:560px}.bs-dialog__dialog--lg{width:800px}.bs-dialog__header{display:flex;align-items:center;justify-content:space-between;padding:var(--bs-spacing-200) var(--bs-spacing-200) var(--bs-spacing-100)}.bs-dialog__image--visible+.bs-dialog__header,.bs-dialog__icon--visible+.bs-dialog__header{padding-top:0}.bs-dialog__heading{font-size:var(--bs-font-size-lg);font-weight:var(--bs-font-weight-semibold);color:var(--bs-text-default)}.bs-dialog__close--floating{position:absolute;top:var(--bs-spacing-200);inset-inline-end:var(--bs-spacing-200);z-index:1}.bs-dialog__body{padding:0 var(--bs-spacing-200) var(--bs-spacing-200);overflow-y:auto}.bs-dialog__body--centered{text-align:center}.bs-dialog__footer--visible{display:flex;justify-content:flex-end;gap:var(--bs-spacing-200);padding:0 var(--bs-spacing-200) var(--bs-spacing-200)}.bs-dialog__image--visible{overflow:hidden;border-radius:var(--bs-border-radius-200) var(--bs-border-radius-200) 0 0;margin-bottom:var(--bs-spacing-200)}.bs-dialog__image--visible ::slotted(img){display:block;width:100%;height:auto;object-fit:cover}.bs-dialog__icon--visible{display:flex;align-items:center;justify-content:center;padding:var(--bs-spacing-200) var(--bs-spacing-200) 0;margin-bottom:var(--bs-spacing-200)}.bs-dialog__icon--visible ::slotted(*){width:64px;height:64px}.bs-dialog__header--centered{justify-content:center;text-align:center}@media (forced-colors: active){.bs-dialog__dialog{border:1px solid CanvasText}}"}},[769,"bs-dialog",{open:[1540],heading:[1],closeLabel:[1,"close-label"],size:[1],centered:[516],hasFooter:[32],hasImage:[32],hasIcon:[32],closing:[32]},[[4,"keydown","onKeydown"],[4,"focusin","onFocusIn"]],{open:[{onOpenChange:0}]}]),g=()=>a("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},a("path",{d:"M12.5 3.5L3.5 12.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),a("path",{d:"M12.5 12.5L3.5 3.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}));function b(){"undefined"!=typeof customElements&&["bs-dialog","bs-icon-button","bs-ripple"].forEach((i=>{switch(i){case"bs-dialog":customElements.get(s(i))||customElements.define(s(i),c);break;case"bs-icon-button":customElements.get(s(i))||d();break;case"bs-ripple":customElements.get(s(i))||r()}}))}b();const h=c,p=b;export{h as BsDialog,p as defineCustomElement}
@@ -1 +1 @@
1
- import{B as o,d as s}from"./p-DfYJCczy.js";const p=o,r=s;export{p as BsDivider,r as defineCustomElement}
1
+ import{B as o,d as r}from"./p-Ov2urmo_.js";const s=o,m=r;export{s as BsDivider,m as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as t,H as s,c as o,h as n}from"./p-CcAX4o5o.js";import{d as i}from"./p-BpD6hqIE.js";const r=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsOpen=o(this,"bsOpen"),this.bsClose=o(this,"bsClose")}get el(){return this}open=!1;placement="bottom-start";bsOpen;bsClose;triggerSlot;focusRun=0;onOpenChange(e){if(this.syncTrigger(),e){this.bsOpen.emit();const e=++this.focusRun,t=this.el.shadowRoot?.querySelector("bs-popover");Promise.resolve(t?.componentOnReady?.()).then((()=>requestAnimationFrame((()=>e===this.focusRun&&this.focusFirstItem()))))}else this.focusRun++,this.bsClose.emit(),this.el.matches(":focus-within")&&this.focusTrigger()}componentDidLoad(){this.syncTrigger(),this.open&&this.onOpenChange(!0)}onItemSelect(){this.open=!1}onKeyDown(e){"Tab"===e.key&&this.open&&(this.focusTrigger(),this.open=!1)}trigger(){return this.triggerSlot?.assignedElements({flatten:!0})[0]}syncTrigger=()=>{const e=this.trigger();if(e)if(e.tagName.startsWith("BS-")){const t=e;t.ariaHasPopup="menu",t.ariaExpanded=this.open+""}else e.setAttribute("aria-haspopup","menu"),e.setAttribute("aria-expanded",this.open+"")};focusTrigger(){this.trigger()?.focus()}focusFirstItem(){const e=Array.from(this.el.querySelectorAll("bs-menu-item"));e.find((e=>!e.disabled))?.shadowRoot?.querySelector("button")?.focus()}onPopoverOpenChange=e=>{e.stopPropagation(),this.open=e.detail};render(){return n("bs-popover",{key:"02bce3b47bd8a7d96b22c9b60b3517802e9b05aa",part:"popover",open:this.open,placement:this.placement,onBsOpenChange:this.onPopoverOpenChange},n("slot",{key:"d15d4801ef7d8c15cd22772a83d2658d562ce9e4",name:"trigger",slot:"trigger",onSlotchange:this.syncTrigger,ref:e=>this.triggerSlot=e}),n("slot",{key:"b098ecec20a9a3a129f7420634dba01816dc61de"}))}static get watchers(){return{open:[{onOpenChange:0}]}}static get style(){return":host{display:inline-block}"}},[769,"bs-dropdown",{open:[1540],placement:[513]},[[0,"bsSelect","onItemSelect"],[0,"keydown","onKeyDown"]],{open:[{onOpenChange:0}]}]);function h(){"undefined"!=typeof customElements&&["bs-dropdown","bs-popover"].forEach((t=>{switch(t){case"bs-dropdown":customElements.get(e(t))||customElements.define(e(t),r);break;case"bs-popover":customElements.get(e(t))||i()}}))}h();const p=r,a=h;export{p as BsDropdown,a as defineCustomElement}
1
+ import{t as e,p as t,H as s,c as o,h as n}from"./p-CcAX4o5o.js";import{d as i}from"./p-cf5C02kt.js";const r=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsOpen=o(this,"bsOpen"),this.bsClose=o(this,"bsClose")}get el(){return this}open=!1;placement="bottom-start";bsOpen;bsClose;triggerSlot;focusRun=0;onOpenChange(e){if(this.syncTrigger(),e){this.bsOpen.emit();const e=++this.focusRun,t=this.el.shadowRoot?.querySelector("bs-popover");Promise.resolve(t?.componentOnReady?.()).then((()=>requestAnimationFrame((()=>e===this.focusRun&&this.focusFirstItem()))))}else this.focusRun++,this.bsClose.emit(),this.el.matches(":focus-within")&&this.focusTrigger()}componentDidLoad(){this.syncTrigger(),this.open&&this.onOpenChange(!0)}onItemSelect(){this.open=!1}onKeyDown(e){"Tab"===e.key&&this.open&&(this.focusTrigger(),this.open=!1)}trigger(){return this.triggerSlot?.assignedElements({flatten:!0})[0]}syncTrigger=()=>{const e=this.trigger();if(e)if(e.tagName.startsWith("BS-")){const t=e;t.ariaHasPopup="menu",t.ariaExpanded=this.open+""}else e.setAttribute("aria-haspopup","menu"),e.setAttribute("aria-expanded",this.open+"")};focusTrigger(){this.trigger()?.focus()}focusFirstItem(){const e=Array.from(this.el.querySelectorAll("bs-menu-item"));e.find((e=>!e.disabled))?.shadowRoot?.querySelector("button")?.focus()}onPopoverOpenChange=e=>{e.stopPropagation(),this.open=e.detail};render(){return n("bs-popover",{key:"5fdcaae63de66b9c00e9970029eebde4678df1b2",part:"popover",open:this.open,placement:this.placement,onBsOpenChange:this.onPopoverOpenChange},n("slot",{key:"a995087e58089577fd6cecbde3d523f970474915",name:"trigger",slot:"trigger",onSlotchange:this.syncTrigger,ref:e=>this.triggerSlot=e}),n("slot",{key:"a4f86e6af89b10a92c523db2ae5543d57ea36b2e"}))}static get watchers(){return{open:[{onOpenChange:0}]}}static get style(){return":host{display:inline-block}"}},[769,"bs-dropdown",{open:[1540],placement:[513]},[[0,"bsSelect","onItemSelect"],[0,"keydown","onKeyDown"]],{open:[{onOpenChange:0}]}]);function h(){"undefined"!=typeof customElements&&["bs-dropdown","bs-popover"].forEach((t=>{switch(t){case"bs-dropdown":customElements.get(e(t))||customElements.define(e(t),r);break;case"bs-popover":customElements.get(e(t))||i()}}))}h();const a=r,p=h;export{a as BsDropdown,p as defineCustomElement}
@@ -1 +1 @@
1
- import{B as o,d as s}from"./p-DPIDWFCa.js";const a=o,p=s;export{a as BsEmptyState,p as defineCustomElement}
1
+ import{B as o,d as s}from"./p-nf0fN-PV.js";const f=o,p=s;export{f as BsEmptyState,p as defineCustomElement}
@@ -1 +1 @@
1
- import{h as e,t as r,p as a,H as s,c as o}from"./p-CcAX4o5o.js";import{d as t}from"./p-BkzRLgh4.js";import{d as n}from"./p-mxDA3wKn.js";import{d as i}from"./p-BYZ1TxxS.js";import{d as c}from"./p-ESiaIgGU.js";const d=a(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsPrimary=o(this,"bsPrimary"),this.bsSecondary=o(this,"bsSecondary")}type="not-found";code;heading;headingLevel=1;description;primaryLabel;secondaryLabel;reference;bsPrimary;bsSecondary;get defaults(){return b[this.type]??b["not-found"]}render(){const r=this.defaults,a=this.code??r.code,s=this.heading??r.heading,o=this.description??r.description,t=this.primaryLabel??r.primary,n=this.secondaryLabel??r.secondary,i=Math.min(6,Math.max(1,Math.trunc(Number(this.headingLevel))||1));return e("bs-card",{key:"8aff9c8d96ef4b11da092a77ebf5825d15927352",part:"container",class:"bs-error-page",surface:"base"},e("div",{key:"19257d7f087c9e129a100a233f2b347f91bf94e3",class:"bs-error-page__body"},e("div",{key:"626069ac9658d54560ff3b7fe1ee33d4e61d2120",class:"bs-error-page__art-group"},e("bs-icon-tile",{key:"906074042657ea36412905e28db696beb48fca20",part:"art",class:"bs-error-page__art "+(r.info?"bs-error-page__art--info":""),intent:r.intent,size:"lg"},e("slot",{key:"08e00c6308418f3de6cee8574bf59b59c7749853",name:"icon"},r.glyph())),a&&e("span",{key:"927bc4a8cb649c62dae21c512d444b6bc5c5bae8",part:"code",class:"bs-error-page__code"},a)),e("h"+i,{part:"heading",class:{"bs-error-page__heading":!0}},s),o&&e("p",{key:"213c0da80e469597d3964b8b91d643dbcc11caf3",part:"description",class:"bs-error-page__description"},o),(t||n)&&e("div",{key:"85c062187fab0d14c29a826649fe84b515caf791",part:"actions",class:"bs-error-page__actions"},t&&e("bs-button",{key:"c884d4cb3a054b1be6b53cdefba6219ad47a577b",part:"primary",variant:"primary",onClick:()=>this.bsPrimary.emit()},t),n&&e("bs-button",{key:"3e36ee75d488483d9d9a5385cf6ff6d632e8fee3",part:"secondary",variant:"outlined",onClick:()=>this.bsSecondary.emit()},n)),this.reference&&e("p",{key:"7bf4f351eda32d20c2529e166b02b1da66851c64",part:"reference",class:"bs-error-page__reference"},this.reference)))}static get style(){return":host{display:block;--bs-error-page-bg:var(--bs-paper-bg-base);--bs-error-page-radius:var(--bs-border-radius-100);--bs-error-page-padding:var(--bs-spacing-400);--bs-error-page-min-height:440px;--bs-error-page-gap:var(--bs-spacing-150);--bs-error-page-description-width:420px;--bs-error-page-color:var(--bs-text-default);--bs-error-page-color-secondary:var(--bs-text-secondary);--bs-error-page-color-muted:var(--bs-text-muted);--bs-error-page-info-bg:var(--bs-color-info-container)}.bs-error-page{--bs-card-bg:var(--bs-error-page-bg);--bs-card-radius:var(--bs-error-page-radius);--bs-card-padding:var(--bs-error-page-padding);--bs-card-shadow:none;color:var(--bs-error-page-color)}.bs-error-page__body{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--bs-error-page-gap);min-height:calc(var(--bs-error-page-min-height) - var(--bs-error-page-padding) * 2);text-align:center}.bs-error-page__art-group{display:flex;flex-direction:column;align-items:center;gap:var(--bs-spacing-150)}.bs-error-page__art--info{--bs-icon-tile-bg:var(--bs-error-page-info-bg)}.bs-error-page__glyph,::slotted([slot='icon']){width:24px;height:24px}.bs-error-page__code{color:var(--bs-error-page-color-secondary);font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-semibold);line-height:20px}.bs-error-page__heading{margin:0;font-size:var(--bs-font-size-2xl);font-weight:var(--bs-font-weight-bold);line-height:32px}.bs-error-page__description{max-width:var(--bs-error-page-description-width);margin:0;color:var(--bs-error-page-color-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-error-page__actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--bs-spacing-100);padding-top:var(--bs-spacing-100)}.bs-error-page__actions bs-button{--bs-button-height-md:var(--bs-spacing-550)}.bs-error-page__reference{margin:0;color:var(--bs-error-page-color-muted);font-size:var(--bs-font-size-xs);line-height:16px}"}},[769,"bs-error-page",{type:[513],code:[1],heading:[1],headingLevel:[2,"heading-level"],description:[1],primaryLabel:[1,"primary-label"],secondaryLabel:[1,"secondary-label"],reference:[1]}]),p=r=>()=>e("svg",{class:"bs-error-page__glyph",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r),b={"not-found":{intent:"default",info:!0,code:"404",heading:"Page not found",description:"The link may be old, or the page has moved.",primary:"Go to Overview",secondary:"Search",glyph:p(e("g",null,e("circle",{cx:"10.5",cy:"10.5",r:"6.5"}),e("path",{d:"M15.5 15.5L20.5 20.5"})))},"server-error":{intent:"error",code:"500",heading:"Something went wrong on our side",description:"We’re working on it. Try again in a moment.",primary:"Try again",secondary:"Contact support",glyph:p(e("g",null,e("circle",{cx:"12",cy:"12",r:"9"}),e("path",{d:"M12 7.5V12.5"}),e("path",{d:"M12 16.2V16.3"})))},"no-access":{intent:"default",code:"403",heading:"You don’t have access",description:"Contact your administrator for the access.",primary:"Request access",secondary:"Go back",glyph:p(e("g",null,e("rect",{x:"5",y:"10.5",width:"14",height:"9.5",rx:"1.5"}),e("path",{d:"M8.5 10.5V8A3.5 3.5 0 0 1 15.5 8V10.5"})))},maintenance:{intent:"warning",code:"Maintenance",heading:"We’re upgrading the system",description:"We’ll be back shortly. Your data is safe.",primary:"View system status",secondary:"",glyph:p(e("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"}))},offline:{intent:"warning",code:"Offline",heading:"No internet connection",description:"Changes are saved locally and will be updated when you’re back online.",primary:"Try again",secondary:"",glyph:p(e("g",null,e("path",{d:"M4 4L20 20"}),e("path",{d:"M2.5 9.5A14 14 0 0 1 8 6.7"}),e("path",{d:"M21.5 9.5A14 14 0 0 0 14 6.2"}),e("path",{d:"M5.5 13A9.5 9.5 0 0 1 9.5 10.6"}),e("path",{d:"M18.5 13A9.5 9.5 0 0 0 16 11.3"}),e("path",{d:"M9 16.5A4.5 4.5 0 0 1 12 15.3"}),e("path",{d:"M12 19.2V19.3"})))}};function g(){"undefined"!=typeof customElements&&["bs-error-page","bs-button","bs-card","bs-icon-tile","bs-ripple"].forEach((e=>{switch(e){case"bs-error-page":customElements.get(r(e))||customElements.define(r(e),d);break;case"bs-button":customElements.get(r(e))||t();break;case"bs-card":customElements.get(r(e))||n();break;case"bs-icon-tile":customElements.get(r(e))||i();break;case"bs-ripple":customElements.get(r(e))||c()}}))}g();const l=d,h=g;export{l as BsErrorPage,h as defineCustomElement}
1
+ import{h as e,t as r,p as a,H as s,c as o}from"./p-CcAX4o5o.js";import{d as t}from"./p-9Y5WEZ6K.js";import{d as n}from"./p-mxDA3wKn.js";import{d as i}from"./p-Czo6AWrI.js";import{d as c}from"./p-Lj6_zdoI.js";const d=a(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsPrimary=o(this,"bsPrimary"),this.bsSecondary=o(this,"bsSecondary")}type="not-found";code;heading;headingLevel=1;description;primaryLabel;secondaryLabel;reference;bsPrimary;bsSecondary;get defaults(){return b[this.type]??b["not-found"]}render(){const r=this.defaults,a=this.code??r.code,s=this.heading??r.heading,o=this.description??r.description,t=this.primaryLabel??r.primary,n=this.secondaryLabel??r.secondary,i=Math.min(6,Math.max(1,Math.trunc(Number(this.headingLevel))||1));return e("bs-card",{key:"959ae769b28e34f8b2e7809d9995e62104137d35",part:"container",class:"bs-error-page",surface:"base"},e("div",{key:"2c9e26e9a09f8fa5deb4b90087f21b11a147ba22",class:"bs-error-page__body"},e("div",{key:"b78be284e49c08a2ff3b42c7b21cb4ae082a88af",class:"bs-error-page__art-group"},e("bs-icon-tile",{key:"39fdd05129fa456456a2a5d3ff5e45141c88b58b",part:"art",class:"bs-error-page__art "+(r.info?"bs-error-page__art--info":""),intent:r.intent,size:"lg"},e("slot",{key:"b770488128fb8229b2e47966e0c63ee0e8a11499",name:"icon"},r.glyph())),a&&e("span",{key:"0892446d1291ae8ac8c6954a6f667a6690793a5c",part:"code",class:"bs-error-page__code"},a)),e("h"+i,{part:"heading",class:{"bs-error-page__heading":!0}},s),o&&e("p",{key:"ed69d26275e6233d5ab63aa9c3d5ae4559fa2c60",part:"description",class:"bs-error-page__description"},o),(t||n)&&e("div",{key:"60efdbce69379afadb78c9447fd5fb25d251cae0",part:"actions",class:"bs-error-page__actions"},t&&e("bs-button",{key:"08ab35c6149a1c89b8a174395bc1634be79d535a",part:"primary",variant:"primary",onClick:()=>this.bsPrimary.emit()},t),n&&e("bs-button",{key:"a4883e2c8fe7f1e19a868c2210d35bf39d03e08a",part:"secondary",variant:"outlined",onClick:()=>this.bsSecondary.emit()},n)),this.reference&&e("p",{key:"b99d0b503bbc103851829f41cc70c71d87b76fd5",part:"reference",class:"bs-error-page__reference"},this.reference)))}static get style(){return":host{display:block;--bs-error-page-bg:var(--bs-paper-bg-base);--bs-error-page-radius:var(--bs-border-radius-100);--bs-error-page-padding:var(--bs-spacing-400);--bs-error-page-min-height:440px;--bs-error-page-gap:var(--bs-spacing-150);--bs-error-page-description-width:420px;--bs-error-page-color:var(--bs-text-default);--bs-error-page-color-secondary:var(--bs-text-secondary);--bs-error-page-color-muted:var(--bs-text-muted);--bs-error-page-info-bg:var(--bs-color-info-container)}.bs-error-page{--bs-card-bg:var(--bs-error-page-bg);--bs-card-radius:var(--bs-error-page-radius);--bs-card-padding:var(--bs-error-page-padding);--bs-card-shadow:none;color:var(--bs-error-page-color)}.bs-error-page__body{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--bs-error-page-gap);min-height:calc(var(--bs-error-page-min-height) - var(--bs-error-page-padding) * 2);text-align:center}.bs-error-page__art-group{display:flex;flex-direction:column;align-items:center;gap:var(--bs-spacing-150)}.bs-error-page__art--info{--bs-icon-tile-bg:var(--bs-error-page-info-bg)}.bs-error-page__glyph,::slotted([slot='icon']){width:24px;height:24px}.bs-error-page__code{color:var(--bs-error-page-color-secondary);font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-semibold);line-height:20px}.bs-error-page__heading{margin:0;font-size:var(--bs-font-size-2xl);font-weight:var(--bs-font-weight-bold);line-height:32px}.bs-error-page__description{max-width:var(--bs-error-page-description-width);margin:0;color:var(--bs-error-page-color-secondary);font-size:var(--bs-font-size-sm);line-height:20px}.bs-error-page__actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--bs-spacing-100);padding-top:var(--bs-spacing-100)}.bs-error-page__actions bs-button{--bs-button-height-md:var(--bs-spacing-550)}.bs-error-page__reference{margin:0;color:var(--bs-error-page-color-muted);font-size:var(--bs-font-size-xs);line-height:16px}"}},[769,"bs-error-page",{type:[513],code:[1],heading:[1],headingLevel:[2,"heading-level"],description:[1],primaryLabel:[1,"primary-label"],secondaryLabel:[1,"secondary-label"],reference:[1]}]),p=r=>()=>e("svg",{class:"bs-error-page__glyph",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r),b={"not-found":{intent:"default",info:!0,code:"404",heading:"Page not found",description:"The link may be old, or the page has moved.",primary:"Go to Overview",secondary:"Search",glyph:p(e("g",null,e("circle",{cx:"10.5",cy:"10.5",r:"6.5"}),e("path",{d:"M15.5 15.5L20.5 20.5"})))},"server-error":{intent:"error",code:"500",heading:"Something went wrong on our side",description:"We’re working on it. Try again in a moment.",primary:"Try again",secondary:"Contact support",glyph:p(e("g",null,e("circle",{cx:"12",cy:"12",r:"9"}),e("path",{d:"M12 7.5V12.5"}),e("path",{d:"M12 16.2V16.3"})))},"no-access":{intent:"default",code:"403",heading:"You don’t have access",description:"Contact your administrator for the access.",primary:"Request access",secondary:"Go back",glyph:p(e("g",null,e("rect",{x:"5",y:"10.5",width:"14",height:"9.5",rx:"1.5"}),e("path",{d:"M8.5 10.5V8A3.5 3.5 0 0 1 15.5 8V10.5"})))},maintenance:{intent:"warning",code:"Maintenance",heading:"We’re upgrading the system",description:"We’ll be back shortly. Your data is safe.",primary:"View system status",secondary:"",glyph:p(e("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"}))},offline:{intent:"warning",code:"Offline",heading:"No internet connection",description:"Changes are saved locally and will be updated when you’re back online.",primary:"Try again",secondary:"",glyph:p(e("g",null,e("path",{d:"M4 4L20 20"}),e("path",{d:"M2.5 9.5A14 14 0 0 1 8 6.7"}),e("path",{d:"M21.5 9.5A14 14 0 0 0 14 6.2"}),e("path",{d:"M5.5 13A9.5 9.5 0 0 1 9.5 10.6"}),e("path",{d:"M18.5 13A9.5 9.5 0 0 0 16 11.3"}),e("path",{d:"M9 16.5A4.5 4.5 0 0 1 12 15.3"}),e("path",{d:"M12 19.2V19.3"})))}};function g(){"undefined"!=typeof customElements&&["bs-error-page","bs-button","bs-card","bs-icon-tile","bs-ripple"].forEach((e=>{switch(e){case"bs-error-page":customElements.get(r(e))||customElements.define(r(e),d);break;case"bs-button":customElements.get(r(e))||t();break;case"bs-card":customElements.get(r(e))||n();break;case"bs-icon-tile":customElements.get(r(e))||i();break;case"bs-ripple":customElements.get(r(e))||c()}}))}g();const l=d,h=g;export{l as BsErrorPage,h as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as s,H as i,c as t,h as o}from"./p-CcAX4o5o.js";import{d as l}from"./p-DQY3n0nR.js";import{d as a}from"./p-TRtv6fbe.js";import{d as r}from"./p-ESiaIgGU.js";const n=s(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsCancel=t(this,"bsCancel"),this.bsRemove=t(this,"bsRemove")}state="loading";fileName="";fileSize;progress=0;message;thumbnailSrc;thumbnailAlt="";cancelLabel="Cancel upload";removeLabel="Remove file";bsCancel;bsRemove;get clampedProgress(){return Math.min(100,Math.max(0,Math.round(Number.isFinite(this.progress)?this.progress:0)))}get statusText(){if(this.message)return this.message;switch(this.state){case"in-progress":return this.clampedProgress+"% uploaded";case"error":return"Upload failed";case"success":return"File uploaded successfully";default:return"Loading..."}}onAction=()=>{"success"===this.state?this.bsRemove.emit():this.bsCancel.emit()};renderStatus(){return"loading"===this.state||"in-progress"===this.state?o("bs-progress-linear",{part:"progress",size:"small",type:"loading"===this.state?"indeterminate":"determinate",value:this.clampedProgress,ariaLabel:this.fileName||"Upload progress"},this.statusText):o("div",{part:"status",class:"bs-file-upload-item__status bs-file-upload-item__status--"+this.state,role:"status"},o("success"===this.state?u:c,null),o("span",{class:"bs-file-upload-item__status-text"},this.statusText))}render(){const e="success"===this.state;return o("div",{key:"b3dfe347e900ba5f452e6d653f17b66956eba4b7",part:"item",class:"bs-file-upload-item bs-file-upload-item--"+this.state},o("div",{key:"619821ac9b479d7dc78d98fb0344942c1b205d53",part:"thumbnail",class:"bs-file-upload-item__thumbnail"},o("slot",{key:"879934c913d92097e079faa64b05322720e28467",name:"thumbnail"},this.thumbnailSrc?o("img",{class:"bs-file-upload-item__image",src:this.thumbnailSrc,alt:this.thumbnailAlt}):o(d,null))),o("div",{key:"54e8b1582cb66122a5a7d7a0125e2bd99df28f8f",class:"bs-file-upload-item__content"},o("div",{key:"3d79114f91830c4f22586da37bfb4f3e71f8ee04",class:"bs-file-upload-item__meta"},o("span",{key:"450b9ac9b96506884fdf8ebc50adb57055f5d4bd",part:"name",class:"bs-file-upload-item__name"},this.fileName),this.fileSize&&o("span",{key:"0ee574ac068a6f4dbc2c59a9c9bac31ab9087001",part:"size",class:"bs-file-upload-item__size"},this.fileSize)),this.renderStatus()),o("bs-icon-button",{key:"bbb36dc36d633a7a3d9150df5d1992b1b3e356ce",part:"action",variant:"subtle",size:"lg",ariaLabel:e?this.removeLabel:this.cancelLabel,onClick:this.onAction},o(e?p:b,null)))}static get style(){return":host{display:block;--bs-file-upload-item-bg:var(--bs-surface-base);--bs-file-upload-item-border-color:var(--bs-border-default);--bs-file-upload-item-border-width:var(--bs-border-width-thin);--bs-file-upload-item-radius:var(--bs-border-radius-150);--bs-file-upload-item-padding:var(--bs-spacing-200);--bs-file-upload-item-gap:var(--bs-spacing-150);--bs-file-upload-item-thumbnail-size:80px;--bs-file-upload-item-thumbnail-radius:var(--bs-border-radius-100);--bs-file-upload-item-thumbnail-bg:var(--bs-surface-container);--bs-file-upload-item-thumbnail-icon-color:var(--bs-icon-muted);--bs-file-upload-item-content-gap:var(--bs-spacing-100);--bs-file-upload-item-name-color:var(--bs-text-default);--bs-file-upload-item-size-color:var(--bs-text-default);--bs-file-upload-item-success-color:var(--bs-text-success);--bs-file-upload-item-success-icon-color:var(--bs-icon-success);--bs-file-upload-item-error-color:var(--bs-text-error);--bs-file-upload-item-error-icon-color:var(--bs-icon-error)}.bs-file-upload-item{box-sizing:border-box;display:flex;align-items:flex-start;gap:var(--bs-file-upload-item-gap);padding:var(--bs-file-upload-item-padding);border:var(--bs-file-upload-item-border-width) solid var(--bs-file-upload-item-border-color);border-radius:var(--bs-file-upload-item-radius);background:var(--bs-file-upload-item-bg);font-size:var(--bs-font-size-md);line-height:calc(var(--bs-line-height-body-md) * 1px)}.bs-file-upload-item__thumbnail{display:flex;flex:none;align-items:center;justify-content:center;width:var(--bs-file-upload-item-thumbnail-size);height:var(--bs-file-upload-item-thumbnail-size);overflow:hidden;border-radius:var(--bs-file-upload-item-thumbnail-radius);background:var(--bs-file-upload-item-thumbnail-bg);color:var(--bs-file-upload-item-thumbnail-icon-color)}.bs-file-upload-item__placeholder{display:block;width:32px;height:32px}.bs-file-upload-item__image{display:block;width:100%;height:100%;object-fit:cover}.bs-file-upload-item__content{display:flex;flex:1;flex-direction:column;justify-content:center;gap:var(--bs-file-upload-item-content-gap);align-self:stretch;min-width:0}.bs-file-upload-item__meta{display:flex;flex-direction:column}.bs-file-upload-item__name{color:var(--bs-file-upload-item-name-color);font-weight:600;overflow-wrap:anywhere}.bs-file-upload-item__size{color:var(--bs-file-upload-item-size-color);font-size:var(--bs-font-size-sm);line-height:calc(var(--bs-line-height-body-sm) * 1px)}.bs-file-upload-item__status{display:flex;align-items:center;gap:var(--bs-spacing-50);min-height:24px}.bs-file-upload-item__status-icon{display:block;flex:none;width:16px;height:16px}.bs-file-upload-item__status--success{color:var(--bs-file-upload-item-success-color)}.bs-file-upload-item__status--success .bs-file-upload-item__status-icon{color:var(--bs-file-upload-item-success-icon-color)}.bs-file-upload-item__status--error{color:var(--bs-file-upload-item-error-color)}.bs-file-upload-item__status--error .bs-file-upload-item__status-icon{color:var(--bs-file-upload-item-error-icon-color)}bs-progress-linear{width:100%}bs-icon-button{flex:none;--bs-icon-neutral-default:var(--bs-icon-default)}@media (forced-colors: active){.bs-file-upload-item{border-color:CanvasText}}"}},[769,"bs-file-upload-item",{state:[513],fileName:[1,"file-name"],fileSize:[1,"file-size"],progress:[2],message:[1],thumbnailSrc:[1,"thumbnail-src"],thumbnailAlt:[1,"thumbnail-alt"],cancelLabel:[1,"cancel-label"],removeLabel:[1,"remove-label"]}]),d=()=>o("svg",{class:"bs-file-upload-item__placeholder",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},o("path",{d:"M5 6H27C27.5523 6 28 6.44772 28 7V25C28 25.5523 27.5523 26 27 26H5C4.44772 26 4 25.5523 4 25V7C4 6.44772 4.44772 6 5 6Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),o("path",{d:"M19.5 14C20.3284 14 21 13.3284 21 12.5C21 11.6716 20.3284 11 19.5 11C18.6716 11 18 11.6716 18 12.5C18 13.3284 18.6716 14 19.5 14Z",fill:"currentColor"}),o("path",{d:"M18.4137 20.5L21.625 17.2925C21.8125 17.1051 22.0668 16.9998 22.3319 16.9998C22.597 16.9998 22.8512 17.1051 23.0387 17.2925L28 22.2575",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),o("path",{d:"M4 21.0863L10.7925 14.2925C10.8854 14.1995 10.9957 14.1258 11.1171 14.0754C11.2385 14.0251 11.3686 13.9992 11.5 13.9992C11.6314 13.9992 11.7615 14.0251 11.8829 14.0754C12.0043 14.1258 12.1146 14.1995 12.2075 14.2925L23.9137 26",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})),u=()=>o("svg",{class:"bs-file-upload-item__status-icon",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},o("path",{d:"M11.0306 5.96938C11.1005 6.03905 11.156 6.12185 11.1939 6.21301C11.2317 6.30417 11.2512 6.40191 11.2512 6.50063C11.2512 6.59934 11.2317 6.69708 11.1939 6.78824C11.156 6.8794 11.1005 6.9622 11.0306 7.03188L7.53062 10.5319C7.46095 10.6018 7.37815 10.6573 7.28699 10.6951C7.19582 10.733 7.09809 10.7525 6.99937 10.7525C6.90066 10.7525 6.80292 10.733 6.71176 10.6951C6.6206 10.6573 6.5378 10.6018 6.46812 10.5319L4.96812 9.03187C4.89836 8.96211 4.84302 8.87929 4.80526 8.78814C4.76751 8.69698 4.74807 8.59929 4.74807 8.50062C4.74807 8.40196 4.76751 8.30427 4.80526 8.21311C4.84302 8.12196 4.89836 8.03914 4.96812 7.96938C5.03789 7.89961 5.12071 7.84427 5.21186 7.80651C5.30302 7.76876 5.40071 7.74932 5.49937 7.74932C5.59804 7.74932 5.69573 7.76876 5.78689 7.80651C5.87804 7.84427 5.96086 7.89961 6.03062 7.96938L7 8.9375L9.96937 5.9675C10.0392 5.89789 10.122 5.84272 10.2131 5.80513C10.3042 5.76755 10.4018 5.7483 10.5004 5.74847C10.599 5.74865 10.6965 5.76825 10.7875 5.80615C10.8785 5.84405 10.9611 5.89952 11.0306 5.96938ZM14.75 8C14.75 9.33502 14.3541 10.6401 13.6124 11.7501C12.8707 12.8601 11.8165 13.7253 10.5831 14.2362C9.34971 14.7471 7.99251 14.8808 6.68314 14.6203C5.37377 14.3598 4.17103 13.717 3.22703 12.773C2.28302 11.829 1.64015 10.6262 1.3797 9.31686C1.11925 8.00749 1.25292 6.65029 1.76381 5.41689C2.2747 4.18349 3.13987 3.12928 4.2499 2.38758C5.35993 1.64588 6.66498 1.25 8 1.25C9.7896 1.25199 11.5053 1.96378 12.7708 3.22922C14.0362 4.49466 14.748 6.2104 14.75 8ZM13.25 8C13.25 6.96165 12.9421 5.94661 12.3652 5.08326C11.7883 4.2199 10.9684 3.54699 10.0091 3.14963C9.04978 2.75227 7.99418 2.6483 6.97578 2.85088C5.95738 3.05345 5.02191 3.55346 4.28769 4.28769C3.55346 5.02191 3.05345 5.95738 2.85088 6.97578C2.6483 7.99418 2.75227 9.04978 3.14963 10.0091C3.54699 10.9684 4.2199 11.7883 5.08326 12.3652C5.94661 12.9421 6.96165 13.25 8 13.25C9.39193 13.2485 10.7264 12.6949 11.7107 11.7107C12.6949 10.7264 13.2485 9.39193 13.25 8Z",fill:"currentColor"})),c=()=>o("svg",{class:"bs-file-upload-item__status-icon",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},o("path",{d:"M10.5306 6.53062L9.0625 8L10.5325 9.46937C10.6734 9.61027 10.7526 9.80137 10.7526 10.0006C10.7526 10.1999 10.6734 10.391 10.5325 10.5319C10.3916 10.6728 10.2005 10.7519 10.0013 10.7519C9.80199 10.7519 9.6109 10.6728 9.47 10.5319L8 9.0625L6.53062 10.5325C6.38973 10.6734 6.19863 10.7526 5.99937 10.7526C5.80012 10.7526 5.60902 10.6734 5.46812 10.5325C5.32723 10.3916 5.24807 10.2005 5.24807 10.0013C5.24807 9.80199 5.32723 9.6109 5.46812 9.47L6.9375 8L5.46937 6.53062C5.39961 6.46086 5.34427 6.37804 5.30651 6.28689C5.26876 6.19573 5.24932 6.09804 5.24932 5.99937C5.24932 5.80012 5.32848 5.60902 5.46937 5.46812C5.61027 5.32723 5.80137 5.24807 6.00062 5.24807C6.19988 5.24807 6.39098 5.32723 6.53187 5.46812L8 6.9375L9.46937 5.4675C9.61027 5.3266 9.80137 5.24745 10.0006 5.24745C10.1999 5.24745 10.391 5.3266 10.5319 5.4675C10.6728 5.6084 10.7519 5.79949 10.7519 5.99875C10.7519 6.19801 10.6728 6.3891 10.5319 6.53L10.5306 6.53062ZM14.75 8C14.75 9.33502 14.3541 10.6401 13.6124 11.7501C12.8707 12.8601 11.8165 13.7253 10.5831 14.2362C9.34971 14.7471 7.99251 14.8808 6.68314 14.6203C5.37377 14.3598 4.17103 13.717 3.22703 12.773C2.28302 11.829 1.64015 10.6262 1.3797 9.31686C1.11925 8.00749 1.25292 6.65029 1.76381 5.41689C2.2747 4.18349 3.13987 3.12928 4.2499 2.38758C5.35993 1.64588 6.66498 1.25 8 1.25C9.7896 1.25199 11.5053 1.96378 12.7708 3.22922C14.0362 4.49466 14.748 6.2104 14.75 8ZM13.25 8C13.25 6.96165 12.9421 5.94661 12.3652 5.08326C11.7883 4.2199 10.9684 3.54699 10.0091 3.14963C9.04978 2.75227 7.99418 2.6483 6.97578 2.85088C5.95738 3.05345 5.02191 3.55346 4.28769 4.28769C3.55346 5.02191 3.05345 5.95738 2.85088 6.97578C2.6483 7.99418 2.75227 9.04978 3.14963 10.0091C3.54699 10.9684 4.2199 11.7883 5.08326 12.3652C5.94661 12.9421 6.96165 13.25 8 13.25C9.39193 13.2485 10.7264 12.6949 11.7107 11.7107C12.6949 10.7264 13.2485 9.39193 13.25 8Z",fill:"currentColor"})),b=()=>o("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},o("path",{d:"M18.75 5.25L5.25 18.75",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),o("path",{d:"M18.75 18.75L5.25 5.25",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})),p=()=>o("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},o("path",{d:"M20.25 5.25H3.75",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),o("path",{d:"M9.75 9.75V15.75",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),o("path",{d:"M14.25 9.75V15.75",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),o("path",{d:"M18.75 5.25V19.5C18.75 19.6989 18.671 19.8897 18.5303 20.0303C18.3897 20.171 18.1989 20.25 18 20.25H6C5.80109 20.25 5.61032 20.171 5.46967 20.0303C5.32902 19.8897 5.25 19.6989 5.25 19.5V5.25",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),o("path",{d:"M15.75 5.25V3.75C15.75 3.35218 15.592 2.97064 15.3107 2.68934C15.0294 2.40804 14.6478 2.25 14.25 2.25H9.75C9.35218 2.25 8.97064 2.40804 8.68934 2.68934C8.40804 2.97064 8.25 3.35218 8.25 3.75V5.25",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}));function m(){"undefined"!=typeof customElements&&["bs-file-upload-item","bs-icon-button","bs-progress-linear","bs-ripple"].forEach((s=>{switch(s){case"bs-file-upload-item":customElements.get(e(s))||customElements.define(e(s),n);break;case"bs-icon-button":customElements.get(e(s))||l();break;case"bs-progress-linear":customElements.get(e(s))||a();break;case"bs-ripple":customElements.get(e(s))||r()}}))}m();const f=n,h=m;export{f as BsFileUploadItem,h as defineCustomElement}
1
+ import{t as e,p as s,H as i,c as t,h as o}from"./p-CcAX4o5o.js";import{d as l}from"./p-C5CNfDjK.js";import{d as a}from"./p-BgB9tIB9.js";import{d as r}from"./p-Lj6_zdoI.js";const n=s(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsCancel=t(this,"bsCancel"),this.bsRemove=t(this,"bsRemove")}state="loading";fileName="";fileSize;progress=0;message;thumbnailSrc;thumbnailAlt="";cancelLabel="Cancel upload";removeLabel="Remove file";bsCancel;bsRemove;get clampedProgress(){return Math.min(100,Math.max(0,Math.round(Number.isFinite(this.progress)?this.progress:0)))}get statusText(){if(this.message)return this.message;switch(this.state){case"in-progress":return this.clampedProgress+"% uploaded";case"error":return"Upload failed";case"success":return"File uploaded successfully";default:return"Loading..."}}onAction=()=>{"success"===this.state?this.bsRemove.emit():this.bsCancel.emit()};renderStatus(){return"loading"===this.state||"in-progress"===this.state?o("bs-progress-linear",{part:"progress",size:"small",type:"loading"===this.state?"indeterminate":"determinate",value:this.clampedProgress,ariaLabel:this.fileName||"Upload progress"},this.statusText):o("div",{part:"status",class:"bs-file-upload-item__status bs-file-upload-item__status--"+this.state,role:"status"},o("success"===this.state?u:c,null),o("span",{class:"bs-file-upload-item__status-text"},this.statusText))}render(){const e="success"===this.state;return o("div",{key:"76c6eec0456ffea46333327b2758f4e90b4df15d",part:"item",class:"bs-file-upload-item bs-file-upload-item--"+this.state},o("div",{key:"1b79696442c06b562c3a5e004d85f52b11890704",part:"thumbnail",class:"bs-file-upload-item__thumbnail"},o("slot",{key:"7c7436f2afaab8a6a642e7ead5b3568c88ac11d9",name:"thumbnail"},this.thumbnailSrc?o("img",{class:"bs-file-upload-item__image",src:this.thumbnailSrc,alt:this.thumbnailAlt}):o(d,null))),o("div",{key:"112da43807c703eeba751a26e946196a4f014e91",class:"bs-file-upload-item__content"},o("div",{key:"ae7cb642892239fe199e62c08058bd9858f32641",class:"bs-file-upload-item__meta"},o("span",{key:"e0c3eea1f905470f471c76a53d28152b20d33fed",part:"name",class:"bs-file-upload-item__name"},this.fileName),this.fileSize&&o("span",{key:"0836c13dc7e37379f42c700cb452fc5814d54e5a",part:"size",class:"bs-file-upload-item__size"},this.fileSize)),this.renderStatus()),o("bs-icon-button",{key:"29f1eb7e8f057cc6bf3ed026ff0b7c5626ebf951",part:"action",variant:"subtle",size:"lg",ariaLabel:e?this.removeLabel:this.cancelLabel,onClick:this.onAction},o(e?p:b,null)))}static get style(){return":host{display:block;--bs-file-upload-item-bg:var(--bs-surface-base);--bs-file-upload-item-border-color:var(--bs-border-default);--bs-file-upload-item-border-width:var(--bs-border-width-thin);--bs-file-upload-item-radius:var(--bs-border-radius-150);--bs-file-upload-item-padding:var(--bs-spacing-200);--bs-file-upload-item-gap:var(--bs-spacing-150);--bs-file-upload-item-thumbnail-size:80px;--bs-file-upload-item-thumbnail-radius:var(--bs-border-radius-100);--bs-file-upload-item-thumbnail-bg:var(--bs-surface-container);--bs-file-upload-item-thumbnail-icon-color:var(--bs-icon-muted);--bs-file-upload-item-content-gap:var(--bs-spacing-100);--bs-file-upload-item-name-color:var(--bs-text-default);--bs-file-upload-item-size-color:var(--bs-text-default);--bs-file-upload-item-success-color:var(--bs-text-success);--bs-file-upload-item-success-icon-color:var(--bs-icon-success);--bs-file-upload-item-error-color:var(--bs-text-error);--bs-file-upload-item-error-icon-color:var(--bs-icon-error)}.bs-file-upload-item{box-sizing:border-box;display:flex;align-items:flex-start;gap:var(--bs-file-upload-item-gap);padding:var(--bs-file-upload-item-padding);border:var(--bs-file-upload-item-border-width) solid var(--bs-file-upload-item-border-color);border-radius:var(--bs-file-upload-item-radius);background:var(--bs-file-upload-item-bg);font-size:var(--bs-font-size-md);line-height:calc(var(--bs-line-height-body-md) * 1px)}.bs-file-upload-item__thumbnail{display:flex;flex:none;align-items:center;justify-content:center;width:var(--bs-file-upload-item-thumbnail-size);height:var(--bs-file-upload-item-thumbnail-size);overflow:hidden;border-radius:var(--bs-file-upload-item-thumbnail-radius);background:var(--bs-file-upload-item-thumbnail-bg);color:var(--bs-file-upload-item-thumbnail-icon-color)}.bs-file-upload-item__placeholder{display:block;width:32px;height:32px}.bs-file-upload-item__image{display:block;width:100%;height:100%;object-fit:cover}.bs-file-upload-item__content{display:flex;flex:1;flex-direction:column;justify-content:center;gap:var(--bs-file-upload-item-content-gap);align-self:stretch;min-width:0}.bs-file-upload-item__meta{display:flex;flex-direction:column}.bs-file-upload-item__name{color:var(--bs-file-upload-item-name-color);font-weight:600;overflow-wrap:anywhere}.bs-file-upload-item__size{color:var(--bs-file-upload-item-size-color);font-size:var(--bs-font-size-sm);line-height:calc(var(--bs-line-height-body-sm) * 1px)}.bs-file-upload-item__status{display:flex;align-items:center;gap:var(--bs-spacing-50);min-height:24px}.bs-file-upload-item__status-icon{display:block;flex:none;width:16px;height:16px}.bs-file-upload-item__status--success{color:var(--bs-file-upload-item-success-color)}.bs-file-upload-item__status--success .bs-file-upload-item__status-icon{color:var(--bs-file-upload-item-success-icon-color)}.bs-file-upload-item__status--error{color:var(--bs-file-upload-item-error-color)}.bs-file-upload-item__status--error .bs-file-upload-item__status-icon{color:var(--bs-file-upload-item-error-icon-color)}bs-progress-linear{width:100%}bs-icon-button{flex:none;--bs-icon-neutral-default:var(--bs-icon-default)}@media (forced-colors: active){.bs-file-upload-item{border-color:CanvasText}}"}},[769,"bs-file-upload-item",{state:[513],fileName:[1,"file-name"],fileSize:[1,"file-size"],progress:[2],message:[1],thumbnailSrc:[1,"thumbnail-src"],thumbnailAlt:[1,"thumbnail-alt"],cancelLabel:[1,"cancel-label"],removeLabel:[1,"remove-label"]}]),d=()=>o("svg",{class:"bs-file-upload-item__placeholder",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},o("path",{d:"M5 6H27C27.5523 6 28 6.44772 28 7V25C28 25.5523 27.5523 26 27 26H5C4.44772 26 4 25.5523 4 25V7C4 6.44772 4.44772 6 5 6Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),o("path",{d:"M19.5 14C20.3284 14 21 13.3284 21 12.5C21 11.6716 20.3284 11 19.5 11C18.6716 11 18 11.6716 18 12.5C18 13.3284 18.6716 14 19.5 14Z",fill:"currentColor"}),o("path",{d:"M18.4137 20.5L21.625 17.2925C21.8125 17.1051 22.0668 16.9998 22.3319 16.9998C22.597 16.9998 22.8512 17.1051 23.0387 17.2925L28 22.2575",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),o("path",{d:"M4 21.0863L10.7925 14.2925C10.8854 14.1995 10.9957 14.1258 11.1171 14.0754C11.2385 14.0251 11.3686 13.9992 11.5 13.9992C11.6314 13.9992 11.7615 14.0251 11.8829 14.0754C12.0043 14.1258 12.1146 14.1995 12.2075 14.2925L23.9137 26",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})),u=()=>o("svg",{class:"bs-file-upload-item__status-icon",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},o("path",{d:"M11.0306 5.96938C11.1005 6.03905 11.156 6.12185 11.1939 6.21301C11.2317 6.30417 11.2512 6.40191 11.2512 6.50063C11.2512 6.59934 11.2317 6.69708 11.1939 6.78824C11.156 6.8794 11.1005 6.9622 11.0306 7.03188L7.53062 10.5319C7.46095 10.6018 7.37815 10.6573 7.28699 10.6951C7.19582 10.733 7.09809 10.7525 6.99937 10.7525C6.90066 10.7525 6.80292 10.733 6.71176 10.6951C6.6206 10.6573 6.5378 10.6018 6.46812 10.5319L4.96812 9.03187C4.89836 8.96211 4.84302 8.87929 4.80526 8.78814C4.76751 8.69698 4.74807 8.59929 4.74807 8.50062C4.74807 8.40196 4.76751 8.30427 4.80526 8.21311C4.84302 8.12196 4.89836 8.03914 4.96812 7.96938C5.03789 7.89961 5.12071 7.84427 5.21186 7.80651C5.30302 7.76876 5.40071 7.74932 5.49937 7.74932C5.59804 7.74932 5.69573 7.76876 5.78689 7.80651C5.87804 7.84427 5.96086 7.89961 6.03062 7.96938L7 8.9375L9.96937 5.9675C10.0392 5.89789 10.122 5.84272 10.2131 5.80513C10.3042 5.76755 10.4018 5.7483 10.5004 5.74847C10.599 5.74865 10.6965 5.76825 10.7875 5.80615C10.8785 5.84405 10.9611 5.89952 11.0306 5.96938ZM14.75 8C14.75 9.33502 14.3541 10.6401 13.6124 11.7501C12.8707 12.8601 11.8165 13.7253 10.5831 14.2362C9.34971 14.7471 7.99251 14.8808 6.68314 14.6203C5.37377 14.3598 4.17103 13.717 3.22703 12.773C2.28302 11.829 1.64015 10.6262 1.3797 9.31686C1.11925 8.00749 1.25292 6.65029 1.76381 5.41689C2.2747 4.18349 3.13987 3.12928 4.2499 2.38758C5.35993 1.64588 6.66498 1.25 8 1.25C9.7896 1.25199 11.5053 1.96378 12.7708 3.22922C14.0362 4.49466 14.748 6.2104 14.75 8ZM13.25 8C13.25 6.96165 12.9421 5.94661 12.3652 5.08326C11.7883 4.2199 10.9684 3.54699 10.0091 3.14963C9.04978 2.75227 7.99418 2.6483 6.97578 2.85088C5.95738 3.05345 5.02191 3.55346 4.28769 4.28769C3.55346 5.02191 3.05345 5.95738 2.85088 6.97578C2.6483 7.99418 2.75227 9.04978 3.14963 10.0091C3.54699 10.9684 4.2199 11.7883 5.08326 12.3652C5.94661 12.9421 6.96165 13.25 8 13.25C9.39193 13.2485 10.7264 12.6949 11.7107 11.7107C12.6949 10.7264 13.2485 9.39193 13.25 8Z",fill:"currentColor"})),c=()=>o("svg",{class:"bs-file-upload-item__status-icon",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},o("path",{d:"M10.5306 6.53062L9.0625 8L10.5325 9.46937C10.6734 9.61027 10.7526 9.80137 10.7526 10.0006C10.7526 10.1999 10.6734 10.391 10.5325 10.5319C10.3916 10.6728 10.2005 10.7519 10.0013 10.7519C9.80199 10.7519 9.6109 10.6728 9.47 10.5319L8 9.0625L6.53062 10.5325C6.38973 10.6734 6.19863 10.7526 5.99937 10.7526C5.80012 10.7526 5.60902 10.6734 5.46812 10.5325C5.32723 10.3916 5.24807 10.2005 5.24807 10.0013C5.24807 9.80199 5.32723 9.6109 5.46812 9.47L6.9375 8L5.46937 6.53062C5.39961 6.46086 5.34427 6.37804 5.30651 6.28689C5.26876 6.19573 5.24932 6.09804 5.24932 5.99937C5.24932 5.80012 5.32848 5.60902 5.46937 5.46812C5.61027 5.32723 5.80137 5.24807 6.00062 5.24807C6.19988 5.24807 6.39098 5.32723 6.53187 5.46812L8 6.9375L9.46937 5.4675C9.61027 5.3266 9.80137 5.24745 10.0006 5.24745C10.1999 5.24745 10.391 5.3266 10.5319 5.4675C10.6728 5.6084 10.7519 5.79949 10.7519 5.99875C10.7519 6.19801 10.6728 6.3891 10.5319 6.53L10.5306 6.53062ZM14.75 8C14.75 9.33502 14.3541 10.6401 13.6124 11.7501C12.8707 12.8601 11.8165 13.7253 10.5831 14.2362C9.34971 14.7471 7.99251 14.8808 6.68314 14.6203C5.37377 14.3598 4.17103 13.717 3.22703 12.773C2.28302 11.829 1.64015 10.6262 1.3797 9.31686C1.11925 8.00749 1.25292 6.65029 1.76381 5.41689C2.2747 4.18349 3.13987 3.12928 4.2499 2.38758C5.35993 1.64588 6.66498 1.25 8 1.25C9.7896 1.25199 11.5053 1.96378 12.7708 3.22922C14.0362 4.49466 14.748 6.2104 14.75 8ZM13.25 8C13.25 6.96165 12.9421 5.94661 12.3652 5.08326C11.7883 4.2199 10.9684 3.54699 10.0091 3.14963C9.04978 2.75227 7.99418 2.6483 6.97578 2.85088C5.95738 3.05345 5.02191 3.55346 4.28769 4.28769C3.55346 5.02191 3.05345 5.95738 2.85088 6.97578C2.6483 7.99418 2.75227 9.04978 3.14963 10.0091C3.54699 10.9684 4.2199 11.7883 5.08326 12.3652C5.94661 12.9421 6.96165 13.25 8 13.25C9.39193 13.2485 10.7264 12.6949 11.7107 11.7107C12.6949 10.7264 13.2485 9.39193 13.25 8Z",fill:"currentColor"})),b=()=>o("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},o("path",{d:"M18.75 5.25L5.25 18.75",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),o("path",{d:"M18.75 18.75L5.25 5.25",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})),p=()=>o("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},o("path",{d:"M20.25 5.25H3.75",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),o("path",{d:"M9.75 9.75V15.75",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),o("path",{d:"M14.25 9.75V15.75",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),o("path",{d:"M18.75 5.25V19.5C18.75 19.6989 18.671 19.8897 18.5303 20.0303C18.3897 20.171 18.1989 20.25 18 20.25H6C5.80109 20.25 5.61032 20.171 5.46967 20.0303C5.32902 19.8897 5.25 19.6989 5.25 19.5V5.25",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),o("path",{d:"M15.75 5.25V3.75C15.75 3.35218 15.592 2.97064 15.3107 2.68934C15.0294 2.40804 14.6478 2.25 14.25 2.25H9.75C9.35218 2.25 8.97064 2.40804 8.68934 2.68934C8.40804 2.97064 8.25 3.35218 8.25 3.75V5.25",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}));function m(){"undefined"!=typeof customElements&&["bs-file-upload-item","bs-icon-button","bs-progress-linear","bs-ripple"].forEach((s=>{switch(s){case"bs-file-upload-item":customElements.get(e(s))||customElements.define(e(s),n);break;case"bs-icon-button":customElements.get(e(s))||l();break;case"bs-progress-linear":customElements.get(e(s))||a();break;case"bs-ripple":customElements.get(e(s))||r()}}))}m();const f=n,h=m;export{f as BsFileUploadItem,h as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as i,H as s,c as o,h as a}from"./p-CcAX4o5o.js";import{d as l}from"./p-BkzRLgh4.js";import{d as t}from"./p-ESiaIgGU.js";const r=i(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsFilesSelect=o(this,"bsFilesSelect"),this.bsFilesReject=o(this,"bsFilesReject")}get el(){return this}inputEl;direction="horizontal";heading;description;buttonLabel="Browse file";accept;multiple=!1;disabled=!1;dragging=!1;bsFilesSelect;bsFilesReject;matchesAccept(e){const i=(this.accept??"").split(",").map((e=>e.trim().toLowerCase())).filter(Boolean);if(0===i.length)return!0;const s=e.name.toLowerCase(),o=(e.type||"").toLowerCase();return i.some((e=>e.startsWith(".")?s.endsWith(e):e.endsWith("/*")?o.startsWith(e.slice(0,-1)):o===e))}handleFiles(e){const i=e.filter((e=>this.matchesAccept(e))),s=e.filter((e=>!this.matchesAccept(e))),o=this.multiple?i:i.slice(0,1);this.multiple||s.push(...i.slice(1)),o.length&&this.bsFilesSelect.emit(o),s.length&&this.bsFilesReject.emit(s)}onBrowse=()=>{this.disabled||this.inputEl?.click()};onInputChange=()=>{const e=Array.from(this.inputEl?.files??[]);this.inputEl&&(this.inputEl.value=""),e.length&&this.handleFiles(e)};onDragOver=e=>{this.disabled||(e.preventDefault(),this.dragging=!0)};onDragLeave=e=>{const i=e.relatedTarget;i&&e.currentTarget.contains(i)||(this.dragging=!1)};onDrop=e=>{if(this.disabled)return;e.preventDefault(),this.dragging=!1;const i=Array.from(e.dataTransfer?.files??[]);i.length&&this.handleFiles(i)};render(){return a("div",{key:"a36d673f20523d6384240fa4cabac8389b57b29f",part:"dropzone",class:`bs-file-upload bs-file-upload--${this.direction} ${this.dragging?"bs-file-upload--dragging":""} ${this.disabled?"bs-file-upload--disabled":""}`,onDragEnter:this.onDragOver,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDrop:this.onDrop},a("div",{key:"c769eb48169ccdea3d9b2ec461fc131be8deec6e",part:"icon",class:"bs-file-upload__icon"},a("slot",{key:"e09c8fe53baaf4a42171799ce3c26595fc214321",name:"icon"},a(d,{key:"e7687bf38d08a9d650c424efecf4ab1cee2fdbbd"}))),a("div",{key:"c437654a93b2d8bca60b1bf5e9d883cba66b9514",class:"bs-file-upload__content"},a("div",{key:"36c4fa07235bdaf27401d23d064b53910505bb3b",class:"bs-file-upload__text"},this.heading&&a("span",{key:"232df19561f275bd62c9829ebe70c1e6155a8ce0",part:"heading",class:"bs-file-upload__heading"},this.heading),this.description&&a("span",{key:"493bb2708692a92b669d75d1f0ab075e9fb41355",part:"description",id:"description",class:"bs-file-upload__description"},this.description)),a("bs-button",{key:"7f2955d2054a30efeec35252f776028b06a390df",part:"browse",variant:"neutral",size:"sm",disabled:this.disabled,onClick:this.onBrowse},this.buttonLabel)),a("input",{key:"367b7d2fbbbf7ddfe0ebc063d0cef22c8510e713",ref:e=>this.inputEl=e,class:"bs-file-upload__input",type:"file",hidden:!0,tabindex:-1,accept:this.accept,multiple:this.multiple,disabled:this.disabled,"aria-describedby":this.description?"description":void 0,onChange:this.onInputChange}))}static get style(){return":host{display:block;--bs-file-upload-bg:var(--bs-surface-raised);--bs-file-upload-bg-dragging:var(--bs-surface-container);--bs-file-upload-border-color:var(--bs-border-neutral-container);--bs-file-upload-border-color-dragging:var(--bs-border-neutral-container-pressed);--bs-file-upload-border-width:var(--bs-border-width-medium);--bs-file-upload-radius:var(--bs-border-radius-150);--bs-file-upload-padding:var(--bs-spacing-300);--bs-file-upload-gap:var(--bs-spacing-300);--bs-file-upload-icon-size:102px;--bs-file-upload-icon-bg:var(--bs-surface-hover);--bs-file-upload-icon-bg-dragging:var(--bs-surface-raised);--bs-file-upload-icon-color:var(--bs-icon-default);--bs-file-upload-content-gap:var(--bs-spacing-100);--bs-file-upload-text-gap:var(--bs-spacing-25);--bs-file-upload-heading-color:var(--bs-text-default);--bs-file-upload-description-color:var(--bs-text-secondary);--bs-file-upload-font-size:var(--bs-font-size-md);--bs-file-upload-line-height:var(--bs-line-height-body-md)}.bs-file-upload{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:var(--bs-file-upload-gap);padding:var(--bs-file-upload-padding);border:var(--bs-file-upload-border-width) dashed var(--bs-file-upload-border-color);border-radius:var(--bs-file-upload-radius);background:var(--bs-file-upload-bg);font-size:var(--bs-file-upload-font-size);line-height:calc(var(--bs-file-upload-line-height) * 1px)}.bs-file-upload--horizontal{flex-direction:row;justify-content:flex-start}.bs-file-upload--vertical{flex-direction:column;text-align:center}.bs-file-upload--dragging{background:var(--bs-file-upload-bg-dragging);border-color:var(--bs-file-upload-border-color-dragging)}.bs-file-upload__icon{display:flex;flex:none;align-items:center;justify-content:center;width:var(--bs-file-upload-icon-size);height:var(--bs-file-upload-icon-size);border-radius:var(--bs-border-radius-full);background:var(--bs-file-upload-icon-bg);color:var(--bs-file-upload-icon-color)}.bs-file-upload--dragging .bs-file-upload__icon{background:var(--bs-file-upload-icon-bg-dragging)}.bs-file-upload__icon-svg,.bs-file-upload__icon ::slotted(*){display:block;width:32px;height:32px}.bs-file-upload__content{display:flex;flex-direction:column;gap:var(--bs-file-upload-content-gap);min-width:0}.bs-file-upload--horizontal .bs-file-upload__content{align-items:flex-start}.bs-file-upload--vertical .bs-file-upload__content{align-items:center}.bs-file-upload__text{display:flex;flex-direction:column;gap:var(--bs-file-upload-text-gap)}.bs-file-upload__heading{color:var(--bs-file-upload-heading-color);font-weight:600}.bs-file-upload__description{color:var(--bs-file-upload-description-color)}.bs-file-upload--disabled{cursor:not-allowed}@media (forced-colors: active){.bs-file-upload{border-color:CanvasText}.bs-file-upload--dragging{border-color:Highlight}}"}},[769,"bs-file-upload",{direction:[513],heading:[1],description:[1],buttonLabel:[1,"button-label"],accept:[1],multiple:[4],disabled:[516],dragging:[1540]}]),d=()=>a("svg",{class:"bs-file-upload__icon-svg",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},a("path",{d:"M16 18V4",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),a("path",{d:"M27 18V26H5V18",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),a("path",{d:"M11 9L16 4L21 9",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}));function n(){"undefined"!=typeof customElements&&["bs-file-upload","bs-button","bs-ripple"].forEach((i=>{switch(i){case"bs-file-upload":customElements.get(e(i))||customElements.define(e(i),r);break;case"bs-button":customElements.get(e(i))||l();break;case"bs-ripple":customElements.get(e(i))||t()}}))}n();const b=r,c=n;export{b as BsFileUpload,c as defineCustomElement}
1
+ import{t as e,p as i,H as s,c as a,h as o}from"./p-CcAX4o5o.js";import{d as l}from"./p-9Y5WEZ6K.js";import{d as t}from"./p-Lj6_zdoI.js";const r=i(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bsFilesSelect=a(this,"bsFilesSelect"),this.bsFilesReject=a(this,"bsFilesReject")}get el(){return this}inputEl;direction="horizontal";heading;description;buttonLabel="Browse file";accept;multiple=!1;disabled=!1;dragging=!1;bsFilesSelect;bsFilesReject;matchesAccept(e){const i=(this.accept??"").split(",").map((e=>e.trim().toLowerCase())).filter(Boolean);if(0===i.length)return!0;const s=e.name.toLowerCase(),a=(e.type||"").toLowerCase();return i.some((e=>e.startsWith(".")?s.endsWith(e):e.endsWith("/*")?a.startsWith(e.slice(0,-1)):a===e))}handleFiles(e){const i=e.filter((e=>this.matchesAccept(e))),s=e.filter((e=>!this.matchesAccept(e))),a=this.multiple?i:i.slice(0,1);this.multiple||s.push(...i.slice(1)),a.length&&this.bsFilesSelect.emit(a),s.length&&this.bsFilesReject.emit(s)}onBrowse=()=>{this.disabled||this.inputEl?.click()};onInputChange=()=>{const e=Array.from(this.inputEl?.files??[]);this.inputEl&&(this.inputEl.value=""),e.length&&this.handleFiles(e)};onDragOver=e=>{this.disabled||(e.preventDefault(),this.dragging=!0)};onDragLeave=e=>{const i=e.relatedTarget;i&&e.currentTarget.contains(i)||(this.dragging=!1)};onDrop=e=>{if(this.disabled)return;e.preventDefault(),this.dragging=!1;const i=Array.from(e.dataTransfer?.files??[]);i.length&&this.handleFiles(i)};render(){return o("div",{key:"d54357deba77860925d31e4afc6fa461c5cda79f",part:"dropzone",class:`bs-file-upload bs-file-upload--${this.direction} ${this.dragging?"bs-file-upload--dragging":""} ${this.disabled?"bs-file-upload--disabled":""}`,onDragEnter:this.onDragOver,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDrop:this.onDrop},o("div",{key:"31a01730260ee7fc808d78f38d7b5b3a013d5f55",part:"icon",class:"bs-file-upload__icon"},o("slot",{key:"8808f036a93739ee60394c4a7c7d3aaf59b0b154",name:"icon"},o(d,{key:"c40b6bc26a59b9d15ffcc41df9a9deecca91e027"}))),o("div",{key:"728bac5a8c8270c33e6469664c40e2a521153710",class:"bs-file-upload__content"},o("div",{key:"0d95caaeb98bbda8519614ee02161ea8fa13f089",class:"bs-file-upload__text"},this.heading&&o("span",{key:"cf383bfa3622108a08fc9382b8b36d911f9a35e8",part:"heading",class:"bs-file-upload__heading"},this.heading),this.description&&o("span",{key:"bedcf6d80b3246fe8864151c649e4eb6e1f831d2",part:"description",id:"description",class:"bs-file-upload__description"},this.description)),o("bs-button",{key:"3072c4dcd99973839e3aab145f27295e61ca227b",part:"browse",variant:"neutral",size:"sm",disabled:this.disabled,onClick:this.onBrowse},this.buttonLabel)),o("input",{key:"c41931e65ef8aecdc3f49dd7141f4f9aeae25dc0",ref:e=>this.inputEl=e,class:"bs-file-upload__input",type:"file",hidden:!0,tabindex:-1,accept:this.accept,multiple:this.multiple,disabled:this.disabled,"aria-describedby":this.description?"description":void 0,onChange:this.onInputChange}))}static get style(){return":host{display:block;--bs-file-upload-bg:var(--bs-surface-raised);--bs-file-upload-bg-dragging:var(--bs-surface-container);--bs-file-upload-border-color:var(--bs-border-neutral-container);--bs-file-upload-border-color-dragging:var(--bs-border-neutral-container-pressed);--bs-file-upload-border-width:var(--bs-border-width-medium);--bs-file-upload-radius:var(--bs-border-radius-150);--bs-file-upload-padding:var(--bs-spacing-300);--bs-file-upload-gap:var(--bs-spacing-300);--bs-file-upload-icon-size:102px;--bs-file-upload-icon-bg:var(--bs-surface-hover);--bs-file-upload-icon-bg-dragging:var(--bs-surface-raised);--bs-file-upload-icon-color:var(--bs-icon-default);--bs-file-upload-content-gap:var(--bs-spacing-100);--bs-file-upload-text-gap:var(--bs-spacing-25);--bs-file-upload-heading-color:var(--bs-text-default);--bs-file-upload-description-color:var(--bs-text-secondary);--bs-file-upload-font-size:var(--bs-font-size-md);--bs-file-upload-line-height:var(--bs-line-height-body-md)}.bs-file-upload{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:var(--bs-file-upload-gap);padding:var(--bs-file-upload-padding);border:var(--bs-file-upload-border-width) dashed var(--bs-file-upload-border-color);border-radius:var(--bs-file-upload-radius);background:var(--bs-file-upload-bg);font-size:var(--bs-file-upload-font-size);line-height:calc(var(--bs-file-upload-line-height) * 1px)}.bs-file-upload--horizontal{flex-direction:row;justify-content:flex-start}.bs-file-upload--vertical{flex-direction:column;text-align:center}.bs-file-upload--dragging{background:var(--bs-file-upload-bg-dragging);border-color:var(--bs-file-upload-border-color-dragging)}.bs-file-upload__icon{display:flex;flex:none;align-items:center;justify-content:center;width:var(--bs-file-upload-icon-size);height:var(--bs-file-upload-icon-size);border-radius:var(--bs-border-radius-full);background:var(--bs-file-upload-icon-bg);color:var(--bs-file-upload-icon-color)}.bs-file-upload--dragging .bs-file-upload__icon{background:var(--bs-file-upload-icon-bg-dragging)}.bs-file-upload__icon-svg,.bs-file-upload__icon ::slotted(*){display:block;width:32px;height:32px}.bs-file-upload__content{display:flex;flex-direction:column;gap:var(--bs-file-upload-content-gap);min-width:0}.bs-file-upload--horizontal .bs-file-upload__content{align-items:flex-start}.bs-file-upload--vertical .bs-file-upload__content{align-items:center}.bs-file-upload__text{display:flex;flex-direction:column;gap:var(--bs-file-upload-text-gap)}.bs-file-upload__heading{color:var(--bs-file-upload-heading-color);font-weight:600}.bs-file-upload__description{color:var(--bs-file-upload-description-color)}.bs-file-upload--disabled{cursor:not-allowed}@media (forced-colors: active){.bs-file-upload{border-color:CanvasText}.bs-file-upload--dragging{border-color:Highlight}}"}},[769,"bs-file-upload",{direction:[513],heading:[1],description:[1],buttonLabel:[1,"button-label"],accept:[1],multiple:[4],disabled:[516],dragging:[1540]}]),d=()=>o("svg",{class:"bs-file-upload__icon-svg",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},o("path",{d:"M16 18V4",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),o("path",{d:"M27 18V26H5V18",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),o("path",{d:"M11 9L16 4L21 9",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}));function n(){"undefined"!=typeof customElements&&["bs-file-upload","bs-button","bs-ripple"].forEach((i=>{switch(i){case"bs-file-upload":customElements.get(e(i))||customElements.define(e(i),r);break;case"bs-button":customElements.get(e(i))||l();break;case"bs-ripple":customElements.get(e(i))||t()}}))}n();const b=r,c=n;export{b as BsFileUpload,c as defineCustomElement}
@@ -1 +1 @@
1
- import{t as s,p as e,H as t,c as a,h as r}from"./p-CcAX4o5o.js";import{d as i}from"./p-BkzRLgh4.js";import{d as l}from"./p-EQrsaDKp.js";import{d as o}from"./p-DPIDWFCa.js";import{d as c}from"./p-DQY3n0nR.js";import{d as n}from"./p-BYZ1TxxS.js";import{d as b}from"./p-B1pqQBKC.js";import{d as h}from"./p-B6bXreGu.js";import{d as p}from"./p-DoCH1kV9.js";import{d}from"./p-bOSY8sKI.js";import{d as u}from"./p-ESiaIgGU.js";import{d as g}from"./p-5OSJi5Hq.js";const m={default:["recent","jump-to"],results:["top-matches","search-in"],empty:[],error:[]},v=["recent","jump-to","top-matches","search-in"];let f=0;const y={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},_=e(class extends t{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.bsInput=a(this,"bsInput"),this.bsSearch=a(this,"bsSearch"),this.bsSelect=a(this,"bsSelect"),this.bsOpenChange=a(this,"bsOpenChange"),this.bsClearRecent=a(this,"bsClearRecent"),this.bsClearSearch=a(this,"bsClearSearch"),this.bsSeeAll=a(this,"bsSeeAll"),this.bsRetry=a(this,"bsRetry")}get el(){return this}id="bs-gs-"+ ++f;itemSeq=0;observer;inputEl;value="";placeholder="Search customers, orders, products…";label;disabled=!1;open=!1;status="default";totalResults;showFooter=!0;listLabel="Search suggestions";recentLabel="Recent searches";jumpToLabel="Jump to";topMatchesLabel="Top matches";searchInLabel="Search in";navigateLabel="Navigate";searchLabel="Search";closeLabel="Close";fullResultsLabel="Full results";clearRecentLabel="Clear recent";seeAllLabel="See all results";emptyHeading="No results";emptyDescription="Try a different search.";clearSearchLabel="Clear search";errorHeading="Search isn’t available right now";errorDescription="We couldn’t reach the server. Your query is kept — try again in a moment.";retryLabel="Try again";filled={recent:!1,"jump-to":!1,"top-matches":!1,"search-in":!1};activeId=null;bsInput;bsSearch;bsSelect;bsOpenChange;bsClearRecent;bsClearSearch;bsSeeAll;bsRetry;resetActive(){this.activeId=null}componentWillLoad(){this.readFilled(),this.prepareItems()}connectedCallback(){document.addEventListener("pointerdown",this.onDocPointerDown,!0),this.observer=new MutationObserver((()=>{this.readFilled(),this.prepareItems(),this.paintActive()})),this.observer.observe(this.el,{childList:!0})}disconnectedCallback(){document.removeEventListener("pointerdown",this.onDocPointerDown,!0),this.observer?.disconnect()}componentDidRender(){this.prepareItems(),this.paintActive()}allItems(){return Array.from(this.el.children).filter((s=>"BS-SEARCH-ITEM"===s.tagName&&v.includes(s.getAttribute("slot"))))}visibleItems(){if(!this.open)return[];const s=this.allItems();return(m[this.status]??[]).flatMap((e=>s.filter((s=>s.getAttribute("slot")===e))))}enabledItems(){return this.visibleItems().filter((s=>!s.disabled))}readFilled(){const s={...this.filled};let e=!1;for(const t of v){const a=Array.from(this.el.children).some((s=>s.getAttribute("slot")===t));s[t]!==a&&(s[t]=a,e=!0)}e&&(this.filled=s)}prepareItems(){for(const s of this.allItems())"option"!==s.selectionRole&&(s.selectionRole="option"),s.id||(s.id=`${this.id}-opt-${++this.itemSeq}`)}paintActive(){for(const s of this.allItems()){const e=!!this.activeId&&s.id===this.activeId;s.active!==e&&(s.active=e)}}setOpen(s){s&&this.disabled||this.open!==s&&(this.open=s,this.bsOpenChange.emit(s))}setActive(s){this.activeId=s?s.id:null,this.paintActive(),s?.scrollIntoView?.({block:"nearest"})}onDocPointerDown=s=>{this.open&&(s.composedPath().includes(this.el)||this.setOpen(!1))};onInput=s=>{s.stopPropagation(),this.value=s.detail,this.activeId=null,this.bsInput.emit(s.detail),this.setOpen(!0)};onKeyDown=s=>{switch(s.key){case"ArrowDown":case"ArrowUp":{if(s.preventDefault(),!this.open)return void this.setOpen(!0);const e=this.enabledItems();if(!e.length)return;const t=e.findIndex((s=>s.id===this.activeId));return void this.setActive(e["ArrowDown"===s.key?(t+1)%e.length:t<=0?e.length-1:t-1])}case"Enter":{const e=this.open?this.enabledItems().find((s=>s.id===this.activeId)):void 0;return void(e?(s.preventDefault(),e.click()):(this.bsSearch.emit(this.value),this.setOpen(!1)))}case"Escape":return void(this.open&&(s.preventDefault(),s.stopPropagation(),this.setOpen(!1)))}};onItemSelect(s){const e=s.target;e&&"BS-SEARCH-ITEM"===e.tagName&&(s.stopPropagation(),this.bsSelect.emit({value:s.detail,section:e.getAttribute("slot")??""}),this.setOpen(!1))}onPanelMouseOver=s=>{const e=s.composedPath().find((s=>"BS-SEARCH-ITEM"===s.tagName));e&&!e.disabled&&e.id!==this.activeId&&this.setActive(e)};clearSearch=()=>{this.value="",this.bsClearSearch.emit(),this.inputEl?.focus()};sectionLabel(s){return{recent:this.recentLabel,"jump-to":this.jumpToLabel,"top-matches":this.topMatchesLabel,"search-in":this.searchInLabel}[s]}renderHint(s,e){return r("span",{part:"hint",class:"bs-global-search__hint"},s,r("span",{class:"bs-global-search__hint-text"},e))}renderFooter(){const s="number"==typeof this.totalResults,e=r("bs-key",null,r("svg",{slot:"icon",...y},r("path",{d:"M9 14 4 9l5-5"}),r("path",{d:"M4 9h10.5a5.5 5.5 0 0 1 0 11H11"})));return"results"===this.status?r("div",{part:"footer",class:"bs-global-search__footer"},r("div",{part:"see-all",class:"bs-global-search__action",onClick:this.onActionWrapperClick((()=>this.seeAll()))},r("bs-button",{class:"bs-global-search__text-button",variant:"subtle",size:"sm",onClick:()=>this.seeAll()},s?`See all ${this.totalResults} results`:this.seeAllLabel)),r("span",{class:"bs-global-search__spacer"}),this.renderHint([e],this.fullResultsLabel)):r("div",{part:"footer",class:"bs-global-search__footer"},this.renderHint([r("bs-key",null,r("svg",{slot:"icon",...y},r("path",{d:"M12 19V5M5 12l7-7 7 7"}))),r("bs-key",null,r("svg",{slot:"icon",...y},r("path",{d:"M12 5v14M5 12l7 7 7-7"})))],this.navigateLabel),this.renderHint([e],this.searchLabel),this.renderHint([r("bs-key",{label:"Esc"})],this.closeLabel),r("span",{class:"bs-global-search__spacer"}),this.filled.recent&&r("div",{part:"clear-recent",class:"bs-global-search__action",onClick:this.onActionWrapperClick((()=>this.bsClearRecent.emit()))},r("bs-button",{class:"bs-global-search__text-button",variant:"subtle",size:"sm",onClick:()=>this.bsClearRecent.emit()},this.clearRecentLabel)))}seeAll(){this.bsSeeAll.emit(),this.setOpen(!1)}onActionWrapperClick=s=>e=>{e.target===e.currentTarget&&s()};renderStateBlock(s){const e="empty"===s;return r("slot",{name:s},r("bs-empty-state",{part:"empty",intent:e?"default":"error",heading:e?this.emptyHeading:this.errorHeading,description:e?this.emptyDescription:this.errorDescription},e?r("svg",{slot:"icon",...y},r("circle",{cx:"11",cy:"11",r:"7"}),r("path",{d:"m20 20-3.5-3.5"})):r("svg",{slot:"icon",...y},r("circle",{cx:"12",cy:"12",r:"9"}),r("path",{d:"M12 7.5v5M12 16.2v.1"})),r("bs-button",{slot:"action",variant:"outlined",onClick:()=>e?this.clearSearch():this.bsRetry.emit()},e?this.clearSearchLabel:this.retryLabel)))}announcement(){return this.open?"results"===this.status?"number"==typeof this.totalResults?this.totalResults+" results":"":"empty"===this.status?this.emptyHeading:"error"===this.status?this.errorHeading:"":""}render(){const s=(m[this.status]??[]).filter((s=>this.filled[s])),e=s.length>0,t=this.id+"-listbox",a="default"===this.status||"results"===this.status,i=this.showFooter&&a;return r("div",{key:"badb002b67175179a79d0bc9c1366632d4a0645e",class:"bs-global-search"},r("div",{key:"1902883e1e2a341bb78d57b0c2efc0695e2d50cc",part:"field",class:"bs-global-search__field",role:"combobox","aria-label":this.label||this.placeholder,"aria-expanded":(this.open&&e)+"","aria-haspopup":"listbox","aria-controls":this.open&&e?t:void 0,"aria-activedescendant":this.open&&this.activeId?this.activeId:void 0,onKeyDown:this.onKeyDown,onFocusin:()=>this.setOpen(!0),onClick:()=>this.setOpen(!0)},r("bs-input",{key:"b8f8c00f00eef0051252ea8bc5b9e7bc299dc04e",ref:s=>this.inputEl=s,type:"search",value:this.value,placeholder:this.placeholder,disabled:this.disabled,onBsInput:this.onInput})),this.open&&r("div",{key:"08102c3daa1c44ed47c141c7aa010fbe68d322f8",part:"panel",class:"bs-global-search__panel",onMouseDown:s=>s.preventDefault(),onMouseOver:this.onPanelMouseOver},a&&e&&r("div",{key:"b14315ba3ced12ea89f961b889fcd514720b331d",id:t,class:"bs-global-search__list",role:"listbox","aria-label":this.listLabel},s.map((s=>{const e=`${this.id}-h-${s}`;return r("div",{part:"section",class:"bs-global-search__section",role:"group","aria-labelledby":e},r("div",{part:"section-header",id:e,class:"bs-global-search__section-header"},this.sectionLabel(s)),r("slot",{name:s}))}))),"empty"===this.status&&this.renderStateBlock("empty"),"error"===this.status&&this.renderStateBlock("error"),i&&this.renderFooter()),r("span",{key:"c5acca23be3dab4b04a2590f079973fef8ac28c1",class:"bs-global-search__live","aria-live":"polite"},this.announcement()))}static get watchers(){return{status:[{resetActive:0}],open:[{resetActive:0}]}}static get style(){return":host{display:block;position:relative;box-sizing:border-box;width:var(--bs-global-search-width);max-width:100%;--bs-global-search-width:480px;--bs-global-search-panel-radius:var(--bs-border-radius-100);--bs-global-search-panel-padding:var(--bs-spacing-100);--bs-global-search-gap:var(--bs-spacing-100);--bs-global-search-panel-bg:var(--bs-surface-base);--bs-global-search-shadow:0 var(--bs-shadow-position-50) var(--bs-shadow-blur-100) 0 var(--bs-elevation-high);--bs-global-search-z-index:var(--bs-z-index-dropdown);--bs-global-search-divider-color:var(--bs-border-default);--bs-global-search-header-border-color:var(--bs-border-neutral-container);--bs-global-search-header-color:var(--bs-text-muted);--bs-global-search-hint-color:var(--bs-text-secondary)}.bs-global-search{position:relative}.bs-global-search__field bs-input{width:100%}.bs-global-search__panel{position:absolute;top:calc(100% + var(--bs-global-search-gap));left:0;right:0;z-index:var(--bs-global-search-z-index);box-sizing:border-box;display:flex;flex-direction:column;gap:var(--bs-global-search-gap);padding:var(--bs-global-search-panel-padding);overflow:clip;border-radius:var(--bs-global-search-panel-radius);background:var(--bs-global-search-panel-bg);box-shadow:var(--bs-global-search-shadow)}.bs-global-search__list{display:flex;flex-direction:column;gap:var(--bs-global-search-gap)}.bs-global-search__section{display:flex;flex-direction:column}.bs-global-search__section-header{padding:var(--bs-spacing-150) var(--bs-spacing-150) var(--bs-spacing-100);border-bottom:1px solid var(--bs-global-search-header-border-color);color:var(--bs-global-search-header-color);font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-medium);line-height:20px}.bs-global-search__footer{display:flex;align-items:center;gap:var(--bs-spacing-200);padding:var(--bs-spacing-100) var(--bs-spacing-100) var(--bs-spacing-50);border-top:1px solid var(--bs-global-search-divider-color)}.bs-global-search__hint{display:inline-flex;align-items:center;gap:var(--bs-spacing-50);color:var(--bs-global-search-hint-color);font-size:var(--bs-font-size-sm);line-height:20px;white-space:nowrap}.bs-global-search__spacer{flex:1 1 0}.bs-global-search__action{display:flex;align-items:center;min-height:44px;cursor:pointer}.bs-global-search__text-button{--bs-button-height-sm:32px;--bs-button-padding-x-sm:var(--bs-spacing-150);--bs-button-radius:var(--bs-border-radius-100);--bs-button-subtle-color:var(--bs-text-default)}.bs-global-search__live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}"}},[769,"bs-global-search",{value:[1025],placeholder:[1],label:[1],disabled:[516],open:[1540],status:[513],totalResults:[2,"total-results"],showFooter:[4,"show-footer"],listLabel:[1,"list-label"],recentLabel:[1,"recent-label"],jumpToLabel:[1,"jump-to-label"],topMatchesLabel:[1,"top-matches-label"],searchInLabel:[1,"search-in-label"],navigateLabel:[1,"navigate-label"],searchLabel:[1,"search-label"],closeLabel:[1,"close-label"],fullResultsLabel:[1,"full-results-label"],clearRecentLabel:[1,"clear-recent-label"],seeAllLabel:[1,"see-all-label"],emptyHeading:[1,"empty-heading"],emptyDescription:[1,"empty-description"],clearSearchLabel:[1,"clear-search-label"],errorHeading:[1,"error-heading"],errorDescription:[1,"error-description"],retryLabel:[1,"retry-label"],filled:[32],activeId:[32]},[[0,"bsItemSelect","onItemSelect"]],{status:[{resetActive:0}],open:[{resetActive:0}]}]);function x(){"undefined"!=typeof customElements&&["bs-global-search","bs-button","bs-chip-informative","bs-empty-state","bs-icon-button","bs-icon-tile","bs-input","bs-key","bs-menu","bs-menu-item","bs-ripple","bs-spinner"].forEach((e=>{switch(e){case"bs-global-search":customElements.get(s(e))||customElements.define(s(e),_);break;case"bs-button":customElements.get(s(e))||i();break;case"bs-chip-informative":customElements.get(s(e))||l();break;case"bs-empty-state":customElements.get(s(e))||o();break;case"bs-icon-button":customElements.get(s(e))||c();break;case"bs-icon-tile":customElements.get(s(e))||n();break;case"bs-input":customElements.get(s(e))||b();break;case"bs-key":customElements.get(s(e))||h();break;case"bs-menu":customElements.get(s(e))||p();break;case"bs-menu-item":customElements.get(s(e))||d();break;case"bs-ripple":customElements.get(s(e))||u();break;case"bs-spinner":customElements.get(s(e))||g()}}))}x();const k=_,w=x;export{k as BsGlobalSearch,w as defineCustomElement}
1
+ import{t as s,p as e,H as t,c as a,h as r}from"./p-CcAX4o5o.js";import{d as i}from"./p-9Y5WEZ6K.js";import{d as l}from"./p-Btp5hXvc.js";import{d as o}from"./p-nf0fN-PV.js";import{d as c}from"./p-C5CNfDjK.js";import{d as n}from"./p-Czo6AWrI.js";import{d as b}from"./p-BRCMyssd.js";import{d as h}from"./p-DAmDb3zb.js";import{d as p}from"./p-CFzdwJ2g.js";import{d}from"./p-hg8kUgz5.js";import{d as u}from"./p-Lj6_zdoI.js";import{d as m}from"./p-DikZ1mnx.js";const g={default:["recent","jump-to"],results:["top-matches","search-in"],empty:[],error:[]},v=["recent","jump-to","top-matches","search-in"];let f=0;const y={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},_=e(class extends t{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.bsInput=a(this,"bsInput"),this.bsSearch=a(this,"bsSearch"),this.bsSelect=a(this,"bsSelect"),this.bsOpenChange=a(this,"bsOpenChange"),this.bsClearRecent=a(this,"bsClearRecent"),this.bsClearSearch=a(this,"bsClearSearch"),this.bsSeeAll=a(this,"bsSeeAll"),this.bsRetry=a(this,"bsRetry")}get el(){return this}id="bs-gs-"+ ++f;itemSeq=0;observer;inputEl;value="";placeholder="Search customers, orders, products…";label;disabled=!1;open=!1;status="default";totalResults;showFooter=!0;listLabel="Search suggestions";recentLabel="Recent searches";jumpToLabel="Jump to";topMatchesLabel="Top matches";searchInLabel="Search in";navigateLabel="Navigate";searchLabel="Search";closeLabel="Close";fullResultsLabel="Full results";clearRecentLabel="Clear recent";seeAllLabel="See all results";emptyHeading="No results";emptyDescription="Try a different search.";clearSearchLabel="Clear search";errorHeading="Search isn’t available right now";errorDescription="We couldn’t reach the server. Your query is kept — try again in a moment.";retryLabel="Try again";filled={recent:!1,"jump-to":!1,"top-matches":!1,"search-in":!1};activeId=null;bsInput;bsSearch;bsSelect;bsOpenChange;bsClearRecent;bsClearSearch;bsSeeAll;bsRetry;resetActive(){this.activeId=null}componentWillLoad(){this.readFilled(),this.prepareItems()}connectedCallback(){document.addEventListener("pointerdown",this.onDocPointerDown,!0),this.observer=new MutationObserver((()=>{this.readFilled(),this.prepareItems(),this.paintActive()})),this.observer.observe(this.el,{childList:!0})}disconnectedCallback(){document.removeEventListener("pointerdown",this.onDocPointerDown,!0),this.observer?.disconnect()}componentDidRender(){this.prepareItems(),this.paintActive()}allItems(){return Array.from(this.el.children).filter((s=>"BS-SEARCH-ITEM"===s.tagName&&v.includes(s.getAttribute("slot"))))}visibleItems(){if(!this.open)return[];const s=this.allItems();return(g[this.status]??[]).flatMap((e=>s.filter((s=>s.getAttribute("slot")===e))))}enabledItems(){return this.visibleItems().filter((s=>!s.disabled))}readFilled(){const s={...this.filled};let e=!1;for(const t of v){const a=Array.from(this.el.children).some((s=>s.getAttribute("slot")===t));s[t]!==a&&(s[t]=a,e=!0)}e&&(this.filled=s)}prepareItems(){for(const s of this.allItems())"option"!==s.selectionRole&&(s.selectionRole="option"),s.id||(s.id=`${this.id}-opt-${++this.itemSeq}`)}paintActive(){for(const s of this.allItems()){const e=!!this.activeId&&s.id===this.activeId;s.active!==e&&(s.active=e)}}setOpen(s){s&&this.disabled||this.open!==s&&(this.open=s,this.bsOpenChange.emit(s))}setActive(s){this.activeId=s?s.id:null,this.paintActive(),s?.scrollIntoView?.({block:"nearest"})}onDocPointerDown=s=>{this.open&&(s.composedPath().includes(this.el)||this.setOpen(!1))};onInput=s=>{s.stopPropagation(),this.value=s.detail,this.activeId=null,this.bsInput.emit(s.detail),this.setOpen(!0)};onKeyDown=s=>{switch(s.key){case"ArrowDown":case"ArrowUp":{if(s.preventDefault(),!this.open)return void this.setOpen(!0);const e=this.enabledItems();if(!e.length)return;const t=e.findIndex((s=>s.id===this.activeId));return void this.setActive(e["ArrowDown"===s.key?(t+1)%e.length:t<=0?e.length-1:t-1])}case"Enter":{const e=this.open?this.enabledItems().find((s=>s.id===this.activeId)):void 0;return void(e?(s.preventDefault(),e.click()):(this.bsSearch.emit(this.value),this.setOpen(!1)))}case"Escape":return void(this.open&&(s.preventDefault(),s.stopPropagation(),this.setOpen(!1)))}};onItemSelect(s){const e=s.target;e&&"BS-SEARCH-ITEM"===e.tagName&&(s.stopPropagation(),this.bsSelect.emit({value:s.detail,section:e.getAttribute("slot")??""}),this.setOpen(!1))}onPanelMouseOver=s=>{const e=s.composedPath().find((s=>"BS-SEARCH-ITEM"===s.tagName));e&&!e.disabled&&e.id!==this.activeId&&this.setActive(e)};clearSearch=()=>{this.value="",this.bsClearSearch.emit(),this.inputEl?.focus()};sectionLabel(s){return{recent:this.recentLabel,"jump-to":this.jumpToLabel,"top-matches":this.topMatchesLabel,"search-in":this.searchInLabel}[s]}renderHint(s,e){return r("span",{part:"hint",class:"bs-global-search__hint"},s,r("span",{class:"bs-global-search__hint-text"},e))}renderFooter(){const s="number"==typeof this.totalResults,e=r("bs-key",null,r("svg",{slot:"icon",...y},r("path",{d:"M9 14 4 9l5-5"}),r("path",{d:"M4 9h10.5a5.5 5.5 0 0 1 0 11H11"})));return"results"===this.status?r("div",{part:"footer",class:"bs-global-search__footer"},r("div",{part:"see-all",class:"bs-global-search__action",onClick:this.onActionWrapperClick((()=>this.seeAll()))},r("bs-button",{class:"bs-global-search__text-button",variant:"subtle",size:"sm",onClick:()=>this.seeAll()},s?`See all ${this.totalResults} results`:this.seeAllLabel)),r("span",{class:"bs-global-search__spacer"}),this.renderHint([e],this.fullResultsLabel)):r("div",{part:"footer",class:"bs-global-search__footer"},this.renderHint([r("bs-key",null,r("svg",{slot:"icon",...y},r("path",{d:"M12 19V5M5 12l7-7 7 7"}))),r("bs-key",null,r("svg",{slot:"icon",...y},r("path",{d:"M12 5v14M5 12l7 7 7-7"})))],this.navigateLabel),this.renderHint([e],this.searchLabel),this.renderHint([r("bs-key",{label:"Esc"})],this.closeLabel),r("span",{class:"bs-global-search__spacer"}),this.filled.recent&&r("div",{part:"clear-recent",class:"bs-global-search__action",onClick:this.onActionWrapperClick((()=>this.bsClearRecent.emit()))},r("bs-button",{class:"bs-global-search__text-button",variant:"subtle",size:"sm",onClick:()=>this.bsClearRecent.emit()},this.clearRecentLabel)))}seeAll(){this.bsSeeAll.emit(),this.setOpen(!1)}onActionWrapperClick=s=>e=>{e.target===e.currentTarget&&s()};renderStateBlock(s){const e="empty"===s;return r("slot",{name:s},r("bs-empty-state",{part:"empty",intent:e?"default":"error",heading:e?this.emptyHeading:this.errorHeading,description:e?this.emptyDescription:this.errorDescription},e?r("svg",{slot:"icon",...y},r("circle",{cx:"11",cy:"11",r:"7"}),r("path",{d:"m20 20-3.5-3.5"})):r("svg",{slot:"icon",...y},r("circle",{cx:"12",cy:"12",r:"9"}),r("path",{d:"M12 7.5v5M12 16.2v.1"})),r("bs-button",{slot:"action",variant:"outlined",onClick:()=>e?this.clearSearch():this.bsRetry.emit()},e?this.clearSearchLabel:this.retryLabel)))}announcement(){return this.open?"results"===this.status?"number"==typeof this.totalResults?this.totalResults+" results":"":"empty"===this.status?this.emptyHeading:"error"===this.status?this.errorHeading:"":""}render(){const s=(g[this.status]??[]).filter((s=>this.filled[s])),e=s.length>0,t=this.id+"-listbox",a="default"===this.status||"results"===this.status,i=this.showFooter&&a;return r("div",{key:"de908b4834fb2768314aece670e6f92dc0b8b516",class:"bs-global-search"},r("div",{key:"6263cdf890dca0e36b263d29909e07d79b365f1c",part:"field",class:"bs-global-search__field",role:"combobox","aria-label":this.label||this.placeholder,"aria-expanded":(this.open&&e)+"","aria-haspopup":"listbox","aria-controls":this.open&&e?t:void 0,"aria-activedescendant":this.open&&this.activeId?this.activeId:void 0,onKeyDown:this.onKeyDown,onFocusin:()=>this.setOpen(!0),onClick:()=>this.setOpen(!0)},r("bs-input",{key:"8a60460c8df0a45edb262f6d7f077cc15d8705ff",ref:s=>this.inputEl=s,type:"search",value:this.value,placeholder:this.placeholder,disabled:this.disabled,onBsInput:this.onInput})),this.open&&r("div",{key:"52b1a17c333182757023c92fc97b8af30c5878e6",part:"panel",class:"bs-global-search__panel",onMouseDown:s=>s.preventDefault(),onMouseOver:this.onPanelMouseOver},a&&e&&r("div",{key:"e9bf01e0294183cfb518327fce070de74d8c6bee",id:t,class:"bs-global-search__list",role:"listbox","aria-label":this.listLabel},s.map((s=>{const e=`${this.id}-h-${s}`;return r("div",{part:"section",class:"bs-global-search__section",role:"group","aria-labelledby":e},r("div",{part:"section-header",id:e,class:"bs-global-search__section-header"},this.sectionLabel(s)),r("slot",{name:s}))}))),"empty"===this.status&&this.renderStateBlock("empty"),"error"===this.status&&this.renderStateBlock("error"),i&&this.renderFooter()),r("span",{key:"b71973514a9676083122a92c3534ec7ddfcbc1ae",class:"bs-global-search__live","aria-live":"polite"},this.announcement()))}static get watchers(){return{status:[{resetActive:0}],open:[{resetActive:0}]}}static get style(){return":host{display:block;position:relative;box-sizing:border-box;width:var(--bs-global-search-width);max-width:100%;--bs-global-search-width:480px;--bs-global-search-panel-radius:var(--bs-border-radius-100);--bs-global-search-panel-padding:var(--bs-spacing-100);--bs-global-search-gap:var(--bs-spacing-100);--bs-global-search-panel-bg:var(--bs-surface-base);--bs-global-search-shadow:0 var(--bs-shadow-position-50) var(--bs-shadow-blur-100) 0 var(--bs-elevation-high);--bs-global-search-z-index:var(--bs-z-index-dropdown);--bs-global-search-divider-color:var(--bs-border-default);--bs-global-search-header-border-color:var(--bs-border-neutral-container);--bs-global-search-header-color:var(--bs-text-muted);--bs-global-search-hint-color:var(--bs-text-secondary)}.bs-global-search{position:relative}.bs-global-search__field bs-input{width:100%}.bs-global-search__panel{position:absolute;top:calc(100% + var(--bs-global-search-gap));left:0;right:0;z-index:var(--bs-global-search-z-index);box-sizing:border-box;display:flex;flex-direction:column;gap:var(--bs-global-search-gap);padding:var(--bs-global-search-panel-padding);overflow:clip;border-radius:var(--bs-global-search-panel-radius);background:var(--bs-global-search-panel-bg);box-shadow:var(--bs-global-search-shadow)}.bs-global-search__list{display:flex;flex-direction:column;gap:var(--bs-global-search-gap)}.bs-global-search__section{display:flex;flex-direction:column}.bs-global-search__section-header{padding:var(--bs-spacing-150) var(--bs-spacing-150) var(--bs-spacing-100);border-bottom:1px solid var(--bs-global-search-header-border-color);color:var(--bs-global-search-header-color);font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-medium);line-height:20px}.bs-global-search__footer{display:flex;align-items:center;gap:var(--bs-spacing-200);padding:var(--bs-spacing-100) var(--bs-spacing-100) var(--bs-spacing-50);border-top:1px solid var(--bs-global-search-divider-color)}.bs-global-search__hint{display:inline-flex;align-items:center;gap:var(--bs-spacing-50);color:var(--bs-global-search-hint-color);font-size:var(--bs-font-size-sm);line-height:20px;white-space:nowrap}.bs-global-search__spacer{flex:1 1 0}.bs-global-search__action{display:flex;align-items:center;min-height:44px;cursor:pointer}.bs-global-search__text-button{--bs-button-height-sm:32px;--bs-button-padding-x-sm:var(--bs-spacing-150);--bs-button-radius:var(--bs-border-radius-100);--bs-button-subtle-color:var(--bs-text-default)}.bs-global-search__live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}"}},[769,"bs-global-search",{value:[1025],placeholder:[1],label:[1],disabled:[516],open:[1540],status:[513],totalResults:[2,"total-results"],showFooter:[4,"show-footer"],listLabel:[1,"list-label"],recentLabel:[1,"recent-label"],jumpToLabel:[1,"jump-to-label"],topMatchesLabel:[1,"top-matches-label"],searchInLabel:[1,"search-in-label"],navigateLabel:[1,"navigate-label"],searchLabel:[1,"search-label"],closeLabel:[1,"close-label"],fullResultsLabel:[1,"full-results-label"],clearRecentLabel:[1,"clear-recent-label"],seeAllLabel:[1,"see-all-label"],emptyHeading:[1,"empty-heading"],emptyDescription:[1,"empty-description"],clearSearchLabel:[1,"clear-search-label"],errorHeading:[1,"error-heading"],errorDescription:[1,"error-description"],retryLabel:[1,"retry-label"],filled:[32],activeId:[32]},[[0,"bsItemSelect","onItemSelect"]],{status:[{resetActive:0}],open:[{resetActive:0}]}]);function x(){"undefined"!=typeof customElements&&["bs-global-search","bs-button","bs-chip-informative","bs-empty-state","bs-icon-button","bs-icon-tile","bs-input","bs-key","bs-menu","bs-menu-item","bs-ripple","bs-spinner"].forEach((e=>{switch(e){case"bs-global-search":customElements.get(s(e))||customElements.define(s(e),_);break;case"bs-button":customElements.get(s(e))||i();break;case"bs-chip-informative":customElements.get(s(e))||l();break;case"bs-empty-state":customElements.get(s(e))||o();break;case"bs-icon-button":customElements.get(s(e))||c();break;case"bs-icon-tile":customElements.get(s(e))||n();break;case"bs-input":customElements.get(s(e))||b();break;case"bs-key":customElements.get(s(e))||h();break;case"bs-menu":customElements.get(s(e))||p();break;case"bs-menu-item":customElements.get(s(e))||d();break;case"bs-ripple":customElements.get(s(e))||u();break;case"bs-spinner":customElements.get(s(e))||m()}}))}x();const k=_,w=x;export{k as BsGlobalSearch,w as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as s,H as i,h as r}from"./p-CcAX4o5o.js";const e=["0","25","50","75","100","150","200","250","300","350","400","500","550","600","700","800","1000","1200","1500"],n=["start","center","end","stretch"],a=s(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}columns="1";gap="100";rowGap;columnGap;minColumnWidth;align="stretch";template(){const t=this.minColumnWidth?.trim();if(t)return`repeat(auto-fit, minmax(min(100%, ${t}), 1fr))`;const s=(this.columns??"1").trim();if(/^\d+$/.test(s)){const t=parseInt(s,10);return`repeat(${t>0?t:1}, minmax(0, 1fr))`}return s||"repeat(1, minmax(0, 1fr))"}token(t){const s=t?.trim();return`var(--bs-spacing-${s&&e.includes(s)?s:"100"})`}render(){const t=`var(--bs-grid-gap, ${this.token(this.gap)})`,s=this.rowGap?this.token(this.rowGap):t,i=this.columnGap?this.token(this.columnGap):t,e=n.includes(this.align)?this.align:"stretch";return r("div",{key:"9507109de1fe2a61cb12fdf10249eea822aca4fd",class:"bs-grid",part:"container",style:{gridTemplateColumns:this.template(),rowGap:`var(--bs-grid-row-gap, ${s})`,columnGap:`var(--bs-grid-column-gap, ${i})`,alignItems:e}},r("slot",{key:"71f053d7d6be8bc917c44bec3a0c2f220836322c"}))}static get style(){return":host{display:block;min-width:0}.bs-grid{display:grid;width:100%;box-sizing:border-box}"}},[769,"bs-grid",{columns:[513],gap:[513],rowGap:[513,"row-gap"],columnGap:[513,"column-gap"],minColumnWidth:[513,"min-column-width"],align:[513]}]);function o(){"undefined"!=typeof customElements&&["bs-grid"].forEach((s=>{"bs-grid"===s&&(customElements.get(t(s))||customElements.define(t(s),a))}))}o();const c=a,m=o;export{c as BsGrid,m as defineCustomElement}
1
+ import{t,p as s,H as i,h as r}from"./p-CcAX4o5o.js";const n=["0","25","50","75","100","150","200","250","300","350","400","500","550","600","700","800","1000","1200","1500"],e=["start","center","end","stretch"],a=s(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}columns="1";gap="100";rowGap;columnGap;minColumnWidth;align="stretch";template(){const t=this.minColumnWidth?.trim();if(t)return`repeat(auto-fit, minmax(min(100%, ${t}), 1fr))`;const s=(this.columns??"1").trim();if(/^\d+$/.test(s)){const t=parseInt(s,10);return`repeat(${t>0?t:1}, minmax(0, 1fr))`}return s||"repeat(1, minmax(0, 1fr))"}token(t){const s=t?.trim();return`var(--bs-spacing-${s&&n.includes(s)?s:"100"})`}render(){const t=`var(--bs-grid-gap, ${this.token(this.gap)})`,s=this.rowGap?this.token(this.rowGap):t,i=this.columnGap?this.token(this.columnGap):t,n=e.includes(this.align)?this.align:"stretch";return r("div",{key:"6eb1a4c6cc206966b652daf26406d3b55c2dae23",class:"bs-grid",part:"container",style:{gridTemplateColumns:this.template(),rowGap:`var(--bs-grid-row-gap, ${s})`,columnGap:`var(--bs-grid-column-gap, ${i})`,alignItems:n}},r("slot",{key:"202c36abcef55d2982f4a2b35563a7fe43308e64"}))}static get style(){return":host{display:block;min-width:0}.bs-grid{display:grid;width:100%;box-sizing:border-box}"}},[769,"bs-grid",{columns:[513],gap:[513],rowGap:[513,"row-gap"],columnGap:[513,"column-gap"],minColumnWidth:[513,"min-column-width"],align:[513]}]);function o(){"undefined"!=typeof customElements&&["bs-grid"].forEach((s=>{"bs-grid"===s&&(customElements.get(t(s))||customElements.define(t(s),a))}))}o();const c=a,m=o;export{c as BsGrid,m as defineCustomElement}