@bk2k/ui 0.7.0 → 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 (313) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/USAGE.md +20 -9
  3. package/custom-elements.json +1 -1
  4. package/dist/charts/frame.d.ts +2 -0
  5. package/dist/components/bk-alert.js +1 -1
  6. package/dist/components/bk-button.d.ts +5 -0
  7. package/dist/components/bk-button.js +15 -4
  8. package/dist/components/bk-card.d.ts +6 -3
  9. package/dist/components/bk-card.js +15 -9
  10. package/dist/components/bk-chart-area.d.ts +4 -0
  11. package/dist/components/bk-chart-line.d.ts +15 -0
  12. package/dist/components/bk-chart-line.js +16 -6
  13. package/dist/components/bk-chip.d.ts +2 -0
  14. package/dist/components/bk-chip.js +3 -1
  15. package/dist/components/bk-combobox.d.ts +2 -2
  16. package/dist/components/bk-combobox.js +7 -20
  17. package/dist/components/bk-footnotes-item.d.ts +2 -2
  18. package/dist/components/bk-image-compare.d.ts +36 -1
  19. package/dist/components/bk-image-compare.js +47 -11
  20. package/dist/components/bk-image-viewer.d.ts +74 -3
  21. package/dist/components/bk-image-viewer.js +115 -28
  22. package/dist/components/bk-input-color.d.ts +2 -5
  23. package/dist/components/bk-input-color.js +0 -14
  24. package/dist/components/bk-input-file.d.ts +17 -0
  25. package/dist/components/bk-input-file.js +18 -8
  26. package/dist/components/bk-input-tags.d.ts +219 -0
  27. package/dist/components/bk-input-tags.js +293 -0
  28. package/dist/components/bk-input-text.d.ts +9 -0
  29. package/dist/components/bk-input-text.js +18 -2
  30. package/dist/components/bk-lightbox.d.ts +25 -1
  31. package/dist/components/bk-lightbox.js +7 -0
  32. package/dist/components/bk-page-cta.d.ts +2 -0
  33. package/dist/components/bk-page-cta.js +8 -1
  34. package/dist/components/bk-split-grid.js +7 -2
  35. package/dist/components/bk-stat.d.ts +2 -0
  36. package/dist/components/bk-stat.js +1 -1
  37. package/dist/components/bk-table.d.ts +2 -0
  38. package/dist/components/bk-table.js +1 -1
  39. package/dist/components/bk-tabs.d.ts +2 -1
  40. package/dist/components/bk-tabs.js +15 -3
  41. package/dist/index.d.ts +1 -0
  42. package/dist/index.js +1 -0
  43. package/dist/internal/announcer.d.ts +6 -0
  44. package/dist/internal/announcer.js +7 -2
  45. package/dist/internal/cloak.js +1 -0
  46. package/dist/internal/define.d.ts +9 -0
  47. package/dist/internal/define.js +47 -1
  48. package/dist/internal/elements.d.ts +6 -0
  49. package/dist/internal/elements.js +5 -0
  50. package/dist/internal/hue.d.ts +8 -0
  51. package/dist/internal/hue.js +15 -4
  52. package/dist/internal/late/bk-tabs.d.ts +4 -0
  53. package/dist/internal/late/bk-tabs.js +8 -0
  54. package/dist/internal/late.js +3 -3
  55. package/dist/internal/tags.d.ts +15 -0
  56. package/dist/internal/tags.js +44 -0
  57. package/dist/internal/text-field.d.ts +2 -0
  58. package/dist/internal/text-field.js +8 -0
  59. package/dist/internal/toggle-control.js +3 -1
  60. package/dist/jsx.d.ts +85 -6
  61. package/dist/kit.d.ts +1 -0
  62. package/dist/kit.js +3 -0
  63. package/dist/reset.css +1 -1
  64. package/dist/standalone/all.js +106 -105
  65. package/dist/standalone/bk-accordion-item.js +3 -3
  66. package/dist/standalone/bk-accordion.js +1 -1
  67. package/dist/standalone/bk-action-bar.js +1 -1
  68. package/dist/standalone/bk-alert-offline.js +1 -1
  69. package/dist/standalone/bk-alert.js +7 -4
  70. package/dist/standalone/bk-app-state.js +1 -1
  71. package/dist/standalone/bk-attachment.js +2 -2
  72. package/dist/standalone/bk-avatar-group.js +1 -1
  73. package/dist/standalone/bk-avatar.js +3 -3
  74. package/dist/standalone/bk-badge.js +1 -1
  75. package/dist/standalone/bk-bar.js +1 -1
  76. package/dist/standalone/bk-brand.js +1 -1
  77. package/dist/standalone/bk-breadcrumbs.js +2 -2
  78. package/dist/standalone/bk-button-copy.js +4 -4
  79. package/dist/standalone/bk-button-group.js +2 -2
  80. package/dist/standalone/bk-button-share.js +4 -4
  81. package/dist/standalone/bk-button-top.js +1 -1
  82. package/dist/standalone/bk-button.js +14 -6
  83. package/dist/standalone/bk-calendar-event.js +1 -1
  84. package/dist/standalone/bk-calendar-week.js +1 -1
  85. package/dist/standalone/bk-calendar.js +2 -2
  86. package/dist/standalone/bk-card.js +17 -11
  87. package/dist/standalone/bk-carousel-controls.js +2 -2
  88. package/dist/standalone/bk-carousel-item.js +1 -1
  89. package/dist/standalone/bk-carousel.js +1 -1
  90. package/dist/standalone/bk-chart-area.js +1 -1
  91. package/dist/standalone/bk-chart-bar-list.js +2 -2
  92. package/dist/standalone/bk-chart-bar.js +1 -1
  93. package/dist/standalone/bk-chart-bridge.js +1 -1
  94. package/dist/standalone/bk-chart-bullet.js +1 -1
  95. package/dist/standalone/bk-chart-calendar.js +1 -1
  96. package/dist/standalone/bk-chart-heatmap.js +1 -1
  97. package/dist/standalone/bk-chart-histogram.js +1 -1
  98. package/dist/standalone/bk-chart-legend.js +1 -1
  99. package/dist/standalone/bk-chart-line.js +16 -8
  100. package/dist/standalone/bk-chart-mark.js +1 -1
  101. package/dist/standalone/bk-chart-scatter.js +1 -1
  102. package/dist/standalone/bk-chart-sparkline.js +1 -1
  103. package/dist/standalone/bk-chart-stacked-bar.js +1 -1
  104. package/dist/standalone/bk-chart-tracker.js +1 -1
  105. package/dist/standalone/bk-chart-waterfall.js +2 -2
  106. package/dist/standalone/bk-checkbox-group.js +5 -5
  107. package/dist/standalone/bk-checkbox.js +3 -3
  108. package/dist/standalone/bk-chip-group.js +4 -4
  109. package/dist/standalone/bk-chip.js +5 -3
  110. package/dist/standalone/bk-cluster.js +1 -1
  111. package/dist/standalone/bk-code-diff.js +2 -2
  112. package/dist/standalone/bk-code-stack.js +1 -1
  113. package/dist/standalone/bk-code.js +1 -1
  114. package/dist/standalone/bk-color-panel.js +2 -2
  115. package/dist/standalone/bk-columns.js +1 -1
  116. package/dist/standalone/bk-combobox.js +21 -30
  117. package/dist/standalone/bk-command-menu.js +3 -3
  118. package/dist/standalone/bk-command-palette.js +4 -4
  119. package/dist/standalone/bk-composer.js +4 -4
  120. package/dist/standalone/bk-delta.js +1 -1
  121. package/dist/standalone/bk-diagram.js +1 -1
  122. package/dist/standalone/bk-dialog.js +1 -1
  123. package/dist/standalone/bk-disclosure.js +2 -2
  124. package/dist/standalone/bk-divider.js +4 -4
  125. package/dist/standalone/bk-drawer.js +2 -2
  126. package/dist/standalone/bk-drop-target.js +1 -1
  127. package/dist/standalone/bk-empty-state.js +2 -2
  128. package/dist/standalone/bk-error-summary.js +1 -1
  129. package/dist/standalone/bk-facts-item.js +1 -1
  130. package/dist/standalone/bk-facts.js +1 -1
  131. package/dist/standalone/bk-feature.js +2 -2
  132. package/dist/standalone/bk-fieldset.js +1 -1
  133. package/dist/standalone/bk-filter-bar.js +2 -2
  134. package/dist/standalone/bk-folder-browser.js +2 -2
  135. package/dist/standalone/bk-footnote.js +1 -1
  136. package/dist/standalone/bk-footnotes-item.js +2 -2
  137. package/dist/standalone/bk-footnotes.js +1 -1
  138. package/dist/standalone/bk-form-guard.js +1 -1
  139. package/dist/standalone/bk-form-steps.js +1 -1
  140. package/dist/standalone/bk-grid.js +1 -1
  141. package/dist/standalone/bk-icon-tile.js +2 -2
  142. package/dist/standalone/bk-icon.js +1 -1
  143. package/dist/standalone/bk-image-compare.js +55 -27
  144. package/dist/standalone/bk-image-crop.js +3 -3
  145. package/dist/standalone/bk-image-editor.js +1 -1
  146. package/dist/standalone/bk-image-viewer.js +127 -57
  147. package/dist/standalone/bk-input-code.js +2 -2
  148. package/dist/standalone/bk-input-color.js +3 -13
  149. package/dist/standalone/bk-input-date-range.js +2 -2
  150. package/dist/standalone/bk-input-date.js +2 -2
  151. package/dist/standalone/bk-input-file.js +20 -13
  152. package/dist/standalone/bk-input-group.js +2 -2
  153. package/dist/standalone/bk-input-inline.js +1 -1
  154. package/dist/standalone/bk-input-number.js +4 -4
  155. package/dist/standalone/bk-input-rating.js +4 -4
  156. package/dist/standalone/bk-input-rich.js +1 -1
  157. package/dist/standalone/bk-input-search.js +4 -4
  158. package/dist/standalone/bk-input-slider-range.js +2 -2
  159. package/dist/standalone/bk-input-slider.js +2 -2
  160. package/dist/standalone/bk-input-tags.js +224 -0
  161. package/dist/standalone/bk-input-text.js +1 -1
  162. package/dist/standalone/bk-input-time-zone.js +1 -1
  163. package/dist/standalone/bk-input-time.js +4 -4
  164. package/dist/standalone/bk-item-group.js +2 -2
  165. package/dist/standalone/bk-item.js +2 -2
  166. package/dist/standalone/bk-kbd-shortcuts.js +1 -1
  167. package/dist/standalone/bk-kbd.js +1 -1
  168. package/dist/standalone/bk-lightbox.js +16 -3
  169. package/dist/standalone/bk-lines.js +1 -1
  170. package/dist/standalone/bk-link.js +2 -2
  171. package/dist/standalone/bk-listbox-columns.js +6 -6
  172. package/dist/standalone/bk-listbox-item.js +1 -1
  173. package/dist/standalone/bk-listbox-search.js +5 -5
  174. package/dist/standalone/bk-listbox-transfer.js +4 -4
  175. package/dist/standalone/bk-listbox.js +5 -5
  176. package/dist/standalone/bk-logo-wall.js +1 -1
  177. package/dist/standalone/bk-logo.js +2 -2
  178. package/dist/standalone/bk-menu-bar.js +1 -1
  179. package/dist/standalone/bk-menu-context.js +1 -1
  180. package/dist/standalone/bk-menu-divider.js +1 -1
  181. package/dist/standalone/bk-menu-item.js +2 -2
  182. package/dist/standalone/bk-menu-label.js +1 -1
  183. package/dist/standalone/bk-menu-list.js +1 -1
  184. package/dist/standalone/bk-menu.js +4 -4
  185. package/dist/standalone/bk-message-approval.js +2 -2
  186. package/dist/standalone/bk-message-branches.js +1 -1
  187. package/dist/standalone/bk-message-citation.js +1 -1
  188. package/dist/standalone/bk-message-feedback.js +2 -2
  189. package/dist/standalone/bk-message-list.js +2 -2
  190. package/dist/standalone/bk-message-reasoning.js +3 -3
  191. package/dist/standalone/bk-message-source.js +1 -1
  192. package/dist/standalone/bk-message-tool-group.js +3 -3
  193. package/dist/standalone/bk-message-tool.js +3 -3
  194. package/dist/standalone/bk-message.js +2 -2
  195. package/dist/standalone/bk-meter.js +1 -1
  196. package/dist/standalone/bk-model-viewer.js +1 -1
  197. package/dist/standalone/bk-nav-divider.js +1 -1
  198. package/dist/standalone/bk-nav-group.js +5 -5
  199. package/dist/standalone/bk-nav-item.js +2 -2
  200. package/dist/standalone/bk-nav-toc.js +1 -1
  201. package/dist/standalone/bk-nav.js +1 -1
  202. package/dist/standalone/bk-overflow.js +1 -1
  203. package/dist/standalone/bk-page-cta.js +10 -3
  204. package/dist/standalone/bk-page-footer-column.js +1 -1
  205. package/dist/standalone/bk-page-footer.js +1 -1
  206. package/dist/standalone/bk-page-header.js +2 -2
  207. package/dist/standalone/bk-page-hero.js +2 -2
  208. package/dist/standalone/bk-page-pager.js +2 -2
  209. package/dist/standalone/bk-page-section.js +2 -2
  210. package/dist/standalone/bk-pagination.js +3 -3
  211. package/dist/standalone/bk-pane.js +2 -2
  212. package/dist/standalone/bk-panel.js +2 -2
  213. package/dist/standalone/bk-period-nav.js +2 -2
  214. package/dist/standalone/bk-picture.js +1 -175
  215. package/dist/standalone/bk-popover-help.js +1 -1
  216. package/dist/standalone/bk-popover.js +1 -1
  217. package/dist/standalone/bk-presence-cursor.js +2 -2
  218. package/dist/standalone/bk-preview.js +2 -2
  219. package/dist/standalone/bk-progress.js +1 -1
  220. package/dist/standalone/bk-prose.js +1 -1
  221. package/dist/standalone/bk-qr-code.js +1 -1
  222. package/dist/standalone/bk-radio-group.js +5 -5
  223. package/dist/standalone/bk-radio.js +2 -2
  224. package/dist/standalone/bk-rating.js +3 -3
  225. package/dist/standalone/bk-scroll.js +1 -1
  226. package/dist/standalone/bk-segmented-item.js +2 -2
  227. package/dist/standalone/bk-segmented.js +4 -4
  228. package/dist/standalone/bk-select-cascade.js +3 -3
  229. package/dist/standalone/bk-select-tree.js +4 -4
  230. package/dist/standalone/bk-select.js +4 -4
  231. package/dist/standalone/bk-shell-app.js +1 -1
  232. package/dist/standalone/bk-shell-centered.js +1 -1
  233. package/dist/standalone/bk-shell-sites.js +1 -1
  234. package/dist/standalone/bk-skeleton.js +1 -1
  235. package/dist/standalone/bk-sortable.js +2 -2
  236. package/dist/standalone/bk-spinner.js +1 -1
  237. package/dist/standalone/bk-split-grid.js +10 -7
  238. package/dist/standalone/bk-split.js +6 -6
  239. package/dist/standalone/bk-stack.js +1 -1
  240. package/dist/standalone/bk-stat-group.js +1 -1
  241. package/dist/standalone/bk-stat.js +3 -3
  242. package/dist/standalone/bk-status-dot.js +2 -2
  243. package/dist/standalone/bk-steps-item.js +2 -2
  244. package/dist/standalone/bk-steps.js +1 -1
  245. package/dist/standalone/bk-surface.js +1 -1
  246. package/dist/standalone/bk-swatch-group.js +6 -6
  247. package/dist/standalone/bk-swatch-palette.js +1 -1
  248. package/dist/standalone/bk-swatch.js +1 -1
  249. package/dist/standalone/bk-switch.js +2 -2
  250. package/dist/standalone/bk-table.js +1 -1
  251. package/dist/standalone/bk-tabs-item.js +2 -2
  252. package/dist/standalone/bk-tabs-panel.js +1 -1
  253. package/dist/standalone/bk-tabs.js +3 -414
  254. package/dist/standalone/bk-tasks-item.js +2 -2
  255. package/dist/standalone/bk-tasks.js +1 -1
  256. package/dist/standalone/bk-testimonial.js +2 -2
  257. package/dist/standalone/bk-text.js +3 -3
  258. package/dist/standalone/bk-time-countdown.js +2 -2
  259. package/dist/standalone/bk-time-relative.js +1 -1
  260. package/dist/standalone/bk-timeline-item.js +2 -2
  261. package/dist/standalone/bk-timeline.js +1 -1
  262. package/dist/standalone/bk-toast-group.js +1 -1
  263. package/dist/standalone/bk-toast.js +2 -2
  264. package/dist/standalone/bk-toolbar.js +1 -1
  265. package/dist/standalone/bk-tooltip.js +1 -1
  266. package/dist/standalone/bk-tree-item.js +3 -3
  267. package/dist/standalone/bk-tree.js +4 -4
  268. package/dist/standalone/bk-video.js +2 -2
  269. package/dist/standalone/bk-visually-hidden.js +1 -1
  270. package/dist/standalone/bk-zoom.js +3 -3
  271. package/dist/standalone/chunks/{announcer-D1zrRWwO.js → announcer-6tMlCOq1.js} +9 -4
  272. package/dist/standalone/chunks/{bk-alert-offline-Clw0ZSsH.js → bk-alert-offline-hCLuG-RM.js} +1 -1
  273. package/dist/standalone/chunks/{bk-carousel-Biz7t8sL.js → bk-carousel-_dudBMVq.js} +2 -2
  274. package/dist/standalone/chunks/{bk-diagram-D_fQf6SF.js → bk-diagram-BB2odomE.js} +2 -2
  275. package/dist/standalone/chunks/{bk-dialog-DwZyUUHh.js → bk-dialog-DcvwnOtN.js} +2 -2
  276. package/dist/standalone/chunks/{bk-icon-Bp_flKdv.js → bk-icon-D4kI4F18.js} +1 -1
  277. package/dist/standalone/chunks/{bk-image-editor-BADsoLRL.js → bk-image-editor-SRVkHI-4.js} +2 -2
  278. package/dist/standalone/chunks/{bk-input-date-range-DHcJ8-5g.js → bk-input-date-range-C0Vd-p0T.js} +2 -2
  279. package/dist/standalone/chunks/{bk-input-rich-CFhW6vRa.js → bk-input-rich-AmDv87E5.js} +3 -3
  280. package/dist/standalone/chunks/{bk-input-text-DviyLBqj.js → bk-input-text-2n89GDIT.js} +15 -5
  281. package/dist/standalone/chunks/{bk-model-viewer-w_Ah4Tvs.js → bk-model-viewer-BoNYBd6W.js} +2 -2
  282. package/dist/standalone/chunks/bk-picture-CA5gLxgZ.js +186 -0
  283. package/dist/standalone/chunks/{bk-qr-code-CYMovNVl.js → bk-qr-code-CSFfc8As.js} +1 -1
  284. package/dist/standalone/chunks/{bk-shell-app-B2lxHit8.js → bk-shell-app-BlCOG25y.js} +31 -30
  285. package/dist/standalone/chunks/{bk-surface-D7e0tErs.js → bk-surface-BULRdKam.js} +1 -1
  286. package/dist/standalone/chunks/{bk-swatch-palette-x13JgJQi.js → bk-swatch-palette-Cqj85tSW.js} +1 -1
  287. package/dist/standalone/chunks/{bk-table-CP8n_jy7.js → bk-table-DWlD7yoM.js} +72 -71
  288. package/dist/standalone/chunks/bk-tabs-STkr3-E1.js +422 -0
  289. package/dist/standalone/chunks/{bk-toast-group-CoL6W7uk.js → bk-toast-group-5nZg7BaJ.js} +2 -2
  290. package/dist/standalone/chunks/{busy-BUB22mGY.js → busy-eG3uHonz.js} +1 -1
  291. package/dist/standalone/chunks/{choice-field-poOTerh1.js → choice-field-B0oe_9fI.js} +4 -4
  292. package/dist/standalone/chunks/{date-field-B-fCXa2D.js → date-field-Dy1_qxNv.js} +2 -2
  293. package/dist/standalone/chunks/define-6OfuRn5c.js +60 -0
  294. package/dist/standalone/chunks/{form-control-CHpfKAKa.js → form-control-Bmk0SRDX.js} +1 -1
  295. package/dist/standalone/chunks/{handle-menu-BgYUbGO2.js → handle-menu-BAe9fPYJ.js} +10 -36
  296. package/dist/standalone/chunks/{heading-text-CgnCa_q2.js → heading-text-B2kF-b8p.js} +1 -1
  297. package/dist/standalone/chunks/hue-vLbNdAEl.js +20 -0
  298. package/dist/standalone/chunks/late-CPQ_RbU-.js +30 -0
  299. package/dist/standalone/chunks/{options-BdC8-KKM.js → options-ySaDL-dW.js} +1 -1
  300. package/dist/standalone/chunks/{stars-BgKEjDQx.js → stars-BAUc_LqI.js} +1 -1
  301. package/dist/standalone/chunks/tags-CMLAGsVw.js +37 -0
  302. package/dist/standalone/chunks/{text-field-CqhJSAwZ.js → text-field-CufOGdfr.js} +16 -10
  303. package/dist/standalone/chunks/{toggle-control-lvZbQtGW.js → toggle-control-Cgqp1jhf.js} +4 -2
  304. package/dist/standalone/chunks/{virtual-C_h6sHnm.js → virtual-D-qgACnE.js} +1 -1
  305. package/dist/standalone/confirm.js +2 -2
  306. package/dist/standalone/reset.css +1 -1
  307. package/dist/standalone/toast.js +1 -1
  308. package/dist/standalone/tokens.css +1 -1
  309. package/dist/tokens.css +1 -1
  310. package/package.json +2 -2
  311. package/dist/standalone/chunks/define-DkVeu7e9.js +0 -30
  312. package/dist/standalone/chunks/hue-Jvb-141g.js +0 -14
  313. package/dist/standalone/chunks/keyed-CZ2AaouM.js +0 -16
@@ -18,8 +18,8 @@ function i() {
18
18
  return t;
19
19
  }
20
20
  var a = {
21
- polite: {},
22
- assertive: {}
21
+ polite: { pending: [] },
22
+ assertive: { pending: [] }
23
23
  };
24
24
  function o(e, t = {}) {
25
25
  if (!e || typeof document > "u") return;
@@ -29,8 +29,13 @@ function o(e, t = {}) {
29
29
  e.setAttribute("aria-live", n), e.setAttribute("aria-atomic", "true"), e.setAttribute("data-bk-announcer", n === "polite" ? "" : n), e.style.cssText = "position:fixed;inline-size:1px;block-size:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;";
30
30
  }
31
31
  let o = r.el, s = i() ?? document.body;
32
- o.parentNode !== s && s.append(o), o.textContent = "", clearTimeout(r.timer), r.timer = setTimeout(() => {
33
- o.textContent = e;
32
+ o.parentNode !== s && s.append(o);
33
+ let c = r.pending.findIndex((e) => e.source === t.source);
34
+ c >= 0 && r.pending.splice(c, 1), r.pending.push({
35
+ text: e,
36
+ source: t.source
37
+ }), o.textContent = "", clearTimeout(r.timer), r.timer = setTimeout(() => {
38
+ o.replaceChildren(...r.pending.map((e) => Object.assign(document.createElement("div"), { textContent: e.text }))), r.pending = [];
34
39
  }, 50);
35
40
  }
36
41
  export { r as i, i as n, n as r, o as t };
@@ -1,5 +1,5 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./lit-D8x-qXgH.js";
2
- import { t as i } from "./define-DkVeu7e9.js";
2
+ import { t as i } from "./define-6OfuRn5c.js";
3
3
  import { t as a } from "./i18n-DFfGgd3d.js";
4
4
  import { t as o } from "./styles-CaeyhYDA.js";
5
5
  import "../bk-alert.js";
@@ -1,7 +1,7 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./lit-D8x-qXgH.js";
2
2
  import { t as i } from "./i18n-DFfGgd3d.js";
3
- import { t as a } from "./announcer-D1zrRWwO.js";
4
- import { i as o, t as s } from "./define-DkVeu7e9.js";
3
+ import { t as a } from "./announcer-6tMlCOq1.js";
4
+ import { a as o, t as s } from "./define-6OfuRn5c.js";
5
5
  import { t as c } from "./events-DQ4e9cPN.js";
6
6
  import { t as l } from "./styles-CaeyhYDA.js";
7
7
  import "../bk-button.js";
@@ -1,12 +1,12 @@
1
1
  import { a as e, i as t, n, t as r, u as i } from "./lit-D8x-qXgH.js";
2
2
  import { t as a } from "./style-map-BMvn17E7.js";
3
3
  import { n as o, r as s, t as c } from "./directive-CwRgozUW.js";
4
- import { i as l, n as u, t as d } from "./define-DkVeu7e9.js";
4
+ import { a as l, r as u, t as d } from "./define-6OfuRn5c.js";
5
5
  import { t as f } from "./i18n-DFfGgd3d.js";
6
6
  import { t as p } from "./styles-CaeyhYDA.js";
7
7
  import { r as m } from "./chart-tokens-DQ4hVSmn.js";
8
8
  import "../bk-button.js";
9
- import "./bk-dialog-DwZyUUHh.js";
9
+ import "./bk-dialog-DcvwnOtN.js";
10
10
  import "./open-in-full-GXPfu8FA.js";
11
11
  // node_modules/lit-html/directives/unsafe-html.js
12
12
  var h = class extends o {
@@ -1,10 +1,10 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./lit-D8x-qXgH.js";
2
- import { i, t as a } from "./define-DkVeu7e9.js";
2
+ import { a as i, t as a } from "./define-6OfuRn5c.js";
3
3
  import { t as o } from "./i18n-DFfGgd3d.js";
4
4
  import { c as s, i as c } from "./anchor-CNX3nt2F.js";
5
5
  import { n as l, t as u } from "./command-DsBfHD9-.js";
6
6
  import { r as d } from "./events-DQ4e9cPN.js";
7
- import { r as f } from "./announcer-D1zrRWwO.js";
7
+ import { r as f } from "./announcer-6tMlCOq1.js";
8
8
  import { t as p } from "./slots-BHTtBbPo.js";
9
9
  import { t as m } from "./state-XYmTmnOw.js";
10
10
  import { h, t as g, u as _ } from "./styles-CaeyhYDA.js";
@@ -1,5 +1,5 @@
1
1
  import { n as e, t, u as n } from "./lit-D8x-qXgH.js";
2
- import { t as r } from "./define-DkVeu7e9.js";
2
+ import { t as r } from "./define-6OfuRn5c.js";
3
3
  import { t as i } from "./styles-CaeyhYDA.js";
4
4
  import { r as a, t as o } from "./registry-BTiSxoP0.js";
5
5
  // dist/icons/load.js
@@ -1,6 +1,6 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./lit-D8x-qXgH.js";
2
2
  import { t as i } from "./style-map-BMvn17E7.js";
3
- import { i as a, t as o } from "./define-DkVeu7e9.js";
3
+ import { a, t as o } from "./define-6OfuRn5c.js";
4
4
  import { n as s } from "./events-DQ4e9cPN.js";
5
5
  import { t as c } from "./i18n-DFfGgd3d.js";
6
6
  import { n as l, t as u } from "./crop-frame-Z9N0QML4.js";
@@ -10,7 +10,7 @@ import { S as f, t as p, x as m } from "./styles-CaeyhYDA.js";
10
10
  import "../bk-button.js";
11
11
  import "../bk-chip.js";
12
12
  import "../bk-chip-group.js";
13
- import "./bk-icon-Bp_flKdv.js";
13
+ import "./bk-icon-D4kI4F18.js";
14
14
  import "../bk-image-compare.js";
15
15
  import "../bk-input-slider.js";
16
16
  import "../bk-menu.js";
@@ -1,6 +1,6 @@
1
1
  import { a as e, n as t, u as n } from "./lit-D8x-qXgH.js";
2
- import { t as r } from "./define-DkVeu7e9.js";
3
- import { a as i, l as a, o, r as s, s as c, t as l } from "./date-field-B-fCXa2D.js";
2
+ import { t as r } from "./define-6OfuRn5c.js";
3
+ import { a as i, l as a, o, r as s, s as c, t as l } from "./date-field-Dy1_qxNv.js";
4
4
  import { t as u } from "./state-XYmTmnOw.js";
5
5
  import { utc as d, validIso as f } from "../bk-calendar.js";
6
6
  import "../bk-button.js";
@@ -1,11 +1,11 @@
1
1
  import { a as e, n as t, u as n } from "./lit-D8x-qXgH.js";
2
2
  import { t as r } from "./if-defined-z_20pBRr.js";
3
3
  import { t as i } from "./i18n-DFfGgd3d.js";
4
- import { t as a } from "./define-DkVeu7e9.js";
5
- import { n as o } from "./bk-input-text-DviyLBqj.js";
4
+ import { t as a } from "./define-6OfuRn5c.js";
5
+ import { n as o } from "./bk-input-text-2n89GDIT.js";
6
6
  import { t as s } from "./events-DQ4e9cPN.js";
7
7
  import { n as c, t as l } from "./field-DkBkSgJI.js";
8
- import { t as u } from "./form-control-CHpfKAKa.js";
8
+ import { t as u } from "./form-control-Bmk0SRDX.js";
9
9
  import { t as d } from "./prose-BiuJgiah.js";
10
10
  import { r as f, s as p, t as m } from "./styles-CaeyhYDA.js";
11
11
  import "../bk-button.js";
@@ -2,11 +2,11 @@ import { a as e, n as t, u as n } from "./lit-D8x-qXgH.js";
2
2
  import { t as r } from "./if-defined-z_20pBRr.js";
3
3
  import { t as i } from "./live-CgLyfc6z.js";
4
4
  import { t as a } from "./style-map-BMvn17E7.js";
5
- import { t as o } from "./define-DkVeu7e9.js";
5
+ import { t as o } from "./define-6OfuRn5c.js";
6
6
  import { t as s } from "./events-DQ4e9cPN.js";
7
- import { t as c } from "./text-field-CqhJSAwZ.js";
7
+ import { t as c } from "./text-field-CufOGdfr.js";
8
8
  import { g as l, t as u } from "./shortcuts-DPxCSO4M.js";
9
- import "./bk-icon-Bp_flKdv.js";
9
+ import "./bk-icon-D4kI4F18.js";
10
10
  import { r as d } from "./submit-BjBGB8OW.js";
11
11
  import "./search-Cm9mOqRy.js";
12
12
  import "./visibility-DFNni3bx.js";
@@ -161,6 +161,16 @@ var S = /* @__PURE__ */ new Set([
161
161
  constructor() {
162
162
  super(), this.value = "", this.type = "text", this.readonly = !1, this.multiline = !1, this.mono = !1, this.autofocus = !1, this.enterKeyHint = "", this.counter = !1, this.autogrow = !1, this.revealed = !1;
163
163
  }
164
+ static get observedAttributes() {
165
+ return [...super.observedAttributes, "spellcheck"];
166
+ }
167
+ attributeChangedCallback(e, t, n) {
168
+ super.attributeChangedCallback(e, t, n), e === "spellcheck" && this.requestUpdate();
169
+ }
170
+ get spellcheckAttr() {
171
+ let e = this.getAttribute?.("spellcheck");
172
+ return e == null ? this.mono ? "false" : void 0 : e === "false" ? "false" : "true";
173
+ }
164
174
  unsubscribeShortcuts;
165
175
  connectedCallback() {
166
176
  super.connectedCallback(), this.defaultValue ||= this.getAttribute("value") ?? "", this.unsubscribeShortcuts = l(() => {
@@ -338,14 +348,14 @@ var S = /* @__PURE__ */ new Set([
338
348
  placeholder=${r(this.placeholder)} rows=${r(this.rows)} style=${a(d)} ?disabled=${f}
339
349
  ?readonly=${this.readonly} ?required=${this.required} ?autofocus=${this.autofocus}
340
350
  minlength=${r(this.minlength)} maxlength=${r(this.maxlength)}
341
- autocomplete=${r(this.autocomplete)} aria-invalid=${p}
351
+ autocomplete=${r(this.autocomplete)} aria-invalid=${p} spellcheck=${r(this.spellcheckAttr)}
342
352
  aria-describedby=${r(o)} aria-label=${r(s)} enterkeyhint=${r(this.enterKeyHint || void 0)}
343
353
  aria-keyshortcuts=${r(m)} @input=${this.onInput} @change=${this.onChange}></textarea>` : e`<input part="input" id="control" .value=${i(this.formattedValue)} type=${l}
344
354
  placeholder=${r(this.placeholder)} ?disabled=${f} ?readonly=${this.readonly}
345
355
  ?required=${this.required} ?autofocus=${this.autofocus} minlength=${r(this.minlength)}
346
356
  maxlength=${r(this.mask ? void 0 : this.maxlength)} pattern=${r(this.pattern)} autocomplete=${r(this.autocomplete)}
347
357
  inputmode=${r(this.inputmode ?? this.maskInputmode)} enterkeyhint=${r(this.enterKeyHint || void 0)} aria-invalid=${p}
348
- aria-describedby=${r(o)} aria-label=${r(s)} aria-keyshortcuts=${r(m)}
358
+ spellcheck=${r(this.spellcheckAttr)} aria-describedby=${r(o)} aria-label=${r(s)} aria-keyshortcuts=${r(m)}
349
359
  @input=${this.onInput} @change=${this.onChange} @keydown=${this.onKeydown} />`;
350
360
  return this.renderField(e`<div class=${this.boxClass} part="box">
351
361
  ${this.renderStart()}
@@ -1,13 +1,13 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./lit-D8x-qXgH.js";
2
2
  import { t as i } from "./style-map-BMvn17E7.js";
3
- import { i as a, t as o } from "./define-DkVeu7e9.js";
3
+ import { a, t as o } from "./define-6OfuRn5c.js";
4
4
  import { t as s } from "./i18n-DFfGgd3d.js";
5
5
  import { n as c } from "./events-DQ4e9cPN.js";
6
6
  import { t as l } from "./loading-B37QBUkv.js";
7
7
  import { t as u } from "./slots-BHTtBbPo.js";
8
8
  import { t as d, x as f } from "./styles-CaeyhYDA.js";
9
9
  import "../bk-button.js";
10
- import "./bk-icon-Bp_flKdv.js";
10
+ import "./bk-icon-D4kI4F18.js";
11
11
  import "../bk-spinner.js";
12
12
  import "./arrow-down-yAm1AGV7.js";
13
13
  import "./arrow-up-BfHTuP3c.js";
@@ -0,0 +1,186 @@
1
+ import { a as e, n as t, t as n, u as r } from "./lit-D8x-qXgH.js";
2
+ import { t as i } from "./if-defined-z_20pBRr.js";
3
+ import { n as a, t as o } from "./directive-CwRgozUW.js";
4
+ import { r as s } from "./directive-helpers-BWELZlCh.js";
5
+ import { t as c } from "./style-map-BMvn17E7.js";
6
+ import { t as l } from "./i18n-DFfGgd3d.js";
7
+ import { a as u, t as d } from "./define-6OfuRn5c.js";
8
+ import { n as f } from "./events-DQ4e9cPN.js";
9
+ import { t as p } from "./link--YWr8exL.js";
10
+ import { t as m } from "./slots-BHTtBbPo.js";
11
+ import { t as h, v as g } from "./styles-CaeyhYDA.js";
12
+ import "../bk-button.js";
13
+ import "./bk-icon-D4kI4F18.js";
14
+ import "./error-BWRRZUg8.js";
15
+ import "./image-t401521J.js";
16
+ import "./refresh-BeOCgDeL.js";
17
+ // node_modules/lit-html/directives/keyed.js
18
+ var _ = o(class extends a {
19
+ constructor() {
20
+ super(...arguments), this.key = t;
21
+ }
22
+ render(e, t) {
23
+ return this.key = e, t;
24
+ }
25
+ update(e, [t, n]) {
26
+ return t !== this.key && (s(e), this.key = t), n;
27
+ }
28
+ }), v = class extends n {
29
+ static properties = {
30
+ src: {},
31
+ alt: {},
32
+ srcset: {},
33
+ sizes: {},
34
+ ratio: { reflect: !0 },
35
+ fit: {
36
+ reflect: !0,
37
+ useDefault: !0
38
+ },
39
+ loading: {},
40
+ href: {},
41
+ target: {},
42
+ rel: {},
43
+ download: {},
44
+ errorLabel: { attribute: "error-label" },
45
+ retryLabel: { attribute: "retry-label" },
46
+ loaded: { state: !0 },
47
+ failed: { state: !0 },
48
+ previous: { state: !0 },
49
+ attempt: { state: !0 },
50
+ compact: { state: !0 }
51
+ };
52
+ slots = new m(this);
53
+ i18n = new l(this);
54
+ sizer = u(() => this.measure());
55
+ links = new p(this);
56
+ constructor() {
57
+ super(), this.src = "", this.alt = "", this.fit = "cover", this.loading = "lazy", this.loaded = !1, this.failed = !1, this.previous = "", this.attempt = 0, this.compact = !1, this.errorLabel = "", this.retryLabel = "";
58
+ }
59
+ static styles = [
60
+ h,
61
+ g,
62
+ r`
63
+ :host { display: block; min-inline-size: 0; inline-size: var(--bk-picture-width, auto); }
64
+ figure { margin: 0; display: grid; gap: var(--bk-picture-caption-gap, var(--bk-space-lines)); }
65
+ .frame {
66
+ position: relative; overflow: hidden; aspect-ratio: var(--_bk-picture-ratio, var(--bk-picture-ratio, auto));
67
+ border-radius: var(--bk-picture-radius, var(--bk-radius-container, var(--bk-radius-lg)));
68
+ background: var(--bk-picture-bg, var(--bk-layer-sunken-bg));
69
+ }
70
+ .frame.loaded { background: var(--bk-picture-loaded-bg, none); }
71
+ /* An empty frame and a small failed picture have no image to give the ratio. */
72
+ .frame:is(.empty, .compact) { aspect-ratio: var(--_bk-picture-ratio, var(--bk-picture-ratio, 4/3)); }
73
+ .frame.compact .image { display: none; }
74
+ .placeholder, .error.compact {
75
+ position: absolute; inset: 0; display: grid; place-items: center; min-block-size: 0; padding: 0;
76
+ color: var(--bk-picture-placeholder-color, var(--bk-text-faint));
77
+ /* The size inherits into an icon in the empty slot too. */
78
+ --bk-icon-size: var(--bk-picture-placeholder-icon-size, var(--bk-icon-lg));
79
+ }
80
+ .error.compact { grid-auto-flow: column; place-content: center; gap: var(--bk-space-1); }
81
+ .error-probe { position: absolute; inline-size: var(--bk-picture-error-min-width, calc(5 * var(--bk-control-md))); block-size: 0; visibility: hidden; pointer-events: none; }
82
+ img, ::slotted(:is(img, video, svg)) {
83
+ display: block; inline-size: 100%; block-size: auto; max-inline-size: 100%;
84
+ }
85
+ /* The image covers the box when a ratio (the attribute or the token) fixes its height. Without one the
86
+ height of the frame is auto, the 100% is auto too, and the image keeps its own ratio. */
87
+ img, ::slotted(:is(img, video, svg)) { block-size: 100%; object-fit: cover; }
88
+ :host([fit="contain"]) :is(img, ::slotted(:is(img, video))) { object-fit: contain; }
89
+ /* The link of a picture with href covers the frame; the retry button lies above it. */
90
+ .link {
91
+ position: absolute; inset: 0; z-index: 1; border-radius: inherit;
92
+ --_bk-interactive-hover: var(--bk-picture-hover-bg, var(--bk-hover));
93
+ --_bk-interactive-pressed: var(--bk-picture-pressed-bg, var(--bk-pressed));
94
+ --_bk-interactive-focus-offset: var(--bk-focus-offset-inset);
95
+ }
96
+ .error bk-button { position: relative; z-index: 2; }
97
+ /* The image fades in once it has loaded. */
98
+ .image { opacity: 0; transition: opacity var(--bk-duration) var(--bk-ease); }
99
+ .image.in { opacity: 1; }
100
+ .image.failed { visibility: hidden; }
101
+ /* While the next image loads, the last one keeps the box; the next one lies over it. */
102
+ .frame.swap .image:not(.in) { position: absolute; inset: 0; block-size: 100%; object-fit: cover; }
103
+ :host([fit="contain"]) .frame.swap .image:not(.in) { object-fit: contain; }
104
+ .error {
105
+ display: grid; place-content: center; justify-items: center; gap: var(--bk-space-2);
106
+ min-block-size: calc(4 * var(--bk-control-md)); padding: var(--bk-space-4); text-align: center;
107
+ color: var(--bk-picture-error-fg, var(--bk-text-muted)); font-size: var(--bk-text-sm); line-height: var(--bk-line-height-body);
108
+ }
109
+ :host([ratio]) .error { position: absolute; inset: 0; min-block-size: 0; }
110
+ .error:not(.compact) bk-icon { --bk-icon-size: var(--bk-icon-lg); }
111
+ @media (prefers-reduced-motion: reduce) { .image { transition: none; } }
112
+ .caption { color: var(--bk-picture-caption-fg, var(--bk-text-muted)); font-size: var(--bk-picture-caption-size, var(--bk-text-sm)); line-height: var(--bk-line-height-body); }
113
+ @media (forced-colors: active) { .frame { border: var(--bk-border-width) solid CanvasText; } }
114
+ `
115
+ ];
116
+ willUpdate(e) {
117
+ if (e.has("src")) {
118
+ let t = e.get("src");
119
+ this.previous = this.loaded && !this.failed && t ? t : this.loaded ? "" : this.previous, this.src || (this.previous = ""), this.loaded = !1, this.failed = !1;
120
+ }
121
+ this.failed || (this.compact = !1);
122
+ }
123
+ updated(e) {
124
+ if (e.has("failed")) {
125
+ let e = this.renderRoot.querySelector(".frame"), t = this.renderRoot.querySelector(".error-probe");
126
+ this.sizer.disconnect(), this.failed && e && t && (this.sizer.observe(e), this.sizer.observe(t));
127
+ }
128
+ let t = this.renderRoot.querySelector("img.image");
129
+ t && !this.loaded && !this.failed && t.complete && t.naturalWidth && this.onLoad();
130
+ }
131
+ disconnectedCallback() {
132
+ super.disconnectedCallback(), this.sizer.disconnect();
133
+ }
134
+ measure() {
135
+ let e = this.renderRoot.querySelector(".frame"), t = this.renderRoot.querySelector(".error-probe");
136
+ if (!e || !t) return;
137
+ let n = e.getBoundingClientRect().width < t.getBoundingClientRect().width;
138
+ n !== this.compact && (this.compact = n);
139
+ }
140
+ onLoad() {
141
+ this.loaded = !0, this.previous = "";
142
+ let e = this.renderRoot.querySelector("img.image");
143
+ f(this, "load", {
144
+ src: this.src,
145
+ naturalWidth: e?.naturalWidth ?? 0,
146
+ naturalHeight: e?.naturalHeight ?? 0
147
+ });
148
+ }
149
+ onError() {
150
+ this.failed = !0, this.previous = "", f(this, "error", { src: this.src });
151
+ }
152
+ retry(e) {
153
+ e.stopPropagation(), this.failed = !1, this.attempt++;
154
+ }
155
+ cover() {
156
+ return this.href ? e`<a class="link interactive" part="link" href=${this.links.href(this.href)} @click=${this.links.click} target=${i(this.target)}
157
+ rel=${i(this.rel ?? (this.target === "_blank" ? "noopener noreferrer" : void 0))}
158
+ download=${i(this.download)} aria-label=${this.alt || t}></a>` : t;
159
+ }
160
+ frame() {
161
+ let n = !!this.previous && !this.loaded, r = !this.src && this.slots.has(""), i = !this.src && !r, a = this.failed && this.compact, o = this.errorLabel || this.i18n.t("imageError");
162
+ return e`<div class="frame ${this.loaded || r ? "loaded" : ""} ${i ? "empty" : ""} ${a ? "compact" : ""} ${n ? "swap" : ""}" part="frame" style=${c({ "--_bk-picture-ratio": this.ratio?.replace(":", "/") || void 0 })}>
163
+ ${n ? e`<img class="previous" src=${this.previous} alt="" aria-hidden="true" decoding="async" />` : t}
164
+ ${this.src ? _(`${this.src}|${this.attempt}`, e`<img class="image ${this.loaded ? "in" : ""} ${this.failed ? "failed" : ""}" part="image"
165
+ src=${this.src} alt=${this.href ? "" : this.alt} srcset=${this.srcset || t} sizes=${this.sizes || t}
166
+ loading=${this.loading} decoding="async" @load=${this.onLoad} @error=${this.onError} />`) : e`<slot></slot>`}
167
+ ${i ? e`<div class="placeholder" part="placeholder"><slot name="empty"><bk-icon name="image"></bk-icon></slot></div>` : t}
168
+ ${this.failed ? a ? e`<div class="error compact" part="error">
169
+ <bk-icon name="error" label=${o} title=${o}></bk-icon>
170
+ <bk-button size="sm" variant="ghost" icon="refresh" label=${this.retryLabel || this.i18n.t("pictureRetry")} @click=${this.retry}></bk-button>
171
+ </div>` : e`<div class="error" part="error">
172
+ <bk-icon name="error"></bk-icon>
173
+ <span>${o}</span>
174
+ <bk-button size="sm" variant="outline" icon="refresh" @click=${this.retry}>${this.retryLabel || this.i18n.t("pictureRetry")}</bk-button>
175
+ </div>` : t}
176
+ ${this.cover()}
177
+ ${this.failed ? e`<span class="error-probe" aria-hidden="true"></span>` : t}
178
+ </div>`;
179
+ }
180
+ render() {
181
+ let t = this.slots.has("caption"), n = e`<figcaption class="caption" part="caption" ?hidden=${!t}><slot name="caption"></slot></figcaption>`;
182
+ return t ? e`<figure>${this.frame()}${n}</figure>` : e`${this.frame()}<div hidden>${n}</div>`;
183
+ }
184
+ };
185
+ d("bk-picture", v);
186
+ export { v as t };
@@ -1,5 +1,5 @@
1
1
  import { a as e, n as t, t as n, u as r } from "./lit-D8x-qXgH.js";
2
- import { t as i } from "./define-DkVeu7e9.js";
2
+ import { t as i } from "./define-6OfuRn5c.js";
3
3
  import { t as a } from "./i18n-DFfGgd3d.js";
4
4
  import { t as o, x as s } from "./styles-CaeyhYDA.js";
5
5
  // dist/internal/qr.js
@@ -2,15 +2,16 @@ import { a as e, d as t, n, t as r, u as i } from "./lit-D8x-qXgH.js";
2
2
  import { t as a } from "./if-defined-z_20pBRr.js";
3
3
  import { t as o } from "./style-map-BMvn17E7.js";
4
4
  import { c as s } from "./anchor-CNX3nt2F.js";
5
- import { n as c, r as l, t as u } from "./define-DkVeu7e9.js";
5
+ import { i as c, r as l, t as u } from "./define-6OfuRn5c.js";
6
6
  import { t as d } from "./link--YWr8exL.js";
7
7
  import { t as f } from "./i18n-DFfGgd3d.js";
8
8
  import { n as p, r as m } from "./events-DQ4e9cPN.js";
9
- import { a as h, i as g, n as _, r as v, t as y } from "./handle-menu-BgYUbGO2.js";
10
- import { t as b } from "./state-XYmTmnOw.js";
11
- import { d as x, p as S } from "./shortcuts-DPxCSO4M.js";
12
- import { a as C, d as w, t as T, v as E } from "./styles-CaeyhYDA.js";
13
- import "./bk-icon-Bp_flKdv.js";
9
+ import { i as h, n as g, r as _, t as v } from "./handle-menu-BAe9fPYJ.js";
10
+ import { t as y } from "./state-XYmTmnOw.js";
11
+ import { d as b, p as x } from "./shortcuts-DPxCSO4M.js";
12
+ import { a as S, d as C, t as w, v as T } from "./styles-CaeyhYDA.js";
13
+ import { t as E } from "./late-CPQ_RbU-.js";
14
+ import "./bk-icon-D4kI4F18.js";
14
15
  import "../bk-button.js";
15
16
  import "../bk-nav-item.js";
16
17
  import { t as D } from "./own-text-mpZVnMyX.js";
@@ -20,7 +21,7 @@ import "./search-Cm9mOqRy.js";
20
21
  import "./sidebar-collapse-uvu3jE3r.js";
21
22
  import "./sidebar-expand-QkDkPjTV.js";
22
23
  // dist/components/bk-shell-app.js
23
- var O = new h({ "bk-drawer": () => import("../bk-drawer.js") }, "bk-drawer"), k = ToggleEvent, A = class extends k {
24
+ var O = new E({ "bk-drawer": () => import("../bk-drawer.js") }, "bk-drawer"), k = ToggleEvent, A = class extends k {
24
25
  region;
25
26
  constructor(e, t) {
26
27
  super("toggle", {
@@ -139,17 +140,17 @@ var O = new h({ "bk-drawer": () => import("../bk-drawer.js") }, "bk-drawer"), k
139
140
  asideOpen: this.persistedFlag("asideOpen", ".aside")
140
141
  };
141
142
  authoredWidth;
142
- storedWidth = new b(this, () => this.persistKey && `app-shell:${this.persistKey}.aside-width`, { onChange: (e) => {
143
+ storedWidth = new y(this, () => this.persistKey && `app-shell:${this.persistKey}.aside-width`, { onChange: (e) => {
143
144
  this.authoredWidth ??= this.asideWidth ?? null, this.asideWidth = typeof e == "number" ? e : this.authoredWidth ?? void 0;
144
145
  } });
145
146
  draggingAside = !1;
146
147
  resizeObserver;
147
- children$ = l(() => this.requestUpdate());
148
- childAttrs$ = l(() => this.requestUpdate());
148
+ children$ = c(() => this.requestUpdate());
149
+ childAttrs$ = c(() => this.requestUpdate());
149
150
  asideTriggers = [];
150
151
  sidebarTriggers = [];
151
152
  persistedFlag(e, t) {
152
- return new b(this, () => this.persistKey && `app-shell:${this.persistKey}${t}`, { onChange: (t) => {
153
+ return new y(this, () => this.persistKey && `app-shell:${this.persistKey}${t}`, { onChange: (t) => {
153
154
  this.authored ??= {
154
155
  sidebarCollapsed: this.sidebarCollapsed,
155
156
  asideOpen: this.asideOpen
@@ -182,11 +183,11 @@ var O = new h({ "bk-drawer": () => import("../bk-drawer.js") }, "bk-drawer"), k
182
183
  e.replaceSync(`:root { ${t} ${n ? `scroll-padding-bottom: ${n}px;` : ""} }`);
183
184
  }
184
185
  static styles = [
185
- T,
186
- C,
187
186
  w,
188
- E,
189
- _,
187
+ S,
188
+ C,
189
+ T,
190
+ g,
190
191
  i`
191
192
  :host {
192
193
  font-weight: var(--bk-weight-body, var(--bk-weight-regular)); font-feature-settings: var(--bk-features, normal);
@@ -597,7 +598,7 @@ var O = new h({ "bk-drawer": () => import("../bk-drawer.js") }, "bk-drawer"), k
597
598
  return [...this.children].find((t) => t.contains(e))?.getAttribute("slot") ?? "";
598
599
  }
599
600
  get placedToggles() {
600
- let e = [...c(this)?.querySelectorAll("[data-sidebar-toggle]") ?? []];
601
+ let e = [...l(this)?.querySelectorAll("[data-sidebar-toggle]") ?? []];
601
602
  return {
602
603
  all: e,
603
604
  inHeader: e.some((e) => [
@@ -608,7 +609,7 @@ var O = new h({ "bk-drawer": () => import("../bk-drawer.js") }, "bk-drawer"), k
608
609
  };
609
610
  }
610
611
  get searchElement() {
611
- return [...c(this)?.querySelectorAll("[data-header-search]") ?? []].find((e) => z.includes(this.slotOf(e))) ?? null;
612
+ return [...l(this)?.querySelectorAll("[data-header-search]") ?? []].find((e) => z.includes(this.slotOf(e))) ?? null;
612
613
  }
613
614
  get hasSearch() {
614
615
  return !!this.searchElement;
@@ -634,12 +635,12 @@ var O = new h({ "bk-drawer": () => import("../bk-drawer.js") }, "bk-drawer"), k
634
635
  bindSearchShortcut() {
635
636
  let e = this.isConnected && this.hasSearch && this.searchShortcut !== "none" ? this.searchShortcut.trim() : "";
636
637
  if (e === this.boundSearchKeys || (this.unbindSearch?.(), this.unbindSearch = void 0, this.boundSearchKeys = e, !e)) return;
637
- let t = S([{
638
+ let t = x([{
638
639
  id: V,
639
640
  keys: e,
640
641
  label: this.t("searchShortcut"),
641
642
  global: !0
642
- }]), n = x(V, this.onSearchShortcut);
643
+ }]), n = b(V, this.onSearchShortcut);
643
644
  this.unbindSearch = () => {
644
645
  n(), t();
645
646
  };
@@ -705,7 +706,7 @@ var O = new h({ "bk-drawer": () => import("../bk-drawer.js") }, "bk-drawer"), k
705
706
  }
706
707
  get optionalItems() {
707
708
  let e = this.headerSlots;
708
- return [...c(this)?.querySelectorAll("[data-header-priority]") ?? []].filter((t) => e.includes(this.slotOf(t))).map((e, t) => ({
709
+ return [...l(this)?.querySelectorAll("[data-header-priority]") ?? []].filter((t) => e.includes(this.slotOf(t))).map((e, t) => ({
709
710
  el: e,
710
711
  i: t,
711
712
  p: Number(e.dataset.headerPriority) || 1
@@ -802,7 +803,7 @@ var O = new h({ "bk-drawer": () => import("../bk-drawer.js") }, "bk-drawer"), k
802
803
  willUpdate(e) {
803
804
  super.willUpdate(e), this.drawers && O.start();
804
805
  let t = /* @__PURE__ */ new Set(), n = !1, r = !1, i = 0, a = !1;
805
- for (let e of c(this)?.childNodes ?? []) if (e instanceof Element) {
806
+ for (let e of l(this)?.childNodes ?? []) if (e instanceof Element) {
806
807
  this.childAttrs$.observe(e, {
807
808
  attributes: !0,
808
809
  attributeFilter: ["slot", "mode"]
@@ -812,10 +813,10 @@ var O = new h({ "bk-drawer": () => import("../bk-drawer.js") }, "bk-drawer"), k
812
813
  e.localName === "bk-columns" && !["split", "stack"].includes(e.getAttribute("mode") ?? "") ? r = !0 : N.has(e.localName) && (n = !0), P.has(e.localName) ? i++ : a = !0;
813
814
  } else e.nodeType === Node.TEXT_NODE && e.textContent?.trim() && (t.add("default"), a = !0);
814
815
  this.used = t, n !== this.workspace && (this.workspace = n), this.setState("sections", !n && !a && i > 0), this.setState("flow", !n && r), (e.has("breakpoint") || e.has("asideBreakpoint")) && this.applyWidth(), !this.narrow && this.navigationOpen && (this.navigationOpen = !1), this.narrow && this.hasSearch || !this.searchOpen || (this.searchOpen = !1);
815
- let o = c(this)?.querySelector("bk-page-header[snap]"), s = o?.headingText ?? "";
816
+ let o = l(this)?.querySelector("bk-page-header[snap]"), s = o?.headingText ?? "";
816
817
  s !== this.snapTitle && (this.snapTitle = s);
817
- let l = !!o?.collapsed;
818
- l !== this.snapCollapsed && (this.snapCollapsed = l), !this.asideOverlay && this.asideDrawerOpen && (this.asideDrawerOpen = !1), this.setState("narrow", this.narrow), this.setState("aside-overlay", this.asideOverlay), this.setState("workspace", this.workspace);
818
+ let c = !!o?.collapsed;
819
+ c !== this.snapCollapsed && (this.snapCollapsed = c), !this.asideOverlay && this.asideDrawerOpen && (this.asideDrawerOpen = !1), this.setState("narrow", this.narrow), this.setState("aside-overlay", this.asideOverlay), this.setState("workspace", this.workspace);
819
820
  }
820
821
  setState(e, t) {
821
822
  t ? this.internals.states.add(e) : this.internals.states.delete(e);
@@ -857,7 +858,7 @@ var O = new h({ "bk-drawer": () => import("../bk-drawer.js") }, "bk-drawer"), k
857
858
  }
858
859
  async getUpdateComplete() {
859
860
  let e = await super.getUpdateComplete();
860
- return this.drawers && await O.start(), this.asideMoves.length && await v(), await Promise.all([...this.renderRoot.querySelectorAll("bk-drawer")].map((e) => e.updateComplete)), e;
861
+ return this.drawers && await O.start(), this.asideMoves.length && await _(), await Promise.all([...this.renderRoot.querySelectorAll("bk-drawer")].map((e) => e.updateComplete)), e;
861
862
  }
862
863
  measureScrollbar() {
863
864
  let e = this.renderRoot.querySelector(".sidebar-scroll");
@@ -892,7 +893,7 @@ var O = new h({ "bk-drawer": () => import("../bk-drawer.js") }, "bk-drawer"), k
892
893
  });
893
894
  (this.watched.length || r.length) && this.refit(), this.watched = n;
894
895
  }
895
- headerContent = l((e) => {
896
+ headerContent = c((e) => {
896
897
  this.isContentChange(e) && this.refit();
897
898
  });
898
899
  refit() {
@@ -904,7 +905,7 @@ var O = new h({ "bk-drawer": () => import("../bk-drawer.js") }, "bk-drawer"), k
904
905
  let t = this.renderRoot.querySelector(".bottom-nav");
905
906
  t ? this.resizeObserver?.observe(t) : this.bottomNavHeight &&= 0;
906
907
  }
907
- bottomItems = l(() => this.requestUpdate());
908
+ bottomItems = c(() => this.requestUpdate());
908
909
  watchBottomItems() {
909
910
  if (this.bottomItems.disconnect(), this.bottomNav) for (let e of this.children) e.getAttribute("slot") === this.bottomSource && this.bottomItems.observe(e, {
910
911
  subtree: !0,
@@ -961,7 +962,7 @@ var O = new h({ "bk-drawer": () => import("../bk-drawer.js") }, "bk-drawer"), k
961
962
  for (let e of this.children) e.localName === "bk-columns" && !e.slot && (e.narrow = this.narrow);
962
963
  }
963
964
  syncTriggers(e, t, n) {
964
- let r = [...c(this)?.querySelectorAll(`[${e}]`) ?? []];
965
+ let r = [...l(this)?.querySelectorAll(`[${e}]`) ?? []];
965
966
  for (let e of t) r.includes(e) || s(e, {
966
967
  expanded: null,
967
968
  haspopup: null
@@ -1147,7 +1148,7 @@ var O = new h({ "bk-drawer": () => import("../bk-drawer.js") }, "bk-drawer"), k
1147
1148
  ];
1148
1149
  }
1149
1150
  openAsideMenu(e, t) {
1150
- this.draggingAside || (this.asideMoves = this.asideStepsOf(), g(this, e, t));
1151
+ this.draggingAside || (this.asideMoves = this.asideStepsOf(), h(this, e, t));
1151
1152
  }
1152
1153
  onResizeClick(e) {
1153
1154
  e.detail !== 1 || e.button !== 0 || this.draggingAside || Math.hypot(e.clientX - this.pressAt.x, e.clientY - this.pressAt.y) > 4 || this.openAsideMenu(e.currentTarget, {
@@ -1227,7 +1228,7 @@ var O = new h({ "bk-drawer": () => import("../bk-drawer.js") }, "bk-drawer"), k
1227
1228
  ${this.bottomNav ? this.renderBottomNav() : n}
1228
1229
  ${this.renderNavDrawer()}
1229
1230
  ${this.has("aside") ? this.renderAsideDrawer(i) : n}
1230
- ${this.asideMoves.length ? y(this.asideResizeLabel || this.t("resizePanel"), this.asideMoves) : n}
1231
+ ${this.asideMoves.length ? v(this.asideResizeLabel || this.t("resizePanel"), this.asideMoves) : n}
1231
1232
  </div>`;
1232
1233
  }
1233
1234
  };
@@ -1,5 +1,5 @@
1
1
  import { a as e, t, u as n } from "./lit-D8x-qXgH.js";
2
- import { t as r } from "./define-DkVeu7e9.js";
2
+ import { t as r } from "./define-6OfuRn5c.js";
3
3
  import { t as i } from "./styles-CaeyhYDA.js";
4
4
  import { t as a } from "./host-vars-DTKbhBPu.js";
5
5
  // dist/internal/space.js
@@ -1,5 +1,5 @@
1
1
  import { a as e, d as t, t as n, u as r } from "./lit-D8x-qXgH.js";
2
- import { t as i } from "./define-DkVeu7e9.js";
2
+ import { t as i } from "./define-6OfuRn5c.js";
3
3
  import { i as a } from "./tokens-C_ul7pL9.js";
4
4
  import { t as o } from "./styles-CaeyhYDA.js";
5
5
  import { t as s } from "./host-vars-DTKbhBPu.js";