@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,60 @@
|
|
|
1
|
+
import { r as i, c as g, h as o, g as r } from "./index.a571673c.js";
|
|
2
|
+
import { c as l } from "./index-orsBiyT_.fc4357c3.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const a = ":host{display:inline-block}:host *{box-sizing:border-box}.toggle-group{padding:var(--s-space-2);background-color:var(--s-surface-sunken-default);border-radius:var(--s-space-8);transition:box-shadow 0.3s}.toggle-group--elevated{box-shadow:var(--s-shadow-level-2)}.toggle-group--variant-outline{outline:var(--s-border-width-default) solid var(--s-border-strong);outline-offset:calc(var(--s-border-width-default) * -1)}", n = class {
|
|
6
|
+
constructor(t) {
|
|
7
|
+
i(this, t), this.selectedToggleChange = g(this, "selectedToggleChange", 7), this.variant = "flat", this.toggleButtons = [], this.onSlotChange = () => {
|
|
8
|
+
this.toggleButtons = Array.from(this.el.querySelectorAll("swirl-toggle-button")), this.setTogglePressedStates();
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
watchSelectedToggleId(t, e) {
|
|
12
|
+
t !== e && (this.selectedToggleChange.emit(t), this.setTogglePressedStates());
|
|
13
|
+
}
|
|
14
|
+
onClick(t) {
|
|
15
|
+
const e = t.target;
|
|
16
|
+
if ((e == null ? void 0 : e.tagName) === "SWIRL-TOGGLE-BUTTON") {
|
|
17
|
+
t.stopPropagation();
|
|
18
|
+
const s = e;
|
|
19
|
+
this.selectedToggleId = s.identifier;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
setTogglePressedStates() {
|
|
23
|
+
var e;
|
|
24
|
+
if (!((e = this.toggleButtons) != null && e.length))
|
|
25
|
+
return;
|
|
26
|
+
if (!this.selectedToggleId) {
|
|
27
|
+
this.toggleButtonWithId(this.toggleButtons[0].identifier);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (!this.toggleButtons.some((s) => s.identifier === this.selectedToggleId)) {
|
|
31
|
+
this.toggleButtonWithId(this.toggleButtons[0].identifier);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
this.toggleButtonWithId(this.selectedToggleId);
|
|
35
|
+
}
|
|
36
|
+
toggleButtonWithId(t) {
|
|
37
|
+
var e;
|
|
38
|
+
!((e = this.toggleButtons) != null && e.length) || this.toggleButtons.forEach((s) => {
|
|
39
|
+
s.identifier === t ? s.isPressed = !0 : s.isPressed = !1;
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
const t = l("toggle-group", `toggle-group--variant-${this.variant}`, {
|
|
44
|
+
"toggle-group--elevated": this.elevated
|
|
45
|
+
});
|
|
46
|
+
return o("swirl-stack", { key: "53d1ed77435d8b176d2ecd9f17a91d7ce898089c", class: t, "aria-label": this.swirlAriaLabel, spacing: "4", orientation: "horizontal", align: "center", role: "group" }, o("slot", { key: "86d94274de5474cd95c7a8e9bc00470a769f0338", onSlotchange: this.onSlotChange }));
|
|
47
|
+
}
|
|
48
|
+
get el() {
|
|
49
|
+
return r(this);
|
|
50
|
+
}
|
|
51
|
+
static get watchers() {
|
|
52
|
+
return {
|
|
53
|
+
selectedToggleId: ["watchSelectedToggleId"]
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
n.style = a;
|
|
58
|
+
export {
|
|
59
|
+
n as swirl_toggle_group
|
|
60
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { r, h as s, H as n, g as i } from "./index.a571673c.js";
|
|
2
|
+
import { k as c } from "./utils-wi_3Z3FQ.29a3aebe.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const a = ":host{display:block}:host *{box-sizing:border-box}", l = class {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
r(this, e), this.orientation = "horizontal", this.onKeyDown = (t) => {
|
|
8
|
+
t.code === "ArrowDown" || t.code === "ArrowRight" ? (t.preventDefault(), this.focusNextItem()) : (t.code === "ArrowUp" || t.code === "ArrowLeft") && (t.preventDefault(), this.focusPreviousItem());
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
componentDidLoad() {
|
|
12
|
+
var o;
|
|
13
|
+
const e = this.getItems();
|
|
14
|
+
this.deactivateTabIndexes(e);
|
|
15
|
+
const t = (o = e[0]) == null ? void 0 : o.querySelector("button");
|
|
16
|
+
!Boolean(t) || (t.tabIndex = 0);
|
|
17
|
+
}
|
|
18
|
+
getItems() {
|
|
19
|
+
return Array.from(this.el.querySelectorAll("swirl-button, swirl-chip"));
|
|
20
|
+
}
|
|
21
|
+
focusNextItem() {
|
|
22
|
+
const e = this.getItems(), o = (this.getActiveItemIndex(e) + 1) % e.length;
|
|
23
|
+
this.focusItem(e[o]);
|
|
24
|
+
}
|
|
25
|
+
focusPreviousItem() {
|
|
26
|
+
const e = this.getItems(), t = this.getActiveItemIndex(e), o = t === 0 ? e.length - 1 : t - 1;
|
|
27
|
+
this.focusItem(e[o]);
|
|
28
|
+
}
|
|
29
|
+
getActiveItemIndex(e) {
|
|
30
|
+
const t = c();
|
|
31
|
+
return e.findIndex((o) => o === (t == null ? void 0 : t.closest("swirl-button, swirl-chip")));
|
|
32
|
+
}
|
|
33
|
+
focusItem(e) {
|
|
34
|
+
const t = this.getItems();
|
|
35
|
+
if (this.deactivateTabIndexes(t), !Boolean(e))
|
|
36
|
+
return;
|
|
37
|
+
const o = e.querySelector("button");
|
|
38
|
+
!Boolean(o) || (o.tabIndex = 0, o.focus());
|
|
39
|
+
}
|
|
40
|
+
deactivateTabIndexes(e) {
|
|
41
|
+
e.forEach((t) => {
|
|
42
|
+
const o = t.querySelector("button");
|
|
43
|
+
!Boolean(o) || (o.tabIndex = -1);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
render() {
|
|
47
|
+
return s(n, { key: "68b45bf033f288bfcc91816113e4a9dc1ef3969f" }, s("swirl-stack", { key: "5e47332dbd0f692c105a8271b381b474e87e6a79", align: "center", "aria-label": this.label, "aria-orientation": this.orientation, role: "toolbar", onKeyDown: this.onKeyDown, orientation: this.orientation, spacing: "8", wrap: !0 }, s("slot", { key: "fcd391ebc21c6b829394c28b2968c5007f3be389" })));
|
|
48
|
+
}
|
|
49
|
+
get el() {
|
|
50
|
+
return i(this);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
l.style = a;
|
|
54
|
+
export {
|
|
55
|
+
l as swirl_toolbar
|
|
56
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { r as h, h as e, H as c, g as d } from "./index.a571673c.js";
|
|
2
|
+
import { u, P as f, D as m, k as b, b as w, N as g } from "./floating-ui.dom.browser.min-BtsCuEVE.45e9e353.js";
|
|
3
|
+
import { c as v } from "./index-orsBiyT_.fc4357c3.js";
|
|
4
|
+
import { o as n } from "./utils-wi_3Z3FQ.29a3aebe.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const _ = ":host{display:contents;font-weight:var(--s-font-weight-normal)}:host *{box-sizing:border-box}.tooltip{display:contents}.tooltip--active .tooltip__popper{display:block}.tooltip--visible .tooltip__popper{animation:tooltip-fade-in 0.15s;animation-delay:0.1s;animation-fill-mode:forwards;opacity:0}.tooltip--actual-placement-top .tooltip__arrow{top:calc(100% - 0.0625rem);transform:translate3d(0, -50%, 0) rotate(45deg)}.tooltip--actual-placement-bottom .tooltip__arrow{bottom:calc(100% - 0.0625rem);transform:translate3d(0, 50%, 0) rotate(45deg)}.tooltip--actual-placement-left .tooltip__arrow{left:calc(100% - 0.0625rem);transform:translate3d(-50%, 0, 0) rotate(45deg)}.tooltip--actual-placement-right .tooltip__arrow{right:calc(100% - 0.0625rem);transform:translate3d(50%, 0, 0) rotate(45deg)}.tooltip .tooltip__reference{display:contents}.tooltip__popper{position:absolute;z-index:var(--s-z-40);display:none;opacity:0}.tooltip__bubble{position:relative;display:block;padding-top:var(--s-space-8);padding-right:var(--s-space-12);padding-bottom:calc(var(--s-space-8) + 0.0625rem);padding-left:var(--s-space-12);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);line-height:var(--s-line-height-base);text-align:start;box-shadow:var(--s-shadow-level-2)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.tooltip__bubble{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.tooltip__content{white-space:normal}.tooltip__arrow{position:absolute;width:0.6875rem;height:0.6875rem;border-radius:0.125rem;background-color:var(--s-surface-neutral-default)}.tooltip--intent-info .tooltip__bubble,.tooltip--intent-info .tooltip__arrow{background-color:var(--s-surface-info-default)}@keyframes tooltip-fade-in{from{opacity:0}to{opacity:1}}", y = class {
|
|
8
|
+
constructor(t) {
|
|
9
|
+
h(this, t), this.active = !0, this.delay = 200, this.intent = "default", this.maxWidth = "17.5rem", this.position = "top", this.positioning = "absolute", this.trigger = ["focus", "hover"], this.visible = !1, this.onKeydown = (i) => {
|
|
10
|
+
i.code === "Escape" && this.hide();
|
|
11
|
+
}, this.onFocusIn = () => {
|
|
12
|
+
this.trigger.includes("focus") && this.show();
|
|
13
|
+
}, this.onFocusOut = () => {
|
|
14
|
+
this.trigger.includes("focus") && this.hide();
|
|
15
|
+
}, this.reposition = async () => {
|
|
16
|
+
var r, l;
|
|
17
|
+
const i = this.el.children[0];
|
|
18
|
+
if (!Boolean(i) || !Boolean(this.popperEl))
|
|
19
|
+
return;
|
|
20
|
+
const s = [
|
|
21
|
+
...this.options.middleware.filter((p) => p.name !== "arrow"),
|
|
22
|
+
u({ element: this.arrowElement, padding: 12 })
|
|
23
|
+
];
|
|
24
|
+
this.actualPosition = await f(i, this.popperEl, { ...this.options, middleware: s });
|
|
25
|
+
const o = (r = this.actualPosition.middlewareData.arrow) == null ? void 0 : r.x, a = (l = this.actualPosition.middlewareData.arrow) == null ? void 0 : l.y;
|
|
26
|
+
this.arrowStyles = {
|
|
27
|
+
left: Boolean(o) ? o + "px" : void 0,
|
|
28
|
+
top: Boolean(a) ? a + "px" : void 0
|
|
29
|
+
};
|
|
30
|
+
}, this.showWithDelay = () => {
|
|
31
|
+
!this.active || (Boolean(this.showTimeout) && (clearTimeout(this.showTimeout), this.showTimeout = void 0), this.showTimeout = setTimeout(() => {
|
|
32
|
+
this.show();
|
|
33
|
+
}, this.delay));
|
|
34
|
+
}, this.updateOptions = () => {
|
|
35
|
+
const i = n("--s-space-12"), s = n("--s-space-8"), o = n("--s-space-16");
|
|
36
|
+
this.options = {
|
|
37
|
+
middleware: [
|
|
38
|
+
m(i),
|
|
39
|
+
b({
|
|
40
|
+
padding: {
|
|
41
|
+
top: s,
|
|
42
|
+
bottom: s,
|
|
43
|
+
left: o,
|
|
44
|
+
right: o
|
|
45
|
+
}
|
|
46
|
+
}),
|
|
47
|
+
w()
|
|
48
|
+
],
|
|
49
|
+
placement: this.position,
|
|
50
|
+
strategy: this.positioning
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
watchPosition() {
|
|
55
|
+
this.updateOptions();
|
|
56
|
+
}
|
|
57
|
+
onMouseEnter() {
|
|
58
|
+
this.trigger.includes("hover") && this.showWithDelay();
|
|
59
|
+
}
|
|
60
|
+
onMouseLeave() {
|
|
61
|
+
this.trigger.includes("hover") && this.hide();
|
|
62
|
+
}
|
|
63
|
+
onWindowResize() {
|
|
64
|
+
!this.active || this.reposition();
|
|
65
|
+
}
|
|
66
|
+
onWindowScroll() {
|
|
67
|
+
!this.active || !this.visible || this.reposition();
|
|
68
|
+
}
|
|
69
|
+
componentWillLoad() {
|
|
70
|
+
this.reposition();
|
|
71
|
+
}
|
|
72
|
+
componentDidLoad() {
|
|
73
|
+
this.updateOptions();
|
|
74
|
+
}
|
|
75
|
+
async show() {
|
|
76
|
+
!this.active || (this.visible = !0, requestAnimationFrame(() => {
|
|
77
|
+
const t = this.el.children[0];
|
|
78
|
+
!Boolean(t) || (this.reposition(), this.disableAutoUpdate = g(t, this.popperEl, this.reposition.bind(this)));
|
|
79
|
+
}));
|
|
80
|
+
}
|
|
81
|
+
async hide() {
|
|
82
|
+
var t;
|
|
83
|
+
Boolean(this.showTimeout) && (clearTimeout(this.showTimeout), this.showTimeout = void 0), this.visible = !1, (t = this.disableAutoUpdate) == null || t.call(this);
|
|
84
|
+
}
|
|
85
|
+
render() {
|
|
86
|
+
var i, s, o;
|
|
87
|
+
const t = v("tooltip", `tooltip--actual-placement-${(i = this.actualPosition) == null ? void 0 : i.placement}`, `tooltip--intent-${this.intent}`, {
|
|
88
|
+
"tooltip--active": this.active,
|
|
89
|
+
"tooltip--visible": this.visible
|
|
90
|
+
});
|
|
91
|
+
return e(c, { key: "96bfe5772085b0355180e0a5529ee02826958de1", onKeydown: this.onKeydown }, e("span", { key: "b3a26fc2aabd2446a460e3e57e869d3c53e94df1", class: t }, e("span", { key: "16e9df7f2d679688ef70811871a96a7f2f0de121", class: "tooltip__reference", "aria-describedby": "tooltip", onFocusout: this.onFocusOut, onClick: this.hide, onFocusin: this.onFocusIn }, e("slot", { key: "e8f975020ccf67878b639fe9f81d8db972b105ed" })), e("span", { key: "308db04b1ee01609715fd9402525ff800c400ce1", class: "tooltip__popper", ref: (a) => this.popperEl = a, style: {
|
|
92
|
+
top: Boolean(this.actualPosition) ? `${(s = this.actualPosition) == null ? void 0 : s.y}px` : "",
|
|
93
|
+
left: Boolean(this.actualPosition) ? `${(o = this.actualPosition) == null ? void 0 : o.x}px` : "",
|
|
94
|
+
position: this.positioning,
|
|
95
|
+
maxWidth: this.maxWidth
|
|
96
|
+
} }, this.visible && e("span", { key: "aac57d3834798bb48566e23911c810237342d18c", class: "tooltip__bubble", id: "tooltip", part: "tooltip__bubble", role: "tooltip" }, e("span", { key: "ac370eaeca8aa321ee1785f557bf0bb0db2103bb", class: "tooltip__content", innerHTML: this.content })), e("span", { key: "c60fb13d7681cd5de23d9d8ccfc17068f9201468", class: "tooltip__arrow", ref: (a) => this.arrowElement = a, style: {
|
|
97
|
+
...this.arrowStyles,
|
|
98
|
+
visibility: this.visible ? "visible" : "hidden"
|
|
99
|
+
} }))));
|
|
100
|
+
}
|
|
101
|
+
get el() {
|
|
102
|
+
return d(this);
|
|
103
|
+
}
|
|
104
|
+
static get watchers() {
|
|
105
|
+
return {
|
|
106
|
+
position: ["watchPosition"]
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
y.style = _;
|
|
111
|
+
export {
|
|
112
|
+
y as swirl_tooltip
|
|
113
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { r, c as s, h as e, H as o, g as d } from "./index.a571673c.js";
|
|
2
|
+
import { c as l } from "./index-orsBiyT_.fc4357c3.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const h = ":host{display:inline-flex;width:100%}:host *{box-sizing:border-box}.tree-navigation-item{width:100%;list-style:none;border-radius:var(--s-border-radius-base)}.tree-navigation-item__link{display:inline-flex;align-items:center;width:100%;height:3rem;padding:0 var(--s-space-12) 0 var(--tree-nav-item-padding, var(--s-space-12));margin-bottom:var(--s-space-2);gap:calc(var(--s-space-4) - var(--s-space-2));min-width:0;border:none;background-color:transparent;color:var(--s-text-default);cursor:pointer;text-decoration:none;font:inherit;font-size:var(--s-font-size-sm);font-weight:var(--tree-nav-item-label-weight, var(--s-font-weight-medium));line-height:var(--s-line-height-sm);border-radius:var(--s-border-radius-base)}.tree-navigation-item__link:hover{background-color:var(--s-background-hovered)}.tree-navigation-item__link:active{background-color:var(--s-background-pressed)}.tree-navigation-item__link:focus{outline:none}.tree-navigation-item__link:focus-visible .tree-navigation-item__label{border-radius:var(--s-border-radius-xs);box-shadow:0 0 0 0.125rem var(--s-focus-default)}.tree-navigation-item__link--active{background-color:var(--s-background-hovered);color:var(--s-text-highlight);--tree-nav-item-label-weight:var(--s-font-weight-medium)}.tree-navigation-item__link--active:hover{background-color:var(--s-background-pressed)}.tree-navigation-item__link--active:active{background-color:var(--s-background-pressed)}.tree-navigation-item--expanded{height:100%}.tree-navigation-item__content{display:flex;align-items:center;min-width:0;flex:1}.tree-navigation-item__icon{display:inline-flex;flex-shrink:0;padding-right:var(--s-space-8)}.tree-navigation-item__toggle-icon{flex-shrink:0;max-height:1rem;color:var(--s-icon-default);margin-left:var(--s-space-4)}.tree-navigation-item__external-icon{max-height:1rem;color:var(--s-icon-default);margin-left:var(--s-space-4)}.tree-navigation-item__label{display:flex;align-items:center;min-width:0;flex:1}.tree-navigation-item__label-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-navigation-item__toggle-icon,.tree-navigation-item__external-icon{flex:0 0 auto;margin-left:var(--s-space-4)}.tree-navigation-item__children{display:flex;flex-direction:column;margin:0;padding:0;overflow:hidden;height:0;transition:height 0.3s ease-out}.tree-navigation-item__children>::slotted(swirl-tree-navigation-item){--tree-nav-item-padding:2.25rem;--tree-nav-item-label-weight:var(--s-font-weight-normal)}.tree-navigation-item__children>::slotted(*){opacity:1}.tree-navigation-item__toggle-icon{transition:transform 0.3s ease}.tree-navigation-item--expanded .tree-navigation-item__toggle-icon{transform:rotate(90deg)}", c = class {
|
|
6
|
+
constructor(a) {
|
|
7
|
+
r(this, a), this.expansionChange = s(this, "expansionChange", 7), this.level = 1, this.expandable = !0, this.external = !1, this.expanded = !1, this.hasChildren = !1, this.childrenHeight = "0", this.buttonId = `${this.navigationItemId}-button`, this.childrenId = `${this.navigationItemId}-children`, this.onKeyDown = (i) => {
|
|
8
|
+
switch (i.key) {
|
|
9
|
+
case " ":
|
|
10
|
+
i.preventDefault(), this.toggleExpanded(i);
|
|
11
|
+
break;
|
|
12
|
+
case "ArrowRight":
|
|
13
|
+
i.preventDefault(), !this.expanded && this.hasChildren && this.expand();
|
|
14
|
+
break;
|
|
15
|
+
case "ArrowLeft":
|
|
16
|
+
i.preventDefault(), this.expanded && this.collapse();
|
|
17
|
+
break;
|
|
18
|
+
}
|
|
19
|
+
}, this.toggleExpanded = (i) => {
|
|
20
|
+
this.expandable && this.hasChildren && !this.href && (i.preventDefault(), i.stopPropagation(), this.expanded ? this.collapse() : this.expand());
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
componentWillLoad() {
|
|
24
|
+
this.checkForChildren();
|
|
25
|
+
}
|
|
26
|
+
componentDidLoad() {
|
|
27
|
+
this.hasChildren && this.expanded && this.updateChildrenHeight();
|
|
28
|
+
}
|
|
29
|
+
updateChildrenHeight() {
|
|
30
|
+
if (this.childrenRef) {
|
|
31
|
+
const a = this.expanded ? `${this.childrenRef.scrollHeight}px` : "0";
|
|
32
|
+
this.childrenHeight = a;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
handleExpandedChange() {
|
|
36
|
+
this.expansionChange.emit(this.expanded), this.updateChildrenHeight();
|
|
37
|
+
}
|
|
38
|
+
checkForChildren() {
|
|
39
|
+
this.hasChildren = Boolean(this.el.querySelector("swirl-tree-navigation-item"));
|
|
40
|
+
}
|
|
41
|
+
async expand() {
|
|
42
|
+
this.expanded || !this.expandable || !this.hasChildren || (this.expanded = !0);
|
|
43
|
+
}
|
|
44
|
+
async collapse() {
|
|
45
|
+
!this.expanded || !this.expandable || !this.hasChildren || (this.expanded = !1);
|
|
46
|
+
}
|
|
47
|
+
render() {
|
|
48
|
+
const a = Boolean(this.href), i = a ? "a" : "button", t = l("tree-navigation-item__link", {
|
|
49
|
+
"tree-navigation-item__link--active": this.active,
|
|
50
|
+
"tree-navigation-item__link--has-icon": Boolean(this.icon)
|
|
51
|
+
});
|
|
52
|
+
return e(o, { key: "b81fe46aa6ba33ce8a4d41c64928082263a244f6", role: "none" }, e("li", { key: "6a74ce832a753f92690031923b8b9f1a8425651b", class: {
|
|
53
|
+
"tree-navigation-item": !0,
|
|
54
|
+
"tree-navigation-item--expanded": this.expanded
|
|
55
|
+
}, role: "treeitem", "aria-expanded": this.hasChildren ? this.expanded : void 0, "aria-level": this.level }, e(i, { key: "0f75a02bd00e5e102e1c6c8f273d08966ccffb80", onClick: this.toggleExpanded, onKeyDown: this.onKeyDown, class: t, href: this.href, target: this.target, type: a ? void 0 : "button", id: this.buttonId, "aria-current": this.active ? "page" : void 0, "aria-controls": this.hasChildren ? this.childrenId : void 0, "aria-expanded": this.hasChildren ? this.expanded : void 0 }, e("span", { key: "8e4bfb45e91113eaa4bea2109da82c8b4343b82b", class: "tree-navigation-item__content" }, this.icon && e("swirl-icon", { key: "61260e54aea4ed1bf53e75c00a9625df1cd2d477", class: "tree-navigation-item__icon", glyph: this.icon, size: 20, "aria-hidden": "true", role: "img", "aria-label": `${this.label} icon` }), e("span", { key: "fc34adc5ed6a8421a462dd1344a2e5e7ef5ab6d7", class: "tree-navigation-item__label" }, e("span", { key: "476577de1590687ab6349555dd3fdd808020b759", class: "tree-navigation-item__label-text" }, this.label), this.expandable && this.hasChildren && !this.external && e("span", { key: "1f19cf8f45409b4f7e868e265f1859dda6bf2080", class: "tree-navigation-item__toggle-icon", "aria-hidden": "true" }, e("swirl-icon-chevron-right", { key: "62d02a801266d1ca985d95d6a6891316a9e9c90d", size: 16, role: "img", "aria-label": "Expand" })), this.external && e("span", { key: "69b4040e2b59232461120cb40b45eaae6161e3ea", class: "tree-navigation-item__external-icon", "aria-hidden": "true" }, e("swirl-icon-open-in-new", { key: "23d530a2d8f8b8c776f7c21851a1d3ff09762acd", size: 16, role: "img", "aria-label": "External link" }))))), this.hasChildren && e("ul", { key: "2130be57445e1c9ae91e4eb0bcda3a7a7fb004a0", class: "tree-navigation-item__children", id: this.childrenId, role: "group", "aria-label": `${this.label} submenu`, ref: (n) => this.childrenRef = n, style: {
|
|
56
|
+
height: this.childrenHeight
|
|
57
|
+
} }, e("slot", { key: "bc7a59677b66d8179762bf3d67fe13b781e747df" }))));
|
|
58
|
+
}
|
|
59
|
+
get el() {
|
|
60
|
+
return d(this);
|
|
61
|
+
}
|
|
62
|
+
static get watchers() {
|
|
63
|
+
return {
|
|
64
|
+
expanded: ["handleExpandedChange"]
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
c.style = h;
|
|
69
|
+
export {
|
|
70
|
+
c as swirl_tree_navigation_item
|
|
71
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r, h as a, H as t } from "./index.a571673c.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const i = ":host{display:block}:host *{box-sizing:border-box}.tree-navigation{margin:0;padding:0}", s = class {
|
|
5
|
+
constructor(e) {
|
|
6
|
+
r(this, e);
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
return a(t, { key: "d21a8cbfab40de12176247f0c1543b04140156a8" }, a("ul", { key: "8fc19d1e7061769c31b4c1402845feb46ddc6ea4", "aria-label": this.label, class: "tree-navigation", role: "tree" }, a("slot", { key: "65ddba75ae00ad732355369a2f08475a3a57d461" })));
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
s.style = i;
|
|
13
|
+
export {
|
|
14
|
+
s as swirl_tree_navigation
|
|
15
|
+
};
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { r as w, c as l, f as c, h as s, F as f, H as u, g as y } from "./index.a571673c.js";
|
|
2
|
+
import { c as _ } from "./index-orsBiyT_.fc4357c3.js";
|
|
3
|
+
import { S as I } from "./sortable.esm-CMrz6687.dac971cd.js";
|
|
4
|
+
import { t as p } from "./swirl-tree-view.config-BkSXzL50.94f4a648.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const x = "swirl-tree-view-item{display:block;flex-grow:1}swirl-tree-view-item *{box-sizing:border-box}.tree-view-item{list-style:none}.tree-view-item--chosen.tree-view-item--drag:not(.tree-view-item--ghost){border-radius:var(--s-border-radius-sm);box-shadow:var(--s-shadow-level-3)}.tree-view-item--chosen.tree-view-item--drag:not(.tree-view-item--ghost) .tree-view-item__link{background-color:var(--s-background-default)}.tree-view-item--chosen.tree-view-item--drag:not(.tree-view-item--ghost) .tree-view-item__link:hover .tree-view-item__drag-handle{opacity:0}.tree-view-item--ghost{border:var(--s-border-width-default) solid var(--s-border-highlight);border-radius:var(--s-border-radius-sm)}.tree-view-item--ghost .tree-view-item__link:hover .tree-view-item__drag-handle{opacity:0}.tree-view-item--moving-via-keyboard{position:relative;z-index:1;border:var(--s-border-width-default) solid var(--s-border-highlight);border-radius:var(--s-border-radius-sm);box-shadow:var(--s-shadow-level-3)}.tree-view-item--moving-via-keyboard .tree-view-item__link{background-color:var(--s-background-default)}.tree-view-item--moving-via-keyboard .tree-view-item__link:focus-visible{outline:none}.tree-view-item--cannot-keyboard-drop{opacity:0.5}.tree-view-item--active>.tree-view-item__link{background-color:var(--s-background-hovered)}.tree-view-item--has-tags .tree-view-item__tags{display:flex}.tree-view-item__children{display:flex;margin:0;padding:0 0 0 var(--s-space-12);padding-top:var(--s-space-2);flex-direction:column;gap:var(--s-space-2)}.tree-view-item__children--drop-zone{min-height:0.5rem;margin-top:-0.5rem}.tree-view-item__link{display:flex;height:2.25rem;padding:var(--s-space-4) var(--s-space-8);align-items:center;border-radius:var(--s-border-radius-sm);color:var(--s-text-default);background-color:var(--s-background-default);font-size:var(--s-font-size-base);font-weight:var(--s-font-weight-medium);text-decoration:none;gap:var(--s-space-4)}.tree-view-item__link:hover{background-color:var(--s-background-hovered)}.tree-view-item__link:hover .tree-view-item__drag-handle{opacity:1}.tree-view-item__link:active{background-color:var(--s-background-pressed)}.tree-view-item__link:focus:not(:focus-visible){outline:none}.tree-view-item__link:focus-visible{outline-color:var(--s-focus-default)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.tree-view-item__link{font-size:var(--s-font-size-sm)}}.tree-view-item__drag-handle{display:inline-flex;flex-shrink:0;cursor:grab;opacity:0}.tree-view-item__drag-handle:active{cursor:grabbing}.tree-view-item__icon{display:block;width:1.5rem;height:1.5rem;margin-right:var(--s-space-4);flex-grow:0;flex-shrink:0;color:var(--s-icon-default);font-size:var(--s-font-size-lg)}.tree-view-item__icon ::part(icon){width:100%;height:100%}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.tree-view-item__icon{width:1.25rem;height:1.25rem;font-size:var(--s-font-size-base)}}.tree-view-item__toggle-icon{display:block;width:1.5rem;height:1.5rem;flex-grow:0;flex-shrink:0;color:var(--s-icon-default)}.tree-view-item__toggle-icon ::part(icon){width:100%;height:100%}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.tree-view-item__toggle-icon{width:1.25rem;height:1.25rem}}.tree-view-item__label{overflow:hidden;min-width:5rem;flex-grow:1;white-space:nowrap;text-overflow:ellipsis}.tree-view-item__tags{display:none;padding-left:var(--s-space-4);align-items:center;gap:var(--s-space-4)}", D = class {
|
|
8
|
+
constructor(t) {
|
|
9
|
+
w(this, t), this.dropTreeViewItem = l(this, "dropTreeViewItem", 7), this.expandedChange = l(this, "expandedChange", 7), this.itemSelected = l(this, "itemSelected", 7), this.startKeyboardMoveEvent = l(this, "startKeyboardMove", 7), this.endKeyboardMoveEvent = l(this, "endKeyboardMove", 7), this.keyboardMoveEvent = l(this, "keyboardMove", 7), this.expandable = !0, this.cannotKeyboardDropInCurrentPosition = !1, this.dragDropItemSelector = "swirl-tree-view-item", this.enableDragDrop = !1, this.expanded = !1, this.level = 0, this.movingViaKeyboard = !1, this.selected = !1, this.onFocus = () => {
|
|
10
|
+
!this.selected && this.getSemantics() === "tree" && this.select();
|
|
11
|
+
}, this.onKeyDown = (e) => {
|
|
12
|
+
if (e.code === "Space") {
|
|
13
|
+
e.preventDefault(), this.toggleKeyboardMove();
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
!this.movingViaKeyboard || (e.code === "ArrowDown" ? (e.preventDefault(), e.stopPropagation(), this.moveItem("down")) : e.code === "ArrowUp" && (e.preventDefault(), e.stopPropagation(), this.moveItem("up")));
|
|
17
|
+
}, this.onClickCollapse = (e) => {
|
|
18
|
+
e.preventDefault(), e.stopPropagation(), this.collapse();
|
|
19
|
+
}, this.onClickExpand = (e) => {
|
|
20
|
+
e.preventDefault(), e.stopPropagation(), this.expand();
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
componentWillLoad() {
|
|
24
|
+
this.updateLevel();
|
|
25
|
+
const t = this.el.closest("swirl-tree-view");
|
|
26
|
+
this.enableDragDrop = t == null ? void 0 : t.enableDragDrop, this.canDrop = t == null ? void 0 : t.canDrop, this.dragDropItemSelector = t == null ? void 0 : t.dragDropItemSelector;
|
|
27
|
+
}
|
|
28
|
+
componentDidLoad() {
|
|
29
|
+
this.setUpDragDrop();
|
|
30
|
+
}
|
|
31
|
+
async expand() {
|
|
32
|
+
this.expanded || !this.expandable || this.getSemantics() !== "tree" || (this.expanded = !0, this.expandedChange.emit(this.expanded));
|
|
33
|
+
}
|
|
34
|
+
async collapse() {
|
|
35
|
+
!this.expanded || !this.expandable || this.getSemantics() !== "tree" || (this.expanded = !1, this.expandedChange.emit(this.expanded));
|
|
36
|
+
}
|
|
37
|
+
async select(t) {
|
|
38
|
+
var e;
|
|
39
|
+
this.getSemantics() === "tree" && (this.selected = !0, t && ((e = this.link) == null || e.focus()), this.itemSelected.emit(this.el));
|
|
40
|
+
}
|
|
41
|
+
async unselect() {
|
|
42
|
+
this.getSemantics() === "tree" && (this.selected = !1);
|
|
43
|
+
}
|
|
44
|
+
setUpDragDrop() {
|
|
45
|
+
this.sortable && (this.sortable.destroy(), this.sortable = void 0), this.enableDragDrop && this.childList && (this.sortable = new I(this.childList, {
|
|
46
|
+
...p,
|
|
47
|
+
draggable: this.dragDropItemSelector,
|
|
48
|
+
onMove: (t) => {
|
|
49
|
+
var e;
|
|
50
|
+
return typeof this.canDrop == "function" ? this.canDrop({
|
|
51
|
+
parentId: (e = t.to.closest("swirl-tree-view-item")) == null ? void 0 : e.itemId,
|
|
52
|
+
position: Math.max(Array.from(t.to.children).indexOf(t.related), 0)
|
|
53
|
+
}) : !0;
|
|
54
|
+
},
|
|
55
|
+
onStart: (t) => {
|
|
56
|
+
var e, i;
|
|
57
|
+
(i = (e = p).onStart) == null || i.call(e, t);
|
|
58
|
+
},
|
|
59
|
+
onEnd: (t) => {
|
|
60
|
+
var m, d, v, g, b;
|
|
61
|
+
t.stopPropagation(), (d = (m = p).onEnd) == null || d.call(m, t);
|
|
62
|
+
const { from: e, to: i, newIndex: r, oldIndex: n, item: o } = t, a = (v = e.closest("swirl-tree-view-item")) == null ? void 0 : v.itemId, h = (g = i.closest("swirl-tree-view-item")) == null ? void 0 : g.itemId;
|
|
63
|
+
this.dropTreeViewItem.emit({
|
|
64
|
+
newIndex: r,
|
|
65
|
+
oldIndex: n,
|
|
66
|
+
item: o,
|
|
67
|
+
itemId: (b = o.id) != null ? b : o.querySelector(":scope > swirl-tree-view-item").id,
|
|
68
|
+
newNextSiblingItemId: r < i.children.length - 1 ? i.children[r + 1].id : void 0,
|
|
69
|
+
newPrevSiblingItemId: r > 0 ? i.children[r - 1].id : void 0,
|
|
70
|
+
sourceParentItemId: a,
|
|
71
|
+
targetParentItemId: h
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}));
|
|
75
|
+
}
|
|
76
|
+
updateLevel() {
|
|
77
|
+
var e, i;
|
|
78
|
+
let t = (e = this.el.parentElement) == null ? void 0 : e.closest("swirl-tree-view-item");
|
|
79
|
+
for (; Boolean(t); )
|
|
80
|
+
this.level += 1, t = (i = t.parentElement) == null ? void 0 : i.closest("swirl-tree-view-item");
|
|
81
|
+
}
|
|
82
|
+
getItemContext() {
|
|
83
|
+
var i;
|
|
84
|
+
const t = (i = this.getParentTreeViewItem()) != null ? i : this.el.closest("swirl-tree-view"), e = Array.from(t.querySelectorAll(`
|
|
85
|
+
:scope > .tree-view-item > .tree-view-item__children > ${this.dragDropItemSelector},
|
|
86
|
+
:scope > .tree-view > ${this.dragDropItemSelector}
|
|
87
|
+
`));
|
|
88
|
+
return {
|
|
89
|
+
canDrop: !this.cannotKeyboardDropInCurrentPosition,
|
|
90
|
+
parent: t,
|
|
91
|
+
position: e.indexOf(this.el),
|
|
92
|
+
siblingCount: e.length
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
getParentItem() {
|
|
96
|
+
return this.getElementToMove().parentElement.closest(this.dragDropItemSelector);
|
|
97
|
+
}
|
|
98
|
+
getParentTreeViewItem() {
|
|
99
|
+
return this.el.parentElement.closest("swirl-tree-view-item");
|
|
100
|
+
}
|
|
101
|
+
getElementToMove() {
|
|
102
|
+
return this.dragDropItemSelector ? this.el.closest(this.dragDropItemSelector) : this.el;
|
|
103
|
+
}
|
|
104
|
+
getKeyboardMoveEventData() {
|
|
105
|
+
const { canDrop: t, parent: e, position: i, siblingCount: r } = this.getItemContext();
|
|
106
|
+
if (!!e)
|
|
107
|
+
return {
|
|
108
|
+
canDrop: t,
|
|
109
|
+
parentLabel: e.label,
|
|
110
|
+
childrenCount: r,
|
|
111
|
+
itemLabel: this.label,
|
|
112
|
+
position: i
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
toggleKeyboardMove() {
|
|
116
|
+
this.movingViaKeyboard ? this.endKeyboardMove() : this.startKeyboardMove();
|
|
117
|
+
}
|
|
118
|
+
endKeyboardMove() {
|
|
119
|
+
var r, n, o, a;
|
|
120
|
+
const { parent: t, position: e } = this.getItemContext();
|
|
121
|
+
if (typeof this.canDrop == "function" && !this.canDrop({ parentId: t.id, position: e }))
|
|
122
|
+
return;
|
|
123
|
+
this.movingViaKeyboard = !1;
|
|
124
|
+
const i = this.getKeyboardMoveEventData();
|
|
125
|
+
!i || (this.endKeyboardMoveEvent.emit(i), this.dropTreeViewItem.emit({
|
|
126
|
+
item: this.getElementToMove(),
|
|
127
|
+
itemId: this.itemId,
|
|
128
|
+
newIndex: e,
|
|
129
|
+
oldIndex: this.positionBeforeKeyboardMove.position,
|
|
130
|
+
newNextSiblingItemId: i.position < i.childrenCount - 1 ? (r = this.getElementToMove().nextElementSibling) == null ? void 0 : r.id : void 0,
|
|
131
|
+
newPrevSiblingItemId: i.position > 0 ? (n = this.getElementToMove().previousElementSibling) == null ? void 0 : n.id : void 0,
|
|
132
|
+
sourceParentItemId: (o = this.positionBeforeKeyboardMove.parent.id) != null ? o : void 0,
|
|
133
|
+
targetParentItemId: (a = this.getParentItem()) == null ? void 0 : a.id
|
|
134
|
+
}));
|
|
135
|
+
}
|
|
136
|
+
startKeyboardMove() {
|
|
137
|
+
if (this.disableDrag)
|
|
138
|
+
return;
|
|
139
|
+
const { parent: t, position: e } = this.getItemContext();
|
|
140
|
+
this.positionBeforeKeyboardMove = {
|
|
141
|
+
parent: t,
|
|
142
|
+
position: e
|
|
143
|
+
}, this.movingViaKeyboard = !0;
|
|
144
|
+
const i = this.getKeyboardMoveEventData();
|
|
145
|
+
!i || this.startKeyboardMoveEvent.emit(i);
|
|
146
|
+
}
|
|
147
|
+
moveItem(t) {
|
|
148
|
+
const e = this.getElementToMove(), i = this.getParentItem(), r = this.getParentTreeViewItem();
|
|
149
|
+
if (t === "down") {
|
|
150
|
+
const o = e.nextElementSibling;
|
|
151
|
+
if (o) {
|
|
152
|
+
o.querySelector(".tree-view-item__children").prepend(e), r && c(r);
|
|
153
|
+
const a = o.tagName === "SWIRL-TREE-VIEW-ITEM" ? o : o.querySelector("swirl-tree-view-item");
|
|
154
|
+
c(a), a.expand();
|
|
155
|
+
} else
|
|
156
|
+
i && (i.parentElement.insertBefore(e, i.nextElementSibling), r && c(r));
|
|
157
|
+
} else if (t === "up") {
|
|
158
|
+
const o = e.previousElementSibling;
|
|
159
|
+
if (o) {
|
|
160
|
+
o.querySelector(".tree-view-item__children").appendChild(e), r && c(r);
|
|
161
|
+
const a = o.tagName === "SWIRL-TREE-VIEW-ITEM" ? o : o.querySelector("swirl-tree-view-item");
|
|
162
|
+
c(a), a.expand();
|
|
163
|
+
} else
|
|
164
|
+
i && (i.parentElement.insertBefore(e, i), r && c(r));
|
|
165
|
+
}
|
|
166
|
+
requestAnimationFrame(() => {
|
|
167
|
+
this.link.focus();
|
|
168
|
+
}), this.checkKeyboardDropStatus();
|
|
169
|
+
const n = this.getKeyboardMoveEventData();
|
|
170
|
+
!n || this.keyboardMoveEvent.emit(n);
|
|
171
|
+
}
|
|
172
|
+
checkKeyboardDropStatus() {
|
|
173
|
+
const { parent: t, position: e } = this.getItemContext();
|
|
174
|
+
if (typeof this.canDrop == "function") {
|
|
175
|
+
const i = this.canDrop({ parentId: t.id, position: e });
|
|
176
|
+
this.cannotKeyboardDropInCurrentPosition = !i;
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
this.cannotKeyboardDropInCurrentPosition = !1;
|
|
180
|
+
}
|
|
181
|
+
getSemantics() {
|
|
182
|
+
return this.el.closest('[role="tree"]') ? "tree" : "list";
|
|
183
|
+
}
|
|
184
|
+
render() {
|
|
185
|
+
const t = Boolean(this.el.querySelector("swirl-tree-view-item")), e = Boolean(this.el.querySelector('[slot="tags"]')), i = Boolean(this.icon) && /\p{Extended_Pictographic}/u.test(this.icon), r = this.enableDragDrop && !t, n = this.getSemantics(), o = this.expanded || n !== "tree", a = n === "tree" ? this.selected ? 0 : -1 : void 0, h = n === "tree" ? "li" : "div", m = _("tree-view-item", {
|
|
186
|
+
"tree-view-item--active": this.active,
|
|
187
|
+
"tree-view-item--cannot-keyboard-drop": this.cannotKeyboardDropInCurrentPosition,
|
|
188
|
+
"tree-view-item--moving-via-keyboard": this.movingViaKeyboard,
|
|
189
|
+
"tree-view-item--disable-drag": this.disableDrag,
|
|
190
|
+
"tree-view-item--has-tags": e
|
|
191
|
+
});
|
|
192
|
+
return s(u, { key: "85e75eb2f59216e51173b3be1bbd5ee7c77e4d5e", id: this.itemId, role: n === "tree" ? "none" : "listitem" }, s(h, { key: "873f1009d2fc31ca6405ba8680eb9c7ed52e6237", class: m, role: n === "tree" ? "none" : void 0 }, s("a", { key: "ddadb7672ced5d49a1889c207ed5414fe843166e", "aria-current": this.active ? "page" : void 0, "aria-expanded": !t || n !== "tree" ? void 0 : String(o), "aria-level": n === "tree" ? this.level + 1 : void 0, "aria-owns": t && n === "tree" ? `${this.itemId}-children` : void 0, "aria-selected": n === "tree" ? String(this.selected) : void 0, class: "tree-view-item__link", href: this.href, onFocus: this.onFocus, onKeyDown: this.onKeyDown, ref: (d) => this.link = d, role: n === "tree" ? "treeitem" : void 0, tabIndex: a }, !this.disableDrag && this.enableDragDrop && s("span", { key: "4a19b915e35d9792020eeaae8f6c3c1541683a75", class: "tree-view-item__drag-handle" }, s("swirl-icon-drag-handle", { key: "6a439888a065b56dbead1a59b88fff795797e8b2", size: 20 })), this.expandable && n === "tree" && s("span", { key: "316317a5c271899435f34345d262cf585d2f5f50", class: "tree-view-item__toggle-icon" }, t && s(f, { key: "0b4577f22f88f402c6dc408f1cd77e4bd7c5f769" }, o ? s("swirl-icon-expand-more", { onClick: this.onClickCollapse, size: 24 }) : s("swirl-icon-chevron-right", { onClick: this.onClickExpand, size: 24 }))), Boolean(this.icon) && s(f, { key: "ad5645282c3699345a4c286e989b17f81312663b" }, s("span", { key: "3549def1d7f07c0ae74957be4ae884a867ecdfe7", class: "tree-view-item__icon" }, i ? this.icon : s("swirl-icon", { glyph: this.icon, size: 24, color: this.iconColor }))), s("span", { key: "b4754d092b4cd2772ef5469dbe16b03b8417c022", class: "tree-view-item__label" }, this.label), s("span", { key: "942a98ae9ddaf1996ae7dbfc86cdef867a562cdc", class: "tree-view-item__tags" }, s("slot", { key: "ac063ace7e68e1eaa9139fd2bed11872475888db", name: "tags" }))), s("ul", { key: "6e68c5bb3011f85db3194d1ce2ffb59696e108de", "aria-label": this.label, class: `tree-view-item__children ${r ? "tree-view-item__children--drop-zone" : ""}`, id: `${this.itemId}-children`, ref: (d) => this.childList = d, role: n === "tree" ? "group" : void 0, style: {
|
|
193
|
+
display: (!o || !t) && !r ? "none" : void 0
|
|
194
|
+
} }, s("slot", { key: "f85be0b35de0af062619dd7d2503b9a167122102" }))));
|
|
195
|
+
}
|
|
196
|
+
get el() {
|
|
197
|
+
return y(this);
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
D.style = x;
|
|
201
|
+
export {
|
|
202
|
+
D as swirl_tree_view_item
|
|
203
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
animation: 100,
|
|
3
|
+
chosenClass: "tree-view-item--chosen",
|
|
4
|
+
direction: "vertical",
|
|
5
|
+
dragClass: "tree-view-item--drag",
|
|
6
|
+
emptyInsertThreshold: 0,
|
|
7
|
+
fallbackOnBody: !0,
|
|
8
|
+
filter: ".tree-view-item--disable-drag",
|
|
9
|
+
ghostClass: "tree-view-item--ghost",
|
|
10
|
+
group: "swirl-tree-view",
|
|
11
|
+
invertSwap: !0,
|
|
12
|
+
onEnd: (t) => {
|
|
13
|
+
var e;
|
|
14
|
+
(e = t.item.closest(".tree-view")) == null || e.classList.remove("tree-view--dragging");
|
|
15
|
+
},
|
|
16
|
+
onStart: (t) => {
|
|
17
|
+
var e;
|
|
18
|
+
(e = t.item.closest(".tree-view")) == null || e.classList.add("tree-view--dragging");
|
|
19
|
+
},
|
|
20
|
+
invertedSwapThreshold: 0.75
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
r as t
|
|
24
|
+
};
|