@bk2k/ui 0.7.0 → 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/CHANGELOG.md +63 -0
- package/USAGE.md +20 -9
- package/custom-elements.json +1 -1
- package/dist/charts/frame.d.ts +2 -0
- package/dist/components/bk-alert.js +1 -1
- package/dist/components/bk-button.d.ts +5 -0
- package/dist/components/bk-button.js +15 -4
- package/dist/components/bk-card.d.ts +6 -3
- package/dist/components/bk-card.js +15 -9
- package/dist/components/bk-chart-area.d.ts +4 -0
- package/dist/components/bk-chart-line.d.ts +15 -0
- package/dist/components/bk-chart-line.js +16 -6
- package/dist/components/bk-chip.d.ts +2 -0
- package/dist/components/bk-chip.js +3 -1
- package/dist/components/bk-combobox.d.ts +2 -2
- package/dist/components/bk-combobox.js +7 -20
- package/dist/components/bk-footnotes-item.d.ts +2 -2
- package/dist/components/bk-image-compare.d.ts +36 -1
- package/dist/components/bk-image-compare.js +47 -11
- package/dist/components/bk-image-viewer.d.ts +74 -3
- package/dist/components/bk-image-viewer.js +115 -28
- 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-tags.d.ts +219 -0
- package/dist/components/bk-input-tags.js +293 -0
- package/dist/components/bk-input-text.d.ts +9 -0
- package/dist/components/bk-input-text.js +18 -2
- package/dist/components/bk-lightbox.d.ts +25 -1
- package/dist/components/bk-lightbox.js +7 -0
- package/dist/components/bk-page-cta.d.ts +2 -0
- package/dist/components/bk-page-cta.js +8 -1
- package/dist/components/bk-split-grid.js +7 -2
- package/dist/components/bk-stat.d.ts +2 -0
- package/dist/components/bk-stat.js +1 -1
- package/dist/components/bk-table.d.ts +2 -0
- package/dist/components/bk-table.js +1 -1
- package/dist/components/bk-tabs.d.ts +2 -1
- package/dist/components/bk-tabs.js +15 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/internal/announcer.d.ts +6 -0
- package/dist/internal/announcer.js +7 -2
- package/dist/internal/cloak.js +1 -0
- package/dist/internal/define.d.ts +9 -0
- package/dist/internal/define.js +47 -1
- package/dist/internal/elements.d.ts +6 -0
- package/dist/internal/elements.js +5 -0
- package/dist/internal/hue.d.ts +8 -0
- package/dist/internal/hue.js +15 -4
- package/dist/internal/late/bk-tabs.d.ts +4 -0
- package/dist/internal/late/bk-tabs.js +8 -0
- package/dist/internal/late.js +3 -3
- 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 +85 -6
- package/dist/kit.d.ts +1 -0
- package/dist/kit.js +3 -0
- package/dist/reset.css +1 -1
- package/dist/standalone/all.js +106 -105
- package/dist/standalone/bk-accordion-item.js +3 -3
- package/dist/standalone/bk-accordion.js +1 -1
- package/dist/standalone/bk-action-bar.js +1 -1
- package/dist/standalone/bk-alert-offline.js +1 -1
- package/dist/standalone/bk-alert.js +7 -4
- package/dist/standalone/bk-app-state.js +1 -1
- package/dist/standalone/bk-attachment.js +2 -2
- package/dist/standalone/bk-avatar-group.js +1 -1
- package/dist/standalone/bk-avatar.js +3 -3
- package/dist/standalone/bk-badge.js +1 -1
- package/dist/standalone/bk-bar.js +1 -1
- package/dist/standalone/bk-brand.js +1 -1
- package/dist/standalone/bk-breadcrumbs.js +2 -2
- package/dist/standalone/bk-button-copy.js +4 -4
- package/dist/standalone/bk-button-group.js +2 -2
- package/dist/standalone/bk-button-share.js +4 -4
- package/dist/standalone/bk-button-top.js +1 -1
- package/dist/standalone/bk-button.js +14 -6
- package/dist/standalone/bk-calendar-event.js +1 -1
- package/dist/standalone/bk-calendar-week.js +1 -1
- package/dist/standalone/bk-calendar.js +2 -2
- package/dist/standalone/bk-card.js +17 -11
- package/dist/standalone/bk-carousel-controls.js +2 -2
- package/dist/standalone/bk-carousel-item.js +1 -1
- 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 +2 -2
- package/dist/standalone/bk-chart-bar.js +1 -1
- package/dist/standalone/bk-chart-bridge.js +1 -1
- package/dist/standalone/bk-chart-bullet.js +1 -1
- package/dist/standalone/bk-chart-calendar.js +1 -1
- package/dist/standalone/bk-chart-heatmap.js +1 -1
- package/dist/standalone/bk-chart-histogram.js +1 -1
- package/dist/standalone/bk-chart-legend.js +1 -1
- package/dist/standalone/bk-chart-line.js +16 -8
- package/dist/standalone/bk-chart-mark.js +1 -1
- package/dist/standalone/bk-chart-scatter.js +1 -1
- package/dist/standalone/bk-chart-sparkline.js +1 -1
- package/dist/standalone/bk-chart-stacked-bar.js +1 -1
- package/dist/standalone/bk-chart-tracker.js +1 -1
- package/dist/standalone/bk-chart-waterfall.js +2 -2
- package/dist/standalone/bk-checkbox-group.js +5 -5
- package/dist/standalone/bk-checkbox.js +3 -3
- package/dist/standalone/bk-chip-group.js +4 -4
- package/dist/standalone/bk-chip.js +5 -3
- package/dist/standalone/bk-cluster.js +1 -1
- package/dist/standalone/bk-code-diff.js +2 -2
- package/dist/standalone/bk-code-stack.js +1 -1
- package/dist/standalone/bk-code.js +1 -1
- package/dist/standalone/bk-color-panel.js +2 -2
- package/dist/standalone/bk-columns.js +1 -1
- package/dist/standalone/bk-combobox.js +21 -30
- package/dist/standalone/bk-command-menu.js +3 -3
- package/dist/standalone/bk-command-palette.js +4 -4
- package/dist/standalone/bk-composer.js +4 -4
- package/dist/standalone/bk-delta.js +1 -1
- package/dist/standalone/bk-diagram.js +1 -1
- package/dist/standalone/bk-dialog.js +1 -1
- package/dist/standalone/bk-disclosure.js +2 -2
- package/dist/standalone/bk-divider.js +4 -4
- package/dist/standalone/bk-drawer.js +2 -2
- package/dist/standalone/bk-drop-target.js +1 -1
- package/dist/standalone/bk-empty-state.js +2 -2
- package/dist/standalone/bk-error-summary.js +1 -1
- package/dist/standalone/bk-facts-item.js +1 -1
- package/dist/standalone/bk-facts.js +1 -1
- package/dist/standalone/bk-feature.js +2 -2
- package/dist/standalone/bk-fieldset.js +1 -1
- package/dist/standalone/bk-filter-bar.js +2 -2
- package/dist/standalone/bk-folder-browser.js +2 -2
- package/dist/standalone/bk-footnote.js +1 -1
- package/dist/standalone/bk-footnotes-item.js +2 -2
- package/dist/standalone/bk-footnotes.js +1 -1
- package/dist/standalone/bk-form-guard.js +1 -1
- package/dist/standalone/bk-form-steps.js +1 -1
- package/dist/standalone/bk-grid.js +1 -1
- package/dist/standalone/bk-icon-tile.js +2 -2
- package/dist/standalone/bk-icon.js +1 -1
- package/dist/standalone/bk-image-compare.js +55 -27
- package/dist/standalone/bk-image-crop.js +3 -3
- package/dist/standalone/bk-image-editor.js +1 -1
- package/dist/standalone/bk-image-viewer.js +127 -57
- package/dist/standalone/bk-input-code.js +2 -2
- package/dist/standalone/bk-input-color.js +3 -13
- 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 +20 -13
- package/dist/standalone/bk-input-group.js +2 -2
- package/dist/standalone/bk-input-inline.js +1 -1
- package/dist/standalone/bk-input-number.js +4 -4
- package/dist/standalone/bk-input-rating.js +4 -4
- package/dist/standalone/bk-input-rich.js +1 -1
- package/dist/standalone/bk-input-search.js +4 -4
- package/dist/standalone/bk-input-slider-range.js +2 -2
- package/dist/standalone/bk-input-slider.js +2 -2
- 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 +4 -4
- package/dist/standalone/bk-item-group.js +2 -2
- package/dist/standalone/bk-item.js +2 -2
- package/dist/standalone/bk-kbd-shortcuts.js +1 -1
- package/dist/standalone/bk-kbd.js +1 -1
- package/dist/standalone/bk-lightbox.js +16 -3
- package/dist/standalone/bk-lines.js +1 -1
- package/dist/standalone/bk-link.js +2 -2
- 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 +5 -5
- package/dist/standalone/bk-listbox-transfer.js +4 -4
- package/dist/standalone/bk-listbox.js +5 -5
- package/dist/standalone/bk-logo-wall.js +1 -1
- package/dist/standalone/bk-logo.js +2 -2
- package/dist/standalone/bk-menu-bar.js +1 -1
- package/dist/standalone/bk-menu-context.js +1 -1
- package/dist/standalone/bk-menu-divider.js +1 -1
- package/dist/standalone/bk-menu-item.js +2 -2
- package/dist/standalone/bk-menu-label.js +1 -1
- package/dist/standalone/bk-menu-list.js +1 -1
- package/dist/standalone/bk-menu.js +4 -4
- package/dist/standalone/bk-message-approval.js +2 -2
- package/dist/standalone/bk-message-branches.js +1 -1
- package/dist/standalone/bk-message-citation.js +1 -1
- package/dist/standalone/bk-message-feedback.js +2 -2
- package/dist/standalone/bk-message-list.js +2 -2
- package/dist/standalone/bk-message-reasoning.js +3 -3
- package/dist/standalone/bk-message-source.js +1 -1
- package/dist/standalone/bk-message-tool-group.js +3 -3
- package/dist/standalone/bk-message-tool.js +3 -3
- package/dist/standalone/bk-message.js +2 -2
- package/dist/standalone/bk-meter.js +1 -1
- package/dist/standalone/bk-model-viewer.js +1 -1
- package/dist/standalone/bk-nav-divider.js +1 -1
- package/dist/standalone/bk-nav-group.js +5 -5
- package/dist/standalone/bk-nav-item.js +2 -2
- package/dist/standalone/bk-nav-toc.js +1 -1
- package/dist/standalone/bk-nav.js +1 -1
- package/dist/standalone/bk-overflow.js +1 -1
- package/dist/standalone/bk-page-cta.js +10 -3
- package/dist/standalone/bk-page-footer-column.js +1 -1
- package/dist/standalone/bk-page-footer.js +1 -1
- package/dist/standalone/bk-page-header.js +2 -2
- package/dist/standalone/bk-page-hero.js +2 -2
- package/dist/standalone/bk-page-pager.js +2 -2
- package/dist/standalone/bk-page-section.js +2 -2
- package/dist/standalone/bk-pagination.js +3 -3
- package/dist/standalone/bk-pane.js +2 -2
- package/dist/standalone/bk-panel.js +2 -2
- package/dist/standalone/bk-period-nav.js +2 -2
- package/dist/standalone/bk-picture.js +1 -175
- package/dist/standalone/bk-popover-help.js +1 -1
- package/dist/standalone/bk-popover.js +1 -1
- package/dist/standalone/bk-presence-cursor.js +2 -2
- package/dist/standalone/bk-preview.js +2 -2
- package/dist/standalone/bk-progress.js +1 -1
- package/dist/standalone/bk-prose.js +1 -1
- package/dist/standalone/bk-qr-code.js +1 -1
- package/dist/standalone/bk-radio-group.js +5 -5
- package/dist/standalone/bk-radio.js +2 -2
- package/dist/standalone/bk-rating.js +3 -3
- package/dist/standalone/bk-scroll.js +1 -1
- package/dist/standalone/bk-segmented-item.js +2 -2
- package/dist/standalone/bk-segmented.js +4 -4
- package/dist/standalone/bk-select-cascade.js +3 -3
- package/dist/standalone/bk-select-tree.js +4 -4
- package/dist/standalone/bk-select.js +4 -4
- package/dist/standalone/bk-shell-app.js +1 -1
- package/dist/standalone/bk-shell-centered.js +1 -1
- package/dist/standalone/bk-shell-sites.js +1 -1
- package/dist/standalone/bk-skeleton.js +1 -1
- package/dist/standalone/bk-sortable.js +2 -2
- package/dist/standalone/bk-spinner.js +1 -1
- package/dist/standalone/bk-split-grid.js +10 -7
- package/dist/standalone/bk-split.js +6 -6
- package/dist/standalone/bk-stack.js +1 -1
- package/dist/standalone/bk-stat-group.js +1 -1
- package/dist/standalone/bk-stat.js +3 -3
- package/dist/standalone/bk-status-dot.js +2 -2
- package/dist/standalone/bk-steps-item.js +2 -2
- package/dist/standalone/bk-steps.js +1 -1
- package/dist/standalone/bk-surface.js +1 -1
- package/dist/standalone/bk-swatch-group.js +6 -6
- package/dist/standalone/bk-swatch-palette.js +1 -1
- package/dist/standalone/bk-swatch.js +1 -1
- package/dist/standalone/bk-switch.js +2 -2
- package/dist/standalone/bk-table.js +1 -1
- package/dist/standalone/bk-tabs-item.js +2 -2
- package/dist/standalone/bk-tabs-panel.js +1 -1
- package/dist/standalone/bk-tabs.js +3 -414
- package/dist/standalone/bk-tasks-item.js +2 -2
- package/dist/standalone/bk-tasks.js +1 -1
- package/dist/standalone/bk-testimonial.js +2 -2
- package/dist/standalone/bk-text.js +3 -3
- package/dist/standalone/bk-time-countdown.js +2 -2
- package/dist/standalone/bk-time-relative.js +1 -1
- package/dist/standalone/bk-timeline-item.js +2 -2
- package/dist/standalone/bk-timeline.js +1 -1
- package/dist/standalone/bk-toast-group.js +1 -1
- package/dist/standalone/bk-toast.js +2 -2
- package/dist/standalone/bk-toolbar.js +1 -1
- package/dist/standalone/bk-tooltip.js +1 -1
- package/dist/standalone/bk-tree-item.js +3 -3
- package/dist/standalone/bk-tree.js +4 -4
- package/dist/standalone/bk-video.js +2 -2
- package/dist/standalone/bk-visually-hidden.js +1 -1
- package/dist/standalone/bk-zoom.js +3 -3
- package/dist/standalone/chunks/{announcer-D1zrRWwO.js → announcer-6tMlCOq1.js} +9 -4
- package/dist/standalone/chunks/{bk-alert-offline-Clw0ZSsH.js → bk-alert-offline-hCLuG-RM.js} +1 -1
- package/dist/standalone/chunks/{bk-carousel-Biz7t8sL.js → bk-carousel-_dudBMVq.js} +2 -2
- package/dist/standalone/chunks/{bk-diagram-D_fQf6SF.js → bk-diagram-BB2odomE.js} +2 -2
- package/dist/standalone/chunks/{bk-dialog-DwZyUUHh.js → bk-dialog-DcvwnOtN.js} +2 -2
- package/dist/standalone/chunks/{bk-icon-Bp_flKdv.js → bk-icon-D4kI4F18.js} +1 -1
- package/dist/standalone/chunks/{bk-image-editor-BADsoLRL.js → bk-image-editor-SRVkHI-4.js} +2 -2
- package/dist/standalone/chunks/{bk-input-date-range-DHcJ8-5g.js → bk-input-date-range-C0Vd-p0T.js} +2 -2
- package/dist/standalone/chunks/{bk-input-rich-CFhW6vRa.js → bk-input-rich-AmDv87E5.js} +3 -3
- package/dist/standalone/chunks/{bk-input-text-DviyLBqj.js → bk-input-text-2n89GDIT.js} +15 -5
- package/dist/standalone/chunks/{bk-model-viewer-w_Ah4Tvs.js → bk-model-viewer-BoNYBd6W.js} +2 -2
- package/dist/standalone/chunks/bk-picture-CA5gLxgZ.js +186 -0
- package/dist/standalone/chunks/{bk-qr-code-CYMovNVl.js → bk-qr-code-CSFfc8As.js} +1 -1
- package/dist/standalone/chunks/{bk-shell-app-B2lxHit8.js → bk-shell-app-BlCOG25y.js} +31 -30
- package/dist/standalone/chunks/{bk-surface-D7e0tErs.js → bk-surface-BULRdKam.js} +1 -1
- package/dist/standalone/chunks/{bk-swatch-palette-x13JgJQi.js → bk-swatch-palette-Cqj85tSW.js} +1 -1
- package/dist/standalone/chunks/{bk-table-CP8n_jy7.js → bk-table-DWlD7yoM.js} +72 -71
- package/dist/standalone/chunks/bk-tabs-STkr3-E1.js +422 -0
- package/dist/standalone/chunks/{bk-toast-group-CoL6W7uk.js → bk-toast-group-5nZg7BaJ.js} +2 -2
- package/dist/standalone/chunks/{busy-BUB22mGY.js → busy-eG3uHonz.js} +1 -1
- package/dist/standalone/chunks/{choice-field-poOTerh1.js → choice-field-B0oe_9fI.js} +4 -4
- package/dist/standalone/chunks/{date-field-B-fCXa2D.js → date-field-Dy1_qxNv.js} +2 -2
- package/dist/standalone/chunks/define-6OfuRn5c.js +60 -0
- package/dist/standalone/chunks/{form-control-CHpfKAKa.js → form-control-Bmk0SRDX.js} +1 -1
- package/dist/standalone/chunks/{handle-menu-BgYUbGO2.js → handle-menu-BAe9fPYJ.js} +10 -36
- package/dist/standalone/chunks/{heading-text-CgnCa_q2.js → heading-text-B2kF-b8p.js} +1 -1
- package/dist/standalone/chunks/hue-vLbNdAEl.js +20 -0
- package/dist/standalone/chunks/late-CPQ_RbU-.js +30 -0
- package/dist/standalone/chunks/{options-BdC8-KKM.js → options-ySaDL-dW.js} +1 -1
- package/dist/standalone/chunks/{stars-BgKEjDQx.js → stars-BAUc_LqI.js} +1 -1
- package/dist/standalone/chunks/tags-CMLAGsVw.js +37 -0
- package/dist/standalone/chunks/{text-field-CqhJSAwZ.js → text-field-CufOGdfr.js} +16 -10
- package/dist/standalone/chunks/{toggle-control-lvZbQtGW.js → toggle-control-Cgqp1jhf.js} +4 -2
- package/dist/standalone/chunks/{virtual-C_h6sHnm.js → virtual-D-qgACnE.js} +1 -1
- package/dist/standalone/confirm.js +2 -2
- package/dist/standalone/reset.css +1 -1
- package/dist/standalone/toast.js +1 -1
- package/dist/standalone/tokens.css +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +2 -2
- package/dist/standalone/chunks/define-DkVeu7e9.js +0 -30
- package/dist/standalone/chunks/hue-Jvb-141g.js +0 -14
- package/dist/standalone/chunks/keyed-CZ2AaouM.js +0 -16
|
@@ -1,9 +1,9 @@
|
|
|
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/style-map-BMvn17E7.js";
|
|
3
|
-
import { t as i } from "./chunks/announcer-
|
|
4
|
-
import {
|
|
3
|
+
import { t as i } from "./chunks/announcer-6tMlCOq1.js";
|
|
4
|
+
import { a, t as o } from "./chunks/define-6OfuRn5c.js";
|
|
5
5
|
import { n as s } from "./chunks/events-DQ4e9cPN.js";
|
|
6
|
-
import { t as c } from "./chunks/form-control-
|
|
6
|
+
import { t as c } from "./chunks/form-control-Bmk0SRDX.js";
|
|
7
7
|
import { t as l } from "./chunks/i18n-DFfGgd3d.js";
|
|
8
8
|
import { t as u, x as d } from "./chunks/styles-CaeyhYDA.js";
|
|
9
9
|
import { n as f, t as p } from "./chunks/crop-frame-Z9N0QML4.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./bk-chip-group.js";
|
|
2
2
|
import "./bk-zoom.js";
|
|
3
3
|
import "./bk-image-compare.js";
|
|
4
|
-
export { t as BkImageEditor, n as noImageEdits } from "./chunks/bk-image-editor-
|
|
4
|
+
export { t as BkImageEditor, n as noImageEdits } from "./chunks/bk-image-editor-SRVkHI-4.js";
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { a as e, n as t, t as n, u as r } from "./chunks/lit-D8x-qXgH.js";
|
|
2
|
-
import { t as i } from "./chunks/
|
|
3
|
-
import { t as a } from "./chunks/
|
|
4
|
-
import {
|
|
2
|
+
import { t as i } from "./chunks/repeat-Dxf3qZZl.js";
|
|
3
|
+
import { t as a } from "./chunks/if-defined-z_20pBRr.js";
|
|
4
|
+
import { a as o, t as s } from "./chunks/define-6OfuRn5c.js";
|
|
5
5
|
import { t as c } from "./chunks/i18n-DFfGgd3d.js";
|
|
6
6
|
import { n as l, t as u } from "./chunks/events-DQ4e9cPN.js";
|
|
7
7
|
import { t as d, x as f } from "./chunks/styles-CaeyhYDA.js";
|
|
8
|
-
import "./chunks/bk-icon-
|
|
8
|
+
import "./chunks/bk-icon-D4kI4F18.js";
|
|
9
9
|
import "./bk-button.js";
|
|
10
10
|
import "./bk-spinner.js";
|
|
11
11
|
import { t as p } from "./chunks/scroll-CB6-StUs.js";
|
|
12
|
-
import {
|
|
12
|
+
import { t as m } from "./chunks/loading-B37QBUkv.js";
|
|
13
|
+
import { t as h } from "./chunks/host-vars-DTKbhBPu.js";
|
|
14
|
+
import { n as g, t as _ } from "./chunks/pan-zoom-CbOGHBG7.js";
|
|
13
15
|
import "./chunks/actual-size-CtcFlQsI.js";
|
|
14
16
|
import "./chunks/chevron-down-CpVEjEyi.js";
|
|
15
17
|
import "./chunks/chevron-left-BHF34JzQ.js";
|
|
@@ -21,7 +23,7 @@ import "./chunks/group-RW5fFMy-.js";
|
|
|
21
23
|
import "./chunks/zoom-in-C934gQ2K.js";
|
|
22
24
|
import "./chunks/zoom-out-wKpHan14.js";
|
|
23
25
|
// dist/components/bk-image-viewer.js
|
|
24
|
-
var
|
|
26
|
+
var v = 8, y = 16, b = 3, x = 1.5, S = 2.5, C = 48, w = 8, T = 300, E = [2, 4], D = "input, textarea, select, [contenteditable]:not([contenteditable=false]), [role~=textbox], [role~=searchbox], [role~=combobox], [role~=spinbutton], [role~=slider], [role~=listbox], [role~=menu], [role~=menubar], [role~=radiogroup], [role~=tablist], [role~=tree], [role~=grid], [role~=treegrid]", O = (e, t, n) => Math.min(n, Math.max(t, e)), k = class extends n {
|
|
25
27
|
static shadowRootOptions = {
|
|
26
28
|
...n.shadowRootOptions,
|
|
27
29
|
delegatesFocus: !0
|
|
@@ -41,6 +43,22 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
41
43
|
type: Boolean,
|
|
42
44
|
reflect: !0
|
|
43
45
|
},
|
|
46
|
+
shaped: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
reflect: !0
|
|
49
|
+
},
|
|
50
|
+
pageable: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
reflect: !0
|
|
53
|
+
},
|
|
54
|
+
first: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
reflect: !0
|
|
57
|
+
},
|
|
58
|
+
last: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
reflect: !0
|
|
61
|
+
},
|
|
44
62
|
label: {},
|
|
45
63
|
prevLabel: { attribute: "prev-label" },
|
|
46
64
|
nextLabel: { attribute: "next-label" },
|
|
@@ -54,11 +72,12 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
54
72
|
failed: { state: !0 },
|
|
55
73
|
zoomed: { state: !0 },
|
|
56
74
|
ratio: { state: !0 },
|
|
57
|
-
thumbRatio: { state: !0 }
|
|
75
|
+
thumbRatio: { state: !0 },
|
|
76
|
+
naturalSize: { state: !0 }
|
|
58
77
|
};
|
|
59
|
-
pz = new
|
|
78
|
+
pz = new _(this, {
|
|
60
79
|
min: () => Math.min(1, this.actualScale),
|
|
61
|
-
max: () => Math.max(
|
|
80
|
+
max: () => Math.max(v, this.actualScale * y),
|
|
62
81
|
content: () => this.box.w && this.box.h ? {
|
|
63
82
|
w: this.fit.w / this.box.w,
|
|
64
83
|
h: this.fit.h / this.box.h
|
|
@@ -113,12 +132,15 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
113
132
|
};
|
|
114
133
|
preloaded = /* @__PURE__ */ new Set();
|
|
115
134
|
observed = null;
|
|
135
|
+
shot = null;
|
|
136
|
+
previousShot = null;
|
|
137
|
+
loader = new m(this);
|
|
116
138
|
resizer = o(() => {
|
|
117
139
|
this.measure(), this.clampPan(), this.apply(!1);
|
|
118
140
|
});
|
|
119
141
|
i18n = new c(this);
|
|
120
142
|
constructor() {
|
|
121
|
-
super(), this.items = [], this.index = 0, this.filmstrip = !1, this.loop = !1, this.immersive = !1, this.label = "", this.prevLabel = "", this.nextLabel = "", this.zoomInLabel = "", this.zoomOutLabel = "", this.fitLabel = "", this.actualSizeLabel = "", this.errorLabel = "", this.panLabel = "", this.loading = !1, this.failed = !1, this.zoomed = !1, this.ratio = 0, this.thumbRatio = 0;
|
|
143
|
+
super(), this.items = [], this.index = 0, this.filmstrip = !1, this.loop = !1, this.immersive = !1, this.shaped = !1, this.pageable = !1, this.first = !1, this.last = !1, this.label = "", this.prevLabel = "", this.nextLabel = "", this.zoomInLabel = "", this.zoomOutLabel = "", this.fitLabel = "", this.actualSizeLabel = "", this.errorLabel = "", this.panLabel = "", this.loading = !1, this.failed = !1, this.zoomed = !1, this.ratio = 0, this.thumbRatio = 0, this.naturalSize = 0;
|
|
122
144
|
}
|
|
123
145
|
static styles = [
|
|
124
146
|
d,
|
|
@@ -143,6 +165,25 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
143
165
|
.viewer:focus-visible { outline: var(--bk-focus-ring); outline-offset: var(--bk-focus-offset-inset); }
|
|
144
166
|
.empty { height: 100%; background: var(--bk-image-viewer-bg, var(--bk-media-backdrop)); }
|
|
145
167
|
|
|
168
|
+
/* shaped: the box takes the shape of the image. The width follows the ratio under the cap, never wider than
|
|
169
|
+
the container and never wider than the natural image. The height comes from the ratio. */
|
|
170
|
+
:host([shaped]) {
|
|
171
|
+
height: auto; max-block-size: none;
|
|
172
|
+
inline-size: min(100%, var(--_bk-image-viewer-natural, 100%), calc(var(--bk-image-viewer-max-height, calc(infinity * 1px)) * var(--_bk-image-viewer-ratio, 4 / 3)));
|
|
173
|
+
}
|
|
174
|
+
:host([shaped]) .viewer { height: auto; grid-template-rows: auto auto; container-type: inline-size; }
|
|
175
|
+
:host([shaped]) .empty { height: auto; aspect-ratio: 4 / 3; }
|
|
176
|
+
:host([shaped]) .main { aspect-ratio: var(--_bk-image-viewer-ratio, 4 / 3); }
|
|
177
|
+
:host([shaped]) .sizer { display: none; }
|
|
178
|
+
:host([shaped]) .frame { inset: 0; }
|
|
179
|
+
/* The toolbar lies over the top of the image. Only its controls take the pointer. */
|
|
180
|
+
:host([shaped]) .bar { position: absolute; z-index: 4; inset-block-start: 0; inset-inline: 0; pointer-events: none; }
|
|
181
|
+
:host([shaped]) :is(.tools, .actions) { pointer-events: auto; }
|
|
182
|
+
:host([shaped]) .counter:not(:empty) {
|
|
183
|
+
display: inline-flex; align-items: center; min-block-size: var(--_bk-image-viewer-control);
|
|
184
|
+
border-radius: var(--_bk-image-viewer-control-radius); background: var(--_bk-image-viewer-control-bg); backdrop-filter: var(--bk-glass);
|
|
185
|
+
}
|
|
186
|
+
|
|
146
187
|
.control {
|
|
147
188
|
--bk-button-ghost-bg: var(--_bk-image-viewer-control-bg);
|
|
148
189
|
--bk-button-neutral-text: var(--bk-image-viewer-control-fg, var(--_bk-image-viewer-fg));
|
|
@@ -204,13 +245,17 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
204
245
|
width: min(100cqw, 100cqh * var(--_bk-image-viewer-ratio)); height: min(100cqh, 100cqw / var(--_bk-image-viewer-ratio));
|
|
205
246
|
}
|
|
206
247
|
.image.loaded ~ .placeholder { visibility: hidden; transition: visibility 0s var(--bk-duration); }
|
|
248
|
+
/* The last image stays in view while the next one loads; the next one fades in over it. */
|
|
249
|
+
.previous { z-index: 0; }
|
|
250
|
+
.previous.gone { visibility: hidden; transition: visibility 0s var(--bk-duration); }
|
|
251
|
+
.frame.swap .placeholder { visibility: hidden; }
|
|
252
|
+
/* The LoadingController shows it only if loading takes longer than --bk-loading-delay. */
|
|
207
253
|
.spinner {
|
|
208
254
|
position: absolute; inset: 0; margin: auto; z-index: 2; width: fit-content; height: fit-content; display: flex;
|
|
209
255
|
padding: var(--bk-space-2); border-radius: var(--bk-radius-full); background: var(--_bk-image-viewer-control-bg); color: var(--_bk-image-viewer-fg);
|
|
210
|
-
|
|
211
|
-
opacity: 0; animation: bk-image-viewer-appear var(--bk-duration) var(--bk-ease) 250ms forwards;
|
|
256
|
+
animation: bk-image-viewer-appear var(--bk-duration) var(--bk-ease);
|
|
212
257
|
}
|
|
213
|
-
@keyframes bk-image-viewer-appear {
|
|
258
|
+
@keyframes bk-image-viewer-appear { from { opacity: 0; } }
|
|
214
259
|
.error {
|
|
215
260
|
position: absolute; inset: 0; margin: auto; z-index: 2; width: fit-content; height: fit-content;
|
|
216
261
|
display: flex; align-items: center; gap: var(--bk-space-2); font-size: var(--bk-type-body);
|
|
@@ -263,7 +308,11 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
263
308
|
@media (max-width: 480px) {
|
|
264
309
|
.level, .fit, .actual { display: none; }
|
|
265
310
|
}
|
|
266
|
-
|
|
311
|
+
/* A shaped box can be narrow on a wide screen: its own width counts. */
|
|
312
|
+
@container (max-width: 480px) {
|
|
313
|
+
:host([shaped]) :is(.level, .fit, .actual) { display: none; }
|
|
314
|
+
}
|
|
315
|
+
@media (prefers-reduced-motion: reduce) { .frame.animate, .image, .previous.gone { transition: none; } .spinner { animation: none; } }
|
|
267
316
|
@media (forced-colors: active) {
|
|
268
317
|
.viewer { background: Canvas; color: CanvasText; }
|
|
269
318
|
.spinner { background: Canvas; }
|
|
@@ -338,23 +387,31 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
338
387
|
}
|
|
339
388
|
willUpdate(e) {
|
|
340
389
|
let t = this.items.length;
|
|
341
|
-
this.index =
|
|
390
|
+
this.index = O(Math.trunc(this.index) || 0, 0, Math.max(0, t - 1));
|
|
342
391
|
let n = this.hasUpdated && this.renderRoot instanceof ShadowRoot ? this.renderRoot.activeElement : null;
|
|
343
|
-
if (n &&
|
|
344
|
-
|
|
392
|
+
if (n && (n.matches(".prev") && !this.canStep(-1) || n.matches(".next") && !this.canStep(1)) && this.focus(), e.has("index") || e.has("items")) {
|
|
393
|
+
let e = this.items[this.index], n = e ? {
|
|
394
|
+
key: `${this.index}|${e.full || e.src}`,
|
|
395
|
+
src: e.full || e.src,
|
|
396
|
+
thumb: e.src,
|
|
397
|
+
alt: e.alt
|
|
398
|
+
} : null;
|
|
399
|
+
if (n ? this.shot && this.shot.key !== n.key && (this.failed ? this.previousShot = null : this.loading || (this.previousShot = this.shot)) : this.previousShot = null, this.previousShot?.key === n?.key && (this.previousShot = null), this.shot = n, this.loading = t > 0, this.failed = !1, this.swipeX = 0, this.silently(() => this.pz.set({
|
|
345
400
|
zoom: 1,
|
|
346
401
|
x: .5,
|
|
347
402
|
y: .5
|
|
348
403
|
})), this.zoomed = !1, this.natural = {
|
|
349
404
|
w: 0,
|
|
350
405
|
h: 0
|
|
351
|
-
}
|
|
352
|
-
let e = this.items[this.index];
|
|
353
|
-
if (this.ratio = e?.width && e.height ? e.width / e.height : 0, this.thumbRatio = 0, e) {
|
|
406
|
+
}, this.ratio = e?.width && e.height ? e.width / e.height : 0, this.naturalSize = e?.width && e.height ? e.width : 0, this.thumbRatio = 0, e) {
|
|
354
407
|
let t = new Image();
|
|
355
|
-
t.src = e.full || e.src, t.complete && t.naturalWidth && t.naturalHeight && (this.loading = !1, this.ratio = t.naturalWidth / t.naturalHeight);
|
|
408
|
+
t.src = e.full || e.src, t.complete && t.naturalWidth && t.naturalHeight && (this.loading = !1, this.ratio = t.naturalWidth / t.naturalHeight, this.naturalSize = t.naturalWidth);
|
|
356
409
|
}
|
|
357
410
|
}
|
|
411
|
+
this.loader.set(this.loading), h(this, {
|
|
412
|
+
"--_bk-image-viewer-ratio": String(this.ratio || this.thumbRatio || ""),
|
|
413
|
+
"--_bk-image-viewer-natural": this.naturalSize && this.ratio ? `${this.naturalSize}px` : ""
|
|
414
|
+
});
|
|
358
415
|
}
|
|
359
416
|
updated(e) {
|
|
360
417
|
let t = this.frame;
|
|
@@ -410,7 +467,7 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
410
467
|
if (!n.includes(this)) {
|
|
411
468
|
for (let e of n) {
|
|
412
469
|
if (e === this.keyScope) break;
|
|
413
|
-
if (e instanceof Element && (e.matches(
|
|
470
|
+
if (e instanceof Element && (e.matches(D) || e.isContentEditable)) return;
|
|
414
471
|
}
|
|
415
472
|
this.onKey(t);
|
|
416
473
|
}
|
|
@@ -420,7 +477,7 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
420
477
|
let e = () => {
|
|
421
478
|
this.sizeWatch = 0;
|
|
422
479
|
let t = this.image;
|
|
423
|
-
!t || this.failed || this.ratio || (t.naturalWidth && t.naturalHeight ? (this.ratio = t.naturalWidth / t.naturalHeight, this.measure(), this.apply(!1), this.applyPendingView()) : this.sizeWatch = requestAnimationFrame(e));
|
|
480
|
+
!t || this.failed || this.ratio || (t.naturalWidth && t.naturalHeight ? (this.ratio = t.naturalWidth / t.naturalHeight, this.naturalSize = t.naturalWidth, this.measure(), this.apply(!1), this.applyPendingView()) : this.sizeWatch = requestAnimationFrame(e));
|
|
424
481
|
};
|
|
425
482
|
this.sizeWatch = requestAnimationFrame(e);
|
|
426
483
|
}
|
|
@@ -438,9 +495,17 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
438
495
|
go(e) {
|
|
439
496
|
let t = this.items.length;
|
|
440
497
|
if (t < 2) return !1;
|
|
441
|
-
let n = this.loop ? (e % t + t) % t :
|
|
498
|
+
let n = this.loop ? (e % t + t) % t : O(e, 0, t - 1);
|
|
442
499
|
return n !== this.index && (this.index = n, l(this, "change", { index: n }), !0);
|
|
443
500
|
}
|
|
501
|
+
canStep(e) {
|
|
502
|
+
let t = this.items.length;
|
|
503
|
+
return t > 1 && (this.loop || (e < 0 ? this.index > 0 : this.index < t - 1)) ? "own" : this.pageable && !(e < 0 ? this.first : this.last) ? "app" : !1;
|
|
504
|
+
}
|
|
505
|
+
step(e) {
|
|
506
|
+
let t = this.canStep(e);
|
|
507
|
+
return t === "own" ? this.go(this.index + e) : t === "app" && l(this, "page", { direction: e < 0 ? "previous" : "next" }, !0), t;
|
|
508
|
+
}
|
|
444
509
|
get panStep() {
|
|
445
510
|
return Math.max(40, this.box.w * .1);
|
|
446
511
|
}
|
|
@@ -452,15 +517,15 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
452
517
|
ArrowUp: () => this.panBy(0, t),
|
|
453
518
|
ArrowDown: () => this.panBy(0, -t)
|
|
454
519
|
} : {
|
|
455
|
-
ArrowLeft: () => this.
|
|
456
|
-
ArrowRight: () => this.
|
|
520
|
+
ArrowLeft: () => this.step(-1),
|
|
521
|
+
ArrowRight: () => this.step(1)
|
|
457
522
|
};
|
|
458
523
|
Object.assign(n, {
|
|
459
524
|
Home: () => this.go(0),
|
|
460
525
|
End: () => this.go(this.items.length - 1),
|
|
461
|
-
"+": () => this.zoomTo(this.pz.zoom *
|
|
462
|
-
"=": () => this.zoomTo(this.pz.zoom *
|
|
463
|
-
"-": () => this.zoomTo(this.pz.zoom /
|
|
526
|
+
"+": () => this.zoomTo(this.pz.zoom * x),
|
|
527
|
+
"=": () => this.zoomTo(this.pz.zoom * x),
|
|
528
|
+
"-": () => this.zoomTo(this.pz.zoom / x),
|
|
464
529
|
0: () => this.zoomFit(),
|
|
465
530
|
1: () => this.zoomActual()
|
|
466
531
|
});
|
|
@@ -522,7 +587,7 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
522
587
|
let { tx: t, ty: n } = this.offset();
|
|
523
588
|
e.style.transform = `translate3d(${t + this.swipeX}px, ${n}px, 0) scale(${this.pz.zoom})`;
|
|
524
589
|
let r = this.natural.w ? this.pz.zoom / this.actualScale : 0;
|
|
525
|
-
this.image?.classList.toggle("pixelated", r >=
|
|
590
|
+
this.image?.classList.toggle("pixelated", r >= b);
|
|
526
591
|
let i = this.renderRoot.querySelector(".level");
|
|
527
592
|
i && (i.textContent = r ? this.formatPercent(r) : ""), this.viewChanged && (this.viewChanged = !1, l(this, "viewchange", this.view));
|
|
528
593
|
});
|
|
@@ -556,7 +621,7 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
556
621
|
}
|
|
557
622
|
onPointerDown(e) {
|
|
558
623
|
if (e.pointerType !== "mouse" || e.button === 0) {
|
|
559
|
-
if (
|
|
624
|
+
if (g(e), this.pointers.set(e.pointerId, {
|
|
560
625
|
x: e.clientX,
|
|
561
626
|
y: e.clientY
|
|
562
627
|
}), this.pointers.size === 1) {
|
|
@@ -593,14 +658,14 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
593
658
|
}
|
|
594
659
|
if (this.pointers.size !== 1) return;
|
|
595
660
|
let n = e.clientX - this.drag.x, r = e.clientY - this.drag.y;
|
|
596
|
-
if (!(!this.drag.moved && Math.hypot(n, r) <
|
|
661
|
+
if (!(!this.drag.moved && Math.hypot(n, r) < w)) {
|
|
597
662
|
if (this.drag.moved = !0, this.zoomed) {
|
|
598
663
|
let e = this.pz.zoom;
|
|
599
664
|
this.pz.set({
|
|
600
665
|
x: this.drag.vx - n / (this.box.w * e),
|
|
601
666
|
y: this.drag.vy - r / (this.box.h * e)
|
|
602
667
|
});
|
|
603
|
-
} else this.items.length > 1 && (this.swipeX = n);
|
|
668
|
+
} else (this.items.length > 1 || this.pageable) && (this.swipeX = n);
|
|
604
669
|
this.apply(!1);
|
|
605
670
|
}
|
|
606
671
|
}
|
|
@@ -619,7 +684,7 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
619
684
|
}
|
|
620
685
|
if (this.pointers.size) return;
|
|
621
686
|
let t = this.swipeX;
|
|
622
|
-
t ? (this.swipeX = 0, (e.type === "pointercancel" || Math.abs(t) <=
|
|
687
|
+
t ? (this.swipeX = 0, (e.type === "pointercancel" || Math.abs(t) <= C || this.step(t < 0 ? 1 : -1) !== "own") && this.apply(!0)) : !this.drag.moved && e.type === "pointerup" && this.onTap(e);
|
|
623
688
|
}
|
|
624
689
|
onTap(e) {
|
|
625
690
|
let t = Math.abs(e.clientX - this.box.x) > this.fit.w / 2 || Math.abs(e.clientY - this.box.y) > this.fit.h / 2;
|
|
@@ -628,16 +693,16 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
628
693
|
u(this, "dismiss");
|
|
629
694
|
return;
|
|
630
695
|
}
|
|
631
|
-
let n =
|
|
696
|
+
let n = E.find((e) => this.pz.zoom < e - .01);
|
|
632
697
|
n ? this.zoomTo(n, e.clientX, e.clientY) : this.zoomFit();
|
|
633
698
|
return;
|
|
634
699
|
}
|
|
635
700
|
let n = e.timeStamp, r = this.lastTap;
|
|
636
|
-
n - r.t <
|
|
701
|
+
n - r.t < T && Math.hypot(e.clientX - r.x, e.clientY - r.y) < 30 ? (this.lastTap = {
|
|
637
702
|
t: 0,
|
|
638
703
|
x: 0,
|
|
639
704
|
y: 0
|
|
640
|
-
}, this.zoomed ? this.zoomFit() : this.zoomTo(
|
|
705
|
+
}, this.zoomed ? this.zoomFit() : this.zoomTo(S, e.clientX, e.clientY)) : (this.lastTap = {
|
|
641
706
|
t: n,
|
|
642
707
|
x: e.clientX,
|
|
643
708
|
y: e.clientY
|
|
@@ -647,7 +712,7 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
647
712
|
if (e && e.target !== this.image) return;
|
|
648
713
|
this.loading = !1;
|
|
649
714
|
let t = this.image;
|
|
650
|
-
t?.naturalWidth && t.naturalHeight && (this.ratio = t.naturalWidth / t.naturalHeight), this.placeImage();
|
|
715
|
+
t?.naturalWidth && t.naturalHeight && (this.ratio = t.naturalWidth / t.naturalHeight, this.naturalSize = t.naturalWidth), this.placeImage();
|
|
651
716
|
}
|
|
652
717
|
placeImage() {
|
|
653
718
|
let e = this.image?.getAttribute("src") ?? "";
|
|
@@ -667,19 +732,23 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
667
732
|
return t ? this.renderViewer(t) : e`<div class="empty" part="base"></div>`;
|
|
668
733
|
}
|
|
669
734
|
renderViewer(n) {
|
|
670
|
-
let r = this.items.length, o = r > 1, s =
|
|
735
|
+
let r = this.items.length, o = r > 1, s = this.filmstrip && o, c = this.shot ?? {
|
|
736
|
+
key: `${this.index}|${n.full || n.src}`,
|
|
737
|
+
src: n.full || n.src,
|
|
738
|
+
thumb: n.src,
|
|
739
|
+
alt: n.alt
|
|
740
|
+
}, l = this.previousShot ? [this.previousShot, c] : [c], u = !!this.previousShot && this.loading;
|
|
671
741
|
return e`<div class="viewer" part="base" role="region" tabindex="0"
|
|
672
|
-
style=${i({ "--_bk-image-viewer-ratio": this.ratio || this.thumbRatio || void 0 })}
|
|
673
742
|
aria-label=${this.label || this.i18n.t("imageViewer")} @keydown=${this.onKey}>
|
|
674
743
|
<div class="bar" part="toolbar">
|
|
675
744
|
<span class="counter" part="counter" aria-live="polite" aria-atomic="true">${o ? e`<span aria-hidden="true">${this.index + 1} / ${r}</span><span class="sr-only">${this.i18n.t("imageCounter", {
|
|
676
745
|
index: this.index + 1,
|
|
677
746
|
total: r
|
|
678
|
-
})}</span>` :
|
|
747
|
+
})}</span>` : t}</span>
|
|
679
748
|
<span class="tools">
|
|
680
|
-
<bk-button variant="ghost" class="control" size="lg" label=${this.zoomOutLabel || this.i18n.t("zoomOut")} icon="zoom-out" @click=${() => this.zoomTo(this.pz.zoom /
|
|
749
|
+
<bk-button variant="ghost" class="control" size="lg" label=${this.zoomOutLabel || this.i18n.t("zoomOut")} icon="zoom-out" @click=${() => this.zoomTo(this.pz.zoom / x)}></bk-button>
|
|
681
750
|
<output class="level" part="zoom-level" aria-live="off" aria-label=${this.i18n.t("zoomLevel")}></output>
|
|
682
|
-
<bk-button variant="ghost" class="control" size="lg" label=${this.zoomInLabel || this.i18n.t("zoomIn")} icon="zoom-in" @click=${() => this.zoomTo(this.pz.zoom *
|
|
751
|
+
<bk-button variant="ghost" class="control" size="lg" label=${this.zoomInLabel || this.i18n.t("zoomIn")} icon="zoom-in" @click=${() => this.zoomTo(this.pz.zoom * x)}></bk-button>
|
|
683
752
|
<bk-button variant="ghost" class="control fit" size="lg" label=${this.fitLabel || this.i18n.t("zoomFit")} icon="fit-screen" @click=${() => this.zoomFit()}></bk-button>
|
|
684
753
|
<bk-button variant="ghost" class="control actual" size="lg" label=${this.actualSizeLabel || this.i18n.t("zoomActual")} icon="actual-size" @click=${() => this.zoomActual()}></bk-button>
|
|
685
754
|
</span>
|
|
@@ -690,13 +759,14 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
690
759
|
<div class="stage ${this.zoomed ? "zoomed" : ""} ${this.immersive ? "steps" : ""}" part="stage" @wheel=${this.onWheel}
|
|
691
760
|
@pointerdown=${this.onPointerDown} @pointermove=${this.onPointerMove}
|
|
692
761
|
@pointerup=${this.onPointerUp} @pointercancel=${this.onPointerUp}>
|
|
693
|
-
<div class="frame">${
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
762
|
+
<div class="frame ${u ? "swap" : ""}">${i(l, (e) => e.key, (n) => {
|
|
763
|
+
let r = n === c, i = r ? `image ${this.loading ? "" : "loaded"} ${this.failed ? "failed" : ""}` : `previous ${u ? "" : "gone"}`;
|
|
764
|
+
return e`<img class=${i}
|
|
765
|
+
part=${a(r ? "image" : void 0)} src=${n.src} alt=${r ? n.alt : ""} aria-hidden=${a(r ? void 0 : "true")}
|
|
766
|
+
decoding="async" draggable="false" @load=${this.onImageLoad} @error=${this.onImageError}>${r && n.src !== n.thumb ? e`<img
|
|
767
|
+
class="placeholder ${this.ratio ? "shaped" : ""}" src=${n.thumb} alt="" aria-hidden="true" decoding="async" draggable="false" @load=${this.onThumbLoad}>` : t}`;
|
|
768
|
+
})}</div>
|
|
769
|
+
${this.loader.visible ? e`<span class="spinner"><bk-spinner size="lg"></bk-spinner></span>` : t}
|
|
700
770
|
${this.failed ? e`<p class="error" role="alert"><bk-icon name="error" size="md"></bk-icon>${this.errorLabel || this.i18n.t("imageError")}</p>` : t}
|
|
701
771
|
</div>
|
|
702
772
|
<span class="pan" part="pan" role="group" aria-label=${this.panLabel || this.i18n.t("panGroup")} ?hidden=${!this.zoomed}>
|
|
@@ -705,13 +775,13 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
705
775
|
<bk-button variant="ghost" class="control" size="sm" icon="chevron-down" label=${this.i18n.t("panDown")} @click=${() => this.panBy(0, -this.panStep)}></bk-button>
|
|
706
776
|
<bk-button variant="ghost" class="control" size="sm" icon="chevron-right" label=${this.i18n.t("panRight")} @click=${() => this.panBy(-this.panStep, 0)}></bk-button>
|
|
707
777
|
</span>
|
|
708
|
-
${o ? e`
|
|
709
|
-
<bk-button variant="ghost" class="control nav prev" part="nav" size="lg" icon="chevron-left" label=${this.prevLabel || this.i18n.t("previousImage")} ?disabled=${
|
|
710
|
-
<bk-button variant="ghost" class="control nav next" part="nav" size="lg" icon="chevron-right" label=${this.nextLabel || this.i18n.t("nextImage")} ?disabled=${
|
|
778
|
+
${o || this.pageable ? e`
|
|
779
|
+
<bk-button variant="ghost" class="control nav prev" part="nav" size="lg" icon="chevron-left" label=${this.prevLabel || this.i18n.t("previousImage")} ?disabled=${!this.canStep(-1)} @click=${() => this.step(-1)}></bk-button>
|
|
780
|
+
<bk-button variant="ghost" class="control nav next" part="nav" size="lg" icon="chevron-right" label=${this.nextLabel || this.i18n.t("nextImage")} ?disabled=${!this.canStep(1)} @click=${() => this.step(1)}></bk-button>` : t}
|
|
711
781
|
</div>
|
|
712
|
-
<div class="foot" ?hidden=${!n.caption && !
|
|
782
|
+
<div class="foot" ?hidden=${!n.caption && !s}>
|
|
713
783
|
${n.caption ? e`<p class="caption" part="caption">${n.caption}</p>` : t}
|
|
714
|
-
${
|
|
784
|
+
${s ? e`<div class="filmstrip" part="filmstrip">
|
|
715
785
|
${this.items.map((t, n) => e`<button type="button" class="thumb" part="thumb" aria-label=${t.alt || this.i18n.t("imageCounter", {
|
|
716
786
|
index: n + 1,
|
|
717
787
|
total: r
|
|
@@ -724,5 +794,5 @@ var g = 8, _ = 16, v = 3, y = 1.5, b = 2.5, x = 48, S = 8, C = 300, w = [2, 4],
|
|
|
724
794
|
</div>`;
|
|
725
795
|
}
|
|
726
796
|
};
|
|
727
|
-
s("bk-image-viewer",
|
|
728
|
-
export {
|
|
797
|
+
s("bk-image-viewer", k);
|
|
798
|
+
export { k as BkImageViewer };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as e, n as t, u as n } from "./chunks/lit-D8x-qXgH.js";
|
|
2
2
|
import { o as r, r as i, t as a } from "./chunks/i18n-DFfGgd3d.js";
|
|
3
|
-
import { t as o } from "./chunks/define-
|
|
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-
|
|
6
|
+
import { t as u } from "./chunks/form-control-Bmk0SRDX.js";
|
|
7
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 {
|
|
@@ -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
7
|
import { b as u, y as d } from "./chunks/styles-CaeyhYDA.js";
|
|
8
|
-
import { t as f } from "./chunks/text-field-
|
|
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 {
|
|
@@ -2,16 +2,16 @@ 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
4
|
import { t as a } from "./chunks/i18n-DFfGgd3d.js";
|
|
5
|
-
import { t as o } from "./chunks/define-
|
|
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
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,10 +1,10 @@
|
|
|
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/i18n-DFfGgd3d.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
6
|
import { n as o, t as s } from "./chunks/field-DkBkSgJI.js";
|
|
7
|
-
import { t as c } from "./chunks/form-control-
|
|
7
|
+
import { t as c } from "./chunks/form-control-Bmk0SRDX.js";
|
|
8
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 {
|
|
@@ -1,6 +1,6 @@
|
|
|
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 {
|
|
3
|
+
import { r as a, t as o } from "./chunks/define-6OfuRn5c.js";
|
|
4
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
6
|
import { t as u, x as d } from "./chunks/styles-CaeyhYDA.js";
|
|
@@ -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
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
9
|
import { r as d } from "./chunks/submit-BjBGB8OW.js";
|
|
10
10
|
import "./chunks/add-CUFUzxGc.js";
|
|
11
11
|
import "./chunks/remove-3A4Fpn3J.js";
|