@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
@@ -1,21 +1,22 @@
1
1
  import { a as e, d as t, n, r, t as i, u as a } from "./lit-D8x-qXgH.js";
2
2
  import { t as o } from "./style-map-BMvn17E7.js";
3
- import { i as s, n as c, r as l, t as u } from "./define-DkVeu7e9.js";
4
- import { t as d } from "./announcer-D1zrRWwO.js";
5
- import { i as f, n as p, o as m, t as h } from "./link--YWr8exL.js";
6
- import { i as g, n as _ } from "./events-DQ4e9cPN.js";
7
- import { t as v } from "./state-XYmTmnOw.js";
8
- import { t as ee } from "./light-styles-CFbyUU7I.js";
3
+ import { a as s, i as c, r as l, t as u } from "./define-6OfuRn5c.js";
4
+ import { t as d } from "./announcer-6tMlCOq1.js";
5
+ import { i as f, n as p, o as ee, t as m } from "./link--YWr8exL.js";
6
+ import { i as h, n as g } from "./events-DQ4e9cPN.js";
7
+ import { t as _ } from "./state-XYmTmnOw.js";
8
+ import { t as v } from "./light-styles-CFbyUU7I.js";
9
9
  import { t as y } from "./slots-BHTtBbPo.js";
10
- import { n as b, t as x } from "./busy-BUB22mGY.js";
11
- import { n as S, t as C } from "./virtual-C_h6sHnm.js";
12
- import { a as w, i as T, n as E, o as D, t as O } from "./handle-menu-BgYUbGO2.js";
13
- import { c as k, i as A, n as j } from "./anchor-CNX3nt2F.js";
14
- import { t as te } from "./clipboard-UVLSkL4C.js";
15
- import { t as ne } from "./i18n-DFfGgd3d.js";
16
- import { S as M, f as N, t as P } from "./styles-CaeyhYDA.js";
10
+ import { n as te, t as b } from "./busy-eG3uHonz.js";
11
+ import { n as x, t as S } from "./virtual-D-qgACnE.js";
12
+ import { i as C, n as w, t as T } from "./handle-menu-BAe9fPYJ.js";
13
+ import { c as E, i as D, n as O } from "./anchor-CNX3nt2F.js";
14
+ import { t as k } from "./clipboard-UVLSkL4C.js";
15
+ import { t as A } from "./i18n-DFfGgd3d.js";
16
+ import { S as j, f as M, t as ne } from "./styles-CaeyhYDA.js";
17
+ import { n as N, t as P } from "./late-CPQ_RbU-.js";
17
18
  import "../bk-button.js";
18
- import "./bk-icon-Bp_flKdv.js";
19
+ import "./bk-icon-D4kI4F18.js";
19
20
  import "./add-CUFUzxGc.js";
20
21
  import "./arrow-back-DJBwVPZy.js";
21
22
  import "./arrow-down-yAm1AGV7.js";
@@ -45,7 +46,7 @@ var F = {
45
46
  "bk-input-text": () => import("../bk-input-text.js"),
46
47
  "bk-skeleton": () => import("../bk-skeleton.js"),
47
48
  "bk-select": () => import("../bk-select.js")
48
- }, I = new w(F, "bk-checkbox"), L = new w(F, "bk-filter-bar", "bk-popover"), R = new w(F, "bk-menu-context", "bk-menu-item", "bk-menu-divider", "bk-menu-label"), z = new w(F, "bk-input-number", "bk-input-text"), B = new w(F, "bk-skeleton"), V = new w(F, "bk-select"), H = 48, U = 16, W = 64, G = 3, K = 10, q = "[data-bk-select], [data-bk-handle]", J = "button, a[href], input, select, textarea, bk-checkbox, bk-button, bk-switch, bk-link, bk-select, .bk-table-resize, [tabindex]:not(td, th, tr)", Y = "button, a[href], input, select, textarea, label, summary, [contenteditable], [role='button'], [tabindex]:not(td, th, tr), [data-row-action], bk-button, bk-button-copy, bk-button-share, bk-checkbox, bk-switch, bk-link, bk-select, bk-menu, bk-input-inline, bk-input-rating", X = ":scope > table > :is(thead, tbody:not([data-bk-state]), tfoot) > tr:not([data-bk-spacer])", Z = (e) => (e ?? "").replace(/\s+/g, " ").trim(), re = /* @__PURE__ */ new Set(["true", "yes"]), ie = /* @__PURE__ */ new Set([
49
+ }, I = new P(F, "bk-checkbox"), L = new P(F, "bk-filter-bar", "bk-popover"), R = new P(F, "bk-menu-context", "bk-menu-item", "bk-menu-divider", "bk-menu-label"), z = new P(F, "bk-input-number", "bk-input-text"), B = new P(F, "bk-skeleton"), V = new P(F, "bk-select"), H = 48, U = 16, W = 64, G = 3, K = 10, q = "[data-bk-select], [data-bk-handle]", J = "button, a[href], input, select, textarea, bk-checkbox, bk-button, bk-switch, bk-link, bk-select, .bk-table-resize, [tabindex]:not(td, th, tr)", Y = "button, a[href], input, select, textarea, label, summary, [contenteditable], [role='button'], [tabindex]:not(td, th, tr), [data-row-action], bk-button, bk-button-copy, bk-button-share, bk-checkbox, bk-switch, bk-link, bk-select, bk-menu, bk-input-inline, bk-input-rating", X = ":scope > table > :is(thead, tbody:not([data-bk-state]), tfoot) > tr:not([data-bk-spacer])", Z = (e) => (e ?? "").replace(/\s+/g, " ").trim(), re = /* @__PURE__ */ new Set(["true", "yes"]), ie = /* @__PURE__ */ new Set([
49
50
  "false",
50
51
  "no",
51
52
  ""
@@ -72,7 +73,7 @@ var F = {
72
73
  font-weight: var(--bk-table-head-weight, var(--bk-group-label-weight, var(--bk-label-weight, var(--bk-weight-medium)))); color: var(--bk-table-head-fg, var(--bk-group-label-color, var(--bk-text-muted)));
73
74
  font-size: var(--bk-table-head-size, var(--bk-group-label-size, 1em));
74
75
  line-height: var(--bk-table-head-leading, var(--bk-line-height-heading));
75
- text-transform: var(--bk-group-label-transform, var(--bk-label-transform, none)); letter-spacing: var(--bk-group-label-tracking, var(--bk-label-tracking, normal)); font-family: var(--bk-font-label, inherit);
76
+ text-transform: var(--bk-table-head-transform, var(--bk-group-label-transform, var(--bk-label-transform, none))); letter-spacing: var(--bk-table-head-tracking, var(--bk-group-label-tracking, var(--bk-label-tracking, normal))); font-family: var(--bk-font-label, inherit);
76
77
  background: var(--bk-table-head-bg, transparent); white-space: nowrap;
77
78
  }
78
79
  bk-table > table > tbody > tr > th { font-weight: var(--bk-table-row-head-weight, var(--bk-weight-medium)); }
@@ -167,7 +168,7 @@ var F = {
167
168
  position: sticky; inset-block-end: 0; z-index: 1;
168
169
  background: var(--bk-table-foot-bg, var(--bk-layer-sticky-bg));
169
170
  }
170
- bk-table > table > * > tr > * > .bk-table-sr, bk-table > table > * > tr > * > .bk-table-check > .bk-table-sr { ${M} }
171
+ bk-table > table > * > tr > * > .bk-table-sr, bk-table > table > * > tr > * > .bk-table-check > .bk-table-sr { ${j} }
171
172
  /* Header tools: the filter button and the column menu button, ghost icon buttons after the label. */
172
173
  bk-table > table > thead > tr > th > .bk-table-tool,
173
174
  bk-table > table > tbody > tr > [data-bk-handle] > .bk-table-handle {
@@ -255,7 +256,7 @@ var F = {
255
256
  inline-size: var(--bk-target-min); cursor: col-resize; touch-action: none; -webkit-tap-highlight-color: transparent;
256
257
  --_bk-grip-color: var(--bk-table-resize-active-fg, var(--bk-accent-solid));
257
258
  }
258
- ${N}
259
+ ${M}
259
260
  bk-table > table > thead > tr > th > .bk-table-resize::after {
260
261
  content: ""; position: absolute; inset-block: var(--bk-space-1); inset-inline-start: calc(50% - var(--bk-border-width) / 2);
261
262
  inline-size: var(--bk-border-width); background: var(--bk-table-resize-fg, var(--bk-line-strong));
@@ -305,9 +306,9 @@ var F = {
305
306
  padding-block-end: var(--bk-table-card-gap, var(--bk-space-2));
306
307
  }
307
308
  bk-table:state(cards) > table > thead > tr > th { display: block; position: static; padding: 0; border: 0; background: none; inline-size: auto; }
308
- bk-table:state(cards) > table > thead > tr > th:not(:has(> .bk-table-tool, > bk-checkbox)) { ${M} }
309
+ bk-table:state(cards) > table > thead > tr > th:not(:has(> .bk-table-tool, > bk-checkbox)) { ${j} }
309
310
  /* The select above the table sorts the cards: the sort buttons of the header cells do not show. */
310
- bk-table:state(cards) > table > thead > tr > th > .bk-table-sort { ${M} }
311
+ bk-table:state(cards) > table > thead > tr > th > .bk-table-sort { ${j} }
311
312
  bk-table:state(cards) > table > thead > tr:not(:has(> th > :is(.bk-table-tool, bk-checkbox))) { padding-block-end: 0; }
312
313
  bk-table:state(cards) > table > thead > tr > th > .bk-table-resize { display: none; }
313
314
  /*
@@ -491,27 +492,27 @@ var F = {
491
492
  };
492
493
  menuColumn = null;
493
494
  menuKind = "resize";
494
- i18n = new ne(this);
495
+ i18n = new A(this);
495
496
  internals = this.attachInternals();
496
- busyState = new x(this, this.i18n, this.internals);
497
+ busyState = new b(this, this.i18n, this.internals);
497
498
  slots = new y(this);
498
499
  keys = /* @__PURE__ */ new Set();
499
500
  anchor;
500
501
  shift = !1;
501
502
  shiftDown = !1;
502
- widths = new v(this, () => this.persistKey && `table:${this.persistKey}:widths`);
503
- columnState = new v(this, () => this.persistKey && `table:${this.persistKey}:columns`);
504
- openRows = new v(this, () => this.persistKey && `table:${this.persistKey}:expanded`);
503
+ widths = new _(this, () => this.persistKey && `table:${this.persistKey}:widths`);
504
+ columnState = new _(this, () => this.persistKey && `table:${this.persistKey}:columns`);
505
+ openRows = new _(this, () => this.persistKey && `table:${this.persistKey}:expanded`);
505
506
  sizes = s(() => this.measure());
506
507
  observedTable = null;
507
- heads = l(() => this.syncAll());
508
- rowLinks = l(() => this.resolveRowLinks());
509
- vc = new S(this, {
508
+ heads = c(() => this.syncAll());
509
+ rowLinks = c(() => this.resolveRowLinks());
510
+ vc = new x(this, {
510
511
  scroller: () => this.scroller,
511
512
  track: () => this.virtual ? this.body : null,
512
513
  rowHeight: "var(--bk-table-row-height, var(--bk-control-lg))"
513
514
  });
514
- loadMore = new C(this, {
515
+ loadMore = new S(this, {
515
516
  sentinel: () => this.virtual ? this.renderRoot.querySelector(".sentinel") : null,
516
517
  root: () => this.scroller,
517
518
  loading: () => this.busy,
@@ -526,7 +527,7 @@ var F = {
526
527
  filterable = !1;
527
528
  syncing = !1;
528
529
  constructor() {
529
- super(), new h(this), this.variant = "line", this.stickyHeader = !1, this.stickyFooter = !1, this.hoverRows = !1, this.surface = !1, this.flush = !1, this.sortable = !1, this.sortDir = "asc", this.columnMenu = !1, this.reorderable = !1, this.busy = !1, this.skeletonRows = 5, this.virtual = !1, this.filters = {}, this.hiddenColumns = [], this.scrolling = !1, this.resizable = !1, this.empty = !1, this.addEventListener("click", this.onClick), this.addEventListener("click", this.onRowLink), this.addEventListener("auxclick", this.onRowLink), this.addEventListener("click", this.onRowLinkNavigate), this.addEventListener("dblclick", this.onDoubleClick), this.addEventListener("click", (e) => {
530
+ super(), new m(this), this.variant = "line", this.stickyHeader = !1, this.stickyFooter = !1, this.hoverRows = !1, this.surface = !1, this.flush = !1, this.sortable = !1, this.sortDir = "asc", this.columnMenu = !1, this.reorderable = !1, this.busy = !1, this.skeletonRows = 5, this.virtual = !1, this.filters = {}, this.hiddenColumns = [], this.scrolling = !1, this.resizable = !1, this.empty = !1, this.addEventListener("click", this.onClick), this.addEventListener("click", this.onRowLink), this.addEventListener("auxclick", this.onRowLink), this.addEventListener("click", this.onRowLinkNavigate), this.addEventListener("dblclick", this.onDoubleClick), this.addEventListener("click", (e) => {
530
531
  this.shift = e.shiftKey || this.shiftDown, setTimeout(() => this.shift = !1);
531
532
  }, !0), this.addEventListener("keydown", (e) => this.shiftDown = e.shiftKey, !0), this.addEventListener("keyup", (e) => this.shiftDown = e.shiftKey, !0), this.addEventListener("focusout", this.onFocusOut), this.addEventListener("focusin", this.onFocusIn), this.addEventListener("change", this.onChange), this.addEventListener("keydown", this.onKeydown), this.addEventListener("pointerdown", this.onPointerDown);
532
533
  }
@@ -541,9 +542,9 @@ var F = {
541
542
  return n?.length ? [...n, ...t.filter((e) => !n.includes(e))] : t;
542
543
  }
543
544
  static styles = [
544
- P,
545
- b,
546
- E,
545
+ ne,
546
+ te,
547
+ w,
547
548
  a`
548
549
  :host {
549
550
  display: block; min-inline-size: 0;
@@ -573,7 +574,7 @@ var F = {
573
574
  `
574
575
  ];
575
576
  connectedCallback() {
576
- super.connectedCallback(), ee(this, oe), this.hasUpdated && this.observe();
577
+ super.connectedCallback(), v(this, oe), this.hasUpdated && this.observe();
577
578
  }
578
579
  disconnectedCallback() {
579
580
  super.disconnectedCallback(), this.sizes.disconnect(), this.heads.disconnect(), this.rowLinks.disconnect(), this.observedTable = null;
@@ -585,10 +586,10 @@ var F = {
585
586
  lateParts() {
586
587
  this.busy && B.start(), this.navigation === "cell" && z.start();
587
588
  let e = L.loaded && R.loaded ? null : this.headRow, t = this.filterable || Object.keys(this.filters ?? {}).length > 0 || !!e?.querySelector(":scope > [data-filter]"), n = this.columnMenu || this.resizable || this.reorderable || !!e?.querySelector(":scope > [data-resizable]");
588
- return D(this.selection && I.start(), t && L.start(), n && R.start());
589
+ return N(this.selection && I.start(), t && L.start(), n && R.start());
589
590
  }
590
591
  willUpdate(e) {
591
- if (super.willUpdate(e), this.virtual && this.renderRow ? this.vc.setCount(this.rows?.length ?? 0) : this.vc.count && this.vc.setCount(0), c(this)) {
592
+ if (super.willUpdate(e), this.virtual && this.renderRow ? this.vc.setCount(this.rows?.length ?? 0) : this.vc.count && this.vc.setCount(0), l(this)) {
592
593
  this.empty = this.isEmpty;
593
594
  let e = this.headRow;
594
595
  this.resizable = this.columnMenu || !!e && this.appCells(e).some((e) => e.hasAttribute("data-resizable"));
@@ -621,7 +622,7 @@ var F = {
621
622
  resolveRowLinks() {
622
623
  if (!this.table) return;
623
624
  let e = [...this.table.querySelectorAll("a[data-row-link]")].filter((e) => e.closest("bk-table") === this);
624
- m(e), this.rowLinks.takeRecords();
625
+ ee(e), this.rowLinks.takeRecords();
625
626
  }
626
627
  observe() {
627
628
  let e = this.scroller, t = this.table;
@@ -649,19 +650,19 @@ var F = {
649
650
  return this.renderRoot?.querySelector(".scroller") ?? null;
650
651
  }
651
652
  get table() {
652
- return c(this)?.querySelector(":scope > table") ?? null;
653
+ return l(this)?.querySelector(":scope > table") ?? null;
653
654
  }
654
655
  get body() {
655
- return c(this)?.querySelector(":scope > table > tbody:not([data-bk-state])") ?? null;
656
+ return l(this)?.querySelector(":scope > table > tbody:not([data-bk-state])") ?? null;
656
657
  }
657
658
  get headRow() {
658
- return c(this)?.querySelector(":scope > table > thead > tr") ?? null;
659
+ return l(this)?.querySelector(":scope > table > thead > tr") ?? null;
659
660
  }
660
661
  get headRows() {
661
- return [...c(this)?.querySelectorAll(":scope > table > thead > tr") ?? []];
662
+ return [...l(this)?.querySelectorAll(":scope > table > thead > tr") ?? []];
662
663
  }
663
664
  get footRows() {
664
- return [...c(this)?.querySelectorAll(":scope > table > tfoot > tr") ?? []];
665
+ return [...l(this)?.querySelectorAll(":scope > table > tfoot > tr") ?? []];
665
666
  }
666
667
  get bodyRows() {
667
668
  return [...this.querySelectorAll(":scope > table > tbody:not([data-bk-state]) > tr:not([data-bk-spacer])")];
@@ -673,7 +674,7 @@ var F = {
673
674
  return this.dataRows.filter((e) => e.dataset.key !== void 0);
674
675
  }
675
676
  get columnRows() {
676
- return [...c(this)?.querySelectorAll(X) ?? []].filter((e) => !e.hasAttribute("data-detail"));
677
+ return [...l(this)?.querySelectorAll(X) ?? []].filter((e) => !e.hasAttribute("data-detail"));
677
678
  }
678
679
  appCells(e) {
679
680
  return [...e.cells].filter((e) => !e.matches(q));
@@ -711,7 +712,7 @@ var F = {
711
712
  return n || (n = document.createElement("span"), n.className = "bk-table-sr", e.append(n)), n.textContent !== t && (n.textContent = t), n;
712
713
  }
713
714
  get sortHeaders() {
714
- return [...c(this)?.querySelectorAll(":scope > table > thead > tr > th[data-sort]") ?? []];
715
+ return [...l(this)?.querySelectorAll(":scope > table > thead > tr > th[data-sort]") ?? []];
715
716
  }
716
717
  syncSort() {
717
718
  for (let e of this.sortHeaders) {
@@ -741,7 +742,7 @@ var F = {
741
742
  };
742
743
  requestSort(e, t) {
743
744
  let n = e.dataset.sort, r = t ?? (n === this.sortKey ? this.sortDir === "desc" ? "asc" : "desc" : e.dataset.sortDir === "desc" ? "desc" : "asc");
744
- _(this, "sort", {
745
+ g(this, "sort", {
745
746
  key: n,
746
747
  dir: r
747
748
  }, !0) && (this.sortKey = n, this.sortDir = r, d(this.i18n.t(r === "desc" ? "tableSortedDescending" : "tableSortedAscending", { column: this.text(e) || n })));
@@ -833,7 +834,7 @@ var F = {
833
834
  }
834
835
  choose(e) {
835
836
  let t = [...e];
836
- _(this, "select", { keys: t }, !0) ? (this.keys = e, this.syncSelection(), d(this.i18n.t("selectedCount", { count: this.number.format(this.keys.size) }))) : this.syncSelection();
837
+ g(this, "select", { keys: t }, !0) ? (this.keys = e, this.syncSelection(), d(this.i18n.t("selectedCount", { count: this.number.format(this.keys.size) }))) : this.syncSelection();
837
838
  }
838
839
  toggleRow(e, t, n) {
839
840
  let r = new Set(this.selection === "single" ? [] : this.keys), i = this.allKeys, a = n && this.anchor !== void 0 && i.includes(this.anchor) && this.selection === "multiple" ? i.slice(Math.min(i.indexOf(this.anchor), i.indexOf(e)), Math.max(i.indexOf(this.anchor), i.indexOf(e)) + 1) : [e];
@@ -878,11 +879,11 @@ var F = {
878
879
  let e = this.selection ? this.exportRows(!0) : [], t = "", n = "";
879
880
  if (e.length) t = this.serialize(e, " ", !1), n = this.i18n.t("tableCopiedRows", { count: e.length });
880
881
  else {
881
- let e = A()?.closest?.("td, th");
882
+ let e = D()?.closest?.("td, th");
882
883
  if (!e || e.closest("bk-table") !== this || this.navigation !== "cell") return !1;
883
884
  t = e.dataset.value ?? this.text(e), n = this.i18n.t("copied");
884
885
  }
885
- let r = await te(t);
886
+ let r = await k(t);
886
887
  return r && d(n), r;
887
888
  }
888
889
  restoreOpen(e) {
@@ -959,7 +960,7 @@ var F = {
959
960
  });
960
961
  }
961
962
  toggleOpen(e, t = !e.hasAttribute("data-expanded")) {
962
- t !== e.hasAttribute("data-expanded") && (e.toggleAttribute("data-expanded", t), this.saveOpen(e), this.syncAll(), g(e, t));
963
+ t !== e.hasAttribute("data-expanded") && (e.toggleAttribute("data-expanded", t), this.saveOpen(e), this.syncAll(), h(e, t));
963
964
  }
964
965
  onDisclosure(e) {
965
966
  let t = e.closest("tr");
@@ -985,7 +986,7 @@ var F = {
985
986
  let r = !Q(this.filters?.[t.dataset.filter]);
986
987
  n.toggleAttribute("data-active", r);
987
988
  let i = this.i18n.t(r ? "tableFilterColumnActive" : "tableFilterColumn", { column: e });
988
- n.getAttribute("aria-label") !== i && n.setAttribute("aria-label", i), k(n, {
989
+ n.getAttribute("aria-label") !== i && n.setAttribute("aria-label", i), E(n, {
989
990
  haspopup: "dialog",
990
991
  expanded: this.filterKey === t.dataset.filter && n === this.filterButton
991
992
  });
@@ -993,7 +994,7 @@ var F = {
993
994
  let r = this.tool(t, "menu", this.columnMenu);
994
995
  if (r) {
995
996
  let t = this.i18n.t("tableColumnMenu", { column: e });
996
- r.getAttribute("aria-label") !== t && r.setAttribute("aria-label", t), r.hasAttribute("aria-haspopup") || k(r, {
997
+ r.getAttribute("aria-label") !== t && r.setAttribute("aria-label", t), r.hasAttribute("aria-haspopup") || E(r, {
997
998
  haspopup: "menu",
998
999
  expanded: !1
999
1000
  });
@@ -1029,7 +1030,7 @@ var F = {
1029
1030
  }
1030
1031
  applyFilters(e) {
1031
1032
  for (let [t, n] of Object.entries(e)) Q(n) && delete e[t];
1032
- return _(this, "filter", { filters: e }, !0) ? (this.filters = e, d(this.i18n.t("filtersActive", { count: Object.keys(e).length })), !0) : !1;
1033
+ return g(this, "filter", { filters: e }, !0) ? (this.filters = e, d(this.i18n.t("filtersActive", { count: Object.keys(e).length })), !0) : !1;
1033
1034
  }
1034
1035
  get filterPopover() {
1035
1036
  return this.renderRoot.querySelector(".filter-popover");
@@ -1045,19 +1046,19 @@ var F = {
1045
1046
  if (!i || !a) return;
1046
1047
  i.style.left = i.style.top = "0px";
1047
1048
  let o = i.getBoundingClientRect(), s = e.getBoundingClientRect(), c = this.matches(":dir(rtl)");
1048
- i.style.left = `${(c ? s.right : s.left) - o.left}px`, i.style.top = `${s.bottom - o.top}px`, a.show(), k(t, {
1049
+ i.style.left = `${(c ? s.right : s.left) - o.left}px`, i.style.top = `${s.bottom - o.top}px`, a.show(), E(t, {
1049
1050
  haspopup: "dialog",
1050
1051
  expanded: !0
1051
1052
  });
1052
1053
  }
1053
1054
  onFilterClose = () => {
1054
1055
  let e = this.filterButton;
1055
- e && k(e, {
1056
+ e && E(e, {
1056
1057
  haspopup: "dialog",
1057
1058
  expanded: !1
1058
1059
  });
1059
- let t = A(), n = [...this.children].find((e) => e.getAttribute("slot") === `filter-${this.filterKey}`);
1060
- e?.isConnected && (!t || t === document.body || j(n, t) || j(this.renderRoot, t)) && e.focus(), this.filterKey = void 0;
1060
+ let t = D(), n = [...this.children].find((e) => e.getAttribute("slot") === `filter-${this.filterKey}`);
1061
+ e?.isConnected && (!t || t === document.body || O(n, t) || O(this.renderRoot, t)) && e.focus(), this.filterKey = void 0;
1061
1062
  };
1062
1063
  onFilterApply = (e) => {
1063
1064
  let t = this.filterKey;
@@ -1078,7 +1079,7 @@ var F = {
1078
1079
  onFilterClear = (e) => {
1079
1080
  e.stopPropagation();
1080
1081
  let t = Object.keys(this.filters);
1081
- this.applyFilters({}) && (t.forEach((e) => this.clearField(e)), this.updateComplete.then(() => c(this)?.querySelector(":scope > table > thead > tr > th > .bk-table-filter")?.focus()));
1082
+ this.applyFilters({}) && (t.forEach((e) => this.clearField(e)), this.updateComplete.then(() => l(this)?.querySelector(":scope > table > thead > tr > th > .bk-table-filter")?.focus()));
1082
1083
  };
1083
1084
  get hiddenSet() {
1084
1085
  return new Set(this.columnState.value?.hidden ?? this.hiddenColumns ?? []);
@@ -1096,7 +1097,7 @@ var F = {
1096
1097
  if (!r) return !1;
1097
1098
  let i = this.pinned;
1098
1099
  for (let [e, n] of Object.entries(t)) n === "none" ? delete i[e] : i[e] = n;
1099
- if (!_(this, "columns", {
1100
+ if (!g(this, "columns", {
1100
1101
  hidden: e,
1101
1102
  pinned: i,
1102
1103
  widths: this.columnWidths()
@@ -1144,7 +1145,7 @@ var F = {
1144
1145
  let r = this.appCells(n), i = r.indexOf(e), a = i + t;
1145
1146
  if (!this.canMove(r, i, a)) return;
1146
1147
  let o = r.map((e) => this.columnKey(e)), [s] = o.splice(i, 1);
1147
- o.splice(a, 0, s), _(this, "reorder", {
1148
+ o.splice(a, 0, s), g(this, "reorder", {
1148
1149
  type: "column",
1149
1150
  key: s,
1150
1151
  from: i,
@@ -1188,7 +1189,7 @@ var F = {
1188
1189
  return e;
1189
1190
  }
1190
1191
  emitColumns() {
1191
- _(this, "columns", {
1192
+ g(this, "columns", {
1192
1193
  hidden: [...this.hiddenSet],
1193
1194
  pinned: this.pinned,
1194
1195
  widths: this.columnWidths()
@@ -1283,7 +1284,7 @@ var F = {
1283
1284
  async openColumnMenu(e, t, n, r, i) {
1284
1285
  if (this.menuColumn = e, this.menuKind = t, this.requestUpdate(), await this.updateComplete, n) {
1285
1286
  let e = n.getBoundingClientRect();
1286
- r = this.matches(":dir(rtl)") ? e.right : e.left, i = e.bottom, k(n, {
1287
+ r = this.matches(":dir(rtl)") ? e.right : e.left, i = e.bottom, E(n, {
1287
1288
  haspopup: "menu",
1288
1289
  expanded: !0
1289
1290
  });
@@ -1292,7 +1293,7 @@ var F = {
1292
1293
  }
1293
1294
  onColumnMenuClose = () => {
1294
1295
  let e = this.menuColumn?.querySelector(":scope > .bk-table-menu");
1295
- e && k(e, {
1296
+ e && E(e, {
1296
1297
  haspopup: "menu",
1297
1298
  expanded: !1
1298
1299
  });
@@ -1425,7 +1426,7 @@ var F = {
1425
1426
  }
1426
1427
  requestMove(e, t, n, r) {
1427
1428
  let i = e.dataset.key;
1428
- _(this, "reorder", {
1429
+ g(this, "reorder", {
1429
1430
  type: "row",
1430
1431
  key: i,
1431
1432
  from: t,
@@ -1473,7 +1474,7 @@ var F = {
1473
1474
  t.addEventListener("pointermove", o), t.addEventListener("pointerup", s), t.addEventListener("pointercancel", s);
1474
1475
  };
1475
1476
  openRowMenu(e, t) {
1476
- this.handleRow = e, this.requestUpdate(), T(this, t);
1477
+ this.handleRow = e, this.requestUpdate(), C(this, t);
1477
1478
  }
1478
1479
  get rowActions() {
1479
1480
  let e = this.handleRow;
@@ -1590,7 +1591,7 @@ var F = {
1590
1591
  let n = this.rows?.length ?? 0;
1591
1592
  if (e < t.length + n) {
1592
1593
  let n = e - t.length;
1593
- return this.vc.reveal(n), this.requestUpdate(), await this.updateComplete, c(this)?.querySelector(`:scope > table > tbody > tr[data-bk-index="${n}"]`) ?? null;
1594
+ return this.vc.reveal(n), this.requestUpdate(), await this.updateComplete, l(this)?.querySelector(`:scope > table > tbody > tr[data-bk-index="${n}"]`) ?? null;
1594
1595
  }
1595
1596
  return this.footRows[e - t.length - n] ?? null;
1596
1597
  }
@@ -1708,7 +1709,7 @@ var F = {
1708
1709
  }
1709
1710
  if (this.editing = null, i.remove(), r.removeAttribute("data-bk-editing"), t && this.focusStop(r), e || o === a) return;
1710
1711
  let s = this.headOf(r), c = r.parentElement;
1711
- _(this, "edit", {
1712
+ g(this, "edit", {
1712
1713
  key: c.dataset.key,
1713
1714
  column: s ? this.columnKey(s) : String(r.cellIndex),
1714
1715
  value: o,
@@ -1882,15 +1883,15 @@ var F = {
1882
1883
  measure() {
1883
1884
  let e = this.scroller, t = !!e && (e.scrollWidth > e.clientWidth + 1 || e.scrollHeight > e.clientHeight + 1);
1884
1885
  t !== this.scrolling && (this.scrolling = t);
1885
- let n = c(this)?.querySelector(":scope > table > thead"), r = c(this)?.querySelector(":scope > table > tfoot"), i = this.stickyHeader && n ? `${n.offsetHeight}px` : "", a = this.stickyFooter && r ? `${r.offsetHeight}px` : "";
1886
+ let n = l(this)?.querySelector(":scope > table > thead"), r = l(this)?.querySelector(":scope > table > tfoot"), i = this.stickyHeader && n ? `${n.offsetHeight}px` : "", a = this.stickyFooter && r ? `${r.offsetHeight}px` : "";
1886
1887
  e && e.style.scrollPaddingBlockStart !== i && (e.style.scrollPaddingBlockStart = i), e && e.style.scrollPaddingBlockEnd !== a && (e.style.scrollPaddingBlockEnd = a);
1887
1888
  let o = this.renderRoot.querySelector(".probe"), s = this.responsive === "cards" && !!o && this.clientWidth > 0 && this.clientWidth < parseFloat(getComputedStyle(o).marginInlineStart);
1888
1889
  s !== this.cards && (s ? this.internals.states.add("cards") : this.internals.states.delete("cards"), this.syncAll(), this.requestUpdate(), s && this.sortable && V.start());
1889
- let l = this.headRow;
1890
- l && l.querySelector("[data-pin]") && this.syncPins(l);
1890
+ let c = this.headRow;
1891
+ c && c.querySelector("[data-pin]") && this.syncPins(c);
1891
1892
  }
1892
1893
  get regionName() {
1893
- let e = c(this)?.querySelector(":scope > table > caption")?.textContent?.replace(/\s+/g, " ").trim();
1894
+ let e = l(this)?.querySelector(":scope > table > caption")?.textContent?.replace(/\s+/g, " ").trim();
1894
1895
  return this.label || e || this.i18n.t("table");
1895
1896
  }
1896
1897
  render() {
@@ -1937,7 +1938,7 @@ var F = {
1937
1938
  </div>
1938
1939
  </div>
1939
1940
  </bk-popover></div>` : n}
1940
- ${this.reorderable ? O(this.handleRow ? this.i18n.t("sortableHandle", { item: this.rowName(this.handleRow) }) : "", this.rowActions) : n}`;
1941
+ ${this.reorderable ? T(this.handleRow ? this.i18n.t("sortableHandle", { item: this.rowName(this.handleRow) }) : "", this.rowActions) : n}`;
1941
1942
  }
1942
1943
  };
1943
1944
  u("bk-table", $);