@bk2k/ui 0.6.8 → 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/BUILDING.md +56 -2
- package/CHANGELOG.md +199 -0
- package/USAGE.md +102 -28
- 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 +2 -1
- package/dist/clipboard.js +1 -0
- package/dist/components/bk-alert.js +3 -2
- 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 +42 -14
- package/dist/components/bk-button.js +67 -20
- package/dist/components/bk-card.d.ts +7 -0
- package/dist/components/bk-card.js +21 -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 +10 -0
- package/dist/components/bk-chart-bar.d.ts +17 -0
- package/dist/components/bk-chart-bar.js +25 -4
- package/dist/components/bk-chart-line.d.ts +28 -0
- package/dist/components/bk-chart-line.js +27 -7
- 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 +55 -8
- package/dist/components/bk-chip.js +46 -8
- 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 +3 -3
- package/dist/components/bk-combobox.js +9 -21
- package/dist/components/bk-delta.d.ts +10 -0
- package/dist/components/bk-delta.js +8 -6
- package/dist/components/bk-dialog.d.ts +12 -5
- package/dist/components/bk-dialog.js +14 -6
- 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.js +3 -2
- 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 +69 -6
- package/dist/components/bk-image-compare.js +116 -32
- 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 +178 -11
- package/dist/components/bk-image-viewer.js +310 -52
- 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-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-tags.d.ts +219 -0
- package/dist/components/bk-input-tags.js +293 -0
- package/dist/components/bk-input-text.d.ts +20 -0
- package/dist/components/bk-input-text.js +34 -4
- package/dist/components/bk-input-time.js +2 -1
- package/dist/components/bk-item.js +2 -1
- package/dist/components/bk-lightbox.d.ts +37 -4
- package/dist/components/bk-lightbox.js +13 -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-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.d.ts +2 -0
- package/dist/components/bk-page-cta.js +10 -1
- 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-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-shell-app.d.ts +10 -4
- package/dist/components/bk-shell-app.js +32 -9
- package/dist/components/bk-shell-sites.d.ts +2 -1
- package/dist/components/bk-shell-sites.js +3 -5
- package/dist/components/bk-sortable.js +7 -17
- package/dist/components/bk-split-grid.d.ts +104 -3
- package/dist/components/bk-split-grid.js +430 -2
- package/dist/components/bk-stat-group.js +2 -1
- package/dist/components/bk-stat.d.ts +19 -0
- package/dist/components/bk-stat.js +8 -4
- 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 +3 -1
- package/dist/components/bk-table.js +10 -13
- 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 +52 -8
- package/dist/components/bk-tabs.js +181 -97
- 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 +12 -1
- package/dist/i18n/en.d.ts +2 -0
- package/dist/i18n/en.js +3 -0
- package/dist/i18n.d.ts +16 -2
- package/dist/i18n.js +28 -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 +14 -1
- package/dist/internal/announcer.js +33 -12
- 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.js +4 -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/define.d.ts +9 -0
- package/dist/internal/define.js +47 -1
- package/dist/internal/drag.d.ts +11 -0
- package/dist/internal/drag.js +23 -0
- package/dist/internal/elements.d.ts +6 -0
- package/dist/internal/elements.js +5 -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.js +2 -5
- package/dist/internal/hue.d.ts +8 -0
- package/dist/internal/hue.js +15 -4
- 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/bk-tabs.d.ts +4 -0
- package/dist/internal/late/bk-tabs.js +8 -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 +8 -3
- package/dist/internal/late.js +19 -4
- 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/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 +222 -54
- package/dist/kit.d.ts +1 -0
- package/dist/kit.js +3 -0
- 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 +17 -13
- 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 +15 -5
- 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 +7 -7
- package/dist/standalone/bk-button-group.js +5 -5
- package/dist/standalone/bk-button-share.js +7 -7
- 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 +26 -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 +145 -117
- 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 +128 -107
- 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 +7 -7
- package/dist/standalone/bk-checkbox.js +4 -4
- package/dist/standalone/bk-chip-group.js +11 -7
- package/dist/standalone/bk-chip.js +59 -18
- 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 +23 -31
- package/dist/standalone/bk-command-menu.js +6 -6
- package/dist/standalone/bk-command-palette.js +8 -7
- 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 +5 -5
- 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 +2 -2
- package/dist/standalone/bk-facts.js +9 -8
- 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 +127 -58
- package/dist/standalone/bk-image-crop.js +6 -6
- package/dist/standalone/bk-image-editor.js +1 -1
- package/dist/standalone/bk-image-viewer.js +283 -92
- package/dist/standalone/bk-input-code.js +4 -4
- package/dist/standalone/bk-input-color.js +4 -14
- 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 +22 -15
- 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-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 +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 +24 -7
- package/dist/standalone/bk-lines.js +1 -1
- package/dist/standalone/bk-link.js +33 -19
- package/dist/standalone/bk-listbox-columns.js +8 -8
- 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 +4 -4
- 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 +9 -9
- 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 +13 -4
- 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 +4 -4
- package/dist/standalone/bk-picture.js +1 -166
- package/dist/standalone/bk-popover-help.js +3 -3
- package/dist/standalone/bk-popover.js +2 -2
- package/dist/standalone/bk-presence-cursor.js +3 -3
- 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 +7 -7
- 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 +17 -15
- package/dist/standalone/bk-select-cascade.js +3 -3
- package/dist/standalone/bk-select-tree.js +4 -4
- package/dist/standalone/bk-select.js +5 -5
- package/dist/standalone/bk-shell-app.js +1 -1221
- 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 +55 -60
- package/dist/standalone/bk-spinner.js +2 -2
- package/dist/standalone/bk-split-grid.js +324 -44
- package/dist/standalone/bk-split.js +8 -8
- package/dist/standalone/bk-stack.js +1 -1
- package/dist/standalone/bk-stat-group.js +8 -7
- package/dist/standalone/bk-stat.js +12 -9
- 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 +8 -8
- 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 -1937
- package/dist/standalone/bk-tabs-item.js +58 -35
- package/dist/standalone/bk-tabs-panel.js +7 -3
- package/dist/standalone/bk-tabs.js +3 -352
- 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 +21 -20
- 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 +5 -5
- 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-6tMlCOq1.js +41 -0
- package/dist/standalone/chunks/{appearance-waHnV0kk.js → appearance-CBOJXbmC.js} +1 -1
- package/dist/standalone/chunks/{bk-alert-offline-B1bQxOZp.js → bk-alert-offline-hCLuG-RM.js} +3 -3
- package/dist/standalone/chunks/{bk-carousel-BCwIQhG5.js → bk-carousel-_dudBMVq.js} +4 -4
- package/dist/standalone/chunks/{bk-diagram-DWK8CvRZ.js → bk-diagram-BB2odomE.js} +5 -5
- package/dist/standalone/chunks/{bk-dialog-DX0cPJ1o.js → bk-dialog-DcvwnOtN.js} +59 -25
- package/dist/standalone/chunks/{bk-icon-DssFsNuB.js → bk-icon-D4kI4F18.js} +4 -3
- package/dist/standalone/chunks/{bk-image-editor-DXEj9gCu.js → bk-image-editor-SRVkHI-4.js} +5 -5
- package/dist/standalone/chunks/{bk-input-date-range-Cbx_lpf0.js → bk-input-date-range-C0Vd-p0T.js} +2 -2
- package/dist/standalone/chunks/{bk-input-rich-ZB68vziu.js → bk-input-rich-AmDv87E5.js} +6 -6
- package/dist/standalone/chunks/{bk-input-text-DD32uWNO.js → bk-input-text-2n89GDIT.js} +73 -54
- package/dist/standalone/chunks/{bk-model-viewer-Dr81ahVv.js → bk-model-viewer-BoNYBd6W.js} +4 -4
- package/dist/standalone/chunks/bk-picture-CA5gLxgZ.js +186 -0
- package/dist/standalone/chunks/{bk-qr-code-QaYvZwOR.js → bk-qr-code-CSFfc8As.js} +3 -3
- package/dist/standalone/chunks/bk-shell-app-BlCOG25y.js +1236 -0
- package/dist/standalone/chunks/{bk-surface-DkIhrWMt.js → bk-surface-BULRdKam.js} +9 -7
- package/dist/standalone/chunks/{bk-swatch-palette-BNNXTP3w.js → bk-swatch-palette-Cqj85tSW.js} +6 -6
- package/dist/standalone/chunks/bk-table-DWlD7yoM.js +1945 -0
- package/dist/standalone/chunks/bk-tabs-STkr3-E1.js +422 -0
- package/dist/standalone/chunks/{bk-toast-group-BSeO_rPs.js → bk-toast-group-5nZg7BaJ.js} +27 -24
- package/dist/standalone/chunks/{brush-Bn3lPdHN.js → brush-DALmXSru.js} +18 -2
- package/dist/standalone/chunks/{busy-B7Mxemwm.js → busy-eG3uHonz.js} +5 -4
- package/dist/standalone/chunks/{chart-tokens-D1Exf7BW.js → chart-tokens-DQ4hVSmn.js} +2 -2
- package/dist/standalone/chunks/{choice-field-CGvE4tyb.js → choice-field-B0oe_9fI.js} +6 -6
- package/dist/standalone/chunks/{choice-item-B6-9ZRlf.js → choice-item-Cx-nm1js.js} +17 -8
- package/dist/standalone/chunks/{clipboard-Crzt1Sh9.js → clipboard-RqIeP9Uz.js} +1 -1
- package/dist/standalone/chunks/{clipboard-BKlrP5rj.js → clipboard-UVLSkL4C.js} +1 -1
- package/dist/standalone/chunks/{crop-frame-poLCGrBG.js → crop-frame-Z9N0QML4.js} +1 -11
- package/dist/standalone/chunks/{date-field-BlI6grfT.js → date-field-Dy1_qxNv.js} +48 -47
- package/dist/standalone/chunks/define-6OfuRn5c.js +60 -0
- 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-CyXQIJ2x.js → form-control-Bmk0SRDX.js} +2 -2
- package/dist/standalone/chunks/{frame-abXBnl8a.js → frame-xIMVEUCi.js} +5 -4
- package/dist/standalone/chunks/{handle-menu-ZVR_msk2.js → handle-menu-BAe9fPYJ.js} +14 -33
- package/dist/standalone/chunks/{heading-text-CV5gBf7k.js → heading-text-B2kF-b8p.js} +1 -1
- package/dist/standalone/chunks/hue-vLbNdAEl.js +20 -0
- package/dist/standalone/chunks/{i18n-B6Al9xCK.js → i18n-DFfGgd3d.js} +49 -34
- package/dist/standalone/chunks/{i18n-BI16HQmm.js → i18n-DQAcbHkY.js} +1 -1
- package/dist/standalone/chunks/late-CPQ_RbU-.js +30 -0
- package/dist/standalone/chunks/link--YWr8exL.js +69 -0
- package/dist/standalone/chunks/{marks-0kbeB4n8.js → marks-pOUDNUf1.js} +2 -2
- package/dist/standalone/chunks/{options-DMEc8rQt.js → options-ySaDL-dW.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-ac49G87f.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-ggoyjMvC.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-BAUc_LqI.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-BK-B4m5A.js → summary-W5s0TFqV.js} +1 -1
- package/dist/standalone/chunks/tags-CMLAGsVw.js +37 -0
- package/dist/standalone/chunks/{text-field-4IUUpRHE.js → text-field-CufOGdfr.js} +17 -11
- package/dist/standalone/chunks/{toggle-control-ioV2jhNY.js → toggle-control-Cgqp1jhf.js} +5 -3
- package/dist/standalone/chunks/{tokens-BuahF1lF.js → tokens-C_ul7pL9.js} +4 -3
- package/dist/standalone/chunks/{virtual-B-1oN14Y.js → virtual-D-qgACnE.js} +1 -1
- package/dist/standalone/confirm.js +27 -14
- package/dist/standalone/i18n-de.js +13 -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 +6 -5
- package/dist/tokens.css +6 -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-B_TlKzWj.js +0 -275
- package/dist/standalone/chunks/define-CzVPD4Zi.js +0 -30
- package/dist/standalone/chunks/hue-Jvb-141g.js +0 -14
- package/dist/standalone/chunks/keyed-CZ2AaouM.js +0 -16
- package/dist/standalone/chunks/link-CWSMsx04.js +0 -60
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as e, n as t, s as n, t as r, u as i } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as a } from "./chunks/define-
|
|
3
|
-
import { t as o } from "./chunks/i18n-
|
|
4
|
-
import { t as s } from "./chunks/styles-
|
|
5
|
-
import { r as c } from "./chunks/chart-tokens-
|
|
6
|
-
import { t as l } from "./chunks/i18n-
|
|
2
|
+
import { t as a } from "./chunks/define-6OfuRn5c.js";
|
|
3
|
+
import { t as o } from "./chunks/i18n-DFfGgd3d.js";
|
|
4
|
+
import { t as s } from "./chunks/styles-CaeyhYDA.js";
|
|
5
|
+
import { r as c } from "./chunks/chart-tokens-DQ4hVSmn.js";
|
|
6
|
+
import { t as l } from "./chunks/i18n-DQAcbHkY.js";
|
|
7
7
|
import { a as u } from "./chunks/format-DEwvmPPd.js";
|
|
8
8
|
import { n as d } from "./chunks/scale-BcW5wHaU.js";
|
|
9
|
-
import { n as f, t as p } from "./chunks/frame-
|
|
9
|
+
import { n as f, t as p } from "./chunks/frame-xIMVEUCi.js";
|
|
10
10
|
// dist/components/bk-chart-sparkline.js
|
|
11
11
|
c();
|
|
12
12
|
var m = (e) => (e ?? "").split(/[\s,;]+/).filter(Boolean).map(Number).filter(Number.isFinite), h = class extends r {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as e, n as t, s as n, t as r, u as i } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as a } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import { t as o } from "./chunks/define-
|
|
4
|
-
import { t as s } from "./chunks/i18n-
|
|
5
|
-
import { t as c } from "./chunks/styles-
|
|
6
|
-
import { r as l } from "./chunks/chart-tokens-
|
|
7
|
-
import { t as u } from "./chunks/i18n-
|
|
3
|
+
import { t as o } from "./chunks/define-6OfuRn5c.js";
|
|
4
|
+
import { t as s } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
|
+
import { t as c } from "./chunks/styles-CaeyhYDA.js";
|
|
6
|
+
import { r as l } from "./chunks/chart-tokens-DQ4hVSmn.js";
|
|
7
|
+
import { t as u } from "./chunks/i18n-DQAcbHkY.js";
|
|
8
8
|
import { a as d, n as f, r as p } from "./chunks/format-DEwvmPPd.js";
|
|
9
|
-
import { t as m } from "./chunks/summary-
|
|
10
|
-
import { d as h, f as g, l as _, o as v, p as y, r as b, t as x, u as S } from "./chunks/frame-
|
|
9
|
+
import { t as m } from "./chunks/summary-W5s0TFqV.js";
|
|
10
|
+
import { d as h, f as g, l as _, o as v, p as y, r as b, t as x, u as S } from "./chunks/frame-xIMVEUCi.js";
|
|
11
11
|
import "./bk-chart-legend.js";
|
|
12
12
|
// dist/components/bk-chart-stacked-bar.js
|
|
13
13
|
l();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as i } from "./chunks/define-
|
|
3
|
-
import { t as a } from "./chunks/i18n-
|
|
4
|
-
import { t as o } from "./chunks/styles-
|
|
5
|
-
import { r as s } from "./chunks/chart-tokens-
|
|
6
|
-
import { t as c } from "./chunks/i18n-
|
|
2
|
+
import { t as i } from "./chunks/define-6OfuRn5c.js";
|
|
3
|
+
import { t as a } from "./chunks/i18n-DFfGgd3d.js";
|
|
4
|
+
import { t as o } from "./chunks/styles-CaeyhYDA.js";
|
|
5
|
+
import { r as s } from "./chunks/chart-tokens-DQ4hVSmn.js";
|
|
6
|
+
import { t as c } from "./chunks/i18n-DQAcbHkY.js";
|
|
7
7
|
import { n as l } from "./chunks/format-DEwvmPPd.js";
|
|
8
|
-
import { l as u, r as d, t as f } from "./chunks/frame-
|
|
8
|
+
import { l as u, r as d, t as f } from "./chunks/frame-xIMVEUCi.js";
|
|
9
9
|
import "./bk-chart-legend.js";
|
|
10
10
|
// dist/components/bk-chart-tracker.js
|
|
11
11
|
s();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import { t as a } from "./chunks/i18n-
|
|
4
|
-
import { r as o } from "./chunks/chart-tokens-
|
|
5
|
-
import { t as s } from "./chunks/i18n-
|
|
3
|
+
import { t as a } from "./chunks/i18n-DFfGgd3d.js";
|
|
4
|
+
import { r as o } from "./chunks/chart-tokens-DQ4hVSmn.js";
|
|
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
|
-
import { t as d, x as f } from "./chunks/styles-
|
|
10
|
-
import "./chunks/bk-icon-
|
|
9
|
+
import { t as d, x as f } from "./chunks/styles-CaeyhYDA.js";
|
|
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,11 +1,11 @@
|
|
|
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 {
|
|
4
|
-
import {
|
|
3
|
+
import { i as r, r as i, t as a } from "./chunks/define-6OfuRn5c.js";
|
|
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-
|
|
8
|
-
import { s as f, t as p } from "./chunks/styles-
|
|
7
|
+
import { t as d } from "./chunks/form-control-Bmk0SRDX.js";
|
|
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
|
|
11
11
|
var h = class extends d {
|
|
@@ -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-
|
|
3
|
-
import { t as i } from "./chunks/styles-
|
|
4
|
-
import { n as a, t as o } from "./chunks/toggle-control-
|
|
5
|
-
import "./chunks/bk-icon-
|
|
2
|
+
import { t as r } from "./chunks/define-6OfuRn5c.js";
|
|
3
|
+
import { t as i } from "./chunks/styles-CaeyhYDA.js";
|
|
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,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
|
-
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-
|
|
5
|
-
import { t as l } from "./chunks/i18n-
|
|
6
|
-
import { t as u } from "./chunks/styles-
|
|
4
|
+
import { t as c } from "./chunks/form-control-Bmk0SRDX.js";
|
|
5
|
+
import { t as l } from "./chunks/i18n-DFfGgd3d.js";
|
|
6
|
+
import { t as u } from "./chunks/styles-CaeyhYDA.js";
|
|
7
7
|
import { BkChip as d } from "./bk-chip.js";
|
|
8
8
|
import { c as f } from "./chunks/anchor-CNX3nt2F.js";
|
|
9
9
|
import "./bk-button.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
|
}
|
|
@@ -210,7 +210,11 @@ var p = class extends c {
|
|
|
210
210
|
case "Backspace":
|
|
211
211
|
case "Delete":
|
|
212
212
|
if (!t.removable) return;
|
|
213
|
-
e.preventDefault(),
|
|
213
|
+
if (e.preventDefault(), t.removed) {
|
|
214
|
+
s(t, "restore");
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
this.removedAt = r, s(t, "remove"), queueMicrotask(() => {
|
|
214
218
|
t.isConnected && (this.removedAt = -1);
|
|
215
219
|
});
|
|
216
220
|
return;
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as o } from "./chunks/link
|
|
4
|
-
import { t as s } from "./chunks/i18n-
|
|
2
|
+
import { r as i, t as a } from "./chunks/define-6OfuRn5c.js";
|
|
3
|
+
import { t as o } from "./chunks/link--YWr8exL.js";
|
|
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
|
-
import { t as u } from "./chunks/clipboard-
|
|
6
|
+
import { t as u } from "./chunks/clipboard-RqIeP9Uz.js";
|
|
7
7
|
import { t as d } from "./chunks/if-defined-z_20pBRr.js";
|
|
8
|
-
import { _ as f, g as p, l as m, t as h, x as g } from "./chunks/styles-
|
|
9
|
-
import "./chunks/bk-icon-
|
|
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-D4kI4F18.js";
|
|
10
|
+
import { t as _ } from "./chunks/slots-BHTtBbPo.js";
|
|
10
11
|
import "./chunks/check-BkWcIJJJ.js";
|
|
11
12
|
import "./chunks/close-CcDDKPf9.js";
|
|
12
13
|
import "./chunks/error-BWRRZUg8.js";
|
|
13
14
|
import "./chunks/info-DxwIeCXS.js";
|
|
14
15
|
import "./chunks/label-cokyRPHN.js";
|
|
15
16
|
import "./chunks/remove-3A4Fpn3J.js";
|
|
17
|
+
import "./chunks/undo-BqrhmdQf.js";
|
|
16
18
|
import "./chunks/warning-BxRrPipZ.js";
|
|
17
19
|
// dist/components/bk-chip.js
|
|
18
|
-
var
|
|
20
|
+
var v = class extends n {
|
|
19
21
|
static properties = {
|
|
20
22
|
tone: {
|
|
21
23
|
reflect: !0,
|
|
@@ -53,15 +55,21 @@ var _ = class extends n {
|
|
|
53
55
|
count: {},
|
|
54
56
|
grouped: { state: !0 },
|
|
55
57
|
removeLabel: { attribute: "remove-label" },
|
|
58
|
+
removed: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
reflect: !0
|
|
61
|
+
},
|
|
62
|
+
restoreLabel: { attribute: "restore-label" },
|
|
56
63
|
href: {},
|
|
57
64
|
target: {},
|
|
58
65
|
rel: {},
|
|
59
66
|
download: {}
|
|
60
67
|
};
|
|
68
|
+
slots = new _(this);
|
|
61
69
|
links = new o(this);
|
|
62
70
|
clip = new u(this, void 0, (e) => c(this, "copyfailed", { error: e }));
|
|
63
71
|
constructor() {
|
|
64
|
-
super(), this.tone = "neutral", this.variant = "soft", this.size = "md", this.dot = !1, this.removable = !1, this.selected = !1, this.copy = !1, this.grouped = !1, this.removeLabel = "";
|
|
72
|
+
super(), this.tone = "neutral", this.variant = "soft", this.size = "md", this.dot = !1, this.removable = !1, this.selected = !1, this.copy = !1, this.grouped = !1, this.removeLabel = "", this.removed = !1, this.restoreLabel = "";
|
|
65
73
|
}
|
|
66
74
|
connectedCallback() {
|
|
67
75
|
super.connectedCallback(), this.grouped = !!this.closest("bk-chip-group");
|
|
@@ -108,17 +116,33 @@ var _ = class extends n {
|
|
|
108
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);
|
|
109
117
|
background: var(--_bk-chip-bg); color: var(--_bk-chip-fg);
|
|
110
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);
|
|
111
120
|
line-height: 1; white-space: nowrap;
|
|
112
121
|
}
|
|
113
122
|
:host([variant="solid"]) .chip { background: var(--_bk-chip-fill, var(--_bk-chip-solid)); color: var(--_bk-chip-on); }
|
|
114
123
|
:host([variant="outline"]) .chip { background: transparent; border-color: var(--bk-chip-border, color-mix(in oklab, var(--_bk-chip-fg) 40%, transparent)); }
|
|
115
124
|
:host([variant="dashed"]) .chip { background: transparent; border-style: dashed; border-color: var(--bk-chip-border, color-mix(in oklab, var(--_bk-chip-fg) 60%, transparent)); }
|
|
125
|
+
:host([variant="text"]) .chip { background: transparent; border-color: transparent; padding-inline: var(--bk-chip-text-padding-inline, 0); }
|
|
126
|
+
:host([variant="text"][selected]) .chip { background: transparent; border-color: transparent; }
|
|
127
|
+
:host([variant="text"]) .remove { margin-inline-end: 0; }
|
|
128
|
+
/* Without padding the visible chip can be narrower than --bk-target-min: the hit area of a link or copy chip grows. */
|
|
129
|
+
:host([variant="text"]) .link::after {
|
|
130
|
+
inset-block: min(calc(-1 * var(--bk-border-width)), calc((100% - var(--bk-target-min)) / 2));
|
|
131
|
+
inset-inline: min(calc(-1 * var(--bk-border-width)), calc((100% - var(--bk-target-min)) / 2));
|
|
132
|
+
}
|
|
133
|
+
.end { display: inline-flex; align-items: center; gap: inherit; min-width: 0; }
|
|
134
|
+
.end[hidden] { display: none; }
|
|
116
135
|
.count { color: var(--bk-chip-count-fg, inherit); font-variant-numeric: tabular-nums; }
|
|
117
136
|
button.link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
|
|
118
137
|
:host([selected]) .chip {
|
|
119
138
|
background: var(--bk-chip-selected-bg, var(--bk-accent-soft)); color: var(--bk-chip-selected-fg, var(--bk-accent-text));
|
|
120
139
|
border-color: var(--bk-chip-selected-border, var(--bk-accent-solid));
|
|
121
140
|
}
|
|
141
|
+
/* removed: a muted chip without fill, text struck through. It comes after the variants, so it wins for all of them. */
|
|
142
|
+
:host([removed]) .chip { background: var(--bk-chip-removed-bg, transparent); color: var(--bk-chip-removed-fg, var(--bk-text-muted)); }
|
|
143
|
+
:host([removed][variant="dashed"]) .chip, :host([removed][variant="outline"]) .chip { border-color: var(--bk-chip-border, color-mix(in oklab, var(--bk-chip-removed-fg, var(--bk-text-muted)) 40%, transparent)); }
|
|
144
|
+
:host([removed][selected]) .chip { border-color: var(--bk-chip-border, transparent); }
|
|
145
|
+
:host([removed]) .label, :host([removed]) .count { text-decoration: var(--bk-chip-removed-decoration, line-through); }
|
|
122
146
|
:host([overflow="ellipsis"]) { min-width: 0; }
|
|
123
147
|
/* href: the link covers the chip; the remove button sits above it. */
|
|
124
148
|
.chip { position: relative; }
|
|
@@ -130,7 +154,8 @@ var _ = class extends n {
|
|
|
130
154
|
.remove { z-index: 1; }
|
|
131
155
|
@media (forced-colors: active) { .chip:has(.link:focus-visible) { outline-color: Highlight; } }
|
|
132
156
|
/* The clip of the ellipsis reaches past the line box (line-height 1), so ascenders and descenders (g, y, É) stay whole. */
|
|
133
|
-
|
|
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)); }
|
|
134
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; }
|
|
135
160
|
bk-icon, ::slotted(bk-icon) { --bk-icon-size: 1.15em; }
|
|
136
161
|
.remove {
|
|
@@ -147,24 +172,38 @@ var _ = class extends n {
|
|
|
147
172
|
`
|
|
148
173
|
];
|
|
149
174
|
i18n = new s(this);
|
|
175
|
+
get restoreName() {
|
|
176
|
+
let e = this.itemText;
|
|
177
|
+
return this.restoreLabel || (e ? this.i18n.t("restoreItem", { item: e }) : this.i18n.t("restore"));
|
|
178
|
+
}
|
|
150
179
|
get removeName() {
|
|
151
|
-
let e =
|
|
180
|
+
let e = this.itemText;
|
|
152
181
|
return this.removeLabel || (e ? this.i18n.t("removeItem", { item: e }) : this.i18n.t("remove"));
|
|
153
182
|
}
|
|
183
|
+
slotText(e) {
|
|
184
|
+
return [...i(this)?.childNodes ?? []].filter((t) => (t instanceof Element && t.getAttribute("slot") === "end") === e && !(!e && t instanceof Element && t.hasAttribute("slot"))).map((e) => e.textContent ?? "").join(" ").replace(/\s+/g, " ").trim();
|
|
185
|
+
}
|
|
154
186
|
get itemText() {
|
|
155
|
-
return
|
|
187
|
+
return this.slotText(!1);
|
|
156
188
|
}
|
|
157
189
|
async copyToClipboard(e = this.copyText ?? this.itemText) {
|
|
158
190
|
return this.clip.copy(e);
|
|
159
191
|
}
|
|
160
192
|
renderCopy() {
|
|
161
|
-
let n = [
|
|
193
|
+
let n = [
|
|
194
|
+
this.itemText,
|
|
195
|
+
this.count,
|
|
196
|
+
this.slotText(!0)
|
|
197
|
+
].filter(Boolean).join(" "), r = this.clip.failed ? this.i18n.t("copyFailed") : this.clip.copied ? this.i18n.t("copied") : "";
|
|
162
198
|
return e`<button class="link" part="copy" type="button" aria-label=${this.copyLabel || this.i18n.t("copyItem", { item: n })}
|
|
163
|
-
@click=${() => this.copyToClipboard()}><span class="label"><slot></slot></span></button>${this.count ? e`<span class="count" part="count" aria-hidden="true" @click=${() => this.copyToClipboard()}>${this.count}</span>` : t}<span class="sr-only" aria-live="polite">${r}</span>`;
|
|
199
|
+
@click=${() => this.copyToClipboard()}><span class="label"><slot></slot></span></button>${this.count ? e`<span class="count" part="count" aria-hidden="true" @click=${() => this.copyToClipboard()}>${this.count}</span>` : t}${this.renderEnd(!0)}<span class="sr-only" aria-live="polite">${r}</span>`;
|
|
164
200
|
}
|
|
165
201
|
renderCount() {
|
|
166
202
|
return this.count ? e`<span class="count" part="count">${this.count}</span>` : t;
|
|
167
203
|
}
|
|
204
|
+
renderEnd(n = !1) {
|
|
205
|
+
return e`<span class="end" part="end" ?hidden=${!this.slots.has("end")} aria-hidden=${d(n ? "true" : void 0)} @click=${n ? () => this.copyToClipboard() : t}><slot name="end"></slot></span>`;
|
|
206
|
+
}
|
|
168
207
|
renderLink() {
|
|
169
208
|
return e`<a class="link" part="link" href=${this.links.href(this.href)} @click=${this.links.click} target=${d(this.target)}
|
|
170
209
|
rel=${d(this.rel ?? (this.target === "_blank" ? "noopener noreferrer" : void 0))} download=${d(this.download)}><span class="label"><slot></slot></span>${this.target === "_blank" ? e`<span class="sr-only">${this.i18n.t("opensInNewTab")}</span>` : t}</a>`;
|
|
@@ -174,11 +213,13 @@ var _ = class extends n {
|
|
|
174
213
|
${this.dot ? e`<span class="dot"></span>` : t}
|
|
175
214
|
${this.selected ? e`<bk-icon class="check" name="check"></bk-icon>` : t}
|
|
176
215
|
<slot name="start">${this.copy && this.clip.failed ? e`<bk-icon name="error"></bk-icon>` : this.copy && this.clip.copied ? e`<bk-icon name="check"></bk-icon>` : this.icon ? e`<bk-icon name=${this.icon}></bk-icon>` : t}</slot>
|
|
177
|
-
${this.copy ? this.renderCopy() : this.href ? e`${this.renderLink()}${this.renderCount()}` : e`<span class="label"><slot></slot></span>${this.renderCount()}`}
|
|
178
|
-
${this.
|
|
179
|
-
|
|
216
|
+
${this.copy ? this.renderCopy() : this.href ? e`${this.renderLink()}${this.renderCount()}${this.renderEnd()}` : e`<span class="label"><slot></slot></span>${this.renderCount()}${this.renderEnd()}`}
|
|
217
|
+
${this.removed ? e`<span class="sr-only">${this.i18n.t("removed")}</span>` : t}
|
|
218
|
+
${this.removable ? this.removed ? e`<button class="remove focusable" part="remove" type="button" tabindex=${this.grouped ? "-1" : t} aria-label=${this.restoreName} title=${this.restoreName}
|
|
219
|
+
@click=${() => l(this, "restore")}><bk-icon name="undo"></bk-icon></button>` : e`<button class="remove focusable" part="remove" type="button" tabindex=${this.grouped ? "-1" : t} aria-label=${this.removeName} title=${this.removeName}
|
|
220
|
+
@click=${() => l(this, "remove")}><bk-icon name="close"></bk-icon></button>` : t}
|
|
180
221
|
</span>`;
|
|
181
222
|
}
|
|
182
223
|
};
|
|
183
|
-
a("bk-chip",
|
|
184
|
-
export {
|
|
224
|
+
a("bk-chip", v);
|
|
225
|
+
export { v as BkChip };
|
|
@@ -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
|
-
import { t as i } from "./chunks/i18n-
|
|
3
|
-
import { t as a } from "./chunks/define-
|
|
2
|
+
import { t as i } from "./chunks/i18n-DFfGgd3d.js";
|
|
3
|
+
import { t as a } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { i as o } from "./chunks/events-DQ4e9cPN.js";
|
|
5
|
-
import { t as s, v as c, x as l } from "./chunks/styles-
|
|
6
|
-
import "./chunks/bk-icon-
|
|
5
|
+
import { t as s, v as c, x as l } from "./chunks/styles-CaeyhYDA.js";
|
|
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,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
|
-
import { t as i } from "./chunks/i18n-
|
|
3
|
-
import { t as a } from "./chunks/clipboard-
|
|
4
|
-
import { t as o } from "./chunks/define-
|
|
5
|
-
import { t as s, x as c } from "./chunks/styles-
|
|
2
|
+
import { t as i } from "./chunks/i18n-DFfGgd3d.js";
|
|
3
|
+
import { t as a } from "./chunks/clipboard-RqIeP9Uz.js";
|
|
4
|
+
import { t as o } from "./chunks/define-6OfuRn5c.js";
|
|
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";
|
|
8
8
|
import "./chunks/check-BkWcIJJJ.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/style-map-BMvn17E7.js";
|
|
3
|
-
import { t as a } from "./chunks/i18n-
|
|
4
|
-
import { t as o } from "./chunks/clipboard-
|
|
5
|
-
import {
|
|
3
|
+
import { t as a } from "./chunks/i18n-DFfGgd3d.js";
|
|
4
|
+
import { t as o } from "./chunks/clipboard-RqIeP9Uz.js";
|
|
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
|
-
import { t as d, x as f } from "./chunks/styles-
|
|
8
|
+
import { t as d, x as f } from "./chunks/styles-CaeyhYDA.js";
|
|
9
9
|
import "./bk-button.js";
|
|
10
10
|
import "./chunks/check-BkWcIJJJ.js";
|
|
11
11
|
import "./chunks/copy-CJUeLP2K.js";
|
|
@@ -296,7 +296,11 @@ var b = class extends n {
|
|
|
296
296
|
pre:focus-visible { outline: var(--bk-focus-ring); outline-offset: var(--bk-focus-offset-inset); }
|
|
297
297
|
/* Without a header the copy button floats in the top end corner; the text keeps clear of it. */
|
|
298
298
|
.float { position: absolute; inset-block-start: max(var(--bk-space-1), calc(var(--_bk-code-pad-b) + round(calc((var(--bk-code-line-height, var(--bk-line-height-body)) - var(--bk-control-sm)) / 2), 1px))); inset-inline-end: var(--bk-space-1); }
|
|
299
|
-
.float ~ pre {
|
|
299
|
+
.float ~ pre { --_bk-code-float: calc(var(--bk-control-sm) + var(--bk-space-2)); min-block-size: calc(var(--bk-control-sm) + 2 * var(--bk-space-1)); }
|
|
300
|
+
/* A block that scrolls ends before the button, so a long line scrolls beside it and not under it. A block that wraps keeps the
|
|
301
|
+
space as padding: the text breaks before the button. */
|
|
302
|
+
:host(:not([wrap])) .float ~ pre { margin-inline-end: var(--_bk-code-float); }
|
|
303
|
+
:host([wrap]) .float ~ pre { padding-inline-end: var(--_bk-code-float); }
|
|
300
304
|
code { font: inherit; }
|
|
301
305
|
/* Lines: each line is a block as wide as the longest line, so a mark reaches the end of a line that scrolls. The
|
|
302
306
|
pre gives its inline padding to the lines, so a mark fills the block from edge to edge. */
|
|
@@ -304,7 +308,7 @@ var b = class extends n {
|
|
|
304
308
|
code.lines { display: grid; min-inline-size: 100%; inline-size: max-content; counter-reset: bk-code-line var(--_bk-code-first); }
|
|
305
309
|
:host([wrap]) code.lines { inline-size: auto; }
|
|
306
310
|
.line { display: block; min-block-size: 1lh; padding-inline: var(--_bk-code-pad-i); }
|
|
307
|
-
.float ~ pre .line { padding-inline-end:
|
|
311
|
+
:host([wrap]) .float ~ pre .line { padding-inline-end: var(--_bk-code-float); }
|
|
308
312
|
.line.mark { background: var(--_bk-code-mark); }
|
|
309
313
|
/* The numbers are generated content: no part of a selection, of the copied text or of what screen readers read. */
|
|
310
314
|
code.numbered .line { counter-increment: bk-code-line; padding-inline-start: calc(var(--_bk-code-pad-i) + var(--_bk-code-digits) * 1ch + var(--bk-code-line-number-gap, var(--bk-space-3))); text-indent: 0; position: relative; }
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/style-map-BMvn17E7.js";
|
|
3
3
|
import { t as a } from "./chunks/live-CgLyfc6z.js";
|
|
4
|
-
import { t as o } from "./chunks/i18n-
|
|
4
|
+
import { t as o } from "./chunks/i18n-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
|
-
import { t as d } from "./chunks/slider-
|
|
9
|
-
import { t as f, v as p } from "./chunks/styles-
|
|
8
|
+
import { t as d } from "./chunks/slider-jp3d-Ld-.js";
|
|
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,10 +1,10 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as c } from "./chunks/i18n-
|
|
3
|
+
import { a, i as o, t as s } from "./chunks/define-6OfuRn5c.js";
|
|
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";
|
|
7
|
-
import { t as d } from "./chunks/styles-
|
|
7
|
+
import { t as d } from "./chunks/styles-CaeyhYDA.js";
|
|
8
8
|
// dist/components/bk-columns.js
|
|
9
9
|
var f = [
|
|
10
10
|
"start",
|
|
@@ -36,6 +36,10 @@ var f = [
|
|
|
36
36
|
reflect: !0,
|
|
37
37
|
useDefault: !0
|
|
38
38
|
},
|
|
39
|
+
narrow: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
attribute: !1
|
|
42
|
+
},
|
|
39
43
|
scrolling: { state: !0 },
|
|
40
44
|
collapsedSides: { state: !0 },
|
|
41
45
|
panelSides: { state: !0 }
|
|
@@ -49,7 +53,7 @@ var f = [
|
|
|
49
53
|
});
|
|
50
54
|
watch = o(() => this.readCollapsed());
|
|
51
55
|
constructor() {
|
|
52
|
-
super(), this.splitAbove = 1024, this.stackAbove = 768, this.mode = "flow", this.collapsedSides = /* @__PURE__ */ new Set(), this.panelSides = /* @__PURE__ */ new Set(), this.scrolling = /* @__PURE__ */ new Set();
|
|
56
|
+
super(), this.splitAbove = 1024, this.stackAbove = 768, this.mode = "flow", this.narrow = !1, this.collapsedSides = /* @__PURE__ */ new Set(), this.panelSides = /* @__PURE__ */ new Set(), this.scrolling = /* @__PURE__ */ new Set();
|
|
53
57
|
}
|
|
54
58
|
static styles = [d, r`
|
|
55
59
|
:host {
|
|
@@ -154,6 +158,10 @@ var f = [
|
|
|
154
158
|
}
|
|
155
159
|
updateMode() {
|
|
156
160
|
let e = this.width;
|
|
161
|
+
if (this.narrow) {
|
|
162
|
+
this.mode !== "flow" && (this.mode = "flow");
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
157
165
|
if (e <= 0) return;
|
|
158
166
|
let t = e >= this.splitAbove ? "split" : e >= this.stackAbove ? "stack" : "flow";
|
|
159
167
|
t !== this.mode && (this.mode = t);
|
|
@@ -167,7 +175,7 @@ var f = [
|
|
|
167
175
|
return this.mode === "split" ? this.renderRoot.querySelector(".main") : this.mode === "stack" ? this.renderRoot.querySelector(".frame") : null;
|
|
168
176
|
}
|
|
169
177
|
willUpdate(e) {
|
|
170
|
-
(e.has("splitAbove") || e.has("stackAbove")) && this.updateMode();
|
|
178
|
+
(e.has("splitAbove") || e.has("stackAbove") || e.has("narrow")) && this.updateMode();
|
|
171
179
|
}
|
|
172
180
|
updated(e) {
|
|
173
181
|
if (e.has("mode") && requestAnimationFrame(() => this.measureOverflow()), !e.has("scrollKey")) return;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { a as e, n as t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as r } from "./chunks/if-defined-z_20pBRr.js";
|
|
3
3
|
import { t as i } from "./chunks/live-CgLyfc6z.js";
|
|
4
|
-
import { n as a, t as o } from "./chunks/choice-field-
|
|
5
|
-
import { t as s } from "./chunks/define-
|
|
4
|
+
import { n as a, t as o } from "./chunks/choice-field-B0oe_9fI.js";
|
|
5
|
+
import { t as s } from "./chunks/define-6OfuRn5c.js";
|
|
6
6
|
import { i as c } from "./chunks/events-DQ4e9cPN.js";
|
|
7
7
|
import { t as l } from "./chunks/loading-B37QBUkv.js";
|
|
8
|
-
import { n as u, t as d, u as f } from "./chunks/options-
|
|
8
|
+
import { n as u, t as d, u as f } from "./chunks/options-ySaDL-dW.js";
|
|
9
9
|
import "./bk-chip.js";
|
|
10
|
-
import "./chunks/bk-icon-
|
|
10
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
11
11
|
import "./bk-spinner.js";
|
|
12
|
+
import { r as p } from "./chunks/submit-BjBGB8OW.js";
|
|
13
|
+
import { n as m, t as h } from "./chunks/tags-CMLAGsVw.js";
|
|
12
14
|
import "./chunks/add-CUFUzxGc.js";
|
|
13
15
|
import "./chunks/chevron-down-CpVEjEyi.js";
|
|
14
16
|
import "./chunks/search-Cm9mOqRy.js";
|
|
15
17
|
// dist/components/bk-combobox.js
|
|
16
|
-
var
|
|
18
|
+
var g = class extends o {
|
|
17
19
|
static properties = {
|
|
18
20
|
...o.properties,
|
|
19
21
|
readonly: {
|
|
@@ -78,20 +80,11 @@ var p = class extends o {
|
|
|
78
80
|
get busy() {
|
|
79
81
|
return this.loading || this.searching;
|
|
80
82
|
}
|
|
81
|
-
static styles = [
|
|
83
|
+
static styles = [
|
|
84
|
+
...a("combobox"),
|
|
85
|
+
m("combobox"),
|
|
86
|
+
n`
|
|
82
87
|
:host { --_bk-text-field-font-size: var(--bk-combobox-font-size); }
|
|
83
|
-
.box { cursor: text; }
|
|
84
|
-
.values { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--bk-combobox-tag-gap, var(--bk-space-1)); }
|
|
85
|
-
.box.has-tags { padding-block: var(--bk-combobox-tags-padding, var(--bk-space-1)); }
|
|
86
|
-
:host([size="sm"]) .box.has-tags { padding-block: var(--bk-combobox-tags-padding, var(--bk-space-0)); }
|
|
87
|
-
.tags { display: contents; }
|
|
88
|
-
bk-chip { max-width: 100%; }
|
|
89
|
-
input { text-overflow: ellipsis; }
|
|
90
|
-
.has-tags input { min-width: var(--bk-combobox-input-min-width, 6ch); width: auto; }
|
|
91
|
-
input:disabled { cursor: not-allowed; }
|
|
92
|
-
/* Disabled with chips: the chips keep their text contrast (a dimmed box fails 4.5:1); the sunken fill and the cursor show the state. */
|
|
93
|
-
:host([disabled]) .box.has-tags { opacity: 1; }
|
|
94
|
-
:host([disabled]) .box.has-tags input { opacity: var(--bk-disabled-opacity); }
|
|
95
88
|
mark {
|
|
96
89
|
background: none; color: var(--bk-combobox-match-color, var(--bk-accent-text));
|
|
97
90
|
font-weight: var(--bk-combobox-match-weight, var(--bk-weight-semibold));
|
|
@@ -105,7 +98,8 @@ var p = class extends o {
|
|
|
105
98
|
}
|
|
106
99
|
.status bk-spinner { --bk-spinner-size: var(--bk-icon-sm); }
|
|
107
100
|
@media (forced-colors: active) { mark { color: Highlight; } }
|
|
108
|
-
`
|
|
101
|
+
`
|
|
102
|
+
];
|
|
109
103
|
get control() {
|
|
110
104
|
return this.renderRoot?.querySelector("input") ?? null;
|
|
111
105
|
}
|
|
@@ -227,15 +221,13 @@ var p = class extends o {
|
|
|
227
221
|
}
|
|
228
222
|
onPaste(e) {
|
|
229
223
|
if (!this.multiple || this.isDisabled || this.readonly) return;
|
|
230
|
-
let t = e.
|
|
231
|
-
if (
|
|
232
|
-
e.preventDefault();
|
|
224
|
+
let t = h(e, this.text);
|
|
225
|
+
if (!t) return;
|
|
233
226
|
let n = [...this.selection];
|
|
234
|
-
for (let e of
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
r !== void 0 && !n.includes(r) && n.push(r);
|
|
227
|
+
for (let e of t) {
|
|
228
|
+
if (this.max !== void 0 && this.max > 0 && n.length >= this.max) continue;
|
|
229
|
+
let t = this.tagFor(e);
|
|
230
|
+
t !== void 0 && !n.includes(t) && n.push(t);
|
|
239
231
|
}
|
|
240
232
|
n.length !== this.selection.length && this.commit(n), this.query = "", this.text = "", this.visible = this.computeVisible();
|
|
241
233
|
}
|
|
@@ -289,7 +281,7 @@ var p = class extends o {
|
|
|
289
281
|
return;
|
|
290
282
|
}
|
|
291
283
|
let t = this.internals.form;
|
|
292
|
-
t && setTimeout(() => t
|
|
284
|
+
t && setTimeout(() => p(t));
|
|
293
285
|
return;
|
|
294
286
|
}
|
|
295
287
|
case ",":
|
|
@@ -352,7 +344,7 @@ var p = class extends o {
|
|
|
352
344
|
render() {
|
|
353
345
|
let n = this.showInvalid, a = this.multiple && this.selection.length > 0, o = this.descriptionIds(a ? "tags-text" : void 0), s = `${this.key}-list`, c = this.label ? void 0 : this.forwardedName, l = this.popupShown, u = this.visible, d = this.busy, f = this.noResults, p = d && u.length > 0;
|
|
354
346
|
return e`<div @focusout=${this.onFocusOut}>
|
|
355
|
-
${this.renderField(e`<div class="${this.boxClass}${a ? " has-tags" : ""}${l ? " open" : ""}" part="box" @click=${this.onBoxClick}>
|
|
347
|
+
${this.renderField(e`<div class="${this.boxClass}${a ? " has-tags" : ""}${a && !this.hasLead ? " tags-first" : ""}${l ? " open" : ""}" part="box" @click=${this.onBoxClick}>
|
|
356
348
|
${this.renderStart()}
|
|
357
349
|
${this.renderPrefix()}
|
|
358
350
|
<div class="values">
|
|
@@ -384,5 +376,5 @@ var p = class extends o {
|
|
|
384
376
|
</div>`;
|
|
385
377
|
}
|
|
386
378
|
};
|
|
387
|
-
s("bk-combobox",
|
|
388
|
-
export {
|
|
379
|
+
s("bk-combobox", g);
|
|
380
|
+
export { g as BkCombobox, u as matchRanges };
|