@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,17 +1,17 @@
|
|
|
1
1
|
import { a as e, n as t, s as n, t as r, u as i } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as a } from "./chunks/style-map-BMvn17E7.js";
|
|
3
3
|
import { t as o } from "./chunks/define-CzVPD4Zi.js";
|
|
4
|
-
import { t as s } from "./chunks/i18n-
|
|
4
|
+
import { t as s } from "./chunks/i18n-B6Al9xCK.js";
|
|
5
5
|
import { t as c } from "./chunks/styles-DwSR-9a3.js";
|
|
6
6
|
import { n as l } from "./chunks/events-DQ4e9cPN.js";
|
|
7
7
|
import { r as u } from "./chunks/chart-tokens-D1Exf7BW.js";
|
|
8
|
-
import { t as d } from "./chunks/i18n-
|
|
8
|
+
import { t as d } from "./chunks/i18n-BI16HQmm.js";
|
|
9
9
|
import { a as f, i as p, n as m, s as h, t as g } from "./chunks/format-DEwvmPPd.js";
|
|
10
10
|
import { a as _, n as v, o as y, r as b, s as x } from "./chunks/scale-BcW5wHaU.js";
|
|
11
11
|
import { t as S } from "./chunks/brush-Bn3lPdHN.js";
|
|
12
|
-
import { a as C, i as w, n as T, o as E, r as D, t as O } from "./chunks/marks-
|
|
13
|
-
import { i as k, n as A, r as j } from "./chunks/summary-
|
|
14
|
-
import { a as M, c as N, d as P, f as F, l as I, o as L, p as R, r as z, s as B, t as V } from "./chunks/frame-
|
|
12
|
+
import { a as C, i as w, n as T, o as E, r as D, t as O } from "./chunks/marks-0kbeB4n8.js";
|
|
13
|
+
import { i as k, n as A, r as j } from "./chunks/summary-BK-B4m5A.js";
|
|
14
|
+
import { a as M, c as N, d as P, f as F, l as I, o as L, p as R, r as z, s as B, t as V } from "./chunks/frame-abXBnl8a.js";
|
|
15
15
|
import "./bk-chart-legend.js";
|
|
16
16
|
import { t as H } from "./chunks/state-XYmTmnOw.js";
|
|
17
17
|
import "./chunks/compare-DGPeqUw7.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as e, n as t, s as n, t as r, u as i } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as a } from "./chunks/style-map-BMvn17E7.js";
|
|
3
3
|
import { t as o } from "./chunks/define-CzVPD4Zi.js";
|
|
4
|
-
import { t as s } from "./chunks/i18n-
|
|
4
|
+
import { t as s } from "./chunks/i18n-B6Al9xCK.js";
|
|
5
5
|
import { t as c } from "./chunks/styles-DwSR-9a3.js";
|
|
6
6
|
import { r as l } from "./chunks/chart-tokens-D1Exf7BW.js";
|
|
7
|
-
import { t as u } from "./chunks/i18n-
|
|
7
|
+
import { t as u } from "./chunks/i18n-BI16HQmm.js";
|
|
8
8
|
import { a as d, t as f } from "./chunks/format-DEwvmPPd.js";
|
|
9
9
|
import { a as p, n as m } from "./chunks/scale-BcW5wHaU.js";
|
|
10
|
-
import { c as h, d as g, f as _, l as v, o as y, p as b, r as x, s as S, t as C } from "./chunks/frame-
|
|
10
|
+
import { c as h, d as g, f as _, l as v, o as y, p as b, r as x, s as S, t as C } from "./chunks/frame-abXBnl8a.js";
|
|
11
11
|
import "./bk-chart-legend.js";
|
|
12
12
|
import "./chunks/grid-BV0_DQ5v.js";
|
|
13
13
|
// dist/components/bk-chart-scatter.js
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as e, n as t, s as n, t as r, u as i } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { 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 { r as c } from "./chunks/chart-tokens-D1Exf7BW.js";
|
|
6
|
-
import { t as l } from "./chunks/i18n-
|
|
6
|
+
import { t as l } from "./chunks/i18n-BI16HQmm.js";
|
|
7
7
|
import { a as u } from "./chunks/format-DEwvmPPd.js";
|
|
8
8
|
import { n as d } from "./chunks/scale-BcW5wHaU.js";
|
|
9
|
-
import { n as f, t as p } from "./chunks/frame-
|
|
9
|
+
import { n as f, t as p } from "./chunks/frame-abXBnl8a.js";
|
|
10
10
|
// dist/components/bk-chart-sparkline.js
|
|
11
11
|
c();
|
|
12
12
|
var m = (e) => (e ?? "").split(/[\s,;]+/).filter(Boolean).map(Number).filter(Number.isFinite), h = class extends r {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as e, n as t, s as n, t as r, u as i } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as a } from "./chunks/style-map-BMvn17E7.js";
|
|
3
3
|
import { t as o } from "./chunks/define-CzVPD4Zi.js";
|
|
4
|
-
import { t as s } from "./chunks/i18n-
|
|
4
|
+
import { t as s } from "./chunks/i18n-B6Al9xCK.js";
|
|
5
5
|
import { t as c } from "./chunks/styles-DwSR-9a3.js";
|
|
6
6
|
import { r as l } from "./chunks/chart-tokens-D1Exf7BW.js";
|
|
7
|
-
import { t as u } from "./chunks/i18n-
|
|
7
|
+
import { t as u } from "./chunks/i18n-BI16HQmm.js";
|
|
8
8
|
import { a as d, n as f, r as p } from "./chunks/format-DEwvmPPd.js";
|
|
9
|
-
import { t as m } from "./chunks/summary-
|
|
10
|
-
import { d as h, f as g, l as _, o as v, p as y, r as b, t as x, u as S } from "./chunks/frame-
|
|
9
|
+
import { t as m } from "./chunks/summary-BK-B4m5A.js";
|
|
10
|
+
import { d as h, f as g, l as _, o as v, p as y, r as b, t as x, u as S } from "./chunks/frame-abXBnl8a.js";
|
|
11
11
|
import "./bk-chart-legend.js";
|
|
12
12
|
// dist/components/bk-chart-stacked-bar.js
|
|
13
13
|
l();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/define-CzVPD4Zi.js";
|
|
3
|
-
import { t as a } from "./chunks/i18n-
|
|
3
|
+
import { t as a } from "./chunks/i18n-B6Al9xCK.js";
|
|
4
4
|
import { t as o } from "./chunks/styles-DwSR-9a3.js";
|
|
5
5
|
import { r as s } from "./chunks/chart-tokens-D1Exf7BW.js";
|
|
6
|
-
import { t as c } from "./chunks/i18n-
|
|
6
|
+
import { t as c } from "./chunks/i18n-BI16HQmm.js";
|
|
7
7
|
import { n as l } from "./chunks/format-DEwvmPPd.js";
|
|
8
|
-
import { l as u, r as d, t as f } from "./chunks/frame-
|
|
8
|
+
import { l as u, r as d, t as f } from "./chunks/frame-abXBnl8a.js";
|
|
9
9
|
import "./bk-chart-legend.js";
|
|
10
10
|
// dist/components/bk-chart-tracker.js
|
|
11
11
|
s();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import { t as a } from "./chunks/i18n-
|
|
3
|
+
import { t as a } from "./chunks/i18n-B6Al9xCK.js";
|
|
4
4
|
import { r as o } from "./chunks/chart-tokens-D1Exf7BW.js";
|
|
5
|
-
import { t as s } from "./chunks/i18n-
|
|
5
|
+
import { t as s } from "./chunks/i18n-BI16HQmm.js";
|
|
6
6
|
import { a as c } from "./chunks/scale-BcW5wHaU.js";
|
|
7
7
|
import { t as l } from "./chunks/define-CzVPD4Zi.js";
|
|
8
8
|
import { n as u } from "./chunks/events-DQ4e9cPN.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as e, u as t } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as n } from "./chunks/live-CgLyfc6z.js";
|
|
3
3
|
import { n as r, r as i, t as a } from "./chunks/define-CzVPD4Zi.js";
|
|
4
|
-
import { a as o, n as s, t as c } from "./chunks/i18n-
|
|
4
|
+
import { a as o, n as s, t as c } from "./chunks/i18n-B6Al9xCK.js";
|
|
5
5
|
import { t as l } from "./chunks/events-DQ4e9cPN.js";
|
|
6
6
|
import { n as u } from "./chunks/field-DkBkSgJI.js";
|
|
7
|
-
import { t as d } from "./chunks/form-control-
|
|
7
|
+
import { t as d } from "./chunks/form-control-CyXQIJ2x.js";
|
|
8
8
|
import { s as f, t as p } from "./chunks/styles-DwSR-9a3.js";
|
|
9
9
|
import { BkCheckbox as m } from "./bk-checkbox.js";
|
|
10
10
|
// dist/components/bk-checkbox-group.js
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, n as t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as r } from "./chunks/define-CzVPD4Zi.js";
|
|
3
3
|
import { t as i } from "./chunks/styles-DwSR-9a3.js";
|
|
4
|
-
import { n as a, t as o } from "./chunks/toggle-control-
|
|
4
|
+
import { n as a, t as o } from "./chunks/toggle-control-ioV2jhNY.js";
|
|
5
5
|
import "./chunks/bk-icon-DssFsNuB.js";
|
|
6
6
|
import "./chunks/check-BkWcIJJJ.js";
|
|
7
7
|
import "./chunks/remove-3A4Fpn3J.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { n as i, r as a, t as o } from "./chunks/define-CzVPD4Zi.js";
|
|
3
3
|
import { t as s } from "./chunks/events-DQ4e9cPN.js";
|
|
4
|
-
import { t as c } from "./chunks/form-control-
|
|
5
|
-
import { t as l } from "./chunks/i18n-
|
|
4
|
+
import { t as c } from "./chunks/form-control-CyXQIJ2x.js";
|
|
5
|
+
import { t as l } from "./chunks/i18n-B6Al9xCK.js";
|
|
6
6
|
import { t as u } from "./chunks/styles-DwSR-9a3.js";
|
|
7
7
|
import { BkChip as d } from "./bk-chip.js";
|
|
8
8
|
import { c as f } from "./chunks/anchor-CNX3nt2F.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { n as i, t as a } from "./chunks/define-CzVPD4Zi.js";
|
|
3
3
|
import { t as o } from "./chunks/link-CWSMsx04.js";
|
|
4
|
-
import { t as s } from "./chunks/i18n-
|
|
4
|
+
import { t as s } from "./chunks/i18n-B6Al9xCK.js";
|
|
5
5
|
import { n as c, t as l } from "./chunks/events-DQ4e9cPN.js";
|
|
6
|
-
import { t as u } from "./chunks/clipboard-
|
|
6
|
+
import { t as u } from "./chunks/clipboard-Crzt1Sh9.js";
|
|
7
7
|
import { t as d } from "./chunks/if-defined-z_20pBRr.js";
|
|
8
8
|
import { _ as f, g as p, l as m, t as h, x as g } from "./chunks/styles-DwSR-9a3.js";
|
|
9
9
|
import "./chunks/bk-icon-DssFsNuB.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 { i as o } from "./chunks/events-DQ4e9cPN.js";
|
|
5
5
|
import { t as s, v as c, x as l } from "./chunks/styles-DwSR-9a3.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
|
-
import { t as i } from "./chunks/i18n-
|
|
3
|
-
import { t as a } from "./chunks/clipboard-
|
|
2
|
+
import { t as i } from "./chunks/i18n-B6Al9xCK.js";
|
|
3
|
+
import { t as a } from "./chunks/clipboard-Crzt1Sh9.js";
|
|
4
4
|
import { t as o } from "./chunks/define-CzVPD4Zi.js";
|
|
5
5
|
import { t as s, x as c } from "./chunks/styles-DwSR-9a3.js";
|
|
6
6
|
import "./bk-button.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/style-map-BMvn17E7.js";
|
|
3
|
-
import { t as a } from "./chunks/i18n-
|
|
4
|
-
import { t as o } from "./chunks/clipboard-
|
|
3
|
+
import { t as a } from "./chunks/i18n-B6Al9xCK.js";
|
|
4
|
+
import { t as o } from "./chunks/clipboard-Crzt1Sh9.js";
|
|
5
5
|
import { 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 } from "./chunks/slots-BHTtBbPo.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/style-map-BMvn17E7.js";
|
|
3
3
|
import { t as a } from "./chunks/live-CgLyfc6z.js";
|
|
4
|
-
import { t as o } from "./chunks/i18n-
|
|
4
|
+
import { t as o } from "./chunks/i18n-B6Al9xCK.js";
|
|
5
5
|
import { a as s, i as c } from "./chunks/oklch-BR-mTnMz.js";
|
|
6
6
|
import { t as l } from "./chunks/define-CzVPD4Zi.js";
|
|
7
7
|
import { t as u } from "./chunks/events-DQ4e9cPN.js";
|
|
8
8
|
import { t as d } from "./chunks/slider-BWT8Fmwz.js";
|
|
9
9
|
import { t as f, v as p } from "./chunks/styles-DwSR-9a3.js";
|
|
10
10
|
import "./bk-button.js";
|
|
11
|
-
import "./chunks/bk-input-text-
|
|
11
|
+
import "./chunks/bk-input-text-DD32uWNO.js";
|
|
12
12
|
import "./bk-input-slider.js";
|
|
13
13
|
import "./bk-segmented.js";
|
|
14
14
|
import "./bk-segmented-item.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/style-map-BMvn17E7.js";
|
|
3
3
|
import { i as a, r as o, t as s } from "./chunks/define-CzVPD4Zi.js";
|
|
4
|
-
import { t as c } from "./chunks/i18n-
|
|
4
|
+
import { t as c } from "./chunks/i18n-B6Al9xCK.js";
|
|
5
5
|
import { t as l } from "./chunks/slots-BHTtBbPo.js";
|
|
6
6
|
import { n as u } from "./chunks/state-XYmTmnOw.js";
|
|
7
7
|
import { t as d } from "./chunks/styles-DwSR-9a3.js";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { a as e, n as t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as r } from "./chunks/if-defined-z_20pBRr.js";
|
|
3
3
|
import { t as i } from "./chunks/live-CgLyfc6z.js";
|
|
4
|
-
import { n as a, t as o } from "./chunks/choice-field-
|
|
4
|
+
import { n as a, t as o } from "./chunks/choice-field-CGvE4tyb.js";
|
|
5
5
|
import { t as s } from "./chunks/define-CzVPD4Zi.js";
|
|
6
6
|
import { i as c } from "./chunks/events-DQ4e9cPN.js";
|
|
7
|
-
import {
|
|
7
|
+
import { t as l } from "./chunks/loading-B37QBUkv.js";
|
|
8
|
+
import { n as u, t as d, u as f } from "./chunks/options-DMEc8rQt.js";
|
|
8
9
|
import "./bk-chip.js";
|
|
9
10
|
import "./chunks/bk-icon-DssFsNuB.js";
|
|
10
11
|
import "./bk-spinner.js";
|
|
@@ -12,7 +13,7 @@ import "./chunks/add-CUFUzxGc.js";
|
|
|
12
13
|
import "./chunks/chevron-down-CpVEjEyi.js";
|
|
13
14
|
import "./chunks/search-Cm9mOqRy.js";
|
|
14
15
|
// dist/components/bk-combobox.js
|
|
15
|
-
var
|
|
16
|
+
var p = class extends o {
|
|
16
17
|
static properties = {
|
|
17
18
|
...o.properties,
|
|
18
19
|
readonly: {
|
|
@@ -45,15 +46,19 @@ var f = class extends o {
|
|
|
45
46
|
},
|
|
46
47
|
query: { state: !0 },
|
|
47
48
|
results: { state: !0 },
|
|
48
|
-
text: { state: !0 }
|
|
49
|
+
text: { state: !0 },
|
|
50
|
+
searching: { state: !0 }
|
|
49
51
|
};
|
|
52
|
+
searched;
|
|
53
|
+
shownLabel = "";
|
|
54
|
+
loader = new l(this);
|
|
50
55
|
visible = [];
|
|
51
56
|
labelCache = /* @__PURE__ */ new Map();
|
|
52
57
|
matched;
|
|
53
58
|
timer;
|
|
54
59
|
controller;
|
|
55
60
|
constructor() {
|
|
56
|
-
super(), this.readonly = !1, this.type = "text", this.open = !1, this.allowCustom = !1, this.enterKeyHint = "", this.loading = !1, this.debounce = 150, this.emptyText = "", this.addLabel = "", this.query = "", this.results = [], this.text = "";
|
|
61
|
+
super(), this.readonly = !1, this.type = "text", this.open = !1, this.allowCustom = !1, this.enterKeyHint = "", this.loading = !1, this.debounce = 150, this.emptyText = "", this.addLabel = "", this.query = "", this.results = [], this.text = "", this.searching = !1;
|
|
57
62
|
}
|
|
58
63
|
get leadIcon() {
|
|
59
64
|
return this.icon ?? (this.type === "search" ? "search" : void 0);
|
|
@@ -68,7 +73,10 @@ var f = class extends o {
|
|
|
68
73
|
return this.visible;
|
|
69
74
|
}
|
|
70
75
|
disconnectedCallback() {
|
|
71
|
-
super.disconnectedCallback(), clearTimeout(this.timer), this.controller?.abort();
|
|
76
|
+
super.disconnectedCallback(), clearTimeout(this.timer), this.controller?.abort(), this.searching && (this.searching = !1, this.loading = !1);
|
|
77
|
+
}
|
|
78
|
+
get busy() {
|
|
79
|
+
return this.loading || this.searching;
|
|
72
80
|
}
|
|
73
81
|
static styles = [...a("combobox"), n`
|
|
74
82
|
:host { --_bk-text-field-font-size: var(--bk-combobox-font-size); }
|
|
@@ -102,7 +110,10 @@ var f = class extends o {
|
|
|
102
110
|
return this.renderRoot?.querySelector("input") ?? null;
|
|
103
111
|
}
|
|
104
112
|
resetValue() {
|
|
105
|
-
super.resetValue(), this.query = "", this.
|
|
113
|
+
super.resetValue(), this.query = "", this.multiple ? this.text = "" : this.showLabel();
|
|
114
|
+
}
|
|
115
|
+
showLabel() {
|
|
116
|
+
this.text = this.shownLabel = this.labelOf(this.value);
|
|
106
117
|
}
|
|
107
118
|
get changeable() {
|
|
108
119
|
return super.changeable && !this.readonly;
|
|
@@ -124,10 +135,11 @@ var f = class extends o {
|
|
|
124
135
|
if (this.isDisabled || this.readonly) return;
|
|
125
136
|
this.expanded || (this.expanded = !0, this.search && this.scheduleSearch()), this.visible = this.computeVisible();
|
|
126
137
|
let t = this.multiple ? -1 : this.visible.findIndex((e) => e.value === this.value);
|
|
127
|
-
this.activeIndex = t >= 0 && e >= 0 ? t : e === 0 ? -1 :
|
|
138
|
+
this.activeIndex = t >= 0 && e >= 0 ? t : e === 0 ? -1 : d(this.visible, e);
|
|
128
139
|
}
|
|
129
140
|
labelOf(e) {
|
|
130
|
-
|
|
141
|
+
let t = (t) => t.find((t) => t.value === e)?.label;
|
|
142
|
+
return t(this.allOptions) ?? this.labelCache.get(e) ?? (this.search ? t(super.allOptions) : void 0) ?? e;
|
|
131
143
|
}
|
|
132
144
|
remember(e) {
|
|
133
145
|
this.labelCache.set(e.value, e.label);
|
|
@@ -142,7 +154,7 @@ var f = class extends o {
|
|
|
142
154
|
if (r && r.q === e && r.opts === t && r.filter === this.filter && r.locale === n) t = r.list;
|
|
143
155
|
else {
|
|
144
156
|
let r = t;
|
|
145
|
-
t = r.filter((t) => this.filter ? this.filter(t, e) :
|
|
157
|
+
t = r.filter((t) => this.filter ? this.filter(t, e) : u(t.label, e, n) !== null), this.matched = {
|
|
146
158
|
q: e,
|
|
147
159
|
opts: r,
|
|
148
160
|
filter: this.filter,
|
|
@@ -154,7 +166,7 @@ var f = class extends o {
|
|
|
154
166
|
if (this.maxed && (t = t.map((e) => this.selection.includes(e.value) || e.disabled ? e : {
|
|
155
167
|
...e,
|
|
156
168
|
disabled: !0
|
|
157
|
-
})), this.allowCustom && e && !this.maxed && !this.
|
|
169
|
+
})), this.allowCustom && e && !this.maxed && !this.busy && !this.resolve(e) && !this.selection.includes(e)) {
|
|
158
170
|
let n = this.addLabel ? this.addLabel.replaceAll("{query}", e) : this.i18n.t("comboboxAdd", { query: e });
|
|
159
171
|
t = [...t, {
|
|
160
172
|
value: e,
|
|
@@ -167,20 +179,23 @@ var f = class extends o {
|
|
|
167
179
|
}
|
|
168
180
|
resolve(e) {
|
|
169
181
|
let t = e.trim(), n = this.i18n.locale;
|
|
170
|
-
return t ? this.allOptions.find((e) => !e.disabled &&
|
|
182
|
+
return t ? this.allOptions.find((e) => !e.disabled && f(e.label, t, n)) : void 0;
|
|
171
183
|
}
|
|
172
184
|
willUpdate(e) {
|
|
173
185
|
e.has("open") && this.open !== this.popupShown && (this.open ? this.showPicker() : this.close()), super.willUpdate(e);
|
|
174
|
-
let t = e.has("options") || e.has("childOptions") || e.has("results");
|
|
186
|
+
let t = e.has("options") || e.has("childOptions") || e.has("results") || e.has("search");
|
|
175
187
|
if (t) for (let e of this.allOptions) this.selection.includes(e.value) && this.remember(e);
|
|
176
|
-
!this.multiple && (e.has("value") || e.has("values") || t &&
|
|
188
|
+
!this.multiple && (e.has("value") || e.has("values") || t && this.text === this.shownLabel) && this.showLabel(), this.loader.set(this.busy), this.visible = this.computeVisible(), this.activeIndex >= this.visible.length && (this.activeIndex = -1), this.frameRows(e.has("activeIndex") || e.has("expanded") || e.has("query")), this.open = this.popupShown;
|
|
177
189
|
}
|
|
178
190
|
popupToggled(e) {
|
|
179
191
|
c(this, e);
|
|
180
192
|
}
|
|
181
193
|
scheduleSearch() {
|
|
182
|
-
if (clearTimeout(this.timer), this.controller?.abort(), !this.search)
|
|
183
|
-
|
|
194
|
+
if (clearTimeout(this.timer), this.controller?.abort(), !this.search) {
|
|
195
|
+
this.searching &&= this.loading = !1;
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
this.searching = !0, this.loading = !0;
|
|
184
199
|
let e = this.query.trim();
|
|
185
200
|
this.timer = setTimeout(() => this.runSearch(e), Math.max(0, this.debounce));
|
|
186
201
|
}
|
|
@@ -194,7 +209,7 @@ var f = class extends o {
|
|
|
194
209
|
if (t.signal.aborted) return;
|
|
195
210
|
this.results = [];
|
|
196
211
|
}
|
|
197
|
-
this.loading = !1, this.expanded && this.query.trim() && !this.allowCustom && (this.activeIndex =
|
|
212
|
+
this.searched = e, this.searching = !1, this.loading = !1, this.expanded && this.query.trim() && !this.allowCustom && (this.activeIndex = d(this.computeVisible(), 1));
|
|
198
213
|
}
|
|
199
214
|
pickRow(e) {
|
|
200
215
|
let t = this.visible[e];
|
|
@@ -231,13 +246,13 @@ var f = class extends o {
|
|
|
231
246
|
return;
|
|
232
247
|
}
|
|
233
248
|
let t = this.resolve(e);
|
|
234
|
-
t ? (this.remember(t), this.commit([t.value]), this.text = t.label) : this.allowCustom ? (this.commit([e]), this.text = e) : this.
|
|
249
|
+
t ? (this.remember(t), this.commit([t.value]), this.text = t.label) : this.allowCustom ? (this.commit([e]), this.text = e) : this.showLabel();
|
|
235
250
|
}
|
|
236
251
|
removeValue(e) {
|
|
237
252
|
this.isDisabled || this.readonly || this.commit(this.selection.filter((t) => t !== e));
|
|
238
253
|
}
|
|
239
254
|
onInput(e) {
|
|
240
|
-
e.stopPropagation(), this.text = e.target.value, this.query = this.text, this.expanded || this.openList(0), this.visible = this.computeVisible(), this.activeIndex = this.query.trim() && !this.allowCustom ?
|
|
255
|
+
e.stopPropagation(), this.text = e.target.value, this.query = this.text, this.expanded || this.openList(0), this.visible = this.computeVisible(), this.activeIndex = this.query.trim() && !this.allowCustom ? d(this.visible, 1) : -1, this.search && this.scheduleSearch();
|
|
241
256
|
}
|
|
242
257
|
onKeydown(e) {
|
|
243
258
|
if (this.isDisabled || this.readonly || e.isComposing) return;
|
|
@@ -302,15 +317,19 @@ var f = class extends o {
|
|
|
302
317
|
onTagRemove(e, t) {
|
|
303
318
|
e.stopPropagation(), this.removeValue(t), this.control?.focus();
|
|
304
319
|
}
|
|
320
|
+
get noResults() {
|
|
321
|
+
let e = this.query.trim();
|
|
322
|
+
return !this.busy && !this.visible.length && !!e && !this.allowCustom && (!this.search || this.searched === e);
|
|
323
|
+
}
|
|
305
324
|
get hasContent() {
|
|
306
|
-
return this.
|
|
325
|
+
return this.loader.visible || this.visible.length > 0 || this.noResults;
|
|
307
326
|
}
|
|
308
327
|
get popupShown() {
|
|
309
328
|
return this.expanded && this.hasContent;
|
|
310
329
|
}
|
|
311
330
|
rowLabel = (e) => e.custom ? e.label : this.renderOption ? this.renderOption(e, this.markLabel(e)) : this.markLabel(e);
|
|
312
331
|
markLabel = (t) => {
|
|
313
|
-
let n =
|
|
332
|
+
let n = u(t.label, this.query, this.i18n.locale);
|
|
314
333
|
if (!n?.length) return t.label;
|
|
315
334
|
let r = [], i = 0;
|
|
316
335
|
for (let [a, o] of n) r.push(t.label.slice(i, a), e`<mark>${t.label.slice(a, o)}</mark>`), i = o;
|
|
@@ -325,13 +344,13 @@ var f = class extends o {
|
|
|
325
344
|
}
|
|
326
345
|
get announcement() {
|
|
327
346
|
if (!this.expanded) return "";
|
|
328
|
-
if (this.
|
|
347
|
+
if (this.busy) return this.loader.visible ? this.i18n.t("comboboxLoading") : "";
|
|
329
348
|
if (!this.query.trim()) return "";
|
|
330
349
|
let e = this.visible.filter((e) => !e.custom).length, t = this.visible.find((e) => e.custom);
|
|
331
|
-
return !e && t ? t.label : e ? this.i18n.t("comboboxResults", { count: e }) : this.
|
|
350
|
+
return !e && t ? t.label : e ? this.i18n.t("comboboxResults", { count: e }) : this.noResults ? this.emptyText || this.i18n.t("comboboxNoResults") : "";
|
|
332
351
|
}
|
|
333
352
|
render() {
|
|
334
|
-
let n = this.showInvalid, a = this.multiple && this.selection.length > 0, o = this.descriptionIds(a ? "tags-text" : void 0), s = `${this.key}-list`, c = this.label ? void 0 : this.forwardedName, l = this.popupShown, u = this.visible, d =
|
|
353
|
+
let n = this.showInvalid, a = this.multiple && this.selection.length > 0, o = this.descriptionIds(a ? "tags-text" : void 0), s = `${this.key}-list`, c = this.label ? void 0 : this.forwardedName, l = this.popupShown, u = this.visible, d = this.busy, f = this.noResults, p = d && u.length > 0;
|
|
335
354
|
return e`<div @focusout=${this.onFocusOut}>
|
|
336
355
|
${this.renderField(e`<div class="${this.boxClass}${a ? " has-tags" : ""}${l ? " open" : ""}" part="box" @click=${this.onBoxClick}>
|
|
337
356
|
${this.renderStart()}
|
|
@@ -353,17 +372,17 @@ var f = class extends o {
|
|
|
353
372
|
${this.type === "search" ? t : e`<bk-icon class="chevron" part="chevron" name="chevron-down"></bk-icon>`}
|
|
354
373
|
</div>`)}
|
|
355
374
|
<div popover="manual" part="popup" @toggle=${this.onPopupToggle} @mousedown=${(e) => e.preventDefault()}>
|
|
356
|
-
${this.
|
|
375
|
+
${this.loader.visible && !u.length && !f ? e`<div class="status" part="status"><bk-spinner></bk-spinner>${this.i18n.t("comboboxLoading")}</div>` : t}
|
|
357
376
|
<div role="listbox" part="listbox" id=${s} aria-label=${this.label || c || this.i18n.t("options")}
|
|
358
|
-
aria-multiselectable=${this.multiple ? "true" : t} aria-busy=${
|
|
359
|
-
${this.renderRows(this.rowLabel,
|
|
377
|
+
aria-multiselectable=${this.multiple ? "true" : t} aria-busy=${d ? "true" : t}>
|
|
378
|
+
${this.renderRows(this.rowLabel, p)}
|
|
360
379
|
</div>
|
|
361
|
-
${
|
|
380
|
+
${f ? e`<div class="status" part="status">${this.emptyText || this.i18n.t("comboboxNoResults")}</div>` : t}
|
|
362
381
|
</div>
|
|
363
382
|
<div class="sr-only" role="status">${this.announcement}</div>
|
|
364
383
|
<slot></slot>
|
|
365
384
|
</div>`;
|
|
366
385
|
}
|
|
367
386
|
};
|
|
368
|
-
s("bk-combobox",
|
|
369
|
-
export {
|
|
387
|
+
s("bk-combobox", p);
|
|
388
|
+
export { p as BkCombobox, u as matchRanges };
|
|
@@ -1,12 +1,12 @@
|
|
|
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/define-CzVPD4Zi.js";
|
|
3
3
|
import { n as a } from "./chunks/events-DQ4e9cPN.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/state-XYmTmnOw.js";
|
|
6
6
|
import { t as c, x as l } from "./chunks/styles-DwSR-9a3.js";
|
|
7
7
|
import { a as u, n as d, r as f } from "./chunks/options-DMEc8rQt.js";
|
|
8
8
|
import "./chunks/bk-icon-DssFsNuB.js";
|
|
9
|
-
import "./chunks/bk-kbd-
|
|
9
|
+
import "./chunks/bk-kbd-B_TlKzWj.js";
|
|
10
10
|
import "./bk-spinner.js";
|
|
11
11
|
import { t as p } from "./chunks/scroll-CB6-StUs.js";
|
|
12
12
|
import "./chunks/arrow-forward-vijvTQ6r.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { n as i, r as a, t as o } from "./chunks/define-CzVPD4Zi.js";
|
|
3
3
|
import { r as s } from "./chunks/events-DQ4e9cPN.js";
|
|
4
|
-
import { t as c } from "./chunks/i18n-
|
|
4
|
+
import { t as c } from "./chunks/i18n-B6Al9xCK.js";
|
|
5
5
|
import { t as l } from "./chunks/styles-DwSR-9a3.js";
|
|
6
|
-
import { f as u, m as d } from "./chunks/bk-kbd-
|
|
7
|
-
import "./chunks/bk-dialog-
|
|
6
|
+
import { f as u, m as d } from "./chunks/bk-kbd-B_TlKzWj.js";
|
|
7
|
+
import "./chunks/bk-dialog-DX0cPJ1o.js";
|
|
8
8
|
import { matchesQuery as f } from "./bk-command-menu.js";
|
|
9
9
|
// dist/components/bk-command-palette.js
|
|
10
10
|
var p = 0, m = class extends n {
|
|
@@ -2,13 +2,13 @@ import { a as e, n as t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
|
2
2
|
import { t as r } from "./chunks/if-defined-z_20pBRr.js";
|
|
3
3
|
import { t as i } from "./chunks/live-CgLyfc6z.js";
|
|
4
4
|
import { t as a } from "./chunks/style-map-BMvn17E7.js";
|
|
5
|
-
import { t as o } from "./chunks/i18n-
|
|
5
|
+
import { t as o } from "./chunks/i18n-B6Al9xCK.js";
|
|
6
6
|
import { o as s, t as c } from "./chunks/anchor-CNX3nt2F.js";
|
|
7
7
|
import { t as l } from "./chunks/announcer-haFcvqbe.js";
|
|
8
8
|
import { a as u, c as d, d as f, t as p } from "./chunks/options-DMEc8rQt.js";
|
|
9
9
|
import { t as m } from "./chunks/define-CzVPD4Zi.js";
|
|
10
10
|
import { n as h, t as g } from "./chunks/events-DQ4e9cPN.js";
|
|
11
|
-
import { t as _ } from "./chunks/form-control-
|
|
11
|
+
import { t as _ } from "./chunks/form-control-CyXQIJ2x.js";
|
|
12
12
|
import { t as v } from "./chunks/slots-BHTtBbPo.js";
|
|
13
13
|
import { t as y } from "./chunks/state-XYmTmnOw.js";
|
|
14
14
|
import { b, r as x, s as S, t as C } from "./chunks/styles-DwSR-9a3.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 { t as i } from "./chunks/define-CzVPD4Zi.js";
|
|
3
|
-
import { t as a } from "./chunks/i18n-
|
|
3
|
+
import { t as a } from "./chunks/i18n-B6Al9xCK.js";
|
|
4
4
|
import { t as o, x as s } from "./chunks/styles-DwSR-9a3.js";
|
|
5
5
|
import { a as c, i as l, n as u, r as d, t as f } from "./chunks/delta-C3KtTv5o.js";
|
|
6
6
|
// dist/components/bk-delta.js
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as BkDiagram, n as registerDiagramFonts } from "./chunks/bk-diagram-
|
|
1
|
+
export { t as BkDiagram, n as registerDiagramFonts } from "./chunks/bk-diagram-DWK8CvRZ.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as BkDialog } from "./chunks/bk-dialog-
|
|
1
|
+
export { t as BkDialog } from "./chunks/bk-dialog-DX0cPJ1o.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as e, u as t } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as n } from "./chunks/i18n-
|
|
2
|
+
import { t as n } from "./chunks/i18n-B6Al9xCK.js";
|
|
3
3
|
import { t as r } from "./chunks/define-CzVPD4Zi.js";
|
|
4
4
|
import { r as i } from "./chunks/events-DQ4e9cPN.js";
|
|
5
|
-
import { t as a } from "./chunks/bk-dialog-
|
|
5
|
+
import { t as a } from "./chunks/bk-dialog-DX0cPJ1o.js";
|
|
6
6
|
// dist/components/bk-drawer.js
|
|
7
7
|
var o = 8, s = class extends a {
|
|
8
8
|
static properties = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as r } from "./chunks/define-CzVPD4Zi.js";
|
|
3
|
-
import { t as i } from "./chunks/i18n-
|
|
3
|
+
import { t as i } from "./chunks/i18n-B6Al9xCK.js";
|
|
4
4
|
import { t as a } from "./chunks/slots-BHTtBbPo.js";
|
|
5
5
|
import { t as o } from "./chunks/styles-DwSR-9a3.js";
|
|
6
6
|
import "./bk-alert.js";
|
|
@@ -16,18 +16,20 @@ var o = class extends t {
|
|
|
16
16
|
}
|
|
17
17
|
static styles = [a, n`
|
|
18
18
|
:host {
|
|
19
|
-
display:
|
|
20
|
-
gap: var(--bk-facts-item-gap, var(--bk-space-1)) var(--_bk-facts-
|
|
19
|
+
display: grid; align-content: start; min-width: 0;
|
|
20
|
+
row-gap: var(--bk-facts-item-gap, var(--bk-space-1)); grid-column: var(--_bk-facts-span, auto);
|
|
21
|
+
grid-template-columns: var(--_bk-facts-subgrid, none);
|
|
21
22
|
padding-block: var(--_bk-facts-pad, 0px); align-items: baseline;
|
|
22
23
|
}
|
|
23
24
|
/* A long word (a German compound) breaks inside the label column: hyphens in the language of the page, else anywhere. */
|
|
24
|
-
.label {
|
|
25
|
-
.
|
|
26
|
-
.actions {
|
|
25
|
+
.label { grid-area: var(--_bk-facts-label-area, auto); min-inline-size: 0; padding-inline-end: var(--_bk-facts-col-gap, 0px); hyphens: auto; overflow-wrap: anywhere; }
|
|
26
|
+
.actions { grid-area: var(--_bk-facts-actions-area, auto); display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--bk-space-cluster); justify-self: start; }
|
|
27
|
+
.actions:not([hidden]) { margin-inline-start: var(--_bk-facts-col-gap, 0px); }
|
|
27
28
|
.actions[hidden] { display: none; }
|
|
29
|
+
:host([data-type="number"]) .value { text-align: end; font-variant-numeric: tabular-nums; }
|
|
28
30
|
:host([wide]) { grid-column: 1 / -1; }
|
|
29
31
|
.label { font-size: var(--bk-facts-item-label-size, var(--bk-label-size, var(--bk-text-xs))); font-weight: var(--bk-label-weight, inherit); text-transform: var(--bk-label-transform, none); letter-spacing: var(--bk-label-tracking, normal); line-height: var(--bk-line-height-heading); font-family: var(--bk-font-label, inherit); color: var(--bk-facts-item-label-fg, var(--bk-label-color, var(--bk-text-muted))); }
|
|
30
|
-
.value { min-width: 0; font-size: var(--bk-facts-item-value-size, var(--bk-type-body)); line-height: var(--bk-line-height-body); color: var(--bk-facts-item-value-fg, var(--bk-text)); overflow-wrap:
|
|
32
|
+
.value { grid-area: var(--_bk-facts-value-area, auto); min-width: 0; font-size: var(--bk-facts-item-value-size, var(--bk-type-body)); line-height: var(--bk-line-height-body); color: var(--bk-facts-item-value-fg, var(--bk-text)); overflow-wrap: break-word; }
|
|
31
33
|
`];
|
|
32
34
|
slots = new i(this);
|
|
33
35
|
render() {
|
|
@@ -19,23 +19,34 @@ var a = class extends t {
|
|
|
19
19
|
gap: var(--bk-facts-gap-block, var(--bk-space-4)) var(--bk-facts-gap-inline, var(--bk-space-5));
|
|
20
20
|
grid-template-columns: repeat(auto-fit, minmax(min(var(--bk-facts-min, 160px), 100%), 1fr));
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
/* One grid for all rows: the label column is as wide as the widest label, up to --bk-facts-label-width, and never
|
|
23
|
+
leaves less than --bk-facts-rows-min for the value. Each item spans the columns as a subgrid: label, value, actions. */
|
|
24
|
+
:host([layout="rows"]) { display: block; container-type: inline-size; }
|
|
25
|
+
.rows { display: contents; }
|
|
26
|
+
:host([layout="rows"]) .rows {
|
|
27
|
+
display: grid;
|
|
28
|
+
grid-template-columns: fit-content(max(min(var(--bk-facts-label-width, 60%), calc(100% - var(--bk-facts-rows-min, var(--bk-measure-min)))), var(--bk-measure-min) / 2)) minmax(0, 1fr) auto;
|
|
29
|
+
column-gap: 0; row-gap: 0;
|
|
30
|
+
}
|
|
31
|
+
/* Private variables inherit into the items; an item reads them to lay out its row. */
|
|
25
32
|
:host([layout="rows"]) ::slotted(bk-facts-item) {
|
|
26
|
-
--_bk-facts-
|
|
27
|
-
--_bk-facts-label-flex: 1 0 var(--bk-facts-label-width, 30%);
|
|
28
|
-
--_bk-facts-value-flex: 1000 1 var(--bk-facts-rows-min, var(--bk-measure-min));
|
|
29
|
-
--_bk-facts-pad: var(--bk-facts-row-gap, var(--bk-space-3));
|
|
33
|
+
--_bk-facts-subgrid: subgrid; --_bk-facts-span: 1 / -1;
|
|
30
34
|
--_bk-facts-col-gap: var(--bk-facts-gap-inline, var(--bk-space-5));
|
|
35
|
+
--_bk-facts-pad: var(--bk-facts-row-gap, var(--bk-space-3));
|
|
31
36
|
}
|
|
32
37
|
:host([layout="rows"]) ::slotted(bk-facts-item:not(:first-child)) { border-block-start: var(--bk-border-width) solid var(--bk-facts-row-divider, var(--bk-line)); }
|
|
38
|
+
/* A narrow list: the label and the actions share the first line, the value takes the line below at full width.
|
|
39
|
+
A container query cannot read a token, so the breakpoint is fixed. */
|
|
40
|
+
@container (inline-size < 24rem) {
|
|
41
|
+
.rows { grid-template-columns: minmax(0, 1fr) auto !important; }
|
|
42
|
+
::slotted(bk-facts-item) { --_bk-facts-label-area: 1 / 1; --_bk-facts-actions-area: 1 / 2; --_bk-facts-value-area: 2 / 1 / 3 / -1; }
|
|
43
|
+
}
|
|
33
44
|
`];
|
|
34
45
|
updated() {
|
|
35
46
|
this.min ? this.style.setProperty("--bk-facts-min", this.min) : this.style.removeProperty("--bk-facts-min");
|
|
36
47
|
}
|
|
37
48
|
render() {
|
|
38
|
-
return e`<slot></slot>`;
|
|
49
|
+
return e`<div class="rows"><slot></slot></div>`;
|
|
39
50
|
}
|
|
40
51
|
};
|
|
41
52
|
r("bk-facts", a);
|
|
@@ -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 { r as s } from "./chunks/field-DkBkSgJI.js";
|
|
5
5
|
import { t as c } from "./chunks/slots-BHTtBbPo.js";
|
|
6
6
|
import { s as l, t as u } from "./chunks/styles-DwSR-9a3.js";
|
|
@@ -4,7 +4,7 @@ import { t as a } from "./chunks/define-CzVPD4Zi.js";
|
|
|
4
4
|
import { t as o } from "./chunks/announcer-haFcvqbe.js";
|
|
5
5
|
import { n as s, t as c } from "./chunks/events-DQ4e9cPN.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 { t as d } from "./chunks/styles-DwSR-9a3.js";
|
|
9
9
|
import "./bk-button.js";
|
|
10
10
|
import "./bk-chip.js";
|