@nanoporetech-digital/components 8.9.3 → 8.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/dist/cjs/{fade-DBKqk3wh.js → fade-CPjR03EH.js} +2 -2
  2. package/dist/cjs/{form-control-C6SZCtLY.js → form-control-Bq9Dlz-r.js} +1 -1
  3. package/dist/cjs/{fullscreen-lcdCtrG6.js → fullscreen-Bzjv2HGI.js} +2 -2
  4. package/dist/cjs/index-DGttnXif.js +4 -0
  5. package/dist/cjs/index.cjs.js +1 -1
  6. package/dist/cjs/{lazyload-BjSSEx9f.js → lazyload-BNO_n6W8.js} +2 -2
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/nano-accordion.cjs.entry.js +1 -1
  9. package/dist/cjs/nano-alert.cjs.entry.js +2 -2
  10. package/dist/cjs/nano-algolia-filter.cjs.entry.js +1 -1
  11. package/dist/cjs/nano-algolia-results.cjs.entry.js +1 -1
  12. package/dist/cjs/nano-algolia.cjs.entry.js +1 -1
  13. package/dist/cjs/nano-animation.cjs.entry.js +1 -1
  14. package/dist/cjs/nano-avatar_5.cjs.entry.js +22 -17
  15. package/dist/cjs/nano-card-carousel.cjs.entry.js +1 -1
  16. package/dist/cjs/nano-checkbox-group.cjs.entry.js +1 -1
  17. package/dist/cjs/nano-checkbox.cjs.entry.js +1 -1
  18. package/dist/cjs/nano-collapsible-comparison.cjs.entry.js +1 -1
  19. package/dist/cjs/nano-components.cjs.js +1 -1
  20. package/dist/cjs/{nano-data-table-8XMp5HkS.js → nano-data-table-B07AITiQ.js} +2 -2
  21. package/dist/cjs/nano-data-table.cjs.entry.js +2 -2
  22. package/dist/cjs/nano-datalist_3.cjs.entry.js +1 -1
  23. package/dist/cjs/nano-date-input.cjs.entry.js +1 -1
  24. package/dist/cjs/nano-date-picker_2.cjs.entry.js +2 -2
  25. package/dist/cjs/nano-details.cjs.entry.js +2 -2
  26. package/dist/cjs/nano-dialog.cjs.entry.js +2 -2
  27. package/dist/cjs/nano-dropdown_2.cjs.entry.js +2 -2
  28. package/dist/cjs/nano-field-validator.cjs.entry.js +1 -1
  29. package/dist/cjs/nano-file-upload.cjs.entry.js +1 -1
  30. package/dist/cjs/nano-global-nav.cjs.entry.js +1 -1
  31. package/dist/cjs/nano-grid_2.cjs.entry.js +1 -1
  32. package/dist/cjs/nano-hero.cjs.entry.js +1 -1
  33. package/dist/cjs/nano-icon-button_2.cjs.entry.js +3 -3
  34. package/dist/cjs/nano-icon.cjs.entry.js +1 -1
  35. package/dist/cjs/nano-in-page-nav.cjs.entry.js +2 -2
  36. package/dist/cjs/nano-increment.cjs.entry.js +1 -1
  37. package/dist/cjs/nano-input-otp.cjs.entry.js +8 -10
  38. package/dist/cjs/nano-intersection-observe.cjs.entry.js +2 -2
  39. package/dist/cjs/nano-masked-overflow.cjs.entry.js +4 -4
  40. package/dist/cjs/nano-menu-drawer.cjs.entry.js +4 -4
  41. package/dist/cjs/nano-more-less.cjs.entry.js +3 -3
  42. package/dist/cjs/nano-nav-item.cjs.entry.js +2 -2
  43. package/dist/cjs/nano-range.cjs.entry.js +1 -1
  44. package/dist/cjs/nano-rating.cjs.entry.js +5 -5
  45. package/dist/cjs/nano-resize-observe.cjs.entry.js +3 -3
  46. package/dist/cjs/nano-search-result.cjs.entry.js +17 -0
  47. package/dist/cjs/nano-slide.cjs.entry.js +2 -2
  48. package/dist/cjs/{nano-slides-CryCLfsK.js → nano-slides-C2K7j1yc.js} +8 -8
  49. package/dist/cjs/nano-slides.cjs.entry.js +2 -2
  50. package/dist/cjs/nano-sortable.cjs.entry.js +2 -2
  51. package/dist/cjs/nano-split-pane.cjs.entry.js +1 -1
  52. package/dist/cjs/nano-step-accordion.cjs.entry.js +2 -2
  53. package/dist/cjs/nano-step-breadcrumb.cjs.entry.js +3 -3
  54. package/dist/cjs/nano-sticker.cjs.entry.js +3 -3
  55. package/dist/cjs/nano-tab-content.cjs.entry.js +3 -3
  56. package/dist/cjs/nano-tab-group.cjs.entry.js +1 -1
  57. package/dist/cjs/nano-tab.cjs.entry.js +3 -3
  58. package/dist/cjs/nano-table.cjs.entry.js +3 -3
  59. package/dist/cjs/{page-dots-DR1fLjRi.js → page-dots-Db7Ce8kX.js} +2 -2
  60. package/dist/cjs/{renderer-CUTUqPQt.js → renderer-jVpDRMfV.js} +1 -0
  61. package/dist/cjs/{slot-CJgcluNw.js → slot-BUMYLmup.js} +19 -3
  62. package/dist/cjs/{table.worker-DBkvxXls.js → table.worker-Ctqp7IJT.js} +2 -2
  63. package/dist/collection/collection-manifest.json +1 -0
  64. package/dist/collection/components/breadcrumb/breadcrumb.js +1 -1
  65. package/dist/collection/components/global-search-results/global-search-results.css +2 -2
  66. package/dist/collection/components/global-search-results/global-search-results.js +17 -8
  67. package/dist/collection/components/input-otp/input-otp.css +24 -23
  68. package/dist/collection/components/input-otp/input-otp.js +9 -10
  69. package/dist/collection/components/intersection-observe/intersection-observe.js +1 -1
  70. package/dist/collection/components/masked-overflow/masked-overflow.js +3 -3
  71. package/dist/collection/components/menu-drawer/menu-drawer.js +2 -2
  72. package/dist/collection/components/more-less/more-less.js +2 -2
  73. package/dist/collection/components/rating/rating.js +4 -4
  74. package/dist/collection/components/resize-observe/resize-observe.js +2 -2
  75. package/dist/collection/components/search-result/search-result.css +41 -0
  76. package/dist/collection/components/search-result/search-result.js +25 -0
  77. package/dist/collection/components/select/select.js +7 -7
  78. package/dist/collection/components/slides/slide.js +1 -1
  79. package/dist/collection/components/slides/slides.js +3 -3
  80. package/dist/collection/components/sortable/sortable.js +1 -1
  81. package/dist/collection/components/step-accordion/step-accordion.js +1 -1
  82. package/dist/collection/components/step-breadcrumb/step-breadcrumb.js +2 -2
  83. package/dist/collection/components/sticker/sticker.js +2 -2
  84. package/dist/collection/components/table/table.js +2 -2
  85. package/dist/collection/components/tabs/tab-content.js +2 -2
  86. package/dist/collection/components/tabs/tab.js +2 -2
  87. package/dist/collection/components/tooltip/tooltip.js +2 -2
  88. package/dist/collection/utils/renderer.js +1 -0
  89. package/dist/collection/utils/slot.js +19 -3
  90. package/dist/components/global-search-results.js +12 -7
  91. package/dist/components/masked-overflow.js +3 -3
  92. package/dist/components/nano-input-otp.js +7 -10
  93. package/dist/components/nano-intersection-observe.js +1 -1
  94. package/dist/components/nano-menu-drawer.js +2 -2
  95. package/dist/components/nano-more-less.js +2 -2
  96. package/dist/components/nano-rating.js +4 -4
  97. package/dist/components/nano-search-result.d.ts +11 -0
  98. package/dist/components/nano-search-result.js +32 -0
  99. package/dist/components/nano-slide.js +1 -1
  100. package/dist/components/nano-sortable.js +1 -1
  101. package/dist/components/nano-step-accordion.js +1 -1
  102. package/dist/components/nano-step-breadcrumb.js +2 -2
  103. package/dist/components/nano-tab-content.js +2 -2
  104. package/dist/components/nano-tab.js +2 -2
  105. package/dist/components/nano-table.js +2 -2
  106. package/dist/components/renderer.js +1 -0
  107. package/dist/components/resize-observe.js +2 -2
  108. package/dist/components/select.js +7 -7
  109. package/dist/components/slides.js +3 -3
  110. package/dist/components/slot.js +19 -3
  111. package/dist/components/sticker.js +2 -2
  112. package/dist/components/tooltip.js +2 -2
  113. package/dist/esm/{fade-D980mOvm.js → fade-DWf-ekic.js} +2 -2
  114. package/dist/esm/{form-control-BCJMGxR_.js → form-control-BtblmnSm.js} +1 -1
  115. package/dist/esm/{fullscreen-CjInlYb9.js → fullscreen-DWET5K4U.js} +2 -2
  116. package/dist/esm/index-BM3Om9WE.js +4 -0
  117. package/dist/esm/index.js +2 -2
  118. package/dist/esm/{lazyload-B9B4e3ZI.js → lazyload-BSH0U2zW.js} +2 -2
  119. package/dist/esm/loader.js +1 -1
  120. package/dist/esm/nano-accordion.entry.js +1 -1
  121. package/dist/esm/nano-alert.entry.js +2 -2
  122. package/dist/esm/nano-algolia-filter.entry.js +1 -1
  123. package/dist/esm/nano-algolia-results.entry.js +1 -1
  124. package/dist/esm/nano-algolia.entry.js +1 -1
  125. package/dist/esm/nano-animation.entry.js +1 -1
  126. package/dist/esm/nano-avatar_5.entry.js +22 -17
  127. package/dist/esm/nano-card-carousel.entry.js +1 -1
  128. package/dist/esm/nano-checkbox-group.entry.js +1 -1
  129. package/dist/esm/nano-checkbox.entry.js +1 -1
  130. package/dist/esm/nano-collapsible-comparison.entry.js +1 -1
  131. package/dist/esm/nano-components.js +1 -1
  132. package/dist/esm/{nano-data-table-CSTxipPc.js → nano-data-table-B3_-hFqj.js} +2 -2
  133. package/dist/esm/nano-data-table.entry.js +2 -2
  134. package/dist/esm/nano-datalist_3.entry.js +1 -1
  135. package/dist/esm/nano-date-input.entry.js +1 -1
  136. package/dist/esm/nano-date-picker_2.entry.js +2 -2
  137. package/dist/esm/nano-details.entry.js +2 -2
  138. package/dist/esm/nano-dialog.entry.js +2 -2
  139. package/dist/esm/nano-dropdown_2.entry.js +2 -2
  140. package/dist/esm/nano-field-validator.entry.js +1 -1
  141. package/dist/esm/nano-file-upload.entry.js +1 -1
  142. package/dist/esm/nano-global-nav.entry.js +1 -1
  143. package/dist/esm/nano-grid_2.entry.js +1 -1
  144. package/dist/esm/nano-hero.entry.js +1 -1
  145. package/dist/esm/nano-icon-button_2.entry.js +3 -3
  146. package/dist/esm/nano-icon.entry.js +1 -1
  147. package/dist/esm/nano-in-page-nav.entry.js +2 -2
  148. package/dist/esm/nano-increment.entry.js +1 -1
  149. package/dist/esm/nano-input-otp.entry.js +8 -10
  150. package/dist/esm/nano-intersection-observe.entry.js +2 -2
  151. package/dist/esm/nano-masked-overflow.entry.js +4 -4
  152. package/dist/esm/nano-menu-drawer.entry.js +4 -4
  153. package/dist/esm/nano-more-less.entry.js +3 -3
  154. package/dist/esm/nano-nav-item.entry.js +2 -2
  155. package/dist/esm/nano-range.entry.js +1 -1
  156. package/dist/esm/nano-rating.entry.js +5 -5
  157. package/dist/esm/nano-resize-observe.entry.js +3 -3
  158. package/dist/esm/nano-search-result.entry.js +15 -0
  159. package/dist/esm/nano-slide.entry.js +2 -2
  160. package/dist/esm/{nano-slides-xbY6lXX9.js → nano-slides-BU8CjO-X.js} +8 -8
  161. package/dist/esm/nano-slides.entry.js +2 -2
  162. package/dist/esm/nano-sortable.entry.js +2 -2
  163. package/dist/esm/nano-split-pane.entry.js +1 -1
  164. package/dist/esm/nano-step-accordion.entry.js +2 -2
  165. package/dist/esm/nano-step-breadcrumb.entry.js +3 -3
  166. package/dist/esm/nano-sticker.entry.js +3 -3
  167. package/dist/esm/nano-tab-content.entry.js +3 -3
  168. package/dist/esm/nano-tab-group.entry.js +1 -1
  169. package/dist/esm/nano-tab.entry.js +3 -3
  170. package/dist/esm/nano-table.entry.js +3 -3
  171. package/dist/esm/{page-dots-CCfERISy.js → page-dots-Ckyic5vY.js} +2 -2
  172. package/dist/esm/{renderer-DasB4P10.js → renderer-DpNDfhNy.js} +1 -0
  173. package/dist/esm/{slot-CFTP7C_Z.js → slot-D31cEKyt.js} +19 -3
  174. package/dist/esm/{table.worker-DxcSnyg3.js → table.worker-By3ZdRHH.js} +2 -2
  175. package/dist/nano-components/{fade-D980mOvm.js → fade-DWf-ekic.js} +1 -1
  176. package/dist/nano-components/{form-control-BCJMGxR_.js → form-control-BtblmnSm.js} +1 -1
  177. package/dist/nano-components/{fullscreen-CjInlYb9.js → fullscreen-DWET5K4U.js} +1 -1
  178. package/dist/nano-components/index.esm.js +1 -1
  179. package/dist/nano-components/{lazyload-B9B4e3ZI.js → lazyload-BSH0U2zW.js} +1 -1
  180. package/dist/nano-components/nano-accordion.entry.js +1 -1
  181. package/dist/nano-components/nano-alert.entry.js +1 -1
  182. package/dist/nano-components/nano-algolia-filter.entry.js +1 -1
  183. package/dist/nano-components/nano-algolia-results.entry.js +1 -1
  184. package/dist/nano-components/nano-algolia.entry.js +1 -1
  185. package/dist/nano-components/nano-animation.entry.js +1 -1
  186. package/dist/nano-components/nano-avatar_5.entry.js +1 -1
  187. package/dist/nano-components/nano-card-carousel.entry.js +1 -1
  188. package/dist/nano-components/nano-checkbox-group.entry.js +1 -1
  189. package/dist/nano-components/nano-checkbox.entry.js +1 -1
  190. package/dist/nano-components/nano-collapsible-comparison.entry.js +1 -1
  191. package/dist/nano-components/nano-components.css +77 -1
  192. package/dist/nano-components/nano-components.esm.js +1 -1
  193. package/dist/nano-components/{nano-data-table-CSTxipPc.js → nano-data-table-B3_-hFqj.js} +1 -1
  194. package/dist/nano-components/nano-data-table.entry.js +1 -1
  195. package/dist/nano-components/nano-datalist_3.entry.js +1 -1
  196. package/dist/nano-components/nano-date-input.entry.js +1 -1
  197. package/dist/nano-components/nano-date-picker_2.entry.js +1 -1
  198. package/dist/nano-components/nano-details.entry.js +1 -1
  199. package/dist/nano-components/nano-dialog.entry.js +1 -1
  200. package/dist/nano-components/nano-dropdown_2.entry.js +1 -1
  201. package/dist/nano-components/nano-field-validator.entry.js +1 -1
  202. package/dist/nano-components/nano-file-upload.entry.js +1 -1
  203. package/dist/nano-components/nano-global-nav.entry.js +1 -1
  204. package/dist/nano-components/nano-grid_2.entry.js +1 -1
  205. package/dist/nano-components/nano-hero.entry.js +1 -1
  206. package/dist/nano-components/nano-icon-button_2.entry.js +1 -1
  207. package/dist/nano-components/nano-icon.entry.js +1 -1
  208. package/dist/nano-components/nano-in-page-nav.entry.js +1 -1
  209. package/dist/nano-components/nano-increment.entry.js +1 -1
  210. package/dist/nano-components/nano-input-otp.entry.js +1 -1
  211. package/dist/nano-components/nano-intersection-observe.entry.js +1 -1
  212. package/dist/nano-components/nano-masked-overflow.entry.js +1 -1
  213. package/dist/nano-components/nano-menu-drawer.entry.js +1 -1
  214. package/dist/nano-components/nano-more-less.entry.js +1 -1
  215. package/dist/nano-components/nano-nav-item.entry.js +1 -1
  216. package/dist/nano-components/nano-range.entry.js +1 -1
  217. package/dist/nano-components/nano-rating.entry.js +1 -1
  218. package/dist/nano-components/nano-resize-observe.entry.js +1 -1
  219. package/dist/nano-components/nano-search-result.entry.js +4 -0
  220. package/dist/nano-components/nano-slide.entry.js +1 -1
  221. package/dist/nano-components/{nano-slides-xbY6lXX9.js → nano-slides-BU8CjO-X.js} +4 -4
  222. package/dist/nano-components/nano-slides.entry.js +1 -1
  223. package/dist/nano-components/nano-sortable.entry.js +1 -1
  224. package/dist/nano-components/nano-split-pane.entry.js +1 -1
  225. package/dist/nano-components/nano-step-accordion.entry.js +1 -1
  226. package/dist/nano-components/nano-step-breadcrumb.entry.js +1 -1
  227. package/dist/nano-components/nano-sticker.entry.js +1 -1
  228. package/dist/nano-components/nano-tab-content.entry.js +1 -1
  229. package/dist/nano-components/nano-tab-group.entry.js +1 -1
  230. package/dist/nano-components/nano-tab.entry.js +1 -1
  231. package/dist/nano-components/nano-table.entry.js +1 -1
  232. package/dist/nano-components/{page-dots-CCfERISy.js → page-dots-Ckyic5vY.js} +1 -1
  233. package/dist/nano-components/renderer-DpNDfhNy.js +4 -0
  234. package/dist/nano-components/slot-D31cEKyt.js +4 -0
  235. package/dist/nano-components/{table.worker-DxcSnyg3.js → table.worker-By3ZdRHH.js} +1 -1
  236. package/dist/style/components.css +1 -1
  237. package/dist/style/components.css.map +1 -1
  238. package/dist/style/nano.css +1 -1
  239. package/dist/style/nano.css.map +1 -1
  240. package/dist/types/components/global-search-results/global-search-results.d.ts +1 -1
  241. package/dist/types/components/input-otp/input-otp.d.ts +4 -1
  242. package/dist/types/components/search-result/search-result.d.ts +14 -0
  243. package/dist/types/components.d.ts +42 -5
  244. package/docs-json.json +103 -42
  245. package/docs-vscode.json +8 -0
  246. package/hydrate/index.js +105 -58
  247. package/hydrate/index.mjs +105 -58
  248. package/package.json +2 -2
  249. package/dist/nano-components/renderer-DasB4P10.js +0 -4
  250. package/dist/nano-components/slot-CFTP7C_Z.js +0 -4
  251. /package/dist/types/builds/{MHdwmaDa → bsFinusk}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/generate-vue-component.d.ts +0 -0
  252. /package/dist/types/builds/{MHdwmaDa → bsFinusk}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/index.d.ts +0 -0
  253. /package/dist/types/builds/{MHdwmaDa → bsFinusk}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/output-vue.d.ts +0 -0
  254. /package/dist/types/builds/{MHdwmaDa → bsFinusk}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/plugin.d.ts +0 -0
  255. /package/dist/types/builds/{MHdwmaDa → bsFinusk}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/types.d.ts +0 -0
  256. /package/dist/types/builds/{MHdwmaDa → bsFinusk}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/utils.d.ts +0 -0
  257. /package/dist/types/builds/{MHdwmaDa → bsFinusk}/0/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +0 -0
  258. /package/dist/types/builds/{MHdwmaDa → bsFinusk}/0/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +0 -0
  259. /package/dist/types/builds/{MHdwmaDa → bsFinusk}/0/Digital/nano-components/packages/components/.stencil/testing/mocks/intersection-observer.d.ts +0 -0
  260. /package/dist/types/builds/{MHdwmaDa → bsFinusk}/0/Digital/nano-components/packages/components/.stencil/wdio.conf.d.ts +0 -0
@@ -5,7 +5,7 @@
5
5
 
6
6
  var index = require('./index-DGttnXif.js');
7
7
  var throttle = require('./throttle-CrRDOkln.js');
8
- var renderer = require('./renderer-CUTUqPQt.js');
8
+ var renderer = require('./renderer-jVpDRMfV.js');
9
9
 
10
10
  const tableCss = ".sc-nano-table-h,*.sc-nano-table,*.sc-nano-table::before,*.sc-nano-table::after{box-sizing:border-box}[hidden].sc-nano-table{display:none !important}@media (prefers-reduced-motion: reduce){.sc-nano-table-h,*.sc-nano-table,*.sc-nano-table::before,*.sc-nano-table::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}.sc-nano-table-h,*.sc-nano-table,*.sc-nano-table::before,*.sc-nano-table::after{box-sizing:border-box}[hidden].sc-nano-table{display:none !important}@media (prefers-reduced-motion: reduce){.sc-nano-table-h,*.sc-nano-table,*.sc-nano-table::before,*.sc-nano-table::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}";
11
11
 
@@ -228,10 +228,10 @@ const NanoTable = class {
228
228
  this.cleanUpObservers();
229
229
  }
230
230
  render() {
231
- return (renderer.h(index.Host, { key: '75c4089a6d670a16eea3fca8d079ac9a827c4cfa', class: {
231
+ return (renderer.h(index.Host, { key: 'e2ee468673f70252fc559a82e48b74f12273e416', class: {
232
232
  'nano-table': true,
233
233
  'nano-table--props-ready': this.propsReady,
234
- } }, this.scrollable && (renderer.h("nano-masked-overflow", { key: '90a1e07d2daa97047c3be1381717a8ae3b53b5e1', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, renderer.h("div", { key: 'badc595c9931fb6198ab38b4e09cdf4201fcc064', class: "nano-table__overflow" }))), renderer.h("slot", { key: 'd3fd5902fccc42b3412e9cb1950b054b5a69a525' })));
234
+ } }, this.scrollable && (renderer.h("nano-masked-overflow", { key: '63091df4a07695276d762d2a5ad5f535c9ed67dd', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, renderer.h("div", { key: '2defbb73d6077d95351c50685c70e6c32f05fd87', class: "nano-table__overflow" }))), renderer.h("slot", { key: '71a9d57114363f976eb139d494a8383795a67a8b' })));
235
235
  }
236
236
  static get watchers() { return {
237
237
  "compact": ["handleCompactChange"],
@@ -3,9 +3,9 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var nanoSlides_entry = require('./nano-slides-CryCLfsK.js');
6
+ var nanoSlides_entry = require('./nano-slides-C2K7j1yc.js');
7
7
  require('./index-DGttnXif.js');
8
- require('./renderer-CUTUqPQt.js');
8
+ require('./renderer-jVpDRMfV.js');
9
9
 
10
10
  // -------------------------- PageDots -------------------------- //
11
11
  function PageDots(parent) {
@@ -17,6 +17,7 @@ const CSS_ONLY_COMPONENTS = [
17
17
  'nano-icon-item',
18
18
  'nano-option-box',
19
19
  'nano-progress-bar',
20
+ 'nano-search-result',
20
21
  'nano-skeleton',
21
22
  'nano-spinner',
22
23
  'nano-tag',
@@ -63,7 +63,21 @@ class HasSlotController {
63
63
  hasDefaultSlot() {
64
64
  if (!this.host)
65
65
  return false;
66
- return [...this.host.childNodes].some((node) => {
66
+ let childNodes;
67
+ if (this.host.shadowRoot) {
68
+ // * Regular shadow DOM component *
69
+ childNodes = [...this.host.shadowRoot.childNodes];
70
+ }
71
+ else if (!this.host.classList.contains('hydrated')) {
72
+ // * Non-shadow, polyfilled component *
73
+ // Component has not done initial render. Return component internals
74
+ childNodes = [...(this.host?.__childNodes ?? [])];
75
+ }
76
+ else {
77
+ // Component is ready, return 'light DOM' children
78
+ childNodes = [...this.host.childNodes];
79
+ }
80
+ return childNodes.some((node) => {
67
81
  if (node.nodeType === Node.TEXT_NODE && node.textContent.trim() !== '') {
68
82
  return true;
69
83
  }
@@ -88,12 +102,14 @@ class HasSlotController {
88
102
  : this.hasNamedSlot(slotName);
89
103
  }
90
104
  hostConnected() {
91
- this.host.shadowRoot.addEventListener('slotchange', this.handleSlotChange);
105
+ const listenTarget = this.host.shadowRoot ?? this.host;
106
+ listenTarget.addEventListener('slotchange', this.handleSlotChange);
92
107
  }
93
108
  hostDisconnected() {
94
109
  if (!this.host)
95
110
  return;
96
- this.host.shadowRoot.removeEventListener('slotchange', this.handleSlotChange);
111
+ const listenTarget = this.host.shadowRoot ?? this.host;
112
+ listenTarget.removeEventListener('slotchange', this.handleSlotChange);
97
113
  }
98
114
  handleSlotChange = (event) => {
99
115
  const slot = event.target;
@@ -3,9 +3,9 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var nanoDataTable_entry = require('./nano-data-table-8XMp5HkS.js');
6
+ var nanoDataTable_entry = require('./nano-data-table-B07AITiQ.js');
7
7
  require('./index-DGttnXif.js');
8
- require('./renderer-CUTUqPQt.js');
8
+ require('./renderer-jVpDRMfV.js');
9
9
  require('./math-DIjJ3V87.js');
10
10
  require('./throttle-CrRDOkln.js');
11
11
  require('./scroll-C6pO9RvO.js');
@@ -54,6 +54,7 @@
54
54
  "components/range/range.js",
55
55
  "components/rating/rating.js",
56
56
  "components/resize-observe/resize-observe.js",
57
+ "components/search-result/search-result.js",
57
58
  "components/select/select.js",
58
59
  "components/slides/slide.js",
59
60
  "components/slides/slides.js",
@@ -89,7 +89,7 @@ export class NanoBreadcrumb {
89
89
  "references": {
90
90
  "Breadcrumb": {
91
91
  "location": "local",
92
- "path": "/builds/MHdwmaDa/0/Digital/nano-components/packages/components/src/components/breadcrumb/breadcrumb.tsx",
92
+ "path": "/builds/bsFinusk/0/Digital/nano-components/packages/components/src/components/breadcrumb/breadcrumb.tsx",
93
93
  "id": "src/components/breadcrumb/breadcrumb.tsx::Breadcrumb"
94
94
  }
95
95
  }
@@ -44,7 +44,7 @@
44
44
 
45
45
  .main-search {
46
46
  display: flex;
47
- background: white;
47
+ background: var(--nano-color-base-0);
48
48
  font-size: 14px;
49
49
  min-block-size: calc(100vh - 63px);
50
50
  justify-content: space-between;
@@ -193,7 +193,7 @@
193
193
  position: fixed;
194
194
  inline-size: 0;
195
195
  block-size: 0;
196
- z-index: 10;
196
+ z-index: var(--nano-z-index-modal);
197
197
  inset-block-start: 0;
198
198
  inset-inline-end: 0;
199
199
  transition: all 0s ease 0.5s;
@@ -162,8 +162,12 @@ export class GlobalSearchResults {
162
162
  this.handleGlobalNavReset();
163
163
  }
164
164
  /** Manually close the search panel */
165
- async closeSearch() {
166
- this.goback();
165
+ async closeSearch(clearHistory = false) {
166
+ if (clearHistory) {
167
+ this.goback();
168
+ return;
169
+ }
170
+ this.algoliaEle.showResults = false;
167
171
  }
168
172
  resultClick = (e) => {
169
173
  const hit = e.target.closest('.result');
@@ -176,6 +180,7 @@ export class GlobalSearchResults {
176
180
  positions: [Number(hit.dataset.hitCount) + 1],
177
181
  });
178
182
  }
183
+ this.closeSearch();
179
184
  };
180
185
  showFiltersClick = () => {
181
186
  this.filtersDiv.tabIndex = -1;
@@ -267,12 +272,12 @@ export class GlobalSearchResults {
267
272
  this.ro.observe(this.el);
268
273
  }
269
274
  render() {
270
- return (h(Host, { key: 'c88b1cd5b5fcf63cc3961cc3e190fe4432349b03', class: {
275
+ return (h(Host, { key: '481c6ef8c60a3d9e552ac7e34d39e8b4c6d801d3', class: {
271
276
  small: this.currentWidth < 780,
272
277
  'nano-global-search-results': true,
273
- }, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : undefined }, h("nano-algolia", { key: 'e27f4efbd7405ca852f9e6ea96d3a53b4ded8041', storeId: this.queryId, storeMethod: "url-hash-push", class: "main-search__wrap sc-nano-global-search-results", ref: (ele) => requestAnimationFrame(() => (this.algoliaEle = ele)), id: "main-search",
278
+ }, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : undefined }, h("nano-algolia", { key: '624265ab100bc1b1476bb9bca306d74d138efec4', storeId: this.queryId, storeMethod: "url-hash-push", class: "main-search__wrap sc-nano-global-search-results", ref: (ele) => requestAnimationFrame(() => (this.algoliaEle = ele)), id: "main-search",
274
279
  // @ts-expect-error this bubbles from nano-algolia-filter
275
- onNanoFilterChanged: () => this.handleNanoFilterChanged() }, h("template", { key: 'a614cc2ad29144b19555cf2106b8a38982817918', slot: "template" },
280
+ onNanoFilterChanged: () => this.handleNanoFilterChanged() }, h("template", { key: '5512db296627ed14b7ad73a4831bd0d63a99a086', slot: "template" },
276
281
  /* html */ `<div class="main-search sc-nano-global-search-results">
277
282
  <nano-algolia-results id="main-search-results" class="main-search__results sc-nano-global-search-results" infinite-scroll>
278
283
  <script type="text/template" slot="start-template">
@@ -650,7 +655,7 @@ export class GlobalSearchResults {
650
655
  </div>
651
656
  </div>
652
657
  {{ /if }}
653
- </div>`), h("div", { key: 'c759117717909ec2ca8973bd4de0175e06fd73fa', slot: "output" }), h("slot", { key: '45d84a723310889c1acb75b2563839e6bd164296' }))));
658
+ </div>`), h("div", { key: '5bd881ab628ff64917da008bc134f40a3eb1417a', slot: "output" }), h("slot", { key: '4a53c4a1315db75890c3128cf6c3471870759c47' }))));
654
659
  }
655
660
  static get is() { return "nano-global-search-results"; }
656
661
  static get encapsulation() { return "shadow"; }
@@ -696,8 +701,12 @@ export class GlobalSearchResults {
696
701
  return {
697
702
  "closeSearch": {
698
703
  "complexType": {
699
- "signature": "() => Promise<void>",
700
- "parameters": [],
704
+ "signature": "(clearHistory?: boolean) => Promise<void>",
705
+ "parameters": [{
706
+ "name": "clearHistory",
707
+ "type": "boolean",
708
+ "docs": ""
709
+ }],
701
710
  "references": {
702
711
  "Promise": {
703
712
  "location": "global",
@@ -47,21 +47,17 @@
47
47
  *
48
48
  * @prop --color: Text color of the input
49
49
  *
50
- * @prop --margin-top: Top margin of the input group
51
- * @prop --margin-end: Right margin if direction is left-to-right, and left margin if direction is right-to-left of the input group
52
- * @prop --margin-bottom: Bottom margin of the input group
53
- * @prop --margin-start: Left margin if direction is left-to-right, and right margin if direction is right-to-left of the input group
54
- *
55
- * @prop --padding-top: Top padding of the input group
56
- * @prop --padding-end: Right padding if direction is left-to-right, and left padding if direction is right-to-left of the input group
57
- * @prop --padding-bottom: Bottom padding of the input group
58
- * @prop --padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the input group
50
+ * @prop --icon-size: Size of the validity icon
59
51
  *
60
52
  * @prop --min-width: Minimum width of input boxes
61
53
  * @prop --height: Height of input boxes
62
54
  * @prop --width: Width of input boxes
63
55
  * @prop --gap: Gap between input boxes
64
- *
56
+
57
+ * @prop --inline-padding: Horizontal padding surrounding the input boxes
58
+
59
+ * @prop --spacing: Spacing between input boxes and description
60
+
65
61
  * @prop --separator-color: Color of the separator between boxes
66
62
  * @prop --separator-width: Width of the separator between boxes
67
63
  * @prop --separator-height: Height of the separator between boxes
@@ -70,19 +66,14 @@
70
66
  * @prop --highlight-color-valid: The color of the highlight on the input when valid
71
67
  * @prop --highlight-color-invalid: The color of the highlight on the input when invalid
72
68
  */
73
- --margin-top: 0;
74
- --margin-end: 0;
75
- --margin-bottom: 0;
76
- --margin-start: 0;
77
- --padding-top: var(--nano-spacing-md);
78
- --padding-end: 0;
79
- --padding-bottom: var(--nano-spacing-xl);
80
- --padding-start: 0;
81
69
  --color: initial;
82
70
  --min-width: 40px;
83
71
  --width: 40px;
84
72
  --height: 50px;
85
73
  --gap: 8px;
74
+ --icon-size: var(--nano-pictogram-size-small);
75
+ --inline-padding: calc(var(--icon-size) + var(--gap));
76
+ --spacing: var(--nano-spacing-xl);
86
77
  --separator-width: 7px;
87
78
  --separator-height: 1px;
88
79
  --separator-border-radius: 0;
@@ -94,11 +85,17 @@
94
85
  --border-width: 1px;
95
86
  display: block;
96
87
  position: relative;
88
+ margin-inline: var(--inline-padding);
89
+ }
90
+
91
+ .input-otp-container {
92
+ position: relative;
93
+ inline-size: fit-content;
94
+ block-size: fit-content;
95
+ margin: 0 auto;
97
96
  }
98
97
 
99
98
  .input-otp-group {
100
- margin: var(--margin-top) var(--margin-end) var(--margin-bottom) var(--margin-start);
101
- padding: var(--padding-top) var(--padding-end) var(--padding-bottom) var(--padding-start);
102
99
  display: flex;
103
100
  align-items: center;
104
101
  justify-content: center;
@@ -133,7 +130,7 @@
133
130
  line-height: var(--nano-line-height-normal);
134
131
  text-align: center;
135
132
  position: relative;
136
- inset-inline-start: -24px;
133
+ margin-inline-start: var(--spacing);
137
134
  }
138
135
 
139
136
  .input-otp-description-hidden {
@@ -171,8 +168,12 @@
171
168
  }
172
169
 
173
170
  .input-otp-icon {
174
- inline-size: 24px;
175
- block-size: 24px;
171
+ position: absolute;
172
+ inset-block-start: 50%;
173
+ transform: translateY(-43%);
174
+ inset-inline-end: calc((var(--gap) + var(--icon-size)) * -1);
175
+ inline-size: var(--icon-size);
176
+ block-size: var(--icon-size);
176
177
  display: flex;
177
178
  align-items: center;
178
179
  }
@@ -2,18 +2,22 @@
2
2
  * Custom elements for Nanopore-Digital Web applications
3
3
  */
4
4
  import { Fragment, Host, h, } from "@stencil/core";
5
+ import { HasSlotController } from "../../utils/slot";
5
6
  /**
6
7
  * A component for entering one-time passwords (OTP) with multiple input fields.
7
8
  *
8
- * @version 8.7.2
9
+ * @version 8.8.0
9
10
  * @status new
10
11
  *
11
12
  * @slot - The default slot for the input description.
12
13
  * @slot validity-icon - A slot for a custom validity icon. If not provided, a default icon will be used.
14
+ *
15
+ * @part validity-icon - The validity icon.
13
16
  */
14
17
  export class InputOTP {
15
18
  inputRefs = [];
16
19
  inputId = `nano-input-otp-${inputIds++}`;
20
+ slotCtrl = new HasSlotController(this, '[default]');
17
21
  /**
18
22
  * Stores the initial value of the input when it receives focus.
19
23
  * Used to determine if the value changed during the focus session
@@ -675,26 +679,21 @@ export class InputOTP {
675
679
  inputValues.some((v) => v !== '' && !this.validKeyPattern.test(v));
676
680
  }
677
681
  render() {
678
- const { disabled, el, hasFocus, inputId, inputRefs, inputValues, length, readonly, invalid, valid, } = this;
682
+ const { disabled, hasFocus, inputId, inputRefs, inputValues, length, readonly, invalid, valid, } = this;
679
683
  const inputmode = this.getInputmode();
680
684
  const tabbableIndex = this.getTabbableIndex();
681
685
  const pattern = this.getPattern();
682
- const hasDescription = el.querySelector('.input-otp-description')?.textContent?.trim() !== '';
683
- return (h(Host, { key: 'f397a0775d2d961ccc9013206fae72a8d0ad90ae', class: {
686
+ return (h(Host, { key: 'fb427bd3cb9bda29ec05c851e23a522c6966f4c0', class: {
684
687
  'has-focus': hasFocus,
685
688
  'input-otp-disabled': disabled,
686
689
  'input-otp-readonly': readonly,
687
690
  'nano-invalid': invalid,
688
691
  'nano-valid': valid,
689
- } }, h("div", { key: 'add5fe905af87f4c9b87d29c66134ede52ff2b6b', role: "group", "aria-label": "One-time password input", class: "input-otp-group" }, Array.from({ length }).map((_, index) => (h(Fragment, null, h("div", { class: "native-wrapper" }, h("input", { class: "native-input", id: `${inputId}-${index}`, "aria-label": `Input ${index + 1} of ${length}`, type: "text", inputmode: inputmode, pattern: pattern, disabled: disabled, readOnly: readonly, tabIndex: index === tabbableIndex ? 0 : -1, value: inputValues[index] || '', autocomplete: "one-time-code", ref: (el) => (inputRefs[index] = el), onInput: this.onInput(index), onBlur: this.onBlur, onFocus: this.onFocus(index), onKeyDown: this.onKeyDown(index), onPaste: this.onPaste })), this.showSeparator(index) && h("div", { class: "input-otp-separator" })))), this.showValidity && (h("div", { key: '71d38d8f343be559d187f1c5710a64733cf7ceaa', class: {
692
+ } }, h("div", { key: '7b5067c8e3f91b71d9110c26e7ec6a91c560de8c', class: "input-otp-container" }, h("div", { key: 'a2420e14e2392429eca041ed0ce70e2b387d4922', class: "input-otp-group", role: "group", "aria-label": "One-time password input" }, Array.from({ length }).map((_, index) => (h(Fragment, null, h("div", { class: "native-wrapper" }, h("input", { class: "native-input", id: `${inputId}-${index}`, "aria-label": `Input ${index + 1} of ${length}`, type: "text", inputmode: inputmode, pattern: pattern, disabled: disabled, readOnly: readonly, tabIndex: index === tabbableIndex ? 0 : -1, value: inputValues[index] || '', autocomplete: "one-time-code", ref: (el) => (inputRefs[index] = el), onInput: this.onInput(index), onBlur: this.onBlur, onFocus: this.onFocus(index), onKeyDown: this.onKeyDown(index), onPaste: this.onPaste })), this.showSeparator(index) && (h("div", { class: "input-otp-separator" })))))), this.showValidity && (h("div", { key: '345be96b0c208d367804822eef00fbfdee3ecbfe', class: {
690
693
  'input-otp-icon': true,
691
694
  'input-otp-icon--valid': valid,
692
695
  'input-otp-icon--invalid': invalid,
693
- } }, h("slot", { key: '14529ecc57a6268932bc1485f0a425bb6cb45c51', name: "validity-icon" }, h("nano-icon", { key: '65669a6b4ca76011b721e76fb68b7f9bfeb87092', hidden: !valid, name: "light/circle-check", class: "input-otp-valid-icon", "aria-label": "Valid input" }))))), h("div", { key: '3e677ab8517765759a0cc4a0aa6f0fec58767c90', class: {
694
- 'input-otp-description': true,
695
- 'input-otp-description-hidden': !hasDescription,
696
- 'input-otp-description-inset': this.showValidity,
697
- } }, h("slot", { key: 'e875d5c5d7ed8f804b9866618b7ed5e5211dd7b1' }))));
696
+ }, part: "validity-icon" }, h("slot", { key: '7d4a86988e4097f3422aaa2f0ee5df4518da1d41', name: "validity-icon" }, h("nano-icon", { key: '6b81e7a0430e36c0381b7787558509f525f7eed5', hidden: !valid, name: "light/circle-check", class: "input-otp-valid-icon", "aria-label": "Valid input" }))))), this.slotCtrl.has('[default]') && (h("div", { key: '6d97b65cc7fad0f1828608887773081312f3bf92', class: "input-otp-description" }, h("slot", { key: '459b7f12a59fec36ff465126c79083f14dce4a8a' })))));
698
697
  }
699
698
  static get is() { return "nano-input-otp"; }
700
699
  static get encapsulation() { return "scoped"; }
@@ -143,7 +143,7 @@ export class IntersectionObserve {
143
143
  this.removeIO();
144
144
  }
145
145
  render() {
146
- return (h(Host, { key: 'c837369d760b533f7bbed5ade5994206923e6ffa', class: "nano-intersection-observe" }, h("slot", { key: 'c12806aaf721afbd10a14a3f6c23bd08217128b6', ref: (slot) => (this.defaultSlot = slot), onSlotchange: this.handleSlotChange })));
146
+ return (h(Host, { key: '6ed0913499a9caede509c0394a2be337ddbcfc7c', class: "nano-intersection-observe" }, h("slot", { key: 'a55eeb8c1527dd62aba761b60b6a0764cbd5bfa4', ref: (slot) => (this.defaultSlot = slot), onSlotchange: this.handleSlotChange })));
147
147
  }
148
148
  static get is() { return "nano-intersection-observe"; }
149
149
  static get encapsulation() { return "shadow"; }
@@ -327,7 +327,7 @@ export class MaskedOverflow {
327
327
  }
328
328
  }
329
329
  render() {
330
- return (h(Host, { key: 'cace0ef58ad901ea08d057420906d95ffa2600dd', dir: this.isRtl ? 'rtl' : null, class: "nano-masked-overflow", "has-scroll-controls": this.hasScrollControls }, h("div", { key: '6133235c4eb2be34c93cb681cd612ae7d227e8eb', part: "base", class: {
330
+ return (h(Host, { key: 'f09154c9daef9d42d1ac6bf1ae1cab43b25fc759', dir: this.isRtl ? 'rtl' : null, class: "nano-masked-overflow", "has-scroll-controls": this.hasScrollControls }, h("div", { key: 'c08a301b623b69a8a8936e846fb4d61c3d7a5d42', part: "base", class: {
331
331
  onav: true,
332
332
  [`onav--${this.orientation}`]: true,
333
333
  'onav--has-scroll-controls': this.hasScrollControls,
@@ -336,12 +336,12 @@ export class MaskedOverflow {
336
336
  'onav--no-transitions': this.instantReCalc,
337
337
  'onnav--has-indicator': this.showIndicator,
338
338
  'onnav--hide-scrollbars': this.hideScrollbars && this.hideScrollbars !== 'false',
339
- }, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { key: '56f5264594f6963dddbdbad7ecd6c25ae4c0732a', class: "onav__nav" }, this.scrollControls && (h("nano-icon-button", { key: 'be07616305b1753d843f346420149055b59f8023', part: "scroll-button scroll-button-prev", class: {
339
+ }, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { key: '4430bfab6920f77fe64885eb12c7a1f2ebfdbf31', class: "onav__nav" }, this.scrollControls && (h("nano-icon-button", { key: '800ac8de65485ebaa4060c26a7f0b3432348c8d1', part: "scroll-button scroll-button-prev", class: {
340
340
  'onav__scroll-button': true,
341
341
  'onav__scroll-button--start': true,
342
342
  }, ref: (btn) => (this.startBtn = btn), onClick: () => this.handleBtnClick(false), label: "Click to scroll", iconName: this.orientation === 'horizontal'
343
343
  ? 'light/chevron-left'
344
- : 'light/chevron-up' })), h("div", { key: '33c5125be511e2ed550ea4a4130ada309d6d4884', part: "scroller", ref: (el) => (this.nav = el), class: "onav__scroller", onScroll: this.handleScroll, tabindex: this.hasScrollControls ? 0 : undefined, role: "region", "aria-label": this.label || undefined }, h("div", { key: 'c7e3fa9f1272bcd57694aa7dd433f2da1ca4d4cb', part: "items", ref: (el) => (this.itemContainer = el), class: "onav__items" }, this.showIndicator && (h("div", { key: '5029cad9fb763501e8e670f3347e55e7eafbcb87', part: "indicator", ref: (el) => (this.activeIndicator = el), class: "onav__active-indicator" })), h("slot", { key: '1438ac0d40a0ec2952cf9b66bc2f854d5b96c690', onSlotchange: this.slotChangeHandler }))), this.scrollControls && (h("nano-icon-button", { key: '05dea3796c9d9e758c229f76fcb4dde2bd90fa65', part: "scroll-button scroll-button-next", class: {
344
+ : 'light/chevron-up' })), h("div", { key: '48fff7814d1c8a864ca9f29c0b4bc2196c7b4a98', part: "scroller", ref: (el) => (this.nav = el), class: "onav__scroller", onScroll: this.handleScroll, tabindex: this.hasScrollControls ? 0 : undefined, role: "region", "aria-label": this.label || undefined }, h("div", { key: '376a6e0007b1e9e35d3226e6575d0ca840b1f75a', part: "items", ref: (el) => (this.itemContainer = el), class: "onav__items" }, this.showIndicator && (h("div", { key: 'c0b933b6b29071de0f5b3d3b97497de231b45801', part: "indicator", ref: (el) => (this.activeIndicator = el), class: "onav__active-indicator" })), h("slot", { key: '2bff315c99ce804c26240ef5e134c1f08fed0547', onSlotchange: this.slotChangeHandler }))), this.scrollControls && (h("nano-icon-button", { key: 'd568e4adaf25dbf10127e433220fa6900298e31f', part: "scroll-button scroll-button-next", class: {
345
345
  'onav__scroll-button': true,
346
346
  'onav__scroll-button--end': true,
347
347
  }, ref: (btn) => (this.endBtn = btn), onClick: () => this.handleBtnClick(true), label: "Click to scroll", iconName: this.orientation === 'horizontal'
@@ -147,14 +147,14 @@ export class MenuDrawer {
147
147
  }
148
148
  }
149
149
  render() {
150
- return (h(Host, { key: '48267091ca0646f3a1717e2dc3ab21ab3d4b9b28', class: {
150
+ return (h(Host, { key: 'bed821db8e5a30f26c3c9bad45b01321bdf4ca77', class: {
151
151
  open: this.open,
152
152
  'secondary-open': this.secondaryOpen,
153
153
  hide: this.hide,
154
154
  loading: this.isLoading,
155
155
  'has-global-nav': !!this.globalNav,
156
156
  'nano-menu-drawer': true,
157
- }, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : null }, h("div", { key: 'f73a9c15c9760493b38ac5b199f2d374eb99ffd0', ref: (div) => (this.containerDiv = div), class: "container" }, h("div", { key: 'a2a254a08025a5d4f33ecd10fb25ee2bedddc657', class: `content-wrap ${this.secondaryOpen ? 'secondary-open' : ''}` }, h("nav", { key: '4c93989684795be81b332aa12638424493eda51f', ref: (div) => (this.contentDiv = div), class: "content" }, h("div", { key: 'fb7fdba72b7e211dd99020b9a78dde35c11f0c7e', class: "head" }, h("button", { key: '1829973a4d5bb9c4053bd5a5b8d7d24befc02599', onClick: this.toggle, class: "collapse-btn" }, h("nano-icon", { key: '614bca81c5086ed499a62d38540f6c107f5c779e', name: "light/arrow-right-to-line" }), h("span", { key: 'da6cbb5a0c0f0a908afac83b01322bc5bfede0b5', class: "visually-hidden" }, "collapse / expand menu"))), h("slot", { key: 'd3ddb04ad19784a71575ff50c2cbd4410b70dcb6' }), this.slotCtrl.has('foot') && (h("div", { key: '5282ecb332f91aaedf7996f1a86165656187f12a', class: "foot" }, h("slot", { key: 'c0c227384d0ec749a03c1fdfe5764923f08c2405', name: "foot" }))))))));
157
+ }, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : null }, h("div", { key: 'e80fe18a73873359fc1d86ca93a06b8c6d3173c1', ref: (div) => (this.containerDiv = div), class: "container" }, h("div", { key: 'fe83b1858bacd94f3e0540ee3933d1018f7bfb9d', class: `content-wrap ${this.secondaryOpen ? 'secondary-open' : ''}` }, h("nav", { key: 'bed3b6c253cf16f8a796393be71c2c1b9aebd266', ref: (div) => (this.contentDiv = div), class: "content" }, h("div", { key: 'a8ea363c51345c83fcbf8723a32627bd99c5a9cf', class: "head" }, h("button", { key: 'fa9765354704685582e64771ded73c30c88e0374', onClick: this.toggle, class: "collapse-btn" }, h("nano-icon", { key: '0489c46c0c76a72720daf6656e26c2946433bccc', name: "light/arrow-right-to-line" }), h("span", { key: '81b00aaf09a528d6137351df20e23149a5325bf0', class: "visually-hidden" }, "collapse / expand menu"))), h("slot", { key: 'ab5f6ed3b81b2d5f741a1d102a12db5b0f68bae7' }), this.slotCtrl.has('foot') && (h("div", { key: 'dbb8345173ee78b9685cc46c6dcde5c2d617a868', class: "foot" }, h("slot", { key: '93bfeb1493a1d5e9a420803a09e64dced877591b', name: "foot" }))))))));
158
158
  }
159
159
  static get is() { return "nano-menu-drawer"; }
160
160
  static get encapsulation() { return "shadow"; }
@@ -65,8 +65,8 @@ export class Rating {
65
65
  this.handleShowHideElements();
66
66
  }
67
67
  render() {
68
- return (h(Host, { key: '85aea064a37e2a66a31e8bab208eba423aa32a4e', class: "nano-more-less" }, h("slot", { key: 'c7288c755fa9cb24abb335158fe9ae1e116a012e', onSlotchange: () => this.handleShowHideElements() }), this.children?.length > this.maxToShow && [
69
- h("div", { key: 'ff18caab62f14cdff9cc5953cda9d4980e6e4b6a', style: { display: this.show ? 'none' : 'contents' }, class: "button-wrapper", part: "button-wrapper button-wrapper--less", onClick: (e) => this.handleClick(e) }, h("slot", { key: '8a7a856af8fca1221c308c2a0982e09b9c9da74f', name: "less" }, h("button", { key: '33578129514a86169e642f32fb9a66d257412719', part: "button button--less" }, "Show more (+", this.children.length - this.maxToShow, ")"))),
68
+ return (h(Host, { key: 'b129148afdc959f912a16d1e2642c3e920a0a381', class: "nano-more-less" }, h("slot", { key: '92aa96b6301d14f7b4d9aee9cc4cafbf0ff75431', onSlotchange: () => this.handleShowHideElements() }), this.children?.length > this.maxToShow && [
69
+ h("div", { key: '73a5c457e8243cd8cf8e8ec1e681aa2c62244936', style: { display: this.show ? 'none' : 'contents' }, class: "button-wrapper", part: "button-wrapper button-wrapper--less", onClick: (e) => this.handleClick(e) }, h("slot", { key: '48802275120ff78676a19b25f792806dd03db2c1', name: "less" }, h("button", { key: '703d054e4560cf22d571a29838dfbd649062f7ca', part: "button button--less" }, "Show more (+", this.children.length - this.maxToShow, ")"))),
70
70
  !this.noHideBtn ? (h("div", { style: { display: this.show ? 'contents' : 'none' }, class: "button-wrapper", part: "button-wrapper button-wrapper--more", onClick: (e) => this.handleClick(e) }, h("slot", { name: "more" }, h("button", { part: "button button--more" }, "Show less (-", this.children.length - this.maxToShow, ")")))) : (''),
71
71
  ]));
72
72
  }
@@ -192,20 +192,20 @@ export class Rating {
192
192
  else {
193
193
  displayValue = this.isHovering ? this.hoverValue : this.value;
194
194
  }
195
- return (h(Host, { key: 'b28d1a7ff7743338ff5ae18c386e49ee20f8df8e', class: "nano-rating" }, h("label", { key: '6fda8cf5da0b9ed38776ec3a9b93ec4fc02598b0', class: `rating-label${this.hideLabel ? ' visually-hidden' : ''}`, part: "label", htmlFor: this.name }, h("slot", { key: 'e92e2482a6aefd90bd27b5831ec75f0fb12fcd8b', name: "label" }, this.label)), h("input", { key: 'ef40cee201942dc8f0851f2ee4d785d3b1d27936', class: "range-input visually-hidden", name: this.name, id: this.name, disabled: this.disabled || this.readonly, required: this.required, value: this.value, onFocus: () => {
195
+ return (h(Host, { key: '3011ba88cafed0ec3c79d823a3abac433f68b5d1', class: "nano-rating" }, h("label", { key: 'ea6a01bc5a7f8e7fecbb16a905c472b5e1c62328', class: `rating-label${this.hideLabel ? ' visually-hidden' : ''}`, part: "label", htmlFor: this.name }, h("slot", { key: '22e31eeaed0aca337a71c1bbb39c238413f1c00c', name: "label" }, this.label)), h("input", { key: '265bd0055cbd05911611e0a5e45828d4dab7ac8c', class: "range-input visually-hidden", name: this.name, id: this.name, disabled: this.disabled || this.readonly, required: this.required, value: this.value, onFocus: () => {
196
196
  this.setFocus();
197
- } }), h("div", { key: '46c610322bc3b802d822cd22bfdcf3ad32f7e4d2', class: "rating-wrap" }, h("div", { key: 'fd509ff1f80a8172c00f2b320e6f5dbfd1252676', dir: this.isRtl ? 'rtl' : null, ref: (el) => (this.rating = el), part: "base", class: {
197
+ } }), h("div", { key: '4c0af619c68c230a5994871efdf5608870fb83e0', class: "rating-wrap" }, h("div", { key: 'e6f94c258bc04b6a4a6aad66c9364c1c811f859a', dir: this.isRtl ? 'rtl' : null, ref: (el) => (this.rating = el), part: "base", class: {
198
198
  rating: true,
199
199
  'rating--readonly': this.readonly,
200
200
  'rating--disabled': this.disabled,
201
- }, "aria-disabled": this.disabled ? 'true' : 'false', "aria-readonly": this.readonly ? 'true' : 'false', "aria-valuenow": this.value, "aria-valuemin": 0, "aria-valuemax": this.max, tabIndex: this.disabled ? -1 : 0, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onMouseMove: this.handleMouseMove, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("span", { key: 'd03101004803060722fd234f3500a5f7ac6e0603', class: "rating__symbols rating__symbols--inactive" }, counter.map((index) => (h("span", { class: {
201
+ }, "aria-disabled": this.disabled ? 'true' : 'false', "aria-readonly": this.readonly ? 'true' : 'false', "aria-valuenow": this.value, "aria-valuemin": 0, "aria-valuemax": this.max, tabIndex: this.disabled ? -1 : 0, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onMouseMove: this.handleMouseMove, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("span", { key: 'd514ae0f85be4d59ab6a2ae4496357c5d6601ba9', class: "rating__symbols rating__symbols--inactive" }, counter.map((index) => (h("span", { class: {
202
202
  rating__symbol: true,
203
203
  'rating__symbol--hover': this.isHovering && Math.ceil(displayValue) === index + 1,
204
204
  },
205
205
  // Users can click the current value to clear the rating. When this happens, we set this.isHovering to
206
206
  // false to prevent the hover state from confusing them as they move the mouse out of the control. This
207
207
  // extra mouseenter will reinstate it if they happen to mouse over an adjacent symbol.
208
- onMouseEnter: this.handleMouseEnter, innerHTML: this.symbol(index + 1) })))), h("span", { key: '2e5b35988ef0b699c515fd86a5ab14b3a98f9215', ref: (span) => (this.indicator = span), class: "rating__symbols rating__symbols--indicator", style: {
208
+ onMouseEnter: this.handleMouseEnter, innerHTML: this.symbol(index + 1) })))), h("span", { key: '0caf2f0561d3b74e6891e6c2a4b970fef53298f3', ref: (span) => (this.indicator = span), class: "rating__symbols rating__symbols--indicator", style: {
209
209
  clip: this.clip(displayValue),
210
210
  } }, counter.map((index) => (h("span", { class: {
211
211
  rating__symbol: true,
@@ -230,13 +230,13 @@ export class ResizeObserve {
230
230
  }
231
231
  }
232
232
  render() {
233
- return (h(Host, { key: '5db8e84066e7fd3d903f19e2256844331580947a', class: {
233
+ return (h(Host, { key: 'a2c57218f65a9af2297e6662c29d3a7c853092df', class: {
234
234
  'nano-resize-observe': true,
235
235
  'content-fit-x': this.contentFitX,
236
236
  'content-fit-y': this.contentFitY,
237
237
  'content-nofit-x': this.contentFitX === false,
238
238
  'content-nofit-y': this.contentFitY === false,
239
- } }, h("slot", { key: 'ee5842c110b25f82eacbb4ba618d33dad345e732' }), !!this.notifyContentFit &&
239
+ } }, h("slot", { key: 'cf0faa31f7c1daa08238555a46699c1b731e13b8' }), !!this.notifyContentFit &&
240
240
  (this.contentFitX !== null || this.contentFitY !== null) && [
241
241
  this.contentFitX ? (h("slot", { name: "content-fit-x" })) : (h("slot", { name: "content-nofit-x" })),
242
242
  this.contentFitY ? (h("slot", { name: "content-fit-y" })) : (h("slot", { name: "content-nofit-y" })),
@@ -0,0 +1,41 @@
1
+ :host,
2
+ *,
3
+ *::before,
4
+ *::after {
5
+ box-sizing: border-box;
6
+ }
7
+ [hidden] {
8
+ display: none !important;
9
+ }
10
+ @media (prefers-reduced-motion: reduce) {
11
+ :host,
12
+ *,
13
+ *::before,
14
+ *::after {
15
+ animation-duration: 0.01ms !important;
16
+ animation-iteration-count: 1 !important;
17
+ transition-duration: 0.01ms !important;
18
+ scroll-behavior: auto !important;
19
+ }
20
+ }:host,
21
+ *,
22
+ *::before,
23
+ *::after {
24
+ box-sizing: border-box;
25
+ }
26
+ [hidden] {
27
+ display: none !important;
28
+ }
29
+ @media (prefers-reduced-motion: reduce) {
30
+ :host,
31
+ *,
32
+ *::before,
33
+ *::after {
34
+ animation-duration: 0.01ms !important;
35
+ animation-iteration-count: 1 !important;
36
+ transition-duration: 0.01ms !important;
37
+ scroll-behavior: auto !important;
38
+ }
39
+ }/**
40
+ * // add any public css props here
41
+ */
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Displays an article preview and serves as a navigable link to the full content in the context of search results or lists of articles.
3
+ *
4
+ * @status new
5
+ * @version 8.10.0
6
+ * @type CSS Only
7
+ *
8
+ * @slot title - The title of the result. Displayed first.
9
+ * @slot content - Content of the result. Suitable for a short description or search snippet.
10
+ * @slot meta - Meta information about the result. Each item is visually separated.
11
+ * @slot tags - Tags associated with the result. Suitable for use with `nano-tag` components.
12
+ */
13
+ export class NanoSearchResult {
14
+ static get is() { return "nano-search-result"; }
15
+ static get originalStyleUrls() {
16
+ return {
17
+ "$": ["search-result.scss"]
18
+ };
19
+ }
20
+ static get styleUrls() {
21
+ return {
22
+ "$": ["search-result.css"]
23
+ };
24
+ }
25
+ }
@@ -705,30 +705,30 @@ export class Select {
705
705
  disabled,
706
706
  clearControl: this.clearable,
707
707
  }))(this);
708
- return (h(Host, { key: 'fff4c3c510b9c343af91cd44cd31a437bbd15a78', type: this.multiple ? 'select-multiple' : 'select-one', "aria-disabled": this.disabled ? 'true' : null, class: {
708
+ return (h(Host, { key: 'a2c56f43fef750f8e336a1612644761293b19bd4', type: this.multiple ? 'select-multiple' : 'select-one', "aria-disabled": this.disabled ? 'true' : null, class: {
709
709
  'has-value': !!this.value.length || !!this.inputSearchVal.length,
710
710
  'has-focus': this.hasFocus,
711
711
  'is-invalid': this._invalid === true,
712
712
  'is-valid': this._invalid === false,
713
713
  'nano-select': true,
714
- } }, h(FormControlWrap, { key: '57e3eca97027e9195328c5da6e10c46000ffe67e', ...wrapOptions, class: {
714
+ } }, h(FormControlWrap, { key: '632d901cdff60d36ae1a410f6c252c671eac8e63', ...wrapOptions, class: {
715
715
  'has-error': !!this.errorMessage &&
716
716
  this.showInlineError &&
717
717
  this._invalid === true,
718
718
  'has-helper': this.hasHelperSlot,
719
719
  'is-open': this.hasOpened,
720
720
  masked: this.mask,
721
- } }, h(FormControl, { key: 'be1a38b3b662d7cd40ce738ef9185d18dae22318', ...controlOptions, ref: (el) => (this.selectWrap = el), onClearText: this.clearSelectValue, control: this.el, endValueSlot: h("slot", { name: "down-arrow" }, h("nano-icon", { class: "select__down-arrow", name: "light/chevron-down" })), showInlineError: this.showInlineError }, this.multiple && (h("div", { key: '89b7b5b75ef67513c228f230c11122333448408f', class: "select__multi-wrap select" }, this.multipleValues(labelId, moreId, helperEndId))), !this.multiple && [
722
- this.mask && (h("div", { key: 'efd35e47435a363be382ceae43d4348479cd50b5', class: "select__mask" }, this.getLabel(this.value))),
723
- h("input", { key: '236a63937ee3c981bbc2e4d77d72516f4d614326', ref: (input) => (this.inputCtrl = input), id: this.selectId, class: "select__native-input", "aria-labelledby": labelId + ' ' + moreId + ' ' + helperEndId, disabled: this.disabled, form: this.form, placeholder: this.placeholder, readonly: true, required: this.required, value: this.getLabel(this.value), onFocus: this.onFocus }),
724
- ])), !this.readonly && !this.disabled && (h("nano-datalist", { key: 'c0e2707266e76ed2714cbd91727c828e4e0e9861', ref: (el) => (this.datalist = el), selected: this.valArray, type: this.multiple ? 'selectMulti' : 'select', options: this._options.length ? this._options : undefined, onNanoDeselect: (e) => {
721
+ } }, h(FormControl, { key: '387a55518ed1c74ea944008c750a0ca42a6bbbe8', ...controlOptions, ref: (el) => (this.selectWrap = el), onClearText: this.clearSelectValue, control: this.el, endValueSlot: h("slot", { name: "down-arrow" }, h("nano-icon", { class: "select__down-arrow", name: "light/chevron-down" })), showInlineError: this.showInlineError }, this.multiple && (h("div", { key: '660b70b098520471d4f7653af5cc50388625cd1c', class: "select__multi-wrap select" }, this.multipleValues(labelId, moreId, helperEndId))), !this.multiple && [
722
+ this.mask && (h("div", { key: '44f53317d26f2f8b85b5c8b397ccfd68a26eebb5', class: "select__mask" }, this.getLabel(this.value))),
723
+ h("input", { key: '04f3935c7f759e3767f32faecb9e6ef81a36c777', ref: (input) => (this.inputCtrl = input), id: this.selectId, class: "select__native-input", "aria-labelledby": labelId + ' ' + moreId + ' ' + helperEndId, disabled: this.disabled, form: this.form, placeholder: this.placeholder, readonly: true, required: this.required, value: this.getLabel(this.value), onFocus: this.onFocus }),
724
+ ])), !this.readonly && !this.disabled && (h("nano-datalist", { key: 'aae86b85c3bd2c2c562468f2a33e52c7036ad69b', ref: (el) => (this.datalist = el), selected: this.valArray, type: this.multiple ? 'selectMulti' : 'select', options: this._options.length ? this._options : undefined, onNanoDeselect: (e) => {
725
725
  e.preventDefault();
726
726
  this.removeValue(e.detail.value);
727
727
  }, onNanoOptionsUpdated: this.setOptions, onNanoSelect: this.setValue,
728
728
  // @ts-expect-error - this bubbles from the nano-dropdown
729
729
  onNanoShow: () => (this.hasOpened = true), onNanoHide: () => (this.hasOpened = false) }, this.allowCustomValues &&
730
730
  this.multiple &&
731
- !!this.inputSearchVal && (h("nano-option", { key: 'bfc7c0f31d962d89369ff173236bebbca134885d', slot: "list-top", value: this.inputSearchVal, selected: false, label: this.inputSearchVal, onNanoSelect: () => this.inputCtrl.focus() }, h("span", { key: '2f2f299440d4aca0c718308ad819873cf5f71163', slot: "check-icon" }), "Add '", this.inputSearchVal, "'")), h("slot", { key: '5c41abf1e6e6c7b897538beb6b4509ae5f845ce6' }))), h("select", { key: '3443483daf9d524e98cb3614f67a630b349b033f', id: this.selectId + '-hidden', class: "select__native-ctrl", ref: (select) => (this.nativeSelect = select), "aria-labelledby": labelId + ' ' + moreId + ' ' + helperEndId, disabled: this.disabled, form: this.form, multiple: this.multiple, name: this.name, required: this.required, onInvalid: this.handleInvalid }, this.allowCustomValues &&
731
+ !!this.inputSearchVal && (h("nano-option", { key: 'cf744eb6bbad3ce2d8d05354d5edaf3eab07a207', slot: "list-top", value: this.inputSearchVal, selected: false, label: this.inputSearchVal, onNanoSelect: () => this.inputCtrl.focus() }, h("span", { key: '990e00208c403d92d1586fb0b2c4618768f5fda5', slot: "check-icon" }), "Add '", this.inputSearchVal, "'")), h("slot", { key: '54fce41f95c01e0b2ff1619209ebb15a28383677' }))), h("select", { key: '1c5ff40ac84be25c6b7075ef031b29f2b6f9b007', id: this.selectId + '-hidden', class: "select__native-ctrl", ref: (select) => (this.nativeSelect = select), "aria-labelledby": labelId + ' ' + moreId + ' ' + helperEndId, disabled: this.disabled, form: this.form, multiple: this.multiple, name: this.name, required: this.required, onInvalid: this.handleInvalid }, this.allowCustomValues &&
732
732
  this.valArray.map((val) => {
733
733
  return (h("option", { value: val, selected: true }, val));
734
734
  }), !this.allowCustomValues &&
@@ -38,7 +38,7 @@ export class Slide {
38
38
  });
39
39
  }
40
40
  render() {
41
- return (h(Host, { key: '599510bff6daf72dca9b1de41767aea575eae98a', class: "nano-slide" }, h("slot", { key: '911f54eb0ad7ee91d7ea358f2e581d55793416ee' })));
41
+ return (h(Host, { key: '3de94ff45cb6dddcca7f0097f3376361c2666f7e', class: "nano-slide" }, h("slot", { key: '9998d9102bdc69eecd28752b4a2c130497b34d06' })));
42
42
  }
43
43
  static get is() { return "nano-slide"; }
44
44
  static get encapsulation() { return "shadow"; }