@bk2k/ui 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +63 -0
- package/USAGE.md +20 -9
- package/custom-elements.json +1 -1
- package/dist/charts/frame.d.ts +2 -0
- package/dist/components/bk-alert.js +1 -1
- package/dist/components/bk-button.d.ts +5 -0
- package/dist/components/bk-button.js +15 -4
- package/dist/components/bk-card.d.ts +6 -3
- package/dist/components/bk-card.js +15 -9
- package/dist/components/bk-chart-area.d.ts +4 -0
- package/dist/components/bk-chart-line.d.ts +15 -0
- package/dist/components/bk-chart-line.js +16 -6
- package/dist/components/bk-chip.d.ts +2 -0
- package/dist/components/bk-chip.js +3 -1
- package/dist/components/bk-combobox.d.ts +2 -2
- package/dist/components/bk-combobox.js +7 -20
- package/dist/components/bk-footnotes-item.d.ts +2 -2
- package/dist/components/bk-image-compare.d.ts +36 -1
- package/dist/components/bk-image-compare.js +47 -11
- package/dist/components/bk-image-viewer.d.ts +74 -3
- package/dist/components/bk-image-viewer.js +115 -28
- package/dist/components/bk-input-color.d.ts +2 -5
- package/dist/components/bk-input-color.js +0 -14
- package/dist/components/bk-input-file.d.ts +17 -0
- package/dist/components/bk-input-file.js +18 -8
- package/dist/components/bk-input-tags.d.ts +219 -0
- package/dist/components/bk-input-tags.js +293 -0
- package/dist/components/bk-input-text.d.ts +9 -0
- package/dist/components/bk-input-text.js +18 -2
- package/dist/components/bk-lightbox.d.ts +25 -1
- package/dist/components/bk-lightbox.js +7 -0
- package/dist/components/bk-page-cta.d.ts +2 -0
- package/dist/components/bk-page-cta.js +8 -1
- package/dist/components/bk-split-grid.js +7 -2
- package/dist/components/bk-stat.d.ts +2 -0
- package/dist/components/bk-stat.js +1 -1
- package/dist/components/bk-table.d.ts +2 -0
- package/dist/components/bk-table.js +1 -1
- package/dist/components/bk-tabs.d.ts +2 -1
- package/dist/components/bk-tabs.js +15 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/internal/announcer.d.ts +6 -0
- package/dist/internal/announcer.js +7 -2
- package/dist/internal/cloak.js +1 -0
- package/dist/internal/define.d.ts +9 -0
- package/dist/internal/define.js +47 -1
- package/dist/internal/elements.d.ts +6 -0
- package/dist/internal/elements.js +5 -0
- package/dist/internal/hue.d.ts +8 -0
- package/dist/internal/hue.js +15 -4
- package/dist/internal/late/bk-tabs.d.ts +4 -0
- package/dist/internal/late/bk-tabs.js +8 -0
- package/dist/internal/late.js +3 -3
- package/dist/internal/tags.d.ts +15 -0
- package/dist/internal/tags.js +44 -0
- package/dist/internal/text-field.d.ts +2 -0
- package/dist/internal/text-field.js +8 -0
- package/dist/internal/toggle-control.js +3 -1
- package/dist/jsx.d.ts +85 -6
- package/dist/kit.d.ts +1 -0
- package/dist/kit.js +3 -0
- package/dist/reset.css +1 -1
- package/dist/standalone/all.js +106 -105
- package/dist/standalone/bk-accordion-item.js +3 -3
- package/dist/standalone/bk-accordion.js +1 -1
- package/dist/standalone/bk-action-bar.js +1 -1
- package/dist/standalone/bk-alert-offline.js +1 -1
- package/dist/standalone/bk-alert.js +7 -4
- package/dist/standalone/bk-app-state.js +1 -1
- package/dist/standalone/bk-attachment.js +2 -2
- package/dist/standalone/bk-avatar-group.js +1 -1
- package/dist/standalone/bk-avatar.js +3 -3
- package/dist/standalone/bk-badge.js +1 -1
- package/dist/standalone/bk-bar.js +1 -1
- package/dist/standalone/bk-brand.js +1 -1
- package/dist/standalone/bk-breadcrumbs.js +2 -2
- package/dist/standalone/bk-button-copy.js +4 -4
- package/dist/standalone/bk-button-group.js +2 -2
- package/dist/standalone/bk-button-share.js +4 -4
- package/dist/standalone/bk-button-top.js +1 -1
- package/dist/standalone/bk-button.js +14 -6
- package/dist/standalone/bk-calendar-event.js +1 -1
- package/dist/standalone/bk-calendar-week.js +1 -1
- package/dist/standalone/bk-calendar.js +2 -2
- package/dist/standalone/bk-card.js +17 -11
- package/dist/standalone/bk-carousel-controls.js +2 -2
- package/dist/standalone/bk-carousel-item.js +1 -1
- package/dist/standalone/bk-carousel.js +1 -1
- package/dist/standalone/bk-chart-area.js +1 -1
- package/dist/standalone/bk-chart-bar-list.js +2 -2
- package/dist/standalone/bk-chart-bar.js +1 -1
- package/dist/standalone/bk-chart-bridge.js +1 -1
- package/dist/standalone/bk-chart-bullet.js +1 -1
- package/dist/standalone/bk-chart-calendar.js +1 -1
- package/dist/standalone/bk-chart-heatmap.js +1 -1
- package/dist/standalone/bk-chart-histogram.js +1 -1
- package/dist/standalone/bk-chart-legend.js +1 -1
- package/dist/standalone/bk-chart-line.js +16 -8
- package/dist/standalone/bk-chart-mark.js +1 -1
- package/dist/standalone/bk-chart-scatter.js +1 -1
- package/dist/standalone/bk-chart-sparkline.js +1 -1
- package/dist/standalone/bk-chart-stacked-bar.js +1 -1
- package/dist/standalone/bk-chart-tracker.js +1 -1
- package/dist/standalone/bk-chart-waterfall.js +2 -2
- package/dist/standalone/bk-checkbox-group.js +5 -5
- package/dist/standalone/bk-checkbox.js +3 -3
- package/dist/standalone/bk-chip-group.js +4 -4
- package/dist/standalone/bk-chip.js +5 -3
- package/dist/standalone/bk-cluster.js +1 -1
- package/dist/standalone/bk-code-diff.js +2 -2
- package/dist/standalone/bk-code-stack.js +1 -1
- package/dist/standalone/bk-code.js +1 -1
- package/dist/standalone/bk-color-panel.js +2 -2
- package/dist/standalone/bk-columns.js +1 -1
- package/dist/standalone/bk-combobox.js +21 -30
- package/dist/standalone/bk-command-menu.js +3 -3
- package/dist/standalone/bk-command-palette.js +4 -4
- package/dist/standalone/bk-composer.js +4 -4
- 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-disclosure.js +2 -2
- package/dist/standalone/bk-divider.js +4 -4
- package/dist/standalone/bk-drawer.js +2 -2
- package/dist/standalone/bk-drop-target.js +1 -1
- package/dist/standalone/bk-empty-state.js +2 -2
- package/dist/standalone/bk-error-summary.js +1 -1
- package/dist/standalone/bk-facts-item.js +1 -1
- package/dist/standalone/bk-facts.js +1 -1
- package/dist/standalone/bk-feature.js +2 -2
- package/dist/standalone/bk-fieldset.js +1 -1
- package/dist/standalone/bk-filter-bar.js +2 -2
- package/dist/standalone/bk-folder-browser.js +2 -2
- package/dist/standalone/bk-footnote.js +1 -1
- package/dist/standalone/bk-footnotes-item.js +2 -2
- package/dist/standalone/bk-footnotes.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-grid.js +1 -1
- package/dist/standalone/bk-icon-tile.js +2 -2
- package/dist/standalone/bk-icon.js +1 -1
- package/dist/standalone/bk-image-compare.js +55 -27
- package/dist/standalone/bk-image-crop.js +3 -3
- package/dist/standalone/bk-image-editor.js +1 -1
- package/dist/standalone/bk-image-viewer.js +127 -57
- package/dist/standalone/bk-input-code.js +2 -2
- package/dist/standalone/bk-input-color.js +3 -13
- package/dist/standalone/bk-input-date-range.js +2 -2
- package/dist/standalone/bk-input-date.js +2 -2
- package/dist/standalone/bk-input-file.js +20 -13
- package/dist/standalone/bk-input-group.js +2 -2
- package/dist/standalone/bk-input-inline.js +1 -1
- package/dist/standalone/bk-input-number.js +4 -4
- package/dist/standalone/bk-input-rating.js +4 -4
- package/dist/standalone/bk-input-rich.js +1 -1
- package/dist/standalone/bk-input-search.js +4 -4
- package/dist/standalone/bk-input-slider-range.js +2 -2
- package/dist/standalone/bk-input-slider.js +2 -2
- package/dist/standalone/bk-input-tags.js +224 -0
- package/dist/standalone/bk-input-text.js +1 -1
- package/dist/standalone/bk-input-time-zone.js +1 -1
- package/dist/standalone/bk-input-time.js +4 -4
- package/dist/standalone/bk-item-group.js +2 -2
- package/dist/standalone/bk-item.js +2 -2
- package/dist/standalone/bk-kbd-shortcuts.js +1 -1
- package/dist/standalone/bk-kbd.js +1 -1
- package/dist/standalone/bk-lightbox.js +16 -3
- package/dist/standalone/bk-lines.js +1 -1
- package/dist/standalone/bk-link.js +2 -2
- package/dist/standalone/bk-listbox-columns.js +6 -6
- package/dist/standalone/bk-listbox-item.js +1 -1
- package/dist/standalone/bk-listbox-search.js +5 -5
- package/dist/standalone/bk-listbox-transfer.js +4 -4
- package/dist/standalone/bk-listbox.js +5 -5
- package/dist/standalone/bk-logo-wall.js +1 -1
- package/dist/standalone/bk-logo.js +2 -2
- package/dist/standalone/bk-menu-bar.js +1 -1
- package/dist/standalone/bk-menu-context.js +1 -1
- package/dist/standalone/bk-menu-divider.js +1 -1
- package/dist/standalone/bk-menu-item.js +2 -2
- package/dist/standalone/bk-menu-label.js +1 -1
- package/dist/standalone/bk-menu-list.js +1 -1
- package/dist/standalone/bk-menu.js +4 -4
- package/dist/standalone/bk-message-approval.js +2 -2
- 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 +2 -2
- package/dist/standalone/bk-message-list.js +2 -2
- package/dist/standalone/bk-message-reasoning.js +3 -3
- package/dist/standalone/bk-message-source.js +1 -1
- package/dist/standalone/bk-message-tool-group.js +3 -3
- package/dist/standalone/bk-message-tool.js +3 -3
- package/dist/standalone/bk-message.js +2 -2
- package/dist/standalone/bk-meter.js +1 -1
- package/dist/standalone/bk-model-viewer.js +1 -1
- package/dist/standalone/bk-nav-divider.js +1 -1
- package/dist/standalone/bk-nav-group.js +5 -5
- package/dist/standalone/bk-nav-item.js +2 -2
- 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-cta.js +10 -3
- package/dist/standalone/bk-page-footer-column.js +1 -1
- package/dist/standalone/bk-page-footer.js +1 -1
- package/dist/standalone/bk-page-header.js +2 -2
- package/dist/standalone/bk-page-hero.js +2 -2
- package/dist/standalone/bk-page-pager.js +2 -2
- package/dist/standalone/bk-page-section.js +2 -2
- package/dist/standalone/bk-pagination.js +3 -3
- package/dist/standalone/bk-pane.js +2 -2
- package/dist/standalone/bk-panel.js +2 -2
- package/dist/standalone/bk-period-nav.js +2 -2
- package/dist/standalone/bk-picture.js +1 -175
- package/dist/standalone/bk-popover-help.js +1 -1
- package/dist/standalone/bk-popover.js +1 -1
- package/dist/standalone/bk-presence-cursor.js +2 -2
- package/dist/standalone/bk-preview.js +2 -2
- package/dist/standalone/bk-progress.js +1 -1
- package/dist/standalone/bk-prose.js +1 -1
- package/dist/standalone/bk-qr-code.js +1 -1
- package/dist/standalone/bk-radio-group.js +5 -5
- package/dist/standalone/bk-radio.js +2 -2
- package/dist/standalone/bk-rating.js +3 -3
- package/dist/standalone/bk-scroll.js +1 -1
- package/dist/standalone/bk-segmented-item.js +2 -2
- package/dist/standalone/bk-segmented.js +4 -4
- package/dist/standalone/bk-select-cascade.js +3 -3
- package/dist/standalone/bk-select-tree.js +4 -4
- package/dist/standalone/bk-select.js +4 -4
- package/dist/standalone/bk-shell-app.js +1 -1
- package/dist/standalone/bk-shell-centered.js +1 -1
- package/dist/standalone/bk-shell-sites.js +1 -1
- package/dist/standalone/bk-skeleton.js +1 -1
- package/dist/standalone/bk-sortable.js +2 -2
- package/dist/standalone/bk-spinner.js +1 -1
- package/dist/standalone/bk-split-grid.js +10 -7
- package/dist/standalone/bk-split.js +6 -6
- package/dist/standalone/bk-stack.js +1 -1
- package/dist/standalone/bk-stat-group.js +1 -1
- package/dist/standalone/bk-stat.js +3 -3
- package/dist/standalone/bk-status-dot.js +2 -2
- package/dist/standalone/bk-steps-item.js +2 -2
- package/dist/standalone/bk-steps.js +1 -1
- package/dist/standalone/bk-surface.js +1 -1
- package/dist/standalone/bk-swatch-group.js +6 -6
- package/dist/standalone/bk-swatch-palette.js +1 -1
- package/dist/standalone/bk-swatch.js +1 -1
- package/dist/standalone/bk-switch.js +2 -2
- package/dist/standalone/bk-table.js +1 -1
- package/dist/standalone/bk-tabs-item.js +2 -2
- package/dist/standalone/bk-tabs-panel.js +1 -1
- package/dist/standalone/bk-tabs.js +3 -414
- package/dist/standalone/bk-tasks-item.js +2 -2
- package/dist/standalone/bk-tasks.js +1 -1
- package/dist/standalone/bk-testimonial.js +2 -2
- package/dist/standalone/bk-text.js +3 -3
- package/dist/standalone/bk-time-countdown.js +2 -2
- package/dist/standalone/bk-time-relative.js +1 -1
- package/dist/standalone/bk-timeline-item.js +2 -2
- package/dist/standalone/bk-timeline.js +1 -1
- package/dist/standalone/bk-toast-group.js +1 -1
- package/dist/standalone/bk-toast.js +2 -2
- package/dist/standalone/bk-toolbar.js +1 -1
- package/dist/standalone/bk-tooltip.js +1 -1
- package/dist/standalone/bk-tree-item.js +3 -3
- package/dist/standalone/bk-tree.js +4 -4
- package/dist/standalone/bk-video.js +2 -2
- package/dist/standalone/bk-visually-hidden.js +1 -1
- package/dist/standalone/bk-zoom.js +3 -3
- package/dist/standalone/chunks/{announcer-D1zrRWwO.js → announcer-6tMlCOq1.js} +9 -4
- package/dist/standalone/chunks/{bk-alert-offline-Clw0ZSsH.js → bk-alert-offline-hCLuG-RM.js} +1 -1
- package/dist/standalone/chunks/{bk-carousel-Biz7t8sL.js → bk-carousel-_dudBMVq.js} +2 -2
- package/dist/standalone/chunks/{bk-diagram-D_fQf6SF.js → bk-diagram-BB2odomE.js} +2 -2
- package/dist/standalone/chunks/{bk-dialog-DwZyUUHh.js → bk-dialog-DcvwnOtN.js} +2 -2
- package/dist/standalone/chunks/{bk-icon-Bp_flKdv.js → bk-icon-D4kI4F18.js} +1 -1
- package/dist/standalone/chunks/{bk-image-editor-BADsoLRL.js → bk-image-editor-SRVkHI-4.js} +2 -2
- package/dist/standalone/chunks/{bk-input-date-range-DHcJ8-5g.js → bk-input-date-range-C0Vd-p0T.js} +2 -2
- package/dist/standalone/chunks/{bk-input-rich-CFhW6vRa.js → bk-input-rich-AmDv87E5.js} +3 -3
- package/dist/standalone/chunks/{bk-input-text-DviyLBqj.js → bk-input-text-2n89GDIT.js} +15 -5
- package/dist/standalone/chunks/{bk-model-viewer-w_Ah4Tvs.js → bk-model-viewer-BoNYBd6W.js} +2 -2
- package/dist/standalone/chunks/bk-picture-CA5gLxgZ.js +186 -0
- package/dist/standalone/chunks/{bk-qr-code-CYMovNVl.js → bk-qr-code-CSFfc8As.js} +1 -1
- package/dist/standalone/chunks/{bk-shell-app-B2lxHit8.js → bk-shell-app-BlCOG25y.js} +31 -30
- package/dist/standalone/chunks/{bk-surface-D7e0tErs.js → bk-surface-BULRdKam.js} +1 -1
- package/dist/standalone/chunks/{bk-swatch-palette-x13JgJQi.js → bk-swatch-palette-Cqj85tSW.js} +1 -1
- package/dist/standalone/chunks/{bk-table-CP8n_jy7.js → bk-table-DWlD7yoM.js} +72 -71
- package/dist/standalone/chunks/bk-tabs-STkr3-E1.js +422 -0
- package/dist/standalone/chunks/{bk-toast-group-CoL6W7uk.js → bk-toast-group-5nZg7BaJ.js} +2 -2
- package/dist/standalone/chunks/{busy-BUB22mGY.js → busy-eG3uHonz.js} +1 -1
- package/dist/standalone/chunks/{choice-field-poOTerh1.js → choice-field-B0oe_9fI.js} +4 -4
- package/dist/standalone/chunks/{date-field-B-fCXa2D.js → date-field-Dy1_qxNv.js} +2 -2
- package/dist/standalone/chunks/define-6OfuRn5c.js +60 -0
- package/dist/standalone/chunks/{form-control-CHpfKAKa.js → form-control-Bmk0SRDX.js} +1 -1
- package/dist/standalone/chunks/{handle-menu-BgYUbGO2.js → handle-menu-BAe9fPYJ.js} +10 -36
- package/dist/standalone/chunks/{heading-text-CgnCa_q2.js → heading-text-B2kF-b8p.js} +1 -1
- package/dist/standalone/chunks/hue-vLbNdAEl.js +20 -0
- package/dist/standalone/chunks/late-CPQ_RbU-.js +30 -0
- package/dist/standalone/chunks/{options-BdC8-KKM.js → options-ySaDL-dW.js} +1 -1
- package/dist/standalone/chunks/{stars-BgKEjDQx.js → stars-BAUc_LqI.js} +1 -1
- package/dist/standalone/chunks/tags-CMLAGsVw.js +37 -0
- package/dist/standalone/chunks/{text-field-CqhJSAwZ.js → text-field-CufOGdfr.js} +16 -10
- package/dist/standalone/chunks/{toggle-control-lvZbQtGW.js → toggle-control-Cgqp1jhf.js} +4 -2
- package/dist/standalone/chunks/{virtual-C_h6sHnm.js → virtual-D-qgACnE.js} +1 -1
- package/dist/standalone/confirm.js +2 -2
- package/dist/standalone/reset.css +1 -1
- package/dist/standalone/toast.js +1 -1
- package/dist/standalone/tokens.css +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +2 -2
- package/dist/standalone/chunks/define-DkVeu7e9.js +0 -30
- package/dist/standalone/chunks/hue-Jvb-141g.js +0 -14
- package/dist/standalone/chunks/keyed-CZ2AaouM.js +0 -16
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/if-defined-z_20pBRr.js";
|
|
3
|
-
import {
|
|
3
|
+
import { r as a, t as o } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { t as s } from "./chunks/link--YWr8exL.js";
|
|
5
5
|
import { t as c } from "./chunks/loading-B37QBUkv.js";
|
|
6
6
|
import { t as l } from "./chunks/slots-BHTtBbPo.js";
|
|
@@ -8,7 +8,7 @@ import { t as u } from "./chunks/i18n-DFfGgd3d.js";
|
|
|
8
8
|
import { a as d, i as f, t as p } from "./chunks/styles-CaeyhYDA.js";
|
|
9
9
|
import { r as m } from "./chunks/anchor-CNX3nt2F.js";
|
|
10
10
|
import { r as h, t as g } from "./chunks/events-DQ4e9cPN.js";
|
|
11
|
-
import "./chunks/bk-icon-
|
|
11
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
12
12
|
import "./bk-spinner.js";
|
|
13
13
|
import "./bk-tooltip.js";
|
|
14
14
|
import { n as _, t as v } from "./chunks/submit-BjBGB8OW.js";
|
|
@@ -327,10 +327,16 @@ var y = (e) => e.stopPropagation(), b = /* @__PURE__ */ new Set([
|
|
|
327
327
|
letter-spacing: var(--bk-button-letter-spacing, normal); text-transform: var(--bk-button-text-transform, none);
|
|
328
328
|
line-height: 1; white-space: nowrap;
|
|
329
329
|
color: var(--_bk-button-fg); background: var(--_bk-button-bg); border: var(--bk-button-border-width, var(--bk-border-width)) solid var(--_bk-button-bd);
|
|
330
|
-
border-radius: var(--_bk-button-group-radius, var(--bk-button-radius, var(--bk-radius-control, var(--bk-radius-md)))); box-shadow: var(--_bk-button-shadow);
|
|
330
|
+
border-radius: var(--_bk-button-group-radius, var(--bk-button-radius, var(--bk-radius-control, var(--bk-radius-md)))); box-shadow: var(--bk-button-shadow, var(--_bk-button-shadow));
|
|
331
331
|
text-decoration: none; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
|
|
332
|
-
transition: background-color var(--bk-duration-fast), border-color var(--bk-duration-fast), color var(--bk-duration-fast);
|
|
332
|
+
transition: background-color var(--bk-duration-fast), border-color var(--bk-duration-fast), color var(--bk-duration-fast), box-shadow var(--bk-duration-fast), translate var(--bk-duration-fast);
|
|
333
333
|
}
|
|
334
|
+
@media (hover: hover) {
|
|
335
|
+
:host(:not(:is([disabled], :disabled:not([href]), [disabled-reason]:not([disabled-reason=""])))) .control:hover:not([aria-disabled="true"]) {
|
|
336
|
+
translate: 0 calc(-1 * var(--bk-button-lift-hover, 0px)); box-shadow: var(--bk-button-shadow-hover, var(--bk-button-shadow, var(--_bk-button-shadow)));
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
@media (prefers-reduced-motion: reduce) { .control:hover { translate: none !important; } }
|
|
334
340
|
.control::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; transition: background-color var(--bk-duration-fast); }
|
|
335
341
|
@media (hover: hover) { .control:hover::after { background: var(--_bk-button-hover); } }
|
|
336
342
|
.control:active::after { background: var(--bk-button-active, var(--bk-pressed)); }
|
|
@@ -432,15 +438,17 @@ var y = (e) => e.stopPropagation(), b = /* @__PURE__ */ new Set([
|
|
|
432
438
|
}
|
|
433
439
|
willUpdate(e) {
|
|
434
440
|
super.willUpdate(e), e.has("loading") && this.loader.set(this.loading);
|
|
441
|
+
let t = this.forwarded, n = t.expanded === null ? this.hostExpanded === "true" : t.expanded, r = this.internals.states;
|
|
442
|
+
r && (n ? r.add("expanded") : r.delete("expanded"));
|
|
435
443
|
}
|
|
436
444
|
updated(e) {
|
|
437
445
|
super.updated(e), e.has("type") && this.type === "submit" && _();
|
|
438
446
|
}
|
|
439
447
|
renderContent() {
|
|
440
448
|
return e`
|
|
441
|
-
<slot name="start">${this.icon ? e`<bk-icon name=${this.icon}></bk-icon>` : t}</slot>
|
|
449
|
+
<slot name="start">${this.icon ? e`<bk-icon part="icon-start" name=${this.icon}></bk-icon>` : t}</slot>
|
|
442
450
|
<span class="label"><slot @slotchange=${this.onDefaultSlot}></slot></span>
|
|
443
|
-
<slot name="end">${this.iconEnd ? e`<bk-icon name=${this.iconEnd}></bk-icon>` : t}</slot>`;
|
|
451
|
+
<slot name="end">${this.iconEnd ? e`<bk-icon part="icon-end" name=${this.iconEnd}></bk-icon>` : t}</slot>`;
|
|
444
452
|
}
|
|
445
453
|
render() {
|
|
446
454
|
let n = e`<span class="content">${this.renderContent()}</span>
|
|
@@ -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/style-map-BMvn17E7.js";
|
|
4
4
|
import { t as o } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
|
-
import {
|
|
5
|
+
import { i as s, t as c } from "./chunks/define-6OfuRn5c.js";
|
|
6
6
|
import { n as l, t as u } from "./chunks/events-DQ4e9cPN.js";
|
|
7
7
|
import { t as d, x as f } from "./chunks/styles-CaeyhYDA.js";
|
|
8
8
|
import { addDays as p, dateLocaleData as m, fromUtc as h, utc as g, validIso as _ } from "./bk-calendar.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/if-defined-z_20pBRr.js";
|
|
3
|
-
import { t as a } from "./chunks/define-
|
|
3
|
+
import { t as a } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { n as o, t as s } from "./chunks/events-DQ4e9cPN.js";
|
|
5
5
|
import { t as c } from "./chunks/slots-BHTtBbPo.js";
|
|
6
6
|
import { t as l, x as u } from "./chunks/styles-CaeyhYDA.js";
|
|
7
7
|
import { o as d, t as f } from "./chunks/i18n-DFfGgd3d.js";
|
|
8
|
-
import "./chunks/bk-icon-
|
|
8
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
9
9
|
import "./chunks/chevron-down-CpVEjEyi.js";
|
|
10
10
|
import "./chunks/chevron-left-BHF34JzQ.js";
|
|
11
11
|
import "./chunks/chevron-right-CxqvZ6TS.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a, r as o, t as s } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { t as c } from "./chunks/link--YWr8exL.js";
|
|
5
5
|
import { t as l } from "./chunks/i18n-DFfGgd3d.js";
|
|
6
|
-
import { n as u, t as d } from "./chunks/busy-
|
|
6
|
+
import { n as u, t as d } from "./chunks/busy-eG3uHonz.js";
|
|
7
7
|
import { t as f } from "./chunks/slots-BHTtBbPo.js";
|
|
8
8
|
import { h as p, t as m, u as h } from "./chunks/styles-CaeyhYDA.js";
|
|
9
9
|
import { t as g } from "./chunks/events-DQ4e9cPN.js";
|
|
@@ -100,15 +100,18 @@ var _ = class extends n {
|
|
|
100
100
|
border-radius: var(--bk-card-radius, var(--bk-radius-container, var(--bk-radius-lg))); box-shadow: var(--bk-card-shadow, var(--bk-layer-raised-shadow));
|
|
101
101
|
text-decoration: none; transition: box-shadow var(--bk-duration), border-color var(--bk-duration), translate var(--bk-duration) var(--bk-ease);
|
|
102
102
|
}
|
|
103
|
-
/* The
|
|
104
|
-
clips its content, so the
|
|
105
|
-
:host
|
|
106
|
-
:host([href])::after {
|
|
103
|
+
/* The rings: an image over the border, cut to a ring in the radius of the card. ::before is the ring at rest,
|
|
104
|
+
::after the ring of a card with href on hover. The card clips its content, so the rings are on the host. */
|
|
105
|
+
:host { position: relative; }
|
|
106
|
+
:host::before, :host([href])::after {
|
|
107
107
|
content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
|
|
108
|
-
padding: var(--bk-card-border-width, var(--bk-border-width));
|
|
108
|
+
padding: var(--bk-card-border-width, var(--bk-border-width));
|
|
109
109
|
mask: linear-gradient(currentColor 0 0) content-box exclude, linear-gradient(currentColor 0 0);
|
|
110
|
-
|
|
110
|
+
transition: opacity var(--bk-duration), translate var(--bk-duration) var(--bk-ease);
|
|
111
111
|
}
|
|
112
|
+
:host::before { background: var(--bk-card-ring, none); }
|
|
113
|
+
:host([selected])::before { display: none; }
|
|
114
|
+
:host([href])::after { background: var(--bk-card-ring-hover, linear-gradient(135deg, var(--bk-accent-solid), var(--bk-info-solid))); opacity: 0; }
|
|
112
115
|
:host([variant="elevated"]) .card { border-color: transparent; box-shadow: var(--bk-card-shadow, var(--bk-layer-overlay-shadow)); }
|
|
113
116
|
:host([variant="flat"]) .card { border-color: transparent; box-shadow: none; background: var(--bk-card-bg, var(--bk-layer-sunken-bg)); --bk-ground: var(--bk-card-bg, var(--bk-layer-sunken-bg)); }
|
|
114
117
|
/* Tone: the tint lies over the layer background, so --bk-card-bg stays the base. */
|
|
@@ -127,10 +130,13 @@ var _ = class extends n {
|
|
|
127
130
|
:host([href]) .overlay { z-index: 2; }
|
|
128
131
|
@media (hover: hover) {
|
|
129
132
|
:host([href]) .card:hover { box-shadow: var(--bk-card-shadow-hover, var(--bk-layer-overlay-shadow)); border-color: var(--bk-card-border-hover, var(--bk-line-mid)); }
|
|
130
|
-
:host([href]:hover)::after { opacity: 1; }
|
|
131
|
-
:host([href]:hover) .card, :host([href]:hover)::
|
|
133
|
+
:host([href]:not([selected]):hover)::after { opacity: 1; }
|
|
134
|
+
:host([href]:not([selected]):hover) .card, :host([href]:not([selected]):hover)::before, :host([href]:not([selected]):hover)::after {
|
|
135
|
+
translate: 0 calc(-1 * var(--bk-card-lift-hover, round(var(--bk-space-0), 1px)));
|
|
136
|
+
}
|
|
132
137
|
}
|
|
133
|
-
@media (prefers-reduced-motion: reduce) { :host([href]:hover) .card, :host([href]:hover)::after { translate: none; } }
|
|
138
|
+
@media (prefers-reduced-motion: reduce) { :host([href]:hover) .card, :host([href]:hover)::before, :host([href]:hover)::after { translate: none; } }
|
|
139
|
+
@media (forced-colors: active) { :host::before, :host([href])::after { display: none; } }
|
|
134
140
|
.card:has(> .cover:active) { box-shadow: var(--bk-card-shadow, var(--bk-layer-raised-shadow)); background-image: linear-gradient(var(--bk-pressed), var(--bk-pressed)); }
|
|
135
141
|
:host([tone]) .card:has(> .cover:active) { background-image: linear-gradient(var(--bk-pressed), var(--bk-pressed)), linear-gradient(var(--_bk-card-tint), var(--_bk-card-tint)); }
|
|
136
142
|
/* Selected after hover: the choice stays visible under the pointer. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/i18n-DFfGgd3d.js";
|
|
3
3
|
import { c as a } from "./chunks/anchor-CNX3nt2F.js";
|
|
4
|
-
import { n as o, r as s } from "./chunks/bk-carousel-
|
|
5
|
-
import { t as c } from "./chunks/define-
|
|
4
|
+
import { n as o, r as s } from "./chunks/bk-carousel-_dudBMVq.js";
|
|
5
|
+
import { t as c } from "./chunks/define-6OfuRn5c.js";
|
|
6
6
|
import { t as l } from "./chunks/styles-CaeyhYDA.js";
|
|
7
7
|
import "./bk-button.js";
|
|
8
8
|
import "./chunks/chevron-left-BHF34JzQ.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as r } from "./chunks/define-
|
|
2
|
+
import { t as r } from "./chunks/define-6OfuRn5c.js";
|
|
3
3
|
import { t as i } from "./chunks/styles-CaeyhYDA.js";
|
|
4
4
|
// dist/components/bk-carousel-item.js
|
|
5
5
|
var a = class extends t {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as BkCarousel } from "./chunks/bk-carousel-
|
|
1
|
+
export { t as BkCarousel } from "./chunks/bk-carousel-_dudBMVq.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import "./chunks/bk-icon-
|
|
4
|
-
import { t as a } from "./chunks/define-
|
|
3
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
4
|
+
import { t as a } from "./chunks/define-6OfuRn5c.js";
|
|
5
5
|
import { t as o } from "./chunks/link--YWr8exL.js";
|
|
6
6
|
import { t as s } from "./chunks/i18n-DFfGgd3d.js";
|
|
7
7
|
import { t as c, x as l } from "./chunks/styles-CaeyhYDA.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/style-map-BMvn17E7.js";
|
|
3
3
|
import { t as o } from "./chunks/if-defined-z_20pBRr.js";
|
|
4
|
-
import { t as s } from "./chunks/define-
|
|
4
|
+
import { t as s } from "./chunks/define-6OfuRn5c.js";
|
|
5
5
|
import { t as c } from "./chunks/i18n-DFfGgd3d.js";
|
|
6
6
|
import { t as l } from "./chunks/styles-CaeyhYDA.js";
|
|
7
7
|
import { n as u } from "./chunks/events-DQ4e9cPN.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, n as t, s as n, t as r, u as i } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as a } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import { t as o } from "./chunks/define-
|
|
3
|
+
import { t as o } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { t as s } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
5
|
import { t as c } from "./chunks/styles-CaeyhYDA.js";
|
|
6
6
|
import { r as l } from "./chunks/chart-tokens-DQ4hVSmn.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import { t as a } from "./chunks/define-
|
|
3
|
+
import { t as a } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { t as o } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
5
|
import { t as s } from "./chunks/styles-CaeyhYDA.js";
|
|
6
6
|
import { r as c } from "./chunks/chart-tokens-DQ4hVSmn.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, n as t, s as n, t as r, u as i } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as a } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import { t as o } from "./chunks/define-
|
|
3
|
+
import { t as o } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { t as s } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
5
|
import { t as c } from "./chunks/styles-CaeyhYDA.js";
|
|
6
6
|
import { r as l } from "./chunks/chart-tokens-DQ4hVSmn.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, n as t, s as n, t as r, u as i } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as a } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import { t as o } from "./chunks/define-
|
|
3
|
+
import { t as o } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { t as s } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
5
|
import { t as c } from "./chunks/styles-CaeyhYDA.js";
|
|
6
6
|
import { r as l } from "./chunks/chart-tokens-DQ4hVSmn.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as r } from "./chunks/define-
|
|
2
|
+
import { t as r } from "./chunks/define-6OfuRn5c.js";
|
|
3
3
|
import { t as i } from "./chunks/i18n-DFfGgd3d.js";
|
|
4
4
|
import { t as a } from "./chunks/styles-CaeyhYDA.js";
|
|
5
5
|
import { r as o } from "./chunks/chart-tokens-DQ4hVSmn.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import { t as a } from "./chunks/define-
|
|
3
|
+
import { t as a } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { t as o } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
5
|
import { t as s, v as c } from "./chunks/styles-CaeyhYDA.js";
|
|
6
6
|
import { n as l } from "./chunks/events-DQ4e9cPN.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, n as t, s as n, t as r, u as i } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as a } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import { t as o } from "./chunks/define-
|
|
3
|
+
import { t as o } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { t as s } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
5
|
import { t as c } from "./chunks/styles-CaeyhYDA.js";
|
|
6
6
|
import { n as l } from "./chunks/events-DQ4e9cPN.js";
|
|
@@ -91,7 +91,11 @@ var J = class extends r {
|
|
|
91
91
|
type: Boolean,
|
|
92
92
|
reflect: !0
|
|
93
93
|
},
|
|
94
|
-
persistKey: { attribute: "persist-key" }
|
|
94
|
+
persistKey: { attribute: "persist-key" },
|
|
95
|
+
gaps: {
|
|
96
|
+
reflect: !0,
|
|
97
|
+
useDefault: !0
|
|
98
|
+
}
|
|
95
99
|
};
|
|
96
100
|
i18n = new s(this);
|
|
97
101
|
chart = new G(this);
|
|
@@ -112,7 +116,7 @@ var J = class extends r {
|
|
|
112
116
|
return "line";
|
|
113
117
|
}
|
|
114
118
|
constructor() {
|
|
115
|
-
super(), this.data = [], this.series = [], this.x = "date", this.variant = this.defaultVariant, this.zero = !1, this.labels = !1, this.seriesLabels = "auto", this.table = !1, this.bare = !1, this.selectable = !1, this.showSummary = !1, this.range = null, this.yDirection = "up", this.toggleable = !1;
|
|
119
|
+
super(), this.data = [], this.series = [], this.x = "date", this.variant = this.defaultVariant, this.zero = !1, this.labels = !1, this.seriesLabels = "auto", this.table = !1, this.bare = !1, this.selectable = !1, this.showSummary = !1, this.range = null, this.yDirection = "up", this.toggleable = !1, this.gaps = "break";
|
|
116
120
|
}
|
|
117
121
|
shown = null;
|
|
118
122
|
stored = new K(this, () => this.toggleable && this.persistKey && `chart-series:${this.persistKey}`, { onChange: (e) => {
|
|
@@ -168,6 +172,7 @@ var J = class extends r {
|
|
|
168
172
|
.area { fill: var(--_bk-chart-c); opacity: var(--bk-chart-area-opacity); stroke: none; }
|
|
169
173
|
.dot { fill: var(--_bk-chart-c); stroke: var(--bk-chart-surface, var(--bk-ground, var(--bk-layer-raised-bg))); stroke-width: var(--bk-chart-ring); }
|
|
170
174
|
.crosshair { stroke: var(--bk-chart-axis); stroke-width: 1; shape-rendering: crispEdges; pointer-events: none; }
|
|
175
|
+
.gap { stroke-dasharray: var(--bk-chart-line-gap-dash, none); }
|
|
171
176
|
.compare { stroke-dasharray: 6 4; opacity: var(--bk-chart-compare-opacity); }
|
|
172
177
|
.layer { fill: var(--_bk-chart-c); stroke: var(--bk-chart-surface, var(--bk-ground, var(--bk-layer-raised-bg))); stroke-width: var(--bk-chart-surface-gap); stroke-linejoin: round; }
|
|
173
178
|
.selection { fill: var(--bk-accent-solid); fill-opacity: var(--bk-chart-band-opacity); stroke: var(--bk-accent-solid); stroke-width: 1; shape-rendering: crispEdges; pointer-events: none; }
|
|
@@ -221,6 +226,9 @@ var J = class extends r {
|
|
|
221
226
|
fmt(e) {
|
|
222
227
|
return _(this.i18n.locale, e, this.valueFormat);
|
|
223
228
|
}
|
|
229
|
+
valueText(e) {
|
|
230
|
+
return e === null ? d(this.i18n.locale, "chartNoValue") : this.fmt(e);
|
|
231
|
+
}
|
|
224
232
|
willUpdate(e) {
|
|
225
233
|
let t = e.has("data") || e.has("x") || e.has("xType");
|
|
226
234
|
if (t) {
|
|
@@ -357,7 +365,7 @@ var J = class extends r {
|
|
|
357
365
|
return s.push(O(e, D(this), (e) => this.fmt(e), (t) => this.effectiveXType === "time" ? v(e, q(t), this.xFormat, c) : String(t))), s.filter(Boolean).join(" ");
|
|
358
366
|
}
|
|
359
367
|
pointLabel(e) {
|
|
360
|
-
let t = this.data[this.view[e]], n = new Set(this.visibleKeys), r = this.effectiveSeries.filter((e) => n.has(e.key)).map((e) => `${e.label} ${this.
|
|
368
|
+
let t = this.data[this.view[e]], n = new Set(this.visibleKeys), r = this.effectiveSeries.filter((e) => n.has(e.key)).map((e) => `${e.label} ${this.valueText(W(t[e.key]))}`), i = p(this.tooltipFields).map((e) => `${m(e)} ${h(this.i18n.locale, t, e)}`);
|
|
361
369
|
return `${this.xText(t)}: ${r.concat(i).join(", ")}`;
|
|
362
370
|
}
|
|
363
371
|
tooltipAt(e, t) {
|
|
@@ -367,7 +375,7 @@ var J = class extends r {
|
|
|
367
375
|
let l = R(s, c, i.length), u = W(r[s.key]), f = t.stack === "percent" && u !== null && t.totals[e] ? ` · ${y(n, Math.max(0, u) / t.totals[e], 1)}` : "", p = t.down && !t.cmp && e > 0 ? t.raw[c][e - 1] : null, m = u !== null && p !== null ? ` (${o(u, p)})` : "";
|
|
368
376
|
a.push({
|
|
369
377
|
label: s.label,
|
|
370
|
-
value: this.
|
|
378
|
+
value: this.valueText(u) + f + m,
|
|
371
379
|
color: l,
|
|
372
380
|
marker: t.stack === "none" ? "line" : "rect"
|
|
373
381
|
});
|
|
@@ -376,7 +384,7 @@ var J = class extends r {
|
|
|
376
384
|
let e = u !== null && h !== null ? ` (${o(u, h)})` : "";
|
|
377
385
|
a.push({
|
|
378
386
|
label: `${i.length > 1 ? `${s.label} · ` : ""}${this.compareLabel || d(n, "chartPrevious")}`,
|
|
379
|
-
value: this.
|
|
387
|
+
value: this.valueText(h) + e,
|
|
380
388
|
color: l,
|
|
381
389
|
marker: "line"
|
|
382
390
|
});
|
|
@@ -590,8 +598,8 @@ var J = class extends r {
|
|
|
590
598
|
let e = c.xs.map((e, t) => [l(e), u(c.vals[r][t])]), t = c.xs.map((e, t) => [l(e), r ? u(c.vals[r - 1][t]) : f]).reverse();
|
|
591
599
|
return n`<g style=${a(o)}><path class="layer" data-slot=${s} d=${`M${g(e)}L${g(t)}Z`}></path></g>`;
|
|
592
600
|
}
|
|
593
|
-
let d = _(c.vals[r]), p = d.filter((e) => e.length > 1).map((e) => `M${g(e)}`).join(""), m = this.
|
|
594
|
-
return n`<g style=${a(o)}>${
|
|
601
|
+
let d = _(c.vals[r]), p = d.filter((e) => e.length > 1).map((e) => `M${g(e)}`).join(""), m = (e.gaps ?? this.gaps) === "connect", h = m ? d.slice(1).map((e, t) => `M${g([d[t][d[t].length - 1], e[0]])}`).join("") : "", v = m && d.length > 1 ? [d.flat()] : d.filter((e) => e.length > 1), y = this.filled ? v.map((e) => `M${e[0][0].toFixed(1)},${f}L${g(e)}L${e[e.length - 1][0].toFixed(1)},${f}Z`).join("") : "", b = d.filter((e) => e.length === 1).map(([[e, t]]) => n`<circle class="dot" cx=${e} cy=${t} r=${i.marker / 2}></circle>`), x = c.cmp ? _(c.cmp[r]).filter((e) => e.length > 1).map((e) => `M${g(e)}`).join("") : "";
|
|
602
|
+
return n`<g style=${a(o)}>${y ? n`<path class="area" d=${y}></path>` : t}${x ? n`<path class="line compare" d=${x}></path>` : t}<path class="line" data-slot=${s} d=${p}></path>${h ? n`<path class="line gap" d=${h}></path>` : t}${b}</g>`;
|
|
595
603
|
}), y = c.type, b = y === "category" ? this.view.map((e) => this.xText(this.data[e])) : [], x = this.hotMark ? c.marks.map((e) => e.el === this.hotMark ? {
|
|
596
604
|
...e,
|
|
597
605
|
active: !0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, n as t, s as n, t as r, u as i } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as a } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import { t as o } from "./chunks/define-
|
|
3
|
+
import { t as o } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { t as s } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
5
|
import { t as c } from "./chunks/styles-CaeyhYDA.js";
|
|
6
6
|
import { r as l } from "./chunks/chart-tokens-DQ4hVSmn.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
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
|
-
import { t as a } from "./chunks/define-
|
|
2
|
+
import { t as a } from "./chunks/define-6OfuRn5c.js";
|
|
3
3
|
import { t as o } from "./chunks/i18n-DFfGgd3d.js";
|
|
4
4
|
import { t as s } from "./chunks/styles-CaeyhYDA.js";
|
|
5
5
|
import { r as c } from "./chunks/chart-tokens-DQ4hVSmn.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, n as t, s as n, t as r, u as i } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as a } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import { t as o } from "./chunks/define-
|
|
3
|
+
import { t as o } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { t as s } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
5
|
import { t as c } from "./chunks/styles-CaeyhYDA.js";
|
|
6
6
|
import { r as l } from "./chunks/chart-tokens-DQ4hVSmn.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/define-
|
|
2
|
+
import { t as i } from "./chunks/define-6OfuRn5c.js";
|
|
3
3
|
import { t as a } from "./chunks/i18n-DFfGgd3d.js";
|
|
4
4
|
import { t as o } from "./chunks/styles-CaeyhYDA.js";
|
|
5
5
|
import { r as s } from "./chunks/chart-tokens-DQ4hVSmn.js";
|
|
@@ -4,10 +4,10 @@ import { t as a } from "./chunks/i18n-DFfGgd3d.js";
|
|
|
4
4
|
import { r as o } from "./chunks/chart-tokens-DQ4hVSmn.js";
|
|
5
5
|
import { t as s } from "./chunks/i18n-DQAcbHkY.js";
|
|
6
6
|
import { a as c } from "./chunks/scale-BcW5wHaU.js";
|
|
7
|
-
import { t as l } from "./chunks/define-
|
|
7
|
+
import { t as l } from "./chunks/define-6OfuRn5c.js";
|
|
8
8
|
import { n as u } from "./chunks/events-DQ4e9cPN.js";
|
|
9
9
|
import { t as d, x as f } from "./chunks/styles-CaeyhYDA.js";
|
|
10
|
-
import "./chunks/bk-icon-
|
|
10
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
11
11
|
import "./chunks/arrow-right-BpHbedfW.js";
|
|
12
12
|
import "./chunks/description-DXoJ8atg.js";
|
|
13
13
|
import "./chunks/grid-BV0_DQ5v.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as e, u as t } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as n } from "./chunks/live-CgLyfc6z.js";
|
|
3
|
-
import {
|
|
3
|
+
import { i as r, r as i, t as a } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { o, r as s, t as c } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
5
|
import { t as l } from "./chunks/events-DQ4e9cPN.js";
|
|
6
6
|
import { n as u } from "./chunks/field-DkBkSgJI.js";
|
|
7
|
-
import { t as d } from "./chunks/form-control-
|
|
7
|
+
import { t as d } from "./chunks/form-control-Bmk0SRDX.js";
|
|
8
8
|
import { s as f, t as p } from "./chunks/styles-CaeyhYDA.js";
|
|
9
9
|
import { BkCheckbox as m } from "./bk-checkbox.js";
|
|
10
10
|
// dist/components/bk-checkbox-group.js
|
|
@@ -44,7 +44,7 @@ var h = class extends d {
|
|
|
44
44
|
defaultValue = [];
|
|
45
45
|
boxes = [];
|
|
46
46
|
initialized = !1;
|
|
47
|
-
observer =
|
|
47
|
+
observer = r(() => this.requestUpdate());
|
|
48
48
|
i18n = new c(this);
|
|
49
49
|
constructor() {
|
|
50
50
|
super(), this.optional = !1, this.value = [], this.readonly = !1, this.label = "", this.hint = "", this.error = "", this.orientation = "vertical", this.size = "md", this.selectAll = !1, this.selectAllLabel = "", this.addEventListener("input", this.onBoxEvent), this.addEventListener("change", this.onBoxEvent), this.addEventListener("click", this.onClick);
|
|
@@ -52,7 +52,7 @@ var h = class extends d {
|
|
|
52
52
|
connectedCallback() {
|
|
53
53
|
if (super.connectedCallback(), !this.initialized) {
|
|
54
54
|
this.initialized = !0;
|
|
55
|
-
let e = [...
|
|
55
|
+
let e = [...i(this)?.children ?? []].filter((e) => e.localName === "bk-checkbox" && e.hasAttribute("checked")).map((e) => e.getAttribute("value") ?? "on");
|
|
56
56
|
this.value.length || (this.value = e), this.defaultValue = [...this.value];
|
|
57
57
|
}
|
|
58
58
|
this.observer.observe(this, {
|
|
@@ -136,7 +136,7 @@ var h = class extends d {
|
|
|
136
136
|
this.boxes.find((e) => !e.disabled)?.focus(e);
|
|
137
137
|
}
|
|
138
138
|
willUpdate(e) {
|
|
139
|
-
super.willUpdate(e), this.boxes = [...
|
|
139
|
+
super.willUpdate(e), this.boxes = [...i(this)?.children ?? []].filter((e) => e instanceof m);
|
|
140
140
|
let t = this.internals;
|
|
141
141
|
t.role = "group", t.ariaLabel = this.label || null, t.ariaDescription = this.error || this.validationText || this.fieldHintText(this.hint) || null, t.ariaInvalid = this.invalid || this.error ? "true" : null, t.ariaDisabled = this.isDisabled ? "true" : null, t.ariaReadOnly = this.readonly ? "true" : null;
|
|
142
142
|
}
|
|
@@ -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/define-
|
|
2
|
+
import { t as r } from "./chunks/define-6OfuRn5c.js";
|
|
3
3
|
import { t as i } from "./chunks/styles-CaeyhYDA.js";
|
|
4
|
-
import { n as a, t as o } from "./chunks/toggle-control-
|
|
5
|
-
import "./chunks/bk-icon-
|
|
4
|
+
import { n as a, t as o } from "./chunks/toggle-control-Cgqp1jhf.js";
|
|
5
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
6
6
|
import "./chunks/check-BkWcIJJJ.js";
|
|
7
7
|
import "./chunks/remove-3A4Fpn3J.js";
|
|
8
8
|
// dist/components/bk-checkbox.js
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import {
|
|
2
|
+
import { i, r as a, t as o } from "./chunks/define-6OfuRn5c.js";
|
|
3
3
|
import { t as s } from "./chunks/events-DQ4e9cPN.js";
|
|
4
|
-
import { t as c } from "./chunks/form-control-
|
|
4
|
+
import { t as c } from "./chunks/form-control-Bmk0SRDX.js";
|
|
5
5
|
import { t as l } from "./chunks/i18n-DFfGgd3d.js";
|
|
6
6
|
import { t as u } from "./chunks/styles-CaeyhYDA.js";
|
|
7
7
|
import { BkChip as d } from "./bk-chip.js";
|
|
@@ -32,7 +32,7 @@ var p = class extends c {
|
|
|
32
32
|
active = null;
|
|
33
33
|
removedAt = -1;
|
|
34
34
|
i18n = new l(this);
|
|
35
|
-
observer =
|
|
35
|
+
observer = i(() => this.onChildren());
|
|
36
36
|
constructor() {
|
|
37
37
|
super(), this.label = "", this.max = 0, this.expanded = !1, this.addEventListener("keydown", this.onKeydown), this.addEventListener("click", this.onClick), this.addEventListener("focusin", this.onFocusIn);
|
|
38
38
|
}
|
|
@@ -135,7 +135,7 @@ var p = class extends c {
|
|
|
135
135
|
t.role = this.selection === "single" ? "listbox" : this.selection === "multiple" ? "toolbar" : "list", t.ariaLabel = this.label || this.forwardedName || null, t.ariaDisabled = this.isDisabled ? "true" : null, t.ariaRequired = this.selection && this.required ? "true" : null, t.ariaInvalid = this.selection && this.invalid ? "true" : null, this.applyMax();
|
|
136
136
|
}
|
|
137
137
|
applyMax() {
|
|
138
|
-
if (!
|
|
138
|
+
if (!a(this)) return;
|
|
139
139
|
let e = this.chips, t = Math.max(0, Math.floor(Number(this.max) || 0));
|
|
140
140
|
this.toggleable = t > 0 && e.length > t + 1, this.toggleable || (this.expanded = !1), this.hiddenCount = this.toggleable && !this.expanded ? e.length - t : 0, e.forEach((e, n) => e.toggleAttribute("data-bk-collapsed", this.hiddenCount > 0 && n >= t));
|
|
141
141
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import {
|
|
2
|
+
import { r as i, t as a } from "./chunks/define-6OfuRn5c.js";
|
|
3
3
|
import { t as o } from "./chunks/link--YWr8exL.js";
|
|
4
4
|
import { t as s } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
5
|
import { n as c, t as l } from "./chunks/events-DQ4e9cPN.js";
|
|
6
6
|
import { t as u } from "./chunks/clipboard-RqIeP9Uz.js";
|
|
7
7
|
import { t as d } from "./chunks/if-defined-z_20pBRr.js";
|
|
8
8
|
import { _ as f, g as p, l as m, t as h, x as g } from "./chunks/styles-CaeyhYDA.js";
|
|
9
|
-
import "./chunks/bk-icon-
|
|
9
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
10
10
|
import { t as _ } from "./chunks/slots-BHTtBbPo.js";
|
|
11
11
|
import "./chunks/check-BkWcIJJJ.js";
|
|
12
12
|
import "./chunks/close-CcDDKPf9.js";
|
|
@@ -116,6 +116,7 @@ var v = class extends n {
|
|
|
116
116
|
border-radius: var(--bk-chip-radius, var(--bk-radius-chip, var(--bk-radius-sm))); border: var(--bk-border-width) solid var(--bk-chip-border, transparent);
|
|
117
117
|
background: var(--_bk-chip-bg); color: var(--_bk-chip-fg);
|
|
118
118
|
font-size: var(--bk-chip-font-size, var(--_bk-chip-fs)); font-weight: var(--bk-chip-font-weight, var(--bk-control-weight, var(--bk-weight-medium)));
|
|
119
|
+
text-transform: var(--bk-chip-transform, none); letter-spacing: var(--bk-chip-tracking, 0em);
|
|
119
120
|
line-height: 1; white-space: nowrap;
|
|
120
121
|
}
|
|
121
122
|
:host([variant="solid"]) .chip { background: var(--_bk-chip-fill, var(--_bk-chip-solid)); color: var(--_bk-chip-on); }
|
|
@@ -153,7 +154,8 @@ var v = class extends n {
|
|
|
153
154
|
.remove { z-index: 1; }
|
|
154
155
|
@media (forced-colors: active) { .chip:has(.link:focus-visible) { outline-color: Highlight; } }
|
|
155
156
|
/* The clip of the ellipsis reaches past the line box (line-height 1), so ascenders and descenders (g, y, É) stay whole. */
|
|
156
|
-
|
|
157
|
+
/* Letter spacing also follows the last letter: the label gives it back, so the text stays centred. */
|
|
158
|
+
.label { overflow: hidden; text-overflow: ellipsis; padding-block: 0.25em; margin-block: -0.25em; margin-inline-end: calc(-1 * var(--bk-chip-tracking, 0em)); }
|
|
157
159
|
.dot { width: var(--bk-chip-dot-size, var(--bk-space-1-5)); height: var(--bk-chip-dot-size, var(--bk-space-1-5)); border-radius: 50%; background: currentColor; flex: none; }
|
|
158
160
|
bk-icon, ::slotted(bk-icon) { --bk-icon-size: 1.15em; }
|
|
159
161
|
.remove {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/i18n-DFfGgd3d.js";
|
|
3
|
-
import { t as a } from "./chunks/define-
|
|
3
|
+
import { t as a } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { i as o } from "./chunks/events-DQ4e9cPN.js";
|
|
5
5
|
import { t as s, v as c, x as l } from "./chunks/styles-CaeyhYDA.js";
|
|
6
|
-
import "./chunks/bk-icon-
|
|
6
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
7
7
|
import "./chunks/add-CUFUzxGc.js";
|
|
8
8
|
import "./chunks/chevron-down-CpVEjEyi.js";
|
|
9
9
|
import "./chunks/delete-5M9MAG9b.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/i18n-DFfGgd3d.js";
|
|
3
3
|
import { t as a } from "./chunks/clipboard-RqIeP9Uz.js";
|
|
4
|
-
import { t as o } from "./chunks/define-
|
|
4
|
+
import { t as o } from "./chunks/define-6OfuRn5c.js";
|
|
5
5
|
import { t as s, x as c } from "./chunks/styles-CaeyhYDA.js";
|
|
6
6
|
import "./bk-button.js";
|
|
7
7
|
import "./bk-disclosure.js";
|
|
@@ -2,7 +2,7 @@ import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
|
2
2
|
import { t as i } from "./chunks/style-map-BMvn17E7.js";
|
|
3
3
|
import { t as a } from "./chunks/i18n-DFfGgd3d.js";
|
|
4
4
|
import { t as o } from "./chunks/clipboard-RqIeP9Uz.js";
|
|
5
|
-
import {
|
|
5
|
+
import { i as s, t as c } from "./chunks/define-6OfuRn5c.js";
|
|
6
6
|
import { n as l } from "./chunks/events-DQ4e9cPN.js";
|
|
7
7
|
import { t as u } from "./chunks/slots-BHTtBbPo.js";
|
|
8
8
|
import { t as d, x as f } from "./chunks/styles-CaeyhYDA.js";
|
|
@@ -3,12 +3,12 @@ import { t as i } from "./chunks/style-map-BMvn17E7.js";
|
|
|
3
3
|
import { t as a } from "./chunks/live-CgLyfc6z.js";
|
|
4
4
|
import { t as o } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
5
|
import { a as s, i as c } from "./chunks/oklch-BR-mTnMz.js";
|
|
6
|
-
import { t as l } from "./chunks/define-
|
|
6
|
+
import { t as l } from "./chunks/define-6OfuRn5c.js";
|
|
7
7
|
import { t as u } from "./chunks/events-DQ4e9cPN.js";
|
|
8
8
|
import { t as d } from "./chunks/slider-jp3d-Ld-.js";
|
|
9
9
|
import { t as f, v as p } from "./chunks/styles-CaeyhYDA.js";
|
|
10
10
|
import "./bk-button.js";
|
|
11
|
-
import "./chunks/bk-input-text-
|
|
11
|
+
import "./chunks/bk-input-text-2n89GDIT.js";
|
|
12
12
|
import "./bk-input-slider.js";
|
|
13
13
|
import "./bk-segmented.js";
|
|
14
14
|
import "./bk-segmented-item.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a, i as o, t as s } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { t as c } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
5
|
import { t as l } from "./chunks/slots-BHTtBbPo.js";
|
|
6
6
|
import { n as u } from "./chunks/state-XYmTmnOw.js";
|