@getflip/swirl-components-react 0.66.0 → 0.67.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{file-manager.entry.3eb0adb4.js → file-manager.entry.088d421b.js} +1 -1
- package/dist/{index.0f13ab8f.js → index.ef44a4ad.js} +185 -185
- package/dist/sortable.esm-8c3d5856.57c4f048.js +1229 -0
- package/dist/{swirl-action-list-section.entry.ec3eb84c.js → swirl-action-list-section.entry.9f6d1cdb.js} +1 -1
- package/dist/{swirl-action-list_3.entry.002180cb.js → swirl-action-list_3.entry.e0a46979.js} +1 -1
- package/dist/{swirl-app-bar.entry.1ab893f9.js → swirl-app-bar.entry.13b702cd.js} +1 -1
- package/dist/{swirl-app-icon.entry.f40a285b.js → swirl-app-icon.entry.6a85a671.js} +1 -1
- package/dist/{swirl-app-layout_7.entry.9c1ffdea.js → swirl-app-layout_7.entry.a96759d4.js} +156 -74
- package/dist/{swirl-autocomplete.entry.7dd8a89f.js → swirl-autocomplete.entry.cb320b24.js} +1 -1
- package/dist/{swirl-avatar-group.entry.53512594.js → swirl-avatar-group.entry.78faca60.js} +1 -1
- package/dist/swirl-avatar.entry.6a7bc2b0.js +56 -0
- package/dist/{swirl-badge.entry.733efc3a.js → swirl-badge.entry.ae8775ea.js} +1 -1
- package/dist/{swirl-banner.entry.f2d61f5c.js → swirl-banner.entry.f342c182.js} +1 -1
- package/dist/{swirl-button-group.entry.56c77b72.js → swirl-button-group.entry.ec3005b1.js} +1 -1
- package/dist/{swirl-button.entry.f5ed3c1e.js → swirl-button.entry.b910568c.js} +1 -1
- package/dist/{swirl-card.entry.bef52493.js → swirl-card.entry.03054ba8.js} +13 -13
- package/dist/{swirl-carousel-slide.entry.7dbd1789.js → swirl-carousel-slide.entry.0ed7c325.js} +1 -1
- package/dist/{swirl-carousel.entry.039469b4.js → swirl-carousel.entry.9e65f0ad.js} +1 -1
- package/dist/{swirl-checkbox.entry.e2cc1944.js → swirl-checkbox.entry.4c665daa.js} +1 -1
- package/dist/{swirl-chip.entry.d9990bd7.js → swirl-chip.entry.a2964fcd.js} +1 -1
- package/dist/{swirl-columns.entry.100cb569.js → swirl-columns.entry.f12c2131.js} +1 -1
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +60 -53
- package/dist/{swirl-console-layout.entry.034be908.js → swirl-console-layout.entry.f2d8dd36.js} +1 -1
- package/dist/{swirl-date-input.entry.13352750.js → swirl-date-input.entry.dd32388f.js} +1 -1
- package/dist/{swirl-date-picker_2.entry.388f5108.js → swirl-date-picker_2.entry.78631a8e.js} +1 -1
- package/dist/{swirl-description-list-item.entry.fd330020.js → swirl-description-list-item.entry.a795eae0.js} +1 -1
- package/dist/{swirl-description-list.entry.99ef7095.js → swirl-description-list.entry.910e198c.js} +1 -1
- package/dist/{swirl-dialog.entry.698e75d4.js → swirl-dialog.entry.4632e04b.js} +1 -1
- package/dist/{swirl-file-uploader.entry.ddf4cb11.js → swirl-file-uploader.entry.615e8b3c.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.fec6ccc6.js → swirl-file-viewer_7.entry.ab78fcd1.js} +1 -1
- package/dist/{swirl-form-control.entry.4a99c14f.js → swirl-form-control.entry.863a3c2b.js} +1 -1
- package/dist/{swirl-form-group.entry.66600fd6.js → swirl-form-group.entry.86ff025e.js} +1 -1
- package/dist/{swirl-heading.entry.f27d8a5c.js → swirl-heading.entry.83d0694d.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.d8797692.js → swirl-icon-add-photo.entry.660402c4.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.ee9a1ed7.js → swirl-icon-add_6.entry.5dc48e31.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.e72a7347.js → swirl-icon-admin-panel-settings.entry.d3db16c4.js} +1 -1
- package/dist/{swirl-icon-ai.entry.d74c9fb3.js → swirl-icon-ai.entry.e8b83571.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.a7c1794e.js → swirl-icon-arrow-back.entry.e0f6cd64.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.5f1129f8.js → swirl-icon-arrow-downward_2.entry.87c73970.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.4c1fd5b6.js → swirl-icon-arrow-forward.entry.01516f11.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.88c50ae1.js → swirl-icon-arrow-left_4.entry.7927e32b.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.dbc96850.js → swirl-icon-arrow-right-small.entry.32ade426.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.31530a2b.js → swirl-icon-attachment.entry.443e4520.js} +1 -1
- package/dist/{swirl-icon-bar-chart.entry.384523f7.js → swirl-icon-bar-chart.entry.8873432f.js} +1 -1
- package/dist/{swirl-icon-block.entry.04bed8c2.js → swirl-icon-block.entry.797b1af6.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.217b90d5.js → swirl-icon-bookmark.entry.8028f38a.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.555a4482.js → swirl-icon-cancel_4.entry.65488e51.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.d49374c8.js → swirl-icon-chat-bubble.entry.c9e956b5.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.73e8e4ef.js → swirl-icon-chats-filled.entry.edad6671.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.c724f818.js → swirl-icon-chats-outlined.entry.22705185.js} +1 -1
- package/dist/{swirl-icon-check-circle_3.entry.91e31a6c.js → swirl-icon-check-circle_3.entry.0774c1a0.js} +1 -1
- package/dist/{swirl-icon-check-small_3.entry.735d5d2b.js → swirl-icon-check-small_3.entry.8637bd86.js} +1 -1
- package/dist/{swirl-icon-check-strong.entry.b306f11b.js → swirl-icon-check-strong.entry.69b4f7ce.js} +1 -1
- package/dist/{swirl-icon-check.entry.5ff57ced.js → swirl-icon-check.entry.3eac998c.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.51f20790.js → swirl-icon-chevron-left.entry.e475814e.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.b36bf110.js → swirl-icon-chevron-right.entry.a79929de.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.13941ae3.js → swirl-icon-close-small.entry.5ad253ec.js} +1 -1
- package/dist/{swirl-icon-close.entry.e67f11cc.js → swirl-icon-close.entry.efff941c.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.93e2234e.js → swirl-icon-cloud-upload.entry.fbd88b26.js} +1 -1
- package/dist/{swirl-icon-column.entry.84aa3357.js → swirl-icon-column.entry.f2185ba0.js} +1 -1
- package/dist/{swirl-icon-comment.entry.07b98123.js → swirl-icon-comment.entry.63bf1c9c.js} +1 -1
- package/dist/{swirl-icon-copy.entry.974b61b2.js → swirl-icon-copy.entry.6d02aa0e.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.7c028124.js → swirl-icon-date-range.entry.9a2be793.js} +1 -1
- package/dist/{swirl-icon-delete.entry.7458396c.js → swirl-icon-delete.entry.279ef9c8.js} +1 -1
- package/dist/{swirl-icon-description.entry.6284719a.js → swirl-icon-description.entry.6b09a8c0.js} +1 -1
- package/dist/{swirl-icon-double-arrow-left.entry.cdceb1cf.js → swirl-icon-double-arrow-left.entry.e9767ed7.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.282c7e97.js → swirl-icon-double-arrow-right.entry.d7c2b1b1.js} +1 -1
- package/dist/{swirl-icon-download.entry.11f662c0.js → swirl-icon-download.entry.cf73b992.js} +1 -1
- package/dist/{swirl-icon-edit.entry.62321776.js → swirl-icon-edit.entry.48aadd8e.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.f266b4bb.js → swirl-icon-emoji-mood.entry.483337fa.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.47aa0125.js → swirl-icon-emoji-satisfied.entry.354b142d.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.d3e58987.js → swirl-icon-error_3.entry.040ccd8b.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.11d66ae2.js → swirl-icon-expand-more.entry.02e5f734.js} +1 -1
- package/dist/{swirl-icon-filter.entry.47cddd5c.js → swirl-icon-filter.entry.f13e460b.js} +1 -1
- package/dist/{swirl-icon-folder.entry.1ea79ab3.js → swirl-icon-folder.entry.d9c9a0ba.js} +1 -1
- package/dist/{swirl-icon-gif.entry.4b7d125d.js → swirl-icon-gif.entry.4d07601a.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.0a7e197d.js → swirl-icon-group-assign.entry.e6858c26.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.09a08acf.js → swirl-icon-groups-custom.entry.1c7d4fbf.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.98cb1ab2.js → swirl-icon-groups-filled.entry.4adf3891.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.29708f81.js → swirl-icon-groups-outlined.entry.4174aeb4.js} +1 -1
- package/dist/{swirl-icon-groups.entry.074417f0.js → swirl-icon-groups.entry.afe30710.js} +1 -1
- package/dist/{swirl-icon-help.entry.08e60010.js → swirl-icon-help.entry.88f0216b.js} +1 -1
- package/dist/{swirl-icon-highlight.entry.f06253a9.js → swirl-icon-highlight.entry.1f485f06.js} +1 -1
- package/dist/{swirl-icon-home.entry.ad4850ea.js → swirl-icon-home.entry.533e80ae.js} +1 -1
- package/dist/{swirl-icon-image.entry.9aa5b444.js → swirl-icon-image.entry.322cb5aa.js} +1 -1
- package/dist/{swirl-icon-improve-text.entry.660d9b99.js → swirl-icon-improve-text.entry.b9af60de.js} +1 -1
- package/dist/{swirl-icon-insert-below.entry.4c25defa.js → swirl-icon-insert-below.entry.b130992a.js} +1 -1
- package/dist/{swirl-icon-insert-on-top.entry.119d9ba8.js → swirl-icon-insert-on-top.entry.ada00470.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.b25780d1.js → swirl-icon-inventory.entry.099a0295.js} +1 -1
- package/dist/{swirl-icon-like.entry.5f214729.js → swirl-icon-like.entry.de81e093.js} +1 -1
- package/dist/{swirl-icon-link.entry.8d58e003.js → swirl-icon-link.entry.3d627f86.js} +1 -1
- package/dist/{swirl-icon-lock-person.entry.77435915.js → swirl-icon-lock-person.entry.17635551.js} +1 -1
- package/dist/{swirl-icon-lock.entry.0814d11c.js → swirl-icon-lock.entry.2f9778a7.js} +1 -1
- package/dist/{swirl-icon-logout.entry.9e6873d6.js → swirl-icon-logout.entry.1d7fe651.js} +1 -1
- package/dist/{swirl-icon-long-text.entry.5e575f23.js → swirl-icon-long-text.entry.8be16a25.js} +1 -1
- package/dist/{swirl-icon-mail.entry.4b0803c6.js → swirl-icon-mail.entry.8edb5d8d.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.b263902b.js → swirl-icon-manage-accounts.entry.87e36f50.js} +1 -1
- package/dist/{swirl-icon-mark-chat-read.entry.2d165b52.js → swirl-icon-mark-chat-read.entry.52a2a357.js} +1 -1
- package/dist/{swirl-icon-mark-chat-unread.entry.e8ff824b.js → swirl-icon-mark-chat-unread.entry.e3c2649c.js} +1 -1
- package/dist/{swirl-icon-mention.entry.ed8e079d.js → swirl-icon-mention.entry.af5b7c78.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.8e853d37.js → swirl-icon-menu-filled.entry.e16e2d30.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.b8988628.js → swirl-icon-menu-outlined.entry.2cd1c560.js} +1 -1
- package/dist/{swirl-icon-menu.entry.1a2d944b.js → swirl-icon-menu.entry.cd418457.js} +1 -1
- package/dist/{swirl-icon-message.entry.e9ca0575.js → swirl-icon-message.entry.dcf3f732.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.08b401a1.js → swirl-icon-more-horizontal.entry.9d4f6599.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.a0f4a84b.js → swirl-icon-news-filled.entry.edaf459d.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.a005439d.js → swirl-icon-news-outlined.entry.e4ccd5fa.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.974aa2f6.js → swirl-icon-notifications-active.entry.e7c07c85.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.e0a1a9fe.js → swirl-icon-notifications-off.entry.04277144.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.90d99416.js → swirl-icon-notifications.entry.5250f898.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.7576bd98.js → swirl-icon-open-in-new.entry.78a33876.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.234723e9.js → swirl-icon-people-alt.entry.e5d9a31e.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.fe4e0a2e.js → swirl-icon-person-off.entry.8717fdb1.js} +1 -1
- package/dist/{swirl-icon-person.entry.608d82d5.js → swirl-icon-person.entry.436ca917.js} +1 -1
- package/dist/{swirl-icon-phone.entry.f3107412.js → swirl-icon-phone.entry.64e34ff0.js} +1 -1
- package/dist/{swirl-icon-play-arrow.entry.02da8ad5.js → swirl-icon-play-arrow.entry.7c4b6a9c.js} +1 -1
- package/dist/{swirl-icon-poll.entry.926d6ecd.js → swirl-icon-poll.entry.c63d6cc2.js} +1 -1
- package/dist/{swirl-icon-print.entry.943c6e30.js → swirl-icon-print.entry.33c5ed56.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.18f32d36.js → swirl-icon-recieved.entry.ea6fd0e5.js} +1 -1
- package/dist/{swirl-icon-reply.entry.b1007939.js → swirl-icon-reply.entry.a296268b.js} +1 -1
- package/dist/{swirl-icon-roadmap.entry.9543cb36.js → swirl-icon-roadmap.entry.2e6b8109.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.716f188d.js → swirl-icon-search-strong.entry.91babad0.js} +1 -1
- package/dist/{swirl-icon-search.entry.85869d60.js → swirl-icon-search.entry.678be0a5.js} +1 -1
- package/dist/{swirl-icon-send.entry.eea25c36.js → swirl-icon-send.entry.75eccd5c.js} +1 -1
- package/dist/{swirl-icon-settings.entry.24b37d91.js → swirl-icon-settings.entry.56e37c66.js} +1 -1
- package/dist/{swirl-icon-short-text.entry.bffe411d.js → swirl-icon-short-text.entry.3fb9520b.js} +1 -1
- package/dist/{swirl-icon-simplify.entry.cf8402be.js → swirl-icon-simplify.entry.b31fa241.js} +1 -1
- package/dist/{swirl-icon-spellcheck.entry.8de1ffda.js → swirl-icon-spellcheck.entry.296e636e.js} +1 -1
- package/dist/{swirl-icon-sync.entry.11ec7b75.js → swirl-icon-sync.entry.b74f748e.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.c538dc32.js → swirl-icon-tasks-filled.entry.e914d10c.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.9811fc20.js → swirl-icon-tasks-outlined.entry.8e14f63d.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.51f5f318.js → swirl-icon-time-filled.entry.b72ab9f3.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.972025dd.js → swirl-icon-time-outlined.entry.e34f5902.js} +1 -1
- package/dist/{swirl-icon-undo.entry.6a31f55a.js → swirl-icon-undo.entry.2fd26b9f.js} +1 -1
- package/dist/{swirl-icon-unlock-person.entry.f80dc283.js → swirl-icon-unlock-person.entry.80f4e97b.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.bf2d140e.js → swirl-icon-user-assign.entry.7f24f27f.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.459eed67.js → swirl-icon-video-camera.entry.6507e574.js} +1 -1
- package/dist/{swirl-icon-video-library.entry.bb665d0c.js → swirl-icon-video-library.entry.f50015c0.js} +1 -1
- package/dist/{swirl-icon-voice.entry.4a7c5a48.js → swirl-icon-voice.entry.922c9c9a.js} +1 -1
- package/dist/{swirl-icon.entry.512d56ea.js → swirl-icon.entry.973ad94a.js} +1 -1
- package/dist/{swirl-inline-notification.entry.d21c6ff2.js → swirl-inline-notification.entry.ed4568dd.js} +1 -1
- package/dist/{swirl-inline-status.entry.3c4f1017.js → swirl-inline-status.entry.002ba5f0.js} +1 -1
- package/dist/{swirl-lightbox.entry.a54c03f8.js → swirl-lightbox.entry.56ccaff5.js} +1 -1
- package/dist/{swirl-link.entry.00411d68.js → swirl-link.entry.36b48f69.js} +1 -1
- package/dist/{swirl-list.entry.ca92f8c5.js → swirl-list.entry.e269612e.js} +1 -1
- package/dist/{swirl-menu-item.entry.44798985.js → swirl-menu-item.entry.6bd242b9.js} +1 -1
- package/dist/{swirl-menu.entry.908112c5.js → swirl-menu.entry.219ffb3d.js} +1 -1
- package/dist/{swirl-modal.entry.31c84687.js → swirl-modal.entry.541f6cff.js} +8 -2
- package/dist/{swirl-option-list-section.entry.cd377a06.js → swirl-option-list-section.entry.3352418d.js} +1 -1
- package/dist/swirl-option-list.entry.aaf010c4.js +181 -0
- package/dist/{swirl-pagination.entry.6d638077.js → swirl-pagination.entry.26a2fe14.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.23bffefc.js → swirl-pdf-reader.entry.645b4e04.js} +1 -1
- package/dist/{swirl-popover.entry.4c97f053.js → swirl-popover.entry.6a3f4317.js} +1 -1
- package/dist/{swirl-progress-indicator.entry.126ebb02.js → swirl-progress-indicator.entry.de251f3b.js} +1 -1
- package/dist/{swirl-radio-group.entry.1cbaac23.js → swirl-radio-group.entry.5fc8ad44.js} +1 -1
- package/dist/{swirl-radio.entry.3b0718e7.js → swirl-radio.entry.c344e5ee.js} +1 -1
- package/dist/swirl-resource-list-file-item.entry.72f3c315.js +35 -0
- package/dist/{swirl-search.entry.f8d13384.js → swirl-search.entry.f71954e1.js} +1 -1
- package/dist/{swirl-select.entry.4c34b480.js → swirl-select.entry.64e79e8e.js} +1 -1
- package/dist/{swirl-shell-layout.entry.f4f06d0e.js → swirl-shell-layout.entry.b64b46dd.js} +1 -1
- package/dist/{swirl-shell-navigation-item.entry.9026ccab.js → swirl-shell-navigation-item.entry.b3835c2f.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.df1b8237.js → swirl-skeleton-box.entry.7779d3e0.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.76586b7a.js → swirl-skeleton-text.entry.ac95c88d.js} +1 -1
- package/dist/{swirl-stack.entry.52478dd6.js → swirl-stack.entry.f6161ec6.js} +1 -1
- package/dist/{swirl-status-indicator.entry.6296eec7.js → swirl-status-indicator.entry.cf84191f.js} +1 -1
- package/dist/{swirl-switch.entry.df9935d7.js → swirl-switch.entry.d7124c01.js} +1 -1
- package/dist/{swirl-tab-bar.entry.ea2c9ec3.js → swirl-tab-bar.entry.0be9eafb.js} +1 -1
- package/dist/{swirl-tab.entry.1e7cacb9.js → swirl-tab.entry.7de3d121.js} +1 -1
- package/dist/{swirl-table-cell.entry.f8b174a4.js → swirl-table-cell.entry.bebf0544.js} +1 -1
- package/dist/{swirl-table-column.entry.f0f819a0.js → swirl-table-column.entry.0792c277.js} +1 -1
- package/dist/{swirl-table-row-group.entry.0953e6d3.js → swirl-table-row-group.entry.47f80629.js} +1 -1
- package/dist/{swirl-table-row.entry.0822b155.js → swirl-table-row.entry.d72e5a90.js} +1 -1
- package/dist/{swirl-table.entry.7592c9fb.js → swirl-table.entry.0b1f93e9.js} +1 -1
- package/dist/{swirl-tabs.entry.0562d0d8.js → swirl-tabs.entry.8afb83ee.js} +1 -1
- package/dist/{swirl-tag.entry.e7aec6b6.js → swirl-tag.entry.5b096cea.js} +1 -1
- package/dist/{swirl-text-input.entry.047db20e.js → swirl-text-input.entry.5aef4b93.js} +1 -1
- package/dist/{swirl-text.entry.b954b765.js → swirl-text.entry.346280d9.js} +1 -1
- package/dist/{swirl-theme-provider.entry.bc597b2a.js → swirl-theme-provider.entry.53eeb765.js} +1 -1
- package/dist/{swirl-time-input.entry.015dd1d3.js → swirl-time-input.entry.de0e132a.js} +1 -1
- package/dist/{swirl-toast-provider.entry.cad878b8.js → swirl-toast-provider.entry.b3999d2e.js} +1 -1
- package/dist/{swirl-toast.entry.ca98260a.js → swirl-toast.entry.2c2c19e2.js} +1 -1
- package/dist/{swirl-tooltip.entry.bef3d7d3.js → swirl-tooltip.entry.e3bea81c.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.14795362.js → swirl-tree-navigation-item.entry.2522d668.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.02141e6c.js → swirl-video-thumbnail.entry.caab544b.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.b99466aa.js → swirl-visually-hidden.entry.0bd7a771.js} +1 -1
- package/dist/{wc-datepicker.entry.a1cdea4c.js → wc-datepicker.entry.e3f5ef39.js} +1 -1
- package/package.json +2 -2
- package/dist/swirl-avatar.entry.be807f21.js +0 -56
- package/dist/swirl-option-list.entry.57158534.js +0 -1406
- package/dist/swirl-resource-list-file-item.entry.002a45c9.js +0 -35
|
@@ -0,0 +1,1229 @@
|
|
|
1
|
+
/**!
|
|
2
|
+
* Sortable 1.15.0
|
|
3
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
4
|
+
* @author owenm <owen23355@gmail.com>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
function lt(n, e) {
|
|
8
|
+
var t = Object.keys(n);
|
|
9
|
+
if (Object.getOwnPropertySymbols) {
|
|
10
|
+
var o = Object.getOwnPropertySymbols(n);
|
|
11
|
+
e && (o = o.filter(function(i) {
|
|
12
|
+
return Object.getOwnPropertyDescriptor(n, i).enumerable;
|
|
13
|
+
})), t.push.apply(t, o);
|
|
14
|
+
}
|
|
15
|
+
return t;
|
|
16
|
+
}
|
|
17
|
+
function z(n) {
|
|
18
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
19
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
20
|
+
e % 2 ? lt(Object(t), !0).forEach(function(o) {
|
|
21
|
+
Nt(n, o, t[o]);
|
|
22
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : lt(Object(t)).forEach(function(o) {
|
|
23
|
+
Object.defineProperty(n, o, Object.getOwnPropertyDescriptor(t, o));
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return n;
|
|
27
|
+
}
|
|
28
|
+
function Me(n) {
|
|
29
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Me = function(e) {
|
|
30
|
+
return typeof e;
|
|
31
|
+
} : Me = function(e) {
|
|
32
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
33
|
+
}, Me(n);
|
|
34
|
+
}
|
|
35
|
+
function Nt(n, e, t) {
|
|
36
|
+
return e in n ? Object.defineProperty(n, e, {
|
|
37
|
+
value: t,
|
|
38
|
+
enumerable: !0,
|
|
39
|
+
configurable: !0,
|
|
40
|
+
writable: !0
|
|
41
|
+
}) : n[e] = t, n;
|
|
42
|
+
}
|
|
43
|
+
function $() {
|
|
44
|
+
return $ = Object.assign || function(n) {
|
|
45
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
46
|
+
var t = arguments[e];
|
|
47
|
+
for (var o in t)
|
|
48
|
+
Object.prototype.hasOwnProperty.call(t, o) && (n[o] = t[o]);
|
|
49
|
+
}
|
|
50
|
+
return n;
|
|
51
|
+
}, $.apply(this, arguments);
|
|
52
|
+
}
|
|
53
|
+
function xt(n, e) {
|
|
54
|
+
if (n == null)
|
|
55
|
+
return {};
|
|
56
|
+
var t = {}, o = Object.keys(n), i, r;
|
|
57
|
+
for (r = 0; r < o.length; r++)
|
|
58
|
+
i = o[r], !(e.indexOf(i) >= 0) && (t[i] = n[i]);
|
|
59
|
+
return t;
|
|
60
|
+
}
|
|
61
|
+
function Mt(n, e) {
|
|
62
|
+
if (n == null)
|
|
63
|
+
return {};
|
|
64
|
+
var t = xt(n, e), o, i;
|
|
65
|
+
if (Object.getOwnPropertySymbols) {
|
|
66
|
+
var r = Object.getOwnPropertySymbols(n);
|
|
67
|
+
for (i = 0; i < r.length; i++)
|
|
68
|
+
o = r[i], !(e.indexOf(o) >= 0) && (!Object.prototype.propertyIsEnumerable.call(n, o) || (t[o] = n[o]));
|
|
69
|
+
}
|
|
70
|
+
return t;
|
|
71
|
+
}
|
|
72
|
+
var Ft = "1.15.0";
|
|
73
|
+
function q(n) {
|
|
74
|
+
if (typeof window < "u" && window.navigator)
|
|
75
|
+
return !!/* @__PURE__ */ navigator.userAgent.match(n);
|
|
76
|
+
}
|
|
77
|
+
var V = q(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ce = q(/Edge/i), st = q(/firefox/i), ye = q(/safari/i) && !q(/chrome/i) && !q(/android/i), mt = q(/iP(ad|od|hone)/i), vt = q(/chrome/i) && q(/android/i), bt = {
|
|
78
|
+
capture: !1,
|
|
79
|
+
passive: !1
|
|
80
|
+
};
|
|
81
|
+
function E(n, e, t) {
|
|
82
|
+
n.addEventListener(e, t, !V && bt);
|
|
83
|
+
}
|
|
84
|
+
function b(n, e, t) {
|
|
85
|
+
n.removeEventListener(e, t, !V && bt);
|
|
86
|
+
}
|
|
87
|
+
function Re(n, e) {
|
|
88
|
+
if (!!e) {
|
|
89
|
+
if (e[0] === ">" && (e = e.substring(1)), n)
|
|
90
|
+
try {
|
|
91
|
+
if (n.matches)
|
|
92
|
+
return n.matches(e);
|
|
93
|
+
if (n.msMatchesSelector)
|
|
94
|
+
return n.msMatchesSelector(e);
|
|
95
|
+
if (n.webkitMatchesSelector)
|
|
96
|
+
return n.webkitMatchesSelector(e);
|
|
97
|
+
} catch {
|
|
98
|
+
return !1;
|
|
99
|
+
}
|
|
100
|
+
return !1;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function Xt(n) {
|
|
104
|
+
return n.host && n !== document && n.host.nodeType ? n.host : n.parentNode;
|
|
105
|
+
}
|
|
106
|
+
function G(n, e, t, o) {
|
|
107
|
+
if (n) {
|
|
108
|
+
t = t || document;
|
|
109
|
+
do {
|
|
110
|
+
if (e != null && (e[0] === ">" ? n.parentNode === t && Re(n, e) : Re(n, e)) || o && n === t)
|
|
111
|
+
return n;
|
|
112
|
+
if (n === t)
|
|
113
|
+
break;
|
|
114
|
+
} while (n = Xt(n));
|
|
115
|
+
}
|
|
116
|
+
return null;
|
|
117
|
+
}
|
|
118
|
+
var ut = /\s+/g;
|
|
119
|
+
function F(n, e, t) {
|
|
120
|
+
if (n && e)
|
|
121
|
+
if (n.classList)
|
|
122
|
+
n.classList[t ? "add" : "remove"](e);
|
|
123
|
+
else {
|
|
124
|
+
var o = (" " + n.className + " ").replace(ut, " ").replace(" " + e + " ", " ");
|
|
125
|
+
n.className = (o + (t ? " " + e : "")).replace(ut, " ");
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function h(n, e, t) {
|
|
129
|
+
var o = n && n.style;
|
|
130
|
+
if (o) {
|
|
131
|
+
if (t === void 0)
|
|
132
|
+
return document.defaultView && document.defaultView.getComputedStyle ? t = document.defaultView.getComputedStyle(n, "") : n.currentStyle && (t = n.currentStyle), e === void 0 ? t : t[e];
|
|
133
|
+
!(e in o) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), o[e] = t + (typeof t == "string" ? "" : "px");
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
function ce(n, e) {
|
|
137
|
+
var t = "";
|
|
138
|
+
if (typeof n == "string")
|
|
139
|
+
t = n;
|
|
140
|
+
else
|
|
141
|
+
do {
|
|
142
|
+
var o = h(n, "transform");
|
|
143
|
+
o && o !== "none" && (t = o + " " + t);
|
|
144
|
+
} while (!e && (n = n.parentNode));
|
|
145
|
+
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
146
|
+
return i && new i(t);
|
|
147
|
+
}
|
|
148
|
+
function Et(n, e, t) {
|
|
149
|
+
if (n) {
|
|
150
|
+
var o = n.getElementsByTagName(e), i = 0, r = o.length;
|
|
151
|
+
if (t)
|
|
152
|
+
for (; i < r; i++)
|
|
153
|
+
t(o[i], i);
|
|
154
|
+
return o;
|
|
155
|
+
}
|
|
156
|
+
return [];
|
|
157
|
+
}
|
|
158
|
+
function L() {
|
|
159
|
+
var n = document.scrollingElement;
|
|
160
|
+
return n || document.documentElement;
|
|
161
|
+
}
|
|
162
|
+
function C(n, e, t, o, i) {
|
|
163
|
+
if (!(!n.getBoundingClientRect && n !== window)) {
|
|
164
|
+
var r, a, l, s, u, d, c;
|
|
165
|
+
if (n !== window && n.parentNode && n !== L() ? (r = n.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right, d = r.height, c = r.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, d = window.innerHeight, c = window.innerWidth), (e || t) && n !== window && (i = i || n.parentNode, !V))
|
|
166
|
+
do
|
|
167
|
+
if (i && i.getBoundingClientRect && (h(i, "transform") !== "none" || t && h(i, "position") !== "static")) {
|
|
168
|
+
var m = i.getBoundingClientRect();
|
|
169
|
+
a -= m.top + parseInt(h(i, "border-top-width")), l -= m.left + parseInt(h(i, "border-left-width")), s = a + r.height, u = l + r.width;
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
while (i = i.parentNode);
|
|
173
|
+
if (o && n !== window) {
|
|
174
|
+
var y = ce(i || n), v = y && y.a, w = y && y.d;
|
|
175
|
+
y && (a /= w, l /= v, c /= v, d /= w, s = a + d, u = l + c);
|
|
176
|
+
}
|
|
177
|
+
return {
|
|
178
|
+
top: a,
|
|
179
|
+
left: l,
|
|
180
|
+
bottom: s,
|
|
181
|
+
right: u,
|
|
182
|
+
width: c,
|
|
183
|
+
height: d
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
function ft(n, e, t) {
|
|
188
|
+
for (var o = ee(n, !0), i = C(n)[e]; o; ) {
|
|
189
|
+
var r = C(o)[t], a = void 0;
|
|
190
|
+
if (t === "top" || t === "left" ? a = i >= r : a = i <= r, !a)
|
|
191
|
+
return o;
|
|
192
|
+
if (o === L())
|
|
193
|
+
break;
|
|
194
|
+
o = ee(o, !1);
|
|
195
|
+
}
|
|
196
|
+
return !1;
|
|
197
|
+
}
|
|
198
|
+
function de(n, e, t, o) {
|
|
199
|
+
for (var i = 0, r = 0, a = n.children; r < a.length; ) {
|
|
200
|
+
if (a[r].style.display !== "none" && a[r] !== p.ghost && (o || a[r] !== p.dragged) && G(a[r], t.draggable, n, !1)) {
|
|
201
|
+
if (i === e)
|
|
202
|
+
return a[r];
|
|
203
|
+
i++;
|
|
204
|
+
}
|
|
205
|
+
r++;
|
|
206
|
+
}
|
|
207
|
+
return null;
|
|
208
|
+
}
|
|
209
|
+
function ot(n, e) {
|
|
210
|
+
for (var t = n.lastElementChild; t && (t === p.ghost || h(t, "display") === "none" || e && !Re(t, e)); )
|
|
211
|
+
t = t.previousElementSibling;
|
|
212
|
+
return t || null;
|
|
213
|
+
}
|
|
214
|
+
function k(n, e) {
|
|
215
|
+
var t = 0;
|
|
216
|
+
if (!n || !n.parentNode)
|
|
217
|
+
return -1;
|
|
218
|
+
for (; n = n.previousElementSibling; )
|
|
219
|
+
n.nodeName.toUpperCase() !== "TEMPLATE" && n !== p.clone && (!e || Re(n, e)) && t++;
|
|
220
|
+
return t;
|
|
221
|
+
}
|
|
222
|
+
function ct(n) {
|
|
223
|
+
var e = 0, t = 0, o = L();
|
|
224
|
+
if (n)
|
|
225
|
+
do {
|
|
226
|
+
var i = ce(n), r = i.a, a = i.d;
|
|
227
|
+
e += n.scrollLeft * r, t += n.scrollTop * a;
|
|
228
|
+
} while (n !== o && (n = n.parentNode));
|
|
229
|
+
return [e, t];
|
|
230
|
+
}
|
|
231
|
+
function Yt(n, e) {
|
|
232
|
+
for (var t in n)
|
|
233
|
+
if (!!n.hasOwnProperty(t)) {
|
|
234
|
+
for (var o in e)
|
|
235
|
+
if (e.hasOwnProperty(o) && e[o] === n[t][o])
|
|
236
|
+
return Number(t);
|
|
237
|
+
}
|
|
238
|
+
return -1;
|
|
239
|
+
}
|
|
240
|
+
function ee(n, e) {
|
|
241
|
+
if (!n || !n.getBoundingClientRect)
|
|
242
|
+
return L();
|
|
243
|
+
var t = n, o = !1;
|
|
244
|
+
do
|
|
245
|
+
if (t.clientWidth < t.scrollWidth || t.clientHeight < t.scrollHeight) {
|
|
246
|
+
var i = h(t);
|
|
247
|
+
if (t.clientWidth < t.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || t.clientHeight < t.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
248
|
+
if (!t.getBoundingClientRect || t === document.body)
|
|
249
|
+
return L();
|
|
250
|
+
if (o || e)
|
|
251
|
+
return t;
|
|
252
|
+
o = !0;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
while (t = t.parentNode);
|
|
256
|
+
return L();
|
|
257
|
+
}
|
|
258
|
+
function kt(n, e) {
|
|
259
|
+
if (n && e)
|
|
260
|
+
for (var t in e)
|
|
261
|
+
e.hasOwnProperty(t) && (n[t] = e[t]);
|
|
262
|
+
return n;
|
|
263
|
+
}
|
|
264
|
+
function ze(n, e) {
|
|
265
|
+
return Math.round(n.top) === Math.round(e.top) && Math.round(n.left) === Math.round(e.left) && Math.round(n.height) === Math.round(e.height) && Math.round(n.width) === Math.round(e.width);
|
|
266
|
+
}
|
|
267
|
+
var _e;
|
|
268
|
+
function wt(n, e) {
|
|
269
|
+
return function() {
|
|
270
|
+
if (!_e) {
|
|
271
|
+
var t = arguments, o = this;
|
|
272
|
+
t.length === 1 ? n.call(o, t[0]) : n.apply(o, t), _e = setTimeout(function() {
|
|
273
|
+
_e = void 0;
|
|
274
|
+
}, e);
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
function Rt() {
|
|
279
|
+
clearTimeout(_e), _e = void 0;
|
|
280
|
+
}
|
|
281
|
+
function yt(n, e, t) {
|
|
282
|
+
n.scrollLeft += e, n.scrollTop += t;
|
|
283
|
+
}
|
|
284
|
+
function _t(n) {
|
|
285
|
+
var e = window.Polymer, t = window.jQuery || window.Zepto;
|
|
286
|
+
return e && e.dom ? e.dom(n).cloneNode(!0) : t ? t(n).clone(!0)[0] : n.cloneNode(!0);
|
|
287
|
+
}
|
|
288
|
+
var Y = "Sortable" + new Date().getTime();
|
|
289
|
+
function Bt() {
|
|
290
|
+
var n = [], e;
|
|
291
|
+
return {
|
|
292
|
+
captureAnimationState: function() {
|
|
293
|
+
if (n = [], !!this.options.animation) {
|
|
294
|
+
var o = [].slice.call(this.el.children);
|
|
295
|
+
o.forEach(function(i) {
|
|
296
|
+
if (!(h(i, "display") === "none" || i === p.ghost)) {
|
|
297
|
+
n.push({
|
|
298
|
+
target: i,
|
|
299
|
+
rect: C(i)
|
|
300
|
+
});
|
|
301
|
+
var r = z({}, n[n.length - 1].rect);
|
|
302
|
+
if (i.thisAnimationDuration) {
|
|
303
|
+
var a = ce(i, !0);
|
|
304
|
+
a && (r.top -= a.f, r.left -= a.e);
|
|
305
|
+
}
|
|
306
|
+
i.fromRect = r;
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
addAnimationState: function(o) {
|
|
312
|
+
n.push(o);
|
|
313
|
+
},
|
|
314
|
+
removeAnimationState: function(o) {
|
|
315
|
+
n.splice(Yt(n, {
|
|
316
|
+
target: o
|
|
317
|
+
}), 1);
|
|
318
|
+
},
|
|
319
|
+
animateAll: function(o) {
|
|
320
|
+
var i = this;
|
|
321
|
+
if (!this.options.animation) {
|
|
322
|
+
clearTimeout(e), typeof o == "function" && o();
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
var r = !1, a = 0;
|
|
326
|
+
n.forEach(function(l) {
|
|
327
|
+
var s = 0, u = l.target, d = u.fromRect, c = C(u), m = u.prevFromRect, y = u.prevToRect, v = l.rect, w = ce(u, !0);
|
|
328
|
+
w && (c.top -= w.f, c.left -= w.e), u.toRect = c, u.thisAnimationDuration && ze(m, c) && !ze(d, c) && (v.top - c.top) / (v.left - c.left) === (d.top - c.top) / (d.left - c.left) && (s = Wt(v, m, y, i.options)), ze(c, d) || (u.prevFromRect = d, u.prevToRect = c, s || (s = i.options.animation), i.animate(u, v, c, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
329
|
+
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
330
|
+
}, s), u.thisAnimationDuration = s);
|
|
331
|
+
}), clearTimeout(e), r ? e = setTimeout(function() {
|
|
332
|
+
typeof o == "function" && o();
|
|
333
|
+
}, a) : typeof o == "function" && o(), n = [];
|
|
334
|
+
},
|
|
335
|
+
animate: function(o, i, r, a) {
|
|
336
|
+
if (a) {
|
|
337
|
+
h(o, "transition", ""), h(o, "transform", "");
|
|
338
|
+
var l = ce(this.el), s = l && l.a, u = l && l.d, d = (i.left - r.left) / (s || 1), c = (i.top - r.top) / (u || 1);
|
|
339
|
+
o.animatingX = !!d, o.animatingY = !!c, h(o, "transform", "translate3d(" + d + "px," + c + "px,0)"), this.forRepaintDummy = Ht(o), h(o, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), h(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
|
|
340
|
+
h(o, "transition", ""), h(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
341
|
+
}, a);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
function Ht(n) {
|
|
347
|
+
return n.offsetWidth;
|
|
348
|
+
}
|
|
349
|
+
function Wt(n, e, t, o) {
|
|
350
|
+
return Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) / Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) * o.animation;
|
|
351
|
+
}
|
|
352
|
+
var le = [], je = {
|
|
353
|
+
initializeByDefault: !0
|
|
354
|
+
}, Oe = {
|
|
355
|
+
mount: function(e) {
|
|
356
|
+
for (var t in je)
|
|
357
|
+
je.hasOwnProperty(t) && !(t in e) && (e[t] = je[t]);
|
|
358
|
+
le.forEach(function(o) {
|
|
359
|
+
if (o.pluginName === e.pluginName)
|
|
360
|
+
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
|
361
|
+
}), le.push(e);
|
|
362
|
+
},
|
|
363
|
+
pluginEvent: function(e, t, o) {
|
|
364
|
+
var i = this;
|
|
365
|
+
this.eventCanceled = !1, o.cancel = function() {
|
|
366
|
+
i.eventCanceled = !0;
|
|
367
|
+
};
|
|
368
|
+
var r = e + "Global";
|
|
369
|
+
le.forEach(function(a) {
|
|
370
|
+
!t[a.pluginName] || (t[a.pluginName][r] && t[a.pluginName][r](z({
|
|
371
|
+
sortable: t
|
|
372
|
+
}, o)), t.options[a.pluginName] && t[a.pluginName][e] && t[a.pluginName][e](z({
|
|
373
|
+
sortable: t
|
|
374
|
+
}, o)));
|
|
375
|
+
});
|
|
376
|
+
},
|
|
377
|
+
initializePlugins: function(e, t, o, i) {
|
|
378
|
+
le.forEach(function(l) {
|
|
379
|
+
var s = l.pluginName;
|
|
380
|
+
if (!(!e.options[s] && !l.initializeByDefault)) {
|
|
381
|
+
var u = new l(e, t, e.options);
|
|
382
|
+
u.sortable = e, u.options = e.options, e[s] = u, $(o, u.defaults);
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
for (var r in e.options)
|
|
386
|
+
if (!!e.options.hasOwnProperty(r)) {
|
|
387
|
+
var a = this.modifyOption(e, r, e.options[r]);
|
|
388
|
+
typeof a < "u" && (e.options[r] = a);
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
getEventProperties: function(e, t) {
|
|
392
|
+
var o = {};
|
|
393
|
+
return le.forEach(function(i) {
|
|
394
|
+
typeof i.eventProperties == "function" && $(o, i.eventProperties.call(t[i.pluginName], e));
|
|
395
|
+
}), o;
|
|
396
|
+
},
|
|
397
|
+
modifyOption: function(e, t, o) {
|
|
398
|
+
var i;
|
|
399
|
+
return le.forEach(function(r) {
|
|
400
|
+
!e[r.pluginName] || r.optionListeners && typeof r.optionListeners[t] == "function" && (i = r.optionListeners[t].call(e[r.pluginName], o));
|
|
401
|
+
}), i;
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
function Gt(n) {
|
|
405
|
+
var e = n.sortable, t = n.rootEl, o = n.name, i = n.targetEl, r = n.cloneEl, a = n.toEl, l = n.fromEl, s = n.oldIndex, u = n.newIndex, d = n.oldDraggableIndex, c = n.newDraggableIndex, m = n.originalEvent, y = n.putSortable, v = n.extraEventProperties;
|
|
406
|
+
if (e = e || t && t[Y], !!e) {
|
|
407
|
+
var w, R = e.options, j = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
408
|
+
window.CustomEvent && !V && !Ce ? w = new CustomEvent(o, {
|
|
409
|
+
bubbles: !0,
|
|
410
|
+
cancelable: !0
|
|
411
|
+
}) : (w = document.createEvent("Event"), w.initEvent(o, !0, !0)), w.to = a || t, w.from = l || t, w.item = i || t, w.clone = r, w.oldIndex = s, w.newIndex = u, w.oldDraggableIndex = d, w.newDraggableIndex = c, w.originalEvent = m, w.pullMode = y ? y.lastPutMode : void 0;
|
|
412
|
+
var A = z(z({}, v), Oe.getEventProperties(o, e));
|
|
413
|
+
for (var B in A)
|
|
414
|
+
w[B] = A[B];
|
|
415
|
+
t && t.dispatchEvent(w), R[j] && R[j].call(e, w);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
var Lt = ["evt"], N = function(e, t) {
|
|
419
|
+
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = o.evt, r = Mt(o, Lt);
|
|
420
|
+
Oe.pluginEvent.bind(p)(e, t, z({
|
|
421
|
+
dragEl: f,
|
|
422
|
+
parentEl: S,
|
|
423
|
+
ghostEl: g,
|
|
424
|
+
rootEl: _,
|
|
425
|
+
nextEl: ae,
|
|
426
|
+
lastDownEl: Fe,
|
|
427
|
+
cloneEl: D,
|
|
428
|
+
cloneHidden: J,
|
|
429
|
+
dragStarted: be,
|
|
430
|
+
putSortable: O,
|
|
431
|
+
activeSortable: p.active,
|
|
432
|
+
originalEvent: i,
|
|
433
|
+
oldIndex: fe,
|
|
434
|
+
oldDraggableIndex: De,
|
|
435
|
+
newIndex: X,
|
|
436
|
+
newDraggableIndex: Q,
|
|
437
|
+
hideGhostForTarget: Ct,
|
|
438
|
+
unhideGhostForTarget: Ot,
|
|
439
|
+
cloneNowHidden: function() {
|
|
440
|
+
J = !0;
|
|
441
|
+
},
|
|
442
|
+
cloneNowShown: function() {
|
|
443
|
+
J = !1;
|
|
444
|
+
},
|
|
445
|
+
dispatchSortableEvent: function(l) {
|
|
446
|
+
P({
|
|
447
|
+
sortable: t,
|
|
448
|
+
name: l,
|
|
449
|
+
originalEvent: i
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
}, r));
|
|
453
|
+
};
|
|
454
|
+
function P(n) {
|
|
455
|
+
Gt(z({
|
|
456
|
+
putSortable: O,
|
|
457
|
+
cloneEl: D,
|
|
458
|
+
targetEl: f,
|
|
459
|
+
rootEl: _,
|
|
460
|
+
oldIndex: fe,
|
|
461
|
+
oldDraggableIndex: De,
|
|
462
|
+
newIndex: X,
|
|
463
|
+
newDraggableIndex: Q
|
|
464
|
+
}, n));
|
|
465
|
+
}
|
|
466
|
+
var f, S, g, _, ae, Fe, D, J, fe, X, De, Q, Ae, O, ue = !1, Be = !1, He = [], ie, H, Ue, qe, dt, ht, be, se, Se, Te = !1, Pe = !1, Xe, I, $e = [], Je = !1, We = [], Le = typeof document < "u", Ne = mt, pt = Ce || V ? "cssFloat" : "float", zt = Le && !vt && !mt && "draggable" in document.createElement("div"), Dt = function() {
|
|
467
|
+
if (!!Le) {
|
|
468
|
+
if (V)
|
|
469
|
+
return !1;
|
|
470
|
+
var n = document.createElement("x");
|
|
471
|
+
return n.style.cssText = "pointer-events:auto", n.style.pointerEvents === "auto";
|
|
472
|
+
}
|
|
473
|
+
}(), St = function(e, t) {
|
|
474
|
+
var o = h(e), i = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), r = de(e, 0, t), a = de(e, 1, t), l = r && h(r), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + C(r).width, d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + C(a).width;
|
|
475
|
+
if (o.display === "flex")
|
|
476
|
+
return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
477
|
+
if (o.display === "grid")
|
|
478
|
+
return o.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
479
|
+
if (r && l.float && l.float !== "none") {
|
|
480
|
+
var c = l.float === "left" ? "left" : "right";
|
|
481
|
+
return a && (s.clear === "both" || s.clear === c) ? "vertical" : "horizontal";
|
|
482
|
+
}
|
|
483
|
+
return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && o[pt] === "none" || a && o[pt] === "none" && u + d > i) ? "vertical" : "horizontal";
|
|
484
|
+
}, jt = function(e, t, o) {
|
|
485
|
+
var i = o ? e.left : e.top, r = o ? e.right : e.bottom, a = o ? e.width : e.height, l = o ? t.left : t.top, s = o ? t.right : t.bottom, u = o ? t.width : t.height;
|
|
486
|
+
return i === l || r === s || i + a / 2 === l + u / 2;
|
|
487
|
+
}, Ut = function(e, t) {
|
|
488
|
+
var o;
|
|
489
|
+
return He.some(function(i) {
|
|
490
|
+
var r = i[Y].options.emptyInsertThreshold;
|
|
491
|
+
if (!(!r || ot(i))) {
|
|
492
|
+
var a = C(i), l = e >= a.left - r && e <= a.right + r, s = t >= a.top - r && t <= a.bottom + r;
|
|
493
|
+
if (l && s)
|
|
494
|
+
return o = i;
|
|
495
|
+
}
|
|
496
|
+
}), o;
|
|
497
|
+
}, Tt = function(e) {
|
|
498
|
+
function t(r, a) {
|
|
499
|
+
return function(l, s, u, d) {
|
|
500
|
+
var c = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
|
|
501
|
+
if (r == null && (a || c))
|
|
502
|
+
return !0;
|
|
503
|
+
if (r == null || r === !1)
|
|
504
|
+
return !1;
|
|
505
|
+
if (a && r === "clone")
|
|
506
|
+
return r;
|
|
507
|
+
if (typeof r == "function")
|
|
508
|
+
return t(r(l, s, u, d), a)(l, s, u, d);
|
|
509
|
+
var m = (a ? l : s).options.group.name;
|
|
510
|
+
return r === !0 || typeof r == "string" && r === m || r.join && r.indexOf(m) > -1;
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
var o = {}, i = e.group;
|
|
514
|
+
(!i || Me(i) != "object") && (i = {
|
|
515
|
+
name: i
|
|
516
|
+
}), o.name = i.name, o.checkPull = t(i.pull, !0), o.checkPut = t(i.put), o.revertClone = i.revertClone, e.group = o;
|
|
517
|
+
}, Ct = function() {
|
|
518
|
+
!Dt && g && h(g, "display", "none");
|
|
519
|
+
}, Ot = function() {
|
|
520
|
+
!Dt && g && h(g, "display", "");
|
|
521
|
+
};
|
|
522
|
+
Le && !vt && document.addEventListener("click", function(n) {
|
|
523
|
+
if (Be)
|
|
524
|
+
return n.preventDefault(), n.stopPropagation && n.stopPropagation(), n.stopImmediatePropagation && n.stopImmediatePropagation(), Be = !1, !1;
|
|
525
|
+
}, !0);
|
|
526
|
+
var re = function(e) {
|
|
527
|
+
if (f) {
|
|
528
|
+
e = e.touches ? e.touches[0] : e;
|
|
529
|
+
var t = Ut(e.clientX, e.clientY);
|
|
530
|
+
if (t) {
|
|
531
|
+
var o = {};
|
|
532
|
+
for (var i in e)
|
|
533
|
+
e.hasOwnProperty(i) && (o[i] = e[i]);
|
|
534
|
+
o.target = o.rootEl = t, o.preventDefault = void 0, o.stopPropagation = void 0, t[Y]._onDragOver(o);
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}, qt = function(e) {
|
|
538
|
+
f && f.parentNode[Y]._isOutsideThisEl(e.target);
|
|
539
|
+
};
|
|
540
|
+
function p(n, e) {
|
|
541
|
+
if (!(n && n.nodeType && n.nodeType === 1))
|
|
542
|
+
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));
|
|
543
|
+
this.el = n, this.options = e = $({}, e), n[Y] = this;
|
|
544
|
+
var t = {
|
|
545
|
+
group: null,
|
|
546
|
+
sort: !0,
|
|
547
|
+
disabled: !1,
|
|
548
|
+
store: null,
|
|
549
|
+
handle: null,
|
|
550
|
+
draggable: /^[uo]l$/i.test(n.nodeName) ? ">li" : ">*",
|
|
551
|
+
swapThreshold: 1,
|
|
552
|
+
invertSwap: !1,
|
|
553
|
+
invertedSwapThreshold: null,
|
|
554
|
+
removeCloneOnHide: !0,
|
|
555
|
+
direction: function() {
|
|
556
|
+
return St(n, this.options);
|
|
557
|
+
},
|
|
558
|
+
ghostClass: "sortable-ghost",
|
|
559
|
+
chosenClass: "sortable-chosen",
|
|
560
|
+
dragClass: "sortable-drag",
|
|
561
|
+
ignore: "a, img",
|
|
562
|
+
filter: null,
|
|
563
|
+
preventOnFilter: !0,
|
|
564
|
+
animation: 0,
|
|
565
|
+
easing: null,
|
|
566
|
+
setData: function(a, l) {
|
|
567
|
+
a.setData("Text", l.textContent);
|
|
568
|
+
},
|
|
569
|
+
dropBubble: !1,
|
|
570
|
+
dragoverBubble: !1,
|
|
571
|
+
dataIdAttr: "data-id",
|
|
572
|
+
delay: 0,
|
|
573
|
+
delayOnTouchOnly: !1,
|
|
574
|
+
touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
|
|
575
|
+
forceFallback: !1,
|
|
576
|
+
fallbackClass: "sortable-fallback",
|
|
577
|
+
fallbackOnBody: !1,
|
|
578
|
+
fallbackTolerance: 0,
|
|
579
|
+
fallbackOffset: {
|
|
580
|
+
x: 0,
|
|
581
|
+
y: 0
|
|
582
|
+
},
|
|
583
|
+
supportPointer: p.supportPointer !== !1 && "PointerEvent" in window && !ye,
|
|
584
|
+
emptyInsertThreshold: 5
|
|
585
|
+
};
|
|
586
|
+
Oe.initializePlugins(this, n, t);
|
|
587
|
+
for (var o in t)
|
|
588
|
+
!(o in e) && (e[o] = t[o]);
|
|
589
|
+
Tt(e);
|
|
590
|
+
for (var i in this)
|
|
591
|
+
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
592
|
+
this.nativeDraggable = e.forceFallback ? !1 : zt, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? E(n, "pointerdown", this._onTapStart) : (E(n, "mousedown", this._onTapStart), E(n, "touchstart", this._onTapStart)), this.nativeDraggable && (E(n, "dragover", this), E(n, "dragenter", this)), He.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), $(this, Bt());
|
|
593
|
+
}
|
|
594
|
+
p.prototype = {
|
|
595
|
+
constructor: p,
|
|
596
|
+
_isOutsideThisEl: function(e) {
|
|
597
|
+
!this.el.contains(e) && e !== this.el && (se = null);
|
|
598
|
+
},
|
|
599
|
+
_getDirection: function(e, t) {
|
|
600
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, f) : this.options.direction;
|
|
601
|
+
},
|
|
602
|
+
_onTapStart: function(e) {
|
|
603
|
+
if (!!e.cancelable) {
|
|
604
|
+
var t = this, o = this.el, i = this.options, r = i.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, d = i.filter;
|
|
605
|
+
if (tn(o), !f && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && ye && s && s.tagName.toUpperCase() === "SELECT") && (s = G(s, i.draggable, o, !1), !(s && s.animated) && Fe !== s)) {
|
|
606
|
+
if (fe = k(s), De = k(s, i.draggable), typeof d == "function") {
|
|
607
|
+
if (d.call(this, e, s, this)) {
|
|
608
|
+
P({
|
|
609
|
+
sortable: t,
|
|
610
|
+
rootEl: u,
|
|
611
|
+
name: "filter",
|
|
612
|
+
targetEl: s,
|
|
613
|
+
toEl: o,
|
|
614
|
+
fromEl: o
|
|
615
|
+
}), N("filter", t, {
|
|
616
|
+
evt: e
|
|
617
|
+
}), r && e.cancelable && e.preventDefault();
|
|
618
|
+
return;
|
|
619
|
+
}
|
|
620
|
+
} else if (d && (d = d.split(",").some(function(c) {
|
|
621
|
+
if (c = G(u, c.trim(), o, !1), c)
|
|
622
|
+
return P({
|
|
623
|
+
sortable: t,
|
|
624
|
+
rootEl: c,
|
|
625
|
+
name: "filter",
|
|
626
|
+
targetEl: s,
|
|
627
|
+
fromEl: o,
|
|
628
|
+
toEl: o
|
|
629
|
+
}), N("filter", t, {
|
|
630
|
+
evt: e
|
|
631
|
+
}), !0;
|
|
632
|
+
}), d)) {
|
|
633
|
+
r && e.cancelable && e.preventDefault();
|
|
634
|
+
return;
|
|
635
|
+
}
|
|
636
|
+
i.handle && !G(u, i.handle, o, !1) || this._prepareDragStart(e, l, s);
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
_prepareDragStart: function(e, t, o) {
|
|
641
|
+
var i = this, r = i.el, a = i.options, l = r.ownerDocument, s;
|
|
642
|
+
if (o && !f && o.parentNode === r) {
|
|
643
|
+
var u = C(o);
|
|
644
|
+
if (_ = r, f = o, S = f.parentNode, ae = f.nextSibling, Fe = o, Ae = a.group, p.dragged = f, ie = {
|
|
645
|
+
target: f,
|
|
646
|
+
clientX: (t || e).clientX,
|
|
647
|
+
clientY: (t || e).clientY
|
|
648
|
+
}, dt = ie.clientX - u.left, ht = ie.clientY - u.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, f.style["will-change"] = "all", s = function() {
|
|
649
|
+
if (N("delayEnded", i, {
|
|
650
|
+
evt: e
|
|
651
|
+
}), p.eventCanceled) {
|
|
652
|
+
i._onDrop();
|
|
653
|
+
return;
|
|
654
|
+
}
|
|
655
|
+
i._disableDelayedDragEvents(), !st && i.nativeDraggable && (f.draggable = !0), i._triggerDragStart(e, t), P({
|
|
656
|
+
sortable: i,
|
|
657
|
+
name: "choose",
|
|
658
|
+
originalEvent: e
|
|
659
|
+
}), F(f, a.chosenClass, !0);
|
|
660
|
+
}, a.ignore.split(",").forEach(function(d) {
|
|
661
|
+
Et(f, d.trim(), Ve);
|
|
662
|
+
}), E(l, "dragover", re), E(l, "mousemove", re), E(l, "touchmove", re), E(l, "mouseup", i._onDrop), E(l, "touchend", i._onDrop), E(l, "touchcancel", i._onDrop), st && this.nativeDraggable && (this.options.touchStartThreshold = 4, f.draggable = !0), N("delayStart", this, {
|
|
663
|
+
evt: e
|
|
664
|
+
}), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Ce || V))) {
|
|
665
|
+
if (p.eventCanceled) {
|
|
666
|
+
this._onDrop();
|
|
667
|
+
return;
|
|
668
|
+
}
|
|
669
|
+
E(l, "mouseup", i._disableDelayedDrag), E(l, "touchend", i._disableDelayedDrag), E(l, "touchcancel", i._disableDelayedDrag), E(l, "mousemove", i._delayedDragTouchMoveHandler), E(l, "touchmove", i._delayedDragTouchMoveHandler), a.supportPointer && E(l, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(s, a.delay);
|
|
670
|
+
} else
|
|
671
|
+
s();
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
_delayedDragTouchMoveHandler: function(e) {
|
|
675
|
+
var t = e.touches ? e.touches[0] : e;
|
|
676
|
+
Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
677
|
+
},
|
|
678
|
+
_disableDelayedDrag: function() {
|
|
679
|
+
f && Ve(f), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
680
|
+
},
|
|
681
|
+
_disableDelayedDragEvents: function() {
|
|
682
|
+
var e = this.el.ownerDocument;
|
|
683
|
+
b(e, "mouseup", this._disableDelayedDrag), b(e, "touchend", this._disableDelayedDrag), b(e, "touchcancel", this._disableDelayedDrag), b(e, "mousemove", this._delayedDragTouchMoveHandler), b(e, "touchmove", this._delayedDragTouchMoveHandler), b(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
684
|
+
},
|
|
685
|
+
_triggerDragStart: function(e, t) {
|
|
686
|
+
t = t || e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? E(document, "pointermove", this._onTouchMove) : t ? E(document, "touchmove", this._onTouchMove) : E(document, "mousemove", this._onTouchMove) : (E(f, "dragend", this), E(_, "dragstart", this._onDragStart));
|
|
687
|
+
try {
|
|
688
|
+
document.selection ? Ye(function() {
|
|
689
|
+
document.selection.empty();
|
|
690
|
+
}) : window.getSelection().removeAllRanges();
|
|
691
|
+
} catch {
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
_dragStarted: function(e, t) {
|
|
695
|
+
if (ue = !1, _ && f) {
|
|
696
|
+
N("dragStarted", this, {
|
|
697
|
+
evt: t
|
|
698
|
+
}), this.nativeDraggable && E(document, "dragover", qt);
|
|
699
|
+
var o = this.options;
|
|
700
|
+
!e && F(f, o.dragClass, !1), F(f, o.ghostClass, !0), p.active = this, e && this._appendGhost(), P({
|
|
701
|
+
sortable: this,
|
|
702
|
+
name: "start",
|
|
703
|
+
originalEvent: t
|
|
704
|
+
});
|
|
705
|
+
} else
|
|
706
|
+
this._nulling();
|
|
707
|
+
},
|
|
708
|
+
_emulateDragOver: function() {
|
|
709
|
+
if (H) {
|
|
710
|
+
this._lastX = H.clientX, this._lastY = H.clientY, Ct();
|
|
711
|
+
for (var e = document.elementFromPoint(H.clientX, H.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(H.clientX, H.clientY), e !== t); )
|
|
712
|
+
t = e;
|
|
713
|
+
if (f.parentNode[Y]._isOutsideThisEl(e), t)
|
|
714
|
+
do {
|
|
715
|
+
if (t[Y]) {
|
|
716
|
+
var o = void 0;
|
|
717
|
+
if (o = t[Y]._onDragOver({
|
|
718
|
+
clientX: H.clientX,
|
|
719
|
+
clientY: H.clientY,
|
|
720
|
+
target: e,
|
|
721
|
+
rootEl: t
|
|
722
|
+
}), o && !this.options.dragoverBubble)
|
|
723
|
+
break;
|
|
724
|
+
}
|
|
725
|
+
e = t;
|
|
726
|
+
} while (t = t.parentNode);
|
|
727
|
+
Ot();
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
_onTouchMove: function(e) {
|
|
731
|
+
if (ie) {
|
|
732
|
+
var t = this.options, o = t.fallbackTolerance, i = t.fallbackOffset, r = e.touches ? e.touches[0] : e, a = g && ce(g, !0), l = g && a && a.a, s = g && a && a.d, u = Ne && I && ct(I), d = (r.clientX - ie.clientX + i.x) / (l || 1) + (u ? u[0] - $e[0] : 0) / (l || 1), c = (r.clientY - ie.clientY + i.y) / (s || 1) + (u ? u[1] - $e[1] : 0) / (s || 1);
|
|
733
|
+
if (!p.active && !ue) {
|
|
734
|
+
if (o && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < o)
|
|
735
|
+
return;
|
|
736
|
+
this._onDragStart(e, !0);
|
|
737
|
+
}
|
|
738
|
+
if (g) {
|
|
739
|
+
a ? (a.e += d - (Ue || 0), a.f += c - (qe || 0)) : a = {
|
|
740
|
+
a: 1,
|
|
741
|
+
b: 0,
|
|
742
|
+
c: 0,
|
|
743
|
+
d: 1,
|
|
744
|
+
e: d,
|
|
745
|
+
f: c
|
|
746
|
+
};
|
|
747
|
+
var m = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
748
|
+
h(g, "webkitTransform", m), h(g, "mozTransform", m), h(g, "msTransform", m), h(g, "transform", m), Ue = d, qe = c, H = r;
|
|
749
|
+
}
|
|
750
|
+
e.cancelable && e.preventDefault();
|
|
751
|
+
}
|
|
752
|
+
},
|
|
753
|
+
_appendGhost: function() {
|
|
754
|
+
if (!g) {
|
|
755
|
+
var e = this.options.fallbackOnBody ? document.body : _, t = C(f, !0, Ne, !0, e), o = this.options;
|
|
756
|
+
if (Ne) {
|
|
757
|
+
for (I = e; h(I, "position") === "static" && h(I, "transform") === "none" && I !== document; )
|
|
758
|
+
I = I.parentNode;
|
|
759
|
+
I !== document.body && I !== document.documentElement ? (I === document && (I = L()), t.top += I.scrollTop, t.left += I.scrollLeft) : I = L(), $e = ct(I);
|
|
760
|
+
}
|
|
761
|
+
g = f.cloneNode(!0), F(g, o.ghostClass, !1), F(g, o.fallbackClass, !0), F(g, o.dragClass, !0), h(g, "transition", ""), h(g, "transform", ""), h(g, "box-sizing", "border-box"), h(g, "margin", 0), h(g, "top", t.top), h(g, "left", t.left), h(g, "width", t.width), h(g, "height", t.height), h(g, "opacity", "0.8"), h(g, "position", Ne ? "absolute" : "fixed"), h(g, "zIndex", "100000"), h(g, "pointerEvents", "none"), p.ghost = g, e.appendChild(g), h(g, "transform-origin", dt / parseInt(g.style.width) * 100 + "% " + ht / parseInt(g.style.height) * 100 + "%");
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
_onDragStart: function(e, t) {
|
|
765
|
+
var o = this, i = e.dataTransfer, r = o.options;
|
|
766
|
+
if (N("dragStart", this, {
|
|
767
|
+
evt: e
|
|
768
|
+
}), p.eventCanceled) {
|
|
769
|
+
this._onDrop();
|
|
770
|
+
return;
|
|
771
|
+
}
|
|
772
|
+
N("setupClone", this), p.eventCanceled || (D = _t(f), D.removeAttribute("id"), D.draggable = !1, D.style["will-change"] = "", this._hideClone(), F(D, this.options.chosenClass, !1), p.clone = D), o.cloneId = Ye(function() {
|
|
773
|
+
N("clone", o), !p.eventCanceled && (o.options.removeCloneOnHide || _.insertBefore(D, f), o._hideClone(), P({
|
|
774
|
+
sortable: o,
|
|
775
|
+
name: "clone"
|
|
776
|
+
}));
|
|
777
|
+
}), !t && F(f, r.dragClass, !0), t ? (Be = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (b(document, "mouseup", o._onDrop), b(document, "touchend", o._onDrop), b(document, "touchcancel", o._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(o, i, f)), E(document, "drop", o), h(f, "transform", "translateZ(0)")), ue = !0, o._dragStartId = Ye(o._dragStarted.bind(o, t, e)), E(document, "selectstart", o), be = !0, ye && h(document.body, "user-select", "none");
|
|
778
|
+
},
|
|
779
|
+
_onDragOver: function(e) {
|
|
780
|
+
var t = this.el, o = e.target, i, r, a, l = this.options, s = l.group, u = p.active, d = Ae === s, c = l.sort, m = O || u, y, v = this, w = !1;
|
|
781
|
+
if (Je)
|
|
782
|
+
return;
|
|
783
|
+
function R(ve, At) {
|
|
784
|
+
N(ve, v, z({
|
|
785
|
+
evt: e,
|
|
786
|
+
isOwner: d,
|
|
787
|
+
axis: y ? "vertical" : "horizontal",
|
|
788
|
+
revert: a,
|
|
789
|
+
dragRect: i,
|
|
790
|
+
targetRect: r,
|
|
791
|
+
canSort: c,
|
|
792
|
+
fromSortable: m,
|
|
793
|
+
target: o,
|
|
794
|
+
completed: A,
|
|
795
|
+
onMove: function(at, Pt) {
|
|
796
|
+
return xe(_, t, f, i, at, C(at), e, Pt);
|
|
797
|
+
},
|
|
798
|
+
changed: B
|
|
799
|
+
}, At));
|
|
800
|
+
}
|
|
801
|
+
function j() {
|
|
802
|
+
R("dragOverAnimationCapture"), v.captureAnimationState(), v !== m && m.captureAnimationState();
|
|
803
|
+
}
|
|
804
|
+
function A(ve) {
|
|
805
|
+
return R("dragOverCompleted", {
|
|
806
|
+
insertion: ve
|
|
807
|
+
}), ve && (d ? u._hideClone() : u._showClone(v), v !== m && (F(f, O ? O.options.ghostClass : u.options.ghostClass, !1), F(f, l.ghostClass, !0)), O !== v && v !== p.active ? O = v : v === p.active && O && (O = null), m === v && (v._ignoreWhileAnimating = o), v.animateAll(function() {
|
|
808
|
+
R("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
|
|
809
|
+
}), v !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (o === f && !f.animated || o === t && !o.animated) && (se = null), !l.dragoverBubble && !e.rootEl && o !== document && (f.parentNode[Y]._isOutsideThisEl(e.target), !ve && re(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), w = !0;
|
|
810
|
+
}
|
|
811
|
+
function B() {
|
|
812
|
+
X = k(f), Q = k(f, l.draggable), P({
|
|
813
|
+
sortable: v,
|
|
814
|
+
name: "change",
|
|
815
|
+
toEl: t,
|
|
816
|
+
newIndex: X,
|
|
817
|
+
newDraggableIndex: Q,
|
|
818
|
+
originalEvent: e
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = G(o, l.draggable, t, !0), R("dragOver"), p.eventCanceled)
|
|
822
|
+
return w;
|
|
823
|
+
if (f.contains(e.target) || o.animated && o.animatingX && o.animatingY || v._ignoreWhileAnimating === o)
|
|
824
|
+
return A(!1);
|
|
825
|
+
if (Be = !1, u && !l.disabled && (d ? c || (a = S !== _) : O === this || (this.lastPutMode = Ae.checkPull(this, u, f, e)) && s.checkPut(this, u, f, e))) {
|
|
826
|
+
if (y = this._getDirection(e, o) === "vertical", i = C(f), R("dragOverValid"), p.eventCanceled)
|
|
827
|
+
return w;
|
|
828
|
+
if (a)
|
|
829
|
+
return S = _, j(), this._hideClone(), R("revert"), p.eventCanceled || (ae ? _.insertBefore(f, ae) : _.appendChild(f)), A(!0);
|
|
830
|
+
var x = ot(t, l.draggable);
|
|
831
|
+
if (!x || Zt(e, y, this) && !x.animated) {
|
|
832
|
+
if (x === f)
|
|
833
|
+
return A(!1);
|
|
834
|
+
if (x && t === e.target && (o = x), o && (r = C(o)), xe(_, t, f, i, o, r, e, !!o) !== !1)
|
|
835
|
+
return j(), x && x.nextSibling ? t.insertBefore(f, x.nextSibling) : t.appendChild(f), S = t, B(), A(!0);
|
|
836
|
+
} else if (x && Kt(e, y, this)) {
|
|
837
|
+
var te = de(t, 0, l, !0);
|
|
838
|
+
if (te === f)
|
|
839
|
+
return A(!1);
|
|
840
|
+
if (o = te, r = C(o), xe(_, t, f, i, o, r, e, !1) !== !1)
|
|
841
|
+
return j(), t.insertBefore(f, te), S = t, B(), A(!0);
|
|
842
|
+
} else if (o.parentNode === t) {
|
|
843
|
+
r = C(o);
|
|
844
|
+
var W = 0, ne, he = f.parentNode !== t, M = !jt(f.animated && f.toRect || i, o.animated && o.toRect || r, y), pe = y ? "top" : "left", K = ft(o, "top", "top") || ft(f, "top", "top"), ge = K ? K.scrollTop : void 0;
|
|
845
|
+
se !== o && (ne = r[pe], Te = !1, Pe = !M && l.invertSwap || he), W = Qt(e, o, r, y, M ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Pe, se === o);
|
|
846
|
+
var U;
|
|
847
|
+
if (W !== 0) {
|
|
848
|
+
var oe = k(f);
|
|
849
|
+
do
|
|
850
|
+
oe -= W, U = S.children[oe];
|
|
851
|
+
while (U && (h(U, "display") === "none" || U === g));
|
|
852
|
+
}
|
|
853
|
+
if (W === 0 || U === o)
|
|
854
|
+
return A(!1);
|
|
855
|
+
se = o, Se = W;
|
|
856
|
+
var me = o.nextElementSibling, Z = !1;
|
|
857
|
+
Z = W === 1;
|
|
858
|
+
var Ie = xe(_, t, f, i, o, r, e, Z);
|
|
859
|
+
if (Ie !== !1)
|
|
860
|
+
return (Ie === 1 || Ie === -1) && (Z = Ie === 1), Je = !0, setTimeout(Vt, 30), j(), Z && !me ? t.appendChild(f) : o.parentNode.insertBefore(f, Z ? me : o), K && yt(K, 0, ge - K.scrollTop), S = f.parentNode, ne !== void 0 && !Pe && (Xe = Math.abs(ne - C(o)[pe])), B(), A(!0);
|
|
861
|
+
}
|
|
862
|
+
if (t.contains(f))
|
|
863
|
+
return A(!1);
|
|
864
|
+
}
|
|
865
|
+
return !1;
|
|
866
|
+
},
|
|
867
|
+
_ignoreWhileAnimating: null,
|
|
868
|
+
_offMoveEvents: function() {
|
|
869
|
+
b(document, "mousemove", this._onTouchMove), b(document, "touchmove", this._onTouchMove), b(document, "pointermove", this._onTouchMove), b(document, "dragover", re), b(document, "mousemove", re), b(document, "touchmove", re);
|
|
870
|
+
},
|
|
871
|
+
_offUpEvents: function() {
|
|
872
|
+
var e = this.el.ownerDocument;
|
|
873
|
+
b(e, "mouseup", this._onDrop), b(e, "touchend", this._onDrop), b(e, "pointerup", this._onDrop), b(e, "touchcancel", this._onDrop), b(document, "selectstart", this);
|
|
874
|
+
},
|
|
875
|
+
_onDrop: function(e) {
|
|
876
|
+
var t = this.el, o = this.options;
|
|
877
|
+
if (X = k(f), Q = k(f, o.draggable), N("drop", this, {
|
|
878
|
+
evt: e
|
|
879
|
+
}), S = f && f.parentNode, X = k(f), Q = k(f, o.draggable), p.eventCanceled) {
|
|
880
|
+
this._nulling();
|
|
881
|
+
return;
|
|
882
|
+
}
|
|
883
|
+
ue = !1, Pe = !1, Te = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), et(this.cloneId), et(this._dragStartId), this.nativeDraggable && (b(document, "drop", this), b(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), ye && h(document.body, "user-select", ""), h(f, "transform", ""), e && (be && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), g && g.parentNode && g.parentNode.removeChild(g), (_ === S || O && O.lastPutMode !== "clone") && D && D.parentNode && D.parentNode.removeChild(D), f && (this.nativeDraggable && b(f, "dragend", this), Ve(f), f.style["will-change"] = "", be && !ue && F(f, O ? O.options.ghostClass : this.options.ghostClass, !1), F(f, this.options.chosenClass, !1), P({
|
|
884
|
+
sortable: this,
|
|
885
|
+
name: "unchoose",
|
|
886
|
+
toEl: S,
|
|
887
|
+
newIndex: null,
|
|
888
|
+
newDraggableIndex: null,
|
|
889
|
+
originalEvent: e
|
|
890
|
+
}), _ !== S ? (X >= 0 && (P({
|
|
891
|
+
rootEl: S,
|
|
892
|
+
name: "add",
|
|
893
|
+
toEl: S,
|
|
894
|
+
fromEl: _,
|
|
895
|
+
originalEvent: e
|
|
896
|
+
}), P({
|
|
897
|
+
sortable: this,
|
|
898
|
+
name: "remove",
|
|
899
|
+
toEl: S,
|
|
900
|
+
originalEvent: e
|
|
901
|
+
}), P({
|
|
902
|
+
rootEl: S,
|
|
903
|
+
name: "sort",
|
|
904
|
+
toEl: S,
|
|
905
|
+
fromEl: _,
|
|
906
|
+
originalEvent: e
|
|
907
|
+
}), P({
|
|
908
|
+
sortable: this,
|
|
909
|
+
name: "sort",
|
|
910
|
+
toEl: S,
|
|
911
|
+
originalEvent: e
|
|
912
|
+
})), O && O.save()) : X !== fe && X >= 0 && (P({
|
|
913
|
+
sortable: this,
|
|
914
|
+
name: "update",
|
|
915
|
+
toEl: S,
|
|
916
|
+
originalEvent: e
|
|
917
|
+
}), P({
|
|
918
|
+
sortable: this,
|
|
919
|
+
name: "sort",
|
|
920
|
+
toEl: S,
|
|
921
|
+
originalEvent: e
|
|
922
|
+
})), p.active && ((X == null || X === -1) && (X = fe, Q = De), P({
|
|
923
|
+
sortable: this,
|
|
924
|
+
name: "end",
|
|
925
|
+
toEl: S,
|
|
926
|
+
originalEvent: e
|
|
927
|
+
}), this.save()))), this._nulling();
|
|
928
|
+
},
|
|
929
|
+
_nulling: function() {
|
|
930
|
+
N("nulling", this), _ = f = S = g = ae = D = Fe = J = ie = H = be = X = Q = fe = De = se = Se = O = Ae = p.dragged = p.ghost = p.clone = p.active = null, We.forEach(function(e) {
|
|
931
|
+
e.checked = !0;
|
|
932
|
+
}), We.length = Ue = qe = 0;
|
|
933
|
+
},
|
|
934
|
+
handleEvent: function(e) {
|
|
935
|
+
switch (e.type) {
|
|
936
|
+
case "drop":
|
|
937
|
+
case "dragend":
|
|
938
|
+
this._onDrop(e);
|
|
939
|
+
break;
|
|
940
|
+
case "dragenter":
|
|
941
|
+
case "dragover":
|
|
942
|
+
f && (this._onDragOver(e), $t(e));
|
|
943
|
+
break;
|
|
944
|
+
case "selectstart":
|
|
945
|
+
e.preventDefault();
|
|
946
|
+
break;
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
toArray: function() {
|
|
950
|
+
for (var e = [], t, o = this.el.children, i = 0, r = o.length, a = this.options; i < r; i++)
|
|
951
|
+
t = o[i], G(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || en(t));
|
|
952
|
+
return e;
|
|
953
|
+
},
|
|
954
|
+
sort: function(e, t) {
|
|
955
|
+
var o = {}, i = this.el;
|
|
956
|
+
this.toArray().forEach(function(r, a) {
|
|
957
|
+
var l = i.children[a];
|
|
958
|
+
G(l, this.options.draggable, i, !1) && (o[r] = l);
|
|
959
|
+
}, this), t && this.captureAnimationState(), e.forEach(function(r) {
|
|
960
|
+
o[r] && (i.removeChild(o[r]), i.appendChild(o[r]));
|
|
961
|
+
}), t && this.animateAll();
|
|
962
|
+
},
|
|
963
|
+
save: function() {
|
|
964
|
+
var e = this.options.store;
|
|
965
|
+
e && e.set && e.set(this);
|
|
966
|
+
},
|
|
967
|
+
closest: function(e, t) {
|
|
968
|
+
return G(e, t || this.options.draggable, this.el, !1);
|
|
969
|
+
},
|
|
970
|
+
option: function(e, t) {
|
|
971
|
+
var o = this.options;
|
|
972
|
+
if (t === void 0)
|
|
973
|
+
return o[e];
|
|
974
|
+
var i = Oe.modifyOption(this, e, t);
|
|
975
|
+
typeof i < "u" ? o[e] = i : o[e] = t, e === "group" && Tt(o);
|
|
976
|
+
},
|
|
977
|
+
destroy: function() {
|
|
978
|
+
N("destroy", this);
|
|
979
|
+
var e = this.el;
|
|
980
|
+
e[Y] = null, b(e, "mousedown", this._onTapStart), b(e, "touchstart", this._onTapStart), b(e, "pointerdown", this._onTapStart), this.nativeDraggable && (b(e, "dragover", this), b(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(t) {
|
|
981
|
+
t.removeAttribute("draggable");
|
|
982
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), He.splice(He.indexOf(this.el), 1), this.el = e = null;
|
|
983
|
+
},
|
|
984
|
+
_hideClone: function() {
|
|
985
|
+
if (!J) {
|
|
986
|
+
if (N("hideClone", this), p.eventCanceled)
|
|
987
|
+
return;
|
|
988
|
+
h(D, "display", "none"), this.options.removeCloneOnHide && D.parentNode && D.parentNode.removeChild(D), J = !0;
|
|
989
|
+
}
|
|
990
|
+
},
|
|
991
|
+
_showClone: function(e) {
|
|
992
|
+
if (e.lastPutMode !== "clone") {
|
|
993
|
+
this._hideClone();
|
|
994
|
+
return;
|
|
995
|
+
}
|
|
996
|
+
if (J) {
|
|
997
|
+
if (N("showClone", this), p.eventCanceled)
|
|
998
|
+
return;
|
|
999
|
+
f.parentNode == _ && !this.options.group.revertClone ? _.insertBefore(D, f) : ae ? _.insertBefore(D, ae) : _.appendChild(D), this.options.group.revertClone && this.animate(f, D), h(D, "display", ""), J = !1;
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
};
|
|
1003
|
+
function $t(n) {
|
|
1004
|
+
n.dataTransfer && (n.dataTransfer.dropEffect = "move"), n.cancelable && n.preventDefault();
|
|
1005
|
+
}
|
|
1006
|
+
function xe(n, e, t, o, i, r, a, l) {
|
|
1007
|
+
var s, u = n[Y], d = u.options.onMove, c;
|
|
1008
|
+
return window.CustomEvent && !V && !Ce ? s = new CustomEvent("move", {
|
|
1009
|
+
bubbles: !0,
|
|
1010
|
+
cancelable: !0
|
|
1011
|
+
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = n, s.dragged = t, s.draggedRect = o, s.related = i || e, s.relatedRect = r || C(e), s.willInsertAfter = l, s.originalEvent = a, n.dispatchEvent(s), d && (c = d.call(u, s, a)), c;
|
|
1012
|
+
}
|
|
1013
|
+
function Ve(n) {
|
|
1014
|
+
n.draggable = !1;
|
|
1015
|
+
}
|
|
1016
|
+
function Vt() {
|
|
1017
|
+
Je = !1;
|
|
1018
|
+
}
|
|
1019
|
+
function Kt(n, e, t) {
|
|
1020
|
+
var o = C(de(t.el, 0, t.options, !0)), i = 10;
|
|
1021
|
+
return e ? n.clientX < o.left - i || n.clientY < o.top && n.clientX < o.right : n.clientY < o.top - i || n.clientY < o.bottom && n.clientX < o.left;
|
|
1022
|
+
}
|
|
1023
|
+
function Zt(n, e, t) {
|
|
1024
|
+
var o = C(ot(t.el, t.options.draggable)), i = 10;
|
|
1025
|
+
return e ? n.clientX > o.right + i || n.clientX <= o.right && n.clientY > o.bottom && n.clientX >= o.left : n.clientX > o.right && n.clientY > o.top || n.clientX <= o.right && n.clientY > o.bottom + i;
|
|
1026
|
+
}
|
|
1027
|
+
function Qt(n, e, t, o, i, r, a, l) {
|
|
1028
|
+
var s = o ? n.clientY : n.clientX, u = o ? t.height : t.width, d = o ? t.top : t.left, c = o ? t.bottom : t.right, m = !1;
|
|
1029
|
+
if (!a) {
|
|
1030
|
+
if (l && Xe < u * i) {
|
|
1031
|
+
if (!Te && (Se === 1 ? s > d + u * r / 2 : s < c - u * r / 2) && (Te = !0), Te)
|
|
1032
|
+
m = !0;
|
|
1033
|
+
else if (Se === 1 ? s < d + Xe : s > c - Xe)
|
|
1034
|
+
return -Se;
|
|
1035
|
+
} else if (s > d + u * (1 - i) / 2 && s < c - u * (1 - i) / 2)
|
|
1036
|
+
return Jt(e);
|
|
1037
|
+
}
|
|
1038
|
+
return m = m || a, m && (s < d + u * r / 2 || s > c - u * r / 2) ? s > d + u / 2 ? 1 : -1 : 0;
|
|
1039
|
+
}
|
|
1040
|
+
function Jt(n) {
|
|
1041
|
+
return k(f) < k(n) ? 1 : -1;
|
|
1042
|
+
}
|
|
1043
|
+
function en(n) {
|
|
1044
|
+
for (var e = n.tagName + n.className + n.src + n.href + n.textContent, t = e.length, o = 0; t--; )
|
|
1045
|
+
o += e.charCodeAt(t);
|
|
1046
|
+
return o.toString(36);
|
|
1047
|
+
}
|
|
1048
|
+
function tn(n) {
|
|
1049
|
+
We.length = 0;
|
|
1050
|
+
for (var e = n.getElementsByTagName("input"), t = e.length; t--; ) {
|
|
1051
|
+
var o = e[t];
|
|
1052
|
+
o.checked && We.push(o);
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
function Ye(n) {
|
|
1056
|
+
return setTimeout(n, 0);
|
|
1057
|
+
}
|
|
1058
|
+
function et(n) {
|
|
1059
|
+
return clearTimeout(n);
|
|
1060
|
+
}
|
|
1061
|
+
Le && E(document, "touchmove", function(n) {
|
|
1062
|
+
(p.active || ue) && n.cancelable && n.preventDefault();
|
|
1063
|
+
});
|
|
1064
|
+
p.utils = {
|
|
1065
|
+
on: E,
|
|
1066
|
+
off: b,
|
|
1067
|
+
css: h,
|
|
1068
|
+
find: Et,
|
|
1069
|
+
is: function(e, t) {
|
|
1070
|
+
return !!G(e, t, e, !1);
|
|
1071
|
+
},
|
|
1072
|
+
extend: kt,
|
|
1073
|
+
throttle: wt,
|
|
1074
|
+
closest: G,
|
|
1075
|
+
toggleClass: F,
|
|
1076
|
+
clone: _t,
|
|
1077
|
+
index: k,
|
|
1078
|
+
nextTick: Ye,
|
|
1079
|
+
cancelNextTick: et,
|
|
1080
|
+
detectDirection: St,
|
|
1081
|
+
getChild: de
|
|
1082
|
+
};
|
|
1083
|
+
p.get = function(n) {
|
|
1084
|
+
return n[Y];
|
|
1085
|
+
};
|
|
1086
|
+
p.mount = function() {
|
|
1087
|
+
for (var n = arguments.length, e = new Array(n), t = 0; t < n; t++)
|
|
1088
|
+
e[t] = arguments[t];
|
|
1089
|
+
e[0].constructor === Array && (e = e[0]), e.forEach(function(o) {
|
|
1090
|
+
if (!o.prototype || !o.prototype.constructor)
|
|
1091
|
+
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
|
|
1092
|
+
o.utils && (p.utils = z(z({}, p.utils), o.utils)), Oe.mount(o);
|
|
1093
|
+
});
|
|
1094
|
+
};
|
|
1095
|
+
p.create = function(n, e) {
|
|
1096
|
+
return new p(n, e);
|
|
1097
|
+
};
|
|
1098
|
+
p.version = Ft;
|
|
1099
|
+
var T = [], Ee, tt, nt = !1, Ke, Ze, Ge, we;
|
|
1100
|
+
function nn() {
|
|
1101
|
+
function n() {
|
|
1102
|
+
this.defaults = {
|
|
1103
|
+
scroll: !0,
|
|
1104
|
+
forceAutoScrollFallback: !1,
|
|
1105
|
+
scrollSensitivity: 30,
|
|
1106
|
+
scrollSpeed: 10,
|
|
1107
|
+
bubbleScroll: !0
|
|
1108
|
+
};
|
|
1109
|
+
for (var e in this)
|
|
1110
|
+
e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
|
|
1111
|
+
}
|
|
1112
|
+
return n.prototype = {
|
|
1113
|
+
dragStarted: function(t) {
|
|
1114
|
+
var o = t.originalEvent;
|
|
1115
|
+
this.sortable.nativeDraggable ? E(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? E(document, "pointermove", this._handleFallbackAutoScroll) : o.touches ? E(document, "touchmove", this._handleFallbackAutoScroll) : E(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1116
|
+
},
|
|
1117
|
+
dragOverCompleted: function(t) {
|
|
1118
|
+
var o = t.originalEvent;
|
|
1119
|
+
!this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
|
|
1120
|
+
},
|
|
1121
|
+
drop: function() {
|
|
1122
|
+
this.sortable.nativeDraggable ? b(document, "dragover", this._handleAutoScroll) : (b(document, "pointermove", this._handleFallbackAutoScroll), b(document, "touchmove", this._handleFallbackAutoScroll), b(document, "mousemove", this._handleFallbackAutoScroll)), gt(), ke(), Rt();
|
|
1123
|
+
},
|
|
1124
|
+
nulling: function() {
|
|
1125
|
+
Ge = tt = Ee = nt = we = Ke = Ze = null, T.length = 0;
|
|
1126
|
+
},
|
|
1127
|
+
_handleFallbackAutoScroll: function(t) {
|
|
1128
|
+
this._handleAutoScroll(t, !0);
|
|
1129
|
+
},
|
|
1130
|
+
_handleAutoScroll: function(t, o) {
|
|
1131
|
+
var i = this, r = (t.touches ? t.touches[0] : t).clientX, a = (t.touches ? t.touches[0] : t).clientY, l = document.elementFromPoint(r, a);
|
|
1132
|
+
if (Ge = t, o || this.options.forceAutoScrollFallback || Ce || V || ye) {
|
|
1133
|
+
Qe(t, this.options, l, o);
|
|
1134
|
+
var s = ee(l, !0);
|
|
1135
|
+
nt && (!we || r !== Ke || a !== Ze) && (we && gt(), we = setInterval(function() {
|
|
1136
|
+
var u = ee(document.elementFromPoint(r, a), !0);
|
|
1137
|
+
u !== s && (s = u, ke()), Qe(t, i.options, u, o);
|
|
1138
|
+
}, 10), Ke = r, Ze = a);
|
|
1139
|
+
} else {
|
|
1140
|
+
if (!this.options.bubbleScroll || ee(l, !0) === L()) {
|
|
1141
|
+
ke();
|
|
1142
|
+
return;
|
|
1143
|
+
}
|
|
1144
|
+
Qe(t, this.options, ee(l, !1), !1);
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
}, $(n, {
|
|
1148
|
+
pluginName: "scroll",
|
|
1149
|
+
initializeByDefault: !0
|
|
1150
|
+
});
|
|
1151
|
+
}
|
|
1152
|
+
function ke() {
|
|
1153
|
+
T.forEach(function(n) {
|
|
1154
|
+
clearInterval(n.pid);
|
|
1155
|
+
}), T = [];
|
|
1156
|
+
}
|
|
1157
|
+
function gt() {
|
|
1158
|
+
clearInterval(we);
|
|
1159
|
+
}
|
|
1160
|
+
var Qe = wt(function(n, e, t, o) {
|
|
1161
|
+
if (!!e.scroll) {
|
|
1162
|
+
var i = (n.touches ? n.touches[0] : n).clientX, r = (n.touches ? n.touches[0] : n).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = L(), u = !1, d;
|
|
1163
|
+
tt !== t && (tt = t, ke(), Ee = e.scroll, d = e.scrollFn, Ee === !0 && (Ee = ee(t, !0)));
|
|
1164
|
+
var c = 0, m = Ee;
|
|
1165
|
+
do {
|
|
1166
|
+
var y = m, v = C(y), w = v.top, R = v.bottom, j = v.left, A = v.right, B = v.width, x = v.height, te = void 0, W = void 0, ne = y.scrollWidth, he = y.scrollHeight, M = h(y), pe = y.scrollLeft, K = y.scrollTop;
|
|
1167
|
+
y === s ? (te = B < ne && (M.overflowX === "auto" || M.overflowX === "scroll" || M.overflowX === "visible"), W = x < he && (M.overflowY === "auto" || M.overflowY === "scroll" || M.overflowY === "visible")) : (te = B < ne && (M.overflowX === "auto" || M.overflowX === "scroll"), W = x < he && (M.overflowY === "auto" || M.overflowY === "scroll"));
|
|
1168
|
+
var ge = te && (Math.abs(A - i) <= a && pe + B < ne) - (Math.abs(j - i) <= a && !!pe), U = W && (Math.abs(R - r) <= a && K + x < he) - (Math.abs(w - r) <= a && !!K);
|
|
1169
|
+
if (!T[c])
|
|
1170
|
+
for (var oe = 0; oe <= c; oe++)
|
|
1171
|
+
T[oe] || (T[oe] = {});
|
|
1172
|
+
(T[c].vx != ge || T[c].vy != U || T[c].el !== y) && (T[c].el = y, T[c].vx = ge, T[c].vy = U, clearInterval(T[c].pid), (ge != 0 || U != 0) && (u = !0, T[c].pid = setInterval(function() {
|
|
1173
|
+
o && this.layer === 0 && p.active._onTouchMove(Ge);
|
|
1174
|
+
var me = T[this.layer].vy ? T[this.layer].vy * l : 0, Z = T[this.layer].vx ? T[this.layer].vx * l : 0;
|
|
1175
|
+
typeof d == "function" && d.call(p.dragged.parentNode[Y], Z, me, n, Ge, T[this.layer].el) !== "continue" || yt(T[this.layer].el, Z, me);
|
|
1176
|
+
}.bind({
|
|
1177
|
+
layer: c
|
|
1178
|
+
}), 24))), c++;
|
|
1179
|
+
} while (e.bubbleScroll && m !== s && (m = ee(m, !1)));
|
|
1180
|
+
nt = u;
|
|
1181
|
+
}
|
|
1182
|
+
}, 30), It = function(e) {
|
|
1183
|
+
var t = e.originalEvent, o = e.putSortable, i = e.dragEl, r = e.activeSortable, a = e.dispatchSortableEvent, l = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
1184
|
+
if (!!t) {
|
|
1185
|
+
var u = o || r;
|
|
1186
|
+
l();
|
|
1187
|
+
var d = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, c = document.elementFromPoint(d.clientX, d.clientY);
|
|
1188
|
+
s(), u && !u.el.contains(c) && (a("spill"), this.onSpill({
|
|
1189
|
+
dragEl: i,
|
|
1190
|
+
putSortable: o
|
|
1191
|
+
}));
|
|
1192
|
+
}
|
|
1193
|
+
};
|
|
1194
|
+
function it() {
|
|
1195
|
+
}
|
|
1196
|
+
it.prototype = {
|
|
1197
|
+
startIndex: null,
|
|
1198
|
+
dragStart: function(e) {
|
|
1199
|
+
var t = e.oldDraggableIndex;
|
|
1200
|
+
this.startIndex = t;
|
|
1201
|
+
},
|
|
1202
|
+
onSpill: function(e) {
|
|
1203
|
+
var t = e.dragEl, o = e.putSortable;
|
|
1204
|
+
this.sortable.captureAnimationState(), o && o.captureAnimationState();
|
|
1205
|
+
var i = de(this.sortable.el, this.startIndex, this.options);
|
|
1206
|
+
i ? this.sortable.el.insertBefore(t, i) : this.sortable.el.appendChild(t), this.sortable.animateAll(), o && o.animateAll();
|
|
1207
|
+
},
|
|
1208
|
+
drop: It
|
|
1209
|
+
};
|
|
1210
|
+
$(it, {
|
|
1211
|
+
pluginName: "revertOnSpill"
|
|
1212
|
+
});
|
|
1213
|
+
function rt() {
|
|
1214
|
+
}
|
|
1215
|
+
rt.prototype = {
|
|
1216
|
+
onSpill: function(e) {
|
|
1217
|
+
var t = e.dragEl, o = e.putSortable, i = o || this.sortable;
|
|
1218
|
+
i.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), i.animateAll();
|
|
1219
|
+
},
|
|
1220
|
+
drop: It
|
|
1221
|
+
};
|
|
1222
|
+
$(rt, {
|
|
1223
|
+
pluginName: "removeOnSpill"
|
|
1224
|
+
});
|
|
1225
|
+
p.mount(new nn());
|
|
1226
|
+
p.mount(rt, it);
|
|
1227
|
+
export {
|
|
1228
|
+
p as S
|
|
1229
|
+
};
|