@esri/calcite-components 1.0.0-beta.65 → 1.0.0-beta.69

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