@getflip/swirl-components-react 0.65.0 → 0.67.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.7f588fee.js → file-manager.entry.ec7f3e0c.js} +1 -1
- package/dist/{index.a6af8737.js → index.63420343.js} +185 -185
- package/dist/sortable.esm-8c3d5856.57c4f048.js +1229 -0
- package/dist/{swirl-action-list-section.entry.2ac019ae.js → swirl-action-list-section.entry.992bafc7.js} +1 -1
- package/dist/{swirl-action-list_3.entry.22d92fca.js → swirl-action-list_3.entry.d2d5fea2.js} +1 -1
- package/dist/{swirl-app-bar.entry.19625c13.js → swirl-app-bar.entry.a99c3eb0.js} +1 -1
- package/dist/{swirl-app-icon.entry.e8d0055a.js → swirl-app-icon.entry.57d19331.js} +1 -1
- package/dist/{swirl-app-layout_7.entry.38d2e203.js → swirl-app-layout_7.entry.e44dc9d1.js} +156 -74
- package/dist/{swirl-autocomplete.entry.0ca67ad8.js → swirl-autocomplete.entry.b4a3274a.js} +1 -1
- package/dist/{swirl-avatar-group.entry.035ff534.js → swirl-avatar-group.entry.ddd13a01.js} +1 -1
- package/dist/{swirl-avatar.entry.a3b620d7.js → swirl-avatar.entry.21fb3961.js} +1 -1
- package/dist/{swirl-badge.entry.660d3434.js → swirl-badge.entry.92878b02.js} +1 -1
- package/dist/{swirl-banner.entry.9063164f.js → swirl-banner.entry.124bface.js} +1 -1
- package/dist/{swirl-button-group.entry.40787061.js → swirl-button-group.entry.8fe0255b.js} +1 -1
- package/dist/{swirl-button.entry.743e61c7.js → swirl-button.entry.ba253a46.js} +1 -1
- package/dist/{swirl-card.entry.af5c2a20.js → swirl-card.entry.04ce939c.js} +1 -1
- package/dist/{swirl-carousel-slide.entry.426b5a60.js → swirl-carousel-slide.entry.f1770b5e.js} +1 -1
- package/dist/{swirl-carousel.entry.eb037dea.js → swirl-carousel.entry.4934ff7d.js} +1 -1
- package/dist/{swirl-checkbox.entry.eff49381.js → swirl-checkbox.entry.3d631f58.js} +1 -1
- package/dist/{swirl-chip.entry.9fee17a6.js → swirl-chip.entry.3d3f7d8a.js} +1 -1
- package/dist/{swirl-columns.entry.10941da3.js → swirl-columns.entry.00878631.js} +1 -1
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +54 -53
- package/dist/{swirl-console-layout.entry.563a5de2.js → swirl-console-layout.entry.a9b4cb6f.js} +1 -1
- package/dist/{swirl-date-input.entry.f516bdcc.js → swirl-date-input.entry.74ccaba7.js} +1 -1
- package/dist/{swirl-date-picker_2.entry.b1bd2ef9.js → swirl-date-picker_2.entry.965bc8f0.js} +1 -1
- package/dist/{swirl-description-list-item.entry.1cdb3af5.js → swirl-description-list-item.entry.ad41235b.js} +1 -1
- package/dist/{swirl-description-list.entry.4402f32d.js → swirl-description-list.entry.a607b26f.js} +1 -1
- package/dist/{swirl-dialog.entry.bac2933b.js → swirl-dialog.entry.867e5a97.js} +1 -1
- package/dist/{swirl-file-uploader.entry.b8437927.js → swirl-file-uploader.entry.ccf31f94.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.8897e876.js → swirl-file-viewer_7.entry.ad55f609.js} +1 -1
- package/dist/{swirl-form-control.entry.e6c8c878.js → swirl-form-control.entry.215821c7.js} +1 -1
- package/dist/{swirl-form-group.entry.338c4cbb.js → swirl-form-group.entry.a9d48919.js} +1 -1
- package/dist/{swirl-heading.entry.03fc69fc.js → swirl-heading.entry.78a1cbd1.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.875c7886.js → swirl-icon-add-photo.entry.7e0f5311.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.0ceb897e.js → swirl-icon-add_6.entry.24a5147f.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.692fd27b.js → swirl-icon-admin-panel-settings.entry.ead93fdf.js} +1 -1
- package/dist/{swirl-icon-ai.entry.173e9adc.js → swirl-icon-ai.entry.88240469.js} +1 -1
- package/dist/{swirl-icon-arrow-back.entry.74796aac.js → swirl-icon-arrow-back.entry.346fc5f3.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.18d7ca72.js → swirl-icon-arrow-downward_2.entry.09699b24.js} +1 -1
- package/dist/{swirl-icon-arrow-forward.entry.d3b123bf.js → swirl-icon-arrow-forward.entry.fa9a66fc.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.0fb0bda0.js → swirl-icon-arrow-left_4.entry.cc5d4036.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.eded8345.js → swirl-icon-arrow-right-small.entry.99ab126b.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.47aad392.js → swirl-icon-attachment.entry.707fc109.js} +1 -1
- package/dist/{swirl-icon-bar-chart.entry.46656895.js → swirl-icon-bar-chart.entry.1ce0f741.js} +1 -1
- package/dist/{swirl-icon-block.entry.525201eb.js → swirl-icon-block.entry.89d8155c.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.4269c27a.js → swirl-icon-bookmark.entry.dc811582.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.731747c0.js → swirl-icon-cancel_4.entry.84b3f3b2.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.1e9a5830.js → swirl-icon-chat-bubble.entry.1c8ccbcd.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.6f457983.js → swirl-icon-chats-filled.entry.5a8c0427.js} +1 -1
- package/dist/{swirl-icon-chats-outlined.entry.897db222.js → swirl-icon-chats-outlined.entry.08fa732e.js} +1 -1
- package/dist/{swirl-icon-check-circle_3.entry.e72533a3.js → swirl-icon-check-circle_3.entry.2c3ba237.js} +1 -1
- package/dist/{swirl-icon-check-small_3.entry.5caa4080.js → swirl-icon-check-small_3.entry.38c16f3a.js} +1 -1
- package/dist/{swirl-icon-check-strong.entry.314cc521.js → swirl-icon-check-strong.entry.34d25e27.js} +1 -1
- package/dist/{swirl-icon-check.entry.0497cd81.js → swirl-icon-check.entry.df70b59a.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.e895b01c.js → swirl-icon-chevron-left.entry.3592e183.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.4a457cf0.js → swirl-icon-chevron-right.entry.560fc262.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.aaed5ad1.js → swirl-icon-close-small.entry.8ca1d3b1.js} +1 -1
- package/dist/{swirl-icon-close.entry.dd49526a.js → swirl-icon-close.entry.947ff31e.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.4787748f.js → swirl-icon-cloud-upload.entry.3bf41985.js} +1 -1
- package/dist/{swirl-icon-column.entry.b1c72c3b.js → swirl-icon-column.entry.80345562.js} +1 -1
- package/dist/{swirl-icon-comment.entry.8cbfaa9e.js → swirl-icon-comment.entry.5745f733.js} +1 -1
- package/dist/{swirl-icon-copy.entry.4a2a8a3d.js → swirl-icon-copy.entry.63ee41ef.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.77c8bd15.js → swirl-icon-date-range.entry.44f4af4d.js} +1 -1
- package/dist/{swirl-icon-delete.entry.4771bb26.js → swirl-icon-delete.entry.9feb4462.js} +1 -1
- package/dist/{swirl-icon-description.entry.15aedfc9.js → swirl-icon-description.entry.7ceaf71c.js} +1 -1
- package/dist/{swirl-icon-double-arrow-left.entry.604b1731.js → swirl-icon-double-arrow-left.entry.365fd024.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.3970072a.js → swirl-icon-double-arrow-right.entry.b00fcec0.js} +1 -1
- package/dist/{swirl-icon-download.entry.a29d65e9.js → swirl-icon-download.entry.b1b800bc.js} +1 -1
- package/dist/{swirl-icon-edit.entry.33e8a8cf.js → swirl-icon-edit.entry.9eb8137b.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.569b1aea.js → swirl-icon-emoji-mood.entry.78a9c20f.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.1929e418.js → swirl-icon-emoji-satisfied.entry.481cfa20.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.8d48efed.js → swirl-icon-error_3.entry.e1e4353c.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.735f3da7.js → swirl-icon-expand-more.entry.eed47fe8.js} +1 -1
- package/dist/{swirl-icon-filter.entry.9e26876d.js → swirl-icon-filter.entry.9b9ee50d.js} +1 -1
- package/dist/{swirl-icon-folder.entry.3829a2a2.js → swirl-icon-folder.entry.a392c4f3.js} +1 -1
- package/dist/{swirl-icon-gif.entry.91195a0a.js → swirl-icon-gif.entry.cd08de83.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.1e409d6e.js → swirl-icon-group-assign.entry.90ef8aed.js} +1 -1
- package/dist/{swirl-icon-groups-custom.entry.a9962879.js → swirl-icon-groups-custom.entry.889581f0.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.25dd2ee6.js → swirl-icon-groups-filled.entry.5e19a6af.js} +1 -1
- package/dist/{swirl-icon-groups-outlined.entry.656e1a98.js → swirl-icon-groups-outlined.entry.fc5e7c1f.js} +1 -1
- package/dist/{swirl-icon-groups.entry.c8508165.js → swirl-icon-groups.entry.60d0bb95.js} +1 -1
- package/dist/{swirl-icon-help.entry.72280b07.js → swirl-icon-help.entry.c78d1a36.js} +1 -1
- package/dist/{swirl-icon-highlight.entry.39ede74f.js → swirl-icon-highlight.entry.dc476f21.js} +1 -1
- package/dist/{swirl-icon-home.entry.33e65805.js → swirl-icon-home.entry.faaaede0.js} +1 -1
- package/dist/{swirl-icon-image.entry.78d99e6b.js → swirl-icon-image.entry.283f3828.js} +1 -1
- package/dist/{swirl-icon-improve-text.entry.cb15c371.js → swirl-icon-improve-text.entry.d2d5077a.js} +1 -1
- package/dist/{swirl-icon-insert-below.entry.c68bebe4.js → swirl-icon-insert-below.entry.d852385c.js} +1 -1
- package/dist/{swirl-icon-insert-on-top.entry.adfaf292.js → swirl-icon-insert-on-top.entry.478be64d.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.f9d03596.js → swirl-icon-inventory.entry.dff6cc6e.js} +1 -1
- package/dist/{swirl-icon-like.entry.dd0be027.js → swirl-icon-like.entry.f686ae2b.js} +1 -1
- package/dist/{swirl-icon-link.entry.a087e949.js → swirl-icon-link.entry.97aee1bb.js} +1 -1
- package/dist/{swirl-icon-lock-person.entry.06823738.js → swirl-icon-lock-person.entry.273df238.js} +1 -1
- package/dist/{swirl-icon-lock.entry.96970443.js → swirl-icon-lock.entry.f71c3bdc.js} +1 -1
- package/dist/{swirl-icon-logout.entry.6c0ed139.js → swirl-icon-logout.entry.d88eaca7.js} +1 -1
- package/dist/{swirl-icon-long-text.entry.f4316b9c.js → swirl-icon-long-text.entry.4261c67b.js} +1 -1
- package/dist/{swirl-icon-mail.entry.05a9bd94.js → swirl-icon-mail.entry.931a2eb1.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.9ff1ec3d.js → swirl-icon-manage-accounts.entry.78f5defa.js} +1 -1
- package/dist/{swirl-icon-mark-chat-read.entry.b3fe4e04.js → swirl-icon-mark-chat-read.entry.85ac8d96.js} +1 -1
- package/dist/{swirl-icon-mark-chat-unread.entry.cc3dad79.js → swirl-icon-mark-chat-unread.entry.455427f9.js} +1 -1
- package/dist/{swirl-icon-mention.entry.68a8e265.js → swirl-icon-mention.entry.fe2a06f6.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.3a75088b.js → swirl-icon-menu-filled.entry.35a49de8.js} +1 -1
- package/dist/{swirl-icon-menu-outlined.entry.9cdaa946.js → swirl-icon-menu-outlined.entry.1110ebcb.js} +1 -1
- package/dist/{swirl-icon-menu.entry.67fcabc8.js → swirl-icon-menu.entry.acae7c08.js} +1 -1
- package/dist/{swirl-icon-message.entry.efe8bfc1.js → swirl-icon-message.entry.e8243a79.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.0bbd99ee.js → swirl-icon-more-horizontal.entry.503d424a.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.4c0bb68b.js → swirl-icon-news-filled.entry.92316c4c.js} +1 -1
- package/dist/{swirl-icon-news-outlined.entry.51344291.js → swirl-icon-news-outlined.entry.49b5e19e.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.828ad1ee.js → swirl-icon-notifications-active.entry.fac15b08.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.4f224ee0.js → swirl-icon-notifications-off.entry.44867169.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.3fd8522a.js → swirl-icon-notifications.entry.993c929f.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.a1d62a83.js → swirl-icon-open-in-new.entry.fb3589ef.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.377008dd.js → swirl-icon-people-alt.entry.62d59cb0.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.4e07ba74.js → swirl-icon-person-off.entry.cbb5fd45.js} +1 -1
- package/dist/{swirl-icon-person.entry.9c83d42c.js → swirl-icon-person.entry.0a51f312.js} +1 -1
- package/dist/{swirl-icon-phone.entry.1585fa69.js → swirl-icon-phone.entry.d7d364f4.js} +1 -1
- package/dist/{swirl-icon-play-arrow.entry.3bb5239a.js → swirl-icon-play-arrow.entry.1b6ae9aa.js} +1 -1
- package/dist/{swirl-icon-poll.entry.e3fcfe4f.js → swirl-icon-poll.entry.389159f7.js} +1 -1
- package/dist/{swirl-icon-print.entry.2d2e77f4.js → swirl-icon-print.entry.897d9a3b.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.2009171d.js → swirl-icon-recieved.entry.615fddec.js} +1 -1
- package/dist/{swirl-icon-reply.entry.3a600820.js → swirl-icon-reply.entry.8e40d4b2.js} +1 -1
- package/dist/{swirl-icon-roadmap.entry.01fdc7ff.js → swirl-icon-roadmap.entry.f80ed109.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.61eb0ba2.js → swirl-icon-search-strong.entry.2de56151.js} +1 -1
- package/dist/{swirl-icon-search.entry.7a7d7704.js → swirl-icon-search.entry.6a03ef4f.js} +1 -1
- package/dist/{swirl-icon-send.entry.8832a3f9.js → swirl-icon-send.entry.45df0ebc.js} +1 -1
- package/dist/{swirl-icon-settings.entry.2109119a.js → swirl-icon-settings.entry.3b644fe3.js} +1 -1
- package/dist/{swirl-icon-short-text.entry.c9c3d37a.js → swirl-icon-short-text.entry.97be2f97.js} +1 -1
- package/dist/{swirl-icon-simplify.entry.2f5a1c58.js → swirl-icon-simplify.entry.5a40a3b4.js} +1 -1
- package/dist/{swirl-icon-spellcheck.entry.9046b548.js → swirl-icon-spellcheck.entry.88225511.js} +1 -1
- package/dist/{swirl-icon-sync.entry.71610ba0.js → swirl-icon-sync.entry.05ced58b.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.f8fd2960.js → swirl-icon-tasks-filled.entry.ea4b9c2f.js} +1 -1
- package/dist/{swirl-icon-tasks-outlined.entry.78b6b449.js → swirl-icon-tasks-outlined.entry.ab4fcfb5.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.c0692501.js → swirl-icon-time-filled.entry.f2dc33c4.js} +1 -1
- package/dist/{swirl-icon-time-outlined.entry.4fc6f4ab.js → swirl-icon-time-outlined.entry.a9e93d55.js} +1 -1
- package/dist/{swirl-icon-undo.entry.9ef83a76.js → swirl-icon-undo.entry.70e4a99a.js} +1 -1
- package/dist/{swirl-icon-unlock-person.entry.60be4b28.js → swirl-icon-unlock-person.entry.dc4a9fa5.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.a337178d.js → swirl-icon-user-assign.entry.9ec9b651.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.8e1ffa27.js → swirl-icon-video-camera.entry.e72f9817.js} +1 -1
- package/dist/{swirl-icon-video-library.entry.5c30766e.js → swirl-icon-video-library.entry.61554bde.js} +1 -1
- package/dist/{swirl-icon-voice.entry.4510d22b.js → swirl-icon-voice.entry.fd7d7f94.js} +1 -1
- package/dist/{swirl-icon.entry.ca11fa35.js → swirl-icon.entry.61d4ef11.js} +1 -1
- package/dist/{swirl-inline-notification.entry.29af9299.js → swirl-inline-notification.entry.76093117.js} +1 -1
- package/dist/{swirl-inline-status.entry.a8d9611c.js → swirl-inline-status.entry.e8fc6b19.js} +1 -1
- package/dist/{swirl-lightbox.entry.dd2b2be6.js → swirl-lightbox.entry.84698b29.js} +1 -1
- package/dist/{swirl-link.entry.f08d807c.js → swirl-link.entry.48145cef.js} +1 -1
- package/dist/{swirl-list.entry.99310b9a.js → swirl-list.entry.f27d3abd.js} +1 -1
- package/dist/{swirl-menu-item.entry.8fd4c793.js → swirl-menu-item.entry.c3032012.js} +1 -1
- package/dist/{swirl-menu.entry.67a17c0e.js → swirl-menu.entry.02a52ce7.js} +1 -1
- package/dist/{swirl-modal.entry.e87f4b7a.js → swirl-modal.entry.4a38e78c.js} +1 -1
- package/dist/{swirl-option-list-section.entry.95b44307.js → swirl-option-list-section.entry.4754a170.js} +1 -1
- package/dist/swirl-option-list.entry.bf1dcfc5.js +181 -0
- package/dist/{swirl-pagination.entry.a9e45681.js → swirl-pagination.entry.f4a43370.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.f40954c3.js → swirl-pdf-reader.entry.7ee57062.js} +1 -1
- package/dist/{swirl-popover.entry.a477dd1a.js → swirl-popover.entry.73419bbd.js} +1 -1
- package/dist/{swirl-progress-indicator.entry.34071ffe.js → swirl-progress-indicator.entry.c6d26bf1.js} +1 -1
- package/dist/{swirl-radio-group.entry.225f169e.js → swirl-radio-group.entry.b0958339.js} +1 -1
- package/dist/{swirl-radio.entry.e28e4b5c.js → swirl-radio.entry.7fcaa494.js} +1 -1
- package/dist/swirl-resource-list-file-item.entry.dad412d1.js +35 -0
- package/dist/{swirl-search.entry.ec676c8a.js → swirl-search.entry.ec9ea7c8.js} +1 -1
- package/dist/{swirl-select.entry.45bdb1df.js → swirl-select.entry.c4471488.js} +1 -1
- package/dist/{swirl-shell-layout.entry.287f592b.js → swirl-shell-layout.entry.be0ab35a.js} +1 -1
- package/dist/{swirl-shell-navigation-item.entry.c766206c.js → swirl-shell-navigation-item.entry.2ca0c395.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.252c46ac.js → swirl-skeleton-box.entry.d5d05496.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.7f2b04b0.js → swirl-skeleton-text.entry.269d4c2e.js} +1 -1
- package/dist/{swirl-stack.entry.db184447.js → swirl-stack.entry.d840be0d.js} +1 -1
- package/dist/{swirl-status-indicator.entry.1dab0ab5.js → swirl-status-indicator.entry.faa12f2f.js} +1 -1
- package/dist/{swirl-switch.entry.f24d3def.js → swirl-switch.entry.3db7a4fb.js} +1 -1
- package/dist/{swirl-tab-bar.entry.78c5c7f5.js → swirl-tab-bar.entry.9608e1bd.js} +1 -1
- package/dist/{swirl-tab.entry.3cb80457.js → swirl-tab.entry.58b48098.js} +1 -1
- package/dist/{swirl-table-cell.entry.7b616af9.js → swirl-table-cell.entry.bf911260.js} +1 -1
- package/dist/{swirl-table-column.entry.eeb86966.js → swirl-table-column.entry.d0cd5766.js} +1 -1
- package/dist/{swirl-table-row-group.entry.4c04788f.js → swirl-table-row-group.entry.eb821318.js} +1 -1
- package/dist/{swirl-table-row.entry.bdf26d92.js → swirl-table-row.entry.7699737a.js} +1 -1
- package/dist/{swirl-table.entry.f9562e2b.js → swirl-table.entry.175caf45.js} +1 -1
- package/dist/{swirl-tabs.entry.15ae9cf5.js → swirl-tabs.entry.7d7eee94.js} +1 -1
- package/dist/{swirl-tag.entry.040fa949.js → swirl-tag.entry.2e8347f2.js} +1 -1
- package/dist/{swirl-text-input.entry.2bf6b57c.js → swirl-text-input.entry.de03d35c.js} +1 -1
- package/dist/{swirl-text.entry.f763813d.js → swirl-text.entry.07dee3cf.js} +1 -1
- package/dist/{swirl-theme-provider.entry.b19494f7.js → swirl-theme-provider.entry.4f971b69.js} +1 -1
- package/dist/{swirl-time-input.entry.f0564af2.js → swirl-time-input.entry.e6f42fe2.js} +1 -1
- package/dist/{swirl-toast-provider.entry.0cb6a3bd.js → swirl-toast-provider.entry.9e8f6b4e.js} +1 -1
- package/dist/{swirl-toast.entry.720c6627.js → swirl-toast.entry.4333f44f.js} +1 -1
- package/dist/{swirl-tooltip.entry.ceb91a48.js → swirl-tooltip.entry.a081419f.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.33baae7a.js → swirl-tree-navigation-item.entry.eb09cded.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.e6e096a5.js → swirl-video-thumbnail.entry.3543d79a.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.93328806.js → swirl-visually-hidden.entry.0107de03.js} +1 -1
- package/dist/{wc-datepicker.entry.060797eb.js → wc-datepicker.entry.10aa69e7.js} +1 -1
- package/package.json +2 -2
- package/dist/swirl-option-list.entry.6789dc47.js +0 -1406
- package/dist/swirl-resource-list-file-item.entry.32ac0fd0.js +0 -35
|
@@ -1,1406 +0,0 @@
|
|
|
1
|
-
import { r as Be, c as le, h as At, H as ke, g as Xe } from "./index.a6af8737.js";
|
|
2
|
-
import { c as ue, q as de } from "./utils-bc84f36e.1fee9865.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "react-dom";
|
|
5
|
-
/**!
|
|
6
|
-
* Sortable 1.15.0
|
|
7
|
-
* @author RubaXa <trash@rubaxa.org>
|
|
8
|
-
* @author owenm <owen23355@gmail.com>
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
|
-
function ce(e, t) {
|
|
12
|
-
var i = Object.keys(e);
|
|
13
|
-
if (Object.getOwnPropertySymbols) {
|
|
14
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
15
|
-
t && (n = n.filter(function(o) {
|
|
16
|
-
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
17
|
-
})), i.push.apply(i, n);
|
|
18
|
-
}
|
|
19
|
-
return i;
|
|
20
|
-
}
|
|
21
|
-
function z(e) {
|
|
22
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
23
|
-
var i = arguments[t] != null ? arguments[t] : {};
|
|
24
|
-
t % 2 ? ce(Object(i), !0).forEach(function(n) {
|
|
25
|
-
Ye(e, n, i[n]);
|
|
26
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : ce(Object(i)).forEach(function(n) {
|
|
27
|
-
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
return e;
|
|
31
|
-
}
|
|
32
|
-
function Ft(e) {
|
|
33
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ft = function(t) {
|
|
34
|
-
return typeof t;
|
|
35
|
-
} : Ft = function(t) {
|
|
36
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
37
|
-
}, Ft(e);
|
|
38
|
-
}
|
|
39
|
-
function Ye(e, t, i) {
|
|
40
|
-
return t in e ? Object.defineProperty(e, t, {
|
|
41
|
-
value: i,
|
|
42
|
-
enumerable: !0,
|
|
43
|
-
configurable: !0,
|
|
44
|
-
writable: !0
|
|
45
|
-
}) : e[t] = i, e;
|
|
46
|
-
}
|
|
47
|
-
function $() {
|
|
48
|
-
return $ = Object.assign || function(e) {
|
|
49
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
50
|
-
var i = arguments[t];
|
|
51
|
-
for (var n in i)
|
|
52
|
-
Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]);
|
|
53
|
-
}
|
|
54
|
-
return e;
|
|
55
|
-
}, $.apply(this, arguments);
|
|
56
|
-
}
|
|
57
|
-
function Re(e, t) {
|
|
58
|
-
if (e == null)
|
|
59
|
-
return {};
|
|
60
|
-
var i = {}, n = Object.keys(e), o, r;
|
|
61
|
-
for (r = 0; r < n.length; r++)
|
|
62
|
-
o = n[r], !(t.indexOf(o) >= 0) && (i[o] = e[o]);
|
|
63
|
-
return i;
|
|
64
|
-
}
|
|
65
|
-
function Le(e, t) {
|
|
66
|
-
if (e == null)
|
|
67
|
-
return {};
|
|
68
|
-
var i = Re(e, t), n, o;
|
|
69
|
-
if (Object.getOwnPropertySymbols) {
|
|
70
|
-
var r = Object.getOwnPropertySymbols(e);
|
|
71
|
-
for (o = 0; o < r.length; o++)
|
|
72
|
-
n = r[o], !(t.indexOf(n) >= 0) && (!Object.prototype.propertyIsEnumerable.call(e, n) || (i[n] = e[n]));
|
|
73
|
-
}
|
|
74
|
-
return i;
|
|
75
|
-
}
|
|
76
|
-
var He = "1.15.0";
|
|
77
|
-
function U(e) {
|
|
78
|
-
if (typeof window < "u" && window.navigator)
|
|
79
|
-
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
80
|
-
}
|
|
81
|
-
var q = U(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Tt = U(/Edge/i), he = U(/firefox/i), Et = U(/safari/i) && !U(/chrome/i) && !U(/android/i), De = U(/iP(ad|od|hone)/i), Ee = U(/chrome/i) && U(/android/i), ye = {
|
|
82
|
-
capture: !1,
|
|
83
|
-
passive: !1
|
|
84
|
-
};
|
|
85
|
-
function w(e, t, i) {
|
|
86
|
-
e.addEventListener(t, i, !q && ye);
|
|
87
|
-
}
|
|
88
|
-
function b(e, t, i) {
|
|
89
|
-
e.removeEventListener(t, i, !q && ye);
|
|
90
|
-
}
|
|
91
|
-
function Rt(e, t) {
|
|
92
|
-
if (!!t) {
|
|
93
|
-
if (t[0] === ">" && (t = t.substring(1)), e)
|
|
94
|
-
try {
|
|
95
|
-
if (e.matches)
|
|
96
|
-
return e.matches(t);
|
|
97
|
-
if (e.msMatchesSelector)
|
|
98
|
-
return e.msMatchesSelector(t);
|
|
99
|
-
if (e.webkitMatchesSelector)
|
|
100
|
-
return e.webkitMatchesSelector(t);
|
|
101
|
-
} catch {
|
|
102
|
-
return !1;
|
|
103
|
-
}
|
|
104
|
-
return !1;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
function We(e) {
|
|
108
|
-
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
109
|
-
}
|
|
110
|
-
function W(e, t, i, n) {
|
|
111
|
-
if (e) {
|
|
112
|
-
i = i || document;
|
|
113
|
-
do {
|
|
114
|
-
if (t != null && (t[0] === ">" ? e.parentNode === i && Rt(e, t) : Rt(e, t)) || n && e === i)
|
|
115
|
-
return e;
|
|
116
|
-
if (e === i)
|
|
117
|
-
break;
|
|
118
|
-
} while (e = We(e));
|
|
119
|
-
}
|
|
120
|
-
return null;
|
|
121
|
-
}
|
|
122
|
-
var fe = /\s+/g;
|
|
123
|
-
function F(e, t, i) {
|
|
124
|
-
if (e && t)
|
|
125
|
-
if (e.classList)
|
|
126
|
-
e.classList[i ? "add" : "remove"](t);
|
|
127
|
-
else {
|
|
128
|
-
var n = (" " + e.className + " ").replace(fe, " ").replace(" " + t + " ", " ");
|
|
129
|
-
e.className = (n + (i ? " " + t : "")).replace(fe, " ");
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
function f(e, t, i) {
|
|
133
|
-
var n = e && e.style;
|
|
134
|
-
if (n) {
|
|
135
|
-
if (i === void 0)
|
|
136
|
-
return document.defaultView && document.defaultView.getComputedStyle ? i = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (i = e.currentStyle), t === void 0 ? i : i[t];
|
|
137
|
-
!(t in n) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), n[t] = i + (typeof i == "string" ? "" : "px");
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
function ct(e, t) {
|
|
141
|
-
var i = "";
|
|
142
|
-
if (typeof e == "string")
|
|
143
|
-
i = e;
|
|
144
|
-
else
|
|
145
|
-
do {
|
|
146
|
-
var n = f(e, "transform");
|
|
147
|
-
n && n !== "none" && (i = n + " " + i);
|
|
148
|
-
} while (!t && (e = e.parentNode));
|
|
149
|
-
var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
150
|
-
return o && new o(i);
|
|
151
|
-
}
|
|
152
|
-
function Se(e, t, i) {
|
|
153
|
-
if (e) {
|
|
154
|
-
var n = e.getElementsByTagName(t), o = 0, r = n.length;
|
|
155
|
-
if (i)
|
|
156
|
-
for (; o < r; o++)
|
|
157
|
-
i(n[o], o);
|
|
158
|
-
return n;
|
|
159
|
-
}
|
|
160
|
-
return [];
|
|
161
|
-
}
|
|
162
|
-
function G() {
|
|
163
|
-
var e = document.scrollingElement;
|
|
164
|
-
return e || document.documentElement;
|
|
165
|
-
}
|
|
166
|
-
function T(e, t, i, n, o) {
|
|
167
|
-
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
168
|
-
var r, a, s, l, u, h, c;
|
|
169
|
-
if (e !== window && e.parentNode && e !== G() ? (r = e.getBoundingClientRect(), a = r.top, s = r.left, l = r.bottom, u = r.right, h = r.height, c = r.width) : (a = 0, s = 0, l = window.innerHeight, u = window.innerWidth, h = window.innerHeight, c = window.innerWidth), (t || i) && e !== window && (o = o || e.parentNode, !q))
|
|
170
|
-
do
|
|
171
|
-
if (o && o.getBoundingClientRect && (f(o, "transform") !== "none" || i && f(o, "position") !== "static")) {
|
|
172
|
-
var m = o.getBoundingClientRect();
|
|
173
|
-
a -= m.top + parseInt(f(o, "border-top-width")), s -= m.left + parseInt(f(o, "border-left-width")), l = a + r.height, u = s + r.width;
|
|
174
|
-
break;
|
|
175
|
-
}
|
|
176
|
-
while (o = o.parentNode);
|
|
177
|
-
if (n && e !== window) {
|
|
178
|
-
var E = ct(o || e), v = E && E.a, D = E && E.d;
|
|
179
|
-
E && (a /= D, s /= v, c /= v, h /= D, l = a + h, u = s + c);
|
|
180
|
-
}
|
|
181
|
-
return {
|
|
182
|
-
top: a,
|
|
183
|
-
left: s,
|
|
184
|
-
bottom: l,
|
|
185
|
-
right: u,
|
|
186
|
-
width: c,
|
|
187
|
-
height: h
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
function ge(e, t, i) {
|
|
192
|
-
for (var n = tt(e, !0), o = T(e)[t]; n; ) {
|
|
193
|
-
var r = T(n)[i], a = void 0;
|
|
194
|
-
if (i === "top" || i === "left" ? a = o >= r : a = o <= r, !a)
|
|
195
|
-
return n;
|
|
196
|
-
if (n === G())
|
|
197
|
-
break;
|
|
198
|
-
n = tt(n, !1);
|
|
199
|
-
}
|
|
200
|
-
return !1;
|
|
201
|
-
}
|
|
202
|
-
function ht(e, t, i, n) {
|
|
203
|
-
for (var o = 0, r = 0, a = e.children; r < a.length; ) {
|
|
204
|
-
if (a[r].style.display !== "none" && a[r] !== g.ghost && (n || a[r] !== g.dragged) && W(a[r], i.draggable, e, !1)) {
|
|
205
|
-
if (o === t)
|
|
206
|
-
return a[r];
|
|
207
|
-
o++;
|
|
208
|
-
}
|
|
209
|
-
r++;
|
|
210
|
-
}
|
|
211
|
-
return null;
|
|
212
|
-
}
|
|
213
|
-
function oe(e, t) {
|
|
214
|
-
for (var i = e.lastElementChild; i && (i === g.ghost || f(i, "display") === "none" || t && !Rt(i, t)); )
|
|
215
|
-
i = i.previousElementSibling;
|
|
216
|
-
return i || null;
|
|
217
|
-
}
|
|
218
|
-
function X(e, t) {
|
|
219
|
-
var i = 0;
|
|
220
|
-
if (!e || !e.parentNode)
|
|
221
|
-
return -1;
|
|
222
|
-
for (; e = e.previousElementSibling; )
|
|
223
|
-
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== g.clone && (!t || Rt(e, t)) && i++;
|
|
224
|
-
return i;
|
|
225
|
-
}
|
|
226
|
-
function pe(e) {
|
|
227
|
-
var t = 0, i = 0, n = G();
|
|
228
|
-
if (e)
|
|
229
|
-
do {
|
|
230
|
-
var o = ct(e), r = o.a, a = o.d;
|
|
231
|
-
t += e.scrollLeft * r, i += e.scrollTop * a;
|
|
232
|
-
} while (e !== n && (e = e.parentNode));
|
|
233
|
-
return [t, i];
|
|
234
|
-
}
|
|
235
|
-
function Ge(e, t) {
|
|
236
|
-
for (var i in e)
|
|
237
|
-
if (!!e.hasOwnProperty(i)) {
|
|
238
|
-
for (var n in t)
|
|
239
|
-
if (t.hasOwnProperty(n) && t[n] === e[i][n])
|
|
240
|
-
return Number(i);
|
|
241
|
-
}
|
|
242
|
-
return -1;
|
|
243
|
-
}
|
|
244
|
-
function tt(e, t) {
|
|
245
|
-
if (!e || !e.getBoundingClientRect)
|
|
246
|
-
return G();
|
|
247
|
-
var i = e, n = !1;
|
|
248
|
-
do
|
|
249
|
-
if (i.clientWidth < i.scrollWidth || i.clientHeight < i.scrollHeight) {
|
|
250
|
-
var o = f(i);
|
|
251
|
-
if (i.clientWidth < i.scrollWidth && (o.overflowX == "auto" || o.overflowX == "scroll") || i.clientHeight < i.scrollHeight && (o.overflowY == "auto" || o.overflowY == "scroll")) {
|
|
252
|
-
if (!i.getBoundingClientRect || i === document.body)
|
|
253
|
-
return G();
|
|
254
|
-
if (n || t)
|
|
255
|
-
return i;
|
|
256
|
-
n = !0;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
while (i = i.parentNode);
|
|
260
|
-
return G();
|
|
261
|
-
}
|
|
262
|
-
function ze(e, t) {
|
|
263
|
-
if (e && t)
|
|
264
|
-
for (var i in t)
|
|
265
|
-
t.hasOwnProperty(i) && (e[i] = t[i]);
|
|
266
|
-
return e;
|
|
267
|
-
}
|
|
268
|
-
function jt(e, t) {
|
|
269
|
-
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);
|
|
270
|
-
}
|
|
271
|
-
var yt;
|
|
272
|
-
function Ie(e, t) {
|
|
273
|
-
return function() {
|
|
274
|
-
if (!yt) {
|
|
275
|
-
var i = arguments, n = this;
|
|
276
|
-
i.length === 1 ? e.call(n, i[0]) : e.apply(n, i), yt = setTimeout(function() {
|
|
277
|
-
yt = void 0;
|
|
278
|
-
}, t);
|
|
279
|
-
}
|
|
280
|
-
};
|
|
281
|
-
}
|
|
282
|
-
function je() {
|
|
283
|
-
clearTimeout(yt), yt = void 0;
|
|
284
|
-
}
|
|
285
|
-
function _e(e, t, i) {
|
|
286
|
-
e.scrollLeft += t, e.scrollTop += i;
|
|
287
|
-
}
|
|
288
|
-
function Te(e) {
|
|
289
|
-
var t = window.Polymer, i = window.jQuery || window.Zepto;
|
|
290
|
-
return t && t.dom ? t.dom(e).cloneNode(!0) : i ? i(e).clone(!0)[0] : e.cloneNode(!0);
|
|
291
|
-
}
|
|
292
|
-
var k = "Sortable" + new Date().getTime();
|
|
293
|
-
function Ve() {
|
|
294
|
-
var e = [], t;
|
|
295
|
-
return {
|
|
296
|
-
captureAnimationState: function() {
|
|
297
|
-
if (e = [], !!this.options.animation) {
|
|
298
|
-
var n = [].slice.call(this.el.children);
|
|
299
|
-
n.forEach(function(o) {
|
|
300
|
-
if (!(f(o, "display") === "none" || o === g.ghost)) {
|
|
301
|
-
e.push({
|
|
302
|
-
target: o,
|
|
303
|
-
rect: T(o)
|
|
304
|
-
});
|
|
305
|
-
var r = z({}, e[e.length - 1].rect);
|
|
306
|
-
if (o.thisAnimationDuration) {
|
|
307
|
-
var a = ct(o, !0);
|
|
308
|
-
a && (r.top -= a.f, r.left -= a.e);
|
|
309
|
-
}
|
|
310
|
-
o.fromRect = r;
|
|
311
|
-
}
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
addAnimationState: function(n) {
|
|
316
|
-
e.push(n);
|
|
317
|
-
},
|
|
318
|
-
removeAnimationState: function(n) {
|
|
319
|
-
e.splice(Ge(e, {
|
|
320
|
-
target: n
|
|
321
|
-
}), 1);
|
|
322
|
-
},
|
|
323
|
-
animateAll: function(n) {
|
|
324
|
-
var o = this;
|
|
325
|
-
if (!this.options.animation) {
|
|
326
|
-
clearTimeout(t), typeof n == "function" && n();
|
|
327
|
-
return;
|
|
328
|
-
}
|
|
329
|
-
var r = !1, a = 0;
|
|
330
|
-
e.forEach(function(s) {
|
|
331
|
-
var l = 0, u = s.target, h = u.fromRect, c = T(u), m = u.prevFromRect, E = u.prevToRect, v = s.rect, D = ct(u, !0);
|
|
332
|
-
D && (c.top -= D.f, c.left -= D.e), u.toRect = c, u.thisAnimationDuration && jt(m, c) && !jt(h, c) && (v.top - c.top) / (v.left - c.left) === (h.top - c.top) / (h.left - c.left) && (l = $e(v, m, E, o.options)), jt(c, h) || (u.prevFromRect = h, u.prevToRect = c, l || (l = o.options.animation), o.animate(u, v, c, l)), l && (r = !0, a = Math.max(a, l), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
333
|
-
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
334
|
-
}, l), u.thisAnimationDuration = l);
|
|
335
|
-
}), clearTimeout(t), r ? t = setTimeout(function() {
|
|
336
|
-
typeof n == "function" && n();
|
|
337
|
-
}, a) : typeof n == "function" && n(), e = [];
|
|
338
|
-
},
|
|
339
|
-
animate: function(n, o, r, a) {
|
|
340
|
-
if (a) {
|
|
341
|
-
f(n, "transition", ""), f(n, "transform", "");
|
|
342
|
-
var s = ct(this.el), l = s && s.a, u = s && s.d, h = (o.left - r.left) / (l || 1), c = (o.top - r.top) / (u || 1);
|
|
343
|
-
n.animatingX = !!h, n.animatingY = !!c, f(n, "transform", "translate3d(" + h + "px," + c + "px,0)"), this.forRepaintDummy = Ue(n), f(n, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), f(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
344
|
-
f(n, "transition", ""), f(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
345
|
-
}, a);
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
};
|
|
349
|
-
}
|
|
350
|
-
function Ue(e) {
|
|
351
|
-
return e.offsetWidth;
|
|
352
|
-
}
|
|
353
|
-
function $e(e, t, i, n) {
|
|
354
|
-
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)) * n.animation;
|
|
355
|
-
}
|
|
356
|
-
var st = [], Vt = {
|
|
357
|
-
initializeByDefault: !0
|
|
358
|
-
}, xt = {
|
|
359
|
-
mount: function(t) {
|
|
360
|
-
for (var i in Vt)
|
|
361
|
-
Vt.hasOwnProperty(i) && !(i in t) && (t[i] = Vt[i]);
|
|
362
|
-
st.forEach(function(n) {
|
|
363
|
-
if (n.pluginName === t.pluginName)
|
|
364
|
-
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
365
|
-
}), st.push(t);
|
|
366
|
-
},
|
|
367
|
-
pluginEvent: function(t, i, n) {
|
|
368
|
-
var o = this;
|
|
369
|
-
this.eventCanceled = !1, n.cancel = function() {
|
|
370
|
-
o.eventCanceled = !0;
|
|
371
|
-
};
|
|
372
|
-
var r = t + "Global";
|
|
373
|
-
st.forEach(function(a) {
|
|
374
|
-
!i[a.pluginName] || (i[a.pluginName][r] && i[a.pluginName][r](z({
|
|
375
|
-
sortable: i
|
|
376
|
-
}, n)), i.options[a.pluginName] && i[a.pluginName][t] && i[a.pluginName][t](z({
|
|
377
|
-
sortable: i
|
|
378
|
-
}, n)));
|
|
379
|
-
});
|
|
380
|
-
},
|
|
381
|
-
initializePlugins: function(t, i, n, o) {
|
|
382
|
-
st.forEach(function(s) {
|
|
383
|
-
var l = s.pluginName;
|
|
384
|
-
if (!(!t.options[l] && !s.initializeByDefault)) {
|
|
385
|
-
var u = new s(t, i, t.options);
|
|
386
|
-
u.sortable = t, u.options = t.options, t[l] = u, $(n, u.defaults);
|
|
387
|
-
}
|
|
388
|
-
});
|
|
389
|
-
for (var r in t.options)
|
|
390
|
-
if (!!t.options.hasOwnProperty(r)) {
|
|
391
|
-
var a = this.modifyOption(t, r, t.options[r]);
|
|
392
|
-
typeof a < "u" && (t.options[r] = a);
|
|
393
|
-
}
|
|
394
|
-
},
|
|
395
|
-
getEventProperties: function(t, i) {
|
|
396
|
-
var n = {};
|
|
397
|
-
return st.forEach(function(o) {
|
|
398
|
-
typeof o.eventProperties == "function" && $(n, o.eventProperties.call(i[o.pluginName], t));
|
|
399
|
-
}), n;
|
|
400
|
-
},
|
|
401
|
-
modifyOption: function(t, i, n) {
|
|
402
|
-
var o;
|
|
403
|
-
return st.forEach(function(r) {
|
|
404
|
-
!t[r.pluginName] || r.optionListeners && typeof r.optionListeners[i] == "function" && (o = r.optionListeners[i].call(t[r.pluginName], n));
|
|
405
|
-
}), o;
|
|
406
|
-
}
|
|
407
|
-
};
|
|
408
|
-
function qe(e) {
|
|
409
|
-
var t = e.sortable, i = e.rootEl, n = e.name, o = e.targetEl, r = e.cloneEl, a = e.toEl, s = e.fromEl, l = e.oldIndex, u = e.newIndex, h = e.oldDraggableIndex, c = e.newDraggableIndex, m = e.originalEvent, E = e.putSortable, v = e.extraEventProperties;
|
|
410
|
-
if (t = t || i && i[k], !!t) {
|
|
411
|
-
var D, Y = t.options, j = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
412
|
-
window.CustomEvent && !q && !Tt ? D = new CustomEvent(n, {
|
|
413
|
-
bubbles: !0,
|
|
414
|
-
cancelable: !0
|
|
415
|
-
}) : (D = document.createEvent("Event"), D.initEvent(n, !0, !0)), D.to = a || i, D.from = s || i, D.item = o || i, D.clone = r, D.oldIndex = l, D.newIndex = u, D.oldDraggableIndex = h, D.newDraggableIndex = c, D.originalEvent = m, D.pullMode = E ? E.lastPutMode : void 0;
|
|
416
|
-
var A = z(z({}, v), xt.getEventProperties(n, t));
|
|
417
|
-
for (var R in A)
|
|
418
|
-
D[R] = A[R];
|
|
419
|
-
i && i.dispatchEvent(D), Y[j] && Y[j].call(t, D);
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
var Ke = ["evt"], P = function(t, i) {
|
|
423
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, r = Le(n, Ke);
|
|
424
|
-
xt.pluginEvent.bind(g)(t, i, z({
|
|
425
|
-
dragEl: d,
|
|
426
|
-
parentEl: I,
|
|
427
|
-
ghostEl: p,
|
|
428
|
-
rootEl: y,
|
|
429
|
-
nextEl: at,
|
|
430
|
-
lastDownEl: Bt,
|
|
431
|
-
cloneEl: S,
|
|
432
|
-
cloneHidden: J,
|
|
433
|
-
dragStarted: bt,
|
|
434
|
-
putSortable: x,
|
|
435
|
-
activeSortable: g.active,
|
|
436
|
-
originalEvent: o,
|
|
437
|
-
oldIndex: dt,
|
|
438
|
-
oldDraggableIndex: St,
|
|
439
|
-
newIndex: B,
|
|
440
|
-
newDraggableIndex: Q,
|
|
441
|
-
hideGhostForTarget: Oe,
|
|
442
|
-
unhideGhostForTarget: Pe,
|
|
443
|
-
cloneNowHidden: function() {
|
|
444
|
-
J = !0;
|
|
445
|
-
},
|
|
446
|
-
cloneNowShown: function() {
|
|
447
|
-
J = !1;
|
|
448
|
-
},
|
|
449
|
-
dispatchSortableEvent: function(s) {
|
|
450
|
-
O({
|
|
451
|
-
sortable: i,
|
|
452
|
-
name: s,
|
|
453
|
-
originalEvent: o
|
|
454
|
-
});
|
|
455
|
-
}
|
|
456
|
-
}, r));
|
|
457
|
-
};
|
|
458
|
-
function O(e) {
|
|
459
|
-
qe(z({
|
|
460
|
-
putSortable: x,
|
|
461
|
-
cloneEl: S,
|
|
462
|
-
targetEl: d,
|
|
463
|
-
rootEl: y,
|
|
464
|
-
oldIndex: dt,
|
|
465
|
-
oldDraggableIndex: St,
|
|
466
|
-
newIndex: B,
|
|
467
|
-
newDraggableIndex: Q
|
|
468
|
-
}, e));
|
|
469
|
-
}
|
|
470
|
-
var d, I, p, y, at, Bt, S, J, dt, B, St, Q, Ot, x, ut = !1, Lt = !1, Ht = [], ot, L, Ut, $t, me, ve, bt, lt, It, _t = !1, Pt = !1, kt, C, qt = [], te = !1, Wt = [], zt = typeof document < "u", Nt = De, be = Tt || q ? "cssFloat" : "float", Ze = zt && !Ee && !De && "draggable" in document.createElement("div"), xe = function() {
|
|
471
|
-
if (!!zt) {
|
|
472
|
-
if (q)
|
|
473
|
-
return !1;
|
|
474
|
-
var e = document.createElement("x");
|
|
475
|
-
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
476
|
-
}
|
|
477
|
-
}(), Ce = function(t, i) {
|
|
478
|
-
var n = f(t), o = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), r = ht(t, 0, i), a = ht(t, 1, i), s = r && f(r), l = a && f(a), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + T(r).width, h = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + T(a).width;
|
|
479
|
-
if (n.display === "flex")
|
|
480
|
-
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
481
|
-
if (n.display === "grid")
|
|
482
|
-
return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
483
|
-
if (r && s.float && s.float !== "none") {
|
|
484
|
-
var c = s.float === "left" ? "left" : "right";
|
|
485
|
-
return a && (l.clear === "both" || l.clear === c) ? "vertical" : "horizontal";
|
|
486
|
-
}
|
|
487
|
-
return r && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= o && n[be] === "none" || a && n[be] === "none" && u + h > o) ? "vertical" : "horizontal";
|
|
488
|
-
}, Qe = function(t, i, n) {
|
|
489
|
-
var o = n ? t.left : t.top, r = n ? t.right : t.bottom, a = n ? t.width : t.height, s = n ? i.left : i.top, l = n ? i.right : i.bottom, u = n ? i.width : i.height;
|
|
490
|
-
return o === s || r === l || o + a / 2 === s + u / 2;
|
|
491
|
-
}, Je = function(t, i) {
|
|
492
|
-
var n;
|
|
493
|
-
return Ht.some(function(o) {
|
|
494
|
-
var r = o[k].options.emptyInsertThreshold;
|
|
495
|
-
if (!(!r || oe(o))) {
|
|
496
|
-
var a = T(o), s = t >= a.left - r && t <= a.right + r, l = i >= a.top - r && i <= a.bottom + r;
|
|
497
|
-
if (s && l)
|
|
498
|
-
return n = o;
|
|
499
|
-
}
|
|
500
|
-
}), n;
|
|
501
|
-
}, Ae = function(t) {
|
|
502
|
-
function i(r, a) {
|
|
503
|
-
return function(s, l, u, h) {
|
|
504
|
-
var c = s.options.group.name && l.options.group.name && s.options.group.name === l.options.group.name;
|
|
505
|
-
if (r == null && (a || c))
|
|
506
|
-
return !0;
|
|
507
|
-
if (r == null || r === !1)
|
|
508
|
-
return !1;
|
|
509
|
-
if (a && r === "clone")
|
|
510
|
-
return r;
|
|
511
|
-
if (typeof r == "function")
|
|
512
|
-
return i(r(s, l, u, h), a)(s, l, u, h);
|
|
513
|
-
var m = (a ? s : l).options.group.name;
|
|
514
|
-
return r === !0 || typeof r == "string" && r === m || r.join && r.indexOf(m) > -1;
|
|
515
|
-
};
|
|
516
|
-
}
|
|
517
|
-
var n = {}, o = t.group;
|
|
518
|
-
(!o || Ft(o) != "object") && (o = {
|
|
519
|
-
name: o
|
|
520
|
-
}), n.name = o.name, n.checkPull = i(o.pull, !0), n.checkPut = i(o.put), n.revertClone = o.revertClone, t.group = n;
|
|
521
|
-
}, Oe = function() {
|
|
522
|
-
!xe && p && f(p, "display", "none");
|
|
523
|
-
}, Pe = function() {
|
|
524
|
-
!xe && p && f(p, "display", "");
|
|
525
|
-
};
|
|
526
|
-
zt && !Ee && document.addEventListener("click", function(e) {
|
|
527
|
-
if (Lt)
|
|
528
|
-
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Lt = !1, !1;
|
|
529
|
-
}, !0);
|
|
530
|
-
var rt = function(t) {
|
|
531
|
-
if (d) {
|
|
532
|
-
t = t.touches ? t.touches[0] : t;
|
|
533
|
-
var i = Je(t.clientX, t.clientY);
|
|
534
|
-
if (i) {
|
|
535
|
-
var n = {};
|
|
536
|
-
for (var o in t)
|
|
537
|
-
t.hasOwnProperty(o) && (n[o] = t[o]);
|
|
538
|
-
n.target = n.rootEl = i, n.preventDefault = void 0, n.stopPropagation = void 0, i[k]._onDragOver(n);
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
}, ti = function(t) {
|
|
542
|
-
d && d.parentNode[k]._isOutsideThisEl(t.target);
|
|
543
|
-
};
|
|
544
|
-
function g(e, t) {
|
|
545
|
-
if (!(e && e.nodeType && e.nodeType === 1))
|
|
546
|
-
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
|
|
547
|
-
this.el = e, this.options = t = $({}, t), e[k] = this;
|
|
548
|
-
var i = {
|
|
549
|
-
group: null,
|
|
550
|
-
sort: !0,
|
|
551
|
-
disabled: !1,
|
|
552
|
-
store: null,
|
|
553
|
-
handle: null,
|
|
554
|
-
draggable: /^[uo]l$/i.test(e.nodeName) ? ">li" : ">*",
|
|
555
|
-
swapThreshold: 1,
|
|
556
|
-
invertSwap: !1,
|
|
557
|
-
invertedSwapThreshold: null,
|
|
558
|
-
removeCloneOnHide: !0,
|
|
559
|
-
direction: function() {
|
|
560
|
-
return Ce(e, this.options);
|
|
561
|
-
},
|
|
562
|
-
ghostClass: "sortable-ghost",
|
|
563
|
-
chosenClass: "sortable-chosen",
|
|
564
|
-
dragClass: "sortable-drag",
|
|
565
|
-
ignore: "a, img",
|
|
566
|
-
filter: null,
|
|
567
|
-
preventOnFilter: !0,
|
|
568
|
-
animation: 0,
|
|
569
|
-
easing: null,
|
|
570
|
-
setData: function(a, s) {
|
|
571
|
-
a.setData("Text", s.textContent);
|
|
572
|
-
},
|
|
573
|
-
dropBubble: !1,
|
|
574
|
-
dragoverBubble: !1,
|
|
575
|
-
dataIdAttr: "data-id",
|
|
576
|
-
delay: 0,
|
|
577
|
-
delayOnTouchOnly: !1,
|
|
578
|
-
touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
|
|
579
|
-
forceFallback: !1,
|
|
580
|
-
fallbackClass: "sortable-fallback",
|
|
581
|
-
fallbackOnBody: !1,
|
|
582
|
-
fallbackTolerance: 0,
|
|
583
|
-
fallbackOffset: {
|
|
584
|
-
x: 0,
|
|
585
|
-
y: 0
|
|
586
|
-
},
|
|
587
|
-
supportPointer: g.supportPointer !== !1 && "PointerEvent" in window && !Et,
|
|
588
|
-
emptyInsertThreshold: 5
|
|
589
|
-
};
|
|
590
|
-
xt.initializePlugins(this, e, i);
|
|
591
|
-
for (var n in i)
|
|
592
|
-
!(n in t) && (t[n] = i[n]);
|
|
593
|
-
Ae(t);
|
|
594
|
-
for (var o in this)
|
|
595
|
-
o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
|
|
596
|
-
this.nativeDraggable = t.forceFallback ? !1 : Ze, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? w(e, "pointerdown", this._onTapStart) : (w(e, "mousedown", this._onTapStart), w(e, "touchstart", this._onTapStart)), this.nativeDraggable && (w(e, "dragover", this), w(e, "dragenter", this)), Ht.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), $(this, Ve());
|
|
597
|
-
}
|
|
598
|
-
g.prototype = {
|
|
599
|
-
constructor: g,
|
|
600
|
-
_isOutsideThisEl: function(t) {
|
|
601
|
-
!this.el.contains(t) && t !== this.el && (lt = null);
|
|
602
|
-
},
|
|
603
|
-
_getDirection: function(t, i) {
|
|
604
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, i, d) : this.options.direction;
|
|
605
|
-
},
|
|
606
|
-
_onTapStart: function(t) {
|
|
607
|
-
if (!!t.cancelable) {
|
|
608
|
-
var i = this, n = this.el, o = this.options, r = o.preventOnFilter, a = t.type, s = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, l = (s || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || l, h = o.filter;
|
|
609
|
-
if (li(n), !d && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Et && l && l.tagName.toUpperCase() === "SELECT") && (l = W(l, o.draggable, n, !1), !(l && l.animated) && Bt !== l)) {
|
|
610
|
-
if (dt = X(l), St = X(l, o.draggable), typeof h == "function") {
|
|
611
|
-
if (h.call(this, t, l, this)) {
|
|
612
|
-
O({
|
|
613
|
-
sortable: i,
|
|
614
|
-
rootEl: u,
|
|
615
|
-
name: "filter",
|
|
616
|
-
targetEl: l,
|
|
617
|
-
toEl: n,
|
|
618
|
-
fromEl: n
|
|
619
|
-
}), P("filter", i, {
|
|
620
|
-
evt: t
|
|
621
|
-
}), r && t.cancelable && t.preventDefault();
|
|
622
|
-
return;
|
|
623
|
-
}
|
|
624
|
-
} else if (h && (h = h.split(",").some(function(c) {
|
|
625
|
-
if (c = W(u, c.trim(), n, !1), c)
|
|
626
|
-
return O({
|
|
627
|
-
sortable: i,
|
|
628
|
-
rootEl: c,
|
|
629
|
-
name: "filter",
|
|
630
|
-
targetEl: l,
|
|
631
|
-
fromEl: n,
|
|
632
|
-
toEl: n
|
|
633
|
-
}), P("filter", i, {
|
|
634
|
-
evt: t
|
|
635
|
-
}), !0;
|
|
636
|
-
}), h)) {
|
|
637
|
-
r && t.cancelable && t.preventDefault();
|
|
638
|
-
return;
|
|
639
|
-
}
|
|
640
|
-
o.handle && !W(u, o.handle, n, !1) || this._prepareDragStart(t, s, l);
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
},
|
|
644
|
-
_prepareDragStart: function(t, i, n) {
|
|
645
|
-
var o = this, r = o.el, a = o.options, s = r.ownerDocument, l;
|
|
646
|
-
if (n && !d && n.parentNode === r) {
|
|
647
|
-
var u = T(n);
|
|
648
|
-
if (y = r, d = n, I = d.parentNode, at = d.nextSibling, Bt = n, Ot = a.group, g.dragged = d, ot = {
|
|
649
|
-
target: d,
|
|
650
|
-
clientX: (i || t).clientX,
|
|
651
|
-
clientY: (i || t).clientY
|
|
652
|
-
}, me = ot.clientX - u.left, ve = ot.clientY - u.top, this._lastX = (i || t).clientX, this._lastY = (i || t).clientY, d.style["will-change"] = "all", l = function() {
|
|
653
|
-
if (P("delayEnded", o, {
|
|
654
|
-
evt: t
|
|
655
|
-
}), g.eventCanceled) {
|
|
656
|
-
o._onDrop();
|
|
657
|
-
return;
|
|
658
|
-
}
|
|
659
|
-
o._disableDelayedDragEvents(), !he && o.nativeDraggable && (d.draggable = !0), o._triggerDragStart(t, i), O({
|
|
660
|
-
sortable: o,
|
|
661
|
-
name: "choose",
|
|
662
|
-
originalEvent: t
|
|
663
|
-
}), F(d, a.chosenClass, !0);
|
|
664
|
-
}, a.ignore.split(",").forEach(function(h) {
|
|
665
|
-
Se(d, h.trim(), Kt);
|
|
666
|
-
}), w(s, "dragover", rt), w(s, "mousemove", rt), w(s, "touchmove", rt), w(s, "mouseup", o._onDrop), w(s, "touchend", o._onDrop), w(s, "touchcancel", o._onDrop), he && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), P("delayStart", this, {
|
|
667
|
-
evt: t
|
|
668
|
-
}), a.delay && (!a.delayOnTouchOnly || i) && (!this.nativeDraggable || !(Tt || q))) {
|
|
669
|
-
if (g.eventCanceled) {
|
|
670
|
-
this._onDrop();
|
|
671
|
-
return;
|
|
672
|
-
}
|
|
673
|
-
w(s, "mouseup", o._disableDelayedDrag), w(s, "touchend", o._disableDelayedDrag), w(s, "touchcancel", o._disableDelayedDrag), w(s, "mousemove", o._delayedDragTouchMoveHandler), w(s, "touchmove", o._delayedDragTouchMoveHandler), a.supportPointer && w(s, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(l, a.delay);
|
|
674
|
-
} else
|
|
675
|
-
l();
|
|
676
|
-
}
|
|
677
|
-
},
|
|
678
|
-
_delayedDragTouchMoveHandler: function(t) {
|
|
679
|
-
var i = t.touches ? t.touches[0] : t;
|
|
680
|
-
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();
|
|
681
|
-
},
|
|
682
|
-
_disableDelayedDrag: function() {
|
|
683
|
-
d && Kt(d), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
684
|
-
},
|
|
685
|
-
_disableDelayedDragEvents: function() {
|
|
686
|
-
var t = this.el.ownerDocument;
|
|
687
|
-
b(t, "mouseup", this._disableDelayedDrag), b(t, "touchend", this._disableDelayedDrag), b(t, "touchcancel", this._disableDelayedDrag), b(t, "mousemove", this._delayedDragTouchMoveHandler), b(t, "touchmove", this._delayedDragTouchMoveHandler), b(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
688
|
-
},
|
|
689
|
-
_triggerDragStart: function(t, i) {
|
|
690
|
-
i = i || t.pointerType == "touch" && t, !this.nativeDraggable || i ? this.options.supportPointer ? w(document, "pointermove", this._onTouchMove) : i ? w(document, "touchmove", this._onTouchMove) : w(document, "mousemove", this._onTouchMove) : (w(d, "dragend", this), w(y, "dragstart", this._onDragStart));
|
|
691
|
-
try {
|
|
692
|
-
document.selection ? Xt(function() {
|
|
693
|
-
document.selection.empty();
|
|
694
|
-
}) : window.getSelection().removeAllRanges();
|
|
695
|
-
} catch {
|
|
696
|
-
}
|
|
697
|
-
},
|
|
698
|
-
_dragStarted: function(t, i) {
|
|
699
|
-
if (ut = !1, y && d) {
|
|
700
|
-
P("dragStarted", this, {
|
|
701
|
-
evt: i
|
|
702
|
-
}), this.nativeDraggable && w(document, "dragover", ti);
|
|
703
|
-
var n = this.options;
|
|
704
|
-
!t && F(d, n.dragClass, !1), F(d, n.ghostClass, !0), g.active = this, t && this._appendGhost(), O({
|
|
705
|
-
sortable: this,
|
|
706
|
-
name: "start",
|
|
707
|
-
originalEvent: i
|
|
708
|
-
});
|
|
709
|
-
} else
|
|
710
|
-
this._nulling();
|
|
711
|
-
},
|
|
712
|
-
_emulateDragOver: function() {
|
|
713
|
-
if (L) {
|
|
714
|
-
this._lastX = L.clientX, this._lastY = L.clientY, Oe();
|
|
715
|
-
for (var t = document.elementFromPoint(L.clientX, L.clientY), i = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(L.clientX, L.clientY), t !== i); )
|
|
716
|
-
i = t;
|
|
717
|
-
if (d.parentNode[k]._isOutsideThisEl(t), i)
|
|
718
|
-
do {
|
|
719
|
-
if (i[k]) {
|
|
720
|
-
var n = void 0;
|
|
721
|
-
if (n = i[k]._onDragOver({
|
|
722
|
-
clientX: L.clientX,
|
|
723
|
-
clientY: L.clientY,
|
|
724
|
-
target: t,
|
|
725
|
-
rootEl: i
|
|
726
|
-
}), n && !this.options.dragoverBubble)
|
|
727
|
-
break;
|
|
728
|
-
}
|
|
729
|
-
t = i;
|
|
730
|
-
} while (i = i.parentNode);
|
|
731
|
-
Pe();
|
|
732
|
-
}
|
|
733
|
-
},
|
|
734
|
-
_onTouchMove: function(t) {
|
|
735
|
-
if (ot) {
|
|
736
|
-
var i = this.options, n = i.fallbackTolerance, o = i.fallbackOffset, r = t.touches ? t.touches[0] : t, a = p && ct(p, !0), s = p && a && a.a, l = p && a && a.d, u = Nt && C && pe(C), h = (r.clientX - ot.clientX + o.x) / (s || 1) + (u ? u[0] - qt[0] : 0) / (s || 1), c = (r.clientY - ot.clientY + o.y) / (l || 1) + (u ? u[1] - qt[1] : 0) / (l || 1);
|
|
737
|
-
if (!g.active && !ut) {
|
|
738
|
-
if (n && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < n)
|
|
739
|
-
return;
|
|
740
|
-
this._onDragStart(t, !0);
|
|
741
|
-
}
|
|
742
|
-
if (p) {
|
|
743
|
-
a ? (a.e += h - (Ut || 0), a.f += c - ($t || 0)) : a = {
|
|
744
|
-
a: 1,
|
|
745
|
-
b: 0,
|
|
746
|
-
c: 0,
|
|
747
|
-
d: 1,
|
|
748
|
-
e: h,
|
|
749
|
-
f: c
|
|
750
|
-
};
|
|
751
|
-
var m = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
752
|
-
f(p, "webkitTransform", m), f(p, "mozTransform", m), f(p, "msTransform", m), f(p, "transform", m), Ut = h, $t = c, L = r;
|
|
753
|
-
}
|
|
754
|
-
t.cancelable && t.preventDefault();
|
|
755
|
-
}
|
|
756
|
-
},
|
|
757
|
-
_appendGhost: function() {
|
|
758
|
-
if (!p) {
|
|
759
|
-
var t = this.options.fallbackOnBody ? document.body : y, i = T(d, !0, Nt, !0, t), n = this.options;
|
|
760
|
-
if (Nt) {
|
|
761
|
-
for (C = t; f(C, "position") === "static" && f(C, "transform") === "none" && C !== document; )
|
|
762
|
-
C = C.parentNode;
|
|
763
|
-
C !== document.body && C !== document.documentElement ? (C === document && (C = G()), i.top += C.scrollTop, i.left += C.scrollLeft) : C = G(), qt = pe(C);
|
|
764
|
-
}
|
|
765
|
-
p = d.cloneNode(!0), F(p, n.ghostClass, !1), F(p, n.fallbackClass, !0), F(p, n.dragClass, !0), f(p, "transition", ""), f(p, "transform", ""), f(p, "box-sizing", "border-box"), f(p, "margin", 0), f(p, "top", i.top), f(p, "left", i.left), f(p, "width", i.width), f(p, "height", i.height), f(p, "opacity", "0.8"), f(p, "position", Nt ? "absolute" : "fixed"), f(p, "zIndex", "100000"), f(p, "pointerEvents", "none"), g.ghost = p, t.appendChild(p), f(p, "transform-origin", me / parseInt(p.style.width) * 100 + "% " + ve / parseInt(p.style.height) * 100 + "%");
|
|
766
|
-
}
|
|
767
|
-
},
|
|
768
|
-
_onDragStart: function(t, i) {
|
|
769
|
-
var n = this, o = t.dataTransfer, r = n.options;
|
|
770
|
-
if (P("dragStart", this, {
|
|
771
|
-
evt: t
|
|
772
|
-
}), g.eventCanceled) {
|
|
773
|
-
this._onDrop();
|
|
774
|
-
return;
|
|
775
|
-
}
|
|
776
|
-
P("setupClone", this), g.eventCanceled || (S = Te(d), S.removeAttribute("id"), S.draggable = !1, S.style["will-change"] = "", this._hideClone(), F(S, this.options.chosenClass, !1), g.clone = S), n.cloneId = Xt(function() {
|
|
777
|
-
P("clone", n), !g.eventCanceled && (n.options.removeCloneOnHide || y.insertBefore(S, d), n._hideClone(), O({
|
|
778
|
-
sortable: n,
|
|
779
|
-
name: "clone"
|
|
780
|
-
}));
|
|
781
|
-
}), !i && F(d, r.dragClass, !0), i ? (Lt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (b(document, "mouseup", n._onDrop), b(document, "touchend", n._onDrop), b(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(n, o, d)), w(document, "drop", n), f(d, "transform", "translateZ(0)")), ut = !0, n._dragStartId = Xt(n._dragStarted.bind(n, i, t)), w(document, "selectstart", n), bt = !0, Et && f(document.body, "user-select", "none");
|
|
782
|
-
},
|
|
783
|
-
_onDragOver: function(t) {
|
|
784
|
-
var i = this.el, n = t.target, o, r, a, s = this.options, l = s.group, u = g.active, h = Ot === l, c = s.sort, m = x || u, E, v = this, D = !1;
|
|
785
|
-
if (te)
|
|
786
|
-
return;
|
|
787
|
-
function Y(vt, Me) {
|
|
788
|
-
P(vt, v, z({
|
|
789
|
-
evt: t,
|
|
790
|
-
isOwner: h,
|
|
791
|
-
axis: E ? "vertical" : "horizontal",
|
|
792
|
-
revert: a,
|
|
793
|
-
dragRect: o,
|
|
794
|
-
targetRect: r,
|
|
795
|
-
canSort: c,
|
|
796
|
-
fromSortable: m,
|
|
797
|
-
target: n,
|
|
798
|
-
completed: A,
|
|
799
|
-
onMove: function(se, Fe) {
|
|
800
|
-
return Mt(y, i, d, o, se, T(se), t, Fe);
|
|
801
|
-
},
|
|
802
|
-
changed: R
|
|
803
|
-
}, Me));
|
|
804
|
-
}
|
|
805
|
-
function j() {
|
|
806
|
-
Y("dragOverAnimationCapture"), v.captureAnimationState(), v !== m && m.captureAnimationState();
|
|
807
|
-
}
|
|
808
|
-
function A(vt) {
|
|
809
|
-
return Y("dragOverCompleted", {
|
|
810
|
-
insertion: vt
|
|
811
|
-
}), vt && (h ? u._hideClone() : u._showClone(v), v !== m && (F(d, x ? x.options.ghostClass : u.options.ghostClass, !1), F(d, s.ghostClass, !0)), x !== v && v !== g.active ? x = v : v === g.active && x && (x = null), m === v && (v._ignoreWhileAnimating = n), v.animateAll(function() {
|
|
812
|
-
Y("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
|
|
813
|
-
}), v !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (n === d && !d.animated || n === i && !n.animated) && (lt = null), !s.dragoverBubble && !t.rootEl && n !== document && (d.parentNode[k]._isOutsideThisEl(t.target), !vt && rt(t)), !s.dragoverBubble && t.stopPropagation && t.stopPropagation(), D = !0;
|
|
814
|
-
}
|
|
815
|
-
function R() {
|
|
816
|
-
B = X(d), Q = X(d, s.draggable), O({
|
|
817
|
-
sortable: v,
|
|
818
|
-
name: "change",
|
|
819
|
-
toEl: i,
|
|
820
|
-
newIndex: B,
|
|
821
|
-
newDraggableIndex: Q,
|
|
822
|
-
originalEvent: t
|
|
823
|
-
});
|
|
824
|
-
}
|
|
825
|
-
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = W(n, s.draggable, i, !0), Y("dragOver"), g.eventCanceled)
|
|
826
|
-
return D;
|
|
827
|
-
if (d.contains(t.target) || n.animated && n.animatingX && n.animatingY || v._ignoreWhileAnimating === n)
|
|
828
|
-
return A(!1);
|
|
829
|
-
if (Lt = !1, u && !s.disabled && (h ? c || (a = I !== y) : x === this || (this.lastPutMode = Ot.checkPull(this, u, d, t)) && l.checkPut(this, u, d, t))) {
|
|
830
|
-
if (E = this._getDirection(t, n) === "vertical", o = T(d), Y("dragOverValid"), g.eventCanceled)
|
|
831
|
-
return D;
|
|
832
|
-
if (a)
|
|
833
|
-
return I = y, j(), this._hideClone(), Y("revert"), g.eventCanceled || (at ? y.insertBefore(d, at) : y.appendChild(d)), A(!0);
|
|
834
|
-
var N = oe(i, s.draggable);
|
|
835
|
-
if (!N || oi(t, E, this) && !N.animated) {
|
|
836
|
-
if (N === d)
|
|
837
|
-
return A(!1);
|
|
838
|
-
if (N && i === t.target && (n = N), n && (r = T(n)), Mt(y, i, d, o, n, r, t, !!n) !== !1)
|
|
839
|
-
return j(), N && N.nextSibling ? i.insertBefore(d, N.nextSibling) : i.appendChild(d), I = i, R(), A(!0);
|
|
840
|
-
} else if (N && ni(t, E, this)) {
|
|
841
|
-
var et = ht(i, 0, s, !0);
|
|
842
|
-
if (et === d)
|
|
843
|
-
return A(!1);
|
|
844
|
-
if (n = et, r = T(n), Mt(y, i, d, o, n, r, t, !1) !== !1)
|
|
845
|
-
return j(), i.insertBefore(d, et), I = i, R(), A(!0);
|
|
846
|
-
} else if (n.parentNode === i) {
|
|
847
|
-
r = T(n);
|
|
848
|
-
var H = 0, it, ft = d.parentNode !== i, M = !Qe(d.animated && d.toRect || o, n.animated && n.toRect || r, E), gt = E ? "top" : "left", K = ge(n, "top", "top") || ge(d, "top", "top"), pt = K ? K.scrollTop : void 0;
|
|
849
|
-
lt !== n && (it = r[gt], _t = !1, Pt = !M && s.invertSwap || ft), H = ri(t, n, r, E, M ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, Pt, lt === n);
|
|
850
|
-
var V;
|
|
851
|
-
if (H !== 0) {
|
|
852
|
-
var nt = X(d);
|
|
853
|
-
do
|
|
854
|
-
nt -= H, V = I.children[nt];
|
|
855
|
-
while (V && (f(V, "display") === "none" || V === p));
|
|
856
|
-
}
|
|
857
|
-
if (H === 0 || V === n)
|
|
858
|
-
return A(!1);
|
|
859
|
-
lt = n, It = H;
|
|
860
|
-
var mt = n.nextElementSibling, Z = !1;
|
|
861
|
-
Z = H === 1;
|
|
862
|
-
var Ct = Mt(y, i, d, o, n, r, t, Z);
|
|
863
|
-
if (Ct !== !1)
|
|
864
|
-
return (Ct === 1 || Ct === -1) && (Z = Ct === 1), te = !0, setTimeout(ii, 30), j(), Z && !mt ? i.appendChild(d) : n.parentNode.insertBefore(d, Z ? mt : n), K && _e(K, 0, pt - K.scrollTop), I = d.parentNode, it !== void 0 && !Pt && (kt = Math.abs(it - T(n)[gt])), R(), A(!0);
|
|
865
|
-
}
|
|
866
|
-
if (i.contains(d))
|
|
867
|
-
return A(!1);
|
|
868
|
-
}
|
|
869
|
-
return !1;
|
|
870
|
-
},
|
|
871
|
-
_ignoreWhileAnimating: null,
|
|
872
|
-
_offMoveEvents: function() {
|
|
873
|
-
b(document, "mousemove", this._onTouchMove), b(document, "touchmove", this._onTouchMove), b(document, "pointermove", this._onTouchMove), b(document, "dragover", rt), b(document, "mousemove", rt), b(document, "touchmove", rt);
|
|
874
|
-
},
|
|
875
|
-
_offUpEvents: function() {
|
|
876
|
-
var t = this.el.ownerDocument;
|
|
877
|
-
b(t, "mouseup", this._onDrop), b(t, "touchend", this._onDrop), b(t, "pointerup", this._onDrop), b(t, "touchcancel", this._onDrop), b(document, "selectstart", this);
|
|
878
|
-
},
|
|
879
|
-
_onDrop: function(t) {
|
|
880
|
-
var i = this.el, n = this.options;
|
|
881
|
-
if (B = X(d), Q = X(d, n.draggable), P("drop", this, {
|
|
882
|
-
evt: t
|
|
883
|
-
}), I = d && d.parentNode, B = X(d), Q = X(d, n.draggable), g.eventCanceled) {
|
|
884
|
-
this._nulling();
|
|
885
|
-
return;
|
|
886
|
-
}
|
|
887
|
-
ut = !1, Pt = !1, _t = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ee(this.cloneId), ee(this._dragStartId), this.nativeDraggable && (b(document, "drop", this), b(i, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Et && f(document.body, "user-select", ""), f(d, "transform", ""), t && (bt && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), p && p.parentNode && p.parentNode.removeChild(p), (y === I || x && x.lastPutMode !== "clone") && S && S.parentNode && S.parentNode.removeChild(S), d && (this.nativeDraggable && b(d, "dragend", this), Kt(d), d.style["will-change"] = "", bt && !ut && F(d, x ? x.options.ghostClass : this.options.ghostClass, !1), F(d, this.options.chosenClass, !1), O({
|
|
888
|
-
sortable: this,
|
|
889
|
-
name: "unchoose",
|
|
890
|
-
toEl: I,
|
|
891
|
-
newIndex: null,
|
|
892
|
-
newDraggableIndex: null,
|
|
893
|
-
originalEvent: t
|
|
894
|
-
}), y !== I ? (B >= 0 && (O({
|
|
895
|
-
rootEl: I,
|
|
896
|
-
name: "add",
|
|
897
|
-
toEl: I,
|
|
898
|
-
fromEl: y,
|
|
899
|
-
originalEvent: t
|
|
900
|
-
}), O({
|
|
901
|
-
sortable: this,
|
|
902
|
-
name: "remove",
|
|
903
|
-
toEl: I,
|
|
904
|
-
originalEvent: t
|
|
905
|
-
}), O({
|
|
906
|
-
rootEl: I,
|
|
907
|
-
name: "sort",
|
|
908
|
-
toEl: I,
|
|
909
|
-
fromEl: y,
|
|
910
|
-
originalEvent: t
|
|
911
|
-
}), O({
|
|
912
|
-
sortable: this,
|
|
913
|
-
name: "sort",
|
|
914
|
-
toEl: I,
|
|
915
|
-
originalEvent: t
|
|
916
|
-
})), x && x.save()) : B !== dt && B >= 0 && (O({
|
|
917
|
-
sortable: this,
|
|
918
|
-
name: "update",
|
|
919
|
-
toEl: I,
|
|
920
|
-
originalEvent: t
|
|
921
|
-
}), O({
|
|
922
|
-
sortable: this,
|
|
923
|
-
name: "sort",
|
|
924
|
-
toEl: I,
|
|
925
|
-
originalEvent: t
|
|
926
|
-
})), g.active && ((B == null || B === -1) && (B = dt, Q = St), O({
|
|
927
|
-
sortable: this,
|
|
928
|
-
name: "end",
|
|
929
|
-
toEl: I,
|
|
930
|
-
originalEvent: t
|
|
931
|
-
}), this.save()))), this._nulling();
|
|
932
|
-
},
|
|
933
|
-
_nulling: function() {
|
|
934
|
-
P("nulling", this), y = d = I = p = at = S = Bt = J = ot = L = bt = B = Q = dt = St = lt = It = x = Ot = g.dragged = g.ghost = g.clone = g.active = null, Wt.forEach(function(t) {
|
|
935
|
-
t.checked = !0;
|
|
936
|
-
}), Wt.length = Ut = $t = 0;
|
|
937
|
-
},
|
|
938
|
-
handleEvent: function(t) {
|
|
939
|
-
switch (t.type) {
|
|
940
|
-
case "drop":
|
|
941
|
-
case "dragend":
|
|
942
|
-
this._onDrop(t);
|
|
943
|
-
break;
|
|
944
|
-
case "dragenter":
|
|
945
|
-
case "dragover":
|
|
946
|
-
d && (this._onDragOver(t), ei(t));
|
|
947
|
-
break;
|
|
948
|
-
case "selectstart":
|
|
949
|
-
t.preventDefault();
|
|
950
|
-
break;
|
|
951
|
-
}
|
|
952
|
-
},
|
|
953
|
-
toArray: function() {
|
|
954
|
-
for (var t = [], i, n = this.el.children, o = 0, r = n.length, a = this.options; o < r; o++)
|
|
955
|
-
i = n[o], W(i, a.draggable, this.el, !1) && t.push(i.getAttribute(a.dataIdAttr) || si(i));
|
|
956
|
-
return t;
|
|
957
|
-
},
|
|
958
|
-
sort: function(t, i) {
|
|
959
|
-
var n = {}, o = this.el;
|
|
960
|
-
this.toArray().forEach(function(r, a) {
|
|
961
|
-
var s = o.children[a];
|
|
962
|
-
W(s, this.options.draggable, o, !1) && (n[r] = s);
|
|
963
|
-
}, this), i && this.captureAnimationState(), t.forEach(function(r) {
|
|
964
|
-
n[r] && (o.removeChild(n[r]), o.appendChild(n[r]));
|
|
965
|
-
}), i && this.animateAll();
|
|
966
|
-
},
|
|
967
|
-
save: function() {
|
|
968
|
-
var t = this.options.store;
|
|
969
|
-
t && t.set && t.set(this);
|
|
970
|
-
},
|
|
971
|
-
closest: function(t, i) {
|
|
972
|
-
return W(t, i || this.options.draggable, this.el, !1);
|
|
973
|
-
},
|
|
974
|
-
option: function(t, i) {
|
|
975
|
-
var n = this.options;
|
|
976
|
-
if (i === void 0)
|
|
977
|
-
return n[t];
|
|
978
|
-
var o = xt.modifyOption(this, t, i);
|
|
979
|
-
typeof o < "u" ? n[t] = o : n[t] = i, t === "group" && Ae(n);
|
|
980
|
-
},
|
|
981
|
-
destroy: function() {
|
|
982
|
-
P("destroy", this);
|
|
983
|
-
var t = this.el;
|
|
984
|
-
t[k] = null, b(t, "mousedown", this._onTapStart), b(t, "touchstart", this._onTapStart), b(t, "pointerdown", this._onTapStart), this.nativeDraggable && (b(t, "dragover", this), b(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(i) {
|
|
985
|
-
i.removeAttribute("draggable");
|
|
986
|
-
}), this._onDrop(), this._disableDelayedDragEvents(), Ht.splice(Ht.indexOf(this.el), 1), this.el = t = null;
|
|
987
|
-
},
|
|
988
|
-
_hideClone: function() {
|
|
989
|
-
if (!J) {
|
|
990
|
-
if (P("hideClone", this), g.eventCanceled)
|
|
991
|
-
return;
|
|
992
|
-
f(S, "display", "none"), this.options.removeCloneOnHide && S.parentNode && S.parentNode.removeChild(S), J = !0;
|
|
993
|
-
}
|
|
994
|
-
},
|
|
995
|
-
_showClone: function(t) {
|
|
996
|
-
if (t.lastPutMode !== "clone") {
|
|
997
|
-
this._hideClone();
|
|
998
|
-
return;
|
|
999
|
-
}
|
|
1000
|
-
if (J) {
|
|
1001
|
-
if (P("showClone", this), g.eventCanceled)
|
|
1002
|
-
return;
|
|
1003
|
-
d.parentNode == y && !this.options.group.revertClone ? y.insertBefore(S, d) : at ? y.insertBefore(S, at) : y.appendChild(S), this.options.group.revertClone && this.animate(d, S), f(S, "display", ""), J = !1;
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1006
|
-
};
|
|
1007
|
-
function ei(e) {
|
|
1008
|
-
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
1009
|
-
}
|
|
1010
|
-
function Mt(e, t, i, n, o, r, a, s) {
|
|
1011
|
-
var l, u = e[k], h = u.options.onMove, c;
|
|
1012
|
-
return window.CustomEvent && !q && !Tt ? l = new CustomEvent("move", {
|
|
1013
|
-
bubbles: !0,
|
|
1014
|
-
cancelable: !0
|
|
1015
|
-
}) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = t, l.from = e, l.dragged = i, l.draggedRect = n, l.related = o || t, l.relatedRect = r || T(t), l.willInsertAfter = s, l.originalEvent = a, e.dispatchEvent(l), h && (c = h.call(u, l, a)), c;
|
|
1016
|
-
}
|
|
1017
|
-
function Kt(e) {
|
|
1018
|
-
e.draggable = !1;
|
|
1019
|
-
}
|
|
1020
|
-
function ii() {
|
|
1021
|
-
te = !1;
|
|
1022
|
-
}
|
|
1023
|
-
function ni(e, t, i) {
|
|
1024
|
-
var n = T(ht(i.el, 0, i.options, !0)), o = 10;
|
|
1025
|
-
return t ? e.clientX < n.left - o || e.clientY < n.top && e.clientX < n.right : e.clientY < n.top - o || e.clientY < n.bottom && e.clientX < n.left;
|
|
1026
|
-
}
|
|
1027
|
-
function oi(e, t, i) {
|
|
1028
|
-
var n = T(oe(i.el, i.options.draggable)), o = 10;
|
|
1029
|
-
return t ? e.clientX > n.right + o || e.clientX <= n.right && e.clientY > n.bottom && e.clientX >= n.left : e.clientX > n.right && e.clientY > n.top || e.clientX <= n.right && e.clientY > n.bottom + o;
|
|
1030
|
-
}
|
|
1031
|
-
function ri(e, t, i, n, o, r, a, s) {
|
|
1032
|
-
var l = n ? e.clientY : e.clientX, u = n ? i.height : i.width, h = n ? i.top : i.left, c = n ? i.bottom : i.right, m = !1;
|
|
1033
|
-
if (!a) {
|
|
1034
|
-
if (s && kt < u * o) {
|
|
1035
|
-
if (!_t && (It === 1 ? l > h + u * r / 2 : l < c - u * r / 2) && (_t = !0), _t)
|
|
1036
|
-
m = !0;
|
|
1037
|
-
else if (It === 1 ? l < h + kt : l > c - kt)
|
|
1038
|
-
return -It;
|
|
1039
|
-
} else if (l > h + u * (1 - o) / 2 && l < c - u * (1 - o) / 2)
|
|
1040
|
-
return ai(t);
|
|
1041
|
-
}
|
|
1042
|
-
return m = m || a, m && (l < h + u * r / 2 || l > c - u * r / 2) ? l > h + u / 2 ? 1 : -1 : 0;
|
|
1043
|
-
}
|
|
1044
|
-
function ai(e) {
|
|
1045
|
-
return X(d) < X(e) ? 1 : -1;
|
|
1046
|
-
}
|
|
1047
|
-
function si(e) {
|
|
1048
|
-
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, i = t.length, n = 0; i--; )
|
|
1049
|
-
n += t.charCodeAt(i);
|
|
1050
|
-
return n.toString(36);
|
|
1051
|
-
}
|
|
1052
|
-
function li(e) {
|
|
1053
|
-
Wt.length = 0;
|
|
1054
|
-
for (var t = e.getElementsByTagName("input"), i = t.length; i--; ) {
|
|
1055
|
-
var n = t[i];
|
|
1056
|
-
n.checked && Wt.push(n);
|
|
1057
|
-
}
|
|
1058
|
-
}
|
|
1059
|
-
function Xt(e) {
|
|
1060
|
-
return setTimeout(e, 0);
|
|
1061
|
-
}
|
|
1062
|
-
function ee(e) {
|
|
1063
|
-
return clearTimeout(e);
|
|
1064
|
-
}
|
|
1065
|
-
zt && w(document, "touchmove", function(e) {
|
|
1066
|
-
(g.active || ut) && e.cancelable && e.preventDefault();
|
|
1067
|
-
});
|
|
1068
|
-
g.utils = {
|
|
1069
|
-
on: w,
|
|
1070
|
-
off: b,
|
|
1071
|
-
css: f,
|
|
1072
|
-
find: Se,
|
|
1073
|
-
is: function(t, i) {
|
|
1074
|
-
return !!W(t, i, t, !1);
|
|
1075
|
-
},
|
|
1076
|
-
extend: ze,
|
|
1077
|
-
throttle: Ie,
|
|
1078
|
-
closest: W,
|
|
1079
|
-
toggleClass: F,
|
|
1080
|
-
clone: Te,
|
|
1081
|
-
index: X,
|
|
1082
|
-
nextTick: Xt,
|
|
1083
|
-
cancelNextTick: ee,
|
|
1084
|
-
detectDirection: Ce,
|
|
1085
|
-
getChild: ht
|
|
1086
|
-
};
|
|
1087
|
-
g.get = function(e) {
|
|
1088
|
-
return e[k];
|
|
1089
|
-
};
|
|
1090
|
-
g.mount = function() {
|
|
1091
|
-
for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
|
|
1092
|
-
t[i] = arguments[i];
|
|
1093
|
-
t[0].constructor === Array && (t = t[0]), t.forEach(function(n) {
|
|
1094
|
-
if (!n.prototype || !n.prototype.constructor)
|
|
1095
|
-
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
|
|
1096
|
-
n.utils && (g.utils = z(z({}, g.utils), n.utils)), xt.mount(n);
|
|
1097
|
-
});
|
|
1098
|
-
};
|
|
1099
|
-
g.create = function(e, t) {
|
|
1100
|
-
return new g(e, t);
|
|
1101
|
-
};
|
|
1102
|
-
g.version = He;
|
|
1103
|
-
var _ = [], wt, ie, ne = !1, Zt, Qt, Gt, Dt;
|
|
1104
|
-
function ui() {
|
|
1105
|
-
function e() {
|
|
1106
|
-
this.defaults = {
|
|
1107
|
-
scroll: !0,
|
|
1108
|
-
forceAutoScrollFallback: !1,
|
|
1109
|
-
scrollSensitivity: 30,
|
|
1110
|
-
scrollSpeed: 10,
|
|
1111
|
-
bubbleScroll: !0
|
|
1112
|
-
};
|
|
1113
|
-
for (var t in this)
|
|
1114
|
-
t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
|
|
1115
|
-
}
|
|
1116
|
-
return e.prototype = {
|
|
1117
|
-
dragStarted: function(i) {
|
|
1118
|
-
var n = i.originalEvent;
|
|
1119
|
-
this.sortable.nativeDraggable ? w(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? w(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? w(document, "touchmove", this._handleFallbackAutoScroll) : w(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1120
|
-
},
|
|
1121
|
-
dragOverCompleted: function(i) {
|
|
1122
|
-
var n = i.originalEvent;
|
|
1123
|
-
!this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
|
|
1124
|
-
},
|
|
1125
|
-
drop: function() {
|
|
1126
|
-
this.sortable.nativeDraggable ? b(document, "dragover", this._handleAutoScroll) : (b(document, "pointermove", this._handleFallbackAutoScroll), b(document, "touchmove", this._handleFallbackAutoScroll), b(document, "mousemove", this._handleFallbackAutoScroll)), we(), Yt(), je();
|
|
1127
|
-
},
|
|
1128
|
-
nulling: function() {
|
|
1129
|
-
Gt = ie = wt = ne = Dt = Zt = Qt = null, _.length = 0;
|
|
1130
|
-
},
|
|
1131
|
-
_handleFallbackAutoScroll: function(i) {
|
|
1132
|
-
this._handleAutoScroll(i, !0);
|
|
1133
|
-
},
|
|
1134
|
-
_handleAutoScroll: function(i, n) {
|
|
1135
|
-
var o = this, r = (i.touches ? i.touches[0] : i).clientX, a = (i.touches ? i.touches[0] : i).clientY, s = document.elementFromPoint(r, a);
|
|
1136
|
-
if (Gt = i, n || this.options.forceAutoScrollFallback || Tt || q || Et) {
|
|
1137
|
-
Jt(i, this.options, s, n);
|
|
1138
|
-
var l = tt(s, !0);
|
|
1139
|
-
ne && (!Dt || r !== Zt || a !== Qt) && (Dt && we(), Dt = setInterval(function() {
|
|
1140
|
-
var u = tt(document.elementFromPoint(r, a), !0);
|
|
1141
|
-
u !== l && (l = u, Yt()), Jt(i, o.options, u, n);
|
|
1142
|
-
}, 10), Zt = r, Qt = a);
|
|
1143
|
-
} else {
|
|
1144
|
-
if (!this.options.bubbleScroll || tt(s, !0) === G()) {
|
|
1145
|
-
Yt();
|
|
1146
|
-
return;
|
|
1147
|
-
}
|
|
1148
|
-
Jt(i, this.options, tt(s, !1), !1);
|
|
1149
|
-
}
|
|
1150
|
-
}
|
|
1151
|
-
}, $(e, {
|
|
1152
|
-
pluginName: "scroll",
|
|
1153
|
-
initializeByDefault: !0
|
|
1154
|
-
});
|
|
1155
|
-
}
|
|
1156
|
-
function Yt() {
|
|
1157
|
-
_.forEach(function(e) {
|
|
1158
|
-
clearInterval(e.pid);
|
|
1159
|
-
}), _ = [];
|
|
1160
|
-
}
|
|
1161
|
-
function we() {
|
|
1162
|
-
clearInterval(Dt);
|
|
1163
|
-
}
|
|
1164
|
-
var Jt = Ie(function(e, t, i, n) {
|
|
1165
|
-
if (!!t.scroll) {
|
|
1166
|
-
var o = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, a = t.scrollSensitivity, s = t.scrollSpeed, l = G(), u = !1, h;
|
|
1167
|
-
ie !== i && (ie = i, Yt(), wt = t.scroll, h = t.scrollFn, wt === !0 && (wt = tt(i, !0)));
|
|
1168
|
-
var c = 0, m = wt;
|
|
1169
|
-
do {
|
|
1170
|
-
var E = m, v = T(E), D = v.top, Y = v.bottom, j = v.left, A = v.right, R = v.width, N = v.height, et = void 0, H = void 0, it = E.scrollWidth, ft = E.scrollHeight, M = f(E), gt = E.scrollLeft, K = E.scrollTop;
|
|
1171
|
-
E === l ? (et = R < it && (M.overflowX === "auto" || M.overflowX === "scroll" || M.overflowX === "visible"), H = N < ft && (M.overflowY === "auto" || M.overflowY === "scroll" || M.overflowY === "visible")) : (et = R < it && (M.overflowX === "auto" || M.overflowX === "scroll"), H = N < ft && (M.overflowY === "auto" || M.overflowY === "scroll"));
|
|
1172
|
-
var pt = et && (Math.abs(A - o) <= a && gt + R < it) - (Math.abs(j - o) <= a && !!gt), V = H && (Math.abs(Y - r) <= a && K + N < ft) - (Math.abs(D - r) <= a && !!K);
|
|
1173
|
-
if (!_[c])
|
|
1174
|
-
for (var nt = 0; nt <= c; nt++)
|
|
1175
|
-
_[nt] || (_[nt] = {});
|
|
1176
|
-
(_[c].vx != pt || _[c].vy != V || _[c].el !== E) && (_[c].el = E, _[c].vx = pt, _[c].vy = V, clearInterval(_[c].pid), (pt != 0 || V != 0) && (u = !0, _[c].pid = setInterval(function() {
|
|
1177
|
-
n && this.layer === 0 && g.active._onTouchMove(Gt);
|
|
1178
|
-
var mt = _[this.layer].vy ? _[this.layer].vy * s : 0, Z = _[this.layer].vx ? _[this.layer].vx * s : 0;
|
|
1179
|
-
typeof h == "function" && h.call(g.dragged.parentNode[k], Z, mt, e, Gt, _[this.layer].el) !== "continue" || _e(_[this.layer].el, Z, mt);
|
|
1180
|
-
}.bind({
|
|
1181
|
-
layer: c
|
|
1182
|
-
}), 24))), c++;
|
|
1183
|
-
} while (t.bubbleScroll && m !== l && (m = tt(m, !1)));
|
|
1184
|
-
ne = u;
|
|
1185
|
-
}
|
|
1186
|
-
}, 30), Ne = function(t) {
|
|
1187
|
-
var i = t.originalEvent, n = t.putSortable, o = t.dragEl, r = t.activeSortable, a = t.dispatchSortableEvent, s = t.hideGhostForTarget, l = t.unhideGhostForTarget;
|
|
1188
|
-
if (!!i) {
|
|
1189
|
-
var u = n || r;
|
|
1190
|
-
s();
|
|
1191
|
-
var h = i.changedTouches && i.changedTouches.length ? i.changedTouches[0] : i, c = document.elementFromPoint(h.clientX, h.clientY);
|
|
1192
|
-
l(), u && !u.el.contains(c) && (a("spill"), this.onSpill({
|
|
1193
|
-
dragEl: o,
|
|
1194
|
-
putSortable: n
|
|
1195
|
-
}));
|
|
1196
|
-
}
|
|
1197
|
-
};
|
|
1198
|
-
function re() {
|
|
1199
|
-
}
|
|
1200
|
-
re.prototype = {
|
|
1201
|
-
startIndex: null,
|
|
1202
|
-
dragStart: function(t) {
|
|
1203
|
-
var i = t.oldDraggableIndex;
|
|
1204
|
-
this.startIndex = i;
|
|
1205
|
-
},
|
|
1206
|
-
onSpill: function(t) {
|
|
1207
|
-
var i = t.dragEl, n = t.putSortable;
|
|
1208
|
-
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
1209
|
-
var o = ht(this.sortable.el, this.startIndex, this.options);
|
|
1210
|
-
o ? this.sortable.el.insertBefore(i, o) : this.sortable.el.appendChild(i), this.sortable.animateAll(), n && n.animateAll();
|
|
1211
|
-
},
|
|
1212
|
-
drop: Ne
|
|
1213
|
-
};
|
|
1214
|
-
$(re, {
|
|
1215
|
-
pluginName: "revertOnSpill"
|
|
1216
|
-
});
|
|
1217
|
-
function ae() {
|
|
1218
|
-
}
|
|
1219
|
-
ae.prototype = {
|
|
1220
|
-
onSpill: function(t) {
|
|
1221
|
-
var i = t.dragEl, n = t.putSortable, o = n || this.sortable;
|
|
1222
|
-
o.captureAnimationState(), i.parentNode && i.parentNode.removeChild(i), o.animateAll();
|
|
1223
|
-
},
|
|
1224
|
-
drop: Ne
|
|
1225
|
-
};
|
|
1226
|
-
$(ae, {
|
|
1227
|
-
pluginName: "removeOnSpill"
|
|
1228
|
-
});
|
|
1229
|
-
g.mount(new ui());
|
|
1230
|
-
g.mount(ae, re);
|
|
1231
|
-
const di = ".sc-swirl-option-list-h{display:block}.sc-swirl-option-list-h *.sc-swirl-option-list{box-sizing:border-box}", ci = class {
|
|
1232
|
-
constructor(e) {
|
|
1233
|
-
Be(this, e), this.itemDrop = le(this, "itemDrop", 7), this.valueChange = le(this, "valueChange", 7), this.onFocus = async (t) => {
|
|
1234
|
-
this.listboxEl.contains(t.relatedTarget) || (await new Promise((i) => setTimeout(i)), Boolean(this.focusedItem) ? this.focusItem(this.getActiveItemIndex()) : this.focusItem(0));
|
|
1235
|
-
}, this.onClick = (t) => {
|
|
1236
|
-
t.preventDefault();
|
|
1237
|
-
const i = t.target, n = i == null ? void 0 : i.closest("swirl-option-list-item"), o = t.composedPath()[0], r = Boolean(ue(o, '[role="option"]'));
|
|
1238
|
-
if (!Boolean(n) || !r) {
|
|
1239
|
-
t.preventDefault();
|
|
1240
|
-
return;
|
|
1241
|
-
}
|
|
1242
|
-
this.selectItem(this.items.findIndex((a) => a.value === n.value));
|
|
1243
|
-
}, this.onKeyDown = (t) => {
|
|
1244
|
-
if (t.code === "ArrowDown")
|
|
1245
|
-
t.preventDefault(), Boolean(this.dragging) ? this.moveDraggedItemDown() : this.focusNextItem();
|
|
1246
|
-
else if (t.code === "ArrowUp")
|
|
1247
|
-
t.preventDefault(), Boolean(this.dragging) ? this.moveDraggedItemUp() : this.focusPreviousItem();
|
|
1248
|
-
else if (t.code === "Space" || t.code === "Enter") {
|
|
1249
|
-
const i = t.composedPath()[0];
|
|
1250
|
-
if (!Boolean(ue(i, '[role="option"]')))
|
|
1251
|
-
return;
|
|
1252
|
-
t.preventDefault(), Boolean(this.dragging) ? this.stopDrag(this.dragging) : this.selectFocusedItem();
|
|
1253
|
-
} else
|
|
1254
|
-
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();
|
|
1255
|
-
}, this.toggleDrag = (t) => {
|
|
1256
|
-
const i = t.detail;
|
|
1257
|
-
Boolean(this.dragging) ? this.stopDrag(i) : this.startDrag(i);
|
|
1258
|
-
}, this.startDrag = (t) => {
|
|
1259
|
-
this.dragging = t, this.draggingStartIndex = this.getItemIndex(this.dragging), t.setAttribute("dragging", "true");
|
|
1260
|
-
const i = this.getItemIndex(this.dragging);
|
|
1261
|
-
this.focusItem(i), this.assistiveText = this.assistiveTextItemGrabbed;
|
|
1262
|
-
}, this.stopDrag = (t) => {
|
|
1263
|
-
this.dragging = void 0, t.removeAttribute("dragging");
|
|
1264
|
-
const i = this.getActiveItemIndex();
|
|
1265
|
-
this.assistiveText = `${this.assistiveTextItemMoved} ${i + 1}`, this.itemDrop.emit({ item: t, oldIndex: this.draggingStartIndex, newIndex: i }), this.draggingStartIndex = void 0;
|
|
1266
|
-
}, 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;
|
|
1267
|
-
}
|
|
1268
|
-
componentDidLoad() {
|
|
1269
|
-
this.updateItems(), this.observeSlotChanges(), this.setItemAllowDragState(), this.setItemDisabledState(), this.setItemContext(), this.syncItemsWithValue(), this.setupDragDrop();
|
|
1270
|
-
}
|
|
1271
|
-
disconnectedCallback() {
|
|
1272
|
-
var e, t;
|
|
1273
|
-
(e = this.observer) === null || e === void 0 || e.disconnect(), (t = this.sortable) === null || t === void 0 || t.destroy();
|
|
1274
|
-
}
|
|
1275
|
-
watchAllowDrag() {
|
|
1276
|
-
this.setItemAllowDragState(), this.setupDragDrop();
|
|
1277
|
-
}
|
|
1278
|
-
watchDisabled() {
|
|
1279
|
-
this.setItemDisabledState();
|
|
1280
|
-
}
|
|
1281
|
-
watchMultiSelect() {
|
|
1282
|
-
this.setItemContext();
|
|
1283
|
-
}
|
|
1284
|
-
watchValue() {
|
|
1285
|
-
this.syncItemsWithValue();
|
|
1286
|
-
}
|
|
1287
|
-
observeSlotChanges() {
|
|
1288
|
-
this.observer = new MutationObserver(() => {
|
|
1289
|
-
this.updateItems();
|
|
1290
|
-
}), this.observer.observe(this.listboxEl, { childList: !0 });
|
|
1291
|
-
}
|
|
1292
|
-
updateItems() {
|
|
1293
|
-
this.items = de(this.el, "swirl-option-list-item");
|
|
1294
|
-
}
|
|
1295
|
-
setItemDisabledState() {
|
|
1296
|
-
this.disabled && this.items.forEach((e) => e.disabled = !0);
|
|
1297
|
-
}
|
|
1298
|
-
setItemContext() {
|
|
1299
|
-
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]]));
|
|
1300
|
-
}
|
|
1301
|
-
setupDragDrop() {
|
|
1302
|
-
Boolean(this.sortable) && this.sortable.destroy(), this.allowDrag && (this.sortable = g.create(this.listboxEl, {
|
|
1303
|
-
animation: 150,
|
|
1304
|
-
draggable: "swirl-option-list-item",
|
|
1305
|
-
handle: ".option-list-item__drag-handle",
|
|
1306
|
-
onEnd: (e) => {
|
|
1307
|
-
this.itemDrop.emit({
|
|
1308
|
-
item: e.item,
|
|
1309
|
-
oldIndex: e.oldIndex,
|
|
1310
|
-
newIndex: e.newIndex
|
|
1311
|
-
});
|
|
1312
|
-
}
|
|
1313
|
-
}));
|
|
1314
|
-
}
|
|
1315
|
-
setItemAllowDragState() {
|
|
1316
|
-
if (this.allowDrag && !this.multiSelect) {
|
|
1317
|
-
console.error("[SwirlOptionList] Drag can only be allowed for multi select lists.");
|
|
1318
|
-
return;
|
|
1319
|
-
}
|
|
1320
|
-
const e = de(this.el, "swirl-option-list-section");
|
|
1321
|
-
if (this.allowDrag && e.length > 0) {
|
|
1322
|
-
console.error("[SwirlOptionList] Drag can only be allowed for lists without sections.");
|
|
1323
|
-
return;
|
|
1324
|
-
}
|
|
1325
|
-
this.allowDrag ? this.items.forEach((t) => {
|
|
1326
|
-
t.setAttribute("allow-drag", "true"), t.addEventListener("toggleDrag", this.toggleDrag);
|
|
1327
|
-
}) : this.items.forEach((t) => {
|
|
1328
|
-
t.removeAttribute("allow-drag"), t.removeEventListener("toggleDrag", this.toggleDrag);
|
|
1329
|
-
});
|
|
1330
|
-
}
|
|
1331
|
-
selectItem(e) {
|
|
1332
|
-
if (this.disabled)
|
|
1333
|
-
return;
|
|
1334
|
-
const t = this.items[e];
|
|
1335
|
-
if (t.disabled)
|
|
1336
|
-
return;
|
|
1337
|
-
const i = this.value.includes(t.value);
|
|
1338
|
-
this.multiSelect || (this.value = []), i ? this.updateValue(this.value.filter((n) => n !== t.value)) : this.updateValue([...this.value, t.value]);
|
|
1339
|
-
}
|
|
1340
|
-
updateValue(e) {
|
|
1341
|
-
this.value = e, this.valueChange.emit(this.value);
|
|
1342
|
-
}
|
|
1343
|
-
selectFocusedItem() {
|
|
1344
|
-
this.disabled || this.getActiveItemIndex() === -1 || this.selectItem(this.getActiveItemIndex());
|
|
1345
|
-
}
|
|
1346
|
-
selectAllItems() {
|
|
1347
|
-
if (this.disabled)
|
|
1348
|
-
return;
|
|
1349
|
-
this.items.every((t) => this.value.includes(t.value)) ? this.updateValue([]) : this.updateValue(this.items.map((t) => t.value));
|
|
1350
|
-
}
|
|
1351
|
-
syncItemsWithValue() {
|
|
1352
|
-
var e;
|
|
1353
|
-
(e = this.items) === null || e === void 0 || e.forEach((t) => t.selected = this.value.includes(t.value));
|
|
1354
|
-
}
|
|
1355
|
-
focusItem(e) {
|
|
1356
|
-
var t;
|
|
1357
|
-
if (this.disabled)
|
|
1358
|
-
return;
|
|
1359
|
-
this.items.forEach((n) => n.querySelector('[role="option"]').removeAttribute("tabIndex"));
|
|
1360
|
-
const i = (t = this.items[e]) === null || t === void 0 ? void 0 : t.querySelector('[role="option"]');
|
|
1361
|
-
!Boolean(i) || (i.setAttribute("tabIndex", "0"), i.focus(), this.focusedItem = i);
|
|
1362
|
-
}
|
|
1363
|
-
focusNextItem() {
|
|
1364
|
-
if (this.disabled)
|
|
1365
|
-
return;
|
|
1366
|
-
const e = this.getActiveItemIndex(), t = Math.min(e + 1, this.items.length - 1);
|
|
1367
|
-
this.focusItem(t);
|
|
1368
|
-
}
|
|
1369
|
-
focusPreviousItem() {
|
|
1370
|
-
const e = this.getActiveItemIndex(), t = Math.max(e - 1, 0);
|
|
1371
|
-
this.focusItem(t);
|
|
1372
|
-
}
|
|
1373
|
-
getActiveItemIndex() {
|
|
1374
|
-
return this.items.map((e) => e.querySelector('[role="option"]')).findIndex((e) => e === this.focusedItem);
|
|
1375
|
-
}
|
|
1376
|
-
getItemIndex(e) {
|
|
1377
|
-
return this.items.map((t) => t).findIndex((t) => t === e);
|
|
1378
|
-
}
|
|
1379
|
-
moveDraggedItemDown() {
|
|
1380
|
-
const e = this.dragging.nextElementSibling;
|
|
1381
|
-
!Boolean(e) || (e.after(this.dragging), this.updateItems(), this.listboxEl.focus(), this.assistiveText = `${this.assistiveTextItemMoving} ${this.getActiveItemIndex() + 1}`);
|
|
1382
|
-
}
|
|
1383
|
-
moveDraggedItemUp() {
|
|
1384
|
-
const e = this.dragging.previousElementSibling;
|
|
1385
|
-
!Boolean(e) || (e.before(this.dragging), this.updateItems(), this.listboxEl.focus(), this.assistiveText = `${this.assistiveTextItemMoving} ${this.getItemIndex(this.dragging) + 1}`);
|
|
1386
|
-
}
|
|
1387
|
-
render() {
|
|
1388
|
-
const e = this.multiSelect ? "true" : void 0, t = this.disabled ? -1 : 0;
|
|
1389
|
-
return At(ke, null, At("swirl-visually-hidden", { role: "alert" }, this.assistiveText), At("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 }, At("slot", null)));
|
|
1390
|
-
}
|
|
1391
|
-
get el() {
|
|
1392
|
-
return Xe(this);
|
|
1393
|
-
}
|
|
1394
|
-
static get watchers() {
|
|
1395
|
-
return {
|
|
1396
|
-
allowDrag: ["watchAllowDrag"],
|
|
1397
|
-
disabled: ["watchDisabled"],
|
|
1398
|
-
multiSelect: ["watchMultiSelect"],
|
|
1399
|
-
value: ["watchValue"]
|
|
1400
|
-
};
|
|
1401
|
-
}
|
|
1402
|
-
};
|
|
1403
|
-
ci.style = di;
|
|
1404
|
-
export {
|
|
1405
|
-
ci as swirl_option_list
|
|
1406
|
-
};
|