fast-element-plus 2.0.0 → 2.0.2

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.
Files changed (450) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +4 -2
  3. package/README.zh.md +4 -2
  4. package/dist/components/avatar/index.d.ts +2 -2
  5. package/dist/components/avatar/index.mjs.map +1 -1
  6. package/dist/components/button/index.d.ts +1 -1
  7. package/dist/components/button/index.mjs.map +1 -1
  8. package/dist/components/button/src/button.mjs +1 -1
  9. package/dist/components/carNumber/src/carNumber.mjs +2 -3
  10. package/dist/components/carNumber/src/carNumber.mjs.map +1 -1
  11. package/dist/components/contextMenu/src/contextMenu.d.ts +4 -4
  12. package/dist/components/contextMenu/src/contextMenu.mjs +2 -2
  13. package/dist/components/contextMenu/src/contextMenu.type.d.ts +3 -3
  14. package/dist/components/dialog/index.d.ts +1 -1
  15. package/dist/components/dialog/index.mjs.map +1 -1
  16. package/dist/components/dialog/src/dialog.mjs +1 -1
  17. package/dist/components/drawer/index.d.ts +2 -2
  18. package/dist/components/drawer/index.mjs.map +1 -1
  19. package/dist/components/drawer/src/drawer.mjs +1 -1
  20. package/dist/components/form/index.d.ts +1 -1
  21. package/dist/components/form/index.mjs.map +1 -1
  22. package/dist/components/form/src/form.d.ts +5 -2
  23. package/dist/components/form/src/form.mjs +1 -2
  24. package/dist/components/form/src/form.mjs.map +1 -1
  25. package/dist/components/form/src/formItem.mjs +1 -1
  26. package/dist/components/formItemTip/index.d.ts +1 -1
  27. package/dist/components/formItemTip/index.mjs.map +1 -1
  28. package/dist/components/icon/index.d.ts +2 -2
  29. package/dist/components/icon/index.mjs.map +1 -1
  30. package/dist/components/iconSelector/src/iconSelector.mjs +1 -2
  31. package/dist/components/iconSelector/src/iconSelector.mjs.map +1 -1
  32. package/dist/components/image/index.d.ts +1 -1
  33. package/dist/components/image/index.mjs.map +1 -1
  34. package/dist/components/inputDialogPage/index.d.ts +1 -1
  35. package/dist/components/inputDialogPage/index.mjs.map +1 -1
  36. package/dist/components/inputDialogPage/src/inputDialogPage.d.ts +15 -15
  37. package/dist/components/inputDialogPage/src/inputDialogPage.mjs +2 -5
  38. package/dist/components/inputDialogPage/src/inputDialogPage.mjs.map +1 -1
  39. package/dist/components/layoutGrid/src/layoutGrid.mjs +1 -3
  40. package/dist/components/layoutGrid/src/layoutGrid.mjs.map +1 -1
  41. package/dist/components/layoutGrid/src/layoutGridItem.mjs +1 -1
  42. package/dist/components/layoutGrid/src/layoutGridItem.mjs.map +1 -1
  43. package/dist/components/select/index.d.ts +2 -2
  44. package/dist/components/select/index.mjs.map +1 -1
  45. package/dist/components/select/src/select.d.ts +15 -14
  46. package/dist/components/select/src/select.mjs +2 -9
  47. package/dist/components/select/src/select.mjs.map +1 -1
  48. package/dist/components/select/src/select.type.d.ts +4 -4
  49. package/dist/components/select/src/selectOption.d.ts +5 -5
  50. package/dist/components/select/src/selectOption.mjs +1 -1
  51. package/dist/components/selectPage/index.d.ts +1 -1
  52. package/dist/components/selectPage/index.mjs.map +1 -1
  53. package/dist/components/selectPage/src/selectPage.d.ts +10 -10
  54. package/dist/components/selectPage/src/selectPage.mjs +2 -9
  55. package/dist/components/selectPage/src/selectPage.mjs.map +1 -1
  56. package/dist/components/selectV2/index.d.ts +2 -2
  57. package/dist/components/selectV2/index.mjs.map +1 -1
  58. package/dist/components/selectV2/src/selectV2.d.ts +28 -36
  59. package/dist/components/selectV2/src/selectV2.mjs +2 -9
  60. package/dist/components/selectV2/src/selectV2.mjs.map +1 -1
  61. package/dist/components/table/index.d.ts +1 -1
  62. package/dist/components/table/index.mjs.map +1 -1
  63. package/dist/components/table/src/page.type.d.ts +3 -1
  64. package/dist/components/table/src/page.type.mjs.map +1 -1
  65. package/dist/components/table/src/table.d.ts +38 -39
  66. package/dist/components/table/src/table.mjs +5 -11
  67. package/dist/components/table/src/table.mjs.map +1 -1
  68. package/dist/components/table/src/table.state.d.ts +5 -5
  69. package/dist/components/table/src/table.type.d.ts +13 -10
  70. package/dist/components/table/src/table.type.mjs.map +1 -1
  71. package/dist/components/table/src/tableColumn.d.ts +3 -4
  72. package/dist/components/table/src/tableColumn.mjs +2 -7
  73. package/dist/components/table/src/tableColumn.mjs.map +1 -1
  74. package/dist/components/table/src/tableColumnSettingDialog.mjs +1 -1
  75. package/dist/components/table/src/tableColumnSettingDialog.mjs.map +1 -1
  76. package/dist/components/table/src/tablePagination.mjs +1 -2
  77. package/dist/components/table/src/tablePagination.mjs.map +1 -1
  78. package/dist/components/table/src/tableSearchForm.d.ts +1 -1
  79. package/dist/components/table/src/tableSearchForm.mjs.map +1 -1
  80. package/dist/components/table/src/tableSearchFormItem.mjs +1 -1
  81. package/dist/components/table/src/tableSearchFormItem.mjs.map +1 -1
  82. package/dist/components/table/src/useTable.d.ts +5 -5
  83. package/dist/components/table/src/useTable.mjs +1 -2
  84. package/dist/components/table/src/useTable.mjs.map +1 -1
  85. package/dist/components/table/utils/table.d.ts +3 -2
  86. package/dist/components/table/utils/table.mjs +1 -3
  87. package/dist/components/table/utils/table.mjs.map +1 -1
  88. package/dist/components/tree/index.d.ts +1 -1
  89. package/dist/components/tree/index.mjs.map +1 -1
  90. package/dist/components/tree/src/tree.d.ts +27 -25
  91. package/dist/components/tree/src/tree.mjs +5 -8
  92. package/dist/components/tree/src/tree.mjs.map +1 -1
  93. package/dist/components/tree/src/tree.props.d.ts +1 -4
  94. package/dist/components/tree/src/tree.type.d.ts +4 -4
  95. package/dist/components/treeSelect/index.d.ts +1 -1
  96. package/dist/components/treeSelect/index.mjs.map +1 -1
  97. package/dist/components/treeSelect/src/treeSelect.d.ts +32 -31
  98. package/dist/components/treeSelect/src/treeSelect.mjs +2 -9
  99. package/dist/components/treeSelect/src/treeSelect.mjs.map +1 -1
  100. package/dist/components/upload/index.d.ts +1 -1
  101. package/dist/components/upload/index.mjs.map +1 -1
  102. package/dist/components/upload/src/upload.mjs +1 -3
  103. package/dist/components/upload/src/upload.mjs.map +1 -1
  104. package/dist/components/upload/src/useUpload.mjs +3 -5
  105. package/dist/components/upload/src/useUpload.mjs.map +1 -1
  106. package/dist/components/uploadImage/index.d.ts +1 -1
  107. package/dist/components/uploadImage/index.mjs.map +1 -1
  108. package/dist/components/uploadImage/src/uploadImage.mjs +1 -3
  109. package/dist/components/uploadImage/src/uploadImage.mjs.map +1 -1
  110. package/dist/components/uploadImages/index.d.ts +2 -2
  111. package/dist/components/uploadImages/index.mjs.map +1 -1
  112. package/dist/components/uploadImages/src/uploadImages.mjs +1 -2
  113. package/dist/components/uploadImages/src/uploadImages.mjs.map +1 -1
  114. package/dist/directives/click-icon-copy/index.mjs.map +1 -1
  115. package/dist/element-plus.mjs +1 -2
  116. package/dist/element-plus.mjs.map +1 -1
  117. package/dist/hooks/use-screenFull/index.mjs +13 -13
  118. package/dist/hooks/use-screenFull/index.mjs.map +1 -1
  119. package/dist/index.d.ts +0 -2
  120. package/dist/index.global.min.js +4 -4
  121. package/dist/index.global.min.js.map +1 -1
  122. package/dist/index.mjs +2 -3
  123. package/dist/index.mjs.map +1 -1
  124. package/dist/version.d.ts +1 -1
  125. package/dist/version.mjs +1 -1
  126. package/dist/version.mjs.map +1 -1
  127. package/package.json +1 -1
  128. package/dist/_virtual/_rolldown/runtime.mjs +0 -13
  129. package/dist/components/index.mjs +0 -124
  130. package/dist/components/index.mjs.map +0 -1
  131. package/dist/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.41_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.mjs +0 -100
  132. package/dist/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.41_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.mjs.map +0 -1
  133. package/dist/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.41_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.mjs +0 -25
  134. package/dist/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.41_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.mjs.map +0 -1
  135. package/dist/node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.mjs +0 -1997
  136. package/dist/node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.mjs.map +0 -1
  137. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_DataView.mjs +0 -8
  138. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_DataView.mjs.map +0 -1
  139. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.mjs +0 -30
  140. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.mjs.map +0 -1
  141. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.mjs +0 -30
  142. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.mjs.map +0 -1
  143. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.mjs +0 -8
  144. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.mjs.map +0 -1
  145. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.mjs +0 -30
  146. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.mjs.map +0 -1
  147. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Promise.mjs +0 -8
  148. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Promise.mjs.map +0 -1
  149. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Set.mjs +0 -8
  150. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Set.mjs.map +0 -1
  151. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.mjs +0 -23
  152. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.mjs.map +0 -1
  153. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.mjs +0 -27
  154. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.mjs.map +0 -1
  155. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.mjs +0 -8
  156. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.mjs.map +0 -1
  157. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.mjs +0 -8
  158. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.mjs.map +0 -1
  159. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.mjs +0 -8
  160. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.mjs.map +0 -1
  161. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_apply.mjs +0 -24
  162. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_apply.mjs.map +0 -1
  163. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.mjs +0 -19
  164. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.mjs.map +0 -1
  165. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.mjs +0 -22
  166. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.mjs.map +0 -1
  167. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.mjs +0 -26
  168. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.mjs.map +0 -1
  169. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.mjs +0 -19
  170. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.mjs.map +0 -1
  171. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.mjs +0 -18
  172. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.mjs.map +0 -1
  173. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.mjs +0 -20
  174. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.mjs.map +0 -1
  175. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.mjs +0 -23
  176. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.mjs.map +0 -1
  177. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.mjs +0 -19
  178. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.mjs.map +0 -1
  179. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.mjs +0 -19
  180. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.mjs.map +0 -1
  181. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.mjs +0 -19
  182. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.mjs.map +0 -1
  183. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.mjs +0 -24
  184. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.mjs.map +0 -1
  185. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.mjs +0 -118
  186. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.mjs.map +0 -1
  187. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.mjs +0 -27
  188. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.mjs.map +0 -1
  189. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.mjs +0 -31
  190. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.mjs.map +0 -1
  191. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.mjs +0 -21
  192. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.mjs.map +0 -1
  193. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.mjs +0 -22
  194. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.mjs.map +0 -1
  195. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.mjs +0 -24
  196. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.mjs.map +0 -1
  197. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.mjs +0 -19
  198. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.mjs.map +0 -1
  199. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.mjs +0 -26
  200. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.mjs.map +0 -1
  201. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.mjs +0 -61
  202. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.mjs.map +0 -1
  203. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.mjs +0 -19
  204. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.mjs.map +0 -1
  205. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.mjs +0 -37
  206. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.mjs.map +0 -1
  207. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.mjs +0 -19
  208. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.mjs.map +0 -1
  209. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.mjs +0 -47
  210. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.mjs.map +0 -1
  211. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.mjs +0 -22
  212. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.mjs.map +0 -1
  213. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.mjs +0 -23
  214. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.mjs.map +0 -1
  215. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.mjs +0 -24
  216. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.mjs.map +0 -1
  217. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSlice.mjs +0 -25
  218. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSlice.mjs.map +0 -1
  219. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.mjs +0 -19
  220. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.mjs.map +0 -1
  221. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.mjs +0 -29
  222. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.mjs.map +0 -1
  223. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.mjs +0 -17
  224. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.mjs.map +0 -1
  225. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnset.mjs +0 -31
  226. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnset.mjs.map +0 -1
  227. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.mjs +0 -16
  228. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.mjs.map +0 -1
  229. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.mjs +0 -21
  230. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.mjs.map +0 -1
  231. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.mjs +0 -18
  232. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.mjs.map +0 -1
  233. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.mjs +0 -27
  234. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.mjs.map +0 -1
  235. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.mjs +0 -18
  236. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.mjs.map +0 -1
  237. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.mjs +0 -19
  238. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.mjs.map +0 -1
  239. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.mjs +0 -19
  240. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.mjs.map +0 -1
  241. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.mjs +0 -18
  242. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.mjs.map +0 -1
  243. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.mjs +0 -19
  244. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.mjs.map +0 -1
  245. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.mjs +0 -30
  246. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.mjs.map +0 -1
  247. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.mjs +0 -18
  248. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.mjs.map +0 -1
  249. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.mjs +0 -18
  250. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.mjs.map +0 -1
  251. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.mjs +0 -8
  252. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.mjs.map +0 -1
  253. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_customOmitClone.mjs +0 -18
  254. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_customOmitClone.mjs.map +0 -1
  255. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.mjs +0 -13
  256. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.mjs.map +0 -1
  257. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.mjs +0 -57
  258. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.mjs.map +0 -1
  259. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.mjs +0 -77
  260. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.mjs.map +0 -1
  261. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.mjs +0 -56
  262. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.mjs.map +0 -1
  263. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.mjs +0 -18
  264. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.mjs.map +0 -1
  265. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.mjs +0 -7
  266. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.mjs.map +0 -1
  267. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.mjs +0 -18
  268. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.mjs.map +0 -1
  269. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.mjs +0 -19
  270. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.mjs.map +0 -1
  271. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.mjs +0 -18
  272. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.mjs.map +0 -1
  273. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.mjs +0 -19
  274. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.mjs.map +0 -1
  275. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.mjs +0 -8
  276. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.mjs.map +0 -1
  277. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.mjs +0 -38
  278. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.mjs.map +0 -1
  279. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.mjs +0 -24
  280. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.mjs.map +0 -1
  281. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.mjs +0 -24
  282. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.mjs.map +0 -1
  283. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getTag.mjs +0 -45
  284. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getTag.mjs.map +0 -1
  285. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.mjs +0 -16
  286. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.mjs.map +0 -1
  287. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.mjs +0 -17
  288. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.mjs.map +0 -1
  289. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.mjs +0 -20
  290. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.mjs.map +0 -1
  291. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.mjs +0 -27
  292. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.mjs.map +0 -1
  293. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.mjs +0 -21
  294. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.mjs.map +0 -1
  295. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.mjs +0 -24
  296. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.mjs.map +0 -1
  297. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.mjs +0 -22
  298. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.mjs.map +0 -1
  299. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.mjs +0 -66
  300. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.mjs.map +0 -1
  301. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.mjs +0 -18
  302. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.mjs.map +0 -1
  303. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.mjs +0 -20
  304. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.mjs.map +0 -1
  305. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.mjs +0 -22
  306. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.mjs.map +0 -1
  307. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.mjs +0 -24
  308. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.mjs.map +0 -1
  309. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.mjs +0 -16
  310. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.mjs.map +0 -1
  311. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.mjs +0 -21
  312. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.mjs.map +0 -1
  313. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.mjs +0 -18
  314. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.mjs.map +0 -1
  315. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.mjs +0 -16
  316. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.mjs.map +0 -1
  317. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.mjs +0 -25
  318. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.mjs.map +0 -1
  319. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.mjs +0 -19
  320. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.mjs.map +0 -1
  321. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.mjs +0 -18
  322. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.mjs.map +0 -1
  323. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.mjs +0 -24
  324. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.mjs.map +0 -1
  325. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.mjs +0 -23
  326. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.mjs.map +0 -1
  327. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.mjs +0 -20
  328. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.mjs.map +0 -1
  329. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.mjs +0 -18
  330. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.mjs.map +0 -1
  331. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.mjs +0 -18
  332. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.mjs.map +0 -1
  333. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.mjs +0 -22
  334. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.mjs.map +0 -1
  335. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.mjs +0 -19
  336. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.mjs.map +0 -1
  337. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.mjs +0 -24
  338. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.mjs.map +0 -1
  339. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.mjs +0 -7
  340. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.mjs.map +0 -1
  341. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.mjs +0 -7
  342. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.mjs.map +0 -1
  343. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.mjs +0 -19
  344. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.mjs.map +0 -1
  345. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.mjs +0 -20
  346. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.mjs.map +0 -1
  347. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.mjs +0 -21
  348. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.mjs.map +0 -1
  349. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.mjs +0 -18
  350. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.mjs.map +0 -1
  351. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overRest.mjs +0 -28
  352. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overRest.mjs.map +0 -1
  353. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_parent.mjs +0 -18
  354. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_parent.mjs.map +0 -1
  355. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.mjs +0 -10
  356. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.mjs.map +0 -1
  357. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.mjs +0 -21
  358. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.mjs.map +0 -1
  359. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.mjs +0 -17
  360. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.mjs.map +0 -1
  361. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.mjs +0 -19
  362. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.mjs.map +0 -1
  363. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToString.mjs +0 -16
  364. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToString.mjs.map +0 -1
  365. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.mjs +0 -29
  366. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.mjs.map +0 -1
  367. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.mjs +0 -17
  368. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.mjs.map +0 -1
  369. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.mjs +0 -19
  370. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.mjs.map +0 -1
  371. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.mjs +0 -17
  372. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.mjs.map +0 -1
  373. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.mjs +0 -17
  374. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.mjs.map +0 -1
  375. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.mjs +0 -35
  376. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.mjs.map +0 -1
  377. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.mjs +0 -25
  378. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.mjs.map +0 -1
  379. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.mjs +0 -20
  380. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.mjs.map +0 -1
  381. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.mjs +0 -25
  382. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.mjs.map +0 -1
  383. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/constant.mjs +0 -29
  384. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/constant.mjs.map +0 -1
  385. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.mjs +0 -40
  386. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.mjs.map +0 -1
  387. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/flatten.mjs +0 -23
  388. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/flatten.mjs.map +0 -1
  389. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.mjs +0 -24
  390. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.mjs.map +0 -1
  391. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.mjs +0 -36
  392. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.mjs.map +0 -1
  393. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.mjs +0 -29
  394. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.mjs.map +0 -1
  395. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.mjs +0 -35
  396. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.mjs.map +0 -1
  397. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBoolean.mjs +0 -29
  398. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBoolean.mjs.map +0 -1
  399. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.mjs +0 -31
  400. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.mjs.map +0 -1
  401. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isEqual.mjs +0 -37
  402. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isEqual.mjs.map +0 -1
  403. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.mjs +0 -34
  404. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.mjs.map +0 -1
  405. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.mjs +0 -36
  406. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.mjs.map +0 -1
  407. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isMap.mjs +0 -27
  408. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isMap.mjs.map +0 -1
  409. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNil.mjs +0 -28
  410. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNil.mjs.map +0 -1
  411. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNull.mjs +0 -25
  412. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNull.mjs.map +0 -1
  413. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNumber.mjs +0 -38
  414. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNumber.mjs.map +0 -1
  415. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.mjs +0 -34
  416. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.mjs.map +0 -1
  417. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.mjs +0 -32
  418. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.mjs.map +0 -1
  419. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.mjs +0 -54
  420. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.mjs.map +0 -1
  421. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSet.mjs +0 -27
  422. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSet.mjs.map +0 -1
  423. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isString.mjs +0 -30
  424. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isString.mjs.map +0 -1
  425. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.mjs +0 -29
  426. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.mjs.map +0 -1
  427. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.mjs +0 -27
  428. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.mjs.map +0 -1
  429. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isUndefined.mjs +0 -25
  430. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isUndefined.mjs.map +0 -1
  431. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.mjs +0 -39
  432. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.mjs.map +0 -1
  433. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keysIn.mjs +0 -34
  434. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keysIn.mjs.map +0 -1
  435. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/last.mjs +0 -23
  436. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/last.mjs.map +0 -1
  437. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.mjs +0 -65
  438. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.mjs.map +0 -1
  439. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/omit.mjs +0 -52
  440. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/omit.mjs.map +0 -1
  441. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.mjs +0 -26
  442. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.mjs.map +0 -1
  443. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.mjs +0 -21
  444. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.mjs.map +0 -1
  445. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.mjs +0 -30
  446. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.mjs.map +0 -1
  447. package/dist/node_modules/.pnpm/screenfull@6.0.2/node_modules/screenfull/index.mjs +0 -120
  448. package/dist/node_modules/.pnpm/screenfull@6.0.2/node_modules/screenfull/index.mjs.map +0 -1
  449. package/dist/node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.mjs +0 -1925
  450. package/dist/node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.mjs.map +0 -1
@@ -1,1925 +0,0 @@
1
- //#region node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js
2
- /**!
3
- * Sortable 1.15.7
4
- * @author RubaXa <trash@rubaxa.org>
5
- * @author owenm <owen23355@gmail.com>
6
- * @license MIT
7
- */
8
- function _defineProperty(e, r, t) {
9
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
10
- value: t,
11
- enumerable: !0,
12
- configurable: !0,
13
- writable: !0
14
- }) : e[r] = t, e;
15
- }
16
- function _extends() {
17
- return _extends = Object.assign ? Object.assign.bind() : function(n) {
18
- for (var e = 1; e < arguments.length; e++) {
19
- var t = arguments[e];
20
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
21
- }
22
- return n;
23
- }, _extends.apply(null, arguments);
24
- }
25
- function ownKeys(e, r) {
26
- var t = Object.keys(e);
27
- if (Object.getOwnPropertySymbols) {
28
- var o = Object.getOwnPropertySymbols(e);
29
- r && (o = o.filter(function(r) {
30
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
31
- })), t.push.apply(t, o);
32
- }
33
- return t;
34
- }
35
- function _objectSpread2(e) {
36
- for (var r = 1; r < arguments.length; r++) {
37
- var t = null != arguments[r] ? arguments[r] : {};
38
- r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
39
- _defineProperty(e, r, t[r]);
40
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
41
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
42
- });
43
- }
44
- return e;
45
- }
46
- function _objectWithoutProperties(e, t) {
47
- if (null == e) return {};
48
- var o, r, i = _objectWithoutPropertiesLoose(e, t);
49
- if (Object.getOwnPropertySymbols) {
50
- var n = Object.getOwnPropertySymbols(e);
51
- for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
52
- }
53
- return i;
54
- }
55
- function _objectWithoutPropertiesLoose(r, e) {
56
- if (null == r) return {};
57
- var t = {};
58
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
59
- if (-1 !== e.indexOf(n)) continue;
60
- t[n] = r[n];
61
- }
62
- return t;
63
- }
64
- function _toPrimitive(t, r) {
65
- if ("object" != typeof t || !t) return t;
66
- var e = t[Symbol.toPrimitive];
67
- if (void 0 !== e) {
68
- var i = e.call(t, r || "default");
69
- if ("object" != typeof i) return i;
70
- throw new TypeError("@@toPrimitive must return a primitive value.");
71
- }
72
- return ("string" === r ? String : Number)(t);
73
- }
74
- function _toPropertyKey(t) {
75
- var i = _toPrimitive(t, "string");
76
- return "symbol" == typeof i ? i : i + "";
77
- }
78
- function _typeof(o) {
79
- "@babel/helpers - typeof";
80
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
81
- return typeof o;
82
- } : function(o) {
83
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
84
- }, _typeof(o);
85
- }
86
- var version = "1.15.7";
87
- function userAgent(pattern) {
88
- if (typeof window !== "undefined" && window.navigator) return !!/*@__PURE__*/ navigator.userAgent.match(pattern);
89
- }
90
- var IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
91
- var Edge = userAgent(/Edge/i);
92
- var FireFox = userAgent(/firefox/i);
93
- var Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);
94
- var IOS = userAgent(/iP(ad|od|hone)/i);
95
- var ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);
96
- var captureMode = {
97
- capture: false,
98
- passive: false
99
- };
100
- function on(el, event, fn) {
101
- el.addEventListener(event, fn, !IE11OrLess && captureMode);
102
- }
103
- function off(el, event, fn) {
104
- el.removeEventListener(event, fn, !IE11OrLess && captureMode);
105
- }
106
- function matches(el, selector) {
107
- if (!selector) return;
108
- selector[0] === ">" && (selector = selector.substring(1));
109
- if (el) try {
110
- if (el.matches) return el.matches(selector);
111
- else if (el.msMatchesSelector) return el.msMatchesSelector(selector);
112
- else if (el.webkitMatchesSelector) return el.webkitMatchesSelector(selector);
113
- } catch (_) {
114
- return false;
115
- }
116
- return false;
117
- }
118
- function getParentOrHost(el) {
119
- return el.host && el !== document && el.host.nodeType && el.host !== el ? el.host : el.parentNode;
120
- }
121
- function closest(el, selector, ctx, includeCTX) {
122
- if (el) {
123
- ctx = ctx || document;
124
- do {
125
- if (selector != null && (selector[0] === ">" ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) return el;
126
- if (el === ctx) break;
127
- } while (el = getParentOrHost(el));
128
- }
129
- return null;
130
- }
131
- var R_SPACE = /\s+/g;
132
- function toggleClass(el, name, state) {
133
- if (el && name) {
134
- if (el.classList) el.classList[state ? "add" : "remove"](name);
135
- else el.className = ((" " + el.className + " ").replace(R_SPACE, " ").replace(" " + name + " ", " ") + (state ? " " + name : "")).replace(R_SPACE, " ");
136
- }
137
- }
138
- function css(el, prop, val) {
139
- var style = el && el.style;
140
- if (style) {
141
- if (val === void 0) {
142
- if (document.defaultView && document.defaultView.getComputedStyle) val = document.defaultView.getComputedStyle(el, "");
143
- else if (el.currentStyle) val = el.currentStyle;
144
- return prop === void 0 ? val : val[prop];
145
- } else {
146
- if (!(prop in style) && prop.indexOf("webkit") === -1) prop = "-webkit-" + prop;
147
- style[prop] = val + (typeof val === "string" ? "" : "px");
148
- }
149
- }
150
- }
151
- function matrix(el, selfOnly) {
152
- var appliedTransforms = "";
153
- if (typeof el === "string") appliedTransforms = el;
154
- else do {
155
- var transform = css(el, "transform");
156
- if (transform && transform !== "none") appliedTransforms = transform + " " + appliedTransforms;
157
- } while (!selfOnly && (el = el.parentNode));
158
- var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
159
- return matrixFn && new matrixFn(appliedTransforms);
160
- }
161
- function find(ctx, tagName, iterator) {
162
- if (ctx) {
163
- var list = ctx.getElementsByTagName(tagName), i = 0, n = list.length;
164
- if (iterator) for (; i < n; i++) iterator(list[i], i);
165
- return list;
166
- }
167
- return [];
168
- }
169
- function getWindowScrollingElement() {
170
- var scrollingElement = document.scrollingElement;
171
- if (scrollingElement) return scrollingElement;
172
- else return document.documentElement;
173
- }
174
- /**
175
- * Returns the "bounding client rect" of given element
176
- * @param {HTMLElement} el The element whose boundingClientRect is wanted
177
- * @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container
178
- * @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr
179
- * @param {[Boolean]} undoScale Whether the container's scale() should be undone
180
- * @param {[HTMLElement]} container The parent the element will be placed in
181
- * @return {Object} The boundingClientRect of el, with specified adjustments
182
- */
183
- function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {
184
- if (!el.getBoundingClientRect && el !== window) return;
185
- var elRect, top, left, bottom, right, height, width;
186
- if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {
187
- elRect = el.getBoundingClientRect();
188
- top = elRect.top;
189
- left = elRect.left;
190
- bottom = elRect.bottom;
191
- right = elRect.right;
192
- height = elRect.height;
193
- width = elRect.width;
194
- } else {
195
- top = 0;
196
- left = 0;
197
- bottom = window.innerHeight;
198
- right = window.innerWidth;
199
- height = window.innerHeight;
200
- width = window.innerWidth;
201
- }
202
- if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {
203
- container = container || el.parentNode;
204
- if (!IE11OrLess) do
205
- if (container && container.getBoundingClientRect && (css(container, "transform") !== "none" || relativeToNonStaticParent && css(container, "position") !== "static")) {
206
- var containerRect = container.getBoundingClientRect();
207
- top -= containerRect.top + parseInt(css(container, "border-top-width"));
208
- left -= containerRect.left + parseInt(css(container, "border-left-width"));
209
- bottom = top + elRect.height;
210
- right = left + elRect.width;
211
- break;
212
- }
213
- while (container = container.parentNode);
214
- }
215
- if (undoScale && el !== window) {
216
- var elMatrix = matrix(container || el), scaleX = elMatrix && elMatrix.a, scaleY = elMatrix && elMatrix.d;
217
- if (elMatrix) {
218
- top /= scaleY;
219
- left /= scaleX;
220
- width /= scaleX;
221
- height /= scaleY;
222
- bottom = top + height;
223
- right = left + width;
224
- }
225
- }
226
- return {
227
- top,
228
- left,
229
- bottom,
230
- right,
231
- width,
232
- height
233
- };
234
- }
235
- /**
236
- * Checks if a side of an element is scrolled past a side of its parents
237
- * @param {HTMLElement} el The element who's side being scrolled out of view is in question
238
- * @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')
239
- * @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')
240
- * @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element
241
- */
242
- function isScrolledPast(el, elSide, parentSide) {
243
- var parent = getParentAutoScrollElement(el, true), elSideVal = getRect(el)[elSide];
244
- while (parent) {
245
- var parentSideVal = getRect(parent)[parentSide], visible = void 0;
246
- if (parentSide === "top" || parentSide === "left") visible = elSideVal >= parentSideVal;
247
- else visible = elSideVal <= parentSideVal;
248
- if (!visible) return parent;
249
- if (parent === getWindowScrollingElement()) break;
250
- parent = getParentAutoScrollElement(parent, false);
251
- }
252
- return false;
253
- }
254
- /**
255
- * Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)
256
- * and non-draggable elements
257
- * @param {HTMLElement} el The parent element
258
- * @param {Number} childNum The index of the child
259
- * @param {Object} options Parent Sortable's options
260
- * @return {HTMLElement} The child at index childNum, or null if not found
261
- */
262
- function getChild(el, childNum, options, includeDragEl) {
263
- var currentChild = 0, i = 0, children = el.children;
264
- while (i < children.length) {
265
- if (children[i].style.display !== "none" && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {
266
- if (currentChild === childNum) return children[i];
267
- currentChild++;
268
- }
269
- i++;
270
- }
271
- return null;
272
- }
273
- /**
274
- * Gets the last child in the el, ignoring ghostEl or invisible elements (clones)
275
- * @param {HTMLElement} el Parent element
276
- * @param {selector} selector Any other elements that should be ignored
277
- * @return {HTMLElement} The last child, ignoring ghostEl
278
- */
279
- function lastChild(el, selector) {
280
- var last = el.lastElementChild;
281
- while (last && (last === Sortable.ghost || css(last, "display") === "none" || selector && !matches(last, selector))) last = last.previousElementSibling;
282
- return last || null;
283
- }
284
- /**
285
- * Returns the index of an element within its parent for a selected set of
286
- * elements
287
- * @param {HTMLElement} el
288
- * @param {selector} selector
289
- * @return {number}
290
- */
291
- function index(el, selector) {
292
- var index = 0;
293
- if (!el || !el.parentNode) return -1;
294
- while (el = el.previousElementSibling) if (el.nodeName.toUpperCase() !== "TEMPLATE" && el !== Sortable.clone && (!selector || matches(el, selector))) index++;
295
- return index;
296
- }
297
- /**
298
- * Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.
299
- * The value is returned in real pixels.
300
- * @param {HTMLElement} el
301
- * @return {Array} Offsets in the format of [left, top]
302
- */
303
- function getRelativeScrollOffset(el) {
304
- var offsetLeft = 0, offsetTop = 0, winScroller = getWindowScrollingElement();
305
- if (el) do {
306
- var elMatrix = matrix(el), scaleX = elMatrix.a, scaleY = elMatrix.d;
307
- offsetLeft += el.scrollLeft * scaleX;
308
- offsetTop += el.scrollTop * scaleY;
309
- } while (el !== winScroller && (el = el.parentNode));
310
- return [offsetLeft, offsetTop];
311
- }
312
- /**
313
- * Returns the index of the object within the given array
314
- * @param {Array} arr Array that may or may not hold the object
315
- * @param {Object} obj An object that has a key-value pair unique to and identical to a key-value pair in the object you want to find
316
- * @return {Number} The index of the object in the array, or -1
317
- */
318
- function indexOfObject(arr, obj) {
319
- for (var i in arr) {
320
- if (!arr.hasOwnProperty(i)) continue;
321
- for (var key in obj) if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);
322
- }
323
- return -1;
324
- }
325
- function getParentAutoScrollElement(el, includeSelf) {
326
- if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();
327
- var elem = el;
328
- var gotSelf = false;
329
- do
330
- if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {
331
- var elemCSS = css(elem);
332
- if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == "auto" || elemCSS.overflowX == "scroll") || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == "auto" || elemCSS.overflowY == "scroll")) {
333
- if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();
334
- if (gotSelf || includeSelf) return elem;
335
- gotSelf = true;
336
- }
337
- }
338
- while (elem = elem.parentNode);
339
- return getWindowScrollingElement();
340
- }
341
- function extend(dst, src) {
342
- if (dst && src) {
343
- for (var key in src) if (src.hasOwnProperty(key)) dst[key] = src[key];
344
- }
345
- return dst;
346
- }
347
- function isRectEqual(rect1, rect2) {
348
- 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);
349
- }
350
- var _throttleTimeout;
351
- function throttle(callback, ms) {
352
- return function() {
353
- if (!_throttleTimeout) {
354
- var args = arguments, _this = this;
355
- if (args.length === 1) callback.call(_this, args[0]);
356
- else callback.apply(_this, args);
357
- _throttleTimeout = setTimeout(function() {
358
- _throttleTimeout = void 0;
359
- }, ms);
360
- }
361
- };
362
- }
363
- function cancelThrottle() {
364
- clearTimeout(_throttleTimeout);
365
- _throttleTimeout = void 0;
366
- }
367
- function scrollBy(el, x, y) {
368
- el.scrollLeft += x;
369
- el.scrollTop += y;
370
- }
371
- function clone(el) {
372
- var Polymer = window.Polymer;
373
- var $ = window.jQuery || window.Zepto;
374
- if (Polymer && Polymer.dom) return Polymer.dom(el).cloneNode(true);
375
- else if ($) return $(el).clone(true)[0];
376
- else return el.cloneNode(true);
377
- }
378
- function getChildContainingRectFromElement(container, options, ghostEl) {
379
- var rect = {};
380
- Array.from(container.children).forEach(function(child) {
381
- var _rect$left, _rect$top, _rect$right, _rect$bottom;
382
- if (!closest(child, options.draggable, container, false) || child.animated || child === ghostEl) return;
383
- var childRect = getRect(child);
384
- rect.left = Math.min((_rect$left = rect.left) !== null && _rect$left !== void 0 ? _rect$left : Infinity, childRect.left);
385
- rect.top = Math.min((_rect$top = rect.top) !== null && _rect$top !== void 0 ? _rect$top : Infinity, childRect.top);
386
- rect.right = Math.max((_rect$right = rect.right) !== null && _rect$right !== void 0 ? _rect$right : -Infinity, childRect.right);
387
- rect.bottom = Math.max((_rect$bottom = rect.bottom) !== null && _rect$bottom !== void 0 ? _rect$bottom : -Infinity, childRect.bottom);
388
- });
389
- rect.width = rect.right - rect.left;
390
- rect.height = rect.bottom - rect.top;
391
- rect.x = rect.left;
392
- rect.y = rect.top;
393
- return rect;
394
- }
395
- var expando = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
396
- function AnimationStateManager() {
397
- var animationStates = [], animationCallbackId;
398
- return {
399
- captureAnimationState: function captureAnimationState() {
400
- animationStates = [];
401
- if (!this.options.animation) return;
402
- [].slice.call(this.el.children).forEach(function(child) {
403
- if (css(child, "display") === "none" || child === Sortable.ghost) return;
404
- animationStates.push({
405
- target: child,
406
- rect: getRect(child)
407
- });
408
- var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect);
409
- if (child.thisAnimationDuration) {
410
- var childMatrix = matrix(child, true);
411
- if (childMatrix) {
412
- fromRect.top -= childMatrix.f;
413
- fromRect.left -= childMatrix.e;
414
- }
415
- }
416
- child.fromRect = fromRect;
417
- });
418
- },
419
- addAnimationState: function addAnimationState(state) {
420
- animationStates.push(state);
421
- },
422
- removeAnimationState: function removeAnimationState(target) {
423
- animationStates.splice(indexOfObject(animationStates, { target }), 1);
424
- },
425
- animateAll: function animateAll(callback) {
426
- var _this = this;
427
- if (!this.options.animation) {
428
- clearTimeout(animationCallbackId);
429
- if (typeof callback === "function") callback();
430
- return;
431
- }
432
- var animating = false, animationTime = 0;
433
- animationStates.forEach(function(state) {
434
- 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);
435
- if (targetMatrix) {
436
- toRect.top -= targetMatrix.f;
437
- toRect.left -= targetMatrix.e;
438
- }
439
- target.toRect = toRect;
440
- if (target.thisAnimationDuration) {
441
- if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);
442
- }
443
- if (!isRectEqual(toRect, fromRect)) {
444
- target.prevFromRect = fromRect;
445
- target.prevToRect = toRect;
446
- if (!time) time = _this.options.animation;
447
- _this.animate(target, animatingRect, toRect, time);
448
- }
449
- if (time) {
450
- animating = true;
451
- animationTime = Math.max(animationTime, time);
452
- clearTimeout(target.animationResetTimer);
453
- target.animationResetTimer = setTimeout(function() {
454
- target.animationTime = 0;
455
- target.prevFromRect = null;
456
- target.fromRect = null;
457
- target.prevToRect = null;
458
- target.thisAnimationDuration = null;
459
- }, time);
460
- target.thisAnimationDuration = time;
461
- }
462
- });
463
- clearTimeout(animationCallbackId);
464
- if (!animating) {
465
- if (typeof callback === "function") callback();
466
- } else animationCallbackId = setTimeout(function() {
467
- if (typeof callback === "function") callback();
468
- }, animationTime);
469
- animationStates = [];
470
- },
471
- animate: function animate(target, currentRect, toRect, duration) {
472
- if (duration) {
473
- css(target, "transition", "");
474
- css(target, "transform", "");
475
- 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);
476
- target.animatingX = !!translateX;
477
- target.animatingY = !!translateY;
478
- css(target, "transform", "translate3d(" + translateX + "px," + translateY + "px,0)");
479
- this.forRepaintDummy = repaint(target);
480
- css(target, "transition", "transform " + duration + "ms" + (this.options.easing ? " " + this.options.easing : ""));
481
- css(target, "transform", "translate3d(0,0,0)");
482
- typeof target.animated === "number" && clearTimeout(target.animated);
483
- target.animated = setTimeout(function() {
484
- css(target, "transition", "");
485
- css(target, "transform", "");
486
- target.animated = false;
487
- target.animatingX = false;
488
- target.animatingY = false;
489
- }, duration);
490
- }
491
- }
492
- };
493
- }
494
- function repaint(target) {
495
- return target.offsetWidth;
496
- }
497
- function calculateRealTime(animatingRect, fromRect, toRect, options) {
498
- 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;
499
- }
500
- var plugins = [];
501
- var defaults = { initializeByDefault: true };
502
- var PluginManager = {
503
- mount: function mount(plugin) {
504
- for (var option in defaults) if (defaults.hasOwnProperty(option) && !(option in plugin)) plugin[option] = defaults[option];
505
- plugins.forEach(function(p) {
506
- if (p.pluginName === plugin.pluginName) throw "Sortable: Cannot mount plugin ".concat(plugin.pluginName, " more than once");
507
- });
508
- plugins.push(plugin);
509
- },
510
- pluginEvent: function pluginEvent(eventName, sortable, evt) {
511
- var _this = this;
512
- this.eventCanceled = false;
513
- evt.cancel = function() {
514
- _this.eventCanceled = true;
515
- };
516
- var eventNameGlobal = eventName + "Global";
517
- plugins.forEach(function(plugin) {
518
- if (!sortable[plugin.pluginName]) return;
519
- if (sortable[plugin.pluginName][eventNameGlobal]) sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({ sortable }, evt));
520
- if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) sortable[plugin.pluginName][eventName](_objectSpread2({ sortable }, evt));
521
- });
522
- },
523
- initializePlugins: function initializePlugins(sortable, el, defaults, options) {
524
- plugins.forEach(function(plugin) {
525
- var pluginName = plugin.pluginName;
526
- if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;
527
- var initialized = new plugin(sortable, el, sortable.options);
528
- initialized.sortable = sortable;
529
- initialized.options = sortable.options;
530
- sortable[pluginName] = initialized;
531
- _extends(defaults, initialized.defaults);
532
- });
533
- for (var option in sortable.options) {
534
- if (!sortable.options.hasOwnProperty(option)) continue;
535
- var modified = this.modifyOption(sortable, option, sortable.options[option]);
536
- if (typeof modified !== "undefined") sortable.options[option] = modified;
537
- }
538
- },
539
- getEventProperties: function getEventProperties(name, sortable) {
540
- var eventProperties = {};
541
- plugins.forEach(function(plugin) {
542
- if (typeof plugin.eventProperties !== "function") return;
543
- _extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));
544
- });
545
- return eventProperties;
546
- },
547
- modifyOption: function modifyOption(sortable, name, value) {
548
- var modifiedValue;
549
- plugins.forEach(function(plugin) {
550
- if (!sortable[plugin.pluginName]) return;
551
- if (plugin.optionListeners && typeof plugin.optionListeners[name] === "function") modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);
552
- });
553
- return modifiedValue;
554
- }
555
- };
556
- function dispatchEvent(_ref) {
557
- var sortable = _ref.sortable, rootEl = _ref.rootEl, name = _ref.name, targetEl = _ref.targetEl, cloneEl = _ref.cloneEl, toEl = _ref.toEl, fromEl = _ref.fromEl, oldIndex = _ref.oldIndex, newIndex = _ref.newIndex, oldDraggableIndex = _ref.oldDraggableIndex, newDraggableIndex = _ref.newDraggableIndex, originalEvent = _ref.originalEvent, putSortable = _ref.putSortable, extraEventProperties = _ref.extraEventProperties;
558
- sortable = sortable || rootEl && rootEl[expando];
559
- if (!sortable) return;
560
- var evt, options = sortable.options, onName = "on" + name.charAt(0).toUpperCase() + name.substr(1);
561
- if (window.CustomEvent && !IE11OrLess && !Edge) evt = new CustomEvent(name, {
562
- bubbles: true,
563
- cancelable: true
564
- });
565
- else {
566
- evt = document.createEvent("Event");
567
- evt.initEvent(name, true, true);
568
- }
569
- evt.to = toEl || rootEl;
570
- evt.from = fromEl || rootEl;
571
- evt.item = targetEl || rootEl;
572
- evt.clone = cloneEl;
573
- evt.oldIndex = oldIndex;
574
- evt.newIndex = newIndex;
575
- evt.oldDraggableIndex = oldDraggableIndex;
576
- evt.newDraggableIndex = newDraggableIndex;
577
- evt.originalEvent = originalEvent;
578
- evt.pullMode = putSortable ? putSortable.lastPutMode : void 0;
579
- var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));
580
- for (var option in allEventProperties) evt[option] = allEventProperties[option];
581
- if (rootEl) rootEl.dispatchEvent(evt);
582
- if (options[onName]) options[onName].call(sortable, evt);
583
- }
584
- var _excluded = ["evt"];
585
- var pluginEvent = function pluginEvent(eventName, sortable) {
586
- var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, originalEvent = _ref.evt, data = _objectWithoutProperties(_ref, _excluded);
587
- PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({
588
- dragEl,
589
- parentEl,
590
- ghostEl,
591
- rootEl,
592
- nextEl,
593
- lastDownEl,
594
- cloneEl,
595
- cloneHidden,
596
- dragStarted: moved,
597
- putSortable,
598
- activeSortable: Sortable.active,
599
- originalEvent,
600
- oldIndex,
601
- oldDraggableIndex,
602
- newIndex,
603
- newDraggableIndex,
604
- hideGhostForTarget: _hideGhostForTarget,
605
- unhideGhostForTarget: _unhideGhostForTarget,
606
- cloneNowHidden: function cloneNowHidden() {
607
- cloneHidden = true;
608
- },
609
- cloneNowShown: function cloneNowShown() {
610
- cloneHidden = false;
611
- },
612
- dispatchSortableEvent: function dispatchSortableEvent(name) {
613
- _dispatchEvent({
614
- sortable,
615
- name,
616
- originalEvent
617
- });
618
- }
619
- }, data));
620
- };
621
- function _dispatchEvent(info) {
622
- dispatchEvent(_objectSpread2({
623
- putSortable,
624
- cloneEl,
625
- targetEl: dragEl,
626
- rootEl,
627
- oldIndex,
628
- oldDraggableIndex,
629
- newIndex,
630
- newDraggableIndex
631
- }, info));
632
- }
633
- var dragEl;
634
- var parentEl;
635
- var ghostEl;
636
- var rootEl;
637
- var nextEl;
638
- var lastDownEl;
639
- var cloneEl;
640
- var cloneHidden;
641
- var oldIndex;
642
- var newIndex;
643
- var oldDraggableIndex;
644
- var newDraggableIndex;
645
- var activeGroup;
646
- var putSortable;
647
- var awaitingDragStarted = false;
648
- var ignoreNextClick = false;
649
- var sortables = [];
650
- var tapEvt;
651
- var touchEvt;
652
- var lastDx;
653
- var lastDy;
654
- var tapDistanceLeft;
655
- var tapDistanceTop;
656
- var moved;
657
- var lastTarget;
658
- var lastDirection;
659
- var pastFirstInvertThresh = false;
660
- var isCircumstantialInvert = false;
661
- var targetMoveDistance;
662
- var ghostRelativeParent;
663
- var ghostRelativeParentInitialScroll = [];
664
- var _silent = false;
665
- var savedInputChecked = [];
666
- /** @const */
667
- var documentExists = typeof document !== "undefined";
668
- var PositionGhostAbsolutely = IOS;
669
- var CSSFloatProperty = Edge || IE11OrLess ? "cssFloat" : "float";
670
- var supportDraggable = documentExists && !ChromeForAndroid && !IOS && "draggable" in document.createElement("div");
671
- var supportCssPointerEvents = function() {
672
- if (!documentExists) return;
673
- if (IE11OrLess) return false;
674
- var el = document.createElement("x");
675
- el.style.cssText = "pointer-events:auto";
676
- return el.style.pointerEvents === "auto";
677
- }();
678
- var _detectDirection = function _detectDirection(el, options) {
679
- 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;
680
- if (elCSS.display === "flex") return elCSS.flexDirection === "column" || elCSS.flexDirection === "column-reverse" ? "vertical" : "horizontal";
681
- if (elCSS.display === "grid") return elCSS.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
682
- if (child1 && firstChildCSS["float"] && firstChildCSS["float"] !== "none") {
683
- var touchingSideChild2 = firstChildCSS["float"] === "left" ? "left" : "right";
684
- return child2 && (secondChildCSS.clear === "both" || secondChildCSS.clear === touchingSideChild2) ? "vertical" : "horizontal";
685
- }
686
- 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";
687
- };
688
- var _dragElInRowColumn = function _dragElInRowColumn(dragRect, targetRect, vertical) {
689
- 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;
690
- return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
691
- };
692
- var _detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
693
- var ret;
694
- sortables.some(function(sortable) {
695
- var threshold = sortable[expando].options.emptyInsertThreshold;
696
- if (!threshold || lastChild(sortable)) return;
697
- var rect = getRect(sortable), insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold, insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;
698
- if (insideHorizontally && insideVertically) return ret = sortable;
699
- });
700
- return ret;
701
- };
702
- var _prepareGroup = function _prepareGroup(options) {
703
- function toFn(value, pull) {
704
- return function(to, from, dragEl, evt) {
705
- var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;
706
- if (value == null && (pull || sameGroup)) return true;
707
- else if (value == null || value === false) return false;
708
- else if (pull && value === "clone") return value;
709
- else if (typeof value === "function") return toFn(value(to, from, dragEl, evt), pull)(to, from, dragEl, evt);
710
- else {
711
- var otherGroup = (pull ? to : from).options.group.name;
712
- return value === true || typeof value === "string" && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;
713
- }
714
- };
715
- }
716
- var group = {};
717
- var originalGroup = options.group;
718
- if (!originalGroup || _typeof(originalGroup) != "object") originalGroup = { name: originalGroup };
719
- group.name = originalGroup.name;
720
- group.checkPull = toFn(originalGroup.pull, true);
721
- group.checkPut = toFn(originalGroup.put);
722
- group.revertClone = originalGroup.revertClone;
723
- options.group = group;
724
- };
725
- var _hideGhostForTarget = function _hideGhostForTarget() {
726
- if (!supportCssPointerEvents && ghostEl) css(ghostEl, "display", "none");
727
- };
728
- var _unhideGhostForTarget = function _unhideGhostForTarget() {
729
- if (!supportCssPointerEvents && ghostEl) css(ghostEl, "display", "");
730
- };
731
- if (documentExists && !ChromeForAndroid) document.addEventListener("click", function(evt) {
732
- if (ignoreNextClick) {
733
- evt.preventDefault();
734
- evt.stopPropagation && evt.stopPropagation();
735
- evt.stopImmediatePropagation && evt.stopImmediatePropagation();
736
- ignoreNextClick = false;
737
- return false;
738
- }
739
- }, true);
740
- var nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) {
741
- if (dragEl) {
742
- evt = evt.touches ? evt.touches[0] : evt;
743
- var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);
744
- if (nearest) {
745
- var event = {};
746
- for (var i in evt) if (evt.hasOwnProperty(i)) event[i] = evt[i];
747
- event.target = event.rootEl = nearest;
748
- event.preventDefault = void 0;
749
- event.stopPropagation = void 0;
750
- nearest[expando]._onDragOver(event);
751
- }
752
- }
753
- };
754
- var _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {
755
- if (dragEl) dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
756
- };
757
- /**
758
- * @class Sortable
759
- * @param {HTMLElement} el
760
- * @param {Object} [options]
761
- */
762
- function Sortable(el, options) {
763
- if (!(el && el.nodeType && el.nodeType === 1)) throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(el));
764
- this.el = el;
765
- this.options = options = _extends({}, options);
766
- el[expando] = this;
767
- var defaults = {
768
- group: null,
769
- sort: true,
770
- disabled: false,
771
- store: null,
772
- handle: null,
773
- draggable: /^[uo]l$/i.test(el.nodeName) ? ">li" : ">*",
774
- swapThreshold: 1,
775
- invertSwap: false,
776
- invertedSwapThreshold: null,
777
- removeCloneOnHide: true,
778
- direction: function direction() {
779
- return _detectDirection(el, this.options);
780
- },
781
- ghostClass: "sortable-ghost",
782
- chosenClass: "sortable-chosen",
783
- dragClass: "sortable-drag",
784
- ignore: "a, img",
785
- filter: null,
786
- preventOnFilter: true,
787
- animation: 0,
788
- easing: null,
789
- setData: function setData(dataTransfer, dragEl) {
790
- dataTransfer.setData("Text", dragEl.textContent);
791
- },
792
- dropBubble: false,
793
- dragoverBubble: false,
794
- dataIdAttr: "data-id",
795
- delay: 0,
796
- delayOnTouchOnly: false,
797
- touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
798
- forceFallback: false,
799
- fallbackClass: "sortable-fallback",
800
- fallbackOnBody: false,
801
- fallbackTolerance: 0,
802
- fallbackOffset: {
803
- x: 0,
804
- y: 0
805
- },
806
- supportPointer: Sortable.supportPointer !== false && "PointerEvent" in window && (!Safari || IOS),
807
- emptyInsertThreshold: 5
808
- };
809
- PluginManager.initializePlugins(this, el, defaults);
810
- for (var name in defaults) !(name in options) && (options[name] = defaults[name]);
811
- _prepareGroup(options);
812
- for (var fn in this) if (fn.charAt(0) === "_" && typeof this[fn] === "function") this[fn] = this[fn].bind(this);
813
- this.nativeDraggable = options.forceFallback ? false : supportDraggable;
814
- if (this.nativeDraggable) this.options.touchStartThreshold = 1;
815
- if (options.supportPointer) on(el, "pointerdown", this._onTapStart);
816
- else {
817
- on(el, "mousedown", this._onTapStart);
818
- on(el, "touchstart", this._onTapStart);
819
- }
820
- if (this.nativeDraggable) {
821
- on(el, "dragover", this);
822
- on(el, "dragenter", this);
823
- }
824
- sortables.push(this.el);
825
- options.store && options.store.get && this.sort(options.store.get(this) || []);
826
- _extends(this, AnimationStateManager());
827
- }
828
- Sortable.prototype = (/** @lends Sortable.prototype */ {
829
- constructor: Sortable,
830
- _isOutsideThisEl: function _isOutsideThisEl(target) {
831
- if (!this.el.contains(target) && target !== this.el) lastTarget = null;
832
- },
833
- _getDirection: function _getDirection(evt, target) {
834
- return typeof this.options.direction === "function" ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;
835
- },
836
- _onTapStart: function _onTapStart(evt) {
837
- if (!evt.cancelable) return;
838
- 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;
839
- _saveInputCheckedState(el);
840
- if (dragEl) return;
841
- if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) return;
842
- if (originalTarget.isContentEditable) return;
843
- if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === "SELECT") return;
844
- target = closest(target, options.draggable, el, false);
845
- if (target && target.animated) return;
846
- if (lastDownEl === target) return;
847
- oldIndex = index(target);
848
- oldDraggableIndex = index(target, options.draggable);
849
- if (typeof filter === "function") {
850
- if (filter.call(this, evt, target, this)) {
851
- _dispatchEvent({
852
- sortable: _this,
853
- rootEl: originalTarget,
854
- name: "filter",
855
- targetEl: target,
856
- toEl: el,
857
- fromEl: el
858
- });
859
- pluginEvent("filter", _this, { evt });
860
- preventOnFilter && evt.preventDefault();
861
- return;
862
- }
863
- } else if (filter) {
864
- filter = filter.split(",").some(function(criteria) {
865
- criteria = closest(originalTarget, criteria.trim(), el, false);
866
- if (criteria) {
867
- _dispatchEvent({
868
- sortable: _this,
869
- rootEl: criteria,
870
- name: "filter",
871
- targetEl: target,
872
- fromEl: el,
873
- toEl: el
874
- });
875
- pluginEvent("filter", _this, { evt });
876
- return true;
877
- }
878
- });
879
- if (filter) {
880
- preventOnFilter && evt.preventDefault();
881
- return;
882
- }
883
- }
884
- if (options.handle && !closest(originalTarget, options.handle, el, false)) return;
885
- this._prepareDragStart(evt, touch, target);
886
- },
887
- _prepareDragStart: function _prepareDragStart(evt, touch, target) {
888
- var _this = this, el = _this.el, options = _this.options, ownerDocument = el.ownerDocument, dragStartFn;
889
- if (target && !dragEl && target.parentNode === el) {
890
- var dragRect = getRect(target);
891
- rootEl = el;
892
- dragEl = target;
893
- parentEl = dragEl.parentNode;
894
- nextEl = dragEl.nextSibling;
895
- lastDownEl = target;
896
- activeGroup = options.group;
897
- Sortable.dragged = dragEl;
898
- tapEvt = {
899
- target: dragEl,
900
- clientX: (touch || evt).clientX,
901
- clientY: (touch || evt).clientY
902
- };
903
- tapDistanceLeft = tapEvt.clientX - dragRect.left;
904
- tapDistanceTop = tapEvt.clientY - dragRect.top;
905
- this._lastX = (touch || evt).clientX;
906
- this._lastY = (touch || evt).clientY;
907
- dragEl.style["will-change"] = "all";
908
- dragStartFn = function dragStartFn() {
909
- pluginEvent("delayEnded", _this, { evt });
910
- if (Sortable.eventCanceled) {
911
- _this._onDrop();
912
- return;
913
- }
914
- _this._disableDelayedDragEvents();
915
- if (!FireFox && _this.nativeDraggable) dragEl.draggable = true;
916
- _this._triggerDragStart(evt, touch);
917
- _dispatchEvent({
918
- sortable: _this,
919
- name: "choose",
920
- originalEvent: evt
921
- });
922
- toggleClass(dragEl, options.chosenClass, true);
923
- };
924
- options.ignore.split(",").forEach(function(criteria) {
925
- find(dragEl, criteria.trim(), _disableDraggable);
926
- });
927
- on(ownerDocument, "dragover", nearestEmptyInsertDetectEvent);
928
- on(ownerDocument, "mousemove", nearestEmptyInsertDetectEvent);
929
- on(ownerDocument, "touchmove", nearestEmptyInsertDetectEvent);
930
- if (options.supportPointer) {
931
- on(ownerDocument, "pointerup", _this._onDrop);
932
- !this.nativeDraggable && on(ownerDocument, "pointercancel", _this._onDrop);
933
- } else {
934
- on(ownerDocument, "mouseup", _this._onDrop);
935
- on(ownerDocument, "touchend", _this._onDrop);
936
- on(ownerDocument, "touchcancel", _this._onDrop);
937
- }
938
- if (FireFox && this.nativeDraggable) {
939
- this.options.touchStartThreshold = 4;
940
- dragEl.draggable = true;
941
- }
942
- pluginEvent("delayStart", this, { evt });
943
- if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {
944
- if (Sortable.eventCanceled) {
945
- this._onDrop();
946
- return;
947
- }
948
- if (options.supportPointer) {
949
- on(ownerDocument, "pointerup", _this._disableDelayedDrag);
950
- on(ownerDocument, "pointercancel", _this._disableDelayedDrag);
951
- } else {
952
- on(ownerDocument, "mouseup", _this._disableDelayedDrag);
953
- on(ownerDocument, "touchend", _this._disableDelayedDrag);
954
- on(ownerDocument, "touchcancel", _this._disableDelayedDrag);
955
- }
956
- on(ownerDocument, "mousemove", _this._delayedDragTouchMoveHandler);
957
- on(ownerDocument, "touchmove", _this._delayedDragTouchMoveHandler);
958
- options.supportPointer && on(ownerDocument, "pointermove", _this._delayedDragTouchMoveHandler);
959
- _this._dragStartTimer = setTimeout(dragStartFn, options.delay);
960
- } else dragStartFn();
961
- }
962
- },
963
- _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(e) {
964
- var touch = e.touches ? e.touches[0] : e;
965
- 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))) this._disableDelayedDrag();
966
- },
967
- _disableDelayedDrag: function _disableDelayedDrag() {
968
- dragEl && _disableDraggable(dragEl);
969
- clearTimeout(this._dragStartTimer);
970
- this._disableDelayedDragEvents();
971
- },
972
- _disableDelayedDragEvents: function _disableDelayedDragEvents() {
973
- var ownerDocument = this.el.ownerDocument;
974
- off(ownerDocument, "mouseup", this._disableDelayedDrag);
975
- off(ownerDocument, "touchend", this._disableDelayedDrag);
976
- off(ownerDocument, "touchcancel", this._disableDelayedDrag);
977
- off(ownerDocument, "pointerup", this._disableDelayedDrag);
978
- off(ownerDocument, "pointercancel", this._disableDelayedDrag);
979
- off(ownerDocument, "mousemove", this._delayedDragTouchMoveHandler);
980
- off(ownerDocument, "touchmove", this._delayedDragTouchMoveHandler);
981
- off(ownerDocument, "pointermove", this._delayedDragTouchMoveHandler);
982
- },
983
- _triggerDragStart: function _triggerDragStart(evt, touch) {
984
- touch = touch || evt.pointerType == "touch" && evt;
985
- if (!this.nativeDraggable || touch) {
986
- if (this.options.supportPointer) on(document, "pointermove", this._onTouchMove);
987
- else if (touch) on(document, "touchmove", this._onTouchMove);
988
- else on(document, "mousemove", this._onTouchMove);
989
- } else {
990
- on(dragEl, "dragend", this);
991
- on(rootEl, "dragstart", this._onDragStart);
992
- }
993
- try {
994
- if (document.selection) _nextTick(function() {
995
- document.selection.empty();
996
- });
997
- else window.getSelection().removeAllRanges();
998
- } catch (err) {}
999
- },
1000
- _dragStarted: function _dragStarted(fallback, evt) {
1001
- awaitingDragStarted = false;
1002
- if (rootEl && dragEl) {
1003
- pluginEvent("dragStarted", this, { evt });
1004
- if (this.nativeDraggable) on(document, "dragover", _checkOutsideTargetEl);
1005
- var options = this.options;
1006
- !fallback && toggleClass(dragEl, options.dragClass, false);
1007
- toggleClass(dragEl, options.ghostClass, true);
1008
- Sortable.active = this;
1009
- fallback && this._appendGhost();
1010
- _dispatchEvent({
1011
- sortable: this,
1012
- name: "start",
1013
- originalEvent: evt
1014
- });
1015
- } else this._nulling();
1016
- },
1017
- _emulateDragOver: function _emulateDragOver() {
1018
- if (touchEvt) {
1019
- this._lastX = touchEvt.clientX;
1020
- this._lastY = touchEvt.clientY;
1021
- _hideGhostForTarget();
1022
- var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
1023
- var parent = target;
1024
- while (target && target.shadowRoot) {
1025
- target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
1026
- if (target === parent) break;
1027
- parent = target;
1028
- }
1029
- dragEl.parentNode[expando]._isOutsideThisEl(target);
1030
- if (parent) do {
1031
- if (parent[expando]) {
1032
- var inserted = void 0;
1033
- inserted = parent[expando]._onDragOver({
1034
- clientX: touchEvt.clientX,
1035
- clientY: touchEvt.clientY,
1036
- target,
1037
- rootEl: parent
1038
- });
1039
- if (inserted && !this.options.dragoverBubble) break;
1040
- }
1041
- target = parent;
1042
- } while (parent = getParentOrHost(parent));
1043
- _unhideGhostForTarget();
1044
- }
1045
- },
1046
- _onTouchMove: function _onTouchMove(evt) {
1047
- if (tapEvt) {
1048
- 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);
1049
- if (!Sortable.active && !awaitingDragStarted) {
1050
- if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) return;
1051
- this._onDragStart(evt, true);
1052
- }
1053
- if (ghostEl) {
1054
- if (ghostMatrix) {
1055
- ghostMatrix.e += dx - (lastDx || 0);
1056
- ghostMatrix.f += dy - (lastDy || 0);
1057
- } else ghostMatrix = {
1058
- a: 1,
1059
- b: 0,
1060
- c: 0,
1061
- d: 1,
1062
- e: dx,
1063
- f: dy
1064
- };
1065
- var cssMatrix = "matrix(".concat(ghostMatrix.a, ",").concat(ghostMatrix.b, ",").concat(ghostMatrix.c, ",").concat(ghostMatrix.d, ",").concat(ghostMatrix.e, ",").concat(ghostMatrix.f, ")");
1066
- css(ghostEl, "webkitTransform", cssMatrix);
1067
- css(ghostEl, "mozTransform", cssMatrix);
1068
- css(ghostEl, "msTransform", cssMatrix);
1069
- css(ghostEl, "transform", cssMatrix);
1070
- lastDx = dx;
1071
- lastDy = dy;
1072
- touchEvt = touch;
1073
- }
1074
- evt.cancelable && evt.preventDefault();
1075
- }
1076
- },
1077
- _appendGhost: function _appendGhost() {
1078
- if (!ghostEl) {
1079
- var container = this.options.fallbackOnBody ? document.body : rootEl, rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container), options = this.options;
1080
- if (PositionGhostAbsolutely) {
1081
- ghostRelativeParent = container;
1082
- while (css(ghostRelativeParent, "position") === "static" && css(ghostRelativeParent, "transform") === "none" && ghostRelativeParent !== document) ghostRelativeParent = ghostRelativeParent.parentNode;
1083
- if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {
1084
- if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();
1085
- rect.top += ghostRelativeParent.scrollTop;
1086
- rect.left += ghostRelativeParent.scrollLeft;
1087
- } else ghostRelativeParent = getWindowScrollingElement();
1088
- ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);
1089
- }
1090
- ghostEl = dragEl.cloneNode(true);
1091
- toggleClass(ghostEl, options.ghostClass, false);
1092
- toggleClass(ghostEl, options.fallbackClass, true);
1093
- toggleClass(ghostEl, options.dragClass, true);
1094
- css(ghostEl, "transition", "");
1095
- css(ghostEl, "transform", "");
1096
- css(ghostEl, "box-sizing", "border-box");
1097
- css(ghostEl, "margin", 0);
1098
- css(ghostEl, "top", rect.top);
1099
- css(ghostEl, "left", rect.left);
1100
- css(ghostEl, "width", rect.width);
1101
- css(ghostEl, "height", rect.height);
1102
- css(ghostEl, "opacity", "0.8");
1103
- css(ghostEl, "position", PositionGhostAbsolutely ? "absolute" : "fixed");
1104
- css(ghostEl, "zIndex", "100000");
1105
- css(ghostEl, "pointerEvents", "none");
1106
- Sortable.ghost = ghostEl;
1107
- container.appendChild(ghostEl);
1108
- css(ghostEl, "transform-origin", tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + "% " + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + "%");
1109
- }
1110
- },
1111
- _onDragStart: function _onDragStart(evt, fallback) {
1112
- var _this = this;
1113
- var dataTransfer = evt.dataTransfer;
1114
- var options = _this.options;
1115
- pluginEvent("dragStart", this, { evt });
1116
- if (Sortable.eventCanceled) {
1117
- this._onDrop();
1118
- return;
1119
- }
1120
- pluginEvent("setupClone", this);
1121
- if (!Sortable.eventCanceled) {
1122
- cloneEl = clone(dragEl);
1123
- cloneEl.removeAttribute("id");
1124
- cloneEl.draggable = false;
1125
- cloneEl.style["will-change"] = "";
1126
- this._hideClone();
1127
- toggleClass(cloneEl, this.options.chosenClass, false);
1128
- Sortable.clone = cloneEl;
1129
- }
1130
- _this.cloneId = _nextTick(function() {
1131
- pluginEvent("clone", _this);
1132
- if (Sortable.eventCanceled) return;
1133
- if (!_this.options.removeCloneOnHide) rootEl.insertBefore(cloneEl, dragEl);
1134
- _this._hideClone();
1135
- _dispatchEvent({
1136
- sortable: _this,
1137
- name: "clone"
1138
- });
1139
- });
1140
- !fallback && toggleClass(dragEl, options.dragClass, true);
1141
- if (fallback) {
1142
- ignoreNextClick = true;
1143
- _this._loopId = setInterval(_this._emulateDragOver, 50);
1144
- } else {
1145
- off(document, "mouseup", _this._onDrop);
1146
- off(document, "touchend", _this._onDrop);
1147
- off(document, "touchcancel", _this._onDrop);
1148
- if (dataTransfer) {
1149
- dataTransfer.effectAllowed = "move";
1150
- options.setData && options.setData.call(_this, dataTransfer, dragEl);
1151
- }
1152
- on(document, "drop", _this);
1153
- css(dragEl, "transform", "translateZ(0)");
1154
- }
1155
- awaitingDragStarted = true;
1156
- _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
1157
- on(document, "selectstart", _this);
1158
- moved = true;
1159
- window.getSelection().removeAllRanges();
1160
- if (Safari) css(document.body, "user-select", "none");
1161
- },
1162
- _onDragOver: function _onDragOver(evt) {
1163
- 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;
1164
- if (_silent) return;
1165
- function dragOverEvent(name, extra) {
1166
- pluginEvent(name, _this, _objectSpread2({
1167
- evt,
1168
- isOwner,
1169
- axis: vertical ? "vertical" : "horizontal",
1170
- revert,
1171
- dragRect,
1172
- targetRect,
1173
- canSort,
1174
- fromSortable,
1175
- target,
1176
- completed,
1177
- onMove: function onMove(target, after) {
1178
- return _onMove(rootEl, el, dragEl, dragRect, target, getRect(target), evt, after);
1179
- },
1180
- changed
1181
- }, extra));
1182
- }
1183
- function capture() {
1184
- dragOverEvent("dragOverAnimationCapture");
1185
- _this.captureAnimationState();
1186
- if (_this !== fromSortable) fromSortable.captureAnimationState();
1187
- }
1188
- function completed(insertion) {
1189
- dragOverEvent("dragOverCompleted", { insertion });
1190
- if (insertion) {
1191
- if (isOwner) activeSortable._hideClone();
1192
- else activeSortable._showClone(_this);
1193
- if (_this !== fromSortable) {
1194
- toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);
1195
- toggleClass(dragEl, options.ghostClass, true);
1196
- }
1197
- if (putSortable !== _this && _this !== Sortable.active) putSortable = _this;
1198
- else if (_this === Sortable.active && putSortable) putSortable = null;
1199
- if (fromSortable === _this) _this._ignoreWhileAnimating = target;
1200
- _this.animateAll(function() {
1201
- dragOverEvent("dragOverAnimationComplete");
1202
- _this._ignoreWhileAnimating = null;
1203
- });
1204
- if (_this !== fromSortable) {
1205
- fromSortable.animateAll();
1206
- fromSortable._ignoreWhileAnimating = null;
1207
- }
1208
- }
1209
- if (target === dragEl && !dragEl.animated || target === el && !target.animated) lastTarget = null;
1210
- if (!options.dragoverBubble && !evt.rootEl && target !== document) {
1211
- dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
1212
- !insertion && nearestEmptyInsertDetectEvent(evt);
1213
- }
1214
- !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();
1215
- return completedFired = true;
1216
- }
1217
- function changed() {
1218
- newIndex = index(dragEl);
1219
- newDraggableIndex = index(dragEl, options.draggable);
1220
- _dispatchEvent({
1221
- sortable: _this,
1222
- name: "change",
1223
- toEl: el,
1224
- newIndex,
1225
- newDraggableIndex,
1226
- originalEvent: evt
1227
- });
1228
- }
1229
- if (evt.preventDefault !== void 0) evt.cancelable && evt.preventDefault();
1230
- target = closest(target, options.draggable, el, true);
1231
- dragOverEvent("dragOver");
1232
- if (Sortable.eventCanceled) return completedFired;
1233
- if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) return completed(false);
1234
- ignoreNextClick = false;
1235
- 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))) {
1236
- vertical = this._getDirection(evt, target) === "vertical";
1237
- dragRect = getRect(dragEl);
1238
- dragOverEvent("dragOverValid");
1239
- if (Sortable.eventCanceled) return completedFired;
1240
- if (revert) {
1241
- parentEl = rootEl;
1242
- capture();
1243
- this._hideClone();
1244
- dragOverEvent("revert");
1245
- if (!Sortable.eventCanceled) {
1246
- if (nextEl) rootEl.insertBefore(dragEl, nextEl);
1247
- else rootEl.appendChild(dragEl);
1248
- }
1249
- return completed(true);
1250
- }
1251
- var elLastChild = lastChild(el, options.draggable);
1252
- if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {
1253
- if (elLastChild === dragEl) return completed(false);
1254
- if (elLastChild && el === evt.target) target = elLastChild;
1255
- if (target) targetRect = getRect(target);
1256
- if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
1257
- capture();
1258
- if (elLastChild && elLastChild.nextSibling) el.insertBefore(dragEl, elLastChild.nextSibling);
1259
- else el.appendChild(dragEl);
1260
- parentEl = el;
1261
- changed();
1262
- return completed(true);
1263
- }
1264
- } else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {
1265
- var firstChild = getChild(el, 0, options, true);
1266
- if (firstChild === dragEl) return completed(false);
1267
- target = firstChild;
1268
- targetRect = getRect(target);
1269
- if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {
1270
- capture();
1271
- el.insertBefore(dragEl, firstChild);
1272
- parentEl = el;
1273
- changed();
1274
- return completed(true);
1275
- }
1276
- } else if (target.parentNode === el) {
1277
- targetRect = getRect(target);
1278
- 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;
1279
- if (lastTarget !== target) {
1280
- targetBeforeFirstSwap = targetRect[side1];
1281
- pastFirstInvertThresh = false;
1282
- isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;
1283
- }
1284
- direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);
1285
- var sibling;
1286
- if (direction !== 0) {
1287
- var dragIndex = index(dragEl);
1288
- do {
1289
- dragIndex -= direction;
1290
- sibling = parentEl.children[dragIndex];
1291
- } while (sibling && (css(sibling, "display") === "none" || sibling === ghostEl));
1292
- }
1293
- if (direction === 0 || sibling === target) return completed(false);
1294
- lastTarget = target;
1295
- lastDirection = direction;
1296
- var nextSibling = target.nextElementSibling, after = false;
1297
- after = direction === 1;
1298
- var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);
1299
- if (moveVector !== false) {
1300
- if (moveVector === 1 || moveVector === -1) after = moveVector === 1;
1301
- _silent = true;
1302
- setTimeout(_unsilent, 30);
1303
- capture();
1304
- if (after && !nextSibling) el.appendChild(dragEl);
1305
- else target.parentNode.insertBefore(dragEl, after ? nextSibling : target);
1306
- if (scrolledPastTop) scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);
1307
- parentEl = dragEl.parentNode;
1308
- if (targetBeforeFirstSwap !== void 0 && !isCircumstantialInvert) targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);
1309
- changed();
1310
- return completed(true);
1311
- }
1312
- }
1313
- if (el.contains(dragEl)) return completed(false);
1314
- }
1315
- return false;
1316
- },
1317
- _ignoreWhileAnimating: null,
1318
- _offMoveEvents: function _offMoveEvents() {
1319
- off(document, "mousemove", this._onTouchMove);
1320
- off(document, "touchmove", this._onTouchMove);
1321
- off(document, "pointermove", this._onTouchMove);
1322
- off(document, "dragover", nearestEmptyInsertDetectEvent);
1323
- off(document, "mousemove", nearestEmptyInsertDetectEvent);
1324
- off(document, "touchmove", nearestEmptyInsertDetectEvent);
1325
- },
1326
- _offUpEvents: function _offUpEvents() {
1327
- var ownerDocument = this.el.ownerDocument;
1328
- off(ownerDocument, "mouseup", this._onDrop);
1329
- off(ownerDocument, "touchend", this._onDrop);
1330
- off(ownerDocument, "pointerup", this._onDrop);
1331
- off(ownerDocument, "pointercancel", this._onDrop);
1332
- off(ownerDocument, "touchcancel", this._onDrop);
1333
- off(document, "selectstart", this);
1334
- },
1335
- _onDrop: function _onDrop(evt) {
1336
- var el = this.el, options = this.options;
1337
- newIndex = index(dragEl);
1338
- newDraggableIndex = index(dragEl, options.draggable);
1339
- pluginEvent("drop", this, { evt });
1340
- parentEl = dragEl && dragEl.parentNode;
1341
- newIndex = index(dragEl);
1342
- newDraggableIndex = index(dragEl, options.draggable);
1343
- if (Sortable.eventCanceled) {
1344
- this._nulling();
1345
- return;
1346
- }
1347
- awaitingDragStarted = false;
1348
- isCircumstantialInvert = false;
1349
- pastFirstInvertThresh = false;
1350
- clearInterval(this._loopId);
1351
- clearTimeout(this._dragStartTimer);
1352
- _cancelNextTick(this.cloneId);
1353
- _cancelNextTick(this._dragStartId);
1354
- if (this.nativeDraggable) {
1355
- off(document, "drop", this);
1356
- off(el, "dragstart", this._onDragStart);
1357
- }
1358
- this._offMoveEvents();
1359
- this._offUpEvents();
1360
- if (Safari) css(document.body, "user-select", "");
1361
- css(dragEl, "transform", "");
1362
- if (evt) {
1363
- if (moved) {
1364
- evt.cancelable && evt.preventDefault();
1365
- !options.dropBubble && evt.stopPropagation();
1366
- }
1367
- ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);
1368
- if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== "clone") cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);
1369
- if (dragEl) {
1370
- if (this.nativeDraggable) off(dragEl, "dragend", this);
1371
- _disableDraggable(dragEl);
1372
- dragEl.style["will-change"] = "";
1373
- if (moved && !awaitingDragStarted) toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);
1374
- toggleClass(dragEl, this.options.chosenClass, false);
1375
- _dispatchEvent({
1376
- sortable: this,
1377
- name: "unchoose",
1378
- toEl: parentEl,
1379
- newIndex: null,
1380
- newDraggableIndex: null,
1381
- originalEvent: evt
1382
- });
1383
- if (rootEl !== parentEl) {
1384
- if (newIndex >= 0) {
1385
- _dispatchEvent({
1386
- rootEl: parentEl,
1387
- name: "add",
1388
- toEl: parentEl,
1389
- fromEl: rootEl,
1390
- originalEvent: evt
1391
- });
1392
- _dispatchEvent({
1393
- sortable: this,
1394
- name: "remove",
1395
- toEl: parentEl,
1396
- originalEvent: evt
1397
- });
1398
- _dispatchEvent({
1399
- rootEl: parentEl,
1400
- name: "sort",
1401
- toEl: parentEl,
1402
- fromEl: rootEl,
1403
- originalEvent: evt
1404
- });
1405
- _dispatchEvent({
1406
- sortable: this,
1407
- name: "sort",
1408
- toEl: parentEl,
1409
- originalEvent: evt
1410
- });
1411
- }
1412
- putSortable && putSortable.save();
1413
- } else if (newIndex !== oldIndex) {
1414
- if (newIndex >= 0) {
1415
- _dispatchEvent({
1416
- sortable: this,
1417
- name: "update",
1418
- toEl: parentEl,
1419
- originalEvent: evt
1420
- });
1421
- _dispatchEvent({
1422
- sortable: this,
1423
- name: "sort",
1424
- toEl: parentEl,
1425
- originalEvent: evt
1426
- });
1427
- }
1428
- }
1429
- if (Sortable.active) {
1430
- if (newIndex == null || newIndex === -1) {
1431
- newIndex = oldIndex;
1432
- newDraggableIndex = oldDraggableIndex;
1433
- }
1434
- _dispatchEvent({
1435
- sortable: this,
1436
- name: "end",
1437
- toEl: parentEl,
1438
- originalEvent: evt
1439
- });
1440
- this.save();
1441
- }
1442
- }
1443
- }
1444
- this._nulling();
1445
- },
1446
- _nulling: function _nulling() {
1447
- pluginEvent("nulling", this);
1448
- 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;
1449
- var el = this.el;
1450
- savedInputChecked.forEach(function(checkEl) {
1451
- if (el.contains(checkEl)) checkEl.checked = true;
1452
- });
1453
- savedInputChecked.length = lastDx = lastDy = 0;
1454
- },
1455
- handleEvent: function handleEvent(evt) {
1456
- switch (evt.type) {
1457
- case "drop":
1458
- case "dragend":
1459
- this._onDrop(evt);
1460
- break;
1461
- case "dragenter":
1462
- case "dragover":
1463
- if (dragEl) {
1464
- this._onDragOver(evt);
1465
- _globalDragOver(evt);
1466
- }
1467
- break;
1468
- case "selectstart": evt.preventDefault();
1469
- }
1470
- },
1471
- /**
1472
- * Serializes the item into an array of string.
1473
- * @returns {String[]}
1474
- */
1475
- toArray: function toArray() {
1476
- var order = [], el, children = this.el.children, i = 0, n = children.length, options = this.options;
1477
- for (; i < n; i++) {
1478
- el = children[i];
1479
- if (closest(el, options.draggable, this.el, false)) order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));
1480
- }
1481
- return order;
1482
- },
1483
- /**
1484
- * Sorts the elements according to the array.
1485
- * @param {String[]} order order of the items
1486
- */
1487
- sort: function sort(order, useAnimation) {
1488
- var items = {}, rootEl = this.el;
1489
- this.toArray().forEach(function(id, i) {
1490
- var el = rootEl.children[i];
1491
- if (closest(el, this.options.draggable, rootEl, false)) items[id] = el;
1492
- }, this);
1493
- useAnimation && this.captureAnimationState();
1494
- order.forEach(function(id) {
1495
- if (items[id]) {
1496
- rootEl.removeChild(items[id]);
1497
- rootEl.appendChild(items[id]);
1498
- }
1499
- });
1500
- useAnimation && this.animateAll();
1501
- },
1502
- /**
1503
- * Save the current sorting
1504
- */
1505
- save: function save() {
1506
- var store = this.options.store;
1507
- store && store.set && store.set(this);
1508
- },
1509
- /**
1510
- * 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.
1511
- * @param {HTMLElement} el
1512
- * @param {String} [selector] default: `options.draggable`
1513
- * @returns {HTMLElement|null}
1514
- */
1515
- closest: function closest$1(el, selector) {
1516
- return closest(el, selector || this.options.draggable, this.el, false);
1517
- },
1518
- /**
1519
- * Set/get option
1520
- * @param {string} name
1521
- * @param {*} [value]
1522
- * @returns {*}
1523
- */
1524
- option: function option(name, value) {
1525
- var options = this.options;
1526
- if (value === void 0) return options[name];
1527
- else {
1528
- var modifiedValue = PluginManager.modifyOption(this, name, value);
1529
- if (typeof modifiedValue !== "undefined") options[name] = modifiedValue;
1530
- else options[name] = value;
1531
- if (name === "group") _prepareGroup(options);
1532
- }
1533
- },
1534
- /**
1535
- * Destroy
1536
- */
1537
- destroy: function destroy() {
1538
- pluginEvent("destroy", this);
1539
- var el = this.el;
1540
- el[expando] = null;
1541
- off(el, "mousedown", this._onTapStart);
1542
- off(el, "touchstart", this._onTapStart);
1543
- off(el, "pointerdown", this._onTapStart);
1544
- if (this.nativeDraggable) {
1545
- off(el, "dragover", this);
1546
- off(el, "dragenter", this);
1547
- }
1548
- Array.prototype.forEach.call(el.querySelectorAll("[draggable]"), function(el) {
1549
- el.removeAttribute("draggable");
1550
- });
1551
- this._onDrop();
1552
- this._disableDelayedDragEvents();
1553
- sortables.splice(sortables.indexOf(this.el), 1);
1554
- this.el = el = null;
1555
- },
1556
- _hideClone: function _hideClone() {
1557
- if (!cloneHidden) {
1558
- pluginEvent("hideClone", this);
1559
- if (Sortable.eventCanceled) return;
1560
- css(cloneEl, "display", "none");
1561
- if (this.options.removeCloneOnHide && cloneEl.parentNode) cloneEl.parentNode.removeChild(cloneEl);
1562
- cloneHidden = true;
1563
- }
1564
- },
1565
- _showClone: function _showClone(putSortable) {
1566
- if (putSortable.lastPutMode !== "clone") {
1567
- this._hideClone();
1568
- return;
1569
- }
1570
- if (cloneHidden) {
1571
- pluginEvent("showClone", this);
1572
- if (Sortable.eventCanceled) return;
1573
- if (dragEl.parentNode == rootEl && !this.options.group.revertClone) rootEl.insertBefore(cloneEl, dragEl);
1574
- else if (nextEl) rootEl.insertBefore(cloneEl, nextEl);
1575
- else rootEl.appendChild(cloneEl);
1576
- if (this.options.group.revertClone) this.animate(dragEl, cloneEl);
1577
- css(cloneEl, "display", "");
1578
- cloneHidden = false;
1579
- }
1580
- }
1581
- });
1582
- function _globalDragOver(evt) {
1583
- if (evt.dataTransfer) evt.dataTransfer.dropEffect = "move";
1584
- evt.cancelable && evt.preventDefault();
1585
- }
1586
- function _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {
1587
- var evt, sortable = fromEl[expando], onMoveFn = sortable.options.onMove, retVal;
1588
- if (window.CustomEvent && !IE11OrLess && !Edge) evt = new CustomEvent("move", {
1589
- bubbles: true,
1590
- cancelable: true
1591
- });
1592
- else {
1593
- evt = document.createEvent("Event");
1594
- evt.initEvent("move", true, true);
1595
- }
1596
- evt.to = toEl;
1597
- evt.from = fromEl;
1598
- evt.dragged = dragEl;
1599
- evt.draggedRect = dragRect;
1600
- evt.related = targetEl || toEl;
1601
- evt.relatedRect = targetRect || getRect(toEl);
1602
- evt.willInsertAfter = willInsertAfter;
1603
- evt.originalEvent = originalEvent;
1604
- fromEl.dispatchEvent(evt);
1605
- if (onMoveFn) retVal = onMoveFn.call(sortable, evt, originalEvent);
1606
- return retVal;
1607
- }
1608
- function _disableDraggable(el) {
1609
- el.draggable = false;
1610
- }
1611
- function _unsilent() {
1612
- _silent = false;
1613
- }
1614
- function _ghostIsFirst(evt, vertical, sortable) {
1615
- var firstElRect = getRect(getChild(sortable.el, 0, sortable.options, true));
1616
- var childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl);
1617
- var spacer = 10;
1618
- 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;
1619
- }
1620
- function _ghostIsLast(evt, vertical, sortable) {
1621
- var lastElRect = getRect(lastChild(sortable.el, sortable.options.draggable));
1622
- var childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl);
1623
- var spacer = 10;
1624
- 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;
1625
- }
1626
- function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {
1627
- 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;
1628
- if (!invertSwap) {
1629
- if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {
1630
- if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) pastFirstInvertThresh = true;
1631
- if (!pastFirstInvertThresh) {
1632
- if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance : mouseOnAxis > targetS2 - targetMoveDistance) return -lastDirection;
1633
- } else invert = true;
1634
- } else if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) return _getInsertDirection(target);
1635
- }
1636
- invert = invert || invertSwap;
1637
- if (invert) {
1638
- if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;
1639
- }
1640
- return 0;
1641
- }
1642
- /**
1643
- * Gets the direction dragEl must be swapped relative to target in order to make it
1644
- * seem that dragEl has been "inserted" into that element's position
1645
- * @param {HTMLElement} target The target whose position dragEl is being inserted at
1646
- * @return {Number} Direction dragEl must be swapped
1647
- */
1648
- function _getInsertDirection(target) {
1649
- if (index(dragEl) < index(target)) return 1;
1650
- else return -1;
1651
- }
1652
- /**
1653
- * Generate id
1654
- * @param {HTMLElement} el
1655
- * @returns {String}
1656
- * @private
1657
- */
1658
- function _generateId(el) {
1659
- var str = el.tagName + el.className + el.src + el.href + el.textContent, i = str.length, sum = 0;
1660
- while (i--) sum += str.charCodeAt(i);
1661
- return sum.toString(36);
1662
- }
1663
- function _saveInputCheckedState(root) {
1664
- savedInputChecked.length = 0;
1665
- var inputs = root.getElementsByTagName("input");
1666
- var idx = inputs.length;
1667
- while (idx--) {
1668
- var el = inputs[idx];
1669
- el.checked && savedInputChecked.push(el);
1670
- }
1671
- }
1672
- function _nextTick(fn) {
1673
- return setTimeout(fn, 0);
1674
- }
1675
- function _cancelNextTick(id) {
1676
- return clearTimeout(id);
1677
- }
1678
- if (documentExists) on(document, "touchmove", function(evt) {
1679
- if ((Sortable.active || awaitingDragStarted) && evt.cancelable) evt.preventDefault();
1680
- });
1681
- Sortable.utils = {
1682
- on,
1683
- off,
1684
- css,
1685
- find,
1686
- is: function is(el, selector) {
1687
- return !!closest(el, selector, el, false);
1688
- },
1689
- extend,
1690
- throttle,
1691
- closest,
1692
- toggleClass,
1693
- clone,
1694
- index,
1695
- nextTick: _nextTick,
1696
- cancelNextTick: _cancelNextTick,
1697
- detectDirection: _detectDirection,
1698
- getChild,
1699
- expando
1700
- };
1701
- /**
1702
- * Get the Sortable instance of an element
1703
- * @param {HTMLElement} element The element
1704
- * @return {Sortable|undefined} The instance of Sortable
1705
- */
1706
- Sortable.get = function(element) {
1707
- return element[expando];
1708
- };
1709
- /**
1710
- * Mount a plugin to Sortable
1711
- * @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
1712
- */
1713
- Sortable.mount = function() {
1714
- for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) plugins[_key] = arguments[_key];
1715
- if (plugins[0].constructor === Array) plugins = plugins[0];
1716
- plugins.forEach(function(plugin) {
1717
- if (!plugin.prototype || !plugin.prototype.constructor) throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(plugin));
1718
- if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);
1719
- PluginManager.mount(plugin);
1720
- });
1721
- };
1722
- /**
1723
- * Create sortable instance
1724
- * @param {HTMLElement} el
1725
- * @param {Object} [options]
1726
- */
1727
- Sortable.create = function(el, options) {
1728
- return new Sortable(el, options);
1729
- };
1730
- Sortable.version = version;
1731
- var autoScrolls = [];
1732
- var scrollEl;
1733
- var scrollRootEl;
1734
- var scrolling = false;
1735
- var lastAutoScrollX;
1736
- var lastAutoScrollY;
1737
- var touchEvt$1;
1738
- var pointerElemChangedInterval;
1739
- function AutoScrollPlugin() {
1740
- function AutoScroll() {
1741
- this.defaults = {
1742
- scroll: true,
1743
- forceAutoScrollFallback: false,
1744
- scrollSensitivity: 30,
1745
- scrollSpeed: 10,
1746
- bubbleScroll: true
1747
- };
1748
- for (var fn in this) if (fn.charAt(0) === "_" && typeof this[fn] === "function") this[fn] = this[fn].bind(this);
1749
- }
1750
- AutoScroll.prototype = {
1751
- dragStarted: function dragStarted(_ref) {
1752
- var originalEvent = _ref.originalEvent;
1753
- if (this.sortable.nativeDraggable) on(document, "dragover", this._handleAutoScroll);
1754
- else if (this.options.supportPointer) on(document, "pointermove", this._handleFallbackAutoScroll);
1755
- else if (originalEvent.touches) on(document, "touchmove", this._handleFallbackAutoScroll);
1756
- else on(document, "mousemove", this._handleFallbackAutoScroll);
1757
- },
1758
- dragOverCompleted: function dragOverCompleted(_ref2) {
1759
- var originalEvent = _ref2.originalEvent;
1760
- if (!this.options.dragOverBubble && !originalEvent.rootEl) this._handleAutoScroll(originalEvent);
1761
- },
1762
- drop: function drop() {
1763
- if (this.sortable.nativeDraggable) off(document, "dragover", this._handleAutoScroll);
1764
- else {
1765
- off(document, "pointermove", this._handleFallbackAutoScroll);
1766
- off(document, "touchmove", this._handleFallbackAutoScroll);
1767
- off(document, "mousemove", this._handleFallbackAutoScroll);
1768
- }
1769
- clearPointerElemChangedInterval();
1770
- clearAutoScrolls();
1771
- cancelThrottle();
1772
- },
1773
- nulling: function nulling() {
1774
- touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;
1775
- autoScrolls.length = 0;
1776
- },
1777
- _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {
1778
- this._handleAutoScroll(evt, true);
1779
- },
1780
- _handleAutoScroll: function _handleAutoScroll(evt, fallback) {
1781
- var _this = this;
1782
- var x = (evt.touches ? evt.touches[0] : evt).clientX, y = (evt.touches ? evt.touches[0] : evt).clientY, elem = document.elementFromPoint(x, y);
1783
- touchEvt$1 = evt;
1784
- if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {
1785
- autoScroll(evt, this.options, elem, fallback);
1786
- var ogElemScroller = getParentAutoScrollElement(elem, true);
1787
- if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {
1788
- pointerElemChangedInterval && clearPointerElemChangedInterval();
1789
- pointerElemChangedInterval = setInterval(function() {
1790
- var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);
1791
- if (newElem !== ogElemScroller) {
1792
- ogElemScroller = newElem;
1793
- clearAutoScrolls();
1794
- }
1795
- autoScroll(evt, _this.options, newElem, fallback);
1796
- }, 10);
1797
- lastAutoScrollX = x;
1798
- lastAutoScrollY = y;
1799
- }
1800
- } else {
1801
- if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {
1802
- clearAutoScrolls();
1803
- return;
1804
- }
1805
- autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);
1806
- }
1807
- }
1808
- };
1809
- return _extends(AutoScroll, {
1810
- pluginName: "scroll",
1811
- initializeByDefault: true
1812
- });
1813
- }
1814
- function clearAutoScrolls() {
1815
- autoScrolls.forEach(function(autoScroll) {
1816
- clearInterval(autoScroll.pid);
1817
- });
1818
- autoScrolls = [];
1819
- }
1820
- function clearPointerElemChangedInterval() {
1821
- clearInterval(pointerElemChangedInterval);
1822
- }
1823
- var autoScroll = throttle(function(evt, options, rootEl, isFallback) {
1824
- if (!options.scroll) return;
1825
- 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();
1826
- var scrollThisInstance = false, scrollCustomFn;
1827
- if (scrollRootEl !== rootEl) {
1828
- scrollRootEl = rootEl;
1829
- clearAutoScrolls();
1830
- scrollEl = options.scroll;
1831
- scrollCustomFn = options.scrollFn;
1832
- if (scrollEl === true) scrollEl = getParentAutoScrollElement(rootEl, true);
1833
- }
1834
- var layersOut = 0;
1835
- var currentParent = scrollEl;
1836
- do {
1837
- 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;
1838
- if (el === winScroller) {
1839
- canScrollX = width < scrollWidth && (elCSS.overflowX === "auto" || elCSS.overflowX === "scroll" || elCSS.overflowX === "visible");
1840
- canScrollY = height < scrollHeight && (elCSS.overflowY === "auto" || elCSS.overflowY === "scroll" || elCSS.overflowY === "visible");
1841
- } else {
1842
- canScrollX = width < scrollWidth && (elCSS.overflowX === "auto" || elCSS.overflowX === "scroll");
1843
- canScrollY = height < scrollHeight && (elCSS.overflowY === "auto" || elCSS.overflowY === "scroll");
1844
- }
1845
- var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);
1846
- var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);
1847
- if (!autoScrolls[layersOut]) {
1848
- for (var i = 0; i <= layersOut; i++) if (!autoScrolls[i]) autoScrolls[i] = {};
1849
- }
1850
- if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {
1851
- autoScrolls[layersOut].el = el;
1852
- autoScrolls[layersOut].vx = vx;
1853
- autoScrolls[layersOut].vy = vy;
1854
- clearInterval(autoScrolls[layersOut].pid);
1855
- if (vx != 0 || vy != 0) {
1856
- scrollThisInstance = true;
1857
- autoScrolls[layersOut].pid = setInterval(function() {
1858
- if (isFallback && this.layer === 0) Sortable.active._onTouchMove(touchEvt$1);
1859
- var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;
1860
- var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;
1861
- if (typeof scrollCustomFn === "function") {
1862
- if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== "continue") return;
1863
- }
1864
- scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);
1865
- }.bind({ layer: layersOut }), 24);
1866
- }
1867
- }
1868
- layersOut++;
1869
- } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));
1870
- scrolling = scrollThisInstance;
1871
- }, 30);
1872
- var drop = function drop(_ref) {
1873
- var originalEvent = _ref.originalEvent, putSortable = _ref.putSortable, dragEl = _ref.dragEl, activeSortable = _ref.activeSortable, dispatchSortableEvent = _ref.dispatchSortableEvent, hideGhostForTarget = _ref.hideGhostForTarget, unhideGhostForTarget = _ref.unhideGhostForTarget;
1874
- if (!originalEvent) return;
1875
- var toSortable = putSortable || activeSortable;
1876
- hideGhostForTarget();
1877
- var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;
1878
- var target = document.elementFromPoint(touch.clientX, touch.clientY);
1879
- unhideGhostForTarget();
1880
- if (toSortable && !toSortable.el.contains(target)) {
1881
- dispatchSortableEvent("spill");
1882
- this.onSpill({
1883
- dragEl,
1884
- putSortable
1885
- });
1886
- }
1887
- };
1888
- function Revert() {}
1889
- Revert.prototype = {
1890
- startIndex: null,
1891
- dragStart: function dragStart(_ref2) {
1892
- var oldDraggableIndex = _ref2.oldDraggableIndex;
1893
- this.startIndex = oldDraggableIndex;
1894
- },
1895
- onSpill: function onSpill(_ref3) {
1896
- var dragEl = _ref3.dragEl, putSortable = _ref3.putSortable;
1897
- this.sortable.captureAnimationState();
1898
- if (putSortable) putSortable.captureAnimationState();
1899
- var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);
1900
- if (nextSibling) this.sortable.el.insertBefore(dragEl, nextSibling);
1901
- else this.sortable.el.appendChild(dragEl);
1902
- this.sortable.animateAll();
1903
- if (putSortable) putSortable.animateAll();
1904
- },
1905
- drop
1906
- };
1907
- _extends(Revert, { pluginName: "revertOnSpill" });
1908
- function Remove() {}
1909
- Remove.prototype = {
1910
- onSpill: function onSpill(_ref4) {
1911
- var dragEl = _ref4.dragEl;
1912
- var parentSortable = _ref4.putSortable || this.sortable;
1913
- parentSortable.captureAnimationState();
1914
- dragEl.parentNode && dragEl.parentNode.removeChild(dragEl);
1915
- parentSortable.animateAll();
1916
- },
1917
- drop
1918
- };
1919
- _extends(Remove, { pluginName: "removeOnSpill" });
1920
- Sortable.mount(new AutoScrollPlugin());
1921
- Sortable.mount(Remove, Revert);
1922
- //#endregion
1923
- export { Sortable, Sortable as default };
1924
-
1925
- //# sourceMappingURL=sortable.esm.mjs.map