@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
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { a as e, n as t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
+
import { t as r } from "./chunks/if-defined-z_20pBRr.js";
|
|
3
|
+
import { t as i } from "./chunks/live-CgLyfc6z.js";
|
|
4
|
+
import { i as a, r as o, t as s } from "./chunks/define-6OfuRn5c.js";
|
|
5
|
+
import { n as c, t as l } from "./chunks/events-DQ4e9cPN.js";
|
|
6
|
+
import { r as u } from "./chunks/submit-BjBGB8OW.js";
|
|
7
|
+
import { n as d, t as f } from "./chunks/tags-CMLAGsVw.js";
|
|
8
|
+
import { t as p } from "./chunks/text-field-CufOGdfr.js";
|
|
9
|
+
import "./bk-chip.js";
|
|
10
|
+
// dist/components/bk-input-tags.js
|
|
11
|
+
function m(e) {
|
|
12
|
+
return [...e.childNodes].filter((e) => !(e instanceof Element && e.slot)).map((e) => e.textContent ?? "").join("").trim();
|
|
13
|
+
}
|
|
14
|
+
var h = /* @__PURE__ */ new Map();
|
|
15
|
+
function g(e) {
|
|
16
|
+
let t = h.get(e);
|
|
17
|
+
return t || h.set(e, t = new Intl.ListFormat(e, {
|
|
18
|
+
type: "unit",
|
|
19
|
+
style: "short"
|
|
20
|
+
})), t;
|
|
21
|
+
}
|
|
22
|
+
var _ = class extends p {
|
|
23
|
+
static properties = {
|
|
24
|
+
...p.properties,
|
|
25
|
+
values: {
|
|
26
|
+
attribute: !1,
|
|
27
|
+
noAccessor: !0
|
|
28
|
+
},
|
|
29
|
+
placeholder: {},
|
|
30
|
+
readonly: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
reflect: !0
|
|
33
|
+
},
|
|
34
|
+
enterKeyHint: { attribute: "enterkeyhint" },
|
|
35
|
+
text: { state: !0 }
|
|
36
|
+
};
|
|
37
|
+
static styles = [
|
|
38
|
+
p.styles,
|
|
39
|
+
d("input-tags"),
|
|
40
|
+
n`
|
|
41
|
+
:host { --_bk-text-field-font-size: var(--bk-input-tags-font-size); }
|
|
42
|
+
`
|
|
43
|
+
];
|
|
44
|
+
own = [];
|
|
45
|
+
defaultValues = [];
|
|
46
|
+
connectedOnce = !1;
|
|
47
|
+
observer = a(() => this.requestUpdate());
|
|
48
|
+
constructor() {
|
|
49
|
+
super(), this.readonly = !1, this.enterKeyHint = "", this.text = "";
|
|
50
|
+
}
|
|
51
|
+
get chips() {
|
|
52
|
+
let e = o(this);
|
|
53
|
+
return e ? [...e.children].filter((e) => e.localName === "bk-chip" && !e.slot) : [];
|
|
54
|
+
}
|
|
55
|
+
get controlled() {
|
|
56
|
+
return this.chips.length > 0;
|
|
57
|
+
}
|
|
58
|
+
get values() {
|
|
59
|
+
let e = this.chips;
|
|
60
|
+
return e.length ? e.filter((e) => !e.hasAttribute("removed")).map(m) : [...this.own];
|
|
61
|
+
}
|
|
62
|
+
set values(e) {
|
|
63
|
+
let t = this.values;
|
|
64
|
+
this.own = [...new Set((e ?? []).map(String).filter(Boolean))], this.requestUpdate("values", t);
|
|
65
|
+
}
|
|
66
|
+
connectedCallback() {
|
|
67
|
+
super.connectedCallback(), this.connectedOnce || (this.connectedOnce = !0, this.defaultValues.length || (this.defaultValues = [...this.own])), this.observer.observe(this, {
|
|
68
|
+
childList: !0,
|
|
69
|
+
subtree: !0,
|
|
70
|
+
characterData: !0,
|
|
71
|
+
attributes: !0,
|
|
72
|
+
attributeFilter: ["removed", "slot"]
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
disconnectedCallback() {
|
|
76
|
+
super.disconnectedCallback(), this.observer.disconnect();
|
|
77
|
+
}
|
|
78
|
+
get control() {
|
|
79
|
+
return this.renderRoot?.querySelector("input") ?? null;
|
|
80
|
+
}
|
|
81
|
+
focus(e) {
|
|
82
|
+
this.control?.focus(e);
|
|
83
|
+
}
|
|
84
|
+
blur() {
|
|
85
|
+
this.control?.blur();
|
|
86
|
+
}
|
|
87
|
+
get changeable() {
|
|
88
|
+
return super.changeable && !this.readonly;
|
|
89
|
+
}
|
|
90
|
+
formValue() {
|
|
91
|
+
let e = this.values;
|
|
92
|
+
if (!this.name || !e.length) return null;
|
|
93
|
+
let t = new FormData();
|
|
94
|
+
for (let n of e) t.append(this.name, n);
|
|
95
|
+
return t;
|
|
96
|
+
}
|
|
97
|
+
formState() {
|
|
98
|
+
return JSON.stringify(this.values);
|
|
99
|
+
}
|
|
100
|
+
resetValue() {
|
|
101
|
+
this.values = [...this.defaultValues], this.text = "";
|
|
102
|
+
}
|
|
103
|
+
restoreValue(e) {
|
|
104
|
+
try {
|
|
105
|
+
let t = JSON.parse(e);
|
|
106
|
+
Array.isArray(t) && (this.values = t);
|
|
107
|
+
} catch {}
|
|
108
|
+
}
|
|
109
|
+
computeValidity() {
|
|
110
|
+
return this.required && !this.values.length ? {
|
|
111
|
+
flags: { valueMissing: !0 },
|
|
112
|
+
message: this.i18n.t("valueRequired")
|
|
113
|
+
} : {
|
|
114
|
+
flags: {},
|
|
115
|
+
message: ""
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
get filled() {
|
|
119
|
+
return !!this.text || !this.controlled && this.own.length > 0;
|
|
120
|
+
}
|
|
121
|
+
emptyValue() {
|
|
122
|
+
if (this.text = "", this.controlled || !this.own.length) return !1;
|
|
123
|
+
this.values = [];
|
|
124
|
+
}
|
|
125
|
+
commit(e) {
|
|
126
|
+
let t = this.own;
|
|
127
|
+
e.join("\0") !== t.join("\0") && (this.own = e, this.requestUpdate("values", t), l(this, "input"), l(this, "change"));
|
|
128
|
+
}
|
|
129
|
+
addValues(e) {
|
|
130
|
+
let t = [], n = this.own;
|
|
131
|
+
for (let r of e) (this.controlled ? this.values : n).includes(r) || (c(this, "add", { value: r }, !0) ? this.controlled || (n = [...n, r]) : t.push(r));
|
|
132
|
+
return this.controlled || this.commit(n), t;
|
|
133
|
+
}
|
|
134
|
+
addTyped() {
|
|
135
|
+
let e = this.text.trim();
|
|
136
|
+
e && this.addValues([e]).length || (this.text = "");
|
|
137
|
+
}
|
|
138
|
+
removeValue(e, t) {
|
|
139
|
+
c(this, "remove", {
|
|
140
|
+
value: e,
|
|
141
|
+
chip: t
|
|
142
|
+
}, !0) && !this.controlled && this.commit(this.own.filter((t) => t !== e));
|
|
143
|
+
}
|
|
144
|
+
get lastTag() {
|
|
145
|
+
if (!this.controlled) return this.own.length ? { value: this.own[this.own.length - 1] } : void 0;
|
|
146
|
+
let e = this.chips.filter((e) => !e.hasAttribute("removed")).pop();
|
|
147
|
+
return e ? {
|
|
148
|
+
value: m(e),
|
|
149
|
+
chip: e
|
|
150
|
+
} : void 0;
|
|
151
|
+
}
|
|
152
|
+
onInput(e) {
|
|
153
|
+
e.stopPropagation(), this.text = e.target.value;
|
|
154
|
+
}
|
|
155
|
+
onKeydown(e) {
|
|
156
|
+
if (this.changeable && !e.isComposing) switch (e.key) {
|
|
157
|
+
case "Enter": {
|
|
158
|
+
if (this.text.trim()) {
|
|
159
|
+
e.preventDefault(), this.addTyped();
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
let t = this.internals.form;
|
|
163
|
+
t && setTimeout(() => u(t));
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
case ",":
|
|
167
|
+
e.preventDefault(), this.addTyped();
|
|
168
|
+
return;
|
|
169
|
+
case "Backspace": {
|
|
170
|
+
let t = this.text ? void 0 : this.lastTag;
|
|
171
|
+
if (!t) return;
|
|
172
|
+
e.preventDefault(), this.removeValue(t.value, t.chip);
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
onPaste(e) {
|
|
178
|
+
if (!this.changeable) return;
|
|
179
|
+
let t = f(e, this.text);
|
|
180
|
+
t && (this.text = this.addValues(t).join(", "));
|
|
181
|
+
}
|
|
182
|
+
onFocusOut(e) {
|
|
183
|
+
let t = e.relatedTarget;
|
|
184
|
+
t && (this.renderRoot.contains(t) || this.contains(t)) || this.changeable && this.text.trim() && this.addTyped();
|
|
185
|
+
}
|
|
186
|
+
onBoxClick(e) {
|
|
187
|
+
this.isDisabled || e.composedPath().some((e) => e instanceof Element && (e.localName === "bk-chip" || e.classList.contains("clear") || e.parentElement === this && e.slot === "end")) || this.control?.focus();
|
|
188
|
+
}
|
|
189
|
+
onSlottedRemove(e) {
|
|
190
|
+
let t = e.target;
|
|
191
|
+
t.localName === "bk-chip" && t.parentElement === this && (e.stopPropagation(), this.changeable && this.removeValue(m(t), t));
|
|
192
|
+
}
|
|
193
|
+
onTagRemove(e, t) {
|
|
194
|
+
e.stopPropagation(), this.changeable && (this.removeValue(t), this.control?.focus());
|
|
195
|
+
}
|
|
196
|
+
willUpdate(e) {
|
|
197
|
+
super.willUpdate(e), (e.has("readonly") || e.has("disabled")) && !this.changeable && (this.text = "");
|
|
198
|
+
}
|
|
199
|
+
render() {
|
|
200
|
+
let n = this.controlled, a = this.values, o = n || a.length > 0, s = this.descriptionIds(a.length ? "tags-text" : void 0), c = this.changeable, l = this.showInvalid;
|
|
201
|
+
return e`<div @focusout=${this.onFocusOut}>
|
|
202
|
+
${this.renderField(e`<div class="${this.boxClass}${o ? " has-tags" : ""}${o && !this.hasLead ? " tags-first" : ""}" part="box" @click=${this.onBoxClick}>
|
|
203
|
+
${this.renderStart()}
|
|
204
|
+
${this.renderPrefix()}
|
|
205
|
+
<div class="values">
|
|
206
|
+
<span class="tags">${n ? t : this.own.map((t) => e`<bk-chip part="tag" size=${this.size} ?removable=${c}
|
|
207
|
+
@remove=${(e) => this.onTagRemove(e, t)}>${t}</bk-chip>`)}<slot @remove=${this.onSlottedRemove}></slot></span>
|
|
208
|
+
<input part="input" id="control" type="text" autocomplete="off" autocapitalize="off" spellcheck="false"
|
|
209
|
+
enterkeyhint=${r(this.enterKeyHint || void 0)} .value=${i(this.text)}
|
|
210
|
+
placeholder=${r(o ? void 0 : this.placeholder)} ?disabled=${this.isDisabled} ?readonly=${this.readonly}
|
|
211
|
+
aria-label=${r(this.label ? void 0 : this.forwardedName)} aria-describedby=${r(s)}
|
|
212
|
+
aria-required=${this.required ? "true" : "false"} aria-invalid=${l ? "true" : "false"}
|
|
213
|
+
@input=${this.onInput} @paste=${this.onPaste} @change=${(e) => e.stopPropagation()} @keydown=${this.onKeydown} />
|
|
214
|
+
${a.length ? e`<span class="sr-only" id="tags-text">${g(this.i18n.locale).format(a)}</span>` : t}
|
|
215
|
+
</div>
|
|
216
|
+
${this.renderSuffix()}
|
|
217
|
+
${this.renderClear()}
|
|
218
|
+
${this.renderEnd()}
|
|
219
|
+
</div>`)}
|
|
220
|
+
</div>`;
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
s("bk-input-tags", _);
|
|
224
|
+
export { _ as BkInputTags };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as BkInputText } from "./chunks/bk-input-text-
|
|
1
|
+
export { t as BkInputText } from "./chunks/bk-input-text-2n89GDIT.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { u as e } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t } from "./chunks/define-
|
|
2
|
+
import { t } from "./chunks/define-6OfuRn5c.js";
|
|
3
3
|
import { BkCombobox as n } from "./bk-combobox.js";
|
|
4
4
|
// dist/components/bk-input-time-zone.js
|
|
5
5
|
var r = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { a as e, u as t } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as n } from "./chunks/if-defined-z_20pBRr.js";
|
|
3
3
|
import { t as r } from "./chunks/live-CgLyfc6z.js";
|
|
4
|
-
import {
|
|
5
|
-
import { t as a } from "./chunks/define-
|
|
4
|
+
import { o as i } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
|
+
import { t as a } from "./chunks/define-6OfuRn5c.js";
|
|
6
6
|
import { t as o } from "./chunks/events-DQ4e9cPN.js";
|
|
7
|
-
import { n as s } from "./chunks/date-field-
|
|
8
|
-
import { t as c } from "./chunks/text-field-
|
|
9
|
-
import "./chunks/bk-icon-
|
|
7
|
+
import { n as s } from "./chunks/date-field-Dy1_qxNv.js";
|
|
8
|
+
import { t as c } from "./chunks/text-field-CufOGdfr.js";
|
|
9
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
10
|
+
import { r as l } from "./chunks/submit-BjBGB8OW.js";
|
|
10
11
|
// dist/components/bk-input-time.js
|
|
11
|
-
var
|
|
12
|
-
function
|
|
13
|
-
let r = `${e}|${t}|${n ?? ""}`, i =
|
|
12
|
+
var u = /* @__PURE__ */ new Map();
|
|
13
|
+
function d(e, t, n) {
|
|
14
|
+
let r = `${e}|${t}|${n ?? ""}`, i = u.get(r);
|
|
14
15
|
if (i) return i;
|
|
15
16
|
let a = {
|
|
16
17
|
hour: "2-digit",
|
|
@@ -24,7 +25,7 @@ function u(e, t, n) {
|
|
|
24
25
|
} catch {
|
|
25
26
|
o = new Intl.DateTimeFormat("en", a);
|
|
26
27
|
}
|
|
27
|
-
let s = o.resolvedOptions().hourCycle, c = s === "h11" ? "h11" : s === "h12" ? "h12" : "h23",
|
|
28
|
+
let s = o.resolvedOptions().hourCycle, c = s === "h11" ? "h11" : s === "h12" ? "h12" : "h23", l = (e) => o.formatToParts(Date.UTC(2e3, 0, 1, e, 5, 7)), d = l(13).filter((e) => [
|
|
28
29
|
"hour",
|
|
29
30
|
"minute",
|
|
30
31
|
"second",
|
|
@@ -33,7 +34,7 @@ function u(e, t, n) {
|
|
|
33
34
|
].includes(e.type)).map((e) => ({
|
|
34
35
|
type: e.type,
|
|
35
36
|
value: e.value
|
|
36
|
-
})), f = (e) =>
|
|
37
|
+
})), f = (e) => l(e).find((e) => e.type === "dayPeriod")?.value ?? (e < 12 ? "AM" : "PM");
|
|
37
38
|
return i = {
|
|
38
39
|
parts: d,
|
|
39
40
|
cycle: c,
|
|
@@ -50,21 +51,21 @@ function u(e, t, n) {
|
|
|
50
51
|
timeZone: "UTC",
|
|
51
52
|
...n ? { hourCycle: n } : {}
|
|
52
53
|
})
|
|
53
|
-
},
|
|
54
|
+
}, u.set(r, i), i;
|
|
54
55
|
}
|
|
55
|
-
var
|
|
56
|
-
function
|
|
57
|
-
let t = e ?
|
|
56
|
+
var f = /^(\d{2}):(\d{2})(?::(\d{2})(?:\.\d{1,3})?)?$/, p = (e) => String(e).padStart(2, "0");
|
|
57
|
+
function m(e) {
|
|
58
|
+
let t = e ? f.exec(e) : null;
|
|
58
59
|
if (!t) return null;
|
|
59
60
|
let n = +t[1], r = +t[2], i = t[3] ? +t[3] : 0;
|
|
60
61
|
return n < 24 && r < 60 && i < 60 ? n * 3600 + r * 60 + i : null;
|
|
61
62
|
}
|
|
62
|
-
var
|
|
63
|
+
var h = {
|
|
63
64
|
hour: "timeHours",
|
|
64
65
|
minute: "timeMinutes",
|
|
65
66
|
second: "timeSeconds",
|
|
66
67
|
dayPeriod: "timeDayPeriod"
|
|
67
|
-
},
|
|
68
|
+
}, g = /* @__PURE__ */ new Set([
|
|
68
69
|
":",
|
|
69
70
|
".",
|
|
70
71
|
",",
|
|
@@ -72,7 +73,7 @@ var m = {
|
|
|
72
73
|
"/",
|
|
73
74
|
"-",
|
|
74
75
|
"h"
|
|
75
|
-
]),
|
|
76
|
+
]), _ = class extends c {
|
|
76
77
|
static properties = {
|
|
77
78
|
...c.properties,
|
|
78
79
|
value: { noAccessor: !0 },
|
|
@@ -110,7 +111,7 @@ var m = {
|
|
|
110
111
|
return Number.isFinite(this.step) && this.step > 0 ? this.step : null;
|
|
111
112
|
}
|
|
112
113
|
get loc() {
|
|
113
|
-
return
|
|
114
|
+
return d(this.locale || this.i18n.locale, this.showSeconds, this.hourCycle === "h12" || this.hourCycle === "h23" ? this.hourCycle : void 0);
|
|
114
115
|
}
|
|
115
116
|
get seconds() {
|
|
116
117
|
let { hour: e, minute: t, second: n, dayPeriod: r } = this.segs;
|
|
@@ -140,11 +141,11 @@ var m = {
|
|
|
140
141
|
get value() {
|
|
141
142
|
let e = this.seconds;
|
|
142
143
|
if (e === null) return "";
|
|
143
|
-
let t = `${
|
|
144
|
-
return this.showSeconds ? `${t}:${
|
|
144
|
+
let t = `${p(Math.floor(e / 3600))}:${p(Math.floor(e / 60) % 60)}`;
|
|
145
|
+
return this.showSeconds ? `${t}:${p(e % 60)}` : t;
|
|
145
146
|
}
|
|
146
147
|
set value(e) {
|
|
147
|
-
let t = this.value, n =
|
|
148
|
+
let t = this.value, n = m(e);
|
|
148
149
|
this.valueSeconds = n !== null && n % 60 != 0, this.segCycle = this.loc.cycle, this.segs = this.fromSeconds(n, this.segCycle), this.lastValue = this.value, this.requestUpdate("value", t);
|
|
149
150
|
}
|
|
150
151
|
get valueAsNumber() {
|
|
@@ -157,7 +158,7 @@ var m = {
|
|
|
157
158
|
return;
|
|
158
159
|
}
|
|
159
160
|
let t = Math.floor((e / 1e3 % 86400 + 86400) % 86400);
|
|
160
|
-
this.value = `${
|
|
161
|
+
this.value = `${p(Math.floor(t / 3600))}:${p(Math.floor(t / 60) % 60)}:${p(t % 60)}`;
|
|
161
162
|
}
|
|
162
163
|
connectedCallback() {
|
|
163
164
|
super.connectedCallback(), this.defaultValue ||= this.getAttribute("value") ?? "";
|
|
@@ -205,7 +206,7 @@ var m = {
|
|
|
205
206
|
flags: {},
|
|
206
207
|
message: ""
|
|
207
208
|
};
|
|
208
|
-
let n =
|
|
209
|
+
let n = m(this.min), r = m(this.max), i = n !== null && e < n, a = r !== null && e > r;
|
|
209
210
|
if (n !== null && r !== null && n > r) {
|
|
210
211
|
if (i && a) return {
|
|
211
212
|
flags: {
|
|
@@ -316,7 +317,7 @@ var m = {
|
|
|
316
317
|
else if (n === "p" || a.toLocaleLowerCase().startsWith(n)) this.set(t, 1);
|
|
317
318
|
else continue;
|
|
318
319
|
this.move(e, 1);
|
|
319
|
-
} else
|
|
320
|
+
} else g.has(r) && this.segs[t] !== null && (this.buffer = "", this.move(e, 1));
|
|
320
321
|
}
|
|
321
322
|
}
|
|
322
323
|
onSegmentKeydown(e) {
|
|
@@ -325,7 +326,7 @@ var m = {
|
|
|
325
326
|
if (e.key === "Enter") {
|
|
326
327
|
e.preventDefault();
|
|
327
328
|
let t = this.internals.form;
|
|
328
|
-
t && setTimeout(() => t
|
|
329
|
+
t && setTimeout(() => l(t));
|
|
329
330
|
return;
|
|
330
331
|
}
|
|
331
332
|
let r = !this.readonly && !this.isDisabled, [i, a] = this.bounds(n);
|
|
@@ -415,7 +416,7 @@ var m = {
|
|
|
415
416
|
return e`<span role="spinbutton" part="segment segment-${t}" class="segment ${o === null ? "empty" : ""}" data-seg=${t}
|
|
416
417
|
id=${n(t === "hour" ? "control" : void 0)} tabindex=${u ? "-1" : "0"}
|
|
417
418
|
contenteditable=${d ? "true" : "false"} inputmode=${t === "dayPeriod" ? "text" : "numeric"} spellcheck="false"
|
|
418
|
-
autocapitalize="off" autocorrect="off" enterkeyhint=${this.enterKeyHint || "next"} aria-label=${this.tr(
|
|
419
|
+
autocapitalize="off" autocorrect="off" enterkeyhint=${this.enterKeyHint || "next"} aria-label=${this.tr(h[t])}
|
|
419
420
|
aria-valuenow=${n(o === null ? void 0 : o)} aria-valuemin=${s} aria-valuemax=${c}
|
|
420
421
|
aria-valuetext=${o === null ? this.tr("timeEmpty") : l} aria-invalid=${i ? "true" : "false"}
|
|
421
422
|
aria-required=${this.required ? "true" : "false"} aria-readonly=${n(this.readonly ? "true" : void 0)}
|
|
@@ -440,5 +441,5 @@ var m = {
|
|
|
440
441
|
</div>`;
|
|
441
442
|
}
|
|
442
443
|
};
|
|
443
|
-
a("bk-input-time",
|
|
444
|
-
export {
|
|
444
|
+
a("bk-input-time", _);
|
|
445
|
+
export { _ as BkInputTime, m as parseTime };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as e, n as t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as r } from "./chunks/announcer-
|
|
3
|
-
import {
|
|
2
|
+
import { t as r } from "./chunks/announcer-6tMlCOq1.js";
|
|
3
|
+
import { i, t as a } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { n as o } from "./chunks/events-DQ4e9cPN.js";
|
|
5
5
|
import { t as s } from "./chunks/light-styles-CFbyUU7I.js";
|
|
6
|
-
import { p as c } from "./chunks/styles-
|
|
6
|
+
import { p as c } from "./chunks/styles-CaeyhYDA.js";
|
|
7
7
|
import { BkItem as l } from "./bk-item.js";
|
|
8
8
|
import { BkSortable as u } from "./bk-sortable.js";
|
|
9
9
|
import "./chunks/grid-BV0_DQ5v.js";
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/if-defined-z_20pBRr.js";
|
|
3
|
-
import { t as a } from "./chunks/i18n-
|
|
4
|
-
import { t as o } from "./chunks/define-
|
|
5
|
-
import { t as s } from "./chunks/link
|
|
3
|
+
import { t as a } from "./chunks/i18n-DFfGgd3d.js";
|
|
4
|
+
import { t as o } from "./chunks/define-6OfuRn5c.js";
|
|
5
|
+
import { t as s } from "./chunks/link--YWr8exL.js";
|
|
6
6
|
import { t as c } from "./chunks/slots-BHTtBbPo.js";
|
|
7
|
-
import { t as l, x as u } from "./chunks/styles-
|
|
8
|
-
import "./chunks/bk-icon-
|
|
7
|
+
import { t as l, x as u } from "./chunks/styles-CaeyhYDA.js";
|
|
8
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
9
|
+
import { t as d } from "./chunks/own-text-mpZVnMyX.js";
|
|
9
10
|
import "./chunks/check-BkWcIJJJ.js";
|
|
10
11
|
import "./chunks/description-DXoJ8atg.js";
|
|
11
12
|
// dist/components/bk-item.js
|
|
12
|
-
var
|
|
13
|
+
var f = /* @__PURE__ */ new Set(["bk-stack", "bk-lines"]), p = !1, m = class extends n {
|
|
13
14
|
static properties = {
|
|
14
15
|
icon: {},
|
|
15
16
|
description: {},
|
|
@@ -40,13 +41,13 @@ var d = /* @__PURE__ */ new Set(["bk-stack", "bk-lines"]), f = !1, p = class ext
|
|
|
40
41
|
super.connectedCallback(), this.selectable || (this.internals.role = this.parentElement?.localName === "bk-item-group" ? "listitem" : null), this.warnSpaced();
|
|
41
42
|
}
|
|
42
43
|
warnSpaced() {
|
|
43
|
-
!
|
|
44
|
+
!p && f.has(this.parentElement?.localName ?? "") && requestAnimationFrame(() => {
|
|
44
45
|
let e = this.parentElement;
|
|
45
|
-
!
|
|
46
|
+
!p && e && f.has(e.localName) && ([...e.children].filter((e) => e.localName === "bk-item").length < 2 || (p = !0, console.warn(`<bk-item>: rows in a <${e.localName}> get its gap in addition to their own padding. Put the rows in a <bk-item-group>.`, e)));
|
|
46
47
|
});
|
|
47
48
|
}
|
|
48
49
|
get itemValue() {
|
|
49
|
-
return this.value ??
|
|
50
|
+
return this.value ?? d(this).trim();
|
|
50
51
|
}
|
|
51
52
|
setSelectState(e) {
|
|
52
53
|
let t = this.internals;
|
|
@@ -223,5 +224,5 @@ var d = /* @__PURE__ */ new Set(["bk-stack", "bk-lines"]), f = !1, p = class ext
|
|
|
223
224
|
</div>`;
|
|
224
225
|
}
|
|
225
226
|
};
|
|
226
|
-
o("bk-item",
|
|
227
|
-
export {
|
|
227
|
+
o("bk-item", m);
|
|
228
|
+
export { m as BkItem };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as i } from "./chunks/define-
|
|
3
|
-
import { t as a } from "./chunks/styles-
|
|
4
|
-
import {
|
|
2
|
+
import { t as i } from "./chunks/define-6OfuRn5c.js";
|
|
3
|
+
import { t as a } from "./chunks/styles-CaeyhYDA.js";
|
|
4
|
+
import { g as o, o as s } from "./chunks/shortcuts-DPxCSO4M.js";
|
|
5
|
+
import "./bk-kbd.js";
|
|
5
6
|
// dist/components/bk-kbd-shortcuts.js
|
|
6
7
|
var c = class extends n {
|
|
7
8
|
static properties = { shortcuts: { attribute: !1 } };
|
|
@@ -1 +1,68 @@
|
|
|
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-6OfuRn5c.js";
|
|
3
|
+
import { t as a } from "./chunks/i18n-DFfGgd3d.js";
|
|
4
|
+
import { t as o, x as s } from "./chunks/styles-CaeyhYDA.js";
|
|
5
|
+
import { a as c, g as l, n as u, r as d } from "./chunks/shortcuts-DPxCSO4M.js";
|
|
6
|
+
// dist/components/bk-kbd.js
|
|
7
|
+
var f = class extends n {
|
|
8
|
+
static properties = {
|
|
9
|
+
keys: {},
|
|
10
|
+
shortcut: {},
|
|
11
|
+
size: {
|
|
12
|
+
reflect: !0,
|
|
13
|
+
useDefault: !0
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
i18n = new a(this);
|
|
17
|
+
internals = this.attachInternals();
|
|
18
|
+
unsubscribe;
|
|
19
|
+
constructor() {
|
|
20
|
+
super(), this.size = "md";
|
|
21
|
+
}
|
|
22
|
+
connectedCallback() {
|
|
23
|
+
super.connectedCallback(), this.unsubscribe = l(() => this.requestUpdate());
|
|
24
|
+
}
|
|
25
|
+
disconnectedCallback() {
|
|
26
|
+
super.disconnectedCallback(), this.unsubscribe?.();
|
|
27
|
+
}
|
|
28
|
+
static styles = [
|
|
29
|
+
o,
|
|
30
|
+
s,
|
|
31
|
+
r`
|
|
32
|
+
:host {
|
|
33
|
+
display: inline-flex; align-items: center; vertical-align: middle; gap: var(--bk-kbd-gap, var(--bk-space-0));
|
|
34
|
+
font-size: var(--bk-kbd-font-size, var(--bk-text-xs)); white-space: nowrap;
|
|
35
|
+
}
|
|
36
|
+
:host(:state(empty)) { display: none; }
|
|
37
|
+
:host([size="sm"]) { font-size: var(--bk-kbd-font-size, var(--bk-text-2xs)); }
|
|
38
|
+
:host([size="lg"]) { font-size: var(--bk-kbd-font-size, var(--bk-text-sm)); }
|
|
39
|
+
kbd {
|
|
40
|
+
display: inline-grid; place-items: center; box-sizing: border-box;
|
|
41
|
+
min-width: var(--bk-kbd-height, 1.75em); height: var(--bk-kbd-height, 1.75em); padding: 0 var(--bk-kbd-padding, var(--bk-space-1));
|
|
42
|
+
font-family: var(--bk-kbd-font, var(--bk-font)); font-size: inherit; font-weight: var(--bk-kbd-font-weight, var(--bk-weight-medium));
|
|
43
|
+
line-height: 1; color: var(--bk-kbd-fg, var(--bk-text-muted)); background: var(--bk-kbd-bg, var(--bk-surface-2));
|
|
44
|
+
border: var(--bk-border-width) solid var(--bk-kbd-border, var(--bk-line-mid)); border-bottom-width: 2px;
|
|
45
|
+
border-radius: var(--bk-kbd-radius, var(--bk-radius-xs));
|
|
46
|
+
}
|
|
47
|
+
.caps { display: contents; }
|
|
48
|
+
@media (forced-colors: active) { kbd { border-color: CanvasText; } }
|
|
49
|
+
`
|
|
50
|
+
];
|
|
51
|
+
get source() {
|
|
52
|
+
let e = this.shortcut?.trim();
|
|
53
|
+
return e ? c(e)?.keys ?? "" : (this.keys ?? "").trim();
|
|
54
|
+
}
|
|
55
|
+
willUpdate(e) {
|
|
56
|
+
super.willUpdate(e), this.shortcut?.trim() && !this.source ? this.internals.states.add("empty") : this.internals.states.delete("empty");
|
|
57
|
+
}
|
|
58
|
+
render() {
|
|
59
|
+
let n = this.source;
|
|
60
|
+
if (!n && this.shortcut?.trim()) return t;
|
|
61
|
+
if (!n) return e`<kbd part="key" translate="no"><slot></slot></kbd>`;
|
|
62
|
+
let r = this.i18n.locale, i = d(n, { locale: r });
|
|
63
|
+
return i.length ? e`<span class="caps" aria-hidden="true" translate="no">${i.map((t) => e`<kbd part="key">${t}</kbd>`)}</span><span
|
|
64
|
+
class="sr-only">${u(n, { locale: r })}</span>` : t;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
i("bk-kbd", f);
|
|
68
|
+
export { f as BkKbd };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { i as r } from "./chunks/anchor-CNX3nt2F.js";
|
|
3
|
-
import { t as i } from "./chunks/define-
|
|
4
|
-
import { t as a } from "./chunks/i18n-
|
|
3
|
+
import { t as i } from "./chunks/define-6OfuRn5c.js";
|
|
4
|
+
import { t as a } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
5
|
import { r as o } from "./chunks/events-DQ4e9cPN.js";
|
|
6
|
-
import { t as s } from "./chunks/styles-
|
|
7
|
-
import "./chunks/bk-dialog-
|
|
6
|
+
import { t as s } from "./chunks/styles-CaeyhYDA.js";
|
|
7
|
+
import "./chunks/bk-dialog-DcvwnOtN.js";
|
|
8
8
|
import "./bk-button.js";
|
|
9
9
|
import "./bk-image-viewer.js";
|
|
10
10
|
import "./chunks/close-CcDDKPf9.js";
|
|
@@ -22,6 +22,22 @@ var c = class extends t {
|
|
|
22
22
|
type: Boolean,
|
|
23
23
|
reflect: !0
|
|
24
24
|
},
|
|
25
|
+
loop: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
reflect: !0
|
|
28
|
+
},
|
|
29
|
+
pageable: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
reflect: !0
|
|
32
|
+
},
|
|
33
|
+
first: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
reflect: !0
|
|
36
|
+
},
|
|
37
|
+
last: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
reflect: !0
|
|
40
|
+
},
|
|
25
41
|
variant: {
|
|
26
42
|
reflect: !0,
|
|
27
43
|
useDefault: !0
|
|
@@ -40,7 +56,7 @@ var c = class extends t {
|
|
|
40
56
|
opener = null;
|
|
41
57
|
i18n = new a(this);
|
|
42
58
|
constructor() {
|
|
43
|
-
super(), this.open = !1, this.index = 0, this.items = [], this.filmstrip = !1, this.variant = "grid", this.label = "", this.closeLabel = "", this.prevLabel = "", this.nextLabel = "", this.zoomInLabel = "", this.zoomOutLabel = "", this.fitLabel = "", this.actualSizeLabel = "", this.errorLabel = "", this.view = [], this.addEventListener("click", this.onGalleryClick), this.addEventListener("keydown", this.onGalleryKey);
|
|
59
|
+
super(), this.open = !1, this.index = 0, this.items = [], this.filmstrip = !1, this.loop = !1, this.pageable = !1, this.first = !1, this.last = !1, this.variant = "grid", this.label = "", this.closeLabel = "", this.prevLabel = "", this.nextLabel = "", this.zoomInLabel = "", this.zoomOutLabel = "", this.fitLabel = "", this.actualSizeLabel = "", this.errorLabel = "", this.view = [], this.addEventListener("click", this.onGalleryClick), this.addEventListener("keydown", this.onGalleryKey);
|
|
44
60
|
}
|
|
45
61
|
static styles = [s, n`
|
|
46
62
|
:host { display: block; }
|
|
@@ -214,7 +230,8 @@ var c = class extends t {
|
|
|
214
230
|
return e`<div class="gallery" part="gallery"><slot @slotchange=${this.onSlotChange}></slot></div>
|
|
215
231
|
<bk-dialog bare exportparts="dialog" heading=${this.label || this.i18n.t("imageViewer")} .open=${this.open}
|
|
216
232
|
@open=${this.onDialogOpen} @close=${this.onDialogClose}>
|
|
217
|
-
<bk-image-viewer part="viewer" autofocus .items=${this.view} .index=${this.index} ?filmstrip=${this.filmstrip}
|
|
233
|
+
<bk-image-viewer part="viewer" autofocus immersive .items=${this.view} .index=${this.index} ?filmstrip=${this.filmstrip} ?loop=${this.loop}
|
|
234
|
+
?pageable=${this.pageable} ?first=${this.first} ?last=${this.last}
|
|
218
235
|
label=${this.label || this.i18n.t("imageViewer")} prev-label=${this.prevLabel} next-label=${this.nextLabel}
|
|
219
236
|
zoom-in-label=${this.zoomInLabel} zoom-out-label=${this.zoomOutLabel} fit-label=${this.fitLabel}
|
|
220
237
|
actual-size-label=${this.actualSizeLabel} error-label=${this.errorLabel}
|
|
@@ -230,7 +247,7 @@ var c = class extends t {
|
|
|
230
247
|
i("bk-lightbox", c);
|
|
231
248
|
function l(e, t = 0, n = {}) {
|
|
232
249
|
let r = document.createElement("bk-lightbox");
|
|
233
|
-
r.items = e, r.filmstrip = !!n.filmstrip;
|
|
250
|
+
r.items = e, r.filmstrip = !!n.filmstrip, r.loop = !!n.loop;
|
|
234
251
|
for (let e of n.actions ?? []) e.slot = "actions", r.append(e);
|
|
235
252
|
return r.addEventListener("close", () => {
|
|
236
253
|
let e = r.shadowRoot?.querySelector("bk-dialog")?.shadowRoot?.querySelector("dialog");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as r } from "./chunks/define-
|
|
2
|
+
import { t as r } from "./chunks/define-6OfuRn5c.js";
|
|
3
3
|
// dist/components/bk-lines.js
|
|
4
4
|
var i = class extends t {
|
|
5
5
|
static properties = { align: { reflect: !0 } };
|