@shineuix/ssr 0.0.0-stage → 1.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 (414) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +111 -2
  3. package/THIRD-PARTY-NOTICES.md +256 -0
  4. package/dist/components/index.d.ts +329 -0
  5. package/dist/components/index.js +1 -0
  6. package/dist/components/p--YwzuGO4.js +1 -0
  7. package/dist/components/p-1XW6gKXd.js +1 -0
  8. package/dist/components/p-5IOXzr3D.js +1 -0
  9. package/dist/components/p-7Ti-Ht9x.js +1 -0
  10. package/dist/components/p-8BHOb7Dy.js +1 -0
  11. package/dist/components/p-9ma1-eiT.js +1 -0
  12. package/dist/components/p-B-eMraLN.js +1 -0
  13. package/dist/components/p-B0NNDkks.js +1 -0
  14. package/dist/components/p-BE4gZZNA.js +1 -0
  15. package/dist/components/p-BEa7fx4d.js +1 -0
  16. package/dist/components/p-BHB1Wprj.js +1 -0
  17. package/dist/components/p-BJXb6pu9.js +1 -0
  18. package/dist/components/p-BM1Zzj1H.js +1 -0
  19. package/dist/components/p-BOdn2vI7.js +1 -0
  20. package/dist/components/p-BPGiU7Vj.js +1 -0
  21. package/dist/components/p-BSSeip34.js +1 -0
  22. package/dist/components/p-BU3LJP5B.js +1 -0
  23. package/dist/components/p-BUqcDxTK.js +1 -0
  24. package/dist/components/p-BWkzTEZX.js +1 -0
  25. package/dist/components/p-BfkKvKcf.js +1 -0
  26. package/dist/components/p-BiSaIyr0.js +1 -0
  27. package/dist/components/p-BioVIgkG.js +1 -0
  28. package/dist/components/p-BirQihPv.js +1 -0
  29. package/dist/components/p-BmmgLDk2.js +1 -0
  30. package/dist/components/p-BnZU02lM.js +1 -0
  31. package/dist/components/p-BpxmwysK.js +1 -0
  32. package/dist/components/p-Bt5Kx3zM.js +1 -0
  33. package/dist/components/p-Btp15dVO.js +1 -0
  34. package/dist/components/p-BuyjS5bS.js +1 -0
  35. package/dist/components/p-Bv5xqCDb.js +1 -0
  36. package/dist/components/p-Bzu70qWq.js +1 -0
  37. package/dist/components/p-C-6_KLLy.js +1 -0
  38. package/dist/components/p-C0MrkGLb.js +1 -0
  39. package/dist/components/p-C2EJFbyf.js +1 -0
  40. package/dist/components/p-C6DEF4nA.js +1 -0
  41. package/dist/components/p-C6T8Kp68.js +1 -0
  42. package/dist/components/p-C6hsDVJk.js +1 -0
  43. package/dist/components/p-CAeBVGwP.js +1 -0
  44. package/dist/components/p-CCVYcPwO.js +1 -0
  45. package/dist/components/p-CDJMRbCX.js +1 -0
  46. package/dist/components/p-CGWvlrv_.js +1 -0
  47. package/dist/components/p-CJT4wCXG.js +47 -0
  48. package/dist/components/p-CN5x4MC8.js +1 -0
  49. package/dist/components/p-COO9uV7W.js +1 -0
  50. package/dist/components/p-CR0heQtR.js +1 -0
  51. package/dist/components/p-CSPVrtqf.js +1 -0
  52. package/dist/components/p-CT6aJe8X.js +1 -0
  53. package/dist/components/p-CYZG3LOZ.js +1 -0
  54. package/dist/components/p-CYlxvoVo.js +1 -0
  55. package/dist/components/p-CZWUeOlG.js +1 -0
  56. package/dist/components/p-CbnOosJi.js +1 -0
  57. package/dist/components/p-CeVlau-G.js +1 -0
  58. package/dist/components/p-CekHtBpA.js +1 -0
  59. package/dist/components/p-CjVByuTx.js +1 -0
  60. package/dist/components/p-CmqQjlaI.js +1 -0
  61. package/dist/components/p-CrVcfwMC.js +1 -0
  62. package/dist/components/p-Cs2X0Kih.js +1 -0
  63. package/dist/components/p-CyBxJm67.js +1 -0
  64. package/dist/components/p-D0KZcTn9.js +1 -0
  65. package/dist/components/p-D31mbQ3e.js +1 -0
  66. package/dist/components/p-D7L5Nhsy.js +1 -0
  67. package/dist/components/p-D9rbC_yY.js +1 -0
  68. package/dist/components/p-DAfCbU7H.js +1 -0
  69. package/dist/components/p-DIvvXo_w.js +1 -0
  70. package/dist/components/p-DNXYH-fW.js +1 -0
  71. package/dist/components/p-DNgqy3W8.js +1 -0
  72. package/dist/components/p-DRMr6xXH.js +1 -0
  73. package/dist/components/p-DSNURte-.js +1 -0
  74. package/dist/components/p-DSjolNQa.js +1 -0
  75. package/dist/components/p-DXIDl7cw.js +1 -0
  76. package/dist/components/p-DZRA7Q7l.js +1 -0
  77. package/dist/components/p-D_S99uS1.js +1 -0
  78. package/dist/components/p-D_hGdmbW.js +1 -0
  79. package/dist/components/p-Da6TsjCG.js +1 -0
  80. package/dist/components/p-DbF8ArKE.js +1 -0
  81. package/dist/components/p-DdsE4HI6.js +1 -0
  82. package/dist/components/p-Deadvw27.js +1 -0
  83. package/dist/components/p-DgXzRiP4.js +1 -0
  84. package/dist/components/p-DgiZgZCh.js +1 -0
  85. package/dist/components/p-Dgl_qIYT.js +1 -0
  86. package/dist/components/p-DhYPkfV2.js +1 -0
  87. package/dist/components/p-Ds9HpZbg.js +1 -0
  88. package/dist/components/p-DskQyZoR.js +1 -0
  89. package/dist/components/p-DtI1DFsR.js +1 -0
  90. package/dist/components/p-DuJmXwMk.js +1 -0
  91. package/dist/components/p-Dxh8L0dt.js +1 -0
  92. package/dist/components/p-ES48zkCT.js +1 -0
  93. package/dist/components/p-GAnFXayY.js +1 -0
  94. package/dist/components/p-Hej7hALV.js +1 -0
  95. package/dist/components/p-M0fYQCIv.js +1 -0
  96. package/dist/components/p-MsqFuhDd.js +1 -0
  97. package/dist/components/p-NpX9eEW0.js +1 -0
  98. package/dist/components/p-RwPlJzMY.js +1 -0
  99. package/dist/components/p-TBwsYzWO.js +1 -0
  100. package/dist/components/p-U06fVoGD.js +1 -0
  101. package/dist/components/p-UtUl_rX-.js +1 -0
  102. package/dist/components/p-eoxRNwfF.js +1 -0
  103. package/dist/components/p-iKk1YZ0M.js +1 -0
  104. package/dist/components/p-l4ru8vIR.js +1 -0
  105. package/dist/components/p-mF7K10Wh.js +1 -0
  106. package/dist/components/p-mdFjb4l0.js +1 -0
  107. package/dist/components/p-n4-59tbj.js +1 -0
  108. package/dist/components/p-nX8XMRk5.js +1 -0
  109. package/dist/components/p-pJYXPDB_.js +1 -0
  110. package/dist/components/p-q0JbXN8q.js +1 -0
  111. package/dist/components/p-qjuvplfX.js +1 -0
  112. package/dist/components/p-v0MrzKlW.js +1 -0
  113. package/dist/components/p-vN2wl76B.js +1 -0
  114. package/dist/components/sui-accordion-item.d.ts +11 -0
  115. package/dist/components/sui-accordion-item.js +1 -0
  116. package/dist/components/sui-accordion.d.ts +11 -0
  117. package/dist/components/sui-accordion.js +1 -0
  118. package/dist/components/sui-anchor.d.ts +11 -0
  119. package/dist/components/sui-anchor.js +1 -0
  120. package/dist/components/sui-auto-complete.d.ts +11 -0
  121. package/dist/components/sui-auto-complete.js +1 -0
  122. package/dist/components/sui-avatar-group.d.ts +11 -0
  123. package/dist/components/sui-avatar-group.js +1 -0
  124. package/dist/components/sui-avatar.d.ts +11 -0
  125. package/dist/components/sui-avatar.js +1 -0
  126. package/dist/components/sui-badge.d.ts +11 -0
  127. package/dist/components/sui-badge.js +1 -0
  128. package/dist/components/sui-block-ui.d.ts +11 -0
  129. package/dist/components/sui-block-ui.js +1 -0
  130. package/dist/components/sui-board.d.ts +11 -0
  131. package/dist/components/sui-board.js +1 -0
  132. package/dist/components/sui-bottom-nav.d.ts +11 -0
  133. package/dist/components/sui-bottom-nav.js +1 -0
  134. package/dist/components/sui-breadcrumb.d.ts +11 -0
  135. package/dist/components/sui-breadcrumb.js +1 -0
  136. package/dist/components/sui-button-group.d.ts +11 -0
  137. package/dist/components/sui-button-group.js +1 -0
  138. package/dist/components/sui-button.d.ts +11 -0
  139. package/dist/components/sui-button.js +1 -0
  140. package/dist/components/sui-calendar.d.ts +11 -0
  141. package/dist/components/sui-calendar.js +1 -0
  142. package/dist/components/sui-card.d.ts +11 -0
  143. package/dist/components/sui-card.js +1 -0
  144. package/dist/components/sui-carousel.d.ts +11 -0
  145. package/dist/components/sui-carousel.js +1 -0
  146. package/dist/components/sui-cascade-select.d.ts +11 -0
  147. package/dist/components/sui-cascade-select.js +1 -0
  148. package/dist/components/sui-chart-bar.d.ts +11 -0
  149. package/dist/components/sui-chart-bar.js +1 -0
  150. package/dist/components/sui-chart-candlestick.d.ts +11 -0
  151. package/dist/components/sui-chart-candlestick.js +1 -0
  152. package/dist/components/sui-chart-combo.d.ts +11 -0
  153. package/dist/components/sui-chart-combo.js +1 -0
  154. package/dist/components/sui-chart-gauge.d.ts +11 -0
  155. package/dist/components/sui-chart-gauge.js +1 -0
  156. package/dist/components/sui-chart-heatmap.d.ts +11 -0
  157. package/dist/components/sui-chart-heatmap.js +1 -0
  158. package/dist/components/sui-chart-line.d.ts +11 -0
  159. package/dist/components/sui-chart-line.js +1 -0
  160. package/dist/components/sui-chart-navigator.d.ts +11 -0
  161. package/dist/components/sui-chart-navigator.js +1 -0
  162. package/dist/components/sui-chart-pie.d.ts +11 -0
  163. package/dist/components/sui-chart-pie.js +1 -0
  164. package/dist/components/sui-chart-radar.d.ts +11 -0
  165. package/dist/components/sui-chart-radar.js +1 -0
  166. package/dist/components/sui-chart-scatter.d.ts +11 -0
  167. package/dist/components/sui-chart-scatter.js +1 -0
  168. package/dist/components/sui-chart-synced.d.ts +11 -0
  169. package/dist/components/sui-chart-synced.js +1 -0
  170. package/dist/components/sui-chart-treemap.d.ts +11 -0
  171. package/dist/components/sui-chart-treemap.js +1 -0
  172. package/dist/components/sui-chart-waterfall.d.ts +11 -0
  173. package/dist/components/sui-chart-waterfall.js +1 -0
  174. package/dist/components/sui-checkbox-group.d.ts +11 -0
  175. package/dist/components/sui-checkbox-group.js +1 -0
  176. package/dist/components/sui-checkbox.d.ts +11 -0
  177. package/dist/components/sui-checkbox.js +1 -0
  178. package/dist/components/sui-chip.d.ts +11 -0
  179. package/dist/components/sui-chip.js +1 -0
  180. package/dist/components/sui-choice-cards.d.ts +11 -0
  181. package/dist/components/sui-choice-cards.js +1 -0
  182. package/dist/components/sui-code-block.d.ts +11 -0
  183. package/dist/components/sui-code-block.js +1 -0
  184. package/dist/components/sui-color-editor.d.ts +11 -0
  185. package/dist/components/sui-color-editor.js +1 -0
  186. package/dist/components/sui-color-picker.d.ts +11 -0
  187. package/dist/components/sui-color-picker.js +1 -0
  188. package/dist/components/sui-command-palette.d.ts +11 -0
  189. package/dist/components/sui-command-palette.js +1 -0
  190. package/dist/components/sui-config-list.d.ts +11 -0
  191. package/dist/components/sui-config-list.js +1 -0
  192. package/dist/components/sui-config-row.d.ts +11 -0
  193. package/dist/components/sui-config-row.js +1 -0
  194. package/dist/components/sui-confirm-dialog.d.ts +11 -0
  195. package/dist/components/sui-confirm-dialog.js +1 -0
  196. package/dist/components/sui-confirm-popup.d.ts +11 -0
  197. package/dist/components/sui-confirm-popup.js +1 -0
  198. package/dist/components/sui-context-menu.d.ts +11 -0
  199. package/dist/components/sui-context-menu.js +1 -0
  200. package/dist/components/sui-copy-button.d.ts +11 -0
  201. package/dist/components/sui-copy-button.js +1 -0
  202. package/dist/components/sui-data-grid.d.ts +11 -0
  203. package/dist/components/sui-data-grid.js +1 -0
  204. package/dist/components/sui-data-table.d.ts +11 -0
  205. package/dist/components/sui-data-table.js +1 -0
  206. package/dist/components/sui-data-view.d.ts +11 -0
  207. package/dist/components/sui-data-view.js +1 -0
  208. package/dist/components/sui-date-picker.d.ts +11 -0
  209. package/dist/components/sui-date-picker.js +1 -0
  210. package/dist/components/sui-description-list.d.ts +11 -0
  211. package/dist/components/sui-description-list.js +1 -0
  212. package/dist/components/sui-dialog.d.ts +11 -0
  213. package/dist/components/sui-dialog.js +1 -0
  214. package/dist/components/sui-divider.d.ts +11 -0
  215. package/dist/components/sui-divider.js +1 -0
  216. package/dist/components/sui-dock.d.ts +11 -0
  217. package/dist/components/sui-dock.js +1 -0
  218. package/dist/components/sui-drawer.d.ts +11 -0
  219. package/dist/components/sui-drawer.js +1 -0
  220. package/dist/components/sui-edit-box.d.ts +11 -0
  221. package/dist/components/sui-edit-box.js +1 -0
  222. package/dist/components/sui-empty-state.d.ts +11 -0
  223. package/dist/components/sui-empty-state.js +1 -0
  224. package/dist/components/sui-fieldset.d.ts +11 -0
  225. package/dist/components/sui-fieldset.js +1 -0
  226. package/dist/components/sui-file-upload.d.ts +11 -0
  227. package/dist/components/sui-file-upload.js +1 -0
  228. package/dist/components/sui-filter-builder.d.ts +11 -0
  229. package/dist/components/sui-filter-builder.js +1 -0
  230. package/dist/components/sui-filter-panel.d.ts +11 -0
  231. package/dist/components/sui-filter-panel.js +1 -0
  232. package/dist/components/sui-float-label.d.ts +11 -0
  233. package/dist/components/sui-float-label.js +1 -0
  234. package/dist/components/sui-fluid.d.ts +11 -0
  235. package/dist/components/sui-fluid.js +1 -0
  236. package/dist/components/sui-form-actions.d.ts +11 -0
  237. package/dist/components/sui-form-actions.js +1 -0
  238. package/dist/components/sui-form-layout.d.ts +11 -0
  239. package/dist/components/sui-form-layout.js +1 -0
  240. package/dist/components/sui-form.d.ts +11 -0
  241. package/dist/components/sui-form.js +1 -0
  242. package/dist/components/sui-galleria.d.ts +11 -0
  243. package/dist/components/sui-galleria.js +1 -0
  244. package/dist/components/sui-icon-button.d.ts +11 -0
  245. package/dist/components/sui-icon-button.js +1 -0
  246. package/dist/components/sui-icon-field.d.ts +11 -0
  247. package/dist/components/sui-icon-field.js +1 -0
  248. package/dist/components/sui-ifta-label.d.ts +11 -0
  249. package/dist/components/sui-ifta-label.js +1 -0
  250. package/dist/components/sui-image-compare.d.ts +11 -0
  251. package/dist/components/sui-image-compare.js +1 -0
  252. package/dist/components/sui-image.d.ts +11 -0
  253. package/dist/components/sui-image.js +1 -0
  254. package/dist/components/sui-inplace.d.ts +11 -0
  255. package/dist/components/sui-inplace.js +1 -0
  256. package/dist/components/sui-input-group-addon.d.ts +11 -0
  257. package/dist/components/sui-input-group-addon.js +1 -0
  258. package/dist/components/sui-input-group.d.ts +11 -0
  259. package/dist/components/sui-input-group.js +1 -0
  260. package/dist/components/sui-input-mask.d.ts +11 -0
  261. package/dist/components/sui-input-mask.js +1 -0
  262. package/dist/components/sui-input-number.d.ts +11 -0
  263. package/dist/components/sui-input-number.js +1 -0
  264. package/dist/components/sui-input-otp.d.ts +11 -0
  265. package/dist/components/sui-input-otp.js +1 -0
  266. package/dist/components/sui-input-tags.d.ts +11 -0
  267. package/dist/components/sui-input-tags.js +1 -0
  268. package/dist/components/sui-input-text.d.ts +11 -0
  269. package/dist/components/sui-input-text.js +1 -0
  270. package/dist/components/sui-kbd.d.ts +11 -0
  271. package/dist/components/sui-kbd.js +1 -0
  272. package/dist/components/sui-knob.d.ts +11 -0
  273. package/dist/components/sui-knob.js +1 -0
  274. package/dist/components/sui-list.d.ts +11 -0
  275. package/dist/components/sui-list.js +1 -0
  276. package/dist/components/sui-listbox.d.ts +11 -0
  277. package/dist/components/sui-listbox.js +1 -0
  278. package/dist/components/sui-mega-menu.d.ts +11 -0
  279. package/dist/components/sui-mega-menu.js +1 -0
  280. package/dist/components/sui-menu.d.ts +11 -0
  281. package/dist/components/sui-menu.js +1 -0
  282. package/dist/components/sui-menubar.d.ts +11 -0
  283. package/dist/components/sui-menubar.js +1 -0
  284. package/dist/components/sui-message.d.ts +11 -0
  285. package/dist/components/sui-message.js +1 -0
  286. package/dist/components/sui-meter-group.d.ts +11 -0
  287. package/dist/components/sui-meter-group.js +1 -0
  288. package/dist/components/sui-mini-toolbar.d.ts +11 -0
  289. package/dist/components/sui-mini-toolbar.js +1 -0
  290. package/dist/components/sui-multi-select.d.ts +11 -0
  291. package/dist/components/sui-multi-select.js +1 -0
  292. package/dist/components/sui-notification-center.d.ts +11 -0
  293. package/dist/components/sui-notification-center.js +1 -0
  294. package/dist/components/sui-order-list.d.ts +11 -0
  295. package/dist/components/sui-order-list.js +1 -0
  296. package/dist/components/sui-org-chart.d.ts +11 -0
  297. package/dist/components/sui-org-chart.js +1 -0
  298. package/dist/components/sui-overlay-badge.d.ts +11 -0
  299. package/dist/components/sui-overlay-badge.js +1 -0
  300. package/dist/components/sui-page-header.d.ts +11 -0
  301. package/dist/components/sui-page-header.js +1 -0
  302. package/dist/components/sui-paginator.d.ts +11 -0
  303. package/dist/components/sui-paginator.js +1 -0
  304. package/dist/components/sui-panel-menu.d.ts +11 -0
  305. package/dist/components/sui-panel-menu.js +1 -0
  306. package/dist/components/sui-panel.d.ts +11 -0
  307. package/dist/components/sui-panel.js +1 -0
  308. package/dist/components/sui-password.d.ts +11 -0
  309. package/dist/components/sui-password.js +1 -0
  310. package/dist/components/sui-persona.d.ts +11 -0
  311. package/dist/components/sui-persona.js +1 -0
  312. package/dist/components/sui-pick-list.d.ts +11 -0
  313. package/dist/components/sui-pick-list.js +1 -0
  314. package/dist/components/sui-popover.d.ts +11 -0
  315. package/dist/components/sui-popover.js +1 -0
  316. package/dist/components/sui-progress-bar.d.ts +11 -0
  317. package/dist/components/sui-progress-bar.js +1 -0
  318. package/dist/components/sui-progress-ring.d.ts +11 -0
  319. package/dist/components/sui-progress-ring.js +1 -0
  320. package/dist/components/sui-progress-spinner.d.ts +11 -0
  321. package/dist/components/sui-progress-spinner.js +1 -0
  322. package/dist/components/sui-qr-code.d.ts +11 -0
  323. package/dist/components/sui-qr-code.js +1 -0
  324. package/dist/components/sui-radio-button.d.ts +11 -0
  325. package/dist/components/sui-radio-button.js +1 -0
  326. package/dist/components/sui-radio-group.d.ts +11 -0
  327. package/dist/components/sui-radio-group.js +1 -0
  328. package/dist/components/sui-rating.d.ts +11 -0
  329. package/dist/components/sui-rating.js +1 -0
  330. package/dist/components/sui-rich-text-editor.d.ts +11 -0
  331. package/dist/components/sui-rich-text-editor.js +1 -0
  332. package/dist/components/sui-save-status.d.ts +11 -0
  333. package/dist/components/sui-save-status.js +1 -0
  334. package/dist/components/sui-scheduler-builder.d.ts +11 -0
  335. package/dist/components/sui-scheduler-builder.js +1 -0
  336. package/dist/components/sui-scroll-panel.d.ts +11 -0
  337. package/dist/components/sui-scroll-panel.js +1 -0
  338. package/dist/components/sui-scroll-top.d.ts +11 -0
  339. package/dist/components/sui-scroll-top.js +1 -0
  340. package/dist/components/sui-select-button.d.ts +11 -0
  341. package/dist/components/sui-select-button.js +1 -0
  342. package/dist/components/sui-select.d.ts +11 -0
  343. package/dist/components/sui-select.js +1 -0
  344. package/dist/components/sui-side-nav.d.ts +11 -0
  345. package/dist/components/sui-side-nav.js +1 -0
  346. package/dist/components/sui-skeleton-card.d.ts +11 -0
  347. package/dist/components/sui-skeleton-card.js +1 -0
  348. package/dist/components/sui-skeleton.d.ts +11 -0
  349. package/dist/components/sui-skeleton.js +1 -0
  350. package/dist/components/sui-slider.d.ts +11 -0
  351. package/dist/components/sui-slider.js +1 -0
  352. package/dist/components/sui-sparkline.d.ts +11 -0
  353. package/dist/components/sui-sparkline.js +1 -0
  354. package/dist/components/sui-speed-dial.d.ts +11 -0
  355. package/dist/components/sui-speed-dial.js +1 -0
  356. package/dist/components/sui-split-button.d.ts +11 -0
  357. package/dist/components/sui-split-button.js +1 -0
  358. package/dist/components/sui-splitter.d.ts +11 -0
  359. package/dist/components/sui-splitter.js +1 -0
  360. package/dist/components/sui-spoiler.d.ts +11 -0
  361. package/dist/components/sui-spoiler.js +1 -0
  362. package/dist/components/sui-stat-card.d.ts +11 -0
  363. package/dist/components/sui-stat-card.js +1 -0
  364. package/dist/components/sui-stepper.d.ts +11 -0
  365. package/dist/components/sui-stepper.js +1 -0
  366. package/dist/components/sui-tab.d.ts +11 -0
  367. package/dist/components/sui-tab.js +1 -0
  368. package/dist/components/sui-tabs.d.ts +11 -0
  369. package/dist/components/sui-tabs.js +1 -0
  370. package/dist/components/sui-tag.d.ts +11 -0
  371. package/dist/components/sui-tag.js +1 -0
  372. package/dist/components/sui-terminal.d.ts +11 -0
  373. package/dist/components/sui-terminal.js +1 -0
  374. package/dist/components/sui-textarea.d.ts +11 -0
  375. package/dist/components/sui-textarea.js +1 -0
  376. package/dist/components/sui-theme-picker.d.ts +11 -0
  377. package/dist/components/sui-theme-picker.js +1 -0
  378. package/dist/components/sui-tiered-menu.d.ts +11 -0
  379. package/dist/components/sui-tiered-menu.js +1 -0
  380. package/dist/components/sui-time-picker.d.ts +11 -0
  381. package/dist/components/sui-time-picker.js +1 -0
  382. package/dist/components/sui-timeline.d.ts +11 -0
  383. package/dist/components/sui-timeline.js +1 -0
  384. package/dist/components/sui-toast-host.d.ts +11 -0
  385. package/dist/components/sui-toast-host.js +1 -0
  386. package/dist/components/sui-toggle-button.d.ts +11 -0
  387. package/dist/components/sui-toggle-button.js +1 -0
  388. package/dist/components/sui-toggle-switch.d.ts +11 -0
  389. package/dist/components/sui-toggle-switch.js +1 -0
  390. package/dist/components/sui-toolbar.d.ts +11 -0
  391. package/dist/components/sui-toolbar.js +1 -0
  392. package/dist/components/sui-tooltip.d.ts +11 -0
  393. package/dist/components/sui-tooltip.js +1 -0
  394. package/dist/components/sui-tour.d.ts +11 -0
  395. package/dist/components/sui-tour.js +1 -0
  396. package/dist/components/sui-tree-select.d.ts +11 -0
  397. package/dist/components/sui-tree-select.js +1 -0
  398. package/dist/components/sui-tree-table.d.ts +11 -0
  399. package/dist/components/sui-tree-table.js +1 -0
  400. package/dist/components/sui-tree.d.ts +11 -0
  401. package/dist/components/sui-tree.js +1 -0
  402. package/dist/components/sui-trend.d.ts +11 -0
  403. package/dist/components/sui-trend.js +1 -0
  404. package/dist/components/sui-virtual-scroller.d.ts +11 -0
  405. package/dist/components/sui-virtual-scroller.js +1 -0
  406. package/dist/hydrate/index.d.ts +287 -0
  407. package/dist/hydrate/index.js +1 -0
  408. package/dist/hydrate/index.mjs +1 -0
  409. package/dist/hydrate/package.json +13 -0
  410. package/dist/index.cjs +55 -0
  411. package/dist/index.d.cts +28 -0
  412. package/dist/index.d.mts +28 -0
  413. package/dist/index.mjs +59 -0
  414. package/package.json +126 -3
@@ -0,0 +1 @@
1
+ import{p as e,H as i,c as s,h as r,t}from"./p-CeVlau-G.js";import{u as o}from"./p-U06fVoGD.js";import{P as a,a as n}from"./p-D0KZcTn9.js";import{i as u,a as l}from"./p-Cs2X0Kih.js";import{G as d,a as c,q as p,k as h,z as f,af as g}from"./p-DdsE4HI6.js";import{l as v,a as x}from"./p-BuyjS5bS.js";import{i as b}from"./p-GAnFXayY.js";import{d as m}from"./p-BHB1Wprj.js";const k=e(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.suiExpandedChange=s(this,"suiExpandedChange",3),this.suiSelectionChange=s(this,"suiSelectionChange",3),this.suiLoad=s(this,"suiLoad",7),this.suiNodesChange=s(this,"suiNodesChange",3)}get host(){return this}nodes=[];expanded=[];selectionMode="single";selection=[];filter=!1;dragDrop=!1;loading=!1;loadingMessage;emptyMessage;emptyFilterMessage;suiExpandedChange;suiSelectionChange;suiLoad;suiNodesChange;query="";activeKey;dragKey;overKey;overZone;live="";hostLabel;hostLabelledby;stopHostLabel;stopHostLabelledby;fieldId=o("sui-tree");pendingFocus=!1;itemEls=new Map;matchCache;connectedCallback(){m(this.host,(()=>this.itemEl(this.tabKey(this.flat())))),this.stopHostLabel?.(),this.stopHostLabel=u(this.host,(e=>{this.hostLabel=e})),this.stopHostLabelledby?.(),this.stopHostLabelledby=l(this.host,(e=>{this.hostLabelledby=e}))}disconnectedCallback(){this.stopHostLabel?.(),this.stopHostLabel=void 0,this.stopHostLabelledby?.(),this.stopHostLabelledby=void 0}componentDidRender(){if(!this.pendingFocus)return;this.pendingFocus=!1;const e=this.itemEl(this.activeKey);e?.focus()}async setFocus(){const e=this.tabKey(this.flat());null!=e&&(this.activeKey=e,this.itemEl(e)?.focus())}tabKey(e){return e.some((e=>e.n.key===this.activeKey))?this.activeKey:e[0]?.n.key}itemEl(e){return null==e?void 0:this.itemEls.get(e)}keyFromRow(e){const i=e.getAttribute("data-key");for(const[s,r]of this.itemEls)if(r===e||s+""===i)return s}matchingKeys(){const e=this.query.trim().toLowerCase();if(!e)return null;const i=this.nodes||[],s=this.matchCache;if(s&&s.q===e&&s.nodes===i)return s.keys;const r=new Set,t=i=>{let s=!1;return i.forEach((i=>{(t(i.children||[])||i.label.toLowerCase().includes(e))&&(r.add(i.key),s=!0)})),s};return t(i),this.matchCache={q:e,nodes:i,keys:r},r}match=e=>{const i=this.matchingKeys();return!i||i.has(e.key)};isBranch(e){return(e.children||[]).length>0||!1===e.leaf}isOpen(e){const i=e.children||[];return(this.expanded||[]).includes(e.key)||!!this.query.trim()&&i.some(this.match)}flat(){const e=[],i=(s,r,t)=>{s.filter(this.match).forEach((s=>{const o=s.children||[],a=this.isBranch(s)&&this.isOpen(s);e.push({n:s,depth:r,parent:t,hasKids:this.isBranch(s),open:a}),a&&i(o,r+1,s.key)}))};return i(this.nodes||[],0),e}filtered(){const e=[],i=s=>{s.filter(this.match).forEach((s=>{e.push(s),i(s.children||[])}))};return i(this.nodes||[]),e}toggleExpand(e){const i=this.expanded||[],s=!i.includes(e);this.expanded=s?i.concat([e]):i.filter((i=>i!==e)),this.suiExpandedChange.emit(this.expanded),s&&this.askForChildren(e)}askForChildren(e){const i=this.find(this.nodes||[],e);!i||!1!==i.leaf||(i.children||[]).length>0||i.loading||this.suiLoad.emit(i)}toggleSelect(e){if("single"===this.selectionMode){if((this.selection||[])[0]===e&&1===(this.selection||[]).length)return;this.selection=[e]}else{if("checkbox"!==this.selectionMode)return;{const i=this.selection||[];this.selection=i.includes(e)?i.filter((i=>i!==e)):i.concat([e])}}this.suiSelectionChange.emit(this.selection)}toggleAll=()=>{const e=this.filtered().map((e=>e.key));if(!e.length)return;const i=this.selection||[],s=e.every((e=>i.includes(e)));this.selection=s?i.filter((i=>!e.includes(i))):i.concat(e.filter((e=>!i.includes(e)))),this.suiSelectionChange.emit(this.selection)};onClick=e=>{const i=e.target,s=i.closest('[role="treeitem"]');if(!s)return;const r=this.keyFromRow(s);if(null==r)return;this.activeKey=r;const t=i.closest("[data-act]"),o=t&&t.closest('[role="treeitem"]')===s?t.getAttribute("data-act"):null;"expand"!==o?"check"!==o?"single"===this.selectionMode&&this.toggleSelect(r):this.toggleSelect(r):s.hasAttribute("aria-expanded")&&this.toggleExpand(r)};focusAt(e,i){i<0||i>=e.length||(this.activeKey=e[i].n.key,this.pendingFocus=!0)}find(e,i){for(const s of e){if(s.key===i)return s;const e=this.find(s.children||[],i);if(e)return e}}holds(e,i){return(e.children||[]).some((e=>e.key===i||this.holds(e,i)))}placeOf(e){const i=(s,r)=>{const t=s.findIndex((i=>i.key===e));if(t>=0)return{list:s,idx:t,parent:r};for(const e of s){const s=i(e.children||[],e.key);if(s)return s}};return i(this.nodes||[])}detach(e,i){return e.filter((e=>e.key!==i)).map((e=>(e.children||[]).length?{...e,children:this.detach(e.children,i)}:e))}insert(e,i,s,r){const t=[];return e.forEach((e=>{const o=e.key===i;o&&"before"===s&&t.push(r),t.push(o&&"inside"===s?{...e,children:(e.children||[]).concat([r])}:(e.children||[]).length?{...e,children:this.insert(e.children,i,s,r)}:e),o&&"after"===s&&t.push(r)})),t}moveNode(e,i,s){if(!this.dragDrop||e===i)return;const r=this.find(this.nodes||[],e);if(!r||this.holds(r,i))return;const t="inside"===s?i:this.placeOf(i)?.parent,o=this.insert(this.detach(this.nodes||[],e),i,s,r);this.nodes=o,this.activeKey=e,this.pendingFocus=!0,"inside"!==s||(this.expanded||[]).includes(i)||this.toggleExpand(i),this.suiNodesChange.emit(o);const a=null!=t?this.find(o,t)?.label:null;this.live=a?v(void 0,"tree.movedInto",void 0,"{item} moved into {parent}.",{item:r.label,parent:a}):v(void 0,"tree.movedToTop",void 0,"{item} moved to the top level.",{item:r.label})}moveByKey(e,i){const s=this.placeOf(e);if(!s)return!1;if("up"===i||"down"===i){const r=s.list[s.idx+("up"===i?-1:1)];return!!r&&(this.moveNode(e,r.key,"up"===i?"before":"after"),!0)}if("in"===i){const i=s.list[s.idx-1];return!!i&&(this.moveNode(e,i.key,"inside"),!0)}return null!=s.parent&&(this.moveNode(e,s.parent,"after"),!0)}onKeyDown=e=>{if(e.defaultPrevented||"INPUT"===e.target.tagName)return;const i=this.flat();if(!i.length)return;let s=i.findIndex((e=>e.n.key===this.activeKey));s<0&&(s=0);const r=i[s],t=e.ctrlKey||e.metaKey,o=b(this.host)?"ArrowLeft":"ArrowRight",a="ArrowLeft"===o?"ArrowRight":"ArrowLeft";if(t&&this.dragDrop){const i="ArrowUp"===e.key?"up":"ArrowDown"===e.key?"down":e.key===o?"in":e.key===a?"out":null;if(i)return e.preventDefault(),void(this.moveByKey(r.n.key,i)||(this.live=v(void 0,"tree.cannotMove",void 0,"{item} cannot move that way.",{item:r.n.label})))}switch(e.key){case"ArrowDown":e.preventDefault(),this.focusAt(i,s+1);break;case"ArrowUp":e.preventDefault(),this.focusAt(i,s-1);break;case"Home":e.preventDefault(),this.focusAt(i,0);break;case"End":e.preventDefault(),this.focusAt(i,i.length-1);break;case o:e.preventDefault(),r.hasKids&&!r.open?(this.activeKey=r.n.key,this.toggleExpand(r.n.key)):r.hasKids&&r.open&&this.focusAt(i,s+1);break;case a:e.preventDefault(),r.hasKids&&r.open?(this.activeKey=r.n.key,this.toggleExpand(r.n.key)):null!=r.parent&&this.focusAt(i,i.findIndex((e=>e.n.key===r.parent)));break;case"Enter":e.preventDefault(),this.activeKey=r.n.key,"none"===this.selectionMode?r.hasKids&&this.toggleExpand(r.n.key):this.toggleSelect(r.n.key);break;case" ":e.preventDefault(),this.activeKey=r.n.key,this.toggleSelect(r.n.key)}};resetDrag=()=>{this.dragKey=void 0,this.overKey=void 0,this.overZone=void 0};onDragStart=(e,i)=>{if(this.dragKey=i,this.activeKey=i,e.dataTransfer){e.dataTransfer.effectAllowed="move";try{e.dataTransfer.setData("text/plain",i+"")}catch{}}};onRowDragOver=(e,i)=>{if(!this.dragDrop||null==this.dragKey)return;e.preventDefault(),e.stopPropagation();const s=e.currentTarget.getBoundingClientRect(),r=(e.clientY-s.top)/(s.height||1),t=r<.25?"before":r>.75?"after":"inside",o=this.find(this.nodes||[],this.dragKey);if(!o||i===this.dragKey||this.holds(o,i))return this.overKey=void 0,void(this.overZone=void 0);this.overKey=i,this.overZone=t};onDrop=e=>{e.preventDefault(),e.stopPropagation();const i=this.dragKey,s=this.overKey,r=this.overZone;this.resetDrag(),null!=i&&null!=s&&r&&this.moveNode(i,s,r)};renderNodes(e,i,s){const t=this.selectionMode,o=this.selection||[];return e.filter(this.match).map((e=>{const a=e.children||[],n=this.isBranch(e),u=n&&this.isOpen(e),l=o.includes(e.key),f=`${this.fieldId}-${e.key}-label`,g=`${this.fieldId}-${e.key}-meta`,v=this.overKey===e.key?this.overZone:void 0;return r("div",{role:"treeitem",class:"item",key:e.key,ref:i=>{i&&this.itemEls.set(e.key,i)},"data-key":e.key,tabindex:e.key===s?0:-1,"aria-level":i+1,"aria-labelledby":e.meta?`${f} ${g}`:f,"aria-busy":e.loading?"true":null,"aria-expanded":n?u?"true":"false":null,"aria-selected":"single"===t?l?"true":"false":null,"aria-checked":"checkbox"===t?l?"true":"false":null},r("div",{class:{row:!0,sel:l&&"single"===t,dragging:this.dragKey===e.key,"drop-before":"before"===v,"drop-after":"after"===v,"drop-in":"inside"===v},style:{paddingInlineStart:10+20*i+"px","--sui-tree-indent":10+20*i+"px"},draggable:this.dragDrop,onDragStart:this.dragDrop?i=>this.onDragStart(i,e.key):void 0,onDragEnd:this.dragDrop?this.resetDrag:void 0,onDragOver:this.dragDrop?i=>this.onRowDragOver(i,e.key):void 0,onDrop:this.dragDrop?this.onDrop:void 0},r("span",{class:{exp:!0,leaf:!n,open:u},"data-act":"expand"},r(d,e.loading?{glyph:c,class:"sui-popup-spin"}:{glyph:p})),"checkbox"===t?r("span",{class:{box:!0,on:l},"data-act":"check","aria-hidden":"true"},l?r(d,{glyph:h}):null):null,e.icon?r("i",{class:e.icon+" icon","aria-hidden":"true"}):null,r("span",{class:"label",id:f},e.label),e.meta?r("span",{class:"meta",id:g},e.meta):null),u?r("div",{role:"group"},this.renderNodes(a,i+1,s)):null)}))}render(){this.itemEls.clear();const e=this.flat(),i=this.tabKey(e),s=this.filtered(),t=s.filter((e=>(this.selection||[]).includes(e.key))).length,o=s.length>0&&t===s.length,u=t>0&&!o,l=x(void 0,"tree.loading",this.loadingMessage,"Loading"),c=!!this.query.trim(),p=x(void 0,"tree.emptyFilter",this.emptyFilterMessage,"No matches.");return r("div",{key:"8abcfbc1dc76caa96f8a4d66ae00fa5dd7b75739",class:"sui-tree"},r(n,{key:"346cc2347132eb6cc3d53c0f42285bf34ad83271",message:this.loading?l:c&&0===e.length?p:""}),this.loading?r(a,{message:l}):[this.filter?r("div",{class:"filter"},r("div",{class:"filter-box sui-frame"},r(d,{glyph:f}),r("input",{type:"text",placeholder:x(void 0,"tree.filterPlaceholder",void 0,"Filter"),"aria-label":x(void 0,"tree.filter",void 0,"Filter"),value:this.query,onInput:e=>this.query=e.target.value}))):null,"checkbox"===this.selectionMode?r("button",{type:"button",class:"all",role:"checkbox","aria-checked":o?"true":u?"mixed":"false",disabled:0===s.length,onClick:this.toggleAll},r("span",{class:{box:!0,on:o,mixed:u},"aria-hidden":"true"},o?r(d,{glyph:h}):null,u?r(d,{glyph:g}):null),r("span",{class:"all-label"},x(void 0,"tree.selectAll",void 0,"Select all"))):null,r("div",{role:"tree",class:"tree","aria-label":this.hostLabel,"aria-labelledby":this.hostLabelledby,"aria-multiselectable":"checkbox"===this.selectionMode?"true":null,onClick:this.onClick,onKeyDown:this.onKeyDown},0===e.length?null:this.renderNodes(this.nodes||[],0,i)),0===e.length?r("div",{class:"sui-popup-empty"},c?p:r("slot",{name:"empty"},x(void 0,"tree.empty",this.emptyMessage,"Nothing here yet."))):null],r("div",{key:"live",class:"live",role:"status","aria-atomic":"true"},this.live))}static get style(){return".sc-sui-tree-h{display:block;font-family:var(--font-sans);color:var(--ink)}.sui-tree.sc-sui-tree{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:8px}.filter.sc-sui-tree{padding:2px 2px 8px}.filter-box.sc-sui-tree{display:flex;align-items:center;gap:7px;height:30px;padding:0 9px;box-sizing:border-box}.filter-box.sc-sui-tree .sui-glyph.sc-sui-tree{font-size:11px;color:var(--ink-faint)}.filter-box.sc-sui-tree input.sc-sui-tree{flex:1;min-width:0;border:none;outline:none;background:transparent;font:460 12.5px var(--font-sans);color:var(--ink)}.filter-box.sc-sui-tree input.sc-sui-tree::placeholder{color:var(--ink-placeholder)}.all.sc-sui-tree{display:flex;align-items:center;gap:7px;width:100%;box-sizing:border-box;margin:0 0 6px;padding:6px 10px;border:none;border-radius:var(--radius-md);background:transparent;cursor:pointer;text-align:start;font:550 12.5px var(--font-sans);color:var(--ink);border-bottom:1px solid var(--hairline);transition:background var(--duration-fast) var(--ease-out)}.all.sc-sui-tree:hover:not(:disabled){--ink-faint:var(--ink-muted);background:var(--surface-hover)}.all.sc-sui-tree:disabled{--ink-muted:var(--ink-placeholder);--ink-faint:var(--ink-placeholder);color:var(--disabled-ink);cursor:not-allowed}.all.sc-sui-tree:disabled .box.sc-sui-tree{background:var(--disabled-bg);border-color:var(--border-strong)}.all.sc-sui-tree:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}.all-label.sc-sui-tree{flex:1;min-width:0}.tree.sc-sui-tree:focus{outline:none}.item.sc-sui-tree{outline:none}.item.sc-sui-tree:focus-visible>.row.sc-sui-tree{outline:2px solid var(--focus-ring);outline-offset:-2px}.row.sc-sui-tree{display:flex;align-items:center;gap:7px;padding:6px 10px;border-radius:var(--radius-md);font-size:13px;font-weight:460;background:transparent;cursor:pointer;user-select:none;transition:background var(--duration-fast) var(--ease-out)}.row.sc-sui-tree:hover{--ink-faint:var(--ink-muted);background:var(--surface-hover)}.row.sel.sc-sui-tree{--ink-muted:var(--ink-muted-on-wash);--ink-faint:var(--ink-muted);background:var(--surface-selected);font-weight:650}.row.sel.sc-sui-tree:hover{--ink-muted:var(--ink);--ink-faint:var(--ink);background:linear-gradient(var(--surface-hover) 0 0) var(--surface-selected)}.exp.sc-sui-tree{width:16px;display:inline-flex;justify-content:center;color:var(--ink-faint);flex-shrink:0}.exp.leaf.sc-sui-tree{visibility:hidden}.exp.sc-sui-tree .sui-glyph.sc-sui-tree{font-size:9px;transition:transform var(--duration-base) var(--ease-out)}.exp.open.sc-sui-tree .sui-glyph.sc-sui-tree{transform:rotate(90deg)}.exp.sc-sui-tree .sui-glyph.sc-sui-tree:dir(rtl){transform:scaleX(-1) rotate(0deg)}.exp.open.sc-sui-tree .sui-glyph.sc-sui-tree:dir(rtl){transform:scaleX(-1) rotate(90deg)}.icon.sc-sui-tree{font-size:12px;color:var(--ink-muted);width:15px;text-align:center;flex-shrink:0}.label.sc-sui-tree{flex:1;min-width:0}.meta.sc-sui-tree{font-size:12px;color:var(--ink-faint);font-feature-settings:'tnum'}.row.sel.sc-sui-tree .meta.sc-sui-tree{color:var(--ink-muted)}.box.sc-sui-tree{width:18px;height:18px;box-sizing:border-box;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-xs);border:1.5px solid color-mix(in srgb, var(--control-border) 75%, var(--ink));background:var(--surface);transition:background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out)}.box.on.sc-sui-tree,.box.mixed.sc-sui-tree{border-color:var(--brand);background:var(--brand)}.box.sc-sui-tree .sui-glyph.sc-sui-tree{font-size:10px;color:var(--brand-contrast)}.row.dragging.sc-sui-tree{opacity:0.5;outline:1px dashed var(--ink-muted);outline-offset:-1px}.row.drop-before.sc-sui-tree,.row.drop-after.sc-sui-tree{position:relative}.row.drop-before.sc-sui-tree::before,.row.drop-after.sc-sui-tree::before{content:'';position:absolute;inset-inline:var(--sui-tree-indent, 10px) 6px;height:2px;border-radius:1px;background:var(--accent-ink);box-shadow:0 0 0 1px color-mix(in srgb, var(--accent-ink) 25%, transparent);pointer-events:none}.row.drop-before.sc-sui-tree::before{top:-1px}.row.drop-after.sc-sui-tree::before{bottom:-1px}.row.drop-in.sc-sui-tree{outline:1.5px dashed var(--accent);outline-offset:-2px;background:var(--accent-soft)}.live.sc-sui-tree{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}@media (forced-colors: active){.row.sel.sc-sui-tree{forced-color-adjust:none;background:Highlight;color:HighlightText}.row.sel.sc-sui-tree .exp.sc-sui-tree,.row.sel.sc-sui-tree .icon.sc-sui-tree,.row.sel.sc-sui-tree .meta.sc-sui-tree{color:HighlightText}.row.sel.sc-sui-tree .box.sc-sui-tree{forced-color-adjust:auto}.item.sc-sui-tree:focus-visible>.row.sel.sc-sui-tree{outline-color:HighlightText;box-shadow:none}.row.drop-before.sc-sui-tree::before,.row.drop-after.sc-sui-tree::before{forced-color-adjust:none;background:Highlight}.row.drop-in.sc-sui-tree{outline:2px solid Highlight;outline-offset:-2px;box-shadow:none}}.sui-frame.sc-sui-tree{box-sizing:border-box;background:var(--sui-field-bg, var(--surface));border:1px solid var(--sui-field-border, var(--control-border));border-radius:var(--sui-field-radius, var(--radius-md));box-shadow:none;outline:none;transition:border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out)}.sui-frame.sc-sui-tree:hover{border-color:var(--sui-field-border, color-mix(in srgb, var(--control-border) 55%, var(--ink)))}.sui-frame[readonly].sc-sui-tree,.sui-frame.readonly.sc-sui-tree{border-color:var(--sui-field-border, var(--control-border));background:var(--sui-field-bg, var(--surface-sunken))}.sui-frame.sc-sui-tree:focus-within,.sui-frame.focus.sc-sui-tree,.sui-frame.open.sc-sui-tree{border-color:var(--sui-field-border, var(--focus-ring));outline:var(--sui-field-edge, 1px solid var(--focus-ring));outline-offset:-2px;box-shadow:var(--sui-field-halo, 0 0 0 3px var(--focus-halo))}.sui-frame.invalid.sc-sui-tree{border-color:var(--sui-field-border, var(--danger));outline:var(--sui-field-edge, 1px solid var(--danger));outline-offset:-2px}.sui-frame.invalid.sc-sui-tree:focus-within,.sui-frame.invalid.focus.sc-sui-tree,.sui-frame.invalid.open.sc-sui-tree{outline-width:2px;outline-offset:-3px;box-shadow:var(--sui-field-halo, 0 0 0 3px color-mix(in srgb, var(--danger) 35%, transparent))}.sui-frame.sc-sui-tree:disabled,.sui-frame.disabled.sc-sui-tree{--ink-muted:var(--disabled-ink);--ink-faint:var(--disabled-ink);border-color:var(--sui-field-border, var(--border));outline:none;box-shadow:none;background:var(--sui-field-bg, var(--disabled-bg));color:var(--disabled-ink);cursor:not-allowed}.sui-input.sc-sui-tree{width:100%;color:var(--ink);font-family:var(--font-sans);font-weight:460}.sui-input.sc-sui-tree::placeholder{color:var(--ink-placeholder)}.sui-input.sm.sc-sui-tree{height:var(--sui-field-height, var(--control-sm));padding:0 10px;font-size:12.5px}.sui-input.md.sc-sui-tree{height:var(--sui-field-height, var(--control-md));padding:0 var(--control-pad-x);font-size:13px}.sui-input.lg.sc-sui-tree{height:var(--sui-field-height, var(--control-lg));padding:0 var(--control-pad-x);font-size:14px}@media (forced-colors: active){.sui-frame.sc-sui-tree:focus-within,.sui-frame.focus.sc-sui-tree,.sui-frame.open.sc-sui-tree{outline:2px solid Highlight;outline-offset:1px}.sui-frame.sc-sui-tree:disabled,.sui-frame.disabled.sc-sui-tree{color:GrayText;border-color:GrayText}}.sui-popup-trigger.sc-sui-tree{box-sizing:border-box;width:100%;height:var(--sui-field-height, var(--control-md));display:flex;align-items:center;gap:8px;padding-block:0;padding-inline:12px 10px;color:var(--ink);font-size:13px;font-family:var(--font-sans);font-weight:460;cursor:pointer;user-select:none;text-align:start}.sui-popup-trigger.sc-sui-tree:disabled,.sui-popup-trigger.disabled.sc-sui-tree{cursor:not-allowed}.sui-popup-trigger.sc-sui-tree .val.sc-sui-tree{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sui-popup-trigger.placeholder.sc-sui-tree .val.sc-sui-tree{color:var(--ink-placeholder)}.sui-popup-trigger.sc-sui-tree .clear.sc-sui-tree{display:inline-flex;padding:2px;color:var(--ink-faint);font-size:11px;cursor:pointer;border-radius:4px}.sui-popup-trigger.sc-sui-tree .clear.sc-sui-tree:hover{color:var(--ink)}.sui-popup-trigger.sc-sui-tree .chev.sc-sui-tree{display:var(--sui-field-chevron, inline-block);font-size:10px;color:var(--ink-faint);transition:transform var(--duration-fast) var(--ease-out)}.sui-popup-trigger.open.sc-sui-tree .chev.sc-sui-tree{transform:rotate(180deg)}.sui-popup-trigger.readonly.sc-sui-tree .chev.sc-sui-tree{opacity:0.4}.sui-popup-trigger.sc-sui-tree .spin.sc-sui-tree{font-size:11px;color:var(--ink-faint)}.sui-popup-trigger.sm.sc-sui-tree{height:var(--sui-field-height, var(--control-sm));font-size:12.5px}.sui-popup-trigger.md.sc-sui-tree{height:var(--sui-field-height, var(--control-md));font-size:13px}.sui-popup-trigger.lg.sc-sui-tree{height:var(--sui-field-height, var(--control-lg));font-size:14px}.sui-popup-panel.sc-sui-tree{position:fixed;z-index:var(--z-dropdown);box-sizing:border-box;min-width:100%;background:var(--surface-raised);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-pop);padding:5px;max-height:260px;overflow-y:auto;animation:sui-popup-in var(--duration-overlay) var(--ease-out)}.sui-popup-panel[data-side='top'].sc-sui-tree{animation-name:sui-popup-in-top}.sui-popup-panel.closing.sc-sui-tree{animation:sui-popup-out var(--duration-fast) var(--ease-out) forwards;pointer-events:none}@keyframes sui-popup-in{from{opacity:0;transform:translateY(-4px)}}@keyframes sui-popup-in-top{from{opacity:0;transform:translateY(4px)}}@keyframes sui-popup-out{to{opacity:0}}.sui-popup-search.sc-sui-tree{padding:3px 3px 7px;border-bottom:1px solid var(--hairline);margin-bottom:4px}.sui-popup-search-box.sc-sui-tree{display:flex;align-items:center;gap:7px;height:30px;padding:0 9px}.sui-popup-search-box.sc-sui-tree .sui-glyph.sc-sui-tree{font-size:11px;color:var(--ink-faint)}.sui-popup-search-box.sc-sui-tree input.sc-sui-tree{flex:1;min-width:0;border:none;outline:none;background:transparent;font:460 12.5px var(--font-sans);color:var(--ink)}.sui-popup-empty.sc-sui-tree{padding:10px;font-size:12.5px;color:var(--ink-faint)}.sui-popup-group.sc-sui-tree{padding:8px 10px 4px;font-size:10.5px;font-weight:650;letter-spacing:0.09em;text-transform:uppercase;color:var(--ink-faint);user-select:none}.sui-popup-status.sc-sui-tree{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}.sui-popup-loading.sc-sui-tree{display:flex;align-items:center;gap:8px;padding:10px;font-size:12.5px;color:var(--ink-faint)}.sui-popup-loading.sc-sui-tree .sui-glyph.sc-sui-tree{font-size:11px;color:var(--brand)}.sui-popup-spin.sc-sui-tree{animation:sb-spin 0.8s linear infinite}@media (prefers-reduced-motion: reduce){.sui-popup-spin.sc-sui-tree{animation-duration:2s}}.sui-popup-spacer.sc-sui-tree{flex:none;pointer-events:none}.sui-popup-option.sc-sui-tree{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:6px;font-size:13px;font-weight:460;color:var(--ink);cursor:pointer;background:transparent}.sui-popup-option-label.sc-sui-tree{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sui-popup-option.hover.sc-sui-tree{--ink-faint:var(--ink-muted);background:var(--surface-hover)}.sui-popup-option.selected.sc-sui-tree{--ink-muted:var(--ink-muted-on-wash);--ink-faint:var(--ink-muted);background:var(--surface-selected);font-weight:650}.sui-popup-option.selected.hover.sc-sui-tree{--ink-muted:var(--ink);--ink-faint:var(--ink);background:linear-gradient(var(--surface-hover) 0 0) var(--surface-selected)}.sui-popup-option.keynav.sc-sui-tree{outline:2px solid var(--focus-ring);outline-offset:-2px}.sui-popup-option.disabled.sc-sui-tree{--ink-muted:var(--ink-placeholder);--ink-faint:var(--ink-placeholder);color:var(--disabled-ink);cursor:not-allowed}.sui-popup-option.sc-sui-tree .sui-glyph.sc-sui-tree{font-size:11px;color:var(--brand-soft-ink)}@media (forced-colors: active){.sui-popup-trigger.placeholder.sc-sui-tree .val.sc-sui-tree{color:GrayText}.sui-popup-option.hover.sc-sui-tree{outline:2px solid CanvasText;outline-offset:-2px}.sui-popup-option.selected.sc-sui-tree{forced-color-adjust:none;background:Highlight;color:HighlightText}.sui-popup-option.selected.sc-sui-tree .sui-glyph.sc-sui-tree{color:HighlightText}.sui-popup-option.disabled.sc-sui-tree{color:GrayText}}"}},[774,"sui-tree",{nodes:[1040],expanded:[1040],selectionMode:[513,"selection-mode"],selection:[1040],filter:[516],dragDrop:[516,"drag-drop"],loading:[516],loadingMessage:[1,"loading-message"],emptyMessage:[1,"empty-message"],emptyFilterMessage:[1,"empty-filter-message"],query:[32],activeKey:[32],dragKey:[32],overKey:[32],overZone:[32],live:[32],hostLabel:[32],hostLabelledby:[32],setFocus:[64]}]),w=k,y=function(){"undefined"!=typeof customElements&&["sui-tree"].forEach((e=>{"sui-tree"===e&&(customElements.get(t(e))||customElements.define(t(e),k))}))};export{w as SuiTree,y as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "@shineuix/core";
2
+
3
+ interface SuiTrend extends Components.SuiTrend, HTMLElement {}
4
+ export const SuiTrend: {
5
+ prototype: SuiTrend;
6
+ new (): SuiTrend;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{p as e,H as t,h as i,a as r,t as n}from"./p-CeVlau-G.js";import{T as s}from"./p-n4-59tbj.js";import{a}from"./p-BuyjS5bS.js";const o=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost()}value="";direction;severity="positive";note;render(){return i(r,{key:"79e986e55d646f05c004c4128f38c5c6840c7689"},i(s,{key:"762c23ba28e341475d9753d3a63c0c5845676c21",value:this.value,direction:this.direction,severity:this.severity,note:this.note,unfavorable:a(void 0,"trend.unfavorable",void 0,"unfavorable")}))}static get style(){return".sc-sui-trend-h{display:inline-flex;align-items:center;gap:8px;vertical-align:middle;font-family:var(--font-sans);position:relative}[hidden].sc-sui-trend-h{display:none}.delta.sc-sui-trend{display:inline-flex;align-items:center;gap:4px;font-weight:700;color:var(--status-positive-ink);font-feature-settings:'tnum'}.delta.critical.sc-sui-trend{color:var(--danger)}.delta.neutral.sc-sui-trend{color:var(--ink-muted);font-weight:var(--w-regular)}.delta.sc-sui-trend .sui-glyph.sc-sui-trend{font-size:10px}.delta.critical.sc-sui-trend .sui-glyph.sc-sui-trend{box-sizing:border-box;width:16px;height:16px;padding:2.5px;border:1.5px solid currentColor;border-radius:var(--radius-pill)}.figure.sc-sui-trend{direction:ltr;unicode-bidi:plaintext;text-align:-webkit-match-parent;text-align:match-parent}.sr-only.sc-sui-trend{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.note.sc-sui-trend{color:var(--ink-faint)}"}},[514,"sui-trend",{value:[1],direction:[513],severity:[513],note:[1]}]),d=o,l=function(){"undefined"!=typeof customElements&&["sui-trend"].forEach((e=>{"sui-trend"===e&&(customElements.get(n(e))||customElements.define(n(e),o))}))};export{d as SuiTrend,l as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "@shineuix/core";
2
+
3
+ interface SuiVirtualScroller extends Components.SuiVirtualScroller, HTMLElement {}
4
+ export const SuiVirtualScroller: {
5
+ prototype: SuiVirtualScroller;
6
+ new (): SuiVirtualScroller;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{p as t,H as i,c as s,f as r,h as o,t as e}from"./p-CeVlau-G.js";import{i as n}from"./p-Cs2X0Kih.js";import{d as l}from"./p-BHB1Wprj.js";import{c as a}from"./p-COO9uV7W.js";import{l as h,i as c}from"./p-BuyjS5bS.js";import{n as u}from"./p-BpxmwysK.js";import{c as d,m as p}from"./p-q0JbXN8q.js";import{r as v,f as w}from"./p-Btp15dVO.js";import{a as f,s as m}from"./p-GAnFXayY.js";const x=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.suiRange=s(this,"suiRange",3)}get host(){return this}itemCount=0;itemHeight=36;itemWidth=160;height=280;width=640;orientation="vertical";columns=0;overscan=4;showIndex=!1;renderItem;suiRange;viewportScrollTop=0;viewportScrollLeft=0;hostLabel;stopAria;viewport;reported;rendered=new Map;connectedCallback(){this.stopAria?.(),this.stopAria=n(this.host,(t=>{this.hostLabel=t})),l(this.host,(()=>this.viewport))}disconnectedCallback(){this.stopAria?.()}async setFocus(){this.viewport?.focus()}async scrollToIndex(t,i){const s=Math.floor(t)||0;if("horizontal"===this.orientation){const t=a(s,0,Math.max(0,this.count()-1))*this.colW();return this.viewport&&f(this.viewport,t),void(this.viewportScrollLeft=t)}const r=a(s,0,Math.max(0,this.count()-1))*this.rowH();if(this.viewport&&(this.viewport.scrollTop=r),this.viewportScrollTop=r,"number"!=typeof i||"grid"!==this.orientation)return;const o=a(Math.floor(i)||0,0,Math.max(0,this.cols()-1))*this.colW();this.viewport&&f(this.viewport,o),this.viewportScrollLeft=o}async refresh(t,i){if("number"!=typeof t)this.rendered.clear();else if("number"==typeof i)this.rendered.delete(this.cellKey(t,i));else for(const i of Array.from(this.rendered.keys()))(i===""+t||i.startsWith(t+":"))&&this.rendered.delete(i);r(this)}onContentChange(){this.rendered.clear()}componentDidRender(){const t=this.window(),i=this.reported;i&&i.start===t.start&&i.end===t.end&&i.colStart===t.colStart&&i.colEnd===t.colEnd||(this.reported=t,this.suiRange.emit({...t}))}count(){return Math.max(0,this.itemCount||0)}cols(){return Math.max(0,Math.floor(this.columns)||0)}rowH(){return Math.max(1,this.itemHeight||36)}colW(){return Math.max(1,this.itemWidth||160)}cellKey(t,i){return"number"==typeof i?`${t}:${i}`:""+t}axis(t,i,s,r){const o=v(w(t),{rowH:i,groupH:0,viewport:s,scrollTop:r,overscan:Math.max(0,this.overscan||0)});return{start:o.start,end:o.end}}window(){if("horizontal"===this.orientation)return this.axis(this.count(),this.colW(),Math.max(0,this.width||0),this.viewportScrollLeft);const t=this.axis(this.count(),this.rowH(),Math.max(0,this.height||0),this.viewportScrollTop);if("grid"!==this.orientation)return t;const i=this.axis(this.cols(),this.colW(),Math.max(0,this.width||0),this.viewportScrollLeft);return{...t,colStart:i.start,colEnd:i.end}}onScroll=t=>{const i=t.target;this.viewportScrollTop=i.scrollTop||0,this.viewportScrollLeft=m(i)};content(t,i,s,r){const o=this.cellKey(s,r),e=t.has(o)?t.get(o):d(this.renderItem,[s,r],this.label(s,r));return i.set(o,e),e}label(t,i){return"number"==typeof i?h(void 0,"virtual-scroller.cell",void 0,"Cell {row}, {column}",{row:t+1,column:i+1}):h(void 0,"virtual-scroller.row",void 0,"Row {n}",{n:t+1})}indexLabel(t){const i=u(c()),s=i.format(this.count()),r=t.end-t.start;return"horizontal"===this.orientation?h(void 0,"virtual-scroller.columnsIndex",void 0,"{count} columns · rendering {shown} in the window",{count:s,shown:i.format(r)}):"grid"===this.orientation?h(void 0,"virtual-scroller.cellsIndex",void 0,"{count} rows · rendering {shown} cells in the window",{count:s,shown:i.format(r*Math.max(0,(t.colEnd||0)-(t.colStart||0)))}):h(void 0,"virtual-scroller.rowsIndex",void 0,"{count} rows · rendering {shown} in the window",{count:s,shown:i.format(r)})}render(){const t=this.count(),i=this.rowH(),s=this.colW(),r=this.window(),{start:e,end:n}=r,l=this.renderItem,a="grid"===this.orientation,h="horizontal"===this.orientation,c=this.rendered,u=new Map,d=[];if(a){const t=this.cols(),a=r.colStart||0,h=r.colEnd||0;for(let r=e;r<n;r++){const e=[];for(let t=a;t<h;t++){const i={top:"0px",insetInlineStart:t*s+"px",width:s+"px",height:"100%"},n=l?this.content(c,u,r,t):null;e.push(o("div",{class:{row:!0,cell:!0,odd:(r+t)%2==1},role:"gridcell","aria-rowindex":r+1,"aria-colindex":t+1,"data-index":r,"data-column":t,key:l?`c${r}.${t}`:`d${r}.${t}`,style:i,ref:l?t=>p(t,n):void 0},l?null:this.label(r,t)))}e.length&&d.push(o("div",{class:"grid-row",role:"row","aria-rowindex":r+1,key:"r"+r,style:{top:r*i+"px",insetInlineStart:"0px",width:t*s+"px",height:i+"px"}},e))}}else for(let r=e;r<n;r++){const e=h?{top:"0px",insetInlineStart:r*s+"px",width:s+"px",height:"100%"}:{top:r*i+"px",insetInlineStart:"0px",width:"100%",height:i+"px"},n=l?this.content(c,u,r):null;d.push(o("div",{class:{row:!0,odd:r%2==1},role:"listitem","aria-posinset":r+1,"aria-setsize":t,"data-index":r,key:l?"r"+r:"d"+r,style:e,ref:l?t=>p(t,n):void 0},l?null:this.label(r)))}this.rendered=u;const v=h?{height:i+"px",width:Math.max(0,this.width||0)+"px"}:a?{height:Math.max(0,this.height||0)+"px",width:Math.max(0,this.width||0)+"px"}:{height:Math.max(0,this.height||0)+"px"},w=h?{width:t*s+"px",height:"100%"}:a?{width:this.cols()*s+"px",height:t*i+"px"}:{height:t*i+"px"};return o("div",{key:"d40c74cfe34cd8db771bf64beb407ce89c166aff",class:{"sui-vs":!0,[this.orientation]:!0}},this.showIndex?o("div",{class:"index"},this.indexLabel(r)):null,o("div",{key:"e365e23abaedb78db35c3ff533b2a55dd54c6a6f",class:"viewport",ref:t=>this.viewport=t,style:v,tabindex:"0",role:this.hostLabel?"region":void 0,"aria-label":this.hostLabel||null,onScroll:this.onScroll},o("div",{key:"076c612bb390210f35a22d591c4c9776b319c62b",class:"spacer",role:a?"grid":"list","aria-rowcount":a?t:null,"aria-colcount":a?this.cols():null,style:w},d)))}static get watchers(){return{renderItem:[{onContentChange:0}],itemCount:[{onContentChange:0}],columns:[{onContentChange:0}],orientation:[{onContentChange:0}]}}static get style(){return".sc-sui-virtual-scroller-h{display:block;min-width:0;font-family:var(--font-sans);color:var(--ink)}.sui-vs.sc-sui-virtual-scroller{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden}.index.sc-sui-virtual-scroller{padding:8px 14px;font-size:11.5px;color:var(--ink-faint);font-feature-settings:'tnum';border-bottom:1px solid var(--border);background:var(--surface-sunken)}.sui-vs.horizontal.sc-sui-virtual-scroller,.sui-vs.grid.sc-sui-virtual-scroller{width:max-content;max-width:100%}.vertical.sc-sui-virtual-scroller .viewport.sc-sui-virtual-scroller{overflow-y:auto}.horizontal.sc-sui-virtual-scroller .viewport.sc-sui-virtual-scroller{overflow-x:auto;overflow-y:hidden;max-width:100%}.grid.sc-sui-virtual-scroller .viewport.sc-sui-virtual-scroller{overflow:auto;max-width:100%}.viewport.sc-sui-virtual-scroller{position:relative}.viewport.sc-sui-virtual-scroller:focus-visible{outline:none}.sui-vs.sc-sui-virtual-scroller:has(.viewport:focus-visible){outline:2px solid var(--focus-ring);outline-offset:1px;box-shadow:var(--focus-shadow)}.spacer.sc-sui-virtual-scroller{position:relative}.row.sc-sui-virtual-scroller{position:absolute;box-sizing:border-box;display:flex;align-items:center;padding:0 14px;border-bottom:1px solid var(--hairline);font-size:13px;background:var(--surface)}.row.odd.sc-sui-virtual-scroller{background:var(--surface-sunken)}.horizontal.sc-sui-virtual-scroller .row.sc-sui-virtual-scroller{border-bottom:none;border-inline-end:1px solid var(--hairline)}.grid-row.sc-sui-virtual-scroller{position:absolute;box-sizing:border-box}.grid.sc-sui-virtual-scroller .row.cell.sc-sui-virtual-scroller{border-inline-end:1px solid var(--hairline)}"}},[514,"sui-virtual-scroller",{itemCount:[2,"item-count"],itemHeight:[2,"item-height"],itemWidth:[2,"item-width"],height:[2],width:[2],orientation:[513],columns:[2],overscan:[2],showIndex:[516,"show-index"],renderItem:[16],viewportScrollTop:[32],viewportScrollLeft:[32],hostLabel:[32],setFocus:[64],scrollToIndex:[64],refresh:[64]},void 0,{renderItem:[{onContentChange:0}],itemCount:[{onContentChange:0}],columns:[{onContentChange:0}],orientation:[{onContentChange:0}]}]),g=x,b=function(){"undefined"!=typeof customElements&&["sui-virtual-scroller"].forEach((t=>{"sui-virtual-scroller"===t&&(customElements.get(e(t))||customElements.define(e(t),x))}))};export{g as SuiVirtualScroller,b as defineCustomElement}
@@ -0,0 +1,287 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ import { Readable } from 'node:stream';
4
+
5
+ export declare function createWindowFromHtml(templateHtml: string, uniqueId: string): any;
6
+ export type TagTransformer = (tag: string) => string;
7
+ /**
8
+ * Serialize a value to a string that can be deserialized later.
9
+ * @param {unknown} value - The value to serialize.
10
+ * @returns {string} A string that can be deserialized later.
11
+ * @deprecated will be removed in v5. Use `@PropSerialize()` decorator instead.
12
+ */
13
+ export declare function serializeProperty(value: unknown): string | number | boolean;
14
+ /**
15
+ * Deserialize a value from a string that was serialized earlier.
16
+ * @param {string} value - The string to deserialize.
17
+ * @returns {unknown} The deserialized value.
18
+ * @deprecated will be removed in v5. Use `@AttrDeserialize()` decorator instead.
19
+ */
20
+ export declare function deserializeProperty(value: string): any;
21
+ export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
22
+ export interface HydrateDocumentOptions {
23
+ /**
24
+ * Build ID that will be added to `<html data-stencil-build="BUILD_ID">`. By default
25
+ * a random ID will be generated
26
+ */
27
+ buildId?: string;
28
+ /**
29
+ * Sets the `href` attribute on the `<link rel="canonical">`
30
+ * tag within the `<head>`. If the value is not defined it will
31
+ * ensure a canonical link tag is no included in the `<head>`.
32
+ */
33
+ canonicalUrl?: string;
34
+ /**
35
+ * Include the HTML comments and attributes used by the client-side
36
+ * JavaScript to read the structure of the HTML and rebuild each
37
+ * component. Defaults to `true`.
38
+ */
39
+ clientHydrateAnnotations?: boolean;
40
+ /**
41
+ * Constrain `setTimeout()` to 1ms, but still async. Also
42
+ * only allows `setInterval()` to fire once, also constrained to 1ms.
43
+ * Defaults to `true`.
44
+ */
45
+ constrainTimeouts?: boolean;
46
+ /**
47
+ * Sets `document.cookie`
48
+ */
49
+ cookie?: string;
50
+ /**
51
+ * Sets the `dir` attribute on the top level `<html>`.
52
+ */
53
+ direction?: string;
54
+ /**
55
+ * Component tag names listed here will not be prerendered, nor will
56
+ * hydrated on the client-side. Components listed here will be ignored
57
+ * as custom elements and treated no differently than a `<div>`.
58
+ */
59
+ excludeComponents?: string[];
60
+ /**
61
+ * Sets the `lang` attribute on the top level `<html>`.
62
+ */
63
+ language?: string;
64
+ /**
65
+ * Maximum number of components to hydrate on one page. Defaults to `300`.
66
+ */
67
+ maxHydrateCount?: number;
68
+ /**
69
+ * Sets `document.referrer`
70
+ */
71
+ referrer?: string;
72
+ /**
73
+ * Removes every `<script>` element found in the `document`. Defaults to `false`.
74
+ */
75
+ removeScripts?: boolean;
76
+ /**
77
+ * Removes CSS not used by elements within the `document`. Defaults to `true`.
78
+ */
79
+ removeUnusedStyles?: boolean;
80
+ /**
81
+ * The url the runtime uses for the resources, such as the assets directory.
82
+ */
83
+ resourcesUrl?: string;
84
+ /**
85
+ * Prints out runtime console logs to the NodeJS process. Defaults to `false`.
86
+ */
87
+ runtimeLogging?: boolean;
88
+ /**
89
+ * Component tags listed here will only be prerendered or server-side-rendered
90
+ * and will not be client-side hydrated. This is useful for components that
91
+ * are not dynamic and do not need to be defined as a custom element within the
92
+ * browser. For example, a header or footer component would be a good example that
93
+ * may not require any client-side JavaScript.
94
+ */
95
+ staticComponents?: string[];
96
+ /**
97
+ * The amount of milliseconds to wait for a page to finish rendering until
98
+ * a timeout error is thrown. Defaults to `15000`.
99
+ */
100
+ timeout?: number;
101
+ /**
102
+ * Sets `document.title`.
103
+ */
104
+ title?: string;
105
+ /**
106
+ * Sets `location.href`
107
+ */
108
+ url?: string;
109
+ /**
110
+ * Sets `navigator.userAgent`
111
+ */
112
+ userAgent?: string;
113
+ /**
114
+ * Configure how Stencil serializes the components shadow root.
115
+ * - If set to `declarative-shadow-dom` the component will be rendered within a Declarative Shadow DOM.
116
+ * - If set to `scoped` Stencil will render the contents of the shadow root as a `scoped: true` component
117
+ * and the shadow DOM will be created during client-side hydration.
118
+ * - Alternatively you can mix and match the two by providing an object with `declarative-shadow-dom` and `scoped` keys,
119
+ * the value arrays containing the tag names of the components that should be rendered in that mode.
120
+ *
121
+ * Examples:
122
+ * - `{ 'declarative-shadow-dom': ['my-component-1', 'another-component'], default: 'scoped' }`
123
+ * Render all components as `scoped` apart from `my-component-1` and `another-component`
124
+ * - `{ 'scoped': ['an-option-component'], default: 'declarative-shadow-dom' }`
125
+ * Render all components within `declarative-shadow-dom` apart from `an-option-component`
126
+ * - `'scoped'` Render all components as `scoped`
127
+ * - `false` disables shadow root serialization
128
+ *
129
+ * *NOTE* `true` has been deprecated in favor of `declarative-shadow-dom` and `scoped`
130
+ * @default 'declarative-shadow-dom'
131
+ */
132
+ serializeShadowRoot?: "declarative-shadow-dom" | "scoped" | {
133
+ "declarative-shadow-dom"?: string[];
134
+ scoped?: string[];
135
+ default: "declarative-shadow-dom" | "scoped";
136
+ } | boolean;
137
+ }
138
+ export interface SerializeDocumentOptions extends HydrateDocumentOptions {
139
+ /**
140
+ * Runs after the `document` has been hydrated.
141
+ */
142
+ afterHydrate?(document: any): any | Promise<any>;
143
+ /**
144
+ * Sets an approximate line width the HTML should attempt to stay within.
145
+ * Note that this is "approximate", in that HTML may often not be able
146
+ * to be split at an exact line width. Additionally, new lines created
147
+ * is where HTML naturally already has whitespace, such as before an
148
+ * attribute or spaces between words. Defaults to `100`.
149
+ */
150
+ approximateLineWidth?: number;
151
+ /**
152
+ * Runs before the `document` has been hydrated.
153
+ */
154
+ beforeHydrate?(document: any): any | Promise<any>;
155
+ /**
156
+ * Format the HTML in a nicely indented format.
157
+ * Defaults to `false`.
158
+ */
159
+ prettyHtml?: boolean;
160
+ /**
161
+ * Remove quotes from attribute values when possible.
162
+ * Defaults to `true`.
163
+ */
164
+ removeAttributeQuotes?: boolean;
165
+ /**
166
+ * Remove the `=""` from standardized `boolean` attributes,
167
+ * such as `hidden` or `checked`. Defaults to `true`.
168
+ */
169
+ removeBooleanAttributeQuotes?: boolean;
170
+ /**
171
+ * Remove these standardized attributes when their value is empty:
172
+ * `class`, `dir`, `id`, `lang`, and `name`, `title`. Defaults to `true`.
173
+ */
174
+ removeEmptyAttributes?: boolean;
175
+ /**
176
+ * Remove HTML comments. Defaults to `true`.
177
+ */
178
+ removeHtmlComments?: boolean;
179
+ /**
180
+ * The `fullDocument` flag determines the format of the rendered output. Set it to true to
181
+ * generate a complete HTML document, or false to render only the component.
182
+ * @default true
183
+ */
184
+ fullDocument?: boolean;
185
+ /**
186
+ * Style modes to render the component in.
187
+ * @see https://stenciljs.com/docs/styling#style-modes
188
+ */
189
+ modes?: ResolutionHandler[];
190
+ }
191
+ export interface HydrateFactoryOptions extends SerializeDocumentOptions {
192
+ serializeToHtml: boolean;
193
+ destroyWindow: boolean;
194
+ destroyDocument: boolean;
195
+ }
196
+ export interface Diagnostic {
197
+ absFilePath?: string | undefined;
198
+ code?: string;
199
+ columnNumber?: number | undefined;
200
+ debugText?: string;
201
+ header?: string;
202
+ language?: string;
203
+ level: "error" | "warn" | "info" | "log" | "debug";
204
+ lineNumber?: number | undefined;
205
+ lines: PrintLine[];
206
+ messageText: string;
207
+ relFilePath?: string | undefined;
208
+ type: string;
209
+ }
210
+ export interface PrintLine {
211
+ lineIndex: number;
212
+ lineNumber: number;
213
+ text: string;
214
+ errorCharStart: number;
215
+ errorLength?: number;
216
+ }
217
+ export interface HydrateResults {
218
+ buildId: string;
219
+ diagnostics: Diagnostic[];
220
+ url: string;
221
+ host: string | null;
222
+ hostname: string | null;
223
+ href: string | null;
224
+ port: string | null;
225
+ pathname: string | null;
226
+ search: string | null;
227
+ hash: string | null;
228
+ html: string | null;
229
+ components: HydrateComponent[];
230
+ anchors: HydrateAnchorElement[];
231
+ imgs: HydrateImgElement[];
232
+ scripts: HydrateScriptElement[];
233
+ styles: HydrateStyleElement[];
234
+ staticData: HydrateStaticData[];
235
+ title: string | null;
236
+ hydratedCount: number;
237
+ httpStatus: number | null;
238
+ }
239
+ export interface HydrateComponent {
240
+ tag: string;
241
+ mode: string;
242
+ count: number;
243
+ depth: number;
244
+ }
245
+ export interface HydrateElement {
246
+ [attrName: string]: string | undefined;
247
+ }
248
+ export interface HydrateAnchorElement extends HydrateElement {
249
+ href?: string;
250
+ target?: string;
251
+ }
252
+ export interface HydrateImgElement extends HydrateElement {
253
+ src?: string;
254
+ }
255
+ export interface HydrateScriptElement extends HydrateElement {
256
+ src?: string;
257
+ type?: string;
258
+ }
259
+ export interface HydrateStyleElement extends HydrateElement {
260
+ id?: string;
261
+ href?: string;
262
+ content?: string;
263
+ }
264
+ export interface HydrateStaticData {
265
+ id: string;
266
+ type: string;
267
+ content: string;
268
+ }
269
+ export declare function streamToString(html: string | any, option?: SerializeDocumentOptions): Readable;
270
+ export declare function renderToString(html: string | any, options?: SerializeDocumentOptions): Promise<HydrateResults>;
271
+ export declare function renderToString(html: string | any, options: SerializeDocumentOptions | undefined, asStream: true): Readable;
272
+ export declare function hydrateDocument(doc: any | string, options?: HydrateDocumentOptions): Promise<HydrateResults>;
273
+ export declare function hydrateDocument(doc: any | string, options: HydrateDocumentOptions | undefined, asStream?: boolean): Readable;
274
+ export declare function serializeDocumentToString(doc: Document, opts: HydrateFactoryOptions): string;
275
+ /**
276
+ * Transforms a tag name using the current tag transformer
277
+ * @param tag - the tag to transform e.g. `my-tag`
278
+ * @returns the transformed tag e.g. `new-my-tag`
279
+ */
280
+ export declare function transformTag<T extends string>(tag: T): T;
281
+ /**
282
+ * Sets the tag transformer to be used when rendering custom elements
283
+ * @param transformer the transformer function to use. Must return a string
284
+ */
285
+ export declare function setTagTransformer(transformer: TagTransformer): void;
286
+
287
+ export {};