@getflip/swirl-components 0.295.0 → 0.296.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/components.json +268 -6
- package/dist/cjs/file-manager.cjs.entry.js +1 -1
- package/dist/cjs/index-1a9a1551.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{sortable.esm-73cf219b.js → sortable.esm-81a1c837.js} +526 -881
- package/dist/cjs/swirl-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/swirl-accordion.cjs.entry.js +1 -1
- package/dist/cjs/swirl-action-list-section.cjs.entry.js +1 -1
- package/dist/cjs/swirl-action-list_2.cjs.entry.js +1 -1
- package/dist/cjs/swirl-app-icon.cjs.entry.js +1 -1
- package/dist/cjs/swirl-app-layout_5.cjs.entry.js +4 -4
- package/dist/cjs/swirl-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/swirl-carousel-slide.cjs.entry.js +1 -1
- package/dist/cjs/swirl-color-input.cjs.entry.js +2 -2
- package/dist/cjs/swirl-components.cjs.js +1 -1
- package/dist/cjs/swirl-console-layout.cjs.entry.js +2 -2
- package/dist/cjs/swirl-date-input.cjs.entry.js +1 -1
- package/dist/cjs/swirl-date-picker_2.cjs.entry.js +2 -2
- package/dist/cjs/swirl-description-list-item.cjs.entry.js +1 -1
- package/dist/cjs/swirl-description-list.cjs.entry.js +1 -1
- package/dist/cjs/swirl-emoji-clap.cjs.entry.js +1 -1
- package/dist/cjs/swirl-emoji-happy.cjs.entry.js +1 -1
- package/dist/cjs/swirl-emoji-idea.cjs.entry.js +1 -1
- package/dist/cjs/swirl-emoji-love.cjs.entry.js +1 -1
- package/dist/cjs/swirl-emoji-sad.cjs.entry.js +1 -1
- package/dist/cjs/swirl-emoji-thumbs-up.cjs.entry.js +1 -1
- package/dist/cjs/swirl-emoji.cjs.entry.js +1 -1
- package/dist/cjs/swirl-file-uploader.cjs.entry.js +2 -2
- package/dist/cjs/swirl-file-viewer_8.cjs.entry.js +7 -7
- package/dist/cjs/swirl-icon-add-moderator.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-add-photo.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-add-reaction.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-add_6.cjs.entry.js +6 -6
- package/dist/cjs/swirl-icon-admin-panel-settings.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-ai-filled.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-ai.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-apps.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-arrow-back_5.cjs.entry.js +5 -5
- package/dist/cjs/swirl-icon-arrow-downward_2.cjs.entry.js +2 -2
- package/dist/cjs/swirl-icon-arrow-left_4.cjs.entry.js +3 -3
- package/dist/cjs/swirl-icon-arrow-right-small.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-aspect-ratio.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-attachment.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-bar-chart.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-block.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-bookmark-filled.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-bookmark.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-cancel_4.cjs.entry.js +4 -4
- package/dist/cjs/swirl-icon-chat-bubble.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-chats-filled.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-chats.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-check-circle_2.cjs.entry.js +2 -2
- package/dist/cjs/{swirl-icon-check-small_3.cjs.entry.js → swirl-icon-check-small_2.cjs.entry.js} +3 -24
- package/dist/cjs/swirl-icon-check-strong_2.cjs.entry.js +49 -0
- package/dist/cjs/swirl-icon-check.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-chevron-left.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-chevron-right.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-close-small.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-close.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-cloud-upload.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-column.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-comment.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-contrast.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-copy.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-crop.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-dark-mode.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-date-range.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-delete.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-deployed-code.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-description.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-desktop.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-directory-filled.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-directory.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-discover.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-dock-left.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-door-open.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-dot.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-double-arrow-right.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-download.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-edit.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-emoji-mood.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-emoji-satisfied.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-error_3.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-expand-more.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-experiment.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-file.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-filter.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-folder.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-format-h-one.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-gif_3.cjs.entry.js +3 -3
- package/dist/cjs/swirl-icon-group-add.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-group-assign.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-groups-filled.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-groups.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-hamburger-menu.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-help.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-highlight.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-history.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-home.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-image.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-improve-text.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-info.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-insert-below.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-insert-on-top.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-inventory-off.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-inventory.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-key.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-keyboard-hide.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-keyboard.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-light-mode.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-like.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-link.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-live.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-load.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-lock-open.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-lock-person.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-lock.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-login.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-logout.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-long-text.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-mail.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-manage-accounts.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-mark-chat-read.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-mark-chat-unread.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-mention.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-menu-book-filled.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-menu-filled.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-menu.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-message.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-mic-off.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-mic.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-more-horizontal.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-news-filled.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-news-off.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-news.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-notifications-active.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-notifications-off.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-notifications.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-open-in-full.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-open-in-new.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-pause-circle.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-people-alt.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-person-off.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-person.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-phone.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-photo-camera.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-pin-off.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-pin.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-place.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-poll.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-post-approval.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-present.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-print.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-public-off.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-public.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-ratio-four-to-three.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-ratio-freeform.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-ratio-sixteen-to-nine.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-ratio-square.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-ratio-three-to-four.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-ratio-three-to-two.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-recieved.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-remove-circle.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-remove-moderator.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-reply.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-report.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-roadmap.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-rotate-left.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-rotate-right.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-screenshare-off.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-screenshare.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-search-strong.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-search.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-secure.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-send.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-settings.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-short-text.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-simplify.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-spellcheck.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-stars.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-stop-circle.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-stop.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-sync.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-tasks-filled.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-tasks.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-terminal.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-time-filled.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-time.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-today-filled.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-translate.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-tree-structure.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-undo.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-unlock-person.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-user-add.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-user-assign.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-video-camera-off.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-video-camera.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-video-library.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-video-player.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-voice.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-web-asset-off.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-web-asset.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-work.cjs.entry.js +1 -1
- package/dist/cjs/swirl-image-grid.cjs.entry.js +1 -1
- package/dist/cjs/swirl-lightbox.cjs.entry.js +1 -1
- package/dist/cjs/swirl-list.cjs.entry.js +1 -1
- package/dist/cjs/swirl-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/swirl-option-list-section.cjs.entry.js +1 -1
- package/dist/cjs/swirl-option-list_2.cjs.entry.js +2 -2
- package/dist/cjs/swirl-pdf-reader.cjs.entry.js +3 -3
- package/dist/cjs/swirl-popover_2.cjs.entry.js +1 -1
- package/dist/cjs/swirl-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/swirl-resource-list-file-item.cjs.entry.js +1 -1
- package/dist/cjs/swirl-resource-list-section.cjs.entry.js +1 -1
- package/dist/cjs/swirl-select.cjs.entry.js +2 -2
- package/dist/cjs/swirl-shell-layout.cjs.entry.js +7 -7
- package/dist/cjs/swirl-symbol-account-circle.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-alternate-email.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-android.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-announcement.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-backup.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-beach-access.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-bookmark.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-cloud.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-coronavirus.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-desktop-windows.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-directions-car-filled.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-edit-calendar.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-email.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-emoji-food-beverage.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-event-menu.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-facebook.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-favorite.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-fitness-center.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-flag.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-folder.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-globe.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-groups.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-help.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-image.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-info-menu.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-instagram.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-ios.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-language.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-leaderboard.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-lightbulb.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-linkedin.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-location-on.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-maps-home-work.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-notifications.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-open-in-new.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-pedal-bike.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-pinterest.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-policy.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-push-pin.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-redeem.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-report-problem.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-restaurant.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-roadmap.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-room.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-savings.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-settings-voice.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-shopping-cart.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-smartphone.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-star.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-supervisor-account.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-thumbs-up-down.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-twitter.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-wb-sunny.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-wechat.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-weibo.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-work.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-xing.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol-youtube.cjs.entry.js +1 -1
- package/dist/cjs/swirl-symbol.cjs.entry.js +1 -1
- package/dist/cjs/swirl-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/swirl-table-row-group.cjs.entry.js +2 -2
- package/dist/cjs/swirl-table-row.cjs.entry.js +1 -1
- package/dist/cjs/swirl-table.cjs.entry.js +1 -1
- package/dist/cjs/swirl-tabs.cjs.entry.js +1 -1
- package/dist/cjs/swirl-theme-provider.cjs.entry.js +1 -1
- package/dist/cjs/swirl-time-input.cjs.entry.js +1 -1
- package/dist/cjs/swirl-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/swirl-toggle-group.cjs.entry.js +1 -1
- package/dist/cjs/swirl-tree-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/swirl-tree-navigation.cjs.entry.js +1 -1
- package/dist/cjs/swirl-tree-view-item.cjs.entry.js +262 -7
- package/dist/cjs/swirl-tree-view.cjs.entry.js +135 -2
- package/dist/cjs/swirl-tree-view.config-3e2d459f.js +23 -0
- package/dist/cjs/swirl-video-thumbnail.cjs.entry.js +1 -1
- package/dist/cjs/swirl-visually-hidden.cjs.entry.js +1 -1
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/swirl-accordion/swirl-accordion.js +1 -1
- package/dist/collection/components/swirl-accordion-item/swirl-accordion-item.js +1 -1
- package/dist/collection/components/swirl-action-list/swirl-action-list.js +1 -1
- package/dist/collection/components/swirl-action-list-section/swirl-action-list-section.js +1 -1
- package/dist/collection/components/swirl-app-icon/swirl-app-icon.js +1 -1
- package/dist/collection/components/swirl-avatar-group/swirl-avatar-group.js +1 -1
- package/dist/collection/components/swirl-carousel-slide/swirl-carousel-slide.js +1 -1
- package/dist/collection/components/swirl-color-input/swirl-color-input.js +2 -2
- package/dist/collection/components/swirl-console-layout/swirl-console-layout.js +2 -2
- package/dist/collection/components/swirl-date-input/swirl-date-input.js +1 -1
- package/dist/collection/components/swirl-date-picker/swirl-date-picker.js +1 -1
- package/dist/collection/components/swirl-description-list/swirl-description-list.js +1 -1
- package/dist/collection/components/swirl-description-list-item/swirl-description-list-item.js +1 -1
- package/dist/collection/components/swirl-emoji/emojis/swirl-emoji-clap.js +1 -1
- package/dist/collection/components/swirl-emoji/emojis/swirl-emoji-happy.js +1 -1
- package/dist/collection/components/swirl-emoji/emojis/swirl-emoji-idea.js +1 -1
- package/dist/collection/components/swirl-emoji/emojis/swirl-emoji-love.js +1 -1
- package/dist/collection/components/swirl-emoji/emojis/swirl-emoji-sad.js +1 -1
- package/dist/collection/components/swirl-emoji/emojis/swirl-emoji-thumbs-up.js +1 -1
- package/dist/collection/components/swirl-emoji/swirl-emoji.js +1 -1
- package/dist/collection/components/swirl-empty-state/swirl-empty-state.js +1 -1
- package/dist/collection/components/swirl-file-uploader/swirl-file-uploader.js +2 -2
- package/dist/collection/components/swirl-file-viewer/swirl-file-viewer.js +1 -1
- package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-audio/swirl-file-viewer-audio.js +1 -1
- package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-csv/swirl-file-viewer-csv.js +1 -1
- package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-fallback/swirl-file-viewer-fallback.js +1 -1
- package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-image/swirl-file-viewer-image.js +1 -1
- package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-text/swirl-file-viewer-text.js +1 -1
- package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-video/swirl-file-viewer-video.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-add-moderator.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-add-photo.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-add-reaction.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-add.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-admin-panel-settings.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-ai-filled.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-ai.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-apps.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-back.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-downward.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-forward.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-left.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-right-small.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-right.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-upward.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-aspect-ratio.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-attachment.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-bar-chart.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-block.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-bookmark-filled.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-bookmark.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-cancel.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-chat-bubble.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-chats-filled.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-chats.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-check-circle.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-check-small.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-check-strong.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-check.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-chevron-left.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-chevron-right.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-close-small.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-close.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-cloud-upload.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-column.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-comment.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-contrast.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-copy.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-crop.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-dark-mode.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-date-range.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-delete.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-deployed-code.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-description.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-desktop.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-directory-filled.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-directory.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-discover.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-dock-left-collapse.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-dock-left-expand.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-dock-left.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-door-open.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-dot.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-double-arrow-left.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-double-arrow-right.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-download.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-drag-handle.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-edit.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-emoji-mood.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-emoji-satisfied.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-error.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-expand-less.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-expand-more.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-experiment.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-file-copy.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-file.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-filter.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-folder-shared.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-folder.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-format-h-one.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-fullscreen-exit.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-fullscreen.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-gif.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-group-add.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-group-assign.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-groups-filled.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-groups.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-hamburger-menu.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-help.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-highlight.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-history.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-home.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-image.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-improve-text.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-info.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-insert-below.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-insert-on-top.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-inventory-off.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-inventory.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-key.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-keyboard-hide.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-keyboard.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-light-mode.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-like.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-link.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-live.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-load.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-lock-open.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-lock-person.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-lock.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-login.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-logout.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-long-text.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-mail.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-manage-accounts.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-mark-chat-read.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-mark-chat-unread.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-mention.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-menu-book-filled.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-menu-book.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-menu-filled.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-menu.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-message.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-mic-off.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-mic.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-more-horizontal.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-more-vertikal.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-news-filled.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-news-off.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-news.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-notifications-active.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-notifications-off.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-notifications.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-open-in-full.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-open-in-new.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-pause-circle.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-pause.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-people-alt.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-person-off.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-person.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-phone.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-photo-camera.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-pin-off.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-pin.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-place.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-play-arrow.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-poll.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-post-approval.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-present.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-print.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-public-off.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-public.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-ratio-four-to-three.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-ratio-freeform.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-ratio-sixteen-to-nine.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-ratio-square.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-ratio-three-to-four.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-ratio-three-to-two.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-recieved.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-remove-circle.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-remove-moderator.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-remove.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-reply.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-report.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-roadmap.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-rotate-left.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-rotate-right.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-screenshare-off.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-screenshare.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-search-strong.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-search.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-secure.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-send.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-settings.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-short-text.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-simplify.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-spellcheck.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-stars.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-stop-circle.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-stop.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-sync.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-tasks-filled.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-tasks.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-terminal.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-time-filled.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-time.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-today-filled.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-today.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-translate.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-tree-structure.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-undo.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-unlock-person.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-user-add.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-user-assign.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-video-camera-off.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-video-camera.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-video-library.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-video-player.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-visibility-off.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-visibility.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-voice.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-warning.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-web-asset-off.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-web-asset.js +1 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-work.js +1 -1
- package/dist/collection/components/swirl-image-grid/swirl-image-grid.js +1 -1
- package/dist/collection/components/swirl-lightbox/swirl-lightbox.js +1 -1
- package/dist/collection/components/swirl-list/swirl-list.js +1 -1
- package/dist/collection/components/swirl-menu-item/swirl-menu-item.js +2 -2
- package/dist/collection/components/swirl-option-list/swirl-option-list.js +1 -1
- package/dist/collection/components/swirl-option-list-section/swirl-option-list-section.js +1 -1
- package/dist/collection/components/swirl-pdf-reader/swirl-pdf-reader.js +3 -3
- package/dist/collection/components/swirl-popover-trigger/swirl-popover-trigger.js +1 -1
- package/dist/collection/components/swirl-radio-group/swirl-radio-group.js +1 -1
- package/dist/collection/components/swirl-resource-list/swirl-resource-list.js +1 -1
- package/dist/collection/components/swirl-resource-list-file-item/swirl-resource-list-file-item.js +1 -1
- package/dist/collection/components/swirl-resource-list-section/swirl-resource-list-section.js +1 -1
- package/dist/collection/components/swirl-select/swirl-select.js +2 -2
- package/dist/collection/components/swirl-shell-layout/swirl-shell-layout.js +7 -7
- package/dist/collection/components/swirl-symbol/swirl-symbol.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-account-circle.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-alternate-email.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-android.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-announcement.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-backup.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-beach-access.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-bookmark.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-cloud.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-coronavirus.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-desktop-windows.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-directions-car-filled.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-edit-calendar.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-email.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-emoji-food-beverage.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-event-menu.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-facebook.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-favorite.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-fitness-center.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-flag.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-folder.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-globe.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-groups.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-help.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-image.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-info-menu.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-instagram.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-ios.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-language.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-leaderboard.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-lightbulb.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-linkedin.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-location-on.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-loyalty.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-maps-home-work.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-notifications.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-open-in-new.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-pedal-bike.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-pinterest.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-policy.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-push-pin.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-redeem.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-report-problem.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-restaurant.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-roadmap.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-room.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-savings.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-settings-voice.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-shopping-cart.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-smartphone.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-star.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-supervisor-account.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-thumbs-up-down.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-twitter.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-wb-sunny.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-wechat.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-weibo.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-work.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-xing.js +1 -1
- package/dist/collection/components/swirl-symbol/symbols/swirl-symbol-youtube.js +1 -1
- package/dist/collection/components/swirl-table/swirl-table.js +1 -1
- package/dist/collection/components/swirl-table-cell/swirl-table-cell.js +1 -1
- package/dist/collection/components/swirl-table-row/swirl-table-row.js +1 -1
- package/dist/collection/components/swirl-table-row-group/swirl-table-row-group.js +2 -2
- package/dist/collection/components/swirl-tabs/swirl-tabs.js +1 -1
- package/dist/collection/components/swirl-theme-provider/swirl-theme-provider.js +1 -1
- package/dist/collection/components/swirl-time-input/swirl-time-input.js +1 -1
- package/dist/collection/components/swirl-toggle-button/swirl-toggle-button.js +1 -1
- package/dist/collection/components/swirl-toggle-group/swirl-toggle-group.js +1 -1
- package/dist/collection/components/swirl-tree-navigation/swirl-tree-navigation.js +1 -1
- package/dist/collection/components/swirl-tree-navigation-item/swirl-tree-navigation-item.js +3 -3
- package/dist/collection/components/swirl-tree-view/swirl-tree-view.config.js +19 -0
- package/dist/collection/components/swirl-tree-view/swirl-tree-view.css +18 -1
- package/dist/collection/components/swirl-tree-view/swirl-tree-view.js +259 -3
- package/dist/collection/components/swirl-tree-view/swirl-tree-view.spec.js +159 -161
- package/dist/collection/components/swirl-tree-view/swirl-tree-view.stories.js +15 -10
- package/dist/collection/components/swirl-tree-view-item/swirl-tree-view-item.css +64 -2
- package/dist/collection/components/swirl-tree-view-item/swirl-tree-view-item.js +364 -8
- package/dist/collection/components/swirl-tree-view-item/swirl-tree-view-item.spec.js +1 -1
- package/dist/collection/components/swirl-video-thumbnail/swirl-video-thumbnail.js +1 -1
- package/dist/collection/components/swirl-visually-hidden/swirl-visually-hidden.js +1 -1
- package/dist/collection/prototypes/file-manager/file-manager.js +1 -1
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/file-manager.js +1 -1
- package/dist/components/sortable.esm.js +526 -881
- package/dist/components/swirl-accordion-item.js +1 -1
- package/dist/components/swirl-accordion.js +1 -1
- package/dist/components/swirl-action-list-section.js +1 -1
- package/dist/components/swirl-action-list2.js +1 -1
- package/dist/components/swirl-app-icon.js +1 -1
- package/dist/components/swirl-avatar-group.js +1 -1
- package/dist/components/swirl-carousel-slide.js +1 -1
- package/dist/components/swirl-color-input.js +2 -2
- package/dist/components/swirl-console-layout.js +2 -2
- package/dist/components/swirl-date-input.js +1 -1
- package/dist/components/swirl-date-picker2.js +1 -1
- package/dist/components/swirl-description-list-item.js +1 -1
- package/dist/components/swirl-description-list.js +1 -1
- package/dist/components/swirl-emoji-clap.js +1 -1
- package/dist/components/swirl-emoji-happy.js +1 -1
- package/dist/components/swirl-emoji-idea.js +1 -1
- package/dist/components/swirl-emoji-love.js +1 -1
- package/dist/components/swirl-emoji-sad.js +1 -1
- package/dist/components/swirl-emoji-thumbs-up.js +1 -1
- package/dist/components/swirl-emoji.js +1 -1
- package/dist/components/swirl-empty-state2.js +1 -1
- package/dist/components/swirl-file-uploader.js +2 -2
- package/dist/components/swirl-file-viewer-audio2.js +1 -1
- package/dist/components/swirl-file-viewer-csv2.js +1 -1
- package/dist/components/swirl-file-viewer-fallback2.js +1 -1
- package/dist/components/swirl-file-viewer-image2.js +1 -1
- package/dist/components/swirl-file-viewer-text2.js +1 -1
- package/dist/components/swirl-file-viewer-video2.js +1 -1
- package/dist/components/swirl-file-viewer2.js +1 -1
- package/dist/components/swirl-icon-add-moderator.js +1 -1
- package/dist/components/swirl-icon-add-photo.js +1 -1
- package/dist/components/swirl-icon-add-reaction.js +1 -1
- package/dist/components/swirl-icon-add2.js +1 -1
- package/dist/components/swirl-icon-admin-panel-settings.js +1 -1
- package/dist/components/swirl-icon-ai-filled.js +1 -1
- package/dist/components/swirl-icon-ai.js +1 -1
- package/dist/components/swirl-icon-apps.js +1 -1
- package/dist/components/swirl-icon-arrow-back2.js +1 -1
- package/dist/components/swirl-icon-arrow-downward2.js +1 -1
- package/dist/components/swirl-icon-arrow-forward2.js +1 -1
- package/dist/components/swirl-icon-arrow-left2.js +1 -1
- package/dist/components/swirl-icon-arrow-right-small.js +1 -1
- package/dist/components/swirl-icon-arrow-right2.js +1 -1
- package/dist/components/swirl-icon-arrow-upward2.js +1 -1
- package/dist/components/swirl-icon-aspect-ratio.js +1 -1
- package/dist/components/swirl-icon-attachment.js +1 -1
- package/dist/components/swirl-icon-bar-chart.js +1 -1
- package/dist/components/swirl-icon-block.js +1 -1
- package/dist/components/swirl-icon-bookmark-filled.js +1 -1
- package/dist/components/swirl-icon-bookmark.js +1 -1
- package/dist/components/swirl-icon-cancel2.js +1 -1
- package/dist/components/swirl-icon-chat-bubble.js +1 -1
- package/dist/components/swirl-icon-chats-filled.js +1 -1
- package/dist/components/swirl-icon-chats.js +1 -1
- package/dist/components/swirl-icon-check-circle2.js +1 -1
- package/dist/components/swirl-icon-check-small2.js +1 -1
- package/dist/components/swirl-icon-check-strong2.js +1 -1
- package/dist/components/swirl-icon-check.js +1 -1
- package/dist/components/swirl-icon-chevron-left.js +1 -1
- package/dist/components/swirl-icon-chevron-right2.js +1 -1
- package/dist/components/swirl-icon-close-small.js +1 -1
- package/dist/components/swirl-icon-close2.js +1 -1
- package/dist/components/swirl-icon-cloud-upload2.js +1 -1
- package/dist/components/swirl-icon-column.js +1 -1
- package/dist/components/swirl-icon-comment.js +1 -1
- package/dist/components/swirl-icon-contrast.js +1 -1
- package/dist/components/swirl-icon-copy.js +1 -1
- package/dist/components/swirl-icon-crop.js +1 -1
- package/dist/components/swirl-icon-dark-mode.js +1 -1
- package/dist/components/swirl-icon-date-range.js +1 -1
- package/dist/components/swirl-icon-delete.js +1 -1
- package/dist/components/swirl-icon-deployed-code.js +1 -1
- package/dist/components/swirl-icon-description.js +1 -1
- package/dist/components/swirl-icon-desktop.js +1 -1
- package/dist/components/swirl-icon-directory-filled.js +1 -1
- package/dist/components/swirl-icon-directory.js +1 -1
- package/dist/components/swirl-icon-discover.js +1 -1
- package/dist/components/swirl-icon-dock-left-collapse2.js +1 -1
- package/dist/components/swirl-icon-dock-left-expand2.js +1 -1
- package/dist/components/swirl-icon-dock-left.js +1 -1
- package/dist/components/swirl-icon-door-open.js +1 -1
- package/dist/components/swirl-icon-dot.js +1 -1
- package/dist/components/swirl-icon-double-arrow-left2.js +1 -1
- package/dist/components/swirl-icon-double-arrow-right.js +1 -1
- package/dist/components/swirl-icon-download.js +1 -1
- package/dist/components/swirl-icon-drag-handle2.js +1 -1
- package/dist/components/swirl-icon-edit.js +1 -1
- package/dist/components/swirl-icon-emoji-mood.js +1 -1
- package/dist/components/swirl-icon-emoji-satisfied.js +1 -1
- package/dist/components/swirl-icon-error2.js +1 -1
- package/dist/components/swirl-icon-expand-less2.js +1 -1
- package/dist/components/swirl-icon-expand-more2.js +1 -1
- package/dist/components/swirl-icon-experiment.js +1 -1
- package/dist/components/swirl-icon-file-copy2.js +1 -1
- package/dist/components/swirl-icon-file2.js +1 -1
- package/dist/components/swirl-icon-filter.js +1 -1
- package/dist/components/swirl-icon-folder-shared2.js +1 -1
- package/dist/components/swirl-icon-folder.js +1 -1
- package/dist/components/swirl-icon-format-h-one.js +1 -1
- package/dist/components/swirl-icon-fullscreen-exit2.js +1 -1
- package/dist/components/swirl-icon-fullscreen2.js +1 -1
- package/dist/components/swirl-icon-gif2.js +1 -1
- package/dist/components/swirl-icon-group-add.js +1 -1
- package/dist/components/swirl-icon-group-assign.js +1 -1
- package/dist/components/swirl-icon-groups-filled.js +1 -1
- package/dist/components/swirl-icon-groups.js +1 -1
- package/dist/components/swirl-icon-hamburger-menu.js +1 -1
- package/dist/components/swirl-icon-help2.js +1 -1
- package/dist/components/swirl-icon-highlight.js +1 -1
- package/dist/components/swirl-icon-history.js +1 -1
- package/dist/components/swirl-icon-home.js +1 -1
- package/dist/components/swirl-icon-image.js +1 -1
- package/dist/components/swirl-icon-improve-text.js +1 -1
- package/dist/components/swirl-icon-info2.js +1 -1
- package/dist/components/swirl-icon-insert-below.js +1 -1
- package/dist/components/swirl-icon-insert-on-top.js +1 -1
- package/dist/components/swirl-icon-inventory-off.js +1 -1
- package/dist/components/swirl-icon-inventory.js +1 -1
- package/dist/components/swirl-icon-key.js +1 -1
- package/dist/components/swirl-icon-keyboard-hide.js +1 -1
- package/dist/components/swirl-icon-keyboard.js +1 -1
- package/dist/components/swirl-icon-light-mode.js +1 -1
- package/dist/components/swirl-icon-like.js +1 -1
- package/dist/components/swirl-icon-link.js +1 -1
- package/dist/components/swirl-icon-live.js +1 -1
- package/dist/components/swirl-icon-load.js +1 -1
- package/dist/components/swirl-icon-lock-open.js +1 -1
- package/dist/components/swirl-icon-lock-person.js +1 -1
- package/dist/components/swirl-icon-lock.js +1 -1
- package/dist/components/swirl-icon-login.js +1 -1
- package/dist/components/swirl-icon-logout.js +1 -1
- package/dist/components/swirl-icon-long-text.js +1 -1
- package/dist/components/swirl-icon-mail.js +1 -1
- package/dist/components/swirl-icon-manage-accounts.js +1 -1
- package/dist/components/swirl-icon-mark-chat-read.js +1 -1
- package/dist/components/swirl-icon-mark-chat-unread.js +1 -1
- package/dist/components/swirl-icon-mention.js +1 -1
- package/dist/components/swirl-icon-menu-book-filled.js +1 -1
- package/dist/components/swirl-icon-menu-book2.js +1 -1
- package/dist/components/swirl-icon-menu-filled.js +1 -1
- package/dist/components/swirl-icon-menu.js +1 -1
- package/dist/components/swirl-icon-message.js +1 -1
- package/dist/components/swirl-icon-mic-off.js +1 -1
- package/dist/components/swirl-icon-mic.js +1 -1
- package/dist/components/swirl-icon-more-horizontal.js +1 -1
- package/dist/components/swirl-icon-more-vertikal2.js +1 -1
- package/dist/components/swirl-icon-news-filled.js +1 -1
- package/dist/components/swirl-icon-news-off.js +1 -1
- package/dist/components/swirl-icon-news.js +1 -1
- package/dist/components/swirl-icon-notifications-active.js +1 -1
- package/dist/components/swirl-icon-notifications-off.js +1 -1
- package/dist/components/swirl-icon-notifications.js +1 -1
- package/dist/components/swirl-icon-open-in-full.js +1 -1
- package/dist/components/swirl-icon-open-in-new2.js +1 -1
- package/dist/components/swirl-icon-pause-circle.js +1 -1
- package/dist/components/swirl-icon-pause2.js +1 -1
- package/dist/components/swirl-icon-people-alt.js +1 -1
- package/dist/components/swirl-icon-person-off.js +1 -1
- package/dist/components/swirl-icon-person2.js +1 -1
- package/dist/components/swirl-icon-phone.js +1 -1
- package/dist/components/swirl-icon-photo-camera.js +1 -1
- package/dist/components/swirl-icon-pin-off.js +1 -1
- package/dist/components/swirl-icon-pin.js +1 -1
- package/dist/components/swirl-icon-place.js +1 -1
- package/dist/components/swirl-icon-play-arrow2.js +1 -1
- package/dist/components/swirl-icon-poll.js +1 -1
- package/dist/components/swirl-icon-post-approval.js +1 -1
- package/dist/components/swirl-icon-present.js +1 -1
- package/dist/components/swirl-icon-print.js +1 -1
- package/dist/components/swirl-icon-public-off.js +1 -1
- package/dist/components/swirl-icon-public.js +1 -1
- package/dist/components/swirl-icon-ratio-four-to-three.js +1 -1
- package/dist/components/swirl-icon-ratio-freeform.js +1 -1
- package/dist/components/swirl-icon-ratio-sixteen-to-nine.js +1 -1
- package/dist/components/swirl-icon-ratio-square.js +1 -1
- package/dist/components/swirl-icon-ratio-three-to-four.js +1 -1
- package/dist/components/swirl-icon-ratio-three-to-two.js +1 -1
- package/dist/components/swirl-icon-recieved.js +1 -1
- package/dist/components/swirl-icon-remove-circle.js +1 -1
- package/dist/components/swirl-icon-remove-moderator.js +1 -1
- package/dist/components/swirl-icon-remove2.js +1 -1
- package/dist/components/swirl-icon-reply.js +1 -1
- package/dist/components/swirl-icon-report.js +1 -1
- package/dist/components/swirl-icon-roadmap.js +1 -1
- package/dist/components/swirl-icon-rotate-left.js +1 -1
- package/dist/components/swirl-icon-rotate-right.js +1 -1
- package/dist/components/swirl-icon-screenshare-off.js +1 -1
- package/dist/components/swirl-icon-screenshare.js +1 -1
- package/dist/components/swirl-icon-search-strong.js +1 -1
- package/dist/components/swirl-icon-search2.js +1 -1
- package/dist/components/swirl-icon-secure.js +1 -1
- package/dist/components/swirl-icon-send.js +1 -1
- package/dist/components/swirl-icon-settings.js +1 -1
- package/dist/components/swirl-icon-short-text.js +1 -1
- package/dist/components/swirl-icon-simplify.js +1 -1
- package/dist/components/swirl-icon-spellcheck.js +1 -1
- package/dist/components/swirl-icon-stars.js +1 -1
- package/dist/components/swirl-icon-stop-circle.js +1 -1
- package/dist/components/swirl-icon-stop.js +1 -1
- package/dist/components/swirl-icon-sync.js +1 -1
- package/dist/components/swirl-icon-tasks-filled.js +1 -1
- package/dist/components/swirl-icon-tasks.js +1 -1
- package/dist/components/swirl-icon-terminal.js +1 -1
- package/dist/components/swirl-icon-time-filled.js +1 -1
- package/dist/components/swirl-icon-time.js +1 -1
- package/dist/components/swirl-icon-today-filled.js +1 -1
- package/dist/components/swirl-icon-today2.js +1 -1
- package/dist/components/swirl-icon-translate.js +1 -1
- package/dist/components/swirl-icon-tree-structure.js +1 -1
- package/dist/components/swirl-icon-undo.js +1 -1
- package/dist/components/swirl-icon-unlock-person.js +1 -1
- package/dist/components/swirl-icon-user-add.js +1 -1
- package/dist/components/swirl-icon-user-assign.js +1 -1
- package/dist/components/swirl-icon-video-camera-off.js +1 -1
- package/dist/components/swirl-icon-video-camera.js +1 -1
- package/dist/components/swirl-icon-video-library.js +1 -1
- package/dist/components/swirl-icon-video-player.js +1 -1
- package/dist/components/swirl-icon-visibility-off2.js +1 -1
- package/dist/components/swirl-icon-visibility2.js +1 -1
- package/dist/components/swirl-icon-voice.js +1 -1
- package/dist/components/swirl-icon-warning2.js +1 -1
- package/dist/components/swirl-icon-web-asset-off.js +1 -1
- package/dist/components/swirl-icon-web-asset.js +1 -1
- package/dist/components/swirl-icon-work.js +1 -1
- package/dist/components/swirl-image-grid.js +1 -1
- package/dist/components/swirl-lightbox.js +1 -1
- package/dist/components/swirl-list.js +1 -1
- package/dist/components/swirl-menu-item.js +2 -2
- package/dist/components/swirl-option-list-section.js +1 -1
- package/dist/components/swirl-option-list2.js +1 -1
- package/dist/components/swirl-pdf-reader.js +3 -3
- package/dist/components/swirl-popover-trigger2.js +1 -1
- package/dist/components/swirl-radio-group.js +1 -1
- package/dist/components/swirl-resource-list-file-item.js +1 -1
- package/dist/components/swirl-resource-list-section.js +1 -1
- package/dist/components/swirl-resource-list2.js +1 -1
- package/dist/components/swirl-select.js +2 -2
- package/dist/components/swirl-shell-layout.js +7 -7
- package/dist/components/swirl-symbol-account-circle.js +1 -1
- package/dist/components/swirl-symbol-alternate-email.js +1 -1
- package/dist/components/swirl-symbol-android.js +1 -1
- package/dist/components/swirl-symbol-announcement.js +1 -1
- package/dist/components/swirl-symbol-backup.js +1 -1
- package/dist/components/swirl-symbol-beach-access.js +1 -1
- package/dist/components/swirl-symbol-bookmark.js +1 -1
- package/dist/components/swirl-symbol-cloud.js +1 -1
- package/dist/components/swirl-symbol-coronavirus.js +1 -1
- package/dist/components/swirl-symbol-desktop-windows.js +1 -1
- package/dist/components/swirl-symbol-directions-car-filled.js +1 -1
- package/dist/components/swirl-symbol-edit-calendar.js +1 -1
- package/dist/components/swirl-symbol-email.js +1 -1
- package/dist/components/swirl-symbol-emoji-food-beverage.js +1 -1
- package/dist/components/swirl-symbol-event-menu.js +1 -1
- package/dist/components/swirl-symbol-facebook.js +1 -1
- package/dist/components/swirl-symbol-favorite.js +1 -1
- package/dist/components/swirl-symbol-fitness-center.js +1 -1
- package/dist/components/swirl-symbol-flag.js +1 -1
- package/dist/components/swirl-symbol-folder.js +1 -1
- package/dist/components/swirl-symbol-globe.js +1 -1
- package/dist/components/swirl-symbol-groups.js +1 -1
- package/dist/components/swirl-symbol-help.js +1 -1
- package/dist/components/swirl-symbol-image.js +1 -1
- package/dist/components/swirl-symbol-info-menu.js +1 -1
- package/dist/components/swirl-symbol-instagram.js +1 -1
- package/dist/components/swirl-symbol-ios.js +1 -1
- package/dist/components/swirl-symbol-language.js +1 -1
- package/dist/components/swirl-symbol-leaderboard.js +1 -1
- package/dist/components/swirl-symbol-lightbulb.js +1 -1
- package/dist/components/swirl-symbol-linkedin.js +1 -1
- package/dist/components/swirl-symbol-location-on.js +1 -1
- package/dist/components/swirl-symbol-loyalty.js +1 -1
- package/dist/components/swirl-symbol-maps-home-work.js +1 -1
- package/dist/components/swirl-symbol-notifications.js +1 -1
- package/dist/components/swirl-symbol-open-in-new.js +1 -1
- package/dist/components/swirl-symbol-pedal-bike.js +1 -1
- package/dist/components/swirl-symbol-pinterest.js +1 -1
- package/dist/components/swirl-symbol-policy.js +1 -1
- package/dist/components/swirl-symbol-push-pin.js +1 -1
- package/dist/components/swirl-symbol-redeem.js +1 -1
- package/dist/components/swirl-symbol-report-problem.js +1 -1
- package/dist/components/swirl-symbol-restaurant.js +1 -1
- package/dist/components/swirl-symbol-roadmap.js +1 -1
- package/dist/components/swirl-symbol-room.js +1 -1
- package/dist/components/swirl-symbol-savings.js +1 -1
- package/dist/components/swirl-symbol-settings-voice.js +1 -1
- package/dist/components/swirl-symbol-shopping-cart.js +1 -1
- package/dist/components/swirl-symbol-smartphone.js +1 -1
- package/dist/components/swirl-symbol-star.js +1 -1
- package/dist/components/swirl-symbol-supervisor-account.js +1 -1
- package/dist/components/swirl-symbol-thumbs-up-down.js +1 -1
- package/dist/components/swirl-symbol-twitter.js +1 -1
- package/dist/components/swirl-symbol-wb-sunny.js +1 -1
- package/dist/components/swirl-symbol-wechat.js +1 -1
- package/dist/components/swirl-symbol-weibo.js +1 -1
- package/dist/components/swirl-symbol-work.js +1 -1
- package/dist/components/swirl-symbol-xing.js +1 -1
- package/dist/components/swirl-symbol-youtube.js +1 -1
- package/dist/components/swirl-symbol.js +1 -1
- package/dist/components/swirl-table-cell.js +1 -1
- package/dist/components/swirl-table-row-group.js +2 -2
- package/dist/components/swirl-table-row.js +1 -1
- package/dist/components/swirl-table.js +1 -1
- package/dist/components/swirl-tabs.js +1 -1
- package/dist/components/swirl-theme-provider.js +1 -1
- package/dist/components/swirl-time-input.js +1 -1
- package/dist/components/swirl-toggle-button.js +1 -1
- package/dist/components/swirl-toggle-group.js +1 -1
- package/dist/components/swirl-tree-navigation-item.js +3 -3
- package/dist/components/swirl-tree-navigation.js +1 -1
- package/dist/components/swirl-tree-view-item.js +280 -13
- package/dist/components/swirl-tree-view.config.js +21 -0
- package/dist/components/swirl-tree-view.js +152 -7
- package/dist/components/swirl-video-thumbnail.js +1 -1
- package/dist/components/swirl-visually-hidden2.js +1 -1
- package/dist/esm/file-manager.entry.js +1 -1
- package/dist/esm/index-eaf83092.js +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{sortable.esm-8c3d5856.js → sortable.esm-0bfddf0c.js} +526 -881
- package/dist/esm/swirl-accordion-item.entry.js +1 -1
- package/dist/esm/swirl-accordion.entry.js +1 -1
- package/dist/esm/swirl-action-list-section.entry.js +1 -1
- package/dist/esm/swirl-action-list_2.entry.js +1 -1
- package/dist/esm/swirl-app-icon.entry.js +1 -1
- package/dist/esm/swirl-app-layout_5.entry.js +4 -4
- package/dist/esm/swirl-avatar-group.entry.js +1 -1
- package/dist/esm/swirl-carousel-slide.entry.js +1 -1
- package/dist/esm/swirl-color-input.entry.js +2 -2
- package/dist/esm/swirl-components.js +1 -1
- package/dist/esm/swirl-console-layout.entry.js +2 -2
- package/dist/esm/swirl-date-input.entry.js +1 -1
- package/dist/esm/swirl-date-picker_2.entry.js +2 -2
- package/dist/esm/swirl-description-list-item.entry.js +1 -1
- package/dist/esm/swirl-description-list.entry.js +1 -1
- package/dist/esm/swirl-emoji-clap.entry.js +1 -1
- package/dist/esm/swirl-emoji-happy.entry.js +1 -1
- package/dist/esm/swirl-emoji-idea.entry.js +1 -1
- package/dist/esm/swirl-emoji-love.entry.js +1 -1
- package/dist/esm/swirl-emoji-sad.entry.js +1 -1
- package/dist/esm/swirl-emoji-thumbs-up.entry.js +1 -1
- package/dist/esm/swirl-emoji.entry.js +1 -1
- package/dist/esm/swirl-file-uploader.entry.js +2 -2
- package/dist/esm/swirl-file-viewer_8.entry.js +7 -7
- package/dist/esm/swirl-icon-add-moderator.entry.js +1 -1
- package/dist/esm/swirl-icon-add-photo.entry.js +1 -1
- package/dist/esm/swirl-icon-add-reaction.entry.js +1 -1
- package/dist/esm/swirl-icon-add_6.entry.js +6 -6
- package/dist/esm/swirl-icon-admin-panel-settings.entry.js +1 -1
- package/dist/esm/swirl-icon-ai-filled.entry.js +1 -1
- package/dist/esm/swirl-icon-ai.entry.js +1 -1
- package/dist/esm/swirl-icon-apps.entry.js +1 -1
- package/dist/esm/swirl-icon-arrow-back_5.entry.js +5 -5
- package/dist/esm/swirl-icon-arrow-downward_2.entry.js +2 -2
- package/dist/esm/swirl-icon-arrow-left_4.entry.js +3 -3
- package/dist/esm/swirl-icon-arrow-right-small.entry.js +1 -1
- package/dist/esm/swirl-icon-aspect-ratio.entry.js +1 -1
- package/dist/esm/swirl-icon-attachment.entry.js +1 -1
- package/dist/esm/swirl-icon-bar-chart.entry.js +1 -1
- package/dist/esm/swirl-icon-block.entry.js +1 -1
- package/dist/esm/swirl-icon-bookmark-filled.entry.js +1 -1
- package/dist/esm/swirl-icon-bookmark.entry.js +1 -1
- package/dist/esm/swirl-icon-cancel_4.entry.js +4 -4
- package/dist/esm/swirl-icon-chat-bubble.entry.js +1 -1
- package/dist/esm/swirl-icon-chats-filled.entry.js +1 -1
- package/dist/esm/swirl-icon-chats.entry.js +1 -1
- package/dist/esm/swirl-icon-check-circle_2.entry.js +2 -2
- package/dist/esm/{swirl-icon-check-small_3.entry.js → swirl-icon-check-small_2.entry.js} +4 -24
- package/dist/esm/swirl-icon-check-strong_2.entry.js +44 -0
- package/dist/esm/swirl-icon-check.entry.js +1 -1
- package/dist/esm/swirl-icon-chevron-left.entry.js +1 -1
- package/dist/esm/swirl-icon-chevron-right.entry.js +1 -1
- package/dist/esm/swirl-icon-close-small.entry.js +1 -1
- package/dist/esm/swirl-icon-close.entry.js +1 -1
- package/dist/esm/swirl-icon-cloud-upload.entry.js +1 -1
- package/dist/esm/swirl-icon-column.entry.js +1 -1
- package/dist/esm/swirl-icon-comment.entry.js +1 -1
- package/dist/esm/swirl-icon-contrast.entry.js +1 -1
- package/dist/esm/swirl-icon-copy.entry.js +1 -1
- package/dist/esm/swirl-icon-crop.entry.js +1 -1
- package/dist/esm/swirl-icon-dark-mode.entry.js +1 -1
- package/dist/esm/swirl-icon-date-range.entry.js +1 -1
- package/dist/esm/swirl-icon-delete.entry.js +1 -1
- package/dist/esm/swirl-icon-deployed-code.entry.js +1 -1
- package/dist/esm/swirl-icon-description.entry.js +1 -1
- package/dist/esm/swirl-icon-desktop.entry.js +1 -1
- package/dist/esm/swirl-icon-directory-filled.entry.js +1 -1
- package/dist/esm/swirl-icon-directory.entry.js +1 -1
- package/dist/esm/swirl-icon-discover.entry.js +1 -1
- package/dist/esm/swirl-icon-dock-left.entry.js +1 -1
- package/dist/esm/swirl-icon-door-open.entry.js +1 -1
- package/dist/esm/swirl-icon-dot.entry.js +1 -1
- package/dist/esm/swirl-icon-double-arrow-right.entry.js +1 -1
- package/dist/esm/swirl-icon-download.entry.js +1 -1
- package/dist/esm/swirl-icon-edit.entry.js +1 -1
- package/dist/esm/swirl-icon-emoji-mood.entry.js +1 -1
- package/dist/esm/swirl-icon-emoji-satisfied.entry.js +1 -1
- package/dist/esm/swirl-icon-error_3.entry.js +1 -1
- package/dist/esm/swirl-icon-expand-more.entry.js +1 -1
- package/dist/esm/swirl-icon-experiment.entry.js +1 -1
- package/dist/esm/swirl-icon-file.entry.js +1 -1
- package/dist/esm/swirl-icon-filter.entry.js +1 -1
- package/dist/esm/swirl-icon-folder.entry.js +1 -1
- package/dist/esm/swirl-icon-format-h-one.entry.js +1 -1
- package/dist/esm/swirl-icon-gif_3.entry.js +3 -3
- package/dist/esm/swirl-icon-group-add.entry.js +1 -1
- package/dist/esm/swirl-icon-group-assign.entry.js +1 -1
- package/dist/esm/swirl-icon-groups-filled.entry.js +1 -1
- package/dist/esm/swirl-icon-groups.entry.js +1 -1
- package/dist/esm/swirl-icon-hamburger-menu.entry.js +1 -1
- package/dist/esm/swirl-icon-help.entry.js +1 -1
- package/dist/esm/swirl-icon-highlight.entry.js +1 -1
- package/dist/esm/swirl-icon-history.entry.js +1 -1
- package/dist/esm/swirl-icon-home.entry.js +1 -1
- package/dist/esm/swirl-icon-image.entry.js +1 -1
- package/dist/esm/swirl-icon-improve-text.entry.js +1 -1
- package/dist/esm/swirl-icon-info.entry.js +1 -1
- package/dist/esm/swirl-icon-insert-below.entry.js +1 -1
- package/dist/esm/swirl-icon-insert-on-top.entry.js +1 -1
- package/dist/esm/swirl-icon-inventory-off.entry.js +1 -1
- package/dist/esm/swirl-icon-inventory.entry.js +1 -1
- package/dist/esm/swirl-icon-key.entry.js +1 -1
- package/dist/esm/swirl-icon-keyboard-hide.entry.js +1 -1
- package/dist/esm/swirl-icon-keyboard.entry.js +1 -1
- package/dist/esm/swirl-icon-light-mode.entry.js +1 -1
- package/dist/esm/swirl-icon-like.entry.js +1 -1
- package/dist/esm/swirl-icon-link.entry.js +1 -1
- package/dist/esm/swirl-icon-live.entry.js +1 -1
- package/dist/esm/swirl-icon-load.entry.js +1 -1
- package/dist/esm/swirl-icon-lock-open.entry.js +1 -1
- package/dist/esm/swirl-icon-lock-person.entry.js +1 -1
- package/dist/esm/swirl-icon-lock.entry.js +1 -1
- package/dist/esm/swirl-icon-login.entry.js +1 -1
- package/dist/esm/swirl-icon-logout.entry.js +1 -1
- package/dist/esm/swirl-icon-long-text.entry.js +1 -1
- package/dist/esm/swirl-icon-mail.entry.js +1 -1
- package/dist/esm/swirl-icon-manage-accounts.entry.js +1 -1
- package/dist/esm/swirl-icon-mark-chat-read.entry.js +1 -1
- package/dist/esm/swirl-icon-mark-chat-unread.entry.js +1 -1
- package/dist/esm/swirl-icon-mention.entry.js +1 -1
- package/dist/esm/swirl-icon-menu-book-filled.entry.js +1 -1
- package/dist/esm/swirl-icon-menu-filled.entry.js +1 -1
- package/dist/esm/swirl-icon-menu.entry.js +1 -1
- package/dist/esm/swirl-icon-message.entry.js +1 -1
- package/dist/esm/swirl-icon-mic-off.entry.js +1 -1
- package/dist/esm/swirl-icon-mic.entry.js +1 -1
- package/dist/esm/swirl-icon-more-horizontal.entry.js +1 -1
- package/dist/esm/swirl-icon-news-filled.entry.js +1 -1
- package/dist/esm/swirl-icon-news-off.entry.js +1 -1
- package/dist/esm/swirl-icon-news.entry.js +1 -1
- package/dist/esm/swirl-icon-notifications-active.entry.js +1 -1
- package/dist/esm/swirl-icon-notifications-off.entry.js +1 -1
- package/dist/esm/swirl-icon-notifications.entry.js +1 -1
- package/dist/esm/swirl-icon-open-in-full.entry.js +1 -1
- package/dist/esm/swirl-icon-open-in-new.entry.js +1 -1
- package/dist/esm/swirl-icon-pause-circle.entry.js +1 -1
- package/dist/esm/swirl-icon-people-alt.entry.js +1 -1
- package/dist/esm/swirl-icon-person-off.entry.js +1 -1
- package/dist/esm/swirl-icon-person.entry.js +1 -1
- package/dist/esm/swirl-icon-phone.entry.js +1 -1
- package/dist/esm/swirl-icon-photo-camera.entry.js +1 -1
- package/dist/esm/swirl-icon-pin-off.entry.js +1 -1
- package/dist/esm/swirl-icon-pin.entry.js +1 -1
- package/dist/esm/swirl-icon-place.entry.js +1 -1
- package/dist/esm/swirl-icon-poll.entry.js +1 -1
- package/dist/esm/swirl-icon-post-approval.entry.js +1 -1
- package/dist/esm/swirl-icon-present.entry.js +1 -1
- package/dist/esm/swirl-icon-print.entry.js +1 -1
- package/dist/esm/swirl-icon-public-off.entry.js +1 -1
- package/dist/esm/swirl-icon-public.entry.js +1 -1
- package/dist/esm/swirl-icon-ratio-four-to-three.entry.js +1 -1
- package/dist/esm/swirl-icon-ratio-freeform.entry.js +1 -1
- package/dist/esm/swirl-icon-ratio-sixteen-to-nine.entry.js +1 -1
- package/dist/esm/swirl-icon-ratio-square.entry.js +1 -1
- package/dist/esm/swirl-icon-ratio-three-to-four.entry.js +1 -1
- package/dist/esm/swirl-icon-ratio-three-to-two.entry.js +1 -1
- package/dist/esm/swirl-icon-recieved.entry.js +1 -1
- package/dist/esm/swirl-icon-remove-circle.entry.js +1 -1
- package/dist/esm/swirl-icon-remove-moderator.entry.js +1 -1
- package/dist/esm/swirl-icon-reply.entry.js +1 -1
- package/dist/esm/swirl-icon-report.entry.js +1 -1
- package/dist/esm/swirl-icon-roadmap.entry.js +1 -1
- package/dist/esm/swirl-icon-rotate-left.entry.js +1 -1
- package/dist/esm/swirl-icon-rotate-right.entry.js +1 -1
- package/dist/esm/swirl-icon-screenshare-off.entry.js +1 -1
- package/dist/esm/swirl-icon-screenshare.entry.js +1 -1
- package/dist/esm/swirl-icon-search-strong.entry.js +1 -1
- package/dist/esm/swirl-icon-search.entry.js +1 -1
- package/dist/esm/swirl-icon-secure.entry.js +1 -1
- package/dist/esm/swirl-icon-send.entry.js +1 -1
- package/dist/esm/swirl-icon-settings.entry.js +1 -1
- package/dist/esm/swirl-icon-short-text.entry.js +1 -1
- package/dist/esm/swirl-icon-simplify.entry.js +1 -1
- package/dist/esm/swirl-icon-spellcheck.entry.js +1 -1
- package/dist/esm/swirl-icon-stars.entry.js +1 -1
- package/dist/esm/swirl-icon-stop-circle.entry.js +1 -1
- package/dist/esm/swirl-icon-stop.entry.js +1 -1
- package/dist/esm/swirl-icon-sync.entry.js +1 -1
- package/dist/esm/swirl-icon-tasks-filled.entry.js +1 -1
- package/dist/esm/swirl-icon-tasks.entry.js +1 -1
- package/dist/esm/swirl-icon-terminal.entry.js +1 -1
- package/dist/esm/swirl-icon-time-filled.entry.js +1 -1
- package/dist/esm/swirl-icon-time.entry.js +1 -1
- package/dist/esm/swirl-icon-today-filled.entry.js +1 -1
- package/dist/esm/swirl-icon-translate.entry.js +1 -1
- package/dist/esm/swirl-icon-tree-structure.entry.js +1 -1
- package/dist/esm/swirl-icon-undo.entry.js +1 -1
- package/dist/esm/swirl-icon-unlock-person.entry.js +1 -1
- package/dist/esm/swirl-icon-user-add.entry.js +1 -1
- package/dist/esm/swirl-icon-user-assign.entry.js +1 -1
- package/dist/esm/swirl-icon-video-camera-off.entry.js +1 -1
- package/dist/esm/swirl-icon-video-camera.entry.js +1 -1
- package/dist/esm/swirl-icon-video-library.entry.js +1 -1
- package/dist/esm/swirl-icon-video-player.entry.js +1 -1
- package/dist/esm/swirl-icon-voice.entry.js +1 -1
- package/dist/esm/swirl-icon-web-asset-off.entry.js +1 -1
- package/dist/esm/swirl-icon-web-asset.entry.js +1 -1
- package/dist/esm/swirl-icon-work.entry.js +1 -1
- package/dist/esm/swirl-image-grid.entry.js +1 -1
- package/dist/esm/swirl-lightbox.entry.js +1 -1
- package/dist/esm/swirl-list.entry.js +1 -1
- package/dist/esm/swirl-menu-item.entry.js +2 -2
- package/dist/esm/swirl-option-list-section.entry.js +1 -1
- package/dist/esm/swirl-option-list_2.entry.js +2 -2
- package/dist/esm/swirl-pdf-reader.entry.js +3 -3
- package/dist/esm/swirl-popover_2.entry.js +1 -1
- package/dist/esm/swirl-radio-group.entry.js +1 -1
- package/dist/esm/swirl-resource-list-file-item.entry.js +1 -1
- package/dist/esm/swirl-resource-list-section.entry.js +1 -1
- package/dist/esm/swirl-select.entry.js +2 -2
- package/dist/esm/swirl-shell-layout.entry.js +7 -7
- package/dist/esm/swirl-symbol-account-circle.entry.js +1 -1
- package/dist/esm/swirl-symbol-alternate-email.entry.js +1 -1
- package/dist/esm/swirl-symbol-android.entry.js +1 -1
- package/dist/esm/swirl-symbol-announcement.entry.js +1 -1
- package/dist/esm/swirl-symbol-backup.entry.js +1 -1
- package/dist/esm/swirl-symbol-beach-access.entry.js +1 -1
- package/dist/esm/swirl-symbol-bookmark.entry.js +1 -1
- package/dist/esm/swirl-symbol-cloud.entry.js +1 -1
- package/dist/esm/swirl-symbol-coronavirus.entry.js +1 -1
- package/dist/esm/swirl-symbol-desktop-windows.entry.js +1 -1
- package/dist/esm/swirl-symbol-directions-car-filled.entry.js +1 -1
- package/dist/esm/swirl-symbol-edit-calendar.entry.js +1 -1
- package/dist/esm/swirl-symbol-email.entry.js +1 -1
- package/dist/esm/swirl-symbol-emoji-food-beverage.entry.js +1 -1
- package/dist/esm/swirl-symbol-event-menu.entry.js +1 -1
- package/dist/esm/swirl-symbol-facebook.entry.js +1 -1
- package/dist/esm/swirl-symbol-favorite.entry.js +1 -1
- package/dist/esm/swirl-symbol-fitness-center.entry.js +1 -1
- package/dist/esm/swirl-symbol-flag.entry.js +1 -1
- package/dist/esm/swirl-symbol-folder.entry.js +1 -1
- package/dist/esm/swirl-symbol-globe.entry.js +1 -1
- package/dist/esm/swirl-symbol-groups.entry.js +1 -1
- package/dist/esm/swirl-symbol-help.entry.js +1 -1
- package/dist/esm/swirl-symbol-image.entry.js +1 -1
- package/dist/esm/swirl-symbol-info-menu.entry.js +1 -1
- package/dist/esm/swirl-symbol-instagram.entry.js +1 -1
- package/dist/esm/swirl-symbol-ios.entry.js +1 -1
- package/dist/esm/swirl-symbol-language.entry.js +1 -1
- package/dist/esm/swirl-symbol-leaderboard.entry.js +1 -1
- package/dist/esm/swirl-symbol-lightbulb.entry.js +1 -1
- package/dist/esm/swirl-symbol-linkedin.entry.js +1 -1
- package/dist/esm/swirl-symbol-location-on.entry.js +1 -1
- package/dist/esm/swirl-symbol-loyalty.entry.js +1 -1
- package/dist/esm/swirl-symbol-maps-home-work.entry.js +1 -1
- package/dist/esm/swirl-symbol-notifications.entry.js +1 -1
- package/dist/esm/swirl-symbol-open-in-new.entry.js +1 -1
- package/dist/esm/swirl-symbol-pedal-bike.entry.js +1 -1
- package/dist/esm/swirl-symbol-pinterest.entry.js +1 -1
- package/dist/esm/swirl-symbol-policy.entry.js +1 -1
- package/dist/esm/swirl-symbol-push-pin.entry.js +1 -1
- package/dist/esm/swirl-symbol-redeem.entry.js +1 -1
- package/dist/esm/swirl-symbol-report-problem.entry.js +1 -1
- package/dist/esm/swirl-symbol-restaurant.entry.js +1 -1
- package/dist/esm/swirl-symbol-roadmap.entry.js +1 -1
- package/dist/esm/swirl-symbol-room.entry.js +1 -1
- package/dist/esm/swirl-symbol-savings.entry.js +1 -1
- package/dist/esm/swirl-symbol-settings-voice.entry.js +1 -1
- package/dist/esm/swirl-symbol-shopping-cart.entry.js +1 -1
- package/dist/esm/swirl-symbol-smartphone.entry.js +1 -1
- package/dist/esm/swirl-symbol-star.entry.js +1 -1
- package/dist/esm/swirl-symbol-supervisor-account.entry.js +1 -1
- package/dist/esm/swirl-symbol-thumbs-up-down.entry.js +1 -1
- package/dist/esm/swirl-symbol-twitter.entry.js +1 -1
- package/dist/esm/swirl-symbol-wb-sunny.entry.js +1 -1
- package/dist/esm/swirl-symbol-wechat.entry.js +1 -1
- package/dist/esm/swirl-symbol-weibo.entry.js +1 -1
- package/dist/esm/swirl-symbol-work.entry.js +1 -1
- package/dist/esm/swirl-symbol-xing.entry.js +1 -1
- package/dist/esm/swirl-symbol-youtube.entry.js +1 -1
- package/dist/esm/swirl-symbol.entry.js +1 -1
- package/dist/esm/swirl-table-cell.entry.js +1 -1
- package/dist/esm/swirl-table-row-group.entry.js +2 -2
- package/dist/esm/swirl-table-row.entry.js +1 -1
- package/dist/esm/swirl-table.entry.js +1 -1
- package/dist/esm/swirl-tabs.entry.js +1 -1
- package/dist/esm/swirl-theme-provider.entry.js +1 -1
- package/dist/esm/swirl-time-input.entry.js +1 -1
- package/dist/esm/swirl-toggle-button.entry.js +1 -1
- package/dist/esm/swirl-toggle-group.entry.js +1 -1
- package/dist/esm/swirl-tree-navigation-item.entry.js +3 -3
- package/dist/esm/swirl-tree-navigation.entry.js +1 -1
- package/dist/esm/swirl-tree-view-item.entry.js +263 -8
- package/dist/esm/swirl-tree-view.config-82c9ecaa.js +21 -0
- package/dist/esm/swirl-tree-view.entry.js +136 -3
- package/dist/esm/swirl-video-thumbnail.entry.js +1 -1
- package/dist/esm/swirl-visually-hidden.entry.js +1 -1
- package/dist/swirl-components/{p-5c167dcb.entry.js → p-0093152c.entry.js} +1 -1
- package/dist/swirl-components/{p-ce915b81.entry.js → p-0125ab65.entry.js} +1 -1
- package/dist/swirl-components/{p-38f1c701.entry.js → p-02e33f18.entry.js} +1 -1
- package/dist/swirl-components/{p-e4bc68de.entry.js → p-03087e84.entry.js} +1 -1
- package/dist/swirl-components/{p-b4997948.entry.js → p-032ab7ea.entry.js} +1 -1
- package/dist/swirl-components/p-03723e3f.entry.js +1 -0
- package/dist/swirl-components/{p-d0a2cd93.entry.js → p-0416d812.entry.js} +1 -1
- package/dist/swirl-components/{p-2f3d712e.entry.js → p-0497e47b.entry.js} +1 -1
- package/dist/swirl-components/{p-b0ced5b4.entry.js → p-0503fb18.entry.js} +1 -1
- package/dist/swirl-components/{p-26f71d87.entry.js → p-0517a8b3.entry.js} +1 -1
- package/dist/swirl-components/{p-11b419a1.entry.js → p-0677d419.entry.js} +1 -1
- package/dist/swirl-components/{p-b312256e.entry.js → p-096fd2c6.entry.js} +1 -1
- package/dist/swirl-components/{p-7696ffd5.entry.js → p-0af32674.entry.js} +1 -1
- package/dist/swirl-components/{p-7a619412.entry.js → p-0b3bd540.entry.js} +1 -1
- package/dist/swirl-components/{p-35c66740.entry.js → p-0ceb6ebb.entry.js} +1 -1
- package/dist/swirl-components/{p-15e0fb99.entry.js → p-0d2abbed.entry.js} +1 -1
- package/dist/swirl-components/{p-63df6c6c.entry.js → p-0d439d23.entry.js} +1 -1
- package/dist/swirl-components/{p-1ce4453f.entry.js → p-0f3c7b27.entry.js} +1 -1
- package/dist/swirl-components/{p-4f4e8a5d.entry.js → p-101b5bcc.entry.js} +1 -1
- package/dist/swirl-components/{p-cd21251b.entry.js → p-10c10a64.entry.js} +1 -1
- package/dist/swirl-components/p-128da2c1.entry.js +1 -0
- package/dist/swirl-components/{p-b1c6c0d4.entry.js → p-136f4e7d.entry.js} +1 -1
- package/dist/swirl-components/{p-da747dcb.entry.js → p-13b792b1.entry.js} +1 -1
- package/dist/swirl-components/p-13db65c5.entry.js +1 -0
- package/dist/swirl-components/{p-06b78fa7.entry.js → p-140302ad.entry.js} +1 -1
- package/dist/swirl-components/p-143faa2b.js +1 -0
- package/dist/swirl-components/p-14788b5b.entry.js +1 -0
- package/dist/swirl-components/{p-05698529.entry.js → p-16f4bb0e.entry.js} +1 -1
- package/dist/swirl-components/{p-c57b485b.entry.js → p-17059abe.entry.js} +1 -1
- package/dist/swirl-components/{p-6e01c7c9.entry.js → p-1842b759.entry.js} +1 -1
- package/dist/swirl-components/{p-112aa439.entry.js → p-1b885fa5.entry.js} +1 -1
- package/dist/swirl-components/{p-097d543e.entry.js → p-1c12bd81.entry.js} +1 -1
- package/dist/swirl-components/{p-597df0e4.entry.js → p-1d5423bf.entry.js} +1 -1
- package/dist/swirl-components/{p-fac958a0.entry.js → p-1d93b978.entry.js} +1 -1
- package/dist/swirl-components/{p-690d6491.entry.js → p-1dd7ebe5.entry.js} +1 -1
- package/dist/swirl-components/p-1f506587.entry.js +1 -0
- package/dist/swirl-components/{p-c239f14a.entry.js → p-1fc72ebd.entry.js} +1 -1
- package/dist/swirl-components/{p-e7ef35c7.entry.js → p-20102ed1.entry.js} +1 -1
- package/dist/swirl-components/{p-534af6f1.entry.js → p-21e716c1.entry.js} +1 -1
- package/dist/swirl-components/{p-53071929.entry.js → p-223f27f2.entry.js} +1 -1
- package/dist/swirl-components/{p-907d4b06.entry.js → p-23d73bee.entry.js} +1 -1
- package/dist/swirl-components/{p-e590417a.entry.js → p-23fa7304.entry.js} +1 -1
- package/dist/swirl-components/{p-93ab4a5e.entry.js → p-24a5ccb9.entry.js} +1 -1
- package/dist/swirl-components/{p-29c496c4.entry.js → p-24dfdc4a.entry.js} +1 -1
- package/dist/swirl-components/{p-64204318.entry.js → p-2590cbaa.entry.js} +1 -1
- package/dist/swirl-components/{p-d3cf6bcf.entry.js → p-261ccaa1.entry.js} +1 -1
- package/dist/swirl-components/{p-570faaca.entry.js → p-262bf6bd.entry.js} +1 -1
- package/dist/swirl-components/{p-737fe9fd.entry.js → p-26422270.entry.js} +1 -1
- package/dist/swirl-components/{p-da71a77d.entry.js → p-277ada7f.entry.js} +1 -1
- package/dist/swirl-components/{p-9a6e9b43.entry.js → p-298dfdac.entry.js} +1 -1
- package/dist/swirl-components/{p-385abb09.entry.js → p-29f27081.entry.js} +1 -1
- package/dist/swirl-components/{p-f8dfecf8.entry.js → p-2a586eff.entry.js} +1 -1
- package/dist/swirl-components/{p-586d54dc.entry.js → p-2ad46649.entry.js} +1 -1
- package/dist/swirl-components/{p-a26a8365.entry.js → p-2b63df9f.entry.js} +1 -1
- package/dist/swirl-components/{p-b3dbb0b2.entry.js → p-2c86a8e5.entry.js} +1 -1
- package/dist/swirl-components/{p-3ed56e17.entry.js → p-2d133ec4.entry.js} +1 -1
- package/dist/swirl-components/p-2d185184.entry.js +1 -0
- package/dist/swirl-components/{p-424bb8fd.entry.js → p-2d1f512d.entry.js} +1 -1
- package/dist/swirl-components/p-2d419112.entry.js +1 -0
- package/dist/swirl-components/{p-86d9a02a.entry.js → p-2d7feb75.entry.js} +1 -1
- package/dist/swirl-components/{p-ed9f528b.entry.js → p-2dbc63a2.entry.js} +1 -1
- package/dist/swirl-components/p-2f744b6e.entry.js +1 -0
- package/dist/swirl-components/{p-5a0df907.entry.js → p-319112df.entry.js} +1 -1
- package/dist/swirl-components/{p-2c40d7e9.entry.js → p-321d5ecf.entry.js} +1 -1
- package/dist/swirl-components/p-327bbc4a.entry.js +1 -0
- package/dist/swirl-components/p-33235f7a.entry.js +1 -0
- package/dist/swirl-components/{p-58a8bcf5.entry.js → p-33b6cd3e.entry.js} +1 -1
- package/dist/swirl-components/{p-b531c8e8.entry.js → p-348b85af.entry.js} +1 -1
- package/dist/swirl-components/{p-918886cc.entry.js → p-34ca2417.entry.js} +1 -1
- package/dist/swirl-components/{p-21edb0b9.entry.js → p-36018ce5.entry.js} +1 -1
- package/dist/swirl-components/p-364a61d3.entry.js +1 -0
- package/dist/swirl-components/p-36d172c9.entry.js +1 -0
- package/dist/swirl-components/p-379730a4.entry.js +1 -0
- package/dist/swirl-components/{p-9db1abb4.entry.js → p-39505712.entry.js} +1 -1
- package/dist/swirl-components/{p-1d21dfa4.entry.js → p-395aa689.entry.js} +1 -1
- package/dist/swirl-components/{p-d2c3ff3f.entry.js → p-39ee5df5.entry.js} +1 -1
- package/dist/swirl-components/{p-5f2404bc.entry.js → p-3a37801d.entry.js} +1 -1
- package/dist/swirl-components/{p-fc20cf56.entry.js → p-3a78c757.entry.js} +1 -1
- package/dist/swirl-components/{p-ffe502cc.entry.js → p-3abfee69.entry.js} +1 -1
- package/dist/swirl-components/{p-e80ca6ef.entry.js → p-3bcfc085.entry.js} +1 -1
- package/dist/swirl-components/{p-f1769aa9.entry.js → p-3bd0ad5d.entry.js} +1 -1
- package/dist/swirl-components/p-3dd4d02e.entry.js +1 -0
- package/dist/swirl-components/{p-e9da1428.entry.js → p-3e21a6f0.entry.js} +1 -1
- package/dist/swirl-components/{p-1699251e.entry.js → p-3e23b8c8.entry.js} +1 -1
- package/dist/swirl-components/{p-0e74e9be.entry.js → p-3fc3604d.entry.js} +1 -1
- package/dist/swirl-components/{p-7a4ec70d.entry.js → p-409afe51.entry.js} +1 -1
- package/dist/swirl-components/{p-ade91db7.entry.js → p-41c51a0d.entry.js} +1 -1
- package/dist/swirl-components/{p-6aef2fd1.entry.js → p-42f8cfc8.entry.js} +1 -1
- package/dist/swirl-components/p-454b849c.entry.js +1 -0
- package/dist/swirl-components/{p-f870b38b.entry.js → p-45761cef.entry.js} +1 -1
- package/dist/swirl-components/{p-65513ef9.entry.js → p-47a9eb65.entry.js} +1 -1
- package/dist/swirl-components/p-47be7a7f.entry.js +1 -0
- package/dist/swirl-components/{p-fa394c37.entry.js → p-480b1582.entry.js} +1 -1
- package/dist/swirl-components/{p-6c371264.entry.js → p-48b41666.entry.js} +1 -1
- package/dist/swirl-components/{p-3166bb52.entry.js → p-4bd56056.entry.js} +1 -1
- package/dist/swirl-components/p-4bf64ead.entry.js +1 -0
- package/dist/swirl-components/{p-62ed7ec1.entry.js → p-4d1277f5.entry.js} +1 -1
- package/dist/swirl-components/{p-667c9eb6.entry.js → p-4e7572b5.entry.js} +1 -1
- package/dist/swirl-components/p-4f2e5434.entry.js +1 -0
- package/dist/swirl-components/{p-497fd755.entry.js → p-51abf64c.entry.js} +1 -1
- package/dist/swirl-components/{p-8dfdd349.entry.js → p-529bc2a8.entry.js} +1 -1
- package/dist/swirl-components/p-53178b26.entry.js +1 -0
- package/dist/swirl-components/{p-efac32aa.entry.js → p-5323a320.entry.js} +1 -1
- package/dist/swirl-components/{p-52ddf945.entry.js → p-552c703c.entry.js} +1 -1
- package/dist/swirl-components/p-56107466.entry.js +1 -0
- package/dist/swirl-components/{p-1206dab4.entry.js → p-56bd8b46.entry.js} +1 -1
- package/dist/swirl-components/{p-83316c98.entry.js → p-56c5c470.entry.js} +1 -1
- package/dist/swirl-components/{p-9ba22e19.entry.js → p-56dd7202.entry.js} +1 -1
- package/dist/swirl-components/{p-ba4d9e13.entry.js → p-573c4748.entry.js} +1 -1
- package/dist/swirl-components/{p-a824db96.entry.js → p-59e30b4a.entry.js} +1 -1
- package/dist/swirl-components/{p-4ccc54bc.entry.js → p-5a22753e.entry.js} +1 -1
- package/dist/swirl-components/{p-5fbffb1c.entry.js → p-5b5476a2.entry.js} +1 -1
- package/dist/swirl-components/{p-9ec2ef88.entry.js → p-5b57aee4.entry.js} +1 -1
- package/dist/swirl-components/p-60cd2550.entry.js +1 -0
- package/dist/swirl-components/{p-0a646957.entry.js → p-612ef515.entry.js} +1 -1
- package/dist/swirl-components/{p-0fe0c0d9.entry.js → p-6210f97a.entry.js} +1 -1
- package/dist/swirl-components/{p-38804a9b.entry.js → p-621d4bc5.entry.js} +1 -1
- package/dist/swirl-components/{p-409a0b91.entry.js → p-634c66f2.entry.js} +1 -1
- package/dist/swirl-components/p-643d7b65.entry.js +1 -0
- package/dist/swirl-components/{p-a1c8f791.entry.js → p-68b34d08.entry.js} +1 -1
- package/dist/swirl-components/{p-1d438331.entry.js → p-698da07c.entry.js} +1 -1
- package/dist/swirl-components/{p-894be575.entry.js → p-6a9aca51.entry.js} +1 -1
- package/dist/swirl-components/{p-21e8ca2f.entry.js → p-6ae30118.entry.js} +1 -1
- package/dist/swirl-components/p-6ae3e493.entry.js +1 -0
- package/dist/swirl-components/p-6c33d9d1.entry.js +1 -0
- package/dist/swirl-components/{p-493a7d0e.entry.js → p-6c746975.entry.js} +1 -1
- package/dist/swirl-components/{p-4c71fd82.entry.js → p-6d3a7341.entry.js} +1 -1
- package/dist/swirl-components/{p-f737d8b1.entry.js → p-6e4e7039.entry.js} +1 -1
- package/dist/swirl-components/{p-f11c02e4.entry.js → p-6e797d5f.entry.js} +1 -1
- package/dist/swirl-components/p-6fecb3ad.entry.js +1 -0
- package/dist/swirl-components/p-6ff8e8ea.entry.js +1 -0
- package/dist/swirl-components/{p-4e4e3dfc.entry.js → p-71ece2a9.entry.js} +1 -1
- package/dist/swirl-components/p-72f1f9fc.entry.js +1 -0
- package/dist/swirl-components/p-731915fa.entry.js +1 -0
- package/dist/swirl-components/{p-0b59bda8.entry.js → p-73bd27d2.entry.js} +1 -1
- package/dist/swirl-components/p-744896ce.entry.js +1 -0
- package/dist/swirl-components/{p-35567ea0.entry.js → p-7641aec4.entry.js} +1 -1
- package/dist/swirl-components/{p-518bb604.entry.js → p-7673a4b6.entry.js} +1 -1
- package/dist/swirl-components/{p-3abd3503.entry.js → p-78d7a136.entry.js} +1 -1
- package/dist/swirl-components/p-78fc7c31.entry.js +1 -0
- package/dist/swirl-components/{p-a44a7345.entry.js → p-7a687191.entry.js} +1 -1
- package/dist/swirl-components/{p-da99f8b7.entry.js → p-7aec8819.entry.js} +1 -1
- package/dist/swirl-components/{p-f54ab1d3.entry.js → p-7cdaa22f.entry.js} +1 -1
- package/dist/swirl-components/{p-362dff79.entry.js → p-7e2203c2.entry.js} +1 -1
- package/dist/swirl-components/{p-11ffbeea.entry.js → p-7e455d55.entry.js} +1 -1
- package/dist/swirl-components/p-7f7c8b84.entry.js +1 -0
- package/dist/swirl-components/{p-7adc5a0d.entry.js → p-82223a09.entry.js} +1 -1
- package/dist/swirl-components/{p-85d208fe.entry.js → p-83377ba9.entry.js} +1 -1
- package/dist/swirl-components/{p-34482796.entry.js → p-838ab42d.entry.js} +1 -1
- package/dist/swirl-components/{p-84504c92.entry.js → p-84d94a7f.entry.js} +1 -1
- package/dist/swirl-components/{p-ca9ba3a5.entry.js → p-853c9b85.entry.js} +1 -1
- package/dist/swirl-components/{p-8f52de96.entry.js → p-8696b8d7.entry.js} +1 -1
- package/dist/swirl-components/{p-54743823.entry.js → p-87cd46cf.entry.js} +1 -1
- package/dist/swirl-components/p-8839612b.entry.js +1 -0
- package/dist/swirl-components/{p-5921f01a.entry.js → p-8853d8c3.entry.js} +1 -1
- package/dist/swirl-components/{p-1e956622.entry.js → p-88d1f9cb.entry.js} +1 -1
- package/dist/swirl-components/{p-abb5e4dd.entry.js → p-891c410c.entry.js} +1 -1
- package/dist/swirl-components/{p-9ce7e5a7.entry.js → p-8bc04d3f.entry.js} +1 -1
- package/dist/swirl-components/{p-d70f18f3.entry.js → p-8d2c4549.entry.js} +1 -1
- package/dist/swirl-components/p-8d973c9c.js +7 -0
- package/dist/swirl-components/{p-8ca03bc5.entry.js → p-8e04a678.entry.js} +1 -1
- package/dist/swirl-components/p-8edaaae7.entry.js +1 -0
- package/dist/swirl-components/{p-250351c9.entry.js → p-901fe579.entry.js} +1 -1
- package/dist/swirl-components/{p-9ad0fa42.entry.js → p-905e64bd.entry.js} +1 -1
- package/dist/swirl-components/{p-7ae6f446.entry.js → p-90ba672c.entry.js} +1 -1
- package/dist/swirl-components/{p-446dc6a0.entry.js → p-90c5ecf2.entry.js} +1 -1
- package/dist/swirl-components/{p-5927c49e.entry.js → p-90e8d2bc.entry.js} +1 -1
- package/dist/swirl-components/{p-0c20ee9a.entry.js → p-93d3eac7.entry.js} +1 -1
- package/dist/swirl-components/{p-4b61eb8a.entry.js → p-954f5762.entry.js} +1 -1
- package/dist/swirl-components/{p-2ef076f5.entry.js → p-973c1a84.entry.js} +1 -1
- package/dist/swirl-components/p-98382644.entry.js +1 -0
- package/dist/swirl-components/{p-c5410d94.entry.js → p-992be00d.entry.js} +1 -1
- package/dist/swirl-components/{p-4db20295.entry.js → p-9ad14889.entry.js} +1 -1
- package/dist/swirl-components/{p-0a75b235.entry.js → p-9b81071c.entry.js} +1 -1
- package/dist/swirl-components/{p-e3a21149.entry.js → p-9bc8b267.entry.js} +1 -1
- package/dist/swirl-components/{p-55e38108.entry.js → p-9d5d7d10.entry.js} +1 -1
- package/dist/swirl-components/{p-01c451c8.entry.js → p-9dde5d09.entry.js} +1 -1
- package/dist/swirl-components/{p-c317c76a.entry.js → p-9ff988d9.entry.js} +1 -1
- package/dist/swirl-components/{p-0082c91d.entry.js → p-a150dfc6.entry.js} +1 -1
- package/dist/swirl-components/{p-d31abef3.entry.js → p-a25be20c.entry.js} +1 -1
- package/dist/swirl-components/{p-8e53b30d.entry.js → p-a26bf873.entry.js} +1 -1
- package/dist/swirl-components/{p-e750f160.entry.js → p-a2da5d1c.entry.js} +1 -1
- package/dist/swirl-components/p-a2ff5172.entry.js +1 -0
- package/dist/swirl-components/{p-9cc705c7.entry.js → p-a337ea7f.entry.js} +1 -1
- package/dist/swirl-components/{p-32586381.entry.js → p-a3f8ec66.entry.js} +1 -1
- package/dist/swirl-components/p-a76fe798.entry.js +1 -0
- package/dist/swirl-components/{p-6ba91b66.entry.js → p-a98ad481.entry.js} +1 -1
- package/dist/swirl-components/{p-5dd824b7.entry.js → p-aa17cd06.entry.js} +1 -1
- package/dist/swirl-components/{p-989a8f9c.entry.js → p-aaa8e19f.entry.js} +1 -1
- package/dist/swirl-components/{p-52a8ba47.entry.js → p-ace27467.entry.js} +1 -1
- package/dist/swirl-components/{p-6655ffd4.entry.js → p-ad54b733.entry.js} +1 -1
- package/dist/swirl-components/p-ada586a2.entry.js +1 -0
- package/dist/swirl-components/p-afacfc4a.entry.js +1 -0
- package/dist/swirl-components/{p-1d7055f5.entry.js → p-b0a0a31a.entry.js} +1 -1
- package/dist/swirl-components/{p-f9b647b9.entry.js → p-b0b9805c.entry.js} +1 -1
- package/dist/swirl-components/{p-de18b826.entry.js → p-b1763c9d.entry.js} +1 -1
- package/dist/swirl-components/{p-3c2f3fcb.entry.js → p-b24b89cf.entry.js} +1 -1
- package/dist/swirl-components/{p-04152b02.entry.js → p-b2d71728.entry.js} +1 -1
- package/dist/swirl-components/{p-b390dc99.entry.js → p-b30c0580.entry.js} +1 -1
- package/dist/swirl-components/{p-0a5e26a8.entry.js → p-b32c90a2.entry.js} +1 -1
- package/dist/swirl-components/{p-b3ed495f.entry.js → p-b4320bc1.entry.js} +1 -1
- package/dist/swirl-components/{p-9602ee7e.entry.js → p-b4c76806.entry.js} +1 -1
- package/dist/swirl-components/{p-4299840b.entry.js → p-b5b8f259.entry.js} +1 -1
- package/dist/swirl-components/p-b72cf65a.entry.js +1 -0
- package/dist/swirl-components/{p-dfa72584.entry.js → p-b7a52e34.entry.js} +1 -1
- package/dist/swirl-components/{p-f5dac43c.entry.js → p-b7f472ec.entry.js} +1 -1
- package/dist/swirl-components/p-b850a031.entry.js +1 -0
- package/dist/swirl-components/{p-e724f91f.entry.js → p-b863886a.entry.js} +1 -1
- package/dist/swirl-components/p-b8d6f1cd.entry.js +1 -0
- package/dist/swirl-components/{p-353aa4e2.entry.js → p-bee49d95.entry.js} +1 -1
- package/dist/swirl-components/p-bf598bd8.entry.js +1 -0
- package/dist/swirl-components/{p-3ede1fc5.entry.js → p-bf8c13bd.entry.js} +1 -1
- package/dist/swirl-components/p-c0145e13.entry.js +1 -0
- package/dist/swirl-components/{p-2ef0bfbe.entry.js → p-c1dc4778.entry.js} +1 -1
- package/dist/swirl-components/{p-ca39bebe.entry.js → p-c2f04b2c.entry.js} +1 -1
- package/dist/swirl-components/{p-9da30645.entry.js → p-c4cff16e.entry.js} +1 -1
- package/dist/swirl-components/p-c510fa61.entry.js +1 -0
- package/dist/swirl-components/{p-28d9556a.entry.js → p-c53fb0d9.entry.js} +1 -1
- package/dist/swirl-components/{p-88388fef.entry.js → p-c7dab229.entry.js} +1 -1
- package/dist/swirl-components/p-c86baf6b.entry.js +1 -0
- package/dist/swirl-components/p-c9369cb1.entry.js +1 -0
- package/dist/swirl-components/{p-25560281.entry.js → p-c9a57998.entry.js} +1 -1
- package/dist/swirl-components/{p-3fede16a.entry.js → p-c9e298f5.entry.js} +1 -1
- package/dist/swirl-components/{p-5b94c256.entry.js → p-ca296d31.entry.js} +1 -1
- package/dist/swirl-components/{p-15d6bac7.entry.js → p-cb0c419f.entry.js} +1 -1
- package/dist/swirl-components/{p-1296e8c3.entry.js → p-cb2d3a4c.entry.js} +1 -1
- package/dist/swirl-components/{p-d2babe65.entry.js → p-cb7a4a4f.entry.js} +1 -1
- package/dist/swirl-components/{p-f7a63d6e.entry.js → p-cbc81036.entry.js} +1 -1
- package/dist/swirl-components/p-cccc5ce3.entry.js +1 -0
- package/dist/swirl-components/{p-30c944bd.entry.js → p-cda594c7.entry.js} +1 -1
- package/dist/swirl-components/{p-624e0623.entry.js → p-ce826cae.entry.js} +1 -1
- package/dist/swirl-components/{p-d0419047.entry.js → p-cead84dc.entry.js} +1 -1
- package/dist/swirl-components/{p-05937db4.entry.js → p-cf649281.entry.js} +1 -1
- package/dist/swirl-components/p-cf6b5970.entry.js +1 -0
- package/dist/swirl-components/{p-9ee2c05e.entry.js → p-d010e11b.entry.js} +1 -1
- package/dist/swirl-components/{p-b739ad55.entry.js → p-d01e6f21.entry.js} +1 -1
- package/dist/swirl-components/{p-c3b116db.entry.js → p-d07c9df0.entry.js} +1 -1
- package/dist/swirl-components/{p-70334304.entry.js → p-d16c31e2.entry.js} +1 -1
- package/dist/swirl-components/{p-1f7b5749.entry.js → p-d1726a54.entry.js} +1 -1
- package/dist/swirl-components/{p-79bfaf30.entry.js → p-d224fe07.entry.js} +1 -1
- package/dist/swirl-components/p-d22d933a.entry.js +1 -0
- package/dist/swirl-components/{p-ffdfbc83.entry.js → p-d2f0b1fd.entry.js} +1 -1
- package/dist/swirl-components/{p-16a1e00a.entry.js → p-d372a8b2.entry.js} +1 -1
- package/dist/swirl-components/p-d3caae34.entry.js +1 -0
- package/dist/swirl-components/p-d41ebe87.entry.js +1 -0
- package/dist/swirl-components/{p-804c14b1.entry.js → p-d4515296.entry.js} +1 -1
- package/dist/swirl-components/{p-d7bd3ec9.entry.js → p-d5f6f58c.entry.js} +1 -1
- package/dist/swirl-components/{p-c8a45a43.entry.js → p-d66bd16a.entry.js} +1 -1
- package/dist/swirl-components/{p-4b76b00c.entry.js → p-d6b5cb5f.entry.js} +1 -1
- package/dist/swirl-components/p-d7104c4e.entry.js +1 -0
- package/dist/swirl-components/p-d7e28e3d.entry.js +1 -0
- package/dist/swirl-components/{p-d77d9399.entry.js → p-d81385a9.entry.js} +1 -1
- package/dist/swirl-components/{p-440290c4.entry.js → p-d91cc8fa.entry.js} +1 -1
- package/dist/swirl-components/{p-cf0965f6.entry.js → p-dce255b4.entry.js} +1 -1
- package/dist/swirl-components/p-df747cf2.entry.js +1 -0
- package/dist/swirl-components/{p-d9881956.entry.js → p-e045270c.entry.js} +1 -1
- package/dist/swirl-components/{p-dadf2cf5.entry.js → p-e04e3523.entry.js} +1 -1
- package/dist/swirl-components/{p-032d5d3a.entry.js → p-e0c3760c.entry.js} +3 -3
- package/dist/swirl-components/{p-843cbd50.entry.js → p-e10fba70.entry.js} +1 -1
- package/dist/swirl-components/{p-c1913ad9.entry.js → p-e113ec0c.entry.js} +1 -1
- package/dist/swirl-components/{p-fc22fbb1.entry.js → p-e1fbded4.entry.js} +1 -1
- package/dist/swirl-components/{p-c8921192.entry.js → p-e30b79a9.entry.js} +1 -1
- package/dist/swirl-components/p-e3d8448d.entry.js +1 -0
- package/dist/swirl-components/{p-486317ae.entry.js → p-e4100590.entry.js} +1 -1
- package/dist/swirl-components/{p-86fb09e3.entry.js → p-e4bc183c.entry.js} +1 -1
- package/dist/swirl-components/p-e547f524.entry.js +1 -0
- package/dist/swirl-components/{p-3c12d4c7.entry.js → p-e5dc03a7.entry.js} +1 -1
- package/dist/swirl-components/{p-becc5a3c.entry.js → p-e7bea2a1.entry.js} +1 -1
- package/dist/swirl-components/{p-0eb40ec6.entry.js → p-e7cec194.entry.js} +1 -1
- package/dist/swirl-components/{p-cf0e2e5c.entry.js → p-e93f4211.entry.js} +1 -1
- package/dist/swirl-components/p-e9463400.entry.js +1 -0
- package/dist/swirl-components/p-ec276797.entry.js +1 -0
- package/dist/swirl-components/{p-0e83a03e.entry.js → p-eccb5ce7.entry.js} +1 -1
- package/dist/swirl-components/{p-2142e160.entry.js → p-ee27adb0.entry.js} +1 -1
- package/dist/swirl-components/{p-61a4a3b4.entry.js → p-ef2d4f17.entry.js} +1 -1
- package/dist/swirl-components/{p-91d9bf68.entry.js → p-f194e198.entry.js} +1 -1
- package/dist/swirl-components/{p-ee595568.entry.js → p-f3b83f1a.entry.js} +1 -1
- package/dist/swirl-components/{p-20878c70.entry.js → p-f4aa4ed9.entry.js} +1 -1
- package/dist/swirl-components/p-f648cb48.entry.js +1 -0
- package/dist/swirl-components/p-f73f7ecd.entry.js +1 -0
- package/dist/swirl-components/{p-7830c872.entry.js → p-f7bf4bbb.entry.js} +1 -1
- package/dist/swirl-components/p-f91c7c66.entry.js +1 -0
- package/dist/swirl-components/{p-1258cba2.entry.js → p-fb6d6ad0.entry.js} +1 -1
- package/dist/swirl-components/{p-ce909983.entry.js → p-fbcb0476.entry.js} +1 -1
- package/dist/swirl-components/p-fbe9db16.entry.js +1 -0
- package/dist/swirl-components/{p-27b14d99.entry.js → p-fc3e1782.entry.js} +1 -1
- package/dist/swirl-components/{p-4d2c93bc.entry.js → p-fc76371f.entry.js} +1 -1
- package/dist/swirl-components/{p-0ea7341f.entry.js → p-fcaeee7d.entry.js} +1 -1
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-tree-view/swirl-tree-view.config.d.ts +2 -0
- package/dist/types/components/swirl-tree-view/swirl-tree-view.d.ts +37 -0
- package/dist/types/components/swirl-tree-view-item/swirl-tree-view-item.d.ts +34 -0
- package/dist/types/components.d.ts +26 -0
- package/dist/types/index.d.ts +2 -0
- package/package.json +2 -2
- package/vscode-data.json +12 -0
- package/dist/cjs/swirl-icon-check-strong.cjs.entry.js +0 -28
- package/dist/esm/swirl-icon-check-strong.entry.js +0 -24
- package/dist/swirl-components/p-0a826b0a.entry.js +0 -1
- package/dist/swirl-components/p-0e206a8e.entry.js +0 -1
- package/dist/swirl-components/p-0ea9093a.entry.js +0 -1
- package/dist/swirl-components/p-0fc0aec0.entry.js +0 -1
- package/dist/swirl-components/p-125559e9.entry.js +0 -1
- package/dist/swirl-components/p-1486d7ea.js +0 -7
- package/dist/swirl-components/p-18cd794c.entry.js +0 -1
- package/dist/swirl-components/p-18e2f319.entry.js +0 -1
- package/dist/swirl-components/p-1a597089.entry.js +0 -1
- package/dist/swirl-components/p-1d632109.entry.js +0 -1
- package/dist/swirl-components/p-1e8e1187.entry.js +0 -1
- package/dist/swirl-components/p-1f216819.entry.js +0 -1
- package/dist/swirl-components/p-22285221.entry.js +0 -1
- package/dist/swirl-components/p-22f887a0.entry.js +0 -1
- package/dist/swirl-components/p-2430994f.entry.js +0 -1
- package/dist/swirl-components/p-2706e854.entry.js +0 -1
- package/dist/swirl-components/p-2ab038e3.entry.js +0 -1
- package/dist/swirl-components/p-2c86d0c5.entry.js +0 -1
- package/dist/swirl-components/p-2cdb39cf.entry.js +0 -1
- package/dist/swirl-components/p-2d478aa0.entry.js +0 -1
- package/dist/swirl-components/p-31afa9a0.entry.js +0 -1
- package/dist/swirl-components/p-33d2b1ab.entry.js +0 -1
- package/dist/swirl-components/p-3446bba9.entry.js +0 -1
- package/dist/swirl-components/p-35937963.entry.js +0 -1
- package/dist/swirl-components/p-3c263280.entry.js +0 -1
- package/dist/swirl-components/p-3e57870c.entry.js +0 -1
- package/dist/swirl-components/p-3e9de3c3.entry.js +0 -1
- package/dist/swirl-components/p-42d95da5.entry.js +0 -1
- package/dist/swirl-components/p-4435ecb3.entry.js +0 -1
- package/dist/swirl-components/p-455ea9a6.entry.js +0 -1
- package/dist/swirl-components/p-46388ce6.entry.js +0 -1
- package/dist/swirl-components/p-4d255de7.entry.js +0 -1
- package/dist/swirl-components/p-4f9a6a51.entry.js +0 -1
- package/dist/swirl-components/p-51a70a1d.entry.js +0 -1
- package/dist/swirl-components/p-6481a1f8.entry.js +0 -1
- package/dist/swirl-components/p-67203c60.entry.js +0 -1
- package/dist/swirl-components/p-67d0d421.entry.js +0 -1
- package/dist/swirl-components/p-74310d75.entry.js +0 -1
- package/dist/swirl-components/p-8a173405.entry.js +0 -1
- package/dist/swirl-components/p-8e33806a.entry.js +0 -1
- package/dist/swirl-components/p-98594a18.entry.js +0 -1
- package/dist/swirl-components/p-99a74b74.entry.js +0 -1
- package/dist/swirl-components/p-9b84132a.entry.js +0 -1
- package/dist/swirl-components/p-9bf6ea76.entry.js +0 -1
- package/dist/swirl-components/p-9d9935c4.entry.js +0 -1
- package/dist/swirl-components/p-b65917c5.entry.js +0 -1
- package/dist/swirl-components/p-bc9dcd72.entry.js +0 -1
- package/dist/swirl-components/p-c317db85.entry.js +0 -1
- package/dist/swirl-components/p-c3ee8ee3.entry.js +0 -1
- package/dist/swirl-components/p-cb33e65e.entry.js +0 -1
- package/dist/swirl-components/p-d021a884.entry.js +0 -1
- package/dist/swirl-components/p-d0c3b388.entry.js +0 -1
- package/dist/swirl-components/p-dae6e882.entry.js +0 -1
- package/dist/swirl-components/p-e70264d6.entry.js +0 -1
- package/dist/swirl-components/p-e8448fee.entry.js +0 -1
- package/dist/swirl-components/p-ed403ec7.entry.js +0 -1
- package/dist/swirl-components/p-f25f8761.entry.js +0 -1
- package/dist/swirl-components/p-fa89117d.entry.js +0 -1
- package/dist/swirl-components/p-fac784d4.entry.js +0 -1
- package/dist/swirl-components/p-fb055861.entry.js +0 -1
- package/dist/swirl-components/p-fe95ea80.entry.js +0 -1
- package/dist/swirl-components/p-ff451862.entry.js +0 -1
- package/dist/swirl-components/p-ff64870c.entry.js +0 -1
|
@@ -1,31 +1,25 @@
|
|
|
1
1
|
/**!
|
|
2
|
-
* Sortable 1.15.
|
|
2
|
+
* Sortable 1.15.6
|
|
3
3
|
* @author RubaXa <trash@rubaxa.org>
|
|
4
4
|
* @author owenm <owen23355@gmail.com>
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
7
|
function ownKeys(object, enumerableOnly) {
|
|
8
8
|
var keys = Object.keys(object);
|
|
9
|
-
|
|
10
9
|
if (Object.getOwnPropertySymbols) {
|
|
11
10
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
12
|
-
|
|
13
11
|
if (enumerableOnly) {
|
|
14
12
|
symbols = symbols.filter(function (sym) {
|
|
15
13
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
16
14
|
});
|
|
17
15
|
}
|
|
18
|
-
|
|
19
16
|
keys.push.apply(keys, symbols);
|
|
20
17
|
}
|
|
21
|
-
|
|
22
18
|
return keys;
|
|
23
19
|
}
|
|
24
|
-
|
|
25
20
|
function _objectSpread2(target) {
|
|
26
21
|
for (var i = 1; i < arguments.length; i++) {
|
|
27
22
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
28
|
-
|
|
29
23
|
if (i % 2) {
|
|
30
24
|
ownKeys(Object(source), true).forEach(function (key) {
|
|
31
25
|
_defineProperty(target, key, source[key]);
|
|
@@ -38,10 +32,8 @@ function _objectSpread2(target) {
|
|
|
38
32
|
});
|
|
39
33
|
}
|
|
40
34
|
}
|
|
41
|
-
|
|
42
35
|
return target;
|
|
43
36
|
}
|
|
44
|
-
|
|
45
37
|
function _typeof(obj) {
|
|
46
38
|
"@babel/helpers - typeof";
|
|
47
39
|
|
|
@@ -54,10 +46,8 @@ function _typeof(obj) {
|
|
|
54
46
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
55
47
|
};
|
|
56
48
|
}
|
|
57
|
-
|
|
58
49
|
return _typeof(obj);
|
|
59
50
|
}
|
|
60
|
-
|
|
61
51
|
function _defineProperty(obj, key, value) {
|
|
62
52
|
if (key in obj) {
|
|
63
53
|
Object.defineProperty(obj, key, {
|
|
@@ -69,53 +59,40 @@ function _defineProperty(obj, key, value) {
|
|
|
69
59
|
} else {
|
|
70
60
|
obj[key] = value;
|
|
71
61
|
}
|
|
72
|
-
|
|
73
62
|
return obj;
|
|
74
63
|
}
|
|
75
|
-
|
|
76
64
|
function _extends() {
|
|
77
65
|
_extends = Object.assign || function (target) {
|
|
78
66
|
for (var i = 1; i < arguments.length; i++) {
|
|
79
67
|
var source = arguments[i];
|
|
80
|
-
|
|
81
68
|
for (var key in source) {
|
|
82
69
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
83
70
|
target[key] = source[key];
|
|
84
71
|
}
|
|
85
72
|
}
|
|
86
73
|
}
|
|
87
|
-
|
|
88
74
|
return target;
|
|
89
75
|
};
|
|
90
|
-
|
|
91
76
|
return _extends.apply(this, arguments);
|
|
92
77
|
}
|
|
93
|
-
|
|
94
78
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
95
79
|
if (source == null) return {};
|
|
96
80
|
var target = {};
|
|
97
81
|
var sourceKeys = Object.keys(source);
|
|
98
82
|
var key, i;
|
|
99
|
-
|
|
100
83
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
101
84
|
key = sourceKeys[i];
|
|
102
85
|
if (excluded.indexOf(key) >= 0) continue;
|
|
103
86
|
target[key] = source[key];
|
|
104
87
|
}
|
|
105
|
-
|
|
106
88
|
return target;
|
|
107
89
|
}
|
|
108
|
-
|
|
109
90
|
function _objectWithoutProperties(source, excluded) {
|
|
110
91
|
if (source == null) return {};
|
|
111
|
-
|
|
112
92
|
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
113
|
-
|
|
114
93
|
var key, i;
|
|
115
|
-
|
|
116
94
|
if (Object.getOwnPropertySymbols) {
|
|
117
95
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
118
|
-
|
|
119
96
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
120
97
|
key = sourceSymbolKeys[i];
|
|
121
98
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -123,18 +100,16 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
123
100
|
target[key] = source[key];
|
|
124
101
|
}
|
|
125
102
|
}
|
|
126
|
-
|
|
127
103
|
return target;
|
|
128
104
|
}
|
|
129
105
|
|
|
130
|
-
var version = "1.15.
|
|
106
|
+
var version = "1.15.6";
|
|
131
107
|
|
|
132
108
|
function userAgent(pattern) {
|
|
133
109
|
if (typeof window !== 'undefined' && window.navigator) {
|
|
134
110
|
return !! /*@__PURE__*/navigator.userAgent.match(pattern);
|
|
135
111
|
}
|
|
136
112
|
}
|
|
137
|
-
|
|
138
113
|
var IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
|
|
139
114
|
var Edge = userAgent(/Edge/i);
|
|
140
115
|
var FireFox = userAgent(/firefox/i);
|
|
@@ -146,23 +121,15 @@ var captureMode = {
|
|
|
146
121
|
capture: false,
|
|
147
122
|
passive: false
|
|
148
123
|
};
|
|
149
|
-
|
|
150
124
|
function on(el, event, fn) {
|
|
151
125
|
el.addEventListener(event, fn, !IE11OrLess && captureMode);
|
|
152
126
|
}
|
|
153
|
-
|
|
154
127
|
function off(el, event, fn) {
|
|
155
128
|
el.removeEventListener(event, fn, !IE11OrLess && captureMode);
|
|
156
129
|
}
|
|
157
|
-
|
|
158
|
-
function matches(
|
|
159
|
-
/**HTMLElement*/
|
|
160
|
-
el,
|
|
161
|
-
/**String*/
|
|
162
|
-
selector) {
|
|
130
|
+
function matches( /**HTMLElement*/el, /**String*/selector) {
|
|
163
131
|
if (!selector) return;
|
|
164
132
|
selector[0] === '>' && (selector = selector.substring(1));
|
|
165
|
-
|
|
166
133
|
if (el) {
|
|
167
134
|
try {
|
|
168
135
|
if (el.matches) {
|
|
@@ -176,39 +143,25 @@ selector) {
|
|
|
176
143
|
return false;
|
|
177
144
|
}
|
|
178
145
|
}
|
|
179
|
-
|
|
180
146
|
return false;
|
|
181
147
|
}
|
|
182
|
-
|
|
183
148
|
function getParentOrHost(el) {
|
|
184
149
|
return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;
|
|
185
150
|
}
|
|
186
|
-
|
|
187
|
-
function closest(
|
|
188
|
-
/**HTMLElement*/
|
|
189
|
-
el,
|
|
190
|
-
/**String*/
|
|
191
|
-
selector,
|
|
192
|
-
/**HTMLElement*/
|
|
193
|
-
ctx, includeCTX) {
|
|
151
|
+
function closest( /**HTMLElement*/el, /**String*/selector, /**HTMLElement*/ctx, includeCTX) {
|
|
194
152
|
if (el) {
|
|
195
153
|
ctx = ctx || document;
|
|
196
|
-
|
|
197
154
|
do {
|
|
198
155
|
if (selector != null && (selector[0] === '>' ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {
|
|
199
156
|
return el;
|
|
200
157
|
}
|
|
201
|
-
|
|
202
158
|
if (el === ctx) break;
|
|
203
159
|
/* jshint boss:true */
|
|
204
160
|
} while (el = getParentOrHost(el));
|
|
205
161
|
}
|
|
206
|
-
|
|
207
162
|
return null;
|
|
208
163
|
}
|
|
209
|
-
|
|
210
164
|
var R_SPACE = /\s+/g;
|
|
211
|
-
|
|
212
165
|
function toggleClass(el, name, state) {
|
|
213
166
|
if (el && name) {
|
|
214
167
|
if (el.classList) {
|
|
@@ -219,10 +172,8 @@ function toggleClass(el, name, state) {
|
|
|
219
172
|
}
|
|
220
173
|
}
|
|
221
174
|
}
|
|
222
|
-
|
|
223
175
|
function css(el, prop, val) {
|
|
224
176
|
var style = el && el.style;
|
|
225
|
-
|
|
226
177
|
if (style) {
|
|
227
178
|
if (val === void 0) {
|
|
228
179
|
if (document.defaultView && document.defaultView.getComputedStyle) {
|
|
@@ -230,83 +181,67 @@ function css(el, prop, val) {
|
|
|
230
181
|
} else if (el.currentStyle) {
|
|
231
182
|
val = el.currentStyle;
|
|
232
183
|
}
|
|
233
|
-
|
|
234
184
|
return prop === void 0 ? val : val[prop];
|
|
235
185
|
} else {
|
|
236
186
|
if (!(prop in style) && prop.indexOf('webkit') === -1) {
|
|
237
187
|
prop = '-webkit-' + prop;
|
|
238
188
|
}
|
|
239
|
-
|
|
240
189
|
style[prop] = val + (typeof val === 'string' ? '' : 'px');
|
|
241
190
|
}
|
|
242
191
|
}
|
|
243
192
|
}
|
|
244
|
-
|
|
245
193
|
function matrix(el, selfOnly) {
|
|
246
194
|
var appliedTransforms = '';
|
|
247
|
-
|
|
248
195
|
if (typeof el === 'string') {
|
|
249
196
|
appliedTransforms = el;
|
|
250
197
|
} else {
|
|
251
198
|
do {
|
|
252
199
|
var transform = css(el, 'transform');
|
|
253
|
-
|
|
254
200
|
if (transform && transform !== 'none') {
|
|
255
201
|
appliedTransforms = transform + ' ' + appliedTransforms;
|
|
256
202
|
}
|
|
257
203
|
/* jshint boss:true */
|
|
258
|
-
|
|
259
204
|
} while (!selfOnly && (el = el.parentNode));
|
|
260
205
|
}
|
|
261
|
-
|
|
262
206
|
var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
263
207
|
/*jshint -W056 */
|
|
264
|
-
|
|
265
208
|
return matrixFn && new matrixFn(appliedTransforms);
|
|
266
209
|
}
|
|
267
|
-
|
|
268
210
|
function find(ctx, tagName, iterator) {
|
|
269
211
|
if (ctx) {
|
|
270
212
|
var list = ctx.getElementsByTagName(tagName),
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
213
|
+
i = 0,
|
|
214
|
+
n = list.length;
|
|
274
215
|
if (iterator) {
|
|
275
216
|
for (; i < n; i++) {
|
|
276
217
|
iterator(list[i], i);
|
|
277
218
|
}
|
|
278
219
|
}
|
|
279
|
-
|
|
280
220
|
return list;
|
|
281
221
|
}
|
|
282
|
-
|
|
283
222
|
return [];
|
|
284
223
|
}
|
|
285
|
-
|
|
286
224
|
function getWindowScrollingElement() {
|
|
287
225
|
var scrollingElement = document.scrollingElement;
|
|
288
|
-
|
|
289
226
|
if (scrollingElement) {
|
|
290
227
|
return scrollingElement;
|
|
291
228
|
} else {
|
|
292
229
|
return document.documentElement;
|
|
293
230
|
}
|
|
294
231
|
}
|
|
295
|
-
/**
|
|
296
|
-
* Returns the "bounding client rect" of given element
|
|
297
|
-
* @param {HTMLElement} el The element whose boundingClientRect is wanted
|
|
298
|
-
* @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container
|
|
299
|
-
* @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr
|
|
300
|
-
* @param {[Boolean]} undoScale Whether the container's scale() should be undone
|
|
301
|
-
* @param {[HTMLElement]} container The parent the element will be placed in
|
|
302
|
-
* @return {Object} The boundingClientRect of el, with specified adjustments
|
|
303
|
-
*/
|
|
304
|
-
|
|
305
232
|
|
|
233
|
+
/**
|
|
234
|
+
* Returns the "bounding client rect" of given element
|
|
235
|
+
* @param {HTMLElement} el The element whose boundingClientRect is wanted
|
|
236
|
+
* @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container
|
|
237
|
+
* @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr
|
|
238
|
+
* @param {[Boolean]} undoScale Whether the container's scale() should be undone
|
|
239
|
+
* @param {[HTMLElement]} container The parent the element will be placed in
|
|
240
|
+
* @return {Object} The boundingClientRect of el, with specified adjustments
|
|
241
|
+
*/
|
|
306
242
|
function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {
|
|
307
243
|
if (!el.getBoundingClientRect && el !== window) return;
|
|
308
244
|
var elRect, top, left, bottom, right, height, width;
|
|
309
|
-
|
|
310
245
|
if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {
|
|
311
246
|
elRect = el.getBoundingClientRect();
|
|
312
247
|
top = elRect.top;
|
|
@@ -323,17 +258,18 @@ function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoS
|
|
|
323
258
|
height = window.innerHeight;
|
|
324
259
|
width = window.innerWidth;
|
|
325
260
|
}
|
|
326
|
-
|
|
327
261
|
if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {
|
|
328
262
|
// Adjust for translate()
|
|
329
|
-
container = container || el.parentNode;
|
|
330
|
-
// Not needed on <= IE11
|
|
263
|
+
container = container || el.parentNode;
|
|
331
264
|
|
|
265
|
+
// solves #1123 (see: https://stackoverflow.com/a/37953806/6088312)
|
|
266
|
+
// Not needed on <= IE11
|
|
332
267
|
if (!IE11OrLess) {
|
|
333
268
|
do {
|
|
334
269
|
if (container && container.getBoundingClientRect && (css(container, 'transform') !== 'none' || relativeToNonStaticParent && css(container, 'position') !== 'static')) {
|
|
335
|
-
var containerRect = container.getBoundingClientRect();
|
|
270
|
+
var containerRect = container.getBoundingClientRect();
|
|
336
271
|
|
|
272
|
+
// Set relative to edges of padding box of container
|
|
337
273
|
top -= containerRect.top + parseInt(css(container, 'border-top-width'));
|
|
338
274
|
left -= containerRect.left + parseInt(css(container, 'border-left-width'));
|
|
339
275
|
bottom = top + elRect.height;
|
|
@@ -341,17 +277,14 @@ function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoS
|
|
|
341
277
|
break;
|
|
342
278
|
}
|
|
343
279
|
/* jshint boss:true */
|
|
344
|
-
|
|
345
280
|
} while (container = container.parentNode);
|
|
346
281
|
}
|
|
347
282
|
}
|
|
348
|
-
|
|
349
283
|
if (undoScale && el !== window) {
|
|
350
284
|
// Adjust for scale()
|
|
351
285
|
var elMatrix = matrix(container || el),
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
286
|
+
scaleX = elMatrix && elMatrix.a,
|
|
287
|
+
scaleY = elMatrix && elMatrix.d;
|
|
355
288
|
if (elMatrix) {
|
|
356
289
|
top /= scaleY;
|
|
357
290
|
left /= scaleX;
|
|
@@ -361,7 +294,6 @@ function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoS
|
|
|
361
294
|
right = left + width;
|
|
362
295
|
}
|
|
363
296
|
}
|
|
364
|
-
|
|
365
297
|
return {
|
|
366
298
|
top: top,
|
|
367
299
|
left: left,
|
|
@@ -371,165 +303,140 @@ function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoS
|
|
|
371
303
|
height: height
|
|
372
304
|
};
|
|
373
305
|
}
|
|
374
|
-
/**
|
|
375
|
-
* Checks if a side of an element is scrolled past a side of its parents
|
|
376
|
-
* @param {HTMLElement} el The element who's side being scrolled out of view is in question
|
|
377
|
-
* @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')
|
|
378
|
-
* @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')
|
|
379
|
-
* @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element
|
|
380
|
-
*/
|
|
381
|
-
|
|
382
306
|
|
|
307
|
+
/**
|
|
308
|
+
* Checks if a side of an element is scrolled past a side of its parents
|
|
309
|
+
* @param {HTMLElement} el The element who's side being scrolled out of view is in question
|
|
310
|
+
* @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')
|
|
311
|
+
* @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')
|
|
312
|
+
* @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element
|
|
313
|
+
*/
|
|
383
314
|
function isScrolledPast(el, elSide, parentSide) {
|
|
384
315
|
var parent = getParentAutoScrollElement(el, true),
|
|
385
|
-
|
|
386
|
-
/* jshint boss:true */
|
|
316
|
+
elSideVal = getRect(el)[elSide];
|
|
387
317
|
|
|
318
|
+
/* jshint boss:true */
|
|
388
319
|
while (parent) {
|
|
389
320
|
var parentSideVal = getRect(parent)[parentSide],
|
|
390
|
-
|
|
391
|
-
|
|
321
|
+
visible = void 0;
|
|
392
322
|
if (parentSide === 'top' || parentSide === 'left') {
|
|
393
323
|
visible = elSideVal >= parentSideVal;
|
|
394
324
|
} else {
|
|
395
325
|
visible = elSideVal <= parentSideVal;
|
|
396
326
|
}
|
|
397
|
-
|
|
398
327
|
if (!visible) return parent;
|
|
399
328
|
if (parent === getWindowScrollingElement()) break;
|
|
400
329
|
parent = getParentAutoScrollElement(parent, false);
|
|
401
330
|
}
|
|
402
|
-
|
|
403
331
|
return false;
|
|
404
332
|
}
|
|
405
|
-
/**
|
|
406
|
-
* Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)
|
|
407
|
-
* and non-draggable elements
|
|
408
|
-
* @param {HTMLElement} el The parent element
|
|
409
|
-
* @param {Number} childNum The index of the child
|
|
410
|
-
* @param {Object} options Parent Sortable's options
|
|
411
|
-
* @return {HTMLElement} The child at index childNum, or null if not found
|
|
412
|
-
*/
|
|
413
|
-
|
|
414
333
|
|
|
334
|
+
/**
|
|
335
|
+
* Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)
|
|
336
|
+
* and non-draggable elements
|
|
337
|
+
* @param {HTMLElement} el The parent element
|
|
338
|
+
* @param {Number} childNum The index of the child
|
|
339
|
+
* @param {Object} options Parent Sortable's options
|
|
340
|
+
* @return {HTMLElement} The child at index childNum, or null if not found
|
|
341
|
+
*/
|
|
415
342
|
function getChild(el, childNum, options, includeDragEl) {
|
|
416
343
|
var currentChild = 0,
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
344
|
+
i = 0,
|
|
345
|
+
children = el.children;
|
|
420
346
|
while (i < children.length) {
|
|
421
347
|
if (children[i].style.display !== 'none' && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {
|
|
422
348
|
if (currentChild === childNum) {
|
|
423
349
|
return children[i];
|
|
424
350
|
}
|
|
425
|
-
|
|
426
351
|
currentChild++;
|
|
427
352
|
}
|
|
428
|
-
|
|
429
353
|
i++;
|
|
430
354
|
}
|
|
431
|
-
|
|
432
355
|
return null;
|
|
433
356
|
}
|
|
434
|
-
/**
|
|
435
|
-
* Gets the last child in the el, ignoring ghostEl or invisible elements (clones)
|
|
436
|
-
* @param {HTMLElement} el Parent element
|
|
437
|
-
* @param {selector} selector Any other elements that should be ignored
|
|
438
|
-
* @return {HTMLElement} The last child, ignoring ghostEl
|
|
439
|
-
*/
|
|
440
|
-
|
|
441
357
|
|
|
358
|
+
/**
|
|
359
|
+
* Gets the last child in the el, ignoring ghostEl or invisible elements (clones)
|
|
360
|
+
* @param {HTMLElement} el Parent element
|
|
361
|
+
* @param {selector} selector Any other elements that should be ignored
|
|
362
|
+
* @return {HTMLElement} The last child, ignoring ghostEl
|
|
363
|
+
*/
|
|
442
364
|
function lastChild(el, selector) {
|
|
443
365
|
var last = el.lastElementChild;
|
|
444
|
-
|
|
445
366
|
while (last && (last === Sortable.ghost || css(last, 'display') === 'none' || selector && !matches(last, selector))) {
|
|
446
367
|
last = last.previousElementSibling;
|
|
447
368
|
}
|
|
448
|
-
|
|
449
369
|
return last || null;
|
|
450
370
|
}
|
|
451
|
-
/**
|
|
452
|
-
* Returns the index of an element within its parent for a selected set of
|
|
453
|
-
* elements
|
|
454
|
-
* @param {HTMLElement} el
|
|
455
|
-
* @param {selector} selector
|
|
456
|
-
* @return {number}
|
|
457
|
-
*/
|
|
458
|
-
|
|
459
371
|
|
|
372
|
+
/**
|
|
373
|
+
* Returns the index of an element within its parent for a selected set of
|
|
374
|
+
* elements
|
|
375
|
+
* @param {HTMLElement} el
|
|
376
|
+
* @param {selector} selector
|
|
377
|
+
* @return {number}
|
|
378
|
+
*/
|
|
460
379
|
function index(el, selector) {
|
|
461
380
|
var index = 0;
|
|
462
|
-
|
|
463
381
|
if (!el || !el.parentNode) {
|
|
464
382
|
return -1;
|
|
465
383
|
}
|
|
466
|
-
/* jshint boss:true */
|
|
467
|
-
|
|
468
384
|
|
|
385
|
+
/* jshint boss:true */
|
|
469
386
|
while (el = el.previousElementSibling) {
|
|
470
387
|
if (el.nodeName.toUpperCase() !== 'TEMPLATE' && el !== Sortable.clone && (!selector || matches(el, selector))) {
|
|
471
388
|
index++;
|
|
472
389
|
}
|
|
473
390
|
}
|
|
474
|
-
|
|
475
391
|
return index;
|
|
476
392
|
}
|
|
477
|
-
/**
|
|
478
|
-
* Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.
|
|
479
|
-
* The value is returned in real pixels.
|
|
480
|
-
* @param {HTMLElement} el
|
|
481
|
-
* @return {Array} Offsets in the format of [left, top]
|
|
482
|
-
*/
|
|
483
|
-
|
|
484
393
|
|
|
394
|
+
/**
|
|
395
|
+
* Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.
|
|
396
|
+
* The value is returned in real pixels.
|
|
397
|
+
* @param {HTMLElement} el
|
|
398
|
+
* @return {Array} Offsets in the format of [left, top]
|
|
399
|
+
*/
|
|
485
400
|
function getRelativeScrollOffset(el) {
|
|
486
401
|
var offsetLeft = 0,
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
402
|
+
offsetTop = 0,
|
|
403
|
+
winScroller = getWindowScrollingElement();
|
|
490
404
|
if (el) {
|
|
491
405
|
do {
|
|
492
406
|
var elMatrix = matrix(el),
|
|
493
|
-
|
|
494
|
-
|
|
407
|
+
scaleX = elMatrix.a,
|
|
408
|
+
scaleY = elMatrix.d;
|
|
495
409
|
offsetLeft += el.scrollLeft * scaleX;
|
|
496
410
|
offsetTop += el.scrollTop * scaleY;
|
|
497
411
|
} while (el !== winScroller && (el = el.parentNode));
|
|
498
412
|
}
|
|
499
|
-
|
|
500
413
|
return [offsetLeft, offsetTop];
|
|
501
414
|
}
|
|
502
|
-
/**
|
|
503
|
-
* Returns the index of the object within the given array
|
|
504
|
-
* @param {Array} arr Array that may or may not hold the object
|
|
505
|
-
* @param {Object} obj An object that has a key-value pair unique to and identical to a key-value pair in the object you want to find
|
|
506
|
-
* @return {Number} The index of the object in the array, or -1
|
|
507
|
-
*/
|
|
508
|
-
|
|
509
415
|
|
|
416
|
+
/**
|
|
417
|
+
* Returns the index of the object within the given array
|
|
418
|
+
* @param {Array} arr Array that may or may not hold the object
|
|
419
|
+
* @param {Object} obj An object that has a key-value pair unique to and identical to a key-value pair in the object you want to find
|
|
420
|
+
* @return {Number} The index of the object in the array, or -1
|
|
421
|
+
*/
|
|
510
422
|
function indexOfObject(arr, obj) {
|
|
511
423
|
for (var i in arr) {
|
|
512
424
|
if (!arr.hasOwnProperty(i)) continue;
|
|
513
|
-
|
|
514
425
|
for (var key in obj) {
|
|
515
426
|
if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);
|
|
516
427
|
}
|
|
517
428
|
}
|
|
518
|
-
|
|
519
429
|
return -1;
|
|
520
430
|
}
|
|
521
|
-
|
|
522
431
|
function getParentAutoScrollElement(el, includeSelf) {
|
|
523
432
|
// skip to window
|
|
524
433
|
if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();
|
|
525
434
|
var elem = el;
|
|
526
435
|
var gotSelf = false;
|
|
527
|
-
|
|
528
436
|
do {
|
|
529
437
|
// we don't need to get elem css if it isn't even overflowing in the first place (performance)
|
|
530
438
|
if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {
|
|
531
439
|
var elemCSS = css(elem);
|
|
532
|
-
|
|
533
440
|
if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == 'auto' || elemCSS.overflowX == 'scroll') || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == 'auto' || elemCSS.overflowY == 'scroll')) {
|
|
534
441
|
if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();
|
|
535
442
|
if (gotSelf || includeSelf) return elem;
|
|
@@ -537,12 +444,9 @@ function getParentAutoScrollElement(el, includeSelf) {
|
|
|
537
444
|
}
|
|
538
445
|
}
|
|
539
446
|
/* jshint boss:true */
|
|
540
|
-
|
|
541
447
|
} while (elem = elem.parentNode);
|
|
542
|
-
|
|
543
448
|
return getWindowScrollingElement();
|
|
544
449
|
}
|
|
545
|
-
|
|
546
450
|
function extend(dst, src) {
|
|
547
451
|
if (dst && src) {
|
|
548
452
|
for (var key in src) {
|
|
@@ -551,49 +455,39 @@ function extend(dst, src) {
|
|
|
551
455
|
}
|
|
552
456
|
}
|
|
553
457
|
}
|
|
554
|
-
|
|
555
458
|
return dst;
|
|
556
459
|
}
|
|
557
|
-
|
|
558
460
|
function isRectEqual(rect1, rect2) {
|
|
559
461
|
return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);
|
|
560
462
|
}
|
|
561
|
-
|
|
562
463
|
var _throttleTimeout;
|
|
563
|
-
|
|
564
464
|
function throttle(callback, ms) {
|
|
565
465
|
return function () {
|
|
566
466
|
if (!_throttleTimeout) {
|
|
567
467
|
var args = arguments,
|
|
568
|
-
|
|
569
|
-
|
|
468
|
+
_this = this;
|
|
570
469
|
if (args.length === 1) {
|
|
571
470
|
callback.call(_this, args[0]);
|
|
572
471
|
} else {
|
|
573
472
|
callback.apply(_this, args);
|
|
574
473
|
}
|
|
575
|
-
|
|
576
474
|
_throttleTimeout = setTimeout(function () {
|
|
577
475
|
_throttleTimeout = void 0;
|
|
578
476
|
}, ms);
|
|
579
477
|
}
|
|
580
478
|
};
|
|
581
479
|
}
|
|
582
|
-
|
|
583
480
|
function cancelThrottle() {
|
|
584
481
|
clearTimeout(_throttleTimeout);
|
|
585
482
|
_throttleTimeout = void 0;
|
|
586
483
|
}
|
|
587
|
-
|
|
588
484
|
function scrollBy(el, x, y) {
|
|
589
485
|
el.scrollLeft += x;
|
|
590
486
|
el.scrollTop += y;
|
|
591
487
|
}
|
|
592
|
-
|
|
593
488
|
function clone(el) {
|
|
594
489
|
var Polymer = window.Polymer;
|
|
595
490
|
var $ = window.jQuery || window.Zepto;
|
|
596
|
-
|
|
597
491
|
if (Polymer && Polymer.dom) {
|
|
598
492
|
return Polymer.dom(el).cloneNode(true);
|
|
599
493
|
} else if ($) {
|
|
@@ -602,12 +496,28 @@ function clone(el) {
|
|
|
602
496
|
return el.cloneNode(true);
|
|
603
497
|
}
|
|
604
498
|
}
|
|
605
|
-
|
|
499
|
+
function getChildContainingRectFromElement(container, options, ghostEl) {
|
|
500
|
+
var rect = {};
|
|
501
|
+
Array.from(container.children).forEach(function (child) {
|
|
502
|
+
var _rect$left, _rect$top, _rect$right, _rect$bottom;
|
|
503
|
+
if (!closest(child, options.draggable, container, false) || child.animated || child === ghostEl) return;
|
|
504
|
+
var childRect = getRect(child);
|
|
505
|
+
rect.left = Math.min((_rect$left = rect.left) !== null && _rect$left !== void 0 ? _rect$left : Infinity, childRect.left);
|
|
506
|
+
rect.top = Math.min((_rect$top = rect.top) !== null && _rect$top !== void 0 ? _rect$top : Infinity, childRect.top);
|
|
507
|
+
rect.right = Math.max((_rect$right = rect.right) !== null && _rect$right !== void 0 ? _rect$right : -Infinity, childRect.right);
|
|
508
|
+
rect.bottom = Math.max((_rect$bottom = rect.bottom) !== null && _rect$bottom !== void 0 ? _rect$bottom : -Infinity, childRect.bottom);
|
|
509
|
+
});
|
|
510
|
+
rect.width = rect.right - rect.left;
|
|
511
|
+
rect.height = rect.bottom - rect.top;
|
|
512
|
+
rect.x = rect.left;
|
|
513
|
+
rect.y = rect.top;
|
|
514
|
+
return rect;
|
|
515
|
+
}
|
|
606
516
|
var expando = 'Sortable' + new Date().getTime();
|
|
607
517
|
|
|
608
518
|
function AnimationStateManager() {
|
|
609
519
|
var animationStates = [],
|
|
610
|
-
|
|
520
|
+
animationCallbackId;
|
|
611
521
|
return {
|
|
612
522
|
captureAnimationState: function captureAnimationState() {
|
|
613
523
|
animationStates = [];
|
|
@@ -619,19 +529,16 @@ function AnimationStateManager() {
|
|
|
619
529
|
target: child,
|
|
620
530
|
rect: getRect(child)
|
|
621
531
|
});
|
|
532
|
+
var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect);
|
|
622
533
|
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
534
|
+
// If animating: compensate for current animation
|
|
626
535
|
if (child.thisAnimationDuration) {
|
|
627
536
|
var childMatrix = matrix(child, true);
|
|
628
|
-
|
|
629
537
|
if (childMatrix) {
|
|
630
538
|
fromRect.top -= childMatrix.f;
|
|
631
539
|
fromRect.left -= childMatrix.e;
|
|
632
540
|
}
|
|
633
541
|
}
|
|
634
|
-
|
|
635
542
|
child.fromRect = fromRect;
|
|
636
543
|
});
|
|
637
544
|
},
|
|
@@ -645,54 +552,47 @@ function AnimationStateManager() {
|
|
|
645
552
|
},
|
|
646
553
|
animateAll: function animateAll(callback) {
|
|
647
554
|
var _this = this;
|
|
648
|
-
|
|
649
555
|
if (!this.options.animation) {
|
|
650
556
|
clearTimeout(animationCallbackId);
|
|
651
557
|
if (typeof callback === 'function') callback();
|
|
652
558
|
return;
|
|
653
559
|
}
|
|
654
|
-
|
|
655
560
|
var animating = false,
|
|
656
|
-
|
|
561
|
+
animationTime = 0;
|
|
657
562
|
animationStates.forEach(function (state) {
|
|
658
563
|
var time = 0,
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
564
|
+
target = state.target,
|
|
565
|
+
fromRect = target.fromRect,
|
|
566
|
+
toRect = getRect(target),
|
|
567
|
+
prevFromRect = target.prevFromRect,
|
|
568
|
+
prevToRect = target.prevToRect,
|
|
569
|
+
animatingRect = state.rect,
|
|
570
|
+
targetMatrix = matrix(target, true);
|
|
667
571
|
if (targetMatrix) {
|
|
668
572
|
// Compensate for current animation
|
|
669
573
|
toRect.top -= targetMatrix.f;
|
|
670
574
|
toRect.left -= targetMatrix.e;
|
|
671
575
|
}
|
|
672
|
-
|
|
673
576
|
target.toRect = toRect;
|
|
674
|
-
|
|
675
577
|
if (target.thisAnimationDuration) {
|
|
676
578
|
// Could also check if animatingRect is between fromRect and toRect
|
|
677
|
-
if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) &&
|
|
579
|
+
if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) &&
|
|
580
|
+
// Make sure animatingRect is on line between toRect & fromRect
|
|
678
581
|
(animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {
|
|
679
582
|
// If returning to same place as started from animation and on same axis
|
|
680
583
|
time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);
|
|
681
584
|
}
|
|
682
|
-
}
|
|
683
|
-
|
|
585
|
+
}
|
|
684
586
|
|
|
587
|
+
// if fromRect != toRect: animate
|
|
685
588
|
if (!isRectEqual(toRect, fromRect)) {
|
|
686
589
|
target.prevFromRect = fromRect;
|
|
687
590
|
target.prevToRect = toRect;
|
|
688
|
-
|
|
689
591
|
if (!time) {
|
|
690
592
|
time = _this.options.animation;
|
|
691
593
|
}
|
|
692
|
-
|
|
693
594
|
_this.animate(target, animatingRect, toRect, time);
|
|
694
595
|
}
|
|
695
|
-
|
|
696
596
|
if (time) {
|
|
697
597
|
animating = true;
|
|
698
598
|
animationTime = Math.max(animationTime, time);
|
|
@@ -708,7 +608,6 @@ function AnimationStateManager() {
|
|
|
708
608
|
}
|
|
709
609
|
});
|
|
710
610
|
clearTimeout(animationCallbackId);
|
|
711
|
-
|
|
712
611
|
if (!animating) {
|
|
713
612
|
if (typeof callback === 'function') callback();
|
|
714
613
|
} else {
|
|
@@ -716,7 +615,6 @@ function AnimationStateManager() {
|
|
|
716
615
|
if (typeof callback === 'function') callback();
|
|
717
616
|
}, animationTime);
|
|
718
617
|
}
|
|
719
|
-
|
|
720
618
|
animationStates = [];
|
|
721
619
|
},
|
|
722
620
|
animate: function animate(target, currentRect, toRect, duration) {
|
|
@@ -724,10 +622,10 @@ function AnimationStateManager() {
|
|
|
724
622
|
css(target, 'transition', '');
|
|
725
623
|
css(target, 'transform', '');
|
|
726
624
|
var elMatrix = matrix(this.el),
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
625
|
+
scaleX = elMatrix && elMatrix.a,
|
|
626
|
+
scaleY = elMatrix && elMatrix.d,
|
|
627
|
+
translateX = (currentRect.left - toRect.left) / (scaleX || 1),
|
|
628
|
+
translateY = (currentRect.top - toRect.top) / (scaleY || 1);
|
|
731
629
|
target.animatingX = !!translateX;
|
|
732
630
|
target.animatingY = !!translateY;
|
|
733
631
|
css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)');
|
|
@@ -747,11 +645,9 @@ function AnimationStateManager() {
|
|
|
747
645
|
}
|
|
748
646
|
};
|
|
749
647
|
}
|
|
750
|
-
|
|
751
648
|
function repaint(target) {
|
|
752
649
|
return target.offsetWidth;
|
|
753
650
|
}
|
|
754
|
-
|
|
755
651
|
function calculateRealTime(animatingRect, fromRect, toRect, options) {
|
|
756
652
|
return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;
|
|
757
653
|
}
|
|
@@ -768,7 +664,6 @@ var PluginManager = {
|
|
|
768
664
|
plugin[option] = defaults[option];
|
|
769
665
|
}
|
|
770
666
|
}
|
|
771
|
-
|
|
772
667
|
plugins.forEach(function (p) {
|
|
773
668
|
if (p.pluginName === plugin.pluginName) {
|
|
774
669
|
throw "Sortable: Cannot mount plugin ".concat(plugin.pluginName, " more than once");
|
|
@@ -778,25 +673,22 @@ var PluginManager = {
|
|
|
778
673
|
},
|
|
779
674
|
pluginEvent: function pluginEvent(eventName, sortable, evt) {
|
|
780
675
|
var _this = this;
|
|
781
|
-
|
|
782
676
|
this.eventCanceled = false;
|
|
783
|
-
|
|
784
677
|
evt.cancel = function () {
|
|
785
678
|
_this.eventCanceled = true;
|
|
786
679
|
};
|
|
787
|
-
|
|
788
680
|
var eventNameGlobal = eventName + 'Global';
|
|
789
681
|
plugins.forEach(function (plugin) {
|
|
790
|
-
if (!sortable[plugin.pluginName]) return;
|
|
791
|
-
|
|
682
|
+
if (!sortable[plugin.pluginName]) return;
|
|
683
|
+
// Fire global events if it exists in this sortable
|
|
792
684
|
if (sortable[plugin.pluginName][eventNameGlobal]) {
|
|
793
685
|
sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({
|
|
794
686
|
sortable: sortable
|
|
795
687
|
}, evt));
|
|
796
|
-
}
|
|
797
|
-
// and plugin has event defined
|
|
798
|
-
|
|
688
|
+
}
|
|
799
689
|
|
|
690
|
+
// Only fire plugin event if plugin is enabled in this sortable,
|
|
691
|
+
// and plugin has event defined
|
|
800
692
|
if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {
|
|
801
693
|
sortable[plugin.pluginName][eventName](_objectSpread2({
|
|
802
694
|
sortable: sortable
|
|
@@ -811,15 +703,14 @@ var PluginManager = {
|
|
|
811
703
|
var initialized = new plugin(sortable, el, sortable.options);
|
|
812
704
|
initialized.sortable = sortable;
|
|
813
705
|
initialized.options = sortable.options;
|
|
814
|
-
sortable[pluginName] = initialized;
|
|
706
|
+
sortable[pluginName] = initialized;
|
|
815
707
|
|
|
708
|
+
// Add default options from plugin
|
|
816
709
|
_extends(defaults, initialized.defaults);
|
|
817
710
|
});
|
|
818
|
-
|
|
819
711
|
for (var option in sortable.options) {
|
|
820
712
|
if (!sortable.options.hasOwnProperty(option)) continue;
|
|
821
713
|
var modified = this.modifyOption(sortable, option, sortable.options[option]);
|
|
822
|
-
|
|
823
714
|
if (typeof modified !== 'undefined') {
|
|
824
715
|
sortable.options[option] = modified;
|
|
825
716
|
}
|
|
@@ -829,7 +720,6 @@ var PluginManager = {
|
|
|
829
720
|
var eventProperties = {};
|
|
830
721
|
plugins.forEach(function (plugin) {
|
|
831
722
|
if (typeof plugin.eventProperties !== 'function') return;
|
|
832
|
-
|
|
833
723
|
_extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));
|
|
834
724
|
});
|
|
835
725
|
return eventProperties;
|
|
@@ -838,8 +728,9 @@ var PluginManager = {
|
|
|
838
728
|
var modifiedValue;
|
|
839
729
|
plugins.forEach(function (plugin) {
|
|
840
730
|
// Plugin must exist on the Sortable
|
|
841
|
-
if (!sortable[plugin.pluginName]) return;
|
|
731
|
+
if (!sortable[plugin.pluginName]) return;
|
|
842
732
|
|
|
733
|
+
// If static option listener exists for this option, call in the context of the Sortable's instance of this plugin
|
|
843
734
|
if (plugin.optionListeners && typeof plugin.optionListeners[name] === 'function') {
|
|
844
735
|
modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);
|
|
845
736
|
}
|
|
@@ -850,25 +741,25 @@ var PluginManager = {
|
|
|
850
741
|
|
|
851
742
|
function dispatchEvent(_ref) {
|
|
852
743
|
var sortable = _ref.sortable,
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
744
|
+
rootEl = _ref.rootEl,
|
|
745
|
+
name = _ref.name,
|
|
746
|
+
targetEl = _ref.targetEl,
|
|
747
|
+
cloneEl = _ref.cloneEl,
|
|
748
|
+
toEl = _ref.toEl,
|
|
749
|
+
fromEl = _ref.fromEl,
|
|
750
|
+
oldIndex = _ref.oldIndex,
|
|
751
|
+
newIndex = _ref.newIndex,
|
|
752
|
+
oldDraggableIndex = _ref.oldDraggableIndex,
|
|
753
|
+
newDraggableIndex = _ref.newDraggableIndex,
|
|
754
|
+
originalEvent = _ref.originalEvent,
|
|
755
|
+
putSortable = _ref.putSortable,
|
|
756
|
+
extraEventProperties = _ref.extraEventProperties;
|
|
866
757
|
sortable = sortable || rootEl && rootEl[expando];
|
|
867
758
|
if (!sortable) return;
|
|
868
759
|
var evt,
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
760
|
+
options = sortable.options,
|
|
761
|
+
onName = 'on' + name.charAt(0).toUpperCase() + name.substr(1);
|
|
762
|
+
// Support for new CustomEvent feature
|
|
872
763
|
if (window.CustomEvent && !IE11OrLess && !Edge) {
|
|
873
764
|
evt = new CustomEvent(name, {
|
|
874
765
|
bubbles: true,
|
|
@@ -878,7 +769,6 @@ function dispatchEvent(_ref) {
|
|
|
878
769
|
evt = document.createEvent('Event');
|
|
879
770
|
evt.initEvent(name, true, true);
|
|
880
771
|
}
|
|
881
|
-
|
|
882
772
|
evt.to = toEl || rootEl;
|
|
883
773
|
evt.from = fromEl || rootEl;
|
|
884
774
|
evt.item = targetEl || rootEl;
|
|
@@ -889,29 +779,23 @@ function dispatchEvent(_ref) {
|
|
|
889
779
|
evt.newDraggableIndex = newDraggableIndex;
|
|
890
780
|
evt.originalEvent = originalEvent;
|
|
891
781
|
evt.pullMode = putSortable ? putSortable.lastPutMode : undefined;
|
|
892
|
-
|
|
893
782
|
var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));
|
|
894
|
-
|
|
895
783
|
for (var option in allEventProperties) {
|
|
896
784
|
evt[option] = allEventProperties[option];
|
|
897
785
|
}
|
|
898
|
-
|
|
899
786
|
if (rootEl) {
|
|
900
787
|
rootEl.dispatchEvent(evt);
|
|
901
788
|
}
|
|
902
|
-
|
|
903
789
|
if (options[onName]) {
|
|
904
790
|
options[onName].call(sortable, evt);
|
|
905
791
|
}
|
|
906
792
|
}
|
|
907
793
|
|
|
908
794
|
var _excluded = ["evt"];
|
|
909
|
-
|
|
910
795
|
var pluginEvent = function pluginEvent(eventName, sortable) {
|
|
911
796
|
var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
797
|
+
originalEvent = _ref.evt,
|
|
798
|
+
data = _objectWithoutProperties(_ref, _excluded);
|
|
915
799
|
PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({
|
|
916
800
|
dragEl: dragEl,
|
|
917
801
|
parentEl: parentEl,
|
|
@@ -946,7 +830,6 @@ var pluginEvent = function pluginEvent(eventName, sortable) {
|
|
|
946
830
|
}
|
|
947
831
|
}, data));
|
|
948
832
|
};
|
|
949
|
-
|
|
950
833
|
function _dispatchEvent(info) {
|
|
951
834
|
dispatchEvent(_objectSpread2({
|
|
952
835
|
putSortable: putSortable,
|
|
@@ -959,62 +842,61 @@ function _dispatchEvent(info) {
|
|
|
959
842
|
newDraggableIndex: newDraggableIndex
|
|
960
843
|
}, info));
|
|
961
844
|
}
|
|
962
|
-
|
|
963
845
|
var dragEl,
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
ghostRelativeParent,
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
846
|
+
parentEl,
|
|
847
|
+
ghostEl,
|
|
848
|
+
rootEl,
|
|
849
|
+
nextEl,
|
|
850
|
+
lastDownEl,
|
|
851
|
+
cloneEl,
|
|
852
|
+
cloneHidden,
|
|
853
|
+
oldIndex,
|
|
854
|
+
newIndex,
|
|
855
|
+
oldDraggableIndex,
|
|
856
|
+
newDraggableIndex,
|
|
857
|
+
activeGroup,
|
|
858
|
+
putSortable,
|
|
859
|
+
awaitingDragStarted = false,
|
|
860
|
+
ignoreNextClick = false,
|
|
861
|
+
sortables = [],
|
|
862
|
+
tapEvt,
|
|
863
|
+
touchEvt,
|
|
864
|
+
lastDx,
|
|
865
|
+
lastDy,
|
|
866
|
+
tapDistanceLeft,
|
|
867
|
+
tapDistanceTop,
|
|
868
|
+
moved,
|
|
869
|
+
lastTarget,
|
|
870
|
+
lastDirection,
|
|
871
|
+
pastFirstInvertThresh = false,
|
|
872
|
+
isCircumstantialInvert = false,
|
|
873
|
+
targetMoveDistance,
|
|
874
|
+
// For positioning ghost absolutely
|
|
875
|
+
ghostRelativeParent,
|
|
876
|
+
ghostRelativeParentInitialScroll = [],
|
|
877
|
+
// (left, top)
|
|
878
|
+
|
|
879
|
+
_silent = false,
|
|
880
|
+
savedInputChecked = [];
|
|
999
881
|
|
|
882
|
+
/** @const */
|
|
1000
883
|
var documentExists = typeof document !== 'undefined',
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
supportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in document.createElement('div'),
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
var elCSS = css(el),
|
|
884
|
+
PositionGhostAbsolutely = IOS,
|
|
885
|
+
CSSFloatProperty = Edge || IE11OrLess ? 'cssFloat' : 'float',
|
|
886
|
+
// This will not pass for IE9, because IE9 DnD only works on anchors
|
|
887
|
+
supportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in document.createElement('div'),
|
|
888
|
+
supportCssPointerEvents = function () {
|
|
889
|
+
if (!documentExists) return;
|
|
890
|
+
// false when <= IE11
|
|
891
|
+
if (IE11OrLess) {
|
|
892
|
+
return false;
|
|
893
|
+
}
|
|
894
|
+
var el = document.createElement('x');
|
|
895
|
+
el.style.cssText = 'pointer-events:auto';
|
|
896
|
+
return el.style.pointerEvents === 'auto';
|
|
897
|
+
}(),
|
|
898
|
+
_detectDirection = function _detectDirection(el, options) {
|
|
899
|
+
var elCSS = css(el),
|
|
1018
900
|
elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth),
|
|
1019
901
|
child1 = getChild(el, 0, options),
|
|
1020
902
|
child2 = getChild(el, 1, options),
|
|
@@ -1022,102 +904,92 @@ supportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in
|
|
|
1022
904
|
secondChildCSS = child2 && css(child2),
|
|
1023
905
|
firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width,
|
|
1024
906
|
secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
return child1 && (firstChildCSS.display === 'block' || firstChildCSS.display === 'flex' || firstChildCSS.display === 'table' || firstChildCSS.display === 'grid' || firstChildWidth >= elWidth && elCSS[CSSFloatProperty] === 'none' || child2 && elCSS[CSSFloatProperty] === 'none' && firstChildWidth + secondChildWidth > elWidth) ? 'vertical' : 'horizontal';
|
|
1040
|
-
},
|
|
1041
|
-
_dragElInRowColumn = function _dragElInRowColumn(dragRect, targetRect, vertical) {
|
|
1042
|
-
var dragElS1Opp = vertical ? dragRect.left : dragRect.top,
|
|
907
|
+
if (elCSS.display === 'flex') {
|
|
908
|
+
return elCSS.flexDirection === 'column' || elCSS.flexDirection === 'column-reverse' ? 'vertical' : 'horizontal';
|
|
909
|
+
}
|
|
910
|
+
if (elCSS.display === 'grid') {
|
|
911
|
+
return elCSS.gridTemplateColumns.split(' ').length <= 1 ? 'vertical' : 'horizontal';
|
|
912
|
+
}
|
|
913
|
+
if (child1 && firstChildCSS["float"] && firstChildCSS["float"] !== 'none') {
|
|
914
|
+
var touchingSideChild2 = firstChildCSS["float"] === 'left' ? 'left' : 'right';
|
|
915
|
+
return child2 && (secondChildCSS.clear === 'both' || secondChildCSS.clear === touchingSideChild2) ? 'vertical' : 'horizontal';
|
|
916
|
+
}
|
|
917
|
+
return child1 && (firstChildCSS.display === 'block' || firstChildCSS.display === 'flex' || firstChildCSS.display === 'table' || firstChildCSS.display === 'grid' || firstChildWidth >= elWidth && elCSS[CSSFloatProperty] === 'none' || child2 && elCSS[CSSFloatProperty] === 'none' && firstChildWidth + secondChildWidth > elWidth) ? 'vertical' : 'horizontal';
|
|
918
|
+
},
|
|
919
|
+
_dragElInRowColumn = function _dragElInRowColumn(dragRect, targetRect, vertical) {
|
|
920
|
+
var dragElS1Opp = vertical ? dragRect.left : dragRect.top,
|
|
1043
921
|
dragElS2Opp = vertical ? dragRect.right : dragRect.bottom,
|
|
1044
922
|
dragElOppLength = vertical ? dragRect.width : dragRect.height,
|
|
1045
923
|
targetS1Opp = vertical ? targetRect.left : targetRect.top,
|
|
1046
924
|
targetS2Opp = vertical ? targetRect.right : targetRect.bottom,
|
|
1047
925
|
targetOppLength = vertical ? targetRect.width : targetRect.height;
|
|
1048
|
-
|
|
1049
|
-
},
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
var rect = getRect(sortable),
|
|
926
|
+
return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
|
|
927
|
+
},
|
|
928
|
+
/**
|
|
929
|
+
* Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
|
|
930
|
+
* @param {Number} x X position
|
|
931
|
+
* @param {Number} y Y position
|
|
932
|
+
* @return {HTMLElement} Element of the first found nearest Sortable
|
|
933
|
+
*/
|
|
934
|
+
_detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
|
|
935
|
+
var ret;
|
|
936
|
+
sortables.some(function (sortable) {
|
|
937
|
+
var threshold = sortable[expando].options.emptyInsertThreshold;
|
|
938
|
+
if (!threshold || lastChild(sortable)) return;
|
|
939
|
+
var rect = getRect(sortable),
|
|
1063
940
|
insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold,
|
|
1064
941
|
insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
return ret = sortable;
|
|
1068
|
-
}
|
|
1069
|
-
});
|
|
1070
|
-
return ret;
|
|
1071
|
-
},
|
|
1072
|
-
_prepareGroup = function _prepareGroup(options) {
|
|
1073
|
-
function toFn(value, pull) {
|
|
1074
|
-
return function (to, from, dragEl, evt) {
|
|
1075
|
-
var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;
|
|
1076
|
-
|
|
1077
|
-
if (value == null && (pull || sameGroup)) {
|
|
1078
|
-
// Default pull value
|
|
1079
|
-
// Default pull and put value if same group
|
|
1080
|
-
return true;
|
|
1081
|
-
} else if (value == null || value === false) {
|
|
1082
|
-
return false;
|
|
1083
|
-
} else if (pull && value === 'clone') {
|
|
1084
|
-
return value;
|
|
1085
|
-
} else if (typeof value === 'function') {
|
|
1086
|
-
return toFn(value(to, from, dragEl, evt), pull)(to, from, dragEl, evt);
|
|
1087
|
-
} else {
|
|
1088
|
-
var otherGroup = (pull ? to : from).options.group.name;
|
|
1089
|
-
return value === true || typeof value === 'string' && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;
|
|
942
|
+
if (insideHorizontally && insideVertically) {
|
|
943
|
+
return ret = sortable;
|
|
1090
944
|
}
|
|
1091
|
-
};
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
945
|
+
});
|
|
946
|
+
return ret;
|
|
947
|
+
},
|
|
948
|
+
_prepareGroup = function _prepareGroup(options) {
|
|
949
|
+
function toFn(value, pull) {
|
|
950
|
+
return function (to, from, dragEl, evt) {
|
|
951
|
+
var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;
|
|
952
|
+
if (value == null && (pull || sameGroup)) {
|
|
953
|
+
// Default pull value
|
|
954
|
+
// Default pull and put value if same group
|
|
955
|
+
return true;
|
|
956
|
+
} else if (value == null || value === false) {
|
|
957
|
+
return false;
|
|
958
|
+
} else if (pull && value === 'clone') {
|
|
959
|
+
return value;
|
|
960
|
+
} else if (typeof value === 'function') {
|
|
961
|
+
return toFn(value(to, from, dragEl, evt), pull)(to, from, dragEl, evt);
|
|
962
|
+
} else {
|
|
963
|
+
var otherGroup = (pull ? to : from).options.group.name;
|
|
964
|
+
return value === true || typeof value === 'string' && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;
|
|
965
|
+
}
|
|
966
|
+
};
|
|
967
|
+
}
|
|
968
|
+
var group = {};
|
|
969
|
+
var originalGroup = options.group;
|
|
970
|
+
if (!originalGroup || _typeof(originalGroup) != 'object') {
|
|
971
|
+
originalGroup = {
|
|
972
|
+
name: originalGroup
|
|
973
|
+
};
|
|
974
|
+
}
|
|
975
|
+
group.name = originalGroup.name;
|
|
976
|
+
group.checkPull = toFn(originalGroup.pull, true);
|
|
977
|
+
group.checkPut = toFn(originalGroup.put);
|
|
978
|
+
group.revertClone = originalGroup.revertClone;
|
|
979
|
+
options.group = group;
|
|
980
|
+
},
|
|
981
|
+
_hideGhostForTarget = function _hideGhostForTarget() {
|
|
982
|
+
if (!supportCssPointerEvents && ghostEl) {
|
|
983
|
+
css(ghostEl, 'display', 'none');
|
|
984
|
+
}
|
|
985
|
+
},
|
|
986
|
+
_unhideGhostForTarget = function _unhideGhostForTarget() {
|
|
987
|
+
if (!supportCssPointerEvents && ghostEl) {
|
|
988
|
+
css(ghostEl, 'display', '');
|
|
989
|
+
}
|
|
990
|
+
};
|
|
1120
991
|
|
|
992
|
+
// #1184 fix - Prevent click event on fallback if dragged but item not changed position
|
|
1121
993
|
if (documentExists && !ChromeForAndroid) {
|
|
1122
994
|
document.addEventListener('click', function (evt) {
|
|
1123
995
|
if (ignoreNextClick) {
|
|
@@ -1129,53 +1001,44 @@ if (documentExists && !ChromeForAndroid) {
|
|
|
1129
1001
|
}
|
|
1130
1002
|
}, true);
|
|
1131
1003
|
}
|
|
1132
|
-
|
|
1133
1004
|
var nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) {
|
|
1134
1005
|
if (dragEl) {
|
|
1135
1006
|
evt = evt.touches ? evt.touches[0] : evt;
|
|
1136
|
-
|
|
1137
1007
|
var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);
|
|
1138
|
-
|
|
1139
1008
|
if (nearest) {
|
|
1140
1009
|
// Create imitation event
|
|
1141
1010
|
var event = {};
|
|
1142
|
-
|
|
1143
1011
|
for (var i in evt) {
|
|
1144
1012
|
if (evt.hasOwnProperty(i)) {
|
|
1145
1013
|
event[i] = evt[i];
|
|
1146
1014
|
}
|
|
1147
1015
|
}
|
|
1148
|
-
|
|
1149
1016
|
event.target = event.rootEl = nearest;
|
|
1150
1017
|
event.preventDefault = void 0;
|
|
1151
1018
|
event.stopPropagation = void 0;
|
|
1152
|
-
|
|
1153
1019
|
nearest[expando]._onDragOver(event);
|
|
1154
1020
|
}
|
|
1155
1021
|
}
|
|
1156
1022
|
};
|
|
1157
|
-
|
|
1158
1023
|
var _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {
|
|
1159
1024
|
if (dragEl) {
|
|
1160
1025
|
dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
|
|
1161
1026
|
}
|
|
1162
1027
|
};
|
|
1028
|
+
|
|
1163
1029
|
/**
|
|
1164
1030
|
* @class Sortable
|
|
1165
1031
|
* @param {HTMLElement} el
|
|
1166
1032
|
* @param {Object} [options]
|
|
1167
1033
|
*/
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
1034
|
function Sortable(el, options) {
|
|
1171
1035
|
if (!(el && el.nodeType && el.nodeType === 1)) {
|
|
1172
1036
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(el));
|
|
1173
1037
|
}
|
|
1174
|
-
|
|
1175
1038
|
this.el = el; // root element
|
|
1039
|
+
this.options = options = _extends({}, options);
|
|
1176
1040
|
|
|
1177
|
-
|
|
1178
|
-
|
|
1041
|
+
// Export instance
|
|
1179
1042
|
el[expando] = this;
|
|
1180
1043
|
var defaults = {
|
|
1181
1044
|
group: null,
|
|
@@ -1219,55 +1082,52 @@ function Sortable(el, options) {
|
|
|
1219
1082
|
x: 0,
|
|
1220
1083
|
y: 0
|
|
1221
1084
|
},
|
|
1222
|
-
|
|
1085
|
+
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
1086
|
+
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && (!Safari || IOS),
|
|
1223
1087
|
emptyInsertThreshold: 5
|
|
1224
1088
|
};
|
|
1225
|
-
PluginManager.initializePlugins(this, el, defaults);
|
|
1089
|
+
PluginManager.initializePlugins(this, el, defaults);
|
|
1226
1090
|
|
|
1091
|
+
// Set default options
|
|
1227
1092
|
for (var name in defaults) {
|
|
1228
1093
|
!(name in options) && (options[name] = defaults[name]);
|
|
1229
1094
|
}
|
|
1095
|
+
_prepareGroup(options);
|
|
1230
1096
|
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1097
|
+
// Bind all private methods
|
|
1234
1098
|
for (var fn in this) {
|
|
1235
1099
|
if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {
|
|
1236
1100
|
this[fn] = this[fn].bind(this);
|
|
1237
1101
|
}
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1102
|
+
}
|
|
1240
1103
|
|
|
1104
|
+
// Setup drag mode
|
|
1241
1105
|
this.nativeDraggable = options.forceFallback ? false : supportDraggable;
|
|
1242
|
-
|
|
1243
1106
|
if (this.nativeDraggable) {
|
|
1244
1107
|
// Touch start threshold cannot be greater than the native dragstart threshold
|
|
1245
1108
|
this.options.touchStartThreshold = 1;
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1109
|
+
}
|
|
1248
1110
|
|
|
1111
|
+
// Bind events
|
|
1249
1112
|
if (options.supportPointer) {
|
|
1250
1113
|
on(el, 'pointerdown', this._onTapStart);
|
|
1251
1114
|
} else {
|
|
1252
1115
|
on(el, 'mousedown', this._onTapStart);
|
|
1253
1116
|
on(el, 'touchstart', this._onTapStart);
|
|
1254
1117
|
}
|
|
1255
|
-
|
|
1256
1118
|
if (this.nativeDraggable) {
|
|
1257
1119
|
on(el, 'dragover', this);
|
|
1258
1120
|
on(el, 'dragenter', this);
|
|
1259
1121
|
}
|
|
1122
|
+
sortables.push(this.el);
|
|
1260
1123
|
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
options.store && options.store.get && this.sort(options.store.get(this) || []); // Add animation state manager
|
|
1124
|
+
// Restore sorting
|
|
1125
|
+
options.store && options.store.get && this.sort(options.store.get(this) || []);
|
|
1264
1126
|
|
|
1127
|
+
// Add animation state manager
|
|
1265
1128
|
_extends(this, AnimationStateManager());
|
|
1266
1129
|
}
|
|
1267
|
-
|
|
1268
|
-
Sortable.prototype =
|
|
1269
|
-
/** @lends Sortable.prototype */
|
|
1270
|
-
{
|
|
1130
|
+
Sortable.prototype = /** @lends Sortable.prototype */{
|
|
1271
1131
|
constructor: Sortable,
|
|
1272
1132
|
_isOutsideThisEl: function _isOutsideThisEl(target) {
|
|
1273
1133
|
if (!this.el.contains(target) && target !== this.el) {
|
|
@@ -1277,57 +1137,50 @@ Sortable.prototype =
|
|
|
1277
1137
|
_getDirection: function _getDirection(evt, target) {
|
|
1278
1138
|
return typeof this.options.direction === 'function' ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;
|
|
1279
1139
|
},
|
|
1280
|
-
_onTapStart: function _onTapStart(
|
|
1281
|
-
/** Event|TouchEvent */
|
|
1282
|
-
evt) {
|
|
1140
|
+
_onTapStart: function _onTapStart( /** Event|TouchEvent */evt) {
|
|
1283
1141
|
if (!evt.cancelable) return;
|
|
1284
|
-
|
|
1285
1142
|
var _this = this,
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1143
|
+
el = this.el,
|
|
1144
|
+
options = this.options,
|
|
1145
|
+
preventOnFilter = options.preventOnFilter,
|
|
1146
|
+
type = evt.type,
|
|
1147
|
+
touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === 'touch' && evt,
|
|
1148
|
+
target = (touch || evt).target,
|
|
1149
|
+
originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target,
|
|
1150
|
+
filter = options.filter;
|
|
1151
|
+
_saveInputCheckedState(el);
|
|
1152
|
+
|
|
1153
|
+
// Don't trigger start event when an element is been dragged, otherwise the evt.oldindex always wrong when set option.group.
|
|
1298
1154
|
if (dragEl) {
|
|
1299
1155
|
return;
|
|
1300
1156
|
}
|
|
1301
|
-
|
|
1302
1157
|
if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {
|
|
1303
1158
|
return; // only left button and enabled
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1159
|
+
}
|
|
1306
1160
|
|
|
1161
|
+
// cancel dnd if original target is content editable
|
|
1307
1162
|
if (originalTarget.isContentEditable) {
|
|
1308
1163
|
return;
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1164
|
+
}
|
|
1311
1165
|
|
|
1166
|
+
// Safari ignores further event handling after mousedown
|
|
1312
1167
|
if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === 'SELECT') {
|
|
1313
1168
|
return;
|
|
1314
1169
|
}
|
|
1315
|
-
|
|
1316
1170
|
target = closest(target, options.draggable, el, false);
|
|
1317
|
-
|
|
1318
1171
|
if (target && target.animated) {
|
|
1319
1172
|
return;
|
|
1320
1173
|
}
|
|
1321
|
-
|
|
1322
1174
|
if (lastDownEl === target) {
|
|
1323
1175
|
// Ignoring duplicate `down`
|
|
1324
1176
|
return;
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1177
|
+
}
|
|
1327
1178
|
|
|
1179
|
+
// Get the index of the dragged element within its parent
|
|
1328
1180
|
oldIndex = index(target);
|
|
1329
|
-
oldDraggableIndex = index(target, options.draggable);
|
|
1181
|
+
oldDraggableIndex = index(target, options.draggable);
|
|
1330
1182
|
|
|
1183
|
+
// Check filter
|
|
1331
1184
|
if (typeof filter === 'function') {
|
|
1332
1185
|
if (filter.call(this, evt, target, this)) {
|
|
1333
1186
|
_dispatchEvent({
|
|
@@ -1338,17 +1191,15 @@ Sortable.prototype =
|
|
|
1338
1191
|
toEl: el,
|
|
1339
1192
|
fromEl: el
|
|
1340
1193
|
});
|
|
1341
|
-
|
|
1342
1194
|
pluginEvent('filter', _this, {
|
|
1343
1195
|
evt: evt
|
|
1344
1196
|
});
|
|
1345
|
-
preventOnFilter && evt.
|
|
1197
|
+
preventOnFilter && evt.preventDefault();
|
|
1346
1198
|
return; // cancel dnd
|
|
1347
1199
|
}
|
|
1348
1200
|
} else if (filter) {
|
|
1349
1201
|
filter = filter.split(',').some(function (criteria) {
|
|
1350
1202
|
criteria = closest(originalTarget, criteria.trim(), el, false);
|
|
1351
|
-
|
|
1352
1203
|
if (criteria) {
|
|
1353
1204
|
_dispatchEvent({
|
|
1354
1205
|
sortable: _this,
|
|
@@ -1358,40 +1209,30 @@ Sortable.prototype =
|
|
|
1358
1209
|
fromEl: el,
|
|
1359
1210
|
toEl: el
|
|
1360
1211
|
});
|
|
1361
|
-
|
|
1362
1212
|
pluginEvent('filter', _this, {
|
|
1363
1213
|
evt: evt
|
|
1364
1214
|
});
|
|
1365
1215
|
return true;
|
|
1366
1216
|
}
|
|
1367
1217
|
});
|
|
1368
|
-
|
|
1369
1218
|
if (filter) {
|
|
1370
|
-
preventOnFilter && evt.
|
|
1219
|
+
preventOnFilter && evt.preventDefault();
|
|
1371
1220
|
return; // cancel dnd
|
|
1372
1221
|
}
|
|
1373
1222
|
}
|
|
1374
|
-
|
|
1375
1223
|
if (options.handle && !closest(originalTarget, options.handle, el, false)) {
|
|
1376
1224
|
return;
|
|
1377
|
-
}
|
|
1378
|
-
|
|
1225
|
+
}
|
|
1379
1226
|
|
|
1227
|
+
// Prepare `dragstart`
|
|
1380
1228
|
this._prepareDragStart(evt, touch, target);
|
|
1381
1229
|
},
|
|
1382
|
-
_prepareDragStart: function _prepareDragStart(
|
|
1383
|
-
/** Event */
|
|
1384
|
-
evt,
|
|
1385
|
-
/** Touch */
|
|
1386
|
-
touch,
|
|
1387
|
-
/** HTMLElement */
|
|
1388
|
-
target) {
|
|
1230
|
+
_prepareDragStart: function _prepareDragStart( /** Event */evt, /** Touch */touch, /** HTMLElement */target) {
|
|
1389
1231
|
var _this = this,
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1232
|
+
el = _this.el,
|
|
1233
|
+
options = _this.options,
|
|
1234
|
+
ownerDocument = el.ownerDocument,
|
|
1235
|
+
dragStartFn;
|
|
1395
1236
|
if (target && !dragEl && target.parentNode === el) {
|
|
1396
1237
|
var dragRect = getRect(target);
|
|
1397
1238
|
rootEl = el;
|
|
@@ -1411,73 +1252,78 @@ Sortable.prototype =
|
|
|
1411
1252
|
this._lastX = (touch || evt).clientX;
|
|
1412
1253
|
this._lastY = (touch || evt).clientY;
|
|
1413
1254
|
dragEl.style['will-change'] = 'all';
|
|
1414
|
-
|
|
1415
1255
|
dragStartFn = function dragStartFn() {
|
|
1416
1256
|
pluginEvent('delayEnded', _this, {
|
|
1417
1257
|
evt: evt
|
|
1418
1258
|
});
|
|
1419
|
-
|
|
1420
1259
|
if (Sortable.eventCanceled) {
|
|
1421
1260
|
_this._onDrop();
|
|
1422
|
-
|
|
1423
1261
|
return;
|
|
1424
|
-
}
|
|
1262
|
+
}
|
|
1263
|
+
// Delayed drag has been triggered
|
|
1425
1264
|
// we can re-enable the events: touchmove/mousemove
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
1265
|
_this._disableDelayedDragEvents();
|
|
1429
|
-
|
|
1430
1266
|
if (!FireFox && _this.nativeDraggable) {
|
|
1431
1267
|
dragEl.draggable = true;
|
|
1432
|
-
}
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
_this._triggerDragStart(evt, touch); // Drag start event
|
|
1268
|
+
}
|
|
1436
1269
|
|
|
1270
|
+
// Bind the events: dragstart/dragend
|
|
1271
|
+
_this._triggerDragStart(evt, touch);
|
|
1437
1272
|
|
|
1273
|
+
// Drag start event
|
|
1438
1274
|
_dispatchEvent({
|
|
1439
1275
|
sortable: _this,
|
|
1440
1276
|
name: 'choose',
|
|
1441
1277
|
originalEvent: evt
|
|
1442
|
-
});
|
|
1443
|
-
|
|
1278
|
+
});
|
|
1444
1279
|
|
|
1280
|
+
// Chosen item
|
|
1445
1281
|
toggleClass(dragEl, options.chosenClass, true);
|
|
1446
|
-
};
|
|
1447
|
-
|
|
1282
|
+
};
|
|
1448
1283
|
|
|
1284
|
+
// Disable "draggable"
|
|
1449
1285
|
options.ignore.split(',').forEach(function (criteria) {
|
|
1450
1286
|
find(dragEl, criteria.trim(), _disableDraggable);
|
|
1451
1287
|
});
|
|
1452
1288
|
on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent);
|
|
1453
1289
|
on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent);
|
|
1454
1290
|
on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent);
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1291
|
+
if (options.supportPointer) {
|
|
1292
|
+
on(ownerDocument, 'pointerup', _this._onDrop);
|
|
1293
|
+
// Native D&D triggers pointercancel
|
|
1294
|
+
!this.nativeDraggable && on(ownerDocument, 'pointercancel', _this._onDrop);
|
|
1295
|
+
} else {
|
|
1296
|
+
on(ownerDocument, 'mouseup', _this._onDrop);
|
|
1297
|
+
on(ownerDocument, 'touchend', _this._onDrop);
|
|
1298
|
+
on(ownerDocument, 'touchcancel', _this._onDrop);
|
|
1299
|
+
}
|
|
1458
1300
|
|
|
1301
|
+
// Make dragEl draggable (must be before delay for FireFox)
|
|
1459
1302
|
if (FireFox && this.nativeDraggable) {
|
|
1460
1303
|
this.options.touchStartThreshold = 4;
|
|
1461
1304
|
dragEl.draggable = true;
|
|
1462
1305
|
}
|
|
1463
|
-
|
|
1464
1306
|
pluginEvent('delayStart', this, {
|
|
1465
1307
|
evt: evt
|
|
1466
|
-
});
|
|
1308
|
+
});
|
|
1467
1309
|
|
|
1310
|
+
// Delay is impossible for native DnD in Edge or IE
|
|
1468
1311
|
if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {
|
|
1469
1312
|
if (Sortable.eventCanceled) {
|
|
1470
1313
|
this._onDrop();
|
|
1471
|
-
|
|
1472
1314
|
return;
|
|
1473
|
-
}
|
|
1315
|
+
}
|
|
1316
|
+
// If the user moves the pointer or let go the click or touch
|
|
1474
1317
|
// before the delay has been reached:
|
|
1475
1318
|
// disable the delayed drag
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1319
|
+
if (options.supportPointer) {
|
|
1320
|
+
on(ownerDocument, 'pointerup', _this._disableDelayedDrag);
|
|
1321
|
+
on(ownerDocument, 'pointercancel', _this._disableDelayedDrag);
|
|
1322
|
+
} else {
|
|
1323
|
+
on(ownerDocument, 'mouseup', _this._disableDelayedDrag);
|
|
1324
|
+
on(ownerDocument, 'touchend', _this._disableDelayedDrag);
|
|
1325
|
+
on(ownerDocument, 'touchcancel', _this._disableDelayedDrag);
|
|
1326
|
+
}
|
|
1481
1327
|
on(ownerDocument, 'mousemove', _this._delayedDragTouchMoveHandler);
|
|
1482
1328
|
on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler);
|
|
1483
1329
|
options.supportPointer && on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler);
|
|
@@ -1487,11 +1333,8 @@ Sortable.prototype =
|
|
|
1487
1333
|
}
|
|
1488
1334
|
}
|
|
1489
1335
|
},
|
|
1490
|
-
_delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(
|
|
1491
|
-
/** TouchEvent|PointerEvent **/
|
|
1492
|
-
e) {
|
|
1336
|
+
_delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler( /** TouchEvent|PointerEvent **/e) {
|
|
1493
1337
|
var touch = e.touches ? e.touches[0] : e;
|
|
1494
|
-
|
|
1495
1338
|
if (Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1))) {
|
|
1496
1339
|
this._disableDelayedDrag();
|
|
1497
1340
|
}
|
|
@@ -1499,7 +1342,6 @@ Sortable.prototype =
|
|
|
1499
1342
|
_disableDelayedDrag: function _disableDelayedDrag() {
|
|
1500
1343
|
dragEl && _disableDraggable(dragEl);
|
|
1501
1344
|
clearTimeout(this._dragStartTimer);
|
|
1502
|
-
|
|
1503
1345
|
this._disableDelayedDragEvents();
|
|
1504
1346
|
},
|
|
1505
1347
|
_disableDelayedDragEvents: function _disableDelayedDragEvents() {
|
|
@@ -1507,17 +1349,14 @@ Sortable.prototype =
|
|
|
1507
1349
|
off(ownerDocument, 'mouseup', this._disableDelayedDrag);
|
|
1508
1350
|
off(ownerDocument, 'touchend', this._disableDelayedDrag);
|
|
1509
1351
|
off(ownerDocument, 'touchcancel', this._disableDelayedDrag);
|
|
1352
|
+
off(ownerDocument, 'pointerup', this._disableDelayedDrag);
|
|
1353
|
+
off(ownerDocument, 'pointercancel', this._disableDelayedDrag);
|
|
1510
1354
|
off(ownerDocument, 'mousemove', this._delayedDragTouchMoveHandler);
|
|
1511
1355
|
off(ownerDocument, 'touchmove', this._delayedDragTouchMoveHandler);
|
|
1512
1356
|
off(ownerDocument, 'pointermove', this._delayedDragTouchMoveHandler);
|
|
1513
1357
|
},
|
|
1514
|
-
_triggerDragStart: function _triggerDragStart(
|
|
1515
|
-
/** Event */
|
|
1516
|
-
evt,
|
|
1517
|
-
/** Touch */
|
|
1518
|
-
touch) {
|
|
1358
|
+
_triggerDragStart: function _triggerDragStart( /** Event */evt, /** Touch */touch) {
|
|
1519
1359
|
touch = touch || evt.pointerType == 'touch' && evt;
|
|
1520
|
-
|
|
1521
1360
|
if (!this.nativeDraggable || touch) {
|
|
1522
1361
|
if (this.options.supportPointer) {
|
|
1523
1362
|
on(document, 'pointermove', this._onTouchMove);
|
|
@@ -1530,10 +1369,8 @@ Sortable.prototype =
|
|
|
1530
1369
|
on(dragEl, 'dragend', this);
|
|
1531
1370
|
on(rootEl, 'dragstart', this._onDragStart);
|
|
1532
1371
|
}
|
|
1533
|
-
|
|
1534
1372
|
try {
|
|
1535
1373
|
if (document.selection) {
|
|
1536
|
-
// Timeout neccessary for IE9
|
|
1537
1374
|
_nextTick(function () {
|
|
1538
1375
|
document.selection.empty();
|
|
1539
1376
|
});
|
|
@@ -1543,25 +1380,23 @@ Sortable.prototype =
|
|
|
1543
1380
|
} catch (err) {}
|
|
1544
1381
|
},
|
|
1545
1382
|
_dragStarted: function _dragStarted(fallback, evt) {
|
|
1546
|
-
|
|
1547
1383
|
awaitingDragStarted = false;
|
|
1548
|
-
|
|
1549
1384
|
if (rootEl && dragEl) {
|
|
1550
1385
|
pluginEvent('dragStarted', this, {
|
|
1551
1386
|
evt: evt
|
|
1552
1387
|
});
|
|
1553
|
-
|
|
1554
1388
|
if (this.nativeDraggable) {
|
|
1555
1389
|
on(document, 'dragover', _checkOutsideTargetEl);
|
|
1556
1390
|
}
|
|
1391
|
+
var options = this.options;
|
|
1557
1392
|
|
|
1558
|
-
|
|
1559
|
-
|
|
1393
|
+
// Apply effect
|
|
1560
1394
|
!fallback && toggleClass(dragEl, options.dragClass, false);
|
|
1561
1395
|
toggleClass(dragEl, options.ghostClass, true);
|
|
1562
1396
|
Sortable.active = this;
|
|
1563
|
-
fallback && this._appendGhost();
|
|
1397
|
+
fallback && this._appendGhost();
|
|
1564
1398
|
|
|
1399
|
+
// Drag start event
|
|
1565
1400
|
_dispatchEvent({
|
|
1566
1401
|
sortable: this,
|
|
1567
1402
|
name: 'start',
|
|
@@ -1575,20 +1410,15 @@ Sortable.prototype =
|
|
|
1575
1410
|
if (touchEvt) {
|
|
1576
1411
|
this._lastX = touchEvt.clientX;
|
|
1577
1412
|
this._lastY = touchEvt.clientY;
|
|
1578
|
-
|
|
1579
1413
|
_hideGhostForTarget();
|
|
1580
|
-
|
|
1581
1414
|
var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
|
|
1582
1415
|
var parent = target;
|
|
1583
|
-
|
|
1584
1416
|
while (target && target.shadowRoot) {
|
|
1585
1417
|
target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
|
|
1586
1418
|
if (target === parent) break;
|
|
1587
1419
|
parent = target;
|
|
1588
1420
|
}
|
|
1589
|
-
|
|
1590
1421
|
dragEl.parentNode[expando]._isOutsideThisEl(target);
|
|
1591
|
-
|
|
1592
1422
|
if (parent) {
|
|
1593
1423
|
do {
|
|
1594
1424
|
if (parent[expando]) {
|
|
@@ -1599,44 +1429,37 @@ Sortable.prototype =
|
|
|
1599
1429
|
target: target,
|
|
1600
1430
|
rootEl: parent
|
|
1601
1431
|
});
|
|
1602
|
-
|
|
1603
1432
|
if (inserted && !this.options.dragoverBubble) {
|
|
1604
1433
|
break;
|
|
1605
1434
|
}
|
|
1606
1435
|
}
|
|
1607
|
-
|
|
1608
1436
|
target = parent; // store last element
|
|
1609
1437
|
}
|
|
1610
|
-
/* jshint boss:true */
|
|
1611
|
-
while (parent = parent.parentNode);
|
|
1438
|
+
/* jshint boss:true */ while (parent = getParentOrHost(parent));
|
|
1612
1439
|
}
|
|
1613
|
-
|
|
1614
1440
|
_unhideGhostForTarget();
|
|
1615
1441
|
}
|
|
1616
1442
|
},
|
|
1617
|
-
_onTouchMove: function _onTouchMove(
|
|
1618
|
-
/**TouchEvent*/
|
|
1619
|
-
evt) {
|
|
1443
|
+
_onTouchMove: function _onTouchMove( /**TouchEvent*/evt) {
|
|
1620
1444
|
if (tapEvt) {
|
|
1621
1445
|
var options = this.options,
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1446
|
+
fallbackTolerance = options.fallbackTolerance,
|
|
1447
|
+
fallbackOffset = options.fallbackOffset,
|
|
1448
|
+
touch = evt.touches ? evt.touches[0] : evt,
|
|
1449
|
+
ghostMatrix = ghostEl && matrix(ghostEl, true),
|
|
1450
|
+
scaleX = ghostEl && ghostMatrix && ghostMatrix.a,
|
|
1451
|
+
scaleY = ghostEl && ghostMatrix && ghostMatrix.d,
|
|
1452
|
+
relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent),
|
|
1453
|
+
dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1),
|
|
1454
|
+
dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1);
|
|
1455
|
+
|
|
1456
|
+
// only set the status to dragging, when we are actually dragging
|
|
1632
1457
|
if (!Sortable.active && !awaitingDragStarted) {
|
|
1633
1458
|
if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {
|
|
1634
1459
|
return;
|
|
1635
1460
|
}
|
|
1636
|
-
|
|
1637
1461
|
this._onDragStart(evt, true);
|
|
1638
1462
|
}
|
|
1639
|
-
|
|
1640
1463
|
if (ghostEl) {
|
|
1641
1464
|
if (ghostMatrix) {
|
|
1642
1465
|
ghostMatrix.e += dx - (lastDx || 0);
|
|
@@ -1651,7 +1474,6 @@ Sortable.prototype =
|
|
|
1651
1474
|
f: dy
|
|
1652
1475
|
};
|
|
1653
1476
|
}
|
|
1654
|
-
|
|
1655
1477
|
var cssMatrix = "matrix(".concat(ghostMatrix.a, ",").concat(ghostMatrix.b, ",").concat(ghostMatrix.c, ",").concat(ghostMatrix.d, ",").concat(ghostMatrix.e, ",").concat(ghostMatrix.f, ")");
|
|
1656
1478
|
css(ghostEl, 'webkitTransform', cssMatrix);
|
|
1657
1479
|
css(ghostEl, 'mozTransform', cssMatrix);
|
|
@@ -1661,7 +1483,6 @@ Sortable.prototype =
|
|
|
1661
1483
|
lastDy = dy;
|
|
1662
1484
|
touchEvt = touch;
|
|
1663
1485
|
}
|
|
1664
|
-
|
|
1665
1486
|
evt.cancelable && evt.preventDefault();
|
|
1666
1487
|
}
|
|
1667
1488
|
},
|
|
@@ -1670,17 +1491,16 @@ Sortable.prototype =
|
|
|
1670
1491
|
// Not being adjusted for
|
|
1671
1492
|
if (!ghostEl) {
|
|
1672
1493
|
var container = this.options.fallbackOnBody ? document.body : rootEl,
|
|
1673
|
-
|
|
1674
|
-
|
|
1494
|
+
rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container),
|
|
1495
|
+
options = this.options;
|
|
1675
1496
|
|
|
1497
|
+
// Position absolutely
|
|
1676
1498
|
if (PositionGhostAbsolutely) {
|
|
1677
1499
|
// Get relatively positioned parent
|
|
1678
1500
|
ghostRelativeParent = container;
|
|
1679
|
-
|
|
1680
1501
|
while (css(ghostRelativeParent, 'position') === 'static' && css(ghostRelativeParent, 'transform') === 'none' && ghostRelativeParent !== document) {
|
|
1681
1502
|
ghostRelativeParent = ghostRelativeParent.parentNode;
|
|
1682
1503
|
}
|
|
1683
|
-
|
|
1684
1504
|
if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {
|
|
1685
1505
|
if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();
|
|
1686
1506
|
rect.top += ghostRelativeParent.scrollTop;
|
|
@@ -1688,10 +1508,8 @@ Sortable.prototype =
|
|
|
1688
1508
|
} else {
|
|
1689
1509
|
ghostRelativeParent = getWindowScrollingElement();
|
|
1690
1510
|
}
|
|
1691
|
-
|
|
1692
1511
|
ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);
|
|
1693
1512
|
}
|
|
1694
|
-
|
|
1695
1513
|
ghostEl = dragEl.cloneNode(true);
|
|
1696
1514
|
toggleClass(ghostEl, options.ghostClass, false);
|
|
1697
1515
|
toggleClass(ghostEl, options.fallbackClass, true);
|
|
@@ -1709,62 +1527,50 @@ Sortable.prototype =
|
|
|
1709
1527
|
css(ghostEl, 'zIndex', '100000');
|
|
1710
1528
|
css(ghostEl, 'pointerEvents', 'none');
|
|
1711
1529
|
Sortable.ghost = ghostEl;
|
|
1712
|
-
container.appendChild(ghostEl);
|
|
1530
|
+
container.appendChild(ghostEl);
|
|
1713
1531
|
|
|
1532
|
+
// Set transform-origin
|
|
1714
1533
|
css(ghostEl, 'transform-origin', tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + '% ' + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + '%');
|
|
1715
1534
|
}
|
|
1716
1535
|
},
|
|
1717
|
-
_onDragStart: function _onDragStart(
|
|
1718
|
-
/**Event*/
|
|
1719
|
-
evt,
|
|
1720
|
-
/**boolean*/
|
|
1721
|
-
fallback) {
|
|
1536
|
+
_onDragStart: function _onDragStart( /**Event*/evt, /**boolean*/fallback) {
|
|
1722
1537
|
var _this = this;
|
|
1723
|
-
|
|
1724
1538
|
var dataTransfer = evt.dataTransfer;
|
|
1725
1539
|
var options = _this.options;
|
|
1726
1540
|
pluginEvent('dragStart', this, {
|
|
1727
1541
|
evt: evt
|
|
1728
1542
|
});
|
|
1729
|
-
|
|
1730
1543
|
if (Sortable.eventCanceled) {
|
|
1731
1544
|
this._onDrop();
|
|
1732
|
-
|
|
1733
1545
|
return;
|
|
1734
1546
|
}
|
|
1735
|
-
|
|
1736
1547
|
pluginEvent('setupClone', this);
|
|
1737
|
-
|
|
1738
1548
|
if (!Sortable.eventCanceled) {
|
|
1739
1549
|
cloneEl = clone(dragEl);
|
|
1740
1550
|
cloneEl.removeAttribute("id");
|
|
1741
1551
|
cloneEl.draggable = false;
|
|
1742
1552
|
cloneEl.style['will-change'] = '';
|
|
1743
|
-
|
|
1744
1553
|
this._hideClone();
|
|
1745
|
-
|
|
1746
1554
|
toggleClass(cloneEl, this.options.chosenClass, false);
|
|
1747
1555
|
Sortable.clone = cloneEl;
|
|
1748
|
-
}
|
|
1749
|
-
|
|
1556
|
+
}
|
|
1750
1557
|
|
|
1558
|
+
// #1143: IFrame support workaround
|
|
1751
1559
|
_this.cloneId = _nextTick(function () {
|
|
1752
1560
|
pluginEvent('clone', _this);
|
|
1753
1561
|
if (Sortable.eventCanceled) return;
|
|
1754
|
-
|
|
1755
1562
|
if (!_this.options.removeCloneOnHide) {
|
|
1756
1563
|
rootEl.insertBefore(cloneEl, dragEl);
|
|
1757
1564
|
}
|
|
1758
|
-
|
|
1759
1565
|
_this._hideClone();
|
|
1760
|
-
|
|
1761
1566
|
_dispatchEvent({
|
|
1762
1567
|
sortable: _this,
|
|
1763
1568
|
name: 'clone'
|
|
1764
1569
|
});
|
|
1765
1570
|
});
|
|
1766
|
-
!fallback && toggleClass(dragEl, options.dragClass, true);
|
|
1571
|
+
!fallback && toggleClass(dragEl, options.dragClass, true);
|
|
1767
1572
|
|
|
1573
|
+
// Set proper drop events
|
|
1768
1574
|
if (fallback) {
|
|
1769
1575
|
ignoreNextClick = true;
|
|
1770
1576
|
_this._loopId = setInterval(_this._emulateDragOver, 50);
|
|
@@ -1773,47 +1579,41 @@ Sortable.prototype =
|
|
|
1773
1579
|
off(document, 'mouseup', _this._onDrop);
|
|
1774
1580
|
off(document, 'touchend', _this._onDrop);
|
|
1775
1581
|
off(document, 'touchcancel', _this._onDrop);
|
|
1776
|
-
|
|
1777
1582
|
if (dataTransfer) {
|
|
1778
1583
|
dataTransfer.effectAllowed = 'move';
|
|
1779
1584
|
options.setData && options.setData.call(_this, dataTransfer, dragEl);
|
|
1780
1585
|
}
|
|
1586
|
+
on(document, 'drop', _this);
|
|
1781
1587
|
|
|
1782
|
-
|
|
1783
|
-
|
|
1588
|
+
// #1276 fix:
|
|
1784
1589
|
css(dragEl, 'transform', 'translateZ(0)');
|
|
1785
1590
|
}
|
|
1786
|
-
|
|
1787
1591
|
awaitingDragStarted = true;
|
|
1788
1592
|
_this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
|
|
1789
1593
|
on(document, 'selectstart', _this);
|
|
1790
1594
|
moved = true;
|
|
1791
|
-
|
|
1595
|
+
window.getSelection().removeAllRanges();
|
|
1792
1596
|
if (Safari) {
|
|
1793
1597
|
css(document.body, 'user-select', 'none');
|
|
1794
1598
|
}
|
|
1795
1599
|
},
|
|
1796
1600
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1797
|
-
_onDragOver: function _onDragOver(
|
|
1798
|
-
/**Event*/
|
|
1799
|
-
evt) {
|
|
1601
|
+
_onDragOver: function _onDragOver( /**Event*/evt) {
|
|
1800
1602
|
var el = this.el,
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1603
|
+
target = evt.target,
|
|
1604
|
+
dragRect,
|
|
1605
|
+
targetRect,
|
|
1606
|
+
revert,
|
|
1607
|
+
options = this.options,
|
|
1608
|
+
group = options.group,
|
|
1609
|
+
activeSortable = Sortable.active,
|
|
1610
|
+
isOwner = activeGroup === group,
|
|
1611
|
+
canSort = options.sort,
|
|
1612
|
+
fromSortable = putSortable || activeSortable,
|
|
1613
|
+
vertical,
|
|
1614
|
+
_this = this,
|
|
1615
|
+
completedFired = false;
|
|
1815
1616
|
if (_silent) return;
|
|
1816
|
-
|
|
1817
1617
|
function dragOverEvent(name, extra) {
|
|
1818
1618
|
pluginEvent(name, _this, _objectSpread2({
|
|
1819
1619
|
evt: evt,
|
|
@@ -1831,25 +1631,22 @@ Sortable.prototype =
|
|
|
1831
1631
|
},
|
|
1832
1632
|
changed: changed
|
|
1833
1633
|
}, extra));
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1634
|
+
}
|
|
1836
1635
|
|
|
1636
|
+
// Capture animation state
|
|
1837
1637
|
function capture() {
|
|
1838
1638
|
dragOverEvent('dragOverAnimationCapture');
|
|
1839
|
-
|
|
1840
1639
|
_this.captureAnimationState();
|
|
1841
|
-
|
|
1842
1640
|
if (_this !== fromSortable) {
|
|
1843
1641
|
fromSortable.captureAnimationState();
|
|
1844
1642
|
}
|
|
1845
|
-
}
|
|
1846
|
-
|
|
1643
|
+
}
|
|
1847
1644
|
|
|
1645
|
+
// Return invocation when dragEl is inserted (or completed)
|
|
1848
1646
|
function completed(insertion) {
|
|
1849
1647
|
dragOverEvent('dragOverCompleted', {
|
|
1850
1648
|
insertion: insertion
|
|
1851
1649
|
});
|
|
1852
|
-
|
|
1853
1650
|
if (insertion) {
|
|
1854
1651
|
// Clones must be hidden before folding animation to capture dragRectAbsolute properly
|
|
1855
1652
|
if (isOwner) {
|
|
@@ -1857,57 +1654,51 @@ Sortable.prototype =
|
|
|
1857
1654
|
} else {
|
|
1858
1655
|
activeSortable._showClone(_this);
|
|
1859
1656
|
}
|
|
1860
|
-
|
|
1861
1657
|
if (_this !== fromSortable) {
|
|
1862
1658
|
// Set ghost class to new sortable's ghost class
|
|
1863
1659
|
toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);
|
|
1864
1660
|
toggleClass(dragEl, options.ghostClass, true);
|
|
1865
1661
|
}
|
|
1866
|
-
|
|
1867
1662
|
if (putSortable !== _this && _this !== Sortable.active) {
|
|
1868
1663
|
putSortable = _this;
|
|
1869
1664
|
} else if (_this === Sortable.active && putSortable) {
|
|
1870
1665
|
putSortable = null;
|
|
1871
|
-
}
|
|
1872
|
-
|
|
1666
|
+
}
|
|
1873
1667
|
|
|
1668
|
+
// Animation
|
|
1874
1669
|
if (fromSortable === _this) {
|
|
1875
1670
|
_this._ignoreWhileAnimating = target;
|
|
1876
1671
|
}
|
|
1877
|
-
|
|
1878
1672
|
_this.animateAll(function () {
|
|
1879
1673
|
dragOverEvent('dragOverAnimationComplete');
|
|
1880
1674
|
_this._ignoreWhileAnimating = null;
|
|
1881
1675
|
});
|
|
1882
|
-
|
|
1883
1676
|
if (_this !== fromSortable) {
|
|
1884
1677
|
fromSortable.animateAll();
|
|
1885
1678
|
fromSortable._ignoreWhileAnimating = null;
|
|
1886
1679
|
}
|
|
1887
|
-
}
|
|
1888
|
-
|
|
1680
|
+
}
|
|
1889
1681
|
|
|
1682
|
+
// Null lastTarget if it is not inside a previously swapped element
|
|
1890
1683
|
if (target === dragEl && !dragEl.animated || target === el && !target.animated) {
|
|
1891
1684
|
lastTarget = null;
|
|
1892
|
-
}
|
|
1893
|
-
|
|
1685
|
+
}
|
|
1894
1686
|
|
|
1687
|
+
// no bubbling and not fallback
|
|
1895
1688
|
if (!options.dragoverBubble && !evt.rootEl && target !== document) {
|
|
1896
|
-
dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
|
|
1897
|
-
|
|
1689
|
+
dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
|
|
1898
1690
|
|
|
1691
|
+
// Do not detect for empty insert if already inserted
|
|
1899
1692
|
!insertion && nearestEmptyInsertDetectEvent(evt);
|
|
1900
1693
|
}
|
|
1901
|
-
|
|
1902
1694
|
!options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();
|
|
1903
1695
|
return completedFired = true;
|
|
1904
|
-
}
|
|
1905
|
-
|
|
1696
|
+
}
|
|
1906
1697
|
|
|
1698
|
+
// Call when dragEl has been inserted
|
|
1907
1699
|
function changed() {
|
|
1908
1700
|
newIndex = index(dragEl);
|
|
1909
1701
|
newDraggableIndex = index(dragEl, options.draggable);
|
|
1910
|
-
|
|
1911
1702
|
_dispatchEvent({
|
|
1912
1703
|
sortable: _this,
|
|
1913
1704
|
name: 'change',
|
|
@@ -1917,37 +1708,27 @@ Sortable.prototype =
|
|
|
1917
1708
|
originalEvent: evt
|
|
1918
1709
|
});
|
|
1919
1710
|
}
|
|
1920
|
-
|
|
1921
1711
|
if (evt.preventDefault !== void 0) {
|
|
1922
1712
|
evt.cancelable && evt.preventDefault();
|
|
1923
1713
|
}
|
|
1924
|
-
|
|
1925
1714
|
target = closest(target, options.draggable, el, true);
|
|
1926
1715
|
dragOverEvent('dragOver');
|
|
1927
1716
|
if (Sortable.eventCanceled) return completedFired;
|
|
1928
|
-
|
|
1929
1717
|
if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {
|
|
1930
1718
|
return completed(false);
|
|
1931
1719
|
}
|
|
1932
|
-
|
|
1933
1720
|
ignoreNextClick = false;
|
|
1934
|
-
|
|
1935
1721
|
if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) // Reverting item into the original list
|
|
1936
1722
|
: putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {
|
|
1937
1723
|
vertical = this._getDirection(evt, target) === 'vertical';
|
|
1938
1724
|
dragRect = getRect(dragEl);
|
|
1939
1725
|
dragOverEvent('dragOverValid');
|
|
1940
1726
|
if (Sortable.eventCanceled) return completedFired;
|
|
1941
|
-
|
|
1942
1727
|
if (revert) {
|
|
1943
1728
|
parentEl = rootEl; // actualization
|
|
1944
|
-
|
|
1945
1729
|
capture();
|
|
1946
|
-
|
|
1947
1730
|
this._hideClone();
|
|
1948
|
-
|
|
1949
1731
|
dragOverEvent('revert');
|
|
1950
|
-
|
|
1951
1732
|
if (!Sortable.eventCanceled) {
|
|
1952
1733
|
if (nextEl) {
|
|
1953
1734
|
rootEl.insertBefore(dragEl, nextEl);
|
|
@@ -1955,38 +1736,32 @@ Sortable.prototype =
|
|
|
1955
1736
|
rootEl.appendChild(dragEl);
|
|
1956
1737
|
}
|
|
1957
1738
|
}
|
|
1958
|
-
|
|
1959
1739
|
return completed(true);
|
|
1960
1740
|
}
|
|
1961
|
-
|
|
1962
1741
|
var elLastChild = lastChild(el, options.draggable);
|
|
1963
|
-
|
|
1964
1742
|
if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {
|
|
1965
1743
|
// Insert to end of list
|
|
1744
|
+
|
|
1966
1745
|
// If already at end of list: Do not insert
|
|
1967
1746
|
if (elLastChild === dragEl) {
|
|
1968
1747
|
return completed(false);
|
|
1969
|
-
}
|
|
1970
|
-
|
|
1748
|
+
}
|
|
1971
1749
|
|
|
1750
|
+
// if there is a last element, it is the target
|
|
1972
1751
|
if (elLastChild && el === evt.target) {
|
|
1973
1752
|
target = elLastChild;
|
|
1974
1753
|
}
|
|
1975
|
-
|
|
1976
1754
|
if (target) {
|
|
1977
1755
|
targetRect = getRect(target);
|
|
1978
1756
|
}
|
|
1979
|
-
|
|
1980
1757
|
if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
|
|
1981
1758
|
capture();
|
|
1982
|
-
|
|
1983
1759
|
if (elLastChild && elLastChild.nextSibling) {
|
|
1984
1760
|
// the last draggable element is not the last node
|
|
1985
1761
|
el.insertBefore(dragEl, elLastChild.nextSibling);
|
|
1986
1762
|
} else {
|
|
1987
1763
|
el.appendChild(dragEl);
|
|
1988
1764
|
}
|
|
1989
|
-
|
|
1990
1765
|
parentEl = el; // actualization
|
|
1991
1766
|
|
|
1992
1767
|
changed();
|
|
@@ -1995,14 +1770,11 @@ Sortable.prototype =
|
|
|
1995
1770
|
} else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {
|
|
1996
1771
|
// Insert to start of list
|
|
1997
1772
|
var firstChild = getChild(el, 0, options, true);
|
|
1998
|
-
|
|
1999
1773
|
if (firstChild === dragEl) {
|
|
2000
1774
|
return completed(false);
|
|
2001
1775
|
}
|
|
2002
|
-
|
|
2003
1776
|
target = firstChild;
|
|
2004
1777
|
targetRect = getRect(target);
|
|
2005
|
-
|
|
2006
1778
|
if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {
|
|
2007
1779
|
capture();
|
|
2008
1780
|
el.insertBefore(dragEl, firstChild);
|
|
@@ -2014,82 +1786,68 @@ Sortable.prototype =
|
|
|
2014
1786
|
} else if (target.parentNode === el) {
|
|
2015
1787
|
targetRect = getRect(target);
|
|
2016
1788
|
var direction = 0,
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
1789
|
+
targetBeforeFirstSwap,
|
|
1790
|
+
differentLevel = dragEl.parentNode !== el,
|
|
1791
|
+
differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical),
|
|
1792
|
+
side1 = vertical ? 'top' : 'left',
|
|
1793
|
+
scrolledPastTop = isScrolledPast(target, 'top', 'top') || isScrolledPast(dragEl, 'top', 'top'),
|
|
1794
|
+
scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;
|
|
2024
1795
|
if (lastTarget !== target) {
|
|
2025
1796
|
targetBeforeFirstSwap = targetRect[side1];
|
|
2026
1797
|
pastFirstInvertThresh = false;
|
|
2027
1798
|
isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;
|
|
2028
1799
|
}
|
|
2029
|
-
|
|
2030
1800
|
direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);
|
|
2031
1801
|
var sibling;
|
|
2032
|
-
|
|
2033
1802
|
if (direction !== 0) {
|
|
2034
1803
|
// Check if target is beside dragEl in respective direction (ignoring hidden elements)
|
|
2035
1804
|
var dragIndex = index(dragEl);
|
|
2036
|
-
|
|
2037
1805
|
do {
|
|
2038
1806
|
dragIndex -= direction;
|
|
2039
1807
|
sibling = parentEl.children[dragIndex];
|
|
2040
1808
|
} while (sibling && (css(sibling, 'display') === 'none' || sibling === ghostEl));
|
|
2041
|
-
}
|
|
2042
|
-
|
|
2043
|
-
|
|
1809
|
+
}
|
|
1810
|
+
// If dragEl is already beside target: Do not insert
|
|
2044
1811
|
if (direction === 0 || sibling === target) {
|
|
2045
1812
|
return completed(false);
|
|
2046
1813
|
}
|
|
2047
|
-
|
|
2048
1814
|
lastTarget = target;
|
|
2049
1815
|
lastDirection = direction;
|
|
2050
1816
|
var nextSibling = target.nextElementSibling,
|
|
2051
|
-
|
|
1817
|
+
after = false;
|
|
2052
1818
|
after = direction === 1;
|
|
2053
|
-
|
|
2054
1819
|
var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);
|
|
2055
|
-
|
|
2056
1820
|
if (moveVector !== false) {
|
|
2057
1821
|
if (moveVector === 1 || moveVector === -1) {
|
|
2058
1822
|
after = moveVector === 1;
|
|
2059
1823
|
}
|
|
2060
|
-
|
|
2061
1824
|
_silent = true;
|
|
2062
1825
|
setTimeout(_unsilent, 30);
|
|
2063
1826
|
capture();
|
|
2064
|
-
|
|
2065
1827
|
if (after && !nextSibling) {
|
|
2066
1828
|
el.appendChild(dragEl);
|
|
2067
1829
|
} else {
|
|
2068
1830
|
target.parentNode.insertBefore(dragEl, after ? nextSibling : target);
|
|
2069
|
-
}
|
|
2070
|
-
|
|
1831
|
+
}
|
|
2071
1832
|
|
|
1833
|
+
// Undo chrome's scroll adjustment (has no effect on other browsers)
|
|
2072
1834
|
if (scrolledPastTop) {
|
|
2073
1835
|
scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);
|
|
2074
1836
|
}
|
|
2075
|
-
|
|
2076
1837
|
parentEl = dragEl.parentNode; // actualization
|
|
2077
|
-
// must be done before animation
|
|
2078
1838
|
|
|
1839
|
+
// must be done before animation
|
|
2079
1840
|
if (targetBeforeFirstSwap !== undefined && !isCircumstantialInvert) {
|
|
2080
1841
|
targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);
|
|
2081
1842
|
}
|
|
2082
|
-
|
|
2083
1843
|
changed();
|
|
2084
1844
|
return completed(true);
|
|
2085
1845
|
}
|
|
2086
1846
|
}
|
|
2087
|
-
|
|
2088
1847
|
if (el.contains(dragEl)) {
|
|
2089
1848
|
return completed(false);
|
|
2090
1849
|
}
|
|
2091
1850
|
}
|
|
2092
|
-
|
|
2093
1851
|
return false;
|
|
2094
1852
|
},
|
|
2095
1853
|
_ignoreWhileAnimating: null,
|
|
@@ -2106,86 +1864,73 @@ Sortable.prototype =
|
|
|
2106
1864
|
off(ownerDocument, 'mouseup', this._onDrop);
|
|
2107
1865
|
off(ownerDocument, 'touchend', this._onDrop);
|
|
2108
1866
|
off(ownerDocument, 'pointerup', this._onDrop);
|
|
1867
|
+
off(ownerDocument, 'pointercancel', this._onDrop);
|
|
2109
1868
|
off(ownerDocument, 'touchcancel', this._onDrop);
|
|
2110
1869
|
off(document, 'selectstart', this);
|
|
2111
1870
|
},
|
|
2112
|
-
_onDrop: function _onDrop(
|
|
2113
|
-
/**Event*/
|
|
2114
|
-
evt) {
|
|
1871
|
+
_onDrop: function _onDrop( /**Event*/evt) {
|
|
2115
1872
|
var el = this.el,
|
|
2116
|
-
|
|
1873
|
+
options = this.options;
|
|
2117
1874
|
|
|
1875
|
+
// Get the index of the dragged element within its parent
|
|
2118
1876
|
newIndex = index(dragEl);
|
|
2119
1877
|
newDraggableIndex = index(dragEl, options.draggable);
|
|
2120
1878
|
pluginEvent('drop', this, {
|
|
2121
1879
|
evt: evt
|
|
2122
1880
|
});
|
|
2123
|
-
parentEl = dragEl && dragEl.parentNode;
|
|
1881
|
+
parentEl = dragEl && dragEl.parentNode;
|
|
2124
1882
|
|
|
1883
|
+
// Get again after plugin event
|
|
2125
1884
|
newIndex = index(dragEl);
|
|
2126
1885
|
newDraggableIndex = index(dragEl, options.draggable);
|
|
2127
|
-
|
|
2128
1886
|
if (Sortable.eventCanceled) {
|
|
2129
1887
|
this._nulling();
|
|
2130
|
-
|
|
2131
1888
|
return;
|
|
2132
1889
|
}
|
|
2133
|
-
|
|
2134
1890
|
awaitingDragStarted = false;
|
|
2135
1891
|
isCircumstantialInvert = false;
|
|
2136
1892
|
pastFirstInvertThresh = false;
|
|
2137
1893
|
clearInterval(this._loopId);
|
|
2138
1894
|
clearTimeout(this._dragStartTimer);
|
|
2139
|
-
|
|
2140
1895
|
_cancelNextTick(this.cloneId);
|
|
1896
|
+
_cancelNextTick(this._dragStartId);
|
|
2141
1897
|
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
1898
|
+
// Unbind events
|
|
2145
1899
|
if (this.nativeDraggable) {
|
|
2146
1900
|
off(document, 'drop', this);
|
|
2147
1901
|
off(el, 'dragstart', this._onDragStart);
|
|
2148
1902
|
}
|
|
2149
|
-
|
|
2150
1903
|
this._offMoveEvents();
|
|
2151
|
-
|
|
2152
1904
|
this._offUpEvents();
|
|
2153
|
-
|
|
2154
1905
|
if (Safari) {
|
|
2155
1906
|
css(document.body, 'user-select', '');
|
|
2156
1907
|
}
|
|
2157
|
-
|
|
2158
1908
|
css(dragEl, 'transform', '');
|
|
2159
|
-
|
|
2160
1909
|
if (evt) {
|
|
2161
1910
|
if (moved) {
|
|
2162
1911
|
evt.cancelable && evt.preventDefault();
|
|
2163
1912
|
!options.dropBubble && evt.stopPropagation();
|
|
2164
1913
|
}
|
|
2165
|
-
|
|
2166
1914
|
ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);
|
|
2167
|
-
|
|
2168
1915
|
if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {
|
|
2169
1916
|
// Remove clone(s)
|
|
2170
1917
|
cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);
|
|
2171
1918
|
}
|
|
2172
|
-
|
|
2173
1919
|
if (dragEl) {
|
|
2174
1920
|
if (this.nativeDraggable) {
|
|
2175
1921
|
off(dragEl, 'dragend', this);
|
|
2176
1922
|
}
|
|
2177
|
-
|
|
2178
1923
|
_disableDraggable(dragEl);
|
|
1924
|
+
dragEl.style['will-change'] = '';
|
|
2179
1925
|
|
|
2180
|
-
|
|
1926
|
+
// Remove classes
|
|
2181
1927
|
// ghostClass is added in dragStarted
|
|
2182
|
-
|
|
2183
1928
|
if (moved && !awaitingDragStarted) {
|
|
2184
1929
|
toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);
|
|
2185
1930
|
}
|
|
1931
|
+
toggleClass(dragEl, this.options.chosenClass, false);
|
|
2186
1932
|
|
|
2187
|
-
|
|
2188
|
-
|
|
1933
|
+
// Drag stop event
|
|
2189
1934
|
_dispatchEvent({
|
|
2190
1935
|
sortable: this,
|
|
2191
1936
|
name: 'unchoose',
|
|
@@ -2194,7 +1939,6 @@ Sortable.prototype =
|
|
|
2194
1939
|
newDraggableIndex: null,
|
|
2195
1940
|
originalEvent: evt
|
|
2196
1941
|
});
|
|
2197
|
-
|
|
2198
1942
|
if (rootEl !== parentEl) {
|
|
2199
1943
|
if (newIndex >= 0) {
|
|
2200
1944
|
// Add event
|
|
@@ -2204,17 +1948,17 @@ Sortable.prototype =
|
|
|
2204
1948
|
toEl: parentEl,
|
|
2205
1949
|
fromEl: rootEl,
|
|
2206
1950
|
originalEvent: evt
|
|
2207
|
-
});
|
|
2208
|
-
|
|
1951
|
+
});
|
|
2209
1952
|
|
|
1953
|
+
// Remove event
|
|
2210
1954
|
_dispatchEvent({
|
|
2211
1955
|
sortable: this,
|
|
2212
1956
|
name: 'remove',
|
|
2213
1957
|
toEl: parentEl,
|
|
2214
1958
|
originalEvent: evt
|
|
2215
|
-
});
|
|
2216
|
-
|
|
1959
|
+
});
|
|
2217
1960
|
|
|
1961
|
+
// drag from one list and drop into another
|
|
2218
1962
|
_dispatchEvent({
|
|
2219
1963
|
rootEl: parentEl,
|
|
2220
1964
|
name: 'sort',
|
|
@@ -2222,7 +1966,6 @@ Sortable.prototype =
|
|
|
2222
1966
|
fromEl: rootEl,
|
|
2223
1967
|
originalEvent: evt
|
|
2224
1968
|
});
|
|
2225
|
-
|
|
2226
1969
|
_dispatchEvent({
|
|
2227
1970
|
sortable: this,
|
|
2228
1971
|
name: 'sort',
|
|
@@ -2230,7 +1973,6 @@ Sortable.prototype =
|
|
|
2230
1973
|
originalEvent: evt
|
|
2231
1974
|
});
|
|
2232
1975
|
}
|
|
2233
|
-
|
|
2234
1976
|
putSortable && putSortable.save();
|
|
2235
1977
|
} else {
|
|
2236
1978
|
if (newIndex !== oldIndex) {
|
|
@@ -2242,7 +1984,6 @@ Sortable.prototype =
|
|
|
2242
1984
|
toEl: parentEl,
|
|
2243
1985
|
originalEvent: evt
|
|
2244
1986
|
});
|
|
2245
|
-
|
|
2246
1987
|
_dispatchEvent({
|
|
2247
1988
|
sortable: this,
|
|
2248
1989
|
name: 'sort',
|
|
@@ -2252,27 +1993,24 @@ Sortable.prototype =
|
|
|
2252
1993
|
}
|
|
2253
1994
|
}
|
|
2254
1995
|
}
|
|
2255
|
-
|
|
2256
1996
|
if (Sortable.active) {
|
|
2257
1997
|
/* jshint eqnull:true */
|
|
2258
1998
|
if (newIndex == null || newIndex === -1) {
|
|
2259
1999
|
newIndex = oldIndex;
|
|
2260
2000
|
newDraggableIndex = oldDraggableIndex;
|
|
2261
2001
|
}
|
|
2262
|
-
|
|
2263
2002
|
_dispatchEvent({
|
|
2264
2003
|
sortable: this,
|
|
2265
2004
|
name: 'end',
|
|
2266
2005
|
toEl: parentEl,
|
|
2267
2006
|
originalEvent: evt
|
|
2268
|
-
});
|
|
2269
|
-
|
|
2007
|
+
});
|
|
2270
2008
|
|
|
2009
|
+
// Save sorting
|
|
2271
2010
|
this.save();
|
|
2272
2011
|
}
|
|
2273
2012
|
}
|
|
2274
2013
|
}
|
|
2275
|
-
|
|
2276
2014
|
this._nulling();
|
|
2277
2015
|
},
|
|
2278
2016
|
_nulling: function _nulling() {
|
|
@@ -2283,65 +2021,52 @@ Sortable.prototype =
|
|
|
2283
2021
|
});
|
|
2284
2022
|
savedInputChecked.length = lastDx = lastDy = 0;
|
|
2285
2023
|
},
|
|
2286
|
-
handleEvent: function handleEvent(
|
|
2287
|
-
/**Event*/
|
|
2288
|
-
evt) {
|
|
2024
|
+
handleEvent: function handleEvent( /**Event*/evt) {
|
|
2289
2025
|
switch (evt.type) {
|
|
2290
2026
|
case 'drop':
|
|
2291
2027
|
case 'dragend':
|
|
2292
2028
|
this._onDrop(evt);
|
|
2293
|
-
|
|
2294
2029
|
break;
|
|
2295
|
-
|
|
2296
2030
|
case 'dragenter':
|
|
2297
2031
|
case 'dragover':
|
|
2298
2032
|
if (dragEl) {
|
|
2299
2033
|
this._onDragOver(evt);
|
|
2300
|
-
|
|
2301
2034
|
_globalDragOver(evt);
|
|
2302
2035
|
}
|
|
2303
|
-
|
|
2304
2036
|
break;
|
|
2305
|
-
|
|
2306
2037
|
case 'selectstart':
|
|
2307
2038
|
evt.preventDefault();
|
|
2308
2039
|
break;
|
|
2309
2040
|
}
|
|
2310
2041
|
},
|
|
2311
|
-
|
|
2312
2042
|
/**
|
|
2313
2043
|
* Serializes the item into an array of string.
|
|
2314
2044
|
* @returns {String[]}
|
|
2315
2045
|
*/
|
|
2316
2046
|
toArray: function toArray() {
|
|
2317
2047
|
var order = [],
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2048
|
+
el,
|
|
2049
|
+
children = this.el.children,
|
|
2050
|
+
i = 0,
|
|
2051
|
+
n = children.length,
|
|
2052
|
+
options = this.options;
|
|
2324
2053
|
for (; i < n; i++) {
|
|
2325
2054
|
el = children[i];
|
|
2326
|
-
|
|
2327
2055
|
if (closest(el, options.draggable, this.el, false)) {
|
|
2328
2056
|
order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));
|
|
2329
2057
|
}
|
|
2330
2058
|
}
|
|
2331
|
-
|
|
2332
2059
|
return order;
|
|
2333
2060
|
},
|
|
2334
|
-
|
|
2335
2061
|
/**
|
|
2336
2062
|
* Sorts the elements according to the array.
|
|
2337
2063
|
* @param {String[]} order order of the items
|
|
2338
2064
|
*/
|
|
2339
2065
|
sort: function sort(order, useAnimation) {
|
|
2340
2066
|
var items = {},
|
|
2341
|
-
|
|
2067
|
+
rootEl = this.el;
|
|
2342
2068
|
this.toArray().forEach(function (id, i) {
|
|
2343
2069
|
var el = rootEl.children[i];
|
|
2344
|
-
|
|
2345
2070
|
if (closest(el, this.options.draggable, rootEl, false)) {
|
|
2346
2071
|
items[id] = el;
|
|
2347
2072
|
}
|
|
@@ -2355,7 +2080,6 @@ Sortable.prototype =
|
|
|
2355
2080
|
});
|
|
2356
2081
|
useAnimation && this.animateAll();
|
|
2357
2082
|
},
|
|
2358
|
-
|
|
2359
2083
|
/**
|
|
2360
2084
|
* Save the current sorting
|
|
2361
2085
|
*/
|
|
@@ -2363,7 +2087,6 @@ Sortable.prototype =
|
|
|
2363
2087
|
var store = this.options.store;
|
|
2364
2088
|
store && store.set && store.set(this);
|
|
2365
2089
|
},
|
|
2366
|
-
|
|
2367
2090
|
/**
|
|
2368
2091
|
* For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
|
|
2369
2092
|
* @param {HTMLElement} el
|
|
@@ -2373,7 +2096,6 @@ Sortable.prototype =
|
|
|
2373
2096
|
closest: function closest$1(el, selector) {
|
|
2374
2097
|
return closest(el, selector || this.options.draggable, this.el, false);
|
|
2375
2098
|
},
|
|
2376
|
-
|
|
2377
2099
|
/**
|
|
2378
2100
|
* Set/get option
|
|
2379
2101
|
* @param {string} name
|
|
@@ -2382,24 +2104,20 @@ Sortable.prototype =
|
|
|
2382
2104
|
*/
|
|
2383
2105
|
option: function option(name, value) {
|
|
2384
2106
|
var options = this.options;
|
|
2385
|
-
|
|
2386
2107
|
if (value === void 0) {
|
|
2387
2108
|
return options[name];
|
|
2388
2109
|
} else {
|
|
2389
2110
|
var modifiedValue = PluginManager.modifyOption(this, name, value);
|
|
2390
|
-
|
|
2391
2111
|
if (typeof modifiedValue !== 'undefined') {
|
|
2392
2112
|
options[name] = modifiedValue;
|
|
2393
2113
|
} else {
|
|
2394
2114
|
options[name] = value;
|
|
2395
2115
|
}
|
|
2396
|
-
|
|
2397
2116
|
if (name === 'group') {
|
|
2398
2117
|
_prepareGroup(options);
|
|
2399
2118
|
}
|
|
2400
2119
|
}
|
|
2401
2120
|
},
|
|
2402
|
-
|
|
2403
2121
|
/**
|
|
2404
2122
|
* Destroy
|
|
2405
2123
|
*/
|
|
@@ -2410,21 +2128,16 @@ Sortable.prototype =
|
|
|
2410
2128
|
off(el, 'mousedown', this._onTapStart);
|
|
2411
2129
|
off(el, 'touchstart', this._onTapStart);
|
|
2412
2130
|
off(el, 'pointerdown', this._onTapStart);
|
|
2413
|
-
|
|
2414
2131
|
if (this.nativeDraggable) {
|
|
2415
2132
|
off(el, 'dragover', this);
|
|
2416
2133
|
off(el, 'dragenter', this);
|
|
2417
|
-
}
|
|
2418
|
-
|
|
2419
|
-
|
|
2134
|
+
}
|
|
2135
|
+
// Remove draggable attributes
|
|
2420
2136
|
Array.prototype.forEach.call(el.querySelectorAll('[draggable]'), function (el) {
|
|
2421
2137
|
el.removeAttribute('draggable');
|
|
2422
2138
|
});
|
|
2423
|
-
|
|
2424
2139
|
this._onDrop();
|
|
2425
|
-
|
|
2426
2140
|
this._disableDelayedDragEvents();
|
|
2427
|
-
|
|
2428
2141
|
sortables.splice(sortables.indexOf(this.el), 1);
|
|
2429
2142
|
this.el = el = null;
|
|
2430
2143
|
},
|
|
@@ -2433,25 +2146,22 @@ Sortable.prototype =
|
|
|
2433
2146
|
pluginEvent('hideClone', this);
|
|
2434
2147
|
if (Sortable.eventCanceled) return;
|
|
2435
2148
|
css(cloneEl, 'display', 'none');
|
|
2436
|
-
|
|
2437
2149
|
if (this.options.removeCloneOnHide && cloneEl.parentNode) {
|
|
2438
2150
|
cloneEl.parentNode.removeChild(cloneEl);
|
|
2439
2151
|
}
|
|
2440
|
-
|
|
2441
2152
|
cloneHidden = true;
|
|
2442
2153
|
}
|
|
2443
2154
|
},
|
|
2444
2155
|
_showClone: function _showClone(putSortable) {
|
|
2445
2156
|
if (putSortable.lastPutMode !== 'clone') {
|
|
2446
2157
|
this._hideClone();
|
|
2447
|
-
|
|
2448
2158
|
return;
|
|
2449
2159
|
}
|
|
2450
|
-
|
|
2451
2160
|
if (cloneHidden) {
|
|
2452
2161
|
pluginEvent('showClone', this);
|
|
2453
|
-
if (Sortable.eventCanceled) return;
|
|
2162
|
+
if (Sortable.eventCanceled) return;
|
|
2454
2163
|
|
|
2164
|
+
// show clone at dragEl or original position
|
|
2455
2165
|
if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {
|
|
2456
2166
|
rootEl.insertBefore(cloneEl, dragEl);
|
|
2457
2167
|
} else if (nextEl) {
|
|
@@ -2459,33 +2169,26 @@ Sortable.prototype =
|
|
|
2459
2169
|
} else {
|
|
2460
2170
|
rootEl.appendChild(cloneEl);
|
|
2461
2171
|
}
|
|
2462
|
-
|
|
2463
2172
|
if (this.options.group.revertClone) {
|
|
2464
2173
|
this.animate(dragEl, cloneEl);
|
|
2465
2174
|
}
|
|
2466
|
-
|
|
2467
2175
|
css(cloneEl, 'display', '');
|
|
2468
2176
|
cloneHidden = false;
|
|
2469
2177
|
}
|
|
2470
2178
|
}
|
|
2471
2179
|
};
|
|
2472
|
-
|
|
2473
|
-
function _globalDragOver(
|
|
2474
|
-
/**Event*/
|
|
2475
|
-
evt) {
|
|
2180
|
+
function _globalDragOver( /**Event*/evt) {
|
|
2476
2181
|
if (evt.dataTransfer) {
|
|
2477
2182
|
evt.dataTransfer.dropEffect = 'move';
|
|
2478
2183
|
}
|
|
2479
|
-
|
|
2480
2184
|
evt.cancelable && evt.preventDefault();
|
|
2481
2185
|
}
|
|
2482
|
-
|
|
2483
2186
|
function _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {
|
|
2484
2187
|
var evt,
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2188
|
+
sortable = fromEl[expando],
|
|
2189
|
+
onMoveFn = sortable.options.onMove,
|
|
2190
|
+
retVal;
|
|
2191
|
+
// Support for new CustomEvent feature
|
|
2489
2192
|
if (window.CustomEvent && !IE11OrLess && !Edge) {
|
|
2490
2193
|
evt = new CustomEvent('move', {
|
|
2491
2194
|
bubbles: true,
|
|
@@ -2495,7 +2198,6 @@ function _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalE
|
|
|
2495
2198
|
evt = document.createEvent('Event');
|
|
2496
2199
|
evt.initEvent('move', true, true);
|
|
2497
2200
|
}
|
|
2498
|
-
|
|
2499
2201
|
evt.to = toEl;
|
|
2500
2202
|
evt.from = fromEl;
|
|
2501
2203
|
evt.dragged = dragEl;
|
|
@@ -2505,41 +2207,35 @@ function _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalE
|
|
|
2505
2207
|
evt.willInsertAfter = willInsertAfter;
|
|
2506
2208
|
evt.originalEvent = originalEvent;
|
|
2507
2209
|
fromEl.dispatchEvent(evt);
|
|
2508
|
-
|
|
2509
2210
|
if (onMoveFn) {
|
|
2510
2211
|
retVal = onMoveFn.call(sortable, evt, originalEvent);
|
|
2511
2212
|
}
|
|
2512
|
-
|
|
2513
2213
|
return retVal;
|
|
2514
2214
|
}
|
|
2515
|
-
|
|
2516
2215
|
function _disableDraggable(el) {
|
|
2517
2216
|
el.draggable = false;
|
|
2518
2217
|
}
|
|
2519
|
-
|
|
2520
2218
|
function _unsilent() {
|
|
2521
2219
|
_silent = false;
|
|
2522
2220
|
}
|
|
2523
|
-
|
|
2524
2221
|
function _ghostIsFirst(evt, vertical, sortable) {
|
|
2525
|
-
var
|
|
2222
|
+
var firstElRect = getRect(getChild(sortable.el, 0, sortable.options, true));
|
|
2223
|
+
var childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl);
|
|
2526
2224
|
var spacer = 10;
|
|
2527
|
-
return vertical ? evt.clientX <
|
|
2225
|
+
return vertical ? evt.clientX < childContainingRect.left - spacer || evt.clientY < firstElRect.top && evt.clientX < firstElRect.right : evt.clientY < childContainingRect.top - spacer || evt.clientY < firstElRect.bottom && evt.clientX < firstElRect.left;
|
|
2528
2226
|
}
|
|
2529
|
-
|
|
2530
2227
|
function _ghostIsLast(evt, vertical, sortable) {
|
|
2531
|
-
var
|
|
2228
|
+
var lastElRect = getRect(lastChild(sortable.el, sortable.options.draggable));
|
|
2229
|
+
var childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl);
|
|
2532
2230
|
var spacer = 10;
|
|
2533
|
-
return vertical ? evt.clientX >
|
|
2231
|
+
return vertical ? evt.clientX > childContainingRect.right + spacer || evt.clientY > lastElRect.bottom && evt.clientX > lastElRect.left : evt.clientY > childContainingRect.bottom + spacer || evt.clientX > lastElRect.right && evt.clientY > lastElRect.top;
|
|
2534
2232
|
}
|
|
2535
|
-
|
|
2536
2233
|
function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {
|
|
2537
2234
|
var mouseOnAxis = vertical ? evt.clientY : evt.clientX,
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2235
|
+
targetLength = vertical ? targetRect.height : targetRect.width,
|
|
2236
|
+
targetS1 = vertical ? targetRect.top : targetRect.left,
|
|
2237
|
+
targetS2 = vertical ? targetRect.bottom : targetRect.right,
|
|
2238
|
+
invert = false;
|
|
2543
2239
|
if (!invertSwap) {
|
|
2544
2240
|
// Never invert or create dragEl shadow when target movemenet causes mouse to move past the end of regular swapThreshold
|
|
2545
2241
|
if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {
|
|
@@ -2549,7 +2245,6 @@ function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, inv
|
|
|
2549
2245
|
// past first invert threshold, do not restrict inverted threshold to dragEl shadow
|
|
2550
2246
|
pastFirstInvertThresh = true;
|
|
2551
2247
|
}
|
|
2552
|
-
|
|
2553
2248
|
if (!pastFirstInvertThresh) {
|
|
2554
2249
|
// dragEl shadow (target move distance shadow)
|
|
2555
2250
|
if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance // over dragEl shadow
|
|
@@ -2566,26 +2261,22 @@ function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, inv
|
|
|
2566
2261
|
}
|
|
2567
2262
|
}
|
|
2568
2263
|
}
|
|
2569
|
-
|
|
2570
2264
|
invert = invert || invertSwap;
|
|
2571
|
-
|
|
2572
2265
|
if (invert) {
|
|
2573
2266
|
// Invert of regular
|
|
2574
2267
|
if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {
|
|
2575
2268
|
return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;
|
|
2576
2269
|
}
|
|
2577
2270
|
}
|
|
2578
|
-
|
|
2579
2271
|
return 0;
|
|
2580
2272
|
}
|
|
2273
|
+
|
|
2581
2274
|
/**
|
|
2582
2275
|
* Gets the direction dragEl must be swapped relative to target in order to make it
|
|
2583
2276
|
* seem that dragEl has been "inserted" into that element's position
|
|
2584
2277
|
* @param {HTMLElement} target The target whose position dragEl is being inserted at
|
|
2585
2278
|
* @return {Number} Direction dragEl must be swapped
|
|
2586
2279
|
*/
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
2280
|
function _getInsertDirection(target) {
|
|
2590
2281
|
if (index(dragEl) < index(target)) {
|
|
2591
2282
|
return 1;
|
|
@@ -2593,55 +2284,48 @@ function _getInsertDirection(target) {
|
|
|
2593
2284
|
return -1;
|
|
2594
2285
|
}
|
|
2595
2286
|
}
|
|
2287
|
+
|
|
2596
2288
|
/**
|
|
2597
2289
|
* Generate id
|
|
2598
2290
|
* @param {HTMLElement} el
|
|
2599
2291
|
* @returns {String}
|
|
2600
2292
|
* @private
|
|
2601
2293
|
*/
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
2294
|
function _generateId(el) {
|
|
2605
2295
|
var str = el.tagName + el.className + el.src + el.href + el.textContent,
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2296
|
+
i = str.length,
|
|
2297
|
+
sum = 0;
|
|
2609
2298
|
while (i--) {
|
|
2610
2299
|
sum += str.charCodeAt(i);
|
|
2611
2300
|
}
|
|
2612
|
-
|
|
2613
2301
|
return sum.toString(36);
|
|
2614
2302
|
}
|
|
2615
|
-
|
|
2616
2303
|
function _saveInputCheckedState(root) {
|
|
2617
2304
|
savedInputChecked.length = 0;
|
|
2618
2305
|
var inputs = root.getElementsByTagName('input');
|
|
2619
2306
|
var idx = inputs.length;
|
|
2620
|
-
|
|
2621
2307
|
while (idx--) {
|
|
2622
2308
|
var el = inputs[idx];
|
|
2623
2309
|
el.checked && savedInputChecked.push(el);
|
|
2624
2310
|
}
|
|
2625
2311
|
}
|
|
2626
|
-
|
|
2627
2312
|
function _nextTick(fn) {
|
|
2628
2313
|
return setTimeout(fn, 0);
|
|
2629
2314
|
}
|
|
2630
|
-
|
|
2631
2315
|
function _cancelNextTick(id) {
|
|
2632
2316
|
return clearTimeout(id);
|
|
2633
|
-
}
|
|
2634
|
-
|
|
2317
|
+
}
|
|
2635
2318
|
|
|
2319
|
+
// Fixed #973:
|
|
2636
2320
|
if (documentExists) {
|
|
2637
2321
|
on(document, 'touchmove', function (evt) {
|
|
2638
2322
|
if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {
|
|
2639
2323
|
evt.preventDefault();
|
|
2640
2324
|
}
|
|
2641
2325
|
});
|
|
2642
|
-
}
|
|
2643
|
-
|
|
2326
|
+
}
|
|
2644
2327
|
|
|
2328
|
+
// Export utils
|
|
2645
2329
|
Sortable.utils = {
|
|
2646
2330
|
on: on,
|
|
2647
2331
|
off: off,
|
|
@@ -2659,61 +2343,57 @@ Sortable.utils = {
|
|
|
2659
2343
|
nextTick: _nextTick,
|
|
2660
2344
|
cancelNextTick: _cancelNextTick,
|
|
2661
2345
|
detectDirection: _detectDirection,
|
|
2662
|
-
getChild: getChild
|
|
2346
|
+
getChild: getChild,
|
|
2347
|
+
expando: expando
|
|
2663
2348
|
};
|
|
2349
|
+
|
|
2664
2350
|
/**
|
|
2665
2351
|
* Get the Sortable instance of an element
|
|
2666
2352
|
* @param {HTMLElement} element The element
|
|
2667
2353
|
* @return {Sortable|undefined} The instance of Sortable
|
|
2668
2354
|
*/
|
|
2669
|
-
|
|
2670
2355
|
Sortable.get = function (element) {
|
|
2671
2356
|
return element[expando];
|
|
2672
2357
|
};
|
|
2358
|
+
|
|
2673
2359
|
/**
|
|
2674
2360
|
* Mount a plugin to Sortable
|
|
2675
2361
|
* @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
|
|
2676
2362
|
*/
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
2363
|
Sortable.mount = function () {
|
|
2680
2364
|
for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2681
2365
|
plugins[_key] = arguments[_key];
|
|
2682
2366
|
}
|
|
2683
|
-
|
|
2684
2367
|
if (plugins[0].constructor === Array) plugins = plugins[0];
|
|
2685
2368
|
plugins.forEach(function (plugin) {
|
|
2686
2369
|
if (!plugin.prototype || !plugin.prototype.constructor) {
|
|
2687
2370
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(plugin));
|
|
2688
2371
|
}
|
|
2689
|
-
|
|
2690
2372
|
if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);
|
|
2691
2373
|
PluginManager.mount(plugin);
|
|
2692
2374
|
});
|
|
2693
2375
|
};
|
|
2376
|
+
|
|
2694
2377
|
/**
|
|
2695
2378
|
* Create sortable instance
|
|
2696
2379
|
* @param {HTMLElement} el
|
|
2697
2380
|
* @param {Object} [options]
|
|
2698
2381
|
*/
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
2382
|
Sortable.create = function (el, options) {
|
|
2702
2383
|
return new Sortable(el, options);
|
|
2703
|
-
};
|
|
2704
|
-
|
|
2384
|
+
};
|
|
2705
2385
|
|
|
2386
|
+
// Export
|
|
2706
2387
|
Sortable.version = version;
|
|
2707
2388
|
|
|
2708
2389
|
var autoScrolls = [],
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2390
|
+
scrollEl,
|
|
2391
|
+
scrollRootEl,
|
|
2392
|
+
scrolling = false,
|
|
2393
|
+
lastAutoScrollX,
|
|
2394
|
+
lastAutoScrollY,
|
|
2395
|
+
touchEvt$1,
|
|
2396
|
+
pointerElemChangedInterval;
|
|
2717
2397
|
function AutoScrollPlugin() {
|
|
2718
2398
|
function AutoScroll() {
|
|
2719
2399
|
this.defaults = {
|
|
@@ -2722,19 +2402,18 @@ function AutoScrollPlugin() {
|
|
|
2722
2402
|
scrollSensitivity: 30,
|
|
2723
2403
|
scrollSpeed: 10,
|
|
2724
2404
|
bubbleScroll: true
|
|
2725
|
-
};
|
|
2405
|
+
};
|
|
2726
2406
|
|
|
2407
|
+
// Bind all private methods
|
|
2727
2408
|
for (var fn in this) {
|
|
2728
2409
|
if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {
|
|
2729
2410
|
this[fn] = this[fn].bind(this);
|
|
2730
2411
|
}
|
|
2731
2412
|
}
|
|
2732
2413
|
}
|
|
2733
|
-
|
|
2734
2414
|
AutoScroll.prototype = {
|
|
2735
2415
|
dragStarted: function dragStarted(_ref) {
|
|
2736
2416
|
var originalEvent = _ref.originalEvent;
|
|
2737
|
-
|
|
2738
2417
|
if (this.sortable.nativeDraggable) {
|
|
2739
2418
|
on(document, 'dragover', this._handleAutoScroll);
|
|
2740
2419
|
} else {
|
|
@@ -2749,7 +2428,6 @@ function AutoScrollPlugin() {
|
|
|
2749
2428
|
},
|
|
2750
2429
|
dragOverCompleted: function dragOverCompleted(_ref2) {
|
|
2751
2430
|
var originalEvent = _ref2.originalEvent;
|
|
2752
|
-
|
|
2753
2431
|
// For when bubbling is canceled and using fallback (fallback 'touchmove' always reached)
|
|
2754
2432
|
if (!this.options.dragOverBubble && !originalEvent.rootEl) {
|
|
2755
2433
|
this._handleAutoScroll(originalEvent);
|
|
@@ -2763,7 +2441,6 @@ function AutoScrollPlugin() {
|
|
|
2763
2441
|
off(document, 'touchmove', this._handleFallbackAutoScroll);
|
|
2764
2442
|
off(document, 'mousemove', this._handleFallbackAutoScroll);
|
|
2765
2443
|
}
|
|
2766
|
-
|
|
2767
2444
|
clearPointerElemChangedInterval();
|
|
2768
2445
|
clearAutoScrolls();
|
|
2769
2446
|
cancelThrottle();
|
|
@@ -2777,31 +2454,29 @@ function AutoScrollPlugin() {
|
|
|
2777
2454
|
},
|
|
2778
2455
|
_handleAutoScroll: function _handleAutoScroll(evt, fallback) {
|
|
2779
2456
|
var _this = this;
|
|
2780
|
-
|
|
2781
2457
|
var x = (evt.touches ? evt.touches[0] : evt).clientX,
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
touchEvt$1 = evt;
|
|
2458
|
+
y = (evt.touches ? evt.touches[0] : evt).clientY,
|
|
2459
|
+
elem = document.elementFromPoint(x, y);
|
|
2460
|
+
touchEvt$1 = evt;
|
|
2461
|
+
|
|
2462
|
+
// IE does not seem to have native autoscroll,
|
|
2785
2463
|
// Edge's autoscroll seems too conditional,
|
|
2786
2464
|
// MACOS Safari does not have autoscroll,
|
|
2787
2465
|
// Firefox and Chrome are good
|
|
2788
|
-
|
|
2789
2466
|
if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {
|
|
2790
|
-
autoScroll(evt, this.options, elem, fallback);
|
|
2467
|
+
autoScroll(evt, this.options, elem, fallback);
|
|
2791
2468
|
|
|
2469
|
+
// Listener for pointer element change
|
|
2792
2470
|
var ogElemScroller = getParentAutoScrollElement(elem, true);
|
|
2793
|
-
|
|
2794
2471
|
if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {
|
|
2795
|
-
pointerElemChangedInterval && clearPointerElemChangedInterval();
|
|
2796
|
-
|
|
2472
|
+
pointerElemChangedInterval && clearPointerElemChangedInterval();
|
|
2473
|
+
// Detect for pointer elem change, emulating native DnD behaviour
|
|
2797
2474
|
pointerElemChangedInterval = setInterval(function () {
|
|
2798
2475
|
var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);
|
|
2799
|
-
|
|
2800
2476
|
if (newElem !== ogElemScroller) {
|
|
2801
2477
|
ogElemScroller = newElem;
|
|
2802
2478
|
clearAutoScrolls();
|
|
2803
2479
|
}
|
|
2804
|
-
|
|
2805
2480
|
autoScroll(evt, _this.options, newElem, fallback);
|
|
2806
2481
|
}, 10);
|
|
2807
2482
|
lastAutoScrollX = x;
|
|
@@ -2813,7 +2488,6 @@ function AutoScrollPlugin() {
|
|
|
2813
2488
|
clearAutoScrolls();
|
|
2814
2489
|
return;
|
|
2815
2490
|
}
|
|
2816
|
-
|
|
2817
2491
|
autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);
|
|
2818
2492
|
}
|
|
2819
2493
|
}
|
|
@@ -2823,60 +2497,54 @@ function AutoScrollPlugin() {
|
|
|
2823
2497
|
initializeByDefault: true
|
|
2824
2498
|
});
|
|
2825
2499
|
}
|
|
2826
|
-
|
|
2827
2500
|
function clearAutoScrolls() {
|
|
2828
2501
|
autoScrolls.forEach(function (autoScroll) {
|
|
2829
2502
|
clearInterval(autoScroll.pid);
|
|
2830
2503
|
});
|
|
2831
2504
|
autoScrolls = [];
|
|
2832
2505
|
}
|
|
2833
|
-
|
|
2834
2506
|
function clearPointerElemChangedInterval() {
|
|
2835
2507
|
clearInterval(pointerElemChangedInterval);
|
|
2836
2508
|
}
|
|
2837
|
-
|
|
2838
2509
|
var autoScroll = throttle(function (evt, options, rootEl, isFallback) {
|
|
2839
2510
|
// Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521
|
|
2840
2511
|
if (!options.scroll) return;
|
|
2841
2512
|
var x = (evt.touches ? evt.touches[0] : evt).clientX,
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2513
|
+
y = (evt.touches ? evt.touches[0] : evt).clientY,
|
|
2514
|
+
sens = options.scrollSensitivity,
|
|
2515
|
+
speed = options.scrollSpeed,
|
|
2516
|
+
winScroller = getWindowScrollingElement();
|
|
2846
2517
|
var scrollThisInstance = false,
|
|
2847
|
-
|
|
2518
|
+
scrollCustomFn;
|
|
2848
2519
|
|
|
2520
|
+
// New scroll root, set scrollEl
|
|
2849
2521
|
if (scrollRootEl !== rootEl) {
|
|
2850
2522
|
scrollRootEl = rootEl;
|
|
2851
2523
|
clearAutoScrolls();
|
|
2852
2524
|
scrollEl = options.scroll;
|
|
2853
2525
|
scrollCustomFn = options.scrollFn;
|
|
2854
|
-
|
|
2855
2526
|
if (scrollEl === true) {
|
|
2856
2527
|
scrollEl = getParentAutoScrollElement(rootEl, true);
|
|
2857
2528
|
}
|
|
2858
2529
|
}
|
|
2859
|
-
|
|
2860
2530
|
var layersOut = 0;
|
|
2861
2531
|
var currentParent = scrollEl;
|
|
2862
|
-
|
|
2863
2532
|
do {
|
|
2864
2533
|
var el = currentParent,
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2534
|
+
rect = getRect(el),
|
|
2535
|
+
top = rect.top,
|
|
2536
|
+
bottom = rect.bottom,
|
|
2537
|
+
left = rect.left,
|
|
2538
|
+
right = rect.right,
|
|
2539
|
+
width = rect.width,
|
|
2540
|
+
height = rect.height,
|
|
2541
|
+
canScrollX = void 0,
|
|
2542
|
+
canScrollY = void 0,
|
|
2543
|
+
scrollWidth = el.scrollWidth,
|
|
2544
|
+
scrollHeight = el.scrollHeight,
|
|
2545
|
+
elCSS = css(el),
|
|
2546
|
+
scrollPosX = el.scrollLeft,
|
|
2547
|
+
scrollPosY = el.scrollTop;
|
|
2880
2548
|
if (el === winScroller) {
|
|
2881
2549
|
canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll' || elCSS.overflowX === 'visible');
|
|
2882
2550
|
canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll' || elCSS.overflowY === 'visible');
|
|
@@ -2884,10 +2552,8 @@ var autoScroll = throttle(function (evt, options, rootEl, isFallback) {
|
|
|
2884
2552
|
canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll');
|
|
2885
2553
|
canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll');
|
|
2886
2554
|
}
|
|
2887
|
-
|
|
2888
2555
|
var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);
|
|
2889
2556
|
var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);
|
|
2890
|
-
|
|
2891
2557
|
if (!autoScrolls[layersOut]) {
|
|
2892
2558
|
for (var i = 0; i <= layersOut; i++) {
|
|
2893
2559
|
if (!autoScrolls[i]) {
|
|
@@ -2895,61 +2561,51 @@ var autoScroll = throttle(function (evt, options, rootEl, isFallback) {
|
|
|
2895
2561
|
}
|
|
2896
2562
|
}
|
|
2897
2563
|
}
|
|
2898
|
-
|
|
2899
2564
|
if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {
|
|
2900
2565
|
autoScrolls[layersOut].el = el;
|
|
2901
2566
|
autoScrolls[layersOut].vx = vx;
|
|
2902
2567
|
autoScrolls[layersOut].vy = vy;
|
|
2903
2568
|
clearInterval(autoScrolls[layersOut].pid);
|
|
2904
|
-
|
|
2905
2569
|
if (vx != 0 || vy != 0) {
|
|
2906
2570
|
scrollThisInstance = true;
|
|
2907
2571
|
/* jshint loopfunc:true */
|
|
2908
|
-
|
|
2909
2572
|
autoScrolls[layersOut].pid = setInterval(function () {
|
|
2910
2573
|
// emulate drag over during autoscroll (fallback), emulating native DnD behaviour
|
|
2911
2574
|
if (isFallback && this.layer === 0) {
|
|
2912
2575
|
Sortable.active._onTouchMove(touchEvt$1); // To move ghost if it is positioned absolutely
|
|
2913
|
-
|
|
2914
2576
|
}
|
|
2915
|
-
|
|
2916
2577
|
var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;
|
|
2917
2578
|
var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;
|
|
2918
|
-
|
|
2919
2579
|
if (typeof scrollCustomFn === 'function') {
|
|
2920
2580
|
if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== 'continue') {
|
|
2921
2581
|
return;
|
|
2922
2582
|
}
|
|
2923
2583
|
}
|
|
2924
|
-
|
|
2925
2584
|
scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);
|
|
2926
2585
|
}.bind({
|
|
2927
2586
|
layer: layersOut
|
|
2928
2587
|
}), 24);
|
|
2929
2588
|
}
|
|
2930
2589
|
}
|
|
2931
|
-
|
|
2932
2590
|
layersOut++;
|
|
2933
2591
|
} while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));
|
|
2934
|
-
|
|
2935
2592
|
scrolling = scrollThisInstance; // in case another function catches scrolling as false in between when it is not
|
|
2936
2593
|
}, 30);
|
|
2937
2594
|
|
|
2938
2595
|
var drop = function drop(_ref) {
|
|
2939
2596
|
var originalEvent = _ref.originalEvent,
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2597
|
+
putSortable = _ref.putSortable,
|
|
2598
|
+
dragEl = _ref.dragEl,
|
|
2599
|
+
activeSortable = _ref.activeSortable,
|
|
2600
|
+
dispatchSortableEvent = _ref.dispatchSortableEvent,
|
|
2601
|
+
hideGhostForTarget = _ref.hideGhostForTarget,
|
|
2602
|
+
unhideGhostForTarget = _ref.unhideGhostForTarget;
|
|
2946
2603
|
if (!originalEvent) return;
|
|
2947
2604
|
var toSortable = putSortable || activeSortable;
|
|
2948
2605
|
hideGhostForTarget();
|
|
2949
2606
|
var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;
|
|
2950
2607
|
var target = document.elementFromPoint(touch.clientX, touch.clientY);
|
|
2951
2608
|
unhideGhostForTarget();
|
|
2952
|
-
|
|
2953
2609
|
if (toSortable && !toSortable.el.contains(target)) {
|
|
2954
2610
|
dispatchSortableEvent('spill');
|
|
2955
2611
|
this.onSpill({
|
|
@@ -2958,9 +2614,7 @@ var drop = function drop(_ref) {
|
|
|
2958
2614
|
});
|
|
2959
2615
|
}
|
|
2960
2616
|
};
|
|
2961
|
-
|
|
2962
2617
|
function Revert() {}
|
|
2963
|
-
|
|
2964
2618
|
Revert.prototype = {
|
|
2965
2619
|
startIndex: null,
|
|
2966
2620
|
dragStart: function dragStart(_ref2) {
|
|
@@ -2969,40 +2623,32 @@ Revert.prototype = {
|
|
|
2969
2623
|
},
|
|
2970
2624
|
onSpill: function onSpill(_ref3) {
|
|
2971
2625
|
var dragEl = _ref3.dragEl,
|
|
2972
|
-
|
|
2626
|
+
putSortable = _ref3.putSortable;
|
|
2973
2627
|
this.sortable.captureAnimationState();
|
|
2974
|
-
|
|
2975
2628
|
if (putSortable) {
|
|
2976
2629
|
putSortable.captureAnimationState();
|
|
2977
2630
|
}
|
|
2978
|
-
|
|
2979
2631
|
var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);
|
|
2980
|
-
|
|
2981
2632
|
if (nextSibling) {
|
|
2982
2633
|
this.sortable.el.insertBefore(dragEl, nextSibling);
|
|
2983
2634
|
} else {
|
|
2984
2635
|
this.sortable.el.appendChild(dragEl);
|
|
2985
2636
|
}
|
|
2986
|
-
|
|
2987
2637
|
this.sortable.animateAll();
|
|
2988
|
-
|
|
2989
2638
|
if (putSortable) {
|
|
2990
2639
|
putSortable.animateAll();
|
|
2991
2640
|
}
|
|
2992
2641
|
},
|
|
2993
2642
|
drop: drop
|
|
2994
2643
|
};
|
|
2995
|
-
|
|
2996
2644
|
_extends(Revert, {
|
|
2997
2645
|
pluginName: 'revertOnSpill'
|
|
2998
2646
|
});
|
|
2999
|
-
|
|
3000
2647
|
function Remove() {}
|
|
3001
|
-
|
|
3002
2648
|
Remove.prototype = {
|
|
3003
2649
|
onSpill: function onSpill(_ref4) {
|
|
3004
2650
|
var dragEl = _ref4.dragEl,
|
|
3005
|
-
|
|
2651
|
+
putSortable = _ref4.putSortable;
|
|
3006
2652
|
var parentSortable = putSortable || this.sortable;
|
|
3007
2653
|
parentSortable.captureAnimationState();
|
|
3008
2654
|
dragEl.parentNode && dragEl.parentNode.removeChild(dragEl);
|
|
@@ -3010,7 +2656,6 @@ Remove.prototype = {
|
|
|
3010
2656
|
},
|
|
3011
2657
|
drop: drop
|
|
3012
2658
|
};
|
|
3013
|
-
|
|
3014
2659
|
_extends(Remove, {
|
|
3015
2660
|
pluginName: 'removeOnSpill'
|
|
3016
2661
|
});
|