@esri/calcite-components 1.0.0-beta.64 → 1.0.0-beta.68

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 (1497) hide show
  1. package/dist/calcite/assets/calcite-icon/beacon16.json +1 -0
  2. package/dist/calcite/assets/calcite-icon/beacon24.json +1 -0
  3. package/dist/calcite/assets/calcite-icon/beacon32.json +1 -0
  4. package/dist/calcite/assets/calcite-icon/classifyObjects16.json +1 -0
  5. package/dist/calcite/assets/calcite-icon/classifyObjects24.json +1 -0
  6. package/dist/calcite/assets/calcite-icon/classifyObjects32.json +1 -0
  7. package/dist/calcite/assets/calcite-icon/classifyPixels16.json +1 -0
  8. package/dist/calcite/assets/calcite-icon/classifyPixels24.json +1 -0
  9. package/dist/calcite/assets/calcite-icon/classifyPixels32.json +1 -0
  10. package/dist/calcite/assets/calcite-icon/dataCloud16.json +1 -0
  11. package/dist/calcite/assets/calcite-icon/dataCloud24.json +1 -0
  12. package/dist/calcite/assets/calcite-icon/dataCloud32.json +1 -0
  13. package/dist/calcite/assets/calcite-icon/dataFolder16.json +1 -0
  14. package/dist/calcite/assets/calcite-icon/dataFolder24.json +1 -0
  15. package/dist/calcite/assets/calcite-icon/dataFolder32.json +1 -0
  16. package/dist/calcite/assets/calcite-icon/dataRaster16.json +1 -0
  17. package/dist/calcite/assets/calcite-icon/dataRaster24.json +1 -0
  18. package/dist/calcite/assets/calcite-icon/dataRaster32.json +1 -0
  19. package/dist/calcite/assets/calcite-icon/distributeHeightEvenly16.json +1 -0
  20. package/dist/calcite/assets/calcite-icon/distributeHeightEvenly24.json +1 -0
  21. package/dist/calcite/assets/calcite-icon/distributeHeightEvenly32.json +1 -0
  22. package/dist/calcite/assets/calcite-icon/distributeWidthEvenly16.json +1 -0
  23. package/dist/calcite/assets/calcite-icon/distributeWidthEvenly24.json +1 -0
  24. package/dist/calcite/assets/calcite-icon/distributeWidthEvenly32.json +1 -0
  25. package/dist/calcite/assets/calcite-icon/featureDisplayOrder16.json +1 -0
  26. package/dist/calcite/assets/calcite-icon/featureDisplayOrder24.json +1 -0
  27. package/dist/calcite/assets/calcite-icon/featureDisplayOrder32.json +1 -0
  28. package/dist/calcite/assets/calcite-icon/fingerprint16.json +1 -0
  29. package/dist/calcite/assets/calcite-icon/fingerprint24.json +1 -0
  30. package/dist/calcite/assets/calcite-icon/fingerprint32.json +1 -0
  31. package/dist/calcite/assets/calcite-icon/gridUnit16.json +1 -0
  32. package/dist/calcite/assets/calcite-icon/gridUnit24.json +1 -0
  33. package/dist/calcite/assets/calcite-icon/gridUnit32.json +1 -0
  34. package/dist/calcite/assets/calcite-icon/horizontalDistribute16.json +1 -0
  35. package/dist/calcite/assets/calcite-icon/horizontalDistribute24.json +1 -0
  36. package/dist/calcite/assets/calcite-icon/horizontalDistribute32.json +1 -0
  37. package/dist/calcite/assets/calcite-icon/imageChips16.json +1 -0
  38. package/dist/calcite/assets/calcite-icon/imageChips24.json +1 -0
  39. package/dist/calcite/assets/calcite-icon/imageChips32.json +1 -0
  40. package/dist/calcite/assets/calcite-icon/imageUnit16.json +1 -0
  41. package/dist/calcite/assets/calcite-icon/imageUnit24.json +1 -0
  42. package/dist/calcite/assets/calcite-icon/imageUnit32.json +1 -0
  43. package/dist/calcite/assets/calcite-icon/lassoSelect16.json +1 -0
  44. package/dist/calcite/assets/calcite-icon/lassoSelect24.json +1 -0
  45. package/dist/calcite/assets/calcite-icon/lassoSelect32.json +1 -0
  46. package/dist/calcite/assets/calcite-icon/newTraining16.json +1 -0
  47. package/dist/calcite/assets/calcite-icon/newTraining24.json +1 -0
  48. package/dist/calcite/assets/calcite-icon/newTraining32.json +1 -0
  49. package/dist/calcite/assets/calcite-icon/orientedImageryWidget16.json +1 -0
  50. package/dist/calcite/assets/calcite-icon/orientedImageryWidget24.json +1 -0
  51. package/dist/calcite/assets/calcite-icon/orientedImageryWidget32.json +1 -0
  52. package/dist/calcite/assets/calcite-icon/package16.json +1 -0
  53. package/dist/calcite/assets/calcite-icon/package24.json +1 -0
  54. package/dist/calcite/assets/calcite-icon/package32.json +1 -0
  55. package/dist/calcite/assets/calcite-icon/penMark16.json +1 -0
  56. package/dist/calcite/assets/calcite-icon/penMark24.json +1 -0
  57. package/dist/calcite/assets/calcite-icon/penMark32.json +1 -0
  58. package/dist/calcite/assets/calcite-icon/penMarkPlus16.json +1 -0
  59. package/dist/calcite/assets/calcite-icon/penMarkPlus24.json +1 -0
  60. package/dist/calcite/assets/calcite-icon/penMarkPlus32.json +1 -0
  61. package/dist/calcite/assets/calcite-icon/processingTemplates16.json +1 -0
  62. package/dist/calcite/assets/calcite-icon/processingTemplates24.json +1 -0
  63. package/dist/calcite/assets/calcite-icon/processingTemplates32.json +1 -0
  64. package/dist/calcite/assets/calcite-icon/retrain16.json +1 -0
  65. package/dist/calcite/assets/calcite-icon/retrain24.json +1 -0
  66. package/dist/calcite/assets/calcite-icon/retrain32.json +1 -0
  67. package/dist/calcite/assets/calcite-icon/smartForm16.json +1 -0
  68. package/dist/calcite/assets/calcite-icon/smartForm24.json +1 -0
  69. package/dist/calcite/assets/calcite-icon/smartForm32.json +1 -0
  70. package/dist/calcite/assets/calcite-icon/speechBubbleCheck16.json +1 -0
  71. package/dist/calcite/assets/calcite-icon/speechBubbleCheck24.json +1 -0
  72. package/dist/calcite/assets/calcite-icon/speechBubbleCheck32.json +1 -0
  73. package/dist/calcite/assets/calcite-icon/subscript16.json +1 -0
  74. package/dist/calcite/assets/calcite-icon/subscript24.json +1 -0
  75. package/dist/calcite/assets/calcite-icon/subscript32.json +1 -0
  76. package/dist/calcite/assets/calcite-icon/superscript16.json +1 -0
  77. package/dist/calcite/assets/calcite-icon/superscript24.json +1 -0
  78. package/dist/calcite/assets/calcite-icon/superscript32.json +1 -0
  79. package/dist/calcite/assets/calcite-icon/verticalDistribute16.json +1 -0
  80. package/dist/calcite/assets/calcite-icon/verticalDistribute24.json +1 -0
  81. package/dist/calcite/assets/calcite-icon/verticalDistribute32.json +1 -0
  82. package/dist/calcite/assets/calcite-icon/wifi16.json +1 -0
  83. package/dist/calcite/assets/calcite-icon/wifi24.json +1 -0
  84. package/dist/calcite/assets/calcite-icon/wifi32.json +1 -0
  85. package/dist/calcite/calcite.css +1 -1
  86. package/dist/calcite/calcite.esm.js +5 -1
  87. package/dist/calcite/calcite.js +1 -1
  88. package/dist/calcite/index.esm.js +4 -0
  89. package/dist/calcite/p-00d72f16.entry.js +5 -0
  90. package/dist/calcite/p-01c3783e.system.entry.js +5 -0
  91. package/dist/calcite/p-021d44b7.system.entry.js +5 -0
  92. package/dist/calcite/p-050dc7e6.system.entry.js +5 -0
  93. package/dist/calcite/p-05bf835f.js +5 -0
  94. package/dist/calcite/p-07ba39b6.js +5 -0
  95. package/dist/calcite/p-0e30afe6.entry.js +5 -0
  96. package/dist/calcite/p-0fb8cdc5.entry.js +5 -0
  97. package/dist/calcite/p-0fc8b24c.system.entry.js +5 -0
  98. package/dist/calcite/p-0fd333ff.entry.js +5 -0
  99. package/dist/calcite/p-10ccc21d.entry.js +5 -0
  100. package/dist/calcite/p-157d05ce.js +5 -0
  101. package/dist/calcite/p-175764f3.system.entry.js +5 -0
  102. package/dist/calcite/p-18078190.entry.js +5 -0
  103. package/dist/calcite/p-18574b32.entry.js +5 -0
  104. package/dist/calcite/p-1aaf7f83.entry.js +5 -0
  105. package/dist/calcite/p-1b2c1f55.entry.js +5 -0
  106. package/dist/calcite/p-1d6404b5.system.js +5 -0
  107. package/dist/calcite/p-1f99b038.entry.js +5 -0
  108. package/dist/calcite/p-1fb7138b.js +5 -0
  109. package/dist/calcite/p-20042561.entry.js +5 -0
  110. package/dist/calcite/p-22ad79b1.entry.js +5 -0
  111. package/dist/calcite/p-24b86e03.entry.js +5 -0
  112. package/dist/calcite/p-26045881.entry.js +5 -0
  113. package/dist/calcite/p-26508b91.js +5 -0
  114. package/dist/calcite/p-2920aa02.entry.js +5 -0
  115. package/dist/calcite/p-29b110b2.entry.js +5 -0
  116. package/dist/calcite/p-2ba00b89.js +5 -0
  117. package/dist/calcite/p-318e95d7.system.entry.js +5 -0
  118. package/dist/calcite/p-31c4a271.system.entry.js +5 -0
  119. package/dist/calcite/p-32faf98b.system.entry.js +5 -0
  120. package/dist/calcite/p-32fbf8cd.system.js +5 -0
  121. package/dist/calcite/p-349333f8.system.entry.js +5 -0
  122. package/dist/calcite/p-34a1c944.entry.js +5 -0
  123. package/dist/calcite/p-34a6550f.system.entry.js +5 -0
  124. package/dist/calcite/p-361ddbb6.entry.js +5 -0
  125. package/dist/calcite/p-378b83de.entry.js +5 -0
  126. package/dist/calcite/p-378ffa38.system.js +5 -0
  127. package/dist/calcite/p-37cee0ea.entry.js +5 -0
  128. package/dist/calcite/p-3929447c.system.entry.js +5 -0
  129. package/dist/calcite/p-3b17d8d0.system.js +5 -0
  130. package/dist/calcite/p-3ba8024a.system.entry.js +5 -0
  131. package/dist/calcite/p-4035444d.system.js +5 -0
  132. package/dist/calcite/p-41e9b889.entry.js +5 -0
  133. package/dist/calcite/p-43494684.entry.js +5 -0
  134. package/dist/calcite/p-45d123be.system.entry.js +5 -0
  135. package/dist/calcite/p-47313747.system.js +5 -0
  136. package/dist/calcite/p-473cfb74.system.entry.js +5 -0
  137. package/dist/calcite/p-477bac2c.system.js +5 -0
  138. package/dist/calcite/p-485062f4.system.entry.js +5 -0
  139. package/dist/calcite/p-4c7e3d8e.system.entry.js +5 -0
  140. package/dist/calcite/p-4de6f4fd.system.js +5 -0
  141. package/dist/calcite/p-4e06a168.entry.js +5 -0
  142. package/dist/calcite/p-51cb078a.entry.js +5 -0
  143. package/dist/calcite/p-52cc870b.js +5 -0
  144. package/dist/calcite/p-530584ff.system.entry.js +5 -0
  145. package/dist/calcite/p-568ed3d6.system.entry.js +5 -0
  146. package/dist/calcite/p-56b352bf.system.js +5 -0
  147. package/dist/calcite/p-57f5866d.system.entry.js +5 -0
  148. package/dist/calcite/p-5c221c33.system.entry.js +5 -0
  149. package/dist/calcite/p-5cb26137.system.entry.js +5 -0
  150. package/dist/calcite/p-61038b30.js +5 -0
  151. package/dist/calcite/p-64d90b14.system.js +5 -0
  152. package/dist/calcite/p-67fd79db.entry.js +5 -0
  153. package/dist/calcite/p-693a4d5f.entry.js +5 -0
  154. package/dist/calcite/p-69548a7d.system.entry.js +5 -0
  155. package/dist/calcite/p-6a541e77.system.js +5 -0
  156. package/dist/calcite/p-6cc23c39.system.js +5 -0
  157. package/dist/calcite/p-72563742.js +5 -0
  158. package/dist/calcite/p-727c8f36.system.entry.js +5 -0
  159. package/dist/calcite/p-728501db.system.js +5 -0
  160. package/dist/calcite/p-72ffc6d7.entry.js +5 -0
  161. package/dist/calcite/p-745e41ea.entry.js +5 -0
  162. package/dist/calcite/p-75793454.entry.js +5 -0
  163. package/dist/calcite/p-7839d1c9.entry.js +5 -0
  164. package/dist/calcite/p-7a544774.system.entry.js +5 -0
  165. package/dist/calcite/p-7b01fe89.js +5 -0
  166. package/dist/calcite/p-7b600760.entry.js +5 -0
  167. package/dist/calcite/p-7c0debe0.system.entry.js +5 -0
  168. package/dist/calcite/p-7cdfec27.system.js +5 -0
  169. package/dist/calcite/p-7ed4c551.system.js +5 -0
  170. package/dist/calcite/p-7f4a5f8e.system.entry.js +5 -0
  171. package/dist/calcite/p-81a82d01.system.entry.js +5 -0
  172. package/dist/calcite/p-85a2bf7c.system.entry.js +5 -0
  173. package/dist/calcite/p-8655c0a1.entry.js +5 -0
  174. package/dist/calcite/p-87b93729.entry.js +5 -0
  175. package/dist/calcite/p-87e83c0d.system.entry.js +5 -0
  176. package/dist/calcite/p-8a63221d.js +5 -0
  177. package/dist/calcite/p-8efb43fc.entry.js +5 -0
  178. package/dist/calcite/p-8fcfe861.js +5 -0
  179. package/dist/calcite/p-91645bf7.system.js +5 -0
  180. package/dist/calcite/p-9358deb1.system.entry.js +5 -0
  181. package/dist/calcite/p-93d8a7d5.entry.js +5 -0
  182. package/dist/calcite/p-95a3a0ce.entry.js +5 -0
  183. package/dist/calcite/p-9965ea81.system.js +5 -0
  184. package/dist/calcite/p-99da965d.system.entry.js +5 -0
  185. package/dist/calcite/p-9ac1fa0b.system.entry.js +5 -0
  186. package/dist/calcite/p-9caae570.entry.js +5 -0
  187. package/dist/calcite/p-9d3ee5cf.system.entry.js +5 -0
  188. package/dist/calcite/p-9d83f268.system.entry.js +5 -0
  189. package/dist/calcite/p-9dbb69f7.entry.js +5 -0
  190. package/dist/calcite/p-9e4f2697.system.entry.js +5 -0
  191. package/dist/calcite/p-a0c02648.system.js +5 -0
  192. package/dist/calcite/p-a20df95c.js +5 -0
  193. package/dist/calcite/p-a62de092.js +5 -0
  194. package/dist/calcite/p-a7521c0d.entry.js +5 -0
  195. package/dist/calcite/p-a8cd5cde.system.entry.js +5 -0
  196. package/dist/calcite/p-a93678c6.system.entry.js +5 -0
  197. package/dist/calcite/p-aad45edf.system.js +5 -0
  198. package/dist/calcite/p-ac3d8784.entry.js +5 -0
  199. package/dist/calcite/p-ac9607f2.system.js +11 -0
  200. package/dist/calcite/p-acaad99b.system.entry.js +5 -0
  201. package/dist/calcite/p-accdb0ce.js +5 -0
  202. package/dist/calcite/p-b06207bb.js +5 -0
  203. package/dist/calcite/p-b2ab0485.js +5 -0
  204. package/dist/calcite/p-b701101e.entry.js +5 -0
  205. package/dist/calcite/p-ba255377.entry.js +5 -0
  206. package/dist/calcite/p-ba9b4f62.system.entry.js +5 -0
  207. package/dist/calcite/p-bb916828.system.entry.js +5 -0
  208. package/dist/calcite/p-bc02d9ef.system.entry.js +5 -0
  209. package/dist/calcite/p-bcc323ec.system.entry.js +5 -0
  210. package/dist/calcite/p-bd555b2e.system.entry.js +5 -0
  211. package/dist/calcite/p-be3b0fee.entry.js +5 -0
  212. package/dist/calcite/p-bfc162ee.system.entry.js +5 -0
  213. package/dist/calcite/p-c0dd929a.entry.js +5 -0
  214. package/dist/calcite/p-c1995144.system.entry.js +5 -0
  215. package/dist/calcite/p-c20278e8.system.entry.js +5 -0
  216. package/dist/calcite/p-c31243c5.entry.js +5 -0
  217. package/dist/calcite/p-c3922ef7.system.entry.js +5 -0
  218. package/dist/calcite/p-c57f8690.entry.js +5 -0
  219. package/dist/calcite/p-c5ec8d74.js +11 -0
  220. package/dist/calcite/p-c74fc589.system.js +5 -0
  221. package/dist/calcite/p-caf7085a.system.js +5 -0
  222. package/dist/calcite/p-cb228ac0.entry.js +5 -0
  223. package/dist/calcite/p-cbdf0e6c.js +5 -0
  224. package/dist/calcite/p-cd8f7781.system.entry.js +5 -0
  225. package/dist/calcite/p-d35e423d.js +5 -0
  226. package/dist/calcite/p-d5d62977.entry.js +5 -0
  227. package/dist/calcite/p-d7a7a544.system.entry.js +5 -0
  228. package/dist/calcite/p-d7e5b807.system.entry.js +5 -0
  229. package/dist/calcite/p-da9603a3.entry.js +5 -0
  230. package/dist/calcite/p-db10485b.system.js +5 -0
  231. package/dist/calcite/p-de0f4633.entry.js +5 -0
  232. package/dist/calcite/p-e020662f.system.js +5 -0
  233. package/dist/calcite/p-e33a2dd2.system.entry.js +5 -0
  234. package/dist/calcite/p-e3a30266.system.entry.js +5 -0
  235. package/dist/calcite/p-e4acb5a8.js +5 -0
  236. package/dist/calcite/p-e693758c.entry.js +5 -0
  237. package/dist/calcite/p-e9044cc1.entry.js +5 -0
  238. package/dist/calcite/p-eb3ee207.entry.js +5 -0
  239. package/dist/calcite/p-f07d3627.js +5 -0
  240. package/dist/calcite/p-f141da0f.entry.js +5 -0
  241. package/dist/calcite/p-f243b615.js +5 -0
  242. package/dist/calcite/p-f37563ac.system.entry.js +5 -0
  243. package/dist/calcite/p-f4299b95.entry.js +5 -0
  244. package/dist/calcite/p-f5d25746.system.entry.js +5 -0
  245. package/dist/calcite/p-f8d975a1.system.entry.js +5 -0
  246. package/dist/calcite/p-fb1da0f5.system.js +5 -0
  247. package/dist/calcite/p-fc4846f0.system.entry.js +5 -0
  248. package/dist/calcite/p-fe52131d.entry.js +5 -0
  249. package/dist/calcite/p-ff04f827.system.entry.js +5 -0
  250. package/dist/calcite/p-fff0a881.entry.js +5 -0
  251. package/dist/cjs/CalciteExpandToggle-0d802f83.js +94 -0
  252. package/dist/cjs/CalciteHeading-381b977d.js +19 -0
  253. package/dist/cjs/array-a5dedf5a.js +11 -0
  254. package/dist/cjs/calcite-accordion_2.cjs.entry.js +10 -6
  255. package/dist/cjs/calcite-action-bar.cjs.entry.js +33 -23
  256. package/dist/cjs/calcite-action-group.cjs.entry.js +10 -6
  257. package/dist/cjs/calcite-action-menu.cjs.entry.js +15 -9
  258. package/dist/cjs/calcite-action-pad.cjs.entry.js +11 -7
  259. package/dist/cjs/calcite-action.cjs.entry.js +12 -12
  260. package/dist/cjs/calcite-alert.cjs.entry.js +10 -6
  261. package/dist/cjs/calcite-avatar.cjs.entry.js +9 -5
  262. package/dist/cjs/calcite-block_2.cjs.entry.js +38 -31
  263. package/dist/cjs/calcite-button.cjs.entry.js +63 -40
  264. package/dist/cjs/calcite-card.cjs.entry.js +9 -5
  265. package/dist/cjs/calcite-checkbox.cjs.entry.js +28 -35
  266. package/dist/cjs/calcite-chip.cjs.entry.js +8 -4
  267. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +18 -14
  268. package/dist/cjs/calcite-combobox_3.cjs.entry.js +36 -31
  269. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +19 -15
  270. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +49 -40
  271. package/dist/cjs/calcite-fab.cjs.entry.js +8 -4
  272. package/dist/cjs/calcite-filter.cjs.entry.js +14 -10
  273. package/dist/cjs/calcite-flow.cjs.entry.js +7 -3
  274. package/dist/cjs/calcite-graph_2.cjs.entry.js +80 -31
  275. package/dist/cjs/calcite-handle.cjs.entry.js +6 -2
  276. package/dist/cjs/calcite-icon.cjs.entry.js +9 -5
  277. package/dist/cjs/calcite-inline-editable.cjs.entry.js +28 -17
  278. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +32 -22
  279. package/dist/cjs/calcite-input-message.cjs.entry.js +8 -4
  280. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +26 -22
  281. package/dist/cjs/calcite-input.cjs.entry.js +30 -25
  282. package/dist/cjs/calcite-label.cjs.entry.js +20 -78
  283. package/dist/cjs/calcite-link.cjs.entry.js +14 -4
  284. package/dist/cjs/calcite-list_3.cjs.entry.js +33 -8
  285. package/dist/cjs/calcite-loader.cjs.entry.js +8 -4
  286. package/dist/cjs/calcite-modal.cjs.entry.js +10 -6
  287. package/dist/cjs/calcite-notice.cjs.entry.js +10 -6
  288. package/dist/cjs/calcite-option_3.cjs.entry.js +17 -15
  289. package/dist/cjs/calcite-pagination.cjs.entry.js +8 -4
  290. package/dist/cjs/calcite-panel.cjs.entry.js +12 -8
  291. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +16 -12
  292. package/dist/cjs/calcite-popover_2.cjs.entry.js +11 -7
  293. package/dist/cjs/calcite-progress.cjs.entry.js +6 -2
  294. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +6 -2
  295. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +27 -25
  296. package/dist/cjs/calcite-radio_2.cjs.entry.js +57 -30
  297. package/dist/cjs/calcite-rating.cjs.entry.js +23 -11
  298. package/dist/cjs/calcite-scrim.cjs.entry.js +6 -2
  299. package/dist/cjs/calcite-shell_3.cjs.entry.js +10 -6
  300. package/dist/cjs/calcite-sortable-list.cjs.entry.js +27 -6
  301. package/dist/cjs/calcite-split-button.cjs.entry.js +8 -4
  302. package/dist/cjs/calcite-stepper_2.cjs.entry.js +11 -7
  303. package/dist/cjs/calcite-switch.cjs.entry.js +46 -39
  304. package/dist/cjs/calcite-tab_4.cjs.entry.js +15 -11
  305. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +26 -9
  306. package/dist/cjs/calcite-tile.cjs.entry.js +9 -5
  307. package/dist/cjs/calcite-tip_3.cjs.entry.js +12 -8
  308. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +14 -9
  309. package/dist/cjs/calcite-tree_2.cjs.entry.js +30 -6
  310. package/dist/cjs/calcite-value-list_2.cjs.entry.js +14 -10
  311. package/dist/cjs/calcite.cjs.js +7 -3
  312. package/dist/cjs/debounce-95979061.js +495 -0
  313. package/dist/cjs/dom-19822169.js +170 -0
  314. package/dist/cjs/forIn-a5d553af.js +622 -0
  315. package/dist/cjs/form-00fb301c.js +22 -0
  316. package/dist/cjs/guid-b270f0db.js +20 -0
  317. package/dist/cjs/index-1987a382.js +2066 -0
  318. package/dist/cjs/index.cjs.js +4 -0
  319. package/dist/cjs/interfaces-54651c1c.js +13 -0
  320. package/dist/cjs/key-8bfb93ec.js +37 -0
  321. package/dist/cjs/label-549c3d9d.js +58 -0
  322. package/dist/cjs/loader.cjs.js +7 -3
  323. package/dist/cjs/locale-69dc9583.js +123 -0
  324. package/dist/cjs/math-9d44163f.js +9 -0
  325. package/dist/cjs/number-e6448e15.js +45 -0
  326. package/dist/cjs/observers-41837607.js +22 -0
  327. package/dist/cjs/popper-cd9c0742.js +1790 -0
  328. package/dist/cjs/resources-407a4290.js +20 -0
  329. package/dist/cjs/resources-7dcd68d1.js +232 -0
  330. package/dist/cjs/resources-d0619f6a.js +346 -0
  331. package/dist/cjs/resources-ffe563a2.js +21 -0
  332. package/dist/cjs/sortable.esm-d7a4560b.js +3019 -0
  333. package/dist/cjs/utils-55d67711.js +123 -0
  334. package/dist/collection/collection-manifest.json +1 -1
  335. package/dist/collection/components/calcite-accordion/calcite-accordion.js +7 -0
  336. package/dist/collection/components/calcite-accordion/interfaces.js +4 -0
  337. package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +7 -0
  338. package/dist/collection/components/calcite-action/calcite-action.css +18 -69
  339. package/dist/collection/components/calcite-action/calcite-action.js +35 -32
  340. package/dist/collection/components/calcite-action/resources.js +4 -0
  341. package/dist/collection/components/calcite-action-bar/calcite-action-bar.js +45 -16
  342. package/dist/collection/components/calcite-action-bar/resources.js +4 -0
  343. package/dist/collection/components/calcite-action-bar/utils.js +5 -0
  344. package/dist/collection/components/calcite-action-group/calcite-action-group.js +4 -0
  345. package/dist/collection/components/calcite-action-group/resources.js +4 -0
  346. package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +8 -2
  347. package/dist/collection/components/calcite-action-menu/resources.js +4 -0
  348. package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +4 -0
  349. package/dist/collection/components/calcite-action-pad/resources.js +4 -0
  350. package/dist/collection/components/calcite-alert/calcite-alert.css +0 -62
  351. package/dist/collection/components/calcite-alert/calcite-alert.js +4 -0
  352. package/dist/collection/components/calcite-alert/interfaces.js +4 -0
  353. package/dist/collection/components/calcite-alert/resources.js +4 -0
  354. package/dist/collection/components/calcite-avatar/calcite-avatar.js +4 -0
  355. package/dist/collection/components/calcite-avatar/utils.js +4 -0
  356. package/dist/collection/components/calcite-block/calcite-block.css +18 -0
  357. package/dist/collection/components/calcite-block/calcite-block.js +12 -7
  358. package/dist/collection/components/calcite-block/resources.js +8 -2
  359. package/dist/collection/components/calcite-block-section/calcite-block-section.css +1 -0
  360. package/dist/collection/components/calcite-block-section/calcite-block-section.js +20 -16
  361. package/dist/collection/components/calcite-block-section/interfaces.js +4 -0
  362. package/dist/collection/components/calcite-block-section/resources.js +4 -0
  363. package/dist/collection/components/calcite-button/calcite-button.js +40 -38
  364. package/dist/collection/components/calcite-button/interfaces.js +4 -0
  365. package/dist/collection/components/calcite-button/resources.js +4 -0
  366. package/dist/collection/components/calcite-card/calcite-card.js +5 -1
  367. package/dist/collection/components/calcite-card/resources.js +4 -0
  368. package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +5 -2
  369. package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +46 -41
  370. package/dist/collection/components/calcite-chip/calcite-chip.js +6 -1
  371. package/dist/collection/components/calcite-chip/interfaces.js +4 -0
  372. package/dist/collection/components/calcite-chip/resources.js +4 -0
  373. package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +8 -4
  374. package/dist/collection/components/calcite-color-picker/interfaces.js +4 -0
  375. package/dist/collection/components/calcite-color-picker/resources.js +4 -0
  376. package/dist/collection/components/calcite-color-picker/utils.js +4 -0
  377. package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +4 -0
  378. package/dist/collection/components/calcite-color-picker-hex-input/resources.js +4 -0
  379. package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.js +4 -0
  380. package/dist/collection/components/calcite-color-picker-swatch/resources.js +4 -0
  381. package/dist/collection/components/calcite-combobox/calcite-combobox.css +20 -5
  382. package/dist/collection/components/calcite-combobox/calcite-combobox.js +30 -21
  383. package/dist/collection/components/calcite-combobox/interfaces.js +4 -0
  384. package/dist/collection/components/calcite-combobox/resources.js +4 -0
  385. package/dist/collection/components/calcite-combobox/utils.js +4 -0
  386. package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.css +1 -1
  387. package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.js +7 -0
  388. package/dist/collection/components/calcite-combobox-item/resources.js +4 -0
  389. package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.js +7 -0
  390. package/dist/collection/components/calcite-combobox-item-group/resources.js +4 -0
  391. package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +4 -0
  392. package/dist/collection/components/calcite-date-picker/interfaces.js +4 -0
  393. package/dist/collection/components/calcite-date-picker/resources.js +4 -0
  394. package/dist/collection/components/calcite-date-picker/utils.js +4 -0
  395. package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.css +1 -1
  396. package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.js +4 -0
  397. package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.css +1 -1
  398. package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.js +4 -0
  399. package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.css +1 -1
  400. package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.js +4 -0
  401. package/dist/collection/components/calcite-dropdown/calcite-dropdown.css +0 -1
  402. package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +44 -32
  403. package/dist/collection/components/calcite-dropdown/interfaces.js +4 -0
  404. package/dist/collection/components/calcite-dropdown/resources.js +4 -0
  405. package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.js +7 -0
  406. package/dist/collection/components/calcite-dropdown-group/interfaces.js +4 -0
  407. package/dist/collection/components/calcite-dropdown-group/resources.js +4 -0
  408. package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js +7 -0
  409. package/dist/collection/components/calcite-dropdown-item/resources.js +4 -0
  410. package/dist/collection/components/calcite-fab/calcite-fab.js +4 -0
  411. package/dist/collection/components/calcite-fab/resources.js +4 -0
  412. package/dist/collection/components/calcite-filter/calcite-filter.css +6 -1
  413. package/dist/collection/components/calcite-filter/calcite-filter.js +7 -5
  414. package/dist/collection/components/calcite-filter/resources.js +4 -0
  415. package/dist/collection/components/calcite-flow/calcite-flow.js +4 -0
  416. package/dist/collection/components/calcite-flow/interfaces.js +4 -0
  417. package/dist/collection/components/calcite-flow/resources.js +4 -0
  418. package/dist/collection/components/calcite-graph/calcite-graph.js +4 -0
  419. package/dist/collection/components/calcite-graph/interfaces.js +4 -0
  420. package/dist/collection/components/calcite-graph/util.js +4 -0
  421. package/dist/collection/components/calcite-handle/calcite-handle.js +4 -0
  422. package/dist/collection/components/calcite-handle/resources.js +4 -0
  423. package/dist/collection/components/calcite-icon/assets/calcite-icon/beacon16.json +1 -0
  424. package/dist/collection/components/calcite-icon/assets/calcite-icon/beacon24.json +1 -0
  425. package/dist/collection/components/calcite-icon/assets/calcite-icon/beacon32.json +1 -0
  426. package/dist/collection/components/calcite-icon/assets/calcite-icon/classifyObjects16.json +1 -0
  427. package/dist/collection/components/calcite-icon/assets/calcite-icon/classifyObjects24.json +1 -0
  428. package/dist/collection/components/calcite-icon/assets/calcite-icon/classifyObjects32.json +1 -0
  429. package/dist/collection/components/calcite-icon/assets/calcite-icon/classifyPixels16.json +1 -0
  430. package/dist/collection/components/calcite-icon/assets/calcite-icon/classifyPixels24.json +1 -0
  431. package/dist/collection/components/calcite-icon/assets/calcite-icon/classifyPixels32.json +1 -0
  432. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataCloud16.json +1 -0
  433. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataCloud24.json +1 -0
  434. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataCloud32.json +1 -0
  435. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataFolder16.json +1 -0
  436. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataFolder24.json +1 -0
  437. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataFolder32.json +1 -0
  438. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataRaster16.json +1 -0
  439. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataRaster24.json +1 -0
  440. package/dist/collection/components/calcite-icon/assets/calcite-icon/dataRaster32.json +1 -0
  441. package/dist/collection/components/calcite-icon/assets/calcite-icon/distributeHeightEvenly16.json +1 -0
  442. package/dist/collection/components/calcite-icon/assets/calcite-icon/distributeHeightEvenly24.json +1 -0
  443. package/dist/collection/components/calcite-icon/assets/calcite-icon/distributeHeightEvenly32.json +1 -0
  444. package/dist/collection/components/calcite-icon/assets/calcite-icon/distributeWidthEvenly16.json +1 -0
  445. package/dist/collection/components/calcite-icon/assets/calcite-icon/distributeWidthEvenly24.json +1 -0
  446. package/dist/collection/components/calcite-icon/assets/calcite-icon/distributeWidthEvenly32.json +1 -0
  447. package/dist/collection/components/calcite-icon/assets/calcite-icon/featureDisplayOrder16.json +1 -0
  448. package/dist/collection/components/calcite-icon/assets/calcite-icon/featureDisplayOrder24.json +1 -0
  449. package/dist/collection/components/calcite-icon/assets/calcite-icon/featureDisplayOrder32.json +1 -0
  450. package/dist/collection/components/calcite-icon/assets/calcite-icon/fingerprint16.json +1 -0
  451. package/dist/collection/components/calcite-icon/assets/calcite-icon/fingerprint24.json +1 -0
  452. package/dist/collection/components/calcite-icon/assets/calcite-icon/fingerprint32.json +1 -0
  453. package/dist/collection/components/calcite-icon/assets/calcite-icon/gridUnit16.json +1 -0
  454. package/dist/collection/components/calcite-icon/assets/calcite-icon/gridUnit24.json +1 -0
  455. package/dist/collection/components/calcite-icon/assets/calcite-icon/gridUnit32.json +1 -0
  456. package/dist/collection/components/calcite-icon/assets/calcite-icon/horizontalDistribute16.json +1 -0
  457. package/dist/collection/components/calcite-icon/assets/calcite-icon/horizontalDistribute24.json +1 -0
  458. package/dist/collection/components/calcite-icon/assets/calcite-icon/horizontalDistribute32.json +1 -0
  459. package/dist/collection/components/calcite-icon/assets/calcite-icon/imageChips16.json +1 -0
  460. package/dist/collection/components/calcite-icon/assets/calcite-icon/imageChips24.json +1 -0
  461. package/dist/collection/components/calcite-icon/assets/calcite-icon/imageChips32.json +1 -0
  462. package/dist/collection/components/calcite-icon/assets/calcite-icon/imageUnit16.json +1 -0
  463. package/dist/collection/components/calcite-icon/assets/calcite-icon/imageUnit24.json +1 -0
  464. package/dist/collection/components/calcite-icon/assets/calcite-icon/imageUnit32.json +1 -0
  465. package/dist/collection/components/calcite-icon/assets/calcite-icon/lassoSelect16.json +1 -0
  466. package/dist/collection/components/calcite-icon/assets/calcite-icon/lassoSelect24.json +1 -0
  467. package/dist/collection/components/calcite-icon/assets/calcite-icon/lassoSelect32.json +1 -0
  468. package/dist/collection/components/calcite-icon/assets/calcite-icon/newTraining16.json +1 -0
  469. package/dist/collection/components/calcite-icon/assets/calcite-icon/newTraining24.json +1 -0
  470. package/dist/collection/components/calcite-icon/assets/calcite-icon/newTraining32.json +1 -0
  471. package/dist/collection/components/calcite-icon/assets/calcite-icon/orientedImageryWidget16.json +1 -0
  472. package/dist/collection/components/calcite-icon/assets/calcite-icon/orientedImageryWidget24.json +1 -0
  473. package/dist/collection/components/calcite-icon/assets/calcite-icon/orientedImageryWidget32.json +1 -0
  474. package/dist/collection/components/calcite-icon/assets/calcite-icon/package16.json +1 -0
  475. package/dist/collection/components/calcite-icon/assets/calcite-icon/package24.json +1 -0
  476. package/dist/collection/components/calcite-icon/assets/calcite-icon/package32.json +1 -0
  477. package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark16.json +1 -0
  478. package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark24.json +1 -0
  479. package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark32.json +1 -0
  480. package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus16.json +1 -0
  481. package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus24.json +1 -0
  482. package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus32.json +1 -0
  483. package/dist/collection/components/calcite-icon/assets/calcite-icon/processingTemplates16.json +1 -0
  484. package/dist/collection/components/calcite-icon/assets/calcite-icon/processingTemplates24.json +1 -0
  485. package/dist/collection/components/calcite-icon/assets/calcite-icon/processingTemplates32.json +1 -0
  486. package/dist/collection/components/calcite-icon/assets/calcite-icon/retrain16.json +1 -0
  487. package/dist/collection/components/calcite-icon/assets/calcite-icon/retrain24.json +1 -0
  488. package/dist/collection/components/calcite-icon/assets/calcite-icon/retrain32.json +1 -0
  489. package/dist/collection/components/calcite-icon/assets/calcite-icon/smartForm16.json +1 -0
  490. package/dist/collection/components/calcite-icon/assets/calcite-icon/smartForm24.json +1 -0
  491. package/dist/collection/components/calcite-icon/assets/calcite-icon/smartForm32.json +1 -0
  492. package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleCheck16.json +1 -0
  493. package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleCheck24.json +1 -0
  494. package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleCheck32.json +1 -0
  495. package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript16.json +1 -0
  496. package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript24.json +1 -0
  497. package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript32.json +1 -0
  498. package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript16.json +1 -0
  499. package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript24.json +1 -0
  500. package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript32.json +1 -0
  501. package/dist/collection/components/calcite-icon/assets/calcite-icon/verticalDistribute16.json +1 -0
  502. package/dist/collection/components/calcite-icon/assets/calcite-icon/verticalDistribute24.json +1 -0
  503. package/dist/collection/components/calcite-icon/assets/calcite-icon/verticalDistribute32.json +1 -0
  504. package/dist/collection/components/calcite-icon/assets/calcite-icon/wifi16.json +1 -0
  505. package/dist/collection/components/calcite-icon/assets/calcite-icon/wifi24.json +1 -0
  506. package/dist/collection/components/calcite-icon/assets/calcite-icon/wifi32.json +1 -0
  507. package/dist/collection/components/calcite-icon/calcite-icon.js +4 -0
  508. package/dist/collection/components/calcite-icon/resources.js +4 -0
  509. package/dist/collection/components/calcite-icon/utils.js +4 -0
  510. package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +44 -21
  511. package/dist/collection/components/calcite-inline-editable/resources.js +4 -0
  512. package/dist/collection/components/calcite-input/calcite-input.js +23 -18
  513. package/dist/collection/components/calcite-input/interfaces.js +4 -0
  514. package/dist/collection/components/calcite-input/resources.js +4 -0
  515. package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +39 -13
  516. package/dist/collection/components/calcite-input-message/calcite-input-message.js +7 -0
  517. package/dist/collection/components/calcite-input-message/interfaces.js +4 -0
  518. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +21 -24
  519. package/dist/collection/components/calcite-label/calcite-label.css +11 -11
  520. package/dist/collection/components/calcite-label/calcite-label.js +27 -92
  521. package/dist/collection/components/calcite-label/resources.js +7 -0
  522. package/dist/collection/components/calcite-link/calcite-link.js +16 -2
  523. package/dist/collection/components/calcite-list/calcite-list.js +37 -1
  524. package/dist/collection/components/calcite-list/resources.js +4 -0
  525. package/dist/collection/components/calcite-list-item/calcite-list-item.js +35 -3
  526. package/dist/collection/components/calcite-list-item/resources.js +4 -0
  527. package/dist/collection/components/calcite-list-item-group/calcite-list-item-group.js +4 -0
  528. package/dist/collection/components/calcite-list-item-group/resources.js +4 -0
  529. package/dist/collection/components/calcite-loader/calcite-loader.css +3 -3
  530. package/dist/collection/components/calcite-loader/calcite-loader.js +4 -0
  531. package/dist/collection/components/calcite-modal/calcite-modal.js +4 -0
  532. package/dist/collection/components/calcite-modal/interfaces.js +4 -0
  533. package/dist/collection/components/calcite-modal/resources.js +4 -0
  534. package/dist/collection/components/calcite-notice/calcite-notice.css +18 -6
  535. package/dist/collection/components/calcite-notice/calcite-notice.js +4 -0
  536. package/dist/collection/components/calcite-notice/resources.js +4 -0
  537. package/dist/collection/components/calcite-option/calcite-option.js +4 -0
  538. package/dist/collection/components/calcite-option-group/calcite-option-group.js +7 -0
  539. package/dist/collection/components/calcite-pagination/calcite-pagination.js +4 -0
  540. package/dist/collection/components/calcite-pagination/resources.js +4 -0
  541. package/dist/collection/components/calcite-panel/calcite-panel.css +1 -4
  542. package/dist/collection/components/calcite-panel/calcite-panel.js +13 -8
  543. package/dist/collection/components/calcite-panel/resources.js +4 -0
  544. package/dist/collection/components/calcite-pick-list/calcite-pick-list.css +1 -1
  545. package/dist/collection/components/calcite-pick-list/calcite-pick-list.js +4 -0
  546. package/dist/collection/components/calcite-pick-list/resources.js +4 -0
  547. package/dist/collection/components/calcite-pick-list/shared-list-logic.js +4 -0
  548. package/dist/collection/components/calcite-pick-list/shared-list-render.js +4 -0
  549. package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +4 -0
  550. package/dist/collection/components/calcite-pick-list-group/resources.js +4 -0
  551. package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +4 -0
  552. package/dist/collection/components/calcite-pick-list-item/resources.js +4 -0
  553. package/dist/collection/components/calcite-popover/calcite-popover.js +7 -0
  554. package/dist/collection/components/calcite-popover/resources.js +4 -0
  555. package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.js +4 -0
  556. package/dist/collection/components/calcite-progress/calcite-progress.js +4 -0
  557. package/dist/collection/components/calcite-radio/calcite-radio.js +4 -0
  558. package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +76 -37
  559. package/dist/collection/components/calcite-radio-button/resources.js +4 -0
  560. package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.js +7 -0
  561. package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +23 -30
  562. package/dist/collection/components/calcite-radio-group/interfaces.js +4 -0
  563. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.css +1 -5
  564. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +4 -0
  565. package/dist/collection/components/calcite-radio-group-item/resources.js +4 -0
  566. package/dist/collection/components/calcite-rating/calcite-rating.js +20 -14
  567. package/dist/collection/components/calcite-rating/resources.js +4 -0
  568. package/dist/collection/components/calcite-scrim/calcite-scrim.js +7 -0
  569. package/dist/collection/components/calcite-scrim/resources.js +4 -0
  570. package/dist/collection/components/calcite-select/calcite-select.js +13 -14
  571. package/dist/collection/components/calcite-select/resources.js +4 -0
  572. package/dist/collection/components/calcite-shell/calcite-shell.js +6 -2
  573. package/dist/collection/components/calcite-shell/resources.js +4 -0
  574. package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +5 -1
  575. package/dist/collection/components/calcite-shell-center-row/resources.js +4 -0
  576. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +5 -1
  577. package/dist/collection/components/calcite-shell-panel/resources.js +4 -0
  578. package/dist/collection/components/calcite-slider/calcite-slider.js +90 -33
  579. package/dist/collection/components/calcite-sortable-list/calcite-sortable-list.css +13 -0
  580. package/dist/collection/components/calcite-sortable-list/calcite-sortable-list.js +41 -2
  581. package/dist/collection/components/calcite-sortable-list/resources.js +8 -1
  582. package/dist/collection/components/calcite-split-button/calcite-split-button.js +7 -0
  583. package/dist/collection/components/calcite-split-button/resources.js +4 -0
  584. package/dist/collection/components/calcite-stepper/calcite-stepper.js +7 -0
  585. package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.css +7 -7
  586. package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.js +7 -0
  587. package/dist/collection/components/calcite-switch/calcite-switch.css +7 -7
  588. package/dist/collection/components/calcite-switch/calcite-switch.js +82 -47
  589. package/dist/collection/components/calcite-tab/calcite-tab.css +0 -1
  590. package/dist/collection/components/calcite-tab/calcite-tab.js +7 -0
  591. package/dist/collection/components/calcite-tab/interfaces.js +4 -0
  592. package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.css +0 -1
  593. package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.js +7 -0
  594. package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +7 -0
  595. package/dist/collection/components/calcite-tabs/calcite-tabs.js +6 -1
  596. package/dist/collection/components/calcite-tabs/interfaces.js +4 -0
  597. package/dist/collection/components/calcite-tabs/resources.js +4 -0
  598. package/dist/collection/components/calcite-tile/calcite-tile.css +9 -0
  599. package/dist/collection/components/calcite-tile/calcite-tile.js +4 -0
  600. package/dist/collection/components/calcite-tile/resources.js +4 -0
  601. package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +53 -12
  602. package/dist/collection/components/calcite-tile-select/interfaces.js +4 -0
  603. package/dist/collection/components/calcite-tile-select-group/calcite-tile-select-group.js +7 -0
  604. package/dist/collection/components/calcite-tile-select-group/interfaces.js +4 -0
  605. package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +4 -0
  606. package/dist/collection/components/calcite-time-picker/resources.js +4 -0
  607. package/dist/collection/components/calcite-tip/calcite-tip.js +5 -0
  608. package/dist/collection/components/calcite-tip/resources.js +4 -0
  609. package/dist/collection/components/calcite-tip-group/calcite-tip-group.js +7 -0
  610. package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.js +4 -0
  611. package/dist/collection/components/calcite-tip-manager/resources.js +4 -0
  612. package/dist/collection/components/calcite-tooltip/calcite-tooltip.js +7 -0
  613. package/dist/collection/components/calcite-tooltip/resources.js +4 -0
  614. package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +7 -2
  615. package/dist/collection/components/calcite-tree/calcite-tree.js +4 -0
  616. package/dist/collection/components/calcite-tree/interfaces.js +4 -0
  617. package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +25 -1
  618. package/dist/collection/components/calcite-tree-item/interfaces.js +4 -0
  619. package/dist/collection/components/calcite-tree-item/resources.js +4 -0
  620. package/dist/collection/components/calcite-value-list/calcite-value-list.js +5 -1
  621. package/dist/collection/components/calcite-value-list/resources.js +4 -0
  622. package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +4 -0
  623. package/dist/collection/components/calcite-value-list-item/resources.js +4 -0
  624. package/dist/collection/components/functional/CalciteExpandToggle.js +6 -1
  625. package/dist/collection/components/functional/CalciteHeading.js +4 -0
  626. package/dist/collection/components/interfaces.js +4 -0
  627. package/dist/collection/utils/array.js +4 -0
  628. package/dist/collection/utils/date.js +4 -0
  629. package/dist/collection/utils/dom.js +4 -3
  630. package/dist/collection/utils/filter.js +5 -1
  631. package/dist/collection/utils/form.js +4 -0
  632. package/dist/collection/utils/guid.js +4 -0
  633. package/dist/collection/utils/key.js +4 -0
  634. package/dist/collection/utils/label.js +51 -0
  635. package/dist/collection/utils/locale.js +4 -0
  636. package/dist/collection/utils/math.js +4 -0
  637. package/dist/collection/utils/number.js +4 -3
  638. package/dist/collection/utils/observers.js +4 -0
  639. package/dist/collection/utils/popper.js +4 -0
  640. package/dist/collection/utils/resources.js +24 -3
  641. package/dist/collection/utils/time.js +4 -0
  642. package/dist/components/CalciteExpandToggle.js +87 -0
  643. package/dist/components/CalciteHeading.js +16 -0
  644. package/dist/components/array.js +9 -0
  645. package/dist/components/calcite-accordion-item.d.ts +11 -0
  646. package/dist/components/calcite-accordion-item.js +153 -0
  647. package/dist/components/calcite-accordion.d.ts +11 -0
  648. package/dist/components/calcite-accordion.js +167 -0
  649. package/dist/components/calcite-action-bar.d.ts +11 -0
  650. package/dist/components/calcite-action-bar.js +266 -0
  651. package/dist/components/calcite-action-group.d.ts +11 -0
  652. package/dist/components/calcite-action-group.js +10 -0
  653. package/dist/components/calcite-action-group2.js +135 -0
  654. package/dist/components/calcite-action-menu.d.ts +11 -0
  655. package/dist/components/calcite-action-menu.js +10 -0
  656. package/dist/components/calcite-action-menu2.js +354 -0
  657. package/dist/components/calcite-action-pad.d.ts +11 -0
  658. package/dist/components/calcite-action-pad.js +198 -0
  659. package/dist/components/calcite-action.d.ts +11 -0
  660. package/dist/components/calcite-action.js +10 -0
  661. package/dist/components/calcite-action2.js +183 -0
  662. package/dist/components/calcite-alert.d.ts +11 -0
  663. package/dist/components/calcite-alert.js +232 -0
  664. package/dist/components/calcite-avatar.d.ts +11 -0
  665. package/dist/components/calcite-avatar.js +171 -0
  666. package/dist/components/calcite-block-section.d.ts +11 -0
  667. package/dist/components/calcite-block-section.js +139 -0
  668. package/dist/components/calcite-block.d.ts +11 -0
  669. package/dist/components/calcite-block.js +216 -0
  670. package/dist/components/calcite-button.d.ts +11 -0
  671. package/dist/components/calcite-button.js +10 -0
  672. package/dist/components/calcite-button2.js +243 -0
  673. package/dist/components/calcite-card.d.ts +11 -0
  674. package/dist/components/calcite-card.js +156 -0
  675. package/dist/components/calcite-checkbox.d.ts +11 -0
  676. package/dist/components/calcite-checkbox.js +10 -0
  677. package/dist/components/calcite-checkbox2.js +203 -0
  678. package/dist/components/calcite-chip.d.ts +11 -0
  679. package/dist/components/calcite-chip.js +10 -0
  680. package/dist/components/calcite-chip2.js +121 -0
  681. package/dist/components/calcite-color-picker-hex-input.d.ts +11 -0
  682. package/dist/components/calcite-color-picker-hex-input.js +10 -0
  683. package/dist/components/calcite-color-picker-hex-input2.js +353 -0
  684. package/dist/components/calcite-color-picker-swatch.d.ts +11 -0
  685. package/dist/components/calcite-color-picker-swatch.js +10 -0
  686. package/dist/components/calcite-color-picker-swatch2.js +2176 -0
  687. package/dist/components/calcite-color-picker.d.ts +11 -0
  688. package/dist/components/calcite-color-picker.js +966 -0
  689. package/dist/components/calcite-combobox-item-group.d.ts +11 -0
  690. package/dist/components/calcite-combobox-item-group.js +68 -0
  691. package/dist/components/calcite-combobox-item.d.ts +11 -0
  692. package/dist/components/calcite-combobox-item.js +168 -0
  693. package/dist/components/calcite-combobox.d.ts +11 -0
  694. package/dist/components/calcite-combobox.js +871 -0
  695. package/dist/components/calcite-date-picker-day.d.ts +11 -0
  696. package/dist/components/calcite-date-picker-day.js +10 -0
  697. package/dist/components/calcite-date-picker-day2.js +99 -0
  698. package/dist/components/calcite-date-picker-month-header.d.ts +11 -0
  699. package/dist/components/calcite-date-picker-month-header.js +10 -0
  700. package/dist/components/calcite-date-picker-month-header2.js +170 -0
  701. package/dist/components/calcite-date-picker-month.d.ts +11 -0
  702. package/dist/components/calcite-date-picker-month.js +10 -0
  703. package/dist/components/calcite-date-picker-month2.js +313 -0
  704. package/dist/components/calcite-date-picker.d.ts +11 -0
  705. package/dist/components/calcite-date-picker.js +10 -0
  706. package/dist/components/calcite-date-picker2.js +486 -0
  707. package/dist/components/calcite-dropdown-group.d.ts +11 -0
  708. package/dist/components/calcite-dropdown-group.js +90 -0
  709. package/dist/components/calcite-dropdown-item.d.ts +11 -0
  710. package/dist/components/calcite-dropdown-item.js +202 -0
  711. package/dist/components/calcite-dropdown.d.ts +11 -0
  712. package/dist/components/calcite-dropdown.js +10 -0
  713. package/dist/components/calcite-dropdown2.js +390 -0
  714. package/dist/components/calcite-fab.d.ts +11 -0
  715. package/dist/components/calcite-fab.js +127 -0
  716. package/dist/components/calcite-filter.d.ts +11 -0
  717. package/dist/components/calcite-filter.js +10 -0
  718. package/dist/components/calcite-filter2.js +165 -0
  719. package/dist/components/calcite-flow.d.ts +11 -0
  720. package/dist/components/calcite-flow.js +138 -0
  721. package/dist/components/calcite-graph.d.ts +11 -0
  722. package/dist/components/calcite-graph.js +10 -0
  723. package/dist/components/calcite-graph2.js +203 -0
  724. package/dist/components/calcite-handle.d.ts +11 -0
  725. package/dist/components/calcite-handle.js +10 -0
  726. package/dist/components/calcite-handle2.js +107 -0
  727. package/dist/components/calcite-icon.d.ts +11 -0
  728. package/dist/components/calcite-icon.js +10 -0
  729. package/dist/components/calcite-icon2.js +185 -0
  730. package/dist/components/calcite-inline-editable.d.ts +11 -0
  731. package/dist/components/calcite-inline-editable.js +242 -0
  732. package/dist/components/calcite-input-date-picker.d.ts +11 -0
  733. package/dist/components/calcite-input-date-picker.js +471 -0
  734. package/dist/components/calcite-input-message.d.ts +11 -0
  735. package/dist/components/calcite-input-message.js +97 -0
  736. package/dist/components/calcite-input-time-picker.d.ts +11 -0
  737. package/dist/components/calcite-input-time-picker.js +278 -0
  738. package/dist/components/calcite-input.d.ts +11 -0
  739. package/dist/components/calcite-input.js +10 -0
  740. package/dist/components/calcite-input2.js +494 -0
  741. package/dist/components/calcite-label.d.ts +11 -0
  742. package/dist/components/calcite-label.js +84 -0
  743. package/dist/components/calcite-link.d.ts +11 -0
  744. package/dist/components/calcite-link.js +10 -0
  745. package/dist/components/calcite-link2.js +97 -0
  746. package/dist/components/calcite-list-item-group.d.ts +11 -0
  747. package/dist/components/calcite-list-item-group.js +57 -0
  748. package/dist/components/calcite-list-item.d.ts +11 -0
  749. package/dist/components/calcite-list-item.js +117 -0
  750. package/dist/components/calcite-list.d.ts +11 -0
  751. package/dist/components/calcite-list.js +59 -0
  752. package/dist/components/calcite-loader.d.ts +11 -0
  753. package/dist/components/calcite-loader.js +10 -0
  754. package/dist/components/calcite-loader2.js +107 -0
  755. package/dist/components/calcite-modal.d.ts +11 -0
  756. package/dist/components/calcite-modal.js +417 -0
  757. package/dist/components/calcite-notice.d.ts +11 -0
  758. package/dist/components/calcite-notice.js +140 -0
  759. package/dist/components/calcite-option-group.d.ts +11 -0
  760. package/dist/components/calcite-option-group.js +61 -0
  761. package/dist/components/calcite-option.d.ts +11 -0
  762. package/dist/components/calcite-option.js +107 -0
  763. package/dist/components/calcite-pagination.d.ts +11 -0
  764. package/dist/components/calcite-pagination.js +207 -0
  765. package/dist/components/calcite-panel.d.ts +11 -0
  766. package/dist/components/calcite-panel.js +309 -0
  767. package/dist/components/calcite-pick-list-group.d.ts +11 -0
  768. package/dist/components/calcite-pick-list-group.js +70 -0
  769. package/dist/components/calcite-pick-list-item.d.ts +11 -0
  770. package/dist/components/calcite-pick-list-item.js +10 -0
  771. package/dist/components/calcite-pick-list-item2.js +230 -0
  772. package/dist/components/calcite-pick-list.d.ts +11 -0
  773. package/dist/components/calcite-pick-list.js +196 -0
  774. package/dist/components/calcite-popover-manager.d.ts +11 -0
  775. package/dist/components/calcite-popover-manager.js +93 -0
  776. package/dist/components/calcite-popover.d.ts +11 -0
  777. package/dist/components/calcite-popover.js +10 -0
  778. package/dist/components/calcite-popover2.js +332 -0
  779. package/dist/components/calcite-progress.d.ts +11 -0
  780. package/dist/components/calcite-progress.js +10 -0
  781. package/dist/components/calcite-progress2.js +52 -0
  782. package/dist/components/calcite-radio-button-group.d.ts +11 -0
  783. package/dist/components/calcite-radio-button-group.js +116 -0
  784. package/dist/components/calcite-radio-button.d.ts +11 -0
  785. package/dist/components/calcite-radio-button.js +291 -0
  786. package/dist/components/calcite-radio-group-item.d.ts +11 -0
  787. package/dist/components/calcite-radio-group-item.js +139 -0
  788. package/dist/components/calcite-radio-group.d.ts +11 -0
  789. package/dist/components/calcite-radio-group.js +233 -0
  790. package/dist/components/calcite-radio.d.ts +11 -0
  791. package/dist/components/calcite-radio.js +10 -0
  792. package/dist/components/calcite-radio2.js +68 -0
  793. package/dist/components/calcite-rating.d.ts +11 -0
  794. package/dist/components/calcite-rating.js +160 -0
  795. package/dist/components/calcite-scrim.d.ts +11 -0
  796. package/dist/components/calcite-scrim.js +10 -0
  797. package/dist/components/calcite-scrim2.js +74 -0
  798. package/dist/components/calcite-select.d.ts +11 -0
  799. package/dist/components/calcite-select.js +221 -0
  800. package/dist/components/calcite-shell-center-row.d.ts +11 -0
  801. package/dist/components/calcite-shell-center-row.js +81 -0
  802. package/dist/components/calcite-shell-panel.d.ts +11 -0
  803. package/dist/components/calcite-shell-panel.js +100 -0
  804. package/dist/components/calcite-shell.d.ts +11 -0
  805. package/dist/components/calcite-shell.js +99 -0
  806. package/dist/components/calcite-slider.d.ts +11 -0
  807. package/dist/components/calcite-slider.js +746 -0
  808. package/dist/components/calcite-sortable-list.d.ts +11 -0
  809. package/dist/components/calcite-sortable-list.js +190 -0
  810. package/dist/components/calcite-split-button.d.ts +11 -0
  811. package/dist/components/calcite-split-button.js +127 -0
  812. package/dist/components/calcite-stepper-item.d.ts +11 -0
  813. package/dist/components/calcite-stepper-item.js +189 -0
  814. package/dist/components/calcite-stepper.d.ts +11 -0
  815. package/dist/components/calcite-stepper.js +247 -0
  816. package/dist/components/calcite-switch.d.ts +11 -0
  817. package/dist/components/calcite-switch.js +10 -0
  818. package/dist/components/calcite-switch2.js +162 -0
  819. package/dist/components/calcite-tab-nav.d.ts +11 -0
  820. package/dist/components/calcite-tab-nav.js +10 -0
  821. package/dist/components/calcite-tab-nav2.js +209 -0
  822. package/dist/components/calcite-tab-title.d.ts +11 -0
  823. package/dist/components/calcite-tab-title.js +10 -0
  824. package/dist/components/calcite-tab-title2.js +230 -0
  825. package/dist/components/calcite-tab.d.ts +11 -0
  826. package/dist/components/calcite-tab.js +10 -0
  827. package/dist/components/calcite-tab2.js +122 -0
  828. package/dist/components/calcite-tabs.d.ts +11 -0
  829. package/dist/components/calcite-tabs.js +10 -0
  830. package/dist/components/calcite-tabs2.js +183 -0
  831. package/dist/components/calcite-tile-select-group.d.ts +11 -0
  832. package/dist/components/calcite-tile-select-group.js +45 -0
  833. package/dist/components/calcite-tile-select.d.ts +11 -0
  834. package/dist/components/calcite-tile-select.js +218 -0
  835. package/dist/components/calcite-tile.d.ts +11 -0
  836. package/dist/components/calcite-tile.js +10 -0
  837. package/dist/components/calcite-tile2.js +98 -0
  838. package/dist/components/calcite-time-picker.d.ts +11 -0
  839. package/dist/components/calcite-time-picker.js +10 -0
  840. package/dist/components/calcite-time-picker2.js +707 -0
  841. package/dist/components/calcite-tip-group.d.ts +11 -0
  842. package/dist/components/calcite-tip-group.js +38 -0
  843. package/dist/components/calcite-tip-manager.d.ts +11 -0
  844. package/dist/components/calcite-tip-manager.js +218 -0
  845. package/dist/components/calcite-tip.d.ts +11 -0
  846. package/dist/components/calcite-tip.js +140 -0
  847. package/dist/components/calcite-tooltip-manager.d.ts +11 -0
  848. package/dist/components/calcite-tooltip-manager.js +10 -0
  849. package/dist/components/calcite-tooltip-manager2.js +168 -0
  850. package/dist/components/calcite-tooltip.d.ts +11 -0
  851. package/dist/components/calcite-tooltip.js +224 -0
  852. package/dist/components/calcite-tree-item.d.ts +11 -0
  853. package/dist/components/calcite-tree-item.js +303 -0
  854. package/dist/components/calcite-tree.d.ts +11 -0
  855. package/dist/components/calcite-tree.js +216 -0
  856. package/dist/components/calcite-value-list-item.d.ts +11 -0
  857. package/dist/components/calcite-value-list-item.js +180 -0
  858. package/dist/components/calcite-value-list.d.ts +11 -0
  859. package/dist/components/calcite-value-list.js +271 -0
  860. package/dist/components/date.js +159 -0
  861. package/dist/components/debounce.js +486 -0
  862. package/dist/components/dom.js +153 -0
  863. package/dist/components/forIn.js +619 -0
  864. package/dist/components/form.js +20 -0
  865. package/dist/components/guid.js +18 -0
  866. package/dist/components/index.d.ts +26 -0
  867. package/dist/components/index.js +5 -0
  868. package/dist/components/interfaces.js +13 -0
  869. package/dist/components/interfaces2.js +14 -0
  870. package/dist/components/key.js +33 -0
  871. package/dist/components/label.js +54 -0
  872. package/dist/components/locale.js +118 -0
  873. package/dist/components/math.js +7 -0
  874. package/dist/components/number.js +40 -0
  875. package/dist/components/observers.js +22 -0
  876. package/dist/components/popper.js +1785 -0
  877. package/dist/components/resources.js +24 -0
  878. package/dist/components/resources2.js +13 -0
  879. package/dist/components/resources3.js +18 -0
  880. package/dist/components/resources4.js +32 -0
  881. package/dist/components/shared-list-render.js +286 -0
  882. package/dist/components/sortable.esm.js +3017 -0
  883. package/dist/components/utils.js +113 -0
  884. package/dist/components/utils2.js +38 -0
  885. package/dist/custom-elements/index.js +5613 -5451
  886. package/dist/esm/CalciteExpandToggle-151a563a.js +87 -0
  887. package/dist/esm/CalciteHeading-1735f17a.js +16 -0
  888. package/dist/esm/array-91a648e2.js +9 -0
  889. package/dist/esm/calcite-accordion_2.entry.js +10 -6
  890. package/dist/esm/calcite-action-bar.entry.js +33 -23
  891. package/dist/esm/calcite-action-group.entry.js +10 -6
  892. package/dist/esm/calcite-action-menu.entry.js +15 -9
  893. package/dist/esm/calcite-action-pad.entry.js +11 -7
  894. package/dist/esm/calcite-action.entry.js +12 -12
  895. package/dist/esm/calcite-alert.entry.js +10 -6
  896. package/dist/esm/calcite-avatar.entry.js +9 -5
  897. package/dist/esm/calcite-block_2.entry.js +38 -31
  898. package/dist/esm/calcite-button.entry.js +63 -40
  899. package/dist/esm/calcite-card.entry.js +9 -5
  900. package/dist/esm/calcite-checkbox.entry.js +28 -35
  901. package/dist/esm/calcite-chip.entry.js +8 -4
  902. package/dist/esm/calcite-color-picker_3.entry.js +18 -14
  903. package/dist/esm/calcite-combobox_3.entry.js +36 -31
  904. package/dist/esm/calcite-date-picker_4.entry.js +19 -15
  905. package/dist/esm/calcite-dropdown_3.entry.js +49 -40
  906. package/dist/esm/calcite-fab.entry.js +8 -4
  907. package/dist/esm/calcite-filter.entry.js +14 -10
  908. package/dist/esm/calcite-flow.entry.js +7 -3
  909. package/dist/esm/calcite-graph_2.entry.js +80 -31
  910. package/dist/esm/calcite-handle.entry.js +6 -2
  911. package/dist/esm/calcite-icon.entry.js +9 -5
  912. package/dist/esm/calcite-inline-editable.entry.js +28 -17
  913. package/dist/esm/calcite-input-date-picker.entry.js +32 -22
  914. package/dist/esm/calcite-input-message.entry.js +8 -4
  915. package/dist/esm/calcite-input-time-picker_2.entry.js +26 -22
  916. package/dist/esm/calcite-input.entry.js +30 -25
  917. package/dist/esm/calcite-label.entry.js +20 -78
  918. package/dist/esm/calcite-link.entry.js +14 -4
  919. package/dist/esm/calcite-list_3.entry.js +33 -8
  920. package/dist/esm/calcite-loader.entry.js +8 -4
  921. package/dist/esm/calcite-modal.entry.js +10 -6
  922. package/dist/esm/calcite-notice.entry.js +10 -6
  923. package/dist/esm/calcite-option_3.entry.js +17 -15
  924. package/dist/esm/calcite-pagination.entry.js +8 -4
  925. package/dist/esm/calcite-panel.entry.js +12 -8
  926. package/dist/esm/calcite-pick-list_3.entry.js +16 -12
  927. package/dist/esm/calcite-popover_2.entry.js +11 -7
  928. package/dist/esm/calcite-progress.entry.js +6 -2
  929. package/dist/esm/calcite-radio-button-group.entry.js +6 -2
  930. package/dist/esm/calcite-radio-group_2.entry.js +27 -25
  931. package/dist/esm/calcite-radio_2.entry.js +57 -30
  932. package/dist/esm/calcite-rating.entry.js +23 -11
  933. package/dist/esm/calcite-scrim.entry.js +6 -2
  934. package/dist/esm/calcite-shell_3.entry.js +10 -6
  935. package/dist/esm/calcite-sortable-list.entry.js +27 -6
  936. package/dist/esm/calcite-split-button.entry.js +8 -4
  937. package/dist/esm/calcite-stepper_2.entry.js +11 -7
  938. package/dist/esm/calcite-switch.entry.js +46 -39
  939. package/dist/esm/calcite-tab_4.entry.js +15 -11
  940. package/dist/esm/calcite-tile-select_2.entry.js +26 -9
  941. package/dist/esm/calcite-tile.entry.js +9 -5
  942. package/dist/esm/calcite-tip_3.entry.js +12 -8
  943. package/dist/esm/calcite-tooltip_2.entry.js +14 -9
  944. package/dist/esm/calcite-tree_2.entry.js +30 -6
  945. package/dist/esm/calcite-value-list_2.entry.js +14 -10
  946. package/dist/esm/calcite.js +7 -3
  947. package/dist/esm/debounce-79648d42.js +486 -0
  948. package/dist/esm/dom-f24e866c.js +153 -0
  949. package/dist/esm/forIn-48d8fb84.js +619 -0
  950. package/dist/esm/form-cee9f632.js +20 -0
  951. package/dist/esm/guid-196bd5ea.js +18 -0
  952. package/dist/esm/index-d653c37f.js +2033 -0
  953. package/dist/esm/index.js +4 -1
  954. package/dist/esm/interfaces-51dc4e1b.js +13 -0
  955. package/dist/esm/key-69001a68.js +33 -0
  956. package/dist/esm/label-bb61bdef.js +54 -0
  957. package/dist/esm/loader.js +7 -3
  958. package/dist/esm/locale-6c1b85c7.js +118 -0
  959. package/dist/esm/math-250d4476.js +7 -0
  960. package/dist/esm/number-e7393766.js +40 -0
  961. package/dist/esm/observers-8f0bc419.js +20 -0
  962. package/dist/esm/popper-7499ea4f.js +1785 -0
  963. package/dist/esm/resources-3b481489.js +216 -0
  964. package/dist/esm/resources-510eed1a.js +325 -0
  965. package/dist/esm/resources-584acd9b.js +17 -0
  966. package/dist/esm/resources-7c6029b6.js +16 -0
  967. package/dist/esm/sortable.esm-04824d33.js +3017 -0
  968. package/dist/esm/utils-6beb0662.js +113 -0
  969. package/dist/esm-es5/CalciteExpandToggle-151a563a.js +5 -0
  970. package/dist/esm-es5/CalciteHeading-1735f17a.js +5 -0
  971. package/dist/esm-es5/array-91a648e2.js +5 -0
  972. package/dist/esm-es5/calcite-accordion_2.entry.js +5 -1
  973. package/dist/esm-es5/calcite-action-bar.entry.js +5 -1
  974. package/dist/esm-es5/calcite-action-group.entry.js +5 -1
  975. package/dist/esm-es5/calcite-action-menu.entry.js +5 -1
  976. package/dist/esm-es5/calcite-action-pad.entry.js +5 -1
  977. package/dist/esm-es5/calcite-action.entry.js +5 -1
  978. package/dist/esm-es5/calcite-alert.entry.js +5 -1
  979. package/dist/esm-es5/calcite-avatar.entry.js +5 -1
  980. package/dist/esm-es5/calcite-block_2.entry.js +5 -1
  981. package/dist/esm-es5/calcite-button.entry.js +5 -1
  982. package/dist/esm-es5/calcite-card.entry.js +5 -1
  983. package/dist/esm-es5/calcite-checkbox.entry.js +5 -1
  984. package/dist/esm-es5/calcite-chip.entry.js +5 -1
  985. package/dist/esm-es5/calcite-color-picker_3.entry.js +5 -1
  986. package/dist/esm-es5/calcite-combobox_3.entry.js +5 -1
  987. package/dist/esm-es5/calcite-date-picker_4.entry.js +5 -1
  988. package/dist/esm-es5/calcite-dropdown_3.entry.js +5 -1
  989. package/dist/esm-es5/calcite-fab.entry.js +5 -1
  990. package/dist/esm-es5/calcite-filter.entry.js +5 -1
  991. package/dist/esm-es5/calcite-flow.entry.js +5 -1
  992. package/dist/esm-es5/calcite-graph_2.entry.js +5 -1
  993. package/dist/esm-es5/calcite-handle.entry.js +5 -1
  994. package/dist/esm-es5/calcite-icon.entry.js +5 -1
  995. package/dist/esm-es5/calcite-inline-editable.entry.js +5 -1
  996. package/dist/esm-es5/calcite-input-date-picker.entry.js +5 -1
  997. package/dist/esm-es5/calcite-input-message.entry.js +5 -1
  998. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +5 -1
  999. package/dist/esm-es5/calcite-input.entry.js +5 -1
  1000. package/dist/esm-es5/calcite-label.entry.js +5 -1
  1001. package/dist/esm-es5/calcite-link.entry.js +5 -1
  1002. package/dist/esm-es5/calcite-list_3.entry.js +5 -1
  1003. package/dist/esm-es5/calcite-loader.entry.js +5 -1
  1004. package/dist/esm-es5/calcite-modal.entry.js +5 -1
  1005. package/dist/esm-es5/calcite-notice.entry.js +5 -1
  1006. package/dist/esm-es5/calcite-option_3.entry.js +5 -1
  1007. package/dist/esm-es5/calcite-pagination.entry.js +5 -1
  1008. package/dist/esm-es5/calcite-panel.entry.js +5 -1
  1009. package/dist/esm-es5/calcite-pick-list_3.entry.js +5 -1
  1010. package/dist/esm-es5/calcite-popover_2.entry.js +5 -1
  1011. package/dist/esm-es5/calcite-progress.entry.js +5 -1
  1012. package/dist/esm-es5/calcite-radio-button-group.entry.js +5 -1
  1013. package/dist/esm-es5/calcite-radio-group_2.entry.js +5 -1
  1014. package/dist/esm-es5/calcite-radio_2.entry.js +5 -1
  1015. package/dist/esm-es5/calcite-rating.entry.js +5 -1
  1016. package/dist/esm-es5/calcite-scrim.entry.js +5 -1
  1017. package/dist/esm-es5/calcite-shell_3.entry.js +5 -1
  1018. package/dist/esm-es5/calcite-sortable-list.entry.js +5 -1
  1019. package/dist/esm-es5/calcite-split-button.entry.js +5 -1
  1020. package/dist/esm-es5/calcite-stepper_2.entry.js +5 -1
  1021. package/dist/esm-es5/calcite-switch.entry.js +5 -1
  1022. package/dist/esm-es5/calcite-tab_4.entry.js +5 -1
  1023. package/dist/esm-es5/calcite-tile-select_2.entry.js +5 -1
  1024. package/dist/esm-es5/calcite-tile.entry.js +5 -1
  1025. package/dist/esm-es5/calcite-tip_3.entry.js +5 -1
  1026. package/dist/esm-es5/calcite-tooltip_2.entry.js +5 -1
  1027. package/dist/esm-es5/calcite-tree_2.entry.js +5 -1
  1028. package/dist/esm-es5/calcite-value-list_2.entry.js +5 -1
  1029. package/dist/esm-es5/calcite.js +5 -1
  1030. package/dist/esm-es5/debounce-79648d42.js +5 -0
  1031. package/dist/esm-es5/dom-f24e866c.js +5 -0
  1032. package/dist/esm-es5/forIn-48d8fb84.js +5 -0
  1033. package/dist/esm-es5/form-cee9f632.js +5 -0
  1034. package/dist/esm-es5/guid-196bd5ea.js +5 -0
  1035. package/dist/esm-es5/index-d653c37f.js +5 -0
  1036. package/dist/esm-es5/index.js +4 -0
  1037. package/dist/esm-es5/interfaces-51dc4e1b.js +5 -0
  1038. package/dist/esm-es5/key-69001a68.js +5 -0
  1039. package/dist/esm-es5/label-bb61bdef.js +5 -0
  1040. package/dist/esm-es5/loader.js +5 -1
  1041. package/dist/esm-es5/locale-6c1b85c7.js +5 -0
  1042. package/dist/esm-es5/math-250d4476.js +5 -0
  1043. package/dist/esm-es5/number-e7393766.js +5 -0
  1044. package/dist/esm-es5/observers-8f0bc419.js +5 -0
  1045. package/dist/esm-es5/popper-7499ea4f.js +5 -0
  1046. package/dist/esm-es5/resources-3b481489.js +5 -0
  1047. package/dist/esm-es5/resources-510eed1a.js +5 -0
  1048. package/dist/esm-es5/resources-584acd9b.js +5 -0
  1049. package/dist/esm-es5/resources-7c6029b6.js +5 -0
  1050. package/dist/esm-es5/sortable.esm-04824d33.js +11 -0
  1051. package/dist/esm-es5/utils-6beb0662.js +5 -0
  1052. package/dist/extras/docs-json.json +624 -218
  1053. package/dist/loader/cdn.js +4 -1
  1054. package/dist/loader/index.cjs.js +4 -1
  1055. package/dist/loader/index.d.ts +0 -1
  1056. package/dist/loader/index.es2017.js +4 -1
  1057. package/dist/loader/index.js +4 -1
  1058. package/dist/types/components/calcite-accordion/calcite-accordion.d.ts +3 -0
  1059. package/dist/types/components/calcite-accordion-item/calcite-accordion-item.d.ts +3 -0
  1060. package/dist/types/components/calcite-action/calcite-action.d.ts +3 -3
  1061. package/dist/types/components/calcite-action-bar/calcite-action-bar.d.ts +8 -4
  1062. package/dist/types/components/calcite-action-bar/utils.d.ts +1 -0
  1063. package/dist/types/components/calcite-block/calcite-block.d.ts +1 -1
  1064. package/dist/types/components/calcite-block/resources.d.ts +2 -0
  1065. package/dist/types/components/calcite-block-section/calcite-block-section.d.ts +1 -1
  1066. package/dist/types/components/calcite-button/calcite-button.d.ts +16 -3
  1067. package/dist/types/components/calcite-card/calcite-card.d.ts +1 -1
  1068. package/dist/types/components/calcite-checkbox/calcite-checkbox.d.ts +14 -5
  1069. package/dist/types/components/calcite-chip/calcite-chip.d.ts +2 -1
  1070. package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +7 -1
  1071. package/dist/types/components/calcite-combobox-item/calcite-combobox-item.d.ts +3 -0
  1072. package/dist/types/components/calcite-combobox-item-group/calcite-combobox-item-group.d.ts +3 -0
  1073. package/dist/types/components/calcite-dropdown/calcite-dropdown.d.ts +8 -5
  1074. package/dist/types/components/calcite-dropdown-group/calcite-dropdown-group.d.ts +3 -0
  1075. package/dist/types/components/calcite-dropdown-item/calcite-dropdown-item.d.ts +3 -0
  1076. package/dist/types/components/calcite-filter/calcite-filter.d.ts +2 -2
  1077. package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +8 -3
  1078. package/dist/types/components/calcite-input/calcite-input.d.ts +4 -1
  1079. package/dist/types/components/calcite-input-date-picker/calcite-input-date-picker.d.ts +6 -1
  1080. package/dist/types/components/calcite-input-message/calcite-input-message.d.ts +3 -0
  1081. package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +6 -5
  1082. package/dist/types/components/calcite-label/calcite-label.d.ts +8 -5
  1083. package/dist/types/components/calcite-label/resources.d.ts +3 -0
  1084. package/dist/types/components/calcite-link/calcite-link.d.ts +3 -2
  1085. package/dist/types/components/calcite-list/calcite-list.d.ts +3 -0
  1086. package/dist/types/components/calcite-list-item/calcite-list-item.d.ts +4 -1
  1087. package/dist/types/components/calcite-option-group/calcite-option-group.d.ts +3 -0
  1088. package/dist/types/components/calcite-panel/calcite-panel.d.ts +8 -7
  1089. package/dist/types/components/calcite-popover/calcite-popover.d.ts +3 -0
  1090. package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +15 -5
  1091. package/dist/types/components/calcite-radio-button-group/calcite-radio-button-group.d.ts +3 -0
  1092. package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +9 -3
  1093. package/dist/types/components/calcite-rating/calcite-rating.d.ts +6 -2
  1094. package/dist/types/components/calcite-scrim/calcite-scrim.d.ts +3 -0
  1095. package/dist/types/components/calcite-select/calcite-select.d.ts +8 -4
  1096. package/dist/types/components/calcite-shell/calcite-shell.d.ts +2 -2
  1097. package/dist/types/components/calcite-shell-center-row/calcite-shell-center-row.d.ts +1 -1
  1098. package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +1 -1
  1099. package/dist/types/components/calcite-slider/calcite-slider.d.ts +29 -3
  1100. package/dist/types/components/calcite-sortable-list/calcite-sortable-list.d.ts +6 -1
  1101. package/dist/types/components/calcite-sortable-list/resources.d.ts +3 -0
  1102. package/dist/types/components/calcite-split-button/calcite-split-button.d.ts +3 -0
  1103. package/dist/types/components/calcite-stepper/calcite-stepper.d.ts +3 -0
  1104. package/dist/types/components/calcite-stepper-item/calcite-stepper-item.d.ts +3 -0
  1105. package/dist/types/components/calcite-switch/calcite-switch.d.ts +17 -6
  1106. package/dist/types/components/calcite-tab/calcite-tab.d.ts +3 -0
  1107. package/dist/types/components/calcite-tab-nav/calcite-tab-nav.d.ts +3 -0
  1108. package/dist/types/components/calcite-tab-title/calcite-tab-title.d.ts +3 -0
  1109. package/dist/types/components/calcite-tabs/calcite-tabs.d.ts +2 -1
  1110. package/dist/types/components/calcite-tile-select/calcite-tile-select.d.ts +13 -5
  1111. package/dist/types/components/calcite-tile-select-group/calcite-tile-select-group.d.ts +3 -0
  1112. package/dist/types/components/calcite-tip/calcite-tip.d.ts +1 -0
  1113. package/dist/types/components/calcite-tip-group/calcite-tip-group.d.ts +3 -0
  1114. package/dist/types/components/calcite-tooltip/calcite-tooltip.d.ts +3 -0
  1115. package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +3 -1
  1116. package/dist/types/components/calcite-value-list/calcite-value-list.d.ts +1 -1
  1117. package/dist/types/components/interfaces.d.ts +1 -0
  1118. package/dist/types/components.d.ts +64 -12
  1119. package/dist/types/preact.d.ts +14 -9
  1120. package/dist/types/utils/dom.d.ts +0 -1
  1121. package/dist/types/utils/label.d.ts +30 -0
  1122. package/dist/types/utils/number.d.ts +0 -1
  1123. package/dist/types/utils/resources.d.ts +7 -0
  1124. package/hydrate/index.js +5896 -5642
  1125. package/package.json +43 -43
  1126. package/readme.md +6 -4
  1127. package/CHANGELOG.md +0 -1402
  1128. package/dist/calcite/assets/calcite-icon/checkSquareF16.json +0 -1
  1129. package/dist/calcite/assets/calcite-icon/checkSquareF24.json +0 -1
  1130. package/dist/calcite/assets/calcite-icon/checkSquareF32.json +0 -1
  1131. package/dist/calcite/assets/calcite-icon/lineSolid4.json +0 -1
  1132. package/dist/calcite/assets/calcite-icon/squareF16.json +0 -1
  1133. package/dist/calcite/assets/calcite-icon/squareF24.json +0 -1
  1134. package/dist/calcite/assets/calcite-icon/squareF32.json +0 -1
  1135. package/dist/calcite/assets/calcite-icon/xHexagon16.json +0 -1
  1136. package/dist/calcite/assets/calcite-icon/xHexagon24.json +0 -1
  1137. package/dist/calcite/assets/calcite-icon/xHexagon32.json +0 -1
  1138. package/dist/calcite/assets/calcite-icon/xHexagonF16.json +0 -1
  1139. package/dist/calcite/assets/calcite-icon/xHexagonF24.json +0 -1
  1140. package/dist/calcite/assets/calcite-icon/xHexagonF32.json +0 -1
  1141. package/dist/calcite/assets/calcite-icon/xOctagonF16.json +0 -1
  1142. package/dist/calcite/assets/calcite-icon/xOctagonF24.json +0 -1
  1143. package/dist/calcite/assets/calcite-icon/xOctagonF32.json +0 -1
  1144. package/dist/calcite/p-02c649a5.system.entry.js +0 -1
  1145. package/dist/calcite/p-02d538d1.entry.js +0 -1
  1146. package/dist/calcite/p-02f6769f.system.entry.js +0 -1
  1147. package/dist/calcite/p-04907920.entry.js +0 -1
  1148. package/dist/calcite/p-0ae16e31.js +0 -1
  1149. package/dist/calcite/p-0bc4ed41.system.entry.js +0 -1
  1150. package/dist/calcite/p-0ea81e18.entry.js +0 -1
  1151. package/dist/calcite/p-1020aed8.system.js +0 -1
  1152. package/dist/calcite/p-14928bee.entry.js +0 -1
  1153. package/dist/calcite/p-150bb224.entry.js +0 -1
  1154. package/dist/calcite/p-16b4f190.entry.js +0 -1
  1155. package/dist/calcite/p-18a62b5e.js +0 -1
  1156. package/dist/calcite/p-19029579.system.entry.js +0 -1
  1157. package/dist/calcite/p-19ac376f.js +0 -1
  1158. package/dist/calcite/p-1c01cf8d.system.entry.js +0 -1
  1159. package/dist/calcite/p-2189146d.entry.js +0 -1
  1160. package/dist/calcite/p-2321f7fa.system.entry.js +0 -1
  1161. package/dist/calcite/p-263e9c6f.js +0 -1
  1162. package/dist/calcite/p-26e364ee.entry.js +0 -1
  1163. package/dist/calcite/p-27c361d6.system.entry.js +0 -1
  1164. package/dist/calcite/p-2a9b4a25.system.js +0 -1
  1165. package/dist/calcite/p-2c235db8.system.js +0 -1
  1166. package/dist/calcite/p-305a19fa.entry.js +0 -1
  1167. package/dist/calcite/p-3426e87b.system.js +0 -1
  1168. package/dist/calcite/p-34ca7837.entry.js +0 -1
  1169. package/dist/calcite/p-35123e65.system.entry.js +0 -1
  1170. package/dist/calcite/p-354fbadd.js +0 -1
  1171. package/dist/calcite/p-35808614.entry.js +0 -1
  1172. package/dist/calcite/p-366f02bb.system.entry.js +0 -1
  1173. package/dist/calcite/p-379334be.entry.js +0 -1
  1174. package/dist/calcite/p-3aa13327.system.entry.js +0 -1
  1175. package/dist/calcite/p-3bd42f9c.system.entry.js +0 -1
  1176. package/dist/calcite/p-3c9923f1.system.js +0 -1
  1177. package/dist/calcite/p-3ebef7b9.system.entry.js +0 -1
  1178. package/dist/calcite/p-3fbf2d34.system.entry.js +0 -1
  1179. package/dist/calcite/p-42da7fef.entry.js +0 -1
  1180. package/dist/calcite/p-43012e6b.entry.js +0 -1
  1181. package/dist/calcite/p-43a9faca.js +0 -1
  1182. package/dist/calcite/p-447a908d.system.entry.js +0 -1
  1183. package/dist/calcite/p-482ec054.system.js +0 -1
  1184. package/dist/calcite/p-4ae01d80.js +0 -1
  1185. package/dist/calcite/p-4bd1f1b7.system.entry.js +0 -1
  1186. package/dist/calcite/p-4bea77bd.entry.js +0 -1
  1187. package/dist/calcite/p-4f542f6c.system.entry.js +0 -1
  1188. package/dist/calcite/p-4fbdd4ed.system.entry.js +0 -1
  1189. package/dist/calcite/p-4fda49e6.js +0 -1
  1190. package/dist/calcite/p-50ea2036.system.js +0 -1
  1191. package/dist/calcite/p-5147562c.entry.js +0 -1
  1192. package/dist/calcite/p-526c2f38.entry.js +0 -1
  1193. package/dist/calcite/p-531b9a81.system.entry.js +0 -1
  1194. package/dist/calcite/p-53caa311.system.js +0 -1
  1195. package/dist/calcite/p-555f1009.entry.js +0 -1
  1196. package/dist/calcite/p-559ffa87.js +0 -1
  1197. package/dist/calcite/p-571c8d5f.system.entry.js +0 -1
  1198. package/dist/calcite/p-58421494.js +0 -1
  1199. package/dist/calcite/p-585030e9.entry.js +0 -1
  1200. package/dist/calcite/p-5890d56b.system.js +0 -1
  1201. package/dist/calcite/p-58cd3aa4.system.entry.js +0 -1
  1202. package/dist/calcite/p-58d7d786.entry.js +0 -1
  1203. package/dist/calcite/p-5a1b0338.system.js +0 -1
  1204. package/dist/calcite/p-5b3d5565.entry.js +0 -1
  1205. package/dist/calcite/p-5b7ef513.system.js +0 -1
  1206. package/dist/calcite/p-5bf979dd.system.entry.js +0 -1
  1207. package/dist/calcite/p-5c8268a5.system.entry.js +0 -1
  1208. package/dist/calcite/p-5e040210.system.entry.js +0 -1
  1209. package/dist/calcite/p-61ef4e27.entry.js +0 -1
  1210. package/dist/calcite/p-637546fe.system.entry.js +0 -1
  1211. package/dist/calcite/p-66fb0f5c.system.entry.js +0 -1
  1212. package/dist/calcite/p-686d30d5.entry.js +0 -1
  1213. package/dist/calcite/p-6ce45b41.system.entry.js +0 -1
  1214. package/dist/calcite/p-6ded92ba.entry.js +0 -1
  1215. package/dist/calcite/p-6e967236.system.entry.js +0 -1
  1216. package/dist/calcite/p-706789ab.entry.js +0 -1
  1217. package/dist/calcite/p-7084ba72.system.entry.js +0 -1
  1218. package/dist/calcite/p-728c556a.system.entry.js +0 -1
  1219. package/dist/calcite/p-78114ad4.system.js +0 -1
  1220. package/dist/calcite/p-79783728.entry.js +0 -1
  1221. package/dist/calcite/p-7ac27798.entry.js +0 -1
  1222. package/dist/calcite/p-7c4f8734.entry.js +0 -1
  1223. package/dist/calcite/p-7c5b7019.system.entry.js +0 -1
  1224. package/dist/calcite/p-7ccd0a77.entry.js +0 -1
  1225. package/dist/calcite/p-7d11fed5.system.entry.js +0 -1
  1226. package/dist/calcite/p-8123a8de.system.entry.js +0 -1
  1227. package/dist/calcite/p-82a11724.system.js +0 -7
  1228. package/dist/calcite/p-83a36e7e.entry.js +0 -1
  1229. package/dist/calcite/p-86a81245.entry.js +0 -1
  1230. package/dist/calcite/p-8782aa79.entry.js +0 -1
  1231. package/dist/calcite/p-8958d1f6.system.js +0 -1
  1232. package/dist/calcite/p-8a30b93d.system.js +0 -1
  1233. package/dist/calcite/p-8aa77a54.system.entry.js +0 -1
  1234. package/dist/calcite/p-8edd2a46.entry.js +0 -1
  1235. package/dist/calcite/p-904e8561.system.entry.js +0 -1
  1236. package/dist/calcite/p-90dd374c.entry.js +0 -1
  1237. package/dist/calcite/p-92d12490.system.entry.js +0 -1
  1238. package/dist/calcite/p-95dfb659.system.js +0 -1
  1239. package/dist/calcite/p-96deb83e.entry.js +0 -1
  1240. package/dist/calcite/p-9705826b.system.entry.js +0 -1
  1241. package/dist/calcite/p-98093b17.system.js +0 -1
  1242. package/dist/calcite/p-992b162e.system.entry.js +0 -1
  1243. package/dist/calcite/p-9981e8ba.system.entry.js +0 -1
  1244. package/dist/calcite/p-a0eb3011.system.entry.js +0 -1
  1245. package/dist/calcite/p-a177a64e.system.entry.js +0 -1
  1246. package/dist/calcite/p-a283b1c6.entry.js +0 -1
  1247. package/dist/calcite/p-a30026d4.system.entry.js +0 -1
  1248. package/dist/calcite/p-a460e3dc.entry.js +0 -1
  1249. package/dist/calcite/p-a480f5f5.entry.js +0 -1
  1250. package/dist/calcite/p-a4e6e35b.js +0 -1
  1251. package/dist/calcite/p-a55bf19e.system.entry.js +0 -1
  1252. package/dist/calcite/p-a57a7f49.js +0 -7
  1253. package/dist/calcite/p-a6b26bd1.system.js +0 -1
  1254. package/dist/calcite/p-a7223dde.system.entry.js +0 -1
  1255. package/dist/calcite/p-a7a7301d.system.js +0 -1
  1256. package/dist/calcite/p-a8650c17.system.js +0 -1
  1257. package/dist/calcite/p-a9dc52c5.system.entry.js +0 -1
  1258. package/dist/calcite/p-a9fdf90b.entry.js +0 -1
  1259. package/dist/calcite/p-abde34ef.entry.js +0 -1
  1260. package/dist/calcite/p-ad0d9ffd.system.entry.js +0 -1
  1261. package/dist/calcite/p-ad6cf121.entry.js +0 -1
  1262. package/dist/calcite/p-b0f098a0.system.entry.js +0 -1
  1263. package/dist/calcite/p-b2425e21.js +0 -1
  1264. package/dist/calcite/p-b4f7d8b4.entry.js +0 -1
  1265. package/dist/calcite/p-b86463e6.system.entry.js +0 -1
  1266. package/dist/calcite/p-bb8ace16.js +0 -1
  1267. package/dist/calcite/p-bfbf665b.entry.js +0 -1
  1268. package/dist/calcite/p-c004bc39.entry.js +0 -1
  1269. package/dist/calcite/p-c280abae.js +0 -1
  1270. package/dist/calcite/p-c33e39c2.system.entry.js +0 -1
  1271. package/dist/calcite/p-c47fe2f9.js +0 -1
  1272. package/dist/calcite/p-c76539cc.system.js +0 -1
  1273. package/dist/calcite/p-c7ea4ec6.system.entry.js +0 -1
  1274. package/dist/calcite/p-caf80cd7.js +0 -1
  1275. package/dist/calcite/p-cc08771d.system.entry.js +0 -1
  1276. package/dist/calcite/p-cda2cefc.system.entry.js +0 -1
  1277. package/dist/calcite/p-cebd4de5.js +0 -1
  1278. package/dist/calcite/p-cf0cbd74.entry.js +0 -1
  1279. package/dist/calcite/p-d06530e0.js +0 -1
  1280. package/dist/calcite/p-d53c2d2e.system.js +0 -1
  1281. package/dist/calcite/p-d7b7568e.entry.js +0 -1
  1282. package/dist/calcite/p-d7cbb59a.system.entry.js +0 -1
  1283. package/dist/calcite/p-d81e8789.system.entry.js +0 -1
  1284. package/dist/calcite/p-d858b7ab.js +0 -1
  1285. package/dist/calcite/p-dbed3773.system.entry.js +0 -1
  1286. package/dist/calcite/p-dda58d1e.system.js +0 -1
  1287. package/dist/calcite/p-de09a642.entry.js +0 -1
  1288. package/dist/calcite/p-dea887e3.entry.js +0 -1
  1289. package/dist/calcite/p-defdc464.system.js +0 -1
  1290. package/dist/calcite/p-dfb998cc.js +0 -1
  1291. package/dist/calcite/p-e14d8072.entry.js +0 -1
  1292. package/dist/calcite/p-e55e3009.system.entry.js +0 -1
  1293. package/dist/calcite/p-ea51eaaa.js +0 -1
  1294. package/dist/calcite/p-eaf3e528.entry.js +0 -1
  1295. package/dist/calcite/p-ec7b5fc8.entry.js +0 -1
  1296. package/dist/calcite/p-ed1489e0.entry.js +0 -1
  1297. package/dist/calcite/p-eec0ed2d.entry.js +0 -1
  1298. package/dist/calcite/p-ef5258e2.entry.js +0 -1
  1299. package/dist/calcite/p-f2ac9b97.entry.js +0 -1
  1300. package/dist/calcite/p-f435f61e.entry.js +0 -1
  1301. package/dist/calcite/p-f83a9cac.system.entry.js +0 -1
  1302. package/dist/calcite/p-f9775a9d.entry.js +0 -1
  1303. package/dist/calcite/p-fd59e605.system.entry.js +0 -1
  1304. package/dist/cjs/CalciteExpandToggle-f2905eb5.js +0 -88
  1305. package/dist/cjs/CalciteHeading-cf7944a6.js +0 -15
  1306. package/dist/cjs/array-4fc5abfa.js +0 -7
  1307. package/dist/cjs/debounce-11980960.js +0 -491
  1308. package/dist/cjs/dom-57231db9.js +0 -167
  1309. package/dist/cjs/forIn-46535ded.js +0 -618
  1310. package/dist/cjs/form-432ae178.js +0 -18
  1311. package/dist/cjs/guid-4637ad8f.js +0 -16
  1312. package/dist/cjs/index-98b8a879.js +0 -2055
  1313. package/dist/cjs/interfaces-bc0f5779.js +0 -9
  1314. package/dist/cjs/key-f470de4c.js +0 -33
  1315. package/dist/cjs/locale-eb4486ae.js +0 -119
  1316. package/dist/cjs/math-750406eb.js +0 -5
  1317. package/dist/cjs/number-77308374.js +0 -45
  1318. package/dist/cjs/observers-88b3a2d4.js +0 -18
  1319. package/dist/cjs/popper-501d0df7.js +0 -1786
  1320. package/dist/cjs/resources-3c13555a.js +0 -228
  1321. package/dist/cjs/resources-76637167.js +0 -17
  1322. package/dist/cjs/resources-ae299e51.js +0 -16
  1323. package/dist/cjs/resources-ca69ec04.js +0 -342
  1324. package/dist/cjs/sortable.esm-bcce1d94.js +0 -3015
  1325. package/dist/cjs/utils-d549a0a9.js +0 -119
  1326. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF16.json +0 -1
  1327. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF24.json +0 -1
  1328. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF32.json +0 -1
  1329. package/dist/collection/components/calcite-icon/assets/calcite-icon/lineSolid4.json +0 -1
  1330. package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF16.json +0 -1
  1331. package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF24.json +0 -1
  1332. package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF32.json +0 -1
  1333. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon16.json +0 -1
  1334. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon24.json +0 -1
  1335. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon32.json +0 -1
  1336. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF16.json +0 -1
  1337. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF24.json +0 -1
  1338. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF32.json +0 -1
  1339. package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF16.json +0 -1
  1340. package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF24.json +0 -1
  1341. package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF32.json +0 -1
  1342. package/dist/custom-elements/bundles/accordion.d.ts +0 -1
  1343. package/dist/custom-elements/bundles/accordion.js +0 -5
  1344. package/dist/custom-elements/bundles/action-bar.d.ts +0 -1
  1345. package/dist/custom-elements/bundles/action-bar.js +0 -5
  1346. package/dist/custom-elements/bundles/action-menu.d.ts +0 -1
  1347. package/dist/custom-elements/bundles/action-menu.js +0 -5
  1348. package/dist/custom-elements/bundles/action-pad.d.ts +0 -1
  1349. package/dist/custom-elements/bundles/action-pad.js +0 -5
  1350. package/dist/custom-elements/bundles/action.d.ts +0 -1
  1351. package/dist/custom-elements/bundles/action.js +0 -5
  1352. package/dist/custom-elements/bundles/alert.d.ts +0 -1
  1353. package/dist/custom-elements/bundles/alert.js +0 -5
  1354. package/dist/custom-elements/bundles/avatar.d.ts +0 -1
  1355. package/dist/custom-elements/bundles/avatar.js +0 -5
  1356. package/dist/custom-elements/bundles/block.d.ts +0 -1
  1357. package/dist/custom-elements/bundles/block.js +0 -5
  1358. package/dist/custom-elements/bundles/button.d.ts +0 -1
  1359. package/dist/custom-elements/bundles/button.js +0 -5
  1360. package/dist/custom-elements/bundles/card.d.ts +0 -1
  1361. package/dist/custom-elements/bundles/card.js +0 -5
  1362. package/dist/custom-elements/bundles/checkbox.d.ts +0 -1
  1363. package/dist/custom-elements/bundles/checkbox.js +0 -5
  1364. package/dist/custom-elements/bundles/chip.d.ts +0 -1
  1365. package/dist/custom-elements/bundles/chip.js +0 -5
  1366. package/dist/custom-elements/bundles/color-picker.d.ts +0 -1
  1367. package/dist/custom-elements/bundles/color-picker.js +0 -5
  1368. package/dist/custom-elements/bundles/combobox.d.ts +0 -1
  1369. package/dist/custom-elements/bundles/combobox.js +0 -5
  1370. package/dist/custom-elements/bundles/date-picker.d.ts +0 -1
  1371. package/dist/custom-elements/bundles/date-picker.js +0 -5
  1372. package/dist/custom-elements/bundles/dropdown.d.ts +0 -1
  1373. package/dist/custom-elements/bundles/dropdown.js +0 -5
  1374. package/dist/custom-elements/bundles/fab.d.ts +0 -1
  1375. package/dist/custom-elements/bundles/fab.js +0 -5
  1376. package/dist/custom-elements/bundles/flow.d.ts +0 -1
  1377. package/dist/custom-elements/bundles/flow.js +0 -5
  1378. package/dist/custom-elements/bundles/icon.d.ts +0 -1
  1379. package/dist/custom-elements/bundles/icon.js +0 -5
  1380. package/dist/custom-elements/bundles/inline-editable.d.ts +0 -1
  1381. package/dist/custom-elements/bundles/inline-editable.js +0 -5
  1382. package/dist/custom-elements/bundles/input-date-picker.d.ts +0 -1
  1383. package/dist/custom-elements/bundles/input-date-picker.js +0 -5
  1384. package/dist/custom-elements/bundles/input-message.d.ts +0 -1
  1385. package/dist/custom-elements/bundles/input-message.js +0 -5
  1386. package/dist/custom-elements/bundles/input-time-picker.d.ts +0 -1
  1387. package/dist/custom-elements/bundles/input-time-picker.js +0 -5
  1388. package/dist/custom-elements/bundles/input.d.ts +0 -1
  1389. package/dist/custom-elements/bundles/input.js +0 -5
  1390. package/dist/custom-elements/bundles/label.d.ts +0 -1
  1391. package/dist/custom-elements/bundles/label.js +0 -5
  1392. package/dist/custom-elements/bundles/link.d.ts +0 -1
  1393. package/dist/custom-elements/bundles/link.js +0 -5
  1394. package/dist/custom-elements/bundles/list.d.ts +0 -1
  1395. package/dist/custom-elements/bundles/list.js +0 -5
  1396. package/dist/custom-elements/bundles/loader.d.ts +0 -1
  1397. package/dist/custom-elements/bundles/loader.js +0 -5
  1398. package/dist/custom-elements/bundles/modal.d.ts +0 -1
  1399. package/dist/custom-elements/bundles/modal.js +0 -5
  1400. package/dist/custom-elements/bundles/notice.d.ts +0 -1
  1401. package/dist/custom-elements/bundles/notice.js +0 -5
  1402. package/dist/custom-elements/bundles/pagination.d.ts +0 -1
  1403. package/dist/custom-elements/bundles/pagination.js +0 -5
  1404. package/dist/custom-elements/bundles/panel.d.ts +0 -1
  1405. package/dist/custom-elements/bundles/panel.js +0 -5
  1406. package/dist/custom-elements/bundles/pick-list.d.ts +0 -1
  1407. package/dist/custom-elements/bundles/pick-list.js +0 -5
  1408. package/dist/custom-elements/bundles/popover.d.ts +0 -1
  1409. package/dist/custom-elements/bundles/popover.js +0 -5
  1410. package/dist/custom-elements/bundles/progress.d.ts +0 -1
  1411. package/dist/custom-elements/bundles/progress.js +0 -5
  1412. package/dist/custom-elements/bundles/radio-button-group.d.ts +0 -1
  1413. package/dist/custom-elements/bundles/radio-button-group.js +0 -5
  1414. package/dist/custom-elements/bundles/radio-button.d.ts +0 -1
  1415. package/dist/custom-elements/bundles/radio-button.js +0 -5
  1416. package/dist/custom-elements/bundles/radio-group.d.ts +0 -1
  1417. package/dist/custom-elements/bundles/radio-group.js +0 -5
  1418. package/dist/custom-elements/bundles/rating.d.ts +0 -1
  1419. package/dist/custom-elements/bundles/rating.js +0 -5
  1420. package/dist/custom-elements/bundles/scrim.d.ts +0 -1
  1421. package/dist/custom-elements/bundles/scrim.js +0 -5
  1422. package/dist/custom-elements/bundles/select.d.ts +0 -1
  1423. package/dist/custom-elements/bundles/select.js +0 -5
  1424. package/dist/custom-elements/bundles/shell.d.ts +0 -1
  1425. package/dist/custom-elements/bundles/shell.js +0 -5
  1426. package/dist/custom-elements/bundles/slider.d.ts +0 -1
  1427. package/dist/custom-elements/bundles/slider.js +0 -5
  1428. package/dist/custom-elements/bundles/sortable-list.d.ts +0 -1
  1429. package/dist/custom-elements/bundles/sortable-list.js +0 -5
  1430. package/dist/custom-elements/bundles/split-button.d.ts +0 -1
  1431. package/dist/custom-elements/bundles/split-button.js +0 -5
  1432. package/dist/custom-elements/bundles/stepper.d.ts +0 -1
  1433. package/dist/custom-elements/bundles/stepper.js +0 -5
  1434. package/dist/custom-elements/bundles/switch.d.ts +0 -1
  1435. package/dist/custom-elements/bundles/switch.js +0 -5
  1436. package/dist/custom-elements/bundles/tab.d.ts +0 -1
  1437. package/dist/custom-elements/bundles/tab.js +0 -5
  1438. package/dist/custom-elements/bundles/tile-select-group.d.ts +0 -1
  1439. package/dist/custom-elements/bundles/tile-select-group.js +0 -5
  1440. package/dist/custom-elements/bundles/tile.d.ts +0 -1
  1441. package/dist/custom-elements/bundles/tile.js +0 -5
  1442. package/dist/custom-elements/bundles/tip.d.ts +0 -1
  1443. package/dist/custom-elements/bundles/tip.js +0 -5
  1444. package/dist/custom-elements/bundles/tooltip.d.ts +0 -1
  1445. package/dist/custom-elements/bundles/tooltip.js +0 -5
  1446. package/dist/custom-elements/bundles/tree.d.ts +0 -1
  1447. package/dist/custom-elements/bundles/tree.js +0 -5
  1448. package/dist/custom-elements/bundles/value-list.d.ts +0 -1
  1449. package/dist/custom-elements/bundles/value-list.js +0 -5
  1450. package/dist/custom-elements/index.mjs +0 -24376
  1451. package/dist/custom-elements/utils.d.ts +0 -2
  1452. package/dist/custom-elements/utils.js +0 -11
  1453. package/dist/esm/CalciteExpandToggle-476279ee.js +0 -82
  1454. package/dist/esm/CalciteHeading-ea5ec96c.js +0 -12
  1455. package/dist/esm/array-af19adb2.js +0 -5
  1456. package/dist/esm/debounce-047e09f4.js +0 -482
  1457. package/dist/esm/dom-0b02c0cf.js +0 -149
  1458. package/dist/esm/forIn-d55260fc.js +0 -615
  1459. package/dist/esm/form-8aa0d95b.js +0 -16
  1460. package/dist/esm/guid-09142681.js +0 -14
  1461. package/dist/esm/index-1554a132.js +0 -2022
  1462. package/dist/esm/interfaces-355fccb6.js +0 -9
  1463. package/dist/esm/key-ec82f942.js +0 -29
  1464. package/dist/esm/locale-8436bbe1.js +0 -114
  1465. package/dist/esm/math-c8e7aa13.js +0 -3
  1466. package/dist/esm/number-358ca1d4.js +0 -39
  1467. package/dist/esm/observers-c93d4fe5.js +0 -16
  1468. package/dist/esm/popper-ac27099f.js +0 -1781
  1469. package/dist/esm/resources-037b842c.js +0 -321
  1470. package/dist/esm/resources-82817f70.js +0 -13
  1471. package/dist/esm/resources-a7a29b39.js +0 -212
  1472. package/dist/esm/resources-c72ebfea.js +0 -12
  1473. package/dist/esm/sortable.esm-2f5354d3.js +0 -3013
  1474. package/dist/esm/utils-60acc1d6.js +0 -109
  1475. package/dist/esm-es5/CalciteExpandToggle-476279ee.js +0 -1
  1476. package/dist/esm-es5/CalciteHeading-ea5ec96c.js +0 -1
  1477. package/dist/esm-es5/array-af19adb2.js +0 -1
  1478. package/dist/esm-es5/debounce-047e09f4.js +0 -1
  1479. package/dist/esm-es5/dom-0b02c0cf.js +0 -1
  1480. package/dist/esm-es5/forIn-d55260fc.js +0 -1
  1481. package/dist/esm-es5/form-8aa0d95b.js +0 -1
  1482. package/dist/esm-es5/guid-09142681.js +0 -1
  1483. package/dist/esm-es5/index-1554a132.js +0 -1
  1484. package/dist/esm-es5/interfaces-355fccb6.js +0 -1
  1485. package/dist/esm-es5/key-ec82f942.js +0 -1
  1486. package/dist/esm-es5/locale-8436bbe1.js +0 -1
  1487. package/dist/esm-es5/math-c8e7aa13.js +0 -1
  1488. package/dist/esm-es5/number-358ca1d4.js +0 -1
  1489. package/dist/esm-es5/observers-c93d4fe5.js +0 -1
  1490. package/dist/esm-es5/popper-ac27099f.js +0 -1
  1491. package/dist/esm-es5/resources-037b842c.js +0 -1
  1492. package/dist/esm-es5/resources-82817f70.js +0 -1
  1493. package/dist/esm-es5/resources-a7a29b39.js +0 -1
  1494. package/dist/esm-es5/resources-c72ebfea.js +0 -1
  1495. package/dist/esm-es5/sortable.esm-2f5354d3.js +0 -7
  1496. package/dist/esm-es5/utils-60acc1d6.js +0 -1
  1497. package/dist/types/components/calcite-label/interfaces.d.ts +0 -5
@@ -1,3013 +0,0 @@
1
- /**!
2
- * Sortable 1.14.0
3
- * @author RubaXa <trash@rubaxa.org>
4
- * @author owenm <owen23355@gmail.com>
5
- * @license MIT
6
- */
7
- function ownKeys(object, enumerableOnly) {
8
- var keys = Object.keys(object);
9
-
10
- if (Object.getOwnPropertySymbols) {
11
- var symbols = Object.getOwnPropertySymbols(object);
12
-
13
- if (enumerableOnly) {
14
- symbols = symbols.filter(function (sym) {
15
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
16
- });
17
- }
18
-
19
- keys.push.apply(keys, symbols);
20
- }
21
-
22
- return keys;
23
- }
24
-
25
- function _objectSpread2(target) {
26
- for (var i = 1; i < arguments.length; i++) {
27
- var source = arguments[i] != null ? arguments[i] : {};
28
-
29
- if (i % 2) {
30
- ownKeys(Object(source), true).forEach(function (key) {
31
- _defineProperty(target, key, source[key]);
32
- });
33
- } else if (Object.getOwnPropertyDescriptors) {
34
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
35
- } else {
36
- ownKeys(Object(source)).forEach(function (key) {
37
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
38
- });
39
- }
40
- }
41
-
42
- return target;
43
- }
44
-
45
- function _typeof(obj) {
46
- "@babel/helpers - typeof";
47
-
48
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
49
- _typeof = function (obj) {
50
- return typeof obj;
51
- };
52
- } else {
53
- _typeof = function (obj) {
54
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
55
- };
56
- }
57
-
58
- return _typeof(obj);
59
- }
60
-
61
- function _defineProperty(obj, key, value) {
62
- if (key in obj) {
63
- Object.defineProperty(obj, key, {
64
- value: value,
65
- enumerable: true,
66
- configurable: true,
67
- writable: true
68
- });
69
- } else {
70
- obj[key] = value;
71
- }
72
-
73
- return obj;
74
- }
75
-
76
- function _extends() {
77
- _extends = Object.assign || function (target) {
78
- for (var i = 1; i < arguments.length; i++) {
79
- var source = arguments[i];
80
-
81
- for (var key in source) {
82
- if (Object.prototype.hasOwnProperty.call(source, key)) {
83
- target[key] = source[key];
84
- }
85
- }
86
- }
87
-
88
- return target;
89
- };
90
-
91
- return _extends.apply(this, arguments);
92
- }
93
-
94
- function _objectWithoutPropertiesLoose(source, excluded) {
95
- if (source == null) return {};
96
- var target = {};
97
- var sourceKeys = Object.keys(source);
98
- var key, i;
99
-
100
- for (i = 0; i < sourceKeys.length; i++) {
101
- key = sourceKeys[i];
102
- if (excluded.indexOf(key) >= 0) continue;
103
- target[key] = source[key];
104
- }
105
-
106
- return target;
107
- }
108
-
109
- function _objectWithoutProperties(source, excluded) {
110
- if (source == null) return {};
111
-
112
- var target = _objectWithoutPropertiesLoose(source, excluded);
113
-
114
- var key, i;
115
-
116
- if (Object.getOwnPropertySymbols) {
117
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
118
-
119
- for (i = 0; i < sourceSymbolKeys.length; i++) {
120
- key = sourceSymbolKeys[i];
121
- if (excluded.indexOf(key) >= 0) continue;
122
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
123
- target[key] = source[key];
124
- }
125
- }
126
-
127
- return target;
128
- }
129
-
130
- var version = "1.14.0";
131
-
132
- function userAgent(pattern) {
133
- if (typeof window !== 'undefined' && window.navigator) {
134
- return !! /*@__PURE__*/navigator.userAgent.match(pattern);
135
- }
136
- }
137
-
138
- var IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
139
- var Edge = userAgent(/Edge/i);
140
- var FireFox = userAgent(/firefox/i);
141
- var Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);
142
- var IOS = userAgent(/iP(ad|od|hone)/i);
143
- var ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);
144
-
145
- var captureMode = {
146
- capture: false,
147
- passive: false
148
- };
149
-
150
- function on(el, event, fn) {
151
- el.addEventListener(event, fn, !IE11OrLess && captureMode);
152
- }
153
-
154
- function off(el, event, fn) {
155
- el.removeEventListener(event, fn, !IE11OrLess && captureMode);
156
- }
157
-
158
- function matches(
159
- /**HTMLElement*/
160
- el,
161
- /**String*/
162
- selector) {
163
- if (!selector) return;
164
- selector[0] === '>' && (selector = selector.substring(1));
165
-
166
- if (el) {
167
- try {
168
- if (el.matches) {
169
- return el.matches(selector);
170
- } else if (el.msMatchesSelector) {
171
- return el.msMatchesSelector(selector);
172
- } else if (el.webkitMatchesSelector) {
173
- return el.webkitMatchesSelector(selector);
174
- }
175
- } catch (_) {
176
- return false;
177
- }
178
- }
179
-
180
- return false;
181
- }
182
-
183
- function getParentOrHost(el) {
184
- return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;
185
- }
186
-
187
- function closest(
188
- /**HTMLElement*/
189
- el,
190
- /**String*/
191
- selector,
192
- /**HTMLElement*/
193
- ctx, includeCTX) {
194
- if (el) {
195
- ctx = ctx || document;
196
-
197
- do {
198
- if (selector != null && (selector[0] === '>' ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {
199
- return el;
200
- }
201
-
202
- if (el === ctx) break;
203
- /* jshint boss:true */
204
- } while (el = getParentOrHost(el));
205
- }
206
-
207
- return null;
208
- }
209
-
210
- var R_SPACE = /\s+/g;
211
-
212
- function toggleClass(el, name, state) {
213
- if (el && name) {
214
- if (el.classList) {
215
- el.classList[state ? 'add' : 'remove'](name);
216
- } else {
217
- var className = (' ' + el.className + ' ').replace(R_SPACE, ' ').replace(' ' + name + ' ', ' ');
218
- el.className = (className + (state ? ' ' + name : '')).replace(R_SPACE, ' ');
219
- }
220
- }
221
- }
222
-
223
- function css(el, prop, val) {
224
- var style = el && el.style;
225
-
226
- if (style) {
227
- if (val === void 0) {
228
- if (document.defaultView && document.defaultView.getComputedStyle) {
229
- val = document.defaultView.getComputedStyle(el, '');
230
- } else if (el.currentStyle) {
231
- val = el.currentStyle;
232
- }
233
-
234
- return prop === void 0 ? val : val[prop];
235
- } else {
236
- if (!(prop in style) && prop.indexOf('webkit') === -1) {
237
- prop = '-webkit-' + prop;
238
- }
239
-
240
- style[prop] = val + (typeof val === 'string' ? '' : 'px');
241
- }
242
- }
243
- }
244
-
245
- function matrix(el, selfOnly) {
246
- var appliedTransforms = '';
247
-
248
- if (typeof el === 'string') {
249
- appliedTransforms = el;
250
- } else {
251
- do {
252
- var transform = css(el, 'transform');
253
-
254
- if (transform && transform !== 'none') {
255
- appliedTransforms = transform + ' ' + appliedTransforms;
256
- }
257
- /* jshint boss:true */
258
-
259
- } while (!selfOnly && (el = el.parentNode));
260
- }
261
-
262
- var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
263
- /*jshint -W056 */
264
-
265
- return matrixFn && new matrixFn(appliedTransforms);
266
- }
267
-
268
- function find(ctx, tagName, iterator) {
269
- if (ctx) {
270
- var list = ctx.getElementsByTagName(tagName),
271
- i = 0,
272
- n = list.length;
273
-
274
- if (iterator) {
275
- for (; i < n; i++) {
276
- iterator(list[i], i);
277
- }
278
- }
279
-
280
- return list;
281
- }
282
-
283
- return [];
284
- }
285
-
286
- function getWindowScrollingElement() {
287
- var scrollingElement = document.scrollingElement;
288
-
289
- if (scrollingElement) {
290
- return scrollingElement;
291
- } else {
292
- return document.documentElement;
293
- }
294
- }
295
- /**
296
- * Returns the "bounding client rect" of given element
297
- * @param {HTMLElement} el The element whose boundingClientRect is wanted
298
- * @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container
299
- * @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr
300
- * @param {[Boolean]} undoScale Whether the container's scale() should be undone
301
- * @param {[HTMLElement]} container The parent the element will be placed in
302
- * @return {Object} The boundingClientRect of el, with specified adjustments
303
- */
304
-
305
-
306
- function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {
307
- if (!el.getBoundingClientRect && el !== window) return;
308
- var elRect, top, left, bottom, right, height, width;
309
-
310
- if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {
311
- elRect = el.getBoundingClientRect();
312
- top = elRect.top;
313
- left = elRect.left;
314
- bottom = elRect.bottom;
315
- right = elRect.right;
316
- height = elRect.height;
317
- width = elRect.width;
318
- } else {
319
- top = 0;
320
- left = 0;
321
- bottom = window.innerHeight;
322
- right = window.innerWidth;
323
- height = window.innerHeight;
324
- width = window.innerWidth;
325
- }
326
-
327
- if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {
328
- // Adjust for translate()
329
- container = container || el.parentNode; // solves #1123 (see: https://stackoverflow.com/a/37953806/6088312)
330
- // Not needed on <= IE11
331
-
332
- if (!IE11OrLess) {
333
- do {
334
- if (container && container.getBoundingClientRect && (css(container, 'transform') !== 'none' || relativeToNonStaticParent && css(container, 'position') !== 'static')) {
335
- var containerRect = container.getBoundingClientRect(); // Set relative to edges of padding box of container
336
-
337
- top -= containerRect.top + parseInt(css(container, 'border-top-width'));
338
- left -= containerRect.left + parseInt(css(container, 'border-left-width'));
339
- bottom = top + elRect.height;
340
- right = left + elRect.width;
341
- break;
342
- }
343
- /* jshint boss:true */
344
-
345
- } while (container = container.parentNode);
346
- }
347
- }
348
-
349
- if (undoScale && el !== window) {
350
- // Adjust for scale()
351
- var elMatrix = matrix(container || el),
352
- scaleX = elMatrix && elMatrix.a,
353
- scaleY = elMatrix && elMatrix.d;
354
-
355
- if (elMatrix) {
356
- top /= scaleY;
357
- left /= scaleX;
358
- width /= scaleX;
359
- height /= scaleY;
360
- bottom = top + height;
361
- right = left + width;
362
- }
363
- }
364
-
365
- return {
366
- top: top,
367
- left: left,
368
- bottom: bottom,
369
- right: right,
370
- width: width,
371
- height: height
372
- };
373
- }
374
- /**
375
- * Checks if a side of an element is scrolled past a side of its parents
376
- * @param {HTMLElement} el The element who's side being scrolled out of view is in question
377
- * @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')
378
- * @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')
379
- * @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element
380
- */
381
-
382
-
383
- function isScrolledPast(el, elSide, parentSide) {
384
- var parent = getParentAutoScrollElement(el, true),
385
- elSideVal = getRect(el)[elSide];
386
- /* jshint boss:true */
387
-
388
- while (parent) {
389
- var parentSideVal = getRect(parent)[parentSide],
390
- visible = void 0;
391
-
392
- if (parentSide === 'top' || parentSide === 'left') {
393
- visible = elSideVal >= parentSideVal;
394
- } else {
395
- visible = elSideVal <= parentSideVal;
396
- }
397
-
398
- if (!visible) return parent;
399
- if (parent === getWindowScrollingElement()) break;
400
- parent = getParentAutoScrollElement(parent, false);
401
- }
402
-
403
- return false;
404
- }
405
- /**
406
- * Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)
407
- * and non-draggable elements
408
- * @param {HTMLElement} el The parent element
409
- * @param {Number} childNum The index of the child
410
- * @param {Object} options Parent Sortable's options
411
- * @return {HTMLElement} The child at index childNum, or null if not found
412
- */
413
-
414
-
415
- function getChild(el, childNum, options, includeDragEl) {
416
- var currentChild = 0,
417
- i = 0,
418
- children = el.children;
419
-
420
- while (i < children.length) {
421
- if (children[i].style.display !== 'none' && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {
422
- if (currentChild === childNum) {
423
- return children[i];
424
- }
425
-
426
- currentChild++;
427
- }
428
-
429
- i++;
430
- }
431
-
432
- return null;
433
- }
434
- /**
435
- * Gets the last child in the el, ignoring ghostEl or invisible elements (clones)
436
- * @param {HTMLElement} el Parent element
437
- * @param {selector} selector Any other elements that should be ignored
438
- * @return {HTMLElement} The last child, ignoring ghostEl
439
- */
440
-
441
-
442
- function lastChild(el, selector) {
443
- var last = el.lastElementChild;
444
-
445
- while (last && (last === Sortable.ghost || css(last, 'display') === 'none' || selector && !matches(last, selector))) {
446
- last = last.previousElementSibling;
447
- }
448
-
449
- return last || null;
450
- }
451
- /**
452
- * Returns the index of an element within its parent for a selected set of
453
- * elements
454
- * @param {HTMLElement} el
455
- * @param {selector} selector
456
- * @return {number}
457
- */
458
-
459
-
460
- function index(el, selector) {
461
- var index = 0;
462
-
463
- if (!el || !el.parentNode) {
464
- return -1;
465
- }
466
- /* jshint boss:true */
467
-
468
-
469
- while (el = el.previousElementSibling) {
470
- if (el.nodeName.toUpperCase() !== 'TEMPLATE' && el !== Sortable.clone && (!selector || matches(el, selector))) {
471
- index++;
472
- }
473
- }
474
-
475
- return index;
476
- }
477
- /**
478
- * Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.
479
- * The value is returned in real pixels.
480
- * @param {HTMLElement} el
481
- * @return {Array} Offsets in the format of [left, top]
482
- */
483
-
484
-
485
- function getRelativeScrollOffset(el) {
486
- var offsetLeft = 0,
487
- offsetTop = 0,
488
- winScroller = getWindowScrollingElement();
489
-
490
- if (el) {
491
- do {
492
- var elMatrix = matrix(el),
493
- scaleX = elMatrix.a,
494
- scaleY = elMatrix.d;
495
- offsetLeft += el.scrollLeft * scaleX;
496
- offsetTop += el.scrollTop * scaleY;
497
- } while (el !== winScroller && (el = el.parentNode));
498
- }
499
-
500
- return [offsetLeft, offsetTop];
501
- }
502
- /**
503
- * Returns the index of the object within the given array
504
- * @param {Array} arr Array that may or may not hold the object
505
- * @param {Object} obj An object that has a key-value pair unique to and identical to a key-value pair in the object you want to find
506
- * @return {Number} The index of the object in the array, or -1
507
- */
508
-
509
-
510
- function indexOfObject(arr, obj) {
511
- for (var i in arr) {
512
- if (!arr.hasOwnProperty(i)) continue;
513
-
514
- for (var key in obj) {
515
- if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);
516
- }
517
- }
518
-
519
- return -1;
520
- }
521
-
522
- function getParentAutoScrollElement(el, includeSelf) {
523
- // skip to window
524
- if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();
525
- var elem = el;
526
- var gotSelf = false;
527
-
528
- do {
529
- // we don't need to get elem css if it isn't even overflowing in the first place (performance)
530
- if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {
531
- var elemCSS = css(elem);
532
-
533
- if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == 'auto' || elemCSS.overflowX == 'scroll') || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == 'auto' || elemCSS.overflowY == 'scroll')) {
534
- if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();
535
- if (gotSelf || includeSelf) return elem;
536
- gotSelf = true;
537
- }
538
- }
539
- /* jshint boss:true */
540
-
541
- } while (elem = elem.parentNode);
542
-
543
- return getWindowScrollingElement();
544
- }
545
-
546
- function extend(dst, src) {
547
- if (dst && src) {
548
- for (var key in src) {
549
- if (src.hasOwnProperty(key)) {
550
- dst[key] = src[key];
551
- }
552
- }
553
- }
554
-
555
- return dst;
556
- }
557
-
558
- function isRectEqual(rect1, rect2) {
559
- return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);
560
- }
561
-
562
- var _throttleTimeout;
563
-
564
- function throttle(callback, ms) {
565
- return function () {
566
- if (!_throttleTimeout) {
567
- var args = arguments,
568
- _this = this;
569
-
570
- if (args.length === 1) {
571
- callback.call(_this, args[0]);
572
- } else {
573
- callback.apply(_this, args);
574
- }
575
-
576
- _throttleTimeout = setTimeout(function () {
577
- _throttleTimeout = void 0;
578
- }, ms);
579
- }
580
- };
581
- }
582
-
583
- function cancelThrottle() {
584
- clearTimeout(_throttleTimeout);
585
- _throttleTimeout = void 0;
586
- }
587
-
588
- function scrollBy(el, x, y) {
589
- el.scrollLeft += x;
590
- el.scrollTop += y;
591
- }
592
-
593
- function clone(el) {
594
- var Polymer = window.Polymer;
595
- var $ = window.jQuery || window.Zepto;
596
-
597
- if (Polymer && Polymer.dom) {
598
- return Polymer.dom(el).cloneNode(true);
599
- } else if ($) {
600
- return $(el).clone(true)[0];
601
- } else {
602
- return el.cloneNode(true);
603
- }
604
- }
605
-
606
- var expando = 'Sortable' + new Date().getTime();
607
-
608
- function AnimationStateManager() {
609
- var animationStates = [],
610
- animationCallbackId;
611
- return {
612
- captureAnimationState: function captureAnimationState() {
613
- animationStates = [];
614
- if (!this.options.animation) return;
615
- var children = [].slice.call(this.el.children);
616
- children.forEach(function (child) {
617
- if (css(child, 'display') === 'none' || child === Sortable.ghost) return;
618
- animationStates.push({
619
- target: child,
620
- rect: getRect(child)
621
- });
622
-
623
- var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect); // If animating: compensate for current animation
624
-
625
-
626
- if (child.thisAnimationDuration) {
627
- var childMatrix = matrix(child, true);
628
-
629
- if (childMatrix) {
630
- fromRect.top -= childMatrix.f;
631
- fromRect.left -= childMatrix.e;
632
- }
633
- }
634
-
635
- child.fromRect = fromRect;
636
- });
637
- },
638
- addAnimationState: function addAnimationState(state) {
639
- animationStates.push(state);
640
- },
641
- removeAnimationState: function removeAnimationState(target) {
642
- animationStates.splice(indexOfObject(animationStates, {
643
- target: target
644
- }), 1);
645
- },
646
- animateAll: function animateAll(callback) {
647
- var _this = this;
648
-
649
- if (!this.options.animation) {
650
- clearTimeout(animationCallbackId);
651
- if (typeof callback === 'function') callback();
652
- return;
653
- }
654
-
655
- var animating = false,
656
- animationTime = 0;
657
- animationStates.forEach(function (state) {
658
- var time = 0,
659
- target = state.target,
660
- fromRect = target.fromRect,
661
- toRect = getRect(target),
662
- prevFromRect = target.prevFromRect,
663
- prevToRect = target.prevToRect,
664
- animatingRect = state.rect,
665
- targetMatrix = matrix(target, true);
666
-
667
- if (targetMatrix) {
668
- // Compensate for current animation
669
- toRect.top -= targetMatrix.f;
670
- toRect.left -= targetMatrix.e;
671
- }
672
-
673
- target.toRect = toRect;
674
-
675
- if (target.thisAnimationDuration) {
676
- // Could also check if animatingRect is between fromRect and toRect
677
- if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && // Make sure animatingRect is on line between toRect & fromRect
678
- (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {
679
- // If returning to same place as started from animation and on same axis
680
- time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);
681
- }
682
- } // if fromRect != toRect: animate
683
-
684
-
685
- if (!isRectEqual(toRect, fromRect)) {
686
- target.prevFromRect = fromRect;
687
- target.prevToRect = toRect;
688
-
689
- if (!time) {
690
- time = _this.options.animation;
691
- }
692
-
693
- _this.animate(target, animatingRect, toRect, time);
694
- }
695
-
696
- if (time) {
697
- animating = true;
698
- animationTime = Math.max(animationTime, time);
699
- clearTimeout(target.animationResetTimer);
700
- target.animationResetTimer = setTimeout(function () {
701
- target.animationTime = 0;
702
- target.prevFromRect = null;
703
- target.fromRect = null;
704
- target.prevToRect = null;
705
- target.thisAnimationDuration = null;
706
- }, time);
707
- target.thisAnimationDuration = time;
708
- }
709
- });
710
- clearTimeout(animationCallbackId);
711
-
712
- if (!animating) {
713
- if (typeof callback === 'function') callback();
714
- } else {
715
- animationCallbackId = setTimeout(function () {
716
- if (typeof callback === 'function') callback();
717
- }, animationTime);
718
- }
719
-
720
- animationStates = [];
721
- },
722
- animate: function animate(target, currentRect, toRect, duration) {
723
- if (duration) {
724
- css(target, 'transition', '');
725
- css(target, 'transform', '');
726
- var elMatrix = matrix(this.el),
727
- scaleX = elMatrix && elMatrix.a,
728
- scaleY = elMatrix && elMatrix.d,
729
- translateX = (currentRect.left - toRect.left) / (scaleX || 1),
730
- translateY = (currentRect.top - toRect.top) / (scaleY || 1);
731
- target.animatingX = !!translateX;
732
- target.animatingY = !!translateY;
733
- css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)');
734
- this.forRepaintDummy = repaint(target); // repaint
735
-
736
- css(target, 'transition', 'transform ' + duration + 'ms' + (this.options.easing ? ' ' + this.options.easing : ''));
737
- css(target, 'transform', 'translate3d(0,0,0)');
738
- typeof target.animated === 'number' && clearTimeout(target.animated);
739
- target.animated = setTimeout(function () {
740
- css(target, 'transition', '');
741
- css(target, 'transform', '');
742
- target.animated = false;
743
- target.animatingX = false;
744
- target.animatingY = false;
745
- }, duration);
746
- }
747
- }
748
- };
749
- }
750
-
751
- function repaint(target) {
752
- return target.offsetWidth;
753
- }
754
-
755
- function calculateRealTime(animatingRect, fromRect, toRect, options) {
756
- return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;
757
- }
758
-
759
- var plugins = [];
760
- var defaults = {
761
- initializeByDefault: true
762
- };
763
- var PluginManager = {
764
- mount: function mount(plugin) {
765
- // Set default static properties
766
- for (var option in defaults) {
767
- if (defaults.hasOwnProperty(option) && !(option in plugin)) {
768
- plugin[option] = defaults[option];
769
- }
770
- }
771
-
772
- plugins.forEach(function (p) {
773
- if (p.pluginName === plugin.pluginName) {
774
- throw "Sortable: Cannot mount plugin ".concat(plugin.pluginName, " more than once");
775
- }
776
- });
777
- plugins.push(plugin);
778
- },
779
- pluginEvent: function pluginEvent(eventName, sortable, evt) {
780
- var _this = this;
781
-
782
- this.eventCanceled = false;
783
-
784
- evt.cancel = function () {
785
- _this.eventCanceled = true;
786
- };
787
-
788
- var eventNameGlobal = eventName + 'Global';
789
- plugins.forEach(function (plugin) {
790
- if (!sortable[plugin.pluginName]) return; // Fire global events if it exists in this sortable
791
-
792
- if (sortable[plugin.pluginName][eventNameGlobal]) {
793
- sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({
794
- sortable: sortable
795
- }, evt));
796
- } // Only fire plugin event if plugin is enabled in this sortable,
797
- // and plugin has event defined
798
-
799
-
800
- if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {
801
- sortable[plugin.pluginName][eventName](_objectSpread2({
802
- sortable: sortable
803
- }, evt));
804
- }
805
- });
806
- },
807
- initializePlugins: function initializePlugins(sortable, el, defaults, options) {
808
- plugins.forEach(function (plugin) {
809
- var pluginName = plugin.pluginName;
810
- if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;
811
- var initialized = new plugin(sortable, el, sortable.options);
812
- initialized.sortable = sortable;
813
- initialized.options = sortable.options;
814
- sortable[pluginName] = initialized; // Add default options from plugin
815
-
816
- _extends(defaults, initialized.defaults);
817
- });
818
-
819
- for (var option in sortable.options) {
820
- if (!sortable.options.hasOwnProperty(option)) continue;
821
- var modified = this.modifyOption(sortable, option, sortable.options[option]);
822
-
823
- if (typeof modified !== 'undefined') {
824
- sortable.options[option] = modified;
825
- }
826
- }
827
- },
828
- getEventProperties: function getEventProperties(name, sortable) {
829
- var eventProperties = {};
830
- plugins.forEach(function (plugin) {
831
- if (typeof plugin.eventProperties !== 'function') return;
832
-
833
- _extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));
834
- });
835
- return eventProperties;
836
- },
837
- modifyOption: function modifyOption(sortable, name, value) {
838
- var modifiedValue;
839
- plugins.forEach(function (plugin) {
840
- // Plugin must exist on the Sortable
841
- if (!sortable[plugin.pluginName]) return; // If static option listener exists for this option, call in the context of the Sortable's instance of this plugin
842
-
843
- if (plugin.optionListeners && typeof plugin.optionListeners[name] === 'function') {
844
- modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);
845
- }
846
- });
847
- return modifiedValue;
848
- }
849
- };
850
-
851
- function dispatchEvent(_ref) {
852
- var sortable = _ref.sortable,
853
- rootEl = _ref.rootEl,
854
- name = _ref.name,
855
- targetEl = _ref.targetEl,
856
- cloneEl = _ref.cloneEl,
857
- toEl = _ref.toEl,
858
- fromEl = _ref.fromEl,
859
- oldIndex = _ref.oldIndex,
860
- newIndex = _ref.newIndex,
861
- oldDraggableIndex = _ref.oldDraggableIndex,
862
- newDraggableIndex = _ref.newDraggableIndex,
863
- originalEvent = _ref.originalEvent,
864
- putSortable = _ref.putSortable,
865
- extraEventProperties = _ref.extraEventProperties;
866
- sortable = sortable || rootEl && rootEl[expando];
867
- if (!sortable) return;
868
- var evt,
869
- options = sortable.options,
870
- onName = 'on' + name.charAt(0).toUpperCase() + name.substr(1); // Support for new CustomEvent feature
871
-
872
- if (window.CustomEvent && !IE11OrLess && !Edge) {
873
- evt = new CustomEvent(name, {
874
- bubbles: true,
875
- cancelable: true
876
- });
877
- } else {
878
- evt = document.createEvent('Event');
879
- evt.initEvent(name, true, true);
880
- }
881
-
882
- evt.to = toEl || rootEl;
883
- evt.from = fromEl || rootEl;
884
- evt.item = targetEl || rootEl;
885
- evt.clone = cloneEl;
886
- evt.oldIndex = oldIndex;
887
- evt.newIndex = newIndex;
888
- evt.oldDraggableIndex = oldDraggableIndex;
889
- evt.newDraggableIndex = newDraggableIndex;
890
- evt.originalEvent = originalEvent;
891
- evt.pullMode = putSortable ? putSortable.lastPutMode : undefined;
892
-
893
- var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));
894
-
895
- for (var option in allEventProperties) {
896
- evt[option] = allEventProperties[option];
897
- }
898
-
899
- if (rootEl) {
900
- rootEl.dispatchEvent(evt);
901
- }
902
-
903
- if (options[onName]) {
904
- options[onName].call(sortable, evt);
905
- }
906
- }
907
-
908
- var _excluded = ["evt"];
909
-
910
- var pluginEvent = function pluginEvent(eventName, sortable) {
911
- var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
912
- originalEvent = _ref.evt,
913
- data = _objectWithoutProperties(_ref, _excluded);
914
-
915
- PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({
916
- dragEl: dragEl,
917
- parentEl: parentEl,
918
- ghostEl: ghostEl,
919
- rootEl: rootEl,
920
- nextEl: nextEl,
921
- lastDownEl: lastDownEl,
922
- cloneEl: cloneEl,
923
- cloneHidden: cloneHidden,
924
- dragStarted: moved,
925
- putSortable: putSortable,
926
- activeSortable: Sortable.active,
927
- originalEvent: originalEvent,
928
- oldIndex: oldIndex,
929
- oldDraggableIndex: oldDraggableIndex,
930
- newIndex: newIndex,
931
- newDraggableIndex: newDraggableIndex,
932
- hideGhostForTarget: _hideGhostForTarget,
933
- unhideGhostForTarget: _unhideGhostForTarget,
934
- cloneNowHidden: function cloneNowHidden() {
935
- cloneHidden = true;
936
- },
937
- cloneNowShown: function cloneNowShown() {
938
- cloneHidden = false;
939
- },
940
- dispatchSortableEvent: function dispatchSortableEvent(name) {
941
- _dispatchEvent({
942
- sortable: sortable,
943
- name: name,
944
- originalEvent: originalEvent
945
- });
946
- }
947
- }, data));
948
- };
949
-
950
- function _dispatchEvent(info) {
951
- dispatchEvent(_objectSpread2({
952
- putSortable: putSortable,
953
- cloneEl: cloneEl,
954
- targetEl: dragEl,
955
- rootEl: rootEl,
956
- oldIndex: oldIndex,
957
- oldDraggableIndex: oldDraggableIndex,
958
- newIndex: newIndex,
959
- newDraggableIndex: newDraggableIndex
960
- }, info));
961
- }
962
-
963
- var dragEl,
964
- parentEl,
965
- ghostEl,
966
- rootEl,
967
- nextEl,
968
- lastDownEl,
969
- cloneEl,
970
- cloneHidden,
971
- oldIndex,
972
- newIndex,
973
- oldDraggableIndex,
974
- newDraggableIndex,
975
- activeGroup,
976
- putSortable,
977
- awaitingDragStarted = false,
978
- ignoreNextClick = false,
979
- sortables = [],
980
- tapEvt,
981
- touchEvt,
982
- lastDx,
983
- lastDy,
984
- tapDistanceLeft,
985
- tapDistanceTop,
986
- moved,
987
- lastTarget,
988
- lastDirection,
989
- pastFirstInvertThresh = false,
990
- isCircumstantialInvert = false,
991
- targetMoveDistance,
992
- // For positioning ghost absolutely
993
- ghostRelativeParent,
994
- ghostRelativeParentInitialScroll = [],
995
- // (left, top)
996
- _silent = false,
997
- savedInputChecked = [];
998
- /** @const */
999
-
1000
- var documentExists = typeof document !== 'undefined',
1001
- PositionGhostAbsolutely = IOS,
1002
- CSSFloatProperty = Edge || IE11OrLess ? 'cssFloat' : 'float',
1003
- // This will not pass for IE9, because IE9 DnD only works on anchors
1004
- supportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in document.createElement('div'),
1005
- supportCssPointerEvents = function () {
1006
- if (!documentExists) return; // false when <= IE11
1007
-
1008
- if (IE11OrLess) {
1009
- return false;
1010
- }
1011
-
1012
- var el = document.createElement('x');
1013
- el.style.cssText = 'pointer-events:auto';
1014
- return el.style.pointerEvents === 'auto';
1015
- }(),
1016
- _detectDirection = function _detectDirection(el, options) {
1017
- var elCSS = css(el),
1018
- elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth),
1019
- child1 = getChild(el, 0, options),
1020
- child2 = getChild(el, 1, options),
1021
- firstChildCSS = child1 && css(child1),
1022
- secondChildCSS = child2 && css(child2),
1023
- firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width,
1024
- secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;
1025
-
1026
- if (elCSS.display === 'flex') {
1027
- return elCSS.flexDirection === 'column' || elCSS.flexDirection === 'column-reverse' ? 'vertical' : 'horizontal';
1028
- }
1029
-
1030
- if (elCSS.display === 'grid') {
1031
- return elCSS.gridTemplateColumns.split(' ').length <= 1 ? 'vertical' : 'horizontal';
1032
- }
1033
-
1034
- if (child1 && firstChildCSS["float"] && firstChildCSS["float"] !== 'none') {
1035
- var touchingSideChild2 = firstChildCSS["float"] === 'left' ? 'left' : 'right';
1036
- return child2 && (secondChildCSS.clear === 'both' || secondChildCSS.clear === touchingSideChild2) ? 'vertical' : 'horizontal';
1037
- }
1038
-
1039
- return child1 && (firstChildCSS.display === 'block' || firstChildCSS.display === 'flex' || firstChildCSS.display === 'table' || firstChildCSS.display === 'grid' || firstChildWidth >= elWidth && elCSS[CSSFloatProperty] === 'none' || child2 && elCSS[CSSFloatProperty] === 'none' && firstChildWidth + secondChildWidth > elWidth) ? 'vertical' : 'horizontal';
1040
- },
1041
- _dragElInRowColumn = function _dragElInRowColumn(dragRect, targetRect, vertical) {
1042
- var dragElS1Opp = vertical ? dragRect.left : dragRect.top,
1043
- dragElS2Opp = vertical ? dragRect.right : dragRect.bottom,
1044
- dragElOppLength = vertical ? dragRect.width : dragRect.height,
1045
- targetS1Opp = vertical ? targetRect.left : targetRect.top,
1046
- targetS2Opp = vertical ? targetRect.right : targetRect.bottom,
1047
- targetOppLength = vertical ? targetRect.width : targetRect.height;
1048
- return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
1049
- },
1050
-
1051
- /**
1052
- * Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
1053
- * @param {Number} x X position
1054
- * @param {Number} y Y position
1055
- * @return {HTMLElement} Element of the first found nearest Sortable
1056
- */
1057
- _detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
1058
- var ret;
1059
- sortables.some(function (sortable) {
1060
- var threshold = sortable[expando].options.emptyInsertThreshold;
1061
- if (!threshold || lastChild(sortable)) return;
1062
- var rect = getRect(sortable),
1063
- insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold,
1064
- insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;
1065
-
1066
- if (insideHorizontally && insideVertically) {
1067
- return ret = sortable;
1068
- }
1069
- });
1070
- return ret;
1071
- },
1072
- _prepareGroup = function _prepareGroup(options) {
1073
- function toFn(value, pull) {
1074
- return function (to, from, dragEl, evt) {
1075
- var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;
1076
-
1077
- if (value == null && (pull || sameGroup)) {
1078
- // Default pull value
1079
- // Default pull and put value if same group
1080
- return true;
1081
- } else if (value == null || value === false) {
1082
- return false;
1083
- } else if (pull && value === 'clone') {
1084
- return value;
1085
- } else if (typeof value === 'function') {
1086
- return toFn(value(to, from, dragEl, evt), pull)(to, from, dragEl, evt);
1087
- } else {
1088
- var otherGroup = (pull ? to : from).options.group.name;
1089
- return value === true || typeof value === 'string' && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;
1090
- }
1091
- };
1092
- }
1093
-
1094
- var group = {};
1095
- var originalGroup = options.group;
1096
-
1097
- if (!originalGroup || _typeof(originalGroup) != 'object') {
1098
- originalGroup = {
1099
- name: originalGroup
1100
- };
1101
- }
1102
-
1103
- group.name = originalGroup.name;
1104
- group.checkPull = toFn(originalGroup.pull, true);
1105
- group.checkPut = toFn(originalGroup.put);
1106
- group.revertClone = originalGroup.revertClone;
1107
- options.group = group;
1108
- },
1109
- _hideGhostForTarget = function _hideGhostForTarget() {
1110
- if (!supportCssPointerEvents && ghostEl) {
1111
- css(ghostEl, 'display', 'none');
1112
- }
1113
- },
1114
- _unhideGhostForTarget = function _unhideGhostForTarget() {
1115
- if (!supportCssPointerEvents && ghostEl) {
1116
- css(ghostEl, 'display', '');
1117
- }
1118
- }; // #1184 fix - Prevent click event on fallback if dragged but item not changed position
1119
-
1120
-
1121
- if (documentExists) {
1122
- document.addEventListener('click', function (evt) {
1123
- if (ignoreNextClick) {
1124
- evt.preventDefault();
1125
- evt.stopPropagation && evt.stopPropagation();
1126
- evt.stopImmediatePropagation && evt.stopImmediatePropagation();
1127
- ignoreNextClick = false;
1128
- return false;
1129
- }
1130
- }, true);
1131
- }
1132
-
1133
- var nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) {
1134
- if (dragEl) {
1135
- evt = evt.touches ? evt.touches[0] : evt;
1136
-
1137
- var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);
1138
-
1139
- if (nearest) {
1140
- // Create imitation event
1141
- var event = {};
1142
-
1143
- for (var i in evt) {
1144
- if (evt.hasOwnProperty(i)) {
1145
- event[i] = evt[i];
1146
- }
1147
- }
1148
-
1149
- event.target = event.rootEl = nearest;
1150
- event.preventDefault = void 0;
1151
- event.stopPropagation = void 0;
1152
-
1153
- nearest[expando]._onDragOver(event);
1154
- }
1155
- }
1156
- };
1157
-
1158
- var _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {
1159
- if (dragEl) {
1160
- dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
1161
- }
1162
- };
1163
- /**
1164
- * @class Sortable
1165
- * @param {HTMLElement} el
1166
- * @param {Object} [options]
1167
- */
1168
-
1169
-
1170
- function Sortable(el, options) {
1171
- if (!(el && el.nodeType && el.nodeType === 1)) {
1172
- throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(el));
1173
- }
1174
-
1175
- this.el = el; // root element
1176
-
1177
- this.options = options = _extends({}, options); // Export instance
1178
-
1179
- el[expando] = this;
1180
- var defaults = {
1181
- group: null,
1182
- sort: true,
1183
- disabled: false,
1184
- store: null,
1185
- handle: null,
1186
- draggable: /^[uo]l$/i.test(el.nodeName) ? '>li' : '>*',
1187
- swapThreshold: 1,
1188
- // percentage; 0 <= x <= 1
1189
- invertSwap: false,
1190
- // invert always
1191
- invertedSwapThreshold: null,
1192
- // will be set to same as swapThreshold if default
1193
- removeCloneOnHide: true,
1194
- direction: function direction() {
1195
- return _detectDirection(el, this.options);
1196
- },
1197
- ghostClass: 'sortable-ghost',
1198
- chosenClass: 'sortable-chosen',
1199
- dragClass: 'sortable-drag',
1200
- ignore: 'a, img',
1201
- filter: null,
1202
- preventOnFilter: true,
1203
- animation: 0,
1204
- easing: null,
1205
- setData: function setData(dataTransfer, dragEl) {
1206
- dataTransfer.setData('Text', dragEl.textContent);
1207
- },
1208
- dropBubble: false,
1209
- dragoverBubble: false,
1210
- dataIdAttr: 'data-id',
1211
- delay: 0,
1212
- delayOnTouchOnly: false,
1213
- touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
1214
- forceFallback: false,
1215
- fallbackClass: 'sortable-fallback',
1216
- fallbackOnBody: false,
1217
- fallbackTolerance: 0,
1218
- fallbackOffset: {
1219
- x: 0,
1220
- y: 0
1221
- },
1222
- supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,
1223
- emptyInsertThreshold: 5
1224
- };
1225
- PluginManager.initializePlugins(this, el, defaults); // Set default options
1226
-
1227
- for (var name in defaults) {
1228
- !(name in options) && (options[name] = defaults[name]);
1229
- }
1230
-
1231
- _prepareGroup(options); // Bind all private methods
1232
-
1233
-
1234
- for (var fn in this) {
1235
- if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {
1236
- this[fn] = this[fn].bind(this);
1237
- }
1238
- } // Setup drag mode
1239
-
1240
-
1241
- this.nativeDraggable = options.forceFallback ? false : supportDraggable;
1242
-
1243
- if (this.nativeDraggable) {
1244
- // Touch start threshold cannot be greater than the native dragstart threshold
1245
- this.options.touchStartThreshold = 1;
1246
- } // Bind events
1247
-
1248
-
1249
- if (options.supportPointer) {
1250
- on(el, 'pointerdown', this._onTapStart);
1251
- } else {
1252
- on(el, 'mousedown', this._onTapStart);
1253
- on(el, 'touchstart', this._onTapStart);
1254
- }
1255
-
1256
- if (this.nativeDraggable) {
1257
- on(el, 'dragover', this);
1258
- on(el, 'dragenter', this);
1259
- }
1260
-
1261
- sortables.push(this.el); // Restore sorting
1262
-
1263
- options.store && options.store.get && this.sort(options.store.get(this) || []); // Add animation state manager
1264
-
1265
- _extends(this, AnimationStateManager());
1266
- }
1267
-
1268
- Sortable.prototype =
1269
- /** @lends Sortable.prototype */
1270
- {
1271
- constructor: Sortable,
1272
- _isOutsideThisEl: function _isOutsideThisEl(target) {
1273
- if (!this.el.contains(target) && target !== this.el) {
1274
- lastTarget = null;
1275
- }
1276
- },
1277
- _getDirection: function _getDirection(evt, target) {
1278
- return typeof this.options.direction === 'function' ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;
1279
- },
1280
- _onTapStart: function _onTapStart(
1281
- /** Event|TouchEvent */
1282
- evt) {
1283
- if (!evt.cancelable) return;
1284
-
1285
- var _this = this,
1286
- el = this.el,
1287
- options = this.options,
1288
- preventOnFilter = options.preventOnFilter,
1289
- type = evt.type,
1290
- touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === 'touch' && evt,
1291
- target = (touch || evt).target,
1292
- originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target,
1293
- filter = options.filter;
1294
-
1295
- _saveInputCheckedState(el); // Don't trigger start event when an element is been dragged, otherwise the evt.oldindex always wrong when set option.group.
1296
-
1297
-
1298
- if (dragEl) {
1299
- return;
1300
- }
1301
-
1302
- if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {
1303
- return; // only left button and enabled
1304
- } // cancel dnd if original target is content editable
1305
-
1306
-
1307
- if (originalTarget.isContentEditable) {
1308
- return;
1309
- } // Safari ignores further event handling after mousedown
1310
-
1311
-
1312
- if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === 'SELECT') {
1313
- return;
1314
- }
1315
-
1316
- target = closest(target, options.draggable, el, false);
1317
-
1318
- if (target && target.animated) {
1319
- return;
1320
- }
1321
-
1322
- if (lastDownEl === target) {
1323
- // Ignoring duplicate `down`
1324
- return;
1325
- } // Get the index of the dragged element within its parent
1326
-
1327
-
1328
- oldIndex = index(target);
1329
- oldDraggableIndex = index(target, options.draggable); // Check filter
1330
-
1331
- if (typeof filter === 'function') {
1332
- if (filter.call(this, evt, target, this)) {
1333
- _dispatchEvent({
1334
- sortable: _this,
1335
- rootEl: originalTarget,
1336
- name: 'filter',
1337
- targetEl: target,
1338
- toEl: el,
1339
- fromEl: el
1340
- });
1341
-
1342
- pluginEvent('filter', _this, {
1343
- evt: evt
1344
- });
1345
- preventOnFilter && evt.cancelable && evt.preventDefault();
1346
- return; // cancel dnd
1347
- }
1348
- } else if (filter) {
1349
- filter = filter.split(',').some(function (criteria) {
1350
- criteria = closest(originalTarget, criteria.trim(), el, false);
1351
-
1352
- if (criteria) {
1353
- _dispatchEvent({
1354
- sortable: _this,
1355
- rootEl: criteria,
1356
- name: 'filter',
1357
- targetEl: target,
1358
- fromEl: el,
1359
- toEl: el
1360
- });
1361
-
1362
- pluginEvent('filter', _this, {
1363
- evt: evt
1364
- });
1365
- return true;
1366
- }
1367
- });
1368
-
1369
- if (filter) {
1370
- preventOnFilter && evt.cancelable && evt.preventDefault();
1371
- return; // cancel dnd
1372
- }
1373
- }
1374
-
1375
- if (options.handle && !closest(originalTarget, options.handle, el, false)) {
1376
- return;
1377
- } // Prepare `dragstart`
1378
-
1379
-
1380
- this._prepareDragStart(evt, touch, target);
1381
- },
1382
- _prepareDragStart: function _prepareDragStart(
1383
- /** Event */
1384
- evt,
1385
- /** Touch */
1386
- touch,
1387
- /** HTMLElement */
1388
- target) {
1389
- var _this = this,
1390
- el = _this.el,
1391
- options = _this.options,
1392
- ownerDocument = el.ownerDocument,
1393
- dragStartFn;
1394
-
1395
- if (target && !dragEl && target.parentNode === el) {
1396
- var dragRect = getRect(target);
1397
- rootEl = el;
1398
- dragEl = target;
1399
- parentEl = dragEl.parentNode;
1400
- nextEl = dragEl.nextSibling;
1401
- lastDownEl = target;
1402
- activeGroup = options.group;
1403
- Sortable.dragged = dragEl;
1404
- tapEvt = {
1405
- target: dragEl,
1406
- clientX: (touch || evt).clientX,
1407
- clientY: (touch || evt).clientY
1408
- };
1409
- tapDistanceLeft = tapEvt.clientX - dragRect.left;
1410
- tapDistanceTop = tapEvt.clientY - dragRect.top;
1411
- this._lastX = (touch || evt).clientX;
1412
- this._lastY = (touch || evt).clientY;
1413
- dragEl.style['will-change'] = 'all';
1414
-
1415
- dragStartFn = function dragStartFn() {
1416
- pluginEvent('delayEnded', _this, {
1417
- evt: evt
1418
- });
1419
-
1420
- if (Sortable.eventCanceled) {
1421
- _this._onDrop();
1422
-
1423
- return;
1424
- } // Delayed drag has been triggered
1425
- // we can re-enable the events: touchmove/mousemove
1426
-
1427
-
1428
- _this._disableDelayedDragEvents();
1429
-
1430
- if (!FireFox && _this.nativeDraggable) {
1431
- dragEl.draggable = true;
1432
- } // Bind the events: dragstart/dragend
1433
-
1434
-
1435
- _this._triggerDragStart(evt, touch); // Drag start event
1436
-
1437
-
1438
- _dispatchEvent({
1439
- sortable: _this,
1440
- name: 'choose',
1441
- originalEvent: evt
1442
- }); // Chosen item
1443
-
1444
-
1445
- toggleClass(dragEl, options.chosenClass, true);
1446
- }; // Disable "draggable"
1447
-
1448
-
1449
- options.ignore.split(',').forEach(function (criteria) {
1450
- find(dragEl, criteria.trim(), _disableDraggable);
1451
- });
1452
- on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent);
1453
- on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent);
1454
- on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent);
1455
- on(ownerDocument, 'mouseup', _this._onDrop);
1456
- on(ownerDocument, 'touchend', _this._onDrop);
1457
- on(ownerDocument, 'touchcancel', _this._onDrop); // Make dragEl draggable (must be before delay for FireFox)
1458
-
1459
- if (FireFox && this.nativeDraggable) {
1460
- this.options.touchStartThreshold = 4;
1461
- dragEl.draggable = true;
1462
- }
1463
-
1464
- pluginEvent('delayStart', this, {
1465
- evt: evt
1466
- }); // Delay is impossible for native DnD in Edge or IE
1467
-
1468
- if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {
1469
- if (Sortable.eventCanceled) {
1470
- this._onDrop();
1471
-
1472
- return;
1473
- } // If the user moves the pointer or let go the click or touch
1474
- // before the delay has been reached:
1475
- // disable the delayed drag
1476
-
1477
-
1478
- on(ownerDocument, 'mouseup', _this._disableDelayedDrag);
1479
- on(ownerDocument, 'touchend', _this._disableDelayedDrag);
1480
- on(ownerDocument, 'touchcancel', _this._disableDelayedDrag);
1481
- on(ownerDocument, 'mousemove', _this._delayedDragTouchMoveHandler);
1482
- on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler);
1483
- options.supportPointer && on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler);
1484
- _this._dragStartTimer = setTimeout(dragStartFn, options.delay);
1485
- } else {
1486
- dragStartFn();
1487
- }
1488
- }
1489
- },
1490
- _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(
1491
- /** TouchEvent|PointerEvent **/
1492
- e) {
1493
- var touch = e.touches ? e.touches[0] : e;
1494
-
1495
- if (Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1))) {
1496
- this._disableDelayedDrag();
1497
- }
1498
- },
1499
- _disableDelayedDrag: function _disableDelayedDrag() {
1500
- dragEl && _disableDraggable(dragEl);
1501
- clearTimeout(this._dragStartTimer);
1502
-
1503
- this._disableDelayedDragEvents();
1504
- },
1505
- _disableDelayedDragEvents: function _disableDelayedDragEvents() {
1506
- var ownerDocument = this.el.ownerDocument;
1507
- off(ownerDocument, 'mouseup', this._disableDelayedDrag);
1508
- off(ownerDocument, 'touchend', this._disableDelayedDrag);
1509
- off(ownerDocument, 'touchcancel', this._disableDelayedDrag);
1510
- off(ownerDocument, 'mousemove', this._delayedDragTouchMoveHandler);
1511
- off(ownerDocument, 'touchmove', this._delayedDragTouchMoveHandler);
1512
- off(ownerDocument, 'pointermove', this._delayedDragTouchMoveHandler);
1513
- },
1514
- _triggerDragStart: function _triggerDragStart(
1515
- /** Event */
1516
- evt,
1517
- /** Touch */
1518
- touch) {
1519
- touch = touch || evt.pointerType == 'touch' && evt;
1520
-
1521
- if (!this.nativeDraggable || touch) {
1522
- if (this.options.supportPointer) {
1523
- on(document, 'pointermove', this._onTouchMove);
1524
- } else if (touch) {
1525
- on(document, 'touchmove', this._onTouchMove);
1526
- } else {
1527
- on(document, 'mousemove', this._onTouchMove);
1528
- }
1529
- } else {
1530
- on(dragEl, 'dragend', this);
1531
- on(rootEl, 'dragstart', this._onDragStart);
1532
- }
1533
-
1534
- try {
1535
- if (document.selection) {
1536
- // Timeout neccessary for IE9
1537
- _nextTick(function () {
1538
- document.selection.empty();
1539
- });
1540
- } else {
1541
- window.getSelection().removeAllRanges();
1542
- }
1543
- } catch (err) {}
1544
- },
1545
- _dragStarted: function _dragStarted(fallback, evt) {
1546
-
1547
- awaitingDragStarted = false;
1548
-
1549
- if (rootEl && dragEl) {
1550
- pluginEvent('dragStarted', this, {
1551
- evt: evt
1552
- });
1553
-
1554
- if (this.nativeDraggable) {
1555
- on(document, 'dragover', _checkOutsideTargetEl);
1556
- }
1557
-
1558
- var options = this.options; // Apply effect
1559
-
1560
- !fallback && toggleClass(dragEl, options.dragClass, false);
1561
- toggleClass(dragEl, options.ghostClass, true);
1562
- Sortable.active = this;
1563
- fallback && this._appendGhost(); // Drag start event
1564
-
1565
- _dispatchEvent({
1566
- sortable: this,
1567
- name: 'start',
1568
- originalEvent: evt
1569
- });
1570
- } else {
1571
- this._nulling();
1572
- }
1573
- },
1574
- _emulateDragOver: function _emulateDragOver() {
1575
- if (touchEvt) {
1576
- this._lastX = touchEvt.clientX;
1577
- this._lastY = touchEvt.clientY;
1578
-
1579
- _hideGhostForTarget();
1580
-
1581
- var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
1582
- var parent = target;
1583
-
1584
- while (target && target.shadowRoot) {
1585
- target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
1586
- if (target === parent) break;
1587
- parent = target;
1588
- }
1589
-
1590
- dragEl.parentNode[expando]._isOutsideThisEl(target);
1591
-
1592
- if (parent) {
1593
- do {
1594
- if (parent[expando]) {
1595
- var inserted = void 0;
1596
- inserted = parent[expando]._onDragOver({
1597
- clientX: touchEvt.clientX,
1598
- clientY: touchEvt.clientY,
1599
- target: target,
1600
- rootEl: parent
1601
- });
1602
-
1603
- if (inserted && !this.options.dragoverBubble) {
1604
- break;
1605
- }
1606
- }
1607
-
1608
- target = parent; // store last element
1609
- }
1610
- /* jshint boss:true */
1611
- while (parent = parent.parentNode);
1612
- }
1613
-
1614
- _unhideGhostForTarget();
1615
- }
1616
- },
1617
- _onTouchMove: function _onTouchMove(
1618
- /**TouchEvent*/
1619
- evt) {
1620
- if (tapEvt) {
1621
- var options = this.options,
1622
- fallbackTolerance = options.fallbackTolerance,
1623
- fallbackOffset = options.fallbackOffset,
1624
- touch = evt.touches ? evt.touches[0] : evt,
1625
- ghostMatrix = ghostEl && matrix(ghostEl, true),
1626
- scaleX = ghostEl && ghostMatrix && ghostMatrix.a,
1627
- scaleY = ghostEl && ghostMatrix && ghostMatrix.d,
1628
- relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent),
1629
- dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1),
1630
- dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1); // only set the status to dragging, when we are actually dragging
1631
-
1632
- if (!Sortable.active && !awaitingDragStarted) {
1633
- if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {
1634
- return;
1635
- }
1636
-
1637
- this._onDragStart(evt, true);
1638
- }
1639
-
1640
- if (ghostEl) {
1641
- if (ghostMatrix) {
1642
- ghostMatrix.e += dx - (lastDx || 0);
1643
- ghostMatrix.f += dy - (lastDy || 0);
1644
- } else {
1645
- ghostMatrix = {
1646
- a: 1,
1647
- b: 0,
1648
- c: 0,
1649
- d: 1,
1650
- e: dx,
1651
- f: dy
1652
- };
1653
- }
1654
-
1655
- var cssMatrix = "matrix(".concat(ghostMatrix.a, ",").concat(ghostMatrix.b, ",").concat(ghostMatrix.c, ",").concat(ghostMatrix.d, ",").concat(ghostMatrix.e, ",").concat(ghostMatrix.f, ")");
1656
- css(ghostEl, 'webkitTransform', cssMatrix);
1657
- css(ghostEl, 'mozTransform', cssMatrix);
1658
- css(ghostEl, 'msTransform', cssMatrix);
1659
- css(ghostEl, 'transform', cssMatrix);
1660
- lastDx = dx;
1661
- lastDy = dy;
1662
- touchEvt = touch;
1663
- }
1664
-
1665
- evt.cancelable && evt.preventDefault();
1666
- }
1667
- },
1668
- _appendGhost: function _appendGhost() {
1669
- // Bug if using scale(): https://stackoverflow.com/questions/2637058
1670
- // Not being adjusted for
1671
- if (!ghostEl) {
1672
- var container = this.options.fallbackOnBody ? document.body : rootEl,
1673
- rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container),
1674
- options = this.options; // Position absolutely
1675
-
1676
- if (PositionGhostAbsolutely) {
1677
- // Get relatively positioned parent
1678
- ghostRelativeParent = container;
1679
-
1680
- while (css(ghostRelativeParent, 'position') === 'static' && css(ghostRelativeParent, 'transform') === 'none' && ghostRelativeParent !== document) {
1681
- ghostRelativeParent = ghostRelativeParent.parentNode;
1682
- }
1683
-
1684
- if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {
1685
- if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();
1686
- rect.top += ghostRelativeParent.scrollTop;
1687
- rect.left += ghostRelativeParent.scrollLeft;
1688
- } else {
1689
- ghostRelativeParent = getWindowScrollingElement();
1690
- }
1691
-
1692
- ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);
1693
- }
1694
-
1695
- ghostEl = dragEl.cloneNode(true);
1696
- toggleClass(ghostEl, options.ghostClass, false);
1697
- toggleClass(ghostEl, options.fallbackClass, true);
1698
- toggleClass(ghostEl, options.dragClass, true);
1699
- css(ghostEl, 'transition', '');
1700
- css(ghostEl, 'transform', '');
1701
- css(ghostEl, 'box-sizing', 'border-box');
1702
- css(ghostEl, 'margin', 0);
1703
- css(ghostEl, 'top', rect.top);
1704
- css(ghostEl, 'left', rect.left);
1705
- css(ghostEl, 'width', rect.width);
1706
- css(ghostEl, 'height', rect.height);
1707
- css(ghostEl, 'opacity', '0.8');
1708
- css(ghostEl, 'position', PositionGhostAbsolutely ? 'absolute' : 'fixed');
1709
- css(ghostEl, 'zIndex', '100000');
1710
- css(ghostEl, 'pointerEvents', 'none');
1711
- Sortable.ghost = ghostEl;
1712
- container.appendChild(ghostEl); // Set transform-origin
1713
-
1714
- css(ghostEl, 'transform-origin', tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + '% ' + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + '%');
1715
- }
1716
- },
1717
- _onDragStart: function _onDragStart(
1718
- /**Event*/
1719
- evt,
1720
- /**boolean*/
1721
- fallback) {
1722
- var _this = this;
1723
-
1724
- var dataTransfer = evt.dataTransfer;
1725
- var options = _this.options;
1726
- pluginEvent('dragStart', this, {
1727
- evt: evt
1728
- });
1729
-
1730
- if (Sortable.eventCanceled) {
1731
- this._onDrop();
1732
-
1733
- return;
1734
- }
1735
-
1736
- pluginEvent('setupClone', this);
1737
-
1738
- if (!Sortable.eventCanceled) {
1739
- cloneEl = clone(dragEl);
1740
- cloneEl.draggable = false;
1741
- cloneEl.style['will-change'] = '';
1742
-
1743
- this._hideClone();
1744
-
1745
- toggleClass(cloneEl, this.options.chosenClass, false);
1746
- Sortable.clone = cloneEl;
1747
- } // #1143: IFrame support workaround
1748
-
1749
-
1750
- _this.cloneId = _nextTick(function () {
1751
- pluginEvent('clone', _this);
1752
- if (Sortable.eventCanceled) return;
1753
-
1754
- if (!_this.options.removeCloneOnHide) {
1755
- rootEl.insertBefore(cloneEl, dragEl);
1756
- }
1757
-
1758
- _this._hideClone();
1759
-
1760
- _dispatchEvent({
1761
- sortable: _this,
1762
- name: 'clone'
1763
- });
1764
- });
1765
- !fallback && toggleClass(dragEl, options.dragClass, true); // Set proper drop events
1766
-
1767
- if (fallback) {
1768
- ignoreNextClick = true;
1769
- _this._loopId = setInterval(_this._emulateDragOver, 50);
1770
- } else {
1771
- // Undo what was set in _prepareDragStart before drag started
1772
- off(document, 'mouseup', _this._onDrop);
1773
- off(document, 'touchend', _this._onDrop);
1774
- off(document, 'touchcancel', _this._onDrop);
1775
-
1776
- if (dataTransfer) {
1777
- dataTransfer.effectAllowed = 'move';
1778
- options.setData && options.setData.call(_this, dataTransfer, dragEl);
1779
- }
1780
-
1781
- on(document, 'drop', _this); // #1276 fix:
1782
-
1783
- css(dragEl, 'transform', 'translateZ(0)');
1784
- }
1785
-
1786
- awaitingDragStarted = true;
1787
- _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
1788
- on(document, 'selectstart', _this);
1789
- moved = true;
1790
-
1791
- if (Safari) {
1792
- css(document.body, 'user-select', 'none');
1793
- }
1794
- },
1795
- // Returns true - if no further action is needed (either inserted or another condition)
1796
- _onDragOver: function _onDragOver(
1797
- /**Event*/
1798
- evt) {
1799
- var el = this.el,
1800
- target = evt.target,
1801
- dragRect,
1802
- targetRect,
1803
- revert,
1804
- options = this.options,
1805
- group = options.group,
1806
- activeSortable = Sortable.active,
1807
- isOwner = activeGroup === group,
1808
- canSort = options.sort,
1809
- fromSortable = putSortable || activeSortable,
1810
- vertical,
1811
- _this = this,
1812
- completedFired = false;
1813
-
1814
- if (_silent) return;
1815
-
1816
- function dragOverEvent(name, extra) {
1817
- pluginEvent(name, _this, _objectSpread2({
1818
- evt: evt,
1819
- isOwner: isOwner,
1820
- axis: vertical ? 'vertical' : 'horizontal',
1821
- revert: revert,
1822
- dragRect: dragRect,
1823
- targetRect: targetRect,
1824
- canSort: canSort,
1825
- fromSortable: fromSortable,
1826
- target: target,
1827
- completed: completed,
1828
- onMove: function onMove(target, after) {
1829
- return _onMove(rootEl, el, dragEl, dragRect, target, getRect(target), evt, after);
1830
- },
1831
- changed: changed
1832
- }, extra));
1833
- } // Capture animation state
1834
-
1835
-
1836
- function capture() {
1837
- dragOverEvent('dragOverAnimationCapture');
1838
-
1839
- _this.captureAnimationState();
1840
-
1841
- if (_this !== fromSortable) {
1842
- fromSortable.captureAnimationState();
1843
- }
1844
- } // Return invocation when dragEl is inserted (or completed)
1845
-
1846
-
1847
- function completed(insertion) {
1848
- dragOverEvent('dragOverCompleted', {
1849
- insertion: insertion
1850
- });
1851
-
1852
- if (insertion) {
1853
- // Clones must be hidden before folding animation to capture dragRectAbsolute properly
1854
- if (isOwner) {
1855
- activeSortable._hideClone();
1856
- } else {
1857
- activeSortable._showClone(_this);
1858
- }
1859
-
1860
- if (_this !== fromSortable) {
1861
- // Set ghost class to new sortable's ghost class
1862
- toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);
1863
- toggleClass(dragEl, options.ghostClass, true);
1864
- }
1865
-
1866
- if (putSortable !== _this && _this !== Sortable.active) {
1867
- putSortable = _this;
1868
- } else if (_this === Sortable.active && putSortable) {
1869
- putSortable = null;
1870
- } // Animation
1871
-
1872
-
1873
- if (fromSortable === _this) {
1874
- _this._ignoreWhileAnimating = target;
1875
- }
1876
-
1877
- _this.animateAll(function () {
1878
- dragOverEvent('dragOverAnimationComplete');
1879
- _this._ignoreWhileAnimating = null;
1880
- });
1881
-
1882
- if (_this !== fromSortable) {
1883
- fromSortable.animateAll();
1884
- fromSortable._ignoreWhileAnimating = null;
1885
- }
1886
- } // Null lastTarget if it is not inside a previously swapped element
1887
-
1888
-
1889
- if (target === dragEl && !dragEl.animated || target === el && !target.animated) {
1890
- lastTarget = null;
1891
- } // no bubbling and not fallback
1892
-
1893
-
1894
- if (!options.dragoverBubble && !evt.rootEl && target !== document) {
1895
- dragEl.parentNode[expando]._isOutsideThisEl(evt.target); // Do not detect for empty insert if already inserted
1896
-
1897
-
1898
- !insertion && nearestEmptyInsertDetectEvent(evt);
1899
- }
1900
-
1901
- !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();
1902
- return completedFired = true;
1903
- } // Call when dragEl has been inserted
1904
-
1905
-
1906
- function changed() {
1907
- newIndex = index(dragEl);
1908
- newDraggableIndex = index(dragEl, options.draggable);
1909
-
1910
- _dispatchEvent({
1911
- sortable: _this,
1912
- name: 'change',
1913
- toEl: el,
1914
- newIndex: newIndex,
1915
- newDraggableIndex: newDraggableIndex,
1916
- originalEvent: evt
1917
- });
1918
- }
1919
-
1920
- if (evt.preventDefault !== void 0) {
1921
- evt.cancelable && evt.preventDefault();
1922
- }
1923
-
1924
- target = closest(target, options.draggable, el, true);
1925
- dragOverEvent('dragOver');
1926
- if (Sortable.eventCanceled) return completedFired;
1927
-
1928
- if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {
1929
- return completed(false);
1930
- }
1931
-
1932
- ignoreNextClick = false;
1933
-
1934
- if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) // Reverting item into the original list
1935
- : putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {
1936
- vertical = this._getDirection(evt, target) === 'vertical';
1937
- dragRect = getRect(dragEl);
1938
- dragOverEvent('dragOverValid');
1939
- if (Sortable.eventCanceled) return completedFired;
1940
-
1941
- if (revert) {
1942
- parentEl = rootEl; // actualization
1943
-
1944
- capture();
1945
-
1946
- this._hideClone();
1947
-
1948
- dragOverEvent('revert');
1949
-
1950
- if (!Sortable.eventCanceled) {
1951
- if (nextEl) {
1952
- rootEl.insertBefore(dragEl, nextEl);
1953
- } else {
1954
- rootEl.appendChild(dragEl);
1955
- }
1956
- }
1957
-
1958
- return completed(true);
1959
- }
1960
-
1961
- var elLastChild = lastChild(el, options.draggable);
1962
-
1963
- if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {
1964
- // Insert to end of list
1965
- // If already at end of list: Do not insert
1966
- if (elLastChild === dragEl) {
1967
- return completed(false);
1968
- } // if there is a last element, it is the target
1969
-
1970
-
1971
- if (elLastChild && el === evt.target) {
1972
- target = elLastChild;
1973
- }
1974
-
1975
- if (target) {
1976
- targetRect = getRect(target);
1977
- }
1978
-
1979
- if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
1980
- capture();
1981
- el.appendChild(dragEl);
1982
- parentEl = el; // actualization
1983
-
1984
- changed();
1985
- return completed(true);
1986
- }
1987
- } else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {
1988
- // Insert to start of list
1989
- var firstChild = getChild(el, 0, options, true);
1990
-
1991
- if (firstChild === dragEl) {
1992
- return completed(false);
1993
- }
1994
-
1995
- target = firstChild;
1996
- targetRect = getRect(target);
1997
-
1998
- if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {
1999
- capture();
2000
- el.insertBefore(dragEl, firstChild);
2001
- parentEl = el; // actualization
2002
-
2003
- changed();
2004
- return completed(true);
2005
- }
2006
- } else if (target.parentNode === el) {
2007
- targetRect = getRect(target);
2008
- var direction = 0,
2009
- targetBeforeFirstSwap,
2010
- differentLevel = dragEl.parentNode !== el,
2011
- differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical),
2012
- side1 = vertical ? 'top' : 'left',
2013
- scrolledPastTop = isScrolledPast(target, 'top', 'top') || isScrolledPast(dragEl, 'top', 'top'),
2014
- scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;
2015
-
2016
- if (lastTarget !== target) {
2017
- targetBeforeFirstSwap = targetRect[side1];
2018
- pastFirstInvertThresh = false;
2019
- isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;
2020
- }
2021
-
2022
- direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);
2023
- var sibling;
2024
-
2025
- if (direction !== 0) {
2026
- // Check if target is beside dragEl in respective direction (ignoring hidden elements)
2027
- var dragIndex = index(dragEl);
2028
-
2029
- do {
2030
- dragIndex -= direction;
2031
- sibling = parentEl.children[dragIndex];
2032
- } while (sibling && (css(sibling, 'display') === 'none' || sibling === ghostEl));
2033
- } // If dragEl is already beside target: Do not insert
2034
-
2035
-
2036
- if (direction === 0 || sibling === target) {
2037
- return completed(false);
2038
- }
2039
-
2040
- lastTarget = target;
2041
- lastDirection = direction;
2042
- var nextSibling = target.nextElementSibling,
2043
- after = false;
2044
- after = direction === 1;
2045
-
2046
- var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);
2047
-
2048
- if (moveVector !== false) {
2049
- if (moveVector === 1 || moveVector === -1) {
2050
- after = moveVector === 1;
2051
- }
2052
-
2053
- _silent = true;
2054
- setTimeout(_unsilent, 30);
2055
- capture();
2056
-
2057
- if (after && !nextSibling) {
2058
- el.appendChild(dragEl);
2059
- } else {
2060
- target.parentNode.insertBefore(dragEl, after ? nextSibling : target);
2061
- } // Undo chrome's scroll adjustment (has no effect on other browsers)
2062
-
2063
-
2064
- if (scrolledPastTop) {
2065
- scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);
2066
- }
2067
-
2068
- parentEl = dragEl.parentNode; // actualization
2069
- // must be done before animation
2070
-
2071
- if (targetBeforeFirstSwap !== undefined && !isCircumstantialInvert) {
2072
- targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);
2073
- }
2074
-
2075
- changed();
2076
- return completed(true);
2077
- }
2078
- }
2079
-
2080
- if (el.contains(dragEl)) {
2081
- return completed(false);
2082
- }
2083
- }
2084
-
2085
- return false;
2086
- },
2087
- _ignoreWhileAnimating: null,
2088
- _offMoveEvents: function _offMoveEvents() {
2089
- off(document, 'mousemove', this._onTouchMove);
2090
- off(document, 'touchmove', this._onTouchMove);
2091
- off(document, 'pointermove', this._onTouchMove);
2092
- off(document, 'dragover', nearestEmptyInsertDetectEvent);
2093
- off(document, 'mousemove', nearestEmptyInsertDetectEvent);
2094
- off(document, 'touchmove', nearestEmptyInsertDetectEvent);
2095
- },
2096
- _offUpEvents: function _offUpEvents() {
2097
- var ownerDocument = this.el.ownerDocument;
2098
- off(ownerDocument, 'mouseup', this._onDrop);
2099
- off(ownerDocument, 'touchend', this._onDrop);
2100
- off(ownerDocument, 'pointerup', this._onDrop);
2101
- off(ownerDocument, 'touchcancel', this._onDrop);
2102
- off(document, 'selectstart', this);
2103
- },
2104
- _onDrop: function _onDrop(
2105
- /**Event*/
2106
- evt) {
2107
- var el = this.el,
2108
- options = this.options; // Get the index of the dragged element within its parent
2109
-
2110
- newIndex = index(dragEl);
2111
- newDraggableIndex = index(dragEl, options.draggable);
2112
- pluginEvent('drop', this, {
2113
- evt: evt
2114
- });
2115
- parentEl = dragEl && dragEl.parentNode; // Get again after plugin event
2116
-
2117
- newIndex = index(dragEl);
2118
- newDraggableIndex = index(dragEl, options.draggable);
2119
-
2120
- if (Sortable.eventCanceled) {
2121
- this._nulling();
2122
-
2123
- return;
2124
- }
2125
-
2126
- awaitingDragStarted = false;
2127
- isCircumstantialInvert = false;
2128
- pastFirstInvertThresh = false;
2129
- clearInterval(this._loopId);
2130
- clearTimeout(this._dragStartTimer);
2131
-
2132
- _cancelNextTick(this.cloneId);
2133
-
2134
- _cancelNextTick(this._dragStartId); // Unbind events
2135
-
2136
-
2137
- if (this.nativeDraggable) {
2138
- off(document, 'drop', this);
2139
- off(el, 'dragstart', this._onDragStart);
2140
- }
2141
-
2142
- this._offMoveEvents();
2143
-
2144
- this._offUpEvents();
2145
-
2146
- if (Safari) {
2147
- css(document.body, 'user-select', '');
2148
- }
2149
-
2150
- css(dragEl, 'transform', '');
2151
-
2152
- if (evt) {
2153
- if (moved) {
2154
- evt.cancelable && evt.preventDefault();
2155
- !options.dropBubble && evt.stopPropagation();
2156
- }
2157
-
2158
- ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);
2159
-
2160
- if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {
2161
- // Remove clone(s)
2162
- cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);
2163
- }
2164
-
2165
- if (dragEl) {
2166
- if (this.nativeDraggable) {
2167
- off(dragEl, 'dragend', this);
2168
- }
2169
-
2170
- _disableDraggable(dragEl);
2171
-
2172
- dragEl.style['will-change'] = ''; // Remove classes
2173
- // ghostClass is added in dragStarted
2174
-
2175
- if (moved && !awaitingDragStarted) {
2176
- toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);
2177
- }
2178
-
2179
- toggleClass(dragEl, this.options.chosenClass, false); // Drag stop event
2180
-
2181
- _dispatchEvent({
2182
- sortable: this,
2183
- name: 'unchoose',
2184
- toEl: parentEl,
2185
- newIndex: null,
2186
- newDraggableIndex: null,
2187
- originalEvent: evt
2188
- });
2189
-
2190
- if (rootEl !== parentEl) {
2191
- if (newIndex >= 0) {
2192
- // Add event
2193
- _dispatchEvent({
2194
- rootEl: parentEl,
2195
- name: 'add',
2196
- toEl: parentEl,
2197
- fromEl: rootEl,
2198
- originalEvent: evt
2199
- }); // Remove event
2200
-
2201
-
2202
- _dispatchEvent({
2203
- sortable: this,
2204
- name: 'remove',
2205
- toEl: parentEl,
2206
- originalEvent: evt
2207
- }); // drag from one list and drop into another
2208
-
2209
-
2210
- _dispatchEvent({
2211
- rootEl: parentEl,
2212
- name: 'sort',
2213
- toEl: parentEl,
2214
- fromEl: rootEl,
2215
- originalEvent: evt
2216
- });
2217
-
2218
- _dispatchEvent({
2219
- sortable: this,
2220
- name: 'sort',
2221
- toEl: parentEl,
2222
- originalEvent: evt
2223
- });
2224
- }
2225
-
2226
- putSortable && putSortable.save();
2227
- } else {
2228
- if (newIndex !== oldIndex) {
2229
- if (newIndex >= 0) {
2230
- // drag & drop within the same list
2231
- _dispatchEvent({
2232
- sortable: this,
2233
- name: 'update',
2234
- toEl: parentEl,
2235
- originalEvent: evt
2236
- });
2237
-
2238
- _dispatchEvent({
2239
- sortable: this,
2240
- name: 'sort',
2241
- toEl: parentEl,
2242
- originalEvent: evt
2243
- });
2244
- }
2245
- }
2246
- }
2247
-
2248
- if (Sortable.active) {
2249
- /* jshint eqnull:true */
2250
- if (newIndex == null || newIndex === -1) {
2251
- newIndex = oldIndex;
2252
- newDraggableIndex = oldDraggableIndex;
2253
- }
2254
-
2255
- _dispatchEvent({
2256
- sortable: this,
2257
- name: 'end',
2258
- toEl: parentEl,
2259
- originalEvent: evt
2260
- }); // Save sorting
2261
-
2262
-
2263
- this.save();
2264
- }
2265
- }
2266
- }
2267
-
2268
- this._nulling();
2269
- },
2270
- _nulling: function _nulling() {
2271
- pluginEvent('nulling', this);
2272
- 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;
2273
- savedInputChecked.forEach(function (el) {
2274
- el.checked = true;
2275
- });
2276
- savedInputChecked.length = lastDx = lastDy = 0;
2277
- },
2278
- handleEvent: function handleEvent(
2279
- /**Event*/
2280
- evt) {
2281
- switch (evt.type) {
2282
- case 'drop':
2283
- case 'dragend':
2284
- this._onDrop(evt);
2285
-
2286
- break;
2287
-
2288
- case 'dragenter':
2289
- case 'dragover':
2290
- if (dragEl) {
2291
- this._onDragOver(evt);
2292
-
2293
- _globalDragOver(evt);
2294
- }
2295
-
2296
- break;
2297
-
2298
- case 'selectstart':
2299
- evt.preventDefault();
2300
- break;
2301
- }
2302
- },
2303
-
2304
- /**
2305
- * Serializes the item into an array of string.
2306
- * @returns {String[]}
2307
- */
2308
- toArray: function toArray() {
2309
- var order = [],
2310
- el,
2311
- children = this.el.children,
2312
- i = 0,
2313
- n = children.length,
2314
- options = this.options;
2315
-
2316
- for (; i < n; i++) {
2317
- el = children[i];
2318
-
2319
- if (closest(el, options.draggable, this.el, false)) {
2320
- order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));
2321
- }
2322
- }
2323
-
2324
- return order;
2325
- },
2326
-
2327
- /**
2328
- * Sorts the elements according to the array.
2329
- * @param {String[]} order order of the items
2330
- */
2331
- sort: function sort(order, useAnimation) {
2332
- var items = {},
2333
- rootEl = this.el;
2334
- this.toArray().forEach(function (id, i) {
2335
- var el = rootEl.children[i];
2336
-
2337
- if (closest(el, this.options.draggable, rootEl, false)) {
2338
- items[id] = el;
2339
- }
2340
- }, this);
2341
- useAnimation && this.captureAnimationState();
2342
- order.forEach(function (id) {
2343
- if (items[id]) {
2344
- rootEl.removeChild(items[id]);
2345
- rootEl.appendChild(items[id]);
2346
- }
2347
- });
2348
- useAnimation && this.animateAll();
2349
- },
2350
-
2351
- /**
2352
- * Save the current sorting
2353
- */
2354
- save: function save() {
2355
- var store = this.options.store;
2356
- store && store.set && store.set(this);
2357
- },
2358
-
2359
- /**
2360
- * 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.
2361
- * @param {HTMLElement} el
2362
- * @param {String} [selector] default: `options.draggable`
2363
- * @returns {HTMLElement|null}
2364
- */
2365
- closest: function closest$1(el, selector) {
2366
- return closest(el, selector || this.options.draggable, this.el, false);
2367
- },
2368
-
2369
- /**
2370
- * Set/get option
2371
- * @param {string} name
2372
- * @param {*} [value]
2373
- * @returns {*}
2374
- */
2375
- option: function option(name, value) {
2376
- var options = this.options;
2377
-
2378
- if (value === void 0) {
2379
- return options[name];
2380
- } else {
2381
- var modifiedValue = PluginManager.modifyOption(this, name, value);
2382
-
2383
- if (typeof modifiedValue !== 'undefined') {
2384
- options[name] = modifiedValue;
2385
- } else {
2386
- options[name] = value;
2387
- }
2388
-
2389
- if (name === 'group') {
2390
- _prepareGroup(options);
2391
- }
2392
- }
2393
- },
2394
-
2395
- /**
2396
- * Destroy
2397
- */
2398
- destroy: function destroy() {
2399
- pluginEvent('destroy', this);
2400
- var el = this.el;
2401
- el[expando] = null;
2402
- off(el, 'mousedown', this._onTapStart);
2403
- off(el, 'touchstart', this._onTapStart);
2404
- off(el, 'pointerdown', this._onTapStart);
2405
-
2406
- if (this.nativeDraggable) {
2407
- off(el, 'dragover', this);
2408
- off(el, 'dragenter', this);
2409
- } // Remove draggable attributes
2410
-
2411
-
2412
- Array.prototype.forEach.call(el.querySelectorAll('[draggable]'), function (el) {
2413
- el.removeAttribute('draggable');
2414
- });
2415
-
2416
- this._onDrop();
2417
-
2418
- this._disableDelayedDragEvents();
2419
-
2420
- sortables.splice(sortables.indexOf(this.el), 1);
2421
- this.el = el = null;
2422
- },
2423
- _hideClone: function _hideClone() {
2424
- if (!cloneHidden) {
2425
- pluginEvent('hideClone', this);
2426
- if (Sortable.eventCanceled) return;
2427
- css(cloneEl, 'display', 'none');
2428
-
2429
- if (this.options.removeCloneOnHide && cloneEl.parentNode) {
2430
- cloneEl.parentNode.removeChild(cloneEl);
2431
- }
2432
-
2433
- cloneHidden = true;
2434
- }
2435
- },
2436
- _showClone: function _showClone(putSortable) {
2437
- if (putSortable.lastPutMode !== 'clone') {
2438
- this._hideClone();
2439
-
2440
- return;
2441
- }
2442
-
2443
- if (cloneHidden) {
2444
- pluginEvent('showClone', this);
2445
- if (Sortable.eventCanceled) return; // show clone at dragEl or original position
2446
-
2447
- if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {
2448
- rootEl.insertBefore(cloneEl, dragEl);
2449
- } else if (nextEl) {
2450
- rootEl.insertBefore(cloneEl, nextEl);
2451
- } else {
2452
- rootEl.appendChild(cloneEl);
2453
- }
2454
-
2455
- if (this.options.group.revertClone) {
2456
- this.animate(dragEl, cloneEl);
2457
- }
2458
-
2459
- css(cloneEl, 'display', '');
2460
- cloneHidden = false;
2461
- }
2462
- }
2463
- };
2464
-
2465
- function _globalDragOver(
2466
- /**Event*/
2467
- evt) {
2468
- if (evt.dataTransfer) {
2469
- evt.dataTransfer.dropEffect = 'move';
2470
- }
2471
-
2472
- evt.cancelable && evt.preventDefault();
2473
- }
2474
-
2475
- function _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {
2476
- var evt,
2477
- sortable = fromEl[expando],
2478
- onMoveFn = sortable.options.onMove,
2479
- retVal; // Support for new CustomEvent feature
2480
-
2481
- if (window.CustomEvent && !IE11OrLess && !Edge) {
2482
- evt = new CustomEvent('move', {
2483
- bubbles: true,
2484
- cancelable: true
2485
- });
2486
- } else {
2487
- evt = document.createEvent('Event');
2488
- evt.initEvent('move', true, true);
2489
- }
2490
-
2491
- evt.to = toEl;
2492
- evt.from = fromEl;
2493
- evt.dragged = dragEl;
2494
- evt.draggedRect = dragRect;
2495
- evt.related = targetEl || toEl;
2496
- evt.relatedRect = targetRect || getRect(toEl);
2497
- evt.willInsertAfter = willInsertAfter;
2498
- evt.originalEvent = originalEvent;
2499
- fromEl.dispatchEvent(evt);
2500
-
2501
- if (onMoveFn) {
2502
- retVal = onMoveFn.call(sortable, evt, originalEvent);
2503
- }
2504
-
2505
- return retVal;
2506
- }
2507
-
2508
- function _disableDraggable(el) {
2509
- el.draggable = false;
2510
- }
2511
-
2512
- function _unsilent() {
2513
- _silent = false;
2514
- }
2515
-
2516
- function _ghostIsFirst(evt, vertical, sortable) {
2517
- var rect = getRect(getChild(sortable.el, 0, sortable.options, true));
2518
- var spacer = 10;
2519
- return vertical ? evt.clientX < rect.left - spacer || evt.clientY < rect.top && evt.clientX < rect.right : evt.clientY < rect.top - spacer || evt.clientY < rect.bottom && evt.clientX < rect.left;
2520
- }
2521
-
2522
- function _ghostIsLast(evt, vertical, sortable) {
2523
- var rect = getRect(lastChild(sortable.el, sortable.options.draggable));
2524
- var spacer = 10;
2525
- return vertical ? evt.clientX > rect.right + spacer || evt.clientX <= rect.right && evt.clientY > rect.bottom && evt.clientX >= rect.left : evt.clientX > rect.right && evt.clientY > rect.top || evt.clientX <= rect.right && evt.clientY > rect.bottom + spacer;
2526
- }
2527
-
2528
- function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {
2529
- var mouseOnAxis = vertical ? evt.clientY : evt.clientX,
2530
- targetLength = vertical ? targetRect.height : targetRect.width,
2531
- targetS1 = vertical ? targetRect.top : targetRect.left,
2532
- targetS2 = vertical ? targetRect.bottom : targetRect.right,
2533
- invert = false;
2534
-
2535
- if (!invertSwap) {
2536
- // Never invert or create dragEl shadow when target movemenet causes mouse to move past the end of regular swapThreshold
2537
- if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {
2538
- // multiplied only by swapThreshold because mouse will already be inside target by (1 - threshold) * targetLength / 2
2539
- // check if past first invert threshold on side opposite of lastDirection
2540
- if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {
2541
- // past first invert threshold, do not restrict inverted threshold to dragEl shadow
2542
- pastFirstInvertThresh = true;
2543
- }
2544
-
2545
- if (!pastFirstInvertThresh) {
2546
- // dragEl shadow (target move distance shadow)
2547
- if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance // over dragEl shadow
2548
- : mouseOnAxis > targetS2 - targetMoveDistance) {
2549
- return -lastDirection;
2550
- }
2551
- } else {
2552
- invert = true;
2553
- }
2554
- } else {
2555
- // Regular
2556
- if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {
2557
- return _getInsertDirection(target);
2558
- }
2559
- }
2560
- }
2561
-
2562
- invert = invert || invertSwap;
2563
-
2564
- if (invert) {
2565
- // Invert of regular
2566
- if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {
2567
- return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;
2568
- }
2569
- }
2570
-
2571
- return 0;
2572
- }
2573
- /**
2574
- * Gets the direction dragEl must be swapped relative to target in order to make it
2575
- * seem that dragEl has been "inserted" into that element's position
2576
- * @param {HTMLElement} target The target whose position dragEl is being inserted at
2577
- * @return {Number} Direction dragEl must be swapped
2578
- */
2579
-
2580
-
2581
- function _getInsertDirection(target) {
2582
- if (index(dragEl) < index(target)) {
2583
- return 1;
2584
- } else {
2585
- return -1;
2586
- }
2587
- }
2588
- /**
2589
- * Generate id
2590
- * @param {HTMLElement} el
2591
- * @returns {String}
2592
- * @private
2593
- */
2594
-
2595
-
2596
- function _generateId(el) {
2597
- var str = el.tagName + el.className + el.src + el.href + el.textContent,
2598
- i = str.length,
2599
- sum = 0;
2600
-
2601
- while (i--) {
2602
- sum += str.charCodeAt(i);
2603
- }
2604
-
2605
- return sum.toString(36);
2606
- }
2607
-
2608
- function _saveInputCheckedState(root) {
2609
- savedInputChecked.length = 0;
2610
- var inputs = root.getElementsByTagName('input');
2611
- var idx = inputs.length;
2612
-
2613
- while (idx--) {
2614
- var el = inputs[idx];
2615
- el.checked && savedInputChecked.push(el);
2616
- }
2617
- }
2618
-
2619
- function _nextTick(fn) {
2620
- return setTimeout(fn, 0);
2621
- }
2622
-
2623
- function _cancelNextTick(id) {
2624
- return clearTimeout(id);
2625
- } // Fixed #973:
2626
-
2627
-
2628
- if (documentExists) {
2629
- on(document, 'touchmove', function (evt) {
2630
- if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {
2631
- evt.preventDefault();
2632
- }
2633
- });
2634
- } // Export utils
2635
-
2636
-
2637
- Sortable.utils = {
2638
- on: on,
2639
- off: off,
2640
- css: css,
2641
- find: find,
2642
- is: function is(el, selector) {
2643
- return !!closest(el, selector, el, false);
2644
- },
2645
- extend: extend,
2646
- throttle: throttle,
2647
- closest: closest,
2648
- toggleClass: toggleClass,
2649
- clone: clone,
2650
- index: index,
2651
- nextTick: _nextTick,
2652
- cancelNextTick: _cancelNextTick,
2653
- detectDirection: _detectDirection,
2654
- getChild: getChild
2655
- };
2656
- /**
2657
- * Get the Sortable instance of an element
2658
- * @param {HTMLElement} element The element
2659
- * @return {Sortable|undefined} The instance of Sortable
2660
- */
2661
-
2662
- Sortable.get = function (element) {
2663
- return element[expando];
2664
- };
2665
- /**
2666
- * Mount a plugin to Sortable
2667
- * @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
2668
- */
2669
-
2670
-
2671
- Sortable.mount = function () {
2672
- for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {
2673
- plugins[_key] = arguments[_key];
2674
- }
2675
-
2676
- if (plugins[0].constructor === Array) plugins = plugins[0];
2677
- plugins.forEach(function (plugin) {
2678
- if (!plugin.prototype || !plugin.prototype.constructor) {
2679
- throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(plugin));
2680
- }
2681
-
2682
- if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);
2683
- PluginManager.mount(plugin);
2684
- });
2685
- };
2686
- /**
2687
- * Create sortable instance
2688
- * @param {HTMLElement} el
2689
- * @param {Object} [options]
2690
- */
2691
-
2692
-
2693
- Sortable.create = function (el, options) {
2694
- return new Sortable(el, options);
2695
- }; // Export
2696
-
2697
-
2698
- Sortable.version = version;
2699
-
2700
- var autoScrolls = [],
2701
- scrollEl,
2702
- scrollRootEl,
2703
- scrolling = false,
2704
- lastAutoScrollX,
2705
- lastAutoScrollY,
2706
- touchEvt$1,
2707
- pointerElemChangedInterval;
2708
-
2709
- function AutoScrollPlugin() {
2710
- function AutoScroll() {
2711
- this.defaults = {
2712
- scroll: true,
2713
- forceAutoScrollFallback: false,
2714
- scrollSensitivity: 30,
2715
- scrollSpeed: 10,
2716
- bubbleScroll: true
2717
- }; // Bind all private methods
2718
-
2719
- for (var fn in this) {
2720
- if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {
2721
- this[fn] = this[fn].bind(this);
2722
- }
2723
- }
2724
- }
2725
-
2726
- AutoScroll.prototype = {
2727
- dragStarted: function dragStarted(_ref) {
2728
- var originalEvent = _ref.originalEvent;
2729
-
2730
- if (this.sortable.nativeDraggable) {
2731
- on(document, 'dragover', this._handleAutoScroll);
2732
- } else {
2733
- if (this.options.supportPointer) {
2734
- on(document, 'pointermove', this._handleFallbackAutoScroll);
2735
- } else if (originalEvent.touches) {
2736
- on(document, 'touchmove', this._handleFallbackAutoScroll);
2737
- } else {
2738
- on(document, 'mousemove', this._handleFallbackAutoScroll);
2739
- }
2740
- }
2741
- },
2742
- dragOverCompleted: function dragOverCompleted(_ref2) {
2743
- var originalEvent = _ref2.originalEvent;
2744
-
2745
- // For when bubbling is canceled and using fallback (fallback 'touchmove' always reached)
2746
- if (!this.options.dragOverBubble && !originalEvent.rootEl) {
2747
- this._handleAutoScroll(originalEvent);
2748
- }
2749
- },
2750
- drop: function drop() {
2751
- if (this.sortable.nativeDraggable) {
2752
- off(document, 'dragover', this._handleAutoScroll);
2753
- } else {
2754
- off(document, 'pointermove', this._handleFallbackAutoScroll);
2755
- off(document, 'touchmove', this._handleFallbackAutoScroll);
2756
- off(document, 'mousemove', this._handleFallbackAutoScroll);
2757
- }
2758
-
2759
- clearPointerElemChangedInterval();
2760
- clearAutoScrolls();
2761
- cancelThrottle();
2762
- },
2763
- nulling: function nulling() {
2764
- touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;
2765
- autoScrolls.length = 0;
2766
- },
2767
- _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {
2768
- this._handleAutoScroll(evt, true);
2769
- },
2770
- _handleAutoScroll: function _handleAutoScroll(evt, fallback) {
2771
- var _this = this;
2772
-
2773
- var x = (evt.touches ? evt.touches[0] : evt).clientX,
2774
- y = (evt.touches ? evt.touches[0] : evt).clientY,
2775
- elem = document.elementFromPoint(x, y);
2776
- touchEvt$1 = evt; // IE does not seem to have native autoscroll,
2777
- // Edge's autoscroll seems too conditional,
2778
- // MACOS Safari does not have autoscroll,
2779
- // Firefox and Chrome are good
2780
-
2781
- if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {
2782
- autoScroll(evt, this.options, elem, fallback); // Listener for pointer element change
2783
-
2784
- var ogElemScroller = getParentAutoScrollElement(elem, true);
2785
-
2786
- if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {
2787
- pointerElemChangedInterval && clearPointerElemChangedInterval(); // Detect for pointer elem change, emulating native DnD behaviour
2788
-
2789
- pointerElemChangedInterval = setInterval(function () {
2790
- var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);
2791
-
2792
- if (newElem !== ogElemScroller) {
2793
- ogElemScroller = newElem;
2794
- clearAutoScrolls();
2795
- }
2796
-
2797
- autoScroll(evt, _this.options, newElem, fallback);
2798
- }, 10);
2799
- lastAutoScrollX = x;
2800
- lastAutoScrollY = y;
2801
- }
2802
- } else {
2803
- // if DnD is enabled (and browser has good autoscrolling), first autoscroll will already scroll, so get parent autoscroll of first autoscroll
2804
- if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {
2805
- clearAutoScrolls();
2806
- return;
2807
- }
2808
-
2809
- autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);
2810
- }
2811
- }
2812
- };
2813
- return _extends(AutoScroll, {
2814
- pluginName: 'scroll',
2815
- initializeByDefault: true
2816
- });
2817
- }
2818
-
2819
- function clearAutoScrolls() {
2820
- autoScrolls.forEach(function (autoScroll) {
2821
- clearInterval(autoScroll.pid);
2822
- });
2823
- autoScrolls = [];
2824
- }
2825
-
2826
- function clearPointerElemChangedInterval() {
2827
- clearInterval(pointerElemChangedInterval);
2828
- }
2829
-
2830
- var autoScroll = throttle(function (evt, options, rootEl, isFallback) {
2831
- // Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521
2832
- if (!options.scroll) return;
2833
- var x = (evt.touches ? evt.touches[0] : evt).clientX,
2834
- y = (evt.touches ? evt.touches[0] : evt).clientY,
2835
- sens = options.scrollSensitivity,
2836
- speed = options.scrollSpeed,
2837
- winScroller = getWindowScrollingElement();
2838
- var scrollThisInstance = false,
2839
- scrollCustomFn; // New scroll root, set scrollEl
2840
-
2841
- if (scrollRootEl !== rootEl) {
2842
- scrollRootEl = rootEl;
2843
- clearAutoScrolls();
2844
- scrollEl = options.scroll;
2845
- scrollCustomFn = options.scrollFn;
2846
-
2847
- if (scrollEl === true) {
2848
- scrollEl = getParentAutoScrollElement(rootEl, true);
2849
- }
2850
- }
2851
-
2852
- var layersOut = 0;
2853
- var currentParent = scrollEl;
2854
-
2855
- do {
2856
- var el = currentParent,
2857
- rect = getRect(el),
2858
- top = rect.top,
2859
- bottom = rect.bottom,
2860
- left = rect.left,
2861
- right = rect.right,
2862
- width = rect.width,
2863
- height = rect.height,
2864
- canScrollX = void 0,
2865
- canScrollY = void 0,
2866
- scrollWidth = el.scrollWidth,
2867
- scrollHeight = el.scrollHeight,
2868
- elCSS = css(el),
2869
- scrollPosX = el.scrollLeft,
2870
- scrollPosY = el.scrollTop;
2871
-
2872
- if (el === winScroller) {
2873
- canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll' || elCSS.overflowX === 'visible');
2874
- canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll' || elCSS.overflowY === 'visible');
2875
- } else {
2876
- canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll');
2877
- canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll');
2878
- }
2879
-
2880
- var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);
2881
- var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);
2882
-
2883
- if (!autoScrolls[layersOut]) {
2884
- for (var i = 0; i <= layersOut; i++) {
2885
- if (!autoScrolls[i]) {
2886
- autoScrolls[i] = {};
2887
- }
2888
- }
2889
- }
2890
-
2891
- if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {
2892
- autoScrolls[layersOut].el = el;
2893
- autoScrolls[layersOut].vx = vx;
2894
- autoScrolls[layersOut].vy = vy;
2895
- clearInterval(autoScrolls[layersOut].pid);
2896
-
2897
- if (vx != 0 || vy != 0) {
2898
- scrollThisInstance = true;
2899
- /* jshint loopfunc:true */
2900
-
2901
- autoScrolls[layersOut].pid = setInterval(function () {
2902
- // emulate drag over during autoscroll (fallback), emulating native DnD behaviour
2903
- if (isFallback && this.layer === 0) {
2904
- Sortable.active._onTouchMove(touchEvt$1); // To move ghost if it is positioned absolutely
2905
-
2906
- }
2907
-
2908
- var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;
2909
- var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;
2910
-
2911
- if (typeof scrollCustomFn === 'function') {
2912
- if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== 'continue') {
2913
- return;
2914
- }
2915
- }
2916
-
2917
- scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);
2918
- }.bind({
2919
- layer: layersOut
2920
- }), 24);
2921
- }
2922
- }
2923
-
2924
- layersOut++;
2925
- } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));
2926
-
2927
- scrolling = scrollThisInstance; // in case another function catches scrolling as false in between when it is not
2928
- }, 30);
2929
-
2930
- var drop = function drop(_ref) {
2931
- var originalEvent = _ref.originalEvent,
2932
- putSortable = _ref.putSortable,
2933
- dragEl = _ref.dragEl,
2934
- activeSortable = _ref.activeSortable,
2935
- dispatchSortableEvent = _ref.dispatchSortableEvent,
2936
- hideGhostForTarget = _ref.hideGhostForTarget,
2937
- unhideGhostForTarget = _ref.unhideGhostForTarget;
2938
- if (!originalEvent) return;
2939
- var toSortable = putSortable || activeSortable;
2940
- hideGhostForTarget();
2941
- var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;
2942
- var target = document.elementFromPoint(touch.clientX, touch.clientY);
2943
- unhideGhostForTarget();
2944
-
2945
- if (toSortable && !toSortable.el.contains(target)) {
2946
- dispatchSortableEvent('spill');
2947
- this.onSpill({
2948
- dragEl: dragEl,
2949
- putSortable: putSortable
2950
- });
2951
- }
2952
- };
2953
-
2954
- function Revert() {}
2955
-
2956
- Revert.prototype = {
2957
- startIndex: null,
2958
- dragStart: function dragStart(_ref2) {
2959
- var oldDraggableIndex = _ref2.oldDraggableIndex;
2960
- this.startIndex = oldDraggableIndex;
2961
- },
2962
- onSpill: function onSpill(_ref3) {
2963
- var dragEl = _ref3.dragEl,
2964
- putSortable = _ref3.putSortable;
2965
- this.sortable.captureAnimationState();
2966
-
2967
- if (putSortable) {
2968
- putSortable.captureAnimationState();
2969
- }
2970
-
2971
- var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);
2972
-
2973
- if (nextSibling) {
2974
- this.sortable.el.insertBefore(dragEl, nextSibling);
2975
- } else {
2976
- this.sortable.el.appendChild(dragEl);
2977
- }
2978
-
2979
- this.sortable.animateAll();
2980
-
2981
- if (putSortable) {
2982
- putSortable.animateAll();
2983
- }
2984
- },
2985
- drop: drop
2986
- };
2987
-
2988
- _extends(Revert, {
2989
- pluginName: 'revertOnSpill'
2990
- });
2991
-
2992
- function Remove() {}
2993
-
2994
- Remove.prototype = {
2995
- onSpill: function onSpill(_ref4) {
2996
- var dragEl = _ref4.dragEl,
2997
- putSortable = _ref4.putSortable;
2998
- var parentSortable = putSortable || this.sortable;
2999
- parentSortable.captureAnimationState();
3000
- dragEl.parentNode && dragEl.parentNode.removeChild(dragEl);
3001
- parentSortable.animateAll();
3002
- },
3003
- drop: drop
3004
- };
3005
-
3006
- _extends(Remove, {
3007
- pluginName: 'removeOnSpill'
3008
- });
3009
-
3010
- Sortable.mount(new AutoScrollPlugin());
3011
- Sortable.mount(Remove, Revert);
3012
-
3013
- export { Sortable as S };