@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,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 { c as i } from "./chunks/anchor-CNX3nt2F.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 { n as l, t as u } from "./chunks/busy-B7Mxemwm.js";
|
|
6
6
|
import { i as d } from "./chunks/events-DQ4e9cPN.js";
|
|
7
7
|
import { t as f } from "./chunks/state-XYmTmnOw.js";
|
|
@@ -0,0 +1,69 @@
|
|
|
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/if-defined-z_20pBRr.js";
|
|
3
|
+
import { t as a } from "./chunks/define-CzVPD4Zi.js";
|
|
4
|
+
import { t as o } from "./chunks/i18n-B6Al9xCK.js";
|
|
5
|
+
import { t as s } from "./chunks/slots-BHTtBbPo.js";
|
|
6
|
+
import { t as c } from "./chunks/styles-DwSR-9a3.js";
|
|
7
|
+
import "./bk-button.js";
|
|
8
|
+
import "./chunks/bk-icon-DssFsNuB.js";
|
|
9
|
+
import "./chunks/chevron-left-BHF34JzQ.js";
|
|
10
|
+
import "./chunks/chevron-right-CxqvZ6TS.js";
|
|
11
|
+
// dist/components/bk-period-nav.js
|
|
12
|
+
var l = class extends n {
|
|
13
|
+
static properties = {
|
|
14
|
+
previousHref: { attribute: "previous-href" },
|
|
15
|
+
nextHref: { attribute: "next-href" },
|
|
16
|
+
currentHref: { attribute: "current-href" },
|
|
17
|
+
label: {},
|
|
18
|
+
previousLabel: { attribute: "previous-label" },
|
|
19
|
+
nextLabel: { attribute: "next-label" },
|
|
20
|
+
currentLabel: { attribute: "current-label" },
|
|
21
|
+
size: {
|
|
22
|
+
reflect: !0,
|
|
23
|
+
useDefault: !0
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
i18n = new o(this);
|
|
27
|
+
slots = new s(this);
|
|
28
|
+
constructor() {
|
|
29
|
+
super(), this.size = "md";
|
|
30
|
+
}
|
|
31
|
+
static styles = [c, r`
|
|
32
|
+
:host { display: block; }
|
|
33
|
+
nav {
|
|
34
|
+
display: flex; flex-wrap: wrap; align-items: center;
|
|
35
|
+
gap: var(--bk-period-nav-gap, var(--bk-space-cluster));
|
|
36
|
+
}
|
|
37
|
+
.step { display: inline-flex; max-inline-size: 100%; align-items: center; gap: var(--bk-period-nav-gap, var(--bk-space-cluster)); }
|
|
38
|
+
.range {
|
|
39
|
+
color: var(--bk-period-nav-range-fg, var(--bk-text)); font-size: var(--bk-period-nav-range-size, var(--bk-type-body));
|
|
40
|
+
font-weight: var(--bk-period-nav-range-weight, var(--bk-weight-medium)); line-height: var(--bk-line-height-body);
|
|
41
|
+
font-variant-numeric: tabular-nums; text-wrap: balance;
|
|
42
|
+
}
|
|
43
|
+
.note {
|
|
44
|
+
color: var(--bk-period-nav-note-fg, var(--bk-text-muted)); font-size: var(--bk-period-nav-note-size, var(--bk-type-small));
|
|
45
|
+
line-height: var(--bk-line-height-body); flex: 1 1 auto;
|
|
46
|
+
}
|
|
47
|
+
.note[hidden] { display: none; }
|
|
48
|
+
bk-icon:dir(rtl) { scale: -1 1; }
|
|
49
|
+
`];
|
|
50
|
+
arrow(t, n, r) {
|
|
51
|
+
return e`<bk-button part=${t} size=${this.size} variant="outline" label=${r} href=${i(n || void 0)} ?disabled=${!n}
|
|
52
|
+
rel=${i(n ? t === "previous" ? "prev" : "next" : void 0)}>
|
|
53
|
+
<bk-icon name=${t === "previous" ? "chevron-left" : "chevron-right"} aria-hidden="true"></bk-icon>
|
|
54
|
+
</bk-button>`;
|
|
55
|
+
}
|
|
56
|
+
render() {
|
|
57
|
+
return e`<nav part="nav" aria-label=${this.label || this.i18n.t("periodNavLabel")}>
|
|
58
|
+
<span class="step">
|
|
59
|
+
${this.arrow("previous", this.previousHref, this.previousLabel || this.i18n.t("periodPrevious"))}
|
|
60
|
+
<span class="range" part="range"><slot></slot></span>
|
|
61
|
+
${this.arrow("next", this.nextHref, this.nextLabel || this.i18n.t("periodNext"))}
|
|
62
|
+
</span>
|
|
63
|
+
${this.currentHref ? e`<bk-button part="current" size=${this.size} variant="outline" href=${this.currentHref}>${this.currentLabel || this.i18n.t("periodCurrent")}</bk-button>` : t}
|
|
64
|
+
<span class="note" part="note" ?hidden=${!this.slots.has("note")}><slot name="note"></slot></span>
|
|
65
|
+
</nav>`;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
a("bk-period-nav", l);
|
|
69
|
+
export { l as BkPeriodNav };
|
|
@@ -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/if-defined-z_20pBRr.js";
|
|
3
3
|
import { t as a } from "./chunks/keyed-CZ2AaouM.js";
|
|
4
4
|
import { t as o } from "./chunks/style-map-BMvn17E7.js";
|
|
5
|
-
import { t as s } from "./chunks/i18n-
|
|
5
|
+
import { t as s } from "./chunks/i18n-B6Al9xCK.js";
|
|
6
6
|
import { i as c, t as l } from "./chunks/define-CzVPD4Zi.js";
|
|
7
7
|
import { t as u } from "./chunks/link-CWSMsx04.js";
|
|
8
8
|
import { t as d } from "./chunks/slots-BHTtBbPo.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 { r as o } from "./chunks/events-DQ4e9cPN.js";
|
|
5
5
|
import { t as s } from "./chunks/styles-DwSR-9a3.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 { n as r, o as i, t as a } from "./chunks/anchor-CNX3nt2F.js";
|
|
3
3
|
import { t as o } from "./chunks/define-CzVPD4Zi.js";
|
|
4
|
-
import { t as s } from "./chunks/popover-base-
|
|
4
|
+
import { t as s } from "./chunks/popover-base-ac49G87f.js";
|
|
5
5
|
// dist/components/bk-popover.js
|
|
6
6
|
var c = class extends s {
|
|
7
7
|
static properties = {
|
|
@@ -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/if-defined-z_20pBRr.js";
|
|
3
3
|
import { i as a, t as o } from "./chunks/define-CzVPD4Zi.js";
|
|
4
4
|
import { t as s } from "./chunks/host-vars-DTKbhBPu.js";
|
|
5
|
-
import { t as c } from "./chunks/i18n-
|
|
5
|
+
import { t as c } from "./chunks/i18n-B6Al9xCK.js";
|
|
6
6
|
import { t as l } from "./chunks/styles-DwSR-9a3.js";
|
|
7
7
|
import "./chunks/bk-icon-DssFsNuB.js";
|
|
8
8
|
import "./chunks/play-arrow-fill-BOqJdpPj.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
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
3
|
import { t as o } from "./chunks/host-vars-DTKbhBPu.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/bar-CqZCcU7-.js";
|
|
6
6
|
import { t as u } from "./chunks/styles-DwSR-9a3.js";
|
|
7
7
|
import { t as d } from "./chunks/slots-BHTtBbPo.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as BkQrCode } from "./chunks/bk-qr-code-
|
|
1
|
+
export { t as BkQrCode } from "./chunks/bk-qr-code-QaYvZwOR.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as e, u as t } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { n, r, t as i } from "./chunks/define-CzVPD4Zi.js";
|
|
3
|
-
import { a, n as o } from "./chunks/i18n-
|
|
3
|
+
import { a, n as o } from "./chunks/i18n-B6Al9xCK.js";
|
|
4
4
|
import { t as s } from "./chunks/events-DQ4e9cPN.js";
|
|
5
5
|
import { n as c } from "./chunks/field-DkBkSgJI.js";
|
|
6
|
-
import { t as l } from "./chunks/form-control-
|
|
6
|
+
import { t as l } from "./chunks/form-control-CyXQIJ2x.js";
|
|
7
7
|
import { s as u, t as d } from "./chunks/styles-DwSR-9a3.js";
|
|
8
8
|
import { BkRadio as f } from "./bk-radio.js";
|
|
9
9
|
// dist/components/bk-radio-group.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/define-CzVPD4Zi.js";
|
|
3
3
|
import { t as a } from "./chunks/slots-BHTtBbPo.js";
|
|
4
4
|
import { t as o } from "./chunks/styles-DwSR-9a3.js";
|
|
5
|
-
import { n as s } from "./chunks/toggle-control-
|
|
5
|
+
import { n as s } from "./chunks/toggle-control-ioV2jhNY.js";
|
|
6
6
|
// dist/components/bk-radio.js
|
|
7
7
|
var c = class extends n {
|
|
8
8
|
static properties = {
|
|
@@ -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 { i as o, n as s, r as c, t as l } from "./chunks/stars-BN9M_9Q1.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 { 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
|
// dist/components/bk-scroll.js
|
|
6
6
|
var c = class extends n {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as e, u as t } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { i as n, n as r, r as i, t as a } from "./chunks/define-CzVPD4Zi.js";
|
|
3
|
-
import { a as o, n as s } from "./chunks/i18n-
|
|
3
|
+
import { a as o, n as s } from "./chunks/i18n-B6Al9xCK.js";
|
|
4
4
|
import { t as c } from "./chunks/events-DQ4e9cPN.js";
|
|
5
5
|
import { a as l } from "./chunks/link-CWSMsx04.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 { BkSegmentedItem as m } from "./bk-segmented-item.js";
|
|
10
10
|
// dist/components/bk-segmented.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, u as t } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as n } from "./chunks/if-defined-z_20pBRr.js";
|
|
3
|
-
import { n as r, t as i } from "./chunks/choice-field-
|
|
3
|
+
import { n as r, t as i } from "./chunks/choice-field-CGvE4tyb.js";
|
|
4
4
|
import { n as a, t as o } from "./chunks/define-CzVPD4Zi.js";
|
|
5
5
|
import { pathOf as s, readColumnItems as c } from "./bk-listbox-columns.js";
|
|
6
6
|
import "./chunks/bk-icon-DssFsNuB.js";
|
|
@@ -2,7 +2,7 @@ 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/repeat-Dxf3qZZl.js";
|
|
5
|
-
import { n as o, t as s } from "./chunks/choice-field-
|
|
5
|
+
import { n as o, t as s } from "./chunks/choice-field-CGvE4tyb.js";
|
|
6
6
|
import { n as c, t as l } from "./chunks/define-CzVPD4Zi.js";
|
|
7
7
|
import { r as u } from "./chunks/options-DMEc8rQt.js";
|
|
8
8
|
import "./chunks/bk-icon-DssFsNuB.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
import { n as i, t as a } from "./chunks/choice-field-
|
|
3
|
+
import { n as i, t as a } from "./chunks/choice-field-CGvE4tyb.js";
|
|
4
4
|
import { t as o } from "./chunks/define-CzVPD4Zi.js";
|
|
5
5
|
import { i as s } from "./chunks/events-DQ4e9cPN.js";
|
|
6
6
|
import { t as c } from "./chunks/options-DMEc8rQt.js";
|
|
@@ -99,7 +99,8 @@ var f = class extends a {
|
|
|
99
99
|
n`
|
|
100
100
|
.box { position: relative; cursor: pointer; user-select: none; }
|
|
101
101
|
/* fit: the box takes the width of the longest option; the hidden labels share one grid cell with the shown one. */
|
|
102
|
-
|
|
102
|
+
/* max-content, not fit-content: in an auto table cell fit-content is the min-content width, and the chevron covers the text. */
|
|
103
|
+
:host([fit]) { inline-size: var(--bk-field-width, max-content); max-inline-size: 100%; }
|
|
103
104
|
:host([fit]) .value { flex: none; min-width: max-content; }
|
|
104
105
|
.fit { display: grid; }
|
|
105
106
|
.fit > * { grid-area: 1 / 1; display: flex; align-items: center; gap: var(--bk-space-inline); white-space: nowrap; }
|
|
@@ -4,13 +4,12 @@ import { t as o } from "./chunks/style-map-BMvn17E7.js";
|
|
|
4
4
|
import { c as s } from "./chunks/anchor-CNX3nt2F.js";
|
|
5
5
|
import { n as c, r as l, t as u } from "./chunks/define-CzVPD4Zi.js";
|
|
6
6
|
import { t as d } from "./chunks/link-CWSMsx04.js";
|
|
7
|
-
import { t as f } from "./chunks/i18n-
|
|
7
|
+
import { t as f } from "./chunks/i18n-B6Al9xCK.js";
|
|
8
8
|
import { n as p, r as m } from "./chunks/events-DQ4e9cPN.js";
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import { f as
|
|
12
|
-
import { a as
|
|
13
|
-
import "./bk-drawer.js";
|
|
9
|
+
import { a as h, i as g, n as _, r as v, t as y } from "./chunks/handle-menu-ZVR_msk2.js";
|
|
10
|
+
import { t as b } from "./chunks/state-XYmTmnOw.js";
|
|
11
|
+
import { f as x, m as S } from "./chunks/bk-kbd-B_TlKzWj.js";
|
|
12
|
+
import { a as C, d as w, t as T, v as E } from "./chunks/styles-DwSR-9a3.js";
|
|
14
13
|
import "./chunks/bk-icon-DssFsNuB.js";
|
|
15
14
|
import "./bk-button.js";
|
|
16
15
|
import "./bk-nav-item.js";
|
|
@@ -20,7 +19,7 @@ import "./chunks/search-Cm9mOqRy.js";
|
|
|
20
19
|
import "./chunks/sidebar-collapse-uvu3jE3r.js";
|
|
21
20
|
import "./chunks/sidebar-expand-QkDkPjTV.js";
|
|
22
21
|
// dist/components/bk-shell-app.js
|
|
23
|
-
var
|
|
22
|
+
var D = new h(() => import("./bk-drawer.js")), O = ToggleEvent, k = class extends O {
|
|
24
23
|
region;
|
|
25
24
|
constructor(e, t) {
|
|
26
25
|
super("toggle", {
|
|
@@ -31,27 +30,27 @@ var T = ToggleEvent, E = class extends T {
|
|
|
31
30
|
get detail() {
|
|
32
31
|
return { region: this.region };
|
|
33
32
|
}
|
|
34
|
-
},
|
|
33
|
+
}, A = [
|
|
35
34
|
"sidebar-header",
|
|
36
35
|
"nav",
|
|
37
36
|
"sidebar",
|
|
38
37
|
"sidebar-footer",
|
|
39
38
|
"drawer"
|
|
40
|
-
],
|
|
39
|
+
], j = [
|
|
41
40
|
"sidebar-header",
|
|
42
41
|
"sidebar",
|
|
43
42
|
"sidebar-footer"
|
|
44
|
-
],
|
|
43
|
+
], M = /* @__PURE__ */ new Set([
|
|
45
44
|
"bk-pane",
|
|
46
45
|
"bk-split",
|
|
47
46
|
"bk-columns"
|
|
48
|
-
]),
|
|
47
|
+
]), N = /* @__PURE__ */ new Set(["bk-page-section", "bk-page-hero"]), P = /* @__PURE__ */ new Set([
|
|
49
48
|
"style",
|
|
50
49
|
"script",
|
|
51
50
|
"template",
|
|
52
51
|
"link",
|
|
53
52
|
"meta"
|
|
54
|
-
]),
|
|
53
|
+
]), F = "bk-input-search, bk-input-text[type=\"search\"], bk-combobox[type=\"search\"], [data-header-search]", I = "var(--bk-height-header, calc(var(--bk-control-md) + var(--bk-space-5)))", L = `var(--bk-height-header-nav, ${I})`, R = ["header", "header-end"], z = "bk-input-search, bk-input-text, bk-combobox, input", B = "header-search", V = class extends r {
|
|
55
54
|
static properties = {
|
|
56
55
|
sidebarCollapsed: {
|
|
57
56
|
type: Boolean,
|
|
@@ -139,7 +138,7 @@ var T = ToggleEvent, E = class extends T {
|
|
|
139
138
|
asideOpen: this.persistedFlag("asideOpen", ".aside")
|
|
140
139
|
};
|
|
141
140
|
authoredWidth;
|
|
142
|
-
storedWidth = new
|
|
141
|
+
storedWidth = new b(this, () => this.persistKey && `app-shell:${this.persistKey}.aside-width`, { onChange: (e) => {
|
|
143
142
|
this.authoredWidth ??= this.asideWidth ?? null, this.asideWidth = typeof e == "number" ? e : this.authoredWidth ?? void 0;
|
|
144
143
|
} });
|
|
145
144
|
draggingAside = !1;
|
|
@@ -148,7 +147,7 @@ var T = ToggleEvent, E = class extends T {
|
|
|
148
147
|
asideTriggers = [];
|
|
149
148
|
sidebarTriggers = [];
|
|
150
149
|
persistedFlag(e, t) {
|
|
151
|
-
return new
|
|
150
|
+
return new b(this, () => this.persistKey && `app-shell:${this.persistKey}${t}`, { onChange: (t) => {
|
|
152
151
|
this.authored ??= {
|
|
153
152
|
sidebarCollapsed: this.sidebarCollapsed,
|
|
154
153
|
asideOpen: this.asideOpen
|
|
@@ -175,7 +174,7 @@ var T = ToggleEvent, E = class extends T {
|
|
|
175
174
|
super.disconnectedCallback(), this.children$.disconnect(), this.headerContent.disconnect(), this.watched = [], this.bottomItems.disconnect(), this.resizeObserver?.disconnect(), cancelAnimationFrame(this.fitFrame), this.bindSearchShortcut(), this.paddingSheet && (document.adoptedStyleSheets = document.adoptedStyleSheets.filter((e) => e !== this.paddingSheet));
|
|
176
175
|
}
|
|
177
176
|
headerHeight() {
|
|
178
|
-
return this.narrow ? `var(--bk-height-header-narrow, ${
|
|
177
|
+
return this.narrow ? `var(--bk-height-header-narrow, ${I})` : this.navRow ? `calc(${I} + ${L})` : I;
|
|
179
178
|
}
|
|
180
179
|
syncScrollPadding() {
|
|
181
180
|
if (!this.isConnected) return;
|
|
@@ -185,18 +184,18 @@ var T = ToggleEvent, E = class extends T {
|
|
|
185
184
|
e.replaceSync(`:root { ${t} ${n ? `scroll-padding-bottom: ${n}px;` : ""} }`);
|
|
186
185
|
}
|
|
187
186
|
static styles = [
|
|
187
|
+
T,
|
|
188
188
|
C,
|
|
189
|
-
x,
|
|
190
|
-
S,
|
|
191
189
|
w,
|
|
192
|
-
|
|
190
|
+
E,
|
|
191
|
+
_,
|
|
193
192
|
i`
|
|
194
193
|
:host {
|
|
195
194
|
font-weight: var(--bk-weight-body, var(--bk-weight-regular)); font-feature-settings: var(--bk-features, normal);
|
|
196
195
|
--_bk-shell-app-vh: var(--bk-app-viewport-height); /* the screen the shell fills: the viewport, or a frame that sets the token */
|
|
197
196
|
/* The defaults of the optional app tokens. The shell sets no public token: a value of the app (in :root, on a scope
|
|
198
197
|
root or on the shell) reaches it through inheritance. */
|
|
199
|
-
--_bk-shell-app-header-height: ${t(
|
|
198
|
+
--_bk-shell-app-header-height: ${t(I)};
|
|
200
199
|
--_bk-shell-app-bar-font-size: var(--bk-app-bar-font-size, var(--bk-type-small));
|
|
201
200
|
--_bk-shell-app-region-padding: var(--bk-app-region-padding, var(--bk-space-4));
|
|
202
201
|
--_bk-shell-app-header-gap: var(--bk-app-header-gap, var(--bk-space-3));
|
|
@@ -519,6 +518,8 @@ var T = ToggleEvent, E = class extends T {
|
|
|
519
518
|
}
|
|
520
519
|
|
|
521
520
|
/* Drawers: bk-drawer gives surface, motion and modality; here they have square corners and a line only towards the page. */
|
|
521
|
+
/* A drawer loads late (narrow shell, aside overlay): until then its content stays out of view. */
|
|
522
|
+
bk-drawer:not(:defined) { display: none; }
|
|
522
523
|
bk-drawer { --bk-drawer-radius: 0px; --bk-drawer-size: min(var(--_bk-shell-app-drawer-width), calc(100vw - var(--bk-space-12))); }
|
|
523
524
|
bk-drawer.end { --bk-drawer-size: min(var(--_bk-shell-app-aw), calc(100vw - var(--bk-space-12))); }
|
|
524
525
|
bk-drawer::part(dialog) { border-width: 0; }
|
|
@@ -552,7 +553,7 @@ var T = ToggleEvent, E = class extends T {
|
|
|
552
553
|
return this.used.has(e);
|
|
553
554
|
}
|
|
554
555
|
get hasSidebar() {
|
|
555
|
-
return
|
|
556
|
+
return j.some((e) => this.has(e));
|
|
556
557
|
}
|
|
557
558
|
get hasDrawer() {
|
|
558
559
|
return [
|
|
@@ -599,7 +600,7 @@ var T = ToggleEvent, E = class extends T {
|
|
|
599
600
|
};
|
|
600
601
|
}
|
|
601
602
|
get searchElement() {
|
|
602
|
-
return [...c(this)?.querySelectorAll("[data-header-search]") ?? []].find((e) =>
|
|
603
|
+
return [...c(this)?.querySelectorAll("[data-header-search]") ?? []].find((e) => R.includes(this.slotOf(e))) ?? null;
|
|
603
604
|
}
|
|
604
605
|
get hasSearch() {
|
|
605
606
|
return !!this.searchElement;
|
|
@@ -610,7 +611,7 @@ var T = ToggleEvent, E = class extends T {
|
|
|
610
611
|
}
|
|
611
612
|
get searchField() {
|
|
612
613
|
let e = this.searchElement;
|
|
613
|
-
return e ? e.matches(
|
|
614
|
+
return e ? e.matches(z) ? e : e.querySelector(z) : null;
|
|
614
615
|
}
|
|
615
616
|
openSearch() {
|
|
616
617
|
this.searchOpen = !0, this.updateComplete.then(() => this.searchField?.focus());
|
|
@@ -625,12 +626,12 @@ var T = ToggleEvent, E = class extends T {
|
|
|
625
626
|
bindSearchShortcut() {
|
|
626
627
|
let e = this.isConnected && this.hasSearch && this.searchShortcut !== "none" ? this.searchShortcut.trim() : "";
|
|
627
628
|
if (e === this.boundSearchKeys || (this.unbindSearch?.(), this.unbindSearch = void 0, this.boundSearchKeys = e, !e)) return;
|
|
628
|
-
let t =
|
|
629
|
-
id:
|
|
629
|
+
let t = S([{
|
|
630
|
+
id: B,
|
|
630
631
|
keys: e,
|
|
631
632
|
label: this.t("searchShortcut"),
|
|
632
633
|
global: !0
|
|
633
|
-
}]), n =
|
|
634
|
+
}]), n = x(B, this.onSearchShortcut);
|
|
634
635
|
this.unbindSearch = () => {
|
|
635
636
|
n(), t();
|
|
636
637
|
};
|
|
@@ -733,7 +734,7 @@ var T = ToggleEvent, E = class extends T {
|
|
|
733
734
|
}
|
|
734
735
|
recordFit() {
|
|
735
736
|
let e = this.searchElement;
|
|
736
|
-
for (let t of this.children) ["header", "header-end"].includes(t.getAttribute("slot") ?? "") && t !== e && !t.matches(
|
|
737
|
+
for (let t of this.children) ["header", "header-end"].includes(t.getAttribute("slot") ?? "") && t !== e && !t.matches(F) && this.fitSizes.set(t, t.getBoundingClientRect().width);
|
|
737
738
|
}
|
|
738
739
|
showGaveWay() {
|
|
739
740
|
for (let e of this.gaveWay) e.hidden = !1;
|
|
@@ -785,15 +786,18 @@ var T = ToggleEvent, E = class extends T {
|
|
|
785
786
|
}
|
|
786
787
|
fireToggle(e) {
|
|
787
788
|
let t = e === "sidebar" ? !this.sidebarCollapsed : this.asideVisible;
|
|
788
|
-
this.dispatchEvent(new
|
|
789
|
+
this.dispatchEvent(new k(e, t));
|
|
790
|
+
}
|
|
791
|
+
get drawers() {
|
|
792
|
+
return this.narrow || this.asideOverlay;
|
|
789
793
|
}
|
|
790
794
|
willUpdate(e) {
|
|
791
|
-
super.willUpdate(e);
|
|
795
|
+
super.willUpdate(e), this.drawers && D.start();
|
|
792
796
|
let t = /* @__PURE__ */ new Set(), n = !1, r = 0, i = !1;
|
|
793
797
|
for (let e of c(this)?.childNodes ?? []) if (e instanceof Element) {
|
|
794
798
|
let a = e.getAttribute("slot") || "default";
|
|
795
|
-
if (t.add(a), a !== "default" ||
|
|
796
|
-
|
|
799
|
+
if (t.add(a), a !== "default" || P.has(e.localName)) continue;
|
|
800
|
+
M.has(e.localName) && (n = !0), N.has(e.localName) ? r++ : i = !0;
|
|
797
801
|
} else e.nodeType === Node.TEXT_NODE && e.textContent?.trim() && (t.add("default"), i = !0);
|
|
798
802
|
this.used = t, n !== this.workspace && (this.workspace = n), this.setState("sections", !n && !i && r > 0), (e.has("breakpoint") || e.has("asideBreakpoint")) && this.applyWidth(), !this.narrow && this.navigationOpen && (this.navigationOpen = !1), this.narrow && this.hasSearch || !this.searchOpen || (this.searchOpen = !1);
|
|
799
803
|
let a = c(this)?.querySelector("bk-page-header[snap]"), o = a?.headingText ?? "";
|
|
@@ -841,7 +845,7 @@ var T = ToggleEvent, E = class extends T {
|
|
|
841
845
|
}
|
|
842
846
|
async getUpdateComplete() {
|
|
843
847
|
let e = await super.getUpdateComplete();
|
|
844
|
-
return await Promise.all([...this.renderRoot.querySelectorAll("bk-drawer")].map((e) => e.updateComplete)), e;
|
|
848
|
+
return this.drawers && await D.start(), this.asideMoves.length && await v(), await Promise.all([...this.renderRoot.querySelectorAll("bk-drawer")].map((e) => e.updateComplete)), e;
|
|
845
849
|
}
|
|
846
850
|
measureScrollbar() {
|
|
847
851
|
let e = this.renderRoot.querySelector(".sidebar-scroll");
|
|
@@ -938,9 +942,9 @@ var T = ToggleEvent, E = class extends T {
|
|
|
938
942
|
t && (t.collapsed = e, s(t, { expanded: !this.sidebarCollapsed }));
|
|
939
943
|
for (let t of this.children) {
|
|
940
944
|
let n = t.getAttribute("slot") ?? "";
|
|
941
|
-
if (!
|
|
945
|
+
if (!A.includes(n)) continue;
|
|
942
946
|
let r = [...t.matches("bk-nav, bk-brand") ? [t] : [], ...t.querySelectorAll("bk-nav, bk-brand")];
|
|
943
|
-
for (let t of r) t.localName === "bk-nav" && (t.drawer = this.narrow), t.collapsed = e &&
|
|
947
|
+
for (let t of r) t.localName === "bk-nav" && (t.drawer = this.narrow), t.collapsed = e && j.includes(n);
|
|
944
948
|
}
|
|
945
949
|
}
|
|
946
950
|
syncTriggers(e, t, n) {
|
|
@@ -955,7 +959,7 @@ var T = ToggleEvent, E = class extends T {
|
|
|
955
959
|
onNavDrawerOpen(e) {
|
|
956
960
|
this.focusDrawer(e.currentTarget, () => {
|
|
957
961
|
for (let e of this.children) {
|
|
958
|
-
if (!
|
|
962
|
+
if (!A.includes(e.getAttribute("slot") ?? "")) continue;
|
|
959
963
|
let t = e.matches("[current]") ? e : e.querySelector("[current]");
|
|
960
964
|
if (t instanceof HTMLElement) return t;
|
|
961
965
|
}
|
|
@@ -1185,7 +1189,7 @@ var T = ToggleEvent, E = class extends T {
|
|
|
1185
1189
|
t && (e.setAttribute("aria-valuenow", String(Math.round(t.now))), e.setAttribute("aria-valuemin", String(Math.round(t.min))), e.setAttribute("aria-valuemax", String(Math.round(Math.min(t.max, 1e6)))));
|
|
1186
1190
|
}
|
|
1187
1191
|
render() {
|
|
1188
|
-
let t = !this.narrow && this.hasSidebar, r = this.showHeader, i = this.asideLabel || this.t("sidePanel"), a = this.has("aside") && !this.asideOverlay && this.asideOpen, s = r && this.navRow ?
|
|
1192
|
+
let t = !this.narrow && this.hasSidebar, r = this.showHeader, i = this.asideLabel || this.t("sidePanel"), a = this.has("aside") && !this.asideOverlay && this.asideOpen, s = r && this.navRow ? L : "0px", c = r ? "calc(var(--_bk-shell-app-hh) + var(--_bk-shell-app-nav-row) + var(--bk-safe-top))" : "var(--bk-safe-top)", l = this.bottomNav ? "" : this.has("statusbar") ? "statusbar" : this.has("footer") ? "footer" : "content", u = e`<footer class="footer ${l === "footer" ? "edge" : ""}" part="footer" role="contentinfo" ?hidden=${!this.has("footer")}><div class="footer-inner"><slot name="footer"></slot></div></footer>`, d = {
|
|
1189
1193
|
"--_bk-shell-app-nav-row": s,
|
|
1190
1194
|
"--_bk-shell-app-top": c,
|
|
1191
1195
|
"--_bk-shell-app-bottom": `${this.statusbarHeight + this.bottomNavHeight}px`,
|
|
@@ -1210,9 +1214,9 @@ var T = ToggleEvent, E = class extends T {
|
|
|
1210
1214
|
${this.bottomNav ? this.renderBottomNav() : n}
|
|
1211
1215
|
${this.renderNavDrawer()}
|
|
1212
1216
|
${this.has("aside") ? this.renderAsideDrawer(i) : n}
|
|
1213
|
-
${this.asideMoves.length ?
|
|
1217
|
+
${this.asideMoves.length ? y(this.asideResizeLabel || this.t("resizePanel"), this.asideMoves) : n}
|
|
1214
1218
|
</div>`;
|
|
1215
1219
|
}
|
|
1216
1220
|
};
|
|
1217
|
-
u("bk-shell-app",
|
|
1218
|
-
export {
|
|
1221
|
+
u("bk-shell-app", V);
|
|
1222
|
+
export { V as BkShellApp, k as ShellAppToggleEvent };
|
|
@@ -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/styles-DwSR-9a3.js";
|
|
5
5
|
// dist/components/bk-shell-sites.js
|
|
6
6
|
var o = class extends t {
|
|
@@ -1,9 +1,12 @@
|
|
|
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
4
|
import { t as o } from "./chunks/define-CzVPD4Zi.js";
|
|
5
5
|
import { n as s } from "./chunks/events-DQ4e9cPN.js";
|
|
6
|
-
import {
|
|
6
|
+
import { i as c, n as l, t as u } from "./chunks/handle-menu-ZVR_msk2.js";
|
|
7
|
+
import "./bk-menu-context.js";
|
|
8
|
+
import "./bk-menu-divider.js";
|
|
9
|
+
import "./bk-menu-item.js";
|
|
7
10
|
import { t as d } from "./chunks/light-styles-CFbyUU7I.js";
|
|
8
11
|
import { t as f, x as p } from "./chunks/styles-DwSR-9a3.js";
|
|
9
12
|
import "./chunks/grid-BV0_DQ5v.js";
|
|
@@ -69,7 +72,7 @@ var m = null, h = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new WeakSet(),
|
|
|
69
72
|
static styles = [
|
|
70
73
|
f,
|
|
71
74
|
p,
|
|
72
|
-
|
|
75
|
+
l,
|
|
73
76
|
r`
|
|
74
77
|
:host {
|
|
75
78
|
position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0;
|
|
@@ -332,7 +335,7 @@ var m = null, h = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new WeakSet(),
|
|
|
332
335
|
}), s;
|
|
333
336
|
}
|
|
334
337
|
openMenu(e, t, n) {
|
|
335
|
-
!m && this.canDrag(e) && (this.menuName = this.i18n.t("sortableHandle", { item: this.nameOf(e) }), this.moves = this.movesOf(e),
|
|
338
|
+
!m && this.canDrag(e) && (this.menuName = this.i18n.t("sortableHandle", { item: this.nameOf(e) }), this.moves = this.movesOf(e), c(this, t, n));
|
|
336
339
|
}
|
|
337
340
|
onClick = (e) => {
|
|
338
341
|
if (this.disabled || m || e.detail === 0 || g.has(e) || e.button !== 0) return;
|
|
@@ -3,7 +3,7 @@ import { t as i } from "./chunks/style-map-BMvn17E7.js";
|
|
|
3
3
|
import { t as a } from "./chunks/repeat-Dxf3qZZl.js";
|
|
4
4
|
import { i as o, n as s, r as c, t as l } from "./chunks/define-CzVPD4Zi.js";
|
|
5
5
|
import { n as u } from "./chunks/events-DQ4e9cPN.js";
|
|
6
|
-
import { t as d } from "./chunks/i18n-
|
|
6
|
+
import { t as d } from "./chunks/i18n-B6Al9xCK.js";
|
|
7
7
|
import { t as f } from "./chunks/state-XYmTmnOw.js";
|
|
8
8
|
import { d as p, t as m } from "./chunks/styles-DwSR-9a3.js";
|
|
9
9
|
// dist/components/bk-split-grid.js
|
|
@@ -1,8 +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 { i, n as a, r as o, t as s } from "./chunks/define-CzVPD4Zi.js";
|
|
3
3
|
import { n as c } from "./chunks/events-DQ4e9cPN.js";
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
4
|
+
import { i as l, n as u, t as d } from "./chunks/handle-menu-ZVR_msk2.js";
|
|
5
|
+
import "./bk-menu-context.js";
|
|
6
|
+
import "./bk-menu-divider.js";
|
|
7
|
+
import "./bk-menu-item.js";
|
|
8
|
+
import { t as f } from "./chunks/i18n-B6Al9xCK.js";
|
|
6
9
|
import { i as p } from "./chunks/anchor-CNX3nt2F.js";
|
|
7
10
|
import { t as m } from "./chunks/state-XYmTmnOw.js";
|
|
8
11
|
import { d as h, t as g } from "./chunks/styles-DwSR-9a3.js";
|
|
@@ -145,7 +148,7 @@ var k = class extends n {
|
|
|
145
148
|
static styles = [
|
|
146
149
|
g,
|
|
147
150
|
h,
|
|
148
|
-
|
|
151
|
+
u,
|
|
149
152
|
r`
|
|
150
153
|
:host {
|
|
151
154
|
display: block; min-width: 0; min-height: 0;
|
|
@@ -616,7 +619,7 @@ var k = class extends n {
|
|
|
616
619
|
}), o;
|
|
617
620
|
}
|
|
618
621
|
openMenu(e, t, n) {
|
|
619
|
-
this.dragging || this.stacked || (this.menuName = this.label(e + 1), this.moves = this.movesOf(e),
|
|
622
|
+
this.dragging || this.stacked || (this.menuName = this.label(e + 1), this.moves = this.movesOf(e), l(this, t, n));
|
|
620
623
|
}
|
|
621
624
|
onClick(e) {
|
|
622
625
|
if (e.detail !== 1 || e.button !== 0 || this.dragging || Math.hypot(e.clientX - this.pressAt.x, e.clientY - this.pressAt.y) > 4) return;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/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 { t as c } from "./chunks/slots-BHTtBbPo.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 { i as d, n as f, r as p, t as m } from "./chunks/delta-C3KtTv5o.js";
|
|
9
9
|
import "./chunks/bk-icon-DssFsNuB.js";
|
|
10
10
|
import "./chunks/trending-down-CFdPp8Q2.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 { n as i, t as a } from "./chunks/define-CzVPD4Zi.js";
|
|
3
3
|
import { t as o } from "./chunks/link-CWSMsx04.js";
|
|
4
4
|
import { t as s } from "./chunks/if-defined-z_20pBRr.js";
|
|
5
|
-
import { t as c } from "./chunks/i18n-
|
|
5
|
+
import { t as c } from "./chunks/i18n-B6Al9xCK.js";
|
|
6
6
|
import { i as l, n as u } from "./chunks/events-DQ4e9cPN.js";
|
|
7
7
|
import { t as d } from "./chunks/slots-BHTtBbPo.js";
|
|
8
8
|
import { t as f, x as p } from "./chunks/styles-DwSR-9a3.js";
|
|
@@ -2,10 +2,10 @@ import { a as e, u as t } from "./chunks/lit-D8x-qXgH.js";
|
|
|
2
2
|
import { n, r, t as i } from "./chunks/define-CzVPD4Zi.js";
|
|
3
3
|
import { t as a } from "./chunks/events-DQ4e9cPN.js";
|
|
4
4
|
import { n as o, t as s } from "./chunks/field-DkBkSgJI.js";
|
|
5
|
-
import { t as c } from "./chunks/form-control-
|
|
5
|
+
import { t as c } from "./chunks/form-control-CyXQIJ2x.js";
|
|
6
6
|
import { s as l, t as u, v as d } from "./chunks/styles-DwSR-9a3.js";
|
|
7
7
|
import { n as f, t as p } from "./chunks/swatches-CezBzmmK.js";
|
|
8
|
-
import { t as m } from "./chunks/i18n-
|
|
8
|
+
import { t as m } from "./chunks/i18n-B6Al9xCK.js";
|
|
9
9
|
// dist/components/bk-swatch-group.js
|
|
10
10
|
var h = class extends c {
|
|
11
11
|
static properties = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as e, n as t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as r } from "./chunks/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
|
-
import { t as o } from "./chunks/toggle-control-
|
|
5
|
+
import { t as o } from "./chunks/toggle-control-ioV2jhNY.js";
|
|
6
6
|
// dist/components/bk-switch.js
|
|
7
7
|
var s = class extends o {
|
|
8
8
|
static properties = {
|