@getflip/swirl-components-react 0.62.0 → 0.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{file-manager.entry.24003371.js → file-manager.entry.359508df.js} +1 -1
- package/dist/index.49b68312.js +1458 -0
- package/dist/stencil-generated/index.d.ts +2 -0
- package/dist/{swirl-action-list-section.entry.1f7368cf.js → swirl-action-list-section.entry.d59402f4.js} +1 -1
- package/dist/{swirl-action-list_3.entry.d8d363da.js → swirl-action-list_3.entry.c444d6ab.js} +10 -10
- package/dist/{swirl-app-bar.entry.e785a2d0.js → swirl-app-bar.entry.5fecb7ad.js} +1 -1
- package/dist/{swirl-app-icon.entry.36bb9bc5.js → swirl-app-icon.entry.995ecee8.js} +1 -1
- package/dist/{swirl-app-layout_7.entry.874673cb.js → swirl-app-layout_7.entry.f628e2e2.js} +2 -2
- package/dist/{swirl-autocomplete.entry.b621c057.js → swirl-autocomplete.entry.be6a8785.js} +2 -2
- package/dist/{swirl-avatar-group.entry.103ee786.js → swirl-avatar-group.entry.634c7b55.js} +1 -1
- package/dist/{swirl-avatar.entry.da70d0ea.js → swirl-avatar.entry.c52d0f2a.js} +1 -1
- package/dist/{swirl-badge.entry.018c5b82.js → swirl-badge.entry.ba0334bb.js} +1 -1
- package/dist/{swirl-banner.entry.485f5ce5.js → swirl-banner.entry.85df2fc8.js} +2 -2
- package/dist/{swirl-button-group.entry.8a5d46b8.js → swirl-button-group.entry.a4c8367e.js} +1 -1
- package/dist/{swirl-button.entry.8fb0fa73.js → swirl-button.entry.edea9f53.js} +3 -3
- package/dist/{swirl-card.entry.25eaa55a.js → swirl-card.entry.53d7eec0.js} +1 -1
- package/dist/{swirl-carousel-slide.entry.91b22c87.js → swirl-carousel-slide.entry.6712f940.js} +1 -1
- package/dist/{swirl-carousel.entry.6b220443.js → swirl-carousel.entry.83318470.js} +2 -2
- package/dist/{swirl-checkbox.entry.d5eab782.js → swirl-checkbox.entry.4241d77d.js} +1 -1
- package/dist/{swirl-chip.entry.0638b835.js → swirl-chip.entry.a72f62b5.js} +2 -2
- package/dist/{swirl-columns.entry.3f9c282f.js → swirl-columns.entry.984a87c9.js} +1 -1
- package/dist/swirl-components-react.js +67 -65
- package/dist/swirl-components-react.umd.cjs +54 -54
- package/dist/{swirl-console-layout.entry.ad63a8cf.js → swirl-console-layout.entry.23dc7975.js} +2 -2
- package/dist/{swirl-date-input.entry.9ac71ed4.js → swirl-date-input.entry.a7b13aca.js} +2 -2
- package/dist/{swirl-date-picker_2.entry.fc11a1c2.js → swirl-date-picker_2.entry.c6a8775b.js} +1 -1
- package/dist/{swirl-description-list-item.entry.ca6cdf0f.js → swirl-description-list-item.entry.e73da313.js} +1 -1
- package/dist/{swirl-description-list.entry.1cc8060f.js → swirl-description-list.entry.73fdfc0a.js} +1 -1
- package/dist/{swirl-dialog.entry.2cbebd3e.js → swirl-dialog.entry.4ac6f271.js} +1 -1
- package/dist/{swirl-file-uploader.entry.1b9dd21f.js → swirl-file-uploader.entry.0c5d1d1a.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.c6716739.js → swirl-file-viewer_7.entry.175385a0.js} +2 -2
- package/dist/{swirl-form-control.entry.326b26b7.js → swirl-form-control.entry.e78c132b.js} +2 -2
- package/dist/{swirl-form-group.entry.a817ed2c.js → swirl-form-group.entry.d49b74d8.js} +1 -1
- package/dist/{swirl-heading.entry.ca6b304c.js → swirl-heading.entry.0b5555b5.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.8ace3b33.js → swirl-icon-add-photo.entry.8f40bd01.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.8b5baae3.js → swirl-icon-add_6.entry.8fcf5b86.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.e93b9113.js → swirl-icon-admin-panel-settings.entry.ab566213.js} +1 -1
- package/dist/{swirl-icon-ai.entry.3ae1d269.js → swirl-icon-ai.entry.0d36dba2.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.b731be12.js → swirl-icon-arrow-back.entry.f9765669.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.58cb6849.js → swirl-icon-arrow-downward_2.entry.639a0bca.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.546d93e1.js → swirl-icon-arrow-forward.entry.4c4ef23c.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.cf6b9506.js → swirl-icon-arrow-left_4.entry.f6a91679.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.288c50a5.js → swirl-icon-arrow-right-small.entry.b0cf61b8.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.10c5625e.js → swirl-icon-attachment.entry.2c16ea10.js} +1 -1
- package/dist/{swirl-icon-bar-chart.entry.a74468e0.js → swirl-icon-bar-chart.entry.72b2e01b.js} +1 -1
- package/dist/{swirl-icon-block.entry.e4d315f1.js → swirl-icon-block.entry.0aa53e54.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.f8a449bb.js → swirl-icon-bookmark.entry.3c9c0949.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.ccd4fc02.js → swirl-icon-cancel_4.entry.9c2e79df.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.80eed525.js → swirl-icon-chat-bubble.entry.2035e92b.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.85fa092f.js → swirl-icon-chats-filled.entry.a5edb2a8.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.855429ea.js → swirl-icon-chats-outlined.entry.98898e62.js} +1 -1
- package/dist/{swirl-icon-check-circle_3.entry.ef68cabf.js → swirl-icon-check-circle_3.entry.bcaf4180.js} +1 -1
- package/dist/swirl-icon-check-small_3.entry.e5698819.js +69 -0
- package/dist/{swirl-icon-check-strong.entry.3e9cb315.js → swirl-icon-check-strong.entry.c4745fea.js} +1 -1
- package/dist/{swirl-icon-check.entry.e5a98365.js → swirl-icon-check.entry.17e05e3a.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.b5ab55e7.js → swirl-icon-chevron-left.entry.86bc8635.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.140aa936.js → swirl-icon-chevron-right.entry.1985793f.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.7b759abf.js → swirl-icon-close-small.entry.78354325.js} +1 -1
- package/dist/{swirl-icon-close.entry.8a0d5d0f.js → swirl-icon-close.entry.f7147131.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.724f8eb2.js → swirl-icon-cloud-upload.entry.f064ba1a.js} +1 -1
- package/dist/{swirl-icon-column.entry.33757cc9.js → swirl-icon-column.entry.93db3568.js} +1 -1
- package/dist/{swirl-icon-comment.entry.11c6730e.js → swirl-icon-comment.entry.49457d57.js} +1 -1
- package/dist/{swirl-icon-copy.entry.b03c375f.js → swirl-icon-copy.entry.00f26d2e.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.92c50887.js → swirl-icon-date-range.entry.414dacf1.js} +1 -1
- package/dist/{swirl-icon-delete.entry.db1fb559.js → swirl-icon-delete.entry.84136dea.js} +1 -1
- package/dist/{swirl-icon-description.entry.686fb05a.js → swirl-icon-description.entry.1b88c2ff.js} +1 -1
- package/dist/{swirl-icon-double-arrow-left.entry.8271f46e.js → swirl-icon-double-arrow-left.entry.1170c2f9.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.7ff74af9.js → swirl-icon-double-arrow-right.entry.910b7bba.js} +1 -1
- package/dist/{swirl-icon-download.entry.d7d3a650.js → swirl-icon-download.entry.659b7418.js} +1 -1
- package/dist/{swirl-icon-edit.entry.b1e3bf3e.js → swirl-icon-edit.entry.0ec205e7.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.fb694852.js → swirl-icon-emoji-mood.entry.9fcdf0d3.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.4eb2cf47.js → swirl-icon-emoji-satisfied.entry.96ed89b7.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.4f7cae94.js → swirl-icon-error_3.entry.dc3dab01.js} +2 -2
- package/dist/{swirl-icon-expand-more.entry.6252dcf2.js → swirl-icon-expand-more.entry.f145db33.js} +1 -1
- package/dist/{swirl-icon-filter.entry.177e90f0.js → swirl-icon-filter.entry.e6f0d94e.js} +1 -1
- package/dist/{swirl-icon-folder.entry.029e65b0.js → swirl-icon-folder.entry.ad153e12.js} +1 -1
- package/dist/{swirl-icon-gif.entry.eb86b036.js → swirl-icon-gif.entry.cfaabb38.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.0fa26a59.js → swirl-icon-group-assign.entry.a8da8fcd.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.e33b80fd.js → swirl-icon-groups-custom.entry.c934cf81.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.aa139aba.js → swirl-icon-groups-filled.entry.d6ba8e09.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.a9d8ba90.js → swirl-icon-groups-outlined.entry.e35d1fe7.js} +1 -1
- package/dist/{swirl-icon-groups.entry.ef2fa571.js → swirl-icon-groups.entry.be0f53fa.js} +1 -1
- package/dist/{swirl-icon-help.entry.60b6ac52.js → swirl-icon-help.entry.cdd2f30a.js} +1 -1
- package/dist/{swirl-icon-highlight.entry.098be09d.js → swirl-icon-highlight.entry.869358b9.js} +1 -1
- package/dist/{swirl-icon-home.entry.6f777358.js → swirl-icon-home.entry.4aedd288.js} +1 -1
- package/dist/{swirl-icon-image.entry.2ad117af.js → swirl-icon-image.entry.f5c350ab.js} +1 -1
- package/dist/{swirl-icon-improve-text.entry.52859039.js → swirl-icon-improve-text.entry.47193583.js} +1 -1
- package/dist/{swirl-icon-insert-below.entry.911e22ca.js → swirl-icon-insert-below.entry.0ae35796.js} +1 -1
- package/dist/{swirl-icon-insert-on-top.entry.573a5c1b.js → swirl-icon-insert-on-top.entry.fdfe1db5.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.e3e8f13b.js → swirl-icon-inventory.entry.bc1adecb.js} +1 -1
- package/dist/{swirl-icon-like.entry.4afab508.js → swirl-icon-like.entry.c4dddd9c.js} +1 -1
- package/dist/{swirl-icon-link.entry.b394cf97.js → swirl-icon-link.entry.42ed257c.js} +1 -1
- package/dist/{swirl-icon-lock-person.entry.40628f86.js → swirl-icon-lock-person.entry.898388ee.js} +1 -1
- package/dist/{swirl-icon-lock.entry.32f74440.js → swirl-icon-lock.entry.76a2d1a4.js} +1 -1
- package/dist/{swirl-icon-logout.entry.1c7879d3.js → swirl-icon-logout.entry.0ca48bdf.js} +1 -1
- package/dist/{swirl-icon-long-text.entry.02627594.js → swirl-icon-long-text.entry.bf956f36.js} +1 -1
- package/dist/{swirl-icon-mail.entry.488c5f5a.js → swirl-icon-mail.entry.35e6a42f.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.adceb36a.js → swirl-icon-manage-accounts.entry.e52fb1a8.js} +1 -1
- package/dist/{swirl-icon-mark-chat-read.entry.b6caa8ed.js → swirl-icon-mark-chat-read.entry.fd166792.js} +1 -1
- package/dist/{swirl-icon-mark-chat-unread.entry.5df3624f.js → swirl-icon-mark-chat-unread.entry.e21ea28e.js} +1 -1
- package/dist/{swirl-icon-mention.entry.1565c20c.js → swirl-icon-mention.entry.ff33ccd6.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.13e1f975.js → swirl-icon-menu-filled.entry.14f065c1.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.95f7995c.js → swirl-icon-menu-outlined.entry.aee25284.js} +1 -1
- package/dist/{swirl-icon-menu.entry.04ea174f.js → swirl-icon-menu.entry.5dfd4d4c.js} +1 -1
- package/dist/{swirl-icon-message.entry.157fb78b.js → swirl-icon-message.entry.98db153c.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.938cc21e.js → swirl-icon-more-horizontal.entry.dcc53518.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.f5985e5f.js → swirl-icon-news-filled.entry.c7fd4b59.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.2590b41a.js → swirl-icon-news-outlined.entry.b8a06d1d.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.63d42383.js → swirl-icon-notifications-active.entry.fd974461.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.c7df9693.js → swirl-icon-notifications-off.entry.35d35e1c.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.9bda4a07.js → swirl-icon-notifications.entry.df9dbba8.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.48f4dc9c.js → swirl-icon-open-in-new.entry.aee8adef.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.895a3777.js → swirl-icon-people-alt.entry.f756956d.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.3302edc8.js → swirl-icon-person-off.entry.85d890a5.js} +1 -1
- package/dist/{swirl-icon-person.entry.b4402535.js → swirl-icon-person.entry.4d9057e7.js} +1 -1
- package/dist/{swirl-icon-phone.entry.07b02f13.js → swirl-icon-phone.entry.0475f429.js} +1 -1
- package/dist/{swirl-icon-play-arrow.entry.00dc1a7e.js → swirl-icon-play-arrow.entry.3a43e275.js} +1 -1
- package/dist/{swirl-icon-poll.entry.ea4615fb.js → swirl-icon-poll.entry.a57ddc57.js} +1 -1
- package/dist/{swirl-icon-print.entry.cbdd7662.js → swirl-icon-print.entry.efd90b86.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.34bcf6d9.js → swirl-icon-recieved.entry.2cd2cc31.js} +1 -1
- package/dist/{swirl-icon-reply.entry.21577421.js → swirl-icon-reply.entry.c810530d.js} +1 -1
- package/dist/{swirl-icon-roadmap.entry.b9575591.js → swirl-icon-roadmap.entry.c71839ab.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.99c02f83.js → swirl-icon-search-strong.entry.6ebd4919.js} +1 -1
- package/dist/{swirl-icon-search.entry.e440d8dc.js → swirl-icon-search.entry.d6b55427.js} +1 -1
- package/dist/{swirl-icon-send.entry.fee4a54f.js → swirl-icon-send.entry.9a9d2140.js} +1 -1
- package/dist/{swirl-icon-settings.entry.354a9ae1.js → swirl-icon-settings.entry.53edfa41.js} +1 -1
- package/dist/{swirl-icon-short-text.entry.320b0241.js → swirl-icon-short-text.entry.b6a30e87.js} +1 -1
- package/dist/{swirl-icon-simplify.entry.c2da4eea.js → swirl-icon-simplify.entry.6652b82e.js} +1 -1
- package/dist/{swirl-icon-spellcheck.entry.0ccb458d.js → swirl-icon-spellcheck.entry.6698bfd2.js} +1 -1
- package/dist/{swirl-icon-sync.entry.1c2ac832.js → swirl-icon-sync.entry.ffadc356.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.0de89eb8.js → swirl-icon-tasks-filled.entry.94765285.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.85067abf.js → swirl-icon-tasks-outlined.entry.7414bfa6.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.9b584dd2.js → swirl-icon-time-filled.entry.1e3b9b1e.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.16fe0a19.js → swirl-icon-time-outlined.entry.e477e967.js} +1 -1
- package/dist/{swirl-icon-undo.entry.913d8346.js → swirl-icon-undo.entry.d7f195c0.js} +1 -1
- package/dist/{swirl-icon-unlock-person.entry.bf8eaa93.js → swirl-icon-unlock-person.entry.ee6e3708.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.c9d0f657.js → swirl-icon-user-assign.entry.5619d0ba.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.accdba28.js → swirl-icon-video-camera.entry.25754e11.js} +1 -1
- package/dist/{swirl-icon-video-library.entry.0a166f51.js → swirl-icon-video-library.entry.e30f0d2d.js} +1 -1
- package/dist/{swirl-icon-voice.entry.8485ff56.js → swirl-icon-voice.entry.36132ee8.js} +1 -1
- package/dist/{swirl-icon.entry.bc7d8445.js → swirl-icon.entry.b6f0bd39.js} +1 -1
- package/dist/{swirl-inline-notification.entry.1f2e82fd.js → swirl-inline-notification.entry.4bfee0a5.js} +1 -1
- package/dist/{swirl-inline-status.entry.2cd2dda6.js → swirl-inline-status.entry.87f03345.js} +2 -2
- package/dist/{swirl-lightbox.entry.02d3c1d8.js → swirl-lightbox.entry.443dce5b.js} +2 -2
- package/dist/{swirl-link.entry.01ee24a0.js → swirl-link.entry.50948339.js} +1 -1
- package/dist/{swirl-list.entry.028a6a90.js → swirl-list.entry.3a230d0c.js} +1 -1
- package/dist/swirl-menu-item.entry.766a0870.js +76 -0
- package/dist/swirl-menu.entry.e27311ef.js +167 -0
- package/dist/{swirl-modal.entry.69d4dde6.js → swirl-modal.entry.c1e50728.js} +1 -1
- package/dist/{swirl-option-list-section.entry.72ed8132.js → swirl-option-list-section.entry.d1f6c0e1.js} +1 -1
- package/dist/swirl-option-list.entry.02ae7c4c.js +1406 -0
- package/dist/{swirl-pagination.entry.c2cd729f.js → swirl-pagination.entry.02bda3da.js} +2 -2
- package/dist/{swirl-pdf-reader.entry.af566adb.js → swirl-pdf-reader.entry.1515ab48.js} +2 -2
- package/dist/{swirl-popover.entry.9444c19b.js → swirl-popover.entry.959c3513.js} +8 -8
- package/dist/{swirl-progress-indicator.entry.45230d91.js → swirl-progress-indicator.entry.f14fe50d.js} +1 -1
- package/dist/{swirl-radio-group.entry.4acea712.js → swirl-radio-group.entry.42b76c42.js} +1 -1
- package/dist/{swirl-radio.entry.eda9999a.js → swirl-radio.entry.d804c26e.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.e4b9c785.js → swirl-resource-list-file-item.entry.53d87439.js} +2 -2
- package/dist/{swirl-search.entry.c8ed62ae.js → swirl-search.entry.565ac4d7.js} +2 -2
- package/dist/{swirl-select.entry.e242b369.js → swirl-select.entry.0f636856.js} +2 -2
- package/dist/{swirl-shell-layout.entry.352ff523.js → swirl-shell-layout.entry.a58b4bf3.js} +2 -2
- package/dist/{swirl-shell-navigation-item.entry.a787b43f.js → swirl-shell-navigation-item.entry.3b2a4270.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.b08849e6.js → swirl-skeleton-box.entry.b58a2a53.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.99b8e276.js → swirl-skeleton-text.entry.624b3871.js} +1 -1
- package/dist/{swirl-stack.entry.56fb63a7.js → swirl-stack.entry.2ca47a74.js} +1 -1
- package/dist/{swirl-status-indicator.entry.64a586c0.js → swirl-status-indicator.entry.8b948847.js} +1 -1
- package/dist/{swirl-switch.entry.ac9f682a.js → swirl-switch.entry.100d8b82.js} +1 -1
- package/dist/{swirl-tab-bar.entry.1be17259.js → swirl-tab-bar.entry.b319ca80.js} +1 -1
- package/dist/{swirl-tab.entry.effe4eaf.js → swirl-tab.entry.375bb83c.js} +1 -1
- package/dist/{swirl-table-cell.entry.0cde9ca5.js → swirl-table-cell.entry.2d7bee62.js} +1 -1
- package/dist/{swirl-table-column.entry.4b083fcd.js → swirl-table-column.entry.5fceed95.js} +2 -2
- package/dist/{swirl-table-row-group.entry.2e9abd37.js → swirl-table-row-group.entry.f23275a9.js} +1 -1
- package/dist/{swirl-table-row.entry.ee0821b7.js → swirl-table-row.entry.acb571d2.js} +2 -2
- package/dist/{swirl-table.entry.ec28d620.js → swirl-table.entry.a0d1a619.js} +2 -2
- package/dist/{swirl-tabs.entry.d041f79e.js → swirl-tabs.entry.a3075385.js} +1 -1
- package/dist/{swirl-tag.entry.6ea22573.js → swirl-tag.entry.2bf3d278.js} +1 -1
- package/dist/{swirl-text-input.entry.e41d2f70.js → swirl-text-input.entry.41a060fc.js} +3 -3
- package/dist/{swirl-text.entry.6bff7fda.js → swirl-text.entry.113435aa.js} +1 -1
- package/dist/{swirl-theme-provider.entry.208f78fb.js → swirl-theme-provider.entry.46102920.js} +1 -1
- package/dist/{swirl-toast-provider.entry.83038116.js → swirl-toast-provider.entry.74824755.js} +1 -1
- package/dist/{swirl-toast.entry.4ecd4050.js → swirl-toast.entry.21e21b03.js} +2 -2
- package/dist/{swirl-tooltip.entry.0c2d763f.js → swirl-tooltip.entry.44eaabc1.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.36ac1f8c.js → swirl-tree-navigation-item.entry.a04dd44d.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.e75cfaad.js → swirl-video-thumbnail.entry.36ce6911.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.b83ea2ec.js → swirl-visually-hidden.entry.b0b4e133.js} +1 -1
- package/dist/utils-bc84f36e.9f3a93b6.js +56 -0
- package/dist/{wc-datepicker.entry.c5a53e07.js → wc-datepicker.entry.7393df8b.js} +1 -1
- package/package.json +2 -2
- package/dist/index.55285fae.js +0 -1456
- package/dist/swirl-icon-check-small_4.entry.c37b0329.js +0 -1469
- package/dist/utils-61f188cc.4a43deab.js +0 -52
|
@@ -1,1469 +0,0 @@
|
|
|
1
|
-
import { r as $t, h as g, F as ht, c as ie, H as xe, g as Ee } from "./index.55285fae.js";
|
|
2
|
-
import { c as ae } from "./index-d280dafb.186cdb0e.js";
|
|
3
|
-
import { c as he, q as fe, a as Xe } from "./utils-61f188cc.4a43deab.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "react-dom";
|
|
6
|
-
const Ye = ":host{display:inline-flex}", Re = class {
|
|
7
|
-
constructor(e) {
|
|
8
|
-
$t(this, e), this.size = 24;
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
const e = this.size === 20 ? 24 : this.size, t = ae("swirl-icon", `swirl-icon--size-${this.size}`);
|
|
12
|
-
return g("svg", { class: t, fill: "none", height: this.size, part: "icon", viewBox: `0 0 ${e} ${e}`, width: this.size, xmlns: "http://www.w3.org/2000/svg" }, this.size === 16 && g(ht, null, g("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12.4142 4.91924C12.8047 5.30976 12.8047 5.94293 12.4142 6.33345L7.08086 11.6667C6.69033 12.0572 6.05717 12.0572 5.66664 11.6667L3.70711 9.70707C3.31658 9.31655 3.31658 8.68338 3.70711 8.29286C4.09763 7.90233 4.7308 7.90233 5.12132 8.29286L6.37375 9.54539L11 4.91924C11.3905 4.52871 12.0237 4.52871 12.4142 4.91924Z", fill: "currentColor" })), (this.size === 20 || this.size === 24) && g(ht, null, g("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M18.6213 7.37879C19.2071 7.96458 19.2071 8.91433 18.6213 9.50011L10.6213 17.5C10.0355 18.0858 9.08577 18.0858 8.49998 17.5L5.56068 14.5605C4.97489 13.9748 4.97489 13.025 5.56068 12.4392C6.14646 11.8534 7.09621 11.8534 7.682 12.4392L9.56064 14.318L16.5 7.37879C17.0858 6.79301 18.0355 6.79301 18.6213 7.37879Z", fill: "currentColor" })), this.size === 28 && g(ht, null, g("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M21.7248 8.60863C22.4083 9.29205 22.4083 10.4001 21.7248 11.0835L12.3915 20.4167C11.7081 21.1001 10.6001 21.1001 9.91663 20.4167L6.48744 16.9873C5.80403 16.3039 5.80403 15.1959 6.48744 14.5125C7.17086 13.8291 8.2789 13.8291 8.96232 14.5125L11.1541 16.7044L19.25 8.60863C19.9334 7.92521 21.0414 7.92521 21.7248 8.60863Z", fill: "currentColor" })));
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
Re.style = Ye;
|
|
16
|
-
const We = ":host{display:inline-flex}", Ge = class {
|
|
17
|
-
constructor(e) {
|
|
18
|
-
$t(this, e), this.size = 24;
|
|
19
|
-
}
|
|
20
|
-
render() {
|
|
21
|
-
const e = this.size === 20 ? 24 : this.size, t = ae("swirl-icon", `swirl-icon--size-${this.size}`);
|
|
22
|
-
return g("svg", { class: t, fill: "none", height: this.size, part: "icon", viewBox: `0 0 ${e} ${e}`, width: this.size, xmlns: "http://www.w3.org/2000/svg" }, this.size === 16 && g(ht, null, g("rect", { x: "9", y: "3", width: "2", height: "2", rx: "1", fill: "currentColor" }), g("rect", { x: "9", y: "7", width: "2", height: "2", rx: "1", fill: "currentColor" }), g("rect", { x: "9", y: "11", width: "2", height: "2", rx: "1", fill: "currentColor" }), g("rect", { x: "5", y: "3", width: "2", height: "2", rx: "1", fill: "currentColor" }), g("rect", { x: "5", y: "7", width: "2", height: "2", rx: "1", fill: "currentColor" }), g("rect", { x: "5", y: "11", width: "2", height: "2", rx: "1", fill: "currentColor" })), (this.size === 20 || this.size === 24) && g(ht, null, g("rect", { x: "13.5", y: "4.5", width: "3", height: "3", rx: "1.5", fill: "currentColor" }), g("rect", { x: "13.5", y: "10.5", width: "3", height: "3", rx: "1.5", fill: "currentColor" }), g("rect", { x: "13.5", y: "16.5", width: "3", height: "3", rx: "1.5", fill: "currentColor" }), g("rect", { x: "7.5", y: "4.5", width: "3", height: "3", rx: "1.5", fill: "currentColor" }), g("rect", { x: "7.5", y: "10.5", width: "3", height: "3", rx: "1.5", fill: "currentColor" }), g("rect", { x: "7.5", y: "16.5", width: "3", height: "3", rx: "1.5", fill: "currentColor" })), this.size === 28 && g(ht, null, g("rect", { x: "15.75", y: "5.25", width: "3.5", height: "3.5", rx: "1.75", fill: "currentColor" }), g("rect", { x: "15.75", y: "12.25", width: "3.5", height: "3.5", rx: "1.75", fill: "currentColor" }), g("rect", { x: "15.75", y: "19.25", width: "3.5", height: "3.5", rx: "1.75", fill: "currentColor" }), g("rect", { x: "8.75", y: "5.25", width: "3.5", height: "3.5", rx: "1.75", fill: "currentColor" }), g("rect", { x: "8.75", y: "12.25", width: "3.5", height: "3.5", rx: "1.75", fill: "currentColor" }), g("rect", { x: "8.75", y: "19.25", width: "3.5", height: "3.5", rx: "1.75", fill: "currentColor" })));
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
Ge.style = We;
|
|
26
|
-
/**!
|
|
27
|
-
* Sortable 1.15.0
|
|
28
|
-
* @author RubaXa <trash@rubaxa.org>
|
|
29
|
-
* @author owenm <owen23355@gmail.com>
|
|
30
|
-
* @license MIT
|
|
31
|
-
*/
|
|
32
|
-
function pe(e, t) {
|
|
33
|
-
var i = Object.keys(e);
|
|
34
|
-
if (Object.getOwnPropertySymbols) {
|
|
35
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
36
|
-
t && (o = o.filter(function(n) {
|
|
37
|
-
return Object.getOwnPropertyDescriptor(e, n).enumerable;
|
|
38
|
-
})), i.push.apply(i, o);
|
|
39
|
-
}
|
|
40
|
-
return i;
|
|
41
|
-
}
|
|
42
|
-
function $(e) {
|
|
43
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
44
|
-
var i = arguments[t] != null ? arguments[t] : {};
|
|
45
|
-
t % 2 ? pe(Object(i), !0).forEach(function(o) {
|
|
46
|
-
$e(e, o, i[o]);
|
|
47
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : pe(Object(i)).forEach(function(o) {
|
|
48
|
-
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(i, o));
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
return e;
|
|
52
|
-
}
|
|
53
|
-
function zt(e) {
|
|
54
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? zt = function(t) {
|
|
55
|
-
return typeof t;
|
|
56
|
-
} : zt = function(t) {
|
|
57
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
58
|
-
}, zt(e);
|
|
59
|
-
}
|
|
60
|
-
function $e(e, t, i) {
|
|
61
|
-
return t in e ? Object.defineProperty(e, t, {
|
|
62
|
-
value: i,
|
|
63
|
-
enumerable: !0,
|
|
64
|
-
configurable: !0,
|
|
65
|
-
writable: !0
|
|
66
|
-
}) : e[t] = i, e;
|
|
67
|
-
}
|
|
68
|
-
function U() {
|
|
69
|
-
return U = Object.assign || function(e) {
|
|
70
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
71
|
-
var i = arguments[t];
|
|
72
|
-
for (var o in i)
|
|
73
|
-
Object.prototype.hasOwnProperty.call(i, o) && (e[o] = i[o]);
|
|
74
|
-
}
|
|
75
|
-
return e;
|
|
76
|
-
}, U.apply(this, arguments);
|
|
77
|
-
}
|
|
78
|
-
function je(e, t) {
|
|
79
|
-
if (e == null)
|
|
80
|
-
return {};
|
|
81
|
-
var i = {}, o = Object.keys(e), n, r;
|
|
82
|
-
for (r = 0; r < o.length; r++)
|
|
83
|
-
n = o[r], !(t.indexOf(n) >= 0) && (i[n] = e[n]);
|
|
84
|
-
return i;
|
|
85
|
-
}
|
|
86
|
-
function Ve(e, t) {
|
|
87
|
-
if (e == null)
|
|
88
|
-
return {};
|
|
89
|
-
var i = je(e, t), o, n;
|
|
90
|
-
if (Object.getOwnPropertySymbols) {
|
|
91
|
-
var r = Object.getOwnPropertySymbols(e);
|
|
92
|
-
for (n = 0; n < r.length; n++)
|
|
93
|
-
o = r[n], !(t.indexOf(o) >= 0) && (!Object.prototype.propertyIsEnumerable.call(e, o) || (i[o] = e[o]));
|
|
94
|
-
}
|
|
95
|
-
return i;
|
|
96
|
-
}
|
|
97
|
-
var Ke = "1.15.0";
|
|
98
|
-
function K(e) {
|
|
99
|
-
if (typeof window < "u" && window.navigator)
|
|
100
|
-
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
101
|
-
}
|
|
102
|
-
var Q = K(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Tt = K(/Edge/i), ge = K(/firefox/i), xt = K(/safari/i) && !K(/chrome/i) && !K(/android/i), Se = K(/iP(ad|od|hone)/i), Ie = K(/chrome/i) && K(/android/i), Ce = {
|
|
103
|
-
capture: !1,
|
|
104
|
-
passive: !1
|
|
105
|
-
};
|
|
106
|
-
function y(e, t, i) {
|
|
107
|
-
e.addEventListener(t, i, !Q && Ce);
|
|
108
|
-
}
|
|
109
|
-
function w(e, t, i) {
|
|
110
|
-
e.removeEventListener(t, i, !Q && Ce);
|
|
111
|
-
}
|
|
112
|
-
function Xt(e, t) {
|
|
113
|
-
if (!!t) {
|
|
114
|
-
if (t[0] === ">" && (t = t.substring(1)), e)
|
|
115
|
-
try {
|
|
116
|
-
if (e.matches)
|
|
117
|
-
return e.matches(t);
|
|
118
|
-
if (e.msMatchesSelector)
|
|
119
|
-
return e.msMatchesSelector(t);
|
|
120
|
-
if (e.webkitMatchesSelector)
|
|
121
|
-
return e.webkitMatchesSelector(t);
|
|
122
|
-
} catch {
|
|
123
|
-
return !1;
|
|
124
|
-
}
|
|
125
|
-
return !1;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
function Ue(e) {
|
|
129
|
-
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
130
|
-
}
|
|
131
|
-
function W(e, t, i, o) {
|
|
132
|
-
if (e) {
|
|
133
|
-
i = i || document;
|
|
134
|
-
do {
|
|
135
|
-
if (t != null && (t[0] === ">" ? e.parentNode === i && Xt(e, t) : Xt(e, t)) || o && e === i)
|
|
136
|
-
return e;
|
|
137
|
-
if (e === i)
|
|
138
|
-
break;
|
|
139
|
-
} while (e = Ue(e));
|
|
140
|
-
}
|
|
141
|
-
return null;
|
|
142
|
-
}
|
|
143
|
-
var me = /\s+/g;
|
|
144
|
-
function z(e, t, i) {
|
|
145
|
-
if (e && t)
|
|
146
|
-
if (e.classList)
|
|
147
|
-
e.classList[i ? "add" : "remove"](t);
|
|
148
|
-
else {
|
|
149
|
-
var o = (" " + e.className + " ").replace(me, " ").replace(" " + t + " ", " ");
|
|
150
|
-
e.className = (o + (i ? " " + t : "")).replace(me, " ");
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
function f(e, t, i) {
|
|
154
|
-
var o = e && e.style;
|
|
155
|
-
if (o) {
|
|
156
|
-
if (i === void 0)
|
|
157
|
-
return document.defaultView && document.defaultView.getComputedStyle ? i = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (i = e.currentStyle), t === void 0 ? i : i[t];
|
|
158
|
-
!(t in o) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), o[t] = i + (typeof i == "string" ? "" : "px");
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
function ft(e, t) {
|
|
162
|
-
var i = "";
|
|
163
|
-
if (typeof e == "string")
|
|
164
|
-
i = e;
|
|
165
|
-
else
|
|
166
|
-
do {
|
|
167
|
-
var o = f(e, "transform");
|
|
168
|
-
o && o !== "none" && (i = o + " " + i);
|
|
169
|
-
} while (!t && (e = e.parentNode));
|
|
170
|
-
var n = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
171
|
-
return n && new n(i);
|
|
172
|
-
}
|
|
173
|
-
function Te(e, t, i) {
|
|
174
|
-
if (e) {
|
|
175
|
-
var o = e.getElementsByTagName(t), n = 0, r = o.length;
|
|
176
|
-
if (i)
|
|
177
|
-
for (; n < r; n++)
|
|
178
|
-
i(o[n], n);
|
|
179
|
-
return o;
|
|
180
|
-
}
|
|
181
|
-
return [];
|
|
182
|
-
}
|
|
183
|
-
function G() {
|
|
184
|
-
var e = document.scrollingElement;
|
|
185
|
-
return e || document.documentElement;
|
|
186
|
-
}
|
|
187
|
-
function C(e, t, i, o, n) {
|
|
188
|
-
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
189
|
-
var r, s, a, l, c, h, u;
|
|
190
|
-
if (e !== window && e.parentNode && e !== G() ? (r = e.getBoundingClientRect(), s = r.top, a = r.left, l = r.bottom, c = r.right, h = r.height, u = r.width) : (s = 0, a = 0, l = window.innerHeight, c = window.innerWidth, h = window.innerHeight, u = window.innerWidth), (t || i) && e !== window && (n = n || e.parentNode, !Q))
|
|
191
|
-
do
|
|
192
|
-
if (n && n.getBoundingClientRect && (f(n, "transform") !== "none" || i && f(n, "position") !== "static")) {
|
|
193
|
-
var v = n.getBoundingClientRect();
|
|
194
|
-
s -= v.top + parseInt(f(n, "border-top-width")), a -= v.left + parseInt(f(n, "border-left-width")), l = s + r.height, c = a + r.width;
|
|
195
|
-
break;
|
|
196
|
-
}
|
|
197
|
-
while (n = n.parentNode);
|
|
198
|
-
if (o && e !== window) {
|
|
199
|
-
var D = ft(n || e), b = D && D.a, _ = D && D.d;
|
|
200
|
-
D && (s /= _, a /= b, u /= b, h /= _, l = s + h, c = a + u);
|
|
201
|
-
}
|
|
202
|
-
return {
|
|
203
|
-
top: s,
|
|
204
|
-
left: a,
|
|
205
|
-
bottom: l,
|
|
206
|
-
right: c,
|
|
207
|
-
width: u,
|
|
208
|
-
height: h
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
function ve(e, t, i) {
|
|
213
|
-
for (var o = et(e, !0), n = C(e)[t]; o; ) {
|
|
214
|
-
var r = C(o)[i], s = void 0;
|
|
215
|
-
if (i === "top" || i === "left" ? s = n >= r : s = n <= r, !s)
|
|
216
|
-
return o;
|
|
217
|
-
if (o === G())
|
|
218
|
-
break;
|
|
219
|
-
o = et(o, !1);
|
|
220
|
-
}
|
|
221
|
-
return !1;
|
|
222
|
-
}
|
|
223
|
-
function pt(e, t, i, o) {
|
|
224
|
-
for (var n = 0, r = 0, s = e.children; r < s.length; ) {
|
|
225
|
-
if (s[r].style.display !== "none" && s[r] !== p.ghost && (o || s[r] !== p.dragged) && W(s[r], i.draggable, e, !1)) {
|
|
226
|
-
if (n === t)
|
|
227
|
-
return s[r];
|
|
228
|
-
n++;
|
|
229
|
-
}
|
|
230
|
-
r++;
|
|
231
|
-
}
|
|
232
|
-
return null;
|
|
233
|
-
}
|
|
234
|
-
function le(e, t) {
|
|
235
|
-
for (var i = e.lastElementChild; i && (i === p.ghost || f(i, "display") === "none" || t && !Xt(i, t)); )
|
|
236
|
-
i = i.previousElementSibling;
|
|
237
|
-
return i || null;
|
|
238
|
-
}
|
|
239
|
-
function B(e, t) {
|
|
240
|
-
var i = 0;
|
|
241
|
-
if (!e || !e.parentNode)
|
|
242
|
-
return -1;
|
|
243
|
-
for (; e = e.previousElementSibling; )
|
|
244
|
-
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== p.clone && (!t || Xt(e, t)) && i++;
|
|
245
|
-
return i;
|
|
246
|
-
}
|
|
247
|
-
function be(e) {
|
|
248
|
-
var t = 0, i = 0, o = G();
|
|
249
|
-
if (e)
|
|
250
|
-
do {
|
|
251
|
-
var n = ft(e), r = n.a, s = n.d;
|
|
252
|
-
t += e.scrollLeft * r, i += e.scrollTop * s;
|
|
253
|
-
} while (e !== o && (e = e.parentNode));
|
|
254
|
-
return [t, i];
|
|
255
|
-
}
|
|
256
|
-
function Qe(e, t) {
|
|
257
|
-
for (var i in e)
|
|
258
|
-
if (!!e.hasOwnProperty(i)) {
|
|
259
|
-
for (var o in t)
|
|
260
|
-
if (t.hasOwnProperty(o) && t[o] === e[i][o])
|
|
261
|
-
return Number(i);
|
|
262
|
-
}
|
|
263
|
-
return -1;
|
|
264
|
-
}
|
|
265
|
-
function et(e, t) {
|
|
266
|
-
if (!e || !e.getBoundingClientRect)
|
|
267
|
-
return G();
|
|
268
|
-
var i = e, o = !1;
|
|
269
|
-
do
|
|
270
|
-
if (i.clientWidth < i.scrollWidth || i.clientHeight < i.scrollHeight) {
|
|
271
|
-
var n = f(i);
|
|
272
|
-
if (i.clientWidth < i.scrollWidth && (n.overflowX == "auto" || n.overflowX == "scroll") || i.clientHeight < i.scrollHeight && (n.overflowY == "auto" || n.overflowY == "scroll")) {
|
|
273
|
-
if (!i.getBoundingClientRect || i === document.body)
|
|
274
|
-
return G();
|
|
275
|
-
if (o || t)
|
|
276
|
-
return i;
|
|
277
|
-
o = !0;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
while (i = i.parentNode);
|
|
281
|
-
return G();
|
|
282
|
-
}
|
|
283
|
-
function qe(e, t) {
|
|
284
|
-
if (e && t)
|
|
285
|
-
for (var i in t)
|
|
286
|
-
t.hasOwnProperty(i) && (e[i] = t[i]);
|
|
287
|
-
return e;
|
|
288
|
-
}
|
|
289
|
-
function Vt(e, t) {
|
|
290
|
-
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
291
|
-
}
|
|
292
|
-
var Et;
|
|
293
|
-
function Ae(e, t) {
|
|
294
|
-
return function() {
|
|
295
|
-
if (!Et) {
|
|
296
|
-
var i = arguments, o = this;
|
|
297
|
-
i.length === 1 ? e.call(o, i[0]) : e.apply(o, i), Et = setTimeout(function() {
|
|
298
|
-
Et = void 0;
|
|
299
|
-
}, t);
|
|
300
|
-
}
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
|
-
function Ze() {
|
|
304
|
-
clearTimeout(Et), Et = void 0;
|
|
305
|
-
}
|
|
306
|
-
function Oe(e, t, i) {
|
|
307
|
-
e.scrollLeft += t, e.scrollTop += i;
|
|
308
|
-
}
|
|
309
|
-
function Pe(e) {
|
|
310
|
-
var t = window.Polymer, i = window.jQuery || window.Zepto;
|
|
311
|
-
return t && t.dom ? t.dom(e).cloneNode(!0) : i ? i(e).clone(!0)[0] : e.cloneNode(!0);
|
|
312
|
-
}
|
|
313
|
-
var L = "Sortable" + new Date().getTime();
|
|
314
|
-
function Je() {
|
|
315
|
-
var e = [], t;
|
|
316
|
-
return {
|
|
317
|
-
captureAnimationState: function() {
|
|
318
|
-
if (e = [], !!this.options.animation) {
|
|
319
|
-
var o = [].slice.call(this.el.children);
|
|
320
|
-
o.forEach(function(n) {
|
|
321
|
-
if (!(f(n, "display") === "none" || n === p.ghost)) {
|
|
322
|
-
e.push({
|
|
323
|
-
target: n,
|
|
324
|
-
rect: C(n)
|
|
325
|
-
});
|
|
326
|
-
var r = $({}, e[e.length - 1].rect);
|
|
327
|
-
if (n.thisAnimationDuration) {
|
|
328
|
-
var s = ft(n, !0);
|
|
329
|
-
s && (r.top -= s.f, r.left -= s.e);
|
|
330
|
-
}
|
|
331
|
-
n.fromRect = r;
|
|
332
|
-
}
|
|
333
|
-
});
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
addAnimationState: function(o) {
|
|
337
|
-
e.push(o);
|
|
338
|
-
},
|
|
339
|
-
removeAnimationState: function(o) {
|
|
340
|
-
e.splice(Qe(e, {
|
|
341
|
-
target: o
|
|
342
|
-
}), 1);
|
|
343
|
-
},
|
|
344
|
-
animateAll: function(o) {
|
|
345
|
-
var n = this;
|
|
346
|
-
if (!this.options.animation) {
|
|
347
|
-
clearTimeout(t), typeof o == "function" && o();
|
|
348
|
-
return;
|
|
349
|
-
}
|
|
350
|
-
var r = !1, s = 0;
|
|
351
|
-
e.forEach(function(a) {
|
|
352
|
-
var l = 0, c = a.target, h = c.fromRect, u = C(c), v = c.prevFromRect, D = c.prevToRect, b = a.rect, _ = ft(c, !0);
|
|
353
|
-
_ && (u.top -= _.f, u.left -= _.e), c.toRect = u, c.thisAnimationDuration && Vt(v, u) && !Vt(h, u) && (b.top - u.top) / (b.left - u.left) === (h.top - u.top) / (h.left - u.left) && (l = ei(b, v, D, n.options)), Vt(u, h) || (c.prevFromRect = h, c.prevToRect = u, l || (l = n.options.animation), n.animate(c, b, u, l)), l && (r = !0, s = Math.max(s, l), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
|
|
354
|
-
c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
|
|
355
|
-
}, l), c.thisAnimationDuration = l);
|
|
356
|
-
}), clearTimeout(t), r ? t = setTimeout(function() {
|
|
357
|
-
typeof o == "function" && o();
|
|
358
|
-
}, s) : typeof o == "function" && o(), e = [];
|
|
359
|
-
},
|
|
360
|
-
animate: function(o, n, r, s) {
|
|
361
|
-
if (s) {
|
|
362
|
-
f(o, "transition", ""), f(o, "transform", "");
|
|
363
|
-
var a = ft(this.el), l = a && a.a, c = a && a.d, h = (n.left - r.left) / (l || 1), u = (n.top - r.top) / (c || 1);
|
|
364
|
-
o.animatingX = !!h, o.animatingY = !!u, f(o, "transform", "translate3d(" + h + "px," + u + "px,0)"), this.forRepaintDummy = ti(o), f(o, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), f(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
|
|
365
|
-
f(o, "transition", ""), f(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
366
|
-
}, s);
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
function ti(e) {
|
|
372
|
-
return e.offsetWidth;
|
|
373
|
-
}
|
|
374
|
-
function ei(e, t, i, o) {
|
|
375
|
-
return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - i.top, 2) + Math.pow(t.left - i.left, 2)) * o.animation;
|
|
376
|
-
}
|
|
377
|
-
var lt = [], Kt = {
|
|
378
|
-
initializeByDefault: !0
|
|
379
|
-
}, At = {
|
|
380
|
-
mount: function(t) {
|
|
381
|
-
for (var i in Kt)
|
|
382
|
-
Kt.hasOwnProperty(i) && !(i in t) && (t[i] = Kt[i]);
|
|
383
|
-
lt.forEach(function(o) {
|
|
384
|
-
if (o.pluginName === t.pluginName)
|
|
385
|
-
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
386
|
-
}), lt.push(t);
|
|
387
|
-
},
|
|
388
|
-
pluginEvent: function(t, i, o) {
|
|
389
|
-
var n = this;
|
|
390
|
-
this.eventCanceled = !1, o.cancel = function() {
|
|
391
|
-
n.eventCanceled = !0;
|
|
392
|
-
};
|
|
393
|
-
var r = t + "Global";
|
|
394
|
-
lt.forEach(function(s) {
|
|
395
|
-
!i[s.pluginName] || (i[s.pluginName][r] && i[s.pluginName][r]($({
|
|
396
|
-
sortable: i
|
|
397
|
-
}, o)), i.options[s.pluginName] && i[s.pluginName][t] && i[s.pluginName][t]($({
|
|
398
|
-
sortable: i
|
|
399
|
-
}, o)));
|
|
400
|
-
});
|
|
401
|
-
},
|
|
402
|
-
initializePlugins: function(t, i, o, n) {
|
|
403
|
-
lt.forEach(function(a) {
|
|
404
|
-
var l = a.pluginName;
|
|
405
|
-
if (!(!t.options[l] && !a.initializeByDefault)) {
|
|
406
|
-
var c = new a(t, i, t.options);
|
|
407
|
-
c.sortable = t, c.options = t.options, t[l] = c, U(o, c.defaults);
|
|
408
|
-
}
|
|
409
|
-
});
|
|
410
|
-
for (var r in t.options)
|
|
411
|
-
if (!!t.options.hasOwnProperty(r)) {
|
|
412
|
-
var s = this.modifyOption(t, r, t.options[r]);
|
|
413
|
-
typeof s < "u" && (t.options[r] = s);
|
|
414
|
-
}
|
|
415
|
-
},
|
|
416
|
-
getEventProperties: function(t, i) {
|
|
417
|
-
var o = {};
|
|
418
|
-
return lt.forEach(function(n) {
|
|
419
|
-
typeof n.eventProperties == "function" && U(o, n.eventProperties.call(i[n.pluginName], t));
|
|
420
|
-
}), o;
|
|
421
|
-
},
|
|
422
|
-
modifyOption: function(t, i, o) {
|
|
423
|
-
var n;
|
|
424
|
-
return lt.forEach(function(r) {
|
|
425
|
-
!t[r.pluginName] || r.optionListeners && typeof r.optionListeners[i] == "function" && (n = r.optionListeners[i].call(t[r.pluginName], o));
|
|
426
|
-
}), n;
|
|
427
|
-
}
|
|
428
|
-
};
|
|
429
|
-
function ii(e) {
|
|
430
|
-
var t = e.sortable, i = e.rootEl, o = e.name, n = e.targetEl, r = e.cloneEl, s = e.toEl, a = e.fromEl, l = e.oldIndex, c = e.newIndex, h = e.oldDraggableIndex, u = e.newDraggableIndex, v = e.originalEvent, D = e.putSortable, b = e.extraEventProperties;
|
|
431
|
-
if (t = t || i && i[L], !!t) {
|
|
432
|
-
var _, H = t.options, j = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
433
|
-
window.CustomEvent && !Q && !Tt ? _ = new CustomEvent(o, {
|
|
434
|
-
bubbles: !0,
|
|
435
|
-
cancelable: !0
|
|
436
|
-
}) : (_ = document.createEvent("Event"), _.initEvent(o, !0, !0)), _.to = s || i, _.from = a || i, _.item = n || i, _.clone = r, _.oldIndex = l, _.newIndex = c, _.oldDraggableIndex = h, _.newDraggableIndex = u, _.originalEvent = v, _.pullMode = D ? D.lastPutMode : void 0;
|
|
437
|
-
var O = $($({}, b), At.getEventProperties(o, t));
|
|
438
|
-
for (var X in O)
|
|
439
|
-
_[X] = O[X];
|
|
440
|
-
i && i.dispatchEvent(_), H[j] && H[j].call(t, _);
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
var oi = ["evt"], k = function(t, i) {
|
|
444
|
-
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = o.evt, r = Ve(o, oi);
|
|
445
|
-
At.pluginEvent.bind(p)(t, i, $({
|
|
446
|
-
dragEl: d,
|
|
447
|
-
parentEl: S,
|
|
448
|
-
ghostEl: m,
|
|
449
|
-
rootEl: x,
|
|
450
|
-
nextEl: at,
|
|
451
|
-
lastDownEl: Ft,
|
|
452
|
-
cloneEl: E,
|
|
453
|
-
cloneHidden: tt,
|
|
454
|
-
dragStarted: yt,
|
|
455
|
-
putSortable: T,
|
|
456
|
-
activeSortable: p.active,
|
|
457
|
-
originalEvent: n,
|
|
458
|
-
oldIndex: ut,
|
|
459
|
-
oldDraggableIndex: St,
|
|
460
|
-
newIndex: F,
|
|
461
|
-
newDraggableIndex: J,
|
|
462
|
-
hideGhostForTarget: ze,
|
|
463
|
-
unhideGhostForTarget: Fe,
|
|
464
|
-
cloneNowHidden: function() {
|
|
465
|
-
tt = !0;
|
|
466
|
-
},
|
|
467
|
-
cloneNowShown: function() {
|
|
468
|
-
tt = !1;
|
|
469
|
-
},
|
|
470
|
-
dispatchSortableEvent: function(a) {
|
|
471
|
-
P({
|
|
472
|
-
sortable: i,
|
|
473
|
-
name: a,
|
|
474
|
-
originalEvent: n
|
|
475
|
-
});
|
|
476
|
-
}
|
|
477
|
-
}, r));
|
|
478
|
-
};
|
|
479
|
-
function P(e) {
|
|
480
|
-
ii($({
|
|
481
|
-
putSortable: T,
|
|
482
|
-
cloneEl: E,
|
|
483
|
-
targetEl: d,
|
|
484
|
-
rootEl: x,
|
|
485
|
-
oldIndex: ut,
|
|
486
|
-
oldDraggableIndex: St,
|
|
487
|
-
newIndex: F,
|
|
488
|
-
newDraggableIndex: J
|
|
489
|
-
}, e));
|
|
490
|
-
}
|
|
491
|
-
var d, S, m, x, at, Ft, E, tt, ut, F, St, J, Pt, T, dt = !1, Yt = !1, Rt = [], rt, Y, Ut, Qt, we, ye, yt, ct, It, Ct = !1, kt = !1, Lt, A, qt = [], oe = !1, Wt = [], jt = typeof document < "u", Nt = Se, _e = Tt || Q ? "cssFloat" : "float", ni = jt && !Ie && !Se && "draggable" in document.createElement("div"), ke = function() {
|
|
492
|
-
if (!!jt) {
|
|
493
|
-
if (Q)
|
|
494
|
-
return !1;
|
|
495
|
-
var e = document.createElement("x");
|
|
496
|
-
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
497
|
-
}
|
|
498
|
-
}(), Ne = function(t, i) {
|
|
499
|
-
var o = f(t), n = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), r = pt(t, 0, i), s = pt(t, 1, i), a = r && f(r), l = s && f(s), c = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + C(r).width, h = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + C(s).width;
|
|
500
|
-
if (o.display === "flex")
|
|
501
|
-
return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
502
|
-
if (o.display === "grid")
|
|
503
|
-
return o.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
504
|
-
if (r && a.float && a.float !== "none") {
|
|
505
|
-
var u = a.float === "left" ? "left" : "right";
|
|
506
|
-
return s && (l.clear === "both" || l.clear === u) ? "vertical" : "horizontal";
|
|
507
|
-
}
|
|
508
|
-
return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || c >= n && o[_e] === "none" || s && o[_e] === "none" && c + h > n) ? "vertical" : "horizontal";
|
|
509
|
-
}, ri = function(t, i, o) {
|
|
510
|
-
var n = o ? t.left : t.top, r = o ? t.right : t.bottom, s = o ? t.width : t.height, a = o ? i.left : i.top, l = o ? i.right : i.bottom, c = o ? i.width : i.height;
|
|
511
|
-
return n === a || r === l || n + s / 2 === a + c / 2;
|
|
512
|
-
}, si = function(t, i) {
|
|
513
|
-
var o;
|
|
514
|
-
return Rt.some(function(n) {
|
|
515
|
-
var r = n[L].options.emptyInsertThreshold;
|
|
516
|
-
if (!(!r || le(n))) {
|
|
517
|
-
var s = C(n), a = t >= s.left - r && t <= s.right + r, l = i >= s.top - r && i <= s.bottom + r;
|
|
518
|
-
if (a && l)
|
|
519
|
-
return o = n;
|
|
520
|
-
}
|
|
521
|
-
}), o;
|
|
522
|
-
}, Me = function(t) {
|
|
523
|
-
function i(r, s) {
|
|
524
|
-
return function(a, l, c, h) {
|
|
525
|
-
var u = a.options.group.name && l.options.group.name && a.options.group.name === l.options.group.name;
|
|
526
|
-
if (r == null && (s || u))
|
|
527
|
-
return !0;
|
|
528
|
-
if (r == null || r === !1)
|
|
529
|
-
return !1;
|
|
530
|
-
if (s && r === "clone")
|
|
531
|
-
return r;
|
|
532
|
-
if (typeof r == "function")
|
|
533
|
-
return i(r(a, l, c, h), s)(a, l, c, h);
|
|
534
|
-
var v = (s ? a : l).options.group.name;
|
|
535
|
-
return r === !0 || typeof r == "string" && r === v || r.join && r.indexOf(v) > -1;
|
|
536
|
-
};
|
|
537
|
-
}
|
|
538
|
-
var o = {}, n = t.group;
|
|
539
|
-
(!n || zt(n) != "object") && (n = {
|
|
540
|
-
name: n
|
|
541
|
-
}), o.name = n.name, o.checkPull = i(n.pull, !0), o.checkPut = i(n.put), o.revertClone = n.revertClone, t.group = o;
|
|
542
|
-
}, ze = function() {
|
|
543
|
-
!ke && m && f(m, "display", "none");
|
|
544
|
-
}, Fe = function() {
|
|
545
|
-
!ke && m && f(m, "display", "");
|
|
546
|
-
};
|
|
547
|
-
jt && !Ie && document.addEventListener("click", function(e) {
|
|
548
|
-
if (Yt)
|
|
549
|
-
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Yt = !1, !1;
|
|
550
|
-
}, !0);
|
|
551
|
-
var st = function(t) {
|
|
552
|
-
if (d) {
|
|
553
|
-
t = t.touches ? t.touches[0] : t;
|
|
554
|
-
var i = si(t.clientX, t.clientY);
|
|
555
|
-
if (i) {
|
|
556
|
-
var o = {};
|
|
557
|
-
for (var n in t)
|
|
558
|
-
t.hasOwnProperty(n) && (o[n] = t[n]);
|
|
559
|
-
o.target = o.rootEl = i, o.preventDefault = void 0, o.stopPropagation = void 0, i[L]._onDragOver(o);
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
}, ai = function(t) {
|
|
563
|
-
d && d.parentNode[L]._isOutsideThisEl(t.target);
|
|
564
|
-
};
|
|
565
|
-
function p(e, t) {
|
|
566
|
-
if (!(e && e.nodeType && e.nodeType === 1))
|
|
567
|
-
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
|
|
568
|
-
this.el = e, this.options = t = U({}, t), e[L] = this;
|
|
569
|
-
var i = {
|
|
570
|
-
group: null,
|
|
571
|
-
sort: !0,
|
|
572
|
-
disabled: !1,
|
|
573
|
-
store: null,
|
|
574
|
-
handle: null,
|
|
575
|
-
draggable: /^[uo]l$/i.test(e.nodeName) ? ">li" : ">*",
|
|
576
|
-
swapThreshold: 1,
|
|
577
|
-
invertSwap: !1,
|
|
578
|
-
invertedSwapThreshold: null,
|
|
579
|
-
removeCloneOnHide: !0,
|
|
580
|
-
direction: function() {
|
|
581
|
-
return Ne(e, this.options);
|
|
582
|
-
},
|
|
583
|
-
ghostClass: "sortable-ghost",
|
|
584
|
-
chosenClass: "sortable-chosen",
|
|
585
|
-
dragClass: "sortable-drag",
|
|
586
|
-
ignore: "a, img",
|
|
587
|
-
filter: null,
|
|
588
|
-
preventOnFilter: !0,
|
|
589
|
-
animation: 0,
|
|
590
|
-
easing: null,
|
|
591
|
-
setData: function(s, a) {
|
|
592
|
-
s.setData("Text", a.textContent);
|
|
593
|
-
},
|
|
594
|
-
dropBubble: !1,
|
|
595
|
-
dragoverBubble: !1,
|
|
596
|
-
dataIdAttr: "data-id",
|
|
597
|
-
delay: 0,
|
|
598
|
-
delayOnTouchOnly: !1,
|
|
599
|
-
touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
|
|
600
|
-
forceFallback: !1,
|
|
601
|
-
fallbackClass: "sortable-fallback",
|
|
602
|
-
fallbackOnBody: !1,
|
|
603
|
-
fallbackTolerance: 0,
|
|
604
|
-
fallbackOffset: {
|
|
605
|
-
x: 0,
|
|
606
|
-
y: 0
|
|
607
|
-
},
|
|
608
|
-
supportPointer: p.supportPointer !== !1 && "PointerEvent" in window && !xt,
|
|
609
|
-
emptyInsertThreshold: 5
|
|
610
|
-
};
|
|
611
|
-
At.initializePlugins(this, e, i);
|
|
612
|
-
for (var o in i)
|
|
613
|
-
!(o in t) && (t[o] = i[o]);
|
|
614
|
-
Me(t);
|
|
615
|
-
for (var n in this)
|
|
616
|
-
n.charAt(0) === "_" && typeof this[n] == "function" && (this[n] = this[n].bind(this));
|
|
617
|
-
this.nativeDraggable = t.forceFallback ? !1 : ni, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? y(e, "pointerdown", this._onTapStart) : (y(e, "mousedown", this._onTapStart), y(e, "touchstart", this._onTapStart)), this.nativeDraggable && (y(e, "dragover", this), y(e, "dragenter", this)), Rt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), U(this, Je());
|
|
618
|
-
}
|
|
619
|
-
p.prototype = {
|
|
620
|
-
constructor: p,
|
|
621
|
-
_isOutsideThisEl: function(t) {
|
|
622
|
-
!this.el.contains(t) && t !== this.el && (ct = null);
|
|
623
|
-
},
|
|
624
|
-
_getDirection: function(t, i) {
|
|
625
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, i, d) : this.options.direction;
|
|
626
|
-
},
|
|
627
|
-
_onTapStart: function(t) {
|
|
628
|
-
if (!!t.cancelable) {
|
|
629
|
-
var i = this, o = this.el, n = this.options, r = n.preventOnFilter, s = t.type, a = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (a || t).target, c = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, h = n.filter;
|
|
630
|
-
if (gi(o), !d && !(/mousedown|pointerdown/.test(s) && t.button !== 0 || n.disabled) && !c.isContentEditable && !(!this.nativeDraggable && xt && l && l.tagName.toUpperCase() === "SELECT") && (l = W(l, n.draggable, o, !1), !(l && l.animated) && Ft !== l)) {
|
|
631
|
-
if (ut = B(l), St = B(l, n.draggable), typeof h == "function") {
|
|
632
|
-
if (h.call(this, t, l, this)) {
|
|
633
|
-
P({
|
|
634
|
-
sortable: i,
|
|
635
|
-
rootEl: c,
|
|
636
|
-
name: "filter",
|
|
637
|
-
targetEl: l,
|
|
638
|
-
toEl: o,
|
|
639
|
-
fromEl: o
|
|
640
|
-
}), k("filter", i, {
|
|
641
|
-
evt: t
|
|
642
|
-
}), r && t.cancelable && t.preventDefault();
|
|
643
|
-
return;
|
|
644
|
-
}
|
|
645
|
-
} else if (h && (h = h.split(",").some(function(u) {
|
|
646
|
-
if (u = W(c, u.trim(), o, !1), u)
|
|
647
|
-
return P({
|
|
648
|
-
sortable: i,
|
|
649
|
-
rootEl: u,
|
|
650
|
-
name: "filter",
|
|
651
|
-
targetEl: l,
|
|
652
|
-
fromEl: o,
|
|
653
|
-
toEl: o
|
|
654
|
-
}), k("filter", i, {
|
|
655
|
-
evt: t
|
|
656
|
-
}), !0;
|
|
657
|
-
}), h)) {
|
|
658
|
-
r && t.cancelable && t.preventDefault();
|
|
659
|
-
return;
|
|
660
|
-
}
|
|
661
|
-
n.handle && !W(c, n.handle, o, !1) || this._prepareDragStart(t, a, l);
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
},
|
|
665
|
-
_prepareDragStart: function(t, i, o) {
|
|
666
|
-
var n = this, r = n.el, s = n.options, a = r.ownerDocument, l;
|
|
667
|
-
if (o && !d && o.parentNode === r) {
|
|
668
|
-
var c = C(o);
|
|
669
|
-
if (x = r, d = o, S = d.parentNode, at = d.nextSibling, Ft = o, Pt = s.group, p.dragged = d, rt = {
|
|
670
|
-
target: d,
|
|
671
|
-
clientX: (i || t).clientX,
|
|
672
|
-
clientY: (i || t).clientY
|
|
673
|
-
}, we = rt.clientX - c.left, ye = rt.clientY - c.top, this._lastX = (i || t).clientX, this._lastY = (i || t).clientY, d.style["will-change"] = "all", l = function() {
|
|
674
|
-
if (k("delayEnded", n, {
|
|
675
|
-
evt: t
|
|
676
|
-
}), p.eventCanceled) {
|
|
677
|
-
n._onDrop();
|
|
678
|
-
return;
|
|
679
|
-
}
|
|
680
|
-
n._disableDelayedDragEvents(), !ge && n.nativeDraggable && (d.draggable = !0), n._triggerDragStart(t, i), P({
|
|
681
|
-
sortable: n,
|
|
682
|
-
name: "choose",
|
|
683
|
-
originalEvent: t
|
|
684
|
-
}), z(d, s.chosenClass, !0);
|
|
685
|
-
}, s.ignore.split(",").forEach(function(h) {
|
|
686
|
-
Te(d, h.trim(), Zt);
|
|
687
|
-
}), y(a, "dragover", st), y(a, "mousemove", st), y(a, "touchmove", st), y(a, "mouseup", n._onDrop), y(a, "touchend", n._onDrop), y(a, "touchcancel", n._onDrop), ge && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), k("delayStart", this, {
|
|
688
|
-
evt: t
|
|
689
|
-
}), s.delay && (!s.delayOnTouchOnly || i) && (!this.nativeDraggable || !(Tt || Q))) {
|
|
690
|
-
if (p.eventCanceled) {
|
|
691
|
-
this._onDrop();
|
|
692
|
-
return;
|
|
693
|
-
}
|
|
694
|
-
y(a, "mouseup", n._disableDelayedDrag), y(a, "touchend", n._disableDelayedDrag), y(a, "touchcancel", n._disableDelayedDrag), y(a, "mousemove", n._delayedDragTouchMoveHandler), y(a, "touchmove", n._delayedDragTouchMoveHandler), s.supportPointer && y(a, "pointermove", n._delayedDragTouchMoveHandler), n._dragStartTimer = setTimeout(l, s.delay);
|
|
695
|
-
} else
|
|
696
|
-
l();
|
|
697
|
-
}
|
|
698
|
-
},
|
|
699
|
-
_delayedDragTouchMoveHandler: function(t) {
|
|
700
|
-
var i = t.touches ? t.touches[0] : t;
|
|
701
|
-
Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
702
|
-
},
|
|
703
|
-
_disableDelayedDrag: function() {
|
|
704
|
-
d && Zt(d), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
705
|
-
},
|
|
706
|
-
_disableDelayedDragEvents: function() {
|
|
707
|
-
var t = this.el.ownerDocument;
|
|
708
|
-
w(t, "mouseup", this._disableDelayedDrag), w(t, "touchend", this._disableDelayedDrag), w(t, "touchcancel", this._disableDelayedDrag), w(t, "mousemove", this._delayedDragTouchMoveHandler), w(t, "touchmove", this._delayedDragTouchMoveHandler), w(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
709
|
-
},
|
|
710
|
-
_triggerDragStart: function(t, i) {
|
|
711
|
-
i = i || t.pointerType == "touch" && t, !this.nativeDraggable || i ? this.options.supportPointer ? y(document, "pointermove", this._onTouchMove) : i ? y(document, "touchmove", this._onTouchMove) : y(document, "mousemove", this._onTouchMove) : (y(d, "dragend", this), y(x, "dragstart", this._onDragStart));
|
|
712
|
-
try {
|
|
713
|
-
document.selection ? Bt(function() {
|
|
714
|
-
document.selection.empty();
|
|
715
|
-
}) : window.getSelection().removeAllRanges();
|
|
716
|
-
} catch {
|
|
717
|
-
}
|
|
718
|
-
},
|
|
719
|
-
_dragStarted: function(t, i) {
|
|
720
|
-
if (dt = !1, x && d) {
|
|
721
|
-
k("dragStarted", this, {
|
|
722
|
-
evt: i
|
|
723
|
-
}), this.nativeDraggable && y(document, "dragover", ai);
|
|
724
|
-
var o = this.options;
|
|
725
|
-
!t && z(d, o.dragClass, !1), z(d, o.ghostClass, !0), p.active = this, t && this._appendGhost(), P({
|
|
726
|
-
sortable: this,
|
|
727
|
-
name: "start",
|
|
728
|
-
originalEvent: i
|
|
729
|
-
});
|
|
730
|
-
} else
|
|
731
|
-
this._nulling();
|
|
732
|
-
},
|
|
733
|
-
_emulateDragOver: function() {
|
|
734
|
-
if (Y) {
|
|
735
|
-
this._lastX = Y.clientX, this._lastY = Y.clientY, ze();
|
|
736
|
-
for (var t = document.elementFromPoint(Y.clientX, Y.clientY), i = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(Y.clientX, Y.clientY), t !== i); )
|
|
737
|
-
i = t;
|
|
738
|
-
if (d.parentNode[L]._isOutsideThisEl(t), i)
|
|
739
|
-
do {
|
|
740
|
-
if (i[L]) {
|
|
741
|
-
var o = void 0;
|
|
742
|
-
if (o = i[L]._onDragOver({
|
|
743
|
-
clientX: Y.clientX,
|
|
744
|
-
clientY: Y.clientY,
|
|
745
|
-
target: t,
|
|
746
|
-
rootEl: i
|
|
747
|
-
}), o && !this.options.dragoverBubble)
|
|
748
|
-
break;
|
|
749
|
-
}
|
|
750
|
-
t = i;
|
|
751
|
-
} while (i = i.parentNode);
|
|
752
|
-
Fe();
|
|
753
|
-
}
|
|
754
|
-
},
|
|
755
|
-
_onTouchMove: function(t) {
|
|
756
|
-
if (rt) {
|
|
757
|
-
var i = this.options, o = i.fallbackTolerance, n = i.fallbackOffset, r = t.touches ? t.touches[0] : t, s = m && ft(m, !0), a = m && s && s.a, l = m && s && s.d, c = Nt && A && be(A), h = (r.clientX - rt.clientX + n.x) / (a || 1) + (c ? c[0] - qt[0] : 0) / (a || 1), u = (r.clientY - rt.clientY + n.y) / (l || 1) + (c ? c[1] - qt[1] : 0) / (l || 1);
|
|
758
|
-
if (!p.active && !dt) {
|
|
759
|
-
if (o && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < o)
|
|
760
|
-
return;
|
|
761
|
-
this._onDragStart(t, !0);
|
|
762
|
-
}
|
|
763
|
-
if (m) {
|
|
764
|
-
s ? (s.e += h - (Ut || 0), s.f += u - (Qt || 0)) : s = {
|
|
765
|
-
a: 1,
|
|
766
|
-
b: 0,
|
|
767
|
-
c: 0,
|
|
768
|
-
d: 1,
|
|
769
|
-
e: h,
|
|
770
|
-
f: u
|
|
771
|
-
};
|
|
772
|
-
var v = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
|
|
773
|
-
f(m, "webkitTransform", v), f(m, "mozTransform", v), f(m, "msTransform", v), f(m, "transform", v), Ut = h, Qt = u, Y = r;
|
|
774
|
-
}
|
|
775
|
-
t.cancelable && t.preventDefault();
|
|
776
|
-
}
|
|
777
|
-
},
|
|
778
|
-
_appendGhost: function() {
|
|
779
|
-
if (!m) {
|
|
780
|
-
var t = this.options.fallbackOnBody ? document.body : x, i = C(d, !0, Nt, !0, t), o = this.options;
|
|
781
|
-
if (Nt) {
|
|
782
|
-
for (A = t; f(A, "position") === "static" && f(A, "transform") === "none" && A !== document; )
|
|
783
|
-
A = A.parentNode;
|
|
784
|
-
A !== document.body && A !== document.documentElement ? (A === document && (A = G()), i.top += A.scrollTop, i.left += A.scrollLeft) : A = G(), qt = be(A);
|
|
785
|
-
}
|
|
786
|
-
m = d.cloneNode(!0), z(m, o.ghostClass, !1), z(m, o.fallbackClass, !0), z(m, o.dragClass, !0), f(m, "transition", ""), f(m, "transform", ""), f(m, "box-sizing", "border-box"), f(m, "margin", 0), f(m, "top", i.top), f(m, "left", i.left), f(m, "width", i.width), f(m, "height", i.height), f(m, "opacity", "0.8"), f(m, "position", Nt ? "absolute" : "fixed"), f(m, "zIndex", "100000"), f(m, "pointerEvents", "none"), p.ghost = m, t.appendChild(m), f(m, "transform-origin", we / parseInt(m.style.width) * 100 + "% " + ye / parseInt(m.style.height) * 100 + "%");
|
|
787
|
-
}
|
|
788
|
-
},
|
|
789
|
-
_onDragStart: function(t, i) {
|
|
790
|
-
var o = this, n = t.dataTransfer, r = o.options;
|
|
791
|
-
if (k("dragStart", this, {
|
|
792
|
-
evt: t
|
|
793
|
-
}), p.eventCanceled) {
|
|
794
|
-
this._onDrop();
|
|
795
|
-
return;
|
|
796
|
-
}
|
|
797
|
-
k("setupClone", this), p.eventCanceled || (E = Pe(d), E.removeAttribute("id"), E.draggable = !1, E.style["will-change"] = "", this._hideClone(), z(E, this.options.chosenClass, !1), p.clone = E), o.cloneId = Bt(function() {
|
|
798
|
-
k("clone", o), !p.eventCanceled && (o.options.removeCloneOnHide || x.insertBefore(E, d), o._hideClone(), P({
|
|
799
|
-
sortable: o,
|
|
800
|
-
name: "clone"
|
|
801
|
-
}));
|
|
802
|
-
}), !i && z(d, r.dragClass, !0), i ? (Yt = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (w(document, "mouseup", o._onDrop), w(document, "touchend", o._onDrop), w(document, "touchcancel", o._onDrop), n && (n.effectAllowed = "move", r.setData && r.setData.call(o, n, d)), y(document, "drop", o), f(d, "transform", "translateZ(0)")), dt = !0, o._dragStartId = Bt(o._dragStarted.bind(o, i, t)), y(document, "selectstart", o), yt = !0, xt && f(document.body, "user-select", "none");
|
|
803
|
-
},
|
|
804
|
-
_onDragOver: function(t) {
|
|
805
|
-
var i = this.el, o = t.target, n, r, s, a = this.options, l = a.group, c = p.active, h = Pt === l, u = a.sort, v = T || c, D, b = this, _ = !1;
|
|
806
|
-
if (oe)
|
|
807
|
-
return;
|
|
808
|
-
function H(wt, Be) {
|
|
809
|
-
k(wt, b, $({
|
|
810
|
-
evt: t,
|
|
811
|
-
isOwner: h,
|
|
812
|
-
axis: D ? "vertical" : "horizontal",
|
|
813
|
-
revert: s,
|
|
814
|
-
dragRect: n,
|
|
815
|
-
targetRect: r,
|
|
816
|
-
canSort: u,
|
|
817
|
-
fromSortable: v,
|
|
818
|
-
target: o,
|
|
819
|
-
completed: O,
|
|
820
|
-
onMove: function(ue, He) {
|
|
821
|
-
return Mt(x, i, d, n, ue, C(ue), t, He);
|
|
822
|
-
},
|
|
823
|
-
changed: X
|
|
824
|
-
}, Be));
|
|
825
|
-
}
|
|
826
|
-
function j() {
|
|
827
|
-
H("dragOverAnimationCapture"), b.captureAnimationState(), b !== v && v.captureAnimationState();
|
|
828
|
-
}
|
|
829
|
-
function O(wt) {
|
|
830
|
-
return H("dragOverCompleted", {
|
|
831
|
-
insertion: wt
|
|
832
|
-
}), wt && (h ? c._hideClone() : c._showClone(b), b !== v && (z(d, T ? T.options.ghostClass : c.options.ghostClass, !1), z(d, a.ghostClass, !0)), T !== b && b !== p.active ? T = b : b === p.active && T && (T = null), v === b && (b._ignoreWhileAnimating = o), b.animateAll(function() {
|
|
833
|
-
H("dragOverAnimationComplete"), b._ignoreWhileAnimating = null;
|
|
834
|
-
}), b !== v && (v.animateAll(), v._ignoreWhileAnimating = null)), (o === d && !d.animated || o === i && !o.animated) && (ct = null), !a.dragoverBubble && !t.rootEl && o !== document && (d.parentNode[L]._isOutsideThisEl(t.target), !wt && st(t)), !a.dragoverBubble && t.stopPropagation && t.stopPropagation(), _ = !0;
|
|
835
|
-
}
|
|
836
|
-
function X() {
|
|
837
|
-
F = B(d), J = B(d, a.draggable), P({
|
|
838
|
-
sortable: b,
|
|
839
|
-
name: "change",
|
|
840
|
-
toEl: i,
|
|
841
|
-
newIndex: F,
|
|
842
|
-
newDraggableIndex: J,
|
|
843
|
-
originalEvent: t
|
|
844
|
-
});
|
|
845
|
-
}
|
|
846
|
-
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), o = W(o, a.draggable, i, !0), H("dragOver"), p.eventCanceled)
|
|
847
|
-
return _;
|
|
848
|
-
if (d.contains(t.target) || o.animated && o.animatingX && o.animatingY || b._ignoreWhileAnimating === o)
|
|
849
|
-
return O(!1);
|
|
850
|
-
if (Yt = !1, c && !a.disabled && (h ? u || (s = S !== x) : T === this || (this.lastPutMode = Pt.checkPull(this, c, d, t)) && l.checkPut(this, c, d, t))) {
|
|
851
|
-
if (D = this._getDirection(t, o) === "vertical", n = C(d), H("dragOverValid"), p.eventCanceled)
|
|
852
|
-
return _;
|
|
853
|
-
if (s)
|
|
854
|
-
return S = x, j(), this._hideClone(), H("revert"), p.eventCanceled || (at ? x.insertBefore(d, at) : x.appendChild(d)), O(!0);
|
|
855
|
-
var N = le(i, a.draggable);
|
|
856
|
-
if (!N || ui(t, D, this) && !N.animated) {
|
|
857
|
-
if (N === d)
|
|
858
|
-
return O(!1);
|
|
859
|
-
if (N && i === t.target && (o = N), o && (r = C(o)), Mt(x, i, d, n, o, r, t, !!o) !== !1)
|
|
860
|
-
return j(), N && N.nextSibling ? i.insertBefore(d, N.nextSibling) : i.appendChild(d), S = i, X(), O(!0);
|
|
861
|
-
} else if (N && di(t, D, this)) {
|
|
862
|
-
var it = pt(i, 0, a, !0);
|
|
863
|
-
if (it === d)
|
|
864
|
-
return O(!1);
|
|
865
|
-
if (o = it, r = C(o), Mt(x, i, d, n, o, r, t, !1) !== !1)
|
|
866
|
-
return j(), i.insertBefore(d, it), S = i, X(), O(!0);
|
|
867
|
-
} else if (o.parentNode === i) {
|
|
868
|
-
r = C(o);
|
|
869
|
-
var R = 0, ot, gt = d.parentNode !== i, M = !ri(d.animated && d.toRect || n, o.animated && o.toRect || r, D), mt = D ? "top" : "left", q = ve(o, "top", "top") || ve(d, "top", "top"), vt = q ? q.scrollTop : void 0;
|
|
870
|
-
ct !== o && (ot = r[mt], Ct = !1, kt = !M && a.invertSwap || gt), R = hi(t, o, r, D, M ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, kt, ct === o);
|
|
871
|
-
var V;
|
|
872
|
-
if (R !== 0) {
|
|
873
|
-
var nt = B(d);
|
|
874
|
-
do
|
|
875
|
-
nt -= R, V = S.children[nt];
|
|
876
|
-
while (V && (f(V, "display") === "none" || V === m));
|
|
877
|
-
}
|
|
878
|
-
if (R === 0 || V === o)
|
|
879
|
-
return O(!1);
|
|
880
|
-
ct = o, It = R;
|
|
881
|
-
var bt = o.nextElementSibling, Z = !1;
|
|
882
|
-
Z = R === 1;
|
|
883
|
-
var Ot = Mt(x, i, d, n, o, r, t, Z);
|
|
884
|
-
if (Ot !== !1)
|
|
885
|
-
return (Ot === 1 || Ot === -1) && (Z = Ot === 1), oe = !0, setTimeout(ci, 30), j(), Z && !bt ? i.appendChild(d) : o.parentNode.insertBefore(d, Z ? bt : o), q && Oe(q, 0, vt - q.scrollTop), S = d.parentNode, ot !== void 0 && !kt && (Lt = Math.abs(ot - C(o)[mt])), X(), O(!0);
|
|
886
|
-
}
|
|
887
|
-
if (i.contains(d))
|
|
888
|
-
return O(!1);
|
|
889
|
-
}
|
|
890
|
-
return !1;
|
|
891
|
-
},
|
|
892
|
-
_ignoreWhileAnimating: null,
|
|
893
|
-
_offMoveEvents: function() {
|
|
894
|
-
w(document, "mousemove", this._onTouchMove), w(document, "touchmove", this._onTouchMove), w(document, "pointermove", this._onTouchMove), w(document, "dragover", st), w(document, "mousemove", st), w(document, "touchmove", st);
|
|
895
|
-
},
|
|
896
|
-
_offUpEvents: function() {
|
|
897
|
-
var t = this.el.ownerDocument;
|
|
898
|
-
w(t, "mouseup", this._onDrop), w(t, "touchend", this._onDrop), w(t, "pointerup", this._onDrop), w(t, "touchcancel", this._onDrop), w(document, "selectstart", this);
|
|
899
|
-
},
|
|
900
|
-
_onDrop: function(t) {
|
|
901
|
-
var i = this.el, o = this.options;
|
|
902
|
-
if (F = B(d), J = B(d, o.draggable), k("drop", this, {
|
|
903
|
-
evt: t
|
|
904
|
-
}), S = d && d.parentNode, F = B(d), J = B(d, o.draggable), p.eventCanceled) {
|
|
905
|
-
this._nulling();
|
|
906
|
-
return;
|
|
907
|
-
}
|
|
908
|
-
dt = !1, kt = !1, Ct = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ne(this.cloneId), ne(this._dragStartId), this.nativeDraggable && (w(document, "drop", this), w(i, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), xt && f(document.body, "user-select", ""), f(d, "transform", ""), t && (yt && (t.cancelable && t.preventDefault(), !o.dropBubble && t.stopPropagation()), m && m.parentNode && m.parentNode.removeChild(m), (x === S || T && T.lastPutMode !== "clone") && E && E.parentNode && E.parentNode.removeChild(E), d && (this.nativeDraggable && w(d, "dragend", this), Zt(d), d.style["will-change"] = "", yt && !dt && z(d, T ? T.options.ghostClass : this.options.ghostClass, !1), z(d, this.options.chosenClass, !1), P({
|
|
909
|
-
sortable: this,
|
|
910
|
-
name: "unchoose",
|
|
911
|
-
toEl: S,
|
|
912
|
-
newIndex: null,
|
|
913
|
-
newDraggableIndex: null,
|
|
914
|
-
originalEvent: t
|
|
915
|
-
}), x !== S ? (F >= 0 && (P({
|
|
916
|
-
rootEl: S,
|
|
917
|
-
name: "add",
|
|
918
|
-
toEl: S,
|
|
919
|
-
fromEl: x,
|
|
920
|
-
originalEvent: t
|
|
921
|
-
}), P({
|
|
922
|
-
sortable: this,
|
|
923
|
-
name: "remove",
|
|
924
|
-
toEl: S,
|
|
925
|
-
originalEvent: t
|
|
926
|
-
}), P({
|
|
927
|
-
rootEl: S,
|
|
928
|
-
name: "sort",
|
|
929
|
-
toEl: S,
|
|
930
|
-
fromEl: x,
|
|
931
|
-
originalEvent: t
|
|
932
|
-
}), P({
|
|
933
|
-
sortable: this,
|
|
934
|
-
name: "sort",
|
|
935
|
-
toEl: S,
|
|
936
|
-
originalEvent: t
|
|
937
|
-
})), T && T.save()) : F !== ut && F >= 0 && (P({
|
|
938
|
-
sortable: this,
|
|
939
|
-
name: "update",
|
|
940
|
-
toEl: S,
|
|
941
|
-
originalEvent: t
|
|
942
|
-
}), P({
|
|
943
|
-
sortable: this,
|
|
944
|
-
name: "sort",
|
|
945
|
-
toEl: S,
|
|
946
|
-
originalEvent: t
|
|
947
|
-
})), p.active && ((F == null || F === -1) && (F = ut, J = St), P({
|
|
948
|
-
sortable: this,
|
|
949
|
-
name: "end",
|
|
950
|
-
toEl: S,
|
|
951
|
-
originalEvent: t
|
|
952
|
-
}), this.save()))), this._nulling();
|
|
953
|
-
},
|
|
954
|
-
_nulling: function() {
|
|
955
|
-
k("nulling", this), x = d = S = m = at = E = Ft = tt = rt = Y = yt = F = J = ut = St = ct = It = T = Pt = p.dragged = p.ghost = p.clone = p.active = null, Wt.forEach(function(t) {
|
|
956
|
-
t.checked = !0;
|
|
957
|
-
}), Wt.length = Ut = Qt = 0;
|
|
958
|
-
},
|
|
959
|
-
handleEvent: function(t) {
|
|
960
|
-
switch (t.type) {
|
|
961
|
-
case "drop":
|
|
962
|
-
case "dragend":
|
|
963
|
-
this._onDrop(t);
|
|
964
|
-
break;
|
|
965
|
-
case "dragenter":
|
|
966
|
-
case "dragover":
|
|
967
|
-
d && (this._onDragOver(t), li(t));
|
|
968
|
-
break;
|
|
969
|
-
case "selectstart":
|
|
970
|
-
t.preventDefault();
|
|
971
|
-
break;
|
|
972
|
-
}
|
|
973
|
-
},
|
|
974
|
-
toArray: function() {
|
|
975
|
-
for (var t = [], i, o = this.el.children, n = 0, r = o.length, s = this.options; n < r; n++)
|
|
976
|
-
i = o[n], W(i, s.draggable, this.el, !1) && t.push(i.getAttribute(s.dataIdAttr) || pi(i));
|
|
977
|
-
return t;
|
|
978
|
-
},
|
|
979
|
-
sort: function(t, i) {
|
|
980
|
-
var o = {}, n = this.el;
|
|
981
|
-
this.toArray().forEach(function(r, s) {
|
|
982
|
-
var a = n.children[s];
|
|
983
|
-
W(a, this.options.draggable, n, !1) && (o[r] = a);
|
|
984
|
-
}, this), i && this.captureAnimationState(), t.forEach(function(r) {
|
|
985
|
-
o[r] && (n.removeChild(o[r]), n.appendChild(o[r]));
|
|
986
|
-
}), i && this.animateAll();
|
|
987
|
-
},
|
|
988
|
-
save: function() {
|
|
989
|
-
var t = this.options.store;
|
|
990
|
-
t && t.set && t.set(this);
|
|
991
|
-
},
|
|
992
|
-
closest: function(t, i) {
|
|
993
|
-
return W(t, i || this.options.draggable, this.el, !1);
|
|
994
|
-
},
|
|
995
|
-
option: function(t, i) {
|
|
996
|
-
var o = this.options;
|
|
997
|
-
if (i === void 0)
|
|
998
|
-
return o[t];
|
|
999
|
-
var n = At.modifyOption(this, t, i);
|
|
1000
|
-
typeof n < "u" ? o[t] = n : o[t] = i, t === "group" && Me(o);
|
|
1001
|
-
},
|
|
1002
|
-
destroy: function() {
|
|
1003
|
-
k("destroy", this);
|
|
1004
|
-
var t = this.el;
|
|
1005
|
-
t[L] = null, w(t, "mousedown", this._onTapStart), w(t, "touchstart", this._onTapStart), w(t, "pointerdown", this._onTapStart), this.nativeDraggable && (w(t, "dragover", this), w(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(i) {
|
|
1006
|
-
i.removeAttribute("draggable");
|
|
1007
|
-
}), this._onDrop(), this._disableDelayedDragEvents(), Rt.splice(Rt.indexOf(this.el), 1), this.el = t = null;
|
|
1008
|
-
},
|
|
1009
|
-
_hideClone: function() {
|
|
1010
|
-
if (!tt) {
|
|
1011
|
-
if (k("hideClone", this), p.eventCanceled)
|
|
1012
|
-
return;
|
|
1013
|
-
f(E, "display", "none"), this.options.removeCloneOnHide && E.parentNode && E.parentNode.removeChild(E), tt = !0;
|
|
1014
|
-
}
|
|
1015
|
-
},
|
|
1016
|
-
_showClone: function(t) {
|
|
1017
|
-
if (t.lastPutMode !== "clone") {
|
|
1018
|
-
this._hideClone();
|
|
1019
|
-
return;
|
|
1020
|
-
}
|
|
1021
|
-
if (tt) {
|
|
1022
|
-
if (k("showClone", this), p.eventCanceled)
|
|
1023
|
-
return;
|
|
1024
|
-
d.parentNode == x && !this.options.group.revertClone ? x.insertBefore(E, d) : at ? x.insertBefore(E, at) : x.appendChild(E), this.options.group.revertClone && this.animate(d, E), f(E, "display", ""), tt = !1;
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
};
|
|
1028
|
-
function li(e) {
|
|
1029
|
-
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
1030
|
-
}
|
|
1031
|
-
function Mt(e, t, i, o, n, r, s, a) {
|
|
1032
|
-
var l, c = e[L], h = c.options.onMove, u;
|
|
1033
|
-
return window.CustomEvent && !Q && !Tt ? l = new CustomEvent("move", {
|
|
1034
|
-
bubbles: !0,
|
|
1035
|
-
cancelable: !0
|
|
1036
|
-
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = i, l.draggedRect = o, l.related = n || t, l.relatedRect = r || C(t), l.willInsertAfter = a, l.originalEvent = s, e.dispatchEvent(l), h && (u = h.call(c, l, s)), u;
|
|
1037
|
-
}
|
|
1038
|
-
function Zt(e) {
|
|
1039
|
-
e.draggable = !1;
|
|
1040
|
-
}
|
|
1041
|
-
function ci() {
|
|
1042
|
-
oe = !1;
|
|
1043
|
-
}
|
|
1044
|
-
function di(e, t, i) {
|
|
1045
|
-
var o = C(pt(i.el, 0, i.options, !0)), n = 10;
|
|
1046
|
-
return t ? e.clientX < o.left - n || e.clientY < o.top && e.clientX < o.right : e.clientY < o.top - n || e.clientY < o.bottom && e.clientX < o.left;
|
|
1047
|
-
}
|
|
1048
|
-
function ui(e, t, i) {
|
|
1049
|
-
var o = C(le(i.el, i.options.draggable)), n = 10;
|
|
1050
|
-
return t ? e.clientX > o.right + n || e.clientX <= o.right && e.clientY > o.bottom && e.clientX >= o.left : e.clientX > o.right && e.clientY > o.top || e.clientX <= o.right && e.clientY > o.bottom + n;
|
|
1051
|
-
}
|
|
1052
|
-
function hi(e, t, i, o, n, r, s, a) {
|
|
1053
|
-
var l = o ? e.clientY : e.clientX, c = o ? i.height : i.width, h = o ? i.top : i.left, u = o ? i.bottom : i.right, v = !1;
|
|
1054
|
-
if (!s) {
|
|
1055
|
-
if (a && Lt < c * n) {
|
|
1056
|
-
if (!Ct && (It === 1 ? l > h + c * r / 2 : l < u - c * r / 2) && (Ct = !0), Ct)
|
|
1057
|
-
v = !0;
|
|
1058
|
-
else if (It === 1 ? l < h + Lt : l > u - Lt)
|
|
1059
|
-
return -It;
|
|
1060
|
-
} else if (l > h + c * (1 - n) / 2 && l < u - c * (1 - n) / 2)
|
|
1061
|
-
return fi(t);
|
|
1062
|
-
}
|
|
1063
|
-
return v = v || s, v && (l < h + c * r / 2 || l > u - c * r / 2) ? l > h + c / 2 ? 1 : -1 : 0;
|
|
1064
|
-
}
|
|
1065
|
-
function fi(e) {
|
|
1066
|
-
return B(d) < B(e) ? 1 : -1;
|
|
1067
|
-
}
|
|
1068
|
-
function pi(e) {
|
|
1069
|
-
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, i = t.length, o = 0; i--; )
|
|
1070
|
-
o += t.charCodeAt(i);
|
|
1071
|
-
return o.toString(36);
|
|
1072
|
-
}
|
|
1073
|
-
function gi(e) {
|
|
1074
|
-
Wt.length = 0;
|
|
1075
|
-
for (var t = e.getElementsByTagName("input"), i = t.length; i--; ) {
|
|
1076
|
-
var o = t[i];
|
|
1077
|
-
o.checked && Wt.push(o);
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
function Bt(e) {
|
|
1081
|
-
return setTimeout(e, 0);
|
|
1082
|
-
}
|
|
1083
|
-
function ne(e) {
|
|
1084
|
-
return clearTimeout(e);
|
|
1085
|
-
}
|
|
1086
|
-
jt && y(document, "touchmove", function(e) {
|
|
1087
|
-
(p.active || dt) && e.cancelable && e.preventDefault();
|
|
1088
|
-
});
|
|
1089
|
-
p.utils = {
|
|
1090
|
-
on: y,
|
|
1091
|
-
off: w,
|
|
1092
|
-
css: f,
|
|
1093
|
-
find: Te,
|
|
1094
|
-
is: function(t, i) {
|
|
1095
|
-
return !!W(t, i, t, !1);
|
|
1096
|
-
},
|
|
1097
|
-
extend: qe,
|
|
1098
|
-
throttle: Ae,
|
|
1099
|
-
closest: W,
|
|
1100
|
-
toggleClass: z,
|
|
1101
|
-
clone: Pe,
|
|
1102
|
-
index: B,
|
|
1103
|
-
nextTick: Bt,
|
|
1104
|
-
cancelNextTick: ne,
|
|
1105
|
-
detectDirection: Ne,
|
|
1106
|
-
getChild: pt
|
|
1107
|
-
};
|
|
1108
|
-
p.get = function(e) {
|
|
1109
|
-
return e[L];
|
|
1110
|
-
};
|
|
1111
|
-
p.mount = function() {
|
|
1112
|
-
for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
|
|
1113
|
-
t[i] = arguments[i];
|
|
1114
|
-
t[0].constructor === Array && (t = t[0]), t.forEach(function(o) {
|
|
1115
|
-
if (!o.prototype || !o.prototype.constructor)
|
|
1116
|
-
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
|
|
1117
|
-
o.utils && (p.utils = $($({}, p.utils), o.utils)), At.mount(o);
|
|
1118
|
-
});
|
|
1119
|
-
};
|
|
1120
|
-
p.create = function(e, t) {
|
|
1121
|
-
return new p(e, t);
|
|
1122
|
-
};
|
|
1123
|
-
p.version = Ke;
|
|
1124
|
-
var I = [], _t, re, se = !1, Jt, te, Gt, Dt;
|
|
1125
|
-
function mi() {
|
|
1126
|
-
function e() {
|
|
1127
|
-
this.defaults = {
|
|
1128
|
-
scroll: !0,
|
|
1129
|
-
forceAutoScrollFallback: !1,
|
|
1130
|
-
scrollSensitivity: 30,
|
|
1131
|
-
scrollSpeed: 10,
|
|
1132
|
-
bubbleScroll: !0
|
|
1133
|
-
};
|
|
1134
|
-
for (var t in this)
|
|
1135
|
-
t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
|
|
1136
|
-
}
|
|
1137
|
-
return e.prototype = {
|
|
1138
|
-
dragStarted: function(i) {
|
|
1139
|
-
var o = i.originalEvent;
|
|
1140
|
-
this.sortable.nativeDraggable ? y(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? y(document, "pointermove", this._handleFallbackAutoScroll) : o.touches ? y(document, "touchmove", this._handleFallbackAutoScroll) : y(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1141
|
-
},
|
|
1142
|
-
dragOverCompleted: function(i) {
|
|
1143
|
-
var o = i.originalEvent;
|
|
1144
|
-
!this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
|
|
1145
|
-
},
|
|
1146
|
-
drop: function() {
|
|
1147
|
-
this.sortable.nativeDraggable ? w(document, "dragover", this._handleAutoScroll) : (w(document, "pointermove", this._handleFallbackAutoScroll), w(document, "touchmove", this._handleFallbackAutoScroll), w(document, "mousemove", this._handleFallbackAutoScroll)), De(), Ht(), Ze();
|
|
1148
|
-
},
|
|
1149
|
-
nulling: function() {
|
|
1150
|
-
Gt = re = _t = se = Dt = Jt = te = null, I.length = 0;
|
|
1151
|
-
},
|
|
1152
|
-
_handleFallbackAutoScroll: function(i) {
|
|
1153
|
-
this._handleAutoScroll(i, !0);
|
|
1154
|
-
},
|
|
1155
|
-
_handleAutoScroll: function(i, o) {
|
|
1156
|
-
var n = this, r = (i.touches ? i.touches[0] : i).clientX, s = (i.touches ? i.touches[0] : i).clientY, a = document.elementFromPoint(r, s);
|
|
1157
|
-
if (Gt = i, o || this.options.forceAutoScrollFallback || Tt || Q || xt) {
|
|
1158
|
-
ee(i, this.options, a, o);
|
|
1159
|
-
var l = et(a, !0);
|
|
1160
|
-
se && (!Dt || r !== Jt || s !== te) && (Dt && De(), Dt = setInterval(function() {
|
|
1161
|
-
var c = et(document.elementFromPoint(r, s), !0);
|
|
1162
|
-
c !== l && (l = c, Ht()), ee(i, n.options, c, o);
|
|
1163
|
-
}, 10), Jt = r, te = s);
|
|
1164
|
-
} else {
|
|
1165
|
-
if (!this.options.bubbleScroll || et(a, !0) === G()) {
|
|
1166
|
-
Ht();
|
|
1167
|
-
return;
|
|
1168
|
-
}
|
|
1169
|
-
ee(i, this.options, et(a, !1), !1);
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
}, U(e, {
|
|
1173
|
-
pluginName: "scroll",
|
|
1174
|
-
initializeByDefault: !0
|
|
1175
|
-
});
|
|
1176
|
-
}
|
|
1177
|
-
function Ht() {
|
|
1178
|
-
I.forEach(function(e) {
|
|
1179
|
-
clearInterval(e.pid);
|
|
1180
|
-
}), I = [];
|
|
1181
|
-
}
|
|
1182
|
-
function De() {
|
|
1183
|
-
clearInterval(Dt);
|
|
1184
|
-
}
|
|
1185
|
-
var ee = Ae(function(e, t, i, o) {
|
|
1186
|
-
if (!!t.scroll) {
|
|
1187
|
-
var n = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, s = t.scrollSensitivity, a = t.scrollSpeed, l = G(), c = !1, h;
|
|
1188
|
-
re !== i && (re = i, Ht(), _t = t.scroll, h = t.scrollFn, _t === !0 && (_t = et(i, !0)));
|
|
1189
|
-
var u = 0, v = _t;
|
|
1190
|
-
do {
|
|
1191
|
-
var D = v, b = C(D), _ = b.top, H = b.bottom, j = b.left, O = b.right, X = b.width, N = b.height, it = void 0, R = void 0, ot = D.scrollWidth, gt = D.scrollHeight, M = f(D), mt = D.scrollLeft, q = D.scrollTop;
|
|
1192
|
-
D === l ? (it = X < ot && (M.overflowX === "auto" || M.overflowX === "scroll" || M.overflowX === "visible"), R = N < gt && (M.overflowY === "auto" || M.overflowY === "scroll" || M.overflowY === "visible")) : (it = X < ot && (M.overflowX === "auto" || M.overflowX === "scroll"), R = N < gt && (M.overflowY === "auto" || M.overflowY === "scroll"));
|
|
1193
|
-
var vt = it && (Math.abs(O - n) <= s && mt + X < ot) - (Math.abs(j - n) <= s && !!mt), V = R && (Math.abs(H - r) <= s && q + N < gt) - (Math.abs(_ - r) <= s && !!q);
|
|
1194
|
-
if (!I[u])
|
|
1195
|
-
for (var nt = 0; nt <= u; nt++)
|
|
1196
|
-
I[nt] || (I[nt] = {});
|
|
1197
|
-
(I[u].vx != vt || I[u].vy != V || I[u].el !== D) && (I[u].el = D, I[u].vx = vt, I[u].vy = V, clearInterval(I[u].pid), (vt != 0 || V != 0) && (c = !0, I[u].pid = setInterval(function() {
|
|
1198
|
-
o && this.layer === 0 && p.active._onTouchMove(Gt);
|
|
1199
|
-
var bt = I[this.layer].vy ? I[this.layer].vy * a : 0, Z = I[this.layer].vx ? I[this.layer].vx * a : 0;
|
|
1200
|
-
typeof h == "function" && h.call(p.dragged.parentNode[L], Z, bt, e, Gt, I[this.layer].el) !== "continue" || Oe(I[this.layer].el, Z, bt);
|
|
1201
|
-
}.bind({
|
|
1202
|
-
layer: u
|
|
1203
|
-
}), 24))), u++;
|
|
1204
|
-
} while (t.bubbleScroll && v !== l && (v = et(v, !1)));
|
|
1205
|
-
se = c;
|
|
1206
|
-
}
|
|
1207
|
-
}, 30), Le = function(t) {
|
|
1208
|
-
var i = t.originalEvent, o = t.putSortable, n = t.dragEl, r = t.activeSortable, s = t.dispatchSortableEvent, a = t.hideGhostForTarget, l = t.unhideGhostForTarget;
|
|
1209
|
-
if (!!i) {
|
|
1210
|
-
var c = o || r;
|
|
1211
|
-
a();
|
|
1212
|
-
var h = i.changedTouches && i.changedTouches.length ? i.changedTouches[0] : i, u = document.elementFromPoint(h.clientX, h.clientY);
|
|
1213
|
-
l(), c && !c.el.contains(u) && (s("spill"), this.onSpill({
|
|
1214
|
-
dragEl: n,
|
|
1215
|
-
putSortable: o
|
|
1216
|
-
}));
|
|
1217
|
-
}
|
|
1218
|
-
};
|
|
1219
|
-
function ce() {
|
|
1220
|
-
}
|
|
1221
|
-
ce.prototype = {
|
|
1222
|
-
startIndex: null,
|
|
1223
|
-
dragStart: function(t) {
|
|
1224
|
-
var i = t.oldDraggableIndex;
|
|
1225
|
-
this.startIndex = i;
|
|
1226
|
-
},
|
|
1227
|
-
onSpill: function(t) {
|
|
1228
|
-
var i = t.dragEl, o = t.putSortable;
|
|
1229
|
-
this.sortable.captureAnimationState(), o && o.captureAnimationState();
|
|
1230
|
-
var n = pt(this.sortable.el, this.startIndex, this.options);
|
|
1231
|
-
n ? this.sortable.el.insertBefore(i, n) : this.sortable.el.appendChild(i), this.sortable.animateAll(), o && o.animateAll();
|
|
1232
|
-
},
|
|
1233
|
-
drop: Le
|
|
1234
|
-
};
|
|
1235
|
-
U(ce, {
|
|
1236
|
-
pluginName: "revertOnSpill"
|
|
1237
|
-
});
|
|
1238
|
-
function de() {
|
|
1239
|
-
}
|
|
1240
|
-
de.prototype = {
|
|
1241
|
-
onSpill: function(t) {
|
|
1242
|
-
var i = t.dragEl, o = t.putSortable, n = o || this.sortable;
|
|
1243
|
-
n.captureAnimationState(), i.parentNode && i.parentNode.removeChild(i), n.animateAll();
|
|
1244
|
-
},
|
|
1245
|
-
drop: Le
|
|
1246
|
-
};
|
|
1247
|
-
U(de, {
|
|
1248
|
-
pluginName: "removeOnSpill"
|
|
1249
|
-
});
|
|
1250
|
-
p.mount(new mi());
|
|
1251
|
-
p.mount(de, ce);
|
|
1252
|
-
const vi = ".sc-swirl-option-list-h{display:block}.sc-swirl-option-list-h *.sc-swirl-option-list{box-sizing:border-box}", bi = class {
|
|
1253
|
-
constructor(e) {
|
|
1254
|
-
$t(this, e), this.itemDrop = ie(this, "itemDrop", 7), this.valueChange = ie(this, "valueChange", 7), this.onFocus = async (t) => {
|
|
1255
|
-
this.listboxEl.contains(t.relatedTarget) || (await new Promise((i) => setTimeout(i)), Boolean(this.focusedItem) ? this.focusItem(this.getActiveItemIndex()) : this.focusItem(0));
|
|
1256
|
-
}, this.onClick = (t) => {
|
|
1257
|
-
t.preventDefault();
|
|
1258
|
-
const i = t.target, o = i == null ? void 0 : i.closest("swirl-option-list-item"), n = t.composedPath()[0], r = Boolean(he(n, '[role="option"]'));
|
|
1259
|
-
if (!Boolean(o) || !r) {
|
|
1260
|
-
t.preventDefault();
|
|
1261
|
-
return;
|
|
1262
|
-
}
|
|
1263
|
-
this.selectItem(this.items.findIndex((s) => s.value === o.value));
|
|
1264
|
-
}, this.onKeyDown = (t) => {
|
|
1265
|
-
if (t.code === "ArrowDown")
|
|
1266
|
-
t.preventDefault(), Boolean(this.dragging) ? this.moveDraggedItemDown() : this.focusNextItem();
|
|
1267
|
-
else if (t.code === "ArrowUp")
|
|
1268
|
-
t.preventDefault(), Boolean(this.dragging) ? this.moveDraggedItemUp() : this.focusPreviousItem();
|
|
1269
|
-
else if (t.code === "Space" || t.code === "Enter") {
|
|
1270
|
-
const i = t.composedPath()[0];
|
|
1271
|
-
if (!Boolean(he(i, '[role="option"]')))
|
|
1272
|
-
return;
|
|
1273
|
-
t.preventDefault(), Boolean(this.dragging) ? this.stopDrag(this.dragging) : this.selectFocusedItem();
|
|
1274
|
-
} else
|
|
1275
|
-
t.code === "Home" ? (t.preventDefault(), this.focusItem(0)) : t.code === "End" ? (t.preventDefault(), this.focusItem(this.items.length - 1)) : t.code === "KeyA" && (t.metaKey || t.ctrlKey) && this.multiSelect ? (t.preventDefault(), this.selectAllItems()) : t.code === "Tab" && Boolean(this.dragging) && t.preventDefault();
|
|
1276
|
-
}, this.toggleDrag = (t) => {
|
|
1277
|
-
const i = t.detail;
|
|
1278
|
-
Boolean(this.dragging) ? this.stopDrag(i) : this.startDrag(i);
|
|
1279
|
-
}, this.startDrag = (t) => {
|
|
1280
|
-
this.dragging = t, this.draggingStartIndex = this.getItemIndex(this.dragging), t.setAttribute("dragging", "true");
|
|
1281
|
-
const i = this.getItemIndex(this.dragging);
|
|
1282
|
-
this.focusItem(i), this.assistiveText = this.assistiveTextItemGrabbed;
|
|
1283
|
-
}, this.stopDrag = (t) => {
|
|
1284
|
-
this.dragging = void 0, t.removeAttribute("dragging");
|
|
1285
|
-
const i = this.getActiveItemIndex();
|
|
1286
|
-
this.assistiveText = `${this.assistiveTextItemMoved} ${i + 1}`, this.itemDrop.emit({ item: t, oldIndex: this.draggingStartIndex, newIndex: i }), this.draggingStartIndex = void 0;
|
|
1287
|
-
}, this.allowDrag = void 0, this.assistiveTextItemGrabbed = "Item grabbed. Use arrow keys to move item up or down. Use spacebar to save position.", this.assistiveTextItemMoving = "Current position:", this.assistiveTextItemMoved = "Item moved. New position:", this.disabled = void 0, this.label = void 0, this.optionListId = void 0, this.multiSelect = void 0, this.value = [], this.assistiveText = void 0;
|
|
1288
|
-
}
|
|
1289
|
-
componentDidLoad() {
|
|
1290
|
-
this.updateItems(), this.observeSlotChanges(), this.setItemAllowDragState(), this.setItemDisabledState(), this.setItemContext(), this.syncItemsWithValue(), this.setupDragDrop();
|
|
1291
|
-
}
|
|
1292
|
-
disconnectedCallback() {
|
|
1293
|
-
var e, t;
|
|
1294
|
-
(e = this.observer) === null || e === void 0 || e.disconnect(), (t = this.sortable) === null || t === void 0 || t.destroy();
|
|
1295
|
-
}
|
|
1296
|
-
watchAllowDrag() {
|
|
1297
|
-
this.setItemAllowDragState(), this.setupDragDrop();
|
|
1298
|
-
}
|
|
1299
|
-
watchDisabled() {
|
|
1300
|
-
this.setItemDisabledState();
|
|
1301
|
-
}
|
|
1302
|
-
watchMultiSelect() {
|
|
1303
|
-
this.setItemContext();
|
|
1304
|
-
}
|
|
1305
|
-
watchValue() {
|
|
1306
|
-
this.syncItemsWithValue();
|
|
1307
|
-
}
|
|
1308
|
-
observeSlotChanges() {
|
|
1309
|
-
this.observer = new MutationObserver(() => {
|
|
1310
|
-
this.updateItems();
|
|
1311
|
-
}), this.observer.observe(this.listboxEl, { childList: !0 });
|
|
1312
|
-
}
|
|
1313
|
-
updateItems() {
|
|
1314
|
-
this.items = fe(this.el, "swirl-option-list-item");
|
|
1315
|
-
}
|
|
1316
|
-
setItemDisabledState() {
|
|
1317
|
-
this.disabled && this.items.forEach((e) => e.disabled = !0);
|
|
1318
|
-
}
|
|
1319
|
-
setItemContext() {
|
|
1320
|
-
this.multiSelect ? this.items.forEach((e) => e.context = "multi-select") : (this.items.forEach((e) => e.context = "single-select"), this.value.length > 1 && this.updateValue([this.value[0]]));
|
|
1321
|
-
}
|
|
1322
|
-
setupDragDrop() {
|
|
1323
|
-
Boolean(this.sortable) && this.sortable.destroy(), this.allowDrag && (this.sortable = p.create(this.listboxEl, {
|
|
1324
|
-
animation: 150,
|
|
1325
|
-
draggable: "swirl-option-list-item",
|
|
1326
|
-
handle: ".option-list-item__drag-handle",
|
|
1327
|
-
onEnd: (e) => {
|
|
1328
|
-
this.itemDrop.emit({
|
|
1329
|
-
item: e.item,
|
|
1330
|
-
oldIndex: e.oldIndex,
|
|
1331
|
-
newIndex: e.newIndex
|
|
1332
|
-
});
|
|
1333
|
-
}
|
|
1334
|
-
}));
|
|
1335
|
-
}
|
|
1336
|
-
setItemAllowDragState() {
|
|
1337
|
-
if (this.allowDrag && !this.multiSelect) {
|
|
1338
|
-
console.error("[SwirlOptionList] Drag can only be allowed for multi select lists.");
|
|
1339
|
-
return;
|
|
1340
|
-
}
|
|
1341
|
-
const e = fe(this.el, "swirl-option-list-section");
|
|
1342
|
-
if (this.allowDrag && e.length > 0) {
|
|
1343
|
-
console.error("[SwirlOptionList] Drag can only be allowed for lists without sections.");
|
|
1344
|
-
return;
|
|
1345
|
-
}
|
|
1346
|
-
this.allowDrag ? this.items.forEach((t) => {
|
|
1347
|
-
t.setAttribute("allow-drag", "true"), t.addEventListener("toggleDrag", this.toggleDrag);
|
|
1348
|
-
}) : this.items.forEach((t) => {
|
|
1349
|
-
t.removeAttribute("allow-drag"), t.removeEventListener("toggleDrag", this.toggleDrag);
|
|
1350
|
-
});
|
|
1351
|
-
}
|
|
1352
|
-
selectItem(e) {
|
|
1353
|
-
if (this.disabled)
|
|
1354
|
-
return;
|
|
1355
|
-
const t = this.items[e];
|
|
1356
|
-
if (t.disabled)
|
|
1357
|
-
return;
|
|
1358
|
-
const i = this.value.includes(t.value);
|
|
1359
|
-
this.multiSelect || (this.value = []), i ? this.updateValue(this.value.filter((o) => o !== t.value)) : this.updateValue([...this.value, t.value]);
|
|
1360
|
-
}
|
|
1361
|
-
updateValue(e) {
|
|
1362
|
-
this.value = e, this.valueChange.emit(this.value);
|
|
1363
|
-
}
|
|
1364
|
-
selectFocusedItem() {
|
|
1365
|
-
this.disabled || this.getActiveItemIndex() === -1 || this.selectItem(this.getActiveItemIndex());
|
|
1366
|
-
}
|
|
1367
|
-
selectAllItems() {
|
|
1368
|
-
if (this.disabled)
|
|
1369
|
-
return;
|
|
1370
|
-
this.items.every((t) => this.value.includes(t.value)) ? this.updateValue([]) : this.updateValue(this.items.map((t) => t.value));
|
|
1371
|
-
}
|
|
1372
|
-
syncItemsWithValue() {
|
|
1373
|
-
var e;
|
|
1374
|
-
(e = this.items) === null || e === void 0 || e.forEach((t) => t.selected = this.value.includes(t.value));
|
|
1375
|
-
}
|
|
1376
|
-
focusItem(e) {
|
|
1377
|
-
var t;
|
|
1378
|
-
if (this.disabled)
|
|
1379
|
-
return;
|
|
1380
|
-
this.items.forEach((o) => o.querySelector('[role="option"]').removeAttribute("tabIndex"));
|
|
1381
|
-
const i = (t = this.items[e]) === null || t === void 0 ? void 0 : t.querySelector('[role="option"]');
|
|
1382
|
-
!Boolean(i) || (i.setAttribute("tabIndex", "0"), i.focus(), this.focusedItem = i);
|
|
1383
|
-
}
|
|
1384
|
-
focusNextItem() {
|
|
1385
|
-
if (this.disabled)
|
|
1386
|
-
return;
|
|
1387
|
-
const e = this.getActiveItemIndex(), t = Math.min(e + 1, this.items.length - 1);
|
|
1388
|
-
this.focusItem(t);
|
|
1389
|
-
}
|
|
1390
|
-
focusPreviousItem() {
|
|
1391
|
-
const e = this.getActiveItemIndex(), t = Math.max(e - 1, 0);
|
|
1392
|
-
this.focusItem(t);
|
|
1393
|
-
}
|
|
1394
|
-
getActiveItemIndex() {
|
|
1395
|
-
return this.items.map((e) => e.querySelector('[role="option"]')).findIndex((e) => e === this.focusedItem);
|
|
1396
|
-
}
|
|
1397
|
-
getItemIndex(e) {
|
|
1398
|
-
return this.items.map((t) => t).findIndex((t) => t === e);
|
|
1399
|
-
}
|
|
1400
|
-
moveDraggedItemDown() {
|
|
1401
|
-
const e = this.dragging.nextElementSibling;
|
|
1402
|
-
!Boolean(e) || (e.after(this.dragging), this.updateItems(), this.listboxEl.focus(), this.assistiveText = `${this.assistiveTextItemMoving} ${this.getActiveItemIndex() + 1}`);
|
|
1403
|
-
}
|
|
1404
|
-
moveDraggedItemUp() {
|
|
1405
|
-
const e = this.dragging.previousElementSibling;
|
|
1406
|
-
!Boolean(e) || (e.before(this.dragging), this.updateItems(), this.listboxEl.focus(), this.assistiveText = `${this.assistiveTextItemMoving} ${this.getItemIndex(this.dragging) + 1}`);
|
|
1407
|
-
}
|
|
1408
|
-
render() {
|
|
1409
|
-
const e = this.multiSelect ? "true" : void 0, t = this.disabled ? -1 : 0;
|
|
1410
|
-
return g(xe, null, g("swirl-visually-hidden", { role: "alert" }, this.assistiveText), g("div", { "aria-label": this.label, "aria-multiselectable": e, class: "option-list", id: this.optionListId, onClick: this.onClick, onFocus: this.onFocus, onKeyDown: this.onKeyDown, ref: (i) => this.listboxEl = i, role: "listbox", tabIndex: t }, g("slot", null)));
|
|
1411
|
-
}
|
|
1412
|
-
get el() {
|
|
1413
|
-
return Ee(this);
|
|
1414
|
-
}
|
|
1415
|
-
static get watchers() {
|
|
1416
|
-
return {
|
|
1417
|
-
allowDrag: ["watchAllowDrag"],
|
|
1418
|
-
disabled: ["watchDisabled"],
|
|
1419
|
-
multiSelect: ["watchMultiSelect"],
|
|
1420
|
-
value: ["watchValue"]
|
|
1421
|
-
};
|
|
1422
|
-
}
|
|
1423
|
-
};
|
|
1424
|
-
bi.style = vi;
|
|
1425
|
-
const wi = `.sc-swirl-option-list-item-h{position:relative;display:inline-flex;width:100%}.sc-swirl-option-list-item-h *.sc-swirl-option-list-item{box-sizing:border-box}.option-list-item.sc-swirl-option-list-item{display:inline-flex;width:100%;min-height:3rem;padding:var(--s-space-12) var(--s-space-16);align-items:center;background-color:var(--s-surface-overlay-default);cursor:pointer;gap:var(--s-space-12)}.option-list-item.sc-swirl-option-list-item:hover:not(.option-list-item--disabled){background-color:var(--s-surface-overlay-hovered)}.option-list-item.sc-swirl-option-list-item:active:not(.option-list-item--disabled){background-color:var(--s-surface-overlay-pressed)}.option-list-item.sc-swirl-option-list-item:focus{outline:none}.option-list-item.sc-swirl-option-list-item:focus-visible{background-color:var(--s-surface-overlay-hovered)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item.sc-swirl-option-list-item{min-height:0;padding:var(--s-space-12);gap:var(--s-space-8)}}.option-list-item--draggable.sc-swirl-option-list-item .option-list-item__label.sc-swirl-option-list-item{padding-right:calc(var(--s-space-16) + 1.5rem)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item--draggable.sc-swirl-option-list-item .option-list-item__label.sc-swirl-option-list-item{padding-right:calc(var(--s-space-16) + 1rem)}}.option-list-item--dragging.sc-swirl-option-list-item{z-index:1;border-radius:var(--s-border-radius-s);background-color:var(--s-surface-overlay-pressed);box-shadow:0 0.0625rem 0.125rem rgba(25, 26, 28, 0.08),
|
|
1426
|
-
0 0.25rem 2rem rgba(25, 26, 28, 0.16)}.option-list-item--dragging.sc-swirl-option-list-item:hover:not(.option-list-item--disabled){background-color:var(--s-surface-overlay-pressed)}.option-list-item--selected.sc-swirl-option-list-item .option-list-item__label.sc-swirl-option-list-item{color:var(--s-text-highlight)}.option-list-item--selected.sc-swirl-option-list-item .option-list-item__icon.sc-swirl-option-list-item{color:var(--s-icon-highlight)}.option-list-item--selected.sc-swirl-option-list-item .option-list-item__checkbox-box.sc-swirl-option-list-item{border-color:var(--s-icon-highlight);color:var(--s-text-on-status);background-color:var(--s-icon-highlight)}.option-list-item--disabled.sc-swirl-option-list-item{cursor:default}.option-list-item--disabled.option-list-item--selected.sc-swirl-option-list-item .option-list-item__checkbox-box.sc-swirl-option-list-item{background-color:var(--s-icon-disabled)}.option-list-item--disabled.option-list-item--selected.sc-swirl-option-list-item .option-list-item__checkbox-icon.sc-swirl-option-list-item{color:var(--s-text-on-status)}.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__label.sc-swirl-option-list-item{color:var(--s-text-disabled)}.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__icon.sc-swirl-option-list-item,.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__selection-icon.sc-swirl-option-list-item,.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__checkbox-icon.sc-swirl-option-list-item{color:var(--s-icon-disabled)}.option-list-item--disabled.sc-swirl-option-list-item .option-list-item__checkbox-box.sc-swirl-option-list-item{border-color:var(--s-icon-disabled);background-color:var(--s-surface-overlay-default)}.option-list-item__label.sc-swirl-option-list-item{flex-grow:1;color:var(--s-text-default);font-size:var(--s-font-size-base);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);text-align:left}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item__label.sc-swirl-option-list-item{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.option-list-item__icon.sc-swirl-option-list-item{display:inline-flex;flex-shrink:0;color:var(--s-icon-default)}.option-list-item__selection-icon.sc-swirl-option-list-item{display:inline-flex;flex-shrink:0;color:var(--s-icon-highlight)}.option-list-item__checkbox.sc-swirl-option-list-item{display:inline-flex;width:1.5rem;height:1.5rem;padding:var(--s-space-2)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.option-list-item__checkbox.sc-swirl-option-list-item{width:1.375rem;height:1.375rem}}.option-list-item__checkbox-box.sc-swirl-option-list-item{display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center;border:0.125rem solid var(--s-icon-default);border-radius:var(--s-border-radius-s)}.option-list-item__checkbox-icon.sc-swirl-option-list-item{display:inline-flex}.option-list-item__drag-handle.sc-swirl-option-list-item{position:absolute;z-index:1;top:50%;right:var(--s-space-4);display:inline-flex;margin:0;padding:0;padding:var(--s-space-8);flex-shrink:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:grab;transform:translateY(-50%)}.option-list-item__drag-handle.sc-swirl-option-list-item:active{cursor:grabbing}.option-list-item__drag-handle.sc-swirl-option-list-item:focus:not(:focus-visible){outline:none}.option-list-item__drag-handle.sc-swirl-option-list-item:focus-visible{outline-color:var(--s-focus-default)}`, yi = class {
|
|
1427
|
-
constructor(e) {
|
|
1428
|
-
$t(this, e), this.toggleDrag = ie(this, "toggleDrag", 7), this.desktopMediaQuery = Xe(), this.desktopMediaQueryHandler = (t) => {
|
|
1429
|
-
this.forceIconProps(t.matches), this.updateIconSize(t.matches);
|
|
1430
|
-
}, this.onDragHandleKeyDown = (t) => {
|
|
1431
|
-
(t.code === "Space" || t.code === "Enter") && (t.preventDefault(), this.toggleDrag.emit(this.el));
|
|
1432
|
-
}, this.allowDrag = void 0, this.context = "single-select", this.disabled = void 0, this.dragging = void 0, this.dragHandleDescription = "Press spacebar to toggle grab", this.dragHandleLabel = "Move option", this.icon = void 0, this.label = void 0, this.selected = !1, this.value = void 0, this.iconSize = 24;
|
|
1433
|
-
}
|
|
1434
|
-
componentDidLoad() {
|
|
1435
|
-
var e, t;
|
|
1436
|
-
this.forceIconProps(this.desktopMediaQuery.matches), this.updateIconSize(this.desktopMediaQuery.matches), (t = (e = this.desktopMediaQuery).addEventListener) === null || t === void 0 || t.call(e, "change", this.desktopMediaQueryHandler);
|
|
1437
|
-
}
|
|
1438
|
-
disconnectedCallback() {
|
|
1439
|
-
var e, t;
|
|
1440
|
-
(t = (e = this.desktopMediaQuery).removeEventListener) === null || t === void 0 || t.call(e, "change", this.desktopMediaQueryHandler);
|
|
1441
|
-
}
|
|
1442
|
-
forceIconProps(e) {
|
|
1443
|
-
var t;
|
|
1444
|
-
const i = (t = this.iconEl) === null || t === void 0 ? void 0 : t.children[0];
|
|
1445
|
-
i == null || i.setAttribute("size", e ? "20" : "24");
|
|
1446
|
-
}
|
|
1447
|
-
updateIconSize(e) {
|
|
1448
|
-
this.iconSize = e ? 20 : 24;
|
|
1449
|
-
}
|
|
1450
|
-
render() {
|
|
1451
|
-
const e = this.disabled ? "true" : void 0, t = String(this.selected), i = this.context === "multi-select", o = Boolean(this.icon) && this.context === "single-select", n = this.selected && this.context === "single-select", r = ae("option-list-item", `option-list-item--context-${this.context}`, {
|
|
1452
|
-
"option-list-item--disabled": this.disabled,
|
|
1453
|
-
"option-list-item--draggable": this.allowDrag,
|
|
1454
|
-
"option-list-item--dragging": this.dragging,
|
|
1455
|
-
"option-list-item--selected": this.selected
|
|
1456
|
-
});
|
|
1457
|
-
return g(xe, null, g("div", { "aria-disabled": e, "aria-selected": t, class: r, part: "option-list-item", role: "option" }, o && g("span", { class: "option-list-item__icon", innerHTML: this.icon, ref: (s) => this.iconEl = s }), i && g("span", { class: "option-list-item__checkbox" }, g("span", { class: "option-list-item__checkbox-box" }, this.selected && g("swirl-icon-check-strong", { class: "option-list-item__checkbox-icon", size: 16 }))), g("span", { class: "option-list-item__label", part: "option-list-item__label" }, this.label), n && g("span", { class: "option-list-item__selection-icon" }, g("swirl-icon-check-small", { size: this.iconSize }))), this.allowDrag && g("button", { "aria-describedby": this.dragHandleDescription, "aria-label": `${this.dragHandleLabel} "${this.label}"`, class: "option-list-item__drag-handle", onKeyDown: this.onDragHandleKeyDown, type: "button" }, g("swirl-icon-drag-handle", { size: this.iconSize })));
|
|
1458
|
-
}
|
|
1459
|
-
get el() {
|
|
1460
|
-
return Ee(this);
|
|
1461
|
-
}
|
|
1462
|
-
};
|
|
1463
|
-
yi.style = wi;
|
|
1464
|
-
export {
|
|
1465
|
-
Re as swirl_icon_check_small,
|
|
1466
|
-
Ge as swirl_icon_drag_handle,
|
|
1467
|
-
bi as swirl_option_list,
|
|
1468
|
-
yi as swirl_option_list_item
|
|
1469
|
-
};
|