genesys-spark-components 4.0.0-beta.34 → 4.0.0-beta.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (966) hide show
  1. package/dist/cjs/en-85604f0f.js +24 -0
  2. package/dist/cjs/genesys-webcomponents.cjs.js +3 -6
  3. package/dist/cjs/{get-valid-timezone-39ba3e64.js → get-valid-timezone-5a9231d3.js} +1 -1
  4. package/dist/cjs/gux-accordion-section.cjs.entry.js +4 -4
  5. package/dist/cjs/gux-accordion.cjs.entry.js +2 -2
  6. package/dist/cjs/gux-action-button.cjs.entry.js +8 -8
  7. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +3 -3
  8. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +8 -8
  9. package/dist/cjs/gux-all-row-select.cjs.entry.js +5 -5
  10. package/dist/cjs/gux-announce-beta.cjs.entry.js +3 -3
  11. package/dist/cjs/gux-badge.cjs.entry.js +5 -5
  12. package/dist/cjs/gux-blank-state.cjs.entry.js +3 -3
  13. package/dist/cjs/gux-breadcrumb-item.cjs.entry.js +3 -3
  14. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +5 -5
  15. package/dist/cjs/gux-button-multi.cjs.entry.js +6 -6
  16. package/dist/cjs/gux-button-slot.cjs.entry.js +4 -4
  17. package/dist/cjs/gux-button.cjs.entry.js +3 -3
  18. package/dist/cjs/gux-calendar-beta.cjs.entry.js +9 -9
  19. package/dist/cjs/gux-calendar.cjs.entry.js +8 -8
  20. package/dist/cjs/gux-card.cjs.entry.js +2 -2
  21. package/dist/cjs/gux-column-manager-item.cjs.entry.js +7 -7
  22. package/dist/cjs/gux-column-manager.cjs.entry.js +7 -7
  23. package/dist/cjs/{gux-column-manager.service-8a71e1f3.js → gux-column-manager.service-7f1cc862.js} +2 -2
  24. package/dist/cjs/gux-content-search.cjs.entry.js +7 -7
  25. package/dist/cjs/gux-context-menu.cjs.entry.js +9 -9
  26. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +7 -7
  27. package/dist/cjs/gux-create-option.cjs.entry.js +5 -5
  28. package/dist/cjs/gux-date-beta.cjs.entry.js +5 -5
  29. package/dist/cjs/gux-date-time-beta.cjs.entry.js +5 -5
  30. package/dist/cjs/gux-datepicker.cjs.entry.js +10 -10
  31. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +5 -5
  32. package/dist/cjs/gux-dismiss-button.cjs.entry.js +5 -5
  33. package/dist/cjs/gux-dropdown-multi-tag.cjs.entry.js +4 -4
  34. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +11 -11
  35. package/dist/cjs/gux-dropdown-option.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-dropdown_3.cjs.entry.js +15 -15
  37. package/dist/cjs/gux-flyout-menu.cjs.entry.js +5 -5
  38. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +10 -10
  39. package/dist/cjs/gux-form-field-color.cjs.entry.js +13 -13
  40. package/dist/cjs/{gux-form-field-container-64e8bc38.js → gux-form-field-container-48871f4b.js} +1 -1
  41. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +15 -15
  42. package/dist/cjs/{gux-form-field-fieldset-container-1abe7d3b.js → gux-form-field-fieldset-container-c0d39bed.js} +1 -1
  43. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +5 -5
  44. package/dist/cjs/gux-form-field-number_3.cjs.entry.js +23 -23
  45. package/dist/cjs/gux-form-field-phone.cjs.entry.js +14 -14
  46. package/dist/cjs/gux-form-field-radio.cjs.entry.js +11 -11
  47. package/dist/cjs/gux-form-field-range.cjs.entry.js +13 -13
  48. package/dist/cjs/gux-form-field-search.cjs.entry.js +13 -13
  49. package/dist/cjs/gux-form-field-select.cjs.entry.js +13 -13
  50. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +13 -13
  51. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +13 -13
  52. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +14 -14
  53. package/dist/cjs/{gux-form-field.service-dd469568.js → gux-form-field.service-704c78c2.js} +5 -5
  54. package/dist/cjs/gux-icon.cjs.entry.js +3 -3
  55. package/dist/cjs/gux-inline-alert.cjs.entry.js +5 -5
  56. package/dist/cjs/gux-list-divider.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-list-item.cjs.entry.js +3 -3
  58. package/dist/cjs/gux-list.cjs.entry.js +3 -3
  59. package/dist/cjs/gux-listbox-multi.cjs.entry.js +9 -9
  60. package/dist/cjs/gux-loading-message.cjs.entry.js +3 -3
  61. package/dist/cjs/gux-menu-option.cjs.entry.js +2 -2
  62. package/dist/cjs/gux-menu.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-modal.cjs.entry.js +4 -4
  64. package/dist/cjs/gux-month-calendar.cjs.entry.js +7 -7
  65. package/dist/cjs/gux-month-list_2.cjs.entry.js +4 -4
  66. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +9 -9
  67. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +3 -3
  68. package/dist/cjs/gux-option-icon.cjs.entry.js +3 -3
  69. package/dist/cjs/gux-option-multi.cjs.entry.js +5 -5
  70. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +2 -2
  71. package/dist/cjs/gux-pagination-buttons-legacy_3.cjs.entry.js +6 -6
  72. package/dist/cjs/gux-pagination-buttons_3.cjs.entry.js +8 -8
  73. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +5 -5
  74. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +3 -3
  75. package/dist/cjs/gux-pagination.cjs.entry.js +4 -4
  76. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +8 -8
  77. package/dist/cjs/gux-popover-list.cjs.entry.js +6 -6
  78. package/dist/cjs/gux-popup.cjs.entry.js +3 -3
  79. package/dist/cjs/gux-radial-loading.cjs.entry.js +5 -5
  80. package/dist/cjs/gux-radial-progress.cjs.entry.js +4 -4
  81. package/dist/cjs/gux-rating.cjs.entry.js +6 -6
  82. package/dist/cjs/gux-region-icon.cjs.entry.js +2 -2
  83. package/dist/cjs/gux-row-select.cjs.entry.js +5 -5
  84. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +2 -2
  85. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +3 -3
  86. package/dist/cjs/gux-segmented-control-item.cjs.entry.js +5 -5
  87. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +2 -2
  88. package/dist/cjs/gux-skip-navigation-item.cjs.entry.js +1 -1
  89. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +4 -4
  90. package/dist/cjs/gux-sort-control.cjs.entry.js +7 -7
  91. package/dist/cjs/gux-submenu.cjs.entry.js +4 -4
  92. package/dist/cjs/gux-switch-item.cjs.entry.js +2 -2
  93. package/dist/cjs/gux-switch-legacy.cjs.entry.js +3 -3
  94. package/dist/cjs/gux-tab-advanced-legacy.cjs.entry.js +157 -0
  95. package/dist/cjs/gux-tab-advanced-list-legacy.cjs.entry.js +470 -0
  96. package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +25 -3044
  97. package/dist/cjs/gux-tab-advanced-panel-legacy.cjs.entry.js +34 -0
  98. package/dist/cjs/gux-tab-advanced-panel.cjs.entry.js +2 -2
  99. package/dist/cjs/gux-tab-advanced.cjs.entry.js +7 -7
  100. package/dist/cjs/gux-tab-list.cjs.entry.js +6 -6
  101. package/dist/cjs/gux-tab-panel.cjs.entry.js +2 -2
  102. package/dist/cjs/gux-tab.cjs.entry.js +1 -1
  103. package/dist/cjs/gux-table-select-menu.cjs.entry.js +8 -8
  104. package/dist/cjs/gux-table-select-popover.cjs.entry.js +3 -3
  105. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +5 -5
  106. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +3 -3
  107. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +6 -6
  108. package/dist/cjs/gux-table-toolbar.cjs.entry.js +5 -5
  109. package/dist/cjs/gux-table.cjs.entry.js +8 -8
  110. package/dist/cjs/gux-tabs-advanced-legacy.cjs.entry.js +63 -0
  111. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +2 -2
  112. package/dist/cjs/gux-tabs.cjs.entry.js +2 -2
  113. package/dist/cjs/gux-tag.cjs.entry.js +5 -5
  114. package/dist/cjs/gux-text-highlight.cjs.entry.js +2 -2
  115. package/dist/cjs/gux-time-beta.cjs.entry.js +5 -5
  116. package/dist/cjs/gux-time-picker.cjs.entry.js +8 -8
  117. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +5 -5
  118. package/dist/cjs/gux-toast.cjs.entry.js +4 -4
  119. package/dist/cjs/gux-toggle-slider.cjs.entry.js +2 -2
  120. package/dist/cjs/gux-toggle.cjs.entry.js +5 -5
  121. package/dist/cjs/gux-tooltip-title.cjs.entry.js +4 -4
  122. package/dist/cjs/gux-tooltip.cjs.entry.js +7 -7
  123. package/dist/cjs/gux-truncate.cjs.entry.js +3 -3
  124. package/dist/cjs/{index-0d0fdb85.js → index-39160f18.js} +175 -43
  125. package/dist/cjs/{index-9bbde1aa.js → index-ff762de3.js} +2 -2
  126. package/dist/cjs/loader.cjs.js +3 -12
  127. package/dist/cjs/{on-click-outside-428f8bbf.js → on-click-outside-a7d87c91.js} +1 -1
  128. package/dist/cjs/{on-mutation-247f99dd.js → on-mutation-f396cc0e.js} +1 -1
  129. package/dist/cjs/{on-resize-ee6a4b87.js → on-resize-b4982908.js} +1 -1
  130. package/dist/cjs/sortable.esm-73cf219b.js +3023 -0
  131. package/dist/cjs/{usage-b1e23593.js → usage-d4216a6a.js} +5 -5
  132. package/dist/collection/collection-manifest.json +127 -123
  133. package/dist/collection/components/beta/gux-announce/gux-announce.js +7 -5
  134. package/dist/collection/components/beta/gux-announce/tests/gux-announce.e2e.js +18 -0
  135. package/dist/collection/components/beta/gux-announce/tests/gux-announce.spec.js +19 -0
  136. package/dist/collection/components/beta/gux-calendar-beta/components/single/gux-calendar.css +14 -15
  137. package/dist/collection/components/beta/gux-calendar-beta/components/single/gux-calendar.js +9 -9
  138. package/dist/collection/components/beta/gux-calendar-beta/services/calendar.service.js +1 -1
  139. package/dist/collection/components/beta/gux-calendar-beta/tests/gux-calendar.e2e.js +202 -0
  140. package/dist/collection/components/beta/gux-calendar-beta/tests/gux-calendar.spec.js +19 -0
  141. package/dist/collection/components/beta/gux-date/gux-date.js +9 -7
  142. package/dist/collection/components/beta/gux-date/tests/gux-date.e2e.js +30 -0
  143. package/dist/collection/components/beta/gux-date/tests/gux-date.spec.js +30 -0
  144. package/dist/collection/components/beta/gux-date-time/gux-date-time.js +9 -7
  145. package/dist/collection/components/beta/gux-date-time/tests/gux-date-time.e2e.js +30 -0
  146. package/dist/collection/components/beta/gux-date-time/tests/gux-date-time.spec.js +30 -0
  147. package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-calendar.css +7 -7
  148. package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-calendar.js +18 -12
  149. package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list-item/gux-month-list-item.css +3 -3
  150. package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list-item/gux-month-list-item.js +4 -3
  151. package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-list/gux-month-list.js +4 -3
  152. package/dist/collection/components/beta/gux-month-picker/gux-month-picker.css +5 -5
  153. package/dist/collection/components/beta/gux-month-picker/gux-month-picker.js +14 -11
  154. package/dist/collection/components/beta/gux-month-picker/tests/gux-month-picker.e2e.js +18 -0
  155. package/dist/collection/components/beta/gux-month-picker/tests/gux-month-picker.spec.js +27 -0
  156. package/dist/collection/components/beta/gux-phone-input/components/gux-region-icon/gux-region-icon.js +3 -3
  157. package/dist/collection/components/beta/gux-phone-input/components/gux-region-icon/gux-region-select.service.js +1 -1
  158. package/dist/collection/components/beta/gux-phone-input/gux-phone-input.css +2 -45
  159. package/dist/collection/components/beta/gux-phone-input/gux-phone-input.js +12 -11
  160. package/dist/collection/components/beta/gux-phone-input/services/region-map.service.js +1 -1
  161. package/dist/collection/components/beta/gux-phone-input/tests/gux-phone-input.e2e.js +88 -0
  162. package/dist/collection/components/beta/gux-screen-reader/gux-screen-reader.js +2 -2
  163. package/dist/collection/components/beta/gux-screen-reader/tests/gux-screen-reader.e2e.js +16 -0
  164. package/dist/collection/components/beta/gux-screen-reader/tests/gux-screen-reader.spec.js +17 -0
  165. package/dist/collection/components/beta/gux-segmented-control/gux-segmented-control-item/gux-segmented-control-item.css +18 -61
  166. package/dist/collection/components/beta/gux-segmented-control/gux-segmented-control-item/gux-segmented-control-item.js +4 -4
  167. package/dist/collection/components/beta/gux-segmented-control/gux-segmented-control.js +3 -3
  168. package/dist/collection/components/beta/gux-segmented-control/tests/gux-segmented-control.e2e.js +108 -0
  169. package/dist/collection/components/beta/gux-segmented-control/tests/gux-segmented-control.spec.js +126 -0
  170. package/dist/collection/components/beta/gux-time/gux-time.js +9 -7
  171. package/dist/collection/components/beta/gux-time/tests/gux-time.e2e.js +30 -0
  172. package/dist/collection/components/beta/gux-time/tests/gux-time.spec.js +30 -0
  173. package/dist/collection/components/beta/gux-time-zone-picker/gux-time-zone-picker.js +7 -7
  174. package/dist/collection/components/beta/gux-time-zone-picker/tests/gux-time-zone-picker.e2e.js +53 -0
  175. package/dist/collection/components/beta/gux-time-zone-picker/tests/gux-time-zone-picker.spec.js +15 -0
  176. package/dist/collection/components/legacy/gux-action-toast-legacy/gux-action-toast.css +1 -44
  177. package/dist/collection/components/legacy/gux-action-toast-legacy/gux-action-toast.js +2 -2
  178. package/dist/collection/components/legacy/gux-action-toast-legacy/tests/gux-action-toast.e2e.js +26 -0
  179. package/dist/collection/components/legacy/gux-action-toast-legacy/tests/gux-action-toast.spec.js +28 -0
  180. package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/dropdown-option/gux-dropdown-option.js +5 -3
  181. package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/dropdown-option/tests/gux-dropdown-option.spec.js +47 -0
  182. package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/gux-advanced-dropdown.css +1 -52
  183. package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/gux-advanced-dropdown.js +11 -9
  184. package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/tests/gux-advanced-dropdown.e2e.js +149 -0
  185. package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/tests/gux-advanced-dropdown.spec.js +17 -0
  186. package/dist/collection/components/legacy/gux-disclosure-button-legacy/gux-disclosure-button.js +7 -6
  187. package/dist/collection/components/legacy/gux-disclosure-button-legacy/tests/gux-disclosure-button.e2e.js +80 -0
  188. package/dist/collection/components/legacy/gux-disclosure-button-legacy/tests/gux-disclosure-button.spec.js +82 -0
  189. package/dist/collection/components/legacy/gux-notification-toast-legacy/gux-notification-toast.css +1 -44
  190. package/dist/collection/components/legacy/gux-notification-toast-legacy/gux-notification-toast.js +4 -3
  191. package/dist/collection/components/legacy/gux-notification-toast-legacy/tests/gux-notification-toast.e2e.js +109 -0
  192. package/dist/collection/components/legacy/gux-notification-toast-legacy/tests/gux-notification-toast.spec.js +99 -0
  193. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-buttons-legacy/gux-pagination-buttons-legacy.css +14 -14
  194. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-buttons-legacy/gux-pagination-buttons.js +6 -5
  195. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-buttons-legacy/tests/gux-pagination-buttons.service.spec.js +138 -0
  196. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-buttons-legacy/tests/gux-pagination-buttons.spec.js +39 -0
  197. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-item-counts-legacy/gux-pagination-item-counts-legacy.css +3 -3
  198. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-item-counts-legacy/gux-pagination-item-counts.js +3 -3
  199. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-item-counts-legacy/tests/gux-pagination-item-counts.spec.js +30 -0
  200. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-items-per-page-legacy/gux-pagination-items-per-page-legacy.css +3 -3
  201. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-items-per-page-legacy/gux-pagination-items-per-page.js +5 -4
  202. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-items-per-page-legacy/tests/gux-pagination-items-per-page.spec.js +33 -0
  203. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination-legacy.css +1 -1
  204. package/dist/collection/components/legacy/gux-pagination-legacy/gux-pagination.js +8 -5
  205. package/dist/collection/components/legacy/gux-pagination-legacy/tests/gux-pagination.e2e.js +53 -0
  206. package/dist/collection/components/legacy/gux-pagination-legacy/tests/gux-pagination.spec.js +65 -0
  207. package/dist/collection/components/legacy/gux-simple-toast-legacy/gux-simple-toast.js +4 -3
  208. package/dist/collection/components/legacy/gux-simple-toast-legacy/tests/gux-simple-toast.e2e.js +103 -0
  209. package/dist/collection/components/legacy/gux-simple-toast-legacy/tests/gux-simple-toast.spec.js +93 -0
  210. package/dist/collection/components/legacy/gux-switch-legacy/gux-switch-item/gux-switch-item.css +0 -43
  211. package/dist/collection/components/legacy/gux-switch-legacy/gux-switch-item/gux-switch-item.js +1 -1
  212. package/dist/collection/components/legacy/gux-switch-legacy/gux-switch.js +5 -4
  213. package/dist/collection/components/legacy/gux-switch-legacy/tests/gux-switch.e2e.js +87 -0
  214. package/dist/collection/components/legacy/gux-switch-legacy/tests/gux-switch.spec.js +116 -0
  215. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced/gux-tab-advanced.css +117 -0
  216. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced/gux-tab-advanced.js +320 -0
  217. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced-list/gux-tab-advanced-list.css +127 -0
  218. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced-list/gux-tab-advanced-list.js +624 -0
  219. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced-panel/gux-tab-advanced-panel.css +7 -0
  220. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced-panel/gux-tab-advanced-panel.js +107 -0
  221. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tabs-advanced.css +3 -0
  222. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/gux-tabs-advanced.js +148 -0
  223. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/tests/gux-tabs-advanced.e2e.js +216 -0
  224. package/dist/collection/components/legacy/gux-tabs-advanced-legacy/tests/gux-tabs-advanced.spec.js +73 -0
  225. package/dist/collection/components/stable/gux-accordion/gux-accordion-section/gux-accordion-section.css +4 -94
  226. package/dist/collection/components/stable/gux-accordion/gux-accordion-section/gux-accordion-section.js +7 -5
  227. package/dist/collection/components/stable/gux-accordion/gux-accordion.js +2 -2
  228. package/dist/collection/components/stable/gux-accordion/tests/gux-accordion.e2e.js +46 -0
  229. package/dist/collection/components/stable/gux-accordion/tests/gux-accordion.spec.js +52 -0
  230. package/dist/collection/components/stable/gux-action-button/gux-action-button.css +1 -1
  231. package/dist/collection/components/stable/gux-action-button/gux-action-button.js +12 -10
  232. package/dist/collection/components/stable/gux-action-button/tests/gux-action-button.e2e.js +93 -0
  233. package/dist/collection/components/stable/gux-action-button/tests/gux-action-button.spec.js +96 -0
  234. package/dist/collection/components/stable/gux-alert/gux-inline-alert.css +2 -2
  235. package/dist/collection/components/stable/gux-alert/gux-inline-alert.js +6 -5
  236. package/dist/collection/components/stable/gux-alert/tests/gux-inline-alert.e2e.js +22 -0
  237. package/dist/collection/components/stable/gux-alert/tests/gux-inline-alert.spec.js +23 -0
  238. package/dist/collection/components/stable/gux-badge/gux-badge.css +3 -3
  239. package/dist/collection/components/stable/gux-badge/gux-badge.js +6 -5
  240. package/dist/collection/components/stable/gux-badge/tests/gux-badge.e2e.js +38 -0
  241. package/dist/collection/components/stable/gux-badge/tests/gux-badge.spec.js +39 -0
  242. package/dist/collection/components/stable/gux-blank-state/gux-blank-state.css +9 -9
  243. package/dist/collection/components/stable/gux-blank-state/gux-blank-state.js +2 -2
  244. package/dist/collection/components/stable/gux-blank-state/tests/gux-blank-state.e2e.js +19 -0
  245. package/dist/collection/components/stable/gux-blank-state/tests/gux-blank-state.spec.js +26 -0
  246. package/dist/collection/components/stable/gux-breadcrumbs/breadcrumb-item/gux-breadcrumb-item.css +5 -5
  247. package/dist/collection/components/stable/gux-breadcrumbs/breadcrumb-item/gux-breadcrumb-item.js +2 -2
  248. package/dist/collection/components/stable/gux-breadcrumbs/gux-breadcrumbs.css +3 -3
  249. package/dist/collection/components/stable/gux-breadcrumbs/gux-breadcrumbs.js +6 -5
  250. package/dist/collection/components/stable/gux-breadcrumbs/tests/gux-breadcrumbs.e2e.js +48 -0
  251. package/dist/collection/components/stable/gux-breadcrumbs/tests/gux-breadcrumbs.spec.js +91 -0
  252. package/dist/collection/components/stable/gux-button/gux-button.css +9 -50
  253. package/dist/collection/components/stable/gux-button/gux-button.js +6 -4
  254. package/dist/collection/components/stable/gux-button/tests/gux-button.e2e.js +131 -0
  255. package/dist/collection/components/stable/gux-button/tests/gux-button.spec.js +114 -0
  256. package/dist/collection/components/stable/gux-button-multi/gux-button-multi.css +1 -1
  257. package/dist/collection/components/stable/gux-button-multi/gux-button-multi.js +8 -7
  258. package/dist/collection/components/stable/gux-button-multi/tests/gux-button-multi.e2e.js +69 -0
  259. package/dist/collection/components/stable/gux-button-multi/tests/gux-button-multi.spec.js +16 -0
  260. package/dist/collection/components/stable/gux-button-slot/gux-button-slot.css +9 -50
  261. package/dist/collection/components/stable/gux-button-slot/gux-button-slot.js +5 -4
  262. package/dist/collection/components/stable/gux-button-slot/tests/gux-button-slot.e2e.js +206 -0
  263. package/dist/collection/components/stable/gux-button-slot/tests/gux-button-slot.spec.js +258 -0
  264. package/dist/collection/components/stable/gux-calendar/gux-calendar.css +13 -13
  265. package/dist/collection/components/stable/gux-calendar/gux-calendar.js +23 -15
  266. package/dist/collection/components/stable/gux-calendar/gux-calendar.service.js +1 -1
  267. package/dist/collection/components/stable/gux-calendar/tests/gux-calendar.e2e.js +45 -0
  268. package/dist/collection/components/stable/gux-calendar/tests/gux-calendar.methods.spec.js +233 -0
  269. package/dist/collection/components/stable/gux-calendar/tests/gux-calendar.service.spec.js +160 -0
  270. package/dist/collection/components/stable/gux-calendar/tests/gux-calendar.spec.js +31 -0
  271. package/dist/collection/components/stable/gux-card/gux-card.js +4 -3
  272. package/dist/collection/components/stable/gux-card/tests/gux-card.e2e.js +16 -0
  273. package/dist/collection/components/stable/gux-card/tests/gux-card.spec.js +17 -0
  274. package/dist/collection/components/stable/gux-column-manager/gux-column-manager-item/gux-column-manager-item.css +1 -54
  275. package/dist/collection/components/stable/gux-column-manager/gux-column-manager-item/gux-column-manager-item.js +13 -9
  276. package/dist/collection/components/stable/gux-column-manager/gux-column-manager-item/tests/gux-column-manager-item.service.spec.js +35 -0
  277. package/dist/collection/components/stable/gux-column-manager/gux-column-manager.js +7 -6
  278. package/dist/collection/components/stable/gux-column-manager/gux-column-manager.service.js +2 -2
  279. package/dist/collection/components/stable/gux-content-search/gux-content-search.css +46 -91
  280. package/dist/collection/components/stable/gux-content-search/gux-content-search.js +8 -7
  281. package/dist/collection/components/stable/gux-content-search/tests/gux-content-search.e2e.js +542 -0
  282. package/dist/collection/components/stable/gux-content-search/tests/gux-content-search.spec.js +202 -0
  283. package/dist/collection/components/stable/gux-context-menu/gux-context-menu.css +2 -2
  284. package/dist/collection/components/stable/gux-context-menu/gux-context-menu.js +8 -8
  285. package/dist/collection/components/stable/gux-context-menu/tests/gux-context-menu.e2e.js +78 -0
  286. package/dist/collection/components/stable/gux-context-menu/tests/gux-context-menu.spec.js +44 -0
  287. package/dist/collection/components/stable/gux-copy-to-clipboard/gux-copy-to-clipboard.css +3 -3
  288. package/dist/collection/components/stable/gux-copy-to-clipboard/gux-copy-to-clipboard.js +6 -6
  289. package/dist/collection/components/stable/gux-copy-to-clipboard/tests/gux-copy-to-clipboard.e2e.js +23 -0
  290. package/dist/collection/components/stable/gux-copy-to-clipboard/tests/gux-copy-to-clipboard.spec.js +46 -0
  291. package/dist/collection/components/stable/gux-datepicker/gux-datepicker.css +3 -42
  292. package/dist/collection/components/stable/gux-datepicker/gux-datepicker.js +14 -12
  293. package/dist/collection/components/stable/gux-datepicker/tests/gux-datepicker.e2e.js +112 -0
  294. package/dist/collection/components/stable/gux-datepicker/tests/gux-datepicker.service.spec.js +237 -0
  295. package/dist/collection/components/stable/gux-datepicker/tests/gux-datepicker.spec.js +36 -0
  296. package/dist/collection/components/stable/gux-dismiss-button/gux-dismiss-button.css +5 -5
  297. package/dist/collection/components/stable/gux-dismiss-button/gux-dismiss-button.js +6 -5
  298. package/dist/collection/components/stable/gux-dismiss-button/tests/gux-dismiss-button.e2e.js +20 -0
  299. package/dist/collection/components/stable/gux-dismiss-button/tests/gux-dismiss-button.spec.js +22 -0
  300. package/dist/collection/components/stable/gux-dropdown/gux-dropdown.css +3 -3
  301. package/dist/collection/components/stable/gux-dropdown/gux-dropdown.js +13 -12
  302. package/dist/collection/components/stable/gux-dropdown/tests/gux-dropdown.e2e.js +190 -0
  303. package/dist/collection/components/stable/gux-dropdown/tests/gux-dropdown.spec.js +65 -0
  304. package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.css +1 -42
  305. package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.js +3 -3
  306. package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi.css +5 -48
  307. package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi.js +14 -12
  308. package/dist/collection/components/stable/gux-dropdown-multi/tests/gux-dropdown-multi.e2e.js +309 -0
  309. package/dist/collection/components/stable/gux-dropdown-multi/tests/gux-dropdown-multi.spec.js +24 -0
  310. package/dist/collection/components/stable/gux-flyout-menu/gux-flyout-menu.css +2 -43
  311. package/dist/collection/components/stable/gux-flyout-menu/gux-flyout-menu.js +5 -5
  312. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu-option/gux-menu-option.js +4 -3
  313. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu.js +1 -1
  314. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.js +6 -5
  315. package/dist/collection/components/stable/gux-flyout-menu/tests/gux-flyout-menu.e2e.js +71 -0
  316. package/dist/collection/components/stable/gux-flyout-menu/tests/gux-flyout-menu.spec.js +52 -0
  317. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.css +1 -2
  318. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.js +9 -9
  319. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/tests/gux-form-field-checkbox.e2e.js +93 -0
  320. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/tests/gux-form-field-checkbox.spec.js +64 -0
  321. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.css +4 -86
  322. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.js +12 -11
  323. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/tests/gux-form-field-color.e2e.js +83 -0
  324. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/tests/gux-form-field-color.spec.js +65 -0
  325. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.css +2 -45
  326. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.js +14 -13
  327. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/tests/gux-form-field-dropdown.e2e.js +196 -0
  328. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/tests/gux-form-field-dropdown.spec.js +188 -0
  329. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.css +5 -87
  330. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.js +18 -16
  331. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/tests/gux-form-field-number.e2e.js +110 -0
  332. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/tests/gux-form-field-number.spec.js +85 -0
  333. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-phone/gux-form-field-phone.css +2 -45
  334. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-phone/gux-form-field-phone.js +15 -14
  335. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.css +27 -16
  336. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.js +9 -9
  337. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/tests/gux-form-field-radio.e2e.js +101 -0
  338. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/tests/gux-form-field-radio.spec.js +62 -0
  339. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.css +16 -60
  340. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.js +12 -11
  341. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.css +6 -88
  342. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.js +14 -12
  343. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/tests/gux-form-field-search.e2e.js +83 -0
  344. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/tests/gux-form-field-search.spec.js +65 -0
  345. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.css +5 -48
  346. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.js +12 -11
  347. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/tests/gux-form-field-select.e2e.js +95 -0
  348. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/tests/gux-form-field-select.spec.js +80 -0
  349. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.css +9 -91
  350. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.js +14 -12
  351. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/tests/gux-form-field-text-like.e2e.js +171 -0
  352. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/tests/gux-form-field-text-like.spec.js +125 -0
  353. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.css +5 -87
  354. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.js +14 -12
  355. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/tests/gux-form-field-textarea.e2e.js +104 -0
  356. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/tests/gux-form-field-textarea.spec.js +79 -0
  357. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/gux-form-field-time-picker.css +2 -45
  358. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/gux-form-field-time-picker.js +12 -11
  359. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/tests/gux-form-field-time-picker.e2e.js +83 -0
  360. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/tests/gux-form-field-time-picker.spec.js +66 -0
  361. package/dist/collection/components/stable/gux-form-field/functional-components/functional-components.js +6 -6
  362. package/dist/collection/components/stable/gux-form-field/functional-components/gux-form-field-container/gux-form-field-container.js +1 -1
  363. package/dist/collection/components/stable/gux-form-field/functional-components/gux-form-field-error/gux-form-field-error.js +1 -1
  364. package/dist/collection/components/stable/gux-form-field/functional-components/gux-form-field-fieldset-container/gux-form-field-fieldset-container.js +1 -1
  365. package/dist/collection/components/stable/gux-form-field/functional-components/gux-form-field-help/gux-form-field-help.js +1 -1
  366. package/dist/collection/components/stable/gux-form-field/functional-components/gux-form-field-label/gux-form-field-label.js +1 -1
  367. package/dist/collection/components/stable/gux-form-field/functional-components/gux-form-field-legend-label/gux-form-field-legend-label.js +1 -1
  368. package/dist/collection/components/stable/gux-form-field/gux-form-field.service.js +4 -4
  369. package/dist/collection/components/stable/gux-form-field/helper-components/gux-form-field-input-clear-button/gux-form-field-input-clear-button.css +1 -40
  370. package/dist/collection/components/stable/gux-form-field/helper-components/gux-form-field-input-clear-button/gux-form-field-input-clear-button.js +4 -4
  371. package/dist/collection/components/stable/gux-form-field/tests/gux-form-field.service.spec.js +19 -0
  372. package/dist/collection/components/stable/gux-icon/gux-icon.js +7 -6
  373. package/dist/collection/components/stable/gux-icon/gux-icon.service.js +1 -1
  374. package/dist/collection/components/stable/gux-icon/icons/custom/face-smile-hearts-regular.svg +1 -0
  375. package/dist/collection/components/stable/gux-icon/tests/gux-icon.e2e.js +11 -0
  376. package/dist/collection/components/stable/gux-icon/tests/gux-icon.service.spec.js +22 -0
  377. package/dist/collection/components/stable/gux-icon/tests/gux-icon.spec.js +6 -0
  378. package/dist/collection/components/stable/gux-list/gux-list-divider/gux-list-divider.js +1 -1
  379. package/dist/collection/components/stable/gux-list/gux-list-divider/tests/gux-list-divider.spec.js +22 -0
  380. package/dist/collection/components/stable/gux-list/gux-list-item/gux-list-item.css +9 -9
  381. package/dist/collection/components/stable/gux-list/gux-list-item/gux-list-item.js +2 -2
  382. package/dist/collection/components/stable/gux-list/gux-list-item/tests/gux-list-item.spec.js +22 -0
  383. package/dist/collection/components/stable/gux-list/gux-list.js +11 -7
  384. package/dist/collection/components/stable/gux-list/tests/gux-list.e2e.js +20 -0
  385. package/dist/collection/components/stable/gux-list/tests/gux-list.spec.js +23 -0
  386. package/dist/collection/components/stable/gux-listbox/gux-listbox.css +2 -2
  387. package/dist/collection/components/stable/gux-listbox/gux-listbox.js +12 -10
  388. package/dist/collection/components/stable/gux-listbox/options/gux-option/gux-option.css +7 -7
  389. package/dist/collection/components/stable/gux-listbox/options/gux-option/gux-option.js +2 -2
  390. package/dist/collection/components/stable/gux-listbox/options/gux-option-icon/gux-option-icon.css +7 -7
  391. package/dist/collection/components/stable/gux-listbox/options/gux-option-icon/gux-option-icon.js +2 -2
  392. package/dist/collection/components/stable/gux-listbox-multi/gux-create-option/gux-create-option.css +8 -8
  393. package/dist/collection/components/stable/gux-listbox-multi/gux-create-option/gux-create-option.js +6 -5
  394. package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.css +1 -1
  395. package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.js +12 -10
  396. package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.css +4 -4
  397. package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.js +4 -4
  398. package/dist/collection/components/stable/gux-loading-message/gux-loading-message.css +6 -6
  399. package/dist/collection/components/stable/gux-loading-message/gux-loading-message.js +2 -2
  400. package/dist/collection/components/stable/gux-loading-message/tests/gux-loading-message.e2e.js +14 -0
  401. package/dist/collection/components/stable/gux-loading-message/tests/gux-loading-message.spec.js +27 -0
  402. package/dist/collection/components/stable/gux-modal/gux-modal.css +14 -57
  403. package/dist/collection/components/stable/gux-modal/gux-modal.js +5 -4
  404. package/dist/collection/components/stable/gux-modal/tests/gux-modal.e2e.js +300 -0
  405. package/dist/collection/components/stable/gux-modal/tests/gux-modal.spec.js +200 -0
  406. package/dist/collection/components/stable/gux-page-loading-spinner/gux-page-loading-spinner.js +2 -2
  407. package/dist/collection/components/stable/gux-page-loading-spinner/tests/gux-page-loading-spinner.e2e.js +33 -0
  408. package/dist/collection/components/stable/gux-page-loading-spinner/tests/gux-page-loading-spinner.spec.js +12 -0
  409. package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.css +8 -8
  410. package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.js +7 -6
  411. package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.css +1 -1
  412. package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.js +6 -6
  413. package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/tests/gux-pagination-buttons.service.spec.js +129 -0
  414. package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/tests/gux-pagination-buttons.spec.js +32 -0
  415. package/dist/collection/components/stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.css +3 -3
  416. package/dist/collection/components/stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.js +3 -3
  417. package/dist/collection/components/stable/gux-pagination/gux-pagination-item-counts/tests/gux-pagination-item-counts.spec.js +30 -0
  418. package/dist/collection/components/stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.css +3 -3
  419. package/dist/collection/components/stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.js +5 -4
  420. package/dist/collection/components/stable/gux-pagination/gux-pagination-items-per-page/tests/gux-pagination-items-per-page.spec.js +37 -0
  421. package/dist/collection/components/stable/gux-pagination/gux-pagination.css +1 -1
  422. package/dist/collection/components/stable/gux-pagination/gux-pagination.js +9 -6
  423. package/dist/collection/components/stable/gux-pagination/tests/gux-pagination.e2e.js +97 -0
  424. package/dist/collection/components/stable/gux-pagination/tests/gux-pagination.spec.js +116 -0
  425. package/dist/collection/components/stable/gux-pagination-cursor/gux-pagination-cursor.css +6 -6
  426. package/dist/collection/components/stable/gux-pagination-cursor/gux-pagination-cursor.js +8 -6
  427. package/dist/collection/components/stable/gux-pagination-cursor/tests/gux-pagination-cursor.e2e.js +66 -0
  428. package/dist/collection/components/stable/gux-pagination-cursor/tests/gux-pagination-cursor.spec.js +67 -0
  429. package/dist/collection/components/stable/gux-popover/gux-popover.css +6 -6
  430. package/dist/collection/components/stable/gux-popover/gux-popover.js +8 -7
  431. package/dist/collection/components/stable/gux-popover/tests/gux-popover.e2e.js +60 -0
  432. package/dist/collection/components/stable/gux-popover/tests/gux-popover.spec.js +54 -0
  433. package/dist/collection/components/stable/gux-popover-list/gux-popover-list.css +1 -1
  434. package/dist/collection/components/stable/gux-popover-list/gux-popover-list.js +7 -6
  435. package/dist/collection/components/stable/gux-popover-list/tests/gux-popover-list.e2e.js +59 -0
  436. package/dist/collection/components/stable/gux-popover-list/tests/gux-popover-list.spec.js +53 -0
  437. package/dist/collection/components/stable/gux-popup/gux-popup.css +1 -1
  438. package/dist/collection/components/stable/gux-popup/gux-popup.js +2 -2
  439. package/dist/collection/components/stable/gux-popup/tests/gux-popup.e2e.js +29 -0
  440. package/dist/collection/components/stable/gux-popup/tests/gux-popup.spec.js +41 -0
  441. package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.css +31 -31
  442. package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.functional.js +2 -2
  443. package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.js +7 -6
  444. package/dist/collection/components/stable/gux-radial-loading/tests/gux-radial-loading.e2e.js +33 -0
  445. package/dist/collection/components/stable/gux-radial-loading/tests/gux-radial-loading.spec.js +33 -0
  446. package/dist/collection/components/stable/gux-radial-progress/gux-radial-progress.css +3 -3
  447. package/dist/collection/components/stable/gux-radial-progress/gux-radial-progress.functional.js +2 -2
  448. package/dist/collection/components/stable/gux-radial-progress/gux-radial-progress.js +5 -5
  449. package/dist/collection/components/stable/gux-radial-progress/tests/gux-radial-progress.e2e.js +58 -0
  450. package/dist/collection/components/stable/gux-radial-progress/tests/gux-radial-progress.service.spec.js +36 -0
  451. package/dist/collection/components/stable/gux-radial-progress/tests/gux-radial-progress.spec.js +61 -0
  452. package/dist/collection/components/stable/gux-rating/gux-rating.css +2 -2
  453. package/dist/collection/components/stable/gux-rating/gux-rating.js +5 -5
  454. package/dist/collection/components/stable/gux-rating/tests/gux-rating.e2e.js +208 -0
  455. package/dist/collection/components/stable/gux-rating/tests/gux-rating.spec.js +40 -0
  456. package/dist/collection/components/stable/gux-skip-navigation-list/gux-skip-navigation-item/gux-skip-navigation-item.js +1 -1
  457. package/dist/collection/components/stable/gux-skip-navigation-list/gux-skip-navigation-list.js +4 -4
  458. package/dist/collection/components/stable/gux-skip-navigation-list/tests/gux-skip-navigation-list.e2e.js +24 -0
  459. package/dist/collection/components/stable/gux-skip-navigation-list/tests/gux-skip-navigation-list.spec.js +29 -0
  460. package/dist/collection/components/stable/gux-table/gux-all-row-select/gux-all-row-select.js +6 -5
  461. package/dist/collection/components/stable/gux-table/gux-all-row-select/tests/gux-all-row-select.spec.js +11 -0
  462. package/dist/collection/components/stable/gux-table/gux-row-select/gux-row-select.js +4 -4
  463. package/dist/collection/components/stable/gux-table/gux-row-select/tests/gux-row-select.spec.js +11 -0
  464. package/dist/collection/components/stable/gux-table/gux-sort-control/gux-sort-control.css +1 -1
  465. package/dist/collection/components/stable/gux-table/gux-sort-control/gux-sort-control.js +8 -7
  466. package/dist/collection/components/stable/gux-table/gux-sort-control/tests/gux-sort-control.e2e.js +56 -0
  467. package/dist/collection/components/stable/gux-table/gux-sort-control/tests/gux-sort-control.spec.js +48 -0
  468. package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-menu.css +3 -42
  469. package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-menu.js +6 -6
  470. package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-popover/gux-table-header-popover.js +4 -4
  471. package/dist/collection/components/stable/gux-table/gux-table-select-menu/tests/gux-table-select-menu.spec.js +24 -0
  472. package/dist/collection/components/stable/gux-table/gux-table.css +1 -44
  473. package/dist/collection/components/stable/gux-table/gux-table.js +14 -10
  474. package/dist/collection/components/stable/gux-table/tests/gux-table.e2e.js +540 -0
  475. package/dist/collection/components/stable/gux-table/tests/gux-table.spec.js +32 -0
  476. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-action/gux-table-toolbar-action.js +9 -7
  477. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-action/tests/gux-table-toolbar-action.e2e.js +53 -0
  478. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-action/tests/gux-table-toolbar-action.spec.js +54 -0
  479. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-custom-action/gux-table-toolbar-custom-action.js +5 -4
  480. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-custom-action/tests/gux-table-toolbar-custom-action.e2e.js +33 -0
  481. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-custom-action/tests/gux-table-toolbar-custom-action.spec.js +34 -0
  482. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-menu-button/gux-table-toolbar-menu-button.js +6 -6
  483. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar.js +7 -7
  484. package/dist/collection/components/stable/gux-table-toolbar/tests/gux-table-toolbar.e2e.js +46 -0
  485. package/dist/collection/components/stable/gux-table-toolbar/tests/gux-table-toolbar.spec.js +63 -0
  486. package/dist/collection/components/stable/gux-tabs/gux-tab/gux-tab.js +7 -4
  487. package/dist/collection/components/stable/gux-tabs/gux-tab/tests/gux-tab.e2e.js +15 -0
  488. package/dist/collection/components/stable/gux-tabs/gux-tab/tests/gux-tab.spec.js +16 -0
  489. package/dist/collection/components/stable/gux-tabs/gux-tab-list/gux-tab-list.css +0 -1
  490. package/dist/collection/components/stable/gux-tabs/gux-tab-list/gux-tab-list.js +7 -6
  491. package/dist/collection/components/stable/gux-tabs/gux-tab-list/tests/gux-tab-list.e2e.js +15 -0
  492. package/dist/collection/components/stable/gux-tabs/gux-tab-list/tests/gux-tab-list.spec.js +16 -0
  493. package/dist/collection/components/stable/gux-tabs/gux-tab-panel/gux-tab-panel.css +1 -42
  494. package/dist/collection/components/stable/gux-tabs/gux-tab-panel/gux-tab-panel.js +3 -2
  495. package/dist/collection/components/stable/gux-tabs/gux-tab-panel/tests/gux-tab-panel.e2e.js +15 -0
  496. package/dist/collection/components/stable/gux-tabs/gux-tab-panel/tests/gux-tab-panel.spec.js +16 -0
  497. package/dist/collection/components/stable/gux-tabs/gux-tabs.js +8 -5
  498. package/dist/collection/components/stable/gux-tabs/tests/gux-tabs.e2e.js +141 -0
  499. package/dist/collection/components/stable/gux-tabs/tests/gux-tabs.spec.js +57 -0
  500. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced/gux-tab-advanced.js +12 -9
  501. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.css +1 -85
  502. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.js +9 -8
  503. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-panel/gux-tab-advanced-panel.css +1 -42
  504. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-panel/gux-tab-advanced-panel.js +3 -2
  505. package/dist/collection/components/stable/gux-tabs-advanced/gux-tabs-advanced.js +4 -3
  506. package/dist/collection/components/stable/gux-tabs-advanced/tests/gux-tabs-advanced.e2e.js +217 -0
  507. package/dist/collection/components/stable/gux-tabs-advanced/tests/gux-tabs-advanced.spec.js +73 -0
  508. package/dist/collection/components/stable/gux-tag/gux-tag.css +22 -25
  509. package/dist/collection/components/stable/gux-tag/gux-tag.js +6 -5
  510. package/dist/collection/components/stable/gux-tag/tests/gux-tag.e2e.js +135 -0
  511. package/dist/collection/components/stable/gux-tag/tests/gux-tag.spec.js +130 -0
  512. package/dist/collection/components/stable/gux-text-highlight/gux-text-highlight.js +5 -4
  513. package/dist/collection/components/stable/gux-text-highlight/tests/gux-text-highlight.e2e.js +147 -0
  514. package/dist/collection/components/stable/gux-text-highlight/tests/gux-text-hightlight.spec.js +149 -0
  515. package/dist/collection/components/stable/gux-time-picker/gux-time-picker.css +7 -7
  516. package/dist/collection/components/stable/gux-time-picker/gux-time-picker.js +16 -12
  517. package/dist/collection/components/stable/gux-time-picker/gux-time-picker.service.js +1 -1
  518. package/dist/collection/components/stable/gux-time-picker/tests/gux-time-picker.e2e.js +41 -0
  519. package/dist/collection/components/stable/gux-time-picker/tests/gux-time-picker.service.spec.js +698 -0
  520. package/dist/collection/components/stable/gux-time-picker/tests/gux-time-picker.spec.js +14 -0
  521. package/dist/collection/components/stable/gux-toast/gux-toast.css +5 -5
  522. package/dist/collection/components/stable/gux-toast/gux-toast.js +5 -4
  523. package/dist/collection/components/stable/gux-toast/tests/gux-toast.e2e.js +121 -0
  524. package/dist/collection/components/stable/gux-toast/tests/gux-toast.spec.js +111 -0
  525. package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.css +1 -42
  526. package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.js +1 -1
  527. package/dist/collection/components/stable/gux-toggle/gux-toggle.js +7 -6
  528. package/dist/collection/components/stable/gux-toggle/tests/gux-toggle.e2e.js +147 -0
  529. package/dist/collection/components/stable/gux-toggle/tests/gux-toggle.spec.js +126 -0
  530. package/dist/collection/components/stable/gux-tooltip/gux-tooltip.css +12 -12
  531. package/dist/collection/components/stable/gux-tooltip/gux-tooltip.js +14 -10
  532. package/dist/collection/components/stable/gux-tooltip/tests/gux-tooltip.e2e.js +33 -0
  533. package/dist/collection/components/stable/gux-tooltip/tests/gux-tooltip.spec.js +55 -0
  534. package/dist/collection/components/stable/gux-tooltip-title/gux-tooltip-title.js +8 -6
  535. package/dist/collection/components/stable/gux-truncate/gux-truncate.js +8 -6
  536. package/dist/collection/components/stable/gux-truncate/tests/gux-truncate.e2e.js +32 -0
  537. package/dist/collection/components/stable/gux-truncate/tests/gux-truncate.spec.js +27 -0
  538. package/dist/collection/i18n/DateTimeFormatter.js +1 -1
  539. package/dist/collection/i18n/fetchResources.js +1 -1
  540. package/dist/collection/i18n/index.js +5 -5
  541. package/dist/collection/test/e2eTestUtils.js +2 -2
  542. package/dist/collection/test/specTestUtils.js +8 -0
  543. package/dist/collection/utils/date/from-iso-time-string.spec.js +13 -0
  544. package/dist/collection/utils/date/get-valid-timezone.js +1 -1
  545. package/dist/collection/utils/date/get-valid-timezone.spec.js +38 -0
  546. package/dist/collection/utils/date/iso-dates.spec.js +170 -0
  547. package/dist/collection/utils/date/year-month-values.spec.js +81 -0
  548. package/dist/collection/utils/decorator/on-click-outside.js +1 -1
  549. package/dist/collection/utils/decorator/on-mutation.js +1 -1
  550. package/dist/collection/utils/decorator/on-resize.js +1 -1
  551. package/dist/collection/utils/dom/event-is-from.spec.js +29 -0
  552. package/dist/collection/utils/dom/manipulate-elements-classes.spec.js +104 -0
  553. package/dist/collection/utils/dom/on-input-disabled-state-change.js +1 -1
  554. package/dist/collection/utils/dom/random-html-id.spec.js +14 -0
  555. package/dist/collection/utils/dom/set-input-value.js +1 -1
  556. package/dist/collection/utils/dom/when-event-is-from.spec.js +37 -0
  557. package/dist/collection/utils/string/search.spec.js +40 -0
  558. package/dist/collection/utils/tracking/usage.js +1 -1
  559. package/dist/collection/utils/tracking/usage.spec.js +121 -0
  560. package/dist/component-specs.json +10 -0
  561. package/dist/deploy-info.json +3 -3
  562. package/dist/esm/en-bf740e9b.js +22 -0
  563. package/dist/esm/genesys-webcomponents.js +4 -7
  564. package/dist/esm/{get-valid-timezone-4b39f118.js → get-valid-timezone-3781bfa2.js} +1 -1
  565. package/dist/esm/gux-accordion-section.entry.js +4 -4
  566. package/dist/esm/gux-accordion.entry.js +2 -2
  567. package/dist/esm/gux-action-button.entry.js +8 -8
  568. package/dist/esm/gux-action-toast-legacy.entry.js +3 -3
  569. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +8 -8
  570. package/dist/esm/gux-all-row-select.entry.js +5 -5
  571. package/dist/esm/gux-announce-beta.entry.js +3 -3
  572. package/dist/esm/gux-badge.entry.js +5 -5
  573. package/dist/esm/gux-blank-state.entry.js +3 -3
  574. package/dist/esm/gux-breadcrumb-item.entry.js +3 -3
  575. package/dist/esm/gux-breadcrumbs.entry.js +5 -5
  576. package/dist/esm/gux-button-multi.entry.js +6 -6
  577. package/dist/esm/gux-button-slot.entry.js +4 -4
  578. package/dist/esm/gux-button.entry.js +3 -3
  579. package/dist/esm/gux-calendar-beta.entry.js +9 -9
  580. package/dist/esm/gux-calendar.entry.js +8 -8
  581. package/dist/esm/gux-card.entry.js +2 -2
  582. package/dist/esm/gux-column-manager-item.entry.js +7 -7
  583. package/dist/esm/gux-column-manager.entry.js +7 -7
  584. package/dist/esm/{gux-column-manager.service-a9ea5c54.js → gux-column-manager.service-4f5bf4c4.js} +2 -2
  585. package/dist/esm/gux-content-search.entry.js +7 -7
  586. package/dist/esm/gux-context-menu.entry.js +9 -9
  587. package/dist/esm/gux-copy-to-clipboard.entry.js +7 -7
  588. package/dist/esm/gux-create-option.entry.js +5 -5
  589. package/dist/esm/gux-date-beta.entry.js +5 -5
  590. package/dist/esm/gux-date-time-beta.entry.js +5 -5
  591. package/dist/esm/gux-datepicker.entry.js +10 -10
  592. package/dist/esm/gux-disclosure-button-legacy.entry.js +5 -5
  593. package/dist/esm/gux-dismiss-button.entry.js +5 -5
  594. package/dist/esm/gux-dropdown-multi-tag.entry.js +4 -4
  595. package/dist/esm/gux-dropdown-multi.entry.js +11 -11
  596. package/dist/esm/gux-dropdown-option.entry.js +1 -1
  597. package/dist/esm/gux-dropdown_3.entry.js +15 -15
  598. package/dist/esm/gux-flyout-menu.entry.js +5 -5
  599. package/dist/esm/gux-form-field-checkbox.entry.js +10 -10
  600. package/dist/esm/gux-form-field-color.entry.js +13 -13
  601. package/dist/esm/{gux-form-field-container-0d93fc18.js → gux-form-field-container-0628b63c.js} +1 -1
  602. package/dist/esm/gux-form-field-dropdown.entry.js +15 -15
  603. package/dist/esm/{gux-form-field-fieldset-container-02a0becc.js → gux-form-field-fieldset-container-863690e1.js} +1 -1
  604. package/dist/esm/gux-form-field-input-clear-button.entry.js +5 -5
  605. package/dist/esm/gux-form-field-number_3.entry.js +23 -23
  606. package/dist/esm/gux-form-field-phone.entry.js +14 -14
  607. package/dist/esm/gux-form-field-radio.entry.js +11 -11
  608. package/dist/esm/gux-form-field-range.entry.js +13 -13
  609. package/dist/esm/gux-form-field-search.entry.js +13 -13
  610. package/dist/esm/gux-form-field-select.entry.js +13 -13
  611. package/dist/esm/gux-form-field-text-like.entry.js +13 -13
  612. package/dist/esm/gux-form-field-textarea.entry.js +13 -13
  613. package/dist/esm/gux-form-field-time-picker.entry.js +14 -14
  614. package/dist/esm/{gux-form-field.service-5f03e905.js → gux-form-field.service-1b918b11.js} +5 -5
  615. package/dist/esm/gux-icon.entry.js +3 -3
  616. package/dist/esm/gux-inline-alert.entry.js +5 -5
  617. package/dist/esm/gux-list-divider.entry.js +1 -1
  618. package/dist/esm/gux-list-item.entry.js +3 -3
  619. package/dist/esm/gux-list.entry.js +3 -3
  620. package/dist/esm/gux-listbox-multi.entry.js +9 -9
  621. package/dist/esm/gux-loading-message.entry.js +3 -3
  622. package/dist/esm/gux-menu-option.entry.js +2 -2
  623. package/dist/esm/gux-menu.entry.js +1 -1
  624. package/dist/esm/gux-modal.entry.js +4 -4
  625. package/dist/esm/gux-month-calendar.entry.js +7 -7
  626. package/dist/esm/gux-month-list_2.entry.js +4 -4
  627. package/dist/esm/gux-month-picker-beta.entry.js +9 -9
  628. package/dist/esm/gux-notification-toast-legacy.entry.js +3 -3
  629. package/dist/esm/gux-option-icon.entry.js +3 -3
  630. package/dist/esm/gux-option-multi.entry.js +5 -5
  631. package/dist/esm/gux-page-loading-spinner.entry.js +2 -2
  632. package/dist/esm/gux-pagination-buttons-legacy_3.entry.js +6 -6
  633. package/dist/esm/gux-pagination-buttons_3.entry.js +8 -8
  634. package/dist/esm/gux-pagination-cursor.entry.js +5 -5
  635. package/dist/esm/gux-pagination-legacy.entry.js +3 -3
  636. package/dist/esm/gux-pagination.entry.js +4 -4
  637. package/dist/esm/gux-phone-input-beta.entry.js +8 -8
  638. package/dist/esm/gux-popover-list.entry.js +6 -6
  639. package/dist/esm/gux-popup.entry.js +3 -3
  640. package/dist/esm/gux-radial-loading.entry.js +5 -5
  641. package/dist/esm/gux-radial-progress.entry.js +4 -4
  642. package/dist/esm/gux-rating.entry.js +6 -6
  643. package/dist/esm/gux-region-icon.entry.js +2 -2
  644. package/dist/esm/gux-row-select.entry.js +5 -5
  645. package/dist/esm/gux-screen-reader-beta.entry.js +2 -2
  646. package/dist/esm/gux-segmented-control-beta.entry.js +3 -3
  647. package/dist/esm/gux-segmented-control-item.entry.js +5 -5
  648. package/dist/esm/gux-simple-toast-legacy.entry.js +2 -2
  649. package/dist/esm/gux-skip-navigation-item.entry.js +1 -1
  650. package/dist/esm/gux-skip-navigation-list.entry.js +4 -4
  651. package/dist/esm/gux-sort-control.entry.js +7 -7
  652. package/dist/esm/gux-submenu.entry.js +4 -4
  653. package/dist/esm/gux-switch-item.entry.js +2 -2
  654. package/dist/esm/gux-switch-legacy.entry.js +3 -3
  655. package/dist/esm/gux-tab-advanced-legacy.entry.js +153 -0
  656. package/dist/esm/gux-tab-advanced-list-legacy.entry.js +466 -0
  657. package/dist/esm/gux-tab-advanced-list.entry.js +10 -3029
  658. package/dist/esm/gux-tab-advanced-panel-legacy.entry.js +30 -0
  659. package/dist/esm/gux-tab-advanced-panel.entry.js +2 -2
  660. package/dist/esm/gux-tab-advanced.entry.js +7 -7
  661. package/dist/esm/gux-tab-list.entry.js +6 -6
  662. package/dist/esm/gux-tab-panel.entry.js +2 -2
  663. package/dist/esm/gux-tab.entry.js +1 -1
  664. package/dist/esm/gux-table-select-menu.entry.js +8 -8
  665. package/dist/esm/gux-table-select-popover.entry.js +3 -3
  666. package/dist/esm/gux-table-toolbar-action.entry.js +5 -5
  667. package/dist/esm/gux-table-toolbar-custom-action.entry.js +3 -3
  668. package/dist/esm/gux-table-toolbar-menu-button.entry.js +6 -6
  669. package/dist/esm/gux-table-toolbar.entry.js +5 -5
  670. package/dist/esm/gux-table.entry.js +8 -8
  671. package/dist/esm/gux-tabs-advanced-legacy.entry.js +59 -0
  672. package/dist/esm/gux-tabs-advanced.entry.js +2 -2
  673. package/dist/esm/gux-tabs.entry.js +2 -2
  674. package/dist/esm/gux-tag.entry.js +5 -5
  675. package/dist/esm/gux-text-highlight.entry.js +2 -2
  676. package/dist/esm/gux-time-beta.entry.js +5 -5
  677. package/dist/esm/gux-time-picker.entry.js +8 -8
  678. package/dist/esm/gux-time-zone-picker-beta.entry.js +5 -5
  679. package/dist/esm/gux-toast.entry.js +4 -4
  680. package/dist/esm/gux-toggle-slider.entry.js +2 -2
  681. package/dist/esm/gux-toggle.entry.js +5 -5
  682. package/dist/esm/gux-tooltip-title.entry.js +4 -4
  683. package/dist/esm/gux-tooltip.entry.js +7 -7
  684. package/dist/esm/gux-truncate.entry.js +3 -3
  685. package/dist/esm/{index-0b66fe2c.js → index-a0eec33a.js} +175 -43
  686. package/dist/esm/{index-694d55cf.js → index-e5ccc024.js} +2 -2
  687. package/dist/esm/loader.js +4 -13
  688. package/dist/esm/{on-click-outside-bc432a79.js → on-click-outside-e696f632.js} +1 -1
  689. package/dist/esm/{on-mutation-8c8b2331.js → on-mutation-c1be3c74.js} +1 -1
  690. package/dist/esm/{on-resize-7177429a.js → on-resize-c9e31879.js} +1 -1
  691. package/dist/esm/sortable.esm-8c3d5856.js +3021 -0
  692. package/dist/esm/{usage-7c4316f3.js → usage-b9bc2c35.js} +5 -5
  693. package/dist/genesys-webcomponents/genesys-webcomponents.css +2 -2
  694. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  695. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
  696. package/dist/genesys-webcomponents/icons/custom/face-smile-hearts-regular.svg +1 -0
  697. package/dist/genesys-webcomponents/{p-4a0aae21.entry.js → p-001a4f6c.entry.js} +1 -1
  698. package/dist/genesys-webcomponents/{p-94465268.entry.js → p-004bad0d.entry.js} +1 -1
  699. package/dist/genesys-webcomponents/{p-535d0527.entry.js → p-0209a2e8.entry.js} +1 -1
  700. package/dist/genesys-webcomponents/{p-c5cc4499.entry.js → p-04882cf9.entry.js} +1 -1
  701. package/dist/genesys-webcomponents/{p-27b2e8f1.entry.js → p-050b14b0.entry.js} +1 -1
  702. package/dist/genesys-webcomponents/p-05102bf4.entry.js +1 -0
  703. package/dist/genesys-webcomponents/p-06186f07.entry.js +1 -0
  704. package/dist/genesys-webcomponents/p-0a7237d9.entry.js +1 -0
  705. package/dist/genesys-webcomponents/{p-8e9bfb5c.entry.js → p-0e1a0eef.entry.js} +1 -1
  706. package/dist/genesys-webcomponents/p-0f57803f.entry.js +1 -0
  707. package/dist/genesys-webcomponents/{p-793c5d4b.entry.js → p-0fd727e4.entry.js} +1 -1
  708. package/dist/genesys-webcomponents/{p-9b6ed146.entry.js → p-11a4917d.entry.js} +1 -1
  709. package/dist/genesys-webcomponents/p-121117b7.entry.js +1 -0
  710. package/dist/genesys-webcomponents/{p-2ac7ec81.entry.js → p-127514f4.entry.js} +1 -1
  711. package/dist/genesys-webcomponents/{p-8ebb78f7.entry.js → p-13bd1ddb.entry.js} +1 -1
  712. package/dist/genesys-webcomponents/p-1486d7ea.js +7 -0
  713. package/dist/genesys-webcomponents/{p-c985b725.entry.js → p-15e52200.entry.js} +1 -1
  714. package/dist/genesys-webcomponents/p-1b04a4a3.entry.js +1 -0
  715. package/dist/genesys-webcomponents/{p-81577261.entry.js → p-1c00c8b9.entry.js} +1 -1
  716. package/dist/genesys-webcomponents/{p-8b3bf42a.entry.js → p-25d372af.entry.js} +1 -1
  717. package/dist/genesys-webcomponents/p-29e65ca5.entry.js +1 -0
  718. package/dist/genesys-webcomponents/{p-afc8f510.entry.js → p-2a3350f2.entry.js} +1 -1
  719. package/dist/genesys-webcomponents/{p-0b31e700.entry.js → p-3006f950.entry.js} +1 -1
  720. package/dist/genesys-webcomponents/p-32a36f06.entry.js +1 -0
  721. package/dist/genesys-webcomponents/p-35fff0fe.entry.js +1 -0
  722. package/dist/genesys-webcomponents/{p-a0926d37.entry.js → p-3669d1d6.entry.js} +1 -1
  723. package/dist/genesys-webcomponents/p-377f63a0.entry.js +1 -0
  724. package/dist/genesys-webcomponents/{p-c686d5f6.entry.js → p-38c797a5.entry.js} +1 -1
  725. package/dist/genesys-webcomponents/{p-045a5c8d.entry.js → p-3b48aaaa.entry.js} +1 -1
  726. package/dist/genesys-webcomponents/{p-13dd4c6b.js → p-3d745319.js} +1 -1
  727. package/dist/genesys-webcomponents/p-3deec8d5.entry.js +1 -0
  728. package/dist/genesys-webcomponents/{p-c3d5a975.entry.js → p-3fe16f20.entry.js} +1 -1
  729. package/dist/genesys-webcomponents/{p-7c826e42.entry.js → p-4338a137.entry.js} +1 -1
  730. package/dist/genesys-webcomponents/p-4426b584.entry.js +1 -0
  731. package/dist/genesys-webcomponents/p-457dce75.entry.js +1 -0
  732. package/dist/genesys-webcomponents/{p-d588f252.entry.js → p-48d465fe.entry.js} +1 -1
  733. package/dist/genesys-webcomponents/{p-6bff9eb3.entry.js → p-4a579180.entry.js} +1 -1
  734. package/dist/genesys-webcomponents/{p-804cc43e.entry.js → p-4d14a590.entry.js} +1 -1
  735. package/dist/genesys-webcomponents/p-4dc4930c.entry.js +1 -0
  736. package/dist/genesys-webcomponents/p-511eb62e.entry.js +1 -0
  737. package/dist/genesys-webcomponents/p-51df1ede.entry.js +1 -0
  738. package/dist/genesys-webcomponents/{p-deee079e.js → p-52e27c60.js} +1 -1
  739. package/dist/genesys-webcomponents/p-541c3c6b.entry.js +1 -0
  740. package/dist/genesys-webcomponents/{p-1fd76470.entry.js → p-5463e134.entry.js} +1 -1
  741. package/dist/genesys-webcomponents/{p-06a92400.entry.js → p-550c0768.entry.js} +1 -1
  742. package/dist/genesys-webcomponents/{p-a06023b3.entry.js → p-5524298d.entry.js} +1 -1
  743. package/dist/genesys-webcomponents/p-5844e8c2.js +1 -0
  744. package/dist/genesys-webcomponents/{p-380d663e.entry.js → p-59206607.entry.js} +1 -1
  745. package/dist/genesys-webcomponents/{p-832842b0.entry.js → p-5a9d8cb2.entry.js} +1 -1
  746. package/dist/genesys-webcomponents/p-5d15381f.entry.js +1 -0
  747. package/dist/genesys-webcomponents/{p-632695ad.entry.js → p-5ea0d07e.entry.js} +1 -1
  748. package/dist/genesys-webcomponents/{p-6a08f78f.entry.js → p-644b750b.entry.js} +1 -1
  749. package/dist/genesys-webcomponents/p-66290fc5.entry.js +1 -0
  750. package/dist/genesys-webcomponents/{p-8fe30b09.entry.js → p-67036f76.entry.js} +1 -1
  751. package/dist/genesys-webcomponents/p-69d045af.entry.js +1 -0
  752. package/dist/genesys-webcomponents/p-6bee8d41.entry.js +1 -0
  753. package/dist/genesys-webcomponents/{p-16570da1.entry.js → p-6c72ef03.entry.js} +1 -1
  754. package/dist/genesys-webcomponents/p-6ce1bf55.entry.js +1 -0
  755. package/dist/genesys-webcomponents/{p-0bc7c69c.entry.js → p-6d7122bc.entry.js} +1 -1
  756. package/dist/genesys-webcomponents/p-77db656b.entry.js +1 -0
  757. package/dist/genesys-webcomponents/{p-800521cd.entry.js → p-7943f46d.entry.js} +1 -1
  758. package/dist/genesys-webcomponents/{p-8920a5e5.js → p-7a100b8c.js} +1 -1
  759. package/dist/genesys-webcomponents/{p-5e1a9a03.entry.js → p-7bff5f15.entry.js} +1 -1
  760. package/dist/genesys-webcomponents/{p-44835bc5.entry.js → p-7e22896f.entry.js} +1 -1
  761. package/dist/genesys-webcomponents/{p-35f055a2.entry.js → p-7e245e45.entry.js} +1 -1
  762. package/dist/genesys-webcomponents/{p-f34ce7dc.js → p-8801741a.js} +1 -1
  763. package/dist/genesys-webcomponents/{p-4425a015.entry.js → p-8953cea0.entry.js} +1 -1
  764. package/dist/genesys-webcomponents/{p-9d18d475.js → p-8c362857.js} +1 -1
  765. package/dist/genesys-webcomponents/p-8c3c2fd5.entry.js +1 -0
  766. package/dist/genesys-webcomponents/{p-dabf28c2.entry.js → p-8d3fb4b0.entry.js} +1 -1
  767. package/dist/genesys-webcomponents/p-8e22729c.entry.js +1 -0
  768. package/dist/genesys-webcomponents/{p-bcf1af79.entry.js → p-9026cf7e.entry.js} +1 -1
  769. package/dist/genesys-webcomponents/p-903a7fff.entry.js +1 -0
  770. package/dist/genesys-webcomponents/{p-5675738b.entry.js → p-906bffcd.entry.js} +1 -1
  771. package/dist/genesys-webcomponents/p-920b9a0d.entry.js +1 -0
  772. package/dist/genesys-webcomponents/p-92536df7.entry.js +1 -0
  773. package/dist/genesys-webcomponents/p-9279fb28.entry.js +1 -0
  774. package/dist/genesys-webcomponents/p-932fdd60.entry.js +1 -0
  775. package/dist/genesys-webcomponents/p-937ec398.entry.js +1 -0
  776. package/dist/genesys-webcomponents/{p-a733f4ca.js → p-9383fa8e.js} +1 -1
  777. package/dist/genesys-webcomponents/{p-d01970f7.entry.js → p-93d5c18d.entry.js} +1 -1
  778. package/dist/genesys-webcomponents/{p-c9ad308d.entry.js → p-9595c4f2.entry.js} +1 -1
  779. package/dist/genesys-webcomponents/{p-b9ed5a20.entry.js → p-984fb2ca.entry.js} +1 -1
  780. package/dist/genesys-webcomponents/{p-831456f4.entry.js → p-9894c33e.entry.js} +1 -1
  781. package/dist/genesys-webcomponents/p-992542c8.entry.js +1 -0
  782. package/dist/genesys-webcomponents/{p-18099796.entry.js → p-993b63db.entry.js} +1 -1
  783. package/dist/genesys-webcomponents/p-9cc0c717.entry.js +1 -0
  784. package/dist/genesys-webcomponents/p-a1151219.entry.js +1 -0
  785. package/dist/genesys-webcomponents/{p-4a6ae41e.js → p-a285abaf.js} +1 -1
  786. package/dist/genesys-webcomponents/{p-b3c9fd06.js → p-a3bc3236.js} +1 -1
  787. package/dist/genesys-webcomponents/p-a934d5b1.entry.js +1 -0
  788. package/dist/genesys-webcomponents/{p-334e3b2c.entry.js → p-a96bc06c.entry.js} +1 -1
  789. package/dist/genesys-webcomponents/{p-d3a38337.entry.js → p-b09ed8fd.entry.js} +1 -1
  790. package/dist/genesys-webcomponents/{p-3978c9d9.entry.js → p-b0cc1af2.entry.js} +1 -1
  791. package/dist/genesys-webcomponents/{p-a9b8c730.entry.js → p-b3fd4623.entry.js} +1 -1
  792. package/dist/genesys-webcomponents/p-b56fd34a.entry.js +1 -0
  793. package/dist/genesys-webcomponents/{p-39e12286.entry.js → p-b80c59ad.entry.js} +1 -1
  794. package/dist/genesys-webcomponents/p-bc151fdb.entry.js +1 -0
  795. package/dist/genesys-webcomponents/p-be68b1e8.entry.js +1 -0
  796. package/dist/genesys-webcomponents/{p-d8824819.entry.js → p-c05cacb2.entry.js} +1 -1
  797. package/dist/genesys-webcomponents/{p-efafcf0b.entry.js → p-c07ab095.entry.js} +1 -1
  798. package/dist/genesys-webcomponents/{p-9be45fa0.entry.js → p-c183e212.entry.js} +1 -1
  799. package/dist/genesys-webcomponents/p-c4a77eda.entry.js +1 -0
  800. package/dist/genesys-webcomponents/{p-c609ed18.entry.js → p-c4f9d3c7.entry.js} +1 -1
  801. package/dist/genesys-webcomponents/{p-24b860b0.js → p-c57cd1d8.js} +1 -1
  802. package/dist/genesys-webcomponents/p-c7a90b16.entry.js +1 -0
  803. package/dist/genesys-webcomponents/{p-7a24829d.entry.js → p-c9788b0b.entry.js} +1 -1
  804. package/dist/genesys-webcomponents/p-cf094b0a.entry.js +1 -0
  805. package/dist/genesys-webcomponents/{p-c564f3cc.entry.js → p-d0aefa7e.entry.js} +1 -1
  806. package/dist/genesys-webcomponents/p-d25d679d.entry.js +1 -0
  807. package/dist/genesys-webcomponents/p-d5d7cf8d.entry.js +1 -0
  808. package/dist/genesys-webcomponents/{p-21ef475f.entry.js → p-d8e0caa9.entry.js} +1 -1
  809. package/dist/genesys-webcomponents/{p-e9be8807.entry.js → p-d96bce57.entry.js} +1 -1
  810. package/dist/genesys-webcomponents/{p-d24bbafd.entry.js → p-ddfc136f.entry.js} +1 -1
  811. package/dist/genesys-webcomponents/{p-5229c638.entry.js → p-e121f417.entry.js} +1 -1
  812. package/dist/genesys-webcomponents/{p-642b29b5.entry.js → p-e2d75be4.entry.js} +1 -1
  813. package/dist/genesys-webcomponents/{p-c94a287d.entry.js → p-e653b8d2.entry.js} +1 -1
  814. package/dist/genesys-webcomponents/{p-559fd965.entry.js → p-ea777be1.entry.js} +1 -1
  815. package/dist/genesys-webcomponents/p-ed724d66.js +2 -0
  816. package/dist/genesys-webcomponents/{p-20e7c016.entry.js → p-edf8e30c.entry.js} +1 -1
  817. package/dist/genesys-webcomponents/p-ee2ab42a.entry.js +1 -0
  818. package/dist/genesys-webcomponents/{p-5b0d2d81.entry.js → p-ee662eda.entry.js} +1 -1
  819. package/dist/genesys-webcomponents/{p-b74733e2.entry.js → p-f19e1b38.entry.js} +1 -1
  820. package/dist/genesys-webcomponents/{p-83f26f44.entry.js → p-f34da37c.entry.js} +1 -1
  821. package/dist/genesys-webcomponents/p-f6bcc7b4.entry.js +1 -0
  822. package/dist/genesys-webcomponents/p-f7c491f0.entry.js +1 -0
  823. package/dist/genesys-webcomponents/p-f86080b6.entry.js +1 -0
  824. package/dist/genesys-webcomponents/{p-30e902fc.entry.js → p-fb9b79ce.entry.js} +1 -1
  825. package/dist/genesys-webcomponents/{p-211cc1db.js → p-fd5e59f5.js} +1 -1
  826. package/dist/genesys-webcomponents/scss/style-reset-focusable.scss +44 -5
  827. package/dist/genesys-webcomponents/scss/style-reset-typography.scss +12 -7
  828. package/dist/loader/index.d.ts +1 -1
  829. package/dist/stencil-wrapper.js +4 -4
  830. package/dist/types/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced/gux-tab-advanced.d.ts +45 -0
  831. package/dist/types/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced-list/gux-tab-advanced-list.d.ts +82 -0
  832. package/dist/types/components/legacy/gux-tabs-advanced-legacy/gux-tab-advanced-panel/gux-tab-advanced-panel.d.ts +12 -0
  833. package/dist/types/components/legacy/gux-tabs-advanced-legacy/gux-tabs-advanced.d.ts +25 -0
  834. package/dist/types/components/stable/gux-icon/gux-icon.types.d.ts +1 -1
  835. package/dist/types/components.d.ts +132 -0
  836. package/dist/types/stencil-public-runtime.d.ts +19 -5
  837. package/dist/types/stencil-wrapper.d.ts +2 -2
  838. package/dist/types/test/specTestUtils.d.ts +2 -0
  839. package/package.json +5 -5
  840. package/dist/esm/polyfills/css-shim.js +0 -1
  841. package/dist/genesys-webcomponents/p-064f6ec0.entry.js +0 -1
  842. package/dist/genesys-webcomponents/p-0ed974cb.entry.js +0 -1
  843. package/dist/genesys-webcomponents/p-16109371.entry.js +0 -1
  844. package/dist/genesys-webcomponents/p-1dca12c5.entry.js +0 -1
  845. package/dist/genesys-webcomponents/p-1ee5b66e.entry.js +0 -1
  846. package/dist/genesys-webcomponents/p-1f265935.entry.js +0 -1
  847. package/dist/genesys-webcomponents/p-3031a578.entry.js +0 -1
  848. package/dist/genesys-webcomponents/p-3504b52d.entry.js +0 -1
  849. package/dist/genesys-webcomponents/p-3d6b25da.entry.js +0 -1
  850. package/dist/genesys-webcomponents/p-44b665e9.entry.js +0 -1
  851. package/dist/genesys-webcomponents/p-4bfa8d7f.entry.js +0 -1
  852. package/dist/genesys-webcomponents/p-4d34cf6e.entry.js +0 -7
  853. package/dist/genesys-webcomponents/p-4e865a79.entry.js +0 -1
  854. package/dist/genesys-webcomponents/p-50a508f2.entry.js +0 -1
  855. package/dist/genesys-webcomponents/p-5406e9ed.entry.js +0 -1
  856. package/dist/genesys-webcomponents/p-5676eed0.entry.js +0 -1
  857. package/dist/genesys-webcomponents/p-56b47f79.entry.js +0 -1
  858. package/dist/genesys-webcomponents/p-66cc767b.entry.js +0 -1
  859. package/dist/genesys-webcomponents/p-6b0dc655.entry.js +0 -1
  860. package/dist/genesys-webcomponents/p-6b129835.entry.js +0 -1
  861. package/dist/genesys-webcomponents/p-700df232.entry.js +0 -1
  862. package/dist/genesys-webcomponents/p-71649ca7.entry.js +0 -1
  863. package/dist/genesys-webcomponents/p-718f0a96.entry.js +0 -1
  864. package/dist/genesys-webcomponents/p-7583eb17.entry.js +0 -1
  865. package/dist/genesys-webcomponents/p-7c5d3642.entry.js +0 -1
  866. package/dist/genesys-webcomponents/p-7d26b2e1.js +0 -2
  867. package/dist/genesys-webcomponents/p-8c62cbe0.entry.js +0 -1
  868. package/dist/genesys-webcomponents/p-92dc4513.entry.js +0 -1
  869. package/dist/genesys-webcomponents/p-94965977.entry.js +0 -1
  870. package/dist/genesys-webcomponents/p-a71e6014.entry.js +0 -1
  871. package/dist/genesys-webcomponents/p-a90cc738.entry.js +0 -1
  872. package/dist/genesys-webcomponents/p-a95fbd3b.entry.js +0 -1
  873. package/dist/genesys-webcomponents/p-baffeea7.entry.js +0 -1
  874. package/dist/genesys-webcomponents/p-bb33884d.entry.js +0 -1
  875. package/dist/genesys-webcomponents/p-bcce68e5.entry.js +0 -1
  876. package/dist/genesys-webcomponents/p-be3431b3.entry.js +0 -1
  877. package/dist/genesys-webcomponents/p-cae7ee62.entry.js +0 -1
  878. package/dist/genesys-webcomponents/p-d5e23ee9.entry.js +0 -1
  879. package/dist/genesys-webcomponents/p-d5e44599.entry.js +0 -1
  880. package/dist/genesys-webcomponents/p-dc82662a.entry.js +0 -1
  881. package/dist/genesys-webcomponents/p-e0f0cc0a.entry.js +0 -1
  882. package/dist/genesys-webcomponents/p-ed00fc7c.entry.js +0 -1
  883. package/dist/genesys-webcomponents/p-ef910e9b.entry.js +0 -1
  884. package/dist/genesys-webcomponents/p-f4cd6700.entry.js +0 -1
  885. package/dist/genesys-webcomponents/scss/focus.scss +0 -48
  886. package/dist/genesys-webcomponents/scss/typography.scss +0 -127
  887. /package/dist/cjs/{after-next-render-a09f528a.js → after-next-render-a023ef47.js} +0 -0
  888. /package/dist/cjs/{capitalize-first-letter-8e2f04e5.js → capitalize-first-letter-251c82ed.js} +0 -0
  889. /package/dist/cjs/{clamp-1bb96117.js → clamp-a9926a57.js} +0 -0
  890. /package/dist/cjs/{en-eb56dc17.js → en-5507bf0d.js} +0 -0
  891. /package/dist/cjs/{en-d1b32383.js → en-807a354e.js} +0 -0
  892. /package/dist/cjs/{en-2a12d7c4.js → en-f88c1935.js} +0 -0
  893. /package/dist/cjs/{event-is-from-ad1044f2.js → event-is-from-f3f1cfde.js} +0 -0
  894. /package/dist/cjs/{find-element-by-id-ecf0efa3.js → find-element-by-id-9c3e0b1b.js} +0 -0
  895. /package/dist/cjs/{floating-ui.dom.esm-2ed3685b.js → floating-ui.dom.esm-793074c6.js} +0 -0
  896. /package/dist/cjs/{get-closest-element-ab4b2eee.js → get-closest-element-26894e5a.js} +0 -0
  897. /package/dist/cjs/{get-slot-097ade01.js → get-slot-395a67ef.js} +0 -0
  898. /package/dist/cjs/{get-slot-text-content-30aa5492.js → get-slot-text-content-c4306c7a.js} +0 -0
  899. /package/dist/cjs/{gux-list.service-763539a2.js → gux-list.service-4beaa394.js} +0 -0
  900. /package/dist/cjs/{gux-listbox.service-93102b5b.js → gux-listbox.service-b1068596.js} +0 -0
  901. /package/dist/cjs/{gux-menu.common-cf9d53f7.js → gux-menu.common-d41b2fac.js} +0 -0
  902. /package/dist/cjs/{has-slot-2e73d6e7.js → has-slot-429f8b9e.js} +0 -0
  903. /package/dist/cjs/{iso-dates-f78ffb80.js → iso-dates-d0cd4802.js} +0 -0
  904. /package/dist/cjs/{log-error-d46c02b7.js → log-error-8a92241e.js} +0 -0
  905. /package/dist/cjs/{on-attribute-change-37556263.js → on-attribute-change-4db59350.js} +0 -0
  906. /package/dist/cjs/{on-input-disabled-state-change-d66fb86b.js → on-input-disabled-state-change-005e5b3e.js} +0 -0
  907. /package/dist/cjs/{on-mutation-8f8a4460.js → on-mutation-ef917473.js} +0 -0
  908. /package/dist/cjs/{prevent-browser-validation-styling-d21b1a56.js → prevent-browser-validation-styling-15142963.js} +0 -0
  909. /package/dist/cjs/{random-html-id-b86b61c0.js → random-html-id-32ef8847.js} +0 -0
  910. /package/dist/cjs/{simulate-native-event-fe3e62da.js → simulate-native-event-8209a457.js} +0 -0
  911. /package/dist/cjs/{when-event-is-from-69b5ca13.js → when-event-is-from-20e89254.js} +0 -0
  912. /package/dist/cjs/{year-month-values-f387f8d8.js → year-month-values-6028ce26.js} +0 -0
  913. /package/dist/collection/components/beta/gux-phone-input/components/gux-region-icon/sprite-utils/{generate-sprites.js → sprites.generated.js} +0 -0
  914. /package/dist/esm/{after-next-render-ed0f7dcd.js → after-next-render-84ec18ad.js} +0 -0
  915. /package/dist/esm/{capitalize-first-letter-d2512ec0.js → capitalize-first-letter-45fad3db.js} +0 -0
  916. /package/dist/esm/{clamp-6bdb0367.js → clamp-51db64df.js} +0 -0
  917. /package/dist/esm/{en-5ed282a0.js → en-1f9d79e6.js} +0 -0
  918. /package/dist/esm/{en-6c4aef39.js → en-98371f99.js} +0 -0
  919. /package/dist/esm/{en-46223eb1.js → en-b0526f2a.js} +0 -0
  920. /package/dist/esm/{event-is-from-90b69768.js → event-is-from-e25c5a22.js} +0 -0
  921. /package/dist/esm/{find-element-by-id-7c5f4fbf.js → find-element-by-id-a3c82a2d.js} +0 -0
  922. /package/dist/esm/{floating-ui.dom.esm-c86d3efa.js → floating-ui.dom.esm-813bb04f.js} +0 -0
  923. /package/dist/esm/{get-closest-element-1597503c.js → get-closest-element-66f63212.js} +0 -0
  924. /package/dist/esm/{get-slot-52d073f3.js → get-slot-55aade31.js} +0 -0
  925. /package/dist/esm/{get-slot-text-content-2e086993.js → get-slot-text-content-189d6edf.js} +0 -0
  926. /package/dist/esm/{gux-list.service-a878b7e3.js → gux-list.service-693f4ba7.js} +0 -0
  927. /package/dist/esm/{gux-listbox.service-a8319b51.js → gux-listbox.service-f2b6e01a.js} +0 -0
  928. /package/dist/esm/{gux-menu.common-a8b63e91.js → gux-menu.common-e59a1b12.js} +0 -0
  929. /package/dist/esm/{has-slot-062ae63a.js → has-slot-d06c74d9.js} +0 -0
  930. /package/dist/esm/{iso-dates-a7c704a4.js → iso-dates-5bcd3209.js} +0 -0
  931. /package/dist/esm/{log-error-e0bbd04a.js → log-error-0b15023e.js} +0 -0
  932. /package/dist/esm/{on-attribute-change-5fd8da7c.js → on-attribute-change-b91132e6.js} +0 -0
  933. /package/dist/esm/{on-input-disabled-state-change-3ea76372.js → on-input-disabled-state-change-e6bc912f.js} +0 -0
  934. /package/dist/esm/{on-mutation-d500715c.js → on-mutation-a2b7cdad.js} +0 -0
  935. /package/dist/esm/{prevent-browser-validation-styling-d16c3f4c.js → prevent-browser-validation-styling-8c459589.js} +0 -0
  936. /package/dist/esm/{random-html-id-8e3f658c.js → random-html-id-3354d85c.js} +0 -0
  937. /package/dist/esm/{simulate-native-event-ac69961f.js → simulate-native-event-bca7a1c9.js} +0 -0
  938. /package/dist/esm/{when-event-is-from-18667084.js → when-event-is-from-6154bd60.js} +0 -0
  939. /package/dist/esm/{year-month-values-1b64c204.js → year-month-values-6ffe871f.js} +0 -0
  940. /package/dist/genesys-webcomponents/{p-955a1e6a.js → p-08874a83.js} +0 -0
  941. /package/dist/genesys-webcomponents/{p-8a133b9b.js → p-0962dd7a.js} +0 -0
  942. /package/dist/genesys-webcomponents/{p-3f5341ea.js → p-16f3da0d.js} +0 -0
  943. /package/dist/genesys-webcomponents/{p-c10e41a9.js → p-28f55159.js} +0 -0
  944. /package/dist/genesys-webcomponents/{p-93904222.js → p-31cd1b9a.js} +0 -0
  945. /package/dist/genesys-webcomponents/{p-08bc2e6b.js → p-324b23f3.js} +0 -0
  946. /package/dist/genesys-webcomponents/{p-2c3d934a.js → p-363466e3.js} +0 -0
  947. /package/dist/genesys-webcomponents/{p-d176c2ae.js → p-373c5d93.js} +0 -0
  948. /package/dist/genesys-webcomponents/{p-cbcbd1bb.js → p-3ea0d493.js} +0 -0
  949. /package/dist/genesys-webcomponents/{p-1aa11396.js → p-408d5857.js} +0 -0
  950. /package/dist/genesys-webcomponents/{p-3701eff0.js → p-4e030b49.js} +0 -0
  951. /package/dist/genesys-webcomponents/{p-4f26144b.js → p-533d7842.js} +0 -0
  952. /package/dist/genesys-webcomponents/{p-82ffe3cc.js → p-5d7d5695.js} +0 -0
  953. /package/dist/genesys-webcomponents/{p-3e6097e5.js → p-693c1709.js} +0 -0
  954. /package/dist/genesys-webcomponents/{p-2bc35259.js → p-705311af.js} +0 -0
  955. /package/dist/genesys-webcomponents/{p-55cf6d81.js → p-71e00140.js} +0 -0
  956. /package/dist/genesys-webcomponents/{p-9dd4b14a.js → p-7b08c759.js} +0 -0
  957. /package/dist/genesys-webcomponents/{p-76ff3e75.js → p-8b703092.js} +0 -0
  958. /package/dist/genesys-webcomponents/{p-251befef.js → p-9125cc36.js} +0 -0
  959. /package/dist/genesys-webcomponents/{p-d0805f56.js → p-9d734bbd.js} +0 -0
  960. /package/dist/genesys-webcomponents/{p-4e2b5bcf.js → p-a5937ee9.js} +0 -0
  961. /package/dist/genesys-webcomponents/{p-417354e9.js → p-aa9ff6ba.js} +0 -0
  962. /package/dist/genesys-webcomponents/{p-abb9b5f7.js → p-c7328d42.js} +0 -0
  963. /package/dist/genesys-webcomponents/{p-29e8b184.js → p-dbb0ac25.js} +0 -0
  964. /package/dist/genesys-webcomponents/{p-aa2f9991.js → p-dd53013c.js} +0 -0
  965. /package/dist/genesys-webcomponents/{p-091f51f6.js → p-ffaadf62.js} +0 -0
  966. /package/dist/types/components/beta/gux-phone-input/components/gux-region-icon/sprite-utils/{generate-sprites.d.ts → sprites.generated.d.ts} +0 -0
@@ -0,0 +1,3023 @@
1
+ 'use strict';
2
+
3
+ /**!
4
+ * Sortable 1.15.0
5
+ * @author RubaXa <trash@rubaxa.org>
6
+ * @author owenm <owen23355@gmail.com>
7
+ * @license MIT
8
+ */
9
+ function ownKeys(object, enumerableOnly) {
10
+ var keys = Object.keys(object);
11
+
12
+ if (Object.getOwnPropertySymbols) {
13
+ var symbols = Object.getOwnPropertySymbols(object);
14
+
15
+ if (enumerableOnly) {
16
+ symbols = symbols.filter(function (sym) {
17
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
18
+ });
19
+ }
20
+
21
+ keys.push.apply(keys, symbols);
22
+ }
23
+
24
+ return keys;
25
+ }
26
+
27
+ function _objectSpread2(target) {
28
+ for (var i = 1; i < arguments.length; i++) {
29
+ var source = arguments[i] != null ? arguments[i] : {};
30
+
31
+ if (i % 2) {
32
+ ownKeys(Object(source), true).forEach(function (key) {
33
+ _defineProperty(target, key, source[key]);
34
+ });
35
+ } else if (Object.getOwnPropertyDescriptors) {
36
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
37
+ } else {
38
+ ownKeys(Object(source)).forEach(function (key) {
39
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
40
+ });
41
+ }
42
+ }
43
+
44
+ return target;
45
+ }
46
+
47
+ function _typeof(obj) {
48
+ "@babel/helpers - typeof";
49
+
50
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
51
+ _typeof = function (obj) {
52
+ return typeof obj;
53
+ };
54
+ } else {
55
+ _typeof = function (obj) {
56
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
57
+ };
58
+ }
59
+
60
+ return _typeof(obj);
61
+ }
62
+
63
+ function _defineProperty(obj, key, value) {
64
+ if (key in obj) {
65
+ Object.defineProperty(obj, key, {
66
+ value: value,
67
+ enumerable: true,
68
+ configurable: true,
69
+ writable: true
70
+ });
71
+ } else {
72
+ obj[key] = value;
73
+ }
74
+
75
+ return obj;
76
+ }
77
+
78
+ function _extends() {
79
+ _extends = Object.assign || function (target) {
80
+ for (var i = 1; i < arguments.length; i++) {
81
+ var source = arguments[i];
82
+
83
+ for (var key in source) {
84
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
85
+ target[key] = source[key];
86
+ }
87
+ }
88
+ }
89
+
90
+ return target;
91
+ };
92
+
93
+ return _extends.apply(this, arguments);
94
+ }
95
+
96
+ function _objectWithoutPropertiesLoose(source, excluded) {
97
+ if (source == null) return {};
98
+ var target = {};
99
+ var sourceKeys = Object.keys(source);
100
+ var key, i;
101
+
102
+ for (i = 0; i < sourceKeys.length; i++) {
103
+ key = sourceKeys[i];
104
+ if (excluded.indexOf(key) >= 0) continue;
105
+ target[key] = source[key];
106
+ }
107
+
108
+ return target;
109
+ }
110
+
111
+ function _objectWithoutProperties(source, excluded) {
112
+ if (source == null) return {};
113
+
114
+ var target = _objectWithoutPropertiesLoose(source, excluded);
115
+
116
+ var key, i;
117
+
118
+ if (Object.getOwnPropertySymbols) {
119
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
120
+
121
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
122
+ key = sourceSymbolKeys[i];
123
+ if (excluded.indexOf(key) >= 0) continue;
124
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
125
+ target[key] = source[key];
126
+ }
127
+ }
128
+
129
+ return target;
130
+ }
131
+
132
+ var version = "1.15.0";
133
+
134
+ function userAgent(pattern) {
135
+ if (typeof window !== 'undefined' && window.navigator) {
136
+ return !! /*@__PURE__*/navigator.userAgent.match(pattern);
137
+ }
138
+ }
139
+
140
+ var IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
141
+ var Edge = userAgent(/Edge/i);
142
+ var FireFox = userAgent(/firefox/i);
143
+ var Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);
144
+ var IOS = userAgent(/iP(ad|od|hone)/i);
145
+ var ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);
146
+
147
+ var captureMode = {
148
+ capture: false,
149
+ passive: false
150
+ };
151
+
152
+ function on(el, event, fn) {
153
+ el.addEventListener(event, fn, !IE11OrLess && captureMode);
154
+ }
155
+
156
+ function off(el, event, fn) {
157
+ el.removeEventListener(event, fn, !IE11OrLess && captureMode);
158
+ }
159
+
160
+ function matches(
161
+ /**HTMLElement*/
162
+ el,
163
+ /**String*/
164
+ selector) {
165
+ if (!selector) return;
166
+ selector[0] === '>' && (selector = selector.substring(1));
167
+
168
+ if (el) {
169
+ try {
170
+ if (el.matches) {
171
+ return el.matches(selector);
172
+ } else if (el.msMatchesSelector) {
173
+ return el.msMatchesSelector(selector);
174
+ } else if (el.webkitMatchesSelector) {
175
+ return el.webkitMatchesSelector(selector);
176
+ }
177
+ } catch (_) {
178
+ return false;
179
+ }
180
+ }
181
+
182
+ return false;
183
+ }
184
+
185
+ function getParentOrHost(el) {
186
+ return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;
187
+ }
188
+
189
+ function closest(
190
+ /**HTMLElement*/
191
+ el,
192
+ /**String*/
193
+ selector,
194
+ /**HTMLElement*/
195
+ ctx, includeCTX) {
196
+ if (el) {
197
+ ctx = ctx || document;
198
+
199
+ do {
200
+ if (selector != null && (selector[0] === '>' ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {
201
+ return el;
202
+ }
203
+
204
+ if (el === ctx) break;
205
+ /* jshint boss:true */
206
+ } while (el = getParentOrHost(el));
207
+ }
208
+
209
+ return null;
210
+ }
211
+
212
+ var R_SPACE = /\s+/g;
213
+
214
+ function toggleClass(el, name, state) {
215
+ if (el && name) {
216
+ if (el.classList) {
217
+ el.classList[state ? 'add' : 'remove'](name);
218
+ } else {
219
+ var className = (' ' + el.className + ' ').replace(R_SPACE, ' ').replace(' ' + name + ' ', ' ');
220
+ el.className = (className + (state ? ' ' + name : '')).replace(R_SPACE, ' ');
221
+ }
222
+ }
223
+ }
224
+
225
+ function css(el, prop, val) {
226
+ var style = el && el.style;
227
+
228
+ if (style) {
229
+ if (val === void 0) {
230
+ if (document.defaultView && document.defaultView.getComputedStyle) {
231
+ val = document.defaultView.getComputedStyle(el, '');
232
+ } else if (el.currentStyle) {
233
+ val = el.currentStyle;
234
+ }
235
+
236
+ return prop === void 0 ? val : val[prop];
237
+ } else {
238
+ if (!(prop in style) && prop.indexOf('webkit') === -1) {
239
+ prop = '-webkit-' + prop;
240
+ }
241
+
242
+ style[prop] = val + (typeof val === 'string' ? '' : 'px');
243
+ }
244
+ }
245
+ }
246
+
247
+ function matrix(el, selfOnly) {
248
+ var appliedTransforms = '';
249
+
250
+ if (typeof el === 'string') {
251
+ appliedTransforms = el;
252
+ } else {
253
+ do {
254
+ var transform = css(el, 'transform');
255
+
256
+ if (transform && transform !== 'none') {
257
+ appliedTransforms = transform + ' ' + appliedTransforms;
258
+ }
259
+ /* jshint boss:true */
260
+
261
+ } while (!selfOnly && (el = el.parentNode));
262
+ }
263
+
264
+ var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
265
+ /*jshint -W056 */
266
+
267
+ return matrixFn && new matrixFn(appliedTransforms);
268
+ }
269
+
270
+ function find(ctx, tagName, iterator) {
271
+ if (ctx) {
272
+ var list = ctx.getElementsByTagName(tagName),
273
+ i = 0,
274
+ n = list.length;
275
+
276
+ if (iterator) {
277
+ for (; i < n; i++) {
278
+ iterator(list[i], i);
279
+ }
280
+ }
281
+
282
+ return list;
283
+ }
284
+
285
+ return [];
286
+ }
287
+
288
+ function getWindowScrollingElement() {
289
+ var scrollingElement = document.scrollingElement;
290
+
291
+ if (scrollingElement) {
292
+ return scrollingElement;
293
+ } else {
294
+ return document.documentElement;
295
+ }
296
+ }
297
+ /**
298
+ * Returns the "bounding client rect" of given element
299
+ * @param {HTMLElement} el The element whose boundingClientRect is wanted
300
+ * @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container
301
+ * @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr
302
+ * @param {[Boolean]} undoScale Whether the container's scale() should be undone
303
+ * @param {[HTMLElement]} container The parent the element will be placed in
304
+ * @return {Object} The boundingClientRect of el, with specified adjustments
305
+ */
306
+
307
+
308
+ function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {
309
+ if (!el.getBoundingClientRect && el !== window) return;
310
+ var elRect, top, left, bottom, right, height, width;
311
+
312
+ if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {
313
+ elRect = el.getBoundingClientRect();
314
+ top = elRect.top;
315
+ left = elRect.left;
316
+ bottom = elRect.bottom;
317
+ right = elRect.right;
318
+ height = elRect.height;
319
+ width = elRect.width;
320
+ } else {
321
+ top = 0;
322
+ left = 0;
323
+ bottom = window.innerHeight;
324
+ right = window.innerWidth;
325
+ height = window.innerHeight;
326
+ width = window.innerWidth;
327
+ }
328
+
329
+ if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {
330
+ // Adjust for translate()
331
+ container = container || el.parentNode; // solves #1123 (see: https://stackoverflow.com/a/37953806/6088312)
332
+ // Not needed on <= IE11
333
+
334
+ if (!IE11OrLess) {
335
+ do {
336
+ if (container && container.getBoundingClientRect && (css(container, 'transform') !== 'none' || relativeToNonStaticParent && css(container, 'position') !== 'static')) {
337
+ var containerRect = container.getBoundingClientRect(); // Set relative to edges of padding box of container
338
+
339
+ top -= containerRect.top + parseInt(css(container, 'border-top-width'));
340
+ left -= containerRect.left + parseInt(css(container, 'border-left-width'));
341
+ bottom = top + elRect.height;
342
+ right = left + elRect.width;
343
+ break;
344
+ }
345
+ /* jshint boss:true */
346
+
347
+ } while (container = container.parentNode);
348
+ }
349
+ }
350
+
351
+ if (undoScale && el !== window) {
352
+ // Adjust for scale()
353
+ var elMatrix = matrix(container || el),
354
+ scaleX = elMatrix && elMatrix.a,
355
+ scaleY = elMatrix && elMatrix.d;
356
+
357
+ if (elMatrix) {
358
+ top /= scaleY;
359
+ left /= scaleX;
360
+ width /= scaleX;
361
+ height /= scaleY;
362
+ bottom = top + height;
363
+ right = left + width;
364
+ }
365
+ }
366
+
367
+ return {
368
+ top: top,
369
+ left: left,
370
+ bottom: bottom,
371
+ right: right,
372
+ width: width,
373
+ height: height
374
+ };
375
+ }
376
+ /**
377
+ * Checks if a side of an element is scrolled past a side of its parents
378
+ * @param {HTMLElement} el The element who's side being scrolled out of view is in question
379
+ * @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')
380
+ * @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')
381
+ * @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element
382
+ */
383
+
384
+
385
+ function isScrolledPast(el, elSide, parentSide) {
386
+ var parent = getParentAutoScrollElement(el, true),
387
+ elSideVal = getRect(el)[elSide];
388
+ /* jshint boss:true */
389
+
390
+ while (parent) {
391
+ var parentSideVal = getRect(parent)[parentSide],
392
+ visible = void 0;
393
+
394
+ if (parentSide === 'top' || parentSide === 'left') {
395
+ visible = elSideVal >= parentSideVal;
396
+ } else {
397
+ visible = elSideVal <= parentSideVal;
398
+ }
399
+
400
+ if (!visible) return parent;
401
+ if (parent === getWindowScrollingElement()) break;
402
+ parent = getParentAutoScrollElement(parent, false);
403
+ }
404
+
405
+ return false;
406
+ }
407
+ /**
408
+ * Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)
409
+ * and non-draggable elements
410
+ * @param {HTMLElement} el The parent element
411
+ * @param {Number} childNum The index of the child
412
+ * @param {Object} options Parent Sortable's options
413
+ * @return {HTMLElement} The child at index childNum, or null if not found
414
+ */
415
+
416
+
417
+ function getChild(el, childNum, options, includeDragEl) {
418
+ var currentChild = 0,
419
+ i = 0,
420
+ children = el.children;
421
+
422
+ while (i < children.length) {
423
+ if (children[i].style.display !== 'none' && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {
424
+ if (currentChild === childNum) {
425
+ return children[i];
426
+ }
427
+
428
+ currentChild++;
429
+ }
430
+
431
+ i++;
432
+ }
433
+
434
+ return null;
435
+ }
436
+ /**
437
+ * Gets the last child in the el, ignoring ghostEl or invisible elements (clones)
438
+ * @param {HTMLElement} el Parent element
439
+ * @param {selector} selector Any other elements that should be ignored
440
+ * @return {HTMLElement} The last child, ignoring ghostEl
441
+ */
442
+
443
+
444
+ function lastChild(el, selector) {
445
+ var last = el.lastElementChild;
446
+
447
+ while (last && (last === Sortable.ghost || css(last, 'display') === 'none' || selector && !matches(last, selector))) {
448
+ last = last.previousElementSibling;
449
+ }
450
+
451
+ return last || null;
452
+ }
453
+ /**
454
+ * Returns the index of an element within its parent for a selected set of
455
+ * elements
456
+ * @param {HTMLElement} el
457
+ * @param {selector} selector
458
+ * @return {number}
459
+ */
460
+
461
+
462
+ function index(el, selector) {
463
+ var index = 0;
464
+
465
+ if (!el || !el.parentNode) {
466
+ return -1;
467
+ }
468
+ /* jshint boss:true */
469
+
470
+
471
+ while (el = el.previousElementSibling) {
472
+ if (el.nodeName.toUpperCase() !== 'TEMPLATE' && el !== Sortable.clone && (!selector || matches(el, selector))) {
473
+ index++;
474
+ }
475
+ }
476
+
477
+ return index;
478
+ }
479
+ /**
480
+ * Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.
481
+ * The value is returned in real pixels.
482
+ * @param {HTMLElement} el
483
+ * @return {Array} Offsets in the format of [left, top]
484
+ */
485
+
486
+
487
+ function getRelativeScrollOffset(el) {
488
+ var offsetLeft = 0,
489
+ offsetTop = 0,
490
+ winScroller = getWindowScrollingElement();
491
+
492
+ if (el) {
493
+ do {
494
+ var elMatrix = matrix(el),
495
+ scaleX = elMatrix.a,
496
+ scaleY = elMatrix.d;
497
+ offsetLeft += el.scrollLeft * scaleX;
498
+ offsetTop += el.scrollTop * scaleY;
499
+ } while (el !== winScroller && (el = el.parentNode));
500
+ }
501
+
502
+ return [offsetLeft, offsetTop];
503
+ }
504
+ /**
505
+ * Returns the index of the object within the given array
506
+ * @param {Array} arr Array that may or may not hold the object
507
+ * @param {Object} obj An object that has a key-value pair unique to and identical to a key-value pair in the object you want to find
508
+ * @return {Number} The index of the object in the array, or -1
509
+ */
510
+
511
+
512
+ function indexOfObject(arr, obj) {
513
+ for (var i in arr) {
514
+ if (!arr.hasOwnProperty(i)) continue;
515
+
516
+ for (var key in obj) {
517
+ if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);
518
+ }
519
+ }
520
+
521
+ return -1;
522
+ }
523
+
524
+ function getParentAutoScrollElement(el, includeSelf) {
525
+ // skip to window
526
+ if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();
527
+ var elem = el;
528
+ var gotSelf = false;
529
+
530
+ do {
531
+ // we don't need to get elem css if it isn't even overflowing in the first place (performance)
532
+ if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {
533
+ var elemCSS = css(elem);
534
+
535
+ if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == 'auto' || elemCSS.overflowX == 'scroll') || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == 'auto' || elemCSS.overflowY == 'scroll')) {
536
+ if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();
537
+ if (gotSelf || includeSelf) return elem;
538
+ gotSelf = true;
539
+ }
540
+ }
541
+ /* jshint boss:true */
542
+
543
+ } while (elem = elem.parentNode);
544
+
545
+ return getWindowScrollingElement();
546
+ }
547
+
548
+ function extend(dst, src) {
549
+ if (dst && src) {
550
+ for (var key in src) {
551
+ if (src.hasOwnProperty(key)) {
552
+ dst[key] = src[key];
553
+ }
554
+ }
555
+ }
556
+
557
+ return dst;
558
+ }
559
+
560
+ function isRectEqual(rect1, rect2) {
561
+ return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);
562
+ }
563
+
564
+ var _throttleTimeout;
565
+
566
+ function throttle(callback, ms) {
567
+ return function () {
568
+ if (!_throttleTimeout) {
569
+ var args = arguments,
570
+ _this = this;
571
+
572
+ if (args.length === 1) {
573
+ callback.call(_this, args[0]);
574
+ } else {
575
+ callback.apply(_this, args);
576
+ }
577
+
578
+ _throttleTimeout = setTimeout(function () {
579
+ _throttleTimeout = void 0;
580
+ }, ms);
581
+ }
582
+ };
583
+ }
584
+
585
+ function cancelThrottle() {
586
+ clearTimeout(_throttleTimeout);
587
+ _throttleTimeout = void 0;
588
+ }
589
+
590
+ function scrollBy(el, x, y) {
591
+ el.scrollLeft += x;
592
+ el.scrollTop += y;
593
+ }
594
+
595
+ function clone(el) {
596
+ var Polymer = window.Polymer;
597
+ var $ = window.jQuery || window.Zepto;
598
+
599
+ if (Polymer && Polymer.dom) {
600
+ return Polymer.dom(el).cloneNode(true);
601
+ } else if ($) {
602
+ return $(el).clone(true)[0];
603
+ } else {
604
+ return el.cloneNode(true);
605
+ }
606
+ }
607
+
608
+ var expando = 'Sortable' + new Date().getTime();
609
+
610
+ function AnimationStateManager() {
611
+ var animationStates = [],
612
+ animationCallbackId;
613
+ return {
614
+ captureAnimationState: function captureAnimationState() {
615
+ animationStates = [];
616
+ if (!this.options.animation) return;
617
+ var children = [].slice.call(this.el.children);
618
+ children.forEach(function (child) {
619
+ if (css(child, 'display') === 'none' || child === Sortable.ghost) return;
620
+ animationStates.push({
621
+ target: child,
622
+ rect: getRect(child)
623
+ });
624
+
625
+ var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect); // If animating: compensate for current animation
626
+
627
+
628
+ if (child.thisAnimationDuration) {
629
+ var childMatrix = matrix(child, true);
630
+
631
+ if (childMatrix) {
632
+ fromRect.top -= childMatrix.f;
633
+ fromRect.left -= childMatrix.e;
634
+ }
635
+ }
636
+
637
+ child.fromRect = fromRect;
638
+ });
639
+ },
640
+ addAnimationState: function addAnimationState(state) {
641
+ animationStates.push(state);
642
+ },
643
+ removeAnimationState: function removeAnimationState(target) {
644
+ animationStates.splice(indexOfObject(animationStates, {
645
+ target: target
646
+ }), 1);
647
+ },
648
+ animateAll: function animateAll(callback) {
649
+ var _this = this;
650
+
651
+ if (!this.options.animation) {
652
+ clearTimeout(animationCallbackId);
653
+ if (typeof callback === 'function') callback();
654
+ return;
655
+ }
656
+
657
+ var animating = false,
658
+ animationTime = 0;
659
+ animationStates.forEach(function (state) {
660
+ var time = 0,
661
+ target = state.target,
662
+ fromRect = target.fromRect,
663
+ toRect = getRect(target),
664
+ prevFromRect = target.prevFromRect,
665
+ prevToRect = target.prevToRect,
666
+ animatingRect = state.rect,
667
+ targetMatrix = matrix(target, true);
668
+
669
+ if (targetMatrix) {
670
+ // Compensate for current animation
671
+ toRect.top -= targetMatrix.f;
672
+ toRect.left -= targetMatrix.e;
673
+ }
674
+
675
+ target.toRect = toRect;
676
+
677
+ if (target.thisAnimationDuration) {
678
+ // Could also check if animatingRect is between fromRect and toRect
679
+ if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && // Make sure animatingRect is on line between toRect & fromRect
680
+ (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {
681
+ // If returning to same place as started from animation and on same axis
682
+ time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);
683
+ }
684
+ } // if fromRect != toRect: animate
685
+
686
+
687
+ if (!isRectEqual(toRect, fromRect)) {
688
+ target.prevFromRect = fromRect;
689
+ target.prevToRect = toRect;
690
+
691
+ if (!time) {
692
+ time = _this.options.animation;
693
+ }
694
+
695
+ _this.animate(target, animatingRect, toRect, time);
696
+ }
697
+
698
+ if (time) {
699
+ animating = true;
700
+ animationTime = Math.max(animationTime, time);
701
+ clearTimeout(target.animationResetTimer);
702
+ target.animationResetTimer = setTimeout(function () {
703
+ target.animationTime = 0;
704
+ target.prevFromRect = null;
705
+ target.fromRect = null;
706
+ target.prevToRect = null;
707
+ target.thisAnimationDuration = null;
708
+ }, time);
709
+ target.thisAnimationDuration = time;
710
+ }
711
+ });
712
+ clearTimeout(animationCallbackId);
713
+
714
+ if (!animating) {
715
+ if (typeof callback === 'function') callback();
716
+ } else {
717
+ animationCallbackId = setTimeout(function () {
718
+ if (typeof callback === 'function') callback();
719
+ }, animationTime);
720
+ }
721
+
722
+ animationStates = [];
723
+ },
724
+ animate: function animate(target, currentRect, toRect, duration) {
725
+ if (duration) {
726
+ css(target, 'transition', '');
727
+ css(target, 'transform', '');
728
+ var elMatrix = matrix(this.el),
729
+ scaleX = elMatrix && elMatrix.a,
730
+ scaleY = elMatrix && elMatrix.d,
731
+ translateX = (currentRect.left - toRect.left) / (scaleX || 1),
732
+ translateY = (currentRect.top - toRect.top) / (scaleY || 1);
733
+ target.animatingX = !!translateX;
734
+ target.animatingY = !!translateY;
735
+ css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)');
736
+ this.forRepaintDummy = repaint(target); // repaint
737
+
738
+ css(target, 'transition', 'transform ' + duration + 'ms' + (this.options.easing ? ' ' + this.options.easing : ''));
739
+ css(target, 'transform', 'translate3d(0,0,0)');
740
+ typeof target.animated === 'number' && clearTimeout(target.animated);
741
+ target.animated = setTimeout(function () {
742
+ css(target, 'transition', '');
743
+ css(target, 'transform', '');
744
+ target.animated = false;
745
+ target.animatingX = false;
746
+ target.animatingY = false;
747
+ }, duration);
748
+ }
749
+ }
750
+ };
751
+ }
752
+
753
+ function repaint(target) {
754
+ return target.offsetWidth;
755
+ }
756
+
757
+ function calculateRealTime(animatingRect, fromRect, toRect, options) {
758
+ return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;
759
+ }
760
+
761
+ var plugins = [];
762
+ var defaults = {
763
+ initializeByDefault: true
764
+ };
765
+ var PluginManager = {
766
+ mount: function mount(plugin) {
767
+ // Set default static properties
768
+ for (var option in defaults) {
769
+ if (defaults.hasOwnProperty(option) && !(option in plugin)) {
770
+ plugin[option] = defaults[option];
771
+ }
772
+ }
773
+
774
+ plugins.forEach(function (p) {
775
+ if (p.pluginName === plugin.pluginName) {
776
+ throw "Sortable: Cannot mount plugin ".concat(plugin.pluginName, " more than once");
777
+ }
778
+ });
779
+ plugins.push(plugin);
780
+ },
781
+ pluginEvent: function pluginEvent(eventName, sortable, evt) {
782
+ var _this = this;
783
+
784
+ this.eventCanceled = false;
785
+
786
+ evt.cancel = function () {
787
+ _this.eventCanceled = true;
788
+ };
789
+
790
+ var eventNameGlobal = eventName + 'Global';
791
+ plugins.forEach(function (plugin) {
792
+ if (!sortable[plugin.pluginName]) return; // Fire global events if it exists in this sortable
793
+
794
+ if (sortable[plugin.pluginName][eventNameGlobal]) {
795
+ sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({
796
+ sortable: sortable
797
+ }, evt));
798
+ } // Only fire plugin event if plugin is enabled in this sortable,
799
+ // and plugin has event defined
800
+
801
+
802
+ if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {
803
+ sortable[plugin.pluginName][eventName](_objectSpread2({
804
+ sortable: sortable
805
+ }, evt));
806
+ }
807
+ });
808
+ },
809
+ initializePlugins: function initializePlugins(sortable, el, defaults, options) {
810
+ plugins.forEach(function (plugin) {
811
+ var pluginName = plugin.pluginName;
812
+ if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;
813
+ var initialized = new plugin(sortable, el, sortable.options);
814
+ initialized.sortable = sortable;
815
+ initialized.options = sortable.options;
816
+ sortable[pluginName] = initialized; // Add default options from plugin
817
+
818
+ _extends(defaults, initialized.defaults);
819
+ });
820
+
821
+ for (var option in sortable.options) {
822
+ if (!sortable.options.hasOwnProperty(option)) continue;
823
+ var modified = this.modifyOption(sortable, option, sortable.options[option]);
824
+
825
+ if (typeof modified !== 'undefined') {
826
+ sortable.options[option] = modified;
827
+ }
828
+ }
829
+ },
830
+ getEventProperties: function getEventProperties(name, sortable) {
831
+ var eventProperties = {};
832
+ plugins.forEach(function (plugin) {
833
+ if (typeof plugin.eventProperties !== 'function') return;
834
+
835
+ _extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));
836
+ });
837
+ return eventProperties;
838
+ },
839
+ modifyOption: function modifyOption(sortable, name, value) {
840
+ var modifiedValue;
841
+ plugins.forEach(function (plugin) {
842
+ // Plugin must exist on the Sortable
843
+ if (!sortable[plugin.pluginName]) return; // If static option listener exists for this option, call in the context of the Sortable's instance of this plugin
844
+
845
+ if (plugin.optionListeners && typeof plugin.optionListeners[name] === 'function') {
846
+ modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);
847
+ }
848
+ });
849
+ return modifiedValue;
850
+ }
851
+ };
852
+
853
+ function dispatchEvent(_ref) {
854
+ var sortable = _ref.sortable,
855
+ rootEl = _ref.rootEl,
856
+ name = _ref.name,
857
+ targetEl = _ref.targetEl,
858
+ cloneEl = _ref.cloneEl,
859
+ toEl = _ref.toEl,
860
+ fromEl = _ref.fromEl,
861
+ oldIndex = _ref.oldIndex,
862
+ newIndex = _ref.newIndex,
863
+ oldDraggableIndex = _ref.oldDraggableIndex,
864
+ newDraggableIndex = _ref.newDraggableIndex,
865
+ originalEvent = _ref.originalEvent,
866
+ putSortable = _ref.putSortable,
867
+ extraEventProperties = _ref.extraEventProperties;
868
+ sortable = sortable || rootEl && rootEl[expando];
869
+ if (!sortable) return;
870
+ var evt,
871
+ options = sortable.options,
872
+ onName = 'on' + name.charAt(0).toUpperCase() + name.substr(1); // Support for new CustomEvent feature
873
+
874
+ if (window.CustomEvent && !IE11OrLess && !Edge) {
875
+ evt = new CustomEvent(name, {
876
+ bubbles: true,
877
+ cancelable: true
878
+ });
879
+ } else {
880
+ evt = document.createEvent('Event');
881
+ evt.initEvent(name, true, true);
882
+ }
883
+
884
+ evt.to = toEl || rootEl;
885
+ evt.from = fromEl || rootEl;
886
+ evt.item = targetEl || rootEl;
887
+ evt.clone = cloneEl;
888
+ evt.oldIndex = oldIndex;
889
+ evt.newIndex = newIndex;
890
+ evt.oldDraggableIndex = oldDraggableIndex;
891
+ evt.newDraggableIndex = newDraggableIndex;
892
+ evt.originalEvent = originalEvent;
893
+ evt.pullMode = putSortable ? putSortable.lastPutMode : undefined;
894
+
895
+ var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));
896
+
897
+ for (var option in allEventProperties) {
898
+ evt[option] = allEventProperties[option];
899
+ }
900
+
901
+ if (rootEl) {
902
+ rootEl.dispatchEvent(evt);
903
+ }
904
+
905
+ if (options[onName]) {
906
+ options[onName].call(sortable, evt);
907
+ }
908
+ }
909
+
910
+ var _excluded = ["evt"];
911
+
912
+ var pluginEvent = function pluginEvent(eventName, sortable) {
913
+ var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
914
+ originalEvent = _ref.evt,
915
+ data = _objectWithoutProperties(_ref, _excluded);
916
+
917
+ PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({
918
+ dragEl: dragEl,
919
+ parentEl: parentEl,
920
+ ghostEl: ghostEl,
921
+ rootEl: rootEl,
922
+ nextEl: nextEl,
923
+ lastDownEl: lastDownEl,
924
+ cloneEl: cloneEl,
925
+ cloneHidden: cloneHidden,
926
+ dragStarted: moved,
927
+ putSortable: putSortable,
928
+ activeSortable: Sortable.active,
929
+ originalEvent: originalEvent,
930
+ oldIndex: oldIndex,
931
+ oldDraggableIndex: oldDraggableIndex,
932
+ newIndex: newIndex,
933
+ newDraggableIndex: newDraggableIndex,
934
+ hideGhostForTarget: _hideGhostForTarget,
935
+ unhideGhostForTarget: _unhideGhostForTarget,
936
+ cloneNowHidden: function cloneNowHidden() {
937
+ cloneHidden = true;
938
+ },
939
+ cloneNowShown: function cloneNowShown() {
940
+ cloneHidden = false;
941
+ },
942
+ dispatchSortableEvent: function dispatchSortableEvent(name) {
943
+ _dispatchEvent({
944
+ sortable: sortable,
945
+ name: name,
946
+ originalEvent: originalEvent
947
+ });
948
+ }
949
+ }, data));
950
+ };
951
+
952
+ function _dispatchEvent(info) {
953
+ dispatchEvent(_objectSpread2({
954
+ putSortable: putSortable,
955
+ cloneEl: cloneEl,
956
+ targetEl: dragEl,
957
+ rootEl: rootEl,
958
+ oldIndex: oldIndex,
959
+ oldDraggableIndex: oldDraggableIndex,
960
+ newIndex: newIndex,
961
+ newDraggableIndex: newDraggableIndex
962
+ }, info));
963
+ }
964
+
965
+ var dragEl,
966
+ parentEl,
967
+ ghostEl,
968
+ rootEl,
969
+ nextEl,
970
+ lastDownEl,
971
+ cloneEl,
972
+ cloneHidden,
973
+ oldIndex,
974
+ newIndex,
975
+ oldDraggableIndex,
976
+ newDraggableIndex,
977
+ activeGroup,
978
+ putSortable,
979
+ awaitingDragStarted = false,
980
+ ignoreNextClick = false,
981
+ sortables = [],
982
+ tapEvt,
983
+ touchEvt,
984
+ lastDx,
985
+ lastDy,
986
+ tapDistanceLeft,
987
+ tapDistanceTop,
988
+ moved,
989
+ lastTarget,
990
+ lastDirection,
991
+ pastFirstInvertThresh = false,
992
+ isCircumstantialInvert = false,
993
+ targetMoveDistance,
994
+ // For positioning ghost absolutely
995
+ ghostRelativeParent,
996
+ ghostRelativeParentInitialScroll = [],
997
+ // (left, top)
998
+ _silent = false,
999
+ savedInputChecked = [];
1000
+ /** @const */
1001
+
1002
+ var documentExists = typeof document !== 'undefined',
1003
+ PositionGhostAbsolutely = IOS,
1004
+ CSSFloatProperty = Edge || IE11OrLess ? 'cssFloat' : 'float',
1005
+ // This will not pass for IE9, because IE9 DnD only works on anchors
1006
+ supportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in document.createElement('div'),
1007
+ supportCssPointerEvents = function () {
1008
+ if (!documentExists) return; // false when <= IE11
1009
+
1010
+ if (IE11OrLess) {
1011
+ return false;
1012
+ }
1013
+
1014
+ var el = document.createElement('x');
1015
+ el.style.cssText = 'pointer-events:auto';
1016
+ return el.style.pointerEvents === 'auto';
1017
+ }(),
1018
+ _detectDirection = function _detectDirection(el, options) {
1019
+ var elCSS = css(el),
1020
+ elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth),
1021
+ child1 = getChild(el, 0, options),
1022
+ child2 = getChild(el, 1, options),
1023
+ firstChildCSS = child1 && css(child1),
1024
+ secondChildCSS = child2 && css(child2),
1025
+ firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width,
1026
+ secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;
1027
+
1028
+ if (elCSS.display === 'flex') {
1029
+ return elCSS.flexDirection === 'column' || elCSS.flexDirection === 'column-reverse' ? 'vertical' : 'horizontal';
1030
+ }
1031
+
1032
+ if (elCSS.display === 'grid') {
1033
+ return elCSS.gridTemplateColumns.split(' ').length <= 1 ? 'vertical' : 'horizontal';
1034
+ }
1035
+
1036
+ if (child1 && firstChildCSS["float"] && firstChildCSS["float"] !== 'none') {
1037
+ var touchingSideChild2 = firstChildCSS["float"] === 'left' ? 'left' : 'right';
1038
+ return child2 && (secondChildCSS.clear === 'both' || secondChildCSS.clear === touchingSideChild2) ? 'vertical' : 'horizontal';
1039
+ }
1040
+
1041
+ return child1 && (firstChildCSS.display === 'block' || firstChildCSS.display === 'flex' || firstChildCSS.display === 'table' || firstChildCSS.display === 'grid' || firstChildWidth >= elWidth && elCSS[CSSFloatProperty] === 'none' || child2 && elCSS[CSSFloatProperty] === 'none' && firstChildWidth + secondChildWidth > elWidth) ? 'vertical' : 'horizontal';
1042
+ },
1043
+ _dragElInRowColumn = function _dragElInRowColumn(dragRect, targetRect, vertical) {
1044
+ var dragElS1Opp = vertical ? dragRect.left : dragRect.top,
1045
+ dragElS2Opp = vertical ? dragRect.right : dragRect.bottom,
1046
+ dragElOppLength = vertical ? dragRect.width : dragRect.height,
1047
+ targetS1Opp = vertical ? targetRect.left : targetRect.top,
1048
+ targetS2Opp = vertical ? targetRect.right : targetRect.bottom,
1049
+ targetOppLength = vertical ? targetRect.width : targetRect.height;
1050
+ return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
1051
+ },
1052
+
1053
+ /**
1054
+ * Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
1055
+ * @param {Number} x X position
1056
+ * @param {Number} y Y position
1057
+ * @return {HTMLElement} Element of the first found nearest Sortable
1058
+ */
1059
+ _detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
1060
+ var ret;
1061
+ sortables.some(function (sortable) {
1062
+ var threshold = sortable[expando].options.emptyInsertThreshold;
1063
+ if (!threshold || lastChild(sortable)) return;
1064
+ var rect = getRect(sortable),
1065
+ insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold,
1066
+ insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;
1067
+
1068
+ if (insideHorizontally && insideVertically) {
1069
+ return ret = sortable;
1070
+ }
1071
+ });
1072
+ return ret;
1073
+ },
1074
+ _prepareGroup = function _prepareGroup(options) {
1075
+ function toFn(value, pull) {
1076
+ return function (to, from, dragEl, evt) {
1077
+ var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;
1078
+
1079
+ if (value == null && (pull || sameGroup)) {
1080
+ // Default pull value
1081
+ // Default pull and put value if same group
1082
+ return true;
1083
+ } else if (value == null || value === false) {
1084
+ return false;
1085
+ } else if (pull && value === 'clone') {
1086
+ return value;
1087
+ } else if (typeof value === 'function') {
1088
+ return toFn(value(to, from, dragEl, evt), pull)(to, from, dragEl, evt);
1089
+ } else {
1090
+ var otherGroup = (pull ? to : from).options.group.name;
1091
+ return value === true || typeof value === 'string' && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;
1092
+ }
1093
+ };
1094
+ }
1095
+
1096
+ var group = {};
1097
+ var originalGroup = options.group;
1098
+
1099
+ if (!originalGroup || _typeof(originalGroup) != 'object') {
1100
+ originalGroup = {
1101
+ name: originalGroup
1102
+ };
1103
+ }
1104
+
1105
+ group.name = originalGroup.name;
1106
+ group.checkPull = toFn(originalGroup.pull, true);
1107
+ group.checkPut = toFn(originalGroup.put);
1108
+ group.revertClone = originalGroup.revertClone;
1109
+ options.group = group;
1110
+ },
1111
+ _hideGhostForTarget = function _hideGhostForTarget() {
1112
+ if (!supportCssPointerEvents && ghostEl) {
1113
+ css(ghostEl, 'display', 'none');
1114
+ }
1115
+ },
1116
+ _unhideGhostForTarget = function _unhideGhostForTarget() {
1117
+ if (!supportCssPointerEvents && ghostEl) {
1118
+ css(ghostEl, 'display', '');
1119
+ }
1120
+ }; // #1184 fix - Prevent click event on fallback if dragged but item not changed position
1121
+
1122
+
1123
+ if (documentExists && !ChromeForAndroid) {
1124
+ document.addEventListener('click', function (evt) {
1125
+ if (ignoreNextClick) {
1126
+ evt.preventDefault();
1127
+ evt.stopPropagation && evt.stopPropagation();
1128
+ evt.stopImmediatePropagation && evt.stopImmediatePropagation();
1129
+ ignoreNextClick = false;
1130
+ return false;
1131
+ }
1132
+ }, true);
1133
+ }
1134
+
1135
+ var nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) {
1136
+ if (dragEl) {
1137
+ evt = evt.touches ? evt.touches[0] : evt;
1138
+
1139
+ var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);
1140
+
1141
+ if (nearest) {
1142
+ // Create imitation event
1143
+ var event = {};
1144
+
1145
+ for (var i in evt) {
1146
+ if (evt.hasOwnProperty(i)) {
1147
+ event[i] = evt[i];
1148
+ }
1149
+ }
1150
+
1151
+ event.target = event.rootEl = nearest;
1152
+ event.preventDefault = void 0;
1153
+ event.stopPropagation = void 0;
1154
+
1155
+ nearest[expando]._onDragOver(event);
1156
+ }
1157
+ }
1158
+ };
1159
+
1160
+ var _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {
1161
+ if (dragEl) {
1162
+ dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
1163
+ }
1164
+ };
1165
+ /**
1166
+ * @class Sortable
1167
+ * @param {HTMLElement} el
1168
+ * @param {Object} [options]
1169
+ */
1170
+
1171
+
1172
+ function Sortable(el, options) {
1173
+ if (!(el && el.nodeType && el.nodeType === 1)) {
1174
+ throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(el));
1175
+ }
1176
+
1177
+ this.el = el; // root element
1178
+
1179
+ this.options = options = _extends({}, options); // Export instance
1180
+
1181
+ el[expando] = this;
1182
+ var defaults = {
1183
+ group: null,
1184
+ sort: true,
1185
+ disabled: false,
1186
+ store: null,
1187
+ handle: null,
1188
+ draggable: /^[uo]l$/i.test(el.nodeName) ? '>li' : '>*',
1189
+ swapThreshold: 1,
1190
+ // percentage; 0 <= x <= 1
1191
+ invertSwap: false,
1192
+ // invert always
1193
+ invertedSwapThreshold: null,
1194
+ // will be set to same as swapThreshold if default
1195
+ removeCloneOnHide: true,
1196
+ direction: function direction() {
1197
+ return _detectDirection(el, this.options);
1198
+ },
1199
+ ghostClass: 'sortable-ghost',
1200
+ chosenClass: 'sortable-chosen',
1201
+ dragClass: 'sortable-drag',
1202
+ ignore: 'a, img',
1203
+ filter: null,
1204
+ preventOnFilter: true,
1205
+ animation: 0,
1206
+ easing: null,
1207
+ setData: function setData(dataTransfer, dragEl) {
1208
+ dataTransfer.setData('Text', dragEl.textContent);
1209
+ },
1210
+ dropBubble: false,
1211
+ dragoverBubble: false,
1212
+ dataIdAttr: 'data-id',
1213
+ delay: 0,
1214
+ delayOnTouchOnly: false,
1215
+ touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
1216
+ forceFallback: false,
1217
+ fallbackClass: 'sortable-fallback',
1218
+ fallbackOnBody: false,
1219
+ fallbackTolerance: 0,
1220
+ fallbackOffset: {
1221
+ x: 0,
1222
+ y: 0
1223
+ },
1224
+ supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,
1225
+ emptyInsertThreshold: 5
1226
+ };
1227
+ PluginManager.initializePlugins(this, el, defaults); // Set default options
1228
+
1229
+ for (var name in defaults) {
1230
+ !(name in options) && (options[name] = defaults[name]);
1231
+ }
1232
+
1233
+ _prepareGroup(options); // Bind all private methods
1234
+
1235
+
1236
+ for (var fn in this) {
1237
+ if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {
1238
+ this[fn] = this[fn].bind(this);
1239
+ }
1240
+ } // Setup drag mode
1241
+
1242
+
1243
+ this.nativeDraggable = options.forceFallback ? false : supportDraggable;
1244
+
1245
+ if (this.nativeDraggable) {
1246
+ // Touch start threshold cannot be greater than the native dragstart threshold
1247
+ this.options.touchStartThreshold = 1;
1248
+ } // Bind events
1249
+
1250
+
1251
+ if (options.supportPointer) {
1252
+ on(el, 'pointerdown', this._onTapStart);
1253
+ } else {
1254
+ on(el, 'mousedown', this._onTapStart);
1255
+ on(el, 'touchstart', this._onTapStart);
1256
+ }
1257
+
1258
+ if (this.nativeDraggable) {
1259
+ on(el, 'dragover', this);
1260
+ on(el, 'dragenter', this);
1261
+ }
1262
+
1263
+ sortables.push(this.el); // Restore sorting
1264
+
1265
+ options.store && options.store.get && this.sort(options.store.get(this) || []); // Add animation state manager
1266
+
1267
+ _extends(this, AnimationStateManager());
1268
+ }
1269
+
1270
+ Sortable.prototype =
1271
+ /** @lends Sortable.prototype */
1272
+ {
1273
+ constructor: Sortable,
1274
+ _isOutsideThisEl: function _isOutsideThisEl(target) {
1275
+ if (!this.el.contains(target) && target !== this.el) {
1276
+ lastTarget = null;
1277
+ }
1278
+ },
1279
+ _getDirection: function _getDirection(evt, target) {
1280
+ return typeof this.options.direction === 'function' ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;
1281
+ },
1282
+ _onTapStart: function _onTapStart(
1283
+ /** Event|TouchEvent */
1284
+ evt) {
1285
+ if (!evt.cancelable) return;
1286
+
1287
+ var _this = this,
1288
+ el = this.el,
1289
+ options = this.options,
1290
+ preventOnFilter = options.preventOnFilter,
1291
+ type = evt.type,
1292
+ touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === 'touch' && evt,
1293
+ target = (touch || evt).target,
1294
+ originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target,
1295
+ filter = options.filter;
1296
+
1297
+ _saveInputCheckedState(el); // Don't trigger start event when an element is been dragged, otherwise the evt.oldindex always wrong when set option.group.
1298
+
1299
+
1300
+ if (dragEl) {
1301
+ return;
1302
+ }
1303
+
1304
+ if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {
1305
+ return; // only left button and enabled
1306
+ } // cancel dnd if original target is content editable
1307
+
1308
+
1309
+ if (originalTarget.isContentEditable) {
1310
+ return;
1311
+ } // Safari ignores further event handling after mousedown
1312
+
1313
+
1314
+ if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === 'SELECT') {
1315
+ return;
1316
+ }
1317
+
1318
+ target = closest(target, options.draggable, el, false);
1319
+
1320
+ if (target && target.animated) {
1321
+ return;
1322
+ }
1323
+
1324
+ if (lastDownEl === target) {
1325
+ // Ignoring duplicate `down`
1326
+ return;
1327
+ } // Get the index of the dragged element within its parent
1328
+
1329
+
1330
+ oldIndex = index(target);
1331
+ oldDraggableIndex = index(target, options.draggable); // Check filter
1332
+
1333
+ if (typeof filter === 'function') {
1334
+ if (filter.call(this, evt, target, this)) {
1335
+ _dispatchEvent({
1336
+ sortable: _this,
1337
+ rootEl: originalTarget,
1338
+ name: 'filter',
1339
+ targetEl: target,
1340
+ toEl: el,
1341
+ fromEl: el
1342
+ });
1343
+
1344
+ pluginEvent('filter', _this, {
1345
+ evt: evt
1346
+ });
1347
+ preventOnFilter && evt.cancelable && evt.preventDefault();
1348
+ return; // cancel dnd
1349
+ }
1350
+ } else if (filter) {
1351
+ filter = filter.split(',').some(function (criteria) {
1352
+ criteria = closest(originalTarget, criteria.trim(), el, false);
1353
+
1354
+ if (criteria) {
1355
+ _dispatchEvent({
1356
+ sortable: _this,
1357
+ rootEl: criteria,
1358
+ name: 'filter',
1359
+ targetEl: target,
1360
+ fromEl: el,
1361
+ toEl: el
1362
+ });
1363
+
1364
+ pluginEvent('filter', _this, {
1365
+ evt: evt
1366
+ });
1367
+ return true;
1368
+ }
1369
+ });
1370
+
1371
+ if (filter) {
1372
+ preventOnFilter && evt.cancelable && evt.preventDefault();
1373
+ return; // cancel dnd
1374
+ }
1375
+ }
1376
+
1377
+ if (options.handle && !closest(originalTarget, options.handle, el, false)) {
1378
+ return;
1379
+ } // Prepare `dragstart`
1380
+
1381
+
1382
+ this._prepareDragStart(evt, touch, target);
1383
+ },
1384
+ _prepareDragStart: function _prepareDragStart(
1385
+ /** Event */
1386
+ evt,
1387
+ /** Touch */
1388
+ touch,
1389
+ /** HTMLElement */
1390
+ target) {
1391
+ var _this = this,
1392
+ el = _this.el,
1393
+ options = _this.options,
1394
+ ownerDocument = el.ownerDocument,
1395
+ dragStartFn;
1396
+
1397
+ if (target && !dragEl && target.parentNode === el) {
1398
+ var dragRect = getRect(target);
1399
+ rootEl = el;
1400
+ dragEl = target;
1401
+ parentEl = dragEl.parentNode;
1402
+ nextEl = dragEl.nextSibling;
1403
+ lastDownEl = target;
1404
+ activeGroup = options.group;
1405
+ Sortable.dragged = dragEl;
1406
+ tapEvt = {
1407
+ target: dragEl,
1408
+ clientX: (touch || evt).clientX,
1409
+ clientY: (touch || evt).clientY
1410
+ };
1411
+ tapDistanceLeft = tapEvt.clientX - dragRect.left;
1412
+ tapDistanceTop = tapEvt.clientY - dragRect.top;
1413
+ this._lastX = (touch || evt).clientX;
1414
+ this._lastY = (touch || evt).clientY;
1415
+ dragEl.style['will-change'] = 'all';
1416
+
1417
+ dragStartFn = function dragStartFn() {
1418
+ pluginEvent('delayEnded', _this, {
1419
+ evt: evt
1420
+ });
1421
+
1422
+ if (Sortable.eventCanceled) {
1423
+ _this._onDrop();
1424
+
1425
+ return;
1426
+ } // Delayed drag has been triggered
1427
+ // we can re-enable the events: touchmove/mousemove
1428
+
1429
+
1430
+ _this._disableDelayedDragEvents();
1431
+
1432
+ if (!FireFox && _this.nativeDraggable) {
1433
+ dragEl.draggable = true;
1434
+ } // Bind the events: dragstart/dragend
1435
+
1436
+
1437
+ _this._triggerDragStart(evt, touch); // Drag start event
1438
+
1439
+
1440
+ _dispatchEvent({
1441
+ sortable: _this,
1442
+ name: 'choose',
1443
+ originalEvent: evt
1444
+ }); // Chosen item
1445
+
1446
+
1447
+ toggleClass(dragEl, options.chosenClass, true);
1448
+ }; // Disable "draggable"
1449
+
1450
+
1451
+ options.ignore.split(',').forEach(function (criteria) {
1452
+ find(dragEl, criteria.trim(), _disableDraggable);
1453
+ });
1454
+ on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent);
1455
+ on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent);
1456
+ on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent);
1457
+ on(ownerDocument, 'mouseup', _this._onDrop);
1458
+ on(ownerDocument, 'touchend', _this._onDrop);
1459
+ on(ownerDocument, 'touchcancel', _this._onDrop); // Make dragEl draggable (must be before delay for FireFox)
1460
+
1461
+ if (FireFox && this.nativeDraggable) {
1462
+ this.options.touchStartThreshold = 4;
1463
+ dragEl.draggable = true;
1464
+ }
1465
+
1466
+ pluginEvent('delayStart', this, {
1467
+ evt: evt
1468
+ }); // Delay is impossible for native DnD in Edge or IE
1469
+
1470
+ if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {
1471
+ if (Sortable.eventCanceled) {
1472
+ this._onDrop();
1473
+
1474
+ return;
1475
+ } // If the user moves the pointer or let go the click or touch
1476
+ // before the delay has been reached:
1477
+ // disable the delayed drag
1478
+
1479
+
1480
+ on(ownerDocument, 'mouseup', _this._disableDelayedDrag);
1481
+ on(ownerDocument, 'touchend', _this._disableDelayedDrag);
1482
+ on(ownerDocument, 'touchcancel', _this._disableDelayedDrag);
1483
+ on(ownerDocument, 'mousemove', _this._delayedDragTouchMoveHandler);
1484
+ on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler);
1485
+ options.supportPointer && on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler);
1486
+ _this._dragStartTimer = setTimeout(dragStartFn, options.delay);
1487
+ } else {
1488
+ dragStartFn();
1489
+ }
1490
+ }
1491
+ },
1492
+ _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(
1493
+ /** TouchEvent|PointerEvent **/
1494
+ e) {
1495
+ var touch = e.touches ? e.touches[0] : e;
1496
+
1497
+ if (Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1))) {
1498
+ this._disableDelayedDrag();
1499
+ }
1500
+ },
1501
+ _disableDelayedDrag: function _disableDelayedDrag() {
1502
+ dragEl && _disableDraggable(dragEl);
1503
+ clearTimeout(this._dragStartTimer);
1504
+
1505
+ this._disableDelayedDragEvents();
1506
+ },
1507
+ _disableDelayedDragEvents: function _disableDelayedDragEvents() {
1508
+ var ownerDocument = this.el.ownerDocument;
1509
+ off(ownerDocument, 'mouseup', this._disableDelayedDrag);
1510
+ off(ownerDocument, 'touchend', this._disableDelayedDrag);
1511
+ off(ownerDocument, 'touchcancel', this._disableDelayedDrag);
1512
+ off(ownerDocument, 'mousemove', this._delayedDragTouchMoveHandler);
1513
+ off(ownerDocument, 'touchmove', this._delayedDragTouchMoveHandler);
1514
+ off(ownerDocument, 'pointermove', this._delayedDragTouchMoveHandler);
1515
+ },
1516
+ _triggerDragStart: function _triggerDragStart(
1517
+ /** Event */
1518
+ evt,
1519
+ /** Touch */
1520
+ touch) {
1521
+ touch = touch || evt.pointerType == 'touch' && evt;
1522
+
1523
+ if (!this.nativeDraggable || touch) {
1524
+ if (this.options.supportPointer) {
1525
+ on(document, 'pointermove', this._onTouchMove);
1526
+ } else if (touch) {
1527
+ on(document, 'touchmove', this._onTouchMove);
1528
+ } else {
1529
+ on(document, 'mousemove', this._onTouchMove);
1530
+ }
1531
+ } else {
1532
+ on(dragEl, 'dragend', this);
1533
+ on(rootEl, 'dragstart', this._onDragStart);
1534
+ }
1535
+
1536
+ try {
1537
+ if (document.selection) {
1538
+ // Timeout neccessary for IE9
1539
+ _nextTick(function () {
1540
+ document.selection.empty();
1541
+ });
1542
+ } else {
1543
+ window.getSelection().removeAllRanges();
1544
+ }
1545
+ } catch (err) {}
1546
+ },
1547
+ _dragStarted: function _dragStarted(fallback, evt) {
1548
+
1549
+ awaitingDragStarted = false;
1550
+
1551
+ if (rootEl && dragEl) {
1552
+ pluginEvent('dragStarted', this, {
1553
+ evt: evt
1554
+ });
1555
+
1556
+ if (this.nativeDraggable) {
1557
+ on(document, 'dragover', _checkOutsideTargetEl);
1558
+ }
1559
+
1560
+ var options = this.options; // Apply effect
1561
+
1562
+ !fallback && toggleClass(dragEl, options.dragClass, false);
1563
+ toggleClass(dragEl, options.ghostClass, true);
1564
+ Sortable.active = this;
1565
+ fallback && this._appendGhost(); // Drag start event
1566
+
1567
+ _dispatchEvent({
1568
+ sortable: this,
1569
+ name: 'start',
1570
+ originalEvent: evt
1571
+ });
1572
+ } else {
1573
+ this._nulling();
1574
+ }
1575
+ },
1576
+ _emulateDragOver: function _emulateDragOver() {
1577
+ if (touchEvt) {
1578
+ this._lastX = touchEvt.clientX;
1579
+ this._lastY = touchEvt.clientY;
1580
+
1581
+ _hideGhostForTarget();
1582
+
1583
+ var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
1584
+ var parent = target;
1585
+
1586
+ while (target && target.shadowRoot) {
1587
+ target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
1588
+ if (target === parent) break;
1589
+ parent = target;
1590
+ }
1591
+
1592
+ dragEl.parentNode[expando]._isOutsideThisEl(target);
1593
+
1594
+ if (parent) {
1595
+ do {
1596
+ if (parent[expando]) {
1597
+ var inserted = void 0;
1598
+ inserted = parent[expando]._onDragOver({
1599
+ clientX: touchEvt.clientX,
1600
+ clientY: touchEvt.clientY,
1601
+ target: target,
1602
+ rootEl: parent
1603
+ });
1604
+
1605
+ if (inserted && !this.options.dragoverBubble) {
1606
+ break;
1607
+ }
1608
+ }
1609
+
1610
+ target = parent; // store last element
1611
+ }
1612
+ /* jshint boss:true */
1613
+ while (parent = parent.parentNode);
1614
+ }
1615
+
1616
+ _unhideGhostForTarget();
1617
+ }
1618
+ },
1619
+ _onTouchMove: function _onTouchMove(
1620
+ /**TouchEvent*/
1621
+ evt) {
1622
+ if (tapEvt) {
1623
+ var options = this.options,
1624
+ fallbackTolerance = options.fallbackTolerance,
1625
+ fallbackOffset = options.fallbackOffset,
1626
+ touch = evt.touches ? evt.touches[0] : evt,
1627
+ ghostMatrix = ghostEl && matrix(ghostEl, true),
1628
+ scaleX = ghostEl && ghostMatrix && ghostMatrix.a,
1629
+ scaleY = ghostEl && ghostMatrix && ghostMatrix.d,
1630
+ relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent),
1631
+ dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1),
1632
+ dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1); // only set the status to dragging, when we are actually dragging
1633
+
1634
+ if (!Sortable.active && !awaitingDragStarted) {
1635
+ if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {
1636
+ return;
1637
+ }
1638
+
1639
+ this._onDragStart(evt, true);
1640
+ }
1641
+
1642
+ if (ghostEl) {
1643
+ if (ghostMatrix) {
1644
+ ghostMatrix.e += dx - (lastDx || 0);
1645
+ ghostMatrix.f += dy - (lastDy || 0);
1646
+ } else {
1647
+ ghostMatrix = {
1648
+ a: 1,
1649
+ b: 0,
1650
+ c: 0,
1651
+ d: 1,
1652
+ e: dx,
1653
+ f: dy
1654
+ };
1655
+ }
1656
+
1657
+ var cssMatrix = "matrix(".concat(ghostMatrix.a, ",").concat(ghostMatrix.b, ",").concat(ghostMatrix.c, ",").concat(ghostMatrix.d, ",").concat(ghostMatrix.e, ",").concat(ghostMatrix.f, ")");
1658
+ css(ghostEl, 'webkitTransform', cssMatrix);
1659
+ css(ghostEl, 'mozTransform', cssMatrix);
1660
+ css(ghostEl, 'msTransform', cssMatrix);
1661
+ css(ghostEl, 'transform', cssMatrix);
1662
+ lastDx = dx;
1663
+ lastDy = dy;
1664
+ touchEvt = touch;
1665
+ }
1666
+
1667
+ evt.cancelable && evt.preventDefault();
1668
+ }
1669
+ },
1670
+ _appendGhost: function _appendGhost() {
1671
+ // Bug if using scale(): https://stackoverflow.com/questions/2637058
1672
+ // Not being adjusted for
1673
+ if (!ghostEl) {
1674
+ var container = this.options.fallbackOnBody ? document.body : rootEl,
1675
+ rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container),
1676
+ options = this.options; // Position absolutely
1677
+
1678
+ if (PositionGhostAbsolutely) {
1679
+ // Get relatively positioned parent
1680
+ ghostRelativeParent = container;
1681
+
1682
+ while (css(ghostRelativeParent, 'position') === 'static' && css(ghostRelativeParent, 'transform') === 'none' && ghostRelativeParent !== document) {
1683
+ ghostRelativeParent = ghostRelativeParent.parentNode;
1684
+ }
1685
+
1686
+ if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {
1687
+ if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();
1688
+ rect.top += ghostRelativeParent.scrollTop;
1689
+ rect.left += ghostRelativeParent.scrollLeft;
1690
+ } else {
1691
+ ghostRelativeParent = getWindowScrollingElement();
1692
+ }
1693
+
1694
+ ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);
1695
+ }
1696
+
1697
+ ghostEl = dragEl.cloneNode(true);
1698
+ toggleClass(ghostEl, options.ghostClass, false);
1699
+ toggleClass(ghostEl, options.fallbackClass, true);
1700
+ toggleClass(ghostEl, options.dragClass, true);
1701
+ css(ghostEl, 'transition', '');
1702
+ css(ghostEl, 'transform', '');
1703
+ css(ghostEl, 'box-sizing', 'border-box');
1704
+ css(ghostEl, 'margin', 0);
1705
+ css(ghostEl, 'top', rect.top);
1706
+ css(ghostEl, 'left', rect.left);
1707
+ css(ghostEl, 'width', rect.width);
1708
+ css(ghostEl, 'height', rect.height);
1709
+ css(ghostEl, 'opacity', '0.8');
1710
+ css(ghostEl, 'position', PositionGhostAbsolutely ? 'absolute' : 'fixed');
1711
+ css(ghostEl, 'zIndex', '100000');
1712
+ css(ghostEl, 'pointerEvents', 'none');
1713
+ Sortable.ghost = ghostEl;
1714
+ container.appendChild(ghostEl); // Set transform-origin
1715
+
1716
+ css(ghostEl, 'transform-origin', tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + '% ' + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + '%');
1717
+ }
1718
+ },
1719
+ _onDragStart: function _onDragStart(
1720
+ /**Event*/
1721
+ evt,
1722
+ /**boolean*/
1723
+ fallback) {
1724
+ var _this = this;
1725
+
1726
+ var dataTransfer = evt.dataTransfer;
1727
+ var options = _this.options;
1728
+ pluginEvent('dragStart', this, {
1729
+ evt: evt
1730
+ });
1731
+
1732
+ if (Sortable.eventCanceled) {
1733
+ this._onDrop();
1734
+
1735
+ return;
1736
+ }
1737
+
1738
+ pluginEvent('setupClone', this);
1739
+
1740
+ if (!Sortable.eventCanceled) {
1741
+ cloneEl = clone(dragEl);
1742
+ cloneEl.removeAttribute("id");
1743
+ cloneEl.draggable = false;
1744
+ cloneEl.style['will-change'] = '';
1745
+
1746
+ this._hideClone();
1747
+
1748
+ toggleClass(cloneEl, this.options.chosenClass, false);
1749
+ Sortable.clone = cloneEl;
1750
+ } // #1143: IFrame support workaround
1751
+
1752
+
1753
+ _this.cloneId = _nextTick(function () {
1754
+ pluginEvent('clone', _this);
1755
+ if (Sortable.eventCanceled) return;
1756
+
1757
+ if (!_this.options.removeCloneOnHide) {
1758
+ rootEl.insertBefore(cloneEl, dragEl);
1759
+ }
1760
+
1761
+ _this._hideClone();
1762
+
1763
+ _dispatchEvent({
1764
+ sortable: _this,
1765
+ name: 'clone'
1766
+ });
1767
+ });
1768
+ !fallback && toggleClass(dragEl, options.dragClass, true); // Set proper drop events
1769
+
1770
+ if (fallback) {
1771
+ ignoreNextClick = true;
1772
+ _this._loopId = setInterval(_this._emulateDragOver, 50);
1773
+ } else {
1774
+ // Undo what was set in _prepareDragStart before drag started
1775
+ off(document, 'mouseup', _this._onDrop);
1776
+ off(document, 'touchend', _this._onDrop);
1777
+ off(document, 'touchcancel', _this._onDrop);
1778
+
1779
+ if (dataTransfer) {
1780
+ dataTransfer.effectAllowed = 'move';
1781
+ options.setData && options.setData.call(_this, dataTransfer, dragEl);
1782
+ }
1783
+
1784
+ on(document, 'drop', _this); // #1276 fix:
1785
+
1786
+ css(dragEl, 'transform', 'translateZ(0)');
1787
+ }
1788
+
1789
+ awaitingDragStarted = true;
1790
+ _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
1791
+ on(document, 'selectstart', _this);
1792
+ moved = true;
1793
+
1794
+ if (Safari) {
1795
+ css(document.body, 'user-select', 'none');
1796
+ }
1797
+ },
1798
+ // Returns true - if no further action is needed (either inserted or another condition)
1799
+ _onDragOver: function _onDragOver(
1800
+ /**Event*/
1801
+ evt) {
1802
+ var el = this.el,
1803
+ target = evt.target,
1804
+ dragRect,
1805
+ targetRect,
1806
+ revert,
1807
+ options = this.options,
1808
+ group = options.group,
1809
+ activeSortable = Sortable.active,
1810
+ isOwner = activeGroup === group,
1811
+ canSort = options.sort,
1812
+ fromSortable = putSortable || activeSortable,
1813
+ vertical,
1814
+ _this = this,
1815
+ completedFired = false;
1816
+
1817
+ if (_silent) return;
1818
+
1819
+ function dragOverEvent(name, extra) {
1820
+ pluginEvent(name, _this, _objectSpread2({
1821
+ evt: evt,
1822
+ isOwner: isOwner,
1823
+ axis: vertical ? 'vertical' : 'horizontal',
1824
+ revert: revert,
1825
+ dragRect: dragRect,
1826
+ targetRect: targetRect,
1827
+ canSort: canSort,
1828
+ fromSortable: fromSortable,
1829
+ target: target,
1830
+ completed: completed,
1831
+ onMove: function onMove(target, after) {
1832
+ return _onMove(rootEl, el, dragEl, dragRect, target, getRect(target), evt, after);
1833
+ },
1834
+ changed: changed
1835
+ }, extra));
1836
+ } // Capture animation state
1837
+
1838
+
1839
+ function capture() {
1840
+ dragOverEvent('dragOverAnimationCapture');
1841
+
1842
+ _this.captureAnimationState();
1843
+
1844
+ if (_this !== fromSortable) {
1845
+ fromSortable.captureAnimationState();
1846
+ }
1847
+ } // Return invocation when dragEl is inserted (or completed)
1848
+
1849
+
1850
+ function completed(insertion) {
1851
+ dragOverEvent('dragOverCompleted', {
1852
+ insertion: insertion
1853
+ });
1854
+
1855
+ if (insertion) {
1856
+ // Clones must be hidden before folding animation to capture dragRectAbsolute properly
1857
+ if (isOwner) {
1858
+ activeSortable._hideClone();
1859
+ } else {
1860
+ activeSortable._showClone(_this);
1861
+ }
1862
+
1863
+ if (_this !== fromSortable) {
1864
+ // Set ghost class to new sortable's ghost class
1865
+ toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);
1866
+ toggleClass(dragEl, options.ghostClass, true);
1867
+ }
1868
+
1869
+ if (putSortable !== _this && _this !== Sortable.active) {
1870
+ putSortable = _this;
1871
+ } else if (_this === Sortable.active && putSortable) {
1872
+ putSortable = null;
1873
+ } // Animation
1874
+
1875
+
1876
+ if (fromSortable === _this) {
1877
+ _this._ignoreWhileAnimating = target;
1878
+ }
1879
+
1880
+ _this.animateAll(function () {
1881
+ dragOverEvent('dragOverAnimationComplete');
1882
+ _this._ignoreWhileAnimating = null;
1883
+ });
1884
+
1885
+ if (_this !== fromSortable) {
1886
+ fromSortable.animateAll();
1887
+ fromSortable._ignoreWhileAnimating = null;
1888
+ }
1889
+ } // Null lastTarget if it is not inside a previously swapped element
1890
+
1891
+
1892
+ if (target === dragEl && !dragEl.animated || target === el && !target.animated) {
1893
+ lastTarget = null;
1894
+ } // no bubbling and not fallback
1895
+
1896
+
1897
+ if (!options.dragoverBubble && !evt.rootEl && target !== document) {
1898
+ dragEl.parentNode[expando]._isOutsideThisEl(evt.target); // Do not detect for empty insert if already inserted
1899
+
1900
+
1901
+ !insertion && nearestEmptyInsertDetectEvent(evt);
1902
+ }
1903
+
1904
+ !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();
1905
+ return completedFired = true;
1906
+ } // Call when dragEl has been inserted
1907
+
1908
+
1909
+ function changed() {
1910
+ newIndex = index(dragEl);
1911
+ newDraggableIndex = index(dragEl, options.draggable);
1912
+
1913
+ _dispatchEvent({
1914
+ sortable: _this,
1915
+ name: 'change',
1916
+ toEl: el,
1917
+ newIndex: newIndex,
1918
+ newDraggableIndex: newDraggableIndex,
1919
+ originalEvent: evt
1920
+ });
1921
+ }
1922
+
1923
+ if (evt.preventDefault !== void 0) {
1924
+ evt.cancelable && evt.preventDefault();
1925
+ }
1926
+
1927
+ target = closest(target, options.draggable, el, true);
1928
+ dragOverEvent('dragOver');
1929
+ if (Sortable.eventCanceled) return completedFired;
1930
+
1931
+ if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {
1932
+ return completed(false);
1933
+ }
1934
+
1935
+ ignoreNextClick = false;
1936
+
1937
+ if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) // Reverting item into the original list
1938
+ : putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {
1939
+ vertical = this._getDirection(evt, target) === 'vertical';
1940
+ dragRect = getRect(dragEl);
1941
+ dragOverEvent('dragOverValid');
1942
+ if (Sortable.eventCanceled) return completedFired;
1943
+
1944
+ if (revert) {
1945
+ parentEl = rootEl; // actualization
1946
+
1947
+ capture();
1948
+
1949
+ this._hideClone();
1950
+
1951
+ dragOverEvent('revert');
1952
+
1953
+ if (!Sortable.eventCanceled) {
1954
+ if (nextEl) {
1955
+ rootEl.insertBefore(dragEl, nextEl);
1956
+ } else {
1957
+ rootEl.appendChild(dragEl);
1958
+ }
1959
+ }
1960
+
1961
+ return completed(true);
1962
+ }
1963
+
1964
+ var elLastChild = lastChild(el, options.draggable);
1965
+
1966
+ if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {
1967
+ // Insert to end of list
1968
+ // If already at end of list: Do not insert
1969
+ if (elLastChild === dragEl) {
1970
+ return completed(false);
1971
+ } // if there is a last element, it is the target
1972
+
1973
+
1974
+ if (elLastChild && el === evt.target) {
1975
+ target = elLastChild;
1976
+ }
1977
+
1978
+ if (target) {
1979
+ targetRect = getRect(target);
1980
+ }
1981
+
1982
+ if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
1983
+ capture();
1984
+
1985
+ if (elLastChild && elLastChild.nextSibling) {
1986
+ // the last draggable element is not the last node
1987
+ el.insertBefore(dragEl, elLastChild.nextSibling);
1988
+ } else {
1989
+ el.appendChild(dragEl);
1990
+ }
1991
+
1992
+ parentEl = el; // actualization
1993
+
1994
+ changed();
1995
+ return completed(true);
1996
+ }
1997
+ } else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {
1998
+ // Insert to start of list
1999
+ var firstChild = getChild(el, 0, options, true);
2000
+
2001
+ if (firstChild === dragEl) {
2002
+ return completed(false);
2003
+ }
2004
+
2005
+ target = firstChild;
2006
+ targetRect = getRect(target);
2007
+
2008
+ if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {
2009
+ capture();
2010
+ el.insertBefore(dragEl, firstChild);
2011
+ parentEl = el; // actualization
2012
+
2013
+ changed();
2014
+ return completed(true);
2015
+ }
2016
+ } else if (target.parentNode === el) {
2017
+ targetRect = getRect(target);
2018
+ var direction = 0,
2019
+ targetBeforeFirstSwap,
2020
+ differentLevel = dragEl.parentNode !== el,
2021
+ differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical),
2022
+ side1 = vertical ? 'top' : 'left',
2023
+ scrolledPastTop = isScrolledPast(target, 'top', 'top') || isScrolledPast(dragEl, 'top', 'top'),
2024
+ scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;
2025
+
2026
+ if (lastTarget !== target) {
2027
+ targetBeforeFirstSwap = targetRect[side1];
2028
+ pastFirstInvertThresh = false;
2029
+ isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;
2030
+ }
2031
+
2032
+ direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);
2033
+ var sibling;
2034
+
2035
+ if (direction !== 0) {
2036
+ // Check if target is beside dragEl in respective direction (ignoring hidden elements)
2037
+ var dragIndex = index(dragEl);
2038
+
2039
+ do {
2040
+ dragIndex -= direction;
2041
+ sibling = parentEl.children[dragIndex];
2042
+ } while (sibling && (css(sibling, 'display') === 'none' || sibling === ghostEl));
2043
+ } // If dragEl is already beside target: Do not insert
2044
+
2045
+
2046
+ if (direction === 0 || sibling === target) {
2047
+ return completed(false);
2048
+ }
2049
+
2050
+ lastTarget = target;
2051
+ lastDirection = direction;
2052
+ var nextSibling = target.nextElementSibling,
2053
+ after = false;
2054
+ after = direction === 1;
2055
+
2056
+ var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);
2057
+
2058
+ if (moveVector !== false) {
2059
+ if (moveVector === 1 || moveVector === -1) {
2060
+ after = moveVector === 1;
2061
+ }
2062
+
2063
+ _silent = true;
2064
+ setTimeout(_unsilent, 30);
2065
+ capture();
2066
+
2067
+ if (after && !nextSibling) {
2068
+ el.appendChild(dragEl);
2069
+ } else {
2070
+ target.parentNode.insertBefore(dragEl, after ? nextSibling : target);
2071
+ } // Undo chrome's scroll adjustment (has no effect on other browsers)
2072
+
2073
+
2074
+ if (scrolledPastTop) {
2075
+ scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);
2076
+ }
2077
+
2078
+ parentEl = dragEl.parentNode; // actualization
2079
+ // must be done before animation
2080
+
2081
+ if (targetBeforeFirstSwap !== undefined && !isCircumstantialInvert) {
2082
+ targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);
2083
+ }
2084
+
2085
+ changed();
2086
+ return completed(true);
2087
+ }
2088
+ }
2089
+
2090
+ if (el.contains(dragEl)) {
2091
+ return completed(false);
2092
+ }
2093
+ }
2094
+
2095
+ return false;
2096
+ },
2097
+ _ignoreWhileAnimating: null,
2098
+ _offMoveEvents: function _offMoveEvents() {
2099
+ off(document, 'mousemove', this._onTouchMove);
2100
+ off(document, 'touchmove', this._onTouchMove);
2101
+ off(document, 'pointermove', this._onTouchMove);
2102
+ off(document, 'dragover', nearestEmptyInsertDetectEvent);
2103
+ off(document, 'mousemove', nearestEmptyInsertDetectEvent);
2104
+ off(document, 'touchmove', nearestEmptyInsertDetectEvent);
2105
+ },
2106
+ _offUpEvents: function _offUpEvents() {
2107
+ var ownerDocument = this.el.ownerDocument;
2108
+ off(ownerDocument, 'mouseup', this._onDrop);
2109
+ off(ownerDocument, 'touchend', this._onDrop);
2110
+ off(ownerDocument, 'pointerup', this._onDrop);
2111
+ off(ownerDocument, 'touchcancel', this._onDrop);
2112
+ off(document, 'selectstart', this);
2113
+ },
2114
+ _onDrop: function _onDrop(
2115
+ /**Event*/
2116
+ evt) {
2117
+ var el = this.el,
2118
+ options = this.options; // Get the index of the dragged element within its parent
2119
+
2120
+ newIndex = index(dragEl);
2121
+ newDraggableIndex = index(dragEl, options.draggable);
2122
+ pluginEvent('drop', this, {
2123
+ evt: evt
2124
+ });
2125
+ parentEl = dragEl && dragEl.parentNode; // Get again after plugin event
2126
+
2127
+ newIndex = index(dragEl);
2128
+ newDraggableIndex = index(dragEl, options.draggable);
2129
+
2130
+ if (Sortable.eventCanceled) {
2131
+ this._nulling();
2132
+
2133
+ return;
2134
+ }
2135
+
2136
+ awaitingDragStarted = false;
2137
+ isCircumstantialInvert = false;
2138
+ pastFirstInvertThresh = false;
2139
+ clearInterval(this._loopId);
2140
+ clearTimeout(this._dragStartTimer);
2141
+
2142
+ _cancelNextTick(this.cloneId);
2143
+
2144
+ _cancelNextTick(this._dragStartId); // Unbind events
2145
+
2146
+
2147
+ if (this.nativeDraggable) {
2148
+ off(document, 'drop', this);
2149
+ off(el, 'dragstart', this._onDragStart);
2150
+ }
2151
+
2152
+ this._offMoveEvents();
2153
+
2154
+ this._offUpEvents();
2155
+
2156
+ if (Safari) {
2157
+ css(document.body, 'user-select', '');
2158
+ }
2159
+
2160
+ css(dragEl, 'transform', '');
2161
+
2162
+ if (evt) {
2163
+ if (moved) {
2164
+ evt.cancelable && evt.preventDefault();
2165
+ !options.dropBubble && evt.stopPropagation();
2166
+ }
2167
+
2168
+ ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);
2169
+
2170
+ if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {
2171
+ // Remove clone(s)
2172
+ cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);
2173
+ }
2174
+
2175
+ if (dragEl) {
2176
+ if (this.nativeDraggable) {
2177
+ off(dragEl, 'dragend', this);
2178
+ }
2179
+
2180
+ _disableDraggable(dragEl);
2181
+
2182
+ dragEl.style['will-change'] = ''; // Remove classes
2183
+ // ghostClass is added in dragStarted
2184
+
2185
+ if (moved && !awaitingDragStarted) {
2186
+ toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);
2187
+ }
2188
+
2189
+ toggleClass(dragEl, this.options.chosenClass, false); // Drag stop event
2190
+
2191
+ _dispatchEvent({
2192
+ sortable: this,
2193
+ name: 'unchoose',
2194
+ toEl: parentEl,
2195
+ newIndex: null,
2196
+ newDraggableIndex: null,
2197
+ originalEvent: evt
2198
+ });
2199
+
2200
+ if (rootEl !== parentEl) {
2201
+ if (newIndex >= 0) {
2202
+ // Add event
2203
+ _dispatchEvent({
2204
+ rootEl: parentEl,
2205
+ name: 'add',
2206
+ toEl: parentEl,
2207
+ fromEl: rootEl,
2208
+ originalEvent: evt
2209
+ }); // Remove event
2210
+
2211
+
2212
+ _dispatchEvent({
2213
+ sortable: this,
2214
+ name: 'remove',
2215
+ toEl: parentEl,
2216
+ originalEvent: evt
2217
+ }); // drag from one list and drop into another
2218
+
2219
+
2220
+ _dispatchEvent({
2221
+ rootEl: parentEl,
2222
+ name: 'sort',
2223
+ toEl: parentEl,
2224
+ fromEl: rootEl,
2225
+ originalEvent: evt
2226
+ });
2227
+
2228
+ _dispatchEvent({
2229
+ sortable: this,
2230
+ name: 'sort',
2231
+ toEl: parentEl,
2232
+ originalEvent: evt
2233
+ });
2234
+ }
2235
+
2236
+ putSortable && putSortable.save();
2237
+ } else {
2238
+ if (newIndex !== oldIndex) {
2239
+ if (newIndex >= 0) {
2240
+ // drag & drop within the same list
2241
+ _dispatchEvent({
2242
+ sortable: this,
2243
+ name: 'update',
2244
+ toEl: parentEl,
2245
+ originalEvent: evt
2246
+ });
2247
+
2248
+ _dispatchEvent({
2249
+ sortable: this,
2250
+ name: 'sort',
2251
+ toEl: parentEl,
2252
+ originalEvent: evt
2253
+ });
2254
+ }
2255
+ }
2256
+ }
2257
+
2258
+ if (Sortable.active) {
2259
+ /* jshint eqnull:true */
2260
+ if (newIndex == null || newIndex === -1) {
2261
+ newIndex = oldIndex;
2262
+ newDraggableIndex = oldDraggableIndex;
2263
+ }
2264
+
2265
+ _dispatchEvent({
2266
+ sortable: this,
2267
+ name: 'end',
2268
+ toEl: parentEl,
2269
+ originalEvent: evt
2270
+ }); // Save sorting
2271
+
2272
+
2273
+ this.save();
2274
+ }
2275
+ }
2276
+ }
2277
+
2278
+ this._nulling();
2279
+ },
2280
+ _nulling: function _nulling() {
2281
+ pluginEvent('nulling', this);
2282
+ 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;
2283
+ savedInputChecked.forEach(function (el) {
2284
+ el.checked = true;
2285
+ });
2286
+ savedInputChecked.length = lastDx = lastDy = 0;
2287
+ },
2288
+ handleEvent: function handleEvent(
2289
+ /**Event*/
2290
+ evt) {
2291
+ switch (evt.type) {
2292
+ case 'drop':
2293
+ case 'dragend':
2294
+ this._onDrop(evt);
2295
+
2296
+ break;
2297
+
2298
+ case 'dragenter':
2299
+ case 'dragover':
2300
+ if (dragEl) {
2301
+ this._onDragOver(evt);
2302
+
2303
+ _globalDragOver(evt);
2304
+ }
2305
+
2306
+ break;
2307
+
2308
+ case 'selectstart':
2309
+ evt.preventDefault();
2310
+ break;
2311
+ }
2312
+ },
2313
+
2314
+ /**
2315
+ * Serializes the item into an array of string.
2316
+ * @returns {String[]}
2317
+ */
2318
+ toArray: function toArray() {
2319
+ var order = [],
2320
+ el,
2321
+ children = this.el.children,
2322
+ i = 0,
2323
+ n = children.length,
2324
+ options = this.options;
2325
+
2326
+ for (; i < n; i++) {
2327
+ el = children[i];
2328
+
2329
+ if (closest(el, options.draggable, this.el, false)) {
2330
+ order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));
2331
+ }
2332
+ }
2333
+
2334
+ return order;
2335
+ },
2336
+
2337
+ /**
2338
+ * Sorts the elements according to the array.
2339
+ * @param {String[]} order order of the items
2340
+ */
2341
+ sort: function sort(order, useAnimation) {
2342
+ var items = {},
2343
+ rootEl = this.el;
2344
+ this.toArray().forEach(function (id, i) {
2345
+ var el = rootEl.children[i];
2346
+
2347
+ if (closest(el, this.options.draggable, rootEl, false)) {
2348
+ items[id] = el;
2349
+ }
2350
+ }, this);
2351
+ useAnimation && this.captureAnimationState();
2352
+ order.forEach(function (id) {
2353
+ if (items[id]) {
2354
+ rootEl.removeChild(items[id]);
2355
+ rootEl.appendChild(items[id]);
2356
+ }
2357
+ });
2358
+ useAnimation && this.animateAll();
2359
+ },
2360
+
2361
+ /**
2362
+ * Save the current sorting
2363
+ */
2364
+ save: function save() {
2365
+ var store = this.options.store;
2366
+ store && store.set && store.set(this);
2367
+ },
2368
+
2369
+ /**
2370
+ * 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.
2371
+ * @param {HTMLElement} el
2372
+ * @param {String} [selector] default: `options.draggable`
2373
+ * @returns {HTMLElement|null}
2374
+ */
2375
+ closest: function closest$1(el, selector) {
2376
+ return closest(el, selector || this.options.draggable, this.el, false);
2377
+ },
2378
+
2379
+ /**
2380
+ * Set/get option
2381
+ * @param {string} name
2382
+ * @param {*} [value]
2383
+ * @returns {*}
2384
+ */
2385
+ option: function option(name, value) {
2386
+ var options = this.options;
2387
+
2388
+ if (value === void 0) {
2389
+ return options[name];
2390
+ } else {
2391
+ var modifiedValue = PluginManager.modifyOption(this, name, value);
2392
+
2393
+ if (typeof modifiedValue !== 'undefined') {
2394
+ options[name] = modifiedValue;
2395
+ } else {
2396
+ options[name] = value;
2397
+ }
2398
+
2399
+ if (name === 'group') {
2400
+ _prepareGroup(options);
2401
+ }
2402
+ }
2403
+ },
2404
+
2405
+ /**
2406
+ * Destroy
2407
+ */
2408
+ destroy: function destroy() {
2409
+ pluginEvent('destroy', this);
2410
+ var el = this.el;
2411
+ el[expando] = null;
2412
+ off(el, 'mousedown', this._onTapStart);
2413
+ off(el, 'touchstart', this._onTapStart);
2414
+ off(el, 'pointerdown', this._onTapStart);
2415
+
2416
+ if (this.nativeDraggable) {
2417
+ off(el, 'dragover', this);
2418
+ off(el, 'dragenter', this);
2419
+ } // Remove draggable attributes
2420
+
2421
+
2422
+ Array.prototype.forEach.call(el.querySelectorAll('[draggable]'), function (el) {
2423
+ el.removeAttribute('draggable');
2424
+ });
2425
+
2426
+ this._onDrop();
2427
+
2428
+ this._disableDelayedDragEvents();
2429
+
2430
+ sortables.splice(sortables.indexOf(this.el), 1);
2431
+ this.el = el = null;
2432
+ },
2433
+ _hideClone: function _hideClone() {
2434
+ if (!cloneHidden) {
2435
+ pluginEvent('hideClone', this);
2436
+ if (Sortable.eventCanceled) return;
2437
+ css(cloneEl, 'display', 'none');
2438
+
2439
+ if (this.options.removeCloneOnHide && cloneEl.parentNode) {
2440
+ cloneEl.parentNode.removeChild(cloneEl);
2441
+ }
2442
+
2443
+ cloneHidden = true;
2444
+ }
2445
+ },
2446
+ _showClone: function _showClone(putSortable) {
2447
+ if (putSortable.lastPutMode !== 'clone') {
2448
+ this._hideClone();
2449
+
2450
+ return;
2451
+ }
2452
+
2453
+ if (cloneHidden) {
2454
+ pluginEvent('showClone', this);
2455
+ if (Sortable.eventCanceled) return; // show clone at dragEl or original position
2456
+
2457
+ if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {
2458
+ rootEl.insertBefore(cloneEl, dragEl);
2459
+ } else if (nextEl) {
2460
+ rootEl.insertBefore(cloneEl, nextEl);
2461
+ } else {
2462
+ rootEl.appendChild(cloneEl);
2463
+ }
2464
+
2465
+ if (this.options.group.revertClone) {
2466
+ this.animate(dragEl, cloneEl);
2467
+ }
2468
+
2469
+ css(cloneEl, 'display', '');
2470
+ cloneHidden = false;
2471
+ }
2472
+ }
2473
+ };
2474
+
2475
+ function _globalDragOver(
2476
+ /**Event*/
2477
+ evt) {
2478
+ if (evt.dataTransfer) {
2479
+ evt.dataTransfer.dropEffect = 'move';
2480
+ }
2481
+
2482
+ evt.cancelable && evt.preventDefault();
2483
+ }
2484
+
2485
+ function _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {
2486
+ var evt,
2487
+ sortable = fromEl[expando],
2488
+ onMoveFn = sortable.options.onMove,
2489
+ retVal; // Support for new CustomEvent feature
2490
+
2491
+ if (window.CustomEvent && !IE11OrLess && !Edge) {
2492
+ evt = new CustomEvent('move', {
2493
+ bubbles: true,
2494
+ cancelable: true
2495
+ });
2496
+ } else {
2497
+ evt = document.createEvent('Event');
2498
+ evt.initEvent('move', true, true);
2499
+ }
2500
+
2501
+ evt.to = toEl;
2502
+ evt.from = fromEl;
2503
+ evt.dragged = dragEl;
2504
+ evt.draggedRect = dragRect;
2505
+ evt.related = targetEl || toEl;
2506
+ evt.relatedRect = targetRect || getRect(toEl);
2507
+ evt.willInsertAfter = willInsertAfter;
2508
+ evt.originalEvent = originalEvent;
2509
+ fromEl.dispatchEvent(evt);
2510
+
2511
+ if (onMoveFn) {
2512
+ retVal = onMoveFn.call(sortable, evt, originalEvent);
2513
+ }
2514
+
2515
+ return retVal;
2516
+ }
2517
+
2518
+ function _disableDraggable(el) {
2519
+ el.draggable = false;
2520
+ }
2521
+
2522
+ function _unsilent() {
2523
+ _silent = false;
2524
+ }
2525
+
2526
+ function _ghostIsFirst(evt, vertical, sortable) {
2527
+ var rect = getRect(getChild(sortable.el, 0, sortable.options, true));
2528
+ var spacer = 10;
2529
+ return vertical ? evt.clientX < rect.left - spacer || evt.clientY < rect.top && evt.clientX < rect.right : evt.clientY < rect.top - spacer || evt.clientY < rect.bottom && evt.clientX < rect.left;
2530
+ }
2531
+
2532
+ function _ghostIsLast(evt, vertical, sortable) {
2533
+ var rect = getRect(lastChild(sortable.el, sortable.options.draggable));
2534
+ var spacer = 10;
2535
+ return vertical ? evt.clientX > rect.right + spacer || evt.clientX <= rect.right && evt.clientY > rect.bottom && evt.clientX >= rect.left : evt.clientX > rect.right && evt.clientY > rect.top || evt.clientX <= rect.right && evt.clientY > rect.bottom + spacer;
2536
+ }
2537
+
2538
+ function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {
2539
+ var mouseOnAxis = vertical ? evt.clientY : evt.clientX,
2540
+ targetLength = vertical ? targetRect.height : targetRect.width,
2541
+ targetS1 = vertical ? targetRect.top : targetRect.left,
2542
+ targetS2 = vertical ? targetRect.bottom : targetRect.right,
2543
+ invert = false;
2544
+
2545
+ if (!invertSwap) {
2546
+ // Never invert or create dragEl shadow when target movemenet causes mouse to move past the end of regular swapThreshold
2547
+ if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {
2548
+ // multiplied only by swapThreshold because mouse will already be inside target by (1 - threshold) * targetLength / 2
2549
+ // check if past first invert threshold on side opposite of lastDirection
2550
+ if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {
2551
+ // past first invert threshold, do not restrict inverted threshold to dragEl shadow
2552
+ pastFirstInvertThresh = true;
2553
+ }
2554
+
2555
+ if (!pastFirstInvertThresh) {
2556
+ // dragEl shadow (target move distance shadow)
2557
+ if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance // over dragEl shadow
2558
+ : mouseOnAxis > targetS2 - targetMoveDistance) {
2559
+ return -lastDirection;
2560
+ }
2561
+ } else {
2562
+ invert = true;
2563
+ }
2564
+ } else {
2565
+ // Regular
2566
+ if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {
2567
+ return _getInsertDirection(target);
2568
+ }
2569
+ }
2570
+ }
2571
+
2572
+ invert = invert || invertSwap;
2573
+
2574
+ if (invert) {
2575
+ // Invert of regular
2576
+ if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {
2577
+ return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;
2578
+ }
2579
+ }
2580
+
2581
+ return 0;
2582
+ }
2583
+ /**
2584
+ * Gets the direction dragEl must be swapped relative to target in order to make it
2585
+ * seem that dragEl has been "inserted" into that element's position
2586
+ * @param {HTMLElement} target The target whose position dragEl is being inserted at
2587
+ * @return {Number} Direction dragEl must be swapped
2588
+ */
2589
+
2590
+
2591
+ function _getInsertDirection(target) {
2592
+ if (index(dragEl) < index(target)) {
2593
+ return 1;
2594
+ } else {
2595
+ return -1;
2596
+ }
2597
+ }
2598
+ /**
2599
+ * Generate id
2600
+ * @param {HTMLElement} el
2601
+ * @returns {String}
2602
+ * @private
2603
+ */
2604
+
2605
+
2606
+ function _generateId(el) {
2607
+ var str = el.tagName + el.className + el.src + el.href + el.textContent,
2608
+ i = str.length,
2609
+ sum = 0;
2610
+
2611
+ while (i--) {
2612
+ sum += str.charCodeAt(i);
2613
+ }
2614
+
2615
+ return sum.toString(36);
2616
+ }
2617
+
2618
+ function _saveInputCheckedState(root) {
2619
+ savedInputChecked.length = 0;
2620
+ var inputs = root.getElementsByTagName('input');
2621
+ var idx = inputs.length;
2622
+
2623
+ while (idx--) {
2624
+ var el = inputs[idx];
2625
+ el.checked && savedInputChecked.push(el);
2626
+ }
2627
+ }
2628
+
2629
+ function _nextTick(fn) {
2630
+ return setTimeout(fn, 0);
2631
+ }
2632
+
2633
+ function _cancelNextTick(id) {
2634
+ return clearTimeout(id);
2635
+ } // Fixed #973:
2636
+
2637
+
2638
+ if (documentExists) {
2639
+ on(document, 'touchmove', function (evt) {
2640
+ if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {
2641
+ evt.preventDefault();
2642
+ }
2643
+ });
2644
+ } // Export utils
2645
+
2646
+
2647
+ Sortable.utils = {
2648
+ on: on,
2649
+ off: off,
2650
+ css: css,
2651
+ find: find,
2652
+ is: function is(el, selector) {
2653
+ return !!closest(el, selector, el, false);
2654
+ },
2655
+ extend: extend,
2656
+ throttle: throttle,
2657
+ closest: closest,
2658
+ toggleClass: toggleClass,
2659
+ clone: clone,
2660
+ index: index,
2661
+ nextTick: _nextTick,
2662
+ cancelNextTick: _cancelNextTick,
2663
+ detectDirection: _detectDirection,
2664
+ getChild: getChild
2665
+ };
2666
+ /**
2667
+ * Get the Sortable instance of an element
2668
+ * @param {HTMLElement} element The element
2669
+ * @return {Sortable|undefined} The instance of Sortable
2670
+ */
2671
+
2672
+ Sortable.get = function (element) {
2673
+ return element[expando];
2674
+ };
2675
+ /**
2676
+ * Mount a plugin to Sortable
2677
+ * @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
2678
+ */
2679
+
2680
+
2681
+ Sortable.mount = function () {
2682
+ for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {
2683
+ plugins[_key] = arguments[_key];
2684
+ }
2685
+
2686
+ if (plugins[0].constructor === Array) plugins = plugins[0];
2687
+ plugins.forEach(function (plugin) {
2688
+ if (!plugin.prototype || !plugin.prototype.constructor) {
2689
+ throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(plugin));
2690
+ }
2691
+
2692
+ if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);
2693
+ PluginManager.mount(plugin);
2694
+ });
2695
+ };
2696
+ /**
2697
+ * Create sortable instance
2698
+ * @param {HTMLElement} el
2699
+ * @param {Object} [options]
2700
+ */
2701
+
2702
+
2703
+ Sortable.create = function (el, options) {
2704
+ return new Sortable(el, options);
2705
+ }; // Export
2706
+
2707
+
2708
+ Sortable.version = version;
2709
+
2710
+ var autoScrolls = [],
2711
+ scrollEl,
2712
+ scrollRootEl,
2713
+ scrolling = false,
2714
+ lastAutoScrollX,
2715
+ lastAutoScrollY,
2716
+ touchEvt$1,
2717
+ pointerElemChangedInterval;
2718
+
2719
+ function AutoScrollPlugin() {
2720
+ function AutoScroll() {
2721
+ this.defaults = {
2722
+ scroll: true,
2723
+ forceAutoScrollFallback: false,
2724
+ scrollSensitivity: 30,
2725
+ scrollSpeed: 10,
2726
+ bubbleScroll: true
2727
+ }; // Bind all private methods
2728
+
2729
+ for (var fn in this) {
2730
+ if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {
2731
+ this[fn] = this[fn].bind(this);
2732
+ }
2733
+ }
2734
+ }
2735
+
2736
+ AutoScroll.prototype = {
2737
+ dragStarted: function dragStarted(_ref) {
2738
+ var originalEvent = _ref.originalEvent;
2739
+
2740
+ if (this.sortable.nativeDraggable) {
2741
+ on(document, 'dragover', this._handleAutoScroll);
2742
+ } else {
2743
+ if (this.options.supportPointer) {
2744
+ on(document, 'pointermove', this._handleFallbackAutoScroll);
2745
+ } else if (originalEvent.touches) {
2746
+ on(document, 'touchmove', this._handleFallbackAutoScroll);
2747
+ } else {
2748
+ on(document, 'mousemove', this._handleFallbackAutoScroll);
2749
+ }
2750
+ }
2751
+ },
2752
+ dragOverCompleted: function dragOverCompleted(_ref2) {
2753
+ var originalEvent = _ref2.originalEvent;
2754
+
2755
+ // For when bubbling is canceled and using fallback (fallback 'touchmove' always reached)
2756
+ if (!this.options.dragOverBubble && !originalEvent.rootEl) {
2757
+ this._handleAutoScroll(originalEvent);
2758
+ }
2759
+ },
2760
+ drop: function drop() {
2761
+ if (this.sortable.nativeDraggable) {
2762
+ off(document, 'dragover', this._handleAutoScroll);
2763
+ } else {
2764
+ off(document, 'pointermove', this._handleFallbackAutoScroll);
2765
+ off(document, 'touchmove', this._handleFallbackAutoScroll);
2766
+ off(document, 'mousemove', this._handleFallbackAutoScroll);
2767
+ }
2768
+
2769
+ clearPointerElemChangedInterval();
2770
+ clearAutoScrolls();
2771
+ cancelThrottle();
2772
+ },
2773
+ nulling: function nulling() {
2774
+ touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;
2775
+ autoScrolls.length = 0;
2776
+ },
2777
+ _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {
2778
+ this._handleAutoScroll(evt, true);
2779
+ },
2780
+ _handleAutoScroll: function _handleAutoScroll(evt, fallback) {
2781
+ var _this = this;
2782
+
2783
+ var x = (evt.touches ? evt.touches[0] : evt).clientX,
2784
+ y = (evt.touches ? evt.touches[0] : evt).clientY,
2785
+ elem = document.elementFromPoint(x, y);
2786
+ touchEvt$1 = evt; // IE does not seem to have native autoscroll,
2787
+ // Edge's autoscroll seems too conditional,
2788
+ // MACOS Safari does not have autoscroll,
2789
+ // Firefox and Chrome are good
2790
+
2791
+ if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {
2792
+ autoScroll(evt, this.options, elem, fallback); // Listener for pointer element change
2793
+
2794
+ var ogElemScroller = getParentAutoScrollElement(elem, true);
2795
+
2796
+ if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {
2797
+ pointerElemChangedInterval && clearPointerElemChangedInterval(); // Detect for pointer elem change, emulating native DnD behaviour
2798
+
2799
+ pointerElemChangedInterval = setInterval(function () {
2800
+ var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);
2801
+
2802
+ if (newElem !== ogElemScroller) {
2803
+ ogElemScroller = newElem;
2804
+ clearAutoScrolls();
2805
+ }
2806
+
2807
+ autoScroll(evt, _this.options, newElem, fallback);
2808
+ }, 10);
2809
+ lastAutoScrollX = x;
2810
+ lastAutoScrollY = y;
2811
+ }
2812
+ } else {
2813
+ // if DnD is enabled (and browser has good autoscrolling), first autoscroll will already scroll, so get parent autoscroll of first autoscroll
2814
+ if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {
2815
+ clearAutoScrolls();
2816
+ return;
2817
+ }
2818
+
2819
+ autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);
2820
+ }
2821
+ }
2822
+ };
2823
+ return _extends(AutoScroll, {
2824
+ pluginName: 'scroll',
2825
+ initializeByDefault: true
2826
+ });
2827
+ }
2828
+
2829
+ function clearAutoScrolls() {
2830
+ autoScrolls.forEach(function (autoScroll) {
2831
+ clearInterval(autoScroll.pid);
2832
+ });
2833
+ autoScrolls = [];
2834
+ }
2835
+
2836
+ function clearPointerElemChangedInterval() {
2837
+ clearInterval(pointerElemChangedInterval);
2838
+ }
2839
+
2840
+ var autoScroll = throttle(function (evt, options, rootEl, isFallback) {
2841
+ // Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521
2842
+ if (!options.scroll) return;
2843
+ var x = (evt.touches ? evt.touches[0] : evt).clientX,
2844
+ y = (evt.touches ? evt.touches[0] : evt).clientY,
2845
+ sens = options.scrollSensitivity,
2846
+ speed = options.scrollSpeed,
2847
+ winScroller = getWindowScrollingElement();
2848
+ var scrollThisInstance = false,
2849
+ scrollCustomFn; // New scroll root, set scrollEl
2850
+
2851
+ if (scrollRootEl !== rootEl) {
2852
+ scrollRootEl = rootEl;
2853
+ clearAutoScrolls();
2854
+ scrollEl = options.scroll;
2855
+ scrollCustomFn = options.scrollFn;
2856
+
2857
+ if (scrollEl === true) {
2858
+ scrollEl = getParentAutoScrollElement(rootEl, true);
2859
+ }
2860
+ }
2861
+
2862
+ var layersOut = 0;
2863
+ var currentParent = scrollEl;
2864
+
2865
+ do {
2866
+ var el = currentParent,
2867
+ rect = getRect(el),
2868
+ top = rect.top,
2869
+ bottom = rect.bottom,
2870
+ left = rect.left,
2871
+ right = rect.right,
2872
+ width = rect.width,
2873
+ height = rect.height,
2874
+ canScrollX = void 0,
2875
+ canScrollY = void 0,
2876
+ scrollWidth = el.scrollWidth,
2877
+ scrollHeight = el.scrollHeight,
2878
+ elCSS = css(el),
2879
+ scrollPosX = el.scrollLeft,
2880
+ scrollPosY = el.scrollTop;
2881
+
2882
+ if (el === winScroller) {
2883
+ canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll' || elCSS.overflowX === 'visible');
2884
+ canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll' || elCSS.overflowY === 'visible');
2885
+ } else {
2886
+ canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll');
2887
+ canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll');
2888
+ }
2889
+
2890
+ var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);
2891
+ var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);
2892
+
2893
+ if (!autoScrolls[layersOut]) {
2894
+ for (var i = 0; i <= layersOut; i++) {
2895
+ if (!autoScrolls[i]) {
2896
+ autoScrolls[i] = {};
2897
+ }
2898
+ }
2899
+ }
2900
+
2901
+ if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {
2902
+ autoScrolls[layersOut].el = el;
2903
+ autoScrolls[layersOut].vx = vx;
2904
+ autoScrolls[layersOut].vy = vy;
2905
+ clearInterval(autoScrolls[layersOut].pid);
2906
+
2907
+ if (vx != 0 || vy != 0) {
2908
+ scrollThisInstance = true;
2909
+ /* jshint loopfunc:true */
2910
+
2911
+ autoScrolls[layersOut].pid = setInterval(function () {
2912
+ // emulate drag over during autoscroll (fallback), emulating native DnD behaviour
2913
+ if (isFallback && this.layer === 0) {
2914
+ Sortable.active._onTouchMove(touchEvt$1); // To move ghost if it is positioned absolutely
2915
+
2916
+ }
2917
+
2918
+ var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;
2919
+ var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;
2920
+
2921
+ if (typeof scrollCustomFn === 'function') {
2922
+ if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== 'continue') {
2923
+ return;
2924
+ }
2925
+ }
2926
+
2927
+ scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);
2928
+ }.bind({
2929
+ layer: layersOut
2930
+ }), 24);
2931
+ }
2932
+ }
2933
+
2934
+ layersOut++;
2935
+ } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));
2936
+
2937
+ scrolling = scrollThisInstance; // in case another function catches scrolling as false in between when it is not
2938
+ }, 30);
2939
+
2940
+ var drop = function drop(_ref) {
2941
+ var originalEvent = _ref.originalEvent,
2942
+ putSortable = _ref.putSortable,
2943
+ dragEl = _ref.dragEl,
2944
+ activeSortable = _ref.activeSortable,
2945
+ dispatchSortableEvent = _ref.dispatchSortableEvent,
2946
+ hideGhostForTarget = _ref.hideGhostForTarget,
2947
+ unhideGhostForTarget = _ref.unhideGhostForTarget;
2948
+ if (!originalEvent) return;
2949
+ var toSortable = putSortable || activeSortable;
2950
+ hideGhostForTarget();
2951
+ var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;
2952
+ var target = document.elementFromPoint(touch.clientX, touch.clientY);
2953
+ unhideGhostForTarget();
2954
+
2955
+ if (toSortable && !toSortable.el.contains(target)) {
2956
+ dispatchSortableEvent('spill');
2957
+ this.onSpill({
2958
+ dragEl: dragEl,
2959
+ putSortable: putSortable
2960
+ });
2961
+ }
2962
+ };
2963
+
2964
+ function Revert() {}
2965
+
2966
+ Revert.prototype = {
2967
+ startIndex: null,
2968
+ dragStart: function dragStart(_ref2) {
2969
+ var oldDraggableIndex = _ref2.oldDraggableIndex;
2970
+ this.startIndex = oldDraggableIndex;
2971
+ },
2972
+ onSpill: function onSpill(_ref3) {
2973
+ var dragEl = _ref3.dragEl,
2974
+ putSortable = _ref3.putSortable;
2975
+ this.sortable.captureAnimationState();
2976
+
2977
+ if (putSortable) {
2978
+ putSortable.captureAnimationState();
2979
+ }
2980
+
2981
+ var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);
2982
+
2983
+ if (nextSibling) {
2984
+ this.sortable.el.insertBefore(dragEl, nextSibling);
2985
+ } else {
2986
+ this.sortable.el.appendChild(dragEl);
2987
+ }
2988
+
2989
+ this.sortable.animateAll();
2990
+
2991
+ if (putSortable) {
2992
+ putSortable.animateAll();
2993
+ }
2994
+ },
2995
+ drop: drop
2996
+ };
2997
+
2998
+ _extends(Revert, {
2999
+ pluginName: 'revertOnSpill'
3000
+ });
3001
+
3002
+ function Remove() {}
3003
+
3004
+ Remove.prototype = {
3005
+ onSpill: function onSpill(_ref4) {
3006
+ var dragEl = _ref4.dragEl,
3007
+ putSortable = _ref4.putSortable;
3008
+ var parentSortable = putSortable || this.sortable;
3009
+ parentSortable.captureAnimationState();
3010
+ dragEl.parentNode && dragEl.parentNode.removeChild(dragEl);
3011
+ parentSortable.animateAll();
3012
+ },
3013
+ drop: drop
3014
+ };
3015
+
3016
+ _extends(Remove, {
3017
+ pluginName: 'removeOnSpill'
3018
+ });
3019
+
3020
+ Sortable.mount(new AutoScrollPlugin());
3021
+ Sortable.mount(Remove, Revert);
3022
+
3023
+ exports.Sortable = Sortable;