@pgcorp/ui-kit 0.13.0 → 0.14.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 (317) hide show
  1. package/README.md +725 -19
  2. package/dist/assets/src/components/layout/SDockRegion.vue_vue_type_style_index_0_scoped_a1f403e2_lang.css +1 -0
  3. package/dist/assets/src/components/layout/{SResizeHandle.vue_vue_type_style_index_0_scoped_90cc655e_lang.css → SResizeHandle.vue_vue_type_style_index_0_scoped_13b9b27a_lang.css} +1 -1
  4. package/dist/assets/src/components/layout/{SWorkbenchPanelShell.css_vue_type_style_index_0_src_1030a231_scoped_1030a231_lang.css → SWorkbenchPanelShell.css_vue_type_style_index_0_src_f9faa52a_scoped_f9faa52a_lang.css} +1 -1
  5. package/dist/assets/src/components/shared/_internal/SDialogSurface.css_vue_type_style_index_0_src_0e58afdc_scoped_0e58afdc_lang.css +2 -0
  6. package/dist/assets/src/components/shared/_internal/{SListboxGroup.css_vue_type_style_index_0_src_518787d3_scoped_518787d3_lang.css → SListboxGroup.css_vue_type_style_index_0_src_00060944_scoped_00060944_lang.css} +1 -1
  7. package/dist/assets/src/components/shared/_internal/SMenuLayer.css_vue_type_style_index_0_src_e478164c_scoped_e478164c_lang.css +1 -0
  8. package/dist/assets/src/components/shared/containers/SDrawer.css_vue_type_style_index_0_src_61cf20dd_scoped_61cf20dd_lang.css +2 -0
  9. package/dist/assets/src/components/shared/containers/{SModal.css_vue_type_style_index_0_src_0dc51b74_scoped_0dc51b74_lang.css → SModal.css_vue_type_style_index_0_src_42e1bd5f_scoped_42e1bd5f_lang.css} +1 -1
  10. package/dist/assets/src/components/shared/containers/SOverlayHost.css_vue_type_style_index_0_src_8f9be94e_scoped_8f9be94e_lang.css +2 -0
  11. package/dist/assets/src/components/shared/containers/SPopover.css_vue_type_style_index_0_src_4091d007_scoped_4091d007_lang.css +2 -0
  12. package/dist/assets/src/components/shared/containers/{SSidebarGroup.css_vue_type_style_index_0_src_3e8bc2d7_scoped_3e8bc2d7_lang.css → SSidebarGroup.css_vue_type_style_index_0_src_5b1eeb6c_scoped_5b1eeb6c_lang.css} +1 -1
  13. package/dist/assets/src/components/shared/containers/SSidebarSection.css_vue_type_style_index_0_src_21f71ae8_scoped_21f71ae8_lang.css +2 -0
  14. package/dist/assets/src/components/shared/controls/SButton.css_vue_type_style_index_0_src_7a5acda9_scoped_7a5acda9_lang.css +2 -0
  15. package/dist/assets/src/components/shared/controls/{SCheckbox.css_vue_type_style_index_0_src_b20b27dd_scoped_b20b27dd_lang.css → SCheckbox.css_vue_type_style_index_0_src_55d4826e_scoped_55d4826e_lang.css} +1 -1
  16. package/dist/assets/src/components/shared/controls/SCombobox.css_vue_type_style_index_0_src_537f5744_scoped_537f5744_lang.css +2 -0
  17. package/dist/assets/src/components/shared/controls/SContextMenu.css_vue_type_style_index_0_src_03921269_scoped_03921269_lang.css +1 -0
  18. package/dist/assets/src/components/shared/controls/{SDropdownMenu.css_vue_type_style_index_0_src_1ccb9efc_scoped_1ccb9efc_lang.css → SDropdownMenu.css_vue_type_style_index_0_src_857e2649_scoped_857e2649_lang.css} +1 -1
  19. package/dist/assets/src/components/shared/controls/SField.css_vue_type_style_index_0_src_2d353c26_scoped_2d353c26_lang.css +2 -0
  20. package/dist/assets/src/components/shared/controls/{SInteractiveSurface.css_vue_type_style_index_0_src_998940dd_scoped_998940dd_lang.css → SInteractiveSurface.css_vue_type_style_index_0_src_5e422fac_scoped_5e422fac_lang.css} +1 -1
  21. package/dist/assets/src/components/shared/controls/{SLink.css_vue_type_style_index_0_src_c7ae14e1_scoped_c7ae14e1_lang.css → SLink.css_vue_type_style_index_0_src_ac46e5a4_scoped_ac46e5a4_lang.css} +1 -1
  22. package/dist/assets/src/components/shared/controls/SListbox.css_vue_type_style_index_0_src_50063f9f_scoped_50063f9f_lang.css +2 -0
  23. package/dist/assets/src/components/shared/controls/{SListboxOption.css_vue_type_style_index_0_src_77c399b4_scoped_77c399b4_lang.css → SListboxOption.css_vue_type_style_index_0_src_59c9c538_scoped_59c9c538_lang.css} +1 -1
  24. package/dist/assets/src/components/shared/controls/SMenuSurface.css_vue_type_style_index_0_src_84109ad9_scoped_84109ad9_lang.css +2 -0
  25. package/dist/assets/src/components/shared/controls/SSelect.css_vue_type_style_index_0_src_df3d6688_scoped_df3d6688_lang.css +2 -0
  26. package/dist/assets/src/components/shared/controls/STextarea.css_vue_type_style_index_0_src_true_lang.css +1 -1
  27. package/dist/assets/src/components/shared/data-display/SProgressBar.css_vue_type_style_index_0_src_cad721dd_scoped_cad721dd_lang.css +2 -0
  28. package/dist/assets/src/components/shared/data-display/SRichDocument.css_vue_type_style_index_0_src_8db085d5_scoped_8db085d5_lang.css +2 -0
  29. package/dist/assets/src/components/shared/data-display/SStatus.css_vue_type_style_index_0_src_3ce41a12_scoped_3ce41a12_lang.css +1 -1
  30. package/dist/assets/src/components/shared/data-display/STable.css_vue_type_style_index_0_src_b23b3d71_scoped_b23b3d71_lang.css +2 -0
  31. package/dist/assets/src/components/shared/data-display/STooltip.css_vue_type_style_index_0_src_true_lang.css +1 -1
  32. package/dist/assets/src/components/shared/data-display/SVirtualList.css_vue_type_style_index_0_src_9fe3ade0_scoped_9fe3ade0_lang.css +2 -0
  33. package/dist/assets/src/components/shared/data-display/_internal/SRichBlockNode.css_vue_type_style_index_0_src_eaae882d_scoped_eaae882d_lang.css +2 -0
  34. package/dist/assets/src/components/shared/data-display/_internal/SRichDisclosure.css_vue_type_style_index_0_src_1f0ffc97_scoped_1f0ffc97_lang.css +2 -0
  35. package/dist/assets/src/components/shared/data-display/_internal/SRichImage.css_vue_type_style_index_0_src_2f1c39a9_scoped_2f1c39a9_lang.css +2 -0
  36. package/dist/assets/src/components/shared/data-display/_internal/{SRichInlineNode.css_vue_type_style_index_0_src_20c8cc87_scoped_20c8cc87_lang.css → SRichInlineNode.css_vue_type_style_index_0_src_3ca8df12_scoped_3ca8df12_lang.css} +1 -1
  37. package/dist/assets/src/components/shared/data-display/_internal/STableCell.css_vue_type_style_index_0_src_b829cbc6_scoped_b829cbc6_lang.css +2 -0
  38. package/dist/assets/src/components/shared/data-display/_internal/STableFrame.css_vue_type_style_index_0_src_52b5825e_scoped_52b5825e_lang.css +2 -0
  39. package/dist/assets/src/components/shared/data-display/_internal/STableRow.css_vue_type_style_index_0_src_1661f8b8_scoped_1661f8b8_lang.css +2 -0
  40. package/dist/assets/src/components/shared/feedback/SAsyncState.css_vue_type_style_index_0_src_8a291af7_scoped_8a291af7_lang.css +2 -0
  41. package/dist/assets/src/components/shared/navigation/{SBottomNav.vue_vue_type_style_index_0_scoped_b3963080_lang.css → SBottomNav.vue_vue_type_style_index_0_scoped_24be0f2b_lang.css} +1 -1
  42. package/dist/index.d.ts +1 -0
  43. package/dist/index.js +3 -3
  44. package/dist/reference.css +4 -0
  45. package/dist/src/components/icons/_internal/generatedSputnigUiIconComponents.d.ts +15 -0
  46. package/dist/src/components/icons/_internal/generatedSputnigUiIconComponents.js +4 -4
  47. package/dist/src/components/icons/_internal/generatedSputnigUiIconMarkup.d.ts +46 -1
  48. package/dist/src/components/icons/_internal/generatedSputnigUiIconMarkup.js +260 -230
  49. package/dist/src/components/icons/sputnigUiIcons.d.ts +1 -1
  50. package/dist/src/components/icons/sputnigUiIcons.js +233 -218
  51. package/dist/src/components/layout/SAppShell.vue_vue_type_script_setup_true_lang.js +8 -8
  52. package/dist/src/components/layout/SDockRegion.vue.d.ts +18 -5
  53. package/dist/src/components/layout/SDockRegion.vue.js +2 -2
  54. package/dist/src/components/layout/SDockRegion.vue_vue_type_script_setup_true_lang.js +112 -64
  55. package/dist/src/components/layout/SResizeHandle.vue.d.ts +6 -3
  56. package/dist/src/components/layout/SResizeHandle.vue.js +2 -2
  57. package/dist/src/components/layout/SResizeHandle.vue_vue_type_script_setup_true_lang.js +125 -87
  58. package/dist/src/components/layout/SStack.vue.d.ts +1 -1
  59. package/dist/src/components/layout/SWorkbenchPanelShell.vue.d.ts +4 -4
  60. package/dist/src/components/layout/SWorkbenchPanelShell.vue.js +2 -2
  61. package/dist/src/components/layout/SWorkbenchPanelShell.vue_vue_type_script_setup_true_lang.js +62 -58
  62. package/dist/src/components/layout/types.d.ts +20 -0
  63. package/dist/src/components/shared/_internal/SDialogSurface.vue.js +2 -2
  64. package/dist/src/components/shared/_internal/SDialogSurface.vue_vue_type_script_setup_true_lang.js +64 -41
  65. package/dist/src/components/shared/_internal/SHeaderSurface.vue.d.ts +1 -1
  66. package/dist/src/components/shared/_internal/SListboxGroup.vue.d.ts +5 -0
  67. package/dist/src/components/shared/_internal/SListboxGroup.vue.js +2 -2
  68. package/dist/src/components/shared/_internal/SListboxGroup.vue_vue_type_script_setup_true_lang.js +33 -15
  69. package/dist/src/components/shared/_internal/SMenuLayer.vue.d.ts +5 -1
  70. package/dist/src/components/shared/_internal/SMenuLayer.vue.js +2 -2
  71. package/dist/src/components/shared/_internal/SMenuLayer.vue_vue_type_script_setup_true_lang.js +64 -20
  72. package/dist/src/components/shared/_internal/dialogSurface.d.ts +15 -2
  73. package/dist/src/components/shared/_internal/dialogSurface.js +39 -23
  74. package/dist/src/components/shared/_internal/listboxContext.d.ts +1 -0
  75. package/dist/src/components/shared/_internal/listboxInventory.d.ts +51 -0
  76. package/dist/src/components/shared/_internal/listboxInventory.js +85 -0
  77. package/dist/src/components/shared/_internal/menuContext.d.ts +8 -0
  78. package/dist/src/components/shared/_internal/menuContext.js +2 -2
  79. package/dist/src/components/shared/_internal/sidebarGroupContext.d.ts +1 -0
  80. package/dist/src/components/shared/_internal/useVirtualCollection.d.ts +45 -0
  81. package/dist/src/components/shared/_internal/useVirtualCollection.js +123 -0
  82. package/dist/src/components/shared/complex/SKanbanLane.vue_vue_type_script_setup_true_lang.js +5 -5
  83. package/dist/src/components/shared/containers/SCloudChrome.vue.d.ts +1 -1
  84. package/dist/src/components/shared/containers/SCloudChromeRow.vue.d.ts +1 -1
  85. package/dist/src/components/shared/containers/SDrawer.vue.d.ts +12 -1
  86. package/dist/src/components/shared/containers/SDrawer.vue.js +2 -2
  87. package/dist/src/components/shared/containers/SDrawer.vue_vue_type_script_setup_true_lang.js +151 -53
  88. package/dist/src/components/shared/containers/SModal.vue.js +2 -2
  89. package/dist/src/components/shared/containers/SModal.vue_vue_type_script_setup_true_lang.js +78 -54
  90. package/dist/src/components/shared/containers/SOverlayHost.vue.d.ts +16 -0
  91. package/dist/src/components/shared/containers/SOverlayHost.vue.js +8 -0
  92. package/dist/src/components/shared/containers/SOverlayHost.vue_vue_type_script_setup_true_lang.js +65 -0
  93. package/dist/src/components/shared/containers/SPageHeader.vue.d.ts +1 -1
  94. package/dist/src/components/shared/containers/SPanel.vue.d.ts +1 -1
  95. package/dist/src/components/shared/containers/SPanel.vue_vue_type_script_setup_true_lang.js +7 -7
  96. package/dist/src/components/shared/containers/SPopover.vue.js +2 -2
  97. package/dist/src/components/shared/containers/SPopover.vue_vue_type_script_setup_true_lang.js +214 -145
  98. package/dist/src/components/shared/containers/SSidebarGroup.vue.js +2 -2
  99. package/dist/src/components/shared/containers/SSidebarGroup.vue_vue_type_script_setup_true_lang.js +30 -8
  100. package/dist/src/components/shared/containers/SSidebarSection.vue.js +2 -2
  101. package/dist/src/components/shared/containers/SSidebarSection.vue_vue_type_script_setup_true_lang.js +58 -45
  102. package/dist/src/components/shared/controls/SButton.vue.d.ts +7 -0
  103. package/dist/src/components/shared/controls/SButton.vue.js +2 -2
  104. package/dist/src/components/shared/controls/SButton.vue_vue_type_script_setup_true_lang.js +11 -5
  105. package/dist/src/components/shared/controls/SCheckbox.vue.d.ts +3 -0
  106. package/dist/src/components/shared/controls/SCheckbox.vue.js +2 -2
  107. package/dist/src/components/shared/controls/SCheckbox.vue_vue_type_script_setup_true_lang.js +45 -41
  108. package/dist/src/components/shared/controls/SCheckboxGroup.vue_vue_type_script_setup_true_lang.js +7 -7
  109. package/dist/src/components/shared/controls/SChoiceCards.vue_vue_type_script_setup_true_lang.js +4 -4
  110. package/dist/src/components/shared/controls/SColorSelect.vue_vue_type_script_setup_true_lang.js +6 -6
  111. package/dist/src/components/shared/controls/SCombobox.vue.js +2 -2
  112. package/dist/src/components/shared/controls/SCombobox.vue_vue_type_script_setup_true_lang.js +147 -132
  113. package/dist/src/components/shared/controls/SComboboxTrigger.vue.d.ts +2 -2
  114. package/dist/src/components/shared/controls/SContextMenu.vue.d.ts +11 -0
  115. package/dist/src/components/shared/controls/SContextMenu.vue.js +2 -2
  116. package/dist/src/components/shared/controls/SContextMenu.vue_vue_type_script_setup_true_lang.js +144 -59
  117. package/dist/src/components/shared/controls/SContextToggleButton.vue_vue_type_script_setup_true_lang.js +6 -6
  118. package/dist/src/components/shared/controls/SDragHandle.vue_vue_type_script_setup_true_lang.js +5 -5
  119. package/dist/src/components/shared/controls/SDropdownMenu.vue.js +2 -2
  120. package/dist/src/components/shared/controls/SDropdownMenu.vue_vue_type_script_setup_true_lang.js +82 -75
  121. package/dist/src/components/shared/controls/SField.vue.d.ts +9 -6
  122. package/dist/src/components/shared/controls/SField.vue.js +2 -2
  123. package/dist/src/components/shared/controls/SField.vue_vue_type_script_setup_true_lang.js +69 -52
  124. package/dist/src/components/shared/controls/SFieldGroup.vue_vue_type_script_setup_true_lang.js +13 -13
  125. package/dist/src/components/shared/controls/SInlineTokenEditor.vue_vue_type_script_setup_true_lang.js +26 -26
  126. package/dist/src/components/shared/controls/SInputText.vue_vue_type_script_setup_true_lang.js +21 -21
  127. package/dist/src/components/shared/controls/SInteractiveSurface.vue.js +2 -2
  128. package/dist/src/components/shared/controls/SInteractiveSurface.vue_vue_type_script_setup_true_lang.js +99 -74
  129. package/dist/src/components/shared/controls/SLink.d.ts +11 -1
  130. package/dist/src/components/shared/controls/SLink.vue.d.ts +17 -1
  131. package/dist/src/components/shared/controls/SLink.vue.js +2 -2
  132. package/dist/src/components/shared/controls/SLink.vue_vue_type_script_setup_true_lang.js +157 -62
  133. package/dist/src/components/shared/controls/SListbox.vue.d.ts +10 -1
  134. package/dist/src/components/shared/controls/SListbox.vue.js +2 -2
  135. package/dist/src/components/shared/controls/SListbox.vue_vue_type_script_setup_true_lang.js +371 -189
  136. package/dist/src/components/shared/controls/SListboxOption.vue.d.ts +6 -0
  137. package/dist/src/components/shared/controls/SListboxOption.vue.js +2 -2
  138. package/dist/src/components/shared/controls/SListboxOption.vue_vue_type_script_setup_true_lang.js +47 -34
  139. package/dist/src/components/shared/controls/SMenuSurface.vue.d.ts +2 -2
  140. package/dist/src/components/shared/controls/SMenuSurface.vue.js +2 -2
  141. package/dist/src/components/shared/controls/SMenuSurface.vue_vue_type_script_setup_true_lang.js +147 -121
  142. package/dist/src/components/shared/controls/SRange.vue_vue_type_script_setup_true_lang.js +12 -12
  143. package/dist/src/components/shared/controls/SSelect.vue.js +2 -2
  144. package/dist/src/components/shared/controls/SSelect.vue_vue_type_script_setup_true_lang.js +126 -116
  145. package/dist/src/components/shared/controls/STextarea.d.ts +1 -1
  146. package/dist/src/components/shared/controls/STextarea.vue.d.ts +28 -2
  147. package/dist/src/components/shared/controls/STextarea.vue_vue_type_script_setup_true_lang.js +348 -209
  148. package/dist/src/components/shared/controls/_internal/SInlineTokenSurface.vue_vue_type_script_lang.js +36 -36
  149. package/dist/src/components/shared/data-display/SActionList.vue.d.ts +1 -1
  150. package/dist/src/components/shared/data-display/SActionListItem.vue.d.ts +4 -4
  151. package/dist/src/components/shared/data-display/SActionListItem.vue_vue_type_script_setup_true_lang.js +6 -6
  152. package/dist/src/components/shared/data-display/SBadge.vue.d.ts +1 -1
  153. package/dist/src/components/shared/data-display/SChart.vue_vue_type_script_setup_true_lang.js +89 -89
  154. package/dist/src/components/shared/data-display/SChip.vue.d.ts +1 -1
  155. package/dist/src/components/shared/data-display/SChip.vue_vue_type_script_setup_true_lang.js +7 -7
  156. package/dist/src/components/shared/data-display/SCodeBlock.vue_vue_type_script_setup_true_lang.js +19 -19
  157. package/dist/src/components/shared/data-display/SCodeEditor.vue_vue_type_script_setup_true_lang.js +37 -37
  158. package/dist/src/components/shared/data-display/SCodeSearchPanel.vue_vue_type_script_setup_true_lang.js +17 -17
  159. package/dist/src/components/shared/data-display/SCodeWorkspaceEditor.vue_vue_type_script_setup_true_lang.js +12 -12
  160. package/dist/src/components/shared/data-display/SControlledToastViewport.vue_vue_type_script_setup_true_lang.js +4 -4
  161. package/dist/src/components/shared/data-display/SDiffViewer.vue_vue_type_script_setup_true_lang.js +13 -13
  162. package/dist/src/components/shared/data-display/SDocBlock.vue_vue_type_script_setup_true_lang.js +12 -12
  163. package/dist/src/components/shared/data-display/SEmptyState.vue.d.ts +1 -1
  164. package/dist/src/components/shared/data-display/SEmptyState.vue_vue_type_script_setup_true_lang.js +4 -4
  165. package/dist/src/components/shared/data-display/SExpandableText.vue_vue_type_script_setup_true_lang.js +7 -7
  166. package/dist/src/components/shared/data-display/SKeyValueGrid.vue_vue_type_script_setup_true_lang.js +15 -15
  167. package/dist/src/components/shared/data-display/SLinkedSystemsList.vue_vue_type_script_setup_true_lang.js +17 -17
  168. package/dist/src/components/shared/data-display/SMessage.vue.d.ts +1 -1
  169. package/dist/src/components/shared/data-display/SMessage.vue_vue_type_script_setup_true_lang.js +9 -9
  170. package/dist/src/components/shared/data-display/SMetricCard.vue.d.ts +1 -1
  171. package/dist/src/components/shared/data-display/SProgressBar.vue.d.ts +22 -3
  172. package/dist/src/components/shared/data-display/SProgressBar.vue.js +2 -2
  173. package/dist/src/components/shared/data-display/SProgressBar.vue_vue_type_script_setup_true_lang.js +133 -47
  174. package/dist/src/components/shared/data-display/SProgressIndicator.vue_vue_type_script_setup_true_lang.js +4 -4
  175. package/dist/src/components/shared/data-display/SRichDocument.vue.js +2 -2
  176. package/dist/src/components/shared/data-display/SRichDocument.vue_vue_type_script_setup_true_lang.js +46 -23
  177. package/dist/src/components/shared/data-display/SScrollViewport.vue_vue_type_script_setup_true_lang.js +18 -18
  178. package/dist/src/components/shared/data-display/SSectionHeader.vue.d.ts +1 -1
  179. package/dist/src/components/shared/data-display/SStatus.vue_vue_type_script_setup_true_lang.js +4 -4
  180. package/dist/src/components/shared/data-display/STable.vue.js +2 -2
  181. package/dist/src/components/shared/data-display/STable.vue_vue_type_script_setup_true_lang.js +343 -322
  182. package/dist/src/components/shared/data-display/STooltip.vue.d.ts +2 -2
  183. package/dist/src/components/shared/data-display/STooltip.vue_vue_type_script_setup_true_lang.js +181 -154
  184. package/dist/src/components/shared/data-display/STooltipAnchor.vue_vue_type_script_setup_true_lang.js +5 -5
  185. package/dist/src/components/shared/data-display/STooltipTarget.vue_vue_type_script_setup_true_lang.js +4 -4
  186. package/dist/src/components/shared/data-display/SVirtualList.vue.js +2 -2
  187. package/dist/src/components/shared/data-display/SVirtualList.vue_vue_type_script_setup_true_lang.js +196 -246
  188. package/dist/src/components/shared/data-display/_internal/SRichBlockNode.vue.js +2 -2
  189. package/dist/src/components/shared/data-display/_internal/SRichBlockNode.vue_vue_type_script_setup_true_lang.js +242 -220
  190. package/dist/src/components/shared/data-display/_internal/SRichDisclosure.vue.d.ts +13 -2
  191. package/dist/src/components/shared/data-display/_internal/SRichDisclosure.vue.js +2 -2
  192. package/dist/src/components/shared/data-display/_internal/SRichDisclosure.vue_vue_type_script_setup_true_lang.js +67 -11
  193. package/dist/src/components/shared/data-display/_internal/SRichImage.vue.d.ts +11 -0
  194. package/dist/src/components/shared/data-display/_internal/SRichImage.vue.js +8 -0
  195. package/dist/src/components/shared/data-display/_internal/SRichImage.vue_vue_type_script_setup_true_lang.js +89 -0
  196. package/dist/src/components/shared/data-display/_internal/SRichInlineNode.vue.d.ts +3 -2
  197. package/dist/src/components/shared/data-display/_internal/SRichInlineNode.vue.js +2 -2
  198. package/dist/src/components/shared/data-display/_internal/SRichInlineNode.vue_vue_type_script_setup_true_lang.js +179 -125
  199. package/dist/src/components/shared/data-display/_internal/SRichMath.vue_vue_type_script_setup_true_lang.js +4 -4
  200. package/dist/src/components/shared/data-display/_internal/SRichTableNode.vue.d.ts +21 -0
  201. package/dist/src/components/shared/data-display/_internal/SRichTableNode.vue.js +5 -0
  202. package/dist/src/components/shared/data-display/_internal/SRichTableNode.vue_vue_type_script_setup_true_lang.js +150 -0
  203. package/dist/src/components/shared/data-display/_internal/STableCell.vue.d.ts +52 -0
  204. package/dist/src/components/shared/data-display/_internal/STableCell.vue.js +8 -0
  205. package/dist/src/components/shared/data-display/_internal/STableCell.vue_vue_type_script_setup_true_lang.js +148 -0
  206. package/dist/src/components/shared/data-display/_internal/STableFrame.vue.d.ts +42 -0
  207. package/dist/src/components/shared/data-display/_internal/STableFrame.vue.js +8 -0
  208. package/dist/src/components/shared/data-display/_internal/STableFrame.vue_vue_type_script_setup_true_lang.js +98 -0
  209. package/dist/src/components/shared/data-display/_internal/STableRow.vue.d.ts +43 -0
  210. package/dist/src/components/shared/data-display/_internal/STableRow.vue.js +8 -0
  211. package/dist/src/components/shared/data-display/_internal/STableRow.vue_vue_type_script_setup_true_lang.js +115 -0
  212. package/dist/src/components/shared/data-display/_internal/STableSection.vue.d.ts +28 -0
  213. package/dist/src/components/shared/data-display/_internal/STableSection.vue.js +5 -0
  214. package/dist/src/components/shared/data-display/_internal/STableSection.vue_vue_type_script_setup_true_lang.js +77 -0
  215. package/dist/src/components/shared/data-display/_internal/richDocumentMedia.d.ts +6 -0
  216. package/dist/src/components/shared/data-display/_internal/richDocumentMedia.js +136 -0
  217. package/dist/src/components/shared/data-display/_internal/richDocumentMetadata.d.ts +21 -0
  218. package/dist/src/components/shared/data-display/_internal/richDocumentMetadata.js +39 -0
  219. package/dist/src/components/shared/data-display/_internal/richDocumentNavigation.d.ts +30 -0
  220. package/dist/src/components/shared/data-display/_internal/richDocumentNavigation.js +88 -0
  221. package/dist/src/components/shared/data-display/_internal/richDocumentTableValidation.d.ts +9 -0
  222. package/dist/src/components/shared/data-display/_internal/richDocumentTableValidation.js +240 -0
  223. package/dist/src/components/shared/data-display/_internal/richDocumentTraversal.d.ts +15 -0
  224. package/dist/src/components/shared/data-display/_internal/richDocumentTraversal.js +61 -0
  225. package/dist/src/components/shared/data-display/_internal/richDocumentTypes.d.ts +466 -0
  226. package/dist/src/components/shared/data-display/_internal/richDocumentValidation.d.ts +65 -0
  227. package/dist/src/components/shared/data-display/_internal/richDocumentValidation.js +192 -0
  228. package/dist/src/components/shared/data-display/_internal/tableFoundation.d.ts +27 -0
  229. package/dist/src/components/shared/data-display/_internal/tableFoundation.js +16 -0
  230. package/dist/src/components/shared/data-display/richDocument.d.ts +3 -220
  231. package/dist/src/components/shared/data-display/richDocument.js +607 -399
  232. package/dist/src/components/shared/database/SDataGrid.vue_vue_type_script_setup_true_lang.js +36 -36
  233. package/dist/src/components/shared/database/SSqlEditor.vue.d.ts +2 -2
  234. package/dist/src/components/shared/database/SSqlEditor.vue_vue_type_script_setup_true_lang.js +36 -36
  235. package/dist/src/components/shared/feedback/SAsyncState.vue.js +2 -2
  236. package/dist/src/components/shared/feedback/SAsyncState.vue_vue_type_script_setup_true_lang.js +70 -63
  237. package/dist/src/components/shared/navigation/SBottomNav.vue.d.ts +2 -2
  238. package/dist/src/components/shared/navigation/SBottomNav.vue.js +2 -2
  239. package/dist/src/components/shared/navigation/SBottomNav.vue_vue_type_script_setup_true_lang.js +138 -129
  240. package/dist/src/components/shared/navigation/SBreadcrumbs.vue.d.ts +2 -2
  241. package/dist/src/components/shared/navigation/STabPanel.vue.d.ts +2 -2
  242. package/dist/src/components/shared/navigation/SWizardSteps.vue_vue_type_script_setup_true_lang.js +16 -16
  243. package/dist/src/components/shared/persona/SPersonaProjectPicker.vue.d.ts +2 -2
  244. package/dist/src/composables/useDialogOverlay.d.ts +11 -2
  245. package/dist/src/composables/useDialogOverlay.js +202 -44
  246. package/dist/src/composables/useFloatingPosition.d.ts +20 -0
  247. package/dist/src/composables/useFloatingPosition.js +129 -52
  248. package/dist/src/internal/fieldSurface.d.ts +3 -0
  249. package/dist/src/internal/fieldSurface.js +3 -2
  250. package/dist/src/internal/focusNavigation.d.ts +2 -0
  251. package/dist/src/internal/focusNavigation.js +9 -9
  252. package/dist/src/internal/layerStack.d.ts +12 -0
  253. package/dist/src/internal/layerStack.js +138 -62
  254. package/dist/src/internal/linkTarget.d.ts +7 -1
  255. package/dist/src/internal/linkTarget.js +11 -7
  256. package/dist/src/internal/overlayHost.d.ts +18 -0
  257. package/dist/src/internal/overlayHost.js +18 -0
  258. package/dist/src/internal/ownedAttrs.d.ts +13 -3
  259. package/dist/src/internal/ownedAttrs.js +8 -1
  260. package/dist/src/internal/runtimeContract.d.ts +2 -0
  261. package/dist/src/internal/runtimeContract.js +10 -5
  262. package/dist/src/internal/useMenuLayer.d.ts +7 -4
  263. package/dist/src/internal/useMenuLayer.js +72 -49
  264. package/dist/tailwind.css +3 -0
  265. package/dist/typography.LICENSE.txt +94 -0
  266. package/dist/typography.js +5150 -0
  267. package/docs/getting-started.md +39 -0
  268. package/docs/link-download.md +114 -0
  269. package/docs/listbox.md +129 -0
  270. package/docs/public-api.md +196 -4
  271. package/docs/resize.md +129 -0
  272. package/docs/rich-document.md +442 -25
  273. package/package.json +12 -4
  274. package/src/components/shared/_internal/SDialogSurface.css +39 -7
  275. package/src/components/shared/_internal/SMenuLayer.css +4 -0
  276. package/src/components/shared/containers/SDrawer.css +20 -2
  277. package/src/components/shared/containers/SOverlayHost.css +14 -0
  278. package/src/components/shared/containers/SPopover.css +8 -2
  279. package/src/components/shared/controls/SButton.css +4 -0
  280. package/src/components/shared/controls/SField.css +6 -0
  281. package/src/components/shared/controls/SListbox.css +17 -0
  282. package/src/components/shared/controls/SMenuSurface.css +18 -4
  283. package/src/components/shared/controls/STextarea.css +42 -3
  284. package/src/components/shared/data-display/SProgressBar.css +79 -0
  285. package/src/components/shared/data-display/SRichDocument.css +1 -0
  286. package/src/components/shared/data-display/SStatus.css +8 -25
  287. package/src/components/shared/data-display/STable.css +0 -113
  288. package/src/components/shared/data-display/STooltip.css +4 -1
  289. package/src/components/shared/data-display/_internal/SRichBlockNode.css +11 -7
  290. package/src/components/shared/data-display/_internal/SRichDisclosure.css +16 -0
  291. package/src/components/shared/data-display/_internal/SRichImage.css +37 -0
  292. package/src/components/shared/data-display/_internal/STableCell.css +55 -0
  293. package/src/components/shared/data-display/_internal/STableFrame.css +41 -0
  294. package/src/components/shared/data-display/_internal/STableRow.css +12 -0
  295. package/src/components/shared/feedback/SAsyncState.css +0 -4
  296. package/src/styles/style.css +9 -5
  297. package/src/styles/tokens.css +30 -0
  298. package/dist/assets/src/components/layout/SDockRegion.vue_vue_type_style_index_0_scoped_2932631d_lang.css +0 -1
  299. package/dist/assets/src/components/shared/_internal/SDialogSurface.css_vue_type_style_index_0_src_d1b65adf_scoped_d1b65adf_lang.css +0 -2
  300. package/dist/assets/src/components/shared/_internal/SMenuLayer.css_vue_type_style_index_0_src_4913bbe1_scoped_4913bbe1_lang.css +0 -1
  301. package/dist/assets/src/components/shared/containers/SDrawer.css_vue_type_style_index_0_src_091d7325_scoped_091d7325_lang.css +0 -2
  302. package/dist/assets/src/components/shared/containers/SPopover.css_vue_type_style_index_0_src_deded766_scoped_deded766_lang.css +0 -2
  303. package/dist/assets/src/components/shared/containers/SSidebarSection.css_vue_type_style_index_0_src_96f51ac6_scoped_96f51ac6_lang.css +0 -2
  304. package/dist/assets/src/components/shared/controls/SButton.css_vue_type_style_index_0_src_a5d8f7e0_scoped_a5d8f7e0_lang.css +0 -2
  305. package/dist/assets/src/components/shared/controls/SCombobox.css_vue_type_style_index_0_src_e3b4f580_scoped_e3b4f580_lang.css +0 -2
  306. package/dist/assets/src/components/shared/controls/SContextMenu.css_vue_type_style_index_0_src_00c91d39_scoped_00c91d39_lang.css +0 -1
  307. package/dist/assets/src/components/shared/controls/SField.css_vue_type_style_index_0_src_60628f96_scoped_60628f96_lang.css +0 -2
  308. package/dist/assets/src/components/shared/controls/SListbox.css_vue_type_style_index_0_src_24db4abb_scoped_24db4abb_lang.css +0 -2
  309. package/dist/assets/src/components/shared/controls/SMenuSurface.css_vue_type_style_index_0_src_ddcc5fbb_scoped_ddcc5fbb_lang.css +0 -2
  310. package/dist/assets/src/components/shared/controls/SSelect.css_vue_type_style_index_0_src_441648c9_scoped_441648c9_lang.css +0 -2
  311. package/dist/assets/src/components/shared/data-display/SProgressBar.css_vue_type_style_index_0_src_9308293a_scoped_9308293a_lang.css +0 -2
  312. package/dist/assets/src/components/shared/data-display/SRichDocument.css_vue_type_style_index_0_src_d1afafc5_scoped_d1afafc5_lang.css +0 -2
  313. package/dist/assets/src/components/shared/data-display/STable.css_vue_type_style_index_0_src_9955d482_scoped_9955d482_lang.css +0 -2
  314. package/dist/assets/src/components/shared/data-display/SVirtualList.css_vue_type_style_index_0_src_cee8c247_scoped_cee8c247_lang.css +0 -2
  315. package/dist/assets/src/components/shared/data-display/_internal/SRichBlockNode.css_vue_type_style_index_0_src_195d5c06_scoped_195d5c06_lang.css +0 -2
  316. package/dist/assets/src/components/shared/data-display/_internal/SRichDisclosure.css_vue_type_style_index_0_src_fa94e2ff_scoped_fa94e2ff_lang.css +0 -2
  317. package/dist/assets/src/components/shared/feedback/SAsyncState.css_vue_type_style_index_0_src_bfc28903_scoped_bfc28903_lang.css +0 -2
@@ -1,10 +1,11 @@
1
1
  import { findFocusableOwner as e } from "../../../internal/focusNavigation.js";
2
- import { useOwnedAttrs as t } from "../../../internal/ownedAttrs.js";
3
- import { validateBoolean as n, validateBoundedNumber as r, validateExactString as i } from "../../../internal/runtimeContract.js";
2
+ import { validateBoolean as t, validateBoundedNumber as n, validateExactString as r } from "../../../internal/runtimeContract.js";
3
+ import { useOwnedAttrs as i } from "../../../internal/ownedAttrs.js";
4
4
  import { useInteractiveLeafRegistration as a } from "../../../internal/passiveContentContract.js";
5
- import { Fragment as o, computed as s, createCommentVNode as ee, createElementBlock as c, createElementVNode as te, defineComponent as l, mergeProps as ne, nextTick as u, normalizeStyle as re, onBeforeUnmount as ie, onMounted as ae, openBlock as d, ref as f, renderList as oe, renderSlot as se, unref as ce, watch as p } from "vue";
5
+ import { useVirtualCollection as ee } from "../_internal/useVirtualCollection.js";
6
+ import { Fragment as o, computed as s, createCommentVNode as te, createElementBlock as c, createElementVNode as ne, defineComponent as l, mergeProps as re, nextTick as u, normalizeStyle as ie, onBeforeUnmount as ae, onMounted as oe, openBlock as d, ref as f, renderList as se, renderSlot as ce, unref as le, watch as p } from "vue";
6
7
  //#region src/components/shared/data-display/SVirtualList.vue?vue&type=script&setup=true&lang.ts
7
- var le = [
8
+ var ue = [
8
9
  "data-item-size",
9
10
  "data-viewport-height",
10
11
  "role",
@@ -12,13 +13,13 @@ var le = [
12
13
  "aria-live",
13
14
  "aria-busy",
14
15
  "aria-relevant"
15
- ], ue = [
16
+ ], de = [
16
17
  "data-virtual-index",
17
18
  "role",
18
19
  "aria-label",
19
20
  "aria-posinset",
20
21
  "aria-setsize"
21
- ], de = /*@__PURE__*/ l({
22
+ ], fe = /*@__PURE__*/ l({
22
23
  inheritAttrs: !1,
23
24
  __name: "SVirtualList",
24
25
  props: {
@@ -48,98 +49,87 @@ var le = [
48
49
  "viewport-change",
49
50
  "near-start"
50
51
  ],
51
- setup(l, { expose: de, emit: fe }) {
52
- let m = l, pe = fe, h = f(null), g = f(null), _ = f(null), me = t({
52
+ setup(l, { expose: fe, emit: pe }) {
53
+ let m = l, me = pe, h = f(null), g = f(null), _ = f(null), he = i({
53
54
  component: "SVirtualList",
54
55
  owner: "virtual list viewport"
55
56
  });
56
57
  a({ owner: "SVirtualList" });
57
- let v = f(0), y = f(0), b = f(/* @__PURE__ */ new Map()), x = f(0), S = f(0), C = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), E = null, D = null, O = null, k = !1, he = !1, ge = "", A = null, _e = 0, j = !1, M = !1, N = null, P = 0, ve = null, F = null, I = f(m.followTail), L = s(() => i("SVirtualList", "semanticRole", m.semanticRole, ["list", "log"])), ye = s(() => i("SVirtualList", "live", m.live, [
58
+ let v = f(0), ge = f(0), y = f(0), b = f(0), x = f(null), S = null, C = ee({
59
+ owner: "SVirtualList",
60
+ items: () => m.items,
61
+ itemKey: (e) => m.itemKey(e),
62
+ estimatedSize: () => m.itemSize,
63
+ overscan: () => m.overscan,
64
+ scrollOffset: v,
65
+ viewportSize: ge,
66
+ leadingSize: () => y.value,
67
+ pinnedKeys: () => x.value === null ? [] : [x.value],
68
+ observer: () => S
69
+ }), { measurements: _e, itemKeys: w, itemKeyIndexes: T, itemSizes: ve, offsets: ye, totalHeight: be, firstVisibleIndex: xe, lastVisibleIndex: Se, visibleEntries: Ce, renderedItemsByKey: we, renderedItemKeysByElement: Te, renderedItemRef: Ee } = C, E = null, D = null, O = !1, De = !1, Oe = "", k = null, A = 0, j = !1, M = !1, N = null, P = 0, ke = null, F = null, I = f(m.followTail), L = s(() => r("SVirtualList", "semanticRole", m.semanticRole, ["list", "log"])), Ae = s(() => r("SVirtualList", "live", m.live, [
58
70
  "off",
59
71
  "polite",
60
72
  "assertive"
61
- ])), be = s(() => n("SVirtualList", "busy", m.busy)), xe = s(() => r("SVirtualList", "nearStartThreshold", m.nearStartThreshold, {
73
+ ])), je = s(() => t("SVirtualList", "busy", m.busy)), Me = s(() => n("SVirtualList", "nearStartThreshold", m.nearStartThreshold, {
62
74
  minimum: 0,
63
75
  maximum: 1e4
64
- })), Se = s(() => r("SVirtualList", "endThreshold", m.endThreshold, {
76
+ })), Ne = s(() => n("SVirtualList", "endThreshold", m.endThreshold, {
65
77
  minimum: 0,
66
78
  maximum: 1e4
67
79
  })), R = s(() => m.externalScrollTarget !== null);
68
80
  function z(e) {
69
81
  return `${typeof e}:${JSON.stringify(e)}`;
70
82
  }
71
- function Ce(e, t) {
72
- if (typeof e == "string") {
73
- if (e.trim().length === 0) throw TypeError(`SVirtualList itemKey returned an empty string for item at index ${t}`);
74
- return;
75
- }
76
- if (typeof e == "number") {
77
- if (!Number.isFinite(e)) throw TypeError(`SVirtualList itemKey returned a non-finite number for item at index ${t}`);
78
- return;
83
+ function Pe(e, t) {
84
+ return m.itemLabel(e, t);
85
+ }
86
+ function Fe(e) {
87
+ let t = e instanceof Element ? e : null;
88
+ for (; t !== null && t !== h.value;) {
89
+ if (t instanceof HTMLElement) {
90
+ let e = Te.get(t);
91
+ if (e !== void 0) return e;
92
+ }
93
+ t = t.parentElement;
79
94
  }
80
- throw TypeError(`SVirtualList itemKey returned unsupported ${typeof e} key for item at index ${t}`);
95
+ return null;
81
96
  }
82
- function we(e, t) {
83
- return m.itemLabel(e, t);
97
+ function Ie(e) {
98
+ x.value = Fe(e.target);
84
99
  }
85
- let B = s(() => {
86
- let e = /* @__PURE__ */ new Set();
87
- return m.items.map((t, n) => {
88
- let r = m.itemKey(t);
89
- if (Ce(r, n), e.has(r)) throw TypeError(`SVirtualList itemKey returned duplicate key ${z(r)} at index ${n}`);
90
- return e.add(r), r;
91
- });
92
- }), V = s(() => new Map(B.value.map((e, t) => [e, t]))), Te = s(() => B.value.map((e) => b.value.get(e) ?? m.itemSize)), H = s(() => {
93
- let e = Array(m.items.length + 1);
94
- e[0] = 0;
95
- for (let t = 0; t < m.items.length; t += 1) e[t + 1] = (e[t] ?? 0) + (Te.value[t] ?? m.itemSize);
96
- return e;
97
- }), U = s(() => H.value[m.items.length] ?? 0), Ee = s(() => x.value + U.value + S.value), De = s(() => R.value ? {
100
+ function Le(e) {
101
+ x.value = Fe(e.relatedTarget);
102
+ }
103
+ let Re = s(() => y.value + be.value + b.value), ze = s(() => R.value ? {
98
104
  position: "relative",
99
105
  overflow: "visible",
100
- height: `${Ee.value}px`
106
+ height: `${Re.value}px`
101
107
  } : {
102
108
  position: "relative",
103
109
  overflowY: "auto",
104
110
  height: typeof m.height == "number" && m.height > 0 ? `${m.height}px` : "100%"
105
- }), Oe = s(() => ({ height: `${Ee.value}px` })), ke = s(() => ({ top: `${x.value + U.value}px` }));
106
- function Ae(e) {
107
- let t = 0, n = m.items.length;
108
- for (; t < n;) {
109
- let r = Math.floor((t + n) / 2);
110
- (H.value[r + 1] ?? U.value) <= e ? t = r + 1 : n = r;
111
- }
112
- return Math.min(t, Math.max(m.items.length - 1, 0));
113
- }
114
- let je = s(() => Math.max(0, v.value - x.value)), Me = s(() => Math.max(0, v.value + y.value - x.value)), Ne = s(() => m.items.length === 0 ? 0 : Ae(je.value)), Pe = s(() => m.items.length === 0 ? -1 : Ae(Me.value)), Fe = s(() => Math.max(0, Ne.value - m.overscan)), Ie = s(() => Math.min(m.items.length, Pe.value + m.overscan + 1)), Le = s(() => m.items.slice(Fe.value, Ie.value).map((e, t) => {
115
- let n = Fe.value + t;
116
- return {
117
- item: e,
118
- index: n,
119
- key: B.value[n]
120
- };
121
- }));
122
- function Re(e) {
111
+ }), Be = s(() => ({ height: `${Re.value}px` })), Ve = s(() => ({ top: `${y.value + be.value}px` }));
112
+ function He(e) {
123
113
  return {
124
114
  position: "absolute",
125
- top: `${x.value + (H.value[e] ?? 0)}px`,
115
+ top: `${y.value + (ye.value[e] ?? 0)}px`,
126
116
  left: "0",
127
117
  right: "0"
128
118
  };
129
119
  }
130
- function W() {
120
+ function B() {
131
121
  let e = m.externalScrollTarget, t = h.value;
132
122
  return !e || !t ? 0 : t.getBoundingClientRect().top - e.getBoundingClientRect().top + e.scrollTop;
133
123
  }
134
- function G() {
124
+ function V() {
135
125
  return m.externalScrollTarget ?? h.value;
136
126
  }
137
- function K() {
138
- return Math.max(0, Ee.value - y.value);
127
+ function H() {
128
+ return Math.max(0, Re.value - ge.value);
139
129
  }
140
- function q(e = B.value) {
130
+ function U(e = w.value) {
141
131
  if (e.length === 0) return null;
142
- let t = e.map((e) => b.value.get(e) ?? m.itemSize), n = 0, r = 0, i = Math.min(Math.max(0, v.value - x.value), Math.max(0, U.value - 1));
132
+ let t = e.map((e) => _e.value.get(e) ?? m.itemSize), n = 0, r = 0, i = Math.min(Math.max(0, v.value - y.value), Math.max(0, be.value - 1));
143
133
  for (; r < t.length - 1 && n + (t[r] ?? m.itemSize) <= i;) n += t[r] ?? m.itemSize, r += 1;
144
134
  let a = e[r];
145
135
  return a === void 0 ? null : {
@@ -147,21 +137,21 @@ var le = [
147
137
  offset: i - n
148
138
  };
149
139
  }
150
- function ze() {
151
- A = null;
140
+ function Ue() {
141
+ k = null;
152
142
  }
153
- function Be() {
143
+ function We() {
154
144
  P += 1, N !== null && typeof cancelAnimationFrame == "function" && cancelAnimationFrame(N), N = null;
155
145
  }
156
- function Ve() {
157
- Be();
146
+ function Ge() {
147
+ We();
158
148
  let e = P, t = () => {
159
149
  if (e === P) {
160
150
  if (N = null, j) {
161
- Ve();
151
+ Ge();
162
152
  return;
163
153
  }
164
- M = !1, ze();
154
+ M = !1, Ue();
165
155
  }
166
156
  };
167
157
  if (typeof requestAnimationFrame != "function") {
@@ -172,156 +162,127 @@ var le = [
172
162
  e === P && (N = requestAnimationFrame(t));
173
163
  });
174
164
  }
175
- function He() {
176
- M = !0, Ve();
165
+ function Ke() {
166
+ M = !0, Ge();
177
167
  }
178
- function J(e = !1) {
179
- _e += 1, e || (j = !1), Be(), M = !1, ze();
168
+ function W(e = !1) {
169
+ A += 1, e || (j = !1), We(), M = !1, Ue();
180
170
  }
181
- function Y() {
182
- ve = null, F = null;
171
+ function G() {
172
+ ke = null, F = null;
183
173
  }
184
- function Ue(e) {
185
- ve = e, F = e.scrollTop;
174
+ function qe(e) {
175
+ ke = e, F = e.scrollTop;
186
176
  }
187
- function We(e) {
188
- A = e;
177
+ function K(e) {
178
+ k = e;
189
179
  }
190
- function Ge() {
180
+ function Je() {
191
181
  if (m.items.length === 0) return {
192
182
  firstIndex: -1,
193
183
  lastIndex: -1,
194
184
  firstKey: null,
195
185
  lastKey: null
196
186
  };
197
- let e = Ne.value, t = Math.max(e, Pe.value);
187
+ let e = xe.value, t = Math.max(e, Se.value);
198
188
  return {
199
189
  firstIndex: e,
200
190
  lastIndex: t,
201
- firstKey: B.value[e] ?? null,
202
- lastKey: B.value[t] ?? null
191
+ firstKey: w.value[e] ?? null,
192
+ lastKey: w.value[t] ?? null
203
193
  };
204
194
  }
205
- function Ke() {
206
- let e = v.value <= xe.value, t = K() - v.value <= Se.value;
195
+ function Ye() {
196
+ let e = v.value <= Me.value, t = H() - v.value <= Ne.value;
207
197
  return {
208
- anchor: q(),
209
- visibleRange: Ge(),
198
+ anchor: U(),
199
+ visibleRange: Je(),
210
200
  nearStart: e,
211
201
  atEnd: t,
212
202
  pinnedToEnd: I.value
213
203
  };
214
204
  }
215
- function qe() {
216
- let e = Ke(), t = JSON.stringify(e);
217
- t !== ge && (ge = t, pe("viewport-change", e)), e.nearStart && !he && pe("near-start", e), he = e.nearStart;
205
+ function Xe() {
206
+ let e = Ye(), t = JSON.stringify(e);
207
+ t !== Oe && (Oe = t, me("viewport-change", e)), e.nearStart && !De && me("near-start", e), De = e.nearStart;
218
208
  }
219
- function X(e) {
220
- let t = n("SVirtualList", "setFollowTail value", e);
221
- t && J(), I.value !== t && (I.value = t, pe("update:followTail", t), qe());
209
+ function q(e) {
210
+ let n = t("SVirtualList", "setFollowTail value", e);
211
+ n && W(), I.value !== n && (I.value = n, me("update:followTail", n), Xe());
222
212
  }
223
- function Z(e) {
224
- let t = G();
213
+ function J(e) {
214
+ let t = V();
225
215
  if (!t) return;
226
- let n = e !== void 0 && O === null && ve === t && F !== null && Math.abs(t.scrollTop - F) <= .5, r = e !== void 0 && O === null && M && A !== null, i = n || r, a = e !== void 0 && !i && j, o = r;
227
- e !== void 0 && (i || (Y(), J()));
228
- let s = O;
229
- y.value = t.clientHeight;
230
- let ee = Math.max(0, t.scrollTop - (R.value ? W() : 0)), c = Math.abs(ee - v.value) > .5;
231
- if (v.value = ee, s === "up" && X(!1), s === "down" && K() - v.value <= Se.value && X(!0), (s !== null || e !== void 0 && !i && c) && !I.value) {
232
- let e = q();
233
- e && (We(e), He());
216
+ let n = e !== void 0 && D === null && ke === t && F !== null && Math.abs(t.scrollTop - F) <= .5, r = e !== void 0 && D === null && M && k !== null, i = n || r, a = e !== void 0 && !i && j, ee = r;
217
+ e !== void 0 && (i || (G(), W()));
218
+ let o = D;
219
+ ge.value = t.clientHeight;
220
+ let s = Math.max(0, t.scrollTop - (R.value ? B() : 0)), te = Math.abs(s - v.value) > .5;
221
+ if (v.value = s, o === "up" && q(!1), o === "down" && H() - v.value <= Ne.value && q(!0), (o !== null || e !== void 0 && !i && te) && !I.value) {
222
+ let e = U();
223
+ e && (K(e), Ke());
234
224
  }
235
- O = null, o ? Q(A, { protectAnchor: !0 }) : qe(), a && Q(I.value ? null : q(), { protectAnchor: !I.value });
225
+ D = null, ee ? Q(k, { protectAnchor: !0 }) : Xe(), a && Q(I.value ? null : U(), { protectAnchor: !I.value });
236
226
  }
237
- function Je(e) {
238
- Y(), J(!0), e.deltaY < 0 ? (O = "up", X(!1)) : e.deltaY > 0 && (O = "down");
227
+ function Y(e) {
228
+ G(), W(!0), e.deltaY < 0 ? (D = "up", q(!1)) : e.deltaY > 0 && (D = "down");
239
229
  }
240
- function Ye(t) {
241
- let n = e(t.target, G());
242
- t.defaultPrevented || t.isComposing || n !== null && n !== h.value && n !== G() || ([
230
+ function X(t) {
231
+ let n = e(t.target, V());
232
+ t.defaultPrevented || t.isComposing || n !== null && n !== h.value && n !== V() || ([
243
233
  "ArrowUp",
244
234
  "PageUp",
245
235
  "Home"
246
- ].includes(t.key) ? (Y(), J(!0), O = "up", X(!1)) : [
236
+ ].includes(t.key) ? (G(), W(!0), D = "up", q(!1)) : [
247
237
  "ArrowDown",
248
238
  "PageDown",
249
239
  "End"
250
- ].includes(t.key) && (Y(), J(!0), O = "down"));
240
+ ].includes(t.key) && (G(), W(!0), D = "down"));
251
241
  }
252
- function Xe(e) {
253
- let t = G();
242
+ function Ze(e) {
243
+ let t = V();
254
244
  return !t || e.currentTarget !== t ? !1 : e.offsetX >= t.clientWidth || e.offsetY >= t.clientHeight;
255
245
  }
256
- function Ze(e) {
257
- Y(), J(!0), k = Xe(e), k && (O = "unknown", X(!1));
246
+ function Z(e) {
247
+ G(), W(!0), O = Ze(e), O && (D = "unknown", q(!1));
258
248
  }
259
249
  function Qe() {
260
- k && (k = !1, K() - v.value <= Se.value && X(!0), O = null);
250
+ O && (O = !1, H() - v.value <= Ne.value && q(!0), D = null);
261
251
  }
262
252
  function $e(e, t) {
263
253
  let n = e.scrollTop;
264
- e.scrollTop = t, Math.abs(e.scrollTop - n) > .5 && Ue(e), Z();
254
+ e.scrollTop = t, Math.abs(e.scrollTop - n) > .5 && qe(e), J();
265
255
  }
266
256
  function et(e, t) {
267
- let n = V.value.get(e.key);
257
+ let n = T.value.get(e.key);
268
258
  if (n === void 0) {
269
259
  if (t) throw RangeError(`SVirtualList cannot restore missing anchor key ${z(e.key)}`);
270
260
  return !1;
271
261
  }
272
- let r = G();
262
+ let r = V();
273
263
  if (!r) return !1;
274
- let i = Te.value[n] ?? m.itemSize;
264
+ let i = ve.value[n] ?? m.itemSize;
275
265
  if (!Number.isFinite(e.offset) || e.offset < 0 || t && e.offset >= i) throw RangeError(`SVirtualList anchor offset ${e.offset} is outside row ${z(e.key)} size ${i}`);
276
- let a = Math.min(e.offset, Math.max(0, i - 1)), o = x.value + (H.value[n] ?? 0) + a;
277
- return $e(r, Math.max(0, o + (R.value ? W() : 0))), !0;
266
+ let a = Math.min(e.offset, Math.max(0, i - 1)), ee = y.value + (ye.value[n] ?? 0) + a;
267
+ return $e(r, Math.max(0, ee + (R.value ? B() : 0))), !0;
278
268
  }
279
269
  function tt(e) {
280
270
  if (I.value) {
281
271
  $({ follow: !0 });
282
272
  return;
283
273
  }
284
- let t = A ?? e;
285
- t && et(t, !1) || Z();
274
+ let t = k ?? e;
275
+ t && et(t, !1) || J();
286
276
  }
287
277
  function Q(e, t = {}) {
288
- e && A === null && We(e), t.protectAnchor && He();
289
- let n = _e + 1;
290
- _e = n, j = !0, u(() => {
291
- n === _e && (j = !1, tt(e));
278
+ e && k === null && K(e), t.protectAnchor && Ke();
279
+ let n = A + 1;
280
+ A = n, j = !0, u(() => {
281
+ n === A && (j = !1, tt(e));
292
282
  });
293
283
  }
294
284
  function nt(e) {
295
- let t = C.get(e);
296
- if (!t) return;
297
- let n = w.get(t);
298
- if (n !== e) throw Error(`SVirtualList rendered item registry mismatch for key ${z(e)}: element belongs to ${n === void 0 ? "no key" : z(n)}`);
299
- E?.unobserve(t), C.delete(e), w.delete(t);
300
- }
301
- function rt(e, t) {
302
- let n = V.value.get(e);
303
- if (n === void 0) throw Error(`SVirtualList received a rendered item ref for stale key ${z(e)}`);
304
- let r = C.get(e);
305
- if (r && r !== t) throw Error(`SVirtualList rendered item key collision for ${z(e)} at index ${n}`);
306
- let i = w.get(t);
307
- if (i !== void 0 && i !== e) throw Error(`SVirtualList rendered item element collision between ${z(i)} and ${z(e)}`);
308
- r !== t && (C.set(e, t), w.set(t, e), E?.observe(t));
309
- }
310
- function it(e) {
311
- let t = T.get(e);
312
- if (t) return t;
313
- let n = (t) => {
314
- if (t === null) {
315
- nt(e);
316
- return;
317
- }
318
- if (!(t instanceof HTMLElement)) throw TypeError(`SVirtualList rendered item ref for ${z(e)} must resolve to an HTMLElement`);
319
- rt(e, t);
320
- };
321
- return T.set(e, n), n;
322
- }
323
- function at(e) {
324
- let t = !1, n = I.value ? null : A ?? q(), r = new Map(b.value), i = !1, a = !1;
285
+ let t = !1, n = I.value ? null : k ?? U(), r = [], i = !1;
325
286
  for (let n of e) {
326
287
  if (n.target === h.value || n.target === m.externalScrollTarget) {
327
288
  t = !0;
@@ -329,130 +290,119 @@ var le = [
329
290
  }
330
291
  let e = n.borderBoxSize[0]?.blockSize ?? n.contentRect.height;
331
292
  if (n.target === g.value) {
332
- Number.isFinite(e) && e >= 0 && x.value !== e && (x.value = e, a = !0);
293
+ Number.isFinite(e) && e >= 0 && y.value !== e && (y.value = e, i = !0);
333
294
  continue;
334
295
  }
335
296
  if (n.target === _.value) {
336
- Number.isFinite(e) && e >= 0 && S.value !== e && (S.value = e, a = !0);
297
+ Number.isFinite(e) && e >= 0 && b.value !== e && (b.value = e, i = !0);
337
298
  continue;
338
299
  }
339
- if (!(n.target instanceof HTMLElement)) throw TypeError("SVirtualList received a ResizeObserver entry for a non-HTMLElement target");
340
- let o = w.get(n.target);
341
- if (o === void 0 || C.get(o) !== n.target) throw Error("SVirtualList received a ResizeObserver entry for an unregistered rendered item");
342
- if (V.value.get(o) === void 0) throw Error(`SVirtualList received a ResizeObserver entry for stale key ${z(o)}`);
343
- !Number.isFinite(e) || e <= 0 || r.get(o) === e || (r.set(o, e), i = !0);
300
+ r.push(n);
344
301
  }
345
- i && (b.value = r), i || a ? Q(n, { protectAnchor: n !== null }) : t && Z();
346
- }
347
- function ot(e, t = "auto") {
348
- if (!Number.isInteger(e) || e < 0 || e >= m.items.length) throw RangeError(`SVirtualList index ${e} is outside 0..${Math.max(m.items.length - 1, 0)}`);
349
- let n = m.externalScrollTarget ?? h.value;
350
- if (!n) return;
351
- J();
352
- let r = x.value + (H.value[e] ?? 0), i = x.value + (H.value[e + 1] ?? (H.value[e] ?? 0) + m.itemSize), a = v.value, o = a + y.value, s = r;
353
- t === "end" && (s = i - y.value), t === "center" && (s = r - (y.value - (i - r)) / 2), !(t === "auto" && r >= a && i <= o) && (t === "auto" && i > o && (s = i - y.value), $e(n, Math.max(0, s + (R.value ? W() : 0))));
354
- }
355
- function st(e, t = "auto") {
356
- let n = V.value.get(e);
302
+ C.measureItems(r) || i ? Q(n, { protectAnchor: n !== null }) : t && J();
303
+ }
304
+ function rt(e, t = "auto") {
305
+ let n = C.offsetForIndex(e, t), r = m.externalScrollTarget ?? h.value;
306
+ r && (W(), n !== null && $e(r, Math.max(0, n + (R.value ? B() : 0))));
307
+ }
308
+ function it(e, t = "auto") {
309
+ let n = T.value.get(e);
357
310
  if (n === void 0) throw RangeError(`SVirtualList cannot scroll to missing key ${z(e)}`);
358
- ot(n, t);
311
+ rt(n, t);
359
312
  }
360
313
  function $(e = {}) {
361
- let t = G();
362
- t && (J(), (e.follow ?? !0) && X(!0), $e(t, K() + (R.value ? W() : 0)));
314
+ let t = V();
315
+ t && (W(), (e.follow ?? !0) && q(!0), $e(t, H() + (R.value ? B() : 0)));
363
316
  }
364
- function ct() {
317
+ function at() {
365
318
  return {
366
- anchor: q(),
319
+ anchor: U(),
367
320
  followTail: I.value
368
321
  };
369
322
  }
370
- async function lt(e) {
323
+ async function ot(e) {
371
324
  if (typeof e != "object" || !e || Array.isArray(e)) throw TypeError("SVirtualList restoreViewport snapshot must be an object");
372
- let t = n("SVirtualList", "restoreViewport.followTail", e.followTail);
373
- if (J(), await u(), t) {
325
+ let n = t("SVirtualList", "restoreViewport.followTail", e.followTail);
326
+ if (W(), await u(), n) {
374
327
  $({ follow: !0 });
375
328
  return;
376
329
  }
377
330
  if (e.anchor === null) {
378
- X(!1);
331
+ q(!1);
379
332
  return;
380
333
  }
381
- X(!1), We(e.anchor), He(), et(e.anchor, !0);
334
+ q(!1), K(e.anchor), Ke(), et(e.anchor, !0);
382
335
  }
383
- async function ut(e, t = "auto") {
384
- let n = B.value[e];
385
- if (ot(e, t), await u(), n === void 0 || V.value.get(n) === void 0) throw Error(`SVirtualList focusItem key ${n === void 0 ? `at index ${e}` : z(n)} became stale before focus`);
386
- let r = V.value.get(n);
336
+ async function st(e, t = "auto") {
337
+ let n = w.value[e];
338
+ if (rt(e, t), await u(), n === void 0 || T.value.get(n) === void 0) throw Error(`SVirtualList focusItem key ${n === void 0 ? `at index ${e}` : z(n)} became stale before focus`);
339
+ let r = T.value.get(n);
387
340
  if (r !== e) throw Error(`SVirtualList focusItem key ${z(n)} moved from index ${e} to ${r} before focus`);
388
- let i = C.get(n);
341
+ let i = we.get(n);
389
342
  if (!i) throw Error(`SVirtualList focusItem has no rendered item registration for key ${z(n)} at index ${e}`);
390
- if (w.get(i) !== n) throw Error(`SVirtualList focusItem found a stale rendered item registration for key ${z(n)}`);
343
+ if (Te.get(i) !== n) throw Error(`SVirtualList focusItem found a stale rendered item registration for key ${z(n)}`);
391
344
  i.focus();
392
345
  }
393
- de({
394
- captureViewport: ct,
395
- focusItem: ut,
396
- getViewportState: Ke,
397
- restoreViewport: lt,
346
+ fe({
347
+ captureViewport: at,
348
+ focusItem: st,
349
+ getViewportState: Ye,
350
+ restoreViewport: ot,
398
351
  scrollToEnd: $,
399
- scrollToIndex: ot,
400
- scrollToKey: st,
401
- setFollowTail: X
352
+ scrollToIndex: rt,
353
+ scrollToKey: it,
354
+ setFollowTail: q
402
355
  });
403
- function dt(e) {
404
- D?.removeEventListener("scroll", Z), D?.removeEventListener("wheel", Je), D?.removeEventListener("keydown", Ye), D?.removeEventListener("pointerdown", Ze), D?.removeEventListener("pointerup", Qe), D && E?.unobserve(D), Y(), J(), D = e, D?.addEventListener("scroll", Z, { passive: !0 }), D?.addEventListener("wheel", Je, { passive: !0 }), D?.addEventListener("keydown", Ye), D?.addEventListener("pointerdown", Ze), D?.addEventListener("pointerup", Qe), D && E?.observe(D), Z();
356
+ function ct(e) {
357
+ E?.removeEventListener("scroll", J), E?.removeEventListener("wheel", Y), E?.removeEventListener("keydown", X), E?.removeEventListener("pointerdown", Z), E?.removeEventListener("pointerup", Qe), E && S?.unobserve(E), G(), W(), E = e, E?.addEventListener("scroll", J, { passive: !0 }), E?.addEventListener("wheel", Y, { passive: !0 }), E?.addEventListener("keydown", X), E?.addEventListener("pointerdown", Z), E?.addEventListener("pointerup", Qe), E && S?.observe(E), J();
405
358
  }
406
- return ae(() => {
359
+ return oe(() => {
407
360
  if (typeof ResizeObserver < "u") {
408
- E = new ResizeObserver((e) => at(e)), h.value && E.observe(h.value), g.value && E.observe(g.value), _.value && E.observe(_.value);
409
- for (let e of C.values()) E.observe(e);
361
+ S = new ResizeObserver((e) => nt(e)), h.value && S.observe(h.value), g.value && S.observe(g.value), _.value && S.observe(_.value);
362
+ for (let e of we.values()) S.observe(e);
410
363
  }
411
- dt(m.externalScrollTarget), Z(), I.value && u(() => $({ follow: !0 }));
412
- }), p(() => m.externalScrollTarget, dt), p(g, (e, t) => {
413
- if (t && E?.unobserve(t), e && E?.observe(e), !e && t && x.value > 0) {
414
- let e = I.value ? null : A ?? q();
415
- x.value = 0, Q(e, { protectAnchor: !0 });
364
+ ct(m.externalScrollTarget), J(), I.value && u(() => $({ follow: !0 }));
365
+ }), p(() => m.externalScrollTarget, ct), p(g, (e, t) => {
366
+ if (t && S?.unobserve(t), e && S?.observe(e), !e && t && y.value > 0) {
367
+ let e = I.value ? null : k ?? U();
368
+ y.value = 0, Q(e, { protectAnchor: !0 });
416
369
  }
417
370
  }), p(_, (e, t) => {
418
- if (t && E?.unobserve(t), e && E?.observe(e), !e && t && S.value > 0) {
419
- let e = I.value ? null : A ?? q();
420
- S.value = 0, Q(e, { protectAnchor: !0 });
371
+ if (t && S?.unobserve(t), e && S?.observe(e), !e && t && b.value > 0) {
372
+ let e = I.value ? null : k ?? U();
373
+ b.value = 0, Q(e, { protectAnchor: !0 });
421
374
  }
422
375
  }), p(() => m.followTail, (e) => {
423
- I.value = n("SVirtualList", "followTail", e), I.value ? (J(), u(() => $({ follow: !1 }))) : qe();
424
- }), p(() => B.value, (e, t) => {
425
- let n = I.value ? null : A ?? q(t);
426
- n && We(n);
427
- let r = new Set(e);
428
- b.value = new Map([...b.value].filter(([e]) => r.has(e)));
429
- for (let e of C.keys()) r.has(e) || nt(e);
430
- for (let e of T.keys()) r.has(e) || T.delete(e);
431
- Q(n, { protectAnchor: !0 });
432
- }, { flush: "sync" }), ie(() => {
433
- Y(), Be(), J(), D?.removeEventListener("scroll", Z), D?.removeEventListener("wheel", Je), D?.removeEventListener("keydown", Ye), D?.removeEventListener("pointerdown", Ze), D?.removeEventListener("pointerup", Qe), E?.disconnect(), C.clear(), w.clear(), T.clear();
434
- }), (e, t) => (d(), c("div", ne(ce(me).bindings(), {
376
+ I.value = t("SVirtualList", "followTail", e), I.value ? (W(), u(() => $({ follow: !1 }))) : Xe();
377
+ }), p(() => w.value, (e, t) => {
378
+ let n = I.value ? null : k ?? U(t);
379
+ n && K(n), x.value !== null && !e.includes(x.value) && (x.value = null), C.prune(e), Q(n, { protectAnchor: !0 });
380
+ }, { flush: "sync" }), ae(() => {
381
+ x.value = null, G(), We(), W(), E?.removeEventListener("scroll", J), E?.removeEventListener("wheel", Y), E?.removeEventListener("keydown", X), E?.removeEventListener("pointerdown", Z), E?.removeEventListener("pointerup", Qe), S?.disconnect(), C.clear();
382
+ }), (e, t) => (d(), c("div", re(le(he).bindings(), {
435
383
  ref_key: "container",
436
384
  ref: h,
437
385
  class: "s-virtual-list",
438
- style: De.value,
386
+ style: ze.value,
439
387
  "data-item-size": l.itemSize,
440
388
  "data-viewport-height": l.height ?? void 0,
441
389
  role: L.value,
442
390
  "aria-label": l.accessibleLabel,
443
- "aria-live": L.value === "log" ? ye.value : void 0,
444
- "aria-busy": L.value === "log" ? be.value : void 0,
391
+ "aria-live": L.value === "log" ? Ae.value : void 0,
392
+ "aria-busy": L.value === "log" ? je.value : void 0,
445
393
  "aria-relevant": L.value === "log" ? "additions text" : void 0,
446
394
  tabindex: "0",
447
- onScrollPassive: Z,
448
- onWheelPassive: Je,
449
- onKeydown: Ye,
450
- onPointerdown: Ze,
451
- onPointerup: Qe
395
+ onScrollPassive: J,
396
+ onWheelPassive: Y,
397
+ onKeydown: X,
398
+ onPointerdown: Z,
399
+ onPointerup: Qe,
400
+ onFocusin: Ie,
401
+ onFocusout: Le
452
402
  }), [
453
- te("div", {
403
+ ne("div", {
454
404
  class: "s-virtual-list__spacer",
455
- style: re(Oe.value),
405
+ style: ie(Be.value),
456
406
  "aria-hidden": "true"
457
407
  }, null, 4),
458
408
  e.$slots.header ? (d(), c("div", {
@@ -460,34 +410,34 @@ var le = [
460
410
  ref_key: "headerRegion",
461
411
  ref: g,
462
412
  class: "s-virtual-list__header"
463
- }, [se(e.$slots, "header", {}, void 0, !0)], 512)) : ee("", !0),
464
- (d(!0), c(o, null, oe(Le.value, (t) => (d(), c("div", {
413
+ }, [ce(e.$slots, "header", {}, void 0, !0)], 512)) : te("", !0),
414
+ (d(!0), c(o, null, se(le(Ce), (t) => (d(), c("div", {
465
415
  key: t.key,
466
416
  ref_for: !0,
467
- ref: it(t.key),
417
+ ref: le(Ee)(t.key),
468
418
  class: "s-virtual-list__item",
469
- style: re(Re(t.index)),
419
+ style: ie(He(t.index)),
470
420
  "data-virtual-index": t.index,
471
421
  role: L.value === "list" ? "listitem" : "article",
472
- "aria-label": we(t.item, t.index),
422
+ "aria-label": Pe(t.item, t.index),
473
423
  "aria-posinset": t.index + 1,
474
424
  "aria-setsize": l.items.length,
475
425
  tabindex: "-1"
476
- }, [se(e.$slots, "default", {
426
+ }, [ce(e.$slots, "default", {
477
427
  item: t.item,
478
428
  index: t.index,
479
429
  position: t.index + 1,
480
430
  setSize: l.items.length
481
- }, void 0, !0)], 12, ue))), 128)),
431
+ }, void 0, !0)], 12, de))), 128)),
482
432
  e.$slots.footer ? (d(), c("div", {
483
433
  key: 1,
484
434
  ref_key: "footerRegion",
485
435
  ref: _,
486
436
  class: "s-virtual-list__footer",
487
- style: re(ke.value)
488
- }, [se(e.$slots, "footer", {}, void 0, !0)], 4)) : ee("", !0)
489
- ], 16, le));
437
+ style: ie(Ve.value)
438
+ }, [ce(e.$slots, "footer", {}, void 0, !0)], 4)) : te("", !0)
439
+ ], 16, ue));
490
440
  }
491
441
  });
492
442
  //#endregion
493
- export { de as default };
443
+ export { fe as default };