@brandsync/wc 1.15.0 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (479) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/REFERENCE.md +313 -0
  3. package/custom-elements.json +4760 -1555
  4. package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
  5. package/dist/brandsync-wc/p-044ac86c.entry.js +1 -0
  6. package/dist/brandsync-wc/p-065c7e7c.entry.js +1 -0
  7. package/dist/brandsync-wc/p-07673a48.entry.js +1 -0
  8. package/dist/brandsync-wc/{p-54f9529f.entry.js → p-08e96f13.entry.js} +1 -1
  9. package/dist/brandsync-wc/{p-f3cc961b.entry.js → p-0bbaef51.entry.js} +1 -1
  10. package/dist/brandsync-wc/p-11d80e17.entry.js +1 -0
  11. package/dist/brandsync-wc/{p-c85fe37b.entry.js → p-1bd99669.entry.js} +1 -1
  12. package/dist/brandsync-wc/{p-f4d1d56e.entry.js → p-225148be.entry.js} +1 -1
  13. package/dist/brandsync-wc/{p-6df48031.entry.js → p-2bd30709.entry.js} +1 -1
  14. package/dist/brandsync-wc/{p-e294f698.entry.js → p-32297416.entry.js} +1 -1
  15. package/dist/brandsync-wc/{p-d165a742.entry.js → p-35f76ea7.entry.js} +1 -1
  16. package/dist/brandsync-wc/{p-4ca40386.entry.js → p-3bad5e1b.entry.js} +1 -1
  17. package/dist/brandsync-wc/{p-ed71eb02.entry.js → p-3bdeeb9d.entry.js} +1 -1
  18. package/dist/brandsync-wc/{p-1bf8fbbb.entry.js → p-3c6ec5d0.entry.js} +1 -1
  19. package/dist/brandsync-wc/{p-abfa43f5.entry.js → p-3cb79512.entry.js} +1 -1
  20. package/dist/brandsync-wc/p-3d2c62a6.entry.js +1 -0
  21. package/dist/brandsync-wc/{p-23379d7c.entry.js → p-3d7b0708.entry.js} +1 -1
  22. package/dist/brandsync-wc/{p-2e285364.entry.js → p-43d5f708.entry.js} +1 -1
  23. package/dist/brandsync-wc/{p-d81c4f58.entry.js → p-4b460eda.entry.js} +1 -1
  24. package/dist/brandsync-wc/{p-b6081bba.entry.js → p-4eaa9ed4.entry.js} +1 -1
  25. package/dist/brandsync-wc/{p-c25553bc.entry.js → p-4f4c0c68.entry.js} +1 -1
  26. package/dist/brandsync-wc/{p-a56bc608.entry.js → p-5057e4fe.entry.js} +1 -1
  27. package/dist/brandsync-wc/p-54d91ac9.entry.js +1 -0
  28. package/dist/brandsync-wc/{p-65fa1b21.entry.js → p-57ff14ca.entry.js} +1 -1
  29. package/dist/brandsync-wc/{p-538d5b58.entry.js → p-5b933ff4.entry.js} +1 -1
  30. package/dist/brandsync-wc/{p-b67a0c8f.entry.js → p-5c61eb06.entry.js} +1 -1
  31. package/dist/brandsync-wc/{p-86774165.entry.js → p-5eb5795f.entry.js} +1 -1
  32. package/dist/brandsync-wc/{p-b663ee67.entry.js → p-61deb48c.entry.js} +1 -1
  33. package/dist/brandsync-wc/{p-ac9472ec.entry.js → p-67f125e8.entry.js} +1 -1
  34. package/dist/brandsync-wc/{p-3488c4fc.entry.js → p-6ea02b98.entry.js} +1 -1
  35. package/dist/brandsync-wc/p-70c650b2.entry.js +1 -0
  36. package/dist/brandsync-wc/p-79fc849c.entry.js +1 -0
  37. package/dist/brandsync-wc/{p-5a45ef51.entry.js → p-7ed071fb.entry.js} +1 -1
  38. package/dist/brandsync-wc/{p-3c21d0bf.entry.js → p-8134f97c.entry.js} +1 -1
  39. package/dist/brandsync-wc/{p-4ed00786.entry.js → p-844205d9.entry.js} +1 -1
  40. package/dist/brandsync-wc/p-84d6d6eb.entry.js +1 -0
  41. package/dist/brandsync-wc/{p-401b3d3d.entry.js → p-857987f9.entry.js} +1 -1
  42. package/dist/brandsync-wc/{p-b9c9bcba.entry.js → p-8c4dfccb.entry.js} +1 -1
  43. package/dist/brandsync-wc/{p-38ac9aad.entry.js → p-90ba3032.entry.js} +1 -1
  44. package/dist/brandsync-wc/{p-1ca8b01e.entry.js → p-9396c67e.entry.js} +1 -1
  45. package/dist/brandsync-wc/{p-e9b6b30f.entry.js → p-9d740928.entry.js} +1 -1
  46. package/dist/brandsync-wc/{p-baa3d37a.entry.js → p-a7fa839a.entry.js} +1 -1
  47. package/dist/brandsync-wc/{p-f271e1d2.entry.js → p-a7fb0b59.entry.js} +1 -1
  48. package/dist/brandsync-wc/{p-89ea6366.entry.js → p-ab14a07d.entry.js} +1 -1
  49. package/dist/brandsync-wc/{p-912629c6.entry.js → p-aec2dfeb.entry.js} +1 -1
  50. package/dist/brandsync-wc/{p-8390a155.entry.js → p-b02bf1ca.entry.js} +1 -1
  51. package/dist/brandsync-wc/{p-9beeb30c.entry.js → p-b142d8c9.entry.js} +1 -1
  52. package/dist/brandsync-wc/{p-7a072e64.entry.js → p-b4511ad3.entry.js} +1 -1
  53. package/dist/brandsync-wc/{p-5ed1f45e.entry.js → p-b5710db6.entry.js} +1 -1
  54. package/dist/brandsync-wc/{p-34b0c048.entry.js → p-baa39c08.entry.js} +1 -1
  55. package/dist/brandsync-wc/{p-87d44938.entry.js → p-be7aac52.entry.js} +1 -1
  56. package/dist/brandsync-wc/p-c835afb7.entry.js +1 -0
  57. package/dist/brandsync-wc/{p-45986ad4.entry.js → p-d25adab2.entry.js} +1 -1
  58. package/dist/brandsync-wc/p-d2a15599.entry.js +1 -0
  59. package/dist/brandsync-wc/{p-b9c0b481.entry.js → p-d7956c51.entry.js} +1 -1
  60. package/dist/brandsync-wc/p-d9184940.entry.js +1 -0
  61. package/dist/brandsync-wc/{p-0f97fe35.entry.js → p-dcbeb143.entry.js} +1 -1
  62. package/dist/brandsync-wc/{p-cf287ff1.entry.js → p-debc83cc.entry.js} +1 -1
  63. package/dist/brandsync-wc/{p-dcacee29.entry.js → p-e0a9f2d1.entry.js} +1 -1
  64. package/dist/brandsync-wc/p-e123b391.entry.js +1 -0
  65. package/dist/brandsync-wc/p-e8ae626d.entry.js +1 -0
  66. package/dist/brandsync-wc/p-e8e22238.entry.js +1 -0
  67. package/dist/brandsync-wc/{p-6cb21302.entry.js → p-eb0dc5bf.entry.js} +1 -1
  68. package/dist/brandsync-wc/{p-1b4c0971.entry.js → p-f43a7f16.entry.js} +1 -1
  69. package/dist/brandsync-wc/{p-7b3518b8.entry.js → p-f82a9f0d.entry.js} +1 -1
  70. package/dist/brandsync-wc/{p-f0be9125.entry.js → p-f98dfa85.entry.js} +1 -1
  71. package/dist/brandsync-wc/{p-36fe783a.entry.js → p-fdc168ec.entry.js} +1 -1
  72. package/dist/brandsync-wc/{p-bc97ece8.entry.js → p-ffccc1ee.entry.js} +1 -1
  73. package/dist/cjs/brandsync-wc.cjs.js +1 -1
  74. package/dist/cjs/bs-accordion-group.cjs.entry.js +1 -1
  75. package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +1 -1
  76. package/dist/cjs/bs-ai-greeting.cjs.entry.js +1 -1
  77. package/dist/cjs/bs-ai-thinking.cjs.entry.js +1 -1
  78. package/dist/cjs/bs-app-shell.cjs.entry.js +1 -1
  79. package/dist/cjs/bs-attachment-list.cjs.entry.js +1 -1
  80. package/dist/cjs/bs-breadcrumbs.cjs.entry.js +1 -1
  81. package/dist/cjs/bs-button-skeleton.cjs.entry.js +1 -1
  82. package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +1 -1
  83. package/dist/cjs/bs-chatbot-header.cjs.entry.js +1 -1
  84. package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +1 -1
  85. package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +1 -1
  86. package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +1 -1
  87. package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +1 -1
  88. package/dist/cjs/bs-citation-preview.cjs.entry.js +1 -1
  89. package/dist/cjs/bs-command-palette.cjs.entry.js +374 -0
  90. package/dist/cjs/bs-composer-status-banner.cjs.entry.js +1 -1
  91. package/dist/cjs/bs-composer.cjs.entry.js +1 -1
  92. package/dist/cjs/bs-container.cjs.entry.js +1 -1
  93. package/dist/cjs/bs-data-table.cjs.entry.js +2 -2
  94. package/dist/cjs/bs-datepicker.cjs.entry.js +1 -1
  95. package/dist/cjs/bs-divider.cjs.entry.js +1 -1
  96. package/dist/cjs/bs-empty-state.cjs.entry.js +47 -0
  97. package/dist/cjs/bs-error-page.cjs.entry.js +1 -1
  98. package/dist/cjs/bs-file-upload-item.cjs.entry.js +1 -1
  99. package/dist/cjs/bs-file-upload.cjs.entry.js +1 -1
  100. package/dist/cjs/bs-global-search.cjs.entry.js +326 -0
  101. package/dist/cjs/bs-grid.cjs.entry.js +2 -2
  102. package/dist/cjs/bs-icon-button.cjs.entry.js +1 -1
  103. package/dist/cjs/bs-icon-tile.cjs.entry.js +2 -2
  104. package/dist/cjs/bs-inline-tab.cjs.entry.js +1 -1
  105. package/dist/cjs/bs-input_3.cjs.entry.js +4 -4
  106. package/dist/cjs/bs-key-caps.cjs.entry.js +39 -0
  107. package/dist/cjs/bs-key.cjs.entry.js +28 -0
  108. package/dist/cjs/bs-keyboard-shortcuts.cjs.entry.js +112 -0
  109. package/dist/cjs/bs-list-item.cjs.entry.js +66 -0
  110. package/dist/cjs/bs-list.cjs.entry.js +103 -0
  111. package/dist/cjs/bs-message-list.cjs.entry.js +1 -1
  112. package/dist/cjs/bs-message.cjs.entry.js +1 -1
  113. package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +1 -1
  114. package/dist/cjs/bs-navigation-drawer.cjs.entry.js +2 -2
  115. package/dist/cjs/bs-navigation-header.cjs.entry.js +1 -1
  116. package/dist/cjs/bs-pagination.cjs.entry.js +1 -1
  117. package/dist/cjs/bs-popover.cjs.entry.js +1 -1
  118. package/dist/cjs/bs-progress-linear.cjs.entry.js +2 -2
  119. package/dist/cjs/bs-progress.cjs.entry.js +2 -2
  120. package/dist/cjs/bs-qr-code.cjs.entry.js +1 -1
  121. package/dist/cjs/bs-radio.cjs.entry.js +1 -1
  122. package/dist/cjs/bs-search-item.cjs.entry.js +47 -0
  123. package/dist/cjs/bs-session-timeout.cjs.entry.js +1 -1
  124. package/dist/cjs/bs-shortcut-row.cjs.entry.js +27 -0
  125. package/dist/cjs/bs-skeleton.cjs.entry.js +1 -1
  126. package/dist/cjs/bs-slider.cjs.entry.js +1 -1
  127. package/dist/cjs/bs-snackbar.cjs.entry.js +1 -1
  128. package/dist/cjs/bs-source-link.cjs.entry.js +2 -2
  129. package/dist/cjs/bs-spinner.cjs.entry.js +1 -1
  130. package/dist/cjs/bs-split-pane.cjs.entry.js +1 -1
  131. package/dist/cjs/bs-stack.cjs.entry.js +1 -1
  132. package/dist/cjs/bs-stepper-step.cjs.entry.js +1 -1
  133. package/dist/cjs/bs-stepper.cjs.entry.js +1 -1
  134. package/dist/cjs/bs-switch.cjs.entry.js +1 -1
  135. package/dist/cjs/bs-tab_3.cjs.entry.js +3 -3
  136. package/dist/cjs/bs-timepicker.cjs.entry.js +2 -2
  137. package/dist/cjs/bs-toast.cjs.entry.js +1 -1
  138. package/dist/cjs/bs-tooltip-trigger.cjs.entry.js +1 -1
  139. package/dist/cjs/bs-tooltip.cjs.entry.js +1 -1
  140. package/dist/cjs/bs-tree-item.cjs.entry.js +94 -0
  141. package/dist/cjs/bs-tree.cjs.entry.js +197 -0
  142. package/dist/cjs/loader.cjs.js +1 -1
  143. package/dist/collection/collection-manifest.json +13 -1
  144. package/dist/collection/components/bs-accordion-group/bs-accordion-group.js +1 -1
  145. package/dist/collection/components/bs-ai-disclaimer/bs-ai-disclaimer.js +1 -1
  146. package/dist/collection/components/bs-ai-greeting/bs-ai-greeting.js +1 -1
  147. package/dist/collection/components/bs-ai-thinking/bs-ai-thinking.js +1 -1
  148. package/dist/collection/components/bs-app-shell/bs-app-shell.js +1 -1
  149. package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
  150. package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +1 -1
  151. package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +1 -1
  152. package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
  153. package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.js +1 -1
  154. package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +1 -1
  155. package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +1 -1
  156. package/dist/collection/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.js +1 -1
  157. package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js +1 -1
  158. package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.js +1 -1
  159. package/dist/collection/components/bs-citation-preview/bs-citation-preview.js +1 -1
  160. package/dist/collection/components/bs-command-palette/bs-command-palette.cmp.test.js +207 -0
  161. package/dist/collection/components/bs-command-palette/bs-command-palette.css +214 -0
  162. package/dist/collection/components/bs-command-palette/bs-command-palette.js +1114 -0
  163. package/dist/collection/components/bs-command-palette/bs-command-palette.stories.js +194 -0
  164. package/dist/collection/components/bs-composer/bs-composer.js +1 -1
  165. package/dist/collection/components/bs-composer-status-banner/bs-composer-status-banner.js +1 -1
  166. package/dist/collection/components/bs-container/bs-container.js +1 -1
  167. package/dist/collection/components/bs-data-table/bs-data-table.js +2 -2
  168. package/dist/collection/components/bs-datepicker/bs-datepicker.js +1 -1
  169. package/dist/collection/components/bs-divider/bs-divider.js +1 -1
  170. package/dist/collection/components/bs-empty-state/bs-empty-state.cmp.test.js +102 -0
  171. package/dist/collection/components/bs-empty-state/bs-empty-state.css +45 -0
  172. package/dist/collection/components/bs-empty-state/bs-empty-state.js +175 -0
  173. package/dist/collection/components/bs-empty-state/bs-empty-state.stories.js +52 -0
  174. package/dist/collection/components/bs-error-page/bs-error-page.js +1 -1
  175. package/dist/collection/components/bs-file-upload/bs-file-upload.js +1 -1
  176. package/dist/collection/components/bs-file-upload-item/bs-file-upload-item.js +1 -1
  177. package/dist/collection/components/bs-global-search/bs-global-search.cmp.test.js +491 -0
  178. package/dist/collection/components/bs-global-search/bs-global-search.css +115 -0
  179. package/dist/collection/components/bs-global-search/bs-global-search.js +1024 -0
  180. package/dist/collection/components/bs-global-search/bs-global-search.stories.js +146 -0
  181. package/dist/collection/components/bs-grid/bs-grid.js +2 -2
  182. package/dist/collection/components/bs-icon-tile/bs-icon-tile.js +2 -2
  183. package/dist/collection/components/bs-input/bs-input.js +2 -2
  184. package/dist/collection/components/bs-key/bs-key.cmp.test.js +59 -0
  185. package/dist/collection/components/bs-key/bs-key.css +58 -0
  186. package/dist/collection/components/bs-key/bs-key.js +84 -0
  187. package/dist/collection/components/bs-key/bs-key.stories.js +19 -0
  188. package/dist/collection/components/bs-key-caps/bs-key-caps.cmp.test.js +60 -0
  189. package/dist/collection/components/bs-key-caps/bs-key-caps.css +28 -0
  190. package/dist/collection/components/bs-key-caps/bs-key-caps.js +120 -0
  191. package/dist/collection/components/bs-key-caps/bs-key-caps.stories.js +29 -0
  192. package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.cmp.test.js +194 -0
  193. package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.css +138 -0
  194. package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.js +485 -0
  195. package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.stories.js +111 -0
  196. package/dist/collection/components/bs-list/bs-list.cmp.test.js +99 -0
  197. package/dist/collection/components/bs-list/bs-list.css +15 -0
  198. package/dist/collection/components/bs-list/bs-list.js +241 -0
  199. package/dist/collection/components/bs-list/bs-list.stories.js +43 -0
  200. package/dist/collection/components/bs-list-item/bs-list-item.cmp.test.js +137 -0
  201. package/dist/collection/components/bs-list-item/bs-list-item.css +139 -0
  202. package/dist/collection/components/bs-list-item/bs-list-item.js +343 -0
  203. package/dist/collection/components/bs-list-item/bs-list-item.stories.js +86 -0
  204. package/dist/collection/components/bs-menu/bs-menu.js +1 -1
  205. package/dist/collection/components/bs-menu-item/bs-menu-item.cmp.test.js +6 -0
  206. package/dist/collection/components/bs-menu-item/bs-menu-item.js +1 -1
  207. package/dist/collection/components/bs-message/bs-message.js +1 -1
  208. package/dist/collection/components/bs-message-list/bs-message-list.js +1 -1
  209. package/dist/collection/components/bs-pagination/bs-pagination.js +1 -1
  210. package/dist/collection/components/bs-popover/bs-popover.js +1 -1
  211. package/dist/collection/components/bs-progress/bs-progress.js +2 -2
  212. package/dist/collection/components/bs-progress-linear/bs-progress-linear.js +2 -2
  213. package/dist/collection/components/bs-qr-code/bs-qr-code.js +1 -1
  214. package/dist/collection/components/bs-radio/bs-radio.js +1 -1
  215. package/dist/collection/components/bs-search-item/bs-search-item.cmp.test.js +147 -0
  216. package/dist/collection/components/bs-search-item/bs-search-item.css +112 -0
  217. package/dist/collection/components/bs-search-item/bs-search-item.js +222 -0
  218. package/dist/collection/components/bs-search-item/bs-search-item.stories.js +31 -0
  219. package/dist/collection/components/bs-session-timeout/bs-session-timeout.js +1 -1
  220. package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.cmp.test.js +60 -0
  221. package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.css +42 -0
  222. package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.js +154 -0
  223. package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.stories.js +24 -0
  224. package/dist/collection/components/bs-skeleton/bs-skeleton.js +1 -1
  225. package/dist/collection/components/bs-slider/bs-slider.js +1 -1
  226. package/dist/collection/components/bs-snackbar/bs-snackbar.js +1 -1
  227. package/dist/collection/components/bs-source-link/bs-source-link.js +2 -2
  228. package/dist/collection/components/bs-spinner/bs-spinner.js +1 -1
  229. package/dist/collection/components/bs-split-pane/bs-split-pane.js +1 -1
  230. package/dist/collection/components/bs-stack/bs-stack.js +1 -1
  231. package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.js +1 -1
  232. package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.js +1 -1
  233. package/dist/collection/components/bs-switch/bs-switch.js +1 -1
  234. package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.js +1 -1
  235. package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +1 -1
  236. package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +1 -1
  237. package/dist/collection/components/bs-timepicker/bs-timepicker.js +2 -2
  238. package/dist/collection/components/bs-toast/bs-toast.js +1 -1
  239. package/dist/collection/components/bs-tooltip/bs-tooltip.js +1 -1
  240. package/dist/collection/components/bs-tooltip-trigger/bs-tooltip-trigger.js +1 -1
  241. package/dist/collection/components/bs-tree/bs-tree.cmp.test.js +166 -0
  242. package/dist/collection/components/bs-tree/bs-tree.css +8 -0
  243. package/dist/collection/components/bs-tree/bs-tree.js +354 -0
  244. package/dist/collection/components/bs-tree/bs-tree.stories.js +34 -0
  245. package/dist/collection/components/bs-tree-item/bs-tree-item.cmp.test.js +187 -0
  246. package/dist/collection/components/bs-tree-item/bs-tree-item.css +161 -0
  247. package/dist/collection/components/bs-tree-item/bs-tree-item.js +305 -0
  248. package/dist/collection/components/bs-tree-item/bs-tree-item.stories.js +54 -0
  249. package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.js +1 -1
  250. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.js +2 -2
  251. package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.js +1 -1
  252. package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +1 -1
  253. package/dist/components/bs-accordion-group.js +1 -1
  254. package/dist/components/bs-ai-disclaimer.js +1 -1
  255. package/dist/components/bs-ai-greeting.js +1 -1
  256. package/dist/components/bs-ai-thinking.js +1 -1
  257. package/dist/components/bs-app-shell.js +1 -1
  258. package/dist/components/bs-attachment-list.js +1 -1
  259. package/dist/components/bs-attachment.js +1 -1
  260. package/dist/components/bs-breadcrumb-overflow.js +1 -1
  261. package/dist/components/bs-breadcrumbs.js +1 -1
  262. package/dist/components/bs-button-skeleton.js +1 -1
  263. package/dist/components/bs-carousel.js +1 -1
  264. package/dist/components/bs-chatbot-feedback.js +1 -1
  265. package/dist/components/bs-chatbot-header.js +1 -1
  266. package/dist/components/bs-chatbot-response-action.js +1 -1
  267. package/dist/components/bs-chatbot-sources-drawer.js +1 -1
  268. package/dist/components/bs-chatbot-suggestion-button.js +1 -1
  269. package/dist/components/bs-checkbox-skeleton.js +1 -1
  270. package/dist/components/bs-citation-preview.js +1 -1
  271. package/dist/components/bs-command-palette.d.ts +11 -0
  272. package/dist/components/bs-command-palette.js +1 -0
  273. package/dist/components/bs-composer-status-banner.js +1 -1
  274. package/dist/components/bs-composer.js +1 -1
  275. package/dist/components/bs-container.js +1 -1
  276. package/dist/components/bs-cookie-consent.js +1 -1
  277. package/dist/components/bs-data-table.js +1 -1
  278. package/dist/components/bs-datepicker.js +1 -1
  279. package/dist/components/bs-dialog.js +1 -1
  280. package/dist/components/bs-divider.js +1 -1
  281. package/dist/components/bs-empty-state.d.ts +11 -0
  282. package/dist/components/bs-empty-state.js +1 -0
  283. package/dist/components/bs-error-page.js +1 -1
  284. package/dist/components/bs-file-upload-item.js +1 -1
  285. package/dist/components/bs-file-upload.js +1 -1
  286. package/dist/components/bs-global-search.d.ts +11 -0
  287. package/dist/components/bs-global-search.js +1 -0
  288. package/dist/components/bs-grid.js +1 -1
  289. package/dist/components/bs-icon-button.js +1 -1
  290. package/dist/components/bs-icon-tile.js +1 -1
  291. package/dist/components/bs-inline-tab.js +1 -1
  292. package/dist/components/bs-input.js +1 -1
  293. package/dist/components/bs-key-caps.d.ts +11 -0
  294. package/dist/components/bs-key-caps.js +1 -0
  295. package/dist/components/bs-key.d.ts +11 -0
  296. package/dist/components/bs-key.js +1 -0
  297. package/dist/components/bs-keyboard-shortcuts.d.ts +11 -0
  298. package/dist/components/bs-keyboard-shortcuts.js +1 -0
  299. package/dist/components/bs-list-item.d.ts +11 -0
  300. package/dist/components/bs-list-item.js +1 -0
  301. package/dist/components/bs-list.d.ts +11 -0
  302. package/dist/components/bs-list.js +1 -0
  303. package/dist/components/bs-menu-item.js +1 -1
  304. package/dist/components/bs-menu.js +1 -1
  305. package/dist/components/bs-message-list.js +1 -1
  306. package/dist/components/bs-message.js +1 -1
  307. package/dist/components/bs-navigation-drawer-item.js +1 -1
  308. package/dist/components/bs-navigation-drawer.js +1 -1
  309. package/dist/components/bs-navigation-header.js +1 -1
  310. package/dist/components/bs-onboarding-checklist.js +1 -1
  311. package/dist/components/bs-pagination.js +1 -1
  312. package/dist/components/bs-popover.js +1 -1
  313. package/dist/components/bs-product-tour.js +1 -1
  314. package/dist/components/bs-progress-linear.js +1 -1
  315. package/dist/components/bs-progress.js +1 -1
  316. package/dist/components/bs-qr-code.js +1 -1
  317. package/dist/components/bs-radio.js +1 -1
  318. package/dist/components/bs-search-item.d.ts +11 -0
  319. package/dist/components/bs-search-item.js +1 -0
  320. package/dist/components/bs-session-timeout.js +1 -1
  321. package/dist/components/bs-shortcut-row.d.ts +11 -0
  322. package/dist/components/bs-shortcut-row.js +1 -0
  323. package/dist/components/bs-side-panel.js +1 -1
  324. package/dist/components/bs-skeleton.js +1 -1
  325. package/dist/components/bs-slider.js +1 -1
  326. package/dist/components/bs-snackbar.js +1 -1
  327. package/dist/components/bs-source-link.js +1 -1
  328. package/dist/components/bs-spinner.js +1 -1
  329. package/dist/components/bs-split-pane.js +1 -1
  330. package/dist/components/bs-stack.js +1 -1
  331. package/dist/components/bs-stepper-step.js +1 -1
  332. package/dist/components/bs-stepper.js +1 -1
  333. package/dist/components/bs-switch.js +1 -1
  334. package/dist/components/bs-tab.js +1 -1
  335. package/dist/components/bs-tabs.js +1 -1
  336. package/dist/components/bs-timepicker.js +1 -1
  337. package/dist/components/bs-toast.js +1 -1
  338. package/dist/components/bs-tooltip-trigger.js +1 -1
  339. package/dist/components/bs-tooltip.js +1 -1
  340. package/dist/components/bs-tree-item.d.ts +11 -0
  341. package/dist/components/bs-tree-item.js +1 -0
  342. package/dist/components/bs-tree.d.ts +11 -0
  343. package/dist/components/bs-tree.js +1 -0
  344. package/dist/components/bs-whats-new-entry.js +1 -1
  345. package/dist/components/bs-whats-new.js +1 -1
  346. package/dist/components/{p-GTDI4Ibw.js → p-B32Kl4IB.js} +1 -1
  347. package/dist/components/{p-B128GX8H.js → p-BDnZvjlq.js} +1 -1
  348. package/dist/components/{p-Bqe4waKJ.js → p-BUpnOUIM.js} +1 -1
  349. package/dist/components/p-BcYNrEOB.js +1 -0
  350. package/dist/components/{p-B80vOwH6.js → p-BcbaiZLh.js} +1 -1
  351. package/dist/components/p-Bp3DIxjT.js +1 -0
  352. package/dist/components/p-CH5atin4.js +1 -0
  353. package/dist/components/{p-kDJsWjTN.js → p-CRM1wIX9.js} +1 -1
  354. package/dist/components/{p-Mf1jorXP.js → p-CYzBTzzf.js} +1 -1
  355. package/dist/components/p-CervX0wH.js +1 -0
  356. package/dist/components/{p-ElcsxZSh.js → p-Cpe2k7ZC.js} +1 -1
  357. package/dist/components/{p-BvYkZcOU.js → p-D7AXo5NT.js} +1 -1
  358. package/dist/components/{p-B3l4WpgS.js → p-D8bvv9QQ.js} +1 -1
  359. package/dist/components/{p-ByKcHsj0.js → p-DG9eT5yi.js} +1 -1
  360. package/dist/components/{p-D0KM1R2i.js → p-DMLfXpva.js} +1 -1
  361. package/dist/components/{p-CQjSDdH7.js → p-DYDk73TF.js} +1 -1
  362. package/dist/components/{p-C7RZ6qZC.js → p-DcjgRtSQ.js} +1 -1
  363. package/dist/components/p-Dt4JNhHT.js +1 -0
  364. package/dist/components/{p-CK7fiES5.js → p-DtYTs9Kh.js} +1 -1
  365. package/dist/components/{p-BsbtyRJV.js → p-TAY9S9yG.js} +1 -1
  366. package/dist/components/{p-ByLUtXxO.js → p-w-DkdA4O.js} +1 -1
  367. package/dist/esm/brandsync-wc.js +1 -1
  368. package/dist/esm/bs-accordion-group.entry.js +1 -1
  369. package/dist/esm/bs-ai-disclaimer.entry.js +1 -1
  370. package/dist/esm/bs-ai-greeting.entry.js +1 -1
  371. package/dist/esm/bs-ai-thinking.entry.js +1 -1
  372. package/dist/esm/bs-app-shell.entry.js +1 -1
  373. package/dist/esm/bs-attachment-list.entry.js +1 -1
  374. package/dist/esm/bs-breadcrumbs.entry.js +1 -1
  375. package/dist/esm/bs-button-skeleton.entry.js +1 -1
  376. package/dist/esm/bs-chatbot-feedback.entry.js +1 -1
  377. package/dist/esm/bs-chatbot-header.entry.js +1 -1
  378. package/dist/esm/bs-chatbot-response-action.entry.js +1 -1
  379. package/dist/esm/bs-chatbot-sources-drawer.entry.js +1 -1
  380. package/dist/esm/bs-chatbot-suggestion-button.entry.js +1 -1
  381. package/dist/esm/bs-checkbox-skeleton.entry.js +1 -1
  382. package/dist/esm/bs-citation-preview.entry.js +1 -1
  383. package/dist/esm/bs-command-palette.entry.js +372 -0
  384. package/dist/esm/bs-composer-status-banner.entry.js +1 -1
  385. package/dist/esm/bs-composer.entry.js +1 -1
  386. package/dist/esm/bs-container.entry.js +1 -1
  387. package/dist/esm/bs-data-table.entry.js +2 -2
  388. package/dist/esm/bs-datepicker.entry.js +1 -1
  389. package/dist/esm/bs-divider.entry.js +1 -1
  390. package/dist/esm/bs-empty-state.entry.js +45 -0
  391. package/dist/esm/bs-error-page.entry.js +1 -1
  392. package/dist/esm/bs-file-upload-item.entry.js +1 -1
  393. package/dist/esm/bs-file-upload.entry.js +1 -1
  394. package/dist/esm/bs-global-search.entry.js +324 -0
  395. package/dist/esm/bs-grid.entry.js +2 -2
  396. package/dist/esm/bs-icon-button.entry.js +1 -1
  397. package/dist/esm/bs-icon-tile.entry.js +2 -2
  398. package/dist/esm/bs-inline-tab.entry.js +1 -1
  399. package/dist/esm/bs-input_3.entry.js +4 -4
  400. package/dist/esm/bs-key-caps.entry.js +37 -0
  401. package/dist/esm/bs-key.entry.js +26 -0
  402. package/dist/esm/bs-keyboard-shortcuts.entry.js +110 -0
  403. package/dist/esm/bs-list-item.entry.js +64 -0
  404. package/dist/esm/bs-list.entry.js +101 -0
  405. package/dist/esm/bs-message-list.entry.js +1 -1
  406. package/dist/esm/bs-message.entry.js +1 -1
  407. package/dist/esm/bs-navigation-drawer-item.entry.js +1 -1
  408. package/dist/esm/bs-navigation-drawer.entry.js +2 -2
  409. package/dist/esm/bs-navigation-header.entry.js +1 -1
  410. package/dist/esm/bs-pagination.entry.js +1 -1
  411. package/dist/esm/bs-popover.entry.js +1 -1
  412. package/dist/esm/bs-progress-linear.entry.js +2 -2
  413. package/dist/esm/bs-progress.entry.js +2 -2
  414. package/dist/esm/bs-qr-code.entry.js +1 -1
  415. package/dist/esm/bs-radio.entry.js +1 -1
  416. package/dist/esm/bs-search-item.entry.js +45 -0
  417. package/dist/esm/bs-session-timeout.entry.js +1 -1
  418. package/dist/esm/bs-shortcut-row.entry.js +25 -0
  419. package/dist/esm/bs-skeleton.entry.js +1 -1
  420. package/dist/esm/bs-slider.entry.js +1 -1
  421. package/dist/esm/bs-snackbar.entry.js +1 -1
  422. package/dist/esm/bs-source-link.entry.js +2 -2
  423. package/dist/esm/bs-spinner.entry.js +1 -1
  424. package/dist/esm/bs-split-pane.entry.js +1 -1
  425. package/dist/esm/bs-stack.entry.js +1 -1
  426. package/dist/esm/bs-stepper-step.entry.js +1 -1
  427. package/dist/esm/bs-stepper.entry.js +1 -1
  428. package/dist/esm/bs-switch.entry.js +1 -1
  429. package/dist/esm/bs-tab_3.entry.js +3 -3
  430. package/dist/esm/bs-timepicker.entry.js +2 -2
  431. package/dist/esm/bs-toast.entry.js +1 -1
  432. package/dist/esm/bs-tooltip-trigger.entry.js +1 -1
  433. package/dist/esm/bs-tooltip.entry.js +1 -1
  434. package/dist/esm/bs-tree-item.entry.js +92 -0
  435. package/dist/esm/bs-tree.entry.js +195 -0
  436. package/dist/esm/loader.js +1 -1
  437. package/dist/types/components/bs-command-palette/bs-command-palette.cmp.test.d.ts +1 -0
  438. package/dist/types/components/bs-command-palette/bs-command-palette.d.ts +172 -0
  439. package/dist/types/components/bs-command-palette/bs-command-palette.stories.d.ts +56 -0
  440. package/dist/types/components/bs-empty-state/bs-empty-state.cmp.test.d.ts +1 -0
  441. package/dist/types/components/bs-empty-state/bs-empty-state.d.ts +50 -0
  442. package/dist/types/components/bs-empty-state/bs-empty-state.stories.d.ts +13 -0
  443. package/dist/types/components/bs-global-search/bs-global-search.cmp.test.d.ts +1 -0
  444. package/dist/types/components/bs-global-search/bs-global-search.d.ts +166 -0
  445. package/dist/types/components/bs-global-search/bs-global-search.stories.d.ts +61 -0
  446. package/dist/types/components/bs-key/bs-key.cmp.test.d.ts +1 -0
  447. package/dist/types/components/bs-key/bs-key.d.ts +36 -0
  448. package/dist/types/components/bs-key/bs-key.stories.d.ts +11 -0
  449. package/dist/types/components/bs-key-caps/bs-key-caps.cmp.test.d.ts +1 -0
  450. package/dist/types/components/bs-key-caps/bs-key-caps.d.ts +31 -0
  451. package/dist/types/components/bs-key-caps/bs-key-caps.stories.d.ts +15 -0
  452. package/dist/types/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.cmp.test.d.ts +1 -0
  453. package/dist/types/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.d.ts +95 -0
  454. package/dist/types/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.stories.d.ts +43 -0
  455. package/dist/types/components/bs-list/bs-list.cmp.test.d.ts +1 -0
  456. package/dist/types/components/bs-list/bs-list.d.ts +42 -0
  457. package/dist/types/components/bs-list/bs-list.stories.d.ts +13 -0
  458. package/dist/types/components/bs-list-item/bs-list-item.cmp.test.d.ts +1 -0
  459. package/dist/types/components/bs-list-item/bs-list-item.d.ts +85 -0
  460. package/dist/types/components/bs-list-item/bs-list-item.stories.d.ts +22 -0
  461. package/dist/types/components/bs-search-item/bs-search-item.cmp.test.d.ts +1 -0
  462. package/dist/types/components/bs-search-item/bs-search-item.d.ts +61 -0
  463. package/dist/types/components/bs-search-item/bs-search-item.stories.d.ts +13 -0
  464. package/dist/types/components/bs-shortcut-row/bs-shortcut-row.cmp.test.d.ts +1 -0
  465. package/dist/types/components/bs-shortcut-row/bs-shortcut-row.d.ts +38 -0
  466. package/dist/types/components/bs-shortcut-row/bs-shortcut-row.stories.d.ts +13 -0
  467. package/dist/types/components/bs-tree/bs-tree.cmp.test.d.ts +1 -0
  468. package/dist/types/components/bs-tree/bs-tree.d.ts +53 -0
  469. package/dist/types/components/bs-tree/bs-tree.stories.d.ts +11 -0
  470. package/dist/types/components/bs-tree-item/bs-tree-item.cmp.test.d.ts +1 -0
  471. package/dist/types/components/bs-tree-item/bs-tree-item.d.ts +60 -0
  472. package/dist/types/components/bs-tree-item/bs-tree-item.stories.d.ts +19 -0
  473. package/dist/types/components.d.ts +2700 -199
  474. package/package.json +1 -1
  475. package/reference.d.ts +36 -0
  476. package/reference.json +1076 -47
  477. package/dist/brandsync-wc/p-769c5b4a.entry.js +0 -1
  478. package/dist/brandsync-wc/p-e5f50e93.entry.js +0 -1
  479. package/dist/brandsync-wc/p-e72dd05e.entry.js +0 -1
@@ -0,0 +1,25 @@
1
+ import { r as registerInstance, h } from './index-D3SkQJpw.js';
2
+
3
+ const bsShortcutRowCss = () => `:host{display:block;width:100%;box-sizing:border-box;--bs-shortcut-row-height:36px;--bs-shortcut-row-padding-x:var(--bs-spacing-100);--bs-shortcut-row-gap:var(--bs-spacing-100);--bs-shortcut-row-radius:var(--bs-border-radius-75);--bs-shortcut-row-color:var(--bs-text-default);--bs-shortcut-row-color-disabled:var(--bs-text-on-disabled)}.bs-shortcut-row{box-sizing:border-box;display:flex;align-items:center;gap:var(--bs-shortcut-row-gap);width:100%;height:var(--bs-shortcut-row-height);padding-inline:var(--bs-shortcut-row-padding-x);border-radius:var(--bs-shortcut-row-radius);color:var(--bs-shortcut-row-color);font-family:inherit;font-size:var(--bs-font-size-sm);font-weight:var(--bs-font-weight-regular);line-height:calc(var(--bs-line-height-body-sm) * 1px)}:host([disabled]) .bs-shortcut-row{color:var(--bs-shortcut-row-color-disabled)}.bs-shortcut-row__action{flex:1 1 0;min-width:0}.bs-shortcut-row__keys{display:flex;align-items:center;flex-shrink:0}`;
4
+
5
+ const BsShortcutRow = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ }
9
+ /** The action, e.g. "Save". The default slot overrides it. */
10
+ action;
11
+ /** The keys, e.g. `"Ctrl+S"`, or an array (`['Ctrl', '+']`) for a literal plus key. See `bs-key-caps`. */
12
+ keys;
13
+ /** Accessible name of the key caps, e.g. "Control plus S". Defaults to the keys joined with "plus". */
14
+ label;
15
+ /** Dims the label and the keys. */
16
+ disabled = false;
17
+ /** Set by the parent list (`"listitem"`). Standalone rows have no role. */
18
+ selectionRole = null;
19
+ render() {
20
+ return (h("div", { key: '3594dbd6526283414539f46dbf83430c35b6aa03', part: "container", class: "bs-shortcut-row", role: this.selectionRole ?? undefined }, h("span", { key: '74bf12e32a4fc15c77ee4b650ae1facee76f68c0', part: "action", class: "bs-shortcut-row__action" }, h("slot", { key: '6bfc823e7ffb68d7a2d677d828dfe5f765f1d094' }, this.action)), h("span", { key: '4f6ba475754e26dffdae4dbbc29d64c1f01d2463', part: "keys", class: "bs-shortcut-row__keys" }, h("slot", { key: '251e7333354292aacc6f93265d3ebce68db0af53', name: "keys" }, h("bs-key-caps", { key: 'f887b73b0c21c92997cee5a4742e23b5caad358d', keys: this.keys, label: this.label, disabled: this.disabled })))));
21
+ }
22
+ };
23
+ BsShortcutRow.style = bsShortcutRowCss();
24
+
25
+ export { BsShortcutRow as bs_shortcut_row };
@@ -41,7 +41,7 @@ const BsSkeleton = class {
41
41
  lines.push(h("span", { part: "line", class: { 'bs-skeleton__line': true, [`bs-skeleton__line--${this.variant}`]: true, 'bs-skeleton__line--short': isShortLast }, style: style }));
42
42
  }
43
43
  const hasLabel = !!this.label;
44
- return (h("span", { key: '7d2c9b9259f7a7402540d55cdbb66e40809eb8af', part: "container", class: { 'bs-skeleton': true, 'bs-skeleton--animated': this.animated, [`bs-skeleton--${this.variant}`]: true }, role: hasLabel ? 'status' : undefined, "aria-label": hasLabel ? this.label : undefined, "aria-hidden": hasLabel ? undefined : 'true' }, lines));
44
+ return (h("span", { key: 'c5cbf5b6a64b8658ffd5b60816db3d226c342d65', part: "container", class: { 'bs-skeleton': true, 'bs-skeleton--animated': this.animated, [`bs-skeleton--${this.variant}`]: true }, role: hasLabel ? 'status' : undefined, "aria-label": hasLabel ? this.label : undefined, "aria-hidden": hasLabel ? undefined : 'true' }, lines));
45
45
  }
46
46
  };
47
47
  BsSkeleton.style = bsSkeletonCss();
@@ -221,7 +221,7 @@ const BsSlider = class {
221
221
  render() {
222
222
  const isRange = this.type === 'range';
223
223
  const rootClasses = ['bs-slider', this.disabled ? 'bs-slider--disabled' : ''].filter(Boolean).join(' ');
224
- return (h("div", { key: '27a3ea5b427fcc77b8d5e3e1ebe2e5bc4e63b7c7', class: rootClasses }, this.showLabel && (h("div", { key: '0d4a3457ce390dd2b05be33e46a3bd67dd6f027e', class: "bs-slider__header" }, h("span", { key: '21fda56ed3bfad6a7838cc6be53fe206634e35a8', id: "bs-slider-label", part: "label", class: "bs-slider__label" }, this.label), isRange ? (h("span", { class: "bs-slider__value-fields" }, this.renderPercentField(this.percent(this.effectiveValueStart), this.onStartPercentFieldChange, this.ariaLabel ?? this.startValueLabel), h("span", { class: "bs-slider__separator" }, "\u2013"), this.renderPercentField(this.percent(this.effectiveValueEnd), this.onEndPercentFieldChange, this.ariaLabel ? `${this.ariaLabel} end` : this.endValueLabel))) : (this.renderPercentField(this.percent(this.value), this.onPercentFieldChange, this.ariaLabel ? `${this.ariaLabel} value` : 'Value')))), h("div", { key: '1d8b7c5fa72467ae5a58520ad66452331c5d8e16', class: "bs-slider__row" }, this.showLabel && (h("span", { key: 'd45c1e0d5cfe7a66f8bd85a239148b2c13a8b3df', part: "bound", class: "bs-slider__bound" }, this.min)), isRange ? this.renderRangeThumbs() : this.renderSingleThumb(), this.showLabel && (h("span", { key: '063d2007c094ebed57e58fe0fbaa0e1f0581ed71', part: "bound", class: "bs-slider__bound" }, this.max)))));
224
+ return (h("div", { key: '8d3274ef80b6bdd4a52efc8f8802ebb3aba86b9a', class: rootClasses }, this.showLabel && (h("div", { key: 'd852f58c8c92a8f69153192e74136362e2ab226e', class: "bs-slider__header" }, h("span", { key: 'e02b3c4fd839d812b516bab33349f1a4f2d5b0c4', id: "bs-slider-label", part: "label", class: "bs-slider__label" }, this.label), isRange ? (h("span", { class: "bs-slider__value-fields" }, this.renderPercentField(this.percent(this.effectiveValueStart), this.onStartPercentFieldChange, this.ariaLabel ?? this.startValueLabel), h("span", { class: "bs-slider__separator" }, "\u2013"), this.renderPercentField(this.percent(this.effectiveValueEnd), this.onEndPercentFieldChange, this.ariaLabel ? `${this.ariaLabel} end` : this.endValueLabel))) : (this.renderPercentField(this.percent(this.value), this.onPercentFieldChange, this.ariaLabel ? `${this.ariaLabel} value` : 'Value')))), h("div", { key: '30bc9f0bb1380dfa22542d04af160f13f70d276f', class: "bs-slider__row" }, this.showLabel && (h("span", { key: '824de56e2112ef5af4e20ebf097b17e4d7122624', part: "bound", class: "bs-slider__bound" }, this.min)), isRange ? this.renderRangeThumbs() : this.renderSingleThumb(), this.showLabel && (h("span", { key: 'cd0848d7add9ea1fd53c92ebd5b5f13a4a06fdbe', part: "bound", class: "bs-slider__bound" }, this.max)))));
225
225
  }
226
226
  static get delegatesFocus() { return true; }
227
227
  static get formAssociated() { return true; }
@@ -45,7 +45,7 @@ const BsSnackbar = class {
45
45
  this.bsDismiss.emit();
46
46
  };
47
47
  render() {
48
- return (h("div", { key: 'c28affe5d8731108fb850d3a748f529ee387a19b', part: "container", class: `bs-snackbar bs-snackbar--${this.variant}`, role: "status", "aria-live": this.variant === 'error' ? 'assertive' : 'polite' }, h("div", { key: 'fa1934bd51d1c2c9287d748c28885ca48972160f', class: "bs-snackbar__content" }, h("span", { key: 'b2d96ef66bc8fabf1efb19951ca2559cd17cccd6', part: "icon", class: "bs-snackbar__icon", "aria-hidden": "true" }, this.loading ? h("span", { class: "bs-snackbar__spinner" }) : h(CheckCircleIcon, null)), h("span", { key: 'bf425e1893ecc38f5c808589b3e4aa37377ebdc8', part: "message", class: "bs-snackbar__message" }, h("slot", { key: '5ad9c390508942f8d3b380de83100da30a06f02d' }))), h("div", { key: '84d388fa214fc995d5f0f5f3a336984b251373c8', class: "bs-snackbar__actions" }, this.actionLabel && (h("bs-button", { key: 'c96e9fc2252a60a6a33aa31e3b698bf1662f7447', part: "action", variant: this.actionVariant ?? ACTION_VARIANT[this.variant], size: "sm", onClick: this.onAction }, this.actionLabel)), !this.hideClose && (h("bs-icon-button", { key: '8b0a71688b6418ebb2db2fe648334048429d7168', part: "close", variant: "subtle", size: "md", ariaLabel: "Dismiss", onClick: this.onDismiss }, h(CloseIcon, { key: 'bcc155735db55392b049f6b5761e05341e588d35' }))))));
48
+ return (h("div", { key: '2b54d2d4ddfed7e1942ab21f09cf074ab58b2f22', part: "container", class: `bs-snackbar bs-snackbar--${this.variant}`, role: "status", "aria-live": this.variant === 'error' ? 'assertive' : 'polite' }, h("div", { key: 'a3ca39bf6b7c1047b013bac648b6fb60acaf520d', class: "bs-snackbar__content" }, h("span", { key: 'fa5a5cc6a24ad4f7ee434bf9f8ae4976872c57df', part: "icon", class: "bs-snackbar__icon", "aria-hidden": "true" }, this.loading ? h("span", { class: "bs-snackbar__spinner" }) : h(CheckCircleIcon, null)), h("span", { key: '58b52f72b9290a986832b954ad9f7e5d1e51eac8', part: "message", class: "bs-snackbar__message" }, h("slot", { key: 'c907524f91afd4b5ac22f0b86bb123ac831021f9' }))), h("div", { key: 'b746a574030f0023826ef131643eb49088db7da0', class: "bs-snackbar__actions" }, this.actionLabel && (h("bs-button", { key: 'fef75f43a0a15208b43ad4601dcc639022160ccc', part: "action", variant: this.actionVariant ?? ACTION_VARIANT[this.variant], size: "sm", onClick: this.onAction }, this.actionLabel)), !this.hideClose && (h("bs-icon-button", { key: 'a582778e2469b68a683c6cff867c5f8839989f2e', part: "close", variant: "subtle", size: "md", ariaLabel: "Dismiss", onClick: this.onDismiss }, h(CloseIcon, { key: '1e7a6f872373fe2f62a99aa03421815a6f55e8d2' }))))));
49
49
  }
50
50
  };
51
51
  const CheckCircleIcon = () => (h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M8.25 12.75L10.5 15L15.75 9.75", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { d: "M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })));
@@ -24,8 +24,8 @@ const BsSourceLink = class {
24
24
  };
25
25
  render() {
26
26
  const inner = [
27
- h("span", { key: 'e693ffb8cd5d0fc8c8f602868d17a7b41735a470', class: "bs-source-link__left" }, h("span", { key: '685b3dfbee1ece7cb3ba8cb2c593836a6b557ab6', class: "bs-source-link__filename-row" }, h("span", { key: '4888e161fef6c69a889f29dcd90577904aea81a0', part: "icon", class: "bs-source-link__icon" }, h("slot", { key: '806c2219ca588ec505a1e6ea62ebb5e171fbb1ef', name: "icon" }, h(FileTextIcon, { key: '208c43fdfe05fb6f7c987fc760bc37ab9dc7faef' }))), h("p", { key: 'bf34fc21cf242f290c0220f3fd216616f2042fed', part: "filename", class: "bs-source-link__filename" }, this.fileName)), h("span", { key: '2924ba8f19ab78096a532e08946ad5047ab04387', class: "bs-source-link__meta" }, this.sourceName && (h("span", { key: 'b638eea6c0c05f3b5b7eb6f4c02f94910a5aa1fa', part: "source", class: "bs-source-link__source" }, this.sourceName)), this.sourceName && this.version && h("span", { key: '5d407c3a10813d7f85a1b6a99e3e869e6ce28b8b', class: "bs-source-link__dot", "aria-hidden": "true" }), this.version && (h("span", { key: 'b25df35eae4fe62bdf1e745dd8f478792adb0129', part: "version", class: "bs-source-link__version" }, this.version)))),
28
- h("span", { key: '263a19dd6402cba9057a543921ff669b323b58ac', part: "arrow", class: "bs-source-link__arrow", "aria-hidden": "true" }, h(ArrowUpRightIcon, { key: '7d2baa2d8f13fe3b6cbd2abed2c6096d5076c667' })),
27
+ h("span", { key: 'f6cbdaccaa104fa4e6d16db23ae8f66e9d3d7aa7', class: "bs-source-link__left" }, h("span", { key: 'a66ccda2c131b3a708402d0b06206e355fca0dad', class: "bs-source-link__filename-row" }, h("span", { key: '74af0518a127378fc13291c3cec12b8eb470268b', part: "icon", class: "bs-source-link__icon" }, h("slot", { key: '9b1f4a71a0c5313210481106988a851ea87b40b6', name: "icon" }, h(FileTextIcon, { key: '1b1b9e285a744a074537fbf4ea19c852343b4513' }))), h("p", { key: 'ecdedebb0281ec56ec08a1657de2d924bb34a421', part: "filename", class: "bs-source-link__filename" }, this.fileName)), h("span", { key: 'b109074e833ef4feb438f9b4992fe6bd7ebc8279', class: "bs-source-link__meta" }, this.sourceName && (h("span", { key: '182f41c9115004f345028e991e38345dcc9bc7b2', part: "source", class: "bs-source-link__source" }, this.sourceName)), this.sourceName && this.version && h("span", { key: '95b31ed9741bbaeb215109139520108991d33ffe', class: "bs-source-link__dot", "aria-hidden": "true" }), this.version && (h("span", { key: '3241c29460a9287bba9bebac78cefdb1ef62ca65', part: "version", class: "bs-source-link__version" }, this.version)))),
28
+ h("span", { key: '67327845908098595d935c87c96809205cb25d38', part: "arrow", class: "bs-source-link__arrow", "aria-hidden": "true" }, h(ArrowUpRightIcon, { key: 'fcf4946e7d5647a6137ff1a6d24851cc7bcb9aef' })),
29
29
  ];
30
30
  return this.href ? (h("a", { class: "bs-source-link", href: this.href, target: this.target, rel: "noopener noreferrer", onClick: this.onClick }, inner)) : (h("button", { type: "button", class: "bs-source-link", onClick: this.onClick }, inner));
31
31
  }
@@ -14,7 +14,7 @@ const BsSpinner = class {
14
14
  label;
15
15
  render() {
16
16
  const hasLabel = !!this.label;
17
- return (h("span", { key: 'ffeef19b6e11c8bae27649f667c65be8b6b211e5', part: "container", class: `bs-spinner bs-spinner--${this.size}`, role: hasLabel ? 'status' : undefined, "aria-label": hasLabel ? this.label : undefined, "aria-hidden": hasLabel ? undefined : 'true' }, h("svg", { key: 'afa93c3331107ff2be423c0693ed546d1687c143', part: "svg", class: "bs-spinner__svg", viewBox: "0 0 24 24", fill: "none", focusable: "false" }, h("circle", { key: 'e016a9b43eb8f297f644ba9a1d4f4e2a9dc35752', class: "bs-spinner__track", cx: "12", cy: "12", r: "9", "stroke-width": "3" }), h("path", { key: '68827930d857322dfb7480de9cc76bb18011120d', class: "bs-spinner__arc", d: "M12 3a9 9 0 0 1 9 9", "stroke-width": "3", "stroke-linecap": "round" }))));
17
+ return (h("span", { key: '3c9d75df5028a1bad32c909ef1e382ffae53fd91', part: "container", class: `bs-spinner bs-spinner--${this.size}`, role: hasLabel ? 'status' : undefined, "aria-label": hasLabel ? this.label : undefined, "aria-hidden": hasLabel ? undefined : 'true' }, h("svg", { key: '431baaa3fbe8c6f9a4d9189b46d24d5e15ad8f18', part: "svg", class: "bs-spinner__svg", viewBox: "0 0 24 24", fill: "none", focusable: "false" }, h("circle", { key: 'd71a6901ce3cccd9647287ea06693137cd5c9b64', class: "bs-spinner__track", cx: "12", cy: "12", r: "9", "stroke-width": "3" }), h("path", { key: '65f5e995822a96e293b3541eb16606a178ec6c88', class: "bs-spinner__arc", d: "M12 3a9 9 0 0 1 9 9", "stroke-width": "3", "stroke-linecap": "round" }))));
18
18
  }
19
19
  };
20
20
  BsSpinner.style = bsSpinnerCss();
@@ -183,7 +183,7 @@ const BsSplitPane = class {
183
183
  nodes.push(h("div", { part: "divider", class: { 'bs-split-pane__divider': true, 'bs-split-pane__divider--active': this.draggingIndex === i, 'bs-split-pane__divider--static': !this.resizable }, role: "separator", "aria-orientation": dividerOrientation, "aria-label": this.dividerLabel, "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": this.percentFor(i), tabindex: this.resizable ? 0 : undefined, onPointerDown: this.onPointerDown(i), onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onPointerCancel: this.onPointerUp, onKeyDown: this.onKeyDown(i) }, h("span", { part: "divider-thumb", class: "bs-split-pane__thumb" })));
184
184
  }
185
185
  }
186
- return (h("div", { key: '67d978089645337e56106163c6d6ac38fd6d063c', part: "container", class: `bs-split-pane bs-split-pane--${this.orientation}` }, nodes));
186
+ return (h("div", { key: '70a36a863fc3fb144160616725126d0421cea69f', part: "container", class: `bs-split-pane bs-split-pane--${this.orientation}` }, nodes));
187
187
  }
188
188
  };
189
189
  BsSplitPane.style = bsSplitPaneCss();
@@ -66,7 +66,7 @@ const BsStack = class {
66
66
  parts.push(h("slot", { name: `bs-stack-item-${i}`, onSlotchange: this.sync }));
67
67
  }
68
68
  }
69
- return (h(Host, { key: '36539e2d556a29fffe996ae4b53d207ac39e3889', style: { '--bs-stack-gap-token': `var(--bs-spacing-${gap})` } }, h("slot", { key: 'fe94e79e6ded0341d04792c9be2949c6663de5a9', onSlotchange: this.sync }), parts));
69
+ return (h(Host, { key: 'be2e4a8ecb5d4fd27441b8cafbfd7e8a17ea3b82', style: { '--bs-stack-gap-token': `var(--bs-spacing-${gap})` } }, h("slot", { key: '4eab2557384cb6ae620ea3feef8e36dc0a2e2f08', onSlotchange: this.sync }), parts));
70
70
  }
71
71
  static get watchers() { return {
72
72
  "divider": [{
@@ -32,7 +32,7 @@ const BsStepperStep = class {
32
32
  }
33
33
  render() {
34
34
  const state = this.state;
35
- return (h(Host, { key: 'aebeb38afde905d2b5d12f6c6218c7f6d8caa6db', role: "listitem", class: `bs-stepper-step--${this.direction}` }, h("div", { key: '5ce2ab43631225cabfad3d0a65724fe53475c609', class: "bs-stepper-step__top" }, h("span", { key: '5270d9396ce4eaae1e7f8893d28198df7f87d515', part: "icon", class: `bs-stepper-step__icon bs-stepper-step__icon--${state}` }, state === 'current' && h("span", { key: 'a2a83808311c13113d9cefa5a2bc9926be9dea97', class: "bs-stepper-step__icon-dot" }), state === 'done' && h(CheckIcon, { key: 'acf704a0de2391bac5cddc3eebef1f6aa821e233' }), state === 'error' && h(ExclamationIcon, { key: '4fc253c6ffced8ef5eaf337e39c0912b0765f5aa' })), h("span", { key: '163f5b4e465c4b6b27238ceaf73d7cdd96f5b376', part: "connector", class: "bs-stepper-step__connector", "aria-hidden": "true" }, h("span", { key: 'f71f15dba5235e6176dad102c4ebad976e063900', class: "bs-stepper-step__connector-line" }))), h("span", { key: 'ae5cd8999024687a6a3631dc6887428256899479', part: "label", class: `bs-stepper-step__label bs-stepper-step__label--${state}` }, h("span", { key: 'a5971b572a0f1a2f602e8f888a16d6e0e5599183', part: "name", class: "bs-stepper-step__name" }, this.name), this.showDescription && this.description && (h("span", { key: '2873a2ceb40f7abc5e543a0d50192bc42945f3e5', part: "description", class: "bs-stepper-step__description" }, this.description)))));
35
+ return (h(Host, { key: '8e11ed2e78a5e6468ed6265f90199bdc0c2e4bcc', role: "listitem", class: `bs-stepper-step--${this.direction}` }, h("div", { key: '0d50e2845fb886a73e7eeaad474c0d9c1b2e06cb', class: "bs-stepper-step__top" }, h("span", { key: '1bfe85491c42f8e1bf00a4e86c162448564b5142', part: "icon", class: `bs-stepper-step__icon bs-stepper-step__icon--${state}` }, state === 'current' && h("span", { key: 'e3ac4066de9f1c9bfa824a889c654952891221b8', class: "bs-stepper-step__icon-dot" }), state === 'done' && h(CheckIcon, { key: '7c1e237ce011d77b47d26e622974d6a2629ecfd3' }), state === 'error' && h(ExclamationIcon, { key: '9420c50c9154f007ae0802473f0a5e0cf18fe8fd' })), h("span", { key: '039f2ca1186b82bebb8e989630f575599c64e85b', part: "connector", class: "bs-stepper-step__connector", "aria-hidden": "true" }, h("span", { key: 'dc5a250a1437eda9baf7cd38a69fa36d26e6cfaa', class: "bs-stepper-step__connector-line" }))), h("span", { key: 'df8d2c94073f134125d34e5686f0c340c2c59d87', part: "label", class: `bs-stepper-step__label bs-stepper-step__label--${state}` }, h("span", { key: '5bdce9915c1e6e2610bbe101bc41108cfa2e0cd5', part: "name", class: "bs-stepper-step__name" }, this.name), this.showDescription && this.description && (h("span", { key: '39ddca52aa59717d22ca56ece74b4518d1ae2370', part: "description", class: "bs-stepper-step__description" }, this.description)))));
36
36
  }
37
37
  };
38
38
  const CheckIcon = () => (h("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M2.5 9L6 12.5L14 4.5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })));
@@ -42,7 +42,7 @@ const BsStepper = class {
42
42
  }
43
43
  render() {
44
44
  // role="list" so each bs-stepper-step's role="listitem" has the required parent.
45
- return (h(Host, { key: '974bd59785233de47d55750ede0a3d823ff11c75', role: "list" }, h("slot", { key: 'ce637c2c5631329c747897c66ec2cca9e6f738fb', onSlotchange: this.onSlotChange })));
45
+ return (h(Host, { key: '3f002aa5977dd81a203b44aeb3ffd9e82e1d78ab', role: "list" }, h("slot", { key: 'f5a64626aba6cef29bcc7710c839583ccc2a2c71', onSlotchange: this.onSlotChange })));
46
46
  }
47
47
  static get watchers() { return {
48
48
  "currentStep": [{
@@ -70,7 +70,7 @@ const BsSwitch = class {
70
70
  const knobClasses = ['bs-switch__knob', `bs-switch__knob--${this.size}`, this.disabled ? 'bs-switch__knob--disabled' : '']
71
71
  .filter(Boolean)
72
72
  .join(' ');
73
- return (h("label", { key: '8e879cda3d51659448298ad74e0cd72d6a3c7692', class: `bs-switch ${this.disabled ? 'bs-switch--disabled' : ''}` }, h("input", { key: '49e885f0275339b520e601eab3dd5e58e4deaf33', class: "bs-switch__input", type: "checkbox", role: "switch", checked: this.checked, disabled: this.disabled, "aria-checked": String(this.checked), "aria-label": this.ariaLabel, onChange: this.onChange }), h("span", { key: '713c1fe5e578730b3afdeff880083ca9df5f0805', part: "track", class: trackClasses }, h("span", { key: 'f64210e5e3c6fa2c814567921922da3a3b93dd5f', part: "knob", class: knobClasses })), h("span", { key: '5a5cdbdb31470bcda460412ddb6f78fa4bb37a4b', part: "label", class: "bs-switch__label" }, h("slot", { key: '4d1857d66cfbed3b59805359692371decec5c374' }))));
73
+ return (h("label", { key: '49f1cfc9d185ab00f7186dc032b791a23ca26f70', class: `bs-switch ${this.disabled ? 'bs-switch--disabled' : ''}` }, h("input", { key: '8c20d342f636a06e7506008c00b612746e5c5698', class: "bs-switch__input", type: "checkbox", role: "switch", checked: this.checked, disabled: this.disabled, "aria-checked": String(this.checked), "aria-label": this.ariaLabel, onChange: this.onChange }), h("span", { key: 'd1fcfa9efbe5a3bffe23c597770b330622729a62', part: "track", class: trackClasses }, h("span", { key: '54d63b56c139c5b67bff4a61496914b641e498c3', part: "knob", class: knobClasses })), h("span", { key: 'd4ddc5b7e7ca13c74f4693f645fbe375447fe86b', part: "label", class: "bs-switch__label" }, h("slot", { key: '866fd38ac545d1ad19494b267594d7e4aab4b0b1' }))));
74
74
  }
75
75
  static get delegatesFocus() { return true; }
76
76
  static get formAssociated() { return true; }
@@ -78,7 +78,7 @@ const BsTab = class {
78
78
  const iconOnly = this.hasIcon && !this.hasLabel;
79
79
  const vertical = this.hasIcon && this.hasLabel && this.iconPosition === 'top';
80
80
  const showBadge = this.hasBadge && !iconOnly && !vertical;
81
- return (h("button", { key: '23d18710e7c697958aa0a7b4f8248bd85541db04', type: "button", part: "tab", role: "tab", class: `bs-tab ${this.selected ? 'bs-tab--selected' : ''} ${this.disabled ? 'bs-tab--disabled' : ''} ${iconOnly ? 'bs-tab--icon-only' : ''} ${vertical ? 'bs-tab--vertical' : ''}`, disabled: this.disabled, "aria-selected": String(this.selected), "aria-disabled": this.disabled ? 'true' : undefined, "aria-label": this.ariaLabel, tabIndex: this.tabbable === undefined ? undefined : this.tabbable ? 0 : -1, onClick: this.onClick }, h("span", { key: 'd48e487274031e23a9febc4dccec966e939420ff', part: "icon", class: `bs-tab__icon ${this.hasIcon ? 'bs-tab__icon--has-content' : ''}` }, h("slot", { key: '004e5fc7c61b9d4a9813ce8a5ce21e71ff3f9bb8', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: 'e7d905a2daed877414e43078a2a4460486eee9a2', part: "label", class: `bs-tab__label ${this.hasLabel ? 'bs-tab__label--has-content' : ''}` }, h("slot", { key: '2bc379c7f2bd7a14c1864da3024773a1e392598f', onSlotchange: this.onLabelSlotchange })), h("span", { key: '92aff30ad4fd06d0a16c5fc40202fb4c553e80d6', part: "badge", class: `bs-tab__badge ${showBadge ? 'bs-tab__badge--has-content' : ''}` }, h("slot", { key: 'e655135dd81a288e7428d00c0778bb2b42294258', name: "badge", onSlotchange: this.onBadgeSlotchange })), h("span", { key: 'abecf083399730cc0e84c62109f51b683bf55ac0', part: "indicator", class: "bs-tab__indicator" })));
81
+ return (h("button", { key: '9041f39829dd71f2dd2d54a5c2e8329f6fe8e11a', type: "button", part: "tab", role: "tab", class: `bs-tab ${this.selected ? 'bs-tab--selected' : ''} ${this.disabled ? 'bs-tab--disabled' : ''} ${iconOnly ? 'bs-tab--icon-only' : ''} ${vertical ? 'bs-tab--vertical' : ''}`, disabled: this.disabled, "aria-selected": String(this.selected), "aria-disabled": this.disabled ? 'true' : undefined, "aria-label": this.ariaLabel, tabIndex: this.tabbable === undefined ? undefined : this.tabbable ? 0 : -1, onClick: this.onClick }, h("span", { key: 'a57aec34d30bcaf112aa7f5d4530a4d64f2101a7', part: "icon", class: `bs-tab__icon ${this.hasIcon ? 'bs-tab__icon--has-content' : ''}` }, h("slot", { key: 'a60bd8b1c3b46de2ce9c33ba4f667bc815badcf6', name: "icon", onSlotchange: this.onIconSlotchange })), h("span", { key: 'd64146a811bbec39d7a9abe85446340b6d2d8988', part: "label", class: `bs-tab__label ${this.hasLabel ? 'bs-tab__label--has-content' : ''}` }, h("slot", { key: 'eb7a7f6d6999e6b0e8677fbb6e87ccba699f3977', onSlotchange: this.onLabelSlotchange })), h("span", { key: 'f281adb319e2653ebd2e4ef770750aafa30a9a82', part: "badge", class: `bs-tab__badge ${showBadge ? 'bs-tab__badge--has-content' : ''}` }, h("slot", { key: 'fd72ae0865d4cd6cecc8ace8a8da056574f71d3b', name: "badge", onSlotchange: this.onBadgeSlotchange })), h("span", { key: '4a278ac85059a94677816b87df1ff343da5c5f65', part: "indicator", class: "bs-tab__indicator" })));
82
82
  }
83
83
  };
84
84
  BsTab.style = bsTabCss();
@@ -198,7 +198,7 @@ const BsTabs = class {
198
198
  }
199
199
  render() {
200
200
  const vertical = this.orientation === 'vertical';
201
- return (h("div", { key: '07185cefa2f1a443035e61ba13f080913ce73ca6', part: "tablist", role: "tablist", "aria-orientation": this.orientation, class: `bs-tabs bs-tabs--${this.type} ${vertical ? 'bs-tabs--vertical' : ''}` }, h("slot", { key: '99fe98e753609bc4f594fb32dab5a7df2f4b3c0d', onSlotchange: () => this.syncRovingTabindex() })));
201
+ return (h("div", { key: 'eb523e0109735c416498c91955787b00c0d5402d', part: "tablist", role: "tablist", "aria-orientation": this.orientation, class: `bs-tabs bs-tabs--${this.type} ${vertical ? 'bs-tabs--vertical' : ''}` }, h("slot", { key: '506c2e41eb12e830793431ec474d1ec286a12016', onSlotchange: () => this.syncRovingTabindex() })));
202
202
  }
203
203
  static get watchers() { return {
204
204
  "value": [{
@@ -243,7 +243,7 @@ const BsWhatsNewEntry = class {
243
243
  hasImage = false;
244
244
  render() {
245
245
  const level = Math.min(6, Math.max(1, Math.trunc(Number(this.headingLevel)) || 3));
246
- return (h("div", { key: '392e53167e223e1a34802bf0106d0a92e3fbce47', class: "bs-whats-new-entry" }, (this.tag || this.date || this.unread) && (h("div", { key: 'a069414465afa8d5894967c4b91c029c6ca94714', part: "meta", class: "bs-whats-new-entry__meta" }, this.tag && (h("bs-chip-informative", { key: 'ba1c8320df4641ad9ba2e781a475ba81ab2e793e', part: "tag", size: "sm", color: this.tagColor }, this.tag)), this.date && (h("span", { key: '90fff95b14393041ef0d2a95f9d2f1e1e4fc4824', part: "date", class: "bs-whats-new-entry__date" }, this.date)), this.unread && (h("span", { key: '72a3ed86e67fdfbe754b94431e313b4978887bc0', part: "unread", class: "bs-whats-new-entry__unread" }, h("span", { key: '70f8e4492c9b09f39ffb78d3d2d6d0baf8cae27c', class: "bs-whats-new-entry__sr-only" }, this.unreadLabel))))), h("div", { key: '2930545aee739edac5d93ae7abc87984becbc6d6', part: "image", class: { 'bs-whats-new-entry__image': true, 'bs-whats-new-entry__image--visible': this.hasImage } }, h("slot", { key: 'a1ca6d788ee50e16668c50621c631b7be10128ea', name: "image", onSlotchange: (ev) => (this.hasImage = ev.target.assignedNodes().length > 0) })), h("div", { key: 'bc1cc0c9ad0d4272aa0e612822200d47a9108406', class: "bs-whats-new-entry__content" }, this.heading && h(`h${level}`, { part: 'heading', class: { 'bs-whats-new-entry__heading': true } }, this.heading), this.description && (h("p", { key: '7e0a2520c2c3bd7c753e4f3a64d7f61230bf1c7e', part: "description", class: "bs-whats-new-entry__description" }, this.description)), this.actionLabel && (h("bs-button", { key: '8344b34f92c0bcd1da4e491823f8d1f2cef82ad2', part: "action", class: "bs-whats-new-entry__action", variant: "subtle", size: "sm", onClick: () => this.bsAction.emit() }, this.actionLabel, h("svg", { key: '8941060aacc137bee4a7a9f15a9a32023dfc5390', slot: "end-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("path", { key: '0833d06eca31e2a199ff5cd4def1a408d74c4030', d: "M5 12H19" }), h("path", { key: 'e079ace356dc320dfde3f48d7336d2507303d1bf', d: "M13 6L19 12L13 18" }))))), this.divider && h("div", { key: '369d9767229d3fb57cb1a68d0bcefb03da4a953e', part: "divider", class: "bs-whats-new-entry__divider" })));
246
+ return (h("div", { key: 'ba59c32f90076f9faba57d1d1424c31af93ad240', class: "bs-whats-new-entry" }, (this.tag || this.date || this.unread) && (h("div", { key: '9a6440e38742503ec18082d4dbefab9869595865', part: "meta", class: "bs-whats-new-entry__meta" }, this.tag && (h("bs-chip-informative", { key: 'bf497ffc620943d72c51439c39301cdf96a03720', part: "tag", size: "sm", color: this.tagColor }, this.tag)), this.date && (h("span", { key: '8e854f17bcb076e301d2cb0a16427be230a994b6', part: "date", class: "bs-whats-new-entry__date" }, this.date)), this.unread && (h("span", { key: '2569be36e5869d3c29dc7a233930f99e82776f35', part: "unread", class: "bs-whats-new-entry__unread" }, h("span", { key: 'f833cdf102d376ecc296fb636ce24493dc0715ba', class: "bs-whats-new-entry__sr-only" }, this.unreadLabel))))), h("div", { key: '17773eb42eb20a1dc729c7026b8b80735092ad2a', part: "image", class: { 'bs-whats-new-entry__image': true, 'bs-whats-new-entry__image--visible': this.hasImage } }, h("slot", { key: 'b217d2bfa06a46f53416cbdef847edb2475e54b2', name: "image", onSlotchange: (ev) => (this.hasImage = ev.target.assignedNodes().length > 0) })), h("div", { key: '8c7a4695302ac3b66c9f4365242c690ada0859a9', class: "bs-whats-new-entry__content" }, this.heading && h(`h${level}`, { part: 'heading', class: { 'bs-whats-new-entry__heading': true } }, this.heading), this.description && (h("p", { key: '098bab050181c7cbce9353e86b31d8d5fc71bc37', part: "description", class: "bs-whats-new-entry__description" }, this.description)), this.actionLabel && (h("bs-button", { key: 'a455f4ce7519409bead2de900d20a4e8c0cff87f', part: "action", class: "bs-whats-new-entry__action", variant: "subtle", size: "sm", onClick: () => this.bsAction.emit() }, this.actionLabel, h("svg", { key: 'af8d18c4893ac8048c1646d9d44cdd0ad7bcc3cc', slot: "end-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("path", { key: 'aa1c74a5a7786032205569c58ffd5f46eae3efa6', d: "M5 12H19" }), h("path", { key: '38c809d94d7b789cbc2eb7b65408c878c82d1c43', d: "M13 6L19 12L13 18" }))))), this.divider && h("div", { key: 'dd61984417895380ec5b80b3b03b329bcae068ec', part: "divider", class: "bs-whats-new-entry__divider" })));
247
247
  }
248
248
  };
249
249
  BsWhatsNewEntry.style = bsWhatsNewEntryCss();
@@ -176,14 +176,14 @@ const BsTimepicker = class {
176
176
  return (h("div", { part: "spinner", class: "bs-timepicker__spinner" }, h("button", { part: "step", type: "button", class: "bs-timepicker__step", "aria-label": stepLabel(this.increaseLabel), tabindex: -1, onClick: () => this.stepBy(col, 1) }, h("svg", { viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true" }, h("path", { d: "M18 15L12 9L6 15", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("div", { part: "value", class: "bs-timepicker__value", role: "spinbutton", tabindex: 0, "aria-label": label, "aria-valuemin": min, "aria-valuemax": max, "aria-valuenow": n, "aria-valuetext": pad(n), onKeyDown: this.onKeyDown(col), onBlur: () => (this.typed = '') }, pad(n)), h("button", { part: "step", type: "button", class: "bs-timepicker__step", "aria-label": stepLabel(this.decreaseLabel), tabindex: -1, onClick: () => this.stepBy(col, -1) }, h("svg", { viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true" }, h("path", { d: "M6 9L12 15L18 9", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))));
177
177
  }
178
178
  render() {
179
- return (h("bs-card", { key: 'ad3c51871ca4b0b1871944b658bae070140d1e99', part: "container", class: "bs-timepicker", surface: "raised" }, h("div", { key: 'b522d8a85e0161c4f7cd7938364919eda0585cf9', class: "bs-timepicker__body" }, h("div", { key: 'a3dd5ea83fa63cd9e8e6db2dfeb32b195e084f58', part: "header", class: "bs-timepicker__header" }, h("div", { key: '9af7c0024a4341ed1bbaccb4fb25e0e7558de93e', part: "title", class: "bs-timepicker__title" }, this.heading), h("label", { key: 'e18dcfcfe44a19f8dbac0737e487b23234d92fd6', class: "bs-timepicker__format" }, h("span", { key: '954b1579e9789c76521ba9364ed84caee882a05d' }, this.formatLabel), h("bs-switch", { key: '020b23405f62aa272c8af71d9071e0090bec5c30', part: "format-toggle", size: "md", ariaLabel: this.formatLabel, checked: !this.is12h, onBsChange: (ev) => (this.format = ev.detail ? '24h' : '12h') }))), h("div", { key: '283ba5ff1525c6561b7d00552dfc86ed34284f9b', class: "bs-timepicker__divider" }), h("div", { key: 'c2dfc0cb7b7cc0e5d106565746f3426b4065af9a', part: "selector", class: "bs-timepicker__selector" }, this.renderColumn('hour', this.hourLabel), h("div", { key: '1d017fd059c36955ba5ba4c5da5a05b9fb18e7d2', part: "separator", class: "bs-timepicker__separator", "aria-hidden": "true" }, h("svg", { key: '6b182c00b7dbd9150640c47aee43423d20e270c5', viewBox: "0 0 4 32", fill: "currentColor" }, h("circle", { key: '531640b6870cc87a284ac9ea64ca5b292c4f529f', cx: "2", cy: "10", r: "2" }), h("circle", { key: '323a4a90bebd8203b5c2f9803ffe03055991f9e2', cx: "2", cy: "22", r: "2" }))), this.renderColumn('minute', this.minuteLabel), this.is12h && (h("bs-input", { key: '3d7ec2986824358b3f1e795a9ce05b1b81d14432', part: "period", class: "bs-timepicker__period", type: "dropdown", label: this.periodLabel, value: this.isPm ? 'PM' : 'AM', options: [
179
+ return (h("bs-card", { key: 'b10beb8dd035f96558d0cc1c62d8a9a852372e76', part: "container", class: "bs-timepicker", surface: "raised" }, h("div", { key: 'b75d31cab0ab45200526e32a4fd80ec4bbd0b93f', class: "bs-timepicker__body" }, h("div", { key: 'c76189d083c5e6294fdc3eb1584af65926a27b91', part: "header", class: "bs-timepicker__header" }, h("div", { key: 'd45ff2bd2e9f0057d2fce6235ecec2bc0e2a3904', part: "title", class: "bs-timepicker__title" }, this.heading), h("label", { key: '316576f63687c47440950845933e6236bec58c32', class: "bs-timepicker__format" }, h("span", { key: 'cc5785121a7437e85589e96499744ff963b99566' }, this.formatLabel), h("bs-switch", { key: 'b0b9fd4459092130c4f57a33a7ff3c3cfd8f8b96', part: "format-toggle", size: "md", ariaLabel: this.formatLabel, checked: !this.is12h, onBsChange: (ev) => (this.format = ev.detail ? '24h' : '12h') }))), h("div", { key: '8c14c3d42847b567d2abe2a476f9437a20f908c6', class: "bs-timepicker__divider" }), h("div", { key: '24368cea251d0075d4a5c6df2968ff68fc7def5d', part: "selector", class: "bs-timepicker__selector" }, this.renderColumn('hour', this.hourLabel), h("div", { key: 'f5ac1c36851ccf6af8ff21c929177e91a04d1a32', part: "separator", class: "bs-timepicker__separator", "aria-hidden": "true" }, h("svg", { key: '0c6a2dc94536c5111c0e8587750b21f843a04861', viewBox: "0 0 4 32", fill: "currentColor" }, h("circle", { key: '2d31480fbd0194ee9d6c9e60b25975654ad9952b', cx: "2", cy: "10", r: "2" }), h("circle", { key: '193b270a5c49634359a3fe93729ed3723177ca49', cx: "2", cy: "22", r: "2" }))), this.renderColumn('minute', this.minuteLabel), this.is12h && (h("bs-input", { key: '2fd70fb4b969a3c078a673df95315e32ee5e9612', part: "period", class: "bs-timepicker__period", type: "dropdown", label: this.periodLabel, value: this.isPm ? 'PM' : 'AM', options: [
180
180
  { label: 'AM', value: 'AM' },
181
181
  { label: 'PM', value: 'PM' },
182
182
  ], onBsChange: (ev) => {
183
183
  const pm = ev.detail === 'PM';
184
184
  if (pm !== this.isPm)
185
185
  this.hour = (this.hour + 12) % 24;
186
- } }))), h("div", { key: '664da910d0c1849ff6a47ca326945b37f837760a', class: "bs-timepicker__divider" }), h("div", { key: '852c88b44cbb5cc3f236363181920163776a4521', part: "footer", class: "bs-timepicker__footer" }, h("bs-button", { key: 'e92e26209c7ed2e45094265a54ad8347ce697f05', part: "cancel", variant: "subtle", onClick: this.cancel }, this.cancelLabel), h("bs-button", { key: '110338b7a98727089613a3eb661ca5e0d8346691', part: "confirm", variant: "primary", onClick: this.confirm }, this.confirmLabel)))));
186
+ } }))), h("div", { key: 'a49af89bf97bd9127917a37d65f192b023b7535f', class: "bs-timepicker__divider" }), h("div", { key: '67c33e73ebff80a943a78d455d0325a905839d4a', part: "footer", class: "bs-timepicker__footer" }, h("bs-button", { key: '4307ff06608b43825fb3618bad115f6ff0249ec9', part: "cancel", variant: "subtle", onClick: this.cancel }, this.cancelLabel), h("bs-button", { key: '336fbe75a702f49a8640bd4be98826910f2e1a1f', part: "confirm", variant: "primary", onClick: this.confirm }, this.confirmLabel)))));
187
187
  }
188
188
  static get formAssociated() { return true; }
189
189
  static get watchers() { return {
@@ -19,7 +19,7 @@ const BsToast = class {
19
19
  this.bsDismiss.emit();
20
20
  };
21
21
  render() {
22
- return (h("div", { key: '335782bd5c8c1c721105684ee50efb71dc8a9dd8', part: "container", class: `bs-toast bs-toast--${this.state}`, role: "status", "aria-live": this.state === 'error' ? 'assertive' : 'polite' }, h("div", { key: '77c48c6315299064a6904646f46bb787dc4dada2', class: "bs-toast__content" }, h("span", { key: '8aef9bc3f662320fb3d60bbfdf8d4d8672297bd4', part: "icon", class: "bs-toast__icon", "aria-hidden": "true" }, h(StateIcon, { key: 'b1501a806e5866b69fbea2073741325f65b1209c', state: this.state })), h("span", { key: '751407d5dc04f3f8b4e57c5b47d1639f66e673a6', part: "message", class: "bs-toast__message" }, h("slot", { key: '9407fe265762817eb68e8119a40b792b53dbdb6e' }))), h("div", { key: '4bcd82ca67e8ce49998c7c954b3764df242e4eeb', class: "bs-toast__actions" }, h("button", { key: '352a9789b6f773ee385396bda80fde2ed972af30', part: "close", type: "button", class: "bs-toast__close", "aria-label": this.dismissLabel, onClick: this.onDismiss }, h(CloseIcon, { key: '5296f2811fda1f42b95087c4494fa05d3e0efff4' })))));
22
+ return (h("div", { key: '962b8e77c2a88c3454e5979e133a0afabdc0647d', part: "container", class: `bs-toast bs-toast--${this.state}`, role: "status", "aria-live": this.state === 'error' ? 'assertive' : 'polite' }, h("div", { key: 'b8412715dc7f6c5562ca4405cfcf032885ed34fb', class: "bs-toast__content" }, h("span", { key: '7cb72a3a3a8338b272b6bd55d31c4524fcc1cb95', part: "icon", class: "bs-toast__icon", "aria-hidden": "true" }, h(StateIcon, { key: '1497ae74f4214bb0b604da2fe3027d195c025af0', state: this.state })), h("span", { key: 'b6a425877af268bc3625c4fe8904fd278e85652a', part: "message", class: "bs-toast__message" }, h("slot", { key: 'ff37e67ce2652237f85f10a7a8e2596f348d2e67' }))), h("div", { key: '375891513e9d63651f88d9c943ec177ab359cdf6', class: "bs-toast__actions" }, h("button", { key: 'f19133e7fece3fe4ef7bf9477483110183e511cb', part: "close", type: "button", class: "bs-toast__close", "aria-label": this.dismissLabel, onClick: this.onDismiss }, h(CloseIcon, { key: '9379d93d62c959a607ee30c35d999a997da39b72' })))));
23
23
  }
24
24
  };
25
25
  const StateIcon = ({ state }) => {
@@ -36,7 +36,7 @@ const BsTooltipTrigger = class {
36
36
  };
37
37
  render() {
38
38
  const show = this.visible && !!this.text;
39
- return (h("div", { key: '399a6f518855e7ba3ac3824276933d3b1ec913cc', part: "trigger", class: "bs-tooltip-trigger", "aria-describedby": this.tooltipId, onMouseEnter: this.show, onMouseLeave: this.hide, onFocusin: this.show, onFocusout: this.hide, onKeyDown: this.onKeyDown }, h("slot", { key: 'bf83352404bcdf757325421b86c8c571f89bae47' }), h("div", { key: '44f5fed6608f49041f206e44302a22404c1b6fc2', part: "tooltip", id: this.tooltipId, class: "bs-tooltip-trigger__tooltip", role: "tooltip", hidden: !show }, h("bs-tooltip", { key: 'f04fab6b6e9c6fba4c0dbdfe01db5927e98227cb' }, this.text))));
39
+ return (h("div", { key: '6e7f5e9019ed6184d1981e71a47e056d9c00b92a', part: "trigger", class: "bs-tooltip-trigger", "aria-describedby": this.tooltipId, onMouseEnter: this.show, onMouseLeave: this.hide, onFocusin: this.show, onFocusout: this.hide, onKeyDown: this.onKeyDown }, h("slot", { key: '4ed822a023c8b5f8c74f21f1e4f962e701a89517' }), h("div", { key: '2246032cca29561ded2e48ff26272b88ed4b4a40', part: "tooltip", id: this.tooltipId, class: "bs-tooltip-trigger__tooltip", role: "tooltip", hidden: !show }, h("bs-tooltip", { key: '40347ad8cd72910b16c9bf2cbd5f15c2a1688f0d' }, this.text))));
40
40
  }
41
41
  };
42
42
  BsTooltipTrigger.style = bsTooltipTriggerCss();
@@ -14,7 +14,7 @@ const BsTooltip = class {
14
14
  */
15
15
  placement = 'top';
16
16
  render() {
17
- return (h("div", { key: 'f41f09865c1604e9c6f42d77a007ebef233d3b20', class: "bs-tooltip" }, h("span", { key: 'c963a9ffaedeb05e4b6787509e683f20fbd5d893', part: "arrow", class: "bs-tooltip__arrow" }), h("div", { key: 'ac5c26e3fded66c18cc563b33626645d6049f9e2', part: "bubble", class: "bs-tooltip__bubble" }, h("slot", { key: '662c27547a391756b7d1a98d1154c0e01690e110' }))));
17
+ return (h("div", { key: '4d7f71a8f113cf7d7ddca55936612df27557141f', class: "bs-tooltip" }, h("span", { key: 'e9dcb1f16b34377edbc52f8cbf2bae0c431680e0', part: "arrow", class: "bs-tooltip__arrow" }), h("div", { key: 'c8fe41efa7ea8d43cbec1e832562f67f06eecc19', part: "bubble", class: "bs-tooltip__bubble" }, h("slot", { key: 'cbc53c4425dd8aafa4fb4ebc4381f17bc622222c' }))));
18
18
  }
19
19
  };
20
20
  BsTooltip.style = bsTooltipCss();
@@ -0,0 +1,92 @@
1
+ import { r as registerInstance, c as createEvent, a as getElement, h, H as Host } from './index-D3SkQJpw.js';
2
+
3
+ const bsTreeItemCss = () => `:host{display:block;outline:none;--bs-tree-item-height:var(--bs-spacing-600);--bs-tree-item-indent:40px;--bs-tree-item-radius:var(--bs-border-radius-100);--bs-tree-item-padding-x:var(--bs-spacing-50);--bs-tree-item-caret-gap:var(--bs-spacing-150);--bs-tree-item-content-gap:var(--bs-spacing-100);--bs-tree-item-font-size:var(--bs-font-size-md);--bs-tree-item-line-height:var(--bs-line-height-body-md);--bs-tree-item-text:var(--bs-text-default);--bs-tree-item-icon:var(--bs-icon-default);--bs-tree-item-bg-selected:var(--bs-surface-selected);--bs-tree-item-bg-hover:var(--bs-surface-hover);--bs-tree-item-bg-pressed:var(--bs-surface-pressed);--bs-tree-item-bg-focus:var(--bs-surface-focus);--bs-tree-item-bg-selected-hover:var(--bs-surface-selected-hover);--bs-tree-item-bg-selected-pressed:var(--bs-surface-selected-pressed);--bs-tree-item-bg-selected-focus:var(--bs-surface-selected-focus);--bs-tree-item-focus-ring:var(--bs-border-primary-hover);--bs-tree-item-text-disabled:var(--bs-text-on-disabled);--bs-tree-item-icon-disabled:var(--bs-icon-disabled);color:var(--bs-tree-item-text);font-family:inherit}:host([disabled]){color:var(--bs-tree-item-text-disabled)}.bs-tree-item__row{box-sizing:border-box;width:100%;height:var(--bs-tree-item-height);display:flex;padding-inline-start:calc((var(--bs-tree-item-level, 1) - 1) * var(--bs-tree-item-indent))}.bs-tree-item__container{box-sizing:border-box;flex:1;min-width:0;height:100%;display:flex;align-items:center;gap:var(--bs-tree-item-caret-gap);padding-inline:var(--bs-tree-item-padding-x);border-radius:var(--bs-tree-item-radius);background:transparent;cursor:pointer}.bs-tree-item__container--selected{background:var(--bs-tree-item-bg-selected)}.bs-tree-item__container:not(.bs-tree-item__container--disabled):hover{background:var(--bs-tree-item-bg-hover)}.bs-tree-item__container--selected:not(.bs-tree-item__container--disabled):hover{background:var(--bs-tree-item-bg-selected-hover)}.bs-tree-item__container:not(.bs-tree-item__container--disabled):active{background:var(--bs-tree-item-bg-pressed)}.bs-tree-item__container--selected:not(.bs-tree-item__container--disabled):active{background:var(--bs-tree-item-bg-selected-pressed)}:host(:focus-visible) .bs-tree-item__container{background:var(--bs-tree-item-bg-focus);outline:2px solid var(--bs-tree-item-focus-ring);outline-offset:0}:host(:focus-visible) .bs-tree-item__container--selected{background:var(--bs-tree-item-bg-selected-focus)}.bs-tree-item__container--disabled{cursor:default}.bs-tree-item__caret{display:flex;flex:none;width:24px;height:24px;color:var(--bs-tree-item-icon);transition:transform 150ms ease}.bs-tree-item__caret--open{transform:rotate(90deg)}.bs-tree-item__caret svg,.bs-tree-item__icon svg{width:24px;height:24px}.bs-tree-item__content{display:flex;align-items:center;gap:var(--bs-tree-item-content-gap);min-width:0}.bs-tree-item__icon{display:flex;flex:none;width:24px;height:24px;color:var(--bs-tree-item-icon)}.bs-tree-item__label{min-width:0;font-size:var(--bs-tree-item-font-size);line-height:calc(var(--bs-tree-item-line-height) * 1px);font-weight:var(--bs-font-weight-regular);color:inherit;word-break:break-word}.bs-tree-item__container--disabled .bs-tree-item__caret,.bs-tree-item__container--disabled .bs-tree-item__icon{color:var(--bs-tree-item-icon-disabled)}@media (prefers-reduced-motion: reduce){.bs-tree-item__caret{transition:none}}`;
4
+
5
+ const BsTreeItem = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.bsToggle = createEvent(this, "bsToggle");
9
+ this.bsSelect = createEvent(this, "bsSelect");
10
+ }
11
+ get el() { return getElement(this); }
12
+ /** The row's text. Use the `label` slot for rich content. */
13
+ label = '';
14
+ /** Whether the child items are shown. Only meaningful for parents. Mutable: the caret, the
15
+ * keyboard and the owning tree toggle it. Reflected. */
16
+ expanded = false;
17
+ /** Marks the row as selected. Owned by the tree (single selection, synced with its `value`).
18
+ * Reflected. */
19
+ selected = false;
20
+ /** Disables the row: not focusable, ignores clicks, dimmed. Reflected. */
21
+ disabled = false;
22
+ /** Shows the leading icon (default folder / file, or the `icon` slot). */
23
+ showIcon = true;
24
+ /** Identifier used in events and for the tree's `value`. Falls back to `label` when empty. */
25
+ value = '';
26
+ /** Emitted when the user toggles expansion (caret click or keyboard), with the new `expanded`
27
+ * value. Not emitted when `expanded` is set from code. */
28
+ bsToggle;
29
+ /** Emitted (bubbling, composed) when the user activates the row, with the item's value. The
30
+ * owning `bs-tree` listens and updates the selection. */
31
+ bsSelect;
32
+ level = 1;
33
+ hasChildren = false;
34
+ observer;
35
+ connectedCallback() {
36
+ this.computeLevel();
37
+ this.computeHasChildren();
38
+ this.observer = new MutationObserver(() => this.computeHasChildren());
39
+ this.observer.observe(this.el, { childList: true });
40
+ }
41
+ disconnectedCallback() {
42
+ this.observer?.disconnect();
43
+ }
44
+ computeLevel() {
45
+ let level = 1;
46
+ let p = this.el.parentElement;
47
+ while (p) {
48
+ if (p.tagName === 'BS-TREE-ITEM')
49
+ level++;
50
+ p = p.parentElement;
51
+ }
52
+ this.level = level;
53
+ }
54
+ computeHasChildren() {
55
+ this.hasChildren = Array.from(this.el.children).some(c => c.tagName === 'BS-TREE-ITEM');
56
+ }
57
+ /** Sets `expanded` as a user action: updates the prop and emits `bsToggle`. No-op for leaves,
58
+ * disabled items, or when the value would not change. */
59
+ async setExpanded(next) {
60
+ if (this.disabled || !this.hasChildren || this.expanded === next)
61
+ return;
62
+ this.expanded = next;
63
+ this.bsToggle.emit(next);
64
+ }
65
+ onCaretClick = (e) => {
66
+ e.stopPropagation();
67
+ if (this.disabled)
68
+ return;
69
+ this.setExpanded(!this.expanded);
70
+ };
71
+ onRowClick = () => {
72
+ if (this.disabled)
73
+ return;
74
+ this.bsSelect.emit(this.value || this.label);
75
+ };
76
+ render() {
77
+ const isParent = this.hasChildren;
78
+ const managed = !!this.el.closest('bs-tree');
79
+ const showChildren = isParent && this.expanded;
80
+ return (h(Host, { key: 'ec3feab142de28ddd1e474d1bbb0b338b4350a8c', role: "treeitem", "aria-level": String(this.level), "aria-expanded": isParent ? String(this.expanded) : null, "aria-selected": String(this.selected), "aria-disabled": this.disabled ? 'true' : null, ...(managed || this.disabled ? {} : { tabindex: '0' }) }, h("div", { key: '711521ffa3cd3f46a90ef102d0e552992bcbb495', class: "bs-tree-item__row", style: { '--bs-tree-item-level': String(this.level) } }, h("div", { key: 'd72150c1b891962f1a5228d4e4ee85822bb20b3e', part: "container", class: {
81
+ 'bs-tree-item__container': true,
82
+ 'bs-tree-item__container--selected': this.selected,
83
+ 'bs-tree-item__container--disabled': this.disabled,
84
+ }, onClick: this.onRowClick }, isParent && (h("span", { key: 'f788c92178c2f8ddb4aae5472f0625073b043811', part: "caret", class: { 'bs-tree-item__caret': true, 'bs-tree-item__caret--open': this.expanded }, "aria-hidden": "true", onClick: this.onCaretClick }, h(CaretRightIcon, { key: '18d5ef1a4dd6aa4d1095c9239952171bdbe917c9' }))), h("span", { key: '7f78d1c1fd7e6ac20bb0780c454b47ac09ee9fcb', class: "bs-tree-item__content" }, this.showIcon && (h("span", { key: '98f4d7812c832edb394ac26ba707d12761a45b7e', part: "icon", class: "bs-tree-item__icon", "aria-hidden": "true" }, h("slot", { key: '5a9d10638edf2b1c269c3df5d08f82f5fe2795f6', name: "icon" }, isParent ? h(FolderIcon, null) : h(FileIcon, null)))), h("span", { key: '5e7e2ffbbb9a81b25b6eadf08d4db3e55cbbd919', part: "label", class: "bs-tree-item__label" }, h("slot", { key: 'bd5f92d093ebcc75b0d7f683f0e234e5757c06d0', name: "label" }, this.label))))), showChildren && (h("div", { key: '605a2bfdf479903c96750bd11d2e99044b38bc5c', part: "group", class: "bs-tree-item__group", role: "group" }, h("slot", { key: 'ee652e9cc80780f30eec5f18a9d5a7e27e9f2395' })))));
85
+ }
86
+ };
87
+ const CaretRightIcon = () => (h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M9.75 6L15.75 12L9.75 18", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })));
88
+ const FolderIcon = () => (h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M3.75 6.75C3.75 5.92 4.42 5.25 5.25 5.25H9.4C9.8 5.25 10.18 5.41 10.46 5.69L11.54 6.77C11.82 7.05 12.2 7.21 12.6 7.21H18.75C19.58 7.21 20.25 7.88 20.25 8.71V17.25C20.25 18.08 19.58 18.75 18.75 18.75H5.25C4.42 18.75 3.75 18.08 3.75 17.25V6.75Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linejoin": "round" })));
89
+ const FileIcon = () => (h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, h("path", { d: "M13.5 3.75H7.5C6.67 3.75 6 4.42 6 5.25V18.75C6 19.58 6.67 20.25 7.5 20.25H16.5C17.33 20.25 18 19.58 18 18.75V8.25L13.5 3.75Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linejoin": "round" }), h("path", { d: "M13.5 3.75V8.25H18", stroke: "currentColor", "stroke-width": "1.5", "stroke-linejoin": "round" }), h("path", { d: "M9 12.75H15M9 15.75H15", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round" })));
90
+ BsTreeItem.style = bsTreeItemCss();
91
+
92
+ export { BsTreeItem as bs_tree_item };
@@ -0,0 +1,195 @@
1
+ import { r as registerInstance, c as createEvent, a as getElement, h } from './index-D3SkQJpw.js';
2
+
3
+ const bsTreeCss = () => `:host{display:block}.bs-tree{display:block;width:100%}`;
4
+
5
+ const BsTree = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.bsChange = createEvent(this, "bsChange");
9
+ }
10
+ get el() { return getElement(this); }
11
+ /** Accessible name of the tree. Bound onto the internal `role="tree"` element (an `aria-label`
12
+ * on the host would not reach it). */
13
+ ariaLabel = null;
14
+ /** The `value` (or, when empty, the `label`) of the selected item. Two-way synced with each
15
+ * item's `selected` (single selection). Setting it from code does not emit `bsChange`. */
16
+ value = '';
17
+ /** When `false`, rows do not select (clicks and Enter/Space do nothing) but parents still
18
+ * expand and collapse. */
19
+ selectable = true;
20
+ /** Emitted when the user changes the selection (click, Enter/Space), with the new value. Not
21
+ * emitted when `value` is set from code. */
22
+ bsChange;
23
+ observer;
24
+ connectedCallback() {
25
+ this.observer = new MutationObserver(() => this.refresh());
26
+ this.observer.observe(this.el, {
27
+ childList: true,
28
+ subtree: true,
29
+ attributes: true,
30
+ attributeFilter: ['expanded', 'disabled'],
31
+ });
32
+ }
33
+ disconnectedCallback() {
34
+ this.observer?.disconnect();
35
+ }
36
+ componentDidLoad() {
37
+ if (!this.value) {
38
+ const preselected = this.items().find(i => i.selected || i.hasAttribute('selected'));
39
+ if (preselected)
40
+ this.value = this.keyOf(preselected);
41
+ }
42
+ this.syncSelection();
43
+ this.refresh();
44
+ }
45
+ onValueChange() {
46
+ this.syncSelection();
47
+ this.refresh();
48
+ }
49
+ /** Expands every parent item. */
50
+ async expandAll() {
51
+ this.items().forEach(i => (i.expanded = true));
52
+ }
53
+ /** Collapses every parent item. */
54
+ async collapseAll() {
55
+ this.items().forEach(i => (i.expanded = false));
56
+ }
57
+ items() {
58
+ return Array.from(this.el.querySelectorAll('bs-tree-item'));
59
+ }
60
+ keyOf(item) {
61
+ return item.value || item.label;
62
+ }
63
+ isParent(item) {
64
+ return Array.from(item.children).some(c => c.tagName === 'BS-TREE-ITEM');
65
+ }
66
+ isRendered(item) {
67
+ let p = item.parentElement;
68
+ while (p && p !== this.el) {
69
+ if (p.tagName === 'BS-TREE-ITEM' && !p.expanded)
70
+ return false;
71
+ p = p.parentElement;
72
+ }
73
+ return true;
74
+ }
75
+ navigable() {
76
+ return this.items().filter(i => !i.disabled && this.isRendered(i));
77
+ }
78
+ syncSelection() {
79
+ let found = false;
80
+ this.items().forEach(i => {
81
+ const sel = !!this.value && !found && this.keyOf(i) === this.value;
82
+ if (sel)
83
+ found = true;
84
+ if (i.selected !== sel)
85
+ i.selected = sel;
86
+ });
87
+ }
88
+ /** Roving tabindex: one tabbable item (selected if navigable, else the first). */
89
+ refresh(preferred) {
90
+ const nav = this.navigable();
91
+ const target = preferred && nav.includes(preferred) ? preferred : nav.find(i => i.selected) ?? nav[0];
92
+ this.items().forEach(i => {
93
+ if (i.disabled)
94
+ i.removeAttribute('tabindex');
95
+ else
96
+ i.setAttribute('tabindex', i === target ? '0' : '-1');
97
+ });
98
+ }
99
+ focusItem(item) {
100
+ if (!item)
101
+ return;
102
+ this.refresh(item);
103
+ item.focus();
104
+ }
105
+ select(item) {
106
+ if (!this.selectable || item.disabled)
107
+ return;
108
+ const key = this.keyOf(item);
109
+ if (key === this.value)
110
+ return;
111
+ this.value = key;
112
+ this.syncSelection();
113
+ this.refresh(item);
114
+ this.bsChange.emit(key);
115
+ }
116
+ onItemSelect(e) {
117
+ const item = e.target.closest('bs-tree-item');
118
+ if (item)
119
+ this.select(item);
120
+ }
121
+ onFocusIn(e) {
122
+ const item = e.target.closest?.('bs-tree-item');
123
+ if (item && !item.disabled && e.target === item)
124
+ this.refresh(item);
125
+ }
126
+ onKeyDown(e) {
127
+ const item = e.target.closest?.('bs-tree-item');
128
+ if (!item || e.target !== item || e.altKey || e.ctrlKey || e.metaKey)
129
+ return;
130
+ const nav = this.navigable();
131
+ const idx = nav.indexOf(item);
132
+ const rtl = getComputedStyle(this.el).direction === 'rtl';
133
+ let key = e.key;
134
+ if (rtl && key === 'ArrowRight')
135
+ key = 'ArrowLeft';
136
+ else if (rtl && key === 'ArrowLeft')
137
+ key = 'ArrowRight';
138
+ const parent = this.isParent(item);
139
+ switch (key) {
140
+ case 'ArrowDown':
141
+ this.focusItem(nav[idx + 1]);
142
+ break;
143
+ case 'ArrowUp':
144
+ if (idx > 0)
145
+ this.focusItem(nav[idx - 1]);
146
+ break;
147
+ case 'Home':
148
+ this.focusItem(nav[0]);
149
+ break;
150
+ case 'End':
151
+ this.focusItem(nav[nav.length - 1]);
152
+ break;
153
+ case 'ArrowRight':
154
+ if (!parent)
155
+ return;
156
+ if (!item.expanded)
157
+ item.setExpanded(true);
158
+ else
159
+ this.focusItem(nav.find(i => i.parentElement === item));
160
+ break;
161
+ case 'ArrowLeft':
162
+ if (parent && item.expanded)
163
+ item.setExpanded(false);
164
+ else {
165
+ const up = item.parentElement;
166
+ if (up && up.tagName === 'BS-TREE-ITEM' && !up.disabled)
167
+ this.focusItem(up);
168
+ }
169
+ break;
170
+ case 'Enter':
171
+ case ' ':
172
+ this.select(item);
173
+ break;
174
+ case '*':
175
+ Array.from(item.parentElement.children)
176
+ .filter((c) => c.tagName === 'BS-TREE-ITEM')
177
+ .forEach(sib => sib.setExpanded(true));
178
+ break;
179
+ default:
180
+ return;
181
+ }
182
+ e.preventDefault();
183
+ }
184
+ render() {
185
+ return (h("div", { key: 'fb73a8063a6a5b82df89fe43fe8e2101f676ef1b', part: "container", class: "bs-tree", role: "tree", "aria-label": this.ariaLabel }, h("slot", { key: 'b72a24a057489b00bfc0966ff98328a174f54a14' })));
186
+ }
187
+ static get watchers() { return {
188
+ "value": [{
189
+ "onValueChange": 0
190
+ }]
191
+ }; }
192
+ };
193
+ BsTree.style = bsTreeCss();
194
+
195
+ export { BsTree as bs_tree };