@nanoporetech-digital/components 3.14.0 → 4.0.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 (335) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/cjs/{algolia-data-533e3a95.js → algolia-data-ed53eaa8.js} +2 -2
  3. package/dist/cjs/{algolia-data-533e3a95.js.map → algolia-data-ed53eaa8.js.map} +1 -1
  4. package/dist/cjs/{component-store-5ad4de07.js → component-store-74d25f63.js} +2 -2
  5. package/dist/cjs/{component-store-5ad4de07.js.map → component-store-74d25f63.js.map} +1 -1
  6. package/dist/cjs/{form-control-80c69d1d.js → form-control-2e900f54.js} +2 -2
  7. package/dist/cjs/{form-control-80c69d1d.js.map → form-control-2e900f54.js.map} +1 -1
  8. package/dist/cjs/{index-46286eea.js → index-71f899a7.js} +85 -42
  9. package/dist/cjs/index-71f899a7.js.map +1 -0
  10. package/dist/cjs/{index-b13f69e7.js → index-99649bef.js} +2 -2
  11. package/dist/cjs/{index-b13f69e7.js.map → index-99649bef.js.map} +1 -1
  12. package/dist/cjs/loader.cjs.js +3 -3
  13. package/dist/cjs/loader.cjs.js.map +1 -1
  14. package/dist/cjs/nano-accordion.cjs.entry.js +1 -1
  15. package/dist/cjs/nano-alert.cjs.entry.js +2 -2
  16. package/dist/cjs/nano-algolia-filter.cjs.entry.js +3 -3
  17. package/dist/cjs/nano-algolia-input.cjs.entry.js +3 -3
  18. package/dist/cjs/nano-algolia-pagination.cjs.entry.js +2 -2
  19. package/dist/cjs/nano-algolia-results.cjs.entry.js +2 -2
  20. package/dist/cjs/nano-algolia.cjs.entry.js +3 -3
  21. package/dist/cjs/nano-aspect-ratio.cjs.entry.js +1 -1
  22. package/dist/cjs/nano-checkbox-group.cjs.entry.js +1 -1
  23. package/dist/cjs/nano-checkbox.cjs.entry.js +1 -1
  24. package/dist/cjs/nano-components.cjs.js +3 -3
  25. package/dist/cjs/nano-components.cjs.js.map +1 -1
  26. package/dist/cjs/nano-datalist_3.cjs.entry.js +1 -1
  27. package/dist/cjs/nano-date-input.cjs.entry.js +1 -1
  28. package/dist/cjs/nano-date-picker.cjs.entry.js +1 -1
  29. package/dist/cjs/nano-demo.cjs.entry.js +1 -1
  30. package/dist/cjs/nano-details.cjs.entry.js +2 -2
  31. package/dist/cjs/nano-dialog.cjs.entry.js +3 -3
  32. package/dist/cjs/nano-drawer.cjs.entry.js +2 -2
  33. package/dist/cjs/nano-dropdown.cjs.entry.js +1 -1
  34. package/dist/cjs/nano-field-validator.cjs.entry.js +2 -2
  35. package/dist/cjs/nano-file-upload.cjs.entry.js +1 -1
  36. package/dist/cjs/nano-global-nav-user-profile_3.cjs.entry.js +4 -4
  37. package/dist/cjs/nano-global-nav-user-profile_3.cjs.entry.js.map +1 -1
  38. package/dist/cjs/nano-global-nav.cjs.entry.js +32 -35
  39. package/dist/cjs/nano-global-nav.cjs.entry.js.map +1 -1
  40. package/dist/cjs/nano-global-search-results.cjs.entry.js +1 -1
  41. package/dist/cjs/nano-grid_3.cjs.entry.js +2 -2
  42. package/dist/cjs/nano-grid_3.cjs.entry.js.map +1 -1
  43. package/dist/cjs/nano-hero.cjs.entry.js +1 -1
  44. package/dist/cjs/nano-icon-button.cjs.entry.js +1 -1
  45. package/dist/cjs/nano-icon.cjs.entry.js +2 -2
  46. package/dist/cjs/nano-icon.cjs.entry.js.map +1 -1
  47. package/dist/cjs/nano-input.cjs.entry.js +2 -2
  48. package/dist/cjs/nano-menu-drawer.cjs.entry.js +1 -1
  49. package/dist/cjs/nano-overflow-nav.cjs.entry.js +282 -0
  50. package/dist/cjs/nano-overflow-nav.cjs.entry.js.map +1 -0
  51. package/dist/cjs/nano-progress-bar_2.cjs.entry.js +1 -1
  52. package/dist/cjs/nano-range.cjs.entry.js +1 -1
  53. package/dist/cjs/nano-rating.cjs.entry.js +1 -1
  54. package/dist/cjs/nano-resize-observe_2.cjs.entry.js +4 -4
  55. package/dist/cjs/nano-resize-observe_2.cjs.entry.js.map +1 -1
  56. package/dist/cjs/nano-slide.cjs.entry.js +1 -1
  57. package/dist/cjs/nano-slides.cjs.entry.js +2 -2
  58. package/dist/cjs/nano-slides.cjs.entry.js.map +1 -1
  59. package/dist/cjs/nano-spinner.cjs.entry.js +1 -1
  60. package/dist/cjs/nano-split-pane.cjs.entry.js +1 -1
  61. package/dist/cjs/nano-sticker.cjs.entry.js +1 -1
  62. package/dist/cjs/nano-tab-content.cjs.entry.js +1 -1
  63. package/dist/cjs/nano-tab-group.cjs.entry.js +4 -4
  64. package/dist/cjs/nano-tab.cjs.entry.js +2 -2
  65. package/dist/cjs/nano-tab.cjs.entry.js.map +1 -1
  66. package/dist/cjs/{nano-table-9044710f.js → nano-table-737365b7.js} +4 -4
  67. package/dist/cjs/{nano-table-9044710f.js.map → nano-table-737365b7.js.map} +1 -1
  68. package/dist/cjs/nano-table.cjs.entry.js +3 -3
  69. package/dist/cjs/{scroll-a197d9c4.js → scroll-6a9bedb4.js} +15 -8
  70. package/dist/cjs/scroll-6a9bedb4.js.map +1 -0
  71. package/dist/cjs/{table.worker-8ad26746.js → table.worker-c3b11144.js} +4 -4
  72. package/dist/cjs/table.worker-c3b11144.js.map +1 -0
  73. package/dist/cjs/{transitions-5cd8f697.js → transitions-1205f12b.js} +3 -3
  74. package/dist/cjs/transitions-1205f12b.js.map +1 -0
  75. package/dist/collection/collection-manifest.json +2 -1
  76. package/dist/collection/components/global-nav/global-nav-user-profile.js +1 -1
  77. package/dist/collection/components/global-nav/global-nav-user-profile.js.map +1 -1
  78. package/dist/collection/components/global-nav/global-nav.js +31 -32
  79. package/dist/collection/components/global-nav/global-nav.js.map +1 -1
  80. package/dist/collection/components/global-nav/style/global-nav.css +2 -1
  81. package/dist/collection/components/icon/utils.js +1 -1
  82. package/dist/collection/components/icon/utils.js.map +1 -1
  83. package/dist/collection/components/img/img.css +1 -1
  84. package/dist/collection/components/overflow-nav/overflow-nav.css +223 -0
  85. package/dist/collection/components/overflow-nav/overflow-nav.js +441 -0
  86. package/dist/collection/components/overflow-nav/overflow-nav.js.map +1 -0
  87. package/dist/collection/components/resize-observe/resize-observe.js +5 -5
  88. package/dist/collection/components/resize-observe/resize-observe.js.map +1 -1
  89. package/dist/collection/components/skeleton/skeleton.css +2 -2
  90. package/dist/collection/components/slides/slides.js +1 -1
  91. package/dist/collection/components/slides/slides.js.map +1 -1
  92. package/dist/collection/components/tabs/tab.css +1 -1
  93. package/dist/collection/utils/scroll.js +14 -7
  94. package/dist/collection/utils/scroll.js.map +1 -1
  95. package/dist/collection/utils/transitions.js +2 -2
  96. package/dist/collection/utils/transitions.js.map +1 -1
  97. package/dist/components/global-nav-user-profile.js +1 -1
  98. package/dist/components/global-nav-user-profile.js.map +1 -1
  99. package/dist/components/icon.js +1 -1
  100. package/dist/components/icon.js.map +1 -1
  101. package/dist/components/img.js +1 -1
  102. package/dist/components/img.js.map +1 -1
  103. package/dist/components/index.d.ts +1 -0
  104. package/dist/components/index.js +1 -0
  105. package/dist/components/index.js.map +1 -1
  106. package/dist/components/nano-global-nav.js +30 -33
  107. package/dist/components/nano-global-nav.js.map +1 -1
  108. package/dist/components/nano-overflow-nav.d.ts +11 -0
  109. package/dist/components/nano-overflow-nav.js +317 -0
  110. package/dist/components/nano-overflow-nav.js.map +1 -0
  111. package/dist/components/nano-slides.js +1 -1
  112. package/dist/components/nano-slides.js.map +1 -1
  113. package/dist/components/nano-tab.js +1 -1
  114. package/dist/components/nano-tab.js.map +1 -1
  115. package/dist/components/resize-observe.js +3 -3
  116. package/dist/components/resize-observe.js.map +1 -1
  117. package/dist/components/scroll.js +14 -7
  118. package/dist/components/scroll.js.map +1 -1
  119. package/dist/components/skeleton.js.map +1 -1
  120. package/dist/components/transitions.js +2 -2
  121. package/dist/components/transitions.js.map +1 -1
  122. package/dist/esm/{algolia-data-e5e86f12.js → algolia-data-ef2829e0.js} +2 -2
  123. package/dist/esm/{algolia-data-e5e86f12.js.map → algolia-data-ef2829e0.js.map} +1 -1
  124. package/dist/esm/{component-store-2044c2c2.js → component-store-244a8431.js} +2 -2
  125. package/dist/esm/{component-store-2044c2c2.js.map → component-store-244a8431.js.map} +1 -1
  126. package/dist/esm/{form-control-4f3a88a1.js → form-control-269ba84f.js} +2 -2
  127. package/dist/esm/{form-control-4f3a88a1.js.map → form-control-269ba84f.js.map} +1 -1
  128. package/dist/esm/{index-728dda31.js → index-5d0f4704.js} +2 -2
  129. package/dist/esm/{index-728dda31.js.map → index-5d0f4704.js.map} +1 -1
  130. package/dist/esm/{index-52b0408e.js → index-dad5627b.js} +85 -42
  131. package/dist/esm/index-dad5627b.js.map +1 -0
  132. package/dist/esm/loader.js +4 -4
  133. package/dist/esm/loader.js.map +1 -1
  134. package/dist/esm/nano-accordion.entry.js +1 -1
  135. package/dist/esm/nano-alert.entry.js +2 -2
  136. package/dist/esm/nano-algolia-filter.entry.js +3 -3
  137. package/dist/esm/nano-algolia-input.entry.js +3 -3
  138. package/dist/esm/nano-algolia-pagination.entry.js +2 -2
  139. package/dist/esm/nano-algolia-results.entry.js +2 -2
  140. package/dist/esm/nano-algolia.entry.js +3 -3
  141. package/dist/esm/nano-aspect-ratio.entry.js +1 -1
  142. package/dist/esm/nano-checkbox-group.entry.js +1 -1
  143. package/dist/esm/nano-checkbox.entry.js +1 -1
  144. package/dist/esm/nano-components.js +4 -4
  145. package/dist/esm/nano-components.js.map +1 -1
  146. package/dist/esm/nano-datalist_3.entry.js +1 -1
  147. package/dist/esm/nano-date-input.entry.js +1 -1
  148. package/dist/esm/nano-date-picker.entry.js +1 -1
  149. package/dist/esm/nano-demo.entry.js +1 -1
  150. package/dist/esm/nano-details.entry.js +2 -2
  151. package/dist/esm/nano-dialog.entry.js +3 -3
  152. package/dist/esm/nano-drawer.entry.js +2 -2
  153. package/dist/esm/nano-dropdown.entry.js +1 -1
  154. package/dist/esm/nano-field-validator.entry.js +2 -2
  155. package/dist/esm/nano-file-upload.entry.js +1 -1
  156. package/dist/esm/nano-global-nav-user-profile_3.entry.js +4 -4
  157. package/dist/esm/nano-global-nav-user-profile_3.entry.js.map +1 -1
  158. package/dist/esm/nano-global-nav.entry.js +32 -35
  159. package/dist/esm/nano-global-nav.entry.js.map +1 -1
  160. package/dist/esm/nano-global-search-results.entry.js +1 -1
  161. package/dist/esm/nano-grid_3.entry.js +2 -2
  162. package/dist/esm/nano-grid_3.entry.js.map +1 -1
  163. package/dist/esm/nano-hero.entry.js +1 -1
  164. package/dist/esm/nano-icon-button.entry.js +1 -1
  165. package/dist/esm/nano-icon.entry.js +2 -2
  166. package/dist/esm/nano-icon.entry.js.map +1 -1
  167. package/dist/esm/nano-input.entry.js +2 -2
  168. package/dist/esm/nano-menu-drawer.entry.js +1 -1
  169. package/dist/esm/nano-overflow-nav.entry.js +278 -0
  170. package/dist/esm/nano-overflow-nav.entry.js.map +1 -0
  171. package/dist/esm/nano-progress-bar_2.entry.js +1 -1
  172. package/dist/esm/nano-range.entry.js +1 -1
  173. package/dist/esm/nano-rating.entry.js +1 -1
  174. package/dist/esm/nano-resize-observe_2.entry.js +4 -4
  175. package/dist/esm/nano-resize-observe_2.entry.js.map +1 -1
  176. package/dist/esm/nano-slide.entry.js +1 -1
  177. package/dist/esm/nano-slides.entry.js +2 -2
  178. package/dist/esm/nano-slides.entry.js.map +1 -1
  179. package/dist/esm/nano-spinner.entry.js +1 -1
  180. package/dist/esm/nano-split-pane.entry.js +1 -1
  181. package/dist/esm/nano-sticker.entry.js +1 -1
  182. package/dist/esm/nano-tab-content.entry.js +1 -1
  183. package/dist/esm/nano-tab-group.entry.js +4 -4
  184. package/dist/esm/nano-tab.entry.js +2 -2
  185. package/dist/esm/nano-tab.entry.js.map +1 -1
  186. package/dist/esm/{nano-table-c46586f1.js → nano-table-75d755ae.js} +4 -4
  187. package/dist/esm/{nano-table-c46586f1.js.map → nano-table-75d755ae.js.map} +1 -1
  188. package/dist/esm/nano-table.entry.js +3 -3
  189. package/dist/esm/{scroll-e5825d8d.js → scroll-952d292a.js} +15 -8
  190. package/dist/esm/scroll-952d292a.js.map +1 -0
  191. package/dist/esm/{table.worker-72318b56.js → table.worker-d60d6df4.js} +4 -4
  192. package/dist/esm/table.worker-d60d6df4.js.map +1 -0
  193. package/dist/esm/{transitions-71cca3ed.js → transitions-686c5fec.js} +3 -3
  194. package/dist/esm/transitions-686c5fec.js.map +1 -0
  195. package/dist/nano-components/nano-components.css +1 -1
  196. package/dist/nano-components/nano-components.esm.js +1 -1
  197. package/dist/nano-components/nano-components.esm.js.map +1 -1
  198. package/dist/nano-components/{p-f25d2e90.entry.js → p-053eb1df.entry.js} +2 -2
  199. package/dist/nano-components/{p-ad3ddbc8.entry.js → p-068bdd89.entry.js} +2 -2
  200. package/dist/nano-components/{p-e4505f00.entry.js → p-0d1ca590.entry.js} +2 -2
  201. package/dist/nano-components/{p-ece694af.entry.js → p-104b7e3a.entry.js} +2 -2
  202. package/dist/nano-components/{p-75df97c2.entry.js → p-107d4549.entry.js} +2 -2
  203. package/dist/nano-components/p-15217442.entry.js +5 -0
  204. package/dist/nano-components/p-15217442.entry.js.map +1 -0
  205. package/dist/nano-components/p-1b7bad31.entry.js +5 -0
  206. package/dist/nano-components/{p-93bece01.entry.js → p-1c6c94cb.entry.js} +2 -2
  207. package/dist/nano-components/{p-a9beb006.entry.js → p-207a1fbc.entry.js} +2 -2
  208. package/dist/nano-components/{p-d32dafd9.entry.js → p-239d343a.entry.js} +2 -2
  209. package/dist/nano-components/{p-d32dafd9.entry.js.map → p-239d343a.entry.js.map} +1 -1
  210. package/dist/nano-components/{p-dab8526f.entry.js → p-288dbe6b.entry.js} +2 -2
  211. package/dist/nano-components/{p-7b21ec0b.entry.js → p-30d55046.entry.js} +2 -2
  212. package/dist/nano-components/{p-4c5e0c9e.js → p-42e7f253.js} +2 -2
  213. package/dist/nano-components/{p-378fe272.entry.js → p-57085052.entry.js} +2 -2
  214. package/dist/nano-components/{p-8f888280.entry.js → p-578f5e8d.entry.js} +2 -2
  215. package/dist/nano-components/{p-17eebe94.entry.js → p-583d8d70.entry.js} +2 -2
  216. package/dist/nano-components/{p-6bb4545b.entry.js → p-5984ae16.entry.js} +2 -2
  217. package/dist/nano-components/{p-76d8a8a8.js → p-5ac74848.js} +2 -2
  218. package/dist/nano-components/{p-ebb61a70.entry.js → p-5d466a58.entry.js} +2 -2
  219. package/dist/nano-components/p-60a8c896.js +5 -0
  220. package/dist/nano-components/{p-e113074e.entry.js → p-68928c59.entry.js} +2 -2
  221. package/dist/nano-components/{p-3667832c.entry.js → p-7304107c.entry.js} +2 -2
  222. package/dist/nano-components/{p-16e45583.entry.js → p-76a650b1.entry.js} +2 -2
  223. package/dist/nano-components/{p-09751447.entry.js → p-7d6065c6.entry.js} +2 -2
  224. package/dist/nano-components/{p-07b6af21.entry.js → p-935aef3d.entry.js} +2 -2
  225. package/dist/nano-components/{p-8065d85b.entry.js → p-93cfbdb6.entry.js} +2 -2
  226. package/dist/nano-components/p-9dfe2c55.entry.js +5 -0
  227. package/dist/nano-components/{p-f486c940.entry.js.map → p-9dfe2c55.entry.js.map} +1 -1
  228. package/dist/nano-components/{p-b65e0e63.js → p-9ebbb814.js} +2 -2
  229. package/dist/nano-components/{p-a26a7de3.entry.js → p-a1c0afb6.entry.js} +2 -2
  230. package/dist/nano-components/{p-76ab079e.entry.js → p-a5a560e7.entry.js} +2 -2
  231. package/dist/nano-components/{p-9d1432be.js → p-a6ff5ca6.js} +2 -2
  232. package/dist/nano-components/{p-4bbb04d3.entry.js → p-a761ac89.entry.js} +2 -2
  233. package/dist/nano-components/{p-4bbb04d3.entry.js.map → p-a761ac89.entry.js.map} +1 -1
  234. package/dist/nano-components/{p-62e3646b.entry.js → p-ac0ac58f.entry.js} +2 -2
  235. package/dist/nano-components/p-b2655717.entry.js +5 -0
  236. package/dist/nano-components/p-b2655717.entry.js.map +1 -0
  237. package/dist/nano-components/{p-63f1e229.entry.js → p-b6306aff.entry.js} +2 -2
  238. package/dist/nano-components/{p-3e7153c8.entry.js → p-cba50c3e.entry.js} +2 -2
  239. package/dist/nano-components/{p-ce07df57.entry.js → p-cd2f5e97.entry.js} +2 -2
  240. package/dist/nano-components/p-d0e15e46.entry.js +5 -0
  241. package/dist/nano-components/p-d0e15e46.entry.js.map +1 -0
  242. package/dist/nano-components/p-d4cebdef.entry.js +5 -0
  243. package/dist/nano-components/p-d4cebdef.entry.js.map +1 -0
  244. package/dist/nano-components/{p-dc88e52b.entry.js → p-d792f692.entry.js} +2 -2
  245. package/dist/nano-components/p-d7c34990.js +5 -0
  246. package/dist/nano-components/{p-45b7682a.js.map → p-d7c34990.js.map} +1 -1
  247. package/dist/nano-components/p-d98c6a62.js +5 -0
  248. package/dist/nano-components/{p-4f17deb9.entry.js → p-db370094.entry.js} +3 -3
  249. package/dist/nano-components/{p-4f17deb9.entry.js.map → p-db370094.entry.js.map} +1 -1
  250. package/dist/nano-components/{p-47866646.entry.js → p-e41baa11.entry.js} +2 -2
  251. package/dist/nano-components/{p-9be2cba5.entry.js → p-e43f76c8.entry.js} +2 -2
  252. package/dist/nano-components/{p-7f545755.entry.js → p-eab09335.entry.js} +2 -2
  253. package/dist/nano-components/p-f471a392.entry.js +5 -0
  254. package/dist/nano-components/p-f471a392.entry.js.map +1 -0
  255. package/dist/nano-components/p-f6a8467a.js +6 -0
  256. package/dist/nano-components/p-f6a8467a.js.map +1 -0
  257. package/dist/nano-components/p-f6de2d5d.js +5 -0
  258. package/dist/nano-components/p-f6de2d5d.js.map +1 -0
  259. package/dist/nano-components/{p-a20d2028.entry.js → p-f93bd976.entry.js} +2 -2
  260. package/dist/nano-components/{p-36a2f1c0.entry.js → p-fe7a0158.entry.js} +2 -2
  261. package/dist/nano-components/{p-6a5ae656.entry.js → p-fecb72b9.entry.js} +2 -2
  262. package/dist/types/components/global-nav/global-nav.d.ts +1 -1
  263. package/dist/types/components/overflow-nav/overflow-nav.d.ts +78 -0
  264. package/dist/types/components/resize-observe/resize-observe.d.ts +4 -2
  265. package/dist/types/components.d.ts +90 -1
  266. package/dist/types/utils/transitions.d.ts +1 -1
  267. package/docs-json.json +282 -6
  268. package/docs-vscode.json +26 -1
  269. package/hydrate/index.js +391 -69
  270. package/package.json +3 -3
  271. package/dist/cjs/index-46286eea.js.map +0 -1
  272. package/dist/cjs/scroll-a197d9c4.js.map +0 -1
  273. package/dist/cjs/table.worker-8ad26746.js.map +0 -1
  274. package/dist/cjs/transitions-5cd8f697.js.map +0 -1
  275. package/dist/esm/index-52b0408e.js.map +0 -1
  276. package/dist/esm/scroll-e5825d8d.js.map +0 -1
  277. package/dist/esm/table.worker-72318b56.js.map +0 -1
  278. package/dist/esm/transitions-71cca3ed.js.map +0 -1
  279. package/dist/nano-components/p-167b9165.js +0 -5
  280. package/dist/nano-components/p-167b9165.js.map +0 -1
  281. package/dist/nano-components/p-1aff5304.entry.js +0 -5
  282. package/dist/nano-components/p-1aff5304.entry.js.map +0 -1
  283. package/dist/nano-components/p-45b7682a.js +0 -5
  284. package/dist/nano-components/p-6ef53fa1.js +0 -6
  285. package/dist/nano-components/p-6ef53fa1.js.map +0 -1
  286. package/dist/nano-components/p-7733f1f8.entry.js +0 -5
  287. package/dist/nano-components/p-7733f1f8.entry.js.map +0 -1
  288. package/dist/nano-components/p-8332890e.js +0 -5
  289. package/dist/nano-components/p-8c04640c.entry.js +0 -5
  290. package/dist/nano-components/p-d518b939.js +0 -5
  291. package/dist/nano-components/p-e44332c2.entry.js +0 -5
  292. package/dist/nano-components/p-e44332c2.entry.js.map +0 -1
  293. package/dist/nano-components/p-f486c940.entry.js +0 -5
  294. package/dist/nano-components/p-fa676bc6.entry.js +0 -5
  295. package/dist/nano-components/p-fa676bc6.entry.js.map +0 -1
  296. /package/dist/nano-components/{p-f25d2e90.entry.js.map → p-053eb1df.entry.js.map} +0 -0
  297. /package/dist/nano-components/{p-ad3ddbc8.entry.js.map → p-068bdd89.entry.js.map} +0 -0
  298. /package/dist/nano-components/{p-e4505f00.entry.js.map → p-0d1ca590.entry.js.map} +0 -0
  299. /package/dist/nano-components/{p-ece694af.entry.js.map → p-104b7e3a.entry.js.map} +0 -0
  300. /package/dist/nano-components/{p-75df97c2.entry.js.map → p-107d4549.entry.js.map} +0 -0
  301. /package/dist/nano-components/{p-8332890e.js.map → p-1b7bad31.entry.js.map} +0 -0
  302. /package/dist/nano-components/{p-93bece01.entry.js.map → p-1c6c94cb.entry.js.map} +0 -0
  303. /package/dist/nano-components/{p-a9beb006.entry.js.map → p-207a1fbc.entry.js.map} +0 -0
  304. /package/dist/nano-components/{p-dab8526f.entry.js.map → p-288dbe6b.entry.js.map} +0 -0
  305. /package/dist/nano-components/{p-7b21ec0b.entry.js.map → p-30d55046.entry.js.map} +0 -0
  306. /package/dist/nano-components/{p-4c5e0c9e.js.map → p-42e7f253.js.map} +0 -0
  307. /package/dist/nano-components/{p-378fe272.entry.js.map → p-57085052.entry.js.map} +0 -0
  308. /package/dist/nano-components/{p-8f888280.entry.js.map → p-578f5e8d.entry.js.map} +0 -0
  309. /package/dist/nano-components/{p-17eebe94.entry.js.map → p-583d8d70.entry.js.map} +0 -0
  310. /package/dist/nano-components/{p-6bb4545b.entry.js.map → p-5984ae16.entry.js.map} +0 -0
  311. /package/dist/nano-components/{p-76d8a8a8.js.map → p-5ac74848.js.map} +0 -0
  312. /package/dist/nano-components/{p-ebb61a70.entry.js.map → p-5d466a58.entry.js.map} +0 -0
  313. /package/dist/nano-components/{p-d518b939.js.map → p-60a8c896.js.map} +0 -0
  314. /package/dist/nano-components/{p-e113074e.entry.js.map → p-68928c59.entry.js.map} +0 -0
  315. /package/dist/nano-components/{p-3667832c.entry.js.map → p-7304107c.entry.js.map} +0 -0
  316. /package/dist/nano-components/{p-16e45583.entry.js.map → p-76a650b1.entry.js.map} +0 -0
  317. /package/dist/nano-components/{p-09751447.entry.js.map → p-7d6065c6.entry.js.map} +0 -0
  318. /package/dist/nano-components/{p-07b6af21.entry.js.map → p-935aef3d.entry.js.map} +0 -0
  319. /package/dist/nano-components/{p-8065d85b.entry.js.map → p-93cfbdb6.entry.js.map} +0 -0
  320. /package/dist/nano-components/{p-b65e0e63.js.map → p-9ebbb814.js.map} +0 -0
  321. /package/dist/nano-components/{p-a26a7de3.entry.js.map → p-a1c0afb6.entry.js.map} +0 -0
  322. /package/dist/nano-components/{p-76ab079e.entry.js.map → p-a5a560e7.entry.js.map} +0 -0
  323. /package/dist/nano-components/{p-9d1432be.js.map → p-a6ff5ca6.js.map} +0 -0
  324. /package/dist/nano-components/{p-62e3646b.entry.js.map → p-ac0ac58f.entry.js.map} +0 -0
  325. /package/dist/nano-components/{p-63f1e229.entry.js.map → p-b6306aff.entry.js.map} +0 -0
  326. /package/dist/nano-components/{p-3e7153c8.entry.js.map → p-cba50c3e.entry.js.map} +0 -0
  327. /package/dist/nano-components/{p-ce07df57.entry.js.map → p-cd2f5e97.entry.js.map} +0 -0
  328. /package/dist/nano-components/{p-dc88e52b.entry.js.map → p-d792f692.entry.js.map} +0 -0
  329. /package/dist/nano-components/{p-8c04640c.entry.js.map → p-d98c6a62.js.map} +0 -0
  330. /package/dist/nano-components/{p-47866646.entry.js.map → p-e41baa11.entry.js.map} +0 -0
  331. /package/dist/nano-components/{p-9be2cba5.entry.js.map → p-e43f76c8.entry.js.map} +0 -0
  332. /package/dist/nano-components/{p-7f545755.entry.js.map → p-eab09335.entry.js.map} +0 -0
  333. /package/dist/nano-components/{p-a20d2028.entry.js.map → p-f93bd976.entry.js.map} +0 -0
  334. /package/dist/nano-components/{p-36a2f1c0.entry.js.map → p-fe7a0158.entry.js.map} +0 -0
  335. /package/dist/nano-components/{p-6a5ae656.entry.js.map → p-fecb72b9.entry.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Web Components for Nanopore digital Web Apps
3
3
  */
4
- import { h } from './index-52b0408e.js';
4
+ import { h } from './index-dad5627b.js';
5
5
 
6
6
  const renderLabel = ({ label, hasLabelSlot, controlId, labelId, floatLabel, placeholder, hideLabel, hasValue, rtl, showCharCount, maxlength, charCount, }) => {
7
7
  if (!label && !hasLabelSlot)
@@ -79,4 +79,4 @@ const FormControl = (props, children) => {
79
79
 
80
80
  export { FormControlWrap as F, FormControl as a };
81
81
 
82
- //# sourceMappingURL=form-control-4f3a88a1.js.map
82
+ //# sourceMappingURL=form-control-269ba84f.js.map
@@ -1 +1 @@
1
- {"file":"form-control-4f3a88a1.js","mappings":";;;;;AAyCA,MAAM,WAAW,GAAG,CAAC,EACnB,KAAK,EACL,YAAY,EACZ,SAAS,EACT,OAAO,EACP,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,GAAG,EACH,aAAa,EACb,SAAS,EACT,SAAS,GACE;EACX,IAAI,CAAC,KAAK,IAAI,CAAC,YAAY;IAAE,OAAO;EACpC,IAAI,UAAU,EAAE;IACd,QACE,aAAO,KAAK,EAAC,wBAAwB,EAAC,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,OAAO;MAClE,KAAK,IAAI,KAAK;MACd,CAAC,KAAK,IAAI,YAAY,IAAI,YAAM,IAAI,EAAC,OAAO,GAAG;MAC/C,aAAa,KACZ,YAAM,KAAK,EAAC,4BAA4B,IACrC,SAAS,GAAG,IAAI,SAAS,IAAI,SAAS,EAAE,GAAG,IAAI,SAAS,EAAE,CACtD,CACR,CACK,EACR;GACH;OAAM;IACL,QACE,aACE,KAAK,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,eAAe,EAAE,SAAS,EAAE,EAC/D,OAAO,EAAE,SAAS,EAClB,EAAE,EAAE,OAAO;MAEX,WAAK,KAAK,EAAC,uBAAuB;QAC/B,WAAW,IAAI,QAAQ,IAAI,GAAG,KAC7B,YAAM,KAAK,EAAC,8BAA8B;UAAE,WAAW;gBAAW,CACnE;QACD,YAAM,KAAK,EAAC,sBAAsB;UAC/B,KAAK,IAAI,KAAK;UACd,CAAC,KAAK,IAAI,YAAY,IAAI,YAAM,IAAI,EAAC,OAAO,GAAG,CAC3C;QACN,WAAW,IAAI,QAAQ,IAAI,CAAC,GAAG,KAC9B,YAA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AG,CAClB,CACF,KAEN,EAAE,CACH,CACG;IACL,gBAAgB,IACf,WAAK,KAAK,EAAC,uBAAuB,EAAC,EAAE,EAAE,WAAW;MAChD,YAAM,IAAI,EAAC,YAAY,GAAG,CACtB,KAEN,EAAE,CACH,CACO,EACV;AACJ,EAAE;MAEW,WAAW,GAA0C,CAChE,KAAuB,EACvB,QAAQ;EAER,MAAM,EACJ,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,GAAG,EACH,OAAO,EACP,YAAY,EACZ,SAAS,GACV,GAAG,KAAK,CAAC;EACV,MAAM,YAAY,GAAG;IACnB,OAAO,CAAC,QAAQ,EAAE,CAAC;GACpB,CAAC;EAEF,QACE,WACE,KAAK,EAAC,uBAAuB,EAC7B,GAAG,EAAE,CAAC,EAAE;MACN,IAAI,GAAG;QAAE,GAAG,CAAC,EAAE,CAAC,CAAC;KAClB;IAED,YAAM,KAAK,EAAC,uBAAuB;MACjC,YAAM,IAAI,EAAC,OAAO,GAAG;MACpB,SAAS,CACL;IACN,QAAQ;IACR,YAAY,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,KACrC,cACE,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,2BAA2B,EACjC,QAAQ,EAAC,IAAI,EACb,YAAY,EAAE,WAAW,EACzB,WAAW,EAAE,WAAW;MAExB,iBAAW,IAAI,EAAC,aAAa,GAAa,CACnC,CACV;IACD,YAAM,KAAK,EAAC,2BAA2B,EAAC,OAAO,EAAE,YAAY;MAC3D,YAAM,IAAI,EAAC,WAAW,GAAG;MACxB,YAAY,CACR;IACP,YAAM,KAAK,EAAC,qBAAqB;MAC/B,YAAM,IAAI,EAAC,KAAK,GAAG;MAClB,OAAO,CACH,CACH,EACN;AACJ;;;;","names":[],"sources":["./src/components/form-control/form-control.tsx"],"sourcesContent":["import { FunctionalComponent, h, VNode } from '@stencil/core';\nimport type { TextFieldTypes } from '../../interface';\n\ninterface FormControlWrapProps {\n rtl: boolean;\n floatLabel: boolean;\n labelId: string;\n label: string;\n moreId: string;\n helperEndId: string;\n type?: TextFieldTypes;\n showInlineError: boolean;\n hasHelperSlot: boolean;\n errorMessage: string;\n controlId: string;\n hasLabelSlot: boolean;\n hideLabel: boolean;\n placeholder: string;\n hasValue: boolean;\n showCharCount?: boolean;\n maxlength?: number;\n charCount?: number;\n hasHelperEndSlot?: boolean;\n}\n\ninterface FormControlProps {\n clearControl: boolean;\n onClearText?: () => void;\n readonly: boolean;\n disabled: boolean;\n control: HTMLNanoInputElement | HTMLNanoSelectElement;\n ref?: (elm?: HTMLElement) => void;\n endSlot?: VNode;\n endValueSlot?: VNode;\n startSlot?: VNode;\n}\n\ninterface LabelProps extends FormControlWrapProps {\n rtl: boolean;\n}\n\nconst renderLabel = ({\n label,\n hasLabelSlot,\n controlId,\n labelId,\n floatLabel,\n placeholder,\n hideLabel,\n hasValue,\n rtl,\n showCharCount,\n maxlength,\n charCount,\n}: LabelProps) => {\n if (!label && !hasLabelSlot) return;\n if (floatLabel) {\n return (\n <label class=\"form-ctrl__float-label\" htmlFor={controlId} id={labelId}>\n {label && label}\n {!label && hasLabelSlot && <slot name=\"label\" />}\n {showCharCount && (\n <span class=\"form-ctrl__label-charcount\">\n {maxlength ? ` ${charCount}/${maxlength}` : ` ${charCount}`}\n </span>\n )}\n </label>\n );\n } else {\n return (\n <label\n class={{ 'form-ctrl__label': true, 'visually-hide': hideLabel }}\n htmlFor={controlId}\n id={labelId}\n >\n <div class=\"form-ctrl__label-wrap\">\n {placeholder && hasValue && rtl && (\n <span class=\"form-ctrl__label-placeholder\">{placeholder} / </span>\n )}\n <span class=\"form-ctrl__labeltext\">\n {label && label}\n {!label && hasLabelSlot && <slot name=\"label\" />}\n </span>\n {placeholder && hasValue && !rtl && (\n <span class=\"form-ctrl__label-placeholder\"> / {placeholder}</span>\n )}\n </div>\n {showCharCount && (\n <span class=\"form-ctrl__label-charcount\">\n {maxlength\n ? maxlength - charCount + ' left'\n : charCount + ' characters'}\n </span>\n )}\n </label>\n );\n }\n};\n\nexport const FormControlWrap: FunctionalComponent<FormControlWrapProps> = (\n props: FormControlWrapProps,\n children\n) => {\n const {\n rtl,\n floatLabel,\n label,\n moreId,\n helperEndId,\n type,\n hasHelperSlot,\n showInlineError,\n errorMessage,\n hasHelperEndSlot,\n } = props;\n\n const MainTag = hasHelperEndSlot ? 'nano-resize-observe' : 'div';\n\n return (\n <MainTag\n states=\"350w has-enough-width\"\n class={{\n 'has-label': label !== null && !floatLabel,\n 'has-float-label': label !== null && floatLabel,\n 'has-helper-end': hasHelperEndSlot,\n rtl,\n 'form-ctrl': true,\n }}\n >\n <div class=\"form-ctrl__wrapper\">\n {!floatLabel ? renderLabel({ ...props }) : ''}\n <div\n class={{\n 'form-ctrl__input': true,\n 'form-ctrl__textarea': type === 'textarea',\n }}\n >\n {floatLabel && renderLabel({ ...props, rtl })}\n {children}\n </div>\n {showInlineError || hasHelperSlot ? (\n <div class=\"form-ctrl__more\" id={moreId}>\n {!!showInlineError ? (\n <div class=\"form-ctrl__error\" aria-live=\"polite\">\n {errorMessage}\n </div>\n ) : (\n ''\n )}\n <div class=\"form-ctrl__helper\">\n <slot name=\"helper\" />\n </div>\n </div>\n ) : (\n ''\n )}\n </div>\n {hasHelperEndSlot ? (\n <div class=\"form-ctrl__helper-end\" id={helperEndId}>\n <slot name=\"helper-end\" />\n </div>\n ) : (\n ''\n )}\n </MainTag>\n );\n};\n\nexport const FormControl: FunctionalComponent<FormControlProps> = (\n props: FormControlProps,\n children\n) => {\n const {\n clearControl,\n onClearText,\n readonly,\n disabled,\n control,\n ref,\n endSlot,\n endValueSlot,\n startSlot,\n } = props;\n const clickThrough = () => {\n control.setFocus();\n };\n\n return (\n <div\n class=\"form-ctrl__input-wrap\"\n ref={(el) => {\n if (ref) ref(el);\n }}\n >\n <span class=\"form-ctrl__slot-start\">\n <slot name=\"start\" />\n {startSlot}\n </span>\n {children}\n {clearControl && !readonly && !disabled && (\n <button\n type=\"button\"\n class=\"icon form-ctrl__clear-btn\"\n tabindex=\"-1\"\n onTouchStart={onClearText}\n onMouseDown={onClearText}\n >\n <nano-icon name=\"light/times\"></nano-icon>\n </button>\n )}\n <span class=\"form-ctrl__slot-value-end\" onClick={clickThrough}>\n <slot name=\"value-end\" />\n {endValueSlot}\n </span>\n <span class=\"form-ctrl__slot-end\">\n <slot name=\"end\" />\n {endSlot}\n </span>\n </div>\n );\n};\n"],"version":3}
1
+ {"file":"form-control-269ba84f.js","mappings":";;;;;AAyCA,MAAM,WAAW,GAAG,CAAC,EACnB,KAAK,EACL,YAAY,EACZ,SAAS,EACT,OAAO,EACP,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,GAAG,EACH,aAAa,EACb,SAAS,EACT,SAAS,GACE;EACX,IAAI,CAAC,KAAK,IAAI,CAAC,YAAY;IAAE,OAAO;EACpC,IAAI,UAAU,EAAE;IACd,QACE,aAAO,KAAK,EAAC,wBAAwB,EAAC,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,OAAO;MAClE,KAAK,IAAI,KAAK;MACd,CAAC,KAAK,IAAI,YAAY,IAAI,YAAM,IAAI,EAAC,OAAO,GAAG;MAC/C,aAAa,KACZ,YAAM,KAAK,EAAC,4BAA4B,IACrC,SAAS,GAAG,IAAI,SAAS,IAAI,SAAS,EAAE,GAAG,IAAI,SAAS,EAAE,CACtD,CACR,CACK,EACR;GACH;OAAM;IACL,QACE,aACE,KAAK,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,eAAe,EAAE,SAAS,EAAE,EAC/D,OAAO,EAAE,SAAS,EAClB,EAAE,EAAE,OAAO;MAEX,WAAK,KAAK,EAAC,uBAAuB;QAC/B,WAAW,IAAI,QAAQ,IAAI,GAAG,KAC7B,YAAM,KAAK,EAAC,8BAA8B;UAAE,WAAW;gBAAW,CACnE;QACD,YAAM,KAAK,EAAC,sBAAsB;UAC/B,KAAK,IAAI,KAAK;UACd,CAAC,KAAK,IAAI,YAA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"],"sourcesContent":["import { FunctionalComponent, h, VNode } from '@stencil/core';\nimport type { TextFieldTypes } from '../../interface';\n\ninterface FormControlWrapProps {\n rtl: boolean;\n floatLabel: boolean;\n labelId: string;\n label: string;\n moreId: string;\n helperEndId: string;\n type?: TextFieldTypes;\n showInlineError: boolean;\n hasHelperSlot: boolean;\n errorMessage: string;\n controlId: string;\n hasLabelSlot: boolean;\n hideLabel: boolean;\n placeholder: string;\n hasValue: boolean;\n showCharCount?: boolean;\n maxlength?: number;\n charCount?: number;\n hasHelperEndSlot?: boolean;\n}\n\ninterface FormControlProps {\n clearControl: boolean;\n onClearText?: () => void;\n readonly: boolean;\n disabled: boolean;\n control: HTMLNanoInputElement | HTMLNanoSelectElement;\n ref?: (elm?: HTMLElement) => void;\n endSlot?: VNode;\n endValueSlot?: VNode;\n startSlot?: VNode;\n}\n\ninterface LabelProps extends FormControlWrapProps {\n rtl: boolean;\n}\n\nconst renderLabel = ({\n label,\n hasLabelSlot,\n controlId,\n labelId,\n floatLabel,\n placeholder,\n hideLabel,\n hasValue,\n rtl,\n showCharCount,\n maxlength,\n charCount,\n}: LabelProps) => {\n if (!label && !hasLabelSlot) return;\n if (floatLabel) {\n return (\n <label class=\"form-ctrl__float-label\" htmlFor={controlId} id={labelId}>\n {label && label}\n {!label && hasLabelSlot && <slot name=\"label\" />}\n {showCharCount && (\n <span class=\"form-ctrl__label-charcount\">\n {maxlength ? ` ${charCount}/${maxlength}` : ` ${charCount}`}\n </span>\n )}\n </label>\n );\n } else {\n return (\n <label\n class={{ 'form-ctrl__label': true, 'visually-hide': hideLabel }}\n htmlFor={controlId}\n id={labelId}\n >\n <div class=\"form-ctrl__label-wrap\">\n {placeholder && hasValue && rtl && (\n <span class=\"form-ctrl__label-placeholder\">{placeholder} / </span>\n )}\n <span class=\"form-ctrl__labeltext\">\n {label && label}\n {!label && hasLabelSlot && <slot name=\"label\" />}\n </span>\n {placeholder && hasValue && !rtl && (\n <span class=\"form-ctrl__label-placeholder\"> / {placeholder}</span>\n )}\n </div>\n {showCharCount && (\n <span class=\"form-ctrl__label-charcount\">\n {maxlength\n ? maxlength - charCount + ' left'\n : charCount + ' characters'}\n </span>\n )}\n </label>\n );\n }\n};\n\nexport const FormControlWrap: FunctionalComponent<FormControlWrapProps> = (\n props: FormControlWrapProps,\n children\n) => {\n const {\n rtl,\n floatLabel,\n label,\n moreId,\n helperEndId,\n type,\n hasHelperSlot,\n showInlineError,\n errorMessage,\n hasHelperEndSlot,\n } = props;\n\n const MainTag = hasHelperEndSlot ? 'nano-resize-observe' : 'div';\n\n return (\n <MainTag\n states=\"350w has-enough-width\"\n class={{\n 'has-label': label !== null && !floatLabel,\n 'has-float-label': label !== null && floatLabel,\n 'has-helper-end': hasHelperEndSlot,\n rtl,\n 'form-ctrl': true,\n }}\n >\n <div class=\"form-ctrl__wrapper\">\n {!floatLabel ? renderLabel({ ...props }) : ''}\n <div\n class={{\n 'form-ctrl__input': true,\n 'form-ctrl__textarea': type === 'textarea',\n }}\n >\n {floatLabel && renderLabel({ ...props, rtl })}\n {children}\n </div>\n {showInlineError || hasHelperSlot ? (\n <div class=\"form-ctrl__more\" id={moreId}>\n {!!showInlineError ? (\n <div class=\"form-ctrl__error\" aria-live=\"polite\">\n {errorMessage}\n </div>\n ) : (\n ''\n )}\n <div class=\"form-ctrl__helper\">\n <slot name=\"helper\" />\n </div>\n </div>\n ) : (\n ''\n )}\n </div>\n {hasHelperEndSlot ? (\n <div class=\"form-ctrl__helper-end\" id={helperEndId}>\n <slot name=\"helper-end\" />\n </div>\n ) : (\n ''\n )}\n </MainTag>\n );\n};\n\nexport const FormControl: FunctionalComponent<FormControlProps> = (\n props: FormControlProps,\n children\n) => {\n const {\n clearControl,\n onClearText,\n readonly,\n disabled,\n control,\n ref,\n endSlot,\n endValueSlot,\n startSlot,\n } = props;\n const clickThrough = () => {\n control.setFocus();\n };\n\n return (\n <div\n class=\"form-ctrl__input-wrap\"\n ref={(el) => {\n if (ref) ref(el);\n }}\n >\n <span class=\"form-ctrl__slot-start\">\n <slot name=\"start\" />\n {startSlot}\n </span>\n {children}\n {clearControl && !readonly && !disabled && (\n <button\n type=\"button\"\n class=\"icon form-ctrl__clear-btn\"\n tabindex=\"-1\"\n onTouchStart={onClearText}\n onMouseDown={onClearText}\n >\n <nano-icon name=\"light/times\"></nano-icon>\n </button>\n )}\n <span class=\"form-ctrl__slot-value-end\" onClick={clickThrough}>\n <slot name=\"value-end\" />\n {endValueSlot}\n </span>\n <span class=\"form-ctrl__slot-end\">\n <slot name=\"end\" />\n {endSlot}\n </span>\n </div>\n );\n};\n"],"version":3}
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Web Components for Nanopore digital Web Apps
3
3
  */
4
- import { e as getRenderingRef, f as forceUpdate } from './index-52b0408e.js';
4
+ import { e as getRenderingRef, f as forceUpdate } from './index-dad5627b.js';
5
5
 
6
6
  const appendToMap = (map, propName, value) => {
7
7
  const items = map.get(propName);
@@ -189,4 +189,4 @@ const createStore = (defaultState, shouldUpdate) => {
189
189
 
190
190
  export { createStore as c };
191
191
 
192
- //# sourceMappingURL=index-728dda31.js.map
192
+ //# sourceMappingURL=index-5d0f4704.js.map
@@ -1 +1 @@
1
- {"file":"index-728dda31.js","mappings":";;;;;AAEA,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,KAAK;AAC9C,IAAI,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACpC,IAAI,IAAI,CAAC,KAAK,EAAE;AAChB,QAAQ,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AACnC,KAAK;AACL,SAAS,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AACrC,QAAQ,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1B,KAAK;AACL,CAAC,CAAC;AACF,MAAM,QAAQ,GAAG,CAAC,E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AC,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;AAClE,KAAK,CAAC;AACN,IAAI,OAAO;AACX,QAAQ,KAAK;AACb,QAAQ,GAAG;AACX,QAAQ,GAAG;AACX,QAAQ,EAAE;AACV,QAAQ,QAAQ;AAChB,QAAQ,GAAG;AACX,QAAQ,OAAO;AACf,QAAQ,KAAK;AACb,QAAQ,WAAW;AACnB,KAAK,CAAC;AACN,CAAC,CAAC;AACF,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,IAAI,KAAK;AACzC,IAAI,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACtC,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,KAAK,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AAC/C,QAAQ,KAAK,CAAC,MAAM,EAAE,CAAC;AACvB,KAAK;AACL,CAAC,CAAC;AACF;AACK,MAAC,WAAW,GAAG,CAAC,YAAY,EAAE,YAAY,KAAK;AACpD,IAAI,MAAM,GAAG,GAAG,mBAAmB,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;AAChE,IAAI,GAAG,CAAC,GAAG,CAAC,mBAAmB,EAAE,CAAC,CAAC;AACnC,IAAI,OAAO,GAAG,CAAC;AACf;;;;","names":[],"sources":["./node_modules/@stencil/store/dist/index.mjs"],"sourcesContent":["import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n let states = new Map(Object.entries(defaultState !== null && defaultState !== void 0 ? defaultState : {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n states = new Map(Object.entries(defaultState !== null && defaultState !== void 0 ? defaultState : {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(defaultState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n const unReset = on('reset', () => cb(defaultState[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n"],"version":3}
1
+ {"file":"index-5d0f4704.js","mappings":";;;;;AAEA,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,KAAK;AAC9C,IAAI,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACpC,IAAI,IAAI,CAAC,KAAK,EAAE;AAChB,QAAQ,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,CAA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AAE,CAAC,CAAC;AACxD,KAAK,CAAC;AACN,IAAI,MAAM,WAAW,GAAG,CAAC,GAAG,KAAK;AACjC,QAAQ,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACzC,QAAQ,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;AAClE,KAAK,CAAC;AACN,IAAI,OAAO;AACX,QAAQ,KAAK;AACb,QAAQ,GAAG;AACX,QAAQ,GAAG;AACX,QAAQ,EAAE;AACV,QAAQ,QAAQ;AAChB,QAAQ,GAAG;AACX,QAAQ,OAAO;AACf,QAAQ,KAAK;AACb,QAAQ,WAAW;AACnB,KAAK,CAAC;AACN,CAAC,CAAC;AACF,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,IAAI,KAAK;AACzC,IAAI,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACtC,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,KAAK,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AAC/C,QAAQ,KAAK,CAAC,MAAM,EAAE,CAAC;AACvB,KAAK;AACL,CAAC,CAAC;AACF;AACK,MAAC,WAAW,GAAG,CAAC,YAAY,EAAE,YAAY,KAAK;AACpD,IAAI,MAAM,GAAG,GAAG,mBAAmB,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;AAChE,IAAI,GAAG,CAAC,GAAG,CAAC,mBAAmB,EAAE,CAAC,CAAC;AACnC,IAAI,OAAO,GAAG,CAAC;AACf;;;;","names":[],"sources":["./node_modules/@stencil/store/dist/index.mjs"],"sourcesContent":["import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n let states = new Map(Object.entries(defaultState !== null && defaultState !== void 0 ? defaultState : {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n states = new Map(Object.entries(defaultState !== null && defaultState !== void 0 ? defaultState : {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(defaultState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n const unReset = on('reset', () => cb(defaultState[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n"],"version":3}
@@ -48,6 +48,7 @@ const CONTENT_REF_ID = 'r';
48
48
  const ORG_LOCATION_ID = 'o';
49
49
  const SLOT_NODE_ID = 's';
50
50
  const TEXT_NODE_ID = 't';
51
+ const COMMENT_NODE_ID = 'c';
51
52
  const HYDRATE_ID = 's-id';
52
53
  const HYDRATED_STYLE_ID = 'sty-id';
53
54
  const HYDRATE_CHILD_ID = 'c-id';
@@ -335,8 +336,8 @@ const updateFallbackSlotVisibility = (node) => {
335
336
  updateFallbackSlotVisibility(childNodes[i]);
336
337
  }
337
338
  };
338
- const patchPseudoShadowDom = (HostElementPrototype) => {
339
- patchChildNodes(HostElementPrototype);
339
+ const patchPseudoShadowDom = (HostElementPrototype, DescriptorPrototype) => {
340
+ patchChildNodes(HostElementPrototype, DescriptorPrototype);
340
341
  patchInsertBefore(HostElementPrototype);
341
342
  patchAppendChild(HostElementPrototype);
342
343
  patchAppend(HostElementPrototype);
@@ -345,9 +346,9 @@ const patchPseudoShadowDom = (HostElementPrototype) => {
345
346
  patchInsertAdjacentText(HostElementPrototype);
346
347
  patchInsertAdjacentElement(HostElementPrototype);
347
348
  patchReplaceChildren(HostElementPrototype);
348
- patchInnerHTML(HostElementPrototype);
349
- patchInnerText(HostElementPrototype);
350
- patchTextContent(HostElementPrototype);
349
+ patchInnerHTML(HostElementPrototype, DescriptorPrototype);
350
+ patchInnerText(HostElementPrototype, DescriptorPrototype);
351
+ patchTextContent(HostElementPrototype, DescriptorPrototype);
351
352
  };
352
353
  ////// non-shadow host component patches
353
354
  /**
@@ -399,7 +400,7 @@ const patchCloneNode = (HostElementPrototype) => {
399
400
  * (`childNodes`, `children`, `firstChild`, `lastChild` and `childElementCount`)
400
401
  * @param HostElementPrototype
401
402
  */
402
- const patchChildNodes = (HostElementPrototype) => {
403
+ const patchChildNodes = (HostElementPrototype, DescriptorPrototype) => {
403
404
  if (!globalThis.Node)
404
405
  return;
405
406
  class FakeNodeList extends Array {
@@ -407,17 +408,17 @@ const patchChildNodes = (HostElementPrototype) => {
407
408
  return this[n];
408
409
  }
409
410
  }
410
- let childNodesDesc = Object.getOwnPropertyDescriptor(Node.prototype, 'childNodes');
411
+ let childNodesDesc = Object.getOwnPropertyDescriptor(DescriptorPrototype || Node.prototype, 'childNodes');
411
412
  if (!childNodesDesc) {
412
413
  childNodesDesc = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Node.prototype), 'childNodes');
413
414
  }
414
415
  if (childNodesDesc)
415
416
  Object.defineProperty(HostElementPrototype, '__childNodes', childNodesDesc);
416
- let childrenDesc = Object.getOwnPropertyDescriptor(Element.prototype, 'children');
417
+ let childrenDesc = Object.getOwnPropertyDescriptor(DescriptorPrototype || Element.prototype, 'children');
417
418
  // MockNode won't have these
418
419
  if (childrenDesc)
419
420
  Object.defineProperty(HostElementPrototype, '__children', childrenDesc);
420
- const childElementCountDesc = Object.getOwnPropertyDescriptor(Element.prototype, 'childElementCount');
421
+ const childElementCountDesc = Object.getOwnPropertyDescriptor(DescriptorPrototype || Element.prototype, 'childElementCount');
421
422
  if (childElementCountDesc)
422
423
  Object.defineProperty(HostElementPrototype, '__childElementCount', childElementCountDesc);
423
424
  Object.defineProperty(HostElementPrototype, 'children', {
@@ -468,10 +469,10 @@ const patchChildNodes = (HostElementPrototype) => {
468
469
  * Patches the inner html accessors of a non-shadow component
469
470
  * @param HostElementPrototype the host `Element` to be patched
470
471
  */
471
- const patchInnerHTML = (HostElementPrototype) => {
472
+ const patchInnerHTML = (HostElementPrototype, DescriptorPrototype) => {
472
473
  if (!globalThis.Element)
473
474
  return;
474
- let descriptor = Object.getOwnPropertyDescriptor(Element.prototype, 'innerHTML');
475
+ let descriptor = Object.getOwnPropertyDescriptor(DescriptorPrototype || Element.prototype, 'innerHTML');
475
476
  // on IE it's on HTMLElement.prototype
476
477
  if (!descriptor)
477
478
  descriptor = Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'innerHTML');
@@ -486,8 +487,12 @@ const patchInnerHTML = (HostElementPrototype) => {
486
487
  },
487
488
  set: function (value) {
488
489
  this.childNodes.forEach((node) => {
489
- if (node['s-ol'])
490
- node['s-ol'].remove();
490
+ if (node['s-ol']) {
491
+ try {
492
+ node['s-ol'].remove();
493
+ }
494
+ catch (e) { }
495
+ }
491
496
  node.remove();
492
497
  });
493
498
  this.insertAdjacentHTML('beforeend', value);
@@ -498,10 +503,10 @@ const patchInnerHTML = (HostElementPrototype) => {
498
503
  * Patches the inner text accessors of a non-shadow component
499
504
  * @param HostElementPrototype the host `Element` to be patched
500
505
  */
501
- const patchInnerText = (HostElementPrototype) => {
506
+ const patchInnerText = (HostElementPrototype, DescriptorPrototype) => {
502
507
  if (!globalThis.Element)
503
508
  return;
504
- let descriptor = Object.getOwnPropertyDescriptor(Element.prototype, 'innerText');
509
+ let descriptor = Object.getOwnPropertyDescriptor(DescriptorPrototype || Element.prototype, 'innerText');
505
510
  // on IE it's on HTMLElement.prototype
506
511
  if (!descriptor)
507
512
  descriptor = Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'innerText');
@@ -533,10 +538,10 @@ const patchInnerText = (HostElementPrototype) => {
533
538
  * Patches the text content accessors of a non-shadow component
534
539
  * @param HostElementPrototype the host `Element` to be patched
535
540
  */
536
- const patchTextContent = (HostElementPrototype) => {
541
+ const patchTextContent = (HostElementPrototype, DescriptorPrototype) => {
537
542
  if (!globalThis.Node)
538
543
  return;
539
- const descriptor = Object.getOwnPropertyDescriptor(Node.prototype, 'textContent');
544
+ const descriptor = Object.getOwnPropertyDescriptor(DescriptorPrototype || Node.prototype, 'textContent');
540
545
  // MockNode won't have these
541
546
  if (descriptor)
542
547
  Object.defineProperty(HostElementPrototype, '__textContent', descriptor);
@@ -787,10 +792,10 @@ const patchNextPrev = (NodePrototype) => {
787
792
  * Patches the `nextSibling` accessor of a non-shadow slotted node
788
793
  * @param NodePrototype the slotted node to be patched
789
794
  */
790
- const patchNextSibling = (NodePrototype) => {
795
+ const patchNextSibling = (NodePrototype, DescriptorPrototype) => {
791
796
  if (!NodePrototype || NodePrototype.__nextSibling)
792
797
  return;
793
- const descriptor = Object.getOwnPropertyDescriptor(Node.prototype, 'nextSibling');
798
+ const descriptor = Object.getOwnPropertyDescriptor(DescriptorPrototype || Node.prototype, 'nextSibling');
794
799
  // MockNode might not have these
795
800
  if (descriptor)
796
801
  Object.defineProperty(NodePrototype, '__nextSibling', descriptor);
@@ -813,10 +818,10 @@ const patchNextSibling = (NodePrototype) => {
813
818
  * Patches the `nextElementSibling` accessor of a non-shadow slotted node
814
819
  * @param NodePrototype the slotted node to be patched
815
820
  */
816
- const patchNextElementSibling = (ElementPrototype) => {
821
+ const patchNextElementSibling = (ElementPrototype, DescriptorPrototype) => {
817
822
  if (!ElementPrototype || ElementPrototype.__nextElementSibling || !ElementPrototype.nextSiblingElement)
818
823
  return;
819
- const descriptor = Object.getOwnPropertyDescriptor(Element.prototype, 'nextElementSibling');
824
+ const descriptor = Object.getOwnPropertyDescriptor(DescriptorPrototype || Element.prototype, 'nextElementSibling');
820
825
  // MockNode won't have these
821
826
  if (descriptor)
822
827
  Object.defineProperty(ElementPrototype, '__nextElementSibling', descriptor);
@@ -839,10 +844,10 @@ const patchNextElementSibling = (ElementPrototype) => {
839
844
  * Patches the `previousSibling` accessor of a non-shadow slotted node
840
845
  * @param NodePrototype the slotted node to be patched
841
846
  */
842
- const patchPreviousSibling = (NodePrototype) => {
847
+ const patchPreviousSibling = (NodePrototype, DescriptorPrototype) => {
843
848
  if (!NodePrototype || NodePrototype.__previousSibling)
844
849
  return;
845
- const descriptor = Object.getOwnPropertyDescriptor(Node.prototype, 'previousSibling');
850
+ const descriptor = Object.getOwnPropertyDescriptor(DescriptorPrototype || Node.prototype, 'previousSibling');
846
851
  // MockNode won't have these
847
852
  if (descriptor)
848
853
  Object.defineProperty(NodePrototype, '__previousSibling', descriptor);
@@ -865,10 +870,10 @@ const patchPreviousSibling = (NodePrototype) => {
865
870
  * Patches the `previousElementSibling` accessor of a non-shadow slotted node
866
871
  * @param ElementPrototype the slotted node to be patched
867
872
  */
868
- const patchPreviousElementSibling = (ElementPrototype) => {
873
+ const patchPreviousElementSibling = (ElementPrototype, DescriptorPrototype) => {
869
874
  if (!ElementPrototype || ElementPrototype.__previousElementSibling || !ElementPrototype.previousElementSibling)
870
875
  return;
871
- const descriptor = Object.getOwnPropertyDescriptor(Element.prototype, 'previousElementSibling');
876
+ const descriptor = Object.getOwnPropertyDescriptor(DescriptorPrototype || Element.prototype, 'previousElementSibling');
872
877
  // MockNode won't have these
873
878
  if (descriptor)
874
879
  Object.defineProperty(ElementPrototype, '__previousElementSibling', descriptor);
@@ -925,22 +930,42 @@ const patchRemoveChild = (ElementPrototype) => {
925
930
  };
926
931
  ////// Utils
927
932
  /**
928
- * When non-shadow component VDom re-renders,
929
- * they sometimes need a place to temporarily put their 'lightDOM' elements.
930
- * This function creates that node.
933
+ * Creates an empty text node to act as a forwarding address to a slotted node:
934
+ * 1) When non-shadow components re-render, they need a place to temporarily put 'lightDOM' elements.
935
+ * 2) Patched dom methods and accessors use this node to calculate what 'lightDOM' nodes are in the host.
931
936
  * @param newChild - A node that's going to be added to the component
932
937
  * @param slotNode - The slot node that the node will be added to
933
938
  */
934
- const addSlotRelocateNode = (newChild, slotNode) => {
939
+ const addSlotRelocateNode = (newChild, slotNode, order) => {
935
940
  if (newChild['s-ol'] && newChild['s-ol'].isConnected)
936
941
  return;
937
- const slotPlaceholder = document.createTextNode('');
938
- slotPlaceholder['s-nr'] = newChild;
942
+ const slottedNodeLocation = document.createTextNode('');
943
+ slottedNodeLocation['s-nr'] = newChild;
939
944
  if (slotNode['s-cr'] && slotNode['s-cr'].parentNode) {
940
- const appendChild = slotNode['s-cr'].parentNode.__appendChild || slotNode['s-cr'].parentNode.appendChild;
941
- appendChild.call(slotNode['s-cr'].parentNode, slotPlaceholder);
945
+ const parent = slotNode['s-cr'].parentNode;
946
+ const appendChild = parent.__appendChild || parent.appendChild;
947
+ if (typeof order !== 'undefined') {
948
+ slottedNodeLocation['s-oo'] = order;
949
+ const childNodes = (parent.__childNodes || parent.childNodes);
950
+ const slotRelocateNodes = [slottedNodeLocation];
951
+ childNodes.forEach((n) => {
952
+ if (n['s-nr'])
953
+ slotRelocateNodes.push(n);
954
+ });
955
+ slotRelocateNodes.sort((a, b) => {
956
+ if (!a['s-oo'] || a['s-oo'] < b['s-oo'])
957
+ return -1;
958
+ else if (!b['s-oo'] || b['s-oo'] < a['s-oo'])
959
+ return 1;
960
+ return 0;
961
+ });
962
+ slotRelocateNodes.forEach((n) => appendChild.call(slotNode['s-cr'].parentNode, n));
963
+ }
964
+ else {
965
+ appendChild.call(slotNode['s-cr'].parentNode, slottedNodeLocation);
966
+ }
942
967
  }
943
- newChild['s-ol'] = slotPlaceholder;
968
+ newChild['s-ol'] = slottedNodeLocation;
944
969
  };
945
970
  /**
946
971
  * Find the slot name of a given node
@@ -1046,11 +1071,17 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1046
1071
  // we're safe to move it now
1047
1072
  orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
1048
1073
  }
1049
- // Remove original location comment now regardless:
1074
+ // Remove original location / slot reference comment now regardless:
1050
1075
  // 1) Stops SSR frameworks complaining about mismatches
1051
1076
  // 2) is un-required for non-shadow, slotted nodes as
1052
1077
  // we'll add all the meta nodes we need when we deal with *all* slotted nodes ↓↓↓
1053
1078
  orgLocationNode.parentNode.removeChild(orgLocationNode);
1079
+ if (!shadowRoot) {
1080
+ // Add the original order of this node.
1081
+ // we'll use it later to make sure slotted nodes
1082
+ // get added in the right, original order
1083
+ node['s-oo'] = parseInt(childRenderNode.$nodeId$);
1084
+ }
1054
1085
  }
1055
1086
  // remove the original location from the map
1056
1087
  plt.$orgLocNodes$.delete(orgLocationId);
@@ -1099,11 +1130,11 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
1099
1130
  slottedItem.slot['s-cr'] = hostChildren[0];
1100
1131
  }
1101
1132
  // create our original location node
1102
- addSlotRelocateNode(slottedItem.node, slottedItem.slot);
1133
+ addSlotRelocateNode(slottedItem.node, slottedItem.slot, slottedItem.node['s-oo']);
1103
1134
  // patch this node for accessors like `nextSibling` (et al)
1104
1135
  patchNextPrev(slottedItem.node);
1105
1136
  }
1106
- if (hostEle.shadowRoot) {
1137
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
1107
1138
  // shadowDOM - move the item to the element root for
1108
1139
  // native slotting
1109
1140
  hostEle.appendChild(slottedItem.node);
@@ -1296,6 +1327,14 @@ const clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes
1296
1327
  }
1297
1328
  }
1298
1329
  }
1330
+ else if (childNodeType === COMMENT_NODE_ID) {
1331
+ childVNode.$elm$ = node.nextSibling;
1332
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* NODE_TYPE.CommentNode */) {
1333
+ childRenderNodes.push(childVNode);
1334
+ // remove the comment comment since it's no longer needed
1335
+ node.remove();
1336
+ }
1337
+ }
1299
1338
  else if (childVNode.$hostId$ === hostId) {
1300
1339
  // this comment node is specifically for this host id
1301
1340
  if (childNodeType === SLOT_NODE_ID) {
@@ -3516,6 +3555,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
3516
3555
  return import(
3517
3556
  /* webpackMode: "lazy" */
3518
3557
  './nano-menu-drawer.entry.js').then(processMod, consoleError);
3558
+ case 'nano-overflow-nav':
3559
+ return import(
3560
+ /* webpackMode: "lazy" */
3561
+ './nano-overflow-nav.entry.js').then(processMod, consoleError);
3519
3562
  case 'nano-range':
3520
3563
  return import(
3521
3564
  /* webpackMode: "lazy" */
@@ -3584,10 +3627,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
3584
3627
  return import(
3585
3628
  /* webpackMode: "lazy" */
3586
3629
  './nano-dropdown.entry.js').then(processMod, consoleError);
3587
- case 'nano-icon-button':
3588
- return import(
3589
- /* webpackMode: "lazy" */
3590
- './nano-icon-button.entry.js').then(processMod, consoleError);
3591
3630
  case 'nano-resize-observe_2':
3592
3631
  return import(
3593
3632
  /* webpackMode: "lazy" */
@@ -3596,6 +3635,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
3596
3635
  return import(
3597
3636
  /* webpackMode: "lazy" */
3598
3637
  './nano-spinner.entry.js').then(processMod, consoleError);
3638
+ case 'nano-icon-button':
3639
+ return import(
3640
+ /* webpackMode: "lazy" */
3641
+ './nano-icon-button.entry.js').then(processMod, consoleError);
3599
3642
  case 'nano-icon':
3600
3643
  return import(
3601
3644
  /* webpackMode: "lazy" */
@@ -3691,4 +3734,4 @@ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
3691
3734
 
3692
3735
  export { Build as B, Fragment as F, H, Host as a, bootstrapLazy as b, createEvent as c, readTask as d, getRenderingRef as e, forceUpdate as f, getElement as g, h, getAssetPath as i, consoleError as j, promiseResolve as p, registerInstance as r, setNonce as s, writeTask as w };
3693
3736
 
3694
- //# sourceMappingURL=index-52b0408e.js.map
3737
+ //# sourceMappingURL=index-dad5627b.js.map