@bk2k/ui 0.6.8 → 0.7.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 (503) hide show
  1. package/BUILDING.md +56 -2
  2. package/CHANGELOG.md +199 -0
  3. package/USAGE.md +102 -28
  4. package/custom-elements.json +1 -1
  5. package/dist/charts/chart-tokens.js +1 -1
  6. package/dist/charts/fields.d.ts +20 -0
  7. package/dist/charts/fields.js +27 -0
  8. package/dist/charts/frame.d.ts +2 -0
  9. package/dist/charts/frame.js +2 -1
  10. package/dist/clipboard.js +1 -0
  11. package/dist/components/bk-alert.js +3 -2
  12. package/dist/components/bk-avatar-group.js +4 -6
  13. package/dist/components/bk-avatar.d.ts +10 -0
  14. package/dist/components/bk-avatar.js +17 -0
  15. package/dist/components/bk-bar.js +2 -0
  16. package/dist/components/bk-button-group.js +1 -1
  17. package/dist/components/bk-button-top.js +2 -1
  18. package/dist/components/bk-button.d.ts +42 -14
  19. package/dist/components/bk-button.js +67 -20
  20. package/dist/components/bk-card.d.ts +7 -0
  21. package/dist/components/bk-card.js +21 -2
  22. package/dist/components/bk-carousel-controls.d.ts +2 -0
  23. package/dist/components/bk-carousel-controls.js +4 -2
  24. package/dist/components/bk-chart-area.d.ts +10 -0
  25. package/dist/components/bk-chart-bar.d.ts +17 -0
  26. package/dist/components/bk-chart-bar.js +25 -4
  27. package/dist/components/bk-chart-line.d.ts +28 -0
  28. package/dist/components/bk-chart-line.js +27 -7
  29. package/dist/components/bk-chip-group.d.ts +2 -2
  30. package/dist/components/bk-chip-group.js +4 -0
  31. package/dist/components/bk-chip.d.ts +55 -8
  32. package/dist/components/bk-chip.js +46 -8
  33. package/dist/components/bk-code.js +6 -2
  34. package/dist/components/bk-columns.d.ts +11 -0
  35. package/dist/components/bk-columns.js +8 -1
  36. package/dist/components/bk-combobox.d.ts +3 -3
  37. package/dist/components/bk-combobox.js +9 -21
  38. package/dist/components/bk-delta.d.ts +10 -0
  39. package/dist/components/bk-delta.js +8 -6
  40. package/dist/components/bk-dialog.d.ts +12 -5
  41. package/dist/components/bk-dialog.js +14 -6
  42. package/dist/components/bk-disclosure.js +4 -2
  43. package/dist/components/bk-drop-target.d.ts +7 -1
  44. package/dist/components/bk-drop-target.js +20 -4
  45. package/dist/components/bk-error-summary.d.ts +5 -0
  46. package/dist/components/bk-error-summary.js +13 -4
  47. package/dist/components/bk-facts.js +3 -2
  48. package/dist/components/bk-footnote.d.ts +73 -0
  49. package/dist/components/bk-footnote.js +97 -0
  50. package/dist/components/bk-footnotes-item.d.ts +92 -0
  51. package/dist/components/bk-footnotes-item.js +139 -0
  52. package/dist/components/bk-footnotes.d.ts +51 -0
  53. package/dist/components/bk-footnotes.js +43 -0
  54. package/dist/components/bk-icon.js +2 -2
  55. package/dist/components/bk-image-compare.d.ts +69 -6
  56. package/dist/components/bk-image-compare.js +116 -32
  57. package/dist/components/bk-image-crop.d.ts +3 -3
  58. package/dist/components/bk-image-editor.d.ts +1 -1
  59. package/dist/components/bk-image-viewer.d.ts +178 -11
  60. package/dist/components/bk-image-viewer.js +310 -52
  61. package/dist/components/bk-input-color.d.ts +2 -5
  62. package/dist/components/bk-input-color.js +0 -14
  63. package/dist/components/bk-input-file.d.ts +17 -0
  64. package/dist/components/bk-input-file.js +18 -8
  65. package/dist/components/bk-input-inline.d.ts +15 -6
  66. package/dist/components/bk-input-inline.js +22 -6
  67. package/dist/components/bk-input-number.js +2 -1
  68. package/dist/components/bk-input-search.d.ts +1 -1
  69. package/dist/components/bk-input-search.js +2 -1
  70. package/dist/components/bk-input-tags.d.ts +219 -0
  71. package/dist/components/bk-input-tags.js +293 -0
  72. package/dist/components/bk-input-text.d.ts +20 -0
  73. package/dist/components/bk-input-text.js +34 -4
  74. package/dist/components/bk-input-time.js +2 -1
  75. package/dist/components/bk-item.js +2 -1
  76. package/dist/components/bk-lightbox.d.ts +37 -4
  77. package/dist/components/bk-lightbox.js +13 -3
  78. package/dist/components/bk-link.d.ts +9 -1
  79. package/dist/components/bk-link.js +14 -4
  80. package/dist/components/bk-menu-item.d.ts +40 -0
  81. package/dist/components/bk-menu-item.js +57 -9
  82. package/dist/components/bk-menu-label.js +2 -1
  83. package/dist/components/bk-menu-list.d.ts +1 -0
  84. package/dist/components/bk-menu-list.js +10 -0
  85. package/dist/components/bk-menu.d.ts +8 -1
  86. package/dist/components/bk-menu.js +16 -5
  87. package/dist/components/bk-message-feedback.d.ts +4 -3
  88. package/dist/components/bk-message-feedback.js +7 -5
  89. package/dist/components/bk-message-list.js +2 -1
  90. package/dist/components/bk-message-source.d.ts +1 -2
  91. package/dist/components/bk-message-source.js +3 -11
  92. package/dist/components/bk-message.js +2 -0
  93. package/dist/components/bk-nav-group.js +1 -1
  94. package/dist/components/bk-nav-item.d.ts +18 -0
  95. package/dist/components/bk-nav-item.js +18 -5
  96. package/dist/components/bk-nav.d.ts +1 -1
  97. package/dist/components/bk-page-cta.d.ts +2 -0
  98. package/dist/components/bk-page-cta.js +10 -1
  99. package/dist/components/bk-page-section.d.ts +1 -1
  100. package/dist/components/bk-page-section.js +3 -9
  101. package/dist/components/bk-pane.d.ts +1 -0
  102. package/dist/components/bk-pane.js +7 -5
  103. package/dist/components/bk-panel.d.ts +1 -1
  104. package/dist/components/bk-panel.js +6 -5
  105. package/dist/components/bk-picture.d.ts +17 -4
  106. package/dist/components/bk-picture.js +8 -1
  107. package/dist/components/bk-segmented-item.d.ts +24 -4
  108. package/dist/components/bk-segmented-item.js +37 -5
  109. package/dist/components/bk-segmented.js +2 -13
  110. package/dist/components/bk-select-cascade.d.ts +1 -1
  111. package/dist/components/bk-select-tree.d.ts +1 -1
  112. package/dist/components/bk-select.d.ts +1 -1
  113. package/dist/components/bk-shell-app.d.ts +10 -4
  114. package/dist/components/bk-shell-app.js +32 -9
  115. package/dist/components/bk-shell-sites.d.ts +2 -1
  116. package/dist/components/bk-shell-sites.js +3 -5
  117. package/dist/components/bk-sortable.js +7 -17
  118. package/dist/components/bk-split-grid.d.ts +104 -3
  119. package/dist/components/bk-split-grid.js +430 -2
  120. package/dist/components/bk-stat-group.js +2 -1
  121. package/dist/components/bk-stat.d.ts +19 -0
  122. package/dist/components/bk-stat.js +8 -4
  123. package/dist/components/bk-steps.js +2 -1
  124. package/dist/components/bk-surface.d.ts +2 -0
  125. package/dist/components/bk-surface.js +6 -3
  126. package/dist/components/bk-table.d.ts +3 -1
  127. package/dist/components/bk-table.js +10 -13
  128. package/dist/components/bk-tabs-item.d.ts +45 -7
  129. package/dist/components/bk-tabs-item.js +51 -20
  130. package/dist/components/bk-tabs-panel.d.ts +6 -3
  131. package/dist/components/bk-tabs-panel.js +6 -0
  132. package/dist/components/bk-tabs.d.ts +52 -8
  133. package/dist/components/bk-tabs.js +181 -97
  134. package/dist/components/bk-text.js +2 -1
  135. package/dist/components/bk-toast-group.d.ts +3 -1
  136. package/dist/components/bk-toast-group.js +11 -1
  137. package/dist/components/bk-tooltip.d.ts +3 -1
  138. package/dist/components/bk-tooltip.js +2 -1
  139. package/dist/components/bk-video.js +2 -2
  140. package/dist/components/bk-zoom.d.ts +3 -1
  141. package/dist/components/confirm.d.ts +15 -0
  142. package/dist/components/confirm.js +27 -4
  143. package/dist/i18n/de.js +12 -1
  144. package/dist/i18n/en.d.ts +2 -0
  145. package/dist/i18n/en.js +3 -0
  146. package/dist/i18n.d.ts +16 -2
  147. package/dist/i18n.js +28 -4
  148. package/dist/icons/brands-static.d.ts +3 -0
  149. package/dist/icons/brands-static.js +5 -0
  150. package/dist/icons/core.d.ts +1 -0
  151. package/dist/icons/core.js +2 -0
  152. package/dist/icons/load-static.d.ts +3 -0
  153. package/dist/icons/load-static.js +5 -0
  154. package/dist/icons/load.js +1 -0
  155. package/dist/icons/registry.js +1 -1
  156. package/dist/icons/set/save-as.d.ts +3 -0
  157. package/dist/icons/set/save-as.js +7 -0
  158. package/dist/index.d.ts +4 -0
  159. package/dist/index.js +4 -0
  160. package/dist/internal/announcer.d.ts +14 -1
  161. package/dist/internal/announcer.js +33 -12
  162. package/dist/internal/backdrop.d.ts +19 -0
  163. package/dist/internal/backdrop.js +29 -0
  164. package/dist/internal/busy.d.ts +3 -2
  165. package/dist/internal/busy.js +4 -5
  166. package/dist/internal/choice-field.js +1 -1
  167. package/dist/internal/choice-item.d.ts +17 -6
  168. package/dist/internal/choice-item.js +20 -9
  169. package/dist/internal/cloak.js +4 -0
  170. package/dist/internal/crop-frame.d.ts +1 -1
  171. package/dist/internal/crop-frame.js +2 -7
  172. package/dist/internal/date-field.js +2 -1
  173. package/dist/internal/define.d.ts +9 -0
  174. package/dist/internal/define.js +47 -1
  175. package/dist/internal/drag.d.ts +11 -0
  176. package/dist/internal/drag.js +23 -0
  177. package/dist/internal/elements.d.ts +6 -0
  178. package/dist/internal/elements.js +5 -0
  179. package/dist/internal/english-static.d.ts +3 -0
  180. package/dist/internal/english-static.js +5 -0
  181. package/dist/internal/english.d.ts +8 -0
  182. package/dist/internal/english.js +6 -0
  183. package/dist/internal/footnotes.d.ts +56 -0
  184. package/dist/internal/footnotes.js +143 -0
  185. package/dist/internal/handle-menu.js +2 -5
  186. package/dist/internal/hue.d.ts +8 -0
  187. package/dist/internal/hue.js +15 -4
  188. package/dist/internal/late/bk-shell-app.d.ts +4 -0
  189. package/dist/internal/late/bk-shell-app.js +7 -0
  190. package/dist/internal/late/bk-table.d.ts +4 -0
  191. package/dist/internal/late/bk-table.js +17 -0
  192. package/dist/internal/late/bk-tabs.d.ts +4 -0
  193. package/dist/internal/late/bk-tabs.js +8 -0
  194. package/dist/internal/late/handle-menu.d.ts +4 -0
  195. package/dist/internal/late/handle-menu.js +9 -0
  196. package/dist/internal/late/static.d.ts +7 -0
  197. package/dist/internal/late/static.js +5 -0
  198. package/dist/internal/late.d.ts +8 -3
  199. package/dist/internal/late.js +19 -4
  200. package/dist/internal/link.d.ts +2 -0
  201. package/dist/internal/link.js +11 -1
  202. package/dist/internal/own-text.d.ts +8 -0
  203. package/dist/internal/own-text.js +7 -0
  204. package/dist/internal/scope.js +1 -1
  205. package/dist/internal/scroll-lock.d.ts +4 -1
  206. package/dist/internal/scroll-lock.js +17 -4
  207. package/dist/internal/slider.js +2 -1
  208. package/dist/internal/styles.js +3 -0
  209. package/dist/internal/submit.d.ts +23 -0
  210. package/dist/internal/submit.js +57 -0
  211. package/dist/internal/tags.d.ts +15 -0
  212. package/dist/internal/tags.js +44 -0
  213. package/dist/internal/text-field.d.ts +2 -0
  214. package/dist/internal/text-field.js +8 -0
  215. package/dist/internal/toggle-control.js +3 -1
  216. package/dist/jsx.d.ts +222 -54
  217. package/dist/kit.d.ts +1 -0
  218. package/dist/kit.js +3 -0
  219. package/dist/reset.css +10 -0
  220. package/dist/standalone/all.js +226 -221
  221. package/dist/standalone/appearance.js +1 -1
  222. package/dist/standalone/bk-accordion-item.js +4 -4
  223. package/dist/standalone/bk-accordion.js +2 -2
  224. package/dist/standalone/bk-action-bar.js +3 -3
  225. package/dist/standalone/bk-alert-offline.js +1 -2
  226. package/dist/standalone/bk-alert.js +17 -13
  227. package/dist/standalone/bk-app-state.js +1 -1
  228. package/dist/standalone/bk-attachment.js +4 -4
  229. package/dist/standalone/bk-avatar-group.js +12 -10
  230. package/dist/standalone/bk-avatar.js +15 -5
  231. package/dist/standalone/bk-badge.js +2 -2
  232. package/dist/standalone/bk-bar.js +3 -1
  233. package/dist/standalone/bk-brand.js +3 -3
  234. package/dist/standalone/bk-breadcrumbs.js +5 -5
  235. package/dist/standalone/bk-button-copy.js +7 -7
  236. package/dist/standalone/bk-button-group.js +5 -5
  237. package/dist/standalone/bk-button-share.js +7 -7
  238. package/dist/standalone/bk-button-top.js +9 -8
  239. package/dist/standalone/bk-button.js +74 -34
  240. package/dist/standalone/bk-calendar-event.js +1 -1
  241. package/dist/standalone/bk-calendar-week.js +3 -3
  242. package/dist/standalone/bk-calendar.js +4 -4
  243. package/dist/standalone/bk-card.js +26 -7
  244. package/dist/standalone/bk-carousel-controls.js +7 -6
  245. package/dist/standalone/bk-carousel-item.js +2 -2
  246. package/dist/standalone/bk-carousel.js +1 -1
  247. package/dist/standalone/bk-chart-area.js +1 -1
  248. package/dist/standalone/bk-chart-bar-list.js +8 -8
  249. package/dist/standalone/bk-chart-bar.js +145 -117
  250. package/dist/standalone/bk-chart-bridge.js +7 -7
  251. package/dist/standalone/bk-chart-bullet.js +6 -6
  252. package/dist/standalone/bk-chart-calendar.js +7 -7
  253. package/dist/standalone/bk-chart-heatmap.js +7 -7
  254. package/dist/standalone/bk-chart-histogram.js +5 -5
  255. package/dist/standalone/bk-chart-legend.js +6 -6
  256. package/dist/standalone/bk-chart-line.js +128 -107
  257. package/dist/standalone/bk-chart-mark.js +1 -1
  258. package/dist/standalone/bk-chart-scatter.js +6 -6
  259. package/dist/standalone/bk-chart-sparkline.js +6 -6
  260. package/dist/standalone/bk-chart-stacked-bar.js +7 -7
  261. package/dist/standalone/bk-chart-tracker.js +6 -6
  262. package/dist/standalone/bk-chart-waterfall.js +6 -6
  263. package/dist/standalone/bk-checkbox-group.js +7 -7
  264. package/dist/standalone/bk-checkbox.js +4 -4
  265. package/dist/standalone/bk-chip-group.js +11 -7
  266. package/dist/standalone/bk-chip.js +59 -18
  267. package/dist/standalone/bk-cluster.js +1 -1
  268. package/dist/standalone/bk-code-diff.js +4 -4
  269. package/dist/standalone/bk-code-stack.js +4 -4
  270. package/dist/standalone/bk-code.js +10 -6
  271. package/dist/standalone/bk-color-panel.js +5 -5
  272. package/dist/standalone/bk-columns.js +13 -5
  273. package/dist/standalone/bk-combobox.js +23 -31
  274. package/dist/standalone/bk-command-menu.js +6 -6
  275. package/dist/standalone/bk-command-palette.js +8 -7
  276. package/dist/standalone/bk-composer.js +6 -6
  277. package/dist/standalone/bk-delta.js +11 -10
  278. package/dist/standalone/bk-diagram.js +1 -1
  279. package/dist/standalone/bk-dialog.js +1 -1
  280. package/dist/standalone/bk-disclosure.js +7 -5
  281. package/dist/standalone/bk-divider.js +5 -5
  282. package/dist/standalone/bk-drawer.js +3 -3
  283. package/dist/standalone/bk-drop-target.js +12 -6
  284. package/dist/standalone/bk-empty-state.js +3 -3
  285. package/dist/standalone/bk-error-summary.js +9 -6
  286. package/dist/standalone/bk-facts-item.js +2 -2
  287. package/dist/standalone/bk-facts.js +9 -8
  288. package/dist/standalone/bk-feature.js +3 -3
  289. package/dist/standalone/bk-fieldset.js +3 -3
  290. package/dist/standalone/bk-filter-bar.js +4 -4
  291. package/dist/standalone/bk-folder-browser.js +4 -4
  292. package/dist/standalone/bk-footnote.js +82 -0
  293. package/dist/standalone/bk-footnotes-item.js +122 -0
  294. package/dist/standalone/bk-footnotes.js +37 -0
  295. package/dist/standalone/bk-form-guard.js +2 -2
  296. package/dist/standalone/bk-form-steps.js +3 -3
  297. package/dist/standalone/bk-grid.js +1 -1
  298. package/dist/standalone/bk-icon-tile.js +3 -3
  299. package/dist/standalone/bk-icon.js +1 -1
  300. package/dist/standalone/bk-image-compare.js +127 -58
  301. package/dist/standalone/bk-image-crop.js +6 -6
  302. package/dist/standalone/bk-image-editor.js +1 -1
  303. package/dist/standalone/bk-image-viewer.js +283 -92
  304. package/dist/standalone/bk-input-code.js +4 -4
  305. package/dist/standalone/bk-input-color.js +4 -14
  306. package/dist/standalone/bk-input-date-range.js +2 -2
  307. package/dist/standalone/bk-input-date.js +2 -2
  308. package/dist/standalone/bk-input-file.js +22 -15
  309. package/dist/standalone/bk-input-group.js +4 -4
  310. package/dist/standalone/bk-input-inline.js +17 -10
  311. package/dist/standalone/bk-input-number.js +9 -8
  312. package/dist/standalone/bk-input-rating.js +6 -6
  313. package/dist/standalone/bk-input-rich.js +1 -1
  314. package/dist/standalone/bk-input-search.js +23 -22
  315. package/dist/standalone/bk-input-slider-range.js +5 -5
  316. package/dist/standalone/bk-input-slider.js +5 -5
  317. package/dist/standalone/bk-input-tags.js +224 -0
  318. package/dist/standalone/bk-input-text.js +1 -1
  319. package/dist/standalone/bk-input-time-zone.js +1 -1
  320. package/dist/standalone/bk-input-time.js +29 -28
  321. package/dist/standalone/bk-item-group.js +3 -3
  322. package/dist/standalone/bk-item.js +12 -11
  323. package/dist/standalone/bk-kbd-shortcuts.js +4 -3
  324. package/dist/standalone/bk-kbd.js +68 -1
  325. package/dist/standalone/bk-lightbox.js +24 -7
  326. package/dist/standalone/bk-lines.js +1 -1
  327. package/dist/standalone/bk-link.js +33 -19
  328. package/dist/standalone/bk-listbox-columns.js +8 -8
  329. package/dist/standalone/bk-listbox-item.js +1 -1
  330. package/dist/standalone/bk-listbox-search.js +7 -7
  331. package/dist/standalone/bk-listbox-transfer.js +6 -6
  332. package/dist/standalone/bk-listbox.js +7 -7
  333. package/dist/standalone/bk-logo-wall.js +2 -2
  334. package/dist/standalone/bk-logo.js +4 -4
  335. package/dist/standalone/bk-menu-bar.js +3 -3
  336. package/dist/standalone/bk-menu-context.js +1 -1
  337. package/dist/standalone/bk-menu-divider.js +2 -2
  338. package/dist/standalone/bk-menu-item.js +73 -29
  339. package/dist/standalone/bk-menu-label.js +7 -6
  340. package/dist/standalone/bk-menu-list.js +10 -4
  341. package/dist/standalone/bk-menu.js +19 -10
  342. package/dist/standalone/bk-message-approval.js +4 -4
  343. package/dist/standalone/bk-message-branches.js +3 -3
  344. package/dist/standalone/bk-message-citation.js +10 -10
  345. package/dist/standalone/bk-message-feedback.js +10 -6
  346. package/dist/standalone/bk-message-list.js +6 -5
  347. package/dist/standalone/bk-message-reasoning.js +5 -5
  348. package/dist/standalone/bk-message-source.js +13 -21
  349. package/dist/standalone/bk-message-tool-group.js +5 -5
  350. package/dist/standalone/bk-message-tool.js +5 -5
  351. package/dist/standalone/bk-message.js +6 -4
  352. package/dist/standalone/bk-meter.js +3 -3
  353. package/dist/standalone/bk-model-viewer.js +1 -1
  354. package/dist/standalone/bk-nav-divider.js +2 -2
  355. package/dist/standalone/bk-nav-group.js +9 -9
  356. package/dist/standalone/bk-nav-item.js +31 -23
  357. package/dist/standalone/bk-nav-toc.js +3 -3
  358. package/dist/standalone/bk-nav.js +3 -3
  359. package/dist/standalone/bk-overflow.js +3 -3
  360. package/dist/standalone/bk-page-cta.js +13 -4
  361. package/dist/standalone/bk-page-footer-column.js +2 -2
  362. package/dist/standalone/bk-page-footer.js +3 -3
  363. package/dist/standalone/bk-page-header.js +3 -3
  364. package/dist/standalone/bk-page-hero.js +3 -3
  365. package/dist/standalone/bk-page-pager.js +5 -5
  366. package/dist/standalone/bk-page-section.js +6 -6
  367. package/dist/standalone/bk-pagination.js +6 -6
  368. package/dist/standalone/bk-pane.js +10 -9
  369. package/dist/standalone/bk-panel.js +9 -10
  370. package/dist/standalone/bk-period-nav.js +4 -4
  371. package/dist/standalone/bk-picture.js +1 -166
  372. package/dist/standalone/bk-popover-help.js +3 -3
  373. package/dist/standalone/bk-popover.js +2 -2
  374. package/dist/standalone/bk-presence-cursor.js +3 -3
  375. package/dist/standalone/bk-preview.js +4 -4
  376. package/dist/standalone/bk-progress.js +3 -3
  377. package/dist/standalone/bk-prose.js +3 -3
  378. package/dist/standalone/bk-qr-code.js +1 -1
  379. package/dist/standalone/bk-radio-group.js +7 -7
  380. package/dist/standalone/bk-radio.js +3 -3
  381. package/dist/standalone/bk-rating.js +5 -5
  382. package/dist/standalone/bk-scroll.js +3 -3
  383. package/dist/standalone/bk-segmented-item.js +40 -16
  384. package/dist/standalone/bk-segmented.js +17 -15
  385. package/dist/standalone/bk-select-cascade.js +3 -3
  386. package/dist/standalone/bk-select-tree.js +4 -4
  387. package/dist/standalone/bk-select.js +5 -5
  388. package/dist/standalone/bk-shell-app.js +1 -1221
  389. package/dist/standalone/bk-shell-centered.js +2 -2
  390. package/dist/standalone/bk-shell-sites.js +5 -7
  391. package/dist/standalone/bk-skeleton.js +2 -2
  392. package/dist/standalone/bk-sortable.js +55 -60
  393. package/dist/standalone/bk-spinner.js +2 -2
  394. package/dist/standalone/bk-split-grid.js +324 -44
  395. package/dist/standalone/bk-split.js +8 -8
  396. package/dist/standalone/bk-stack.js +1 -1
  397. package/dist/standalone/bk-stat-group.js +8 -7
  398. package/dist/standalone/bk-stat.js +12 -9
  399. package/dist/standalone/bk-status-dot.js +3 -3
  400. package/dist/standalone/bk-steps-item.js +5 -5
  401. package/dist/standalone/bk-steps.js +8 -7
  402. package/dist/standalone/bk-surface.js +1 -1
  403. package/dist/standalone/bk-swatch-group.js +8 -8
  404. package/dist/standalone/bk-swatch-palette.js +1 -1
  405. package/dist/standalone/bk-swatch.js +2 -2
  406. package/dist/standalone/bk-switch.js +4 -4
  407. package/dist/standalone/bk-table.js +1 -1937
  408. package/dist/standalone/bk-tabs-item.js +58 -35
  409. package/dist/standalone/bk-tabs-panel.js +7 -3
  410. package/dist/standalone/bk-tabs.js +3 -352
  411. package/dist/standalone/bk-tasks-item.js +4 -4
  412. package/dist/standalone/bk-tasks.js +2 -2
  413. package/dist/standalone/bk-testimonial.js +3 -3
  414. package/dist/standalone/bk-text.js +21 -20
  415. package/dist/standalone/bk-time-countdown.js +4 -4
  416. package/dist/standalone/bk-time-relative.js +3 -3
  417. package/dist/standalone/bk-timeline-item.js +4 -4
  418. package/dist/standalone/bk-timeline.js +2 -2
  419. package/dist/standalone/bk-toast-group.js +1 -1
  420. package/dist/standalone/bk-toast.js +4 -4
  421. package/dist/standalone/bk-toolbar.js +2 -2
  422. package/dist/standalone/bk-tooltip.js +8 -7
  423. package/dist/standalone/bk-tree-item.js +6 -6
  424. package/dist/standalone/bk-tree.js +5 -5
  425. package/dist/standalone/bk-video.js +6 -6
  426. package/dist/standalone/bk-visually-hidden.js +2 -2
  427. package/dist/standalone/bk-zoom.js +5 -5
  428. package/dist/standalone/chunks/announcer-6tMlCOq1.js +41 -0
  429. package/dist/standalone/chunks/{appearance-waHnV0kk.js → appearance-CBOJXbmC.js} +1 -1
  430. package/dist/standalone/chunks/{bk-alert-offline-B1bQxOZp.js → bk-alert-offline-hCLuG-RM.js} +3 -3
  431. package/dist/standalone/chunks/{bk-carousel-BCwIQhG5.js → bk-carousel-_dudBMVq.js} +4 -4
  432. package/dist/standalone/chunks/{bk-diagram-DWK8CvRZ.js → bk-diagram-BB2odomE.js} +5 -5
  433. package/dist/standalone/chunks/{bk-dialog-DX0cPJ1o.js → bk-dialog-DcvwnOtN.js} +59 -25
  434. package/dist/standalone/chunks/{bk-icon-DssFsNuB.js → bk-icon-D4kI4F18.js} +4 -3
  435. package/dist/standalone/chunks/{bk-image-editor-DXEj9gCu.js → bk-image-editor-SRVkHI-4.js} +5 -5
  436. package/dist/standalone/chunks/{bk-input-date-range-Cbx_lpf0.js → bk-input-date-range-C0Vd-p0T.js} +2 -2
  437. package/dist/standalone/chunks/{bk-input-rich-ZB68vziu.js → bk-input-rich-AmDv87E5.js} +6 -6
  438. package/dist/standalone/chunks/{bk-input-text-DD32uWNO.js → bk-input-text-2n89GDIT.js} +73 -54
  439. package/dist/standalone/chunks/{bk-model-viewer-Dr81ahVv.js → bk-model-viewer-BoNYBd6W.js} +4 -4
  440. package/dist/standalone/chunks/bk-picture-CA5gLxgZ.js +186 -0
  441. package/dist/standalone/chunks/{bk-qr-code-QaYvZwOR.js → bk-qr-code-CSFfc8As.js} +3 -3
  442. package/dist/standalone/chunks/bk-shell-app-BlCOG25y.js +1236 -0
  443. package/dist/standalone/chunks/{bk-surface-DkIhrWMt.js → bk-surface-BULRdKam.js} +9 -7
  444. package/dist/standalone/chunks/{bk-swatch-palette-BNNXTP3w.js → bk-swatch-palette-Cqj85tSW.js} +6 -6
  445. package/dist/standalone/chunks/bk-table-DWlD7yoM.js +1945 -0
  446. package/dist/standalone/chunks/bk-tabs-STkr3-E1.js +422 -0
  447. package/dist/standalone/chunks/{bk-toast-group-BSeO_rPs.js → bk-toast-group-5nZg7BaJ.js} +27 -24
  448. package/dist/standalone/chunks/{brush-Bn3lPdHN.js → brush-DALmXSru.js} +18 -2
  449. package/dist/standalone/chunks/{busy-B7Mxemwm.js → busy-eG3uHonz.js} +5 -4
  450. package/dist/standalone/chunks/{chart-tokens-D1Exf7BW.js → chart-tokens-DQ4hVSmn.js} +2 -2
  451. package/dist/standalone/chunks/{choice-field-CGvE4tyb.js → choice-field-B0oe_9fI.js} +6 -6
  452. package/dist/standalone/chunks/{choice-item-B6-9ZRlf.js → choice-item-Cx-nm1js.js} +17 -8
  453. package/dist/standalone/chunks/{clipboard-Crzt1Sh9.js → clipboard-RqIeP9Uz.js} +1 -1
  454. package/dist/standalone/chunks/{clipboard-BKlrP5rj.js → clipboard-UVLSkL4C.js} +1 -1
  455. package/dist/standalone/chunks/{crop-frame-poLCGrBG.js → crop-frame-Z9N0QML4.js} +1 -11
  456. package/dist/standalone/chunks/{date-field-BlI6grfT.js → date-field-Dy1_qxNv.js} +48 -47
  457. package/dist/standalone/chunks/define-6OfuRn5c.js +60 -0
  458. package/dist/standalone/chunks/drag-DT4__0t9.js +12 -0
  459. package/dist/standalone/chunks/footnotes-BeisMxLk.js +94 -0
  460. package/dist/standalone/chunks/{form-control-CyXQIJ2x.js → form-control-Bmk0SRDX.js} +2 -2
  461. package/dist/standalone/chunks/{frame-abXBnl8a.js → frame-xIMVEUCi.js} +5 -4
  462. package/dist/standalone/chunks/{handle-menu-ZVR_msk2.js → handle-menu-BAe9fPYJ.js} +14 -33
  463. package/dist/standalone/chunks/{heading-text-CV5gBf7k.js → heading-text-B2kF-b8p.js} +1 -1
  464. package/dist/standalone/chunks/hue-vLbNdAEl.js +20 -0
  465. package/dist/standalone/chunks/{i18n-B6Al9xCK.js → i18n-DFfGgd3d.js} +49 -34
  466. package/dist/standalone/chunks/{i18n-BI16HQmm.js → i18n-DQAcbHkY.js} +1 -1
  467. package/dist/standalone/chunks/late-CPQ_RbU-.js +30 -0
  468. package/dist/standalone/chunks/link--YWr8exL.js +69 -0
  469. package/dist/standalone/chunks/{marks-0kbeB4n8.js → marks-pOUDNUf1.js} +2 -2
  470. package/dist/standalone/chunks/{options-DMEc8rQt.js → options-ySaDL-dW.js} +2 -2
  471. package/dist/standalone/chunks/own-text-mpZVnMyX.js +5 -0
  472. package/dist/standalone/chunks/{palettes-CKLHSIPx.js → palettes-J4bQ21ks.js} +2 -2
  473. package/dist/standalone/chunks/{popover-base-ac49G87f.js → popover-base-hxo-Vh6E.js} +2 -2
  474. package/dist/standalone/chunks/{prose-BG4oQH-i.js → prose-BiuJgiah.js} +1 -1
  475. package/dist/standalone/chunks/{ramp-ggoyjMvC.js → ramp-CGDOcqBZ.js} +1 -1
  476. package/dist/standalone/chunks/save-as-DBGZjczB.js +6 -0
  477. package/dist/standalone/chunks/shortcuts-DPxCSO4M.js +210 -0
  478. package/dist/standalone/chunks/{slider-BWT8Fmwz.js → slider-jp3d-Ld-.js} +15 -14
  479. package/dist/standalone/chunks/{stars-BN9M_9Q1.js → stars-BAUc_LqI.js} +1 -1
  480. package/dist/standalone/chunks/{styles-DwSR-9a3.js → styles-CaeyhYDA.js} +3 -0
  481. package/dist/standalone/chunks/submit-BjBGB8OW.js +42 -0
  482. package/dist/standalone/chunks/{summary-BK-B4m5A.js → summary-W5s0TFqV.js} +1 -1
  483. package/dist/standalone/chunks/tags-CMLAGsVw.js +37 -0
  484. package/dist/standalone/chunks/{text-field-4IUUpRHE.js → text-field-CufOGdfr.js} +17 -11
  485. package/dist/standalone/chunks/{toggle-control-ioV2jhNY.js → toggle-control-Cgqp1jhf.js} +5 -3
  486. package/dist/standalone/chunks/{tokens-BuahF1lF.js → tokens-C_ul7pL9.js} +4 -3
  487. package/dist/standalone/chunks/{virtual-B-1oN14Y.js → virtual-D-qgACnE.js} +1 -1
  488. package/dist/standalone/confirm.js +27 -14
  489. package/dist/standalone/i18n-de.js +13 -2
  490. package/dist/standalone/icons.js +100 -98
  491. package/dist/standalone/links.js +1 -1
  492. package/dist/standalone/reset.css +10 -0
  493. package/dist/standalone/toast.js +1 -1
  494. package/dist/standalone/tokens.css +6 -5
  495. package/dist/tokens.css +6 -5
  496. package/dist/tokens.js +4 -3
  497. package/package.json +25 -2
  498. package/dist/standalone/chunks/announcer-haFcvqbe.js +0 -25
  499. package/dist/standalone/chunks/bk-kbd-B_TlKzWj.js +0 -275
  500. package/dist/standalone/chunks/define-CzVPD4Zi.js +0 -30
  501. package/dist/standalone/chunks/hue-Jvb-141g.js +0 -14
  502. package/dist/standalone/chunks/keyed-CZ2AaouM.js +0 -16
  503. package/dist/standalone/chunks/link-CWSMsx04.js +0 -60
@@ -1,12 +1,12 @@
1
1
  import { a as e, n as t, s as n, t as r, u as i } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as a } from "./chunks/define-CzVPD4Zi.js";
3
- import { t as o } from "./chunks/i18n-B6Al9xCK.js";
4
- import { t as s } from "./chunks/styles-DwSR-9a3.js";
5
- import { r as c } from "./chunks/chart-tokens-D1Exf7BW.js";
6
- import { t as l } from "./chunks/i18n-BI16HQmm.js";
2
+ import { t as a } from "./chunks/define-6OfuRn5c.js";
3
+ import { t as o } from "./chunks/i18n-DFfGgd3d.js";
4
+ import { t as s } from "./chunks/styles-CaeyhYDA.js";
5
+ import { r as c } from "./chunks/chart-tokens-DQ4hVSmn.js";
6
+ import { t as l } from "./chunks/i18n-DQAcbHkY.js";
7
7
  import { a as u } from "./chunks/format-DEwvmPPd.js";
8
8
  import { n as d } from "./chunks/scale-BcW5wHaU.js";
9
- import { n as f, t as p } from "./chunks/frame-abXBnl8a.js";
9
+ import { n as f, t as p } from "./chunks/frame-xIMVEUCi.js";
10
10
  // dist/components/bk-chart-sparkline.js
11
11
  c();
12
12
  var m = (e) => (e ?? "").split(/[\s,;]+/).filter(Boolean).map(Number).filter(Number.isFinite), h = class extends r {
@@ -1,13 +1,13 @@
1
1
  import { a as e, n as t, s as n, t as r, u as i } from "./chunks/lit-D8x-qXgH.js";
2
2
  import { t as a } from "./chunks/style-map-BMvn17E7.js";
3
- import { t as o } from "./chunks/define-CzVPD4Zi.js";
4
- import { t as s } from "./chunks/i18n-B6Al9xCK.js";
5
- import { t as c } from "./chunks/styles-DwSR-9a3.js";
6
- import { r as l } from "./chunks/chart-tokens-D1Exf7BW.js";
7
- import { t as u } from "./chunks/i18n-BI16HQmm.js";
3
+ import { t as o } from "./chunks/define-6OfuRn5c.js";
4
+ import { t as s } from "./chunks/i18n-DFfGgd3d.js";
5
+ import { t as c } from "./chunks/styles-CaeyhYDA.js";
6
+ import { r as l } from "./chunks/chart-tokens-DQ4hVSmn.js";
7
+ import { t as u } from "./chunks/i18n-DQAcbHkY.js";
8
8
  import { a as d, n as f, r as p } from "./chunks/format-DEwvmPPd.js";
9
- import { t as m } from "./chunks/summary-BK-B4m5A.js";
10
- import { d as h, f as g, l as _, o as v, p as y, r as b, t as x, u as S } from "./chunks/frame-abXBnl8a.js";
9
+ import { t as m } from "./chunks/summary-W5s0TFqV.js";
10
+ import { d as h, f as g, l as _, o as v, p as y, r as b, t as x, u as S } from "./chunks/frame-xIMVEUCi.js";
11
11
  import "./bk-chart-legend.js";
12
12
  // dist/components/bk-chart-stacked-bar.js
13
13
  l();
@@ -1,11 +1,11 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as i } from "./chunks/define-CzVPD4Zi.js";
3
- import { t as a } from "./chunks/i18n-B6Al9xCK.js";
4
- import { t as o } from "./chunks/styles-DwSR-9a3.js";
5
- import { r as s } from "./chunks/chart-tokens-D1Exf7BW.js";
6
- import { t as c } from "./chunks/i18n-BI16HQmm.js";
2
+ import { t as i } from "./chunks/define-6OfuRn5c.js";
3
+ import { t as a } from "./chunks/i18n-DFfGgd3d.js";
4
+ import { t as o } from "./chunks/styles-CaeyhYDA.js";
5
+ import { r as s } from "./chunks/chart-tokens-DQ4hVSmn.js";
6
+ import { t as c } from "./chunks/i18n-DQAcbHkY.js";
7
7
  import { n as l } from "./chunks/format-DEwvmPPd.js";
8
- import { l as u, r as d, t as f } from "./chunks/frame-abXBnl8a.js";
8
+ import { l as u, r as d, t as f } from "./chunks/frame-xIMVEUCi.js";
9
9
  import "./bk-chart-legend.js";
10
10
  // dist/components/bk-chart-tracker.js
11
11
  s();
@@ -1,13 +1,13 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
2
  import { t as i } from "./chunks/style-map-BMvn17E7.js";
3
- import { t as a } from "./chunks/i18n-B6Al9xCK.js";
4
- import { r as o } from "./chunks/chart-tokens-D1Exf7BW.js";
5
- import { t as s } from "./chunks/i18n-BI16HQmm.js";
3
+ import { t as a } from "./chunks/i18n-DFfGgd3d.js";
4
+ import { r as o } from "./chunks/chart-tokens-DQ4hVSmn.js";
5
+ import { t as s } from "./chunks/i18n-DQAcbHkY.js";
6
6
  import { a as c } from "./chunks/scale-BcW5wHaU.js";
7
- import { t as l } from "./chunks/define-CzVPD4Zi.js";
7
+ import { t as l } from "./chunks/define-6OfuRn5c.js";
8
8
  import { n as u } from "./chunks/events-DQ4e9cPN.js";
9
- import { t as d, x as f } from "./chunks/styles-DwSR-9a3.js";
10
- import "./chunks/bk-icon-DssFsNuB.js";
9
+ import { t as d, x as f } from "./chunks/styles-CaeyhYDA.js";
10
+ import "./chunks/bk-icon-D4kI4F18.js";
11
11
  import "./chunks/arrow-right-BpHbedfW.js";
12
12
  import "./chunks/description-DXoJ8atg.js";
13
13
  import "./chunks/grid-BV0_DQ5v.js";
@@ -1,11 +1,11 @@
1
1
  import { a as e, u as t } from "./chunks/lit-D8x-qXgH.js";
2
2
  import { t as n } from "./chunks/live-CgLyfc6z.js";
3
- import { n as r, r as i, t as a } from "./chunks/define-CzVPD4Zi.js";
4
- import { a as o, n as s, t as c } from "./chunks/i18n-B6Al9xCK.js";
3
+ import { i as r, r as i, t as a } from "./chunks/define-6OfuRn5c.js";
4
+ import { o, r as s, t as c } from "./chunks/i18n-DFfGgd3d.js";
5
5
  import { t as l } from "./chunks/events-DQ4e9cPN.js";
6
6
  import { n as u } from "./chunks/field-DkBkSgJI.js";
7
- import { t as d } from "./chunks/form-control-CyXQIJ2x.js";
8
- import { s as f, t as p } from "./chunks/styles-DwSR-9a3.js";
7
+ import { t as d } from "./chunks/form-control-Bmk0SRDX.js";
8
+ import { s as f, t as p } from "./chunks/styles-CaeyhYDA.js";
9
9
  import { BkCheckbox as m } from "./bk-checkbox.js";
10
10
  // dist/components/bk-checkbox-group.js
11
11
  var h = class extends d {
@@ -44,7 +44,7 @@ var h = class extends d {
44
44
  defaultValue = [];
45
45
  boxes = [];
46
46
  initialized = !1;
47
- observer = i(() => this.requestUpdate());
47
+ observer = r(() => this.requestUpdate());
48
48
  i18n = new c(this);
49
49
  constructor() {
50
50
  super(), this.optional = !1, this.value = [], this.readonly = !1, this.label = "", this.hint = "", this.error = "", this.orientation = "vertical", this.size = "md", this.selectAll = !1, this.selectAllLabel = "", this.addEventListener("input", this.onBoxEvent), this.addEventListener("change", this.onBoxEvent), this.addEventListener("click", this.onClick);
@@ -52,7 +52,7 @@ var h = class extends d {
52
52
  connectedCallback() {
53
53
  if (super.connectedCallback(), !this.initialized) {
54
54
  this.initialized = !0;
55
- let e = [...r(this)?.children ?? []].filter((e) => e.localName === "bk-checkbox" && e.hasAttribute("checked")).map((e) => e.getAttribute("value") ?? "on");
55
+ let e = [...i(this)?.children ?? []].filter((e) => e.localName === "bk-checkbox" && e.hasAttribute("checked")).map((e) => e.getAttribute("value") ?? "on");
56
56
  this.value.length || (this.value = e), this.defaultValue = [...this.value];
57
57
  }
58
58
  this.observer.observe(this, {
@@ -136,7 +136,7 @@ var h = class extends d {
136
136
  this.boxes.find((e) => !e.disabled)?.focus(e);
137
137
  }
138
138
  willUpdate(e) {
139
- super.willUpdate(e), this.boxes = [...r(this)?.children ?? []].filter((e) => e instanceof m);
139
+ super.willUpdate(e), this.boxes = [...i(this)?.children ?? []].filter((e) => e instanceof m);
140
140
  let t = this.internals;
141
141
  t.role = "group", t.ariaLabel = this.label || null, t.ariaDescription = this.error || this.validationText || this.fieldHintText(this.hint) || null, t.ariaInvalid = this.invalid || this.error ? "true" : null, t.ariaDisabled = this.isDisabled ? "true" : null, t.ariaReadOnly = this.readonly ? "true" : null;
142
142
  }
@@ -1,8 +1,8 @@
1
1
  import { a as e, n as t, u as n } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as r } from "./chunks/define-CzVPD4Zi.js";
3
- import { t as i } from "./chunks/styles-DwSR-9a3.js";
4
- import { n as a, t as o } from "./chunks/toggle-control-ioV2jhNY.js";
5
- import "./chunks/bk-icon-DssFsNuB.js";
2
+ import { t as r } from "./chunks/define-6OfuRn5c.js";
3
+ import { t as i } from "./chunks/styles-CaeyhYDA.js";
4
+ import { n as a, t as o } from "./chunks/toggle-control-Cgqp1jhf.js";
5
+ import "./chunks/bk-icon-D4kI4F18.js";
6
6
  import "./chunks/check-BkWcIJJJ.js";
7
7
  import "./chunks/remove-3A4Fpn3J.js";
8
8
  // dist/components/bk-checkbox.js
@@ -1,9 +1,9 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
- import { n as i, r as a, t as o } from "./chunks/define-CzVPD4Zi.js";
2
+ import { i, r as a, t as o } from "./chunks/define-6OfuRn5c.js";
3
3
  import { t as s } from "./chunks/events-DQ4e9cPN.js";
4
- import { t as c } from "./chunks/form-control-CyXQIJ2x.js";
5
- import { t as l } from "./chunks/i18n-B6Al9xCK.js";
6
- import { t as u } from "./chunks/styles-DwSR-9a3.js";
4
+ import { t as c } from "./chunks/form-control-Bmk0SRDX.js";
5
+ import { t as l } from "./chunks/i18n-DFfGgd3d.js";
6
+ import { t as u } from "./chunks/styles-CaeyhYDA.js";
7
7
  import { BkChip as d } from "./bk-chip.js";
8
8
  import { c as f } from "./chunks/anchor-CNX3nt2F.js";
9
9
  import "./bk-button.js";
@@ -32,7 +32,7 @@ var p = class extends c {
32
32
  active = null;
33
33
  removedAt = -1;
34
34
  i18n = new l(this);
35
- observer = a(() => this.onChildren());
35
+ observer = i(() => this.onChildren());
36
36
  constructor() {
37
37
  super(), this.label = "", this.max = 0, this.expanded = !1, this.addEventListener("keydown", this.onKeydown), this.addEventListener("click", this.onClick), this.addEventListener("focusin", this.onFocusIn);
38
38
  }
@@ -135,7 +135,7 @@ var p = class extends c {
135
135
  t.role = this.selection === "single" ? "listbox" : this.selection === "multiple" ? "toolbar" : "list", t.ariaLabel = this.label || this.forwardedName || null, t.ariaDisabled = this.isDisabled ? "true" : null, t.ariaRequired = this.selection && this.required ? "true" : null, t.ariaInvalid = this.selection && this.invalid ? "true" : null, this.applyMax();
136
136
  }
137
137
  applyMax() {
138
- if (!i(this)) return;
138
+ if (!a(this)) return;
139
139
  let e = this.chips, t = Math.max(0, Math.floor(Number(this.max) || 0));
140
140
  this.toggleable = t > 0 && e.length > t + 1, this.toggleable || (this.expanded = !1), this.hiddenCount = this.toggleable && !this.expanded ? e.length - t : 0, e.forEach((e, n) => e.toggleAttribute("data-bk-collapsed", this.hiddenCount > 0 && n >= t));
141
141
  }
@@ -210,7 +210,11 @@ var p = class extends c {
210
210
  case "Backspace":
211
211
  case "Delete":
212
212
  if (!t.removable) return;
213
- e.preventDefault(), this.removedAt = r, s(t, "remove"), queueMicrotask(() => {
213
+ if (e.preventDefault(), t.removed) {
214
+ s(t, "restore");
215
+ return;
216
+ }
217
+ this.removedAt = r, s(t, "remove"), queueMicrotask(() => {
214
218
  t.isConnected && (this.removedAt = -1);
215
219
  });
216
220
  return;
@@ -1,21 +1,23 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
- import { n as i, t as a } from "./chunks/define-CzVPD4Zi.js";
3
- import { t as o } from "./chunks/link-CWSMsx04.js";
4
- import { t as s } from "./chunks/i18n-B6Al9xCK.js";
2
+ import { r as i, t as a } from "./chunks/define-6OfuRn5c.js";
3
+ import { t as o } from "./chunks/link--YWr8exL.js";
4
+ import { t as s } from "./chunks/i18n-DFfGgd3d.js";
5
5
  import { n as c, t as l } from "./chunks/events-DQ4e9cPN.js";
6
- import { t as u } from "./chunks/clipboard-Crzt1Sh9.js";
6
+ import { t as u } from "./chunks/clipboard-RqIeP9Uz.js";
7
7
  import { t as d } from "./chunks/if-defined-z_20pBRr.js";
8
- import { _ as f, g as p, l as m, t as h, x as g } from "./chunks/styles-DwSR-9a3.js";
9
- import "./chunks/bk-icon-DssFsNuB.js";
8
+ import { _ as f, g as p, l as m, t as h, x as g } from "./chunks/styles-CaeyhYDA.js";
9
+ import "./chunks/bk-icon-D4kI4F18.js";
10
+ import { t as _ } from "./chunks/slots-BHTtBbPo.js";
10
11
  import "./chunks/check-BkWcIJJJ.js";
11
12
  import "./chunks/close-CcDDKPf9.js";
12
13
  import "./chunks/error-BWRRZUg8.js";
13
14
  import "./chunks/info-DxwIeCXS.js";
14
15
  import "./chunks/label-cokyRPHN.js";
15
16
  import "./chunks/remove-3A4Fpn3J.js";
17
+ import "./chunks/undo-BqrhmdQf.js";
16
18
  import "./chunks/warning-BxRrPipZ.js";
17
19
  // dist/components/bk-chip.js
18
- var _ = class extends n {
20
+ var v = class extends n {
19
21
  static properties = {
20
22
  tone: {
21
23
  reflect: !0,
@@ -53,15 +55,21 @@ var _ = class extends n {
53
55
  count: {},
54
56
  grouped: { state: !0 },
55
57
  removeLabel: { attribute: "remove-label" },
58
+ removed: {
59
+ type: Boolean,
60
+ reflect: !0
61
+ },
62
+ restoreLabel: { attribute: "restore-label" },
56
63
  href: {},
57
64
  target: {},
58
65
  rel: {},
59
66
  download: {}
60
67
  };
68
+ slots = new _(this);
61
69
  links = new o(this);
62
70
  clip = new u(this, void 0, (e) => c(this, "copyfailed", { error: e }));
63
71
  constructor() {
64
- super(), this.tone = "neutral", this.variant = "soft", this.size = "md", this.dot = !1, this.removable = !1, this.selected = !1, this.copy = !1, this.grouped = !1, this.removeLabel = "";
72
+ super(), this.tone = "neutral", this.variant = "soft", this.size = "md", this.dot = !1, this.removable = !1, this.selected = !1, this.copy = !1, this.grouped = !1, this.removeLabel = "", this.removed = !1, this.restoreLabel = "";
65
73
  }
66
74
  connectedCallback() {
67
75
  super.connectedCallback(), this.grouped = !!this.closest("bk-chip-group");
@@ -108,17 +116,33 @@ var _ = class extends n {
108
116
  border-radius: var(--bk-chip-radius, var(--bk-radius-chip, var(--bk-radius-sm))); border: var(--bk-border-width) solid var(--bk-chip-border, transparent);
109
117
  background: var(--_bk-chip-bg); color: var(--_bk-chip-fg);
110
118
  font-size: var(--bk-chip-font-size, var(--_bk-chip-fs)); font-weight: var(--bk-chip-font-weight, var(--bk-control-weight, var(--bk-weight-medium)));
119
+ text-transform: var(--bk-chip-transform, none); letter-spacing: var(--bk-chip-tracking, 0em);
111
120
  line-height: 1; white-space: nowrap;
112
121
  }
113
122
  :host([variant="solid"]) .chip { background: var(--_bk-chip-fill, var(--_bk-chip-solid)); color: var(--_bk-chip-on); }
114
123
  :host([variant="outline"]) .chip { background: transparent; border-color: var(--bk-chip-border, color-mix(in oklab, var(--_bk-chip-fg) 40%, transparent)); }
115
124
  :host([variant="dashed"]) .chip { background: transparent; border-style: dashed; border-color: var(--bk-chip-border, color-mix(in oklab, var(--_bk-chip-fg) 60%, transparent)); }
125
+ :host([variant="text"]) .chip { background: transparent; border-color: transparent; padding-inline: var(--bk-chip-text-padding-inline, 0); }
126
+ :host([variant="text"][selected]) .chip { background: transparent; border-color: transparent; }
127
+ :host([variant="text"]) .remove { margin-inline-end: 0; }
128
+ /* Without padding the visible chip can be narrower than --bk-target-min: the hit area of a link or copy chip grows. */
129
+ :host([variant="text"]) .link::after {
130
+ inset-block: min(calc(-1 * var(--bk-border-width)), calc((100% - var(--bk-target-min)) / 2));
131
+ inset-inline: min(calc(-1 * var(--bk-border-width)), calc((100% - var(--bk-target-min)) / 2));
132
+ }
133
+ .end { display: inline-flex; align-items: center; gap: inherit; min-width: 0; }
134
+ .end[hidden] { display: none; }
116
135
  .count { color: var(--bk-chip-count-fg, inherit); font-variant-numeric: tabular-nums; }
117
136
  button.link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
118
137
  :host([selected]) .chip {
119
138
  background: var(--bk-chip-selected-bg, var(--bk-accent-soft)); color: var(--bk-chip-selected-fg, var(--bk-accent-text));
120
139
  border-color: var(--bk-chip-selected-border, var(--bk-accent-solid));
121
140
  }
141
+ /* removed: a muted chip without fill, text struck through. It comes after the variants, so it wins for all of them. */
142
+ :host([removed]) .chip { background: var(--bk-chip-removed-bg, transparent); color: var(--bk-chip-removed-fg, var(--bk-text-muted)); }
143
+ :host([removed][variant="dashed"]) .chip, :host([removed][variant="outline"]) .chip { border-color: var(--bk-chip-border, color-mix(in oklab, var(--bk-chip-removed-fg, var(--bk-text-muted)) 40%, transparent)); }
144
+ :host([removed][selected]) .chip { border-color: var(--bk-chip-border, transparent); }
145
+ :host([removed]) .label, :host([removed]) .count { text-decoration: var(--bk-chip-removed-decoration, line-through); }
122
146
  :host([overflow="ellipsis"]) { min-width: 0; }
123
147
  /* href: the link covers the chip; the remove button sits above it. */
124
148
  .chip { position: relative; }
@@ -130,7 +154,8 @@ var _ = class extends n {
130
154
  .remove { z-index: 1; }
131
155
  @media (forced-colors: active) { .chip:has(.link:focus-visible) { outline-color: Highlight; } }
132
156
  /* The clip of the ellipsis reaches past the line box (line-height 1), so ascenders and descenders (g, y, É) stay whole. */
133
- .label { overflow: hidden; text-overflow: ellipsis; padding-block: 0.25em; margin-block: -0.25em; }
157
+ /* Letter spacing also follows the last letter: the label gives it back, so the text stays centred. */
158
+ .label { overflow: hidden; text-overflow: ellipsis; padding-block: 0.25em; margin-block: -0.25em; margin-inline-end: calc(-1 * var(--bk-chip-tracking, 0em)); }
134
159
  .dot { width: var(--bk-chip-dot-size, var(--bk-space-1-5)); height: var(--bk-chip-dot-size, var(--bk-space-1-5)); border-radius: 50%; background: currentColor; flex: none; }
135
160
  bk-icon, ::slotted(bk-icon) { --bk-icon-size: 1.15em; }
136
161
  .remove {
@@ -147,24 +172,38 @@ var _ = class extends n {
147
172
  `
148
173
  ];
149
174
  i18n = new s(this);
175
+ get restoreName() {
176
+ let e = this.itemText;
177
+ return this.restoreLabel || (e ? this.i18n.t("restoreItem", { item: e }) : this.i18n.t("restore"));
178
+ }
150
179
  get removeName() {
151
- let e = i(this)?.textContent?.trim();
180
+ let e = this.itemText;
152
181
  return this.removeLabel || (e ? this.i18n.t("removeItem", { item: e }) : this.i18n.t("remove"));
153
182
  }
183
+ slotText(e) {
184
+ return [...i(this)?.childNodes ?? []].filter((t) => (t instanceof Element && t.getAttribute("slot") === "end") === e && !(!e && t instanceof Element && t.hasAttribute("slot"))).map((e) => e.textContent ?? "").join(" ").replace(/\s+/g, " ").trim();
185
+ }
154
186
  get itemText() {
155
- return (i(this)?.textContent ?? "").replace(/\s+/g, " ").trim();
187
+ return this.slotText(!1);
156
188
  }
157
189
  async copyToClipboard(e = this.copyText ?? this.itemText) {
158
190
  return this.clip.copy(e);
159
191
  }
160
192
  renderCopy() {
161
- let n = [this.itemText, this.count].filter(Boolean).join(" "), r = this.clip.failed ? this.i18n.t("copyFailed") : this.clip.copied ? this.i18n.t("copied") : "";
193
+ let n = [
194
+ this.itemText,
195
+ this.count,
196
+ this.slotText(!0)
197
+ ].filter(Boolean).join(" "), r = this.clip.failed ? this.i18n.t("copyFailed") : this.clip.copied ? this.i18n.t("copied") : "";
162
198
  return e`<button class="link" part="copy" type="button" aria-label=${this.copyLabel || this.i18n.t("copyItem", { item: n })}
163
- @click=${() => this.copyToClipboard()}><span class="label"><slot></slot></span></button>${this.count ? e`<span class="count" part="count" aria-hidden="true" @click=${() => this.copyToClipboard()}>${this.count}</span>` : t}<span class="sr-only" aria-live="polite">${r}</span>`;
199
+ @click=${() => this.copyToClipboard()}><span class="label"><slot></slot></span></button>${this.count ? e`<span class="count" part="count" aria-hidden="true" @click=${() => this.copyToClipboard()}>${this.count}</span>` : t}${this.renderEnd(!0)}<span class="sr-only" aria-live="polite">${r}</span>`;
164
200
  }
165
201
  renderCount() {
166
202
  return this.count ? e`<span class="count" part="count">${this.count}</span>` : t;
167
203
  }
204
+ renderEnd(n = !1) {
205
+ return e`<span class="end" part="end" ?hidden=${!this.slots.has("end")} aria-hidden=${d(n ? "true" : void 0)} @click=${n ? () => this.copyToClipboard() : t}><slot name="end"></slot></span>`;
206
+ }
168
207
  renderLink() {
169
208
  return e`<a class="link" part="link" href=${this.links.href(this.href)} @click=${this.links.click} target=${d(this.target)}
170
209
  rel=${d(this.rel ?? (this.target === "_blank" ? "noopener noreferrer" : void 0))} download=${d(this.download)}><span class="label"><slot></slot></span>${this.target === "_blank" ? e`<span class="sr-only">${this.i18n.t("opensInNewTab")}</span>` : t}</a>`;
@@ -174,11 +213,13 @@ var _ = class extends n {
174
213
  ${this.dot ? e`<span class="dot"></span>` : t}
175
214
  ${this.selected ? e`<bk-icon class="check" name="check"></bk-icon>` : t}
176
215
  <slot name="start">${this.copy && this.clip.failed ? e`<bk-icon name="error"></bk-icon>` : this.copy && this.clip.copied ? e`<bk-icon name="check"></bk-icon>` : this.icon ? e`<bk-icon name=${this.icon}></bk-icon>` : t}</slot>
177
- ${this.copy ? this.renderCopy() : this.href ? e`${this.renderLink()}${this.renderCount()}` : e`<span class="label"><slot></slot></span>${this.renderCount()}`}
178
- ${this.removable ? e`<button class="remove focusable" part="remove" type="button" tabindex=${this.grouped ? "-1" : t} aria-label=${this.removeName} title=${this.removeName}
179
- @click=${() => l(this, "remove")}><bk-icon name="close"></bk-icon></button>` : t}
216
+ ${this.copy ? this.renderCopy() : this.href ? e`${this.renderLink()}${this.renderCount()}${this.renderEnd()}` : e`<span class="label"><slot></slot></span>${this.renderCount()}${this.renderEnd()}`}
217
+ ${this.removed ? e`<span class="sr-only">${this.i18n.t("removed")}</span>` : t}
218
+ ${this.removable ? this.removed ? e`<button class="remove focusable" part="remove" type="button" tabindex=${this.grouped ? "-1" : t} aria-label=${this.restoreName} title=${this.restoreName}
219
+ @click=${() => l(this, "restore")}><bk-icon name="undo"></bk-icon></button>` : e`<button class="remove focusable" part="remove" type="button" tabindex=${this.grouped ? "-1" : t} aria-label=${this.removeName} title=${this.removeName}
220
+ @click=${() => l(this, "remove")}><bk-icon name="close"></bk-icon></button>` : t}
180
221
  </span>`;
181
222
  }
182
223
  };
183
- a("bk-chip", _);
184
- export { _ as BkChip };
224
+ a("bk-chip", v);
225
+ export { v as BkChip };
@@ -1,5 +1,5 @@
1
1
  import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as r } from "./chunks/define-CzVPD4Zi.js";
2
+ import { t as r } from "./chunks/define-6OfuRn5c.js";
3
3
  // dist/components/bk-cluster.js
4
4
  var i = class extends t {
5
5
  static properties = {
@@ -1,9 +1,9 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as i } from "./chunks/i18n-B6Al9xCK.js";
3
- import { t as a } from "./chunks/define-CzVPD4Zi.js";
2
+ import { t as i } from "./chunks/i18n-DFfGgd3d.js";
3
+ import { t as a } from "./chunks/define-6OfuRn5c.js";
4
4
  import { i as o } from "./chunks/events-DQ4e9cPN.js";
5
- import { t as s, v as c, x as l } from "./chunks/styles-DwSR-9a3.js";
6
- import "./chunks/bk-icon-DssFsNuB.js";
5
+ import { t as s, v as c, x as l } from "./chunks/styles-CaeyhYDA.js";
6
+ import "./chunks/bk-icon-D4kI4F18.js";
7
7
  import "./chunks/add-CUFUzxGc.js";
8
8
  import "./chunks/chevron-down-CpVEjEyi.js";
9
9
  import "./chunks/delete-5M9MAG9b.js";
@@ -1,8 +1,8 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
- import { t as i } from "./chunks/i18n-B6Al9xCK.js";
3
- import { t as a } from "./chunks/clipboard-Crzt1Sh9.js";
4
- import { t as o } from "./chunks/define-CzVPD4Zi.js";
5
- import { t as s, x as c } from "./chunks/styles-DwSR-9a3.js";
2
+ import { t as i } from "./chunks/i18n-DFfGgd3d.js";
3
+ import { t as a } from "./chunks/clipboard-RqIeP9Uz.js";
4
+ import { t as o } from "./chunks/define-6OfuRn5c.js";
5
+ import { t as s, x as c } from "./chunks/styles-CaeyhYDA.js";
6
6
  import "./bk-button.js";
7
7
  import "./bk-disclosure.js";
8
8
  import "./chunks/check-BkWcIJJJ.js";
@@ -1,11 +1,11 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
2
  import { t as i } from "./chunks/style-map-BMvn17E7.js";
3
- import { t as a } from "./chunks/i18n-B6Al9xCK.js";
4
- import { t as o } from "./chunks/clipboard-Crzt1Sh9.js";
5
- import { r as s, t as c } from "./chunks/define-CzVPD4Zi.js";
3
+ import { t as a } from "./chunks/i18n-DFfGgd3d.js";
4
+ import { t as o } from "./chunks/clipboard-RqIeP9Uz.js";
5
+ import { i as s, t as c } from "./chunks/define-6OfuRn5c.js";
6
6
  import { n as l } from "./chunks/events-DQ4e9cPN.js";
7
7
  import { t as u } from "./chunks/slots-BHTtBbPo.js";
8
- import { t as d, x as f } from "./chunks/styles-DwSR-9a3.js";
8
+ import { t as d, x as f } from "./chunks/styles-CaeyhYDA.js";
9
9
  import "./bk-button.js";
10
10
  import "./chunks/check-BkWcIJJJ.js";
11
11
  import "./chunks/copy-CJUeLP2K.js";
@@ -296,7 +296,11 @@ var b = class extends n {
296
296
  pre:focus-visible { outline: var(--bk-focus-ring); outline-offset: var(--bk-focus-offset-inset); }
297
297
  /* Without a header the copy button floats in the top end corner; the text keeps clear of it. */
298
298
  .float { position: absolute; inset-block-start: max(var(--bk-space-1), calc(var(--_bk-code-pad-b) + round(calc((var(--bk-code-line-height, var(--bk-line-height-body)) - var(--bk-control-sm)) / 2), 1px))); inset-inline-end: var(--bk-space-1); }
299
- .float ~ pre { padding-inline-end: calc(var(--bk-control-sm) + var(--bk-space-2)); min-block-size: calc(var(--bk-control-sm) + 2 * var(--bk-space-1)); }
299
+ .float ~ pre { --_bk-code-float: calc(var(--bk-control-sm) + var(--bk-space-2)); min-block-size: calc(var(--bk-control-sm) + 2 * var(--bk-space-1)); }
300
+ /* A block that scrolls ends before the button, so a long line scrolls beside it and not under it. A block that wraps keeps the
301
+ space as padding: the text breaks before the button. */
302
+ :host(:not([wrap])) .float ~ pre { margin-inline-end: var(--_bk-code-float); }
303
+ :host([wrap]) .float ~ pre { padding-inline-end: var(--_bk-code-float); }
300
304
  code { font: inherit; }
301
305
  /* Lines: each line is a block as wide as the longest line, so a mark reaches the end of a line that scrolls. The
302
306
  pre gives its inline padding to the lines, so a mark fills the block from edge to edge. */
@@ -304,7 +308,7 @@ var b = class extends n {
304
308
  code.lines { display: grid; min-inline-size: 100%; inline-size: max-content; counter-reset: bk-code-line var(--_bk-code-first); }
305
309
  :host([wrap]) code.lines { inline-size: auto; }
306
310
  .line { display: block; min-block-size: 1lh; padding-inline: var(--_bk-code-pad-i); }
307
- .float ~ pre .line { padding-inline-end: calc(var(--bk-control-sm) + var(--bk-space-2)); }
311
+ :host([wrap]) .float ~ pre .line { padding-inline-end: var(--_bk-code-float); }
308
312
  .line.mark { background: var(--_bk-code-mark); }
309
313
  /* The numbers are generated content: no part of a selection, of the copied text or of what screen readers read. */
310
314
  code.numbered .line { counter-increment: bk-code-line; padding-inline-start: calc(var(--_bk-code-pad-i) + var(--_bk-code-digits) * 1ch + var(--bk-code-line-number-gap, var(--bk-space-3))); text-indent: 0; position: relative; }
@@ -1,14 +1,14 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
2
  import { t as i } from "./chunks/style-map-BMvn17E7.js";
3
3
  import { t as a } from "./chunks/live-CgLyfc6z.js";
4
- import { t as o } from "./chunks/i18n-B6Al9xCK.js";
4
+ import { t as o } from "./chunks/i18n-DFfGgd3d.js";
5
5
  import { a as s, i as c } from "./chunks/oklch-BR-mTnMz.js";
6
- import { t as l } from "./chunks/define-CzVPD4Zi.js";
6
+ import { t as l } from "./chunks/define-6OfuRn5c.js";
7
7
  import { t as u } from "./chunks/events-DQ4e9cPN.js";
8
- import { t as d } from "./chunks/slider-BWT8Fmwz.js";
9
- import { t as f, v as p } from "./chunks/styles-DwSR-9a3.js";
8
+ import { t as d } from "./chunks/slider-jp3d-Ld-.js";
9
+ import { t as f, v as p } from "./chunks/styles-CaeyhYDA.js";
10
10
  import "./bk-button.js";
11
- import "./chunks/bk-input-text-DD32uWNO.js";
11
+ import "./chunks/bk-input-text-2n89GDIT.js";
12
12
  import "./bk-input-slider.js";
13
13
  import "./bk-segmented.js";
14
14
  import "./bk-segmented-item.js";
@@ -1,10 +1,10 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
2
2
  import { t as i } from "./chunks/style-map-BMvn17E7.js";
3
- import { i as a, r as o, t as s } from "./chunks/define-CzVPD4Zi.js";
4
- import { t as c } from "./chunks/i18n-B6Al9xCK.js";
3
+ import { a, i as o, t as s } from "./chunks/define-6OfuRn5c.js";
4
+ import { t as c } from "./chunks/i18n-DFfGgd3d.js";
5
5
  import { t as l } from "./chunks/slots-BHTtBbPo.js";
6
6
  import { n as u } from "./chunks/state-XYmTmnOw.js";
7
- import { t as d } from "./chunks/styles-DwSR-9a3.js";
7
+ import { t as d } from "./chunks/styles-CaeyhYDA.js";
8
8
  // dist/components/bk-columns.js
9
9
  var f = [
10
10
  "start",
@@ -36,6 +36,10 @@ var f = [
36
36
  reflect: !0,
37
37
  useDefault: !0
38
38
  },
39
+ narrow: {
40
+ type: Boolean,
41
+ attribute: !1
42
+ },
39
43
  scrolling: { state: !0 },
40
44
  collapsedSides: { state: !0 },
41
45
  panelSides: { state: !0 }
@@ -49,7 +53,7 @@ var f = [
49
53
  });
50
54
  watch = o(() => this.readCollapsed());
51
55
  constructor() {
52
- super(), this.splitAbove = 1024, this.stackAbove = 768, this.mode = "flow", this.collapsedSides = /* @__PURE__ */ new Set(), this.panelSides = /* @__PURE__ */ new Set(), this.scrolling = /* @__PURE__ */ new Set();
56
+ super(), this.splitAbove = 1024, this.stackAbove = 768, this.mode = "flow", this.narrow = !1, this.collapsedSides = /* @__PURE__ */ new Set(), this.panelSides = /* @__PURE__ */ new Set(), this.scrolling = /* @__PURE__ */ new Set();
53
57
  }
54
58
  static styles = [d, r`
55
59
  :host {
@@ -154,6 +158,10 @@ var f = [
154
158
  }
155
159
  updateMode() {
156
160
  let e = this.width;
161
+ if (this.narrow) {
162
+ this.mode !== "flow" && (this.mode = "flow");
163
+ return;
164
+ }
157
165
  if (e <= 0) return;
158
166
  let t = e >= this.splitAbove ? "split" : e >= this.stackAbove ? "stack" : "flow";
159
167
  t !== this.mode && (this.mode = t);
@@ -167,7 +175,7 @@ var f = [
167
175
  return this.mode === "split" ? this.renderRoot.querySelector(".main") : this.mode === "stack" ? this.renderRoot.querySelector(".frame") : null;
168
176
  }
169
177
  willUpdate(e) {
170
- (e.has("splitAbove") || e.has("stackAbove")) && this.updateMode();
178
+ (e.has("splitAbove") || e.has("stackAbove") || e.has("narrow")) && this.updateMode();
171
179
  }
172
180
  updated(e) {
173
181
  if (e.has("mode") && requestAnimationFrame(() => this.measureOverflow()), !e.has("scrollKey")) return;
@@ -1,19 +1,21 @@
1
1
  import { a as e, n as t, u as n } from "./chunks/lit-D8x-qXgH.js";
2
2
  import { t as r } from "./chunks/if-defined-z_20pBRr.js";
3
3
  import { t as i } from "./chunks/live-CgLyfc6z.js";
4
- import { n as a, t as o } from "./chunks/choice-field-CGvE4tyb.js";
5
- import { t as s } from "./chunks/define-CzVPD4Zi.js";
4
+ import { n as a, t as o } from "./chunks/choice-field-B0oe_9fI.js";
5
+ import { t as s } from "./chunks/define-6OfuRn5c.js";
6
6
  import { i as c } from "./chunks/events-DQ4e9cPN.js";
7
7
  import { t as l } from "./chunks/loading-B37QBUkv.js";
8
- import { n as u, t as d, u as f } from "./chunks/options-DMEc8rQt.js";
8
+ import { n as u, t as d, u as f } from "./chunks/options-ySaDL-dW.js";
9
9
  import "./bk-chip.js";
10
- import "./chunks/bk-icon-DssFsNuB.js";
10
+ import "./chunks/bk-icon-D4kI4F18.js";
11
11
  import "./bk-spinner.js";
12
+ import { r as p } from "./chunks/submit-BjBGB8OW.js";
13
+ import { n as m, t as h } from "./chunks/tags-CMLAGsVw.js";
12
14
  import "./chunks/add-CUFUzxGc.js";
13
15
  import "./chunks/chevron-down-CpVEjEyi.js";
14
16
  import "./chunks/search-Cm9mOqRy.js";
15
17
  // dist/components/bk-combobox.js
16
- var p = class extends o {
18
+ var g = class extends o {
17
19
  static properties = {
18
20
  ...o.properties,
19
21
  readonly: {
@@ -78,20 +80,11 @@ var p = class extends o {
78
80
  get busy() {
79
81
  return this.loading || this.searching;
80
82
  }
81
- static styles = [...a("combobox"), n`
83
+ static styles = [
84
+ ...a("combobox"),
85
+ m("combobox"),
86
+ n`
82
87
  :host { --_bk-text-field-font-size: var(--bk-combobox-font-size); }
83
- .box { cursor: text; }
84
- .values { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--bk-combobox-tag-gap, var(--bk-space-1)); }
85
- .box.has-tags { padding-block: var(--bk-combobox-tags-padding, var(--bk-space-1)); }
86
- :host([size="sm"]) .box.has-tags { padding-block: var(--bk-combobox-tags-padding, var(--bk-space-0)); }
87
- .tags { display: contents; }
88
- bk-chip { max-width: 100%; }
89
- input { text-overflow: ellipsis; }
90
- .has-tags input { min-width: var(--bk-combobox-input-min-width, 6ch); width: auto; }
91
- input:disabled { cursor: not-allowed; }
92
- /* Disabled with chips: the chips keep their text contrast (a dimmed box fails 4.5:1); the sunken fill and the cursor show the state. */
93
- :host([disabled]) .box.has-tags { opacity: 1; }
94
- :host([disabled]) .box.has-tags input { opacity: var(--bk-disabled-opacity); }
95
88
  mark {
96
89
  background: none; color: var(--bk-combobox-match-color, var(--bk-accent-text));
97
90
  font-weight: var(--bk-combobox-match-weight, var(--bk-weight-semibold));
@@ -105,7 +98,8 @@ var p = class extends o {
105
98
  }
106
99
  .status bk-spinner { --bk-spinner-size: var(--bk-icon-sm); }
107
100
  @media (forced-colors: active) { mark { color: Highlight; } }
108
- `];
101
+ `
102
+ ];
109
103
  get control() {
110
104
  return this.renderRoot?.querySelector("input") ?? null;
111
105
  }
@@ -227,15 +221,13 @@ var p = class extends o {
227
221
  }
228
222
  onPaste(e) {
229
223
  if (!this.multiple || this.isDisabled || this.readonly) return;
230
- let t = e.clipboardData?.getData("text") ?? "";
231
- if (!/[,;\n\t]/.test(t)) return;
232
- e.preventDefault();
224
+ let t = h(e, this.text);
225
+ if (!t) return;
233
226
  let n = [...this.selection];
234
- for (let e of (this.text + t).split(/[,;\n\t]+/)) {
235
- let t = e.trim();
236
- if (!t || this.max !== void 0 && this.max > 0 && n.length >= this.max) continue;
237
- let r = this.tagFor(t);
238
- r !== void 0 && !n.includes(r) && n.push(r);
227
+ for (let e of t) {
228
+ if (this.max !== void 0 && this.max > 0 && n.length >= this.max) continue;
229
+ let t = this.tagFor(e);
230
+ t !== void 0 && !n.includes(t) && n.push(t);
239
231
  }
240
232
  n.length !== this.selection.length && this.commit(n), this.query = "", this.text = "", this.visible = this.computeVisible();
241
233
  }
@@ -289,7 +281,7 @@ var p = class extends o {
289
281
  return;
290
282
  }
291
283
  let t = this.internals.form;
292
- t && setTimeout(() => t.requestSubmit());
284
+ t && setTimeout(() => p(t));
293
285
  return;
294
286
  }
295
287
  case ",":
@@ -352,7 +344,7 @@ var p = class extends o {
352
344
  render() {
353
345
  let n = this.showInvalid, a = this.multiple && this.selection.length > 0, o = this.descriptionIds(a ? "tags-text" : void 0), s = `${this.key}-list`, c = this.label ? void 0 : this.forwardedName, l = this.popupShown, u = this.visible, d = this.busy, f = this.noResults, p = d && u.length > 0;
354
346
  return e`<div @focusout=${this.onFocusOut}>
355
- ${this.renderField(e`<div class="${this.boxClass}${a ? " has-tags" : ""}${l ? " open" : ""}" part="box" @click=${this.onBoxClick}>
347
+ ${this.renderField(e`<div class="${this.boxClass}${a ? " has-tags" : ""}${a && !this.hasLead ? " tags-first" : ""}${l ? " open" : ""}" part="box" @click=${this.onBoxClick}>
356
348
  ${this.renderStart()}
357
349
  ${this.renderPrefix()}
358
350
  <div class="values">
@@ -384,5 +376,5 @@ var p = class extends o {
384
376
  </div>`;
385
377
  }
386
378
  };
387
- s("bk-combobox", p);
388
- export { p as BkCombobox, u as matchRanges };
379
+ s("bk-combobox", g);
380
+ export { g as BkCombobox, u as matchRanges };