@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
package/dist/index.js
CHANGED
|
@@ -120,6 +120,7 @@ export * from "./components/bk-input-number.js";
|
|
|
120
120
|
export * from "./components/bk-page-header.js";
|
|
121
121
|
export * from "./components/bk-pagination.js";
|
|
122
122
|
export * from "./components/bk-page-pager.js";
|
|
123
|
+
export * from "./components/bk-period-nav.js";
|
|
123
124
|
export * from "./components/bk-pane.js";
|
|
124
125
|
export * from "./components/bk-panel.js";
|
|
125
126
|
export * from "./components/bk-popover.js";
|
package/dist/internal/cloak.d.ts
CHANGED
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
* for all elements in it. An app that renders its own markup on a server (React, any framework
|
|
12
12
|
* without Declarative Shadow DOM) sets it, so the page shows that markup at once.
|
|
13
13
|
*
|
|
14
|
+
* Before its module runs, a `bk-table` is a block that is never wider than its container: the table of the server
|
|
15
|
+
* scrolls in it and does not widen the page.
|
|
16
|
+
*
|
|
14
17
|
* The token stays undeclared: the rule reads it with a fallback, so a value on any ancestor applies.
|
|
15
18
|
* `scripts/tokens-css.mjs` writes the rule into `dist/tokens.css`; `cloak` in `base.ts` brings it into
|
|
16
19
|
* the shadow root of an app's own component.
|
package/dist/internal/cloak.js
CHANGED
|
@@ -142,6 +142,7 @@ const cloakTags = [
|
|
|
142
142
|
"bk-page-section",
|
|
143
143
|
"bk-pagination",
|
|
144
144
|
"bk-pane",
|
|
145
|
+
"bk-period-nav",
|
|
145
146
|
"bk-panel",
|
|
146
147
|
"bk-picture",
|
|
147
148
|
"bk-popover",
|
|
@@ -207,6 +208,9 @@ const cloakCss = `@layer bk.tokens {
|
|
|
207
208
|
animation: bk-cloak-timeout 0s var(--bk-cloak-timeout, 3s) forwards;
|
|
208
209
|
}
|
|
209
210
|
@keyframes bk-cloak-timeout { to { visibility: visible; } }
|
|
211
|
+
/* A table of the server is never wider than its container before its module runs: also a hidden table takes
|
|
212
|
+
space, and a wide one makes the whole page scroll sideways on a phone. It scrolls in its own box. */
|
|
213
|
+
bk-table:not(:defined) { display: block; max-inline-size: 100%; overflow-x: auto; }
|
|
210
214
|
}`;
|
|
211
215
|
export {
|
|
212
216
|
cloakCss,
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { type LitElement } from "lit";
|
|
2
|
-
import "../components/bk-menu-context.js";
|
|
3
|
-
import "../components/bk-menu-item.js";
|
|
4
|
-
import "../components/bk-menu-divider.js";
|
|
5
2
|
/** One entry of a handle menu: a move or a size step that also exists for the keyboard. */
|
|
6
3
|
export interface HandleAction {
|
|
7
4
|
key: string;
|
|
@@ -12,6 +9,8 @@ export interface HandleAction {
|
|
|
12
9
|
divider?: boolean;
|
|
13
10
|
run: () => void;
|
|
14
11
|
}
|
|
12
|
+
/** Loads the elements of the menu. Returns the promise while the load runs, undefined after it. */
|
|
13
|
+
export declare function loadHandleMenu(): Promise<void> | undefined;
|
|
15
14
|
/**
|
|
16
15
|
* The menu behind a handle or a divider: the single-pointer way to do what a drag does (WCAG 2.2
|
|
17
16
|
* SC 2.5.7). The host renders it in its own shadow root and opens it with `openHandleMenu()`.
|
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
import { css, html, nothing } from "lit";
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
import
|
|
2
|
+
import { LateLoad } from "./late.js";
|
|
3
|
+
const menuParts = new LateLoad(() => Promise.all([
|
|
4
|
+
import("../components/bk-menu-context.js"),
|
|
5
|
+
import("../components/bk-menu-item.js"),
|
|
6
|
+
import("../components/bk-menu-divider.js")
|
|
7
|
+
]));
|
|
8
|
+
function loadHandleMenu() {
|
|
9
|
+
return menuParts.start();
|
|
10
|
+
}
|
|
5
11
|
function handleMenu(name, actions) {
|
|
6
12
|
const choose = (e) => {
|
|
7
13
|
e.stopPropagation();
|
|
8
14
|
actions.find((a) => a.key === e.detail.value)?.run();
|
|
9
15
|
};
|
|
16
|
+
void loadHandleMenu();
|
|
10
17
|
return html`<bk-menu-context class="handle-menu" label=${name} @select=${choose}>${actions.map((a) => html`${a.divider ? html`<bk-menu-divider></bk-menu-divider>` : nothing}<bk-menu-item value=${a.key} ?disabled=${a.disabled}>${a.label}</bk-menu-item>`)}</bk-menu-context>`;
|
|
11
18
|
}
|
|
12
19
|
const handleMenuStyles = css`
|
|
13
20
|
.handle-menu { position: absolute; inset: 0 auto auto 0; inline-size: 0; block-size: 0; overflow: visible; }
|
|
21
|
+
/* The menu loads late: until then its items stay out of view. */
|
|
22
|
+
.handle-menu:not(:defined) { display: none; }
|
|
14
23
|
`;
|
|
15
24
|
async function openHandleMenu(host, anchor, point) {
|
|
25
|
+
await loadHandleMenu();
|
|
16
26
|
await host.updateComplete;
|
|
17
27
|
const menu = host.renderRoot.querySelector(".handle-menu");
|
|
18
28
|
if (!menu)
|
|
@@ -24,6 +34,7 @@ async function openHandleMenu(host, anchor, point) {
|
|
|
24
34
|
export {
|
|
25
35
|
handleMenu,
|
|
26
36
|
handleMenuStyles,
|
|
37
|
+
loadHandleMenu,
|
|
27
38
|
openHandleMenu
|
|
28
39
|
};
|
|
29
40
|
//# sourceMappingURL=handle-menu.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The modules of one optional feature. `start()` loads them once and returns the promise while the load
|
|
3
|
+
* runs. After the load, and on the server, it returns undefined: the caller can go on at once.
|
|
4
|
+
*/
|
|
5
|
+
export declare class LateLoad {
|
|
6
|
+
private load;
|
|
7
|
+
/** True when the modules are loaded. The server never loads them: it renders no optional part. */
|
|
8
|
+
loaded: boolean;
|
|
9
|
+
private promise?;
|
|
10
|
+
constructor(load: () => Promise<unknown>);
|
|
11
|
+
start(): Promise<void> | undefined;
|
|
12
|
+
}
|
|
13
|
+
/** One promise for the loads that run, or undefined when no load runs. */
|
|
14
|
+
export declare function lateLoads(...loads: (Promise<void> | undefined | false | null | 0 | "")[]): Promise<unknown> | undefined;
|
|
15
|
+
//# sourceMappingURL=late.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { isServer } from "lit";
|
|
2
|
+
class LateLoad {
|
|
3
|
+
load;
|
|
4
|
+
/** True when the modules are loaded. The server never loads them: it renders no optional part. */
|
|
5
|
+
loaded = isServer;
|
|
6
|
+
promise;
|
|
7
|
+
constructor(load) {
|
|
8
|
+
this.load = load;
|
|
9
|
+
}
|
|
10
|
+
start() {
|
|
11
|
+
if (this.loaded)
|
|
12
|
+
return void 0;
|
|
13
|
+
this.promise ??= this.load().then(() => {
|
|
14
|
+
this.loaded = true;
|
|
15
|
+
}, (error) => {
|
|
16
|
+
this.loaded = true;
|
|
17
|
+
console.error(error);
|
|
18
|
+
});
|
|
19
|
+
return this.promise;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function lateLoads(...loads) {
|
|
23
|
+
const running = loads.filter((l) => !!l);
|
|
24
|
+
return running.length ? Promise.all(running) : void 0;
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
LateLoad,
|
|
28
|
+
lateLoads
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=late.js.map
|
package/dist/jsx.d.ts
CHANGED
|
@@ -149,6 +149,7 @@ import type { BkPageSection } from "./components/bk-page-section.js";
|
|
|
149
149
|
import type { BkPagination, PaginationChangeDetail, PaginationSelectDetail } from "./components/bk-pagination.js";
|
|
150
150
|
import type { BkPane } from "./components/bk-pane.js";
|
|
151
151
|
import type { BkPanel } from "./components/bk-panel.js";
|
|
152
|
+
import type { BkPeriodNav } from "./components/bk-period-nav.js";
|
|
152
153
|
import type { BkPicture } from "./components/bk-picture.js";
|
|
153
154
|
import type { BkPopoverHelp } from "./components/bk-popover-help.js";
|
|
154
155
|
import type { BkPopover } from "./components/bk-popover.js";
|
|
@@ -515,6 +516,10 @@ declare module "react" {
|
|
|
515
516
|
"collapse"?: BkButton["collapse"];
|
|
516
517
|
/** The current item of a set (`aria-current` attribute: `page`, `step`, `true`, ...). The inner control receives `aria-current`, and the button has the `pressed` look. Use it for a page number in a pager or the current step; a toggle uses `pressed`. */
|
|
517
518
|
"aria-current"?: BkAttr<BkButton["current"]>;
|
|
519
|
+
/** `aria-expanded` on the host (a disclosure button of the app). A popup that controls the button (setTriggerAria) wins. */
|
|
520
|
+
"aria-expanded"?: BkAttr<BkButton["hostExpanded"]>;
|
|
521
|
+
/** `aria-controls` on the host: the ids of elements in the same document or shadow root as the button. */
|
|
522
|
+
"aria-controls"?: BkAttr<BkButton["hostControls"]>;
|
|
518
523
|
/** Count badge on an icon-only button (unread items); `99+` above 99, none for 0 or unset. */
|
|
519
524
|
"count"?: BkButton["count"];
|
|
520
525
|
/** A dot on an icon-only button: something new, without a number. */
|
|
@@ -529,7 +534,7 @@ declare module "react" {
|
|
|
529
534
|
"oncancel"?: (event: Event) => void;
|
|
530
535
|
/** The user makes a plain click on the link (primary button, no modifier key, no other `target`, no `download`). `detail.href` is the resolved address. Bubbles, composed, cancelable: `preventDefault()` stops the browser, and the router of the app handles the navigation. */
|
|
531
536
|
"onnavigate"?: (event: CustomEvent<NavigateDetail>) => void;
|
|
532
|
-
} & BkProps<BkButton, "iconEnd" | "disabledReason" | "hideTooltip" | "current">, "onCancel" | "onCancelCapture" | "onNavigate" | "onNavigateCapture">;
|
|
537
|
+
} & BkProps<BkButton, "iconEnd" | "disabledReason" | "hideTooltip" | "current" | "hostExpanded" | "hostControls">, "onCancel" | "onCancelCapture" | "onNavigate" | "onNavigateCapture">;
|
|
533
538
|
"bk-calendar-event": BkElementProps<BkCalendarEvent, {
|
|
534
539
|
/** Start, `yyyy-mm-ddThh:mm` (local time). */
|
|
535
540
|
"start"?: BkCalendarEvent["start"];
|
|
@@ -756,6 +761,10 @@ declare module "react" {
|
|
|
756
761
|
"x"?: BkChartBar["x"];
|
|
757
762
|
/** Column header of the categories in the data table (default "Category"). */
|
|
758
763
|
"x-label"?: BkAttr<BkChartBar["xLabel"]>;
|
|
764
|
+
/** Field of a row that contains a second label. The chart shows it under the category label (a date, for example). */
|
|
765
|
+
"detail"?: BkChartBar["detail"];
|
|
766
|
+
/** Column header of the second label in the data table (default "Detail"). */
|
|
767
|
+
"detail-label"?: BkAttr<BkChartBar["detailLabel"]>;
|
|
759
768
|
/** `vertical` columns (default) or `horizontal` bars (for long or many category names). */
|
|
760
769
|
"orientation"?: BkChartBar["orientation"];
|
|
761
770
|
/** `grouped` side by side (default), `stacked`, or `percent` (stacked to 100 %). */
|
|
@@ -770,7 +779,7 @@ declare module "react" {
|
|
|
770
779
|
"compare-label"?: BkAttr<BkChartBar["compareLabel"]>;
|
|
771
780
|
/** Lets the user select a range of categories (drag, two clicks, Shift + arrows) and zooms to it. */
|
|
772
781
|
"selectable"?: BkChartBar["selectable"];
|
|
773
|
-
/** Makes each category a link. The template can contain `{x}` (the category) and `{<field>}` (a field of the row), for example `?day={x}`. The values are URL-encoded. Not with `selectable`. */
|
|
782
|
+
/** Makes each category a link. The template can contain `{x}` (the category) and `{<field>}` (a field of the row), for example `?day={x}`. The values are URL-encoded. A template of one field only (`{url}`) takes the value of the field as it is: each row brings its own address. A category without a value, or without a value for a field of the template, has no link. Not with `selectable`. */
|
|
774
783
|
"href"?: BkChartBar["href"];
|
|
775
784
|
/** The `target` of the category links. */
|
|
776
785
|
"target"?: BkChartBar["target"];
|
|
@@ -810,7 +819,7 @@ declare module "react" {
|
|
|
810
819
|
"onselect"?: (event: CustomEvent<ChartBarSelectDetail>) => void;
|
|
811
820
|
/** With `href`: the user makes a plain click on the link of a category. The detail is `{ href }`. The event bubbles, is composed and is cancelable (the router of the app handles the click). */
|
|
812
821
|
"onnavigate"?: (event: CustomEvent<NavigateDetail>) => void;
|
|
813
|
-
} & BkProps<BkChartBar, "xLabel" | "seriesLabels" | "compareLabel" | "showSummary" | "valueFormat">, "onSelect" | "onSelectCapture" | "onNavigate" | "onNavigateCapture">;
|
|
822
|
+
} & BkProps<BkChartBar, "xLabel" | "detailLabel" | "seriesLabels" | "compareLabel" | "showSummary" | "valueFormat">, "onSelect" | "onSelectCapture" | "onNavigate" | "onNavigateCapture">;
|
|
814
823
|
"bk-chart-bridge": BkElementProps<BkChartBridge, {
|
|
815
824
|
/** `default`: each step in its own colour, the totals neutral. `change`: steps up in success, steps down in danger. */
|
|
816
825
|
"variant"?: BkChartBridge["variant"];
|
|
@@ -1436,7 +1445,7 @@ declare module "react" {
|
|
|
1436
1445
|
"max"?: BkCombobox["max"];
|
|
1437
1446
|
/** Label of the Enter key on a phone keyboard, like the native `enterkeyhint`: `enter`, `done`, `go`, `next`, `previous`, `search`, `send`. */
|
|
1438
1447
|
"enterkeyhint"?: BkAttr<BkCombobox["enterKeyHint"]>;
|
|
1439
|
-
/** Shows the loading row in the list.
|
|
1448
|
+
/** Shows the loading row in the list. The combobox sets it while `search` runs; apps that load options themselves set it too. */
|
|
1440
1449
|
"loading"?: BkCombobox["loading"];
|
|
1441
1450
|
/** Delay in ms before `search` runs (default 150). */
|
|
1442
1451
|
"debounce"?: BkCombobox["debounce"];
|
|
@@ -2716,7 +2725,7 @@ declare module "react" {
|
|
|
2716
2725
|
"max"?: BkInputTimeZone["max"];
|
|
2717
2726
|
/** Label of the Enter key on a phone keyboard, like the native `enterkeyhint`: `enter`, `done`, `go`, `next`, `previous`, `search`, `send`. */
|
|
2718
2727
|
"enterkeyhint"?: BkAttr<BkInputTimeZone["enterKeyHint"]>;
|
|
2719
|
-
/** Shows the loading row in the list.
|
|
2728
|
+
/** Shows the loading row in the list. The combobox sets it while `search` runs; apps that load options themselves set it too. */
|
|
2720
2729
|
"loading"?: BkInputTimeZone["loading"];
|
|
2721
2730
|
/** Delay in ms before `search` runs (default 150). */
|
|
2722
2731
|
"debounce"?: BkInputTimeZone["debounce"];
|
|
@@ -3425,6 +3434,8 @@ declare module "react" {
|
|
|
3425
3434
|
"label"?: BkModelViewer["label"];
|
|
3426
3435
|
/** Colour of the part, any CSS colour (default `--bk-model-viewer-part-color`). It replaces the colours of a 3MF or OBJ file. */
|
|
3427
3436
|
"color"?: BkModelViewer["color"];
|
|
3437
|
+
/** The viewer fills the height of its container: the view takes the height that the row under it leaves. The container needs a definite height. */
|
|
3438
|
+
"fill"?: BkModelViewer["fill"];
|
|
3428
3439
|
/** Index of the shown item. */
|
|
3429
3440
|
"index"?: BkModelViewer["index"];
|
|
3430
3441
|
/** Accessible name of the previous button (default from i18n). */
|
|
@@ -3697,6 +3708,26 @@ declare module "react" {
|
|
|
3697
3708
|
/** A `ToggleEvent` that the element fires after the user collapses (`newState: "closed"`) or expands (`newState: "open"`) the panel. It does not bubble. */
|
|
3698
3709
|
"ontoggle"?: (event: ToggleEvent) => void;
|
|
3699
3710
|
} & BkProps<BkPanel, "collapseLabel" | "expandLabel" | "persistKey" | "busyLabel">, "onToggle" | "onToggleCapture">;
|
|
3711
|
+
"bk-period-nav": BkElementProps<BkPeriodNav, {
|
|
3712
|
+
/** Address of the previous period. Unset: the previous button is disabled. */
|
|
3713
|
+
"previous-href"?: BkAttr<BkPeriodNav["previousHref"]>;
|
|
3714
|
+
/** Address of the next period. Unset: the next button is disabled. */
|
|
3715
|
+
"next-href"?: BkAttr<BkPeriodNav["nextHref"]>;
|
|
3716
|
+
/** Address of the current period. Unset: no button for the current period. */
|
|
3717
|
+
"current-href"?: BkAttr<BkPeriodNav["currentHref"]>;
|
|
3718
|
+
/** Name of the landmark (default "Period navigation"). */
|
|
3719
|
+
"label"?: BkPeriodNav["label"];
|
|
3720
|
+
/** Name of the previous button (default "Previous period"). */
|
|
3721
|
+
"previous-label"?: BkAttr<BkPeriodNav["previousLabel"]>;
|
|
3722
|
+
/** Name of the next button (default "Next period"). */
|
|
3723
|
+
"next-label"?: BkAttr<BkPeriodNav["nextLabel"]>;
|
|
3724
|
+
/** Text of the current button (default "Current period"). */
|
|
3725
|
+
"current-label"?: BkAttr<BkPeriodNav["currentLabel"]>;
|
|
3726
|
+
/** Size of the buttons: `sm`, `md` (default) or `lg`. */
|
|
3727
|
+
"size"?: BkPeriodNav["size"];
|
|
3728
|
+
/** The user makes a plain click on a link (primary button, no modifier key). `detail.href` is the resolved address. Bubbles, composed, cancelable: `preventDefault()` stops the browser, and the router of the app handles the navigation. */
|
|
3729
|
+
"onnavigate"?: (event: CustomEvent<NavigateDetail>) => void;
|
|
3730
|
+
} & BkProps<BkPeriodNav, "previousHref" | "nextHref" | "currentHref" | "previousLabel" | "nextLabel" | "currentLabel">, "onNavigate" | "onNavigateCapture">;
|
|
3700
3731
|
"bk-picture": BkElementProps<BkPicture, {
|
|
3701
3732
|
/** Address of the image. */
|
|
3702
3733
|
"src"?: BkPicture["src"];
|
package/dist/standalone/all.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { i as e, n as t, r as n, t as r } from "./chunks/tokens-BuahF1lF.js";
|
|
2
|
-
import { a as ee, i as te, n as ne, r as re, t as ie } from "./chunks/i18n-
|
|
2
|
+
import { a as ee, i as te, n as ne, r as re, t as ie } from "./chunks/i18n-B6Al9xCK.js";
|
|
3
3
|
import { de as ae } from "./i18n-de.js";
|
|
4
4
|
import { _ as i, a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b } from "./chunks/appearance-waHnV0kk.js";
|
|
5
5
|
import { a as x, c as S, d as C, i as w, l as T, n as E, o as D, r as O, s as k, t as A, u as j } from "./chunks/palettes-CKLHSIPx.js";
|
|
6
|
-
import { n as M,
|
|
7
|
-
import { _ as P, a as F, c as I, d as L, f as R, g as z, h as B, i as V, l as H, m as U, n as W, o as G, p as K, r as q, s as J, t as oe, u as se } from "./chunks/bk-kbd-
|
|
6
|
+
import { n as M, t as N } from "./chunks/clipboard-BKlrP5rj.js";
|
|
7
|
+
import { _ as P, a as F, c as I, d as L, f as R, g as z, h as B, i as V, l as H, m as U, n as W, o as G, p as K, r as q, s as J, t as oe, u as se } from "./chunks/bk-kbd-B_TlKzWj.js";
|
|
8
8
|
import { a as ce, c as le, i as ue, n as de, o as fe, r as pe, s as me, t as he } from "./chunks/format-Dj4SzErj.js";
|
|
9
9
|
import { c as ge, r as _e, s as ve } from "./chunks/link-CWSMsx04.js";
|
|
10
10
|
import { a as ye, i as be, n as xe, t as Se } from "./chunks/state-XYmTmnOw.js";
|
|
11
|
-
import { n as Ce, t as we } from "./chunks/bk-alert-offline-
|
|
11
|
+
import { n as Ce, t as we } from "./chunks/bk-alert-offline-B1bQxOZp.js";
|
|
12
12
|
import { t as Te } from "./chunks/loading-B37QBUkv.js";
|
|
13
|
-
import { n as Ee, r as De, t as Oe } from "./chunks/bk-toast-group-
|
|
13
|
+
import { n as Ee, r as De, t as Oe } from "./chunks/bk-toast-group-BSeO_rPs.js";
|
|
14
14
|
import { i as ke, r as Ae, t as je } from "./chunks/chart-tokens-D1Exf7BW.js";
|
|
15
15
|
import { a as Me, i as Ne, n as Pe, r as Fe, t as Ie } from "./chunks/registry-BTiSxoP0.js";
|
|
16
16
|
import { coreIcons as Le } from "./icons.js";
|
|
@@ -56,9 +56,9 @@ import { BkCommandMenu as kt, matchesQuery as At } from "./bk-command-menu.js";
|
|
|
56
56
|
import { BkColorPanel as jt, COLOR_FORMATS as Mt, allowedFormats as Nt, formatColor as Pt, hsvaToRgb as Ft, normalizeColor as It, parseCssColor as Lt, rgbToHsva as Rt } from "./bk-color-panel.js";
|
|
57
57
|
import { BkInputColor as zt } from "./bk-input-color.js";
|
|
58
58
|
import { BkInputDate as Bt } from "./bk-input-date.js";
|
|
59
|
-
import { t as Vt } from "./chunks/bk-input-date-range-
|
|
59
|
+
import { t as Vt } from "./chunks/bk-input-date-range-Cbx_lpf0.js";
|
|
60
60
|
import { BkInputTime as Ht, parseTime as Ut } from "./bk-input-time.js";
|
|
61
|
-
import { t as Wt } from "./chunks/bk-dialog-
|
|
61
|
+
import { t as Wt } from "./chunks/bk-dialog-DX0cPJ1o.js";
|
|
62
62
|
import { BkDrawer as Gt } from "./bk-drawer.js";
|
|
63
63
|
import { BkDropTarget as Kt } from "./bk-drop-target.js";
|
|
64
64
|
import { BkEmptyState as qt } from "./bk-empty-state.js";
|
|
@@ -76,13 +76,13 @@ import { BkInputInline as ln } from "./bk-input-inline.js";
|
|
|
76
76
|
import { BkImageViewer as un } from "./bk-image-viewer.js";
|
|
77
77
|
import { BkImageCompare as dn } from "./bk-image-compare.js";
|
|
78
78
|
import { BkPicture as fn } from "./bk-picture.js";
|
|
79
|
-
import { t as pn } from "./chunks/bk-model-viewer-
|
|
79
|
+
import { t as pn } from "./chunks/bk-model-viewer-Dr81ahVv.js";
|
|
80
80
|
import { BkVideo as mn } from "./bk-video.js";
|
|
81
81
|
import { BkTestimonial as hn } from "./bk-testimonial.js";
|
|
82
82
|
import { BkImageCrop as gn } from "./bk-image-crop.js";
|
|
83
|
-
import { n as _n, t as vn } from "./chunks/bk-image-editor-
|
|
84
|
-
import { t as yn } from "./chunks/bk-input-text-
|
|
85
|
-
import { a as bn, i as xn, n as Sn, o as Cn, r as wn, t as Tn } from "./chunks/bk-input-rich-
|
|
83
|
+
import { n as _n, t as vn } from "./chunks/bk-image-editor-DXEj9gCu.js";
|
|
84
|
+
import { t as yn } from "./chunks/bk-input-text-DD32uWNO.js";
|
|
85
|
+
import { a as bn, i as xn, n as Sn, o as Cn, r as wn, t as Tn } from "./chunks/bk-input-rich-ZB68vziu.js";
|
|
86
86
|
import { BkItemGroup as En } from "./bk-item-group.js";
|
|
87
87
|
import { BkItem as Dn } from "./bk-item.js";
|
|
88
88
|
import { BkLightbox as On, openLightbox as kn } from "./bk-lightbox.js";
|
|
@@ -110,112 +110,113 @@ import { BkNavItem as Zn, navDrop as Qn, navLook as $n } from "./bk-nav-item.js"
|
|
|
110
110
|
import { BkNavToc as er } from "./bk-nav-toc.js";
|
|
111
111
|
import { BkMenuBar as tr } from "./bk-menu-bar.js";
|
|
112
112
|
import { BkOverflow as nr } from "./bk-overflow.js";
|
|
113
|
-
import { a as rr, c as ir, i as ar, l as or } from "./chunks/date-field-
|
|
113
|
+
import { a as rr, c as ir, i as ar, l as or } from "./chunks/date-field-BlI6grfT.js";
|
|
114
114
|
import { BkInputNumber as sr } from "./bk-input-number.js";
|
|
115
115
|
import { BkPageHeader as cr } from "./bk-page-header.js";
|
|
116
116
|
import { BkPagination as lr } from "./bk-pagination.js";
|
|
117
117
|
import { BkPagePager as ur } from "./bk-page-pager.js";
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import {
|
|
149
|
-
import {
|
|
150
|
-
import {
|
|
151
|
-
import {
|
|
152
|
-
import {
|
|
153
|
-
import {
|
|
154
|
-
import {
|
|
155
|
-
import {
|
|
156
|
-
import {
|
|
157
|
-
import {
|
|
158
|
-
import {
|
|
159
|
-
import {
|
|
160
|
-
import {
|
|
161
|
-
import {
|
|
162
|
-
import {
|
|
163
|
-
import {
|
|
164
|
-
import {
|
|
165
|
-
import {
|
|
166
|
-
import {
|
|
167
|
-
import {
|
|
168
|
-
import {
|
|
169
|
-
import {
|
|
170
|
-
import {
|
|
171
|
-
import {
|
|
172
|
-
import {
|
|
173
|
-
import {
|
|
174
|
-
import {
|
|
175
|
-
import {
|
|
176
|
-
import {
|
|
177
|
-
import {
|
|
178
|
-
import {
|
|
179
|
-
import {
|
|
180
|
-
import {
|
|
181
|
-
import {
|
|
182
|
-
import {
|
|
183
|
-
import {
|
|
184
|
-
import {
|
|
185
|
-
import {
|
|
186
|
-
import {
|
|
187
|
-
import {
|
|
188
|
-
import {
|
|
189
|
-
import {
|
|
190
|
-
import {
|
|
191
|
-
import {
|
|
192
|
-
import {
|
|
193
|
-
import {
|
|
194
|
-
import {
|
|
195
|
-
import {
|
|
196
|
-
import {
|
|
197
|
-
import {
|
|
198
|
-
import {
|
|
199
|
-
import {
|
|
200
|
-
import {
|
|
201
|
-
import {
|
|
202
|
-
import {
|
|
203
|
-
import {
|
|
204
|
-
import {
|
|
205
|
-
import {
|
|
206
|
-
import {
|
|
207
|
-
import {
|
|
208
|
-
import {
|
|
209
|
-
import {
|
|
210
|
-
import {
|
|
211
|
-
import {
|
|
212
|
-
import {
|
|
213
|
-
import {
|
|
214
|
-
import {
|
|
215
|
-
import {
|
|
216
|
-
import {
|
|
118
|
+
import { BkPeriodNav as dr } from "./bk-period-nav.js";
|
|
119
|
+
import { BkPane as fr } from "./bk-pane.js";
|
|
120
|
+
import { BkPanel as pr } from "./bk-panel.js";
|
|
121
|
+
import { BkPopover as mr } from "./bk-popover.js";
|
|
122
|
+
import { BkPreview as hr } from "./bk-preview.js";
|
|
123
|
+
import { BkPresenceCursor as gr } from "./bk-presence-cursor.js";
|
|
124
|
+
import { t as _r } from "./chunks/bk-qr-code-QaYvZwOR.js";
|
|
125
|
+
import { BkScroll as vr } from "./bk-scroll.js";
|
|
126
|
+
import { BkProgress as yr } from "./bk-progress.js";
|
|
127
|
+
import { BkRadio as br } from "./bk-radio.js";
|
|
128
|
+
import { BkRadioGroup as xr } from "./bk-radio-group.js";
|
|
129
|
+
import { BkTimeRelative as Sr } from "./bk-time-relative.js";
|
|
130
|
+
import { BkTimeCountdown as Cr } from "./bk-time-countdown.js";
|
|
131
|
+
import { BkSegmentedItem as wr } from "./bk-segmented-item.js";
|
|
132
|
+
import { BkSegmented as Tr } from "./bk-segmented.js";
|
|
133
|
+
import { BkSelect as Er } from "./bk-select.js";
|
|
134
|
+
import { BkCombobox as Dr } from "./bk-combobox.js";
|
|
135
|
+
import { BkKbdShortcuts as Or } from "./bk-kbd-shortcuts.js";
|
|
136
|
+
import { BkInputSliderRange as kr } from "./bk-input-slider-range.js";
|
|
137
|
+
import { BkInputSlider as Ar } from "./bk-input-slider.js";
|
|
138
|
+
import { BkSpinner as jr } from "./bk-spinner.js";
|
|
139
|
+
import { BkSplit as Mr, parseSizes as Nr } from "./bk-split.js";
|
|
140
|
+
import { BkSplitGrid as Pr } from "./bk-split-grid.js";
|
|
141
|
+
import { BkSortable as Fr } from "./bk-sortable.js";
|
|
142
|
+
import { BkFolderBrowser as Ir, pathSteps as Lr } from "./bk-folder-browser.js";
|
|
143
|
+
import { BkLines as Rr } from "./bk-lines.js";
|
|
144
|
+
import { BkStack as zr } from "./bk-stack.js";
|
|
145
|
+
import { BkStatusDot as Br } from "./bk-status-dot.js";
|
|
146
|
+
import { t as Vr } from "./chunks/bk-surface-DkIhrWMt.js";
|
|
147
|
+
import { BkSwitch as Hr } from "./bk-switch.js";
|
|
148
|
+
import { BkTabsItem as Ur } from "./bk-tabs-item.js";
|
|
149
|
+
import { BkTabsPanel as Wr } from "./bk-tabs-panel.js";
|
|
150
|
+
import { BkTable as Gr } from "./bk-table.js";
|
|
151
|
+
import { BkTabs as Kr } from "./bk-tabs.js";
|
|
152
|
+
import { t as qr } from "./chunks/bk-swatch-palette-BNNXTP3w.js";
|
|
153
|
+
import { BkTooltip as Jr } from "./bk-tooltip.js";
|
|
154
|
+
import { BkVisuallyHidden as Yr } from "./bk-visually-hidden.js";
|
|
155
|
+
import { chooseDialog as Xr, confirmDialog as Zr, promptDialog as Qr } from "./confirm.js";
|
|
156
|
+
import { BkChartBar as $r } from "./bk-chart-bar.js";
|
|
157
|
+
import { BkChartBridge as ei } from "./bk-chart-bridge.js";
|
|
158
|
+
import { n as ti, t as ni } from "./chunks/bk-diagram-DWK8CvRZ.js";
|
|
159
|
+
import { BkChartArea as ri } from "./bk-chart-area.js";
|
|
160
|
+
import { BkChartCalendar as ii } from "./bk-chart-calendar.js";
|
|
161
|
+
import { BkChartHeatmap as ai } from "./bk-chart-heatmap.js";
|
|
162
|
+
import { BkChartMark as oi } from "./bk-chart-mark.js";
|
|
163
|
+
import { BkChartScatter as si } from "./bk-chart-scatter.js";
|
|
164
|
+
import { BkChartTracker as ci } from "./bk-chart-tracker.js";
|
|
165
|
+
import { BkChartBarList as li } from "./bk-chart-bar-list.js";
|
|
166
|
+
import { BkChartBullet as ui, bulletVerdict as di } from "./bk-chart-bullet.js";
|
|
167
|
+
import { BkChartWaterfall as fi } from "./bk-chart-waterfall.js";
|
|
168
|
+
import { BkChartLegend as pi } from "./bk-chart-legend.js";
|
|
169
|
+
import { BkChartHistogram as mi, binValues as hi } from "./bk-chart-histogram.js";
|
|
170
|
+
import { BkChartLine as gi } from "./bk-chart-line.js";
|
|
171
|
+
import { BkChartSparkline as _i } from "./bk-chart-sparkline.js";
|
|
172
|
+
import { BkChartStackedBar as vi } from "./bk-chart-stacked-bar.js";
|
|
173
|
+
import { BkStat as yi } from "./bk-stat.js";
|
|
174
|
+
import { BkRating as bi } from "./bk-rating.js";
|
|
175
|
+
import { BkStatGroup as xi } from "./bk-stat-group.js";
|
|
176
|
+
import { BkDelta as Si } from "./bk-delta.js";
|
|
177
|
+
import { BkListbox as Ci } from "./bk-listbox.js";
|
|
178
|
+
import { BkListboxSearch as wi } from "./bk-listbox-search.js";
|
|
179
|
+
import { BkCalendar as Ti, addDays as Ei, addMonths as Di, dateLocaleData as Oi, dateParts as ki, daysIn as Ai, fromUtc as ji, isoWeek as Mi, toIso as Ni, todayIso as Pi, utc as Fi, validIso as Ii } from "./bk-calendar.js";
|
|
180
|
+
import { BkMenuList as Li } from "./bk-menu-list.js";
|
|
181
|
+
import { BkToast as Ri } from "./bk-toast.js";
|
|
182
|
+
import { BkSteps as zi } from "./bk-steps.js";
|
|
183
|
+
import { BkStepsItem as Bi } from "./bk-steps-item.js";
|
|
184
|
+
import { BkTasks as Vi } from "./bk-tasks.js";
|
|
185
|
+
import { BkTasksItem as Hi } from "./bk-tasks-item.js";
|
|
186
|
+
import { BkDivider as Ui } from "./bk-divider.js";
|
|
187
|
+
import { BkToolbar as Wi } from "./bk-toolbar.js";
|
|
188
|
+
import { BkZoom as Gi } from "./bk-zoom.js";
|
|
189
|
+
import { BkTimeline as Ki } from "./bk-timeline.js";
|
|
190
|
+
import { BkTimelineItem as qi } from "./bk-timeline-item.js";
|
|
191
|
+
import { BkCode as Ji, ansiSegments as Yi, dedent as Xi, lineSet as Zi } from "./bk-code.js";
|
|
192
|
+
import { BkProse as Qi, markdownBlocks as $i } from "./bk-prose.js";
|
|
193
|
+
import { BkDisclosure as ea } from "./bk-disclosure.js";
|
|
194
|
+
import { BkCodeDiff as ta, lineDiff as na } from "./bk-code-diff.js";
|
|
195
|
+
import { BkCodeStack as ra, INTERNAL_FRAMES as ia, parseStack as aa } from "./bk-code-stack.js";
|
|
196
|
+
import { BkButtonCopy as oa } from "./bk-button-copy.js";
|
|
197
|
+
import { BkButtonShare as sa } from "./bk-button-share.js";
|
|
198
|
+
import { BkButtonTop as ca } from "./bk-button-top.js";
|
|
199
|
+
import { BkSkeleton as la } from "./bk-skeleton.js";
|
|
200
|
+
import { BkMenuContext as ua } from "./bk-menu-context.js";
|
|
201
|
+
import { BkInputFile as da, acceptsFile as fa } from "./bk-input-file.js";
|
|
202
|
+
import { BkSwatch as pa } from "./bk-swatch.js";
|
|
203
|
+
import { BkSwatchGroup as ma } from "./bk-swatch-group.js";
|
|
204
|
+
import { BkTree as ha } from "./bk-tree.js";
|
|
205
|
+
import { BkSelectTree as ga } from "./bk-select-tree.js";
|
|
206
|
+
import { BkListboxItem as _a } from "./bk-listbox-item.js";
|
|
207
|
+
import { BkListboxColumns as va, pathOf as ya, readColumnItems as ba } from "./bk-listbox-columns.js";
|
|
208
|
+
import { BkSelectCascade as xa } from "./bk-select-cascade.js";
|
|
209
|
+
import { BkListboxTransfer as Sa } from "./bk-listbox-transfer.js";
|
|
210
|
+
import { BkCalendarEvent as Ca } from "./bk-calendar-event.js";
|
|
211
|
+
import { BkCalendarWeek as wa } from "./bk-calendar-week.js";
|
|
212
|
+
import { BkTreeItem as Ta } from "./bk-tree-item.js";
|
|
213
|
+
import { BkPopoverHelp as Ea } from "./bk-popover-help.js";
|
|
214
|
+
import { t as Da } from "./chunks/bk-carousel-BCwIQhG5.js";
|
|
215
|
+
import { BkCarouselItem as Oa } from "./bk-carousel-item.js";
|
|
216
|
+
import { BkCarouselControls as ka } from "./bk-carousel-controls.js";
|
|
217
|
+
import { BkInputRating as Aa } from "./bk-input-rating.js";
|
|
217
218
|
import "./links.js";
|
|
218
|
-
import { BkInputCode as
|
|
219
|
+
import { BkInputCode as ja } from "./bk-input-code.js";
|
|
219
220
|
// dist/elevation.js
|
|
220
221
|
var X = {
|
|
221
222
|
soft: {
|
|
@@ -264,7 +265,7 @@ var X = {
|
|
|
264
265
|
}
|
|
265
266
|
}
|
|
266
267
|
};
|
|
267
|
-
function
|
|
268
|
+
function Ma(e, t = document.documentElement) {
|
|
268
269
|
let n = typeof e == "string" ? X[e].settings : e, r = (e, n) => n === void 0 ? t.style.removeProperty(e) : t.style.setProperty(e, String(n));
|
|
269
270
|
return r("--bk-shadow-strength", n.shadowStrength), r("--bk-surface-lift", n.surfaceLift), r("--bk-layer-border", n.layerBorder), t !== document.documentElement && t.setAttribute("data-bk-scope", ""), n;
|
|
270
271
|
}
|
|
@@ -386,25 +387,25 @@ var Z = {
|
|
|
386
387
|
}
|
|
387
388
|
}
|
|
388
389
|
}, Q = /* @__PURE__ */ new WeakMap();
|
|
389
|
-
function
|
|
390
|
+
function Na(e, t = document.documentElement) {
|
|
390
391
|
let n = typeof e == "string" ? Z[e].tokens : e;
|
|
391
392
|
for (let e of Q.get(t) ?? []) t.style.removeProperty(e);
|
|
392
393
|
for (let [e, r] of Object.entries(n)) t.style.setProperty(e, r);
|
|
393
394
|
return Q.set(t, Object.keys(n)), t !== t.ownerDocument.documentElement && !t.hasAttribute("data-theme") && t.setAttribute("data-bk-scope", ""), n;
|
|
394
395
|
}
|
|
395
396
|
// dist/transition.js
|
|
396
|
-
async function
|
|
397
|
+
async function Pa(e) {
|
|
397
398
|
let t = document;
|
|
398
399
|
if (!t.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
399
400
|
await e();
|
|
400
401
|
return;
|
|
401
402
|
}
|
|
402
|
-
|
|
403
|
+
Fa();
|
|
403
404
|
let n = t.startViewTransition(e);
|
|
404
405
|
n.ready.catch(() => void 0), n.finished.catch(() => void 0), await n.updateCallbackDone;
|
|
405
406
|
}
|
|
406
407
|
var $;
|
|
407
|
-
function
|
|
408
|
+
function Fa() {
|
|
408
409
|
$ || ($ = new CSSStyleSheet(), $.replaceSync("\n ::view-transition-group(root) { animation-duration: 0s; }\n ::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }\n ::view-transition-group(bk-content) { animation-duration: var(--bk-duration); animation-timing-function: var(--bk-ease); }\n "), document.adoptedStyleSheets = [...document.adoptedStyleSheets, $]);
|
|
409
410
|
}
|
|
410
|
-
export { y as APPEARANCE_CHANGE_EVENT, Re as BkAccordion, ze as BkAccordionItem, Ve as BkActionBar, Be as BkAlert, we as BkAlertOffline, He as BkAppState, qe as BkAttachment, et as BkAvatar, tt as BkAvatarGroup, nt as BkBadge, Et as BkBar, rt as BkBrand, gt as BkBreadcrumbs, _t as BkButton,
|
|
411
|
+
export { y as APPEARANCE_CHANGE_EVENT, Re as BkAccordion, ze as BkAccordionItem, Ve as BkActionBar, Be as BkAlert, we as BkAlertOffline, He as BkAppState, qe as BkAttachment, et as BkAvatar, tt as BkAvatarGroup, nt as BkBadge, Et as BkBar, rt as BkBrand, gt as BkBreadcrumbs, _t as BkButton, oa as BkButtonCopy, vt as BkButtonGroup, sa as BkButtonShare, ca as BkButtonTop, Ti as BkCalendar, Ca as BkCalendarEvent, wa as BkCalendarWeek, yt as BkCard, Da as BkCarousel, ka as BkCarouselControls, Oa as BkCarouselItem, ri as BkChartArea, $r as BkChartBar, li as BkChartBarList, ei as BkChartBridge, ui as BkChartBullet, ii as BkChartCalendar, ai as BkChartHeatmap, mi as BkChartHistogram, pi as BkChartLegend, gi as BkChartLine, oi as BkChartMark, si as BkChartScatter, _i as BkChartSparkline, vi as BkChartStackedBar, ci as BkChartTracker, fi as BkChartWaterfall, bt as BkCheckbox, xt as BkCheckboxGroup, St as BkChip, Ct as BkChipGroup, Tt as BkCluster, Ji as BkCode, ta as BkCodeDiff, ra as BkCodeStack, jt as BkColorPanel, Dt as BkColumns, Dr as BkCombobox, kt as BkCommandMenu, Ot as BkCommandPalette, Vn as BkComposer, Si as BkDelta, ni as BkDiagram, Wt as BkDialog, ea as BkDisclosure, Ui as BkDivider, Gt as BkDrawer, Kt as BkDropTarget, qt as BkEmptyState, Yt as BkErrorSummary, mt as BkFacts, ht as BkFactsItem, Jt as BkFeature, Xt as BkFieldset, wt as BkFilterBar, Ir as BkFolderBrowser, tn as BkFormGuard, an as BkFormSteps, on as BkGrid, cn as BkIcon, pt as BkIconTile, dn as BkImageCompare, gn as BkImageCrop, vn as BkImageEditor, un as BkImageViewer, ja as BkInputCode, zt as BkInputColor, Bt as BkInputDate, Vt as BkInputDateRange, da as BkInputFile, Zt as BkInputGroup, ln as BkInputInline, sr as BkInputNumber, Aa as BkInputRating, Tn as BkInputRich, $t as BkInputSearch, Ar as BkInputSlider, kr as BkInputSliderRange, yn as BkInputText, Ht as BkInputTime, Qt as BkInputTimeZone, Dn as BkItem, En as BkItemGroup, oe as BkKbd, Or as BkKbdShortcuts, On as BkLightbox, Rr as BkLines, An as BkLink, Ci as BkListbox, va as BkListboxColumns, _a as BkListboxItem, wi as BkListboxSearch, Sa as BkListboxTransfer, it as BkLogo, ot as BkLogoWall, Hn as BkMenu, tr as BkMenuBar, ua as BkMenuContext, Un as BkMenuDivider, Wn as BkMenuItem, Gn as BkMenuLabel, Li as BkMenuList, jn as BkMessage, Fn as BkMessageApproval, Bn as BkMessageBranches, zn as BkMessageCitation, Y as BkMessageFeedback, Mn as BkMessageList, In as BkMessageReasoning, Ln as BkMessageSource, Nn as BkMessageTool, Pn as BkMessageToolGroup, Kn as BkMeter, pn as BkModelViewer, Jn as BkNav, Yn as BkNavDivider, Xn as BkNavGroup, Zn as BkNavItem, er as BkNavToc, nr as BkOverflow, lt as BkPageCta, ut as BkPageFooter, dt as BkPageFooterColumn, cr as BkPageHeader, ct as BkPageHero, ur as BkPagePager, st as BkPageSection, lr as BkPagination, fr as BkPane, pr as BkPanel, dr as BkPeriodNav, fn as BkPicture, mr as BkPopover, Ea as BkPopoverHelp, gr as BkPresenceCursor, hr as BkPreview, yr as BkProgress, Qi as BkProse, _r as BkQrCode, br as BkRadio, xr as BkRadioGroup, bi as BkRating, vr as BkScroll, Tr as BkSegmented, wr as BkSegmentedItem, Er as BkSelect, xa as BkSelectCascade, ga as BkSelectTree, Ue as BkShellApp, Ge as BkShellCentered, Ke as BkShellSites, la as BkSkeleton, Fr as BkSortable, jr as BkSpinner, Mr as BkSplit, Pr as BkSplitGrid, zr as BkStack, yi as BkStat, xi as BkStatGroup, Br as BkStatusDot, zi as BkSteps, Bi as BkStepsItem, Vr as BkSurface, pa as BkSwatch, ma as BkSwatchGroup, qr as BkSwatchPalette, Hr as BkSwitch, Gr as BkTable, Kr as BkTabs, Ur as BkTabsItem, Wr as BkTabsPanel, Vi as BkTasks, Hi as BkTasksItem, hn as BkTestimonial, ft as BkText, Cr as BkTimeCountdown, Sr as BkTimeRelative, Ki as BkTimeline, qi as BkTimelineItem, Ri as BkToast, Oe as BkToastGroup, Wi as BkToolbar, Jr as BkTooltip, ha as BkTree, Ta as BkTreeItem, mn as BkVideo, Yr as BkVisuallyHidden, Gi as BkZoom, je as CHART_PALETTE, Mt as COLOR_FORMATS, ia as INTERNAL_FRAMES, Te as LoadingController, ie as LocalizeController, A as MIN_HUE_DISTANCE, Ce as OnlineController, m as PALETTE_STORAGE_KEY, We as ShellAppToggleEvent, Se as StateController, _ as TEXT_SCALE_STORAGE_KEY, f as THEME_CHANGE_EVENT, b as THEME_STORAGE_KEY, fa as acceptsFile, Ei as addDays, Di as addMonths, Ae as adoptChartTokens, r as adoptTokens, Nt as allowedFormats, Yi as ansiSegments, Ma as applyElevation, Na as applyLook, E as applyPalette, s as applyWithTransition, W as ariaKeyShortcuts, hi as binValues, Me as brandIcons, di as bulletVerdict, O as chartSeries, ke as chartTokensCss, Xr as chooseDialog, en as clauseText, Zr as confirmDialog, N as copyText, M as copyTextOrThrow, Le as coreIcons, w as darkValue, Oi as dateLocaleData, ki as dateParts, Ai as daysIn, ae as de, Xi as dedent, t as defaultBaseColors, n as defaultHues, q as describeKeys, $e as edgeOption, X as elevationPresets, nn as formIsDirty, he as formatBytes, Pt as formatColor, de as formatCompactNumber, pe as formatDateTime, ue as formatDuration, V as formatKeys, F as formatKeysText, ce as formatRelative, ji as fromUtc, Ie as getIcon, d as getPalette, G as getShortcut, J as getShortcuts, a as getTextScale, c as getTheme, rn as guardUnsaved, Ft as hsvaToRgb, x as hueDistanceWarnings, Pe as iconNames, h as initAppearance, g as initTheme, _e as installLinkDelegation, I as isApplePlatform, H as isKeyCombo, se as isKeys, xn as isSafeHref, Mi as isoWeek, sn as lateIcons, D as lightValue, na as lineDiff, Zi as lineSet, ne as localeOf, at as logoInitials, Z as looks, $i as markdownBlocks, Sn as markdownToRichHtml, Ze as matchRanges, L as matchesKeys, At as matchesQuery, qn as meterTone, Qn as navDrop, $n as navLook, _n as noImageEdits, It as normalizeColor, bn as normalizeHref, Fe as onIconsChanged, R as onShortcut, kn as openLightbox, Je as optionStyles, k as paletteFromColors, S as paletteTokens, T as paletteVars, j as palettes, Lt as parseCssColor, ar as parseDate, rr as parseDateRange, K as parseKeys, ir as parseRelative, Nr as parseSizes, aa as parseStack, Ut as parseTime, ya as pathOf, Lr as pathSteps, re as pluralCategory, Qr as promptDialog, ba as readColumnItems, Qe as readOptions, ti as registerDiagramFonts, Ne as registerIcons, U as registerShortcuts, te as registerTranslations, fe as relativeParts, Ye as renderOptions, p as resetThemeWarning, ve as resolveHref, or as resolveRelative, u as resolvedTheme, Rt as rgbToHsva, wn as richHtmlToMarkdown, Cn as sanitizeRichText, ge as setLinkResolver, v as setPalette, B as setShortcutPlatform, o as setTextScale, l as setTheme, z as shortcutHint, Rn as sourceHost, xe as stateFor, Xe as stepOption, P as subscribeShortcuts, i as supportedThemes, me as toDate, le as toDateTimeLocal, Ni as toIso, Ee as toast, Pi as todayIso, e as tokensCss, De as trackKeyboardInset, Pa as transition, ee as translate, C as twoTone, be as urlAdapter, Fi as utc, Ii as validIso, ye as webStorageAdapter };
|
|
@@ -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/define-CzVPD4Zi.js";
|
|
3
3
|
import { r 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/styles-DwSR-9a3.js";
|
|
6
6
|
import "./bk-button.js";
|
|
7
7
|
import "./chunks/close-CcDDKPf9.js";
|