@nanoporetech-digital/components 1.15.6 → 2.1.0

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 (981) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/dist/cjs/active-element-2f9bf0aa.js +21 -0
  3. package/dist/cjs/active-element-2f9bf0aa.js.map +1 -0
  4. package/dist/cjs/{algoliasearch.umd-0ccd70ce.js → algoliasearch.umd-79e17a1a.js} +3 -3
  5. package/dist/cjs/{algoliasearch.umd-0ccd70ce.js.map → algoliasearch.umd-79e17a1a.js.map} +1 -1
  6. package/dist/cjs/{dom-5f3fae1a.js → dom-52f9b8b7.js} +25 -6
  7. package/dist/cjs/dom-52f9b8b7.js.map +1 -0
  8. package/dist/cjs/form-control-3bc82e3e.js +80 -0
  9. package/dist/cjs/form-control-3bc82e3e.js.map +1 -0
  10. package/dist/cjs/{index-117f36a4.js → index-53d02e05.js} +12 -27
  11. package/dist/cjs/index-53d02e05.js.map +1 -0
  12. package/dist/cjs/index-cb62df44.js +12 -12
  13. package/dist/cjs/index.cjs.js +3 -3
  14. package/dist/cjs/index.cjs.js.map +1 -1
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/cjs/{modal-01eed1bf.js → modal-f09e431f.js} +2 -2
  17. package/dist/cjs/{modal-01eed1bf.js.map → modal-f09e431f.js.map} +1 -1
  18. package/dist/cjs/nano-accordion.cjs.entry.js +2 -4
  19. package/dist/cjs/nano-accordion.cjs.entry.js.map +1 -1
  20. package/dist/cjs/nano-alert.cjs.entry.js +6 -6
  21. package/dist/cjs/nano-alert.cjs.entry.js.map +1 -1
  22. package/dist/cjs/nano-algolia-filter.cjs.entry.js +1 -1
  23. package/dist/cjs/nano-algolia-filter.cjs.entry.js.map +1 -1
  24. package/dist/cjs/nano-algolia-input.cjs.entry.js +1 -1
  25. package/dist/cjs/nano-algolia.cjs.entry.js +9 -5
  26. package/dist/cjs/nano-algolia.cjs.entry.js.map +1 -1
  27. package/dist/cjs/nano-aspect-ratio.cjs.entry.js +1 -1
  28. package/dist/cjs/nano-aspect-ratio.cjs.entry.js.map +1 -1
  29. package/dist/cjs/nano-checkbox-group.cjs.entry.js +4 -1
  30. package/dist/cjs/nano-checkbox-group.cjs.entry.js.map +1 -1
  31. package/dist/cjs/nano-checkbox.cjs.entry.js +1 -1
  32. package/dist/cjs/nano-checkbox.cjs.entry.js.map +1 -1
  33. package/dist/cjs/nano-components.cjs.js +1 -1
  34. package/dist/cjs/nano-datalist_3.cjs.entry.js +790 -0
  35. package/dist/cjs/nano-datalist_3.cjs.entry.js.map +1 -0
  36. package/dist/cjs/nano-date-input.cjs.entry.js +9 -5
  37. package/dist/cjs/nano-date-input.cjs.entry.js.map +1 -1
  38. package/dist/cjs/{nano-date-picker_2.cjs.entry.js → nano-date-picker.cjs.entry.js} +2 -274
  39. package/dist/cjs/nano-date-picker.cjs.entry.js.map +1 -0
  40. package/dist/cjs/nano-details.cjs.entry.js +2 -2
  41. package/dist/cjs/nano-details.cjs.entry.js.map +1 -1
  42. package/dist/cjs/nano-dialog.cjs.entry.js +5 -5
  43. package/dist/cjs/nano-dialog.cjs.entry.js.map +1 -1
  44. package/dist/cjs/nano-drawer.cjs.entry.js +5 -5
  45. package/dist/cjs/nano-drawer.cjs.entry.js.map +1 -1
  46. package/dist/cjs/nano-dropdown.cjs.entry.js +307 -0
  47. package/dist/cjs/nano-dropdown.cjs.entry.js.map +1 -0
  48. package/dist/cjs/nano-file-upload.cjs.entry.js +1 -1
  49. package/dist/cjs/nano-file-upload.cjs.entry.js.map +1 -1
  50. package/dist/cjs/nano-global-nav.cjs.entry.js +19 -24
  51. package/dist/cjs/nano-global-nav.cjs.entry.js.map +1 -1
  52. package/dist/cjs/nano-global-search-results.cjs.entry.js +200 -115
  53. package/dist/cjs/nano-global-search-results.cjs.entry.js.map +1 -1
  54. package/dist/cjs/nano-grid_3.cjs.entry.js +15 -7
  55. package/dist/cjs/nano-grid_3.cjs.entry.js.map +1 -1
  56. package/dist/cjs/nano-hero.cjs.entry.js +13 -5
  57. package/dist/cjs/nano-hero.cjs.entry.js.map +1 -1
  58. package/dist/cjs/nano-icon-button.cjs.entry.js +2 -2
  59. package/dist/cjs/nano-icon-button.cjs.entry.js.map +1 -1
  60. package/dist/cjs/nano-icon.cjs.entry.js +1 -1
  61. package/dist/cjs/nano-icon.cjs.entry.js.map +1 -1
  62. package/dist/cjs/nano-input.cjs.entry.js +80 -75
  63. package/dist/cjs/nano-input.cjs.entry.js.map +1 -1
  64. package/dist/cjs/nano-menu-drawer.cjs.entry.js +2 -2
  65. package/dist/cjs/nano-menu-drawer.cjs.entry.js.map +1 -1
  66. package/dist/cjs/nano-nav-item_2.cjs.entry.js +287 -533
  67. package/dist/cjs/nano-nav-item_2.cjs.entry.js.map +1 -1
  68. package/dist/cjs/nano-range.cjs.entry.js +2 -2
  69. package/dist/cjs/nano-range.cjs.entry.js.map +1 -1
  70. package/dist/cjs/nano-rating.cjs.entry.js +2 -2
  71. package/dist/cjs/nano-rating.cjs.entry.js.map +1 -1
  72. package/dist/cjs/nano-resize-observe_2.cjs.entry.js +1 -1
  73. package/dist/cjs/nano-resize-observe_2.cjs.entry.js.map +1 -1
  74. package/dist/cjs/nano-slide.cjs.entry.js +1 -1
  75. package/dist/cjs/nano-slide.cjs.entry.js.map +1 -1
  76. package/dist/cjs/nano-slides.cjs.entry.js +1 -1
  77. package/dist/cjs/nano-slides.cjs.entry.js.map +1 -1
  78. package/dist/cjs/nano-spinner.cjs.entry.js +1 -1
  79. package/dist/cjs/nano-spinner.cjs.entry.js.map +1 -1
  80. package/dist/cjs/nano-sticker.cjs.entry.js +3 -3
  81. package/dist/cjs/nano-sticker.cjs.entry.js.map +1 -1
  82. package/dist/cjs/nano-tab-content.cjs.entry.js +2 -2
  83. package/dist/cjs/nano-tab-content.cjs.entry.js.map +1 -1
  84. package/dist/cjs/nano-tab-group.cjs.entry.js +72 -36
  85. package/dist/cjs/nano-tab-group.cjs.entry.js.map +1 -1
  86. package/dist/cjs/nano-tab.cjs.entry.js +9 -2
  87. package/dist/cjs/nano-tab.cjs.entry.js.map +1 -1
  88. package/dist/cjs/nano-tooltip.cjs.entry.js +2 -2
  89. package/dist/cjs/nano-tooltip.cjs.entry.js.map +1 -1
  90. package/dist/cjs/{popover-d033efa2.js → popover-86f1775c.js} +10 -1
  91. package/dist/cjs/popover-86f1775c.js.map +1 -0
  92. package/dist/cjs/{scroll-d7753eed.js → scroll-6b9e6870.js} +2 -2
  93. package/dist/cjs/{scroll-d7753eed.js.map → scroll-6b9e6870.js.map} +1 -1
  94. package/dist/cjs/{tabbable-615c30e1.js → tabbable-de4c23d8.js} +8 -6
  95. package/dist/cjs/tabbable-de4c23d8.js.map +1 -0
  96. package/dist/collection/collection-manifest.json +3 -2
  97. package/dist/collection/components/accordion/accordion.css +3 -0
  98. package/dist/collection/components/accordion/accordion.js +2 -5
  99. package/dist/collection/components/accordion/accordion.js.map +1 -1
  100. package/dist/collection/components/alert/alert.css +5 -6
  101. package/dist/collection/components/alert/alert.helpers.js +2 -2
  102. package/dist/collection/components/alert/alert.helpers.js.map +1 -1
  103. package/dist/collection/components/alert/alert.js +1 -1
  104. package/dist/collection/components/algolia/algolia-filter.css +3 -0
  105. package/dist/collection/components/algolia/algolia-filter.js +2 -2
  106. package/dist/collection/components/algolia/algolia-input.js +5 -5
  107. package/dist/collection/components/algolia/algolia-results.js +1 -1
  108. package/dist/collection/components/algolia/algolia.css +3 -0
  109. package/dist/collection/components/algolia/algolia.js +6 -6
  110. package/dist/collection/components/aspect-ratio/aspect-ratio.css +3 -0
  111. package/dist/collection/components/checkbox/checkbox-group.css +3 -0
  112. package/dist/collection/components/checkbox/checkbox-group.js +5 -2
  113. package/dist/collection/components/checkbox/checkbox-group.js.map +1 -1
  114. package/dist/collection/components/checkbox/checkbox.css +3 -0
  115. package/dist/collection/components/checkbox/checkbox.js +3 -3
  116. package/dist/collection/components/datalist/datalist.css +55 -0
  117. package/dist/collection/components/datalist/datalist.js +796 -0
  118. package/dist/collection/components/datalist/datalist.js.map +1 -0
  119. package/dist/collection/components/date-input/date-input.css +3 -0
  120. package/dist/collection/components/date-input/date-input.js +18 -10
  121. package/dist/collection/components/date-input/date-input.js.map +1 -1
  122. package/dist/collection/components/date-picker/date-picker.css +3 -0
  123. package/dist/collection/components/date-picker/date-picker.js +5 -5
  124. package/dist/collection/components/details/details.css +3 -0
  125. package/dist/collection/components/details/details.js +2 -3
  126. package/dist/collection/components/details/details.js.map +1 -1
  127. package/dist/collection/components/dialog/dialog.css +4 -1
  128. package/dist/collection/components/dialog/dialog.helpers.js.map +1 -1
  129. package/dist/collection/components/dialog/dialog.js +1 -1
  130. package/dist/collection/components/drawer/drawer.css +3 -0
  131. package/dist/collection/components/dropdown/dropdown.css +19 -2
  132. package/dist/collection/components/dropdown/dropdown.js +56 -39
  133. package/dist/collection/components/dropdown/dropdown.js.map +1 -1
  134. package/dist/collection/components/file-upload/file-upload.css +5 -2
  135. package/dist/collection/components/file-upload/file-upload.js +4 -4
  136. package/dist/collection/components/form-control/form-control.js +73 -0
  137. package/dist/collection/components/form-control/form-control.js.map +1 -0
  138. package/dist/collection/components/global-nav/global-nav.css +43 -37
  139. package/dist/collection/components/global-nav/global-nav.js +21 -26
  140. package/dist/collection/components/global-nav/global-nav.js.map +1 -1
  141. package/dist/collection/components/global-search-results/global-search-results.css +299 -18
  142. package/dist/collection/components/global-search-results/global-search-results.js +200 -113
  143. package/dist/collection/components/global-search-results/global-search-results.js.map +1 -1
  144. package/dist/collection/components/grid/grid-item.css +3 -0
  145. package/dist/collection/components/grid/grid-item.js +1 -1
  146. package/dist/collection/components/grid/grid.css +3 -0
  147. package/dist/collection/components/grid/grid.js +37 -6
  148. package/dist/collection/components/grid/grid.js.map +1 -1
  149. package/dist/collection/components/hero/hero.css +13 -5
  150. package/dist/collection/components/hero/hero.js +32 -22
  151. package/dist/collection/components/hero/hero.js.map +1 -1
  152. package/dist/collection/components/icon/icon.css +3 -0
  153. package/dist/collection/components/icon/icon.js +1 -1
  154. package/dist/collection/components/icon-button/icon-button.css +6 -1
  155. package/dist/collection/components/icon-button/icon-button.js +1 -1
  156. package/dist/collection/components/icon-button/icon-button.js.map +1 -1
  157. package/dist/collection/components/img/img.css +3 -0
  158. package/dist/collection/components/input/input.css +242 -232
  159. package/dist/collection/components/input/input.js +111 -114
  160. package/dist/collection/components/input/input.js.map +1 -1
  161. package/dist/collection/components/menu/menu.css +27 -35
  162. package/dist/collection/components/menu/menu.js +222 -48
  163. package/dist/collection/components/menu/menu.js.map +1 -1
  164. package/dist/collection/components/menu-drawer/menu-drawer.css +3 -0
  165. package/dist/collection/components/nav-item/nav-item.css +3 -0
  166. package/dist/collection/components/nav-item/nav-item.js +5 -5
  167. package/dist/collection/components/nav-item/nav-item.js.map +1 -1
  168. package/dist/collection/components/option/option-interface.js +5 -0
  169. package/dist/collection/components/option/option-interface.js.map +1 -0
  170. package/dist/collection/components/option/option.css +187 -0
  171. package/dist/collection/components/option/option.js +242 -0
  172. package/dist/collection/components/option/option.js.map +1 -0
  173. package/dist/collection/components/range/range.css +3 -0
  174. package/dist/collection/components/range/range.js +4 -4
  175. package/dist/collection/components/rating/rating.css +3 -0
  176. package/dist/collection/components/resize-observe/resize-observe.js +1 -1
  177. package/dist/collection/components/select/select.css +458 -391
  178. package/dist/collection/components/select/select.js +367 -607
  179. package/dist/collection/components/select/select.js.map +1 -1
  180. package/dist/collection/components/skeleton/skeleton.css +3 -0
  181. package/dist/collection/components/slides/slide.css +3 -0
  182. package/dist/collection/components/slides/slides.css +3 -0
  183. package/dist/collection/components/slides/slides.js +7 -7
  184. package/dist/collection/components/spinner/spinner.css +3 -0
  185. package/dist/collection/components/sticky/sticker.css +3 -0
  186. package/dist/collection/components/tabs/tab-content.css +3 -0
  187. package/dist/collection/components/tabs/tab-content.js +3 -3
  188. package/dist/collection/components/tabs/tab-content.js.map +1 -1
  189. package/dist/collection/components/tabs/tab-group.css +16 -5
  190. package/dist/collection/components/tabs/tab-group.js +137 -41
  191. package/dist/collection/components/tabs/tab-group.js.map +1 -1
  192. package/dist/collection/components/tabs/tab.css +36 -6
  193. package/dist/collection/components/tabs/tab.js +45 -2
  194. package/dist/collection/components/tabs/tab.js.map +1 -1
  195. package/dist/collection/components/tooltip/tooltip.css +3 -0
  196. package/dist/collection/utils/active-element.js +16 -0
  197. package/dist/collection/utils/active-element.js.map +1 -0
  198. package/dist/collection/utils/dom.js +24 -5
  199. package/dist/collection/utils/dom.js.map +1 -1
  200. package/dist/collection/utils/index.js +13 -13
  201. package/dist/collection/utils/index.js.map +1 -1
  202. package/dist/collection/utils/popover.js +9 -0
  203. package/dist/collection/utils/popover.js.map +1 -1
  204. package/dist/collection/utils/tabbable.js +7 -5
  205. package/dist/collection/utils/tabbable.js.map +1 -1
  206. package/dist/collection/utils/template.js +5 -1
  207. package/dist/collection/utils/template.js.map +1 -1
  208. package/dist/collection/utils/testing/index.js +11 -1
  209. package/dist/collection/utils/testing/index.js.map +1 -1
  210. package/dist/components/ResizeObserver.es.js +933 -0
  211. package/dist/components/ResizeObserver.es.js.map +1 -0
  212. package/dist/components/_commonjsHelpers.js +41 -0
  213. package/dist/components/_commonjsHelpers.js.map +1 -0
  214. package/dist/components/active-element.js +19 -0
  215. package/dist/components/active-element.js.map +1 -0
  216. package/dist/components/algolia-data.js +49 -0
  217. package/dist/components/algolia-data.js.map +1 -0
  218. package/dist/components/algolia.js +906 -0
  219. package/dist/components/algolia.js.map +1 -0
  220. package/dist/components/algoliasearch.umd.js +13 -0
  221. package/dist/components/algoliasearch.umd.js.map +1 -0
  222. package/dist/components/component-store.js +2234 -0
  223. package/dist/components/component-store.js.map +1 -0
  224. package/dist/components/datalist.js +557 -0
  225. package/dist/components/datalist.js.map +1 -0
  226. package/dist/components/date-picker.js +624 -0
  227. package/dist/components/date-picker.js.map +1 -0
  228. package/dist/{esm/dom-a791b223.js → components/dom.js} +25 -6
  229. package/dist/components/dom.js.map +1 -0
  230. package/dist/components/dropdown.js +332 -0
  231. package/dist/components/dropdown.js.map +1 -0
  232. package/dist/components/focus-visible.js +66 -0
  233. package/dist/components/focus-visible.js.map +1 -0
  234. package/dist/components/form-control.js +77 -0
  235. package/dist/components/form-control.js.map +1 -0
  236. package/dist/components/grid-item.js +112 -0
  237. package/dist/components/grid-item.js.map +1 -0
  238. package/dist/components/grid.js +276 -0
  239. package/dist/components/grid.js.map +1 -0
  240. package/dist/components/icon-button.js +70 -0
  241. package/dist/components/icon-button.js.map +1 -0
  242. package/dist/components/icon.js +269 -0
  243. package/dist/components/icon.js.map +1 -0
  244. package/dist/components/img.js +184 -0
  245. package/dist/components/img.js.map +1 -0
  246. package/dist/components/index.d.ts +26 -0
  247. package/dist/components/index.js +251 -0
  248. package/dist/components/index.js.map +1 -0
  249. package/dist/{esm/index-f41ae118.js → components/index2.js} +13 -27
  250. package/dist/components/index2.js.map +1 -0
  251. package/dist/components/index3.js +1075 -0
  252. package/dist/components/index3.js.map +1 -0
  253. package/dist/components/index4.js +637 -0
  254. package/dist/components/index4.js.map +1 -0
  255. package/dist/components/input.js +474 -0
  256. package/dist/components/input.js.map +1 -0
  257. package/dist/components/intersection-observer.js +985 -0
  258. package/dist/components/intersection-observer.js.map +1 -0
  259. package/dist/components/local-my-account.js +353 -0
  260. package/dist/components/local-my-account.js.map +1 -0
  261. package/dist/components/menu.js +235 -0
  262. package/dist/components/menu.js.map +1 -0
  263. package/dist/components/modal.js +48 -0
  264. package/dist/components/modal.js.map +1 -0
  265. package/dist/components/nano-accordion.d.ts +11 -0
  266. package/dist/components/nano-accordion.js +63 -0
  267. package/dist/components/nano-accordion.js.map +1 -0
  268. package/dist/components/nano-alert.d.ts +11 -0
  269. package/dist/components/nano-alert.js +296 -0
  270. package/dist/components/nano-alert.js.map +1 -0
  271. package/dist/components/nano-algolia-filter.d.ts +11 -0
  272. package/dist/components/nano-algolia-filter.js +317 -0
  273. package/dist/components/nano-algolia-filter.js.map +1 -0
  274. package/dist/components/nano-algolia-input.d.ts +11 -0
  275. package/dist/components/nano-algolia-input.js +224 -0
  276. package/dist/components/nano-algolia-input.js.map +1 -0
  277. package/dist/components/nano-algolia-pagination.d.ts +11 -0
  278. package/dist/components/nano-algolia-pagination.js +104 -0
  279. package/dist/components/nano-algolia-pagination.js.map +1 -0
  280. package/dist/components/nano-algolia-results.d.ts +11 -0
  281. package/dist/components/nano-algolia-results.js +224 -0
  282. package/dist/components/nano-algolia-results.js.map +1 -0
  283. package/dist/components/nano-algolia.d.ts +11 -0
  284. package/dist/components/nano-algolia.js +11 -0
  285. package/dist/components/nano-algolia.js.map +1 -0
  286. package/dist/components/nano-aspect-ratio.d.ts +11 -0
  287. package/dist/components/nano-aspect-ratio.js +74 -0
  288. package/dist/components/nano-aspect-ratio.js.map +1 -0
  289. package/dist/components/nano-checkbox-group.d.ts +11 -0
  290. package/dist/components/nano-checkbox-group.js +235 -0
  291. package/dist/components/nano-checkbox-group.js.map +1 -0
  292. package/dist/components/nano-checkbox.d.ts +11 -0
  293. package/dist/components/nano-checkbox.js +231 -0
  294. package/dist/components/nano-checkbox.js.map +1 -0
  295. package/dist/components/nano-datalist.d.ts +11 -0
  296. package/dist/components/nano-datalist.js +11 -0
  297. package/dist/components/nano-datalist.js.map +1 -0
  298. package/dist/components/nano-date-input.d.ts +11 -0
  299. package/dist/components/nano-date-input.js +408 -0
  300. package/dist/components/nano-date-input.js.map +1 -0
  301. package/dist/components/nano-date-picker.d.ts +11 -0
  302. package/dist/components/nano-date-picker.js +11 -0
  303. package/dist/components/nano-date-picker.js.map +1 -0
  304. package/dist/components/nano-details.d.ts +11 -0
  305. package/dist/components/nano-details.js +162 -0
  306. package/dist/components/nano-details.js.map +1 -0
  307. package/dist/components/nano-dialog.d.ts +11 -0
  308. package/dist/components/nano-dialog.js +231 -0
  309. package/dist/components/nano-dialog.js.map +1 -0
  310. package/dist/components/nano-drawer.d.ts +11 -0
  311. package/dist/components/nano-drawer.js +217 -0
  312. package/dist/components/nano-drawer.js.map +1 -0
  313. package/dist/components/nano-dropdown.d.ts +11 -0
  314. package/dist/components/nano-dropdown.js +11 -0
  315. package/dist/components/nano-dropdown.js.map +1 -0
  316. package/dist/components/nano-file-upload.d.ts +11 -0
  317. package/dist/components/nano-file-upload.js +421 -0
  318. package/dist/components/nano-file-upload.js.map +1 -0
  319. package/dist/components/nano-global-nav.d.ts +11 -0
  320. package/dist/components/nano-global-nav.js +1221 -0
  321. package/dist/components/nano-global-nav.js.map +1 -0
  322. package/dist/components/nano-global-search-results.d.ts +11 -0
  323. package/dist/components/nano-global-search-results.js +608 -0
  324. package/dist/components/nano-global-search-results.js.map +1 -0
  325. package/dist/components/nano-grid-item.d.ts +11 -0
  326. package/dist/components/nano-grid-item.js +11 -0
  327. package/dist/components/nano-grid-item.js.map +1 -0
  328. package/dist/components/nano-grid.d.ts +11 -0
  329. package/dist/components/nano-grid.js +11 -0
  330. package/dist/components/nano-grid.js.map +1 -0
  331. package/dist/components/nano-hero.d.ts +11 -0
  332. package/dist/components/nano-hero.js +187 -0
  333. package/dist/components/nano-hero.js.map +1 -0
  334. package/dist/components/nano-icon-button.d.ts +11 -0
  335. package/dist/components/nano-icon-button.js +11 -0
  336. package/dist/components/nano-icon-button.js.map +1 -0
  337. package/dist/components/nano-icon.d.ts +11 -0
  338. package/dist/components/nano-icon.js +11 -0
  339. package/dist/components/nano-icon.js.map +1 -0
  340. package/dist/components/nano-img.d.ts +11 -0
  341. package/dist/components/nano-img.js +11 -0
  342. package/dist/components/nano-img.js.map +1 -0
  343. package/dist/components/nano-input.d.ts +11 -0
  344. package/dist/components/nano-input.js +11 -0
  345. package/dist/components/nano-input.js.map +1 -0
  346. package/dist/components/nano-menu-drawer.d.ts +11 -0
  347. package/dist/components/nano-menu-drawer.js +221 -0
  348. package/dist/components/nano-menu-drawer.js.map +1 -0
  349. package/dist/components/nano-menu.d.ts +11 -0
  350. package/dist/components/nano-menu.js +11 -0
  351. package/dist/components/nano-menu.js.map +1 -0
  352. package/dist/components/nano-nav-item.d.ts +11 -0
  353. package/dist/components/nano-nav-item.js +11 -0
  354. package/dist/components/nano-nav-item.js.map +1 -0
  355. package/dist/components/nano-option.d.ts +11 -0
  356. package/dist/components/nano-option.js +11 -0
  357. package/dist/components/nano-option.js.map +1 -0
  358. package/dist/components/nano-range.d.ts +11 -0
  359. package/dist/components/nano-range.js +430 -0
  360. package/dist/components/nano-range.js.map +1 -0
  361. package/dist/components/nano-rating.d.ts +11 -0
  362. package/dist/components/nano-rating.js +240 -0
  363. package/dist/components/nano-rating.js.map +1 -0
  364. package/dist/components/nano-resize-observe.d.ts +11 -0
  365. package/dist/components/nano-resize-observe.js +11 -0
  366. package/dist/components/nano-resize-observe.js.map +1 -0
  367. package/dist/components/nano-select.d.ts +11 -0
  368. package/dist/components/nano-select.js +11 -0
  369. package/dist/components/nano-select.js.map +1 -0
  370. package/dist/components/nano-skeleton.d.ts +11 -0
  371. package/dist/components/nano-skeleton.js +11 -0
  372. package/dist/components/nano-skeleton.js.map +1 -0
  373. package/dist/components/nano-slide.d.ts +11 -0
  374. package/dist/components/nano-slide.js +66 -0
  375. package/dist/components/nano-slide.js.map +1 -0
  376. package/dist/components/nano-slides.d.ts +11 -0
  377. package/dist/components/nano-slides.js +4335 -0
  378. package/dist/components/nano-slides.js.map +1 -0
  379. package/dist/components/nano-spinner.d.ts +11 -0
  380. package/dist/components/nano-spinner.js +11 -0
  381. package/dist/components/nano-spinner.js.map +1 -0
  382. package/dist/components/nano-sticker.d.ts +11 -0
  383. package/dist/components/nano-sticker.js +11 -0
  384. package/dist/components/nano-sticker.js.map +1 -0
  385. package/dist/components/nano-tab-content.d.ts +11 -0
  386. package/dist/components/nano-tab-content.js +49 -0
  387. package/dist/components/nano-tab-content.js.map +1 -0
  388. package/dist/components/nano-tab-group.d.ts +11 -0
  389. package/dist/components/nano-tab-group.js +460 -0
  390. package/dist/components/nano-tab-group.js.map +1 -0
  391. package/dist/components/nano-tab.d.ts +11 -0
  392. package/dist/components/nano-tab.js +86 -0
  393. package/dist/components/nano-tab.js.map +1 -0
  394. package/dist/components/nano-tooltip.d.ts +11 -0
  395. package/dist/components/nano-tooltip.js +11 -0
  396. package/dist/components/nano-tooltip.js.map +1 -0
  397. package/dist/components/nav-item.js +327 -0
  398. package/dist/components/nav-item.js.map +1 -0
  399. package/dist/components/option.js +120 -0
  400. package/dist/components/option.js.map +1 -0
  401. package/dist/{esm/popover-2c7b2326.js → components/popover.js} +10 -1
  402. package/dist/components/popover.js.map +1 -0
  403. package/dist/components/resize-observe.js +162 -0
  404. package/dist/components/resize-observe.js.map +1 -0
  405. package/dist/{esm/scroll-5cd0ab13.js → components/scroll.js} +2 -2
  406. package/dist/components/scroll.js.map +1 -0
  407. package/dist/components/select.js +670 -0
  408. package/dist/components/select.js.map +1 -0
  409. package/dist/components/skeleton.js +43 -0
  410. package/dist/components/skeleton.js.map +1 -0
  411. package/dist/components/slot.js +48 -0
  412. package/dist/components/slot.js.map +1 -0
  413. package/dist/components/spinner.js +49 -0
  414. package/dist/components/spinner.js.map +1 -0
  415. package/dist/components/sticker.js +665 -0
  416. package/dist/components/sticker.js.map +1 -0
  417. package/dist/{esm/tabbable-e21f860a.js → components/tabbable.js} +8 -6
  418. package/dist/components/tabbable.js.map +1 -0
  419. package/dist/components/theme.js +29 -0
  420. package/dist/components/theme.js.map +1 -0
  421. package/dist/components/throttle.js +55 -0
  422. package/dist/components/throttle.js.map +1 -0
  423. package/dist/components/tooltip.js +216 -0
  424. package/dist/components/tooltip.js.map +1 -0
  425. package/dist/custom-elements/index.d.ts +12 -6
  426. package/dist/custom-elements/index.js +1745 -1116
  427. package/dist/custom-elements/index.js.map +1 -1
  428. package/dist/esm/active-element-75b7c8a0.js +19 -0
  429. package/dist/esm/active-element-75b7c8a0.js.map +1 -0
  430. package/dist/esm/{algoliasearch.umd-8e5aff52.js → algoliasearch.umd-6d09b727.js} +3 -3
  431. package/dist/esm/{algoliasearch.umd-8e5aff52.js.map → algoliasearch.umd-6d09b727.js.map} +1 -1
  432. package/dist/esm/dom-faa69d29.js +75 -0
  433. package/dist/esm/dom-faa69d29.js.map +1 -0
  434. package/dist/esm/form-control-67eeb108.js +77 -0
  435. package/dist/esm/form-control-67eeb108.js.map +1 -0
  436. package/dist/esm/index-5f8d16e7.js +12 -12
  437. package/dist/esm/index-bf53664b.js +74 -0
  438. package/dist/esm/{index-f41ae118.js.map → index-bf53664b.js.map} +1 -1
  439. package/dist/esm/index.js +4 -4
  440. package/dist/esm/index.js.map +1 -1
  441. package/dist/esm/loader.js +1 -1
  442. package/dist/esm/{modal-eb0a9bb3.js → modal-215df46b.js} +2 -2
  443. package/dist/esm/{modal-eb0a9bb3.js.map → modal-215df46b.js.map} +1 -1
  444. package/dist/esm/nano-accordion.entry.js +2 -4
  445. package/dist/esm/nano-accordion.entry.js.map +1 -1
  446. package/dist/esm/nano-alert.entry.js +6 -6
  447. package/dist/esm/nano-alert.entry.js.map +1 -1
  448. package/dist/esm/nano-algolia-filter.entry.js +1 -1
  449. package/dist/esm/nano-algolia-filter.entry.js.map +1 -1
  450. package/dist/esm/nano-algolia-input.entry.js +1 -1
  451. package/dist/esm/nano-algolia.entry.js +9 -5
  452. package/dist/esm/nano-algolia.entry.js.map +1 -1
  453. package/dist/esm/nano-aspect-ratio.entry.js +1 -1
  454. package/dist/esm/nano-aspect-ratio.entry.js.map +1 -1
  455. package/dist/esm/nano-checkbox-group.entry.js +4 -1
  456. package/dist/esm/nano-checkbox-group.entry.js.map +1 -1
  457. package/dist/esm/nano-checkbox.entry.js +1 -1
  458. package/dist/esm/nano-checkbox.entry.js.map +1 -1
  459. package/dist/esm/nano-components.js +1 -1
  460. package/dist/esm/nano-datalist_3.entry.js +784 -0
  461. package/dist/esm/nano-datalist_3.entry.js.map +1 -0
  462. package/dist/esm/nano-date-input.entry.js +9 -5
  463. package/dist/esm/nano-date-input.entry.js.map +1 -1
  464. package/dist/esm/{nano-date-picker_2.entry.js → nano-date-picker.entry.js} +3 -274
  465. package/dist/esm/nano-date-picker.entry.js.map +1 -0
  466. package/dist/esm/nano-details.entry.js +2 -2
  467. package/dist/esm/nano-details.entry.js.map +1 -1
  468. package/dist/esm/nano-dialog.entry.js +5 -5
  469. package/dist/esm/nano-dialog.entry.js.map +1 -1
  470. package/dist/esm/nano-drawer.entry.js +5 -5
  471. package/dist/esm/nano-drawer.entry.js.map +1 -1
  472. package/dist/esm/nano-dropdown.entry.js +303 -0
  473. package/dist/esm/nano-dropdown.entry.js.map +1 -0
  474. package/dist/esm/nano-file-upload.entry.js +1 -1
  475. package/dist/esm/nano-file-upload.entry.js.map +1 -1
  476. package/dist/esm/nano-global-nav.entry.js +19 -24
  477. package/dist/esm/nano-global-nav.entry.js.map +1 -1
  478. package/dist/esm/nano-global-search-results.entry.js +200 -115
  479. package/dist/esm/nano-global-search-results.entry.js.map +1 -1
  480. package/dist/esm/nano-grid_3.entry.js +16 -8
  481. package/dist/esm/nano-grid_3.entry.js.map +1 -1
  482. package/dist/esm/nano-hero.entry.js +14 -6
  483. package/dist/esm/nano-hero.entry.js.map +1 -1
  484. package/dist/esm/nano-icon-button.entry.js +2 -2
  485. package/dist/esm/nano-icon-button.entry.js.map +1 -1
  486. package/dist/esm/nano-icon.entry.js +1 -1
  487. package/dist/esm/nano-icon.entry.js.map +1 -1
  488. package/dist/esm/nano-input.entry.js +80 -75
  489. package/dist/esm/nano-input.entry.js.map +1 -1
  490. package/dist/esm/nano-menu-drawer.entry.js +2 -2
  491. package/dist/esm/nano-menu-drawer.entry.js.map +1 -1
  492. package/dist/esm/nano-nav-item_2.entry.js +287 -533
  493. package/dist/esm/nano-nav-item_2.entry.js.map +1 -1
  494. package/dist/esm/nano-range.entry.js +2 -2
  495. package/dist/esm/nano-range.entry.js.map +1 -1
  496. package/dist/esm/nano-rating.entry.js +2 -2
  497. package/dist/esm/nano-rating.entry.js.map +1 -1
  498. package/dist/esm/nano-resize-observe_2.entry.js +1 -1
  499. package/dist/esm/nano-resize-observe_2.entry.js.map +1 -1
  500. package/dist/esm/nano-slide.entry.js +1 -1
  501. package/dist/esm/nano-slide.entry.js.map +1 -1
  502. package/dist/esm/nano-slides.entry.js +1 -1
  503. package/dist/esm/nano-slides.entry.js.map +1 -1
  504. package/dist/esm/nano-spinner.entry.js +1 -1
  505. package/dist/esm/nano-spinner.entry.js.map +1 -1
  506. package/dist/esm/nano-sticker.entry.js +3 -3
  507. package/dist/esm/nano-sticker.entry.js.map +1 -1
  508. package/dist/esm/nano-tab-content.entry.js +2 -2
  509. package/dist/esm/nano-tab-content.entry.js.map +1 -1
  510. package/dist/esm/nano-tab-group.entry.js +72 -36
  511. package/dist/esm/nano-tab-group.entry.js.map +1 -1
  512. package/dist/esm/nano-tab.entry.js +10 -3
  513. package/dist/esm/nano-tab.entry.js.map +1 -1
  514. package/dist/esm/nano-tooltip.entry.js +2 -2
  515. package/dist/esm/nano-tooltip.entry.js.map +1 -1
  516. package/dist/esm/popover-db86a392.js +1893 -0
  517. package/dist/esm/popover-db86a392.js.map +1 -0
  518. package/dist/esm/scroll-881feb46.js +76 -0
  519. package/dist/esm/{scroll-5cd0ab13.js.map → scroll-881feb46.js.map} +1 -1
  520. package/dist/esm/tabbable-614f515e.js +94 -0
  521. package/dist/esm/tabbable-614f515e.js.map +1 -0
  522. package/dist/esm-es5/active-element-75b7c8a0.js +5 -0
  523. package/dist/esm-es5/active-element-75b7c8a0.js.map +1 -0
  524. package/dist/esm-es5/{algoliasearch.umd-8e5aff52.js → algoliasearch.umd-6d09b727.js} +3 -3
  525. package/dist/esm-es5/{algoliasearch.umd-8e5aff52.js.map → algoliasearch.umd-6d09b727.js.map} +1 -1
  526. package/dist/esm-es5/dom-faa69d29.js +5 -0
  527. package/dist/esm-es5/dom-faa69d29.js.map +1 -0
  528. package/dist/esm-es5/form-control-67eeb108.js +5 -0
  529. package/dist/esm-es5/form-control-67eeb108.js.map +1 -0
  530. package/dist/esm-es5/index-5f8d16e7.js +1 -1
  531. package/dist/esm-es5/index-bf53664b.js +5 -0
  532. package/dist/esm-es5/index-bf53664b.js.map +1 -0
  533. package/dist/esm-es5/index.js +1 -1
  534. package/dist/esm-es5/index.js.map +1 -1
  535. package/dist/esm-es5/loader.js +1 -1
  536. package/dist/esm-es5/loader.js.map +1 -1
  537. package/dist/esm-es5/{modal-eb0a9bb3.js → modal-215df46b.js} +2 -2
  538. package/dist/esm-es5/{modal-eb0a9bb3.js.map → modal-215df46b.js.map} +0 -0
  539. package/dist/esm-es5/nano-accordion.entry.js +1 -1
  540. package/dist/esm-es5/nano-accordion.entry.js.map +1 -1
  541. package/dist/esm-es5/nano-alert.entry.js +1 -1
  542. package/dist/esm-es5/nano-alert.entry.js.map +1 -1
  543. package/dist/esm-es5/nano-algolia-filter.entry.js +1 -1
  544. package/dist/esm-es5/nano-algolia-filter.entry.js.map +1 -1
  545. package/dist/esm-es5/nano-algolia-input.entry.js +1 -1
  546. package/dist/esm-es5/nano-algolia.entry.js +1 -1
  547. package/dist/esm-es5/nano-algolia.entry.js.map +1 -1
  548. package/dist/esm-es5/nano-aspect-ratio.entry.js +1 -1
  549. package/dist/esm-es5/nano-aspect-ratio.entry.js.map +1 -1
  550. package/dist/esm-es5/nano-checkbox-group.entry.js +1 -1
  551. package/dist/esm-es5/nano-checkbox-group.entry.js.map +1 -1
  552. package/dist/esm-es5/nano-checkbox.entry.js +1 -1
  553. package/dist/esm-es5/nano-checkbox.entry.js.map +1 -1
  554. package/dist/esm-es5/nano-components.js +1 -1
  555. package/dist/esm-es5/nano-components.js.map +1 -1
  556. package/dist/esm-es5/nano-datalist_3.entry.js +5 -0
  557. package/dist/esm-es5/nano-datalist_3.entry.js.map +1 -0
  558. package/dist/esm-es5/nano-date-input.entry.js +1 -1
  559. package/dist/esm-es5/nano-date-input.entry.js.map +1 -1
  560. package/dist/esm-es5/nano-date-picker.entry.js +5 -0
  561. package/dist/esm-es5/nano-date-picker.entry.js.map +1 -0
  562. package/dist/esm-es5/nano-details.entry.js +1 -1
  563. package/dist/esm-es5/nano-details.entry.js.map +1 -1
  564. package/dist/esm-es5/nano-dialog.entry.js +1 -1
  565. package/dist/esm-es5/nano-dialog.entry.js.map +1 -1
  566. package/dist/esm-es5/nano-drawer.entry.js +1 -1
  567. package/dist/esm-es5/nano-drawer.entry.js.map +1 -1
  568. package/dist/esm-es5/nano-dropdown.entry.js +5 -0
  569. package/dist/esm-es5/nano-dropdown.entry.js.map +1 -0
  570. package/dist/esm-es5/nano-file-upload.entry.js +1 -1
  571. package/dist/esm-es5/nano-file-upload.entry.js.map +1 -1
  572. package/dist/esm-es5/nano-global-nav.entry.js +1 -1
  573. package/dist/esm-es5/nano-global-nav.entry.js.map +1 -1
  574. package/dist/esm-es5/nano-global-search-results.entry.js +2 -2
  575. package/dist/esm-es5/nano-global-search-results.entry.js.map +1 -1
  576. package/dist/esm-es5/nano-grid_3.entry.js +1 -1
  577. package/dist/esm-es5/nano-grid_3.entry.js.map +1 -1
  578. package/dist/esm-es5/nano-hero.entry.js +1 -1
  579. package/dist/esm-es5/nano-hero.entry.js.map +1 -1
  580. package/dist/esm-es5/nano-icon-button.entry.js +1 -1
  581. package/dist/esm-es5/nano-icon-button.entry.js.map +1 -1
  582. package/dist/esm-es5/nano-icon.entry.js +1 -1
  583. package/dist/esm-es5/nano-icon.entry.js.map +1 -1
  584. package/dist/esm-es5/nano-input.entry.js +2 -2
  585. package/dist/esm-es5/nano-input.entry.js.map +1 -1
  586. package/dist/esm-es5/nano-menu-drawer.entry.js +1 -1
  587. package/dist/esm-es5/nano-menu-drawer.entry.js.map +1 -1
  588. package/dist/esm-es5/nano-nav-item_2.entry.js +1 -1
  589. package/dist/esm-es5/nano-nav-item_2.entry.js.map +1 -1
  590. package/dist/esm-es5/nano-range.entry.js +1 -1
  591. package/dist/esm-es5/nano-range.entry.js.map +1 -1
  592. package/dist/esm-es5/nano-rating.entry.js +1 -1
  593. package/dist/esm-es5/nano-rating.entry.js.map +1 -1
  594. package/dist/esm-es5/nano-resize-observe_2.entry.js +2 -2
  595. package/dist/esm-es5/nano-resize-observe_2.entry.js.map +1 -1
  596. package/dist/esm-es5/nano-slide.entry.js +1 -1
  597. package/dist/esm-es5/nano-slide.entry.js.map +1 -1
  598. package/dist/esm-es5/nano-slides.entry.js +1 -1
  599. package/dist/esm-es5/nano-slides.entry.js.map +1 -1
  600. package/dist/esm-es5/nano-spinner.entry.js +1 -1
  601. package/dist/esm-es5/nano-spinner.entry.js.map +1 -1
  602. package/dist/esm-es5/nano-sticker.entry.js +1 -1
  603. package/dist/esm-es5/nano-sticker.entry.js.map +1 -1
  604. package/dist/esm-es5/nano-tab-content.entry.js +1 -1
  605. package/dist/esm-es5/nano-tab-content.entry.js.map +1 -1
  606. package/dist/esm-es5/nano-tab-group.entry.js +2 -2
  607. package/dist/esm-es5/nano-tab-group.entry.js.map +1 -1
  608. package/dist/esm-es5/nano-tab.entry.js +2 -2
  609. package/dist/esm-es5/nano-tab.entry.js.map +1 -1
  610. package/dist/esm-es5/nano-tooltip.entry.js +1 -1
  611. package/dist/esm-es5/nano-tooltip.entry.js.map +1 -1
  612. package/dist/esm-es5/{popover-2c7b2326.js → popover-db86a392.js} +2 -2
  613. package/dist/esm-es5/popover-db86a392.js.map +1 -0
  614. package/dist/esm-es5/{scroll-5cd0ab13.js → scroll-881feb46.js} +2 -2
  615. package/dist/esm-es5/{scroll-5cd0ab13.js.map → scroll-881feb46.js.map} +0 -0
  616. package/dist/esm-es5/tabbable-614f515e.js +5 -0
  617. package/dist/esm-es5/tabbable-614f515e.js.map +1 -0
  618. package/dist/nano-components/index.esm.js +1 -1
  619. package/dist/nano-components/index.esm.js.map +1 -1
  620. package/dist/nano-components/nano-components.css +1 -1
  621. package/dist/nano-components/nano-components.esm.js +1 -1
  622. package/dist/nano-components/nano-components.esm.js.map +1 -1
  623. package/dist/nano-components/{p-2f21a443.system.entry.js → p-033296c7.system.entry.js} +2 -2
  624. package/dist/nano-components/{p-2f21a443.system.entry.js.map → p-033296c7.system.entry.js.map} +1 -1
  625. package/dist/nano-components/p-040b6cda.entry.js +5 -0
  626. package/dist/nano-components/{p-61565b5a.entry.js.map → p-040b6cda.entry.js.map} +1 -1
  627. package/dist/nano-components/p-05c7bde1.system.entry.js +5 -0
  628. package/dist/nano-components/{p-30df44d9.system.entry.js.map → p-05c7bde1.system.entry.js.map} +1 -1
  629. package/dist/nano-components/p-07bdf44d.entry.js +5 -0
  630. package/dist/nano-components/{p-88bcf55b.entry.js.map → p-07bdf44d.entry.js.map} +1 -1
  631. package/dist/nano-components/p-09066701.system.entry.js +5 -0
  632. package/dist/nano-components/p-09066701.system.entry.js.map +1 -0
  633. package/dist/nano-components/p-090f22a9.system.entry.js +5 -0
  634. package/dist/nano-components/{p-854df906.system.entry.js.map → p-090f22a9.system.entry.js.map} +1 -1
  635. package/dist/nano-components/p-096682d9.system.js +1 -1
  636. package/dist/nano-components/p-096682d9.system.js.map +1 -1
  637. package/dist/nano-components/p-09d2d944.system.js +5 -0
  638. package/dist/nano-components/p-09d2d944.system.js.map +1 -0
  639. package/dist/nano-components/{p-bfc12324.system.entry.js → p-0bee6fe6.system.entry.js} +2 -2
  640. package/dist/nano-components/{p-bfc12324.system.entry.js.map → p-0bee6fe6.system.entry.js.map} +0 -0
  641. package/dist/nano-components/{p-21c2a9a5.system.entry.js → p-173bae15.system.entry.js} +2 -2
  642. package/dist/nano-components/{p-21c2a9a5.system.entry.js.map → p-173bae15.system.entry.js.map} +1 -1
  643. package/dist/nano-components/{p-731935b1.js → p-1805d59a.js} +2 -2
  644. package/dist/nano-components/{p-731935b1.js.map → p-1805d59a.js.map} +0 -0
  645. package/dist/nano-components/p-1a293bd0.entry.js +5 -0
  646. package/dist/nano-components/{p-8b7f8ef4.entry.js.map → p-1a293bd0.entry.js.map} +1 -1
  647. package/dist/nano-components/p-1c216ca4.system.js +5 -0
  648. package/dist/{esm-es5/index-f41ae118.js.map → nano-components/p-1c216ca4.system.js.map} +1 -1
  649. package/dist/nano-components/p-1d13dbdf.system.js +5 -0
  650. package/dist/nano-components/p-1d13dbdf.system.js.map +1 -0
  651. package/dist/nano-components/p-1e974cad.entry.js +5 -0
  652. package/dist/nano-components/{p-7e60c331.entry.js.map → p-1e974cad.entry.js.map} +1 -1
  653. package/dist/nano-components/p-20387cde.system.entry.js +5 -0
  654. package/dist/nano-components/{p-91778977.system.entry.js.map → p-20387cde.system.entry.js.map} +1 -1
  655. package/dist/nano-components/p-20db18f3.entry.js +5 -0
  656. package/dist/nano-components/{p-a9dd7cf9.entry.js.map → p-20db18f3.entry.js.map} +1 -1
  657. package/dist/nano-components/p-22884654.system.entry.js +5 -0
  658. package/dist/nano-components/{p-3d0fbd0e.system.entry.js.map → p-22884654.system.entry.js.map} +1 -1
  659. package/dist/nano-components/p-2559e9c1.entry.js +5 -0
  660. package/dist/nano-components/p-2559e9c1.entry.js.map +1 -0
  661. package/dist/nano-components/p-289aa03f.js +5 -0
  662. package/dist/nano-components/p-289aa03f.js.map +1 -0
  663. package/dist/nano-components/p-2e6c55e2.entry.js +5 -0
  664. package/dist/nano-components/{p-6f3d20fe.entry.js.map → p-2e6c55e2.entry.js.map} +1 -1
  665. package/dist/nano-components/{p-60c9b580.system.js → p-3258c568.system.js} +2 -2
  666. package/dist/nano-components/p-3258c568.system.js.map +1 -0
  667. package/dist/nano-components/p-3456db01.entry.js +5 -0
  668. package/dist/nano-components/p-3456db01.entry.js.map +1 -0
  669. package/dist/nano-components/p-346588cc.entry.js +5 -0
  670. package/dist/nano-components/p-346588cc.entry.js.map +1 -0
  671. package/dist/nano-components/p-394c3c19.entry.js +5 -0
  672. package/dist/nano-components/{p-217f71aa.entry.js.map → p-394c3c19.entry.js.map} +1 -1
  673. package/dist/nano-components/p-3a13948a.system.entry.js +5 -0
  674. package/dist/nano-components/p-3a13948a.system.entry.js.map +1 -0
  675. package/dist/nano-components/p-3a725f1f.system.entry.js +5 -0
  676. package/dist/nano-components/p-3a725f1f.system.entry.js.map +1 -0
  677. package/dist/nano-components/p-3aa1d07d.entry.js +5 -0
  678. package/dist/nano-components/{p-6a1c69d3.entry.js.map → p-3aa1d07d.entry.js.map} +1 -1
  679. package/dist/nano-components/p-3ad1d5aa.system.entry.js +5 -0
  680. package/dist/nano-components/p-3ad1d5aa.system.entry.js.map +1 -0
  681. package/dist/nano-components/p-3ef30ded.system.entry.js +5 -0
  682. package/dist/nano-components/{p-9bf4a6e0.system.entry.js.map → p-3ef30ded.system.entry.js.map} +1 -1
  683. package/dist/nano-components/p-3fc52f19.system.entry.js +5 -0
  684. package/dist/nano-components/p-3fc52f19.system.entry.js.map +1 -0
  685. package/dist/nano-components/p-4429caac.system.entry.js +5 -0
  686. package/dist/nano-components/p-4429caac.system.entry.js.map +1 -0
  687. package/dist/nano-components/p-4535e3bb.entry.js +5 -0
  688. package/dist/nano-components/{p-143bca0d.entry.js.map → p-4535e3bb.entry.js.map} +1 -1
  689. package/dist/nano-components/p-462ad4f1.entry.js +5 -0
  690. package/dist/nano-components/p-462ad4f1.entry.js.map +1 -0
  691. package/dist/nano-components/p-46d0bb7b.entry.js +5 -0
  692. package/dist/nano-components/p-46d0bb7b.entry.js.map +1 -0
  693. package/dist/nano-components/p-5066e563.system.entry.js +5 -0
  694. package/dist/nano-components/{p-006f2fd3.system.entry.js.map → p-5066e563.system.entry.js.map} +1 -1
  695. package/dist/nano-components/p-52ab579e.system.entry.js +5 -0
  696. package/dist/nano-components/p-52ab579e.system.entry.js.map +1 -0
  697. package/dist/nano-components/p-531d5275.system.entry.js +5 -0
  698. package/dist/nano-components/{p-b79dc23a.system.entry.js.map → p-531d5275.system.entry.js.map} +1 -1
  699. package/dist/nano-components/p-5653961d.system.entry.js +5 -0
  700. package/dist/nano-components/{p-18f49ebf.system.entry.js.map → p-5653961d.system.entry.js.map} +1 -1
  701. package/dist/nano-components/p-56ba0d63.entry.js +5 -0
  702. package/dist/nano-components/p-56ba0d63.entry.js.map +1 -0
  703. package/dist/nano-components/p-593de29b.system.entry.js +5 -0
  704. package/dist/nano-components/{p-76b13c27.system.entry.js.map → p-593de29b.system.entry.js.map} +1 -1
  705. package/dist/nano-components/p-5a476bba.system.entry.js +5 -0
  706. package/dist/nano-components/p-5a476bba.system.entry.js.map +1 -0
  707. package/dist/nano-components/{p-8a608e6d.entry.js → p-5e7c7d3d.entry.js} +2 -2
  708. package/dist/nano-components/{p-8a608e6d.entry.js.map → p-5e7c7d3d.entry.js.map} +1 -1
  709. package/dist/nano-components/p-672e5547.js +5 -0
  710. package/dist/nano-components/p-672e5547.js.map +1 -0
  711. package/dist/nano-components/{p-a16651a6.system.js → p-67cc0d9b.system.js} +3 -3
  712. package/dist/nano-components/{p-a16651a6.system.js.map → p-67cc0d9b.system.js.map} +1 -1
  713. package/dist/nano-components/p-69439aa1.system.entry.js +5 -0
  714. package/dist/nano-components/p-69439aa1.system.entry.js.map +1 -0
  715. package/dist/nano-components/p-6ade3290.entry.js +5 -0
  716. package/dist/nano-components/{p-1e03f9bf.entry.js.map → p-6ade3290.entry.js.map} +1 -1
  717. package/dist/nano-components/p-70dec19f.entry.js +5 -0
  718. package/dist/nano-components/{p-d0e9b177.entry.js.map → p-70dec19f.entry.js.map} +1 -1
  719. package/dist/nano-components/p-71c26ace.entry.js +5 -0
  720. package/dist/nano-components/p-71c26ace.entry.js.map +1 -0
  721. package/dist/nano-components/p-7232c046.system.entry.js +5 -0
  722. package/dist/nano-components/{p-92b3f99b.system.entry.js.map → p-7232c046.system.entry.js.map} +1 -1
  723. package/dist/nano-components/p-730f60ea.entry.js +5 -0
  724. package/dist/nano-components/{p-78cf9d39.entry.js.map → p-730f60ea.entry.js.map} +1 -1
  725. package/dist/nano-components/p-74a7fc4f.js +5 -0
  726. package/dist/nano-components/p-74a7fc4f.js.map +1 -0
  727. package/dist/nano-components/p-774e090b.system.entry.js +5 -0
  728. package/dist/nano-components/p-774e090b.system.entry.js.map +1 -0
  729. package/dist/nano-components/{p-d31761c8.system.js → p-7be6b7f3.system.js} +2 -2
  730. package/dist/nano-components/p-7be6b7f3.system.js.map +1 -0
  731. package/dist/nano-components/p-7d2e2685.entry.js +5 -0
  732. package/dist/nano-components/p-7d2e2685.entry.js.map +1 -0
  733. package/dist/nano-components/p-820d9e23.system.entry.js +5 -0
  734. package/dist/nano-components/p-820d9e23.system.entry.js.map +1 -0
  735. package/dist/nano-components/p-8278c5d2.system.entry.js +5 -0
  736. package/dist/nano-components/{p-badf69ee.system.entry.js.map → p-8278c5d2.system.entry.js.map} +1 -1
  737. package/dist/nano-components/p-82f4b071.entry.js +5 -0
  738. package/dist/nano-components/p-82f4b071.entry.js.map +1 -0
  739. package/dist/nano-components/p-88f17c86.system.entry.js +5 -0
  740. package/dist/nano-components/p-88f17c86.system.entry.js.map +1 -0
  741. package/dist/nano-components/p-8a8f893b.system.entry.js +5 -0
  742. package/dist/nano-components/{p-cc668975.system.entry.js.map → p-8a8f893b.system.entry.js.map} +1 -1
  743. package/dist/nano-components/p-93448bcd.system.entry.js +5 -0
  744. package/dist/nano-components/{p-02e82e14.system.entry.js.map → p-93448bcd.system.entry.js.map} +1 -1
  745. package/dist/nano-components/p-94593617.system.entry.js +5 -0
  746. package/dist/nano-components/{p-2442eda0.system.entry.js.map → p-94593617.system.entry.js.map} +1 -1
  747. package/dist/nano-components/{p-56113dd3.js → p-9a385481.js} +2 -2
  748. package/dist/nano-components/p-9a385481.js.map +1 -0
  749. package/dist/nano-components/{p-8134c14e.system.js → p-9de508a5.system.js} +2 -2
  750. package/dist/nano-components/p-9de508a5.system.js.map +1 -0
  751. package/dist/nano-components/p-a315ed2c.entry.js +5 -0
  752. package/dist/nano-components/{p-13801651.entry.js.map → p-a315ed2c.entry.js.map} +1 -1
  753. package/dist/nano-components/p-a4075d49.entry.js +5 -0
  754. package/dist/nano-components/p-a4075d49.entry.js.map +1 -0
  755. package/dist/nano-components/p-b19e0775.system.entry.js +5 -0
  756. package/dist/nano-components/p-b19e0775.system.entry.js.map +1 -0
  757. package/dist/nano-components/{p-18411914.system.js → p-b370e3ef.system.js} +2 -2
  758. package/dist/nano-components/{p-18411914.system.js.map → p-b370e3ef.system.js.map} +0 -0
  759. package/dist/nano-components/p-b59d2bd5.entry.js +5 -0
  760. package/dist/nano-components/p-b59d2bd5.entry.js.map +1 -0
  761. package/dist/nano-components/p-b619500f.js +5 -0
  762. package/dist/nano-components/p-b619500f.js.map +1 -0
  763. package/dist/nano-components/{p-23f65b34.entry.js → p-ba13bb56.entry.js} +2 -2
  764. package/dist/nano-components/{p-23f65b34.entry.js.map → p-ba13bb56.entry.js.map} +1 -1
  765. package/dist/nano-components/p-c0ddb4c3.entry.js +5 -0
  766. package/dist/nano-components/{p-78569d39.entry.js.map → p-c0ddb4c3.entry.js.map} +1 -1
  767. package/dist/nano-components/p-c954c040.entry.js +5 -0
  768. package/dist/nano-components/p-c954c040.entry.js.map +1 -0
  769. package/dist/nano-components/p-c9c1a345.system.entry.js +5 -0
  770. package/dist/nano-components/{p-38a3e791.system.entry.js.map → p-c9c1a345.system.entry.js.map} +1 -1
  771. package/dist/nano-components/{p-8c8963f6.js → p-cb79d1ec.js} +2 -2
  772. package/dist/nano-components/{p-8c8963f6.js.map → p-cb79d1ec.js.map} +0 -0
  773. package/dist/nano-components/p-d6569144.entry.js +5 -0
  774. package/dist/nano-components/{p-c7b7f7ab.entry.js.map → p-d6569144.entry.js.map} +1 -1
  775. package/dist/nano-components/{p-2d1a856e.system.js → p-d84ef175.system.js} +2 -2
  776. package/dist/nano-components/{p-2d1a856e.system.js.map → p-d84ef175.system.js.map} +0 -0
  777. package/dist/nano-components/p-d9c7909e.js +5 -0
  778. package/dist/nano-components/p-d9c7909e.js.map +1 -0
  779. package/dist/nano-components/p-e11bd40d.entry.js +5 -0
  780. package/dist/nano-components/{p-a21d90aa.entry.js.map → p-e11bd40d.entry.js.map} +1 -1
  781. package/dist/nano-components/p-e15be516.system.entry.js +5 -0
  782. package/dist/nano-components/p-e15be516.system.entry.js.map +1 -0
  783. package/dist/nano-components/p-e2ae11d2.entry.js +5 -0
  784. package/dist/nano-components/p-e2ae11d2.entry.js.map +1 -0
  785. package/dist/nano-components/{p-8757b4eb.js → p-e3583b00.js} +3 -3
  786. package/dist/nano-components/{p-8757b4eb.js.map → p-e3583b00.js.map} +1 -1
  787. package/dist/nano-components/p-e35eac75.entry.js +5 -0
  788. package/dist/nano-components/p-e35eac75.entry.js.map +1 -0
  789. package/dist/nano-components/p-e562bffd.entry.js +5 -0
  790. package/dist/nano-components/p-e562bffd.entry.js.map +1 -0
  791. package/dist/nano-components/p-e6f41b97.entry.js +5 -0
  792. package/dist/nano-components/p-e6f41b97.entry.js.map +1 -0
  793. package/dist/nano-components/p-e6f8f9f7.system.entry.js +5 -0
  794. package/dist/nano-components/p-e6f8f9f7.system.entry.js.map +1 -0
  795. package/dist/nano-components/p-ea5eb591.system.js +5 -0
  796. package/dist/nano-components/p-ea5eb591.system.js.map +1 -0
  797. package/dist/nano-components/p-ef4e0912.system.entry.js +5 -0
  798. package/dist/nano-components/{p-2aed806d.system.entry.js.map → p-ef4e0912.system.entry.js.map} +1 -1
  799. package/dist/nano-components/{p-981cc614.entry.js → p-f1bf1099.entry.js} +2 -2
  800. package/dist/nano-components/{p-981cc614.entry.js.map → p-f1bf1099.entry.js.map} +0 -0
  801. package/dist/nano-components/p-f2e7d2f9.system.entry.js +5 -0
  802. package/dist/nano-components/p-f2e7d2f9.system.entry.js.map +1 -0
  803. package/dist/nano-components/p-f3bf942d.entry.js +5 -0
  804. package/dist/nano-components/p-f3bf942d.entry.js.map +1 -0
  805. package/dist/nano-components/p-f53989c3.system.entry.js +5 -0
  806. package/dist/nano-components/{p-6621e4f1.system.entry.js.map → p-f53989c3.system.entry.js.map} +1 -1
  807. package/dist/themes/nanopore.css +1 -1
  808. package/dist/themes/nanopore.css.map +1 -1
  809. package/dist/types/components/accordion/accordion.d.ts +0 -1
  810. package/dist/types/components/checkbox/checkbox-group.d.ts +1 -0
  811. package/dist/types/components/datalist/datalist.d.ts +98 -0
  812. package/dist/types/components/date-input/date-input.d.ts +2 -0
  813. package/dist/types/components/dialog/dialog.helpers.d.ts +2 -2
  814. package/dist/types/components/dropdown/dropdown.d.ts +8 -4
  815. package/dist/types/components/form-control/form-control.d.ts +35 -0
  816. package/dist/types/components/global-search-results/global-search-results.d.ts +1 -0
  817. package/dist/types/components/grid/grid.d.ts +7 -1
  818. package/dist/types/components/hero/hero.d.ts +2 -0
  819. package/dist/types/components/input/input.d.ts +13 -9
  820. package/dist/types/components/menu/menu.d.ts +22 -8
  821. package/dist/types/components/option/option-interface.d.ts +7 -0
  822. package/dist/types/components/option/option.d.ts +45 -0
  823. package/dist/types/components/select/select.d.ts +43 -49
  824. package/dist/types/components/tabs/tab-group.d.ts +32 -6
  825. package/dist/types/components/tabs/tab.d.ts +6 -1
  826. package/dist/types/components.d.ts +241 -70
  827. package/dist/types/interface.d.ts +1 -0
  828. package/dist/types/utils/active-element.d.ts +1 -0
  829. package/dist/types/utils/dom.d.ts +9 -1
  830. package/dist/types/utils/index.d.ts +2 -1
  831. package/dist/types/utils/tabbable.d.ts +2 -2
  832. package/dist/types/utils/testing/index.d.ts +3 -2
  833. package/docs-json.json +1244 -262
  834. package/docs-vscode.json +102 -33
  835. package/package.json +5 -5
  836. package/dist/cjs/dom-5f3fae1a.js.map +0 -1
  837. package/dist/cjs/index-117f36a4.js.map +0 -1
  838. package/dist/cjs/nano-date-picker_2.cjs.entry.js.map +0 -1
  839. package/dist/cjs/nano-menu.cjs.entry.js +0 -156
  840. package/dist/cjs/nano-menu.cjs.entry.js.map +0 -1
  841. package/dist/cjs/nano-select-option.cjs.entry.js +0 -43
  842. package/dist/cjs/nano-select-option.cjs.entry.js.map +0 -1
  843. package/dist/cjs/popover-d033efa2.js.map +0 -1
  844. package/dist/cjs/tabbable-615c30e1.js.map +0 -1
  845. package/dist/collection/components/select/select-option.css +0 -15
  846. package/dist/collection/components/select/select-option.js +0 -127
  847. package/dist/collection/components/select/select-option.js.map +0 -1
  848. package/dist/esm/dom-a791b223.js.map +0 -1
  849. package/dist/esm/nano-date-picker_2.entry.js.map +0 -1
  850. package/dist/esm/nano-menu.entry.js +0 -152
  851. package/dist/esm/nano-menu.entry.js.map +0 -1
  852. package/dist/esm/nano-select-option.entry.js +0 -39
  853. package/dist/esm/nano-select-option.entry.js.map +0 -1
  854. package/dist/esm/popover-2c7b2326.js.map +0 -1
  855. package/dist/esm/tabbable-e21f860a.js.map +0 -1
  856. package/dist/esm-es5/dom-a791b223.js +0 -5
  857. package/dist/esm-es5/dom-a791b223.js.map +0 -1
  858. package/dist/esm-es5/index-f41ae118.js +0 -5
  859. package/dist/esm-es5/nano-date-picker_2.entry.js +0 -5
  860. package/dist/esm-es5/nano-date-picker_2.entry.js.map +0 -1
  861. package/dist/esm-es5/nano-menu.entry.js +0 -5
  862. package/dist/esm-es5/nano-menu.entry.js.map +0 -1
  863. package/dist/esm-es5/nano-select-option.entry.js +0 -5
  864. package/dist/esm-es5/nano-select-option.entry.js.map +0 -1
  865. package/dist/esm-es5/popover-2c7b2326.js.map +0 -1
  866. package/dist/esm-es5/tabbable-e21f860a.js +0 -5
  867. package/dist/esm-es5/tabbable-e21f860a.js.map +0 -1
  868. package/dist/nano-components/p-006f2fd3.system.entry.js +0 -5
  869. package/dist/nano-components/p-02e82e14.system.entry.js +0 -5
  870. package/dist/nano-components/p-05a8014a.entry.js +0 -5
  871. package/dist/nano-components/p-05a8014a.entry.js.map +0 -1
  872. package/dist/nano-components/p-13801651.entry.js +0 -5
  873. package/dist/nano-components/p-13fa75fc.entry.js +0 -5
  874. package/dist/nano-components/p-13fa75fc.entry.js.map +0 -1
  875. package/dist/nano-components/p-143bca0d.entry.js +0 -5
  876. package/dist/nano-components/p-18f49ebf.system.entry.js +0 -5
  877. package/dist/nano-components/p-19428228.system.entry.js +0 -5
  878. package/dist/nano-components/p-19428228.system.entry.js.map +0 -1
  879. package/dist/nano-components/p-1e03f9bf.entry.js +0 -5
  880. package/dist/nano-components/p-217f71aa.entry.js +0 -5
  881. package/dist/nano-components/p-2442eda0.system.entry.js +0 -5
  882. package/dist/nano-components/p-2946bd70.system.entry.js +0 -5
  883. package/dist/nano-components/p-2946bd70.system.entry.js.map +0 -1
  884. package/dist/nano-components/p-2aed806d.system.entry.js +0 -5
  885. package/dist/nano-components/p-30df44d9.system.entry.js +0 -5
  886. package/dist/nano-components/p-38a3e791.system.entry.js +0 -5
  887. package/dist/nano-components/p-3a49ceab.entry.js +0 -5
  888. package/dist/nano-components/p-3a49ceab.entry.js.map +0 -1
  889. package/dist/nano-components/p-3d0fbd0e.system.entry.js +0 -5
  890. package/dist/nano-components/p-3f00179c.js +0 -5
  891. package/dist/nano-components/p-3f00179c.js.map +0 -1
  892. package/dist/nano-components/p-48e6bea3.entry.js +0 -5
  893. package/dist/nano-components/p-48e6bea3.entry.js.map +0 -1
  894. package/dist/nano-components/p-4d62ec32.system.js +0 -5
  895. package/dist/nano-components/p-4d62ec32.system.js.map +0 -1
  896. package/dist/nano-components/p-4e451498.entry.js +0 -5
  897. package/dist/nano-components/p-4e451498.entry.js.map +0 -1
  898. package/dist/nano-components/p-51d9570d.entry.js +0 -5
  899. package/dist/nano-components/p-51d9570d.entry.js.map +0 -1
  900. package/dist/nano-components/p-51fa04a6.entry.js +0 -5
  901. package/dist/nano-components/p-51fa04a6.entry.js.map +0 -1
  902. package/dist/nano-components/p-55189485.system.entry.js +0 -5
  903. package/dist/nano-components/p-55189485.system.entry.js.map +0 -1
  904. package/dist/nano-components/p-56113dd3.js.map +0 -1
  905. package/dist/nano-components/p-5bbd6c81.entry.js +0 -5
  906. package/dist/nano-components/p-5bbd6c81.entry.js.map +0 -1
  907. package/dist/nano-components/p-5e9170ae.entry.js +0 -5
  908. package/dist/nano-components/p-5e9170ae.entry.js.map +0 -1
  909. package/dist/nano-components/p-60c9b580.system.js.map +0 -1
  910. package/dist/nano-components/p-61565b5a.entry.js +0 -5
  911. package/dist/nano-components/p-621750cc.js +0 -5
  912. package/dist/nano-components/p-621750cc.js.map +0 -1
  913. package/dist/nano-components/p-6621e4f1.system.entry.js +0 -5
  914. package/dist/nano-components/p-6a1c69d3.entry.js +0 -5
  915. package/dist/nano-components/p-6ab8d211.system.entry.js +0 -5
  916. package/dist/nano-components/p-6ab8d211.system.entry.js.map +0 -1
  917. package/dist/nano-components/p-6e9b3d60.system.entry.js +0 -5
  918. package/dist/nano-components/p-6e9b3d60.system.entry.js.map +0 -1
  919. package/dist/nano-components/p-6f3d20fe.entry.js +0 -5
  920. package/dist/nano-components/p-6feac35e.entry.js +0 -5
  921. package/dist/nano-components/p-6feac35e.entry.js.map +0 -1
  922. package/dist/nano-components/p-723c212f.system.entry.js +0 -5
  923. package/dist/nano-components/p-723c212f.system.entry.js.map +0 -1
  924. package/dist/nano-components/p-76b13c27.system.entry.js +0 -5
  925. package/dist/nano-components/p-78569d39.entry.js +0 -5
  926. package/dist/nano-components/p-78cf9d39.entry.js +0 -5
  927. package/dist/nano-components/p-7e60c331.entry.js +0 -5
  928. package/dist/nano-components/p-8134c14e.system.js.map +0 -1
  929. package/dist/nano-components/p-81b4ed2a.system.entry.js +0 -5
  930. package/dist/nano-components/p-81b4ed2a.system.entry.js.map +0 -1
  931. package/dist/nano-components/p-854df906.system.entry.js +0 -5
  932. package/dist/nano-components/p-88bcf55b.entry.js +0 -5
  933. package/dist/nano-components/p-8b7f8ef4.entry.js +0 -5
  934. package/dist/nano-components/p-8c3993ff.entry.js +0 -5
  935. package/dist/nano-components/p-8c3993ff.entry.js.map +0 -1
  936. package/dist/nano-components/p-91778977.system.entry.js +0 -5
  937. package/dist/nano-components/p-92b3f99b.system.entry.js +0 -5
  938. package/dist/nano-components/p-9bd73d1d.js +0 -5
  939. package/dist/nano-components/p-9bd73d1d.js.map +0 -1
  940. package/dist/nano-components/p-9bf4a6e0.system.entry.js +0 -5
  941. package/dist/nano-components/p-9df226fd.system.entry.js +0 -5
  942. package/dist/nano-components/p-9df226fd.system.entry.js.map +0 -1
  943. package/dist/nano-components/p-a0b55c38.system.entry.js +0 -5
  944. package/dist/nano-components/p-a0b55c38.system.entry.js.map +0 -1
  945. package/dist/nano-components/p-a21d90aa.entry.js +0 -5
  946. package/dist/nano-components/p-a9dd7cf9.entry.js +0 -5
  947. package/dist/nano-components/p-ad069ba4.entry.js +0 -5
  948. package/dist/nano-components/p-ad069ba4.entry.js.map +0 -1
  949. package/dist/nano-components/p-b246a7bb.entry.js +0 -5
  950. package/dist/nano-components/p-b246a7bb.entry.js.map +0 -1
  951. package/dist/nano-components/p-b45d4be9.entry.js +0 -5
  952. package/dist/nano-components/p-b45d4be9.entry.js.map +0 -1
  953. package/dist/nano-components/p-b79dc23a.system.entry.js +0 -5
  954. package/dist/nano-components/p-b86fc6b7.system.js +0 -5
  955. package/dist/nano-components/p-b86fc6b7.system.js.map +0 -1
  956. package/dist/nano-components/p-badf69ee.system.entry.js +0 -5
  957. package/dist/nano-components/p-bde0deae.system.entry.js +0 -5
  958. package/dist/nano-components/p-bde0deae.system.entry.js.map +0 -1
  959. package/dist/nano-components/p-be3df2e8.system.entry.js +0 -5
  960. package/dist/nano-components/p-be3df2e8.system.entry.js.map +0 -1
  961. package/dist/nano-components/p-c39c1e8d.entry.js +0 -5
  962. package/dist/nano-components/p-c39c1e8d.entry.js.map +0 -1
  963. package/dist/nano-components/p-c7b7f7ab.entry.js +0 -5
  964. package/dist/nano-components/p-c82ccbc8.entry.js +0 -5
  965. package/dist/nano-components/p-c82ccbc8.entry.js.map +0 -1
  966. package/dist/nano-components/p-cc668975.system.entry.js +0 -5
  967. package/dist/nano-components/p-cfd4c9de.system.entry.js +0 -5
  968. package/dist/nano-components/p-cfd4c9de.system.entry.js.map +0 -1
  969. package/dist/nano-components/p-d0e9b177.entry.js +0 -5
  970. package/dist/nano-components/p-d31761c8.system.js.map +0 -1
  971. package/dist/nano-components/p-d47d297b.system.entry.js +0 -5
  972. package/dist/nano-components/p-d47d297b.system.entry.js.map +0 -1
  973. package/dist/nano-components/p-e48a53f5.system.entry.js +0 -5
  974. package/dist/nano-components/p-e48a53f5.system.entry.js.map +0 -1
  975. package/dist/nano-components/p-e5f01860.entry.js +0 -5
  976. package/dist/nano-components/p-e5f01860.entry.js.map +0 -1
  977. package/dist/nano-components/p-f2b2cd38.system.entry.js +0 -5
  978. package/dist/nano-components/p-f2b2cd38.system.entry.js.map +0 -1
  979. package/dist/nano-components/p-fcb5ffaf.system.entry.js +0 -5
  980. package/dist/nano-components/p-fcb5ffaf.system.entry.js.map +0 -1
  981. package/dist/types/components/select/select-option.d.ts +0 -23
@@ -0,0 +1,985 @@
1
+ /*!
2
+ * Web Components for Nanopore digital Web Apps
3
+ */
4
+ /**
5
+ * Copyright 2016 Google Inc. All Rights Reserved.
6
+ *
7
+ * Licensed under the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE.
8
+ *
9
+ * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
10
+ *
11
+ */
12
+ (function() {
13
+
14
+ // Exit early if we're not running in a browser.
15
+ if (typeof window !== 'object') {
16
+ return;
17
+ }
18
+
19
+ // Exit early if all IntersectionObserver and IntersectionObserverEntry
20
+ // features are natively supported.
21
+ if ('IntersectionObserver' in window &&
22
+ 'IntersectionObserverEntry' in window &&
23
+ 'intersectionRatio' in window.IntersectionObserverEntry.prototype) {
24
+
25
+ // Minimal polyfill for Edge 15's lack of `isIntersecting`
26
+ // See: https://github.com/w3c/IntersectionObserver/issues/211
27
+ if (!('isIntersecting' in window.IntersectionObserverEntry.prototype)) {
28
+ Object.defineProperty(window.IntersectionObserverEntry.prototype,
29
+ 'isIntersecting', {
30
+ get: function () {
31
+ return this.intersectionRatio > 0;
32
+ }
33
+ });
34
+ }
35
+ return;
36
+ }
37
+
38
+
39
+ /**
40
+ * A local reference to the document.
41
+ */
42
+ var document = window.document;
43
+
44
+
45
+ /**
46
+ * An IntersectionObserver registry. This registry exists to hold a strong
47
+ * reference to IntersectionObserver instances currently observing a target
48
+ * element. Without this registry, instances without another reference may be
49
+ * garbage collected.
50
+ */
51
+ var registry = [];
52
+
53
+ /**
54
+ * The signal updater for cross-origin intersection. When not null, it means
55
+ * that the polyfill is configured to work in a cross-origin mode.
56
+ * @type {function(DOMRect|ClientRect, DOMRect|ClientRect)}
57
+ */
58
+ var crossOriginUpdater = null;
59
+
60
+ /**
61
+ * The current cross-origin intersection. Only used in the cross-origin mode.
62
+ * @type {DOMRect|ClientRect}
63
+ */
64
+ var crossOriginRect = null;
65
+
66
+
67
+ /**
68
+ * Creates the global IntersectionObserverEntry constructor.
69
+ * https://w3c.github.io/IntersectionObserver/#intersection-observer-entry
70
+ * @param {Object} entry A dictionary of instance properties.
71
+ * @constructor
72
+ */
73
+ function IntersectionObserverEntry(entry) {
74
+ this.time = entry.time;
75
+ this.target = entry.target;
76
+ this.rootBounds = ensureDOMRect(entry.rootBounds);
77
+ this.boundingClientRect = ensureDOMRect(entry.boundingClientRect);
78
+ this.intersectionRect = ensureDOMRect(entry.intersectionRect || getEmptyRect());
79
+ this.isIntersecting = !!entry.intersectionRect;
80
+
81
+ // Calculates the intersection ratio.
82
+ var targetRect = this.boundingClientRect;
83
+ var targetArea = targetRect.width * targetRect.height;
84
+ var intersectionRect = this.intersectionRect;
85
+ var intersectionArea = intersectionRect.width * intersectionRect.height;
86
+
87
+ // Sets intersection ratio.
88
+ if (targetArea) {
89
+ // Round the intersection ratio to avoid floating point math issues:
90
+ // https://github.com/w3c/IntersectionObserver/issues/324
91
+ this.intersectionRatio = Number((intersectionArea / targetArea).toFixed(4));
92
+ } else {
93
+ // If area is zero and is intersecting, sets to 1, otherwise to 0
94
+ this.intersectionRatio = this.isIntersecting ? 1 : 0;
95
+ }
96
+ }
97
+
98
+
99
+ /**
100
+ * Creates the global IntersectionObserver constructor.
101
+ * https://w3c.github.io/IntersectionObserver/#intersection-observer-interface
102
+ * @param {Function} callback The function to be invoked after intersection
103
+ * changes have queued. The function is not invoked if the queue has
104
+ * been emptied by calling the `takeRecords` method.
105
+ * @param {Object=} opt_options Optional configuration options.
106
+ * @constructor
107
+ */
108
+ function IntersectionObserver(callback, opt_options) {
109
+
110
+ var options = opt_options || {};
111
+
112
+ if (typeof callback != 'function') {
113
+ throw new Error('callback must be a function');
114
+ }
115
+
116
+ if (options.root && options.root.nodeType != 1) {
117
+ throw new Error('root must be an Element');
118
+ }
119
+
120
+ // Binds and throttles `this._checkForIntersections`.
121
+ this._checkForIntersections = throttle(
122
+ this._checkForIntersections.bind(this), this.THROTTLE_TIMEOUT);
123
+
124
+ // Private properties.
125
+ this._callback = callback;
126
+ this._observationTargets = [];
127
+ this._queuedEntries = [];
128
+ this._rootMarginValues = this._parseRootMargin(options.rootMargin);
129
+
130
+ // Public properties.
131
+ this.thresholds = this._initThresholds(options.threshold);
132
+ this.root = options.root || null;
133
+ this.rootMargin = this._rootMarginValues.map(function(margin) {
134
+ return margin.value + margin.unit;
135
+ }).join(' ');
136
+
137
+ /** @private @const {!Array<!Document>} */
138
+ this._monitoringDocuments = [];
139
+ /** @private @const {!Array<function()>} */
140
+ this._monitoringUnsubscribes = [];
141
+ }
142
+
143
+
144
+ /**
145
+ * The minimum interval within which the document will be checked for
146
+ * intersection changes.
147
+ */
148
+ IntersectionObserver.prototype.THROTTLE_TIMEOUT = 100;
149
+
150
+
151
+ /**
152
+ * The frequency in which the polyfill polls for intersection changes.
153
+ * this can be updated on a per instance basis and must be set prior to
154
+ * calling `observe` on the first target.
155
+ */
156
+ IntersectionObserver.prototype.POLL_INTERVAL = null;
157
+
158
+ /**
159
+ * Use a mutation observer on the root element
160
+ * to detect intersection changes.
161
+ */
162
+ IntersectionObserver.prototype.USE_MUTATION_OBSERVER = true;
163
+
164
+
165
+ /**
166
+ * Sets up the polyfill in the cross-origin mode. The result is the
167
+ * updater function that accepts two arguments: `boundingClientRect` and
168
+ * `intersectionRect` - just as these fields would be available to the
169
+ * parent via `IntersectionObserverEntry`. This function should be called
170
+ * each time the iframe receives intersection information from the parent
171
+ * window, e.g. via messaging.
172
+ * @return {function(DOMRect|ClientRect, DOMRect|ClientRect)}
173
+ */
174
+ IntersectionObserver._setupCrossOriginUpdater = function() {
175
+ if (!crossOriginUpdater) {
176
+ /**
177
+ * @param {DOMRect|ClientRect} boundingClientRect
178
+ * @param {DOMRect|ClientRect} intersectionRect
179
+ */
180
+ crossOriginUpdater = function(boundingClientRect, intersectionRect) {
181
+ if (!boundingClientRect || !intersectionRect) {
182
+ crossOriginRect = getEmptyRect();
183
+ } else {
184
+ crossOriginRect = convertFromParentRect(boundingClientRect, intersectionRect);
185
+ }
186
+ registry.forEach(function(observer) {
187
+ observer._checkForIntersections();
188
+ });
189
+ };
190
+ }
191
+ return crossOriginUpdater;
192
+ };
193
+
194
+
195
+ /**
196
+ * Resets the cross-origin mode.
197
+ */
198
+ IntersectionObserver._resetCrossOriginUpdater = function() {
199
+ crossOriginUpdater = null;
200
+ crossOriginRect = null;
201
+ };
202
+
203
+
204
+ /**
205
+ * Starts observing a target element for intersection changes based on
206
+ * the thresholds values.
207
+ * @param {Element} target The DOM element to observe.
208
+ */
209
+ IntersectionObserver.prototype.observe = function(target) {
210
+ var isTargetAlreadyObserved = this._observationTargets.some(function(item) {
211
+ return item.element == target;
212
+ });
213
+
214
+ if (isTargetAlreadyObserved) {
215
+ return;
216
+ }
217
+
218
+ if (!(target && target.nodeType == 1)) {
219
+ throw new Error('target must be an Element');
220
+ }
221
+
222
+ this._registerInstance();
223
+ this._observationTargets.push({element: target, entry: null});
224
+ this._monitorIntersections(target.ownerDocument);
225
+ this._checkForIntersections();
226
+ };
227
+
228
+
229
+ /**
230
+ * Stops observing a target element for intersection changes.
231
+ * @param {Element} target The DOM element to observe.
232
+ */
233
+ IntersectionObserver.prototype.unobserve = function(target) {
234
+ this._observationTargets =
235
+ this._observationTargets.filter(function(item) {
236
+ return item.element != target;
237
+ });
238
+ this._unmonitorIntersections(target.ownerDocument);
239
+ if (this._observationTargets.length == 0) {
240
+ this._unregisterInstance();
241
+ }
242
+ };
243
+
244
+
245
+ /**
246
+ * Stops observing all target elements for intersection changes.
247
+ */
248
+ IntersectionObserver.prototype.disconnect = function() {
249
+ this._observationTargets = [];
250
+ this._unmonitorAllIntersections();
251
+ this._unregisterInstance();
252
+ };
253
+
254
+
255
+ /**
256
+ * Returns any queue entries that have not yet been reported to the
257
+ * callback and clears the queue. This can be used in conjunction with the
258
+ * callback to obtain the absolute most up-to-date intersection information.
259
+ * @return {Array} The currently queued entries.
260
+ */
261
+ IntersectionObserver.prototype.takeRecords = function() {
262
+ var records = this._queuedEntries.slice();
263
+ this._queuedEntries = [];
264
+ return records;
265
+ };
266
+
267
+
268
+ /**
269
+ * Accepts the threshold value from the user configuration object and
270
+ * returns a sorted array of unique threshold values. If a value is not
271
+ * between 0 and 1 and error is thrown.
272
+ * @private
273
+ * @param {Array|number=} opt_threshold An optional threshold value or
274
+ * a list of threshold values, defaulting to [0].
275
+ * @return {Array} A sorted list of unique and valid threshold values.
276
+ */
277
+ IntersectionObserver.prototype._initThresholds = function(opt_threshold) {
278
+ var threshold = opt_threshold || [0];
279
+ if (!Array.isArray(threshold)) threshold = [threshold];
280
+
281
+ return threshold.sort().filter(function(t, i, a) {
282
+ if (typeof t != 'number' || isNaN(t) || t < 0 || t > 1) {
283
+ throw new Error('threshold must be a number between 0 and 1 inclusively');
284
+ }
285
+ return t !== a[i - 1];
286
+ });
287
+ };
288
+
289
+
290
+ /**
291
+ * Accepts the rootMargin value from the user configuration object
292
+ * and returns an array of the four margin values as an object containing
293
+ * the value and unit properties. If any of the values are not properly
294
+ * formatted or use a unit other than px or %, and error is thrown.
295
+ * @private
296
+ * @param {string=} opt_rootMargin An optional rootMargin value,
297
+ * defaulting to '0px'.
298
+ * @return {Array<Object>} An array of margin objects with the keys
299
+ * value and unit.
300
+ */
301
+ IntersectionObserver.prototype._parseRootMargin = function(opt_rootMargin) {
302
+ var marginString = opt_rootMargin || '0px';
303
+ var margins = marginString.split(/\s+/).map(function(margin) {
304
+ var parts = /^(-?\d*\.?\d+)(px|%)$/.exec(margin);
305
+ if (!parts) {
306
+ throw new Error('rootMargin must be specified in pixels or percent');
307
+ }
308
+ return {value: parseFloat(parts[1]), unit: parts[2]};
309
+ });
310
+
311
+ // Handles shorthand.
312
+ margins[1] = margins[1] || margins[0];
313
+ margins[2] = margins[2] || margins[0];
314
+ margins[3] = margins[3] || margins[1];
315
+
316
+ return margins;
317
+ };
318
+
319
+
320
+ /**
321
+ * Starts polling for intersection changes if the polling is not already
322
+ * happening, and if the page's visibility state is visible.
323
+ * @param {!Document} doc
324
+ * @private
325
+ */
326
+ IntersectionObserver.prototype._monitorIntersections = function(doc) {
327
+ var win = doc.defaultView;
328
+ if (!win) {
329
+ // Already destroyed.
330
+ return;
331
+ }
332
+ if (this._monitoringDocuments.indexOf(doc) != -1) {
333
+ // Already monitoring.
334
+ return;
335
+ }
336
+
337
+ // Private state for monitoring.
338
+ var callback = this._checkForIntersections;
339
+ var monitoringInterval = null;
340
+ var domObserver = null;
341
+
342
+ // If a poll interval is set, use polling instead of listening to
343
+ // resize and scroll events or DOM mutations.
344
+ if (this.POLL_INTERVAL) {
345
+ monitoringInterval = win.setInterval(callback, this.POLL_INTERVAL);
346
+ } else {
347
+ addEvent(win, 'resize', callback, true);
348
+ addEvent(doc, 'scroll', callback, true);
349
+ if (this.USE_MUTATION_OBSERVER && 'MutationObserver' in win) {
350
+ domObserver = new win.MutationObserver(callback);
351
+ domObserver.observe(doc, {
352
+ attributes: true,
353
+ childList: true,
354
+ characterData: true,
355
+ subtree: true
356
+ });
357
+ }
358
+ }
359
+
360
+ this._monitoringDocuments.push(doc);
361
+ this._monitoringUnsubscribes.push(function() {
362
+ // Get the window object again. When a friendly iframe is destroyed, it
363
+ // will be null.
364
+ var win = doc.defaultView;
365
+
366
+ if (win) {
367
+ if (monitoringInterval) {
368
+ win.clearInterval(monitoringInterval);
369
+ }
370
+ removeEvent(win, 'resize', callback, true);
371
+ }
372
+
373
+ removeEvent(doc, 'scroll', callback, true);
374
+ if (domObserver) {
375
+ domObserver.disconnect();
376
+ }
377
+ });
378
+
379
+ // Also monitor the parent.
380
+ if (doc != (this.root && this.root.ownerDocument || document)) {
381
+ var frame = getFrameElement(doc);
382
+ if (frame) {
383
+ this._monitorIntersections(frame.ownerDocument);
384
+ }
385
+ }
386
+ };
387
+
388
+
389
+ /**
390
+ * Stops polling for intersection changes.
391
+ * @param {!Document} doc
392
+ * @private
393
+ */
394
+ IntersectionObserver.prototype._unmonitorIntersections = function(doc) {
395
+ var index = this._monitoringDocuments.indexOf(doc);
396
+ if (index == -1) {
397
+ return;
398
+ }
399
+
400
+ var rootDoc = (this.root && this.root.ownerDocument || document);
401
+
402
+ // Check if any dependent targets are still remaining.
403
+ var hasDependentTargets =
404
+ this._observationTargets.some(function(item) {
405
+ var itemDoc = item.element.ownerDocument;
406
+ // Target is in this context.
407
+ if (itemDoc == doc) {
408
+ return true;
409
+ }
410
+ // Target is nested in this context.
411
+ while (itemDoc && itemDoc != rootDoc) {
412
+ var frame = getFrameElement(itemDoc);
413
+ itemDoc = frame && frame.ownerDocument;
414
+ if (itemDoc == doc) {
415
+ return true;
416
+ }
417
+ }
418
+ return false;
419
+ });
420
+ if (hasDependentTargets) {
421
+ return;
422
+ }
423
+
424
+ // Unsubscribe.
425
+ var unsubscribe = this._monitoringUnsubscribes[index];
426
+ this._monitoringDocuments.splice(index, 1);
427
+ this._monitoringUnsubscribes.splice(index, 1);
428
+ unsubscribe();
429
+
430
+ // Also unmonitor the parent.
431
+ if (doc != rootDoc) {
432
+ var frame = getFrameElement(doc);
433
+ if (frame) {
434
+ this._unmonitorIntersections(frame.ownerDocument);
435
+ }
436
+ }
437
+ };
438
+
439
+
440
+ /**
441
+ * Stops polling for intersection changes.
442
+ * @param {!Document} doc
443
+ * @private
444
+ */
445
+ IntersectionObserver.prototype._unmonitorAllIntersections = function() {
446
+ var unsubscribes = this._monitoringUnsubscribes.slice(0);
447
+ this._monitoringDocuments.length = 0;
448
+ this._monitoringUnsubscribes.length = 0;
449
+ for (var i = 0; i < unsubscribes.length; i++) {
450
+ unsubscribes[i]();
451
+ }
452
+ };
453
+
454
+
455
+ /**
456
+ * Scans each observation target for intersection changes and adds them
457
+ * to the internal entries queue. If new entries are found, it
458
+ * schedules the callback to be invoked.
459
+ * @private
460
+ */
461
+ IntersectionObserver.prototype._checkForIntersections = function() {
462
+ if (!this.root && crossOriginUpdater && !crossOriginRect) {
463
+ // Cross origin monitoring, but no initial data available yet.
464
+ return;
465
+ }
466
+
467
+ var rootIsInDom = this._rootIsInDom();
468
+ var rootRect = rootIsInDom ? this._getRootRect() : getEmptyRect();
469
+
470
+ this._observationTargets.forEach(function(item) {
471
+ var target = item.element;
472
+ var targetRect = getBoundingClientRect(target);
473
+ var rootContainsTarget = this._rootContainsTarget(target);
474
+ var oldEntry = item.entry;
475
+ var intersectionRect = rootIsInDom && rootContainsTarget &&
476
+ this._computeTargetAndRootIntersection(target, targetRect, rootRect);
477
+
478
+ var newEntry = item.entry = new IntersectionObserverEntry({
479
+ time: now(),
480
+ target: target,
481
+ boundingClientRect: targetRect,
482
+ rootBounds: crossOriginUpdater && !this.root ? null : rootRect,
483
+ intersectionRect: intersectionRect
484
+ });
485
+
486
+ if (!oldEntry) {
487
+ this._queuedEntries.push(newEntry);
488
+ } else if (rootIsInDom && rootContainsTarget) {
489
+ // If the new entry intersection ratio has crossed any of the
490
+ // thresholds, add a new entry.
491
+ if (this._hasCrossedThreshold(oldEntry, newEntry)) {
492
+ this._queuedEntries.push(newEntry);
493
+ }
494
+ } else {
495
+ // If the root is not in the DOM or target is not contained within
496
+ // root but the previous entry for this target had an intersection,
497
+ // add a new record indicating removal.
498
+ if (oldEntry && oldEntry.isIntersecting) {
499
+ this._queuedEntries.push(newEntry);
500
+ }
501
+ }
502
+ }, this);
503
+
504
+ if (this._queuedEntries.length) {
505
+ this._callback(this.takeRecords(), this);
506
+ }
507
+ };
508
+
509
+
510
+ /**
511
+ * Accepts a target and root rect computes the intersection between then
512
+ * following the algorithm in the spec.
513
+ * TODO(philipwalton): at this time clip-path is not considered.
514
+ * https://w3c.github.io/IntersectionObserver/#calculate-intersection-rect-algo
515
+ * @param {Element} target The target DOM element
516
+ * @param {Object} targetRect The bounding rect of the target.
517
+ * @param {Object} rootRect The bounding rect of the root after being
518
+ * expanded by the rootMargin value.
519
+ * @return {?Object} The final intersection rect object or undefined if no
520
+ * intersection is found.
521
+ * @private
522
+ */
523
+ IntersectionObserver.prototype._computeTargetAndRootIntersection =
524
+ function(target, targetRect, rootRect) {
525
+ // If the element isn't displayed, an intersection can't happen.
526
+ if (window.getComputedStyle(target).display == 'none') return;
527
+
528
+ var intersectionRect = targetRect;
529
+ var parent = getParentNode(target);
530
+ var atRoot = false;
531
+
532
+ while (!atRoot && parent) {
533
+ var parentRect = null;
534
+ var parentComputedStyle = parent.nodeType == 1 ?
535
+ window.getComputedStyle(parent) : {};
536
+
537
+ // If the parent isn't displayed, an intersection can't happen.
538
+ if (parentComputedStyle.display == 'none') return null;
539
+
540
+ if (parent == this.root || parent.nodeType == /* DOCUMENT */ 9) {
541
+ atRoot = true;
542
+ if (parent == this.root || parent == document) {
543
+ if (crossOriginUpdater && !this.root) {
544
+ if (!crossOriginRect ||
545
+ crossOriginRect.width == 0 && crossOriginRect.height == 0) {
546
+ // A 0-size cross-origin intersection means no-intersection.
547
+ parent = null;
548
+ parentRect = null;
549
+ intersectionRect = null;
550
+ } else {
551
+ parentRect = crossOriginRect;
552
+ }
553
+ } else {
554
+ parentRect = rootRect;
555
+ }
556
+ } else {
557
+ // Check if there's a frame that can be navigated to.
558
+ var frame = getParentNode(parent);
559
+ var frameRect = frame && getBoundingClientRect(frame);
560
+ var frameIntersect =
561
+ frame &&
562
+ this._computeTargetAndRootIntersection(frame, frameRect, rootRect);
563
+ if (frameRect && frameIntersect) {
564
+ parent = frame;
565
+ parentRect = convertFromParentRect(frameRect, frameIntersect);
566
+ } else {
567
+ parent = null;
568
+ intersectionRect = null;
569
+ }
570
+ }
571
+ } else {
572
+ // If the element has a non-visible overflow, and it's not the <body>
573
+ // or <html> element, update the intersection rect.
574
+ // Note: <body> and <html> cannot be clipped to a rect that's not also
575
+ // the document rect, so no need to compute a new intersection.
576
+ var doc = parent.ownerDocument;
577
+ if (parent != doc.body &&
578
+ parent != doc.documentElement &&
579
+ parentComputedStyle.overflow != 'visible') {
580
+ parentRect = getBoundingClientRect(parent);
581
+ }
582
+ }
583
+
584
+ // If either of the above conditionals set a new parentRect,
585
+ // calculate new intersection data.
586
+ if (parentRect) {
587
+ intersectionRect = computeRectIntersection(parentRect, intersectionRect);
588
+ }
589
+ if (!intersectionRect) break;
590
+ parent = parent && getParentNode(parent);
591
+ }
592
+ return intersectionRect;
593
+ };
594
+
595
+
596
+ /**
597
+ * Returns the root rect after being expanded by the rootMargin value.
598
+ * @return {ClientRect} The expanded root rect.
599
+ * @private
600
+ */
601
+ IntersectionObserver.prototype._getRootRect = function() {
602
+ var rootRect;
603
+ if (this.root) {
604
+ rootRect = getBoundingClientRect(this.root);
605
+ } else {
606
+ // Use <html>/<body> instead of window since scroll bars affect size.
607
+ var html = document.documentElement;
608
+ var body = document.body;
609
+ rootRect = {
610
+ top: 0,
611
+ left: 0,
612
+ right: html.clientWidth || body.clientWidth,
613
+ width: html.clientWidth || body.clientWidth,
614
+ bottom: html.clientHeight || body.clientHeight,
615
+ height: html.clientHeight || body.clientHeight
616
+ };
617
+ }
618
+ return this._expandRectByRootMargin(rootRect);
619
+ };
620
+
621
+
622
+ /**
623
+ * Accepts a rect and expands it by the rootMargin value.
624
+ * @param {DOMRect|ClientRect} rect The rect object to expand.
625
+ * @return {ClientRect} The expanded rect.
626
+ * @private
627
+ */
628
+ IntersectionObserver.prototype._expandRectByRootMargin = function(rect) {
629
+ var margins = this._rootMarginValues.map(function(margin, i) {
630
+ return margin.unit == 'px' ? margin.value :
631
+ margin.value * (i % 2 ? rect.width : rect.height) / 100;
632
+ });
633
+ var newRect = {
634
+ top: rect.top - margins[0],
635
+ right: rect.right + margins[1],
636
+ bottom: rect.bottom + margins[2],
637
+ left: rect.left - margins[3]
638
+ };
639
+ newRect.width = newRect.right - newRect.left;
640
+ newRect.height = newRect.bottom - newRect.top;
641
+
642
+ return newRect;
643
+ };
644
+
645
+
646
+ /**
647
+ * Accepts an old and new entry and returns true if at least one of the
648
+ * threshold values has been crossed.
649
+ * @param {?IntersectionObserverEntry} oldEntry The previous entry for a
650
+ * particular target element or null if no previous entry exists.
651
+ * @param {IntersectionObserverEntry} newEntry The current entry for a
652
+ * particular target element.
653
+ * @return {boolean} Returns true if a any threshold has been crossed.
654
+ * @private
655
+ */
656
+ IntersectionObserver.prototype._hasCrossedThreshold =
657
+ function(oldEntry, newEntry) {
658
+
659
+ // To make comparing easier, an entry that has a ratio of 0
660
+ // but does not actually intersect is given a value of -1
661
+ var oldRatio = oldEntry && oldEntry.isIntersecting ?
662
+ oldEntry.intersectionRatio || 0 : -1;
663
+ var newRatio = newEntry.isIntersecting ?
664
+ newEntry.intersectionRatio || 0 : -1;
665
+
666
+ // Ignore unchanged ratios
667
+ if (oldRatio === newRatio) return;
668
+
669
+ for (var i = 0; i < this.thresholds.length; i++) {
670
+ var threshold = this.thresholds[i];
671
+
672
+ // Return true if an entry matches a threshold or if the new ratio
673
+ // and the old ratio are on the opposite sides of a threshold.
674
+ if (threshold == oldRatio || threshold == newRatio ||
675
+ threshold < oldRatio !== threshold < newRatio) {
676
+ return true;
677
+ }
678
+ }
679
+ };
680
+
681
+
682
+ /**
683
+ * Returns whether or not the root element is an element and is in the DOM.
684
+ * @return {boolean} True if the root element is an element and is in the DOM.
685
+ * @private
686
+ */
687
+ IntersectionObserver.prototype._rootIsInDom = function() {
688
+ return !this.root || containsDeep(document, this.root);
689
+ };
690
+
691
+
692
+ /**
693
+ * Returns whether or not the target element is a child of root.
694
+ * @param {Element} target The target element to check.
695
+ * @return {boolean} True if the target element is a child of root.
696
+ * @private
697
+ */
698
+ IntersectionObserver.prototype._rootContainsTarget = function(target) {
699
+ return containsDeep(this.root || document, target) &&
700
+ (!this.root || this.root.ownerDocument == target.ownerDocument);
701
+ };
702
+
703
+
704
+ /**
705
+ * Adds the instance to the global IntersectionObserver registry if it isn't
706
+ * already present.
707
+ * @private
708
+ */
709
+ IntersectionObserver.prototype._registerInstance = function() {
710
+ if (registry.indexOf(this) < 0) {
711
+ registry.push(this);
712
+ }
713
+ };
714
+
715
+
716
+ /**
717
+ * Removes the instance from the global IntersectionObserver registry.
718
+ * @private
719
+ */
720
+ IntersectionObserver.prototype._unregisterInstance = function() {
721
+ var index = registry.indexOf(this);
722
+ if (index != -1) registry.splice(index, 1);
723
+ };
724
+
725
+
726
+ /**
727
+ * Returns the result of the performance.now() method or null in browsers
728
+ * that don't support the API.
729
+ * @return {number} The elapsed time since the page was requested.
730
+ */
731
+ function now() {
732
+ return window.performance && performance.now && performance.now();
733
+ }
734
+
735
+
736
+ /**
737
+ * Throttles a function and delays its execution, so it's only called at most
738
+ * once within a given time period.
739
+ * @param {Function} fn The function to throttle.
740
+ * @param {number} timeout The amount of time that must pass before the
741
+ * function can be called again.
742
+ * @return {Function} The throttled function.
743
+ */
744
+ function throttle(fn, timeout) {
745
+ var timer = null;
746
+ return function () {
747
+ if (!timer) {
748
+ timer = setTimeout(function() {
749
+ fn();
750
+ timer = null;
751
+ }, timeout);
752
+ }
753
+ };
754
+ }
755
+
756
+
757
+ /**
758
+ * Adds an event handler to a DOM node ensuring cross-browser compatibility.
759
+ * @param {Node} node The DOM node to add the event handler to.
760
+ * @param {string} event The event name.
761
+ * @param {Function} fn The event handler to add.
762
+ * @param {boolean} opt_useCapture Optionally adds the even to the capture
763
+ * phase. Note: this only works in modern browsers.
764
+ */
765
+ function addEvent(node, event, fn, opt_useCapture) {
766
+ if (typeof node.addEventListener == 'function') {
767
+ node.addEventListener(event, fn, opt_useCapture || false);
768
+ }
769
+ else if (typeof node.attachEvent == 'function') {
770
+ node.attachEvent('on' + event, fn);
771
+ }
772
+ }
773
+
774
+
775
+ /**
776
+ * Removes a previously added event handler from a DOM node.
777
+ * @param {Node} node The DOM node to remove the event handler from.
778
+ * @param {string} event The event name.
779
+ * @param {Function} fn The event handler to remove.
780
+ * @param {boolean} opt_useCapture If the event handler was added with this
781
+ * flag set to true, it should be set to true here in order to remove it.
782
+ */
783
+ function removeEvent(node, event, fn, opt_useCapture) {
784
+ if (typeof node.removeEventListener == 'function') {
785
+ node.removeEventListener(event, fn, opt_useCapture || false);
786
+ }
787
+ else if (typeof node.detatchEvent == 'function') {
788
+ node.detatchEvent('on' + event, fn);
789
+ }
790
+ }
791
+
792
+
793
+ /**
794
+ * Returns the intersection between two rect objects.
795
+ * @param {Object} rect1 The first rect.
796
+ * @param {Object} rect2 The second rect.
797
+ * @return {?Object|?ClientRect} The intersection rect or undefined if no
798
+ * intersection is found.
799
+ */
800
+ function computeRectIntersection(rect1, rect2) {
801
+ var top = Math.max(rect1.top, rect2.top);
802
+ var bottom = Math.min(rect1.bottom, rect2.bottom);
803
+ var left = Math.max(rect1.left, rect2.left);
804
+ var right = Math.min(rect1.right, rect2.right);
805
+ var width = right - left;
806
+ var height = bottom - top;
807
+
808
+ return (width >= 0 && height >= 0) && {
809
+ top: top,
810
+ bottom: bottom,
811
+ left: left,
812
+ right: right,
813
+ width: width,
814
+ height: height
815
+ } || null;
816
+ }
817
+
818
+
819
+ /**
820
+ * Shims the native getBoundingClientRect for compatibility with older IE.
821
+ * @param {Element} el The element whose bounding rect to get.
822
+ * @return {DOMRect|ClientRect} The (possibly shimmed) rect of the element.
823
+ */
824
+ function getBoundingClientRect(el) {
825
+ var rect;
826
+
827
+ try {
828
+ rect = el.getBoundingClientRect();
829
+ } catch (err) {
830
+ // Ignore Windows 7 IE11 "Unspecified error"
831
+ // https://github.com/w3c/IntersectionObserver/pull/205
832
+ }
833
+
834
+ if (!rect) return getEmptyRect();
835
+
836
+ // Older IE
837
+ if (!(rect.width && rect.height)) {
838
+ rect = {
839
+ top: rect.top,
840
+ right: rect.right,
841
+ bottom: rect.bottom,
842
+ left: rect.left,
843
+ width: rect.right - rect.left,
844
+ height: rect.bottom - rect.top
845
+ };
846
+ }
847
+ return rect;
848
+ }
849
+
850
+
851
+ /**
852
+ * Returns an empty rect object. An empty rect is returned when an element
853
+ * is not in the DOM.
854
+ * @return {ClientRect} The empty rect.
855
+ */
856
+ function getEmptyRect() {
857
+ return {
858
+ top: 0,
859
+ bottom: 0,
860
+ left: 0,
861
+ right: 0,
862
+ width: 0,
863
+ height: 0
864
+ };
865
+ }
866
+
867
+
868
+ /**
869
+ * Ensure that the result has all of the necessary fields of the DOMRect.
870
+ * Specifically this ensures that `x` and `y` fields are set.
871
+ *
872
+ * @param {?DOMRect|?ClientRect} rect
873
+ * @return {?DOMRect}
874
+ */
875
+ function ensureDOMRect(rect) {
876
+ // A `DOMRect` object has `x` and `y` fields.
877
+ if (!rect || 'x' in rect) {
878
+ return rect;
879
+ }
880
+ // A IE's `ClientRect` type does not have `x` and `y`. The same is the case
881
+ // for internally calculated Rect objects. For the purposes of
882
+ // `IntersectionObserver`, it's sufficient to simply mirror `left` and `top`
883
+ // for these fields.
884
+ return {
885
+ top: rect.top,
886
+ y: rect.top,
887
+ bottom: rect.bottom,
888
+ left: rect.left,
889
+ x: rect.left,
890
+ right: rect.right,
891
+ width: rect.width,
892
+ height: rect.height
893
+ };
894
+ }
895
+
896
+
897
+ /**
898
+ * Inverts the intersection and bounding rect from the parent (frame) BCR to
899
+ * the local BCR space.
900
+ * @param {DOMRect|ClientRect} parentBoundingRect The parent's bound client rect.
901
+ * @param {DOMRect|ClientRect} parentIntersectionRect The parent's own intersection rect.
902
+ * @return {ClientRect} The local root bounding rect for the parent's children.
903
+ */
904
+ function convertFromParentRect(parentBoundingRect, parentIntersectionRect) {
905
+ var top = parentIntersectionRect.top - parentBoundingRect.top;
906
+ var left = parentIntersectionRect.left - parentBoundingRect.left;
907
+ return {
908
+ top: top,
909
+ left: left,
910
+ height: parentIntersectionRect.height,
911
+ width: parentIntersectionRect.width,
912
+ bottom: top + parentIntersectionRect.height,
913
+ right: left + parentIntersectionRect.width
914
+ };
915
+ }
916
+
917
+
918
+ /**
919
+ * Checks to see if a parent element contains a child element (including inside
920
+ * shadow DOM).
921
+ * @param {Node} parent The parent element.
922
+ * @param {Node} child The child element.
923
+ * @return {boolean} True if the parent node contains the child node.
924
+ */
925
+ function containsDeep(parent, child) {
926
+ var node = child;
927
+ while (node) {
928
+ if (node == parent) return true;
929
+
930
+ node = getParentNode(node);
931
+ }
932
+ return false;
933
+ }
934
+
935
+
936
+ /**
937
+ * Gets the parent node of an element or its host element if the parent node
938
+ * is a shadow root.
939
+ * @param {Node} node The node whose parent to get.
940
+ * @return {Node|null} The parent node or null if no parent exists.
941
+ */
942
+ function getParentNode(node) {
943
+ var parent = node.parentNode;
944
+
945
+ if (node.nodeType == /* DOCUMENT */ 9 && node != document) {
946
+ // If this node is a document node, look for the embedding frame.
947
+ return getFrameElement(node);
948
+ }
949
+
950
+ if (parent && parent.nodeType == 11 && parent.host) {
951
+ // If the parent is a shadow root, return the host element.
952
+ return parent.host;
953
+ }
954
+
955
+ if (parent && parent.assignedSlot) {
956
+ // If the parent is distributed in a <slot>, return the parent of a slot.
957
+ return parent.assignedSlot.parentNode;
958
+ }
959
+
960
+ return parent;
961
+ }
962
+
963
+
964
+ /**
965
+ * Returns the embedding frame element, if any.
966
+ * @param {!Document} doc
967
+ * @return {!Element}
968
+ */
969
+ function getFrameElement(doc) {
970
+ try {
971
+ return doc.defaultView && doc.defaultView.frameElement || null;
972
+ } catch (e) {
973
+ // Ignore the error.
974
+ return null;
975
+ }
976
+ }
977
+
978
+
979
+ // Exposes the constructors globally.
980
+ window.IntersectionObserver = IntersectionObserver;
981
+ window.IntersectionObserverEntry = IntersectionObserverEntry;
982
+
983
+ }());
984
+
985
+ //# sourceMappingURL=intersection-observer.js.map