@getflip/swirl-components-react 0.0.0-beta-20260114160010
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/README.md +4 -0
- package/dist/FileSaver.min-DISpcNDq.9430eab9.js +79 -0
- package/dist/a11y-dialog.esm-DyxMdBpZ.05195d89.js +99 -0
- package/dist/bodyScrollLock.esm-B0kNlhKL.c7a66a82.js +93 -0
- package/dist/file-manager.entry.9324d1f2.js +57 -0
- package/dist/floating-ui.dom.browser.min-BtsCuEVE.45e9e353.js +407 -0
- package/dist/focus-trap.esm-DIdMBZfn.c41dd5d8.js +568 -0
- package/dist/index-D3UoejeY.7db8c51e.js +7494 -0
- package/dist/index-orsBiyT_.fc4357c3.js +47 -0
- package/dist/index.a571673c.js +4538 -0
- package/dist/index.d.ts +1 -0
- package/dist/media-query.service-BZg4zbFx.7454a4f3.js +17 -0
- package/dist/sortable.esm-CMrz6687.dac971cd.js +1240 -0
- package/dist/stencil-generated/index.d.ts +474 -0
- package/dist/stencil-generated/react-component-lib/createComponent.d.ts +10 -0
- package/dist/stencil-generated/react-component-lib/createOverlayComponent.d.ts +21 -0
- package/dist/stencil-generated/react-component-lib/index.d.ts +2 -0
- package/dist/stencil-generated/react-component-lib/interfaces.d.ts +29 -0
- package/dist/stencil-generated/react-component-lib/utils/attachProps.d.ts +16 -0
- package/dist/stencil-generated/react-component-lib/utils/case.d.ts +2 -0
- package/dist/stencil-generated/react-component-lib/utils/index.d.ts +10 -0
- package/dist/swirl-accordion-item.entry.31fbf5c5.js +38 -0
- package/dist/swirl-accordion.entry.cfd20983.js +36 -0
- package/dist/swirl-action-list-section.entry.b7c81227.js +15 -0
- package/dist/swirl-action-list_2.entry.223fbd83.js +94 -0
- package/dist/swirl-app-bar.entry.37b95506.js +49 -0
- package/dist/swirl-app-icon.entry.6f0989a4.js +30 -0
- package/dist/swirl-app-layout_5.entry.20f3bb24.js +482 -0
- package/dist/swirl-autocomplete.entry.9ebda2cc.js +115 -0
- package/dist/swirl-avatar-group.entry.74269f75.js +37 -0
- package/dist/swirl-avatar.entry.e7c15705.js +71 -0
- package/dist/swirl-badge.entry.58aa8dbc.js +19 -0
- package/dist/swirl-banner.entry.4fcc4c7d.js +51 -0
- package/dist/swirl-box.entry.1b222cd9.js +78 -0
- package/dist/swirl-button-group.entry.bcc8068f.js +19 -0
- package/dist/swirl-button.entry.95db14c8.js +66 -0
- package/dist/swirl-card.entry.04b2829f.js +55 -0
- package/dist/swirl-carousel-slide.entry.af4c744d.js +23 -0
- package/dist/swirl-carousel.entry.be08f959.js +99 -0
- package/dist/swirl-checkbox.entry.1b75bf7c.js +30 -0
- package/dist/swirl-chip.entry.e44a0ab3.js +42 -0
- package/dist/swirl-color-input.entry.20a36e97.js +270 -0
- package/dist/swirl-columns.entry.48d14ddb.js +18 -0
- package/dist/swirl-components-react.js +478 -0
- package/dist/swirl-components-react.umd.cjs +707 -0
- package/dist/swirl-console-layout.entry.b09d278c.js +99 -0
- package/dist/swirl-data-cell-stack.entry.34d1281b.js +27 -0
- package/dist/swirl-data-cell.entry.5626b905.js +25 -0
- package/dist/swirl-date-input.entry.8157a0d6.js +142 -0
- package/dist/swirl-date-picker_2.entry.d7f6d860.js +47 -0
- package/dist/swirl-description-list-item.entry.791e4702.js +24 -0
- package/dist/swirl-description-list.entry.bfbeb9f7.js +15 -0
- package/dist/swirl-dialog.entry.a7ced35a.js +47 -0
- package/dist/swirl-emoji-clap.entry.bf934cb3.js +17 -0
- package/dist/swirl-emoji-happy.entry.c0906888.js +17 -0
- package/dist/swirl-emoji-idea.entry.d7e3e745.js +17 -0
- package/dist/swirl-emoji-love.entry.6e1bac94.js +17 -0
- package/dist/swirl-emoji-sad.entry.d643653a.js +17 -0
- package/dist/swirl-emoji-thumbs-up.entry.9ab2cf9d.js +17 -0
- package/dist/swirl-emoji.entry.583c2f57.js +16 -0
- package/dist/swirl-file-chip.entry.b4cef1ea.js +57 -0
- package/dist/swirl-file-uploader.entry.d5817238.js +31 -0
- package/dist/swirl-file-viewer_8.entry.8b2b3825.js +18733 -0
- package/dist/swirl-form-control.entry.629ecdc9.js +102 -0
- package/dist/swirl-form-group.entry.cf1e2b90.js +17 -0
- package/dist/swirl-heading.entry.de4bcccf.js +26 -0
- package/dist/swirl-icon-add-moderator.entry.5d132121.js +19 -0
- package/dist/swirl-icon-add-photo.entry.f347873b.js +19 -0
- package/dist/swirl-icon-add-reaction.entry.45b74b14.js +19 -0
- package/dist/swirl-icon-add_6.entry.0d135c71.js +84 -0
- package/dist/swirl-icon-admin-panel-settings.entry.53a4acd1.js +19 -0
- package/dist/swirl-icon-ai-filled.entry.94219699.js +19 -0
- package/dist/swirl-icon-ai.entry.aec5f959.js +19 -0
- package/dist/swirl-icon-apps.entry.98af7691.js +19 -0
- package/dist/swirl-icon-arrow-back_5.entry.470cc5c3.js +71 -0
- package/dist/swirl-icon-arrow-downward_2.entry.0481ca15.js +32 -0
- package/dist/swirl-icon-arrow-left_4.entry.7f95b0bf.js +59 -0
- package/dist/swirl-icon-arrow-right-small.entry.f56a9208.js +19 -0
- package/dist/swirl-icon-aspect-ratio.entry.7242c53a.js +19 -0
- package/dist/swirl-icon-attachment_6.entry.db8e96d0.js +84 -0
- package/dist/swirl-icon-autorenew.entry.f93bdac5.js +19 -0
- package/dist/swirl-icon-bar-chart.entry.ce837874.js +19 -0
- package/dist/swirl-icon-beach-access-filled.entry.4487e775.js +19 -0
- package/dist/swirl-icon-beach-access.entry.a7817d07.js +19 -0
- package/dist/swirl-icon-block.entry.1e248eb7.js +19 -0
- package/dist/swirl-icon-bookmark-filled.entry.760cc04c.js +19 -0
- package/dist/swirl-icon-bookmark.entry.4e3cec92.js +19 -0
- package/dist/swirl-icon-calendar-add-on-filled.entry.15e61a59.js +19 -0
- package/dist/swirl-icon-calendar-respond.entry.385706f6.js +19 -0
- package/dist/swirl-icon-calendar-today.entry.580617b5.js +19 -0
- package/dist/swirl-icon-call-end.entry.ba24d100.js +19 -0
- package/dist/swirl-icon-call.entry.30cb76cb.js +19 -0
- package/dist/swirl-icon-cancel-filled.entry.c0669dc0.js +19 -0
- package/dist/swirl-icon-cancel-outline.entry.9b6cd6af.js +19 -0
- package/dist/swirl-icon-cancel_4.entry.0f12fe5d.js +58 -0
- package/dist/swirl-icon-chat-bubble.entry.9d30b9e7.js +19 -0
- package/dist/swirl-icon-chats-filled.entry.923ab51c.js +19 -0
- package/dist/swirl-icon-chats.entry.9732dfbf.js +19 -0
- package/dist/swirl-icon-check-circle-filled.entry.2b6ef8f9.js +19 -0
- package/dist/swirl-icon-check-circle_2.entry.321ddcb8.js +32 -0
- package/dist/swirl-icon-check-small_3.entry.265cd869.js +45 -0
- package/dist/swirl-icon-check.entry.26756ff1.js +19 -0
- package/dist/swirl-icon-checkbox-filled.entry.c03b691f.js +19 -0
- package/dist/swirl-icon-chevron-left.entry.b4e39cb3.js +19 -0
- package/dist/swirl-icon-chevron-right.entry.62384158.js +19 -0
- package/dist/swirl-icon-close-fullscreen.entry.b6bdec6d.js +19 -0
- package/dist/swirl-icon-close-small.entry.e4328d58.js +19 -0
- package/dist/swirl-icon-close.entry.f4a5ab8a.js +19 -0
- package/dist/swirl-icon-cloud-upload.entry.8ac8a3ec.js +19 -0
- package/dist/swirl-icon-column.entry.7206b282.js +19 -0
- package/dist/swirl-icon-comment.entry.06794b41.js +19 -0
- package/dist/swirl-icon-contrast.entry.7d685a11.js +19 -0
- package/dist/swirl-icon-copy.entry.09fa5029.js +19 -0
- package/dist/swirl-icon-crop.entry.2f79f6b9.js +19 -0
- package/dist/swirl-icon-dark-mode.entry.837b3751.js +19 -0
- package/dist/swirl-icon-date-range.entry.d7069a91.js +19 -0
- package/dist/swirl-icon-delete.entry.65e85f8b.js +19 -0
- package/dist/swirl-icon-deployed-code.entry.8bd3655e.js +19 -0
- package/dist/swirl-icon-description.entry.f6a3484a.js +19 -0
- package/dist/swirl-icon-desktop.entry.746ad477.js +19 -0
- package/dist/swirl-icon-directory-filled.entry.73501145.js +19 -0
- package/dist/swirl-icon-directory.entry.3f400073.js +19 -0
- package/dist/swirl-icon-discover.entry.7caa9191.js +19 -0
- package/dist/swirl-icon-dock-left.entry.8d1206ba.js +19 -0
- package/dist/swirl-icon-door-open.entry.110188f8.js +19 -0
- package/dist/swirl-icon-dot.entry.36b2b4c1.js +19 -0
- package/dist/swirl-icon-double-arrow-right.entry.7f3d1d6a.js +19 -0
- package/dist/swirl-icon-download.entry.0905afd1.js +19 -0
- package/dist/swirl-icon-edit-note.entry.cbc8e96f.js +19 -0
- package/dist/swirl-icon-edit.entry.d1971f53.js +19 -0
- package/dist/swirl-icon-emoji-mood.entry.cb732a8e.js +19 -0
- package/dist/swirl-icon-emoji-satisfied.entry.6ab31ac0.js +19 -0
- package/dist/swirl-icon-emoji-symbols.entry.aa7f65ae.js +19 -0
- package/dist/swirl-icon-error_3.entry.a68cc1ce.js +59 -0
- package/dist/swirl-icon-expand-more.entry.abd7b9f9.js +19 -0
- package/dist/swirl-icon-experiment.entry.3796deb4.js +19 -0
- package/dist/swirl-icon-file.entry.a3b46a14.js +19 -0
- package/dist/swirl-icon-filter.entry.680660c0.js +19 -0
- package/dist/swirl-icon-format-h-one.entry.144610d2.js +19 -0
- package/dist/swirl-icon-format-list-bulleted.entry.931716c0.js +19 -0
- package/dist/swirl-icon-forward.entry.e22fcd0a.js +19 -0
- package/dist/swirl-icon-gif.entry.3bf5c061.js +19 -0
- package/dist/swirl-icon-group-add.entry.8955b53b.js +19 -0
- package/dist/swirl-icon-group-assign.entry.3babab99.js +19 -0
- package/dist/swirl-icon-groups-filled.entry.835ea7dc.js +19 -0
- package/dist/swirl-icon-groups.entry.7bcbc5f8.js +19 -0
- package/dist/swirl-icon-hamburger-menu.entry.f1393962.js +19 -0
- package/dist/swirl-icon-health-and-safety.entry.9ee990bf.js +19 -0
- package/dist/swirl-icon-help-filled.entry.6710be90.js +19 -0
- package/dist/swirl-icon-help.entry.1d7b617a.js +19 -0
- package/dist/swirl-icon-highlight.entry.552d6123.js +19 -0
- package/dist/swirl-icon-history.entry.0c15188f.js +19 -0
- package/dist/swirl-icon-home-filled.entry.628bd980.js +19 -0
- package/dist/swirl-icon-home.entry.810b36dc.js +19 -0
- package/dist/swirl-icon-hr-resting.entry.00f0b993.js +19 -0
- package/dist/swirl-icon-improve-text.entry.1446114d.js +19 -0
- package/dist/swirl-icon-info.entry.73d6a040.js +19 -0
- package/dist/swirl-icon-insert-below.entry.2b152638.js +19 -0
- package/dist/swirl-icon-insert-chart.entry.c633da44.js +19 -0
- package/dist/swirl-icon-insert-on-top.entry.215d4894.js +19 -0
- package/dist/swirl-icon-inventory-off.entry.ef9ceabd.js +19 -0
- package/dist/swirl-icon-inventory.entry.ce6112ff.js +19 -0
- package/dist/swirl-icon-iphone.entry.0ef61fb2.js +19 -0
- package/dist/swirl-icon-key.entry.ff87d058.js +19 -0
- package/dist/swirl-icon-keyboard-hide.entry.066f8268.js +19 -0
- package/dist/swirl-icon-keyboard.entry.249bdec8.js +19 -0
- package/dist/swirl-icon-language.entry.1045270f.js +19 -0
- package/dist/swirl-icon-light-mode.entry.f8d3a255.js +19 -0
- package/dist/swirl-icon-like.entry.353ed1f7.js +19 -0
- package/dist/swirl-icon-link.entry.df6e1fbc.js +19 -0
- package/dist/swirl-icon-live.entry.e892f81c.js +19 -0
- package/dist/swirl-icon-load.entry.16cf0e40.js +19 -0
- package/dist/swirl-icon-location-on.entry.914beede.js +19 -0
- package/dist/swirl-icon-lock-open.entry.8874358a.js +19 -0
- package/dist/swirl-icon-lock-person.entry.3bb90e74.js +19 -0
- package/dist/swirl-icon-lock.entry.1efadbea.js +19 -0
- package/dist/swirl-icon-login.entry.175a09c2.js +19 -0
- package/dist/swirl-icon-logout.entry.90be77c5.js +19 -0
- package/dist/swirl-icon-long-text.entry.4ea376da.js +19 -0
- package/dist/swirl-icon-mail.entry.ac087e15.js +19 -0
- package/dist/swirl-icon-manage-accounts.entry.4d5823c9.js +19 -0
- package/dist/swirl-icon-mark-chat-read.entry.33a626d9.js +19 -0
- package/dist/swirl-icon-mark-chat-unread.entry.34b80392.js +19 -0
- package/dist/swirl-icon-mention.entry.22d9b84f.js +19 -0
- package/dist/swirl-icon-menu-book-filled.entry.ee2e70e2.js +19 -0
- package/dist/swirl-icon-menu-filled.entry.fadcb691.js +19 -0
- package/dist/swirl-icon-menu.entry.140041f4.js +19 -0
- package/dist/swirl-icon-message.entry.ff7ef7e9.js +19 -0
- package/dist/swirl-icon-mic-off.entry.92b32a4e.js +19 -0
- package/dist/swirl-icon-mic.entry.f4bf233c.js +19 -0
- package/dist/swirl-icon-more-horizontal.entry.4dd60270.js +19 -0
- package/dist/swirl-icon-news-filled.entry.c53f19ba.js +19 -0
- package/dist/swirl-icon-news-off.entry.044fba74.js +19 -0
- package/dist/swirl-icon-news.entry.5aed544b.js +19 -0
- package/dist/swirl-icon-next-plan.entry.09aa5a1c.js +19 -0
- package/dist/swirl-icon-note-stack-filled.entry.e87d4207.js +19 -0
- package/dist/swirl-icon-note-stack.entry.e395bf3b.js +19 -0
- package/dist/swirl-icon-notifications-active.entry.f8125d36.js +19 -0
- package/dist/swirl-icon-notifications-off.entry.261c6453.js +19 -0
- package/dist/swirl-icon-notifications.entry.576f6b90.js +19 -0
- package/dist/swirl-icon-open-in-full.entry.7dba26df.js +19 -0
- package/dist/swirl-icon-open-in-new.entry.496dd714.js +19 -0
- package/dist/swirl-icon-patient-list.entry.90dd4279.js +19 -0
- package/dist/swirl-icon-pause-circle.entry.ee714f97.js +19 -0
- package/dist/swirl-icon-pause.entry.5c69d425.js +19 -0
- package/dist/swirl-icon-people-alt.entry.a3ac5b7e.js +19 -0
- package/dist/swirl-icon-person-check.entry.f6928b7a.js +19 -0
- package/dist/swirl-icon-person-off.entry.aeea6661.js +19 -0
- package/dist/swirl-icon-person.entry.7acec6a3.js +19 -0
- package/dist/swirl-icon-phone.entry.9e647bcb.js +19 -0
- package/dist/swirl-icon-photo-camera.entry.0d2eac7f.js +19 -0
- package/dist/swirl-icon-picture-in-picture.entry.a2319d7d.js +19 -0
- package/dist/swirl-icon-pin-off.entry.4e9eb23d.js +19 -0
- package/dist/swirl-icon-pin.entry.573cd18b.js +19 -0
- package/dist/swirl-icon-place.entry.d8100d2d.js +19 -0
- package/dist/swirl-icon-play-arrow.entry.e3797e9c.js +19 -0
- package/dist/swirl-icon-poll.entry.83f7e410.js +19 -0
- package/dist/swirl-icon-post-approval.entry.6eafcd9b.js +19 -0
- package/dist/swirl-icon-present.entry.21f73969.js +19 -0
- package/dist/swirl-icon-preview.entry.99895edc.js +19 -0
- package/dist/swirl-icon-print.entry.7ffe5753.js +19 -0
- package/dist/swirl-icon-public-off.entry.8475e9e2.js +19 -0
- package/dist/swirl-icon-public.entry.0dfbc126.js +19 -0
- package/dist/swirl-icon-published-with-changes.entry.d4ea6c16.js +19 -0
- package/dist/swirl-icon-ratio-four-to-three.entry.ef80cf13.js +19 -0
- package/dist/swirl-icon-ratio-freeform.entry.a577e929.js +19 -0
- package/dist/swirl-icon-ratio-sixteen-to-nine.entry.d6adb40c.js +19 -0
- package/dist/swirl-icon-ratio-square.entry.eee3cdb1.js +19 -0
- package/dist/swirl-icon-ratio-three-to-four.entry.4dca6581.js +19 -0
- package/dist/swirl-icon-ratio-three-to-two.entry.f63c60b2.js +19 -0
- package/dist/swirl-icon-recieved.entry.c8f4b02e.js +19 -0
- package/dist/swirl-icon-refresh.entry.1b47a8ff.js +19 -0
- package/dist/swirl-icon-remove-circle.entry.6b7aeeb4.js +19 -0
- package/dist/swirl-icon-remove-moderator.entry.ebbd7ff8.js +19 -0
- package/dist/swirl-icon-reply.entry.58f69283.js +19 -0
- package/dist/swirl-icon-report.entry.03edc588.js +19 -0
- package/dist/swirl-icon-roadmap.entry.b42676ac.js +19 -0
- package/dist/swirl-icon-rotate-left.entry.dc8b47bc.js +19 -0
- package/dist/swirl-icon-rotate-right.entry.03a95967.js +19 -0
- package/dist/swirl-icon-screenshare-off.entry.fa2ec867.js +19 -0
- package/dist/swirl-icon-screenshare.entry.1e89cb9e.js +19 -0
- package/dist/swirl-icon-search-strong.entry.ba6ee0ff.js +19 -0
- package/dist/swirl-icon-search.entry.3325d362.js +19 -0
- package/dist/swirl-icon-section.entry.61f6a798.js +19 -0
- package/dist/swirl-icon-secure.entry.061942fb.js +19 -0
- package/dist/swirl-icon-send.entry.3d07096d.js +19 -0
- package/dist/swirl-icon-settings.entry.856f9aba.js +19 -0
- package/dist/swirl-icon-short-text.entry.2c55d673.js +19 -0
- package/dist/swirl-icon-simplify.entry.c544ad0a.js +19 -0
- package/dist/swirl-icon-spellcheck.entry.8eb5a827.js +19 -0
- package/dist/swirl-icon-stars.entry.70798fc6.js +19 -0
- package/dist/swirl-icon-sticky-note.entry.3b6b0753.js +19 -0
- package/dist/swirl-icon-stop-circle.entry.c7f79119.js +19 -0
- package/dist/swirl-icon-stop.entry.03b7ff1c.js +19 -0
- package/dist/swirl-icon-sunny.entry.4764e8ed.js +19 -0
- package/dist/swirl-icon-sync.entry.0862f9cb.js +19 -0
- package/dist/swirl-icon-tasks-filled.entry.4c3f7848.js +19 -0
- package/dist/swirl-icon-tasks.entry.1195149d.js +19 -0
- package/dist/swirl-icon-terminal.entry.f60e9430.js +19 -0
- package/dist/swirl-icon-time-filled.entry.4149ca87.js +19 -0
- package/dist/swirl-icon-time.entry.43039614.js +19 -0
- package/dist/swirl-icon-today-filled.entry.0bb06e31.js +19 -0
- package/dist/swirl-icon-translate.entry.5dce14b1.js +19 -0
- package/dist/swirl-icon-tree-structure.entry.a871a32f.js +19 -0
- package/dist/swirl-icon-undo.entry.77393e5f.js +19 -0
- package/dist/swirl-icon-unlock-person.entry.d8099b34.js +19 -0
- package/dist/swirl-icon-upload.entry.3c3d69e1.js +19 -0
- package/dist/swirl-icon-user-add.entry.85817a39.js +19 -0
- package/dist/swirl-icon-user-assign.entry.80bdec60.js +19 -0
- package/dist/swirl-icon-video-camera-off.entry.428856ea.js +19 -0
- package/dist/swirl-icon-video-camera.entry.74ab1a01.js +19 -0
- package/dist/swirl-icon-video-library.entry.5769a1d2.js +19 -0
- package/dist/swirl-icon-view-agenda.entry.beb59374.js +19 -0
- package/dist/swirl-icon-voice.entry.dedd8d18.js +19 -0
- package/dist/swirl-icon-volume-up.entry.ae055de7.js +19 -0
- package/dist/swirl-icon-web-asset-off.entry.43fc4e7b.js +19 -0
- package/dist/swirl-icon-web-asset.entry.06166dbc.js +19 -0
- package/dist/swirl-icon-work.entry.31304b32.js +19 -0
- package/dist/swirl-icon.entry.274c5e1a.js +16 -0
- package/dist/swirl-image-grid-item.entry.8ff213c9.js +90 -0
- package/dist/swirl-image-grid.entry.79fca64d.js +53 -0
- package/dist/swirl-inline-notification.entry.05f8fe19.js +17 -0
- package/dist/swirl-inline-status.entry.d88da209.js +37 -0
- package/dist/swirl-lightbox.entry.348d64eb.js +179 -0
- package/dist/swirl-link.entry.d04d4ffa.js +17 -0
- package/dist/swirl-list.entry.52e5900e.js +18 -0
- package/dist/swirl-menu-item.entry.badc4108.js +84 -0
- package/dist/swirl-menu.entry.d50bea1b.js +179 -0
- package/dist/swirl-modal-shell.entry.5f7081c0.js +51 -0
- package/dist/swirl-modal.entry.6a68d800.js +368 -0
- package/dist/swirl-option-list-section.entry.d378b076.js +15 -0
- package/dist/swirl-option-list_2.entry.d4aa249d.js +290 -0
- package/dist/swirl-pagination.entry.a160db64.js +38 -0
- package/dist/swirl-pdf-reader.entry.423f5880.js +111 -0
- package/dist/swirl-popover_2.entry.558bbb91.js +261 -0
- package/dist/swirl-progress-indicator.entry.0c057aaa.js +17 -0
- package/dist/swirl-radio-group.entry.d76ac6d8.js +35 -0
- package/dist/swirl-radio.entry.9a7b9f6f.js +29 -0
- package/dist/swirl-resource-list-file-item.entry.d37e845c.js +39 -0
- package/dist/swirl-resource-list-section.entry.8c95a93c.js +19 -0
- package/dist/swirl-search.entry.061cae00.js +51 -0
- package/dist/swirl-select.entry.0075c6f1.js +92 -0
- package/dist/swirl-separator.entry.baf7955e.js +29 -0
- package/dist/swirl-shell-layout.entry.d3a131c5.js +117 -0
- package/dist/swirl-shell-navigation-item.entry.52958a3e.js +409 -0
- package/dist/swirl-skeleton-box.entry.e238ed83.js +31 -0
- package/dist/swirl-skeleton-text.entry.83ad90d0.js +38 -0
- package/dist/swirl-stack.entry.d9ca97c3.js +21 -0
- package/dist/swirl-status-indicator.entry.081dd7f8.js +17 -0
- package/dist/swirl-switch.entry.acde5be2.js +31 -0
- package/dist/swirl-symbol-ac-unit.entry.aa240106.js +17 -0
- package/dist/swirl-symbol-account-circle.entry.06a36fe5.js +17 -0
- package/dist/swirl-symbol-alternate-email.entry.e2129c31.js +17 -0
- package/dist/swirl-symbol-android.entry.201a4125.js +17 -0
- package/dist/swirl-symbol-announcement.entry.a94db356.js +17 -0
- package/dist/swirl-symbol-autorenew.entry.b72a66a4.js +17 -0
- package/dist/swirl-symbol-backup.entry.98b5954d.js +17 -0
- package/dist/swirl-symbol-badge.entry.2f308a88.js +17 -0
- package/dist/swirl-symbol-barcode-reader.entry.0cdf79a2.js +17 -0
- package/dist/swirl-symbol-barcode-scanner.entry.d1e2f921.js +17 -0
- package/dist/swirl-symbol-battery-horiz.entry.057428e3.js +17 -0
- package/dist/swirl-symbol-beach-access.entry.bf383d07.js +17 -0
- package/dist/swirl-symbol-bolt.entry.0842d31e.js +17 -0
- package/dist/swirl-symbol-bookmark.entry.1e9efe7c.js +17 -0
- package/dist/swirl-symbol-calendar.entry.a5c5358a.js +17 -0
- package/dist/swirl-symbol-campaign.entry.01f8f033.js +17 -0
- package/dist/swirl-symbol-cards-star.entry.315fe6be.js +17 -0
- package/dist/swirl-symbol-cloud.entry.827135e1.js +17 -0
- package/dist/swirl-symbol-construction.entry.14840079.js +17 -0
- package/dist/swirl-symbol-contacts.entry.6d8a49b8.js +17 -0
- package/dist/swirl-symbol-coronavirus.entry.739efc77.js +17 -0
- package/dist/swirl-symbol-design-services.entry.c865fbd1.js +17 -0
- package/dist/swirl-symbol-desktop-windows.entry.8fb44c31.js +17 -0
- package/dist/swirl-symbol-directions-car-filled.entry.4de9317f.js +17 -0
- package/dist/swirl-symbol-diversity.entry.239adaee.js +17 -0
- package/dist/swirl-symbol-draw.entry.bde78762.js +17 -0
- package/dist/swirl-symbol-edit-calendar.entry.e14027d3.js +17 -0
- package/dist/swirl-symbol-email.entry.9f3230fd.js +17 -0
- package/dist/swirl-symbol-emergency.entry.3f41fed5.js +17 -0
- package/dist/swirl-symbol-emoji-food-beverage.entry.252da904.js +17 -0
- package/dist/swirl-symbol-engineering.entry.f36c9a37.js +17 -0
- package/dist/swirl-symbol-event-menu.entry.5582f902.js +17 -0
- package/dist/swirl-symbol-explore.entry.1618017e.js +17 -0
- package/dist/swirl-symbol-extension.entry.53cf475a.js +17 -0
- package/dist/swirl-symbol-facebook.entry.8acb7f2d.js +17 -0
- package/dist/swirl-symbol-favorite.entry.3a98846f.js +17 -0
- package/dist/swirl-symbol-fitness-center.entry.befeaa82.js +17 -0
- package/dist/swirl-symbol-flag.entry.cab3bdf3.js +17 -0
- package/dist/swirl-symbol-flight.entry.6a0a6b76.js +17 -0
- package/dist/swirl-symbol-folder.entry.c760184a.js +17 -0
- package/dist/swirl-symbol-globe.entry.aedb2d66.js +17 -0
- package/dist/swirl-symbol-groups.entry.bc6edbec.js +17 -0
- package/dist/swirl-symbol-healing.entry.59b79e8c.js +17 -0
- package/dist/swirl-symbol-health-and-safety.entry.d9f91491.js +17 -0
- package/dist/swirl-symbol-help.entry.4ab2e6d2.js +17 -0
- package/dist/swirl-symbol-home-repair-service.entry.897c1abb.js +17 -0
- package/dist/swirl-symbol-home-storage.entry.ba3a8d7b.js +17 -0
- package/dist/swirl-symbol-id-card.entry.c50576f5.js +17 -0
- package/dist/swirl-symbol-image.entry.3f4b22cd.js +17 -0
- package/dist/swirl-symbol-info-menu.entry.7e13220a.js +17 -0
- package/dist/swirl-symbol-instagram.entry.e4919079.js +17 -0
- package/dist/swirl-symbol-inventory-2.entry.1db5045b.js +17 -0
- package/dist/swirl-symbol-inventory.entry.fc2614aa.js +17 -0
- package/dist/swirl-symbol-ios.entry.879a05fa.js +17 -0
- package/dist/swirl-symbol-key.entry.ad7551f0.js +17 -0
- package/dist/swirl-symbol-language.entry.06c49248.js +17 -0
- package/dist/swirl-symbol-leaderboard.entry.362e5c51.js +17 -0
- package/dist/swirl-symbol-lightbulb.entry.dfea74d1.js +17 -0
- package/dist/swirl-symbol-linkedin.entry.fa0c9612.js +17 -0
- package/dist/swirl-symbol-local-shipping.entry.22dc603e.js +17 -0
- package/dist/swirl-symbol-location-on.entry.bb0e12b8.js +17 -0
- package/dist/swirl-symbol-loyalty.entry.94833379.js +17 -0
- package/dist/swirl-symbol-map.entry.2cddee2e.js +17 -0
- package/dist/swirl-symbol-maps-home-work.entry.e79d025f.js +17 -0
- package/dist/swirl-symbol-menu-book.entry.2ecafa8a.js +17 -0
- package/dist/swirl-symbol-mop.entry.2cc0d0c5.js +17 -0
- package/dist/swirl-symbol-nest-eco-leaf.entry.288d13f5.js +17 -0
- package/dist/swirl-symbol-notifications.entry.e323e8b2.js +17 -0
- package/dist/swirl-symbol-open-in-new.entry.9c854372.js +17 -0
- package/dist/swirl-symbol-orders.entry.9075fd8c.js +17 -0
- package/dist/swirl-symbol-package.entry.260e1ae7.js +17 -0
- package/dist/swirl-symbol-palette.entry.e764bcf2.js +17 -0
- package/dist/swirl-symbol-partly-cloudy-day.entry.ac98103f.js +17 -0
- package/dist/swirl-symbol-pedal-bike.entry.93f40ced.js +17 -0
- package/dist/swirl-symbol-percent-discount.entry.40ab2efd.js +17 -0
- package/dist/swirl-symbol-pets.entry.1f416f74.js +17 -0
- package/dist/swirl-symbol-pinterest.entry.fd044141.js +17 -0
- package/dist/swirl-symbol-point-of-sale.entry.9b91edb7.js +17 -0
- package/dist/swirl-symbol-policy.entry.6dd67ced.js +17 -0
- package/dist/swirl-symbol-precision-manufacturing.entry.80f9476e.js +17 -0
- package/dist/swirl-symbol-print.entry.745580ea.js +17 -0
- package/dist/swirl-symbol-push-pin.entry.bc021c6f.js +17 -0
- package/dist/swirl-symbol-recycling.entry.6f6d272e.js +17 -0
- package/dist/swirl-symbol-redeem.entry.ab06c285.js +17 -0
- package/dist/swirl-symbol-report-problem.entry.3675250f.js +17 -0
- package/dist/swirl-symbol-restaurant.entry.b824fa8d.js +17 -0
- package/dist/swirl-symbol-roadmap.entry.b79855ba.js +17 -0
- package/dist/swirl-symbol-rocket-launch.entry.b45f1d7e.js +17 -0
- package/dist/swirl-symbol-room.entry.9ab68f8c.js +17 -0
- package/dist/swirl-symbol-savings.entry.a19214fa.js +17 -0
- package/dist/swirl-symbol-school.entry.8e0f8f07.js +17 -0
- package/dist/swirl-symbol-sell.entry.350f4b8b.js +17 -0
- package/dist/swirl-symbol-settings-voice.entry.164b581a.js +17 -0
- package/dist/swirl-symbol-shopping-bag.entry.59659a50.js +17 -0
- package/dist/swirl-symbol-shopping-cart.entry.b8ebf585.js +17 -0
- package/dist/swirl-symbol-smartphone.entry.6fea3fcd.js +17 -0
- package/dist/swirl-symbol-spa.entry.1e9c5fd9.js +17 -0
- package/dist/swirl-symbol-sports-soccer.entry.c2de63d8.js +17 -0
- package/dist/swirl-symbol-star.entry.61a898bd.js +17 -0
- package/dist/swirl-symbol-supervisor-account.entry.56e20c53.js +17 -0
- package/dist/swirl-symbol-task.entry.089f6717.js +17 -0
- package/dist/swirl-symbol-tasks.entry.8c924a80.js +17 -0
- package/dist/swirl-symbol-thumbs-up-down.entry.9ab7bd6d.js +17 -0
- package/dist/swirl-symbol-timer.entry.fe7e0b61.js +17 -0
- package/dist/swirl-symbol-tools-power-drill.entry.c63a6eb5.js +17 -0
- package/dist/swirl-symbol-train.entry.36222f5c.js +17 -0
- package/dist/swirl-symbol-trophy.entry.02bb0222.js +17 -0
- package/dist/swirl-symbol-twitter.entry.2cb4541b.js +17 -0
- package/dist/swirl-symbol-video.entry.cebc615e.js +17 -0
- package/dist/swirl-symbol-warehouse.entry.7fc3ed70.js +17 -0
- package/dist/swirl-symbol-water-drop.entry.9322f16a.js +17 -0
- package/dist/swirl-symbol-wb-sunny.entry.c124ab0f.js +17 -0
- package/dist/swirl-symbol-wechat.entry.48296722.js +17 -0
- package/dist/swirl-symbol-weibo.entry.ada934f3.js +17 -0
- package/dist/swirl-symbol-wifi.entry.0b10e3db.js +17 -0
- package/dist/swirl-symbol-work.entry.f97b5495.js +17 -0
- package/dist/swirl-symbol-xing.entry.bd28357d.js +17 -0
- package/dist/swirl-symbol-youtube.entry.045c17c1.js +17 -0
- package/dist/swirl-symbol.entry.bd734ef6.js +16 -0
- package/dist/swirl-tab-bar.entry.c23ed52a.js +66 -0
- package/dist/swirl-tab.entry.a1c1d81d.js +17 -0
- package/dist/swirl-table-cell.entry.3a090768.js +15 -0
- package/dist/swirl-table-column.entry.22f305af.js +34 -0
- package/dist/swirl-table-row-group.entry.03db15eb.js +35 -0
- package/dist/swirl-table-row.entry.6a61773f.js +27 -0
- package/dist/swirl-table.entry.e235b6e6.js +337 -0
- package/dist/swirl-tabs.entry.73fbccf3.js +63 -0
- package/dist/swirl-tag.entry.676c088f.js +40 -0
- package/dist/swirl-text-input.entry.d1dde70c.js +91 -0
- package/dist/swirl-text.entry.76733e09.js +299 -0
- package/dist/swirl-theme-provider.entry.b3ada014.js +94 -0
- package/dist/swirl-time-input.entry.cf56cc64.js +136 -0
- package/dist/swirl-toast-provider.entry.338257fa.js +36 -0
- package/dist/swirl-toast.entry.05b92ac1.js +51 -0
- package/dist/swirl-toggle-button.entry.fca8a98c.js +21 -0
- package/dist/swirl-toggle-group.entry.40eb7ded.js +60 -0
- package/dist/swirl-toolbar.entry.61a6f0ae.js +56 -0
- package/dist/swirl-tooltip.entry.91b9760f.js +113 -0
- package/dist/swirl-tree-navigation-item.entry.83de59ac.js +71 -0
- package/dist/swirl-tree-navigation.entry.c2169a90.js +15 -0
- package/dist/swirl-tree-view-item.entry.f9792cf2.js +203 -0
- package/dist/swirl-tree-view.config-BkSXzL50.94f4a648.js +24 -0
- package/dist/swirl-tree-view.entry.9a915ba7.js +220 -0
- package/dist/swirl-video-thumbnail.entry.d06c364a.js +88 -0
- package/dist/swirl-visually-hidden.entry.2bbc675c.js +15 -0
- package/dist/utils-wi_3Z3FQ.29a3aebe.js +119 -0
- package/dist/v4-DD3477fe.2624487e.js +27 -0
- package/dist/vite-env.d.ts +1 -0
- package/dist/wc-datepicker.entry.cfc78e40.js +370 -0
- package/package.json +38 -0
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { r as b, c, h as i, H as u, g as f } from "./index.a571673c.js";
|
|
2
|
+
import { d as g, e as m } from "./bodyScrollLock.esm-B0kNlhKL.c7a66a82.js";
|
|
3
|
+
import { c as p } from "./index-orsBiyT_.fc4357c3.js";
|
|
4
|
+
import { c as x } from "./focus-trap.esm-DIdMBZfn.c41dd5d8.js";
|
|
5
|
+
import { q as v } from "./utils-wi_3Z3FQ.29a3aebe.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "react-dom";
|
|
8
|
+
const y = ':host{display:block}:host *{box-sizing:border-box}.lightbox{position:fixed;z-index:var(--s-z-40);background-color:rgba(0, 0, 0, 1);inset:0}.lightbox[aria-hidden="true"]{display:none}@media (min-width: 768px){.lightbox{background-color:rgba(0, 0, 0, 0.8)}}.lightbox:not(.lightbox--closing) .lightbox__body{animation:0.15s lightbox-fade-in}@media (prefers-reduced-motion){.lightbox:not(.lightbox--closing) .lightbox__body{animation:none}}.lightbox--closing{animation:0.15s lightbox-fade-out;animation-fill-mode:forwards}@media (prefers-reduced-motion){.lightbox--closing{animation:none}}.lightbox--hide-menu .lightbox__menu{display:none}.lightbox--hide-toolbar .lightbox__toolbar{display:none}.lightbox__body{position:relative;width:100%;height:100%}.lightbox__header{position:absolute;z-index:1;top:0;right:0;left:0;display:flex;padding:var(--s-space-12) var(--s-space-16);justify-content:space-between;align-items:flex-start;pointer-events:none}.lightbox__toolbar{pointer-events:auto}.lightbox__controls{position:absolute;z-index:1;top:50%;right:0;left:0;display:none;padding-right:var(--s-space-16);padding-left:var(--s-space-16);justify-content:space-between;align-items:flex-start;pointer-events:none}@media (min-width: 768px){.lightbox__controls{display:flex}}.lightbox__close-button,.lightbox__menu-button,.lightbox__previous-slide-button,.lightbox__next-slide-button{display:inline-flex;width:2.5rem;height:2.5rem;justify-content:center;align-items:center;border:none;border-radius:50%;color:var(--s-icon-on-image);background-color:rgba(0, 0, 0, 0.6);cursor:pointer;transition:opacity 0.15s;pointer-events:auto}.lightbox__close-button:disabled,.lightbox__menu-button:disabled,.lightbox__previous-slide-button:disabled,.lightbox__next-slide-button:disabled{pointer-events:none;opacity:0}.lightbox__content{overflow:hidden;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.lightbox__slides{display:flex;width:100%;height:100%}.lightbox__slides ::slotted(*){flex-basis:100%;flex-shrink:0;transition:transform 0.3s}@media (min-width: 768px){.lightbox__slides ::slotted(*){padding:4rem 5rem}}@media (prefers-reduced-motion){.lightbox__slides ::slotted(*){transition:none}}.lightbox__pagination{position:absolute;bottom:var(--s-space-32);left:50%;padding:var(--s-space-4) var(--s-space-12);border-radius:var(--s-border-radius-base);color:var(--s-text-on-image);background-color:rgba(0, 0, 0, 0.6);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);transform:translateX(-50%);pointer-events:none}@media (min-width: 768px){.lightbox__pagination{display:none}}.lightbox__meta{display:flex;padding-top:var(--s-space-4);padding-right:var(--s-space-16);padding-bottom:var(--s-space-4);padding-left:var(--s-space-16);align-items:center;gap:var(--s-space-12)}@media (min-width: 768px){.lightbox__meta{max-width:18rem}}.lightbox__thumbnail{display:inline-flex;flex-shrink:0}.lightbox__file-info{display:flex;min-width:0;flex-grow:1;flex-direction:column}@keyframes lightbox-fade-in{from{opacity:0}to{opacity:1}}@keyframes lightbox-fade-out{from{opacity:1}to{opacity:0}}', _ = class {
|
|
9
|
+
constructor(e) {
|
|
10
|
+
b(this, e), this.activeSlideChange = c(this, "activeSlideChange", 7), this.lightboxClose = c(this, "lightboxClose", 7), this.closeButtonLabel = "Close modal", this.downloadButtonEnabled = !0, this.downloadButtonLabel = "Download", this.menuLabel = "Slide options", this.menuTriggerLabel = "Open slide menu", this.nextSlideButtonLabel = "Next slide", this.previousSlideButtonLabel = "Previous slide", this.activeSlideIndex = 0, this.closing = !1, this.isOpen = !1, this.dragging = !1, this.onCloseButtonClick = () => {
|
|
11
|
+
this.close();
|
|
12
|
+
}, this.onDownloadButtonClick = () => {
|
|
13
|
+
var t;
|
|
14
|
+
(t = this.slides[this.activeSlideIndex]) == null || t.download(), this.menu.close();
|
|
15
|
+
}, this.onNextSlideClick = () => {
|
|
16
|
+
this.activateSlide(Math.min(this.slides.length - 1, this.activeSlideIndex + 1));
|
|
17
|
+
}, this.onPreviousSlideClick = () => {
|
|
18
|
+
this.activateSlide(Math.max(0, this.activeSlideIndex - 1));
|
|
19
|
+
}, this.registerSlides = () => {
|
|
20
|
+
this.slides = Array.from(this.el.children).filter((t) => t.tagName === "SWIRL-FILE-VIEWER"), this.setSlideAttributes();
|
|
21
|
+
}, this.onPointerDown = (t) => {
|
|
22
|
+
this.slides.length <= 1 || (this.dragging = !0, this.dragStartPosition = t instanceof MouseEvent ? t.clientX : t.touches[0].clientX, this.slides.forEach((a) => {
|
|
23
|
+
a.style.transition = "none";
|
|
24
|
+
}));
|
|
25
|
+
}, this.onPointerMove = async (t) => {
|
|
26
|
+
var n, l;
|
|
27
|
+
if (!this.dragging)
|
|
28
|
+
return;
|
|
29
|
+
const a = !(t instanceof MouseEvent) && t.touches.length > 1, o = (l = (n = this.slides[this.activeSlideIndex]) == null ? void 0 : n.shadowRoot) == null ? void 0 : l.querySelector("swirl-file-viewer-image"), s = Boolean(o) ? await o.getZoom() > 1 : !1;
|
|
30
|
+
if (a || s)
|
|
31
|
+
return;
|
|
32
|
+
t.preventDefault();
|
|
33
|
+
const r = t instanceof MouseEvent ? t.clientX - this.dragStartPosition : t.touches[0].clientX - this.dragStartPosition;
|
|
34
|
+
this.slides.forEach((d) => {
|
|
35
|
+
const h = this.activeSlideIndex * d.getBoundingClientRect().width;
|
|
36
|
+
this.dragDelta = r, d.style.transform = `translate3d(${(-h + this.dragDelta) / 16}rem, 0, 0)`;
|
|
37
|
+
});
|
|
38
|
+
}, this.onPointerUp = () => {
|
|
39
|
+
if (!this.dragging)
|
|
40
|
+
return;
|
|
41
|
+
this.dragging = !1, this.dragStartPosition = void 0;
|
|
42
|
+
const t = this.dragDelta / this.slides[this.activeSlideIndex].getBoundingClientRect().width;
|
|
43
|
+
this.dragDelta = 0;
|
|
44
|
+
const a = t > 0.2, o = t < -0.2;
|
|
45
|
+
this.slides.forEach((s) => {
|
|
46
|
+
s.style.transition = "";
|
|
47
|
+
}), a ? this.onPreviousSlideClick() : o ? this.onNextSlideClick() : this.resetSlidePositions();
|
|
48
|
+
}, this.onBackdropClick = (t) => {
|
|
49
|
+
t.target === this.slidesContainer && this.close();
|
|
50
|
+
}, this.onContextMenu = (t) => {
|
|
51
|
+
this.downloadButtonEnabled || t.preventDefault();
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
componentWillLoad() {
|
|
55
|
+
this.registerSlides();
|
|
56
|
+
}
|
|
57
|
+
componentDidLoad() {
|
|
58
|
+
this.activateSlide(0);
|
|
59
|
+
}
|
|
60
|
+
componentDidRender() {
|
|
61
|
+
var e;
|
|
62
|
+
(e = this.focusTrap) == null || e.updateContainerElements(this.modalEl);
|
|
63
|
+
}
|
|
64
|
+
disconnectedCallback() {
|
|
65
|
+
var e, t;
|
|
66
|
+
(e = this.focusTrap) == null || e.deactivate(), this.unlockBodyScroll(), (t = this.containerObserver) == null || t.disconnect(), this.activateSlideTimeout && clearTimeout(this.activateSlideTimeout), this.closingTimeout && clearTimeout(this.closingTimeout);
|
|
67
|
+
}
|
|
68
|
+
watchActiveSlideIndex() {
|
|
69
|
+
this.activeSlideChange.emit(this.activeSlideIndex);
|
|
70
|
+
}
|
|
71
|
+
onKeyDown(e) {
|
|
72
|
+
!this.isOpen || (e.code === "Escape" ? (e.stopImmediatePropagation(), this.close()) : e.code === "ArrowLeft" ? this.onPreviousSlideClick() : e.code === "ArrowRight" && this.onNextSlideClick());
|
|
73
|
+
}
|
|
74
|
+
async open() {
|
|
75
|
+
this.isOpen = !0, this.lockBodyScroll(), this.activateSlide(this.activeSlideIndex || 0), setTimeout(() => {
|
|
76
|
+
var e;
|
|
77
|
+
this.focusTrap = x(this.modalEl, {
|
|
78
|
+
allowOutsideClick: !0,
|
|
79
|
+
checkCanFocusTrap: (t) => {
|
|
80
|
+
var a;
|
|
81
|
+
return (a = this.containerObserver) == null || a.disconnect(), new Promise((o) => {
|
|
82
|
+
const s = t[0];
|
|
83
|
+
if (s.tabIndex !== -1) {
|
|
84
|
+
o();
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
this.containerObserver = new MutationObserver(() => {
|
|
88
|
+
s.tabIndex !== -1 && (this.containerObserver.disconnect(), o());
|
|
89
|
+
}), this.containerObserver.observe(s, {
|
|
90
|
+
attributes: !0,
|
|
91
|
+
attributeFilter: ["tabindex"]
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
},
|
|
95
|
+
tabbableOptions: {
|
|
96
|
+
getShadowRoot: (t) => t.shadowRoot
|
|
97
|
+
}
|
|
98
|
+
}), (e = this.focusTrap) == null || e.activate();
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
async close() {
|
|
102
|
+
var e;
|
|
103
|
+
this.closing || (this.closing = !0, (e = this.focusTrap) == null || e.deactivate(), this.unlockBodyScroll(), this.closingTimeout && (clearTimeout(this.closingTimeout), this.closingTimeout = void 0), this.closingTimeout = setTimeout(() => {
|
|
104
|
+
this.isOpen = !1, this.resetImageZoom(), this.stopAllMediaPlayers(), this.closing = !1, this.lightboxClose.emit();
|
|
105
|
+
}, 150));
|
|
106
|
+
}
|
|
107
|
+
async activateSlide(e) {
|
|
108
|
+
var t, a;
|
|
109
|
+
(a = (t = this.menu) == null ? void 0 : t.close) == null || a.call(t), this.dragging = !1, this.activeSlideIndex = e, this.slides.forEach((o, s) => {
|
|
110
|
+
s === this.activeSlideIndex ? (o.removeAttribute("aria-hidden"), o.setAttribute("active", "true")) : s === this.activeSlideIndex - 1 || s === this.activeSlideIndex + 1 ? (o.setAttribute("aria-hidden", "true"), o.setAttribute("active", "true")) : o.setAttribute("aria-hidden", "true"), o.style.transform = `translate3d(-${100 * this.activeSlideIndex}%, 0, 0)`;
|
|
111
|
+
}), this.activateSlideTimeout && (clearTimeout(this.activateSlideTimeout), this.activateSlideTimeout = void 0), this.activateSlideTimeout = setTimeout(() => {
|
|
112
|
+
this.slides.forEach((o, s) => {
|
|
113
|
+
s !== this.activeSlideIndex && s !== this.activeSlideIndex - 1 && s !== this.activeSlideIndex + 1 && o.setAttribute("active", "false");
|
|
114
|
+
});
|
|
115
|
+
}, 300), this.stopAllMediaPlayers(), this.resetImageZoom();
|
|
116
|
+
}
|
|
117
|
+
setSlideAttributes() {
|
|
118
|
+
this.slides.forEach((e) => {
|
|
119
|
+
e.setAttribute("active", "false"), e.setAttribute("aria-label", e.file), e.setAttribute("aria-roledescription", "slide"), e.setAttribute("role", "group"), e.addEventListener("dragstart", (t) => t.preventDefault());
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
resetSlidePositions() {
|
|
123
|
+
this.slides.forEach((e) => {
|
|
124
|
+
e.style.transform = `translate3d(-${100 * this.activeSlideIndex}%, 0, 0)`;
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
getCurrentFileName() {
|
|
128
|
+
var t;
|
|
129
|
+
const e = this.slides[this.activeSlideIndex];
|
|
130
|
+
return (e == null ? void 0 : e.fileName) || ((t = e == null ? void 0 : e.file) == null ? void 0 : t.split("/").pop());
|
|
131
|
+
}
|
|
132
|
+
getCurrentFileType() {
|
|
133
|
+
var e;
|
|
134
|
+
return (e = this.slides[this.activeSlideIndex]) == null ? void 0 : e.type;
|
|
135
|
+
}
|
|
136
|
+
getCurrentThumbnailUrl() {
|
|
137
|
+
var e;
|
|
138
|
+
return (e = this.slides[this.activeSlideIndex]) == null ? void 0 : e.thumbnailUrl;
|
|
139
|
+
}
|
|
140
|
+
lockBodyScroll() {
|
|
141
|
+
g(this.el);
|
|
142
|
+
}
|
|
143
|
+
unlockBodyScroll() {
|
|
144
|
+
m(this.el);
|
|
145
|
+
}
|
|
146
|
+
getMediaPlayers() {
|
|
147
|
+
return v(this.el, "video");
|
|
148
|
+
}
|
|
149
|
+
stopAllMediaPlayers() {
|
|
150
|
+
this.getMediaPlayers().forEach((e) => e.pause());
|
|
151
|
+
}
|
|
152
|
+
resetImageZoom() {
|
|
153
|
+
this.slides.forEach((e) => {
|
|
154
|
+
var a;
|
|
155
|
+
const t = (a = e == null ? void 0 : e.shadowRoot) == null ? void 0 : a.querySelector("swirl-file-viewer-image");
|
|
156
|
+
Boolean(t) && t.resetZoom();
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
render() {
|
|
160
|
+
const e = this.slides.length > 1, t = this.getCurrentFileName(), a = this.getCurrentFileType(), o = this.getCurrentThumbnailUrl(), s = Boolean(this.el.querySelector("[slot='menu-items']")) || this.downloadButtonEnabled, r = Boolean(this.el.querySelector("[slot='toolbar']")), n = p("lightbox", {
|
|
161
|
+
"lightbox--closing": this.closing,
|
|
162
|
+
"lightbox--hide-menu": !s,
|
|
163
|
+
"lightbox--hide-toolbar": !r
|
|
164
|
+
});
|
|
165
|
+
return i(u, { key: "ef75b4eb3cc829becbd789742163f953cd83f5b7" }, i("section", { key: "1e365713f8e87f991e69c5b2da65042e4d3fb839", "aria-hidden": String(!this.isOpen), "aria-label": this.label, "aria-modal": "true", class: n, id: "lightbox", onMouseDown: this.onPointerDown, onMouseMove: this.onPointerMove, onMouseOut: this.onPointerUp, onMouseUp: this.onPointerUp, onTouchEnd: this.onPointerUp, onTouchMove: this.onPointerMove, onTouchStart: this.onPointerDown, ref: (l) => this.modalEl = l, role: "dialog", tabIndex: this.isOpen ? 0 : -1 }, i("div", { key: "85ab681581a804cf881c7b931c043c01d9d4fe27", class: "lightbox__body", role: "document" }, i("header", { key: "10c85778490babd4087b1588febe701e2d580f64", class: "lightbox__header" }, i("button", { key: "d5b371c036a20764b9f6de64c3f9fc35c2db8066", "aria-label": this.closeButtonLabel, class: "lightbox__close-button", onClick: this.onCloseButtonClick }, i("swirl-icon-close", { key: "31c79feb2761ba63fbdd732a042897856ead188b" })), i("div", { key: "f928cc5f01c029097f11f010fb41d152557bc6e2", class: "lightbox__toolbar" }, i("slot", { key: "7480fe40abb4fa98af04a1fd1f93713703c58560", name: "toolbar" })), !this.hideMenu && i("swirl-popover-trigger", { key: "0c10d16ce0e499a81943c6413537d53eb0e6427e", swirlPopover: this.menu }, i("button", { key: "303cf79c04c7bdd410bc616ffaddc14b4260583f", "aria-label": this.menuTriggerLabel, class: "lightbox__menu-button" }, i("swirl-icon-more-vertikal", { key: "c3c8c96fe9c55b6973f3750d0d220db0aecc9c48" })))), i("div", { key: "8527ff9c195f804f7f0106a01c9c9241d9a6bf11", "aria-roledescription": "carousel", class: "lightbox__content", role: "group" }, i("div", { key: "50e3f4fa50aebfd5adb5c265324eb73a2431ff32", "aria-atomic": "false", "aria-live": "polite", class: "lightbox__slides", onClick: this.onBackdropClick, onContextMenu: this.onContextMenu, ref: (l) => this.slidesContainer = l }, i("slot", { key: "23255977f3c300956892070e575ef4195a8b25f2", onSlotchange: this.registerSlides }))), i("div", { key: "026576573ecb061047ff3f81611de3526c113dc3", class: "lightbox__controls" }, i("button", { key: "8242506d4556718850e73ee2099e3931fb24b2b4", "aria-label": this.previousSlideButtonLabel, class: "lightbox__previous-slide-button", disabled: this.activeSlideIndex === 0, onClick: this.onPreviousSlideClick }, i("swirl-icon-arrow-left", { key: "420fd08f5d72ab799f96374d9226682362fbff36" })), i("button", { key: "f6d46414dac0d0c2113417e01407762ef2806ec3", "aria-label": this.nextSlideButtonLabel, class: "lightbox__next-slide-button", disabled: this.activeSlideIndex === this.slides.length - 1, onClick: this.onNextSlideClick }, i("swirl-icon-arrow-right", { key: "8b80217957846b81578ab48d91151032e85b4f30" }))), e && i("span", { key: "497de15959cf0077b53c586b63ba5db48127ddc2", class: "lightbox__pagination" }, i("span", { key: "6ec1a27ef9d8097b36521b8d522144dd91891977", "aria-current": "page" }, this.activeSlideIndex + 1), " /", " ", this.slides.length)), !this.hideMenu && i("swirl-popover", { key: "bf1b718717d5ab4bb87baef6ec6a3e3eb5cfea81", animation: "scale-in-y", disableScrollLock: !0, id: "slide-menu", label: this.menuLabel, placement: "bottom-end", ref: (l) => this.menu = l }, i("swirl-stack", { key: "c3499a938b69c684954d191b8b5a15931f295a45" }, i("div", { key: "6b0fb481a374a0c743c2d462ba57dadaf66d7bcc", class: "lightbox__meta" }, o && i("div", { key: "b02e8225bd550bad76f431bcb46d5ba16de76e71", class: "lightbox__thumbnail" }, i("swirl-thumbnail", { key: "d7cd6bead11798e6f4bedd5dd93a28a550172b42", alt: "", src: o })), i("div", { key: "0ab54284d44ec93766aa17cbee79ef98511ee443", class: "lightbox__file-info" }, i("swirl-text", { key: "723dd3e0c3ef505952c97b17a14b3710fadfbe1f", truncate: !0, weight: "semibold" }, t), i("swirl-text", { key: "85fb49d317b4121989893051e7c72b024f5e6af0", color: "subdued", size: "sm", truncate: !0 }, a))), s && i("swirl-separator", { key: "af46a4621eaac705e980b0cd5b6c301678eced52" }), i("swirl-action-list", { key: "f1da71769d05c44b6d846b00549fc61c29c8b3cd" }, this.downloadButtonEnabled && i("swirl-action-list-item", { key: "8a6011493fb89bdf9f9b2161101f50f5eaa715be", icon: "<swirl-icon-download></swirl-icon-download>", label: this.downloadButtonLabel, onClick: this.onDownloadButtonClick }), i("slot", { key: "911995638aeabbd207609123112d99a3fb5ff818", name: "menu-items" }))))));
|
|
166
|
+
}
|
|
167
|
+
get el() {
|
|
168
|
+
return f(this);
|
|
169
|
+
}
|
|
170
|
+
static get watchers() {
|
|
171
|
+
return {
|
|
172
|
+
activeSlideIndex: ["watchActiveSlideIndex"]
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
_.style = y;
|
|
177
|
+
export {
|
|
178
|
+
_ as swirl_lightbox
|
|
179
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { r as i, h as r, H as t } from "./index.a571673c.js";
|
|
2
|
+
import { c as s } from "./index-orsBiyT_.fc4357c3.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const a = ":host{display:inline-flex}:host *{box-sizing:border-box}.link{color:var(--s-interactive-primary-default);line-height:var(--s-line-height-base);text-underline-offset:var(--s-space-4)}.link:hover{color:var(--s-interactive-primary-hovered)}.link:active{color:var(--s-interactive-primary-pressed)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.link{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.link--color-subdued{color:var(--s-interactive-neutral-default);font-weight:var(--s-font-weight-medium);text-decoration:none}.link--color-subdued:hover{color:var(--s-interactive-neutral-hovered)}.link--color-subdued:active{color:var(--s-interactive-neutral-pressed)}", o = class {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
i(this, e), this.color = "default";
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
const e = s("link", `link--color-${this.color}`);
|
|
11
|
+
return r(t, { key: "040ddaf3ab3c1c05fec6a4a39ffc4057c0014c0f" }, r("a", { key: "f5b666c7d7e22871d44b1f30d67dd6bcb1933acf", class: e, href: this.href, part: "link", target: this.target }, this.label));
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
o.style = a;
|
|
15
|
+
export {
|
|
16
|
+
o as swirl_link
|
|
17
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { r as l, h as i, H as r } from "./index.a571673c.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const s = ':host{display:block}:host *{box-sizing:border-box}.swirl-list{line-height:var(--s-line-height-base)}.swirl-list ul,.swirl-list ol{margin:0;padding:0;list-style-position:outside;list-style-type:none}.swirl-list ul li{padding-left:1.5rem}.swirl-list ul li:before{display:inline-block;width:1.5rem;margin-left:-1.5rem;text-align:center;content:"\u2022"}.swirl-list ol{counter-reset:item}.swirl-list ol ol{counter-reset:letter}.swirl-list ol ol li:before{content:counter(letter, lower-alpha) ".";counter-increment:letter}.swirl-list ol li{padding-left:1.5rem}.swirl-list ol li:before{display:inline-block;min-width:1.5rem;margin-left:-1.5rem;padding-right:var(--s-space-8);text-align:right;content:counter(item) ".";counter-increment:item;font-variant-numeric:tabular-nums}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.swirl-list{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}', n = class {
|
|
5
|
+
constructor(e) {
|
|
6
|
+
l(this, e);
|
|
7
|
+
}
|
|
8
|
+
componentDidRender() {
|
|
9
|
+
Array.from(this.containerEl.children).some((t) => !["UL", "OL"].includes(t.tagName)) && console.warn("[SwirlList] Only ul and ol elements are allowed as direct children of <swirl-list />.");
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
return i(r, { key: "1b05002f07257a19cb8b7dbe5146a75ca74dc35e" }, i("div", { key: "8572911881fe27c0984c185723cdf305800cf38d", class: "swirl-list", ref: (e) => this.containerEl = e }, i("slot", { key: "26b6336efe6b9c9adbf0fee1ff019c41b22c7198" })));
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
n.style = s;
|
|
16
|
+
export {
|
|
17
|
+
n as swirl_list
|
|
18
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { r, f as l, h as i, H as h, g as u } from "./index.a571673c.js";
|
|
2
|
+
import { c } from "./index-orsBiyT_.fc4357c3.js";
|
|
3
|
+
import { l as d, p } from "./utils-wi_3Z3FQ.29a3aebe.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
const m = ":host{display:block}:host *{box-sizing:border-box}.menu-item--expanded ::part(action-list-item){background-color:var(--s-surface-overlay-hovered)}", f = class {
|
|
7
|
+
constructor(e) {
|
|
8
|
+
r(this, e), this.intent = "default", this.hasAvatar = !1, this.onSlotChange = () => {
|
|
9
|
+
this.subMenu = this.el.querySelector("swirl-menu"), this.updateActionListItemProps();
|
|
10
|
+
}, this.onActionListItemClick = () => {
|
|
11
|
+
this.actionListItem.disabled || this.rootMenu.activateMenuItem(this.el);
|
|
12
|
+
}, this.onOptionListItemClick = () => {
|
|
13
|
+
this.optionListItem.disabled || this.parentMenu.updateSelection(this.optionListItem);
|
|
14
|
+
}, this.onOptionListItemKeyDown = (t) => {
|
|
15
|
+
if (t.code === "Space")
|
|
16
|
+
t.preventDefault();
|
|
17
|
+
else if (t.code === "Enter") {
|
|
18
|
+
if (this.optionListItem.disabled)
|
|
19
|
+
return;
|
|
20
|
+
t.preventDefault(), this.parentMenu.updateSelection(this.optionListItem);
|
|
21
|
+
}
|
|
22
|
+
}, this.onOptionListItemKeyUp = (t) => {
|
|
23
|
+
if (t.code === "Space") {
|
|
24
|
+
if (this.optionListItem.disabled)
|
|
25
|
+
return;
|
|
26
|
+
t.preventDefault(), this.parentMenu.updateSelection(this.optionListItem);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
componentWillLoad() {
|
|
31
|
+
this.parentMenu = d(this.el, "swirl-menu"), this.rootMenu = p(this.el, "swirl-menu").pop(), this.subMenu = this.el.querySelector("swirl-menu"), this.updateAvatarState();
|
|
32
|
+
}
|
|
33
|
+
watchExpanded() {
|
|
34
|
+
this.updateActionListItemProps();
|
|
35
|
+
}
|
|
36
|
+
async getSubMenu() {
|
|
37
|
+
return this.subMenu;
|
|
38
|
+
}
|
|
39
|
+
async updateValue() {
|
|
40
|
+
l(this);
|
|
41
|
+
}
|
|
42
|
+
async getParentMenu() {
|
|
43
|
+
return this.parentMenu;
|
|
44
|
+
}
|
|
45
|
+
updateActionListItemProps() {
|
|
46
|
+
!Boolean(this.actionListItem) || (this.actionListItem.swirlAriaExpanded = this.expanded ? "true" : void 0, this.actionListItem.swirlAriaHaspopup = Boolean(this.subMenu) ? "true" : void 0, this.actionListItem.suffix = Boolean(this.subMenu) ? '<swirl-icon-chevron-right size="16"></swirl-icon-chevron-right>' : void 0);
|
|
47
|
+
}
|
|
48
|
+
updateAvatarState() {
|
|
49
|
+
const e = this.el.querySelector('[slot="avatar"]'), t = Boolean(e);
|
|
50
|
+
t !== this.hasAvatar && (this.hasAvatar = t);
|
|
51
|
+
}
|
|
52
|
+
renderActionListItem() {
|
|
53
|
+
var t, s, a;
|
|
54
|
+
const e = Boolean((t = this.subMenu) == null ? void 0 : t.value) ? (a = Array.from(((s = this.subMenu) == null ? void 0 : s.querySelectorAll("swirl-menu-item")) || []).find((n) => {
|
|
55
|
+
var o;
|
|
56
|
+
return n.value === ((o = this.subMenu) == null ? void 0 : o.value);
|
|
57
|
+
})) == null ? void 0 : a.label : void 0;
|
|
58
|
+
return i("swirl-action-list-item", { badge: e, description: this.description, disabled: this.disabled, icon: this.icon, iconBadge: this.iconBadge, intent: this.intent, label: this.label, onClick: this.onActionListItemClick, ref: (n) => this.actionListItem = n, suffix: this.suffix }, this.hasAvatar && i("slot", { name: "avatar", slot: "avatar" }));
|
|
59
|
+
}
|
|
60
|
+
renderOptionListItem() {
|
|
61
|
+
var t;
|
|
62
|
+
const e = ((t = this.parentMenu) == null ? void 0 : t.value) === this.value;
|
|
63
|
+
return i("swirl-option-list-item", { disabled: this.disabled, icon: this.icon, iconBadge: this.iconBadge, label: this.label, onClick: this.onOptionListItemClick, onKeyDown: this.onOptionListItemKeyDown, onKeyUp: this.onOptionListItemKeyUp, ref: (s) => this.optionListItem = s, selected: e, swirlAriaRole: "menuitemradio", value: this.value }, this.hasAvatar && i("slot", { name: "avatar", slot: "avatar" }));
|
|
64
|
+
}
|
|
65
|
+
render() {
|
|
66
|
+
var t;
|
|
67
|
+
const e = c("menu-item", {
|
|
68
|
+
"menu-item--expanded": this.expanded
|
|
69
|
+
});
|
|
70
|
+
return i(h, { key: "f432a3d6c0728f60b133d8a6b30382a1462fe5f6" }, i("div", { key: "96fba47400c39c63174049de7e5926c3884ee19f", class: e }, ((t = this.parentMenu) == null ? void 0 : t.variant) === "selection" ? this.renderOptionListItem() : this.renderActionListItem(), i("slot", { key: "2991a43ac90ecef036f9f0e768ddd3acf6a85464", onSlotchange: this.onSlotChange })));
|
|
71
|
+
}
|
|
72
|
+
get el() {
|
|
73
|
+
return u(this);
|
|
74
|
+
}
|
|
75
|
+
static get watchers() {
|
|
76
|
+
return {
|
|
77
|
+
expanded: ["watchExpanded"]
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
f.style = m;
|
|
82
|
+
export {
|
|
83
|
+
f as swirl_menu_item
|
|
84
|
+
};
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { r as d, c, h as o, H as b, g as v } from "./index.a571673c.js";
|
|
2
|
+
import { P as p, N as f, D as w, k as g, b as y } from "./floating-ui.dom.browser.min-BtsCuEVE.45e9e353.js";
|
|
3
|
+
import { c as M } from "./index-orsBiyT_.fc4357c3.js";
|
|
4
|
+
import { q as a, l, p as h, i as I, k as x } from "./utils-wi_3Z3FQ.29a3aebe.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const _ = ":host{display:block}:host *{box-sizing:border-box}.menu{width:100%;--swirl-ghost-button-background-default:var(--s-surface-overlay-default);--swirl-ghost-button-background-hovered:var(--s-surface-overlay-hovered);--swirl-ghost-button-background-pressed:var(--s-surface-overlay-pressed)}.menu--mobile.menu--root{position:relative}.menu--mobile.menu--root .menu__menu{top:3.5rem;transition:left 0.2s}.menu--mobile.menu--active .menu__menu{display:block}.menu--mobile .menu__menu{position:absolute;top:0;left:0;display:none;width:100%}:not(.menu--mobile).menu--root{position:relative}:not(.menu--mobile).menu--root .menu__menu{position:relative;padding-top:0;padding-bottom:0}:not(.menu--mobile):not(.menu--root) .menu__menu{z-index:1;max-width:22.5rem;border-radius:var(--s-border-radius-base);box-shadow:var(--s-shadow-level-1);padding:var(--s-space-4)}:not(.menu--mobile).menu--active .menu__menu{display:block}:not(.menu--mobile) .menu__menu{position:fixed;display:none}.menu__mobile-header{display:flex;height:3.5rem;padding-right:var(--s-space-16);padding-left:var(--s-space-16);justify-content:space-between;align-items:center;border-bottom:var(--s-border-width-default) solid var(--s-border-default);gap:var(--s-space-8)}.menu__mobile-header>*{display:inline-flex;flex-shrink:0}.menu__title{min-width:0;flex-grow:1;flex-shrink:1}.menu__title swirl-heading{min-width:0}.menu__done-button{margin-right:calc(-1 * var(--s-space-8))}.menu__menu{background-color:var(--s-surface-overlay-default);}", k = class {
|
|
8
|
+
constructor(e) {
|
|
9
|
+
d(this, e), this.done = c(this, "done", 7), this.valueChange = c(this, "valueChange", 7), this.active = !0, this.level = 0, this.mobileBackButtonLabel = "Back", this.mobileCloseMenuButtonLabel = "Close menu", this.mobileDoneButtonLabel = "Done", this.variant = "action", this.activeLevel = 0, this.mobileMediaQuery = window.matchMedia("(min-width: 768px)"), this.mediaQueryHandler = () => {
|
|
10
|
+
this.updateMobileState();
|
|
11
|
+
}, this.resetMenu = () => {
|
|
12
|
+
this.items.forEach((t) => {
|
|
13
|
+
t.tabIndex = -1;
|
|
14
|
+
}), !(this.level > 0) && setTimeout(() => {
|
|
15
|
+
this.activeLevel = 0, a(this.el, "swirl-menu").forEach((i) => {
|
|
16
|
+
i.active = !1, i.parentElement.expanded = !1;
|
|
17
|
+
});
|
|
18
|
+
}, this.mobile ? 200 : 60);
|
|
19
|
+
}, this.closeMenu = () => {
|
|
20
|
+
this.disableAutoUpdate && this.disableAutoUpdate(), this.swirlPopover.close(), this.resetMenu();
|
|
21
|
+
}, this.reposition = async () => {
|
|
22
|
+
if (this.mobile || this.level === 0) {
|
|
23
|
+
this.position = void 0;
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const t = this.el.parentElement;
|
|
27
|
+
!Boolean(t) || !Boolean(this.menuContainer) || requestAnimationFrame(async () => {
|
|
28
|
+
this.position = await p(t, this.menuContainer, {
|
|
29
|
+
placement: "right-start",
|
|
30
|
+
strategy: "fixed",
|
|
31
|
+
middleware: [w({ mainAxis: -10, crossAxis: 0 }), g(), y()]
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
}, this.onKeyDown = (t) => {
|
|
35
|
+
if (t.code === "ArrowDown")
|
|
36
|
+
t.preventDefault(), t.stopPropagation(), this.focusNextItem();
|
|
37
|
+
else if (t.code === "ArrowUp")
|
|
38
|
+
t.preventDefault(), t.stopPropagation(), this.focusPreviousItem();
|
|
39
|
+
else if (t.code === "ArrowLeft")
|
|
40
|
+
t.preventDefault(), t.stopPropagation(), this.rootMenu.goBack();
|
|
41
|
+
else if (t.code === "ArrowRight") {
|
|
42
|
+
t.preventDefault();
|
|
43
|
+
const i = l(this.items[this.getActiveItemIndex()], "swirl-menu-item");
|
|
44
|
+
if (!Boolean(i))
|
|
45
|
+
return;
|
|
46
|
+
this.rootMenu.activateMenuItem(i);
|
|
47
|
+
}
|
|
48
|
+
}, this.onClose = () => {
|
|
49
|
+
this.closeMenu();
|
|
50
|
+
}, this.onDone = () => {
|
|
51
|
+
this.closeMenu(), this.done.emit();
|
|
52
|
+
}, this.onGoBack = () => {
|
|
53
|
+
this.rootMenu.goBack();
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
componentWillLoad() {
|
|
57
|
+
this.updateMobileState(), this.updateLevel(), this.observeSlotChanges();
|
|
58
|
+
}
|
|
59
|
+
componentDidLoad() {
|
|
60
|
+
this.mobileMediaQuery.addEventListener("change", this.mediaQueryHandler), this.parentMenu = l(this.el.parentElement, "swirl-menu"), this.swirlPopover = l(this.el, "swirl-popover"), this.rootMenu = h(this.el, "swirl-menu").pop(), Boolean(this.parentMenu) && queueMicrotask(() => {
|
|
61
|
+
this.active = !1;
|
|
62
|
+
}), this.swirlPopover.addEventListener("popoverClose", this.resetMenu), this.updateItems();
|
|
63
|
+
}
|
|
64
|
+
disconnectedCallback() {
|
|
65
|
+
var e, t, i, n;
|
|
66
|
+
(e = this.swirlPopover) == null || e.removeEventListener("popoverClose", this.resetMenu), (i = (t = this.mobileMediaQuery).removeEventListener) == null || i.call(t, "change", this.mediaQueryHandler), (n = this.observer) == null || n.disconnect();
|
|
67
|
+
}
|
|
68
|
+
watchActive() {
|
|
69
|
+
this.reposition(), this.disableAutoUpdate && this.disableAutoUpdate(), this.disableAutoUpdate = f(this.el.parentElement, this.menuContainer, this.reposition);
|
|
70
|
+
}
|
|
71
|
+
watchValue() {
|
|
72
|
+
this.updateActiveItem();
|
|
73
|
+
}
|
|
74
|
+
async activateMenuItem(e) {
|
|
75
|
+
if (Boolean(this.parentMenu))
|
|
76
|
+
return;
|
|
77
|
+
const t = await e.getParentMenu();
|
|
78
|
+
a(this.el, "swirl-menu").filter((s) => s.level >= t.level && s !== t).forEach((s) => {
|
|
79
|
+
s.active = !1, s.parentElement.expanded = !1;
|
|
80
|
+
});
|
|
81
|
+
const n = await e.getSubMenu();
|
|
82
|
+
!Boolean(n) || (e.expanded = !0, n.active = !0, this.activeLevel = n.level, setTimeout(() => {
|
|
83
|
+
n.focusFirstItem();
|
|
84
|
+
}, this.mobile ? 200 : 60));
|
|
85
|
+
}
|
|
86
|
+
async close() {
|
|
87
|
+
this.closeMenu();
|
|
88
|
+
}
|
|
89
|
+
async goBack() {
|
|
90
|
+
if (Boolean(this.parentMenu) || this.activeLevel === 0)
|
|
91
|
+
return;
|
|
92
|
+
const t = (a(this.el, "swirl-menu").find((s) => s.level === this.activeLevel && s.active) || this.rootMenu).parentElement;
|
|
93
|
+
t.expanded = !1, this.activeLevel = Math.max(this.activeLevel - 1, 0), a(this.el, "swirl-menu").filter((s) => s.level > this.activeLevel).forEach((s) => {
|
|
94
|
+
s.active = !1;
|
|
95
|
+
}), (a(this.el, "swirl-menu").find((s) => s.level === this.activeLevel && s.active) || this.rootMenu).focusItemAtIndex(Array.from(t.parentElement.children).indexOf(t));
|
|
96
|
+
}
|
|
97
|
+
async focusFirstItem() {
|
|
98
|
+
this.focusItem(this.items[0]);
|
|
99
|
+
}
|
|
100
|
+
async focusItemAtIndex(e) {
|
|
101
|
+
this.focusItem(this.items[e]);
|
|
102
|
+
}
|
|
103
|
+
async updateSelection(e) {
|
|
104
|
+
this.valueChange.emit(e.value);
|
|
105
|
+
}
|
|
106
|
+
async updateActiveItem() {
|
|
107
|
+
a(this.el, "swirl-menu-item").filter((t) => l(t, "swirl-menu") === this.el).forEach((t) => {
|
|
108
|
+
t.updateValue();
|
|
109
|
+
}), this.parentMenu && this.parentMenu.variant === "action" && this.parentMenu.updateActiveItem();
|
|
110
|
+
}
|
|
111
|
+
observeSlotChanges() {
|
|
112
|
+
this.observer = new MutationObserver(() => {
|
|
113
|
+
requestAnimationFrame(() => {
|
|
114
|
+
this.updateItems();
|
|
115
|
+
});
|
|
116
|
+
}), this.observer.observe(this.el, { childList: !0 });
|
|
117
|
+
}
|
|
118
|
+
updateMobileState() {
|
|
119
|
+
const e = I();
|
|
120
|
+
e !== this.mobile && (this.mobile = e);
|
|
121
|
+
}
|
|
122
|
+
updateItems() {
|
|
123
|
+
this.items = [
|
|
124
|
+
...a(this.el, '[role="menuitem"]'),
|
|
125
|
+
...a(this.el, '[role="menuitemradio"]')
|
|
126
|
+
].filter((e) => l(e, "swirl-menu") === this.el);
|
|
127
|
+
}
|
|
128
|
+
updateLevel() {
|
|
129
|
+
const e = h(this.el.parentNode, "swirl-menu");
|
|
130
|
+
this.level = e.length;
|
|
131
|
+
}
|
|
132
|
+
focusItem(e) {
|
|
133
|
+
[
|
|
134
|
+
...a(this.rootMenu, '[role="menuitem"]'),
|
|
135
|
+
...a(this.rootMenu, '[role="menuitemradio"]')
|
|
136
|
+
].forEach((i) => {
|
|
137
|
+
i.tabIndex = -1;
|
|
138
|
+
}), Boolean(e) && (e.tabIndex = 0, e.focus());
|
|
139
|
+
}
|
|
140
|
+
focusNextItem() {
|
|
141
|
+
const t = (this.getActiveItemIndex() + 1) % this.items.length, i = this.items[t];
|
|
142
|
+
this.focusItem(i);
|
|
143
|
+
}
|
|
144
|
+
focusPreviousItem() {
|
|
145
|
+
const e = this.getActiveItemIndex(), t = e === 0 ? this.items.length - 1 : e - 1, i = this.items[t];
|
|
146
|
+
this.focusItem(i);
|
|
147
|
+
}
|
|
148
|
+
getActiveItemIndex() {
|
|
149
|
+
const e = x();
|
|
150
|
+
return this.items.findIndex((t) => t === e || t === (e == null ? void 0 : e.querySelector('[role="menuitem"]')) || t === (e == null ? void 0 : e.querySelector('[role="menuitemradio"]')));
|
|
151
|
+
}
|
|
152
|
+
render() {
|
|
153
|
+
var r, u;
|
|
154
|
+
const e = !Boolean(this.parentMenu), t = e && this.mobile ? void 0 : this.label, i = e && this.mobile ? "menu-title" : void 0, n = e ? "menubar" : "menu", s = M("menu", `menu--level-${this.level}`, {
|
|
155
|
+
"menu--active": this.active,
|
|
156
|
+
"menu--mobile": this.mobile,
|
|
157
|
+
"menu--root": e
|
|
158
|
+
});
|
|
159
|
+
return o(b, { key: "e82f0ed6771d2a4e0a57d4d86ccdc12dcd55a140" }, o("div", { key: "41a2a9a44e01be2abae3215db54380c1217c14a4", class: s }, this.mobile && e && o("div", { key: "b185a2e8fcd3bdcf927d944aa256fde86824e660", class: "menu__mobile-header" }, this.activeLevel === 0 && o("swirl-button", { key: "5343d6fba63e3a0c31f12a58ac95d7e3c9d5c224", hideLabel: !0, icon: "<swirl-icon-close></swirl-icon-close>", label: this.mobileCloseMenuButtonLabel, onClick: this.onClose, variant: "plain" }), this.activeLevel > 0 && o("swirl-button", { key: "24b268a706c41ccf67f42e286564a6d8978f37ea", hideLabel: !0, icon: "<swirl-icon-chevron-left></swirl-icon-chevron-left>", label: this.mobileBackButtonLabel, onClick: this.onGoBack, variant: "plain" }), o("span", { key: "24a7266f29ff496e3976979d8df62bdbeb935057", class: "menu__title", id: "menu-title" }, o("swirl-heading", { key: "0e16bf442dd66fb50f40f28e168919d4f97d5e3c", align: "center", as: "span", level: 4, text: this.label, truncate: !0 })), o("swirl-button", { key: "c015629a25243719f85a32297774eef39febc19f", class: "menu__done-button", intent: "primary", label: this.mobileDoneButtonLabel, onClick: this.onDone })), o("div", { key: "39f5b638d7097c9d8418e2319555c8266a44473e", "aria-label": t, "aria-labelledby": i, "aria-orientation": "vertical", class: "menu__menu", onKeyDown: this.onKeyDown, ref: (m) => this.menuContainer = m, role: n, style: !this.mobile && this.level > 0 ? {
|
|
160
|
+
top: Boolean(this.position) ? `${(r = this.position) == null ? void 0 : r.y}px` : "",
|
|
161
|
+
left: Boolean(this.position) ? `${(u = this.position) == null ? void 0 : u.x}px` : ""
|
|
162
|
+
} : this.mobile ? {
|
|
163
|
+
left: e ? `calc(-100% * ${this.activeLevel})` : "100%"
|
|
164
|
+
} : void 0 }, o("slot", { key: "e9cd98c6be964be86a6b0e631e0d80514276a08e" }))));
|
|
165
|
+
}
|
|
166
|
+
get el() {
|
|
167
|
+
return v(this);
|
|
168
|
+
}
|
|
169
|
+
static get watchers() {
|
|
170
|
+
return {
|
|
171
|
+
active: ["watchActive"],
|
|
172
|
+
value: ["watchValue"]
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
k.style = _;
|
|
177
|
+
export {
|
|
178
|
+
k as swirl_menu
|
|
179
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { r as l, c as t, h as s, H as a } from "./index.a571673c.js";
|
|
2
|
+
import { d as i, e as c } from "./bodyScrollLock.esm-B0kNlhKL.c7a66a82.js";
|
|
3
|
+
import { c as r } from "./index-orsBiyT_.fc4357c3.js";
|
|
4
|
+
import { c as n } from "./focus-trap.esm-DIdMBZfn.c41dd5d8.js";
|
|
5
|
+
import { k as d } from "./utils-wi_3Z3FQ.29a3aebe.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "react-dom";
|
|
8
|
+
const b = `:host{display:block}:host *{box-sizing:border-box}.modal-shell{position:fixed;inset:0;z-index:var(--s-z-40)}.modal-shell__backdrop{position:fixed;inset:0;z-index:1;background-color:var(--s-translucent-medium-default);opacity:1;-webkit-backdrop-filter:blur(var(--s-blur-l));backdrop-filter:blur(var(--s-blur-l));transition:opacity 0.3s ease-out, -webkit-backdrop-filter 0.3s ease-out;transition:opacity 0.3s ease-out, backdrop-filter 0.3s ease-out;transition:opacity 0.3s ease-out, backdrop-filter 0.3s ease-out, -webkit-backdrop-filter 0.3s ease-out}.modal-shell__scroll-container{overflow-y:auto;position:fixed;inset:0;z-index:2;display:grid;padding:var(--s-space-24);justify-content:center;align-items:center}.modal-shell__scroll-container__content{opacity:1;transform:scale(1);transition:opacity 0.2s ease-out,
|
|
9
|
+
transform 0.2s cubic-bezier(0.3, 0.7, 0.4, 1.1)}.modal-shell__close-button{position:fixed;top:var(--s-space-16);right:var(--s-space-16);z-index:3;opacity:1;transform:scale(1);transition:opacity 0.2s ease-out,
|
|
10
|
+
transform 0.2s cubic-bezier(0.3, 0.7, 0.4, 1.1)}.modal-shell--closing .modal-shell__backdrop{opacity:0;-webkit-backdrop-filter:blur(0px);backdrop-filter:blur(0px)}.modal-shell--closing .modal-shell__scroll-container__content,.modal-shell--closing .modal-shell__close-button{opacity:0;transform:scale(1.1)}`, p = 300, f = class {
|
|
11
|
+
constructor(e) {
|
|
12
|
+
l(this, e), this.closeModal = t(this, "closeModal", 7), this.isClosing = !0, this.onKeyDown = (o) => {
|
|
13
|
+
o.code === "Escape" && this.close();
|
|
14
|
+
}, this.onContentClick = (o) => {
|
|
15
|
+
o.stopPropagation();
|
|
16
|
+
}, this.onClose = () => {
|
|
17
|
+
this.close();
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
componentDidLoad() {
|
|
21
|
+
requestAnimationFrame(() => {
|
|
22
|
+
this.setupFocusTrap(), i(this.modalEl), this.isClosing = !1;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
disconnectedCallback() {
|
|
26
|
+
var e;
|
|
27
|
+
(e = this.focusTrap) == null || e.deactivate(), c(this.modalEl);
|
|
28
|
+
}
|
|
29
|
+
async close() {
|
|
30
|
+
this.isClosing = !0, setTimeout(() => {
|
|
31
|
+
this.closeModal.emit();
|
|
32
|
+
}, p);
|
|
33
|
+
}
|
|
34
|
+
setupFocusTrap() {
|
|
35
|
+
this.focusTrap = n(this.modalEl, {
|
|
36
|
+
allowOutsideClick: !0,
|
|
37
|
+
setReturnFocus: d(),
|
|
38
|
+
escapeDeactivates: !1
|
|
39
|
+
}), this.focusTrap.activate();
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
const e = r("modal-shell", {
|
|
43
|
+
"modal-shell--closing": this.isClosing
|
|
44
|
+
});
|
|
45
|
+
return s(a, { key: "8aea67806ba2fec048535bdc5193b3816388bc06" }, s("section", { key: "c4b250073cd2fd008004b340d97b03707bc06e9a", "aria-label": this.label, role: "dialog", "aria-modal": "true", class: e, onKeyDown: this.onKeyDown, ref: (o) => this.modalEl = o }, s("div", { key: "63cc4dde37b78fcacb107fba12763d5dad4f5598", class: "modal-shell__backdrop" }), s("div", { key: "579260ac15657ac3fe478358825478f953ed954c", class: "modal-shell__scroll-container", onClick: this.onClose }, s("div", { key: "f2a4a7deedca343e2611eff87c88b21107597ece", class: "modal-shell__scroll-container__content", onClick: this.onContentClick }, s("slot", { key: "896abae954627cb74eff8941db7f3edbbaf678ed" }))), s("swirl-button", { key: "317405ea11d203fd69fd7f07a129e8ef10ef47cf", class: "modal-shell__close-button", icon: "<swirl-icon-close color='strong'></swirl-icon-close>", label: this.closeButtonLabel, hideLabel: !0, variant: "translucent", onClick: this.onClose })));
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
f.style = b;
|
|
49
|
+
export {
|
|
50
|
+
f as swirl_modal_shell
|
|
51
|
+
};
|