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