@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,16 +1,16 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./style-map-BMvn17E7.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a, t as o } from "./define-6OfuRn5c.js";
|
|
4
4
|
import { n as s } from "./events-DQ4e9cPN.js";
|
|
5
|
-
import { t as c } from "./i18n-
|
|
6
|
-
import { n as l, t as u } from "./crop-frame-
|
|
5
|
+
import { t as c } from "./i18n-DFfGgd3d.js";
|
|
6
|
+
import { n as l, t as u } from "./crop-frame-Z9N0QML4.js";
|
|
7
7
|
import "./contrast-le8TlA_2.js";
|
|
8
8
|
import { t as d } from "./loading-B37QBUkv.js";
|
|
9
|
-
import { S as f, t as p, x as m } from "./styles-
|
|
9
|
+
import { S as f, t as p, x as m } from "./styles-CaeyhYDA.js";
|
|
10
10
|
import "../bk-button.js";
|
|
11
11
|
import "../bk-chip.js";
|
|
12
12
|
import "../bk-chip-group.js";
|
|
13
|
-
import "./bk-icon-
|
|
13
|
+
import "./bk-icon-D4kI4F18.js";
|
|
14
14
|
import "../bk-image-compare.js";
|
|
15
15
|
import "../bk-input-slider.js";
|
|
16
16
|
import "../bk-menu.js";
|
package/dist/standalone/chunks/{bk-input-date-range-Cbx_lpf0.js → bk-input-date-range-C0Vd-p0T.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, n as t, u as n } from "./lit-D8x-qXgH.js";
|
|
2
|
-
import { t as r } from "./define-
|
|
3
|
-
import { a as i, l as a, o, r as s, s as c, t as l } from "./date-field-
|
|
2
|
+
import { t as r } from "./define-6OfuRn5c.js";
|
|
3
|
+
import { a as i, l as a, o, r as s, s as c, t as l } from "./date-field-Dy1_qxNv.js";
|
|
4
4
|
import { t as u } from "./state-XYmTmnOw.js";
|
|
5
5
|
import { utc as d, validIso as f } from "../bk-calendar.js";
|
|
6
6
|
import "../bk-button.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as e, n as t, u as n } from "./lit-D8x-qXgH.js";
|
|
2
2
|
import { t as r } from "./if-defined-z_20pBRr.js";
|
|
3
|
-
import { t as i } from "./i18n-
|
|
4
|
-
import { t as a } from "./define-
|
|
5
|
-
import { n as o } from "./bk-input-text-
|
|
3
|
+
import { t as i } from "./i18n-DFfGgd3d.js";
|
|
4
|
+
import { t as a } from "./define-6OfuRn5c.js";
|
|
5
|
+
import { n as o } from "./bk-input-text-2n89GDIT.js";
|
|
6
6
|
import { t as s } from "./events-DQ4e9cPN.js";
|
|
7
7
|
import { n as c, t as l } from "./field-DkBkSgJI.js";
|
|
8
|
-
import { t as u } from "./form-control-
|
|
9
|
-
import { t as d } from "./prose-
|
|
10
|
-
import { r as f, s as p, t as m } from "./styles-
|
|
8
|
+
import { t as u } from "./form-control-Bmk0SRDX.js";
|
|
9
|
+
import { t as d } from "./prose-BiuJgiah.js";
|
|
10
|
+
import { r as f, s as p, t as m } from "./styles-CaeyhYDA.js";
|
|
11
11
|
import "../bk-button.js";
|
|
12
12
|
import "../bk-divider.js";
|
|
13
13
|
import "../bk-select.js";
|
|
@@ -2,23 +2,25 @@ import { a as e, n as t, u as n } from "./lit-D8x-qXgH.js";
|
|
|
2
2
|
import { t as r } from "./if-defined-z_20pBRr.js";
|
|
3
3
|
import { t as i } from "./live-CgLyfc6z.js";
|
|
4
4
|
import { t as a } from "./style-map-BMvn17E7.js";
|
|
5
|
-
import { t as o } from "./define-
|
|
5
|
+
import { t as o } from "./define-6OfuRn5c.js";
|
|
6
6
|
import { t as s } from "./events-DQ4e9cPN.js";
|
|
7
|
-
import { t as c } from "./text-field-
|
|
8
|
-
import "./
|
|
7
|
+
import { t as c } from "./text-field-CufOGdfr.js";
|
|
8
|
+
import { g as l, t as u } from "./shortcuts-DPxCSO4M.js";
|
|
9
|
+
import "./bk-icon-D4kI4F18.js";
|
|
10
|
+
import { r as d } from "./submit-BjBGB8OW.js";
|
|
9
11
|
import "./search-Cm9mOqRy.js";
|
|
10
12
|
import "./visibility-DFNni3bx.js";
|
|
11
13
|
import "./visibility-off-urFZQ4oB.js";
|
|
12
|
-
function
|
|
14
|
+
function f(e, t) {
|
|
13
15
|
return t === void 0 || !(t >= 0) ? 0 : e >= t ? 2 : +(e >= Math.ceil(t * .9));
|
|
14
16
|
}
|
|
15
|
-
var
|
|
17
|
+
var p = class {
|
|
16
18
|
level = 0;
|
|
17
19
|
live = "";
|
|
18
20
|
visible = "";
|
|
19
21
|
label = "";
|
|
20
22
|
update(e, t, n, r = !0) {
|
|
21
|
-
let i = n !== void 0 && n >= 0 ? n : void 0, a = new Intl.NumberFormat(e.locale), o = a.format(t), s = i === void 0 ? "" : a.format(i), c =
|
|
23
|
+
let i = n !== void 0 && n >= 0 ? n : void 0, a = new Intl.NumberFormat(e.locale), o = a.format(t), s = i === void 0 ? "" : a.format(i), c = f(t, i);
|
|
22
24
|
if (this.visible = i === void 0 ? o : e.t("characterCount", {
|
|
23
25
|
count: o,
|
|
24
26
|
max: s
|
|
@@ -34,30 +36,30 @@ var u = class {
|
|
|
34
36
|
} else (c < this.level || !r) && (this.live = "");
|
|
35
37
|
this.level = c;
|
|
36
38
|
}
|
|
37
|
-
},
|
|
39
|
+
}, m = {
|
|
38
40
|
9: /[0-9]/,
|
|
39
41
|
a: /\p{L}/u,
|
|
40
42
|
"*": /\S/u
|
|
41
|
-
},
|
|
42
|
-
function
|
|
43
|
-
let t =
|
|
43
|
+
}, h = /* @__PURE__ */ new Map();
|
|
44
|
+
function g(e) {
|
|
45
|
+
let t = h.get(e);
|
|
44
46
|
if (t) return t;
|
|
45
47
|
t = [];
|
|
46
48
|
for (let n = 0; n < e.length; n++) {
|
|
47
49
|
let r = e[n];
|
|
48
|
-
r === "\\" && n + 1 < e.length ? t.push({ fixed: e[++n] }) :
|
|
50
|
+
r === "\\" && n + 1 < e.length ? t.push({ fixed: e[++n] }) : m[r] ? t.push({ slot: m[r] }) : t.push({ fixed: r });
|
|
49
51
|
}
|
|
50
|
-
return
|
|
52
|
+
return h.set(e, t), t;
|
|
51
53
|
}
|
|
52
|
-
function
|
|
53
|
-
return
|
|
54
|
+
function _(e) {
|
|
55
|
+
return g(e).filter((e) => e.slot).length;
|
|
54
56
|
}
|
|
55
|
-
function
|
|
56
|
-
let t =
|
|
57
|
-
return t.length > 0 && t.every((e) => e.slot ===
|
|
57
|
+
function v(e) {
|
|
58
|
+
let t = g(e).filter((e) => e.slot);
|
|
59
|
+
return t.length > 0 && t.every((e) => e.slot === m[9]);
|
|
58
60
|
}
|
|
59
|
-
function
|
|
60
|
-
let n =
|
|
61
|
+
function y(e, t) {
|
|
62
|
+
let n = g(t), r = [...e], i = "", a = 0;
|
|
61
63
|
for (let e of n) {
|
|
62
64
|
if (a >= r.length) break;
|
|
63
65
|
if (e.fixed !== void 0) r[a] === e.fixed && a++;
|
|
@@ -68,17 +70,17 @@ function g(e, t) {
|
|
|
68
70
|
}
|
|
69
71
|
return i;
|
|
70
72
|
}
|
|
71
|
-
function
|
|
72
|
-
let n =
|
|
73
|
+
function b(e, t) {
|
|
74
|
+
let n = g(t), r = [...e], i = "", a = "", o = 0;
|
|
73
75
|
for (let e of n) {
|
|
74
76
|
if (o >= r.length) break;
|
|
75
77
|
e.fixed === void 0 ? (i += a + r[o++], a = "") : a += e.fixed;
|
|
76
78
|
}
|
|
77
79
|
return i;
|
|
78
80
|
}
|
|
79
|
-
function
|
|
81
|
+
function x(e, t, n) {
|
|
80
82
|
if (n <= 0) return 0;
|
|
81
|
-
let r =
|
|
83
|
+
let r = g(t), i = [...e], a = 0, o = 0;
|
|
82
84
|
for (let e of r) {
|
|
83
85
|
if (o >= i.length) break;
|
|
84
86
|
if (e.fixed !== void 0) i[o] === e.fixed && o++;
|
|
@@ -87,14 +89,14 @@ function v(e, t, n) {
|
|
|
87
89
|
return e.length;
|
|
88
90
|
}
|
|
89
91
|
// dist/components/bk-input-text.js
|
|
90
|
-
var
|
|
92
|
+
var S = /* @__PURE__ */ new Set([
|
|
91
93
|
"text",
|
|
92
94
|
"email",
|
|
93
95
|
"password",
|
|
94
96
|
"search",
|
|
95
97
|
"url",
|
|
96
98
|
"tel"
|
|
97
|
-
]),
|
|
99
|
+
]), C = {
|
|
98
100
|
number: "<bk-input-number>",
|
|
99
101
|
date: "<bk-input-date>",
|
|
100
102
|
time: "<bk-input-time>",
|
|
@@ -106,7 +108,7 @@ var y = /* @__PURE__ */ new Set([
|
|
|
106
108
|
file: "<bk-input-file>",
|
|
107
109
|
checkbox: "<bk-checkbox>",
|
|
108
110
|
radio: "<bk-radio-group>"
|
|
109
|
-
},
|
|
111
|
+
}, w = /* @__PURE__ */ new Set(), T = class o extends c {
|
|
110
112
|
static properties = {
|
|
111
113
|
...c.properties,
|
|
112
114
|
value: {},
|
|
@@ -135,6 +137,7 @@ var y = /* @__PURE__ */ new Set([
|
|
|
135
137
|
pattern: {},
|
|
136
138
|
mask: {},
|
|
137
139
|
enterKeyHint: { attribute: "enterkeyhint" },
|
|
140
|
+
shortcut: {},
|
|
138
141
|
autofocus: { type: Boolean },
|
|
139
142
|
revealLabel: { attribute: "reveal-label" },
|
|
140
143
|
counter: {
|
|
@@ -158,8 +161,24 @@ var y = /* @__PURE__ */ new Set([
|
|
|
158
161
|
constructor() {
|
|
159
162
|
super(), this.value = "", this.type = "text", this.readonly = !1, this.multiline = !1, this.mono = !1, this.autofocus = !1, this.enterKeyHint = "", this.counter = !1, this.autogrow = !1, this.revealed = !1;
|
|
160
163
|
}
|
|
164
|
+
static get observedAttributes() {
|
|
165
|
+
return [...super.observedAttributes, "spellcheck"];
|
|
166
|
+
}
|
|
167
|
+
attributeChangedCallback(e, t, n) {
|
|
168
|
+
super.attributeChangedCallback(e, t, n), e === "spellcheck" && this.requestUpdate();
|
|
169
|
+
}
|
|
170
|
+
get spellcheckAttr() {
|
|
171
|
+
let e = this.getAttribute?.("spellcheck");
|
|
172
|
+
return e == null ? this.mono ? "false" : void 0 : e === "false" ? "false" : "true";
|
|
173
|
+
}
|
|
174
|
+
unsubscribeShortcuts;
|
|
161
175
|
connectedCallback() {
|
|
162
|
-
super.connectedCallback(), this.defaultValue ||= this.getAttribute("value") ?? ""
|
|
176
|
+
super.connectedCallback(), this.defaultValue ||= this.getAttribute("value") ?? "", this.unsubscribeShortcuts = l(() => {
|
|
177
|
+
this.shortcut && this.requestUpdate();
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
disconnectedCallback() {
|
|
181
|
+
super.disconnectedCallback(), this.unsubscribeShortcuts?.();
|
|
163
182
|
}
|
|
164
183
|
static styles = [c.styles, n`
|
|
165
184
|
:host { --_bk-text-field-font-size: var(--bk-input-font-size); }
|
|
@@ -204,14 +223,14 @@ var y = /* @__PURE__ */ new Set([
|
|
|
204
223
|
return this.value;
|
|
205
224
|
}
|
|
206
225
|
get formattedValue() {
|
|
207
|
-
return this.mask ?
|
|
226
|
+
return this.mask ? b(this.value, this.mask) : this.value;
|
|
208
227
|
}
|
|
209
228
|
get maskInputmode() {
|
|
210
|
-
return this.mask &&
|
|
229
|
+
return this.mask && v(this.mask) ? "numeric" : void 0;
|
|
211
230
|
}
|
|
212
231
|
computeValidity() {
|
|
213
232
|
let e = super.computeValidity();
|
|
214
|
-
return this.mask && this.value && [...this.value].length <
|
|
233
|
+
return this.mask && this.value && [...this.value].length < _(this.mask) && !e.flags.patternMismatch ? {
|
|
215
234
|
flags: {
|
|
216
235
|
...e.flags,
|
|
217
236
|
patternMismatch: !0
|
|
@@ -240,18 +259,18 @@ var y = /* @__PURE__ */ new Set([
|
|
|
240
259
|
e && (e.value = ""), this.growFallback();
|
|
241
260
|
}
|
|
242
261
|
get nativeType() {
|
|
243
|
-
return
|
|
262
|
+
return S.has(this.type) ? this.type : "text";
|
|
244
263
|
}
|
|
245
|
-
counterState = new
|
|
264
|
+
counterState = new p();
|
|
246
265
|
willUpdate(e) {
|
|
247
266
|
if (super.willUpdate(e), this.counter && this.counterState.update(this.i18n, this.value.length, this.maxlength, this.hasUpdated), this.mask && (e.has("value") || e.has("mask"))) {
|
|
248
|
-
let e =
|
|
267
|
+
let e = y(this.value, this.mask);
|
|
249
268
|
e !== this.value && (this.value = e);
|
|
250
269
|
}
|
|
251
|
-
if (e.has("type") && !
|
|
252
|
-
|
|
253
|
-
let e =
|
|
254
|
-
console.warn(`<bk-input-text type="${this.type}"> renders as type="text": bk-input-text takes only text types (${[...
|
|
270
|
+
if (e.has("type") && !S.has(this.type) && !w.has(this.type)) {
|
|
271
|
+
w.add(this.type);
|
|
272
|
+
let e = C[this.type];
|
|
273
|
+
console.warn(`<bk-input-text type="${this.type}"> renders as type="text": bk-input-text takes only text types (${[...S].join(", ")}).${e ? ` Use ${e} instead.` : ""}`, this);
|
|
255
274
|
}
|
|
256
275
|
}
|
|
257
276
|
get native() {
|
|
@@ -284,13 +303,13 @@ var y = /* @__PURE__ */ new Set([
|
|
|
284
303
|
this.mask ? this.applyMask(t) : this.value = t.value, this.growFallback();
|
|
285
304
|
}
|
|
286
305
|
applyMask(e) {
|
|
287
|
-
let t = this.mask, n = e.selectionStart ?? e.value.length, r = [...
|
|
288
|
-
this.value =
|
|
289
|
-
let i =
|
|
306
|
+
let t = this.mask, n = e.selectionStart ?? e.value.length, r = [...y(e.value.slice(0, n), t)].length;
|
|
307
|
+
this.value = y(e.value, t);
|
|
308
|
+
let i = b(this.value, t);
|
|
290
309
|
if (e.value !== i) {
|
|
291
310
|
e.value = i;
|
|
292
311
|
try {
|
|
293
|
-
e.setSelectionRange(
|
|
312
|
+
e.setSelectionRange(x(i, t, r), x(i, t, r));
|
|
294
313
|
} catch {}
|
|
295
314
|
}
|
|
296
315
|
}
|
|
@@ -316,41 +335,41 @@ var y = /* @__PURE__ */ new Set([
|
|
|
316
335
|
}
|
|
317
336
|
if (e.key !== "Enter" || this.multiline || e.isComposing || e.defaultPrevented) return;
|
|
318
337
|
let t = this.internals.form;
|
|
319
|
-
t && setTimeout(() => t
|
|
338
|
+
t && setTimeout(() => d(t));
|
|
320
339
|
}
|
|
321
340
|
onChange() {
|
|
322
341
|
s(this, "change");
|
|
323
342
|
}
|
|
324
343
|
render() {
|
|
325
|
-
let n = this.counter ? this.counterState : void 0, o = this.descriptionIds(n ? "counter" : void 0), s = this.label ? void 0 : this.forwardedName, c = this.type === "password" && !this.multiline, l = c && this.revealed ? "text" : this.nativeType,
|
|
344
|
+
let n = this.counter ? this.counterState : void 0, o = this.descriptionIds(n ? "counter" : void 0), s = this.label ? void 0 : this.forwardedName, c = this.type === "password" && !this.multiline, l = c && this.revealed ? "text" : this.nativeType, d = this.autogrow ? {
|
|
326
345
|
"--_bk-input-text-rows": String(this.rows ?? 2),
|
|
327
346
|
"--_bk-input-text-max-rows": this.maxRows ? String(this.maxRows) : "none"
|
|
328
|
-
} : {},
|
|
329
|
-
placeholder=${r(this.placeholder)} rows=${r(this.rows)} style=${a(
|
|
347
|
+
} : {}, f = this.isDisabled, p = this.showInvalid ? "true" : "false", m = this.shortcut && u(this.shortcut) || void 0, h = this.multiline ? e`<textarea part="input" id="control" .value=${i(this.value)} name=${r(this.name || void 0)}
|
|
348
|
+
placeholder=${r(this.placeholder)} rows=${r(this.rows)} style=${a(d)} ?disabled=${f}
|
|
330
349
|
?readonly=${this.readonly} ?required=${this.required} ?autofocus=${this.autofocus}
|
|
331
350
|
minlength=${r(this.minlength)} maxlength=${r(this.maxlength)}
|
|
332
|
-
autocomplete=${r(this.autocomplete)} aria-invalid=${
|
|
351
|
+
autocomplete=${r(this.autocomplete)} aria-invalid=${p} spellcheck=${r(this.spellcheckAttr)}
|
|
333
352
|
aria-describedby=${r(o)} aria-label=${r(s)} enterkeyhint=${r(this.enterKeyHint || void 0)}
|
|
334
|
-
@input=${this.onInput} @change=${this.onChange}></textarea>` : e`<input part="input" id="control" .value=${i(this.formattedValue)} type=${l}
|
|
335
|
-
placeholder=${r(this.placeholder)} ?disabled=${
|
|
353
|
+
aria-keyshortcuts=${r(m)} @input=${this.onInput} @change=${this.onChange}></textarea>` : e`<input part="input" id="control" .value=${i(this.formattedValue)} type=${l}
|
|
354
|
+
placeholder=${r(this.placeholder)} ?disabled=${f} ?readonly=${this.readonly}
|
|
336
355
|
?required=${this.required} ?autofocus=${this.autofocus} minlength=${r(this.minlength)}
|
|
337
356
|
maxlength=${r(this.mask ? void 0 : this.maxlength)} pattern=${r(this.pattern)} autocomplete=${r(this.autocomplete)}
|
|
338
|
-
inputmode=${r(this.inputmode ?? this.maskInputmode)} enterkeyhint=${r(this.enterKeyHint || void 0)} aria-invalid=${
|
|
339
|
-
aria-describedby=${r(o)} aria-label=${r(s)}
|
|
357
|
+
inputmode=${r(this.inputmode ?? this.maskInputmode)} enterkeyhint=${r(this.enterKeyHint || void 0)} aria-invalid=${p}
|
|
358
|
+
spellcheck=${r(this.spellcheckAttr)} aria-describedby=${r(o)} aria-label=${r(s)} aria-keyshortcuts=${r(m)}
|
|
340
359
|
@input=${this.onInput} @change=${this.onChange} @keydown=${this.onKeydown} />`;
|
|
341
360
|
return this.renderField(e`<div class=${this.boxClass} part="box">
|
|
342
361
|
${this.renderStart()}
|
|
343
362
|
${this.renderPrefix()}
|
|
344
|
-
${
|
|
363
|
+
${h}
|
|
345
364
|
${this.renderSuffix()}
|
|
346
365
|
${this.renderClear()}
|
|
347
366
|
${c ? e`<button class="action interactive reveal" part="reveal-button" type="button"
|
|
348
|
-
aria-label=${this.revealLabel || this.i18n.t("showPassword")} aria-pressed=${this.revealed ? "true" : "false"} ?disabled=${
|
|
367
|
+
aria-label=${this.revealLabel || this.i18n.t("showPassword")} aria-pressed=${this.revealed ? "true" : "false"} ?disabled=${f}
|
|
349
368
|
@pointerdown=${this.keepFocus} @click=${this.toggleReveal}><bk-icon name=${this.revealed ? "visibility-off" : "visibility"}></bk-icon></button>` : t}
|
|
350
369
|
${this.renderEnd()}
|
|
351
370
|
</div>`, { footEnd: n ? e`<span class=${n.level === 2 ? "limit" : n.level === 1 ? "warn" : ""} part="counter" aria-hidden="true">${n.visible}</span>
|
|
352
371
|
<span class="sr-only" id="counter">${n.label}</span><span class="sr-only" aria-live="polite">${n.live}</span>` : void 0 });
|
|
353
372
|
}
|
|
354
373
|
};
|
|
355
|
-
o("bk-input-text",
|
|
356
|
-
export {
|
|
374
|
+
o("bk-input-text", T);
|
|
375
|
+
export { p as n, T as t };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./style-map-BMvn17E7.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as s } from "./i18n-
|
|
3
|
+
import { a, t as o } from "./define-6OfuRn5c.js";
|
|
4
|
+
import { t as s } from "./i18n-DFfGgd3d.js";
|
|
5
5
|
import { n as c } from "./events-DQ4e9cPN.js";
|
|
6
6
|
import { t as l } from "./loading-B37QBUkv.js";
|
|
7
7
|
import { t as u } from "./slots-BHTtBbPo.js";
|
|
8
|
-
import { t as d, x as f } from "./styles-
|
|
8
|
+
import { t as d, x as f } from "./styles-CaeyhYDA.js";
|
|
9
9
|
import "../bk-button.js";
|
|
10
|
-
import "./bk-icon-
|
|
10
|
+
import "./bk-icon-D4kI4F18.js";
|
|
11
11
|
import "../bk-spinner.js";
|
|
12
12
|
import "./arrow-down-yAm1AGV7.js";
|
|
13
13
|
import "./arrow-up-BfHTuP3c.js";
|
|
@@ -0,0 +1,186 @@
|
|
|
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 "./if-defined-z_20pBRr.js";
|
|
3
|
+
import { n as a, t as o } from "./directive-CwRgozUW.js";
|
|
4
|
+
import { r as s } from "./directive-helpers-BWELZlCh.js";
|
|
5
|
+
import { t as c } from "./style-map-BMvn17E7.js";
|
|
6
|
+
import { t as l } from "./i18n-DFfGgd3d.js";
|
|
7
|
+
import { a as u, t as d } from "./define-6OfuRn5c.js";
|
|
8
|
+
import { n as f } from "./events-DQ4e9cPN.js";
|
|
9
|
+
import { t as p } from "./link--YWr8exL.js";
|
|
10
|
+
import { t as m } from "./slots-BHTtBbPo.js";
|
|
11
|
+
import { t as h, v as g } from "./styles-CaeyhYDA.js";
|
|
12
|
+
import "../bk-button.js";
|
|
13
|
+
import "./bk-icon-D4kI4F18.js";
|
|
14
|
+
import "./error-BWRRZUg8.js";
|
|
15
|
+
import "./image-t401521J.js";
|
|
16
|
+
import "./refresh-BeOCgDeL.js";
|
|
17
|
+
// node_modules/lit-html/directives/keyed.js
|
|
18
|
+
var _ = o(class extends a {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments), this.key = t;
|
|
21
|
+
}
|
|
22
|
+
render(e, t) {
|
|
23
|
+
return this.key = e, t;
|
|
24
|
+
}
|
|
25
|
+
update(e, [t, n]) {
|
|
26
|
+
return t !== this.key && (s(e), this.key = t), n;
|
|
27
|
+
}
|
|
28
|
+
}), v = class extends n {
|
|
29
|
+
static properties = {
|
|
30
|
+
src: {},
|
|
31
|
+
alt: {},
|
|
32
|
+
srcset: {},
|
|
33
|
+
sizes: {},
|
|
34
|
+
ratio: { reflect: !0 },
|
|
35
|
+
fit: {
|
|
36
|
+
reflect: !0,
|
|
37
|
+
useDefault: !0
|
|
38
|
+
},
|
|
39
|
+
loading: {},
|
|
40
|
+
href: {},
|
|
41
|
+
target: {},
|
|
42
|
+
rel: {},
|
|
43
|
+
download: {},
|
|
44
|
+
errorLabel: { attribute: "error-label" },
|
|
45
|
+
retryLabel: { attribute: "retry-label" },
|
|
46
|
+
loaded: { state: !0 },
|
|
47
|
+
failed: { state: !0 },
|
|
48
|
+
previous: { state: !0 },
|
|
49
|
+
attempt: { state: !0 },
|
|
50
|
+
compact: { state: !0 }
|
|
51
|
+
};
|
|
52
|
+
slots = new m(this);
|
|
53
|
+
i18n = new l(this);
|
|
54
|
+
sizer = u(() => this.measure());
|
|
55
|
+
links = new p(this);
|
|
56
|
+
constructor() {
|
|
57
|
+
super(), this.src = "", this.alt = "", this.fit = "cover", this.loading = "lazy", this.loaded = !1, this.failed = !1, this.previous = "", this.attempt = 0, this.compact = !1, this.errorLabel = "", this.retryLabel = "";
|
|
58
|
+
}
|
|
59
|
+
static styles = [
|
|
60
|
+
h,
|
|
61
|
+
g,
|
|
62
|
+
r`
|
|
63
|
+
:host { display: block; min-inline-size: 0; inline-size: var(--bk-picture-width, auto); }
|
|
64
|
+
figure { margin: 0; display: grid; gap: var(--bk-picture-caption-gap, var(--bk-space-lines)); }
|
|
65
|
+
.frame {
|
|
66
|
+
position: relative; overflow: hidden; aspect-ratio: var(--_bk-picture-ratio, var(--bk-picture-ratio, auto));
|
|
67
|
+
border-radius: var(--bk-picture-radius, var(--bk-radius-container, var(--bk-radius-lg)));
|
|
68
|
+
background: var(--bk-picture-bg, var(--bk-layer-sunken-bg));
|
|
69
|
+
}
|
|
70
|
+
.frame.loaded { background: var(--bk-picture-loaded-bg, none); }
|
|
71
|
+
/* An empty frame and a small failed picture have no image to give the ratio. */
|
|
72
|
+
.frame:is(.empty, .compact) { aspect-ratio: var(--_bk-picture-ratio, var(--bk-picture-ratio, 4/3)); }
|
|
73
|
+
.frame.compact .image { display: none; }
|
|
74
|
+
.placeholder, .error.compact {
|
|
75
|
+
position: absolute; inset: 0; display: grid; place-items: center; min-block-size: 0; padding: 0;
|
|
76
|
+
color: var(--bk-picture-placeholder-color, var(--bk-text-faint));
|
|
77
|
+
/* The size inherits into an icon in the empty slot too. */
|
|
78
|
+
--bk-icon-size: var(--bk-picture-placeholder-icon-size, var(--bk-icon-lg));
|
|
79
|
+
}
|
|
80
|
+
.error.compact { grid-auto-flow: column; place-content: center; gap: var(--bk-space-1); }
|
|
81
|
+
.error-probe { position: absolute; inline-size: var(--bk-picture-error-min-width, calc(5 * var(--bk-control-md))); block-size: 0; visibility: hidden; pointer-events: none; }
|
|
82
|
+
img, ::slotted(:is(img, video, svg)) {
|
|
83
|
+
display: block; inline-size: 100%; block-size: auto; max-inline-size: 100%;
|
|
84
|
+
}
|
|
85
|
+
/* The image covers the box when a ratio (the attribute or the token) fixes its height. Without one the
|
|
86
|
+
height of the frame is auto, the 100% is auto too, and the image keeps its own ratio. */
|
|
87
|
+
img, ::slotted(:is(img, video, svg)) { block-size: 100%; object-fit: cover; }
|
|
88
|
+
:host([fit="contain"]) :is(img, ::slotted(:is(img, video))) { object-fit: contain; }
|
|
89
|
+
/* The link of a picture with href covers the frame; the retry button lies above it. */
|
|
90
|
+
.link {
|
|
91
|
+
position: absolute; inset: 0; z-index: 1; border-radius: inherit;
|
|
92
|
+
--_bk-interactive-hover: var(--bk-picture-hover-bg, var(--bk-hover));
|
|
93
|
+
--_bk-interactive-pressed: var(--bk-picture-pressed-bg, var(--bk-pressed));
|
|
94
|
+
--_bk-interactive-focus-offset: var(--bk-focus-offset-inset);
|
|
95
|
+
}
|
|
96
|
+
.error bk-button { position: relative; z-index: 2; }
|
|
97
|
+
/* The image fades in once it has loaded. */
|
|
98
|
+
.image { opacity: 0; transition: opacity var(--bk-duration) var(--bk-ease); }
|
|
99
|
+
.image.in { opacity: 1; }
|
|
100
|
+
.image.failed { visibility: hidden; }
|
|
101
|
+
/* While the next image loads, the last one keeps the box; the next one lies over it. */
|
|
102
|
+
.frame.swap .image:not(.in) { position: absolute; inset: 0; block-size: 100%; object-fit: cover; }
|
|
103
|
+
:host([fit="contain"]) .frame.swap .image:not(.in) { object-fit: contain; }
|
|
104
|
+
.error {
|
|
105
|
+
display: grid; place-content: center; justify-items: center; gap: var(--bk-space-2);
|
|
106
|
+
min-block-size: calc(4 * var(--bk-control-md)); padding: var(--bk-space-4); text-align: center;
|
|
107
|
+
color: var(--bk-picture-error-fg, var(--bk-text-muted)); font-size: var(--bk-text-sm); line-height: var(--bk-line-height-body);
|
|
108
|
+
}
|
|
109
|
+
:host([ratio]) .error { position: absolute; inset: 0; min-block-size: 0; }
|
|
110
|
+
.error:not(.compact) bk-icon { --bk-icon-size: var(--bk-icon-lg); }
|
|
111
|
+
@media (prefers-reduced-motion: reduce) { .image { transition: none; } }
|
|
112
|
+
.caption { color: var(--bk-picture-caption-fg, var(--bk-text-muted)); font-size: var(--bk-picture-caption-size, var(--bk-text-sm)); line-height: var(--bk-line-height-body); }
|
|
113
|
+
@media (forced-colors: active) { .frame { border: var(--bk-border-width) solid CanvasText; } }
|
|
114
|
+
`
|
|
115
|
+
];
|
|
116
|
+
willUpdate(e) {
|
|
117
|
+
if (e.has("src")) {
|
|
118
|
+
let t = e.get("src");
|
|
119
|
+
this.previous = this.loaded && !this.failed && t ? t : this.loaded ? "" : this.previous, this.src || (this.previous = ""), this.loaded = !1, this.failed = !1;
|
|
120
|
+
}
|
|
121
|
+
this.failed || (this.compact = !1);
|
|
122
|
+
}
|
|
123
|
+
updated(e) {
|
|
124
|
+
if (e.has("failed")) {
|
|
125
|
+
let e = this.renderRoot.querySelector(".frame"), t = this.renderRoot.querySelector(".error-probe");
|
|
126
|
+
this.sizer.disconnect(), this.failed && e && t && (this.sizer.observe(e), this.sizer.observe(t));
|
|
127
|
+
}
|
|
128
|
+
let t = this.renderRoot.querySelector("img.image");
|
|
129
|
+
t && !this.loaded && !this.failed && t.complete && t.naturalWidth && this.onLoad();
|
|
130
|
+
}
|
|
131
|
+
disconnectedCallback() {
|
|
132
|
+
super.disconnectedCallback(), this.sizer.disconnect();
|
|
133
|
+
}
|
|
134
|
+
measure() {
|
|
135
|
+
let e = this.renderRoot.querySelector(".frame"), t = this.renderRoot.querySelector(".error-probe");
|
|
136
|
+
if (!e || !t) return;
|
|
137
|
+
let n = e.getBoundingClientRect().width < t.getBoundingClientRect().width;
|
|
138
|
+
n !== this.compact && (this.compact = n);
|
|
139
|
+
}
|
|
140
|
+
onLoad() {
|
|
141
|
+
this.loaded = !0, this.previous = "";
|
|
142
|
+
let e = this.renderRoot.querySelector("img.image");
|
|
143
|
+
f(this, "load", {
|
|
144
|
+
src: this.src,
|
|
145
|
+
naturalWidth: e?.naturalWidth ?? 0,
|
|
146
|
+
naturalHeight: e?.naturalHeight ?? 0
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
onError() {
|
|
150
|
+
this.failed = !0, this.previous = "", f(this, "error", { src: this.src });
|
|
151
|
+
}
|
|
152
|
+
retry(e) {
|
|
153
|
+
e.stopPropagation(), this.failed = !1, this.attempt++;
|
|
154
|
+
}
|
|
155
|
+
cover() {
|
|
156
|
+
return this.href ? e`<a class="link interactive" part="link" href=${this.links.href(this.href)} @click=${this.links.click} target=${i(this.target)}
|
|
157
|
+
rel=${i(this.rel ?? (this.target === "_blank" ? "noopener noreferrer" : void 0))}
|
|
158
|
+
download=${i(this.download)} aria-label=${this.alt || t}></a>` : t;
|
|
159
|
+
}
|
|
160
|
+
frame() {
|
|
161
|
+
let n = !!this.previous && !this.loaded, r = !this.src && this.slots.has(""), i = !this.src && !r, a = this.failed && this.compact, o = this.errorLabel || this.i18n.t("imageError");
|
|
162
|
+
return e`<div class="frame ${this.loaded || r ? "loaded" : ""} ${i ? "empty" : ""} ${a ? "compact" : ""} ${n ? "swap" : ""}" part="frame" style=${c({ "--_bk-picture-ratio": this.ratio?.replace(":", "/") || void 0 })}>
|
|
163
|
+
${n ? e`<img class="previous" src=${this.previous} alt="" aria-hidden="true" decoding="async" />` : t}
|
|
164
|
+
${this.src ? _(`${this.src}|${this.attempt}`, e`<img class="image ${this.loaded ? "in" : ""} ${this.failed ? "failed" : ""}" part="image"
|
|
165
|
+
src=${this.src} alt=${this.href ? "" : this.alt} srcset=${this.srcset || t} sizes=${this.sizes || t}
|
|
166
|
+
loading=${this.loading} decoding="async" @load=${this.onLoad} @error=${this.onError} />`) : e`<slot></slot>`}
|
|
167
|
+
${i ? e`<div class="placeholder" part="placeholder"><slot name="empty"><bk-icon name="image"></bk-icon></slot></div>` : t}
|
|
168
|
+
${this.failed ? a ? e`<div class="error compact" part="error">
|
|
169
|
+
<bk-icon name="error" label=${o} title=${o}></bk-icon>
|
|
170
|
+
<bk-button size="sm" variant="ghost" icon="refresh" label=${this.retryLabel || this.i18n.t("pictureRetry")} @click=${this.retry}></bk-button>
|
|
171
|
+
</div>` : e`<div class="error" part="error">
|
|
172
|
+
<bk-icon name="error"></bk-icon>
|
|
173
|
+
<span>${o}</span>
|
|
174
|
+
<bk-button size="sm" variant="outline" icon="refresh" @click=${this.retry}>${this.retryLabel || this.i18n.t("pictureRetry")}</bk-button>
|
|
175
|
+
</div>` : t}
|
|
176
|
+
${this.cover()}
|
|
177
|
+
${this.failed ? e`<span class="error-probe" aria-hidden="true"></span>` : t}
|
|
178
|
+
</div>`;
|
|
179
|
+
}
|
|
180
|
+
render() {
|
|
181
|
+
let t = this.slots.has("caption"), n = e`<figcaption class="caption" part="caption" ?hidden=${!t}><slot name="caption"></slot></figcaption>`;
|
|
182
|
+
return t ? e`<figure>${this.frame()}${n}</figure>` : e`${this.frame()}<div hidden>${n}</div>`;
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
d("bk-picture", v);
|
|
186
|
+
export { v as t };
|
|
@@ -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, x as s } 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, x as s } from "./styles-CaeyhYDA.js";
|
|
5
5
|
// dist/internal/qr.js
|
|
6
6
|
var c = {
|
|
7
7
|
L: 0,
|