@bk2k/ui 0.6.7 → 0.6.8
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.
- package/BUILDING.md +32 -0
- package/CHANGELOG.md +57 -0
- package/USAGE.md +14 -8
- package/custom-elements.json +1 -1
- package/dist/charts/frame.d.ts +2 -0
- package/dist/charts/frame.js +2 -1
- package/dist/components/bk-button.d.ts +18 -3
- package/dist/components/bk-button.js +19 -8
- package/dist/components/bk-chart-bar.d.ts +46 -9
- package/dist/components/bk-chart-bar.js +127 -37
- package/dist/components/bk-combobox.d.ts +29 -5
- package/dist/components/bk-combobox.js +61 -19
- package/dist/components/bk-dialog.d.ts +4 -1
- package/dist/components/bk-dialog.js +6 -2
- package/dist/components/bk-facts-item.js +8 -6
- package/dist/components/bk-facts.d.ts +6 -4
- package/dist/components/bk-facts.js +19 -8
- package/dist/components/bk-input-time-zone.d.ts +3 -0
- package/dist/components/bk-model-viewer.d.ts +12 -1
- package/dist/components/bk-model-viewer.js +15 -2
- package/dist/components/bk-period-nav.d.ts +102 -0
- package/dist/components/bk-period-nav.js +69 -0
- package/dist/components/bk-select.js +2 -1
- package/dist/components/bk-shell-app.d.ts +3 -2
- package/dist/components/bk-shell-app.js +16 -3
- package/dist/components/bk-sortable.d.ts +3 -0
- package/dist/components/bk-sortable.js +3 -0
- package/dist/components/bk-split.d.ts +3 -0
- package/dist/components/bk-split.js +3 -0
- package/dist/components/bk-table.d.ts +16 -12
- package/dist/components/bk-table.js +96 -14
- package/dist/i18n/de.js +7 -0
- package/dist/i18n.d.ts +7 -0
- package/dist/i18n.js +7 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/internal/cloak.d.ts +3 -0
- package/dist/internal/cloak.js +4 -0
- package/dist/internal/handle-menu.d.ts +2 -3
- package/dist/internal/handle-menu.js +14 -3
- package/dist/internal/late.d.ts +15 -0
- package/dist/internal/late.js +30 -0
- package/dist/jsx.d.ts +36 -5
- package/dist/standalone/all.js +119 -118
- package/dist/standalone/bk-action-bar.js +1 -1
- package/dist/standalone/bk-alert-offline.js +1 -1
- package/dist/standalone/bk-alert.js +1 -1
- package/dist/standalone/bk-attachment.js +1 -1
- package/dist/standalone/bk-avatar-group.js +1 -1
- package/dist/standalone/bk-avatar.js +1 -1
- package/dist/standalone/bk-breadcrumbs.js +1 -1
- package/dist/standalone/bk-button-copy.js +2 -2
- package/dist/standalone/bk-button-group.js +2 -2
- package/dist/standalone/bk-button-share.js +2 -2
- package/dist/standalone/bk-button-top.js +1 -1
- package/dist/standalone/bk-button.js +15 -7
- package/dist/standalone/bk-calendar-week.js +1 -1
- package/dist/standalone/bk-calendar.js +1 -1
- package/dist/standalone/bk-card.js +1 -1
- package/dist/standalone/bk-carousel-controls.js +2 -2
- package/dist/standalone/bk-carousel.js +1 -1
- package/dist/standalone/bk-chart-bar-list.js +3 -3
- package/dist/standalone/bk-chart-bar.js +164 -105
- package/dist/standalone/bk-chart-bridge.js +4 -4
- package/dist/standalone/bk-chart-bullet.js +3 -3
- package/dist/standalone/bk-chart-calendar.js +4 -4
- package/dist/standalone/bk-chart-heatmap.js +4 -4
- package/dist/standalone/bk-chart-histogram.js +2 -2
- package/dist/standalone/bk-chart-legend.js +3 -3
- package/dist/standalone/bk-chart-line.js +5 -5
- package/dist/standalone/bk-chart-scatter.js +3 -3
- package/dist/standalone/bk-chart-sparkline.js +3 -3
- package/dist/standalone/bk-chart-stacked-bar.js +4 -4
- package/dist/standalone/bk-chart-tracker.js +3 -3
- package/dist/standalone/bk-chart-waterfall.js +2 -2
- package/dist/standalone/bk-checkbox-group.js +2 -2
- package/dist/standalone/bk-checkbox.js +1 -1
- package/dist/standalone/bk-chip-group.js +2 -2
- package/dist/standalone/bk-chip.js +2 -2
- package/dist/standalone/bk-code-diff.js +1 -1
- package/dist/standalone/bk-code-stack.js +2 -2
- package/dist/standalone/bk-code.js +2 -2
- package/dist/standalone/bk-color-panel.js +2 -2
- package/dist/standalone/bk-columns.js +1 -1
- package/dist/standalone/bk-combobox.js +49 -30
- package/dist/standalone/bk-command-menu.js +2 -2
- package/dist/standalone/bk-command-palette.js +3 -3
- package/dist/standalone/bk-composer.js +2 -2
- package/dist/standalone/bk-delta.js +1 -1
- package/dist/standalone/bk-diagram.js +1 -1
- package/dist/standalone/bk-dialog.js +1 -1
- package/dist/standalone/bk-drawer.js +2 -2
- package/dist/standalone/bk-error-summary.js +1 -1
- package/dist/standalone/bk-facts-item.js +8 -6
- package/dist/standalone/bk-facts.js +19 -8
- package/dist/standalone/bk-fieldset.js +1 -1
- package/dist/standalone/bk-filter-bar.js +1 -1
- package/dist/standalone/bk-folder-browser.js +1 -1
- package/dist/standalone/bk-form-guard.js +1 -1
- package/dist/standalone/bk-form-steps.js +1 -1
- package/dist/standalone/bk-image-compare.js +1 -1
- package/dist/standalone/bk-image-crop.js +2 -2
- package/dist/standalone/bk-image-editor.js +2 -1
- package/dist/standalone/bk-image-viewer.js +1 -1
- package/dist/standalone/bk-input-code.js +2 -2
- package/dist/standalone/bk-input-color.js +1 -1
- package/dist/standalone/bk-input-date-range.js +2 -2
- package/dist/standalone/bk-input-date.js +1 -1
- package/dist/standalone/bk-input-file.js +2 -2
- package/dist/standalone/bk-input-group.js +2 -2
- package/dist/standalone/bk-input-inline.js +2 -2
- package/dist/standalone/bk-input-number.js +2 -2
- package/dist/standalone/bk-input-rating.js +2 -2
- package/dist/standalone/bk-input-rich.js +1 -1
- package/dist/standalone/bk-input-search.js +1 -1
- package/dist/standalone/bk-input-slider-range.js +2 -2
- package/dist/standalone/bk-input-slider.js +2 -2
- package/dist/standalone/bk-input-text.js +1 -1
- package/dist/standalone/bk-input-time.js +3 -3
- package/dist/standalone/bk-item.js +1 -1
- package/dist/standalone/bk-kbd-shortcuts.js +1 -1
- package/dist/standalone/bk-kbd.js +1 -1
- package/dist/standalone/bk-lightbox.js +2 -2
- package/dist/standalone/bk-listbox-columns.js +2 -2
- package/dist/standalone/bk-listbox-search.js +3 -3
- package/dist/standalone/bk-listbox-transfer.js +3 -3
- package/dist/standalone/bk-listbox.js +2 -2
- package/dist/standalone/bk-logo.js +1 -1
- package/dist/standalone/bk-menu-bar.js +1 -1
- package/dist/standalone/bk-menu-item.js +1 -1
- package/dist/standalone/bk-menu-list.js +1 -1
- package/dist/standalone/bk-menu.js +2 -2
- package/dist/standalone/bk-message-approval.js +1 -1
- package/dist/standalone/bk-message-branches.js +1 -1
- package/dist/standalone/bk-message-citation.js +1 -1
- package/dist/standalone/bk-message-feedback.js +1 -1
- package/dist/standalone/bk-message-list.js +1 -1
- package/dist/standalone/bk-message-reasoning.js +1 -1
- package/dist/standalone/bk-message-source.js +1 -1
- package/dist/standalone/bk-message-tool-group.js +1 -1
- package/dist/standalone/bk-message-tool.js +1 -1
- package/dist/standalone/bk-message.js +1 -1
- package/dist/standalone/bk-meter.js +1 -1
- package/dist/standalone/bk-model-viewer.js +1 -1
- package/dist/standalone/bk-nav-group.js +1 -1
- package/dist/standalone/bk-nav-item.js +1 -1
- package/dist/standalone/bk-nav-toc.js +1 -1
- package/dist/standalone/bk-nav.js +1 -1
- package/dist/standalone/bk-overflow.js +1 -1
- package/dist/standalone/bk-page-footer.js +1 -1
- package/dist/standalone/bk-page-pager.js +1 -1
- package/dist/standalone/bk-pagination.js +1 -1
- package/dist/standalone/bk-pane.js +1 -1
- package/dist/standalone/bk-panel.js +1 -1
- package/dist/standalone/bk-period-nav.js +69 -0
- package/dist/standalone/bk-picture.js +1 -1
- package/dist/standalone/bk-popover-help.js +1 -1
- package/dist/standalone/bk-popover.js +1 -1
- package/dist/standalone/bk-preview.js +1 -1
- package/dist/standalone/bk-progress.js +1 -1
- package/dist/standalone/bk-qr-code.js +1 -1
- package/dist/standalone/bk-radio-group.js +2 -2
- package/dist/standalone/bk-radio.js +1 -1
- package/dist/standalone/bk-rating.js +1 -1
- package/dist/standalone/bk-scroll.js +1 -1
- package/dist/standalone/bk-segmented.js +2 -2
- package/dist/standalone/bk-select-cascade.js +1 -1
- package/dist/standalone/bk-select-tree.js +1 -1
- package/dist/standalone/bk-select.js +3 -2
- package/dist/standalone/bk-shell-app.js +42 -38
- package/dist/standalone/bk-shell-sites.js +1 -1
- package/dist/standalone/bk-sortable.js +7 -4
- package/dist/standalone/bk-split-grid.js +1 -1
- package/dist/standalone/bk-split.js +7 -4
- package/dist/standalone/bk-stat.js +2 -2
- package/dist/standalone/bk-steps-item.js +1 -1
- package/dist/standalone/bk-swatch-group.js +2 -2
- package/dist/standalone/bk-switch.js +2 -2
- package/dist/standalone/bk-table.js +130 -80
- package/dist/standalone/bk-tabs-item.js +1 -1
- package/dist/standalone/bk-tabs.js +1 -1
- package/dist/standalone/bk-tasks-item.js +1 -1
- package/dist/standalone/bk-text.js +1 -1
- package/dist/standalone/bk-time-countdown.js +1 -1
- package/dist/standalone/bk-time-relative.js +1 -1
- package/dist/standalone/bk-timeline-item.js +1 -1
- package/dist/standalone/bk-toast-group.js +1 -1
- package/dist/standalone/bk-toast.js +1 -1
- package/dist/standalone/bk-tooltip.js +1 -1
- package/dist/standalone/bk-tree-item.js +2 -2
- package/dist/standalone/bk-video.js +1 -1
- package/dist/standalone/bk-zoom.js +3 -3
- package/dist/standalone/chunks/{bk-alert-offline-BoMEYxnE.js → bk-alert-offline-B1bQxOZp.js} +1 -1
- package/dist/standalone/chunks/{bk-carousel-B7-9OanA.js → bk-carousel-BCwIQhG5.js} +1 -1
- package/dist/standalone/chunks/{bk-diagram-CpOpicmo.js → bk-diagram-DWK8CvRZ.js} +2 -2
- package/dist/standalone/chunks/{bk-dialog-a2BtUBf2.js → bk-dialog-DX0cPJ1o.js} +7 -3
- package/dist/standalone/chunks/{bk-image-editor-z_Uj83fy.js → bk-image-editor-DXEj9gCu.js} +1 -1
- package/dist/standalone/chunks/{bk-input-date-range-BQkbPlSJ.js → bk-input-date-range-Cbx_lpf0.js} +1 -1
- package/dist/standalone/chunks/{bk-input-rich-Dte_b4Ev.js → bk-input-rich-ZB68vziu.js} +3 -3
- package/dist/standalone/chunks/{bk-input-text-CUNQG1ah.js → bk-input-text-DD32uWNO.js} +1 -1
- package/dist/standalone/chunks/{bk-kbd-B7bz8hmV.js → bk-kbd-B_TlKzWj.js} +1 -1
- package/dist/standalone/chunks/{bk-model-viewer-D1XJPgAG.js → bk-model-viewer-Dr81ahVv.js} +19 -5
- package/dist/standalone/chunks/{bk-qr-code-CbI9rdOK.js → bk-qr-code-QaYvZwOR.js} +1 -1
- package/dist/standalone/chunks/{bk-toast-group-Cix-Urgi.js → bk-toast-group-BSeO_rPs.js} +1 -1
- package/dist/standalone/chunks/{choice-field-BnuK9mp_.js → choice-field-CGvE4tyb.js} +1 -1
- package/dist/standalone/chunks/{clipboard-DBGdJ-1S.js → clipboard-BKlrP5rj.js} +1 -28
- package/dist/standalone/chunks/clipboard-Crzt1Sh9.js +29 -0
- package/dist/standalone/chunks/{date-field-BQ5k-DDL.js → date-field-BlI6grfT.js} +2 -2
- package/dist/standalone/chunks/{form-control-D7dqSP9M.js → form-control-CyXQIJ2x.js} +1 -1
- package/dist/standalone/chunks/{frame-BW1nKuoM.js → frame-abXBnl8a.js} +3 -1
- package/dist/standalone/chunks/handle-menu-ZVR_msk2.js +49 -0
- package/dist/standalone/chunks/{i18n-CNsBRNPu.js → i18n-B6Al9xCK.js} +7 -0
- package/dist/standalone/chunks/{i18n-CrZgrRu9.js → i18n-BI16HQmm.js} +1 -1
- package/dist/standalone/chunks/{marks-CdqbbJpM.js → marks-0kbeB4n8.js} +2 -2
- package/dist/standalone/chunks/{popover-base-oDhxsYMr.js → popover-base-ac49G87f.js} +1 -1
- package/dist/standalone/chunks/{ramp-EclrETaQ.js → ramp-ggoyjMvC.js} +1 -1
- package/dist/standalone/chunks/{summary-BwL-Gp8w.js → summary-BK-B4m5A.js} +1 -1
- package/dist/standalone/chunks/{text-field-CTp2b-Ai.js → text-field-4IUUpRHE.js} +2 -2
- package/dist/standalone/chunks/{toggle-control-DXkgmz7R.js → toggle-control-ioV2jhNY.js} +1 -1
- package/dist/standalone/confirm.js +3 -3
- package/dist/standalone/i18n-de.js +8 -1
- package/dist/standalone/toast.js +1 -1
- package/dist/standalone/tokens.css +4 -1
- package/dist/tokens.css +4 -1
- package/package.json +1 -1
- package/dist/standalone/chunks/handle-menu-DsxWvv4D.js +0 -22
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { t as BkAlertOffline } from "./chunks/bk-alert-offline-
|
|
1
|
+
export { t as BkAlertOffline } from "./chunks/bk-alert-offline-B1bQxOZp.js";
|
|
2
2
|
import "./bk-alert.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/announcer-haFcvqbe.js";
|
|
3
3
|
import { t as a } from "./chunks/define-CzVPD4Zi.js";
|
|
4
|
-
import { t as o } from "./chunks/i18n-
|
|
4
|
+
import { t as o } from "./chunks/i18n-B6Al9xCK.js";
|
|
5
5
|
import { a as s, i as c, n as l, r as u, t as d } from "./chunks/message--qZJ4Gw7.js";
|
|
6
6
|
import { t as f } from "./chunks/slots-BHTtBbPo.js";
|
|
7
7
|
import { t as p } from "./chunks/state-XYmTmnOw.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as i } from "./chunks/i18n-
|
|
2
|
+
import { t as i } from "./chunks/i18n-B6Al9xCK.js";
|
|
3
3
|
import { t as a } from "./chunks/define-CzVPD4Zi.js";
|
|
4
4
|
import { t as o } from "./chunks/events-DQ4e9cPN.js";
|
|
5
5
|
import { t as s, x as c } from "./chunks/styles-DwSR-9a3.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/if-defined-z_20pBRr.js";
|
|
3
3
|
import { t as a } from "./chunks/define-CzVPD4Zi.js";
|
|
4
|
-
import { t as o } from "./chunks/i18n-
|
|
4
|
+
import { t as o } from "./chunks/i18n-B6Al9xCK.js";
|
|
5
5
|
import { t as s } from "./chunks/styles-DwSR-9a3.js";
|
|
6
6
|
import "./bk-avatar.js";
|
|
7
7
|
import "./bk-item.js";
|
|
@@ -3,7 +3,7 @@ import { a as t, n, t as r, u as i } from "./chunks/lit-D8x-qXgH.js";
|
|
|
3
3
|
import { t as a } from "./chunks/define-CzVPD4Zi.js";
|
|
4
4
|
import { t as o } from "./chunks/host-vars-DTKbhBPu.js";
|
|
5
5
|
import { n as s, t as c } from "./chunks/slots-BHTtBbPo.js";
|
|
6
|
-
import { t as l } from "./chunks/i18n-
|
|
6
|
+
import { t as l } from "./chunks/i18n-B6Al9xCK.js";
|
|
7
7
|
import { _ as u, g as d, t as f } from "./chunks/styles-DwSR-9a3.js";
|
|
8
8
|
import { n as p, t as m } from "./chunks/hue-Jvb-141g.js";
|
|
9
9
|
import "./chunks/bk-icon-DssFsNuB.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { r as i, t as a } from "./chunks/define-CzVPD4Zi.js";
|
|
3
|
-
import { t as o } from "./chunks/i18n-
|
|
3
|
+
import { t as o } from "./chunks/i18n-B6Al9xCK.js";
|
|
4
4
|
import { t as s } from "./chunks/styles-DwSR-9a3.js";
|
|
5
5
|
import "./chunks/bk-icon-DssFsNuB.js";
|
|
6
6
|
import { i as c, n as l, o as u, t as d } from "./chunks/link-CWSMsx04.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as r } from "./chunks/i18n-
|
|
2
|
+
import { t as r } from "./chunks/i18n-B6Al9xCK.js";
|
|
3
3
|
import { c as i } from "./chunks/anchor-CNX3nt2F.js";
|
|
4
|
-
import { t as a } from "./chunks/clipboard-
|
|
4
|
+
import { t as a } from "./chunks/clipboard-Crzt1Sh9.js";
|
|
5
5
|
import { n as o, r as s, t as c } from "./chunks/define-CzVPD4Zi.js";
|
|
6
6
|
import { n as l } from "./chunks/events-DQ4e9cPN.js";
|
|
7
7
|
import { t as u, x as d } from "./chunks/styles-DwSR-9a3.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as e, u as t } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { r as n, t as r } from "./chunks/define-CzVPD4Zi.js";
|
|
3
|
-
import { a as i, n as a } from "./chunks/i18n-
|
|
3
|
+
import { a as i, n as a } from "./chunks/i18n-B6Al9xCK.js";
|
|
4
4
|
import { t as o } from "./chunks/events-DQ4e9cPN.js";
|
|
5
|
-
import { t as s } from "./chunks/form-control-
|
|
5
|
+
import { t as s } from "./chunks/form-control-CyXQIJ2x.js";
|
|
6
6
|
import { t as c } from "./chunks/styles-DwSR-9a3.js";
|
|
7
7
|
import "./bk-button.js";
|
|
8
8
|
// dist/components/bk-button-group.js
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as r } from "./chunks/i18n-
|
|
2
|
+
import { t as r } from "./chunks/i18n-B6Al9xCK.js";
|
|
3
3
|
import { c as i } from "./chunks/anchor-CNX3nt2F.js";
|
|
4
|
-
import { t as a } from "./chunks/clipboard-
|
|
4
|
+
import { t as a } from "./chunks/clipboard-Crzt1Sh9.js";
|
|
5
5
|
import { n as o, r as s, t as c } from "./chunks/define-CzVPD4Zi.js";
|
|
6
6
|
import { n as l } from "./chunks/events-DQ4e9cPN.js";
|
|
7
7
|
import { i as u, t as d } from "./chunks/registry-BTiSxoP0.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as r } from "./chunks/i18n-
|
|
2
|
+
import { t as r } from "./chunks/i18n-B6Al9xCK.js";
|
|
3
3
|
import { t as i } from "./chunks/define-CzVPD4Zi.js";
|
|
4
4
|
import { t as a } from "./chunks/styles-DwSR-9a3.js";
|
|
5
5
|
import "./bk-button.js";
|
|
@@ -4,7 +4,7 @@ import { n as a, t as o } from "./chunks/define-CzVPD4Zi.js";
|
|
|
4
4
|
import { t as s } from "./chunks/link-CWSMsx04.js";
|
|
5
5
|
import { t as c } from "./chunks/loading-B37QBUkv.js";
|
|
6
6
|
import { t as l } from "./chunks/slots-BHTtBbPo.js";
|
|
7
|
-
import { t as u } from "./chunks/i18n-
|
|
7
|
+
import { t as u } from "./chunks/i18n-B6Al9xCK.js";
|
|
8
8
|
import { a as d, i as f, t as p } from "./chunks/styles-DwSR-9a3.js";
|
|
9
9
|
import { r as m } from "./chunks/anchor-CNX3nt2F.js";
|
|
10
10
|
import { r as h, t as g } from "./chunks/events-DQ4e9cPN.js";
|
|
@@ -89,6 +89,8 @@ var _ = (e) => e.stopPropagation(), v = /* @__PURE__ */ new Set([
|
|
|
89
89
|
},
|
|
90
90
|
collapse: { reflect: !0 },
|
|
91
91
|
current: { attribute: "aria-current" },
|
|
92
|
+
hostExpanded: { attribute: "aria-expanded" },
|
|
93
|
+
hostControls: { attribute: "aria-controls" },
|
|
92
94
|
count: { type: Number },
|
|
93
95
|
dot: {
|
|
94
96
|
type: Boolean,
|
|
@@ -153,6 +155,11 @@ var _ = (e) => e.stopPropagation(), v = /* @__PURE__ */ new Set([
|
|
|
153
155
|
description: null,
|
|
154
156
|
hideTitle: !1
|
|
155
157
|
};
|
|
158
|
+
hostControlled() {
|
|
159
|
+
if (!this.hostControls || !this.isConnected) return null;
|
|
160
|
+
let e = this.getRootNode(), t = this.hostControls.split(/\s+/).map((t) => e.getElementById?.(t)).filter((e) => !!e);
|
|
161
|
+
return t.length ? t : null;
|
|
162
|
+
}
|
|
156
163
|
forwardAria(e) {
|
|
157
164
|
let t = this.forwarded;
|
|
158
165
|
this.forwarded = {
|
|
@@ -355,18 +362,19 @@ var _ = (e) => e.stopPropagation(), v = /* @__PURE__ */ new Set([
|
|
|
355
362
|
@media (forced-colors: active) { .count, .dot { border: var(--bk-border-width) solid CanvasText; } .dot { background: Highlight; } }
|
|
356
363
|
:host(:state(round)) .control { border-radius: var(--bk-radius-full); }
|
|
357
364
|
|
|
358
|
-
/* collapse: icon only when the nearest size container is narrow (thresholds can't be tokens)
|
|
365
|
+
/* collapse: icon only when the nearest size container is narrow (thresholds can't be tokens). The start icon stays;
|
|
366
|
+
a button with only an end icon keeps the end icon. */
|
|
359
367
|
@container (max-width: 480px) {
|
|
360
368
|
:host([collapse="sm"]) .control { padding: 0; width: var(--_bk-button-h); }
|
|
361
|
-
:host([collapse="sm"]) :is(.label, slot[name="end"]) { display: none; }
|
|
369
|
+
:host([collapse="sm"]) :is(.label, .has-start slot[name="end"]) { display: none; }
|
|
362
370
|
}
|
|
363
371
|
@container (max-width: 640px) {
|
|
364
372
|
:host([collapse=""]) .control, :host([collapse="md"]) .control { padding: 0; width: var(--_bk-button-h); }
|
|
365
|
-
:host([collapse=""]) :is(.label, slot[name="end"]), :host([collapse="md"]) :is(.label, slot[name="end"]) { display: none; }
|
|
373
|
+
:host([collapse=""]) :is(.label, .has-start slot[name="end"]), :host([collapse="md"]) :is(.label, .has-start slot[name="end"]) { display: none; }
|
|
366
374
|
}
|
|
367
375
|
@container (max-width: 960px) {
|
|
368
376
|
:host([collapse="lg"]) .control { padding: 0; width: var(--_bk-button-h); }
|
|
369
|
-
:host([collapse="lg"]) :is(.label, slot[name="end"]) { display: none; }
|
|
377
|
+
:host([collapse="lg"]) :is(.label, .has-start slot[name="end"]) { display: none; }
|
|
370
378
|
}
|
|
371
379
|
`
|
|
372
380
|
];
|
|
@@ -377,7 +385,7 @@ var _ = (e) => e.stopPropagation(), v = /* @__PURE__ */ new Set([
|
|
|
377
385
|
connectedCallback() {
|
|
378
386
|
super.connectedCallback();
|
|
379
387
|
let e = this.getRootNode();
|
|
380
|
-
this.inOverlay = !!this.closest("dialog, bk-dialog, bk-drawer, [popover]") || e instanceof ShadowRoot && !!e.host.matches("bk-dialog, bk-drawer"), this.collapsible && !this.icon && !this.querySelector(":scope > [slot=start]") && console.warn("<bk-button collapse> needs an icon (icon
|
|
388
|
+
this.inOverlay = !!this.closest("dialog, bk-dialog, bk-drawer, [popover]") || e instanceof ShadowRoot && !!e.host.matches("bk-dialog, bk-drawer"), this.collapsible && !this.icon && !this.iconEnd && !this.querySelector(":scope > :is([slot=start], [slot=end])") && console.warn("<bk-button collapse> needs an icon (icon, icon-end, or the start or end slot): it is all that stays visible.", this);
|
|
381
389
|
}
|
|
382
390
|
get iconOnly() {
|
|
383
391
|
return this.iconEnd || this.slots.has("end") ? !1 : this.slots.has("") ? this.visualOnly : !!this.icon || this.slots.has("start");
|
|
@@ -409,7 +417,7 @@ var _ = (e) => e.stopPropagation(), v = /* @__PURE__ */ new Set([
|
|
|
409
417
|
render() {
|
|
410
418
|
let n = e`<span class="content">${this.renderContent()}</span>
|
|
411
419
|
${this.loader.visible ? e`<span class="spinner"><bk-spinner></bk-spinner></span>` : t}
|
|
412
|
-
${this.iconOnly ? this.countText ? e`<span class="count" part="count" aria-hidden="true" data-count=${this.countText}></span>` : this.dot ? e`<span class="dot" part="count" aria-hidden="true"></span>` : t : t}`, r = !this.iconOnly && (!!this.icon || this.slots.has("start")), o = !this.iconOnly && (!!this.iconEnd || this.slots.has("end")), s = `control${this.loader.visible ? " spinning" : ""}${this.iconOnly ? " icon-only" : ""}${r ? " has-start" : ""}${o ? " has-end" : ""}`, c = this.disabledReason || void 0, l = this.inactive, u = !!c || this.loading, d = this.forwarded, f = this.label ?? (this.collapsible && a(this)?.textContent?.replace(/\s+/g, " ").trim() || void 0), p = !c && !d.hideTitle && !this.hideTooltip && !this.inOverlay && this.iconOnly && f ? f : void 0, h = d.hideTitle || this.hideTooltip || c || p ? void 0 : f, g = i(d.haspopup ?? void 0), v = i(d.expanded === null ? void 0 : String(d.expanded)), y = i(c ? void 0 : [d.description, this.badgeDescription].filter(Boolean).join(". ") || void 0), b = i(this.current ?? void 0), x = m(d.controls);
|
|
420
|
+
${this.iconOnly ? this.countText ? e`<span class="count" part="count" aria-hidden="true" data-count=${this.countText}></span>` : this.dot ? e`<span class="dot" part="count" aria-hidden="true"></span>` : t : t}`, r = !this.iconOnly && (!!this.icon || this.slots.has("start")), o = !this.iconOnly && (!!this.iconEnd || this.slots.has("end")), s = `control${this.loader.visible ? " spinning" : ""}${this.iconOnly ? " icon-only" : ""}${r ? " has-start" : ""}${o ? " has-end" : ""}`, c = this.disabledReason || void 0, l = this.inactive, u = !!c || this.loading, d = this.forwarded, f = this.label ?? (this.collapsible && a(this)?.textContent?.replace(/\s+/g, " ").trim() || void 0), p = !c && !d.hideTitle && !this.hideTooltip && !this.inOverlay && this.iconOnly && f ? f : void 0, h = d.hideTitle || this.hideTooltip || c || p ? void 0 : f, g = i(d.haspopup ?? void 0), v = i(d.expanded === null ? this.hostExpanded ?? void 0 : String(d.expanded)), y = i(c ? void 0 : [d.description, this.badgeDescription].filter(Boolean).join(". ") || void 0), b = i(this.current ?? void 0), x = m(d.controls ?? this.hostControlled());
|
|
413
421
|
return this.href ? this.withReason(c, f, p, e`<a part="control" class=${s}
|
|
414
422
|
href=${i(l ? void 0 : this.links.href(this.href))} @click=${this.links.click} target=${i(this.target)}
|
|
415
423
|
rel=${i(this.rel ?? (this.target === "_blank" ? "noopener noreferrer" : void 0))}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/if-defined-z_20pBRr.js";
|
|
3
3
|
import { t as a } from "./chunks/style-map-BMvn17E7.js";
|
|
4
|
-
import { t as o } from "./chunks/i18n-
|
|
4
|
+
import { t as o } from "./chunks/i18n-B6Al9xCK.js";
|
|
5
5
|
import { r as s, t as c } from "./chunks/define-CzVPD4Zi.js";
|
|
6
6
|
import { n as l, t as u } from "./chunks/events-DQ4e9cPN.js";
|
|
7
7
|
import { t as d, x as f } from "./chunks/styles-DwSR-9a3.js";
|
|
@@ -4,7 +4,7 @@ import { t as a } from "./chunks/define-CzVPD4Zi.js";
|
|
|
4
4
|
import { n as o, t as s } from "./chunks/events-DQ4e9cPN.js";
|
|
5
5
|
import { t as c } from "./chunks/slots-BHTtBbPo.js";
|
|
6
6
|
import { t as l, x as u } from "./chunks/styles-DwSR-9a3.js";
|
|
7
|
-
import { a as d, t as f } from "./chunks/i18n-
|
|
7
|
+
import { a as d, t as f } from "./chunks/i18n-B6Al9xCK.js";
|
|
8
8
|
import "./chunks/bk-icon-DssFsNuB.js";
|
|
9
9
|
import "./chunks/chevron-down-CpVEjEyi.js";
|
|
10
10
|
import "./chunks/chevron-left-BHF34JzQ.js";
|
|
@@ -2,7 +2,7 @@ import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
|
2
2
|
import { t as i } from "./chunks/style-map-BMvn17E7.js";
|
|
3
3
|
import { i as a, n as o, t as s } from "./chunks/define-CzVPD4Zi.js";
|
|
4
4
|
import { t as c } from "./chunks/link-CWSMsx04.js";
|
|
5
|
-
import { t as l } from "./chunks/i18n-
|
|
5
|
+
import { t as l } from "./chunks/i18n-B6Al9xCK.js";
|
|
6
6
|
import { n as u, t as d } from "./chunks/busy-B7Mxemwm.js";
|
|
7
7
|
import { t as f } from "./chunks/slots-BHTtBbPo.js";
|
|
8
8
|
import { h as p, t as m, u as h } from "./chunks/styles-DwSR-9a3.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as i } from "./chunks/i18n-
|
|
2
|
+
import { t as i } from "./chunks/i18n-B6Al9xCK.js";
|
|
3
3
|
import { c as a } from "./chunks/anchor-CNX3nt2F.js";
|
|
4
|
-
import { n as o, r as s } from "./chunks/bk-carousel-
|
|
4
|
+
import { n as o, r as s } from "./chunks/bk-carousel-BCwIQhG5.js";
|
|
5
5
|
import { t as c } from "./chunks/define-CzVPD4Zi.js";
|
|
6
6
|
import { t as l } from "./chunks/styles-DwSR-9a3.js";
|
|
7
7
|
import "./bk-button.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as BkCarousel } from "./chunks/bk-carousel-
|
|
1
|
+
export { t as BkCarousel } from "./chunks/bk-carousel-BCwIQhG5.js";
|
|
@@ -3,12 +3,12 @@ import { t as i } from "./chunks/style-map-BMvn17E7.js";
|
|
|
3
3
|
import "./chunks/bk-icon-DssFsNuB.js";
|
|
4
4
|
import { t as a } from "./chunks/define-CzVPD4Zi.js";
|
|
5
5
|
import { t as o } from "./chunks/link-CWSMsx04.js";
|
|
6
|
-
import { t as s } from "./chunks/i18n-
|
|
6
|
+
import { t as s } from "./chunks/i18n-B6Al9xCK.js";
|
|
7
7
|
import { t as c, x as l } from "./chunks/styles-DwSR-9a3.js";
|
|
8
8
|
import { r as u } from "./chunks/chart-tokens-D1Exf7BW.js";
|
|
9
|
-
import { t as d } from "./chunks/i18n-
|
|
9
|
+
import { t as d } from "./chunks/i18n-BI16HQmm.js";
|
|
10
10
|
import { a as f, r as p } from "./chunks/format-DEwvmPPd.js";
|
|
11
|
-
import { t as m } from "./chunks/summary-
|
|
11
|
+
import { t as m } from "./chunks/summary-BK-B4m5A.js";
|
|
12
12
|
import "./chunks/description-DXoJ8atg.js";
|
|
13
13
|
// dist/components/bk-chart-bar-list.js
|
|
14
14
|
u();
|