@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,10 +1,10 @@
|
|
|
1
1
|
import { a as e, n as t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as o } from "./chunks/define-
|
|
2
|
+
import { o as r, r as i, t as a } from "./chunks/i18n-DFfGgd3d.js";
|
|
3
|
+
import { t as o } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { t as s } from "./chunks/events-DQ4e9cPN.js";
|
|
5
5
|
import { n as c, t as l } from "./chunks/field-DkBkSgJI.js";
|
|
6
|
-
import { t as u } from "./chunks/form-control-
|
|
7
|
-
import { c as d, r as f, s as p, t as m } from "./chunks/styles-
|
|
6
|
+
import { t as u } from "./chunks/form-control-Bmk0SRDX.js";
|
|
7
|
+
import { c as d, r as f, s as p, t as m } from "./chunks/styles-CaeyhYDA.js";
|
|
8
8
|
// dist/components/bk-input-code.js
|
|
9
9
|
var h = class extends u {
|
|
10
10
|
static properties = {
|
|
@@ -2,12 +2,12 @@ import { a as e, n as t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
|
2
2
|
import { t as r } from "./chunks/if-defined-z_20pBRr.js";
|
|
3
3
|
import { t as i } from "./chunks/live-CgLyfc6z.js";
|
|
4
4
|
import { n as a, o, t as s } from "./chunks/anchor-CNX3nt2F.js";
|
|
5
|
-
import { t as c } from "./chunks/define-
|
|
5
|
+
import { t as c } from "./chunks/define-6OfuRn5c.js";
|
|
6
6
|
import { t as l } from "./chunks/events-DQ4e9cPN.js";
|
|
7
|
-
import { b as u, y as d } from "./chunks/styles-
|
|
8
|
-
import { t as f } from "./chunks/text-field-
|
|
7
|
+
import { b as u, y as d } from "./chunks/styles-CaeyhYDA.js";
|
|
8
|
+
import { t as f } from "./chunks/text-field-CufOGdfr.js";
|
|
9
9
|
import { allowedFormats as p, normalizeColor as m } from "./bk-color-panel.js";
|
|
10
|
-
import "./chunks/bk-icon-
|
|
10
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
11
11
|
import "./bk-swatch.js";
|
|
12
12
|
import "./chunks/chevron-down-CpVEjEyi.js";
|
|
13
13
|
// dist/components/bk-input-color.js
|
|
@@ -72,8 +72,6 @@ var h = 0, g = class extends f {
|
|
|
72
72
|
.box:has(.pick:focus) {
|
|
73
73
|
border-color: var(--bk-field-border, var(--bk-line-strong)); box-shadow: var(--bk-field-shadow, var(--bk-shadow-control));
|
|
74
74
|
}
|
|
75
|
-
:host([editable]) .chevron { cursor: pointer; }
|
|
76
|
-
:host([editable][disabled]) .chevron { cursor: not-allowed; }
|
|
77
75
|
input { font-variant-numeric: tabular-nums; }
|
|
78
76
|
/* The trigger fills the box: its ::before covers the whole box, so a click anywhere opens the panel. */
|
|
79
77
|
.trigger {
|
|
@@ -279,16 +277,8 @@ var h = 0, g = class extends f {
|
|
|
279
277
|
${this.renderSuffix()}
|
|
280
278
|
${this.renderClear()}
|
|
281
279
|
${this.renderEnd()}
|
|
282
|
-
<bk-icon class="chevron" part="chevron" name="chevron-down"
|
|
283
|
-
@pointerdown=${this.onChevronPointerdown} @click=${this.onChevronClick}></bk-icon>
|
|
284
280
|
</div>`;
|
|
285
281
|
}
|
|
286
|
-
onChevronPointerdown(e) {
|
|
287
|
-
e.preventDefault(), this.onBoxPointerdown();
|
|
288
|
-
}
|
|
289
|
-
onChevronClick() {
|
|
290
|
-
this.isDisabled || this.onBoxClick();
|
|
291
|
-
}
|
|
292
282
|
};
|
|
293
283
|
c("bk-input-color", g);
|
|
294
284
|
export { g as BkInputColor };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, c as t, l as n } from "./chunks/date-field-
|
|
2
|
-
import { t as r } from "./chunks/bk-input-date-range-
|
|
1
|
+
import { a as e, c as t, l as n } from "./chunks/date-field-Dy1_qxNv.js";
|
|
2
|
+
import { t as r } from "./chunks/bk-input-date-range-C0Vd-p0T.js";
|
|
3
3
|
import "./bk-input-time.js";
|
|
4
4
|
export { r as BkInputDateRange, e as parseDateRange, t as parseRelative, n as resolveRelative };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, u as t } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as n } from "./chunks/define-
|
|
3
|
-
import { i as r, t as i } from "./chunks/date-field-
|
|
2
|
+
import { t as n } from "./chunks/define-6OfuRn5c.js";
|
|
3
|
+
import { i as r, t as i } from "./chunks/date-field-Dy1_qxNv.js";
|
|
4
4
|
import { fromUtc as a, utc as o, validIso as s } from "./bk-calendar.js";
|
|
5
5
|
// dist/components/bk-input-date.js
|
|
6
6
|
var c, l = class extends i {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { a as e, n as t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as r } from "./chunks/if-defined-z_20pBRr.js";
|
|
3
3
|
import { t as i } from "./chunks/repeat-Dxf3qZZl.js";
|
|
4
|
-
import { t as a } from "./chunks/i18n-
|
|
5
|
-
import { t as o } from "./chunks/define-
|
|
4
|
+
import { t as a } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
|
+
import { t as o } from "./chunks/define-6OfuRn5c.js";
|
|
6
6
|
import { n as s, t as c } from "./chunks/events-DQ4e9cPN.js";
|
|
7
7
|
import { t as l } from "./chunks/format-Dj4SzErj.js";
|
|
8
8
|
import { n as u } from "./chunks/format-DEwvmPPd.js";
|
|
9
9
|
import { n as d, t as f } from "./chunks/field-DkBkSgJI.js";
|
|
10
|
-
import { t as p } from "./chunks/form-control-
|
|
10
|
+
import { t as p } from "./chunks/form-control-Bmk0SRDX.js";
|
|
11
11
|
import { t as m } from "./chunks/slots-BHTtBbPo.js";
|
|
12
|
-
import { c as h, s as g, t as _ } from "./chunks/styles-
|
|
12
|
+
import { c as h, s as g, t as _ } from "./chunks/styles-CaeyhYDA.js";
|
|
13
13
|
import "./bk-bar.js";
|
|
14
|
-
import "./chunks/bk-icon-
|
|
14
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
15
15
|
import "./bk-button.js";
|
|
16
16
|
import "./bk-progress.js";
|
|
17
17
|
import "./bk-sortable.js";
|
|
@@ -138,10 +138,14 @@ var x = (e, t) => e.name === t.name && e.size === t.size && e.lastModified === t
|
|
|
138
138
|
font-size: var(--_bk-input-file-font); line-height: var(--bk-line-height-tight); text-align: center;
|
|
139
139
|
cursor: pointer; transition: border-color var(--bk-duration-fast), background-color var(--bk-duration-fast), box-shadow var(--bk-duration-fast);
|
|
140
140
|
}
|
|
141
|
+
.zone.has-preview { gap: var(--bk-input-file-preview-gap, var(--bk-space-2)); }
|
|
142
|
+
.preview { justify-self: stretch; display: grid; place-items: center; min-inline-size: 0; cursor: auto; }
|
|
143
|
+
.preview[hidden] { display: none; }
|
|
144
|
+
.preview ::slotted(*) { max-inline-size: 100%; }
|
|
141
145
|
.zone bk-icon { --bk-icon-size: var(--_bk-input-file-icon-size); color: var(--bk-input-file-icon-color, currentColor); }
|
|
142
146
|
@media (hover: hover) { :host(:not([disabled])) .zone:hover:not(:focus-within) { border-color: var(--bk-input-file-hover-border, var(--bk-line-hover)); } }
|
|
143
|
-
/* The zone is the field: it shows focus on any focus, like the box of an input. */
|
|
144
|
-
.zone:focus-within {
|
|
147
|
+
/* The zone is the field: it shows focus on any focus, like the box of an input. A preview with focus shows its own focus. */
|
|
148
|
+
.zone:not(.has-preview):focus-within, .zone.has-preview:has(> .line:focus-within) {
|
|
145
149
|
border-style: solid; border-color: var(--bk-input-file-active-border, var(--bk-accent-solid));
|
|
146
150
|
box-shadow: var(--bk-field-focus-ring, var(--bk-ring-focus));
|
|
147
151
|
}
|
|
@@ -380,7 +384,9 @@ var x = (e, t) => e.name === t.name && e.size === t.size && e.lastModified === t
|
|
|
380
384
|
t.files && this.addFiles(t.files), t.value = "";
|
|
381
385
|
}
|
|
382
386
|
onZoneClick(e) {
|
|
383
|
-
e.target.closest?.(".browse, [slot='actions']")
|
|
387
|
+
if (e.target.closest?.(".browse, [slot='actions']")) return;
|
|
388
|
+
let t = this.renderRoot.querySelector(".preview");
|
|
389
|
+
t && e.composedPath().includes(t) || this.showPicker();
|
|
384
390
|
}
|
|
385
391
|
hasFiles(e) {
|
|
386
392
|
return !!e.dataTransfer && [...e.dataTransfer.types].includes("Files");
|
|
@@ -482,12 +488,13 @@ var x = (e, t) => e.name === t.name && e.size === t.size && e.lastModified === t
|
|
|
482
488
|
let n = this.validationText, a = f(this.fieldHint(this.hint), n), o = this.multiple || this.folders, s = this.browseLabel || this.i18n.t(o ? "fileBrowseMany" : "fileBrowse"), c = this.folderLabel || this.i18n.t("fileBrowseFolder"), l = this.label ? void 0 : this.forwardedName, u = e`<input type="file" tabindex="-1" aria-hidden="true" accept=${r(this.accept || void 0)} ?multiple=${o}
|
|
483
489
|
?disabled=${this.isDisabled} @change=${this.onPick} @click=${(e) => e.stopPropagation()} />
|
|
484
490
|
${this.folders ? e`<input type="file" webkitdirectory tabindex="-1" aria-hidden="true" ?disabled=${this.isDisabled}
|
|
485
|
-
@change=${this.onPick} @click=${(e) => e.stopPropagation()} />` : t}`, p = e`<div class="zone ${this.dragging ? "dragging" : ""} ${this.invalid ? "has-error" : ""}" part="zone"
|
|
491
|
+
@change=${this.onPick} @click=${(e) => e.stopPropagation()} />` : t}`, p = this.slots.has("preview"), m = e`<div class="zone ${this.dragging ? "dragging" : ""} ${this.invalid ? "has-error" : ""} ${p ? "has-preview" : ""}" part="zone"
|
|
486
492
|
aria-disabled=${r(this.isDisabled ? "true" : void 0)}
|
|
487
493
|
@click=${this.onZoneClick} @dragenter=${this.onDragEnter} @dragover=${this.onDragOver}
|
|
488
494
|
@dragleave=${this.onDragLeave} @drop=${this.onDrop}>
|
|
489
|
-
|
|
490
|
-
<
|
|
495
|
+
${p ? t : e`<bk-icon name=${this.icon}></bk-icon>`}
|
|
496
|
+
<div class="preview" part="preview" ?hidden=${!p}><slot name="preview"></slot></div>
|
|
497
|
+
<span class="line"><span class="prompt" id="prompt"><slot></slot>${this.slots.has("") ? t : this.i18n.t(this.folders ? "fileDropPromptFolders" : this.multiple ? "fileDropPromptMany" : "fileDropPrompt")}</span>
|
|
491
498
|
<button type="button" class="browse" part="browse" id="control" ?disabled=${this.isDisabled}
|
|
492
499
|
aria-labelledby=${r(this.label ? "label control" : void 0)}
|
|
493
500
|
aria-label=${r(l ? `${l}, ${s}` : void 0)}
|
|
@@ -498,7 +505,7 @@ var x = (e, t) => e.name === t.name && e.size === t.size && e.lastModified === t
|
|
|
498
505
|
aria-label=${r(l ? `${l}, ${c}` : void 0)}
|
|
499
506
|
@click=${() => this.showFolderPicker()}>${c}</button>` : t}${this.slots.has("actions") ? e`<span aria-hidden="true"> · </span>` : t}<slot name="actions"></slot></span>
|
|
500
507
|
${u}
|
|
501
|
-
</div>`,
|
|
508
|
+
</div>`, h = this.variant === "tiles" && this.files.length > 0 && !p, g = this.files.length > 0 && !h && !p;
|
|
502
509
|
return e`${d({
|
|
503
510
|
label: this.label,
|
|
504
511
|
hint: this.fieldHint(this.hint),
|
|
@@ -508,12 +515,12 @@ var x = (e, t) => e.name === t.name && e.size === t.size && e.lastModified === t
|
|
|
508
515
|
optional: this.optional,
|
|
509
516
|
optionalText: this.optionalText,
|
|
510
517
|
labelFor: "control",
|
|
511
|
-
control:
|
|
518
|
+
control: h ? this.renderTiles(u, a, l) : m
|
|
512
519
|
})}
|
|
513
|
-
${
|
|
520
|
+
${g ? e`<ul class="files" part="files" aria-label=${this.i18n.t("fileList")}>
|
|
514
521
|
${i(this.files, (e) => e, (e, t) => this.renderFile(e, t))}
|
|
515
522
|
</ul>` : t}
|
|
516
|
-
${o && this.files.length ? e`<bk-bar class="footer" part="footer">
|
|
523
|
+
${o && this.files.length && !p ? e`<bk-bar class="footer" part="footer">
|
|
517
524
|
<span>${this.maxFiles === void 0 ? this.i18n.t("fileCount", { count: this.files.length }) : this.i18n.t("fileCountOf", {
|
|
518
525
|
count: this.files.length,
|
|
519
526
|
max: this.maxFiles
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as e, u as t } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as n } from "./chunks/if-defined-z_20pBRr.js";
|
|
3
|
-
import { t as r } from "./chunks/i18n-
|
|
4
|
-
import { t as i } from "./chunks/define-
|
|
3
|
+
import { t as r } from "./chunks/i18n-DFfGgd3d.js";
|
|
4
|
+
import { t as i } from "./chunks/define-6OfuRn5c.js";
|
|
5
5
|
import { t as a } from "./chunks/events-DQ4e9cPN.js";
|
|
6
6
|
import { n as o, t as s } from "./chunks/field-DkBkSgJI.js";
|
|
7
|
-
import { t as c } from "./chunks/form-control-
|
|
8
|
-
import { c as l, s as u, t as d } from "./chunks/styles-
|
|
7
|
+
import { t as c } from "./chunks/form-control-Bmk0SRDX.js";
|
|
8
|
+
import { c as l, s as u, t as d } from "./chunks/styles-CaeyhYDA.js";
|
|
9
9
|
// dist/components/bk-input-group.js
|
|
10
10
|
var f = "bk-input-text, bk-input-number, bk-input-date, bk-input-time, bk-input-date-range, bk-input-color, bk-input-code, bk-select, bk-combobox, bk-input-time-zone", p = class extends c {
|
|
11
11
|
static properties = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as i } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as s } from "./chunks/i18n-
|
|
3
|
+
import { r as a, t as o } from "./chunks/define-6OfuRn5c.js";
|
|
4
|
+
import { t as s } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
5
|
import { n as c, r as l } from "./chunks/events-DQ4e9cPN.js";
|
|
6
|
-
import { t as u, x as d } from "./chunks/styles-
|
|
7
|
-
import {
|
|
6
|
+
import { t as u, x as d } from "./chunks/styles-CaeyhYDA.js";
|
|
7
|
+
import { h as f } from "./chunks/shortcuts-DPxCSO4M.js";
|
|
8
8
|
import "./bk-button.js";
|
|
9
9
|
import "./chunks/check-BkWcIJJJ.js";
|
|
10
10
|
import "./chunks/close-CcDDKPf9.js";
|
|
@@ -39,7 +39,7 @@ var p = class extends n {
|
|
|
39
39
|
customEdit = !1;
|
|
40
40
|
adopted = !1;
|
|
41
41
|
constructor() {
|
|
42
|
-
super(), this.value = "", this.label = "", this.placeholder = "", this.size = "md", this.disabledReason = "", this.required = !1, this.editLabel = "", this.editing = !1, this.busy = !1, this.error = "";
|
|
42
|
+
super(), this.value = "", this.label = "", this.placeholder = "", this.size = "md", this.disabledReason = "", this.required = !1, this.editLabel = "", this.editing = !1, this.busy = !1, this.error = "", this.addEventListener("focusout", this.onFocusOut);
|
|
43
43
|
}
|
|
44
44
|
static styles = [
|
|
45
45
|
u,
|
|
@@ -50,7 +50,11 @@ var p = class extends n {
|
|
|
50
50
|
--_bk-inline-px: var(--bk-input-inline-pad-inline, var(--bk-space-1-5));
|
|
51
51
|
--_bk-inline-py: var(--bk-input-inline-pad-block, var(--bk-space-1));
|
|
52
52
|
--_bk-inline-bw: var(--bk-field-border-width, var(--bk-border-width));
|
|
53
|
+
--_bk-input-inline-ctl: var(--bk-control-md);
|
|
54
|
+
--_bk-input-inline-pencil-gap: max(var(--bk-input-inline-gap, var(--bk-space-1)), calc(var(--_bk-inline-px) + var(--_bk-inline-bw)));
|
|
53
55
|
}
|
|
56
|
+
:host([size="sm"]) { --_bk-input-inline-ctl: var(--bk-control-sm); }
|
|
57
|
+
:host([size="lg"]) { --_bk-input-inline-ctl: var(--bk-control-lg); }
|
|
54
58
|
:host([size="sm"]) :is(.text, input) { font-size: var(--bk-type-small); }
|
|
55
59
|
:host([size="lg"]) :is(.text, input) { font-size: var(--bk-type-lead); }
|
|
56
60
|
/* One line, as tall in both: with line-height normal an input and a span measure their line differently. */
|
|
@@ -75,11 +79,8 @@ var p = class extends n {
|
|
|
75
79
|
reach over the line by the same amount above and below instead of making the line taller, so the text stays. */
|
|
76
80
|
.pencil {
|
|
77
81
|
display: inline-flex;
|
|
78
|
-
--_bk-input-inline-ctl: var(--bk-control-md);
|
|
79
82
|
margin-block: min(0px, calc((1lh - var(--_bk-input-inline-ctl)) / 2));
|
|
80
83
|
}
|
|
81
|
-
:host([size="sm"]) .pencil { --_bk-input-inline-ctl: var(--bk-control-sm); }
|
|
82
|
-
:host([size="lg"]) .pencil { --_bk-input-inline-ctl: var(--bk-control-lg); }
|
|
83
84
|
.pencil { opacity: 0; transition: opacity var(--bk-duration-fast); }
|
|
84
85
|
/* The pencil reaches over the line: its focus ring goes inside it, so it does not touch the text around. */
|
|
85
86
|
.pencil bk-button { --bk-button-focus-offset: var(--bk-focus-offset-inset); }
|
|
@@ -128,8 +129,9 @@ var p = class extends n {
|
|
|
128
129
|
pointer. The check of the open field stands in the same place. With a slotted editor the check and the cancel
|
|
129
130
|
button stay in the row. */
|
|
130
131
|
@media (hover: hover) and (forced-colors: none) {
|
|
132
|
+
/* The host leaves room for the pencil in its container: a full line does not push the pencil out of it. */
|
|
133
|
+
:host { max-width: calc(100% - var(--_bk-input-inline-pencil-gap) - var(--_bk-input-inline-ctl)); }
|
|
131
134
|
:is(.text, .display, .edit:not(.slotted)) + .pencil {
|
|
132
|
-
--_bk-input-inline-pencil-gap: max(var(--bk-input-inline-gap, var(--bk-space-1)), calc(var(--_bk-inline-px) + var(--_bk-inline-bw)));
|
|
133
135
|
position: relative; z-index: 1; flex: none;
|
|
134
136
|
inline-size: calc(var(--_bk-input-inline-pencil-gap) + var(--_bk-input-inline-ctl));
|
|
135
137
|
margin-inline: calc(-1 * var(--bk-input-inline-gap, var(--bk-space-1))) calc(-1 * (var(--_bk-input-inline-pencil-gap) + var(--_bk-input-inline-ctl)));
|
|
@@ -240,7 +242,12 @@ var p = class extends n {
|
|
|
240
242
|
e.composedPath().some((e) => e !== this && e.matches?.("a[href], button, bk-button, input, select")) || this.edit();
|
|
241
243
|
};
|
|
242
244
|
onOutside = (e) => {
|
|
243
|
-
this.busy || e.composedPath().includes(this) || this.
|
|
245
|
+
this.busy || e.composedPath().includes(this) || this.save();
|
|
246
|
+
};
|
|
247
|
+
onFocusOut = (e) => {
|
|
248
|
+
if (!this.editing || this.busy) return;
|
|
249
|
+
let t = e.relatedTarget;
|
|
250
|
+
!t || t === this || this.contains(t) || this.renderRoot?.contains(t) || (this.save(), this.restoreFocus = !1);
|
|
244
251
|
};
|
|
245
252
|
disconnectedCallback() {
|
|
246
253
|
super.disconnectedCallback(), document.removeEventListener("pointerdown", this.onOutside, !0);
|
|
@@ -1,15 +1,16 @@
|
|
|
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 { t as i } from "./chunks/define-
|
|
4
|
+
import { t as i } from "./chunks/define-6OfuRn5c.js";
|
|
5
5
|
import { t as a } from "./chunks/events-DQ4e9cPN.js";
|
|
6
|
-
import { a as o, i as s, n as c, r as l } from "./chunks/form-control-
|
|
7
|
-
import { t as u } from "./chunks/text-field-
|
|
8
|
-
import "./chunks/bk-icon-
|
|
6
|
+
import { a as o, i as s, n as c, r as l } from "./chunks/form-control-Bmk0SRDX.js";
|
|
7
|
+
import { t as u } from "./chunks/text-field-CufOGdfr.js";
|
|
8
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
9
|
+
import { r as d } from "./chunks/submit-BjBGB8OW.js";
|
|
9
10
|
import "./chunks/add-CUFUzxGc.js";
|
|
10
11
|
import "./chunks/remove-3A4Fpn3J.js";
|
|
11
12
|
// dist/components/bk-input-number.js
|
|
12
|
-
var
|
|
13
|
+
var f = class i extends u {
|
|
13
14
|
static properties = {
|
|
14
15
|
...u.properties,
|
|
15
16
|
value: {},
|
|
@@ -219,7 +220,7 @@ var d = class i extends u {
|
|
|
219
220
|
this.userSet(() => this.value = String(this.sanitize(this.hi)));
|
|
220
221
|
break;
|
|
221
222
|
case "Enter":
|
|
222
|
-
this.commitText(!0), this.internals.form && setTimeout(() => this.internals.form
|
|
223
|
+
this.commitText(!0), this.internals.form && setTimeout(() => d(this.internals.form));
|
|
223
224
|
return;
|
|
224
225
|
default: return;
|
|
225
226
|
}
|
|
@@ -260,5 +261,5 @@ var d = class i extends u {
|
|
|
260
261
|
</div>`);
|
|
261
262
|
}
|
|
262
263
|
};
|
|
263
|
-
i("bk-input-number",
|
|
264
|
-
export {
|
|
264
|
+
i("bk-input-number", f);
|
|
265
|
+
export { f as BkInputNumber };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as e, n as t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as o } from "./chunks/define-
|
|
2
|
+
import { o as r, r as i, t as a } from "./chunks/i18n-DFfGgd3d.js";
|
|
3
|
+
import { t as o } from "./chunks/define-6OfuRn5c.js";
|
|
4
4
|
import { t as s } from "./chunks/events-DQ4e9cPN.js";
|
|
5
5
|
import { n as c, t as l } from "./chunks/field-DkBkSgJI.js";
|
|
6
|
-
import { t as u } from "./chunks/form-control-
|
|
7
|
-
import { c as d, s as f, t as p } from "./chunks/styles-
|
|
8
|
-
import { i as m, n as h, r as g, t as _ } from "./chunks/stars-
|
|
9
|
-
import "./chunks/bk-icon-
|
|
6
|
+
import { t as u } from "./chunks/form-control-Bmk0SRDX.js";
|
|
7
|
+
import { c as d, s as f, t as p } from "./chunks/styles-CaeyhYDA.js";
|
|
8
|
+
import { i as m, n as h, r as g, t as _ } from "./chunks/stars-BAUc_LqI.js";
|
|
9
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
10
10
|
import "./chunks/star-BV5ZdPSf.js";
|
|
11
11
|
// dist/components/bk-input-rating.js
|
|
12
12
|
var v = class extends u {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./bk-divider.js";
|
|
2
|
-
export { t as BkInputRich, i as isSafeHref, n as markdownToRichHtml, a as normalizeHref, r as richHtmlToMarkdown, o as sanitizeRichText } from "./chunks/bk-input-rich-
|
|
2
|
+
export { t as BkInputRich, i as isSafeHref, n as markdownToRichHtml, a as normalizeHref, r as richHtmlToMarkdown, o as sanitizeRichText } from "./chunks/bk-input-rich-AmDv87E5.js";
|
|
3
3
|
import "./bk-select.js";
|
|
4
4
|
import "./bk-toolbar.js";
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { a as e, n as t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as r } from "./chunks/if-defined-z_20pBRr.js";
|
|
3
3
|
import { t as i } from "./chunks/live-CgLyfc6z.js";
|
|
4
|
-
import { n as a, t as o } from "./chunks/choice-field-
|
|
5
|
-
import { t as s } from "./chunks/define-
|
|
4
|
+
import { n as a, t as o } from "./chunks/choice-field-B0oe_9fI.js";
|
|
5
|
+
import { t as s } from "./chunks/define-6OfuRn5c.js";
|
|
6
6
|
import { n as c, t as l } from "./chunks/events-DQ4e9cPN.js";
|
|
7
|
-
import { r as u, t as d } from "./chunks/options-
|
|
7
|
+
import { r as u, t as d } from "./chunks/options-ySaDL-dW.js";
|
|
8
8
|
import "./bk-chip.js";
|
|
9
|
-
import "./chunks/bk-icon-
|
|
9
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
10
10
|
import "./bk-spinner.js";
|
|
11
|
+
import { r as f } from "./chunks/submit-BjBGB8OW.js";
|
|
11
12
|
import "./chunks/search-Cm9mOqRy.js";
|
|
12
13
|
// dist/components/bk-input-search.js
|
|
13
|
-
function
|
|
14
|
+
function p(e) {
|
|
14
15
|
return e.match(/(?:[^\s"]|"[^"]*"?)+/g) ?? [];
|
|
15
16
|
}
|
|
16
|
-
function
|
|
17
|
+
function m(e) {
|
|
17
18
|
return /[\s"]/.test(e) ? `"${e.replace(/"/g, "")}"` : e;
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
-
return `${e.negated ? "-" : ""}${e.key}:${
|
|
20
|
+
function h(e) {
|
|
21
|
+
return `${e.negated ? "-" : ""}${e.key}:${m(e.value)}`;
|
|
21
22
|
}
|
|
22
|
-
var
|
|
23
|
+
var g = "q:", _ = "v:", v = class s extends o {
|
|
23
24
|
static properties = {
|
|
24
25
|
...o.properties,
|
|
25
26
|
qualifiers: { attribute: !1 },
|
|
@@ -69,7 +70,7 @@ var h = "q:", g = "v:", _ = class s extends o {
|
|
|
69
70
|
[role="option"] .label-text, [role="option"] [part="label"] { font-variant-numeric: tabular-nums; }
|
|
70
71
|
`];
|
|
71
72
|
get value() {
|
|
72
|
-
return [...this.tokens.map(
|
|
73
|
+
return [...this.tokens.map(h), this.text.trim()].filter(Boolean).join(" ");
|
|
73
74
|
}
|
|
74
75
|
set value(e) {
|
|
75
76
|
let t = this.value, { tokens: n, text: r } = this.parse(e == null ? "" : String(e));
|
|
@@ -91,7 +92,7 @@ var h = "q:", g = "v:", _ = class s extends o {
|
|
|
91
92
|
}
|
|
92
93
|
parse(e) {
|
|
93
94
|
let t = [], n = [];
|
|
94
|
-
for (let r of
|
|
95
|
+
for (let r of p(e)) {
|
|
95
96
|
let e = this.asClause(r);
|
|
96
97
|
e ? t.push(e) : n.push(r);
|
|
97
98
|
}
|
|
@@ -143,7 +144,7 @@ var h = "q:", g = "v:", _ = class s extends o {
|
|
|
143
144
|
return this.expanded && this.visible.length > 0;
|
|
144
145
|
}
|
|
145
146
|
get word() {
|
|
146
|
-
return /\s$/.test(this.text) ? "" :
|
|
147
|
+
return /\s$/.test(this.text) ? "" : p(this.text).at(-1) ?? "";
|
|
147
148
|
}
|
|
148
149
|
static normalize(e) {
|
|
149
150
|
return (e ?? []).map((e) => typeof e == "string" ? {
|
|
@@ -166,13 +167,13 @@ var h = "q:", g = "v:", _ = class s extends o {
|
|
|
166
167
|
label: e.label
|
|
167
168
|
}))];
|
|
168
169
|
return i.filter((e, n) => i.findIndex((t) => t.value === e.value) === n && (!r || u(e.label, r, t) || u(e.value, r, t))).map((e) => ({
|
|
169
|
-
value: `${
|
|
170
|
+
value: `${_}${n.key}\u0000${e.value}`,
|
|
170
171
|
label: e.label
|
|
171
172
|
}));
|
|
172
173
|
}
|
|
173
174
|
let n = e[2];
|
|
174
175
|
return this.qualifiers.filter((e) => !n || u(e.key, n, t) || !!e.label && u(e.label, n, t)).map((e) => ({
|
|
175
|
-
value: `${
|
|
176
|
+
value: `${g}${e.key}`,
|
|
176
177
|
label: `${e.key}:`,
|
|
177
178
|
description: e.label
|
|
178
179
|
}));
|
|
@@ -213,7 +214,7 @@ var h = "q:", g = "v:", _ = class s extends o {
|
|
|
213
214
|
let t = this.visible[e];
|
|
214
215
|
if (!t || t.disabled) return;
|
|
215
216
|
let n = this.word, r = this.text.slice(0, this.text.length - n.length), i = n.startsWith("-");
|
|
216
|
-
if (t.value.startsWith(
|
|
217
|
+
if (t.value.startsWith(g)) {
|
|
217
218
|
this.text = `${r}${i ? "-" : ""}${t.value.slice(2)}:`, this.activeIndex = -1, this.expanded = !0, this.scheduleSuggest();
|
|
218
219
|
return;
|
|
219
220
|
}
|
|
@@ -225,12 +226,12 @@ var h = "q:", g = "v:", _ = class s extends o {
|
|
|
225
226
|
}]), this.close();
|
|
226
227
|
}
|
|
227
228
|
addTokens(e) {
|
|
228
|
-
let t = e.filter((e) => !this.tokens.some((t) =>
|
|
229
|
+
let t = e.filter((e) => !this.tokens.some((t) => h(t) === h(e)));
|
|
229
230
|
t.length && (this.tokens = [...this.tokens, ...t]), this.commit();
|
|
230
231
|
}
|
|
231
232
|
extractTokens() {
|
|
232
233
|
let e = [], t = [];
|
|
233
|
-
for (let n of
|
|
234
|
+
for (let n of p(this.text)) {
|
|
234
235
|
let r = this.asClause(n);
|
|
235
236
|
r ? t.push(r) : e.push(n);
|
|
236
237
|
}
|
|
@@ -253,7 +254,7 @@ var h = "q:", g = "v:", _ = class s extends o {
|
|
|
253
254
|
};
|
|
254
255
|
this.commit();
|
|
255
256
|
let t = c(this, "search", e, !0), n = this.internals.form;
|
|
256
|
-
t && n && setTimeout(() => n
|
|
257
|
+
t && n && setTimeout(() => f(n));
|
|
257
258
|
}
|
|
258
259
|
onInput(e) {
|
|
259
260
|
this.text = e.target.value, /\s$/.test(this.text) && (this.text.match(/"/g)?.length ?? 0) % 2 == 0 && this.extractTokens(), this.expanded = !!this.word, this.activeIndex = -1, this.scheduleSuggest();
|
|
@@ -279,7 +280,7 @@ var h = "q:", g = "v:", _ = class s extends o {
|
|
|
279
280
|
if (this.text === "" && t.selectionStart === 0 && this.tokens.length) {
|
|
280
281
|
e.preventDefault();
|
|
281
282
|
let t = this.tokens.at(-1);
|
|
282
|
-
this.tokens = this.tokens.slice(0, -1), this.text =
|
|
283
|
+
this.tokens = this.tokens.slice(0, -1), this.text = h(t), l(this, "input"), this.commit(), this.close();
|
|
283
284
|
}
|
|
284
285
|
return;
|
|
285
286
|
}
|
|
@@ -304,7 +305,7 @@ var h = "q:", g = "v:", _ = class s extends o {
|
|
|
304
305
|
${this.renderStart()}
|
|
305
306
|
<div class="values">
|
|
306
307
|
<span class="tokens">${this.tokens.map((t, n) => e`<bk-chip part="token" size=${this.size} ?removable=${u}
|
|
307
|
-
remove-label=${this.i18n.t("removeItem", { item:
|
|
308
|
+
remove-label=${this.i18n.t("removeItem", { item: h(t) })} @remove=${(e) => this.onTokenRemove(e, n)}>${h(t)}</bk-chip>`)}</span>
|
|
308
309
|
<input part="input" id="control" type="search" role="combobox" autocomplete="off" autocapitalize="off" spellcheck="false"
|
|
309
310
|
enterkeyhint=${this.enterKeyHint || "search"} .value=${i(this.text)} placeholder=${r(n ? void 0 : this.placeholder)}
|
|
310
311
|
?disabled=${this.isDisabled}
|
|
@@ -328,5 +329,5 @@ var h = "q:", g = "v:", _ = class s extends o {
|
|
|
328
329
|
</div>`;
|
|
329
330
|
}
|
|
330
331
|
};
|
|
331
|
-
s("bk-input-search",
|
|
332
|
-
export {
|
|
332
|
+
s("bk-input-search", v);
|
|
333
|
+
export { v as BkInputSearch, h as clauseText };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as e, n as t } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as n } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import { t as r } from "./chunks/i18n-
|
|
4
|
-
import { t as i } from "./chunks/define-
|
|
3
|
+
import { t as r } from "./chunks/i18n-DFfGgd3d.js";
|
|
4
|
+
import { t as i } from "./chunks/define-6OfuRn5c.js";
|
|
5
5
|
import { t as a } from "./chunks/events-DQ4e9cPN.js";
|
|
6
6
|
import { n as o, t as s } from "./chunks/field-DkBkSgJI.js";
|
|
7
|
-
import { a as c, r as l, t as u } from "./chunks/form-control-
|
|
8
|
-
import { a as d, c as f, d as p, f as m, i as h, l as g, n as _, o as v, r as y, s as b, t as x, u as S } from "./chunks/slider-
|
|
7
|
+
import { a as c, r as l, t as u } from "./chunks/form-control-Bmk0SRDX.js";
|
|
8
|
+
import { a as d, c as f, d as p, f as m, i as h, l as g, n as _, o as v, r as y, s as b, t as x, u as S } from "./chunks/slider-jp3d-Ld-.js";
|
|
9
9
|
import { t as C } from "./chunks/slots-BHTtBbPo.js";
|
|
10
|
-
import { c as w, i as T, s as E, t as D } from "./chunks/styles-
|
|
10
|
+
import { c as w, i as T, s as E, t as D } from "./chunks/styles-CaeyhYDA.js";
|
|
11
11
|
import "./bk-input-number.js";
|
|
12
12
|
// dist/components/bk-input-slider-range.js
|
|
13
13
|
var O = class extends u {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as e, n as t } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { t as n } from "./chunks/style-map-BMvn17E7.js";
|
|
3
|
-
import { t as r } from "./chunks/i18n-
|
|
4
|
-
import { t as i } from "./chunks/define-
|
|
3
|
+
import { t as r } from "./chunks/i18n-DFfGgd3d.js";
|
|
4
|
+
import { t as i } from "./chunks/define-6OfuRn5c.js";
|
|
5
5
|
import { t as a } from "./chunks/events-DQ4e9cPN.js";
|
|
6
6
|
import { n as o, t as s } from "./chunks/field-DkBkSgJI.js";
|
|
7
|
-
import { a as c, r as l, t as u } from "./chunks/form-control-
|
|
8
|
-
import { a as d, c as f, d as p, f as m, i as h, l as g, n as _, o as v, r as y, s as b, t as x, u as S } from "./chunks/slider-
|
|
7
|
+
import { a as c, r as l, t as u } from "./chunks/form-control-Bmk0SRDX.js";
|
|
8
|
+
import { a as d, c as f, d as p, f as m, i as h, l as g, n as _, o as v, r as y, s as b, t as x, u as S } from "./chunks/slider-jp3d-Ld-.js";
|
|
9
9
|
import { t as C } from "./chunks/slots-BHTtBbPo.js";
|
|
10
|
-
import { c as w, i as T, s as E, t as D } from "./chunks/styles-
|
|
10
|
+
import { c as w, i as T, s as E, t as D } from "./chunks/styles-CaeyhYDA.js";
|
|
11
11
|
import "./bk-input-number.js";
|
|
12
12
|
// dist/components/bk-input-slider.js
|
|
13
13
|
var O = class extends u {
|