@pine-ds/core 3.26.3 → 3.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1131) hide show
  1. package/components/attributes.js +1 -85
  2. package/components/closest.js +1 -12
  3. package/components/floating-ui.dom.js +1 -1631
  4. package/components/form.js +1 -62
  5. package/components/index.d.ts +1 -0
  6. package/components/index.js +1 -54
  7. package/components/index2.js +1 -20
  8. package/components/mock-pds-modal.js +1 -119
  9. package/components/pds-accordion.js +1 -74
  10. package/components/pds-alert.js +1 -115
  11. package/components/pds-avatar.js +1 -141
  12. package/components/pds-box.js +1 -9
  13. package/components/pds-box2.js +1 -283
  14. package/components/pds-button.js +1 -9
  15. package/components/pds-button2.js +1 -250
  16. package/components/pds-checkbox.js +1 -9
  17. package/components/pds-checkbox2.js +1 -150
  18. package/components/pds-chip.js +1 -9
  19. package/components/pds-chip2.js +1 -167
  20. package/components/pds-combobox.js +2 -2958
  21. package/components/pds-container.js +1 -61
  22. package/components/pds-copytext.js +1 -154
  23. package/components/pds-divider.js +1 -58
  24. package/components/pds-dropdown-menu-item.js +1 -128
  25. package/components/pds-dropdown-menu-separator.js +1 -46
  26. package/components/pds-dropdown-menu.js +1 -349
  27. package/components/pds-filter.js +1 -524
  28. package/components/pds-filters.js +1 -40
  29. package/components/pds-icon.js +1 -9
  30. package/components/pds-icon2.js +1 -601
  31. package/components/pds-image.js +1 -61
  32. package/components/pds-input.js +1 -372
  33. package/components/pds-link.js +1 -9
  34. package/components/pds-link2.js +1 -93
  35. package/components/pds-loader.js +1 -9
  36. package/components/pds-loader2.js +1 -79
  37. package/components/pds-modal-content.js +1 -214
  38. package/components/pds-modal-footer.js +1 -37
  39. package/components/pds-modal-header.js +1 -37
  40. package/components/pds-modal.js +1 -291
  41. package/components/pds-multiselect.js +1 -1087
  42. package/components/pds-popover.js +1 -602
  43. package/components/pds-progress.js +1 -60
  44. package/components/pds-property.js +1 -57
  45. package/components/pds-radio-group.js +1 -211
  46. package/components/pds-radio.js +1 -138
  47. package/components/pds-row.js +1 -99
  48. package/components/pds-select.js +1 -291
  49. package/components/pds-sortable-item.js +1 -67
  50. package/components/pds-sortable.js +2 -2747
  51. package/components/pds-switch.js +1 -147
  52. package/components/pds-tab.js +1 -71
  53. package/components/pds-table-body.js +1 -38
  54. package/components/pds-table-cell.js +1 -9
  55. package/components/pds-table-cell2.js +1 -169
  56. package/components/pds-table-head-cell.js +1 -9
  57. package/components/pds-table-head-cell2.js +1 -254
  58. package/components/pds-table-head.js +1 -102
  59. package/components/pds-table-row.js +1 -197
  60. package/components/pds-table.js +1 -291
  61. package/components/pds-tabpanel.js +1 -48
  62. package/components/pds-tabs.js +1 -126
  63. package/components/pds-text.js +1 -9
  64. package/components/pds-text2.js +1 -110
  65. package/components/pds-textarea.js +1 -376
  66. package/components/pds-toast.js +1 -139
  67. package/components/pds-tooltip.js +1 -362
  68. package/components/scroll.js +1 -78
  69. package/components/truncation-tooltip.js +1 -247
  70. package/components/utils.js +1 -74
  71. package/dist/cjs/attributes-oNMnBEnP.js +0 -3
  72. package/dist/cjs/closest-BZXvuB_Y.js +0 -3
  73. package/dist/cjs/floating-ui.dom-BZk7Blsu.js +0 -3
  74. package/dist/cjs/form-CpM5Z8q7.js +0 -3
  75. package/dist/cjs/{index-BYnQkA7p.js → index-DBhfI2Jq.js} +568 -388
  76. package/dist/cjs/index-DGBoDsAL.js +0 -3
  77. package/dist/cjs/index.cjs.js +0 -1
  78. package/dist/cjs/loader.cjs.js +2 -3
  79. package/dist/cjs/mock-pds-modal.cjs.entry.js +3 -4
  80. package/dist/cjs/pds-accordion.cjs.entry.js +7 -6
  81. package/dist/cjs/pds-alert.cjs.entry.js +4 -5
  82. package/dist/cjs/pds-avatar.cjs.entry.js +3 -4
  83. package/dist/cjs/pds-box.cjs.entry.js +3 -4
  84. package/dist/cjs/pds-button.cjs.entry.js +3 -4
  85. package/dist/cjs/pds-checkbox.cjs.entry.js +9 -6
  86. package/dist/cjs/pds-chip.cjs.entry.js +4 -5
  87. package/dist/cjs/pds-combobox.cjs.entry.js +18 -9
  88. package/dist/cjs/pds-container.cjs.entry.js +3 -4
  89. package/dist/cjs/pds-copytext.cjs.entry.js +10 -7
  90. package/dist/cjs/pds-divider.cjs.entry.js +3 -4
  91. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +3 -4
  92. package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +3 -4
  93. package/dist/cjs/pds-dropdown-menu.cjs.entry.js +3 -4
  94. package/dist/cjs/pds-filter.cjs.entry.js +3 -4
  95. package/dist/cjs/pds-filters.cjs.entry.js +3 -4
  96. package/dist/cjs/pds-icon.cjs.entry.js +18 -9
  97. package/dist/cjs/pds-image.cjs.entry.js +3 -4
  98. package/dist/cjs/pds-input.cjs.entry.js +12 -9
  99. package/dist/cjs/pds-link.cjs.entry.js +5 -6
  100. package/dist/cjs/pds-loader.cjs.entry.js +3 -4
  101. package/dist/cjs/pds-modal-content.cjs.entry.js +3 -4
  102. package/dist/cjs/pds-modal-footer.cjs.entry.js +3 -4
  103. package/dist/cjs/pds-modal-header.cjs.entry.js +3 -4
  104. package/dist/cjs/pds-modal.cjs.entry.js +6 -5
  105. package/dist/cjs/pds-multiselect.cjs.entry.js +15 -8
  106. package/dist/cjs/pds-popover.cjs.entry.js +5 -6
  107. package/dist/cjs/pds-progress.cjs.entry.js +3 -4
  108. package/dist/cjs/pds-property.cjs.entry.js +3 -4
  109. package/dist/cjs/pds-radio-group.cjs.entry.js +15 -8
  110. package/dist/cjs/pds-radio.cjs.entry.js +4 -5
  111. package/dist/cjs/pds-row.cjs.entry.js +3 -4
  112. package/dist/cjs/pds-select.cjs.entry.js +13 -10
  113. package/dist/cjs/pds-sortable-item.cjs.entry.js +4 -5
  114. package/dist/cjs/pds-sortable.cjs.entry.js +6 -5
  115. package/dist/cjs/pds-switch.cjs.entry.js +7 -6
  116. package/dist/cjs/pds-tab.cjs.entry.js +3 -4
  117. package/dist/cjs/pds-table-body.cjs.entry.js +3 -4
  118. package/dist/cjs/pds-table-cell.cjs.entry.js +6 -5
  119. package/dist/cjs/pds-table-head-cell.cjs.entry.js +3 -4
  120. package/dist/cjs/pds-table-head.cjs.entry.js +3 -4
  121. package/dist/cjs/pds-table-row.cjs.entry.js +3 -4
  122. package/dist/cjs/pds-table.cjs.entry.js +3 -4
  123. package/dist/cjs/pds-tabpanel.cjs.entry.js +3 -4
  124. package/dist/cjs/pds-tabs.cjs.entry.js +3 -4
  125. package/dist/cjs/pds-text.cjs.entry.js +46 -6
  126. package/dist/cjs/pds-textarea.cjs.entry.js +14 -9
  127. package/dist/cjs/pds-toast.cjs.entry.js +47 -10
  128. package/dist/cjs/pds-tooltip.cjs.entry.js +6 -5
  129. package/dist/cjs/pine-core.cjs.js +3 -4
  130. package/dist/cjs/scroll-2XcoE_6Q.js +0 -3
  131. package/dist/cjs/truncation-tooltip-CVzAha5B.js +0 -3
  132. package/dist/cjs/utils-7jx8T2mW.js +0 -3
  133. package/dist/collection/collection-manifest.json +3 -2
  134. package/dist/collection/components/_internal/pds-label/pds-label.js +0 -1
  135. package/dist/collection/components/pds-accordion/pds-accordion.js +1 -2
  136. package/dist/collection/components/pds-alert/pds-alert.js +0 -1
  137. package/dist/collection/components/pds-avatar/pds-avatar.js +0 -1
  138. package/dist/collection/components/pds-box/pds-box.js +206 -134
  139. package/dist/collection/components/pds-button/pds-button.css +74 -74
  140. package/dist/collection/components/pds-button/pds-button.js +2 -2
  141. package/dist/collection/components/pds-checkbox/checkbox-interface.js +0 -1
  142. package/dist/collection/components/pds-checkbox/pds-checkbox.js +4 -3
  143. package/dist/collection/components/pds-chip/pds-chip.js +6 -4
  144. package/dist/collection/components/pds-combobox/combobox-interface.js +0 -1
  145. package/dist/collection/components/pds-combobox/pds-combobox.css +5 -2
  146. package/dist/collection/components/pds-combobox/pds-combobox.js +10 -6
  147. package/dist/collection/components/pds-container/pds-container.js +0 -1
  148. package/dist/collection/components/pds-copytext/pds-copytext.js +1 -2
  149. package/dist/collection/components/pds-divider/pds-divider.js +0 -1
  150. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +0 -1
  151. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +0 -1
  152. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.css +1 -1
  153. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +2 -2
  154. package/dist/collection/components/pds-filters/pds-filter/filter-interface.js +0 -1
  155. package/dist/collection/components/pds-filters/pds-filter/pds-filter.css +2 -2
  156. package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +8 -5
  157. package/dist/collection/components/pds-filters/pds-filters.js +0 -1
  158. package/dist/collection/components/pds-image/pds-image.js +0 -1
  159. package/dist/collection/components/pds-input/input-interface.js +0 -1
  160. package/dist/collection/components/pds-input/pds-input.css +1 -1
  161. package/dist/collection/components/pds-input/pds-input.js +5 -4
  162. package/dist/collection/components/pds-link/pds-link.js +154 -3
  163. package/dist/collection/components/pds-loader/pds-loader.js +0 -1
  164. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +0 -1
  165. package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +0 -1
  166. package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +0 -1
  167. package/dist/collection/components/pds-modal/pds-modal.css +1 -1
  168. package/dist/collection/components/pds-modal/pds-modal.js +0 -1
  169. package/dist/collection/components/pds-modal/test/mock-pds-modal.js +0 -1
  170. package/dist/collection/components/pds-multiselect/multiselect-interface.js +0 -1
  171. package/dist/collection/components/pds-multiselect/pds-multiselect.css +3 -2
  172. package/dist/collection/components/pds-multiselect/pds-multiselect.js +12 -7
  173. package/dist/collection/components/pds-popover/pds-popover.js +8 -6
  174. package/dist/collection/components/pds-popover/popover-interface.js +0 -1
  175. package/dist/collection/components/pds-progress/pds-progress.js +0 -1
  176. package/dist/collection/components/pds-property/pds-property.js +0 -1
  177. package/dist/collection/components/pds-radio/pds-radio.css +1 -1
  178. package/dist/collection/components/pds-radio/pds-radio.js +0 -1
  179. package/dist/collection/components/pds-radio-group/pds-radio-group.js +2 -2
  180. package/dist/collection/components/pds-radio-group/radio-group-interface.js +0 -1
  181. package/dist/collection/components/pds-row/pds-row.js +9 -7
  182. package/dist/collection/components/pds-select/pds-select.js +2 -3
  183. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -2
  184. package/dist/collection/components/pds-sortable/pds-sortable.js +2 -2
  185. package/dist/collection/components/pds-sortable/sortable-interface.js +0 -1
  186. package/dist/collection/components/pds-switch/pds-switch.js +0 -1
  187. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +0 -1
  188. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +0 -1
  189. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +0 -1
  190. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +0 -1
  191. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +0 -1
  192. package/dist/collection/components/pds-table/pds-table.css +1 -0
  193. package/dist/collection/components/pds-table/pds-table.js +0 -1
  194. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +0 -1
  195. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +0 -1
  196. package/dist/collection/components/pds-tabs/pds-tabs.js +0 -1
  197. package/dist/collection/components/pds-text/pds-text.js +31 -4
  198. package/dist/collection/components/pds-textarea/pds-textarea.js +4 -3
  199. package/dist/collection/components/pds-textarea/textarea-interface.js +0 -1
  200. package/dist/collection/components/pds-toast/pds-toast.css +2 -2
  201. package/dist/collection/components/pds-toast/pds-toast.js +41 -6
  202. package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
  203. package/dist/collection/global/pine-ui-global.js +0 -1
  204. package/dist/collection/index.js +0 -1
  205. package/dist/collection/utils/attributes.js +0 -1
  206. package/dist/collection/utils/closest.js +0 -1
  207. package/dist/collection/utils/form.js +0 -1
  208. package/dist/collection/utils/interfaces.js +0 -1
  209. package/dist/collection/utils/overlay.js +0 -1
  210. package/dist/collection/utils/scroll.js +0 -1
  211. package/dist/collection/utils/test/axe.js +9 -4
  212. package/dist/collection/utils/truncation-tooltip.js +0 -1
  213. package/dist/collection/utils/types.js +18 -2
  214. package/dist/collection/utils/utils.js +0 -1
  215. package/dist/docs.d.ts +37 -0
  216. package/dist/docs.json +2335 -1965
  217. package/dist/esm/attributes-C0M1gTKv.js +0 -3
  218. package/dist/esm/closest-DnUJodVd.js +0 -3
  219. package/dist/esm/floating-ui.dom-DDtwbwIl.js +0 -3
  220. package/dist/esm/form-C3xDZBme.js +0 -3
  221. package/dist/esm/{index-QYCDCKN2.js → index-CaRgVPt7.js} +568 -388
  222. package/dist/esm/index-D4ys0pep.js +0 -3
  223. package/dist/esm/index.js +0 -1
  224. package/dist/esm/loader.js +3 -4
  225. package/dist/esm/mock-pds-modal.entry.js +3 -4
  226. package/dist/esm/pds-accordion.entry.js +7 -6
  227. package/dist/esm/pds-alert.entry.js +4 -5
  228. package/dist/esm/pds-avatar.entry.js +3 -4
  229. package/dist/esm/pds-box.entry.js +3 -4
  230. package/dist/esm/pds-button.entry.js +3 -4
  231. package/dist/esm/pds-checkbox.entry.js +9 -6
  232. package/dist/esm/pds-chip.entry.js +4 -5
  233. package/dist/esm/pds-combobox.entry.js +18 -9
  234. package/dist/esm/pds-container.entry.js +3 -4
  235. package/dist/esm/pds-copytext.entry.js +10 -7
  236. package/dist/esm/pds-divider.entry.js +3 -4
  237. package/dist/esm/pds-dropdown-menu-item.entry.js +3 -4
  238. package/dist/esm/pds-dropdown-menu-separator.entry.js +3 -4
  239. package/dist/esm/pds-dropdown-menu.entry.js +3 -4
  240. package/dist/esm/pds-filter.entry.js +3 -4
  241. package/dist/esm/pds-filters.entry.js +3 -4
  242. package/dist/esm/pds-icon.entry.js +18 -9
  243. package/dist/esm/pds-image.entry.js +3 -4
  244. package/dist/esm/pds-input.entry.js +12 -9
  245. package/dist/esm/pds-link.entry.js +5 -6
  246. package/dist/esm/pds-loader.entry.js +3 -4
  247. package/dist/esm/pds-modal-content.entry.js +3 -4
  248. package/dist/esm/pds-modal-footer.entry.js +3 -4
  249. package/dist/esm/pds-modal-header.entry.js +3 -4
  250. package/dist/esm/pds-modal.entry.js +6 -5
  251. package/dist/esm/pds-multiselect.entry.js +15 -8
  252. package/dist/esm/pds-popover.entry.js +5 -6
  253. package/dist/esm/pds-progress.entry.js +3 -4
  254. package/dist/esm/pds-property.entry.js +3 -4
  255. package/dist/esm/pds-radio-group.entry.js +15 -8
  256. package/dist/esm/pds-radio.entry.js +4 -5
  257. package/dist/esm/pds-row.entry.js +3 -4
  258. package/dist/esm/pds-select.entry.js +13 -10
  259. package/dist/esm/pds-sortable-item.entry.js +4 -5
  260. package/dist/esm/pds-sortable.entry.js +6 -5
  261. package/dist/esm/pds-switch.entry.js +7 -6
  262. package/dist/esm/pds-tab.entry.js +3 -4
  263. package/dist/esm/pds-table-body.entry.js +3 -4
  264. package/dist/esm/pds-table-cell.entry.js +6 -5
  265. package/dist/esm/pds-table-head-cell.entry.js +3 -4
  266. package/dist/esm/pds-table-head.entry.js +3 -4
  267. package/dist/esm/pds-table-row.entry.js +3 -4
  268. package/dist/esm/pds-table.entry.js +3 -4
  269. package/dist/esm/pds-tabpanel.entry.js +3 -4
  270. package/dist/esm/pds-tabs.entry.js +3 -4
  271. package/dist/esm/pds-text.entry.js +46 -6
  272. package/dist/esm/pds-textarea.entry.js +14 -9
  273. package/dist/esm/pds-toast.entry.js +47 -10
  274. package/dist/esm/pds-tooltip.entry.js +6 -5
  275. package/dist/esm/pine-core.js +4 -5
  276. package/dist/esm/scroll-DtgUQhjl.js +0 -3
  277. package/dist/esm/truncation-tooltip-Blk4GigP.js +0 -3
  278. package/dist/esm/utils-tJa4KYNO.js +0 -3
  279. package/dist/esm-es5/attributes-C0M1gTKv.js +1 -2
  280. package/dist/esm-es5/closest-DnUJodVd.js +1 -2
  281. package/dist/esm-es5/floating-ui.dom-DDtwbwIl.js +1 -2
  282. package/dist/esm-es5/form-C3xDZBme.js +1 -2
  283. package/dist/esm-es5/index-CaRgVPt7.js +2 -0
  284. package/dist/esm-es5/index-D4ys0pep.js +1 -2
  285. package/dist/esm-es5/index.js +0 -2
  286. package/dist/esm-es5/loader.js +1 -2
  287. package/dist/esm-es5/mock-pds-modal.entry.js +1 -2
  288. package/dist/esm-es5/pds-accordion.entry.js +1 -2
  289. package/dist/esm-es5/pds-alert.entry.js +1 -2
  290. package/dist/esm-es5/pds-avatar.entry.js +1 -2
  291. package/dist/esm-es5/pds-box.entry.js +1 -2
  292. package/dist/esm-es5/pds-button.entry.js +1 -2
  293. package/dist/esm-es5/pds-checkbox.entry.js +1 -2
  294. package/dist/esm-es5/pds-chip.entry.js +1 -2
  295. package/dist/esm-es5/pds-combobox.entry.js +2 -3
  296. package/dist/esm-es5/pds-container.entry.js +1 -2
  297. package/dist/esm-es5/pds-copytext.entry.js +1 -2
  298. package/dist/esm-es5/pds-divider.entry.js +1 -2
  299. package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -2
  300. package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -2
  301. package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -2
  302. package/dist/esm-es5/pds-filter.entry.js +1 -2
  303. package/dist/esm-es5/pds-filters.entry.js +1 -2
  304. package/dist/esm-es5/pds-icon.entry.js +1 -2
  305. package/dist/esm-es5/pds-image.entry.js +1 -2
  306. package/dist/esm-es5/pds-input.entry.js +1 -2
  307. package/dist/esm-es5/pds-link.entry.js +1 -2
  308. package/dist/esm-es5/pds-loader.entry.js +1 -2
  309. package/dist/esm-es5/pds-modal-content.entry.js +1 -2
  310. package/dist/esm-es5/pds-modal-footer.entry.js +1 -2
  311. package/dist/esm-es5/pds-modal-header.entry.js +1 -2
  312. package/dist/esm-es5/pds-modal.entry.js +1 -2
  313. package/dist/esm-es5/pds-multiselect.entry.js +1 -2
  314. package/dist/esm-es5/pds-popover.entry.js +1 -2
  315. package/dist/esm-es5/pds-progress.entry.js +1 -2
  316. package/dist/esm-es5/pds-property.entry.js +1 -2
  317. package/dist/esm-es5/pds-radio-group.entry.js +1 -2
  318. package/dist/esm-es5/pds-radio.entry.js +1 -2
  319. package/dist/esm-es5/pds-row.entry.js +1 -2
  320. package/dist/esm-es5/pds-select.entry.js +1 -2
  321. package/dist/esm-es5/pds-sortable-item.entry.js +1 -2
  322. package/dist/esm-es5/pds-sortable.entry.js +2 -3
  323. package/dist/esm-es5/pds-switch.entry.js +1 -2
  324. package/dist/esm-es5/pds-tab.entry.js +1 -2
  325. package/dist/esm-es5/pds-table-body.entry.js +1 -2
  326. package/dist/esm-es5/pds-table-cell.entry.js +1 -2
  327. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -2
  328. package/dist/esm-es5/pds-table-head.entry.js +1 -2
  329. package/dist/esm-es5/pds-table-row.entry.js +1 -2
  330. package/dist/esm-es5/pds-table.entry.js +1 -2
  331. package/dist/esm-es5/pds-tabpanel.entry.js +1 -2
  332. package/dist/esm-es5/pds-tabs.entry.js +1 -2
  333. package/dist/esm-es5/pds-text.entry.js +1 -2
  334. package/dist/esm-es5/pds-textarea.entry.js +1 -2
  335. package/dist/esm-es5/pds-toast.entry.js +1 -2
  336. package/dist/esm-es5/pds-tooltip.entry.js +1 -2
  337. package/dist/esm-es5/pine-core.js +1 -2
  338. package/dist/esm-es5/scroll-DtgUQhjl.js +1 -2
  339. package/dist/esm-es5/truncation-tooltip-Blk4GigP.js +1 -2
  340. package/dist/esm-es5/utils-tJa4KYNO.js +1 -2
  341. package/dist/pine-core/index.esm.js +0 -2
  342. package/dist/pine-core/p-002c420f.system.entry.js +1 -0
  343. package/dist/pine-core/p-003f91b1.system.entry.js +1 -0
  344. package/dist/pine-core/p-006398c3.system.entry.js +1 -0
  345. package/dist/pine-core/p-01dba061.entry.js +1 -0
  346. package/dist/pine-core/p-0451fdf7.entry.js +1 -0
  347. package/dist/pine-core/p-04f8b32a.entry.js +1 -0
  348. package/dist/pine-core/p-0bf56f61.entry.js +1 -0
  349. package/dist/pine-core/p-13ec2343.entry.js +1 -0
  350. package/dist/pine-core/p-190ba1df.entry.js +1 -0
  351. package/dist/pine-core/p-1e1804ed.system.entry.js +1 -0
  352. package/dist/pine-core/p-1e3beca4.system.entry.js +1 -0
  353. package/dist/pine-core/p-20f39b93.system.entry.js +1 -0
  354. package/dist/pine-core/p-22bfa998.entry.js +1 -0
  355. package/dist/pine-core/p-27ac77c3.entry.js +1 -0
  356. package/dist/pine-core/p-2b0cb8c4.system.entry.js +1 -0
  357. package/dist/pine-core/p-334b7c30.entry.js +1 -0
  358. package/dist/pine-core/p-3876b9be.entry.js +1 -0
  359. package/dist/pine-core/p-3a1b7302.system.entry.js +1 -0
  360. package/dist/pine-core/p-3ad9bcef.system.entry.js +1 -0
  361. package/dist/pine-core/p-3ba36512.system.entry.js +1 -0
  362. package/dist/pine-core/p-3f19666c.entry.js +1 -0
  363. package/dist/pine-core/p-3fa80c5a.system.entry.js +1 -0
  364. package/dist/pine-core/p-44388b8f.system.entry.js +1 -0
  365. package/dist/pine-core/p-44f58d33.system.entry.js +1 -0
  366. package/dist/pine-core/p-46de2438.entry.js +1 -0
  367. package/dist/pine-core/p-4abec102.system.entry.js +3 -0
  368. package/dist/pine-core/p-4e49712d.entry.js +1 -0
  369. package/dist/pine-core/p-52e9ec4f.entry.js +1 -0
  370. package/dist/pine-core/p-52f7115b.entry.js +1 -0
  371. package/dist/pine-core/p-5584a56b.entry.js +1 -0
  372. package/dist/pine-core/p-568bb210.system.entry.js +1 -0
  373. package/dist/pine-core/p-571d6bef.system.entry.js +1 -0
  374. package/dist/pine-core/p-587a15ee.system.entry.js +1 -0
  375. package/dist/pine-core/p-59a5dd77.system.entry.js +1 -0
  376. package/dist/pine-core/p-59c60e5b.entry.js +1 -0
  377. package/dist/pine-core/p-5a2df1e2.entry.js +1 -0
  378. package/dist/pine-core/p-5c6c2f79.system.entry.js +1 -0
  379. package/dist/pine-core/p-618ba6d5.system.entry.js +1 -0
  380. package/dist/pine-core/p-638e9cb3.entry.js +1 -0
  381. package/dist/pine-core/p-63e0d4a5.system.entry.js +1 -0
  382. package/dist/pine-core/p-65fb166c.system.entry.js +1 -0
  383. package/dist/pine-core/p-68121613.system.entry.js +1 -0
  384. package/dist/pine-core/p-6a2373d0.system.entry.js +1 -0
  385. package/dist/pine-core/p-6c5aacad.entry.js +1 -0
  386. package/dist/pine-core/p-71ca8845.system.entry.js +1 -0
  387. package/dist/pine-core/p-7247fb4f.entry.js +2 -0
  388. package/dist/pine-core/p-73b81009.entry.js +1 -0
  389. package/dist/pine-core/p-73dd2a2b.entry.js +1 -0
  390. package/dist/pine-core/p-74e06c8d.system.entry.js +1 -0
  391. package/dist/pine-core/p-7520a715.system.entry.js +1 -0
  392. package/dist/pine-core/p-7766e970.entry.js +1 -0
  393. package/dist/pine-core/p-7874fe2b.entry.js +1 -0
  394. package/dist/pine-core/p-791d357a.entry.js +1 -0
  395. package/dist/pine-core/p-7a4da839.entry.js +1 -0
  396. package/dist/pine-core/p-7aca41d9.system.entry.js +1 -0
  397. package/dist/pine-core/p-7b71f1bf.system.entry.js +1 -0
  398. package/dist/pine-core/p-7b954dbf.entry.js +1 -0
  399. package/dist/pine-core/p-8065c732.entry.js +1 -0
  400. package/dist/pine-core/p-829c52dc.entry.js +1 -0
  401. package/dist/pine-core/p-835d9f18.system.entry.js +1 -0
  402. package/dist/pine-core/p-83eb33d4.entry.js +1 -0
  403. package/dist/pine-core/p-855dfc31.system.entry.js +1 -0
  404. package/dist/pine-core/p-889fce8a.entry.js +7 -0
  405. package/dist/pine-core/p-974bf0c5.entry.js +1 -0
  406. package/dist/pine-core/p-9865431f.system.entry.js +1 -0
  407. package/dist/pine-core/p-B1u-QvFn.system.js +1 -2
  408. package/dist/pine-core/p-BG6uGRQj.system.js +1 -2
  409. package/dist/pine-core/p-BNSGedhN.js +1 -2
  410. package/dist/pine-core/p-BhQhw0S3.system.js +1 -2
  411. package/dist/pine-core/p-BrLs99ML.system.js +1 -2
  412. package/dist/pine-core/p-C0M1gTKv.js +1 -2
  413. package/dist/pine-core/p-C3xDZBme.js +1 -2
  414. package/dist/pine-core/p-C61CFP22.system.js +1 -0
  415. package/dist/pine-core/p-C62JIZmE.system.js +1 -2
  416. package/dist/pine-core/p-CRCxGYgw.system.js +1 -2
  417. package/dist/pine-core/p-CaRgVPt7.js +2 -0
  418. package/dist/pine-core/p-CdwliqhD.system.js +2 -0
  419. package/dist/pine-core/p-D4ys0pep.js +1 -2
  420. package/dist/pine-core/p-DDtwbwIl.js +1 -2
  421. package/dist/pine-core/p-DVra397g.system.js +1 -2
  422. package/dist/pine-core/p-DnUJodVd.js +1 -2
  423. package/dist/pine-core/p-DtgUQhjl.js +1 -2
  424. package/dist/pine-core/p-YWpyar7R.system.js +1 -2
  425. package/dist/pine-core/p-a1750a54.entry.js +1 -0
  426. package/dist/pine-core/p-a659cce1.entry.js +1 -0
  427. package/dist/pine-core/p-a739bdfa.entry.js +1 -0
  428. package/dist/pine-core/p-a982ac91.system.entry.js +1 -0
  429. package/dist/pine-core/p-ab957ace.system.entry.js +1 -0
  430. package/dist/pine-core/p-ae2b466a.system.entry.js +1 -0
  431. package/dist/pine-core/p-ae840ec4.entry.js +1 -0
  432. package/dist/pine-core/p-b0b6acdb.system.entry.js +1 -0
  433. package/dist/pine-core/p-b1b317a5.entry.js +1 -0
  434. package/dist/pine-core/p-b88be8be.entry.js +1 -0
  435. package/dist/pine-core/p-ba88ff60.system.entry.js +1 -0
  436. package/dist/pine-core/p-babd0607.system.entry.js +1 -0
  437. package/dist/pine-core/p-bdf18687.entry.js +1 -0
  438. package/dist/pine-core/p-c273210a.entry.js +1 -0
  439. package/dist/pine-core/p-c3a99f39.entry.js +1 -0
  440. package/dist/pine-core/p-ccb889d8.system.entry.js +1 -0
  441. package/dist/pine-core/p-cce6dcf0.system.entry.js +1 -0
  442. package/dist/pine-core/p-cce83ef0.entry.js +1 -0
  443. package/dist/pine-core/p-d09ae46d.system.entry.js +1 -0
  444. package/dist/pine-core/p-d5c1f85e.system.entry.js +1 -0
  445. package/dist/pine-core/p-db1572a3.entry.js +1 -0
  446. package/dist/pine-core/p-e0cfb931.system.entry.js +1 -0
  447. package/dist/pine-core/p-e291db30.entry.js +1 -0
  448. package/dist/pine-core/p-e620e492.system.entry.js +1 -0
  449. package/dist/pine-core/p-e70c9002.entry.js +1 -0
  450. package/dist/pine-core/p-e77c5c08.system.entry.js +1 -0
  451. package/dist/pine-core/p-edf4e4eb.system.entry.js +1 -0
  452. package/dist/pine-core/p-ee6f914c.entry.js +1 -0
  453. package/dist/pine-core/{p-c7259d80.system.entry.js → p-ef71710b.system.entry.js} +2 -3
  454. package/dist/pine-core/p-f2315f2a.entry.js +1 -0
  455. package/dist/pine-core/p-f2cf8e76.entry.js +1 -0
  456. package/dist/pine-core/p-f366f064.entry.js +1 -0
  457. package/dist/pine-core/p-f928817f.system.entry.js +1 -0
  458. package/dist/pine-core/p-fa81009f.system.entry.js +1 -0
  459. package/dist/pine-core/p-fb68e503.system.entry.js +1 -0
  460. package/dist/pine-core/p-kYMYDfJY.system.js +1 -2
  461. package/dist/pine-core/p-tJa4KYNO.js +1 -2
  462. package/dist/pine-core/pine-core.css +1 -1
  463. package/dist/pine-core/pine-core.esm.js +1 -2
  464. package/dist/pine-core/pine-core.js +1 -1
  465. package/dist/scripts/vscode-custom-data-generator.js +0 -1
  466. package/dist/types/components/pds-link/pds-link.d.ts +40 -0
  467. package/dist/types/components/pds-text/pds-text.d.ts +4 -1
  468. package/dist/types/components/pds-toast/pds-toast.d.ts +4 -0
  469. package/dist/types/components.d.ts +768 -123
  470. package/dist/types/stencil-public-runtime.d.ts +110 -5
  471. package/dist/types/utils/test/axe.d.ts +5 -4
  472. package/dist/types/utils/types.d.ts +2 -0
  473. package/hydrate/index.d.ts +12 -0
  474. package/hydrate/index.js +5252 -1062
  475. package/hydrate/index.mjs +5251 -1063
  476. package/package.json +11 -11
  477. package/components/attributes.js.map +0 -1
  478. package/components/closest.js.map +0 -1
  479. package/components/floating-ui.dom.js.map +0 -1
  480. package/components/form.js.map +0 -1
  481. package/components/index.js.map +0 -1
  482. package/components/index2.js.map +0 -1
  483. package/components/mock-pds-modal.js.map +0 -1
  484. package/components/pds-accordion.js.map +0 -1
  485. package/components/pds-alert.js.map +0 -1
  486. package/components/pds-avatar.js.map +0 -1
  487. package/components/pds-box.js.map +0 -1
  488. package/components/pds-box2.js.map +0 -1
  489. package/components/pds-button.js.map +0 -1
  490. package/components/pds-button2.js.map +0 -1
  491. package/components/pds-checkbox.js.map +0 -1
  492. package/components/pds-checkbox2.js.map +0 -1
  493. package/components/pds-chip.js.map +0 -1
  494. package/components/pds-chip2.js.map +0 -1
  495. package/components/pds-combobox.js.map +0 -1
  496. package/components/pds-container.js.map +0 -1
  497. package/components/pds-copytext.js.map +0 -1
  498. package/components/pds-divider.js.map +0 -1
  499. package/components/pds-dropdown-menu-item.js.map +0 -1
  500. package/components/pds-dropdown-menu-separator.js.map +0 -1
  501. package/components/pds-dropdown-menu.js.map +0 -1
  502. package/components/pds-filter.js.map +0 -1
  503. package/components/pds-filters.js.map +0 -1
  504. package/components/pds-icon.js.map +0 -1
  505. package/components/pds-icon2.js.map +0 -1
  506. package/components/pds-image.js.map +0 -1
  507. package/components/pds-input.js.map +0 -1
  508. package/components/pds-link.js.map +0 -1
  509. package/components/pds-link2.js.map +0 -1
  510. package/components/pds-loader.js.map +0 -1
  511. package/components/pds-loader2.js.map +0 -1
  512. package/components/pds-modal-content.js.map +0 -1
  513. package/components/pds-modal-footer.js.map +0 -1
  514. package/components/pds-modal-header.js.map +0 -1
  515. package/components/pds-modal.js.map +0 -1
  516. package/components/pds-multiselect.js.map +0 -1
  517. package/components/pds-popover.js.map +0 -1
  518. package/components/pds-progress.js.map +0 -1
  519. package/components/pds-property.js.map +0 -1
  520. package/components/pds-radio-group.js.map +0 -1
  521. package/components/pds-radio.js.map +0 -1
  522. package/components/pds-row.js.map +0 -1
  523. package/components/pds-select.js.map +0 -1
  524. package/components/pds-sortable-item.js.map +0 -1
  525. package/components/pds-sortable.js.map +0 -1
  526. package/components/pds-switch.js.map +0 -1
  527. package/components/pds-tab.js.map +0 -1
  528. package/components/pds-table-body.js.map +0 -1
  529. package/components/pds-table-cell.js.map +0 -1
  530. package/components/pds-table-cell2.js.map +0 -1
  531. package/components/pds-table-head-cell.js.map +0 -1
  532. package/components/pds-table-head-cell2.js.map +0 -1
  533. package/components/pds-table-head.js.map +0 -1
  534. package/components/pds-table-row.js.map +0 -1
  535. package/components/pds-table.js.map +0 -1
  536. package/components/pds-tabpanel.js.map +0 -1
  537. package/components/pds-tabs.js.map +0 -1
  538. package/components/pds-text.js.map +0 -1
  539. package/components/pds-text2.js.map +0 -1
  540. package/components/pds-textarea.js.map +0 -1
  541. package/components/pds-toast.js.map +0 -1
  542. package/components/pds-tooltip.js.map +0 -1
  543. package/components/scroll.js.map +0 -1
  544. package/components/truncation-tooltip.js.map +0 -1
  545. package/components/utils.js.map +0 -1
  546. package/dist/cjs/attributes-oNMnBEnP.js.map +0 -1
  547. package/dist/cjs/closest-BZXvuB_Y.js.map +0 -1
  548. package/dist/cjs/floating-ui.dom-BZk7Blsu.js.map +0 -1
  549. package/dist/cjs/form-CpM5Z8q7.js.map +0 -1
  550. package/dist/cjs/index-BYnQkA7p.js.map +0 -1
  551. package/dist/cjs/index-DGBoDsAL.js.map +0 -1
  552. package/dist/cjs/index.cjs.js.map +0 -1
  553. package/dist/cjs/loader.cjs.js.map +0 -1
  554. package/dist/cjs/mock-pds-modal.entry.cjs.js.map +0 -1
  555. package/dist/cjs/pds-accordion.entry.cjs.js.map +0 -1
  556. package/dist/cjs/pds-alert.entry.cjs.js.map +0 -1
  557. package/dist/cjs/pds-avatar.entry.cjs.js.map +0 -1
  558. package/dist/cjs/pds-box.entry.cjs.js.map +0 -1
  559. package/dist/cjs/pds-button.entry.cjs.js.map +0 -1
  560. package/dist/cjs/pds-checkbox.entry.cjs.js.map +0 -1
  561. package/dist/cjs/pds-chip.entry.cjs.js.map +0 -1
  562. package/dist/cjs/pds-combobox.entry.cjs.js.map +0 -1
  563. package/dist/cjs/pds-container.entry.cjs.js.map +0 -1
  564. package/dist/cjs/pds-copytext.entry.cjs.js.map +0 -1
  565. package/dist/cjs/pds-divider.entry.cjs.js.map +0 -1
  566. package/dist/cjs/pds-dropdown-menu-item.entry.cjs.js.map +0 -1
  567. package/dist/cjs/pds-dropdown-menu-separator.entry.cjs.js.map +0 -1
  568. package/dist/cjs/pds-dropdown-menu.entry.cjs.js.map +0 -1
  569. package/dist/cjs/pds-filter.entry.cjs.js.map +0 -1
  570. package/dist/cjs/pds-filters.entry.cjs.js.map +0 -1
  571. package/dist/cjs/pds-icon.entry.cjs.js.map +0 -1
  572. package/dist/cjs/pds-image.entry.cjs.js.map +0 -1
  573. package/dist/cjs/pds-input.entry.cjs.js.map +0 -1
  574. package/dist/cjs/pds-link.entry.cjs.js.map +0 -1
  575. package/dist/cjs/pds-loader.entry.cjs.js.map +0 -1
  576. package/dist/cjs/pds-modal-content.entry.cjs.js.map +0 -1
  577. package/dist/cjs/pds-modal-footer.entry.cjs.js.map +0 -1
  578. package/dist/cjs/pds-modal-header.entry.cjs.js.map +0 -1
  579. package/dist/cjs/pds-modal.entry.cjs.js.map +0 -1
  580. package/dist/cjs/pds-multiselect.entry.cjs.js.map +0 -1
  581. package/dist/cjs/pds-popover.entry.cjs.js.map +0 -1
  582. package/dist/cjs/pds-progress.entry.cjs.js.map +0 -1
  583. package/dist/cjs/pds-property.entry.cjs.js.map +0 -1
  584. package/dist/cjs/pds-radio-group.entry.cjs.js.map +0 -1
  585. package/dist/cjs/pds-radio.entry.cjs.js.map +0 -1
  586. package/dist/cjs/pds-row.entry.cjs.js.map +0 -1
  587. package/dist/cjs/pds-select.entry.cjs.js.map +0 -1
  588. package/dist/cjs/pds-sortable-item.entry.cjs.js.map +0 -1
  589. package/dist/cjs/pds-sortable.entry.cjs.js.map +0 -1
  590. package/dist/cjs/pds-switch.entry.cjs.js.map +0 -1
  591. package/dist/cjs/pds-tab.entry.cjs.js.map +0 -1
  592. package/dist/cjs/pds-table-body.entry.cjs.js.map +0 -1
  593. package/dist/cjs/pds-table-cell.entry.cjs.js.map +0 -1
  594. package/dist/cjs/pds-table-head-cell.entry.cjs.js.map +0 -1
  595. package/dist/cjs/pds-table-head.entry.cjs.js.map +0 -1
  596. package/dist/cjs/pds-table-row.entry.cjs.js.map +0 -1
  597. package/dist/cjs/pds-table.entry.cjs.js.map +0 -1
  598. package/dist/cjs/pds-tabpanel.entry.cjs.js.map +0 -1
  599. package/dist/cjs/pds-tabs.entry.cjs.js.map +0 -1
  600. package/dist/cjs/pds-text.entry.cjs.js.map +0 -1
  601. package/dist/cjs/pds-textarea.entry.cjs.js.map +0 -1
  602. package/dist/cjs/pds-toast.entry.cjs.js.map +0 -1
  603. package/dist/cjs/pds-tooltip.entry.cjs.js.map +0 -1
  604. package/dist/cjs/pine-core.cjs.js.map +0 -1
  605. package/dist/cjs/scroll-2XcoE_6Q.js.map +0 -1
  606. package/dist/cjs/truncation-tooltip-CVzAha5B.js.map +0 -1
  607. package/dist/cjs/utils-7jx8T2mW.js.map +0 -1
  608. package/dist/collection/components/_internal/pds-label/pds-label.js.map +0 -1
  609. package/dist/collection/components/pds-accordion/pds-accordion.js.map +0 -1
  610. package/dist/collection/components/pds-alert/pds-alert.js.map +0 -1
  611. package/dist/collection/components/pds-avatar/pds-avatar.js.map +0 -1
  612. package/dist/collection/components/pds-box/pds-box.js.map +0 -1
  613. package/dist/collection/components/pds-button/pds-button.js.map +0 -1
  614. package/dist/collection/components/pds-checkbox/checkbox-interface.js.map +0 -1
  615. package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +0 -1
  616. package/dist/collection/components/pds-chip/pds-chip.js.map +0 -1
  617. package/dist/collection/components/pds-combobox/combobox-interface.js.map +0 -1
  618. package/dist/collection/components/pds-combobox/pds-combobox.js.map +0 -1
  619. package/dist/collection/components/pds-container/pds-container.js.map +0 -1
  620. package/dist/collection/components/pds-copytext/pds-copytext.js.map +0 -1
  621. package/dist/collection/components/pds-divider/pds-divider.js.map +0 -1
  622. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js.map +0 -1
  623. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js.map +0 -1
  624. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js.map +0 -1
  625. package/dist/collection/components/pds-filters/pds-filter/filter-interface.js.map +0 -1
  626. package/dist/collection/components/pds-filters/pds-filter/pds-filter.js.map +0 -1
  627. package/dist/collection/components/pds-filters/pds-filters.js.map +0 -1
  628. package/dist/collection/components/pds-image/pds-image.js.map +0 -1
  629. package/dist/collection/components/pds-input/input-interface.js.map +0 -1
  630. package/dist/collection/components/pds-input/pds-input.js.map +0 -1
  631. package/dist/collection/components/pds-link/pds-link.js.map +0 -1
  632. package/dist/collection/components/pds-loader/pds-loader.js.map +0 -1
  633. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js.map +0 -1
  634. package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js.map +0 -1
  635. package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js.map +0 -1
  636. package/dist/collection/components/pds-modal/pds-modal.js.map +0 -1
  637. package/dist/collection/components/pds-modal/test/mock-pds-modal.js.map +0 -1
  638. package/dist/collection/components/pds-multiselect/multiselect-interface.js.map +0 -1
  639. package/dist/collection/components/pds-multiselect/pds-multiselect.js.map +0 -1
  640. package/dist/collection/components/pds-popover/pds-popover.js.map +0 -1
  641. package/dist/collection/components/pds-popover/popover-interface.js.map +0 -1
  642. package/dist/collection/components/pds-progress/pds-progress.js.map +0 -1
  643. package/dist/collection/components/pds-property/pds-property.js.map +0 -1
  644. package/dist/collection/components/pds-radio/pds-radio.js.map +0 -1
  645. package/dist/collection/components/pds-radio-group/pds-radio-group.js.map +0 -1
  646. package/dist/collection/components/pds-radio-group/radio-group-interface.js.map +0 -1
  647. package/dist/collection/components/pds-row/pds-row.js.map +0 -1
  648. package/dist/collection/components/pds-select/pds-select.js.map +0 -1
  649. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js.map +0 -1
  650. package/dist/collection/components/pds-sortable/pds-sortable.js.map +0 -1
  651. package/dist/collection/components/pds-sortable/sortable-interface.js.map +0 -1
  652. package/dist/collection/components/pds-switch/pds-switch.js.map +0 -1
  653. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js.map +0 -1
  654. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js.map +0 -1
  655. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js.map +0 -1
  656. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js.map +0 -1
  657. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js.map +0 -1
  658. package/dist/collection/components/pds-table/pds-table.js.map +0 -1
  659. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js.map +0 -1
  660. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js.map +0 -1
  661. package/dist/collection/components/pds-tabs/pds-tabs.js.map +0 -1
  662. package/dist/collection/components/pds-text/pds-text.js.map +0 -1
  663. package/dist/collection/components/pds-textarea/pds-textarea.js.map +0 -1
  664. package/dist/collection/components/pds-textarea/textarea-interface.js.map +0 -1
  665. package/dist/collection/components/pds-toast/pds-toast.js.map +0 -1
  666. package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +0 -1
  667. package/dist/collection/global/pine-ui-global.js.map +0 -1
  668. package/dist/collection/index.js.map +0 -1
  669. package/dist/collection/utils/attributes.js.map +0 -1
  670. package/dist/collection/utils/closest.js.map +0 -1
  671. package/dist/collection/utils/form.js.map +0 -1
  672. package/dist/collection/utils/interfaces.js.map +0 -1
  673. package/dist/collection/utils/overlay.js.map +0 -1
  674. package/dist/collection/utils/scroll.js.map +0 -1
  675. package/dist/collection/utils/test/axe.js.map +0 -1
  676. package/dist/collection/utils/truncation-tooltip.js.map +0 -1
  677. package/dist/collection/utils/types.js.map +0 -1
  678. package/dist/collection/utils/utils.js.map +0 -1
  679. package/dist/esm/attributes-C0M1gTKv.js.map +0 -1
  680. package/dist/esm/closest-DnUJodVd.js.map +0 -1
  681. package/dist/esm/floating-ui.dom-DDtwbwIl.js.map +0 -1
  682. package/dist/esm/form-C3xDZBme.js.map +0 -1
  683. package/dist/esm/index-D4ys0pep.js.map +0 -1
  684. package/dist/esm/index-QYCDCKN2.js.map +0 -1
  685. package/dist/esm/index.js.map +0 -1
  686. package/dist/esm/loader.js.map +0 -1
  687. package/dist/esm/mock-pds-modal.entry.js.map +0 -1
  688. package/dist/esm/pds-accordion.entry.js.map +0 -1
  689. package/dist/esm/pds-alert.entry.js.map +0 -1
  690. package/dist/esm/pds-avatar.entry.js.map +0 -1
  691. package/dist/esm/pds-box.entry.js.map +0 -1
  692. package/dist/esm/pds-button.entry.js.map +0 -1
  693. package/dist/esm/pds-checkbox.entry.js.map +0 -1
  694. package/dist/esm/pds-chip.entry.js.map +0 -1
  695. package/dist/esm/pds-combobox.entry.js.map +0 -1
  696. package/dist/esm/pds-container.entry.js.map +0 -1
  697. package/dist/esm/pds-copytext.entry.js.map +0 -1
  698. package/dist/esm/pds-divider.entry.js.map +0 -1
  699. package/dist/esm/pds-dropdown-menu-item.entry.js.map +0 -1
  700. package/dist/esm/pds-dropdown-menu-separator.entry.js.map +0 -1
  701. package/dist/esm/pds-dropdown-menu.entry.js.map +0 -1
  702. package/dist/esm/pds-filter.entry.js.map +0 -1
  703. package/dist/esm/pds-filters.entry.js.map +0 -1
  704. package/dist/esm/pds-icon.entry.js.map +0 -1
  705. package/dist/esm/pds-image.entry.js.map +0 -1
  706. package/dist/esm/pds-input.entry.js.map +0 -1
  707. package/dist/esm/pds-link.entry.js.map +0 -1
  708. package/dist/esm/pds-loader.entry.js.map +0 -1
  709. package/dist/esm/pds-modal-content.entry.js.map +0 -1
  710. package/dist/esm/pds-modal-footer.entry.js.map +0 -1
  711. package/dist/esm/pds-modal-header.entry.js.map +0 -1
  712. package/dist/esm/pds-modal.entry.js.map +0 -1
  713. package/dist/esm/pds-multiselect.entry.js.map +0 -1
  714. package/dist/esm/pds-popover.entry.js.map +0 -1
  715. package/dist/esm/pds-progress.entry.js.map +0 -1
  716. package/dist/esm/pds-property.entry.js.map +0 -1
  717. package/dist/esm/pds-radio-group.entry.js.map +0 -1
  718. package/dist/esm/pds-radio.entry.js.map +0 -1
  719. package/dist/esm/pds-row.entry.js.map +0 -1
  720. package/dist/esm/pds-select.entry.js.map +0 -1
  721. package/dist/esm/pds-sortable-item.entry.js.map +0 -1
  722. package/dist/esm/pds-sortable.entry.js.map +0 -1
  723. package/dist/esm/pds-switch.entry.js.map +0 -1
  724. package/dist/esm/pds-tab.entry.js.map +0 -1
  725. package/dist/esm/pds-table-body.entry.js.map +0 -1
  726. package/dist/esm/pds-table-cell.entry.js.map +0 -1
  727. package/dist/esm/pds-table-head-cell.entry.js.map +0 -1
  728. package/dist/esm/pds-table-head.entry.js.map +0 -1
  729. package/dist/esm/pds-table-row.entry.js.map +0 -1
  730. package/dist/esm/pds-table.entry.js.map +0 -1
  731. package/dist/esm/pds-tabpanel.entry.js.map +0 -1
  732. package/dist/esm/pds-tabs.entry.js.map +0 -1
  733. package/dist/esm/pds-text.entry.js.map +0 -1
  734. package/dist/esm/pds-textarea.entry.js.map +0 -1
  735. package/dist/esm/pds-toast.entry.js.map +0 -1
  736. package/dist/esm/pds-tooltip.entry.js.map +0 -1
  737. package/dist/esm/pine-core.js.map +0 -1
  738. package/dist/esm/scroll-DtgUQhjl.js.map +0 -1
  739. package/dist/esm/truncation-tooltip-Blk4GigP.js.map +0 -1
  740. package/dist/esm/utils-tJa4KYNO.js.map +0 -1
  741. package/dist/esm-es5/attributes-C0M1gTKv.js.map +0 -1
  742. package/dist/esm-es5/closest-DnUJodVd.js.map +0 -1
  743. package/dist/esm-es5/floating-ui.dom-DDtwbwIl.js.map +0 -1
  744. package/dist/esm-es5/form-C3xDZBme.js.map +0 -1
  745. package/dist/esm-es5/index-D4ys0pep.js.map +0 -1
  746. package/dist/esm-es5/index-QYCDCKN2.js +0 -3
  747. package/dist/esm-es5/index-QYCDCKN2.js.map +0 -1
  748. package/dist/esm-es5/index.js.map +0 -1
  749. package/dist/esm-es5/loader.js.map +0 -1
  750. package/dist/esm-es5/mock-pds-modal.entry.js.map +0 -1
  751. package/dist/esm-es5/pds-accordion.entry.js.map +0 -1
  752. package/dist/esm-es5/pds-alert.entry.js.map +0 -1
  753. package/dist/esm-es5/pds-avatar.entry.js.map +0 -1
  754. package/dist/esm-es5/pds-box.entry.js.map +0 -1
  755. package/dist/esm-es5/pds-button.entry.js.map +0 -1
  756. package/dist/esm-es5/pds-checkbox.entry.js.map +0 -1
  757. package/dist/esm-es5/pds-chip.entry.js.map +0 -1
  758. package/dist/esm-es5/pds-combobox.entry.js.map +0 -1
  759. package/dist/esm-es5/pds-container.entry.js.map +0 -1
  760. package/dist/esm-es5/pds-copytext.entry.js.map +0 -1
  761. package/dist/esm-es5/pds-divider.entry.js.map +0 -1
  762. package/dist/esm-es5/pds-dropdown-menu-item.entry.js.map +0 -1
  763. package/dist/esm-es5/pds-dropdown-menu-separator.entry.js.map +0 -1
  764. package/dist/esm-es5/pds-dropdown-menu.entry.js.map +0 -1
  765. package/dist/esm-es5/pds-filter.entry.js.map +0 -1
  766. package/dist/esm-es5/pds-filters.entry.js.map +0 -1
  767. package/dist/esm-es5/pds-icon.entry.js.map +0 -1
  768. package/dist/esm-es5/pds-image.entry.js.map +0 -1
  769. package/dist/esm-es5/pds-input.entry.js.map +0 -1
  770. package/dist/esm-es5/pds-link.entry.js.map +0 -1
  771. package/dist/esm-es5/pds-loader.entry.js.map +0 -1
  772. package/dist/esm-es5/pds-modal-content.entry.js.map +0 -1
  773. package/dist/esm-es5/pds-modal-footer.entry.js.map +0 -1
  774. package/dist/esm-es5/pds-modal-header.entry.js.map +0 -1
  775. package/dist/esm-es5/pds-modal.entry.js.map +0 -1
  776. package/dist/esm-es5/pds-multiselect.entry.js.map +0 -1
  777. package/dist/esm-es5/pds-popover.entry.js.map +0 -1
  778. package/dist/esm-es5/pds-progress.entry.js.map +0 -1
  779. package/dist/esm-es5/pds-property.entry.js.map +0 -1
  780. package/dist/esm-es5/pds-radio-group.entry.js.map +0 -1
  781. package/dist/esm-es5/pds-radio.entry.js.map +0 -1
  782. package/dist/esm-es5/pds-row.entry.js.map +0 -1
  783. package/dist/esm-es5/pds-select.entry.js.map +0 -1
  784. package/dist/esm-es5/pds-sortable-item.entry.js.map +0 -1
  785. package/dist/esm-es5/pds-sortable.entry.js.map +0 -1
  786. package/dist/esm-es5/pds-switch.entry.js.map +0 -1
  787. package/dist/esm-es5/pds-tab.entry.js.map +0 -1
  788. package/dist/esm-es5/pds-table-body.entry.js.map +0 -1
  789. package/dist/esm-es5/pds-table-cell.entry.js.map +0 -1
  790. package/dist/esm-es5/pds-table-head-cell.entry.js.map +0 -1
  791. package/dist/esm-es5/pds-table-head.entry.js.map +0 -1
  792. package/dist/esm-es5/pds-table-row.entry.js.map +0 -1
  793. package/dist/esm-es5/pds-table.entry.js.map +0 -1
  794. package/dist/esm-es5/pds-tabpanel.entry.js.map +0 -1
  795. package/dist/esm-es5/pds-tabs.entry.js.map +0 -1
  796. package/dist/esm-es5/pds-text.entry.js.map +0 -1
  797. package/dist/esm-es5/pds-textarea.entry.js.map +0 -1
  798. package/dist/esm-es5/pds-toast.entry.js.map +0 -1
  799. package/dist/esm-es5/pds-tooltip.entry.js.map +0 -1
  800. package/dist/esm-es5/pine-core.js.map +0 -1
  801. package/dist/esm-es5/scroll-DtgUQhjl.js.map +0 -1
  802. package/dist/esm-es5/truncation-tooltip-Blk4GigP.js.map +0 -1
  803. package/dist/esm-es5/utils-tJa4KYNO.js.map +0 -1
  804. package/dist/pine-core/index.esm.js.map +0 -1
  805. package/dist/pine-core/loader.esm.js.map +0 -1
  806. package/dist/pine-core/mock-pds-modal.entry.esm.js.map +0 -1
  807. package/dist/pine-core/p-043395a8.entry.js +0 -2
  808. package/dist/pine-core/p-043395a8.entry.js.map +0 -1
  809. package/dist/pine-core/p-07a19657.entry.js +0 -2
  810. package/dist/pine-core/p-07a19657.entry.js.map +0 -1
  811. package/dist/pine-core/p-08267d86.system.entry.js +0 -2
  812. package/dist/pine-core/p-08267d86.system.entry.js.map +0 -1
  813. package/dist/pine-core/p-0bc89023.system.entry.js +0 -2
  814. package/dist/pine-core/p-0bc89023.system.entry.js.map +0 -1
  815. package/dist/pine-core/p-0ca1dada.entry.js +0 -2
  816. package/dist/pine-core/p-0ca1dada.entry.js.map +0 -1
  817. package/dist/pine-core/p-0d3a6abc.entry.js +0 -2
  818. package/dist/pine-core/p-0d3a6abc.entry.js.map +0 -1
  819. package/dist/pine-core/p-0jF8lVUy.system.js.map +0 -1
  820. package/dist/pine-core/p-1256b83e.entry.js +0 -2
  821. package/dist/pine-core/p-1256b83e.entry.js.map +0 -1
  822. package/dist/pine-core/p-1700705c.entry.js +0 -2
  823. package/dist/pine-core/p-1700705c.entry.js.map +0 -1
  824. package/dist/pine-core/p-1d7cbf49.system.entry.js +0 -2
  825. package/dist/pine-core/p-1d7cbf49.system.entry.js.map +0 -1
  826. package/dist/pine-core/p-1eJB2hvd.system.js.map +0 -1
  827. package/dist/pine-core/p-1hZDd74J.system.js.map +0 -1
  828. package/dist/pine-core/p-21a858a0.entry.js +0 -2
  829. package/dist/pine-core/p-21a858a0.entry.js.map +0 -1
  830. package/dist/pine-core/p-2335222d.entry.js +0 -2
  831. package/dist/pine-core/p-2335222d.entry.js.map +0 -1
  832. package/dist/pine-core/p-24656fd4.entry.js +0 -2
  833. package/dist/pine-core/p-24656fd4.entry.js.map +0 -1
  834. package/dist/pine-core/p-2549e386.system.entry.js +0 -2
  835. package/dist/pine-core/p-2549e386.system.entry.js.map +0 -1
  836. package/dist/pine-core/p-2728bb30.system.entry.js +0 -2
  837. package/dist/pine-core/p-2728bb30.system.entry.js.map +0 -1
  838. package/dist/pine-core/p-2a4be282.entry.js +0 -3
  839. package/dist/pine-core/p-2a4be282.entry.js.map +0 -1
  840. package/dist/pine-core/p-2c88b85e.entry.js +0 -2
  841. package/dist/pine-core/p-2c88b85e.entry.js.map +0 -1
  842. package/dist/pine-core/p-2dcd369d.entry.js +0 -2
  843. package/dist/pine-core/p-2dcd369d.entry.js.map +0 -1
  844. package/dist/pine-core/p-30302dbb.system.entry.js +0 -2
  845. package/dist/pine-core/p-30302dbb.system.entry.js.map +0 -1
  846. package/dist/pine-core/p-33fd214a.system.entry.js +0 -2
  847. package/dist/pine-core/p-33fd214a.system.entry.js.map +0 -1
  848. package/dist/pine-core/p-360130c2.entry.js +0 -2
  849. package/dist/pine-core/p-360130c2.entry.js.map +0 -1
  850. package/dist/pine-core/p-3824d80d.system.entry.js +0 -2
  851. package/dist/pine-core/p-3824d80d.system.entry.js.map +0 -1
  852. package/dist/pine-core/p-3c89502e.system.entry.js +0 -2
  853. package/dist/pine-core/p-3c89502e.system.entry.js.map +0 -1
  854. package/dist/pine-core/p-3d0f3dcb.system.entry.js +0 -2
  855. package/dist/pine-core/p-3d0f3dcb.system.entry.js.map +0 -1
  856. package/dist/pine-core/p-3eae6f9f.system.entry.js +0 -2
  857. package/dist/pine-core/p-3eae6f9f.system.entry.js.map +0 -1
  858. package/dist/pine-core/p-3f4435b8.system.entry.js +0 -2
  859. package/dist/pine-core/p-3f4435b8.system.entry.js.map +0 -1
  860. package/dist/pine-core/p-43565cf5.entry.js +0 -2
  861. package/dist/pine-core/p-43565cf5.entry.js.map +0 -1
  862. package/dist/pine-core/p-44318b5c.entry.js +0 -2
  863. package/dist/pine-core/p-44318b5c.entry.js.map +0 -1
  864. package/dist/pine-core/p-4728c80a.entry.js +0 -2
  865. package/dist/pine-core/p-4728c80a.entry.js.map +0 -1
  866. package/dist/pine-core/p-4a4048f3.entry.js +0 -2
  867. package/dist/pine-core/p-4a4048f3.entry.js.map +0 -1
  868. package/dist/pine-core/p-4e79023c.system.entry.js +0 -2
  869. package/dist/pine-core/p-4e79023c.system.entry.js.map +0 -1
  870. package/dist/pine-core/p-4fc48330.entry.js +0 -2
  871. package/dist/pine-core/p-4fc48330.entry.js.map +0 -1
  872. package/dist/pine-core/p-500ef8ee.entry.js +0 -2
  873. package/dist/pine-core/p-500ef8ee.entry.js.map +0 -1
  874. package/dist/pine-core/p-528d50eb.system.entry.js +0 -2
  875. package/dist/pine-core/p-528d50eb.system.entry.js.map +0 -1
  876. package/dist/pine-core/p-56aedf71.entry.js +0 -2
  877. package/dist/pine-core/p-56aedf71.entry.js.map +0 -1
  878. package/dist/pine-core/p-58bd1590.system.entry.js +0 -2
  879. package/dist/pine-core/p-58bd1590.system.entry.js.map +0 -1
  880. package/dist/pine-core/p-5b521b20.entry.js +0 -2
  881. package/dist/pine-core/p-5b521b20.entry.js.map +0 -1
  882. package/dist/pine-core/p-5c259f42.system.entry.js +0 -4
  883. package/dist/pine-core/p-5c259f42.system.entry.js.map +0 -1
  884. package/dist/pine-core/p-5f9a6f53.entry.js +0 -2
  885. package/dist/pine-core/p-5f9a6f53.entry.js.map +0 -1
  886. package/dist/pine-core/p-61bcaaee.entry.js +0 -2
  887. package/dist/pine-core/p-61bcaaee.entry.js.map +0 -1
  888. package/dist/pine-core/p-621405fc.entry.js +0 -2
  889. package/dist/pine-core/p-621405fc.entry.js.map +0 -1
  890. package/dist/pine-core/p-65224129.system.entry.js +0 -2
  891. package/dist/pine-core/p-65224129.system.entry.js.map +0 -1
  892. package/dist/pine-core/p-67a81e55.entry.js +0 -2
  893. package/dist/pine-core/p-67a81e55.entry.js.map +0 -1
  894. package/dist/pine-core/p-6a20ba14.system.entry.js +0 -2
  895. package/dist/pine-core/p-6a20ba14.system.entry.js.map +0 -1
  896. package/dist/pine-core/p-6af000e5.entry.js +0 -2
  897. package/dist/pine-core/p-6af000e5.entry.js.map +0 -1
  898. package/dist/pine-core/p-6c836757.entry.js +0 -2
  899. package/dist/pine-core/p-6c836757.entry.js.map +0 -1
  900. package/dist/pine-core/p-6c9bb2a5.entry.js +0 -2
  901. package/dist/pine-core/p-6c9bb2a5.entry.js.map +0 -1
  902. package/dist/pine-core/p-6ca31ddd.entry.js +0 -2
  903. package/dist/pine-core/p-6ca31ddd.entry.js.map +0 -1
  904. package/dist/pine-core/p-6f4f62ff.system.entry.js +0 -2
  905. package/dist/pine-core/p-6f4f62ff.system.entry.js.map +0 -1
  906. package/dist/pine-core/p-74486022.system.entry.js +0 -2
  907. package/dist/pine-core/p-74486022.system.entry.js.map +0 -1
  908. package/dist/pine-core/p-7456ae7a.system.entry.js +0 -2
  909. package/dist/pine-core/p-7456ae7a.system.entry.js.map +0 -1
  910. package/dist/pine-core/p-77807b63.entry.js +0 -2
  911. package/dist/pine-core/p-77807b63.entry.js.map +0 -1
  912. package/dist/pine-core/p-78184199.entry.js +0 -2
  913. package/dist/pine-core/p-78184199.entry.js.map +0 -1
  914. package/dist/pine-core/p-7ba75e19.entry.js +0 -8
  915. package/dist/pine-core/p-7ba75e19.entry.js.map +0 -1
  916. package/dist/pine-core/p-7u7MeeeZ.system.js.map +0 -1
  917. package/dist/pine-core/p-847ca369.entry.js +0 -2
  918. package/dist/pine-core/p-847ca369.entry.js.map +0 -1
  919. package/dist/pine-core/p-859aa3b0.entry.js +0 -2
  920. package/dist/pine-core/p-859aa3b0.entry.js.map +0 -1
  921. package/dist/pine-core/p-8c8048df.entry.js +0 -2
  922. package/dist/pine-core/p-8c8048df.entry.js.map +0 -1
  923. package/dist/pine-core/p-8dea1946.system.entry.js +0 -2
  924. package/dist/pine-core/p-8dea1946.system.entry.js.map +0 -1
  925. package/dist/pine-core/p-8nqjUIna.system.js.map +0 -1
  926. package/dist/pine-core/p-9120a7fa.system.entry.js +0 -2
  927. package/dist/pine-core/p-9120a7fa.system.entry.js.map +0 -1
  928. package/dist/pine-core/p-97d5a937.system.entry.js +0 -2
  929. package/dist/pine-core/p-97d5a937.system.entry.js.map +0 -1
  930. package/dist/pine-core/p-97e0b205.system.entry.js +0 -2
  931. package/dist/pine-core/p-97e0b205.system.entry.js.map +0 -1
  932. package/dist/pine-core/p-98332835.system.entry.js +0 -2
  933. package/dist/pine-core/p-98332835.system.entry.js.map +0 -1
  934. package/dist/pine-core/p-99739465.entry.js +0 -2
  935. package/dist/pine-core/p-99739465.entry.js.map +0 -1
  936. package/dist/pine-core/p-9X_erY0S.system.js +0 -2
  937. package/dist/pine-core/p-9X_erY0S.system.js.map +0 -1
  938. package/dist/pine-core/p-9a2dc18d.system.entry.js +0 -2
  939. package/dist/pine-core/p-9a2dc18d.system.entry.js.map +0 -1
  940. package/dist/pine-core/p-9e62532d.entry.js +0 -2
  941. package/dist/pine-core/p-9e62532d.entry.js.map +0 -1
  942. package/dist/pine-core/p-9e98793e.entry.js +0 -2
  943. package/dist/pine-core/p-9e98793e.entry.js.map +0 -1
  944. package/dist/pine-core/p-B1u-QvFn.system.js.map +0 -1
  945. package/dist/pine-core/p-B5hxTy5U.system.js.map +0 -1
  946. package/dist/pine-core/p-B8wXrRCn.system.js.map +0 -1
  947. package/dist/pine-core/p-BEk_6bpE.system.js.map +0 -1
  948. package/dist/pine-core/p-BG6uGRQj.system.js.map +0 -1
  949. package/dist/pine-core/p-BHr70Hts.system.js.map +0 -1
  950. package/dist/pine-core/p-BILA6IDX.system.js.map +0 -1
  951. package/dist/pine-core/p-BNSGedhN.js.map +0 -1
  952. package/dist/pine-core/p-BR3EzrR2.system.js.map +0 -1
  953. package/dist/pine-core/p-BWYstZfx.system.js.map +0 -1
  954. package/dist/pine-core/p-B_ue56xA.system.js.map +0 -1
  955. package/dist/pine-core/p-Bdrd1hDP.system.js.map +0 -1
  956. package/dist/pine-core/p-BfwVCQ2C.system.js.map +0 -1
  957. package/dist/pine-core/p-BhQhw0S3.system.js.map +0 -1
  958. package/dist/pine-core/p-BhXECqd_.system.js.map +0 -1
  959. package/dist/pine-core/p-Bq2VWG-F.system.js.map +0 -1
  960. package/dist/pine-core/p-BrLs99ML.system.js.map +0 -1
  961. package/dist/pine-core/p-BtZYIh3H.system.js.map +0 -1
  962. package/dist/pine-core/p-BzszOvm1.system.js.map +0 -1
  963. package/dist/pine-core/p-C0M1gTKv.js.map +0 -1
  964. package/dist/pine-core/p-C0XRql_j.system.js.map +0 -1
  965. package/dist/pine-core/p-C0r-Omcz.system.js.map +0 -1
  966. package/dist/pine-core/p-C2Pw0xAP.system.js.map +0 -1
  967. package/dist/pine-core/p-C3xDZBme.js.map +0 -1
  968. package/dist/pine-core/p-C62JIZmE.system.js.map +0 -1
  969. package/dist/pine-core/p-C6LTEDPh.system.js.map +0 -1
  970. package/dist/pine-core/p-C8wBjwhX.system.js.map +0 -1
  971. package/dist/pine-core/p-CG-Uj3mN.system.js.map +0 -1
  972. package/dist/pine-core/p-CIRsbQAW.system.js.map +0 -1
  973. package/dist/pine-core/p-CKshb3YH.system.js.map +0 -1
  974. package/dist/pine-core/p-CMbqUapr.system.js.map +0 -1
  975. package/dist/pine-core/p-CQS3Y0nn.system.js.map +0 -1
  976. package/dist/pine-core/p-CRCxGYgw.system.js.map +0 -1
  977. package/dist/pine-core/p-CX0Csdth.system.js.map +0 -1
  978. package/dist/pine-core/p-CZSA3A1S.system.js.map +0 -1
  979. package/dist/pine-core/p-CbRVp4gv.system.js.map +0 -1
  980. package/dist/pine-core/p-CfyFDUw5.system.js.map +0 -1
  981. package/dist/pine-core/p-CgPvrU-c.system.js.map +0 -1
  982. package/dist/pine-core/p-CjuuQ5fk.system.js.map +0 -1
  983. package/dist/pine-core/p-Ck9i0WVa.system.js.map +0 -1
  984. package/dist/pine-core/p-Cm5r7dPz.system.js.map +0 -1
  985. package/dist/pine-core/p-CtZbV7sl.system.js.map +0 -1
  986. package/dist/pine-core/p-CwlStDlm.system.js.map +0 -1
  987. package/dist/pine-core/p-CyJVqIlm.system.js +0 -3
  988. package/dist/pine-core/p-CyJVqIlm.system.js.map +0 -1
  989. package/dist/pine-core/p-D2ZsBdFi.system.js.map +0 -1
  990. package/dist/pine-core/p-D4ys0pep.js.map +0 -1
  991. package/dist/pine-core/p-DDtwbwIl.js.map +0 -1
  992. package/dist/pine-core/p-DSfc0hSW.system.js.map +0 -1
  993. package/dist/pine-core/p-DUOWHRqL.system.js.map +0 -1
  994. package/dist/pine-core/p-DUaDwLU_.system.js.map +0 -1
  995. package/dist/pine-core/p-DVra397g.system.js.map +0 -1
  996. package/dist/pine-core/p-D_X9pwRF.system.js.map +0 -1
  997. package/dist/pine-core/p-Dn6xWpZX.system.js.map +0 -1
  998. package/dist/pine-core/p-DnUJodVd.js.map +0 -1
  999. package/dist/pine-core/p-Dt4eN_hu.system.js.map +0 -1
  1000. package/dist/pine-core/p-DtKEcQXo.system.js.map +0 -1
  1001. package/dist/pine-core/p-DtgUQhjl.js.map +0 -1
  1002. package/dist/pine-core/p-DuIwxDGo.system.js.map +0 -1
  1003. package/dist/pine-core/p-KgPSFwRc.system.js.map +0 -1
  1004. package/dist/pine-core/p-QYCDCKN2.js +0 -3
  1005. package/dist/pine-core/p-QYCDCKN2.js.map +0 -1
  1006. package/dist/pine-core/p-YWpyar7R.system.js.map +0 -1
  1007. package/dist/pine-core/p-a6ab979f.system.entry.js +0 -2
  1008. package/dist/pine-core/p-a6ab979f.system.entry.js.map +0 -1
  1009. package/dist/pine-core/p-a80f68ce.entry.js +0 -2
  1010. package/dist/pine-core/p-a80f68ce.entry.js.map +0 -1
  1011. package/dist/pine-core/p-a81aa273.system.entry.js +0 -2
  1012. package/dist/pine-core/p-a81aa273.system.entry.js.map +0 -1
  1013. package/dist/pine-core/p-a896db32.system.entry.js +0 -2
  1014. package/dist/pine-core/p-a896db32.system.entry.js.map +0 -1
  1015. package/dist/pine-core/p-ac2900e1.system.entry.js +0 -2
  1016. package/dist/pine-core/p-ac2900e1.system.entry.js.map +0 -1
  1017. package/dist/pine-core/p-acf6592f.system.entry.js +0 -2
  1018. package/dist/pine-core/p-acf6592f.system.entry.js.map +0 -1
  1019. package/dist/pine-core/p-ad2bb5e4.entry.js +0 -2
  1020. package/dist/pine-core/p-ad2bb5e4.entry.js.map +0 -1
  1021. package/dist/pine-core/p-ae80a5cc.system.entry.js +0 -2
  1022. package/dist/pine-core/p-ae80a5cc.system.entry.js.map +0 -1
  1023. package/dist/pine-core/p-b294a16b.entry.js +0 -2
  1024. package/dist/pine-core/p-b294a16b.entry.js.map +0 -1
  1025. package/dist/pine-core/p-b37b3ad2.entry.js +0 -2
  1026. package/dist/pine-core/p-b37b3ad2.entry.js.map +0 -1
  1027. package/dist/pine-core/p-b42320fe.entry.js +0 -2
  1028. package/dist/pine-core/p-b42320fe.entry.js.map +0 -1
  1029. package/dist/pine-core/p-b4c51353.system.entry.js +0 -2
  1030. package/dist/pine-core/p-b4c51353.system.entry.js.map +0 -1
  1031. package/dist/pine-core/p-b611b9ab.system.entry.js +0 -2
  1032. package/dist/pine-core/p-b611b9ab.system.entry.js.map +0 -1
  1033. package/dist/pine-core/p-b7342b09.entry.js +0 -2
  1034. package/dist/pine-core/p-b7342b09.entry.js.map +0 -1
  1035. package/dist/pine-core/p-c53bfe6e.entry.js +0 -2
  1036. package/dist/pine-core/p-c53bfe6e.entry.js.map +0 -1
  1037. package/dist/pine-core/p-c7259d80.system.entry.js.map +0 -1
  1038. package/dist/pine-core/p-cb9b6ccc.system.entry.js +0 -2
  1039. package/dist/pine-core/p-cb9b6ccc.system.entry.js.map +0 -1
  1040. package/dist/pine-core/p-cc7e0da3.entry.js +0 -2
  1041. package/dist/pine-core/p-cc7e0da3.entry.js.map +0 -1
  1042. package/dist/pine-core/p-cd6b266c.system.entry.js +0 -2
  1043. package/dist/pine-core/p-cd6b266c.system.entry.js.map +0 -1
  1044. package/dist/pine-core/p-ce4de7f0.system.entry.js +0 -2
  1045. package/dist/pine-core/p-ce4de7f0.system.entry.js.map +0 -1
  1046. package/dist/pine-core/p-cfebee75.system.entry.js +0 -2
  1047. package/dist/pine-core/p-cfebee75.system.entry.js.map +0 -1
  1048. package/dist/pine-core/p-d5ba377c.system.entry.js +0 -2
  1049. package/dist/pine-core/p-d5ba377c.system.entry.js.map +0 -1
  1050. package/dist/pine-core/p-d83e411d.entry.js +0 -2
  1051. package/dist/pine-core/p-d83e411d.entry.js.map +0 -1
  1052. package/dist/pine-core/p-d96c3850.entry.js +0 -2
  1053. package/dist/pine-core/p-d96c3850.entry.js.map +0 -1
  1054. package/dist/pine-core/p-e2c42a2e.system.entry.js +0 -2
  1055. package/dist/pine-core/p-e2c42a2e.system.entry.js.map +0 -1
  1056. package/dist/pine-core/p-e4f66d23.system.entry.js +0 -2
  1057. package/dist/pine-core/p-e4f66d23.system.entry.js.map +0 -1
  1058. package/dist/pine-core/p-e626cbd5.system.entry.js +0 -2
  1059. package/dist/pine-core/p-e626cbd5.system.entry.js.map +0 -1
  1060. package/dist/pine-core/p-e65b1e5f.system.entry.js +0 -2
  1061. package/dist/pine-core/p-e65b1e5f.system.entry.js.map +0 -1
  1062. package/dist/pine-core/p-e9e4e7f9.system.entry.js +0 -2
  1063. package/dist/pine-core/p-e9e4e7f9.system.entry.js.map +0 -1
  1064. package/dist/pine-core/p-ec7f210f.entry.js +0 -2
  1065. package/dist/pine-core/p-ec7f210f.entry.js.map +0 -1
  1066. package/dist/pine-core/p-ef155f8e.system.entry.js +0 -2
  1067. package/dist/pine-core/p-ef155f8e.system.entry.js.map +0 -1
  1068. package/dist/pine-core/p-f9a46770.system.entry.js +0 -2
  1069. package/dist/pine-core/p-f9a46770.system.entry.js.map +0 -1
  1070. package/dist/pine-core/p-fa68509f.entry.js +0 -2
  1071. package/dist/pine-core/p-fa68509f.entry.js.map +0 -1
  1072. package/dist/pine-core/p-fc2789df.system.entry.js +0 -2
  1073. package/dist/pine-core/p-fc2789df.system.entry.js.map +0 -1
  1074. package/dist/pine-core/p-fcea314c.system.entry.js +0 -2
  1075. package/dist/pine-core/p-fcea314c.system.entry.js.map +0 -1
  1076. package/dist/pine-core/p-kYMYDfJY.system.js.map +0 -1
  1077. package/dist/pine-core/p-lXz5a0gw.system.js.map +0 -1
  1078. package/dist/pine-core/p-tJa4KYNO.js.map +0 -1
  1079. package/dist/pine-core/p-yb-SBJqk.system.js.map +0 -1
  1080. package/dist/pine-core/pds-accordion.entry.esm.js.map +0 -1
  1081. package/dist/pine-core/pds-alert.entry.esm.js.map +0 -1
  1082. package/dist/pine-core/pds-avatar.entry.esm.js.map +0 -1
  1083. package/dist/pine-core/pds-box.entry.esm.js.map +0 -1
  1084. package/dist/pine-core/pds-button.entry.esm.js.map +0 -1
  1085. package/dist/pine-core/pds-checkbox.entry.esm.js.map +0 -1
  1086. package/dist/pine-core/pds-chip.entry.esm.js.map +0 -1
  1087. package/dist/pine-core/pds-combobox.entry.esm.js.map +0 -1
  1088. package/dist/pine-core/pds-container.entry.esm.js.map +0 -1
  1089. package/dist/pine-core/pds-copytext.entry.esm.js.map +0 -1
  1090. package/dist/pine-core/pds-divider.entry.esm.js.map +0 -1
  1091. package/dist/pine-core/pds-dropdown-menu-item.entry.esm.js.map +0 -1
  1092. package/dist/pine-core/pds-dropdown-menu-separator.entry.esm.js.map +0 -1
  1093. package/dist/pine-core/pds-dropdown-menu.entry.esm.js.map +0 -1
  1094. package/dist/pine-core/pds-filter.entry.esm.js.map +0 -1
  1095. package/dist/pine-core/pds-filters.entry.esm.js.map +0 -1
  1096. package/dist/pine-core/pds-icon.entry.esm.js.map +0 -1
  1097. package/dist/pine-core/pds-image.entry.esm.js.map +0 -1
  1098. package/dist/pine-core/pds-input.entry.esm.js.map +0 -1
  1099. package/dist/pine-core/pds-link.entry.esm.js.map +0 -1
  1100. package/dist/pine-core/pds-loader.entry.esm.js.map +0 -1
  1101. package/dist/pine-core/pds-modal-content.entry.esm.js.map +0 -1
  1102. package/dist/pine-core/pds-modal-footer.entry.esm.js.map +0 -1
  1103. package/dist/pine-core/pds-modal-header.entry.esm.js.map +0 -1
  1104. package/dist/pine-core/pds-modal.entry.esm.js.map +0 -1
  1105. package/dist/pine-core/pds-multiselect.entry.esm.js.map +0 -1
  1106. package/dist/pine-core/pds-popover.entry.esm.js.map +0 -1
  1107. package/dist/pine-core/pds-progress.entry.esm.js.map +0 -1
  1108. package/dist/pine-core/pds-property.entry.esm.js.map +0 -1
  1109. package/dist/pine-core/pds-radio-group.entry.esm.js.map +0 -1
  1110. package/dist/pine-core/pds-radio.entry.esm.js.map +0 -1
  1111. package/dist/pine-core/pds-row.entry.esm.js.map +0 -1
  1112. package/dist/pine-core/pds-select.entry.esm.js.map +0 -1
  1113. package/dist/pine-core/pds-sortable-item.entry.esm.js.map +0 -1
  1114. package/dist/pine-core/pds-sortable.entry.esm.js.map +0 -1
  1115. package/dist/pine-core/pds-switch.entry.esm.js.map +0 -1
  1116. package/dist/pine-core/pds-tab.entry.esm.js.map +0 -1
  1117. package/dist/pine-core/pds-table-body.entry.esm.js.map +0 -1
  1118. package/dist/pine-core/pds-table-cell.entry.esm.js.map +0 -1
  1119. package/dist/pine-core/pds-table-head-cell.entry.esm.js.map +0 -1
  1120. package/dist/pine-core/pds-table-head.entry.esm.js.map +0 -1
  1121. package/dist/pine-core/pds-table-row.entry.esm.js.map +0 -1
  1122. package/dist/pine-core/pds-table.entry.esm.js.map +0 -1
  1123. package/dist/pine-core/pds-tabpanel.entry.esm.js.map +0 -1
  1124. package/dist/pine-core/pds-tabs.entry.esm.js.map +0 -1
  1125. package/dist/pine-core/pds-text.entry.esm.js.map +0 -1
  1126. package/dist/pine-core/pds-textarea.entry.esm.js.map +0 -1
  1127. package/dist/pine-core/pds-toast.entry.esm.js.map +0 -1
  1128. package/dist/pine-core/pds-tooltip.entry.esm.js.map +0 -1
  1129. package/dist/pine-core/pine-core.esm.js.map +0 -1
  1130. package/dist/scripts/vscode-custom-data-generator.js.map +0 -1
  1131. package/dist/vscode.html-data.json +0 -10551
@@ -1,2752 +1,7 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
-
1
+ import{proxyCustomElement as t,HTMLElement as n,createEvent as e,h as i,Host as o,transformTag as r}from"@stencil/core/internal/client";
3
2
  /**!
4
3
  * Sortable 1.15.7
5
4
  * @author RubaXa <trash@rubaxa.org>
6
5
  * @author owenm <owen23355@gmail.com>
7
6
  * @license MIT
8
- */
9
- function _defineProperty(e, r, t) {
10
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
11
- value: t,
12
- enumerable: true,
13
- configurable: true,
14
- writable: true
15
- }) : e[r] = t, e;
16
- }
17
- function _extends() {
18
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
19
- for (var e = 1; e < arguments.length; e++) {
20
- var t = arguments[e];
21
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
22
- }
23
- return n;
24
- }, _extends.apply(null, arguments);
25
- }
26
- function ownKeys(e, r) {
27
- var t = Object.keys(e);
28
- if (Object.getOwnPropertySymbols) {
29
- var o = Object.getOwnPropertySymbols(e);
30
- r && (o = o.filter(function (r) {
31
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
32
- })), t.push.apply(t, o);
33
- }
34
- return t;
35
- }
36
- function _objectSpread2(e) {
37
- for (var r = 1; r < arguments.length; r++) {
38
- var t = null != arguments[r] ? arguments[r] : {};
39
- r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
40
- _defineProperty(e, r, t[r]);
41
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
42
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
43
- });
44
- }
45
- return e;
46
- }
47
- function _objectWithoutProperties(e, t) {
48
- if (null == e) return {};
49
- var o,
50
- r,
51
- i = _objectWithoutPropertiesLoose(e, t);
52
- if (Object.getOwnPropertySymbols) {
53
- var n = Object.getOwnPropertySymbols(e);
54
- for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
55
- }
56
- return i;
57
- }
58
- function _objectWithoutPropertiesLoose(r, e) {
59
- if (null == r) return {};
60
- var t = {};
61
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
62
- if (-1 !== e.indexOf(n)) continue;
63
- t[n] = r[n];
64
- }
65
- return t;
66
- }
67
- function _toPrimitive(t, r) {
68
- if ("object" != typeof t || !t) return t;
69
- var e = t[Symbol.toPrimitive];
70
- if (void 0 !== e) {
71
- var i = e.call(t, r);
72
- if ("object" != typeof i) return i;
73
- throw new TypeError("@@toPrimitive must return a primitive value.");
74
- }
75
- return ("string" === r ? String : Number)(t);
76
- }
77
- function _toPropertyKey(t) {
78
- var i = _toPrimitive(t, "string");
79
- return "symbol" == typeof i ? i : i + "";
80
- }
81
- function _typeof(o) {
82
- "@babel/helpers - typeof";
83
-
84
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
85
- return typeof o;
86
- } : function (o) {
87
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
88
- }, _typeof(o);
89
- }
90
-
91
- var version = "1.15.7";
92
-
93
- function userAgent(pattern) {
94
- if (typeof window !== 'undefined' && window.navigator) {
95
- return !! /*@__PURE__*/navigator.userAgent.match(pattern);
96
- }
97
- }
98
- var IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
99
- var Edge = userAgent(/Edge/i);
100
- var FireFox = userAgent(/firefox/i);
101
- var Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);
102
- var IOS = userAgent(/iP(ad|od|hone)/i);
103
- var ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);
104
-
105
- var captureMode = {
106
- capture: false,
107
- passive: false
108
- };
109
- function on(el, event, fn) {
110
- el.addEventListener(event, fn, !IE11OrLess && captureMode);
111
- }
112
- function off(el, event, fn) {
113
- el.removeEventListener(event, fn, !IE11OrLess && captureMode);
114
- }
115
- function matches( /**HTMLElement*/el, /**String*/selector) {
116
- if (!selector) return;
117
- selector[0] === '>' && (selector = selector.substring(1));
118
- if (el) {
119
- try {
120
- if (el.matches) {
121
- return el.matches(selector);
122
- } else if (el.msMatchesSelector) {
123
- return el.msMatchesSelector(selector);
124
- } else if (el.webkitMatchesSelector) {
125
- return el.webkitMatchesSelector(selector);
126
- }
127
- } catch (_) {
128
- return false;
129
- }
130
- }
131
- return false;
132
- }
133
- function getParentOrHost(el) {
134
- return el.host && el !== document && el.host.nodeType && el.host !== el ? el.host : el.parentNode;
135
- }
136
- function closest( /**HTMLElement*/el, /**String*/selector, /**HTMLElement*/ctx, includeCTX) {
137
- if (el) {
138
- ctx = ctx || document;
139
- do {
140
- if (selector != null && (selector[0] === '>' ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {
141
- return el;
142
- }
143
- if (el === ctx) break;
144
- /* jshint boss:true */
145
- } while (el = getParentOrHost(el));
146
- }
147
- return null;
148
- }
149
- var R_SPACE = /\s+/g;
150
- function toggleClass(el, name, state) {
151
- if (el && name) {
152
- if (el.classList) {
153
- el.classList[state ? 'add' : 'remove'](name);
154
- } else {
155
- var className = (' ' + el.className + ' ').replace(R_SPACE, ' ').replace(' ' + name + ' ', ' ');
156
- el.className = (className + (state ? ' ' + name : '')).replace(R_SPACE, ' ');
157
- }
158
- }
159
- }
160
- function css(el, prop, val) {
161
- var style = el && el.style;
162
- if (style) {
163
- if (val === void 0) {
164
- if (document.defaultView && document.defaultView.getComputedStyle) {
165
- val = document.defaultView.getComputedStyle(el, '');
166
- } else if (el.currentStyle) {
167
- val = el.currentStyle;
168
- }
169
- return prop === void 0 ? val : val[prop];
170
- } else {
171
- if (!(prop in style) && prop.indexOf('webkit') === -1) {
172
- prop = '-webkit-' + prop;
173
- }
174
- style[prop] = val + (typeof val === 'string' ? '' : 'px');
175
- }
176
- }
177
- }
178
- function matrix(el, selfOnly) {
179
- var appliedTransforms = '';
180
- if (typeof el === 'string') {
181
- appliedTransforms = el;
182
- } else {
183
- do {
184
- var transform = css(el, 'transform');
185
- if (transform && transform !== 'none') {
186
- appliedTransforms = transform + ' ' + appliedTransforms;
187
- }
188
- /* jshint boss:true */
189
- } while (!selfOnly && (el = el.parentNode));
190
- }
191
- var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
192
- /*jshint -W056 */
193
- return matrixFn && new matrixFn(appliedTransforms);
194
- }
195
- function find(ctx, tagName, iterator) {
196
- if (ctx) {
197
- var list = ctx.getElementsByTagName(tagName),
198
- i = 0,
199
- n = list.length;
200
- if (iterator) {
201
- for (; i < n; i++) {
202
- iterator(list[i], i);
203
- }
204
- }
205
- return list;
206
- }
207
- return [];
208
- }
209
- function getWindowScrollingElement() {
210
- var scrollingElement = document.scrollingElement;
211
- if (scrollingElement) {
212
- return scrollingElement;
213
- } else {
214
- return document.documentElement;
215
- }
216
- }
217
-
218
- /**
219
- * Returns the "bounding client rect" of given element
220
- * @param {HTMLElement} el The element whose boundingClientRect is wanted
221
- * @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container
222
- * @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr
223
- * @param {[Boolean]} undoScale Whether the container's scale() should be undone
224
- * @param {[HTMLElement]} container The parent the element will be placed in
225
- * @return {Object} The boundingClientRect of el, with specified adjustments
226
- */
227
- function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {
228
- if (!el.getBoundingClientRect && el !== window) return;
229
- var elRect, top, left, bottom, right, height, width;
230
- if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {
231
- elRect = el.getBoundingClientRect();
232
- top = elRect.top;
233
- left = elRect.left;
234
- bottom = elRect.bottom;
235
- right = elRect.right;
236
- height = elRect.height;
237
- width = elRect.width;
238
- } else {
239
- top = 0;
240
- left = 0;
241
- bottom = window.innerHeight;
242
- right = window.innerWidth;
243
- height = window.innerHeight;
244
- width = window.innerWidth;
245
- }
246
- if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {
247
- // Adjust for translate()
248
- container = container || el.parentNode;
249
-
250
- // solves #1123 (see: https://stackoverflow.com/a/37953806/6088312)
251
- // Not needed on <= IE11
252
- if (!IE11OrLess) {
253
- do {
254
- if (container && container.getBoundingClientRect && (css(container, 'transform') !== 'none' || relativeToNonStaticParent && css(container, 'position') !== 'static')) {
255
- var containerRect = container.getBoundingClientRect();
256
-
257
- // Set relative to edges of padding box of container
258
- top -= containerRect.top + parseInt(css(container, 'border-top-width'));
259
- left -= containerRect.left + parseInt(css(container, 'border-left-width'));
260
- bottom = top + elRect.height;
261
- right = left + elRect.width;
262
- break;
263
- }
264
- /* jshint boss:true */
265
- } while (container = container.parentNode);
266
- }
267
- }
268
- if (undoScale && el !== window) {
269
- // Adjust for scale()
270
- var elMatrix = matrix(container || el),
271
- scaleX = elMatrix && elMatrix.a,
272
- scaleY = elMatrix && elMatrix.d;
273
- if (elMatrix) {
274
- top /= scaleY;
275
- left /= scaleX;
276
- width /= scaleX;
277
- height /= scaleY;
278
- bottom = top + height;
279
- right = left + width;
280
- }
281
- }
282
- return {
283
- top: top,
284
- left: left,
285
- bottom: bottom,
286
- right: right,
287
- width: width,
288
- height: height
289
- };
290
- }
291
-
292
- /**
293
- * Checks if a side of an element is scrolled past a side of its parents
294
- * @param {HTMLElement} el The element who's side being scrolled out of view is in question
295
- * @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')
296
- * @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')
297
- * @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element
298
- */
299
- function isScrolledPast(el, elSide, parentSide) {
300
- var parent = getParentAutoScrollElement(el, true),
301
- elSideVal = getRect(el)[elSide];
302
-
303
- /* jshint boss:true */
304
- while (parent) {
305
- var parentSideVal = getRect(parent)[parentSide],
306
- visible = void 0;
307
- {
308
- visible = elSideVal >= parentSideVal;
309
- }
310
- if (!visible) return parent;
311
- if (parent === getWindowScrollingElement()) break;
312
- parent = getParentAutoScrollElement(parent, false);
313
- }
314
- return false;
315
- }
316
-
317
- /**
318
- * Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)
319
- * and non-draggable elements
320
- * @param {HTMLElement} el The parent element
321
- * @param {Number} childNum The index of the child
322
- * @param {Object} options Parent Sortable's options
323
- * @return {HTMLElement} The child at index childNum, or null if not found
324
- */
325
- function getChild(el, childNum, options, includeDragEl) {
326
- var currentChild = 0,
327
- i = 0,
328
- children = el.children;
329
- while (i < children.length) {
330
- if (children[i].style.display !== 'none' && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {
331
- if (currentChild === childNum) {
332
- return children[i];
333
- }
334
- currentChild++;
335
- }
336
- i++;
337
- }
338
- return null;
339
- }
340
-
341
- /**
342
- * Gets the last child in the el, ignoring ghostEl or invisible elements (clones)
343
- * @param {HTMLElement} el Parent element
344
- * @param {selector} selector Any other elements that should be ignored
345
- * @return {HTMLElement} The last child, ignoring ghostEl
346
- */
347
- function lastChild(el, selector) {
348
- var last = el.lastElementChild;
349
- while (last && (last === Sortable.ghost || css(last, 'display') === 'none' || selector && !matches(last, selector))) {
350
- last = last.previousElementSibling;
351
- }
352
- return last || null;
353
- }
354
-
355
- /**
356
- * Returns the index of an element within its parent for a selected set of
357
- * elements
358
- * @param {HTMLElement} el
359
- * @param {selector} selector
360
- * @return {number}
361
- */
362
- function index(el, selector) {
363
- var index = 0;
364
- if (!el || !el.parentNode) {
365
- return -1;
366
- }
367
-
368
- /* jshint boss:true */
369
- while (el = el.previousElementSibling) {
370
- if (el.nodeName.toUpperCase() !== 'TEMPLATE' && el !== Sortable.clone && (!selector || matches(el, selector))) {
371
- index++;
372
- }
373
- }
374
- return index;
375
- }
376
-
377
- /**
378
- * Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.
379
- * The value is returned in real pixels.
380
- * @param {HTMLElement} el
381
- * @return {Array} Offsets in the format of [left, top]
382
- */
383
- function getRelativeScrollOffset(el) {
384
- var offsetLeft = 0,
385
- offsetTop = 0,
386
- winScroller = getWindowScrollingElement();
387
- if (el) {
388
- do {
389
- var elMatrix = matrix(el),
390
- scaleX = elMatrix.a,
391
- scaleY = elMatrix.d;
392
- offsetLeft += el.scrollLeft * scaleX;
393
- offsetTop += el.scrollTop * scaleY;
394
- } while (el !== winScroller && (el = el.parentNode));
395
- }
396
- return [offsetLeft, offsetTop];
397
- }
398
-
399
- /**
400
- * Returns the index of the object within the given array
401
- * @param {Array} arr Array that may or may not hold the object
402
- * @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
403
- * @return {Number} The index of the object in the array, or -1
404
- */
405
- function indexOfObject(arr, obj) {
406
- for (var i in arr) {
407
- if (!arr.hasOwnProperty(i)) continue;
408
- for (var key in obj) {
409
- if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);
410
- }
411
- }
412
- return -1;
413
- }
414
- function getParentAutoScrollElement(el, includeSelf) {
415
- // skip to window
416
- if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();
417
- var elem = el;
418
- var gotSelf = false;
419
- do {
420
- // we don't need to get elem css if it isn't even overflowing in the first place (performance)
421
- if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {
422
- var elemCSS = css(elem);
423
- if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == 'auto' || elemCSS.overflowX == 'scroll') || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == 'auto' || elemCSS.overflowY == 'scroll')) {
424
- if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();
425
- if (gotSelf || includeSelf) return elem;
426
- gotSelf = true;
427
- }
428
- }
429
- /* jshint boss:true */
430
- } while (elem = elem.parentNode);
431
- return getWindowScrollingElement();
432
- }
433
- function extend(dst, src) {
434
- if (dst && src) {
435
- for (var key in src) {
436
- if (src.hasOwnProperty(key)) {
437
- dst[key] = src[key];
438
- }
439
- }
440
- }
441
- return dst;
442
- }
443
- function isRectEqual(rect1, rect2) {
444
- 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);
445
- }
446
- var _throttleTimeout;
447
- function throttle(callback, ms) {
448
- return function () {
449
- if (!_throttleTimeout) {
450
- var args = arguments,
451
- _this = this;
452
- if (args.length === 1) {
453
- callback.call(_this, args[0]);
454
- } else {
455
- callback.apply(_this, args);
456
- }
457
- _throttleTimeout = setTimeout(function () {
458
- _throttleTimeout = void 0;
459
- }, ms);
460
- }
461
- };
462
- }
463
- function cancelThrottle() {
464
- clearTimeout(_throttleTimeout);
465
- _throttleTimeout = void 0;
466
- }
467
- function scrollBy(el, x, y) {
468
- el.scrollLeft += x;
469
- el.scrollTop += y;
470
- }
471
- function clone(el) {
472
- var Polymer = window.Polymer;
473
- var $ = window.jQuery || window.Zepto;
474
- if (Polymer && Polymer.dom) {
475
- return Polymer.dom(el).cloneNode(true);
476
- } else if ($) {
477
- return $(el).clone(true)[0];
478
- } else {
479
- return el.cloneNode(true);
480
- }
481
- }
482
- function getChildContainingRectFromElement(container, options, ghostEl) {
483
- var rect = {};
484
- Array.from(container.children).forEach(function (child) {
485
- var _rect$left, _rect$top, _rect$right, _rect$bottom;
486
- if (!closest(child, options.draggable, container, false) || child.animated || child === ghostEl) return;
487
- var childRect = getRect(child);
488
- rect.left = Math.min((_rect$left = rect.left) !== null && _rect$left !== void 0 ? _rect$left : Infinity, childRect.left);
489
- rect.top = Math.min((_rect$top = rect.top) !== null && _rect$top !== void 0 ? _rect$top : Infinity, childRect.top);
490
- rect.right = Math.max((_rect$right = rect.right) !== null && _rect$right !== void 0 ? _rect$right : -Infinity, childRect.right);
491
- rect.bottom = Math.max((_rect$bottom = rect.bottom) !== null && _rect$bottom !== void 0 ? _rect$bottom : -Infinity, childRect.bottom);
492
- });
493
- rect.width = rect.right - rect.left;
494
- rect.height = rect.bottom - rect.top;
495
- rect.x = rect.left;
496
- rect.y = rect.top;
497
- return rect;
498
- }
499
- var expando = 'Sortable' + new Date().getTime();
500
-
501
- function AnimationStateManager() {
502
- var animationStates = [],
503
- animationCallbackId;
504
- return {
505
- captureAnimationState: function captureAnimationState() {
506
- animationStates = [];
507
- if (!this.options.animation) return;
508
- var children = [].slice.call(this.el.children);
509
- children.forEach(function (child) {
510
- if (css(child, 'display') === 'none' || child === Sortable.ghost) return;
511
- animationStates.push({
512
- target: child,
513
- rect: getRect(child)
514
- });
515
- var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect);
516
-
517
- // If animating: compensate for current animation
518
- if (child.thisAnimationDuration) {
519
- var childMatrix = matrix(child, true);
520
- if (childMatrix) {
521
- fromRect.top -= childMatrix.f;
522
- fromRect.left -= childMatrix.e;
523
- }
524
- }
525
- child.fromRect = fromRect;
526
- });
527
- },
528
- addAnimationState: function addAnimationState(state) {
529
- animationStates.push(state);
530
- },
531
- removeAnimationState: function removeAnimationState(target) {
532
- animationStates.splice(indexOfObject(animationStates, {
533
- target: target
534
- }), 1);
535
- },
536
- animateAll: function animateAll(callback) {
537
- var _this = this;
538
- if (!this.options.animation) {
539
- clearTimeout(animationCallbackId);
540
- if (typeof callback === 'function') callback();
541
- return;
542
- }
543
- var animating = false,
544
- animationTime = 0;
545
- animationStates.forEach(function (state) {
546
- var time = 0,
547
- target = state.target,
548
- fromRect = target.fromRect,
549
- toRect = getRect(target),
550
- prevFromRect = target.prevFromRect,
551
- prevToRect = target.prevToRect,
552
- animatingRect = state.rect,
553
- targetMatrix = matrix(target, true);
554
- if (targetMatrix) {
555
- // Compensate for current animation
556
- toRect.top -= targetMatrix.f;
557
- toRect.left -= targetMatrix.e;
558
- }
559
- target.toRect = toRect;
560
- if (target.thisAnimationDuration) {
561
- // Could also check if animatingRect is between fromRect and toRect
562
- if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) &&
563
- // Make sure animatingRect is on line between toRect & fromRect
564
- (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {
565
- // If returning to same place as started from animation and on same axis
566
- time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);
567
- }
568
- }
569
-
570
- // if fromRect != toRect: animate
571
- if (!isRectEqual(toRect, fromRect)) {
572
- target.prevFromRect = fromRect;
573
- target.prevToRect = toRect;
574
- if (!time) {
575
- time = _this.options.animation;
576
- }
577
- _this.animate(target, animatingRect, toRect, time);
578
- }
579
- if (time) {
580
- animating = true;
581
- animationTime = Math.max(animationTime, time);
582
- clearTimeout(target.animationResetTimer);
583
- target.animationResetTimer = setTimeout(function () {
584
- target.animationTime = 0;
585
- target.prevFromRect = null;
586
- target.fromRect = null;
587
- target.prevToRect = null;
588
- target.thisAnimationDuration = null;
589
- }, time);
590
- target.thisAnimationDuration = time;
591
- }
592
- });
593
- clearTimeout(animationCallbackId);
594
- if (!animating) {
595
- if (typeof callback === 'function') callback();
596
- } else {
597
- animationCallbackId = setTimeout(function () {
598
- if (typeof callback === 'function') callback();
599
- }, animationTime);
600
- }
601
- animationStates = [];
602
- },
603
- animate: function animate(target, currentRect, toRect, duration) {
604
- if (duration) {
605
- css(target, 'transition', '');
606
- css(target, 'transform', '');
607
- var elMatrix = matrix(this.el),
608
- scaleX = elMatrix && elMatrix.a,
609
- scaleY = elMatrix && elMatrix.d,
610
- translateX = (currentRect.left - toRect.left) / (scaleX || 1),
611
- translateY = (currentRect.top - toRect.top) / (scaleY || 1);
612
- target.animatingX = !!translateX;
613
- target.animatingY = !!translateY;
614
- css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)');
615
- this.forRepaintDummy = repaint(target); // repaint
616
-
617
- css(target, 'transition', 'transform ' + duration + 'ms' + (this.options.easing ? ' ' + this.options.easing : ''));
618
- css(target, 'transform', 'translate3d(0,0,0)');
619
- typeof target.animated === 'number' && clearTimeout(target.animated);
620
- target.animated = setTimeout(function () {
621
- css(target, 'transition', '');
622
- css(target, 'transform', '');
623
- target.animated = false;
624
- target.animatingX = false;
625
- target.animatingY = false;
626
- }, duration);
627
- }
628
- }
629
- };
630
- }
631
- function repaint(target) {
632
- return target.offsetWidth;
633
- }
634
- function calculateRealTime(animatingRect, fromRect, toRect, options) {
635
- 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;
636
- }
637
-
638
- var plugins = [];
639
- var defaults = {
640
- initializeByDefault: true
641
- };
642
- var PluginManager = {
643
- mount: function mount(plugin) {
644
- // Set default static properties
645
- for (var option in defaults) {
646
- if (defaults.hasOwnProperty(option) && !(option in plugin)) {
647
- plugin[option] = defaults[option];
648
- }
649
- }
650
- plugins.forEach(function (p) {
651
- if (p.pluginName === plugin.pluginName) {
652
- throw "Sortable: Cannot mount plugin ".concat(plugin.pluginName, " more than once");
653
- }
654
- });
655
- plugins.push(plugin);
656
- },
657
- pluginEvent: function pluginEvent(eventName, sortable, evt) {
658
- var _this = this;
659
- this.eventCanceled = false;
660
- evt.cancel = function () {
661
- _this.eventCanceled = true;
662
- };
663
- var eventNameGlobal = eventName + 'Global';
664
- plugins.forEach(function (plugin) {
665
- if (!sortable[plugin.pluginName]) return;
666
- // Fire global events if it exists in this sortable
667
- if (sortable[plugin.pluginName][eventNameGlobal]) {
668
- sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({
669
- sortable: sortable
670
- }, evt));
671
- }
672
-
673
- // Only fire plugin event if plugin is enabled in this sortable,
674
- // and plugin has event defined
675
- if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {
676
- sortable[plugin.pluginName][eventName](_objectSpread2({
677
- sortable: sortable
678
- }, evt));
679
- }
680
- });
681
- },
682
- initializePlugins: function initializePlugins(sortable, el, defaults, options) {
683
- plugins.forEach(function (plugin) {
684
- var pluginName = plugin.pluginName;
685
- if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;
686
- var initialized = new plugin(sortable, el, sortable.options);
687
- initialized.sortable = sortable;
688
- initialized.options = sortable.options;
689
- sortable[pluginName] = initialized;
690
-
691
- // Add default options from plugin
692
- _extends(defaults, initialized.defaults);
693
- });
694
- for (var option in sortable.options) {
695
- if (!sortable.options.hasOwnProperty(option)) continue;
696
- var modified = this.modifyOption(sortable, option, sortable.options[option]);
697
- if (typeof modified !== 'undefined') {
698
- sortable.options[option] = modified;
699
- }
700
- }
701
- },
702
- getEventProperties: function getEventProperties(name, sortable) {
703
- var eventProperties = {};
704
- plugins.forEach(function (plugin) {
705
- if (typeof plugin.eventProperties !== 'function') return;
706
- _extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));
707
- });
708
- return eventProperties;
709
- },
710
- modifyOption: function modifyOption(sortable, name, value) {
711
- var modifiedValue;
712
- plugins.forEach(function (plugin) {
713
- // Plugin must exist on the Sortable
714
- if (!sortable[plugin.pluginName]) return;
715
-
716
- // If static option listener exists for this option, call in the context of the Sortable's instance of this plugin
717
- if (plugin.optionListeners && typeof plugin.optionListeners[name] === 'function') {
718
- modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);
719
- }
720
- });
721
- return modifiedValue;
722
- }
723
- };
724
-
725
- function dispatchEvent(_ref) {
726
- var sortable = _ref.sortable,
727
- rootEl = _ref.rootEl,
728
- name = _ref.name,
729
- targetEl = _ref.targetEl,
730
- cloneEl = _ref.cloneEl,
731
- toEl = _ref.toEl,
732
- fromEl = _ref.fromEl,
733
- oldIndex = _ref.oldIndex,
734
- newIndex = _ref.newIndex,
735
- oldDraggableIndex = _ref.oldDraggableIndex,
736
- newDraggableIndex = _ref.newDraggableIndex,
737
- originalEvent = _ref.originalEvent,
738
- putSortable = _ref.putSortable,
739
- extraEventProperties = _ref.extraEventProperties;
740
- sortable = sortable || rootEl && rootEl[expando];
741
- if (!sortable) return;
742
- var evt,
743
- options = sortable.options,
744
- onName = 'on' + name.charAt(0).toUpperCase() + name.substr(1);
745
- // Support for new CustomEvent feature
746
- if (window.CustomEvent && !IE11OrLess && !Edge) {
747
- evt = new CustomEvent(name, {
748
- bubbles: true,
749
- cancelable: true
750
- });
751
- } else {
752
- evt = document.createEvent('Event');
753
- evt.initEvent(name, true, true);
754
- }
755
- evt.to = toEl || rootEl;
756
- evt.from = fromEl || rootEl;
757
- evt.item = targetEl || rootEl;
758
- evt.clone = cloneEl;
759
- evt.oldIndex = oldIndex;
760
- evt.newIndex = newIndex;
761
- evt.oldDraggableIndex = oldDraggableIndex;
762
- evt.newDraggableIndex = newDraggableIndex;
763
- evt.originalEvent = originalEvent;
764
- evt.pullMode = putSortable ? putSortable.lastPutMode : undefined;
765
- var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));
766
- for (var option in allEventProperties) {
767
- evt[option] = allEventProperties[option];
768
- }
769
- if (rootEl) {
770
- rootEl.dispatchEvent(evt);
771
- }
772
- if (options[onName]) {
773
- options[onName].call(sortable, evt);
774
- }
775
- }
776
-
777
- var _excluded = ["evt"];
778
- var pluginEvent = function pluginEvent(eventName, sortable) {
779
- var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
780
- originalEvent = _ref.evt,
781
- data = _objectWithoutProperties(_ref, _excluded);
782
- PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({
783
- dragEl: dragEl,
784
- parentEl: parentEl,
785
- ghostEl: ghostEl,
786
- rootEl: rootEl,
787
- nextEl: nextEl,
788
- lastDownEl: lastDownEl,
789
- cloneEl: cloneEl,
790
- cloneHidden: cloneHidden,
791
- dragStarted: moved,
792
- putSortable: putSortable,
793
- activeSortable: Sortable.active,
794
- originalEvent: originalEvent,
795
- oldIndex: oldIndex,
796
- oldDraggableIndex: oldDraggableIndex,
797
- newIndex: newIndex,
798
- newDraggableIndex: newDraggableIndex,
799
- hideGhostForTarget: _hideGhostForTarget,
800
- unhideGhostForTarget: _unhideGhostForTarget,
801
- cloneNowHidden: function cloneNowHidden() {
802
- cloneHidden = true;
803
- },
804
- cloneNowShown: function cloneNowShown() {
805
- cloneHidden = false;
806
- },
807
- dispatchSortableEvent: function dispatchSortableEvent(name) {
808
- _dispatchEvent({
809
- sortable: sortable,
810
- name: name,
811
- originalEvent: originalEvent
812
- });
813
- }
814
- }, data));
815
- };
816
- function _dispatchEvent(info) {
817
- dispatchEvent(_objectSpread2({
818
- putSortable: putSortable,
819
- cloneEl: cloneEl,
820
- targetEl: dragEl,
821
- rootEl: rootEl,
822
- oldIndex: oldIndex,
823
- oldDraggableIndex: oldDraggableIndex,
824
- newIndex: newIndex,
825
- newDraggableIndex: newDraggableIndex
826
- }, info));
827
- }
828
- var dragEl,
829
- parentEl,
830
- ghostEl,
831
- rootEl,
832
- nextEl,
833
- lastDownEl,
834
- cloneEl,
835
- cloneHidden,
836
- oldIndex,
837
- newIndex,
838
- oldDraggableIndex,
839
- newDraggableIndex,
840
- activeGroup,
841
- putSortable,
842
- awaitingDragStarted = false,
843
- ignoreNextClick = false,
844
- sortables = [],
845
- tapEvt,
846
- touchEvt,
847
- lastDx,
848
- lastDy,
849
- tapDistanceLeft,
850
- tapDistanceTop,
851
- moved,
852
- lastTarget,
853
- lastDirection,
854
- pastFirstInvertThresh = false,
855
- isCircumstantialInvert = false,
856
- targetMoveDistance,
857
- // For positioning ghost absolutely
858
- ghostRelativeParent,
859
- ghostRelativeParentInitialScroll = [],
860
- // (left, top)
861
-
862
- _silent = false,
863
- savedInputChecked = [];
864
-
865
- /** @const */
866
- var documentExists = typeof document !== 'undefined',
867
- PositionGhostAbsolutely = IOS,
868
- CSSFloatProperty = Edge || IE11OrLess ? 'cssFloat' : 'float',
869
- // This will not pass for IE9, because IE9 DnD only works on anchors
870
- supportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in document.createElement('div'),
871
- supportCssPointerEvents = function () {
872
- if (!documentExists) return;
873
- // false when <= IE11
874
- if (IE11OrLess) {
875
- return false;
876
- }
877
- var el = document.createElement('x');
878
- el.style.cssText = 'pointer-events:auto';
879
- return el.style.pointerEvents === 'auto';
880
- }(),
881
- _detectDirection = function _detectDirection(el, options) {
882
- var elCSS = css(el),
883
- elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth),
884
- child1 = getChild(el, 0, options),
885
- child2 = getChild(el, 1, options),
886
- firstChildCSS = child1 && css(child1),
887
- secondChildCSS = child2 && css(child2),
888
- firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width,
889
- secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;
890
- if (elCSS.display === 'flex') {
891
- return elCSS.flexDirection === 'column' || elCSS.flexDirection === 'column-reverse' ? 'vertical' : 'horizontal';
892
- }
893
- if (elCSS.display === 'grid') {
894
- return elCSS.gridTemplateColumns.split(' ').length <= 1 ? 'vertical' : 'horizontal';
895
- }
896
- if (child1 && firstChildCSS["float"] && firstChildCSS["float"] !== 'none') {
897
- var touchingSideChild2 = firstChildCSS["float"] === 'left' ? 'left' : 'right';
898
- return child2 && (secondChildCSS.clear === 'both' || secondChildCSS.clear === touchingSideChild2) ? 'vertical' : 'horizontal';
899
- }
900
- 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';
901
- },
902
- _dragElInRowColumn = function _dragElInRowColumn(dragRect, targetRect, vertical) {
903
- var dragElS1Opp = vertical ? dragRect.left : dragRect.top,
904
- dragElS2Opp = vertical ? dragRect.right : dragRect.bottom,
905
- dragElOppLength = vertical ? dragRect.width : dragRect.height,
906
- targetS1Opp = vertical ? targetRect.left : targetRect.top,
907
- targetS2Opp = vertical ? targetRect.right : targetRect.bottom,
908
- targetOppLength = vertical ? targetRect.width : targetRect.height;
909
- return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
910
- },
911
- /**
912
- * Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
913
- * @param {Number} x X position
914
- * @param {Number} y Y position
915
- * @return {HTMLElement} Element of the first found nearest Sortable
916
- */
917
- _detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
918
- var ret;
919
- sortables.some(function (sortable) {
920
- var threshold = sortable[expando].options.emptyInsertThreshold;
921
- if (!threshold || lastChild(sortable)) return;
922
- var rect = getRect(sortable),
923
- insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold,
924
- insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;
925
- if (insideHorizontally && insideVertically) {
926
- return ret = sortable;
927
- }
928
- });
929
- return ret;
930
- },
931
- _prepareGroup = function _prepareGroup(options) {
932
- function toFn(value, pull) {
933
- return function (to, from, dragEl, evt) {
934
- var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;
935
- if (value == null && (pull || sameGroup)) {
936
- // Default pull value
937
- // Default pull and put value if same group
938
- return true;
939
- } else if (value == null || value === false) {
940
- return false;
941
- } else if (pull && value === 'clone') {
942
- return value;
943
- } else if (typeof value === 'function') {
944
- return toFn(value(to, from, dragEl, evt), pull)(to, from, dragEl, evt);
945
- } else {
946
- var otherGroup = (pull ? to : from).options.group.name;
947
- return value === true || typeof value === 'string' && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;
948
- }
949
- };
950
- }
951
- var group = {};
952
- var originalGroup = options.group;
953
- if (!originalGroup || _typeof(originalGroup) != 'object') {
954
- originalGroup = {
955
- name: originalGroup
956
- };
957
- }
958
- group.name = originalGroup.name;
959
- group.checkPull = toFn(originalGroup.pull, true);
960
- group.checkPut = toFn(originalGroup.put);
961
- group.revertClone = originalGroup.revertClone;
962
- options.group = group;
963
- },
964
- _hideGhostForTarget = function _hideGhostForTarget() {
965
- if (!supportCssPointerEvents && ghostEl) {
966
- css(ghostEl, 'display', 'none');
967
- }
968
- },
969
- _unhideGhostForTarget = function _unhideGhostForTarget() {
970
- if (!supportCssPointerEvents && ghostEl) {
971
- css(ghostEl, 'display', '');
972
- }
973
- };
974
-
975
- // #1184 fix - Prevent click event on fallback if dragged but item not changed position
976
- if (documentExists && !ChromeForAndroid) {
977
- document.addEventListener('click', function (evt) {
978
- if (ignoreNextClick) {
979
- evt.preventDefault();
980
- evt.stopPropagation && evt.stopPropagation();
981
- evt.stopImmediatePropagation && evt.stopImmediatePropagation();
982
- ignoreNextClick = false;
983
- return false;
984
- }
985
- }, true);
986
- }
987
- var nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) {
988
- if (dragEl) {
989
- evt = evt.touches ? evt.touches[0] : evt;
990
- var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);
991
- if (nearest) {
992
- // Create imitation event
993
- var event = {};
994
- for (var i in evt) {
995
- if (evt.hasOwnProperty(i)) {
996
- event[i] = evt[i];
997
- }
998
- }
999
- event.target = event.rootEl = nearest;
1000
- event.preventDefault = void 0;
1001
- event.stopPropagation = void 0;
1002
- nearest[expando]._onDragOver(event);
1003
- }
1004
- }
1005
- };
1006
- var _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {
1007
- if (dragEl) {
1008
- dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
1009
- }
1010
- };
1011
-
1012
- /**
1013
- * @class Sortable
1014
- * @param {HTMLElement} el
1015
- * @param {Object} [options]
1016
- */
1017
- function Sortable(el, options) {
1018
- if (!(el && el.nodeType && el.nodeType === 1)) {
1019
- throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(el));
1020
- }
1021
- this.el = el; // root element
1022
- this.options = options = _extends({}, options);
1023
-
1024
- // Export instance
1025
- el[expando] = this;
1026
- var defaults = {
1027
- group: null,
1028
- sort: true,
1029
- disabled: false,
1030
- store: null,
1031
- handle: null,
1032
- draggable: /^[uo]l$/i.test(el.nodeName) ? '>li' : '>*',
1033
- swapThreshold: 1,
1034
- // percentage; 0 <= x <= 1
1035
- invertSwap: false,
1036
- // invert always
1037
- invertedSwapThreshold: null,
1038
- // will be set to same as swapThreshold if default
1039
- removeCloneOnHide: true,
1040
- direction: function direction() {
1041
- return _detectDirection(el, this.options);
1042
- },
1043
- ghostClass: 'sortable-ghost',
1044
- chosenClass: 'sortable-chosen',
1045
- dragClass: 'sortable-drag',
1046
- ignore: 'a, img',
1047
- filter: null,
1048
- preventOnFilter: true,
1049
- animation: 0,
1050
- easing: null,
1051
- setData: function setData(dataTransfer, dragEl) {
1052
- dataTransfer.setData('Text', dragEl.textContent);
1053
- },
1054
- dropBubble: false,
1055
- dragoverBubble: false,
1056
- dataIdAttr: 'data-id',
1057
- delay: 0,
1058
- delayOnTouchOnly: false,
1059
- touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
1060
- forceFallback: false,
1061
- fallbackClass: 'sortable-fallback',
1062
- fallbackOnBody: false,
1063
- fallbackTolerance: 0,
1064
- fallbackOffset: {
1065
- x: 0,
1066
- y: 0
1067
- },
1068
- // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
1069
- supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && (!Safari || IOS),
1070
- emptyInsertThreshold: 5
1071
- };
1072
- PluginManager.initializePlugins(this, el, defaults);
1073
-
1074
- // Set default options
1075
- for (var name in defaults) {
1076
- !(name in options) && (options[name] = defaults[name]);
1077
- }
1078
- _prepareGroup(options);
1079
-
1080
- // Bind all private methods
1081
- for (var fn in this) {
1082
- if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {
1083
- this[fn] = this[fn].bind(this);
1084
- }
1085
- }
1086
-
1087
- // Setup drag mode
1088
- this.nativeDraggable = options.forceFallback ? false : supportDraggable;
1089
- if (this.nativeDraggable) {
1090
- // Touch start threshold cannot be greater than the native dragstart threshold
1091
- this.options.touchStartThreshold = 1;
1092
- }
1093
-
1094
- // Bind events
1095
- if (options.supportPointer) {
1096
- on(el, 'pointerdown', this._onTapStart);
1097
- } else {
1098
- on(el, 'mousedown', this._onTapStart);
1099
- on(el, 'touchstart', this._onTapStart);
1100
- }
1101
- if (this.nativeDraggable) {
1102
- on(el, 'dragover', this);
1103
- on(el, 'dragenter', this);
1104
- }
1105
- sortables.push(this.el);
1106
-
1107
- // Restore sorting
1108
- options.store && options.store.get && this.sort(options.store.get(this) || []);
1109
-
1110
- // Add animation state manager
1111
- _extends(this, AnimationStateManager());
1112
- }
1113
- Sortable.prototype = /** @lends Sortable.prototype */{
1114
- constructor: Sortable,
1115
- _isOutsideThisEl: function _isOutsideThisEl(target) {
1116
- if (!this.el.contains(target) && target !== this.el) {
1117
- lastTarget = null;
1118
- }
1119
- },
1120
- _getDirection: function _getDirection(evt, target) {
1121
- return typeof this.options.direction === 'function' ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;
1122
- },
1123
- _onTapStart: function _onTapStart( /** Event|TouchEvent */evt) {
1124
- if (!evt.cancelable) return;
1125
- var _this = this,
1126
- el = this.el,
1127
- options = this.options,
1128
- preventOnFilter = options.preventOnFilter,
1129
- type = evt.type,
1130
- touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === 'touch' && evt,
1131
- target = (touch || evt).target,
1132
- originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target,
1133
- filter = options.filter;
1134
- _saveInputCheckedState(el);
1135
-
1136
- // Don't trigger start event when an element is been dragged, otherwise the evt.oldindex always wrong when set option.group.
1137
- if (dragEl) {
1138
- return;
1139
- }
1140
- if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {
1141
- return; // only left button and enabled
1142
- }
1143
-
1144
- // cancel dnd if original target is content editable
1145
- if (originalTarget.isContentEditable) {
1146
- return;
1147
- }
1148
-
1149
- // Safari ignores further event handling after mousedown
1150
- if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === 'SELECT') {
1151
- return;
1152
- }
1153
- target = closest(target, options.draggable, el, false);
1154
- if (target && target.animated) {
1155
- return;
1156
- }
1157
- if (lastDownEl === target) {
1158
- // Ignoring duplicate `down`
1159
- return;
1160
- }
1161
-
1162
- // Get the index of the dragged element within its parent
1163
- oldIndex = index(target);
1164
- oldDraggableIndex = index(target, options.draggable);
1165
-
1166
- // Check filter
1167
- if (typeof filter === 'function') {
1168
- if (filter.call(this, evt, target, this)) {
1169
- _dispatchEvent({
1170
- sortable: _this,
1171
- rootEl: originalTarget,
1172
- name: 'filter',
1173
- targetEl: target,
1174
- toEl: el,
1175
- fromEl: el
1176
- });
1177
- pluginEvent('filter', _this, {
1178
- evt: evt
1179
- });
1180
- preventOnFilter && evt.preventDefault();
1181
- return; // cancel dnd
1182
- }
1183
- } else if (filter) {
1184
- filter = filter.split(',').some(function (criteria) {
1185
- criteria = closest(originalTarget, criteria.trim(), el, false);
1186
- if (criteria) {
1187
- _dispatchEvent({
1188
- sortable: _this,
1189
- rootEl: criteria,
1190
- name: 'filter',
1191
- targetEl: target,
1192
- fromEl: el,
1193
- toEl: el
1194
- });
1195
- pluginEvent('filter', _this, {
1196
- evt: evt
1197
- });
1198
- return true;
1199
- }
1200
- });
1201
- if (filter) {
1202
- preventOnFilter && evt.preventDefault();
1203
- return; // cancel dnd
1204
- }
1205
- }
1206
- if (options.handle && !closest(originalTarget, options.handle, el, false)) {
1207
- return;
1208
- }
1209
-
1210
- // Prepare `dragstart`
1211
- this._prepareDragStart(evt, touch, target);
1212
- },
1213
- _prepareDragStart: function _prepareDragStart( /** Event */evt, /** Touch */touch, /** HTMLElement */target) {
1214
- var _this = this,
1215
- el = _this.el,
1216
- options = _this.options,
1217
- ownerDocument = el.ownerDocument,
1218
- dragStartFn;
1219
- if (target && !dragEl && target.parentNode === el) {
1220
- var dragRect = getRect(target);
1221
- rootEl = el;
1222
- dragEl = target;
1223
- parentEl = dragEl.parentNode;
1224
- nextEl = dragEl.nextSibling;
1225
- lastDownEl = target;
1226
- activeGroup = options.group;
1227
- Sortable.dragged = dragEl;
1228
- tapEvt = {
1229
- target: dragEl,
1230
- clientX: (touch || evt).clientX,
1231
- clientY: (touch || evt).clientY
1232
- };
1233
- tapDistanceLeft = tapEvt.clientX - dragRect.left;
1234
- tapDistanceTop = tapEvt.clientY - dragRect.top;
1235
- this._lastX = (touch || evt).clientX;
1236
- this._lastY = (touch || evt).clientY;
1237
- dragEl.style['will-change'] = 'all';
1238
- dragStartFn = function dragStartFn() {
1239
- pluginEvent('delayEnded', _this, {
1240
- evt: evt
1241
- });
1242
- if (Sortable.eventCanceled) {
1243
- _this._onDrop();
1244
- return;
1245
- }
1246
- // Delayed drag has been triggered
1247
- // we can re-enable the events: touchmove/mousemove
1248
- _this._disableDelayedDragEvents();
1249
- if (!FireFox && _this.nativeDraggable) {
1250
- dragEl.draggable = true;
1251
- }
1252
-
1253
- // Bind the events: dragstart/dragend
1254
- _this._triggerDragStart(evt, touch);
1255
-
1256
- // Drag start event
1257
- _dispatchEvent({
1258
- sortable: _this,
1259
- name: 'choose',
1260
- originalEvent: evt
1261
- });
1262
-
1263
- // Chosen item
1264
- toggleClass(dragEl, options.chosenClass, true);
1265
- };
1266
-
1267
- // Disable "draggable"
1268
- options.ignore.split(',').forEach(function (criteria) {
1269
- find(dragEl, criteria.trim(), _disableDraggable);
1270
- });
1271
- on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent);
1272
- on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent);
1273
- on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent);
1274
- if (options.supportPointer) {
1275
- on(ownerDocument, 'pointerup', _this._onDrop);
1276
- // Native D&D triggers pointercancel
1277
- !this.nativeDraggable && on(ownerDocument, 'pointercancel', _this._onDrop);
1278
- } else {
1279
- on(ownerDocument, 'mouseup', _this._onDrop);
1280
- on(ownerDocument, 'touchend', _this._onDrop);
1281
- on(ownerDocument, 'touchcancel', _this._onDrop);
1282
- }
1283
-
1284
- // Make dragEl draggable (must be before delay for FireFox)
1285
- if (FireFox && this.nativeDraggable) {
1286
- this.options.touchStartThreshold = 4;
1287
- dragEl.draggable = true;
1288
- }
1289
- pluginEvent('delayStart', this, {
1290
- evt: evt
1291
- });
1292
-
1293
- // Delay is impossible for native DnD in Edge or IE
1294
- if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {
1295
- if (Sortable.eventCanceled) {
1296
- this._onDrop();
1297
- return;
1298
- }
1299
- // If the user moves the pointer or let go the click or touch
1300
- // before the delay has been reached:
1301
- // disable the delayed drag
1302
- if (options.supportPointer) {
1303
- on(ownerDocument, 'pointerup', _this._disableDelayedDrag);
1304
- on(ownerDocument, 'pointercancel', _this._disableDelayedDrag);
1305
- } else {
1306
- on(ownerDocument, 'mouseup', _this._disableDelayedDrag);
1307
- on(ownerDocument, 'touchend', _this._disableDelayedDrag);
1308
- on(ownerDocument, 'touchcancel', _this._disableDelayedDrag);
1309
- }
1310
- on(ownerDocument, 'mousemove', _this._delayedDragTouchMoveHandler);
1311
- on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler);
1312
- options.supportPointer && on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler);
1313
- _this._dragStartTimer = setTimeout(dragStartFn, options.delay);
1314
- } else {
1315
- dragStartFn();
1316
- }
1317
- }
1318
- },
1319
- _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler( /** TouchEvent|PointerEvent **/e) {
1320
- var touch = e.touches ? e.touches[0] : e;
1321
- 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))) {
1322
- this._disableDelayedDrag();
1323
- }
1324
- },
1325
- _disableDelayedDrag: function _disableDelayedDrag() {
1326
- dragEl && _disableDraggable(dragEl);
1327
- clearTimeout(this._dragStartTimer);
1328
- this._disableDelayedDragEvents();
1329
- },
1330
- _disableDelayedDragEvents: function _disableDelayedDragEvents() {
1331
- var ownerDocument = this.el.ownerDocument;
1332
- off(ownerDocument, 'mouseup', this._disableDelayedDrag);
1333
- off(ownerDocument, 'touchend', this._disableDelayedDrag);
1334
- off(ownerDocument, 'touchcancel', this._disableDelayedDrag);
1335
- off(ownerDocument, 'pointerup', this._disableDelayedDrag);
1336
- off(ownerDocument, 'pointercancel', this._disableDelayedDrag);
1337
- off(ownerDocument, 'mousemove', this._delayedDragTouchMoveHandler);
1338
- off(ownerDocument, 'touchmove', this._delayedDragTouchMoveHandler);
1339
- off(ownerDocument, 'pointermove', this._delayedDragTouchMoveHandler);
1340
- },
1341
- _triggerDragStart: function _triggerDragStart( /** Event */evt, /** Touch */touch) {
1342
- touch = touch || evt.pointerType == 'touch' && evt;
1343
- if (!this.nativeDraggable || touch) {
1344
- if (this.options.supportPointer) {
1345
- on(document, 'pointermove', this._onTouchMove);
1346
- } else if (touch) {
1347
- on(document, 'touchmove', this._onTouchMove);
1348
- } else {
1349
- on(document, 'mousemove', this._onTouchMove);
1350
- }
1351
- } else {
1352
- on(dragEl, 'dragend', this);
1353
- on(rootEl, 'dragstart', this._onDragStart);
1354
- }
1355
- try {
1356
- if (document.selection) {
1357
- _nextTick(function () {
1358
- document.selection.empty();
1359
- });
1360
- } else {
1361
- window.getSelection().removeAllRanges();
1362
- }
1363
- } catch (err) {}
1364
- },
1365
- _dragStarted: function _dragStarted(fallback, evt) {
1366
- awaitingDragStarted = false;
1367
- if (rootEl && dragEl) {
1368
- pluginEvent('dragStarted', this, {
1369
- evt: evt
1370
- });
1371
- if (this.nativeDraggable) {
1372
- on(document, 'dragover', _checkOutsideTargetEl);
1373
- }
1374
- var options = this.options;
1375
-
1376
- // Apply effect
1377
- !fallback && toggleClass(dragEl, options.dragClass, false);
1378
- toggleClass(dragEl, options.ghostClass, true);
1379
- Sortable.active = this;
1380
- fallback && this._appendGhost();
1381
-
1382
- // Drag start event
1383
- _dispatchEvent({
1384
- sortable: this,
1385
- name: 'start',
1386
- originalEvent: evt
1387
- });
1388
- } else {
1389
- this._nulling();
1390
- }
1391
- },
1392
- _emulateDragOver: function _emulateDragOver() {
1393
- if (touchEvt) {
1394
- this._lastX = touchEvt.clientX;
1395
- this._lastY = touchEvt.clientY;
1396
- _hideGhostForTarget();
1397
- var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
1398
- var parent = target;
1399
- while (target && target.shadowRoot) {
1400
- target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
1401
- if (target === parent) break;
1402
- parent = target;
1403
- }
1404
- dragEl.parentNode[expando]._isOutsideThisEl(target);
1405
- if (parent) {
1406
- do {
1407
- if (parent[expando]) {
1408
- var inserted = void 0;
1409
- inserted = parent[expando]._onDragOver({
1410
- clientX: touchEvt.clientX,
1411
- clientY: touchEvt.clientY,
1412
- target: target,
1413
- rootEl: parent
1414
- });
1415
- if (inserted && !this.options.dragoverBubble) {
1416
- break;
1417
- }
1418
- }
1419
- target = parent; // store last element
1420
- }
1421
- /* jshint boss:true */ while (parent = getParentOrHost(parent));
1422
- }
1423
- _unhideGhostForTarget();
1424
- }
1425
- },
1426
- _onTouchMove: function _onTouchMove( /**TouchEvent*/evt) {
1427
- if (tapEvt) {
1428
- var options = this.options,
1429
- fallbackTolerance = options.fallbackTolerance,
1430
- fallbackOffset = options.fallbackOffset,
1431
- touch = evt.touches ? evt.touches[0] : evt,
1432
- ghostMatrix = ghostEl && matrix(ghostEl, true),
1433
- scaleX = ghostEl && ghostMatrix && ghostMatrix.a,
1434
- scaleY = ghostEl && ghostMatrix && ghostMatrix.d,
1435
- relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent),
1436
- dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1),
1437
- dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1);
1438
-
1439
- // only set the status to dragging, when we are actually dragging
1440
- if (!Sortable.active && !awaitingDragStarted) {
1441
- if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {
1442
- return;
1443
- }
1444
- this._onDragStart(evt, true);
1445
- }
1446
- if (ghostEl) {
1447
- if (ghostMatrix) {
1448
- ghostMatrix.e += dx - (lastDx || 0);
1449
- ghostMatrix.f += dy - (lastDy || 0);
1450
- } else {
1451
- ghostMatrix = {
1452
- a: 1,
1453
- b: 0,
1454
- c: 0,
1455
- d: 1,
1456
- e: dx,
1457
- f: dy
1458
- };
1459
- }
1460
- var cssMatrix = "matrix(".concat(ghostMatrix.a, ",").concat(ghostMatrix.b, ",").concat(ghostMatrix.c, ",").concat(ghostMatrix.d, ",").concat(ghostMatrix.e, ",").concat(ghostMatrix.f, ")");
1461
- css(ghostEl, 'webkitTransform', cssMatrix);
1462
- css(ghostEl, 'mozTransform', cssMatrix);
1463
- css(ghostEl, 'msTransform', cssMatrix);
1464
- css(ghostEl, 'transform', cssMatrix);
1465
- lastDx = dx;
1466
- lastDy = dy;
1467
- touchEvt = touch;
1468
- }
1469
- evt.cancelable && evt.preventDefault();
1470
- }
1471
- },
1472
- _appendGhost: function _appendGhost() {
1473
- // Bug if using scale(): https://stackoverflow.com/questions/2637058
1474
- // Not being adjusted for
1475
- if (!ghostEl) {
1476
- var container = this.options.fallbackOnBody ? document.body : rootEl,
1477
- rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container),
1478
- options = this.options;
1479
-
1480
- // Position absolutely
1481
- if (PositionGhostAbsolutely) {
1482
- // Get relatively positioned parent
1483
- ghostRelativeParent = container;
1484
- while (css(ghostRelativeParent, 'position') === 'static' && css(ghostRelativeParent, 'transform') === 'none' && ghostRelativeParent !== document) {
1485
- ghostRelativeParent = ghostRelativeParent.parentNode;
1486
- }
1487
- if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {
1488
- if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();
1489
- rect.top += ghostRelativeParent.scrollTop;
1490
- rect.left += ghostRelativeParent.scrollLeft;
1491
- } else {
1492
- ghostRelativeParent = getWindowScrollingElement();
1493
- }
1494
- ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);
1495
- }
1496
- ghostEl = dragEl.cloneNode(true);
1497
- toggleClass(ghostEl, options.ghostClass, false);
1498
- toggleClass(ghostEl, options.fallbackClass, true);
1499
- toggleClass(ghostEl, options.dragClass, true);
1500
- css(ghostEl, 'transition', '');
1501
- css(ghostEl, 'transform', '');
1502
- css(ghostEl, 'box-sizing', 'border-box');
1503
- css(ghostEl, 'margin', 0);
1504
- css(ghostEl, 'top', rect.top);
1505
- css(ghostEl, 'left', rect.left);
1506
- css(ghostEl, 'width', rect.width);
1507
- css(ghostEl, 'height', rect.height);
1508
- css(ghostEl, 'opacity', '0.8');
1509
- css(ghostEl, 'position', PositionGhostAbsolutely ? 'absolute' : 'fixed');
1510
- css(ghostEl, 'zIndex', '100000');
1511
- css(ghostEl, 'pointerEvents', 'none');
1512
- Sortable.ghost = ghostEl;
1513
- container.appendChild(ghostEl);
1514
-
1515
- // Set transform-origin
1516
- css(ghostEl, 'transform-origin', tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + '% ' + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + '%');
1517
- }
1518
- },
1519
- _onDragStart: function _onDragStart( /**Event*/evt, /**boolean*/fallback) {
1520
- var _this = this;
1521
- var dataTransfer = evt.dataTransfer;
1522
- var options = _this.options;
1523
- pluginEvent('dragStart', this, {
1524
- evt: evt
1525
- });
1526
- if (Sortable.eventCanceled) {
1527
- this._onDrop();
1528
- return;
1529
- }
1530
- pluginEvent('setupClone', this);
1531
- if (!Sortable.eventCanceled) {
1532
- cloneEl = clone(dragEl);
1533
- cloneEl.removeAttribute("id");
1534
- cloneEl.draggable = false;
1535
- cloneEl.style['will-change'] = '';
1536
- this._hideClone();
1537
- toggleClass(cloneEl, this.options.chosenClass, false);
1538
- Sortable.clone = cloneEl;
1539
- }
1540
-
1541
- // #1143: IFrame support workaround
1542
- _this.cloneId = _nextTick(function () {
1543
- pluginEvent('clone', _this);
1544
- if (Sortable.eventCanceled) return;
1545
- if (!_this.options.removeCloneOnHide) {
1546
- rootEl.insertBefore(cloneEl, dragEl);
1547
- }
1548
- _this._hideClone();
1549
- _dispatchEvent({
1550
- sortable: _this,
1551
- name: 'clone'
1552
- });
1553
- });
1554
- !fallback && toggleClass(dragEl, options.dragClass, true);
1555
-
1556
- // Set proper drop events
1557
- if (fallback) {
1558
- ignoreNextClick = true;
1559
- _this._loopId = setInterval(_this._emulateDragOver, 50);
1560
- } else {
1561
- // Undo what was set in _prepareDragStart before drag started
1562
- off(document, 'mouseup', _this._onDrop);
1563
- off(document, 'touchend', _this._onDrop);
1564
- off(document, 'touchcancel', _this._onDrop);
1565
- if (dataTransfer) {
1566
- dataTransfer.effectAllowed = 'move';
1567
- options.setData && options.setData.call(_this, dataTransfer, dragEl);
1568
- }
1569
- on(document, 'drop', _this);
1570
-
1571
- // #1276 fix:
1572
- css(dragEl, 'transform', 'translateZ(0)');
1573
- }
1574
- awaitingDragStarted = true;
1575
- _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
1576
- on(document, 'selectstart', _this);
1577
- moved = true;
1578
- window.getSelection().removeAllRanges();
1579
- if (Safari) {
1580
- css(document.body, 'user-select', 'none');
1581
- }
1582
- },
1583
- // Returns true - if no further action is needed (either inserted or another condition)
1584
- _onDragOver: function _onDragOver( /**Event*/evt) {
1585
- var el = this.el,
1586
- target = evt.target,
1587
- dragRect,
1588
- targetRect,
1589
- revert,
1590
- options = this.options,
1591
- group = options.group,
1592
- activeSortable = Sortable.active,
1593
- isOwner = activeGroup === group,
1594
- canSort = options.sort,
1595
- fromSortable = putSortable || activeSortable,
1596
- vertical,
1597
- _this = this,
1598
- completedFired = false;
1599
- if (_silent) return;
1600
- function dragOverEvent(name, extra) {
1601
- pluginEvent(name, _this, _objectSpread2({
1602
- evt: evt,
1603
- isOwner: isOwner,
1604
- axis: vertical ? 'vertical' : 'horizontal',
1605
- revert: revert,
1606
- dragRect: dragRect,
1607
- targetRect: targetRect,
1608
- canSort: canSort,
1609
- fromSortable: fromSortable,
1610
- target: target,
1611
- completed: completed,
1612
- onMove: function onMove(target, after) {
1613
- return _onMove(rootEl, el, dragEl, dragRect, target, getRect(target), evt, after);
1614
- },
1615
- changed: changed
1616
- }, extra));
1617
- }
1618
-
1619
- // Capture animation state
1620
- function capture() {
1621
- dragOverEvent('dragOverAnimationCapture');
1622
- _this.captureAnimationState();
1623
- if (_this !== fromSortable) {
1624
- fromSortable.captureAnimationState();
1625
- }
1626
- }
1627
-
1628
- // Return invocation when dragEl is inserted (or completed)
1629
- function completed(insertion) {
1630
- dragOverEvent('dragOverCompleted', {
1631
- insertion: insertion
1632
- });
1633
- if (insertion) {
1634
- // Clones must be hidden before folding animation to capture dragRectAbsolute properly
1635
- if (isOwner) {
1636
- activeSortable._hideClone();
1637
- } else {
1638
- activeSortable._showClone(_this);
1639
- }
1640
- if (_this !== fromSortable) {
1641
- // Set ghost class to new sortable's ghost class
1642
- toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);
1643
- toggleClass(dragEl, options.ghostClass, true);
1644
- }
1645
- if (putSortable !== _this && _this !== Sortable.active) {
1646
- putSortable = _this;
1647
- } else if (_this === Sortable.active && putSortable) {
1648
- putSortable = null;
1649
- }
1650
-
1651
- // Animation
1652
- if (fromSortable === _this) {
1653
- _this._ignoreWhileAnimating = target;
1654
- }
1655
- _this.animateAll(function () {
1656
- dragOverEvent('dragOverAnimationComplete');
1657
- _this._ignoreWhileAnimating = null;
1658
- });
1659
- if (_this !== fromSortable) {
1660
- fromSortable.animateAll();
1661
- fromSortable._ignoreWhileAnimating = null;
1662
- }
1663
- }
1664
-
1665
- // Null lastTarget if it is not inside a previously swapped element
1666
- if (target === dragEl && !dragEl.animated || target === el && !target.animated) {
1667
- lastTarget = null;
1668
- }
1669
-
1670
- // no bubbling and not fallback
1671
- if (!options.dragoverBubble && !evt.rootEl && target !== document) {
1672
- dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
1673
-
1674
- // Do not detect for empty insert if already inserted
1675
- !insertion && nearestEmptyInsertDetectEvent(evt);
1676
- }
1677
- !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();
1678
- return completedFired = true;
1679
- }
1680
-
1681
- // Call when dragEl has been inserted
1682
- function changed() {
1683
- newIndex = index(dragEl);
1684
- newDraggableIndex = index(dragEl, options.draggable);
1685
- _dispatchEvent({
1686
- sortable: _this,
1687
- name: 'change',
1688
- toEl: el,
1689
- newIndex: newIndex,
1690
- newDraggableIndex: newDraggableIndex,
1691
- originalEvent: evt
1692
- });
1693
- }
1694
- if (evt.preventDefault !== void 0) {
1695
- evt.cancelable && evt.preventDefault();
1696
- }
1697
- target = closest(target, options.draggable, el, true);
1698
- dragOverEvent('dragOver');
1699
- if (Sortable.eventCanceled) return completedFired;
1700
- if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {
1701
- return completed(false);
1702
- }
1703
- ignoreNextClick = false;
1704
- if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) // Reverting item into the original list
1705
- : putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {
1706
- vertical = this._getDirection(evt, target) === 'vertical';
1707
- dragRect = getRect(dragEl);
1708
- dragOverEvent('dragOverValid');
1709
- if (Sortable.eventCanceled) return completedFired;
1710
- if (revert) {
1711
- parentEl = rootEl; // actualization
1712
- capture();
1713
- this._hideClone();
1714
- dragOverEvent('revert');
1715
- if (!Sortable.eventCanceled) {
1716
- if (nextEl) {
1717
- rootEl.insertBefore(dragEl, nextEl);
1718
- } else {
1719
- rootEl.appendChild(dragEl);
1720
- }
1721
- }
1722
- return completed(true);
1723
- }
1724
- var elLastChild = lastChild(el, options.draggable);
1725
- if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {
1726
- // Insert to end of list
1727
-
1728
- // If already at end of list: Do not insert
1729
- if (elLastChild === dragEl) {
1730
- return completed(false);
1731
- }
1732
-
1733
- // if there is a last element, it is the target
1734
- if (elLastChild && el === evt.target) {
1735
- target = elLastChild;
1736
- }
1737
- if (target) {
1738
- targetRect = getRect(target);
1739
- }
1740
- if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
1741
- capture();
1742
- if (elLastChild && elLastChild.nextSibling) {
1743
- // the last draggable element is not the last node
1744
- el.insertBefore(dragEl, elLastChild.nextSibling);
1745
- } else {
1746
- el.appendChild(dragEl);
1747
- }
1748
- parentEl = el; // actualization
1749
-
1750
- changed();
1751
- return completed(true);
1752
- }
1753
- } else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {
1754
- // Insert to start of list
1755
- var firstChild = getChild(el, 0, options, true);
1756
- if (firstChild === dragEl) {
1757
- return completed(false);
1758
- }
1759
- target = firstChild;
1760
- targetRect = getRect(target);
1761
- if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {
1762
- capture();
1763
- el.insertBefore(dragEl, firstChild);
1764
- parentEl = el; // actualization
1765
-
1766
- changed();
1767
- return completed(true);
1768
- }
1769
- } else if (target.parentNode === el) {
1770
- targetRect = getRect(target);
1771
- var direction = 0,
1772
- targetBeforeFirstSwap,
1773
- differentLevel = dragEl.parentNode !== el,
1774
- differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical),
1775
- side1 = vertical ? 'top' : 'left',
1776
- scrolledPastTop = isScrolledPast(target, 'top', 'top') || isScrolledPast(dragEl, 'top', 'top'),
1777
- scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;
1778
- if (lastTarget !== target) {
1779
- targetBeforeFirstSwap = targetRect[side1];
1780
- pastFirstInvertThresh = false;
1781
- isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;
1782
- }
1783
- direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);
1784
- var sibling;
1785
- if (direction !== 0) {
1786
- // Check if target is beside dragEl in respective direction (ignoring hidden elements)
1787
- var dragIndex = index(dragEl);
1788
- do {
1789
- dragIndex -= direction;
1790
- sibling = parentEl.children[dragIndex];
1791
- } while (sibling && (css(sibling, 'display') === 'none' || sibling === ghostEl));
1792
- }
1793
- // If dragEl is already beside target: Do not insert
1794
- if (direction === 0 || sibling === target) {
1795
- return completed(false);
1796
- }
1797
- lastTarget = target;
1798
- lastDirection = direction;
1799
- var nextSibling = target.nextElementSibling,
1800
- after = false;
1801
- after = direction === 1;
1802
- var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);
1803
- if (moveVector !== false) {
1804
- if (moveVector === 1 || moveVector === -1) {
1805
- after = moveVector === 1;
1806
- }
1807
- _silent = true;
1808
- setTimeout(_unsilent, 30);
1809
- capture();
1810
- if (after && !nextSibling) {
1811
- el.appendChild(dragEl);
1812
- } else {
1813
- target.parentNode.insertBefore(dragEl, after ? nextSibling : target);
1814
- }
1815
-
1816
- // Undo chrome's scroll adjustment (has no effect on other browsers)
1817
- if (scrolledPastTop) {
1818
- scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);
1819
- }
1820
- parentEl = dragEl.parentNode; // actualization
1821
-
1822
- // must be done before animation
1823
- if (targetBeforeFirstSwap !== undefined && !isCircumstantialInvert) {
1824
- targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);
1825
- }
1826
- changed();
1827
- return completed(true);
1828
- }
1829
- }
1830
- if (el.contains(dragEl)) {
1831
- return completed(false);
1832
- }
1833
- }
1834
- return false;
1835
- },
1836
- _ignoreWhileAnimating: null,
1837
- _offMoveEvents: function _offMoveEvents() {
1838
- off(document, 'mousemove', this._onTouchMove);
1839
- off(document, 'touchmove', this._onTouchMove);
1840
- off(document, 'pointermove', this._onTouchMove);
1841
- off(document, 'dragover', nearestEmptyInsertDetectEvent);
1842
- off(document, 'mousemove', nearestEmptyInsertDetectEvent);
1843
- off(document, 'touchmove', nearestEmptyInsertDetectEvent);
1844
- },
1845
- _offUpEvents: function _offUpEvents() {
1846
- var ownerDocument = this.el.ownerDocument;
1847
- off(ownerDocument, 'mouseup', this._onDrop);
1848
- off(ownerDocument, 'touchend', this._onDrop);
1849
- off(ownerDocument, 'pointerup', this._onDrop);
1850
- off(ownerDocument, 'pointercancel', this._onDrop);
1851
- off(ownerDocument, 'touchcancel', this._onDrop);
1852
- off(document, 'selectstart', this);
1853
- },
1854
- _onDrop: function _onDrop( /**Event*/evt) {
1855
- var el = this.el,
1856
- options = this.options;
1857
-
1858
- // Get the index of the dragged element within its parent
1859
- newIndex = index(dragEl);
1860
- newDraggableIndex = index(dragEl, options.draggable);
1861
- pluginEvent('drop', this, {
1862
- evt: evt
1863
- });
1864
- parentEl = dragEl && dragEl.parentNode;
1865
-
1866
- // Get again after plugin event
1867
- newIndex = index(dragEl);
1868
- newDraggableIndex = index(dragEl, options.draggable);
1869
- if (Sortable.eventCanceled) {
1870
- this._nulling();
1871
- return;
1872
- }
1873
- awaitingDragStarted = false;
1874
- isCircumstantialInvert = false;
1875
- pastFirstInvertThresh = false;
1876
- clearInterval(this._loopId);
1877
- clearTimeout(this._dragStartTimer);
1878
- _cancelNextTick(this.cloneId);
1879
- _cancelNextTick(this._dragStartId);
1880
-
1881
- // Unbind events
1882
- if (this.nativeDraggable) {
1883
- off(document, 'drop', this);
1884
- off(el, 'dragstart', this._onDragStart);
1885
- }
1886
- this._offMoveEvents();
1887
- this._offUpEvents();
1888
- if (Safari) {
1889
- css(document.body, 'user-select', '');
1890
- }
1891
- css(dragEl, 'transform', '');
1892
- if (evt) {
1893
- if (moved) {
1894
- evt.cancelable && evt.preventDefault();
1895
- !options.dropBubble && evt.stopPropagation();
1896
- }
1897
- ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);
1898
- if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {
1899
- // Remove clone(s)
1900
- cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);
1901
- }
1902
- if (dragEl) {
1903
- if (this.nativeDraggable) {
1904
- off(dragEl, 'dragend', this);
1905
- }
1906
- _disableDraggable(dragEl);
1907
- dragEl.style['will-change'] = '';
1908
-
1909
- // Remove classes
1910
- // ghostClass is added in dragStarted
1911
- if (moved && !awaitingDragStarted) {
1912
- toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);
1913
- }
1914
- toggleClass(dragEl, this.options.chosenClass, false);
1915
-
1916
- // Drag stop event
1917
- _dispatchEvent({
1918
- sortable: this,
1919
- name: 'unchoose',
1920
- toEl: parentEl,
1921
- newIndex: null,
1922
- newDraggableIndex: null,
1923
- originalEvent: evt
1924
- });
1925
- if (rootEl !== parentEl) {
1926
- if (newIndex >= 0) {
1927
- // Add event
1928
- _dispatchEvent({
1929
- rootEl: parentEl,
1930
- name: 'add',
1931
- toEl: parentEl,
1932
- fromEl: rootEl,
1933
- originalEvent: evt
1934
- });
1935
-
1936
- // Remove event
1937
- _dispatchEvent({
1938
- sortable: this,
1939
- name: 'remove',
1940
- toEl: parentEl,
1941
- originalEvent: evt
1942
- });
1943
-
1944
- // drag from one list and drop into another
1945
- _dispatchEvent({
1946
- rootEl: parentEl,
1947
- name: 'sort',
1948
- toEl: parentEl,
1949
- fromEl: rootEl,
1950
- originalEvent: evt
1951
- });
1952
- _dispatchEvent({
1953
- sortable: this,
1954
- name: 'sort',
1955
- toEl: parentEl,
1956
- originalEvent: evt
1957
- });
1958
- }
1959
- putSortable && putSortable.save();
1960
- } else {
1961
- if (newIndex !== oldIndex) {
1962
- if (newIndex >= 0) {
1963
- // drag & drop within the same list
1964
- _dispatchEvent({
1965
- sortable: this,
1966
- name: 'update',
1967
- toEl: parentEl,
1968
- originalEvent: evt
1969
- });
1970
- _dispatchEvent({
1971
- sortable: this,
1972
- name: 'sort',
1973
- toEl: parentEl,
1974
- originalEvent: evt
1975
- });
1976
- }
1977
- }
1978
- }
1979
- if (Sortable.active) {
1980
- /* jshint eqnull:true */
1981
- if (newIndex == null || newIndex === -1) {
1982
- newIndex = oldIndex;
1983
- newDraggableIndex = oldDraggableIndex;
1984
- }
1985
- _dispatchEvent({
1986
- sortable: this,
1987
- name: 'end',
1988
- toEl: parentEl,
1989
- originalEvent: evt
1990
- });
1991
-
1992
- // Save sorting
1993
- this.save();
1994
- }
1995
- }
1996
- }
1997
- this._nulling();
1998
- },
1999
- _nulling: function _nulling() {
2000
- pluginEvent('nulling', this);
2001
- 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;
2002
- var el = this.el;
2003
- savedInputChecked.forEach(function (checkEl) {
2004
- if (el.contains(checkEl)) {
2005
- checkEl.checked = true;
2006
- }
2007
- });
2008
- savedInputChecked.length = lastDx = lastDy = 0;
2009
- },
2010
- handleEvent: function handleEvent( /**Event*/evt) {
2011
- switch (evt.type) {
2012
- case 'drop':
2013
- case 'dragend':
2014
- this._onDrop(evt);
2015
- break;
2016
- case 'dragenter':
2017
- case 'dragover':
2018
- if (dragEl) {
2019
- this._onDragOver(evt);
2020
- _globalDragOver(evt);
2021
- }
2022
- break;
2023
- case 'selectstart':
2024
- evt.preventDefault();
2025
- break;
2026
- }
2027
- },
2028
- /**
2029
- * Serializes the item into an array of string.
2030
- * @returns {String[]}
2031
- */
2032
- toArray: function toArray() {
2033
- var order = [],
2034
- el,
2035
- children = this.el.children,
2036
- i = 0,
2037
- n = children.length,
2038
- options = this.options;
2039
- for (; i < n; i++) {
2040
- el = children[i];
2041
- if (closest(el, options.draggable, this.el, false)) {
2042
- order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));
2043
- }
2044
- }
2045
- return order;
2046
- },
2047
- /**
2048
- * Sorts the elements according to the array.
2049
- * @param {String[]} order order of the items
2050
- */
2051
- sort: function sort(order, useAnimation) {
2052
- var items = {},
2053
- rootEl = this.el;
2054
- this.toArray().forEach(function (id, i) {
2055
- var el = rootEl.children[i];
2056
- if (closest(el, this.options.draggable, rootEl, false)) {
2057
- items[id] = el;
2058
- }
2059
- }, this);
2060
- useAnimation && this.captureAnimationState();
2061
- order.forEach(function (id) {
2062
- if (items[id]) {
2063
- rootEl.removeChild(items[id]);
2064
- rootEl.appendChild(items[id]);
2065
- }
2066
- });
2067
- useAnimation && this.animateAll();
2068
- },
2069
- /**
2070
- * Save the current sorting
2071
- */
2072
- save: function save() {
2073
- var store = this.options.store;
2074
- store && store.set && store.set(this);
2075
- },
2076
- /**
2077
- * 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.
2078
- * @param {HTMLElement} el
2079
- * @param {String} [selector] default: `options.draggable`
2080
- * @returns {HTMLElement|null}
2081
- */
2082
- closest: function closest$1(el, selector) {
2083
- return closest(el, selector || this.options.draggable, this.el, false);
2084
- },
2085
- /**
2086
- * Set/get option
2087
- * @param {string} name
2088
- * @param {*} [value]
2089
- * @returns {*}
2090
- */
2091
- option: function option(name, value) {
2092
- var options = this.options;
2093
- if (value === void 0) {
2094
- return options[name];
2095
- } else {
2096
- var modifiedValue = PluginManager.modifyOption(this, name, value);
2097
- if (typeof modifiedValue !== 'undefined') {
2098
- options[name] = modifiedValue;
2099
- } else {
2100
- options[name] = value;
2101
- }
2102
- if (name === 'group') {
2103
- _prepareGroup(options);
2104
- }
2105
- }
2106
- },
2107
- /**
2108
- * Destroy
2109
- */
2110
- destroy: function destroy() {
2111
- pluginEvent('destroy', this);
2112
- var el = this.el;
2113
- el[expando] = null;
2114
- off(el, 'mousedown', this._onTapStart);
2115
- off(el, 'touchstart', this._onTapStart);
2116
- off(el, 'pointerdown', this._onTapStart);
2117
- if (this.nativeDraggable) {
2118
- off(el, 'dragover', this);
2119
- off(el, 'dragenter', this);
2120
- }
2121
- // Remove draggable attributes
2122
- Array.prototype.forEach.call(el.querySelectorAll('[draggable]'), function (el) {
2123
- el.removeAttribute('draggable');
2124
- });
2125
- this._onDrop();
2126
- this._disableDelayedDragEvents();
2127
- sortables.splice(sortables.indexOf(this.el), 1);
2128
- this.el = el = null;
2129
- },
2130
- _hideClone: function _hideClone() {
2131
- if (!cloneHidden) {
2132
- pluginEvent('hideClone', this);
2133
- if (Sortable.eventCanceled) return;
2134
- css(cloneEl, 'display', 'none');
2135
- if (this.options.removeCloneOnHide && cloneEl.parentNode) {
2136
- cloneEl.parentNode.removeChild(cloneEl);
2137
- }
2138
- cloneHidden = true;
2139
- }
2140
- },
2141
- _showClone: function _showClone(putSortable) {
2142
- if (putSortable.lastPutMode !== 'clone') {
2143
- this._hideClone();
2144
- return;
2145
- }
2146
- if (cloneHidden) {
2147
- pluginEvent('showClone', this);
2148
- if (Sortable.eventCanceled) return;
2149
-
2150
- // show clone at dragEl or original position
2151
- if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {
2152
- rootEl.insertBefore(cloneEl, dragEl);
2153
- } else if (nextEl) {
2154
- rootEl.insertBefore(cloneEl, nextEl);
2155
- } else {
2156
- rootEl.appendChild(cloneEl);
2157
- }
2158
- if (this.options.group.revertClone) {
2159
- this.animate(dragEl, cloneEl);
2160
- }
2161
- css(cloneEl, 'display', '');
2162
- cloneHidden = false;
2163
- }
2164
- }
2165
- };
2166
- function _globalDragOver( /**Event*/evt) {
2167
- if (evt.dataTransfer) {
2168
- evt.dataTransfer.dropEffect = 'move';
2169
- }
2170
- evt.cancelable && evt.preventDefault();
2171
- }
2172
- function _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {
2173
- var evt,
2174
- sortable = fromEl[expando],
2175
- onMoveFn = sortable.options.onMove,
2176
- retVal;
2177
- // Support for new CustomEvent feature
2178
- if (window.CustomEvent && !IE11OrLess && !Edge) {
2179
- evt = new CustomEvent('move', {
2180
- bubbles: true,
2181
- cancelable: true
2182
- });
2183
- } else {
2184
- evt = document.createEvent('Event');
2185
- evt.initEvent('move', true, true);
2186
- }
2187
- evt.to = toEl;
2188
- evt.from = fromEl;
2189
- evt.dragged = dragEl;
2190
- evt.draggedRect = dragRect;
2191
- evt.related = targetEl || toEl;
2192
- evt.relatedRect = targetRect || getRect(toEl);
2193
- evt.willInsertAfter = willInsertAfter;
2194
- evt.originalEvent = originalEvent;
2195
- fromEl.dispatchEvent(evt);
2196
- if (onMoveFn) {
2197
- retVal = onMoveFn.call(sortable, evt, originalEvent);
2198
- }
2199
- return retVal;
2200
- }
2201
- function _disableDraggable(el) {
2202
- el.draggable = false;
2203
- }
2204
- function _unsilent() {
2205
- _silent = false;
2206
- }
2207
- function _ghostIsFirst(evt, vertical, sortable) {
2208
- var firstElRect = getRect(getChild(sortable.el, 0, sortable.options, true));
2209
- var childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl);
2210
- var spacer = 10;
2211
- 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;
2212
- }
2213
- function _ghostIsLast(evt, vertical, sortable) {
2214
- var lastElRect = getRect(lastChild(sortable.el, sortable.options.draggable));
2215
- var childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl);
2216
- var spacer = 10;
2217
- 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;
2218
- }
2219
- function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {
2220
- var mouseOnAxis = vertical ? evt.clientY : evt.clientX,
2221
- targetLength = vertical ? targetRect.height : targetRect.width,
2222
- targetS1 = vertical ? targetRect.top : targetRect.left,
2223
- targetS2 = vertical ? targetRect.bottom : targetRect.right,
2224
- invert = false;
2225
- if (!invertSwap) {
2226
- // Never invert or create dragEl shadow when target movemenet causes mouse to move past the end of regular swapThreshold
2227
- if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {
2228
- // multiplied only by swapThreshold because mouse will already be inside target by (1 - threshold) * targetLength / 2
2229
- // check if past first invert threshold on side opposite of lastDirection
2230
- if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {
2231
- // past first invert threshold, do not restrict inverted threshold to dragEl shadow
2232
- pastFirstInvertThresh = true;
2233
- }
2234
- if (!pastFirstInvertThresh) {
2235
- // dragEl shadow (target move distance shadow)
2236
- if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance // over dragEl shadow
2237
- : mouseOnAxis > targetS2 - targetMoveDistance) {
2238
- return -lastDirection;
2239
- }
2240
- } else {
2241
- invert = true;
2242
- }
2243
- } else {
2244
- // Regular
2245
- if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {
2246
- return _getInsertDirection(target);
2247
- }
2248
- }
2249
- }
2250
- invert = invert || invertSwap;
2251
- if (invert) {
2252
- // Invert of regular
2253
- if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {
2254
- return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;
2255
- }
2256
- }
2257
- return 0;
2258
- }
2259
-
2260
- /**
2261
- * Gets the direction dragEl must be swapped relative to target in order to make it
2262
- * seem that dragEl has been "inserted" into that element's position
2263
- * @param {HTMLElement} target The target whose position dragEl is being inserted at
2264
- * @return {Number} Direction dragEl must be swapped
2265
- */
2266
- function _getInsertDirection(target) {
2267
- if (index(dragEl) < index(target)) {
2268
- return 1;
2269
- } else {
2270
- return -1;
2271
- }
2272
- }
2273
-
2274
- /**
2275
- * Generate id
2276
- * @param {HTMLElement} el
2277
- * @returns {String}
2278
- * @private
2279
- */
2280
- function _generateId(el) {
2281
- var str = el.tagName + el.className + el.src + el.href + el.textContent,
2282
- i = str.length,
2283
- sum = 0;
2284
- while (i--) {
2285
- sum += str.charCodeAt(i);
2286
- }
2287
- return sum.toString(36);
2288
- }
2289
- function _saveInputCheckedState(root) {
2290
- savedInputChecked.length = 0;
2291
- var inputs = root.getElementsByTagName('input');
2292
- var idx = inputs.length;
2293
- while (idx--) {
2294
- var el = inputs[idx];
2295
- el.checked && savedInputChecked.push(el);
2296
- }
2297
- }
2298
- function _nextTick(fn) {
2299
- return setTimeout(fn, 0);
2300
- }
2301
- function _cancelNextTick(id) {
2302
- return clearTimeout(id);
2303
- }
2304
-
2305
- // Fixed #973:
2306
- if (documentExists) {
2307
- on(document, 'touchmove', function (evt) {
2308
- if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {
2309
- evt.preventDefault();
2310
- }
2311
- });
2312
- }
2313
-
2314
- // Export utils
2315
- Sortable.utils = {
2316
- on: on,
2317
- off: off,
2318
- css: css,
2319
- find: find,
2320
- is: function is(el, selector) {
2321
- return !!closest(el, selector, el, false);
2322
- },
2323
- extend: extend,
2324
- throttle: throttle,
2325
- closest: closest,
2326
- toggleClass: toggleClass,
2327
- clone: clone,
2328
- index: index,
2329
- nextTick: _nextTick,
2330
- cancelNextTick: _cancelNextTick,
2331
- detectDirection: _detectDirection,
2332
- getChild: getChild,
2333
- expando: expando
2334
- };
2335
-
2336
- /**
2337
- * Get the Sortable instance of an element
2338
- * @param {HTMLElement} element The element
2339
- * @return {Sortable|undefined} The instance of Sortable
2340
- */
2341
- Sortable.get = function (element) {
2342
- return element[expando];
2343
- };
2344
-
2345
- /**
2346
- * Mount a plugin to Sortable
2347
- * @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
2348
- */
2349
- Sortable.mount = function () {
2350
- for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {
2351
- plugins[_key] = arguments[_key];
2352
- }
2353
- if (plugins[0].constructor === Array) plugins = plugins[0];
2354
- plugins.forEach(function (plugin) {
2355
- if (!plugin.prototype || !plugin.prototype.constructor) {
2356
- throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(plugin));
2357
- }
2358
- if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);
2359
- PluginManager.mount(plugin);
2360
- });
2361
- };
2362
-
2363
- /**
2364
- * Create sortable instance
2365
- * @param {HTMLElement} el
2366
- * @param {Object} [options]
2367
- */
2368
- Sortable.create = function (el, options) {
2369
- return new Sortable(el, options);
2370
- };
2371
-
2372
- // Export
2373
- Sortable.version = version;
2374
-
2375
- var autoScrolls = [],
2376
- scrollEl,
2377
- scrollRootEl,
2378
- scrolling = false,
2379
- lastAutoScrollX,
2380
- lastAutoScrollY,
2381
- touchEvt$1,
2382
- pointerElemChangedInterval;
2383
- function AutoScrollPlugin() {
2384
- function AutoScroll() {
2385
- this.defaults = {
2386
- scroll: true,
2387
- forceAutoScrollFallback: false,
2388
- scrollSensitivity: 30,
2389
- scrollSpeed: 10,
2390
- bubbleScroll: true
2391
- };
2392
-
2393
- // Bind all private methods
2394
- for (var fn in this) {
2395
- if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {
2396
- this[fn] = this[fn].bind(this);
2397
- }
2398
- }
2399
- }
2400
- AutoScroll.prototype = {
2401
- dragStarted: function dragStarted(_ref) {
2402
- var originalEvent = _ref.originalEvent;
2403
- if (this.sortable.nativeDraggable) {
2404
- on(document, 'dragover', this._handleAutoScroll);
2405
- } else {
2406
- if (this.options.supportPointer) {
2407
- on(document, 'pointermove', this._handleFallbackAutoScroll);
2408
- } else if (originalEvent.touches) {
2409
- on(document, 'touchmove', this._handleFallbackAutoScroll);
2410
- } else {
2411
- on(document, 'mousemove', this._handleFallbackAutoScroll);
2412
- }
2413
- }
2414
- },
2415
- dragOverCompleted: function dragOverCompleted(_ref2) {
2416
- var originalEvent = _ref2.originalEvent;
2417
- // For when bubbling is canceled and using fallback (fallback 'touchmove' always reached)
2418
- if (!this.options.dragOverBubble && !originalEvent.rootEl) {
2419
- this._handleAutoScroll(originalEvent);
2420
- }
2421
- },
2422
- drop: function drop() {
2423
- if (this.sortable.nativeDraggable) {
2424
- off(document, 'dragover', this._handleAutoScroll);
2425
- } else {
2426
- off(document, 'pointermove', this._handleFallbackAutoScroll);
2427
- off(document, 'touchmove', this._handleFallbackAutoScroll);
2428
- off(document, 'mousemove', this._handleFallbackAutoScroll);
2429
- }
2430
- clearPointerElemChangedInterval();
2431
- clearAutoScrolls();
2432
- cancelThrottle();
2433
- },
2434
- nulling: function nulling() {
2435
- touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;
2436
- autoScrolls.length = 0;
2437
- },
2438
- _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {
2439
- this._handleAutoScroll(evt, true);
2440
- },
2441
- _handleAutoScroll: function _handleAutoScroll(evt, fallback) {
2442
- var _this = this;
2443
- var x = (evt.touches ? evt.touches[0] : evt).clientX,
2444
- y = (evt.touches ? evt.touches[0] : evt).clientY,
2445
- elem = document.elementFromPoint(x, y);
2446
- touchEvt$1 = evt;
2447
-
2448
- // IE does not seem to have native autoscroll,
2449
- // Edge's autoscroll seems too conditional,
2450
- // MACOS Safari does not have autoscroll,
2451
- // Firefox and Chrome are good
2452
- if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {
2453
- autoScroll(evt, this.options, elem, fallback);
2454
-
2455
- // Listener for pointer element change
2456
- var ogElemScroller = getParentAutoScrollElement(elem, true);
2457
- if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {
2458
- pointerElemChangedInterval && clearPointerElemChangedInterval();
2459
- // Detect for pointer elem change, emulating native DnD behaviour
2460
- pointerElemChangedInterval = setInterval(function () {
2461
- var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);
2462
- if (newElem !== ogElemScroller) {
2463
- ogElemScroller = newElem;
2464
- clearAutoScrolls();
2465
- }
2466
- autoScroll(evt, _this.options, newElem, fallback);
2467
- }, 10);
2468
- lastAutoScrollX = x;
2469
- lastAutoScrollY = y;
2470
- }
2471
- } else {
2472
- // if DnD is enabled (and browser has good autoscrolling), first autoscroll will already scroll, so get parent autoscroll of first autoscroll
2473
- if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {
2474
- clearAutoScrolls();
2475
- return;
2476
- }
2477
- autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);
2478
- }
2479
- }
2480
- };
2481
- return _extends(AutoScroll, {
2482
- pluginName: 'scroll',
2483
- initializeByDefault: true
2484
- });
2485
- }
2486
- function clearAutoScrolls() {
2487
- autoScrolls.forEach(function (autoScroll) {
2488
- clearInterval(autoScroll.pid);
2489
- });
2490
- autoScrolls = [];
2491
- }
2492
- function clearPointerElemChangedInterval() {
2493
- clearInterval(pointerElemChangedInterval);
2494
- }
2495
- var autoScroll = throttle(function (evt, options, rootEl, isFallback) {
2496
- // Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521
2497
- if (!options.scroll) return;
2498
- var x = (evt.touches ? evt.touches[0] : evt).clientX,
2499
- y = (evt.touches ? evt.touches[0] : evt).clientY,
2500
- sens = options.scrollSensitivity,
2501
- speed = options.scrollSpeed,
2502
- winScroller = getWindowScrollingElement();
2503
- var scrollThisInstance = false,
2504
- scrollCustomFn;
2505
-
2506
- // New scroll root, set scrollEl
2507
- if (scrollRootEl !== rootEl) {
2508
- scrollRootEl = rootEl;
2509
- clearAutoScrolls();
2510
- scrollEl = options.scroll;
2511
- scrollCustomFn = options.scrollFn;
2512
- if (scrollEl === true) {
2513
- scrollEl = getParentAutoScrollElement(rootEl, true);
2514
- }
2515
- }
2516
- var layersOut = 0;
2517
- var currentParent = scrollEl;
2518
- do {
2519
- var el = currentParent,
2520
- rect = getRect(el),
2521
- top = rect.top,
2522
- bottom = rect.bottom,
2523
- left = rect.left,
2524
- right = rect.right,
2525
- width = rect.width,
2526
- height = rect.height,
2527
- canScrollX = void 0,
2528
- canScrollY = void 0,
2529
- scrollWidth = el.scrollWidth,
2530
- scrollHeight = el.scrollHeight,
2531
- elCSS = css(el),
2532
- scrollPosX = el.scrollLeft,
2533
- scrollPosY = el.scrollTop;
2534
- if (el === winScroller) {
2535
- canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll' || elCSS.overflowX === 'visible');
2536
- canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll' || elCSS.overflowY === 'visible');
2537
- } else {
2538
- canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll');
2539
- canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll');
2540
- }
2541
- var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);
2542
- var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);
2543
- if (!autoScrolls[layersOut]) {
2544
- for (var i = 0; i <= layersOut; i++) {
2545
- if (!autoScrolls[i]) {
2546
- autoScrolls[i] = {};
2547
- }
2548
- }
2549
- }
2550
- if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {
2551
- autoScrolls[layersOut].el = el;
2552
- autoScrolls[layersOut].vx = vx;
2553
- autoScrolls[layersOut].vy = vy;
2554
- clearInterval(autoScrolls[layersOut].pid);
2555
- if (vx != 0 || vy != 0) {
2556
- scrollThisInstance = true;
2557
- /* jshint loopfunc:true */
2558
- autoScrolls[layersOut].pid = setInterval(function () {
2559
- // emulate drag over during autoscroll (fallback), emulating native DnD behaviour
2560
- if (isFallback && this.layer === 0) {
2561
- Sortable.active._onTouchMove(touchEvt$1); // To move ghost if it is positioned absolutely
2562
- }
2563
- var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;
2564
- var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;
2565
- if (typeof scrollCustomFn === 'function') {
2566
- if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== 'continue') {
2567
- return;
2568
- }
2569
- }
2570
- scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);
2571
- }.bind({
2572
- layer: layersOut
2573
- }), 24);
2574
- }
2575
- }
2576
- layersOut++;
2577
- } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));
2578
- scrolling = scrollThisInstance; // in case another function catches scrolling as false in between when it is not
2579
- }, 30);
2580
-
2581
- var drop = function drop(_ref) {
2582
- var originalEvent = _ref.originalEvent,
2583
- putSortable = _ref.putSortable,
2584
- dragEl = _ref.dragEl,
2585
- activeSortable = _ref.activeSortable,
2586
- dispatchSortableEvent = _ref.dispatchSortableEvent,
2587
- hideGhostForTarget = _ref.hideGhostForTarget,
2588
- unhideGhostForTarget = _ref.unhideGhostForTarget;
2589
- if (!originalEvent) return;
2590
- var toSortable = putSortable || activeSortable;
2591
- hideGhostForTarget();
2592
- var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;
2593
- var target = document.elementFromPoint(touch.clientX, touch.clientY);
2594
- unhideGhostForTarget();
2595
- if (toSortable && !toSortable.el.contains(target)) {
2596
- dispatchSortableEvent('spill');
2597
- this.onSpill({
2598
- dragEl: dragEl,
2599
- putSortable: putSortable
2600
- });
2601
- }
2602
- };
2603
- function Revert() {}
2604
- Revert.prototype = {
2605
- startIndex: null,
2606
- dragStart: function dragStart(_ref2) {
2607
- var oldDraggableIndex = _ref2.oldDraggableIndex;
2608
- this.startIndex = oldDraggableIndex;
2609
- },
2610
- onSpill: function onSpill(_ref3) {
2611
- var dragEl = _ref3.dragEl,
2612
- putSortable = _ref3.putSortable;
2613
- this.sortable.captureAnimationState();
2614
- if (putSortable) {
2615
- putSortable.captureAnimationState();
2616
- }
2617
- var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);
2618
- if (nextSibling) {
2619
- this.sortable.el.insertBefore(dragEl, nextSibling);
2620
- } else {
2621
- this.sortable.el.appendChild(dragEl);
2622
- }
2623
- this.sortable.animateAll();
2624
- if (putSortable) {
2625
- putSortable.animateAll();
2626
- }
2627
- },
2628
- drop: drop
2629
- };
2630
- _extends(Revert, {
2631
- pluginName: 'revertOnSpill'
2632
- });
2633
- function Remove() {}
2634
- Remove.prototype = {
2635
- onSpill: function onSpill(_ref4) {
2636
- var dragEl = _ref4.dragEl,
2637
- putSortable = _ref4.putSortable;
2638
- var parentSortable = putSortable || this.sortable;
2639
- parentSortable.captureAnimationState();
2640
- dragEl.parentNode && dragEl.parentNode.removeChild(dragEl);
2641
- parentSortable.animateAll();
2642
- },
2643
- drop: drop
2644
- };
2645
- _extends(Remove, {
2646
- pluginName: 'removeOnSpill'
2647
- });
2648
-
2649
- Sortable.mount(new AutoScrollPlugin());
2650
- Sortable.mount(Remove, Revert);
2651
-
2652
- const pdsSortableCss = ".pds-sortable.sc-pds-sortable-h{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.pds-sortable.pds-sortable--bordered.sc-pds-sortable-h{border:var(--pine-border);border-radius:var(--pine-dimension-2xs)}";
2653
-
2654
- const PdsSortable$1 = /*@__PURE__*/ proxyCustomElement(class PdsSortable extends HTMLElement {
2655
- constructor(registerHost) {
2656
- super();
2657
- if (registerHost !== false) {
2658
- this.__registerHost();
2659
- }
2660
- this.pdsSortableItemMoved = createEvent(this, "pdsSortableItemMoved", 7);
2661
- /**
2662
- * Determines whether `sortable` should have a border.
2663
- * @defaultValue false
2664
- */
2665
- this.border = false;
2666
- /**
2667
- * Determines whether or not the sortable is disabled.
2668
- * @defaultValue false
2669
- */
2670
- this.disabled = false;
2671
- /**
2672
- * Determines whether `sortable` items should be divided with border.
2673
- */
2674
- this.dividers = false;
2675
- /**
2676
- * Determines the grabbable area for the `pds-sortable-item`.
2677
- */
2678
- this.handleType = 'row';
2679
- }
2680
- handleDisabledChange() {
2681
- var _a;
2682
- (_a = this.sortableInstance) === null || _a === void 0 ? void 0 : _a.option('disabled', this.disabled);
2683
- }
2684
- classNames() {
2685
- const classNames = ['pds-sortable'];
2686
- if (this.border) {
2687
- classNames.push('pds-sortable--bordered');
2688
- }
2689
- if (this.disabled) {
2690
- classNames.push('pds-sortable--disabled');
2691
- }
2692
- if (this.dividers) {
2693
- classNames.push('pds-sortable--divided');
2694
- }
2695
- if (this.handleType !== undefined) {
2696
- classNames.push(`pds-sortable--handle-type-${this.handleType}`);
2697
- }
2698
- return classNames.join(' ');
2699
- }
2700
- componentDidLoad() {
2701
- let sortableOptions = {
2702
- animation: 150,
2703
- disabled: this.disabled,
2704
- ghostClass: 'pds-sortable-item--ghost',
2705
- dragClass: 'pds-sortable-item--drag',
2706
- onEnd: (evt) => {
2707
- this.pdsSortableItemMoved.emit(evt);
2708
- },
2709
- };
2710
- if (this.handleType === 'handle') {
2711
- sortableOptions = Object.assign(Object.assign({}, sortableOptions), { handle: '.pds-sortable-item__handle' });
2712
- }
2713
- this.sortableInstance = Sortable.create(this.el, sortableOptions);
2714
- }
2715
- render() {
2716
- return (h(Host, { key: '562bfb1ecea0b3a3f246b2e277b71f70d14b854c', class: this.classNames(), id: this.componentId }, h("slot", { key: 'a1ff894a9cd6049e532d2fa744429cec6d97e280' })));
2717
- }
2718
- get el() { return this; }
2719
- static get watchers() { return {
2720
- "disabled": ["handleDisabledChange"]
2721
- }; }
2722
- static get style() { return pdsSortableCss; }
2723
- }, [262, "pds-sortable", {
2724
- "border": [516],
2725
- "disabled": [516],
2726
- "componentId": [1, "component-id"],
2727
- "dividers": [516],
2728
- "handleType": [1, "handle-type"]
2729
- }, undefined, {
2730
- "disabled": ["handleDisabledChange"]
2731
- }]);
2732
- function defineCustomElement$1() {
2733
- if (typeof customElements === "undefined") {
2734
- return;
2735
- }
2736
- const components = ["pds-sortable"];
2737
- components.forEach(tagName => { switch (tagName) {
2738
- case "pds-sortable":
2739
- if (!customElements.get(tagName)) {
2740
- customElements.define(tagName, PdsSortable$1);
2741
- }
2742
- break;
2743
- } });
2744
- }
2745
-
2746
- const PdsSortable = PdsSortable$1;
2747
- const defineCustomElement = defineCustomElement$1;
2748
-
2749
- export { PdsSortable, defineCustomElement };
2750
- //# sourceMappingURL=pds-sortable.js.map
2751
-
2752
- //# sourceMappingURL=pds-sortable.js.map
7
+ */function a(t,n,e){return(n=function(t){var n=function(t,n){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,n);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return t+""}(t,"string");return"symbol"==typeof n?n:n+""}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function s(){return s=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)({}).hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},s.apply(null,arguments)}function u(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,i)}return e}function l(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?u(Object(e),!0).forEach((function(n){a(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):u(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function f(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var h=f(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=f(/Edge/i),v=f(/firefox/i),m=f(/safari/i)&&!f(/chrome/i)&&!f(/android/i),p=f(/iP(ad|od|hone)/i),b=f(/chrome/i)&&f(/android/i),g={capture:!1,passive:!1};function w(t,n,e){t.addEventListener(n,e,!h&&g)}function y(t,n,e){t.removeEventListener(n,e,!h&&g)}function E(t,n){if(n){if(">"===n[0]&&(n=n.substring(1)),t)try{if(t.matches)return t.matches(n);if(t.msMatchesSelector)return t.msMatchesSelector(n);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(n)}catch(t){return!1}return!1}}function S(t){return t.host&&t!==document&&t.host.nodeType&&t.host!==t?t.host:t.parentNode}function x(t,n,e,i){if(t){e=e||document;do{if(null!=n&&(">"===n[0]?t.parentNode===e&&E(t,n):E(t,n))||i&&t===e)return t;if(t===e)break}while(t=S(t))}return null}var T,M=/\s+/g;function I(t,n,e){if(t&&n)if(t.classList)t.classList[e?"add":"remove"](n);else{var i=(" "+t.className+" ").replace(M," ").replace(" "+n+" "," ");t.className=(i+(e?" "+n:"")).replace(M," ")}}function O(t,n,e){var i=t&&t.style;if(i){if(void 0===e)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(e=t.currentStyle),void 0===n?e:e[n];n in i||-1!==n.indexOf("webkit")||(n="-webkit-"+n),i[n]=e+("string"==typeof e?"":"px")}}function D(t,n){var e="";if("string"==typeof t)e=t;else do{var i=O(t,"transform");i&&"none"!==i&&(e=i+" "+e)}while(!n&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(e)}function _(t,n,e){if(t){var i=t.getElementsByTagName(n),o=0,r=i.length;if(e)for(;o<r;o++)e(i[o],o);return i}return[]}function C(){return document.scrollingElement||document.documentElement}function k(t,n,e,i,o){if(t.getBoundingClientRect||t===window){var r,a,s,u,l,c,f;if(t!==window&&t.parentNode&&t!==C()?(a=(r=t.getBoundingClientRect()).top,s=r.left,u=r.bottom,l=r.right,c=r.height,f=r.width):(a=0,s=0,u=window.innerHeight,l=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(n||e)&&t!==window&&(o=o||t.parentNode,!h))do{if(o&&o.getBoundingClientRect&&("none"!==O(o,"transform")||e&&"static"!==O(o,"position"))){var d=o.getBoundingClientRect();a-=d.top+parseInt(O(o,"border-top-width")),s-=d.left+parseInt(O(o,"border-left-width")),u=a+r.height,l=s+r.width;break}}while(o=o.parentNode);if(i&&t!==window){var v=D(o||t),m=v&&v.a,p=v&&v.d;v&&(u=(a/=p)+(c/=p),l=(s/=m)+(f/=m))}return{top:a,left:s,bottom:u,right:l,width:f,height:c}}}function j(t,n,e){for(var i=F(t,!0),o=k(t)[n];i;){if(!(o>=k(i)[e]))return i;if(i===C())break;i=F(i,!1)}return!1}function A(t,n,e,i){for(var o=0,r=0,a=t.children;r<a.length;){if("none"!==a[r].style.display&&a[r]!==Gt.ghost&&(i||a[r]!==Gt.dragged)&&x(a[r],e.draggable,t,!1)){if(o===n)return a[r];o++}r++}return null}function z(t,n){for(var e=t.lastElementChild;e&&(e===Gt.ghost||"none"===O(e,"display")||n&&!E(e,n));)e=e.previousElementSibling;return e||null}function N(t,n){var e=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Gt.clone||n&&!E(t,n)||e++;return e}function P(t){var n=0,e=0,i=C();if(t)do{var o=D(t);n+=t.scrollLeft*o.a,e+=t.scrollTop*o.d}while(t!==i&&(t=t.parentNode));return[n,e]}function F(t,n){if(!t||!t.getBoundingClientRect)return C();var e=t,i=!1;do{if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var o=O(e);if(e.clientWidth<e.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||e.clientHeight<e.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!e.getBoundingClientRect||e===document.body)return C();if(i||n)return e;i=!0}}}while(e=e.parentNode);return C()}function B(t,n){return Math.round(t.top)===Math.round(n.top)&&Math.round(t.left)===Math.round(n.left)&&Math.round(t.height)===Math.round(n.height)&&Math.round(t.width)===Math.round(n.width)}function H(t,n){return function(){if(!T){var e=arguments;1===e.length?t.call(this,e[0]):t.apply(this,e),T=setTimeout((function(){T=void 0}),n)}}}function G(t,n,e){t.scrollLeft+=n,t.scrollTop+=e}function L(t){var n=window.Polymer,e=window.jQuery||window.Zepto;return n&&n.dom?n.dom(t).cloneNode(!0):e?e(t).clone(!0)[0]:t.cloneNode(!0)}function R(t,n,e){var i={};return Array.from(t.children).forEach((function(o){var r,a,s,u;if(x(o,n.draggable,t,!1)&&!o.animated&&o!==e){var l=k(o);i.left=Math.min(null!==(r=i.left)&&void 0!==r?r:1/0,l.left),i.top=Math.min(null!==(a=i.top)&&void 0!==a?a:1/0,l.top),i.right=Math.max(null!==(s=i.right)&&void 0!==s?s:-1/0,l.right),i.bottom=Math.max(null!==(u=i.bottom)&&void 0!==u?u:-1/0,l.bottom)}})),i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}var W="Sortable"+(new Date).getTime();var X=[],Y={initializeByDefault:!0},U={mount:function(t){for(var n in Y)Y.hasOwnProperty(n)&&!(n in t)&&(t[n]=Y[n]);X.forEach((function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),X.push(t)},pluginEvent:function(t,n,e){var i=this;this.eventCanceled=!1,e.cancel=function(){i.eventCanceled=!0};var o=t+"Global";X.forEach((function(i){n[i.pluginName]&&(n[i.pluginName][o]&&n[i.pluginName][o](l({sortable:n},e)),n.options[i.pluginName]&&n[i.pluginName][t]&&n[i.pluginName][t](l({sortable:n},e)))}))},initializePlugins:function(t,n,e){for(var i in X.forEach((function(i){var o=i.pluginName;if(t.options[o]||i.initializeByDefault){var r=new i(t,n,t.options);r.sortable=t,r.options=t.options,t[o]=r,s(e,r.defaults)}})),t.options)if(t.options.hasOwnProperty(i)){var o=this.modifyOption(t,i,t.options[i]);void 0!==o&&(t.options[i]=o)}},getEventProperties:function(t,n){var e={};return X.forEach((function(i){"function"==typeof i.eventProperties&&s(e,i.eventProperties.call(n[i.pluginName],t))})),e},modifyOption:function(t,n,e){var i;return X.forEach((function(o){t[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[n]&&(i=o.optionListeners[n].call(t[o.pluginName],e))})),i}},V=["evt"],Z=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.evt,o=function(t,n){if(null==t)return{};var e,i,o=function(t,n){if(null==t)return{};var e={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(-1!==n.indexOf(i))continue;e[i]=t[i]}return e}(t,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++)-1===n.indexOf(e=r[i])&&{}.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(e,V);U.pluginEvent.bind(Gt)(t,n,l({dragEl:q,parentEl:J,ghostEl:K,rootEl:Q,nextEl:tt,lastDownEl:nt,cloneEl:et,cloneHidden:it,dragStarted:pt,putSortable:lt,activeSortable:Gt.active,originalEvent:i,oldIndex:ot,oldDraggableIndex:at,newIndex:rt,newDraggableIndex:st,hideGhostForTarget:Pt,unhideGhostForTarget:Ft,cloneNowHidden:function(){it=!0},cloneNowShown:function(){it=!1},dispatchSortableEvent:function(t){$({sortable:n,name:t,originalEvent:i})}},o))};function $(t){!function(t){var n=t.sortable,e=t.rootEl,i=t.name,o=t.targetEl,r=t.cloneEl,a=t.toEl,s=t.fromEl,u=t.oldIndex,c=t.newIndex,f=t.oldDraggableIndex,v=t.newDraggableIndex,m=t.originalEvent,p=t.putSortable,b=t.extraEventProperties;if(n=n||e&&e[W]){var g,w=n.options,y="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||h||d?(g=document.createEvent("Event")).initEvent(i,!0,!0):g=new CustomEvent(i,{bubbles:!0,cancelable:!0}),g.to=a||e,g.from=s||e,g.item=o||e,g.clone=r,g.oldIndex=u,g.newIndex=c,g.oldDraggableIndex=f,g.newDraggableIndex=v,g.originalEvent=m,g.pullMode=p?p.lastPutMode:void 0;var E=l(l({},b),U.getEventProperties(i,n));for(var S in E)g[S]=E[S];e&&e.dispatchEvent(g),w[y]&&w[y].call(n,g)}}(l({putSortable:lt,cloneEl:et,targetEl:q,rootEl:Q,oldIndex:ot,oldDraggableIndex:at,newIndex:rt,newDraggableIndex:st},t))}var q,J,K,Q,tt,nt,et,it,ot,rt,at,st,ut,lt,ct,ft,ht,dt,vt,mt,pt,bt,gt,wt,yt,Et=!1,St=!1,xt=[],Tt=!1,Mt=!1,It=[],Ot=!1,Dt=[],_t="undefined"!=typeof document,Ct=p,kt=d||h?"cssFloat":"float",jt=_t&&!b&&!p&&"draggable"in document.createElement("div"),At=function(){if(_t){if(h)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),zt=function(t,n){var e=O(t),i=parseInt(e.width)-parseInt(e.paddingLeft)-parseInt(e.paddingRight)-parseInt(e.borderLeftWidth)-parseInt(e.borderRightWidth),o=A(t,0,n),r=A(t,1,n),a=o&&O(o),s=r&&O(r),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+k(o).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+k(r).width;return"flex"===e.display?"column"===e.flexDirection||"column-reverse"===e.flexDirection?"vertical":"horizontal":"grid"===e.display?e.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":o&&a.float&&"none"!==a.float?!r||"both"!==s.clear&&s.clear!==("left"===a.float?"left":"right")?"horizontal":"vertical":o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||u>=i&&"none"===e[kt]||r&&"none"===e[kt]&&u+l>i)?"vertical":"horizontal"},Nt=function(t){function n(t,e){return function(i,o,r,a){if(null==t&&(e||i.options.group.name&&o.options.group.name&&i.options.group.name===o.options.group.name))return!0;if(null==t||!1===t)return!1;if(e&&"clone"===t)return t;if("function"==typeof t)return n(t(i,o,r,a),e)(i,o,r,a);var s=(e?i:o).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var e={},i=t.group;i&&"object"==c(i)||(i={name:i}),e.name=i.name,e.checkPull=n(i.pull,!0),e.checkPut=n(i.put),e.revertClone=i.revertClone,t.group=e},Pt=function(){!At&&K&&O(K,"display","none")},Ft=function(){!At&&K&&O(K,"display","")};_t&&!b&&document.addEventListener("click",(function(t){if(St)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),St=!1,!1}),!0);var Bt=function(t){if(q){var n=function(t,n){var e;return xt.some((function(i){var o=i[W].options.emptyInsertThreshold;if(o&&!z(i)){var r=k(i);return t>=r.left-o&&t<=r.right+o&&n>=r.top-o&&n<=r.bottom+o?e=i:void 0}})),e}((t=t.touches?t.touches[0]:t).clientX,t.clientY);if(n){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.target=e.rootEl=n,e.preventDefault=void 0,e.stopPropagation=void 0,n[W]._onDragOver(e)}}},Ht=function(t){q&&q.parentNode[W]._isOutsideThisEl(t.target)};function Gt(t,n){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=n=s({},n),t[W]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return zt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,n){t.setData("Text",n.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Gt.supportPointer&&"PointerEvent"in window&&(!m||p),emptyInsertThreshold:5};for(var i in U.initializePlugins(this,t,e),e)!(i in n)&&(n[i]=e[i]);for(var o in Nt(n),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!n.forceFallback&&jt,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?w(t,"pointerdown",this._onTapStart):(w(t,"mousedown",this._onTapStart),w(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(w(t,"dragover",this),w(t,"dragenter",this)),xt.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),s(this,function(){var t,n=[];return{captureAnimationState:function(){n=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(t){if("none"!==O(t,"display")&&t!==Gt.ghost){n.push({target:t,rect:k(t)});var e=l({},n[n.length-1].rect);if(t.thisAnimationDuration){var i=D(t,!0);i&&(e.top-=i.f,e.left-=i.e)}t.fromRect=e}}))},addAnimationState:function(t){n.push(t)},removeAnimationState:function(t){n.splice(function(t,n){for(var e in t)if(t.hasOwnProperty(e))for(var i in n)if(n.hasOwnProperty(i)&&n[i]===t[e][i])return Number(e);return-1}(n,{target:t}),1)},animateAll:function(e){var i=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof e&&e());var o=!1,r=0;n.forEach((function(t){var n=0,e=t.target,a=e.fromRect,s=k(e),u=e.prevFromRect,l=e.prevToRect,c=t.rect,f=D(e,!0);f&&(s.top-=f.f,s.left-=f.e),e.toRect=s,e.thisAnimationDuration&&B(u,s)&&!B(a,s)&&(c.top-s.top)/(c.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(n=function(t,n,e,i){return Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))/Math.sqrt(Math.pow(n.top-e.top,2)+Math.pow(n.left-e.left,2))*i.animation}(c,u,l,i.options)),B(s,a)||(e.prevFromRect=a,e.prevToRect=s,n||(n=i.options.animation),i.animate(e,c,s,n)),n&&(o=!0,r=Math.max(r,n),clearTimeout(e.animationResetTimer),e.animationResetTimer=setTimeout((function(){e.animationTime=0,e.prevFromRect=null,e.fromRect=null,e.prevToRect=null,e.thisAnimationDuration=null}),n),e.thisAnimationDuration=n)})),clearTimeout(t),o?t=setTimeout((function(){"function"==typeof e&&e()}),r):"function"==typeof e&&e(),n=[]},animate:function(t,n,e,i){if(i){O(t,"transition",""),O(t,"transform","");var o=D(this.el),r=(n.left-e.left)/(o&&o.a||1),a=(n.top-e.top)/(o&&o.d||1);t.animatingX=!!r,t.animatingY=!!a,O(t,"transform","translate3d("+r+"px,"+a+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),O(t,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),O(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){O(t,"transition",""),O(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),i)}}}}())}function Lt(t,n,e,i,o,r,a,s){var u,l,c=t[W],f=c.options.onMove;return!window.CustomEvent||h||d?(u=document.createEvent("Event")).initEvent("move",!0,!0):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=n,u.from=t,u.dragged=e,u.draggedRect=i,u.related=o||n,u.relatedRect=r||k(n),u.willInsertAfter=s,u.originalEvent=a,t.dispatchEvent(u),f&&(l=f.call(c,u,a)),l}function Rt(t){t.draggable=!1}function Wt(){Ot=!1}function Xt(t){for(var n=t.tagName+t.className+t.src+t.href+t.textContent,e=n.length,i=0;e--;)i+=n.charCodeAt(e);return i.toString(36)}function Yt(t){return setTimeout(t,0)}function Ut(t){return clearTimeout(t)}Gt.prototype={constructor:Gt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(bt=null)},_getDirection:function(t,n){return"function"==typeof this.options.direction?this.options.direction.call(this,t,n,q):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,e=this.el,i=this.options,o=i.preventOnFilter,r=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,l=i.filter;if(function(t){Dt.length=0;for(var n=t.getElementsByTagName("input"),e=n.length;e--;){var i=n[e];i.checked&&Dt.push(i)}}(e),!q&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||i.disabled)&&!u.isContentEditable&&(this.nativeDraggable||!m||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=x(s,i.draggable,e,!1))&&s.animated||nt===s)){if(ot=N(s),at=N(s,i.draggable),"function"==typeof l){if(l.call(this,t,s,this))return $({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:e,fromEl:e}),Z("filter",n,{evt:t}),void(o&&t.preventDefault())}else if(l&&(l=l.split(",").some((function(i){if(i=x(u,i.trim(),e,!1))return $({sortable:n,rootEl:i,name:"filter",targetEl:s,fromEl:e,toEl:e}),Z("filter",n,{evt:t}),!0}))))return void(o&&t.preventDefault());i.handle&&!x(u,i.handle,e,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,n,e){var i,o=this,r=o.el,a=o.options,s=r.ownerDocument;if(e&&!q&&e.parentNode===r){var u=k(e);if(Q=r,J=(q=e).parentNode,tt=q.nextSibling,nt=e,ut=a.group,Gt.dragged=q,vt=(ct={target:q,clientX:(n||t).clientX,clientY:(n||t).clientY}).clientX-u.left,mt=ct.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,q.style["will-change"]="all",i=function(){Z("delayEnded",o,{evt:t}),Gt.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!v&&o.nativeDraggable&&(q.draggable=!0),o._triggerDragStart(t,n),$({sortable:o,name:"choose",originalEvent:t}),I(q,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){_(q,t.trim(),Rt)})),w(s,"dragover",Bt),w(s,"mousemove",Bt),w(s,"touchmove",Bt),a.supportPointer?(w(s,"pointerup",o._onDrop),!this.nativeDraggable&&w(s,"pointercancel",o._onDrop)):(w(s,"mouseup",o._onDrop),w(s,"touchend",o._onDrop),w(s,"touchcancel",o._onDrop)),v&&this.nativeDraggable&&(this.options.touchStartThreshold=4,q.draggable=!0),Z("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!n||this.nativeDraggable&&(d||h))i();else{if(Gt.eventCanceled)return void this._onDrop();a.supportPointer?(w(s,"pointerup",o._disableDelayedDrag),w(s,"pointercancel",o._disableDelayedDrag)):(w(s,"mouseup",o._disableDelayedDrag),w(s,"touchend",o._disableDelayedDrag),w(s,"touchcancel",o._disableDelayedDrag)),w(s,"mousemove",o._delayedDragTouchMoveHandler),w(s,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&w(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(i,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){q&&Rt(q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;y(t,"mouseup",this._disableDelayedDrag),y(t,"touchend",this._disableDelayedDrag),y(t,"touchcancel",this._disableDelayedDrag),y(t,"pointerup",this._disableDelayedDrag),y(t,"pointercancel",this._disableDelayedDrag),y(t,"mousemove",this._delayedDragTouchMoveHandler),y(t,"touchmove",this._delayedDragTouchMoveHandler),y(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||"touch"==t.pointerType&&t,!this.nativeDraggable||n?w(document,this.options.supportPointer?"pointermove":n?"touchmove":"mousemove",this._onTouchMove):(w(q,"dragend",this),w(Q,"dragstart",this._onDragStart));try{document.selection?Yt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,n){if(Et=!1,Q&&q){Z("dragStarted",this,{evt:n}),this.nativeDraggable&&w(document,"dragover",Ht);var e=this.options;!t&&I(q,e.dragClass,!1),I(q,e.ghostClass,!0),Gt.active=this,t&&this._appendGhost(),$({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ft){this._lastX=ft.clientX,this._lastY=ft.clientY,Pt();for(var t=document.elementFromPoint(ft.clientX,ft.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ft.clientX,ft.clientY))!==n;)n=t;if(q.parentNode[W]._isOutsideThisEl(t),n)do{if(n[W]&&n[W]._onDragOver({clientX:ft.clientX,clientY:ft.clientY,target:t,rootEl:n})&&!this.options.dragoverBubble)break;t=n}while(n=S(n));Ft()}},_onTouchMove:function(t){if(ct){var n=this.options,e=n.fallbackTolerance,i=n.fallbackOffset,o=t.touches?t.touches[0]:t,r=K&&D(K,!0),a=K&&r&&r.a,s=K&&r&&r.d,u=Ct&&yt&&P(yt),l=(o.clientX-ct.clientX+i.x)/(a||1)+(u?u[0]-It[0]:0)/(a||1),c=(o.clientY-ct.clientY+i.y)/(s||1)+(u?u[1]-It[1]:0)/(s||1);if(!Gt.active&&!Et){if(e&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<e)return;this._onDragStart(t,!0)}if(K){r?(r.e+=l-(ht||0),r.f+=c-(dt||0)):r={a:1,b:0,c:0,d:1,e:l,f:c};var f="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");O(K,"webkitTransform",f),O(K,"mozTransform",f),O(K,"msTransform",f),O(K,"transform",f),ht=l,dt=c,ft=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!K){var t=this.options.fallbackOnBody?document.body:Q,n=k(q,!0,Ct,!0,t),e=this.options;if(Ct){for(yt=t;"static"===O(yt,"position")&&"none"===O(yt,"transform")&&yt!==document;)yt=yt.parentNode;yt!==document.body&&yt!==document.documentElement?(yt===document&&(yt=C()),n.top+=yt.scrollTop,n.left+=yt.scrollLeft):yt=C(),It=P(yt)}I(K=q.cloneNode(!0),e.ghostClass,!1),I(K,e.fallbackClass,!0),I(K,e.dragClass,!0),O(K,"transition",""),O(K,"transform",""),O(K,"box-sizing","border-box"),O(K,"margin",0),O(K,"top",n.top),O(K,"left",n.left),O(K,"width",n.width),O(K,"height",n.height),O(K,"opacity","0.8"),O(K,"position",Ct?"absolute":"fixed"),O(K,"zIndex","100000"),O(K,"pointerEvents","none"),Gt.ghost=K,t.appendChild(K),O(K,"transform-origin",vt/parseInt(K.style.width)*100+"% "+mt/parseInt(K.style.height)*100+"%")}},_onDragStart:function(t,n){var e=this,i=t.dataTransfer,o=e.options;Z("dragStart",this,{evt:t}),Gt.eventCanceled?this._onDrop():(Z("setupClone",this),Gt.eventCanceled||((et=L(q)).removeAttribute("id"),et.draggable=!1,et.style["will-change"]="",this._hideClone(),I(et,this.options.chosenClass,!1),Gt.clone=et),e.cloneId=Yt((function(){Z("clone",e),Gt.eventCanceled||(e.options.removeCloneOnHide||Q.insertBefore(et,q),e._hideClone(),$({sortable:e,name:"clone"}))})),!n&&I(q,o.dragClass,!0),n?(St=!0,e._loopId=setInterval(e._emulateDragOver,50)):(y(document,"mouseup",e._onDrop),y(document,"touchend",e._onDrop),y(document,"touchcancel",e._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(e,i,q)),w(document,"drop",e),O(q,"transform","translateZ(0)")),Et=!0,e._dragStartId=Yt(e._dragStarted.bind(e,n,t)),w(document,"selectstart",e),pt=!0,window.getSelection().removeAllRanges(),m&&O(document.body,"user-select","none"))},_onDragOver:function(t){var n,e,i,o,r=this.el,a=t.target,s=this.options,u=s.group,c=Gt.active,f=ut===u,h=s.sort,d=lt||c,v=this,m=!1;if(!Ot){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=x(a,s.draggable,r,!0),B("dragOver"),Gt.eventCanceled)return m;if(q.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||v._ignoreWhileAnimating===a)return L(!1);if(St=!1,c&&!s.disabled&&(f?h||(i=J!==Q):lt===this||(this.lastPutMode=ut.checkPull(this,c,q,t))&&u.checkPut(this,c,q,t))){if(o="vertical"===this._getDirection(t,a),n=k(q),B("dragOverValid"),Gt.eventCanceled)return m;if(i)return J=Q,H(),this._hideClone(),B("revert"),Gt.eventCanceled||(tt?Q.insertBefore(q,tt):Q.appendChild(q)),L(!0);var p=z(r,s.draggable);if(!p||function(t,n,e){var i=k(z(e.el,e.options.draggable)),o=R(e.el,e.options,K);return n?t.clientX>o.right+10||t.clientY>i.bottom&&t.clientX>i.left:t.clientY>o.bottom+10||t.clientX>i.right&&t.clientY>i.top}(t,o,this)&&!p.animated){if(p===q)return L(!1);if(p&&r===t.target&&(a=p),a&&(e=k(a)),!1!==Lt(Q,r,q,n,a,e,t,!!a))return H(),p&&p.nextSibling?r.insertBefore(q,p.nextSibling):r.appendChild(q),J=r,X(),L(!0)}else if(p&&function(t,n,e){var i=k(A(e.el,0,e.options,!0)),o=R(e.el,e.options,K);return n?t.clientX<o.left-10||t.clientY<i.top&&t.clientX<i.right:t.clientY<o.top-10||t.clientY<i.bottom&&t.clientX<i.left}(t,o,this)){var b=A(r,0,s,!0);if(b===q)return L(!1);if(e=k(a=b),!1!==Lt(Q,r,q,n,a,e,t,!1))return H(),r.insertBefore(q,b),J=r,X(),L(!0)}else if(a.parentNode===r){e=k(a);var g,w,y,E=q.parentNode!==r,S=!function(t,n,e){var i=e?t.left:t.top,o=e?n.left:n.top;return i===o||(e?t.right:t.bottom)===(e?n.right:n.bottom)||i+(e?t.width:t.height)/2===o+(e?n.width:n.height)/2}(q.animated&&q.toRect||n,a.animated&&a.toRect||e,o),T=o?"top":"left",M=j(a,"top","top")||j(q,"top","top"),D=M?M.scrollTop:void 0;if(bt!==a&&(w=e[T],Tt=!1,Mt=!S&&s.invertSwap||E),g=function(t,n,e,i,o,r,a,s){var u=i?t.clientY:t.clientX,l=i?e.height:e.width,c=i?e.top:e.left,f=i?e.bottom:e.right,h=!1;if(!a)if(s&&wt<l*o){if(!Tt&&(1===gt?u>c+l*r/2:u<f-l*r/2)&&(Tt=!0),Tt)h=!0;else if(1===gt?u<c+wt:u>f-wt)return-gt}else if(u>c+l*(1-o)/2&&u<f-l*(1-o)/2)return function(t){return N(q)<N(t)?1:-1}(n);return(h=h||a)&&(u<c+l*r/2||u>f-l*r/2)?u>c+l/2?1:-1:0}(t,a,e,o,S?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Mt,bt===a),0!==g){var _=N(q);do{y=J.children[_-=g]}while(y&&("none"===O(y,"display")||y===K))}if(0===g||y===a)return L(!1);bt=a,gt=g;var C=a.nextElementSibling,P=!1,F=Lt(Q,r,q,n,a,e,t,P=1===g);if(!1!==F)return 1!==F&&-1!==F||(P=1===F),Ot=!0,setTimeout(Wt,30),H(),P&&!C?r.appendChild(q):a.parentNode.insertBefore(q,P?C:a),M&&G(M,0,D-M.scrollTop),J=q.parentNode,void 0===w||Mt||(wt=Math.abs(w-k(a)[T])),X(),L(!0)}if(r.contains(q))return L(!1)}return!1}function B(s,u){Z(s,v,l({evt:t,isOwner:f,axis:o?"vertical":"horizontal",revert:i,dragRect:n,targetRect:e,canSort:h,fromSortable:d,target:a,completed:L,onMove:function(e,i){return Lt(Q,r,q,n,e,k(e),t,i)},changed:X},u))}function H(){B("dragOverAnimationCapture"),v.captureAnimationState(),v!==d&&d.captureAnimationState()}function L(n){return B("dragOverCompleted",{insertion:n}),n&&(f?c._hideClone():c._showClone(v),v!==d&&(I(q,lt?lt.options.ghostClass:c.options.ghostClass,!1),I(q,s.ghostClass,!0)),lt!==v&&v!==Gt.active?lt=v:v===Gt.active&&lt&&(lt=null),d===v&&(v._ignoreWhileAnimating=a),v.animateAll((function(){B("dragOverAnimationComplete"),v._ignoreWhileAnimating=null})),v!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===q&&!q.animated||a===r&&!a.animated)&&(bt=null),s.dragoverBubble||t.rootEl||a===document||(q.parentNode[W]._isOutsideThisEl(t.target),!n&&Bt(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function X(){rt=N(q),st=N(q,s.draggable),$({sortable:v,name:"change",toEl:r,newIndex:rt,newDraggableIndex:st,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){y(document,"mousemove",this._onTouchMove),y(document,"touchmove",this._onTouchMove),y(document,"pointermove",this._onTouchMove),y(document,"dragover",Bt),y(document,"mousemove",Bt),y(document,"touchmove",Bt)},_offUpEvents:function(){var t=this.el.ownerDocument;y(t,"mouseup",this._onDrop),y(t,"touchend",this._onDrop),y(t,"pointerup",this._onDrop),y(t,"pointercancel",this._onDrop),y(t,"touchcancel",this._onDrop),y(document,"selectstart",this)},_onDrop:function(t){var n=this.el,e=this.options;rt=N(q),st=N(q,e.draggable),Z("drop",this,{evt:t}),J=q&&q.parentNode,rt=N(q),st=N(q,e.draggable),Gt.eventCanceled||(Et=!1,Mt=!1,Tt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ut(this.cloneId),Ut(this._dragStartId),this.nativeDraggable&&(y(document,"drop",this),y(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),m&&O(document.body,"user-select",""),O(q,"transform",""),t&&(pt&&(t.cancelable&&t.preventDefault(),!e.dropBubble&&t.stopPropagation()),K&&K.parentNode&&K.parentNode.removeChild(K),(Q===J||lt&&"clone"!==lt.lastPutMode)&&et&&et.parentNode&&et.parentNode.removeChild(et),q&&(this.nativeDraggable&&y(q,"dragend",this),Rt(q),q.style["will-change"]="",pt&&!Et&&I(q,lt?lt.options.ghostClass:this.options.ghostClass,!1),I(q,this.options.chosenClass,!1),$({sortable:this,name:"unchoose",toEl:J,newIndex:null,newDraggableIndex:null,originalEvent:t}),Q!==J?(rt>=0&&($({rootEl:J,name:"add",toEl:J,fromEl:Q,originalEvent:t}),$({sortable:this,name:"remove",toEl:J,originalEvent:t}),$({rootEl:J,name:"sort",toEl:J,fromEl:Q,originalEvent:t}),$({sortable:this,name:"sort",toEl:J,originalEvent:t})),lt&&lt.save()):rt!==ot&&rt>=0&&($({sortable:this,name:"update",toEl:J,originalEvent:t}),$({sortable:this,name:"sort",toEl:J,originalEvent:t})),Gt.active&&(null!=rt&&-1!==rt||(rt=ot,st=at),$({sortable:this,name:"end",toEl:J,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Z("nulling",this),Q=q=J=K=tt=et=nt=it=ct=ft=pt=rt=st=ot=at=bt=gt=lt=ut=Gt.dragged=Gt.ghost=Gt.clone=Gt.active=null;var t=this.el;Dt.forEach((function(n){t.contains(n)&&(n.checked=!0)})),Dt.length=ht=dt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":q&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,n=[],e=this.el.children,i=0,o=e.length,r=this.options;i<o;i++)x(t=e[i],r.draggable,this.el,!1)&&n.push(t.getAttribute(r.dataIdAttr)||Xt(t));return n},sort:function(t,n){var e={},i=this.el;this.toArray().forEach((function(t,n){var o=i.children[n];x(o,this.options.draggable,i,!1)&&(e[t]=o)}),this),n&&this.captureAnimationState(),t.forEach((function(t){e[t]&&(i.removeChild(e[t]),i.appendChild(e[t]))})),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return x(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var e=this.options;if(void 0===n)return e[t];var i=U.modifyOption(this,t,n);e[t]=void 0!==i?i:n,"group"===t&&Nt(e)},destroy:function(){Z("destroy",this);var t=this.el;t[W]=null,y(t,"mousedown",this._onTapStart),y(t,"touchstart",this._onTapStart),y(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(y(t,"dragover",this),y(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),xt.splice(xt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!it){if(Z("hideClone",this),Gt.eventCanceled)return;O(et,"display","none"),this.options.removeCloneOnHide&&et.parentNode&&et.parentNode.removeChild(et),it=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(it){if(Z("showClone",this),Gt.eventCanceled)return;q.parentNode!=Q||this.options.group.revertClone?tt?Q.insertBefore(et,tt):Q.appendChild(et):Q.insertBefore(et,q),this.options.group.revertClone&&this.animate(q,et),O(et,"display",""),it=!1}}else this._hideClone()}},_t&&w(document,"touchmove",(function(t){(Gt.active||Et)&&t.cancelable&&t.preventDefault()})),Gt.utils={on:w,off:y,css:O,find:_,is:function(t,n){return!!x(t,n,t,!1)},extend:function(t,n){if(t&&n)for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t},throttle:H,closest:x,toggleClass:I,clone:L,index:N,nextTick:Yt,cancelNextTick:Ut,detectDirection:zt,getChild:A,expando:W},Gt.get=function(t){return t[W]},Gt.mount=function(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];n[0].constructor===Array&&(n=n[0]),n.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Gt.utils=l(l({},Gt.utils),t.utils)),U.mount(t)}))},Gt.create=function(t,n){return new Gt(t,n)},Gt.version="1.15.7";var Vt,Zt,$t,qt,Jt,Kt,Qt=[],tn=!1;function nn(){Qt.forEach((function(t){clearInterval(t.pid)})),Qt=[]}function en(){clearInterval(Kt)}var on=H((function(t,n,e,i){if(n.scroll){var o,r=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,s=n.scrollSensitivity,u=n.scrollSpeed,l=C(),c=!1;Zt!==e&&(Zt=e,nn(),o=n.scrollFn,!0===(Vt=n.scroll)&&(Vt=F(e,!0)));var f=0,h=Vt;do{var d=h,v=k(d),m=v.top,p=v.bottom,b=v.left,g=v.right,w=v.width,y=v.height,E=void 0,S=void 0,x=d.scrollWidth,T=d.scrollHeight,M=O(d),I=d.scrollLeft,D=d.scrollTop;d===l?(E=w<x&&("auto"===M.overflowX||"scroll"===M.overflowX||"visible"===M.overflowX),S=y<T&&("auto"===M.overflowY||"scroll"===M.overflowY||"visible"===M.overflowY)):(E=w<x&&("auto"===M.overflowX||"scroll"===M.overflowX),S=y<T&&("auto"===M.overflowY||"scroll"===M.overflowY));var _=E&&(Math.abs(g-r)<=s&&I+w<x)-(Math.abs(b-r)<=s&&!!I),j=S&&(Math.abs(p-a)<=s&&D+y<T)-(Math.abs(m-a)<=s&&!!D);if(!Qt[f])for(var A=0;A<=f;A++)Qt[A]||(Qt[A]={});Qt[f].vx==_&&Qt[f].vy==j&&Qt[f].el===d||(Qt[f].el=d,Qt[f].vx=_,Qt[f].vy=j,clearInterval(Qt[f].pid),0==_&&0==j||(c=!0,Qt[f].pid=setInterval(function(){i&&0===this.layer&&Gt.active._onTouchMove(Jt);var n=Qt[this.layer].vy?Qt[this.layer].vy*u:0,e=Qt[this.layer].vx?Qt[this.layer].vx*u:0;"function"==typeof o&&"continue"!==o.call(Gt.dragged.parentNode[W],e,n,t,Jt,Qt[this.layer].el)||G(Qt[this.layer].el,e,n)}.bind({layer:f}),24))),f++}while(n.bubbleScroll&&h!==l&&(h=F(h,!1)));tn=c}}),30),rn=function(t){var n=t.originalEvent,e=t.putSortable,i=t.dragEl,o=t.dispatchSortableEvent,r=t.unhideGhostForTarget;if(n){var a=e||t.activeSortable;(0,t.hideGhostForTarget)();var s=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,u=document.elementFromPoint(s.clientX,s.clientY);r(),a&&!a.el.contains(u)&&(o("spill"),this.onSpill({dragEl:i,putSortable:e}))}};function an(){}function sn(){}an.prototype={startIndex:null,dragStart:function(t){this.startIndex=t.oldDraggableIndex},onSpill:function(t){var n=t.dragEl,e=t.putSortable;this.sortable.captureAnimationState(),e&&e.captureAnimationState();var i=A(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),e&&e.animateAll()},drop:rn},s(an,{pluginName:"revertOnSpill"}),sn.prototype={onSpill:function(t){var n=t.dragEl,e=t.putSortable||this.sortable;e.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),e.animateAll()},drop:rn},s(sn,{pluginName:"removeOnSpill"}),Gt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var n=t.originalEvent;this.sortable.nativeDraggable?w(document,"dragover",this._handleAutoScroll):w(document,this.options.supportPointer?"pointermove":n.touches?"touchmove":"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var n=t.originalEvent;this.options.dragOverBubble||n.rootEl||this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):(y(document,"pointermove",this._handleFallbackAutoScroll),y(document,"touchmove",this._handleFallbackAutoScroll),y(document,"mousemove",this._handleFallbackAutoScroll)),en(),nn(),clearTimeout(T),T=void 0},nulling:function(){Jt=Zt=Vt=tn=Kt=$t=qt=null,Qt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,n){var e=this,i=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(i,o);if(Jt=t,n||this.options.forceAutoScrollFallback||d||h||m){on(t,this.options,r,n);var a=F(r,!0);!tn||Kt&&i===$t&&o===qt||(Kt&&en(),Kt=setInterval((function(){var r=F(document.elementFromPoint(i,o),!0);r!==a&&(a=r,nn()),on(t,e.options,r,n)}),10),$t=i,qt=o)}else{if(!this.options.bubbleScroll||F(r,!0)===C())return void nn();on(t,this.options,F(r,!1),!1)}}},s(t,{pluginName:"scroll",initializeByDefault:!0})}),Gt.mount(sn,an);const un=t(class extends n{constructor(t){super(),!1!==t&&this.__registerHost(),this.pdsSortableItemMoved=e(this,"pdsSortableItemMoved",7),this.border=!1,this.disabled=!1,this.dividers=!1,this.handleType="row"}handleDisabledChange(){var t;null===(t=this.sortableInstance)||void 0===t||t.option("disabled",this.disabled)}classNames(){const t=["pds-sortable"];return this.border&&t.push("pds-sortable--bordered"),this.disabled&&t.push("pds-sortable--disabled"),this.dividers&&t.push("pds-sortable--divided"),void 0!==this.handleType&&t.push("pds-sortable--handle-type-"+this.handleType),t.join(" ")}componentDidLoad(){let t={animation:150,disabled:this.disabled,ghostClass:"pds-sortable-item--ghost",dragClass:"pds-sortable-item--drag",onEnd:t=>{this.pdsSortableItemMoved.emit(t)}};"handle"===this.handleType&&(t=Object.assign(Object.assign({},t),{handle:".pds-sortable-item__handle"})),this.sortableInstance=Gt.create(this.el,t)}render(){return i(o,{key:"562bfb1ecea0b3a3f246b2e277b71f70d14b854c",class:this.classNames(),id:this.componentId},i("slot",{key:"a1ff894a9cd6049e532d2fa744429cec6d97e280"}))}get el(){return this}static get watchers(){return{disabled:[{handleDisabledChange:0}]}}static get style(){return".pds-sortable.sc-pds-sortable-h{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.pds-sortable.pds-sortable--bordered.sc-pds-sortable-h{border:var(--pine-border);border-radius:var(--pine-dimension-2xs)}"}},[262,"pds-sortable",{border:[516],disabled:[516],componentId:[1,"component-id"],dividers:[516],handleType:[1,"handle-type"]},void 0,{disabled:[{handleDisabledChange:0}]}]),ln=un,cn=function(){"undefined"!=typeof customElements&&["pds-sortable"].forEach((t=>{"pds-sortable"===t&&(customElements.get(r(t))||customElements.define(r(t),un))}))};export{ln as PdsSortable,cn as defineCustomElement}