@bk2k/ui 0.6.7 → 0.7.0
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 +88 -2
- package/CHANGELOG.md +193 -0
- package/USAGE.md +102 -33
- package/custom-elements.json +1 -1
- package/dist/charts/chart-tokens.js +1 -1
- package/dist/charts/fields.d.ts +20 -0
- package/dist/charts/fields.js +27 -0
- package/dist/charts/frame.d.ts +2 -0
- package/dist/charts/frame.js +4 -2
- package/dist/clipboard.js +1 -0
- package/dist/components/bk-alert.js +2 -1
- package/dist/components/bk-avatar-group.js +4 -6
- package/dist/components/bk-avatar.d.ts +10 -0
- package/dist/components/bk-avatar.js +17 -0
- package/dist/components/bk-bar.js +2 -0
- package/dist/components/bk-button-group.js +1 -1
- package/dist/components/bk-button-top.js +2 -1
- package/dist/components/bk-button.d.ts +55 -17
- package/dist/components/bk-button.js +71 -24
- package/dist/components/bk-card.d.ts +4 -0
- package/dist/components/bk-card.js +15 -2
- package/dist/components/bk-carousel-controls.d.ts +2 -0
- package/dist/components/bk-carousel-controls.js +4 -2
- package/dist/components/bk-chart-area.d.ts +6 -0
- package/dist/components/bk-chart-bar.d.ts +63 -9
- package/dist/components/bk-chart-bar.js +152 -41
- package/dist/components/bk-chart-line.d.ts +13 -0
- package/dist/components/bk-chart-line.js +11 -1
- package/dist/components/bk-chip-group.d.ts +2 -2
- package/dist/components/bk-chip-group.js +4 -0
- package/dist/components/bk-chip.d.ts +53 -8
- package/dist/components/bk-chip.js +43 -7
- package/dist/components/bk-code.js +6 -2
- package/dist/components/bk-columns.d.ts +11 -0
- package/dist/components/bk-columns.js +8 -1
- package/dist/components/bk-combobox.d.ts +30 -6
- package/dist/components/bk-combobox.js +63 -20
- package/dist/components/bk-delta.d.ts +10 -0
- package/dist/components/bk-delta.js +8 -6
- package/dist/components/bk-dialog.d.ts +16 -6
- package/dist/components/bk-dialog.js +20 -8
- package/dist/components/bk-disclosure.js +4 -2
- package/dist/components/bk-drop-target.d.ts +7 -1
- package/dist/components/bk-drop-target.js +20 -4
- package/dist/components/bk-error-summary.d.ts +5 -0
- package/dist/components/bk-error-summary.js +13 -4
- package/dist/components/bk-facts-item.js +8 -6
- package/dist/components/bk-facts.d.ts +6 -4
- package/dist/components/bk-facts.js +22 -10
- package/dist/components/bk-footnote.d.ts +73 -0
- package/dist/components/bk-footnote.js +97 -0
- package/dist/components/bk-footnotes-item.d.ts +92 -0
- package/dist/components/bk-footnotes-item.js +139 -0
- package/dist/components/bk-footnotes.d.ts +51 -0
- package/dist/components/bk-footnotes.js +43 -0
- package/dist/components/bk-icon.js +2 -2
- package/dist/components/bk-image-compare.d.ts +33 -5
- package/dist/components/bk-image-compare.js +72 -24
- package/dist/components/bk-image-crop.d.ts +3 -3
- package/dist/components/bk-image-editor.d.ts +1 -1
- package/dist/components/bk-image-viewer.d.ts +107 -11
- package/dist/components/bk-image-viewer.js +205 -34
- package/dist/components/bk-input-inline.d.ts +15 -6
- package/dist/components/bk-input-inline.js +22 -6
- package/dist/components/bk-input-number.js +2 -1
- package/dist/components/bk-input-search.d.ts +1 -1
- package/dist/components/bk-input-search.js +2 -1
- package/dist/components/bk-input-text.d.ts +11 -0
- package/dist/components/bk-input-text.js +17 -3
- package/dist/components/bk-input-time-zone.d.ts +3 -0
- package/dist/components/bk-input-time.js +2 -1
- package/dist/components/bk-item.js +2 -1
- package/dist/components/bk-lightbox.d.ts +12 -3
- package/dist/components/bk-lightbox.js +6 -3
- package/dist/components/bk-link.d.ts +9 -1
- package/dist/components/bk-link.js +14 -4
- package/dist/components/bk-menu-item.d.ts +40 -0
- package/dist/components/bk-menu-item.js +57 -9
- package/dist/components/bk-menu-label.js +2 -1
- package/dist/components/bk-menu-list.d.ts +1 -0
- package/dist/components/bk-menu-list.js +10 -0
- package/dist/components/bk-menu.d.ts +8 -1
- package/dist/components/bk-menu.js +16 -5
- package/dist/components/bk-message-feedback.d.ts +4 -3
- package/dist/components/bk-message-feedback.js +7 -5
- package/dist/components/bk-message-list.js +2 -1
- package/dist/components/bk-message-source.d.ts +1 -2
- package/dist/components/bk-message-source.js +3 -11
- package/dist/components/bk-message.js +2 -0
- package/dist/components/bk-model-viewer.d.ts +12 -1
- package/dist/components/bk-model-viewer.js +15 -2
- package/dist/components/bk-nav-group.js +1 -1
- package/dist/components/bk-nav-item.d.ts +18 -0
- package/dist/components/bk-nav-item.js +18 -5
- package/dist/components/bk-nav.d.ts +1 -1
- package/dist/components/bk-page-cta.js +2 -0
- package/dist/components/bk-page-section.d.ts +1 -1
- package/dist/components/bk-page-section.js +3 -9
- package/dist/components/bk-pane.d.ts +1 -0
- package/dist/components/bk-pane.js +7 -5
- package/dist/components/bk-panel.d.ts +1 -1
- package/dist/components/bk-panel.js +6 -5
- package/dist/components/bk-period-nav.d.ts +102 -0
- package/dist/components/bk-period-nav.js +69 -0
- package/dist/components/bk-picture.d.ts +17 -4
- package/dist/components/bk-picture.js +8 -1
- package/dist/components/bk-segmented-item.d.ts +24 -4
- package/dist/components/bk-segmented-item.js +37 -5
- package/dist/components/bk-segmented.js +2 -13
- package/dist/components/bk-select-cascade.d.ts +1 -1
- package/dist/components/bk-select-tree.d.ts +1 -1
- package/dist/components/bk-select.d.ts +1 -1
- package/dist/components/bk-select.js +2 -1
- package/dist/components/bk-shell-app.d.ts +13 -6
- package/dist/components/bk-shell-app.js +47 -11
- package/dist/components/bk-shell-sites.d.ts +2 -1
- package/dist/components/bk-shell-sites.js +3 -5
- package/dist/components/bk-sortable.d.ts +3 -0
- package/dist/components/bk-sortable.js +10 -17
- package/dist/components/bk-split-grid.d.ts +104 -3
- package/dist/components/bk-split-grid.js +425 -2
- package/dist/components/bk-split.d.ts +3 -0
- package/dist/components/bk-split.js +3 -0
- package/dist/components/bk-stat-group.js +2 -1
- package/dist/components/bk-stat.d.ts +17 -0
- package/dist/components/bk-stat.js +7 -3
- package/dist/components/bk-steps.js +2 -1
- package/dist/components/bk-surface.d.ts +2 -0
- package/dist/components/bk-surface.js +6 -3
- package/dist/components/bk-table.d.ts +17 -13
- package/dist/components/bk-table.js +94 -15
- package/dist/components/bk-tabs-item.d.ts +45 -7
- package/dist/components/bk-tabs-item.js +51 -20
- package/dist/components/bk-tabs-panel.d.ts +6 -3
- package/dist/components/bk-tabs-panel.js +6 -0
- package/dist/components/bk-tabs.d.ts +50 -7
- package/dist/components/bk-tabs.js +168 -96
- package/dist/components/bk-text.js +2 -1
- package/dist/components/bk-toast-group.d.ts +3 -1
- package/dist/components/bk-toast-group.js +11 -1
- package/dist/components/bk-tooltip.d.ts +3 -1
- package/dist/components/bk-tooltip.js +2 -1
- package/dist/components/bk-video.js +2 -2
- package/dist/components/bk-zoom.d.ts +3 -1
- package/dist/components/confirm.d.ts +15 -0
- package/dist/components/confirm.js +27 -4
- package/dist/i18n/de.js +19 -1
- package/dist/i18n/en.d.ts +2 -0
- package/dist/i18n/en.js +3 -0
- package/dist/i18n.d.ts +23 -2
- package/dist/i18n.js +35 -4
- package/dist/icons/brands-static.d.ts +3 -0
- package/dist/icons/brands-static.js +5 -0
- package/dist/icons/core.d.ts +1 -0
- package/dist/icons/core.js +2 -0
- package/dist/icons/load-static.d.ts +3 -0
- package/dist/icons/load-static.js +5 -0
- package/dist/icons/load.js +1 -0
- package/dist/icons/registry.js +1 -1
- package/dist/icons/set/save-as.d.ts +3 -0
- package/dist/icons/set/save-as.js +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/internal/announcer.d.ts +8 -1
- package/dist/internal/announcer.js +26 -10
- package/dist/internal/backdrop.d.ts +19 -0
- package/dist/internal/backdrop.js +29 -0
- package/dist/internal/busy.d.ts +3 -2
- package/dist/internal/busy.js +4 -5
- package/dist/internal/choice-field.js +1 -1
- package/dist/internal/choice-item.d.ts +17 -6
- package/dist/internal/choice-item.js +20 -9
- package/dist/internal/cloak.d.ts +3 -0
- package/dist/internal/cloak.js +7 -0
- package/dist/internal/crop-frame.d.ts +1 -1
- package/dist/internal/crop-frame.js +2 -7
- package/dist/internal/date-field.js +2 -1
- package/dist/internal/drag.d.ts +11 -0
- package/dist/internal/drag.js +23 -0
- package/dist/internal/english-static.d.ts +3 -0
- package/dist/internal/english-static.js +5 -0
- package/dist/internal/english.d.ts +8 -0
- package/dist/internal/english.js +6 -0
- package/dist/internal/footnotes.d.ts +56 -0
- package/dist/internal/footnotes.js +143 -0
- package/dist/internal/handle-menu.d.ts +2 -3
- package/dist/internal/handle-menu.js +11 -3
- package/dist/internal/late/bk-shell-app.d.ts +4 -0
- package/dist/internal/late/bk-shell-app.js +7 -0
- package/dist/internal/late/bk-table.d.ts +4 -0
- package/dist/internal/late/bk-table.js +17 -0
- package/dist/internal/late/handle-menu.d.ts +4 -0
- package/dist/internal/late/handle-menu.js +9 -0
- package/dist/internal/late/static.d.ts +7 -0
- package/dist/internal/late/static.js +5 -0
- package/dist/internal/late.d.ts +20 -0
- package/dist/internal/late.js +45 -0
- package/dist/internal/link.d.ts +2 -0
- package/dist/internal/link.js +11 -1
- package/dist/internal/own-text.d.ts +8 -0
- package/dist/internal/own-text.js +7 -0
- package/dist/internal/scope.js +1 -1
- package/dist/internal/scroll-lock.d.ts +4 -1
- package/dist/internal/scroll-lock.js +17 -4
- package/dist/internal/slider.js +2 -1
- package/dist/internal/styles.js +3 -0
- package/dist/internal/submit.d.ts +23 -0
- package/dist/internal/submit.js +57 -0
- package/dist/jsx.d.ts +176 -56
- package/dist/reset.css +10 -0
- package/dist/standalone/all.js +226 -221
- package/dist/standalone/appearance.js +1 -1
- package/dist/standalone/bk-accordion-item.js +4 -4
- package/dist/standalone/bk-accordion.js +2 -2
- package/dist/standalone/bk-action-bar.js +3 -3
- package/dist/standalone/bk-alert-offline.js +1 -2
- package/dist/standalone/bk-alert.js +13 -12
- package/dist/standalone/bk-app-state.js +1 -1
- package/dist/standalone/bk-attachment.js +4 -4
- package/dist/standalone/bk-avatar-group.js +12 -10
- package/dist/standalone/bk-avatar.js +14 -4
- package/dist/standalone/bk-badge.js +2 -2
- package/dist/standalone/bk-bar.js +3 -1
- package/dist/standalone/bk-brand.js +3 -3
- package/dist/standalone/bk-breadcrumbs.js +5 -5
- package/dist/standalone/bk-button-copy.js +5 -5
- package/dist/standalone/bk-button-group.js +5 -5
- package/dist/standalone/bk-button-share.js +5 -5
- package/dist/standalone/bk-button-top.js +9 -8
- package/dist/standalone/bk-button.js +74 -34
- package/dist/standalone/bk-calendar-event.js +1 -1
- package/dist/standalone/bk-calendar-week.js +3 -3
- package/dist/standalone/bk-calendar.js +4 -4
- package/dist/standalone/bk-card.js +20 -7
- package/dist/standalone/bk-carousel-controls.js +7 -6
- package/dist/standalone/bk-carousel-item.js +2 -2
- 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 +8 -8
- package/dist/standalone/bk-chart-bar.js +253 -166
- package/dist/standalone/bk-chart-bridge.js +7 -7
- package/dist/standalone/bk-chart-bullet.js +6 -6
- package/dist/standalone/bk-chart-calendar.js +7 -7
- package/dist/standalone/bk-chart-heatmap.js +7 -7
- package/dist/standalone/bk-chart-histogram.js +5 -5
- package/dist/standalone/bk-chart-legend.js +6 -6
- package/dist/standalone/bk-chart-line.js +116 -103
- package/dist/standalone/bk-chart-mark.js +1 -1
- package/dist/standalone/bk-chart-scatter.js +6 -6
- package/dist/standalone/bk-chart-sparkline.js +6 -6
- package/dist/standalone/bk-chart-stacked-bar.js +7 -7
- package/dist/standalone/bk-chart-tracker.js +6 -6
- package/dist/standalone/bk-chart-waterfall.js +6 -6
- package/dist/standalone/bk-checkbox-group.js +4 -4
- package/dist/standalone/bk-checkbox.js +4 -4
- package/dist/standalone/bk-chip-group.js +9 -5
- package/dist/standalone/bk-chip.js +56 -17
- package/dist/standalone/bk-cluster.js +1 -1
- package/dist/standalone/bk-code-diff.js +4 -4
- package/dist/standalone/bk-code-stack.js +4 -4
- package/dist/standalone/bk-code.js +10 -6
- package/dist/standalone/bk-color-panel.js +5 -5
- package/dist/standalone/bk-columns.js +13 -5
- package/dist/standalone/bk-combobox.js +53 -33
- package/dist/standalone/bk-command-menu.js +6 -6
- package/dist/standalone/bk-command-palette.js +6 -5
- package/dist/standalone/bk-composer.js +6 -6
- package/dist/standalone/bk-delta.js +11 -10
- package/dist/standalone/bk-diagram.js +1 -1
- package/dist/standalone/bk-dialog.js +1 -1
- package/dist/standalone/bk-disclosure.js +7 -5
- package/dist/standalone/bk-divider.js +2 -2
- package/dist/standalone/bk-drawer.js +3 -3
- package/dist/standalone/bk-drop-target.js +12 -6
- package/dist/standalone/bk-empty-state.js +3 -3
- package/dist/standalone/bk-error-summary.js +9 -6
- package/dist/standalone/bk-facts-item.js +10 -8
- package/dist/standalone/bk-facts.js +28 -16
- package/dist/standalone/bk-feature.js +3 -3
- package/dist/standalone/bk-fieldset.js +3 -3
- package/dist/standalone/bk-filter-bar.js +4 -4
- package/dist/standalone/bk-folder-browser.js +4 -4
- package/dist/standalone/bk-footnote.js +82 -0
- package/dist/standalone/bk-footnotes-item.js +122 -0
- package/dist/standalone/bk-footnotes.js +37 -0
- package/dist/standalone/bk-form-guard.js +2 -2
- package/dist/standalone/bk-form-steps.js +3 -3
- package/dist/standalone/bk-grid.js +1 -1
- package/dist/standalone/bk-icon-tile.js +3 -3
- package/dist/standalone/bk-icon.js +1 -1
- package/dist/standalone/bk-image-compare.js +88 -47
- package/dist/standalone/bk-image-crop.js +6 -6
- package/dist/standalone/bk-image-editor.js +2 -1
- package/dist/standalone/bk-image-viewer.js +180 -59
- package/dist/standalone/bk-input-code.js +4 -4
- package/dist/standalone/bk-input-color.js +4 -4
- 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 +5 -5
- package/dist/standalone/bk-input-group.js +4 -4
- package/dist/standalone/bk-input-inline.js +17 -10
- package/dist/standalone/bk-input-number.js +9 -8
- package/dist/standalone/bk-input-rating.js +6 -6
- package/dist/standalone/bk-input-rich.js +1 -1
- package/dist/standalone/bk-input-search.js +23 -22
- package/dist/standalone/bk-input-slider-range.js +5 -5
- package/dist/standalone/bk-input-slider.js +5 -5
- 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 +29 -28
- package/dist/standalone/bk-item-group.js +3 -3
- package/dist/standalone/bk-item.js +12 -11
- package/dist/standalone/bk-kbd-shortcuts.js +4 -3
- package/dist/standalone/bk-kbd.js +68 -1
- package/dist/standalone/bk-lightbox.js +11 -7
- package/dist/standalone/bk-lines.js +1 -1
- package/dist/standalone/bk-link.js +33 -19
- 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 +7 -7
- package/dist/standalone/bk-listbox-transfer.js +6 -6
- package/dist/standalone/bk-listbox.js +7 -7
- package/dist/standalone/bk-logo-wall.js +2 -2
- package/dist/standalone/bk-logo.js +3 -3
- package/dist/standalone/bk-menu-bar.js +3 -3
- package/dist/standalone/bk-menu-context.js +1 -1
- package/dist/standalone/bk-menu-divider.js +2 -2
- package/dist/standalone/bk-menu-item.js +73 -29
- package/dist/standalone/bk-menu-label.js +7 -6
- package/dist/standalone/bk-menu-list.js +10 -4
- package/dist/standalone/bk-menu.js +19 -10
- package/dist/standalone/bk-message-approval.js +4 -4
- package/dist/standalone/bk-message-branches.js +3 -3
- package/dist/standalone/bk-message-citation.js +10 -10
- package/dist/standalone/bk-message-feedback.js +10 -6
- package/dist/standalone/bk-message-list.js +6 -5
- package/dist/standalone/bk-message-reasoning.js +5 -5
- package/dist/standalone/bk-message-source.js +13 -21
- package/dist/standalone/bk-message-tool-group.js +5 -5
- package/dist/standalone/bk-message-tool.js +5 -5
- package/dist/standalone/bk-message.js +6 -4
- package/dist/standalone/bk-meter.js +3 -3
- package/dist/standalone/bk-model-viewer.js +1 -1
- package/dist/standalone/bk-nav-divider.js +2 -2
- package/dist/standalone/bk-nav-group.js +6 -6
- package/dist/standalone/bk-nav-item.js +31 -23
- package/dist/standalone/bk-nav-toc.js +3 -3
- package/dist/standalone/bk-nav.js +3 -3
- package/dist/standalone/bk-overflow.js +3 -3
- package/dist/standalone/bk-page-cta.js +5 -3
- package/dist/standalone/bk-page-footer-column.js +2 -2
- package/dist/standalone/bk-page-footer.js +3 -3
- package/dist/standalone/bk-page-header.js +3 -3
- package/dist/standalone/bk-page-hero.js +3 -3
- package/dist/standalone/bk-page-pager.js +5 -5
- package/dist/standalone/bk-page-section.js +6 -6
- package/dist/standalone/bk-pagination.js +6 -6
- package/dist/standalone/bk-pane.js +10 -9
- package/dist/standalone/bk-panel.js +9 -10
- package/dist/standalone/bk-period-nav.js +69 -0
- package/dist/standalone/bk-picture.js +24 -15
- package/dist/standalone/bk-popover-help.js +3 -3
- package/dist/standalone/bk-popover.js +2 -2
- package/dist/standalone/bk-presence-cursor.js +2 -2
- package/dist/standalone/bk-preview.js +4 -4
- package/dist/standalone/bk-progress.js +3 -3
- package/dist/standalone/bk-prose.js +3 -3
- package/dist/standalone/bk-qr-code.js +1 -1
- package/dist/standalone/bk-radio-group.js +4 -4
- package/dist/standalone/bk-radio.js +3 -3
- package/dist/standalone/bk-rating.js +5 -5
- package/dist/standalone/bk-scroll.js +3 -3
- package/dist/standalone/bk-segmented-item.js +40 -16
- package/dist/standalone/bk-segmented.js +15 -13
- package/dist/standalone/bk-select-cascade.js +3 -3
- package/dist/standalone/bk-select-tree.js +4 -4
- package/dist/standalone/bk-select.js +7 -6
- package/dist/standalone/bk-shell-app.js +1 -1217
- package/dist/standalone/bk-shell-centered.js +2 -2
- package/dist/standalone/bk-shell-sites.js +5 -7
- package/dist/standalone/bk-skeleton.js +2 -2
- package/dist/standalone/bk-sortable.js +58 -60
- package/dist/standalone/bk-spinner.js +2 -2
- package/dist/standalone/bk-split-grid.js +318 -41
- package/dist/standalone/bk-split.js +9 -6
- package/dist/standalone/bk-stack.js +1 -1
- package/dist/standalone/bk-stat-group.js +8 -7
- package/dist/standalone/bk-stat.js +11 -8
- package/dist/standalone/bk-status-dot.js +3 -3
- package/dist/standalone/bk-steps-item.js +5 -5
- package/dist/standalone/bk-steps.js +8 -7
- package/dist/standalone/bk-surface.js +1 -1
- package/dist/standalone/bk-swatch-group.js +4 -4
- package/dist/standalone/bk-swatch-palette.js +1 -1
- package/dist/standalone/bk-swatch.js +2 -2
- package/dist/standalone/bk-switch.js +4 -4
- package/dist/standalone/bk-table.js +1 -1887
- package/dist/standalone/bk-tabs-item.js +58 -35
- package/dist/standalone/bk-tabs-panel.js +7 -3
- package/dist/standalone/bk-tabs.js +160 -98
- package/dist/standalone/bk-tasks-item.js +4 -4
- package/dist/standalone/bk-tasks.js +2 -2
- package/dist/standalone/bk-testimonial.js +3 -3
- package/dist/standalone/bk-text.js +19 -18
- package/dist/standalone/bk-time-countdown.js +4 -4
- package/dist/standalone/bk-time-relative.js +3 -3
- package/dist/standalone/bk-timeline-item.js +4 -4
- package/dist/standalone/bk-timeline.js +2 -2
- package/dist/standalone/bk-toast-group.js +1 -1
- package/dist/standalone/bk-toast.js +4 -4
- package/dist/standalone/bk-toolbar.js +2 -2
- package/dist/standalone/bk-tooltip.js +8 -7
- package/dist/standalone/bk-tree-item.js +6 -6
- package/dist/standalone/bk-tree.js +3 -3
- package/dist/standalone/bk-video.js +6 -6
- package/dist/standalone/bk-visually-hidden.js +2 -2
- package/dist/standalone/bk-zoom.js +5 -5
- package/dist/standalone/chunks/announcer-D1zrRWwO.js +36 -0
- package/dist/standalone/chunks/{appearance-waHnV0kk.js → appearance-CBOJXbmC.js} +1 -1
- package/dist/standalone/chunks/{bk-alert-offline-BoMEYxnE.js → bk-alert-offline-Clw0ZSsH.js} +3 -3
- package/dist/standalone/chunks/{bk-carousel-B7-9OanA.js → bk-carousel-Biz7t8sL.js} +4 -4
- package/dist/standalone/chunks/{bk-diagram-CpOpicmo.js → bk-diagram-D_fQf6SF.js} +5 -5
- package/dist/standalone/chunks/{bk-dialog-a2BtUBf2.js → bk-dialog-DwZyUUHh.js} +65 -27
- package/dist/standalone/chunks/{bk-icon-DssFsNuB.js → bk-icon-Bp_flKdv.js} +4 -3
- package/dist/standalone/chunks/{bk-image-editor-z_Uj83fy.js → bk-image-editor-BADsoLRL.js} +5 -5
- package/dist/standalone/chunks/{bk-input-date-range-BQkbPlSJ.js → bk-input-date-range-DHcJ8-5g.js} +2 -2
- package/dist/standalone/chunks/{bk-input-rich-Dte_b4Ev.js → bk-input-rich-CFhW6vRa.js} +6 -6
- package/dist/standalone/chunks/{bk-input-text-CUNQG1ah.js → bk-input-text-DviyLBqj.js} +63 -54
- package/dist/standalone/chunks/{bk-model-viewer-D1XJPgAG.js → bk-model-viewer-w_Ah4Tvs.js} +22 -8
- package/dist/standalone/chunks/{bk-qr-code-CbI9rdOK.js → bk-qr-code-CYMovNVl.js} +3 -3
- package/dist/standalone/chunks/bk-shell-app-B2lxHit8.js +1235 -0
- package/dist/standalone/chunks/{bk-surface-DkIhrWMt.js → bk-surface-D7e0tErs.js} +9 -7
- package/dist/standalone/chunks/{bk-swatch-palette-BNNXTP3w.js → bk-swatch-palette-x13JgJQi.js} +6 -6
- package/dist/standalone/chunks/bk-table-CP8n_jy7.js +1944 -0
- package/dist/standalone/chunks/{bk-toast-group-Cix-Urgi.js → bk-toast-group-CoL6W7uk.js} +27 -24
- package/dist/standalone/chunks/{brush-Bn3lPdHN.js → brush-DALmXSru.js} +18 -2
- package/dist/standalone/chunks/{busy-B7Mxemwm.js → busy-BUB22mGY.js} +5 -4
- package/dist/standalone/chunks/{chart-tokens-D1Exf7BW.js → chart-tokens-DQ4hVSmn.js} +2 -2
- package/dist/standalone/chunks/{choice-field-BnuK9mp_.js → choice-field-poOTerh1.js} +6 -6
- package/dist/standalone/chunks/{choice-item-B6-9ZRlf.js → choice-item-Cx-nm1js.js} +17 -8
- package/dist/standalone/chunks/clipboard-RqIeP9Uz.js +29 -0
- package/dist/standalone/chunks/clipboard-UVLSkL4C.js +34 -0
- package/dist/standalone/chunks/{crop-frame-poLCGrBG.js → crop-frame-Z9N0QML4.js} +1 -11
- package/dist/standalone/chunks/{date-field-BQ5k-DDL.js → date-field-B-fCXa2D.js} +48 -47
- package/dist/standalone/chunks/{define-CzVPD4Zi.js → define-DkVeu7e9.js} +1 -1
- package/dist/standalone/chunks/drag-DT4__0t9.js +12 -0
- package/dist/standalone/chunks/footnotes-BeisMxLk.js +94 -0
- package/dist/standalone/chunks/{form-control-D7dqSP9M.js → form-control-CHpfKAKa.js} +2 -2
- package/dist/standalone/chunks/{frame-BW1nKuoM.js → frame-xIMVEUCi.js} +7 -4
- package/dist/standalone/chunks/handle-menu-BgYUbGO2.js +56 -0
- package/dist/standalone/chunks/{heading-text-CV5gBf7k.js → heading-text-CgnCa_q2.js} +1 -1
- package/dist/standalone/chunks/{i18n-CNsBRNPu.js → i18n-DFfGgd3d.js} +56 -34
- package/dist/standalone/chunks/{i18n-CrZgrRu9.js → i18n-DQAcbHkY.js} +1 -1
- package/dist/standalone/chunks/link--YWr8exL.js +69 -0
- package/dist/standalone/chunks/{marks-CdqbbJpM.js → marks-pOUDNUf1.js} +2 -2
- package/dist/standalone/chunks/{options-DMEc8rQt.js → options-BdC8-KKM.js} +2 -2
- package/dist/standalone/chunks/own-text-mpZVnMyX.js +5 -0
- package/dist/standalone/chunks/{palettes-CKLHSIPx.js → palettes-J4bQ21ks.js} +2 -2
- package/dist/standalone/chunks/{popover-base-oDhxsYMr.js → popover-base-hxo-Vh6E.js} +2 -2
- package/dist/standalone/chunks/{prose-BG4oQH-i.js → prose-BiuJgiah.js} +1 -1
- package/dist/standalone/chunks/{ramp-EclrETaQ.js → ramp-CGDOcqBZ.js} +1 -1
- package/dist/standalone/chunks/save-as-DBGZjczB.js +6 -0
- package/dist/standalone/chunks/shortcuts-DPxCSO4M.js +210 -0
- package/dist/standalone/chunks/{slider-BWT8Fmwz.js → slider-jp3d-Ld-.js} +15 -14
- package/dist/standalone/chunks/{stars-BN9M_9Q1.js → stars-BgKEjDQx.js} +1 -1
- package/dist/standalone/chunks/{styles-DwSR-9a3.js → styles-CaeyhYDA.js} +3 -0
- package/dist/standalone/chunks/submit-BjBGB8OW.js +42 -0
- package/dist/standalone/chunks/{summary-BwL-Gp8w.js → summary-W5s0TFqV.js} +1 -1
- package/dist/standalone/chunks/{text-field-CTp2b-Ai.js → text-field-CqhJSAwZ.js} +4 -4
- package/dist/standalone/chunks/{toggle-control-DXkgmz7R.js → toggle-control-lvZbQtGW.js} +2 -2
- package/dist/standalone/chunks/{tokens-BuahF1lF.js → tokens-C_ul7pL9.js} +4 -3
- package/dist/standalone/chunks/{virtual-B-1oN14Y.js → virtual-C_h6sHnm.js} +1 -1
- package/dist/standalone/confirm.js +27 -14
- package/dist/standalone/i18n-de.js +20 -2
- package/dist/standalone/icons.js +100 -98
- package/dist/standalone/links.js +1 -1
- package/dist/standalone/reset.css +10 -0
- package/dist/standalone/toast.js +1 -1
- package/dist/standalone/tokens.css +9 -5
- package/dist/tokens.css +9 -5
- package/dist/tokens.js +4 -3
- package/package.json +25 -2
- package/dist/standalone/chunks/announcer-haFcvqbe.js +0 -25
- package/dist/standalone/chunks/bk-kbd-B7bz8hmV.js +0 -275
- package/dist/standalone/chunks/clipboard-DBGdJ-1S.js +0 -61
- package/dist/standalone/chunks/handle-menu-DsxWvv4D.js +0 -22
- package/dist/standalone/chunks/link-CWSMsx04.js +0 -60
|
@@ -89,6 +89,9 @@ export type { NavigateDetail } from "../internal/link.js";
|
|
|
89
89
|
* @cssprop --bk-card-shadow - Shadow (default --bk-layer-raised-shadow; `elevated`: --bk-layer-overlay-shadow).
|
|
90
90
|
* @cssprop --bk-card-shadow-hover - Shadow of a card with `href` on hover (default --bk-layer-overlay-shadow).
|
|
91
91
|
* @cssprop --bk-card-border-hover - Border colour of a card with `href` on hover (default --bk-line-mid).
|
|
92
|
+
* @cssprop --bk-card-lift-hover - How far a card with `href` moves up on hover (default 0). Use whole pixels. With reduced motion it stays in place.
|
|
93
|
+
* @cssprop --bk-card-ring-hover - An image (for example a gradient) that a card with `href` shows as its ring on hover, over the border, in its
|
|
94
|
+
* radius (default none).
|
|
92
95
|
* @cssprop --bk-card-padding - Inner padding of `padding="md"`, the default (default --bk-space-5).
|
|
93
96
|
* @cssprop --bk-card-padding-sm - Inner padding of `padding="sm"` (default --bk-space-3).
|
|
94
97
|
* @cssprop --bk-card-media-ratio - Aspect ratio of the media region (default auto; `media-ratio` sets it per card).
|
|
@@ -206,6 +209,7 @@ export declare class BkCard extends LitElement {
|
|
|
206
209
|
private startSize;
|
|
207
210
|
private slots;
|
|
208
211
|
private i18n;
|
|
212
|
+
private internals;
|
|
209
213
|
private busyState;
|
|
210
214
|
private links;
|
|
211
215
|
private sizes;
|
|
@@ -30,7 +30,8 @@ class BkCard extends LitElement {
|
|
|
30
30
|
};
|
|
31
31
|
slots = new SlotController(this);
|
|
32
32
|
i18n = new LocalizeController(this);
|
|
33
|
-
|
|
33
|
+
internals = this.attachInternals();
|
|
34
|
+
busyState = new BusyController(this, this.i18n, this.internals);
|
|
34
35
|
links = new LinkController(this);
|
|
35
36
|
sizes = resizeObserver(([entry]) => {
|
|
36
37
|
const size = entry.borderBoxSize?.[0]?.inlineSize ?? 0;
|
|
@@ -80,7 +81,16 @@ class BkCard extends LitElement {
|
|
|
80
81
|
--bk-ground: var(--bk-card-bg, var(--bk-layer-raised-bg)); --bk-ground-tint: transparent;
|
|
81
82
|
border: var(--bk-card-border-width, var(--bk-border-width)) solid var(--bk-card-border, var(--bk-layer-raised-border));
|
|
82
83
|
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));
|
|
83
|
-
text-decoration: none; transition: box-shadow var(--bk-duration), border-color var(--bk-duration);
|
|
84
|
+
text-decoration: none; transition: box-shadow var(--bk-duration), border-color var(--bk-duration), translate var(--bk-duration) var(--bk-ease);
|
|
85
|
+
}
|
|
86
|
+
/* The ring of a card with href on hover: an image over the border, cut to a ring in the radius of the card. The card
|
|
87
|
+
clips its content, so the ring is on the host. */
|
|
88
|
+
:host([href]) { position: relative; }
|
|
89
|
+
:host([href])::after {
|
|
90
|
+
content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
|
|
91
|
+
padding: var(--bk-card-border-width, var(--bk-border-width)); background: var(--bk-card-ring-hover, none);
|
|
92
|
+
mask: linear-gradient(currentColor 0 0) content-box exclude, linear-gradient(currentColor 0 0);
|
|
93
|
+
opacity: 0; transition: opacity var(--bk-duration), translate var(--bk-duration) var(--bk-ease);
|
|
84
94
|
}
|
|
85
95
|
:host([variant="elevated"]) .card { border-color: transparent; box-shadow: var(--bk-card-shadow, var(--bk-layer-overlay-shadow)); }
|
|
86
96
|
: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)); }
|
|
@@ -100,7 +110,10 @@ class BkCard extends LitElement {
|
|
|
100
110
|
:host([href]) .overlay { z-index: 2; }
|
|
101
111
|
@media (hover: hover) {
|
|
102
112
|
: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)); }
|
|
113
|
+
:host([href]:hover)::after { opacity: 1; }
|
|
114
|
+
:host([href]:hover) .card, :host([href]:hover)::after { translate: 0 calc(-1 * var(--bk-card-lift-hover, 0px)); }
|
|
103
115
|
}
|
|
116
|
+
@media (prefers-reduced-motion: reduce) { :host([href]:hover) .card, :host([href]:hover)::after { translate: none; } }
|
|
104
117
|
.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)); }
|
|
105
118
|
: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)); }
|
|
106
119
|
/* Selected after hover: the choice stays visible under the pointer. */
|
|
@@ -44,6 +44,8 @@ export declare class BkCarouselControls extends LitElement {
|
|
|
44
44
|
/** Size of the buttons. */
|
|
45
45
|
size: "sm" | "md" | "lg";
|
|
46
46
|
private readonly i18n;
|
|
47
|
+
/** The state `linked`: the controls are connected to a carousel with more than one page. */
|
|
48
|
+
private readonly internals;
|
|
47
49
|
constructor();
|
|
48
50
|
static styles: import("lit").CSSResult[];
|
|
49
51
|
connectedCallback(): void;
|
|
@@ -14,13 +14,15 @@ class BkCarouselControls extends LitElement {
|
|
|
14
14
|
size: { reflect: true, useDefault: true }
|
|
15
15
|
};
|
|
16
16
|
i18n = new LocalizeController(this);
|
|
17
|
+
/** The state `linked`: the controls are connected to a carousel with more than one page. */
|
|
18
|
+
internals = this.attachInternals();
|
|
17
19
|
constructor() {
|
|
18
20
|
super();
|
|
19
21
|
this.size = "md";
|
|
20
22
|
}
|
|
21
23
|
static styles = [base, css`
|
|
22
24
|
:host { display: inline-flex; align-items: center; gap: var(--bk-carousel-controls-spacing, var(--bk-space-1)); }
|
|
23
|
-
:host(:not(
|
|
25
|
+
:host(:not(:state(linked))) { display: none; }
|
|
24
26
|
`];
|
|
25
27
|
connectedCallback() {
|
|
26
28
|
super.connectedCallback();
|
|
@@ -43,7 +45,7 @@ class BkCarouselControls extends LitElement {
|
|
|
43
45
|
if (changed.has("htmlFor") && changed.get("htmlFor") !== void 0)
|
|
44
46
|
this.link();
|
|
45
47
|
const linked = carouselOf(this);
|
|
46
|
-
|
|
48
|
+
!!linked && linked.link.state().multiple ? this.internals.states.add("linked") : this.internals.states.delete("linked");
|
|
47
49
|
}
|
|
48
50
|
updated(changed) {
|
|
49
51
|
super.updated(changed);
|
|
@@ -88,6 +88,12 @@ export declare class BkChartArea extends BkChartLine {
|
|
|
88
88
|
attribute: string;
|
|
89
89
|
type: ObjectConstructor;
|
|
90
90
|
};
|
|
91
|
+
tooltipFields: {
|
|
92
|
+
attribute: string;
|
|
93
|
+
converter: {
|
|
94
|
+
fromAttribute(value: string | null): import("../charts/fields.js").ChartField[];
|
|
95
|
+
};
|
|
96
|
+
};
|
|
91
97
|
yDirection: {
|
|
92
98
|
attribute: string;
|
|
93
99
|
reflect: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LitElement, type PropertyValues, type TemplateResult } from "lit";
|
|
2
|
+
import { type ChartField } from "../charts/fields.js";
|
|
2
3
|
import { type ChartRow, type ChartSeries } from "../charts/frame.js";
|
|
3
4
|
import "./bk-chart-legend.js";
|
|
4
5
|
import "../icons/set/grid.js";
|
|
@@ -43,12 +44,20 @@ export interface ChartBarSelectDetail {
|
|
|
43
44
|
* chart describes its data in one line for screen readers (`show-summary` shows it, `summary` replaces it).
|
|
44
45
|
*
|
|
45
46
|
* **Clickable categories.** With `href` (a template such as `?day={x}`), each category is a real `<a>` over its band
|
|
46
|
-
* and its label.
|
|
47
|
-
*
|
|
48
|
-
*
|
|
47
|
+
* and its label. The link resolver of the app resolves each address. A template of one field (`href="{url}"`) takes
|
|
48
|
+
* the address of each row as it is. With `clickable`, each category is a button that fires a cancelable `select` with
|
|
49
|
+
* `{ category, index }`. When no listener cancels the event, the category becomes `current`. `current` marks the chosen
|
|
50
|
+
* category. Its bars keep their colour, its label is bold, and a mark (--bk-chart-bar-current-mark) stands under its
|
|
51
|
+
* label. The bars of the other categories use `--bk-chart-bar-rest`.
|
|
52
|
+
*
|
|
53
|
+
* **Missing values.** A value that is null or undefined draws no bar. A short outline at the baseline shows the place
|
|
54
|
+
* of the bar. A category without any value has no link or button, and its name says "no value".
|
|
55
|
+
*
|
|
56
|
+
* **Second label.** `detail` names a field of the row (a date, for example). The chart shows its value under the
|
|
57
|
+
* category label, and the data table shows it in a column.
|
|
49
58
|
*
|
|
50
59
|
* ```html
|
|
51
|
-
* <bk-chart-bar aria-label="Views per day" x="day" href="?day={date}" current="
|
|
60
|
+
* <bk-chart-bar aria-label="Views per day" x="day" detail="date" labels href="?day={date}" current="Wed" .data=${days}></bk-chart-bar>
|
|
52
61
|
* ```
|
|
53
62
|
*
|
|
54
63
|
* This is content without a surface. Put it in a `<bk-surface>` or `<bk-card>`.
|
|
@@ -92,9 +101,13 @@ export interface ChartBarSelectDetail {
|
|
|
92
101
|
* @cssprop --bk-chart-tooltip-max-width - Maximum tooltip width (default --bk-popup-width-md).
|
|
93
102
|
* @cssprop --bk-chart-bar-rest - Colour of the bars of the categories that are not `current` (default --bk-chart-other).
|
|
94
103
|
* @cssprop --bk-chart-bar-current-label - Colour of the label of the `current` category (default --bk-text).
|
|
104
|
+
* @cssprop --bk-chart-bar-current-mark - Colour of the mark under the label of the `current` category (default --bk-accent-solid).
|
|
105
|
+
* @cssprop --bk-chart-indicator-width - Thickness of the mark under the label of the `current` category (default --bk-indicator-width).
|
|
106
|
+
* @cssprop --bk-chart-bar-detail - Colour of the second label (`detail`) under a category (default --bk-chart-label).
|
|
107
|
+
* @cssprop --bk-chart-bar-stub - Colour of the outline that marks a bar without a value (default --bk-chart-axis).
|
|
95
108
|
* @cssprop --bk-chart-category-hover - Background of the link or button of a category under the pointer (default --bk-hover).
|
|
96
109
|
* @cssprop --bk-chart-category-radius - Radius of the link or button of a category (default --bk-radius-sm).
|
|
97
|
-
* @keyboard ←, → - Move to the previous or next category (↑ and ↓ in a horizontal chart).
|
|
110
|
+
* @keyboard ←, → - Move to the previous or next category (↑ and ↓ in a horizontal chart). The chart draws from left to right in every writing direction, and the arrow keys follow the drawing. With `href` or `clickable`, the keys skip a category without a link or button.
|
|
98
111
|
* @keyboard ↑, ↓ - Move between the series of a category (← and → in a horizontal chart).
|
|
99
112
|
* @keyboard Home, End - Move to the first or last category.
|
|
100
113
|
* @keyboard Shift + ←, Shift + → - With `selectable`: extend the range.
|
|
@@ -103,7 +116,7 @@ export interface ChartBarSelectDetail {
|
|
|
103
116
|
* @keyboard Tab - With `href`: move to the link of the next category.
|
|
104
117
|
* @keyboard Enter - With `href`: follow the link. With `clickable`: choose the category.
|
|
105
118
|
* @keyboard Space - With `clickable`: choose the category.
|
|
106
|
-
* @a11y A `figure` that its heading names. The bars are one tab stop of `img` marks. With `href`, the categories are links in the tab order. The category and its values name each link, and `aria-current="page"` marks `current`. With `clickable`, they are buttons in a `toolbar` (one tab stop, arrow keys) with `aria-current="true"`.
|
|
119
|
+
* @a11y A `figure` that its heading names. The bars are one tab stop of `img` marks. With `href`, the categories are links in the tab order. The category, its second label and its values name each link, and `aria-current="page"` marks `current`. With `clickable`, they are buttons in a `toolbar` (one tab stop, arrow keys) with `aria-current="true"`. A category without a value is an `img` that is not in the tab order; its name says "no value". The mark of `current` has a contrast of at least 3:1 and uses `Highlight` in forced colours.
|
|
107
120
|
*/
|
|
108
121
|
export declare class BkChartBar extends LitElement {
|
|
109
122
|
static properties: {
|
|
@@ -117,6 +130,10 @@ export declare class BkChartBar extends LitElement {
|
|
|
117
130
|
xLabel: {
|
|
118
131
|
attribute: string;
|
|
119
132
|
};
|
|
133
|
+
detail: {};
|
|
134
|
+
detailLabel: {
|
|
135
|
+
attribute: string;
|
|
136
|
+
};
|
|
120
137
|
orientation: {
|
|
121
138
|
reflect: boolean;
|
|
122
139
|
useDefault: boolean;
|
|
@@ -188,6 +205,12 @@ export declare class BkChartBar extends LitElement {
|
|
|
188
205
|
attribute: string;
|
|
189
206
|
type: ObjectConstructor;
|
|
190
207
|
};
|
|
208
|
+
tooltipFields: {
|
|
209
|
+
attribute: string;
|
|
210
|
+
converter: {
|
|
211
|
+
fromAttribute(value: string | null): ChartField[];
|
|
212
|
+
};
|
|
213
|
+
};
|
|
191
214
|
};
|
|
192
215
|
/** Rows, one per category. */
|
|
193
216
|
data: ChartRow[];
|
|
@@ -197,6 +220,10 @@ export declare class BkChartBar extends LitElement {
|
|
|
197
220
|
x: string;
|
|
198
221
|
/** Column header of the categories in the data table (default "Category"). */
|
|
199
222
|
xLabel: string | undefined;
|
|
223
|
+
/** Field of a row that contains a second label. The chart shows it under the category label (a date, for example). */
|
|
224
|
+
detail: string | undefined;
|
|
225
|
+
/** Column header of the second label in the data table (default "Detail"). */
|
|
226
|
+
detailLabel: string | undefined;
|
|
200
227
|
/** `vertical` columns (default) or `horizontal` bars (for long or many category names). */
|
|
201
228
|
orientation: "vertical" | "horizontal";
|
|
202
229
|
/** `grouped` side by side (default), `stacked`, or `percent` (stacked to 100 %). */
|
|
@@ -218,7 +245,9 @@ export declare class BkChartBar extends LitElement {
|
|
|
218
245
|
selectable: boolean;
|
|
219
246
|
/**
|
|
220
247
|
* Makes each category a link. The template can contain `{x}` (the category) and `{<field>}` (a field of the row),
|
|
221
|
-
* for example `?day={x}`. The values are URL-encoded.
|
|
248
|
+
* for example `?day={x}`. The values are URL-encoded. A template of one field only (`{url}`) takes the value of the
|
|
249
|
+
* field as it is: each row brings its own address. A category without a value, or without a value for a field of the
|
|
250
|
+
* template, has no link. Not with `selectable`.
|
|
222
251
|
*/
|
|
223
252
|
href: string | undefined;
|
|
224
253
|
/** The `target` of the category links. */
|
|
@@ -252,6 +281,12 @@ export declare class BkChartBar extends LitElement {
|
|
|
252
281
|
variant: "default" | "minimal";
|
|
253
282
|
/** Intl.NumberFormat options for values (`{"style":"currency","currency":"EUR"}`). */
|
|
254
283
|
valueFormat: Intl.NumberFormatOptions | undefined;
|
|
284
|
+
/**
|
|
285
|
+
* Fields of the row that the tooltip, the data table and the name of each bar list without drawing them.
|
|
286
|
+
* The attribute lists the keys (`tooltip-fields="prints likes"`). The property takes keys or
|
|
287
|
+
* `{ key, label, format }` objects, where `label` names the field and `format` are `Intl.NumberFormat` options.
|
|
288
|
+
*/
|
|
289
|
+
tooltipFields: (string | ChartField)[] | undefined;
|
|
255
290
|
private i18n;
|
|
256
291
|
private chart;
|
|
257
292
|
private hot;
|
|
@@ -271,8 +306,19 @@ export declare class BkChartBar extends LitElement {
|
|
|
271
306
|
/** The value of a category in `current`, `select` and the `href` template (a date as its ISO string). */
|
|
272
307
|
private rawKey;
|
|
273
308
|
private isCurrent;
|
|
274
|
-
/**
|
|
309
|
+
/**
|
|
310
|
+
* The `href` of the link of a category: the template with the values of its row. A template of one field takes the
|
|
311
|
+
* value as it is. Null when a field of the template has no value in the row.
|
|
312
|
+
*/
|
|
275
313
|
private categoryHref;
|
|
314
|
+
/** True when no series of the row has a value: the category draws placeholders and has no link or button. */
|
|
315
|
+
private isEmpty;
|
|
316
|
+
/** The second label of a category (the `detail` field), or an empty string. */
|
|
317
|
+
private detailText;
|
|
318
|
+
/** The name of a category in tooltips and accessible names: the category and its second label. */
|
|
319
|
+
private categoryName;
|
|
320
|
+
/** True when the chart reserves room for the mark of a chosen category (links, buttons, or `current`). */
|
|
321
|
+
private get marksCurrent();
|
|
276
322
|
/** Fires `select` for the category `i` of the view. When no listener cancels the event, the category becomes `current`. */
|
|
277
323
|
private choose;
|
|
278
324
|
/** The name of the link or button of a category: the category and its values. */
|
|
@@ -285,6 +331,10 @@ export declare class BkChartBar extends LitElement {
|
|
|
285
331
|
protected willUpdate(changed: PropertyValues): void;
|
|
286
332
|
private layout;
|
|
287
333
|
private markLabel;
|
|
334
|
+
/** The extra fields of the tooltip (`tooltip-fields`). */
|
|
335
|
+
private get extraFields();
|
|
336
|
+
/** The extra fields of a row as one text: "Prints 12, Likes 3". */
|
|
337
|
+
private extraText;
|
|
288
338
|
private tooltipFor;
|
|
289
339
|
private enter;
|
|
290
340
|
private onFocus;
|
|
@@ -296,7 +346,11 @@ export declare class BkChartBar extends LitElement {
|
|
|
296
346
|
private onMove;
|
|
297
347
|
private onUp;
|
|
298
348
|
private onKey;
|
|
299
|
-
/**
|
|
349
|
+
/**
|
|
350
|
+
* Keys on the links or buttons of the categories: arrow keys, Home and End move the focus; Escape hides the tooltip.
|
|
351
|
+
* The keys skip a category without a link or button. The chart draws from left to right in every writing direction,
|
|
352
|
+
* and the arrow keys follow the drawing.
|
|
353
|
+
*/
|
|
300
354
|
private onCategoryKey;
|
|
301
355
|
private toggleTable;
|
|
302
356
|
private tableModel;
|