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