@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,11 +1,12 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { i,
|
|
3
|
-
import { t as c } from "./chunks/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as p } from "./chunks/
|
|
2
|
+
import { a as i, i as a, r as o, t as s } from "./chunks/define-6OfuRn5c.js";
|
|
3
|
+
import { t as c } from "./chunks/host-vars-DTKbhBPu.js";
|
|
4
|
+
import { t as l } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
|
+
import { i as u } from "./chunks/events-DQ4e9cPN.js";
|
|
6
|
+
import { h as d, o as f, t as p } from "./chunks/styles-CaeyhYDA.js";
|
|
7
|
+
import { t as m } from "./chunks/slots-BHTtBbPo.js";
|
|
7
8
|
// dist/components/bk-text.js
|
|
8
|
-
var
|
|
9
|
+
var h = class extends n {
|
|
9
10
|
static properties = {
|
|
10
11
|
variant: {
|
|
11
12
|
reflect: !0,
|
|
@@ -70,8 +71,8 @@ var m = class extends n {
|
|
|
70
71
|
}
|
|
71
72
|
};
|
|
72
73
|
internals;
|
|
73
|
-
i18n = new
|
|
74
|
-
slots = new
|
|
74
|
+
i18n = new l(this);
|
|
75
|
+
slots = new m(this);
|
|
75
76
|
hang = !1;
|
|
76
77
|
constructor() {
|
|
77
78
|
super(), this.variant = "body", this.tone = "neutral", this.muted = !1, this.faint = !1, this.strong = !1, this.mono = !1, this.tabular = !1, this.gradient = !1, this.shimmer = !1, this.ellipsis = "end", this.expandable = !1, this.expanded = !1, this.cut = !1, this.internals = this.attachInternals(), this.addEventListener("pointerenter", this.offerFullText);
|
|
@@ -79,10 +80,10 @@ var m = class extends n {
|
|
|
79
80
|
autoTitle = !1;
|
|
80
81
|
offerFullText = () => {
|
|
81
82
|
if (this.overflow !== "ellipsis" && this.overflow !== "lines" || this.expandable || this.hasAttribute("title") && !this.autoTitle) return;
|
|
82
|
-
let e = this.overflow === "lines" ? this.scrollHeight > this.clientHeight : this.scrollWidth > this.clientWidth, t =
|
|
83
|
+
let e = this.overflow === "lines" ? this.scrollHeight > this.clientHeight : this.scrollWidth > this.clientWidth, t = o(this)?.textContent?.replace(/\s+/g, " ").trim();
|
|
83
84
|
e && t ? (this.setAttribute("title", t), this.autoTitle = !0) : this.autoTitle &&= (this.removeAttribute("title"), !1);
|
|
84
85
|
};
|
|
85
|
-
static styles = [
|
|
86
|
+
static styles = [p, r`
|
|
86
87
|
:host {
|
|
87
88
|
--_bk-text-c: var(--bk-text); --_bk-text-w: var(--bk-weight-body, var(--bk-weight-regular));
|
|
88
89
|
font-feature-settings: var(--bk-features, normal);
|
|
@@ -100,7 +101,7 @@ var m = class extends n {
|
|
|
100
101
|
}
|
|
101
102
|
:host([variant="h3"]), :host([variant="h2"]), :host([variant="h1"]), :host([variant="page"]), :host([variant="display"]) {
|
|
102
103
|
line-height: var(--bk-line-height-heading); letter-spacing: var(--bk-tracking-heading); --_bk-text-w: var(--bk-weight-heading, var(--bk-weight-semibold));
|
|
103
|
-
${
|
|
104
|
+
${d} text-wrap-style: var(--bk-heading-wrap);
|
|
104
105
|
/* The colour stays with the colour chain of bk-text (muted, tone, color token): headings start from --bk-text-heading. */
|
|
105
106
|
--_bk-text-c: var(--bk-text-heading); color: var(--bk-text-color, var(--_bk-text-c));
|
|
106
107
|
}
|
|
@@ -109,7 +110,7 @@ var m = class extends n {
|
|
|
109
110
|
:host([variant="h2"]) { font-size: var(--bk-type-h2); }
|
|
110
111
|
:host([variant="h1"]) { font-size: var(--bk-type-h1); }
|
|
111
112
|
:host([variant="page"]) { font-size: var(--bk-type-page); }
|
|
112
|
-
:host([variant="display"]) { ${
|
|
113
|
+
:host([variant="display"]) { ${f} color: var(--bk-text-color, var(--_bk-text-c)); --_bk-text-w: var(--bk-weight-display, var(--bk-weight-heading, var(--bk-weight-semibold))); font-size: var(--bk-type-display); line-height: var(--bk-line-height-display); letter-spacing: var(--bk-tracking-display); }
|
|
113
114
|
/* Private names of their own, and currentColor: a parent's private variables never leak in. */
|
|
114
115
|
:host([variant="inherit"]) { text-wrap-style: inherit; font-size: inherit; line-height: inherit; letter-spacing: inherit; font-feature-settings: inherit; --_bk-text-w: inherit; --_bk-text-c: currentColor; }
|
|
115
116
|
:host([strong]) { --_bk-text-w: var(--bk-weight-semibold); }
|
|
@@ -170,7 +171,7 @@ var m = class extends n {
|
|
|
170
171
|
@media (forced-colors: active) { mark { background: Mark; color: MarkText; forced-color-adjust: none; } }
|
|
171
172
|
`];
|
|
172
173
|
segments;
|
|
173
|
-
text =
|
|
174
|
+
text = a(() => this.requestUpdate());
|
|
174
175
|
sizes = i(() => this.measure());
|
|
175
176
|
connectedCallback() {
|
|
176
177
|
super.connectedCallback(), this.highlight && this.text.observe(this, {
|
|
@@ -196,9 +197,9 @@ var m = class extends n {
|
|
|
196
197
|
return e.every((e) => e.nodeType === Node.TEXT_NODE) ? e.map((e) => e.textContent).join("") : void 0;
|
|
197
198
|
}
|
|
198
199
|
mark() {
|
|
199
|
-
let e = this.plainText(), t = (Array.isArray(this.highlight) ? this.highlight : [this.highlight ?? ""]).map((e) =>
|
|
200
|
+
let e = this.plainText(), t = (Array.isArray(this.highlight) ? this.highlight : [this.highlight ?? ""]).map((e) => g(e, this.i18n.locale).text).filter(Boolean);
|
|
200
201
|
if (e === void 0 || !t.length) return;
|
|
201
|
-
let n =
|
|
202
|
+
let n = g(e, this.i18n.locale), r = Array(e.length).fill(!1), i = !1;
|
|
202
203
|
for (let e of t) for (let t = n.text.indexOf(e); t !== -1; t = n.text.indexOf(e, t + e.length)) {
|
|
203
204
|
let a = n.from[t], o = n.to[t + e.length - 1];
|
|
204
205
|
for (let e = a; e < o; e++) r[e] = !0;
|
|
@@ -220,7 +221,7 @@ var m = class extends n {
|
|
|
220
221
|
this.level ? (this.setAttribute("role", "heading"), this.setAttribute("aria-level", String(this.level))) : this.getAttribute("role") === "heading" && (this.removeAttribute("role"), this.removeAttribute("aria-level"));
|
|
221
222
|
}
|
|
222
223
|
updated(e) {
|
|
223
|
-
e.has("level") && this.syncHeading(), e.has("lines") && (this
|
|
224
|
+
e.has("level") && this.syncHeading(), e.has("lines") && c(this, { "--_bk-text-lines": this.lines ? String(this.lines) : "" }), (e.has("overflow") || e.has("expandable") || e.has("lines") || e.has("highlight")) && this.observeClamp();
|
|
224
225
|
}
|
|
225
226
|
observeClamp() {
|
|
226
227
|
this.sizes.disconnect();
|
|
@@ -236,14 +237,14 @@ var m = class extends n {
|
|
|
236
237
|
}
|
|
237
238
|
onSlotChange = () => this.measure();
|
|
238
239
|
toggle() {
|
|
239
|
-
this.expanded = !this.expanded,
|
|
240
|
+
this.expanded = !this.expanded, u(this, this.expanded);
|
|
240
241
|
}
|
|
241
242
|
render() {
|
|
242
243
|
let n = this.segments ? this.segments.map((t) => t.mark ? e`<mark part="mark">${t.text}</mark>` : t.text) : e`<slot @slotchange=${this.onSlotChange}></slot>`, r = this.hang ? e`<span class="start"><slot name="start"></slot></span><span class="body">${n}</span>` : e`<span class="start"><slot name="start"></slot></span>${n}`;
|
|
243
244
|
return this.expandable && this.overflow === "lines" ? e`<span class="clamp" part="text" id="text">${r}</span>${this.cut || this.expanded ? e`<button class="toggle" part="toggle" type="button" aria-expanded=${this.expanded ? "true" : "false"} aria-controls="text" @click=${this.toggle}>${this.expanded ? this.showLessLabel || this.i18n.t("showLess") : this.showMoreLabel || this.i18n.t("showMore")}</button>` : t}` : this.overflow === "ellipsis" && this.ellipsis === "start" ? e`<bdi dir=${this.matches(":dir(rtl)") ? "rtl" : "ltr"}>${r}</bdi>` : r;
|
|
244
245
|
}
|
|
245
246
|
};
|
|
246
|
-
function
|
|
247
|
+
function g(e, t) {
|
|
247
248
|
let n = "", r = [], i = [], a = 0;
|
|
248
249
|
for (let o of e) {
|
|
249
250
|
let e = a + o.length, s = o.normalize("NFD").replace(/\p{M}/gu, "").toLocaleLowerCase(t);
|
|
@@ -259,5 +260,5 @@ function h(e, t) {
|
|
|
259
260
|
to: i
|
|
260
261
|
};
|
|
261
262
|
}
|
|
262
|
-
s("bk-text",
|
|
263
|
-
export {
|
|
263
|
+
s("bk-text", h);
|
|
264
|
+
export { h as BkText };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as r } from "./chunks/announcer-
|
|
3
|
-
import { t as i } from "./chunks/define-
|
|
2
|
+
import { t as r } from "./chunks/announcer-6tMlCOq1.js";
|
|
3
|
+
import { t as i } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { t as a } from "./chunks/events-DQ4e9cPN.js";
|
|
5
|
-
import { t as o } from "./chunks/i18n-
|
|
6
|
-
import { t as s, x as c } from "./chunks/styles-
|
|
5
|
+
import { t as o } from "./chunks/i18n-DFfGgd3d.js";
|
|
6
|
+
import { t as s, x as c } from "./chunks/styles-CaeyhYDA.js";
|
|
7
7
|
import { i as l, s as u } from "./chunks/format-Dj4SzErj.js";
|
|
8
8
|
// dist/components/bk-time-countdown.js
|
|
9
9
|
var d = [60, 10], f = 60, p = class extends t {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, 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/i18n-
|
|
4
|
-
import { t as a } from "./chunks/styles-
|
|
2
|
+
import { t as r } from "./chunks/define-6OfuRn5c.js";
|
|
3
|
+
import { t as i } from "./chunks/i18n-DFfGgd3d.js";
|
|
4
|
+
import { t as a } from "./chunks/styles-CaeyhYDA.js";
|
|
5
5
|
import { a as o, i as s, o as c, r as l, s as u } from "./chunks/format-Dj4SzErj.js";
|
|
6
6
|
// dist/components/bk-time-relative.js
|
|
7
7
|
var d = 1e3, f = 60 * d, p = 60 * f, m = /* @__PURE__ */ new Set(), h, g = 1e400, _ = !1;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as e } from "./chunks/heading-text-
|
|
1
|
+
import { t as e } from "./chunks/heading-text-B2kF-b8p.js";
|
|
2
2
|
import { a as t, n, t as r, u as i } from "./chunks/lit-D8x-qXgH.js";
|
|
3
|
-
import { t as a } from "./chunks/define-
|
|
4
|
-
import { t as o } from "./chunks/i18n-
|
|
3
|
+
import { t as a } from "./chunks/define-6OfuRn5c.js";
|
|
4
|
+
import { t as o } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
5
|
import { r as s, s as c } from "./chunks/format-Dj4SzErj.js";
|
|
6
6
|
import { t as l } from "./chunks/slots-BHTtBbPo.js";
|
|
7
|
-
import { t as u } from "./chunks/styles-
|
|
7
|
+
import { t as u } from "./chunks/styles-CaeyhYDA.js";
|
|
8
8
|
import "./chunks/info-DxwIeCXS.js";
|
|
9
9
|
// dist/components/bk-timeline-item.js
|
|
10
10
|
var d = /^\d{4}-\d{2}-\d{2}$/, f = class extends r {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, 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-
|
|
2
|
+
import { t as r } from "./chunks/define-6OfuRn5c.js";
|
|
3
|
+
import { t as i } from "./chunks/styles-CaeyhYDA.js";
|
|
4
4
|
import "./bk-timeline-item.js";
|
|
5
5
|
// dist/components/bk-timeline.js
|
|
6
6
|
var a = class extends t {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { t as BkToastGroup, n as toast } from "./chunks/bk-toast-group-
|
|
1
|
+
export { t as BkToastGroup, n as toast } from "./chunks/bk-toast-group-5nZg7BaJ.js";
|
|
2
2
|
import "./bk-toast.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
|
-
import { t as i } from "./chunks/define-
|
|
3
|
-
import { t as a } from "./chunks/i18n-
|
|
2
|
+
import { t as i } from "./chunks/define-6OfuRn5c.js";
|
|
3
|
+
import { t as a } from "./chunks/i18n-DFfGgd3d.js";
|
|
4
4
|
import { a as o, i as s, n as c, r as l, t as u } from "./chunks/message--qZJ4Gw7.js";
|
|
5
5
|
import { t as d } from "./chunks/slots-BHTtBbPo.js";
|
|
6
|
-
import { t as f } from "./chunks/styles-
|
|
7
|
-
import "./chunks/bk-icon-
|
|
6
|
+
import { t as f } from "./chunks/styles-CaeyhYDA.js";
|
|
7
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
8
8
|
import "./bk-button.js";
|
|
9
9
|
import "./chunks/close-CcDDKPf9.js";
|
|
10
10
|
// dist/components/bk-toast.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { r, t as i } from "./chunks/define-
|
|
3
|
-
import { t as a } from "./chunks/styles-
|
|
2
|
+
import { i as r, t as i } from "./chunks/define-6OfuRn5c.js";
|
|
3
|
+
import { t as a } from "./chunks/styles-CaeyhYDA.js";
|
|
4
4
|
import "./bk-divider.js";
|
|
5
5
|
// dist/components/bk-toolbar.js
|
|
6
6
|
var o = "button, a[href], input, select, textarea, [tabindex]:not(slot), [contenteditable]:not([contenteditable=false])", s = /^(?:text|search|url|tel|email|password|number|date|time|datetime-local|month|week)$/, c = class extends t {
|
|
@@ -1,10 +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 { a as i, i as a, s as o, t as s } from "./chunks/anchor-CNX3nt2F.js";
|
|
3
|
-
import { t as c } from "./chunks/define-
|
|
4
|
-
import { t as l } from "./chunks/styles-
|
|
5
|
-
import {
|
|
3
|
+
import { t as c } from "./chunks/define-6OfuRn5c.js";
|
|
4
|
+
import { t as l } from "./chunks/styles-CaeyhYDA.js";
|
|
5
|
+
import { c as u, t as d } from "./chunks/shortcuts-DPxCSO4M.js";
|
|
6
|
+
import "./bk-kbd.js";
|
|
6
7
|
// dist/components/bk-tooltip.js
|
|
7
|
-
var f = 100, p = 300, m = null, h = 0, g = class extends n {
|
|
8
|
+
var f = 100, p = 300, m = null, h = 0, g = (e) => e instanceof Element ? e.getAttribute("aria-hidden") === "true" ? "" : [...e.childNodes].map(g).join("") : e.nodeType === Node.TEXT_NODE ? e.textContent ?? "" : "", _ = class extends n {
|
|
8
9
|
static properties = {
|
|
9
10
|
content: {},
|
|
10
11
|
shortcut: {},
|
|
@@ -112,7 +113,7 @@ var f = 100, p = 300, m = null, h = 0, g = class extends n {
|
|
|
112
113
|
this.listenEl = null, this.target = null;
|
|
113
114
|
}
|
|
114
115
|
get text() {
|
|
115
|
-
let e = [...this.children].filter((e) => e.slot === "content").map(
|
|
116
|
+
let e = [...this.children].filter((e) => e.slot === "content").map(g).join(" ");
|
|
116
117
|
return (this.content || e).replace(/\s+/g, " ").trim();
|
|
117
118
|
}
|
|
118
119
|
describe() {
|
|
@@ -167,5 +168,5 @@ var f = 100, p = 300, m = null, h = 0, g = class extends n {
|
|
|
167
168
|
</div>`;
|
|
168
169
|
}
|
|
169
170
|
};
|
|
170
|
-
c("bk-tooltip",
|
|
171
|
-
export {
|
|
171
|
+
c("bk-tooltip", _);
|
|
172
|
+
export { _ as BkTooltip };
|
|
@@ -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/if-defined-z_20pBRr.js";
|
|
3
3
|
import { t as a } from "./chunks/style-map-BMvn17E7.js";
|
|
4
|
-
import { t as o } from "./chunks/define-
|
|
5
|
-
import { t as s } from "./chunks/link
|
|
4
|
+
import { t as o } from "./chunks/define-6OfuRn5c.js";
|
|
5
|
+
import { t as s } from "./chunks/link--YWr8exL.js";
|
|
6
6
|
import { i as c } from "./chunks/events-DQ4e9cPN.js";
|
|
7
|
-
import { t as l } from "./chunks/i18n-
|
|
8
|
-
import { t as u } from "./chunks/styles-
|
|
9
|
-
import { n as d } from "./chunks/toggle-control-
|
|
10
|
-
import "./chunks/bk-icon-
|
|
7
|
+
import { t as l } from "./chunks/i18n-DFfGgd3d.js";
|
|
8
|
+
import { t as u } from "./chunks/styles-CaeyhYDA.js";
|
|
9
|
+
import { n as d } from "./chunks/toggle-control-Cgqp1jhf.js";
|
|
10
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
11
11
|
import "./bk-spinner.js";
|
|
12
12
|
import "./chunks/check-BkWcIJJJ.js";
|
|
13
13
|
import "./chunks/chevron-right-CxqvZ6TS.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import {
|
|
2
|
+
import { i as r, r as i, t as a } from "./chunks/define-6OfuRn5c.js";
|
|
3
3
|
import { n as o } from "./chunks/events-DQ4e9cPN.js";
|
|
4
4
|
import { t as s } from "./chunks/state-XYmTmnOw.js";
|
|
5
|
-
import { t as c } from "./chunks/styles-
|
|
5
|
+
import { t as c } from "./chunks/styles-CaeyhYDA.js";
|
|
6
6
|
import { t as l } from "./chunks/typeahead-CTUSPo-a.js";
|
|
7
|
-
import { t as u } from "./chunks/virtual-
|
|
7
|
+
import { t as u } from "./chunks/virtual-D-qgACnE.js";
|
|
8
8
|
import { BkTreeItem as d } from "./bk-tree-item.js";
|
|
9
9
|
import "./bk-skeleton.js";
|
|
10
10
|
// dist/components/bk-tree.js
|
|
@@ -22,7 +22,7 @@ var f = class extends t {
|
|
|
22
22
|
};
|
|
23
23
|
active = null;
|
|
24
24
|
typeahead = new l();
|
|
25
|
-
observer =
|
|
25
|
+
observer = r(() => {
|
|
26
26
|
this.restore(), this.syncItems(), this.syncFocus(), this.requestUpdate();
|
|
27
27
|
});
|
|
28
28
|
known = /* @__PURE__ */ new WeakSet();
|
|
@@ -72,7 +72,7 @@ var f = class extends t {
|
|
|
72
72
|
}
|
|
73
73
|
`];
|
|
74
74
|
get items() {
|
|
75
|
-
return [...
|
|
75
|
+
return [...i(this)?.querySelectorAll("bk-tree-item") ?? []].filter((e) => e instanceof d && e.closest("bk-tree") === this);
|
|
76
76
|
}
|
|
77
77
|
get visibleItems() {
|
|
78
78
|
return this.items.filter((e) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as s } from "./chunks/i18n-
|
|
3
|
+
import { r as a, t as o } from "./chunks/define-6OfuRn5c.js";
|
|
4
|
+
import { t as s } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
5
|
import { i as c } from "./chunks/format-Dj4SzErj.js";
|
|
6
6
|
import { t as l } from "./chunks/loading-B37QBUkv.js";
|
|
7
|
-
import { t as u } from "./chunks/styles-
|
|
7
|
+
import { t as u } from "./chunks/styles-CaeyhYDA.js";
|
|
8
8
|
import "./bk-button.js";
|
|
9
|
-
import "./chunks/bk-icon-
|
|
9
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
10
10
|
import "./bk-spinner.js";
|
|
11
11
|
import "./chunks/closed-caption-CnJInFtE.js";
|
|
12
12
|
import "./chunks/closed-caption-fill-PlMslC35.js";
|
|
@@ -336,9 +336,9 @@ var d = 5, f = 2500, p = [
|
|
|
336
336
|
</div>
|
|
337
337
|
<span class="time" part="time" aria-hidden="true">${this.clock(this.duration)}</span>
|
|
338
338
|
<bk-button class="mute" variant="ghost" size="sm" icon=${this.muted ? "volume-off" : "volume-up"} label=${this.i18n.t("mute")}
|
|
339
|
-
|
|
339
|
+
.pressed=${this.muted} @click=${this.toggleMute}></bk-button>
|
|
340
340
|
${this.hasCaptions ? e`<bk-button class="cc" variant="ghost" size="sm" icon=${this.captions ? "closed-caption-fill" : "closed-caption"}
|
|
341
|
-
label=${this.i18n.t("captions")}
|
|
341
|
+
label=${this.i18n.t("captions")} .pressed=${this.captions} @click=${this.toggleCaptions}></bk-button>` : t}
|
|
342
342
|
${this.canFullscreen ? e`<bk-button class="fs" variant="ghost" size="sm" icon=${this.fullscreen ? "fullscreen-exit" : "fullscreen"}
|
|
343
343
|
label=${this.fullscreen ? this.i18n.t("exitFullscreen") : this.i18n.t("fullscreen")} @click=${this.toggleFullscreen}></bk-button>` : t}
|
|
344
344
|
</div>`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as r } from "./chunks/define-
|
|
3
|
-
import { C as i, S as a, t as o } from "./chunks/styles-
|
|
2
|
+
import { t as r } from "./chunks/define-6OfuRn5c.js";
|
|
3
|
+
import { C as i, S as a, t as o } from "./chunks/styles-CaeyhYDA.js";
|
|
4
4
|
// dist/components/bk-visually-hidden.js
|
|
5
5
|
var s = class extends t {
|
|
6
6
|
static properties = { focusable: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { 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 { t as o } from "./chunks/events-DQ4e9cPN.js";
|
|
5
|
-
import { n as s, r as c } from "./chunks/form-control-
|
|
6
|
-
import { t as l, x as u } from "./chunks/styles-
|
|
5
|
+
import { n as s, r as c } from "./chunks/form-control-Bmk0SRDX.js";
|
|
6
|
+
import { t as l, x as u } from "./chunks/styles-CaeyhYDA.js";
|
|
7
7
|
import "./bk-button.js";
|
|
8
8
|
import "./bk-input-slider.js";
|
|
9
|
-
import "./chunks/bk-input-text-
|
|
9
|
+
import "./chunks/bk-input-text-2n89GDIT.js";
|
|
10
10
|
import "./chunks/zoom-in-C934gQ2K.js";
|
|
11
11
|
import "./chunks/zoom-out-wKpHan14.js";
|
|
12
12
|
// dist/components/bk-zoom.js
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// dist/internal/announcer.js
|
|
2
|
+
var e = [], t = /* @__PURE__ */ new Set();
|
|
3
|
+
function n(n, r) {
|
|
4
|
+
let i = e.indexOf(n);
|
|
5
|
+
i >= 0 && e.splice(i, 1), r && e.push(n);
|
|
6
|
+
for (let e of [...t]) e();
|
|
7
|
+
}
|
|
8
|
+
function r(e) {
|
|
9
|
+
return t.add(e), () => t.delete(e);
|
|
10
|
+
}
|
|
11
|
+
function i() {
|
|
12
|
+
for (let t = e.length - 1; t >= 0; t--) {
|
|
13
|
+
let n = e[t];
|
|
14
|
+
if (n.isConnected && n.matches(":modal")) return n;
|
|
15
|
+
}
|
|
16
|
+
let t;
|
|
17
|
+
for (let e of document.querySelectorAll("dialog")) e.matches(":modal") && (t = e);
|
|
18
|
+
return t;
|
|
19
|
+
}
|
|
20
|
+
var a = {
|
|
21
|
+
polite: { pending: [] },
|
|
22
|
+
assertive: { pending: [] }
|
|
23
|
+
};
|
|
24
|
+
function o(e, t = {}) {
|
|
25
|
+
if (!e || typeof document > "u") return;
|
|
26
|
+
let n = t.assertive ? "assertive" : "polite", r = a[n];
|
|
27
|
+
if (!r.el) {
|
|
28
|
+
let e = r.el = document.createElement("div");
|
|
29
|
+
e.setAttribute("aria-live", n), e.setAttribute("aria-atomic", "true"), e.setAttribute("data-bk-announcer", n === "polite" ? "" : n), e.style.cssText = "position:fixed;inline-size:1px;block-size:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;";
|
|
30
|
+
}
|
|
31
|
+
let o = r.el, s = i() ?? document.body;
|
|
32
|
+
o.parentNode !== s && s.append(o);
|
|
33
|
+
let c = r.pending.findIndex((e) => e.source === t.source);
|
|
34
|
+
c >= 0 && r.pending.splice(c, 1), r.pending.push({
|
|
35
|
+
text: e,
|
|
36
|
+
source: t.source
|
|
37
|
+
}), o.textContent = "", clearTimeout(r.timer), r.timer = setTimeout(() => {
|
|
38
|
+
o.replaceChildren(...r.pending.map((e) => Object.assign(document.createElement("div"), { textContent: e.text }))), r.pending = [];
|
|
39
|
+
}, 50);
|
|
40
|
+
}
|
|
41
|
+
export { r as i, i as n, n as r, o as t };
|
package/dist/standalone/chunks/{bk-alert-offline-B1bQxOZp.js → bk-alert-offline-hCLuG-RM.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./lit-D8x-qXgH.js";
|
|
2
|
-
import { t as i } from "./define-
|
|
3
|
-
import { t as a } from "./i18n-
|
|
4
|
-
import { t as o } from "./styles-
|
|
2
|
+
import { t as i } from "./define-6OfuRn5c.js";
|
|
3
|
+
import { t as a } from "./i18n-DFfGgd3d.js";
|
|
4
|
+
import { t as o } from "./styles-CaeyhYDA.js";
|
|
5
5
|
import "../bk-alert.js";
|
|
6
6
|
import "./check-circle-DYcaKS5n.js";
|
|
7
7
|
import "./cloud-off-BFlzj1wG.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./lit-D8x-qXgH.js";
|
|
2
|
-
import { t as i } from "./i18n-
|
|
3
|
-
import { t as a } from "./announcer-
|
|
4
|
-
import {
|
|
2
|
+
import { t as i } from "./i18n-DFfGgd3d.js";
|
|
3
|
+
import { t as a } from "./announcer-6tMlCOq1.js";
|
|
4
|
+
import { a as o, t as s } from "./define-6OfuRn5c.js";
|
|
5
5
|
import { t as c } from "./events-DQ4e9cPN.js";
|
|
6
|
-
import { t as l } from "./styles-
|
|
6
|
+
import { t as l } from "./styles-CaeyhYDA.js";
|
|
7
7
|
import "../bk-button.js";
|
|
8
8
|
import "../bk-carousel-item.js";
|
|
9
9
|
import "./chevron-left-BHF34JzQ.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as e, i as t, n, t as r, u as i } from "./lit-D8x-qXgH.js";
|
|
2
2
|
import { t as a } from "./style-map-BMvn17E7.js";
|
|
3
3
|
import { n as o, r as s, t as c } from "./directive-CwRgozUW.js";
|
|
4
|
-
import {
|
|
5
|
-
import { t as f } from "./i18n-
|
|
6
|
-
import { t as p } from "./styles-
|
|
7
|
-
import { r as m } from "./chart-tokens-
|
|
4
|
+
import { a as l, r as u, t as d } from "./define-6OfuRn5c.js";
|
|
5
|
+
import { t as f } from "./i18n-DFfGgd3d.js";
|
|
6
|
+
import { t as p } from "./styles-CaeyhYDA.js";
|
|
7
|
+
import { r as m } from "./chart-tokens-DQ4hVSmn.js";
|
|
8
8
|
import "../bk-button.js";
|
|
9
|
-
import "./bk-dialog-
|
|
9
|
+
import "./bk-dialog-DcvwnOtN.js";
|
|
10
10
|
import "./open-in-full-GXPfu8FA.js";
|
|
11
11
|
// node_modules/lit-html/directives/unsafe-html.js
|
|
12
12
|
var h = class extends o {
|
|
@@ -1,27 +1,58 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./lit-D8x-qXgH.js";
|
|
2
|
-
import { i, t as a } from "./define-
|
|
3
|
-
import { t as o } from "./i18n-
|
|
2
|
+
import { a as i, t as a } from "./define-6OfuRn5c.js";
|
|
3
|
+
import { t as o } from "./i18n-DFfGgd3d.js";
|
|
4
4
|
import { c as s, i as c } from "./anchor-CNX3nt2F.js";
|
|
5
5
|
import { n as l, t as u } from "./command-DsBfHD9-.js";
|
|
6
6
|
import { r as d } from "./events-DQ4e9cPN.js";
|
|
7
|
-
import {
|
|
8
|
-
import { t as p } from "./
|
|
9
|
-
import {
|
|
7
|
+
import { r as f } from "./announcer-6tMlCOq1.js";
|
|
8
|
+
import { t as p } from "./slots-BHTtBbPo.js";
|
|
9
|
+
import { t as m } from "./state-XYmTmnOw.js";
|
|
10
|
+
import { h, t as g, u as _ } from "./styles-CaeyhYDA.js";
|
|
10
11
|
import "../bk-button.js";
|
|
11
12
|
import "./close-CcDDKPf9.js";
|
|
12
13
|
import "./description-DXoJ8atg.js";
|
|
13
14
|
import "./drag-indicator--UOafVoi.js";
|
|
14
|
-
// dist/internal/
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
// dist/internal/backdrop.js
|
|
16
|
+
var v = class {
|
|
17
|
+
dialog;
|
|
18
|
+
pressed = !1;
|
|
19
|
+
constructor(e) {
|
|
20
|
+
this.dialog = e;
|
|
21
|
+
}
|
|
22
|
+
outside(e) {
|
|
23
|
+
let t = this.dialog();
|
|
24
|
+
if (!t || e.target !== t) return !1;
|
|
25
|
+
let n = t.getBoundingClientRect();
|
|
26
|
+
return !(e.clientX >= n.left && e.clientX <= n.right && e.clientY >= n.top && e.clientY <= n.bottom);
|
|
27
|
+
}
|
|
28
|
+
press(e) {
|
|
29
|
+
this.pressed = this.outside(e);
|
|
30
|
+
}
|
|
31
|
+
isBackdropClick(e) {
|
|
32
|
+
let t = this.pressed;
|
|
33
|
+
return this.pressed = !1, t && this.outside(e);
|
|
34
|
+
}
|
|
35
|
+
}, y = "data-bk-scroll-locked", b = /* @__PURE__ */ new Set();
|
|
36
|
+
function x(e) {
|
|
37
|
+
let t = !b.size;
|
|
38
|
+
if (b.add(e), !t) return;
|
|
39
|
+
let n = document.documentElement, r = window.innerWidth - n.clientWidth > 0;
|
|
40
|
+
n.setAttribute(y, r ? "gutter" : "");
|
|
18
41
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
42
|
+
function S(e) {
|
|
43
|
+
if (!b.delete(e) || b.size) return;
|
|
44
|
+
let t = document.documentElement;
|
|
45
|
+
if (!t.hasAttribute(y)) return;
|
|
46
|
+
let { scrollX: n, scrollY: r } = window;
|
|
47
|
+
t.removeAttribute(y), t.getBoundingClientRect(), (window.scrollX !== n || window.scrollY !== r) && window.scrollTo({
|
|
48
|
+
left: n,
|
|
49
|
+
top: r,
|
|
50
|
+
behavior: "instant"
|
|
51
|
+
});
|
|
21
52
|
}
|
|
22
53
|
// dist/components/bk-dialog.js
|
|
23
54
|
l();
|
|
24
|
-
var
|
|
55
|
+
var C = class extends n {
|
|
25
56
|
static properties = {
|
|
26
57
|
open: {
|
|
27
58
|
type: Boolean,
|
|
@@ -73,8 +104,8 @@ var x = class extends n {
|
|
|
73
104
|
e === "role" ? (n === "alert" || n === "alertdialog") && (this.alert = !0, this.removeAttribute("role")) : e === "dismissible" ? this.dismissible = n !== "false" && n !== null : super.attributeChangedCallback(e, t, n);
|
|
74
105
|
}
|
|
75
106
|
static styles = [
|
|
76
|
-
h,
|
|
77
107
|
g,
|
|
108
|
+
_,
|
|
78
109
|
r`
|
|
79
110
|
:host { display: contents; }
|
|
80
111
|
dialog {
|
|
@@ -160,7 +191,7 @@ var x = class extends n {
|
|
|
160
191
|
.header.single .titles { padding-block-start: calc((var(--_bk-dialog-row) - var(--_bk-dialog-lh)) / 2); }
|
|
161
192
|
.header.single .close { margin-block-start: 0; }
|
|
162
193
|
.heading {
|
|
163
|
-
margin: 0; font-size: var(--bk-dialog-heading-size, var(--bk-type-h3)); font-weight: var(--bk-weight-heading, var(--bk-weight-semibold)); ${
|
|
194
|
+
margin: 0; font-size: var(--bk-dialog-heading-size, var(--bk-type-h3)); font-weight: var(--bk-weight-heading, var(--bk-weight-semibold)); ${h}
|
|
164
195
|
line-height: var(--bk-line-height-heading); letter-spacing: var(--bk-tracking-heading); text-wrap-style: var(--bk-heading-wrap);
|
|
165
196
|
}
|
|
166
197
|
.desc { margin: 0; text-wrap-style: var(--bk-body-wrap); color: var(--bk-text-muted); font-size: var(--bk-type-body); line-height: var(--bk-line-height-body); }
|
|
@@ -187,14 +218,14 @@ var x = class extends n {
|
|
|
187
218
|
get dialog() {
|
|
188
219
|
return this.renderRoot?.querySelector("dialog") ?? null;
|
|
189
220
|
}
|
|
190
|
-
slots = new
|
|
221
|
+
slots = new p(this);
|
|
191
222
|
startSize = i(() => this.measureStart());
|
|
192
223
|
measureStart() {
|
|
193
224
|
let e = this.renderRoot.querySelector("slot[name=\"start\"]")?.assignedElements()[0];
|
|
194
225
|
this.startSize.disconnect(), e && this.startSize.observe(e), this.renderRoot.querySelector(".header")?.style.setProperty("--_bk-dialog-start", `${e?.getBoundingClientRect().height ?? 0}px`);
|
|
195
226
|
}
|
|
196
227
|
disconnectedCallback() {
|
|
197
|
-
super.disconnectedCallback(), this.startSize.disconnect(),
|
|
228
|
+
super.disconnectedCallback(), this.startSize.disconnect(), S(this), this.dialog && f(this.dialog, !1), this.stopPlacing(), window.removeEventListener("resize", this.onViewport);
|
|
198
229
|
}
|
|
199
230
|
show() {
|
|
200
231
|
this.open = !0;
|
|
@@ -237,10 +268,10 @@ var x = class extends n {
|
|
|
237
268
|
updated(e) {
|
|
238
269
|
let t = this.dialog;
|
|
239
270
|
if (t && e.has("open")) {
|
|
240
|
-
if (this.open && !t.open) this.nonModal ? (this.opener = c(), t.show(), this.restoreFloating(), window.addEventListener("resize", this.onViewport, { passive: !0 })) : (t.showModal(),
|
|
271
|
+
if (this.open && !t.open) this.nonModal ? (this.opener = c(), t.show(), this.restoreFloating(), window.addEventListener("resize", this.onViewport, { passive: !0 })) : (t.showModal(), x(this), f(t, !0)), this.focusFirst(), this.syncCommandSource(), d(this, "open");
|
|
241
272
|
else if (!this.open && e.get("open") === !0) {
|
|
242
273
|
let e = this.nonModal && t.contains(c());
|
|
243
|
-
t.open && t.close(),
|
|
274
|
+
t.open && t.close(), S(this), f(t, !1), this.stopPlacing(), window.removeEventListener("resize", this.onViewport), e && this.opener instanceof HTMLElement && this.opener.isConnected && this.opener.focus({ preventScroll: !0 }), this.opener = null, this.syncCommandSource(), this.dispatchEvent(new CustomEvent("close", { detail: { returnValue: this.returnValue } }));
|
|
244
275
|
}
|
|
245
276
|
}
|
|
246
277
|
}
|
|
@@ -269,12 +300,15 @@ var x = class extends n {
|
|
|
269
300
|
onNativeClose(e) {
|
|
270
301
|
e.target === this.dialog && this.open && this.close("");
|
|
271
302
|
}
|
|
303
|
+
backdropPress = new v(() => this.dialog);
|
|
304
|
+
onBackdropPress(e) {
|
|
305
|
+
this.backdropPress.press(e);
|
|
306
|
+
}
|
|
272
307
|
onBackdrop(e) {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
e.clientX >= t.left && e.clientX <= t.right && e.clientY >= t.top && e.clientY <= t.bottom || this.dismiss();
|
|
308
|
+
let t = this.backdropPress.isBackdropClick(e);
|
|
309
|
+
this.alert || t && this.dismiss();
|
|
276
310
|
}
|
|
277
|
-
floatState = new
|
|
311
|
+
floatState = new m(this, () => this.floating && this.persistKey && `dialog:${this.persistKey}`);
|
|
278
312
|
dragged = !1;
|
|
279
313
|
stopPlace;
|
|
280
314
|
onViewport = () => {
|
|
@@ -398,7 +432,7 @@ var x = class extends n {
|
|
|
398
432
|
let n = this.heading || this.description || this.dismissible || this.slots.has("start"), r = this.bare && this.heading || void 0;
|
|
399
433
|
return e`<dialog part="dialog" tabindex="-1" role=${this.alert ? "alertdialog" : t} aria-labelledby=${this.heading && !this.bare ? "heading" : t}
|
|
400
434
|
aria-label=${r ?? t}
|
|
401
|
-
aria-describedby=${this.description && !this.bare ? "desc" : this.alert && !this.bare ? "body" : t} @cancel=${this.onCancel} @close=${this.onNativeClose} @click=${this.onBackdrop} @keydown=${this.onKeydown}>
|
|
435
|
+
aria-describedby=${this.description && !this.bare ? "desc" : this.alert && !this.bare ? "body" : t} @cancel=${this.onCancel} @close=${this.onNativeClose} @pointerdown=${this.onBackdropPress} @click=${this.onBackdrop} @keydown=${this.onKeydown}>
|
|
402
436
|
<div class="header ${n ? "" : "header-empty"} ${this.description || this.slots.has("header") ? "" : "single"}" part="header" @pointerdown=${this.onHeaderDown}>
|
|
403
437
|
${this.nonModal && !this.bare ? e`<bk-button variant="ghost" class="move" part="move" icon="drag-indicator" size="sm" label=${this.moveLabel || this.i18n.t("moveWindow")}
|
|
404
438
|
aria-pressed=${this.placing === "move" ? "true" : "false"} @click=${this.onMoveClick} @keydown=${this.onMoveKey}></bk-button>` : t}
|
|
@@ -419,5 +453,5 @@ var x = class extends n {
|
|
|
419
453
|
</dialog>`;
|
|
420
454
|
}
|
|
421
455
|
};
|
|
422
|
-
a("bk-dialog",
|
|
423
|
-
export {
|
|
456
|
+
a("bk-dialog", C);
|
|
457
|
+
export { C as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e, t, u as n } from "./lit-D8x-qXgH.js";
|
|
2
|
-
import { t as r } from "./define-
|
|
3
|
-
import { t as i } from "./styles-
|
|
2
|
+
import { t as r } from "./define-6OfuRn5c.js";
|
|
3
|
+
import { t as i } from "./styles-CaeyhYDA.js";
|
|
4
4
|
import { r as a, t as o } from "./registry-BTiSxoP0.js";
|
|
5
5
|
// dist/icons/load.js
|
|
6
6
|
var s = {
|
|
@@ -163,6 +163,7 @@ var s = {
|
|
|
163
163
|
orbit: () => import("./orbit-BCKcoOHe.js").then((e) => e.n),
|
|
164
164
|
printer: () => import("./printer-DXIKcmWu.js").then((e) => e.n),
|
|
165
165
|
save: () => import("./save-vKtByCj5.js").then((e) => e.n),
|
|
166
|
+
"save-as": () => import("./save-as-DBGZjczB.js").then((e) => e.n),
|
|
166
167
|
sparkle: () => import("./sparkle-0-vbC6y1.js").then((e) => e.n),
|
|
167
168
|
grid: () => import("./grid-BV0_DQ5v.js").then((e) => e.t),
|
|
168
169
|
"thumb-up": () => import("./thumb-up-D_tQr4Rm.js").then((e) => e.n),
|
|
@@ -281,7 +282,7 @@ function d(e) {
|
|
|
281
282
|
if (l.has(e)) return;
|
|
282
283
|
l.add(e);
|
|
283
284
|
let t = s[e];
|
|
284
|
-
t ? (u.add(e), t().catch(() => console.warn(`<bk-icon>: cannot load the icon "${e}".`))) : console.warn(`<bk-icon>:
|
|
285
|
+
t ? (u.add(e), t().catch(() => console.warn(`<bk-icon>: cannot load the icon "${e}".`))) : console.warn(`<bk-icon>: no code loaded the icon "${e}". For an icon of the core set, add: import "@bk2k/ui/icons/${e}.js"; for another icon, register it with registerIcons().`);
|
|
285
286
|
}
|
|
286
287
|
var f = /* @__PURE__ */ new Map();
|
|
287
288
|
function p(e) {
|