@esri/solutions-components 0.8.2 → 0.8.3

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 (1230) hide show
  1. package/dist/cjs/ExpandToggle-3ab7dfd7.js +118 -0
  2. package/dist/cjs/FloatingArrow-89e0e55a.js +50 -0
  3. package/dist/cjs/Heading-9112a4c5.js +25 -0
  4. package/dist/cjs/InitiativeUiSchemaEdit-108652db.js +28 -0
  5. package/dist/cjs/ProjectUiSchemaCreate-81217580.js +126 -0
  6. package/dist/cjs/ProjectUiSchemaEdit-d5f11c17.js +178 -0
  7. package/dist/cjs/Validation-20182093.js +20 -0
  8. package/dist/cjs/_commonjsHelpers-ed90c4ad.js +55 -0
  9. package/dist/cjs/app-globals-379d737f.js +69 -0
  10. package/dist/cjs/ar-a694ca24.js +105 -0
  11. package/dist/cjs/arcgis-login.cjs.entry.js +1 -1
  12. package/dist/cjs/basemap-gallery.cjs.entry.js +121 -0
  13. package/dist/cjs/bg-62b6b3ba.js +83 -0
  14. package/dist/cjs/browser-fe25aefa.js +28 -0
  15. package/dist/cjs/bs-e673542b.js +52 -0
  16. package/dist/cjs/buffer-tools.cjs.entry.js +257 -0
  17. package/dist/cjs/ca-e4d2f562.js +72 -0
  18. package/dist/cjs/calcite-accordion-item.cjs.entry.js +5 -5
  19. package/dist/cjs/calcite-accordion.cjs.entry.js +2 -2
  20. package/dist/cjs/calcite-action-bar.cjs.entry.js +12 -12
  21. package/dist/cjs/calcite-action-group.cjs.entry.js +9 -9
  22. package/dist/cjs/calcite-action-menu.cjs.entry.js +295 -0
  23. package/dist/cjs/calcite-action-pad.cjs.entry.js +169 -0
  24. package/dist/cjs/calcite-action-pad_2.cjs.entry.js +1 -1
  25. package/dist/cjs/calcite-action.cjs.entry.js +188 -0
  26. package/dist/cjs/calcite-alert.cjs.entry.js +322 -0
  27. package/dist/cjs/calcite-avatar.cjs.entry.js +4 -4
  28. package/dist/cjs/calcite-block-section.cjs.entry.js +8 -8
  29. package/dist/cjs/calcite-block.cjs.entry.js +214 -0
  30. package/dist/cjs/calcite-button.cjs.entry.js +13 -13
  31. package/dist/cjs/calcite-card.cjs.entry.js +8 -8
  32. package/dist/cjs/calcite-checkbox.cjs.entry.js +9 -9
  33. package/dist/cjs/calcite-chip-group.cjs.entry.js +7 -7
  34. package/dist/cjs/calcite-chip.cjs.entry.js +262 -0
  35. package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +274 -0
  36. package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +99 -0
  37. package/dist/cjs/calcite-color-picker.cjs.entry.js +22 -22
  38. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +4 -4
  39. package/dist/cjs/calcite-combobox-item.cjs.entry.js +145 -0
  40. package/dist/cjs/calcite-combobox.cjs.entry.js +1431 -0
  41. package/dist/cjs/calcite-date-picker-day.cjs.entry.js +97 -0
  42. package/dist/cjs/calcite-date-picker-month-header.cjs.entry.js +207 -0
  43. package/dist/cjs/calcite-date-picker-month.cjs.entry.js +362 -0
  44. package/dist/cjs/calcite-date-picker.cjs.entry.js +460 -0
  45. package/dist/cjs/calcite-dropdown-group.cjs.entry.js +85 -0
  46. package/dist/cjs/calcite-dropdown-item.cjs.entry.js +188 -0
  47. package/dist/cjs/calcite-dropdown.cjs.entry.js +430 -0
  48. package/dist/cjs/calcite-fab.cjs.entry.js +6 -6
  49. package/dist/cjs/calcite-filter.cjs.entry.js +179 -0
  50. package/dist/cjs/calcite-flow-item.cjs.entry.js +198 -0
  51. package/dist/cjs/calcite-flow.cjs.entry.js +153 -0
  52. package/dist/cjs/calcite-graph.cjs.entry.js +226 -0
  53. package/dist/cjs/calcite-handle.cjs.entry.js +204 -0
  54. package/dist/cjs/calcite-icon.cjs.entry.js +5 -5
  55. package/dist/cjs/calcite-inline-editable.cjs.entry.js +11 -11
  56. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +744 -0
  57. package/dist/cjs/calcite-input-date-picker_3.cjs.entry.js +16 -10
  58. package/dist/cjs/calcite-input-message.cjs.entry.js +70 -0
  59. package/dist/cjs/calcite-input-number.cjs.entry.js +13 -13
  60. package/dist/cjs/calcite-input-text.cjs.entry.js +13 -13
  61. package/dist/cjs/calcite-input-time-picker-9e93f694.js +1854 -0
  62. package/dist/cjs/calcite-input-time-picker.cjs.entry.js +17 -17
  63. package/dist/cjs/calcite-input-time-zone.cjs.entry.js +12 -12
  64. package/dist/cjs/calcite-input.cjs.entry.js +695 -0
  65. package/dist/cjs/calcite-label.cjs.entry.js +4 -4
  66. package/dist/cjs/calcite-link.cjs.entry.js +6 -6
  67. package/dist/cjs/calcite-list-item-group.cjs.entry.js +4 -4
  68. package/dist/cjs/calcite-list-item.cjs.entry.js +454 -0
  69. package/dist/cjs/calcite-list.cjs.entry.js +567 -0
  70. package/dist/cjs/calcite-loader.cjs.entry.js +80 -0
  71. package/dist/cjs/calcite-menu-item.cjs.entry.js +8 -8
  72. package/dist/cjs/calcite-menu.cjs.entry.js +8 -8
  73. package/dist/cjs/calcite-meter.cjs.entry.js +8 -8
  74. package/dist/cjs/calcite-modal.cjs.entry.js +17 -11
  75. package/dist/cjs/calcite-navigation-logo.cjs.entry.js +2 -2
  76. package/dist/cjs/calcite-navigation-user.cjs.entry.js +2 -2
  77. package/dist/cjs/calcite-navigation.cjs.entry.js +4 -4
  78. package/dist/cjs/calcite-notice.cjs.entry.js +10 -10
  79. package/dist/cjs/calcite-option-group.cjs.entry.js +1 -1
  80. package/dist/cjs/calcite-option.cjs.entry.js +88 -0
  81. package/dist/cjs/calcite-pagination.cjs.entry.js +201 -8
  82. package/dist/cjs/calcite-panel.cjs.entry.js +270 -0
  83. package/dist/cjs/calcite-pick-list-group.cjs.entry.js +6 -6
  84. package/dist/cjs/calcite-pick-list-item.cjs.entry.js +23 -23
  85. package/dist/cjs/calcite-pick-list.cjs.entry.js +10 -10
  86. package/dist/cjs/calcite-popover.cjs.entry.js +418 -0
  87. package/dist/cjs/calcite-progress.cjs.entry.js +41 -0
  88. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
  89. package/dist/cjs/calcite-radio-button.cjs.entry.js +8 -8
  90. package/dist/cjs/calcite-rating.cjs.entry.js +14 -12
  91. package/dist/cjs/calcite-scrim.cjs.entry.js +7 -7
  92. package/dist/cjs/calcite-segmented-control-item.cjs.entry.js +70 -0
  93. package/dist/cjs/calcite-segmented-control.cjs.entry.js +245 -0
  94. package/dist/cjs/calcite-select.cjs.entry.js +235 -0
  95. package/dist/cjs/calcite-sheet.cjs.entry.js +7 -7
  96. package/dist/cjs/calcite-shell-center-row.cjs.entry.js +5 -5
  97. package/dist/cjs/calcite-shell-panel.cjs.entry.js +414 -0
  98. package/dist/cjs/calcite-shell.cjs.entry.js +174 -0
  99. package/dist/cjs/calcite-slider.cjs.entry.js +844 -0
  100. package/dist/cjs/calcite-sortable-list.cjs.entry.js +7 -7
  101. package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
  102. package/dist/cjs/calcite-stack.cjs.entry.js +74 -0
  103. package/dist/cjs/calcite-stepper-item.cjs.entry.js +10 -10
  104. package/dist/cjs/calcite-stepper.cjs.entry.js +7 -7
  105. package/dist/cjs/calcite-switch.cjs.entry.js +9 -9
  106. package/dist/cjs/calcite-tab-nav.cjs.entry.js +263 -0
  107. package/dist/cjs/calcite-tab-title.cjs.entry.js +291 -0
  108. package/dist/cjs/calcite-tab.cjs.entry.js +112 -0
  109. package/dist/cjs/calcite-table-cell.cjs.entry.js +156 -0
  110. package/dist/cjs/calcite-table-header.cjs.entry.js +169 -0
  111. package/dist/cjs/calcite-table-row.cjs.entry.js +6 -6
  112. package/dist/cjs/calcite-table.cjs.entry.js +9 -9
  113. package/dist/cjs/calcite-tabs.cjs.entry.js +178 -0
  114. package/dist/cjs/calcite-text-area.cjs.entry.js +15 -16
  115. package/dist/cjs/calcite-tile-select-group.cjs.entry.js +3 -3
  116. package/dist/cjs/calcite-tile-select.cjs.entry.js +4 -4
  117. package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
  118. package/dist/cjs/calcite-time-picker.cjs.entry.js +9 -9
  119. package/dist/cjs/calcite-tip-group.cjs.entry.js +1 -1
  120. package/dist/cjs/calcite-tip-manager.cjs.entry.js +15 -8
  121. package/dist/cjs/calcite-tip.cjs.entry.js +9 -9
  122. package/dist/cjs/calcite-tooltip.cjs.entry.js +7 -7
  123. package/dist/cjs/calcite-tree-item.cjs.entry.js +296 -0
  124. package/dist/cjs/calcite-tree.cjs.entry.js +315 -0
  125. package/dist/cjs/calcite-value-list-item.cjs.entry.js +157 -0
  126. package/dist/cjs/calcite-value-list.cjs.entry.js +326 -0
  127. package/dist/cjs/card-manager.cjs.entry.js +107 -0
  128. package/dist/cjs/card-manager_3.cjs.entry.js +1 -1
  129. package/dist/cjs/common-1b4bd8de.js +297 -0
  130. package/dist/cjs/conditionalSlot-73e71a05.js +63 -0
  131. package/dist/cjs/consent-manager.cjs.entry.js +379 -15
  132. package/dist/cjs/create-feature.cjs.entry.js +263 -0
  133. package/dist/cjs/crowdsource-manager.cjs.entry.js +7 -5
  134. package/dist/cjs/crowdsource-reporter.cjs.entry.js +9 -7
  135. package/dist/cjs/cs-1ea34123.js +148 -0
  136. package/dist/cjs/da-199f5488.js +67 -0
  137. package/dist/cjs/date-3d094f58.js +261 -0
  138. package/dist/cjs/de-222afa04.js +92 -0
  139. package/dist/cjs/de-at-a62870ea.js +91 -0
  140. package/dist/cjs/de-ch-b0b46c1b.js +91 -0
  141. package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
  142. package/dist/cjs/delete-button.cjs.entry.js +150 -0
  143. package/dist/cjs/dom-cf1e2e9f.js +1114 -0
  144. package/dist/cjs/{downloadUtils-c2bd7c80.js → downloadUtils-1f283d95.js} +37 -6
  145. package/dist/cjs/downloadUtils-de0c0682.js +4246 -0
  146. package/dist/cjs/edit-card.cjs.entry.js +228 -0
  147. package/dist/cjs/el-934951a0.js +67 -0
  148. package/dist/cjs/en-au-6872d248.js +67 -0
  149. package/dist/cjs/en-ca-7133c4f2.js +66 -0
  150. package/dist/cjs/en-gb-2c66b954.js +70 -0
  151. package/dist/cjs/es-48e65aa5.js +67 -0
  152. package/dist/cjs/es-mx-46d70897.js +66 -0
  153. package/dist/cjs/esri-loader-5b8fbfa4.js +308 -0
  154. package/dist/cjs/et-63c5628d.js +93 -0
  155. package/dist/cjs/feature-comments.cjs.entry.js +1 -1
  156. package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
  157. package/dist/cjs/feature-list.cjs.entry.js +199 -0
  158. package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
  159. package/dist/cjs/fi-dc20f9ac.js +116 -0
  160. package/dist/cjs/filter-cc2705b7.js +48 -0
  161. package/dist/cjs/floating-ui-90bd00af.js +2350 -0
  162. package/dist/cjs/floor-filter.cjs.entry.js +111 -0
  163. package/dist/cjs/focusTrapComponent-946b0666.js +1028 -0
  164. package/dist/cjs/form-da52e819.js +316 -0
  165. package/dist/cjs/fr-7067996a.js +69 -0
  166. package/dist/cjs/fr-ch-dbd7ba02.js +67 -0
  167. package/dist/cjs/he-4eb6a5a9.js +106 -0
  168. package/dist/cjs/helpers-7415d67a.js +830 -0
  169. package/dist/cjs/{helpers-81779c18.js → helpers-b014d9a9.js} +1 -1
  170. package/dist/cjs/hi-5563acd4.js +66 -0
  171. package/dist/cjs/hr-7a0a4191.js +81 -0
  172. package/dist/cjs/html2canvas-57f1616d.js +7847 -0
  173. package/dist/cjs/hu-0b69b8fb.js +89 -0
  174. package/dist/cjs/id-345dd5a9.js +67 -0
  175. package/dist/cjs/index-5799a29c.js +41521 -0
  176. package/dist/cjs/index-8c75d784.js +1958 -0
  177. package/dist/cjs/index-af047760.js +201 -0
  178. package/dist/cjs/index-b53bfd7c.js +4185 -0
  179. package/dist/cjs/index.cjs.js +15 -0
  180. package/dist/cjs/index.es-152bb462.js +11342 -0
  181. package/dist/cjs/{index.es-22b3d1a2.js → index.es-4af23ecc.js} +1 -1
  182. package/dist/cjs/info-card.cjs.entry.js +320 -0
  183. package/dist/cjs/instant-apps-ckeditor-wrapper.cjs.entry.js +125 -0
  184. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +4 -4
  185. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +4 -4
  186. package/dist/cjs/instant-apps-export.cjs.entry.js +20 -14
  187. package/dist/cjs/instant-apps-filter-list.cjs.entry.js +1059 -0
  188. package/dist/cjs/instant-apps-header.cjs.entry.js +5 -4
  189. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +25 -21
  190. package/dist/cjs/instant-apps-interactive-legend-count.cjs.entry.js +104 -0
  191. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +2 -2
  192. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +7 -6
  193. package/dist/cjs/instant-apps-interactive-legend-group-legend-element.cjs.entry.js +56 -0
  194. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +2 -2
  195. package/dist/cjs/instant-apps-interactive-legend-layer-element-caption.cjs.entry.js +55 -0
  196. package/dist/cjs/instant-apps-interactive-legend-layer-element.cjs.entry.js +57 -0
  197. package/dist/cjs/instant-apps-interactive-legend-legend-element-caption.cjs.entry.js +104 -0
  198. package/dist/cjs/instant-apps-interactive-legend-legend-element.cjs.entry.js +65 -0
  199. package/dist/cjs/instant-apps-interactive-legend-relationship.cjs.entry.js +552 -0
  200. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +9 -8
  201. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +6 -6
  202. package/dist/cjs/instant-apps-landing-page.cjs.entry.js +2 -2
  203. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +9 -9
  204. package/dist/cjs/instant-apps-language-translator-item.cjs.entry.js +384 -0
  205. package/dist/cjs/instant-apps-language-translator-search.cjs.entry.js +105 -0
  206. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +9 -9
  207. package/dist/cjs/instant-apps-measurement-tool.cjs.entry.js +139 -0
  208. package/dist/cjs/instant-apps-measurement.cjs.entry.js +7 -7
  209. package/dist/cjs/instant-apps-popover.cjs.entry.js +6 -6
  210. package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
  211. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +6 -6
  212. package/dist/cjs/instant-apps-social-share.cjs.entry.js +515 -0
  213. package/dist/cjs/instant-apps-splash.cjs.entry.js +17 -8
  214. package/dist/cjs/interactive-08e5bc95.js +144 -0
  215. package/dist/cjs/it-ac7cf3e5.js +67 -0
  216. package/dist/cjs/it-ch-6f7209eb.js +67 -0
  217. package/dist/cjs/ja-29e7b0a2.js +73 -0
  218. package/dist/cjs/json-editor.cjs.entry.js +406 -0
  219. package/dist/cjs/key-86f4a0b0.js +47 -0
  220. package/dist/cjs/ko-aeebde8b.js +73 -0
  221. package/dist/cjs/label-24b05042.js +186 -0
  222. package/dist/cjs/{languageSwitcher-4822684b.js → languageSwitcher-3870c772.js} +1 -1
  223. package/dist/cjs/languageSwitcher-aafa5b47.js +58 -0
  224. package/dist/cjs/{languageUtil-9bd00bad.js → languageUtil-0df39c0c.js} +1 -1
  225. package/dist/cjs/languageUtil-43c3acdc.js +90 -0
  226. package/dist/cjs/layer-list.cjs.entry.js +207 -0
  227. package/dist/cjs/layer-table.cjs.entry.js +1487 -0
  228. package/dist/cjs/layout-manager.cjs.entry.js +5 -4
  229. package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
  230. package/dist/cjs/{loadModules-69fc5b98.js → loadModules-01306709.js} +1 -1
  231. package/dist/cjs/loadModules-a67b6702.js +23 -0
  232. package/dist/cjs/loadModules-b5f244cd.js +30 -0
  233. package/dist/cjs/loadable-41446b78.js +97 -0
  234. package/dist/cjs/loader.cjs.js +4 -4
  235. package/dist/cjs/{locale-3e33f44c.js → locale-28c7c569.js} +2 -2
  236. package/dist/cjs/locale-42a9e623.js +152 -0
  237. package/dist/cjs/locale-4cef466e.js +91 -0
  238. package/dist/cjs/locale-a615b02f.js +585 -0
  239. package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
  240. package/dist/cjs/lodash-7587da9f.js +18030 -0
  241. package/dist/cjs/lt-6816d14c.js +98 -0
  242. package/dist/cjs/lv-2c998515.js +67 -0
  243. package/dist/cjs/map-card.cjs.entry.js +192 -0
  244. package/dist/cjs/map-draw-tools.cjs.entry.js +358 -0
  245. package/dist/cjs/map-fullscreen.cjs.entry.js +116 -0
  246. package/dist/cjs/map-layer-picker.cjs.entry.js +346 -0
  247. package/dist/cjs/map-legend.cjs.entry.js +109 -0
  248. package/dist/cjs/map-picker.cjs.entry.js +174 -0
  249. package/dist/cjs/map-search.cjs.entry.js +184 -0
  250. package/dist/cjs/map-select-tools.cjs.entry.js +798 -0
  251. package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
  252. package/dist/cjs/map-tools.cjs.entry.js +375 -0
  253. package/dist/cjs/mapViewUtils-6fa5bab1.js +271 -0
  254. package/dist/cjs/mk-147994ea.js +67 -0
  255. package/dist/cjs/mode-a0417ce5.js +27 -0
  256. package/dist/cjs/nb-f3d75f05.js +68 -0
  257. package/dist/cjs/nl-cb0a22c8.js +68 -0
  258. package/dist/cjs/observers-5923a7cc.js +58 -0
  259. package/dist/cjs/openCloseComponent-8d9cb545.js +140 -0
  260. package/dist/cjs/parser-e80279bf.js +1656 -0
  261. package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
  262. package/dist/cjs/pdf-download.cjs.entry.js +359 -0
  263. package/dist/cjs/pl-ade28edd.js +115 -0
  264. package/dist/cjs/popupUtils-4de17e65.js +96 -0
  265. package/dist/cjs/pt-5543b782.js +68 -0
  266. package/dist/cjs/pt-br-bdce1868.js +66 -0
  267. package/dist/cjs/public-notification.cjs.entry.js +12 -11
  268. package/dist/cjs/publicNotificationStore-f690e171.js +47 -0
  269. package/dist/cjs/purify-557ad134.js +1715 -0
  270. package/dist/cjs/queryUtils-aba29fcf.js +253 -0
  271. package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
  272. package/dist/cjs/refine-selection.cjs.entry.js +411 -0
  273. package/dist/cjs/resources-2ccf85d3.js +53 -0
  274. package/dist/cjs/resources-37006465.js +29 -0
  275. package/dist/cjs/resources-63b3a6b8.js +116 -0
  276. package/dist/cjs/resources-a2b1b149.js +49 -0
  277. package/dist/cjs/resources-ac626172.js +26 -0
  278. package/dist/cjs/resources-b0cc39b4.js +30 -0
  279. package/dist/cjs/ro-f4bb9704.js +67 -0
  280. package/dist/cjs/ru-ba86b627.js +127 -0
  281. package/dist/cjs/shadow-css-bbaea014.js +483 -0
  282. package/dist/cjs/share-item.cjs.entry.js +1 -1
  283. package/dist/cjs/shared-list-render-c8555864.js +370 -0
  284. package/dist/cjs/sk-ac03aca5.js +149 -0
  285. package/dist/cjs/sl-c68e3fd0.js +169 -0
  286. package/dist/cjs/solution-configuration.cjs.entry.js +21 -1105
  287. package/dist/cjs/solution-contents.cjs.entry.js +84 -0
  288. package/dist/cjs/solution-item-details.cjs.entry.js +199 -0
  289. package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
  290. package/dist/cjs/solution-item-sharing.cjs.entry.js +139 -0
  291. package/dist/cjs/solution-item.cjs.entry.js +106 -0
  292. package/dist/cjs/solution-organization-variables.cjs.entry.js +95 -0
  293. package/dist/cjs/solution-resource-item.cjs.entry.js +284 -0
  294. package/dist/cjs/solution-spatial-ref.cjs.entry.js +158 -0
  295. package/dist/cjs/solution-store-6194ba89.js +589 -0
  296. package/dist/cjs/solution-template-data.cjs.entry.js +119 -0
  297. package/dist/cjs/solution-variables.cjs.entry.js +107 -0
  298. package/dist/cjs/solutions-components.cjs.js +36 -5
  299. package/dist/cjs/sortableComponent-5e3419af.js +3443 -0
  300. package/dist/cjs/spatial-ref.cjs.entry.js +7 -6
  301. package/dist/cjs/sr-80f65cf0.js +102 -0
  302. package/dist/cjs/store-1f422ad4.js +91 -0
  303. package/dist/cjs/store-manager.cjs.entry.js +1 -1
  304. package/dist/cjs/sv-eee15401.js +72 -0
  305. package/dist/cjs/t9n-463dcbff.js +103 -0
  306. package/dist/cjs/th-f90768db.js +66 -0
  307. package/dist/cjs/time-4a9bf7e2.js +289 -0
  308. package/dist/cjs/tr-37fec0b5.js +67 -0
  309. package/dist/cjs/uk-3041a292.js +105 -0
  310. package/dist/cjs/utils-3a633152.js +64 -0
  311. package/dist/cjs/utils-7281bf72.js +110 -0
  312. package/dist/cjs/utils-72a66b3c.js +66 -0
  313. package/dist/cjs/utils-934ee777.js +142 -0
  314. package/dist/cjs/{utils-ea7a5a63.js → utils-ac836e7a.js} +1 -1
  315. package/dist/cjs/utils-b276a49d.js +226 -0
  316. package/dist/cjs/vi-57a02ad1.js +71 -0
  317. package/dist/cjs/zh-cn-165c486d.js +95 -0
  318. package/dist/cjs/zh-hk-0aa560a6.js +72 -0
  319. package/dist/cjs/zh-tw-42d975f0.js +93 -0
  320. package/dist/collection/utils/downloadUtils.js +36 -5
  321. package/dist/collection/utils/downloadUtils.ts +44 -5
  322. package/dist/collection/utils/test/downloadUtils.spec.js +33 -1
  323. package/dist/collection/utils/test/downloadUtils.spec.tsx +40 -1
  324. package/dist/components/ExpandToggle.js +8 -8
  325. package/dist/components/InitiativeUiSchemaEdit.js +26 -0
  326. package/dist/components/ProjectUiSchemaCreate.js +122 -0
  327. package/dist/components/ProjectUiSchemaEdit.js +176 -0
  328. package/dist/components/_commonjsHelpers.js +10 -2
  329. package/dist/components/action-bar.js +3 -3
  330. package/dist/components/action-group.js +1 -1
  331. package/dist/components/action-menu.js +1 -1
  332. package/dist/components/action-pad.js +1 -1
  333. package/dist/components/action.js +1 -1
  334. package/dist/components/alert.js +2 -2
  335. package/dist/components/arcgis-login.js +1 -1
  336. package/dist/components/avatar.js +1 -1
  337. package/dist/components/basemap-gallery2.js +1 -1
  338. package/dist/components/block.js +1 -1
  339. package/dist/components/buffer-tools2.js +1 -1
  340. package/dist/components/button.js +1 -1
  341. package/dist/components/calcite-accordion-item.js +1 -1
  342. package/dist/components/calcite-accordion.js +1 -1
  343. package/dist/components/calcite-block-section.js +1 -1
  344. package/dist/components/calcite-card.js +1 -1
  345. package/dist/components/calcite-chip-group.js +1 -1
  346. package/dist/components/calcite-color-picker.js +5 -5
  347. package/dist/components/calcite-combobox-item-group.js +1 -1
  348. package/dist/components/calcite-fab.js +1 -1
  349. package/dist/components/calcite-inline-editable.js +1 -1
  350. package/dist/components/calcite-input-time-picker.js +5 -1
  351. package/dist/components/calcite-input-time-zone.js +2 -2
  352. package/dist/components/calcite-list-item-group.js +1 -1
  353. package/dist/components/calcite-menu-item.js +1 -1
  354. package/dist/components/calcite-meter.js +1 -1
  355. package/dist/components/calcite-navigation-logo.js +1 -1
  356. package/dist/components/calcite-navigation-user.js +1 -1
  357. package/dist/components/calcite-navigation.js +1 -1
  358. package/dist/components/calcite-option-group.js +1 -1
  359. package/dist/components/calcite-pick-list-group.js +3 -3
  360. package/dist/components/calcite-pick-list.js +1 -1
  361. package/dist/components/calcite-radio-button-group.js +1 -1
  362. package/dist/components/calcite-rating.js +3 -1
  363. package/dist/components/calcite-sheet.js +1 -1
  364. package/dist/components/calcite-shell-center-row.js +1 -1
  365. package/dist/components/calcite-sortable-list.js +1 -1
  366. package/dist/components/calcite-split-button.js +1 -1
  367. package/dist/components/calcite-stepper-item.js +1 -1
  368. package/dist/components/calcite-stepper.js +1 -1
  369. package/dist/components/calcite-table-row.js +1 -1
  370. package/dist/components/calcite-table.js +1 -1
  371. package/dist/components/calcite-text-area.js +2 -2
  372. package/dist/components/calcite-tile-select-group.js +1 -1
  373. package/dist/components/calcite-tile-select.js +1 -1
  374. package/dist/components/calcite-tile.js +1 -1
  375. package/dist/components/calcite-tip-group.js +1 -1
  376. package/dist/components/calcite-tip-manager.js +8 -1
  377. package/dist/components/calcite-tip.js +2 -2
  378. package/dist/components/card-manager2.js +1 -1
  379. package/dist/components/checkbox.js +1 -1
  380. package/dist/components/chip.js +1 -1
  381. package/dist/components/color-picker-hex-input.js +2 -2
  382. package/dist/components/color-picker-swatch.js +1 -1
  383. package/dist/components/combobox-item.js +1 -1
  384. package/dist/components/combobox.js +314 -3
  385. package/dist/components/consent-manager.js +376 -13
  386. package/dist/components/create-feature2.js +1 -1
  387. package/dist/components/crowdsource-manager.js +1 -1
  388. package/dist/components/crowdsource-reporter.js +1 -1
  389. package/dist/components/date-picker-day.js +1 -1
  390. package/dist/components/date-picker-month-header.js +1 -1
  391. package/dist/components/date-picker-month.js +1 -1
  392. package/dist/components/date-picker.js +1 -1
  393. package/dist/components/deduct-calculator2.js +1 -1
  394. package/dist/components/delete-button2.js +1 -1
  395. package/dist/components/dom.js +28 -1
  396. package/dist/components/downloadUtils.js +1213 -102
  397. package/dist/components/dropdown-group.js +1 -1
  398. package/dist/components/dropdown-item.js +1 -1
  399. package/dist/components/dropdown.js +1 -1
  400. package/dist/components/edit-card2.js +1 -1
  401. package/dist/components/esri-loader.js +8 -3
  402. package/dist/components/feature-comments.js +1 -1
  403. package/dist/components/feature-form-flow-item.js +1 -1
  404. package/dist/components/feature-list2.js +1 -1
  405. package/dist/components/features-flow-item.js +1 -1
  406. package/dist/components/filter.js +1 -718
  407. package/dist/components/filter2.js +2 -2
  408. package/dist/components/floating-ui.js +384 -7
  409. package/dist/components/floor-filter2.js +1 -1
  410. package/dist/components/flow-item.js +1 -1
  411. package/dist/components/flow.js +1 -1
  412. package/dist/components/focusTrapComponent.js +1 -1
  413. package/dist/components/form.js +1 -1
  414. package/dist/components/graph.js +1 -1
  415. package/dist/components/handle.js +1 -1
  416. package/dist/components/helpers.js +6 -2
  417. package/dist/components/html2canvas.js +8 -3
  418. package/dist/components/icon.js +1 -1
  419. package/dist/components/index.es.js +555 -22
  420. package/dist/components/index.js +16 -0
  421. package/dist/components/index2.js +3 -0
  422. package/dist/components/index3.js +41270 -1873
  423. package/dist/components/index5.js +2086 -185
  424. package/dist/components/index6.js +188 -55
  425. package/dist/components/index7.js +71 -0
  426. package/dist/components/info-card2.js +1 -1
  427. package/dist/components/input-date-picker.js +1 -1
  428. package/dist/components/input-message.js +1 -1
  429. package/dist/components/input-number.js +1 -1
  430. package/dist/components/input-text.js +1 -1
  431. package/dist/components/input.js +1 -1
  432. package/dist/components/instant-apps-ckeditor-wrapper2.js +1 -1
  433. package/dist/components/instant-apps-control-panel.js +1 -1
  434. package/dist/components/instant-apps-export.js +14 -8
  435. package/dist/components/instant-apps-filter-list2.js +2 -1
  436. package/dist/components/instant-apps-header2.js +2 -2
  437. package/dist/components/instant-apps-interactive-legend-classic2.js +10 -7
  438. package/dist/components/instant-apps-interactive-legend-count2.js +2 -2
  439. package/dist/components/instant-apps-interactive-legend-group-legend-element-caption.js +1 -1
  440. package/dist/components/instant-apps-interactive-legend-group-legend-element2.js +1 -1
  441. package/dist/components/instant-apps-interactive-legend-layer-element-caption2.js +1 -1
  442. package/dist/components/instant-apps-interactive-legend-layer-element2.js +1 -1
  443. package/dist/components/instant-apps-interactive-legend-legend-element-caption2.js +2 -2
  444. package/dist/components/instant-apps-interactive-legend-legend-element2.js +1 -1
  445. package/dist/components/instant-apps-interactive-legend-relationship2.js +1 -1
  446. package/dist/components/instant-apps-interactive-legend.js +1 -1
  447. package/dist/components/instant-apps-keyboard-shortcuts.js +1 -1
  448. package/dist/components/instant-apps-landing-page.js +2 -2
  449. package/dist/components/instant-apps-language-switcher.js +1 -1
  450. package/dist/components/instant-apps-language-translator-item2.js +1 -1
  451. package/dist/components/instant-apps-language-translator-search2.js +1 -1
  452. package/dist/components/instant-apps-language-translator2.js +1 -1
  453. package/dist/components/instant-apps-measurement-tool2.js +1 -1
  454. package/dist/components/instant-apps-measurement.js +2 -2
  455. package/dist/components/instant-apps-popover.js +1 -1
  456. package/dist/components/instant-apps-popovers.js +1 -1
  457. package/dist/components/instant-apps-scoreboard.js +1 -1
  458. package/dist/components/instant-apps-social-share2.js +14 -8
  459. package/dist/components/instant-apps-splash.js +18 -4
  460. package/dist/components/json-editor2.js +1 -1
  461. package/dist/components/key.js +28 -0
  462. package/dist/components/label.js +1 -1
  463. package/dist/components/label2.js +1 -1
  464. package/dist/components/languageUtil.js +23 -2
  465. package/dist/components/layer-list2.js +1 -1
  466. package/dist/components/layer-table2.js +1 -1
  467. package/dist/components/layout-manager.js +1 -1
  468. package/dist/components/link.js +1 -1
  469. package/dist/components/list-flow-item.js +1 -1
  470. package/dist/components/list-item.js +1 -1
  471. package/dist/components/list.js +2 -2
  472. package/dist/components/loadModules2.js +1 -1
  473. package/dist/components/loader.js +1 -1
  474. package/dist/components/locale.js +12 -0
  475. package/dist/components/locale2.js +2 -1
  476. package/dist/components/location-flow-item.js +1 -1
  477. package/dist/components/lodash.js +18025 -0
  478. package/dist/components/map-card2.js +1 -1
  479. package/dist/components/map-draw-tools2.js +1 -1
  480. package/dist/components/map-fullscreen2.js +1 -1
  481. package/dist/components/map-layer-picker2.js +1 -1
  482. package/dist/components/map-legend2.js +1 -1
  483. package/dist/components/map-picker2.js +1 -1
  484. package/dist/components/map-search2.js +1 -1
  485. package/dist/components/map-select-tools2.js +1 -1
  486. package/dist/components/map-tools2.js +3 -1
  487. package/dist/components/menu.js +1 -1
  488. package/dist/components/modal.js +7 -1
  489. package/dist/components/mode.js +8 -0
  490. package/dist/components/notice.js +1 -1
  491. package/dist/components/openCloseComponent.js +48 -0
  492. package/dist/components/option.js +1 -1
  493. package/dist/components/pagination.js +194 -1
  494. package/dist/components/panel.js +2 -1
  495. package/dist/components/parser.js +1654 -0
  496. package/dist/components/pci-calculator.js +1 -1
  497. package/dist/components/pdf-download2.js +1 -1
  498. package/dist/components/pick-list-item.js +1 -1
  499. package/dist/components/popover.js +1 -1
  500. package/dist/components/progress.js +1 -1
  501. package/dist/components/public-notification.js +1 -1
  502. package/dist/components/purify.js +5 -2
  503. package/dist/components/queryUtils.js +43 -0
  504. package/dist/components/radio-button.js +1 -1
  505. package/dist/components/refine-results-flow-item.js +1 -1
  506. package/dist/components/refine-selection2.js +1 -1
  507. package/dist/components/resources.js +17 -0
  508. package/dist/components/resources4.js +3 -0
  509. package/dist/components/scrim.js +1 -1
  510. package/dist/components/segmented-control-item.js +1 -1
  511. package/dist/components/segmented-control.js +1 -1
  512. package/dist/components/select.js +1 -1
  513. package/dist/components/share-item.js +1 -1
  514. package/dist/components/shared-list-render.js +6 -1
  515. package/dist/components/shell-panel.js +1 -1
  516. package/dist/components/shell.js +1 -1
  517. package/dist/components/slider.js +3 -1
  518. package/dist/components/solution-configuration.js +2 -1088
  519. package/dist/components/solution-contents2.js +1 -1
  520. package/dist/components/solution-item-details2.js +1 -1
  521. package/dist/components/solution-item-icon2.js +1 -1
  522. package/dist/components/solution-item-sharing2.js +1 -1
  523. package/dist/components/solution-item2.js +1 -1
  524. package/dist/components/solution-organization-variables2.js +1 -1
  525. package/dist/components/solution-resource-item2.js +2 -3
  526. package/dist/components/solution-spatial-ref2.js +1 -1
  527. package/dist/components/solution-store.js +1 -756
  528. package/dist/components/solution-template-data2.js +1 -1
  529. package/dist/components/solution-variables2.js +1 -1
  530. package/dist/components/sortableComponent.js +701 -0
  531. package/dist/components/spatial-ref2.js +263 -4
  532. package/dist/components/stack.js +1 -1
  533. package/dist/components/store-manager.js +1 -1
  534. package/dist/components/store.js +1 -0
  535. package/dist/components/switch.js +1 -1
  536. package/dist/components/t9n.js +1 -1
  537. package/dist/components/tab-nav.js +1 -1
  538. package/dist/components/tab-title.js +1 -1
  539. package/dist/components/tab.js +1 -1
  540. package/dist/components/table-cell.js +1 -1
  541. package/dist/components/table-header.js +1 -1
  542. package/dist/components/tabs.js +1 -1
  543. package/dist/components/time-picker.js +2 -2
  544. package/dist/components/tooltip.js +1 -1
  545. package/dist/components/tree-item.js +1 -1
  546. package/dist/components/tree.js +1 -1
  547. package/dist/components/utils.js +6 -1
  548. package/dist/components/utils2.js +1 -1
  549. package/dist/components/utils4.js +12 -0
  550. package/dist/components/value-list-item.js +1 -1
  551. package/dist/components/value-list.js +4 -1
  552. package/dist/esm/ExpandToggle-22fd2faa.js +110 -0
  553. package/dist/esm/FloatingArrow-de6fd1c7.js +48 -0
  554. package/dist/esm/Heading-f003a141.js +22 -0
  555. package/dist/esm/InitiativeUiSchemaEdit-8ddacfe8.js +26 -0
  556. package/dist/esm/ProjectUiSchemaCreate-dd179c0f.js +124 -0
  557. package/dist/esm/ProjectUiSchemaEdit-fbfdf6e4.js +176 -0
  558. package/dist/esm/Validation-59a77488.js +18 -0
  559. package/dist/esm/_commonjsHelpers-3cd6d4ee.js +49 -0
  560. package/dist/esm/app-globals-928553ab.js +67 -0
  561. package/dist/esm/ar-75ffdabb.js +103 -0
  562. package/dist/esm/arcgis-login.entry.js +1 -1
  563. package/dist/esm/basemap-gallery.entry.js +117 -0
  564. package/dist/esm/bg-fac0bf10.js +81 -0
  565. package/dist/esm/browser-b8d08bed.js +26 -0
  566. package/dist/esm/bs-c03c8ef2.js +50 -0
  567. package/dist/esm/buffer-tools.entry.js +253 -0
  568. package/dist/esm/ca-29e49f82.js +70 -0
  569. package/dist/esm/calcite-accordion-item.entry.js +5 -5
  570. package/dist/esm/calcite-accordion.entry.js +2 -2
  571. package/dist/esm/calcite-action-bar.entry.js +11 -11
  572. package/dist/esm/calcite-action-group.entry.js +12 -12
  573. package/dist/esm/calcite-action-menu.entry.js +291 -0
  574. package/dist/esm/calcite-action-pad.entry.js +165 -0
  575. package/dist/esm/calcite-action-pad_2.entry.js +1 -1
  576. package/dist/esm/calcite-action.entry.js +184 -0
  577. package/dist/esm/calcite-alert.entry.js +318 -0
  578. package/dist/esm/calcite-avatar.entry.js +4 -4
  579. package/dist/esm/calcite-block-section.entry.js +8 -8
  580. package/dist/esm/calcite-block.entry.js +210 -0
  581. package/dist/esm/calcite-button.entry.js +13 -13
  582. package/dist/esm/calcite-card.entry.js +8 -8
  583. package/dist/esm/calcite-checkbox.entry.js +9 -9
  584. package/dist/esm/calcite-chip-group.entry.js +7 -7
  585. package/dist/esm/calcite-chip.entry.js +258 -0
  586. package/dist/esm/calcite-color-picker-hex-input.entry.js +270 -0
  587. package/dist/esm/calcite-color-picker-swatch.entry.js +95 -0
  588. package/dist/esm/calcite-color-picker.entry.js +16 -16
  589. package/dist/esm/calcite-combobox-item-group.entry.js +4 -4
  590. package/dist/esm/calcite-combobox-item.entry.js +141 -0
  591. package/dist/esm/calcite-combobox.entry.js +1427 -0
  592. package/dist/esm/calcite-date-picker-day.entry.js +93 -0
  593. package/dist/esm/calcite-date-picker-month-header.entry.js +203 -0
  594. package/dist/esm/calcite-date-picker-month.entry.js +358 -0
  595. package/dist/esm/calcite-date-picker.entry.js +456 -0
  596. package/dist/esm/calcite-dropdown-group.entry.js +81 -0
  597. package/dist/esm/calcite-dropdown-item.entry.js +184 -0
  598. package/dist/esm/calcite-dropdown.entry.js +426 -0
  599. package/dist/esm/calcite-fab.entry.js +6 -6
  600. package/dist/esm/calcite-filter.entry.js +175 -0
  601. package/dist/esm/calcite-flow-item.entry.js +194 -0
  602. package/dist/esm/calcite-flow.entry.js +149 -0
  603. package/dist/esm/calcite-graph.entry.js +222 -0
  604. package/dist/esm/calcite-handle.entry.js +200 -0
  605. package/dist/esm/calcite-icon.entry.js +5 -5
  606. package/dist/esm/calcite-inline-editable.entry.js +11 -11
  607. package/dist/esm/calcite-input-date-picker.entry.js +740 -0
  608. package/dist/esm/calcite-input-date-picker_3.entry.js +16 -10
  609. package/dist/esm/calcite-input-message.entry.js +66 -0
  610. package/dist/esm/calcite-input-number.entry.js +13 -13
  611. package/dist/esm/calcite-input-text.entry.js +13 -13
  612. package/dist/esm/calcite-input-time-picker-e5cd4d26.js +1851 -0
  613. package/dist/esm/calcite-input-time-picker.entry.js +17 -17
  614. package/dist/esm/calcite-input-time-zone.entry.js +12 -12
  615. package/dist/esm/calcite-input.entry.js +691 -0
  616. package/dist/esm/calcite-label.entry.js +4 -4
  617. package/dist/esm/calcite-link.entry.js +6 -6
  618. package/dist/esm/calcite-list-item-group.entry.js +4 -4
  619. package/dist/esm/calcite-list-item.entry.js +450 -0
  620. package/dist/esm/calcite-list.entry.js +563 -0
  621. package/dist/esm/calcite-loader.entry.js +76 -0
  622. package/dist/esm/calcite-menu-item.entry.js +8 -8
  623. package/dist/esm/calcite-menu.entry.js +8 -8
  624. package/dist/esm/calcite-meter.entry.js +8 -8
  625. package/dist/esm/calcite-modal.entry.js +17 -11
  626. package/dist/esm/calcite-navigation-logo.entry.js +2 -2
  627. package/dist/esm/calcite-navigation-user.entry.js +2 -2
  628. package/dist/esm/calcite-navigation.entry.js +4 -4
  629. package/dist/esm/calcite-notice.entry.js +10 -10
  630. package/dist/esm/calcite-option-group.entry.js +1 -1
  631. package/dist/esm/calcite-option.entry.js +84 -0
  632. package/dist/esm/calcite-pagination.entry.js +201 -8
  633. package/dist/esm/calcite-panel.entry.js +266 -0
  634. package/dist/esm/calcite-pick-list-group.entry.js +6 -6
  635. package/dist/esm/calcite-pick-list-item.entry.js +13 -13
  636. package/dist/esm/calcite-pick-list.entry.js +10 -10
  637. package/dist/esm/calcite-popover.entry.js +414 -0
  638. package/dist/esm/calcite-progress.entry.js +37 -0
  639. package/dist/esm/calcite-radio-button-group.entry.js +4 -4
  640. package/dist/esm/calcite-radio-button.entry.js +8 -8
  641. package/dist/esm/calcite-rating.entry.js +14 -12
  642. package/dist/esm/calcite-scrim.entry.js +7 -7
  643. package/dist/esm/calcite-segmented-control-item.entry.js +66 -0
  644. package/dist/esm/calcite-segmented-control.entry.js +241 -0
  645. package/dist/esm/calcite-select.entry.js +231 -0
  646. package/dist/esm/calcite-sheet.entry.js +7 -7
  647. package/dist/esm/calcite-shell-center-row.entry.js +5 -5
  648. package/dist/esm/calcite-shell-panel.entry.js +410 -0
  649. package/dist/esm/calcite-shell.entry.js +170 -0
  650. package/dist/esm/calcite-slider.entry.js +840 -0
  651. package/dist/esm/calcite-sortable-list.entry.js +7 -7
  652. package/dist/esm/calcite-split-button.entry.js +4 -4
  653. package/dist/esm/calcite-stack.entry.js +70 -0
  654. package/dist/esm/calcite-stepper-item.entry.js +10 -10
  655. package/dist/esm/calcite-stepper.entry.js +7 -7
  656. package/dist/esm/calcite-switch.entry.js +9 -9
  657. package/dist/esm/calcite-tab-nav.entry.js +259 -0
  658. package/dist/esm/calcite-tab-title.entry.js +287 -0
  659. package/dist/esm/calcite-tab.entry.js +108 -0
  660. package/dist/esm/calcite-table-cell.entry.js +152 -0
  661. package/dist/esm/calcite-table-header.entry.js +165 -0
  662. package/dist/esm/calcite-table-row.entry.js +6 -6
  663. package/dist/esm/calcite-table.entry.js +9 -9
  664. package/dist/esm/calcite-tabs.entry.js +174 -0
  665. package/dist/esm/calcite-text-area.entry.js +14 -15
  666. package/dist/esm/calcite-tile-select-group.entry.js +3 -3
  667. package/dist/esm/calcite-tile-select.entry.js +4 -4
  668. package/dist/esm/calcite-tile.entry.js +7 -7
  669. package/dist/esm/calcite-time-picker.entry.js +9 -9
  670. package/dist/esm/calcite-tip-group.entry.js +1 -1
  671. package/dist/esm/calcite-tip-manager.entry.js +15 -8
  672. package/dist/esm/calcite-tip.entry.js +9 -9
  673. package/dist/esm/calcite-tooltip.entry.js +7 -7
  674. package/dist/esm/calcite-tree-item.entry.js +292 -0
  675. package/dist/esm/calcite-tree.entry.js +311 -0
  676. package/dist/esm/calcite-value-list-item.entry.js +153 -0
  677. package/dist/esm/calcite-value-list.entry.js +322 -0
  678. package/dist/esm/card-manager.entry.js +103 -0
  679. package/dist/esm/card-manager_3.entry.js +1 -1
  680. package/dist/esm/common-7e0dcaa2.js +295 -0
  681. package/dist/esm/conditionalSlot-a395417e.js +60 -0
  682. package/dist/esm/consent-manager.entry.js +379 -15
  683. package/dist/esm/create-feature.entry.js +259 -0
  684. package/dist/esm/crowdsource-manager.entry.js +7 -5
  685. package/dist/esm/crowdsource-reporter.entry.js +7 -5
  686. package/dist/esm/cs-04f36d01.js +146 -0
  687. package/dist/esm/da-5a3b8600.js +65 -0
  688. package/dist/esm/date-74c7f03b.js +245 -0
  689. package/dist/esm/de-579cda2e.js +90 -0
  690. package/dist/esm/de-at-52bf1c4c.js +89 -0
  691. package/dist/esm/de-ch-12d03480.js +89 -0
  692. package/dist/esm/deduct-calculator.entry.js +1 -1
  693. package/dist/esm/delete-button.entry.js +146 -0
  694. package/dist/esm/dom-b91aa537.js +1083 -0
  695. package/dist/esm/{downloadUtils-a6c0e25f.js → downloadUtils-01e2cb56.js} +37 -6
  696. package/dist/esm/downloadUtils-b3220f86.js +4240 -0
  697. package/dist/esm/edit-card.entry.js +224 -0
  698. package/dist/esm/el-c18d3ea4.js +65 -0
  699. package/dist/esm/en-au-2599e6da.js +65 -0
  700. package/dist/esm/en-ca-8cfbe6bc.js +64 -0
  701. package/dist/esm/en-gb-5e4e8a1e.js +68 -0
  702. package/dist/esm/es-d86f9957.js +65 -0
  703. package/dist/esm/es-mx-f99d9fd1.js +64 -0
  704. package/dist/esm/esri-loader-af2bbfd5.js +306 -0
  705. package/dist/esm/et-8bf52e57.js +91 -0
  706. package/dist/esm/feature-comments.entry.js +1 -1
  707. package/dist/esm/feature-form-flow-item.entry.js +1 -1
  708. package/dist/esm/feature-list.entry.js +195 -0
  709. package/dist/esm/features-flow-item.entry.js +1 -1
  710. package/dist/esm/fi-aeb49e52.js +114 -0
  711. package/dist/esm/filter-0d00d2e2.js +46 -0
  712. package/dist/esm/floating-ui-b3256614.js +2342 -0
  713. package/dist/esm/floor-filter.entry.js +107 -0
  714. package/dist/esm/focusTrapComponent-2fe6623b.js +1023 -0
  715. package/dist/esm/form-f2181470.js +307 -0
  716. package/dist/esm/fr-6200cc01.js +67 -0
  717. package/dist/esm/fr-ch-df62bb30.js +65 -0
  718. package/dist/esm/he-07ace6cb.js +104 -0
  719. package/dist/esm/helpers-85ca7251.js +807 -0
  720. package/dist/esm/{helpers-aeddac74.js → helpers-f9256189.js} +1 -1
  721. package/dist/esm/hi-5aa9519e.js +64 -0
  722. package/dist/esm/hr-e0614bed.js +79 -0
  723. package/dist/esm/html2canvas-d52e7c8d.js +7845 -0
  724. package/dist/esm/hu-732fe37c.js +87 -0
  725. package/dist/esm/id-0832fc24.js +65 -0
  726. package/dist/esm/index-7fc1cba9.js +41502 -0
  727. package/dist/esm/index-91eeaf01.js +199 -0
  728. package/dist/esm/index-b1fb529b.js +1956 -0
  729. package/dist/esm/index-bdfaac50.js +4145 -0
  730. package/dist/esm/index.es-3db60115.js +11256 -0
  731. package/dist/esm/{index.es-b0a676ae.js → index.es-ac6f5e76.js} +1 -1
  732. package/dist/esm/index.js +15 -0
  733. package/dist/esm/info-card.entry.js +316 -0
  734. package/dist/esm/instant-apps-ckeditor-wrapper.entry.js +121 -0
  735. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +4 -4
  736. package/dist/esm/instant-apps-control-panel.entry.js +4 -4
  737. package/dist/esm/instant-apps-export.entry.js +20 -14
  738. package/dist/esm/instant-apps-filter-list.entry.js +1055 -0
  739. package/dist/esm/instant-apps-header.entry.js +5 -4
  740. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +15 -11
  741. package/dist/esm/instant-apps-interactive-legend-count.entry.js +100 -0
  742. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +2 -2
  743. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +7 -6
  744. package/dist/esm/instant-apps-interactive-legend-group-legend-element.entry.js +52 -0
  745. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +2 -2
  746. package/dist/esm/instant-apps-interactive-legend-layer-element-caption.entry.js +51 -0
  747. package/dist/esm/instant-apps-interactive-legend-layer-element.entry.js +53 -0
  748. package/dist/esm/instant-apps-interactive-legend-legend-element-caption.entry.js +100 -0
  749. package/dist/esm/instant-apps-interactive-legend-legend-element.entry.js +61 -0
  750. package/dist/esm/instant-apps-interactive-legend-relationship.entry.js +548 -0
  751. package/dist/esm/instant-apps-interactive-legend.entry.js +9 -8
  752. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +6 -6
  753. package/dist/esm/instant-apps-landing-page.entry.js +2 -2
  754. package/dist/esm/instant-apps-language-switcher.entry.js +9 -9
  755. package/dist/esm/instant-apps-language-translator-item.entry.js +380 -0
  756. package/dist/esm/instant-apps-language-translator-search.entry.js +101 -0
  757. package/dist/esm/instant-apps-language-translator.entry.js +9 -9
  758. package/dist/esm/instant-apps-measurement-tool.entry.js +135 -0
  759. package/dist/esm/instant-apps-measurement.entry.js +7 -7
  760. package/dist/esm/instant-apps-popover.entry.js +6 -6
  761. package/dist/esm/instant-apps-popovers.entry.js +1 -1
  762. package/dist/esm/instant-apps-scoreboard.entry.js +6 -6
  763. package/dist/esm/instant-apps-social-share.entry.js +511 -0
  764. package/dist/esm/instant-apps-splash.entry.js +17 -8
  765. package/dist/esm/interactive-71585ecc.js +139 -0
  766. package/dist/esm/it-142bc820.js +65 -0
  767. package/dist/esm/it-ch-1ad1f0ac.js +65 -0
  768. package/dist/esm/ja-6a33e9d4.js +71 -0
  769. package/dist/esm/json-editor.entry.js +402 -0
  770. package/dist/esm/key-9a10d862.js +44 -0
  771. package/dist/esm/ko-d61df01d.js +71 -0
  772. package/dist/esm/label-16184ce7.js +179 -0
  773. package/dist/esm/{languageSwitcher-4faa659f.js → languageSwitcher-068998b1.js} +1 -1
  774. package/dist/esm/languageSwitcher-2a9037e5.js +55 -0
  775. package/dist/esm/{languageUtil-dc3111c1.js → languageUtil-035e7728.js} +1 -1
  776. package/dist/esm/languageUtil-71a7a914.js +87 -0
  777. package/dist/esm/layer-list.entry.js +203 -0
  778. package/dist/esm/layer-table.entry.js +1483 -0
  779. package/dist/esm/layout-manager.entry.js +5 -4
  780. package/dist/esm/list-flow-item.entry.js +1 -1
  781. package/dist/esm/{loadModules-877bbb89.js → loadModules-7a5f1022.js} +1 -1
  782. package/dist/esm/loadModules-827c5581.js +28 -0
  783. package/dist/esm/loadModules-acccbc1c.js +21 -0
  784. package/dist/esm/loadable-aea90723.js +92 -0
  785. package/dist/esm/loader.js +5 -5
  786. package/dist/esm/{locale-bd9034e1.js → locale-4cab280d.js} +2 -2
  787. package/dist/esm/locale-4cfbae3e.js +86 -0
  788. package/dist/esm/locale-857f39cf.js +572 -0
  789. package/dist/esm/locale-d9463a95.js +148 -0
  790. package/dist/esm/location-flow-item.entry.js +1 -1
  791. package/dist/esm/lodash-98e4b7d0.js +18025 -0
  792. package/dist/esm/lt-652c530a.js +96 -0
  793. package/dist/esm/lv-84e48ed0.js +65 -0
  794. package/dist/esm/map-card.entry.js +188 -0
  795. package/dist/esm/map-draw-tools.entry.js +354 -0
  796. package/dist/esm/map-fullscreen.entry.js +112 -0
  797. package/dist/esm/map-layer-picker.entry.js +342 -0
  798. package/dist/esm/map-legend.entry.js +105 -0
  799. package/dist/esm/map-picker.entry.js +170 -0
  800. package/dist/esm/map-search.entry.js +180 -0
  801. package/dist/esm/map-select-tools.entry.js +794 -0
  802. package/dist/esm/map-select-tools_3.entry.js +1 -1
  803. package/dist/esm/map-tools.entry.js +371 -0
  804. package/dist/esm/mapViewUtils-436a516e.js +261 -0
  805. package/dist/esm/mk-bbf2ee01.js +65 -0
  806. package/dist/esm/mode-f9bfc4e9.js +25 -0
  807. package/dist/esm/nb-ccfaa0f7.js +66 -0
  808. package/dist/esm/nl-4bc56289.js +66 -0
  809. package/dist/esm/observers-5ba39eee.js +56 -0
  810. package/dist/esm/openCloseComponent-b4b3788b.js +138 -0
  811. package/dist/esm/parser-87982ce2.js +1654 -0
  812. package/dist/esm/pci-calculator.entry.js +1 -1
  813. package/dist/esm/pdf-download.entry.js +355 -0
  814. package/dist/esm/pl-1f435988.js +113 -0
  815. package/dist/esm/popupUtils-b61d7ffd.js +94 -0
  816. package/dist/esm/pt-4a05a00d.js +66 -0
  817. package/dist/esm/pt-br-9720547b.js +64 -0
  818. package/dist/esm/public-notification.entry.js +11 -10
  819. package/dist/esm/publicNotificationStore-208e26f0.js +45 -0
  820. package/dist/esm/purify-909c20fa.js +1713 -0
  821. package/dist/esm/queryUtils-2529c537.js +244 -0
  822. package/dist/esm/refine-results-flow-item.entry.js +1 -1
  823. package/dist/esm/refine-selection.entry.js +407 -0
  824. package/dist/esm/resources-0f8db821.js +45 -0
  825. package/dist/esm/resources-3c6947d3.js +26 -0
  826. package/dist/esm/resources-47b3ca40.js +106 -0
  827. package/dist/esm/resources-667afb5d.js +27 -0
  828. package/dist/esm/resources-9b2084c6.js +24 -0
  829. package/dist/esm/resources-bb6c11c3.js +49 -0
  830. package/dist/esm/ro-f87076a1.js +65 -0
  831. package/dist/esm/ru-e69ca895.js +125 -0
  832. package/dist/esm/shadow-css-f5236d52.js +481 -0
  833. package/dist/esm/share-item.entry.js +1 -1
  834. package/dist/esm/shared-list-render-a572ef93.js +348 -0
  835. package/dist/esm/sk-d632e850.js +147 -0
  836. package/dist/esm/sl-5099fa6f.js +167 -0
  837. package/dist/esm/solution-configuration.entry.js +9 -1093
  838. package/dist/esm/solution-contents.entry.js +80 -0
  839. package/dist/esm/solution-item-details.entry.js +195 -0
  840. package/dist/esm/solution-item-icon.entry.js +1 -1
  841. package/dist/esm/solution-item-sharing.entry.js +135 -0
  842. package/dist/esm/solution-item.entry.js +102 -0
  843. package/dist/esm/solution-organization-variables.entry.js +91 -0
  844. package/dist/esm/solution-resource-item.entry.js +280 -0
  845. package/dist/esm/solution-spatial-ref.entry.js +154 -0
  846. package/dist/esm/solution-store-31cccb90.js +587 -0
  847. package/dist/esm/solution-template-data.entry.js +115 -0
  848. package/dist/esm/solution-variables.entry.js +103 -0
  849. package/dist/esm/solutions-components.js +37 -6
  850. package/dist/esm/sortableComponent-e715a3dd.js +3439 -0
  851. package/dist/esm/spatial-ref.entry.js +7 -6
  852. package/dist/esm/sr-944b7fd7.js +100 -0
  853. package/dist/esm/store-194c1a01.js +87 -0
  854. package/dist/esm/store-manager.entry.js +1 -1
  855. package/dist/esm/sv-e481fa6a.js +70 -0
  856. package/dist/esm/t9n-b39c5433.js +98 -0
  857. package/dist/esm/th-60961669.js +64 -0
  858. package/dist/esm/time-4a90614b.js +274 -0
  859. package/dist/esm/tr-eba8dd86.js +65 -0
  860. package/dist/esm/uk-ec375ce0.js +103 -0
  861. package/dist/esm/utils-32df4a1e.js +133 -0
  862. package/dist/esm/utils-57e2ccde.js +61 -0
  863. package/dist/esm/{utils-28d0a086.js → utils-78fe6e5b.js} +1 -1
  864. package/dist/esm/utils-7db4ecdc.js +100 -0
  865. package/dist/esm/utils-95e9dd51.js +55 -0
  866. package/dist/esm/utils-cfbe589a.js +208 -0
  867. package/dist/esm/vi-29345f79.js +69 -0
  868. package/dist/esm/zh-cn-32c7c714.js +93 -0
  869. package/dist/esm/zh-hk-7c770845.js +70 -0
  870. package/dist/esm/zh-tw-c318be5c.js +91 -0
  871. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-header/instant-apps-header.css +1 -1
  872. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-scoreboard/instant-apps-scoreboard.css +1 -1
  873. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-social-share/instant-apps-social-share.css +8 -1
  874. package/dist/solutions-components/ExpandToggle-22fd2faa.js +110 -0
  875. package/dist/solutions-components/FloatingArrow-de6fd1c7.js +48 -0
  876. package/dist/solutions-components/Heading-f003a141.js +22 -0
  877. package/dist/solutions-components/InitiativeUiSchemaEdit-8ddacfe8.js +26 -0
  878. package/dist/solutions-components/ProjectUiSchemaCreate-dd179c0f.js +124 -0
  879. package/dist/solutions-components/ProjectUiSchemaEdit-fbfdf6e4.js +176 -0
  880. package/dist/solutions-components/Validation-59a77488.js +18 -0
  881. package/dist/solutions-components/_commonjsHelpers-3cd6d4ee.js +49 -0
  882. package/dist/solutions-components/app-globals-928553ab.js +67 -0
  883. package/dist/solutions-components/ar-75ffdabb.js +103 -0
  884. package/dist/solutions-components/arcgis-login.entry.js +56 -0
  885. package/dist/solutions-components/array-396bdf3c.js +15 -0
  886. package/dist/solutions-components/basemap-gallery.entry.js +117 -0
  887. package/dist/solutions-components/bg-fac0bf10.js +81 -0
  888. package/dist/solutions-components/breakpoints-f0f1417d.js +15 -0
  889. package/dist/solutions-components/browser-b8d08bed.js +26 -0
  890. package/dist/solutions-components/bs-c03c8ef2.js +50 -0
  891. package/dist/solutions-components/buffer-tools.entry.js +253 -0
  892. package/dist/solutions-components/ca-29e49f82.js +70 -0
  893. package/dist/solutions-components/calcite-accordion-item.entry.js +176 -0
  894. package/dist/solutions-components/calcite-accordion.entry.js +81 -0
  895. package/dist/solutions-components/calcite-action-bar.entry.js +252 -0
  896. package/dist/solutions-components/calcite-action-group.entry.js +112 -0
  897. package/dist/solutions-components/calcite-action-menu.entry.js +291 -0
  898. package/dist/solutions-components/calcite-action-pad.entry.js +165 -0
  899. package/dist/solutions-components/calcite-action.entry.js +184 -0
  900. package/dist/solutions-components/calcite-alert.entry.js +318 -0
  901. package/dist/solutions-components/calcite-avatar.entry.js +146 -0
  902. package/dist/solutions-components/calcite-block-section.entry.js +162 -0
  903. package/dist/solutions-components/calcite-block.entry.js +210 -0
  904. package/dist/solutions-components/calcite-button.entry.js +227 -0
  905. package/dist/solutions-components/calcite-card.entry.js +132 -0
  906. package/dist/solutions-components/calcite-checkbox.entry.js +134 -0
  907. package/dist/solutions-components/calcite-chip-group.entry.js +175 -0
  908. package/dist/solutions-components/calcite-chip.entry.js +258 -0
  909. package/dist/solutions-components/calcite-color-picker-hex-input.entry.js +270 -0
  910. package/dist/solutions-components/calcite-color-picker-swatch.entry.js +95 -0
  911. package/dist/solutions-components/calcite-color-picker.entry.js +906 -0
  912. package/dist/solutions-components/calcite-combobox-item-group.entry.js +56 -0
  913. package/dist/solutions-components/calcite-combobox-item.entry.js +141 -0
  914. package/dist/solutions-components/calcite-combobox.entry.js +1427 -0
  915. package/dist/solutions-components/calcite-date-picker-day.entry.js +93 -0
  916. package/dist/solutions-components/calcite-date-picker-month-header.entry.js +203 -0
  917. package/dist/solutions-components/calcite-date-picker-month.entry.js +358 -0
  918. package/dist/solutions-components/calcite-date-picker.entry.js +456 -0
  919. package/dist/solutions-components/calcite-dropdown-group.entry.js +81 -0
  920. package/dist/solutions-components/calcite-dropdown-item.entry.js +184 -0
  921. package/dist/solutions-components/calcite-dropdown.entry.js +426 -0
  922. package/dist/solutions-components/calcite-fab.entry.js +90 -0
  923. package/dist/solutions-components/calcite-filter.entry.js +175 -0
  924. package/dist/solutions-components/calcite-flow-item.entry.js +194 -0
  925. package/dist/solutions-components/calcite-flow.entry.js +149 -0
  926. package/dist/solutions-components/calcite-graph.entry.js +222 -0
  927. package/dist/solutions-components/calcite-handle.entry.js +200 -0
  928. package/dist/solutions-components/calcite-icon.entry.js +179 -0
  929. package/dist/solutions-components/calcite-inline-editable.entry.js +253 -0
  930. package/dist/solutions-components/calcite-input-date-picker.entry.js +740 -0
  931. package/dist/solutions-components/calcite-input-message.entry.js +66 -0
  932. package/dist/solutions-components/calcite-input-number.entry.js +610 -0
  933. package/dist/solutions-components/calcite-input-text.entry.js +349 -0
  934. package/dist/solutions-components/calcite-input-time-picker-e5cd4d26.js +1851 -0
  935. package/dist/solutions-components/calcite-input-time-picker.entry.js +25 -0
  936. package/dist/solutions-components/calcite-input-time-zone.entry.js +332 -0
  937. package/dist/solutions-components/calcite-input.entry.js +691 -0
  938. package/dist/solutions-components/calcite-label.entry.js +67 -0
  939. package/dist/solutions-components/calcite-link.entry.js +108 -0
  940. package/dist/solutions-components/calcite-list-item-group.entry.js +69 -0
  941. package/dist/solutions-components/calcite-list-item.entry.js +450 -0
  942. package/dist/solutions-components/calcite-list.entry.js +563 -0
  943. package/dist/solutions-components/calcite-loader.entry.js +76 -0
  944. package/dist/solutions-components/calcite-menu-item.entry.js +281 -0
  945. package/dist/solutions-components/calcite-menu.entry.js +180 -0
  946. package/dist/solutions-components/calcite-meter.entry.js +332 -0
  947. package/dist/solutions-components/calcite-modal.entry.js +394 -0
  948. package/dist/solutions-components/calcite-navigation-logo.entry.js +84 -0
  949. package/dist/solutions-components/calcite-navigation-user.entry.js +68 -0
  950. package/dist/solutions-components/calcite-navigation.entry.js +166 -0
  951. package/dist/solutions-components/calcite-notice.entry.js +163 -0
  952. package/dist/solutions-components/calcite-option-group.entry.js +35 -0
  953. package/dist/solutions-components/calcite-option.entry.js +84 -0
  954. package/dist/solutions-components/calcite-pagination.entry.js +554 -0
  955. package/dist/solutions-components/calcite-panel.entry.js +266 -0
  956. package/dist/solutions-components/calcite-pick-list-group.entry.js +57 -0
  957. package/dist/solutions-components/calcite-pick-list-item.entry.js +193 -0
  958. package/dist/solutions-components/calcite-pick-list.entry.js +142 -0
  959. package/dist/solutions-components/calcite-popover.entry.js +414 -0
  960. package/dist/solutions-components/calcite-progress.entry.js +37 -0
  961. package/dist/solutions-components/calcite-radio-button-group.entry.js +141 -0
  962. package/dist/solutions-components/calcite-radio-button.entry.js +318 -0
  963. package/dist/solutions-components/calcite-rating.entry.js +261 -0
  964. package/dist/solutions-components/calcite-scrim.entry.js +121 -0
  965. package/dist/solutions-components/calcite-segmented-control-item.entry.js +66 -0
  966. package/dist/solutions-components/calcite-segmented-control.entry.js +241 -0
  967. package/dist/solutions-components/calcite-select.entry.js +231 -0
  968. package/dist/solutions-components/calcite-sheet.entry.js +223 -0
  969. package/dist/solutions-components/calcite-shell-center-row.entry.js +66 -0
  970. package/dist/solutions-components/calcite-shell-panel.entry.js +410 -0
  971. package/dist/solutions-components/calcite-shell.entry.js +170 -0
  972. package/dist/solutions-components/calcite-slider.entry.js +840 -0
  973. package/dist/solutions-components/calcite-sortable-list.entry.js +166 -0
  974. package/dist/solutions-components/calcite-split-button.entry.js +112 -0
  975. package/dist/solutions-components/calcite-stack.entry.js +70 -0
  976. package/dist/solutions-components/calcite-stepper-item.entry.js +238 -0
  977. package/dist/solutions-components/calcite-stepper.entry.js +377 -0
  978. package/dist/solutions-components/calcite-switch.entry.js +113 -0
  979. package/dist/solutions-components/calcite-tab-nav.entry.js +259 -0
  980. package/dist/solutions-components/calcite-tab-title.entry.js +287 -0
  981. package/dist/solutions-components/calcite-tab.entry.js +108 -0
  982. package/dist/solutions-components/calcite-table-cell.entry.js +152 -0
  983. package/dist/solutions-components/calcite-table-header.entry.js +165 -0
  984. package/dist/solutions-components/calcite-table-row.entry.js +244 -0
  985. package/dist/solutions-components/calcite-table.entry.js +314 -0
  986. package/dist/solutions-components/calcite-tabs.entry.js +174 -0
  987. package/dist/solutions-components/calcite-text-area.entry.js +276 -0
  988. package/dist/solutions-components/calcite-tile-select-group.entry.js +39 -0
  989. package/dist/solutions-components/calcite-tile-select.entry.js +225 -0
  990. package/dist/solutions-components/calcite-tile.entry.js +75 -0
  991. package/dist/solutions-components/calcite-time-picker.entry.js +839 -0
  992. package/dist/solutions-components/calcite-tip-group.entry.js +21 -0
  993. package/dist/solutions-components/calcite-tip-manager.entry.js +227 -0
  994. package/dist/solutions-components/calcite-tip.entry.js +126 -0
  995. package/dist/solutions-components/calcite-tooltip.entry.js +434 -0
  996. package/dist/solutions-components/calcite-tree-item.entry.js +292 -0
  997. package/dist/solutions-components/calcite-tree.entry.js +311 -0
  998. package/dist/solutions-components/calcite-value-list-item.entry.js +153 -0
  999. package/dist/solutions-components/calcite-value-list.entry.js +322 -0
  1000. package/dist/solutions-components/card-manager.entry.js +103 -0
  1001. package/dist/solutions-components/common-7e0dcaa2.js +295 -0
  1002. package/dist/solutions-components/component-edd2c3cd.js +30 -0
  1003. package/dist/solutions-components/conditionalSlot-a395417e.js +60 -0
  1004. package/dist/solutions-components/consent-manager.entry.js +2139 -0
  1005. package/dist/solutions-components/create-feature.entry.js +259 -0
  1006. package/dist/solutions-components/crowdsource-manager.entry.js +494 -0
  1007. package/dist/solutions-components/crowdsource-reporter.entry.js +557 -0
  1008. package/dist/solutions-components/cs-04f36d01.js +146 -0
  1009. package/dist/solutions-components/da-5a3b8600.js +65 -0
  1010. package/dist/solutions-components/date-74c7f03b.js +245 -0
  1011. package/dist/solutions-components/de-579cda2e.js +90 -0
  1012. package/dist/solutions-components/de-at-52bf1c4c.js +89 -0
  1013. package/dist/solutions-components/de-ch-12d03480.js +89 -0
  1014. package/dist/solutions-components/deduct-calculator.entry.js +101 -0
  1015. package/dist/solutions-components/delete-button.entry.js +146 -0
  1016. package/dist/solutions-components/dom-b91aa537.js +1083 -0
  1017. package/dist/solutions-components/downloadUtils-b3220f86.js +4240 -0
  1018. package/dist/solutions-components/edit-card.entry.js +224 -0
  1019. package/dist/solutions-components/el-c18d3ea4.js +65 -0
  1020. package/dist/solutions-components/en-au-2599e6da.js +65 -0
  1021. package/dist/solutions-components/en-ca-8cfbe6bc.js +64 -0
  1022. package/dist/solutions-components/en-gb-5e4e8a1e.js +68 -0
  1023. package/dist/solutions-components/es-d86f9957.js +65 -0
  1024. package/dist/solutions-components/es-mx-f99d9fd1.js +64 -0
  1025. package/dist/solutions-components/esri-loader-af2bbfd5.js +306 -0
  1026. package/dist/solutions-components/et-8bf52e57.js +91 -0
  1027. package/dist/solutions-components/feature-comments.entry.js +56 -0
  1028. package/dist/solutions-components/feature-form-flow-item.entry.js +56 -0
  1029. package/dist/solutions-components/feature-list.entry.js +195 -0
  1030. package/dist/solutions-components/features-flow-item.entry.js +56 -0
  1031. package/dist/solutions-components/fi-aeb49e52.js +114 -0
  1032. package/dist/solutions-components/filter-0d00d2e2.js +46 -0
  1033. package/dist/solutions-components/floating-ui-b3256614.js +2342 -0
  1034. package/dist/solutions-components/floor-filter.entry.js +107 -0
  1035. package/dist/solutions-components/focusTrapComponent-2fe6623b.js +1023 -0
  1036. package/dist/solutions-components/form-f2181470.js +307 -0
  1037. package/dist/solutions-components/fr-6200cc01.js +67 -0
  1038. package/dist/solutions-components/fr-ch-df62bb30.js +65 -0
  1039. package/dist/solutions-components/guid-b75a5f7b.js +24 -0
  1040. package/dist/solutions-components/he-07ace6cb.js +104 -0
  1041. package/dist/solutions-components/helpers-85ca7251.js +807 -0
  1042. package/dist/solutions-components/hi-5aa9519e.js +64 -0
  1043. package/dist/solutions-components/hr-e0614bed.js +79 -0
  1044. package/dist/solutions-components/html2canvas-d52e7c8d.js +7845 -0
  1045. package/dist/solutions-components/hu-732fe37c.js +87 -0
  1046. package/dist/solutions-components/id-0832fc24.js +65 -0
  1047. package/dist/solutions-components/index-5110a27a.js +71 -0
  1048. package/dist/solutions-components/index-7fc1cba9.js +41502 -0
  1049. package/dist/solutions-components/index-91eeaf01.js +199 -0
  1050. package/dist/solutions-components/index-a1e91462.js +2105 -0
  1051. package/dist/solutions-components/index-b1fb529b.js +1956 -0
  1052. package/dist/solutions-components/index-bdfaac50.js +4145 -0
  1053. package/dist/solutions-components/index-d8ff08ed.js +204 -0
  1054. package/dist/solutions-components/index.es-3db60115.js +11256 -0
  1055. package/dist/solutions-components/index.esm.js +15 -0
  1056. package/dist/solutions-components/info-card.entry.js +316 -0
  1057. package/dist/solutions-components/instant-apps-ckeditor-wrapper.entry.js +121 -0
  1058. package/dist/solutions-components/instant-apps-control-panel.entry.js +94 -0
  1059. package/dist/solutions-components/instant-apps-export.entry.js +888 -0
  1060. package/dist/solutions-components/instant-apps-filter-list.entry.js +1055 -0
  1061. package/dist/solutions-components/instant-apps-header.entry.js +124 -0
  1062. package/dist/solutions-components/instant-apps-interactive-legend-classic.entry.js +1604 -0
  1063. package/dist/solutions-components/instant-apps-interactive-legend-count.entry.js +100 -0
  1064. package/dist/solutions-components/instant-apps-interactive-legend-group-legend-element-caption.entry.js +53 -0
  1065. package/dist/solutions-components/instant-apps-interactive-legend-group-legend-element.entry.js +52 -0
  1066. package/dist/solutions-components/instant-apps-interactive-legend-layer-element-caption.entry.js +51 -0
  1067. package/dist/solutions-components/instant-apps-interactive-legend-layer-element.entry.js +53 -0
  1068. package/dist/solutions-components/instant-apps-interactive-legend-legend-element-caption.entry.js +100 -0
  1069. package/dist/solutions-components/instant-apps-interactive-legend-legend-element.entry.js +61 -0
  1070. package/dist/solutions-components/instant-apps-interactive-legend-relationship.entry.js +548 -0
  1071. package/dist/solutions-components/instant-apps-interactive-legend.entry.js +112 -0
  1072. package/dist/solutions-components/instant-apps-keyboard-shortcuts.entry.js +139 -0
  1073. package/dist/solutions-components/instant-apps-landing-page.entry.js +114 -0
  1074. package/dist/solutions-components/instant-apps-language-switcher.entry.js +173 -0
  1075. package/dist/solutions-components/instant-apps-language-translator-item.entry.js +380 -0
  1076. package/dist/solutions-components/instant-apps-language-translator-search.entry.js +101 -0
  1077. package/dist/solutions-components/instant-apps-language-translator.entry.js +286 -0
  1078. package/dist/solutions-components/instant-apps-measurement-tool.entry.js +135 -0
  1079. package/dist/solutions-components/instant-apps-measurement.entry.js +66 -0
  1080. package/dist/solutions-components/instant-apps-popover.entry.js +74 -0
  1081. package/dist/solutions-components/instant-apps-popovers.entry.js +88 -0
  1082. package/dist/solutions-components/instant-apps-scoreboard.entry.js +463 -0
  1083. package/dist/solutions-components/instant-apps-social-share.entry.js +511 -0
  1084. package/dist/solutions-components/instant-apps-splash.entry.js +144 -0
  1085. package/dist/solutions-components/interactive-71585ecc.js +139 -0
  1086. package/dist/solutions-components/interfaces-586e863c.js +80 -0
  1087. package/dist/solutions-components/it-142bc820.js +65 -0
  1088. package/dist/solutions-components/it-ch-1ad1f0ac.js +65 -0
  1089. package/dist/solutions-components/ja-6a33e9d4.js +71 -0
  1090. package/dist/solutions-components/json-editor.entry.js +402 -0
  1091. package/dist/solutions-components/key-9a10d862.js +44 -0
  1092. package/dist/solutions-components/ko-d61df01d.js +71 -0
  1093. package/dist/solutions-components/label-16184ce7.js +179 -0
  1094. package/dist/solutions-components/languageSwitcher-2a9037e5.js +55 -0
  1095. package/dist/solutions-components/languageUtil-71a7a914.js +87 -0
  1096. package/dist/solutions-components/layer-list.entry.js +203 -0
  1097. package/dist/solutions-components/layer-table.entry.js +1483 -0
  1098. package/dist/solutions-components/layout-manager.entry.js +91 -0
  1099. package/dist/solutions-components/list-flow-item.entry.js +56 -0
  1100. package/dist/solutions-components/loadModules-827c5581.js +28 -0
  1101. package/dist/solutions-components/loadModules-acccbc1c.js +21 -0
  1102. package/dist/solutions-components/loadable-aea90723.js +92 -0
  1103. package/dist/solutions-components/locale-4cfbae3e.js +86 -0
  1104. package/dist/solutions-components/locale-857f39cf.js +572 -0
  1105. package/dist/solutions-components/locale-d9463a95.js +148 -0
  1106. package/dist/solutions-components/location-flow-item.entry.js +56 -0
  1107. package/dist/solutions-components/lodash-98e4b7d0.js +18025 -0
  1108. package/dist/solutions-components/lt-652c530a.js +96 -0
  1109. package/dist/solutions-components/lv-84e48ed0.js +65 -0
  1110. package/dist/solutions-components/map-card.entry.js +188 -0
  1111. package/dist/solutions-components/map-draw-tools.entry.js +354 -0
  1112. package/dist/solutions-components/map-fullscreen.entry.js +112 -0
  1113. package/dist/solutions-components/map-layer-picker.entry.js +342 -0
  1114. package/dist/solutions-components/map-legend.entry.js +105 -0
  1115. package/dist/solutions-components/map-picker.entry.js +170 -0
  1116. package/dist/solutions-components/map-search.entry.js +180 -0
  1117. package/dist/solutions-components/map-select-tools.entry.js +794 -0
  1118. package/dist/solutions-components/map-tools.entry.js +371 -0
  1119. package/dist/solutions-components/mapViewUtils-436a516e.js +261 -0
  1120. package/dist/solutions-components/math-efada7a9.js +54 -0
  1121. package/dist/solutions-components/mk-bbf2ee01.js +65 -0
  1122. package/dist/solutions-components/mode-f9bfc4e9.js +25 -0
  1123. package/dist/solutions-components/nb-ccfaa0f7.js +66 -0
  1124. package/dist/solutions-components/nl-4bc56289.js +66 -0
  1125. package/dist/solutions-components/observers-5ba39eee.js +56 -0
  1126. package/dist/solutions-components/openCloseComponent-b4b3788b.js +138 -0
  1127. package/dist/solutions-components/{p-a455c3f0.entry.js → p-00524417.entry.js} +1 -1
  1128. package/dist/solutions-components/{p-52b37bad.entry.js → p-04dbc667.entry.js} +1 -1
  1129. package/dist/solutions-components/{p-8e9f96db.js → p-12a7d0d1.js} +1 -1
  1130. package/dist/solutions-components/{p-a7b7f8d1.js → p-15a0e7fb.js} +1 -1
  1131. package/dist/solutions-components/p-2d72eac3.entry.js +6 -0
  1132. package/dist/solutions-components/{p-a2544cba.entry.js → p-30edeb79.entry.js} +1 -1
  1133. package/dist/solutions-components/{p-220c46c2.entry.js → p-3a6a1ce9.entry.js} +1 -1
  1134. package/dist/solutions-components/{p-a59078ee.entry.js → p-3b9e4882.entry.js} +1 -1
  1135. package/dist/solutions-components/{p-8ad937b4.entry.js → p-465aa7d9.entry.js} +1 -1
  1136. package/dist/solutions-components/p-4dcc150d.entry.js +6 -0
  1137. package/dist/solutions-components/{p-1bca71bf.entry.js → p-4efd2af6.entry.js} +1 -1
  1138. package/dist/solutions-components/{p-5a28d60c.entry.js → p-5320dc25.entry.js} +1 -1
  1139. package/dist/solutions-components/{p-015a45e2.entry.js → p-53ef8adf.entry.js} +1 -1
  1140. package/dist/solutions-components/{p-0d72a9ca.entry.js → p-5f6e7429.entry.js} +1 -1
  1141. package/dist/solutions-components/{p-0f427774.entry.js → p-607773a3.entry.js} +1 -1
  1142. package/dist/solutions-components/{p-2e7a9b9b.entry.js → p-88932d2f.entry.js} +2 -2
  1143. package/dist/solutions-components/{p-b41e2c4c.js → p-8910dc99.js} +10 -10
  1144. package/dist/solutions-components/{p-104f07e3.entry.js → p-954dc86f.entry.js} +1 -1
  1145. package/dist/solutions-components/{p-c302bbea.entry.js → p-a3132356.entry.js} +1 -1
  1146. package/dist/solutions-components/{p-c10b44ee.entry.js → p-a886ab7f.entry.js} +1 -1
  1147. package/dist/solutions-components/{p-03037cf9.js → p-ad98c346.js} +1 -1
  1148. package/dist/solutions-components/{p-734d1dc5.js → p-b4913a01.js} +1 -1
  1149. package/dist/solutions-components/{p-03a65871.entry.js → p-bf6b4eb7.entry.js} +1 -1
  1150. package/dist/solutions-components/{p-09801ba6.entry.js → p-c4ff3b52.entry.js} +3 -3
  1151. package/dist/solutions-components/p-d599cfa8.entry.js +6 -0
  1152. package/dist/solutions-components/{p-cfe890f6.entry.js → p-f313b45b.entry.js} +1 -1
  1153. package/dist/solutions-components/{p-aec4441b.entry.js → p-fc1367d9.entry.js} +1 -1
  1154. package/dist/solutions-components/{p-07626c45.js → p-fc2fb61b.js} +1 -1
  1155. package/dist/solutions-components/parser-87982ce2.js +1654 -0
  1156. package/dist/solutions-components/pci-calculator.entry.js +113 -0
  1157. package/dist/solutions-components/pciUtils-73d4b6b4.js +844 -0
  1158. package/dist/solutions-components/pdf-download.entry.js +355 -0
  1159. package/dist/solutions-components/pl-1f435988.js +113 -0
  1160. package/dist/solutions-components/popupUtils-b61d7ffd.js +94 -0
  1161. package/dist/solutions-components/pt-4a05a00d.js +66 -0
  1162. package/dist/solutions-components/pt-br-9720547b.js +64 -0
  1163. package/dist/solutions-components/public-notification.entry.js +886 -0
  1164. package/dist/solutions-components/publicNotificationStore-208e26f0.js +45 -0
  1165. package/dist/solutions-components/purify-909c20fa.js +1713 -0
  1166. package/dist/solutions-components/queryUtils-2529c537.js +244 -0
  1167. package/dist/solutions-components/refine-results-flow-item.entry.js +56 -0
  1168. package/dist/solutions-components/refine-selection.entry.js +407 -0
  1169. package/dist/solutions-components/resources-0f8db821.js +45 -0
  1170. package/dist/solutions-components/resources-20074cb1.js +24 -0
  1171. package/dist/solutions-components/resources-3709252d.js +35 -0
  1172. package/dist/solutions-components/resources-3c6947d3.js +26 -0
  1173. package/dist/solutions-components/resources-47b3ca40.js +106 -0
  1174. package/dist/solutions-components/resources-667afb5d.js +27 -0
  1175. package/dist/solutions-components/resources-88a48c5c.js +20 -0
  1176. package/dist/solutions-components/resources-9b2084c6.js +24 -0
  1177. package/dist/solutions-components/resources-9b7e72d5.js +20 -0
  1178. package/dist/solutions-components/resources-b0e2b809.js +22 -0
  1179. package/dist/solutions-components/resources-bb6c11c3.js +49 -0
  1180. package/dist/solutions-components/ro-f87076a1.js +65 -0
  1181. package/dist/solutions-components/ru-e69ca895.js +125 -0
  1182. package/dist/solutions-components/shadow-css-f5236d52.js +481 -0
  1183. package/dist/solutions-components/share-item.entry.js +56 -0
  1184. package/dist/solutions-components/shared-list-render-a572ef93.js +348 -0
  1185. package/dist/solutions-components/sk-d632e850.js +147 -0
  1186. package/dist/solutions-components/sl-5099fa6f.js +167 -0
  1187. package/dist/solutions-components/solution-configuration.entry.js +906 -0
  1188. package/dist/solutions-components/solution-contents.entry.js +80 -0
  1189. package/dist/solutions-components/solution-item-details.entry.js +195 -0
  1190. package/dist/solutions-components/solution-item-icon.entry.js +323 -0
  1191. package/dist/solutions-components/solution-item-sharing.entry.js +135 -0
  1192. package/dist/solutions-components/solution-item.entry.js +102 -0
  1193. package/dist/solutions-components/solution-organization-variables.entry.js +91 -0
  1194. package/dist/solutions-components/solution-resource-item.entry.js +280 -0
  1195. package/dist/solutions-components/solution-spatial-ref.entry.js +154 -0
  1196. package/dist/solutions-components/solution-store-31cccb90.js +587 -0
  1197. package/dist/solutions-components/solution-template-data.entry.js +115 -0
  1198. package/dist/solutions-components/solution-variables.entry.js +103 -0
  1199. package/dist/solutions-components/solutions-components.css +84 -1
  1200. package/dist/solutions-components/solutions-components.esm.js +52 -1
  1201. package/dist/solutions-components/sortableComponent-e715a3dd.js +3439 -0
  1202. package/dist/solutions-components/spatial-ref.entry.js +21296 -0
  1203. package/dist/solutions-components/sr-944b7fd7.js +100 -0
  1204. package/dist/solutions-components/store-194c1a01.js +87 -0
  1205. package/dist/solutions-components/store-manager.entry.js +61 -0
  1206. package/dist/solutions-components/styles-367380b5.js +11 -0
  1207. package/dist/solutions-components/sv-e481fa6a.js +70 -0
  1208. package/dist/solutions-components/t9n-b39c5433.js +98 -0
  1209. package/dist/solutions-components/th-60961669.js +64 -0
  1210. package/dist/solutions-components/time-4a90614b.js +274 -0
  1211. package/dist/solutions-components/tr-eba8dd86.js +65 -0
  1212. package/dist/solutions-components/uk-ec375ce0.js +103 -0
  1213. package/dist/solutions-components/utils/downloadUtils.ts +44 -5
  1214. package/dist/solutions-components/utils/test/downloadUtils.spec.tsx +40 -1
  1215. package/dist/solutions-components/utils-32df4a1e.js +133 -0
  1216. package/dist/solutions-components/utils-57e2ccde.js +61 -0
  1217. package/dist/solutions-components/utils-7db4ecdc.js +100 -0
  1218. package/dist/solutions-components/utils-95e9dd51.js +55 -0
  1219. package/dist/solutions-components/utils-cfbe589a.js +208 -0
  1220. package/dist/solutions-components/vi-29345f79.js +69 -0
  1221. package/dist/solutions-components/zh-cn-32c7c714.js +93 -0
  1222. package/dist/solutions-components/zh-hk-7c770845.js +70 -0
  1223. package/dist/solutions-components/zh-tw-c318be5c.js +91 -0
  1224. package/dist/types/utils/downloadUtils.d.ts +18 -4
  1225. package/package.json +6 -6
  1226. package/dist/solutions-components/p-7d6ee026.entry.js +0 -6
  1227. package/dist/solutions-components/p-b80bc5b9.entry.js +0 -6
  1228. package/dist/solutions-components/p-dd45738e.entry.js +0 -6
  1229. /package/dist/solutions-components/{p-70359c2b.js → p-89218b6e.js} +0 -0
  1230. /package/dist/solutions-components/{p-090e0241.js → p-e85ba21c.js} +0 -0
@@ -0,0 +1,3443 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ 'use strict';
7
+
8
+ /**!
9
+ * Sortable 1.15.1
10
+ * @author RubaXa <trash@rubaxa.org>
11
+ * @author owenm <owen23355@gmail.com>
12
+ * @license MIT
13
+ */
14
+ function ownKeys(object, enumerableOnly) {
15
+ var keys = Object.keys(object);
16
+ if (Object.getOwnPropertySymbols) {
17
+ var symbols = Object.getOwnPropertySymbols(object);
18
+ if (enumerableOnly) {
19
+ symbols = symbols.filter(function (sym) {
20
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
21
+ });
22
+ }
23
+ keys.push.apply(keys, symbols);
24
+ }
25
+ return keys;
26
+ }
27
+ function _objectSpread2(target) {
28
+ for (var i = 1; i < arguments.length; i++) {
29
+ var source = arguments[i] != null ? arguments[i] : {};
30
+ if (i % 2) {
31
+ ownKeys(Object(source), true).forEach(function (key) {
32
+ _defineProperty(target, key, source[key]);
33
+ });
34
+ } else if (Object.getOwnPropertyDescriptors) {
35
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
36
+ } else {
37
+ ownKeys(Object(source)).forEach(function (key) {
38
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
39
+ });
40
+ }
41
+ }
42
+ return target;
43
+ }
44
+ function _typeof(obj) {
45
+ "@babel/helpers - typeof";
46
+
47
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
48
+ _typeof = function (obj) {
49
+ return typeof obj;
50
+ };
51
+ } else {
52
+ _typeof = function (obj) {
53
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
54
+ };
55
+ }
56
+ return _typeof(obj);
57
+ }
58
+ function _defineProperty(obj, key, value) {
59
+ if (key in obj) {
60
+ Object.defineProperty(obj, key, {
61
+ value: value,
62
+ enumerable: true,
63
+ configurable: true,
64
+ writable: true
65
+ });
66
+ } else {
67
+ obj[key] = value;
68
+ }
69
+ return obj;
70
+ }
71
+ function _extends() {
72
+ _extends = Object.assign || function (target) {
73
+ for (var i = 1; i < arguments.length; i++) {
74
+ var source = arguments[i];
75
+ for (var key in source) {
76
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
77
+ target[key] = source[key];
78
+ }
79
+ }
80
+ }
81
+ return target;
82
+ };
83
+ return _extends.apply(this, arguments);
84
+ }
85
+ function _objectWithoutPropertiesLoose(source, excluded) {
86
+ if (source == null) return {};
87
+ var target = {};
88
+ var sourceKeys = Object.keys(source);
89
+ var key, i;
90
+ for (i = 0; i < sourceKeys.length; i++) {
91
+ key = sourceKeys[i];
92
+ if (excluded.indexOf(key) >= 0) continue;
93
+ target[key] = source[key];
94
+ }
95
+ return target;
96
+ }
97
+ function _objectWithoutProperties(source, excluded) {
98
+ if (source == null) return {};
99
+ var target = _objectWithoutPropertiesLoose(source, excluded);
100
+ var key, i;
101
+ if (Object.getOwnPropertySymbols) {
102
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
103
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
104
+ key = sourceSymbolKeys[i];
105
+ if (excluded.indexOf(key) >= 0) continue;
106
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
107
+ target[key] = source[key];
108
+ }
109
+ }
110
+ return target;
111
+ }
112
+ function _toConsumableArray(arr) {
113
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
114
+ }
115
+ function _arrayWithoutHoles(arr) {
116
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
117
+ }
118
+ function _iterableToArray(iter) {
119
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
120
+ }
121
+ function _unsupportedIterableToArray(o, minLen) {
122
+ if (!o) return;
123
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
124
+ var n = Object.prototype.toString.call(o).slice(8, -1);
125
+ if (n === "Object" && o.constructor) n = o.constructor.name;
126
+ if (n === "Map" || n === "Set") return Array.from(o);
127
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
128
+ }
129
+ function _arrayLikeToArray(arr, len) {
130
+ if (len == null || len > arr.length) len = arr.length;
131
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
132
+ return arr2;
133
+ }
134
+ function _nonIterableSpread() {
135
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
136
+ }
137
+
138
+ var version = "1.15.1";
139
+
140
+ function userAgent(pattern) {
141
+ if (typeof window !== 'undefined' && window.navigator) {
142
+ return !! /*@__PURE__*/navigator.userAgent.match(pattern);
143
+ }
144
+ }
145
+ var IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
146
+ var Edge = userAgent(/Edge/i);
147
+ var FireFox = userAgent(/firefox/i);
148
+ var Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);
149
+ var IOS = userAgent(/iP(ad|od|hone)/i);
150
+ var ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);
151
+
152
+ var captureMode = {
153
+ capture: false,
154
+ passive: false
155
+ };
156
+ function on(el, event, fn) {
157
+ el.addEventListener(event, fn, !IE11OrLess && captureMode);
158
+ }
159
+ function off(el, event, fn) {
160
+ el.removeEventListener(event, fn, !IE11OrLess && captureMode);
161
+ }
162
+ function matches( /**HTMLElement*/el, /**String*/selector) {
163
+ if (!selector) return;
164
+ selector[0] === '>' && (selector = selector.substring(1));
165
+ if (el) {
166
+ try {
167
+ if (el.matches) {
168
+ return el.matches(selector);
169
+ } else if (el.msMatchesSelector) {
170
+ return el.msMatchesSelector(selector);
171
+ } else if (el.webkitMatchesSelector) {
172
+ return el.webkitMatchesSelector(selector);
173
+ }
174
+ } catch (_) {
175
+ return false;
176
+ }
177
+ }
178
+ return false;
179
+ }
180
+ function getParentOrHost(el) {
181
+ return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;
182
+ }
183
+ function closest( /**HTMLElement*/el, /**String*/selector, /**HTMLElement*/ctx, includeCTX) {
184
+ if (el) {
185
+ ctx = ctx || document;
186
+ do {
187
+ if (selector != null && (selector[0] === '>' ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {
188
+ return el;
189
+ }
190
+ if (el === ctx) break;
191
+ /* jshint boss:true */
192
+ } while (el = getParentOrHost(el));
193
+ }
194
+ return null;
195
+ }
196
+ var R_SPACE = /\s+/g;
197
+ function toggleClass(el, name, state) {
198
+ if (el && name) {
199
+ if (el.classList) {
200
+ el.classList[state ? 'add' : 'remove'](name);
201
+ } else {
202
+ var className = (' ' + el.className + ' ').replace(R_SPACE, ' ').replace(' ' + name + ' ', ' ');
203
+ el.className = (className + (state ? ' ' + name : '')).replace(R_SPACE, ' ');
204
+ }
205
+ }
206
+ }
207
+ function css(el, prop, val) {
208
+ var style = el && el.style;
209
+ if (style) {
210
+ if (val === void 0) {
211
+ if (document.defaultView && document.defaultView.getComputedStyle) {
212
+ val = document.defaultView.getComputedStyle(el, '');
213
+ } else if (el.currentStyle) {
214
+ val = el.currentStyle;
215
+ }
216
+ return prop === void 0 ? val : val[prop];
217
+ } else {
218
+ if (!(prop in style) && prop.indexOf('webkit') === -1) {
219
+ prop = '-webkit-' + prop;
220
+ }
221
+ style[prop] = val + (typeof val === 'string' ? '' : 'px');
222
+ }
223
+ }
224
+ }
225
+ function matrix(el, selfOnly) {
226
+ var appliedTransforms = '';
227
+ if (typeof el === 'string') {
228
+ appliedTransforms = el;
229
+ } else {
230
+ do {
231
+ var transform = css(el, 'transform');
232
+ if (transform && transform !== 'none') {
233
+ appliedTransforms = transform + ' ' + appliedTransforms;
234
+ }
235
+ /* jshint boss:true */
236
+ } while (!selfOnly && (el = el.parentNode));
237
+ }
238
+ var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
239
+ /*jshint -W056 */
240
+ return matrixFn && new matrixFn(appliedTransforms);
241
+ }
242
+ function find(ctx, tagName, iterator) {
243
+ if (ctx) {
244
+ var list = ctx.getElementsByTagName(tagName),
245
+ i = 0,
246
+ n = list.length;
247
+ if (iterator) {
248
+ for (; i < n; i++) {
249
+ iterator(list[i], i);
250
+ }
251
+ }
252
+ return list;
253
+ }
254
+ return [];
255
+ }
256
+ function getWindowScrollingElement() {
257
+ var scrollingElement = document.scrollingElement;
258
+ if (scrollingElement) {
259
+ return scrollingElement;
260
+ } else {
261
+ return document.documentElement;
262
+ }
263
+ }
264
+
265
+ /**
266
+ * Returns the "bounding client rect" of given element
267
+ * @param {HTMLElement} el The element whose boundingClientRect is wanted
268
+ * @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container
269
+ * @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr
270
+ * @param {[Boolean]} undoScale Whether the container's scale() should be undone
271
+ * @param {[HTMLElement]} container The parent the element will be placed in
272
+ * @return {Object} The boundingClientRect of el, with specified adjustments
273
+ */
274
+ function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {
275
+ if (!el.getBoundingClientRect && el !== window) return;
276
+ var elRect, top, left, bottom, right, height, width;
277
+ if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {
278
+ elRect = el.getBoundingClientRect();
279
+ top = elRect.top;
280
+ left = elRect.left;
281
+ bottom = elRect.bottom;
282
+ right = elRect.right;
283
+ height = elRect.height;
284
+ width = elRect.width;
285
+ } else {
286
+ top = 0;
287
+ left = 0;
288
+ bottom = window.innerHeight;
289
+ right = window.innerWidth;
290
+ height = window.innerHeight;
291
+ width = window.innerWidth;
292
+ }
293
+ if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {
294
+ // Adjust for translate()
295
+ container = container || el.parentNode;
296
+
297
+ // solves #1123 (see: https://stackoverflow.com/a/37953806/6088312)
298
+ // Not needed on <= IE11
299
+ if (!IE11OrLess) {
300
+ do {
301
+ if (container && container.getBoundingClientRect && (css(container, 'transform') !== 'none' || relativeToNonStaticParent && css(container, 'position') !== 'static')) {
302
+ var containerRect = container.getBoundingClientRect();
303
+
304
+ // Set relative to edges of padding box of container
305
+ top -= containerRect.top + parseInt(css(container, 'border-top-width'));
306
+ left -= containerRect.left + parseInt(css(container, 'border-left-width'));
307
+ bottom = top + elRect.height;
308
+ right = left + elRect.width;
309
+ break;
310
+ }
311
+ /* jshint boss:true */
312
+ } while (container = container.parentNode);
313
+ }
314
+ }
315
+ if (undoScale && el !== window) {
316
+ // Adjust for scale()
317
+ var elMatrix = matrix(container || el),
318
+ scaleX = elMatrix && elMatrix.a,
319
+ scaleY = elMatrix && elMatrix.d;
320
+ if (elMatrix) {
321
+ top /= scaleY;
322
+ left /= scaleX;
323
+ width /= scaleX;
324
+ height /= scaleY;
325
+ bottom = top + height;
326
+ right = left + width;
327
+ }
328
+ }
329
+ return {
330
+ top: top,
331
+ left: left,
332
+ bottom: bottom,
333
+ right: right,
334
+ width: width,
335
+ height: height
336
+ };
337
+ }
338
+
339
+ /**
340
+ * Returns the content rect of the element (bounding rect minus border and padding)
341
+ * @param {HTMLElement} el
342
+ */
343
+ function getContentRect(el) {
344
+ var rect = getRect(el);
345
+ var paddingLeft = parseInt(css(el, 'padding-left')),
346
+ paddingTop = parseInt(css(el, 'padding-top')),
347
+ paddingRight = parseInt(css(el, 'padding-right')),
348
+ paddingBottom = parseInt(css(el, 'padding-bottom'));
349
+ rect.top += paddingTop + parseInt(css(el, 'border-top-width'));
350
+ rect.left += paddingLeft + parseInt(css(el, 'border-left-width'));
351
+ // Client Width/Height includes padding only
352
+ rect.width = el.clientWidth - paddingLeft - paddingRight;
353
+ rect.height = el.clientHeight - paddingTop - paddingBottom;
354
+ rect.bottom = rect.top + rect.height;
355
+ rect.right = rect.left + rect.width;
356
+ return rect;
357
+ }
358
+
359
+ /**
360
+ * Checks if a side of an element is scrolled past a side of its parents
361
+ * @param {HTMLElement} el The element who's side being scrolled out of view is in question
362
+ * @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')
363
+ * @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')
364
+ * @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element
365
+ */
366
+ function isScrolledPast(el, elSide, parentSide) {
367
+ var parent = getParentAutoScrollElement(el, true),
368
+ elSideVal = getRect(el)[elSide];
369
+
370
+ /* jshint boss:true */
371
+ while (parent) {
372
+ var parentSideVal = getRect(parent)[parentSide],
373
+ visible = void 0;
374
+ if (parentSide === 'top' || parentSide === 'left') {
375
+ visible = elSideVal >= parentSideVal;
376
+ } else {
377
+ visible = elSideVal <= parentSideVal;
378
+ }
379
+ if (!visible) return parent;
380
+ if (parent === getWindowScrollingElement()) break;
381
+ parent = getParentAutoScrollElement(parent, false);
382
+ }
383
+ return false;
384
+ }
385
+
386
+ /**
387
+ * Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)
388
+ * and non-draggable elements
389
+ * @param {HTMLElement} el The parent element
390
+ * @param {Number} childNum The index of the child
391
+ * @param {Object} options Parent Sortable's options
392
+ * @return {HTMLElement} The child at index childNum, or null if not found
393
+ */
394
+ function getChild(el, childNum, options, includeDragEl) {
395
+ var currentChild = 0,
396
+ i = 0,
397
+ children = el.children;
398
+ while (i < children.length) {
399
+ if (children[i].style.display !== 'none' && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {
400
+ if (currentChild === childNum) {
401
+ return children[i];
402
+ }
403
+ currentChild++;
404
+ }
405
+ i++;
406
+ }
407
+ return null;
408
+ }
409
+
410
+ /**
411
+ * Gets the last child in the el, ignoring ghostEl or invisible elements (clones)
412
+ * @param {HTMLElement} el Parent element
413
+ * @param {selector} selector Any other elements that should be ignored
414
+ * @return {HTMLElement} The last child, ignoring ghostEl
415
+ */
416
+ function lastChild(el, selector) {
417
+ var last = el.lastElementChild;
418
+ while (last && (last === Sortable.ghost || css(last, 'display') === 'none' || selector && !matches(last, selector))) {
419
+ last = last.previousElementSibling;
420
+ }
421
+ return last || null;
422
+ }
423
+
424
+ /**
425
+ * Returns the index of an element within its parent for a selected set of
426
+ * elements
427
+ * @param {HTMLElement} el
428
+ * @param {selector} selector
429
+ * @return {number}
430
+ */
431
+ function index(el, selector) {
432
+ var index = 0;
433
+ if (!el || !el.parentNode) {
434
+ return -1;
435
+ }
436
+
437
+ /* jshint boss:true */
438
+ while (el = el.previousElementSibling) {
439
+ if (el.nodeName.toUpperCase() !== 'TEMPLATE' && el !== Sortable.clone && (!selector || matches(el, selector))) {
440
+ index++;
441
+ }
442
+ }
443
+ return index;
444
+ }
445
+
446
+ /**
447
+ * Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.
448
+ * The value is returned in real pixels.
449
+ * @param {HTMLElement} el
450
+ * @return {Array} Offsets in the format of [left, top]
451
+ */
452
+ function getRelativeScrollOffset(el) {
453
+ var offsetLeft = 0,
454
+ offsetTop = 0,
455
+ winScroller = getWindowScrollingElement();
456
+ if (el) {
457
+ do {
458
+ var elMatrix = matrix(el),
459
+ scaleX = elMatrix.a,
460
+ scaleY = elMatrix.d;
461
+ offsetLeft += el.scrollLeft * scaleX;
462
+ offsetTop += el.scrollTop * scaleY;
463
+ } while (el !== winScroller && (el = el.parentNode));
464
+ }
465
+ return [offsetLeft, offsetTop];
466
+ }
467
+
468
+ /**
469
+ * Returns the index of the object within the given array
470
+ * @param {Array} arr Array that may or may not hold the object
471
+ * @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
472
+ * @return {Number} The index of the object in the array, or -1
473
+ */
474
+ function indexOfObject(arr, obj) {
475
+ for (var i in arr) {
476
+ if (!arr.hasOwnProperty(i)) continue;
477
+ for (var key in obj) {
478
+ if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);
479
+ }
480
+ }
481
+ return -1;
482
+ }
483
+ function getParentAutoScrollElement(el, includeSelf) {
484
+ // skip to window
485
+ if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();
486
+ var elem = el;
487
+ var gotSelf = false;
488
+ do {
489
+ // we don't need to get elem css if it isn't even overflowing in the first place (performance)
490
+ if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {
491
+ var elemCSS = css(elem);
492
+ if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == 'auto' || elemCSS.overflowX == 'scroll') || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == 'auto' || elemCSS.overflowY == 'scroll')) {
493
+ if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();
494
+ if (gotSelf || includeSelf) return elem;
495
+ gotSelf = true;
496
+ }
497
+ }
498
+ /* jshint boss:true */
499
+ } while (elem = elem.parentNode);
500
+ return getWindowScrollingElement();
501
+ }
502
+ function extend(dst, src) {
503
+ if (dst && src) {
504
+ for (var key in src) {
505
+ if (src.hasOwnProperty(key)) {
506
+ dst[key] = src[key];
507
+ }
508
+ }
509
+ }
510
+ return dst;
511
+ }
512
+ function isRectEqual(rect1, rect2) {
513
+ 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);
514
+ }
515
+ var _throttleTimeout;
516
+ function throttle(callback, ms) {
517
+ return function () {
518
+ if (!_throttleTimeout) {
519
+ var args = arguments,
520
+ _this = this;
521
+ if (args.length === 1) {
522
+ callback.call(_this, args[0]);
523
+ } else {
524
+ callback.apply(_this, args);
525
+ }
526
+ _throttleTimeout = setTimeout(function () {
527
+ _throttleTimeout = void 0;
528
+ }, ms);
529
+ }
530
+ };
531
+ }
532
+ function cancelThrottle() {
533
+ clearTimeout(_throttleTimeout);
534
+ _throttleTimeout = void 0;
535
+ }
536
+ function scrollBy(el, x, y) {
537
+ el.scrollLeft += x;
538
+ el.scrollTop += y;
539
+ }
540
+ function clone(el) {
541
+ var Polymer = window.Polymer;
542
+ var $ = window.jQuery || window.Zepto;
543
+ if (Polymer && Polymer.dom) {
544
+ return Polymer.dom(el).cloneNode(true);
545
+ } else if ($) {
546
+ return $(el).clone(true)[0];
547
+ } else {
548
+ return el.cloneNode(true);
549
+ }
550
+ }
551
+ function setRect(el, rect) {
552
+ css(el, 'position', 'absolute');
553
+ css(el, 'top', rect.top);
554
+ css(el, 'left', rect.left);
555
+ css(el, 'width', rect.width);
556
+ css(el, 'height', rect.height);
557
+ }
558
+ function unsetRect(el) {
559
+ css(el, 'position', '');
560
+ css(el, 'top', '');
561
+ css(el, 'left', '');
562
+ css(el, 'width', '');
563
+ css(el, 'height', '');
564
+ }
565
+ var expando = 'Sortable' + new Date().getTime();
566
+
567
+ function AnimationStateManager() {
568
+ var animationStates = [],
569
+ animationCallbackId;
570
+ return {
571
+ captureAnimationState: function captureAnimationState() {
572
+ animationStates = [];
573
+ if (!this.options.animation) return;
574
+ var children = [].slice.call(this.el.children);
575
+ children.forEach(function (child) {
576
+ if (css(child, 'display') === 'none' || child === Sortable.ghost) return;
577
+ animationStates.push({
578
+ target: child,
579
+ rect: getRect(child)
580
+ });
581
+ var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect);
582
+
583
+ // If animating: compensate for current animation
584
+ if (child.thisAnimationDuration) {
585
+ var childMatrix = matrix(child, true);
586
+ if (childMatrix) {
587
+ fromRect.top -= childMatrix.f;
588
+ fromRect.left -= childMatrix.e;
589
+ }
590
+ }
591
+ child.fromRect = fromRect;
592
+ });
593
+ },
594
+ addAnimationState: function addAnimationState(state) {
595
+ animationStates.push(state);
596
+ },
597
+ removeAnimationState: function removeAnimationState(target) {
598
+ animationStates.splice(indexOfObject(animationStates, {
599
+ target: target
600
+ }), 1);
601
+ },
602
+ animateAll: function animateAll(callback) {
603
+ var _this = this;
604
+ if (!this.options.animation) {
605
+ clearTimeout(animationCallbackId);
606
+ if (typeof callback === 'function') callback();
607
+ return;
608
+ }
609
+ var animating = false,
610
+ animationTime = 0;
611
+ animationStates.forEach(function (state) {
612
+ var time = 0,
613
+ target = state.target,
614
+ fromRect = target.fromRect,
615
+ toRect = getRect(target),
616
+ prevFromRect = target.prevFromRect,
617
+ prevToRect = target.prevToRect,
618
+ animatingRect = state.rect,
619
+ targetMatrix = matrix(target, true);
620
+ if (targetMatrix) {
621
+ // Compensate for current animation
622
+ toRect.top -= targetMatrix.f;
623
+ toRect.left -= targetMatrix.e;
624
+ }
625
+ target.toRect = toRect;
626
+ if (target.thisAnimationDuration) {
627
+ // Could also check if animatingRect is between fromRect and toRect
628
+ if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) &&
629
+ // Make sure animatingRect is on line between toRect & fromRect
630
+ (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {
631
+ // If returning to same place as started from animation and on same axis
632
+ time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);
633
+ }
634
+ }
635
+
636
+ // if fromRect != toRect: animate
637
+ if (!isRectEqual(toRect, fromRect)) {
638
+ target.prevFromRect = fromRect;
639
+ target.prevToRect = toRect;
640
+ if (!time) {
641
+ time = _this.options.animation;
642
+ }
643
+ _this.animate(target, animatingRect, toRect, time);
644
+ }
645
+ if (time) {
646
+ animating = true;
647
+ animationTime = Math.max(animationTime, time);
648
+ clearTimeout(target.animationResetTimer);
649
+ target.animationResetTimer = setTimeout(function () {
650
+ target.animationTime = 0;
651
+ target.prevFromRect = null;
652
+ target.fromRect = null;
653
+ target.prevToRect = null;
654
+ target.thisAnimationDuration = null;
655
+ }, time);
656
+ target.thisAnimationDuration = time;
657
+ }
658
+ });
659
+ clearTimeout(animationCallbackId);
660
+ if (!animating) {
661
+ if (typeof callback === 'function') callback();
662
+ } else {
663
+ animationCallbackId = setTimeout(function () {
664
+ if (typeof callback === 'function') callback();
665
+ }, animationTime);
666
+ }
667
+ animationStates = [];
668
+ },
669
+ animate: function animate(target, currentRect, toRect, duration) {
670
+ if (duration) {
671
+ css(target, 'transition', '');
672
+ css(target, 'transform', '');
673
+ var elMatrix = matrix(this.el),
674
+ scaleX = elMatrix && elMatrix.a,
675
+ scaleY = elMatrix && elMatrix.d,
676
+ translateX = (currentRect.left - toRect.left) / (scaleX || 1),
677
+ translateY = (currentRect.top - toRect.top) / (scaleY || 1);
678
+ target.animatingX = !!translateX;
679
+ target.animatingY = !!translateY;
680
+ css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)');
681
+ this.forRepaintDummy = repaint(target); // repaint
682
+
683
+ css(target, 'transition', 'transform ' + duration + 'ms' + (this.options.easing ? ' ' + this.options.easing : ''));
684
+ css(target, 'transform', 'translate3d(0,0,0)');
685
+ typeof target.animated === 'number' && clearTimeout(target.animated);
686
+ target.animated = setTimeout(function () {
687
+ css(target, 'transition', '');
688
+ css(target, 'transform', '');
689
+ target.animated = false;
690
+ target.animatingX = false;
691
+ target.animatingY = false;
692
+ }, duration);
693
+ }
694
+ }
695
+ };
696
+ }
697
+ function repaint(target) {
698
+ return target.offsetWidth;
699
+ }
700
+ function calculateRealTime(animatingRect, fromRect, toRect, options) {
701
+ 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;
702
+ }
703
+
704
+ var plugins = [];
705
+ var defaults = {
706
+ initializeByDefault: true
707
+ };
708
+ var PluginManager = {
709
+ mount: function mount(plugin) {
710
+ // Set default static properties
711
+ for (var option in defaults) {
712
+ if (defaults.hasOwnProperty(option) && !(option in plugin)) {
713
+ plugin[option] = defaults[option];
714
+ }
715
+ }
716
+ plugins.forEach(function (p) {
717
+ if (p.pluginName === plugin.pluginName) {
718
+ throw "Sortable: Cannot mount plugin ".concat(plugin.pluginName, " more than once");
719
+ }
720
+ });
721
+ plugins.push(plugin);
722
+ },
723
+ pluginEvent: function pluginEvent(eventName, sortable, evt) {
724
+ var _this = this;
725
+ this.eventCanceled = false;
726
+ evt.cancel = function () {
727
+ _this.eventCanceled = true;
728
+ };
729
+ var eventNameGlobal = eventName + 'Global';
730
+ plugins.forEach(function (plugin) {
731
+ if (!sortable[plugin.pluginName]) return;
732
+ // Fire global events if it exists in this sortable
733
+ if (sortable[plugin.pluginName][eventNameGlobal]) {
734
+ sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({
735
+ sortable: sortable
736
+ }, evt));
737
+ }
738
+
739
+ // Only fire plugin event if plugin is enabled in this sortable,
740
+ // and plugin has event defined
741
+ if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {
742
+ sortable[plugin.pluginName][eventName](_objectSpread2({
743
+ sortable: sortable
744
+ }, evt));
745
+ }
746
+ });
747
+ },
748
+ initializePlugins: function initializePlugins(sortable, el, defaults, options) {
749
+ plugins.forEach(function (plugin) {
750
+ var pluginName = plugin.pluginName;
751
+ if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;
752
+ var initialized = new plugin(sortable, el, sortable.options);
753
+ initialized.sortable = sortable;
754
+ initialized.options = sortable.options;
755
+ sortable[pluginName] = initialized;
756
+
757
+ // Add default options from plugin
758
+ _extends(defaults, initialized.defaults);
759
+ });
760
+ for (var option in sortable.options) {
761
+ if (!sortable.options.hasOwnProperty(option)) continue;
762
+ var modified = this.modifyOption(sortable, option, sortable.options[option]);
763
+ if (typeof modified !== 'undefined') {
764
+ sortable.options[option] = modified;
765
+ }
766
+ }
767
+ },
768
+ getEventProperties: function getEventProperties(name, sortable) {
769
+ var eventProperties = {};
770
+ plugins.forEach(function (plugin) {
771
+ if (typeof plugin.eventProperties !== 'function') return;
772
+ _extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));
773
+ });
774
+ return eventProperties;
775
+ },
776
+ modifyOption: function modifyOption(sortable, name, value) {
777
+ var modifiedValue;
778
+ plugins.forEach(function (plugin) {
779
+ // Plugin must exist on the Sortable
780
+ if (!sortable[plugin.pluginName]) return;
781
+
782
+ // If static option listener exists for this option, call in the context of the Sortable's instance of this plugin
783
+ if (plugin.optionListeners && typeof plugin.optionListeners[name] === 'function') {
784
+ modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);
785
+ }
786
+ });
787
+ return modifiedValue;
788
+ }
789
+ };
790
+
791
+ function dispatchEvent(_ref) {
792
+ var sortable = _ref.sortable,
793
+ rootEl = _ref.rootEl,
794
+ name = _ref.name,
795
+ targetEl = _ref.targetEl,
796
+ cloneEl = _ref.cloneEl,
797
+ toEl = _ref.toEl,
798
+ fromEl = _ref.fromEl,
799
+ oldIndex = _ref.oldIndex,
800
+ newIndex = _ref.newIndex,
801
+ oldDraggableIndex = _ref.oldDraggableIndex,
802
+ newDraggableIndex = _ref.newDraggableIndex,
803
+ originalEvent = _ref.originalEvent,
804
+ putSortable = _ref.putSortable,
805
+ extraEventProperties = _ref.extraEventProperties;
806
+ sortable = sortable || rootEl && rootEl[expando];
807
+ if (!sortable) return;
808
+ var evt,
809
+ options = sortable.options,
810
+ onName = 'on' + name.charAt(0).toUpperCase() + name.substr(1);
811
+ // Support for new CustomEvent feature
812
+ if (window.CustomEvent && !IE11OrLess && !Edge) {
813
+ evt = new CustomEvent(name, {
814
+ bubbles: true,
815
+ cancelable: true
816
+ });
817
+ } else {
818
+ evt = document.createEvent('Event');
819
+ evt.initEvent(name, true, true);
820
+ }
821
+ evt.to = toEl || rootEl;
822
+ evt.from = fromEl || rootEl;
823
+ evt.item = targetEl || rootEl;
824
+ evt.clone = cloneEl;
825
+ evt.oldIndex = oldIndex;
826
+ evt.newIndex = newIndex;
827
+ evt.oldDraggableIndex = oldDraggableIndex;
828
+ evt.newDraggableIndex = newDraggableIndex;
829
+ evt.originalEvent = originalEvent;
830
+ evt.pullMode = putSortable ? putSortable.lastPutMode : undefined;
831
+ var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));
832
+ for (var option in allEventProperties) {
833
+ evt[option] = allEventProperties[option];
834
+ }
835
+ if (rootEl) {
836
+ rootEl.dispatchEvent(evt);
837
+ }
838
+ if (options[onName]) {
839
+ options[onName].call(sortable, evt);
840
+ }
841
+ }
842
+
843
+ var _excluded = ["evt"];
844
+ var pluginEvent = function pluginEvent(eventName, sortable) {
845
+ var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
846
+ originalEvent = _ref.evt,
847
+ data = _objectWithoutProperties(_ref, _excluded);
848
+ PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({
849
+ dragEl: dragEl,
850
+ parentEl: parentEl,
851
+ ghostEl: ghostEl,
852
+ rootEl: rootEl,
853
+ nextEl: nextEl,
854
+ lastDownEl: lastDownEl,
855
+ cloneEl: cloneEl,
856
+ cloneHidden: cloneHidden,
857
+ dragStarted: moved,
858
+ putSortable: putSortable,
859
+ activeSortable: Sortable.active,
860
+ originalEvent: originalEvent,
861
+ oldIndex: oldIndex,
862
+ oldDraggableIndex: oldDraggableIndex,
863
+ newIndex: newIndex,
864
+ newDraggableIndex: newDraggableIndex,
865
+ hideGhostForTarget: _hideGhostForTarget,
866
+ unhideGhostForTarget: _unhideGhostForTarget,
867
+ cloneNowHidden: function cloneNowHidden() {
868
+ cloneHidden = true;
869
+ },
870
+ cloneNowShown: function cloneNowShown() {
871
+ cloneHidden = false;
872
+ },
873
+ dispatchSortableEvent: function dispatchSortableEvent(name) {
874
+ _dispatchEvent({
875
+ sortable: sortable,
876
+ name: name,
877
+ originalEvent: originalEvent
878
+ });
879
+ }
880
+ }, data));
881
+ };
882
+ function _dispatchEvent(info) {
883
+ dispatchEvent(_objectSpread2({
884
+ putSortable: putSortable,
885
+ cloneEl: cloneEl,
886
+ targetEl: dragEl,
887
+ rootEl: rootEl,
888
+ oldIndex: oldIndex,
889
+ oldDraggableIndex: oldDraggableIndex,
890
+ newIndex: newIndex,
891
+ newDraggableIndex: newDraggableIndex
892
+ }, info));
893
+ }
894
+ var dragEl,
895
+ parentEl,
896
+ ghostEl,
897
+ rootEl,
898
+ nextEl,
899
+ lastDownEl,
900
+ cloneEl,
901
+ cloneHidden,
902
+ oldIndex,
903
+ newIndex,
904
+ oldDraggableIndex,
905
+ newDraggableIndex,
906
+ activeGroup,
907
+ putSortable,
908
+ awaitingDragStarted = false,
909
+ ignoreNextClick = false,
910
+ sortables = [],
911
+ tapEvt,
912
+ touchEvt,
913
+ lastDx,
914
+ lastDy,
915
+ tapDistanceLeft,
916
+ tapDistanceTop,
917
+ moved,
918
+ lastTarget,
919
+ lastDirection,
920
+ pastFirstInvertThresh = false,
921
+ isCircumstantialInvert = false,
922
+ targetMoveDistance,
923
+ // For positioning ghost absolutely
924
+ ghostRelativeParent,
925
+ ghostRelativeParentInitialScroll = [],
926
+ // (left, top)
927
+
928
+ _silent = false,
929
+ savedInputChecked = [];
930
+
931
+ /** @const */
932
+ var documentExists = typeof document !== 'undefined',
933
+ PositionGhostAbsolutely = IOS,
934
+ CSSFloatProperty = Edge || IE11OrLess ? 'cssFloat' : 'float',
935
+ // This will not pass for IE9, because IE9 DnD only works on anchors
936
+ supportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in document.createElement('div'),
937
+ supportCssPointerEvents = function () {
938
+ if (!documentExists) return;
939
+ // false when <= IE11
940
+ if (IE11OrLess) {
941
+ return false;
942
+ }
943
+ var el = document.createElement('x');
944
+ el.style.cssText = 'pointer-events:auto';
945
+ return el.style.pointerEvents === 'auto';
946
+ }(),
947
+ _detectDirection = function _detectDirection(el, options) {
948
+ var elCSS = css(el),
949
+ elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth),
950
+ child1 = getChild(el, 0, options),
951
+ child2 = getChild(el, 1, options),
952
+ firstChildCSS = child1 && css(child1),
953
+ secondChildCSS = child2 && css(child2),
954
+ firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width,
955
+ secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;
956
+ if (elCSS.display === 'flex') {
957
+ return elCSS.flexDirection === 'column' || elCSS.flexDirection === 'column-reverse' ? 'vertical' : 'horizontal';
958
+ }
959
+ if (elCSS.display === 'grid') {
960
+ return elCSS.gridTemplateColumns.split(' ').length <= 1 ? 'vertical' : 'horizontal';
961
+ }
962
+ if (child1 && firstChildCSS["float"] && firstChildCSS["float"] !== 'none') {
963
+ var touchingSideChild2 = firstChildCSS["float"] === 'left' ? 'left' : 'right';
964
+ return child2 && (secondChildCSS.clear === 'both' || secondChildCSS.clear === touchingSideChild2) ? 'vertical' : 'horizontal';
965
+ }
966
+ 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';
967
+ },
968
+ _dragElInRowColumn = function _dragElInRowColumn(dragRect, targetRect, vertical) {
969
+ var dragElS1Opp = vertical ? dragRect.left : dragRect.top,
970
+ dragElS2Opp = vertical ? dragRect.right : dragRect.bottom,
971
+ dragElOppLength = vertical ? dragRect.width : dragRect.height,
972
+ targetS1Opp = vertical ? targetRect.left : targetRect.top,
973
+ targetS2Opp = vertical ? targetRect.right : targetRect.bottom,
974
+ targetOppLength = vertical ? targetRect.width : targetRect.height;
975
+ return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
976
+ },
977
+ /**
978
+ * Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
979
+ * @param {Number} x X position
980
+ * @param {Number} y Y position
981
+ * @return {HTMLElement} Element of the first found nearest Sortable
982
+ */
983
+ _detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
984
+ var ret;
985
+ sortables.some(function (sortable) {
986
+ var threshold = sortable[expando].options.emptyInsertThreshold;
987
+ if (!threshold || lastChild(sortable)) return;
988
+ var rect = getRect(sortable),
989
+ insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold,
990
+ insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;
991
+ if (insideHorizontally && insideVertically) {
992
+ return ret = sortable;
993
+ }
994
+ });
995
+ return ret;
996
+ },
997
+ _prepareGroup = function _prepareGroup(options) {
998
+ function toFn(value, pull) {
999
+ return function (to, from, dragEl, evt) {
1000
+ var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;
1001
+ if (value == null && (pull || sameGroup)) {
1002
+ // Default pull value
1003
+ // Default pull and put value if same group
1004
+ return true;
1005
+ } else if (value == null || value === false) {
1006
+ return false;
1007
+ } else if (pull && value === 'clone') {
1008
+ return value;
1009
+ } else if (typeof value === 'function') {
1010
+ return toFn(value(to, from, dragEl, evt), pull)(to, from, dragEl, evt);
1011
+ } else {
1012
+ var otherGroup = (pull ? to : from).options.group.name;
1013
+ return value === true || typeof value === 'string' && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;
1014
+ }
1015
+ };
1016
+ }
1017
+ var group = {};
1018
+ var originalGroup = options.group;
1019
+ if (!originalGroup || _typeof(originalGroup) != 'object') {
1020
+ originalGroup = {
1021
+ name: originalGroup
1022
+ };
1023
+ }
1024
+ group.name = originalGroup.name;
1025
+ group.checkPull = toFn(originalGroup.pull, true);
1026
+ group.checkPut = toFn(originalGroup.put);
1027
+ group.revertClone = originalGroup.revertClone;
1028
+ options.group = group;
1029
+ },
1030
+ _hideGhostForTarget = function _hideGhostForTarget() {
1031
+ if (!supportCssPointerEvents && ghostEl) {
1032
+ css(ghostEl, 'display', 'none');
1033
+ }
1034
+ },
1035
+ _unhideGhostForTarget = function _unhideGhostForTarget() {
1036
+ if (!supportCssPointerEvents && ghostEl) {
1037
+ css(ghostEl, 'display', '');
1038
+ }
1039
+ };
1040
+
1041
+ // #1184 fix - Prevent click event on fallback if dragged but item not changed position
1042
+ if (documentExists && !ChromeForAndroid) {
1043
+ document.addEventListener('click', function (evt) {
1044
+ if (ignoreNextClick) {
1045
+ evt.preventDefault();
1046
+ evt.stopPropagation && evt.stopPropagation();
1047
+ evt.stopImmediatePropagation && evt.stopImmediatePropagation();
1048
+ ignoreNextClick = false;
1049
+ return false;
1050
+ }
1051
+ }, true);
1052
+ }
1053
+ var nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) {
1054
+ if (dragEl) {
1055
+ evt = evt.touches ? evt.touches[0] : evt;
1056
+ var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);
1057
+ if (nearest) {
1058
+ // Create imitation event
1059
+ var event = {};
1060
+ for (var i in evt) {
1061
+ if (evt.hasOwnProperty(i)) {
1062
+ event[i] = evt[i];
1063
+ }
1064
+ }
1065
+ event.target = event.rootEl = nearest;
1066
+ event.preventDefault = void 0;
1067
+ event.stopPropagation = void 0;
1068
+ nearest[expando]._onDragOver(event);
1069
+ }
1070
+ }
1071
+ };
1072
+ var _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {
1073
+ if (dragEl) {
1074
+ dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
1075
+ }
1076
+ };
1077
+
1078
+ /**
1079
+ * @class Sortable
1080
+ * @param {HTMLElement} el
1081
+ * @param {Object} [options]
1082
+ */
1083
+ function Sortable(el, options) {
1084
+ if (!(el && el.nodeType && el.nodeType === 1)) {
1085
+ throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(el));
1086
+ }
1087
+ this.el = el; // root element
1088
+ this.options = options = _extends({}, options);
1089
+
1090
+ // Export instance
1091
+ el[expando] = this;
1092
+ var defaults = {
1093
+ group: null,
1094
+ sort: true,
1095
+ disabled: false,
1096
+ store: null,
1097
+ handle: null,
1098
+ draggable: /^[uo]l$/i.test(el.nodeName) ? '>li' : '>*',
1099
+ swapThreshold: 1,
1100
+ // percentage; 0 <= x <= 1
1101
+ invertSwap: false,
1102
+ // invert always
1103
+ invertedSwapThreshold: null,
1104
+ // will be set to same as swapThreshold if default
1105
+ removeCloneOnHide: true,
1106
+ direction: function direction() {
1107
+ return _detectDirection(el, this.options);
1108
+ },
1109
+ ghostClass: 'sortable-ghost',
1110
+ chosenClass: 'sortable-chosen',
1111
+ dragClass: 'sortable-drag',
1112
+ ignore: 'a, img',
1113
+ filter: null,
1114
+ preventOnFilter: true,
1115
+ animation: 0,
1116
+ easing: null,
1117
+ setData: function setData(dataTransfer, dragEl) {
1118
+ dataTransfer.setData('Text', dragEl.textContent);
1119
+ },
1120
+ dropBubble: false,
1121
+ dragoverBubble: false,
1122
+ dataIdAttr: 'data-id',
1123
+ delay: 0,
1124
+ delayOnTouchOnly: false,
1125
+ touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
1126
+ forceFallback: false,
1127
+ fallbackClass: 'sortable-fallback',
1128
+ fallbackOnBody: false,
1129
+ fallbackTolerance: 0,
1130
+ fallbackOffset: {
1131
+ x: 0,
1132
+ y: 0
1133
+ },
1134
+ supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,
1135
+ emptyInsertThreshold: 5
1136
+ };
1137
+ PluginManager.initializePlugins(this, el, defaults);
1138
+
1139
+ // Set default options
1140
+ for (var name in defaults) {
1141
+ !(name in options) && (options[name] = defaults[name]);
1142
+ }
1143
+ _prepareGroup(options);
1144
+
1145
+ // Bind all private methods
1146
+ for (var fn in this) {
1147
+ if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {
1148
+ this[fn] = this[fn].bind(this);
1149
+ }
1150
+ }
1151
+
1152
+ // Setup drag mode
1153
+ this.nativeDraggable = options.forceFallback ? false : supportDraggable;
1154
+ if (this.nativeDraggable) {
1155
+ // Touch start threshold cannot be greater than the native dragstart threshold
1156
+ this.options.touchStartThreshold = 1;
1157
+ }
1158
+
1159
+ // Bind events
1160
+ if (options.supportPointer) {
1161
+ on(el, 'pointerdown', this._onTapStart);
1162
+ } else {
1163
+ on(el, 'mousedown', this._onTapStart);
1164
+ on(el, 'touchstart', this._onTapStart);
1165
+ }
1166
+ if (this.nativeDraggable) {
1167
+ on(el, 'dragover', this);
1168
+ on(el, 'dragenter', this);
1169
+ }
1170
+ sortables.push(this.el);
1171
+
1172
+ // Restore sorting
1173
+ options.store && options.store.get && this.sort(options.store.get(this) || []);
1174
+
1175
+ // Add animation state manager
1176
+ _extends(this, AnimationStateManager());
1177
+ }
1178
+ Sortable.prototype = /** @lends Sortable.prototype */{
1179
+ constructor: Sortable,
1180
+ _isOutsideThisEl: function _isOutsideThisEl(target) {
1181
+ if (!this.el.contains(target) && target !== this.el) {
1182
+ lastTarget = null;
1183
+ }
1184
+ },
1185
+ _getDirection: function _getDirection(evt, target) {
1186
+ return typeof this.options.direction === 'function' ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;
1187
+ },
1188
+ _onTapStart: function _onTapStart( /** Event|TouchEvent */evt) {
1189
+ if (!evt.cancelable) return;
1190
+ var _this = this,
1191
+ el = this.el,
1192
+ options = this.options,
1193
+ preventOnFilter = options.preventOnFilter,
1194
+ type = evt.type,
1195
+ touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === 'touch' && evt,
1196
+ target = (touch || evt).target,
1197
+ originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target,
1198
+ filter = options.filter;
1199
+ _saveInputCheckedState(el);
1200
+
1201
+ // Don't trigger start event when an element is been dragged, otherwise the evt.oldindex always wrong when set option.group.
1202
+ if (dragEl) {
1203
+ return;
1204
+ }
1205
+ if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {
1206
+ return; // only left button and enabled
1207
+ }
1208
+
1209
+ // cancel dnd if original target is content editable
1210
+ if (originalTarget.isContentEditable) {
1211
+ return;
1212
+ }
1213
+
1214
+ // Safari ignores further event handling after mousedown
1215
+ if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === 'SELECT') {
1216
+ return;
1217
+ }
1218
+ target = closest(target, options.draggable, el, false);
1219
+ if (target && target.animated) {
1220
+ return;
1221
+ }
1222
+ if (lastDownEl === target) {
1223
+ // Ignoring duplicate `down`
1224
+ return;
1225
+ }
1226
+
1227
+ // Get the index of the dragged element within its parent
1228
+ oldIndex = index(target);
1229
+ oldDraggableIndex = index(target, options.draggable);
1230
+
1231
+ // Check filter
1232
+ if (typeof filter === 'function') {
1233
+ if (filter.call(this, evt, target, this)) {
1234
+ _dispatchEvent({
1235
+ sortable: _this,
1236
+ rootEl: originalTarget,
1237
+ name: 'filter',
1238
+ targetEl: target,
1239
+ toEl: el,
1240
+ fromEl: el
1241
+ });
1242
+ pluginEvent('filter', _this, {
1243
+ evt: evt
1244
+ });
1245
+ preventOnFilter && evt.cancelable && evt.preventDefault();
1246
+ return; // cancel dnd
1247
+ }
1248
+ } else if (filter) {
1249
+ filter = filter.split(',').some(function (criteria) {
1250
+ criteria = closest(originalTarget, criteria.trim(), el, false);
1251
+ if (criteria) {
1252
+ _dispatchEvent({
1253
+ sortable: _this,
1254
+ rootEl: criteria,
1255
+ name: 'filter',
1256
+ targetEl: target,
1257
+ fromEl: el,
1258
+ toEl: el
1259
+ });
1260
+ pluginEvent('filter', _this, {
1261
+ evt: evt
1262
+ });
1263
+ return true;
1264
+ }
1265
+ });
1266
+ if (filter) {
1267
+ preventOnFilter && evt.cancelable && evt.preventDefault();
1268
+ return; // cancel dnd
1269
+ }
1270
+ }
1271
+ if (options.handle && !closest(originalTarget, options.handle, el, false)) {
1272
+ return;
1273
+ }
1274
+
1275
+ // Prepare `dragstart`
1276
+ this._prepareDragStart(evt, touch, target);
1277
+ },
1278
+ _prepareDragStart: function _prepareDragStart( /** Event */evt, /** Touch */touch, /** HTMLElement */target) {
1279
+ var _this = this,
1280
+ el = _this.el,
1281
+ options = _this.options,
1282
+ ownerDocument = el.ownerDocument,
1283
+ dragStartFn;
1284
+ if (target && !dragEl && target.parentNode === el) {
1285
+ var dragRect = getRect(target);
1286
+ rootEl = el;
1287
+ dragEl = target;
1288
+ parentEl = dragEl.parentNode;
1289
+ nextEl = dragEl.nextSibling;
1290
+ lastDownEl = target;
1291
+ activeGroup = options.group;
1292
+ Sortable.dragged = dragEl;
1293
+ tapEvt = {
1294
+ target: dragEl,
1295
+ clientX: (touch || evt).clientX,
1296
+ clientY: (touch || evt).clientY
1297
+ };
1298
+ tapDistanceLeft = tapEvt.clientX - dragRect.left;
1299
+ tapDistanceTop = tapEvt.clientY - dragRect.top;
1300
+ this._lastX = (touch || evt).clientX;
1301
+ this._lastY = (touch || evt).clientY;
1302
+ dragEl.style['will-change'] = 'all';
1303
+ dragStartFn = function dragStartFn() {
1304
+ pluginEvent('delayEnded', _this, {
1305
+ evt: evt
1306
+ });
1307
+ if (Sortable.eventCanceled) {
1308
+ _this._onDrop();
1309
+ return;
1310
+ }
1311
+ // Delayed drag has been triggered
1312
+ // we can re-enable the events: touchmove/mousemove
1313
+ _this._disableDelayedDragEvents();
1314
+ if (!FireFox && _this.nativeDraggable) {
1315
+ dragEl.draggable = true;
1316
+ }
1317
+
1318
+ // Bind the events: dragstart/dragend
1319
+ _this._triggerDragStart(evt, touch);
1320
+
1321
+ // Drag start event
1322
+ _dispatchEvent({
1323
+ sortable: _this,
1324
+ name: 'choose',
1325
+ originalEvent: evt
1326
+ });
1327
+
1328
+ // Chosen item
1329
+ toggleClass(dragEl, options.chosenClass, true);
1330
+ };
1331
+
1332
+ // Disable "draggable"
1333
+ options.ignore.split(',').forEach(function (criteria) {
1334
+ find(dragEl, criteria.trim(), _disableDraggable);
1335
+ });
1336
+ on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent);
1337
+ on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent);
1338
+ on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent);
1339
+ on(ownerDocument, 'mouseup', _this._onDrop);
1340
+ on(ownerDocument, 'touchend', _this._onDrop);
1341
+ on(ownerDocument, 'touchcancel', _this._onDrop);
1342
+
1343
+ // Make dragEl draggable (must be before delay for FireFox)
1344
+ if (FireFox && this.nativeDraggable) {
1345
+ this.options.touchStartThreshold = 4;
1346
+ dragEl.draggable = true;
1347
+ }
1348
+ pluginEvent('delayStart', this, {
1349
+ evt: evt
1350
+ });
1351
+
1352
+ // Delay is impossible for native DnD in Edge or IE
1353
+ if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {
1354
+ if (Sortable.eventCanceled) {
1355
+ this._onDrop();
1356
+ return;
1357
+ }
1358
+ // If the user moves the pointer or let go the click or touch
1359
+ // before the delay has been reached:
1360
+ // disable the delayed drag
1361
+ on(ownerDocument, 'mouseup', _this._disableDelayedDrag);
1362
+ on(ownerDocument, 'touchend', _this._disableDelayedDrag);
1363
+ on(ownerDocument, 'touchcancel', _this._disableDelayedDrag);
1364
+ on(ownerDocument, 'mousemove', _this._delayedDragTouchMoveHandler);
1365
+ on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler);
1366
+ options.supportPointer && on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler);
1367
+ _this._dragStartTimer = setTimeout(dragStartFn, options.delay);
1368
+ } else {
1369
+ dragStartFn();
1370
+ }
1371
+ }
1372
+ },
1373
+ _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler( /** TouchEvent|PointerEvent **/e) {
1374
+ var touch = e.touches ? e.touches[0] : e;
1375
+ 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))) {
1376
+ this._disableDelayedDrag();
1377
+ }
1378
+ },
1379
+ _disableDelayedDrag: function _disableDelayedDrag() {
1380
+ dragEl && _disableDraggable(dragEl);
1381
+ clearTimeout(this._dragStartTimer);
1382
+ this._disableDelayedDragEvents();
1383
+ },
1384
+ _disableDelayedDragEvents: function _disableDelayedDragEvents() {
1385
+ var ownerDocument = this.el.ownerDocument;
1386
+ off(ownerDocument, 'mouseup', this._disableDelayedDrag);
1387
+ off(ownerDocument, 'touchend', this._disableDelayedDrag);
1388
+ off(ownerDocument, 'touchcancel', this._disableDelayedDrag);
1389
+ off(ownerDocument, 'mousemove', this._delayedDragTouchMoveHandler);
1390
+ off(ownerDocument, 'touchmove', this._delayedDragTouchMoveHandler);
1391
+ off(ownerDocument, 'pointermove', this._delayedDragTouchMoveHandler);
1392
+ },
1393
+ _triggerDragStart: function _triggerDragStart( /** Event */evt, /** Touch */touch) {
1394
+ touch = touch || evt.pointerType == 'touch' && evt;
1395
+ if (!this.nativeDraggable || touch) {
1396
+ if (this.options.supportPointer) {
1397
+ on(document, 'pointermove', this._onTouchMove);
1398
+ } else if (touch) {
1399
+ on(document, 'touchmove', this._onTouchMove);
1400
+ } else {
1401
+ on(document, 'mousemove', this._onTouchMove);
1402
+ }
1403
+ } else {
1404
+ on(dragEl, 'dragend', this);
1405
+ on(rootEl, 'dragstart', this._onDragStart);
1406
+ }
1407
+ try {
1408
+ if (document.selection) {
1409
+ // Timeout neccessary for IE9
1410
+ _nextTick(function () {
1411
+ document.selection.empty();
1412
+ });
1413
+ } else {
1414
+ window.getSelection().removeAllRanges();
1415
+ }
1416
+ } catch (err) {}
1417
+ },
1418
+ _dragStarted: function _dragStarted(fallback, evt) {
1419
+ awaitingDragStarted = false;
1420
+ if (rootEl && dragEl) {
1421
+ pluginEvent('dragStarted', this, {
1422
+ evt: evt
1423
+ });
1424
+ if (this.nativeDraggable) {
1425
+ on(document, 'dragover', _checkOutsideTargetEl);
1426
+ }
1427
+ var options = this.options;
1428
+
1429
+ // Apply effect
1430
+ !fallback && toggleClass(dragEl, options.dragClass, false);
1431
+ toggleClass(dragEl, options.ghostClass, true);
1432
+ Sortable.active = this;
1433
+ fallback && this._appendGhost();
1434
+
1435
+ // Drag start event
1436
+ _dispatchEvent({
1437
+ sortable: this,
1438
+ name: 'start',
1439
+ originalEvent: evt
1440
+ });
1441
+ } else {
1442
+ this._nulling();
1443
+ }
1444
+ },
1445
+ _emulateDragOver: function _emulateDragOver() {
1446
+ if (touchEvt) {
1447
+ this._lastX = touchEvt.clientX;
1448
+ this._lastY = touchEvt.clientY;
1449
+ _hideGhostForTarget();
1450
+ var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
1451
+ var parent = target;
1452
+ while (target && target.shadowRoot) {
1453
+ target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
1454
+ if (target === parent) break;
1455
+ parent = target;
1456
+ }
1457
+ dragEl.parentNode[expando]._isOutsideThisEl(target);
1458
+ if (parent) {
1459
+ do {
1460
+ if (parent[expando]) {
1461
+ var inserted = void 0;
1462
+ inserted = parent[expando]._onDragOver({
1463
+ clientX: touchEvt.clientX,
1464
+ clientY: touchEvt.clientY,
1465
+ target: target,
1466
+ rootEl: parent
1467
+ });
1468
+ if (inserted && !this.options.dragoverBubble) {
1469
+ break;
1470
+ }
1471
+ }
1472
+ target = parent; // store last element
1473
+ }
1474
+ /* jshint boss:true */ while (parent = parent.parentNode);
1475
+ }
1476
+ _unhideGhostForTarget();
1477
+ }
1478
+ },
1479
+ _onTouchMove: function _onTouchMove( /**TouchEvent*/evt) {
1480
+ if (tapEvt) {
1481
+ var options = this.options,
1482
+ fallbackTolerance = options.fallbackTolerance,
1483
+ fallbackOffset = options.fallbackOffset,
1484
+ touch = evt.touches ? evt.touches[0] : evt,
1485
+ ghostMatrix = ghostEl && matrix(ghostEl, true),
1486
+ scaleX = ghostEl && ghostMatrix && ghostMatrix.a,
1487
+ scaleY = ghostEl && ghostMatrix && ghostMatrix.d,
1488
+ relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent),
1489
+ dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1),
1490
+ dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1);
1491
+
1492
+ // only set the status to dragging, when we are actually dragging
1493
+ if (!Sortable.active && !awaitingDragStarted) {
1494
+ if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {
1495
+ return;
1496
+ }
1497
+ this._onDragStart(evt, true);
1498
+ }
1499
+ if (ghostEl) {
1500
+ if (ghostMatrix) {
1501
+ ghostMatrix.e += dx - (lastDx || 0);
1502
+ ghostMatrix.f += dy - (lastDy || 0);
1503
+ } else {
1504
+ ghostMatrix = {
1505
+ a: 1,
1506
+ b: 0,
1507
+ c: 0,
1508
+ d: 1,
1509
+ e: dx,
1510
+ f: dy
1511
+ };
1512
+ }
1513
+ var cssMatrix = "matrix(".concat(ghostMatrix.a, ",").concat(ghostMatrix.b, ",").concat(ghostMatrix.c, ",").concat(ghostMatrix.d, ",").concat(ghostMatrix.e, ",").concat(ghostMatrix.f, ")");
1514
+ css(ghostEl, 'webkitTransform', cssMatrix);
1515
+ css(ghostEl, 'mozTransform', cssMatrix);
1516
+ css(ghostEl, 'msTransform', cssMatrix);
1517
+ css(ghostEl, 'transform', cssMatrix);
1518
+ lastDx = dx;
1519
+ lastDy = dy;
1520
+ touchEvt = touch;
1521
+ }
1522
+ evt.cancelable && evt.preventDefault();
1523
+ }
1524
+ },
1525
+ _appendGhost: function _appendGhost() {
1526
+ // Bug if using scale(): https://stackoverflow.com/questions/2637058
1527
+ // Not being adjusted for
1528
+ if (!ghostEl) {
1529
+ var container = this.options.fallbackOnBody ? document.body : rootEl,
1530
+ rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container),
1531
+ options = this.options;
1532
+
1533
+ // Position absolutely
1534
+ if (PositionGhostAbsolutely) {
1535
+ // Get relatively positioned parent
1536
+ ghostRelativeParent = container;
1537
+ while (css(ghostRelativeParent, 'position') === 'static' && css(ghostRelativeParent, 'transform') === 'none' && ghostRelativeParent !== document) {
1538
+ ghostRelativeParent = ghostRelativeParent.parentNode;
1539
+ }
1540
+ if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {
1541
+ if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();
1542
+ rect.top += ghostRelativeParent.scrollTop;
1543
+ rect.left += ghostRelativeParent.scrollLeft;
1544
+ } else {
1545
+ ghostRelativeParent = getWindowScrollingElement();
1546
+ }
1547
+ ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);
1548
+ }
1549
+ ghostEl = dragEl.cloneNode(true);
1550
+ toggleClass(ghostEl, options.ghostClass, false);
1551
+ toggleClass(ghostEl, options.fallbackClass, true);
1552
+ toggleClass(ghostEl, options.dragClass, true);
1553
+ css(ghostEl, 'transition', '');
1554
+ css(ghostEl, 'transform', '');
1555
+ css(ghostEl, 'box-sizing', 'border-box');
1556
+ css(ghostEl, 'margin', 0);
1557
+ css(ghostEl, 'top', rect.top);
1558
+ css(ghostEl, 'left', rect.left);
1559
+ css(ghostEl, 'width', rect.width);
1560
+ css(ghostEl, 'height', rect.height);
1561
+ css(ghostEl, 'opacity', '0.8');
1562
+ css(ghostEl, 'position', PositionGhostAbsolutely ? 'absolute' : 'fixed');
1563
+ css(ghostEl, 'zIndex', '100000');
1564
+ css(ghostEl, 'pointerEvents', 'none');
1565
+ Sortable.ghost = ghostEl;
1566
+ container.appendChild(ghostEl);
1567
+
1568
+ // Set transform-origin
1569
+ css(ghostEl, 'transform-origin', tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + '% ' + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + '%');
1570
+ }
1571
+ },
1572
+ _onDragStart: function _onDragStart( /**Event*/evt, /**boolean*/fallback) {
1573
+ var _this = this;
1574
+ var dataTransfer = evt.dataTransfer;
1575
+ var options = _this.options;
1576
+ pluginEvent('dragStart', this, {
1577
+ evt: evt
1578
+ });
1579
+ if (Sortable.eventCanceled) {
1580
+ this._onDrop();
1581
+ return;
1582
+ }
1583
+ pluginEvent('setupClone', this);
1584
+ if (!Sortable.eventCanceled) {
1585
+ cloneEl = clone(dragEl);
1586
+ cloneEl.removeAttribute("id");
1587
+ cloneEl.draggable = false;
1588
+ cloneEl.style['will-change'] = '';
1589
+ this._hideClone();
1590
+ toggleClass(cloneEl, this.options.chosenClass, false);
1591
+ Sortable.clone = cloneEl;
1592
+ }
1593
+
1594
+ // #1143: IFrame support workaround
1595
+ _this.cloneId = _nextTick(function () {
1596
+ pluginEvent('clone', _this);
1597
+ if (Sortable.eventCanceled) return;
1598
+ if (!_this.options.removeCloneOnHide) {
1599
+ rootEl.insertBefore(cloneEl, dragEl);
1600
+ }
1601
+ _this._hideClone();
1602
+ _dispatchEvent({
1603
+ sortable: _this,
1604
+ name: 'clone'
1605
+ });
1606
+ });
1607
+ !fallback && toggleClass(dragEl, options.dragClass, true);
1608
+
1609
+ // Set proper drop events
1610
+ if (fallback) {
1611
+ ignoreNextClick = true;
1612
+ _this._loopId = setInterval(_this._emulateDragOver, 50);
1613
+ } else {
1614
+ // Undo what was set in _prepareDragStart before drag started
1615
+ off(document, 'mouseup', _this._onDrop);
1616
+ off(document, 'touchend', _this._onDrop);
1617
+ off(document, 'touchcancel', _this._onDrop);
1618
+ if (dataTransfer) {
1619
+ dataTransfer.effectAllowed = 'move';
1620
+ options.setData && options.setData.call(_this, dataTransfer, dragEl);
1621
+ }
1622
+ on(document, 'drop', _this);
1623
+
1624
+ // #1276 fix:
1625
+ css(dragEl, 'transform', 'translateZ(0)');
1626
+ }
1627
+ awaitingDragStarted = true;
1628
+ _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
1629
+ on(document, 'selectstart', _this);
1630
+ moved = true;
1631
+ if (Safari) {
1632
+ css(document.body, 'user-select', 'none');
1633
+ }
1634
+ },
1635
+ // Returns true - if no further action is needed (either inserted or another condition)
1636
+ _onDragOver: function _onDragOver( /**Event*/evt) {
1637
+ var el = this.el,
1638
+ target = evt.target,
1639
+ dragRect,
1640
+ targetRect,
1641
+ revert,
1642
+ options = this.options,
1643
+ group = options.group,
1644
+ activeSortable = Sortable.active,
1645
+ isOwner = activeGroup === group,
1646
+ canSort = options.sort,
1647
+ fromSortable = putSortable || activeSortable,
1648
+ vertical,
1649
+ _this = this,
1650
+ completedFired = false;
1651
+ if (_silent) return;
1652
+ function dragOverEvent(name, extra) {
1653
+ pluginEvent(name, _this, _objectSpread2({
1654
+ evt: evt,
1655
+ isOwner: isOwner,
1656
+ axis: vertical ? 'vertical' : 'horizontal',
1657
+ revert: revert,
1658
+ dragRect: dragRect,
1659
+ targetRect: targetRect,
1660
+ canSort: canSort,
1661
+ fromSortable: fromSortable,
1662
+ target: target,
1663
+ completed: completed,
1664
+ onMove: function onMove(target, after) {
1665
+ return _onMove(rootEl, el, dragEl, dragRect, target, getRect(target), evt, after);
1666
+ },
1667
+ changed: changed
1668
+ }, extra));
1669
+ }
1670
+
1671
+ // Capture animation state
1672
+ function capture() {
1673
+ dragOverEvent('dragOverAnimationCapture');
1674
+ _this.captureAnimationState();
1675
+ if (_this !== fromSortable) {
1676
+ fromSortable.captureAnimationState();
1677
+ }
1678
+ }
1679
+
1680
+ // Return invocation when dragEl is inserted (or completed)
1681
+ function completed(insertion) {
1682
+ dragOverEvent('dragOverCompleted', {
1683
+ insertion: insertion
1684
+ });
1685
+ if (insertion) {
1686
+ // Clones must be hidden before folding animation to capture dragRectAbsolute properly
1687
+ if (isOwner) {
1688
+ activeSortable._hideClone();
1689
+ } else {
1690
+ activeSortable._showClone(_this);
1691
+ }
1692
+ if (_this !== fromSortable) {
1693
+ // Set ghost class to new sortable's ghost class
1694
+ toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);
1695
+ toggleClass(dragEl, options.ghostClass, true);
1696
+ }
1697
+ if (putSortable !== _this && _this !== Sortable.active) {
1698
+ putSortable = _this;
1699
+ } else if (_this === Sortable.active && putSortable) {
1700
+ putSortable = null;
1701
+ }
1702
+
1703
+ // Animation
1704
+ if (fromSortable === _this) {
1705
+ _this._ignoreWhileAnimating = target;
1706
+ }
1707
+ _this.animateAll(function () {
1708
+ dragOverEvent('dragOverAnimationComplete');
1709
+ _this._ignoreWhileAnimating = null;
1710
+ });
1711
+ if (_this !== fromSortable) {
1712
+ fromSortable.animateAll();
1713
+ fromSortable._ignoreWhileAnimating = null;
1714
+ }
1715
+ }
1716
+
1717
+ // Null lastTarget if it is not inside a previously swapped element
1718
+ if (target === dragEl && !dragEl.animated || target === el && !target.animated) {
1719
+ lastTarget = null;
1720
+ }
1721
+
1722
+ // no bubbling and not fallback
1723
+ if (!options.dragoverBubble && !evt.rootEl && target !== document) {
1724
+ dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
1725
+
1726
+ // Do not detect for empty insert if already inserted
1727
+ !insertion && nearestEmptyInsertDetectEvent(evt);
1728
+ }
1729
+ !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();
1730
+ return completedFired = true;
1731
+ }
1732
+
1733
+ // Call when dragEl has been inserted
1734
+ function changed() {
1735
+ newIndex = index(dragEl);
1736
+ newDraggableIndex = index(dragEl, options.draggable);
1737
+ _dispatchEvent({
1738
+ sortable: _this,
1739
+ name: 'change',
1740
+ toEl: el,
1741
+ newIndex: newIndex,
1742
+ newDraggableIndex: newDraggableIndex,
1743
+ originalEvent: evt
1744
+ });
1745
+ }
1746
+ if (evt.preventDefault !== void 0) {
1747
+ evt.cancelable && evt.preventDefault();
1748
+ }
1749
+ target = closest(target, options.draggable, el, true);
1750
+ dragOverEvent('dragOver');
1751
+ if (Sortable.eventCanceled) return completedFired;
1752
+ if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {
1753
+ return completed(false);
1754
+ }
1755
+ ignoreNextClick = false;
1756
+ if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) // Reverting item into the original list
1757
+ : putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {
1758
+ vertical = this._getDirection(evt, target) === 'vertical';
1759
+ dragRect = getRect(dragEl);
1760
+ dragOverEvent('dragOverValid');
1761
+ if (Sortable.eventCanceled) return completedFired;
1762
+ if (revert) {
1763
+ parentEl = rootEl; // actualization
1764
+ capture();
1765
+ this._hideClone();
1766
+ dragOverEvent('revert');
1767
+ if (!Sortable.eventCanceled) {
1768
+ if (nextEl) {
1769
+ rootEl.insertBefore(dragEl, nextEl);
1770
+ } else {
1771
+ rootEl.appendChild(dragEl);
1772
+ }
1773
+ }
1774
+ return completed(true);
1775
+ }
1776
+ var elLastChild = lastChild(el, options.draggable);
1777
+ if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {
1778
+ // Insert to end of list
1779
+
1780
+ // If already at end of list: Do not insert
1781
+ if (elLastChild === dragEl) {
1782
+ return completed(false);
1783
+ }
1784
+
1785
+ // if there is a last element, it is the target
1786
+ if (elLastChild && el === evt.target) {
1787
+ target = elLastChild;
1788
+ }
1789
+ if (target) {
1790
+ targetRect = getRect(target);
1791
+ }
1792
+ if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
1793
+ capture();
1794
+ if (elLastChild && elLastChild.nextSibling) {
1795
+ // the last draggable element is not the last node
1796
+ el.insertBefore(dragEl, elLastChild.nextSibling);
1797
+ } else {
1798
+ el.appendChild(dragEl);
1799
+ }
1800
+ parentEl = el; // actualization
1801
+
1802
+ changed();
1803
+ return completed(true);
1804
+ }
1805
+ } else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {
1806
+ // Insert to start of list
1807
+ var firstChild = getChild(el, 0, options, true);
1808
+ if (firstChild === dragEl) {
1809
+ return completed(false);
1810
+ }
1811
+ target = firstChild;
1812
+ targetRect = getRect(target);
1813
+ if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {
1814
+ capture();
1815
+ el.insertBefore(dragEl, firstChild);
1816
+ parentEl = el; // actualization
1817
+
1818
+ changed();
1819
+ return completed(true);
1820
+ }
1821
+ } else if (target.parentNode === el) {
1822
+ targetRect = getRect(target);
1823
+ var direction = 0,
1824
+ targetBeforeFirstSwap,
1825
+ differentLevel = dragEl.parentNode !== el,
1826
+ differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical),
1827
+ side1 = vertical ? 'top' : 'left',
1828
+ scrolledPastTop = isScrolledPast(target, 'top', 'top') || isScrolledPast(dragEl, 'top', 'top'),
1829
+ scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;
1830
+ if (lastTarget !== target) {
1831
+ targetBeforeFirstSwap = targetRect[side1];
1832
+ pastFirstInvertThresh = false;
1833
+ isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;
1834
+ }
1835
+ direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);
1836
+ var sibling;
1837
+ if (direction !== 0) {
1838
+ // Check if target is beside dragEl in respective direction (ignoring hidden elements)
1839
+ var dragIndex = index(dragEl);
1840
+ do {
1841
+ dragIndex -= direction;
1842
+ sibling = parentEl.children[dragIndex];
1843
+ } while (sibling && (css(sibling, 'display') === 'none' || sibling === ghostEl));
1844
+ }
1845
+ // If dragEl is already beside target: Do not insert
1846
+ if (direction === 0 || sibling === target) {
1847
+ return completed(false);
1848
+ }
1849
+ lastTarget = target;
1850
+ lastDirection = direction;
1851
+ var nextSibling = target.nextElementSibling,
1852
+ after = false;
1853
+ after = direction === 1;
1854
+ var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);
1855
+ if (moveVector !== false) {
1856
+ if (moveVector === 1 || moveVector === -1) {
1857
+ after = moveVector === 1;
1858
+ }
1859
+ _silent = true;
1860
+ setTimeout(_unsilent, 30);
1861
+ capture();
1862
+ if (after && !nextSibling) {
1863
+ el.appendChild(dragEl);
1864
+ } else {
1865
+ target.parentNode.insertBefore(dragEl, after ? nextSibling : target);
1866
+ }
1867
+
1868
+ // Undo chrome's scroll adjustment (has no effect on other browsers)
1869
+ if (scrolledPastTop) {
1870
+ scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);
1871
+ }
1872
+ parentEl = dragEl.parentNode; // actualization
1873
+
1874
+ // must be done before animation
1875
+ if (targetBeforeFirstSwap !== undefined && !isCircumstantialInvert) {
1876
+ targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);
1877
+ }
1878
+ changed();
1879
+ return completed(true);
1880
+ }
1881
+ }
1882
+ if (el.contains(dragEl)) {
1883
+ return completed(false);
1884
+ }
1885
+ }
1886
+ return false;
1887
+ },
1888
+ _ignoreWhileAnimating: null,
1889
+ _offMoveEvents: function _offMoveEvents() {
1890
+ off(document, 'mousemove', this._onTouchMove);
1891
+ off(document, 'touchmove', this._onTouchMove);
1892
+ off(document, 'pointermove', this._onTouchMove);
1893
+ off(document, 'dragover', nearestEmptyInsertDetectEvent);
1894
+ off(document, 'mousemove', nearestEmptyInsertDetectEvent);
1895
+ off(document, 'touchmove', nearestEmptyInsertDetectEvent);
1896
+ },
1897
+ _offUpEvents: function _offUpEvents() {
1898
+ var ownerDocument = this.el.ownerDocument;
1899
+ off(ownerDocument, 'mouseup', this._onDrop);
1900
+ off(ownerDocument, 'touchend', this._onDrop);
1901
+ off(ownerDocument, 'pointerup', this._onDrop);
1902
+ off(ownerDocument, 'touchcancel', this._onDrop);
1903
+ off(document, 'selectstart', this);
1904
+ },
1905
+ _onDrop: function _onDrop( /**Event*/evt) {
1906
+ var el = this.el,
1907
+ options = this.options;
1908
+
1909
+ // Get the index of the dragged element within its parent
1910
+ newIndex = index(dragEl);
1911
+ newDraggableIndex = index(dragEl, options.draggable);
1912
+ pluginEvent('drop', this, {
1913
+ evt: evt
1914
+ });
1915
+ parentEl = dragEl && dragEl.parentNode;
1916
+
1917
+ // Get again after plugin event
1918
+ newIndex = index(dragEl);
1919
+ newDraggableIndex = index(dragEl, options.draggable);
1920
+ if (Sortable.eventCanceled) {
1921
+ this._nulling();
1922
+ return;
1923
+ }
1924
+ awaitingDragStarted = false;
1925
+ isCircumstantialInvert = false;
1926
+ pastFirstInvertThresh = false;
1927
+ clearInterval(this._loopId);
1928
+ clearTimeout(this._dragStartTimer);
1929
+ _cancelNextTick(this.cloneId);
1930
+ _cancelNextTick(this._dragStartId);
1931
+
1932
+ // Unbind events
1933
+ if (this.nativeDraggable) {
1934
+ off(document, 'drop', this);
1935
+ off(el, 'dragstart', this._onDragStart);
1936
+ }
1937
+ this._offMoveEvents();
1938
+ this._offUpEvents();
1939
+ if (Safari) {
1940
+ css(document.body, 'user-select', '');
1941
+ }
1942
+ css(dragEl, 'transform', '');
1943
+ if (evt) {
1944
+ if (moved) {
1945
+ evt.cancelable && evt.preventDefault();
1946
+ !options.dropBubble && evt.stopPropagation();
1947
+ }
1948
+ ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);
1949
+ if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {
1950
+ // Remove clone(s)
1951
+ cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);
1952
+ }
1953
+ if (dragEl) {
1954
+ if (this.nativeDraggable) {
1955
+ off(dragEl, 'dragend', this);
1956
+ }
1957
+ _disableDraggable(dragEl);
1958
+ dragEl.style['will-change'] = '';
1959
+
1960
+ // Remove classes
1961
+ // ghostClass is added in dragStarted
1962
+ if (moved && !awaitingDragStarted) {
1963
+ toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);
1964
+ }
1965
+ toggleClass(dragEl, this.options.chosenClass, false);
1966
+
1967
+ // Drag stop event
1968
+ _dispatchEvent({
1969
+ sortable: this,
1970
+ name: 'unchoose',
1971
+ toEl: parentEl,
1972
+ newIndex: null,
1973
+ newDraggableIndex: null,
1974
+ originalEvent: evt
1975
+ });
1976
+ if (rootEl !== parentEl) {
1977
+ if (newIndex >= 0) {
1978
+ // Add event
1979
+ _dispatchEvent({
1980
+ rootEl: parentEl,
1981
+ name: 'add',
1982
+ toEl: parentEl,
1983
+ fromEl: rootEl,
1984
+ originalEvent: evt
1985
+ });
1986
+
1987
+ // Remove event
1988
+ _dispatchEvent({
1989
+ sortable: this,
1990
+ name: 'remove',
1991
+ toEl: parentEl,
1992
+ originalEvent: evt
1993
+ });
1994
+
1995
+ // drag from one list and drop into another
1996
+ _dispatchEvent({
1997
+ rootEl: parentEl,
1998
+ name: 'sort',
1999
+ toEl: parentEl,
2000
+ fromEl: rootEl,
2001
+ originalEvent: evt
2002
+ });
2003
+ _dispatchEvent({
2004
+ sortable: this,
2005
+ name: 'sort',
2006
+ toEl: parentEl,
2007
+ originalEvent: evt
2008
+ });
2009
+ }
2010
+ putSortable && putSortable.save();
2011
+ } else {
2012
+ if (newIndex !== oldIndex) {
2013
+ if (newIndex >= 0) {
2014
+ // drag & drop within the same list
2015
+ _dispatchEvent({
2016
+ sortable: this,
2017
+ name: 'update',
2018
+ toEl: parentEl,
2019
+ originalEvent: evt
2020
+ });
2021
+ _dispatchEvent({
2022
+ sortable: this,
2023
+ name: 'sort',
2024
+ toEl: parentEl,
2025
+ originalEvent: evt
2026
+ });
2027
+ }
2028
+ }
2029
+ }
2030
+ if (Sortable.active) {
2031
+ /* jshint eqnull:true */
2032
+ if (newIndex == null || newIndex === -1) {
2033
+ newIndex = oldIndex;
2034
+ newDraggableIndex = oldDraggableIndex;
2035
+ }
2036
+ _dispatchEvent({
2037
+ sortable: this,
2038
+ name: 'end',
2039
+ toEl: parentEl,
2040
+ originalEvent: evt
2041
+ });
2042
+
2043
+ // Save sorting
2044
+ this.save();
2045
+ }
2046
+ }
2047
+ }
2048
+ this._nulling();
2049
+ },
2050
+ _nulling: function _nulling() {
2051
+ pluginEvent('nulling', this);
2052
+ 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;
2053
+ savedInputChecked.forEach(function (el) {
2054
+ el.checked = true;
2055
+ });
2056
+ savedInputChecked.length = lastDx = lastDy = 0;
2057
+ },
2058
+ handleEvent: function handleEvent( /**Event*/evt) {
2059
+ switch (evt.type) {
2060
+ case 'drop':
2061
+ case 'dragend':
2062
+ this._onDrop(evt);
2063
+ break;
2064
+ case 'dragenter':
2065
+ case 'dragover':
2066
+ if (dragEl) {
2067
+ this._onDragOver(evt);
2068
+ _globalDragOver(evt);
2069
+ }
2070
+ break;
2071
+ case 'selectstart':
2072
+ evt.preventDefault();
2073
+ break;
2074
+ }
2075
+ },
2076
+ /**
2077
+ * Serializes the item into an array of string.
2078
+ * @returns {String[]}
2079
+ */
2080
+ toArray: function toArray() {
2081
+ var order = [],
2082
+ el,
2083
+ children = this.el.children,
2084
+ i = 0,
2085
+ n = children.length,
2086
+ options = this.options;
2087
+ for (; i < n; i++) {
2088
+ el = children[i];
2089
+ if (closest(el, options.draggable, this.el, false)) {
2090
+ order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));
2091
+ }
2092
+ }
2093
+ return order;
2094
+ },
2095
+ /**
2096
+ * Sorts the elements according to the array.
2097
+ * @param {String[]} order order of the items
2098
+ */
2099
+ sort: function sort(order, useAnimation) {
2100
+ var items = {},
2101
+ rootEl = this.el;
2102
+ this.toArray().forEach(function (id, i) {
2103
+ var el = rootEl.children[i];
2104
+ if (closest(el, this.options.draggable, rootEl, false)) {
2105
+ items[id] = el;
2106
+ }
2107
+ }, this);
2108
+ useAnimation && this.captureAnimationState();
2109
+ order.forEach(function (id) {
2110
+ if (items[id]) {
2111
+ rootEl.removeChild(items[id]);
2112
+ rootEl.appendChild(items[id]);
2113
+ }
2114
+ });
2115
+ useAnimation && this.animateAll();
2116
+ },
2117
+ /**
2118
+ * Save the current sorting
2119
+ */
2120
+ save: function save() {
2121
+ var store = this.options.store;
2122
+ store && store.set && store.set(this);
2123
+ },
2124
+ /**
2125
+ * 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.
2126
+ * @param {HTMLElement} el
2127
+ * @param {String} [selector] default: `options.draggable`
2128
+ * @returns {HTMLElement|null}
2129
+ */
2130
+ closest: function closest$1(el, selector) {
2131
+ return closest(el, selector || this.options.draggable, this.el, false);
2132
+ },
2133
+ /**
2134
+ * Set/get option
2135
+ * @param {string} name
2136
+ * @param {*} [value]
2137
+ * @returns {*}
2138
+ */
2139
+ option: function option(name, value) {
2140
+ var options = this.options;
2141
+ if (value === void 0) {
2142
+ return options[name];
2143
+ } else {
2144
+ var modifiedValue = PluginManager.modifyOption(this, name, value);
2145
+ if (typeof modifiedValue !== 'undefined') {
2146
+ options[name] = modifiedValue;
2147
+ } else {
2148
+ options[name] = value;
2149
+ }
2150
+ if (name === 'group') {
2151
+ _prepareGroup(options);
2152
+ }
2153
+ }
2154
+ },
2155
+ /**
2156
+ * Destroy
2157
+ */
2158
+ destroy: function destroy() {
2159
+ pluginEvent('destroy', this);
2160
+ var el = this.el;
2161
+ el[expando] = null;
2162
+ off(el, 'mousedown', this._onTapStart);
2163
+ off(el, 'touchstart', this._onTapStart);
2164
+ off(el, 'pointerdown', this._onTapStart);
2165
+ if (this.nativeDraggable) {
2166
+ off(el, 'dragover', this);
2167
+ off(el, 'dragenter', this);
2168
+ }
2169
+ // Remove draggable attributes
2170
+ Array.prototype.forEach.call(el.querySelectorAll('[draggable]'), function (el) {
2171
+ el.removeAttribute('draggable');
2172
+ });
2173
+ this._onDrop();
2174
+ this._disableDelayedDragEvents();
2175
+ sortables.splice(sortables.indexOf(this.el), 1);
2176
+ this.el = el = null;
2177
+ },
2178
+ _hideClone: function _hideClone() {
2179
+ if (!cloneHidden) {
2180
+ pluginEvent('hideClone', this);
2181
+ if (Sortable.eventCanceled) return;
2182
+ css(cloneEl, 'display', 'none');
2183
+ if (this.options.removeCloneOnHide && cloneEl.parentNode) {
2184
+ cloneEl.parentNode.removeChild(cloneEl);
2185
+ }
2186
+ cloneHidden = true;
2187
+ }
2188
+ },
2189
+ _showClone: function _showClone(putSortable) {
2190
+ if (putSortable.lastPutMode !== 'clone') {
2191
+ this._hideClone();
2192
+ return;
2193
+ }
2194
+ if (cloneHidden) {
2195
+ pluginEvent('showClone', this);
2196
+ if (Sortable.eventCanceled) return;
2197
+
2198
+ // show clone at dragEl or original position
2199
+ if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {
2200
+ rootEl.insertBefore(cloneEl, dragEl);
2201
+ } else if (nextEl) {
2202
+ rootEl.insertBefore(cloneEl, nextEl);
2203
+ } else {
2204
+ rootEl.appendChild(cloneEl);
2205
+ }
2206
+ if (this.options.group.revertClone) {
2207
+ this.animate(dragEl, cloneEl);
2208
+ }
2209
+ css(cloneEl, 'display', '');
2210
+ cloneHidden = false;
2211
+ }
2212
+ }
2213
+ };
2214
+ function _globalDragOver( /**Event*/evt) {
2215
+ if (evt.dataTransfer) {
2216
+ evt.dataTransfer.dropEffect = 'move';
2217
+ }
2218
+ evt.cancelable && evt.preventDefault();
2219
+ }
2220
+ function _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {
2221
+ var evt,
2222
+ sortable = fromEl[expando],
2223
+ onMoveFn = sortable.options.onMove,
2224
+ retVal;
2225
+ // Support for new CustomEvent feature
2226
+ if (window.CustomEvent && !IE11OrLess && !Edge) {
2227
+ evt = new CustomEvent('move', {
2228
+ bubbles: true,
2229
+ cancelable: true
2230
+ });
2231
+ } else {
2232
+ evt = document.createEvent('Event');
2233
+ evt.initEvent('move', true, true);
2234
+ }
2235
+ evt.to = toEl;
2236
+ evt.from = fromEl;
2237
+ evt.dragged = dragEl;
2238
+ evt.draggedRect = dragRect;
2239
+ evt.related = targetEl || toEl;
2240
+ evt.relatedRect = targetRect || getRect(toEl);
2241
+ evt.willInsertAfter = willInsertAfter;
2242
+ evt.originalEvent = originalEvent;
2243
+ fromEl.dispatchEvent(evt);
2244
+ if (onMoveFn) {
2245
+ retVal = onMoveFn.call(sortable, evt, originalEvent);
2246
+ }
2247
+ return retVal;
2248
+ }
2249
+ function _disableDraggable(el) {
2250
+ el.draggable = false;
2251
+ }
2252
+ function _unsilent() {
2253
+ _silent = false;
2254
+ }
2255
+ function _ghostIsFirst(evt, vertical, sortable) {
2256
+ var firstElRect = getRect(getChild(sortable.el, 0, sortable.options, true));
2257
+ var sortableContentRect = getContentRect(sortable.el);
2258
+ var spacer = 10;
2259
+ return vertical ? evt.clientX < sortableContentRect.left - spacer || evt.clientY < firstElRect.top && evt.clientX < firstElRect.right : evt.clientY < sortableContentRect.top - spacer || evt.clientY < firstElRect.bottom && evt.clientX < firstElRect.left;
2260
+ }
2261
+ function _ghostIsLast(evt, vertical, sortable) {
2262
+ var lastElRect = getRect(lastChild(sortable.el, sortable.options.draggable));
2263
+ var sortableContentRect = getContentRect(sortable.el);
2264
+ var spacer = 10;
2265
+ return vertical ? evt.clientX > sortableContentRect.right + spacer || evt.clientY > lastElRect.bottom && evt.clientX > lastElRect.left : evt.clientY > sortableContentRect.bottom + spacer || evt.clientX > lastElRect.right && evt.clientY > lastElRect.top;
2266
+ }
2267
+ function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {
2268
+ var mouseOnAxis = vertical ? evt.clientY : evt.clientX,
2269
+ targetLength = vertical ? targetRect.height : targetRect.width,
2270
+ targetS1 = vertical ? targetRect.top : targetRect.left,
2271
+ targetS2 = vertical ? targetRect.bottom : targetRect.right,
2272
+ invert = false;
2273
+ if (!invertSwap) {
2274
+ // Never invert or create dragEl shadow when target movemenet causes mouse to move past the end of regular swapThreshold
2275
+ if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {
2276
+ // multiplied only by swapThreshold because mouse will already be inside target by (1 - threshold) * targetLength / 2
2277
+ // check if past first invert threshold on side opposite of lastDirection
2278
+ if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {
2279
+ // past first invert threshold, do not restrict inverted threshold to dragEl shadow
2280
+ pastFirstInvertThresh = true;
2281
+ }
2282
+ if (!pastFirstInvertThresh) {
2283
+ // dragEl shadow (target move distance shadow)
2284
+ if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance // over dragEl shadow
2285
+ : mouseOnAxis > targetS2 - targetMoveDistance) {
2286
+ return -lastDirection;
2287
+ }
2288
+ } else {
2289
+ invert = true;
2290
+ }
2291
+ } else {
2292
+ // Regular
2293
+ if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {
2294
+ return _getInsertDirection(target);
2295
+ }
2296
+ }
2297
+ }
2298
+ invert = invert || invertSwap;
2299
+ if (invert) {
2300
+ // Invert of regular
2301
+ if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {
2302
+ return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;
2303
+ }
2304
+ }
2305
+ return 0;
2306
+ }
2307
+
2308
+ /**
2309
+ * Gets the direction dragEl must be swapped relative to target in order to make it
2310
+ * seem that dragEl has been "inserted" into that element's position
2311
+ * @param {HTMLElement} target The target whose position dragEl is being inserted at
2312
+ * @return {Number} Direction dragEl must be swapped
2313
+ */
2314
+ function _getInsertDirection(target) {
2315
+ if (index(dragEl) < index(target)) {
2316
+ return 1;
2317
+ } else {
2318
+ return -1;
2319
+ }
2320
+ }
2321
+
2322
+ /**
2323
+ * Generate id
2324
+ * @param {HTMLElement} el
2325
+ * @returns {String}
2326
+ * @private
2327
+ */
2328
+ function _generateId(el) {
2329
+ var str = el.tagName + el.className + el.src + el.href + el.textContent,
2330
+ i = str.length,
2331
+ sum = 0;
2332
+ while (i--) {
2333
+ sum += str.charCodeAt(i);
2334
+ }
2335
+ return sum.toString(36);
2336
+ }
2337
+ function _saveInputCheckedState(root) {
2338
+ savedInputChecked.length = 0;
2339
+ var inputs = root.getElementsByTagName('input');
2340
+ var idx = inputs.length;
2341
+ while (idx--) {
2342
+ var el = inputs[idx];
2343
+ el.checked && savedInputChecked.push(el);
2344
+ }
2345
+ }
2346
+ function _nextTick(fn) {
2347
+ return setTimeout(fn, 0);
2348
+ }
2349
+ function _cancelNextTick(id) {
2350
+ return clearTimeout(id);
2351
+ }
2352
+
2353
+ // Fixed #973:
2354
+ if (documentExists) {
2355
+ on(document, 'touchmove', function (evt) {
2356
+ if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {
2357
+ evt.preventDefault();
2358
+ }
2359
+ });
2360
+ }
2361
+
2362
+ // Export utils
2363
+ Sortable.utils = {
2364
+ on: on,
2365
+ off: off,
2366
+ css: css,
2367
+ find: find,
2368
+ is: function is(el, selector) {
2369
+ return !!closest(el, selector, el, false);
2370
+ },
2371
+ extend: extend,
2372
+ throttle: throttle,
2373
+ closest: closest,
2374
+ toggleClass: toggleClass,
2375
+ clone: clone,
2376
+ index: index,
2377
+ nextTick: _nextTick,
2378
+ cancelNextTick: _cancelNextTick,
2379
+ detectDirection: _detectDirection,
2380
+ getChild: getChild
2381
+ };
2382
+
2383
+ /**
2384
+ * Get the Sortable instance of an element
2385
+ * @param {HTMLElement} element The element
2386
+ * @return {Sortable|undefined} The instance of Sortable
2387
+ */
2388
+ Sortable.get = function (element) {
2389
+ return element[expando];
2390
+ };
2391
+
2392
+ /**
2393
+ * Mount a plugin to Sortable
2394
+ * @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
2395
+ */
2396
+ Sortable.mount = function () {
2397
+ for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {
2398
+ plugins[_key] = arguments[_key];
2399
+ }
2400
+ if (plugins[0].constructor === Array) plugins = plugins[0];
2401
+ plugins.forEach(function (plugin) {
2402
+ if (!plugin.prototype || !plugin.prototype.constructor) {
2403
+ throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(plugin));
2404
+ }
2405
+ if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);
2406
+ PluginManager.mount(plugin);
2407
+ });
2408
+ };
2409
+
2410
+ /**
2411
+ * Create sortable instance
2412
+ * @param {HTMLElement} el
2413
+ * @param {Object} [options]
2414
+ */
2415
+ Sortable.create = function (el, options) {
2416
+ return new Sortable(el, options);
2417
+ };
2418
+
2419
+ // Export
2420
+ Sortable.version = version;
2421
+
2422
+ var autoScrolls = [],
2423
+ scrollEl,
2424
+ scrollRootEl,
2425
+ scrolling = false,
2426
+ lastAutoScrollX,
2427
+ lastAutoScrollY,
2428
+ touchEvt$1,
2429
+ pointerElemChangedInterval;
2430
+ function AutoScrollPlugin() {
2431
+ function AutoScroll() {
2432
+ this.defaults = {
2433
+ scroll: true,
2434
+ forceAutoScrollFallback: false,
2435
+ scrollSensitivity: 30,
2436
+ scrollSpeed: 10,
2437
+ bubbleScroll: true
2438
+ };
2439
+
2440
+ // Bind all private methods
2441
+ for (var fn in this) {
2442
+ if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {
2443
+ this[fn] = this[fn].bind(this);
2444
+ }
2445
+ }
2446
+ }
2447
+ AutoScroll.prototype = {
2448
+ dragStarted: function dragStarted(_ref) {
2449
+ var originalEvent = _ref.originalEvent;
2450
+ if (this.sortable.nativeDraggable) {
2451
+ on(document, 'dragover', this._handleAutoScroll);
2452
+ } else {
2453
+ if (this.options.supportPointer) {
2454
+ on(document, 'pointermove', this._handleFallbackAutoScroll);
2455
+ } else if (originalEvent.touches) {
2456
+ on(document, 'touchmove', this._handleFallbackAutoScroll);
2457
+ } else {
2458
+ on(document, 'mousemove', this._handleFallbackAutoScroll);
2459
+ }
2460
+ }
2461
+ },
2462
+ dragOverCompleted: function dragOverCompleted(_ref2) {
2463
+ var originalEvent = _ref2.originalEvent;
2464
+ // For when bubbling is canceled and using fallback (fallback 'touchmove' always reached)
2465
+ if (!this.options.dragOverBubble && !originalEvent.rootEl) {
2466
+ this._handleAutoScroll(originalEvent);
2467
+ }
2468
+ },
2469
+ drop: function drop() {
2470
+ if (this.sortable.nativeDraggable) {
2471
+ off(document, 'dragover', this._handleAutoScroll);
2472
+ } else {
2473
+ off(document, 'pointermove', this._handleFallbackAutoScroll);
2474
+ off(document, 'touchmove', this._handleFallbackAutoScroll);
2475
+ off(document, 'mousemove', this._handleFallbackAutoScroll);
2476
+ }
2477
+ clearPointerElemChangedInterval();
2478
+ clearAutoScrolls();
2479
+ cancelThrottle();
2480
+ },
2481
+ nulling: function nulling() {
2482
+ touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;
2483
+ autoScrolls.length = 0;
2484
+ },
2485
+ _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {
2486
+ this._handleAutoScroll(evt, true);
2487
+ },
2488
+ _handleAutoScroll: function _handleAutoScroll(evt, fallback) {
2489
+ var _this = this;
2490
+ var x = (evt.touches ? evt.touches[0] : evt).clientX,
2491
+ y = (evt.touches ? evt.touches[0] : evt).clientY,
2492
+ elem = document.elementFromPoint(x, y);
2493
+ touchEvt$1 = evt;
2494
+
2495
+ // IE does not seem to have native autoscroll,
2496
+ // Edge's autoscroll seems too conditional,
2497
+ // MACOS Safari does not have autoscroll,
2498
+ // Firefox and Chrome are good
2499
+ if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {
2500
+ autoScroll(evt, this.options, elem, fallback);
2501
+
2502
+ // Listener for pointer element change
2503
+ var ogElemScroller = getParentAutoScrollElement(elem, true);
2504
+ if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {
2505
+ pointerElemChangedInterval && clearPointerElemChangedInterval();
2506
+ // Detect for pointer elem change, emulating native DnD behaviour
2507
+ pointerElemChangedInterval = setInterval(function () {
2508
+ var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);
2509
+ if (newElem !== ogElemScroller) {
2510
+ ogElemScroller = newElem;
2511
+ clearAutoScrolls();
2512
+ }
2513
+ autoScroll(evt, _this.options, newElem, fallback);
2514
+ }, 10);
2515
+ lastAutoScrollX = x;
2516
+ lastAutoScrollY = y;
2517
+ }
2518
+ } else {
2519
+ // if DnD is enabled (and browser has good autoscrolling), first autoscroll will already scroll, so get parent autoscroll of first autoscroll
2520
+ if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {
2521
+ clearAutoScrolls();
2522
+ return;
2523
+ }
2524
+ autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);
2525
+ }
2526
+ }
2527
+ };
2528
+ return _extends(AutoScroll, {
2529
+ pluginName: 'scroll',
2530
+ initializeByDefault: true
2531
+ });
2532
+ }
2533
+ function clearAutoScrolls() {
2534
+ autoScrolls.forEach(function (autoScroll) {
2535
+ clearInterval(autoScroll.pid);
2536
+ });
2537
+ autoScrolls = [];
2538
+ }
2539
+ function clearPointerElemChangedInterval() {
2540
+ clearInterval(pointerElemChangedInterval);
2541
+ }
2542
+ var autoScroll = throttle(function (evt, options, rootEl, isFallback) {
2543
+ // Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521
2544
+ if (!options.scroll) return;
2545
+ var x = (evt.touches ? evt.touches[0] : evt).clientX,
2546
+ y = (evt.touches ? evt.touches[0] : evt).clientY,
2547
+ sens = options.scrollSensitivity,
2548
+ speed = options.scrollSpeed,
2549
+ winScroller = getWindowScrollingElement();
2550
+ var scrollThisInstance = false,
2551
+ scrollCustomFn;
2552
+
2553
+ // New scroll root, set scrollEl
2554
+ if (scrollRootEl !== rootEl) {
2555
+ scrollRootEl = rootEl;
2556
+ clearAutoScrolls();
2557
+ scrollEl = options.scroll;
2558
+ scrollCustomFn = options.scrollFn;
2559
+ if (scrollEl === true) {
2560
+ scrollEl = getParentAutoScrollElement(rootEl, true);
2561
+ }
2562
+ }
2563
+ var layersOut = 0;
2564
+ var currentParent = scrollEl;
2565
+ do {
2566
+ var el = currentParent,
2567
+ rect = getRect(el),
2568
+ top = rect.top,
2569
+ bottom = rect.bottom,
2570
+ left = rect.left,
2571
+ right = rect.right,
2572
+ width = rect.width,
2573
+ height = rect.height,
2574
+ canScrollX = void 0,
2575
+ canScrollY = void 0,
2576
+ scrollWidth = el.scrollWidth,
2577
+ scrollHeight = el.scrollHeight,
2578
+ elCSS = css(el),
2579
+ scrollPosX = el.scrollLeft,
2580
+ scrollPosY = el.scrollTop;
2581
+ if (el === winScroller) {
2582
+ canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll' || elCSS.overflowX === 'visible');
2583
+ canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll' || elCSS.overflowY === 'visible');
2584
+ } else {
2585
+ canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll');
2586
+ canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll');
2587
+ }
2588
+ var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);
2589
+ var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);
2590
+ if (!autoScrolls[layersOut]) {
2591
+ for (var i = 0; i <= layersOut; i++) {
2592
+ if (!autoScrolls[i]) {
2593
+ autoScrolls[i] = {};
2594
+ }
2595
+ }
2596
+ }
2597
+ if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {
2598
+ autoScrolls[layersOut].el = el;
2599
+ autoScrolls[layersOut].vx = vx;
2600
+ autoScrolls[layersOut].vy = vy;
2601
+ clearInterval(autoScrolls[layersOut].pid);
2602
+ if (vx != 0 || vy != 0) {
2603
+ scrollThisInstance = true;
2604
+ /* jshint loopfunc:true */
2605
+ autoScrolls[layersOut].pid = setInterval(function () {
2606
+ // emulate drag over during autoscroll (fallback), emulating native DnD behaviour
2607
+ if (isFallback && this.layer === 0) {
2608
+ Sortable.active._onTouchMove(touchEvt$1); // To move ghost if it is positioned absolutely
2609
+ }
2610
+ var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;
2611
+ var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;
2612
+ if (typeof scrollCustomFn === 'function') {
2613
+ if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== 'continue') {
2614
+ return;
2615
+ }
2616
+ }
2617
+ scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);
2618
+ }.bind({
2619
+ layer: layersOut
2620
+ }), 24);
2621
+ }
2622
+ }
2623
+ layersOut++;
2624
+ } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));
2625
+ scrolling = scrollThisInstance; // in case another function catches scrolling as false in between when it is not
2626
+ }, 30);
2627
+
2628
+ var drop = function drop(_ref) {
2629
+ var originalEvent = _ref.originalEvent,
2630
+ putSortable = _ref.putSortable,
2631
+ dragEl = _ref.dragEl,
2632
+ activeSortable = _ref.activeSortable,
2633
+ dispatchSortableEvent = _ref.dispatchSortableEvent,
2634
+ hideGhostForTarget = _ref.hideGhostForTarget,
2635
+ unhideGhostForTarget = _ref.unhideGhostForTarget;
2636
+ if (!originalEvent) return;
2637
+ var toSortable = putSortable || activeSortable;
2638
+ hideGhostForTarget();
2639
+ var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;
2640
+ var target = document.elementFromPoint(touch.clientX, touch.clientY);
2641
+ unhideGhostForTarget();
2642
+ if (toSortable && !toSortable.el.contains(target)) {
2643
+ dispatchSortableEvent('spill');
2644
+ this.onSpill({
2645
+ dragEl: dragEl,
2646
+ putSortable: putSortable
2647
+ });
2648
+ }
2649
+ };
2650
+ function Revert() {}
2651
+ Revert.prototype = {
2652
+ startIndex: null,
2653
+ dragStart: function dragStart(_ref2) {
2654
+ var oldDraggableIndex = _ref2.oldDraggableIndex;
2655
+ this.startIndex = oldDraggableIndex;
2656
+ },
2657
+ onSpill: function onSpill(_ref3) {
2658
+ var dragEl = _ref3.dragEl,
2659
+ putSortable = _ref3.putSortable;
2660
+ this.sortable.captureAnimationState();
2661
+ if (putSortable) {
2662
+ putSortable.captureAnimationState();
2663
+ }
2664
+ var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);
2665
+ if (nextSibling) {
2666
+ this.sortable.el.insertBefore(dragEl, nextSibling);
2667
+ } else {
2668
+ this.sortable.el.appendChild(dragEl);
2669
+ }
2670
+ this.sortable.animateAll();
2671
+ if (putSortable) {
2672
+ putSortable.animateAll();
2673
+ }
2674
+ },
2675
+ drop: drop
2676
+ };
2677
+ _extends(Revert, {
2678
+ pluginName: 'revertOnSpill'
2679
+ });
2680
+ function Remove() {}
2681
+ Remove.prototype = {
2682
+ onSpill: function onSpill(_ref4) {
2683
+ var dragEl = _ref4.dragEl,
2684
+ putSortable = _ref4.putSortable;
2685
+ var parentSortable = putSortable || this.sortable;
2686
+ parentSortable.captureAnimationState();
2687
+ dragEl.parentNode && dragEl.parentNode.removeChild(dragEl);
2688
+ parentSortable.animateAll();
2689
+ },
2690
+ drop: drop
2691
+ };
2692
+ _extends(Remove, {
2693
+ pluginName: 'removeOnSpill'
2694
+ });
2695
+
2696
+ var lastSwapEl;
2697
+ function SwapPlugin() {
2698
+ function Swap() {
2699
+ this.defaults = {
2700
+ swapClass: 'sortable-swap-highlight'
2701
+ };
2702
+ }
2703
+ Swap.prototype = {
2704
+ dragStart: function dragStart(_ref) {
2705
+ var dragEl = _ref.dragEl;
2706
+ lastSwapEl = dragEl;
2707
+ },
2708
+ dragOverValid: function dragOverValid(_ref2) {
2709
+ var completed = _ref2.completed,
2710
+ target = _ref2.target,
2711
+ onMove = _ref2.onMove,
2712
+ activeSortable = _ref2.activeSortable,
2713
+ changed = _ref2.changed,
2714
+ cancel = _ref2.cancel;
2715
+ if (!activeSortable.options.swap) return;
2716
+ var el = this.sortable.el,
2717
+ options = this.options;
2718
+ if (target && target !== el) {
2719
+ var prevSwapEl = lastSwapEl;
2720
+ if (onMove(target) !== false) {
2721
+ toggleClass(target, options.swapClass, true);
2722
+ lastSwapEl = target;
2723
+ } else {
2724
+ lastSwapEl = null;
2725
+ }
2726
+ if (prevSwapEl && prevSwapEl !== lastSwapEl) {
2727
+ toggleClass(prevSwapEl, options.swapClass, false);
2728
+ }
2729
+ }
2730
+ changed();
2731
+ completed(true);
2732
+ cancel();
2733
+ },
2734
+ drop: function drop(_ref3) {
2735
+ var activeSortable = _ref3.activeSortable,
2736
+ putSortable = _ref3.putSortable,
2737
+ dragEl = _ref3.dragEl;
2738
+ var toSortable = putSortable || this.sortable;
2739
+ var options = this.options;
2740
+ lastSwapEl && toggleClass(lastSwapEl, options.swapClass, false);
2741
+ if (lastSwapEl && (options.swap || putSortable && putSortable.options.swap)) {
2742
+ if (dragEl !== lastSwapEl) {
2743
+ toSortable.captureAnimationState();
2744
+ if (toSortable !== activeSortable) activeSortable.captureAnimationState();
2745
+ swapNodes(dragEl, lastSwapEl);
2746
+ toSortable.animateAll();
2747
+ if (toSortable !== activeSortable) activeSortable.animateAll();
2748
+ }
2749
+ }
2750
+ },
2751
+ nulling: function nulling() {
2752
+ lastSwapEl = null;
2753
+ }
2754
+ };
2755
+ return _extends(Swap, {
2756
+ pluginName: 'swap',
2757
+ eventProperties: function eventProperties() {
2758
+ return {
2759
+ swapItem: lastSwapEl
2760
+ };
2761
+ }
2762
+ });
2763
+ }
2764
+ function swapNodes(n1, n2) {
2765
+ var p1 = n1.parentNode,
2766
+ p2 = n2.parentNode,
2767
+ i1,
2768
+ i2;
2769
+ if (!p1 || !p2 || p1.isEqualNode(n2) || p2.isEqualNode(n1)) return;
2770
+ i1 = index(n1);
2771
+ i2 = index(n2);
2772
+ if (p1.isEqualNode(p2) && i1 < i2) {
2773
+ i2++;
2774
+ }
2775
+ p1.insertBefore(n2, p1.children[i1]);
2776
+ p2.insertBefore(n1, p2.children[i2]);
2777
+ }
2778
+
2779
+ var multiDragElements = [],
2780
+ multiDragClones = [],
2781
+ lastMultiDragSelect,
2782
+ // for selection with modifier key down (SHIFT)
2783
+ multiDragSortable,
2784
+ initialFolding = false,
2785
+ // Initial multi-drag fold when drag started
2786
+ folding = false,
2787
+ // Folding any other time
2788
+ dragStarted = false,
2789
+ dragEl$1,
2790
+ clonesFromRect,
2791
+ clonesHidden;
2792
+ function MultiDragPlugin() {
2793
+ function MultiDrag(sortable) {
2794
+ // Bind all private methods
2795
+ for (var fn in this) {
2796
+ if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {
2797
+ this[fn] = this[fn].bind(this);
2798
+ }
2799
+ }
2800
+ if (!sortable.options.avoidImplicitDeselect) {
2801
+ if (sortable.options.supportPointer) {
2802
+ on(document, 'pointerup', this._deselectMultiDrag);
2803
+ } else {
2804
+ on(document, 'mouseup', this._deselectMultiDrag);
2805
+ on(document, 'touchend', this._deselectMultiDrag);
2806
+ }
2807
+ }
2808
+ on(document, 'keydown', this._checkKeyDown);
2809
+ on(document, 'keyup', this._checkKeyUp);
2810
+ this.defaults = {
2811
+ selectedClass: 'sortable-selected',
2812
+ multiDragKey: null,
2813
+ avoidImplicitDeselect: false,
2814
+ setData: function setData(dataTransfer, dragEl) {
2815
+ var data = '';
2816
+ if (multiDragElements.length && multiDragSortable === sortable) {
2817
+ multiDragElements.forEach(function (multiDragElement, i) {
2818
+ data += (!i ? '' : ', ') + multiDragElement.textContent;
2819
+ });
2820
+ } else {
2821
+ data = dragEl.textContent;
2822
+ }
2823
+ dataTransfer.setData('Text', data);
2824
+ }
2825
+ };
2826
+ }
2827
+ MultiDrag.prototype = {
2828
+ multiDragKeyDown: false,
2829
+ isMultiDrag: false,
2830
+ delayStartGlobal: function delayStartGlobal(_ref) {
2831
+ var dragged = _ref.dragEl;
2832
+ dragEl$1 = dragged;
2833
+ },
2834
+ delayEnded: function delayEnded() {
2835
+ this.isMultiDrag = ~multiDragElements.indexOf(dragEl$1);
2836
+ },
2837
+ setupClone: function setupClone(_ref2) {
2838
+ var sortable = _ref2.sortable,
2839
+ cancel = _ref2.cancel;
2840
+ if (!this.isMultiDrag) return;
2841
+ for (var i = 0; i < multiDragElements.length; i++) {
2842
+ multiDragClones.push(clone(multiDragElements[i]));
2843
+ multiDragClones[i].sortableIndex = multiDragElements[i].sortableIndex;
2844
+ multiDragClones[i].draggable = false;
2845
+ multiDragClones[i].style['will-change'] = '';
2846
+ toggleClass(multiDragClones[i], this.options.selectedClass, false);
2847
+ multiDragElements[i] === dragEl$1 && toggleClass(multiDragClones[i], this.options.chosenClass, false);
2848
+ }
2849
+ sortable._hideClone();
2850
+ cancel();
2851
+ },
2852
+ clone: function clone(_ref3) {
2853
+ var sortable = _ref3.sortable,
2854
+ rootEl = _ref3.rootEl,
2855
+ dispatchSortableEvent = _ref3.dispatchSortableEvent,
2856
+ cancel = _ref3.cancel;
2857
+ if (!this.isMultiDrag) return;
2858
+ if (!this.options.removeCloneOnHide) {
2859
+ if (multiDragElements.length && multiDragSortable === sortable) {
2860
+ insertMultiDragClones(true, rootEl);
2861
+ dispatchSortableEvent('clone');
2862
+ cancel();
2863
+ }
2864
+ }
2865
+ },
2866
+ showClone: function showClone(_ref4) {
2867
+ var cloneNowShown = _ref4.cloneNowShown,
2868
+ rootEl = _ref4.rootEl,
2869
+ cancel = _ref4.cancel;
2870
+ if (!this.isMultiDrag) return;
2871
+ insertMultiDragClones(false, rootEl);
2872
+ multiDragClones.forEach(function (clone) {
2873
+ css(clone, 'display', '');
2874
+ });
2875
+ cloneNowShown();
2876
+ clonesHidden = false;
2877
+ cancel();
2878
+ },
2879
+ hideClone: function hideClone(_ref5) {
2880
+ var _this = this;
2881
+ var sortable = _ref5.sortable,
2882
+ cloneNowHidden = _ref5.cloneNowHidden,
2883
+ cancel = _ref5.cancel;
2884
+ if (!this.isMultiDrag) return;
2885
+ multiDragClones.forEach(function (clone) {
2886
+ css(clone, 'display', 'none');
2887
+ if (_this.options.removeCloneOnHide && clone.parentNode) {
2888
+ clone.parentNode.removeChild(clone);
2889
+ }
2890
+ });
2891
+ cloneNowHidden();
2892
+ clonesHidden = true;
2893
+ cancel();
2894
+ },
2895
+ dragStartGlobal: function dragStartGlobal(_ref6) {
2896
+ var sortable = _ref6.sortable;
2897
+ if (!this.isMultiDrag && multiDragSortable) {
2898
+ multiDragSortable.multiDrag._deselectMultiDrag();
2899
+ }
2900
+ multiDragElements.forEach(function (multiDragElement) {
2901
+ multiDragElement.sortableIndex = index(multiDragElement);
2902
+ });
2903
+
2904
+ // Sort multi-drag elements
2905
+ multiDragElements = multiDragElements.sort(function (a, b) {
2906
+ return a.sortableIndex - b.sortableIndex;
2907
+ });
2908
+ dragStarted = true;
2909
+ },
2910
+ dragStarted: function dragStarted(_ref7) {
2911
+ var _this2 = this;
2912
+ var sortable = _ref7.sortable;
2913
+ if (!this.isMultiDrag) return;
2914
+ if (this.options.sort) {
2915
+ // Capture rects,
2916
+ // hide multi drag elements (by positioning them absolute),
2917
+ // set multi drag elements rects to dragRect,
2918
+ // show multi drag elements,
2919
+ // animate to rects,
2920
+ // unset rects & remove from DOM
2921
+
2922
+ sortable.captureAnimationState();
2923
+ if (this.options.animation) {
2924
+ multiDragElements.forEach(function (multiDragElement) {
2925
+ if (multiDragElement === dragEl$1) return;
2926
+ css(multiDragElement, 'position', 'absolute');
2927
+ });
2928
+ var dragRect = getRect(dragEl$1, false, true, true);
2929
+ multiDragElements.forEach(function (multiDragElement) {
2930
+ if (multiDragElement === dragEl$1) return;
2931
+ setRect(multiDragElement, dragRect);
2932
+ });
2933
+ folding = true;
2934
+ initialFolding = true;
2935
+ }
2936
+ }
2937
+ sortable.animateAll(function () {
2938
+ folding = false;
2939
+ initialFolding = false;
2940
+ if (_this2.options.animation) {
2941
+ multiDragElements.forEach(function (multiDragElement) {
2942
+ unsetRect(multiDragElement);
2943
+ });
2944
+ }
2945
+
2946
+ // Remove all auxiliary multidrag items from el, if sorting enabled
2947
+ if (_this2.options.sort) {
2948
+ removeMultiDragElements();
2949
+ }
2950
+ });
2951
+ },
2952
+ dragOver: function dragOver(_ref8) {
2953
+ var target = _ref8.target,
2954
+ completed = _ref8.completed,
2955
+ cancel = _ref8.cancel;
2956
+ if (folding && ~multiDragElements.indexOf(target)) {
2957
+ completed(false);
2958
+ cancel();
2959
+ }
2960
+ },
2961
+ revert: function revert(_ref9) {
2962
+ var fromSortable = _ref9.fromSortable,
2963
+ rootEl = _ref9.rootEl,
2964
+ sortable = _ref9.sortable,
2965
+ dragRect = _ref9.dragRect;
2966
+ if (multiDragElements.length > 1) {
2967
+ // Setup unfold animation
2968
+ multiDragElements.forEach(function (multiDragElement) {
2969
+ sortable.addAnimationState({
2970
+ target: multiDragElement,
2971
+ rect: folding ? getRect(multiDragElement) : dragRect
2972
+ });
2973
+ unsetRect(multiDragElement);
2974
+ multiDragElement.fromRect = dragRect;
2975
+ fromSortable.removeAnimationState(multiDragElement);
2976
+ });
2977
+ folding = false;
2978
+ insertMultiDragElements(!this.options.removeCloneOnHide, rootEl);
2979
+ }
2980
+ },
2981
+ dragOverCompleted: function dragOverCompleted(_ref10) {
2982
+ var sortable = _ref10.sortable,
2983
+ isOwner = _ref10.isOwner,
2984
+ insertion = _ref10.insertion,
2985
+ activeSortable = _ref10.activeSortable,
2986
+ parentEl = _ref10.parentEl,
2987
+ putSortable = _ref10.putSortable;
2988
+ var options = this.options;
2989
+ if (insertion) {
2990
+ // Clones must be hidden before folding animation to capture dragRectAbsolute properly
2991
+ if (isOwner) {
2992
+ activeSortable._hideClone();
2993
+ }
2994
+ initialFolding = false;
2995
+ // If leaving sort:false root, or already folding - Fold to new location
2996
+ if (options.animation && multiDragElements.length > 1 && (folding || !isOwner && !activeSortable.options.sort && !putSortable)) {
2997
+ // Fold: Set all multi drag elements's rects to dragEl's rect when multi-drag elements are invisible
2998
+ var dragRectAbsolute = getRect(dragEl$1, false, true, true);
2999
+ multiDragElements.forEach(function (multiDragElement) {
3000
+ if (multiDragElement === dragEl$1) return;
3001
+ setRect(multiDragElement, dragRectAbsolute);
3002
+
3003
+ // Move element(s) to end of parentEl so that it does not interfere with multi-drag clones insertion if they are inserted
3004
+ // while folding, and so that we can capture them again because old sortable will no longer be fromSortable
3005
+ parentEl.appendChild(multiDragElement);
3006
+ });
3007
+ folding = true;
3008
+ }
3009
+
3010
+ // Clones must be shown (and check to remove multi drags) after folding when interfering multiDragElements are moved out
3011
+ if (!isOwner) {
3012
+ // Only remove if not folding (folding will remove them anyways)
3013
+ if (!folding) {
3014
+ removeMultiDragElements();
3015
+ }
3016
+ if (multiDragElements.length > 1) {
3017
+ var clonesHiddenBefore = clonesHidden;
3018
+ activeSortable._showClone(sortable);
3019
+
3020
+ // Unfold animation for clones if showing from hidden
3021
+ if (activeSortable.options.animation && !clonesHidden && clonesHiddenBefore) {
3022
+ multiDragClones.forEach(function (clone) {
3023
+ activeSortable.addAnimationState({
3024
+ target: clone,
3025
+ rect: clonesFromRect
3026
+ });
3027
+ clone.fromRect = clonesFromRect;
3028
+ clone.thisAnimationDuration = null;
3029
+ });
3030
+ }
3031
+ } else {
3032
+ activeSortable._showClone(sortable);
3033
+ }
3034
+ }
3035
+ }
3036
+ },
3037
+ dragOverAnimationCapture: function dragOverAnimationCapture(_ref11) {
3038
+ var dragRect = _ref11.dragRect,
3039
+ isOwner = _ref11.isOwner,
3040
+ activeSortable = _ref11.activeSortable;
3041
+ multiDragElements.forEach(function (multiDragElement) {
3042
+ multiDragElement.thisAnimationDuration = null;
3043
+ });
3044
+ if (activeSortable.options.animation && !isOwner && activeSortable.multiDrag.isMultiDrag) {
3045
+ clonesFromRect = _extends({}, dragRect);
3046
+ var dragMatrix = matrix(dragEl$1, true);
3047
+ clonesFromRect.top -= dragMatrix.f;
3048
+ clonesFromRect.left -= dragMatrix.e;
3049
+ }
3050
+ },
3051
+ dragOverAnimationComplete: function dragOverAnimationComplete() {
3052
+ if (folding) {
3053
+ folding = false;
3054
+ removeMultiDragElements();
3055
+ }
3056
+ },
3057
+ drop: function drop(_ref12) {
3058
+ var evt = _ref12.originalEvent,
3059
+ rootEl = _ref12.rootEl,
3060
+ parentEl = _ref12.parentEl,
3061
+ sortable = _ref12.sortable,
3062
+ dispatchSortableEvent = _ref12.dispatchSortableEvent,
3063
+ oldIndex = _ref12.oldIndex,
3064
+ putSortable = _ref12.putSortable;
3065
+ var toSortable = putSortable || this.sortable;
3066
+ if (!evt) return;
3067
+ var options = this.options,
3068
+ children = parentEl.children;
3069
+
3070
+ // Multi-drag selection
3071
+ if (!dragStarted) {
3072
+ if (options.multiDragKey && !this.multiDragKeyDown) {
3073
+ this._deselectMultiDrag();
3074
+ }
3075
+ toggleClass(dragEl$1, options.selectedClass, !~multiDragElements.indexOf(dragEl$1));
3076
+ if (!~multiDragElements.indexOf(dragEl$1)) {
3077
+ multiDragElements.push(dragEl$1);
3078
+ dispatchEvent({
3079
+ sortable: sortable,
3080
+ rootEl: rootEl,
3081
+ name: 'select',
3082
+ targetEl: dragEl$1,
3083
+ originalEvent: evt
3084
+ });
3085
+
3086
+ // Modifier activated, select from last to dragEl
3087
+ if (evt.shiftKey && lastMultiDragSelect && sortable.el.contains(lastMultiDragSelect)) {
3088
+ var lastIndex = index(lastMultiDragSelect),
3089
+ currentIndex = index(dragEl$1);
3090
+ if (~lastIndex && ~currentIndex && lastIndex !== currentIndex) {
3091
+ // Must include lastMultiDragSelect (select it), in case modified selection from no selection
3092
+ // (but previous selection existed)
3093
+ var n, i;
3094
+ if (currentIndex > lastIndex) {
3095
+ i = lastIndex;
3096
+ n = currentIndex;
3097
+ } else {
3098
+ i = currentIndex;
3099
+ n = lastIndex + 1;
3100
+ }
3101
+ for (; i < n; i++) {
3102
+ if (~multiDragElements.indexOf(children[i])) continue;
3103
+ toggleClass(children[i], options.selectedClass, true);
3104
+ multiDragElements.push(children[i]);
3105
+ dispatchEvent({
3106
+ sortable: sortable,
3107
+ rootEl: rootEl,
3108
+ name: 'select',
3109
+ targetEl: children[i],
3110
+ originalEvent: evt
3111
+ });
3112
+ }
3113
+ }
3114
+ } else {
3115
+ lastMultiDragSelect = dragEl$1;
3116
+ }
3117
+ multiDragSortable = toSortable;
3118
+ } else {
3119
+ multiDragElements.splice(multiDragElements.indexOf(dragEl$1), 1);
3120
+ lastMultiDragSelect = null;
3121
+ dispatchEvent({
3122
+ sortable: sortable,
3123
+ rootEl: rootEl,
3124
+ name: 'deselect',
3125
+ targetEl: dragEl$1,
3126
+ originalEvent: evt
3127
+ });
3128
+ }
3129
+ }
3130
+
3131
+ // Multi-drag drop
3132
+ if (dragStarted && this.isMultiDrag) {
3133
+ folding = false;
3134
+ // Do not "unfold" after around dragEl if reverted
3135
+ if ((parentEl[expando].options.sort || parentEl !== rootEl) && multiDragElements.length > 1) {
3136
+ var dragRect = getRect(dragEl$1),
3137
+ multiDragIndex = index(dragEl$1, ':not(.' + this.options.selectedClass + ')');
3138
+ if (!initialFolding && options.animation) dragEl$1.thisAnimationDuration = null;
3139
+ toSortable.captureAnimationState();
3140
+ if (!initialFolding) {
3141
+ if (options.animation) {
3142
+ dragEl$1.fromRect = dragRect;
3143
+ multiDragElements.forEach(function (multiDragElement) {
3144
+ multiDragElement.thisAnimationDuration = null;
3145
+ if (multiDragElement !== dragEl$1) {
3146
+ var rect = folding ? getRect(multiDragElement) : dragRect;
3147
+ multiDragElement.fromRect = rect;
3148
+
3149
+ // Prepare unfold animation
3150
+ toSortable.addAnimationState({
3151
+ target: multiDragElement,
3152
+ rect: rect
3153
+ });
3154
+ }
3155
+ });
3156
+ }
3157
+
3158
+ // Multi drag elements are not necessarily removed from the DOM on drop, so to reinsert
3159
+ // properly they must all be removed
3160
+ removeMultiDragElements();
3161
+ multiDragElements.forEach(function (multiDragElement) {
3162
+ if (children[multiDragIndex]) {
3163
+ parentEl.insertBefore(multiDragElement, children[multiDragIndex]);
3164
+ } else {
3165
+ parentEl.appendChild(multiDragElement);
3166
+ }
3167
+ multiDragIndex++;
3168
+ });
3169
+
3170
+ // If initial folding is done, the elements may have changed position because they are now
3171
+ // unfolding around dragEl, even though dragEl may not have his index changed, so update event
3172
+ // must be fired here as Sortable will not.
3173
+ if (oldIndex === index(dragEl$1)) {
3174
+ var update = false;
3175
+ multiDragElements.forEach(function (multiDragElement) {
3176
+ if (multiDragElement.sortableIndex !== index(multiDragElement)) {
3177
+ update = true;
3178
+ return;
3179
+ }
3180
+ });
3181
+ if (update) {
3182
+ dispatchSortableEvent('update');
3183
+ dispatchSortableEvent('sort');
3184
+ }
3185
+ }
3186
+ }
3187
+
3188
+ // Must be done after capturing individual rects (scroll bar)
3189
+ multiDragElements.forEach(function (multiDragElement) {
3190
+ unsetRect(multiDragElement);
3191
+ });
3192
+ toSortable.animateAll();
3193
+ }
3194
+ multiDragSortable = toSortable;
3195
+ }
3196
+
3197
+ // Remove clones if necessary
3198
+ if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {
3199
+ multiDragClones.forEach(function (clone) {
3200
+ clone.parentNode && clone.parentNode.removeChild(clone);
3201
+ });
3202
+ }
3203
+ },
3204
+ nullingGlobal: function nullingGlobal() {
3205
+ this.isMultiDrag = dragStarted = false;
3206
+ multiDragClones.length = 0;
3207
+ },
3208
+ destroyGlobal: function destroyGlobal() {
3209
+ this._deselectMultiDrag();
3210
+ off(document, 'pointerup', this._deselectMultiDrag);
3211
+ off(document, 'mouseup', this._deselectMultiDrag);
3212
+ off(document, 'touchend', this._deselectMultiDrag);
3213
+ off(document, 'keydown', this._checkKeyDown);
3214
+ off(document, 'keyup', this._checkKeyUp);
3215
+ },
3216
+ _deselectMultiDrag: function _deselectMultiDrag(evt) {
3217
+ if (typeof dragStarted !== "undefined" && dragStarted) return;
3218
+
3219
+ // Only deselect if selection is in this sortable
3220
+ if (multiDragSortable !== this.sortable) return;
3221
+
3222
+ // Only deselect if target is not item in this sortable
3223
+ if (evt && closest(evt.target, this.options.draggable, this.sortable.el, false)) return;
3224
+
3225
+ // Only deselect if left click
3226
+ if (evt && evt.button !== 0) return;
3227
+ while (multiDragElements.length) {
3228
+ var el = multiDragElements[0];
3229
+ toggleClass(el, this.options.selectedClass, false);
3230
+ multiDragElements.shift();
3231
+ dispatchEvent({
3232
+ sortable: this.sortable,
3233
+ rootEl: this.sortable.el,
3234
+ name: 'deselect',
3235
+ targetEl: el,
3236
+ originalEvent: evt
3237
+ });
3238
+ }
3239
+ },
3240
+ _checkKeyDown: function _checkKeyDown(evt) {
3241
+ if (evt.key === this.options.multiDragKey) {
3242
+ this.multiDragKeyDown = true;
3243
+ }
3244
+ },
3245
+ _checkKeyUp: function _checkKeyUp(evt) {
3246
+ if (evt.key === this.options.multiDragKey) {
3247
+ this.multiDragKeyDown = false;
3248
+ }
3249
+ }
3250
+ };
3251
+ return _extends(MultiDrag, {
3252
+ // Static methods & properties
3253
+ pluginName: 'multiDrag',
3254
+ utils: {
3255
+ /**
3256
+ * Selects the provided multi-drag item
3257
+ * @param {HTMLElement} el The element to be selected
3258
+ */
3259
+ select: function select(el) {
3260
+ var sortable = el.parentNode[expando];
3261
+ if (!sortable || !sortable.options.multiDrag || ~multiDragElements.indexOf(el)) return;
3262
+ if (multiDragSortable && multiDragSortable !== sortable) {
3263
+ multiDragSortable.multiDrag._deselectMultiDrag();
3264
+ multiDragSortable = sortable;
3265
+ }
3266
+ toggleClass(el, sortable.options.selectedClass, true);
3267
+ multiDragElements.push(el);
3268
+ },
3269
+ /**
3270
+ * Deselects the provided multi-drag item
3271
+ * @param {HTMLElement} el The element to be deselected
3272
+ */
3273
+ deselect: function deselect(el) {
3274
+ var sortable = el.parentNode[expando],
3275
+ index = multiDragElements.indexOf(el);
3276
+ if (!sortable || !sortable.options.multiDrag || !~index) return;
3277
+ toggleClass(el, sortable.options.selectedClass, false);
3278
+ multiDragElements.splice(index, 1);
3279
+ }
3280
+ },
3281
+ eventProperties: function eventProperties() {
3282
+ var _this3 = this;
3283
+ var oldIndicies = [],
3284
+ newIndicies = [];
3285
+ multiDragElements.forEach(function (multiDragElement) {
3286
+ oldIndicies.push({
3287
+ multiDragElement: multiDragElement,
3288
+ index: multiDragElement.sortableIndex
3289
+ });
3290
+
3291
+ // multiDragElements will already be sorted if folding
3292
+ var newIndex;
3293
+ if (folding && multiDragElement !== dragEl$1) {
3294
+ newIndex = -1;
3295
+ } else if (folding) {
3296
+ newIndex = index(multiDragElement, ':not(.' + _this3.options.selectedClass + ')');
3297
+ } else {
3298
+ newIndex = index(multiDragElement);
3299
+ }
3300
+ newIndicies.push({
3301
+ multiDragElement: multiDragElement,
3302
+ index: newIndex
3303
+ });
3304
+ });
3305
+ return {
3306
+ items: _toConsumableArray(multiDragElements),
3307
+ clones: [].concat(multiDragClones),
3308
+ oldIndicies: oldIndicies,
3309
+ newIndicies: newIndicies
3310
+ };
3311
+ },
3312
+ optionListeners: {
3313
+ multiDragKey: function multiDragKey(key) {
3314
+ key = key.toLowerCase();
3315
+ if (key === 'ctrl') {
3316
+ key = 'Control';
3317
+ } else if (key.length > 1) {
3318
+ key = key.charAt(0).toUpperCase() + key.substr(1);
3319
+ }
3320
+ return key;
3321
+ }
3322
+ }
3323
+ });
3324
+ }
3325
+ function insertMultiDragElements(clonesInserted, rootEl) {
3326
+ multiDragElements.forEach(function (multiDragElement, i) {
3327
+ var target = rootEl.children[multiDragElement.sortableIndex + (clonesInserted ? Number(i) : 0)];
3328
+ if (target) {
3329
+ rootEl.insertBefore(multiDragElement, target);
3330
+ } else {
3331
+ rootEl.appendChild(multiDragElement);
3332
+ }
3333
+ });
3334
+ }
3335
+
3336
+ /**
3337
+ * Insert multi-drag clones
3338
+ * @param {[Boolean]} elementsInserted Whether the multi-drag elements are inserted
3339
+ * @param {HTMLElement} rootEl
3340
+ */
3341
+ function insertMultiDragClones(elementsInserted, rootEl) {
3342
+ multiDragClones.forEach(function (clone, i) {
3343
+ var target = rootEl.children[clone.sortableIndex + (elementsInserted ? Number(i) : 0)];
3344
+ if (target) {
3345
+ rootEl.insertBefore(clone, target);
3346
+ } else {
3347
+ rootEl.appendChild(clone);
3348
+ }
3349
+ });
3350
+ }
3351
+ function removeMultiDragElements() {
3352
+ multiDragElements.forEach(function (multiDragElement) {
3353
+ if (multiDragElement === dragEl$1) return;
3354
+ multiDragElement.parentNode && multiDragElement.parentNode.removeChild(multiDragElement);
3355
+ });
3356
+ }
3357
+
3358
+ Sortable.mount(new AutoScrollPlugin());
3359
+ Sortable.mount(Remove, Revert);
3360
+
3361
+ /*!
3362
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3363
+ * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
3364
+ * v2.4.0
3365
+ */
3366
+ const sortableComponentSet = new Set();
3367
+ const CSS = {
3368
+ ghostClass: "calcite-sortable--ghost",
3369
+ chosenClass: "calcite-sortable--chosen",
3370
+ dragClass: "calcite-sortable--drag",
3371
+ };
3372
+ /**
3373
+ * Helper to keep track of a SortableComponent. This should be called in the `connectedCallback` lifecycle method as well as any other method necessary to rebuild the sortable instance.
3374
+ *
3375
+ * @param {SortableComponent} component - The sortable component.
3376
+ */
3377
+ function connectSortableComponent(component) {
3378
+ disconnectSortableComponent(component);
3379
+ sortableComponentSet.add(component);
3380
+ const dataIdAttr = "id";
3381
+ const { group, handleSelector: handle, dragSelector: draggable } = component;
3382
+ component.sortable = Sortable.create(component.el, {
3383
+ dataIdAttr,
3384
+ ...CSS,
3385
+ ...(!!draggable && { draggable }),
3386
+ ...(!!group && {
3387
+ group: {
3388
+ name: group,
3389
+ ...(!!component.canPull && {
3390
+ pull: (to, from, dragEl, { newIndex, oldIndex }) => component.canPull({ toEl: to.el, fromEl: from.el, dragEl, newIndex, oldIndex }),
3391
+ }),
3392
+ ...(!!component.canPut && {
3393
+ put: (to, from, dragEl, { newIndex, oldIndex }) => component.canPut({ toEl: to.el, fromEl: from.el, dragEl, newIndex, oldIndex }),
3394
+ }),
3395
+ },
3396
+ }),
3397
+ handle,
3398
+ filter: "[drag-disabled]",
3399
+ onStart: ({ from: fromEl, item: dragEl, to: toEl, newIndex, oldIndex }) => {
3400
+ dragState.active = true;
3401
+ onGlobalDragStart();
3402
+ component.onDragStart({ fromEl, dragEl, toEl, newIndex, oldIndex });
3403
+ },
3404
+ onEnd: ({ from: fromEl, item: dragEl, to: toEl, newIndex, oldIndex }) => {
3405
+ dragState.active = false;
3406
+ onGlobalDragEnd();
3407
+ component.onDragEnd({ fromEl, dragEl, toEl, newIndex, oldIndex });
3408
+ },
3409
+ onSort: ({ from: fromEl, item: dragEl, to: toEl, newIndex, oldIndex }) => {
3410
+ component.onDragSort({ fromEl, dragEl, toEl, newIndex, oldIndex });
3411
+ },
3412
+ });
3413
+ }
3414
+ /**
3415
+ * Helper to remove track of a SortableComponent. This should be called in the `disconnectedCallback` lifecycle method.
3416
+ *
3417
+ * @param {SortableComponent} component - The sortable component.
3418
+ */
3419
+ function disconnectSortableComponent(component) {
3420
+ sortableComponentSet.delete(component);
3421
+ component.sortable?.destroy();
3422
+ component.sortable = null;
3423
+ }
3424
+ const dragState = { active: false };
3425
+ /**
3426
+ * Helper to determine if dragging is currently active.
3427
+ *
3428
+ * @param component The sortable component.
3429
+ * @returns {boolean} a boolean value.
3430
+ */
3431
+ function dragActive(component) {
3432
+ return component.dragEnabled && dragState.active;
3433
+ }
3434
+ function onGlobalDragStart() {
3435
+ Array.from(sortableComponentSet).forEach((component) => component.onGlobalDragStart());
3436
+ }
3437
+ function onGlobalDragEnd() {
3438
+ Array.from(sortableComponentSet).forEach((component) => component.onGlobalDragEnd());
3439
+ }
3440
+
3441
+ exports.connectSortableComponent = connectSortableComponent;
3442
+ exports.disconnectSortableComponent = disconnectSortableComponent;
3443
+ exports.dragActive = dragActive;