@oiz/stzh-components 0.0.0-pretest
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/LICENSE +21 -0
- package/README.md +56 -0
- package/dist/cjs/_commonjsHelpers-bcc1208a.js +25 -0
- package/dist/cjs/animation-utils-c816beac.js +45 -0
- package/dist/cjs/app-globals-83a6c2d3.js +54 -0
- package/dist/cjs/arrow-70a32014.js +1305 -0
- package/dist/cjs/date-adapter-2ffd8eaf.js +90 -0
- package/dist/cjs/date-utils-898a50be.js +174 -0
- package/dist/cjs/dom-874a1e39.js +75 -0
- package/dist/cjs/event-utils-4d7d610a.js +18 -0
- package/dist/cjs/focus-trap.esm-1cb6bb2e.js +1280 -0
- package/dist/cjs/index-8bd1552a.js +2019 -0
- package/dist/cjs/index-ac9bdc7f.js +2245 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/js.cookie-9c263d23.js +146 -0
- package/dist/cjs/loader.cjs.js +23 -0
- package/dist/cjs/media-utils-f1720906.js +26 -0
- package/dist/cjs/shadow-css-a33dc836.js +389 -0
- package/dist/cjs/string-utils-223b03e2.js +18 -0
- package/dist/cjs/stzh-accordion-item.cjs.entry.js +181 -0
- package/dist/cjs/stzh-accordion.cjs.entry.js +74 -0
- package/dist/cjs/stzh-actions.cjs.entry.js +53 -0
- package/dist/cjs/stzh-appnav.cjs.entry.js +50 -0
- package/dist/cjs/stzh-appointments.cjs.entry.js +271 -0
- package/dist/cjs/stzh-badge_3.cjs.entry.js +167 -0
- package/dist/cjs/stzh-calendar.cjs.entry.js +306 -0
- package/dist/cjs/stzh-cell.cjs.entry.js +35 -0
- package/dist/cjs/stzh-checkbox.cjs.entry.js +136 -0
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +168 -0
- package/dist/cjs/stzh-chip-select.cjs.entry.js +66 -0
- package/dist/cjs/stzh-chip.cjs.entry.js +101 -0
- package/dist/cjs/stzh-components.cjs.js +107 -0
- package/dist/cjs/stzh-container.cjs.entry.js +19 -0
- package/dist/cjs/stzh-cspace.cjs.entry.js +22 -0
- package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +103 -0
- package/dist/cjs/stzh-datamessagelist.cjs.entry.js +23 -0
- package/dist/cjs/stzh-datatable.cjs.entry.js +249 -0
- package/dist/cjs/stzh-datepicker_4.cjs.entry.js +484 -0
- package/dist/cjs/stzh-dialog.cjs.entry.js +191 -0
- package/dist/cjs/stzh-dropdown.cjs.entry.js +5086 -0
- package/dist/cjs/stzh-fieldset.cjs.entry.js +35 -0
- package/dist/cjs/stzh-figure.cjs.entry.js +30 -0
- package/dist/cjs/stzh-flyingfocus.cjs.entry.js +178 -0
- package/dist/cjs/stzh-footer.cjs.entry.js +67 -0
- package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +150 -0
- package/dist/cjs/stzh-header.cjs.entry.js +162 -0
- package/dist/cjs/stzh-heading.cjs.entry.js +32 -0
- package/dist/cjs/stzh-hr.cjs.entry.js +23 -0
- package/dist/cjs/stzh-hspace.cjs.entry.js +41 -0
- package/dist/cjs/stzh-icon-sprite.cjs.entry.js +22 -0
- package/dist/cjs/stzh-input-description-9ed61d1d.js +22 -0
- package/dist/cjs/stzh-input.cjs.entry.js +192 -0
- package/dist/cjs/stzh-link.cjs.entry.js +106 -0
- package/dist/cjs/stzh-list-item.cjs.entry.js +28 -0
- package/dist/cjs/stzh-list.cjs.entry.js +26 -0
- package/dist/cjs/stzh-loader.cjs.entry.js +31 -0
- package/dist/cjs/stzh-loadingbar.cjs.entry.js +33 -0
- package/dist/cjs/stzh-menu_2.cjs.entry.js +97 -0
- package/dist/cjs/stzh-message.cjs.entry.js +85 -0
- package/dist/cjs/stzh-metanav.cjs.entry.js +37 -0
- package/dist/cjs/stzh-overlay.cjs.entry.js +100 -0
- package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +37 -0
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +72 -0
- package/dist/cjs/stzh-popover.cjs.entry.js +361 -0
- package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +23 -0
- package/dist/cjs/stzh-progressbar-item.cjs.entry.js +57 -0
- package/dist/cjs/stzh-progressbar.cjs.entry.js +125 -0
- package/dist/cjs/stzh-readspeaker.cjs.entry.js +58 -0
- package/dist/cjs/stzh-row.cjs.entry.js +40 -0
- package/dist/cjs/stzh-saptcha.cjs.entry.js +81 -0
- package/dist/cjs/stzh-section.cjs.entry.js +24 -0
- package/dist/cjs/stzh-servicecard-list.cjs.entry.js +56 -0
- package/dist/cjs/stzh-servicecard.cjs.entry.js +212 -0
- package/dist/cjs/stzh-skiplink.cjs.entry.js +27 -0
- package/dist/cjs/stzh-sortable.cjs.entry.js +3382 -0
- package/dist/cjs/stzh-status.cjs.entry.js +36 -0
- package/dist/cjs/stzh-table.cjs.entry.js +143 -0
- package/dist/cjs/stzh-toggle.cjs.entry.js +134 -0
- package/dist/cjs/stzh-tooltip.cjs.entry.js +322 -0
- package/dist/cjs/stzh-upload.cjs.entry.js +10750 -0
- package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +2058 -0
- package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +107 -0
- package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +183 -0
- package/dist/cjs/stzh-visuallyhidden.cjs.entry.js +21 -0
- package/dist/cjs/stzh-vspace.cjs.entry.js +41 -0
- package/dist/cjs/translation-utils-2dbbce94.js +60 -0
- package/dist/cjs/utils-e84f4a8d.js +36 -0
- package/dist/collection/assets/favicons/android-chrome-192x192.png +0 -0
- package/dist/collection/assets/favicons/android-chrome-384x384.png +0 -0
- package/dist/collection/assets/favicons/apple-touch-icon.png +0 -0
- package/dist/collection/assets/favicons/browserconfig.xml +9 -0
- package/dist/collection/assets/favicons/favicon-16x16.png +0 -0
- package/dist/collection/assets/favicons/favicon-32x32.png +0 -0
- package/dist/collection/assets/favicons/favicon.ico +0 -0
- package/dist/collection/assets/favicons/mstile-150x150.png +0 -0
- package/dist/collection/assets/favicons/safari-pinned-tab.svg +1 -0
- package/dist/collection/assets/favicons/site.webmanifest +19 -0
- package/dist/collection/assets/fonts/HelveticaNeueLTW01_41488878.woff +0 -0
- package/dist/collection/assets/fonts/HelveticaNeueLTW01_41488878.woff2 +0 -0
- package/dist/collection/assets/fonts/HelveticaNeueLTW01_55Roman.woff +0 -0
- package/dist/collection/assets/fonts/HelveticaNeueLTW01_55Roman.woff2 +0 -0
- package/dist/collection/assets/fonts/HelveticaNeueLTW01_71488914.woff +0 -0
- package/dist/collection/assets/fonts/HelveticaNeueLTW01_71488914.woff2 +0 -0
- package/dist/collection/assets/fonts/HelveticaNeueLTW05_65Medium.woff +0 -0
- package/dist/collection/assets/fonts/HelveticaNeueLTW05_65Medium.woff2 +0 -0
- package/dist/collection/assets/fonts/HelveticaNeueLTW05_85Heavy.woff +0 -0
- package/dist/collection/assets/fonts/HelveticaNeueLTW05_85Heavy.woff2 +0 -0
- package/dist/collection/assets/fonts.css +39 -0
- package/dist/collection/assets/i18n/de.json +154 -0
- package/dist/collection/assets/i18n/en.json +154 -0
- package/dist/collection/assets/icons/mono/alarm-bell.svg +3 -0
- package/dist/collection/assets/icons/mono/angle-down.svg +3 -0
- package/dist/collection/assets/icons/mono/angle-left.svg +3 -0
- package/dist/collection/assets/icons/mono/angle-right.svg +3 -0
- package/dist/collection/assets/icons/mono/angle-up.svg +3 -0
- package/dist/collection/assets/icons/mono/archive-box.svg +3 -0
- package/dist/collection/assets/icons/mono/arrow-down.svg +3 -0
- package/dist/collection/assets/icons/mono/arrow-left-circle.svg +4 -0
- package/dist/collection/assets/icons/mono/arrow-left.svg +3 -0
- package/dist/collection/assets/icons/mono/arrow-right-long.svg +3 -0
- package/dist/collection/assets/icons/mono/arrow-right.svg +3 -0
- package/dist/collection/assets/icons/mono/arrow-up.svg +3 -0
- package/dist/collection/assets/icons/mono/bulleted-list.svg +3 -0
- package/dist/collection/assets/icons/mono/calendar.svg +3 -0
- package/dist/collection/assets/icons/mono/cart.svg +3 -0
- package/dist/collection/assets/icons/mono/checkmark-circle.svg +3 -0
- package/dist/collection/assets/icons/mono/checkmark.svg +3 -0
- package/dist/collection/assets/icons/mono/clock.svg +3 -0
- package/dist/collection/assets/icons/mono/close-circle.svg +3 -0
- package/dist/collection/assets/icons/mono/close.svg +3 -0
- package/dist/collection/assets/icons/mono/compass-direction.svg +3 -0
- package/dist/collection/assets/icons/mono/compass-north.svg +4 -0
- package/dist/collection/assets/icons/mono/construction.svg +3 -0
- package/dist/collection/assets/icons/mono/copy.svg +3 -0
- package/dist/collection/assets/icons/mono/delete.svg +3 -0
- package/dist/collection/assets/icons/mono/download.svg +3 -0
- package/dist/collection/assets/icons/mono/drag.svg +10 -0
- package/dist/collection/assets/icons/mono/edit.svg +3 -0
- package/dist/collection/assets/icons/mono/email-check.svg +10 -0
- package/dist/collection/assets/icons/mono/expand.svg +3 -0
- package/dist/collection/assets/icons/mono/external-link.svg +4 -0
- package/dist/collection/assets/icons/mono/facebook-comment.svg +3 -0
- package/dist/collection/assets/icons/mono/facebook.svg +10 -0
- package/dist/collection/assets/icons/mono/file.svg +3 -0
- package/dist/collection/assets/icons/mono/filtering.svg +3 -0
- package/dist/collection/assets/icons/mono/flag.svg +10 -0
- package/dist/collection/assets/icons/mono/focus.svg +3 -0
- package/dist/collection/assets/icons/mono/gear.svg +3 -0
- package/dist/collection/assets/icons/mono/heart.svg +10 -0
- package/dist/collection/assets/icons/mono/home.svg +10 -0
- package/dist/collection/assets/icons/mono/important-warning.svg +3 -0
- package/dist/collection/assets/icons/mono/info-help.svg +3 -0
- package/dist/collection/assets/icons/mono/instagram.svg +3 -0
- package/dist/collection/assets/icons/mono/like-hand.svg +10 -0
- package/dist/collection/assets/icons/mono/linkedin.svg +5 -0
- package/dist/collection/assets/icons/mono/list-expanded.svg +4 -0
- package/dist/collection/assets/icons/mono/list-shrinked.svg +3 -0
- package/dist/collection/assets/icons/mono/lock.svg +10 -0
- package/dist/collection/assets/icons/mono/mail.svg +10 -0
- package/dist/collection/assets/icons/mono/map.svg +3 -0
- package/dist/collection/assets/icons/mono/menu.svg +3 -0
- package/dist/collection/assets/icons/mono/minus.svg +3 -0
- package/dist/collection/assets/icons/mono/more-horizontal.svg +5 -0
- package/dist/collection/assets/icons/mono/more-vertical.svg +5 -0
- package/dist/collection/assets/icons/mono/paper-clip.svg +10 -0
- package/dist/collection/assets/icons/mono/phone.svg +10 -0
- package/dist/collection/assets/icons/mono/pin-location.svg +10 -0
- package/dist/collection/assets/icons/mono/pin.svg +11 -0
- package/dist/collection/assets/icons/mono/play-1.svg +4 -0
- package/dist/collection/assets/icons/mono/play-button.svg +11 -0
- package/dist/collection/assets/icons/mono/play.svg +10 -0
- package/dist/collection/assets/icons/mono/plus.svg +3 -0
- package/dist/collection/assets/icons/mono/portfolio-grid.svg +11 -0
- package/dist/collection/assets/icons/mono/print.svg +10 -0
- package/dist/collection/assets/icons/mono/question-help.svg +3 -0
- package/dist/collection/assets/icons/mono/read-mail.svg +10 -0
- package/dist/collection/assets/icons/mono/reload.svg +10 -0
- package/dist/collection/assets/icons/mono/reset-time.svg +10 -0
- package/dist/collection/assets/icons/mono/reset.svg +10 -0
- package/dist/collection/assets/icons/mono/resize.svg +8 -0
- package/dist/collection/assets/icons/mono/rss.svg +12 -0
- package/dist/collection/assets/icons/mono/search.svg +3 -0
- package/dist/collection/assets/icons/mono/services.svg +6 -0
- package/dist/collection/assets/icons/mono/share.svg +3 -0
- package/dist/collection/assets/icons/mono/shrink.svg +3 -0
- package/dist/collection/assets/icons/mono/silent-mode.svg +3 -0
- package/dist/collection/assets/icons/mono/social-media.svg +23 -0
- package/dist/collection/assets/icons/mono/star-filled.svg +3 -0
- package/dist/collection/assets/icons/mono/star.svg +3 -0
- package/dist/collection/assets/icons/mono/subtitle.svg +3 -0
- package/dist/collection/assets/icons/mono/team.svg +10 -0
- package/dist/collection/assets/icons/mono/text-message.svg +6 -0
- package/dist/collection/assets/icons/mono/thermometer.svg +10 -0
- package/dist/collection/assets/icons/mono/transcript.svg +3 -0
- package/dist/collection/assets/icons/mono/twitter-reply.svg +3 -0
- package/dist/collection/assets/icons/mono/twitter-retweet.svg +3 -0
- package/dist/collection/assets/icons/mono/twitter.svg +10 -0
- package/dist/collection/assets/icons/mono/unlock.svg +10 -0
- package/dist/collection/assets/icons/mono/user.svg +3 -0
- package/dist/collection/assets/icons/mono/view-hidden.svg +3 -0
- package/dist/collection/assets/icons/mono/view.svg +4 -0
- package/dist/collection/assets/icons/mono/volume-medium.svg +3 -0
- package/dist/collection/assets/icons/mono/warning-big.svg +4 -0
- package/dist/collection/assets/icons/mono/warning.svg +3 -0
- package/dist/collection/assets/icons/mono/web-Link.svg +3 -0
- package/dist/collection/assets/icons/mono/wifi-signal.svg +3 -0
- package/dist/collection/assets/icons/mono/world-globe.svg +10 -0
- package/dist/collection/assets/icons/mono/xing.svg +11 -0
- package/dist/collection/assets/polyfills/ie11CustomProperties.min.js +8 -0
- package/dist/collection/assets/polyfills/intersection-observer.min.js +7 -0
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Common.Settings.js +278 -0
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Core.js +544 -0
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.HL.js +1111 -0
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.PlayerAPI.js +211 -0
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Styles-Basic.css +881 -0
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Styles-Button.css +75 -0
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Styles.css +977 -0
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.js +257 -0
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.lib.Facade.adapter.jquery.js +120 -0
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.lib.RSLib.js +796 -0
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.pub.Config.js +384 -0
- package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.ui.js +1241 -0
- package/dist/collection/assets/vendors/readspeaker/ReadSpeakerClassic.css +357 -0
- package/dist/collection/assets/vendors/readspeaker/ReadSpeakerClassic.js +51 -0
- package/dist/collection/assets/vendors/readspeaker/img/ReadSpeakerClassic.png +0 -0
- package/dist/collection/assets/vendors/readspeaker/img/cursor-ew.png +0 -0
- package/dist/collection/assets/vendors/readspeaker/img/help.png +0 -0
- package/dist/collection/assets/vendors/readspeaker/img/icon_16px.gif +0 -0
- package/dist/collection/assets/vendors/readspeaker/img/pin_black.png +0 -0
- package/dist/collection/assets/vendors/readspeaker/img/pin_red.png +0 -0
- package/dist/collection/assets/vendors/readspeaker/img/play-anim.gif +0 -0
- package/dist/collection/assets/vendors/readspeaker/img/rs_button.gif +0 -0
- package/dist/collection/assets/vendors/readspeaker/img/rs_button.png +0 -0
- package/dist/collection/assets/vendors/readspeaker/img/rs_loader_anim.gif +0 -0
- package/dist/collection/assets/vendors/readspeaker/img/timeline-anim.gif +0 -0
- package/dist/collection/assets/vendors/readspeaker/mods/enlargeHL/ReadSpeaker.enlargeHL.css +1 -0
- package/dist/collection/assets/vendors/readspeaker/mods/enlargeHL/ReadSpeaker.enlargeHL.js +24 -0
- package/dist/collection/assets/vendors/readspeaker/mods/enlargeHL/img/rs_icon_64x64.png +0 -0
- package/dist/collection/collection-manifest.json +82 -0
- package/dist/collection/components/stzh-accordion/stzh-accordion.css +99 -0
- package/dist/collection/components/stzh-accordion/stzh-accordion.js +156 -0
- package/dist/collection/components/stzh-accordion/stzh-accordion.stories.js +52 -0
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +233 -0
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +429 -0
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.stories.js +45 -0
- package/dist/collection/components/stzh-actions/stzh-actions.css +125 -0
- package/dist/collection/components/stzh-actions/stzh-actions.js +98 -0
- package/dist/collection/components/stzh-actions/stzh-actions.stories.js +66 -0
- package/dist/collection/components/stzh-appnav/stzh-appnav.css +220 -0
- package/dist/collection/components/stzh-appnav/stzh-appnav.js +112 -0
- package/dist/collection/components/stzh-appnav/stzh-appnav.stories.js +53 -0
- package/dist/collection/components/stzh-appointments/stzh-appointments.css +180 -0
- package/dist/collection/components/stzh-appointments/stzh-appointments.js +515 -0
- package/dist/collection/components/stzh-appointments/stzh-appointments.localization.js +1 -0
- package/dist/collection/components/stzh-appointments/stzh-appointments.stories.js +186 -0
- package/dist/collection/components/stzh-badge/stzh-badge.css +118 -0
- package/dist/collection/components/stzh-badge/stzh-badge.js +47 -0
- package/dist/collection/components/stzh-badge/stzh-badge.stories.js +36 -0
- package/dist/collection/components/stzh-button/stzh-button.css +312 -0
- package/dist/collection/components/stzh-button/stzh-button.js +516 -0
- package/dist/collection/components/stzh-button/stzh-button.stories.js +66 -0
- package/dist/collection/components/stzh-calendar/stzh-calendar-day.js +22 -0
- package/dist/collection/components/stzh-calendar/stzh-calendar-month.js +21 -0
- package/dist/collection/components/stzh-calendar/stzh-calendar.css +332 -0
- package/dist/collection/components/stzh-calendar/stzh-calendar.js +463 -0
- package/dist/collection/components/stzh-calendar/stzh-calendar.localization.js +1 -0
- package/dist/collection/components/stzh-calendar/stzh-calendar.stories.js +37 -0
- package/dist/collection/components/stzh-cell/stzh-cell.css +575 -0
- package/dist/collection/components/stzh-cell/stzh-cell.js +179 -0
- package/dist/collection/components/stzh-cell/stzh-cell.stories.js +39 -0
- package/dist/collection/components/stzh-checkbox/assets/check.svg +3 -0
- package/dist/collection/components/stzh-checkbox/stzh-checkbox.css +272 -0
- package/dist/collection/components/stzh-checkbox/stzh-checkbox.js +459 -0
- package/dist/collection/components/stzh-checkbox/stzh-checkbox.stories.js +38 -0
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.css +209 -0
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +450 -0
- package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.stories.js +39 -0
- package/dist/collection/components/stzh-chip/stzh-chip.css +302 -0
- package/dist/collection/components/stzh-chip/stzh-chip.js +407 -0
- package/dist/collection/components/stzh-chip/stzh-chip.stories.js +64 -0
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +115 -0
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +158 -0
- package/dist/collection/components/stzh-chip-select/stzh-chip-select.stories.js +69 -0
- package/dist/collection/components/stzh-container/stzh-container.css +190 -0
- package/dist/collection/components/stzh-container/stzh-container.js +21 -0
- package/dist/collection/components/stzh-container/stzh-container.stories.js +35 -0
- package/dist/collection/components/stzh-cspace/stzh-cspace.css +515 -0
- package/dist/collection/components/stzh-cspace/stzh-cspace.js +24 -0
- package/dist/collection/components/stzh-cspace/stzh-cspace.stories.js +34 -0
- package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.css +103 -0
- package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.js +24 -0
- package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.stories.js +149 -0
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +317 -0
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.js +358 -0
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.localization.js +1 -0
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.stories.js +63 -0
- package/dist/collection/components/stzh-datatable/stzh-datatable.css +338 -0
- package/dist/collection/components/stzh-datatable/stzh-datatable.js +413 -0
- package/dist/collection/components/stzh-datatable/stzh-datatable.localization.js +1 -0
- package/dist/collection/components/stzh-datatable/stzh-datatable.stories.js +63 -0
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.css +111 -0
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +586 -0
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.localization.js +1 -0
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.stories.js +40 -0
- package/dist/collection/components/stzh-dialog/stzh-dialog.css +266 -0
- package/dist/collection/components/stzh-dialog/stzh-dialog.js +480 -0
- package/dist/collection/components/stzh-dialog/stzh-dialog.localization.js +1 -0
- package/dist/collection/components/stzh-dialog/stzh-dialog.stories.js +75 -0
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +730 -0
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +1436 -0
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.localization.js +1 -0
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.stories.js +109 -0
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +148 -0
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.js +120 -0
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.stories.js +55 -0
- package/dist/collection/components/stzh-figure/stzh-figure.css +137 -0
- package/dist/collection/components/stzh-figure/stzh-figure.js +76 -0
- package/dist/collection/components/stzh-figure/stzh-figure.stories.js +36 -0
- package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.css +140 -0
- package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.js +253 -0
- package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.stories.js +27 -0
- package/dist/collection/components/stzh-footer/stzh-footer.css +208 -0
- package/dist/collection/components/stzh-footer/stzh-footer.js +147 -0
- package/dist/collection/components/stzh-footer/stzh-footer.localization.js +1 -0
- package/dist/collection/components/stzh-footer/stzh-footer.stories.js +49 -0
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +306 -0
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.js +319 -0
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.localization.js +1 -0
- package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.stories.js +49 -0
- package/dist/collection/components/stzh-header/stzh-header.css +436 -0
- package/dist/collection/components/stzh-header/stzh-header.js +267 -0
- package/dist/collection/components/stzh-header/stzh-header.stories.js +178 -0
- package/dist/collection/components/stzh-heading/stzh-heading.css +397 -0
- package/dist/collection/components/stzh-heading/stzh-heading.js +99 -0
- package/dist/collection/components/stzh-heading/stzh-heading.stories.js +37 -0
- package/dist/collection/components/stzh-hr/stzh-hr.css +105 -0
- package/dist/collection/components/stzh-hr/stzh-hr.js +25 -0
- package/dist/collection/components/stzh-hr/stzh-hr.stories.js +23 -0
- package/dist/collection/components/stzh-hspace/stzh-hspace.css +810 -0
- package/dist/collection/components/stzh-hspace/stzh-hspace.js +246 -0
- package/dist/collection/components/stzh-hspace/stzh-hspace.stories.js +73 -0
- package/dist/collection/components/stzh-icon/stzh-icon.css +109 -0
- package/dist/collection/components/stzh-icon/stzh-icon.js +76 -0
- package/dist/collection/components/stzh-icon/stzh-icon.stories.js +37 -0
- package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/sprite.symbol.html +1354 -0
- package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -0
- package/dist/collection/components/stzh-icon-sprite/stzh-icon-sprite.css +99 -0
- package/dist/collection/components/stzh-icon-sprite/stzh-icon-sprite.js +19 -0
- package/dist/collection/components/stzh-icon-sprite/stzh-icon-sprite.stories.js +46 -0
- package/dist/collection/components/stzh-input/stzh-input-description.js +8 -0
- package/dist/collection/components/stzh-input/stzh-input.css +425 -0
- package/dist/collection/components/stzh-input/stzh-input.js +724 -0
- package/dist/collection/components/stzh-input/stzh-input.stories.js +116 -0
- package/dist/collection/components/stzh-link/stzh-link.css +231 -0
- package/dist/collection/components/stzh-link/stzh-link.js +427 -0
- package/dist/collection/components/stzh-link/stzh-link.stories.js +67 -0
- package/dist/collection/components/stzh-list/stzh-list.css +136 -0
- package/dist/collection/components/stzh-list/stzh-list.js +52 -0
- package/dist/collection/components/stzh-list/stzh-list.stories.js +42 -0
- package/dist/collection/components/stzh-list-item/assets/checkmark.svg +3 -0
- package/dist/collection/components/stzh-list-item/stzh-list-item.css +120 -0
- package/dist/collection/components/stzh-list-item/stzh-list-item.js +26 -0
- package/dist/collection/components/stzh-loader/stzh-loader.css +261 -0
- package/dist/collection/components/stzh-loader/stzh-loader.js +93 -0
- package/dist/collection/components/stzh-loader/stzh-loader.stories.js +36 -0
- package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.css +135 -0
- package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.js +94 -0
- package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.stories.js +34 -0
- package/dist/collection/components/stzh-menu/stzh-menu.css +105 -0
- package/dist/collection/components/stzh-menu/stzh-menu.js +21 -0
- package/dist/collection/components/stzh-menu/stzh-menu.stories.js +70 -0
- package/dist/collection/components/stzh-menu-item/stzh-menu-item.css +173 -0
- package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +296 -0
- package/dist/collection/components/stzh-menu-item/stzh-menu-item.stories.js +52 -0
- package/dist/collection/components/stzh-message/stzh-message.css +259 -0
- package/dist/collection/components/stzh-message/stzh-message.js +287 -0
- package/dist/collection/components/stzh-message/stzh-message.localization.js +1 -0
- package/dist/collection/components/stzh-message/stzh-message.stories.js +40 -0
- package/dist/collection/components/stzh-metanav/stzh-metanav.css +115 -0
- package/dist/collection/components/stzh-metanav/stzh-metanav.js +41 -0
- package/dist/collection/components/stzh-metanav/stzh-metanav.stories.js +39 -0
- package/dist/collection/components/stzh-overlay/stzh-overlay.css +135 -0
- package/dist/collection/components/stzh-overlay/stzh-overlay.js +239 -0
- package/dist/collection/components/stzh-overlay/stzh-overlay.stories.js +50 -0
- package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.css +113 -0
- package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.js +41 -0
- package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.stories.js +43 -0
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.css +136 -0
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +76 -0
- package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.stories.js +107 -0
- package/dist/collection/components/stzh-popover/stzh-popover.css +360 -0
- package/dist/collection/components/stzh-popover/stzh-popover.js +673 -0
- package/dist/collection/components/stzh-popover/stzh-popover.localization.js +1 -0
- package/dist/collection/components/stzh-popover/stzh-popover.stories.js +67 -0
- package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +4079 -0
- package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.js +25 -0
- package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.stories.js +28 -0
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.css +119 -0
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.js +272 -0
- package/dist/collection/components/stzh-progressbar/stzh-progressbar.stories.js +164 -0
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +364 -0
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +250 -0
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.stories.js +36 -0
- package/dist/collection/components/stzh-radio/stzh-radio.css +278 -0
- package/dist/collection/components/stzh-radio/stzh-radio.js +458 -0
- package/dist/collection/components/stzh-radio/stzh-radio.stories.js +38 -0
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.css +209 -0
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +477 -0
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.stories.js +39 -0
- package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.css +210 -0
- package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.js +114 -0
- package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.stories.js +50 -0
- package/dist/collection/components/stzh-richtext/stzh-richtext.css +735 -0
- package/dist/collection/components/stzh-richtext/stzh-richtext.js +90 -0
- package/dist/collection/components/stzh-richtext/stzh-richtext.stories.js +79 -0
- package/dist/collection/components/stzh-row/stzh-row.css +572 -0
- package/dist/collection/components/stzh-row/stzh-row.js +207 -0
- package/dist/collection/components/stzh-row/stzh-row.stories.js +90 -0
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.css +170 -0
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.js +221 -0
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.localization.js +1 -0
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.stories.js +34 -0
- package/dist/collection/components/stzh-section/stzh-section.css +126 -0
- package/dist/collection/components/stzh-section/stzh-section.js +50 -0
- package/dist/collection/components/stzh-section/stzh-section.stories.js +100 -0
- package/dist/collection/components/stzh-servicecard/stzh-servicecard.css +558 -0
- package/dist/collection/components/stzh-servicecard/stzh-servicecard.js +592 -0
- package/dist/collection/components/stzh-servicecard/stzh-servicecard.localization.js +1 -0
- package/dist/collection/components/stzh-servicecard/stzh-servicecard.stories.js +73 -0
- package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.css +163 -0
- package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.js +153 -0
- package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.localization.js +1 -0
- package/dist/collection/components/stzh-servicecard-list/stzh-servicecard-list.stories.js +115 -0
- package/dist/collection/components/stzh-skiplink/stzh-skiplink.css +128 -0
- package/dist/collection/components/stzh-skiplink/stzh-skiplink.js +106 -0
- package/dist/collection/components/stzh-skiplink/stzh-skiplink.stories.js +53 -0
- package/dist/collection/components/stzh-sortable/stzh-sortable.css +151 -0
- package/dist/collection/components/stzh-sortable/stzh-sortable.js +501 -0
- package/dist/collection/components/stzh-sortable/stzh-sortable.localization.js +1 -0
- package/dist/collection/components/stzh-sortable/stzh-sortable.stories.js +34 -0
- package/dist/collection/components/stzh-status/stzh-status.css +143 -0
- package/dist/collection/components/stzh-status/stzh-status.js +115 -0
- package/dist/collection/components/stzh-status/stzh-status.stories.js +34 -0
- package/dist/collection/components/stzh-table/stzh-table.css +365 -0
- package/dist/collection/components/stzh-table/stzh-table.js +215 -0
- package/dist/collection/components/stzh-table/stzh-table.stories.js +89 -0
- package/dist/collection/components/stzh-text/stzh-text.css +859 -0
- package/dist/collection/components/stzh-text/stzh-text.js +232 -0
- package/dist/collection/components/stzh-text/stzh-text.stories.js +43 -0
- package/dist/collection/components/stzh-toggle/stzh-toggle.css +296 -0
- package/dist/collection/components/stzh-toggle/stzh-toggle.js +479 -0
- package/dist/collection/components/stzh-toggle/stzh-toggle.stories.js +38 -0
- package/dist/collection/components/stzh-tooltip/assets/arrow.svg +3 -0
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.css +182 -0
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +667 -0
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.localization.js +1 -0
- package/dist/collection/components/stzh-tooltip/stzh-tooltip.stories.js +63 -0
- package/dist/collection/components/stzh-upload/stzh-upload.css +409 -0
- package/dist/collection/components/stzh-upload/stzh-upload.js +1358 -0
- package/dist/collection/components/stzh-upload/stzh-upload.localization.js +1 -0
- package/dist/collection/components/stzh-upload/stzh-upload.stories.js +69 -0
- package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.css +163 -0
- package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.js +229 -0
- package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.stories.js +36 -0
- package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.css +100 -0
- package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.js +236 -0
- package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.localization.js +1 -0
- package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.stories.js +52 -0
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.css +225 -0
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.js +292 -0
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.js +1 -0
- package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.stories.js +53 -0
- package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.css +107 -0
- package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.js +23 -0
- package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.stories.js +45 -0
- package/dist/collection/components/stzh-vspace/stzh-vspace.css +811 -0
- package/dist/collection/components/stzh-vspace/stzh-vspace.js +246 -0
- package/dist/collection/components/stzh-vspace/stzh-vspace.stories.js +73 -0
- package/dist/collection/global/js/helpers/autofocus.js +20 -0
- package/dist/collection/global/js/helpers/scrollbar-width.js +20 -0
- package/dist/collection/global/js/script.js +17 -0
- package/dist/collection/index.js +7 -0
- package/dist/collection/pages/egov.stories.js +262 -0
- package/dist/collection/pages/example.stories.js +170 -0
- package/dist/collection/pages/meinkonto.stories.js +661 -0
- package/dist/collection/patterns/appointments.stories.js +43 -0
- package/dist/collection/patterns/processingscreen.stories.js +43 -0
- package/dist/collection/utils/animation-utils.js +51 -0
- package/dist/collection/utils/date-adapter.js +86 -0
- package/dist/collection/utils/date-utils.js +196 -0
- package/dist/collection/utils/decorators.js +15 -0
- package/dist/collection/utils/event-utils.js +14 -0
- package/dist/collection/utils/h.js +109 -0
- package/dist/collection/utils/media-utils.js +20 -0
- package/dist/collection/utils/string-utils.js +13 -0
- package/dist/collection/utils/test-utils.js +27 -0
- package/dist/collection/utils/translation-utils.js +55 -0
- package/dist/collection/utils/utils.js +41 -0
- package/dist/components/_commonjsHelpers.js +21 -0
- package/dist/components/animation-utils.js +40 -0
- package/dist/components/arrow.js +1297 -0
- package/dist/components/date-adapter.js +88 -0
- package/dist/components/event-utils.js +16 -0
- package/dist/components/focus-trap.esm.js +1278 -0
- package/dist/components/index.d.ts +92 -0
- package/dist/components/index.js +125 -0
- package/dist/components/index2.js +2017 -0
- package/dist/components/js.cookie.js +144 -0
- package/dist/components/media-utils.js +22 -0
- package/dist/components/string-utils.js +15 -0
- package/dist/components/stzh-accordion-item.d.ts +11 -0
- package/dist/components/stzh-accordion-item.js +204 -0
- package/dist/components/stzh-accordion.d.ts +11 -0
- package/dist/components/stzh-accordion.js +91 -0
- package/dist/components/stzh-actions.d.ts +11 -0
- package/dist/components/stzh-actions.js +69 -0
- package/dist/components/stzh-appnav.d.ts +11 -0
- package/dist/components/stzh-appnav.js +67 -0
- package/dist/components/stzh-appointments.d.ts +11 -0
- package/dist/components/stzh-appointments.js +367 -0
- package/dist/components/stzh-badge.d.ts +11 -0
- package/dist/components/stzh-badge.js +6 -0
- package/dist/components/stzh-badge2.js +33 -0
- package/dist/components/stzh-button.d.ts +11 -0
- package/dist/components/stzh-button.js +6 -0
- package/dist/components/stzh-button2.js +165 -0
- package/dist/components/stzh-calendar.d.ts +11 -0
- package/dist/components/stzh-calendar.js +6 -0
- package/dist/components/stzh-calendar2.js +490 -0
- package/dist/components/stzh-cell.d.ts +11 -0
- package/dist/components/stzh-cell.js +57 -0
- package/dist/components/stzh-checkbox.d.ts +11 -0
- package/dist/components/stzh-checkbox.js +176 -0
- package/dist/components/stzh-checkboxgroup.d.ts +11 -0
- package/dist/components/stzh-checkboxgroup.js +208 -0
- package/dist/components/stzh-chip-select.d.ts +11 -0
- package/dist/components/stzh-chip-select.js +107 -0
- package/dist/components/stzh-chip.d.ts +11 -0
- package/dist/components/stzh-chip.js +6 -0
- package/dist/components/stzh-chip2.js +130 -0
- package/dist/components/stzh-container.d.ts +11 -0
- package/dist/components/stzh-container.js +32 -0
- package/dist/components/stzh-cspace.d.ts +11 -0
- package/dist/components/stzh-cspace.js +35 -0
- package/dist/components/stzh-datamessagelist-item.d.ts +11 -0
- package/dist/components/stzh-datamessagelist-item.js +175 -0
- package/dist/components/stzh-datamessagelist.d.ts +11 -0
- package/dist/components/stzh-datamessagelist.js +36 -0
- package/dist/components/stzh-datatable.d.ts +11 -0
- package/dist/components/stzh-datatable.js +308 -0
- package/dist/components/stzh-datepicker.d.ts +11 -0
- package/dist/components/stzh-datepicker.js +6 -0
- package/dist/components/stzh-datepicker2.js +221 -0
- package/dist/components/stzh-dialog.d.ts +11 -0
- package/dist/components/stzh-dialog.js +229 -0
- package/dist/components/stzh-dropdown.d.ts +11 -0
- package/dist/components/stzh-dropdown.js +6 -0
- package/dist/components/stzh-dropdown2.js +5151 -0
- package/dist/components/stzh-fieldset.d.ts +11 -0
- package/dist/components/stzh-fieldset.js +59 -0
- package/dist/components/stzh-figure.d.ts +11 -0
- package/dist/components/stzh-figure.js +46 -0
- package/dist/components/stzh-flyingfocus.d.ts +11 -0
- package/dist/components/stzh-flyingfocus.js +199 -0
- package/dist/components/stzh-footer.d.ts +11 -0
- package/dist/components/stzh-footer.js +103 -0
- package/dist/components/stzh-ghettobox.d.ts +11 -0
- package/dist/components/stzh-ghettobox.js +6 -0
- package/dist/components/stzh-ghettobox2.js +135 -0
- package/dist/components/stzh-header.d.ts +11 -0
- package/dist/components/stzh-header.js +186 -0
- package/dist/components/stzh-heading.d.ts +11 -0
- package/dist/components/stzh-heading.js +6 -0
- package/dist/components/stzh-heading2.js +46 -0
- package/dist/components/stzh-hr.d.ts +11 -0
- package/dist/components/stzh-hr.js +36 -0
- package/dist/components/stzh-hspace.d.ts +11 -0
- package/dist/components/stzh-hspace.js +64 -0
- package/dist/components/stzh-icon-sprite.d.ts +11 -0
- package/dist/components/stzh-icon-sprite.js +35 -0
- package/dist/components/stzh-icon.d.ts +11 -0
- package/dist/components/stzh-icon.js +6 -0
- package/dist/components/stzh-icon2.js +48 -0
- package/dist/components/stzh-input-description.js +20 -0
- package/dist/components/stzh-input.d.ts +11 -0
- package/dist/components/stzh-input.js +6 -0
- package/dist/components/stzh-input2.js +253 -0
- package/dist/components/stzh-link.d.ts +11 -0
- package/dist/components/stzh-link.js +6 -0
- package/dist/components/stzh-link2.js +144 -0
- package/dist/components/stzh-list-item.d.ts +11 -0
- package/dist/components/stzh-list-item.js +42 -0
- package/dist/components/stzh-list.d.ts +11 -0
- package/dist/components/stzh-list.js +42 -0
- package/dist/components/stzh-loader.d.ts +11 -0
- package/dist/components/stzh-loader.js +48 -0
- package/dist/components/stzh-loadingbar.d.ts +11 -0
- package/dist/components/stzh-loadingbar.js +50 -0
- package/dist/components/stzh-menu-item.d.ts +11 -0
- package/dist/components/stzh-menu-item.js +6 -0
- package/dist/components/stzh-menu-item2.js +116 -0
- package/dist/components/stzh-menu.d.ts +11 -0
- package/dist/components/stzh-menu.js +6 -0
- package/dist/components/stzh-menu2.js +29 -0
- package/dist/components/stzh-message.d.ts +11 -0
- package/dist/components/stzh-message.js +113 -0
- package/dist/components/stzh-metanav.d.ts +11 -0
- package/dist/components/stzh-metanav.js +50 -0
- package/dist/components/stzh-overlay.d.ts +11 -0
- package/dist/components/stzh-overlay.js +119 -0
- package/dist/components/stzh-page-skiplinks.d.ts +11 -0
- package/dist/components/stzh-page-skiplinks.js +50 -0
- package/dist/components/stzh-pagetitle.d.ts +11 -0
- package/dist/components/stzh-pagetitle.js +85 -0
- package/dist/components/stzh-popover.d.ts +11 -0
- package/dist/components/stzh-popover.js +6 -0
- package/dist/components/stzh-popover2.js +390 -0
- package/dist/components/stzh-portal-mitwirken.d.ts +11 -0
- package/dist/components/stzh-portal-mitwirken.js +36 -0
- package/dist/components/stzh-progressbar-item.d.ts +11 -0
- package/dist/components/stzh-progressbar-item.js +6 -0
- package/dist/components/stzh-progressbar-item2.js +82 -0
- package/dist/components/stzh-progressbar.d.ts +11 -0
- package/dist/components/stzh-progressbar.js +159 -0
- package/dist/components/stzh-radio.d.ts +11 -0
- package/dist/components/stzh-radio.js +6 -0
- package/dist/components/stzh-radio2.js +168 -0
- package/dist/components/stzh-radiogroup.d.ts +11 -0
- package/dist/components/stzh-radiogroup.js +6 -0
- package/dist/components/stzh-radiogroup2.js +215 -0
- package/dist/components/stzh-readspeaker.d.ts +11 -0
- package/dist/components/stzh-readspeaker.js +74 -0
- package/dist/components/stzh-richtext.d.ts +11 -0
- package/dist/components/stzh-richtext.js +6 -0
- package/dist/components/stzh-richtext2.js +65 -0
- package/dist/components/stzh-row.d.ts +11 -0
- package/dist/components/stzh-row.js +63 -0
- package/dist/components/stzh-saptcha.d.ts +11 -0
- package/dist/components/stzh-saptcha.js +132 -0
- package/dist/components/stzh-section.d.ts +11 -0
- package/dist/components/stzh-section.js +39 -0
- package/dist/components/stzh-servicecard-list.d.ts +11 -0
- package/dist/components/stzh-servicecard-list.js +99 -0
- package/dist/components/stzh-servicecard.d.ts +11 -0
- package/dist/components/stzh-servicecard.js +283 -0
- package/dist/components/stzh-skiplink.d.ts +11 -0
- package/dist/components/stzh-skiplink.js +45 -0
- package/dist/components/stzh-sortable.d.ts +11 -0
- package/dist/components/stzh-sortable.js +6 -0
- package/dist/components/stzh-sortable2.js +3401 -0
- package/dist/components/stzh-status.d.ts +11 -0
- package/dist/components/stzh-status.js +6 -0
- package/dist/components/stzh-status2.js +51 -0
- package/dist/components/stzh-table.d.ts +11 -0
- package/dist/components/stzh-table.js +164 -0
- package/dist/components/stzh-text.d.ts +11 -0
- package/dist/components/stzh-text.js +6 -0
- package/dist/components/stzh-text2.js +64 -0
- package/dist/components/stzh-toggle.d.ts +11 -0
- package/dist/components/stzh-toggle.js +175 -0
- package/dist/components/stzh-tooltip.d.ts +11 -0
- package/dist/components/stzh-tooltip.js +6 -0
- package/dist/components/stzh-tooltip2.js +353 -0
- package/dist/components/stzh-upload.d.ts +11 -0
- package/dist/components/stzh-upload.js +10818 -0
- package/dist/components/stzh-vbz-linechip.d.ts +11 -0
- package/dist/components/stzh-vbz-linechip.js +6 -0
- package/dist/components/stzh-vbz-linechip2.js +2080 -0
- package/dist/components/stzh-vbz-majorticker.d.ts +11 -0
- package/dist/components/stzh-vbz-majorticker.js +158 -0
- package/dist/components/stzh-vbz-ticker.d.ts +11 -0
- package/dist/components/stzh-vbz-ticker.js +232 -0
- package/dist/components/stzh-visuallyhidden.d.ts +11 -0
- package/dist/components/stzh-visuallyhidden.js +34 -0
- package/dist/components/stzh-vspace.d.ts +11 -0
- package/dist/components/stzh-vspace.js +64 -0
- package/dist/components/translation-utils.js +57 -0
- package/dist/components/utils.js +33 -0
- package/dist/esm/_commonjsHelpers-ba3f0406.js +21 -0
- package/dist/esm/animation-utils-27dcfc1e.js +40 -0
- package/dist/esm/app-globals-137e106c.js +52 -0
- package/dist/esm/arrow-18769ca6.js +1297 -0
- package/dist/esm/date-adapter-c0ee5963.js +88 -0
- package/dist/esm/date-utils-282e96fe.js +159 -0
- package/dist/esm/dom-104fb833.js +73 -0
- package/dist/esm/event-utils-68b64805.js +16 -0
- package/dist/esm/focus-trap.esm-074705a3.js +1278 -0
- package/dist/esm/index-0e6d34c6.js +2209 -0
- package/dist/esm/index-545902f4.js +2017 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/js.cookie-28a40640.js +144 -0
- package/dist/esm/loader.js +19 -0
- package/dist/esm/media-utils-db7c9057.js +22 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/shadow-css-4261c637.js +387 -0
- package/dist/esm/string-utils-33181845.js +15 -0
- package/dist/esm/stzh-accordion-item.entry.js +177 -0
- package/dist/esm/stzh-accordion.entry.js +70 -0
- package/dist/esm/stzh-actions.entry.js +49 -0
- package/dist/esm/stzh-appnav.entry.js +46 -0
- package/dist/esm/stzh-appointments.entry.js +267 -0
- package/dist/esm/stzh-badge_3.entry.js +161 -0
- package/dist/esm/stzh-calendar.entry.js +302 -0
- package/dist/esm/stzh-cell.entry.js +31 -0
- package/dist/esm/stzh-checkbox.entry.js +132 -0
- package/dist/esm/stzh-checkboxgroup.entry.js +164 -0
- package/dist/esm/stzh-chip-select.entry.js +62 -0
- package/dist/esm/stzh-chip.entry.js +97 -0
- package/dist/esm/stzh-components.js +105 -0
- package/dist/esm/stzh-container.entry.js +15 -0
- package/dist/esm/stzh-cspace.entry.js +18 -0
- package/dist/esm/stzh-datamessagelist-item.entry.js +99 -0
- package/dist/esm/stzh-datamessagelist.entry.js +19 -0
- package/dist/esm/stzh-datatable.entry.js +245 -0
- package/dist/esm/stzh-datepicker_4.entry.js +477 -0
- package/dist/esm/stzh-dialog.entry.js +187 -0
- package/dist/esm/stzh-dropdown.entry.js +5082 -0
- package/dist/esm/stzh-fieldset.entry.js +31 -0
- package/dist/esm/stzh-figure.entry.js +26 -0
- package/dist/esm/stzh-flyingfocus.entry.js +174 -0
- package/dist/esm/stzh-footer.entry.js +63 -0
- package/dist/esm/stzh-ghettobox_2.entry.js +145 -0
- package/dist/esm/stzh-header.entry.js +158 -0
- package/dist/esm/stzh-heading.entry.js +28 -0
- package/dist/esm/stzh-hr.entry.js +19 -0
- package/dist/esm/stzh-hspace.entry.js +37 -0
- package/dist/esm/stzh-icon-sprite.entry.js +18 -0
- package/dist/esm/stzh-input-description-fa0a4b5b.js +20 -0
- package/dist/esm/stzh-input.entry.js +188 -0
- package/dist/esm/stzh-link.entry.js +102 -0
- package/dist/esm/stzh-list-item.entry.js +24 -0
- package/dist/esm/stzh-list.entry.js +22 -0
- package/dist/esm/stzh-loader.entry.js +27 -0
- package/dist/esm/stzh-loadingbar.entry.js +29 -0
- package/dist/esm/stzh-menu_2.entry.js +92 -0
- package/dist/esm/stzh-message.entry.js +81 -0
- package/dist/esm/stzh-metanav.entry.js +33 -0
- package/dist/esm/stzh-overlay.entry.js +96 -0
- package/dist/esm/stzh-page-skiplinks.entry.js +33 -0
- package/dist/esm/stzh-pagetitle.entry.js +68 -0
- package/dist/esm/stzh-popover.entry.js +357 -0
- package/dist/esm/stzh-portal-mitwirken.entry.js +19 -0
- package/dist/esm/stzh-progressbar-item.entry.js +53 -0
- package/dist/esm/stzh-progressbar.entry.js +121 -0
- package/dist/esm/stzh-readspeaker.entry.js +54 -0
- package/dist/esm/stzh-row.entry.js +36 -0
- package/dist/esm/stzh-saptcha.entry.js +77 -0
- package/dist/esm/stzh-section.entry.js +20 -0
- package/dist/esm/stzh-servicecard-list.entry.js +52 -0
- package/dist/esm/stzh-servicecard.entry.js +208 -0
- package/dist/esm/stzh-skiplink.entry.js +23 -0
- package/dist/esm/stzh-sortable.entry.js +3378 -0
- package/dist/esm/stzh-status.entry.js +32 -0
- package/dist/esm/stzh-table.entry.js +139 -0
- package/dist/esm/stzh-toggle.entry.js +130 -0
- package/dist/esm/stzh-tooltip.entry.js +318 -0
- package/dist/esm/stzh-upload.entry.js +10746 -0
- package/dist/esm/stzh-vbz-linechip.entry.js +2054 -0
- package/dist/esm/stzh-vbz-majorticker.entry.js +103 -0
- package/dist/esm/stzh-vbz-ticker.entry.js +179 -0
- package/dist/esm/stzh-visuallyhidden.entry.js +17 -0
- package/dist/esm/stzh-vspace.entry.js +37 -0
- package/dist/esm/translation-utils-f5b09945.js +57 -0
- package/dist/esm/utils-c5d68020.js +33 -0
- package/dist/esm-es5/_commonjsHelpers-ba3f0406.js +1 -0
- package/dist/esm-es5/animation-utils-27dcfc1e.js +1 -0
- package/dist/esm-es5/app-globals-137e106c.js +1 -0
- package/dist/esm-es5/arrow-18769ca6.js +1 -0
- package/dist/esm-es5/date-adapter-c0ee5963.js +1 -0
- package/dist/esm-es5/date-utils-282e96fe.js +1 -0
- package/dist/esm-es5/dom-104fb833.js +21 -0
- package/dist/esm-es5/event-utils-68b64805.js +1 -0
- package/dist/esm-es5/focus-trap.esm-074705a3.js +9 -0
- package/dist/esm-es5/index-0e6d34c6.js +2 -0
- package/dist/esm-es5/index-545902f4.js +1 -0
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/js.cookie-28a40640.js +1 -0
- package/dist/esm-es5/loader.js +1 -0
- package/dist/esm-es5/media-utils-db7c9057.js +1 -0
- package/dist/esm-es5/shadow-css-4261c637.js +12 -0
- package/dist/esm-es5/string-utils-33181845.js +1 -0
- package/dist/esm-es5/stzh-accordion-item.entry.js +1 -0
- package/dist/esm-es5/stzh-accordion.entry.js +1 -0
- package/dist/esm-es5/stzh-actions.entry.js +1 -0
- package/dist/esm-es5/stzh-appnav.entry.js +1 -0
- package/dist/esm-es5/stzh-appointments.entry.js +1 -0
- package/dist/esm-es5/stzh-badge_3.entry.js +1 -0
- package/dist/esm-es5/stzh-calendar.entry.js +1 -0
- package/dist/esm-es5/stzh-cell.entry.js +1 -0
- package/dist/esm-es5/stzh-checkbox.entry.js +1 -0
- package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -0
- package/dist/esm-es5/stzh-chip-select.entry.js +1 -0
- package/dist/esm-es5/stzh-chip.entry.js +1 -0
- package/dist/esm-es5/stzh-components.js +1 -0
- package/dist/esm-es5/stzh-container.entry.js +1 -0
- package/dist/esm-es5/stzh-cspace.entry.js +1 -0
- package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -0
- package/dist/esm-es5/stzh-datamessagelist.entry.js +1 -0
- package/dist/esm-es5/stzh-datatable.entry.js +9 -0
- package/dist/esm-es5/stzh-datepicker_4.entry.js +1 -0
- package/dist/esm-es5/stzh-dialog.entry.js +1 -0
- package/dist/esm-es5/stzh-dropdown.entry.js +1 -0
- package/dist/esm-es5/stzh-fieldset.entry.js +1 -0
- package/dist/esm-es5/stzh-figure.entry.js +1 -0
- package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -0
- package/dist/esm-es5/stzh-footer.entry.js +1 -0
- package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -0
- package/dist/esm-es5/stzh-header.entry.js +1 -0
- package/dist/esm-es5/stzh-heading.entry.js +1 -0
- package/dist/esm-es5/stzh-hr.entry.js +1 -0
- package/dist/esm-es5/stzh-hspace.entry.js +1 -0
- package/dist/esm-es5/stzh-icon-sprite.entry.js +1 -0
- package/dist/esm-es5/stzh-input-description-fa0a4b5b.js +1 -0
- package/dist/esm-es5/stzh-input.entry.js +1 -0
- package/dist/esm-es5/stzh-link.entry.js +1 -0
- package/dist/esm-es5/stzh-list-item.entry.js +1 -0
- package/dist/esm-es5/stzh-list.entry.js +1 -0
- package/dist/esm-es5/stzh-loader.entry.js +1 -0
- package/dist/esm-es5/stzh-loadingbar.entry.js +1 -0
- package/dist/esm-es5/stzh-menu_2.entry.js +1 -0
- package/dist/esm-es5/stzh-message.entry.js +1 -0
- package/dist/esm-es5/stzh-metanav.entry.js +1 -0
- package/dist/esm-es5/stzh-overlay.entry.js +1 -0
- package/dist/esm-es5/stzh-page-skiplinks.entry.js +1 -0
- package/dist/esm-es5/stzh-pagetitle.entry.js +1 -0
- package/dist/esm-es5/stzh-popover.entry.js +1 -0
- package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -0
- package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -0
- package/dist/esm-es5/stzh-progressbar.entry.js +1 -0
- package/dist/esm-es5/stzh-readspeaker.entry.js +1 -0
- package/dist/esm-es5/stzh-row.entry.js +1 -0
- package/dist/esm-es5/stzh-saptcha.entry.js +1 -0
- package/dist/esm-es5/stzh-section.entry.js +1 -0
- package/dist/esm-es5/stzh-servicecard-list.entry.js +1 -0
- package/dist/esm-es5/stzh-servicecard.entry.js +1 -0
- package/dist/esm-es5/stzh-skiplink.entry.js +1 -0
- package/dist/esm-es5/stzh-sortable.entry.js +7 -0
- package/dist/esm-es5/stzh-status.entry.js +1 -0
- package/dist/esm-es5/stzh-table.entry.js +1 -0
- package/dist/esm-es5/stzh-toggle.entry.js +1 -0
- package/dist/esm-es5/stzh-tooltip.entry.js +1 -0
- package/dist/esm-es5/stzh-upload.entry.js +1 -0
- package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -0
- package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -0
- package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -0
- package/dist/esm-es5/stzh-visuallyhidden.entry.js +1 -0
- package/dist/esm-es5/stzh-vspace.entry.js +1 -0
- package/dist/esm-es5/translation-utils-f5b09945.js +1 -0
- package/dist/esm-es5/utils-c5d68020.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stzh-components/assets/favicons/android-chrome-192x192.png +0 -0
- package/dist/stzh-components/assets/favicons/android-chrome-384x384.png +0 -0
- package/dist/stzh-components/assets/favicons/apple-touch-icon.png +0 -0
- package/dist/stzh-components/assets/favicons/browserconfig.xml +9 -0
- package/dist/stzh-components/assets/favicons/favicon-16x16.png +0 -0
- package/dist/stzh-components/assets/favicons/favicon-32x32.png +0 -0
- package/dist/stzh-components/assets/favicons/favicon.ico +0 -0
- package/dist/stzh-components/assets/favicons/mstile-150x150.png +0 -0
- package/dist/stzh-components/assets/favicons/safari-pinned-tab.svg +1 -0
- package/dist/stzh-components/assets/favicons/site.webmanifest +19 -0
- package/dist/stzh-components/assets/fonts/HelveticaNeueLTW01_41488878.woff +0 -0
- package/dist/stzh-components/assets/fonts/HelveticaNeueLTW01_41488878.woff2 +0 -0
- package/dist/stzh-components/assets/fonts/HelveticaNeueLTW01_55Roman.woff +0 -0
- package/dist/stzh-components/assets/fonts/HelveticaNeueLTW01_55Roman.woff2 +0 -0
- package/dist/stzh-components/assets/fonts/HelveticaNeueLTW01_71488914.woff +0 -0
- package/dist/stzh-components/assets/fonts/HelveticaNeueLTW01_71488914.woff2 +0 -0
- package/dist/stzh-components/assets/fonts/HelveticaNeueLTW05_65Medium.woff +0 -0
- package/dist/stzh-components/assets/fonts/HelveticaNeueLTW05_65Medium.woff2 +0 -0
- package/dist/stzh-components/assets/fonts/HelveticaNeueLTW05_85Heavy.woff +0 -0
- package/dist/stzh-components/assets/fonts/HelveticaNeueLTW05_85Heavy.woff2 +0 -0
- package/dist/stzh-components/assets/fonts.css +39 -0
- package/dist/stzh-components/assets/i18n/de.json +154 -0
- package/dist/stzh-components/assets/i18n/en.json +154 -0
- package/dist/stzh-components/assets/icons/mono/alarm-bell.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/angle-down.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/angle-left.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/angle-right.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/angle-up.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/archive-box.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/arrow-down.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/arrow-left-circle.svg +4 -0
- package/dist/stzh-components/assets/icons/mono/arrow-left.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/arrow-right-long.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/arrow-right.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/arrow-up.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/bulleted-list.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/calendar.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/cart.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/checkmark-circle.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/checkmark.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/clock.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/close-circle.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/close.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/compass-direction.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/compass-north.svg +4 -0
- package/dist/stzh-components/assets/icons/mono/construction.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/copy.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/delete.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/download.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/drag.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/edit.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/email-check.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/expand.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/external-link.svg +4 -0
- package/dist/stzh-components/assets/icons/mono/facebook-comment.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/facebook.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/file.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/filtering.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/flag.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/focus.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/gear.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/heart.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/home.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/important-warning.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/info-help.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/instagram.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/like-hand.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/linkedin.svg +5 -0
- package/dist/stzh-components/assets/icons/mono/list-expanded.svg +4 -0
- package/dist/stzh-components/assets/icons/mono/list-shrinked.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/lock.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/mail.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/map.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/menu.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/minus.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/more-horizontal.svg +5 -0
- package/dist/stzh-components/assets/icons/mono/more-vertical.svg +5 -0
- package/dist/stzh-components/assets/icons/mono/paper-clip.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/phone.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/pin-location.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/pin.svg +11 -0
- package/dist/stzh-components/assets/icons/mono/play-1.svg +4 -0
- package/dist/stzh-components/assets/icons/mono/play-button.svg +11 -0
- package/dist/stzh-components/assets/icons/mono/play.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/plus.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/portfolio-grid.svg +11 -0
- package/dist/stzh-components/assets/icons/mono/print.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/question-help.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/read-mail.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/reload.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/reset-time.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/reset.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/resize.svg +8 -0
- package/dist/stzh-components/assets/icons/mono/rss.svg +12 -0
- package/dist/stzh-components/assets/icons/mono/search.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/services.svg +6 -0
- package/dist/stzh-components/assets/icons/mono/share.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/shrink.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/silent-mode.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/social-media.svg +23 -0
- package/dist/stzh-components/assets/icons/mono/star-filled.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/star.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/subtitle.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/team.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/text-message.svg +6 -0
- package/dist/stzh-components/assets/icons/mono/thermometer.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/transcript.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/twitter-reply.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/twitter-retweet.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/twitter.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/unlock.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/user.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/view-hidden.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/view.svg +4 -0
- package/dist/stzh-components/assets/icons/mono/volume-medium.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/warning-big.svg +4 -0
- package/dist/stzh-components/assets/icons/mono/warning.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/web-Link.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/wifi-signal.svg +3 -0
- package/dist/stzh-components/assets/icons/mono/world-globe.svg +10 -0
- package/dist/stzh-components/assets/icons/mono/xing.svg +11 -0
- package/dist/stzh-components/assets/polyfills/ie11CustomProperties.min.js +8 -0
- package/dist/stzh-components/assets/polyfills/intersection-observer.min.js +7 -0
- package/dist/stzh-components/assets/svgsprites/symbol/sprite.symbol.html +1354 -0
- package/dist/stzh-components/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -0
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Common.Settings.js +278 -0
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Core.js +544 -0
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.HL.js +1111 -0
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.PlayerAPI.js +211 -0
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Styles-Basic.css +881 -0
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Styles-Button.css +75 -0
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Styles.css +977 -0
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.js +257 -0
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.lib.Facade.adapter.jquery.js +120 -0
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.lib.RSLib.js +796 -0
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.pub.Config.js +384 -0
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.ui.js +1241 -0
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeakerClassic.css +357 -0
- package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeakerClassic.js +51 -0
- package/dist/stzh-components/assets/vendors/readspeaker/img/ReadSpeakerClassic.png +0 -0
- package/dist/stzh-components/assets/vendors/readspeaker/img/cursor-ew.png +0 -0
- package/dist/stzh-components/assets/vendors/readspeaker/img/help.png +0 -0
- package/dist/stzh-components/assets/vendors/readspeaker/img/icon_16px.gif +0 -0
- package/dist/stzh-components/assets/vendors/readspeaker/img/pin_black.png +0 -0
- package/dist/stzh-components/assets/vendors/readspeaker/img/pin_red.png +0 -0
- package/dist/stzh-components/assets/vendors/readspeaker/img/play-anim.gif +0 -0
- package/dist/stzh-components/assets/vendors/readspeaker/img/rs_button.gif +0 -0
- package/dist/stzh-components/assets/vendors/readspeaker/img/rs_button.png +0 -0
- package/dist/stzh-components/assets/vendors/readspeaker/img/rs_loader_anim.gif +0 -0
- package/dist/stzh-components/assets/vendors/readspeaker/img/timeline-anim.gif +0 -0
- package/dist/stzh-components/assets/vendors/readspeaker/mods/enlargeHL/ReadSpeaker.enlargeHL.css +1 -0
- package/dist/stzh-components/assets/vendors/readspeaker/mods/enlargeHL/ReadSpeaker.enlargeHL.js +24 -0
- package/dist/stzh-components/assets/vendors/readspeaker/mods/enlargeHL/img/rs_icon_64x64.png +0 -0
- package/dist/stzh-components/index.esm.js +0 -0
- package/dist/stzh-components/p-0338cec3.system.entry.js +1 -0
- package/dist/stzh-components/p-03b16275.entry.js +1 -0
- package/dist/stzh-components/p-0433fff9.system.entry.js +1 -0
- package/dist/stzh-components/p-0837657c.entry.js +1 -0
- package/dist/stzh-components/p-08cc711a.system.entry.js +1 -0
- package/dist/stzh-components/p-0a71fbac.entry.js +1 -0
- package/dist/stzh-components/p-0ae3e066.system.entry.js +1 -0
- package/dist/stzh-components/p-0c2b5907.js +1 -0
- package/dist/stzh-components/p-0e9e4c68.entry.js +1 -0
- package/dist/stzh-components/p-0ec28130.system.entry.js +1 -0
- package/dist/stzh-components/p-148de4e6.entry.js +1 -0
- package/dist/stzh-components/p-160c6e5f.system.entry.js +1 -0
- package/dist/stzh-components/p-17258518.entry.js +1 -0
- package/dist/stzh-components/p-1a40a6e4.js +1 -0
- package/dist/stzh-components/p-1aaa5112.system.entry.js +1 -0
- package/dist/stzh-components/p-1ace5d80.entry.js +1 -0
- package/dist/stzh-components/p-1cde29ea.entry.js +1 -0
- package/dist/stzh-components/p-1cebd703.entry.js +1 -0
- package/dist/stzh-components/p-1e2ee622.system.entry.js +1 -0
- package/dist/stzh-components/p-1f3e6fad.system.entry.js +1 -0
- package/dist/stzh-components/p-22f948e2.entry.js +1 -0
- package/dist/stzh-components/p-22fba26d.entry.js +1 -0
- package/dist/stzh-components/p-25afa99e.entry.js +1 -0
- package/dist/stzh-components/p-301841e3.entry.js +1 -0
- package/dist/stzh-components/p-30b347ee.system.js +2 -0
- package/dist/stzh-components/p-320aedf7.js +1 -0
- package/dist/stzh-components/p-323fdc2f.entry.js +1 -0
- package/dist/stzh-components/p-33d033a3.system.entry.js +1 -0
- package/dist/stzh-components/p-3410ef5a.system.entry.js +1 -0
- package/dist/stzh-components/p-378be0be.system.entry.js +1 -0
- package/dist/stzh-components/p-3a73b8b5.system.js +1 -0
- package/dist/stzh-components/p-3afe13ac.system.entry.js +1 -0
- package/dist/stzh-components/p-3ca5c2e6.system.entry.js +1 -0
- package/dist/stzh-components/p-3da37219.entry.js +8 -0
- package/dist/stzh-components/p-3e3e4bfd.system.js +1 -0
- package/dist/stzh-components/p-3e8ff66b.js +1 -0
- package/dist/stzh-components/p-3eb7b6b4.entry.js +1 -0
- package/dist/stzh-components/p-3f03fd94.system.entry.js +1 -0
- package/dist/stzh-components/p-40a19ce6.js +10 -0
- package/dist/stzh-components/p-42430cdf.js +1 -0
- package/dist/stzh-components/p-4476344d.js +1 -0
- package/dist/stzh-components/p-45d4e9b4.system.entry.js +1 -0
- package/dist/stzh-components/p-46f301c0.entry.js +1 -0
- package/dist/stzh-components/p-49968bbf.entry.js +1 -0
- package/dist/stzh-components/p-4b69a3e8.system.entry.js +1 -0
- package/dist/stzh-components/p-4b8893d1.entry.js +1 -0
- package/dist/stzh-components/p-4c61dcad.js +19 -0
- package/dist/stzh-components/p-4c68fa45.system.js +1 -0
- package/dist/stzh-components/p-4e9e606f.entry.js +1 -0
- package/dist/stzh-components/p-50ea2036.system.js +1 -0
- package/dist/stzh-components/p-53934cfd.js +1 -0
- package/dist/stzh-components/p-562394a9.system.entry.js +1 -0
- package/dist/stzh-components/p-56fccfa3.system.entry.js +1 -0
- package/dist/stzh-components/p-582cf0f1.system.js +1 -0
- package/dist/stzh-components/p-58917ce2.entry.js +1 -0
- package/dist/stzh-components/p-58b8d309.system.entry.js +1 -0
- package/dist/stzh-components/p-5977373f.system.js +1 -0
- package/dist/stzh-components/p-59bdb14a.system.entry.js +1 -0
- package/dist/stzh-components/p-5db542ae.system.js +1 -0
- package/dist/stzh-components/p-5f20178b.system.js +1 -0
- package/dist/stzh-components/p-6113bb25.entry.js +1 -0
- package/dist/stzh-components/p-632d9076.system.entry.js +1 -0
- package/dist/stzh-components/p-63b5068a.system.entry.js +1 -0
- package/dist/stzh-components/p-63bf05f1.system.entry.js +1 -0
- package/dist/stzh-components/p-648695c2.js +1 -0
- package/dist/stzh-components/p-649164c7.entry.js +9 -0
- package/dist/stzh-components/p-649621fc.js +1 -0
- package/dist/stzh-components/p-6523a23b.system.js +21 -0
- package/dist/stzh-components/p-65282c9d.js +2 -0
- package/dist/stzh-components/p-65444117.system.entry.js +1 -0
- package/dist/stzh-components/p-66556f67.entry.js +1 -0
- package/dist/stzh-components/p-670d4834.entry.js +1 -0
- package/dist/stzh-components/p-67eac0a0.entry.js +1 -0
- package/dist/stzh-components/p-690d14cd.entry.js +1 -0
- package/dist/stzh-components/p-6d23fb4d.system.entry.js +1 -0
- package/dist/stzh-components/p-73d51acc.system.entry.js +1 -0
- package/dist/stzh-components/p-740dd50f.entry.js +1 -0
- package/dist/stzh-components/p-75f1b800.entry.js +1 -0
- package/dist/stzh-components/p-79770abe.system.entry.js +9 -0
- package/dist/stzh-components/p-7c6f9cb3.entry.js +1 -0
- package/dist/stzh-components/p-7e3924a0.system.entry.js +1 -0
- package/dist/stzh-components/p-80db7aa6.system.entry.js +1 -0
- package/dist/stzh-components/p-818634d2.entry.js +1 -0
- package/dist/stzh-components/p-81d9f3e0.js +1 -0
- package/dist/stzh-components/p-82e6148a.system.entry.js +1 -0
- package/dist/stzh-components/p-85d78e08.entry.js +1 -0
- package/dist/stzh-components/p-87140179.system.entry.js +1 -0
- package/dist/stzh-components/p-8ba6ca80.js +1 -0
- package/dist/stzh-components/p-8cf287d8.system.entry.js +1 -0
- package/dist/stzh-components/p-915e8ad6.entry.js +1 -0
- package/dist/stzh-components/p-91e9ccfa.entry.js +1 -0
- package/dist/stzh-components/p-927901f5.system.entry.js +1 -0
- package/dist/stzh-components/p-936cc626.system.entry.js +1 -0
- package/dist/stzh-components/p-95a3c962.system.entry.js +1 -0
- package/dist/stzh-components/p-96fd158c.entry.js +1 -0
- package/dist/stzh-components/p-98afd4b0.system.entry.js +1 -0
- package/dist/stzh-components/p-99195f5a.system.js +1 -0
- package/dist/stzh-components/p-99533090.system.entry.js +1 -0
- package/dist/stzh-components/p-9be4e960.entry.js +1 -0
- package/dist/stzh-components/p-9fe34fe8.system.js +1 -0
- package/dist/stzh-components/p-a42a7524.entry.js +1 -0
- package/dist/stzh-components/p-a499fa98.system.entry.js +1 -0
- package/dist/stzh-components/p-a5b616bb.system.entry.js +1 -0
- package/dist/stzh-components/p-a7454367.js +1 -0
- package/dist/stzh-components/p-a7785d9b.system.js +1 -0
- package/dist/stzh-components/p-a8c3af68.system.entry.js +1 -0
- package/dist/stzh-components/p-a8de6293.system.js +13 -0
- package/dist/stzh-components/p-ab2727e6.entry.js +1 -0
- package/dist/stzh-components/p-ab864a8a.system.entry.js +1 -0
- package/dist/stzh-components/p-ac9e6d17.system.entry.js +1 -0
- package/dist/stzh-components/p-adaf8b15.entry.js +1 -0
- package/dist/stzh-components/p-ade1ebcf.system.entry.js +1 -0
- package/dist/stzh-components/p-aec2d2d1.system.entry.js +1 -0
- package/dist/stzh-components/p-af47430b.system.entry.js +1 -0
- package/dist/stzh-components/p-af819e4e.system.js +1 -0
- package/dist/stzh-components/p-afa7061e.entry.js +1 -0
- package/dist/stzh-components/p-b06cc533.entry.js +1 -0
- package/dist/stzh-components/p-b10682ee.js +1 -0
- package/dist/stzh-components/p-b1976630.entry.js +1 -0
- package/dist/stzh-components/p-b24040ff.system.entry.js +1 -0
- package/dist/stzh-components/p-b2c8c31e.system.entry.js +1 -0
- package/dist/stzh-components/p-b34774e7.entry.js +1 -0
- package/dist/stzh-components/p-b3b05b6c.entry.js +1 -0
- package/dist/stzh-components/p-b56c83a4.entry.js +1 -0
- package/dist/stzh-components/p-b651f251.entry.js +1 -0
- package/dist/stzh-components/p-b9e4095d.entry.js +1 -0
- package/dist/stzh-components/p-bb900d9f.entry.js +1 -0
- package/dist/stzh-components/p-bb91feeb.entry.js +1 -0
- package/dist/stzh-components/p-bf5b6523.entry.js +1 -0
- package/dist/stzh-components/p-c2218965.system.entry.js +1 -0
- package/dist/stzh-components/p-c3ac1bdc.system.entry.js +1 -0
- package/dist/stzh-components/p-c51a61cb.system.entry.js +1 -0
- package/dist/stzh-components/p-c6cad5ed.system.entry.js +1 -0
- package/dist/stzh-components/p-c8bc2812.entry.js +1 -0
- package/dist/stzh-components/p-cd29b7ca.entry.js +1 -0
- package/dist/stzh-components/p-d1821750.system.entry.js +1 -0
- package/dist/stzh-components/p-d2f660e1.system.js +1 -0
- package/dist/stzh-components/p-d790a367.entry.js +1 -0
- package/dist/stzh-components/p-d7b5770c.entry.js +1 -0
- package/dist/stzh-components/p-d8819b74.system.entry.js +1 -0
- package/dist/stzh-components/p-da8218fa.system.entry.js +1 -0
- package/dist/stzh-components/p-ded16c0e.system.js +1 -0
- package/dist/stzh-components/p-df422d36.entry.js +1 -0
- package/dist/stzh-components/p-e00139a1.entry.js +1 -0
- package/dist/stzh-components/p-e029f6c5.system.entry.js +1 -0
- package/dist/stzh-components/p-e1b64b8a.system.entry.js +1 -0
- package/dist/stzh-components/p-e20369c8.system.js +10 -0
- package/dist/stzh-components/p-e3769e97.system.js +1 -0
- package/dist/stzh-components/p-e4347cfe.entry.js +1 -0
- package/dist/stzh-components/p-e69a66bb.js +1 -0
- package/dist/stzh-components/p-e9bc3a43.entry.js +1 -0
- package/dist/stzh-components/p-e9ca8ddc.entry.js +1 -0
- package/dist/stzh-components/p-ebf73698.entry.js +1 -0
- package/dist/stzh-components/p-ece7ad4d.system.entry.js +1 -0
- package/dist/stzh-components/p-ef5d4167.js +12 -0
- package/dist/stzh-components/p-efb9fa47.system.entry.js +1 -0
- package/dist/stzh-components/p-efd78d08.system.entry.js +1 -0
- package/dist/stzh-components/p-f0422b6c.entry.js +1 -0
- package/dist/stzh-components/p-f21440b3.entry.js +1 -0
- package/dist/stzh-components/p-f44f4d26.system.entry.js +1 -0
- package/dist/stzh-components/p-f481f21d.system.js +1 -0
- package/dist/stzh-components/p-f48a2b00.system.entry.js +1 -0
- package/dist/stzh-components/p-f8bb1bed.system.entry.js +7 -0
- package/dist/stzh-components/p-fa8651dd.entry.js +1 -0
- package/dist/stzh-components/p-fe9f8a09.system.entry.js +1 -0
- package/dist/stzh-components/p-ffa293cf.entry.js +1 -0
- package/dist/stzh-components/stzh-components.css +1 -0
- package/dist/stzh-components/stzh-components.esm.js +1 -0
- package/dist/stzh-components/stzh-components.js +131 -0
- package/dist/types/components/stzh-accordion/stzh-accordion.d.ts +15 -0
- package/dist/types/components/stzh-accordion-item/stzh-accordion-item.d.ts +44 -0
- package/dist/types/components/stzh-actions/stzh-actions.d.ts +16 -0
- package/dist/types/components/stzh-appnav/stzh-appnav.d.ts +17 -0
- package/dist/types/components/stzh-appointments/stzh-appointments.d.ts +73 -0
- package/dist/types/components/stzh-appointments/stzh-appointments.localization.d.ts +11 -0
- package/dist/types/components/stzh-badge/stzh-badge.d.ts +8 -0
- package/dist/types/components/stzh-button/stzh-button.d.ts +59 -0
- package/dist/types/components/stzh-calendar/stzh-calendar-day.d.ts +14 -0
- package/dist/types/components/stzh-calendar/stzh-calendar-month.d.ts +21 -0
- package/dist/types/components/stzh-calendar/stzh-calendar.d.ts +76 -0
- package/dist/types/components/stzh-calendar/stzh-calendar.localization.d.ts +7 -0
- package/dist/types/components/stzh-cell/stzh-cell.d.ts +21 -0
- package/dist/types/components/stzh-checkbox/stzh-checkbox.d.ts +55 -0
- package/dist/types/components/stzh-checkboxgroup/stzh-checkboxgroup.d.ts +62 -0
- package/dist/types/components/stzh-chip/stzh-chip.d.ts +47 -0
- package/dist/types/components/stzh-chip-select/stzh-chip-select.d.ts +23 -0
- package/dist/types/components/stzh-container/stzh-container.d.ts +6 -0
- package/dist/types/components/stzh-cspace/stzh-cspace.d.ts +6 -0
- package/dist/types/components/stzh-datamessagelist/stzh-datamessagelist.d.ts +6 -0
- package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.d.ts +44 -0
- package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.localization.d.ts +4 -0
- package/dist/types/components/stzh-datatable/stzh-datatable.d.ts +49 -0
- package/dist/types/components/stzh-datatable/stzh-datatable.localization.d.ts +4 -0
- package/dist/types/components/stzh-datepicker/stzh-datepicker.d.ts +93 -0
- package/dist/types/components/stzh-datepicker/stzh-datepicker.localization.d.ts +5 -0
- package/dist/types/components/stzh-dialog/stzh-dialog.d.ts +59 -0
- package/dist/types/components/stzh-dialog/stzh-dialog.localization.d.ts +4 -0
- package/dist/types/components/stzh-dropdown/stzh-dropdown.d.ts +150 -0
- package/dist/types/components/stzh-dropdown/stzh-dropdown.localization.d.ts +7 -0
- package/dist/types/components/stzh-fieldset/stzh-fieldset.d.ts +15 -0
- package/dist/types/components/stzh-figure/stzh-figure.d.ts +13 -0
- package/dist/types/components/stzh-flyingfocus/stzh-flyingfocus.d.ts +39 -0
- package/dist/types/components/stzh-footer/stzh-footer.d.ts +21 -0
- package/dist/types/components/stzh-footer/stzh-footer.localization.d.ts +9 -0
- package/dist/types/components/stzh-ghettobox/stzh-ghettobox.d.ts +49 -0
- package/dist/types/components/stzh-ghettobox/stzh-ghettobox.localization.d.ts +5 -0
- package/dist/types/components/stzh-header/stzh-header.d.ts +57 -0
- package/dist/types/components/stzh-heading/stzh-heading.d.ts +13 -0
- package/dist/types/components/stzh-hr/stzh-hr.d.ts +7 -0
- package/dist/types/components/stzh-hspace/stzh-hspace.d.ts +25 -0
- package/dist/types/components/stzh-icon/stzh-icon.d.ts +15 -0
- package/dist/types/components/stzh-icon-sprite/stzh-icon-sprite.d.ts +3 -0
- package/dist/types/components/stzh-input/stzh-input-description.d.ts +11 -0
- package/dist/types/components/stzh-input/stzh-input.d.ts +95 -0
- package/dist/types/components/stzh-link/stzh-link.d.ts +50 -0
- package/dist/types/components/stzh-list/stzh-list.d.ts +9 -0
- package/dist/types/components/stzh-list-item/stzh-list-item.d.ts +7 -0
- package/dist/types/components/stzh-loader/stzh-loader.d.ts +13 -0
- package/dist/types/components/stzh-loadingbar/stzh-loadingbar.d.ts +12 -0
- package/dist/types/components/stzh-menu/stzh-menu.d.ts +6 -0
- package/dist/types/components/stzh-menu-item/stzh-menu-item.d.ts +35 -0
- package/dist/types/components/stzh-message/stzh-message.d.ts +36 -0
- package/dist/types/components/stzh-message/stzh-message.localization.d.ts +4 -0
- package/dist/types/components/stzh-metanav/stzh-metanav.d.ts +11 -0
- package/dist/types/components/stzh-overlay/stzh-overlay.d.ts +34 -0
- package/dist/types/components/stzh-page-skiplinks/stzh-page-skiplinks.d.ts +11 -0
- package/dist/types/components/stzh-pagetitle/stzh-pagetitle.d.ts +11 -0
- package/dist/types/components/stzh-popover/stzh-popover.d.ts +73 -0
- package/dist/types/components/stzh-popover/stzh-popover.localization.d.ts +4 -0
- package/dist/types/components/stzh-portal-mitwirken/stzh-portal-mitwirken.d.ts +8 -0
- package/dist/types/components/stzh-progressbar/stzh-progressbar.d.ts +42 -0
- package/dist/types/components/stzh-progressbar-item/stzh-progressbar-item.d.ts +22 -0
- package/dist/types/components/stzh-radio/stzh-radio.d.ts +55 -0
- package/dist/types/components/stzh-radiogroup/stzh-radiogroup.d.ts +64 -0
- package/dist/types/components/stzh-readspeaker/stzh-readspeaker.d.ts +18 -0
- package/dist/types/components/stzh-richtext/stzh-richtext.d.ts +14 -0
- package/dist/types/components/stzh-row/stzh-row.d.ts +23 -0
- package/dist/types/components/stzh-saptcha/stzh-saptcha.d.ts +28 -0
- package/dist/types/components/stzh-saptcha/stzh-saptcha.localization.d.ts +7 -0
- package/dist/types/components/stzh-section/stzh-section.d.ts +8 -0
- package/dist/types/components/stzh-servicecard/stzh-servicecard.d.ts +72 -0
- package/dist/types/components/stzh-servicecard/stzh-servicecard.localization.d.ts +8 -0
- package/dist/types/components/stzh-servicecard-list/stzh-servicecard-list.d.ts +23 -0
- package/dist/types/components/stzh-servicecard-list/stzh-servicecard-list.localization.d.ts +5 -0
- package/dist/types/components/stzh-skiplink/stzh-skiplink.d.ts +16 -0
- package/dist/types/components/stzh-sortable/stzh-sortable.d.ts +52 -0
- package/dist/types/components/stzh-sortable/stzh-sortable.localization.d.ts +8 -0
- package/dist/types/components/stzh-status/stzh-status.d.ts +14 -0
- package/dist/types/components/stzh-table/stzh-table.d.ts +33 -0
- package/dist/types/components/stzh-text/stzh-text.d.ts +23 -0
- package/dist/types/components/stzh-toggle/stzh-toggle.d.ts +57 -0
- package/dist/types/components/stzh-tooltip/stzh-tooltip.d.ts +78 -0
- package/dist/types/components/stzh-tooltip/stzh-tooltip.localization.d.ts +4 -0
- package/dist/types/components/stzh-upload/stzh-upload.d.ts +207 -0
- package/dist/types/components/stzh-upload/stzh-upload.localization.d.ts +16 -0
- package/dist/types/components/stzh-vbz-linechip/stzh-vbz-linechip.d.ts +27 -0
- package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.d.ts +34 -0
- package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.localization.d.ts +4 -0
- package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.d.ts +54 -0
- package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.d.ts +15 -0
- package/dist/types/components/stzh-visuallyhidden/stzh-visuallyhidden.d.ts +6 -0
- package/dist/types/components/stzh-vspace/stzh-vspace.d.ts +25 -0
- package/dist/types/components.d.ts +5192 -0
- package/dist/types/index.d.ts +427 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/types/svg.d.ts +4 -0
- package/dist/types/utils/animation-utils.d.ts +10 -0
- package/dist/types/utils/date-adapter.d.ts +8 -0
- package/dist/types/utils/date-utils.d.ts +61 -0
- package/dist/types/utils/event-utils.d.ts +1 -0
- package/dist/types/utils/h.d.ts +18 -0
- package/dist/types/utils/media-utils.d.ts +3 -0
- package/dist/types/utils/string-utils.d.ts +2 -0
- package/dist/types/utils/test-utils.d.ts +9 -0
- package/dist/types/utils/translation-utils.d.ts +40 -0
- package/dist/types/utils/utils.d.ts +3 -0
- package/dist/vscode-data.json +4453 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +94 -0
|
@@ -0,0 +1,3401 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { f as fetchTranslations } from './translation-utils.js';
|
|
3
|
+
|
|
4
|
+
function t(t){return "object"==typeof t&&null!=t&&1===t.nodeType}function e(t,e){return (!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function n(t,n){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return e(r.overflowY,n)||e(r.overflowX,n)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return !!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return !1}function r(t,e,n,r,i,o,l,d){return o<t&&l>e||o>t&&l<e?0:o<=t&&d<=n||l>=e&&d>=n?o-t-r:l>e&&d<n||o<t&&d>n?l-e+i:0}function compute(e,i){var o=window,l=i.scrollMode,d=i.block,u=i.inline,h=i.boundary,a=i.skipOverflowHiddenElements,c="function"==typeof h?h:function(t){return t!==h};if(!t(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,s=[],p=e;t(p)&&c(p);){if((p=p.parentElement)===f){s.push(p);break}null!=p&&p===document.body&&n(p)&&!n(document.documentElement)||null!=p&&n(p,a)&&s.push(p);}for(var m=o.visualViewport?o.visualViewport.width:innerWidth,g=o.visualViewport?o.visualViewport.height:innerHeight,w=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,W=e.getBoundingClientRect(),b=W.height,H=W.width,y=W.top,E=W.right,M=W.bottom,V=W.left,x="start"===d||"nearest"===d?y:"end"===d?M:y+b/2,I="center"===u?V+H/2:"end"===u?E:V,C=[],T=0;T<s.length;T++){var k=s[T],B=k.getBoundingClientRect(),D=B.height,O=B.width,R=B.top,X=B.right,Y=B.bottom,L=B.left;if("if-needed"===l&&y>=0&&V>=0&&M<=g&&E<=m&&y>=R&&M<=Y&&V>=L&&E<=X)return C;var S=getComputedStyle(k),j=parseInt(S.borderLeftWidth,10),q=parseInt(S.borderTopWidth,10),z=parseInt(S.borderRightWidth,10),A=parseInt(S.borderBottomWidth,10),F=0,G=0,J="offsetWidth"in k?k.offsetWidth-k.clientWidth-j-z:0,K="offsetHeight"in k?k.offsetHeight-k.clientHeight-q-A:0;if(f===k)F="start"===d?x:"end"===d?x-g:"nearest"===d?r(v,v+g,g,q,A,v+x,v+x+b,b):x-g/2,G="start"===u?I:"center"===u?I-m/2:"end"===u?I-m:r(w,w+m,m,j,z,w+I,w+I+H,H),F=Math.max(0,F+v),G=Math.max(0,G+w);else {F="start"===d?x-R-q:"end"===d?x-Y+A+K:"nearest"===d?r(R,Y,D,q,A+K,x,x+b,b):x-(R+D/2)+K/2,G="start"===u?I-L-j:"center"===u?I-(L+O/2)+J/2:"end"===u?I-X+z+J:r(L,X,O,j,z+J,I,I+H,H);var N=k.scrollLeft,P=k.scrollTop;x+=P-(F=Math.max(0,Math.min(P+F,k.scrollHeight-D+K))),I+=N-(G=Math.max(0,Math.min(N+G,k.scrollWidth-O+J)));}C.push({el:k,top:F,left:G});}return C}
|
|
5
|
+
|
|
6
|
+
function isOptionsObject(options) {
|
|
7
|
+
return options === Object(options) && Object.keys(options).length !== 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function defaultBehavior(actions, behavior) {
|
|
11
|
+
if (behavior === void 0) {
|
|
12
|
+
behavior = 'auto';
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
var canSmoothScroll = ('scrollBehavior' in document.body.style);
|
|
16
|
+
actions.forEach(function (_ref) {
|
|
17
|
+
var el = _ref.el,
|
|
18
|
+
top = _ref.top,
|
|
19
|
+
left = _ref.left;
|
|
20
|
+
|
|
21
|
+
if (el.scroll && canSmoothScroll) {
|
|
22
|
+
el.scroll({
|
|
23
|
+
top: top,
|
|
24
|
+
left: left,
|
|
25
|
+
behavior: behavior
|
|
26
|
+
});
|
|
27
|
+
} else {
|
|
28
|
+
el.scrollTop = top;
|
|
29
|
+
el.scrollLeft = left;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function getOptions(options) {
|
|
35
|
+
if (options === false) {
|
|
36
|
+
return {
|
|
37
|
+
block: 'end',
|
|
38
|
+
inline: 'nearest'
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (isOptionsObject(options)) {
|
|
43
|
+
return options;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return {
|
|
47
|
+
block: 'start',
|
|
48
|
+
inline: 'nearest'
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function scrollIntoView(target, options) {
|
|
53
|
+
var isTargetAttached = target.isConnected || target.ownerDocument.documentElement.contains(target);
|
|
54
|
+
|
|
55
|
+
if (isOptionsObject(options) && typeof options.behavior === 'function') {
|
|
56
|
+
return options.behavior(isTargetAttached ? compute(target, options) : []);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (!isTargetAttached) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
var computeOptions = getOptions(options);
|
|
64
|
+
return defaultBehavior(compute(target, computeOptions), computeOptions.behavior);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**!
|
|
68
|
+
* Sortable 1.15.0
|
|
69
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
70
|
+
* @author owenm <owen23355@gmail.com>
|
|
71
|
+
* @license MIT
|
|
72
|
+
*/
|
|
73
|
+
function ownKeys(object, enumerableOnly) {
|
|
74
|
+
var keys = Object.keys(object);
|
|
75
|
+
|
|
76
|
+
if (Object.getOwnPropertySymbols) {
|
|
77
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
78
|
+
|
|
79
|
+
if (enumerableOnly) {
|
|
80
|
+
symbols = symbols.filter(function (sym) {
|
|
81
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
keys.push.apply(keys, symbols);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return keys;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function _objectSpread2(target) {
|
|
92
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
93
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
94
|
+
|
|
95
|
+
if (i % 2) {
|
|
96
|
+
ownKeys(Object(source), true).forEach(function (key) {
|
|
97
|
+
_defineProperty(target, key, source[key]);
|
|
98
|
+
});
|
|
99
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
100
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
101
|
+
} else {
|
|
102
|
+
ownKeys(Object(source)).forEach(function (key) {
|
|
103
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return target;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function _typeof(obj) {
|
|
112
|
+
"@babel/helpers - typeof";
|
|
113
|
+
|
|
114
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
115
|
+
_typeof = function (obj) {
|
|
116
|
+
return typeof obj;
|
|
117
|
+
};
|
|
118
|
+
} else {
|
|
119
|
+
_typeof = function (obj) {
|
|
120
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return _typeof(obj);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function _defineProperty(obj, key, value) {
|
|
128
|
+
if (key in obj) {
|
|
129
|
+
Object.defineProperty(obj, key, {
|
|
130
|
+
value: value,
|
|
131
|
+
enumerable: true,
|
|
132
|
+
configurable: true,
|
|
133
|
+
writable: true
|
|
134
|
+
});
|
|
135
|
+
} else {
|
|
136
|
+
obj[key] = value;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return obj;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function _extends() {
|
|
143
|
+
_extends = Object.assign || function (target) {
|
|
144
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
145
|
+
var source = arguments[i];
|
|
146
|
+
|
|
147
|
+
for (var key in source) {
|
|
148
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
149
|
+
target[key] = source[key];
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return target;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
return _extends.apply(this, arguments);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
161
|
+
if (source == null) return {};
|
|
162
|
+
var target = {};
|
|
163
|
+
var sourceKeys = Object.keys(source);
|
|
164
|
+
var key, i;
|
|
165
|
+
|
|
166
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
167
|
+
key = sourceKeys[i];
|
|
168
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
169
|
+
target[key] = source[key];
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
return target;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function _objectWithoutProperties(source, excluded) {
|
|
176
|
+
if (source == null) return {};
|
|
177
|
+
|
|
178
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
179
|
+
|
|
180
|
+
var key, i;
|
|
181
|
+
|
|
182
|
+
if (Object.getOwnPropertySymbols) {
|
|
183
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
184
|
+
|
|
185
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
186
|
+
key = sourceSymbolKeys[i];
|
|
187
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
188
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
189
|
+
target[key] = source[key];
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
return target;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
var version = "1.15.0";
|
|
197
|
+
|
|
198
|
+
function userAgent(pattern) {
|
|
199
|
+
if (typeof window !== 'undefined' && window.navigator) {
|
|
200
|
+
return !! /*@__PURE__*/navigator.userAgent.match(pattern);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
var IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
|
|
205
|
+
var Edge = userAgent(/Edge/i);
|
|
206
|
+
var FireFox = userAgent(/firefox/i);
|
|
207
|
+
var Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);
|
|
208
|
+
var IOS = userAgent(/iP(ad|od|hone)/i);
|
|
209
|
+
var ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);
|
|
210
|
+
|
|
211
|
+
var captureMode = {
|
|
212
|
+
capture: false,
|
|
213
|
+
passive: false
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
function on(el, event, fn) {
|
|
217
|
+
el.addEventListener(event, fn, !IE11OrLess && captureMode);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
function off(el, event, fn) {
|
|
221
|
+
el.removeEventListener(event, fn, !IE11OrLess && captureMode);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
function matches(
|
|
225
|
+
/**HTMLElement*/
|
|
226
|
+
el,
|
|
227
|
+
/**String*/
|
|
228
|
+
selector) {
|
|
229
|
+
if (!selector) return;
|
|
230
|
+
selector[0] === '>' && (selector = selector.substring(1));
|
|
231
|
+
|
|
232
|
+
if (el) {
|
|
233
|
+
try {
|
|
234
|
+
if (el.matches) {
|
|
235
|
+
return el.matches(selector);
|
|
236
|
+
} else if (el.msMatchesSelector) {
|
|
237
|
+
return el.msMatchesSelector(selector);
|
|
238
|
+
} else if (el.webkitMatchesSelector) {
|
|
239
|
+
return el.webkitMatchesSelector(selector);
|
|
240
|
+
}
|
|
241
|
+
} catch (_) {
|
|
242
|
+
return false;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
return false;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
function getParentOrHost(el) {
|
|
250
|
+
return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
function closest(
|
|
254
|
+
/**HTMLElement*/
|
|
255
|
+
el,
|
|
256
|
+
/**String*/
|
|
257
|
+
selector,
|
|
258
|
+
/**HTMLElement*/
|
|
259
|
+
ctx, includeCTX) {
|
|
260
|
+
if (el) {
|
|
261
|
+
ctx = ctx || document;
|
|
262
|
+
|
|
263
|
+
do {
|
|
264
|
+
if (selector != null && (selector[0] === '>' ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {
|
|
265
|
+
return el;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
if (el === ctx) break;
|
|
269
|
+
/* jshint boss:true */
|
|
270
|
+
} while (el = getParentOrHost(el));
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
return null;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
var R_SPACE = /\s+/g;
|
|
277
|
+
|
|
278
|
+
function toggleClass(el, name, state) {
|
|
279
|
+
if (el && name) {
|
|
280
|
+
if (el.classList) {
|
|
281
|
+
el.classList[state ? 'add' : 'remove'](name);
|
|
282
|
+
} else {
|
|
283
|
+
var className = (' ' + el.className + ' ').replace(R_SPACE, ' ').replace(' ' + name + ' ', ' ');
|
|
284
|
+
el.className = (className + (state ? ' ' + name : '')).replace(R_SPACE, ' ');
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
function css(el, prop, val) {
|
|
290
|
+
var style = el && el.style;
|
|
291
|
+
|
|
292
|
+
if (style) {
|
|
293
|
+
if (val === void 0) {
|
|
294
|
+
if (document.defaultView && document.defaultView.getComputedStyle) {
|
|
295
|
+
val = document.defaultView.getComputedStyle(el, '');
|
|
296
|
+
} else if (el.currentStyle) {
|
|
297
|
+
val = el.currentStyle;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
return prop === void 0 ? val : val[prop];
|
|
301
|
+
} else {
|
|
302
|
+
if (!(prop in style) && prop.indexOf('webkit') === -1) {
|
|
303
|
+
prop = '-webkit-' + prop;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
style[prop] = val + (typeof val === 'string' ? '' : 'px');
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
function matrix(el, selfOnly) {
|
|
312
|
+
var appliedTransforms = '';
|
|
313
|
+
|
|
314
|
+
if (typeof el === 'string') {
|
|
315
|
+
appliedTransforms = el;
|
|
316
|
+
} else {
|
|
317
|
+
do {
|
|
318
|
+
var transform = css(el, 'transform');
|
|
319
|
+
|
|
320
|
+
if (transform && transform !== 'none') {
|
|
321
|
+
appliedTransforms = transform + ' ' + appliedTransforms;
|
|
322
|
+
}
|
|
323
|
+
/* jshint boss:true */
|
|
324
|
+
|
|
325
|
+
} while (!selfOnly && (el = el.parentNode));
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
329
|
+
/*jshint -W056 */
|
|
330
|
+
|
|
331
|
+
return matrixFn && new matrixFn(appliedTransforms);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
function find(ctx, tagName, iterator) {
|
|
335
|
+
if (ctx) {
|
|
336
|
+
var list = ctx.getElementsByTagName(tagName),
|
|
337
|
+
i = 0,
|
|
338
|
+
n = list.length;
|
|
339
|
+
|
|
340
|
+
if (iterator) {
|
|
341
|
+
for (; i < n; i++) {
|
|
342
|
+
iterator(list[i], i);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
return list;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
return [];
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
function getWindowScrollingElement() {
|
|
353
|
+
var scrollingElement = document.scrollingElement;
|
|
354
|
+
|
|
355
|
+
if (scrollingElement) {
|
|
356
|
+
return scrollingElement;
|
|
357
|
+
} else {
|
|
358
|
+
return document.documentElement;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Returns the "bounding client rect" of given element
|
|
363
|
+
* @param {HTMLElement} el The element whose boundingClientRect is wanted
|
|
364
|
+
* @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container
|
|
365
|
+
* @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr
|
|
366
|
+
* @param {[Boolean]} undoScale Whether the container's scale() should be undone
|
|
367
|
+
* @param {[HTMLElement]} container The parent the element will be placed in
|
|
368
|
+
* @return {Object} The boundingClientRect of el, with specified adjustments
|
|
369
|
+
*/
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {
|
|
373
|
+
if (!el.getBoundingClientRect && el !== window) return;
|
|
374
|
+
var elRect, top, left, bottom, right, height, width;
|
|
375
|
+
|
|
376
|
+
if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {
|
|
377
|
+
elRect = el.getBoundingClientRect();
|
|
378
|
+
top = elRect.top;
|
|
379
|
+
left = elRect.left;
|
|
380
|
+
bottom = elRect.bottom;
|
|
381
|
+
right = elRect.right;
|
|
382
|
+
height = elRect.height;
|
|
383
|
+
width = elRect.width;
|
|
384
|
+
} else {
|
|
385
|
+
top = 0;
|
|
386
|
+
left = 0;
|
|
387
|
+
bottom = window.innerHeight;
|
|
388
|
+
right = window.innerWidth;
|
|
389
|
+
height = window.innerHeight;
|
|
390
|
+
width = window.innerWidth;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {
|
|
394
|
+
// Adjust for translate()
|
|
395
|
+
container = container || el.parentNode; // solves #1123 (see: https://stackoverflow.com/a/37953806/6088312)
|
|
396
|
+
// Not needed on <= IE11
|
|
397
|
+
|
|
398
|
+
if (!IE11OrLess) {
|
|
399
|
+
do {
|
|
400
|
+
if (container && container.getBoundingClientRect && (css(container, 'transform') !== 'none' || relativeToNonStaticParent && css(container, 'position') !== 'static')) {
|
|
401
|
+
var containerRect = container.getBoundingClientRect(); // Set relative to edges of padding box of container
|
|
402
|
+
|
|
403
|
+
top -= containerRect.top + parseInt(css(container, 'border-top-width'));
|
|
404
|
+
left -= containerRect.left + parseInt(css(container, 'border-left-width'));
|
|
405
|
+
bottom = top + elRect.height;
|
|
406
|
+
right = left + elRect.width;
|
|
407
|
+
break;
|
|
408
|
+
}
|
|
409
|
+
/* jshint boss:true */
|
|
410
|
+
|
|
411
|
+
} while (container = container.parentNode);
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
if (undoScale && el !== window) {
|
|
416
|
+
// Adjust for scale()
|
|
417
|
+
var elMatrix = matrix(container || el),
|
|
418
|
+
scaleX = elMatrix && elMatrix.a,
|
|
419
|
+
scaleY = elMatrix && elMatrix.d;
|
|
420
|
+
|
|
421
|
+
if (elMatrix) {
|
|
422
|
+
top /= scaleY;
|
|
423
|
+
left /= scaleX;
|
|
424
|
+
width /= scaleX;
|
|
425
|
+
height /= scaleY;
|
|
426
|
+
bottom = top + height;
|
|
427
|
+
right = left + width;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
return {
|
|
432
|
+
top: top,
|
|
433
|
+
left: left,
|
|
434
|
+
bottom: bottom,
|
|
435
|
+
right: right,
|
|
436
|
+
width: width,
|
|
437
|
+
height: height
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* Checks if a side of an element is scrolled past a side of its parents
|
|
442
|
+
* @param {HTMLElement} el The element who's side being scrolled out of view is in question
|
|
443
|
+
* @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')
|
|
444
|
+
* @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')
|
|
445
|
+
* @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element
|
|
446
|
+
*/
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
function isScrolledPast(el, elSide, parentSide) {
|
|
450
|
+
var parent = getParentAutoScrollElement(el, true),
|
|
451
|
+
elSideVal = getRect(el)[elSide];
|
|
452
|
+
/* jshint boss:true */
|
|
453
|
+
|
|
454
|
+
while (parent) {
|
|
455
|
+
var parentSideVal = getRect(parent)[parentSide],
|
|
456
|
+
visible = void 0;
|
|
457
|
+
|
|
458
|
+
if (parentSide === 'top' || parentSide === 'left') {
|
|
459
|
+
visible = elSideVal >= parentSideVal;
|
|
460
|
+
} else {
|
|
461
|
+
visible = elSideVal <= parentSideVal;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
if (!visible) return parent;
|
|
465
|
+
if (parent === getWindowScrollingElement()) break;
|
|
466
|
+
parent = getParentAutoScrollElement(parent, false);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
return false;
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)
|
|
473
|
+
* and non-draggable elements
|
|
474
|
+
* @param {HTMLElement} el The parent element
|
|
475
|
+
* @param {Number} childNum The index of the child
|
|
476
|
+
* @param {Object} options Parent Sortable's options
|
|
477
|
+
* @return {HTMLElement} The child at index childNum, or null if not found
|
|
478
|
+
*/
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
function getChild(el, childNum, options, includeDragEl) {
|
|
482
|
+
var currentChild = 0,
|
|
483
|
+
i = 0,
|
|
484
|
+
children = el.children;
|
|
485
|
+
|
|
486
|
+
while (i < children.length) {
|
|
487
|
+
if (children[i].style.display !== 'none' && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {
|
|
488
|
+
if (currentChild === childNum) {
|
|
489
|
+
return children[i];
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
currentChild++;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
i++;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
return null;
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* Gets the last child in the el, ignoring ghostEl or invisible elements (clones)
|
|
502
|
+
* @param {HTMLElement} el Parent element
|
|
503
|
+
* @param {selector} selector Any other elements that should be ignored
|
|
504
|
+
* @return {HTMLElement} The last child, ignoring ghostEl
|
|
505
|
+
*/
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
function lastChild(el, selector) {
|
|
509
|
+
var last = el.lastElementChild;
|
|
510
|
+
|
|
511
|
+
while (last && (last === Sortable.ghost || css(last, 'display') === 'none' || selector && !matches(last, selector))) {
|
|
512
|
+
last = last.previousElementSibling;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
return last || null;
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* Returns the index of an element within its parent for a selected set of
|
|
519
|
+
* elements
|
|
520
|
+
* @param {HTMLElement} el
|
|
521
|
+
* @param {selector} selector
|
|
522
|
+
* @return {number}
|
|
523
|
+
*/
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
function index(el, selector) {
|
|
527
|
+
var index = 0;
|
|
528
|
+
|
|
529
|
+
if (!el || !el.parentNode) {
|
|
530
|
+
return -1;
|
|
531
|
+
}
|
|
532
|
+
/* jshint boss:true */
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
while (el = el.previousElementSibling) {
|
|
536
|
+
if (el.nodeName.toUpperCase() !== 'TEMPLATE' && el !== Sortable.clone && (!selector || matches(el, selector))) {
|
|
537
|
+
index++;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
return index;
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.
|
|
545
|
+
* The value is returned in real pixels.
|
|
546
|
+
* @param {HTMLElement} el
|
|
547
|
+
* @return {Array} Offsets in the format of [left, top]
|
|
548
|
+
*/
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
function getRelativeScrollOffset(el) {
|
|
552
|
+
var offsetLeft = 0,
|
|
553
|
+
offsetTop = 0,
|
|
554
|
+
winScroller = getWindowScrollingElement();
|
|
555
|
+
|
|
556
|
+
if (el) {
|
|
557
|
+
do {
|
|
558
|
+
var elMatrix = matrix(el),
|
|
559
|
+
scaleX = elMatrix.a,
|
|
560
|
+
scaleY = elMatrix.d;
|
|
561
|
+
offsetLeft += el.scrollLeft * scaleX;
|
|
562
|
+
offsetTop += el.scrollTop * scaleY;
|
|
563
|
+
} while (el !== winScroller && (el = el.parentNode));
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
return [offsetLeft, offsetTop];
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* Returns the index of the object within the given array
|
|
570
|
+
* @param {Array} arr Array that may or may not hold the object
|
|
571
|
+
* @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
|
|
572
|
+
* @return {Number} The index of the object in the array, or -1
|
|
573
|
+
*/
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
function indexOfObject(arr, obj) {
|
|
577
|
+
for (var i in arr) {
|
|
578
|
+
if (!arr.hasOwnProperty(i)) continue;
|
|
579
|
+
|
|
580
|
+
for (var key in obj) {
|
|
581
|
+
if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
return -1;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
function getParentAutoScrollElement(el, includeSelf) {
|
|
589
|
+
// skip to window
|
|
590
|
+
if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();
|
|
591
|
+
var elem = el;
|
|
592
|
+
var gotSelf = false;
|
|
593
|
+
|
|
594
|
+
do {
|
|
595
|
+
// we don't need to get elem css if it isn't even overflowing in the first place (performance)
|
|
596
|
+
if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {
|
|
597
|
+
var elemCSS = css(elem);
|
|
598
|
+
|
|
599
|
+
if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == 'auto' || elemCSS.overflowX == 'scroll') || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == 'auto' || elemCSS.overflowY == 'scroll')) {
|
|
600
|
+
if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();
|
|
601
|
+
if (gotSelf || includeSelf) return elem;
|
|
602
|
+
gotSelf = true;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
/* jshint boss:true */
|
|
606
|
+
|
|
607
|
+
} while (elem = elem.parentNode);
|
|
608
|
+
|
|
609
|
+
return getWindowScrollingElement();
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
function extend(dst, src) {
|
|
613
|
+
if (dst && src) {
|
|
614
|
+
for (var key in src) {
|
|
615
|
+
if (src.hasOwnProperty(key)) {
|
|
616
|
+
dst[key] = src[key];
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
return dst;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
function isRectEqual(rect1, rect2) {
|
|
625
|
+
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);
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
var _throttleTimeout;
|
|
629
|
+
|
|
630
|
+
function throttle(callback, ms) {
|
|
631
|
+
return function () {
|
|
632
|
+
if (!_throttleTimeout) {
|
|
633
|
+
var args = arguments,
|
|
634
|
+
_this = this;
|
|
635
|
+
|
|
636
|
+
if (args.length === 1) {
|
|
637
|
+
callback.call(_this, args[0]);
|
|
638
|
+
} else {
|
|
639
|
+
callback.apply(_this, args);
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
_throttleTimeout = setTimeout(function () {
|
|
643
|
+
_throttleTimeout = void 0;
|
|
644
|
+
}, ms);
|
|
645
|
+
}
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
function cancelThrottle() {
|
|
650
|
+
clearTimeout(_throttleTimeout);
|
|
651
|
+
_throttleTimeout = void 0;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
function scrollBy(el, x, y) {
|
|
655
|
+
el.scrollLeft += x;
|
|
656
|
+
el.scrollTop += y;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
function clone(el) {
|
|
660
|
+
var Polymer = window.Polymer;
|
|
661
|
+
var $ = window.jQuery || window.Zepto;
|
|
662
|
+
|
|
663
|
+
if (Polymer && Polymer.dom) {
|
|
664
|
+
return Polymer.dom(el).cloneNode(true);
|
|
665
|
+
} else if ($) {
|
|
666
|
+
return $(el).clone(true)[0];
|
|
667
|
+
} else {
|
|
668
|
+
return el.cloneNode(true);
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
var expando = 'Sortable' + new Date().getTime();
|
|
673
|
+
|
|
674
|
+
function AnimationStateManager() {
|
|
675
|
+
var animationStates = [],
|
|
676
|
+
animationCallbackId;
|
|
677
|
+
return {
|
|
678
|
+
captureAnimationState: function captureAnimationState() {
|
|
679
|
+
animationStates = [];
|
|
680
|
+
if (!this.options.animation) return;
|
|
681
|
+
var children = [].slice.call(this.el.children);
|
|
682
|
+
children.forEach(function (child) {
|
|
683
|
+
if (css(child, 'display') === 'none' || child === Sortable.ghost) return;
|
|
684
|
+
animationStates.push({
|
|
685
|
+
target: child,
|
|
686
|
+
rect: getRect(child)
|
|
687
|
+
});
|
|
688
|
+
|
|
689
|
+
var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect); // If animating: compensate for current animation
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
if (child.thisAnimationDuration) {
|
|
693
|
+
var childMatrix = matrix(child, true);
|
|
694
|
+
|
|
695
|
+
if (childMatrix) {
|
|
696
|
+
fromRect.top -= childMatrix.f;
|
|
697
|
+
fromRect.left -= childMatrix.e;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
child.fromRect = fromRect;
|
|
702
|
+
});
|
|
703
|
+
},
|
|
704
|
+
addAnimationState: function addAnimationState(state) {
|
|
705
|
+
animationStates.push(state);
|
|
706
|
+
},
|
|
707
|
+
removeAnimationState: function removeAnimationState(target) {
|
|
708
|
+
animationStates.splice(indexOfObject(animationStates, {
|
|
709
|
+
target: target
|
|
710
|
+
}), 1);
|
|
711
|
+
},
|
|
712
|
+
animateAll: function animateAll(callback) {
|
|
713
|
+
var _this = this;
|
|
714
|
+
|
|
715
|
+
if (!this.options.animation) {
|
|
716
|
+
clearTimeout(animationCallbackId);
|
|
717
|
+
if (typeof callback === 'function') callback();
|
|
718
|
+
return;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
var animating = false,
|
|
722
|
+
animationTime = 0;
|
|
723
|
+
animationStates.forEach(function (state) {
|
|
724
|
+
var time = 0,
|
|
725
|
+
target = state.target,
|
|
726
|
+
fromRect = target.fromRect,
|
|
727
|
+
toRect = getRect(target),
|
|
728
|
+
prevFromRect = target.prevFromRect,
|
|
729
|
+
prevToRect = target.prevToRect,
|
|
730
|
+
animatingRect = state.rect,
|
|
731
|
+
targetMatrix = matrix(target, true);
|
|
732
|
+
|
|
733
|
+
if (targetMatrix) {
|
|
734
|
+
// Compensate for current animation
|
|
735
|
+
toRect.top -= targetMatrix.f;
|
|
736
|
+
toRect.left -= targetMatrix.e;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
target.toRect = toRect;
|
|
740
|
+
|
|
741
|
+
if (target.thisAnimationDuration) {
|
|
742
|
+
// Could also check if animatingRect is between fromRect and toRect
|
|
743
|
+
if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && // Make sure animatingRect is on line between toRect & fromRect
|
|
744
|
+
(animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {
|
|
745
|
+
// If returning to same place as started from animation and on same axis
|
|
746
|
+
time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);
|
|
747
|
+
}
|
|
748
|
+
} // if fromRect != toRect: animate
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
if (!isRectEqual(toRect, fromRect)) {
|
|
752
|
+
target.prevFromRect = fromRect;
|
|
753
|
+
target.prevToRect = toRect;
|
|
754
|
+
|
|
755
|
+
if (!time) {
|
|
756
|
+
time = _this.options.animation;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
_this.animate(target, animatingRect, toRect, time);
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
if (time) {
|
|
763
|
+
animating = true;
|
|
764
|
+
animationTime = Math.max(animationTime, time);
|
|
765
|
+
clearTimeout(target.animationResetTimer);
|
|
766
|
+
target.animationResetTimer = setTimeout(function () {
|
|
767
|
+
target.animationTime = 0;
|
|
768
|
+
target.prevFromRect = null;
|
|
769
|
+
target.fromRect = null;
|
|
770
|
+
target.prevToRect = null;
|
|
771
|
+
target.thisAnimationDuration = null;
|
|
772
|
+
}, time);
|
|
773
|
+
target.thisAnimationDuration = time;
|
|
774
|
+
}
|
|
775
|
+
});
|
|
776
|
+
clearTimeout(animationCallbackId);
|
|
777
|
+
|
|
778
|
+
if (!animating) {
|
|
779
|
+
if (typeof callback === 'function') callback();
|
|
780
|
+
} else {
|
|
781
|
+
animationCallbackId = setTimeout(function () {
|
|
782
|
+
if (typeof callback === 'function') callback();
|
|
783
|
+
}, animationTime);
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
animationStates = [];
|
|
787
|
+
},
|
|
788
|
+
animate: function animate(target, currentRect, toRect, duration) {
|
|
789
|
+
if (duration) {
|
|
790
|
+
css(target, 'transition', '');
|
|
791
|
+
css(target, 'transform', '');
|
|
792
|
+
var elMatrix = matrix(this.el),
|
|
793
|
+
scaleX = elMatrix && elMatrix.a,
|
|
794
|
+
scaleY = elMatrix && elMatrix.d,
|
|
795
|
+
translateX = (currentRect.left - toRect.left) / (scaleX || 1),
|
|
796
|
+
translateY = (currentRect.top - toRect.top) / (scaleY || 1);
|
|
797
|
+
target.animatingX = !!translateX;
|
|
798
|
+
target.animatingY = !!translateY;
|
|
799
|
+
css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)');
|
|
800
|
+
this.forRepaintDummy = repaint(target); // repaint
|
|
801
|
+
|
|
802
|
+
css(target, 'transition', 'transform ' + duration + 'ms' + (this.options.easing ? ' ' + this.options.easing : ''));
|
|
803
|
+
css(target, 'transform', 'translate3d(0,0,0)');
|
|
804
|
+
typeof target.animated === 'number' && clearTimeout(target.animated);
|
|
805
|
+
target.animated = setTimeout(function () {
|
|
806
|
+
css(target, 'transition', '');
|
|
807
|
+
css(target, 'transform', '');
|
|
808
|
+
target.animated = false;
|
|
809
|
+
target.animatingX = false;
|
|
810
|
+
target.animatingY = false;
|
|
811
|
+
}, duration);
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
function repaint(target) {
|
|
818
|
+
return target.offsetWidth;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
function calculateRealTime(animatingRect, fromRect, toRect, options) {
|
|
822
|
+
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;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
var plugins = [];
|
|
826
|
+
var defaults = {
|
|
827
|
+
initializeByDefault: true
|
|
828
|
+
};
|
|
829
|
+
var PluginManager = {
|
|
830
|
+
mount: function mount(plugin) {
|
|
831
|
+
// Set default static properties
|
|
832
|
+
for (var option in defaults) {
|
|
833
|
+
if (defaults.hasOwnProperty(option) && !(option in plugin)) {
|
|
834
|
+
plugin[option] = defaults[option];
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
plugins.forEach(function (p) {
|
|
839
|
+
if (p.pluginName === plugin.pluginName) {
|
|
840
|
+
throw "Sortable: Cannot mount plugin ".concat(plugin.pluginName, " more than once");
|
|
841
|
+
}
|
|
842
|
+
});
|
|
843
|
+
plugins.push(plugin);
|
|
844
|
+
},
|
|
845
|
+
pluginEvent: function pluginEvent(eventName, sortable, evt) {
|
|
846
|
+
var _this = this;
|
|
847
|
+
|
|
848
|
+
this.eventCanceled = false;
|
|
849
|
+
|
|
850
|
+
evt.cancel = function () {
|
|
851
|
+
_this.eventCanceled = true;
|
|
852
|
+
};
|
|
853
|
+
|
|
854
|
+
var eventNameGlobal = eventName + 'Global';
|
|
855
|
+
plugins.forEach(function (plugin) {
|
|
856
|
+
if (!sortable[plugin.pluginName]) return; // Fire global events if it exists in this sortable
|
|
857
|
+
|
|
858
|
+
if (sortable[plugin.pluginName][eventNameGlobal]) {
|
|
859
|
+
sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({
|
|
860
|
+
sortable: sortable
|
|
861
|
+
}, evt));
|
|
862
|
+
} // Only fire plugin event if plugin is enabled in this sortable,
|
|
863
|
+
// and plugin has event defined
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {
|
|
867
|
+
sortable[plugin.pluginName][eventName](_objectSpread2({
|
|
868
|
+
sortable: sortable
|
|
869
|
+
}, evt));
|
|
870
|
+
}
|
|
871
|
+
});
|
|
872
|
+
},
|
|
873
|
+
initializePlugins: function initializePlugins(sortable, el, defaults, options) {
|
|
874
|
+
plugins.forEach(function (plugin) {
|
|
875
|
+
var pluginName = plugin.pluginName;
|
|
876
|
+
if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;
|
|
877
|
+
var initialized = new plugin(sortable, el, sortable.options);
|
|
878
|
+
initialized.sortable = sortable;
|
|
879
|
+
initialized.options = sortable.options;
|
|
880
|
+
sortable[pluginName] = initialized; // Add default options from plugin
|
|
881
|
+
|
|
882
|
+
_extends(defaults, initialized.defaults);
|
|
883
|
+
});
|
|
884
|
+
|
|
885
|
+
for (var option in sortable.options) {
|
|
886
|
+
if (!sortable.options.hasOwnProperty(option)) continue;
|
|
887
|
+
var modified = this.modifyOption(sortable, option, sortable.options[option]);
|
|
888
|
+
|
|
889
|
+
if (typeof modified !== 'undefined') {
|
|
890
|
+
sortable.options[option] = modified;
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
},
|
|
894
|
+
getEventProperties: function getEventProperties(name, sortable) {
|
|
895
|
+
var eventProperties = {};
|
|
896
|
+
plugins.forEach(function (plugin) {
|
|
897
|
+
if (typeof plugin.eventProperties !== 'function') return;
|
|
898
|
+
|
|
899
|
+
_extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));
|
|
900
|
+
});
|
|
901
|
+
return eventProperties;
|
|
902
|
+
},
|
|
903
|
+
modifyOption: function modifyOption(sortable, name, value) {
|
|
904
|
+
var modifiedValue;
|
|
905
|
+
plugins.forEach(function (plugin) {
|
|
906
|
+
// Plugin must exist on the Sortable
|
|
907
|
+
if (!sortable[plugin.pluginName]) return; // If static option listener exists for this option, call in the context of the Sortable's instance of this plugin
|
|
908
|
+
|
|
909
|
+
if (plugin.optionListeners && typeof plugin.optionListeners[name] === 'function') {
|
|
910
|
+
modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);
|
|
911
|
+
}
|
|
912
|
+
});
|
|
913
|
+
return modifiedValue;
|
|
914
|
+
}
|
|
915
|
+
};
|
|
916
|
+
|
|
917
|
+
function dispatchEvent(_ref) {
|
|
918
|
+
var sortable = _ref.sortable,
|
|
919
|
+
rootEl = _ref.rootEl,
|
|
920
|
+
name = _ref.name,
|
|
921
|
+
targetEl = _ref.targetEl,
|
|
922
|
+
cloneEl = _ref.cloneEl,
|
|
923
|
+
toEl = _ref.toEl,
|
|
924
|
+
fromEl = _ref.fromEl,
|
|
925
|
+
oldIndex = _ref.oldIndex,
|
|
926
|
+
newIndex = _ref.newIndex,
|
|
927
|
+
oldDraggableIndex = _ref.oldDraggableIndex,
|
|
928
|
+
newDraggableIndex = _ref.newDraggableIndex,
|
|
929
|
+
originalEvent = _ref.originalEvent,
|
|
930
|
+
putSortable = _ref.putSortable,
|
|
931
|
+
extraEventProperties = _ref.extraEventProperties;
|
|
932
|
+
sortable = sortable || rootEl && rootEl[expando];
|
|
933
|
+
if (!sortable) return;
|
|
934
|
+
var evt,
|
|
935
|
+
options = sortable.options,
|
|
936
|
+
onName = 'on' + name.charAt(0).toUpperCase() + name.substr(1); // Support for new CustomEvent feature
|
|
937
|
+
|
|
938
|
+
if (window.CustomEvent && !IE11OrLess && !Edge) {
|
|
939
|
+
evt = new CustomEvent(name, {
|
|
940
|
+
bubbles: true,
|
|
941
|
+
cancelable: true
|
|
942
|
+
});
|
|
943
|
+
} else {
|
|
944
|
+
evt = document.createEvent('Event');
|
|
945
|
+
evt.initEvent(name, true, true);
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
evt.to = toEl || rootEl;
|
|
949
|
+
evt.from = fromEl || rootEl;
|
|
950
|
+
evt.item = targetEl || rootEl;
|
|
951
|
+
evt.clone = cloneEl;
|
|
952
|
+
evt.oldIndex = oldIndex;
|
|
953
|
+
evt.newIndex = newIndex;
|
|
954
|
+
evt.oldDraggableIndex = oldDraggableIndex;
|
|
955
|
+
evt.newDraggableIndex = newDraggableIndex;
|
|
956
|
+
evt.originalEvent = originalEvent;
|
|
957
|
+
evt.pullMode = putSortable ? putSortable.lastPutMode : undefined;
|
|
958
|
+
|
|
959
|
+
var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));
|
|
960
|
+
|
|
961
|
+
for (var option in allEventProperties) {
|
|
962
|
+
evt[option] = allEventProperties[option];
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
if (rootEl) {
|
|
966
|
+
rootEl.dispatchEvent(evt);
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
if (options[onName]) {
|
|
970
|
+
options[onName].call(sortable, evt);
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
var _excluded = ["evt"];
|
|
975
|
+
|
|
976
|
+
var pluginEvent = function pluginEvent(eventName, sortable) {
|
|
977
|
+
var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
978
|
+
originalEvent = _ref.evt,
|
|
979
|
+
data = _objectWithoutProperties(_ref, _excluded);
|
|
980
|
+
|
|
981
|
+
PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({
|
|
982
|
+
dragEl: dragEl,
|
|
983
|
+
parentEl: parentEl,
|
|
984
|
+
ghostEl: ghostEl,
|
|
985
|
+
rootEl: rootEl,
|
|
986
|
+
nextEl: nextEl,
|
|
987
|
+
lastDownEl: lastDownEl,
|
|
988
|
+
cloneEl: cloneEl,
|
|
989
|
+
cloneHidden: cloneHidden,
|
|
990
|
+
dragStarted: moved,
|
|
991
|
+
putSortable: putSortable,
|
|
992
|
+
activeSortable: Sortable.active,
|
|
993
|
+
originalEvent: originalEvent,
|
|
994
|
+
oldIndex: oldIndex,
|
|
995
|
+
oldDraggableIndex: oldDraggableIndex,
|
|
996
|
+
newIndex: newIndex,
|
|
997
|
+
newDraggableIndex: newDraggableIndex,
|
|
998
|
+
hideGhostForTarget: _hideGhostForTarget,
|
|
999
|
+
unhideGhostForTarget: _unhideGhostForTarget,
|
|
1000
|
+
cloneNowHidden: function cloneNowHidden() {
|
|
1001
|
+
cloneHidden = true;
|
|
1002
|
+
},
|
|
1003
|
+
cloneNowShown: function cloneNowShown() {
|
|
1004
|
+
cloneHidden = false;
|
|
1005
|
+
},
|
|
1006
|
+
dispatchSortableEvent: function dispatchSortableEvent(name) {
|
|
1007
|
+
_dispatchEvent({
|
|
1008
|
+
sortable: sortable,
|
|
1009
|
+
name: name,
|
|
1010
|
+
originalEvent: originalEvent
|
|
1011
|
+
});
|
|
1012
|
+
}
|
|
1013
|
+
}, data));
|
|
1014
|
+
};
|
|
1015
|
+
|
|
1016
|
+
function _dispatchEvent(info) {
|
|
1017
|
+
dispatchEvent(_objectSpread2({
|
|
1018
|
+
putSortable: putSortable,
|
|
1019
|
+
cloneEl: cloneEl,
|
|
1020
|
+
targetEl: dragEl,
|
|
1021
|
+
rootEl: rootEl,
|
|
1022
|
+
oldIndex: oldIndex,
|
|
1023
|
+
oldDraggableIndex: oldDraggableIndex,
|
|
1024
|
+
newIndex: newIndex,
|
|
1025
|
+
newDraggableIndex: newDraggableIndex
|
|
1026
|
+
}, info));
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
var dragEl,
|
|
1030
|
+
parentEl,
|
|
1031
|
+
ghostEl,
|
|
1032
|
+
rootEl,
|
|
1033
|
+
nextEl,
|
|
1034
|
+
lastDownEl,
|
|
1035
|
+
cloneEl,
|
|
1036
|
+
cloneHidden,
|
|
1037
|
+
oldIndex,
|
|
1038
|
+
newIndex,
|
|
1039
|
+
oldDraggableIndex,
|
|
1040
|
+
newDraggableIndex,
|
|
1041
|
+
activeGroup,
|
|
1042
|
+
putSortable,
|
|
1043
|
+
awaitingDragStarted = false,
|
|
1044
|
+
ignoreNextClick = false,
|
|
1045
|
+
sortables = [],
|
|
1046
|
+
tapEvt,
|
|
1047
|
+
touchEvt,
|
|
1048
|
+
lastDx,
|
|
1049
|
+
lastDy,
|
|
1050
|
+
tapDistanceLeft,
|
|
1051
|
+
tapDistanceTop,
|
|
1052
|
+
moved,
|
|
1053
|
+
lastTarget,
|
|
1054
|
+
lastDirection,
|
|
1055
|
+
pastFirstInvertThresh = false,
|
|
1056
|
+
isCircumstantialInvert = false,
|
|
1057
|
+
targetMoveDistance,
|
|
1058
|
+
// For positioning ghost absolutely
|
|
1059
|
+
ghostRelativeParent,
|
|
1060
|
+
ghostRelativeParentInitialScroll = [],
|
|
1061
|
+
// (left, top)
|
|
1062
|
+
_silent = false,
|
|
1063
|
+
savedInputChecked = [];
|
|
1064
|
+
/** @const */
|
|
1065
|
+
|
|
1066
|
+
var documentExists = typeof document !== 'undefined',
|
|
1067
|
+
PositionGhostAbsolutely = IOS,
|
|
1068
|
+
CSSFloatProperty = Edge || IE11OrLess ? 'cssFloat' : 'float',
|
|
1069
|
+
// This will not pass for IE9, because IE9 DnD only works on anchors
|
|
1070
|
+
supportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in document.createElement('div'),
|
|
1071
|
+
supportCssPointerEvents = function () {
|
|
1072
|
+
if (!documentExists) return; // false when <= IE11
|
|
1073
|
+
|
|
1074
|
+
if (IE11OrLess) {
|
|
1075
|
+
return false;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
var el = document.createElement('x');
|
|
1079
|
+
el.style.cssText = 'pointer-events:auto';
|
|
1080
|
+
return el.style.pointerEvents === 'auto';
|
|
1081
|
+
}(),
|
|
1082
|
+
_detectDirection = function _detectDirection(el, options) {
|
|
1083
|
+
var elCSS = css(el),
|
|
1084
|
+
elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth),
|
|
1085
|
+
child1 = getChild(el, 0, options),
|
|
1086
|
+
child2 = getChild(el, 1, options),
|
|
1087
|
+
firstChildCSS = child1 && css(child1),
|
|
1088
|
+
secondChildCSS = child2 && css(child2),
|
|
1089
|
+
firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width,
|
|
1090
|
+
secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;
|
|
1091
|
+
|
|
1092
|
+
if (elCSS.display === 'flex') {
|
|
1093
|
+
return elCSS.flexDirection === 'column' || elCSS.flexDirection === 'column-reverse' ? 'vertical' : 'horizontal';
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
if (elCSS.display === 'grid') {
|
|
1097
|
+
return elCSS.gridTemplateColumns.split(' ').length <= 1 ? 'vertical' : 'horizontal';
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
if (child1 && firstChildCSS["float"] && firstChildCSS["float"] !== 'none') {
|
|
1101
|
+
var touchingSideChild2 = firstChildCSS["float"] === 'left' ? 'left' : 'right';
|
|
1102
|
+
return child2 && (secondChildCSS.clear === 'both' || secondChildCSS.clear === touchingSideChild2) ? 'vertical' : 'horizontal';
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
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';
|
|
1106
|
+
},
|
|
1107
|
+
_dragElInRowColumn = function _dragElInRowColumn(dragRect, targetRect, vertical) {
|
|
1108
|
+
var dragElS1Opp = vertical ? dragRect.left : dragRect.top,
|
|
1109
|
+
dragElS2Opp = vertical ? dragRect.right : dragRect.bottom,
|
|
1110
|
+
dragElOppLength = vertical ? dragRect.width : dragRect.height,
|
|
1111
|
+
targetS1Opp = vertical ? targetRect.left : targetRect.top,
|
|
1112
|
+
targetS2Opp = vertical ? targetRect.right : targetRect.bottom,
|
|
1113
|
+
targetOppLength = vertical ? targetRect.width : targetRect.height;
|
|
1114
|
+
return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
|
|
1115
|
+
},
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
|
|
1119
|
+
* @param {Number} x X position
|
|
1120
|
+
* @param {Number} y Y position
|
|
1121
|
+
* @return {HTMLElement} Element of the first found nearest Sortable
|
|
1122
|
+
*/
|
|
1123
|
+
_detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
|
|
1124
|
+
var ret;
|
|
1125
|
+
sortables.some(function (sortable) {
|
|
1126
|
+
var threshold = sortable[expando].options.emptyInsertThreshold;
|
|
1127
|
+
if (!threshold || lastChild(sortable)) return;
|
|
1128
|
+
var rect = getRect(sortable),
|
|
1129
|
+
insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold,
|
|
1130
|
+
insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;
|
|
1131
|
+
|
|
1132
|
+
if (insideHorizontally && insideVertically) {
|
|
1133
|
+
return ret = sortable;
|
|
1134
|
+
}
|
|
1135
|
+
});
|
|
1136
|
+
return ret;
|
|
1137
|
+
},
|
|
1138
|
+
_prepareGroup = function _prepareGroup(options) {
|
|
1139
|
+
function toFn(value, pull) {
|
|
1140
|
+
return function (to, from, dragEl, evt) {
|
|
1141
|
+
var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;
|
|
1142
|
+
|
|
1143
|
+
if (value == null && (pull || sameGroup)) {
|
|
1144
|
+
// Default pull value
|
|
1145
|
+
// Default pull and put value if same group
|
|
1146
|
+
return true;
|
|
1147
|
+
} else if (value == null || value === false) {
|
|
1148
|
+
return false;
|
|
1149
|
+
} else if (pull && value === 'clone') {
|
|
1150
|
+
return value;
|
|
1151
|
+
} else if (typeof value === 'function') {
|
|
1152
|
+
return toFn(value(to, from, dragEl, evt), pull)(to, from, dragEl, evt);
|
|
1153
|
+
} else {
|
|
1154
|
+
var otherGroup = (pull ? to : from).options.group.name;
|
|
1155
|
+
return value === true || typeof value === 'string' && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;
|
|
1156
|
+
}
|
|
1157
|
+
};
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
var group = {};
|
|
1161
|
+
var originalGroup = options.group;
|
|
1162
|
+
|
|
1163
|
+
if (!originalGroup || _typeof(originalGroup) != 'object') {
|
|
1164
|
+
originalGroup = {
|
|
1165
|
+
name: originalGroup
|
|
1166
|
+
};
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
group.name = originalGroup.name;
|
|
1170
|
+
group.checkPull = toFn(originalGroup.pull, true);
|
|
1171
|
+
group.checkPut = toFn(originalGroup.put);
|
|
1172
|
+
group.revertClone = originalGroup.revertClone;
|
|
1173
|
+
options.group = group;
|
|
1174
|
+
},
|
|
1175
|
+
_hideGhostForTarget = function _hideGhostForTarget() {
|
|
1176
|
+
if (!supportCssPointerEvents && ghostEl) {
|
|
1177
|
+
css(ghostEl, 'display', 'none');
|
|
1178
|
+
}
|
|
1179
|
+
},
|
|
1180
|
+
_unhideGhostForTarget = function _unhideGhostForTarget() {
|
|
1181
|
+
if (!supportCssPointerEvents && ghostEl) {
|
|
1182
|
+
css(ghostEl, 'display', '');
|
|
1183
|
+
}
|
|
1184
|
+
}; // #1184 fix - Prevent click event on fallback if dragged but item not changed position
|
|
1185
|
+
|
|
1186
|
+
|
|
1187
|
+
if (documentExists && !ChromeForAndroid) {
|
|
1188
|
+
document.addEventListener('click', function (evt) {
|
|
1189
|
+
if (ignoreNextClick) {
|
|
1190
|
+
evt.preventDefault();
|
|
1191
|
+
evt.stopPropagation && evt.stopPropagation();
|
|
1192
|
+
evt.stopImmediatePropagation && evt.stopImmediatePropagation();
|
|
1193
|
+
ignoreNextClick = false;
|
|
1194
|
+
return false;
|
|
1195
|
+
}
|
|
1196
|
+
}, true);
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
var nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) {
|
|
1200
|
+
if (dragEl) {
|
|
1201
|
+
evt = evt.touches ? evt.touches[0] : evt;
|
|
1202
|
+
|
|
1203
|
+
var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);
|
|
1204
|
+
|
|
1205
|
+
if (nearest) {
|
|
1206
|
+
// Create imitation event
|
|
1207
|
+
var event = {};
|
|
1208
|
+
|
|
1209
|
+
for (var i in evt) {
|
|
1210
|
+
if (evt.hasOwnProperty(i)) {
|
|
1211
|
+
event[i] = evt[i];
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
event.target = event.rootEl = nearest;
|
|
1216
|
+
event.preventDefault = void 0;
|
|
1217
|
+
event.stopPropagation = void 0;
|
|
1218
|
+
|
|
1219
|
+
nearest[expando]._onDragOver(event);
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
};
|
|
1223
|
+
|
|
1224
|
+
var _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {
|
|
1225
|
+
if (dragEl) {
|
|
1226
|
+
dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
|
|
1227
|
+
}
|
|
1228
|
+
};
|
|
1229
|
+
/**
|
|
1230
|
+
* @class Sortable
|
|
1231
|
+
* @param {HTMLElement} el
|
|
1232
|
+
* @param {Object} [options]
|
|
1233
|
+
*/
|
|
1234
|
+
|
|
1235
|
+
|
|
1236
|
+
function Sortable(el, options) {
|
|
1237
|
+
if (!(el && el.nodeType && el.nodeType === 1)) {
|
|
1238
|
+
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(el));
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
this.el = el; // root element
|
|
1242
|
+
|
|
1243
|
+
this.options = options = _extends({}, options); // Export instance
|
|
1244
|
+
|
|
1245
|
+
el[expando] = this;
|
|
1246
|
+
var defaults = {
|
|
1247
|
+
group: null,
|
|
1248
|
+
sort: true,
|
|
1249
|
+
disabled: false,
|
|
1250
|
+
store: null,
|
|
1251
|
+
handle: null,
|
|
1252
|
+
draggable: /^[uo]l$/i.test(el.nodeName) ? '>li' : '>*',
|
|
1253
|
+
swapThreshold: 1,
|
|
1254
|
+
// percentage; 0 <= x <= 1
|
|
1255
|
+
invertSwap: false,
|
|
1256
|
+
// invert always
|
|
1257
|
+
invertedSwapThreshold: null,
|
|
1258
|
+
// will be set to same as swapThreshold if default
|
|
1259
|
+
removeCloneOnHide: true,
|
|
1260
|
+
direction: function direction() {
|
|
1261
|
+
return _detectDirection(el, this.options);
|
|
1262
|
+
},
|
|
1263
|
+
ghostClass: 'sortable-ghost',
|
|
1264
|
+
chosenClass: 'sortable-chosen',
|
|
1265
|
+
dragClass: 'sortable-drag',
|
|
1266
|
+
ignore: 'a, img',
|
|
1267
|
+
filter: null,
|
|
1268
|
+
preventOnFilter: true,
|
|
1269
|
+
animation: 0,
|
|
1270
|
+
easing: null,
|
|
1271
|
+
setData: function setData(dataTransfer, dragEl) {
|
|
1272
|
+
dataTransfer.setData('Text', dragEl.textContent);
|
|
1273
|
+
},
|
|
1274
|
+
dropBubble: false,
|
|
1275
|
+
dragoverBubble: false,
|
|
1276
|
+
dataIdAttr: 'data-id',
|
|
1277
|
+
delay: 0,
|
|
1278
|
+
delayOnTouchOnly: false,
|
|
1279
|
+
touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
|
|
1280
|
+
forceFallback: false,
|
|
1281
|
+
fallbackClass: 'sortable-fallback',
|
|
1282
|
+
fallbackOnBody: false,
|
|
1283
|
+
fallbackTolerance: 0,
|
|
1284
|
+
fallbackOffset: {
|
|
1285
|
+
x: 0,
|
|
1286
|
+
y: 0
|
|
1287
|
+
},
|
|
1288
|
+
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,
|
|
1289
|
+
emptyInsertThreshold: 5
|
|
1290
|
+
};
|
|
1291
|
+
PluginManager.initializePlugins(this, el, defaults); // Set default options
|
|
1292
|
+
|
|
1293
|
+
for (var name in defaults) {
|
|
1294
|
+
!(name in options) && (options[name] = defaults[name]);
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
_prepareGroup(options); // Bind all private methods
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
for (var fn in this) {
|
|
1301
|
+
if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {
|
|
1302
|
+
this[fn] = this[fn].bind(this);
|
|
1303
|
+
}
|
|
1304
|
+
} // Setup drag mode
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
this.nativeDraggable = options.forceFallback ? false : supportDraggable;
|
|
1308
|
+
|
|
1309
|
+
if (this.nativeDraggable) {
|
|
1310
|
+
// Touch start threshold cannot be greater than the native dragstart threshold
|
|
1311
|
+
this.options.touchStartThreshold = 1;
|
|
1312
|
+
} // Bind events
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
if (options.supportPointer) {
|
|
1316
|
+
on(el, 'pointerdown', this._onTapStart);
|
|
1317
|
+
} else {
|
|
1318
|
+
on(el, 'mousedown', this._onTapStart);
|
|
1319
|
+
on(el, 'touchstart', this._onTapStart);
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
if (this.nativeDraggable) {
|
|
1323
|
+
on(el, 'dragover', this);
|
|
1324
|
+
on(el, 'dragenter', this);
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
sortables.push(this.el); // Restore sorting
|
|
1328
|
+
|
|
1329
|
+
options.store && options.store.get && this.sort(options.store.get(this) || []); // Add animation state manager
|
|
1330
|
+
|
|
1331
|
+
_extends(this, AnimationStateManager());
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
Sortable.prototype =
|
|
1335
|
+
/** @lends Sortable.prototype */
|
|
1336
|
+
{
|
|
1337
|
+
constructor: Sortable,
|
|
1338
|
+
_isOutsideThisEl: function _isOutsideThisEl(target) {
|
|
1339
|
+
if (!this.el.contains(target) && target !== this.el) {
|
|
1340
|
+
lastTarget = null;
|
|
1341
|
+
}
|
|
1342
|
+
},
|
|
1343
|
+
_getDirection: function _getDirection(evt, target) {
|
|
1344
|
+
return typeof this.options.direction === 'function' ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;
|
|
1345
|
+
},
|
|
1346
|
+
_onTapStart: function _onTapStart(
|
|
1347
|
+
/** Event|TouchEvent */
|
|
1348
|
+
evt) {
|
|
1349
|
+
if (!evt.cancelable) return;
|
|
1350
|
+
|
|
1351
|
+
var _this = this,
|
|
1352
|
+
el = this.el,
|
|
1353
|
+
options = this.options,
|
|
1354
|
+
preventOnFilter = options.preventOnFilter,
|
|
1355
|
+
type = evt.type,
|
|
1356
|
+
touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === 'touch' && evt,
|
|
1357
|
+
target = (touch || evt).target,
|
|
1358
|
+
originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target,
|
|
1359
|
+
filter = options.filter;
|
|
1360
|
+
|
|
1361
|
+
_saveInputCheckedState(el); // Don't trigger start event when an element is been dragged, otherwise the evt.oldindex always wrong when set option.group.
|
|
1362
|
+
|
|
1363
|
+
|
|
1364
|
+
if (dragEl) {
|
|
1365
|
+
return;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {
|
|
1369
|
+
return; // only left button and enabled
|
|
1370
|
+
} // cancel dnd if original target is content editable
|
|
1371
|
+
|
|
1372
|
+
|
|
1373
|
+
if (originalTarget.isContentEditable) {
|
|
1374
|
+
return;
|
|
1375
|
+
} // Safari ignores further event handling after mousedown
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === 'SELECT') {
|
|
1379
|
+
return;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
target = closest(target, options.draggable, el, false);
|
|
1383
|
+
|
|
1384
|
+
if (target && target.animated) {
|
|
1385
|
+
return;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
if (lastDownEl === target) {
|
|
1389
|
+
// Ignoring duplicate `down`
|
|
1390
|
+
return;
|
|
1391
|
+
} // Get the index of the dragged element within its parent
|
|
1392
|
+
|
|
1393
|
+
|
|
1394
|
+
oldIndex = index(target);
|
|
1395
|
+
oldDraggableIndex = index(target, options.draggable); // Check filter
|
|
1396
|
+
|
|
1397
|
+
if (typeof filter === 'function') {
|
|
1398
|
+
if (filter.call(this, evt, target, this)) {
|
|
1399
|
+
_dispatchEvent({
|
|
1400
|
+
sortable: _this,
|
|
1401
|
+
rootEl: originalTarget,
|
|
1402
|
+
name: 'filter',
|
|
1403
|
+
targetEl: target,
|
|
1404
|
+
toEl: el,
|
|
1405
|
+
fromEl: el
|
|
1406
|
+
});
|
|
1407
|
+
|
|
1408
|
+
pluginEvent('filter', _this, {
|
|
1409
|
+
evt: evt
|
|
1410
|
+
});
|
|
1411
|
+
preventOnFilter && evt.cancelable && evt.preventDefault();
|
|
1412
|
+
return; // cancel dnd
|
|
1413
|
+
}
|
|
1414
|
+
} else if (filter) {
|
|
1415
|
+
filter = filter.split(',').some(function (criteria) {
|
|
1416
|
+
criteria = closest(originalTarget, criteria.trim(), el, false);
|
|
1417
|
+
|
|
1418
|
+
if (criteria) {
|
|
1419
|
+
_dispatchEvent({
|
|
1420
|
+
sortable: _this,
|
|
1421
|
+
rootEl: criteria,
|
|
1422
|
+
name: 'filter',
|
|
1423
|
+
targetEl: target,
|
|
1424
|
+
fromEl: el,
|
|
1425
|
+
toEl: el
|
|
1426
|
+
});
|
|
1427
|
+
|
|
1428
|
+
pluginEvent('filter', _this, {
|
|
1429
|
+
evt: evt
|
|
1430
|
+
});
|
|
1431
|
+
return true;
|
|
1432
|
+
}
|
|
1433
|
+
});
|
|
1434
|
+
|
|
1435
|
+
if (filter) {
|
|
1436
|
+
preventOnFilter && evt.cancelable && evt.preventDefault();
|
|
1437
|
+
return; // cancel dnd
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
if (options.handle && !closest(originalTarget, options.handle, el, false)) {
|
|
1442
|
+
return;
|
|
1443
|
+
} // Prepare `dragstart`
|
|
1444
|
+
|
|
1445
|
+
|
|
1446
|
+
this._prepareDragStart(evt, touch, target);
|
|
1447
|
+
},
|
|
1448
|
+
_prepareDragStart: function _prepareDragStart(
|
|
1449
|
+
/** Event */
|
|
1450
|
+
evt,
|
|
1451
|
+
/** Touch */
|
|
1452
|
+
touch,
|
|
1453
|
+
/** HTMLElement */
|
|
1454
|
+
target) {
|
|
1455
|
+
var _this = this,
|
|
1456
|
+
el = _this.el,
|
|
1457
|
+
options = _this.options,
|
|
1458
|
+
ownerDocument = el.ownerDocument,
|
|
1459
|
+
dragStartFn;
|
|
1460
|
+
|
|
1461
|
+
if (target && !dragEl && target.parentNode === el) {
|
|
1462
|
+
var dragRect = getRect(target);
|
|
1463
|
+
rootEl = el;
|
|
1464
|
+
dragEl = target;
|
|
1465
|
+
parentEl = dragEl.parentNode;
|
|
1466
|
+
nextEl = dragEl.nextSibling;
|
|
1467
|
+
lastDownEl = target;
|
|
1468
|
+
activeGroup = options.group;
|
|
1469
|
+
Sortable.dragged = dragEl;
|
|
1470
|
+
tapEvt = {
|
|
1471
|
+
target: dragEl,
|
|
1472
|
+
clientX: (touch || evt).clientX,
|
|
1473
|
+
clientY: (touch || evt).clientY
|
|
1474
|
+
};
|
|
1475
|
+
tapDistanceLeft = tapEvt.clientX - dragRect.left;
|
|
1476
|
+
tapDistanceTop = tapEvt.clientY - dragRect.top;
|
|
1477
|
+
this._lastX = (touch || evt).clientX;
|
|
1478
|
+
this._lastY = (touch || evt).clientY;
|
|
1479
|
+
dragEl.style['will-change'] = 'all';
|
|
1480
|
+
|
|
1481
|
+
dragStartFn = function dragStartFn() {
|
|
1482
|
+
pluginEvent('delayEnded', _this, {
|
|
1483
|
+
evt: evt
|
|
1484
|
+
});
|
|
1485
|
+
|
|
1486
|
+
if (Sortable.eventCanceled) {
|
|
1487
|
+
_this._onDrop();
|
|
1488
|
+
|
|
1489
|
+
return;
|
|
1490
|
+
} // Delayed drag has been triggered
|
|
1491
|
+
// we can re-enable the events: touchmove/mousemove
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
_this._disableDelayedDragEvents();
|
|
1495
|
+
|
|
1496
|
+
if (!FireFox && _this.nativeDraggable) {
|
|
1497
|
+
dragEl.draggable = true;
|
|
1498
|
+
} // Bind the events: dragstart/dragend
|
|
1499
|
+
|
|
1500
|
+
|
|
1501
|
+
_this._triggerDragStart(evt, touch); // Drag start event
|
|
1502
|
+
|
|
1503
|
+
|
|
1504
|
+
_dispatchEvent({
|
|
1505
|
+
sortable: _this,
|
|
1506
|
+
name: 'choose',
|
|
1507
|
+
originalEvent: evt
|
|
1508
|
+
}); // Chosen item
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
toggleClass(dragEl, options.chosenClass, true);
|
|
1512
|
+
}; // Disable "draggable"
|
|
1513
|
+
|
|
1514
|
+
|
|
1515
|
+
options.ignore.split(',').forEach(function (criteria) {
|
|
1516
|
+
find(dragEl, criteria.trim(), _disableDraggable);
|
|
1517
|
+
});
|
|
1518
|
+
on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent);
|
|
1519
|
+
on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent);
|
|
1520
|
+
on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent);
|
|
1521
|
+
on(ownerDocument, 'mouseup', _this._onDrop);
|
|
1522
|
+
on(ownerDocument, 'touchend', _this._onDrop);
|
|
1523
|
+
on(ownerDocument, 'touchcancel', _this._onDrop); // Make dragEl draggable (must be before delay for FireFox)
|
|
1524
|
+
|
|
1525
|
+
if (FireFox && this.nativeDraggable) {
|
|
1526
|
+
this.options.touchStartThreshold = 4;
|
|
1527
|
+
dragEl.draggable = true;
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
pluginEvent('delayStart', this, {
|
|
1531
|
+
evt: evt
|
|
1532
|
+
}); // Delay is impossible for native DnD in Edge or IE
|
|
1533
|
+
|
|
1534
|
+
if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {
|
|
1535
|
+
if (Sortable.eventCanceled) {
|
|
1536
|
+
this._onDrop();
|
|
1537
|
+
|
|
1538
|
+
return;
|
|
1539
|
+
} // If the user moves the pointer or let go the click or touch
|
|
1540
|
+
// before the delay has been reached:
|
|
1541
|
+
// disable the delayed drag
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
on(ownerDocument, 'mouseup', _this._disableDelayedDrag);
|
|
1545
|
+
on(ownerDocument, 'touchend', _this._disableDelayedDrag);
|
|
1546
|
+
on(ownerDocument, 'touchcancel', _this._disableDelayedDrag);
|
|
1547
|
+
on(ownerDocument, 'mousemove', _this._delayedDragTouchMoveHandler);
|
|
1548
|
+
on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler);
|
|
1549
|
+
options.supportPointer && on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler);
|
|
1550
|
+
_this._dragStartTimer = setTimeout(dragStartFn, options.delay);
|
|
1551
|
+
} else {
|
|
1552
|
+
dragStartFn();
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
},
|
|
1556
|
+
_delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(
|
|
1557
|
+
/** TouchEvent|PointerEvent **/
|
|
1558
|
+
e) {
|
|
1559
|
+
var touch = e.touches ? e.touches[0] : e;
|
|
1560
|
+
|
|
1561
|
+
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))) {
|
|
1562
|
+
this._disableDelayedDrag();
|
|
1563
|
+
}
|
|
1564
|
+
},
|
|
1565
|
+
_disableDelayedDrag: function _disableDelayedDrag() {
|
|
1566
|
+
dragEl && _disableDraggable(dragEl);
|
|
1567
|
+
clearTimeout(this._dragStartTimer);
|
|
1568
|
+
|
|
1569
|
+
this._disableDelayedDragEvents();
|
|
1570
|
+
},
|
|
1571
|
+
_disableDelayedDragEvents: function _disableDelayedDragEvents() {
|
|
1572
|
+
var ownerDocument = this.el.ownerDocument;
|
|
1573
|
+
off(ownerDocument, 'mouseup', this._disableDelayedDrag);
|
|
1574
|
+
off(ownerDocument, 'touchend', this._disableDelayedDrag);
|
|
1575
|
+
off(ownerDocument, 'touchcancel', this._disableDelayedDrag);
|
|
1576
|
+
off(ownerDocument, 'mousemove', this._delayedDragTouchMoveHandler);
|
|
1577
|
+
off(ownerDocument, 'touchmove', this._delayedDragTouchMoveHandler);
|
|
1578
|
+
off(ownerDocument, 'pointermove', this._delayedDragTouchMoveHandler);
|
|
1579
|
+
},
|
|
1580
|
+
_triggerDragStart: function _triggerDragStart(
|
|
1581
|
+
/** Event */
|
|
1582
|
+
evt,
|
|
1583
|
+
/** Touch */
|
|
1584
|
+
touch) {
|
|
1585
|
+
touch = touch || evt.pointerType == 'touch' && evt;
|
|
1586
|
+
|
|
1587
|
+
if (!this.nativeDraggable || touch) {
|
|
1588
|
+
if (this.options.supportPointer) {
|
|
1589
|
+
on(document, 'pointermove', this._onTouchMove);
|
|
1590
|
+
} else if (touch) {
|
|
1591
|
+
on(document, 'touchmove', this._onTouchMove);
|
|
1592
|
+
} else {
|
|
1593
|
+
on(document, 'mousemove', this._onTouchMove);
|
|
1594
|
+
}
|
|
1595
|
+
} else {
|
|
1596
|
+
on(dragEl, 'dragend', this);
|
|
1597
|
+
on(rootEl, 'dragstart', this._onDragStart);
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
try {
|
|
1601
|
+
if (document.selection) {
|
|
1602
|
+
// Timeout neccessary for IE9
|
|
1603
|
+
_nextTick(function () {
|
|
1604
|
+
document.selection.empty();
|
|
1605
|
+
});
|
|
1606
|
+
} else {
|
|
1607
|
+
window.getSelection().removeAllRanges();
|
|
1608
|
+
}
|
|
1609
|
+
} catch (err) {}
|
|
1610
|
+
},
|
|
1611
|
+
_dragStarted: function _dragStarted(fallback, evt) {
|
|
1612
|
+
|
|
1613
|
+
awaitingDragStarted = false;
|
|
1614
|
+
|
|
1615
|
+
if (rootEl && dragEl) {
|
|
1616
|
+
pluginEvent('dragStarted', this, {
|
|
1617
|
+
evt: evt
|
|
1618
|
+
});
|
|
1619
|
+
|
|
1620
|
+
if (this.nativeDraggable) {
|
|
1621
|
+
on(document, 'dragover', _checkOutsideTargetEl);
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
var options = this.options; // Apply effect
|
|
1625
|
+
|
|
1626
|
+
!fallback && toggleClass(dragEl, options.dragClass, false);
|
|
1627
|
+
toggleClass(dragEl, options.ghostClass, true);
|
|
1628
|
+
Sortable.active = this;
|
|
1629
|
+
fallback && this._appendGhost(); // Drag start event
|
|
1630
|
+
|
|
1631
|
+
_dispatchEvent({
|
|
1632
|
+
sortable: this,
|
|
1633
|
+
name: 'start',
|
|
1634
|
+
originalEvent: evt
|
|
1635
|
+
});
|
|
1636
|
+
} else {
|
|
1637
|
+
this._nulling();
|
|
1638
|
+
}
|
|
1639
|
+
},
|
|
1640
|
+
_emulateDragOver: function _emulateDragOver() {
|
|
1641
|
+
if (touchEvt) {
|
|
1642
|
+
this._lastX = touchEvt.clientX;
|
|
1643
|
+
this._lastY = touchEvt.clientY;
|
|
1644
|
+
|
|
1645
|
+
_hideGhostForTarget();
|
|
1646
|
+
|
|
1647
|
+
var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
|
|
1648
|
+
var parent = target;
|
|
1649
|
+
|
|
1650
|
+
while (target && target.shadowRoot) {
|
|
1651
|
+
target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
|
|
1652
|
+
if (target === parent) break;
|
|
1653
|
+
parent = target;
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
dragEl.parentNode[expando]._isOutsideThisEl(target);
|
|
1657
|
+
|
|
1658
|
+
if (parent) {
|
|
1659
|
+
do {
|
|
1660
|
+
if (parent[expando]) {
|
|
1661
|
+
var inserted = void 0;
|
|
1662
|
+
inserted = parent[expando]._onDragOver({
|
|
1663
|
+
clientX: touchEvt.clientX,
|
|
1664
|
+
clientY: touchEvt.clientY,
|
|
1665
|
+
target: target,
|
|
1666
|
+
rootEl: parent
|
|
1667
|
+
});
|
|
1668
|
+
|
|
1669
|
+
if (inserted && !this.options.dragoverBubble) {
|
|
1670
|
+
break;
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
target = parent; // store last element
|
|
1675
|
+
}
|
|
1676
|
+
/* jshint boss:true */
|
|
1677
|
+
while (parent = parent.parentNode);
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
_unhideGhostForTarget();
|
|
1681
|
+
}
|
|
1682
|
+
},
|
|
1683
|
+
_onTouchMove: function _onTouchMove(
|
|
1684
|
+
/**TouchEvent*/
|
|
1685
|
+
evt) {
|
|
1686
|
+
if (tapEvt) {
|
|
1687
|
+
var options = this.options,
|
|
1688
|
+
fallbackTolerance = options.fallbackTolerance,
|
|
1689
|
+
fallbackOffset = options.fallbackOffset,
|
|
1690
|
+
touch = evt.touches ? evt.touches[0] : evt,
|
|
1691
|
+
ghostMatrix = ghostEl && matrix(ghostEl, true),
|
|
1692
|
+
scaleX = ghostEl && ghostMatrix && ghostMatrix.a,
|
|
1693
|
+
scaleY = ghostEl && ghostMatrix && ghostMatrix.d,
|
|
1694
|
+
relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent),
|
|
1695
|
+
dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1),
|
|
1696
|
+
dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1); // only set the status to dragging, when we are actually dragging
|
|
1697
|
+
|
|
1698
|
+
if (!Sortable.active && !awaitingDragStarted) {
|
|
1699
|
+
if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {
|
|
1700
|
+
return;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
this._onDragStart(evt, true);
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
if (ghostEl) {
|
|
1707
|
+
if (ghostMatrix) {
|
|
1708
|
+
ghostMatrix.e += dx - (lastDx || 0);
|
|
1709
|
+
ghostMatrix.f += dy - (lastDy || 0);
|
|
1710
|
+
} else {
|
|
1711
|
+
ghostMatrix = {
|
|
1712
|
+
a: 1,
|
|
1713
|
+
b: 0,
|
|
1714
|
+
c: 0,
|
|
1715
|
+
d: 1,
|
|
1716
|
+
e: dx,
|
|
1717
|
+
f: dy
|
|
1718
|
+
};
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
var cssMatrix = "matrix(".concat(ghostMatrix.a, ",").concat(ghostMatrix.b, ",").concat(ghostMatrix.c, ",").concat(ghostMatrix.d, ",").concat(ghostMatrix.e, ",").concat(ghostMatrix.f, ")");
|
|
1722
|
+
css(ghostEl, 'webkitTransform', cssMatrix);
|
|
1723
|
+
css(ghostEl, 'mozTransform', cssMatrix);
|
|
1724
|
+
css(ghostEl, 'msTransform', cssMatrix);
|
|
1725
|
+
css(ghostEl, 'transform', cssMatrix);
|
|
1726
|
+
lastDx = dx;
|
|
1727
|
+
lastDy = dy;
|
|
1728
|
+
touchEvt = touch;
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
evt.cancelable && evt.preventDefault();
|
|
1732
|
+
}
|
|
1733
|
+
},
|
|
1734
|
+
_appendGhost: function _appendGhost() {
|
|
1735
|
+
// Bug if using scale(): https://stackoverflow.com/questions/2637058
|
|
1736
|
+
// Not being adjusted for
|
|
1737
|
+
if (!ghostEl) {
|
|
1738
|
+
var container = this.options.fallbackOnBody ? document.body : rootEl,
|
|
1739
|
+
rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container),
|
|
1740
|
+
options = this.options; // Position absolutely
|
|
1741
|
+
|
|
1742
|
+
if (PositionGhostAbsolutely) {
|
|
1743
|
+
// Get relatively positioned parent
|
|
1744
|
+
ghostRelativeParent = container;
|
|
1745
|
+
|
|
1746
|
+
while (css(ghostRelativeParent, 'position') === 'static' && css(ghostRelativeParent, 'transform') === 'none' && ghostRelativeParent !== document) {
|
|
1747
|
+
ghostRelativeParent = ghostRelativeParent.parentNode;
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {
|
|
1751
|
+
if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();
|
|
1752
|
+
rect.top += ghostRelativeParent.scrollTop;
|
|
1753
|
+
rect.left += ghostRelativeParent.scrollLeft;
|
|
1754
|
+
} else {
|
|
1755
|
+
ghostRelativeParent = getWindowScrollingElement();
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
ghostEl = dragEl.cloneNode(true);
|
|
1762
|
+
toggleClass(ghostEl, options.ghostClass, false);
|
|
1763
|
+
toggleClass(ghostEl, options.fallbackClass, true);
|
|
1764
|
+
toggleClass(ghostEl, options.dragClass, true);
|
|
1765
|
+
css(ghostEl, 'transition', '');
|
|
1766
|
+
css(ghostEl, 'transform', '');
|
|
1767
|
+
css(ghostEl, 'box-sizing', 'border-box');
|
|
1768
|
+
css(ghostEl, 'margin', 0);
|
|
1769
|
+
css(ghostEl, 'top', rect.top);
|
|
1770
|
+
css(ghostEl, 'left', rect.left);
|
|
1771
|
+
css(ghostEl, 'width', rect.width);
|
|
1772
|
+
css(ghostEl, 'height', rect.height);
|
|
1773
|
+
css(ghostEl, 'opacity', '0.8');
|
|
1774
|
+
css(ghostEl, 'position', PositionGhostAbsolutely ? 'absolute' : 'fixed');
|
|
1775
|
+
css(ghostEl, 'zIndex', '100000');
|
|
1776
|
+
css(ghostEl, 'pointerEvents', 'none');
|
|
1777
|
+
Sortable.ghost = ghostEl;
|
|
1778
|
+
container.appendChild(ghostEl); // Set transform-origin
|
|
1779
|
+
|
|
1780
|
+
css(ghostEl, 'transform-origin', tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + '% ' + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + '%');
|
|
1781
|
+
}
|
|
1782
|
+
},
|
|
1783
|
+
_onDragStart: function _onDragStart(
|
|
1784
|
+
/**Event*/
|
|
1785
|
+
evt,
|
|
1786
|
+
/**boolean*/
|
|
1787
|
+
fallback) {
|
|
1788
|
+
var _this = this;
|
|
1789
|
+
|
|
1790
|
+
var dataTransfer = evt.dataTransfer;
|
|
1791
|
+
var options = _this.options;
|
|
1792
|
+
pluginEvent('dragStart', this, {
|
|
1793
|
+
evt: evt
|
|
1794
|
+
});
|
|
1795
|
+
|
|
1796
|
+
if (Sortable.eventCanceled) {
|
|
1797
|
+
this._onDrop();
|
|
1798
|
+
|
|
1799
|
+
return;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
pluginEvent('setupClone', this);
|
|
1803
|
+
|
|
1804
|
+
if (!Sortable.eventCanceled) {
|
|
1805
|
+
cloneEl = clone(dragEl);
|
|
1806
|
+
cloneEl.removeAttribute("id");
|
|
1807
|
+
cloneEl.draggable = false;
|
|
1808
|
+
cloneEl.style['will-change'] = '';
|
|
1809
|
+
|
|
1810
|
+
this._hideClone();
|
|
1811
|
+
|
|
1812
|
+
toggleClass(cloneEl, this.options.chosenClass, false);
|
|
1813
|
+
Sortable.clone = cloneEl;
|
|
1814
|
+
} // #1143: IFrame support workaround
|
|
1815
|
+
|
|
1816
|
+
|
|
1817
|
+
_this.cloneId = _nextTick(function () {
|
|
1818
|
+
pluginEvent('clone', _this);
|
|
1819
|
+
if (Sortable.eventCanceled) return;
|
|
1820
|
+
|
|
1821
|
+
if (!_this.options.removeCloneOnHide) {
|
|
1822
|
+
rootEl.insertBefore(cloneEl, dragEl);
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
_this._hideClone();
|
|
1826
|
+
|
|
1827
|
+
_dispatchEvent({
|
|
1828
|
+
sortable: _this,
|
|
1829
|
+
name: 'clone'
|
|
1830
|
+
});
|
|
1831
|
+
});
|
|
1832
|
+
!fallback && toggleClass(dragEl, options.dragClass, true); // Set proper drop events
|
|
1833
|
+
|
|
1834
|
+
if (fallback) {
|
|
1835
|
+
ignoreNextClick = true;
|
|
1836
|
+
_this._loopId = setInterval(_this._emulateDragOver, 50);
|
|
1837
|
+
} else {
|
|
1838
|
+
// Undo what was set in _prepareDragStart before drag started
|
|
1839
|
+
off(document, 'mouseup', _this._onDrop);
|
|
1840
|
+
off(document, 'touchend', _this._onDrop);
|
|
1841
|
+
off(document, 'touchcancel', _this._onDrop);
|
|
1842
|
+
|
|
1843
|
+
if (dataTransfer) {
|
|
1844
|
+
dataTransfer.effectAllowed = 'move';
|
|
1845
|
+
options.setData && options.setData.call(_this, dataTransfer, dragEl);
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
on(document, 'drop', _this); // #1276 fix:
|
|
1849
|
+
|
|
1850
|
+
css(dragEl, 'transform', 'translateZ(0)');
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
awaitingDragStarted = true;
|
|
1854
|
+
_this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
|
|
1855
|
+
on(document, 'selectstart', _this);
|
|
1856
|
+
moved = true;
|
|
1857
|
+
|
|
1858
|
+
if (Safari) {
|
|
1859
|
+
css(document.body, 'user-select', 'none');
|
|
1860
|
+
}
|
|
1861
|
+
},
|
|
1862
|
+
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1863
|
+
_onDragOver: function _onDragOver(
|
|
1864
|
+
/**Event*/
|
|
1865
|
+
evt) {
|
|
1866
|
+
var el = this.el,
|
|
1867
|
+
target = evt.target,
|
|
1868
|
+
dragRect,
|
|
1869
|
+
targetRect,
|
|
1870
|
+
revert,
|
|
1871
|
+
options = this.options,
|
|
1872
|
+
group = options.group,
|
|
1873
|
+
activeSortable = Sortable.active,
|
|
1874
|
+
isOwner = activeGroup === group,
|
|
1875
|
+
canSort = options.sort,
|
|
1876
|
+
fromSortable = putSortable || activeSortable,
|
|
1877
|
+
vertical,
|
|
1878
|
+
_this = this,
|
|
1879
|
+
completedFired = false;
|
|
1880
|
+
|
|
1881
|
+
if (_silent) return;
|
|
1882
|
+
|
|
1883
|
+
function dragOverEvent(name, extra) {
|
|
1884
|
+
pluginEvent(name, _this, _objectSpread2({
|
|
1885
|
+
evt: evt,
|
|
1886
|
+
isOwner: isOwner,
|
|
1887
|
+
axis: vertical ? 'vertical' : 'horizontal',
|
|
1888
|
+
revert: revert,
|
|
1889
|
+
dragRect: dragRect,
|
|
1890
|
+
targetRect: targetRect,
|
|
1891
|
+
canSort: canSort,
|
|
1892
|
+
fromSortable: fromSortable,
|
|
1893
|
+
target: target,
|
|
1894
|
+
completed: completed,
|
|
1895
|
+
onMove: function onMove(target, after) {
|
|
1896
|
+
return _onMove(rootEl, el, dragEl, dragRect, target, getRect(target), evt, after);
|
|
1897
|
+
},
|
|
1898
|
+
changed: changed
|
|
1899
|
+
}, extra));
|
|
1900
|
+
} // Capture animation state
|
|
1901
|
+
|
|
1902
|
+
|
|
1903
|
+
function capture() {
|
|
1904
|
+
dragOverEvent('dragOverAnimationCapture');
|
|
1905
|
+
|
|
1906
|
+
_this.captureAnimationState();
|
|
1907
|
+
|
|
1908
|
+
if (_this !== fromSortable) {
|
|
1909
|
+
fromSortable.captureAnimationState();
|
|
1910
|
+
}
|
|
1911
|
+
} // Return invocation when dragEl is inserted (or completed)
|
|
1912
|
+
|
|
1913
|
+
|
|
1914
|
+
function completed(insertion) {
|
|
1915
|
+
dragOverEvent('dragOverCompleted', {
|
|
1916
|
+
insertion: insertion
|
|
1917
|
+
});
|
|
1918
|
+
|
|
1919
|
+
if (insertion) {
|
|
1920
|
+
// Clones must be hidden before folding animation to capture dragRectAbsolute properly
|
|
1921
|
+
if (isOwner) {
|
|
1922
|
+
activeSortable._hideClone();
|
|
1923
|
+
} else {
|
|
1924
|
+
activeSortable._showClone(_this);
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
if (_this !== fromSortable) {
|
|
1928
|
+
// Set ghost class to new sortable's ghost class
|
|
1929
|
+
toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);
|
|
1930
|
+
toggleClass(dragEl, options.ghostClass, true);
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
if (putSortable !== _this && _this !== Sortable.active) {
|
|
1934
|
+
putSortable = _this;
|
|
1935
|
+
} else if (_this === Sortable.active && putSortable) {
|
|
1936
|
+
putSortable = null;
|
|
1937
|
+
} // Animation
|
|
1938
|
+
|
|
1939
|
+
|
|
1940
|
+
if (fromSortable === _this) {
|
|
1941
|
+
_this._ignoreWhileAnimating = target;
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
_this.animateAll(function () {
|
|
1945
|
+
dragOverEvent('dragOverAnimationComplete');
|
|
1946
|
+
_this._ignoreWhileAnimating = null;
|
|
1947
|
+
});
|
|
1948
|
+
|
|
1949
|
+
if (_this !== fromSortable) {
|
|
1950
|
+
fromSortable.animateAll();
|
|
1951
|
+
fromSortable._ignoreWhileAnimating = null;
|
|
1952
|
+
}
|
|
1953
|
+
} // Null lastTarget if it is not inside a previously swapped element
|
|
1954
|
+
|
|
1955
|
+
|
|
1956
|
+
if (target === dragEl && !dragEl.animated || target === el && !target.animated) {
|
|
1957
|
+
lastTarget = null;
|
|
1958
|
+
} // no bubbling and not fallback
|
|
1959
|
+
|
|
1960
|
+
|
|
1961
|
+
if (!options.dragoverBubble && !evt.rootEl && target !== document) {
|
|
1962
|
+
dragEl.parentNode[expando]._isOutsideThisEl(evt.target); // Do not detect for empty insert if already inserted
|
|
1963
|
+
|
|
1964
|
+
|
|
1965
|
+
!insertion && nearestEmptyInsertDetectEvent(evt);
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
!options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();
|
|
1969
|
+
return completedFired = true;
|
|
1970
|
+
} // Call when dragEl has been inserted
|
|
1971
|
+
|
|
1972
|
+
|
|
1973
|
+
function changed() {
|
|
1974
|
+
newIndex = index(dragEl);
|
|
1975
|
+
newDraggableIndex = index(dragEl, options.draggable);
|
|
1976
|
+
|
|
1977
|
+
_dispatchEvent({
|
|
1978
|
+
sortable: _this,
|
|
1979
|
+
name: 'change',
|
|
1980
|
+
toEl: el,
|
|
1981
|
+
newIndex: newIndex,
|
|
1982
|
+
newDraggableIndex: newDraggableIndex,
|
|
1983
|
+
originalEvent: evt
|
|
1984
|
+
});
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
if (evt.preventDefault !== void 0) {
|
|
1988
|
+
evt.cancelable && evt.preventDefault();
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
target = closest(target, options.draggable, el, true);
|
|
1992
|
+
dragOverEvent('dragOver');
|
|
1993
|
+
if (Sortable.eventCanceled) return completedFired;
|
|
1994
|
+
|
|
1995
|
+
if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {
|
|
1996
|
+
return completed(false);
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
ignoreNextClick = false;
|
|
2000
|
+
|
|
2001
|
+
if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) // Reverting item into the original list
|
|
2002
|
+
: putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {
|
|
2003
|
+
vertical = this._getDirection(evt, target) === 'vertical';
|
|
2004
|
+
dragRect = getRect(dragEl);
|
|
2005
|
+
dragOverEvent('dragOverValid');
|
|
2006
|
+
if (Sortable.eventCanceled) return completedFired;
|
|
2007
|
+
|
|
2008
|
+
if (revert) {
|
|
2009
|
+
parentEl = rootEl; // actualization
|
|
2010
|
+
|
|
2011
|
+
capture();
|
|
2012
|
+
|
|
2013
|
+
this._hideClone();
|
|
2014
|
+
|
|
2015
|
+
dragOverEvent('revert');
|
|
2016
|
+
|
|
2017
|
+
if (!Sortable.eventCanceled) {
|
|
2018
|
+
if (nextEl) {
|
|
2019
|
+
rootEl.insertBefore(dragEl, nextEl);
|
|
2020
|
+
} else {
|
|
2021
|
+
rootEl.appendChild(dragEl);
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
return completed(true);
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
var elLastChild = lastChild(el, options.draggable);
|
|
2029
|
+
|
|
2030
|
+
if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {
|
|
2031
|
+
// Insert to end of list
|
|
2032
|
+
// If already at end of list: Do not insert
|
|
2033
|
+
if (elLastChild === dragEl) {
|
|
2034
|
+
return completed(false);
|
|
2035
|
+
} // if there is a last element, it is the target
|
|
2036
|
+
|
|
2037
|
+
|
|
2038
|
+
if (elLastChild && el === evt.target) {
|
|
2039
|
+
target = elLastChild;
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
if (target) {
|
|
2043
|
+
targetRect = getRect(target);
|
|
2044
|
+
}
|
|
2045
|
+
|
|
2046
|
+
if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
|
|
2047
|
+
capture();
|
|
2048
|
+
|
|
2049
|
+
if (elLastChild && elLastChild.nextSibling) {
|
|
2050
|
+
// the last draggable element is not the last node
|
|
2051
|
+
el.insertBefore(dragEl, elLastChild.nextSibling);
|
|
2052
|
+
} else {
|
|
2053
|
+
el.appendChild(dragEl);
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
parentEl = el; // actualization
|
|
2057
|
+
|
|
2058
|
+
changed();
|
|
2059
|
+
return completed(true);
|
|
2060
|
+
}
|
|
2061
|
+
} else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {
|
|
2062
|
+
// Insert to start of list
|
|
2063
|
+
var firstChild = getChild(el, 0, options, true);
|
|
2064
|
+
|
|
2065
|
+
if (firstChild === dragEl) {
|
|
2066
|
+
return completed(false);
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
target = firstChild;
|
|
2070
|
+
targetRect = getRect(target);
|
|
2071
|
+
|
|
2072
|
+
if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {
|
|
2073
|
+
capture();
|
|
2074
|
+
el.insertBefore(dragEl, firstChild);
|
|
2075
|
+
parentEl = el; // actualization
|
|
2076
|
+
|
|
2077
|
+
changed();
|
|
2078
|
+
return completed(true);
|
|
2079
|
+
}
|
|
2080
|
+
} else if (target.parentNode === el) {
|
|
2081
|
+
targetRect = getRect(target);
|
|
2082
|
+
var direction = 0,
|
|
2083
|
+
targetBeforeFirstSwap,
|
|
2084
|
+
differentLevel = dragEl.parentNode !== el,
|
|
2085
|
+
differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical),
|
|
2086
|
+
side1 = vertical ? 'top' : 'left',
|
|
2087
|
+
scrolledPastTop = isScrolledPast(target, 'top', 'top') || isScrolledPast(dragEl, 'top', 'top'),
|
|
2088
|
+
scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;
|
|
2089
|
+
|
|
2090
|
+
if (lastTarget !== target) {
|
|
2091
|
+
targetBeforeFirstSwap = targetRect[side1];
|
|
2092
|
+
pastFirstInvertThresh = false;
|
|
2093
|
+
isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);
|
|
2097
|
+
var sibling;
|
|
2098
|
+
|
|
2099
|
+
if (direction !== 0) {
|
|
2100
|
+
// Check if target is beside dragEl in respective direction (ignoring hidden elements)
|
|
2101
|
+
var dragIndex = index(dragEl);
|
|
2102
|
+
|
|
2103
|
+
do {
|
|
2104
|
+
dragIndex -= direction;
|
|
2105
|
+
sibling = parentEl.children[dragIndex];
|
|
2106
|
+
} while (sibling && (css(sibling, 'display') === 'none' || sibling === ghostEl));
|
|
2107
|
+
} // If dragEl is already beside target: Do not insert
|
|
2108
|
+
|
|
2109
|
+
|
|
2110
|
+
if (direction === 0 || sibling === target) {
|
|
2111
|
+
return completed(false);
|
|
2112
|
+
}
|
|
2113
|
+
|
|
2114
|
+
lastTarget = target;
|
|
2115
|
+
lastDirection = direction;
|
|
2116
|
+
var nextSibling = target.nextElementSibling,
|
|
2117
|
+
after = false;
|
|
2118
|
+
after = direction === 1;
|
|
2119
|
+
|
|
2120
|
+
var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);
|
|
2121
|
+
|
|
2122
|
+
if (moveVector !== false) {
|
|
2123
|
+
if (moveVector === 1 || moveVector === -1) {
|
|
2124
|
+
after = moveVector === 1;
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
_silent = true;
|
|
2128
|
+
setTimeout(_unsilent, 30);
|
|
2129
|
+
capture();
|
|
2130
|
+
|
|
2131
|
+
if (after && !nextSibling) {
|
|
2132
|
+
el.appendChild(dragEl);
|
|
2133
|
+
} else {
|
|
2134
|
+
target.parentNode.insertBefore(dragEl, after ? nextSibling : target);
|
|
2135
|
+
} // Undo chrome's scroll adjustment (has no effect on other browsers)
|
|
2136
|
+
|
|
2137
|
+
|
|
2138
|
+
if (scrolledPastTop) {
|
|
2139
|
+
scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2142
|
+
parentEl = dragEl.parentNode; // actualization
|
|
2143
|
+
// must be done before animation
|
|
2144
|
+
|
|
2145
|
+
if (targetBeforeFirstSwap !== undefined && !isCircumstantialInvert) {
|
|
2146
|
+
targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
changed();
|
|
2150
|
+
return completed(true);
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
if (el.contains(dragEl)) {
|
|
2155
|
+
return completed(false);
|
|
2156
|
+
}
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
return false;
|
|
2160
|
+
},
|
|
2161
|
+
_ignoreWhileAnimating: null,
|
|
2162
|
+
_offMoveEvents: function _offMoveEvents() {
|
|
2163
|
+
off(document, 'mousemove', this._onTouchMove);
|
|
2164
|
+
off(document, 'touchmove', this._onTouchMove);
|
|
2165
|
+
off(document, 'pointermove', this._onTouchMove);
|
|
2166
|
+
off(document, 'dragover', nearestEmptyInsertDetectEvent);
|
|
2167
|
+
off(document, 'mousemove', nearestEmptyInsertDetectEvent);
|
|
2168
|
+
off(document, 'touchmove', nearestEmptyInsertDetectEvent);
|
|
2169
|
+
},
|
|
2170
|
+
_offUpEvents: function _offUpEvents() {
|
|
2171
|
+
var ownerDocument = this.el.ownerDocument;
|
|
2172
|
+
off(ownerDocument, 'mouseup', this._onDrop);
|
|
2173
|
+
off(ownerDocument, 'touchend', this._onDrop);
|
|
2174
|
+
off(ownerDocument, 'pointerup', this._onDrop);
|
|
2175
|
+
off(ownerDocument, 'touchcancel', this._onDrop);
|
|
2176
|
+
off(document, 'selectstart', this);
|
|
2177
|
+
},
|
|
2178
|
+
_onDrop: function _onDrop(
|
|
2179
|
+
/**Event*/
|
|
2180
|
+
evt) {
|
|
2181
|
+
var el = this.el,
|
|
2182
|
+
options = this.options; // Get the index of the dragged element within its parent
|
|
2183
|
+
|
|
2184
|
+
newIndex = index(dragEl);
|
|
2185
|
+
newDraggableIndex = index(dragEl, options.draggable);
|
|
2186
|
+
pluginEvent('drop', this, {
|
|
2187
|
+
evt: evt
|
|
2188
|
+
});
|
|
2189
|
+
parentEl = dragEl && dragEl.parentNode; // Get again after plugin event
|
|
2190
|
+
|
|
2191
|
+
newIndex = index(dragEl);
|
|
2192
|
+
newDraggableIndex = index(dragEl, options.draggable);
|
|
2193
|
+
|
|
2194
|
+
if (Sortable.eventCanceled) {
|
|
2195
|
+
this._nulling();
|
|
2196
|
+
|
|
2197
|
+
return;
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
awaitingDragStarted = false;
|
|
2201
|
+
isCircumstantialInvert = false;
|
|
2202
|
+
pastFirstInvertThresh = false;
|
|
2203
|
+
clearInterval(this._loopId);
|
|
2204
|
+
clearTimeout(this._dragStartTimer);
|
|
2205
|
+
|
|
2206
|
+
_cancelNextTick(this.cloneId);
|
|
2207
|
+
|
|
2208
|
+
_cancelNextTick(this._dragStartId); // Unbind events
|
|
2209
|
+
|
|
2210
|
+
|
|
2211
|
+
if (this.nativeDraggable) {
|
|
2212
|
+
off(document, 'drop', this);
|
|
2213
|
+
off(el, 'dragstart', this._onDragStart);
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
this._offMoveEvents();
|
|
2217
|
+
|
|
2218
|
+
this._offUpEvents();
|
|
2219
|
+
|
|
2220
|
+
if (Safari) {
|
|
2221
|
+
css(document.body, 'user-select', '');
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
css(dragEl, 'transform', '');
|
|
2225
|
+
|
|
2226
|
+
if (evt) {
|
|
2227
|
+
if (moved) {
|
|
2228
|
+
evt.cancelable && evt.preventDefault();
|
|
2229
|
+
!options.dropBubble && evt.stopPropagation();
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);
|
|
2233
|
+
|
|
2234
|
+
if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {
|
|
2235
|
+
// Remove clone(s)
|
|
2236
|
+
cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);
|
|
2237
|
+
}
|
|
2238
|
+
|
|
2239
|
+
if (dragEl) {
|
|
2240
|
+
if (this.nativeDraggable) {
|
|
2241
|
+
off(dragEl, 'dragend', this);
|
|
2242
|
+
}
|
|
2243
|
+
|
|
2244
|
+
_disableDraggable(dragEl);
|
|
2245
|
+
|
|
2246
|
+
dragEl.style['will-change'] = ''; // Remove classes
|
|
2247
|
+
// ghostClass is added in dragStarted
|
|
2248
|
+
|
|
2249
|
+
if (moved && !awaitingDragStarted) {
|
|
2250
|
+
toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
toggleClass(dragEl, this.options.chosenClass, false); // Drag stop event
|
|
2254
|
+
|
|
2255
|
+
_dispatchEvent({
|
|
2256
|
+
sortable: this,
|
|
2257
|
+
name: 'unchoose',
|
|
2258
|
+
toEl: parentEl,
|
|
2259
|
+
newIndex: null,
|
|
2260
|
+
newDraggableIndex: null,
|
|
2261
|
+
originalEvent: evt
|
|
2262
|
+
});
|
|
2263
|
+
|
|
2264
|
+
if (rootEl !== parentEl) {
|
|
2265
|
+
if (newIndex >= 0) {
|
|
2266
|
+
// Add event
|
|
2267
|
+
_dispatchEvent({
|
|
2268
|
+
rootEl: parentEl,
|
|
2269
|
+
name: 'add',
|
|
2270
|
+
toEl: parentEl,
|
|
2271
|
+
fromEl: rootEl,
|
|
2272
|
+
originalEvent: evt
|
|
2273
|
+
}); // Remove event
|
|
2274
|
+
|
|
2275
|
+
|
|
2276
|
+
_dispatchEvent({
|
|
2277
|
+
sortable: this,
|
|
2278
|
+
name: 'remove',
|
|
2279
|
+
toEl: parentEl,
|
|
2280
|
+
originalEvent: evt
|
|
2281
|
+
}); // drag from one list and drop into another
|
|
2282
|
+
|
|
2283
|
+
|
|
2284
|
+
_dispatchEvent({
|
|
2285
|
+
rootEl: parentEl,
|
|
2286
|
+
name: 'sort',
|
|
2287
|
+
toEl: parentEl,
|
|
2288
|
+
fromEl: rootEl,
|
|
2289
|
+
originalEvent: evt
|
|
2290
|
+
});
|
|
2291
|
+
|
|
2292
|
+
_dispatchEvent({
|
|
2293
|
+
sortable: this,
|
|
2294
|
+
name: 'sort',
|
|
2295
|
+
toEl: parentEl,
|
|
2296
|
+
originalEvent: evt
|
|
2297
|
+
});
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
putSortable && putSortable.save();
|
|
2301
|
+
} else {
|
|
2302
|
+
if (newIndex !== oldIndex) {
|
|
2303
|
+
if (newIndex >= 0) {
|
|
2304
|
+
// drag & drop within the same list
|
|
2305
|
+
_dispatchEvent({
|
|
2306
|
+
sortable: this,
|
|
2307
|
+
name: 'update',
|
|
2308
|
+
toEl: parentEl,
|
|
2309
|
+
originalEvent: evt
|
|
2310
|
+
});
|
|
2311
|
+
|
|
2312
|
+
_dispatchEvent({
|
|
2313
|
+
sortable: this,
|
|
2314
|
+
name: 'sort',
|
|
2315
|
+
toEl: parentEl,
|
|
2316
|
+
originalEvent: evt
|
|
2317
|
+
});
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
if (Sortable.active) {
|
|
2323
|
+
/* jshint eqnull:true */
|
|
2324
|
+
if (newIndex == null || newIndex === -1) {
|
|
2325
|
+
newIndex = oldIndex;
|
|
2326
|
+
newDraggableIndex = oldDraggableIndex;
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2329
|
+
_dispatchEvent({
|
|
2330
|
+
sortable: this,
|
|
2331
|
+
name: 'end',
|
|
2332
|
+
toEl: parentEl,
|
|
2333
|
+
originalEvent: evt
|
|
2334
|
+
}); // Save sorting
|
|
2335
|
+
|
|
2336
|
+
|
|
2337
|
+
this.save();
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2341
|
+
|
|
2342
|
+
this._nulling();
|
|
2343
|
+
},
|
|
2344
|
+
_nulling: function _nulling() {
|
|
2345
|
+
pluginEvent('nulling', this);
|
|
2346
|
+
rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;
|
|
2347
|
+
savedInputChecked.forEach(function (el) {
|
|
2348
|
+
el.checked = true;
|
|
2349
|
+
});
|
|
2350
|
+
savedInputChecked.length = lastDx = lastDy = 0;
|
|
2351
|
+
},
|
|
2352
|
+
handleEvent: function handleEvent(
|
|
2353
|
+
/**Event*/
|
|
2354
|
+
evt) {
|
|
2355
|
+
switch (evt.type) {
|
|
2356
|
+
case 'drop':
|
|
2357
|
+
case 'dragend':
|
|
2358
|
+
this._onDrop(evt);
|
|
2359
|
+
|
|
2360
|
+
break;
|
|
2361
|
+
|
|
2362
|
+
case 'dragenter':
|
|
2363
|
+
case 'dragover':
|
|
2364
|
+
if (dragEl) {
|
|
2365
|
+
this._onDragOver(evt);
|
|
2366
|
+
|
|
2367
|
+
_globalDragOver(evt);
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
break;
|
|
2371
|
+
|
|
2372
|
+
case 'selectstart':
|
|
2373
|
+
evt.preventDefault();
|
|
2374
|
+
break;
|
|
2375
|
+
}
|
|
2376
|
+
},
|
|
2377
|
+
|
|
2378
|
+
/**
|
|
2379
|
+
* Serializes the item into an array of string.
|
|
2380
|
+
* @returns {String[]}
|
|
2381
|
+
*/
|
|
2382
|
+
toArray: function toArray() {
|
|
2383
|
+
var order = [],
|
|
2384
|
+
el,
|
|
2385
|
+
children = this.el.children,
|
|
2386
|
+
i = 0,
|
|
2387
|
+
n = children.length,
|
|
2388
|
+
options = this.options;
|
|
2389
|
+
|
|
2390
|
+
for (; i < n; i++) {
|
|
2391
|
+
el = children[i];
|
|
2392
|
+
|
|
2393
|
+
if (closest(el, options.draggable, this.el, false)) {
|
|
2394
|
+
order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2398
|
+
return order;
|
|
2399
|
+
},
|
|
2400
|
+
|
|
2401
|
+
/**
|
|
2402
|
+
* Sorts the elements according to the array.
|
|
2403
|
+
* @param {String[]} order order of the items
|
|
2404
|
+
*/
|
|
2405
|
+
sort: function sort(order, useAnimation) {
|
|
2406
|
+
var items = {},
|
|
2407
|
+
rootEl = this.el;
|
|
2408
|
+
this.toArray().forEach(function (id, i) {
|
|
2409
|
+
var el = rootEl.children[i];
|
|
2410
|
+
|
|
2411
|
+
if (closest(el, this.options.draggable, rootEl, false)) {
|
|
2412
|
+
items[id] = el;
|
|
2413
|
+
}
|
|
2414
|
+
}, this);
|
|
2415
|
+
useAnimation && this.captureAnimationState();
|
|
2416
|
+
order.forEach(function (id) {
|
|
2417
|
+
if (items[id]) {
|
|
2418
|
+
rootEl.removeChild(items[id]);
|
|
2419
|
+
rootEl.appendChild(items[id]);
|
|
2420
|
+
}
|
|
2421
|
+
});
|
|
2422
|
+
useAnimation && this.animateAll();
|
|
2423
|
+
},
|
|
2424
|
+
|
|
2425
|
+
/**
|
|
2426
|
+
* Save the current sorting
|
|
2427
|
+
*/
|
|
2428
|
+
save: function save() {
|
|
2429
|
+
var store = this.options.store;
|
|
2430
|
+
store && store.set && store.set(this);
|
|
2431
|
+
},
|
|
2432
|
+
|
|
2433
|
+
/**
|
|
2434
|
+
* 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.
|
|
2435
|
+
* @param {HTMLElement} el
|
|
2436
|
+
* @param {String} [selector] default: `options.draggable`
|
|
2437
|
+
* @returns {HTMLElement|null}
|
|
2438
|
+
*/
|
|
2439
|
+
closest: function closest$1(el, selector) {
|
|
2440
|
+
return closest(el, selector || this.options.draggable, this.el, false);
|
|
2441
|
+
},
|
|
2442
|
+
|
|
2443
|
+
/**
|
|
2444
|
+
* Set/get option
|
|
2445
|
+
* @param {string} name
|
|
2446
|
+
* @param {*} [value]
|
|
2447
|
+
* @returns {*}
|
|
2448
|
+
*/
|
|
2449
|
+
option: function option(name, value) {
|
|
2450
|
+
var options = this.options;
|
|
2451
|
+
|
|
2452
|
+
if (value === void 0) {
|
|
2453
|
+
return options[name];
|
|
2454
|
+
} else {
|
|
2455
|
+
var modifiedValue = PluginManager.modifyOption(this, name, value);
|
|
2456
|
+
|
|
2457
|
+
if (typeof modifiedValue !== 'undefined') {
|
|
2458
|
+
options[name] = modifiedValue;
|
|
2459
|
+
} else {
|
|
2460
|
+
options[name] = value;
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2463
|
+
if (name === 'group') {
|
|
2464
|
+
_prepareGroup(options);
|
|
2465
|
+
}
|
|
2466
|
+
}
|
|
2467
|
+
},
|
|
2468
|
+
|
|
2469
|
+
/**
|
|
2470
|
+
* Destroy
|
|
2471
|
+
*/
|
|
2472
|
+
destroy: function destroy() {
|
|
2473
|
+
pluginEvent('destroy', this);
|
|
2474
|
+
var el = this.el;
|
|
2475
|
+
el[expando] = null;
|
|
2476
|
+
off(el, 'mousedown', this._onTapStart);
|
|
2477
|
+
off(el, 'touchstart', this._onTapStart);
|
|
2478
|
+
off(el, 'pointerdown', this._onTapStart);
|
|
2479
|
+
|
|
2480
|
+
if (this.nativeDraggable) {
|
|
2481
|
+
off(el, 'dragover', this);
|
|
2482
|
+
off(el, 'dragenter', this);
|
|
2483
|
+
} // Remove draggable attributes
|
|
2484
|
+
|
|
2485
|
+
|
|
2486
|
+
Array.prototype.forEach.call(el.querySelectorAll('[draggable]'), function (el) {
|
|
2487
|
+
el.removeAttribute('draggable');
|
|
2488
|
+
});
|
|
2489
|
+
|
|
2490
|
+
this._onDrop();
|
|
2491
|
+
|
|
2492
|
+
this._disableDelayedDragEvents();
|
|
2493
|
+
|
|
2494
|
+
sortables.splice(sortables.indexOf(this.el), 1);
|
|
2495
|
+
this.el = el = null;
|
|
2496
|
+
},
|
|
2497
|
+
_hideClone: function _hideClone() {
|
|
2498
|
+
if (!cloneHidden) {
|
|
2499
|
+
pluginEvent('hideClone', this);
|
|
2500
|
+
if (Sortable.eventCanceled) return;
|
|
2501
|
+
css(cloneEl, 'display', 'none');
|
|
2502
|
+
|
|
2503
|
+
if (this.options.removeCloneOnHide && cloneEl.parentNode) {
|
|
2504
|
+
cloneEl.parentNode.removeChild(cloneEl);
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
cloneHidden = true;
|
|
2508
|
+
}
|
|
2509
|
+
},
|
|
2510
|
+
_showClone: function _showClone(putSortable) {
|
|
2511
|
+
if (putSortable.lastPutMode !== 'clone') {
|
|
2512
|
+
this._hideClone();
|
|
2513
|
+
|
|
2514
|
+
return;
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
if (cloneHidden) {
|
|
2518
|
+
pluginEvent('showClone', this);
|
|
2519
|
+
if (Sortable.eventCanceled) return; // show clone at dragEl or original position
|
|
2520
|
+
|
|
2521
|
+
if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {
|
|
2522
|
+
rootEl.insertBefore(cloneEl, dragEl);
|
|
2523
|
+
} else if (nextEl) {
|
|
2524
|
+
rootEl.insertBefore(cloneEl, nextEl);
|
|
2525
|
+
} else {
|
|
2526
|
+
rootEl.appendChild(cloneEl);
|
|
2527
|
+
}
|
|
2528
|
+
|
|
2529
|
+
if (this.options.group.revertClone) {
|
|
2530
|
+
this.animate(dragEl, cloneEl);
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2533
|
+
css(cloneEl, 'display', '');
|
|
2534
|
+
cloneHidden = false;
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2537
|
+
};
|
|
2538
|
+
|
|
2539
|
+
function _globalDragOver(
|
|
2540
|
+
/**Event*/
|
|
2541
|
+
evt) {
|
|
2542
|
+
if (evt.dataTransfer) {
|
|
2543
|
+
evt.dataTransfer.dropEffect = 'move';
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2546
|
+
evt.cancelable && evt.preventDefault();
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
function _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {
|
|
2550
|
+
var evt,
|
|
2551
|
+
sortable = fromEl[expando],
|
|
2552
|
+
onMoveFn = sortable.options.onMove,
|
|
2553
|
+
retVal; // Support for new CustomEvent feature
|
|
2554
|
+
|
|
2555
|
+
if (window.CustomEvent && !IE11OrLess && !Edge) {
|
|
2556
|
+
evt = new CustomEvent('move', {
|
|
2557
|
+
bubbles: true,
|
|
2558
|
+
cancelable: true
|
|
2559
|
+
});
|
|
2560
|
+
} else {
|
|
2561
|
+
evt = document.createEvent('Event');
|
|
2562
|
+
evt.initEvent('move', true, true);
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2565
|
+
evt.to = toEl;
|
|
2566
|
+
evt.from = fromEl;
|
|
2567
|
+
evt.dragged = dragEl;
|
|
2568
|
+
evt.draggedRect = dragRect;
|
|
2569
|
+
evt.related = targetEl || toEl;
|
|
2570
|
+
evt.relatedRect = targetRect || getRect(toEl);
|
|
2571
|
+
evt.willInsertAfter = willInsertAfter;
|
|
2572
|
+
evt.originalEvent = originalEvent;
|
|
2573
|
+
fromEl.dispatchEvent(evt);
|
|
2574
|
+
|
|
2575
|
+
if (onMoveFn) {
|
|
2576
|
+
retVal = onMoveFn.call(sortable, evt, originalEvent);
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
return retVal;
|
|
2580
|
+
}
|
|
2581
|
+
|
|
2582
|
+
function _disableDraggable(el) {
|
|
2583
|
+
el.draggable = false;
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2586
|
+
function _unsilent() {
|
|
2587
|
+
_silent = false;
|
|
2588
|
+
}
|
|
2589
|
+
|
|
2590
|
+
function _ghostIsFirst(evt, vertical, sortable) {
|
|
2591
|
+
var rect = getRect(getChild(sortable.el, 0, sortable.options, true));
|
|
2592
|
+
var spacer = 10;
|
|
2593
|
+
return vertical ? evt.clientX < rect.left - spacer || evt.clientY < rect.top && evt.clientX < rect.right : evt.clientY < rect.top - spacer || evt.clientY < rect.bottom && evt.clientX < rect.left;
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
function _ghostIsLast(evt, vertical, sortable) {
|
|
2597
|
+
var rect = getRect(lastChild(sortable.el, sortable.options.draggable));
|
|
2598
|
+
var spacer = 10;
|
|
2599
|
+
return vertical ? evt.clientX > rect.right + spacer || evt.clientX <= rect.right && evt.clientY > rect.bottom && evt.clientX >= rect.left : evt.clientX > rect.right && evt.clientY > rect.top || evt.clientX <= rect.right && evt.clientY > rect.bottom + spacer;
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2602
|
+
function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {
|
|
2603
|
+
var mouseOnAxis = vertical ? evt.clientY : evt.clientX,
|
|
2604
|
+
targetLength = vertical ? targetRect.height : targetRect.width,
|
|
2605
|
+
targetS1 = vertical ? targetRect.top : targetRect.left,
|
|
2606
|
+
targetS2 = vertical ? targetRect.bottom : targetRect.right,
|
|
2607
|
+
invert = false;
|
|
2608
|
+
|
|
2609
|
+
if (!invertSwap) {
|
|
2610
|
+
// Never invert or create dragEl shadow when target movemenet causes mouse to move past the end of regular swapThreshold
|
|
2611
|
+
if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {
|
|
2612
|
+
// multiplied only by swapThreshold because mouse will already be inside target by (1 - threshold) * targetLength / 2
|
|
2613
|
+
// check if past first invert threshold on side opposite of lastDirection
|
|
2614
|
+
if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {
|
|
2615
|
+
// past first invert threshold, do not restrict inverted threshold to dragEl shadow
|
|
2616
|
+
pastFirstInvertThresh = true;
|
|
2617
|
+
}
|
|
2618
|
+
|
|
2619
|
+
if (!pastFirstInvertThresh) {
|
|
2620
|
+
// dragEl shadow (target move distance shadow)
|
|
2621
|
+
if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance // over dragEl shadow
|
|
2622
|
+
: mouseOnAxis > targetS2 - targetMoveDistance) {
|
|
2623
|
+
return -lastDirection;
|
|
2624
|
+
}
|
|
2625
|
+
} else {
|
|
2626
|
+
invert = true;
|
|
2627
|
+
}
|
|
2628
|
+
} else {
|
|
2629
|
+
// Regular
|
|
2630
|
+
if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {
|
|
2631
|
+
return _getInsertDirection(target);
|
|
2632
|
+
}
|
|
2633
|
+
}
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2636
|
+
invert = invert || invertSwap;
|
|
2637
|
+
|
|
2638
|
+
if (invert) {
|
|
2639
|
+
// Invert of regular
|
|
2640
|
+
if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {
|
|
2641
|
+
return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;
|
|
2642
|
+
}
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
|
+
return 0;
|
|
2646
|
+
}
|
|
2647
|
+
/**
|
|
2648
|
+
* Gets the direction dragEl must be swapped relative to target in order to make it
|
|
2649
|
+
* seem that dragEl has been "inserted" into that element's position
|
|
2650
|
+
* @param {HTMLElement} target The target whose position dragEl is being inserted at
|
|
2651
|
+
* @return {Number} Direction dragEl must be swapped
|
|
2652
|
+
*/
|
|
2653
|
+
|
|
2654
|
+
|
|
2655
|
+
function _getInsertDirection(target) {
|
|
2656
|
+
if (index(dragEl) < index(target)) {
|
|
2657
|
+
return 1;
|
|
2658
|
+
} else {
|
|
2659
|
+
return -1;
|
|
2660
|
+
}
|
|
2661
|
+
}
|
|
2662
|
+
/**
|
|
2663
|
+
* Generate id
|
|
2664
|
+
* @param {HTMLElement} el
|
|
2665
|
+
* @returns {String}
|
|
2666
|
+
* @private
|
|
2667
|
+
*/
|
|
2668
|
+
|
|
2669
|
+
|
|
2670
|
+
function _generateId(el) {
|
|
2671
|
+
var str = el.tagName + el.className + el.src + el.href + el.textContent,
|
|
2672
|
+
i = str.length,
|
|
2673
|
+
sum = 0;
|
|
2674
|
+
|
|
2675
|
+
while (i--) {
|
|
2676
|
+
sum += str.charCodeAt(i);
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2679
|
+
return sum.toString(36);
|
|
2680
|
+
}
|
|
2681
|
+
|
|
2682
|
+
function _saveInputCheckedState(root) {
|
|
2683
|
+
savedInputChecked.length = 0;
|
|
2684
|
+
var inputs = root.getElementsByTagName('input');
|
|
2685
|
+
var idx = inputs.length;
|
|
2686
|
+
|
|
2687
|
+
while (idx--) {
|
|
2688
|
+
var el = inputs[idx];
|
|
2689
|
+
el.checked && savedInputChecked.push(el);
|
|
2690
|
+
}
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2693
|
+
function _nextTick(fn) {
|
|
2694
|
+
return setTimeout(fn, 0);
|
|
2695
|
+
}
|
|
2696
|
+
|
|
2697
|
+
function _cancelNextTick(id) {
|
|
2698
|
+
return clearTimeout(id);
|
|
2699
|
+
} // Fixed #973:
|
|
2700
|
+
|
|
2701
|
+
|
|
2702
|
+
if (documentExists) {
|
|
2703
|
+
on(document, 'touchmove', function (evt) {
|
|
2704
|
+
if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {
|
|
2705
|
+
evt.preventDefault();
|
|
2706
|
+
}
|
|
2707
|
+
});
|
|
2708
|
+
} // Export utils
|
|
2709
|
+
|
|
2710
|
+
|
|
2711
|
+
Sortable.utils = {
|
|
2712
|
+
on: on,
|
|
2713
|
+
off: off,
|
|
2714
|
+
css: css,
|
|
2715
|
+
find: find,
|
|
2716
|
+
is: function is(el, selector) {
|
|
2717
|
+
return !!closest(el, selector, el, false);
|
|
2718
|
+
},
|
|
2719
|
+
extend: extend,
|
|
2720
|
+
throttle: throttle,
|
|
2721
|
+
closest: closest,
|
|
2722
|
+
toggleClass: toggleClass,
|
|
2723
|
+
clone: clone,
|
|
2724
|
+
index: index,
|
|
2725
|
+
nextTick: _nextTick,
|
|
2726
|
+
cancelNextTick: _cancelNextTick,
|
|
2727
|
+
detectDirection: _detectDirection,
|
|
2728
|
+
getChild: getChild
|
|
2729
|
+
};
|
|
2730
|
+
/**
|
|
2731
|
+
* Get the Sortable instance of an element
|
|
2732
|
+
* @param {HTMLElement} element The element
|
|
2733
|
+
* @return {Sortable|undefined} The instance of Sortable
|
|
2734
|
+
*/
|
|
2735
|
+
|
|
2736
|
+
Sortable.get = function (element) {
|
|
2737
|
+
return element[expando];
|
|
2738
|
+
};
|
|
2739
|
+
/**
|
|
2740
|
+
* Mount a plugin to Sortable
|
|
2741
|
+
* @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
|
|
2742
|
+
*/
|
|
2743
|
+
|
|
2744
|
+
|
|
2745
|
+
Sortable.mount = function () {
|
|
2746
|
+
for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2747
|
+
plugins[_key] = arguments[_key];
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
if (plugins[0].constructor === Array) plugins = plugins[0];
|
|
2751
|
+
plugins.forEach(function (plugin) {
|
|
2752
|
+
if (!plugin.prototype || !plugin.prototype.constructor) {
|
|
2753
|
+
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(plugin));
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);
|
|
2757
|
+
PluginManager.mount(plugin);
|
|
2758
|
+
});
|
|
2759
|
+
};
|
|
2760
|
+
/**
|
|
2761
|
+
* Create sortable instance
|
|
2762
|
+
* @param {HTMLElement} el
|
|
2763
|
+
* @param {Object} [options]
|
|
2764
|
+
*/
|
|
2765
|
+
|
|
2766
|
+
|
|
2767
|
+
Sortable.create = function (el, options) {
|
|
2768
|
+
return new Sortable(el, options);
|
|
2769
|
+
}; // Export
|
|
2770
|
+
|
|
2771
|
+
|
|
2772
|
+
Sortable.version = version;
|
|
2773
|
+
|
|
2774
|
+
var autoScrolls = [],
|
|
2775
|
+
scrollEl,
|
|
2776
|
+
scrollRootEl,
|
|
2777
|
+
scrolling = false,
|
|
2778
|
+
lastAutoScrollX,
|
|
2779
|
+
lastAutoScrollY,
|
|
2780
|
+
touchEvt$1,
|
|
2781
|
+
pointerElemChangedInterval;
|
|
2782
|
+
|
|
2783
|
+
function AutoScrollPlugin() {
|
|
2784
|
+
function AutoScroll() {
|
|
2785
|
+
this.defaults = {
|
|
2786
|
+
scroll: true,
|
|
2787
|
+
forceAutoScrollFallback: false,
|
|
2788
|
+
scrollSensitivity: 30,
|
|
2789
|
+
scrollSpeed: 10,
|
|
2790
|
+
bubbleScroll: true
|
|
2791
|
+
}; // Bind all private methods
|
|
2792
|
+
|
|
2793
|
+
for (var fn in this) {
|
|
2794
|
+
if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {
|
|
2795
|
+
this[fn] = this[fn].bind(this);
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2800
|
+
AutoScroll.prototype = {
|
|
2801
|
+
dragStarted: function dragStarted(_ref) {
|
|
2802
|
+
var originalEvent = _ref.originalEvent;
|
|
2803
|
+
|
|
2804
|
+
if (this.sortable.nativeDraggable) {
|
|
2805
|
+
on(document, 'dragover', this._handleAutoScroll);
|
|
2806
|
+
} else {
|
|
2807
|
+
if (this.options.supportPointer) {
|
|
2808
|
+
on(document, 'pointermove', this._handleFallbackAutoScroll);
|
|
2809
|
+
} else if (originalEvent.touches) {
|
|
2810
|
+
on(document, 'touchmove', this._handleFallbackAutoScroll);
|
|
2811
|
+
} else {
|
|
2812
|
+
on(document, 'mousemove', this._handleFallbackAutoScroll);
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
},
|
|
2816
|
+
dragOverCompleted: function dragOverCompleted(_ref2) {
|
|
2817
|
+
var originalEvent = _ref2.originalEvent;
|
|
2818
|
+
|
|
2819
|
+
// For when bubbling is canceled and using fallback (fallback 'touchmove' always reached)
|
|
2820
|
+
if (!this.options.dragOverBubble && !originalEvent.rootEl) {
|
|
2821
|
+
this._handleAutoScroll(originalEvent);
|
|
2822
|
+
}
|
|
2823
|
+
},
|
|
2824
|
+
drop: function drop() {
|
|
2825
|
+
if (this.sortable.nativeDraggable) {
|
|
2826
|
+
off(document, 'dragover', this._handleAutoScroll);
|
|
2827
|
+
} else {
|
|
2828
|
+
off(document, 'pointermove', this._handleFallbackAutoScroll);
|
|
2829
|
+
off(document, 'touchmove', this._handleFallbackAutoScroll);
|
|
2830
|
+
off(document, 'mousemove', this._handleFallbackAutoScroll);
|
|
2831
|
+
}
|
|
2832
|
+
|
|
2833
|
+
clearPointerElemChangedInterval();
|
|
2834
|
+
clearAutoScrolls();
|
|
2835
|
+
cancelThrottle();
|
|
2836
|
+
},
|
|
2837
|
+
nulling: function nulling() {
|
|
2838
|
+
touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;
|
|
2839
|
+
autoScrolls.length = 0;
|
|
2840
|
+
},
|
|
2841
|
+
_handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {
|
|
2842
|
+
this._handleAutoScroll(evt, true);
|
|
2843
|
+
},
|
|
2844
|
+
_handleAutoScroll: function _handleAutoScroll(evt, fallback) {
|
|
2845
|
+
var _this = this;
|
|
2846
|
+
|
|
2847
|
+
var x = (evt.touches ? evt.touches[0] : evt).clientX,
|
|
2848
|
+
y = (evt.touches ? evt.touches[0] : evt).clientY,
|
|
2849
|
+
elem = document.elementFromPoint(x, y);
|
|
2850
|
+
touchEvt$1 = evt; // IE does not seem to have native autoscroll,
|
|
2851
|
+
// Edge's autoscroll seems too conditional,
|
|
2852
|
+
// MACOS Safari does not have autoscroll,
|
|
2853
|
+
// Firefox and Chrome are good
|
|
2854
|
+
|
|
2855
|
+
if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {
|
|
2856
|
+
autoScroll(evt, this.options, elem, fallback); // Listener for pointer element change
|
|
2857
|
+
|
|
2858
|
+
var ogElemScroller = getParentAutoScrollElement(elem, true);
|
|
2859
|
+
|
|
2860
|
+
if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {
|
|
2861
|
+
pointerElemChangedInterval && clearPointerElemChangedInterval(); // Detect for pointer elem change, emulating native DnD behaviour
|
|
2862
|
+
|
|
2863
|
+
pointerElemChangedInterval = setInterval(function () {
|
|
2864
|
+
var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);
|
|
2865
|
+
|
|
2866
|
+
if (newElem !== ogElemScroller) {
|
|
2867
|
+
ogElemScroller = newElem;
|
|
2868
|
+
clearAutoScrolls();
|
|
2869
|
+
}
|
|
2870
|
+
|
|
2871
|
+
autoScroll(evt, _this.options, newElem, fallback);
|
|
2872
|
+
}, 10);
|
|
2873
|
+
lastAutoScrollX = x;
|
|
2874
|
+
lastAutoScrollY = y;
|
|
2875
|
+
}
|
|
2876
|
+
} else {
|
|
2877
|
+
// if DnD is enabled (and browser has good autoscrolling), first autoscroll will already scroll, so get parent autoscroll of first autoscroll
|
|
2878
|
+
if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {
|
|
2879
|
+
clearAutoScrolls();
|
|
2880
|
+
return;
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);
|
|
2884
|
+
}
|
|
2885
|
+
}
|
|
2886
|
+
};
|
|
2887
|
+
return _extends(AutoScroll, {
|
|
2888
|
+
pluginName: 'scroll',
|
|
2889
|
+
initializeByDefault: true
|
|
2890
|
+
});
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
function clearAutoScrolls() {
|
|
2894
|
+
autoScrolls.forEach(function (autoScroll) {
|
|
2895
|
+
clearInterval(autoScroll.pid);
|
|
2896
|
+
});
|
|
2897
|
+
autoScrolls = [];
|
|
2898
|
+
}
|
|
2899
|
+
|
|
2900
|
+
function clearPointerElemChangedInterval() {
|
|
2901
|
+
clearInterval(pointerElemChangedInterval);
|
|
2902
|
+
}
|
|
2903
|
+
|
|
2904
|
+
var autoScroll = throttle(function (evt, options, rootEl, isFallback) {
|
|
2905
|
+
// Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521
|
|
2906
|
+
if (!options.scroll) return;
|
|
2907
|
+
var x = (evt.touches ? evt.touches[0] : evt).clientX,
|
|
2908
|
+
y = (evt.touches ? evt.touches[0] : evt).clientY,
|
|
2909
|
+
sens = options.scrollSensitivity,
|
|
2910
|
+
speed = options.scrollSpeed,
|
|
2911
|
+
winScroller = getWindowScrollingElement();
|
|
2912
|
+
var scrollThisInstance = false,
|
|
2913
|
+
scrollCustomFn; // New scroll root, set scrollEl
|
|
2914
|
+
|
|
2915
|
+
if (scrollRootEl !== rootEl) {
|
|
2916
|
+
scrollRootEl = rootEl;
|
|
2917
|
+
clearAutoScrolls();
|
|
2918
|
+
scrollEl = options.scroll;
|
|
2919
|
+
scrollCustomFn = options.scrollFn;
|
|
2920
|
+
|
|
2921
|
+
if (scrollEl === true) {
|
|
2922
|
+
scrollEl = getParentAutoScrollElement(rootEl, true);
|
|
2923
|
+
}
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2926
|
+
var layersOut = 0;
|
|
2927
|
+
var currentParent = scrollEl;
|
|
2928
|
+
|
|
2929
|
+
do {
|
|
2930
|
+
var el = currentParent,
|
|
2931
|
+
rect = getRect(el),
|
|
2932
|
+
top = rect.top,
|
|
2933
|
+
bottom = rect.bottom,
|
|
2934
|
+
left = rect.left,
|
|
2935
|
+
right = rect.right,
|
|
2936
|
+
width = rect.width,
|
|
2937
|
+
height = rect.height,
|
|
2938
|
+
canScrollX = void 0,
|
|
2939
|
+
canScrollY = void 0,
|
|
2940
|
+
scrollWidth = el.scrollWidth,
|
|
2941
|
+
scrollHeight = el.scrollHeight,
|
|
2942
|
+
elCSS = css(el),
|
|
2943
|
+
scrollPosX = el.scrollLeft,
|
|
2944
|
+
scrollPosY = el.scrollTop;
|
|
2945
|
+
|
|
2946
|
+
if (el === winScroller) {
|
|
2947
|
+
canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll' || elCSS.overflowX === 'visible');
|
|
2948
|
+
canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll' || elCSS.overflowY === 'visible');
|
|
2949
|
+
} else {
|
|
2950
|
+
canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll');
|
|
2951
|
+
canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll');
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2954
|
+
var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);
|
|
2955
|
+
var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);
|
|
2956
|
+
|
|
2957
|
+
if (!autoScrolls[layersOut]) {
|
|
2958
|
+
for (var i = 0; i <= layersOut; i++) {
|
|
2959
|
+
if (!autoScrolls[i]) {
|
|
2960
|
+
autoScrolls[i] = {};
|
|
2961
|
+
}
|
|
2962
|
+
}
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {
|
|
2966
|
+
autoScrolls[layersOut].el = el;
|
|
2967
|
+
autoScrolls[layersOut].vx = vx;
|
|
2968
|
+
autoScrolls[layersOut].vy = vy;
|
|
2969
|
+
clearInterval(autoScrolls[layersOut].pid);
|
|
2970
|
+
|
|
2971
|
+
if (vx != 0 || vy != 0) {
|
|
2972
|
+
scrollThisInstance = true;
|
|
2973
|
+
/* jshint loopfunc:true */
|
|
2974
|
+
|
|
2975
|
+
autoScrolls[layersOut].pid = setInterval(function () {
|
|
2976
|
+
// emulate drag over during autoscroll (fallback), emulating native DnD behaviour
|
|
2977
|
+
if (isFallback && this.layer === 0) {
|
|
2978
|
+
Sortable.active._onTouchMove(touchEvt$1); // To move ghost if it is positioned absolutely
|
|
2979
|
+
|
|
2980
|
+
}
|
|
2981
|
+
|
|
2982
|
+
var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;
|
|
2983
|
+
var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;
|
|
2984
|
+
|
|
2985
|
+
if (typeof scrollCustomFn === 'function') {
|
|
2986
|
+
if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== 'continue') {
|
|
2987
|
+
return;
|
|
2988
|
+
}
|
|
2989
|
+
}
|
|
2990
|
+
|
|
2991
|
+
scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);
|
|
2992
|
+
}.bind({
|
|
2993
|
+
layer: layersOut
|
|
2994
|
+
}), 24);
|
|
2995
|
+
}
|
|
2996
|
+
}
|
|
2997
|
+
|
|
2998
|
+
layersOut++;
|
|
2999
|
+
} while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));
|
|
3000
|
+
|
|
3001
|
+
scrolling = scrollThisInstance; // in case another function catches scrolling as false in between when it is not
|
|
3002
|
+
}, 30);
|
|
3003
|
+
|
|
3004
|
+
var drop = function drop(_ref) {
|
|
3005
|
+
var originalEvent = _ref.originalEvent,
|
|
3006
|
+
putSortable = _ref.putSortable,
|
|
3007
|
+
dragEl = _ref.dragEl,
|
|
3008
|
+
activeSortable = _ref.activeSortable,
|
|
3009
|
+
dispatchSortableEvent = _ref.dispatchSortableEvent,
|
|
3010
|
+
hideGhostForTarget = _ref.hideGhostForTarget,
|
|
3011
|
+
unhideGhostForTarget = _ref.unhideGhostForTarget;
|
|
3012
|
+
if (!originalEvent) return;
|
|
3013
|
+
var toSortable = putSortable || activeSortable;
|
|
3014
|
+
hideGhostForTarget();
|
|
3015
|
+
var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;
|
|
3016
|
+
var target = document.elementFromPoint(touch.clientX, touch.clientY);
|
|
3017
|
+
unhideGhostForTarget();
|
|
3018
|
+
|
|
3019
|
+
if (toSortable && !toSortable.el.contains(target)) {
|
|
3020
|
+
dispatchSortableEvent('spill');
|
|
3021
|
+
this.onSpill({
|
|
3022
|
+
dragEl: dragEl,
|
|
3023
|
+
putSortable: putSortable
|
|
3024
|
+
});
|
|
3025
|
+
}
|
|
3026
|
+
};
|
|
3027
|
+
|
|
3028
|
+
function Revert() {}
|
|
3029
|
+
|
|
3030
|
+
Revert.prototype = {
|
|
3031
|
+
startIndex: null,
|
|
3032
|
+
dragStart: function dragStart(_ref2) {
|
|
3033
|
+
var oldDraggableIndex = _ref2.oldDraggableIndex;
|
|
3034
|
+
this.startIndex = oldDraggableIndex;
|
|
3035
|
+
},
|
|
3036
|
+
onSpill: function onSpill(_ref3) {
|
|
3037
|
+
var dragEl = _ref3.dragEl,
|
|
3038
|
+
putSortable = _ref3.putSortable;
|
|
3039
|
+
this.sortable.captureAnimationState();
|
|
3040
|
+
|
|
3041
|
+
if (putSortable) {
|
|
3042
|
+
putSortable.captureAnimationState();
|
|
3043
|
+
}
|
|
3044
|
+
|
|
3045
|
+
var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);
|
|
3046
|
+
|
|
3047
|
+
if (nextSibling) {
|
|
3048
|
+
this.sortable.el.insertBefore(dragEl, nextSibling);
|
|
3049
|
+
} else {
|
|
3050
|
+
this.sortable.el.appendChild(dragEl);
|
|
3051
|
+
}
|
|
3052
|
+
|
|
3053
|
+
this.sortable.animateAll();
|
|
3054
|
+
|
|
3055
|
+
if (putSortable) {
|
|
3056
|
+
putSortable.animateAll();
|
|
3057
|
+
}
|
|
3058
|
+
},
|
|
3059
|
+
drop: drop
|
|
3060
|
+
};
|
|
3061
|
+
|
|
3062
|
+
_extends(Revert, {
|
|
3063
|
+
pluginName: 'revertOnSpill'
|
|
3064
|
+
});
|
|
3065
|
+
|
|
3066
|
+
function Remove() {}
|
|
3067
|
+
|
|
3068
|
+
Remove.prototype = {
|
|
3069
|
+
onSpill: function onSpill(_ref4) {
|
|
3070
|
+
var dragEl = _ref4.dragEl,
|
|
3071
|
+
putSortable = _ref4.putSortable;
|
|
3072
|
+
var parentSortable = putSortable || this.sortable;
|
|
3073
|
+
parentSortable.captureAnimationState();
|
|
3074
|
+
dragEl.parentNode && dragEl.parentNode.removeChild(dragEl);
|
|
3075
|
+
parentSortable.animateAll();
|
|
3076
|
+
},
|
|
3077
|
+
drop: drop
|
|
3078
|
+
};
|
|
3079
|
+
|
|
3080
|
+
_extends(Remove, {
|
|
3081
|
+
pluginName: 'removeOnSpill'
|
|
3082
|
+
});
|
|
3083
|
+
|
|
3084
|
+
Sortable.mount(new AutoScrollPlugin());
|
|
3085
|
+
Sortable.mount(Remove, Revert);
|
|
3086
|
+
|
|
3087
|
+
const stzhSortableCss = ".sc-stzh-sortable-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-sortable-h{display:none}.sc-stzh-sortable-h *.sc-stzh-sortable,.sc-stzh-sortable-h *.sc-stzh-sortable::before,.sc-stzh-sortable-h *.sc-stzh-sortable::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-sortable-h{--unselected-item-opacity:0.6;--ghost-item-background:var(--stzh-color-grey5);--ghost-item-box-shadow:inset 0 0 0.5rem rgba(0, 0, 0, 0.32)}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item{position:relative;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:move;cursor:-webkit-grab;cursor:grab}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-drag,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-chosen,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-selected{cursor:move;cursor:-webkit-grabbing;cursor:grabbing}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-drag{opacity:1 !important}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost{z-index:0}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost::after{z-index:99;content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--ghost-item-background);-webkit-box-shadow:var(--ghost-item-box-shadow);box-shadow:var(--ghost-item-box-shadow)}.sc-stzh-sortable-h .sc-stzh-sortable-s>*.has-item-selected>*.is-sortable-item{opacity:var(--unselected-item-opacity)}.sc-stzh-sortable-h .sc-stzh-sortable-s>*.has-item-selected>*.is-sortable-item.is-selected{opacity:1}.stzh-sortable__description.sc-stzh-sortable,.stzh-sortable__aria-live.sc-stzh-sortable{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}";
|
|
3088
|
+
|
|
3089
|
+
const CLASS_ITEM = 'is-sortable-item';
|
|
3090
|
+
const CLASS_GHOST = "is-ghost";
|
|
3091
|
+
const CLASS_SELECTED = "is-selected";
|
|
3092
|
+
const CLASS_CHOSEN = "is-chosen";
|
|
3093
|
+
const CLASS_DRAG = "is-drag";
|
|
3094
|
+
const CLASS_PARENT_SELECTED = "has-item-selected";
|
|
3095
|
+
let sortableCounter = 0;
|
|
3096
|
+
const StzhSortable = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
3097
|
+
constructor() {
|
|
3098
|
+
super();
|
|
3099
|
+
this.__registerHost();
|
|
3100
|
+
this.stzhUpdate = createEvent(this, "stzhUpdate", 7);
|
|
3101
|
+
/** Wether sorting is disabled or not */
|
|
3102
|
+
this.disabled = false;
|
|
3103
|
+
/** HTML attribute that is used by the `toArray()` method */
|
|
3104
|
+
this.dataIdAttribute = "data-id";
|
|
3105
|
+
/** Container */
|
|
3106
|
+
this.container = () => {
|
|
3107
|
+
var _a;
|
|
3108
|
+
return (_a = this.containerElement) === null || _a === void 0 ? void 0 : _a.firstElementChild;
|
|
3109
|
+
};
|
|
3110
|
+
/** Filtered elements that should prevent dragging inside the drag item elements */
|
|
3111
|
+
this.filterElements = [
|
|
3112
|
+
"[data-stzh-sortable-filtered]",
|
|
3113
|
+
"[sortable-disabled]",
|
|
3114
|
+
"button",
|
|
3115
|
+
"a[href]",
|
|
3116
|
+
"input",
|
|
3117
|
+
"select",
|
|
3118
|
+
"textarea",
|
|
3119
|
+
"label",
|
|
3120
|
+
"iframe",
|
|
3121
|
+
"details",
|
|
3122
|
+
"area",
|
|
3123
|
+
"stzh-sortable"
|
|
3124
|
+
];
|
|
3125
|
+
this.selectedItem = null;
|
|
3126
|
+
this.resetItemOnBlur = false;
|
|
3127
|
+
this.init = () => {
|
|
3128
|
+
if (!this.getContainer()) {
|
|
3129
|
+
return;
|
|
3130
|
+
}
|
|
3131
|
+
Array.from(this.getContainer().children).forEach((child) => {
|
|
3132
|
+
child.classList.add(CLASS_ITEM);
|
|
3133
|
+
child.addEventListener('blur', this.onBlur);
|
|
3134
|
+
child.addEventListener('keydown', this.onKeydown);
|
|
3135
|
+
child.setAttribute('tabindex', '0');
|
|
3136
|
+
child.setAttribute('aria-describedby', `${this.sortableId}-description`);
|
|
3137
|
+
});
|
|
3138
|
+
};
|
|
3139
|
+
this.updated = async (event) => {
|
|
3140
|
+
let newIndex;
|
|
3141
|
+
let oldIndex;
|
|
3142
|
+
let item;
|
|
3143
|
+
if (event) {
|
|
3144
|
+
newIndex = event.newIndex;
|
|
3145
|
+
oldIndex = event.oldIndex;
|
|
3146
|
+
item = event.item;
|
|
3147
|
+
}
|
|
3148
|
+
else {
|
|
3149
|
+
newIndex = this.getIndexOfSelectedItem();
|
|
3150
|
+
oldIndex = this.lastIndex;
|
|
3151
|
+
item = this.selectedItem;
|
|
3152
|
+
}
|
|
3153
|
+
if (newIndex !== oldIndex) {
|
|
3154
|
+
this.stzhUpdate.emit({
|
|
3155
|
+
component: "stzh-sortable",
|
|
3156
|
+
data: await this.toArray(),
|
|
3157
|
+
item,
|
|
3158
|
+
newIndex,
|
|
3159
|
+
oldIndex
|
|
3160
|
+
});
|
|
3161
|
+
}
|
|
3162
|
+
};
|
|
3163
|
+
this.onKeydown = (event) => {
|
|
3164
|
+
const currentTarget = event.currentTarget;
|
|
3165
|
+
if (!this.getContainer() || this.disabled) {
|
|
3166
|
+
return;
|
|
3167
|
+
}
|
|
3168
|
+
if (event.key === " "
|
|
3169
|
+
|| (event.key === "Tab"
|
|
3170
|
+
&& this.selectedItem
|
|
3171
|
+
&& this.selectedItem === event.currentTarget)) {
|
|
3172
|
+
event.preventDefault();
|
|
3173
|
+
}
|
|
3174
|
+
const isFilteredElement = currentTarget.matches(this._filterElements.join(', '));
|
|
3175
|
+
if (event.key === " " && !isFilteredElement) {
|
|
3176
|
+
if (!this.selectedItem) {
|
|
3177
|
+
this.selectedItem = currentTarget;
|
|
3178
|
+
this.selectedItem.parentElement.classList.add(CLASS_PARENT_SELECTED);
|
|
3179
|
+
this.selectedItem.classList.add(CLASS_SELECTED);
|
|
3180
|
+
this.lastIndex = this.getIndexOfSelectedItem();
|
|
3181
|
+
this.resetItemOnBlur = true;
|
|
3182
|
+
this.updateAriaLive(this.localization.started);
|
|
3183
|
+
}
|
|
3184
|
+
else {
|
|
3185
|
+
this.resetItemOnBlur = false;
|
|
3186
|
+
this.updateAriaLive(this.localization.dropped);
|
|
3187
|
+
this.updated();
|
|
3188
|
+
this.resetActiveItem();
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
else if (event.key === "Escape" && this.selectedItem) {
|
|
3192
|
+
this.resetItemOnBlur = false;
|
|
3193
|
+
this.updateAriaLive(this.localization.canceled);
|
|
3194
|
+
this.resetActiveItem(true);
|
|
3195
|
+
}
|
|
3196
|
+
else if (event.key === "ArrowUp") {
|
|
3197
|
+
if (this.selectedItem) {
|
|
3198
|
+
this.moveItem(this.selectedItem, "up");
|
|
3199
|
+
}
|
|
3200
|
+
else {
|
|
3201
|
+
this.focusItem(currentTarget.previousElementSibling);
|
|
3202
|
+
}
|
|
3203
|
+
}
|
|
3204
|
+
else if (event.key === "ArrowDown") {
|
|
3205
|
+
if (this.selectedItem) {
|
|
3206
|
+
this.moveItem(this.selectedItem, "down");
|
|
3207
|
+
}
|
|
3208
|
+
else {
|
|
3209
|
+
this.focusItem(currentTarget.nextElementSibling);
|
|
3210
|
+
}
|
|
3211
|
+
}
|
|
3212
|
+
};
|
|
3213
|
+
this.onBlur = () => {
|
|
3214
|
+
if (this.resetItemOnBlur) {
|
|
3215
|
+
this.resetItemOnBlur = false;
|
|
3216
|
+
this.updateAriaLive(this.localization.dropped);
|
|
3217
|
+
this.updated();
|
|
3218
|
+
this.resetActiveItem();
|
|
3219
|
+
}
|
|
3220
|
+
};
|
|
3221
|
+
}
|
|
3222
|
+
/** Serializes the sortable's item data-id's (dataIdAttr option) into an array of string */
|
|
3223
|
+
async toArray() {
|
|
3224
|
+
return this.sortable.toArray();
|
|
3225
|
+
}
|
|
3226
|
+
/** Sorts the elements according to the array */
|
|
3227
|
+
async sort(order, useAnimation = true) {
|
|
3228
|
+
return this.sortable.sort(order, useAnimation);
|
|
3229
|
+
}
|
|
3230
|
+
/** Move item */
|
|
3231
|
+
async moveItem(item, direction) {
|
|
3232
|
+
if (!item
|
|
3233
|
+
|| !item.nextElementSibling && direction === "down"
|
|
3234
|
+
|| !item.previousElementSibling && direction === "up") {
|
|
3235
|
+
return;
|
|
3236
|
+
}
|
|
3237
|
+
this.resetItemOnBlur = false;
|
|
3238
|
+
if (direction === "up") {
|
|
3239
|
+
item.previousElementSibling.before(item);
|
|
3240
|
+
}
|
|
3241
|
+
else if (direction === "down") {
|
|
3242
|
+
item.nextElementSibling.after(item);
|
|
3243
|
+
}
|
|
3244
|
+
this.updateAriaLive(this.localization.moved, item);
|
|
3245
|
+
this.focusItem(item);
|
|
3246
|
+
this.resetItemOnBlur = true;
|
|
3247
|
+
}
|
|
3248
|
+
filterElementsWatcher(newValue) {
|
|
3249
|
+
if (typeof newValue === "string") {
|
|
3250
|
+
this._filterElements = JSON.parse(newValue);
|
|
3251
|
+
}
|
|
3252
|
+
else {
|
|
3253
|
+
this._filterElements = newValue;
|
|
3254
|
+
}
|
|
3255
|
+
}
|
|
3256
|
+
getContainer() {
|
|
3257
|
+
return typeof this.container === "function"
|
|
3258
|
+
? this.container()
|
|
3259
|
+
: this.container;
|
|
3260
|
+
}
|
|
3261
|
+
updateAriaLive(string, item = this.selectedItem) {
|
|
3262
|
+
if (!this.getContainer()) {
|
|
3263
|
+
return;
|
|
3264
|
+
}
|
|
3265
|
+
if (item) {
|
|
3266
|
+
const title = item.getAttribute("aria-label") || "";
|
|
3267
|
+
const index = this.getIndexOfSelectedItem(item);
|
|
3268
|
+
string = string
|
|
3269
|
+
.replace("{title}", title)
|
|
3270
|
+
.replace("{current}", (index + 1).toString());
|
|
3271
|
+
}
|
|
3272
|
+
const total = this.getContainer().children.length;
|
|
3273
|
+
string = string
|
|
3274
|
+
.replace("{total}", total.toString());
|
|
3275
|
+
this.ariaLiveElement.textContent = string;
|
|
3276
|
+
}
|
|
3277
|
+
getIndexOfSelectedItem(item = this.selectedItem) {
|
|
3278
|
+
if (item) {
|
|
3279
|
+
return Array.from(item.parentElement.children).indexOf(item);
|
|
3280
|
+
}
|
|
3281
|
+
}
|
|
3282
|
+
resetActiveItem(moveToOriginalPosition = false) {
|
|
3283
|
+
if (!this.selectedItem) {
|
|
3284
|
+
return;
|
|
3285
|
+
}
|
|
3286
|
+
const currentIndex = this.getIndexOfSelectedItem();
|
|
3287
|
+
const container = this.selectedItem.parentElement;
|
|
3288
|
+
if (moveToOriginalPosition && this.lastIndex !== currentIndex) {
|
|
3289
|
+
if (this.lastIndex > currentIndex) {
|
|
3290
|
+
container.children[this.lastIndex].after(this.selectedItem);
|
|
3291
|
+
}
|
|
3292
|
+
else {
|
|
3293
|
+
container.children[this.lastIndex].before(this.selectedItem);
|
|
3294
|
+
}
|
|
3295
|
+
this.selectedItem.focus();
|
|
3296
|
+
}
|
|
3297
|
+
container.classList.remove(CLASS_PARENT_SELECTED);
|
|
3298
|
+
this.selectedItem.classList.remove(CLASS_SELECTED);
|
|
3299
|
+
this.selectedItem = null;
|
|
3300
|
+
this.lastIndex = null;
|
|
3301
|
+
}
|
|
3302
|
+
focusItem(item) {
|
|
3303
|
+
if (!item) {
|
|
3304
|
+
return;
|
|
3305
|
+
}
|
|
3306
|
+
item.focus();
|
|
3307
|
+
const flyingfocusElement = document.querySelector('stzh-flyingfocus');
|
|
3308
|
+
if (flyingfocusElement) {
|
|
3309
|
+
flyingfocusElement.reposition();
|
|
3310
|
+
}
|
|
3311
|
+
scrollIntoView(item, {
|
|
3312
|
+
scrollMode: 'if-needed',
|
|
3313
|
+
block: 'nearest',
|
|
3314
|
+
inline: 'nearest'
|
|
3315
|
+
});
|
|
3316
|
+
}
|
|
3317
|
+
async componentWillLoad() {
|
|
3318
|
+
this.sortableId = `stzh-sortable-${sortableCounter++}`;
|
|
3319
|
+
this.filterElementsWatcher(this.filterElements);
|
|
3320
|
+
if (!this.localization) {
|
|
3321
|
+
this.localization = await fetchTranslations(this.element, 'sortable');
|
|
3322
|
+
}
|
|
3323
|
+
}
|
|
3324
|
+
componentWillUpdate() {
|
|
3325
|
+
if (this.sortable) {
|
|
3326
|
+
this.sortable.destroy();
|
|
3327
|
+
this.sortable = null;
|
|
3328
|
+
}
|
|
3329
|
+
}
|
|
3330
|
+
componentDidRender() {
|
|
3331
|
+
if (this.sortable) {
|
|
3332
|
+
return;
|
|
3333
|
+
}
|
|
3334
|
+
// see available option in https://github.com/SortableJS/Sortable#options
|
|
3335
|
+
this.sortable = new Sortable(this.getContainer(), {
|
|
3336
|
+
animation: 150,
|
|
3337
|
+
filter: this._filterElements.join(', '),
|
|
3338
|
+
ghostClass: CLASS_GHOST,
|
|
3339
|
+
chosenClass: CLASS_CHOSEN,
|
|
3340
|
+
dragClass: CLASS_DRAG,
|
|
3341
|
+
dataIdAttr: this.dataIdAttribute,
|
|
3342
|
+
preventOnFilter: false,
|
|
3343
|
+
forceFallback: true,
|
|
3344
|
+
delay: 200,
|
|
3345
|
+
delayOnTouchOnly: true,
|
|
3346
|
+
disabled: this.disabled,
|
|
3347
|
+
// changed sorting within list
|
|
3348
|
+
onUpdate: this.updated
|
|
3349
|
+
});
|
|
3350
|
+
}
|
|
3351
|
+
connectedCallback() {
|
|
3352
|
+
this.init();
|
|
3353
|
+
this.observer = new MutationObserver(this.init);
|
|
3354
|
+
this.observer.observe(this.element, {
|
|
3355
|
+
childList: true,
|
|
3356
|
+
subtree: true
|
|
3357
|
+
});
|
|
3358
|
+
}
|
|
3359
|
+
disconnectedCallback() {
|
|
3360
|
+
this.observer.disconnect();
|
|
3361
|
+
if (this.sortable) {
|
|
3362
|
+
this.sortable.destroy();
|
|
3363
|
+
this.sortable = null;
|
|
3364
|
+
}
|
|
3365
|
+
}
|
|
3366
|
+
render() {
|
|
3367
|
+
const classes = {
|
|
3368
|
+
"stzh-sortable": true
|
|
3369
|
+
};
|
|
3370
|
+
return (h(Host, null, h("div", { class: classes }, h("div", { id: `${this.sortableId}-description`, class: "stzh-sortable__description" }, this.localization.description), h("div", { ref: (el) => (this.ariaLiveElement = el), "aria-live": "assertive", class: "stzh-sortable__aria-live" }), h("div", { ref: (el) => (this.containerElement = el), class: "stzh-sortable__container" }, h("slot", null)))));
|
|
3371
|
+
}
|
|
3372
|
+
get element() { return this; }
|
|
3373
|
+
static get watchers() { return {
|
|
3374
|
+
"filterElements": ["filterElementsWatcher"]
|
|
3375
|
+
}; }
|
|
3376
|
+
static get style() { return stzhSortableCss; }
|
|
3377
|
+
}, [6, "stzh-sortable", {
|
|
3378
|
+
"localization": [16],
|
|
3379
|
+
"disabled": [516],
|
|
3380
|
+
"dataIdAttribute": [1, "data-id-attribute"],
|
|
3381
|
+
"container": [16],
|
|
3382
|
+
"filterElements": [1, "filter-elements"],
|
|
3383
|
+
"toArray": [64],
|
|
3384
|
+
"sort": [64],
|
|
3385
|
+
"moveItem": [64]
|
|
3386
|
+
}]);
|
|
3387
|
+
function defineCustomElement() {
|
|
3388
|
+
if (typeof customElements === "undefined") {
|
|
3389
|
+
return;
|
|
3390
|
+
}
|
|
3391
|
+
const components = ["stzh-sortable"];
|
|
3392
|
+
components.forEach(tagName => { switch (tagName) {
|
|
3393
|
+
case "stzh-sortable":
|
|
3394
|
+
if (!customElements.get(tagName)) {
|
|
3395
|
+
customElements.define(tagName, StzhSortable);
|
|
3396
|
+
}
|
|
3397
|
+
break;
|
|
3398
|
+
} });
|
|
3399
|
+
}
|
|
3400
|
+
|
|
3401
|
+
export { StzhSortable as S, defineCustomElement as d };
|