@kdcloudjs/shoelace 1.0.12 → 1.0.13
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/cdn/assets/icons/Union.svg +4 -0
- package/cdn/assets/icons/add.svg +3 -0
- package/cdn/assets/icons/arrow-clockwise.svg +3 -4
- package/cdn/assets/icons/arrow-left.svg +3 -3
- package/cdn/assets/icons/arrow-right.svg +3 -3
- package/cdn/assets/icons/attach.svg +3 -0
- package/cdn/assets/icons/caret-down-fill.svg +3 -3
- package/cdn/assets/icons/caret-right-fill.svg +3 -3
- package/cdn/assets/icons/check-circle-fill.svg +3 -3
- package/cdn/assets/icons/check2-circle.svg +10 -4
- package/cdn/assets/icons/checkbox-half.svg +3 -0
- package/cdn/assets/icons/checkbox-selected.svg +3 -0
- package/cdn/assets/icons/chevron-down.svg +3 -3
- package/cdn/assets/icons/chevron-left.svg +3 -3
- package/cdn/assets/icons/chevron-right.svg +3 -3
- package/cdn/assets/icons/chevron-up.svg +3 -3
- package/cdn/assets/icons/copy.svg +3 -3
- package/cdn/assets/icons/dash-square.svg +11 -4
- package/cdn/assets/icons/date.svg +3 -0
- package/cdn/assets/icons/download.svg +3 -4
- package/cdn/assets/icons/drag.svg +10 -0
- package/cdn/assets/icons/exclamation-circle-fill.svg +3 -3
- package/cdn/assets/icons/exclamation-triangle.svg +11 -4
- package/cdn/assets/icons/eye-slash.svg +6 -5
- package/cdn/assets/icons/eye.svg +4 -4
- package/cdn/assets/icons/filter.svg +3 -3
- package/cdn/assets/icons/gear.svg +3 -4
- package/cdn/assets/icons/icons.json +160 -0
- package/cdn/assets/icons/info-circle.svg +5 -4
- package/cdn/assets/icons/jump-to-left.svg +3 -0
- package/cdn/assets/icons/jump-to-right.svg +3 -0
- package/cdn/assets/icons/language.svg +3 -0
- package/cdn/assets/icons/listen.svg +3 -0
- package/cdn/assets/icons/minus.svg +3 -0
- package/cdn/assets/icons/notify.svg +3 -0
- package/cdn/assets/icons/organize.svg +3 -0
- package/cdn/assets/icons/pencil.svg +10 -3
- package/cdn/assets/icons/people.svg +10 -3
- package/cdn/assets/icons/person.svg +11 -3
- package/cdn/assets/icons/plus-square.svg +11 -4
- package/cdn/assets/icons/question-circle.svg +5 -4
- package/cdn/assets/icons/radio-selected.svg +3 -0
- package/cdn/assets/icons/radio-unselected.svg +3 -0
- package/cdn/assets/icons/resize.svg +3 -0
- package/cdn/assets/icons/search.svg +3 -3
- package/cdn/assets/icons/sort.svg +4 -0
- package/cdn/assets/icons/star.svg +3 -3
- package/cdn/assets/icons/threedots.svg +3 -0
- package/cdn/assets/icons/time.svg +3 -0
- package/cdn/assets/icons/trash3.svg +3 -3
- package/cdn/assets/icons/upload.svg +3 -4
- package/cdn/assets/icons/x-lg.svg +3 -3
- package/cdn/assets/icons/zoom-in.svg +4 -5
- package/cdn/chunks/chunk.27HOYVCS.js +25 -0
- package/cdn/chunks/chunk.27Y4PZVV.js +11 -0
- package/cdn/chunks/chunk.27Y5FHMO.js +236 -0
- package/cdn/chunks/chunk.2FZS4X3M.js +21 -0
- package/cdn/chunks/chunk.2HDTSZN2.js +282 -0
- package/cdn/chunks/chunk.2QXBQ2NK.js +11 -0
- package/cdn/chunks/chunk.2VVVEGWA.js +103 -0
- package/cdn/chunks/chunk.32LBTDAX.js +54 -0
- package/cdn/chunks/chunk.33I3T7TR.js +11 -0
- package/cdn/chunks/chunk.33LT4SL5.js +11 -0
- package/cdn/chunks/chunk.35OCFEWG.js +11 -0
- package/cdn/chunks/chunk.37PW5KJK.js +28 -0
- package/cdn/chunks/chunk.3E7UTFOW.js +24 -0
- package/cdn/chunks/chunk.3EXN7PEK.js +11 -0
- package/cdn/chunks/chunk.3SP4KPG4.js +11 -0
- package/cdn/chunks/chunk.3WADD2II.js +24 -0
- package/cdn/chunks/chunk.45J66KZY.js +158 -0
- package/cdn/chunks/chunk.4B2BQBVK.js +21 -0
- package/cdn/chunks/chunk.4HRT2UJR.js +33 -0
- package/cdn/chunks/chunk.4I63ZQ66.js +21 -0
- package/cdn/chunks/chunk.4IHB7MMA.js +11 -0
- package/cdn/chunks/chunk.4OEATBDE.js +26 -0
- package/cdn/chunks/chunk.4PJ7G3CV.js +11 -0
- package/cdn/chunks/chunk.4RHFRC3G.js +346 -0
- package/cdn/chunks/chunk.4TNRRH5O.js +11 -0
- package/cdn/chunks/chunk.4YARN2QZ.js +11 -0
- package/cdn/chunks/chunk.4YGOLCMI.js +75 -0
- package/cdn/chunks/chunk.5ABUV5UR.js +24 -0
- package/cdn/chunks/chunk.5GGVS55R.js +11 -0
- package/cdn/chunks/chunk.5MOV4CPU.js +21 -0
- package/cdn/chunks/chunk.66I5PX2D.js +29 -0
- package/cdn/chunks/chunk.66YPE6LS.js +142 -0
- package/cdn/chunks/chunk.6ENVGHCX.js +11 -0
- package/cdn/chunks/chunk.6FRLQCVM.js +11 -0
- package/cdn/chunks/chunk.6FZ4EIZK.js +11 -0
- package/cdn/chunks/chunk.6ISNSVD3.js +379 -0
- package/cdn/chunks/chunk.6KEE7M5Z.js +11 -0
- package/cdn/chunks/chunk.6MKBM2IN.js +266 -0
- package/cdn/chunks/chunk.6MSM2SEG.js +11 -0
- package/cdn/chunks/chunk.6RLYTXI2.js +11 -0
- package/cdn/chunks/chunk.6TEKXFHG.js +28 -0
- package/cdn/chunks/chunk.6W44TUMM.js +11 -0
- package/cdn/chunks/chunk.6ZIASYIF.js +48 -0
- package/cdn/chunks/chunk.75PEDE7I.js +27 -0
- package/cdn/chunks/chunk.7COYCCE4.js +67 -0
- package/cdn/chunks/chunk.7HUAIMM7.js +21 -0
- package/cdn/chunks/chunk.7JV5OIVH.js +186 -0
- package/cdn/chunks/chunk.7MDST7I6.js +29 -0
- package/cdn/chunks/chunk.7ODZ7P7A.js +21 -0
- package/cdn/chunks/chunk.7PBDJRY6.js +455 -0
- package/cdn/chunks/chunk.7S4WG4SM.js +135 -0
- package/cdn/chunks/chunk.7SLQZCTW.js +11 -0
- package/cdn/chunks/chunk.A7CUPYQN.js +27 -0
- package/cdn/chunks/chunk.AIUCZ2HG.js +21 -0
- package/cdn/chunks/chunk.AK4YXL3V.js +24 -0
- package/cdn/chunks/chunk.AKVTZJZE.js +5845 -0
- package/cdn/chunks/chunk.ANWNIMZI.js +153 -0
- package/cdn/chunks/chunk.AOWPLCJZ.js +822 -0
- package/cdn/chunks/chunk.AQB2FSQO.js +11 -0
- package/cdn/chunks/chunk.B2VN3VDT.js +11 -0
- package/cdn/chunks/chunk.B6MIUMME.js +114 -0
- package/cdn/chunks/chunk.BH2WDPCP.js +313 -0
- package/cdn/chunks/chunk.BHAMTRIB.js +27 -0
- package/cdn/chunks/chunk.BJBADDZR.js +11 -0
- package/cdn/chunks/chunk.BJD2MP32.js +11 -0
- package/cdn/chunks/chunk.BPMCWLIP.js +11 -0
- package/cdn/chunks/chunk.C2WSS4PN.js +11 -0
- package/cdn/chunks/chunk.CB44ML4D.js +11 -0
- package/cdn/chunks/chunk.CC567GEA.js +11 -0
- package/cdn/chunks/chunk.CEWIGZ5F.js +11 -0
- package/cdn/chunks/chunk.CHTIGRTB.js +21 -0
- package/cdn/chunks/chunk.CWN5CGYB.js +36 -0
- package/cdn/chunks/chunk.DL6IVOOP.js +11 -0
- package/cdn/chunks/chunk.DLUXJ4CH.js +24 -0
- package/cdn/chunks/chunk.DO5FSPL3.js +11 -0
- package/cdn/chunks/chunk.DP7UQUTU.js +586 -0
- package/cdn/chunks/chunk.DVXR5Q5B.js +25 -0
- package/cdn/chunks/chunk.DW5UXU6T.js +183 -0
- package/cdn/chunks/chunk.DWD7HY7A.js +314 -0
- package/cdn/chunks/chunk.E5JFT45N.js +95 -0
- package/cdn/chunks/chunk.EEAJYMNF.js +131 -0
- package/cdn/chunks/chunk.EPPWMIN6.js +292 -0
- package/cdn/chunks/chunk.EUH2S3H2.js +11 -0
- package/cdn/chunks/chunk.EY6KVW5N.js +21 -0
- package/cdn/chunks/chunk.F43EQFX7.js +73 -0
- package/cdn/chunks/chunk.FDWGU6EJ.js +334 -0
- package/cdn/chunks/chunk.FMZN2U2U.js +21 -0
- package/cdn/chunks/chunk.FN23KPQ6.js +25 -0
- package/cdn/chunks/chunk.FZ4G6WQ3.js +21 -0
- package/cdn/chunks/chunk.GDOFH4N7.js +24 -0
- package/cdn/chunks/chunk.GFWWCI5D.js +21 -0
- package/cdn/chunks/chunk.GNDDYPL5.js +122 -0
- package/cdn/chunks/chunk.HAKTAYCJ.js +271 -0
- package/cdn/chunks/chunk.HF4HZ7OK.js +11 -0
- package/cdn/chunks/chunk.HH6FCSDY.js +25 -0
- package/cdn/chunks/chunk.HIXTBSVP.js +24 -0
- package/cdn/chunks/chunk.HNB6YNKJ.js +127 -0
- package/cdn/chunks/chunk.I23BNULJ.js +25 -0
- package/cdn/chunks/chunk.IJKYOXF6.js +1058 -0
- package/cdn/chunks/chunk.IK7T2LXB.js +512 -0
- package/cdn/chunks/chunk.IMUFDXOR.js +27 -0
- package/cdn/chunks/chunk.IPJYJUHJ.js +137 -0
- package/cdn/chunks/chunk.ITOSFWGF.js +11 -0
- package/cdn/chunks/chunk.IZW6T3JG.js +123 -0
- package/cdn/chunks/chunk.J5BEJWL2.js +1990 -0
- package/cdn/chunks/chunk.JDEKRW5T.js +11 -0
- package/cdn/chunks/chunk.JN3VVH3C.js +28 -0
- package/cdn/chunks/chunk.JRRMX7GT.js +24 -0
- package/cdn/chunks/chunk.JZBBC3QX.js +279 -0
- package/cdn/chunks/chunk.JZJCWSG7.js +11 -0
- package/cdn/chunks/chunk.K5AFO3UR.js +367 -0
- package/cdn/chunks/chunk.KBOPZLOK.js +63 -0
- package/cdn/chunks/chunk.KFLMS5SX.js +11 -0
- package/cdn/chunks/chunk.KHVZJL32.js +82 -0
- package/cdn/chunks/chunk.L3XUUIH5.js +21 -0
- package/cdn/chunks/chunk.L4E37H5Q.js +11 -0
- package/cdn/chunks/chunk.L7GOVIH2.js +21 -0
- package/cdn/chunks/chunk.LMEA3KHP.js +11 -0
- package/cdn/chunks/chunk.LSRNP2JM.js +11 -0
- package/cdn/chunks/chunk.LUBCPO5Q.js +11 -0
- package/cdn/chunks/chunk.M3H22HDR.js +21 -0
- package/cdn/chunks/chunk.M66LVJOQ.js +724 -0
- package/cdn/chunks/chunk.MA7NG7CT.js +11 -0
- package/cdn/chunks/chunk.MLDDECJX.js +11 -0
- package/cdn/chunks/chunk.MX74A37K.js +50 -0
- package/cdn/chunks/chunk.N244ZLNW.js +402 -0
- package/cdn/chunks/chunk.N4VXKJ3H.js +299 -0
- package/cdn/chunks/chunk.N74EGIUP.js +11 -0
- package/cdn/chunks/chunk.NE2PBG46.js +25 -0
- package/cdn/chunks/chunk.NFBJC5OG.js +25 -0
- package/cdn/chunks/chunk.NN45B5UV.js +11 -0
- package/cdn/chunks/chunk.NRTMXD42.js +24 -0
- package/cdn/chunks/chunk.NU34C7N5.js +11 -0
- package/cdn/chunks/chunk.NVCAAEJP.js +257 -0
- package/cdn/chunks/chunk.O6A73QV3.js +24 -0
- package/cdn/chunks/chunk.OL3VWXQU.js +118 -0
- package/cdn/chunks/chunk.OTQAYZHD.js +1925 -0
- package/cdn/chunks/chunk.OUOAKPFA.js +24 -0
- package/cdn/chunks/chunk.OWTULY4I.js +11 -0
- package/cdn/chunks/chunk.PCK67K7Q.js +25 -0
- package/cdn/chunks/chunk.PLGVU673.js +11 -0
- package/cdn/chunks/chunk.PNEGYNEM.js +28 -0
- package/cdn/chunks/chunk.PPUUDR74.js +27 -0
- package/cdn/chunks/chunk.PQIXAOO6.js +11 -0
- package/cdn/chunks/chunk.PT5CC63Y.js +2647 -0
- package/cdn/chunks/chunk.PVOS4CMB.js +574 -0
- package/cdn/chunks/chunk.PXJP7OZ6.js +11 -0
- package/cdn/chunks/chunk.PYQYLHC5.js +255 -0
- package/cdn/chunks/chunk.Q4F7SDTW.js +21 -0
- package/cdn/chunks/chunk.QEZ7DNUJ.js +137 -0
- package/cdn/chunks/chunk.QFT4E2NO.js +11 -0
- package/cdn/chunks/chunk.QKZJGEK7.js +25 -0
- package/cdn/chunks/chunk.QMGCWHDA.js +21 -0
- package/cdn/chunks/chunk.QXDZ3ITM.js +216 -0
- package/cdn/chunks/chunk.QZWIIKI2.js +113 -0
- package/cdn/chunks/chunk.RK6BCO7J.js +291 -0
- package/cdn/chunks/chunk.RLREXFTD.js +11 -0
- package/cdn/chunks/chunk.RLW3F65T.js +21 -0
- package/cdn/chunks/chunk.RSV42FXH.js +87 -0
- package/cdn/chunks/chunk.S2WTBVVC.js +93 -0
- package/cdn/chunks/chunk.S4PSRQFZ.js +27 -0
- package/cdn/chunks/chunk.S5OBCNM3.js +7245 -0
- package/cdn/chunks/chunk.SERKWKJL.js +391 -0
- package/cdn/chunks/chunk.SJNJAW55.js +49 -0
- package/cdn/chunks/chunk.SMCTTZ57.js +11 -0
- package/cdn/chunks/chunk.SUDNAO7O.js +120 -0
- package/cdn/chunks/chunk.SYN63DT6.js +11 -0
- package/cdn/chunks/chunk.T2YDJUZA.js +77 -0
- package/cdn/chunks/chunk.TAFRS2HJ.js +29 -0
- package/cdn/chunks/chunk.TBVPQYXO.js +11 -0
- package/cdn/chunks/chunk.TCMMK5SO.js +219 -0
- package/cdn/chunks/chunk.TCTD7BB3.js +11 -0
- package/cdn/chunks/chunk.TH3KULNJ.js +24 -0
- package/cdn/chunks/chunk.TOEOCJ5Y.js +25 -0
- package/cdn/chunks/chunk.TUKUOALN.js +21 -0
- package/cdn/chunks/chunk.UFVJE2US.js +26 -0
- package/cdn/chunks/chunk.UJZVXVFC.js +336 -0
- package/cdn/chunks/chunk.UPNXNIUX.js +21 -0
- package/cdn/chunks/chunk.UTB7U7KC.js +24 -0
- package/cdn/chunks/chunk.UZFCYF3Y.js +302 -0
- package/cdn/chunks/chunk.V2DHCAWN.js +197 -0
- package/cdn/chunks/chunk.V5P2IUUU.js +233 -0
- package/cdn/chunks/chunk.VPS4BDPR.js +21 -0
- package/cdn/chunks/chunk.VVGBUF2K.js +42 -0
- package/cdn/chunks/chunk.WAIBA7LN.js +11 -0
- package/cdn/chunks/chunk.WJIPS52N.js +24 -0
- package/cdn/chunks/chunk.WJYSUU36.js +11 -0
- package/cdn/chunks/chunk.WXPULUI5.js +21 -0
- package/cdn/chunks/chunk.X2LJADGH.js +97 -0
- package/cdn/chunks/chunk.X3RZSOQR.js +21 -0
- package/cdn/chunks/chunk.X4F4Y4IY.js +49 -0
- package/cdn/chunks/chunk.XKQTU7TJ.js +11 -0
- package/cdn/chunks/chunk.XQ6OX7CO.js +502 -0
- package/cdn/chunks/chunk.Y2L4NDGV.js +11 -0
- package/cdn/chunks/chunk.Y6LNLEEW.js +342 -0
- package/cdn/chunks/chunk.YAYUXCI5.js +11 -0
- package/cdn/chunks/chunk.YF74HNC6.js +26 -0
- package/cdn/chunks/chunk.YK63BO2L.js +21 -0
- package/cdn/chunks/chunk.YL2ZBZWN.js +79 -0
- package/cdn/chunks/chunk.YNJWGDX3.js +24 -0
- package/cdn/chunks/chunk.Z3N6IQ4G.js +11 -0
- package/cdn/chunks/chunk.ZAEWAWCF.js +29 -0
- package/cdn/chunks/chunk.ZARCEV5A.js +11 -0
- package/cdn/chunks/chunk.ZCHSYVN6.js +28 -0
- package/cdn/chunks/chunk.ZEFPLKD4.js +27 -0
- package/cdn/chunks/chunk.ZSWDMZNE.js +11 -0
- package/cdn/chunks/chunk.ZVLZBW3N.js +28 -0
- package/cdn/chunks/chunk.ZVRUVM2B.js +21 -0
- package/cdn/components/alert/alert.component.js +7 -7
- package/cdn/components/alert/alert.js +8 -8
- package/cdn/components/animated-image/animated-image.component.js +4 -4
- package/cdn/components/animated-image/animated-image.js +5 -5
- package/cdn/components/animation/animation.component.js +2 -2
- package/cdn/components/animation/animation.js +3 -3
- package/cdn/components/avatar/avatar.component.js +4 -4
- package/cdn/components/avatar/avatar.js +5 -5
- package/cdn/components/badge/badge.component.js +2 -2
- package/cdn/components/badge/badge.js +3 -3
- package/cdn/components/breadcrumb/breadcrumb.component.js +4 -4
- package/cdn/components/breadcrumb/breadcrumb.js +5 -5
- package/cdn/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
- package/cdn/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/cdn/components/button/button.component.js +7 -7
- package/cdn/components/button/button.js +8 -8
- package/cdn/components/button-group/button-group.component.js +2 -2
- package/cdn/components/button-group/button-group.js +3 -3
- package/cdn/components/calendar/calendar.component.js +9 -9
- package/cdn/components/calendar/calendar.js +9 -9
- package/cdn/components/card/card.component.js +2 -2
- package/cdn/components/card/card.js +3 -3
- package/cdn/components/carousel/carousel.component.js +5 -5
- package/cdn/components/carousel/carousel.js +6 -6
- package/cdn/components/carousel-item/carousel-item.component.js +2 -2
- package/cdn/components/carousel-item/carousel-item.js +3 -3
- package/cdn/components/checkbox/checkbox.component.js +5 -5
- package/cdn/components/checkbox/checkbox.js +6 -6
- package/cdn/components/color-picker/color-picker.component.js +16 -16
- package/cdn/components/color-picker/color-picker.js +17 -17
- package/cdn/components/copy-button/copy-button.component.js +6 -6
- package/cdn/components/copy-button/copy-button.js +7 -7
- package/cdn/components/date-panel/date-panel.component.js +12 -12
- package/cdn/components/date-panel/date-panel.js +12 -12
- package/cdn/components/datepicker/datepicker.component.js +16 -16
- package/cdn/components/datepicker/datepicker.js +16 -16
- package/cdn/components/details/details.component.js +4 -4
- package/cdn/components/details/details.js +5 -5
- package/cdn/components/dialog/dialog.component.js +7 -7
- package/cdn/components/dialog/dialog.js +8 -8
- package/cdn/components/divider/divider.component.js +2 -2
- package/cdn/components/divider/divider.js +3 -3
- package/cdn/components/drawer/drawer.component.js +7 -7
- package/cdn/components/drawer/drawer.js +8 -8
- package/cdn/components/dropdown/dropdown.component.js +4 -4
- package/cdn/components/dropdown/dropdown.js +5 -5
- package/cdn/components/format-bytes/format-bytes.component.js +2 -2
- package/cdn/components/format-bytes/format-bytes.js +3 -3
- package/cdn/components/format-date/format-date.component.js +2 -2
- package/cdn/components/format-date/format-date.js +3 -3
- package/cdn/components/format-number/format-number.component.js +2 -2
- package/cdn/components/format-number/format-number.js +3 -3
- package/cdn/components/icon/icon.component.js +3 -3
- package/cdn/components/icon/icon.js +4 -4
- package/cdn/components/icon-button/icon-button.component.js +4 -4
- package/cdn/components/icon-button/icon-button.js +5 -5
- package/cdn/components/image-comparer/image-comparer.component.js +4 -4
- package/cdn/components/image-comparer/image-comparer.js +5 -5
- package/cdn/components/include/include.component.js +3 -3
- package/cdn/components/include/include.js +4 -4
- package/cdn/components/input/input.component.js +6 -6
- package/cdn/components/input/input.js +7 -7
- package/cdn/components/menu/menu.component.js +2 -2
- package/cdn/components/menu/menu.js +3 -3
- package/cdn/components/menu-item/menu-item.component.js +7 -7
- package/cdn/components/menu-item/menu-item.js +8 -8
- package/cdn/components/menu-label/menu-label.component.js +2 -2
- package/cdn/components/menu-label/menu-label.js +3 -3
- package/cdn/components/mutation-observer/mutation-observer.component.js +2 -2
- package/cdn/components/mutation-observer/mutation-observer.js +3 -3
- package/cdn/components/nav/nav.component.js +2 -2
- package/cdn/components/nav/nav.js +3 -3
- package/cdn/components/nav-group/nav-group.component.js +2 -2
- package/cdn/components/nav-group/nav-group.js +3 -3
- package/cdn/components/nav-item/nav-item.component.js +2 -2
- package/cdn/components/nav-item/nav-item.js +3 -3
- package/cdn/components/nav-submenu/nav-submenu.component.js +5 -5
- package/cdn/components/nav-submenu/nav-submenu.js +6 -6
- package/cdn/components/option/option.component.js +4 -4
- package/cdn/components/option/option.js +5 -5
- package/cdn/components/pagination/custom-select.js +12 -12
- package/cdn/components/pagination/pagination.component.js +13 -13
- package/cdn/components/pagination/pagination.js +13 -13
- package/cdn/components/popup/popup.component.js +2 -2
- package/cdn/components/popup/popup.js +3 -3
- package/cdn/components/progress-bar/progress-bar.component.js +3 -3
- package/cdn/components/progress-bar/progress-bar.js +4 -4
- package/cdn/components/progress-ring/progress-ring.component.js +2 -2
- package/cdn/components/progress-ring/progress-ring.js +3 -3
- package/cdn/components/qr-code/qr-code.component.js +2 -2
- package/cdn/components/qr-code/qr-code.js +3 -3
- package/cdn/components/radio/radio.component.js +4 -4
- package/cdn/components/radio/radio.js +5 -5
- package/cdn/components/radio-button/radio-button.component.js +2 -2
- package/cdn/components/radio-button/radio-button.js +3 -3
- package/cdn/components/radio-group/radio-group.component.js +4 -4
- package/cdn/components/radio-group/radio-group.js +5 -5
- package/cdn/components/range/range.component.js +4 -4
- package/cdn/components/range/range.js +5 -5
- package/cdn/components/rating/rating.component.js +4 -4
- package/cdn/components/rating/rating.js +5 -5
- package/cdn/components/relative-time/relative-time.component.js +2 -2
- package/cdn/components/relative-time/relative-time.js +3 -3
- package/cdn/components/resize-observer/resize-observer.component.js +2 -2
- package/cdn/components/resize-observer/resize-observer.js +3 -3
- package/cdn/components/screen/screen.component.js +2 -2
- package/cdn/components/screen/screen.js +3 -3
- package/cdn/components/select/select.component.js +9 -9
- package/cdn/components/select/select.js +10 -10
- package/cdn/components/skeleton/skeleton.component.js +2 -2
- package/cdn/components/skeleton/skeleton.js +3 -3
- package/cdn/components/spinner/spinner.component.js +2 -2
- package/cdn/components/spinner/spinner.js +3 -3
- package/cdn/components/split-panel/split-panel.component.js +3 -3
- package/cdn/components/split-panel/split-panel.js +4 -4
- package/cdn/components/switch/switch.component.js +2 -2
- package/cdn/components/switch/switch.js +3 -3
- package/cdn/components/tab/tab.component.js +6 -6
- package/cdn/components/tab/tab.js +7 -7
- package/cdn/components/tab-group/tab-group.component.js +7 -7
- package/cdn/components/tab-group/tab-group.js +8 -8
- package/cdn/components/tab-panel/tab-panel.component.js +2 -2
- package/cdn/components/tab-panel/tab-panel.js +3 -3
- package/cdn/components/table/body-table.js +2 -2
- package/cdn/components/table/head-table.js +23 -23
- package/cdn/components/table/spinner-container.js +2 -2
- package/cdn/components/table/table.component.js +31 -31
- package/cdn/components/table/table.js +32 -32
- package/cdn/components/tag/tag.component.js +6 -6
- package/cdn/components/tag/tag.js +7 -7
- package/cdn/components/textarea/textarea.component.js +2 -2
- package/cdn/components/textarea/textarea.js +3 -3
- package/cdn/components/time-panel/time-panel.component.js +8 -8
- package/cdn/components/time-panel/time-panel.js +8 -8
- package/cdn/components/timepicker/timepicker.component.js +16 -16
- package/cdn/components/timepicker/timepicker.js +16 -16
- package/cdn/components/tooltip/tooltip.component.js +3 -3
- package/cdn/components/tooltip/tooltip.js +4 -4
- package/cdn/components/tree/tree.component.js +11 -11
- package/cdn/components/tree/tree.js +12 -12
- package/cdn/components/tree-item/tree-item.component.js +9 -9
- package/cdn/components/tree-item/tree-item.js +10 -10
- package/cdn/components/visually-hidden/visually-hidden.component.js +2 -2
- package/cdn/components/visually-hidden/visually-hidden.js +3 -3
- package/cdn/custom-elements.json +4298 -4298
- package/cdn/react/alert/index.js +8 -8
- package/cdn/react/animated-image/index.js +5 -5
- package/cdn/react/animation/index.js +3 -3
- package/cdn/react/avatar/index.js +5 -5
- package/cdn/react/badge/index.js +3 -3
- package/cdn/react/breadcrumb/index.js +5 -5
- package/cdn/react/breadcrumb-item/index.js +3 -3
- package/cdn/react/button/index.js +8 -8
- package/cdn/react/button-group/index.js +3 -3
- package/cdn/react/card/index.js +3 -3
- package/cdn/react/carousel/index.js +6 -6
- package/cdn/react/carousel-item/index.js +3 -3
- package/cdn/react/checkbox/index.js +6 -6
- package/cdn/react/color-picker/index.js +17 -17
- package/cdn/react/copy-button/index.js +7 -7
- package/cdn/react/date-panel/index.js +13 -13
- package/cdn/react/datepicker/index.js +17 -17
- package/cdn/react/details/index.js +5 -5
- package/cdn/react/dialog/index.js +8 -8
- package/cdn/react/divider/index.js +3 -3
- package/cdn/react/drawer/index.js +8 -8
- package/cdn/react/dropdown/index.js +5 -5
- package/cdn/react/format-bytes/index.js +3 -3
- package/cdn/react/format-date/index.js +3 -3
- package/cdn/react/format-number/index.js +3 -3
- package/cdn/react/icon/index.js +4 -4
- package/cdn/react/icon-button/index.js +5 -5
- package/cdn/react/image-comparer/index.js +5 -5
- package/cdn/react/include/index.js +4 -4
- package/cdn/react/index.js +189 -189
- package/cdn/react/input/index.js +7 -7
- package/cdn/react/menu/index.js +3 -3
- package/cdn/react/menu-item/index.js +8 -8
- package/cdn/react/menu-label/index.js +3 -3
- package/cdn/react/mutation-observer/index.js +3 -3
- package/cdn/react/nav/index.js +3 -3
- package/cdn/react/nav-group/index.js +3 -3
- package/cdn/react/nav-item/index.js +3 -3
- package/cdn/react/nav-submenu/index.js +6 -6
- package/cdn/react/option/index.js +5 -5
- package/cdn/react/pagination/index.js +14 -14
- package/cdn/react/popup/index.js +3 -3
- package/cdn/react/progress-bar/index.js +4 -4
- package/cdn/react/progress-ring/index.js +3 -3
- package/cdn/react/qr-code/index.js +3 -3
- package/cdn/react/radio/index.js +5 -5
- package/cdn/react/radio-button/index.js +3 -3
- package/cdn/react/radio-group/index.js +5 -5
- package/cdn/react/range/index.js +5 -5
- package/cdn/react/rating/index.js +5 -5
- package/cdn/react/relative-time/index.js +3 -3
- package/cdn/react/resize-observer/index.js +3 -3
- package/cdn/react/screen/index.js +3 -3
- package/cdn/react/select/index.js +10 -10
- package/cdn/react/skeleton/index.js +3 -3
- package/cdn/react/spinner/index.js +3 -3
- package/cdn/react/split-panel/index.js +4 -4
- package/cdn/react/switch/index.js +3 -3
- package/cdn/react/tab/index.js +7 -7
- package/cdn/react/tab-group/index.js +8 -8
- package/cdn/react/tab-panel/index.js +3 -3
- package/cdn/react/table/index.js +32 -32
- package/cdn/react/tag/index.js +7 -7
- package/cdn/react/textarea/index.js +3 -3
- package/cdn/react/timepicker/index.js +17 -17
- package/cdn/react/tooltip/index.js +4 -4
- package/cdn/react/tree/index.js +12 -12
- package/cdn/react/tree-item/index.js +10 -10
- package/cdn/react/visually-hidden/index.js +3 -3
- package/cdn/shoelace.js +175 -175
- package/cdn/types/vue/index.d.ts +404 -404
- package/cdn/vscode.html-custom-data.json +319 -319
- package/cdn/web-types.json +761 -761
- package/dist/assets/icons/Union.svg +4 -0
- package/dist/assets/icons/add.svg +3 -0
- package/dist/assets/icons/arrow-clockwise.svg +3 -4
- package/dist/assets/icons/arrow-left.svg +3 -3
- package/dist/assets/icons/arrow-right.svg +3 -3
- package/dist/assets/icons/attach.svg +3 -0
- package/dist/assets/icons/caret-down-fill.svg +3 -3
- package/dist/assets/icons/caret-right-fill.svg +3 -3
- package/dist/assets/icons/check-circle-fill.svg +3 -3
- package/dist/assets/icons/check2-circle.svg +10 -4
- package/dist/assets/icons/checkbox-half.svg +3 -0
- package/dist/assets/icons/checkbox-selected.svg +3 -0
- package/dist/assets/icons/chevron-down.svg +3 -3
- package/dist/assets/icons/chevron-left.svg +3 -3
- package/dist/assets/icons/chevron-right.svg +3 -3
- package/dist/assets/icons/chevron-up.svg +3 -3
- package/dist/assets/icons/copy.svg +3 -3
- package/dist/assets/icons/dash-square.svg +11 -4
- package/dist/assets/icons/date.svg +3 -0
- package/dist/assets/icons/download.svg +3 -4
- package/dist/assets/icons/drag.svg +10 -0
- package/dist/assets/icons/exclamation-circle-fill.svg +3 -3
- package/dist/assets/icons/exclamation-triangle.svg +11 -4
- package/dist/assets/icons/eye-slash.svg +6 -5
- package/dist/assets/icons/eye.svg +4 -4
- package/dist/assets/icons/filter.svg +3 -3
- package/dist/assets/icons/gear.svg +3 -4
- package/dist/assets/icons/icons.json +160 -0
- package/dist/assets/icons/info-circle.svg +5 -4
- package/dist/assets/icons/jump-to-left.svg +3 -0
- package/dist/assets/icons/jump-to-right.svg +3 -0
- package/dist/assets/icons/language.svg +3 -0
- package/dist/assets/icons/listen.svg +3 -0
- package/dist/assets/icons/minus.svg +3 -0
- package/dist/assets/icons/notify.svg +3 -0
- package/dist/assets/icons/organize.svg +3 -0
- package/dist/assets/icons/pencil.svg +10 -3
- package/dist/assets/icons/people.svg +10 -3
- package/dist/assets/icons/person.svg +11 -3
- package/dist/assets/icons/plus-square.svg +11 -4
- package/dist/assets/icons/question-circle.svg +5 -4
- package/dist/assets/icons/radio-selected.svg +3 -0
- package/dist/assets/icons/radio-unselected.svg +3 -0
- package/dist/assets/icons/resize.svg +3 -0
- package/dist/assets/icons/search.svg +3 -3
- package/dist/assets/icons/sort.svg +4 -0
- package/dist/assets/icons/star.svg +3 -3
- package/dist/assets/icons/threedots.svg +3 -0
- package/dist/assets/icons/time.svg +3 -0
- package/dist/assets/icons/trash3.svg +3 -3
- package/dist/assets/icons/upload.svg +3 -4
- package/dist/assets/icons/x-lg.svg +3 -3
- package/dist/assets/icons/zoom-in.svg +4 -5
- package/dist/chunks/chunk.24JCJPFS.js +11 -0
- package/dist/chunks/chunk.24YFAXAL.js +27 -0
- package/dist/chunks/chunk.2BYPJTDS.js +28 -0
- package/dist/chunks/chunk.2JUZRB2J.js +24 -0
- package/dist/chunks/chunk.2OQAG4OK.js +361 -0
- package/dist/chunks/chunk.2OX3WRST.js +45 -0
- package/dist/chunks/chunk.2TGDONBT.js +11 -0
- package/dist/chunks/chunk.2UESVMY6.js +11 -0
- package/dist/chunks/chunk.33AMEOTZ.js +21 -0
- package/dist/chunks/chunk.3AD2CXBX.js +949 -0
- package/dist/chunks/chunk.3LE7DJ56.js +116 -0
- package/dist/chunks/chunk.3OBEKYHK.js +21 -0
- package/dist/chunks/chunk.3OYKN5HS.js +11 -0
- package/dist/chunks/chunk.3TYXDO2K.js +11 -0
- package/dist/chunks/chunk.3WBAMZRV.js +24 -0
- package/dist/chunks/chunk.3XTJM2XB.js +11 -0
- package/dist/chunks/chunk.3ZRFBIP7.js +338 -0
- package/dist/chunks/chunk.47QEQQJC.js +11 -0
- package/dist/chunks/chunk.47YOCOBU.js +29 -0
- package/dist/chunks/chunk.4DIHPJSP.js +28 -0
- package/dist/chunks/chunk.4DQAMWWZ.js +306 -0
- package/dist/chunks/chunk.4O25DEXU.js +11 -0
- package/dist/chunks/chunk.4OEA3MVK.js +24 -0
- package/dist/chunks/chunk.4Q5ZIF3N.js +167 -0
- package/dist/chunks/chunk.4Y2CKVEC.js +11 -0
- package/dist/chunks/chunk.5KSDGVLS.js +11 -0
- package/dist/chunks/chunk.5KSHFKNA.js +24 -0
- package/dist/chunks/chunk.5RIQPUL7.js +21 -0
- package/dist/chunks/chunk.5TFAQ2NR.js +11 -0
- package/dist/chunks/chunk.5XTVGMG5.js +11 -0
- package/dist/chunks/chunk.63ZCUCDG.js +11 -0
- package/dist/chunks/chunk.64MHQOAR.js +11 -0
- package/dist/chunks/chunk.6FSBSTOL.js +126 -0
- package/dist/chunks/chunk.6JMTGAN5.js +21 -0
- package/dist/chunks/chunk.6LEXMZSA.js +21 -0
- package/dist/chunks/chunk.6ML3D323.js +21 -0
- package/dist/chunks/chunk.6QP52PB5.js +25 -0
- package/dist/chunks/chunk.6SXKNC6G.js +91 -0
- package/dist/chunks/chunk.6WE6TUWW.js +214 -0
- package/dist/chunks/chunk.77E7JNN5.js +11 -0
- package/dist/chunks/chunk.7BGADTVL.js +25 -0
- package/dist/chunks/chunk.7EYYO42F.js +21 -0
- package/dist/chunks/chunk.7I6XM5UP.js +27 -0
- package/dist/chunks/chunk.7KTXBDOQ.js +11 -0
- package/dist/chunks/chunk.7MVQJDOL.js +21 -0
- package/dist/chunks/chunk.7U6HAMQ5.js +11 -0
- package/dist/chunks/chunk.7VL35WAU.js +75 -0
- package/dist/chunks/chunk.A2RCU24N.js +21 -0
- package/dist/chunks/chunk.A56UU7VK.js +24 -0
- package/dist/chunks/chunk.ABWGT5QI.js +448 -0
- package/dist/chunks/chunk.ADORHWUV.js +263 -0
- package/dist/chunks/chunk.AE26YVIY.js +11 -0
- package/dist/chunks/chunk.AI272IQB.js +29 -0
- package/dist/chunks/chunk.AXE3OJLG.js +24 -0
- package/dist/chunks/chunk.AYMVTXL7.js +27 -0
- package/dist/chunks/chunk.AZ3RC4AT.js +22 -0
- package/dist/chunks/chunk.BAEVN6KY.js +11 -0
- package/dist/chunks/chunk.BHCAKHM5.js +11 -0
- package/dist/chunks/chunk.BLCBOYIE.js +231 -0
- package/dist/chunks/chunk.BMCE32AA.js +27 -0
- package/dist/chunks/chunk.BXMX3BME.js +21 -0
- package/dist/chunks/chunk.C2H36B45.js +274 -0
- package/dist/chunks/chunk.C3AAERA6.js +11 -0
- package/dist/chunks/chunk.CBNAHC5Y.js +192 -0
- package/dist/chunks/chunk.CRJPDWTU.js +814 -0
- package/dist/chunks/chunk.CUACSHSL.js +24 -0
- package/dist/chunks/chunk.D2DVT5W4.js +11 -0
- package/dist/chunks/chunk.D4V35CG7.js +11 -0
- package/dist/chunks/chunk.D57XQ5OQ.js +25 -0
- package/dist/chunks/chunk.D6MGMKS3.js +11 -0
- package/dist/chunks/chunk.D7HMIWUM.js +21 -0
- package/dist/chunks/chunk.DCQM44J4.js +25 -0
- package/dist/chunks/chunk.DIE4F4L2.js +11 -0
- package/dist/chunks/chunk.DTZVN4ZH.js +21 -0
- package/dist/chunks/chunk.E6QNXQ2G.js +11 -0
- package/dist/chunks/chunk.F3ETBO5U.js +24 -0
- package/dist/chunks/chunk.FGJ7PZ5N.js +752 -0
- package/dist/chunks/chunk.FLUFA3ER.js +494 -0
- package/dist/chunks/chunk.FQIGTIMY.js +28 -0
- package/dist/chunks/chunk.FSCUDDCF.js +11 -0
- package/dist/chunks/chunk.FUTMBVNX.js +11 -0
- package/dist/chunks/chunk.GG3ZUHJV.js +21 -0
- package/dist/chunks/chunk.GKSTUNJ4.js +11 -0
- package/dist/chunks/chunk.GQ7YDSPB.js +111 -0
- package/dist/chunks/chunk.GQRIAHO4.js +11 -0
- package/dist/chunks/chunk.HFJ53BFM.js +90 -0
- package/dist/chunks/chunk.HIOCELIO.js +11 -0
- package/dist/chunks/chunk.HJFDN2NJ.js +22 -0
- package/dist/chunks/chunk.HOT4BVMU.js +25 -0
- package/dist/chunks/chunk.HS556FKR.js +25 -0
- package/dist/chunks/chunk.I4KYJA5M.js +52 -0
- package/dist/chunks/chunk.I6LRHUVQ.js +11 -0
- package/dist/chunks/chunk.IFIDMWGB.js +21 -0
- package/dist/chunks/chunk.IFWPJR2L.js +11 -0
- package/dist/chunks/chunk.IGC2XAPJ.js +21 -0
- package/dist/chunks/chunk.IMAAXE2Q.js +45 -0
- package/dist/chunks/chunk.IPSR5MF4.js +119 -0
- package/dist/chunks/chunk.IZZQPRN5.js +11 -0
- package/dist/chunks/chunk.J5JBSIAI.js +113 -0
- package/dist/chunks/chunk.J7GEFYRN.js +286 -0
- package/dist/chunks/chunk.JD5VKZSV.js +11 -0
- package/dist/chunks/chunk.JSGP6FH6.js +11 -0
- package/dist/chunks/chunk.JUXRG2ZU.js +328 -0
- package/dist/chunks/chunk.JX7TUCDF.js +21 -0
- package/dist/chunks/chunk.K3KMYYYI.js +126 -0
- package/dist/chunks/chunk.K3SPPBSK.js +100 -0
- package/dist/chunks/chunk.K46S2N2E.js +11 -0
- package/dist/chunks/chunk.KADND6T7.js +11 -0
- package/dist/chunks/chunk.KCE6HXTM.js +11 -0
- package/dist/chunks/chunk.KMEVP5JM.js +11 -0
- package/dist/chunks/chunk.KONFEWJJ.js +11 -0
- package/dist/chunks/chunk.KROSAATH.js +34 -0
- package/dist/chunks/chunk.KTQV4KCH.js +21 -0
- package/dist/chunks/chunk.KXMFDM7V.js +11 -0
- package/dist/chunks/chunk.L77IOKRA.js +100 -0
- package/dist/chunks/chunk.LI4PIAXJ.js +11 -0
- package/dist/chunks/chunk.LM2GLM5U.js +371 -0
- package/dist/chunks/chunk.LNOMSVC7.js +227 -0
- package/dist/chunks/chunk.LOZL6Q4S.js +151 -0
- package/dist/chunks/chunk.LT5PYQM2.js +11 -0
- package/dist/chunks/chunk.M7GTV5KG.js +96 -0
- package/dist/chunks/chunk.MDODUGYJ.js +21 -0
- package/dist/chunks/chunk.MIZZELJ6.js +93 -0
- package/dist/chunks/chunk.MOGIWE5Z.js +27 -0
- package/dist/chunks/chunk.MPDIPD3S.js +11 -0
- package/dist/chunks/chunk.MQFX6HVM.js +21 -0
- package/dist/chunks/chunk.N2XI22GZ.js +42 -0
- package/dist/chunks/chunk.N5FD5NXG.js +11 -0
- package/dist/chunks/chunk.N6CM3M5F.js +132 -0
- package/dist/chunks/chunk.N7FGMCW3.js +21 -0
- package/dist/chunks/chunk.NPDZEN2O.js +73 -0
- package/dist/chunks/chunk.NQPOLKOS.js +11 -0
- package/dist/chunks/chunk.NTH5PH6D.js +85 -0
- package/dist/chunks/chunk.NWST6VHG.js +311 -0
- package/dist/chunks/chunk.NYGHPMF6.js +25 -0
- package/dist/chunks/chunk.OE6VLDUJ.js +11 -0
- package/dist/chunks/chunk.OOEZMIJE.js +280 -0
- package/dist/chunks/chunk.OP7QLQJD.js +63 -0
- package/dist/chunks/chunk.OU4FDW6N.js +21 -0
- package/dist/chunks/chunk.P6AA5MOA.js +24 -0
- package/dist/chunks/chunk.PBHJEZ2H.js +59 -0
- package/dist/chunks/chunk.PJE5SZLI.js +50 -0
- package/dist/chunks/chunk.PQNGHLFV.js +147 -0
- package/dist/chunks/chunk.PRERWPVU.js +293 -0
- package/dist/chunks/chunk.PRF3FOB6.js +24 -0
- package/dist/chunks/chunk.PRKY2UJU.js +33 -0
- package/dist/chunks/chunk.PTZ5J6PL.js +134 -0
- package/dist/chunks/chunk.PU5YIDID.js +117 -0
- package/dist/chunks/chunk.PVMVRYSF.js +294 -0
- package/dist/chunks/chunk.Q5HSK6Q6.js +11 -0
- package/dist/chunks/chunk.Q5INZRCZ.js +11 -0
- package/dist/chunks/chunk.QF6VINDV.js +11 -0
- package/dist/chunks/chunk.QQFXOVES.js +29 -0
- package/dist/chunks/chunk.QQZW2WXC.js +11 -0
- package/dist/chunks/chunk.QS6GIF5V.js +11 -0
- package/dist/chunks/chunk.RGY63AHL.js +11 -0
- package/dist/chunks/chunk.RJ6OKX6E.js +46 -0
- package/dist/chunks/chunk.RRXYVAAU.js +503 -0
- package/dist/chunks/chunk.SAUCJKFK.js +11 -0
- package/dist/chunks/chunk.SBBXFCWF.js +11 -0
- package/dist/chunks/chunk.SECGSCLV.js +25 -0
- package/dist/chunks/chunk.SHMTARDA.js +11 -0
- package/dist/chunks/chunk.SL5UGLUU.js +25 -0
- package/dist/chunks/chunk.SQ7EKPKN.js +11 -0
- package/dist/chunks/chunk.T6VCW6JZ.js +29 -0
- package/dist/chunks/chunk.TBKBLPKQ.js +75 -0
- package/dist/chunks/chunk.TCQCTMDP.js +247 -0
- package/dist/chunks/chunk.TEHSILQV.js +28 -0
- package/dist/chunks/chunk.TS7UGVMP.js +26 -0
- package/dist/chunks/chunk.TSTXB3ED.js +417 -0
- package/dist/chunks/chunk.TWR7M2O4.js +11 -0
- package/dist/chunks/chunk.TXK6TJMT.js +277 -0
- package/dist/chunks/chunk.TYJKKM6T.js +135 -0
- package/dist/chunks/chunk.U4UK2ESD.js +11 -0
- package/dist/chunks/chunk.UFHEBOTP.js +11 -0
- package/dist/chunks/chunk.UFMN3PHW.js +21 -0
- package/dist/chunks/chunk.UGCTDIZS.js +21 -0
- package/dist/chunks/chunk.UJY66GBC.js +568 -0
- package/dist/chunks/chunk.UKKX2IA7.js +21 -0
- package/dist/chunks/chunk.UR7D7W77.js +28 -0
- package/dist/chunks/chunk.UTDCBGYZ.js +24 -0
- package/dist/chunks/chunk.UUOI5HE6.js +67 -0
- package/dist/chunks/chunk.UXO3E2PW.js +21 -0
- package/dist/chunks/chunk.UYWN5P5X.js +384 -0
- package/dist/chunks/chunk.V2H6GVD2.js +26 -0
- package/dist/chunks/chunk.VHHBFM4E.js +181 -0
- package/dist/chunks/chunk.VHRTMFWQ.js +11 -0
- package/dist/chunks/chunk.VKQORXLB.js +28 -0
- package/dist/chunks/chunk.W3FASBZI.js +1056 -0
- package/dist/chunks/chunk.WA533QRX.js +80 -0
- package/dist/chunks/chunk.WDOD3SVU.js +550 -0
- package/dist/chunks/chunk.XC3KHZBK.js +119 -0
- package/dist/chunks/chunk.XHNI4KIO.js +25 -0
- package/dist/chunks/chunk.XJFPQDF7.js +24 -0
- package/dist/chunks/chunk.XKKSYCNX.js +25 -0
- package/dist/chunks/chunk.XN35THY2.js +397 -0
- package/dist/chunks/chunk.XUVE5DZ5.js +24 -0
- package/dist/chunks/chunk.XZG7J5MF.js +26 -0
- package/dist/chunks/chunk.YGMKGXUY.js +315 -0
- package/dist/chunks/chunk.YGUW2LXO.js +109 -0
- package/dist/chunks/chunk.YNORD2MI.js +11 -0
- package/dist/chunks/chunk.YRGFICMY.js +27 -0
- package/dist/chunks/chunk.ZH7CVCHX.js +337 -0
- package/dist/chunks/chunk.ZJC4FLKC.js +437 -0
- package/dist/chunks/chunk.ZK6W4KRT.js +11 -0
- package/dist/chunks/chunk.ZQMRTBNR.js +180 -0
- package/dist/chunks/chunk.ZVYNO5RH.js +213 -0
- package/dist/chunks/chunk.ZXGRLZON.js +252 -0
- package/dist/components/alert/alert.component.js +6 -6
- package/dist/components/alert/alert.js +7 -7
- package/dist/components/animated-image/animated-image.component.js +4 -4
- package/dist/components/animated-image/animated-image.js +5 -5
- package/dist/components/animation/animation.component.js +2 -2
- package/dist/components/animation/animation.js +3 -3
- package/dist/components/avatar/avatar.component.js +4 -4
- package/dist/components/avatar/avatar.js +5 -5
- package/dist/components/badge/badge.component.js +2 -2
- package/dist/components/badge/badge.js +3 -3
- package/dist/components/breadcrumb/breadcrumb.component.js +4 -4
- package/dist/components/breadcrumb/breadcrumb.js +5 -5
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/dist/components/button/button.component.js +6 -6
- package/dist/components/button/button.js +7 -7
- package/dist/components/button-group/button-group.component.js +2 -2
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/calendar/calendar.component.js +8 -8
- package/dist/components/calendar/calendar.js +8 -8
- package/dist/components/card/card.component.js +2 -2
- package/dist/components/card/card.js +3 -3
- package/dist/components/carousel/carousel.component.js +5 -5
- package/dist/components/carousel/carousel.js +6 -6
- package/dist/components/carousel-item/carousel-item.component.js +2 -2
- package/dist/components/carousel-item/carousel-item.js +3 -3
- package/dist/components/checkbox/checkbox.component.js +5 -5
- package/dist/components/checkbox/checkbox.js +6 -6
- package/dist/components/color-picker/color-picker.component.js +15 -15
- package/dist/components/color-picker/color-picker.js +16 -16
- package/dist/components/copy-button/copy-button.component.js +6 -6
- package/dist/components/copy-button/copy-button.js +7 -7
- package/dist/components/date-panel/date-panel.component.js +11 -11
- package/dist/components/date-panel/date-panel.js +11 -11
- package/dist/components/datepicker/datepicker.component.js +15 -15
- package/dist/components/datepicker/datepicker.js +15 -15
- package/dist/components/details/details.component.js +4 -4
- package/dist/components/details/details.js +5 -5
- package/dist/components/dialog/dialog.component.js +6 -6
- package/dist/components/dialog/dialog.js +7 -7
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +6 -6
- package/dist/components/drawer/drawer.js +7 -7
- package/dist/components/dropdown/dropdown.component.js +3 -3
- package/dist/components/dropdown/dropdown.js +4 -4
- package/dist/components/format-bytes/format-bytes.component.js +2 -2
- package/dist/components/format-bytes/format-bytes.js +3 -3
- package/dist/components/format-date/format-date.component.js +2 -2
- package/dist/components/format-date/format-date.js +3 -3
- package/dist/components/format-number/format-number.component.js +2 -2
- package/dist/components/format-number/format-number.js +3 -3
- package/dist/components/icon/icon.component.js +3 -3
- package/dist/components/icon/icon.js +4 -4
- package/dist/components/icon-button/icon-button.component.js +4 -4
- package/dist/components/icon-button/icon-button.js +5 -5
- package/dist/components/image-comparer/image-comparer.component.js +4 -4
- package/dist/components/image-comparer/image-comparer.js +5 -5
- package/dist/components/include/include.component.js +3 -3
- package/dist/components/include/include.js +4 -4
- package/dist/components/input/input.component.js +5 -5
- package/dist/components/input/input.js +6 -6
- package/dist/components/menu/menu.component.js +2 -2
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/menu-item/menu-item.component.js +7 -7
- package/dist/components/menu-item/menu-item.js +8 -8
- package/dist/components/menu-label/menu-label.component.js +2 -2
- package/dist/components/menu-label/menu-label.js +3 -3
- package/dist/components/mutation-observer/mutation-observer.component.js +2 -2
- package/dist/components/mutation-observer/mutation-observer.js +3 -3
- package/dist/components/nav/nav.component.js +2 -2
- package/dist/components/nav/nav.js +3 -3
- package/dist/components/nav-group/nav-group.component.js +2 -2
- package/dist/components/nav-group/nav-group.js +3 -3
- package/dist/components/nav-item/nav-item.component.js +2 -2
- package/dist/components/nav-item/nav-item.js +3 -3
- package/dist/components/nav-submenu/nav-submenu.component.js +5 -5
- package/dist/components/nav-submenu/nav-submenu.js +6 -6
- package/dist/components/option/option.component.js +4 -4
- package/dist/components/option/option.js +5 -5
- package/dist/components/pagination/custom-select.js +11 -11
- package/dist/components/pagination/pagination.component.js +12 -12
- package/dist/components/pagination/pagination.js +12 -12
- package/dist/components/popup/popup.component.js +2 -2
- package/dist/components/popup/popup.js +3 -3
- package/dist/components/progress-bar/progress-bar.component.js +2 -2
- package/dist/components/progress-bar/progress-bar.js +3 -3
- package/dist/components/progress-ring/progress-ring.component.js +2 -2
- package/dist/components/progress-ring/progress-ring.js +3 -3
- package/dist/components/qr-code/qr-code.component.js +2 -2
- package/dist/components/qr-code/qr-code.js +3 -3
- package/dist/components/radio/radio.component.js +4 -4
- package/dist/components/radio/radio.js +5 -5
- package/dist/components/radio-button/radio-button.component.js +2 -2
- package/dist/components/radio-button/radio-button.js +3 -3
- package/dist/components/radio-group/radio-group.component.js +4 -4
- package/dist/components/radio-group/radio-group.js +5 -5
- package/dist/components/range/range.component.js +3 -3
- package/dist/components/range/range.js +4 -4
- package/dist/components/rating/rating.component.js +4 -4
- package/dist/components/rating/rating.js +5 -5
- package/dist/components/relative-time/relative-time.component.js +2 -2
- package/dist/components/relative-time/relative-time.js +3 -3
- package/dist/components/resize-observer/resize-observer.component.js +2 -2
- package/dist/components/resize-observer/resize-observer.js +3 -3
- package/dist/components/screen/screen.component.js +2 -2
- package/dist/components/screen/screen.js +3 -3
- package/dist/components/select/select.component.js +8 -8
- package/dist/components/select/select.js +9 -9
- package/dist/components/skeleton/skeleton.component.js +2 -2
- package/dist/components/skeleton/skeleton.js +3 -3
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/spinner/spinner.js +3 -3
- package/dist/components/split-panel/split-panel.component.js +2 -2
- package/dist/components/split-panel/split-panel.js +3 -3
- package/dist/components/switch/switch.component.js +2 -2
- package/dist/components/switch/switch.js +3 -3
- package/dist/components/tab/tab.component.js +5 -5
- package/dist/components/tab/tab.js +6 -6
- package/dist/components/tab-group/tab-group.component.js +6 -6
- package/dist/components/tab-group/tab-group.js +7 -7
- package/dist/components/tab-panel/tab-panel.component.js +2 -2
- package/dist/components/tab-panel/tab-panel.js +3 -3
- package/dist/components/table/body-table.js +2 -2
- package/dist/components/table/head-table.js +22 -22
- package/dist/components/table/spinner-container.js +2 -2
- package/dist/components/table/table.component.js +30 -30
- package/dist/components/table/table.js +31 -31
- package/dist/components/tag/tag.component.js +5 -5
- package/dist/components/tag/tag.js +6 -6
- package/dist/components/textarea/textarea.component.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/time-panel/time-panel.component.js +7 -7
- package/dist/components/time-panel/time-panel.js +7 -7
- package/dist/components/timepicker/timepicker.component.js +15 -15
- package/dist/components/timepicker/timepicker.js +15 -15
- package/dist/components/tooltip/tooltip.component.js +3 -3
- package/dist/components/tooltip/tooltip.js +4 -4
- package/dist/components/tree/tree.component.js +10 -10
- package/dist/components/tree/tree.js +11 -11
- package/dist/components/tree-item/tree-item.component.js +8 -8
- package/dist/components/tree-item/tree-item.js +9 -9
- package/dist/components/visually-hidden/visually-hidden.component.js +2 -2
- package/dist/components/visually-hidden/visually-hidden.js +3 -3
- package/dist/custom-elements.json +4298 -4298
- package/dist/react/alert/index.js +7 -7
- package/dist/react/animated-image/index.js +5 -5
- package/dist/react/animation/index.js +3 -3
- package/dist/react/avatar/index.js +5 -5
- package/dist/react/badge/index.js +3 -3
- package/dist/react/breadcrumb/index.js +5 -5
- package/dist/react/breadcrumb-item/index.js +3 -3
- package/dist/react/button/index.js +7 -7
- package/dist/react/button-group/index.js +3 -3
- package/dist/react/card/index.js +3 -3
- package/dist/react/carousel/index.js +6 -6
- package/dist/react/carousel-item/index.js +3 -3
- package/dist/react/checkbox/index.js +6 -6
- package/dist/react/color-picker/index.js +16 -16
- package/dist/react/copy-button/index.js +7 -7
- package/dist/react/date-panel/index.js +12 -12
- package/dist/react/datepicker/index.js +16 -16
- package/dist/react/details/index.js +5 -5
- package/dist/react/dialog/index.js +7 -7
- package/dist/react/divider/index.js +3 -3
- package/dist/react/drawer/index.js +7 -7
- package/dist/react/dropdown/index.js +4 -4
- package/dist/react/format-bytes/index.js +3 -3
- package/dist/react/format-date/index.js +3 -3
- package/dist/react/format-number/index.js +3 -3
- package/dist/react/icon/index.js +4 -4
- package/dist/react/icon-button/index.js +5 -5
- package/dist/react/image-comparer/index.js +5 -5
- package/dist/react/include/index.js +4 -4
- package/dist/react/index.js +188 -188
- package/dist/react/input/index.js +6 -6
- package/dist/react/menu/index.js +3 -3
- package/dist/react/menu-item/index.js +8 -8
- package/dist/react/menu-label/index.js +3 -3
- package/dist/react/mutation-observer/index.js +3 -3
- package/dist/react/nav/index.js +3 -3
- package/dist/react/nav-group/index.js +3 -3
- package/dist/react/nav-item/index.js +3 -3
- package/dist/react/nav-submenu/index.js +6 -6
- package/dist/react/option/index.js +5 -5
- package/dist/react/pagination/index.js +13 -13
- package/dist/react/popup/index.js +3 -3
- package/dist/react/progress-bar/index.js +3 -3
- package/dist/react/progress-ring/index.js +3 -3
- package/dist/react/qr-code/index.js +3 -3
- package/dist/react/radio/index.js +5 -5
- package/dist/react/radio-button/index.js +3 -3
- package/dist/react/radio-group/index.js +5 -5
- package/dist/react/range/index.js +4 -4
- package/dist/react/rating/index.js +5 -5
- package/dist/react/relative-time/index.js +3 -3
- package/dist/react/resize-observer/index.js +3 -3
- package/dist/react/screen/index.js +3 -3
- package/dist/react/select/index.js +9 -9
- package/dist/react/skeleton/index.js +3 -3
- package/dist/react/spinner/index.js +3 -3
- package/dist/react/split-panel/index.js +3 -3
- package/dist/react/switch/index.js +3 -3
- package/dist/react/tab/index.js +6 -6
- package/dist/react/tab-group/index.js +7 -7
- package/dist/react/tab-panel/index.js +3 -3
- package/dist/react/table/index.js +31 -31
- package/dist/react/tag/index.js +6 -6
- package/dist/react/textarea/index.js +3 -3
- package/dist/react/timepicker/index.js +16 -16
- package/dist/react/tooltip/index.js +4 -4
- package/dist/react/tree/index.js +11 -11
- package/dist/react/tree-item/index.js +9 -9
- package/dist/react/visually-hidden/index.js +3 -3
- package/dist/shoelace.js +174 -174
- package/dist/types/vue/index.d.ts +404 -404
- package/dist/vscode.html-custom-data.json +319 -319
- package/dist/web-types.json +761 -761
- package/package.json +2 -2
- package/cdn/assets/icons/union.svg +0 -3
- package/cdn/chunks/chunk.24WB462B.js +0 -21
- package/cdn/chunks/chunk.2B3642VH.js +0 -36
- package/cdn/chunks/chunk.2BS6W56R.js +0 -24
- package/cdn/chunks/chunk.2DC7SRA7.js +0 -29
- package/cdn/chunks/chunk.2J4OM5PB.js +0 -24
- package/cdn/chunks/chunk.2PKZMIL5.js +0 -11
- package/cdn/chunks/chunk.2RTG2AV7.js +0 -11
- package/cdn/chunks/chunk.2XH3LQZS.js +0 -11
- package/cdn/chunks/chunk.32ZV4RBM.js +0 -24
- package/cdn/chunks/chunk.347NNF3X.js +0 -11
- package/cdn/chunks/chunk.34D6YMLG.js +0 -123
- package/cdn/chunks/chunk.36SXX5SW.js +0 -11
- package/cdn/chunks/chunk.3ALD6TKK.js +0 -11
- package/cdn/chunks/chunk.3IAHGQCZ.js +0 -11
- package/cdn/chunks/chunk.4DXAZUEX.js +0 -11
- package/cdn/chunks/chunk.4EA2FWP7.js +0 -346
- package/cdn/chunks/chunk.4JMD46FI.js +0 -186
- package/cdn/chunks/chunk.4R766FKJ.js +0 -313
- package/cdn/chunks/chunk.4RZZEYMI.js +0 -27
- package/cdn/chunks/chunk.4WF4GHIJ.js +0 -21
- package/cdn/chunks/chunk.4ZFAR5NG.js +0 -24
- package/cdn/chunks/chunk.52C565XS.js +0 -25
- package/cdn/chunks/chunk.5AIEL664.js +0 -11
- package/cdn/chunks/chunk.5QH3NMKK.js +0 -502
- package/cdn/chunks/chunk.5QTA7A7C.js +0 -11
- package/cdn/chunks/chunk.5RFGRYOL.js +0 -11
- package/cdn/chunks/chunk.5RL27TTV.js +0 -236
- package/cdn/chunks/chunk.5SMTGXMA.js +0 -11
- package/cdn/chunks/chunk.5VI6G5TE.js +0 -21
- package/cdn/chunks/chunk.5WJW3R24.js +0 -131
- package/cdn/chunks/chunk.6FBGPMLW.js +0 -28
- package/cdn/chunks/chunk.6MURLPKN.js +0 -93
- package/cdn/chunks/chunk.6QRS7O4O.js +0 -25
- package/cdn/chunks/chunk.6UPFJIAT.js +0 -24
- package/cdn/chunks/chunk.6XK2IOK7.js +0 -1990
- package/cdn/chunks/chunk.7LDYYZ2B.js +0 -28
- package/cdn/chunks/chunk.7OYSFUD7.js +0 -21
- package/cdn/chunks/chunk.7P7QZT2H.js +0 -21
- package/cdn/chunks/chunk.7VWTJZMG.js +0 -11
- package/cdn/chunks/chunk.7XEJARY2.js +0 -11
- package/cdn/chunks/chunk.7XHUTSHW.js +0 -367
- package/cdn/chunks/chunk.A5L4XGFJ.js +0 -95
- package/cdn/chunks/chunk.A6EEU52L.js +0 -11
- package/cdn/chunks/chunk.AB5BVJDS.js +0 -113
- package/cdn/chunks/chunk.AKX5AAFX.js +0 -137
- package/cdn/chunks/chunk.APFTZJXK.js +0 -25
- package/cdn/chunks/chunk.ARPETUHN.js +0 -11
- package/cdn/chunks/chunk.AY5OCRRS.js +0 -336
- package/cdn/chunks/chunk.AZ7JA3RW.js +0 -82
- package/cdn/chunks/chunk.B2DK4VDV.js +0 -21
- package/cdn/chunks/chunk.BA2IFA2A.js +0 -120
- package/cdn/chunks/chunk.BEZ7KDVI.js +0 -11
- package/cdn/chunks/chunk.BUCWHKDC.js +0 -11
- package/cdn/chunks/chunk.BWAT2XUE.js +0 -29
- package/cdn/chunks/chunk.BXZ46KUA.js +0 -26
- package/cdn/chunks/chunk.CFXRN4ZL.js +0 -11
- package/cdn/chunks/chunk.CIAWAZBN.js +0 -314
- package/cdn/chunks/chunk.CKNQBYJV.js +0 -21
- package/cdn/chunks/chunk.CQTIVA6P.js +0 -97
- package/cdn/chunks/chunk.CRUY64UC.js +0 -11
- package/cdn/chunks/chunk.CUTRLIE4.js +0 -87
- package/cdn/chunks/chunk.CVYP4D3J.js +0 -25
- package/cdn/chunks/chunk.D22FUTAQ.js +0 -11
- package/cdn/chunks/chunk.D7EZY3DK.js +0 -27
- package/cdn/chunks/chunk.D7LCTS47.js +0 -11
- package/cdn/chunks/chunk.DBHXGHCF.js +0 -21
- package/cdn/chunks/chunk.DEJ5OOCS.js +0 -11
- package/cdn/chunks/chunk.DK4SZUV5.js +0 -11
- package/cdn/chunks/chunk.DOH5W4HJ.js +0 -24
- package/cdn/chunks/chunk.EBCHIHUA.js +0 -73
- package/cdn/chunks/chunk.ECAV2WLI.js +0 -158
- package/cdn/chunks/chunk.EHE7F3AY.js +0 -24
- package/cdn/chunks/chunk.EKMXHYRA.js +0 -28
- package/cdn/chunks/chunk.ENJIAAC4.js +0 -21
- package/cdn/chunks/chunk.EW765TD4.js +0 -21
- package/cdn/chunks/chunk.F6N2DRSU.js +0 -11
- package/cdn/chunks/chunk.FBUGLQSZ.js +0 -11
- package/cdn/chunks/chunk.FDQIAC6C.js +0 -49
- package/cdn/chunks/chunk.FHG4QWZ7.js +0 -27
- package/cdn/chunks/chunk.FJRLKJZ3.js +0 -24
- package/cdn/chunks/chunk.FMK74C2Q.js +0 -279
- package/cdn/chunks/chunk.FNK6AJWU.js +0 -11
- package/cdn/chunks/chunk.FQZJCXQI.js +0 -24
- package/cdn/chunks/chunk.GC2OY6XZ.js +0 -282
- package/cdn/chunks/chunk.GFUOSJAK.js +0 -42
- package/cdn/chunks/chunk.GHP2VENU.js +0 -11
- package/cdn/chunks/chunk.GKXG22XW.js +0 -103
- package/cdn/chunks/chunk.GNCEUQ2A.js +0 -27
- package/cdn/chunks/chunk.GP3HDTAE.js +0 -21
- package/cdn/chunks/chunk.GUHXU27O.js +0 -21
- package/cdn/chunks/chunk.GVDERTLE.js +0 -21
- package/cdn/chunks/chunk.H2LK75N3.js +0 -54
- package/cdn/chunks/chunk.H5CA5ZSH.js +0 -11
- package/cdn/chunks/chunk.HEXSKYRO.js +0 -24
- package/cdn/chunks/chunk.HQYNDAWK.js +0 -114
- package/cdn/chunks/chunk.HTUGPYQX.js +0 -11
- package/cdn/chunks/chunk.II7WSP23.js +0 -391
- package/cdn/chunks/chunk.IQBYS5UV.js +0 -299
- package/cdn/chunks/chunk.IVFERAIO.js +0 -11
- package/cdn/chunks/chunk.IYSLBDTO.js +0 -11
- package/cdn/chunks/chunk.JBLPGU5D.js +0 -2647
- package/cdn/chunks/chunk.JLRFNUBG.js +0 -379
- package/cdn/chunks/chunk.JVS4PTUY.js +0 -29
- package/cdn/chunks/chunk.JWUUD4HR.js +0 -11
- package/cdn/chunks/chunk.K4UEXR2M.js +0 -24
- package/cdn/chunks/chunk.KBB65M7D.js +0 -27
- package/cdn/chunks/chunk.KBOXH72M.js +0 -586
- package/cdn/chunks/chunk.KHKQ3SNP.js +0 -11
- package/cdn/chunks/chunk.KKRTRZD4.js +0 -50
- package/cdn/chunks/chunk.KMAADF3A.js +0 -77
- package/cdn/chunks/chunk.KPWLPC5C.js +0 -302
- package/cdn/chunks/chunk.KTT5R6EA.js +0 -724
- package/cdn/chunks/chunk.KXB6BWCG.js +0 -219
- package/cdn/chunks/chunk.L2ZB4U6S.js +0 -21
- package/cdn/chunks/chunk.LBRG5NSV.js +0 -21
- package/cdn/chunks/chunk.LKEY3ISM.js +0 -28
- package/cdn/chunks/chunk.LY5RY73B.js +0 -29
- package/cdn/chunks/chunk.MDXQHP2U.js +0 -49
- package/cdn/chunks/chunk.MHISDBJE.js +0 -137
- package/cdn/chunks/chunk.MOYIN7CZ.js +0 -334
- package/cdn/chunks/chunk.MW3GV2DO.js +0 -24
- package/cdn/chunks/chunk.N42X7ZXW.js +0 -118
- package/cdn/chunks/chunk.NF2BACCX.js +0 -24
- package/cdn/chunks/chunk.NKTZLVM3.js +0 -11
- package/cdn/chunks/chunk.NLOQLVJX.js +0 -11
- package/cdn/chunks/chunk.NQDQA7WX.js +0 -25
- package/cdn/chunks/chunk.NUIKN3MN.js +0 -11
- package/cdn/chunks/chunk.NX7MH5IM.js +0 -25
- package/cdn/chunks/chunk.O6MXWKN4.js +0 -11
- package/cdn/chunks/chunk.OARJCNEA.js +0 -21
- package/cdn/chunks/chunk.OLVISD3K.js +0 -28
- package/cdn/chunks/chunk.ONE6I7EZ.js +0 -21
- package/cdn/chunks/chunk.OVBE7EYX.js +0 -1058
- package/cdn/chunks/chunk.P446VUE2.js +0 -26
- package/cdn/chunks/chunk.P4XWAGW5.js +0 -127
- package/cdn/chunks/chunk.PARFSSPW.js +0 -11
- package/cdn/chunks/chunk.PBNW4X5F.js +0 -342
- package/cdn/chunks/chunk.PDUJAA4L.js +0 -135
- package/cdn/chunks/chunk.PE64PUSW.js +0 -27
- package/cdn/chunks/chunk.PQHPEDO3.js +0 -26
- package/cdn/chunks/chunk.PRLWWX2U.js +0 -21
- package/cdn/chunks/chunk.Q4BXT277.js +0 -25
- package/cdn/chunks/chunk.Q6G5UMJ6.js +0 -11
- package/cdn/chunks/chunk.QBQUYHKV.js +0 -11
- package/cdn/chunks/chunk.QIMNFWDP.js +0 -21
- package/cdn/chunks/chunk.QNMUZZ7J.js +0 -33
- package/cdn/chunks/chunk.QWOC3AK3.js +0 -63
- package/cdn/chunks/chunk.QYXJ2RWZ.js +0 -11
- package/cdn/chunks/chunk.R2DXCFWW.js +0 -25
- package/cdn/chunks/chunk.R33LQ27A.js +0 -27
- package/cdn/chunks/chunk.R3WNI6H6.js +0 -11
- package/cdn/chunks/chunk.R4NLKHUA.js +0 -197
- package/cdn/chunks/chunk.R66KSBB7.js +0 -153
- package/cdn/chunks/chunk.RKYFYWN2.js +0 -11
- package/cdn/chunks/chunk.ROYEID7U.js +0 -11
- package/cdn/chunks/chunk.RUBXF4HN.js +0 -25
- package/cdn/chunks/chunk.RY4JHBZS.js +0 -11
- package/cdn/chunks/chunk.RZAHCUS5.js +0 -21
- package/cdn/chunks/chunk.S3ICX2QM.js +0 -11
- package/cdn/chunks/chunk.SAGCOW56.js +0 -11
- package/cdn/chunks/chunk.SK2GR7LW.js +0 -183
- package/cdn/chunks/chunk.SM67EEKO.js +0 -11
- package/cdn/chunks/chunk.SMWFJ7NM.js +0 -233
- package/cdn/chunks/chunk.SRJ3K4UD.js +0 -75
- package/cdn/chunks/chunk.ST2FXUC3.js +0 -48
- package/cdn/chunks/chunk.ST5KIFL2.js +0 -822
- package/cdn/chunks/chunk.T6L6WC5N.js +0 -11
- package/cdn/chunks/chunk.T763R4LP.js +0 -25
- package/cdn/chunks/chunk.TH2IELG3.js +0 -1925
- package/cdn/chunks/chunk.TXE3ER6O.js +0 -11
- package/cdn/chunks/chunk.UM4R2KUY.js +0 -28
- package/cdn/chunks/chunk.UMIPOFSI.js +0 -292
- package/cdn/chunks/chunk.UO63VAI7.js +0 -21
- package/cdn/chunks/chunk.US4KFPZT.js +0 -11
- package/cdn/chunks/chunk.UUXXUZ2F.js +0 -402
- package/cdn/chunks/chunk.UWP7FTFI.js +0 -21
- package/cdn/chunks/chunk.V6APYC53.js +0 -266
- package/cdn/chunks/chunk.V6ZVOWTR.js +0 -142
- package/cdn/chunks/chunk.VIULYOBU.js +0 -574
- package/cdn/chunks/chunk.VJH7TO4T.js +0 -11
- package/cdn/chunks/chunk.VSAZXWHM.js +0 -11
- package/cdn/chunks/chunk.VZZXW7DV.js +0 -11
- package/cdn/chunks/chunk.WB2AY4UV.js +0 -67
- package/cdn/chunks/chunk.WLCZ4ZUX.js +0 -291
- package/cdn/chunks/chunk.WNJXO76O.js +0 -257
- package/cdn/chunks/chunk.WQHNTVBD.js +0 -24
- package/cdn/chunks/chunk.WRSGY5CL.js +0 -11
- package/cdn/chunks/chunk.WWLIOL6X.js +0 -11
- package/cdn/chunks/chunk.WYV3NAFG.js +0 -21
- package/cdn/chunks/chunk.X2BQA5DZ.js +0 -255
- package/cdn/chunks/chunk.XEQVIJJJ.js +0 -512
- package/cdn/chunks/chunk.XEZE63UL.js +0 -24
- package/cdn/chunks/chunk.XFEIA4TK.js +0 -122
- package/cdn/chunks/chunk.XNC4CYRF.js +0 -11
- package/cdn/chunks/chunk.XSEMSFNH.js +0 -79
- package/cdn/chunks/chunk.XSKZSR2F.js +0 -11
- package/cdn/chunks/chunk.XUH6LOVO.js +0 -11
- package/cdn/chunks/chunk.XVKFSZKF.js +0 -21
- package/cdn/chunks/chunk.XWNBPEF2.js +0 -216
- package/cdn/chunks/chunk.XYT3T2WG.js +0 -5845
- package/cdn/chunks/chunk.YG2SLZNI.js +0 -21
- package/cdn/chunks/chunk.YJNLXIKO.js +0 -11
- package/cdn/chunks/chunk.YNWDFCIE.js +0 -11
- package/cdn/chunks/chunk.YZT3ZQXE.js +0 -11
- package/cdn/chunks/chunk.ZATHA6S3.js +0 -7245
- package/cdn/chunks/chunk.ZGVBJIXL.js +0 -455
- package/cdn/chunks/chunk.ZKJBYHAI.js +0 -271
- package/cdn/chunks/chunk.ZYFICTYA.js +0 -11
- package/dist/assets/icons/union.svg +0 -3
- package/dist/chunks/chunk.2264SJGW.js +0 -11
- package/dist/chunks/chunk.22Q54EQ2.js +0 -21
- package/dist/chunks/chunk.2DIYPPXP.js +0 -11
- package/dist/chunks/chunk.2EAKOQAH.js +0 -11
- package/dist/chunks/chunk.2FZFUCF4.js +0 -26
- package/dist/chunks/chunk.2K3YQDUY.js +0 -21
- package/dist/chunks/chunk.2RRZWSQ3.js +0 -11
- package/dist/chunks/chunk.2S5QLZA5.js +0 -46
- package/dist/chunks/chunk.2TDS6WD3.js +0 -11
- package/dist/chunks/chunk.2W26Z57B.js +0 -135
- package/dist/chunks/chunk.2XLQIQFA.js +0 -21
- package/dist/chunks/chunk.2ZRY5N3N.js +0 -21
- package/dist/chunks/chunk.3BMVYUHJ.js +0 -111
- package/dist/chunks/chunk.3BTNYKKQ.js +0 -11
- package/dist/chunks/chunk.3DCLGMVR.js +0 -417
- package/dist/chunks/chunk.3DYEL752.js +0 -21
- package/dist/chunks/chunk.3XRX4EWO.js +0 -315
- package/dist/chunks/chunk.4NWFORO4.js +0 -90
- package/dist/chunks/chunk.4PRQNLJW.js +0 -11
- package/dist/chunks/chunk.4XQZ4LRR.js +0 -28
- package/dist/chunks/chunk.4YWHIBUM.js +0 -11
- package/dist/chunks/chunk.53JRPA6L.js +0 -21
- package/dist/chunks/chunk.54IRMGQ2.js +0 -11
- package/dist/chunks/chunk.55U44SBK.js +0 -26
- package/dist/chunks/chunk.565356KS.js +0 -21
- package/dist/chunks/chunk.56YEFEGM.js +0 -25
- package/dist/chunks/chunk.5G52LFDN.js +0 -28
- package/dist/chunks/chunk.5JV2HFJN.js +0 -73
- package/dist/chunks/chunk.5SZNNOE3.js +0 -11
- package/dist/chunks/chunk.5WPNPTWS.js +0 -11
- package/dist/chunks/chunk.6IB4OVPP.js +0 -11
- package/dist/chunks/chunk.6IJBNXSL.js +0 -11
- package/dist/chunks/chunk.6O2HJ4CU.js +0 -11
- package/dist/chunks/chunk.6SWSC2SC.js +0 -294
- package/dist/chunks/chunk.6TM5EJ3T.js +0 -21
- package/dist/chunks/chunk.7NH5AAJF.js +0 -24
- package/dist/chunks/chunk.7NLRFVOL.js +0 -11
- package/dist/chunks/chunk.7QLKQUQZ.js +0 -11
- package/dist/chunks/chunk.7TSE4DQ4.js +0 -28
- package/dist/chunks/chunk.7VV4RT4C.js +0 -21
- package/dist/chunks/chunk.7X2XUPZZ.js +0 -100
- package/dist/chunks/chunk.7YOU3ORD.js +0 -247
- package/dist/chunks/chunk.AIGBZLUW.js +0 -280
- package/dist/chunks/chunk.ANVQCLCF.js +0 -24
- package/dist/chunks/chunk.AQTO6VXL.js +0 -11
- package/dist/chunks/chunk.ASS2AFPG.js +0 -126
- package/dist/chunks/chunk.AYCG6UGA.js +0 -52
- package/dist/chunks/chunk.B5BFFIHL.js +0 -63
- package/dist/chunks/chunk.BBFONBXG.js +0 -24
- package/dist/chunks/chunk.BHC2BPEP.js +0 -21
- package/dist/chunks/chunk.BM3K4N74.js +0 -11
- package/dist/chunks/chunk.BOUDLCWT.js +0 -21
- package/dist/chunks/chunk.C7XG5DKW.js +0 -371
- package/dist/chunks/chunk.CA7346DD.js +0 -29
- package/dist/chunks/chunk.CB2PENOJ.js +0 -24
- package/dist/chunks/chunk.CLKCFH3G.js +0 -337
- package/dist/chunks/chunk.CQGCMBUO.js +0 -21
- package/dist/chunks/chunk.D3VPYY3U.js +0 -21
- package/dist/chunks/chunk.D53PTAGZ.js +0 -27
- package/dist/chunks/chunk.D6F3ZLYJ.js +0 -11
- package/dist/chunks/chunk.DEFAUOR7.js +0 -25
- package/dist/chunks/chunk.DRJKLRMF.js +0 -11
- package/dist/chunks/chunk.DS4MCCXE.js +0 -113
- package/dist/chunks/chunk.DTCS2VB7.js +0 -80
- package/dist/chunks/chunk.DVCOHZNI.js +0 -22
- package/dist/chunks/chunk.DYCAEOGS.js +0 -11
- package/dist/chunks/chunk.DZPBJUBG.js +0 -100
- package/dist/chunks/chunk.EC2F6N3A.js +0 -25
- package/dist/chunks/chunk.ETLCMWRI.js +0 -11
- package/dist/chunks/chunk.EUMMGBOP.js +0 -91
- package/dist/chunks/chunk.F242ZHB3.js +0 -109
- package/dist/chunks/chunk.F2ZXXR7S.js +0 -27
- package/dist/chunks/chunk.FBOPP45T.js +0 -494
- package/dist/chunks/chunk.FLAM6PMW.js +0 -306
- package/dist/chunks/chunk.G2J7YFB5.js +0 -11
- package/dist/chunks/chunk.G46RGAL6.js +0 -437
- package/dist/chunks/chunk.G4YT7NXQ.js +0 -29
- package/dist/chunks/chunk.GIWNUTRW.js +0 -119
- package/dist/chunks/chunk.GLVWGDYH.js +0 -11
- package/dist/chunks/chunk.GNX32LAW.js +0 -24
- package/dist/chunks/chunk.GOHS66HI.js +0 -28
- package/dist/chunks/chunk.GX2GGZN5.js +0 -67
- package/dist/chunks/chunk.H4MCKH4M.js +0 -45
- package/dist/chunks/chunk.H5AQUOCO.js +0 -384
- package/dist/chunks/chunk.H7TEWF4X.js +0 -11
- package/dist/chunks/chunk.HDZBRCL4.js +0 -231
- package/dist/chunks/chunk.HFYDCTPU.js +0 -29
- package/dist/chunks/chunk.HNKDQFAS.js +0 -550
- package/dist/chunks/chunk.HOABNGZQ.js +0 -11
- package/dist/chunks/chunk.HPZ7CND2.js +0 -949
- package/dist/chunks/chunk.HSIY7UZN.js +0 -33
- package/dist/chunks/chunk.I4VVJXLD.js +0 -11
- package/dist/chunks/chunk.I7UMIQWI.js +0 -361
- package/dist/chunks/chunk.IRZFOW63.js +0 -126
- package/dist/chunks/chunk.JAHJRUB5.js +0 -338
- package/dist/chunks/chunk.JQ6JD55S.js +0 -277
- package/dist/chunks/chunk.JRI4Y5L2.js +0 -503
- package/dist/chunks/chunk.JSVBOMTW.js +0 -11
- package/dist/chunks/chunk.K7UIS4TY.js +0 -21
- package/dist/chunks/chunk.KEDXUA4F.js +0 -448
- package/dist/chunks/chunk.KFWII3LZ.js +0 -21
- package/dist/chunks/chunk.KG4PXUZD.js +0 -24
- package/dist/chunks/chunk.KMRJASOD.js +0 -11
- package/dist/chunks/chunk.KXL3JD4L.js +0 -22
- package/dist/chunks/chunk.L3ZCTFWZ.js +0 -42
- package/dist/chunks/chunk.LQ42UEZA.js +0 -11
- package/dist/chunks/chunk.LS2E33Q3.js +0 -134
- package/dist/chunks/chunk.LSCGCQ5T.js +0 -21
- package/dist/chunks/chunk.LUM4SHMP.js +0 -214
- package/dist/chunks/chunk.LYQUF6C7.js +0 -24
- package/dist/chunks/chunk.M3QFAYH7.js +0 -397
- package/dist/chunks/chunk.M5AHWAKE.js +0 -11
- package/dist/chunks/chunk.ME63OSSW.js +0 -11
- package/dist/chunks/chunk.MSKNG4XG.js +0 -286
- package/dist/chunks/chunk.N7RNWMG3.js +0 -116
- package/dist/chunks/chunk.NB5SVXRS.js +0 -11
- package/dist/chunks/chunk.NDBRWZPO.js +0 -11
- package/dist/chunks/chunk.NK5VQ4EK.js +0 -11
- package/dist/chunks/chunk.NMEZFFY3.js +0 -11
- package/dist/chunks/chunk.NQKNCZLV.js +0 -85
- package/dist/chunks/chunk.NRKEMODJ.js +0 -34
- package/dist/chunks/chunk.O4JMVFDX.js +0 -25
- package/dist/chunks/chunk.O6IWNEL5.js +0 -24
- package/dist/chunks/chunk.ODW66QZT.js +0 -11
- package/dist/chunks/chunk.OEIQTSBV.js +0 -11
- package/dist/chunks/chunk.OEVRMVO3.js +0 -21
- package/dist/chunks/chunk.OGK5UYWA.js +0 -50
- package/dist/chunks/chunk.OGPZNEU5.js +0 -293
- package/dist/chunks/chunk.OLQ4WUZP.js +0 -147
- package/dist/chunks/chunk.OM67TUFH.js +0 -568
- package/dist/chunks/chunk.OMB3MVVT.js +0 -11
- package/dist/chunks/chunk.OOH36UKR.js +0 -96
- package/dist/chunks/chunk.OSURUB5T.js +0 -27
- package/dist/chunks/chunk.PBHWSDCY.js +0 -24
- package/dist/chunks/chunk.PM3IQCFP.js +0 -21
- package/dist/chunks/chunk.PNJ2P3FD.js +0 -21
- package/dist/chunks/chunk.PO3WQMIY.js +0 -11
- package/dist/chunks/chunk.POBO4IIP.js +0 -11
- package/dist/chunks/chunk.PPWJHA6P.js +0 -24
- package/dist/chunks/chunk.PROQMP4A.js +0 -45
- package/dist/chunks/chunk.PTX7ZXDK.js +0 -227
- package/dist/chunks/chunk.PZBOLYWW.js +0 -11
- package/dist/chunks/chunk.PZWYZNHQ.js +0 -11
- package/dist/chunks/chunk.Q4VJQZQG.js +0 -11
- package/dist/chunks/chunk.Q7EFVZNI.js +0 -21
- package/dist/chunks/chunk.QDTT66TZ.js +0 -11
- package/dist/chunks/chunk.QP2QGSTD.js +0 -1056
- package/dist/chunks/chunk.QW2472V6.js +0 -167
- package/dist/chunks/chunk.QZ6VH6OI.js +0 -27
- package/dist/chunks/chunk.R24U74SA.js +0 -21
- package/dist/chunks/chunk.R32HNVPR.js +0 -274
- package/dist/chunks/chunk.R5RL7WNK.js +0 -192
- package/dist/chunks/chunk.RHWIVHWX.js +0 -59
- package/dist/chunks/chunk.RLHHA4J6.js +0 -21
- package/dist/chunks/chunk.RPAJ4FYP.js +0 -11
- package/dist/chunks/chunk.RUJ3SNYZ.js +0 -151
- package/dist/chunks/chunk.RVFED5O6.js +0 -11
- package/dist/chunks/chunk.RWGFSMIS.js +0 -25
- package/dist/chunks/chunk.S2V3A45M.js +0 -24
- package/dist/chunks/chunk.S735QQDQ.js +0 -24
- package/dist/chunks/chunk.SD4MP6NN.js +0 -27
- package/dist/chunks/chunk.SNY7WDEI.js +0 -11
- package/dist/chunks/chunk.SPOTHYI6.js +0 -117
- package/dist/chunks/chunk.SQU5G5ER.js +0 -25
- package/dist/chunks/chunk.SW3G3CGJ.js +0 -263
- package/dist/chunks/chunk.T52LRLOE.js +0 -29
- package/dist/chunks/chunk.TEJDF3EA.js +0 -752
- package/dist/chunks/chunk.TK5H5GJ6.js +0 -252
- package/dist/chunks/chunk.TM7WZJTR.js +0 -21
- package/dist/chunks/chunk.TRND6IXM.js +0 -11
- package/dist/chunks/chunk.TS4WT3GW.js +0 -28
- package/dist/chunks/chunk.TSQFR5SZ.js +0 -25
- package/dist/chunks/chunk.TTH2S25S.js +0 -180
- package/dist/chunks/chunk.TVDBA544.js +0 -25
- package/dist/chunks/chunk.TWXMDYDU.js +0 -11
- package/dist/chunks/chunk.U76XN7M2.js +0 -25
- package/dist/chunks/chunk.UFEF6IZT.js +0 -11
- package/dist/chunks/chunk.UQIUG2YR.js +0 -11
- package/dist/chunks/chunk.UQMVK3IA.js +0 -11
- package/dist/chunks/chunk.UWY2PG2H.js +0 -11
- package/dist/chunks/chunk.V32UBJGS.js +0 -75
- package/dist/chunks/chunk.V6CDCPQT.js +0 -11
- package/dist/chunks/chunk.V7QKZGFV.js +0 -11
- package/dist/chunks/chunk.VAJRR4OH.js +0 -25
- package/dist/chunks/chunk.VLWT5ZAC.js +0 -814
- package/dist/chunks/chunk.VUY53GJI.js +0 -311
- package/dist/chunks/chunk.VZIG45VF.js +0 -26
- package/dist/chunks/chunk.WBSV35Z4.js +0 -119
- package/dist/chunks/chunk.WHKU4B4Z.js +0 -11
- package/dist/chunks/chunk.WJEMNRVK.js +0 -21
- package/dist/chunks/chunk.WSQKIM3W.js +0 -11
- package/dist/chunks/chunk.WSZO4CSW.js +0 -93
- package/dist/chunks/chunk.X53CXCAT.js +0 -328
- package/dist/chunks/chunk.X6TVC4EA.js +0 -11
- package/dist/chunks/chunk.XAKSDGCA.js +0 -11
- package/dist/chunks/chunk.XE2BPZVZ.js +0 -181
- package/dist/chunks/chunk.XFLWCBL2.js +0 -132
- package/dist/chunks/chunk.XHHD4YZW.js +0 -75
- package/dist/chunks/chunk.XOXZ5XIO.js +0 -11
- package/dist/chunks/chunk.Y3M5OOLF.js +0 -11
- package/dist/chunks/chunk.YJKXQVT5.js +0 -21
- package/dist/chunks/chunk.YO2OQO2Z.js +0 -24
- package/dist/chunks/chunk.YVNVFZZ4.js +0 -213
- package/dist/chunks/chunk.ZGAHLVM2.js +0 -28
- package/dist/chunks/chunk.ZHFBSGDR.js +0 -27
- package/dist/chunks/chunk.ZNABJ4MJ.js +0 -25
- package/dist/chunks/chunk.ZSLZ45ST.js +0 -11
- package/dist/chunks/chunk.ZXBGWXJR.js +0 -11
|
@@ -0,0 +1,2647 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tableCommonCss
|
|
3
|
+
} from "./chunk.PWUNZ5VX.js";
|
|
4
|
+
import {
|
|
5
|
+
spread_default
|
|
6
|
+
} from "./chunk.GRGYWQPR.js";
|
|
7
|
+
import {
|
|
8
|
+
flexRender
|
|
9
|
+
} from "./chunk.VK7KEYIH.js";
|
|
10
|
+
import {
|
|
11
|
+
getCommonPinningProps
|
|
12
|
+
} from "./chunk.OMKHV7Q2.js";
|
|
13
|
+
import {
|
|
14
|
+
c,
|
|
15
|
+
renderColGroup
|
|
16
|
+
} from "./chunk.UBPIDF2E.js";
|
|
17
|
+
import {
|
|
18
|
+
getTableRect,
|
|
19
|
+
iterateStyles
|
|
20
|
+
} from "./chunk.5AHQNL5Y.js";
|
|
21
|
+
import {
|
|
22
|
+
CUSTOM_ROW
|
|
23
|
+
} from "./chunk.NCE7XJQI.js";
|
|
24
|
+
import {
|
|
25
|
+
e as e2,
|
|
26
|
+
n as n2
|
|
27
|
+
} from "./chunk.G2YOMCHR.js";
|
|
28
|
+
import {
|
|
29
|
+
o
|
|
30
|
+
} from "./chunk.BJDNEBPV.js";
|
|
31
|
+
import {
|
|
32
|
+
e
|
|
33
|
+
} from "./chunk.VHCLMDG7.js";
|
|
34
|
+
import {
|
|
35
|
+
ShoelaceElement,
|
|
36
|
+
n,
|
|
37
|
+
r
|
|
38
|
+
} from "./chunk.6MKBM2IN.js";
|
|
39
|
+
import {
|
|
40
|
+
b
|
|
41
|
+
} from "./chunk.7WSF3BCU.js";
|
|
42
|
+
import {
|
|
43
|
+
__decorateClass,
|
|
44
|
+
__objRest
|
|
45
|
+
} from "./chunk.CZCSAYQZ.js";
|
|
46
|
+
|
|
47
|
+
// node_modules/sortablejs/modular/sortable.esm.js
|
|
48
|
+
function _defineProperty(e3, r2, t) {
|
|
49
|
+
return (r2 = _toPropertyKey(r2)) in e3 ? Object.defineProperty(e3, r2, {
|
|
50
|
+
value: t,
|
|
51
|
+
enumerable: true,
|
|
52
|
+
configurable: true,
|
|
53
|
+
writable: true
|
|
54
|
+
}) : e3[r2] = t, e3;
|
|
55
|
+
}
|
|
56
|
+
function _extends() {
|
|
57
|
+
return _extends = Object.assign ? Object.assign.bind() : function(n3) {
|
|
58
|
+
for (var e3 = 1; e3 < arguments.length; e3++) {
|
|
59
|
+
var t = arguments[e3];
|
|
60
|
+
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n3[r2] = t[r2]);
|
|
61
|
+
}
|
|
62
|
+
return n3;
|
|
63
|
+
}, _extends.apply(null, arguments);
|
|
64
|
+
}
|
|
65
|
+
function ownKeys(e3, r2) {
|
|
66
|
+
var t = Object.keys(e3);
|
|
67
|
+
if (Object.getOwnPropertySymbols) {
|
|
68
|
+
var o2 = Object.getOwnPropertySymbols(e3);
|
|
69
|
+
r2 && (o2 = o2.filter(function(r3) {
|
|
70
|
+
return Object.getOwnPropertyDescriptor(e3, r3).enumerable;
|
|
71
|
+
})), t.push.apply(t, o2);
|
|
72
|
+
}
|
|
73
|
+
return t;
|
|
74
|
+
}
|
|
75
|
+
function _objectSpread2(e3) {
|
|
76
|
+
for (var r2 = 1; r2 < arguments.length; r2++) {
|
|
77
|
+
var t = null != arguments[r2] ? arguments[r2] : {};
|
|
78
|
+
r2 % 2 ? ownKeys(Object(t), true).forEach(function(r3) {
|
|
79
|
+
_defineProperty(e3, r3, t[r3]);
|
|
80
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r3) {
|
|
81
|
+
Object.defineProperty(e3, r3, Object.getOwnPropertyDescriptor(t, r3));
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
return e3;
|
|
85
|
+
}
|
|
86
|
+
function _objectWithoutProperties(e3, t) {
|
|
87
|
+
if (null == e3) return {};
|
|
88
|
+
var o2, r2, i = _objectWithoutPropertiesLoose(e3, t);
|
|
89
|
+
if (Object.getOwnPropertySymbols) {
|
|
90
|
+
var n3 = Object.getOwnPropertySymbols(e3);
|
|
91
|
+
for (r2 = 0; r2 < n3.length; r2++) o2 = n3[r2], -1 === t.indexOf(o2) && {}.propertyIsEnumerable.call(e3, o2) && (i[o2] = e3[o2]);
|
|
92
|
+
}
|
|
93
|
+
return i;
|
|
94
|
+
}
|
|
95
|
+
function _objectWithoutPropertiesLoose(r2, e3) {
|
|
96
|
+
if (null == r2) return {};
|
|
97
|
+
var t = {};
|
|
98
|
+
for (var n3 in r2) if ({}.hasOwnProperty.call(r2, n3)) {
|
|
99
|
+
if (-1 !== e3.indexOf(n3)) continue;
|
|
100
|
+
t[n3] = r2[n3];
|
|
101
|
+
}
|
|
102
|
+
return t;
|
|
103
|
+
}
|
|
104
|
+
function _toPrimitive(t, r2) {
|
|
105
|
+
if ("object" != typeof t || !t) return t;
|
|
106
|
+
var e3 = t[Symbol.toPrimitive];
|
|
107
|
+
if (void 0 !== e3) {
|
|
108
|
+
var i = e3.call(t, r2 || "default");
|
|
109
|
+
if ("object" != typeof i) return i;
|
|
110
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
111
|
+
}
|
|
112
|
+
return ("string" === r2 ? String : Number)(t);
|
|
113
|
+
}
|
|
114
|
+
function _toPropertyKey(t) {
|
|
115
|
+
var i = _toPrimitive(t, "string");
|
|
116
|
+
return "symbol" == typeof i ? i : i + "";
|
|
117
|
+
}
|
|
118
|
+
function _typeof(o2) {
|
|
119
|
+
"@babel/helpers - typeof";
|
|
120
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o3) {
|
|
121
|
+
return typeof o3;
|
|
122
|
+
} : function(o3) {
|
|
123
|
+
return o3 && "function" == typeof Symbol && o3.constructor === Symbol && o3 !== Symbol.prototype ? "symbol" : typeof o3;
|
|
124
|
+
}, _typeof(o2);
|
|
125
|
+
}
|
|
126
|
+
var version = "1.15.7";
|
|
127
|
+
function userAgent(pattern) {
|
|
128
|
+
if (typeof window !== "undefined" && window.navigator) {
|
|
129
|
+
return !!/* @__PURE__ */ navigator.userAgent.match(pattern);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
var IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
|
|
133
|
+
var Edge = userAgent(/Edge/i);
|
|
134
|
+
var FireFox = userAgent(/firefox/i);
|
|
135
|
+
var Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);
|
|
136
|
+
var IOS = userAgent(/iP(ad|od|hone)/i);
|
|
137
|
+
var ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);
|
|
138
|
+
var captureMode = {
|
|
139
|
+
capture: false,
|
|
140
|
+
passive: false
|
|
141
|
+
};
|
|
142
|
+
function on(el, event, fn) {
|
|
143
|
+
el.addEventListener(event, fn, !IE11OrLess && captureMode);
|
|
144
|
+
}
|
|
145
|
+
function off(el, event, fn) {
|
|
146
|
+
el.removeEventListener(event, fn, !IE11OrLess && captureMode);
|
|
147
|
+
}
|
|
148
|
+
function matches(el, selector) {
|
|
149
|
+
if (!selector) return;
|
|
150
|
+
selector[0] === ">" && (selector = selector.substring(1));
|
|
151
|
+
if (el) {
|
|
152
|
+
try {
|
|
153
|
+
if (el.matches) {
|
|
154
|
+
return el.matches(selector);
|
|
155
|
+
} else if (el.msMatchesSelector) {
|
|
156
|
+
return el.msMatchesSelector(selector);
|
|
157
|
+
} else if (el.webkitMatchesSelector) {
|
|
158
|
+
return el.webkitMatchesSelector(selector);
|
|
159
|
+
}
|
|
160
|
+
} catch (_) {
|
|
161
|
+
return false;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
return false;
|
|
165
|
+
}
|
|
166
|
+
function getParentOrHost(el) {
|
|
167
|
+
return el.host && el !== document && el.host.nodeType && el.host !== el ? el.host : el.parentNode;
|
|
168
|
+
}
|
|
169
|
+
function closest(el, selector, ctx, includeCTX) {
|
|
170
|
+
if (el) {
|
|
171
|
+
ctx = ctx || document;
|
|
172
|
+
do {
|
|
173
|
+
if (selector != null && (selector[0] === ">" ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {
|
|
174
|
+
return el;
|
|
175
|
+
}
|
|
176
|
+
if (el === ctx) break;
|
|
177
|
+
} while (el = getParentOrHost(el));
|
|
178
|
+
}
|
|
179
|
+
return null;
|
|
180
|
+
}
|
|
181
|
+
var R_SPACE = /\s+/g;
|
|
182
|
+
function toggleClass(el, name, state) {
|
|
183
|
+
if (el && name) {
|
|
184
|
+
if (el.classList) {
|
|
185
|
+
el.classList[state ? "add" : "remove"](name);
|
|
186
|
+
} else {
|
|
187
|
+
var className = (" " + el.className + " ").replace(R_SPACE, " ").replace(" " + name + " ", " ");
|
|
188
|
+
el.className = (className + (state ? " " + name : "")).replace(R_SPACE, " ");
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
function css(el, prop, val) {
|
|
193
|
+
var style = el && el.style;
|
|
194
|
+
if (style) {
|
|
195
|
+
if (val === void 0) {
|
|
196
|
+
if (document.defaultView && document.defaultView.getComputedStyle) {
|
|
197
|
+
val = document.defaultView.getComputedStyle(el, "");
|
|
198
|
+
} else if (el.currentStyle) {
|
|
199
|
+
val = el.currentStyle;
|
|
200
|
+
}
|
|
201
|
+
return prop === void 0 ? val : val[prop];
|
|
202
|
+
} else {
|
|
203
|
+
if (!(prop in style) && prop.indexOf("webkit") === -1) {
|
|
204
|
+
prop = "-webkit-" + prop;
|
|
205
|
+
}
|
|
206
|
+
style[prop] = val + (typeof val === "string" ? "" : "px");
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
function matrix(el, selfOnly) {
|
|
211
|
+
var appliedTransforms = "";
|
|
212
|
+
if (typeof el === "string") {
|
|
213
|
+
appliedTransforms = el;
|
|
214
|
+
} else {
|
|
215
|
+
do {
|
|
216
|
+
var transform = css(el, "transform");
|
|
217
|
+
if (transform && transform !== "none") {
|
|
218
|
+
appliedTransforms = transform + " " + appliedTransforms;
|
|
219
|
+
}
|
|
220
|
+
} while (!selfOnly && (el = el.parentNode));
|
|
221
|
+
}
|
|
222
|
+
var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
223
|
+
return matrixFn && new matrixFn(appliedTransforms);
|
|
224
|
+
}
|
|
225
|
+
function find(ctx, tagName, iterator) {
|
|
226
|
+
if (ctx) {
|
|
227
|
+
var list = ctx.getElementsByTagName(tagName), i = 0, n3 = list.length;
|
|
228
|
+
if (iterator) {
|
|
229
|
+
for (; i < n3; i++) {
|
|
230
|
+
iterator(list[i], i);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
return list;
|
|
234
|
+
}
|
|
235
|
+
return [];
|
|
236
|
+
}
|
|
237
|
+
function getWindowScrollingElement() {
|
|
238
|
+
var scrollingElement = document.scrollingElement;
|
|
239
|
+
if (scrollingElement) {
|
|
240
|
+
return scrollingElement;
|
|
241
|
+
} else {
|
|
242
|
+
return document.documentElement;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {
|
|
246
|
+
if (!el.getBoundingClientRect && el !== window) return;
|
|
247
|
+
var elRect, top, left, bottom, right, height, width;
|
|
248
|
+
if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {
|
|
249
|
+
elRect = el.getBoundingClientRect();
|
|
250
|
+
top = elRect.top;
|
|
251
|
+
left = elRect.left;
|
|
252
|
+
bottom = elRect.bottom;
|
|
253
|
+
right = elRect.right;
|
|
254
|
+
height = elRect.height;
|
|
255
|
+
width = elRect.width;
|
|
256
|
+
} else {
|
|
257
|
+
top = 0;
|
|
258
|
+
left = 0;
|
|
259
|
+
bottom = window.innerHeight;
|
|
260
|
+
right = window.innerWidth;
|
|
261
|
+
height = window.innerHeight;
|
|
262
|
+
width = window.innerWidth;
|
|
263
|
+
}
|
|
264
|
+
if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {
|
|
265
|
+
container = container || el.parentNode;
|
|
266
|
+
if (!IE11OrLess) {
|
|
267
|
+
do {
|
|
268
|
+
if (container && container.getBoundingClientRect && (css(container, "transform") !== "none" || relativeToNonStaticParent && css(container, "position") !== "static")) {
|
|
269
|
+
var containerRect = container.getBoundingClientRect();
|
|
270
|
+
top -= containerRect.top + parseInt(css(container, "border-top-width"));
|
|
271
|
+
left -= containerRect.left + parseInt(css(container, "border-left-width"));
|
|
272
|
+
bottom = top + elRect.height;
|
|
273
|
+
right = left + elRect.width;
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
} while (container = container.parentNode);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
if (undoScale && el !== window) {
|
|
280
|
+
var elMatrix = matrix(container || el), scaleX = elMatrix && elMatrix.a, scaleY = elMatrix && elMatrix.d;
|
|
281
|
+
if (elMatrix) {
|
|
282
|
+
top /= scaleY;
|
|
283
|
+
left /= scaleX;
|
|
284
|
+
width /= scaleX;
|
|
285
|
+
height /= scaleY;
|
|
286
|
+
bottom = top + height;
|
|
287
|
+
right = left + width;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
return {
|
|
291
|
+
top,
|
|
292
|
+
left,
|
|
293
|
+
bottom,
|
|
294
|
+
right,
|
|
295
|
+
width,
|
|
296
|
+
height
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
function isScrolledPast(el, elSide, parentSide) {
|
|
300
|
+
var parent = getParentAutoScrollElement(el, true), elSideVal = getRect(el)[elSide];
|
|
301
|
+
while (parent) {
|
|
302
|
+
var parentSideVal = getRect(parent)[parentSide], visible = void 0;
|
|
303
|
+
if (parentSide === "top" || parentSide === "left") {
|
|
304
|
+
visible = elSideVal >= parentSideVal;
|
|
305
|
+
} else {
|
|
306
|
+
visible = elSideVal <= parentSideVal;
|
|
307
|
+
}
|
|
308
|
+
if (!visible) return parent;
|
|
309
|
+
if (parent === getWindowScrollingElement()) break;
|
|
310
|
+
parent = getParentAutoScrollElement(parent, false);
|
|
311
|
+
}
|
|
312
|
+
return false;
|
|
313
|
+
}
|
|
314
|
+
function getChild(el, childNum, options, includeDragEl) {
|
|
315
|
+
var currentChild = 0, i = 0, children = el.children;
|
|
316
|
+
while (i < children.length) {
|
|
317
|
+
if (children[i].style.display !== "none" && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {
|
|
318
|
+
if (currentChild === childNum) {
|
|
319
|
+
return children[i];
|
|
320
|
+
}
|
|
321
|
+
currentChild++;
|
|
322
|
+
}
|
|
323
|
+
i++;
|
|
324
|
+
}
|
|
325
|
+
return null;
|
|
326
|
+
}
|
|
327
|
+
function lastChild(el, selector) {
|
|
328
|
+
var last = el.lastElementChild;
|
|
329
|
+
while (last && (last === Sortable.ghost || css(last, "display") === "none" || selector && !matches(last, selector))) {
|
|
330
|
+
last = last.previousElementSibling;
|
|
331
|
+
}
|
|
332
|
+
return last || null;
|
|
333
|
+
}
|
|
334
|
+
function index(el, selector) {
|
|
335
|
+
var index2 = 0;
|
|
336
|
+
if (!el || !el.parentNode) {
|
|
337
|
+
return -1;
|
|
338
|
+
}
|
|
339
|
+
while (el = el.previousElementSibling) {
|
|
340
|
+
if (el.nodeName.toUpperCase() !== "TEMPLATE" && el !== Sortable.clone && (!selector || matches(el, selector))) {
|
|
341
|
+
index2++;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
return index2;
|
|
345
|
+
}
|
|
346
|
+
function getRelativeScrollOffset(el) {
|
|
347
|
+
var offsetLeft = 0, offsetTop = 0, winScroller = getWindowScrollingElement();
|
|
348
|
+
if (el) {
|
|
349
|
+
do {
|
|
350
|
+
var elMatrix = matrix(el), scaleX = elMatrix.a, scaleY = elMatrix.d;
|
|
351
|
+
offsetLeft += el.scrollLeft * scaleX;
|
|
352
|
+
offsetTop += el.scrollTop * scaleY;
|
|
353
|
+
} while (el !== winScroller && (el = el.parentNode));
|
|
354
|
+
}
|
|
355
|
+
return [offsetLeft, offsetTop];
|
|
356
|
+
}
|
|
357
|
+
function indexOfObject(arr, obj) {
|
|
358
|
+
for (var i in arr) {
|
|
359
|
+
if (!arr.hasOwnProperty(i)) continue;
|
|
360
|
+
for (var key in obj) {
|
|
361
|
+
if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
return -1;
|
|
365
|
+
}
|
|
366
|
+
function getParentAutoScrollElement(el, includeSelf) {
|
|
367
|
+
if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();
|
|
368
|
+
var elem = el;
|
|
369
|
+
var gotSelf = false;
|
|
370
|
+
do {
|
|
371
|
+
if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {
|
|
372
|
+
var elemCSS = css(elem);
|
|
373
|
+
if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == "auto" || elemCSS.overflowX == "scroll") || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == "auto" || elemCSS.overflowY == "scroll")) {
|
|
374
|
+
if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();
|
|
375
|
+
if (gotSelf || includeSelf) return elem;
|
|
376
|
+
gotSelf = true;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
} while (elem = elem.parentNode);
|
|
380
|
+
return getWindowScrollingElement();
|
|
381
|
+
}
|
|
382
|
+
function extend(dst, src) {
|
|
383
|
+
if (dst && src) {
|
|
384
|
+
for (var key in src) {
|
|
385
|
+
if (src.hasOwnProperty(key)) {
|
|
386
|
+
dst[key] = src[key];
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
return dst;
|
|
391
|
+
}
|
|
392
|
+
function isRectEqual(rect1, rect2) {
|
|
393
|
+
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);
|
|
394
|
+
}
|
|
395
|
+
var _throttleTimeout;
|
|
396
|
+
function throttle(callback, ms) {
|
|
397
|
+
return function() {
|
|
398
|
+
if (!_throttleTimeout) {
|
|
399
|
+
var args = arguments, _this = this;
|
|
400
|
+
if (args.length === 1) {
|
|
401
|
+
callback.call(_this, args[0]);
|
|
402
|
+
} else {
|
|
403
|
+
callback.apply(_this, args);
|
|
404
|
+
}
|
|
405
|
+
_throttleTimeout = setTimeout(function() {
|
|
406
|
+
_throttleTimeout = void 0;
|
|
407
|
+
}, ms);
|
|
408
|
+
}
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
function cancelThrottle() {
|
|
412
|
+
clearTimeout(_throttleTimeout);
|
|
413
|
+
_throttleTimeout = void 0;
|
|
414
|
+
}
|
|
415
|
+
function scrollBy(el, x, y) {
|
|
416
|
+
el.scrollLeft += x;
|
|
417
|
+
el.scrollTop += y;
|
|
418
|
+
}
|
|
419
|
+
function clone(el) {
|
|
420
|
+
var Polymer = window.Polymer;
|
|
421
|
+
var $ = window.jQuery || window.Zepto;
|
|
422
|
+
if (Polymer && Polymer.dom) {
|
|
423
|
+
return Polymer.dom(el).cloneNode(true);
|
|
424
|
+
} else if ($) {
|
|
425
|
+
return $(el).clone(true)[0];
|
|
426
|
+
} else {
|
|
427
|
+
return el.cloneNode(true);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
function getChildContainingRectFromElement(container, options, ghostEl2) {
|
|
431
|
+
var rect = {};
|
|
432
|
+
Array.from(container.children).forEach(function(child) {
|
|
433
|
+
var _rect$left, _rect$top, _rect$right, _rect$bottom;
|
|
434
|
+
if (!closest(child, options.draggable, container, false) || child.animated || child === ghostEl2) return;
|
|
435
|
+
var childRect = getRect(child);
|
|
436
|
+
rect.left = Math.min((_rect$left = rect.left) !== null && _rect$left !== void 0 ? _rect$left : Infinity, childRect.left);
|
|
437
|
+
rect.top = Math.min((_rect$top = rect.top) !== null && _rect$top !== void 0 ? _rect$top : Infinity, childRect.top);
|
|
438
|
+
rect.right = Math.max((_rect$right = rect.right) !== null && _rect$right !== void 0 ? _rect$right : -Infinity, childRect.right);
|
|
439
|
+
rect.bottom = Math.max((_rect$bottom = rect.bottom) !== null && _rect$bottom !== void 0 ? _rect$bottom : -Infinity, childRect.bottom);
|
|
440
|
+
});
|
|
441
|
+
rect.width = rect.right - rect.left;
|
|
442
|
+
rect.height = rect.bottom - rect.top;
|
|
443
|
+
rect.x = rect.left;
|
|
444
|
+
rect.y = rect.top;
|
|
445
|
+
return rect;
|
|
446
|
+
}
|
|
447
|
+
var expando = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
448
|
+
function AnimationStateManager() {
|
|
449
|
+
var animationStates = [], animationCallbackId;
|
|
450
|
+
return {
|
|
451
|
+
captureAnimationState: function captureAnimationState() {
|
|
452
|
+
animationStates = [];
|
|
453
|
+
if (!this.options.animation) return;
|
|
454
|
+
var children = [].slice.call(this.el.children);
|
|
455
|
+
children.forEach(function(child) {
|
|
456
|
+
if (css(child, "display") === "none" || child === Sortable.ghost) return;
|
|
457
|
+
animationStates.push({
|
|
458
|
+
target: child,
|
|
459
|
+
rect: getRect(child)
|
|
460
|
+
});
|
|
461
|
+
var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect);
|
|
462
|
+
if (child.thisAnimationDuration) {
|
|
463
|
+
var childMatrix = matrix(child, true);
|
|
464
|
+
if (childMatrix) {
|
|
465
|
+
fromRect.top -= childMatrix.f;
|
|
466
|
+
fromRect.left -= childMatrix.e;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
child.fromRect = fromRect;
|
|
470
|
+
});
|
|
471
|
+
},
|
|
472
|
+
addAnimationState: function addAnimationState(state) {
|
|
473
|
+
animationStates.push(state);
|
|
474
|
+
},
|
|
475
|
+
removeAnimationState: function removeAnimationState(target) {
|
|
476
|
+
animationStates.splice(indexOfObject(animationStates, {
|
|
477
|
+
target
|
|
478
|
+
}), 1);
|
|
479
|
+
},
|
|
480
|
+
animateAll: function animateAll(callback) {
|
|
481
|
+
var _this = this;
|
|
482
|
+
if (!this.options.animation) {
|
|
483
|
+
clearTimeout(animationCallbackId);
|
|
484
|
+
if (typeof callback === "function") callback();
|
|
485
|
+
return;
|
|
486
|
+
}
|
|
487
|
+
var animating = false, animationTime = 0;
|
|
488
|
+
animationStates.forEach(function(state) {
|
|
489
|
+
var time = 0, target = state.target, fromRect = target.fromRect, toRect = getRect(target), prevFromRect = target.prevFromRect, prevToRect = target.prevToRect, animatingRect = state.rect, targetMatrix = matrix(target, true);
|
|
490
|
+
if (targetMatrix) {
|
|
491
|
+
toRect.top -= targetMatrix.f;
|
|
492
|
+
toRect.left -= targetMatrix.e;
|
|
493
|
+
}
|
|
494
|
+
target.toRect = toRect;
|
|
495
|
+
if (target.thisAnimationDuration) {
|
|
496
|
+
if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && // Make sure animatingRect is on line between toRect & fromRect
|
|
497
|
+
(animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {
|
|
498
|
+
time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
if (!isRectEqual(toRect, fromRect)) {
|
|
502
|
+
target.prevFromRect = fromRect;
|
|
503
|
+
target.prevToRect = toRect;
|
|
504
|
+
if (!time) {
|
|
505
|
+
time = _this.options.animation;
|
|
506
|
+
}
|
|
507
|
+
_this.animate(target, animatingRect, toRect, time);
|
|
508
|
+
}
|
|
509
|
+
if (time) {
|
|
510
|
+
animating = true;
|
|
511
|
+
animationTime = Math.max(animationTime, time);
|
|
512
|
+
clearTimeout(target.animationResetTimer);
|
|
513
|
+
target.animationResetTimer = setTimeout(function() {
|
|
514
|
+
target.animationTime = 0;
|
|
515
|
+
target.prevFromRect = null;
|
|
516
|
+
target.fromRect = null;
|
|
517
|
+
target.prevToRect = null;
|
|
518
|
+
target.thisAnimationDuration = null;
|
|
519
|
+
}, time);
|
|
520
|
+
target.thisAnimationDuration = time;
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
clearTimeout(animationCallbackId);
|
|
524
|
+
if (!animating) {
|
|
525
|
+
if (typeof callback === "function") callback();
|
|
526
|
+
} else {
|
|
527
|
+
animationCallbackId = setTimeout(function() {
|
|
528
|
+
if (typeof callback === "function") callback();
|
|
529
|
+
}, animationTime);
|
|
530
|
+
}
|
|
531
|
+
animationStates = [];
|
|
532
|
+
},
|
|
533
|
+
animate: function animate(target, currentRect, toRect, duration) {
|
|
534
|
+
if (duration) {
|
|
535
|
+
css(target, "transition", "");
|
|
536
|
+
css(target, "transform", "");
|
|
537
|
+
var elMatrix = matrix(this.el), scaleX = elMatrix && elMatrix.a, scaleY = elMatrix && elMatrix.d, translateX = (currentRect.left - toRect.left) / (scaleX || 1), translateY = (currentRect.top - toRect.top) / (scaleY || 1);
|
|
538
|
+
target.animatingX = !!translateX;
|
|
539
|
+
target.animatingY = !!translateY;
|
|
540
|
+
css(target, "transform", "translate3d(" + translateX + "px," + translateY + "px,0)");
|
|
541
|
+
this.forRepaintDummy = repaint(target);
|
|
542
|
+
css(target, "transition", "transform " + duration + "ms" + (this.options.easing ? " " + this.options.easing : ""));
|
|
543
|
+
css(target, "transform", "translate3d(0,0,0)");
|
|
544
|
+
typeof target.animated === "number" && clearTimeout(target.animated);
|
|
545
|
+
target.animated = setTimeout(function() {
|
|
546
|
+
css(target, "transition", "");
|
|
547
|
+
css(target, "transform", "");
|
|
548
|
+
target.animated = false;
|
|
549
|
+
target.animatingX = false;
|
|
550
|
+
target.animatingY = false;
|
|
551
|
+
}, duration);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
function repaint(target) {
|
|
557
|
+
return target.offsetWidth;
|
|
558
|
+
}
|
|
559
|
+
function calculateRealTime(animatingRect, fromRect, toRect, options) {
|
|
560
|
+
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;
|
|
561
|
+
}
|
|
562
|
+
var plugins = [];
|
|
563
|
+
var defaults = {
|
|
564
|
+
initializeByDefault: true
|
|
565
|
+
};
|
|
566
|
+
var PluginManager = {
|
|
567
|
+
mount: function mount(plugin) {
|
|
568
|
+
for (var option2 in defaults) {
|
|
569
|
+
if (defaults.hasOwnProperty(option2) && !(option2 in plugin)) {
|
|
570
|
+
plugin[option2] = defaults[option2];
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
plugins.forEach(function(p) {
|
|
574
|
+
if (p.pluginName === plugin.pluginName) {
|
|
575
|
+
throw "Sortable: Cannot mount plugin ".concat(plugin.pluginName, " more than once");
|
|
576
|
+
}
|
|
577
|
+
});
|
|
578
|
+
plugins.push(plugin);
|
|
579
|
+
},
|
|
580
|
+
pluginEvent: function pluginEvent(eventName, sortable, evt) {
|
|
581
|
+
var _this = this;
|
|
582
|
+
this.eventCanceled = false;
|
|
583
|
+
evt.cancel = function() {
|
|
584
|
+
_this.eventCanceled = true;
|
|
585
|
+
};
|
|
586
|
+
var eventNameGlobal = eventName + "Global";
|
|
587
|
+
plugins.forEach(function(plugin) {
|
|
588
|
+
if (!sortable[plugin.pluginName]) return;
|
|
589
|
+
if (sortable[plugin.pluginName][eventNameGlobal]) {
|
|
590
|
+
sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({
|
|
591
|
+
sortable
|
|
592
|
+
}, evt));
|
|
593
|
+
}
|
|
594
|
+
if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {
|
|
595
|
+
sortable[plugin.pluginName][eventName](_objectSpread2({
|
|
596
|
+
sortable
|
|
597
|
+
}, evt));
|
|
598
|
+
}
|
|
599
|
+
});
|
|
600
|
+
},
|
|
601
|
+
initializePlugins: function initializePlugins(sortable, el, defaults2, options) {
|
|
602
|
+
plugins.forEach(function(plugin) {
|
|
603
|
+
var pluginName = plugin.pluginName;
|
|
604
|
+
if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;
|
|
605
|
+
var initialized = new plugin(sortable, el, sortable.options);
|
|
606
|
+
initialized.sortable = sortable;
|
|
607
|
+
initialized.options = sortable.options;
|
|
608
|
+
sortable[pluginName] = initialized;
|
|
609
|
+
_extends(defaults2, initialized.defaults);
|
|
610
|
+
});
|
|
611
|
+
for (var option2 in sortable.options) {
|
|
612
|
+
if (!sortable.options.hasOwnProperty(option2)) continue;
|
|
613
|
+
var modified = this.modifyOption(sortable, option2, sortable.options[option2]);
|
|
614
|
+
if (typeof modified !== "undefined") {
|
|
615
|
+
sortable.options[option2] = modified;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
getEventProperties: function getEventProperties(name, sortable) {
|
|
620
|
+
var eventProperties = {};
|
|
621
|
+
plugins.forEach(function(plugin) {
|
|
622
|
+
if (typeof plugin.eventProperties !== "function") return;
|
|
623
|
+
_extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));
|
|
624
|
+
});
|
|
625
|
+
return eventProperties;
|
|
626
|
+
},
|
|
627
|
+
modifyOption: function modifyOption(sortable, name, value) {
|
|
628
|
+
var modifiedValue;
|
|
629
|
+
plugins.forEach(function(plugin) {
|
|
630
|
+
if (!sortable[plugin.pluginName]) return;
|
|
631
|
+
if (plugin.optionListeners && typeof plugin.optionListeners[name] === "function") {
|
|
632
|
+
modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);
|
|
633
|
+
}
|
|
634
|
+
});
|
|
635
|
+
return modifiedValue;
|
|
636
|
+
}
|
|
637
|
+
};
|
|
638
|
+
function dispatchEvent(_ref) {
|
|
639
|
+
var sortable = _ref.sortable, rootEl2 = _ref.rootEl, name = _ref.name, targetEl = _ref.targetEl, cloneEl2 = _ref.cloneEl, toEl = _ref.toEl, fromEl = _ref.fromEl, oldIndex2 = _ref.oldIndex, newIndex2 = _ref.newIndex, oldDraggableIndex2 = _ref.oldDraggableIndex, newDraggableIndex2 = _ref.newDraggableIndex, originalEvent = _ref.originalEvent, putSortable2 = _ref.putSortable, extraEventProperties = _ref.extraEventProperties;
|
|
640
|
+
sortable = sortable || rootEl2 && rootEl2[expando];
|
|
641
|
+
if (!sortable) return;
|
|
642
|
+
var evt, options = sortable.options, onName = "on" + name.charAt(0).toUpperCase() + name.substr(1);
|
|
643
|
+
if (window.CustomEvent && !IE11OrLess && !Edge) {
|
|
644
|
+
evt = new CustomEvent(name, {
|
|
645
|
+
bubbles: true,
|
|
646
|
+
cancelable: true
|
|
647
|
+
});
|
|
648
|
+
} else {
|
|
649
|
+
evt = document.createEvent("Event");
|
|
650
|
+
evt.initEvent(name, true, true);
|
|
651
|
+
}
|
|
652
|
+
evt.to = toEl || rootEl2;
|
|
653
|
+
evt.from = fromEl || rootEl2;
|
|
654
|
+
evt.item = targetEl || rootEl2;
|
|
655
|
+
evt.clone = cloneEl2;
|
|
656
|
+
evt.oldIndex = oldIndex2;
|
|
657
|
+
evt.newIndex = newIndex2;
|
|
658
|
+
evt.oldDraggableIndex = oldDraggableIndex2;
|
|
659
|
+
evt.newDraggableIndex = newDraggableIndex2;
|
|
660
|
+
evt.originalEvent = originalEvent;
|
|
661
|
+
evt.pullMode = putSortable2 ? putSortable2.lastPutMode : void 0;
|
|
662
|
+
var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));
|
|
663
|
+
for (var option2 in allEventProperties) {
|
|
664
|
+
evt[option2] = allEventProperties[option2];
|
|
665
|
+
}
|
|
666
|
+
if (rootEl2) {
|
|
667
|
+
rootEl2.dispatchEvent(evt);
|
|
668
|
+
}
|
|
669
|
+
if (options[onName]) {
|
|
670
|
+
options[onName].call(sortable, evt);
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
var _excluded = ["evt"];
|
|
674
|
+
var pluginEvent2 = function pluginEvent3(eventName, sortable) {
|
|
675
|
+
var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, originalEvent = _ref.evt, data = _objectWithoutProperties(_ref, _excluded);
|
|
676
|
+
PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({
|
|
677
|
+
dragEl,
|
|
678
|
+
parentEl,
|
|
679
|
+
ghostEl,
|
|
680
|
+
rootEl,
|
|
681
|
+
nextEl,
|
|
682
|
+
lastDownEl,
|
|
683
|
+
cloneEl,
|
|
684
|
+
cloneHidden,
|
|
685
|
+
dragStarted: moved,
|
|
686
|
+
putSortable,
|
|
687
|
+
activeSortable: Sortable.active,
|
|
688
|
+
originalEvent,
|
|
689
|
+
oldIndex,
|
|
690
|
+
oldDraggableIndex,
|
|
691
|
+
newIndex,
|
|
692
|
+
newDraggableIndex,
|
|
693
|
+
hideGhostForTarget: _hideGhostForTarget,
|
|
694
|
+
unhideGhostForTarget: _unhideGhostForTarget,
|
|
695
|
+
cloneNowHidden: function cloneNowHidden() {
|
|
696
|
+
cloneHidden = true;
|
|
697
|
+
},
|
|
698
|
+
cloneNowShown: function cloneNowShown() {
|
|
699
|
+
cloneHidden = false;
|
|
700
|
+
},
|
|
701
|
+
dispatchSortableEvent: function dispatchSortableEvent(name) {
|
|
702
|
+
_dispatchEvent({
|
|
703
|
+
sortable,
|
|
704
|
+
name,
|
|
705
|
+
originalEvent
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
}, data));
|
|
709
|
+
};
|
|
710
|
+
function _dispatchEvent(info) {
|
|
711
|
+
dispatchEvent(_objectSpread2({
|
|
712
|
+
putSortable,
|
|
713
|
+
cloneEl,
|
|
714
|
+
targetEl: dragEl,
|
|
715
|
+
rootEl,
|
|
716
|
+
oldIndex,
|
|
717
|
+
oldDraggableIndex,
|
|
718
|
+
newIndex,
|
|
719
|
+
newDraggableIndex
|
|
720
|
+
}, info));
|
|
721
|
+
}
|
|
722
|
+
var dragEl;
|
|
723
|
+
var parentEl;
|
|
724
|
+
var ghostEl;
|
|
725
|
+
var rootEl;
|
|
726
|
+
var nextEl;
|
|
727
|
+
var lastDownEl;
|
|
728
|
+
var cloneEl;
|
|
729
|
+
var cloneHidden;
|
|
730
|
+
var oldIndex;
|
|
731
|
+
var newIndex;
|
|
732
|
+
var oldDraggableIndex;
|
|
733
|
+
var newDraggableIndex;
|
|
734
|
+
var activeGroup;
|
|
735
|
+
var putSortable;
|
|
736
|
+
var awaitingDragStarted = false;
|
|
737
|
+
var ignoreNextClick = false;
|
|
738
|
+
var sortables = [];
|
|
739
|
+
var tapEvt;
|
|
740
|
+
var touchEvt;
|
|
741
|
+
var lastDx;
|
|
742
|
+
var lastDy;
|
|
743
|
+
var tapDistanceLeft;
|
|
744
|
+
var tapDistanceTop;
|
|
745
|
+
var moved;
|
|
746
|
+
var lastTarget;
|
|
747
|
+
var lastDirection;
|
|
748
|
+
var pastFirstInvertThresh = false;
|
|
749
|
+
var isCircumstantialInvert = false;
|
|
750
|
+
var targetMoveDistance;
|
|
751
|
+
var ghostRelativeParent;
|
|
752
|
+
var ghostRelativeParentInitialScroll = [];
|
|
753
|
+
var _silent = false;
|
|
754
|
+
var savedInputChecked = [];
|
|
755
|
+
var documentExists = typeof document !== "undefined";
|
|
756
|
+
var PositionGhostAbsolutely = IOS;
|
|
757
|
+
var CSSFloatProperty = Edge || IE11OrLess ? "cssFloat" : "float";
|
|
758
|
+
var supportDraggable = documentExists && !ChromeForAndroid && !IOS && "draggable" in document.createElement("div");
|
|
759
|
+
var supportCssPointerEvents = function() {
|
|
760
|
+
if (!documentExists) return;
|
|
761
|
+
if (IE11OrLess) {
|
|
762
|
+
return false;
|
|
763
|
+
}
|
|
764
|
+
var el = document.createElement("x");
|
|
765
|
+
el.style.cssText = "pointer-events:auto";
|
|
766
|
+
return el.style.pointerEvents === "auto";
|
|
767
|
+
}();
|
|
768
|
+
var _detectDirection = function _detectDirection2(el, options) {
|
|
769
|
+
var elCSS = css(el), elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth), child1 = getChild(el, 0, options), child2 = getChild(el, 1, options), firstChildCSS = child1 && css(child1), secondChildCSS = child2 && css(child2), firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width, secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;
|
|
770
|
+
if (elCSS.display === "flex") {
|
|
771
|
+
return elCSS.flexDirection === "column" || elCSS.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
772
|
+
}
|
|
773
|
+
if (elCSS.display === "grid") {
|
|
774
|
+
return elCSS.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
775
|
+
}
|
|
776
|
+
if (child1 && firstChildCSS["float"] && firstChildCSS["float"] !== "none") {
|
|
777
|
+
var touchingSideChild2 = firstChildCSS["float"] === "left" ? "left" : "right";
|
|
778
|
+
return child2 && (secondChildCSS.clear === "both" || secondChildCSS.clear === touchingSideChild2) ? "vertical" : "horizontal";
|
|
779
|
+
}
|
|
780
|
+
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";
|
|
781
|
+
};
|
|
782
|
+
var _dragElInRowColumn = function _dragElInRowColumn2(dragRect, targetRect, vertical) {
|
|
783
|
+
var dragElS1Opp = vertical ? dragRect.left : dragRect.top, dragElS2Opp = vertical ? dragRect.right : dragRect.bottom, dragElOppLength = vertical ? dragRect.width : dragRect.height, targetS1Opp = vertical ? targetRect.left : targetRect.top, targetS2Opp = vertical ? targetRect.right : targetRect.bottom, targetOppLength = vertical ? targetRect.width : targetRect.height;
|
|
784
|
+
return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
|
|
785
|
+
};
|
|
786
|
+
var _detectNearestEmptySortable = function _detectNearestEmptySortable2(x, y) {
|
|
787
|
+
var ret;
|
|
788
|
+
sortables.some(function(sortable) {
|
|
789
|
+
var threshold = sortable[expando].options.emptyInsertThreshold;
|
|
790
|
+
if (!threshold || lastChild(sortable)) return;
|
|
791
|
+
var rect = getRect(sortable), insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold, insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;
|
|
792
|
+
if (insideHorizontally && insideVertically) {
|
|
793
|
+
return ret = sortable;
|
|
794
|
+
}
|
|
795
|
+
});
|
|
796
|
+
return ret;
|
|
797
|
+
};
|
|
798
|
+
var _prepareGroup = function _prepareGroup2(options) {
|
|
799
|
+
function toFn(value, pull) {
|
|
800
|
+
return function(to, from, dragEl2, evt) {
|
|
801
|
+
var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;
|
|
802
|
+
if (value == null && (pull || sameGroup)) {
|
|
803
|
+
return true;
|
|
804
|
+
} else if (value == null || value === false) {
|
|
805
|
+
return false;
|
|
806
|
+
} else if (pull && value === "clone") {
|
|
807
|
+
return value;
|
|
808
|
+
} else if (typeof value === "function") {
|
|
809
|
+
return toFn(value(to, from, dragEl2, evt), pull)(to, from, dragEl2, evt);
|
|
810
|
+
} else {
|
|
811
|
+
var otherGroup = (pull ? to : from).options.group.name;
|
|
812
|
+
return value === true || typeof value === "string" && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;
|
|
813
|
+
}
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
var group = {};
|
|
817
|
+
var originalGroup = options.group;
|
|
818
|
+
if (!originalGroup || _typeof(originalGroup) != "object") {
|
|
819
|
+
originalGroup = {
|
|
820
|
+
name: originalGroup
|
|
821
|
+
};
|
|
822
|
+
}
|
|
823
|
+
group.name = originalGroup.name;
|
|
824
|
+
group.checkPull = toFn(originalGroup.pull, true);
|
|
825
|
+
group.checkPut = toFn(originalGroup.put);
|
|
826
|
+
group.revertClone = originalGroup.revertClone;
|
|
827
|
+
options.group = group;
|
|
828
|
+
};
|
|
829
|
+
var _hideGhostForTarget = function _hideGhostForTarget2() {
|
|
830
|
+
if (!supportCssPointerEvents && ghostEl) {
|
|
831
|
+
css(ghostEl, "display", "none");
|
|
832
|
+
}
|
|
833
|
+
};
|
|
834
|
+
var _unhideGhostForTarget = function _unhideGhostForTarget2() {
|
|
835
|
+
if (!supportCssPointerEvents && ghostEl) {
|
|
836
|
+
css(ghostEl, "display", "");
|
|
837
|
+
}
|
|
838
|
+
};
|
|
839
|
+
if (documentExists && !ChromeForAndroid) {
|
|
840
|
+
document.addEventListener("click", function(evt) {
|
|
841
|
+
if (ignoreNextClick) {
|
|
842
|
+
evt.preventDefault();
|
|
843
|
+
evt.stopPropagation && evt.stopPropagation();
|
|
844
|
+
evt.stopImmediatePropagation && evt.stopImmediatePropagation();
|
|
845
|
+
ignoreNextClick = false;
|
|
846
|
+
return false;
|
|
847
|
+
}
|
|
848
|
+
}, true);
|
|
849
|
+
}
|
|
850
|
+
var nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent2(evt) {
|
|
851
|
+
if (dragEl) {
|
|
852
|
+
evt = evt.touches ? evt.touches[0] : evt;
|
|
853
|
+
var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);
|
|
854
|
+
if (nearest) {
|
|
855
|
+
var event = {};
|
|
856
|
+
for (var i in evt) {
|
|
857
|
+
if (evt.hasOwnProperty(i)) {
|
|
858
|
+
event[i] = evt[i];
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
event.target = event.rootEl = nearest;
|
|
862
|
+
event.preventDefault = void 0;
|
|
863
|
+
event.stopPropagation = void 0;
|
|
864
|
+
nearest[expando]._onDragOver(event);
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
};
|
|
868
|
+
var _checkOutsideTargetEl = function _checkOutsideTargetEl2(evt) {
|
|
869
|
+
if (dragEl) {
|
|
870
|
+
dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
|
|
871
|
+
}
|
|
872
|
+
};
|
|
873
|
+
function Sortable(el, options) {
|
|
874
|
+
if (!(el && el.nodeType && el.nodeType === 1)) {
|
|
875
|
+
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(el));
|
|
876
|
+
}
|
|
877
|
+
this.el = el;
|
|
878
|
+
this.options = options = _extends({}, options);
|
|
879
|
+
el[expando] = this;
|
|
880
|
+
var defaults2 = {
|
|
881
|
+
group: null,
|
|
882
|
+
sort: true,
|
|
883
|
+
disabled: false,
|
|
884
|
+
store: null,
|
|
885
|
+
handle: null,
|
|
886
|
+
draggable: /^[uo]l$/i.test(el.nodeName) ? ">li" : ">*",
|
|
887
|
+
swapThreshold: 1,
|
|
888
|
+
// percentage; 0 <= x <= 1
|
|
889
|
+
invertSwap: false,
|
|
890
|
+
// invert always
|
|
891
|
+
invertedSwapThreshold: null,
|
|
892
|
+
// will be set to same as swapThreshold if default
|
|
893
|
+
removeCloneOnHide: true,
|
|
894
|
+
direction: function direction() {
|
|
895
|
+
return _detectDirection(el, this.options);
|
|
896
|
+
},
|
|
897
|
+
ghostClass: "sortable-ghost",
|
|
898
|
+
chosenClass: "sortable-chosen",
|
|
899
|
+
dragClass: "sortable-drag",
|
|
900
|
+
ignore: "a, img",
|
|
901
|
+
filter: null,
|
|
902
|
+
preventOnFilter: true,
|
|
903
|
+
animation: 0,
|
|
904
|
+
easing: null,
|
|
905
|
+
setData: function setData(dataTransfer, dragEl2) {
|
|
906
|
+
dataTransfer.setData("Text", dragEl2.textContent);
|
|
907
|
+
},
|
|
908
|
+
dropBubble: false,
|
|
909
|
+
dragoverBubble: false,
|
|
910
|
+
dataIdAttr: "data-id",
|
|
911
|
+
delay: 0,
|
|
912
|
+
delayOnTouchOnly: false,
|
|
913
|
+
touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
|
|
914
|
+
forceFallback: false,
|
|
915
|
+
fallbackClass: "sortable-fallback",
|
|
916
|
+
fallbackOnBody: false,
|
|
917
|
+
fallbackTolerance: 0,
|
|
918
|
+
fallbackOffset: {
|
|
919
|
+
x: 0,
|
|
920
|
+
y: 0
|
|
921
|
+
},
|
|
922
|
+
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
923
|
+
supportPointer: Sortable.supportPointer !== false && "PointerEvent" in window && (!Safari || IOS),
|
|
924
|
+
emptyInsertThreshold: 5
|
|
925
|
+
};
|
|
926
|
+
PluginManager.initializePlugins(this, el, defaults2);
|
|
927
|
+
for (var name in defaults2) {
|
|
928
|
+
!(name in options) && (options[name] = defaults2[name]);
|
|
929
|
+
}
|
|
930
|
+
_prepareGroup(options);
|
|
931
|
+
for (var fn in this) {
|
|
932
|
+
if (fn.charAt(0) === "_" && typeof this[fn] === "function") {
|
|
933
|
+
this[fn] = this[fn].bind(this);
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
this.nativeDraggable = options.forceFallback ? false : supportDraggable;
|
|
937
|
+
if (this.nativeDraggable) {
|
|
938
|
+
this.options.touchStartThreshold = 1;
|
|
939
|
+
}
|
|
940
|
+
if (options.supportPointer) {
|
|
941
|
+
on(el, "pointerdown", this._onTapStart);
|
|
942
|
+
} else {
|
|
943
|
+
on(el, "mousedown", this._onTapStart);
|
|
944
|
+
on(el, "touchstart", this._onTapStart);
|
|
945
|
+
}
|
|
946
|
+
if (this.nativeDraggable) {
|
|
947
|
+
on(el, "dragover", this);
|
|
948
|
+
on(el, "dragenter", this);
|
|
949
|
+
}
|
|
950
|
+
sortables.push(this.el);
|
|
951
|
+
options.store && options.store.get && this.sort(options.store.get(this) || []);
|
|
952
|
+
_extends(this, AnimationStateManager());
|
|
953
|
+
}
|
|
954
|
+
Sortable.prototype = /** @lends Sortable.prototype */
|
|
955
|
+
{
|
|
956
|
+
constructor: Sortable,
|
|
957
|
+
_isOutsideThisEl: function _isOutsideThisEl(target) {
|
|
958
|
+
if (!this.el.contains(target) && target !== this.el) {
|
|
959
|
+
lastTarget = null;
|
|
960
|
+
}
|
|
961
|
+
},
|
|
962
|
+
_getDirection: function _getDirection(evt, target) {
|
|
963
|
+
return typeof this.options.direction === "function" ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;
|
|
964
|
+
},
|
|
965
|
+
_onTapStart: function _onTapStart(evt) {
|
|
966
|
+
if (!evt.cancelable) return;
|
|
967
|
+
var _this = this, el = this.el, options = this.options, preventOnFilter = options.preventOnFilter, type = evt.type, touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === "touch" && evt, target = (touch || evt).target, originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target, filter = options.filter;
|
|
968
|
+
_saveInputCheckedState(el);
|
|
969
|
+
if (dragEl) {
|
|
970
|
+
return;
|
|
971
|
+
}
|
|
972
|
+
if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {
|
|
973
|
+
return;
|
|
974
|
+
}
|
|
975
|
+
if (originalTarget.isContentEditable) {
|
|
976
|
+
return;
|
|
977
|
+
}
|
|
978
|
+
if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === "SELECT") {
|
|
979
|
+
return;
|
|
980
|
+
}
|
|
981
|
+
target = closest(target, options.draggable, el, false);
|
|
982
|
+
if (target && target.animated) {
|
|
983
|
+
return;
|
|
984
|
+
}
|
|
985
|
+
if (lastDownEl === target) {
|
|
986
|
+
return;
|
|
987
|
+
}
|
|
988
|
+
oldIndex = index(target);
|
|
989
|
+
oldDraggableIndex = index(target, options.draggable);
|
|
990
|
+
if (typeof filter === "function") {
|
|
991
|
+
if (filter.call(this, evt, target, this)) {
|
|
992
|
+
_dispatchEvent({
|
|
993
|
+
sortable: _this,
|
|
994
|
+
rootEl: originalTarget,
|
|
995
|
+
name: "filter",
|
|
996
|
+
targetEl: target,
|
|
997
|
+
toEl: el,
|
|
998
|
+
fromEl: el
|
|
999
|
+
});
|
|
1000
|
+
pluginEvent2("filter", _this, {
|
|
1001
|
+
evt
|
|
1002
|
+
});
|
|
1003
|
+
preventOnFilter && evt.preventDefault();
|
|
1004
|
+
return;
|
|
1005
|
+
}
|
|
1006
|
+
} else if (filter) {
|
|
1007
|
+
filter = filter.split(",").some(function(criteria) {
|
|
1008
|
+
criteria = closest(originalTarget, criteria.trim(), el, false);
|
|
1009
|
+
if (criteria) {
|
|
1010
|
+
_dispatchEvent({
|
|
1011
|
+
sortable: _this,
|
|
1012
|
+
rootEl: criteria,
|
|
1013
|
+
name: "filter",
|
|
1014
|
+
targetEl: target,
|
|
1015
|
+
fromEl: el,
|
|
1016
|
+
toEl: el
|
|
1017
|
+
});
|
|
1018
|
+
pluginEvent2("filter", _this, {
|
|
1019
|
+
evt
|
|
1020
|
+
});
|
|
1021
|
+
return true;
|
|
1022
|
+
}
|
|
1023
|
+
});
|
|
1024
|
+
if (filter) {
|
|
1025
|
+
preventOnFilter && evt.preventDefault();
|
|
1026
|
+
return;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
if (options.handle && !closest(originalTarget, options.handle, el, false)) {
|
|
1030
|
+
return;
|
|
1031
|
+
}
|
|
1032
|
+
this._prepareDragStart(evt, touch, target);
|
|
1033
|
+
},
|
|
1034
|
+
_prepareDragStart: function _prepareDragStart(evt, touch, target) {
|
|
1035
|
+
var _this = this, el = _this.el, options = _this.options, ownerDocument = el.ownerDocument, dragStartFn;
|
|
1036
|
+
if (target && !dragEl && target.parentNode === el) {
|
|
1037
|
+
var dragRect = getRect(target);
|
|
1038
|
+
rootEl = el;
|
|
1039
|
+
dragEl = target;
|
|
1040
|
+
parentEl = dragEl.parentNode;
|
|
1041
|
+
nextEl = dragEl.nextSibling;
|
|
1042
|
+
lastDownEl = target;
|
|
1043
|
+
activeGroup = options.group;
|
|
1044
|
+
Sortable.dragged = dragEl;
|
|
1045
|
+
tapEvt = {
|
|
1046
|
+
target: dragEl,
|
|
1047
|
+
clientX: (touch || evt).clientX,
|
|
1048
|
+
clientY: (touch || evt).clientY
|
|
1049
|
+
};
|
|
1050
|
+
tapDistanceLeft = tapEvt.clientX - dragRect.left;
|
|
1051
|
+
tapDistanceTop = tapEvt.clientY - dragRect.top;
|
|
1052
|
+
this._lastX = (touch || evt).clientX;
|
|
1053
|
+
this._lastY = (touch || evt).clientY;
|
|
1054
|
+
dragEl.style["will-change"] = "all";
|
|
1055
|
+
dragStartFn = function dragStartFn2() {
|
|
1056
|
+
pluginEvent2("delayEnded", _this, {
|
|
1057
|
+
evt
|
|
1058
|
+
});
|
|
1059
|
+
if (Sortable.eventCanceled) {
|
|
1060
|
+
_this._onDrop();
|
|
1061
|
+
return;
|
|
1062
|
+
}
|
|
1063
|
+
_this._disableDelayedDragEvents();
|
|
1064
|
+
if (!FireFox && _this.nativeDraggable) {
|
|
1065
|
+
dragEl.draggable = true;
|
|
1066
|
+
}
|
|
1067
|
+
_this._triggerDragStart(evt, touch);
|
|
1068
|
+
_dispatchEvent({
|
|
1069
|
+
sortable: _this,
|
|
1070
|
+
name: "choose",
|
|
1071
|
+
originalEvent: evt
|
|
1072
|
+
});
|
|
1073
|
+
toggleClass(dragEl, options.chosenClass, true);
|
|
1074
|
+
};
|
|
1075
|
+
options.ignore.split(",").forEach(function(criteria) {
|
|
1076
|
+
find(dragEl, criteria.trim(), _disableDraggable);
|
|
1077
|
+
});
|
|
1078
|
+
on(ownerDocument, "dragover", nearestEmptyInsertDetectEvent);
|
|
1079
|
+
on(ownerDocument, "mousemove", nearestEmptyInsertDetectEvent);
|
|
1080
|
+
on(ownerDocument, "touchmove", nearestEmptyInsertDetectEvent);
|
|
1081
|
+
if (options.supportPointer) {
|
|
1082
|
+
on(ownerDocument, "pointerup", _this._onDrop);
|
|
1083
|
+
!this.nativeDraggable && on(ownerDocument, "pointercancel", _this._onDrop);
|
|
1084
|
+
} else {
|
|
1085
|
+
on(ownerDocument, "mouseup", _this._onDrop);
|
|
1086
|
+
on(ownerDocument, "touchend", _this._onDrop);
|
|
1087
|
+
on(ownerDocument, "touchcancel", _this._onDrop);
|
|
1088
|
+
}
|
|
1089
|
+
if (FireFox && this.nativeDraggable) {
|
|
1090
|
+
this.options.touchStartThreshold = 4;
|
|
1091
|
+
dragEl.draggable = true;
|
|
1092
|
+
}
|
|
1093
|
+
pluginEvent2("delayStart", this, {
|
|
1094
|
+
evt
|
|
1095
|
+
});
|
|
1096
|
+
if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {
|
|
1097
|
+
if (Sortable.eventCanceled) {
|
|
1098
|
+
this._onDrop();
|
|
1099
|
+
return;
|
|
1100
|
+
}
|
|
1101
|
+
if (options.supportPointer) {
|
|
1102
|
+
on(ownerDocument, "pointerup", _this._disableDelayedDrag);
|
|
1103
|
+
on(ownerDocument, "pointercancel", _this._disableDelayedDrag);
|
|
1104
|
+
} else {
|
|
1105
|
+
on(ownerDocument, "mouseup", _this._disableDelayedDrag);
|
|
1106
|
+
on(ownerDocument, "touchend", _this._disableDelayedDrag);
|
|
1107
|
+
on(ownerDocument, "touchcancel", _this._disableDelayedDrag);
|
|
1108
|
+
}
|
|
1109
|
+
on(ownerDocument, "mousemove", _this._delayedDragTouchMoveHandler);
|
|
1110
|
+
on(ownerDocument, "touchmove", _this._delayedDragTouchMoveHandler);
|
|
1111
|
+
options.supportPointer && on(ownerDocument, "pointermove", _this._delayedDragTouchMoveHandler);
|
|
1112
|
+
_this._dragStartTimer = setTimeout(dragStartFn, options.delay);
|
|
1113
|
+
} else {
|
|
1114
|
+
dragStartFn();
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
_delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(e3) {
|
|
1119
|
+
var touch = e3.touches ? e3.touches[0] : e3;
|
|
1120
|
+
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))) {
|
|
1121
|
+
this._disableDelayedDrag();
|
|
1122
|
+
}
|
|
1123
|
+
},
|
|
1124
|
+
_disableDelayedDrag: function _disableDelayedDrag() {
|
|
1125
|
+
dragEl && _disableDraggable(dragEl);
|
|
1126
|
+
clearTimeout(this._dragStartTimer);
|
|
1127
|
+
this._disableDelayedDragEvents();
|
|
1128
|
+
},
|
|
1129
|
+
_disableDelayedDragEvents: function _disableDelayedDragEvents() {
|
|
1130
|
+
var ownerDocument = this.el.ownerDocument;
|
|
1131
|
+
off(ownerDocument, "mouseup", this._disableDelayedDrag);
|
|
1132
|
+
off(ownerDocument, "touchend", this._disableDelayedDrag);
|
|
1133
|
+
off(ownerDocument, "touchcancel", this._disableDelayedDrag);
|
|
1134
|
+
off(ownerDocument, "pointerup", this._disableDelayedDrag);
|
|
1135
|
+
off(ownerDocument, "pointercancel", this._disableDelayedDrag);
|
|
1136
|
+
off(ownerDocument, "mousemove", this._delayedDragTouchMoveHandler);
|
|
1137
|
+
off(ownerDocument, "touchmove", this._delayedDragTouchMoveHandler);
|
|
1138
|
+
off(ownerDocument, "pointermove", this._delayedDragTouchMoveHandler);
|
|
1139
|
+
},
|
|
1140
|
+
_triggerDragStart: function _triggerDragStart(evt, touch) {
|
|
1141
|
+
touch = touch || evt.pointerType == "touch" && evt;
|
|
1142
|
+
if (!this.nativeDraggable || touch) {
|
|
1143
|
+
if (this.options.supportPointer) {
|
|
1144
|
+
on(document, "pointermove", this._onTouchMove);
|
|
1145
|
+
} else if (touch) {
|
|
1146
|
+
on(document, "touchmove", this._onTouchMove);
|
|
1147
|
+
} else {
|
|
1148
|
+
on(document, "mousemove", this._onTouchMove);
|
|
1149
|
+
}
|
|
1150
|
+
} else {
|
|
1151
|
+
on(dragEl, "dragend", this);
|
|
1152
|
+
on(rootEl, "dragstart", this._onDragStart);
|
|
1153
|
+
}
|
|
1154
|
+
try {
|
|
1155
|
+
if (document.selection) {
|
|
1156
|
+
_nextTick(function() {
|
|
1157
|
+
document.selection.empty();
|
|
1158
|
+
});
|
|
1159
|
+
} else {
|
|
1160
|
+
window.getSelection().removeAllRanges();
|
|
1161
|
+
}
|
|
1162
|
+
} catch (err) {
|
|
1163
|
+
}
|
|
1164
|
+
},
|
|
1165
|
+
_dragStarted: function _dragStarted(fallback, evt) {
|
|
1166
|
+
awaitingDragStarted = false;
|
|
1167
|
+
if (rootEl && dragEl) {
|
|
1168
|
+
pluginEvent2("dragStarted", this, {
|
|
1169
|
+
evt
|
|
1170
|
+
});
|
|
1171
|
+
if (this.nativeDraggable) {
|
|
1172
|
+
on(document, "dragover", _checkOutsideTargetEl);
|
|
1173
|
+
}
|
|
1174
|
+
var options = this.options;
|
|
1175
|
+
!fallback && toggleClass(dragEl, options.dragClass, false);
|
|
1176
|
+
toggleClass(dragEl, options.ghostClass, true);
|
|
1177
|
+
Sortable.active = this;
|
|
1178
|
+
fallback && this._appendGhost();
|
|
1179
|
+
_dispatchEvent({
|
|
1180
|
+
sortable: this,
|
|
1181
|
+
name: "start",
|
|
1182
|
+
originalEvent: evt
|
|
1183
|
+
});
|
|
1184
|
+
} else {
|
|
1185
|
+
this._nulling();
|
|
1186
|
+
}
|
|
1187
|
+
},
|
|
1188
|
+
_emulateDragOver: function _emulateDragOver() {
|
|
1189
|
+
if (touchEvt) {
|
|
1190
|
+
this._lastX = touchEvt.clientX;
|
|
1191
|
+
this._lastY = touchEvt.clientY;
|
|
1192
|
+
_hideGhostForTarget();
|
|
1193
|
+
var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
|
|
1194
|
+
var parent = target;
|
|
1195
|
+
while (target && target.shadowRoot) {
|
|
1196
|
+
target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
|
|
1197
|
+
if (target === parent) break;
|
|
1198
|
+
parent = target;
|
|
1199
|
+
}
|
|
1200
|
+
dragEl.parentNode[expando]._isOutsideThisEl(target);
|
|
1201
|
+
if (parent) {
|
|
1202
|
+
do {
|
|
1203
|
+
if (parent[expando]) {
|
|
1204
|
+
var inserted = void 0;
|
|
1205
|
+
inserted = parent[expando]._onDragOver({
|
|
1206
|
+
clientX: touchEvt.clientX,
|
|
1207
|
+
clientY: touchEvt.clientY,
|
|
1208
|
+
target,
|
|
1209
|
+
rootEl: parent
|
|
1210
|
+
});
|
|
1211
|
+
if (inserted && !this.options.dragoverBubble) {
|
|
1212
|
+
break;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
target = parent;
|
|
1216
|
+
} while (parent = getParentOrHost(parent));
|
|
1217
|
+
}
|
|
1218
|
+
_unhideGhostForTarget();
|
|
1219
|
+
}
|
|
1220
|
+
},
|
|
1221
|
+
_onTouchMove: function _onTouchMove(evt) {
|
|
1222
|
+
if (tapEvt) {
|
|
1223
|
+
var options = this.options, fallbackTolerance = options.fallbackTolerance, fallbackOffset = options.fallbackOffset, touch = evt.touches ? evt.touches[0] : evt, ghostMatrix = ghostEl && matrix(ghostEl, true), scaleX = ghostEl && ghostMatrix && ghostMatrix.a, scaleY = ghostEl && ghostMatrix && ghostMatrix.d, relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent), dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1), dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1);
|
|
1224
|
+
if (!Sortable.active && !awaitingDragStarted) {
|
|
1225
|
+
if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {
|
|
1226
|
+
return;
|
|
1227
|
+
}
|
|
1228
|
+
this._onDragStart(evt, true);
|
|
1229
|
+
}
|
|
1230
|
+
if (ghostEl) {
|
|
1231
|
+
if (ghostMatrix) {
|
|
1232
|
+
ghostMatrix.e += dx - (lastDx || 0);
|
|
1233
|
+
ghostMatrix.f += dy - (lastDy || 0);
|
|
1234
|
+
} else {
|
|
1235
|
+
ghostMatrix = {
|
|
1236
|
+
a: 1,
|
|
1237
|
+
b: 0,
|
|
1238
|
+
c: 0,
|
|
1239
|
+
d: 1,
|
|
1240
|
+
e: dx,
|
|
1241
|
+
f: dy
|
|
1242
|
+
};
|
|
1243
|
+
}
|
|
1244
|
+
var cssMatrix = "matrix(".concat(ghostMatrix.a, ",").concat(ghostMatrix.b, ",").concat(ghostMatrix.c, ",").concat(ghostMatrix.d, ",").concat(ghostMatrix.e, ",").concat(ghostMatrix.f, ")");
|
|
1245
|
+
css(ghostEl, "webkitTransform", cssMatrix);
|
|
1246
|
+
css(ghostEl, "mozTransform", cssMatrix);
|
|
1247
|
+
css(ghostEl, "msTransform", cssMatrix);
|
|
1248
|
+
css(ghostEl, "transform", cssMatrix);
|
|
1249
|
+
lastDx = dx;
|
|
1250
|
+
lastDy = dy;
|
|
1251
|
+
touchEvt = touch;
|
|
1252
|
+
}
|
|
1253
|
+
evt.cancelable && evt.preventDefault();
|
|
1254
|
+
}
|
|
1255
|
+
},
|
|
1256
|
+
_appendGhost: function _appendGhost() {
|
|
1257
|
+
if (!ghostEl) {
|
|
1258
|
+
var container = this.options.fallbackOnBody ? document.body : rootEl, rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container), options = this.options;
|
|
1259
|
+
if (PositionGhostAbsolutely) {
|
|
1260
|
+
ghostRelativeParent = container;
|
|
1261
|
+
while (css(ghostRelativeParent, "position") === "static" && css(ghostRelativeParent, "transform") === "none" && ghostRelativeParent !== document) {
|
|
1262
|
+
ghostRelativeParent = ghostRelativeParent.parentNode;
|
|
1263
|
+
}
|
|
1264
|
+
if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {
|
|
1265
|
+
if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();
|
|
1266
|
+
rect.top += ghostRelativeParent.scrollTop;
|
|
1267
|
+
rect.left += ghostRelativeParent.scrollLeft;
|
|
1268
|
+
} else {
|
|
1269
|
+
ghostRelativeParent = getWindowScrollingElement();
|
|
1270
|
+
}
|
|
1271
|
+
ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);
|
|
1272
|
+
}
|
|
1273
|
+
ghostEl = dragEl.cloneNode(true);
|
|
1274
|
+
toggleClass(ghostEl, options.ghostClass, false);
|
|
1275
|
+
toggleClass(ghostEl, options.fallbackClass, true);
|
|
1276
|
+
toggleClass(ghostEl, options.dragClass, true);
|
|
1277
|
+
css(ghostEl, "transition", "");
|
|
1278
|
+
css(ghostEl, "transform", "");
|
|
1279
|
+
css(ghostEl, "box-sizing", "border-box");
|
|
1280
|
+
css(ghostEl, "margin", 0);
|
|
1281
|
+
css(ghostEl, "top", rect.top);
|
|
1282
|
+
css(ghostEl, "left", rect.left);
|
|
1283
|
+
css(ghostEl, "width", rect.width);
|
|
1284
|
+
css(ghostEl, "height", rect.height);
|
|
1285
|
+
css(ghostEl, "opacity", "0.8");
|
|
1286
|
+
css(ghostEl, "position", PositionGhostAbsolutely ? "absolute" : "fixed");
|
|
1287
|
+
css(ghostEl, "zIndex", "100000");
|
|
1288
|
+
css(ghostEl, "pointerEvents", "none");
|
|
1289
|
+
Sortable.ghost = ghostEl;
|
|
1290
|
+
container.appendChild(ghostEl);
|
|
1291
|
+
css(ghostEl, "transform-origin", tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + "% " + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + "%");
|
|
1292
|
+
}
|
|
1293
|
+
},
|
|
1294
|
+
_onDragStart: function _onDragStart(evt, fallback) {
|
|
1295
|
+
var _this = this;
|
|
1296
|
+
var dataTransfer = evt.dataTransfer;
|
|
1297
|
+
var options = _this.options;
|
|
1298
|
+
pluginEvent2("dragStart", this, {
|
|
1299
|
+
evt
|
|
1300
|
+
});
|
|
1301
|
+
if (Sortable.eventCanceled) {
|
|
1302
|
+
this._onDrop();
|
|
1303
|
+
return;
|
|
1304
|
+
}
|
|
1305
|
+
pluginEvent2("setupClone", this);
|
|
1306
|
+
if (!Sortable.eventCanceled) {
|
|
1307
|
+
cloneEl = clone(dragEl);
|
|
1308
|
+
cloneEl.removeAttribute("id");
|
|
1309
|
+
cloneEl.draggable = false;
|
|
1310
|
+
cloneEl.style["will-change"] = "";
|
|
1311
|
+
this._hideClone();
|
|
1312
|
+
toggleClass(cloneEl, this.options.chosenClass, false);
|
|
1313
|
+
Sortable.clone = cloneEl;
|
|
1314
|
+
}
|
|
1315
|
+
_this.cloneId = _nextTick(function() {
|
|
1316
|
+
pluginEvent2("clone", _this);
|
|
1317
|
+
if (Sortable.eventCanceled) return;
|
|
1318
|
+
if (!_this.options.removeCloneOnHide) {
|
|
1319
|
+
rootEl.insertBefore(cloneEl, dragEl);
|
|
1320
|
+
}
|
|
1321
|
+
_this._hideClone();
|
|
1322
|
+
_dispatchEvent({
|
|
1323
|
+
sortable: _this,
|
|
1324
|
+
name: "clone"
|
|
1325
|
+
});
|
|
1326
|
+
});
|
|
1327
|
+
!fallback && toggleClass(dragEl, options.dragClass, true);
|
|
1328
|
+
if (fallback) {
|
|
1329
|
+
ignoreNextClick = true;
|
|
1330
|
+
_this._loopId = setInterval(_this._emulateDragOver, 50);
|
|
1331
|
+
} else {
|
|
1332
|
+
off(document, "mouseup", _this._onDrop);
|
|
1333
|
+
off(document, "touchend", _this._onDrop);
|
|
1334
|
+
off(document, "touchcancel", _this._onDrop);
|
|
1335
|
+
if (dataTransfer) {
|
|
1336
|
+
dataTransfer.effectAllowed = "move";
|
|
1337
|
+
options.setData && options.setData.call(_this, dataTransfer, dragEl);
|
|
1338
|
+
}
|
|
1339
|
+
on(document, "drop", _this);
|
|
1340
|
+
css(dragEl, "transform", "translateZ(0)");
|
|
1341
|
+
}
|
|
1342
|
+
awaitingDragStarted = true;
|
|
1343
|
+
_this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
|
|
1344
|
+
on(document, "selectstart", _this);
|
|
1345
|
+
moved = true;
|
|
1346
|
+
window.getSelection().removeAllRanges();
|
|
1347
|
+
if (Safari) {
|
|
1348
|
+
css(document.body, "user-select", "none");
|
|
1349
|
+
}
|
|
1350
|
+
},
|
|
1351
|
+
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1352
|
+
_onDragOver: function _onDragOver(evt) {
|
|
1353
|
+
var el = this.el, target = evt.target, dragRect, targetRect, revert, options = this.options, group = options.group, activeSortable = Sortable.active, isOwner = activeGroup === group, canSort = options.sort, fromSortable = putSortable || activeSortable, vertical, _this = this, completedFired = false;
|
|
1354
|
+
if (_silent) return;
|
|
1355
|
+
function dragOverEvent(name, extra) {
|
|
1356
|
+
pluginEvent2(name, _this, _objectSpread2({
|
|
1357
|
+
evt,
|
|
1358
|
+
isOwner,
|
|
1359
|
+
axis: vertical ? "vertical" : "horizontal",
|
|
1360
|
+
revert,
|
|
1361
|
+
dragRect,
|
|
1362
|
+
targetRect,
|
|
1363
|
+
canSort,
|
|
1364
|
+
fromSortable,
|
|
1365
|
+
target,
|
|
1366
|
+
completed,
|
|
1367
|
+
onMove: function onMove(target2, after2) {
|
|
1368
|
+
return _onMove(rootEl, el, dragEl, dragRect, target2, getRect(target2), evt, after2);
|
|
1369
|
+
},
|
|
1370
|
+
changed
|
|
1371
|
+
}, extra));
|
|
1372
|
+
}
|
|
1373
|
+
function capture() {
|
|
1374
|
+
dragOverEvent("dragOverAnimationCapture");
|
|
1375
|
+
_this.captureAnimationState();
|
|
1376
|
+
if (_this !== fromSortable) {
|
|
1377
|
+
fromSortable.captureAnimationState();
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
function completed(insertion) {
|
|
1381
|
+
dragOverEvent("dragOverCompleted", {
|
|
1382
|
+
insertion
|
|
1383
|
+
});
|
|
1384
|
+
if (insertion) {
|
|
1385
|
+
if (isOwner) {
|
|
1386
|
+
activeSortable._hideClone();
|
|
1387
|
+
} else {
|
|
1388
|
+
activeSortable._showClone(_this);
|
|
1389
|
+
}
|
|
1390
|
+
if (_this !== fromSortable) {
|
|
1391
|
+
toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);
|
|
1392
|
+
toggleClass(dragEl, options.ghostClass, true);
|
|
1393
|
+
}
|
|
1394
|
+
if (putSortable !== _this && _this !== Sortable.active) {
|
|
1395
|
+
putSortable = _this;
|
|
1396
|
+
} else if (_this === Sortable.active && putSortable) {
|
|
1397
|
+
putSortable = null;
|
|
1398
|
+
}
|
|
1399
|
+
if (fromSortable === _this) {
|
|
1400
|
+
_this._ignoreWhileAnimating = target;
|
|
1401
|
+
}
|
|
1402
|
+
_this.animateAll(function() {
|
|
1403
|
+
dragOverEvent("dragOverAnimationComplete");
|
|
1404
|
+
_this._ignoreWhileAnimating = null;
|
|
1405
|
+
});
|
|
1406
|
+
if (_this !== fromSortable) {
|
|
1407
|
+
fromSortable.animateAll();
|
|
1408
|
+
fromSortable._ignoreWhileAnimating = null;
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
if (target === dragEl && !dragEl.animated || target === el && !target.animated) {
|
|
1412
|
+
lastTarget = null;
|
|
1413
|
+
}
|
|
1414
|
+
if (!options.dragoverBubble && !evt.rootEl && target !== document) {
|
|
1415
|
+
dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
|
|
1416
|
+
!insertion && nearestEmptyInsertDetectEvent(evt);
|
|
1417
|
+
}
|
|
1418
|
+
!options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();
|
|
1419
|
+
return completedFired = true;
|
|
1420
|
+
}
|
|
1421
|
+
function changed() {
|
|
1422
|
+
newIndex = index(dragEl);
|
|
1423
|
+
newDraggableIndex = index(dragEl, options.draggable);
|
|
1424
|
+
_dispatchEvent({
|
|
1425
|
+
sortable: _this,
|
|
1426
|
+
name: "change",
|
|
1427
|
+
toEl: el,
|
|
1428
|
+
newIndex,
|
|
1429
|
+
newDraggableIndex,
|
|
1430
|
+
originalEvent: evt
|
|
1431
|
+
});
|
|
1432
|
+
}
|
|
1433
|
+
if (evt.preventDefault !== void 0) {
|
|
1434
|
+
evt.cancelable && evt.preventDefault();
|
|
1435
|
+
}
|
|
1436
|
+
target = closest(target, options.draggable, el, true);
|
|
1437
|
+
dragOverEvent("dragOver");
|
|
1438
|
+
if (Sortable.eventCanceled) return completedFired;
|
|
1439
|
+
if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {
|
|
1440
|
+
return completed(false);
|
|
1441
|
+
}
|
|
1442
|
+
ignoreNextClick = false;
|
|
1443
|
+
if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) : putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {
|
|
1444
|
+
vertical = this._getDirection(evt, target) === "vertical";
|
|
1445
|
+
dragRect = getRect(dragEl);
|
|
1446
|
+
dragOverEvent("dragOverValid");
|
|
1447
|
+
if (Sortable.eventCanceled) return completedFired;
|
|
1448
|
+
if (revert) {
|
|
1449
|
+
parentEl = rootEl;
|
|
1450
|
+
capture();
|
|
1451
|
+
this._hideClone();
|
|
1452
|
+
dragOverEvent("revert");
|
|
1453
|
+
if (!Sortable.eventCanceled) {
|
|
1454
|
+
if (nextEl) {
|
|
1455
|
+
rootEl.insertBefore(dragEl, nextEl);
|
|
1456
|
+
} else {
|
|
1457
|
+
rootEl.appendChild(dragEl);
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
return completed(true);
|
|
1461
|
+
}
|
|
1462
|
+
var elLastChild = lastChild(el, options.draggable);
|
|
1463
|
+
if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {
|
|
1464
|
+
if (elLastChild === dragEl) {
|
|
1465
|
+
return completed(false);
|
|
1466
|
+
}
|
|
1467
|
+
if (elLastChild && el === evt.target) {
|
|
1468
|
+
target = elLastChild;
|
|
1469
|
+
}
|
|
1470
|
+
if (target) {
|
|
1471
|
+
targetRect = getRect(target);
|
|
1472
|
+
}
|
|
1473
|
+
if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
|
|
1474
|
+
capture();
|
|
1475
|
+
if (elLastChild && elLastChild.nextSibling) {
|
|
1476
|
+
el.insertBefore(dragEl, elLastChild.nextSibling);
|
|
1477
|
+
} else {
|
|
1478
|
+
el.appendChild(dragEl);
|
|
1479
|
+
}
|
|
1480
|
+
parentEl = el;
|
|
1481
|
+
changed();
|
|
1482
|
+
return completed(true);
|
|
1483
|
+
}
|
|
1484
|
+
} else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {
|
|
1485
|
+
var firstChild = getChild(el, 0, options, true);
|
|
1486
|
+
if (firstChild === dragEl) {
|
|
1487
|
+
return completed(false);
|
|
1488
|
+
}
|
|
1489
|
+
target = firstChild;
|
|
1490
|
+
targetRect = getRect(target);
|
|
1491
|
+
if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {
|
|
1492
|
+
capture();
|
|
1493
|
+
el.insertBefore(dragEl, firstChild);
|
|
1494
|
+
parentEl = el;
|
|
1495
|
+
changed();
|
|
1496
|
+
return completed(true);
|
|
1497
|
+
}
|
|
1498
|
+
} else if (target.parentNode === el) {
|
|
1499
|
+
targetRect = getRect(target);
|
|
1500
|
+
var direction = 0, targetBeforeFirstSwap, differentLevel = dragEl.parentNode !== el, differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical), side1 = vertical ? "top" : "left", scrolledPastTop = isScrolledPast(target, "top", "top") || isScrolledPast(dragEl, "top", "top"), scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;
|
|
1501
|
+
if (lastTarget !== target) {
|
|
1502
|
+
targetBeforeFirstSwap = targetRect[side1];
|
|
1503
|
+
pastFirstInvertThresh = false;
|
|
1504
|
+
isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;
|
|
1505
|
+
}
|
|
1506
|
+
direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);
|
|
1507
|
+
var sibling;
|
|
1508
|
+
if (direction !== 0) {
|
|
1509
|
+
var dragIndex = index(dragEl);
|
|
1510
|
+
do {
|
|
1511
|
+
dragIndex -= direction;
|
|
1512
|
+
sibling = parentEl.children[dragIndex];
|
|
1513
|
+
} while (sibling && (css(sibling, "display") === "none" || sibling === ghostEl));
|
|
1514
|
+
}
|
|
1515
|
+
if (direction === 0 || sibling === target) {
|
|
1516
|
+
return completed(false);
|
|
1517
|
+
}
|
|
1518
|
+
lastTarget = target;
|
|
1519
|
+
lastDirection = direction;
|
|
1520
|
+
var nextSibling = target.nextElementSibling, after = false;
|
|
1521
|
+
after = direction === 1;
|
|
1522
|
+
var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);
|
|
1523
|
+
if (moveVector !== false) {
|
|
1524
|
+
if (moveVector === 1 || moveVector === -1) {
|
|
1525
|
+
after = moveVector === 1;
|
|
1526
|
+
}
|
|
1527
|
+
_silent = true;
|
|
1528
|
+
setTimeout(_unsilent, 30);
|
|
1529
|
+
capture();
|
|
1530
|
+
if (after && !nextSibling) {
|
|
1531
|
+
el.appendChild(dragEl);
|
|
1532
|
+
} else {
|
|
1533
|
+
target.parentNode.insertBefore(dragEl, after ? nextSibling : target);
|
|
1534
|
+
}
|
|
1535
|
+
if (scrolledPastTop) {
|
|
1536
|
+
scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);
|
|
1537
|
+
}
|
|
1538
|
+
parentEl = dragEl.parentNode;
|
|
1539
|
+
if (targetBeforeFirstSwap !== void 0 && !isCircumstantialInvert) {
|
|
1540
|
+
targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);
|
|
1541
|
+
}
|
|
1542
|
+
changed();
|
|
1543
|
+
return completed(true);
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
if (el.contains(dragEl)) {
|
|
1547
|
+
return completed(false);
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
return false;
|
|
1551
|
+
},
|
|
1552
|
+
_ignoreWhileAnimating: null,
|
|
1553
|
+
_offMoveEvents: function _offMoveEvents() {
|
|
1554
|
+
off(document, "mousemove", this._onTouchMove);
|
|
1555
|
+
off(document, "touchmove", this._onTouchMove);
|
|
1556
|
+
off(document, "pointermove", this._onTouchMove);
|
|
1557
|
+
off(document, "dragover", nearestEmptyInsertDetectEvent);
|
|
1558
|
+
off(document, "mousemove", nearestEmptyInsertDetectEvent);
|
|
1559
|
+
off(document, "touchmove", nearestEmptyInsertDetectEvent);
|
|
1560
|
+
},
|
|
1561
|
+
_offUpEvents: function _offUpEvents() {
|
|
1562
|
+
var ownerDocument = this.el.ownerDocument;
|
|
1563
|
+
off(ownerDocument, "mouseup", this._onDrop);
|
|
1564
|
+
off(ownerDocument, "touchend", this._onDrop);
|
|
1565
|
+
off(ownerDocument, "pointerup", this._onDrop);
|
|
1566
|
+
off(ownerDocument, "pointercancel", this._onDrop);
|
|
1567
|
+
off(ownerDocument, "touchcancel", this._onDrop);
|
|
1568
|
+
off(document, "selectstart", this);
|
|
1569
|
+
},
|
|
1570
|
+
_onDrop: function _onDrop(evt) {
|
|
1571
|
+
var el = this.el, options = this.options;
|
|
1572
|
+
newIndex = index(dragEl);
|
|
1573
|
+
newDraggableIndex = index(dragEl, options.draggable);
|
|
1574
|
+
pluginEvent2("drop", this, {
|
|
1575
|
+
evt
|
|
1576
|
+
});
|
|
1577
|
+
parentEl = dragEl && dragEl.parentNode;
|
|
1578
|
+
newIndex = index(dragEl);
|
|
1579
|
+
newDraggableIndex = index(dragEl, options.draggable);
|
|
1580
|
+
if (Sortable.eventCanceled) {
|
|
1581
|
+
this._nulling();
|
|
1582
|
+
return;
|
|
1583
|
+
}
|
|
1584
|
+
awaitingDragStarted = false;
|
|
1585
|
+
isCircumstantialInvert = false;
|
|
1586
|
+
pastFirstInvertThresh = false;
|
|
1587
|
+
clearInterval(this._loopId);
|
|
1588
|
+
clearTimeout(this._dragStartTimer);
|
|
1589
|
+
_cancelNextTick(this.cloneId);
|
|
1590
|
+
_cancelNextTick(this._dragStartId);
|
|
1591
|
+
if (this.nativeDraggable) {
|
|
1592
|
+
off(document, "drop", this);
|
|
1593
|
+
off(el, "dragstart", this._onDragStart);
|
|
1594
|
+
}
|
|
1595
|
+
this._offMoveEvents();
|
|
1596
|
+
this._offUpEvents();
|
|
1597
|
+
if (Safari) {
|
|
1598
|
+
css(document.body, "user-select", "");
|
|
1599
|
+
}
|
|
1600
|
+
css(dragEl, "transform", "");
|
|
1601
|
+
if (evt) {
|
|
1602
|
+
if (moved) {
|
|
1603
|
+
evt.cancelable && evt.preventDefault();
|
|
1604
|
+
!options.dropBubble && evt.stopPropagation();
|
|
1605
|
+
}
|
|
1606
|
+
ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);
|
|
1607
|
+
if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== "clone") {
|
|
1608
|
+
cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);
|
|
1609
|
+
}
|
|
1610
|
+
if (dragEl) {
|
|
1611
|
+
if (this.nativeDraggable) {
|
|
1612
|
+
off(dragEl, "dragend", this);
|
|
1613
|
+
}
|
|
1614
|
+
_disableDraggable(dragEl);
|
|
1615
|
+
dragEl.style["will-change"] = "";
|
|
1616
|
+
if (moved && !awaitingDragStarted) {
|
|
1617
|
+
toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);
|
|
1618
|
+
}
|
|
1619
|
+
toggleClass(dragEl, this.options.chosenClass, false);
|
|
1620
|
+
_dispatchEvent({
|
|
1621
|
+
sortable: this,
|
|
1622
|
+
name: "unchoose",
|
|
1623
|
+
toEl: parentEl,
|
|
1624
|
+
newIndex: null,
|
|
1625
|
+
newDraggableIndex: null,
|
|
1626
|
+
originalEvent: evt
|
|
1627
|
+
});
|
|
1628
|
+
if (rootEl !== parentEl) {
|
|
1629
|
+
if (newIndex >= 0) {
|
|
1630
|
+
_dispatchEvent({
|
|
1631
|
+
rootEl: parentEl,
|
|
1632
|
+
name: "add",
|
|
1633
|
+
toEl: parentEl,
|
|
1634
|
+
fromEl: rootEl,
|
|
1635
|
+
originalEvent: evt
|
|
1636
|
+
});
|
|
1637
|
+
_dispatchEvent({
|
|
1638
|
+
sortable: this,
|
|
1639
|
+
name: "remove",
|
|
1640
|
+
toEl: parentEl,
|
|
1641
|
+
originalEvent: evt
|
|
1642
|
+
});
|
|
1643
|
+
_dispatchEvent({
|
|
1644
|
+
rootEl: parentEl,
|
|
1645
|
+
name: "sort",
|
|
1646
|
+
toEl: parentEl,
|
|
1647
|
+
fromEl: rootEl,
|
|
1648
|
+
originalEvent: evt
|
|
1649
|
+
});
|
|
1650
|
+
_dispatchEvent({
|
|
1651
|
+
sortable: this,
|
|
1652
|
+
name: "sort",
|
|
1653
|
+
toEl: parentEl,
|
|
1654
|
+
originalEvent: evt
|
|
1655
|
+
});
|
|
1656
|
+
}
|
|
1657
|
+
putSortable && putSortable.save();
|
|
1658
|
+
} else {
|
|
1659
|
+
if (newIndex !== oldIndex) {
|
|
1660
|
+
if (newIndex >= 0) {
|
|
1661
|
+
_dispatchEvent({
|
|
1662
|
+
sortable: this,
|
|
1663
|
+
name: "update",
|
|
1664
|
+
toEl: parentEl,
|
|
1665
|
+
originalEvent: evt
|
|
1666
|
+
});
|
|
1667
|
+
_dispatchEvent({
|
|
1668
|
+
sortable: this,
|
|
1669
|
+
name: "sort",
|
|
1670
|
+
toEl: parentEl,
|
|
1671
|
+
originalEvent: evt
|
|
1672
|
+
});
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
if (Sortable.active) {
|
|
1677
|
+
if (newIndex == null || newIndex === -1) {
|
|
1678
|
+
newIndex = oldIndex;
|
|
1679
|
+
newDraggableIndex = oldDraggableIndex;
|
|
1680
|
+
}
|
|
1681
|
+
_dispatchEvent({
|
|
1682
|
+
sortable: this,
|
|
1683
|
+
name: "end",
|
|
1684
|
+
toEl: parentEl,
|
|
1685
|
+
originalEvent: evt
|
|
1686
|
+
});
|
|
1687
|
+
this.save();
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
this._nulling();
|
|
1692
|
+
},
|
|
1693
|
+
_nulling: function _nulling() {
|
|
1694
|
+
pluginEvent2("nulling", this);
|
|
1695
|
+
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;
|
|
1696
|
+
var el = this.el;
|
|
1697
|
+
savedInputChecked.forEach(function(checkEl) {
|
|
1698
|
+
if (el.contains(checkEl)) {
|
|
1699
|
+
checkEl.checked = true;
|
|
1700
|
+
}
|
|
1701
|
+
});
|
|
1702
|
+
savedInputChecked.length = lastDx = lastDy = 0;
|
|
1703
|
+
},
|
|
1704
|
+
handleEvent: function handleEvent(evt) {
|
|
1705
|
+
switch (evt.type) {
|
|
1706
|
+
case "drop":
|
|
1707
|
+
case "dragend":
|
|
1708
|
+
this._onDrop(evt);
|
|
1709
|
+
break;
|
|
1710
|
+
case "dragenter":
|
|
1711
|
+
case "dragover":
|
|
1712
|
+
if (dragEl) {
|
|
1713
|
+
this._onDragOver(evt);
|
|
1714
|
+
_globalDragOver(evt);
|
|
1715
|
+
}
|
|
1716
|
+
break;
|
|
1717
|
+
case "selectstart":
|
|
1718
|
+
evt.preventDefault();
|
|
1719
|
+
break;
|
|
1720
|
+
}
|
|
1721
|
+
},
|
|
1722
|
+
/**
|
|
1723
|
+
* Serializes the item into an array of string.
|
|
1724
|
+
* @returns {String[]}
|
|
1725
|
+
*/
|
|
1726
|
+
toArray: function toArray() {
|
|
1727
|
+
var order = [], el, children = this.el.children, i = 0, n3 = children.length, options = this.options;
|
|
1728
|
+
for (; i < n3; i++) {
|
|
1729
|
+
el = children[i];
|
|
1730
|
+
if (closest(el, options.draggable, this.el, false)) {
|
|
1731
|
+
order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
return order;
|
|
1735
|
+
},
|
|
1736
|
+
/**
|
|
1737
|
+
* Sorts the elements according to the array.
|
|
1738
|
+
* @param {String[]} order order of the items
|
|
1739
|
+
*/
|
|
1740
|
+
sort: function sort(order, useAnimation) {
|
|
1741
|
+
var items = {}, rootEl2 = this.el;
|
|
1742
|
+
this.toArray().forEach(function(id, i) {
|
|
1743
|
+
var el = rootEl2.children[i];
|
|
1744
|
+
if (closest(el, this.options.draggable, rootEl2, false)) {
|
|
1745
|
+
items[id] = el;
|
|
1746
|
+
}
|
|
1747
|
+
}, this);
|
|
1748
|
+
useAnimation && this.captureAnimationState();
|
|
1749
|
+
order.forEach(function(id) {
|
|
1750
|
+
if (items[id]) {
|
|
1751
|
+
rootEl2.removeChild(items[id]);
|
|
1752
|
+
rootEl2.appendChild(items[id]);
|
|
1753
|
+
}
|
|
1754
|
+
});
|
|
1755
|
+
useAnimation && this.animateAll();
|
|
1756
|
+
},
|
|
1757
|
+
/**
|
|
1758
|
+
* Save the current sorting
|
|
1759
|
+
*/
|
|
1760
|
+
save: function save() {
|
|
1761
|
+
var store = this.options.store;
|
|
1762
|
+
store && store.set && store.set(this);
|
|
1763
|
+
},
|
|
1764
|
+
/**
|
|
1765
|
+
* 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.
|
|
1766
|
+
* @param {HTMLElement} el
|
|
1767
|
+
* @param {String} [selector] default: `options.draggable`
|
|
1768
|
+
* @returns {HTMLElement|null}
|
|
1769
|
+
*/
|
|
1770
|
+
closest: function closest$1(el, selector) {
|
|
1771
|
+
return closest(el, selector || this.options.draggable, this.el, false);
|
|
1772
|
+
},
|
|
1773
|
+
/**
|
|
1774
|
+
* Set/get option
|
|
1775
|
+
* @param {string} name
|
|
1776
|
+
* @param {*} [value]
|
|
1777
|
+
* @returns {*}
|
|
1778
|
+
*/
|
|
1779
|
+
option: function option(name, value) {
|
|
1780
|
+
var options = this.options;
|
|
1781
|
+
if (value === void 0) {
|
|
1782
|
+
return options[name];
|
|
1783
|
+
} else {
|
|
1784
|
+
var modifiedValue = PluginManager.modifyOption(this, name, value);
|
|
1785
|
+
if (typeof modifiedValue !== "undefined") {
|
|
1786
|
+
options[name] = modifiedValue;
|
|
1787
|
+
} else {
|
|
1788
|
+
options[name] = value;
|
|
1789
|
+
}
|
|
1790
|
+
if (name === "group") {
|
|
1791
|
+
_prepareGroup(options);
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
},
|
|
1795
|
+
/**
|
|
1796
|
+
* Destroy
|
|
1797
|
+
*/
|
|
1798
|
+
destroy: function destroy() {
|
|
1799
|
+
pluginEvent2("destroy", this);
|
|
1800
|
+
var el = this.el;
|
|
1801
|
+
el[expando] = null;
|
|
1802
|
+
off(el, "mousedown", this._onTapStart);
|
|
1803
|
+
off(el, "touchstart", this._onTapStart);
|
|
1804
|
+
off(el, "pointerdown", this._onTapStart);
|
|
1805
|
+
if (this.nativeDraggable) {
|
|
1806
|
+
off(el, "dragover", this);
|
|
1807
|
+
off(el, "dragenter", this);
|
|
1808
|
+
}
|
|
1809
|
+
Array.prototype.forEach.call(el.querySelectorAll("[draggable]"), function(el2) {
|
|
1810
|
+
el2.removeAttribute("draggable");
|
|
1811
|
+
});
|
|
1812
|
+
this._onDrop();
|
|
1813
|
+
this._disableDelayedDragEvents();
|
|
1814
|
+
sortables.splice(sortables.indexOf(this.el), 1);
|
|
1815
|
+
this.el = el = null;
|
|
1816
|
+
},
|
|
1817
|
+
_hideClone: function _hideClone() {
|
|
1818
|
+
if (!cloneHidden) {
|
|
1819
|
+
pluginEvent2("hideClone", this);
|
|
1820
|
+
if (Sortable.eventCanceled) return;
|
|
1821
|
+
css(cloneEl, "display", "none");
|
|
1822
|
+
if (this.options.removeCloneOnHide && cloneEl.parentNode) {
|
|
1823
|
+
cloneEl.parentNode.removeChild(cloneEl);
|
|
1824
|
+
}
|
|
1825
|
+
cloneHidden = true;
|
|
1826
|
+
}
|
|
1827
|
+
},
|
|
1828
|
+
_showClone: function _showClone(putSortable2) {
|
|
1829
|
+
if (putSortable2.lastPutMode !== "clone") {
|
|
1830
|
+
this._hideClone();
|
|
1831
|
+
return;
|
|
1832
|
+
}
|
|
1833
|
+
if (cloneHidden) {
|
|
1834
|
+
pluginEvent2("showClone", this);
|
|
1835
|
+
if (Sortable.eventCanceled) return;
|
|
1836
|
+
if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {
|
|
1837
|
+
rootEl.insertBefore(cloneEl, dragEl);
|
|
1838
|
+
} else if (nextEl) {
|
|
1839
|
+
rootEl.insertBefore(cloneEl, nextEl);
|
|
1840
|
+
} else {
|
|
1841
|
+
rootEl.appendChild(cloneEl);
|
|
1842
|
+
}
|
|
1843
|
+
if (this.options.group.revertClone) {
|
|
1844
|
+
this.animate(dragEl, cloneEl);
|
|
1845
|
+
}
|
|
1846
|
+
css(cloneEl, "display", "");
|
|
1847
|
+
cloneHidden = false;
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
};
|
|
1851
|
+
function _globalDragOver(evt) {
|
|
1852
|
+
if (evt.dataTransfer) {
|
|
1853
|
+
evt.dataTransfer.dropEffect = "move";
|
|
1854
|
+
}
|
|
1855
|
+
evt.cancelable && evt.preventDefault();
|
|
1856
|
+
}
|
|
1857
|
+
function _onMove(fromEl, toEl, dragEl2, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {
|
|
1858
|
+
var evt, sortable = fromEl[expando], onMoveFn = sortable.options.onMove, retVal;
|
|
1859
|
+
if (window.CustomEvent && !IE11OrLess && !Edge) {
|
|
1860
|
+
evt = new CustomEvent("move", {
|
|
1861
|
+
bubbles: true,
|
|
1862
|
+
cancelable: true
|
|
1863
|
+
});
|
|
1864
|
+
} else {
|
|
1865
|
+
evt = document.createEvent("Event");
|
|
1866
|
+
evt.initEvent("move", true, true);
|
|
1867
|
+
}
|
|
1868
|
+
evt.to = toEl;
|
|
1869
|
+
evt.from = fromEl;
|
|
1870
|
+
evt.dragged = dragEl2;
|
|
1871
|
+
evt.draggedRect = dragRect;
|
|
1872
|
+
evt.related = targetEl || toEl;
|
|
1873
|
+
evt.relatedRect = targetRect || getRect(toEl);
|
|
1874
|
+
evt.willInsertAfter = willInsertAfter;
|
|
1875
|
+
evt.originalEvent = originalEvent;
|
|
1876
|
+
fromEl.dispatchEvent(evt);
|
|
1877
|
+
if (onMoveFn) {
|
|
1878
|
+
retVal = onMoveFn.call(sortable, evt, originalEvent);
|
|
1879
|
+
}
|
|
1880
|
+
return retVal;
|
|
1881
|
+
}
|
|
1882
|
+
function _disableDraggable(el) {
|
|
1883
|
+
el.draggable = false;
|
|
1884
|
+
}
|
|
1885
|
+
function _unsilent() {
|
|
1886
|
+
_silent = false;
|
|
1887
|
+
}
|
|
1888
|
+
function _ghostIsFirst(evt, vertical, sortable) {
|
|
1889
|
+
var firstElRect = getRect(getChild(sortable.el, 0, sortable.options, true));
|
|
1890
|
+
var childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl);
|
|
1891
|
+
var spacer = 10;
|
|
1892
|
+
return vertical ? evt.clientX < childContainingRect.left - spacer || evt.clientY < firstElRect.top && evt.clientX < firstElRect.right : evt.clientY < childContainingRect.top - spacer || evt.clientY < firstElRect.bottom && evt.clientX < firstElRect.left;
|
|
1893
|
+
}
|
|
1894
|
+
function _ghostIsLast(evt, vertical, sortable) {
|
|
1895
|
+
var lastElRect = getRect(lastChild(sortable.el, sortable.options.draggable));
|
|
1896
|
+
var childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl);
|
|
1897
|
+
var spacer = 10;
|
|
1898
|
+
return vertical ? evt.clientX > childContainingRect.right + spacer || evt.clientY > lastElRect.bottom && evt.clientX > lastElRect.left : evt.clientY > childContainingRect.bottom + spacer || evt.clientX > lastElRect.right && evt.clientY > lastElRect.top;
|
|
1899
|
+
}
|
|
1900
|
+
function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {
|
|
1901
|
+
var mouseOnAxis = vertical ? evt.clientY : evt.clientX, targetLength = vertical ? targetRect.height : targetRect.width, targetS1 = vertical ? targetRect.top : targetRect.left, targetS2 = vertical ? targetRect.bottom : targetRect.right, invert = false;
|
|
1902
|
+
if (!invertSwap) {
|
|
1903
|
+
if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {
|
|
1904
|
+
if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {
|
|
1905
|
+
pastFirstInvertThresh = true;
|
|
1906
|
+
}
|
|
1907
|
+
if (!pastFirstInvertThresh) {
|
|
1908
|
+
if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance : mouseOnAxis > targetS2 - targetMoveDistance) {
|
|
1909
|
+
return -lastDirection;
|
|
1910
|
+
}
|
|
1911
|
+
} else {
|
|
1912
|
+
invert = true;
|
|
1913
|
+
}
|
|
1914
|
+
} else {
|
|
1915
|
+
if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {
|
|
1916
|
+
return _getInsertDirection(target);
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
invert = invert || invertSwap;
|
|
1921
|
+
if (invert) {
|
|
1922
|
+
if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {
|
|
1923
|
+
return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
return 0;
|
|
1927
|
+
}
|
|
1928
|
+
function _getInsertDirection(target) {
|
|
1929
|
+
if (index(dragEl) < index(target)) {
|
|
1930
|
+
return 1;
|
|
1931
|
+
} else {
|
|
1932
|
+
return -1;
|
|
1933
|
+
}
|
|
1934
|
+
}
|
|
1935
|
+
function _generateId(el) {
|
|
1936
|
+
var str = el.tagName + el.className + el.src + el.href + el.textContent, i = str.length, sum = 0;
|
|
1937
|
+
while (i--) {
|
|
1938
|
+
sum += str.charCodeAt(i);
|
|
1939
|
+
}
|
|
1940
|
+
return sum.toString(36);
|
|
1941
|
+
}
|
|
1942
|
+
function _saveInputCheckedState(root) {
|
|
1943
|
+
savedInputChecked.length = 0;
|
|
1944
|
+
var inputs = root.getElementsByTagName("input");
|
|
1945
|
+
var idx = inputs.length;
|
|
1946
|
+
while (idx--) {
|
|
1947
|
+
var el = inputs[idx];
|
|
1948
|
+
el.checked && savedInputChecked.push(el);
|
|
1949
|
+
}
|
|
1950
|
+
}
|
|
1951
|
+
function _nextTick(fn) {
|
|
1952
|
+
return setTimeout(fn, 0);
|
|
1953
|
+
}
|
|
1954
|
+
function _cancelNextTick(id) {
|
|
1955
|
+
return clearTimeout(id);
|
|
1956
|
+
}
|
|
1957
|
+
if (documentExists) {
|
|
1958
|
+
on(document, "touchmove", function(evt) {
|
|
1959
|
+
if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {
|
|
1960
|
+
evt.preventDefault();
|
|
1961
|
+
}
|
|
1962
|
+
});
|
|
1963
|
+
}
|
|
1964
|
+
Sortable.utils = {
|
|
1965
|
+
on,
|
|
1966
|
+
off,
|
|
1967
|
+
css,
|
|
1968
|
+
find,
|
|
1969
|
+
is: function is(el, selector) {
|
|
1970
|
+
return !!closest(el, selector, el, false);
|
|
1971
|
+
},
|
|
1972
|
+
extend,
|
|
1973
|
+
throttle,
|
|
1974
|
+
closest,
|
|
1975
|
+
toggleClass,
|
|
1976
|
+
clone,
|
|
1977
|
+
index,
|
|
1978
|
+
nextTick: _nextTick,
|
|
1979
|
+
cancelNextTick: _cancelNextTick,
|
|
1980
|
+
detectDirection: _detectDirection,
|
|
1981
|
+
getChild,
|
|
1982
|
+
expando
|
|
1983
|
+
};
|
|
1984
|
+
Sortable.get = function(element) {
|
|
1985
|
+
return element[expando];
|
|
1986
|
+
};
|
|
1987
|
+
Sortable.mount = function() {
|
|
1988
|
+
for (var _len = arguments.length, plugins2 = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1989
|
+
plugins2[_key] = arguments[_key];
|
|
1990
|
+
}
|
|
1991
|
+
if (plugins2[0].constructor === Array) plugins2 = plugins2[0];
|
|
1992
|
+
plugins2.forEach(function(plugin) {
|
|
1993
|
+
if (!plugin.prototype || !plugin.prototype.constructor) {
|
|
1994
|
+
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(plugin));
|
|
1995
|
+
}
|
|
1996
|
+
if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);
|
|
1997
|
+
PluginManager.mount(plugin);
|
|
1998
|
+
});
|
|
1999
|
+
};
|
|
2000
|
+
Sortable.create = function(el, options) {
|
|
2001
|
+
return new Sortable(el, options);
|
|
2002
|
+
};
|
|
2003
|
+
Sortable.version = version;
|
|
2004
|
+
var autoScrolls = [];
|
|
2005
|
+
var scrollEl;
|
|
2006
|
+
var scrollRootEl;
|
|
2007
|
+
var scrolling = false;
|
|
2008
|
+
var lastAutoScrollX;
|
|
2009
|
+
var lastAutoScrollY;
|
|
2010
|
+
var touchEvt$1;
|
|
2011
|
+
var pointerElemChangedInterval;
|
|
2012
|
+
function AutoScrollPlugin() {
|
|
2013
|
+
function AutoScroll() {
|
|
2014
|
+
this.defaults = {
|
|
2015
|
+
scroll: true,
|
|
2016
|
+
forceAutoScrollFallback: false,
|
|
2017
|
+
scrollSensitivity: 30,
|
|
2018
|
+
scrollSpeed: 10,
|
|
2019
|
+
bubbleScroll: true
|
|
2020
|
+
};
|
|
2021
|
+
for (var fn in this) {
|
|
2022
|
+
if (fn.charAt(0) === "_" && typeof this[fn] === "function") {
|
|
2023
|
+
this[fn] = this[fn].bind(this);
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2027
|
+
AutoScroll.prototype = {
|
|
2028
|
+
dragStarted: function dragStarted(_ref) {
|
|
2029
|
+
var originalEvent = _ref.originalEvent;
|
|
2030
|
+
if (this.sortable.nativeDraggable) {
|
|
2031
|
+
on(document, "dragover", this._handleAutoScroll);
|
|
2032
|
+
} else {
|
|
2033
|
+
if (this.options.supportPointer) {
|
|
2034
|
+
on(document, "pointermove", this._handleFallbackAutoScroll);
|
|
2035
|
+
} else if (originalEvent.touches) {
|
|
2036
|
+
on(document, "touchmove", this._handleFallbackAutoScroll);
|
|
2037
|
+
} else {
|
|
2038
|
+
on(document, "mousemove", this._handleFallbackAutoScroll);
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
},
|
|
2042
|
+
dragOverCompleted: function dragOverCompleted(_ref2) {
|
|
2043
|
+
var originalEvent = _ref2.originalEvent;
|
|
2044
|
+
if (!this.options.dragOverBubble && !originalEvent.rootEl) {
|
|
2045
|
+
this._handleAutoScroll(originalEvent);
|
|
2046
|
+
}
|
|
2047
|
+
},
|
|
2048
|
+
drop: function drop3() {
|
|
2049
|
+
if (this.sortable.nativeDraggable) {
|
|
2050
|
+
off(document, "dragover", this._handleAutoScroll);
|
|
2051
|
+
} else {
|
|
2052
|
+
off(document, "pointermove", this._handleFallbackAutoScroll);
|
|
2053
|
+
off(document, "touchmove", this._handleFallbackAutoScroll);
|
|
2054
|
+
off(document, "mousemove", this._handleFallbackAutoScroll);
|
|
2055
|
+
}
|
|
2056
|
+
clearPointerElemChangedInterval();
|
|
2057
|
+
clearAutoScrolls();
|
|
2058
|
+
cancelThrottle();
|
|
2059
|
+
},
|
|
2060
|
+
nulling: function nulling() {
|
|
2061
|
+
touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;
|
|
2062
|
+
autoScrolls.length = 0;
|
|
2063
|
+
},
|
|
2064
|
+
_handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {
|
|
2065
|
+
this._handleAutoScroll(evt, true);
|
|
2066
|
+
},
|
|
2067
|
+
_handleAutoScroll: function _handleAutoScroll(evt, fallback) {
|
|
2068
|
+
var _this = this;
|
|
2069
|
+
var x = (evt.touches ? evt.touches[0] : evt).clientX, y = (evt.touches ? evt.touches[0] : evt).clientY, elem = document.elementFromPoint(x, y);
|
|
2070
|
+
touchEvt$1 = evt;
|
|
2071
|
+
if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {
|
|
2072
|
+
autoScroll(evt, this.options, elem, fallback);
|
|
2073
|
+
var ogElemScroller = getParentAutoScrollElement(elem, true);
|
|
2074
|
+
if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {
|
|
2075
|
+
pointerElemChangedInterval && clearPointerElemChangedInterval();
|
|
2076
|
+
pointerElemChangedInterval = setInterval(function() {
|
|
2077
|
+
var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);
|
|
2078
|
+
if (newElem !== ogElemScroller) {
|
|
2079
|
+
ogElemScroller = newElem;
|
|
2080
|
+
clearAutoScrolls();
|
|
2081
|
+
}
|
|
2082
|
+
autoScroll(evt, _this.options, newElem, fallback);
|
|
2083
|
+
}, 10);
|
|
2084
|
+
lastAutoScrollX = x;
|
|
2085
|
+
lastAutoScrollY = y;
|
|
2086
|
+
}
|
|
2087
|
+
} else {
|
|
2088
|
+
if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {
|
|
2089
|
+
clearAutoScrolls();
|
|
2090
|
+
return;
|
|
2091
|
+
}
|
|
2092
|
+
autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);
|
|
2093
|
+
}
|
|
2094
|
+
}
|
|
2095
|
+
};
|
|
2096
|
+
return _extends(AutoScroll, {
|
|
2097
|
+
pluginName: "scroll",
|
|
2098
|
+
initializeByDefault: true
|
|
2099
|
+
});
|
|
2100
|
+
}
|
|
2101
|
+
function clearAutoScrolls() {
|
|
2102
|
+
autoScrolls.forEach(function(autoScroll2) {
|
|
2103
|
+
clearInterval(autoScroll2.pid);
|
|
2104
|
+
});
|
|
2105
|
+
autoScrolls = [];
|
|
2106
|
+
}
|
|
2107
|
+
function clearPointerElemChangedInterval() {
|
|
2108
|
+
clearInterval(pointerElemChangedInterval);
|
|
2109
|
+
}
|
|
2110
|
+
var autoScroll = throttle(function(evt, options, rootEl2, isFallback) {
|
|
2111
|
+
if (!options.scroll) return;
|
|
2112
|
+
var x = (evt.touches ? evt.touches[0] : evt).clientX, y = (evt.touches ? evt.touches[0] : evt).clientY, sens = options.scrollSensitivity, speed = options.scrollSpeed, winScroller = getWindowScrollingElement();
|
|
2113
|
+
var scrollThisInstance = false, scrollCustomFn;
|
|
2114
|
+
if (scrollRootEl !== rootEl2) {
|
|
2115
|
+
scrollRootEl = rootEl2;
|
|
2116
|
+
clearAutoScrolls();
|
|
2117
|
+
scrollEl = options.scroll;
|
|
2118
|
+
scrollCustomFn = options.scrollFn;
|
|
2119
|
+
if (scrollEl === true) {
|
|
2120
|
+
scrollEl = getParentAutoScrollElement(rootEl2, true);
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2123
|
+
var layersOut = 0;
|
|
2124
|
+
var currentParent = scrollEl;
|
|
2125
|
+
do {
|
|
2126
|
+
var el = currentParent, rect = getRect(el), top = rect.top, bottom = rect.bottom, left = rect.left, right = rect.right, width = rect.width, height = rect.height, canScrollX = void 0, canScrollY = void 0, scrollWidth = el.scrollWidth, scrollHeight = el.scrollHeight, elCSS = css(el), scrollPosX = el.scrollLeft, scrollPosY = el.scrollTop;
|
|
2127
|
+
if (el === winScroller) {
|
|
2128
|
+
canScrollX = width < scrollWidth && (elCSS.overflowX === "auto" || elCSS.overflowX === "scroll" || elCSS.overflowX === "visible");
|
|
2129
|
+
canScrollY = height < scrollHeight && (elCSS.overflowY === "auto" || elCSS.overflowY === "scroll" || elCSS.overflowY === "visible");
|
|
2130
|
+
} else {
|
|
2131
|
+
canScrollX = width < scrollWidth && (elCSS.overflowX === "auto" || elCSS.overflowX === "scroll");
|
|
2132
|
+
canScrollY = height < scrollHeight && (elCSS.overflowY === "auto" || elCSS.overflowY === "scroll");
|
|
2133
|
+
}
|
|
2134
|
+
var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);
|
|
2135
|
+
var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);
|
|
2136
|
+
if (!autoScrolls[layersOut]) {
|
|
2137
|
+
for (var i = 0; i <= layersOut; i++) {
|
|
2138
|
+
if (!autoScrolls[i]) {
|
|
2139
|
+
autoScrolls[i] = {};
|
|
2140
|
+
}
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {
|
|
2144
|
+
autoScrolls[layersOut].el = el;
|
|
2145
|
+
autoScrolls[layersOut].vx = vx;
|
|
2146
|
+
autoScrolls[layersOut].vy = vy;
|
|
2147
|
+
clearInterval(autoScrolls[layersOut].pid);
|
|
2148
|
+
if (vx != 0 || vy != 0) {
|
|
2149
|
+
scrollThisInstance = true;
|
|
2150
|
+
autoScrolls[layersOut].pid = setInterval(function() {
|
|
2151
|
+
if (isFallback && this.layer === 0) {
|
|
2152
|
+
Sortable.active._onTouchMove(touchEvt$1);
|
|
2153
|
+
}
|
|
2154
|
+
var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;
|
|
2155
|
+
var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;
|
|
2156
|
+
if (typeof scrollCustomFn === "function") {
|
|
2157
|
+
if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== "continue") {
|
|
2158
|
+
return;
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);
|
|
2162
|
+
}.bind({
|
|
2163
|
+
layer: layersOut
|
|
2164
|
+
}), 24);
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
layersOut++;
|
|
2168
|
+
} while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));
|
|
2169
|
+
scrolling = scrollThisInstance;
|
|
2170
|
+
}, 30);
|
|
2171
|
+
var drop = function drop2(_ref) {
|
|
2172
|
+
var originalEvent = _ref.originalEvent, putSortable2 = _ref.putSortable, dragEl2 = _ref.dragEl, activeSortable = _ref.activeSortable, dispatchSortableEvent = _ref.dispatchSortableEvent, hideGhostForTarget = _ref.hideGhostForTarget, unhideGhostForTarget = _ref.unhideGhostForTarget;
|
|
2173
|
+
if (!originalEvent) return;
|
|
2174
|
+
var toSortable = putSortable2 || activeSortable;
|
|
2175
|
+
hideGhostForTarget();
|
|
2176
|
+
var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;
|
|
2177
|
+
var target = document.elementFromPoint(touch.clientX, touch.clientY);
|
|
2178
|
+
unhideGhostForTarget();
|
|
2179
|
+
if (toSortable && !toSortable.el.contains(target)) {
|
|
2180
|
+
dispatchSortableEvent("spill");
|
|
2181
|
+
this.onSpill({
|
|
2182
|
+
dragEl: dragEl2,
|
|
2183
|
+
putSortable: putSortable2
|
|
2184
|
+
});
|
|
2185
|
+
}
|
|
2186
|
+
};
|
|
2187
|
+
function Revert() {
|
|
2188
|
+
}
|
|
2189
|
+
Revert.prototype = {
|
|
2190
|
+
startIndex: null,
|
|
2191
|
+
dragStart: function dragStart(_ref2) {
|
|
2192
|
+
var oldDraggableIndex2 = _ref2.oldDraggableIndex;
|
|
2193
|
+
this.startIndex = oldDraggableIndex2;
|
|
2194
|
+
},
|
|
2195
|
+
onSpill: function onSpill(_ref3) {
|
|
2196
|
+
var dragEl2 = _ref3.dragEl, putSortable2 = _ref3.putSortable;
|
|
2197
|
+
this.sortable.captureAnimationState();
|
|
2198
|
+
if (putSortable2) {
|
|
2199
|
+
putSortable2.captureAnimationState();
|
|
2200
|
+
}
|
|
2201
|
+
var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);
|
|
2202
|
+
if (nextSibling) {
|
|
2203
|
+
this.sortable.el.insertBefore(dragEl2, nextSibling);
|
|
2204
|
+
} else {
|
|
2205
|
+
this.sortable.el.appendChild(dragEl2);
|
|
2206
|
+
}
|
|
2207
|
+
this.sortable.animateAll();
|
|
2208
|
+
if (putSortable2) {
|
|
2209
|
+
putSortable2.animateAll();
|
|
2210
|
+
}
|
|
2211
|
+
},
|
|
2212
|
+
drop
|
|
2213
|
+
};
|
|
2214
|
+
_extends(Revert, {
|
|
2215
|
+
pluginName: "revertOnSpill"
|
|
2216
|
+
});
|
|
2217
|
+
function Remove() {
|
|
2218
|
+
}
|
|
2219
|
+
Remove.prototype = {
|
|
2220
|
+
onSpill: function onSpill2(_ref4) {
|
|
2221
|
+
var dragEl2 = _ref4.dragEl, putSortable2 = _ref4.putSortable;
|
|
2222
|
+
var parentSortable = putSortable2 || this.sortable;
|
|
2223
|
+
parentSortable.captureAnimationState();
|
|
2224
|
+
dragEl2.parentNode && dragEl2.parentNode.removeChild(dragEl2);
|
|
2225
|
+
parentSortable.animateAll();
|
|
2226
|
+
},
|
|
2227
|
+
drop
|
|
2228
|
+
};
|
|
2229
|
+
_extends(Remove, {
|
|
2230
|
+
pluginName: "removeOnSpill"
|
|
2231
|
+
});
|
|
2232
|
+
Sortable.mount(new AutoScrollPlugin());
|
|
2233
|
+
Sortable.mount(Remove, Revert);
|
|
2234
|
+
var sortable_esm_default = Sortable;
|
|
2235
|
+
|
|
2236
|
+
// src/components/table/body-table.ts
|
|
2237
|
+
var BodyTable = class extends ShoelaceElement {
|
|
2238
|
+
constructor() {
|
|
2239
|
+
super(...arguments);
|
|
2240
|
+
this.expandRowByClick = false;
|
|
2241
|
+
this.currentInsertIndex = null;
|
|
2242
|
+
this.tbodyRef = e2();
|
|
2243
|
+
this.cleanupDragImage = () => {
|
|
2244
|
+
var _a;
|
|
2245
|
+
if ((_a = this.dragImageEl) == null ? void 0 : _a.parentNode) this.dragImageEl.parentNode.removeChild(this.dragImageEl);
|
|
2246
|
+
this.dragImageEl = void 0;
|
|
2247
|
+
};
|
|
2248
|
+
this.handleMove = (evt) => {
|
|
2249
|
+
var _a;
|
|
2250
|
+
const body = this.bodyRef.value;
|
|
2251
|
+
const tbody = this.tbodyRef.value;
|
|
2252
|
+
if (!body || !tbody) return true;
|
|
2253
|
+
const rows = Array.from(tbody.querySelectorAll("tr[data-row-key]"));
|
|
2254
|
+
if (!rows.length) return true;
|
|
2255
|
+
const mouseY = evt.originalEvent.clientY;
|
|
2256
|
+
const firstRect = rows[0].getBoundingClientRect();
|
|
2257
|
+
const lastRect = rows[rows.length - 1].getBoundingClientRect();
|
|
2258
|
+
let insertIndex = (_a = this.currentInsertIndex) != null ? _a : 0;
|
|
2259
|
+
if (mouseY >= lastRect.bottom) {
|
|
2260
|
+
insertIndex = rows.length;
|
|
2261
|
+
} else if (mouseY <= firstRect.top) {
|
|
2262
|
+
insertIndex = 0;
|
|
2263
|
+
} else {
|
|
2264
|
+
const related = evt.related;
|
|
2265
|
+
if (related) {
|
|
2266
|
+
const rect = related.getBoundingClientRect();
|
|
2267
|
+
const offset = mouseY - rect.top;
|
|
2268
|
+
const relatedIndex = rows.indexOf(related);
|
|
2269
|
+
if (relatedIndex >= 0) {
|
|
2270
|
+
insertIndex = offset > rect.height / 2 ? relatedIndex + 1 : relatedIndex;
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2273
|
+
}
|
|
2274
|
+
insertIndex = Math.max(0, Math.min(rows.length, insertIndex));
|
|
2275
|
+
this.currentInsertIndex = insertIndex;
|
|
2276
|
+
this.requestUpdate();
|
|
2277
|
+
return false;
|
|
2278
|
+
};
|
|
2279
|
+
this.handleEnd = (evt) => {
|
|
2280
|
+
var _a, _b;
|
|
2281
|
+
if (this.currentInsertIndex === null) return;
|
|
2282
|
+
this.draggingBlock = { start: -1, end: -1 };
|
|
2283
|
+
this.requestUpdate();
|
|
2284
|
+
const rows = this.commonProps.tableInstance.getRowModel().rows;
|
|
2285
|
+
const fromIndex = evt.oldDraggableIndex;
|
|
2286
|
+
const toIndex = this.currentInsertIndex;
|
|
2287
|
+
const newRows = [...rows.map((r2) => r2.original)];
|
|
2288
|
+
const { start, end } = this.getSelectedBlock(rows, fromIndex);
|
|
2289
|
+
if (start <= toIndex && toIndex <= end) {
|
|
2290
|
+
this.currentInsertIndex = null;
|
|
2291
|
+
return;
|
|
2292
|
+
}
|
|
2293
|
+
const block = newRows.splice(start, end - start + 1);
|
|
2294
|
+
let targetIndex = toIndex;
|
|
2295
|
+
if (start < toIndex) {
|
|
2296
|
+
targetIndex -= block.length;
|
|
2297
|
+
}
|
|
2298
|
+
newRows.splice(targetIndex, 0, ...block);
|
|
2299
|
+
const detail = {
|
|
2300
|
+
fromIndex,
|
|
2301
|
+
toIndex,
|
|
2302
|
+
rows: rows.map((r2) => r2.original),
|
|
2303
|
+
newRows
|
|
2304
|
+
};
|
|
2305
|
+
(_b = (_a = this.commonProps).slRowReorder) == null ? void 0 : _b.call(_a, detail);
|
|
2306
|
+
this.currentInsertIndex = null;
|
|
2307
|
+
this.cleanupDragImage();
|
|
2308
|
+
};
|
|
2309
|
+
this.handleChoose = (evt) => {
|
|
2310
|
+
const rows = this.commonProps.tableInstance.getRowModel().rows;
|
|
2311
|
+
const fromIndex = evt.oldDraggableIndex;
|
|
2312
|
+
const { start, end } = this.getSelectedBlock(rows, fromIndex);
|
|
2313
|
+
this.draggingBlock = { start, end };
|
|
2314
|
+
this.requestUpdate();
|
|
2315
|
+
if (start === end) return;
|
|
2316
|
+
const count = end - start + 1;
|
|
2317
|
+
const dragImage = document.createElement("div");
|
|
2318
|
+
dragImage.textContent = `\u62D6\u52A8 ${count} \u884C\u6570\u636E`;
|
|
2319
|
+
dragImage.style.position = "fixed";
|
|
2320
|
+
dragImage.style.padding = "10px 8px";
|
|
2321
|
+
dragImage.style.color = "#212121";
|
|
2322
|
+
dragImage.style.fontSize = "12px";
|
|
2323
|
+
dragImage.style.background = "#FFFFFF";
|
|
2324
|
+
dragImage.style.border = "1px solid rgba(217,217,217,1)";
|
|
2325
|
+
dragImage.style.boxShadow = "0px 6px 16px 3px rgba(0,0,0,0.08)";
|
|
2326
|
+
dragImage.style.borderRadius = "2px";
|
|
2327
|
+
dragImage.style.lineHeight = "21px";
|
|
2328
|
+
document.body.appendChild(dragImage);
|
|
2329
|
+
this.dragImageEl = dragImage;
|
|
2330
|
+
const chosenEl = evt.item;
|
|
2331
|
+
chosenEl.addEventListener(
|
|
2332
|
+
"dragstart",
|
|
2333
|
+
(e3) => {
|
|
2334
|
+
var _a;
|
|
2335
|
+
(_a = e3.dataTransfer) == null ? void 0 : _a.setDragImage(dragImage, 10, 10);
|
|
2336
|
+
},
|
|
2337
|
+
{ once: true }
|
|
2338
|
+
);
|
|
2339
|
+
};
|
|
2340
|
+
// 未发生拖拽时清理,防止点击行但未拖拽时一直保持拖拽样式
|
|
2341
|
+
this.handleUnchoose = () => {
|
|
2342
|
+
var _a;
|
|
2343
|
+
this.draggingBlock = { start: -1, end: -1 };
|
|
2344
|
+
(_a = this.cleanupDragImage) == null ? void 0 : _a.call(this);
|
|
2345
|
+
};
|
|
2346
|
+
this.renderTr = (row, styles = {}) => {
|
|
2347
|
+
const { rowSelectedMap, slRow, virtualized } = this.commonProps;
|
|
2348
|
+
const rowProps = (slRow == null ? void 0 : slRow(row.original, row.index)) || {};
|
|
2349
|
+
const _a = rowProps, { className, style: rowPropsStyle } = _a, rowRestProps = __objRest(_a, ["className", "style"]);
|
|
2350
|
+
const rowClassName = typeof className === "string" ? className : "";
|
|
2351
|
+
const rowClassMap = {
|
|
2352
|
+
"table-row": true,
|
|
2353
|
+
"table-row-selected": rowSelectedMap[row.id],
|
|
2354
|
+
"table-row-dragging": this.draggingBlock && row.index >= this.draggingBlock.start && row.index <= this.draggingBlock.end,
|
|
2355
|
+
[rowClassName]: true
|
|
2356
|
+
};
|
|
2357
|
+
const rowPropsStyleText = typeof rowPropsStyle === "string" ? rowPropsStyle : rowPropsStyle && typeof rowPropsStyle === "object" ? iterateStyles(rowPropsStyle) : void 0;
|
|
2358
|
+
const rowStyles = [rowPropsStyleText, iterateStyles(styles)].filter(Boolean).join(";") || "";
|
|
2359
|
+
return b`
|
|
2360
|
+
<tr
|
|
2361
|
+
class=${e(rowClassMap)}
|
|
2362
|
+
role="table-row"
|
|
2363
|
+
part="table-body-row"
|
|
2364
|
+
data-row-key=${this.commonProps.adapter.getRecordKey(row.original)}
|
|
2365
|
+
data-row-index=${row.index}
|
|
2366
|
+
@click=${this.expandRowByClick ? () => row.getCanExpand() && row.toggleExpanded() : null}
|
|
2367
|
+
style=${rowStyles}
|
|
2368
|
+
${spread_default(rowRestProps)}
|
|
2369
|
+
>
|
|
2370
|
+
${c(
|
|
2371
|
+
row.getVisibleCells(),
|
|
2372
|
+
(cell) => cell.id,
|
|
2373
|
+
(cell) => {
|
|
2374
|
+
var _a2, _b, _c, _e, _f;
|
|
2375
|
+
const { column } = cell;
|
|
2376
|
+
const columnDef = column.columnDef;
|
|
2377
|
+
const align = (_a2 = columnDef.meta) == null ? void 0 : _a2.align;
|
|
2378
|
+
const cellProps = ((_c = (_b = columnDef.meta) == null ? void 0 : _b.slCell) == null ? void 0 : _c.call(_b, cell.row.original, row.index)) || {};
|
|
2379
|
+
const _d = cellProps, {
|
|
2380
|
+
className: cellClassName,
|
|
2381
|
+
style: cellStyle
|
|
2382
|
+
} = _d, cellRestProps = __objRest(_d, [
|
|
2383
|
+
"className",
|
|
2384
|
+
"style"
|
|
2385
|
+
]);
|
|
2386
|
+
const cellClassNameValue = typeof cellClassName === "string" ? cellClassName : "";
|
|
2387
|
+
const { styles: pinningStyles, className: pinningClassName } = column.getIsPinned() ? getCommonPinningProps(column) : {};
|
|
2388
|
+
const cellClassMap = {
|
|
2389
|
+
"table-row-cell": true,
|
|
2390
|
+
[pinningClassName]: pinningClassName !== void 0
|
|
2391
|
+
};
|
|
2392
|
+
if ((_e = columnDef.meta) == null ? void 0 : _e.className) {
|
|
2393
|
+
cellClassMap[columnDef.meta.className] = true;
|
|
2394
|
+
}
|
|
2395
|
+
if (cellClassNameValue) {
|
|
2396
|
+
cellClassMap[cellClassNameValue] = true;
|
|
2397
|
+
}
|
|
2398
|
+
const cellStyleText = typeof cellStyle === "string" ? cellStyle : cellStyle && typeof cellStyle === "object" ? iterateStyles(cellStyle) : void 0;
|
|
2399
|
+
let cellStyleResult = [cellStyleText, pinningStyles].filter(Boolean).join(";");
|
|
2400
|
+
if (virtualized) {
|
|
2401
|
+
cellStyleResult += `;width: ${column.getSize()}px`;
|
|
2402
|
+
}
|
|
2403
|
+
return b` <td
|
|
2404
|
+
role="gridcell"
|
|
2405
|
+
part="table-body-cell"
|
|
2406
|
+
class="${e(cellClassMap)}"
|
|
2407
|
+
style=${cellStyleResult || ""}
|
|
2408
|
+
${spread_default(cellRestProps)}
|
|
2409
|
+
>
|
|
2410
|
+
<div
|
|
2411
|
+
class="${e({
|
|
2412
|
+
"table-cell-content": true,
|
|
2413
|
+
"table-cell-ellipsis": !!((_f = columnDef.meta) == null ? void 0 : _f.ellipsis)
|
|
2414
|
+
})}"
|
|
2415
|
+
style="text-align: ${align}"
|
|
2416
|
+
>
|
|
2417
|
+
${flexRender(columnDef.cell, cell.getContext())}
|
|
2418
|
+
</div>
|
|
2419
|
+
</td>`;
|
|
2420
|
+
}
|
|
2421
|
+
)}
|
|
2422
|
+
</tr>
|
|
2423
|
+
${row.getIsExpanded() ? b`
|
|
2424
|
+
<tr class="table-row table-expand-row" part="table-body-row">
|
|
2425
|
+
<td colspan="${row.getVisibleCells().length}" class="table-row-cell" part="table-body-cell">
|
|
2426
|
+
<slot name="${CUSTOM_ROW}-${this.commonProps.adapter.getRecordKey(row.original)}"></slot>
|
|
2427
|
+
</td>
|
|
2428
|
+
</tr>
|
|
2429
|
+
` : ""}
|
|
2430
|
+
`;
|
|
2431
|
+
};
|
|
2432
|
+
}
|
|
2433
|
+
getSelectedBlock(rows, fromIndex) {
|
|
2434
|
+
const selected = this.commonProps.rowSelectedMap;
|
|
2435
|
+
if (!selected[rows[fromIndex].id]) {
|
|
2436
|
+
return { start: fromIndex, end: fromIndex };
|
|
2437
|
+
}
|
|
2438
|
+
let start = fromIndex;
|
|
2439
|
+
let end = fromIndex;
|
|
2440
|
+
while (start > 0 && selected[rows[start - 1].id]) {
|
|
2441
|
+
start--;
|
|
2442
|
+
}
|
|
2443
|
+
while (end < rows.length - 1 && selected[rows[end + 1].id]) {
|
|
2444
|
+
end++;
|
|
2445
|
+
}
|
|
2446
|
+
return { start, end };
|
|
2447
|
+
}
|
|
2448
|
+
renderIndicator() {
|
|
2449
|
+
const tbody = this.tbodyRef.value;
|
|
2450
|
+
if (!tbody || this.currentInsertIndex === null) return "";
|
|
2451
|
+
const rows = Array.from(tbody.querySelectorAll("tr[data-row-key]"));
|
|
2452
|
+
if (!rows.length) return "";
|
|
2453
|
+
let top = 0;
|
|
2454
|
+
if (this.currentInsertIndex >= rows.length) {
|
|
2455
|
+
top = rows[rows.length - 1].offsetTop + rows[rows.length - 1].offsetHeight;
|
|
2456
|
+
} else {
|
|
2457
|
+
top = rows[this.currentInsertIndex].offsetTop;
|
|
2458
|
+
}
|
|
2459
|
+
return b`
|
|
2460
|
+
<div
|
|
2461
|
+
style="
|
|
2462
|
+
position: absolute;
|
|
2463
|
+
left: 0;
|
|
2464
|
+
right: 0;
|
|
2465
|
+
top: ${top}px;
|
|
2466
|
+
height: 2px;
|
|
2467
|
+
background: #1677ff;
|
|
2468
|
+
pointer-events: none;
|
|
2469
|
+
z-index: 10;
|
|
2470
|
+
"
|
|
2471
|
+
></div>
|
|
2472
|
+
`;
|
|
2473
|
+
}
|
|
2474
|
+
initSortable() {
|
|
2475
|
+
var _a, _b;
|
|
2476
|
+
const { rowDrag, virtualized } = this.commonProps;
|
|
2477
|
+
if (!rowDrag || virtualized) {
|
|
2478
|
+
(_a = this.sortable) == null ? void 0 : _a.destroy();
|
|
2479
|
+
this.sortable = void 0;
|
|
2480
|
+
return;
|
|
2481
|
+
}
|
|
2482
|
+
const el = this.tbodyRef.value;
|
|
2483
|
+
if (!el) return;
|
|
2484
|
+
(_b = this.sortable) == null ? void 0 : _b.destroy();
|
|
2485
|
+
this.sortable = sortable_esm_default.create(el, {
|
|
2486
|
+
animation: 0,
|
|
2487
|
+
draggable: "tr[data-row-key]",
|
|
2488
|
+
handle: ".row-drag-handle",
|
|
2489
|
+
onChoose: this.handleChoose,
|
|
2490
|
+
onMove: this.handleMove,
|
|
2491
|
+
onEnd: this.handleEnd,
|
|
2492
|
+
onUnchoose: this.handleUnchoose
|
|
2493
|
+
});
|
|
2494
|
+
}
|
|
2495
|
+
firstUpdated() {
|
|
2496
|
+
this.initSortable();
|
|
2497
|
+
}
|
|
2498
|
+
render() {
|
|
2499
|
+
var _a, _b, _c, _d, _e;
|
|
2500
|
+
const virtualizer = (_a = this.rowVirtualizerController) == null ? void 0 : _a.getVirtualizer();
|
|
2501
|
+
const { tableScroll, handleBodyScroll, bordered, tableInstance, virtualized, rowDrag } = this.commonProps;
|
|
2502
|
+
const { x, y } = tableScroll || {};
|
|
2503
|
+
const columnResizeable = tableInstance.getAllLeafColumns().some((c2) => c2.getCanResize());
|
|
2504
|
+
const style = {
|
|
2505
|
+
"max-width": x ? getTableRect(x) : "100%",
|
|
2506
|
+
"max-height": y ? getTableRect(y) : "100%",
|
|
2507
|
+
width: columnResizeable && `${tableInstance.getTotalSize()}px`
|
|
2508
|
+
};
|
|
2509
|
+
const { rows } = tableInstance.getRowModel();
|
|
2510
|
+
return b` <div
|
|
2511
|
+
style=${iterateStyles(style)}
|
|
2512
|
+
class="table-body"
|
|
2513
|
+
part="table-body"
|
|
2514
|
+
${n2(this.bodyRef)}
|
|
2515
|
+
@scroll=${handleBodyScroll}
|
|
2516
|
+
>
|
|
2517
|
+
<table
|
|
2518
|
+
class="${e({
|
|
2519
|
+
table: true,
|
|
2520
|
+
"table-bordered": bordered,
|
|
2521
|
+
"table-fixed": !columnResizeable
|
|
2522
|
+
})}"
|
|
2523
|
+
style=${o({
|
|
2524
|
+
height: virtualized && y ? `${virtualizer == null ? void 0 : virtualizer.getTotalSize()}px` : "100%"
|
|
2525
|
+
})}
|
|
2526
|
+
>
|
|
2527
|
+
${renderColGroup(tableInstance)}
|
|
2528
|
+
<tbody class="table-tbody" style="position: relative;" ${n2(this.tbodyRef)}>
|
|
2529
|
+
${virtualized ? c(
|
|
2530
|
+
(_c = (_b = this.rowVirtualizerController) == null ? void 0 : _b.getVirtualizer().getVirtualItems()) != null ? _c : [],
|
|
2531
|
+
(item) => item.key,
|
|
2532
|
+
(item) => {
|
|
2533
|
+
const row = rows[item.index];
|
|
2534
|
+
return this.renderTr(row, {
|
|
2535
|
+
transform: `translateY(${item.start}px)`,
|
|
2536
|
+
position: "absolute",
|
|
2537
|
+
width: "100%"
|
|
2538
|
+
});
|
|
2539
|
+
}
|
|
2540
|
+
) : c(
|
|
2541
|
+
rows,
|
|
2542
|
+
(row) => row.id,
|
|
2543
|
+
(row) => this.renderTr(row)
|
|
2544
|
+
)}
|
|
2545
|
+
${rowDrag ? b`<tr class="table-bottom-placeholder" style="height: 2px;padding: 0;border: none;">
|
|
2546
|
+
<td colspan="${(_e = (_d = rows[0]) == null ? void 0 : _d.getVisibleCells().length) != null ? _e : 1}"></td>
|
|
2547
|
+
</tr>` : ""}
|
|
2548
|
+
${this.renderIndicator()}
|
|
2549
|
+
</tbody>
|
|
2550
|
+
</table>
|
|
2551
|
+
${this.emptyTemplate}
|
|
2552
|
+
</div>
|
|
2553
|
+
<style>
|
|
2554
|
+
.table-body {
|
|
2555
|
+
overflow: auto;
|
|
2556
|
+
width: 100%;
|
|
2557
|
+
box-sizing: border-box;
|
|
2558
|
+
direction: var(--sl-c-table-direction);
|
|
2559
|
+
}
|
|
2560
|
+
.table-row {
|
|
2561
|
+
display: table-row;
|
|
2562
|
+
}
|
|
2563
|
+
.table-row-dragging {
|
|
2564
|
+
opacity: 0.35;
|
|
2565
|
+
}
|
|
2566
|
+
.table-row > .table-row-cell {
|
|
2567
|
+
height: var(--sl-table-cell-line-height);
|
|
2568
|
+
font-size: var(--sl-table-font-size);
|
|
2569
|
+
padding: 0 var(--sl-table-cell-padding);
|
|
2570
|
+
box-sizing: border-box;
|
|
2571
|
+
border-inline-start: none;
|
|
2572
|
+
border-inline-end: none;
|
|
2573
|
+
border-bottom: var(--sl-table-cell-border-width) solid var(--sl-table-cell-border);
|
|
2574
|
+
overflow-wrap: break-word;
|
|
2575
|
+
color: var(--sl-table-cell-color);
|
|
2576
|
+
background-color: var(--sl-table-cell-background);
|
|
2577
|
+
vertical-align: middle;
|
|
2578
|
+
}
|
|
2579
|
+
.table-row:hover > .table-row-cell {
|
|
2580
|
+
background: var(--sl-table-row-background-hover);
|
|
2581
|
+
}
|
|
2582
|
+
:where(.table.table-bordered) > tbody.table-tbody > tr.table-row > td.table-row-cell {
|
|
2583
|
+
border-inline-end: var(--sl-table-cell-border-width) solid var(--sl-table-cell-border);
|
|
2584
|
+
}
|
|
2585
|
+
.table-row.table-row-selected > .table-row-cell {
|
|
2586
|
+
background-color: var(--sl-table-row-background-active);
|
|
2587
|
+
}
|
|
2588
|
+
.table-row.table-row-selected:hover > .table-row-cell {
|
|
2589
|
+
background-color: hsl(212.29999999999995, 100%, 95.5%);
|
|
2590
|
+
}
|
|
2591
|
+
.table-placeholder {
|
|
2592
|
+
position: sticky;
|
|
2593
|
+
left: 0;
|
|
2594
|
+
z-index: 1;
|
|
2595
|
+
padding: var(--sl-table-default-text-margin-vertical);
|
|
2596
|
+
color: var(--semi-color-text-2);
|
|
2597
|
+
font-size: 14px;
|
|
2598
|
+
text-align: center;
|
|
2599
|
+
background: transparent;
|
|
2600
|
+
color: var(--sl-table-default-text-color);
|
|
2601
|
+
border-bottom: var(--sl-table-cell-border-width) solid var(--sl-table-cell-border);
|
|
2602
|
+
border-inline-start: none;
|
|
2603
|
+
}
|
|
2604
|
+
.table-cell-content {
|
|
2605
|
+
line-height: var(--sl-line-height-dense);
|
|
2606
|
+
word-break: break-word;
|
|
2607
|
+
}
|
|
2608
|
+
</style>`;
|
|
2609
|
+
}
|
|
2610
|
+
};
|
|
2611
|
+
BodyTable.styles = [tableCommonCss];
|
|
2612
|
+
__decorateClass([
|
|
2613
|
+
n({ type: Object })
|
|
2614
|
+
], BodyTable.prototype, "bodyRef", 2);
|
|
2615
|
+
__decorateClass([
|
|
2616
|
+
n({ type: Function })
|
|
2617
|
+
], BodyTable.prototype, "emptyTemplate", 2);
|
|
2618
|
+
__decorateClass([
|
|
2619
|
+
n({ type: Object })
|
|
2620
|
+
], BodyTable.prototype, "commonProps", 2);
|
|
2621
|
+
__decorateClass([
|
|
2622
|
+
n({ type: Boolean })
|
|
2623
|
+
], BodyTable.prototype, "expandRowByClick", 2);
|
|
2624
|
+
__decorateClass([
|
|
2625
|
+
n({ type: Object })
|
|
2626
|
+
], BodyTable.prototype, "rowVirtualizerController", 2);
|
|
2627
|
+
__decorateClass([
|
|
2628
|
+
r()
|
|
2629
|
+
], BodyTable.prototype, "currentInsertIndex", 2);
|
|
2630
|
+
__decorateClass([
|
|
2631
|
+
r()
|
|
2632
|
+
], BodyTable.prototype, "draggingBlock", 2);
|
|
2633
|
+
BodyTable.define("sl-table-body-table");
|
|
2634
|
+
|
|
2635
|
+
export {
|
|
2636
|
+
BodyTable
|
|
2637
|
+
};
|
|
2638
|
+
/*! Bundled license information:
|
|
2639
|
+
|
|
2640
|
+
sortablejs/modular/sortable.esm.js:
|
|
2641
|
+
(**!
|
|
2642
|
+
* Sortable 1.15.7
|
|
2643
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
2644
|
+
* @author owenm <owen23355@gmail.com>
|
|
2645
|
+
* @license MIT
|
|
2646
|
+
*)
|
|
2647
|
+
*/
|