@esri/solutions-components 0.8.67 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1304) hide show
  1. package/dist/cjs/arcgis-login.cjs.entry.js +3 -2
  2. package/dist/cjs/basemap-gallery_7.cjs.entry.js +2 -2
  3. package/dist/cjs/buffer-tools_3.cjs.entry.js +2 -2
  4. package/dist/cjs/calcite-accordion-item.cjs.entry.js +7 -6
  5. package/dist/cjs/calcite-accordion.cjs.entry.js +4 -3
  6. package/dist/cjs/calcite-action-bar.cjs.entry.js +14 -13
  7. package/dist/cjs/calcite-action-group.cjs.entry.js +11 -10
  8. package/dist/cjs/calcite-action-pad_2.cjs.entry.js +2 -2
  9. package/dist/cjs/calcite-alert_4.cjs.entry.js +4 -4
  10. package/dist/cjs/calcite-block-section.cjs.entry.js +10 -9
  11. package/dist/cjs/calcite-block_5.cjs.entry.js +7 -7
  12. package/dist/cjs/calcite-button.cjs.entry.js +15 -14
  13. package/dist/cjs/calcite-card-group.cjs.entry.js +8 -7
  14. package/dist/cjs/calcite-card.cjs.entry.js +12 -11
  15. package/dist/cjs/calcite-carousel-item.cjs.entry.js +3 -2
  16. package/dist/cjs/calcite-carousel.cjs.entry.js +12 -11
  17. package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -10
  18. package/dist/cjs/calcite-chip-group.cjs.entry.js +8 -7
  19. package/dist/cjs/calcite-color-picker.cjs.entry.js +23 -23
  20. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +6 -5
  21. package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +2 -2
  22. package/dist/cjs/calcite-fab.cjs.entry.js +8 -7
  23. package/dist/cjs/calcite-flow_6.cjs.entry.js +2 -2
  24. package/dist/cjs/calcite-icon.cjs.entry.js +7 -6
  25. package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -12
  26. package/dist/cjs/calcite-input-number.cjs.entry.js +15 -14
  27. package/dist/cjs/calcite-input-text.cjs.entry.js +15 -14
  28. package/dist/cjs/calcite-input-time-picker.cjs.entry.js +17 -17
  29. package/dist/cjs/calcite-input-time-zone.cjs.entry.js +14 -13
  30. package/dist/cjs/calcite-label.cjs.entry.js +6 -5
  31. package/dist/cjs/calcite-link.cjs.entry.js +8 -7
  32. package/dist/cjs/calcite-list-item-group.cjs.entry.js +5 -4
  33. package/dist/cjs/calcite-menu-item.cjs.entry.js +10 -9
  34. package/dist/cjs/calcite-menu.cjs.entry.js +10 -9
  35. package/dist/cjs/calcite-meter.cjs.entry.js +10 -9
  36. package/dist/cjs/calcite-modal.cjs.entry.js +13 -18
  37. package/dist/cjs/calcite-navigation-logo.cjs.entry.js +5 -4
  38. package/dist/cjs/calcite-navigation.cjs.entry.js +6 -5
  39. package/dist/cjs/calcite-notice.cjs.entry.js +12 -11
  40. package/dist/cjs/calcite-option-group.cjs.entry.js +3 -2
  41. package/dist/cjs/calcite-pagination.cjs.entry.js +10 -202
  42. package/dist/cjs/calcite-pick-list-group.cjs.entry.js +8 -7
  43. package/dist/cjs/calcite-pick-list-item.cjs.entry.js +25 -24
  44. package/dist/cjs/calcite-pick-list.cjs.entry.js +12 -11
  45. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +6 -5
  46. package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -9
  47. package/dist/cjs/calcite-rating.cjs.entry.js +14 -15
  48. package/dist/cjs/calcite-sheet.cjs.entry.js +9 -8
  49. package/dist/cjs/calcite-shell-center-row.cjs.entry.js +7 -6
  50. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +2 -2
  51. package/dist/cjs/calcite-sortable-list.cjs.entry.js +9 -8
  52. package/dist/cjs/calcite-split-button.cjs.entry.js +6 -5
  53. package/dist/cjs/calcite-stepper-item.cjs.entry.js +12 -11
  54. package/dist/cjs/calcite-stepper.cjs.entry.js +9 -8
  55. package/dist/cjs/calcite-switch.cjs.entry.js +11 -10
  56. package/dist/cjs/calcite-table-row.cjs.entry.js +8 -7
  57. package/dist/cjs/calcite-table.cjs.entry.js +11 -10
  58. package/dist/cjs/calcite-text-area.cjs.entry.js +18 -16
  59. package/dist/cjs/calcite-tile-group.cjs.entry.js +8 -7
  60. package/dist/cjs/calcite-tile-select-group.cjs.entry.js +5 -4
  61. package/dist/cjs/calcite-tile-select.cjs.entry.js +6 -5
  62. package/dist/cjs/calcite-tile.cjs.entry.js +8 -7
  63. package/dist/cjs/calcite-time-picker.cjs.entry.js +11 -10
  64. package/dist/cjs/calcite-tip-group.cjs.entry.js +3 -2
  65. package/dist/cjs/calcite-tip-manager.cjs.entry.js +10 -16
  66. package/dist/cjs/calcite-tip.cjs.entry.js +11 -10
  67. package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -8
  68. package/dist/cjs/card-manager_3.cjs.entry.js +3 -3
  69. package/dist/cjs/consent-manager.cjs.entry.js +7 -350
  70. package/dist/cjs/crowdsource-manager.cjs.entry.js +9 -9
  71. package/dist/cjs/crowdsource-reporter.cjs.entry.js +9 -10
  72. package/dist/cjs/deduct-calculator.cjs.entry.js +3 -2
  73. package/dist/cjs/{downloadUtils-737851e4.js → downloadUtils-69c90822.js} +2 -2
  74. package/dist/cjs/feature-comments.cjs.entry.js +3 -2
  75. package/dist/cjs/feature-form-flow-item.cjs.entry.js +3 -2
  76. package/dist/cjs/feature-list.cjs.entry.js +12 -12
  77. package/dist/cjs/features-flow-item.cjs.entry.js +3 -2
  78. package/dist/cjs/{helpers-758e7ae8.js → helpers-3cad996e.js} +1 -1
  79. package/dist/cjs/index.cjs.js +0 -15
  80. package/dist/cjs/{index.es-c00eb740.js → index.es-3bcb5f03.js} +3 -3
  81. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +5 -5
  82. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +6 -5
  83. package/dist/cjs/instant-apps-create.cjs.entry.js +9 -8
  84. package/dist/cjs/instant-apps-export-views.cjs.entry.js +9 -8
  85. package/dist/cjs/instant-apps-export.cjs.entry.js +9 -8
  86. package/dist/cjs/instant-apps-header.cjs.entry.js +6 -6
  87. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +28 -33
  88. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
  89. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +8 -8
  90. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
  91. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +10 -10
  92. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +8 -7
  93. package/dist/cjs/instant-apps-landing-page.cjs.entry.js +3 -2
  94. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +11 -10
  95. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +11 -10
  96. package/dist/cjs/instant-apps-measurement.cjs.entry.js +8 -7
  97. package/dist/cjs/instant-apps-popover.cjs.entry.js +8 -7
  98. package/dist/cjs/instant-apps-popovers.cjs.entry.js +3 -2
  99. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +8 -7
  100. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +8 -7
  101. package/dist/cjs/instant-apps-splash.cjs.entry.js +8 -7
  102. package/dist/cjs/{languageSwitcher-f0bb94fa.js → languageSwitcher-dc2dd354.js} +1 -1
  103. package/dist/cjs/{languageUtil-f22ce913.js → languageUtil-a3e1eafd.js} +1 -1
  104. package/dist/cjs/layout-manager.cjs.entry.js +6 -6
  105. package/dist/cjs/list-flow-item.cjs.entry.js +3 -2
  106. package/dist/cjs/{loadModules-0a42affb.js → loadModules-8567855e.js} +1 -1
  107. package/dist/cjs/loader.cjs.js +4 -4
  108. package/dist/cjs/{locale-d3582284.js → locale-1d07e942.js} +2 -2
  109. package/dist/cjs/{locale-6c657db5.js → locale-33a0038a.js} +1 -1
  110. package/dist/cjs/location-flow-item.cjs.entry.js +3 -2
  111. package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
  112. package/dist/cjs/pci-calculator.cjs.entry.js +3 -2
  113. package/dist/cjs/{popupUtils-92b936a2.js → popupUtils-51b6c78d.js} +2 -2
  114. package/dist/cjs/public-notification.cjs.entry.js +13 -13
  115. package/dist/cjs/refine-results-flow-item.cjs.entry.js +3 -2
  116. package/dist/cjs/share-item.cjs.entry.js +3 -2
  117. package/dist/cjs/solution-configuration.cjs.entry.js +1108 -23
  118. package/dist/cjs/solution-contents_3.cjs.entry.js +2 -2
  119. package/dist/cjs/solution-item-icon.cjs.entry.js +3 -2
  120. package/dist/cjs/solutions-components.cjs.js +5 -32
  121. package/dist/cjs/spatial-ref.cjs.entry.js +8 -8
  122. package/dist/cjs/store-manager.cjs.entry.js +7 -6
  123. package/dist/cjs/{utils-057900e0.js → utils-8d9c798c.js} +1 -1
  124. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +20 -1
  125. package/dist/components/ExpandToggle.js +8 -8
  126. package/dist/components/_commonjsHelpers.js +0 -23
  127. package/dist/components/action-bar.js +5 -4
  128. package/dist/components/action-group.js +4 -3
  129. package/dist/components/action-menu.js +3 -2
  130. package/dist/components/action-pad.js +3 -2
  131. package/dist/components/action.js +3 -2
  132. package/dist/components/alert.js +4 -3
  133. package/dist/components/arcgis-login.js +3 -2
  134. package/dist/components/avatar.js +3 -2
  135. package/dist/components/basemap-gallery2.js +3 -2
  136. package/dist/components/block.js +3 -2
  137. package/dist/components/buffer-tools2.js +3 -2
  138. package/dist/components/button.js +3 -2
  139. package/dist/components/calcite-accordion-item.js +3 -2
  140. package/dist/components/calcite-accordion.js +3 -2
  141. package/dist/components/calcite-block-section.js +3 -2
  142. package/dist/components/calcite-card-group.js +3 -2
  143. package/dist/components/calcite-card.js +3 -2
  144. package/dist/components/calcite-carousel-item.js +3 -2
  145. package/dist/components/calcite-carousel.js +3 -2
  146. package/dist/components/calcite-chip-group.js +3 -2
  147. package/dist/components/calcite-color-picker.js +20 -19
  148. package/dist/components/calcite-combobox-item-group.js +3 -2
  149. package/dist/components/calcite-fab.js +3 -2
  150. package/dist/components/calcite-inline-editable.js +3 -2
  151. package/dist/components/calcite-input-time-picker.js +4 -7
  152. package/dist/components/calcite-input-time-zone.js +4 -3
  153. package/dist/components/calcite-list-item-group.js +3 -2
  154. package/dist/components/calcite-menu-item.js +3 -2
  155. package/dist/components/calcite-meter.js +3 -2
  156. package/dist/components/calcite-navigation-logo.js +3 -2
  157. package/dist/components/calcite-navigation.js +3 -2
  158. package/dist/components/calcite-option-group.js +3 -2
  159. package/dist/components/calcite-pick-list-group.js +5 -4
  160. package/dist/components/calcite-pick-list.js +3 -2
  161. package/dist/components/calcite-radio-button-group.js +3 -2
  162. package/dist/components/calcite-rating.js +3 -4
  163. package/dist/components/calcite-sheet.js +3 -2
  164. package/dist/components/calcite-shell-center-row.js +3 -2
  165. package/dist/components/calcite-sortable-list.js +3 -2
  166. package/dist/components/calcite-split-button.js +3 -2
  167. package/dist/components/calcite-stepper-item.js +3 -2
  168. package/dist/components/calcite-stepper.js +3 -2
  169. package/dist/components/calcite-table-row.js +3 -2
  170. package/dist/components/calcite-table.js +3 -2
  171. package/dist/components/calcite-text-area.js +4 -3
  172. package/dist/components/calcite-tile-group.js +3 -2
  173. package/dist/components/calcite-tile-select-group.js +3 -2
  174. package/dist/components/calcite-tile-select.js +3 -2
  175. package/dist/components/calcite-tile.js +3 -2
  176. package/dist/components/calcite-tip-group.js +3 -2
  177. package/dist/components/calcite-tip-manager.js +3 -9
  178. package/dist/components/calcite-tip.js +4 -3
  179. package/dist/components/card-manager2.js +3 -2
  180. package/dist/components/checkbox.js +3 -2
  181. package/dist/components/chip.js +3 -2
  182. package/dist/components/color-picker-hex-input.js +12 -11
  183. package/dist/components/color-picker-swatch.js +6 -5
  184. package/dist/components/combobox-item.js +3 -2
  185. package/dist/components/combobox.js +5 -4
  186. package/dist/components/consent-manager.js +4 -346
  187. package/dist/components/core.js +0 -309
  188. package/dist/components/create-feature2.js +3 -2
  189. package/dist/components/create-related-feature2.js +3 -2
  190. package/dist/components/crowdsource-manager.js +6 -3
  191. package/dist/components/crowdsource-reporter.js +3 -2
  192. package/dist/components/date-picker-day.js +3 -2
  193. package/dist/components/date-picker-month-header.js +3 -2
  194. package/dist/components/date-picker-month.js +3 -2
  195. package/dist/components/date-picker.js +3 -2
  196. package/dist/components/deduct-calculator2.js +3 -2
  197. package/dist/components/delete-button2.js +3 -2
  198. package/dist/components/dom.js +0 -27
  199. package/dist/components/downloadUtils.js +96 -1176
  200. package/dist/components/dropdown-group.js +3 -2
  201. package/dist/components/dropdown-item.js +3 -2
  202. package/dist/components/dropdown.js +3 -2
  203. package/dist/components/edit-card2.js +3 -2
  204. package/dist/components/esri-loader.js +6 -11
  205. package/dist/components/feature-comments.js +3 -2
  206. package/dist/components/feature-details2.js +3 -2
  207. package/dist/components/feature-form-flow-item.js +3 -2
  208. package/dist/components/feature-list2.js +3 -2
  209. package/dist/components/features-flow-item.js +3 -2
  210. package/dist/components/filter.js +730 -1
  211. package/dist/components/filter2.js +4 -3
  212. package/dist/components/floating-ui.js +13 -89
  213. package/dist/components/floor-filter2.js +3 -2
  214. package/dist/components/flow-item.js +4 -3
  215. package/dist/components/flow.js +3 -2
  216. package/dist/components/form.js +1 -1
  217. package/dist/components/graph.js +3 -2
  218. package/dist/components/handle.js +3 -2
  219. package/dist/components/helpers.js +2 -6
  220. package/dist/components/html2canvas.js +4 -9
  221. package/dist/components/icon.js +3 -2
  222. package/dist/components/index.es.js +79 -441
  223. package/dist/components/index.js +0 -16
  224. package/dist/components/index2.js +9 -17
  225. package/dist/components/index3.js +1863 -41457
  226. package/dist/components/index4.js +162 -2068
  227. package/dist/components/index5.js +184 -179
  228. package/dist/components/index6.js +55 -188
  229. package/dist/components/info-card2.js +3 -2
  230. package/dist/components/input-date-picker.js +4 -3
  231. package/dist/components/input-message.js +3 -2
  232. package/dist/components/input-number.js +3 -2
  233. package/dist/components/input-text.js +3 -2
  234. package/dist/components/input.js +3 -2
  235. package/dist/components/instant-apps-ckeditor-wrapper2.js +3 -2
  236. package/dist/components/instant-apps-control-panel.js +3 -2
  237. package/dist/components/instant-apps-create.js +3 -2
  238. package/dist/components/instant-apps-export-views.js +3 -2
  239. package/dist/components/instant-apps-export.js +3 -2
  240. package/dist/components/instant-apps-filter-list2.js +6 -6
  241. package/dist/components/instant-apps-header2.js +4 -3
  242. package/dist/components/instant-apps-interactive-legend-classic2.js +13 -17
  243. package/dist/components/instant-apps-interactive-legend-count2.js +4 -3
  244. package/dist/components/instant-apps-interactive-legend-group-legend-element-caption.js +3 -2
  245. package/dist/components/instant-apps-interactive-legend-group-legend-element2.js +3 -2
  246. package/dist/components/instant-apps-interactive-legend-layer-element-caption2.js +3 -2
  247. package/dist/components/instant-apps-interactive-legend-layer-element2.js +3 -2
  248. package/dist/components/instant-apps-interactive-legend-legend-element-caption2.js +4 -3
  249. package/dist/components/instant-apps-interactive-legend-legend-element2.js +3 -2
  250. package/dist/components/instant-apps-interactive-legend-relationship2.js +3 -2
  251. package/dist/components/instant-apps-interactive-legend.js +3 -2
  252. package/dist/components/instant-apps-keyboard-shortcuts.js +3 -2
  253. package/dist/components/instant-apps-landing-page.js +3 -2
  254. package/dist/components/instant-apps-language-switcher.js +4 -3
  255. package/dist/components/instant-apps-language-translator-item2.js +3 -2
  256. package/dist/components/instant-apps-language-translator-search2.js +3 -2
  257. package/dist/components/instant-apps-language-translator2.js +3 -2
  258. package/dist/components/instant-apps-measurement-tool2.js +3 -2
  259. package/dist/components/instant-apps-measurement.js +3 -2
  260. package/dist/components/instant-apps-popover.js +3 -2
  261. package/dist/components/instant-apps-popovers.js +3 -2
  262. package/dist/components/instant-apps-scoreboard.js +3 -2
  263. package/dist/components/instant-apps-sign-in2.js +3 -2
  264. package/dist/components/instant-apps-social-share2.js +3 -2
  265. package/dist/components/instant-apps-splash.js +4 -3
  266. package/dist/components/json-editor2.js +3 -2
  267. package/dist/components/key.js +0 -28
  268. package/dist/components/label.js +1 -1
  269. package/dist/components/label2.js +3 -2
  270. package/dist/components/languageUtil.js +1 -22
  271. package/dist/components/layer-list2.js +3 -2
  272. package/dist/components/layer-table2.js +3 -2
  273. package/dist/components/layout-manager.js +3 -2
  274. package/dist/components/link.js +3 -2
  275. package/dist/components/list-flow-item.js +3 -2
  276. package/dist/components/list-item.js +3 -2
  277. package/dist/components/list.js +5 -4
  278. package/dist/components/loader.js +3 -2
  279. package/dist/components/locale.js +0 -12
  280. package/dist/components/locale2.js +1 -2
  281. package/dist/components/location-flow-item.js +3 -2
  282. package/dist/components/map-card2.js +3 -2
  283. package/dist/components/map-draw-tools2.js +3 -2
  284. package/dist/components/map-fullscreen2.js +3 -2
  285. package/dist/components/map-layer-picker2.js +3 -2
  286. package/dist/components/map-legend2.js +3 -2
  287. package/dist/components/map-picker2.js +3 -2
  288. package/dist/components/map-search2.js +3 -2
  289. package/dist/components/map-select-tools2.js +3 -2
  290. package/dist/components/map-tools2.js +3 -4
  291. package/dist/components/menu.js +3 -2
  292. package/dist/components/modal.js +3 -8
  293. package/dist/components/mode.js +0 -8
  294. package/dist/components/navigation-user.js +3 -2
  295. package/dist/components/notice.js +3 -2
  296. package/dist/components/openCloseComponent.js +0 -48
  297. package/dist/components/option.js +3 -2
  298. package/dist/components/pagination.js +3 -195
  299. package/dist/components/panel.js +4 -4
  300. package/dist/components/pci-calculator.js +4 -3
  301. package/dist/components/pdf-download2.js +3 -2
  302. package/dist/components/pick-list-item.js +3 -2
  303. package/dist/components/popover.js +3 -2
  304. package/dist/components/progress.js +3 -2
  305. package/dist/components/public-notification.js +3 -2
  306. package/dist/components/publicNotificationStore.js +1 -1
  307. package/dist/components/purify.js +3 -6
  308. package/dist/components/queryUtils.js +0 -59
  309. package/dist/components/radio-button.js +3 -2
  310. package/dist/components/refine-results-flow-item.js +3 -2
  311. package/dist/components/refine-selection2.js +3 -2
  312. package/dist/components/resources.js +0 -17
  313. package/dist/components/resources5.js +0 -3
  314. package/dist/components/scrim.js +3 -2
  315. package/dist/components/segmented-control-item.js +3 -2
  316. package/dist/components/segmented-control.js +3 -2
  317. package/dist/components/select.js +3 -2
  318. package/dist/components/share-item.js +3 -2
  319. package/dist/components/shared-list-render.js +1 -6
  320. package/dist/components/shell-panel.js +3 -2
  321. package/dist/components/shell.js +3 -2
  322. package/dist/components/slider.js +3 -2
  323. package/dist/components/solution-configuration.js +1090 -3
  324. package/dist/components/solution-contents2.js +3 -2
  325. package/dist/components/solution-item-details2.js +3 -2
  326. package/dist/components/solution-item-icon2.js +3 -2
  327. package/dist/components/solution-item-sharing2.js +3 -2
  328. package/dist/components/solution-item2.js +3 -2
  329. package/dist/components/solution-organization-variables2.js +3 -2
  330. package/dist/components/solution-resource-item2.js +5 -3
  331. package/dist/components/solution-spatial-ref2.js +4 -3
  332. package/dist/components/solution-store.js +767 -2
  333. package/dist/components/solution-template-data2.js +3 -2
  334. package/dist/components/solution-variables2.js +3 -2
  335. package/dist/components/sortableComponent.js +0 -701
  336. package/dist/components/spatial-ref2.js +6 -264
  337. package/dist/components/stack.js +3 -2
  338. package/dist/components/store-manager.js +1 -1
  339. package/dist/components/store.js +1 -2
  340. package/dist/components/switch.js +3 -2
  341. package/dist/components/t9n.js +1 -1
  342. package/dist/components/tab-nav.js +3 -2
  343. package/dist/components/tab-title.js +3 -2
  344. package/dist/components/tab.js +3 -2
  345. package/dist/components/table-cell.js +3 -2
  346. package/dist/components/table-header.js +3 -2
  347. package/dist/components/tabs.js +3 -2
  348. package/dist/components/templates.js +3 -44
  349. package/dist/components/time-picker.js +4 -3
  350. package/dist/components/tooltip.js +3 -2
  351. package/dist/components/tree-item.js +3 -2
  352. package/dist/components/tree.js +3 -2
  353. package/dist/components/utils.js +1 -6
  354. package/dist/components/utils2.js +1 -1
  355. package/dist/components/utils4.js +1 -13
  356. package/dist/components/value-list-item.js +4 -3
  357. package/dist/components/value-list.js +3 -5
  358. package/dist/esm/arcgis-login.entry.js +3 -2
  359. package/dist/esm/basemap-gallery_7.entry.js +2 -2
  360. package/dist/esm/buffer-tools_3.entry.js +2 -2
  361. package/dist/esm/calcite-accordion-item.entry.js +7 -6
  362. package/dist/esm/calcite-accordion.entry.js +4 -3
  363. package/dist/esm/calcite-action-bar.entry.js +13 -12
  364. package/dist/esm/calcite-action-group.entry.js +14 -13
  365. package/dist/esm/calcite-action-pad_2.entry.js +2 -2
  366. package/dist/esm/calcite-alert_4.entry.js +4 -4
  367. package/dist/esm/calcite-block-section.entry.js +10 -9
  368. package/dist/esm/calcite-block_5.entry.js +7 -7
  369. package/dist/esm/calcite-button.entry.js +15 -14
  370. package/dist/esm/calcite-card-group.entry.js +8 -7
  371. package/dist/esm/calcite-card.entry.js +12 -11
  372. package/dist/esm/calcite-carousel-item.entry.js +3 -2
  373. package/dist/esm/calcite-carousel.entry.js +12 -11
  374. package/dist/esm/calcite-checkbox.entry.js +11 -10
  375. package/dist/esm/calcite-chip-group.entry.js +8 -7
  376. package/dist/esm/calcite-color-picker.entry.js +29 -29
  377. package/dist/esm/calcite-combobox-item-group.entry.js +6 -5
  378. package/dist/esm/calcite-dropdown-group_2.entry.js +2 -2
  379. package/dist/esm/calcite-fab.entry.js +8 -7
  380. package/dist/esm/calcite-flow_6.entry.js +2 -2
  381. package/dist/esm/calcite-icon.entry.js +7 -6
  382. package/dist/esm/calcite-inline-editable.entry.js +13 -12
  383. package/dist/esm/calcite-input-number.entry.js +15 -14
  384. package/dist/esm/calcite-input-text.entry.js +15 -14
  385. package/dist/esm/calcite-input-time-picker.entry.js +17 -17
  386. package/dist/esm/calcite-input-time-zone.entry.js +14 -13
  387. package/dist/esm/calcite-label.entry.js +6 -5
  388. package/dist/esm/calcite-link.entry.js +8 -7
  389. package/dist/esm/calcite-list-item-group.entry.js +5 -4
  390. package/dist/esm/calcite-menu-item.entry.js +10 -9
  391. package/dist/esm/calcite-menu.entry.js +10 -9
  392. package/dist/esm/calcite-meter.entry.js +10 -9
  393. package/dist/esm/calcite-modal.entry.js +13 -18
  394. package/dist/esm/calcite-navigation-logo.entry.js +5 -4
  395. package/dist/esm/calcite-navigation.entry.js +6 -5
  396. package/dist/esm/calcite-notice.entry.js +12 -11
  397. package/dist/esm/calcite-option-group.entry.js +3 -2
  398. package/dist/esm/calcite-pagination.entry.js +10 -202
  399. package/dist/esm/calcite-pick-list-group.entry.js +8 -7
  400. package/dist/esm/calcite-pick-list-item.entry.js +15 -14
  401. package/dist/esm/calcite-pick-list.entry.js +12 -11
  402. package/dist/esm/calcite-radio-button-group.entry.js +6 -5
  403. package/dist/esm/calcite-radio-button.entry.js +10 -9
  404. package/dist/esm/calcite-rating.entry.js +14 -15
  405. package/dist/esm/calcite-sheet.entry.js +9 -8
  406. package/dist/esm/calcite-shell-center-row.entry.js +7 -6
  407. package/dist/esm/calcite-shell-panel_14.entry.js +2 -2
  408. package/dist/esm/calcite-sortable-list.entry.js +9 -8
  409. package/dist/esm/calcite-split-button.entry.js +6 -5
  410. package/dist/esm/calcite-stepper-item.entry.js +12 -11
  411. package/dist/esm/calcite-stepper.entry.js +9 -8
  412. package/dist/esm/calcite-switch.entry.js +11 -10
  413. package/dist/esm/calcite-table-row.entry.js +8 -7
  414. package/dist/esm/calcite-table.entry.js +11 -10
  415. package/dist/esm/calcite-text-area.entry.js +17 -15
  416. package/dist/esm/calcite-tile-group.entry.js +8 -7
  417. package/dist/esm/calcite-tile-select-group.entry.js +5 -4
  418. package/dist/esm/calcite-tile-select.entry.js +6 -5
  419. package/dist/esm/calcite-tile.entry.js +8 -7
  420. package/dist/esm/calcite-time-picker.entry.js +11 -10
  421. package/dist/esm/calcite-tip-group.entry.js +3 -2
  422. package/dist/esm/calcite-tip-manager.entry.js +10 -16
  423. package/dist/esm/calcite-tip.entry.js +11 -10
  424. package/dist/esm/calcite-tooltip.entry.js +9 -8
  425. package/dist/esm/card-manager_3.entry.js +3 -3
  426. package/dist/esm/consent-manager.entry.js +7 -350
  427. package/dist/esm/crowdsource-manager.entry.js +9 -9
  428. package/dist/esm/crowdsource-reporter.entry.js +7 -8
  429. package/dist/esm/deduct-calculator.entry.js +3 -2
  430. package/dist/esm/{downloadUtils-78367e33.js → downloadUtils-65947034.js} +2 -2
  431. package/dist/esm/feature-comments.entry.js +3 -2
  432. package/dist/esm/feature-form-flow-item.entry.js +3 -2
  433. package/dist/esm/feature-list.entry.js +11 -11
  434. package/dist/esm/features-flow-item.entry.js +3 -2
  435. package/dist/esm/{helpers-d661d198.js → helpers-ca6fa5a6.js} +1 -1
  436. package/dist/esm/{index.es-2b549b56.js → index.es-8311d3b3.js} +3 -3
  437. package/dist/esm/index.js +0 -15
  438. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +5 -5
  439. package/dist/esm/instant-apps-control-panel.entry.js +6 -5
  440. package/dist/esm/instant-apps-create.entry.js +9 -8
  441. package/dist/esm/instant-apps-export-views.entry.js +9 -8
  442. package/dist/esm/instant-apps-export.entry.js +9 -8
  443. package/dist/esm/instant-apps-header.entry.js +6 -6
  444. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +16 -21
  445. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
  446. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +8 -8
  447. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
  448. package/dist/esm/instant-apps-interactive-legend.entry.js +10 -10
  449. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +8 -7
  450. package/dist/esm/instant-apps-landing-page.entry.js +3 -2
  451. package/dist/esm/instant-apps-language-switcher.entry.js +11 -10
  452. package/dist/esm/instant-apps-language-translator.entry.js +11 -10
  453. package/dist/esm/instant-apps-measurement.entry.js +8 -7
  454. package/dist/esm/instant-apps-popover.entry.js +8 -7
  455. package/dist/esm/instant-apps-popovers.entry.js +3 -2
  456. package/dist/esm/instant-apps-scoreboard.entry.js +8 -7
  457. package/dist/esm/instant-apps-sign-in.entry.js +8 -7
  458. package/dist/esm/instant-apps-splash.entry.js +8 -7
  459. package/dist/{solutions-components/languageSwitcher-35db9d61.js → esm/languageSwitcher-9db90f1e.js} +1 -1
  460. package/dist/esm/{languageUtil-a3e6adf6.js → languageUtil-2b6e191a.js} +1 -1
  461. package/dist/esm/layout-manager.entry.js +6 -6
  462. package/dist/esm/list-flow-item.entry.js +3 -2
  463. package/dist/{solutions-components/loadModules-4d6cf31f.js → esm/loadModules-03ba7abe.js} +1 -1
  464. package/dist/esm/loader.js +5 -5
  465. package/dist/esm/{locale-4dc2b896.js → locale-7becb9cd.js} +1 -1
  466. package/dist/esm/{locale-b4e7d56f.js → locale-d66155ee.js} +2 -2
  467. package/dist/esm/location-flow-item.entry.js +3 -2
  468. package/dist/esm/map-select-tools_3.entry.js +3 -3
  469. package/dist/esm/pci-calculator.entry.js +3 -2
  470. package/dist/esm/{popupUtils-600a3c69.js → popupUtils-7b7851ca.js} +2 -2
  471. package/dist/esm/public-notification.entry.js +12 -12
  472. package/dist/esm/refine-results-flow-item.entry.js +3 -2
  473. package/dist/esm/share-item.entry.js +3 -2
  474. package/dist/esm/solution-configuration.entry.js +1096 -11
  475. package/dist/esm/solution-contents_3.entry.js +2 -2
  476. package/dist/esm/solution-item-icon.entry.js +3 -2
  477. package/dist/esm/solutions-components.js +6 -33
  478. package/dist/esm/spatial-ref.entry.js +8 -8
  479. package/dist/esm/store-manager.entry.js +7 -6
  480. package/dist/esm/{utils-5ac53499.js → utils-8519a5f7.js} +1 -1
  481. package/dist/solutions-components/index.esm.js +0 -15
  482. package/dist/solutions-components/p-01ac1582.entry.js +6 -0
  483. package/dist/solutions-components/{p-c20f6a4b.entry.js → p-0fce578a.entry.js} +1 -1
  484. package/dist/solutions-components/{p-4cb18849.entry.js → p-16aa396b.entry.js} +1 -1
  485. package/dist/solutions-components/{p-58aca46f.entry.js → p-1977a2f2.entry.js} +1 -1
  486. package/dist/solutions-components/{p-da89f8f3.entry.js → p-1a137b52.entry.js} +1 -1
  487. package/dist/solutions-components/{p-427b4593.js → p-1c64264d.js} +1 -1
  488. package/dist/solutions-components/{p-702a8e9c.entry.js → p-250c058f.entry.js} +1 -1
  489. package/dist/solutions-components/{p-4dc6dcc4.entry.js → p-258356f9.entry.js} +1 -1
  490. package/dist/solutions-components/{p-36eaeb25.entry.js → p-266b0f36.entry.js} +1 -1
  491. package/dist/solutions-components/{p-274f2c44.entry.js → p-268484ad.entry.js} +1 -1
  492. package/dist/solutions-components/{p-4b6b0bcf.entry.js → p-28361110.entry.js} +1 -1
  493. package/dist/solutions-components/{p-c742acd9.js → p-2fc63144.js} +1 -1
  494. package/dist/solutions-components/{p-4b740dbc.entry.js → p-38283c63.entry.js} +1 -1
  495. package/dist/solutions-components/{p-66a59698.entry.js → p-461a5633.entry.js} +1 -1
  496. package/dist/solutions-components/{p-ab24cecd.entry.js → p-46264ced.entry.js} +1 -1
  497. package/dist/solutions-components/{p-65581d83.js → p-4cd4cb85.js} +1 -1
  498. package/dist/solutions-components/{p-37481a7e.js → p-4facfedc.js} +1 -1
  499. package/dist/solutions-components/{p-88ebb067.js → p-596d1177.js} +1 -1
  500. package/dist/solutions-components/{p-d7aa16de.entry.js → p-5f636f70.entry.js} +1 -1
  501. package/dist/solutions-components/{p-6011f232.entry.js → p-6c7aa9b7.entry.js} +1 -1
  502. package/dist/solutions-components/{p-6c822b5a.entry.js → p-71131fea.entry.js} +1 -1
  503. package/dist/solutions-components/{p-09ea5380.entry.js → p-7348871e.entry.js} +1 -1
  504. package/dist/solutions-components/{p-4fb8dbdb.entry.js → p-736dee44.entry.js} +1 -1
  505. package/dist/solutions-components/{p-f1e44c41.js → p-75d5dfad.js} +2 -2
  506. package/dist/solutions-components/{p-cebae8b0.entry.js → p-77d55329.entry.js} +1 -1
  507. package/dist/solutions-components/{p-0b2a84bd.entry.js → p-89333ced.entry.js} +1 -1
  508. package/dist/solutions-components/{p-72268284.entry.js → p-8c1f9b20.entry.js} +1 -1
  509. package/dist/solutions-components/{p-9946b88e.entry.js → p-8db0af91.entry.js} +1 -1
  510. package/dist/solutions-components/{p-0424696b.entry.js → p-8ebe19ed.entry.js} +1 -1
  511. package/dist/solutions-components/{p-f2832661.entry.js → p-90d3eeb2.entry.js} +1 -1
  512. package/dist/solutions-components/{p-1b67b3e2.entry.js → p-9238c1ed.entry.js} +1 -1
  513. package/dist/solutions-components/{p-19f6ceaf.entry.js → p-93d98ebb.entry.js} +1 -1
  514. package/dist/solutions-components/{p-c9c97215.entry.js → p-957d275c.entry.js} +1 -1
  515. package/dist/solutions-components/{p-36ca2014.entry.js → p-9e1c97b0.entry.js} +1 -1
  516. package/dist/solutions-components/{p-30df83ea.js → p-9f2a0621.js} +1 -1
  517. package/dist/solutions-components/{p-cd56bd9d.entry.js → p-a26763d2.entry.js} +1 -1
  518. package/dist/solutions-components/{p-4ffe4d32.entry.js → p-a80c076e.entry.js} +1 -1
  519. package/dist/solutions-components/{p-67e06dfc.js → p-a84590db.js} +1 -1
  520. package/dist/solutions-components/{p-3e84a420.entry.js → p-ab2adcaf.entry.js} +1 -1
  521. package/dist/solutions-components/{p-af2c8aa9.js → p-ac122d9e.js} +1 -1
  522. package/dist/solutions-components/{p-73c535f7.entry.js → p-b2846de4.entry.js} +2 -2
  523. package/dist/solutions-components/{p-6be3c158.entry.js → p-b323bb0e.entry.js} +1 -1
  524. package/dist/solutions-components/{p-24f7ec82.entry.js → p-b65d5c58.entry.js} +1 -1
  525. package/dist/solutions-components/{p-296174a0.entry.js → p-c3d61142.entry.js} +1 -1
  526. package/dist/solutions-components/{p-60b4309f.entry.js → p-ce1b52e7.entry.js} +1 -1
  527. package/dist/solutions-components/{p-f90f7437.js → p-d36fae45.js} +1 -1
  528. package/dist/solutions-components/{p-69fb3157.entry.js → p-e1dbe7cf.entry.js} +1 -1
  529. package/dist/solutions-components/{p-2b430d5f.entry.js → p-edead891.entry.js} +1 -1
  530. package/dist/solutions-components/solutions-components.css +1 -84
  531. package/dist/solutions-components/solutions-components.esm.js +1 -48
  532. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +4 -0
  533. package/dist/types/components.d.ts +8 -0
  534. package/package.json +11 -11
  535. package/dist/cjs/ExpandToggle-4bf8ab4c.js +0 -118
  536. package/dist/cjs/FloatingArrow-0900fae3.js +0 -50
  537. package/dist/cjs/Heading-6f44a694.js +0 -25
  538. package/dist/cjs/InitiativeUiSchemaEdit-108652db.js +0 -28
  539. package/dist/cjs/ProjectUiSchemaCreate-c1cbccc7.js +0 -126
  540. package/dist/cjs/ProjectUiSchemaEdit-d5f11c17.js +0 -178
  541. package/dist/cjs/Validation-080a7842.js +0 -20
  542. package/dist/cjs/_commonjsHelpers-2dd87068.js +0 -43
  543. package/dist/cjs/app-globals-24367c32.js +0 -69
  544. package/dist/cjs/ar-a6ccf8f4.js +0 -105
  545. package/dist/cjs/basemap-gallery.cjs.entry.js +0 -121
  546. package/dist/cjs/bg-e6b1b515.js +0 -83
  547. package/dist/cjs/browser-1bf2a3d9.js +0 -28
  548. package/dist/cjs/bs-4151b94c.js +0 -52
  549. package/dist/cjs/buffer-tools.cjs.entry.js +0 -257
  550. package/dist/cjs/ca-1744d62a.js +0 -72
  551. package/dist/cjs/calcite-action-menu.cjs.entry.js +0 -292
  552. package/dist/cjs/calcite-action-pad.cjs.entry.js +0 -169
  553. package/dist/cjs/calcite-action.cjs.entry.js +0 -191
  554. package/dist/cjs/calcite-alert.cjs.entry.js +0 -322
  555. package/dist/cjs/calcite-avatar.cjs.entry.js +0 -150
  556. package/dist/cjs/calcite-block.cjs.entry.js +0 -214
  557. package/dist/cjs/calcite-chip.cjs.entry.js +0 -282
  558. package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +0 -274
  559. package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +0 -99
  560. package/dist/cjs/calcite-combobox-item.cjs.entry.js +0 -145
  561. package/dist/cjs/calcite-combobox.cjs.entry.js +0 -1141
  562. package/dist/cjs/calcite-date-picker-day.cjs.entry.js +0 -112
  563. package/dist/cjs/calcite-date-picker-month-header.cjs.entry.js +0 -207
  564. package/dist/cjs/calcite-date-picker-month.cjs.entry.js +0 -359
  565. package/dist/cjs/calcite-date-picker.cjs.entry.js +0 -459
  566. package/dist/cjs/calcite-dropdown-group.cjs.entry.js +0 -85
  567. package/dist/cjs/calcite-dropdown-item.cjs.entry.js +0 -188
  568. package/dist/cjs/calcite-dropdown.cjs.entry.js +0 -426
  569. package/dist/cjs/calcite-filter.cjs.entry.js +0 -182
  570. package/dist/cjs/calcite-flow-item.cjs.entry.js +0 -198
  571. package/dist/cjs/calcite-flow.cjs.entry.js +0 -153
  572. package/dist/cjs/calcite-graph.cjs.entry.js +0 -226
  573. package/dist/cjs/calcite-handle.cjs.entry.js +0 -206
  574. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +0 -757
  575. package/dist/cjs/calcite-input-message.cjs.entry.js +0 -69
  576. package/dist/cjs/calcite-input-time-picker-f8adb5d5.js +0 -1867
  577. package/dist/cjs/calcite-input.cjs.entry.js +0 -709
  578. package/dist/cjs/calcite-list-item.cjs.entry.js +0 -456
  579. package/dist/cjs/calcite-list.cjs.entry.js +0 -560
  580. package/dist/cjs/calcite-loader.cjs.entry.js +0 -80
  581. package/dist/cjs/calcite-navigation-user.cjs.entry.js +0 -72
  582. package/dist/cjs/calcite-option.cjs.entry.js +0 -88
  583. package/dist/cjs/calcite-panel.cjs.entry.js +0 -270
  584. package/dist/cjs/calcite-popover.cjs.entry.js +0 -419
  585. package/dist/cjs/calcite-progress.cjs.entry.js +0 -41
  586. package/dist/cjs/calcite-scrim.cjs.entry.js +0 -125
  587. package/dist/cjs/calcite-segmented-control-item.cjs.entry.js +0 -70
  588. package/dist/cjs/calcite-segmented-control.cjs.entry.js +0 -258
  589. package/dist/cjs/calcite-select.cjs.entry.js +0 -248
  590. package/dist/cjs/calcite-shell-panel.cjs.entry.js +0 -414
  591. package/dist/cjs/calcite-shell.cjs.entry.js +0 -174
  592. package/dist/cjs/calcite-slider.cjs.entry.js +0 -874
  593. package/dist/cjs/calcite-stack.cjs.entry.js +0 -74
  594. package/dist/cjs/calcite-tab-nav.cjs.entry.js +0 -470
  595. package/dist/cjs/calcite-tab-title.cjs.entry.js +0 -291
  596. package/dist/cjs/calcite-tab.cjs.entry.js +0 -112
  597. package/dist/cjs/calcite-table-cell.cjs.entry.js +0 -166
  598. package/dist/cjs/calcite-table-header.cjs.entry.js +0 -183
  599. package/dist/cjs/calcite-tabs.cjs.entry.js +0 -178
  600. package/dist/cjs/calcite-tree-item.cjs.entry.js +0 -298
  601. package/dist/cjs/calcite-tree.cjs.entry.js +0 -315
  602. package/dist/cjs/calcite-value-list-item.cjs.entry.js +0 -157
  603. package/dist/cjs/calcite-value-list.cjs.entry.js +0 -325
  604. package/dist/cjs/card-manager.cjs.entry.js +0 -107
  605. package/dist/cjs/common-f5cf368e.js +0 -297
  606. package/dist/cjs/conditionalSlot-013ea8f1.js +0 -54
  607. package/dist/cjs/core-23721ec5.js +0 -329
  608. package/dist/cjs/create-feature.cjs.entry.js +0 -411
  609. package/dist/cjs/create-related-feature.cjs.entry.js +0 -288
  610. package/dist/cjs/cs-865bf9fc.js +0 -148
  611. package/dist/cjs/da-ec3cbd7d.js +0 -67
  612. package/dist/cjs/date-86802e0d.js +0 -261
  613. package/dist/cjs/de-at-33e63cf4.js +0 -91
  614. package/dist/cjs/de-ch-41c31254.js +0 -91
  615. package/dist/cjs/de-d2010af8.js +0 -92
  616. package/dist/cjs/delete-button.cjs.entry.js +0 -150
  617. package/dist/cjs/dom-3f868a04.js +0 -1174
  618. package/dist/cjs/downloadUtils-3f3ba92b.js +0 -4247
  619. package/dist/cjs/edit-card.cjs.entry.js +0 -228
  620. package/dist/cjs/el-694f3f53.js +0 -67
  621. package/dist/cjs/en-au-ee52aa15.js +0 -67
  622. package/dist/cjs/en-ca-f397253b.js +0 -66
  623. package/dist/cjs/en-gb-e38f2064.js +0 -70
  624. package/dist/cjs/es-1f31784e.js +0 -67
  625. package/dist/cjs/es-mx-e039dd38.js +0 -66
  626. package/dist/cjs/esri-loader-9b0ce1a4.js +0 -310
  627. package/dist/cjs/et-ab75e5bf.js +0 -93
  628. package/dist/cjs/feature-details.cjs.entry.js +0 -385
  629. package/dist/cjs/fi-ac75e6d2.js +0 -116
  630. package/dist/cjs/filter-bafcd70b.js +0 -48
  631. package/dist/cjs/floating-ui-87c9e9ed.js +0 -2377
  632. package/dist/cjs/floor-filter.cjs.entry.js +0 -153
  633. package/dist/cjs/focusTrapComponent-5195d563.js +0 -1028
  634. package/dist/cjs/form-067ee7bc.js +0 -381
  635. package/dist/cjs/fr-a10ffff6.js +0 -69
  636. package/dist/cjs/fr-ch-596ab83d.js +0 -67
  637. package/dist/cjs/he-bce2e0f6.js +0 -106
  638. package/dist/cjs/helpers-d91ad1d6.js +0 -864
  639. package/dist/cjs/hi-22d77acf.js +0 -66
  640. package/dist/cjs/hr-9a468bd9.js +0 -81
  641. package/dist/cjs/html2canvas-06585c20.js +0 -7852
  642. package/dist/cjs/hu-9722b179.js +0 -89
  643. package/dist/cjs/id-426a7d98.js +0 -67
  644. package/dist/cjs/index-25afe4b8.js +0 -1972
  645. package/dist/cjs/index-62dddc18.js +0 -3038
  646. package/dist/cjs/index-bf47f22d.js +0 -41718
  647. package/dist/cjs/index-e6154163.js +0 -201
  648. package/dist/cjs/index.es-bf2a62d8.js +0 -11678
  649. package/dist/cjs/info-card.cjs.entry.js +0 -367
  650. package/dist/cjs/instant-apps-ckeditor-wrapper.cjs.entry.js +0 -125
  651. package/dist/cjs/instant-apps-filter-list.cjs.entry.js +0 -1067
  652. package/dist/cjs/instant-apps-interactive-legend-count.cjs.entry.js +0 -104
  653. package/dist/cjs/instant-apps-interactive-legend-group-legend-element.cjs.entry.js +0 -56
  654. package/dist/cjs/instant-apps-interactive-legend-layer-element-caption.cjs.entry.js +0 -55
  655. package/dist/cjs/instant-apps-interactive-legend-layer-element.cjs.entry.js +0 -57
  656. package/dist/cjs/instant-apps-interactive-legend-legend-element-caption.cjs.entry.js +0 -104
  657. package/dist/cjs/instant-apps-interactive-legend-legend-element.cjs.entry.js +0 -65
  658. package/dist/cjs/instant-apps-interactive-legend-relationship.cjs.entry.js +0 -552
  659. package/dist/cjs/instant-apps-language-translator-item.cjs.entry.js +0 -384
  660. package/dist/cjs/instant-apps-language-translator-search.cjs.entry.js +0 -105
  661. package/dist/cjs/instant-apps-measurement-tool.cjs.entry.js +0 -139
  662. package/dist/cjs/instant-apps-social-share.cjs.entry.js +0 -520
  663. package/dist/cjs/interactive-f8825052.js +0 -154
  664. package/dist/cjs/it-b310ed48.js +0 -67
  665. package/dist/cjs/it-ch-804be2a9.js +0 -67
  666. package/dist/cjs/ja-fd61ab26.js +0 -73
  667. package/dist/cjs/json-editor.cjs.entry.js +0 -406
  668. package/dist/cjs/key-620e0822.js +0 -47
  669. package/dist/cjs/ko-a799f42d.js +0 -73
  670. package/dist/cjs/label-f71c85c6.js +0 -186
  671. package/dist/cjs/languageSwitcher-8209c73c.js +0 -60
  672. package/dist/cjs/languageUtil-a615ee13.js +0 -90
  673. package/dist/cjs/layer-list.cjs.entry.js +0 -197
  674. package/dist/cjs/layer-table.cjs.entry.js +0 -1562
  675. package/dist/cjs/loadModules-36d49819.js +0 -23
  676. package/dist/cjs/loadModules-e03cf23a.js +0 -30
  677. package/dist/cjs/loadable-68a22656.js +0 -97
  678. package/dist/cjs/locale-708985a1.js +0 -91
  679. package/dist/cjs/locale-898d043a.js +0 -152
  680. package/dist/cjs/locale-cfa79214.js +0 -585
  681. package/dist/cjs/lodash-7587da9f.js +0 -18030
  682. package/dist/cjs/lt-0508a01d.js +0 -98
  683. package/dist/cjs/lv-d8f83e7a.js +0 -67
  684. package/dist/cjs/map-card.cjs.entry.js +0 -231
  685. package/dist/cjs/map-draw-tools.cjs.entry.js +0 -358
  686. package/dist/cjs/map-fullscreen.cjs.entry.js +0 -116
  687. package/dist/cjs/map-layer-picker.cjs.entry.js +0 -346
  688. package/dist/cjs/map-legend.cjs.entry.js +0 -109
  689. package/dist/cjs/map-picker.cjs.entry.js +0 -174
  690. package/dist/cjs/map-search.cjs.entry.js +0 -184
  691. package/dist/cjs/map-select-tools.cjs.entry.js +0 -798
  692. package/dist/cjs/map-tools.cjs.entry.js +0 -375
  693. package/dist/cjs/mapViewUtils-83bc7d78.js +0 -295
  694. package/dist/cjs/mk-475a7a99.js +0 -67
  695. package/dist/cjs/mode-a52277fc.js +0 -27
  696. package/dist/cjs/nb-92a9acc8.js +0 -68
  697. package/dist/cjs/nl-ea0f033c.js +0 -68
  698. package/dist/cjs/observers-682136dc.js +0 -58
  699. package/dist/cjs/openCloseComponent-2fdcb310.js +0 -140
  700. package/dist/cjs/parser-08a36734.js +0 -1648
  701. package/dist/cjs/pdf-download.cjs.entry.js +0 -359
  702. package/dist/cjs/pl-05a4b5a1.js +0 -115
  703. package/dist/cjs/popupUtils-e6a2131f.js +0 -111
  704. package/dist/cjs/pt-8fe24b18.js +0 -68
  705. package/dist/cjs/pt-br-eba3aab9.js +0 -66
  706. package/dist/cjs/publicNotificationStore-ce215887.js +0 -47
  707. package/dist/cjs/purify-d00d4598.js +0 -1719
  708. package/dist/cjs/queryUtils-ad516c97.js +0 -283
  709. package/dist/cjs/refine-selection.cjs.entry.js +0 -412
  710. package/dist/cjs/resources-09a78a36.js +0 -30
  711. package/dist/cjs/resources-13ca5745.js +0 -116
  712. package/dist/cjs/resources-3855f743.js +0 -53
  713. package/dist/cjs/resources-921affcb.js +0 -49
  714. package/dist/cjs/resources-c241718f.js +0 -29
  715. package/dist/cjs/ro-c92cb77e.js +0 -67
  716. package/dist/cjs/ru-273dc1dc.js +0 -127
  717. package/dist/cjs/shadow-css-64ff22a6.js +0 -363
  718. package/dist/cjs/shared-list-render-a3a4e5db.js +0 -370
  719. package/dist/cjs/sk-f0fb5cd7.js +0 -149
  720. package/dist/cjs/sl-3bc46f93.js +0 -169
  721. package/dist/cjs/solution-contents.cjs.entry.js +0 -84
  722. package/dist/cjs/solution-item-details.cjs.entry.js +0 -199
  723. package/dist/cjs/solution-item-sharing.cjs.entry.js +0 -139
  724. package/dist/cjs/solution-item.cjs.entry.js +0 -106
  725. package/dist/cjs/solution-organization-variables.cjs.entry.js +0 -95
  726. package/dist/cjs/solution-resource-item.cjs.entry.js +0 -284
  727. package/dist/cjs/solution-spatial-ref.cjs.entry.js +0 -168
  728. package/dist/cjs/solution-store-cef42401.js +0 -587
  729. package/dist/cjs/solution-template-data.cjs.entry.js +0 -119
  730. package/dist/cjs/solution-variables.cjs.entry.js +0 -107
  731. package/dist/cjs/sortableComponent-b1be22c5.js +0 -3444
  732. package/dist/cjs/sr-ae040dc3.js +0 -102
  733. package/dist/cjs/store-3ba88099.js +0 -91
  734. package/dist/cjs/sv-769838ef.js +0 -72
  735. package/dist/cjs/t9n-0f4446d0.js +0 -103
  736. package/dist/cjs/templates-19d0e370.js +0 -442
  737. package/dist/cjs/th-9b569ee1.js +0 -66
  738. package/dist/cjs/time-5eec06fe.js +0 -289
  739. package/dist/cjs/tr-9cc6c813.js +0 -67
  740. package/dist/cjs/uk-c549303a.js +0 -105
  741. package/dist/cjs/utils-05355ba0.js +0 -64
  742. package/dist/cjs/utils-3128e748.js +0 -226
  743. package/dist/cjs/utils-4ad2f4f2.js +0 -68
  744. package/dist/cjs/utils-589c9301.js +0 -142
  745. package/dist/cjs/utils-70b0604a.js +0 -52
  746. package/dist/cjs/vi-e4806300.js +0 -71
  747. package/dist/cjs/zh-cn-e13c7902.js +0 -95
  748. package/dist/cjs/zh-hk-2d4440e3.js +0 -72
  749. package/dist/cjs/zh-tw-d9c5da28.js +0 -93
  750. package/dist/components/InitiativeUiSchemaEdit.js +0 -26
  751. package/dist/components/ProjectUiSchemaCreate.js +0 -122
  752. package/dist/components/ProjectUiSchemaEdit.js +0 -176
  753. package/dist/components/index7.js +0 -71
  754. package/dist/components/lodash.js +0 -18025
  755. package/dist/components/parser.js +0 -1646
  756. package/dist/esm/ExpandToggle-cb895a2c.js +0 -110
  757. package/dist/esm/FloatingArrow-636ce2ee.js +0 -48
  758. package/dist/esm/Heading-baf4a991.js +0 -22
  759. package/dist/esm/InitiativeUiSchemaEdit-8ddacfe8.js +0 -26
  760. package/dist/esm/ProjectUiSchemaCreate-9fb110ea.js +0 -124
  761. package/dist/esm/ProjectUiSchemaEdit-fbfdf6e4.js +0 -176
  762. package/dist/esm/Validation-b3331c79.js +0 -18
  763. package/dist/esm/_commonjsHelpers-9cd17aec.js +0 -39
  764. package/dist/esm/app-globals-97f5814f.js +0 -67
  765. package/dist/esm/ar-6236d364.js +0 -103
  766. package/dist/esm/basemap-gallery.entry.js +0 -117
  767. package/dist/esm/bg-498492ff.js +0 -81
  768. package/dist/esm/browser-920df963.js +0 -26
  769. package/dist/esm/bs-60412b06.js +0 -50
  770. package/dist/esm/buffer-tools.entry.js +0 -253
  771. package/dist/esm/ca-7844b785.js +0 -70
  772. package/dist/esm/calcite-action-menu.entry.js +0 -288
  773. package/dist/esm/calcite-action-pad.entry.js +0 -165
  774. package/dist/esm/calcite-action.entry.js +0 -187
  775. package/dist/esm/calcite-alert.entry.js +0 -318
  776. package/dist/esm/calcite-avatar.entry.js +0 -146
  777. package/dist/esm/calcite-block.entry.js +0 -210
  778. package/dist/esm/calcite-chip.entry.js +0 -278
  779. package/dist/esm/calcite-color-picker-hex-input.entry.js +0 -270
  780. package/dist/esm/calcite-color-picker-swatch.entry.js +0 -95
  781. package/dist/esm/calcite-combobox-item.entry.js +0 -141
  782. package/dist/esm/calcite-combobox.entry.js +0 -1137
  783. package/dist/esm/calcite-date-picker-day.entry.js +0 -108
  784. package/dist/esm/calcite-date-picker-month-header.entry.js +0 -203
  785. package/dist/esm/calcite-date-picker-month.entry.js +0 -355
  786. package/dist/esm/calcite-date-picker.entry.js +0 -455
  787. package/dist/esm/calcite-dropdown-group.entry.js +0 -81
  788. package/dist/esm/calcite-dropdown-item.entry.js +0 -184
  789. package/dist/esm/calcite-dropdown.entry.js +0 -422
  790. package/dist/esm/calcite-filter.entry.js +0 -178
  791. package/dist/esm/calcite-flow-item.entry.js +0 -194
  792. package/dist/esm/calcite-flow.entry.js +0 -149
  793. package/dist/esm/calcite-graph.entry.js +0 -222
  794. package/dist/esm/calcite-handle.entry.js +0 -202
  795. package/dist/esm/calcite-input-date-picker.entry.js +0 -753
  796. package/dist/esm/calcite-input-message.entry.js +0 -65
  797. package/dist/esm/calcite-input-time-picker-c336a83c.js +0 -1864
  798. package/dist/esm/calcite-input.entry.js +0 -705
  799. package/dist/esm/calcite-list-item.entry.js +0 -452
  800. package/dist/esm/calcite-list.entry.js +0 -556
  801. package/dist/esm/calcite-loader.entry.js +0 -76
  802. package/dist/esm/calcite-navigation-user.entry.js +0 -68
  803. package/dist/esm/calcite-option.entry.js +0 -84
  804. package/dist/esm/calcite-panel.entry.js +0 -266
  805. package/dist/esm/calcite-popover.entry.js +0 -415
  806. package/dist/esm/calcite-progress.entry.js +0 -37
  807. package/dist/esm/calcite-scrim.entry.js +0 -121
  808. package/dist/esm/calcite-segmented-control-item.entry.js +0 -66
  809. package/dist/esm/calcite-segmented-control.entry.js +0 -254
  810. package/dist/esm/calcite-select.entry.js +0 -244
  811. package/dist/esm/calcite-shell-panel.entry.js +0 -410
  812. package/dist/esm/calcite-shell.entry.js +0 -170
  813. package/dist/esm/calcite-slider.entry.js +0 -870
  814. package/dist/esm/calcite-stack.entry.js +0 -70
  815. package/dist/esm/calcite-tab-nav.entry.js +0 -466
  816. package/dist/esm/calcite-tab-title.entry.js +0 -287
  817. package/dist/esm/calcite-tab.entry.js +0 -108
  818. package/dist/esm/calcite-table-cell.entry.js +0 -162
  819. package/dist/esm/calcite-table-header.entry.js +0 -179
  820. package/dist/esm/calcite-tabs.entry.js +0 -174
  821. package/dist/esm/calcite-tree-item.entry.js +0 -294
  822. package/dist/esm/calcite-tree.entry.js +0 -311
  823. package/dist/esm/calcite-value-list-item.entry.js +0 -153
  824. package/dist/esm/calcite-value-list.entry.js +0 -321
  825. package/dist/esm/card-manager.entry.js +0 -103
  826. package/dist/esm/common-17d5568a.js +0 -295
  827. package/dist/esm/conditionalSlot-937057aa.js +0 -51
  828. package/dist/esm/core-a0d3cc0e.js +0 -324
  829. package/dist/esm/create-feature.entry.js +0 -407
  830. package/dist/esm/create-related-feature.entry.js +0 -284
  831. package/dist/esm/cs-be3aa1ae.js +0 -146
  832. package/dist/esm/da-5a58f3f2.js +0 -65
  833. package/dist/esm/date-a63e8e28.js +0 -245
  834. package/dist/esm/de-at-780d22a4.js +0 -89
  835. package/dist/esm/de-ch-5cf4813a.js +0 -89
  836. package/dist/esm/de-d041f0a0.js +0 -90
  837. package/dist/esm/delete-button.entry.js +0 -146
  838. package/dist/esm/dom-1f06a111.js +0 -1141
  839. package/dist/esm/downloadUtils-238038d2.js +0 -4240
  840. package/dist/esm/edit-card.entry.js +0 -224
  841. package/dist/esm/el-7c6af41a.js +0 -65
  842. package/dist/esm/en-au-dd7a3ee4.js +0 -65
  843. package/dist/esm/en-ca-4b21b3cd.js +0 -64
  844. package/dist/esm/en-gb-6ab000e3.js +0 -68
  845. package/dist/esm/es-1fd84773.js +0 -65
  846. package/dist/esm/es-mx-b82367c3.js +0 -64
  847. package/dist/esm/esri-loader-5bf2f164.js +0 -308
  848. package/dist/esm/et-08a0e4a8.js +0 -91
  849. package/dist/esm/feature-details.entry.js +0 -381
  850. package/dist/esm/fi-fe995ecb.js +0 -114
  851. package/dist/esm/filter-e3e2b01f.js +0 -46
  852. package/dist/esm/floating-ui-112e26aa.js +0 -2369
  853. package/dist/esm/floor-filter.entry.js +0 -149
  854. package/dist/esm/focusTrapComponent-fb975f9c.js +0 -1023
  855. package/dist/esm/form-cd789357.js +0 -372
  856. package/dist/esm/fr-aed06af0.js +0 -67
  857. package/dist/esm/fr-ch-a9d10a0f.js +0 -65
  858. package/dist/esm/he-a0a1731e.js +0 -104
  859. package/dist/esm/helpers-457bbf66.js +0 -840
  860. package/dist/esm/hi-ae48041a.js +0 -64
  861. package/dist/esm/hr-2ae1f998.js +0 -79
  862. package/dist/esm/html2canvas-88d6eded.js +0 -7850
  863. package/dist/esm/hu-2615f261.js +0 -87
  864. package/dist/esm/id-598e1355.js +0 -65
  865. package/dist/esm/index-0eecd45f.js +0 -2998
  866. package/dist/esm/index-8b8db9ba.js +0 -1970
  867. package/dist/esm/index-a879e1d6.js +0 -41699
  868. package/dist/esm/index-b1418e2a.js +0 -199
  869. package/dist/esm/index.es-e2310dbf.js +0 -11591
  870. package/dist/esm/info-card.entry.js +0 -363
  871. package/dist/esm/instant-apps-ckeditor-wrapper.entry.js +0 -121
  872. package/dist/esm/instant-apps-filter-list.entry.js +0 -1063
  873. package/dist/esm/instant-apps-interactive-legend-count.entry.js +0 -100
  874. package/dist/esm/instant-apps-interactive-legend-group-legend-element.entry.js +0 -52
  875. package/dist/esm/instant-apps-interactive-legend-layer-element-caption.entry.js +0 -51
  876. package/dist/esm/instant-apps-interactive-legend-layer-element.entry.js +0 -53
  877. package/dist/esm/instant-apps-interactive-legend-legend-element-caption.entry.js +0 -100
  878. package/dist/esm/instant-apps-interactive-legend-legend-element.entry.js +0 -61
  879. package/dist/esm/instant-apps-interactive-legend-relationship.entry.js +0 -548
  880. package/dist/esm/instant-apps-language-translator-item.entry.js +0 -380
  881. package/dist/esm/instant-apps-language-translator-search.entry.js +0 -101
  882. package/dist/esm/instant-apps-measurement-tool.entry.js +0 -135
  883. package/dist/esm/instant-apps-social-share.entry.js +0 -516
  884. package/dist/esm/interactive-179483f5.js +0 -149
  885. package/dist/esm/it-56a44209.js +0 -65
  886. package/dist/esm/it-ch-8fd9abf4.js +0 -65
  887. package/dist/esm/ja-66007f4d.js +0 -71
  888. package/dist/esm/json-editor.entry.js +0 -402
  889. package/dist/esm/key-15222297.js +0 -44
  890. package/dist/esm/ko-2e3b9aa8.js +0 -71
  891. package/dist/esm/label-c34ec0cf.js +0 -179
  892. package/dist/esm/languageSwitcher-35db9d61.js +0 -57
  893. package/dist/esm/languageSwitcher-b665499d.js +0 -57
  894. package/dist/esm/languageUtil-83ed2742.js +0 -87
  895. package/dist/esm/layer-list.entry.js +0 -193
  896. package/dist/esm/layer-table.entry.js +0 -1558
  897. package/dist/esm/loadModules-18662c29.js +0 -28
  898. package/dist/esm/loadModules-4d6cf31f.js +0 -21
  899. package/dist/esm/loadModules-9c062d08.js +0 -21
  900. package/dist/esm/loadable-5f2ac40f.js +0 -92
  901. package/dist/esm/locale-1b4d548e.js +0 -572
  902. package/dist/esm/locale-448ea937.js +0 -148
  903. package/dist/esm/locale-f1dd2532.js +0 -86
  904. package/dist/esm/lodash-98e4b7d0.js +0 -18025
  905. package/dist/esm/lt-2a6a8e94.js +0 -96
  906. package/dist/esm/lv-8b3c01bb.js +0 -65
  907. package/dist/esm/map-card.entry.js +0 -227
  908. package/dist/esm/map-draw-tools.entry.js +0 -354
  909. package/dist/esm/map-fullscreen.entry.js +0 -112
  910. package/dist/esm/map-layer-picker.entry.js +0 -342
  911. package/dist/esm/map-legend.entry.js +0 -105
  912. package/dist/esm/map-picker.entry.js +0 -170
  913. package/dist/esm/map-search.entry.js +0 -180
  914. package/dist/esm/map-select-tools.entry.js +0 -794
  915. package/dist/esm/map-tools.entry.js +0 -371
  916. package/dist/esm/mapViewUtils-d4946a31.js +0 -284
  917. package/dist/esm/mk-428c21bd.js +0 -65
  918. package/dist/esm/mode-e7b9fabb.js +0 -25
  919. package/dist/esm/nb-67929ffe.js +0 -66
  920. package/dist/esm/nl-954b9062.js +0 -66
  921. package/dist/esm/observers-81ed4977.js +0 -56
  922. package/dist/esm/openCloseComponent-739f40b7.js +0 -138
  923. package/dist/esm/parser-a682fcdf.js +0 -1646
  924. package/dist/esm/pdf-download.entry.js +0 -355
  925. package/dist/esm/pl-eba736c7.js +0 -113
  926. package/dist/esm/popupUtils-c60ca656.js +0 -109
  927. package/dist/esm/pt-br-ed6f0302.js +0 -64
  928. package/dist/esm/pt-e6518f49.js +0 -66
  929. package/dist/esm/publicNotificationStore-59732134.js +0 -45
  930. package/dist/esm/purify-ed095e80.js +0 -1717
  931. package/dist/esm/queryUtils-2ee0f383.js +0 -274
  932. package/dist/esm/refine-selection.entry.js +0 -408
  933. package/dist/esm/resources-092fef68.js +0 -106
  934. package/dist/esm/resources-66978311.js +0 -26
  935. package/dist/esm/resources-be0262db.js +0 -45
  936. package/dist/esm/resources-be5a6557.js +0 -26
  937. package/dist/esm/resources-ec5198da.js +0 -49
  938. package/dist/esm/ro-cb3c8995.js +0 -65
  939. package/dist/esm/ru-dd440634.js +0 -125
  940. package/dist/esm/shadow-css-15628d22.js +0 -361
  941. package/dist/esm/shared-list-render-a787615a.js +0 -348
  942. package/dist/esm/sk-a8db2217.js +0 -147
  943. package/dist/esm/sl-f798a76e.js +0 -167
  944. package/dist/esm/solution-contents.entry.js +0 -80
  945. package/dist/esm/solution-item-details.entry.js +0 -195
  946. package/dist/esm/solution-item-sharing.entry.js +0 -135
  947. package/dist/esm/solution-item.entry.js +0 -102
  948. package/dist/esm/solution-organization-variables.entry.js +0 -91
  949. package/dist/esm/solution-resource-item.entry.js +0 -280
  950. package/dist/esm/solution-spatial-ref.entry.js +0 -164
  951. package/dist/esm/solution-store-5a6cf181.js +0 -585
  952. package/dist/esm/solution-template-data.entry.js +0 -115
  953. package/dist/esm/solution-variables.entry.js +0 -103
  954. package/dist/esm/sortableComponent-ee74aef6.js +0 -3440
  955. package/dist/esm/sr-342a663a.js +0 -100
  956. package/dist/esm/store-b2b2565a.js +0 -87
  957. package/dist/esm/sv-84670dbd.js +0 -70
  958. package/dist/esm/t9n-2df2d559.js +0 -98
  959. package/dist/esm/templates-335c6b6f.js +0 -436
  960. package/dist/esm/th-a9c8533d.js +0 -64
  961. package/dist/esm/time-d753f161.js +0 -274
  962. package/dist/esm/tr-c2cc2873.js +0 -65
  963. package/dist/esm/uk-906a1eb0.js +0 -103
  964. package/dist/esm/utils-2c8108af.js +0 -133
  965. package/dist/esm/utils-580e77c3.js +0 -208
  966. package/dist/esm/utils-9aa96070.js +0 -61
  967. package/dist/esm/utils-ab48a0d6.js +0 -47
  968. package/dist/esm/utils-f96adae4.js +0 -57
  969. package/dist/esm/vi-7b43fafd.js +0 -69
  970. package/dist/esm/zh-cn-c19f2858.js +0 -93
  971. package/dist/esm/zh-hk-f212412d.js +0 -70
  972. package/dist/esm/zh-tw-be3a4302.js +0 -91
  973. package/dist/solutions-components/ExpandToggle-cb895a2c.js +0 -110
  974. package/dist/solutions-components/FloatingArrow-636ce2ee.js +0 -48
  975. package/dist/solutions-components/Heading-baf4a991.js +0 -22
  976. package/dist/solutions-components/InitiativeUiSchemaEdit-8ddacfe8.js +0 -26
  977. package/dist/solutions-components/ProjectUiSchemaCreate-9fb110ea.js +0 -124
  978. package/dist/solutions-components/ProjectUiSchemaEdit-fbfdf6e4.js +0 -176
  979. package/dist/solutions-components/Validation-b3331c79.js +0 -18
  980. package/dist/solutions-components/_commonjsHelpers-9cd17aec.js +0 -39
  981. package/dist/solutions-components/app-globals-97f5814f.js +0 -67
  982. package/dist/solutions-components/ar-6236d364.js +0 -103
  983. package/dist/solutions-components/arcgis-login.entry.js +0 -56
  984. package/dist/solutions-components/array-2604a55d.js +0 -15
  985. package/dist/solutions-components/basemap-gallery.entry.js +0 -117
  986. package/dist/solutions-components/bg-498492ff.js +0 -81
  987. package/dist/solutions-components/breakpoints-3afa0fd9.js +0 -15
  988. package/dist/solutions-components/browser-920df963.js +0 -26
  989. package/dist/solutions-components/bs-60412b06.js +0 -50
  990. package/dist/solutions-components/buffer-tools.entry.js +0 -253
  991. package/dist/solutions-components/ca-7844b785.js +0 -70
  992. package/dist/solutions-components/calcite-accordion-item.entry.js +0 -176
  993. package/dist/solutions-components/calcite-accordion.entry.js +0 -81
  994. package/dist/solutions-components/calcite-action-bar.entry.js +0 -252
  995. package/dist/solutions-components/calcite-action-group.entry.js +0 -112
  996. package/dist/solutions-components/calcite-action-menu.entry.js +0 -288
  997. package/dist/solutions-components/calcite-action-pad.entry.js +0 -165
  998. package/dist/solutions-components/calcite-action.entry.js +0 -187
  999. package/dist/solutions-components/calcite-alert.entry.js +0 -318
  1000. package/dist/solutions-components/calcite-avatar.entry.js +0 -146
  1001. package/dist/solutions-components/calcite-block-section.entry.js +0 -162
  1002. package/dist/solutions-components/calcite-block.entry.js +0 -210
  1003. package/dist/solutions-components/calcite-button.entry.js +0 -230
  1004. package/dist/solutions-components/calcite-card-group.entry.js +0 -164
  1005. package/dist/solutions-components/calcite-card.entry.js +0 -227
  1006. package/dist/solutions-components/calcite-carousel-item.entry.js +0 -41
  1007. package/dist/solutions-components/calcite-carousel.entry.js +0 -462
  1008. package/dist/solutions-components/calcite-checkbox.entry.js +0 -147
  1009. package/dist/solutions-components/calcite-chip-group.entry.js +0 -197
  1010. package/dist/solutions-components/calcite-chip.entry.js +0 -278
  1011. package/dist/solutions-components/calcite-color-picker-hex-input.entry.js +0 -270
  1012. package/dist/solutions-components/calcite-color-picker-swatch.entry.js +0 -95
  1013. package/dist/solutions-components/calcite-color-picker.entry.js +0 -923
  1014. package/dist/solutions-components/calcite-combobox-item-group.entry.js +0 -56
  1015. package/dist/solutions-components/calcite-combobox-item.entry.js +0 -141
  1016. package/dist/solutions-components/calcite-combobox.entry.js +0 -1137
  1017. package/dist/solutions-components/calcite-date-picker-day.entry.js +0 -108
  1018. package/dist/solutions-components/calcite-date-picker-month-header.entry.js +0 -203
  1019. package/dist/solutions-components/calcite-date-picker-month.entry.js +0 -355
  1020. package/dist/solutions-components/calcite-date-picker.entry.js +0 -455
  1021. package/dist/solutions-components/calcite-dropdown-group.entry.js +0 -81
  1022. package/dist/solutions-components/calcite-dropdown-item.entry.js +0 -184
  1023. package/dist/solutions-components/calcite-dropdown.entry.js +0 -422
  1024. package/dist/solutions-components/calcite-fab.entry.js +0 -90
  1025. package/dist/solutions-components/calcite-filter.entry.js +0 -178
  1026. package/dist/solutions-components/calcite-flow-item.entry.js +0 -194
  1027. package/dist/solutions-components/calcite-flow.entry.js +0 -149
  1028. package/dist/solutions-components/calcite-graph.entry.js +0 -222
  1029. package/dist/solutions-components/calcite-handle.entry.js +0 -202
  1030. package/dist/solutions-components/calcite-icon.entry.js +0 -179
  1031. package/dist/solutions-components/calcite-inline-editable.entry.js +0 -253
  1032. package/dist/solutions-components/calcite-input-date-picker.entry.js +0 -753
  1033. package/dist/solutions-components/calcite-input-message.entry.js +0 -65
  1034. package/dist/solutions-components/calcite-input-number.entry.js +0 -632
  1035. package/dist/solutions-components/calcite-input-text.entry.js +0 -369
  1036. package/dist/solutions-components/calcite-input-time-picker-c336a83c.js +0 -1864
  1037. package/dist/solutions-components/calcite-input-time-picker.entry.js +0 -25
  1038. package/dist/solutions-components/calcite-input-time-zone.entry.js +0 -373
  1039. package/dist/solutions-components/calcite-input.entry.js +0 -705
  1040. package/dist/solutions-components/calcite-label.entry.js +0 -67
  1041. package/dist/solutions-components/calcite-link.entry.js +0 -108
  1042. package/dist/solutions-components/calcite-list-item-group.entry.js +0 -66
  1043. package/dist/solutions-components/calcite-list-item.entry.js +0 -452
  1044. package/dist/solutions-components/calcite-list.entry.js +0 -556
  1045. package/dist/solutions-components/calcite-loader.entry.js +0 -76
  1046. package/dist/solutions-components/calcite-menu-item.entry.js +0 -284
  1047. package/dist/solutions-components/calcite-menu.entry.js +0 -180
  1048. package/dist/solutions-components/calcite-meter.entry.js +0 -332
  1049. package/dist/solutions-components/calcite-modal.entry.js +0 -394
  1050. package/dist/solutions-components/calcite-navigation-logo.entry.js +0 -92
  1051. package/dist/solutions-components/calcite-navigation-user.entry.js +0 -68
  1052. package/dist/solutions-components/calcite-navigation.entry.js +0 -166
  1053. package/dist/solutions-components/calcite-notice.entry.js +0 -163
  1054. package/dist/solutions-components/calcite-option-group.entry.js +0 -35
  1055. package/dist/solutions-components/calcite-option.entry.js +0 -84
  1056. package/dist/solutions-components/calcite-pagination.entry.js +0 -580
  1057. package/dist/solutions-components/calcite-panel.entry.js +0 -266
  1058. package/dist/solutions-components/calcite-pick-list-group.entry.js +0 -57
  1059. package/dist/solutions-components/calcite-pick-list-item.entry.js +0 -193
  1060. package/dist/solutions-components/calcite-pick-list.entry.js +0 -142
  1061. package/dist/solutions-components/calcite-popover.entry.js +0 -415
  1062. package/dist/solutions-components/calcite-progress.entry.js +0 -37
  1063. package/dist/solutions-components/calcite-radio-button-group.entry.js +0 -141
  1064. package/dist/solutions-components/calcite-radio-button.entry.js +0 -318
  1065. package/dist/solutions-components/calcite-rating.entry.js +0 -261
  1066. package/dist/solutions-components/calcite-scrim.entry.js +0 -121
  1067. package/dist/solutions-components/calcite-segmented-control-item.entry.js +0 -66
  1068. package/dist/solutions-components/calcite-segmented-control.entry.js +0 -254
  1069. package/dist/solutions-components/calcite-select.entry.js +0 -244
  1070. package/dist/solutions-components/calcite-sheet.entry.js +0 -223
  1071. package/dist/solutions-components/calcite-shell-center-row.entry.js +0 -66
  1072. package/dist/solutions-components/calcite-shell-panel.entry.js +0 -410
  1073. package/dist/solutions-components/calcite-shell.entry.js +0 -170
  1074. package/dist/solutions-components/calcite-slider.entry.js +0 -870
  1075. package/dist/solutions-components/calcite-sortable-list.entry.js +0 -166
  1076. package/dist/solutions-components/calcite-split-button.entry.js +0 -112
  1077. package/dist/solutions-components/calcite-stack.entry.js +0 -70
  1078. package/dist/solutions-components/calcite-stepper-item.entry.js +0 -237
  1079. package/dist/solutions-components/calcite-stepper.entry.js +0 -336
  1080. package/dist/solutions-components/calcite-switch.entry.js +0 -113
  1081. package/dist/solutions-components/calcite-tab-nav.entry.js +0 -466
  1082. package/dist/solutions-components/calcite-tab-title.entry.js +0 -287
  1083. package/dist/solutions-components/calcite-tab.entry.js +0 -108
  1084. package/dist/solutions-components/calcite-table-cell.entry.js +0 -162
  1085. package/dist/solutions-components/calcite-table-header.entry.js +0 -179
  1086. package/dist/solutions-components/calcite-table-row.entry.js +0 -259
  1087. package/dist/solutions-components/calcite-table.entry.js +0 -323
  1088. package/dist/solutions-components/calcite-tabs.entry.js +0 -174
  1089. package/dist/solutions-components/calcite-text-area.entry.js +0 -302
  1090. package/dist/solutions-components/calcite-tile-group.entry.js +0 -170
  1091. package/dist/solutions-components/calcite-tile-select-group.entry.js +0 -39
  1092. package/dist/solutions-components/calcite-tile-select.entry.js +0 -225
  1093. package/dist/solutions-components/calcite-tile.entry.js +0 -197
  1094. package/dist/solutions-components/calcite-time-picker.entry.js +0 -839
  1095. package/dist/solutions-components/calcite-tip-group.entry.js +0 -21
  1096. package/dist/solutions-components/calcite-tip-manager.entry.js +0 -227
  1097. package/dist/solutions-components/calcite-tip.entry.js +0 -126
  1098. package/dist/solutions-components/calcite-tooltip.entry.js +0 -431
  1099. package/dist/solutions-components/calcite-tree-item.entry.js +0 -294
  1100. package/dist/solutions-components/calcite-tree.entry.js +0 -311
  1101. package/dist/solutions-components/calcite-value-list-item.entry.js +0 -153
  1102. package/dist/solutions-components/calcite-value-list.entry.js +0 -321
  1103. package/dist/solutions-components/card-manager.entry.js +0 -103
  1104. package/dist/solutions-components/common-17d5568a.js +0 -295
  1105. package/dist/solutions-components/component-960ddabf.js +0 -30
  1106. package/dist/solutions-components/conditionalSlot-937057aa.js +0 -51
  1107. package/dist/solutions-components/consent-manager.entry.js +0 -1099
  1108. package/dist/solutions-components/core-a0d3cc0e.js +0 -324
  1109. package/dist/solutions-components/create-feature.entry.js +0 -407
  1110. package/dist/solutions-components/create-related-feature.entry.js +0 -284
  1111. package/dist/solutions-components/crowdsource-manager.entry.js +0 -539
  1112. package/dist/solutions-components/crowdsource-reporter.entry.js +0 -913
  1113. package/dist/solutions-components/cs-be3aa1ae.js +0 -146
  1114. package/dist/solutions-components/da-5a58f3f2.js +0 -65
  1115. package/dist/solutions-components/date-a63e8e28.js +0 -245
  1116. package/dist/solutions-components/de-at-780d22a4.js +0 -89
  1117. package/dist/solutions-components/de-ch-5cf4813a.js +0 -89
  1118. package/dist/solutions-components/de-d041f0a0.js +0 -90
  1119. package/dist/solutions-components/deduct-calculator.entry.js +0 -101
  1120. package/dist/solutions-components/delete-button.entry.js +0 -146
  1121. package/dist/solutions-components/dom-1f06a111.js +0 -1141
  1122. package/dist/solutions-components/downloadUtils-238038d2.js +0 -4240
  1123. package/dist/solutions-components/edit-card.entry.js +0 -224
  1124. package/dist/solutions-components/el-7c6af41a.js +0 -65
  1125. package/dist/solutions-components/en-au-dd7a3ee4.js +0 -65
  1126. package/dist/solutions-components/en-ca-4b21b3cd.js +0 -64
  1127. package/dist/solutions-components/en-gb-6ab000e3.js +0 -68
  1128. package/dist/solutions-components/es-1fd84773.js +0 -65
  1129. package/dist/solutions-components/es-mx-b82367c3.js +0 -64
  1130. package/dist/solutions-components/esri-loader-5bf2f164.js +0 -308
  1131. package/dist/solutions-components/et-08a0e4a8.js +0 -91
  1132. package/dist/solutions-components/feature-comments.entry.js +0 -56
  1133. package/dist/solutions-components/feature-details.entry.js +0 -381
  1134. package/dist/solutions-components/feature-form-flow-item.entry.js +0 -56
  1135. package/dist/solutions-components/feature-list.entry.js +0 -301
  1136. package/dist/solutions-components/features-flow-item.entry.js +0 -56
  1137. package/dist/solutions-components/fi-fe995ecb.js +0 -114
  1138. package/dist/solutions-components/filter-e3e2b01f.js +0 -46
  1139. package/dist/solutions-components/floating-ui-112e26aa.js +0 -2369
  1140. package/dist/solutions-components/floor-filter.entry.js +0 -149
  1141. package/dist/solutions-components/focusTrapComponent-fb975f9c.js +0 -1023
  1142. package/dist/solutions-components/form-cd789357.js +0 -372
  1143. package/dist/solutions-components/fr-aed06af0.js +0 -67
  1144. package/dist/solutions-components/fr-ch-a9d10a0f.js +0 -65
  1145. package/dist/solutions-components/guid-f05d01d5.js +0 -24
  1146. package/dist/solutions-components/he-a0a1731e.js +0 -104
  1147. package/dist/solutions-components/helpers-457bbf66.js +0 -840
  1148. package/dist/solutions-components/hi-ae48041a.js +0 -64
  1149. package/dist/solutions-components/hr-2ae1f998.js +0 -79
  1150. package/dist/solutions-components/html2canvas-88d6eded.js +0 -7850
  1151. package/dist/solutions-components/hu-2615f261.js +0 -87
  1152. package/dist/solutions-components/id-598e1355.js +0 -65
  1153. package/dist/solutions-components/index-0eecd45f.js +0 -2998
  1154. package/dist/solutions-components/index-5110a27a.js +0 -71
  1155. package/dist/solutions-components/index-8b8db9ba.js +0 -1970
  1156. package/dist/solutions-components/index-a1e91462.js +0 -2105
  1157. package/dist/solutions-components/index-a879e1d6.js +0 -41699
  1158. package/dist/solutions-components/index-b1418e2a.js +0 -199
  1159. package/dist/solutions-components/index-d8ff08ed.js +0 -204
  1160. package/dist/solutions-components/index.es-e2310dbf.js +0 -11591
  1161. package/dist/solutions-components/info-card.entry.js +0 -363
  1162. package/dist/solutions-components/input-96cf61a2.js +0 -58
  1163. package/dist/solutions-components/instant-apps-ckeditor-wrapper.entry.js +0 -121
  1164. package/dist/solutions-components/instant-apps-control-panel.entry.js +0 -92
  1165. package/dist/solutions-components/instant-apps-create.entry.js +0 -264
  1166. package/dist/solutions-components/instant-apps-export-views.entry.js +0 -722
  1167. package/dist/solutions-components/instant-apps-export.entry.js +0 -903
  1168. package/dist/solutions-components/instant-apps-filter-list.entry.js +0 -1063
  1169. package/dist/solutions-components/instant-apps-header.entry.js +0 -125
  1170. package/dist/solutions-components/instant-apps-interactive-legend-classic.entry.js +0 -1616
  1171. package/dist/solutions-components/instant-apps-interactive-legend-count.entry.js +0 -100
  1172. package/dist/solutions-components/instant-apps-interactive-legend-group-legend-element-caption.entry.js +0 -53
  1173. package/dist/solutions-components/instant-apps-interactive-legend-group-legend-element.entry.js +0 -52
  1174. package/dist/solutions-components/instant-apps-interactive-legend-layer-element-caption.entry.js +0 -51
  1175. package/dist/solutions-components/instant-apps-interactive-legend-layer-element.entry.js +0 -53
  1176. package/dist/solutions-components/instant-apps-interactive-legend-legend-element-caption.entry.js +0 -100
  1177. package/dist/solutions-components/instant-apps-interactive-legend-legend-element.entry.js +0 -61
  1178. package/dist/solutions-components/instant-apps-interactive-legend-relationship.entry.js +0 -548
  1179. package/dist/solutions-components/instant-apps-interactive-legend.entry.js +0 -112
  1180. package/dist/solutions-components/instant-apps-keyboard-shortcuts.entry.js +0 -139
  1181. package/dist/solutions-components/instant-apps-landing-page.entry.js +0 -150
  1182. package/dist/solutions-components/instant-apps-language-switcher.entry.js +0 -173
  1183. package/dist/solutions-components/instant-apps-language-translator-item.entry.js +0 -380
  1184. package/dist/solutions-components/instant-apps-language-translator-search.entry.js +0 -101
  1185. package/dist/solutions-components/instant-apps-language-translator.entry.js +0 -286
  1186. package/dist/solutions-components/instant-apps-measurement-tool.entry.js +0 -135
  1187. package/dist/solutions-components/instant-apps-measurement.entry.js +0 -66
  1188. package/dist/solutions-components/instant-apps-popover.entry.js +0 -74
  1189. package/dist/solutions-components/instant-apps-popovers.entry.js +0 -88
  1190. package/dist/solutions-components/instant-apps-scoreboard.entry.js +0 -463
  1191. package/dist/solutions-components/instant-apps-sign-in.entry.js +0 -164
  1192. package/dist/solutions-components/instant-apps-social-share.entry.js +0 -516
  1193. package/dist/solutions-components/instant-apps-splash.entry.js +0 -144
  1194. package/dist/solutions-components/interactive-179483f5.js +0 -149
  1195. package/dist/solutions-components/interfaces-586e863c.js +0 -80
  1196. package/dist/solutions-components/it-56a44209.js +0 -65
  1197. package/dist/solutions-components/it-ch-8fd9abf4.js +0 -65
  1198. package/dist/solutions-components/ja-66007f4d.js +0 -71
  1199. package/dist/solutions-components/json-editor.entry.js +0 -402
  1200. package/dist/solutions-components/key-15222297.js +0 -44
  1201. package/dist/solutions-components/ko-2e3b9aa8.js +0 -71
  1202. package/dist/solutions-components/label-c34ec0cf.js +0 -179
  1203. package/dist/solutions-components/languageUtil-83ed2742.js +0 -87
  1204. package/dist/solutions-components/layer-list.entry.js +0 -193
  1205. package/dist/solutions-components/layer-table.entry.js +0 -1558
  1206. package/dist/solutions-components/layout-manager.entry.js +0 -91
  1207. package/dist/solutions-components/list-flow-item.entry.js +0 -56
  1208. package/dist/solutions-components/loadModules-18662c29.js +0 -28
  1209. package/dist/solutions-components/loadable-5f2ac40f.js +0 -92
  1210. package/dist/solutions-components/locale-1b4d548e.js +0 -572
  1211. package/dist/solutions-components/locale-448ea937.js +0 -148
  1212. package/dist/solutions-components/locale-f1dd2532.js +0 -86
  1213. package/dist/solutions-components/location-flow-item.entry.js +0 -56
  1214. package/dist/solutions-components/lodash-98e4b7d0.js +0 -18025
  1215. package/dist/solutions-components/lt-2a6a8e94.js +0 -96
  1216. package/dist/solutions-components/lv-8b3c01bb.js +0 -65
  1217. package/dist/solutions-components/map-card.entry.js +0 -227
  1218. package/dist/solutions-components/map-draw-tools.entry.js +0 -354
  1219. package/dist/solutions-components/map-fullscreen.entry.js +0 -112
  1220. package/dist/solutions-components/map-layer-picker.entry.js +0 -342
  1221. package/dist/solutions-components/map-legend.entry.js +0 -105
  1222. package/dist/solutions-components/map-picker.entry.js +0 -170
  1223. package/dist/solutions-components/map-search.entry.js +0 -180
  1224. package/dist/solutions-components/map-select-tools.entry.js +0 -794
  1225. package/dist/solutions-components/map-tools.entry.js +0 -371
  1226. package/dist/solutions-components/mapViewUtils-d4946a31.js +0 -284
  1227. package/dist/solutions-components/math-81650811.js +0 -54
  1228. package/dist/solutions-components/mk-428c21bd.js +0 -65
  1229. package/dist/solutions-components/mode-e7b9fabb.js +0 -25
  1230. package/dist/solutions-components/nb-67929ffe.js +0 -66
  1231. package/dist/solutions-components/nl-954b9062.js +0 -66
  1232. package/dist/solutions-components/observers-81ed4977.js +0 -56
  1233. package/dist/solutions-components/openCloseComponent-739f40b7.js +0 -138
  1234. package/dist/solutions-components/p-1a12761f.entry.js +0 -6
  1235. package/dist/solutions-components/parser-a682fcdf.js +0 -1646
  1236. package/dist/solutions-components/pci-calculator.entry.js +0 -113
  1237. package/dist/solutions-components/pciUtils-986ddad9.js +0 -844
  1238. package/dist/solutions-components/pdf-download.entry.js +0 -355
  1239. package/dist/solutions-components/pl-eba736c7.js +0 -113
  1240. package/dist/solutions-components/popupUtils-c60ca656.js +0 -109
  1241. package/dist/solutions-components/pt-br-ed6f0302.js +0 -64
  1242. package/dist/solutions-components/pt-e6518f49.js +0 -66
  1243. package/dist/solutions-components/public-notification.entry.js +0 -1005
  1244. package/dist/solutions-components/publicNotificationStore-59732134.js +0 -45
  1245. package/dist/solutions-components/purify-ed095e80.js +0 -1717
  1246. package/dist/solutions-components/queryUtils-2ee0f383.js +0 -274
  1247. package/dist/solutions-components/refine-results-flow-item.entry.js +0 -56
  1248. package/dist/solutions-components/refine-selection.entry.js +0 -408
  1249. package/dist/solutions-components/resources-092fef68.js +0 -106
  1250. package/dist/solutions-components/resources-16800cce.js +0 -24
  1251. package/dist/solutions-components/resources-3587e9a5.js +0 -20
  1252. package/dist/solutions-components/resources-66978311.js +0 -26
  1253. package/dist/solutions-components/resources-7c4efc5e.js +0 -22
  1254. package/dist/solutions-components/resources-7c61fbec.js +0 -62
  1255. package/dist/solutions-components/resources-7d202c09.js +0 -24
  1256. package/dist/solutions-components/resources-ae36eaff.js +0 -19
  1257. package/dist/solutions-components/resources-be0262db.js +0 -45
  1258. package/dist/solutions-components/resources-be5a6557.js +0 -26
  1259. package/dist/solutions-components/resources-dd68a4aa.js +0 -35
  1260. package/dist/solutions-components/resources-ec5198da.js +0 -49
  1261. package/dist/solutions-components/ro-cb3c8995.js +0 -65
  1262. package/dist/solutions-components/ru-dd440634.js +0 -125
  1263. package/dist/solutions-components/shadow-css-15628d22.js +0 -361
  1264. package/dist/solutions-components/share-item.entry.js +0 -56
  1265. package/dist/solutions-components/shared-list-render-a787615a.js +0 -348
  1266. package/dist/solutions-components/sk-a8db2217.js +0 -147
  1267. package/dist/solutions-components/sl-f798a76e.js +0 -167
  1268. package/dist/solutions-components/solution-configuration.entry.js +0 -565
  1269. package/dist/solutions-components/solution-contents.entry.js +0 -80
  1270. package/dist/solutions-components/solution-item-details.entry.js +0 -195
  1271. package/dist/solutions-components/solution-item-icon.entry.js +0 -323
  1272. package/dist/solutions-components/solution-item-sharing.entry.js +0 -135
  1273. package/dist/solutions-components/solution-item.entry.js +0 -102
  1274. package/dist/solutions-components/solution-organization-variables.entry.js +0 -91
  1275. package/dist/solutions-components/solution-resource-item.entry.js +0 -280
  1276. package/dist/solutions-components/solution-spatial-ref.entry.js +0 -164
  1277. package/dist/solutions-components/solution-store-5a6cf181.js +0 -585
  1278. package/dist/solutions-components/solution-template-data.entry.js +0 -115
  1279. package/dist/solutions-components/solution-variables.entry.js +0 -103
  1280. package/dist/solutions-components/sortableComponent-ee74aef6.js +0 -3440
  1281. package/dist/solutions-components/spatial-ref.entry.js +0 -21296
  1282. package/dist/solutions-components/sr-342a663a.js +0 -100
  1283. package/dist/solutions-components/store-b2b2565a.js +0 -87
  1284. package/dist/solutions-components/store-manager.entry.js +0 -75
  1285. package/dist/solutions-components/styles-b3492d9f.js +0 -11
  1286. package/dist/solutions-components/sv-84670dbd.js +0 -70
  1287. package/dist/solutions-components/t9n-2df2d559.js +0 -98
  1288. package/dist/solutions-components/templates-335c6b6f.js +0 -436
  1289. package/dist/solutions-components/th-a9c8533d.js +0 -64
  1290. package/dist/solutions-components/time-d753f161.js +0 -274
  1291. package/dist/solutions-components/tr-c2cc2873.js +0 -65
  1292. package/dist/solutions-components/uk-906a1eb0.js +0 -103
  1293. package/dist/solutions-components/utils-2c8108af.js +0 -133
  1294. package/dist/solutions-components/utils-580e77c3.js +0 -208
  1295. package/dist/solutions-components/utils-9aa96070.js +0 -61
  1296. package/dist/solutions-components/utils-ab48a0d6.js +0 -47
  1297. package/dist/solutions-components/utils-f96adae4.js +0 -57
  1298. package/dist/solutions-components/vi-7b43fafd.js +0 -69
  1299. package/dist/solutions-components/zh-cn-c19f2858.js +0 -93
  1300. package/dist/solutions-components/zh-hk-f212412d.js +0 -70
  1301. package/dist/solutions-components/zh-tw-be3a4302.js +0 -91
  1302. /package/dist/cjs/{esri-loader-a56cbcbe.js → esri-loader-08dc41bd.js} +0 -0
  1303. /package/dist/esm/{esri-loader-781d738a.js → esri-loader-c6842c6b.js} +0 -0
  1304. /package/dist/solutions-components/{p-6a68306c.js → p-0a24ad5f.js} +0 -0
@@ -1,3444 +0,0 @@
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.8.2
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
- fallbackClass: "calcite-sortable--fallback",
3372
- };
3373
- /**
3374
- * 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.
3375
- *
3376
- * @param {SortableComponent} component - The sortable component.
3377
- */
3378
- function connectSortableComponent(component) {
3379
- disconnectSortableComponent(component);
3380
- sortableComponentSet.add(component);
3381
- const dataIdAttr = "id";
3382
- const { group, handleSelector: handle, dragSelector: draggable } = component;
3383
- component.sortable = Sortable.create(component.el, {
3384
- dataIdAttr,
3385
- ...CSS,
3386
- ...(!!draggable && { draggable }),
3387
- ...(!!group && {
3388
- group: {
3389
- name: group,
3390
- ...(!!component.canPull && {
3391
- pull: (to, from, dragEl, { newIndex, oldIndex }) => component.canPull({ toEl: to.el, fromEl: from.el, dragEl, newIndex, oldIndex }),
3392
- }),
3393
- ...(!!component.canPut && {
3394
- put: (to, from, dragEl, { newIndex, oldIndex }) => component.canPut({ toEl: to.el, fromEl: from.el, dragEl, newIndex, oldIndex }),
3395
- }),
3396
- },
3397
- }),
3398
- handle,
3399
- filter: `${handle}[disabled]`,
3400
- onStart: ({ from: fromEl, item: dragEl, to: toEl, newIndex, oldIndex }) => {
3401
- dragState.active = true;
3402
- onGlobalDragStart();
3403
- component.onDragStart({ fromEl, dragEl, toEl, newIndex, oldIndex });
3404
- },
3405
- onEnd: ({ from: fromEl, item: dragEl, to: toEl, newIndex, oldIndex }) => {
3406
- dragState.active = false;
3407
- onGlobalDragEnd();
3408
- component.onDragEnd({ fromEl, dragEl, toEl, newIndex, oldIndex });
3409
- },
3410
- onSort: ({ from: fromEl, item: dragEl, to: toEl, newIndex, oldIndex }) => {
3411
- component.onDragSort({ fromEl, dragEl, toEl, newIndex, oldIndex });
3412
- },
3413
- });
3414
- }
3415
- /**
3416
- * Helper to remove track of a SortableComponent. This should be called in the `disconnectedCallback` lifecycle method.
3417
- *
3418
- * @param {SortableComponent} component - The sortable component.
3419
- */
3420
- function disconnectSortableComponent(component) {
3421
- sortableComponentSet.delete(component);
3422
- component.sortable?.destroy();
3423
- component.sortable = null;
3424
- }
3425
- const dragState = { active: false };
3426
- /**
3427
- * Helper to determine if dragging is currently active.
3428
- *
3429
- * @param component The sortable component.
3430
- * @returns {boolean} a boolean value.
3431
- */
3432
- function dragActive(component) {
3433
- return component.dragEnabled && dragState.active;
3434
- }
3435
- function onGlobalDragStart() {
3436
- Array.from(sortableComponentSet).forEach((component) => component.onGlobalDragStart());
3437
- }
3438
- function onGlobalDragEnd() {
3439
- Array.from(sortableComponentSet).forEach((component) => component.onGlobalDragEnd());
3440
- }
3441
-
3442
- exports.connectSortableComponent = connectSortableComponent;
3443
- exports.disconnectSortableComponent = disconnectSortableComponent;
3444
- exports.dragActive = dragActive;