@bk2k/ui 0.6.7 → 0.7.0
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 +88 -2
- package/CHANGELOG.md +193 -0
- package/USAGE.md +102 -33
- 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 +4 -2
- package/dist/clipboard.js +1 -0
- package/dist/components/bk-alert.js +2 -1
- 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 +55 -17
- package/dist/components/bk-button.js +71 -24
- package/dist/components/bk-card.d.ts +4 -0
- package/dist/components/bk-card.js +15 -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 +6 -0
- package/dist/components/bk-chart-bar.d.ts +63 -9
- package/dist/components/bk-chart-bar.js +152 -41
- package/dist/components/bk-chart-line.d.ts +13 -0
- package/dist/components/bk-chart-line.js +11 -1
- 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 +53 -8
- package/dist/components/bk-chip.js +43 -7
- 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 +30 -6
- package/dist/components/bk-combobox.js +63 -20
- package/dist/components/bk-delta.d.ts +10 -0
- package/dist/components/bk-delta.js +8 -6
- package/dist/components/bk-dialog.d.ts +16 -6
- package/dist/components/bk-dialog.js +20 -8
- 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-item.js +8 -6
- package/dist/components/bk-facts.d.ts +6 -4
- package/dist/components/bk-facts.js +22 -10
- 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 +33 -5
- package/dist/components/bk-image-compare.js +72 -24
- 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 +107 -11
- package/dist/components/bk-image-viewer.js +205 -34
- 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-text.d.ts +11 -0
- package/dist/components/bk-input-text.js +17 -3
- package/dist/components/bk-input-time-zone.d.ts +3 -0
- package/dist/components/bk-input-time.js +2 -1
- package/dist/components/bk-item.js +2 -1
- package/dist/components/bk-lightbox.d.ts +12 -3
- package/dist/components/bk-lightbox.js +6 -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-model-viewer.d.ts +12 -1
- package/dist/components/bk-model-viewer.js +15 -2
- 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.js +2 -0
- 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-period-nav.d.ts +102 -0
- package/dist/components/bk-period-nav.js +69 -0
- 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-select.js +2 -1
- package/dist/components/bk-shell-app.d.ts +13 -6
- package/dist/components/bk-shell-app.js +47 -11
- package/dist/components/bk-shell-sites.d.ts +2 -1
- package/dist/components/bk-shell-sites.js +3 -5
- package/dist/components/bk-sortable.d.ts +3 -0
- package/dist/components/bk-sortable.js +10 -17
- package/dist/components/bk-split-grid.d.ts +104 -3
- package/dist/components/bk-split-grid.js +425 -2
- package/dist/components/bk-split.d.ts +3 -0
- package/dist/components/bk-split.js +3 -0
- package/dist/components/bk-stat-group.js +2 -1
- package/dist/components/bk-stat.d.ts +17 -0
- package/dist/components/bk-stat.js +7 -3
- 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 +17 -13
- package/dist/components/bk-table.js +94 -15
- 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 +50 -7
- package/dist/components/bk-tabs.js +168 -96
- 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 +19 -1
- package/dist/i18n/en.d.ts +2 -0
- package/dist/i18n/en.js +3 -0
- package/dist/i18n.d.ts +23 -2
- package/dist/i18n.js +35 -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 +8 -1
- package/dist/internal/announcer.js +26 -10
- 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.d.ts +3 -0
- package/dist/internal/cloak.js +7 -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/drag.d.ts +11 -0
- package/dist/internal/drag.js +23 -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.d.ts +2 -3
- package/dist/internal/handle-menu.js +11 -3
- 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/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 +20 -0
- package/dist/internal/late.js +45 -0
- 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/jsx.d.ts +176 -56
- 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 +13 -12
- 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 +14 -4
- 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 +5 -5
- package/dist/standalone/bk-button-group.js +5 -5
- package/dist/standalone/bk-button-share.js +5 -5
- 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 +20 -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 +253 -166
- 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 +116 -103
- 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 +4 -4
- package/dist/standalone/bk-checkbox.js +4 -4
- package/dist/standalone/bk-chip-group.js +9 -5
- package/dist/standalone/bk-chip.js +56 -17
- 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 +53 -33
- package/dist/standalone/bk-command-menu.js +6 -6
- package/dist/standalone/bk-command-palette.js +6 -5
- 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 +2 -2
- 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 +10 -8
- package/dist/standalone/bk-facts.js +28 -16
- 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 +88 -47
- package/dist/standalone/bk-image-crop.js +6 -6
- package/dist/standalone/bk-image-editor.js +2 -1
- package/dist/standalone/bk-image-viewer.js +180 -59
- package/dist/standalone/bk-input-code.js +4 -4
- package/dist/standalone/bk-input-color.js +4 -4
- 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 +5 -5
- 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-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 +11 -7
- package/dist/standalone/bk-lines.js +1 -1
- package/dist/standalone/bk-link.js +33 -19
- package/dist/standalone/bk-listbox-columns.js +6 -6
- 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 +3 -3
- 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 +6 -6
- 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 +5 -3
- 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 +69 -0
- package/dist/standalone/bk-picture.js +24 -15
- package/dist/standalone/bk-popover-help.js +3 -3
- package/dist/standalone/bk-popover.js +2 -2
- package/dist/standalone/bk-presence-cursor.js +2 -2
- 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 +4 -4
- 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 +15 -13
- package/dist/standalone/bk-select-cascade.js +3 -3
- package/dist/standalone/bk-select-tree.js +4 -4
- package/dist/standalone/bk-select.js +7 -6
- package/dist/standalone/bk-shell-app.js +1 -1217
- 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 +58 -60
- package/dist/standalone/bk-spinner.js +2 -2
- package/dist/standalone/bk-split-grid.js +318 -41
- package/dist/standalone/bk-split.js +9 -6
- package/dist/standalone/bk-stack.js +1 -1
- package/dist/standalone/bk-stat-group.js +8 -7
- package/dist/standalone/bk-stat.js +11 -8
- 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 +4 -4
- 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 -1887
- package/dist/standalone/bk-tabs-item.js +58 -35
- package/dist/standalone/bk-tabs-panel.js +7 -3
- package/dist/standalone/bk-tabs.js +160 -98
- 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 +19 -18
- 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 +3 -3
- 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-D1zrRWwO.js +36 -0
- package/dist/standalone/chunks/{appearance-waHnV0kk.js → appearance-CBOJXbmC.js} +1 -1
- package/dist/standalone/chunks/{bk-alert-offline-BoMEYxnE.js → bk-alert-offline-Clw0ZSsH.js} +3 -3
- package/dist/standalone/chunks/{bk-carousel-B7-9OanA.js → bk-carousel-Biz7t8sL.js} +4 -4
- package/dist/standalone/chunks/{bk-diagram-CpOpicmo.js → bk-diagram-D_fQf6SF.js} +5 -5
- package/dist/standalone/chunks/{bk-dialog-a2BtUBf2.js → bk-dialog-DwZyUUHh.js} +65 -27
- package/dist/standalone/chunks/{bk-icon-DssFsNuB.js → bk-icon-Bp_flKdv.js} +4 -3
- package/dist/standalone/chunks/{bk-image-editor-z_Uj83fy.js → bk-image-editor-BADsoLRL.js} +5 -5
- package/dist/standalone/chunks/{bk-input-date-range-BQkbPlSJ.js → bk-input-date-range-DHcJ8-5g.js} +2 -2
- package/dist/standalone/chunks/{bk-input-rich-Dte_b4Ev.js → bk-input-rich-CFhW6vRa.js} +6 -6
- package/dist/standalone/chunks/{bk-input-text-CUNQG1ah.js → bk-input-text-DviyLBqj.js} +63 -54
- package/dist/standalone/chunks/{bk-model-viewer-D1XJPgAG.js → bk-model-viewer-w_Ah4Tvs.js} +22 -8
- package/dist/standalone/chunks/{bk-qr-code-CbI9rdOK.js → bk-qr-code-CYMovNVl.js} +3 -3
- package/dist/standalone/chunks/bk-shell-app-B2lxHit8.js +1235 -0
- package/dist/standalone/chunks/{bk-surface-DkIhrWMt.js → bk-surface-D7e0tErs.js} +9 -7
- package/dist/standalone/chunks/{bk-swatch-palette-BNNXTP3w.js → bk-swatch-palette-x13JgJQi.js} +6 -6
- package/dist/standalone/chunks/bk-table-CP8n_jy7.js +1944 -0
- package/dist/standalone/chunks/{bk-toast-group-Cix-Urgi.js → bk-toast-group-CoL6W7uk.js} +27 -24
- package/dist/standalone/chunks/{brush-Bn3lPdHN.js → brush-DALmXSru.js} +18 -2
- package/dist/standalone/chunks/{busy-B7Mxemwm.js → busy-BUB22mGY.js} +5 -4
- package/dist/standalone/chunks/{chart-tokens-D1Exf7BW.js → chart-tokens-DQ4hVSmn.js} +2 -2
- package/dist/standalone/chunks/{choice-field-BnuK9mp_.js → choice-field-poOTerh1.js} +6 -6
- package/dist/standalone/chunks/{choice-item-B6-9ZRlf.js → choice-item-Cx-nm1js.js} +17 -8
- package/dist/standalone/chunks/clipboard-RqIeP9Uz.js +29 -0
- package/dist/standalone/chunks/clipboard-UVLSkL4C.js +34 -0
- package/dist/standalone/chunks/{crop-frame-poLCGrBG.js → crop-frame-Z9N0QML4.js} +1 -11
- package/dist/standalone/chunks/{date-field-BQ5k-DDL.js → date-field-B-fCXa2D.js} +48 -47
- package/dist/standalone/chunks/{define-CzVPD4Zi.js → define-DkVeu7e9.js} +1 -1
- 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-D7dqSP9M.js → form-control-CHpfKAKa.js} +2 -2
- package/dist/standalone/chunks/{frame-BW1nKuoM.js → frame-xIMVEUCi.js} +7 -4
- package/dist/standalone/chunks/handle-menu-BgYUbGO2.js +56 -0
- package/dist/standalone/chunks/{heading-text-CV5gBf7k.js → heading-text-CgnCa_q2.js} +1 -1
- package/dist/standalone/chunks/{i18n-CNsBRNPu.js → i18n-DFfGgd3d.js} +56 -34
- package/dist/standalone/chunks/{i18n-CrZgrRu9.js → i18n-DQAcbHkY.js} +1 -1
- package/dist/standalone/chunks/link--YWr8exL.js +69 -0
- package/dist/standalone/chunks/{marks-CdqbbJpM.js → marks-pOUDNUf1.js} +2 -2
- package/dist/standalone/chunks/{options-DMEc8rQt.js → options-BdC8-KKM.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-oDhxsYMr.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-EclrETaQ.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-BgKEjDQx.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-BwL-Gp8w.js → summary-W5s0TFqV.js} +1 -1
- package/dist/standalone/chunks/{text-field-CTp2b-Ai.js → text-field-CqhJSAwZ.js} +4 -4
- package/dist/standalone/chunks/{toggle-control-DXkgmz7R.js → toggle-control-lvZbQtGW.js} +2 -2
- package/dist/standalone/chunks/{tokens-BuahF1lF.js → tokens-C_ul7pL9.js} +4 -3
- package/dist/standalone/chunks/{virtual-B-1oN14Y.js → virtual-C_h6sHnm.js} +1 -1
- package/dist/standalone/confirm.js +27 -14
- package/dist/standalone/i18n-de.js +20 -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 +9 -5
- package/dist/tokens.css +9 -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-B7bz8hmV.js +0 -275
- package/dist/standalone/chunks/clipboard-DBGdJ-1S.js +0 -61
- package/dist/standalone/chunks/handle-menu-DsxWvv4D.js +0 -22
- package/dist/standalone/chunks/link-CWSMsx04.js +0 -60
|
@@ -14,7 +14,8 @@ import "../icons/set/zoom-out.js";
|
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
16
|
* **The value** is a factor: `1` is 100 %. The slider moves in `step`, counted from `min`. The buttons set the next multiple of
|
|
17
|
-
* `increment` (from 1.1 the zoom-in button sets 1.25, not 1.35). The
|
|
17
|
+
* `increment` (from 1.1 the zoom-in button sets 1.25, not 1.35). The step is additive: there is no multiplicative step (a factor
|
|
18
|
+
* of 1.25 for each press). Use a `toLevel` and `fromLevel` pair with `increment` for a logarithmic scale. The component clamps the value to
|
|
18
19
|
* `min` and `max`. At a limit, the button for that direction is off but stays focusable and shows the reason.
|
|
19
20
|
*
|
|
20
21
|
* **Orientation.** `horizontal` (default) puts the controls in a row: zoom out, slider, zoom in, level.
|
|
@@ -59,6 +60,7 @@ import "../icons/set/zoom-out.js";
|
|
|
59
60
|
* @cssprop --bk-zoom-value-size - Font size of the zoom level (default --bk-type-small).
|
|
60
61
|
* @cssprop --bk-zoom-value-min-width - Smallest width of the zoom level, so that the row does not change its width (default 5ch).
|
|
61
62
|
* @cssprop --bk-zoom-input-width - Width of the field of `editable` (default the control height of `size` plus 4ch).
|
|
63
|
+
* A press on a button fires `input` and then `change`, both for the one press, like a key on a native range. Apply the zoom in one of them.
|
|
62
64
|
* @fires {Event} input - While the value changes: on a drag of the slider, on a key, on a button, on a commit of the field.
|
|
63
65
|
* @fires {Event} change - When a change is committed: on release of a drag, on a key, on a button, on Enter or blur in the field.
|
|
64
66
|
*
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "./bk-alert.js";
|
|
1
2
|
import "./bk-button.js";
|
|
2
3
|
import "./bk-icon-tile.js";
|
|
3
4
|
import "./bk-input-text.js";
|
|
@@ -17,6 +18,13 @@ export interface ConfirmOptions {
|
|
|
17
18
|
cancelLabel?: string;
|
|
18
19
|
/** Styles the confirm button as destructive and opens an alert dialog (`role="alertdialog"`): focus starts on Cancel and a click on the backdrop does not dismiss it. */
|
|
19
20
|
danger?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* An async action that the confirm button starts. While it runs, the confirm button shows `loading`, Cancel is disabled,
|
|
23
|
+
* and Esc, the backdrop and the close button do not dismiss the dialog. When the action fulfils, the dialog closes and
|
|
24
|
+
* the promise resolves to true. When it rejects, the dialog stays open and shows the error message in a `bk-alert`
|
|
25
|
+
* (the message "Cannot complete the action." if the error has no message). The user can try again or cancel.
|
|
26
|
+
*/
|
|
27
|
+
action?: () => Promise<unknown>;
|
|
20
28
|
}
|
|
21
29
|
export interface ChooseOptions extends ConfirmOptions {
|
|
22
30
|
/** Further answers, shown between Cancel and the confirm button. */
|
|
@@ -31,6 +39,13 @@ export interface ChooseOptions extends ConfirmOptions {
|
|
|
31
39
|
* `<bk-dialog>` and `<bk-button>`, so it picks up every token override of those.
|
|
32
40
|
*
|
|
33
41
|
* if (await confirmDialog({ heading: "Delete project?", message: "This cannot be undone.", danger: true, confirmLabel: "Delete" })) { ... }
|
|
42
|
+
*
|
|
43
|
+
* With `action`, the dialog runs the async action on confirm and stays open until it fulfils (see `ConfirmOptions.action`):
|
|
44
|
+
*
|
|
45
|
+
* await confirmDialog({ heading: "Delete project?", danger: true, confirmLabel: "Delete", action: () => api.deleteProject(id) });
|
|
46
|
+
*
|
|
47
|
+
* Focus: with `danger`, the focus starts on Cancel (the safe answer); otherwise on the confirm button. The focus does not
|
|
48
|
+
* change the answer: Enter activates the focused button, as in a native dialog.
|
|
34
49
|
*/
|
|
35
50
|
export declare function confirmDialog(o: ConfirmOptions): Promise<boolean>;
|
|
36
51
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { html, nothing, render } from "lit";
|
|
2
2
|
import { styleMap } from "../internal/style-map.js";
|
|
3
3
|
import { localeOf, translate } from "../i18n.js";
|
|
4
|
+
import "./bk-alert.js";
|
|
4
5
|
import "./bk-button.js";
|
|
5
6
|
import "./bk-icon-tile.js";
|
|
6
7
|
import "./bk-input-text.js";
|
|
@@ -22,11 +23,33 @@ function confirmDialog(o) {
|
|
|
22
23
|
const host = document.createElement("div");
|
|
23
24
|
const locale = localeOf(document.body);
|
|
24
25
|
document.body.append(host);
|
|
25
|
-
|
|
26
|
+
let pending = false;
|
|
27
|
+
let error = "";
|
|
28
|
+
const view = () => html`<bk-dialog size="sm" heading=${o.heading} ?alert=${o.danger} .dismissible=${!pending}>
|
|
26
29
|
${icon(o)}${message(o.message)}
|
|
27
|
-
|
|
28
|
-
<bk-button slot="footer" data-close value="
|
|
29
|
-
|
|
30
|
+
${error ? html`<bk-alert tone="danger" variant="soft">${error}</bk-alert>` : nothing}
|
|
31
|
+
<bk-button slot="footer" data-close value="cancel" ?disabled=${pending} ?autofocus=${o.danger}>${o.cancelLabel ?? translate(locale, "cancel")}</bk-button>
|
|
32
|
+
<bk-button slot="footer" ?data-close=${!o.action} value="confirm" ?loading=${pending} @click=${o.action ? run : void 0} ?autofocus=${!o.danger} variant="solid" tone=${o.danger ? "danger" : "accent"}>${o.confirmLabel ?? translate(locale, "confirm")}</bk-button>
|
|
33
|
+
</bk-dialog>`;
|
|
34
|
+
const update = () => render(view(), host);
|
|
35
|
+
const run = async () => {
|
|
36
|
+
if (pending)
|
|
37
|
+
return;
|
|
38
|
+
pending = true;
|
|
39
|
+
error = "";
|
|
40
|
+
update();
|
|
41
|
+
try {
|
|
42
|
+
await o.action();
|
|
43
|
+
pending = false;
|
|
44
|
+
update();
|
|
45
|
+
dialog.close("confirm");
|
|
46
|
+
} catch (e) {
|
|
47
|
+
pending = false;
|
|
48
|
+
error = e instanceof Error && e.message || typeof e === "string" && e || translate(locale, "actionFailed");
|
|
49
|
+
update();
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
update();
|
|
30
53
|
const dialog = host.firstElementChild;
|
|
31
54
|
return new Promise((resolve) => {
|
|
32
55
|
dialog.addEventListener("close", (e) => {
|
package/dist/i18n/de.js
CHANGED
|
@@ -12,7 +12,7 @@ const de = {
|
|
|
12
12
|
playMedia: "Abspielen: {label}",
|
|
13
13
|
cropFrame: "Ausschnitt",
|
|
14
14
|
cropHelp: "Die Pfeiltasten verschieben das Bild. Plus und Minus zoomen. Null setzt den Ausschnitt zur\xFCck. Umschalt macht die Schritte gr\xF6\xDFer. Ein Klick ins Bild legt die Mitte des Ausschnitts dorthin.",
|
|
15
|
-
cropHelpFree: "Die Pfeiltasten verschieben den Ausschnitt. Umschalt und die Pfeiltasten \xE4ndern seine Breite oder H\xF6he. Plus und Minus zoomen das Bild hinter dem Ausschnitt. Null w\xE4hlt das ganze Bild.
|
|
15
|
+
cropHelpFree: "Die Pfeiltasten verschieben den Ausschnitt. Umschalt und die Pfeiltasten \xE4ndern seine Breite oder H\xF6he. Plus und Minus zoomen das Bild hinter dem Ausschnitt. Null w\xE4hlt das ganze Bild.",
|
|
16
16
|
cropStatusFree: "Ausschnitt von {width} mal {height} Pixeln, {x} Pixel von links und {y} Pixel von oben.",
|
|
17
17
|
cropStatus: "Zoom {zoom} Prozent. Die Mitte des Ausschnitts liegt {x} Prozent von links und {y} Prozent von oben.",
|
|
18
18
|
close: "Schlie\xDFen",
|
|
@@ -24,6 +24,9 @@ const de = {
|
|
|
24
24
|
loadingMore: "Weitere werden geladen \u2026",
|
|
25
25
|
remove: "Entfernen",
|
|
26
26
|
removeItem: "{item} entfernen",
|
|
27
|
+
removed: "Entfernt",
|
|
28
|
+
restore: "Wiederherstellen",
|
|
29
|
+
restoreItem: "{item} wiederherstellen",
|
|
27
30
|
viewItem: "{item} ansehen",
|
|
28
31
|
selectItem: "{item} ausw\xE4hlen",
|
|
29
32
|
attachmentUploading: "Wird hochgeladen\u2026",
|
|
@@ -231,6 +234,8 @@ const de = {
|
|
|
231
234
|
menu: "Men\xFC",
|
|
232
235
|
tabClose: "{item} schlie\xDFen",
|
|
233
236
|
tabCloseHint: "Mit Entf schlie\xDFen",
|
|
237
|
+
menuItemRemove: "{item} entfernen",
|
|
238
|
+
menuItemRemoveHint: "Mit Entf entfernen",
|
|
234
239
|
tabDot: "Neue Aktivit\xE4t",
|
|
235
240
|
chipGroupMore: { one: "+{count} weitere", other: "+{count} weitere" },
|
|
236
241
|
chipGroupLess: "Weniger anzeigen",
|
|
@@ -320,6 +325,7 @@ const de = {
|
|
|
320
325
|
searchSuggestions: "Vorschl\xE4ge",
|
|
321
326
|
save: "Speichern",
|
|
322
327
|
valueRequired: "Geben Sie einen Wert ein.",
|
|
328
|
+
actionFailed: "Die Aktion kann nicht abgeschlossen werden.",
|
|
323
329
|
decrease: "Verringern",
|
|
324
330
|
increase: "Erh\xF6hen",
|
|
325
331
|
clear: "Leeren",
|
|
@@ -346,6 +352,8 @@ const de = {
|
|
|
346
352
|
chartReference: "Referenz",
|
|
347
353
|
chartNoData: "Keine Daten",
|
|
348
354
|
chartMark: "{category}, {series}: {value}",
|
|
355
|
+
chartNoValue: "kein Wert",
|
|
356
|
+
chartCategoryDetail: "{category}, {detail}",
|
|
349
357
|
chartTrend: "Verlauf",
|
|
350
358
|
chartSummary: "{label}: Minimum {min}, Maximum {max}, zuletzt {last}",
|
|
351
359
|
chartRange: "Bereich",
|
|
@@ -460,6 +468,7 @@ const de = {
|
|
|
460
468
|
tableColumnMenu: "Optionen f\xFCr {column}",
|
|
461
469
|
tableSortAscending: "Aufsteigend sortieren",
|
|
462
470
|
tableSortDescending: "Absteigend sortieren",
|
|
471
|
+
tableSortBy: "Sortieren nach",
|
|
463
472
|
tablePinStart: "Am Anfang fixieren",
|
|
464
473
|
tablePinEnd: "Am Ende fixieren",
|
|
465
474
|
tableUnpin: "Nicht mehr fixieren",
|
|
@@ -481,6 +490,7 @@ const de = {
|
|
|
481
490
|
tableRecommended: "Empfohlen",
|
|
482
491
|
selectedCount: "{count} ausgew\xE4hlt",
|
|
483
492
|
opensInNewTab: "(\xF6ffnet in neuem Tab)",
|
|
493
|
+
opensInNewTabNamed: "{label} (\xF6ffnet in neuem Tab)",
|
|
484
494
|
unread: "Ungelesen",
|
|
485
495
|
editModeOn: "Bearbeitungsmodus an",
|
|
486
496
|
editModeOff: "Bearbeitungsmodus aus",
|
|
@@ -521,6 +531,10 @@ const de = {
|
|
|
521
531
|
previousPage: "Zur\xFCck",
|
|
522
532
|
nextPage: "Weiter",
|
|
523
533
|
pagerLabel: "Weitere Seiten",
|
|
534
|
+
periodNavLabel: "Zeitraum-Navigation",
|
|
535
|
+
periodPrevious: "Vorheriger Zeitraum",
|
|
536
|
+
periodNext: "N\xE4chster Zeitraum",
|
|
537
|
+
periodCurrent: "Aktueller Zeitraum",
|
|
524
538
|
pageNumber: "Seite {page}",
|
|
525
539
|
pageOf: "Seite {page} von {pages}",
|
|
526
540
|
paginationSummary: "{from}\u2013{to} von {total}",
|
|
@@ -611,6 +625,10 @@ const de = {
|
|
|
611
625
|
reasoningDoneNoTime: "Gedanken",
|
|
612
626
|
sourceN: "Quelle {index}: {name}",
|
|
613
627
|
sourceIndex: "Quelle {index}",
|
|
628
|
+
footnoteN: "Fu\xDFnote {number}",
|
|
629
|
+
footnoteBack: "Zur\xFCck zu Verweis {label}",
|
|
630
|
+
footnoteAsOf: "Stand: {date}",
|
|
631
|
+
footnotes: "Fu\xDFnoten",
|
|
614
632
|
feedbackLabel: "Antwort bewerten",
|
|
615
633
|
feedbackGood: "Gute Antwort",
|
|
616
634
|
feedbackBad: "Schlechte Antwort",
|
package/dist/i18n/en.js
ADDED
package/dist/i18n.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ import type { ReactiveController, ReactiveControllerHost } from "lit";
|
|
|
6
6
|
* - The locale of a component is the `lang` of its closest ancestor (crossing shadow roots),
|
|
7
7
|
* else `<html lang>`, else "en". Lookup: exact tag ("de-AT"), then language ("de"), then English.
|
|
8
8
|
* - English is built in. German ships as a module of its own: an app in German imports it once,
|
|
9
|
-
* and an app in English does not load it.
|
|
9
|
+
* and an app in English does not load it. In a bundle with the condition `bk-static` (USAGE.md), English is a
|
|
10
|
+
* module of its own too (`@bk2k/ui/i18n/en.js`), and a text that no loaded catalog contains shows its key.
|
|
10
11
|
*
|
|
11
12
|
* import "@bk2k/ui/i18n/de.js";
|
|
12
13
|
*
|
|
@@ -39,7 +40,8 @@ export type PluralMessage = {
|
|
|
39
40
|
};
|
|
40
41
|
type Params = Record<string, string | number>;
|
|
41
42
|
export type Message = string | PluralMessage | ((params: Params) => string | PluralMessage);
|
|
42
|
-
|
|
43
|
+
/** The English texts. They are built in, except in a bundle with the condition `bk-static` (USAGE.md). */
|
|
44
|
+
export declare const en: {
|
|
43
45
|
showMore: string;
|
|
44
46
|
showLess: string;
|
|
45
47
|
timerLeft: string;
|
|
@@ -63,6 +65,9 @@ declare const en: {
|
|
|
63
65
|
loadingMore: string;
|
|
64
66
|
remove: string;
|
|
65
67
|
removeItem: string;
|
|
68
|
+
removed: string;
|
|
69
|
+
restore: string;
|
|
70
|
+
restoreItem: string;
|
|
66
71
|
viewItem: string;
|
|
67
72
|
selectItem: string;
|
|
68
73
|
attachmentUploading: string;
|
|
@@ -321,6 +326,8 @@ declare const en: {
|
|
|
321
326
|
menu: string;
|
|
322
327
|
tabClose: string;
|
|
323
328
|
tabCloseHint: string;
|
|
329
|
+
menuItemRemove: string;
|
|
330
|
+
menuItemRemoveHint: string;
|
|
324
331
|
tabDot: string;
|
|
325
332
|
chipGroupMore: {
|
|
326
333
|
one: string;
|
|
@@ -390,6 +397,7 @@ declare const en: {
|
|
|
390
397
|
searchSuggestions: string;
|
|
391
398
|
save: string;
|
|
392
399
|
valueRequired: string;
|
|
400
|
+
actionFailed: string;
|
|
393
401
|
decrease: string;
|
|
394
402
|
increase: string;
|
|
395
403
|
clear: string;
|
|
@@ -422,6 +430,8 @@ declare const en: {
|
|
|
422
430
|
chartReference: string;
|
|
423
431
|
chartNoData: string;
|
|
424
432
|
chartMark: string;
|
|
433
|
+
chartNoValue: string;
|
|
434
|
+
chartCategoryDetail: string;
|
|
425
435
|
chartTrend: string;
|
|
426
436
|
chartSummary: string;
|
|
427
437
|
chartRange: string;
|
|
@@ -576,6 +586,7 @@ declare const en: {
|
|
|
576
586
|
tableColumnMenu: string;
|
|
577
587
|
tableSortAscending: string;
|
|
578
588
|
tableSortDescending: string;
|
|
589
|
+
tableSortBy: string;
|
|
579
590
|
tablePinStart: string;
|
|
580
591
|
tablePinEnd: string;
|
|
581
592
|
tableUnpin: string;
|
|
@@ -600,6 +611,7 @@ declare const en: {
|
|
|
600
611
|
tableRecommended: string;
|
|
601
612
|
selectedCount: string;
|
|
602
613
|
opensInNewTab: string;
|
|
614
|
+
opensInNewTabNamed: string;
|
|
603
615
|
unread: string;
|
|
604
616
|
editModeOn: string;
|
|
605
617
|
editModeOff: string;
|
|
@@ -646,6 +658,10 @@ declare const en: {
|
|
|
646
658
|
previousPage: string;
|
|
647
659
|
nextPage: string;
|
|
648
660
|
pagerLabel: string;
|
|
661
|
+
periodNavLabel: string;
|
|
662
|
+
periodPrevious: string;
|
|
663
|
+
periodNext: string;
|
|
664
|
+
periodCurrent: string;
|
|
649
665
|
pageNumber: string;
|
|
650
666
|
pageOf: string;
|
|
651
667
|
paginationSummary: string;
|
|
@@ -760,6 +776,10 @@ declare const en: {
|
|
|
760
776
|
reasoningDoneNoTime: string;
|
|
761
777
|
sourceN: string;
|
|
762
778
|
sourceIndex: string;
|
|
779
|
+
footnoteN: string;
|
|
780
|
+
footnoteBack: string;
|
|
781
|
+
footnoteAsOf: string;
|
|
782
|
+
footnotes: string;
|
|
763
783
|
feedbackLabel: string;
|
|
764
784
|
feedbackGood: string;
|
|
765
785
|
feedbackBad: string;
|
|
@@ -827,6 +847,7 @@ export declare function registerTranslations(locale: string, messages: Partial<M
|
|
|
827
847
|
export declare function localeOf(el: Element): string;
|
|
828
848
|
/** The plural category of `n` in `locale` ("one", "few", ...), with cached rules. */
|
|
829
849
|
export declare function pluralCategory(locale: string, n: number): Intl.LDMLPluralRule;
|
|
850
|
+
/** Translates `key` for `locale`, filling {placeholders} from `params`. Plural messages pick their form in the language of their catalog. */
|
|
830
851
|
export declare function translate(locale: string, key: MessageKey, params?: Params): string;
|
|
831
852
|
/**
|
|
832
853
|
* Reactive controller for components: `this.i18n.t("close")`. Re-renders the host when
|
package/dist/i18n.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isServer } from "lit";
|
|
2
|
+
import { builtInEnglish } from "#bk/internal/english.js";
|
|
2
3
|
const en = {
|
|
3
4
|
// generic
|
|
4
5
|
// text (expandable), countdown, offline, QR code, media facade, image crop
|
|
@@ -13,7 +14,7 @@ const en = {
|
|
|
13
14
|
playMedia: "Play: {label}",
|
|
14
15
|
cropFrame: "Crop area",
|
|
15
16
|
cropHelp: "The arrow keys move the picture. Plus and minus zoom. Zero resets the crop. Shift makes the steps larger. A click in the picture moves the centre of the crop there.",
|
|
16
|
-
cropHelpFree: "The arrow keys move the crop. Shift and the arrow keys change its width or height. Plus and minus zoom the picture behind the crop. Zero selects the whole picture.
|
|
17
|
+
cropHelpFree: "The arrow keys move the crop. Shift and the arrow keys change its width or height. Plus and minus zoom the picture behind the crop. Zero selects the whole picture.",
|
|
17
18
|
cropStatusFree: "Crop of {width} by {height} pixels, {x} pixels from the left and {y} pixels from the top.",
|
|
18
19
|
cropStatus: "Zoom {zoom} percent. The centre of the crop is {x} percent from the left and {y} percent from the top.",
|
|
19
20
|
close: "Close",
|
|
@@ -27,6 +28,9 @@ const en = {
|
|
|
27
28
|
// chip
|
|
28
29
|
remove: "Remove",
|
|
29
30
|
removeItem: "Remove {item}",
|
|
31
|
+
removed: "Removed",
|
|
32
|
+
restore: "Restore",
|
|
33
|
+
restoreItem: "Restore {item}",
|
|
30
34
|
viewItem: "View {item}",
|
|
31
35
|
selectItem: "Select {item}",
|
|
32
36
|
attachmentUploading: "Uploading\u2026",
|
|
@@ -276,6 +280,8 @@ const en = {
|
|
|
276
280
|
menu: "Menu",
|
|
277
281
|
tabClose: "Close {item}",
|
|
278
282
|
tabCloseHint: "Press Delete to close",
|
|
283
|
+
menuItemRemove: "Remove {item}",
|
|
284
|
+
menuItemRemoveHint: "Press Delete to remove",
|
|
279
285
|
tabDot: "New activity",
|
|
280
286
|
chipGroupMore: { one: "+{count} more", other: "+{count} more" },
|
|
281
287
|
chipGroupLess: "Show less",
|
|
@@ -345,6 +351,7 @@ const en = {
|
|
|
345
351
|
searchSuggestions: "Suggestions",
|
|
346
352
|
save: "Save",
|
|
347
353
|
valueRequired: "Enter a value.",
|
|
354
|
+
actionFailed: "Cannot complete the action.",
|
|
348
355
|
// number field
|
|
349
356
|
decrease: "Decrease",
|
|
350
357
|
increase: "Increase",
|
|
@@ -376,6 +383,8 @@ const en = {
|
|
|
376
383
|
chartReference: "Reference",
|
|
377
384
|
chartNoData: "No data",
|
|
378
385
|
chartMark: "{category}, {series}: {value}",
|
|
386
|
+
chartNoValue: "no value",
|
|
387
|
+
chartCategoryDetail: "{category}, {detail}",
|
|
379
388
|
chartTrend: "Trend",
|
|
380
389
|
chartSummary: "{label}: minimum {min}, maximum {max}, last {last}",
|
|
381
390
|
chartRange: "Range",
|
|
@@ -492,6 +501,7 @@ const en = {
|
|
|
492
501
|
tableColumnMenu: "Options for {column}",
|
|
493
502
|
tableSortAscending: "Sort ascending",
|
|
494
503
|
tableSortDescending: "Sort descending",
|
|
504
|
+
tableSortBy: "Sort by",
|
|
495
505
|
tablePinStart: "Pin to start",
|
|
496
506
|
tablePinEnd: "Pin to end",
|
|
497
507
|
tableUnpin: "Unpin",
|
|
@@ -513,6 +523,7 @@ const en = {
|
|
|
513
523
|
tableRecommended: "Recommended",
|
|
514
524
|
selectedCount: "{count} selected",
|
|
515
525
|
opensInNewTab: "(opens in a new tab)",
|
|
526
|
+
opensInNewTabNamed: "{label} (opens in a new tab)",
|
|
516
527
|
unread: "Unread",
|
|
517
528
|
editModeOn: "Edit mode on",
|
|
518
529
|
editModeOff: "Edit mode off",
|
|
@@ -555,6 +566,10 @@ const en = {
|
|
|
555
566
|
previousPage: "Previous",
|
|
556
567
|
nextPage: "Next",
|
|
557
568
|
pagerLabel: "More pages",
|
|
569
|
+
periodNavLabel: "Period navigation",
|
|
570
|
+
periodPrevious: "Previous period",
|
|
571
|
+
periodNext: "Next period",
|
|
572
|
+
periodCurrent: "Current period",
|
|
558
573
|
pageNumber: "Page {page}",
|
|
559
574
|
pageOf: "Page {page} of {pages}",
|
|
560
575
|
paginationSummary: "{from}\u2013{to} of {total}",
|
|
@@ -650,6 +665,10 @@ const en = {
|
|
|
650
665
|
reasoningDoneNoTime: "Thoughts",
|
|
651
666
|
sourceN: "Source {index}: {name}",
|
|
652
667
|
sourceIndex: "Source {index}",
|
|
668
|
+
footnoteN: "Footnote {number}",
|
|
669
|
+
footnoteBack: "Go back to reference {label}",
|
|
670
|
+
footnoteAsOf: "As of {date}",
|
|
671
|
+
footnotes: "Footnotes",
|
|
653
672
|
feedbackLabel: "Rate this answer",
|
|
654
673
|
feedbackGood: "Good answer",
|
|
655
674
|
feedbackBad: "Bad answer",
|
|
@@ -704,7 +723,10 @@ const en = {
|
|
|
704
723
|
tiltDown: "Tilt down",
|
|
705
724
|
resetView: "Reset view"
|
|
706
725
|
};
|
|
707
|
-
const catalogs = /* @__PURE__ */ new Map(
|
|
726
|
+
const catalogs = /* @__PURE__ */ new Map();
|
|
727
|
+
const english = builtInEnglish();
|
|
728
|
+
if (english)
|
|
729
|
+
catalogs.set("en", english);
|
|
708
730
|
const listeners = /* @__PURE__ */ new Set();
|
|
709
731
|
const notify = () => listeners.forEach((fn) => fn());
|
|
710
732
|
function registerTranslations(locale, messages) {
|
|
@@ -745,7 +767,7 @@ function pluralText(msg, locale, params) {
|
|
|
745
767
|
return msg.other;
|
|
746
768
|
return msg[`=${n}`] ?? msg[pluralCategory(locale, n)] ?? msg.other;
|
|
747
769
|
}
|
|
748
|
-
const SHIPPED = /* @__PURE__ */ new Set(["de"]);
|
|
770
|
+
const SHIPPED = /* @__PURE__ */ new Set(["de", "en"]);
|
|
749
771
|
const warned = /* @__PURE__ */ new Set();
|
|
750
772
|
function translate(locale, key, params = {}) {
|
|
751
773
|
const tag = locale.toLowerCase();
|
|
@@ -754,7 +776,15 @@ function translate(locale, key, params = {}) {
|
|
|
754
776
|
warned.add(lang);
|
|
755
777
|
console.warn(`@bk2k/ui: the page is in "${lang}", but its texts are not loaded. Add: import "@bk2k/ui/i18n/${lang}.js";`);
|
|
756
778
|
}
|
|
757
|
-
const
|
|
779
|
+
const found = [tag, lang, "en"].map((from2) => [catalogs.get(from2)?.[key], from2]).find(([m]) => m !== void 0);
|
|
780
|
+
if (!found) {
|
|
781
|
+
if (!warned.has(`text:${key}`)) {
|
|
782
|
+
warned.add(`text:${key}`);
|
|
783
|
+
console.warn(`@bk2k/ui: no loaded catalog contains the text "${key}" for "${locale}". Import a catalog, for example: import "@bk2k/ui/i18n/en.js";`);
|
|
784
|
+
}
|
|
785
|
+
return key;
|
|
786
|
+
}
|
|
787
|
+
const [msg, from] = found;
|
|
758
788
|
const resolved = typeof msg === "function" ? msg(params) : msg;
|
|
759
789
|
const text = typeof resolved === "string" ? resolved : pluralText(resolved, from, params);
|
|
760
790
|
return text.replace(/\{(\w+)\}/g, (_, p) => String(params[p] ?? `{${p}}`));
|
|
@@ -785,6 +815,7 @@ class LocalizeController {
|
|
|
785
815
|
}
|
|
786
816
|
export {
|
|
787
817
|
LocalizeController,
|
|
818
|
+
en,
|
|
788
819
|
localeOf,
|
|
789
820
|
pluralCategory,
|
|
790
821
|
registerTranslations,
|
package/dist/icons/core.d.ts
CHANGED
|
@@ -158,6 +158,7 @@ export declare const coreIcons: {
|
|
|
158
158
|
readonly orbit: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\"><path d=\"M233-100q-55.1 0-94.05-38.93-38.95-38.93-38.95-94T138.93-327q38.93-39 94-39T327-327.05q39 38.95 39 94.05 0 22-7 42.5T339-153v-17q33 15 69 22.5t72 7.5q133.59 0 230.79-89Q808-318 819-449q2-13 10-22t20.82-9q12.83 0 21.5 9 8.68 9 7.68 22-12 155-126 262T479.9-80q-45.9 0-90.4-10.5Q345-101 303-121q-16 10.5-33.5 15.75T233-100Zm51.5-81.5Q306-203 306-233t-21.5-51.5Q263-306 233-306t-51.5 21.5Q160-263 160-233t21.5 51.5Q203-160 233-160t51.5-21.5ZM480.07-347Q425-347 386-385.93q-39-38.93-39-94T385.93-574q38.93-39 94-39T574-574.07q39 38.93 39 94T574.07-386q-38.93 39-94 39ZM480-820q-133.59 0-230.79 89Q152-642 141-511q-2 13-10 22t-20.82 9q-12.83 0-21.5-9Q80-498 81-511q12-155 126-262t273.1-107q45.9 0 90.4 10.5Q615-859 657-839q16-10 33.5-15t36.5-5q54.69 0 93.34 38.72Q859-781.56 859-726.78T820.28-633q-38.72 39-93.5 39T633-632.95Q594-671.9 594-727q0-22 7-42.5t20-37.5v17q-33-15-69-22.5t-72-7.5Zm247 166q30 0 51-21.5t21-51.5q0-30-21-51t-51-21q-30 0-51.5 21T654-727q0 30 21.29 51.5T727-654ZM233-233Zm494-494Z\"/></svg>";
|
|
159
159
|
readonly printer: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\"><path d=\"M302-120q-24.75 0-42.37-17.63Q242-155.25 242-180v-116H140q-24.75 0-42.37-17.63Q80-331.25 80-356v-186q0-45.05 30.5-75.53Q141-648 186-648h588q45.05 0 75.53 30.47Q880-587.05 880-542v186q0 24.75-17.62 42.37Q844.75-296 820-296H718v116q0 24.75-17.62 42.37Q682.75-120 658-120H302ZM140-356h102v-16q0-24.75 17.63-42.38Q277.25-432 302-432h356q24.75 0 42.38 17.62Q718-396.75 718-372v16h102v-186.21Q820-562 806.78-575q-13.23-13-32.78-13H186q-19.55 0-32.77 13.22Q140-561.55 140-542v186Zm518-292v-132H302v132h-60v-132q0-24.75 17.63-42.38Q277.25-840 302-840h356q24.75 0 42.38 17.62Q718-804.75 718-780v132h-60Zm81 155q12 0 21-9t9-21q0-12-9-21t-21-9q-12 0-21 9t-9 21q0 12 9 21t21 9Zm-81 313v-192H302v192h356ZM140-588h680-680Z\"/></svg>";
|
|
160
160
|
readonly save: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\"><path d=\"M180-120q-24 0-42-18t-18-42v-600q0-24 18-42t42-18h478q12.44 0 23.72 5T701-822l121 121q8 8 13 19.28 5 11.28 5 23.72v478q0 24-18 42t-42 18H180Zm600-536L656-780H180v600h600v-476ZM553.5-275.26q30.5-30.27 30.5-73.5 0-43.24-30.26-73.74-30.27-30.5-73.5-30.5-43.24 0-73.74 30.26-30.5 30.27-30.5 73.5 0 43.24 30.26 73.74 30.27 30.5 73.5 30.5 43.24 0 73.74-30.26ZM263-584h298q12.75 0 21.38-8.63Q591-601.25 591-614v-83q0-12.75-8.62-21.38Q573.75-727 561-727H263q-12.75 0-21.37 8.62Q233-709.75 233-697v83q0 12.75 8.63 21.37Q250.25-584 263-584Zm-83-72v476-600 124Z\"/></svg>";
|
|
161
|
+
readonly "save-as": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\"><path d=\"M180-120q-24.75 0-42.37-17.63Q120-155.25 120-180v-600q0-24.75 17.63-42.38Q155.25-840 180-840h478q12.44 0 23.72 5T701-822l121 121q8 8 13 19.28 5 11.28 5 23.72v168q0 12.75-8.68 21.37-8.67 8.63-21.5 8.63-12.82 0-21.32-8.63-8.5-8.62-8.5-21.37v-166L656-780H180v600h250q12.75 0 21.38 8.68 8.62 8.67 8.62 21.5 0 12.82-8.62 21.32-8.63 8.5-21.38 8.5H180Zm0-660v600-600ZM520-70v-81q0-5.57 2-10.78 2-5.22 7-10.22l211.61-210.77q9.11-9.12 20.25-13.18Q772-400 783-400q12 0 23 4.5t20 13.5l37 37q9 9 13 20t4 22q0 11-4.5 22.5t-13.58 20.62L652-49q-5 5-10.22 7-5.21 2-10.78 2h-81q-12.75 0-21.37-8.63Q520-57.25 520-70Zm300-233-37-37 37 37ZM580-100h38l121-122-18-19-19-18-122 121v38Zm141-141-19-18 37 37-18-19ZM263-584h298q12.75 0 21.38-8.63Q591-601.25 591-614v-83q0-12.75-8.62-21.38Q573.75-727 561-727H263q-12.75 0-21.37 8.62Q233-709.75 233-697v83q0 12.75 8.63 21.37Q250.25-584 263-584Zm217 339q14 0 27-3t24-10l39-40q7-11 10.5-24t3.5-27q0-43.33-30.26-73.67Q523.47-453 480.24-453q-43.24 0-73.74 30.26-30.5 30.27-30.5 73.5 0 43.24 30.33 73.74Q436.67-245 480-245Z\"/></svg>";
|
|
161
162
|
readonly sparkle: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\"><path d=\"m654-454-91 147q-8 13-22.5 10T522-314l-33-133-306 305q-9 9-21 9t-21-9q-9-9-9-21t9-21l305-305-133-33q-14-4-17-18.5t10-22.5l147-92-12-172q-1-15 12.5-22t24.5 3l132 111 160-64q14-5 24 5t5 24l-65 160 111 132q10 11 3.5 24.5T827-441l-173-13ZM131-721q-5-5-5-11t5-11l46-46q5-5 11-5t11 5l45 45q5 5 5 11t-5 11l-46 46q-5 5-11 5t-11-5l-45-45Zm428 307 63-102 120 9-78-92 45-111-111 45-92-78 9 120-102 64 117 29 29 116Zm163 283-46-46q-5-5-4.5-11t5.5-11l45-45q5-5 11-5t11 5l46 46q5 5 4.5 11t-5.5 11l-45 45q-5 5-11 5t-11-5ZM578-579Z\"/></svg>";
|
|
162
163
|
readonly grid: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\"><path d=\"M180-510q-24.75 0-42.37-17.63Q120-545.25 120-570v-210q0-24.75 17.63-42.38Q155.25-840 180-840h210q24.75 0 42.38 17.62Q450-804.75 450-780v210q0 24.75-17.62 42.37Q414.75-510 390-510H180Zm0 390q-24.75 0-42.37-17.63Q120-155.25 120-180v-210q0-24.75 17.63-42.38Q155.25-450 180-450h210q24.75 0 42.38 17.62Q450-414.75 450-390v210q0 24.75-17.62 42.37Q414.75-120 390-120H180Zm390-390q-24.75 0-42.37-17.63Q510-545.25 510-570v-210q0-24.75 17.63-42.38Q545.25-840 570-840h210q24.75 0 42.38 17.62Q840-804.75 840-780v210q0 24.75-17.62 42.37Q804.75-510 780-510H570Zm0 390q-24.75 0-42.37-17.63Q510-155.25 510-180v-210q0-24.75 17.63-42.38Q545.25-450 570-450h210q24.75 0 42.38 17.62Q840-414.75 840-390v210q0 24.75-17.62 42.37Q804.75-120 780-120H570ZM180-570h210v-210H180v210Zm390 0h210v-210H570v210Zm0 390h210v-210H570v210Zm-390 0h210v-210H180v210Zm390-390Zm0 180Zm-180 0Zm0-180Z\"/></svg>";
|
|
163
164
|
readonly "thumb-up": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\"><path d=\"M855-632q24 0 42 18t18 42v81.84q0 7.16 1.5 14.66T915-461L789-171q-8.88 21.25-29.59 36.12Q738.69-120 716-120H272v-512l225-238q13.6-14 32.19-16.5Q547.77-889 565-879q17 10 25.5 27.5t4.2 36.5L556-632h299Zm-523 25v427h397l126-299v-93H482l53-249-203 214ZM139-120q-24.75 0-42.37-17.63Q79-155.25 79-180v-392q0-24.75 17.63-42.38Q114.25-632 139-632h133v60H139v392h133v60H139Zm193-60v-427 427Z\"/></svg>";
|
package/dist/icons/core.js
CHANGED
|
@@ -157,6 +157,7 @@ import { icon as i_layers } from "./set/layers.js";
|
|
|
157
157
|
import { icon as i_orbit } from "./set/orbit.js";
|
|
158
158
|
import { icon as i_printer } from "./set/printer.js";
|
|
159
159
|
import { icon as i_save } from "./set/save.js";
|
|
160
|
+
import { icon as i_save_as } from "./set/save-as.js";
|
|
160
161
|
import { icon as i_sparkle } from "./set/sparkle.js";
|
|
161
162
|
import { icon as i_grid } from "./set/grid.js";
|
|
162
163
|
import { icon as i_thumb_up } from "./set/thumb-up.js";
|
|
@@ -365,6 +366,7 @@ const coreIcons = {
|
|
|
365
366
|
"orbit": i_orbit,
|
|
366
367
|
"printer": i_printer,
|
|
367
368
|
"save": i_save,
|
|
369
|
+
"save-as": i_save_as,
|
|
368
370
|
"sparkle": i_sparkle,
|
|
369
371
|
"grid": i_grid,
|
|
370
372
|
"thumb-up": i_thumb_up,
|
package/dist/icons/load.js
CHANGED
|
@@ -158,6 +158,7 @@ const iconLoaders = {
|
|
|
158
158
|
"orbit": () => import("./set/orbit.js"),
|
|
159
159
|
"printer": () => import("./set/printer.js"),
|
|
160
160
|
"save": () => import("./set/save.js"),
|
|
161
|
+
"save-as": () => import("./set/save-as.js"),
|
|
161
162
|
"sparkle": () => import("./set/sparkle.js"),
|
|
162
163
|
"grid": () => import("./set/grid.js"),
|
|
163
164
|
"thumb-up": () => import("./set/thumb-up.js"),
|
package/dist/icons/registry.js
CHANGED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** The icon `save-as`. Importing this module registers it for `<bk-icon name="save-as">`. */
|
|
2
|
+
export declare const icon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\"><path d=\"M180-120q-24.75 0-42.37-17.63Q120-155.25 120-180v-600q0-24.75 17.63-42.38Q155.25-840 180-840h478q12.44 0 23.72 5T701-822l121 121q8 8 13 19.28 5 11.28 5 23.72v168q0 12.75-8.68 21.37-8.67 8.63-21.5 8.63-12.82 0-21.32-8.63-8.5-8.62-8.5-21.37v-166L656-780H180v600h250q12.75 0 21.38 8.68 8.62 8.67 8.62 21.5 0 12.82-8.62 21.32-8.63 8.5-21.38 8.5H180Zm0-660v600-600ZM520-70v-81q0-5.57 2-10.78 2-5.22 7-10.22l211.61-210.77q9.11-9.12 20.25-13.18Q772-400 783-400q12 0 23 4.5t20 13.5l37 37q9 9 13 20t4 22q0 11-4.5 22.5t-13.58 20.62L652-49q-5 5-10.22 7-5.21 2-10.78 2h-81q-12.75 0-21.37-8.63Q520-57.25 520-70Zm300-233-37-37 37 37ZM580-100h38l121-122-18-19-19-18-122 121v38Zm141-141-19-18 37 37-18-19ZM263-584h298q12.75 0 21.38-8.63Q591-601.25 591-614v-83q0-12.75-8.62-21.38Q573.75-727 561-727H263q-12.75 0-21.37 8.62Q233-709.75 233-697v83q0 12.75 8.63 21.37Q250.25-584 263-584Zm217 339q14 0 27-3t24-10l39-40q7-11 10.5-24t3.5-27q0-43.33-30.26-73.67Q523.47-453 480.24-453q-43.24 0-73.74 30.26-30.5 30.27-30.5 73.5 0 43.24 30.33 73.74Q436.67-245 480-245Z\"/></svg>";
|
|
3
|
+
//# sourceMappingURL=save-as.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { registerIcons } from "../registry.js";
|
|
2
|
+
const icon = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M180-120q-24.75 0-42.37-17.63Q120-155.25 120-180v-600q0-24.75 17.63-42.38Q155.25-840 180-840h478q12.44 0 23.72 5T701-822l121 121q8 8 13 19.28 5 11.28 5 23.72v168q0 12.75-8.68 21.37-8.67 8.63-21.5 8.63-12.82 0-21.32-8.63-8.5-8.62-8.5-21.37v-166L656-780H180v600h250q12.75 0 21.38 8.68 8.62 8.67 8.62 21.5 0 12.82-8.62 21.32-8.63 8.5-21.38 8.5H180Zm0-660v600-600ZM520-70v-81q0-5.57 2-10.78 2-5.22 7-10.22l211.61-210.77q9.11-9.12 20.25-13.18Q772-400 783-400q12 0 23 4.5t20 13.5l37 37q9 9 13 20t4 22q0 11-4.5 22.5t-13.58 20.62L652-49q-5 5-10.22 7-5.21 2-10.78 2h-81q-12.75 0-21.37-8.63Q520-57.25 520-70Zm300-233-37-37 37 37ZM580-100h38l121-122-18-19-19-18-122 121v38Zm141-141-19-18 37 37-18-19ZM263-584h298q12.75 0 21.38-8.63Q591-601.25 591-614v-83q0-12.75-8.62-21.38Q573.75-727 561-727H263q-12.75 0-21.37 8.62Q233-709.75 233-697v83q0 12.75 8.63 21.37Q250.25-584 263-584Zm217 339q14 0 27-3t24-10l39-40q7-11 10.5-24t3.5-27q0-43.33-30.26-73.67Q523.47-453 480.24-453q-43.24 0-73.74 30.26-30.5 30.27-30.5 73.5 0 43.24 30.33 73.74Q436.67-245 480-245Z"/></svg>';
|
|
3
|
+
registerIcons({ "save-as": icon });
|
|
4
|
+
export {
|
|
5
|
+
icon
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=save-as.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -105,6 +105,9 @@ export * from "./components/bk-message-approval.js";
|
|
|
105
105
|
export * from "./components/bk-message-reasoning.js";
|
|
106
106
|
export * from "./components/bk-message-source.js";
|
|
107
107
|
export * from "./components/bk-message-citation.js";
|
|
108
|
+
export * from "./components/bk-footnote.js";
|
|
109
|
+
export * from "./components/bk-footnotes.js";
|
|
110
|
+
export * from "./components/bk-footnotes-item.js";
|
|
108
111
|
export * from "./components/bk-message-feedback.js";
|
|
109
112
|
export * from "./components/bk-message-branches.js";
|
|
110
113
|
export * from "./components/bk-composer.js";
|
|
@@ -124,6 +127,7 @@ export * from "./components/bk-input-number.js";
|
|
|
124
127
|
export * from "./components/bk-page-header.js";
|
|
125
128
|
export * from "./components/bk-pagination.js";
|
|
126
129
|
export * from "./components/bk-page-pager.js";
|
|
130
|
+
export * from "./components/bk-period-nav.js";
|
|
127
131
|
export * from "./components/bk-pane.js";
|
|
128
132
|
export * from "./components/bk-panel.js";
|
|
129
133
|
export * from "./components/bk-popover.js";
|
package/dist/index.js
CHANGED
|
@@ -101,6 +101,9 @@ export * from "./components/bk-message-approval.js";
|
|
|
101
101
|
export * from "./components/bk-message-reasoning.js";
|
|
102
102
|
export * from "./components/bk-message-source.js";
|
|
103
103
|
export * from "./components/bk-message-citation.js";
|
|
104
|
+
export * from "./components/bk-footnote.js";
|
|
105
|
+
export * from "./components/bk-footnotes.js";
|
|
106
|
+
export * from "./components/bk-footnotes-item.js";
|
|
104
107
|
export * from "./components/bk-message-feedback.js";
|
|
105
108
|
export * from "./components/bk-message-branches.js";
|
|
106
109
|
export * from "./components/bk-composer.js";
|
|
@@ -120,6 +123,7 @@ export * from "./components/bk-input-number.js";
|
|
|
120
123
|
export * from "./components/bk-page-header.js";
|
|
121
124
|
export * from "./components/bk-pagination.js";
|
|
122
125
|
export * from "./components/bk-page-pager.js";
|
|
126
|
+
export * from "./components/bk-period-nav.js";
|
|
123
127
|
export * from "./components/bk-pane.js";
|
|
124
128
|
export * from "./components/bk-panel.js";
|
|
125
129
|
export * from "./components/bk-popover.js";
|
|
@@ -11,7 +11,14 @@
|
|
|
11
11
|
*
|
|
12
12
|
* The region announces a text that repeats again: it clears the region first.
|
|
13
13
|
*/
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* A `<bk-dialog>` reports its native dialog when it opens as a modal (`open` true) and when it closes. So
|
|
16
|
+
* `topModal()` also finds a dialog in the shadow root of another element (the drawer of `<bk-shell-app>`).
|
|
17
|
+
*/
|
|
18
|
+
export declare function trackModal(dialog: HTMLDialogElement, open: boolean): void;
|
|
19
|
+
/** Calls `watcher` after a `<bk-dialog>` opens or closes as a modal. Returns the function that stops it. */
|
|
20
|
+
export declare function watchModals(watcher: () => void): () => void;
|
|
21
|
+
/** The topmost open modal dialog: a `<bk-dialog>` in any shadow root, else a native modal `<dialog>` of the document. */
|
|
15
22
|
export declare function topModal(): HTMLDialogElement | undefined;
|
|
16
23
|
export interface AnnounceOptions {
|
|
17
24
|
/** Use the assertive region: the text interrupts the screen reader (errors, danger). */
|
|
@@ -1,14 +1,28 @@
|
|
|
1
|
+
const modals = [];
|
|
2
|
+
const modalWatchers = /* @__PURE__ */ new Set();
|
|
3
|
+
function trackModal(dialog, open) {
|
|
4
|
+
const at = modals.indexOf(dialog);
|
|
5
|
+
if (at >= 0)
|
|
6
|
+
modals.splice(at, 1);
|
|
7
|
+
if (open)
|
|
8
|
+
modals.push(dialog);
|
|
9
|
+
for (const watcher of [...modalWatchers])
|
|
10
|
+
watcher();
|
|
11
|
+
}
|
|
12
|
+
function watchModals(watcher) {
|
|
13
|
+
modalWatchers.add(watcher);
|
|
14
|
+
return () => modalWatchers.delete(watcher);
|
|
15
|
+
}
|
|
1
16
|
function topModal() {
|
|
17
|
+
for (let i = modals.length - 1; i >= 0; i--) {
|
|
18
|
+
const d = modals[i];
|
|
19
|
+
if (d.isConnected && d.matches(":modal"))
|
|
20
|
+
return d;
|
|
21
|
+
}
|
|
2
22
|
let top;
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
top = d;
|
|
7
|
-
for (const h of root.querySelectorAll("bk-dialog"))
|
|
8
|
-
if (h.shadowRoot)
|
|
9
|
-
scan(h.shadowRoot);
|
|
10
|
-
};
|
|
11
|
-
scan(document);
|
|
23
|
+
for (const d of document.querySelectorAll("dialog"))
|
|
24
|
+
if (d.matches(":modal"))
|
|
25
|
+
top = d;
|
|
12
26
|
return top;
|
|
13
27
|
}
|
|
14
28
|
const regions = { polite: {}, assertive: {} };
|
|
@@ -36,6 +50,8 @@ function announce(text, options = {}) {
|
|
|
36
50
|
}
|
|
37
51
|
export {
|
|
38
52
|
announce,
|
|
39
|
-
topModal
|
|
53
|
+
topModal,
|
|
54
|
+
trackModal,
|
|
55
|
+
watchModals
|
|
40
56
|
};
|
|
41
57
|
//# sourceMappingURL=announcer.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Light dismiss like the browser does it: the press (`pointerdown`) and the click must both be on the backdrop.
|
|
3
|
+
* A press on the content that ends on the backdrop (selecting text, panning, drawing a frame) gives a click on the
|
|
4
|
+
* dialog outside the panel. That click does not dismiss.
|
|
5
|
+
*
|
|
6
|
+
* Call `press(e)` from `pointerdown` and `isBackdropClick(e)` from `click`, both on the native `<dialog>`.
|
|
7
|
+
*/
|
|
8
|
+
export declare class BackdropPress {
|
|
9
|
+
private readonly dialog;
|
|
10
|
+
private pressed;
|
|
11
|
+
constructor(dialog: () => HTMLDialogElement | null | undefined);
|
|
12
|
+
/** True when the point is outside the panel of the dialog. */
|
|
13
|
+
private outside;
|
|
14
|
+
/** Remembers if the press started on the backdrop. */
|
|
15
|
+
press(e: PointerEvent): void;
|
|
16
|
+
/** True when this click is a click on the backdrop and the press started there too. Resets the press. */
|
|
17
|
+
isBackdropClick(e: MouseEvent): boolean;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=backdrop.d.ts.map
|