@nanoporetech-digital/components 7.9.2 → 8.0.0-alpha.1

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 (1782) hide show
  1. package/dist/cjs/active-element-DB7WRcF-.js +69 -0
  2. package/dist/cjs/algolia-data-CFc_52My.js +49 -0
  3. package/dist/cjs/algoliasearch-lite.esm.browser-DWj6KfUw.js +951 -0
  4. package/dist/cjs/component-store-DdyLi-VY.js +326 -0
  5. package/dist/cjs/date-utils-DqYlulq4.js +232 -0
  6. package/dist/cjs/dom-CvQQBdol.js +71 -0
  7. package/dist/cjs/drag-B5XXLJW9.js +72 -0
  8. package/dist/cjs/events-pBdXJwIU.js +37 -0
  9. package/dist/cjs/fade-Bq3U8uF7.js +212 -0
  10. package/dist/cjs/form-control-gUYfW0n-.js +84 -0
  11. package/dist/cjs/fullscreen-Czdw-D-5.js +132 -0
  12. package/dist/cjs/index-B76C6Tm9.js +3299 -0
  13. package/dist/cjs/index-ChTXweZN.js +198 -0
  14. package/dist/cjs/index-D0X7QVou.js +655 -0
  15. package/dist/cjs/index-browser-3bwVgSYS.js +13 -0
  16. package/dist/cjs/index.cjs.js +41 -24
  17. package/dist/cjs/lazyload-BpoUFECt.js +94 -0
  18. package/dist/cjs/loader.cjs.js +4 -9
  19. package/dist/cjs/local-logged-in-C8Qr7Q7o.js +223 -0
  20. package/dist/cjs/local-logged-out-fCQ614s8.js +219 -0
  21. package/dist/cjs/math-DIjJ3V87.js +39 -0
  22. package/dist/cjs/modal-DddxtK2h.js +49 -0
  23. package/dist/cjs/nano-accordion.cjs.entry.js +13 -27
  24. package/dist/cjs/nano-alert.cjs.entry.js +85 -36
  25. package/dist/cjs/nano-algolia-filter.cjs.entry.js +10 -15
  26. package/dist/cjs/nano-algolia-pagination.cjs.entry.js +5 -9
  27. package/dist/cjs/nano-algolia-results.cjs.entry.js +7 -11
  28. package/dist/cjs/nano-algolia.cjs.entry.js +22 -27
  29. package/dist/cjs/nano-animation.cjs.entry.js +5 -9
  30. package/dist/cjs/nano-avatar_5.cjs.entry.js +1778 -0
  31. package/dist/cjs/nano-breadcrumb.cjs.entry.js +41 -0
  32. package/dist/cjs/nano-card-carousel.cjs.entry.js +95 -0
  33. package/dist/cjs/nano-card.cjs.entry.js +23 -0
  34. package/dist/cjs/nano-checkbox-group.cjs.entry.js +79 -47
  35. package/dist/cjs/nano-checkbox.cjs.entry.js +34 -24
  36. package/dist/cjs/nano-collapsible-comparison.cjs.entry.js +62 -0
  37. package/dist/cjs/nano-components.cjs.js +8 -11
  38. package/dist/cjs/nano-content-links.cjs.entry.js +17 -0
  39. package/dist/cjs/nano-cta.cjs.entry.js +42 -0
  40. package/dist/cjs/nano-data-table-BNwDI1rg.js +1847 -0
  41. package/dist/cjs/nano-data-table.cjs.entry.js +17 -0
  42. package/dist/cjs/nano-datalist_3.cjs.entry.js +89 -262
  43. package/dist/cjs/nano-date-input.cjs.entry.js +14 -27
  44. package/dist/cjs/nano-date-picker_2.cjs.entry.js +999 -0
  45. package/dist/cjs/nano-details.cjs.entry.js +64 -81
  46. package/dist/cjs/nano-dialog.cjs.entry.js +45 -42
  47. package/dist/cjs/nano-dropdown_2.cjs.entry.js +640 -0
  48. package/dist/cjs/nano-field-validator.cjs.entry.js +9 -17
  49. package/dist/cjs/nano-file-upload.cjs.entry.js +6 -11
  50. package/dist/cjs/nano-footer.cjs.entry.js +25 -0
  51. package/dist/cjs/nano-global-nav.cjs.entry.js +416 -1171
  52. package/dist/cjs/nano-grid-item.cjs.entry.js +3 -7
  53. package/dist/cjs/nano-grid_2.cjs.entry.js +12 -18
  54. package/dist/cjs/nano-hero.cjs.entry.js +9 -16
  55. package/dist/cjs/nano-icon-item.cjs.entry.js +21 -0
  56. package/dist/cjs/nano-icon_3.cjs.entry.js +655 -0
  57. package/dist/cjs/nano-in-page-nav.cjs.entry.js +212 -0
  58. package/dist/cjs/nano-intersection-observe.cjs.entry.js +19 -17
  59. package/dist/cjs/nano-masked-overflow.cjs.entry.js +351 -0
  60. package/dist/cjs/nano-menu-drawer.cjs.entry.js +8 -13
  61. package/dist/cjs/nano-more-less.cjs.entry.js +5 -9
  62. package/dist/cjs/nano-nav-item.cjs.entry.js +271 -0
  63. package/dist/cjs/nano-progress-bar.cjs.entry.js +8 -13
  64. package/dist/cjs/nano-range.cjs.entry.js +9 -14
  65. package/dist/cjs/nano-rating.cjs.entry.js +10 -20
  66. package/dist/cjs/nano-resize-observe_2.cjs.entry.js +8 -13
  67. package/dist/cjs/nano-slide.cjs.entry.js +6 -11
  68. package/dist/cjs/nano-slides-Cj4figHV.js +3050 -0
  69. package/dist/cjs/nano-slides.cjs.entry.js +4 -8
  70. package/dist/cjs/nano-sortable.cjs.entry.js +11 -14
  71. package/dist/cjs/nano-spinner.cjs.entry.js +6 -11
  72. package/dist/cjs/nano-split-pane.cjs.entry.js +9 -14
  73. package/dist/cjs/nano-sticker.cjs.entry.js +12 -20
  74. package/dist/cjs/nano-tab-content.cjs.entry.js +9 -14
  75. package/dist/cjs/nano-tab-group.cjs.entry.js +64 -228
  76. package/dist/cjs/nano-tab.cjs.entry.js +18 -20
  77. package/dist/cjs/nano-table.cjs.entry.js +232 -13
  78. package/dist/cjs/page-dots-E6b7S4vs.js +138 -0
  79. package/dist/cjs/popover-CpIMxMWJ.js +1947 -0
  80. package/dist/cjs/renderer-Z8wHFL4e.js +71 -0
  81. package/dist/cjs/scroll-DspYj7mY.js +185 -0
  82. package/dist/cjs/search-insights-BtxuX7Wv.js +50 -0
  83. package/dist/cjs/slot-B4QUWT-c.js +107 -0
  84. package/dist/cjs/style-BccHkuhC.js +58 -0
  85. package/dist/cjs/tabbable-YPytg5sg.js +124 -0
  86. package/dist/cjs/table.worker-BTF0UXAd.js +4 -0
  87. package/dist/cjs/table.worker-bFxUCos7.js +32 -0
  88. package/dist/cjs/theme-2potFCtG.js +46 -0
  89. package/dist/cjs/throttle-CrRDOkln.js +52 -0
  90. package/dist/collection/assets/img/bsi/27001.svg +188 -0
  91. package/dist/collection/assets/img/bsi/9001.svg +172 -0
  92. package/dist/collection/assets/img/bsi/mark-of-trust.svg +230 -0
  93. package/dist/collection/assets/img/flags/en.svg +15 -0
  94. package/dist/collection/assets/img/flags/es.svg +544 -0
  95. package/dist/collection/assets/img/flags/ja.svg +11 -0
  96. package/dist/collection/assets/img/flags/zh.svg +14 -0
  97. package/dist/collection/collection-manifest.json +16 -4
  98. package/dist/collection/components/accordion/accordion.css +24 -10
  99. package/dist/collection/components/accordion/accordion.js +20 -55
  100. package/dist/collection/components/alert/alert.css +127 -58
  101. package/dist/collection/components/alert/alert.helpers.js +19 -12
  102. package/dist/collection/components/alert/alert.js +147 -32
  103. package/dist/collection/components/algolia/algolia-data.js +1 -2
  104. package/dist/collection/components/algolia/algolia-filter.css +23 -9
  105. package/dist/collection/components/algolia/algolia-filter.js +8 -9
  106. package/dist/collection/components/algolia/algolia-interface.js +0 -1
  107. package/dist/collection/components/algolia/algolia-pagination.js +4 -5
  108. package/dist/collection/components/algolia/algolia-results.js +5 -6
  109. package/dist/collection/components/algolia/algolia.css +23 -9
  110. package/dist/collection/components/algolia/algolia.js +20 -18
  111. package/dist/collection/components/algolia/lib/squirrelly/browser.js +1 -2
  112. package/dist/collection/components/algolia/lib/squirrelly/compile-string.js +1 -2
  113. package/dist/collection/components/algolia/lib/squirrelly/compile.js +1 -2
  114. package/dist/collection/components/algolia/lib/squirrelly/config.js +1 -2
  115. package/dist/collection/components/algolia/lib/squirrelly/container-utils.js +1 -2
  116. package/dist/collection/components/algolia/lib/squirrelly/containers.js +1 -2
  117. package/dist/collection/components/algolia/lib/squirrelly/err.js +1 -2
  118. package/dist/collection/components/algolia/lib/squirrelly/parse.js +1 -2
  119. package/dist/collection/components/algolia/lib/squirrelly/render.js +1 -2
  120. package/dist/collection/components/algolia/lib/squirrelly/storage.js +1 -2
  121. package/dist/collection/components/algolia/lib/squirrelly/utils.js +1 -2
  122. package/dist/collection/components/algolia/lib/template.js +1 -2
  123. package/dist/collection/components/animation/animation.js +17 -17
  124. package/dist/collection/components/animation/animations/attention_seekers/bounce.js +1 -2
  125. package/dist/collection/components/animation/animations/attention_seekers/flash.js +1 -2
  126. package/dist/collection/components/animation/animations/attention_seekers/headShake.js +1 -2
  127. package/dist/collection/components/animation/animations/attention_seekers/heartBeat.js +1 -2
  128. package/dist/collection/components/animation/animations/attention_seekers/jello.js +1 -2
  129. package/dist/collection/components/animation/animations/attention_seekers/pulse.js +1 -2
  130. package/dist/collection/components/animation/animations/attention_seekers/rubberBand.js +1 -2
  131. package/dist/collection/components/animation/animations/attention_seekers/shake.js +1 -2
  132. package/dist/collection/components/animation/animations/attention_seekers/shakeX.js +1 -2
  133. package/dist/collection/components/animation/animations/attention_seekers/shakeY.js +1 -2
  134. package/dist/collection/components/animation/animations/attention_seekers/swing.js +1 -2
  135. package/dist/collection/components/animation/animations/attention_seekers/tada.js +1 -2
  136. package/dist/collection/components/animation/animations/attention_seekers/wobble.js +1 -2
  137. package/dist/collection/components/animation/animations/back_entrances/backInDown.js +1 -2
  138. package/dist/collection/components/animation/animations/back_entrances/backInLeft.js +1 -2
  139. package/dist/collection/components/animation/animations/back_entrances/backInRight.js +1 -2
  140. package/dist/collection/components/animation/animations/back_entrances/backInUp.js +1 -2
  141. package/dist/collection/components/animation/animations/back_exits/backOutDown.js +1 -2
  142. package/dist/collection/components/animation/animations/back_exits/backOutLeft.js +1 -2
  143. package/dist/collection/components/animation/animations/back_exits/backOutRight.js +1 -2
  144. package/dist/collection/components/animation/animations/back_exits/backOutUp.js +1 -2
  145. package/dist/collection/components/animation/animations/bouncing_entrances/bounceIn.js +1 -2
  146. package/dist/collection/components/animation/animations/bouncing_entrances/bounceInDown.js +1 -2
  147. package/dist/collection/components/animation/animations/bouncing_entrances/bounceInLeft.js +1 -2
  148. package/dist/collection/components/animation/animations/bouncing_entrances/bounceInRight.js +1 -2
  149. package/dist/collection/components/animation/animations/bouncing_entrances/bounceInUp.js +1 -2
  150. package/dist/collection/components/animation/animations/bouncing_exits/bounceOut.js +1 -2
  151. package/dist/collection/components/animation/animations/bouncing_exits/bounceOutDown.js +1 -2
  152. package/dist/collection/components/animation/animations/bouncing_exits/bounceOutLeft.js +1 -2
  153. package/dist/collection/components/animation/animations/bouncing_exits/bounceOutRight.js +1 -2
  154. package/dist/collection/components/animation/animations/bouncing_exits/bounceOutUp.js +1 -2
  155. package/dist/collection/components/animation/animations/easings/easings.js +1 -2
  156. package/dist/collection/components/animation/animations/fading_entrances/fadeIn.js +1 -2
  157. package/dist/collection/components/animation/animations/fading_entrances/fadeInBottomLeft.js +1 -2
  158. package/dist/collection/components/animation/animations/fading_entrances/fadeInBottomRight.js +1 -2
  159. package/dist/collection/components/animation/animations/fading_entrances/fadeInDown.js +1 -2
  160. package/dist/collection/components/animation/animations/fading_entrances/fadeInDownBig.js +1 -2
  161. package/dist/collection/components/animation/animations/fading_entrances/fadeInLeft.js +1 -2
  162. package/dist/collection/components/animation/animations/fading_entrances/fadeInLeftBig.js +1 -2
  163. package/dist/collection/components/animation/animations/fading_entrances/fadeInRight.js +1 -2
  164. package/dist/collection/components/animation/animations/fading_entrances/fadeInRightBig.js +1 -2
  165. package/dist/collection/components/animation/animations/fading_entrances/fadeInTopLeft.js +1 -2
  166. package/dist/collection/components/animation/animations/fading_entrances/fadeInTopRight.js +1 -2
  167. package/dist/collection/components/animation/animations/fading_entrances/fadeInUp.js +1 -2
  168. package/dist/collection/components/animation/animations/fading_entrances/fadeInUpBig.js +1 -2
  169. package/dist/collection/components/animation/animations/fading_exits/fadeOut.js +1 -2
  170. package/dist/collection/components/animation/animations/fading_exits/fadeOutBottomLeft.js +1 -2
  171. package/dist/collection/components/animation/animations/fading_exits/fadeOutBottomRight.js +1 -2
  172. package/dist/collection/components/animation/animations/fading_exits/fadeOutDown.js +1 -2
  173. package/dist/collection/components/animation/animations/fading_exits/fadeOutDownBig.js +1 -2
  174. package/dist/collection/components/animation/animations/fading_exits/fadeOutLeft.js +1 -2
  175. package/dist/collection/components/animation/animations/fading_exits/fadeOutLeftBig.js +1 -2
  176. package/dist/collection/components/animation/animations/fading_exits/fadeOutRight.js +1 -2
  177. package/dist/collection/components/animation/animations/fading_exits/fadeOutRightBig.js +1 -2
  178. package/dist/collection/components/animation/animations/fading_exits/fadeOutTopLeft.js +1 -2
  179. package/dist/collection/components/animation/animations/fading_exits/fadeOutTopRight.js +1 -2
  180. package/dist/collection/components/animation/animations/fading_exits/fadeOutUp.js +1 -2
  181. package/dist/collection/components/animation/animations/fading_exits/fadeOutUpBig.js +1 -2
  182. package/dist/collection/components/animation/animations/flippers/flip.js +1 -2
  183. package/dist/collection/components/animation/animations/flippers/flipInX.js +1 -2
  184. package/dist/collection/components/animation/animations/flippers/flipInY.js +1 -2
  185. package/dist/collection/components/animation/animations/flippers/flipOutX.js +1 -2
  186. package/dist/collection/components/animation/animations/flippers/flipOutY.js +1 -2
  187. package/dist/collection/components/animation/animations/index.js +1 -2
  188. package/dist/collection/components/animation/animations/lightspeed/lightSpeedInLeft.js +1 -2
  189. package/dist/collection/components/animation/animations/lightspeed/lightSpeedInRight.js +1 -2
  190. package/dist/collection/components/animation/animations/lightspeed/lightSpeedOutLeft.js +1 -2
  191. package/dist/collection/components/animation/animations/lightspeed/lightSpeedOutRight.js +1 -2
  192. package/dist/collection/components/animation/animations/rotating_entrances/rotateIn.js +1 -2
  193. package/dist/collection/components/animation/animations/rotating_entrances/rotateInDownLeft.js +1 -2
  194. package/dist/collection/components/animation/animations/rotating_entrances/rotateInDownRight.js +1 -2
  195. package/dist/collection/components/animation/animations/rotating_entrances/rotateInUpLeft.js +1 -2
  196. package/dist/collection/components/animation/animations/rotating_entrances/rotateInUpRight.js +1 -2
  197. package/dist/collection/components/animation/animations/rotating_exits/rotateOut.js +1 -2
  198. package/dist/collection/components/animation/animations/rotating_exits/rotateOutDownLeft.js +1 -2
  199. package/dist/collection/components/animation/animations/rotating_exits/rotateOutDownRight.js +1 -2
  200. package/dist/collection/components/animation/animations/rotating_exits/rotateOutUpLeft.js +1 -2
  201. package/dist/collection/components/animation/animations/rotating_exits/rotateOutUpRight.js +1 -2
  202. package/dist/collection/components/animation/animations/sliding_entrances/slideInDown.js +1 -2
  203. package/dist/collection/components/animation/animations/sliding_entrances/slideInLeft.js +1 -2
  204. package/dist/collection/components/animation/animations/sliding_entrances/slideInRight.js +1 -2
  205. package/dist/collection/components/animation/animations/sliding_entrances/slideInUp.js +1 -2
  206. package/dist/collection/components/animation/animations/sliding_exits/slideOutDown.js +1 -2
  207. package/dist/collection/components/animation/animations/sliding_exits/slideOutLeft.js +1 -2
  208. package/dist/collection/components/animation/animations/sliding_exits/slideOutRight.js +1 -2
  209. package/dist/collection/components/animation/animations/sliding_exits/slideOutUp.js +1 -2
  210. package/dist/collection/components/animation/animations/specials/hinge.js +1 -2
  211. package/dist/collection/components/animation/animations/specials/jackInTheBox.js +1 -2
  212. package/dist/collection/components/animation/animations/specials/rollIn.js +1 -2
  213. package/dist/collection/components/animation/animations/specials/rollOut.js +1 -2
  214. package/dist/collection/components/animation/animations/zooming_entrances/zoomIn.js +1 -2
  215. package/dist/collection/components/animation/animations/zooming_entrances/zoomInDown.js +1 -2
  216. package/dist/collection/components/animation/animations/zooming_entrances/zoomInLeft.js +1 -2
  217. package/dist/collection/components/animation/animations/zooming_entrances/zoomInRight.js +1 -2
  218. package/dist/collection/components/animation/animations/zooming_entrances/zoomInUp.js +1 -2
  219. package/dist/collection/components/animation/animations/zooming_exits/zoomOut.js +1 -2
  220. package/dist/collection/components/animation/animations/zooming_exits/zoomOutDown.js +1 -2
  221. package/dist/collection/components/animation/animations/zooming_exits/zoomOutLeft.js +1 -2
  222. package/dist/collection/components/animation/animations/zooming_exits/zoomOutRight.js +1 -2
  223. package/dist/collection/components/animation/animations/zooming_exits/zoomOutUp.js +1 -2
  224. package/dist/collection/components/avatar/avatar.css +41 -0
  225. package/dist/collection/components/avatar/avatar.js +47 -0
  226. package/dist/collection/components/badge/badge.js +84 -0
  227. package/dist/collection/components/breadcrumb/breadcrumb.css +169 -0
  228. package/dist/collection/components/breadcrumb/breadcrumb.js +83 -0
  229. package/dist/collection/components/card/card.css +43 -0
  230. package/dist/collection/components/card/card.js +92 -0
  231. package/dist/collection/components/card-carousel/card-carousel.css +167 -0
  232. package/dist/collection/components/card-carousel/card-carousel.js +144 -0
  233. package/dist/collection/components/checkbox/checkbox-group.css +96 -106
  234. package/dist/collection/components/checkbox/checkbox-group.js +95 -56
  235. package/dist/collection/components/checkbox/checkbox-interface.js +0 -1
  236. package/dist/collection/components/checkbox/checkbox.css +303 -305
  237. package/dist/collection/components/checkbox/checkbox.js +76 -59
  238. package/dist/collection/components/collapsible-comparison/collapsible-comparison.css +80 -0
  239. package/dist/collection/components/collapsible-comparison/collapsible-comparison.js +120 -0
  240. package/dist/collection/components/content-links/content-links.css +46 -0
  241. package/dist/collection/components/content-links/content-links.js +21 -0
  242. package/dist/collection/components/cta/cta.css +49 -0
  243. package/dist/collection/components/cta/cta.js +175 -0
  244. package/dist/collection/components/data-table/table.cell.js +114 -0
  245. package/dist/collection/components/data-table/table.constants.js +4 -0
  246. package/dist/collection/components/data-table/table.css +327 -0
  247. package/dist/collection/components/data-table/table.header.js +65 -0
  248. package/dist/collection/components/data-table/table.js +1721 -0
  249. package/dist/collection/components/data-table/table.pin-service.js +388 -0
  250. package/dist/collection/components/data-table/table.row.js +112 -0
  251. package/dist/collection/components/data-table/table.store.js +144 -0
  252. package/dist/collection/components/data-table/table.utils.js +133 -0
  253. package/dist/collection/components/data-table/table.worker.js +220 -0
  254. package/dist/collection/components/datalist/datalist.css +43 -26
  255. package/dist/collection/components/datalist/datalist.js +40 -39
  256. package/dist/collection/components/date-input/date-input.css +25 -13
  257. package/dist/collection/components/date-input/date-input.js +49 -48
  258. package/dist/collection/components/date-picker/date-picker.css +51 -53
  259. package/dist/collection/components/date-picker/date-picker.js +41 -73
  260. package/dist/collection/components/date-picker/duet-date-picker/date-adapter.js +1 -2
  261. package/dist/collection/components/date-picker/duet-date-picker/date-localization.js +1 -2
  262. package/dist/collection/components/date-picker/duet-date-picker/date-picker-day.js +1 -2
  263. package/dist/collection/components/date-picker/duet-date-picker/date-picker-month.js +2 -3
  264. package/dist/collection/components/details/details.css +80 -106
  265. package/dist/collection/components/details/details.js +86 -134
  266. package/dist/collection/components/dialog/dialog.css +89 -87
  267. package/dist/collection/components/dialog/dialog.helpers.js +18 -7
  268. package/dist/collection/components/dialog/dialog.js +47 -57
  269. package/dist/collection/components/drawer/drawer.css +119 -50
  270. package/dist/collection/components/drawer/drawer.js +144 -55
  271. package/dist/collection/components/dropdown/dropdown.css +46 -31
  272. package/dist/collection/components/dropdown/dropdown.js +82 -64
  273. package/dist/collection/components/field-validator/field-validator.js +22 -25
  274. package/dist/collection/components/file-upload/file-upload-list.js +1 -2
  275. package/dist/collection/components/file-upload/file-upload.css +29 -17
  276. package/dist/collection/components/file-upload/file-upload.js +20 -20
  277. package/dist/collection/components/footer/footer.css +185 -0
  278. package/dist/collection/components/footer/footer.js +43 -0
  279. package/dist/collection/components/form-control/form-control.js +8 -8
  280. package/dist/collection/components/global-nav/assets/local-logged-in.json +202 -0
  281. package/dist/collection/components/global-nav/assets/local-logged-out.json +198 -0
  282. package/dist/collection/components/global-nav/global-nav.css +435 -0
  283. package/dist/collection/components/global-nav/global-nav.js +573 -1468
  284. package/dist/collection/components/global-search-results/global-search-results.css +26 -14
  285. package/dist/collection/components/global-search-results/global-search-results.js +36 -27
  286. package/dist/collection/components/grid/grid-item.js +2 -3
  287. package/dist/collection/components/grid/grid.css +26 -9
  288. package/dist/collection/components/grid/grid.js +21 -24
  289. package/dist/collection/components/hero/hero.css +23 -9
  290. package/dist/collection/components/hero/hero.js +12 -13
  291. package/dist/collection/components/icon/device/elysion.svg +5 -0
  292. package/dist/collection/components/icon/device/flongle.svg +4 -0
  293. package/dist/collection/components/icon/device/gridion.svg +9 -0
  294. package/dist/collection/components/icon/device/minion-mk1d.svg +4 -0
  295. package/dist/collection/components/icon/device/p2-integrated.svg +7 -0
  296. package/dist/collection/components/icon/device/p2-solo.svg +5 -0
  297. package/dist/collection/components/icon/device/p24.svg +6 -0
  298. package/dist/collection/components/icon/device/q.svg +4 -0
  299. package/dist/collection/components/icon/icon.css +76 -37
  300. package/dist/collection/components/icon/icon.js +144 -103
  301. package/dist/collection/components/icon/pictogram/analyse.svg +10 -0
  302. package/dist/collection/components/icon/pictogram/animal-research.svg +4 -0
  303. package/dist/collection/components/icon/pictogram/assembly.svg +3 -0
  304. package/dist/collection/components/icon/pictogram/biopharma.svg +3 -0
  305. package/dist/collection/components/icon/pictogram/cancer-research.svg +15 -0
  306. package/dist/collection/components/icon/pictogram/chromatin-conformation.svg +3 -0
  307. package/dist/collection/components/icon/pictogram/clinical-research.svg +3 -0
  308. package/dist/collection/components/icon/pictogram/environmental-conservation.svg +5 -0
  309. package/dist/collection/components/icon/pictogram/epigenetics.svg +5 -0
  310. package/dist/collection/components/icon/pictogram/fusion-transcripts.svg +3 -0
  311. package/dist/collection/components/icon/pictogram/gene-expression.svg +3 -0
  312. package/dist/collection/components/icon/pictogram/genome-research.svg +3 -0
  313. package/dist/collection/components/icon/pictogram/human-genomics.svg +4 -0
  314. package/dist/collection/components/icon/pictogram/infectious-disease.svg +13 -0
  315. package/dist/collection/components/icon/pictogram/microbial-genomics.svg +15 -0
  316. package/dist/collection/components/icon/pictogram/microbiome-metagenomics.svg +16 -0
  317. package/dist/collection/components/icon/pictogram/multiomics.svg +13 -0
  318. package/dist/collection/components/icon/pictogram/plant-research.svg +3 -0
  319. package/dist/collection/components/icon/pictogram/population-genomics.svg +6 -0
  320. package/dist/collection/components/icon/pictogram/prepare.svg +4 -0
  321. package/dist/collection/components/icon/pictogram/scalable.svg +12 -0
  322. package/dist/collection/components/icon/pictogram/sequence.svg +3 -0
  323. package/dist/collection/components/icon/pictogram/single-cell-spatial-transcriptions.svg +12 -0
  324. package/dist/collection/components/icon/pictogram/snvs-phasing.svg +4 -0
  325. package/dist/collection/components/icon/pictogram/splice-variation.svg +4 -0
  326. package/dist/collection/components/icon/pictogram/structural-variation.svg +4 -0
  327. package/dist/collection/components/icon/pictogram/targeted-sequencing.svg +10 -0
  328. package/dist/collection/components/icon/pictogram/transcriptomics.svg +3 -0
  329. package/dist/collection/components/icon/pictogram/unrestricted-read-length.svg +10 -0
  330. package/dist/collection/components/icon/pictogram/whole-genome-sequencing.svg +3 -0
  331. package/dist/collection/components/icon/pictogram/workflow-end-to-end.svg +3 -0
  332. package/dist/collection/components/icon/request.js +1 -2
  333. package/dist/collection/components/icon/utils.js +8 -11
  334. package/dist/collection/components/icon/validate.js +1 -2
  335. package/dist/collection/components/icon-button/icon-button.css +45 -37
  336. package/dist/collection/components/icon-button/icon-button.js +17 -26
  337. package/dist/collection/components/icon-item/icon-item.css +41 -0
  338. package/dist/collection/components/icon-item/icon-item.js +72 -0
  339. package/dist/collection/components/img/img.css +23 -9
  340. package/dist/collection/components/img/img.js +10 -11
  341. package/dist/collection/components/in-page-nav/in-page-nav.css +122 -0
  342. package/dist/collection/components/in-page-nav/in-page-nav.js +278 -0
  343. package/dist/collection/components/input/input.css +215 -167
  344. package/dist/collection/components/input/input.js +372 -133
  345. package/dist/collection/components/intersection-observe/intersection-observe.js +26 -18
  346. package/dist/collection/components/masked-overflow/masked-overflow.css +241 -0
  347. package/dist/collection/components/masked-overflow/masked-overflow.js +610 -0
  348. package/dist/collection/components/menu/menu.css +38 -46
  349. package/dist/collection/components/menu/menu.js +92 -37
  350. package/dist/collection/components/menu-drawer/menu-drawer.css +23 -9
  351. package/dist/collection/components/menu-drawer/menu-drawer.js +7 -8
  352. package/dist/collection/components/more-less/more-less.js +7 -8
  353. package/dist/collection/components/nav-item/nav-item.css +73 -270
  354. package/dist/collection/components/nav-item/nav-item.js +128 -291
  355. package/dist/collection/components/option/option.css +57 -39
  356. package/dist/collection/components/option/option.js +33 -18
  357. package/dist/collection/components/progress-bar/progress-bar.css +23 -9
  358. package/dist/collection/components/progress-bar/progress-bar.js +11 -9
  359. package/dist/collection/components/range/range.css +23 -9
  360. package/dist/collection/components/range/range.js +17 -19
  361. package/dist/collection/components/rating/rating.css +24 -10
  362. package/dist/collection/components/rating/rating.js +13 -18
  363. package/dist/collection/components/resize-observe/resize-observe.js +6 -9
  364. package/dist/collection/components/select/select.css +194 -223
  365. package/dist/collection/components/select/select.js +110 -138
  366. package/dist/collection/components/skeleton/skeleton.css +23 -9
  367. package/dist/collection/components/skeleton/skeleton.js +7 -7
  368. package/dist/collection/components/slides/lib/js/animate.js +1 -2
  369. package/dist/collection/components/slides/lib/js/cell.js +1 -2
  370. package/dist/collection/components/slides/lib/js/drag.js +1 -2
  371. package/dist/collection/components/slides/lib/js/fade.js +1 -2
  372. package/dist/collection/components/slides/lib/js/flickity.js +15 -5
  373. package/dist/collection/components/slides/lib/js/fullscreen.js +1 -2
  374. package/dist/collection/components/slides/lib/js/index.js +1 -2
  375. package/dist/collection/components/slides/lib/js/lazyload.js +1 -2
  376. package/dist/collection/components/slides/lib/js/page-dots.js +5 -7
  377. package/dist/collection/components/slides/lib/js/player.js +1 -2
  378. package/dist/collection/components/slides/lib/js/prev-next-button.js +1 -2
  379. package/dist/collection/components/slides/lib/js/slide.js +1 -2
  380. package/dist/collection/components/slides/lib/js/utils/event-emitter.js +1 -2
  381. package/dist/collection/components/slides/lib/js/utils/gestures.js +1 -2
  382. package/dist/collection/components/slides/lib/js/utils/get-size.js +1 -2
  383. package/dist/collection/components/slides/lib/js/utils/utils.js +1 -2
  384. package/dist/collection/components/slides/slide.css +23 -9
  385. package/dist/collection/components/slides/slide.js +3 -4
  386. package/dist/collection/components/slides/slides.css +49 -24
  387. package/dist/collection/components/slides/slides.js +16 -16
  388. package/dist/collection/components/sortable/sortable.css +25 -13
  389. package/dist/collection/components/sortable/sortable.js +34 -25
  390. package/dist/collection/components/spinner/spinner.css +23 -11
  391. package/dist/collection/components/spinner/spinner.js +8 -5
  392. package/dist/collection/components/split-pane/split-pane.css +33 -20
  393. package/dist/collection/components/split-pane/split-pane.js +13 -11
  394. package/dist/collection/components/sticker/sticker.css +23 -9
  395. package/dist/collection/components/sticker/sticker.js +14 -17
  396. package/dist/collection/components/table/table.css +31 -383
  397. package/dist/collection/components/table/table.js +211 -1566
  398. package/dist/collection/components/tabs/tab-content.css +23 -9
  399. package/dist/collection/components/tabs/tab-content.js +11 -7
  400. package/dist/collection/components/tabs/tab-group.css +70 -229
  401. package/dist/collection/components/tabs/tab-group.js +98 -266
  402. package/dist/collection/components/tabs/tab.css +83 -134
  403. package/dist/collection/components/tabs/tab.js +25 -18
  404. package/dist/collection/components/tag/tag.css +45 -0
  405. package/dist/collection/components/tag/tag.js +122 -0
  406. package/dist/collection/components/tooltip/tooltip.css +93 -66
  407. package/dist/collection/components/tooltip/tooltip.js +30 -14
  408. package/dist/collection/global/script/global.js +2 -32
  409. package/dist/collection/index.js +2 -2
  410. package/dist/collection/types/shared.js +0 -1
  411. package/dist/collection/utils/active-element.js +49 -2
  412. package/dist/collection/utils/constructible-style.js +3 -4
  413. package/dist/collection/utils/custom-template.js +1 -2
  414. package/dist/collection/utils/date-utils.js +1 -2
  415. package/dist/collection/utils/dom.js +10 -11
  416. package/dist/collection/utils/drag.js +1 -2
  417. package/dist/collection/utils/events.js +1 -2
  418. package/dist/collection/utils/fetch.js +1 -2
  419. package/dist/collection/utils/form.js +1 -2
  420. package/dist/collection/utils/gesture/gesture-controller.js +1 -2
  421. package/dist/collection/utils/gesture/index.js +1 -2
  422. package/dist/collection/utils/gesture/listener.js +1 -2
  423. package/dist/collection/utils/gesture/pointer-events.js +1 -2
  424. package/dist/collection/utils/gesture/recognizers.js +1 -2
  425. package/dist/collection/utils/gesture/swipe-back.js +1 -2
  426. package/dist/collection/utils/math.js +1 -2
  427. package/dist/collection/utils/modal.js +1 -2
  428. package/dist/collection/utils/popover.js +7 -4
  429. package/dist/collection/utils/promise-queue.js +1 -2
  430. package/dist/collection/utils/renderer.js +12 -3
  431. package/dist/collection/utils/scroll.js +59 -3
  432. package/dist/collection/utils/search-insights.js +1 -2
  433. package/dist/collection/utils/slot.js +82 -28
  434. package/dist/collection/utils/store/component-store.js +25 -14
  435. package/dist/collection/utils/store/get-set.js +1 -2
  436. package/dist/collection/utils/style.js +54 -0
  437. package/dist/collection/utils/tabbable.js +41 -27
  438. package/dist/collection/utils/testing/index.js +1 -2
  439. package/dist/collection/utils/theme.js +2 -4
  440. package/dist/collection/utils/throttle.js +1 -2
  441. package/dist/collection/utils/transitions.js +24 -7
  442. package/dist/components/active-element.js +50 -4
  443. package/dist/components/algolia-data.js +1 -3
  444. package/dist/components/algolia.js +964 -23
  445. package/dist/components/avatar.js +33 -0
  446. package/dist/components/badge.js +36 -0
  447. package/dist/components/component-store.js +27 -26
  448. package/dist/components/cta.js +61 -0
  449. package/dist/components/datalist.js +29 -33
  450. package/dist/components/date-picker.js +33 -45
  451. package/dist/components/details.js +201 -0
  452. package/dist/components/dom.js +11 -22
  453. package/dist/components/drag.js +1 -3
  454. package/dist/components/drawer.js +402 -0
  455. package/dist/components/dropdown.js +65 -59
  456. package/dist/components/events.js +1 -3
  457. package/dist/components/fade.js +2 -4
  458. package/dist/components/form-control.js +11 -9
  459. package/dist/components/fullscreen.js +2 -4
  460. package/dist/components/global-search-results.js +735 -0
  461. package/dist/components/grid.js +6 -9
  462. package/dist/components/icon-button.js +3 -17
  463. package/dist/components/icon.js +98 -90
  464. package/dist/components/img.js +6 -9
  465. package/dist/components/index-browser.js +3 -5
  466. package/dist/components/index.js +41 -51
  467. package/dist/components/index2.js +1 -3
  468. package/dist/components/index3.js +4 -9
  469. package/dist/components/input.js +178 -65
  470. package/dist/components/lazyload.js +2 -4
  471. package/dist/components/local-logged-in.js +214 -0
  472. package/dist/components/local-logged-out.js +210 -0
  473. package/dist/components/masked-overflow.js +402 -0
  474. package/dist/components/math.js +2 -4
  475. package/dist/components/menu.js +75 -30
  476. package/dist/components/modal.js +1 -3
  477. package/dist/components/nano-accordion.js +13 -26
  478. package/dist/components/nano-alert.js +82 -28
  479. package/dist/components/nano-algolia-filter.js +5 -8
  480. package/dist/components/nano-algolia-pagination.js +3 -5
  481. package/dist/components/nano-algolia-results.js +4 -6
  482. package/dist/components/nano-algolia.js +1 -3
  483. package/dist/components/nano-animation.js +4 -6
  484. package/dist/components/nano-avatar.d.ts +11 -0
  485. package/dist/components/nano-avatar.js +9 -0
  486. package/dist/components/nano-badge.d.ts +11 -0
  487. package/dist/components/nano-badge.js +9 -0
  488. package/dist/components/nano-breadcrumb.d.ts +11 -0
  489. package/dist/components/nano-breadcrumb.js +84 -0
  490. package/dist/components/nano-card-carousel.d.ts +11 -0
  491. package/dist/components/nano-card-carousel.js +124 -0
  492. package/dist/components/nano-card.d.ts +11 -0
  493. package/dist/components/nano-card.js +42 -0
  494. package/dist/components/nano-checkbox-group.js +76 -42
  495. package/dist/components/nano-checkbox.js +35 -22
  496. package/dist/components/nano-collapsible-comparison.d.ts +11 -0
  497. package/dist/components/nano-collapsible-comparison.js +106 -0
  498. package/dist/components/nano-content-links.d.ts +11 -0
  499. package/dist/components/nano-content-links.js +32 -0
  500. package/dist/components/nano-cta.d.ts +11 -0
  501. package/dist/components/nano-cta.js +9 -0
  502. package/dist/components/nano-data-table.d.ts +11 -0
  503. package/dist/components/nano-data-table.js +1945 -0
  504. package/dist/components/nano-datalist.js +1 -3
  505. package/dist/components/nano-date-input.js +35 -34
  506. package/dist/components/nano-date-picker.js +3 -5
  507. package/dist/components/nano-details.js +3 -209
  508. package/dist/components/nano-dialog.js +38 -34
  509. package/dist/components/nano-drawer.js +2 -335
  510. package/dist/components/nano-dropdown.js +1 -3
  511. package/dist/components/nano-field-validator.js +8 -14
  512. package/dist/components/nano-file-upload.js +4 -7
  513. package/dist/components/nano-footer.d.ts +11 -0
  514. package/dist/components/nano-footer.js +47 -0
  515. package/dist/components/nano-global-nav.js +519 -1251
  516. package/dist/components/nano-global-search-results.js +2 -669
  517. package/dist/components/nano-grid-item.js +2 -4
  518. package/dist/components/nano-grid.js +1 -3
  519. package/dist/components/nano-hero.js +9 -12
  520. package/dist/components/nano-icon-button.js +1 -3
  521. package/dist/components/nano-icon-item.d.ts +11 -0
  522. package/dist/components/nano-icon-item.js +39 -0
  523. package/dist/components/nano-icon.js +1 -3
  524. package/dist/components/nano-img.js +1 -3
  525. package/dist/components/nano-in-page-nav.d.ts +11 -0
  526. package/dist/components/nano-in-page-nav.js +246 -0
  527. package/dist/components/nano-input.js +1 -3
  528. package/dist/components/nano-intersection-observe.js +16 -13
  529. package/dist/components/nano-masked-overflow.d.ts +11 -0
  530. package/dist/components/nano-masked-overflow.js +9 -0
  531. package/dist/components/nano-menu-drawer.js +5 -8
  532. package/dist/components/nano-menu.js +1 -3
  533. package/dist/components/nano-more-less.js +3 -5
  534. package/dist/components/nano-nav-item.js +1 -3
  535. package/dist/components/nano-option.js +1 -3
  536. package/dist/components/nano-progress-bar.js +1 -3
  537. package/dist/components/nano-range.js +4 -7
  538. package/dist/components/nano-rating.js +8 -16
  539. package/dist/components/nano-resize-observe.js +1 -3
  540. package/dist/components/nano-select.js +1 -3
  541. package/dist/components/nano-skeleton.js +1 -3
  542. package/dist/components/nano-slide.js +4 -7
  543. package/dist/components/nano-slides.js +3 -3087
  544. package/dist/components/nano-sortable.js +12 -13
  545. package/dist/components/nano-spinner.js +1 -3
  546. package/dist/components/nano-split-pane.js +5 -8
  547. package/dist/components/nano-sticker.js +1 -3
  548. package/dist/components/nano-tab-content.js +8 -11
  549. package/dist/components/nano-tab-group.js +85 -239
  550. package/dist/components/nano-tab.js +17 -17
  551. package/dist/components/nano-table.js +205 -1882
  552. package/dist/components/nano-tag.d.ts +11 -0
  553. package/dist/components/nano-tag.js +9 -0
  554. package/dist/components/nano-tooltip.js +1 -3
  555. package/dist/components/nav-item.js +174 -225
  556. package/dist/components/option.js +12 -13
  557. package/dist/components/page-dots.js +6 -9
  558. package/dist/components/popover.js +31 -16
  559. package/dist/components/progress-bar.js +6 -9
  560. package/dist/components/renderer.js +12 -4
  561. package/dist/components/resize-observe.js +2 -4
  562. package/dist/components/scroll.js +60 -5
  563. package/dist/components/select.js +113 -102
  564. package/dist/components/skeleton.js +5 -8
  565. package/dist/components/slides.js +3097 -0
  566. package/dist/components/slot.js +84 -36
  567. package/dist/components/spinner.js +4 -7
  568. package/dist/components/sticker.js +7 -13
  569. package/dist/components/style.js +56 -0
  570. package/dist/components/tabbable.js +42 -28
  571. package/dist/components/table.worker.js +3 -5
  572. package/dist/components/tag.js +89 -0
  573. package/dist/components/theme.js +2 -5
  574. package/dist/components/throttle.js +1 -3
  575. package/dist/components/tooltip.js +20 -10
  576. package/dist/esm/active-element-C1pBwzyj.js +65 -0
  577. package/dist/esm/algolia-data-CCqzaIh4.js +47 -0
  578. package/dist/esm/algoliasearch-lite.esm.browser-C1SNUAIj.js +949 -0
  579. package/dist/esm/component-store-C-YnXSQE.js +324 -0
  580. package/dist/esm/date-utils-BZYdjI1P.js +217 -0
  581. package/dist/esm/dom-GYcqUAl_.js +67 -0
  582. package/dist/esm/drag-BLOEuv-q.js +70 -0
  583. package/dist/esm/events-ClRFmcmJ.js +34 -0
  584. package/dist/esm/fade-C3aqZinc.js +210 -0
  585. package/dist/esm/form-control-BjKTwcqA.js +81 -0
  586. package/dist/esm/fullscreen-T7b44-vN.js +130 -0
  587. package/dist/esm/index-BQSuCPXH.js +652 -0
  588. package/dist/esm/index-DOuz1S3w.js +3260 -0
  589. package/dist/esm/index-DkZY6pJu.js +196 -0
  590. package/dist/esm/index-browser-BvSm1vXe.js +6 -0
  591. package/dist/esm/index.js +43 -24
  592. package/dist/esm/lazyload-BdH0bSmg.js +92 -0
  593. package/dist/esm/loader.js +4 -7
  594. package/dist/esm/local-logged-in-DNQyU0ot.js +214 -0
  595. package/dist/esm/local-logged-out-CD2oXHpq.js +210 -0
  596. package/dist/esm/math-BEqsTfVK.js +36 -0
  597. package/dist/esm/modal-s7sHBYzQ.js +47 -0
  598. package/dist/esm/nano-accordion.entry.js +13 -25
  599. package/dist/esm/nano-alert.entry.js +85 -34
  600. package/dist/esm/nano-algolia-filter.entry.js +10 -13
  601. package/dist/esm/nano-algolia-pagination.entry.js +5 -7
  602. package/dist/esm/nano-algolia-results.entry.js +7 -9
  603. package/dist/esm/nano-algolia.entry.js +22 -25
  604. package/dist/esm/nano-animation.entry.js +5 -7
  605. package/dist/esm/nano-avatar_5.entry.js +1772 -0
  606. package/dist/esm/nano-breadcrumb.entry.js +39 -0
  607. package/dist/esm/nano-card-carousel.entry.js +93 -0
  608. package/dist/esm/nano-card.entry.js +21 -0
  609. package/dist/esm/nano-checkbox-group.entry.js +79 -45
  610. package/dist/esm/nano-checkbox.entry.js +34 -22
  611. package/dist/esm/nano-collapsible-comparison.entry.js +60 -0
  612. package/dist/esm/nano-components.js +6 -8
  613. package/dist/esm/nano-content-links.entry.js +15 -0
  614. package/dist/esm/nano-cta.entry.js +40 -0
  615. package/dist/esm/nano-data-table-Bm9J8Phu.js +1844 -0
  616. package/dist/esm/nano-data-table.entry.js +11 -0
  617. package/dist/esm/nano-datalist_3.entry.js +88 -259
  618. package/dist/esm/nano-date-input.entry.js +14 -25
  619. package/dist/esm/nano-date-picker_2.entry.js +996 -0
  620. package/dist/esm/nano-details.entry.js +64 -79
  621. package/dist/esm/nano-dialog.entry.js +45 -40
  622. package/dist/esm/nano-dropdown_2.entry.js +637 -0
  623. package/dist/esm/nano-field-validator.entry.js +9 -15
  624. package/dist/esm/nano-file-upload.entry.js +6 -9
  625. package/dist/esm/nano-footer.entry.js +23 -0
  626. package/dist/esm/nano-global-nav.entry.js +416 -1169
  627. package/dist/esm/nano-grid-item.entry.js +3 -5
  628. package/dist/esm/nano-grid_2.entry.js +12 -16
  629. package/dist/esm/nano-hero.entry.js +9 -14
  630. package/dist/esm/nano-icon-item.entry.js +19 -0
  631. package/dist/esm/nano-icon_3.entry.js +651 -0
  632. package/dist/esm/nano-in-page-nav.entry.js +210 -0
  633. package/dist/esm/nano-intersection-observe.entry.js +18 -14
  634. package/dist/esm/nano-masked-overflow.entry.js +349 -0
  635. package/dist/esm/nano-menu-drawer.entry.js +8 -11
  636. package/dist/esm/nano-more-less.entry.js +5 -7
  637. package/dist/esm/nano-nav-item.entry.js +269 -0
  638. package/dist/esm/nano-progress-bar.entry.js +8 -11
  639. package/dist/esm/nano-range.entry.js +9 -12
  640. package/dist/esm/nano-rating.entry.js +10 -18
  641. package/dist/esm/nano-resize-observe_2.entry.js +8 -11
  642. package/dist/esm/nano-slide.entry.js +6 -9
  643. package/dist/esm/nano-slides-BEE7xEu_.js +3045 -0
  644. package/dist/esm/nano-slides.entry.js +4 -6
  645. package/dist/esm/nano-sortable.entry.js +11 -12
  646. package/dist/esm/nano-spinner.entry.js +6 -9
  647. package/dist/esm/nano-split-pane.entry.js +9 -12
  648. package/dist/esm/nano-sticker.entry.js +10 -16
  649. package/dist/esm/nano-tab-content.entry.js +9 -12
  650. package/dist/esm/nano-tab-group.entry.js +64 -226
  651. package/dist/esm/nano-tab.entry.js +18 -18
  652. package/dist/esm/nano-table.entry.js +234 -9
  653. package/dist/esm/page-dots-D2WI1eZ0.js +136 -0
  654. package/dist/esm/popover-D1cBIHdr.js +1945 -0
  655. package/dist/esm/renderer-CnE0Hztu.js +66 -0
  656. package/dist/esm/scroll-DHa1CIPP.js +179 -0
  657. package/dist/esm/search-insights-8OL2oeQN.js +48 -0
  658. package/dist/esm/slot-lixS0pd2.js +104 -0
  659. package/dist/esm/style-BrRDhFfF.js +56 -0
  660. package/dist/esm/tabbable-QmV19K7Q.js +121 -0
  661. package/dist/esm/table.worker-BTF0UXAd.js +4 -0
  662. package/dist/esm/table.worker-zeRR3oed.js +28 -0
  663. package/dist/esm/theme-aiuyr36I.js +43 -0
  664. package/dist/esm/throttle-C93FMm2Z.js +48 -0
  665. package/dist/nano-assets/font/jp/noto-sans-jp-v53-japanese_latin-300.woff2 +0 -0
  666. package/dist/nano-assets/font/latin/noto-sans-v39-latin-300.woff2 +0 -0
  667. package/dist/nano-assets/font/latin/noto-sans-v39-latin-300italic.woff2 +0 -0
  668. package/dist/nano-assets/font/sc/noto-sans-sc-v37-chinese-simplified_latin-300.woff2 +0 -0
  669. package/dist/nano-assets/hash.txt +1 -1
  670. package/dist/nano-assets/icon/device/elysion.svg +5 -0
  671. package/dist/nano-assets/icon/device/flongle.svg +4 -0
  672. package/dist/nano-assets/icon/device/gridion.svg +9 -0
  673. package/dist/nano-assets/icon/device/minion-mk1d.svg +4 -0
  674. package/dist/nano-assets/icon/device/p2-integrated.svg +7 -0
  675. package/dist/nano-assets/icon/device/p2-solo.svg +5 -0
  676. package/dist/nano-assets/icon/device/p24.svg +6 -0
  677. package/dist/nano-assets/icon/device/q.svg +4 -0
  678. package/dist/nano-assets/icon/pictogram/analyse.svg +10 -0
  679. package/dist/nano-assets/icon/pictogram/animal-research.svg +4 -0
  680. package/dist/nano-assets/icon/pictogram/assembly.svg +3 -0
  681. package/dist/nano-assets/icon/pictogram/biopharma.svg +3 -0
  682. package/dist/nano-assets/icon/pictogram/cancer-research.svg +15 -0
  683. package/dist/nano-assets/icon/pictogram/chromatin-conformation.svg +3 -0
  684. package/dist/nano-assets/icon/pictogram/clinical-research.svg +3 -0
  685. package/dist/nano-assets/icon/pictogram/environmental-conservation.svg +5 -0
  686. package/dist/nano-assets/icon/pictogram/epigenetics.svg +5 -0
  687. package/dist/nano-assets/icon/pictogram/fusion-transcripts.svg +3 -0
  688. package/dist/nano-assets/icon/pictogram/gene-expression.svg +3 -0
  689. package/dist/nano-assets/icon/pictogram/genome-research.svg +3 -0
  690. package/dist/nano-assets/icon/pictogram/human-genomics.svg +4 -0
  691. package/dist/nano-assets/icon/pictogram/infectious-disease.svg +13 -0
  692. package/dist/nano-assets/icon/pictogram/microbial-genomics.svg +15 -0
  693. package/dist/nano-assets/icon/pictogram/microbiome-metagenomics.svg +16 -0
  694. package/dist/nano-assets/icon/pictogram/multiomics.svg +13 -0
  695. package/dist/nano-assets/icon/pictogram/plant-research.svg +3 -0
  696. package/dist/nano-assets/icon/pictogram/population-genomics.svg +6 -0
  697. package/dist/nano-assets/icon/pictogram/prepare.svg +4 -0
  698. package/dist/nano-assets/icon/pictogram/scalable.svg +12 -0
  699. package/dist/nano-assets/icon/pictogram/sequence.svg +3 -0
  700. package/dist/nano-assets/icon/pictogram/single-cell-spatial-transcriptions.svg +12 -0
  701. package/dist/nano-assets/icon/pictogram/snvs-phasing.svg +4 -0
  702. package/dist/nano-assets/icon/pictogram/splice-variation.svg +4 -0
  703. package/dist/nano-assets/icon/pictogram/structural-variation.svg +4 -0
  704. package/dist/nano-assets/icon/pictogram/targeted-sequencing.svg +10 -0
  705. package/dist/nano-assets/icon/pictogram/transcriptomics.svg +3 -0
  706. package/dist/nano-assets/icon/pictogram/unrestricted-read-length.svg +10 -0
  707. package/dist/nano-assets/icon/pictogram/whole-genome-sequencing.svg +3 -0
  708. package/dist/nano-assets/icon/pictogram/workflow-end-to-end.svg +3 -0
  709. package/dist/nano-assets/img/bsi/27001.svg +188 -0
  710. package/dist/nano-assets/img/bsi/9001.svg +172 -0
  711. package/dist/nano-assets/img/bsi/mark-of-trust.svg +230 -0
  712. package/dist/nano-assets/img/flags/en.svg +15 -0
  713. package/dist/nano-assets/img/flags/es.svg +544 -0
  714. package/dist/nano-assets/img/flags/ja.svg +11 -0
  715. package/dist/nano-assets/img/flags/zh.svg +14 -0
  716. package/dist/nano-assets/local-logged-in.json +202 -0
  717. package/dist/nano-assets/local-logged-out.json +198 -0
  718. package/dist/nano-components/active-element-C1pBwzyj.js +4 -0
  719. package/dist/nano-components/algolia-data-CCqzaIh4.js +4 -0
  720. package/dist/nano-components/algoliasearch-lite.esm.browser-C1SNUAIj.js +4 -0
  721. package/dist/nano-components/assets/local-logged-in.json +202 -0
  722. package/dist/nano-components/assets/local-logged-out.json +198 -0
  723. package/dist/nano-components/component-store-C-YnXSQE.js +4 -0
  724. package/dist/nano-components/date-utils-BZYdjI1P.js +4 -0
  725. package/dist/nano-components/device/elysion.svg +5 -0
  726. package/dist/nano-components/device/flongle.svg +4 -0
  727. package/dist/nano-components/device/gridion.svg +9 -0
  728. package/dist/nano-components/device/minion-mk1d.svg +4 -0
  729. package/dist/nano-components/device/p2-integrated.svg +7 -0
  730. package/dist/nano-components/device/p2-solo.svg +5 -0
  731. package/dist/nano-components/device/p24.svg +6 -0
  732. package/dist/nano-components/device/q.svg +4 -0
  733. package/dist/nano-components/dom-GYcqUAl_.js +4 -0
  734. package/dist/nano-components/drag-BLOEuv-q.js +4 -0
  735. package/dist/nano-components/events-ClRFmcmJ.js +4 -0
  736. package/dist/nano-components/fade-C3aqZinc.js +4 -0
  737. package/dist/nano-components/form-control-BjKTwcqA.js +4 -0
  738. package/dist/nano-components/fullscreen-T7b44-vN.js +4 -0
  739. package/dist/nano-components/index-BQSuCPXH.js +4 -0
  740. package/dist/nano-components/index-DOuz1S3w.js +5 -0
  741. package/dist/nano-components/index-DkZY6pJu.js +4 -0
  742. package/dist/nano-components/index-browser-BvSm1vXe.js +4 -0
  743. package/dist/nano-components/index.esm.js +2 -3
  744. package/dist/nano-components/lazyload-BdH0bSmg.js +4 -0
  745. package/dist/nano-components/local-logged-in-DNQyU0ot.js +4 -0
  746. package/dist/nano-components/local-logged-out-CD2oXHpq.js +4 -0
  747. package/dist/nano-components/math-BEqsTfVK.js +4 -0
  748. package/dist/nano-components/modal-s7sHBYzQ.js +4 -0
  749. package/dist/nano-components/nano-accordion.entry.js +2 -3
  750. package/dist/nano-components/nano-alert.entry.js +2 -3
  751. package/dist/nano-components/nano-algolia-filter.entry.js +2 -3
  752. package/dist/nano-components/nano-algolia-pagination.entry.js +2 -3
  753. package/dist/nano-components/nano-algolia-results.entry.js +2 -3
  754. package/dist/nano-components/nano-algolia.entry.js +2 -3
  755. package/dist/nano-components/nano-animation.entry.js +2 -3
  756. package/dist/nano-components/nano-avatar_5.entry.js +4 -0
  757. package/dist/nano-components/nano-breadcrumb.entry.js +4 -0
  758. package/dist/nano-components/nano-card-carousel.entry.js +4 -0
  759. package/dist/nano-components/nano-card.entry.js +4 -0
  760. package/dist/nano-components/nano-checkbox-group.entry.js +2 -3
  761. package/dist/nano-components/nano-checkbox.entry.js +2 -3
  762. package/dist/nano-components/nano-collapsible-comparison.entry.js +4 -0
  763. package/dist/nano-components/nano-components.css +2050 -1
  764. package/dist/nano-components/nano-components.esm.js +2 -3
  765. package/dist/nano-components/nano-content-links.entry.js +4 -0
  766. package/dist/nano-components/nano-cta.entry.js +4 -0
  767. package/dist/nano-components/nano-data-table-Bm9J8Phu.js +4 -0
  768. package/dist/nano-components/nano-data-table.entry.js +4 -0
  769. package/dist/nano-components/nano-datalist_3.entry.js +2 -3
  770. package/dist/nano-components/nano-date-input.entry.js +2 -3
  771. package/dist/nano-components/nano-date-picker_2.entry.js +4 -0
  772. package/dist/nano-components/nano-details.entry.js +2 -3
  773. package/dist/nano-components/nano-dialog.entry.js +2 -3
  774. package/dist/nano-components/nano-dropdown_2.entry.js +4 -0
  775. package/dist/nano-components/nano-field-validator.entry.js +2 -3
  776. package/dist/nano-components/nano-file-upload.entry.js +2 -3
  777. package/dist/nano-components/nano-footer.entry.js +4 -0
  778. package/dist/nano-components/nano-global-nav.entry.js +2 -3
  779. package/dist/nano-components/nano-grid-item.entry.js +2 -3
  780. package/dist/nano-components/nano-grid_2.entry.js +2 -3
  781. package/dist/nano-components/nano-hero.entry.js +2 -3
  782. package/dist/nano-components/nano-icon-item.entry.js +4 -0
  783. package/dist/nano-components/nano-icon_3.entry.js +4 -0
  784. package/dist/nano-components/nano-in-page-nav.entry.js +4 -0
  785. package/dist/nano-components/nano-intersection-observe.entry.js +2 -3
  786. package/dist/nano-components/nano-masked-overflow.entry.js +4 -0
  787. package/dist/nano-components/nano-menu-drawer.entry.js +2 -3
  788. package/dist/nano-components/nano-more-less.entry.js +2 -3
  789. package/dist/nano-components/nano-nav-item.entry.js +4 -0
  790. package/dist/nano-components/nano-progress-bar.entry.js +2 -3
  791. package/dist/nano-components/nano-range.entry.js +2 -3
  792. package/dist/nano-components/nano-rating.entry.js +2 -3
  793. package/dist/nano-components/nano-resize-observe_2.entry.js +2 -3
  794. package/dist/nano-components/nano-slide.entry.js +2 -3
  795. package/dist/nano-components/nano-slides-BEE7xEu_.js +22 -0
  796. package/dist/nano-components/nano-slides.entry.js +2 -3
  797. package/dist/nano-components/nano-sortable.entry.js +2 -3
  798. package/dist/nano-components/nano-spinner.entry.js +2 -3
  799. package/dist/nano-components/nano-split-pane.entry.js +2 -3
  800. package/dist/nano-components/nano-sticker.entry.js +2 -3
  801. package/dist/nano-components/nano-tab-content.entry.js +2 -3
  802. package/dist/nano-components/nano-tab-group.entry.js +2 -3
  803. package/dist/nano-components/nano-tab.entry.js +2 -3
  804. package/dist/nano-components/nano-table.entry.js +2 -3
  805. package/dist/nano-components/page-dots-D2WI1eZ0.js +4 -0
  806. package/dist/nano-components/pictogram/analyse.svg +10 -0
  807. package/dist/nano-components/pictogram/animal-research.svg +4 -0
  808. package/dist/nano-components/pictogram/assembly.svg +3 -0
  809. package/dist/nano-components/pictogram/biopharma.svg +3 -0
  810. package/dist/nano-components/pictogram/cancer-research.svg +15 -0
  811. package/dist/nano-components/pictogram/chromatin-conformation.svg +3 -0
  812. package/dist/nano-components/pictogram/clinical-research.svg +3 -0
  813. package/dist/nano-components/pictogram/environmental-conservation.svg +5 -0
  814. package/dist/nano-components/pictogram/epigenetics.svg +5 -0
  815. package/dist/nano-components/pictogram/fusion-transcripts.svg +3 -0
  816. package/dist/nano-components/pictogram/gene-expression.svg +3 -0
  817. package/dist/nano-components/pictogram/genome-research.svg +3 -0
  818. package/dist/nano-components/pictogram/human-genomics.svg +4 -0
  819. package/dist/nano-components/pictogram/infectious-disease.svg +13 -0
  820. package/dist/nano-components/pictogram/microbial-genomics.svg +15 -0
  821. package/dist/nano-components/pictogram/microbiome-metagenomics.svg +16 -0
  822. package/dist/nano-components/pictogram/multiomics.svg +13 -0
  823. package/dist/nano-components/pictogram/plant-research.svg +3 -0
  824. package/dist/nano-components/pictogram/population-genomics.svg +6 -0
  825. package/dist/nano-components/pictogram/prepare.svg +4 -0
  826. package/dist/nano-components/pictogram/scalable.svg +12 -0
  827. package/dist/nano-components/pictogram/sequence.svg +3 -0
  828. package/dist/nano-components/pictogram/single-cell-spatial-transcriptions.svg +12 -0
  829. package/dist/nano-components/pictogram/snvs-phasing.svg +4 -0
  830. package/dist/nano-components/pictogram/splice-variation.svg +4 -0
  831. package/dist/nano-components/pictogram/structural-variation.svg +4 -0
  832. package/dist/nano-components/pictogram/targeted-sequencing.svg +10 -0
  833. package/dist/nano-components/pictogram/transcriptomics.svg +3 -0
  834. package/dist/nano-components/pictogram/unrestricted-read-length.svg +10 -0
  835. package/dist/nano-components/pictogram/whole-genome-sequencing.svg +3 -0
  836. package/dist/nano-components/pictogram/workflow-end-to-end.svg +3 -0
  837. package/dist/nano-components/popover-D1cBIHdr.js +4 -0
  838. package/dist/nano-components/renderer-CnE0Hztu.js +4 -0
  839. package/dist/nano-components/scroll-DHa1CIPP.js +4 -0
  840. package/dist/nano-components/search-insights-8OL2oeQN.js +4 -0
  841. package/dist/nano-components/slot-lixS0pd2.js +4 -0
  842. package/dist/nano-components/style-BrRDhFfF.js +4 -0
  843. package/dist/nano-components/tabbable-QmV19K7Q.js +4 -0
  844. package/dist/nano-components/table.worker-BTF0UXAd.js +4 -0
  845. package/dist/nano-components/table.worker-zeRR3oed.js +4 -0
  846. package/dist/nano-components/theme-aiuyr36I.js +4 -0
  847. package/dist/nano-components/throttle-C93FMm2Z.js +4 -0
  848. package/dist/plugins/stencil/vue-output/generate-vue-component.js +73 -0
  849. package/dist/plugins/stencil/vue-output/index.js +4 -0
  850. package/dist/plugins/stencil/vue-output/output-vue.js +95 -0
  851. package/dist/plugins/stencil/vue-output/plugin.js +43 -0
  852. package/dist/plugins/stencil/vue-output/types.js +1 -0
  853. package/dist/plugins/stencil/vue-output/utils.js +81 -0
  854. package/dist/stencil.config.js +49 -22
  855. package/dist/stencil.config.prod.js +4 -2
  856. package/dist/style/components.css +1 -0
  857. package/dist/style/components.css.map +1 -0
  858. package/dist/style/core.css +1 -0
  859. package/dist/style/core.css.map +1 -0
  860. package/dist/style/dark.css +1 -0
  861. package/dist/style/dark.css.map +1 -0
  862. package/dist/style/light.css +1 -0
  863. package/dist/style/light.css.map +1 -0
  864. package/dist/style/nano.css +1 -0
  865. package/dist/style/nano.css.map +1 -0
  866. package/dist/testing/mocks/intersection-observer.js +1 -2
  867. package/dist/types/Users/John.Jenkins/projects/nano-components/packages/components/.stencil/stencil.config.d.ts +2 -0
  868. package/dist/types/Users/John.Jenkins/projects/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +2 -0
  869. package/dist/types/components/accordion/accordion.d.ts +10 -12
  870. package/dist/types/components/alert/alert.d.ts +35 -5
  871. package/dist/types/components/alert/alert.helpers.d.ts +7 -5
  872. package/dist/types/components/algolia/algolia-interface.d.ts +1 -1
  873. package/dist/types/components/avatar/avatar.d.ts +13 -0
  874. package/dist/types/components/badge/badge.d.ts +17 -0
  875. package/dist/types/components/breadcrumb/breadcrumb.d.ts +22 -0
  876. package/dist/types/components/card/card.d.ts +20 -0
  877. package/dist/types/components/card-carousel/card-carousel.d.ts +32 -0
  878. package/dist/types/components/checkbox/checkbox-group.d.ts +12 -7
  879. package/dist/types/components/checkbox/checkbox.d.ts +16 -11
  880. package/dist/types/components/collapsible-comparison/collapsible-comparison.d.ts +30 -0
  881. package/dist/types/components/content-links/content-links.d.ts +10 -0
  882. package/dist/types/components/cta/cta.d.ts +30 -0
  883. package/dist/types/components/data-table/table-interface.d.ts +280 -0
  884. package/dist/types/components/data-table/table.d.ts +250 -0
  885. package/dist/types/components/data-table/table.store.d.ts +24 -0
  886. package/dist/types/components/data-table/table.utils.d.ts +63 -0
  887. package/dist/types/components/datalist/datalist.d.ts +5 -5
  888. package/dist/types/components/date-input/date-input.d.ts +8 -5
  889. package/dist/types/components/date-picker/date-picker.d.ts +11 -15
  890. package/dist/types/components/details/details.d.ts +25 -27
  891. package/dist/types/components/dialog/dialog.d.ts +4 -5
  892. package/dist/types/components/dialog/dialog.helpers.d.ts +2 -5
  893. package/dist/types/components/drawer/drawer.d.ts +14 -3
  894. package/dist/types/components/dropdown/dropdown.d.ts +11 -9
  895. package/dist/types/components/field-validator/field-validator.d.ts +4 -6
  896. package/dist/types/components/footer/footer.d.ts +21 -0
  897. package/dist/types/components/form-control/form-control.d.ts +4 -1
  898. package/dist/types/components/global-nav/global-nav.d.ts +111 -280
  899. package/dist/types/components/global-search-results/global-search-results.d.ts +8 -7
  900. package/dist/types/components/grid/grid.d.ts +4 -6
  901. package/dist/types/components/icon/icon.d.ts +21 -14
  902. package/dist/types/components/icon-button/icon-button.d.ts +4 -4
  903. package/dist/types/components/icon-item/icon-item.d.ts +17 -0
  904. package/dist/types/components/in-page-nav/in-page-nav.d.ts +52 -0
  905. package/dist/types/components/input/input.d.ts +59 -21
  906. package/dist/types/components/intersection-observe/intersection-observe.d.ts +6 -2
  907. package/dist/types/components/masked-overflow/masked-overflow.d.ts +94 -0
  908. package/dist/types/components/menu/menu.d.ts +15 -7
  909. package/dist/types/components/nav-item/nav-item.d.ts +30 -84
  910. package/dist/types/components/option/option.d.ts +2 -1
  911. package/dist/types/components/progress-bar/progress-bar.d.ts +4 -1
  912. package/dist/types/components/range/range.d.ts +3 -4
  913. package/dist/types/components/rating/rating.d.ts +0 -1
  914. package/dist/types/components/resize-observe/resize-observe.d.ts +2 -4
  915. package/dist/types/components/select/select.d.ts +20 -21
  916. package/dist/types/components/skeleton/skeleton.d.ts +3 -2
  917. package/dist/types/components/slides/slides.d.ts +3 -3
  918. package/dist/types/components/sortable/sortable.d.ts +5 -5
  919. package/dist/types/components/spinner/spinner.d.ts +4 -0
  920. package/dist/types/components/split-pane/split-pane.d.ts +3 -0
  921. package/dist/types/components/table/table.d.ts +27 -245
  922. package/dist/types/components/tabs/tab-content.d.ts +6 -1
  923. package/dist/types/components/tabs/tab-group.d.ts +17 -37
  924. package/dist/types/components/tabs/tab.d.ts +9 -4
  925. package/dist/types/components/tag/tag.d.ts +30 -0
  926. package/dist/types/components/tooltip/tooltip.d.ts +4 -0
  927. package/dist/types/components.d.ts +2617 -1108
  928. package/dist/types/stencil-public-runtime.d.ts +23 -1
  929. package/dist/types/types/shared.d.ts +1 -1
  930. package/dist/types/utils/active-element.d.ts +20 -0
  931. package/dist/types/utils/popover.d.ts +1 -0
  932. package/dist/types/utils/scroll.d.ts +15 -1
  933. package/dist/types/utils/slot.d.ts +25 -9
  934. package/dist/types/utils/store/component-store.d.ts +21 -0
  935. package/dist/types/utils/style.d.ts +9 -0
  936. package/dist/types/utils/tabbable.d.ts +4 -2
  937. package/dist/types/utils/transitions.d.ts +2 -0
  938. package/dist/wdio.conf.js +1 -3
  939. package/docs-json.json +16655 -13467
  940. package/docs-vscode.json +807 -442
  941. package/hydrate/index.d.ts +38 -24
  942. package/hydrate/index.js +15086 -15545
  943. package/hydrate/index.mjs +15085 -15544
  944. package/loader/cdn.js +1 -1
  945. package/loader/index.cjs.js +1 -1
  946. package/loader/index.es2017.js +1 -1
  947. package/loader/index.js +1 -1
  948. package/package.json +26 -19
  949. package/dist/cjs/active-element-8ffcfe49.js +0 -21
  950. package/dist/cjs/active-element-8ffcfe49.js.map +0 -1
  951. package/dist/cjs/algolia-data-ca9cd58e.js +0 -51
  952. package/dist/cjs/algolia-data-ca9cd58e.js.map +0 -1
  953. package/dist/cjs/algoliasearch-lite.esm.browser-890872fc.js +0 -968
  954. package/dist/cjs/algoliasearch-lite.esm.browser-890872fc.js.map +0 -1
  955. package/dist/cjs/app-globals-3e14cb71.js +0 -41
  956. package/dist/cjs/app-globals-3e14cb71.js.map +0 -1
  957. package/dist/cjs/component-store-b8d4bd91.js +0 -325
  958. package/dist/cjs/component-store-b8d4bd91.js.map +0 -1
  959. package/dist/cjs/date-utils-d9d3e6b4.js +0 -234
  960. package/dist/cjs/date-utils-d9d3e6b4.js.map +0 -1
  961. package/dist/cjs/dom-b99a1aec.js +0 -83
  962. package/dist/cjs/dom-b99a1aec.js.map +0 -1
  963. package/dist/cjs/drag-c0a99167.js +0 -74
  964. package/dist/cjs/drag-c0a99167.js.map +0 -1
  965. package/dist/cjs/events-96e9a3d4.js +0 -39
  966. package/dist/cjs/events-96e9a3d4.js.map +0 -1
  967. package/dist/cjs/fade-6a5004f4.js +0 -214
  968. package/dist/cjs/fade-6a5004f4.js.map +0 -1
  969. package/dist/cjs/focus-visible-39b54d1f.js +0 -68
  970. package/dist/cjs/focus-visible-39b54d1f.js.map +0 -1
  971. package/dist/cjs/form-control-5bb39cc2.js +0 -82
  972. package/dist/cjs/form-control-5bb39cc2.js.map +0 -1
  973. package/dist/cjs/fullscreen-f5db9bbe.js +0 -134
  974. package/dist/cjs/fullscreen-f5db9bbe.js.map +0 -1
  975. package/dist/cjs/index-41263d6e.js +0 -660
  976. package/dist/cjs/index-41263d6e.js.map +0 -1
  977. package/dist/cjs/index-615cdb64.js +0 -3085
  978. package/dist/cjs/index-615cdb64.js.map +0 -1
  979. package/dist/cjs/index-a92a0379.js +0 -200
  980. package/dist/cjs/index-a92a0379.js.map +0 -1
  981. package/dist/cjs/index-browser-745018ea.js +0 -16
  982. package/dist/cjs/index-browser-745018ea.js.map +0 -1
  983. package/dist/cjs/index.cjs.js.map +0 -1
  984. package/dist/cjs/lazyload-13d72e60.js +0 -96
  985. package/dist/cjs/lazyload-13d72e60.js.map +0 -1
  986. package/dist/cjs/loader.cjs.js.map +0 -1
  987. package/dist/cjs/local-my-account-53c19159.js +0 -472
  988. package/dist/cjs/local-my-account-53c19159.js.map +0 -1
  989. package/dist/cjs/math-ea9cdc71.js +0 -41
  990. package/dist/cjs/math-ea9cdc71.js.map +0 -1
  991. package/dist/cjs/modal-ff47c677.js +0 -51
  992. package/dist/cjs/modal-ff47c677.js.map +0 -1
  993. package/dist/cjs/nano-accordion.cjs.entry.js.map +0 -1
  994. package/dist/cjs/nano-alert.cjs.entry.js.map +0 -1
  995. package/dist/cjs/nano-algolia-filter.cjs.entry.js.map +0 -1
  996. package/dist/cjs/nano-algolia-pagination.cjs.entry.js.map +0 -1
  997. package/dist/cjs/nano-algolia-results.cjs.entry.js.map +0 -1
  998. package/dist/cjs/nano-algolia.cjs.entry.js.map +0 -1
  999. package/dist/cjs/nano-animation.cjs.entry.js.map +0 -1
  1000. package/dist/cjs/nano-checkbox-group.cjs.entry.js.map +0 -1
  1001. package/dist/cjs/nano-checkbox.cjs.entry.js.map +0 -1
  1002. package/dist/cjs/nano-components.cjs.js.map +0 -1
  1003. package/dist/cjs/nano-datalist_3.cjs.entry.js.map +0 -1
  1004. package/dist/cjs/nano-date-input.cjs.entry.js.map +0 -1
  1005. package/dist/cjs/nano-date-picker.cjs.entry.js +0 -393
  1006. package/dist/cjs/nano-date-picker.cjs.entry.js.map +0 -1
  1007. package/dist/cjs/nano-details.cjs.entry.js.map +0 -1
  1008. package/dist/cjs/nano-dialog.cjs.entry.js.map +0 -1
  1009. package/dist/cjs/nano-drawer.cjs.entry.js +0 -289
  1010. package/dist/cjs/nano-drawer.cjs.entry.js.map +0 -1
  1011. package/dist/cjs/nano-dropdown.cjs.entry.js +0 -373
  1012. package/dist/cjs/nano-dropdown.cjs.entry.js.map +0 -1
  1013. package/dist/cjs/nano-field-validator.cjs.entry.js.map +0 -1
  1014. package/dist/cjs/nano-file-upload.cjs.entry.js.map +0 -1
  1015. package/dist/cjs/nano-global-nav-user-profile_3.cjs.entry.js +0 -1107
  1016. package/dist/cjs/nano-global-nav-user-profile_3.cjs.entry.js.map +0 -1
  1017. package/dist/cjs/nano-global-nav.cjs.entry.js.map +0 -1
  1018. package/dist/cjs/nano-global-search-results.cjs.entry.js +0 -636
  1019. package/dist/cjs/nano-global-search-results.cjs.entry.js.map +0 -1
  1020. package/dist/cjs/nano-grid-item.cjs.entry.js.map +0 -1
  1021. package/dist/cjs/nano-grid_2.cjs.entry.js.map +0 -1
  1022. package/dist/cjs/nano-hero.cjs.entry.js.map +0 -1
  1023. package/dist/cjs/nano-icon-button_2.cjs.entry.js +0 -341
  1024. package/dist/cjs/nano-icon-button_2.cjs.entry.js.map +0 -1
  1025. package/dist/cjs/nano-icon.cjs.entry.js +0 -320
  1026. package/dist/cjs/nano-icon.cjs.entry.js.map +0 -1
  1027. package/dist/cjs/nano-input.cjs.entry.js +0 -548
  1028. package/dist/cjs/nano-input.cjs.entry.js.map +0 -1
  1029. package/dist/cjs/nano-intersection-observe.cjs.entry.js.map +0 -1
  1030. package/dist/cjs/nano-menu-drawer.cjs.entry.js.map +0 -1
  1031. package/dist/cjs/nano-more-less.cjs.entry.js.map +0 -1
  1032. package/dist/cjs/nano-overflow-nav.cjs.entry.js +0 -342
  1033. package/dist/cjs/nano-overflow-nav.cjs.entry.js.map +0 -1
  1034. package/dist/cjs/nano-progress-bar.cjs.entry.js.map +0 -1
  1035. package/dist/cjs/nano-range.cjs.entry.js.map +0 -1
  1036. package/dist/cjs/nano-rating.cjs.entry.js.map +0 -1
  1037. package/dist/cjs/nano-resize-observe_2.cjs.entry.js.map +0 -1
  1038. package/dist/cjs/nano-slide.cjs.entry.js.map +0 -1
  1039. package/dist/cjs/nano-slides-0a60315d.js +0 -3043
  1040. package/dist/cjs/nano-slides-0a60315d.js.map +0 -1
  1041. package/dist/cjs/nano-slides.cjs.entry.js.map +0 -1
  1042. package/dist/cjs/nano-sortable.cjs.entry.js.map +0 -1
  1043. package/dist/cjs/nano-spinner.cjs.entry.js.map +0 -1
  1044. package/dist/cjs/nano-split-pane.cjs.entry.js.map +0 -1
  1045. package/dist/cjs/nano-sticker.cjs.entry.js.map +0 -1
  1046. package/dist/cjs/nano-tab-content.cjs.entry.js.map +0 -1
  1047. package/dist/cjs/nano-tab-group.cjs.entry.js.map +0 -1
  1048. package/dist/cjs/nano-tab.cjs.entry.js.map +0 -1
  1049. package/dist/cjs/nano-table-132f2056.js +0 -1880
  1050. package/dist/cjs/nano-table-132f2056.js.map +0 -1
  1051. package/dist/cjs/nano-table.cjs.entry.js.map +0 -1
  1052. package/dist/cjs/page-dots-ecdd64d1.js +0 -141
  1053. package/dist/cjs/page-dots-ecdd64d1.js.map +0 -1
  1054. package/dist/cjs/popover-3dfc73f6.js +0 -1932
  1055. package/dist/cjs/popover-3dfc73f6.js.map +0 -1
  1056. package/dist/cjs/renderer-cd8b6098.js +0 -63
  1057. package/dist/cjs/renderer-cd8b6098.js.map +0 -1
  1058. package/dist/cjs/scroll-a3e5c6c6.js +0 -128
  1059. package/dist/cjs/scroll-a3e5c6c6.js.map +0 -1
  1060. package/dist/cjs/scroll-parent-798d9651.js +0 -31
  1061. package/dist/cjs/scroll-parent-798d9651.js.map +0 -1
  1062. package/dist/cjs/search-insights-694b3436.js +0 -53
  1063. package/dist/cjs/search-insights-694b3436.js.map +0 -1
  1064. package/dist/cjs/slot-4e057042.js +0 -61
  1065. package/dist/cjs/slot-4e057042.js.map +0 -1
  1066. package/dist/cjs/tabbable-619dc959.js +0 -112
  1067. package/dist/cjs/tabbable-619dc959.js.map +0 -1
  1068. package/dist/cjs/table.worker-1a4b9015.js +0 -33
  1069. package/dist/cjs/table.worker-1a4b9015.js.map +0 -1
  1070. package/dist/cjs/table.worker-da5412ed.js +0 -4
  1071. package/dist/cjs/theme-a2f7ddf8.js +0 -49
  1072. package/dist/cjs/theme-a2f7ddf8.js.map +0 -1
  1073. package/dist/cjs/throttle-46a497fb.js +0 -54
  1074. package/dist/cjs/throttle-46a497fb.js.map +0 -1
  1075. package/dist/cjs/transitions-a2b2090b.js +0 -62
  1076. package/dist/cjs/transitions-a2b2090b.js.map +0 -1
  1077. package/dist/collection/components/accordion/accordion.js.map +0 -1
  1078. package/dist/collection/components/alert/alert.helpers.js.map +0 -1
  1079. package/dist/collection/components/alert/alert.js.map +0 -1
  1080. package/dist/collection/components/algolia/algolia-data.js.map +0 -1
  1081. package/dist/collection/components/algolia/algolia-filter.js.map +0 -1
  1082. package/dist/collection/components/algolia/algolia-interface.js.map +0 -1
  1083. package/dist/collection/components/algolia/algolia-pagination.js.map +0 -1
  1084. package/dist/collection/components/algolia/algolia-results.js.map +0 -1
  1085. package/dist/collection/components/algolia/algolia.js.map +0 -1
  1086. package/dist/collection/components/algolia/lib/squirrelly/browser.js.map +0 -1
  1087. package/dist/collection/components/algolia/lib/squirrelly/compile-string.js.map +0 -1
  1088. package/dist/collection/components/algolia/lib/squirrelly/compile.js.map +0 -1
  1089. package/dist/collection/components/algolia/lib/squirrelly/config.js.map +0 -1
  1090. package/dist/collection/components/algolia/lib/squirrelly/container-utils.js.map +0 -1
  1091. package/dist/collection/components/algolia/lib/squirrelly/containers.js.map +0 -1
  1092. package/dist/collection/components/algolia/lib/squirrelly/err.js.map +0 -1
  1093. package/dist/collection/components/algolia/lib/squirrelly/parse.js.map +0 -1
  1094. package/dist/collection/components/algolia/lib/squirrelly/render.js.map +0 -1
  1095. package/dist/collection/components/algolia/lib/squirrelly/storage.js.map +0 -1
  1096. package/dist/collection/components/algolia/lib/squirrelly/utils.js.map +0 -1
  1097. package/dist/collection/components/algolia/lib/template.js.map +0 -1
  1098. package/dist/collection/components/animation/animation.js.map +0 -1
  1099. package/dist/collection/components/animation/animations/attention_seekers/bounce.js.map +0 -1
  1100. package/dist/collection/components/animation/animations/attention_seekers/flash.js.map +0 -1
  1101. package/dist/collection/components/animation/animations/attention_seekers/headShake.js.map +0 -1
  1102. package/dist/collection/components/animation/animations/attention_seekers/heartBeat.js.map +0 -1
  1103. package/dist/collection/components/animation/animations/attention_seekers/jello.js.map +0 -1
  1104. package/dist/collection/components/animation/animations/attention_seekers/pulse.js.map +0 -1
  1105. package/dist/collection/components/animation/animations/attention_seekers/rubberBand.js.map +0 -1
  1106. package/dist/collection/components/animation/animations/attention_seekers/shake.js.map +0 -1
  1107. package/dist/collection/components/animation/animations/attention_seekers/shakeX.js.map +0 -1
  1108. package/dist/collection/components/animation/animations/attention_seekers/shakeY.js.map +0 -1
  1109. package/dist/collection/components/animation/animations/attention_seekers/swing.js.map +0 -1
  1110. package/dist/collection/components/animation/animations/attention_seekers/tada.js.map +0 -1
  1111. package/dist/collection/components/animation/animations/attention_seekers/wobble.js.map +0 -1
  1112. package/dist/collection/components/animation/animations/back_entrances/backInDown.js.map +0 -1
  1113. package/dist/collection/components/animation/animations/back_entrances/backInLeft.js.map +0 -1
  1114. package/dist/collection/components/animation/animations/back_entrances/backInRight.js.map +0 -1
  1115. package/dist/collection/components/animation/animations/back_entrances/backInUp.js.map +0 -1
  1116. package/dist/collection/components/animation/animations/back_exits/backOutDown.js.map +0 -1
  1117. package/dist/collection/components/animation/animations/back_exits/backOutLeft.js.map +0 -1
  1118. package/dist/collection/components/animation/animations/back_exits/backOutRight.js.map +0 -1
  1119. package/dist/collection/components/animation/animations/back_exits/backOutUp.js.map +0 -1
  1120. package/dist/collection/components/animation/animations/bouncing_entrances/bounceIn.js.map +0 -1
  1121. package/dist/collection/components/animation/animations/bouncing_entrances/bounceInDown.js.map +0 -1
  1122. package/dist/collection/components/animation/animations/bouncing_entrances/bounceInLeft.js.map +0 -1
  1123. package/dist/collection/components/animation/animations/bouncing_entrances/bounceInRight.js.map +0 -1
  1124. package/dist/collection/components/animation/animations/bouncing_entrances/bounceInUp.js.map +0 -1
  1125. package/dist/collection/components/animation/animations/bouncing_exits/bounceOut.js.map +0 -1
  1126. package/dist/collection/components/animation/animations/bouncing_exits/bounceOutDown.js.map +0 -1
  1127. package/dist/collection/components/animation/animations/bouncing_exits/bounceOutLeft.js.map +0 -1
  1128. package/dist/collection/components/animation/animations/bouncing_exits/bounceOutRight.js.map +0 -1
  1129. package/dist/collection/components/animation/animations/bouncing_exits/bounceOutUp.js.map +0 -1
  1130. package/dist/collection/components/animation/animations/easings/easings.js.map +0 -1
  1131. package/dist/collection/components/animation/animations/fading_entrances/fadeIn.js.map +0 -1
  1132. package/dist/collection/components/animation/animations/fading_entrances/fadeInBottomLeft.js.map +0 -1
  1133. package/dist/collection/components/animation/animations/fading_entrances/fadeInBottomRight.js.map +0 -1
  1134. package/dist/collection/components/animation/animations/fading_entrances/fadeInDown.js.map +0 -1
  1135. package/dist/collection/components/animation/animations/fading_entrances/fadeInDownBig.js.map +0 -1
  1136. package/dist/collection/components/animation/animations/fading_entrances/fadeInLeft.js.map +0 -1
  1137. package/dist/collection/components/animation/animations/fading_entrances/fadeInLeftBig.js.map +0 -1
  1138. package/dist/collection/components/animation/animations/fading_entrances/fadeInRight.js.map +0 -1
  1139. package/dist/collection/components/animation/animations/fading_entrances/fadeInRightBig.js.map +0 -1
  1140. package/dist/collection/components/animation/animations/fading_entrances/fadeInTopLeft.js.map +0 -1
  1141. package/dist/collection/components/animation/animations/fading_entrances/fadeInTopRight.js.map +0 -1
  1142. package/dist/collection/components/animation/animations/fading_entrances/fadeInUp.js.map +0 -1
  1143. package/dist/collection/components/animation/animations/fading_entrances/fadeInUpBig.js.map +0 -1
  1144. package/dist/collection/components/animation/animations/fading_exits/fadeOut.js.map +0 -1
  1145. package/dist/collection/components/animation/animations/fading_exits/fadeOutBottomLeft.js.map +0 -1
  1146. package/dist/collection/components/animation/animations/fading_exits/fadeOutBottomRight.js.map +0 -1
  1147. package/dist/collection/components/animation/animations/fading_exits/fadeOutDown.js.map +0 -1
  1148. package/dist/collection/components/animation/animations/fading_exits/fadeOutDownBig.js.map +0 -1
  1149. package/dist/collection/components/animation/animations/fading_exits/fadeOutLeft.js.map +0 -1
  1150. package/dist/collection/components/animation/animations/fading_exits/fadeOutLeftBig.js.map +0 -1
  1151. package/dist/collection/components/animation/animations/fading_exits/fadeOutRight.js.map +0 -1
  1152. package/dist/collection/components/animation/animations/fading_exits/fadeOutRightBig.js.map +0 -1
  1153. package/dist/collection/components/animation/animations/fading_exits/fadeOutTopLeft.js.map +0 -1
  1154. package/dist/collection/components/animation/animations/fading_exits/fadeOutTopRight.js.map +0 -1
  1155. package/dist/collection/components/animation/animations/fading_exits/fadeOutUp.js.map +0 -1
  1156. package/dist/collection/components/animation/animations/fading_exits/fadeOutUpBig.js.map +0 -1
  1157. package/dist/collection/components/animation/animations/flippers/flip.js.map +0 -1
  1158. package/dist/collection/components/animation/animations/flippers/flipInX.js.map +0 -1
  1159. package/dist/collection/components/animation/animations/flippers/flipInY.js.map +0 -1
  1160. package/dist/collection/components/animation/animations/flippers/flipOutX.js.map +0 -1
  1161. package/dist/collection/components/animation/animations/flippers/flipOutY.js.map +0 -1
  1162. package/dist/collection/components/animation/animations/index.js.map +0 -1
  1163. package/dist/collection/components/animation/animations/lightspeed/lightSpeedInLeft.js.map +0 -1
  1164. package/dist/collection/components/animation/animations/lightspeed/lightSpeedInRight.js.map +0 -1
  1165. package/dist/collection/components/animation/animations/lightspeed/lightSpeedOutLeft.js.map +0 -1
  1166. package/dist/collection/components/animation/animations/lightspeed/lightSpeedOutRight.js.map +0 -1
  1167. package/dist/collection/components/animation/animations/rotating_entrances/rotateIn.js.map +0 -1
  1168. package/dist/collection/components/animation/animations/rotating_entrances/rotateInDownLeft.js.map +0 -1
  1169. package/dist/collection/components/animation/animations/rotating_entrances/rotateInDownRight.js.map +0 -1
  1170. package/dist/collection/components/animation/animations/rotating_entrances/rotateInUpLeft.js.map +0 -1
  1171. package/dist/collection/components/animation/animations/rotating_entrances/rotateInUpRight.js.map +0 -1
  1172. package/dist/collection/components/animation/animations/rotating_exits/rotateOut.js.map +0 -1
  1173. package/dist/collection/components/animation/animations/rotating_exits/rotateOutDownLeft.js.map +0 -1
  1174. package/dist/collection/components/animation/animations/rotating_exits/rotateOutDownRight.js.map +0 -1
  1175. package/dist/collection/components/animation/animations/rotating_exits/rotateOutUpLeft.js.map +0 -1
  1176. package/dist/collection/components/animation/animations/rotating_exits/rotateOutUpRight.js.map +0 -1
  1177. package/dist/collection/components/animation/animations/sliding_entrances/slideInDown.js.map +0 -1
  1178. package/dist/collection/components/animation/animations/sliding_entrances/slideInLeft.js.map +0 -1
  1179. package/dist/collection/components/animation/animations/sliding_entrances/slideInRight.js.map +0 -1
  1180. package/dist/collection/components/animation/animations/sliding_entrances/slideInUp.js.map +0 -1
  1181. package/dist/collection/components/animation/animations/sliding_exits/slideOutDown.js.map +0 -1
  1182. package/dist/collection/components/animation/animations/sliding_exits/slideOutLeft.js.map +0 -1
  1183. package/dist/collection/components/animation/animations/sliding_exits/slideOutRight.js.map +0 -1
  1184. package/dist/collection/components/animation/animations/sliding_exits/slideOutUp.js.map +0 -1
  1185. package/dist/collection/components/animation/animations/specials/hinge.js.map +0 -1
  1186. package/dist/collection/components/animation/animations/specials/jackInTheBox.js.map +0 -1
  1187. package/dist/collection/components/animation/animations/specials/rollIn.js.map +0 -1
  1188. package/dist/collection/components/animation/animations/specials/rollOut.js.map +0 -1
  1189. package/dist/collection/components/animation/animations/zooming_entrances/zoomIn.js.map +0 -1
  1190. package/dist/collection/components/animation/animations/zooming_entrances/zoomInDown.js.map +0 -1
  1191. package/dist/collection/components/animation/animations/zooming_entrances/zoomInLeft.js.map +0 -1
  1192. package/dist/collection/components/animation/animations/zooming_entrances/zoomInRight.js.map +0 -1
  1193. package/dist/collection/components/animation/animations/zooming_entrances/zoomInUp.js.map +0 -1
  1194. package/dist/collection/components/animation/animations/zooming_exits/zoomOut.js.map +0 -1
  1195. package/dist/collection/components/animation/animations/zooming_exits/zoomOutDown.js.map +0 -1
  1196. package/dist/collection/components/animation/animations/zooming_exits/zoomOutLeft.js.map +0 -1
  1197. package/dist/collection/components/animation/animations/zooming_exits/zoomOutRight.js.map +0 -1
  1198. package/dist/collection/components/animation/animations/zooming_exits/zoomOutUp.js.map +0 -1
  1199. package/dist/collection/components/checkbox/checkbox-group.js.map +0 -1
  1200. package/dist/collection/components/checkbox/checkbox-interface.js.map +0 -1
  1201. package/dist/collection/components/checkbox/checkbox.js.map +0 -1
  1202. package/dist/collection/components/datalist/datalist.js.map +0 -1
  1203. package/dist/collection/components/date-input/date-input.js.map +0 -1
  1204. package/dist/collection/components/date-picker/date-picker.js.map +0 -1
  1205. package/dist/collection/components/date-picker/duet-date-picker/date-adapter.js.map +0 -1
  1206. package/dist/collection/components/date-picker/duet-date-picker/date-localization.js.map +0 -1
  1207. package/dist/collection/components/date-picker/duet-date-picker/date-picker-day.js.map +0 -1
  1208. package/dist/collection/components/date-picker/duet-date-picker/date-picker-month.js.map +0 -1
  1209. package/dist/collection/components/details/details.js.map +0 -1
  1210. package/dist/collection/components/dialog/dialog.helpers.js.map +0 -1
  1211. package/dist/collection/components/dialog/dialog.js.map +0 -1
  1212. package/dist/collection/components/drawer/drawer.js.map +0 -1
  1213. package/dist/collection/components/dropdown/dropdown.js.map +0 -1
  1214. package/dist/collection/components/field-validator/field-validator.js.map +0 -1
  1215. package/dist/collection/components/file-upload/file-upload-list.js.map +0 -1
  1216. package/dist/collection/components/file-upload/file-upload.js.map +0 -1
  1217. package/dist/collection/components/form-control/form-control.js.map +0 -1
  1218. package/dist/collection/components/global-nav/assets/local-my-account.json +0 -447
  1219. package/dist/collection/components/global-nav/global-nav-user-profile.js +0 -70
  1220. package/dist/collection/components/global-nav/global-nav-user-profile.js.map +0 -1
  1221. package/dist/collection/components/global-nav/global-nav.js.map +0 -1
  1222. package/dist/collection/components/global-nav/style/global-nav.css +0 -893
  1223. package/dist/collection/components/global-search-results/global-search-results.js.map +0 -1
  1224. package/dist/collection/components/grid/grid-item.js.map +0 -1
  1225. package/dist/collection/components/grid/grid.js.map +0 -1
  1226. package/dist/collection/components/hero/hero.js.map +0 -1
  1227. package/dist/collection/components/icon/icon.js.map +0 -1
  1228. package/dist/collection/components/icon/request.js.map +0 -1
  1229. package/dist/collection/components/icon/utils.js.map +0 -1
  1230. package/dist/collection/components/icon/validate.js.map +0 -1
  1231. package/dist/collection/components/icon-button/icon-button.js.map +0 -1
  1232. package/dist/collection/components/img/img.js.map +0 -1
  1233. package/dist/collection/components/input/input.js.map +0 -1
  1234. package/dist/collection/components/intersection-observe/intersection-observe.js.map +0 -1
  1235. package/dist/collection/components/menu/menu.js.map +0 -1
  1236. package/dist/collection/components/menu-drawer/menu-drawer.js.map +0 -1
  1237. package/dist/collection/components/more-less/more-less.js.map +0 -1
  1238. package/dist/collection/components/nav-item/nav-item.js.map +0 -1
  1239. package/dist/collection/components/option/option.js.map +0 -1
  1240. package/dist/collection/components/overflow-nav/overflow-nav.css +0 -226
  1241. package/dist/collection/components/overflow-nav/overflow-nav.js +0 -537
  1242. package/dist/collection/components/overflow-nav/overflow-nav.js.map +0 -1
  1243. package/dist/collection/components/progress-bar/progress-bar.js.map +0 -1
  1244. package/dist/collection/components/range/range.js.map +0 -1
  1245. package/dist/collection/components/rating/rating.js.map +0 -1
  1246. package/dist/collection/components/resize-observe/resize-observe.js.map +0 -1
  1247. package/dist/collection/components/select/select.js.map +0 -1
  1248. package/dist/collection/components/skeleton/skeleton.js.map +0 -1
  1249. package/dist/collection/components/slides/lib/js/animate.js.map +0 -1
  1250. package/dist/collection/components/slides/lib/js/cell.js.map +0 -1
  1251. package/dist/collection/components/slides/lib/js/drag.js.map +0 -1
  1252. package/dist/collection/components/slides/lib/js/fade.js.map +0 -1
  1253. package/dist/collection/components/slides/lib/js/flickity.js.map +0 -1
  1254. package/dist/collection/components/slides/lib/js/fullscreen.js.map +0 -1
  1255. package/dist/collection/components/slides/lib/js/index.js.map +0 -1
  1256. package/dist/collection/components/slides/lib/js/lazyload.js.map +0 -1
  1257. package/dist/collection/components/slides/lib/js/page-dots.js.map +0 -1
  1258. package/dist/collection/components/slides/lib/js/player.js.map +0 -1
  1259. package/dist/collection/components/slides/lib/js/prev-next-button.js.map +0 -1
  1260. package/dist/collection/components/slides/lib/js/slide.js.map +0 -1
  1261. package/dist/collection/components/slides/lib/js/utils/event-emitter.js.map +0 -1
  1262. package/dist/collection/components/slides/lib/js/utils/gestures.js.map +0 -1
  1263. package/dist/collection/components/slides/lib/js/utils/get-size.js.map +0 -1
  1264. package/dist/collection/components/slides/lib/js/utils/utils.js.map +0 -1
  1265. package/dist/collection/components/slides/slide.js.map +0 -1
  1266. package/dist/collection/components/slides/slides.js.map +0 -1
  1267. package/dist/collection/components/sortable/sortable.js.map +0 -1
  1268. package/dist/collection/components/spinner/spinner.js.map +0 -1
  1269. package/dist/collection/components/split-pane/split-pane.js.map +0 -1
  1270. package/dist/collection/components/sticker/sticker.js.map +0 -1
  1271. package/dist/collection/components/table/table.cell.js +0 -113
  1272. package/dist/collection/components/table/table.cell.js.map +0 -1
  1273. package/dist/collection/components/table/table.constants.js +0 -5
  1274. package/dist/collection/components/table/table.constants.js.map +0 -1
  1275. package/dist/collection/components/table/table.header.js +0 -63
  1276. package/dist/collection/components/table/table.header.js.map +0 -1
  1277. package/dist/collection/components/table/table.js.map +0 -1
  1278. package/dist/collection/components/table/table.pin-service.js +0 -389
  1279. package/dist/collection/components/table/table.pin-service.js.map +0 -1
  1280. package/dist/collection/components/table/table.row.js +0 -113
  1281. package/dist/collection/components/table/table.row.js.map +0 -1
  1282. package/dist/collection/components/table/table.store.js +0 -145
  1283. package/dist/collection/components/table/table.store.js.map +0 -1
  1284. package/dist/collection/components/table/table.utils.js +0 -157
  1285. package/dist/collection/components/table/table.utils.js.map +0 -1
  1286. package/dist/collection/components/table/table.worker.js +0 -221
  1287. package/dist/collection/components/table/table.worker.js.map +0 -1
  1288. package/dist/collection/components/tabs/tab-content.js.map +0 -1
  1289. package/dist/collection/components/tabs/tab-group.js.map +0 -1
  1290. package/dist/collection/components/tabs/tab.js.map +0 -1
  1291. package/dist/collection/components/tooltip/tooltip.js.map +0 -1
  1292. package/dist/collection/global/script/global.js.map +0 -1
  1293. package/dist/collection/index.js.map +0 -1
  1294. package/dist/collection/types/shared.js.map +0 -1
  1295. package/dist/collection/utils/active-element.js.map +0 -1
  1296. package/dist/collection/utils/constructible-style.js.map +0 -1
  1297. package/dist/collection/utils/custom-template.js.map +0 -1
  1298. package/dist/collection/utils/date-utils.js.map +0 -1
  1299. package/dist/collection/utils/dom.js.map +0 -1
  1300. package/dist/collection/utils/drag.js.map +0 -1
  1301. package/dist/collection/utils/events.js.map +0 -1
  1302. package/dist/collection/utils/fetch.js.map +0 -1
  1303. package/dist/collection/utils/focus-visible.js +0 -63
  1304. package/dist/collection/utils/focus-visible.js.map +0 -1
  1305. package/dist/collection/utils/form.js.map +0 -1
  1306. package/dist/collection/utils/gesture/gesture-controller.js.map +0 -1
  1307. package/dist/collection/utils/gesture/index.js.map +0 -1
  1308. package/dist/collection/utils/gesture/listener.js.map +0 -1
  1309. package/dist/collection/utils/gesture/pointer-events.js.map +0 -1
  1310. package/dist/collection/utils/gesture/recognizers.js.map +0 -1
  1311. package/dist/collection/utils/gesture/swipe-back.js.map +0 -1
  1312. package/dist/collection/utils/math.js.map +0 -1
  1313. package/dist/collection/utils/modal.js.map +0 -1
  1314. package/dist/collection/utils/popover.js.map +0 -1
  1315. package/dist/collection/utils/promise-queue.js.map +0 -1
  1316. package/dist/collection/utils/renderer.js.map +0 -1
  1317. package/dist/collection/utils/scroll-parent.js +0 -26
  1318. package/dist/collection/utils/scroll-parent.js.map +0 -1
  1319. package/dist/collection/utils/scroll.js.map +0 -1
  1320. package/dist/collection/utils/search-insights.js.map +0 -1
  1321. package/dist/collection/utils/slot.js.map +0 -1
  1322. package/dist/collection/utils/store/component-store.js.map +0 -1
  1323. package/dist/collection/utils/store/get-set.js.map +0 -1
  1324. package/dist/collection/utils/tabbable.js.map +0 -1
  1325. package/dist/collection/utils/testing/index.js.map +0 -1
  1326. package/dist/collection/utils/theme.js.map +0 -1
  1327. package/dist/collection/utils/throttle.js.map +0 -1
  1328. package/dist/collection/utils/transitions.js.map +0 -1
  1329. package/dist/components/active-element.js.map +0 -1
  1330. package/dist/components/algolia-data.js.map +0 -1
  1331. package/dist/components/algolia.js.map +0 -1
  1332. package/dist/components/algoliasearch-lite.esm.browser.js +0 -966
  1333. package/dist/components/algoliasearch-lite.esm.browser.js.map +0 -1
  1334. package/dist/components/component-store.js.map +0 -1
  1335. package/dist/components/datalist.js.map +0 -1
  1336. package/dist/components/date-picker.js.map +0 -1
  1337. package/dist/components/dom.js.map +0 -1
  1338. package/dist/components/drag.js.map +0 -1
  1339. package/dist/components/dropdown.js.map +0 -1
  1340. package/dist/components/events.js.map +0 -1
  1341. package/dist/components/fade.js.map +0 -1
  1342. package/dist/components/focus-visible.js +0 -66
  1343. package/dist/components/focus-visible.js.map +0 -1
  1344. package/dist/components/form-control.js.map +0 -1
  1345. package/dist/components/fullscreen.js.map +0 -1
  1346. package/dist/components/global-nav-user-profile.js +0 -50
  1347. package/dist/components/global-nav-user-profile.js.map +0 -1
  1348. package/dist/components/grid.js.map +0 -1
  1349. package/dist/components/icon-button.js.map +0 -1
  1350. package/dist/components/icon.js.map +0 -1
  1351. package/dist/components/img.js.map +0 -1
  1352. package/dist/components/index-browser.js.map +0 -1
  1353. package/dist/components/index.js.map +0 -1
  1354. package/dist/components/index2.js.map +0 -1
  1355. package/dist/components/index3.js.map +0 -1
  1356. package/dist/components/input.js.map +0 -1
  1357. package/dist/components/lazyload.js.map +0 -1
  1358. package/dist/components/local-my-account.js +0 -462
  1359. package/dist/components/local-my-account.js.map +0 -1
  1360. package/dist/components/math.js.map +0 -1
  1361. package/dist/components/menu.js.map +0 -1
  1362. package/dist/components/modal.js.map +0 -1
  1363. package/dist/components/nano-accordion.js.map +0 -1
  1364. package/dist/components/nano-alert.js.map +0 -1
  1365. package/dist/components/nano-algolia-filter.js.map +0 -1
  1366. package/dist/components/nano-algolia-pagination.js.map +0 -1
  1367. package/dist/components/nano-algolia-results.js.map +0 -1
  1368. package/dist/components/nano-algolia.js.map +0 -1
  1369. package/dist/components/nano-animation.js.map +0 -1
  1370. package/dist/components/nano-checkbox-group.js.map +0 -1
  1371. package/dist/components/nano-checkbox.js.map +0 -1
  1372. package/dist/components/nano-datalist.js.map +0 -1
  1373. package/dist/components/nano-date-input.js.map +0 -1
  1374. package/dist/components/nano-date-picker.js.map +0 -1
  1375. package/dist/components/nano-details.js.map +0 -1
  1376. package/dist/components/nano-dialog.js.map +0 -1
  1377. package/dist/components/nano-drawer.js.map +0 -1
  1378. package/dist/components/nano-dropdown.js.map +0 -1
  1379. package/dist/components/nano-field-validator.js.map +0 -1
  1380. package/dist/components/nano-file-upload.js.map +0 -1
  1381. package/dist/components/nano-global-nav-user-profile.d.ts +0 -11
  1382. package/dist/components/nano-global-nav-user-profile.js +0 -11
  1383. package/dist/components/nano-global-nav-user-profile.js.map +0 -1
  1384. package/dist/components/nano-global-nav.js.map +0 -1
  1385. package/dist/components/nano-global-search-results.js.map +0 -1
  1386. package/dist/components/nano-grid-item.js.map +0 -1
  1387. package/dist/components/nano-grid.js.map +0 -1
  1388. package/dist/components/nano-hero.js.map +0 -1
  1389. package/dist/components/nano-icon-button.js.map +0 -1
  1390. package/dist/components/nano-icon.js.map +0 -1
  1391. package/dist/components/nano-img.js.map +0 -1
  1392. package/dist/components/nano-input.js.map +0 -1
  1393. package/dist/components/nano-intersection-observe.js.map +0 -1
  1394. package/dist/components/nano-menu-drawer.js.map +0 -1
  1395. package/dist/components/nano-menu.js.map +0 -1
  1396. package/dist/components/nano-more-less.js.map +0 -1
  1397. package/dist/components/nano-nav-item.js.map +0 -1
  1398. package/dist/components/nano-option.js.map +0 -1
  1399. package/dist/components/nano-overflow-nav.d.ts +0 -11
  1400. package/dist/components/nano-overflow-nav.js +0 -390
  1401. package/dist/components/nano-overflow-nav.js.map +0 -1
  1402. package/dist/components/nano-progress-bar.js.map +0 -1
  1403. package/dist/components/nano-range.js.map +0 -1
  1404. package/dist/components/nano-rating.js.map +0 -1
  1405. package/dist/components/nano-resize-observe.js.map +0 -1
  1406. package/dist/components/nano-select.js.map +0 -1
  1407. package/dist/components/nano-skeleton.js.map +0 -1
  1408. package/dist/components/nano-slide.js.map +0 -1
  1409. package/dist/components/nano-slides.js.map +0 -1
  1410. package/dist/components/nano-sortable.js.map +0 -1
  1411. package/dist/components/nano-spinner.js.map +0 -1
  1412. package/dist/components/nano-split-pane.js.map +0 -1
  1413. package/dist/components/nano-sticker.js.map +0 -1
  1414. package/dist/components/nano-tab-content.js.map +0 -1
  1415. package/dist/components/nano-tab-group.js.map +0 -1
  1416. package/dist/components/nano-tab.js.map +0 -1
  1417. package/dist/components/nano-table.js.map +0 -1
  1418. package/dist/components/nano-tooltip.js.map +0 -1
  1419. package/dist/components/nav-item.js.map +0 -1
  1420. package/dist/components/option.js.map +0 -1
  1421. package/dist/components/page-dots.js.map +0 -1
  1422. package/dist/components/popover.js.map +0 -1
  1423. package/dist/components/progress-bar.js.map +0 -1
  1424. package/dist/components/renderer.js.map +0 -1
  1425. package/dist/components/resize-observe.js.map +0 -1
  1426. package/dist/components/scroll-parent.js +0 -29
  1427. package/dist/components/scroll-parent.js.map +0 -1
  1428. package/dist/components/scroll.js.map +0 -1
  1429. package/dist/components/search-insights.js +0 -51
  1430. package/dist/components/search-insights.js.map +0 -1
  1431. package/dist/components/select.js.map +0 -1
  1432. package/dist/components/skeleton.js.map +0 -1
  1433. package/dist/components/slot.js.map +0 -1
  1434. package/dist/components/spinner.js.map +0 -1
  1435. package/dist/components/sticker.js.map +0 -1
  1436. package/dist/components/tabbable.js.map +0 -1
  1437. package/dist/components/table.worker.js.map +0 -1
  1438. package/dist/components/theme.js.map +0 -1
  1439. package/dist/components/throttle.js.map +0 -1
  1440. package/dist/components/tooltip.js.map +0 -1
  1441. package/dist/components/transitions.js +0 -60
  1442. package/dist/components/transitions.js.map +0 -1
  1443. package/dist/esm/active-element-a2502948.js +0 -19
  1444. package/dist/esm/active-element-a2502948.js.map +0 -1
  1445. package/dist/esm/algolia-data-f0f72f1d.js +0 -49
  1446. package/dist/esm/algolia-data-f0f72f1d.js.map +0 -1
  1447. package/dist/esm/algoliasearch-lite.esm.browser-0f71b631.js +0 -966
  1448. package/dist/esm/algoliasearch-lite.esm.browser-0f71b631.js.map +0 -1
  1449. package/dist/esm/app-globals-f0120bbe.js +0 -39
  1450. package/dist/esm/app-globals-f0120bbe.js.map +0 -1
  1451. package/dist/esm/component-store-199a9fd8.js +0 -323
  1452. package/dist/esm/component-store-199a9fd8.js.map +0 -1
  1453. package/dist/esm/date-utils-1e39c114.js +0 -219
  1454. package/dist/esm/date-utils-1e39c114.js.map +0 -1
  1455. package/dist/esm/dom-fafdec9a.js +0 -78
  1456. package/dist/esm/dom-fafdec9a.js.map +0 -1
  1457. package/dist/esm/drag-9d765d2d.js +0 -72
  1458. package/dist/esm/drag-9d765d2d.js.map +0 -1
  1459. package/dist/esm/events-f38f3e59.js +0 -36
  1460. package/dist/esm/events-f38f3e59.js.map +0 -1
  1461. package/dist/esm/fade-ce1a4958.js +0 -212
  1462. package/dist/esm/fade-ce1a4958.js.map +0 -1
  1463. package/dist/esm/focus-visible-e5f02c46.js +0 -66
  1464. package/dist/esm/focus-visible-e5f02c46.js.map +0 -1
  1465. package/dist/esm/form-control-f48fa873.js +0 -79
  1466. package/dist/esm/form-control-f48fa873.js.map +0 -1
  1467. package/dist/esm/fullscreen-52d62028.js +0 -132
  1468. package/dist/esm/fullscreen-52d62028.js.map +0 -1
  1469. package/dist/esm/index-6cc72cd9.js +0 -3045
  1470. package/dist/esm/index-6cc72cd9.js.map +0 -1
  1471. package/dist/esm/index-a2043fcd.js +0 -657
  1472. package/dist/esm/index-a2043fcd.js.map +0 -1
  1473. package/dist/esm/index-browser-8c563093.js +0 -8
  1474. package/dist/esm/index-browser-8c563093.js.map +0 -1
  1475. package/dist/esm/index-f5f7b950.js +0 -198
  1476. package/dist/esm/index-f5f7b950.js.map +0 -1
  1477. package/dist/esm/index.js.map +0 -1
  1478. package/dist/esm/lazyload-8ff69ba4.js +0 -94
  1479. package/dist/esm/lazyload-8ff69ba4.js.map +0 -1
  1480. package/dist/esm/loader.js.map +0 -1
  1481. package/dist/esm/local-my-account-3ba1ec04.js +0 -462
  1482. package/dist/esm/local-my-account-3ba1ec04.js.map +0 -1
  1483. package/dist/esm/math-d160f8a6.js +0 -38
  1484. package/dist/esm/math-d160f8a6.js.map +0 -1
  1485. package/dist/esm/modal-02828a39.js +0 -49
  1486. package/dist/esm/modal-02828a39.js.map +0 -1
  1487. package/dist/esm/nano-accordion.entry.js.map +0 -1
  1488. package/dist/esm/nano-alert.entry.js.map +0 -1
  1489. package/dist/esm/nano-algolia-filter.entry.js.map +0 -1
  1490. package/dist/esm/nano-algolia-pagination.entry.js.map +0 -1
  1491. package/dist/esm/nano-algolia-results.entry.js.map +0 -1
  1492. package/dist/esm/nano-algolia.entry.js.map +0 -1
  1493. package/dist/esm/nano-animation.entry.js.map +0 -1
  1494. package/dist/esm/nano-checkbox-group.entry.js.map +0 -1
  1495. package/dist/esm/nano-checkbox.entry.js.map +0 -1
  1496. package/dist/esm/nano-components.js.map +0 -1
  1497. package/dist/esm/nano-datalist_3.entry.js.map +0 -1
  1498. package/dist/esm/nano-date-input.entry.js.map +0 -1
  1499. package/dist/esm/nano-date-picker.entry.js +0 -389
  1500. package/dist/esm/nano-date-picker.entry.js.map +0 -1
  1501. package/dist/esm/nano-details.entry.js.map +0 -1
  1502. package/dist/esm/nano-dialog.entry.js.map +0 -1
  1503. package/dist/esm/nano-drawer.entry.js +0 -285
  1504. package/dist/esm/nano-drawer.entry.js.map +0 -1
  1505. package/dist/esm/nano-dropdown.entry.js +0 -369
  1506. package/dist/esm/nano-dropdown.entry.js.map +0 -1
  1507. package/dist/esm/nano-field-validator.entry.js.map +0 -1
  1508. package/dist/esm/nano-file-upload.entry.js.map +0 -1
  1509. package/dist/esm/nano-global-nav-user-profile_3.entry.js +0 -1101
  1510. package/dist/esm/nano-global-nav-user-profile_3.entry.js.map +0 -1
  1511. package/dist/esm/nano-global-nav.entry.js.map +0 -1
  1512. package/dist/esm/nano-global-search-results.entry.js +0 -632
  1513. package/dist/esm/nano-global-search-results.entry.js.map +0 -1
  1514. package/dist/esm/nano-grid-item.entry.js.map +0 -1
  1515. package/dist/esm/nano-grid_2.entry.js.map +0 -1
  1516. package/dist/esm/nano-hero.entry.js.map +0 -1
  1517. package/dist/esm/nano-icon-button_2.entry.js +0 -336
  1518. package/dist/esm/nano-icon-button_2.entry.js.map +0 -1
  1519. package/dist/esm/nano-icon.entry.js +0 -316
  1520. package/dist/esm/nano-icon.entry.js.map +0 -1
  1521. package/dist/esm/nano-input.entry.js +0 -544
  1522. package/dist/esm/nano-input.entry.js.map +0 -1
  1523. package/dist/esm/nano-intersection-observe.entry.js.map +0 -1
  1524. package/dist/esm/nano-menu-drawer.entry.js.map +0 -1
  1525. package/dist/esm/nano-more-less.entry.js.map +0 -1
  1526. package/dist/esm/nano-overflow-nav.entry.js +0 -338
  1527. package/dist/esm/nano-overflow-nav.entry.js.map +0 -1
  1528. package/dist/esm/nano-progress-bar.entry.js.map +0 -1
  1529. package/dist/esm/nano-range.entry.js.map +0 -1
  1530. package/dist/esm/nano-rating.entry.js.map +0 -1
  1531. package/dist/esm/nano-resize-observe_2.entry.js.map +0 -1
  1532. package/dist/esm/nano-slide.entry.js.map +0 -1
  1533. package/dist/esm/nano-slides-2715825b.js +0 -3038
  1534. package/dist/esm/nano-slides-2715825b.js.map +0 -1
  1535. package/dist/esm/nano-slides.entry.js.map +0 -1
  1536. package/dist/esm/nano-sortable.entry.js.map +0 -1
  1537. package/dist/esm/nano-spinner.entry.js.map +0 -1
  1538. package/dist/esm/nano-split-pane.entry.js.map +0 -1
  1539. package/dist/esm/nano-sticker.entry.js.map +0 -1
  1540. package/dist/esm/nano-tab-content.entry.js.map +0 -1
  1541. package/dist/esm/nano-tab-group.entry.js.map +0 -1
  1542. package/dist/esm/nano-tab.entry.js.map +0 -1
  1543. package/dist/esm/nano-table-5eaf3a0c.js +0 -1877
  1544. package/dist/esm/nano-table-5eaf3a0c.js.map +0 -1
  1545. package/dist/esm/nano-table.entry.js.map +0 -1
  1546. package/dist/esm/page-dots-5b23db8c.js +0 -139
  1547. package/dist/esm/page-dots-5b23db8c.js.map +0 -1
  1548. package/dist/esm/popover-30ce6cac.js +0 -1930
  1549. package/dist/esm/popover-30ce6cac.js.map +0 -1
  1550. package/dist/esm/renderer-4bc3e2dc.js +0 -58
  1551. package/dist/esm/renderer-4bc3e2dc.js.map +0 -1
  1552. package/dist/esm/scroll-1afc6a4e.js +0 -124
  1553. package/dist/esm/scroll-1afc6a4e.js.map +0 -1
  1554. package/dist/esm/scroll-parent-be39fbd0.js +0 -29
  1555. package/dist/esm/scroll-parent-be39fbd0.js.map +0 -1
  1556. package/dist/esm/search-insights-1a7b7dc5.js +0 -51
  1557. package/dist/esm/search-insights-1a7b7dc5.js.map +0 -1
  1558. package/dist/esm/slot-1cd90e53.js +0 -58
  1559. package/dist/esm/slot-1cd90e53.js.map +0 -1
  1560. package/dist/esm/tabbable-44932eb7.js +0 -109
  1561. package/dist/esm/tabbable-44932eb7.js.map +0 -1
  1562. package/dist/esm/table.worker-94b9c69e.js +0 -29
  1563. package/dist/esm/table.worker-94b9c69e.js.map +0 -1
  1564. package/dist/esm/table.worker-da5412ed.js +0 -4
  1565. package/dist/esm/theme-d553c17a.js +0 -46
  1566. package/dist/esm/theme-d553c17a.js.map +0 -1
  1567. package/dist/esm/throttle-df960210.js +0 -50
  1568. package/dist/esm/throttle-df960210.js.map +0 -1
  1569. package/dist/esm/transitions-c09bd7f6.js +0 -60
  1570. package/dist/esm/transitions-c09bd7f6.js.map +0 -1
  1571. package/dist/generators/custom-element-doc-generator.js +0 -75
  1572. package/dist/generators/custom-element-doc-generator.js.map +0 -1
  1573. package/dist/generators/vue/generate-vue-component.js +0 -74
  1574. package/dist/generators/vue/generate-vue-component.js.map +0 -1
  1575. package/dist/generators/vue/index.js +0 -5
  1576. package/dist/generators/vue/index.js.map +0 -1
  1577. package/dist/generators/vue/output-vue.js +0 -96
  1578. package/dist/generators/vue/output-vue.js.map +0 -1
  1579. package/dist/generators/vue/plugin.js +0 -44
  1580. package/dist/generators/vue/plugin.js.map +0 -1
  1581. package/dist/generators/vue/types.js +0 -2
  1582. package/dist/generators/vue/types.js.map +0 -1
  1583. package/dist/generators/vue/utils.js +0 -82
  1584. package/dist/generators/vue/utils.js.map +0 -1
  1585. package/dist/nano-assets/fonts/jp/noto-sans-jp-v53-japanese-500.woff2 +0 -0
  1586. package/dist/nano-assets/fonts/latin/noto-sans-v38-latin-500.woff2 +0 -0
  1587. package/dist/nano-assets/fonts/latin/noto-sans-v38-latin-500italic.woff2 +0 -0
  1588. package/dist/nano-assets/fonts/sc/noto-sans-sc-v37-chinese-simplified-500.woff2 +0 -0
  1589. package/dist/nano-assets/local-my-account.json +0 -447
  1590. package/dist/nano-components/active-element-a2502948.js +0 -5
  1591. package/dist/nano-components/active-element-a2502948.js.map +0 -1
  1592. package/dist/nano-components/algolia-data-f0f72f1d.js +0 -5
  1593. package/dist/nano-components/algolia-data-f0f72f1d.js.map +0 -1
  1594. package/dist/nano-components/algoliasearch-lite.esm.browser-0f71b631.js +0 -5
  1595. package/dist/nano-components/algoliasearch-lite.esm.browser-0f71b631.js.map +0 -1
  1596. package/dist/nano-components/app-globals-f0120bbe.js +0 -5
  1597. package/dist/nano-components/app-globals-f0120bbe.js.map +0 -1
  1598. package/dist/nano-components/assets/local-my-account.json +0 -447
  1599. package/dist/nano-components/component-store-199a9fd8.js +0 -5
  1600. package/dist/nano-components/component-store-199a9fd8.js.map +0 -1
  1601. package/dist/nano-components/date-utils-1e39c114.js +0 -5
  1602. package/dist/nano-components/date-utils-1e39c114.js.map +0 -1
  1603. package/dist/nano-components/dom-fafdec9a.js +0 -5
  1604. package/dist/nano-components/dom-fafdec9a.js.map +0 -1
  1605. package/dist/nano-components/drag-9d765d2d.js +0 -5
  1606. package/dist/nano-components/drag-9d765d2d.js.map +0 -1
  1607. package/dist/nano-components/events-f38f3e59.js +0 -5
  1608. package/dist/nano-components/events-f38f3e59.js.map +0 -1
  1609. package/dist/nano-components/fade-ce1a4958.js +0 -5
  1610. package/dist/nano-components/fade-ce1a4958.js.map +0 -1
  1611. package/dist/nano-components/focus-visible-e5f02c46.js +0 -5
  1612. package/dist/nano-components/focus-visible-e5f02c46.js.map +0 -1
  1613. package/dist/nano-components/form-control-f48fa873.js +0 -5
  1614. package/dist/nano-components/form-control-f48fa873.js.map +0 -1
  1615. package/dist/nano-components/fullscreen-52d62028.js +0 -5
  1616. package/dist/nano-components/fullscreen-52d62028.js.map +0 -1
  1617. package/dist/nano-components/index-6cc72cd9.js +0 -6
  1618. package/dist/nano-components/index-6cc72cd9.js.map +0 -1
  1619. package/dist/nano-components/index-a2043fcd.js +0 -5
  1620. package/dist/nano-components/index-a2043fcd.js.map +0 -1
  1621. package/dist/nano-components/index-browser-8c563093.js +0 -5
  1622. package/dist/nano-components/index-browser-8c563093.js.map +0 -1
  1623. package/dist/nano-components/index-f5f7b950.js +0 -5
  1624. package/dist/nano-components/index-f5f7b950.js.map +0 -1
  1625. package/dist/nano-components/index.esm.js.map +0 -1
  1626. package/dist/nano-components/lazyload-8ff69ba4.js +0 -5
  1627. package/dist/nano-components/lazyload-8ff69ba4.js.map +0 -1
  1628. package/dist/nano-components/local-my-account-3ba1ec04.js +0 -5
  1629. package/dist/nano-components/local-my-account-3ba1ec04.js.map +0 -1
  1630. package/dist/nano-components/math-d160f8a6.js +0 -5
  1631. package/dist/nano-components/math-d160f8a6.js.map +0 -1
  1632. package/dist/nano-components/modal-02828a39.js +0 -5
  1633. package/dist/nano-components/modal-02828a39.js.map +0 -1
  1634. package/dist/nano-components/nano-accordion.entry.js.map +0 -1
  1635. package/dist/nano-components/nano-alert.entry.js.map +0 -1
  1636. package/dist/nano-components/nano-algolia-filter.entry.js.map +0 -1
  1637. package/dist/nano-components/nano-algolia-pagination.entry.js.map +0 -1
  1638. package/dist/nano-components/nano-algolia-results.entry.js.map +0 -1
  1639. package/dist/nano-components/nano-algolia.entry.js.map +0 -1
  1640. package/dist/nano-components/nano-animation.entry.js.map +0 -1
  1641. package/dist/nano-components/nano-checkbox-group.entry.js.map +0 -1
  1642. package/dist/nano-components/nano-checkbox.entry.js.map +0 -1
  1643. package/dist/nano-components/nano-components.esm.js.map +0 -1
  1644. package/dist/nano-components/nano-datalist_3.entry.js.map +0 -1
  1645. package/dist/nano-components/nano-date-input.entry.js.map +0 -1
  1646. package/dist/nano-components/nano-date-picker.entry.js +0 -5
  1647. package/dist/nano-components/nano-date-picker.entry.js.map +0 -1
  1648. package/dist/nano-components/nano-details.entry.js.map +0 -1
  1649. package/dist/nano-components/nano-dialog.entry.js.map +0 -1
  1650. package/dist/nano-components/nano-drawer.entry.js +0 -5
  1651. package/dist/nano-components/nano-drawer.entry.js.map +0 -1
  1652. package/dist/nano-components/nano-dropdown.entry.js +0 -5
  1653. package/dist/nano-components/nano-dropdown.entry.js.map +0 -1
  1654. package/dist/nano-components/nano-field-validator.entry.js.map +0 -1
  1655. package/dist/nano-components/nano-file-upload.entry.js.map +0 -1
  1656. package/dist/nano-components/nano-global-nav-user-profile_3.entry.js +0 -5
  1657. package/dist/nano-components/nano-global-nav-user-profile_3.entry.js.map +0 -1
  1658. package/dist/nano-components/nano-global-nav.entry.js.map +0 -1
  1659. package/dist/nano-components/nano-global-search-results.entry.js +0 -5
  1660. package/dist/nano-components/nano-global-search-results.entry.js.map +0 -1
  1661. package/dist/nano-components/nano-grid-item.entry.js.map +0 -1
  1662. package/dist/nano-components/nano-grid_2.entry.js.map +0 -1
  1663. package/dist/nano-components/nano-hero.entry.js.map +0 -1
  1664. package/dist/nano-components/nano-icon-button_2.entry.js +0 -5
  1665. package/dist/nano-components/nano-icon-button_2.entry.js.map +0 -1
  1666. package/dist/nano-components/nano-icon.entry.js +0 -5
  1667. package/dist/nano-components/nano-icon.entry.js.map +0 -1
  1668. package/dist/nano-components/nano-input.entry.js +0 -5
  1669. package/dist/nano-components/nano-input.entry.js.map +0 -1
  1670. package/dist/nano-components/nano-intersection-observe.entry.js.map +0 -1
  1671. package/dist/nano-components/nano-menu-drawer.entry.js.map +0 -1
  1672. package/dist/nano-components/nano-more-less.entry.js.map +0 -1
  1673. package/dist/nano-components/nano-overflow-nav.entry.js +0 -5
  1674. package/dist/nano-components/nano-overflow-nav.entry.js.map +0 -1
  1675. package/dist/nano-components/nano-progress-bar.entry.js.map +0 -1
  1676. package/dist/nano-components/nano-range.entry.js.map +0 -1
  1677. package/dist/nano-components/nano-rating.entry.js.map +0 -1
  1678. package/dist/nano-components/nano-resize-observe_2.entry.js.map +0 -1
  1679. package/dist/nano-components/nano-slide.entry.js.map +0 -1
  1680. package/dist/nano-components/nano-slides-2715825b.js +0 -20
  1681. package/dist/nano-components/nano-slides-2715825b.js.map +0 -1
  1682. package/dist/nano-components/nano-slides.entry.js.map +0 -1
  1683. package/dist/nano-components/nano-sortable.entry.js.map +0 -1
  1684. package/dist/nano-components/nano-spinner.entry.js.map +0 -1
  1685. package/dist/nano-components/nano-split-pane.entry.js.map +0 -1
  1686. package/dist/nano-components/nano-sticker.entry.js.map +0 -1
  1687. package/dist/nano-components/nano-tab-content.entry.js.map +0 -1
  1688. package/dist/nano-components/nano-tab-group.entry.js.map +0 -1
  1689. package/dist/nano-components/nano-tab.entry.js.map +0 -1
  1690. package/dist/nano-components/nano-table-5eaf3a0c.js +0 -5
  1691. package/dist/nano-components/nano-table-5eaf3a0c.js.map +0 -1
  1692. package/dist/nano-components/nano-table.entry.js.map +0 -1
  1693. package/dist/nano-components/page-dots-5b23db8c.js +0 -5
  1694. package/dist/nano-components/page-dots-5b23db8c.js.map +0 -1
  1695. package/dist/nano-components/popover-30ce6cac.js +0 -5
  1696. package/dist/nano-components/popover-30ce6cac.js.map +0 -1
  1697. package/dist/nano-components/renderer-4bc3e2dc.js +0 -5
  1698. package/dist/nano-components/renderer-4bc3e2dc.js.map +0 -1
  1699. package/dist/nano-components/scroll-1afc6a4e.js +0 -5
  1700. package/dist/nano-components/scroll-1afc6a4e.js.map +0 -1
  1701. package/dist/nano-components/scroll-parent-be39fbd0.js +0 -5
  1702. package/dist/nano-components/scroll-parent-be39fbd0.js.map +0 -1
  1703. package/dist/nano-components/search-insights-1a7b7dc5.js +0 -5
  1704. package/dist/nano-components/search-insights-1a7b7dc5.js.map +0 -1
  1705. package/dist/nano-components/slot-1cd90e53.js +0 -5
  1706. package/dist/nano-components/slot-1cd90e53.js.map +0 -1
  1707. package/dist/nano-components/tabbable-44932eb7.js +0 -5
  1708. package/dist/nano-components/tabbable-44932eb7.js.map +0 -1
  1709. package/dist/nano-components/table.worker-94b9c69e.js +0 -5
  1710. package/dist/nano-components/table.worker-94b9c69e.js.map +0 -1
  1711. package/dist/nano-components/table.worker-da5412ed.js +0 -4
  1712. package/dist/nano-components/theme-d553c17a.js +0 -5
  1713. package/dist/nano-components/theme-d553c17a.js.map +0 -1
  1714. package/dist/nano-components/throttle-df960210.js +0 -5
  1715. package/dist/nano-components/throttle-df960210.js.map +0 -1
  1716. package/dist/nano-components/transitions-c09bd7f6.js +0 -5
  1717. package/dist/nano-components/transitions-c09bd7f6.js.map +0 -1
  1718. package/dist/stencil.config.js.map +0 -1
  1719. package/dist/stencil.config.prod.js.map +0 -1
  1720. package/dist/testing/mocks/intersection-observer.js.map +0 -1
  1721. package/dist/themes/base/normalize.css +0 -1
  1722. package/dist/themes/base/normalize.css.map +0 -1
  1723. package/dist/themes/base/noto-sans-jp.css +0 -1
  1724. package/dist/themes/base/noto-sans-jp.css.map +0 -1
  1725. package/dist/themes/base/noto-sans-sc.css +0 -1
  1726. package/dist/themes/base/noto-sans-sc.css.map +0 -1
  1727. package/dist/themes/base/noto-sans.css +0 -1
  1728. package/dist/themes/base/noto-sans.css.map +0 -1
  1729. package/dist/themes/base/structure.css +0 -1
  1730. package/dist/themes/base/structure.css.map +0 -1
  1731. package/dist/themes/london-calling.css +0 -1
  1732. package/dist/themes/london-calling.css.map +0 -1
  1733. package/dist/themes/nanopore.css +0 -1
  1734. package/dist/themes/nanopore.css.map +0 -1
  1735. package/dist/types/builds/WUhA-BsM/0/Digital/nano-components/packages/components/.stencil/generators/custom-element-doc-generator.d.ts +0 -8
  1736. package/dist/types/builds/WUhA-BsM/0/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +0 -2
  1737. package/dist/types/builds/WUhA-BsM/0/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +0 -2
  1738. package/dist/types/components/global-nav/global-nav-user-profile.d.ts +0 -16
  1739. package/dist/types/components/overflow-nav/overflow-nav.d.ts +0 -89
  1740. package/dist/types/components/table/table-interface.d.ts +0 -278
  1741. package/dist/types/components/table/table.store.d.ts +0 -24
  1742. package/dist/types/components/table/table.utils.d.ts +0 -70
  1743. package/dist/types/utils/focus-visible.d.ts +0 -8
  1744. package/dist/types/utils/scroll-parent.d.ts +0 -6
  1745. package/dist/types/utils/testing/index.d.ts +0 -50
  1746. package/dist/wdio.conf.js.map +0 -1
  1747. package/themes/base/normalize.css +0 -1
  1748. package/themes/base/normalize.css.map +0 -1
  1749. package/themes/base/noto-sans-jp.css +0 -1
  1750. package/themes/base/noto-sans-jp.css.map +0 -1
  1751. package/themes/base/noto-sans-sc.css +0 -1
  1752. package/themes/base/noto-sans-sc.css.map +0 -1
  1753. package/themes/base/noto-sans.css +0 -1
  1754. package/themes/base/noto-sans.css.map +0 -1
  1755. package/themes/base/structure.css +0 -1
  1756. package/themes/base/structure.css.map +0 -1
  1757. package/themes/london-calling.css +0 -1
  1758. package/themes/london-calling.css.map +0 -1
  1759. package/themes/nanopore.css +0 -1
  1760. package/themes/nanopore.css.map +0 -1
  1761. /package/dist/nano-assets/{fonts/jp/noto-sans-jp-v53-japanese-700.woff2 → font/jp/noto-sans-jp-v53-japanese_latin-700.woff2} +0 -0
  1762. /package/dist/nano-assets/{fonts/jp/noto-sans-jp-v53-japanese-regular.woff2 → font/jp/noto-sans-jp-v53-japanese_latin-regular.woff2} +0 -0
  1763. /package/dist/nano-assets/{fonts → font}/latin/noto-sans-v38-latin-700.woff2 +0 -0
  1764. /package/dist/nano-assets/{fonts → font}/latin/noto-sans-v38-latin-700italic.woff2 +0 -0
  1765. /package/dist/nano-assets/{fonts → font}/latin/noto-sans-v38-latin-italic.woff2 +0 -0
  1766. /package/dist/nano-assets/{fonts → font}/latin/noto-sans-v38-latin-regular.woff2 +0 -0
  1767. /package/dist/nano-assets/{fonts/sc/noto-sans-sc-v37-chinese-simplified-700.woff2 → font/sc/noto-sans-sc-v37-chinese-simplified_latin-700.woff2} +0 -0
  1768. /package/dist/nano-assets/{fonts/sc/noto-sans-sc-v37-chinese-simplified-regular.woff2 → font/sc/noto-sans-sc-v37-chinese-simplified_latin-regular.woff2} +0 -0
  1769. /package/dist/types/{builds/WUhA-BsM/0/Digital/nano-components/packages/components/.stencil/generators/vue → Users/John.Jenkins/projects/nano-components/packages/components/.stencil/plugins/stencil/vue-output}/generate-vue-component.d.ts +0 -0
  1770. /package/dist/types/{builds/WUhA-BsM/0/Digital/nano-components/packages/components/.stencil/generators/vue → Users/John.Jenkins/projects/nano-components/packages/components/.stencil/plugins/stencil/vue-output}/index.d.ts +0 -0
  1771. /package/dist/types/{builds/WUhA-BsM/0/Digital/nano-components/packages/components/.stencil/generators/vue → Users/John.Jenkins/projects/nano-components/packages/components/.stencil/plugins/stencil/vue-output}/output-vue.d.ts +0 -0
  1772. /package/dist/types/{builds/WUhA-BsM/0/Digital/nano-components/packages/components/.stencil/generators/vue → Users/John.Jenkins/projects/nano-components/packages/components/.stencil/plugins/stencil/vue-output}/plugin.d.ts +0 -0
  1773. /package/dist/types/{builds/WUhA-BsM/0/Digital/nano-components/packages/components/.stencil/generators/vue → Users/John.Jenkins/projects/nano-components/packages/components/.stencil/plugins/stencil/vue-output}/types.d.ts +0 -0
  1774. /package/dist/types/{builds/WUhA-BsM/0/Digital/nano-components/packages/components/.stencil/generators/vue → Users/John.Jenkins/projects/nano-components/packages/components/.stencil/plugins/stencil/vue-output}/utils.d.ts +0 -0
  1775. /package/dist/types/{builds/WUhA-BsM/0/Digital → Users/John.Jenkins/projects}/nano-components/packages/components/.stencil/testing/mocks/intersection-observer.d.ts +0 -0
  1776. /package/dist/types/{builds/WUhA-BsM/0/Digital → Users/John.Jenkins/projects}/nano-components/packages/components/.stencil/wdio.conf.d.ts +0 -0
  1777. /package/dist/types/components/{table → data-table}/table.cell.d.ts +0 -0
  1778. /package/dist/types/components/{table → data-table}/table.constants.d.ts +0 -0
  1779. /package/dist/types/components/{table → data-table}/table.header.d.ts +0 -0
  1780. /package/dist/types/components/{table → data-table}/table.pin-service.d.ts +0 -0
  1781. /package/dist/types/components/{table → data-table}/table.row.d.ts +0 -0
  1782. /package/dist/types/components/{table → data-table}/table.worker.d.ts +0 -0
@@ -0,0 +1,3045 @@
1
+ /*!
2
+ * Custom elements for Nanopore-Digital Web applications
3
+ */
4
+ import { r as registerInstance, c as createEvent, a as getElement, f as readTask, e as writeTask, d as Host } from './index-DOuz1S3w.js';
5
+ import { t as transformTag, h } from './renderer-CnE0Hztu.js';
6
+
7
+ function EvEmitter() { }
8
+ const proto$4 = EvEmitter.prototype;
9
+ proto$4.on = function (eventName, listener) {
10
+ if (!eventName || !listener) {
11
+ return;
12
+ }
13
+ // set events hash
14
+ const events = (this._events = this._events || {});
15
+ // set listeners array
16
+ const listeners = (events[eventName] = events[eventName] || []);
17
+ // only add once
18
+ if (listeners.indexOf(listener) == -1) {
19
+ listeners.push(listener);
20
+ }
21
+ return this;
22
+ };
23
+ proto$4.once = function (eventName, listener) {
24
+ if (!eventName || !listener) {
25
+ return;
26
+ }
27
+ // add event
28
+ this.on(eventName, listener);
29
+ // set once flag
30
+ // set onceEvents hash
31
+ const onceEvents = (this._onceEvents = this._onceEvents || {});
32
+ // set onceListeners object
33
+ const onceListeners = (onceEvents[eventName] = onceEvents[eventName] || {});
34
+ // set flag
35
+ onceListeners[listener] = true;
36
+ return this;
37
+ };
38
+ proto$4.off = function (eventName, listener) {
39
+ const listeners = this._events && this._events[eventName];
40
+ if (!listeners || !listeners.length) {
41
+ return;
42
+ }
43
+ const index = listeners.indexOf(listener);
44
+ if (index != -1) {
45
+ listeners.splice(index, 1);
46
+ }
47
+ return this;
48
+ };
49
+ proto$4.emitEvent = function (eventName, args) {
50
+ let listeners = this._events && this._events[eventName];
51
+ if (!listeners || !listeners.length) {
52
+ return;
53
+ }
54
+ // copy over to avoid interference if .off() in listener
55
+ listeners = listeners.slice(0);
56
+ args = args || [];
57
+ // once stuff
58
+ const onceListeners = this._onceEvents && this._onceEvents[eventName];
59
+ for (let i = 0; i < listeners.length; i++) {
60
+ const listener = listeners[i];
61
+ const isOnce = onceListeners && onceListeners[listener];
62
+ if (isOnce) {
63
+ // remove listener
64
+ // remove before trigger to prevent recursion
65
+ this.off(eventName, listener);
66
+ // unset once flag
67
+ delete onceListeners[listener];
68
+ }
69
+ // trigger listener
70
+ listener.apply(this, args);
71
+ }
72
+ return this;
73
+ };
74
+ proto$4.allOff = function () {
75
+ delete this._events;
76
+ delete this._onceEvents;
77
+ };
78
+
79
+ /*!
80
+ * getSize v2.0.3
81
+ * measure size of elements
82
+ * MIT license
83
+ */
84
+ // get a number from a string, not a percentage
85
+ function getStyleSize(value) {
86
+ const num = parseFloat(value);
87
+ // not a percent like '100%', and a number
88
+ const isValid = value.indexOf('%') == -1 && !isNaN(num);
89
+ return isValid && num;
90
+ }
91
+ function noop$1() { }
92
+ const logError = typeof console == 'undefined'
93
+ ? noop$1
94
+ : function (message) {
95
+ console.error(message);
96
+ };
97
+ // -------------------------- measurements -------------------------- //
98
+ const measurements = [
99
+ 'paddingLeft',
100
+ 'paddingRight',
101
+ 'paddingTop',
102
+ 'paddingBottom',
103
+ 'marginLeft',
104
+ 'marginRight',
105
+ 'marginTop',
106
+ 'marginBottom',
107
+ 'borderLeftWidth',
108
+ 'borderRightWidth',
109
+ 'borderTopWidth',
110
+ 'borderBottomWidth',
111
+ ];
112
+ const measurementsLength = measurements.length;
113
+ function getZeroSize() {
114
+ const size = {
115
+ width: 0,
116
+ height: 0,
117
+ innerWidth: 0,
118
+ innerHeight: 0,
119
+ outerWidth: 0,
120
+ outerHeight: 0,
121
+ };
122
+ for (let i = 0; i < measurementsLength; i++) {
123
+ const measurement = measurements[i];
124
+ size[measurement] = 0;
125
+ }
126
+ return size;
127
+ }
128
+ // -------------------------- getStyle -------------------------- //
129
+ /**
130
+ * getStyle, get style of element, check for Firefox bug
131
+ * https://bugzilla.mozilla.org/show_bug.cgi?id=548397
132
+ * @param elem element to get styles for
133
+ * @returns {CSSStyleDeclaration} styles of element
134
+ */
135
+ function getStyle(elem) {
136
+ const style = getComputedStyle(elem);
137
+ if (!style) {
138
+ logError('Style returned ' +
139
+ style +
140
+ '. Are you running this code in a hidden iframe on Firefox? ' +
141
+ 'See https://bit.ly/getsizebug1');
142
+ }
143
+ return style;
144
+ }
145
+ // -------------------------- setup -------------------------- //
146
+ let isSetup = false;
147
+ let isBoxSizeOuter;
148
+ /**
149
+ * setup
150
+ * check isBoxSizerOuter
151
+ * do on first getSize() rather than on page load for Firefox bug
152
+ */
153
+ function setup() {
154
+ // setup once
155
+ if (isSetup) {
156
+ return;
157
+ }
158
+ isSetup = true;
159
+ // -------------------------- box sizing -------------------------- //
160
+ /**
161
+ * Chrome & Safari measure the outer-width on style.width on border-box elems
162
+ * IE11 & Firefox<29 measures the inner-width
163
+ */
164
+ const div = document.createElement('div');
165
+ div.style.width = '200px';
166
+ div.style.padding = '1px 2px 3px 4px';
167
+ div.style.borderStyle = 'solid';
168
+ div.style.borderWidth = '1px 2px 3px 4px';
169
+ div.style.boxSizing = 'border-box';
170
+ const body = document.body || document.documentElement;
171
+ body.appendChild(div);
172
+ const style = getStyle(div);
173
+ // round value for browser zoom. desandro/masonry#928
174
+ isBoxSizeOuter = Math.round(getStyleSize(style.width)) == 200;
175
+ // @ts-ignore
176
+ getSize.isBoxSizeOuter = isBoxSizeOuter;
177
+ body.removeChild(div);
178
+ }
179
+ // -------------------------- getSize -------------------------- //
180
+ function getSize(elem) {
181
+ setup();
182
+ // use querySeletor if elem is string
183
+ if (typeof elem == 'string') {
184
+ elem = document.querySelector(elem);
185
+ }
186
+ // do not proceed on non-objects
187
+ if (!elem || typeof elem != 'object' || !elem.nodeType) {
188
+ return;
189
+ }
190
+ const style = getStyle(elem);
191
+ // if hidden, everything is 0
192
+ if (style.display == 'none') {
193
+ return getZeroSize();
194
+ }
195
+ const size = {};
196
+ size.width = elem.offsetWidth;
197
+ size.height = elem.offsetHeight;
198
+ const isBorderBox = (size.isBorderBox = style.boxSizing == 'border-box');
199
+ // get all measurements
200
+ for (let i = 0; i < measurementsLength; i++) {
201
+ const measurement = measurements[i];
202
+ const value = style[measurement];
203
+ const num = parseFloat(value);
204
+ // any 'auto', 'medium' value will be 0
205
+ size[measurement] = !isNaN(num) ? num : 0;
206
+ }
207
+ const paddingWidth = size.paddingLeft + size.paddingRight;
208
+ const paddingHeight = size.paddingTop + size.paddingBottom;
209
+ const marginWidth = size.marginLeft + size.marginRight;
210
+ const marginHeight = size.marginTop + size.marginBottom;
211
+ const borderWidth = size.borderLeftWidth + size.borderRightWidth;
212
+ const borderHeight = size.borderTopWidth + size.borderBottomWidth;
213
+ const isBorderBoxSizeOuter = isBorderBox && isBoxSizeOuter;
214
+ // overwrite width and height if we can get it from style
215
+ const styleWidth = getStyleSize(style.width);
216
+ if (styleWidth !== false) {
217
+ size.width =
218
+ styleWidth +
219
+ // add padding and border unless it's already including it
220
+ (isBorderBoxSizeOuter ? 0 : paddingWidth + borderWidth);
221
+ }
222
+ const styleHeight = getStyleSize(style.height);
223
+ if (styleHeight !== false) {
224
+ size.height =
225
+ styleHeight +
226
+ // add padding and border unless it's already including it
227
+ (isBorderBoxSizeOuter ? 0 : paddingHeight + borderHeight);
228
+ }
229
+ size.innerWidth = size.width - (paddingWidth + borderWidth);
230
+ size.innerHeight = size.height - (paddingHeight + borderHeight);
231
+ size.outerWidth = size.width + marginWidth;
232
+ size.outerHeight = size.height + marginHeight;
233
+ return size;
234
+ }
235
+
236
+ /**
237
+ * Fizzy UI utils v2.0.7
238
+ * MIT license
239
+ */
240
+ /*jshint browser: true, undef: true, unused: true, strict: true */
241
+ const utils = {};
242
+ // ----- extend ----- //
243
+ // extends objects
244
+ utils.extend = function (a, b) {
245
+ for (const prop in b) {
246
+ a[prop] = b[prop];
247
+ }
248
+ return a;
249
+ };
250
+ // ----- docReady ----- //
251
+ utils.docReady = function (callback) {
252
+ const readyState = document.readyState;
253
+ if (readyState == 'complete' || readyState == 'interactive') {
254
+ // do async to allow for other scripts to run. metafizzy/flickity#441
255
+ setTimeout(callback);
256
+ }
257
+ else {
258
+ document.addEventListener('DOMContentLoaded', callback);
259
+ }
260
+ };
261
+ // ----- toDashed ----- //
262
+ utils.toDashed = function (str) {
263
+ return str
264
+ .replace(/(.)([A-Z])/g, function (_match, $1, $2) {
265
+ return $1 + '-' + $2;
266
+ })
267
+ .toLowerCase();
268
+ };
269
+ // ----- modulo ----- //
270
+ utils.modulo = function (num, div) {
271
+ return ((num % div) + div) % div;
272
+ };
273
+ // ----- makeArray ----- //
274
+ const arraySlice = Array.prototype.slice;
275
+ // turn element or nodeList into an array
276
+ utils.makeArray = function (obj) {
277
+ if (Array.isArray(obj)) {
278
+ // use object if already an array
279
+ return obj;
280
+ }
281
+ // return empty array if undefined or null. #6
282
+ if (obj === null || obj === undefined) {
283
+ return [];
284
+ }
285
+ const isArrayLike = typeof obj == 'object' && typeof obj.length == 'number';
286
+ if (isArrayLike) {
287
+ // convert nodeList to array
288
+ return arraySlice.call(obj);
289
+ }
290
+ // array of single index
291
+ return [obj];
292
+ };
293
+ // ----- getParent ----- //
294
+ utils.getParent = function (elem, selector) {
295
+ while (elem.parentNode && elem != document.body) {
296
+ elem = elem.parentElement;
297
+ if (elem.matches(selector)) {
298
+ return elem;
299
+ }
300
+ }
301
+ };
302
+ // ----- getQueryElement ----- //
303
+ // use element as selector string
304
+ utils.getQueryElement = function (elem) {
305
+ if (typeof elem == 'string') {
306
+ return document.querySelector(elem);
307
+ }
308
+ return elem;
309
+ };
310
+ // ----- handleEvent ----- //
311
+ // enable .ontype to trigger from .addEventListener( elem, 'type' )
312
+ utils.handleEvent = function (event) {
313
+ const method = 'on' + event.type;
314
+ if (this[method]) {
315
+ this[method](event);
316
+ }
317
+ };
318
+ // ----- filterFindElements ----- //
319
+ utils.filterFindElements = function (elems, selector) {
320
+ // make array of elems
321
+ elems = utils.makeArray(elems);
322
+ const ffElems = [];
323
+ elems.forEach(function (elem) {
324
+ // check that elem is an actual element
325
+ if (!(elem instanceof HTMLElement)) {
326
+ return;
327
+ }
328
+ // add elem if no selector
329
+ if (!selector) {
330
+ ffElems.push(elem);
331
+ return;
332
+ }
333
+ // filter & find items if we have a selector
334
+ // filter
335
+ if (elem.matches(selector)) {
336
+ ffElems.push(elem);
337
+ }
338
+ // find children
339
+ const childElems = elem.querySelectorAll(selector);
340
+ // concat childElems to filterFound array
341
+ for (let i = 0; i < childElems.length; i++) {
342
+ ffElems.push(childElems[i]);
343
+ }
344
+ });
345
+ return ffElems;
346
+ };
347
+ // ----- debounceMethod ----- //
348
+ utils.debounceMethod = function (_class, methodName, threshold) {
349
+ threshold = threshold || 100;
350
+ // original method
351
+ const method = _class.prototype[methodName];
352
+ const timeoutName = methodName + 'Timeout';
353
+ _class.prototype[methodName] = function (...args) {
354
+ const timeout = this[timeoutName];
355
+ clearTimeout(timeout);
356
+ const _this = this;
357
+ this[timeoutName] = setTimeout(function () {
358
+ method.apply(_this, args);
359
+ delete _this[timeoutName];
360
+ }, threshold);
361
+ };
362
+ };
363
+ const console$2 = window.console;
364
+ /**
365
+ * allow user to initialize classes via [data-namespace] or .js-namespace class
366
+ * htmlInit( Widget, 'widgetName' )
367
+ * options are parsed from data-namespace-options
368
+ */
369
+ utils.htmlInit = function (WidgetClass, namespace) {
370
+ utils.docReady(function () {
371
+ const dashedNamespace = utils.toDashed(namespace);
372
+ const dataAttr = 'data-' + dashedNamespace;
373
+ const dataAttrElems = document.querySelectorAll('[' + dataAttr + ']');
374
+ const jsDashElems = document.querySelectorAll('.js-' + dashedNamespace);
375
+ const elems = utils
376
+ .makeArray(dataAttrElems)
377
+ .concat(utils.makeArray(jsDashElems));
378
+ const dataOptionsAttr = dataAttr + '-options';
379
+ elems.forEach(function (elem) {
380
+ const attr = elem.getAttribute(dataAttr) || elem.getAttribute(dataOptionsAttr);
381
+ let options;
382
+ try {
383
+ options = attr && JSON.parse(attr);
384
+ }
385
+ catch (error) {
386
+ // log error, do not initialize
387
+ if (console$2) {
388
+ console$2.error('Error parsing ' + dataAttr + ' on ' + elem.className + ': ' + error);
389
+ }
390
+ return;
391
+ }
392
+ // initialize
393
+ // @ts-ignore
394
+ new WidgetClass(elem, options);
395
+ });
396
+ });
397
+ };
398
+
399
+ function Cell(elem, parent) {
400
+ this.element = elem;
401
+ this.parent = parent;
402
+ this.create();
403
+ }
404
+ const proto$3 = Cell.prototype;
405
+ proto$3.create = function () {
406
+ this.element.style.position = 'absolute';
407
+ this.element.setAttribute('aria-hidden', 'true');
408
+ this.x = 0;
409
+ this.shift = 0;
410
+ Array.from(this.element.querySelectorAll('*')).forEach((element) => {
411
+ element.setAttribute('tabindex', '-1');
412
+ });
413
+ };
414
+ proto$3.destroy = function () {
415
+ // reset style
416
+ this.unselect();
417
+ this.element.style.position = '';
418
+ const side = this.parent.originSide;
419
+ this.element.style[side] = '';
420
+ };
421
+ proto$3.getSize = function () {
422
+ this.size = getSize(this.element);
423
+ };
424
+ proto$3.setPosition = function (x) {
425
+ this.x = x;
426
+ this.updateTarget();
427
+ this.renderPosition(x);
428
+ };
429
+ // setDefaultTarget v1 method, backwards compatibility, remove in v3
430
+ proto$3.updateTarget = proto$3.setDefaultTarget = function () {
431
+ const marginProperty = this.parent.originSide == 'left' ? 'marginLeft' : 'marginRight';
432
+ this.target =
433
+ this.x +
434
+ this.size[marginProperty] +
435
+ this.size.width * this.parent.cellAlign;
436
+ };
437
+ proto$3.renderPosition = function (x) {
438
+ // render position of cell with in slider
439
+ const side = this.parent.originSide;
440
+ this.element.style[side] = this.parent.getPositionValue(x);
441
+ };
442
+ proto$3.select = function () {
443
+ this.element.classList.add('is-selected');
444
+ this.element.removeAttribute('aria-hidden');
445
+ Array.from(this.element.querySelectorAll('*')).forEach((element) => {
446
+ element.removeAttribute('tabindex');
447
+ });
448
+ };
449
+ proto$3.unselect = function () {
450
+ this.element.classList.remove('is-selected');
451
+ this.element.setAttribute('aria-hidden', 'true');
452
+ Array.from(this.element.querySelectorAll('*')).forEach((element) => {
453
+ element.setAttribute('tabindex', '-1');
454
+ });
455
+ };
456
+ /**
457
+ * @param {Integer} shift - 0, 1, or -1
458
+ **/
459
+ proto$3.wrapShift = function (shift) {
460
+ this.shift = shift;
461
+ this.renderPosition(this.x + this.parent.slideableWidth * shift);
462
+ };
463
+ proto$3.remove = function () {
464
+ this.element.parentNode.removeChild(this.element);
465
+ };
466
+
467
+ function Slide(parent) {
468
+ this.parent = parent;
469
+ this.isOriginLeft = parent.originSide == 'left';
470
+ this.cells = [];
471
+ this.outerWidth = 0;
472
+ this.height = 0;
473
+ }
474
+ const proto$2 = Slide.prototype;
475
+ proto$2.addCell = function (cell) {
476
+ this.cells.push(cell);
477
+ this.outerWidth += cell.size.outerWidth;
478
+ this.height = Math.max(cell.size.outerHeight, this.height);
479
+ // first cell stuff
480
+ if (this.cells.length == 1) {
481
+ this.x = cell.x; // x comes from first cell
482
+ const beginMargin = this.isOriginLeft ? 'marginLeft' : 'marginRight';
483
+ this.firstMargin = cell.size[beginMargin];
484
+ }
485
+ };
486
+ proto$2.updateTarget = function () {
487
+ const endMargin = this.isOriginLeft ? 'marginRight' : 'marginLeft';
488
+ const lastCell = this.getLastCell();
489
+ const lastMargin = lastCell ? lastCell.size[endMargin] : 0;
490
+ const slideWidth = this.outerWidth - (this.firstMargin + lastMargin);
491
+ this.target = this.x + this.firstMargin + slideWidth * this.parent.cellAlign;
492
+ };
493
+ proto$2.getLastCell = function () {
494
+ return this.cells[this.cells.length - 1];
495
+ };
496
+ proto$2.select = function () {
497
+ this.cells.forEach(function (cell) {
498
+ cell.select();
499
+ });
500
+ };
501
+ proto$2.unselect = function () {
502
+ this.cells.forEach(function (cell) {
503
+ cell.unselect();
504
+ });
505
+ };
506
+ proto$2.getCellElements = function () {
507
+ return this.cells.map(function (cell) {
508
+ return cell.element;
509
+ });
510
+ };
511
+
512
+ const proto$1 = {};
513
+ proto$1.startAnimation = function () {
514
+ if (this.isAnimating) {
515
+ return;
516
+ }
517
+ this.isAnimating = true;
518
+ this.restingFrames = 0;
519
+ this.animate();
520
+ };
521
+ proto$1.animate = function () {
522
+ this.applyDragForce();
523
+ this.applySelectedAttraction();
524
+ const previousX = this.x;
525
+ this.integratePhysics();
526
+ this.positionSlider();
527
+ this.settle(previousX);
528
+ // animate next frame
529
+ if (this.isAnimating) {
530
+ const _this = this;
531
+ requestAnimationFrame(function animateFrame() {
532
+ _this.animate();
533
+ });
534
+ }
535
+ };
536
+ proto$1.positionSlider = function () {
537
+ let x = this.x;
538
+ // wrap position around
539
+ if (this.options.wrapAround && this.cells.length > 1) {
540
+ x = utils.modulo(x, this.slideableWidth);
541
+ x = x - this.slideableWidth;
542
+ this.shiftWrapCells(x);
543
+ }
544
+ this.setTranslateX(x, this.isAnimating);
545
+ this.dispatchScrollEvent();
546
+ };
547
+ proto$1.setTranslateX = function (x, _is3d) {
548
+ x += this.cursorPosition;
549
+ // reverse if right-to-left and using transform
550
+ x = this.options.rightToLeft ? -x : x;
551
+ const translateX = this.getPositionValue(x);
552
+ // use 3D tranforms for hardware acceleration on iOS
553
+ // but use 2D when settled, for better font-rendering
554
+ // this.slider.style.transform = is3d
555
+ // ? 'translate3d(' + translateX + ',0,0)'
556
+ // : 'translateX(' + translateX + ')';
557
+ this.slider.style.transform = 'translate3d(' + translateX + ',0,0)';
558
+ };
559
+ proto$1.dispatchScrollEvent = function () {
560
+ const firstSlide = this.slides[0];
561
+ if (!firstSlide) {
562
+ return;
563
+ }
564
+ const positionX = -this.x - firstSlide.target;
565
+ const progress = positionX / this.slidesWidth;
566
+ this.dispatchEvent('scroll', null, [progress, positionX]);
567
+ };
568
+ proto$1.positionSliderAtSelected = function () {
569
+ if (!this.cells.length) {
570
+ return;
571
+ }
572
+ this.x = -this.selectedSlide.target;
573
+ this.velocity = 0; // stop wobble
574
+ this.positionSlider();
575
+ };
576
+ proto$1.getPositionValue = function (position) {
577
+ if (this.options.percentPosition) {
578
+ // percent position, round to 2 digits, like 12.34%
579
+ return Math.round((position / this.size.innerWidth) * 10000) * 0.01 + '%';
580
+ }
581
+ else {
582
+ // pixel positioning
583
+ return Math.round(position) + 'px';
584
+ }
585
+ };
586
+ proto$1.settle = function (previousX) {
587
+ // keep track of frames where x hasn't moved
588
+ if (!this.isPointerDown &&
589
+ Math.round(this.x * 100) == Math.round(previousX * 100)) {
590
+ this.restingFrames++;
591
+ }
592
+ // stop animating if resting for 3 or more frames
593
+ if (this.restingFrames > 2) {
594
+ this.isAnimating = false;
595
+ delete this.isFreeScrolling;
596
+ // render position with translateX when settled
597
+ this.positionSlider();
598
+ this.dispatchEvent('settle', null, [this.selectedIndex]);
599
+ }
600
+ };
601
+ proto$1.shiftWrapCells = function (x) {
602
+ // shift before cells
603
+ const beforeGap = this.cursorPosition + x;
604
+ this._shiftCells(this.beforeShiftCells, beforeGap, -1);
605
+ // shift after cells
606
+ const afterGap = this.size.innerWidth - (x + this.slideableWidth + this.cursorPosition);
607
+ this._shiftCells(this.afterShiftCells, afterGap, 1);
608
+ };
609
+ proto$1._shiftCells = function (cells, gap, shift) {
610
+ for (let i = 0; i < cells.length; i++) {
611
+ const cell = cells[i];
612
+ const cellShift = gap > 0 ? shift : 0;
613
+ cell.wrapShift(cellShift);
614
+ gap -= cell.size.outerWidth;
615
+ }
616
+ };
617
+ proto$1._unshiftCells = function (cells) {
618
+ if (!cells || !cells.length) {
619
+ return;
620
+ }
621
+ for (let i = 0; i < cells.length; i++) {
622
+ cells[i].wrapShift(0);
623
+ }
624
+ };
625
+ // -------------------------- physics -------------------------- //
626
+ proto$1.integratePhysics = function () {
627
+ this.x += this.velocity;
628
+ this.velocity *= this.getFrictionFactor();
629
+ };
630
+ proto$1.applyForce = function (force) {
631
+ this.velocity += force;
632
+ };
633
+ proto$1.getFrictionFactor = function () {
634
+ return (1 - this.options[this.isFreeScrolling ? 'freeScrollFriction' : 'friction']);
635
+ };
636
+ proto$1.getRestingPosition = function () {
637
+ // my thanks to Steven Wittens, who simplified this math greatly
638
+ return this.x + this.velocity / (1 - this.getFrictionFactor());
639
+ };
640
+ proto$1.applyDragForce = function () {
641
+ if (!this.isDraggable || !this.isPointerDown) {
642
+ return;
643
+ }
644
+ // change the position to drag position by applying force
645
+ const dragVelocity = this.dragX - this.x;
646
+ const dragForce = dragVelocity - this.velocity;
647
+ this.applyForce(dragForce);
648
+ };
649
+ proto$1.applySelectedAttraction = function () {
650
+ // do not attract if pointer down or no slides
651
+ const dragDown = this.isDraggable && this.isPointerDown;
652
+ if (dragDown || this.isFreeScrolling || !this.slides.length) {
653
+ return;
654
+ }
655
+ const distance = this.selectedSlide.target * -1 - this.x;
656
+ const force = distance * this.options.selectedAttraction;
657
+ this.applyForce(force);
658
+ };
659
+
660
+ // vars
661
+ const getComputedStyle$1 = window.getComputedStyle;
662
+ const console$1 = window.console;
663
+ function moveElements(elems, toElem) {
664
+ elems = utils.makeArray(elems);
665
+ while (elems.length) {
666
+ toElem.appendChild(elems.shift());
667
+ }
668
+ }
669
+ // -------------------------- Flickity -------------------------- //
670
+ // globally unique identifiers
671
+ let GUID = 0;
672
+ // internal store of all Flickity intances
673
+ const instances = {};
674
+ function Flickity(element, options) {
675
+ const queryElement = utils.getQueryElement(element);
676
+ if (!queryElement) {
677
+ if (console$1) {
678
+ console$1.error('Bad element for Flickity: ' + (queryElement || element));
679
+ }
680
+ return;
681
+ }
682
+ this.element = queryElement;
683
+ // do not initialize twice on same element
684
+ if (this.element.flickityGUID) {
685
+ const instance = instances[this.element.flickityGUID];
686
+ if (!instances[this.element.flickityGUID])
687
+ return;
688
+ instance.option(options);
689
+ return instance;
690
+ }
691
+ // options
692
+ this.options = utils.extend({}, this.constructor.defaults);
693
+ this.option(options);
694
+ // kick things off
695
+ this._create();
696
+ }
697
+ Flickity.defaults = {
698
+ accessibility: true,
699
+ // adaptiveHeight: false,
700
+ cellAlign: 'center',
701
+ // cellSelector: undefined,
702
+ // contain: false,
703
+ freeScrollFriction: 0.075, // friction when free-scrolling
704
+ friction: 0.28, // friction when selecting
705
+ namespaceJQueryEvents: true,
706
+ // initialIndex: 0,
707
+ percentPosition: true,
708
+ resize: true,
709
+ selectedAttraction: 0.025,
710
+ setGallerySize: true,
711
+ // watchCSS: false,
712
+ // wrapAround: false
713
+ };
714
+ // hash of methods triggered on _create()
715
+ Flickity.createMethods = [];
716
+ const proto = Flickity.prototype;
717
+ // inherit EventEmitter
718
+ utils.extend(proto, EvEmitter.prototype);
719
+ proto._create = function () {
720
+ // add id for Flickity.data
721
+ const id = (this.guid = ++GUID);
722
+ this.element.flickityGUID = id; // expando
723
+ instances[id] = this; // associate via id
724
+ // initial properties
725
+ this.selectedIndex = 0;
726
+ // how many frames slider has been in same position
727
+ this.restingFrames = 0;
728
+ // initial physics properties
729
+ this.x = 0;
730
+ this.velocity = 0;
731
+ this.originSide = this.options.rightToLeft ? 'right' : 'left';
732
+ // create viewport & slider
733
+ this.viewport = document.createElement('div');
734
+ this.viewport.className = 'flickity-viewport';
735
+ this.viewport.part.add('slide-viewport');
736
+ this._createSlider();
737
+ if (this.options.resize || this.options.watchCSS) {
738
+ window.addEventListener('resize', this);
739
+ }
740
+ // add listeners from on option
741
+ for (const eventName in this.options.on) {
742
+ const listener = this.options.on[eventName];
743
+ this.on(eventName, listener);
744
+ }
745
+ Flickity.createMethods.forEach(function (method) {
746
+ this[method]();
747
+ }, this);
748
+ if (this.options.watchCSS) {
749
+ this.watchCSS();
750
+ }
751
+ else {
752
+ this.activate();
753
+ }
754
+ };
755
+ /**
756
+ * set options
757
+ * @param {Object} opts
758
+ */
759
+ proto.option = function (opts) {
760
+ utils.extend(this.options, opts);
761
+ };
762
+ proto.activate = function () {
763
+ if (this.isActive) {
764
+ return;
765
+ }
766
+ this.isActive = true;
767
+ this.element.classList.add('flickity-enabled');
768
+ if (this.options.rightToLeft) {
769
+ this.element.classList.add('flickity-rtl');
770
+ }
771
+ this.getSize();
772
+ // move initial cell elements so they can be loaded as cells
773
+ const cellElems = this.element.children; //this._filterFindCellElements( this.element.children );
774
+ moveElements(cellElems, this.slider);
775
+ this.viewport.appendChild(this.slider);
776
+ this.element.appendChild(this.viewport);
777
+ // get cells from children
778
+ this.reloadCells();
779
+ if (this.options.accessibility) {
780
+ // allow element to focusable
781
+ this.element.tabIndex = 0;
782
+ // listen for key presses
783
+ this.element.addEventListener('keydown', this);
784
+ }
785
+ this.emitEvent('activate');
786
+ this.selectInitialIndex();
787
+ // flag for initial activation, for using initialIndex
788
+ this.isInitActivated = true;
789
+ // ready event. #493
790
+ this.dispatchEvent('ready');
791
+ };
792
+ // slider positions the cells
793
+ proto._createSlider = function () {
794
+ // slider element does all the positioning
795
+ const slider = document.createElement('div');
796
+ slider.className = 'flickity-slider';
797
+ slider.style[this.originSide] = 0;
798
+ this.slider = slider;
799
+ };
800
+ proto._filterFindCellElements = function (elems) {
801
+ return utils.filterFindElements(elems, this.options.cellSelector);
802
+ };
803
+ // goes through all children
804
+ proto.reloadCells = function () {
805
+ let children = this.slider.children;
806
+ if (this.slider.getRootNode().host) {
807
+ children = [];
808
+ for (const ele of this.slider.getRootNode().host.children) {
809
+ if ('assignedElements' in ele) {
810
+ children = [...children, ...ele.assignedElements()];
811
+ }
812
+ else {
813
+ children.push(ele);
814
+ }
815
+ }
816
+ }
817
+ // collection of item elements
818
+ this.cells = this._makeCells(children);
819
+ this.positionCells();
820
+ this._getWrapShiftCells();
821
+ this.setGallerySize();
822
+ };
823
+ /**
824
+ * turn elements into Flickity.Cells
825
+ * @param {Array or NodeList or HTMLElement} elems
826
+ * @returns {Array} items - collection of new Flickity Cells
827
+ */
828
+ proto._makeCells = function (elems) {
829
+ const cellElems = this._filterFindCellElements(elems);
830
+ // create new Flickity for collection
831
+ const cells = cellElems.map(function (cellElem) {
832
+ return new Cell(cellElem, this);
833
+ }, this);
834
+ return cells;
835
+ };
836
+ proto.getLastCell = function () {
837
+ return this.cells[this.cells.length - 1];
838
+ };
839
+ proto.getLastSlide = function () {
840
+ return this.slides[this.slides.length - 1];
841
+ };
842
+ // positions all cells
843
+ proto.positionCells = function () {
844
+ // size all cells
845
+ this._sizeCells(this.cells);
846
+ // position all cells
847
+ this._positionCells(0);
848
+ };
849
+ /**
850
+ * position certain cells
851
+ * @param {Integer} index - which cell to start with
852
+ */
853
+ proto._positionCells = function (index) {
854
+ index = index || 0;
855
+ // also measure maxCellHeight
856
+ // start 0 if positioning all cells
857
+ this.maxCellHeight = index ? this.maxCellHeight || 0 : 0;
858
+ let cellX = 0;
859
+ // get cellX
860
+ if (index > 0) {
861
+ const startCell = this.cells[index - 1];
862
+ cellX = startCell.x + startCell.size.outerWidth;
863
+ }
864
+ const len = this.cells.length;
865
+ for (let i = index; i < len; i++) {
866
+ const cell = this.cells[i];
867
+ cell.setPosition(cellX);
868
+ cellX += cell.size.outerWidth;
869
+ this.maxCellHeight = Math.max(cell.size.outerHeight, this.maxCellHeight);
870
+ }
871
+ // keep track of cellX for wrap-around
872
+ this.slideableWidth = cellX;
873
+ // slides
874
+ this.updateSlides();
875
+ // contain slides target
876
+ this._containSlides();
877
+ // update slidesWidth
878
+ this.slidesWidth = len
879
+ ? this.getLastSlide().target - this.slides[0].target
880
+ : 0;
881
+ };
882
+ /**
883
+ * cell.getSize() on multiple cells
884
+ * @param {Array} cells
885
+ */
886
+ proto._sizeCells = function (cells) {
887
+ cells.forEach(function (cell) {
888
+ cell.getSize();
889
+ });
890
+ };
891
+ // -------------------------- -------------------------- //
892
+ proto.updateSlides = function () {
893
+ this.slides = [];
894
+ if (!this.cells.length) {
895
+ return;
896
+ }
897
+ let slide = new Slide(this);
898
+ this.slides.push(slide);
899
+ const isOriginLeft = this.originSide == 'left';
900
+ const nextMargin = isOriginLeft ? 'marginRight' : 'marginLeft';
901
+ const canCellFit = this._getCanCellFit();
902
+ this.cells.forEach(function (cell, i) {
903
+ // just add cell if first cell in slide
904
+ if (!slide.cells.length) {
905
+ slide.addCell(cell);
906
+ return;
907
+ }
908
+ const slideWidth = slide.outerWidth -
909
+ slide.firstMargin +
910
+ (cell.size.outerWidth - cell.size[nextMargin]);
911
+ if (canCellFit.call(this, i, slideWidth)) {
912
+ slide.addCell(cell);
913
+ }
914
+ else {
915
+ // doesn't fit, new slide
916
+ slide.updateTarget();
917
+ slide = new Slide(this);
918
+ this.slides.push(slide);
919
+ slide.addCell(cell);
920
+ }
921
+ }, this);
922
+ // last slide
923
+ slide.updateTarget();
924
+ // update .selectedSlide
925
+ this.updateSelectedSlide();
926
+ };
927
+ proto._getCanCellFit = function () {
928
+ const groupCells = this.options.groupCells;
929
+ if (!groupCells) {
930
+ return function () {
931
+ return false;
932
+ };
933
+ }
934
+ else if (typeof groupCells == 'number') {
935
+ // group by number. 3 -> [0,1,2], [3,4,5], ...
936
+ // @ts-ignore
937
+ const number = parseInt(groupCells, 10);
938
+ return function (i) {
939
+ return i % number !== 0;
940
+ };
941
+ }
942
+ // default, group by width of slide
943
+ // parse '75%
944
+ const percentMatch = typeof groupCells == 'string' && groupCells.match(/^(\d+)%$/);
945
+ const percent = percentMatch ? parseInt(percentMatch[1], 10) / 100 : 1;
946
+ return function (_i, slideWidth) {
947
+ return slideWidth <= (this.size.innerWidth + 1) * percent;
948
+ };
949
+ };
950
+ // alias _init for jQuery plugin .flickity()
951
+ proto._init = proto.reposition = function () {
952
+ this.positionCells();
953
+ this.positionSliderAtSelected();
954
+ };
955
+ proto.getSize = function () {
956
+ this.size = getSize(this.element);
957
+ this.setCellAlign();
958
+ this.cursorPosition = this.size.innerWidth * this.cellAlign;
959
+ };
960
+ const cellAlignShorthands = {
961
+ // cell align, then based on origin side
962
+ center: {
963
+ left: 0.5,
964
+ right: 0.5,
965
+ },
966
+ left: {
967
+ left: 0,
968
+ right: 1,
969
+ },
970
+ right: {
971
+ right: 0,
972
+ left: 1,
973
+ },
974
+ };
975
+ proto.setCellAlign = function () {
976
+ const shorthand = cellAlignShorthands[this.options.cellAlign];
977
+ this.cellAlign = shorthand
978
+ ? shorthand[this.originSide]
979
+ : this.options.cellAlign;
980
+ };
981
+ proto.setGallerySize = function () {
982
+ if (this.options.setGallerySize) {
983
+ const height = this.options.adaptiveHeight && this.selectedSlide
984
+ ? this.selectedSlide.height
985
+ : this.maxCellHeight;
986
+ this.viewport.style.height = height + 'px';
987
+ }
988
+ };
989
+ proto._getWrapShiftCells = function () {
990
+ // only for wrap-around
991
+ if (!this.options.wrapAround) {
992
+ return;
993
+ }
994
+ // unshift previous cells
995
+ this._unshiftCells(this.beforeShiftCells);
996
+ this._unshiftCells(this.afterShiftCells);
997
+ // get before cells
998
+ // initial gap
999
+ let gapX = this.cursorPosition;
1000
+ const cellIndex = this.cells.length - 1;
1001
+ this.beforeShiftCells = this._getGapCells(gapX, cellIndex, -1);
1002
+ // get after cells
1003
+ // ending gap between last cell and end of gallery viewport
1004
+ gapX = this.size.innerWidth - this.cursorPosition;
1005
+ // start cloning at first cell, working forwards
1006
+ this.afterShiftCells = this._getGapCells(gapX, 0, 1);
1007
+ };
1008
+ proto._getGapCells = function (gapX, cellIndex, increment) {
1009
+ // keep adding cells until the cover the initial gap
1010
+ const cells = [];
1011
+ while (gapX > 0) {
1012
+ const cell = this.cells[cellIndex];
1013
+ if (!cell) {
1014
+ break;
1015
+ }
1016
+ cells.push(cell);
1017
+ cellIndex += increment;
1018
+ gapX -= cell.size.outerWidth;
1019
+ }
1020
+ return cells;
1021
+ };
1022
+ // ----- contain ----- //
1023
+ // contain cell targets so no excess sliding
1024
+ proto._containSlides = function () {
1025
+ if (!this.options.contain || this.options.wrapAround || !this.cells.length) {
1026
+ return;
1027
+ }
1028
+ const isRightToLeft = this.options.rightToLeft;
1029
+ const beginMargin = isRightToLeft ? 'marginRight' : 'marginLeft';
1030
+ const endMargin = isRightToLeft ? 'marginLeft' : 'marginRight';
1031
+ const contentWidth = this.slideableWidth - this.getLastCell().size[endMargin];
1032
+ // content is less than gallery size
1033
+ const isContentSmaller = contentWidth < this.size.innerWidth;
1034
+ // bounds
1035
+ const beginBound = this.cursorPosition + this.cells[0].size[beginMargin];
1036
+ const endBound = contentWidth - this.size.innerWidth * (1 - this.cellAlign);
1037
+ // contain each cell target
1038
+ this.slides.forEach(function (slide) {
1039
+ if (isContentSmaller) {
1040
+ // all cells fit inside gallery
1041
+ slide.target = contentWidth * this.cellAlign;
1042
+ }
1043
+ else {
1044
+ // contain to bounds
1045
+ slide.target = Math.max(slide.target, beginBound);
1046
+ slide.target = Math.min(slide.target, endBound);
1047
+ }
1048
+ }, this);
1049
+ };
1050
+ // ----- ----- //
1051
+ /**
1052
+ * emits events via eventEmitter and jQuery events
1053
+ * @param {String} type - name of event
1054
+ * @param {Event} event - original event
1055
+ * @param {Array} args - extra arguments
1056
+ */
1057
+ proto.dispatchEvent = function (type, event, args) {
1058
+ const emitArgs = event ? [event].concat(args) : args;
1059
+ this.emitEvent(type, emitArgs);
1060
+ };
1061
+ // -------------------------- select -------------------------- //
1062
+ /**
1063
+ * @param {Integer} index - index of the slide
1064
+ * @param {Boolean} isWrap - will wrap-around to last/first if at the end
1065
+ * @param {Boolean} isInstant - will immediately set position at selected cell
1066
+ */
1067
+ proto.select = function (index, isWrap, isInstant) {
1068
+ if (!this.isActive) {
1069
+ return;
1070
+ }
1071
+ index = parseInt(index, 10);
1072
+ this._wrapSelect(index);
1073
+ if (this.options.wrapAround || isWrap) {
1074
+ index = utils.modulo(index, this.slides.length);
1075
+ }
1076
+ // bail if invalid index
1077
+ if (!this.slides[index]) {
1078
+ return;
1079
+ }
1080
+ const prevIndex = this.selectedIndex;
1081
+ this.selectedIndex = index;
1082
+ this.updateSelectedSlide();
1083
+ if (isInstant) {
1084
+ this.positionSliderAtSelected();
1085
+ }
1086
+ else {
1087
+ this.startAnimation();
1088
+ }
1089
+ if (this.options.adaptiveHeight) {
1090
+ this.setGallerySize();
1091
+ }
1092
+ // events
1093
+ this.dispatchEvent('select', null, [index]);
1094
+ // change event if new index
1095
+ if (index != prevIndex) {
1096
+ this.dispatchEvent('change', null, [index]);
1097
+ }
1098
+ // old v1 event name, remove in v3
1099
+ this.dispatchEvent('cellSelect');
1100
+ };
1101
+ // wraps position for wrapAround, to move to closest slide. #113
1102
+ proto._wrapSelect = function (index) {
1103
+ const len = this.slides.length;
1104
+ const isWrapping = this.options.wrapAround && len > 1;
1105
+ if (!isWrapping) {
1106
+ return index;
1107
+ }
1108
+ const wrapIndex = utils.modulo(index, len);
1109
+ // go to shortest
1110
+ const delta = Math.abs(wrapIndex - this.selectedIndex);
1111
+ const backWrapDelta = Math.abs(wrapIndex + len - this.selectedIndex);
1112
+ const forewardWrapDelta = Math.abs(wrapIndex - len - this.selectedIndex);
1113
+ if (!this.isDragSelect && backWrapDelta < delta) {
1114
+ index += len;
1115
+ }
1116
+ else if (!this.isDragSelect && forewardWrapDelta < delta) {
1117
+ index -= len;
1118
+ }
1119
+ // wrap position so slider is within normal area
1120
+ if (index < 0) {
1121
+ this.x -= this.slideableWidth;
1122
+ }
1123
+ else if (index >= len) {
1124
+ this.x += this.slideableWidth;
1125
+ }
1126
+ };
1127
+ proto.previous = function (isWrap, isInstant) {
1128
+ this.select(this.selectedIndex - 1, isWrap, isInstant);
1129
+ };
1130
+ proto.next = function (isWrap, isInstant) {
1131
+ this.select(this.selectedIndex + 1, isWrap, isInstant);
1132
+ };
1133
+ proto.updateSelectedSlide = function () {
1134
+ const slide = this.slides[this.selectedIndex];
1135
+ // selectedIndex could be outside of slides, if triggered before resize()
1136
+ if (!slide) {
1137
+ return;
1138
+ }
1139
+ // unselect previous selected slide
1140
+ this.unselectSelectedSlide();
1141
+ // update new selected slide
1142
+ this.selectedSlide = slide;
1143
+ slide.select();
1144
+ this.selectedCells = slide.cells;
1145
+ this.selectedElements = slide.getCellElements();
1146
+ // HACK: selectedCell & selectedElement is first cell in slide, backwards compatibility
1147
+ // Remove in v3?
1148
+ this.selectedCell = slide.cells[0];
1149
+ this.selectedElement = this.selectedElements[0];
1150
+ };
1151
+ proto.unselectSelectedSlide = function () {
1152
+ if (this.selectedSlide) {
1153
+ this.selectedSlide.unselect();
1154
+ }
1155
+ };
1156
+ proto.selectInitialIndex = function () {
1157
+ const initialIndex = this.options.initialIndex;
1158
+ // already activated, select previous selectedIndex
1159
+ if (this.isInitActivated) {
1160
+ this.select(this.selectedIndex, false, true);
1161
+ return;
1162
+ }
1163
+ // select with selector string
1164
+ if (initialIndex && typeof initialIndex == 'string') {
1165
+ const cell = this.queryCell(initialIndex);
1166
+ if (cell) {
1167
+ this.selectCell(initialIndex, false, true);
1168
+ return;
1169
+ }
1170
+ }
1171
+ let index = 0;
1172
+ // select with number
1173
+ if (initialIndex && this.slides[initialIndex]) {
1174
+ index = initialIndex;
1175
+ }
1176
+ // select instantly
1177
+ this.select(index, false, true);
1178
+ };
1179
+ /**
1180
+ * select slide from number or cell element
1181
+ * @param {Element or Number} elem
1182
+ * @param { Boolean } isWrap
1183
+ * @param { Boolean } isInstant
1184
+ */
1185
+ proto.selectCell = function (elem, isWrap, isInstant) {
1186
+ // get cell
1187
+ const cell = this.queryCell(elem);
1188
+ if (!cell) {
1189
+ return;
1190
+ }
1191
+ const index = this.getCellSlideIndex(cell);
1192
+ this.select(index, isWrap, isInstant);
1193
+ };
1194
+ proto.getCellSlideIndex = function (cell) {
1195
+ // get index of slides that has cell
1196
+ for (let i = 0; i < this.slides.length; i++) {
1197
+ const slide = this.slides[i];
1198
+ const index = slide.cells.indexOf(cell);
1199
+ if (index != -1) {
1200
+ return i;
1201
+ }
1202
+ }
1203
+ };
1204
+ // -------------------------- get cells -------------------------- //
1205
+ /**
1206
+ * get Flickity.Cell, given an Element
1207
+ * @param {Element} elem
1208
+ * @returns found flickity cell
1209
+ */
1210
+ proto.getCell = function (elem) {
1211
+ // loop through cells to get the one that matches
1212
+ for (let i = 0; i < this.cells.length; i++) {
1213
+ const cell = this.cells[i];
1214
+ if (cell.element == elem) {
1215
+ return cell;
1216
+ }
1217
+ }
1218
+ };
1219
+ /**
1220
+ * get collection of Flickity.Cells, given Elements
1221
+ * @param {Element, Array, NodeList} elems
1222
+ * @returns {Array} cells - Flickity.Cells
1223
+ */
1224
+ proto.getCells = function (elems) {
1225
+ elems = utils.makeArray(elems);
1226
+ const cells = [];
1227
+ elems.forEach(function (elem) {
1228
+ const cell = this.getCell(elem);
1229
+ if (cell) {
1230
+ cells.push(cell);
1231
+ }
1232
+ }, this);
1233
+ return cells;
1234
+ };
1235
+ /**
1236
+ * get cell elements
1237
+ * @returns {Array} cellElems
1238
+ */
1239
+ proto.getCellElements = function () {
1240
+ return this.cells.map(function (cell) {
1241
+ return cell.element;
1242
+ });
1243
+ };
1244
+ /**
1245
+ * get parent cell from an element
1246
+ * @param {Element} elem
1247
+ * @returns {Flickit.Cell} cell
1248
+ */
1249
+ proto.getParentCell = function (elem) {
1250
+ // first check if elem is cell
1251
+ const cell = this.getCell(elem);
1252
+ if (cell) {
1253
+ return cell;
1254
+ }
1255
+ // try to get parent cell elem
1256
+ elem = utils.getParent(elem, '.flickity-slider > *');
1257
+ return this.getCell(elem);
1258
+ };
1259
+ /**
1260
+ * get cells adjacent to a slide
1261
+ * @param {Integer} adjCount - number of adjacent slides
1262
+ * @param {Integer} index - index of slide to start
1263
+ * @returns {Array} cells - array of Flickity.Cells
1264
+ */
1265
+ proto.getAdjacentCellElements = function (adjCount, index) {
1266
+ if (!adjCount) {
1267
+ return this.selectedSlide.getCellElements();
1268
+ }
1269
+ index = index === undefined ? this.selectedIndex : index;
1270
+ const len = this.slides.length;
1271
+ if (1 + adjCount * 2 >= len) {
1272
+ return this.getCellElements();
1273
+ }
1274
+ let cellElems = [];
1275
+ for (let i = index - adjCount; i <= index + adjCount; i++) {
1276
+ const slideIndex = this.options.wrapAround ? utils.modulo(i, len) : i;
1277
+ const slide = this.slides[slideIndex];
1278
+ if (slide) {
1279
+ cellElems = cellElems.concat(slide.getCellElements());
1280
+ }
1281
+ }
1282
+ return cellElems;
1283
+ };
1284
+ /**
1285
+ * select slide from number or cell element
1286
+ * @param {Element, Selector String, or Number} selector
1287
+ * @returns {Flickity.Cell} found flickity cell
1288
+ */
1289
+ proto.queryCell = function (selector) {
1290
+ if (typeof selector == 'number') {
1291
+ // use number as index
1292
+ return this.cells[selector];
1293
+ }
1294
+ if (typeof selector == 'string') {
1295
+ // do not select invalid selectors from hash: #123, #/. #791
1296
+ if (selector.match(/^[#\.]?[\d\/]/)) {
1297
+ return;
1298
+ }
1299
+ // use string as selector, get element
1300
+ selector = this.element.querySelector(selector);
1301
+ }
1302
+ // get cell from element
1303
+ return this.getCell(selector);
1304
+ };
1305
+ // -------------------------- events -------------------------- //
1306
+ proto.uiChange = function () {
1307
+ this.emitEvent('uiChange');
1308
+ };
1309
+ // keep focus on element when child UI elements are clicked
1310
+ proto.childUIPointerDown = function (event) {
1311
+ // HACK iOS does not allow touch events to bubble up?!
1312
+ if (event.type != 'touchstart') {
1313
+ event.preventDefault();
1314
+ }
1315
+ this.focus();
1316
+ };
1317
+ // ----- resize ----- //
1318
+ proto.onresize = function () {
1319
+ this.watchCSS();
1320
+ this.resize();
1321
+ };
1322
+ utils.debounceMethod(Flickity, 'onresize', 150);
1323
+ proto.resize = function () {
1324
+ if (!this.isActive) {
1325
+ return;
1326
+ }
1327
+ this.getSize();
1328
+ // yo
1329
+ // wrap values
1330
+ if (this.options.wrapAround) {
1331
+ this.x = utils.modulo(this.x, this.slideableWidth);
1332
+ }
1333
+ this.positionCells();
1334
+ this._getWrapShiftCells();
1335
+ this.setGallerySize();
1336
+ this.emitEvent('resize');
1337
+ // update selected index for group slides, instant
1338
+ // TODO: position can be lost between groups of various numbers
1339
+ const selectedElement = this.selectedElements && this.selectedElements[0];
1340
+ this.selectCell(selectedElement, false, true);
1341
+ };
1342
+ // watches the :after property, activates/deactivates
1343
+ proto.watchCSS = function () {
1344
+ const watchOption = this.options.watchCSS;
1345
+ if (!watchOption) {
1346
+ return;
1347
+ }
1348
+ const afterContent = getComputedStyle$1(this.element, ':after').content;
1349
+ // activate if :after { content: 'flickity' }
1350
+ if (afterContent.indexOf('flickity') != -1) {
1351
+ this.activate();
1352
+ }
1353
+ else {
1354
+ this.deactivate();
1355
+ }
1356
+ };
1357
+ // ----- keydown ----- //
1358
+ // go previous/next if left/right keys pressed
1359
+ proto.onkeydown = function (event) {
1360
+ // only work if element is in focus
1361
+ const isNotFocused = document.activeElement && document.activeElement != this.element;
1362
+ if (!this.options.accessibility || isNotFocused) {
1363
+ return;
1364
+ }
1365
+ const handler = Flickity.keyboardHandlers[event.keyCode];
1366
+ if (handler) {
1367
+ handler.call(this);
1368
+ }
1369
+ };
1370
+ Flickity.keyboardHandlers = {
1371
+ // left arrow
1372
+ 37: function () {
1373
+ const leftMethod = this.options.rightToLeft ? 'next' : 'previous';
1374
+ this.uiChange();
1375
+ this[leftMethod]();
1376
+ },
1377
+ // right arrow
1378
+ 39: function () {
1379
+ const rightMethod = this.options.rightToLeft ? 'previous' : 'next';
1380
+ this.uiChange();
1381
+ this[rightMethod]();
1382
+ },
1383
+ };
1384
+ // ----- focus ----- //
1385
+ proto.focus = function () {
1386
+ // TODO remove scrollTo once focus options gets more support
1387
+ // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#Browser_compatibility
1388
+ const prevScrollY = window.pageYOffset;
1389
+ this.element.focus({ preventScroll: true });
1390
+ // hack to fix scroll jump after focus, #76
1391
+ if (window.pageYOffset != prevScrollY) {
1392
+ window.scrollTo(window.pageXOffset, prevScrollY);
1393
+ }
1394
+ };
1395
+ // -------------------------- destroy -------------------------- //
1396
+ // deactivate all Flickity functionality, but keep stuff available
1397
+ proto.deactivate = function () {
1398
+ if (!this.isActive) {
1399
+ return;
1400
+ }
1401
+ this.element.classList.remove('flickity-enabled');
1402
+ this.element.classList.remove('flickity-rtl');
1403
+ this.unselectSelectedSlide();
1404
+ // destroy cells
1405
+ this.cells.forEach(function (cell) {
1406
+ cell.destroy();
1407
+ });
1408
+ this.element.removeChild(this.viewport);
1409
+ // move child elements back into element
1410
+ moveElements(this.slider.children, this.element);
1411
+ if (this.options.accessibility) {
1412
+ this.element.removeAttribute('tabIndex');
1413
+ this.element.removeEventListener('keydown', this);
1414
+ }
1415
+ // set flags
1416
+ this.isActive = false;
1417
+ this.emitEvent('deactivate');
1418
+ };
1419
+ proto.destroy = function () {
1420
+ this.deactivate();
1421
+ window.removeEventListener('resize', this);
1422
+ this.allOff();
1423
+ this.emitEvent('destroy');
1424
+ delete this.element.flickityGUID;
1425
+ delete instances[this.guid];
1426
+ };
1427
+ // -------------------------- prototype -------------------------- //
1428
+ utils.extend(proto, proto$1);
1429
+ // -------------------------- extras -------------------------- //
1430
+ /**
1431
+ * get Flickity instance from element
1432
+ * @param {Element} elem
1433
+ * @returns {Flickity} Flickity instance
1434
+ */
1435
+ Flickity.data = function (elem) {
1436
+ elem = utils.getQueryElement(elem);
1437
+ const id = elem && elem.flickityGUID;
1438
+ return id && instances[id];
1439
+ };
1440
+ utils.htmlInit(Flickity, 'flickity');
1441
+ Flickity.Cell = Cell;
1442
+ Flickity.Slide = Slide;
1443
+
1444
+ /*!
1445
+ * Unipointer v2.4.0
1446
+ * base class for doing one thing with pointer event
1447
+ * MIT license
1448
+ */
1449
+ function noop() { }
1450
+ function Unipointer() { }
1451
+ // inherit EvEmitter
1452
+ const pointerProto = (Unipointer.prototype = Object.create(EvEmitter.prototype));
1453
+ pointerProto.bindStartEvent = function (elem) {
1454
+ this._bindStartEvent(elem, true);
1455
+ };
1456
+ pointerProto.unbindStartEvent = function (elem) {
1457
+ this._bindStartEvent(elem, false);
1458
+ };
1459
+ /**
1460
+ * Add or remove start event
1461
+ * @param {Element} elem
1462
+ * @param {Boolean} isAdd - remove if falsey
1463
+ */
1464
+ pointerProto._bindStartEvent = function (elem, isAdd) {
1465
+ // munge isAdd, default to true
1466
+ isAdd = isAdd === undefined ? true : isAdd;
1467
+ const bindMethod = isAdd ? 'addEventListener' : 'removeEventListener';
1468
+ // default to mouse events
1469
+ let startEvent = 'mousedown';
1470
+ if ('ontouchstart' in window) {
1471
+ // HACK prefer Touch Events as you can preventDefault on touchstart to
1472
+ // disable scroll in iOS & mobile Chrome metafizzy/flickity#1177
1473
+ startEvent = 'touchstart';
1474
+ }
1475
+ else if (window.PointerEvent) {
1476
+ // Pointer Events
1477
+ startEvent = 'pointerdown';
1478
+ }
1479
+ elem[bindMethod](startEvent, this);
1480
+ };
1481
+ // trigger handler methods for events
1482
+ pointerProto.handleEvent = function (event) {
1483
+ const method = 'on' + event.type;
1484
+ if (this[method]) {
1485
+ this[method](event);
1486
+ }
1487
+ };
1488
+ // returns the touch that we're keeping track of
1489
+ pointerProto.getTouch = function (touches) {
1490
+ for (let i = 0; i < touches.length; i++) {
1491
+ const touch = touches[i];
1492
+ if (touch.identifier == this.pointerIdentifier) {
1493
+ return touch;
1494
+ }
1495
+ }
1496
+ };
1497
+ // ----- start event ----- //
1498
+ pointerProto.onmousedown = function (event) {
1499
+ // dismiss clicks from right or middle buttons
1500
+ const button = event.button;
1501
+ if (button && button !== 0 && button !== 1) {
1502
+ return;
1503
+ }
1504
+ this._pointerDown(event, event);
1505
+ };
1506
+ pointerProto.ontouchstart = function (event) {
1507
+ this._pointerDown(event, event.changedTouches[0]);
1508
+ };
1509
+ pointerProto.onpointerdown = function (event) {
1510
+ this._pointerDown(event, event);
1511
+ };
1512
+ /**
1513
+ * pointer start
1514
+ * @param {Event} event
1515
+ * @param {Event or Touch} pointer
1516
+ */
1517
+ pointerProto._pointerDown = function (event, pointer) {
1518
+ // dismiss right click and other pointers
1519
+ // button = 0 is okay, 1-4 not
1520
+ if (event.button || this.isPointerDown) {
1521
+ return;
1522
+ }
1523
+ this.isPointerDown = true;
1524
+ // save pointer identifier to match up touch events
1525
+ this.pointerIdentifier =
1526
+ pointer.pointerId !== undefined
1527
+ ? // pointerId for pointer events, touch.indentifier for touch events
1528
+ pointer.pointerId
1529
+ : pointer.identifier;
1530
+ this.pointerDown(event, pointer);
1531
+ };
1532
+ pointerProto.pointerDown = function (event, pointer) {
1533
+ this._bindPostStartEvents(event);
1534
+ this.emitEvent('pointerDown', [event, pointer]);
1535
+ };
1536
+ // hash of events to be bound after start event
1537
+ const postStartEvents = {
1538
+ mousedown: ['mousemove', 'mouseup'],
1539
+ touchstart: ['touchmove', 'touchend', 'touchcancel'],
1540
+ pointerdown: ['pointermove', 'pointerup', 'pointercancel'],
1541
+ };
1542
+ pointerProto._bindPostStartEvents = function (event) {
1543
+ if (!event) {
1544
+ return;
1545
+ }
1546
+ // get proper events to match start event
1547
+ const events = postStartEvents[event.type];
1548
+ // bind events to node
1549
+ events.forEach(function (eventName) {
1550
+ window.addEventListener(eventName, this);
1551
+ }, this);
1552
+ // save these arguments
1553
+ this._boundPointerEvents = events;
1554
+ };
1555
+ pointerProto._unbindPostStartEvents = function () {
1556
+ // check for _boundEvents, in case dragEnd triggered twice (old IE8 bug)
1557
+ if (!this._boundPointerEvents) {
1558
+ return;
1559
+ }
1560
+ this._boundPointerEvents.forEach(function (eventName) {
1561
+ window.removeEventListener(eventName, this);
1562
+ }, this);
1563
+ delete this._boundPointerEvents;
1564
+ };
1565
+ // ----- move event ----- //
1566
+ pointerProto.onmousemove = function (event) {
1567
+ this._pointerMove(event, event);
1568
+ };
1569
+ pointerProto.onpointermove = function (event) {
1570
+ if (event.pointerId == this.pointerIdentifier) {
1571
+ this._pointerMove(event, event);
1572
+ }
1573
+ };
1574
+ pointerProto.ontouchmove = function (event) {
1575
+ const touch = this.getTouch(event.changedTouches);
1576
+ if (touch) {
1577
+ this._pointerMove(event, touch);
1578
+ }
1579
+ };
1580
+ /**
1581
+ * pointer move
1582
+ * @param {Event} event
1583
+ * @param {Event or Touch} pointer
1584
+ * @private
1585
+ */
1586
+ pointerProto._pointerMove = function (event, pointer) {
1587
+ this.pointerMove(event, pointer);
1588
+ };
1589
+ // public
1590
+ pointerProto.pointerMove = function (event, pointer) {
1591
+ this.emitEvent('pointerMove', [event, pointer]);
1592
+ };
1593
+ // ----- end event ----- //
1594
+ pointerProto.onmouseup = function (event) {
1595
+ this._pointerUp(event, event);
1596
+ };
1597
+ pointerProto.onpointerup = function (event) {
1598
+ if (event.pointerId == this.pointerIdentifier) {
1599
+ this._pointerUp(event, event);
1600
+ }
1601
+ };
1602
+ pointerProto.ontouchend = function (event) {
1603
+ const touch = this.getTouch(event.changedTouches);
1604
+ if (touch) {
1605
+ this._pointerUp(event, touch);
1606
+ }
1607
+ };
1608
+ /**
1609
+ * pointer up
1610
+ * @param {Event} event
1611
+ * @param {Event or Touch} pointer
1612
+ * @private
1613
+ */
1614
+ pointerProto._pointerUp = function (event, pointer) {
1615
+ this._pointerDone();
1616
+ this.pointerUp(event, pointer);
1617
+ };
1618
+ // public
1619
+ pointerProto.pointerUp = function (event, pointer) {
1620
+ this.emitEvent('pointerUp', [event, pointer]);
1621
+ };
1622
+ // ----- pointer done ----- //
1623
+ // triggered on pointer up & pointer cancel
1624
+ pointerProto._pointerDone = function () {
1625
+ this._pointerReset();
1626
+ this._unbindPostStartEvents();
1627
+ this.pointerDone();
1628
+ };
1629
+ pointerProto._pointerReset = function () {
1630
+ // reset properties
1631
+ this.isPointerDown = false;
1632
+ delete this.pointerIdentifier;
1633
+ };
1634
+ pointerProto.pointerDone = noop;
1635
+ // ----- pointer cancel ----- //
1636
+ pointerProto.onpointercancel = function (event) {
1637
+ if (event.pointerId == this.pointerIdentifier) {
1638
+ this._pointerCancel(event, event);
1639
+ }
1640
+ };
1641
+ pointerProto.ontouchcancel = function (event) {
1642
+ const touch = this.getTouch(event.changedTouches);
1643
+ if (touch) {
1644
+ this._pointerCancel(event, touch);
1645
+ }
1646
+ };
1647
+ /**
1648
+ * pointer cancel
1649
+ * @param {Event} event
1650
+ * @param {Event or Touch} pointer
1651
+ * @private
1652
+ */
1653
+ pointerProto._pointerCancel = function (event, pointer) {
1654
+ this._pointerDone();
1655
+ this.pointerCancel(event, pointer);
1656
+ };
1657
+ // public
1658
+ pointerProto.pointerCancel = function (event, pointer) {
1659
+ this.emitEvent('pointerCancel', [event, pointer]);
1660
+ };
1661
+ // ----- ----- //
1662
+ // utility function for getting x/y coords from event
1663
+ Unipointer.getPointerPoint = function (pointer) {
1664
+ return {
1665
+ x: pointer.pageX,
1666
+ y: pointer.pageY,
1667
+ };
1668
+ };
1669
+ /*!
1670
+ * Unidragger v2.4.0
1671
+ * Draggable base class
1672
+ * MIT license
1673
+ */
1674
+ function Unidragger() { }
1675
+ // inherit Unipointer & EvEmitter
1676
+ const draggerProto = (Unidragger.prototype = Object.create(Unipointer.prototype));
1677
+ // ----- bind start ----- //
1678
+ draggerProto.bindHandles = function () {
1679
+ this._bindHandles(true);
1680
+ };
1681
+ draggerProto.unbindHandles = function () {
1682
+ this._bindHandles(false);
1683
+ };
1684
+ /**
1685
+ * Add or remove start event
1686
+ * @param {Boolean} isAdd
1687
+ */
1688
+ draggerProto._bindHandles = function (isAdd) {
1689
+ // munge isAdd, default to true
1690
+ isAdd = isAdd === undefined ? true : isAdd;
1691
+ // bind each handle
1692
+ const bindMethod = isAdd ? 'addEventListener' : 'removeEventListener';
1693
+ const touchAction = isAdd ? this._touchActionValue : '';
1694
+ for (let i = 0; i < this.handles.length; i++) {
1695
+ const handle = this.handles[i];
1696
+ this._bindStartEvent(handle, isAdd);
1697
+ handle[bindMethod]('click', this);
1698
+ // touch-action: none to override browser touch gestures. metafizzy/flickity#540
1699
+ if (window.PointerEvent) {
1700
+ handle.style.touchAction = touchAction;
1701
+ }
1702
+ }
1703
+ };
1704
+ // prototype so it can be overwriteable by Flickity
1705
+ draggerProto._touchActionValue = 'none';
1706
+ // ----- start event ----- //
1707
+ /**
1708
+ * pointer start
1709
+ * @param {Event} event
1710
+ * @param {Event or Touch} pointer
1711
+ */
1712
+ draggerProto.pointerDown = function (event, pointer) {
1713
+ const isOkay = this.okayPointerDown(event);
1714
+ if (!isOkay) {
1715
+ return;
1716
+ }
1717
+ // track start event position
1718
+ // Safari 9 overrides pageX and pageY. These values needs to be copied. flickity#842
1719
+ this.pointerDownPointer = {
1720
+ pageX: pointer.pageX,
1721
+ pageY: pointer.pageY,
1722
+ };
1723
+ event.preventDefault();
1724
+ this.pointerDownBlur();
1725
+ // bind move and end events
1726
+ this._bindPostStartEvents(event);
1727
+ this.emitEvent('pointerDown', [event, pointer]);
1728
+ };
1729
+ // nodes that have text fields
1730
+ const cursorNodes = {
1731
+ TEXTAREA: true,
1732
+ INPUT: true,
1733
+ SELECT: true,
1734
+ OPTION: true,
1735
+ };
1736
+ // input types that do not have text fields
1737
+ const clickTypes = {
1738
+ radio: true,
1739
+ checkbox: true,
1740
+ button: true,
1741
+ submit: true,
1742
+ image: true,
1743
+ file: true,
1744
+ };
1745
+ // dismiss inputs with text fields. flickity#403, flickity#404
1746
+ draggerProto.okayPointerDown = function (event) {
1747
+ const isCursorNode = cursorNodes[event.target.nodeName];
1748
+ const isClickType = clickTypes[event.target.type];
1749
+ const isOkay = !isCursorNode || isClickType;
1750
+ if (!isOkay) {
1751
+ this._pointerReset();
1752
+ }
1753
+ return isOkay;
1754
+ };
1755
+ // kludge to blur previously focused input
1756
+ draggerProto.pointerDownBlur = function () {
1757
+ const focused = document.activeElement;
1758
+ // do not blur body for IE10, metafizzy/flickity#117
1759
+ const canBlur = focused && focused.blur && focused != document.body;
1760
+ if (canBlur) {
1761
+ focused.blur();
1762
+ }
1763
+ };
1764
+ // ----- move event ----- //
1765
+ /**
1766
+ * drag move
1767
+ * @param {Event} event
1768
+ * @param {Event or Touch} pointer
1769
+ */
1770
+ draggerProto.pointerMove = function (event, pointer) {
1771
+ const moveVector = this._dragPointerMove(event, pointer);
1772
+ this.emitEvent('pointerMove', [event, pointer, moveVector]);
1773
+ this._dragMove(event, pointer, moveVector);
1774
+ };
1775
+ // base pointer move logic
1776
+ draggerProto._dragPointerMove = function (event, pointer) {
1777
+ const moveVector = {
1778
+ x: pointer.pageX - this.pointerDownPointer.pageX,
1779
+ y: pointer.pageY - this.pointerDownPointer.pageY,
1780
+ };
1781
+ // start drag if pointer has moved far enough to start drag
1782
+ if (!this.isDragging && this.hasDragStarted(moveVector)) {
1783
+ this._dragStart(event, pointer);
1784
+ }
1785
+ return moveVector;
1786
+ };
1787
+ // condition if pointer has moved far enough to start drag
1788
+ draggerProto.hasDragStarted = function (moveVector) {
1789
+ return Math.abs(moveVector.x) > 3 || Math.abs(moveVector.y) > 3;
1790
+ };
1791
+ // ----- end event ----- //
1792
+ /**
1793
+ * pointer up
1794
+ * @param {Event} event
1795
+ * @param {Event or Touch} pointer
1796
+ */
1797
+ draggerProto.pointerUp = function (event, pointer) {
1798
+ this.emitEvent('pointerUp', [event, pointer]);
1799
+ this._dragPointerUp(event, pointer);
1800
+ };
1801
+ draggerProto._dragPointerUp = function (event, pointer) {
1802
+ if (this.isDragging) {
1803
+ this._dragEnd(event, pointer);
1804
+ }
1805
+ else {
1806
+ // pointer didn't move enough for drag to start
1807
+ this._staticClick(event, pointer);
1808
+ }
1809
+ };
1810
+ // -------------------------- drag -------------------------- //
1811
+ // dragStart
1812
+ draggerProto._dragStart = function (event, pointer) {
1813
+ this.isDragging = true;
1814
+ // prevent clicks
1815
+ this.isPreventingClicks = true;
1816
+ this.dragStart(event, pointer);
1817
+ };
1818
+ draggerProto.dragStart = function (event, pointer) {
1819
+ this.emitEvent('dragStart', [event, pointer]);
1820
+ };
1821
+ // dragMove
1822
+ draggerProto._dragMove = function (event, pointer, moveVector) {
1823
+ // do not drag if not dragging yet
1824
+ if (!this.isDragging) {
1825
+ return;
1826
+ }
1827
+ this.dragMove(event, pointer, moveVector);
1828
+ };
1829
+ draggerProto.dragMove = function (event, pointer, moveVector) {
1830
+ event.preventDefault();
1831
+ this.emitEvent('dragMove', [event, pointer, moveVector]);
1832
+ };
1833
+ // dragEnd
1834
+ draggerProto._dragEnd = function (event, pointer) {
1835
+ // set flags
1836
+ this.isDragging = false;
1837
+ // re-enable clicking async
1838
+ setTimeout(function () {
1839
+ delete this.isPreventingClicks;
1840
+ }.bind(this));
1841
+ this.dragEnd(event, pointer);
1842
+ };
1843
+ draggerProto.dragEnd = function (event, pointer) {
1844
+ this.emitEvent('dragEnd', [event, pointer]);
1845
+ };
1846
+ // ----- onclick ----- //
1847
+ // handle all clicks and prevent clicks when dragging
1848
+ draggerProto.onclick = function (event) {
1849
+ if (this.isPreventingClicks) {
1850
+ event.preventDefault();
1851
+ }
1852
+ };
1853
+ // ----- staticClick ----- //
1854
+ // triggered after pointer down & up with no/tiny movement
1855
+ draggerProto._staticClick = function (event, pointer) {
1856
+ // ignore emulated mouse up clicks
1857
+ if (this.isIgnoringMouseUp && event.type == 'mouseup') {
1858
+ return;
1859
+ }
1860
+ this.staticClick(event, pointer);
1861
+ // set flag for emulated clicks 300ms after touchend
1862
+ if (event.type != 'mouseup') {
1863
+ this.isIgnoringMouseUp = true;
1864
+ // reset flag after 300ms
1865
+ setTimeout(function () {
1866
+ delete this.isIgnoringMouseUp;
1867
+ }.bind(this), 400);
1868
+ }
1869
+ };
1870
+ draggerProto.staticClick = function (event, pointer) {
1871
+ this.emitEvent('staticClick', [event, pointer]);
1872
+ };
1873
+ // ----- utils ----- //
1874
+ Unidragger.getPointerPoint = Unipointer.getPointerPoint;
1875
+
1876
+ var drag = () => {
1877
+ // ----- defaults ----- //
1878
+ utils.extend(Flickity.defaults, {
1879
+ draggable: '>1',
1880
+ dragThreshold: 3,
1881
+ });
1882
+ // ----- create ----- //
1883
+ Flickity.createMethods.push('_createDrag');
1884
+ // -------------------------- drag prototype -------------------------- //
1885
+ const proto = Flickity.prototype;
1886
+ utils.extend(proto, Unidragger.prototype);
1887
+ proto._touchActionValue = 'pan-y';
1888
+ // -------------------------- -------------------------- //
1889
+ const isTouch = 'createTouch' in document;
1890
+ let isTouchmoveScrollCanceled = false;
1891
+ proto._createDrag = function () {
1892
+ this.on('activate', this.onActivateDrag);
1893
+ this.on('uiChange', this._uiChangeDrag);
1894
+ this.on('deactivate', this.onDeactivateDrag);
1895
+ this.on('cellChange', this.updateDraggable);
1896
+ // TODO updateDraggable on resize? if groupCells & slides change
1897
+ // HACK - add seemingly innocuous handler to fix iOS 10 scroll behavior
1898
+ // #457, RubaXa/Sortable#973
1899
+ if (isTouch && !isTouchmoveScrollCanceled) {
1900
+ window.addEventListener('touchmove', function () { });
1901
+ isTouchmoveScrollCanceled = true;
1902
+ }
1903
+ };
1904
+ proto.onActivateDrag = function () {
1905
+ this.handles = [this.viewport];
1906
+ this.bindHandles();
1907
+ this.updateDraggable();
1908
+ };
1909
+ proto.onDeactivateDrag = function () {
1910
+ this.unbindHandles();
1911
+ this.element.classList.remove('is-draggable');
1912
+ };
1913
+ proto.updateDraggable = function () {
1914
+ // disable dragging if less than 2 slides. #278
1915
+ if (this.options.draggable == '>1') {
1916
+ this.isDraggable = this.slides.length > 1;
1917
+ }
1918
+ else {
1919
+ this.isDraggable = this.options.draggable;
1920
+ }
1921
+ if (this.isDraggable) {
1922
+ this.element.classList.add('is-draggable');
1923
+ }
1924
+ else {
1925
+ this.element.classList.remove('is-draggable');
1926
+ }
1927
+ };
1928
+ // backwards compatibility
1929
+ proto.bindDrag = function () {
1930
+ this.options.draggable = true;
1931
+ this.updateDraggable();
1932
+ };
1933
+ proto.unbindDrag = function () {
1934
+ this.options.draggable = false;
1935
+ this.updateDraggable();
1936
+ };
1937
+ proto._uiChangeDrag = function () {
1938
+ delete this.isFreeScrolling;
1939
+ };
1940
+ // -------------------------- pointer events -------------------------- //
1941
+ proto.pointerDown = function (event, pointer) {
1942
+ if (!this.isDraggable) {
1943
+ this._pointerDownDefault(event, pointer);
1944
+ return;
1945
+ }
1946
+ const isOkay = this.okayPointerDown(event);
1947
+ if (!isOkay) {
1948
+ return;
1949
+ }
1950
+ this._pointerDownPreventDefault(event);
1951
+ this.pointerDownFocus(event);
1952
+ // blur
1953
+ if (document.activeElement != this.element) {
1954
+ // do not blur if already focused
1955
+ this.pointerDownBlur();
1956
+ }
1957
+ // stop if it was moving
1958
+ this.dragX = this.x;
1959
+ this.viewport.classList.add('is-pointer-down');
1960
+ // track scrolling
1961
+ this.pointerDownScroll = getScrollPosition();
1962
+ window.addEventListener('scroll', this);
1963
+ this._pointerDownDefault(event, pointer);
1964
+ };
1965
+ // default pointerDown logic, used for staticClick
1966
+ proto._pointerDownDefault = function (event, pointer) {
1967
+ // track start event position
1968
+ // Safari 9 overrides pageX and pageY. These values needs to be copied. #779
1969
+ this.pointerDownPointer = {
1970
+ pageX: pointer.pageX,
1971
+ pageY: pointer.pageY,
1972
+ };
1973
+ // bind move and end events
1974
+ this._bindPostStartEvents(event);
1975
+ this.dispatchEvent('pointerDown', event, [pointer]);
1976
+ };
1977
+ const focusNodes = {
1978
+ INPUT: true,
1979
+ TEXTAREA: true,
1980
+ SELECT: true,
1981
+ };
1982
+ proto.pointerDownFocus = function (event) {
1983
+ const isFocusNode = focusNodes[event.target.nodeName];
1984
+ if (!isFocusNode) {
1985
+ this.focus();
1986
+ }
1987
+ };
1988
+ proto._pointerDownPreventDefault = function (event) {
1989
+ const isTouchStart = event.type == 'touchstart';
1990
+ const isTouchPointer = event.pointerType == 'touch';
1991
+ const isFocusNode = focusNodes[event.target.nodeName];
1992
+ if (!isTouchStart && !isTouchPointer && !isFocusNode) {
1993
+ event.preventDefault();
1994
+ }
1995
+ };
1996
+ // ----- move ----- //
1997
+ proto.hasDragStarted = function (moveVector) {
1998
+ return Math.abs(moveVector.x) > this.options.dragThreshold;
1999
+ };
2000
+ // ----- up ----- //
2001
+ proto.pointerUp = function (event, pointer) {
2002
+ delete this.isTouchScrolling;
2003
+ this.viewport.classList.remove('is-pointer-down');
2004
+ this.dispatchEvent('pointerUp', event, [pointer]);
2005
+ this._dragPointerUp(event, pointer);
2006
+ };
2007
+ proto.pointerDone = function () {
2008
+ window.removeEventListener('scroll', this);
2009
+ delete this.pointerDownScroll;
2010
+ };
2011
+ // -------------------------- dragging -------------------------- //
2012
+ proto.dragStart = function (event, pointer) {
2013
+ if (!this.isDraggable) {
2014
+ return;
2015
+ }
2016
+ this.dragStartPosition = this.x;
2017
+ this.startAnimation();
2018
+ window.removeEventListener('scroll', this);
2019
+ this.dispatchEvent('dragStart', event, [pointer]);
2020
+ };
2021
+ proto.pointerMove = function (event, pointer) {
2022
+ const moveVector = this._dragPointerMove(event, pointer);
2023
+ this.dispatchEvent('pointerMove', event, [pointer, moveVector]);
2024
+ this._dragMove(event, pointer, moveVector);
2025
+ };
2026
+ proto.dragMove = function (event, pointer, moveVector) {
2027
+ if (!this.isDraggable) {
2028
+ return;
2029
+ }
2030
+ event.preventDefault();
2031
+ this.previousDragX = this.dragX;
2032
+ // reverse if right-to-left
2033
+ const direction = this.options.rightToLeft ? -1 : 1;
2034
+ if (this.options.wrapAround) {
2035
+ // wrap around move. #589
2036
+ moveVector.x = moveVector.x % this.slideableWidth;
2037
+ }
2038
+ let dragX = this.dragStartPosition + moveVector.x * direction;
2039
+ if (!this.options.wrapAround && this.slides.length) {
2040
+ // slow drag
2041
+ const originBound = Math.max(-this.slides[0].target, this.dragStartPosition);
2042
+ dragX = dragX > originBound ? (dragX + originBound) * 0.5 : dragX;
2043
+ const endBound = Math.min(-this.getLastSlide().target, this.dragStartPosition);
2044
+ dragX = dragX < endBound ? (dragX + endBound) * 0.5 : dragX;
2045
+ }
2046
+ this.dragX = dragX;
2047
+ this.dragMoveTime = new Date();
2048
+ this.dispatchEvent('dragMove', event, [pointer, moveVector]);
2049
+ };
2050
+ proto.dragEnd = function (event, pointer) {
2051
+ if (!this.isDraggable) {
2052
+ return;
2053
+ }
2054
+ if (this.options.freeScroll) {
2055
+ this.isFreeScrolling = true;
2056
+ }
2057
+ // set selectedIndex based on where flick will end up
2058
+ let index = this.dragEndRestingSelect();
2059
+ if (this.options.freeScroll && !this.options.wrapAround) {
2060
+ // if free-scroll & not wrap around
2061
+ // do not free-scroll if going outside of bounding slides
2062
+ // so bounding slides can attract slider, and keep it in bounds
2063
+ const restingX = this.getRestingPosition();
2064
+ this.isFreeScrolling =
2065
+ -restingX > this.slides[0].target &&
2066
+ -restingX < this.getLastSlide().target;
2067
+ }
2068
+ else if (!this.options.freeScroll && index == this.selectedIndex) {
2069
+ // boost selection if selected index has not changed
2070
+ index += this.dragEndBoostSelect();
2071
+ }
2072
+ delete this.previousDragX;
2073
+ // apply selection
2074
+ // TODO refactor this, selecting here feels weird
2075
+ // HACK, set flag so dragging stays in correct direction
2076
+ this.isDragSelect = this.options.wrapAround;
2077
+ this.select(index);
2078
+ delete this.isDragSelect;
2079
+ this.dispatchEvent('dragEnd', event, [pointer]);
2080
+ };
2081
+ proto.dragEndRestingSelect = function () {
2082
+ const restingX = this.getRestingPosition();
2083
+ // how far away from selected slide
2084
+ const distance = Math.abs(this.getSlideDistance(-restingX, this.selectedIndex));
2085
+ // get closet resting going up and going down
2086
+ const positiveResting = this._getClosestResting(restingX, distance, 1);
2087
+ const negativeResting = this._getClosestResting(restingX, distance, -1);
2088
+ // use closer resting for wrap-around
2089
+ const index = positiveResting.distance < negativeResting.distance
2090
+ ? positiveResting.index
2091
+ : negativeResting.index;
2092
+ return index;
2093
+ };
2094
+ /**
2095
+ * given resting X and distance to selected cell
2096
+ * get the distance and index of the closest cell
2097
+ * @param {Number} restingX - estimated post-flick resting position
2098
+ * @param {Number} distance - distance to selected cell
2099
+ * @param {Integer} increment - +1 or -1, going up or down
2100
+ * @returns {Object} - { distance: {Number}, index: {Integer} }
2101
+ */
2102
+ proto._getClosestResting = function (restingX, distance, increment) {
2103
+ let index = this.selectedIndex;
2104
+ let minDistance = Infinity;
2105
+ const condition = this.options.contain && !this.options.wrapAround
2106
+ ? // if contain, keep going if distance is equal to minDistance
2107
+ function (d, md) {
2108
+ return d <= md;
2109
+ }
2110
+ : function (d, md) {
2111
+ return d < md;
2112
+ };
2113
+ while (condition(distance, minDistance)) {
2114
+ // measure distance to next cell
2115
+ index += increment;
2116
+ minDistance = distance;
2117
+ distance = this.getSlideDistance(-restingX, index);
2118
+ if (distance === null) {
2119
+ break;
2120
+ }
2121
+ distance = Math.abs(distance);
2122
+ }
2123
+ return {
2124
+ distance: minDistance,
2125
+ // selected was previous index
2126
+ index: index - increment,
2127
+ };
2128
+ };
2129
+ /**
2130
+ * measure distance between x and a slide target
2131
+ * @param {Number} x
2132
+ * @param {Integer} index - slide index
2133
+ * @returns null or distance number
2134
+ */
2135
+ proto.getSlideDistance = function (x, index) {
2136
+ const len = this.slides.length;
2137
+ // wrap around if at least 2 slides
2138
+ const isWrapAround = this.options.wrapAround && len > 1;
2139
+ const slideIndex = isWrapAround ? utils.modulo(index, len) : index;
2140
+ const slide = this.slides[slideIndex];
2141
+ if (!slide) {
2142
+ return null;
2143
+ }
2144
+ // add distance for wrap-around slides
2145
+ const wrap = isWrapAround
2146
+ ? this.slideableWidth * Math.floor(index / len)
2147
+ : 0;
2148
+ return x - (slide.target + wrap);
2149
+ };
2150
+ proto.dragEndBoostSelect = function () {
2151
+ // do not boost if no previousDragX or dragMoveTime
2152
+ if (this.previousDragX === undefined ||
2153
+ !this.dragMoveTime ||
2154
+ // or if drag was held for 100 ms
2155
+ new Date() - this.dragMoveTime > 100) {
2156
+ return 0;
2157
+ }
2158
+ const distance = this.getSlideDistance(-this.dragX, this.selectedIndex);
2159
+ const delta = this.previousDragX - this.dragX;
2160
+ if (distance > 0 && delta > 0) {
2161
+ // boost to next if moving towards the right, and positive velocity
2162
+ return 1;
2163
+ }
2164
+ else if (distance < 0 && delta < 0) {
2165
+ // boost to previous if moving towards the left, and negative velocity
2166
+ return -1;
2167
+ }
2168
+ return 0;
2169
+ };
2170
+ // ----- staticClick ----- //
2171
+ proto.staticClick = function (event, pointer) {
2172
+ // get clickedCell, if cell was clicked
2173
+ const clickedCell = this.getParentCell(event.target);
2174
+ const cellElem = clickedCell && clickedCell.element;
2175
+ const cellIndex = clickedCell && this.cells.indexOf(clickedCell);
2176
+ this.dispatchEvent('staticClick', event, [pointer, cellElem, cellIndex]);
2177
+ };
2178
+ // ----- scroll ----- //
2179
+ proto.onscroll = function () {
2180
+ const scroll = getScrollPosition();
2181
+ const scrollMoveX = this.pointerDownScroll.x - scroll.x;
2182
+ const scrollMoveY = this.pointerDownScroll.y - scroll.y;
2183
+ // cancel click/tap if scroll is too much
2184
+ if (Math.abs(scrollMoveX) > 3 || Math.abs(scrollMoveY) > 3) {
2185
+ this._pointerDone();
2186
+ }
2187
+ };
2188
+ // ----- utils ----- //
2189
+ function getScrollPosition() {
2190
+ return {
2191
+ x: window.scrollX,
2192
+ y: window.scrollY,
2193
+ };
2194
+ }
2195
+ };
2196
+
2197
+ var nowNext = () => {
2198
+ const svgURI = 'http://www.w3.org/2000/svg';
2199
+ // -------------------------- PrevNextButton -------------------------- //
2200
+ function PrevNextButton(direction, parent) {
2201
+ this.direction = direction;
2202
+ this.parent = parent;
2203
+ this.parentElement = this.parent.element.shadowRoot || this.parent.element;
2204
+ this._create();
2205
+ }
2206
+ PrevNextButton.prototype = Object.create(Unipointer.prototype);
2207
+ PrevNextButton.prototype._create = function () {
2208
+ // properties
2209
+ this.isEnabled = true;
2210
+ this.isPrevious = this.direction == -1;
2211
+ const leftDirection = this.parent.options.rightToLeft ? 1 : -1;
2212
+ this.isLeft = this.direction == leftDirection;
2213
+ const button = (this.element = document.createElement('button'));
2214
+ button.className = 'flickity-button flickity-prev-next-button';
2215
+ button.part.add('navigation-button');
2216
+ if (this.isPrevious) {
2217
+ button.classList.add('previous');
2218
+ button.part.add('navigation-button--previous');
2219
+ }
2220
+ else {
2221
+ button.classList.add('next');
2222
+ button.part.add('navigation-button--next');
2223
+ }
2224
+ // prevent button from submitting form http://stackoverflow.com/a/10836076/182183
2225
+ button.setAttribute('type', 'button');
2226
+ // init as disabled
2227
+ this.disable();
2228
+ button.setAttribute('aria-label', this.isPrevious ? 'Previous' : 'Next');
2229
+ const slot = document.createElement('slot');
2230
+ slot.name = this.isPrevious ? 'previous-icon' : 'next-icon';
2231
+ button.appendChild(slot);
2232
+ slot.addEventListener('slotchange', () => {
2233
+ slot.assignedElements({ flatten: true }).forEach((ele) => {
2234
+ ele.removeAttribute('hidden');
2235
+ });
2236
+ });
2237
+ // create arrow
2238
+ const svg = this.createSVG();
2239
+ slot.appendChild(svg);
2240
+ // events
2241
+ this.parent.on('select', this.update.bind(this));
2242
+ this.on('pointerDown', this.parent.childUIPointerDown.bind(this.parent));
2243
+ };
2244
+ PrevNextButton.prototype.activate = function () {
2245
+ this.bindStartEvent(this.element);
2246
+ this.element.addEventListener('click', this);
2247
+ // add to DOM
2248
+ this.parentElement.appendChild(this.element);
2249
+ };
2250
+ PrevNextButton.prototype.deactivate = function () {
2251
+ // remove from DOM
2252
+ this.parentElement.removeChild(this.element);
2253
+ // click events
2254
+ this.unbindStartEvent(this.element);
2255
+ this.element.removeEventListener('click', this);
2256
+ };
2257
+ PrevNextButton.prototype.createSVG = function () {
2258
+ const svg = document.createElementNS(svgURI, 'svg');
2259
+ svg.setAttribute('class', 'flickity-button-icon');
2260
+ svg.setAttribute('viewBox', '0 0 100 100');
2261
+ svg.part.add('navigation-icon');
2262
+ const path = document.createElementNS(svgURI, 'path');
2263
+ const pathMovements = getArrowMovements(this.parent.options.arrowShape);
2264
+ path.setAttribute('d', pathMovements);
2265
+ path.setAttribute('class', 'arrow');
2266
+ // rotate arrow
2267
+ if (!this.isLeft) {
2268
+ path.setAttribute('transform', 'translate(100, 100) rotate(180) ');
2269
+ }
2270
+ svg.appendChild(path);
2271
+ return svg;
2272
+ };
2273
+ // get SVG path movmement
2274
+ function getArrowMovements(shape) {
2275
+ // use shape as movement if string
2276
+ if (typeof shape == 'string') {
2277
+ return shape;
2278
+ }
2279
+ // create movement string
2280
+ return ('M ' +
2281
+ shape.x0 +
2282
+ ',50' +
2283
+ ' L ' +
2284
+ shape.x1 +
2285
+ ',' +
2286
+ (shape.y1 + 50) +
2287
+ ' L ' +
2288
+ shape.x2 +
2289
+ ',' +
2290
+ (shape.y2 + 50) +
2291
+ ' L ' +
2292
+ shape.x3 +
2293
+ ',50 ' +
2294
+ ' L ' +
2295
+ shape.x2 +
2296
+ ',' +
2297
+ (50 - shape.y2) +
2298
+ ' L ' +
2299
+ shape.x1 +
2300
+ ',' +
2301
+ (50 - shape.y1) +
2302
+ ' Z');
2303
+ }
2304
+ PrevNextButton.prototype.handleEvent = utils.handleEvent;
2305
+ PrevNextButton.prototype.onclick = function () {
2306
+ if (!this.isEnabled) {
2307
+ return;
2308
+ }
2309
+ this.parent.uiChange();
2310
+ const method = this.isPrevious ? 'previous' : 'next';
2311
+ this.parent[method]();
2312
+ };
2313
+ // ----- ----- //
2314
+ PrevNextButton.prototype.enable = function () {
2315
+ if (this.isEnabled) {
2316
+ return;
2317
+ }
2318
+ this.element.disabled = false;
2319
+ this.isEnabled = true;
2320
+ };
2321
+ PrevNextButton.prototype.disable = function () {
2322
+ if (!this.isEnabled) {
2323
+ return;
2324
+ }
2325
+ this.element.disabled = true;
2326
+ this.isEnabled = false;
2327
+ };
2328
+ PrevNextButton.prototype.update = function () {
2329
+ // index of first or last slide, if previous or next
2330
+ const slides = this.parent.slides;
2331
+ // enable is wrapAround and at least 2 slides
2332
+ if (this.parent.options.wrapAround && slides.length > 1) {
2333
+ this.enable();
2334
+ return;
2335
+ }
2336
+ const lastIndex = slides.length ? slides.length - 1 : 0;
2337
+ const boundIndex = this.isPrevious ? 0 : lastIndex;
2338
+ const method = this.parent.selectedIndex == boundIndex ? 'disable' : 'enable';
2339
+ this[method]();
2340
+ };
2341
+ PrevNextButton.prototype.destroy = function () {
2342
+ this.deactivate();
2343
+ this.allOff();
2344
+ };
2345
+ // -------------------------- Flickity prototype -------------------------- //
2346
+ utils.extend(Flickity.defaults, {
2347
+ prevNextButtons: true,
2348
+ arrowShape: {
2349
+ x0: 10,
2350
+ x1: 60,
2351
+ y1: 50,
2352
+ x2: 70,
2353
+ y2: 40,
2354
+ x3: 30,
2355
+ },
2356
+ });
2357
+ Flickity.createMethods.push('_createPrevNextButtons');
2358
+ const proto = Flickity.prototype;
2359
+ proto._createPrevNextButtons = function () {
2360
+ if (!this.options.prevNextButtons) {
2361
+ return;
2362
+ }
2363
+ this.prevButton = new PrevNextButton(-1, this);
2364
+ this.nextButton = new PrevNextButton(1, this);
2365
+ this.on('activate', this.activatePrevNextButtons);
2366
+ };
2367
+ proto.activatePrevNextButtons = function () {
2368
+ this.prevButton.activate();
2369
+ this.nextButton.activate();
2370
+ this.on('deactivate', this.deactivatePrevNextButtons);
2371
+ };
2372
+ proto.deactivatePrevNextButtons = function () {
2373
+ this.prevButton.deactivate();
2374
+ this.nextButton.deactivate();
2375
+ this.off('deactivate', this.deactivatePrevNextButtons);
2376
+ };
2377
+ // @ts-ignore
2378
+ Flickity.PrevNextButton = PrevNextButton;
2379
+ };
2380
+
2381
+ var player = () => {
2382
+ // -------------------------- Player -------------------------- //
2383
+ function Player(parent) {
2384
+ this.parent = parent;
2385
+ this.state = 'stopped';
2386
+ // visibility change event handler
2387
+ this.onVisibilityChange = this.visibilityChange.bind(this);
2388
+ this.onVisibilityPlay = this.visibilityPlay.bind(this);
2389
+ }
2390
+ Player.prototype = Object.create(EvEmitter.prototype);
2391
+ // start play
2392
+ Player.prototype.play = function () {
2393
+ if (this.state == 'playing') {
2394
+ return;
2395
+ }
2396
+ // do not play if page is hidden, start playing when page is visible
2397
+ const isPageHidden = document.hidden;
2398
+ if (isPageHidden) {
2399
+ document.addEventListener('visibilitychange', this.onVisibilityPlay);
2400
+ return;
2401
+ }
2402
+ this.state = 'playing';
2403
+ // listen to visibility change
2404
+ document.addEventListener('visibilitychange', this.onVisibilityChange);
2405
+ // start ticking
2406
+ this.tick();
2407
+ };
2408
+ Player.prototype.tick = function () {
2409
+ // do not tick if not playing
2410
+ if (this.state != 'playing') {
2411
+ return;
2412
+ }
2413
+ let time = this.parent.options.autoPlay;
2414
+ // default to 3 seconds
2415
+ time = typeof time == 'number' ? time : 3000;
2416
+ const _this = this;
2417
+ // HACK: reset ticks if stopped and started within interval
2418
+ this.clear();
2419
+ this.timeout = setTimeout(function () {
2420
+ _this.parent.next(true);
2421
+ _this.tick();
2422
+ }, time);
2423
+ };
2424
+ Player.prototype.stop = function () {
2425
+ this.state = 'stopped';
2426
+ this.clear();
2427
+ // remove visibility change event
2428
+ document.removeEventListener('visibilitychange', this.onVisibilityChange);
2429
+ };
2430
+ Player.prototype.clear = function () {
2431
+ clearTimeout(this.timeout);
2432
+ };
2433
+ Player.prototype.pause = function () {
2434
+ if (this.state == 'playing') {
2435
+ this.state = 'paused';
2436
+ this.clear();
2437
+ }
2438
+ };
2439
+ Player.prototype.unpause = function () {
2440
+ // re-start play if paused
2441
+ if (this.state == 'paused') {
2442
+ this.play();
2443
+ }
2444
+ };
2445
+ // pause if page visibility is hidden, unpause if visible
2446
+ Player.prototype.visibilityChange = function () {
2447
+ const isPageHidden = document.hidden;
2448
+ this[isPageHidden ? 'pause' : 'unpause']();
2449
+ };
2450
+ Player.prototype.visibilityPlay = function () {
2451
+ this.play();
2452
+ document.removeEventListener('visibilitychange', this.onVisibilityPlay);
2453
+ };
2454
+ // -------------------------- Flickity -------------------------- //
2455
+ utils.extend(Flickity.defaults, {
2456
+ pauseAutoPlayOnHover: true,
2457
+ });
2458
+ Flickity.createMethods.push('_createPlayer');
2459
+ const proto = Flickity.prototype;
2460
+ proto._createPlayer = function () {
2461
+ this.player = new Player(this);
2462
+ this.on('activate', this.activatePlayer);
2463
+ this.on('uiChange', this.stopPlayer);
2464
+ this.on('pointerDown', this.stopPlayer);
2465
+ this.on('deactivate', this.deactivatePlayer);
2466
+ };
2467
+ proto.activatePlayer = function () {
2468
+ if (!this.options.autoPlay) {
2469
+ return;
2470
+ }
2471
+ this.player.play();
2472
+ this.element.addEventListener('mouseenter', this);
2473
+ };
2474
+ // Player API, don't hate the ... thanks I know where the door is
2475
+ proto.playPlayer = function () {
2476
+ this.player.play();
2477
+ };
2478
+ proto.stopPlayer = function () {
2479
+ this.player.stop();
2480
+ };
2481
+ proto.pausePlayer = function () {
2482
+ this.player.pause();
2483
+ };
2484
+ proto.unpausePlayer = function () {
2485
+ this.player.unpause();
2486
+ };
2487
+ proto.deactivatePlayer = function () {
2488
+ this.player.stop();
2489
+ this.element.removeEventListener('mouseenter', this);
2490
+ };
2491
+ // ----- mouseenter/leave ----- //
2492
+ // pause auto-play on hover
2493
+ proto.onmouseenter = function () {
2494
+ if (!this.options.pauseAutoPlayOnHover) {
2495
+ return;
2496
+ }
2497
+ this.player.pause();
2498
+ this.element.addEventListener('mouseleave', this);
2499
+ };
2500
+ // resume auto-play on hover off
2501
+ proto.onmouseleave = function () {
2502
+ this.player.unpause();
2503
+ this.element.removeEventListener('mouseleave', this);
2504
+ };
2505
+ // @ts-ignore
2506
+ Flickity.Player = Player;
2507
+ };
2508
+
2509
+ const flickity = Flickity;
2510
+ drag();
2511
+ nowNext();
2512
+ player();
2513
+
2514
+ const slidesCss = ":host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host{--dot-color:var(--nano-color-neutral-400);--dot-color-active:var(--nano-color-primary-1000);--navbtns-icon-color:var(--dot-color-active);--navbtns-bg-color:var(--nano-color-base-0);--navbtns-icon-color-disabled:var(--dot-color-active);--navbtns-bg-color-disabled:var(--nano-color-base-0);--fsbtn-icon-color:var(--dot-color-active);--fsbtn-bg-color:var(--nano-color-base-0);display:block;-webkit-user-select:none;user-select:none;overflow:hidden;transition:opacity 0.2s;opacity:0;max-inline-size:100vw}:host([ready]){opacity:1}.slideshow{max-block-size:100%;min-block-size:inherit;block-size:inherit;position:relative}.slideshow.not-ready{inline-size:100%;block-size:300px;overflow:hidden}.flickity-container{opacity:0;transition:opacity 0.2s;display:flex;inline-size:fit-content;block-size:fit-content}.not-ready .flickity-container{inline-size:fit-content;block-size:fit-content}.flickity-container.slides-ready{min-block-size:inherit;max-block-size:inherit;block-size:inherit;inline-size:auto}[hidden]{display:none !important}.ui-extras{pointer-events:none;position:absolute;block-size:100%;inline-size:100%;inset-block-start:0;inset-inline-start:0}.ui-extras *{pointer-events:all}/*! Flickity v2.2.1\nhttps://flickity.metafizzy.co\n---------------------------------------------- */.flickity-enabled{position:relative;opacity:1}.flickity-enabled:focus{outline:none}.flickity-viewport{overflow:hidden;position:relative;min-block-size:100%;flex:1}.flickity-slider{position:absolute;inline-size:100%;block-size:100%}.flickity-enabled.is-draggable{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}.flickity-enabled.is-draggable .flickity-viewport{cursor:move;cursor:grab;cursor:grab}.flickity-enabled.is-draggable .flickity-viewport.is-pointer-down{cursor:grabbing}.flickity-button{position:absolute;background:var(--navbtns-bg-color);border:none;color:#333;opacity:0.75}.flickity-button:hover{opacity:1;cursor:pointer}.flickity-button:focus{outline:none;box-shadow:0 0 0 5px #19f}.flickity-button:active{opacity:0.6}.flickity-button:disabled{opacity:0.3;cursor:auto;pointer-events:none;background:var(--navbtns-bg-color-disabled)}.flickity-button-icon{fill:var(--navbtns-icon-color)}.flickity-button:disabled .flickity-button-icon{fill:var(--navbtns-icon-color-disabled)}.flickity-prev-next-button{inset-block-start:50%;inline-size:44px;block-size:44px;border-radius:50%;transform:translateY(-50%)}.flickity-prev-next-button.previous{inset-inline-start:10px}.flickity-prev-next-button.next{inset-inline-end:10px}.flickity-rtl .flickity-prev-next-button.previous{inset-inline:auto 10px}.flickity-rtl .flickity-prev-next-button.next{inset-inline:10px auto}.flickity-prev-next-button .flickity-button-icon{position:absolute;inset-inline-start:20%;inset-block-start:20%;inline-size:60%;block-size:60%}.flickity-page-dots{position:absolute;inline-size:100%;inset-block-end:10px;padding:0;margin:0;text-align:center;line-height:1;z-index:4;display:inline-flex}.flickity-rtl .flickity-page-dots{direction:rtl}.flickity-page-dots .dot{all:unset;text-indent:200%;white-space:nowrap;overflow:hidden;display:inline-block;display:inline-block;position:relative;inline-size:1.25rem;block-size:0.375rem;margin-block:0;cursor:pointer;background:var(--dot-color);border:calc(var(--nano-spacing-md) / 2) solid var(--nano-color-base-0)}.flickity-page-dots .dot:focus-visible{outline:var(--nano-focus-ring);outline-offset:var(--nano-focus-ring-offset);z-index:1}.flickity-page-dots .dot.is-selected{opacity:1;background:var(--dot-color-active)}.flickity-enabled.is-fullscreen{position:fixed;inset-inline-start:0;inset-block-start:0;inline-size:100%;block-size:100%;background:hsla(0, 0%, 0%, 0.9);padding-block-end:35px;z-index:100}.flickity-enabled.is-fullscreen .flickity-page-dots{inset-block-end:45px}html.is-flickity-fullscreen{overflow:hidden}.flickity-fullscreen-button{display:block;inset-inline-end:10px;inset-block-start:10px;inline-size:24px;block-size:24px;border-radius:4px;background:var(--fsbtn-bg-color);fill:var(--fsbtn-icon-color)}.flickity-rtl .flickity-fullscreen-button{inset-inline:10px auto}.flickity-fullscreen-button-exit{display:none}.flickity-enabled.is-fullscreen .flickity-fullscreen-button-exit{display:block}.flickity-enabled.is-fullscreen .flickity-fullscreen-button-view{display:none}.flickity-fullscreen-button .flickity-button-icon{position:absolute;inline-size:16px;block-size:16px;inset-inline-start:4px;inset-block-start:4px}.flickity-enabled.is-fade .flickity-slider>*{pointer-events:none;z-index:0}.flickity-enabled.is-fade .flickity-slider ::slotted(.is-selected){pointer-events:auto;z-index:1}";
2515
+
2516
+ const modulo = (num, div) => {
2517
+ return ((num % div) + div) % div;
2518
+ };
2519
+ const Slides = class {
2520
+ constructor(hostRef) {
2521
+ registerInstance(this, hostRef);
2522
+ this.nanoSlidesDidLoad = createEvent(this, "nanoSlidesDidLoad", 7);
2523
+ this.nanoSlidesReady = createEvent(this, "nanoSlidesReady", 7);
2524
+ this.nanoSlidesSelect = createEvent(this, "nanoSlidesSelect", 7);
2525
+ this.nanoSlidesChange = createEvent(this, "nanoSlidesChange", 7);
2526
+ this.nanoSlidesScroll = createEvent(this, "nanoSlidesScroll", 7);
2527
+ this.nanoSlidesTransitionEnd = createEvent(this, "nanoSlidesTransitionEnd", 7);
2528
+ this.nanoSlidesDragStart = createEvent(this, "nanoSlidesDragStart", 7);
2529
+ this.nanoSlidesDragMove = createEvent(this, "nanoSlidesDragMove", 7);
2530
+ this.nanoSlidesDragEnd = createEvent(this, "nanoSlidesDragEnd", 7);
2531
+ this.nanoSlidesTap = createEvent(this, "nanoSlidesTap", 7);
2532
+ this.nanoSlidesFullscreenChange = createEvent(this, "nanoSlidesFullscreenChange", 7);
2533
+ }
2534
+ flickityEl;
2535
+ flickityReady = false;
2536
+ mutationO;
2537
+ resizeO;
2538
+ readyflickity;
2539
+ flickity = new Promise((resolve) => {
2540
+ this.readyflickity = resolve;
2541
+ });
2542
+ syncflickity;
2543
+ childrenEles;
2544
+ hasFullScreenModule = false;
2545
+ hasLazyLoadModule = false;
2546
+ hasDotsModule = false;
2547
+ hasFadeModule = false;
2548
+ iCurrentSlide;
2549
+ slidesReady;
2550
+ didInit = false;
2551
+ get host() { return getElement(this); }
2552
+ /**
2553
+ * Options to pass to the flickity instance.
2554
+ * See https://flickity.metafizzy.co/options.html for valid options
2555
+ */
2556
+ options = {};
2557
+ async optionsChanged() {
2558
+ if (this.flickityReady) {
2559
+ const flickity = await this.getflickity();
2560
+ const newOpts = Object.assign(flickity.options, this.options);
2561
+ await this.loadFlickityModules(newOpts);
2562
+ await this.update();
2563
+ }
2564
+ }
2565
+ /** If `true`, show the next / prev buttons. */
2566
+ navbtns = false;
2567
+ async navbtnsChanged() {
2568
+ Array.from(this._getRoot().querySelectorAll('.flickity-prev-next-button')).forEach((btn) => {
2569
+ btn.hidden = !this.navbtns;
2570
+ });
2571
+ }
2572
+ /** If `true`, show the pagination. */
2573
+ pager = false;
2574
+ async pagerChanged() {
2575
+ const dots = this._getRoot().querySelector('.flickity-page-dots');
2576
+ if (dots)
2577
+ dots.hidden = !this.pager;
2578
+ }
2579
+ /** If `true`, show a fullscreen button. */
2580
+ fullscreenbtn = false;
2581
+ async fullscreenBtnChanged() {
2582
+ const btn = this._getRoot().querySelector('.flickity-fullscreen-button');
2583
+ if (btn)
2584
+ btn.hidden = !this.fullscreenbtn;
2585
+ }
2586
+ /** If `true`, make the slider fullscreen. */
2587
+ fullscreen = false;
2588
+ async fullscreenChanged(_, oldFs) {
2589
+ const flickity = await this.getflickity();
2590
+ if (this.fullscreen)
2591
+ flickity.viewFullscreen();
2592
+ else if (typeof oldFs !== 'undefined')
2593
+ flickity.exitFullscreen();
2594
+ }
2595
+ /** Animation presets or your own custom animation function; called every frame during scroll */
2596
+ animation = 'scroll';
2597
+ async animationChange(_, oldAnim) {
2598
+ const [flkty, slides] = await Promise.all([
2599
+ this.getflickity(),
2600
+ waitForSlides(this.host),
2601
+ ]);
2602
+ // clear old stuff
2603
+ slides.forEach((slide) => {
2604
+ slide.style['left'] = undefined;
2605
+ });
2606
+ if (oldAnim === 'parallax') {
2607
+ flkty.off('scroll', this.parallax);
2608
+ slides.forEach((_, i) => {
2609
+ if (this.childrenEles && this.childrenEles[i])
2610
+ this.childrenEles[i].style['transform'] = undefined;
2611
+ });
2612
+ this.update();
2613
+ }
2614
+ // was a custom animation
2615
+ if (typeof oldAnim === 'function') {
2616
+ flkty.off('scroll', oldAnim);
2617
+ }
2618
+ // is a custom animation
2619
+ if (typeof this.animation === 'function') {
2620
+ this.options = { fade: false, percentPosition: true };
2621
+ flkty.on('scroll', this.animation);
2622
+ return;
2623
+ }
2624
+ // setup new stuff
2625
+ switch (this.animation) {
2626
+ case 'fade':
2627
+ this.options = { fade: true, percentPosition: true };
2628
+ break;
2629
+ case 'parallax':
2630
+ this.options = { fade: false, percentPosition: true };
2631
+ flkty.on('scroll', this.parallax);
2632
+ break;
2633
+ default:
2634
+ this.options = { fade: false, percentPosition: true };
2635
+ break;
2636
+ }
2637
+ }
2638
+ /** Zero-based index of the selected cell. */
2639
+ currentSlide = 0;
2640
+ currentSlideChange() {
2641
+ if (this.currentSlide !== this.iCurrentSlide)
2642
+ this.slideTo(this.currentSlide);
2643
+ }
2644
+ internalSlideChange() {
2645
+ this.currentSlide = this.iCurrentSlide;
2646
+ }
2647
+ /** time duration, in ms, to automatically advance slides */
2648
+ autoplay = false;
2649
+ async autoPlayChange() {
2650
+ await this.stopAutoplay();
2651
+ if (this.autoplay) {
2652
+ if (typeof this.autoplay === 'string')
2653
+ this.autoplay = parseInt(this.autoplay);
2654
+ if (this.autoplay > 0)
2655
+ this.startAutoplay(this.autoplay);
2656
+ }
2657
+ }
2658
+ /** @internal */
2659
+ ready = false;
2660
+ /** Emitted after component initialisation. */
2661
+ nanoSlidesDidLoad;
2662
+ /** Emitted after flickity initialisation. */
2663
+ nanoSlidesReady;
2664
+ /** Emitted when a slide is selected, even on the same slide. */
2665
+ nanoSlidesSelect;
2666
+ /** Emitted when the selected slide is changed. */
2667
+ nanoSlidesChange;
2668
+ /** Emitted when the slider moves. */
2669
+ nanoSlidesScroll;
2670
+ /** Emitted when the slide transition has finished. */
2671
+ nanoSlidesTransitionEnd;
2672
+ /** Emitted when the slider starts actively being moved. */
2673
+ nanoSlidesDragStart;
2674
+ /** Emitted when the slider is being dragged. */
2675
+ nanoSlidesDragMove;
2676
+ /** Emitted when the slider has finished being dragged. */
2677
+ nanoSlidesDragEnd;
2678
+ /** Emitted when the user taps/clicks on the slide's container. */
2679
+ nanoSlidesTap;
2680
+ /** Emitted when the user taps/clicks on the slide's container. */
2681
+ nanoSlidesFullscreenChange;
2682
+ /**
2683
+ * Update the underlying flickity implementation. Call this if you've added or removed
2684
+ * child slides.
2685
+ */
2686
+ async update() {
2687
+ const [flickity] = await Promise.all([
2688
+ this.getflickity(),
2689
+ waitForSlides(this.host),
2690
+ ]);
2691
+ this.childrenEles = this.host.querySelectorAll(`${transformTag('nano-slide')} > *`);
2692
+ flickity.reloadCells();
2693
+ flickity.resize();
2694
+ flickity.reposition();
2695
+ }
2696
+ /**
2697
+ * Transition to the specified slide.
2698
+ *
2699
+ * @param index The index of the slide to transition to.
2700
+ * @param instant Immediately view the selected slide without animation.
2701
+ */
2702
+ async slideTo(index, instant) {
2703
+ const flickity = await this.getflickity();
2704
+ flickity.select(index, instant);
2705
+ }
2706
+ /**
2707
+ * Transition to the next slide.
2708
+ *
2709
+ * @param instant The transition duration (in ms).
2710
+ * @param wrap If true, the first slide will be selected if at the last slide.
2711
+ */
2712
+ async slideNext(instant, wrap) {
2713
+ const flickity = await this.getflickity();
2714
+ flickity.next(wrap, instant);
2715
+ }
2716
+ /**
2717
+ * Transition to the previous slide.
2718
+ *
2719
+ * @param instant The transition duration (in ms).
2720
+ * @param wrap If true, the last slide will be selected if at the first slide.
2721
+ */
2722
+ async slidePrev(instant, wrap) {
2723
+ const flickity = await this.getflickity();
2724
+ flickity.previous(instant, wrap);
2725
+ }
2726
+ /**
2727
+ * Get the index of the active slide.
2728
+ * @returns the index of the active slide
2729
+ */
2730
+ async getActiveIndex() {
2731
+ const flickity = await this.getflickity();
2732
+ return flickity.selectedIndex;
2733
+ }
2734
+ /**
2735
+ * Get the total number of slides.
2736
+ * @returns the total number of slides
2737
+ */
2738
+ async length() {
2739
+ const flickity = await this.getflickity();
2740
+ return flickity.slides.length;
2741
+ }
2742
+ /**
2743
+ * Get whether or not the current slide is the last slide.
2744
+ * @returns true if the current slide is the last slide, false otherwise
2745
+ */
2746
+ async isEnd() {
2747
+ const flickity = await this.getflickity();
2748
+ return flickity.selectedIndex === flickity.slides.length - 1;
2749
+ }
2750
+ /**
2751
+ * Get whether or not the current slide is the first slide.
2752
+ * @returns true if the current slide is the first slide, false otherwise
2753
+ */
2754
+ async isBeginning() {
2755
+ const flickity = await this.getflickity();
2756
+ return flickity.selectedIndex === 0;
2757
+ }
2758
+ /**
2759
+ * Start auto play.
2760
+ * @param time - optional time duration to show slides
2761
+ */
2762
+ async startAutoplay(time) {
2763
+ const flickity = await this.getflickity();
2764
+ if (time)
2765
+ this.options = { autoPlay: time };
2766
+ setTimeout(() => flickity.playPlayer());
2767
+ }
2768
+ /** Stop auto play. */
2769
+ async stopAutoplay() {
2770
+ const flickity = await this.getflickity();
2771
+ flickity.stopPlayer();
2772
+ }
2773
+ /**
2774
+ * Lock or unlock the ability to slide to the next slide.
2775
+ *
2776
+ * @param lock If `true`, disable swiping
2777
+ */
2778
+ async lockSwipes(lock) {
2779
+ const flickity = await this.getflickity();
2780
+ flickity.options.draggable = !lock;
2781
+ flickity.updateDraggable();
2782
+ }
2783
+ /**
2784
+ * Get the flickity instance.
2785
+ * Use this to access the full flickity API.
2786
+ * See https://flickity.metafizzy.co/ for all API options.
2787
+ * @returns the flickity instance
2788
+ */
2789
+ async getflickity() {
2790
+ return this.flickity;
2791
+ }
2792
+ /**
2793
+ * Hard destroy / create.
2794
+ * Certain flickity options, you will require the instance to be re-initialised
2795
+ */
2796
+ async reload() {
2797
+ this.destroyflickity();
2798
+ setTimeout(() => this.initflickity(), 20);
2799
+ }
2800
+ _getRoot() {
2801
+ return this.host.shadowRoot ? this.host.shadowRoot : this.host;
2802
+ }
2803
+ parallax = async () => {
2804
+ const flkty = await this.flickity;
2805
+ const cells = flkty.cells;
2806
+ cells.forEach((cell) => {
2807
+ const ele = cell.element.children[0];
2808
+ let flkX = flkty.x;
2809
+ if (flkty.options.wrapAround && flkty.cells.length > 1) {
2810
+ flkX = modulo(flkX, flkty.slideableWidth);
2811
+ flkX = flkX - flkty.slideableWidth;
2812
+ }
2813
+ let x = ((cell.target + flkX) * -1) / 3;
2814
+ if (cell.shift < 0) {
2815
+ x = ((cell.target - flkty.slideableWidth + flkX) * -1) / 3;
2816
+ }
2817
+ else if (cell.shift > 0) {
2818
+ x = ((cell.target + (flkX + flkty.slideableWidth)) * -1) / 3;
2819
+ }
2820
+ ele.style.transform = 'translate3d(' + x + 'px, 0, 0)';
2821
+ const animAmount = ((x * 3) / cell.size.width) * 100;
2822
+ cell.element.style.setProperty('--animation-amount', animAmount.toString());
2823
+ });
2824
+ };
2825
+ handleFullscreen = (isFullScreen) => {
2826
+ this.fullscreen = isFullScreen;
2827
+ this.nanoSlidesFullscreenChange.emit(isFullScreen);
2828
+ };
2829
+ handleSlideSelect = (slide) => {
2830
+ this.iCurrentSlide = slide;
2831
+ this.nanoSlidesSelect.emit(slide);
2832
+ };
2833
+ destroyflickity() {
2834
+ /**
2835
+ * We need to synchronously destroy
2836
+ * flickity otherwise it is possible
2837
+ * that it will be left in a
2838
+ * destroyed state if connectedCallback
2839
+ * is called multiple times
2840
+ */
2841
+ const flickity = this.syncflickity;
2842
+ if (flickity !== undefined) {
2843
+ flickity.destroy();
2844
+ this.flickity = new Promise((resolve) => {
2845
+ this.readyflickity = resolve;
2846
+ });
2847
+ this.flickityReady = false;
2848
+ this.syncflickity = undefined;
2849
+ this.ready = false;
2850
+ }
2851
+ this.didInit = false;
2852
+ }
2853
+ async loadFlickityModules(opts) {
2854
+ if (!this.hasFullScreenModule && opts.fullscreen) {
2855
+ await import('./fullscreen-T7b44-vN.js');
2856
+ this.hasFullScreenModule = true;
2857
+ }
2858
+ if (!this.hasLazyLoadModule && opts.lazyLoad) {
2859
+ await import('./lazyload-BdH0bSmg.js');
2860
+ this.hasLazyLoadModule = true;
2861
+ }
2862
+ if (!this.hasDotsModule && opts.pageDots) {
2863
+ await import('./page-dots-D2WI1eZ0.js');
2864
+ this.hasDotsModule = true;
2865
+ }
2866
+ if (!this.hasFadeModule && opts.fade) {
2867
+ await import('./fade-C3aqZinc.js');
2868
+ this.hasFadeModule = true;
2869
+ }
2870
+ }
2871
+ async initflickity() {
2872
+ const finalOptions = this.normalizeOptions();
2873
+ await this.loadFlickityModules(finalOptions);
2874
+ // init flickity core
2875
+ await waitForSlides(this.host);
2876
+ this.flickityEl =
2877
+ this.flickityEl || this._getRoot().querySelector('.flickity-container');
2878
+ if (!this.flickityEl)
2879
+ return;
2880
+ this.slidesReady = true;
2881
+ if (this.flickityEl.classList.contains('flickity-enabled')) {
2882
+ this.destroyflickity();
2883
+ }
2884
+ this.flickityEl.style.height =
2885
+ this.flickityEl.getBoundingClientRect().height + 'px';
2886
+ setTimeout(() => {
2887
+ this.flickityEl.style.height = '';
2888
+ const flick = new flickity(this.flickityEl, finalOptions);
2889
+ this.flickityReady = true;
2890
+ this.syncflickity = flick;
2891
+ this.animationChange();
2892
+ this.navbtnsChanged();
2893
+ this.pagerChanged();
2894
+ this.fullscreenChanged();
2895
+ this.fullscreenBtnChanged();
2896
+ this.readyflickity(flick);
2897
+ this.ready = true;
2898
+ if (!window['ResizeObserver'])
2899
+ return;
2900
+ if (this.resizeO) {
2901
+ this.resizeO.disconnect();
2902
+ this.resizeO = undefined;
2903
+ }
2904
+ const ro = (this.resizeO = new ResizeObserver(() => {
2905
+ readTask(() => {
2906
+ const vp = this.host.shadowRoot.querySelector('.flickity-viewport');
2907
+ writeTask(() => {
2908
+ // reset the height, otherwise it *only* gets bigger
2909
+ if (vp)
2910
+ vp.style.height = '';
2911
+ flick.resize();
2912
+ });
2913
+ });
2914
+ }));
2915
+ ro.observe(this.host);
2916
+ }, 100);
2917
+ }
2918
+ normalizeOptions() {
2919
+ // Base options, can be changed
2920
+ const flickityOptions = {
2921
+ cellSelector: transformTag('nano-slide'),
2922
+ contain: true,
2923
+ prevNextButtons: true,
2924
+ fullscreen: this.fullscreen,
2925
+ accessibility: true,
2926
+ imagesLoaded: true,
2927
+ pageDots: this.pager,
2928
+ };
2929
+ if (this.animation === 'fade') {
2930
+ flickityOptions.fade = true;
2931
+ }
2932
+ if (this.currentSlide > 0) {
2933
+ flickityOptions.initialIndex = this.currentSlide;
2934
+ }
2935
+ if (this.autoplay) {
2936
+ if (typeof this.autoplay === 'string')
2937
+ this.autoplay = parseInt(this.autoplay);
2938
+ if (this.autoplay > 0)
2939
+ flickityOptions.autoPlay = this.autoplay;
2940
+ }
2941
+ // Keep the event options separate, we dont want users
2942
+ // overwriting these
2943
+ const eventOptions = {
2944
+ ready: () => {
2945
+ setTimeout(() => {
2946
+ this.nanoSlidesReady.emit();
2947
+ }, 20);
2948
+ },
2949
+ select: this.handleSlideSelect,
2950
+ change: this.nanoSlidesChange.emit,
2951
+ scroll: this.nanoSlidesScroll.emit,
2952
+ settle: () => requestAnimationFrame(() => this.nanoSlidesTransitionEnd.emit()),
2953
+ dragStart: () => requestAnimationFrame(() => this.nanoSlidesDragStart.emit()),
2954
+ dragMove: () => requestAnimationFrame(() => this.nanoSlidesDragMove.emit()),
2955
+ dragEnd: () => requestAnimationFrame(() => this.nanoSlidesDragEnd.emit()),
2956
+ staticClick: this.nanoSlidesTap.emit,
2957
+ fullscreenChange: this.handleFullscreen,
2958
+ };
2959
+ const customEvents = !!this.options && !!this.options.on ? this.options.on : {};
2960
+ // merge "on" event listeners, while giving our event listeners priority
2961
+ const mergedEventOptions = { on: { ...customEvents, ...eventOptions } };
2962
+ // Merge the base, user options, and events together then pass to flickity
2963
+ // @ts-expect-error - merged options don't quite match the flickity options
2964
+ return { ...flickityOptions, ...mergedEventOptions, ...this.options };
2965
+ }
2966
+ componentDidLoad() {
2967
+ if (typeof window !== 'undefined' &&
2968
+ window.MutationObserver) {
2969
+ const mut = (this.mutationO = new MutationObserver((e) => {
2970
+ if (e[0].addedNodes[0] &&
2971
+ e[0].addedNodes[0].nodeName.toLowerCase() ===
2972
+ transformTag('nano-slide') &&
2973
+ this.flickityReady) {
2974
+ this.update();
2975
+ }
2976
+ }));
2977
+ mut.observe(this.host, {
2978
+ childList: true,
2979
+ subtree: true,
2980
+ });
2981
+ }
2982
+ }
2983
+ componentWillLoad() {
2984
+ this.nanoSlidesDidLoad.emit();
2985
+ if (!this.didInit) {
2986
+ this.didInit = true;
2987
+ this.initflickity();
2988
+ }
2989
+ }
2990
+ disconnectedCallback() {
2991
+ if (this.mutationO) {
2992
+ this.mutationO.disconnect();
2993
+ this.mutationO = undefined;
2994
+ }
2995
+ if (this.resizeO) {
2996
+ this.resizeO.disconnect();
2997
+ this.resizeO = undefined;
2998
+ }
2999
+ this.destroyflickity();
3000
+ }
3001
+ render() {
3002
+ return (h(Host, { key: '778b37c200236cc6940c12f4ed28355c83804434', class: "nano-slides" }, h("div", { key: '29bb9128e4c2e13f754b15deb335d100a4bbd8cc', class: {
3003
+ slideshow: true,
3004
+ ready: this.ready,
3005
+ 'not-ready': !this.ready,
3006
+ }, part: "base" }, h("div", { key: 'bc5e82987d73da6ba47bcc0d6d85694660e63539', ref: (div) => (this.flickityEl = div), class: {
3007
+ 'flickity-container': true,
3008
+ 'slides-ready': this.slidesReady,
3009
+ 'slides-not-ready': !this.slidesReady,
3010
+ }, part: "slide-container" }, h("slot", { key: 'a26b2ef0d1b133231dec665fd670bdfda1bca949' })), h("div", { key: 'e02f3971f707f6fedeae00d879be04d4b576119a', class: "ui-extras" }, h("slot", { key: '97cabadc46d2011e2ca41d8f5c7c26ef53e32b6a', name: "ui" })))));
3011
+ }
3012
+ static get watchers() { return {
3013
+ "options": ["optionsChanged"],
3014
+ "navbtns": ["navbtnsChanged"],
3015
+ "pager": ["pagerChanged"],
3016
+ "fullscreenbtn": ["fullscreenBtnChanged"],
3017
+ "fullscreen": ["fullscreenChanged"],
3018
+ "animation": ["animationChange"],
3019
+ "currentSlide": ["currentSlideChange"],
3020
+ "iCurrentSlide": ["internalSlideChange"],
3021
+ "autoplay": ["autoPlayChange"]
3022
+ }; }
3023
+ };
3024
+ const waitForSlides = (host) => {
3025
+ const allSlides = Array.from(host.querySelectorAll(transformTag('nano-slide')));
3026
+ let toLoadSlides = allSlides.filter((ele) => !ele.ready);
3027
+ if (!toLoadSlides.length)
3028
+ return Promise.resolve(allSlides);
3029
+ return new Promise((resolve) => {
3030
+ const slideResolver = (ev) => {
3031
+ toLoadSlides = toLoadSlides.filter((ele) => ele !== ev.target);
3032
+ if (!toLoadSlides.length) {
3033
+ resolve(allSlides);
3034
+ host.removeEventListener('nanoSlideReady', slideResolver);
3035
+ host.removeEventListener('nano-slide-ready', slideResolver);
3036
+ }
3037
+ };
3038
+ host.addEventListener('nanoSlideReady', slideResolver);
3039
+ // fallback for vue who can't handle camelcase event names
3040
+ host.addEventListener('nano-slide-ready', slideResolver);
3041
+ });
3042
+ };
3043
+ Slides.style = slidesCss;
3044
+
3045
+ export { Flickity as F, Slides as S, Unipointer as U, utils as u };