@pgcorp/ui-kit 0.13.0 → 0.15.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 (354) hide show
  1. package/README.md +1055 -31
  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_dc65aba1_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_a108e8f1_scoped_a108e8f1_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/{SCollapsiblePanel.css_vue_type_style_index_0_src_71824088_scoped_71824088_lang.css → SCollapsiblePanel.css_vue_type_style_index_0_src_db85261d_scoped_db85261d_lang.css} +1 -1
  9. package/dist/assets/src/components/shared/containers/SOverlayHost.css_vue_type_style_index_0_src_09215628_scoped_09215628_lang.css +2 -0
  10. package/dist/assets/src/components/shared/containers/SPopover.css_vue_type_style_index_0_src_a4f1f64a_scoped_a4f1f64a_lang.css +2 -0
  11. 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
  12. package/dist/assets/src/components/shared/containers/SSidebarSection.css_vue_type_style_index_0_src_52396e42_scoped_52396e42_lang.css +2 -0
  13. package/dist/assets/src/components/shared/controls/SButton.css_vue_type_style_index_0_src_7a5acda9_scoped_7a5acda9_lang.css +2 -0
  14. package/dist/assets/src/components/shared/controls/SCheckbox.css_vue_type_style_index_0_src_2562f916_scoped_2562f916_lang.css +2 -0
  15. package/dist/assets/src/components/shared/controls/SCombobox.css_vue_type_style_index_0_src_d630c922_scoped_d630c922_lang.css +2 -0
  16. package/dist/assets/src/components/shared/controls/SContextMenu.css_vue_type_style_index_0_src_43b6e378_scoped_43b6e378_lang.css +1 -0
  17. 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_40040ae5_scoped_40040ae5_lang.css} +1 -1
  18. package/dist/assets/src/components/shared/controls/SField.css_vue_type_style_index_0_src_2d353c26_scoped_2d353c26_lang.css +2 -0
  19. 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
  20. 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
  21. package/dist/assets/src/components/shared/controls/SListbox.css_vue_type_style_index_0_src_50063f9f_scoped_50063f9f_lang.css +2 -0
  22. 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
  23. package/dist/assets/src/components/shared/controls/SMenuSurface.css_vue_type_style_index_0_src_d2b7d71b_scoped_d2b7d71b_lang.css +2 -0
  24. package/dist/assets/src/components/shared/controls/SSelect.css_vue_type_style_index_0_src_d1ead6c0_scoped_d1ead6c0_lang.css +2 -0
  25. package/dist/assets/src/components/shared/controls/STextarea.css_vue_type_style_index_0_src_true_lang.css +1 -1
  26. package/dist/assets/src/components/shared/data-display/SControlledToastViewport.css_vue_type_style_index_0_src_a69aa84b_scoped_a69aa84b_lang.css +2 -0
  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/SScrollViewport.css_vue_type_style_index_0_src_d94fcf8c_scoped_d94fcf8c_lang.css +2 -0
  30. package/dist/assets/src/components/shared/data-display/SStatus.css_vue_type_style_index_0_src_3ce41a12_scoped_3ce41a12_lang.css +1 -1
  31. package/dist/assets/src/components/shared/data-display/STable.css_vue_type_style_index_0_src_b23b3d71_scoped_b23b3d71_lang.css +2 -0
  32. package/dist/assets/src/components/shared/data-display/STooltip.css_vue_type_style_index_0_src_true_lang.css +1 -1
  33. package/dist/assets/src/components/shared/data-display/SVirtualList.css_vue_type_style_index_0_src_9fe3ade0_scoped_9fe3ade0_lang.css +2 -0
  34. package/dist/assets/src/components/shared/data-display/_internal/SRichBlockNode.css_vue_type_style_index_0_src_eaae882d_scoped_eaae882d_lang.css +2 -0
  35. package/dist/assets/src/components/shared/data-display/_internal/SRichDisclosure.css_vue_type_style_index_0_src_1f0ffc97_scoped_1f0ffc97_lang.css +2 -0
  36. package/dist/assets/src/components/shared/data-display/_internal/SRichImage.css_vue_type_style_index_0_src_2f1c39a9_scoped_2f1c39a9_lang.css +2 -0
  37. 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
  38. package/dist/assets/src/components/shared/data-display/_internal/STableCell.css_vue_type_style_index_0_src_b829cbc6_scoped_b829cbc6_lang.css +2 -0
  39. package/dist/assets/src/components/shared/data-display/_internal/STableFrame.css_vue_type_style_index_0_src_914bad28_scoped_914bad28_lang.css +2 -0
  40. package/dist/assets/src/components/shared/data-display/_internal/STableRow.css_vue_type_style_index_0_src_1661f8b8_scoped_1661f8b8_lang.css +2 -0
  41. package/dist/assets/src/components/shared/feedback/SAsyncState.css_vue_type_style_index_0_src_8a291af7_scoped_8a291af7_lang.css +2 -0
  42. 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_68cf84b3_lang.css} +1 -1
  43. package/dist/index.d.ts +1 -0
  44. package/dist/index.js +3 -3
  45. package/dist/reference.css +4 -0
  46. package/dist/src/components/icons/_internal/generatedSputnigUiIconComponents.d.ts +15 -0
  47. package/dist/src/components/icons/_internal/generatedSputnigUiIconComponents.js +4 -4
  48. package/dist/src/components/icons/_internal/generatedSputnigUiIconMarkup.d.ts +46 -1
  49. package/dist/src/components/icons/_internal/generatedSputnigUiIconMarkup.js +260 -230
  50. package/dist/src/components/icons/sputnigUiIcons.d.ts +1 -1
  51. package/dist/src/components/icons/sputnigUiIcons.js +233 -218
  52. package/dist/src/components/layout/SAppShell.vue_vue_type_script_setup_true_lang.js +8 -8
  53. package/dist/src/components/layout/SDockRegion.vue.d.ts +18 -5
  54. package/dist/src/components/layout/SDockRegion.vue.js +2 -2
  55. package/dist/src/components/layout/SDockRegion.vue_vue_type_script_setup_true_lang.js +112 -64
  56. package/dist/src/components/layout/SResizeHandle.vue.d.ts +6 -3
  57. package/dist/src/components/layout/SResizeHandle.vue.js +2 -2
  58. package/dist/src/components/layout/SResizeHandle.vue_vue_type_script_setup_true_lang.js +127 -87
  59. package/dist/src/components/layout/SStack.vue.d.ts +1 -1
  60. package/dist/src/components/layout/SWorkbenchPanelShell.vue.d.ts +4 -4
  61. package/dist/src/components/layout/SWorkbenchPanelShell.vue.js +2 -2
  62. package/dist/src/components/layout/SWorkbenchPanelShell.vue_vue_type_script_setup_true_lang.js +62 -58
  63. package/dist/src/components/layout/types.d.ts +20 -0
  64. package/dist/src/components/shared/_internal/SDialogSurface.vue.d.ts +9 -1
  65. package/dist/src/components/shared/_internal/SDialogSurface.vue.js +2 -2
  66. package/dist/src/components/shared/_internal/SDialogSurface.vue_vue_type_script_setup_true_lang.js +183 -68
  67. package/dist/src/components/shared/_internal/SHeaderSurface.vue.d.ts +1 -1
  68. package/dist/src/components/shared/_internal/SListboxGroup.vue.d.ts +5 -0
  69. package/dist/src/components/shared/_internal/SListboxGroup.vue.js +2 -2
  70. package/dist/src/components/shared/_internal/SListboxGroup.vue_vue_type_script_setup_true_lang.js +33 -15
  71. package/dist/src/components/shared/_internal/SMenuLayer.vue.d.ts +5 -1
  72. package/dist/src/components/shared/_internal/SMenuLayer.vue.js +2 -2
  73. package/dist/src/components/shared/_internal/SMenuLayer.vue_vue_type_script_setup_true_lang.js +64 -20
  74. package/dist/src/components/shared/_internal/dialogSurface.d.ts +17 -2
  75. package/dist/src/components/shared/_internal/dialogSurface.js +42 -23
  76. package/dist/src/components/shared/_internal/dialogSurfaceMotion.d.ts +14 -0
  77. package/dist/src/components/shared/_internal/dialogSurfaceMotion.js +84 -0
  78. package/dist/src/components/shared/_internal/focusTrap.js +15 -13
  79. package/dist/src/components/shared/_internal/listboxContext.d.ts +1 -0
  80. package/dist/src/components/shared/_internal/listboxInventory.d.ts +51 -0
  81. package/dist/src/components/shared/_internal/listboxInventory.js +85 -0
  82. package/dist/src/components/shared/_internal/menuContext.d.ts +8 -0
  83. package/dist/src/components/shared/_internal/menuContext.js +2 -2
  84. package/dist/src/components/shared/_internal/sidebarGroupContext.d.ts +1 -0
  85. package/dist/src/components/shared/_internal/useVirtualCollection.d.ts +45 -0
  86. package/dist/src/components/shared/_internal/useVirtualCollection.js +123 -0
  87. package/dist/src/components/shared/complex/SKanbanLane.vue_vue_type_script_setup_true_lang.js +5 -5
  88. package/dist/src/components/shared/containers/SCloudChrome.vue.d.ts +1 -1
  89. package/dist/src/components/shared/containers/SCloudChromeRow.vue.d.ts +1 -1
  90. package/dist/src/components/shared/containers/SCollapsiblePanel.vue.d.ts +5 -0
  91. package/dist/src/components/shared/containers/SCollapsiblePanel.vue.js +2 -2
  92. package/dist/src/components/shared/containers/SCollapsiblePanel.vue_vue_type_script_setup_true_lang.js +123 -121
  93. package/dist/src/components/shared/containers/SDrawer.vue.d.ts +16 -5
  94. package/dist/src/components/shared/containers/SDrawer.vue.js +3 -6
  95. package/dist/src/components/shared/containers/SDrawer.vue_vue_type_script_setup_true_lang.js +149 -75
  96. package/dist/src/components/shared/containers/SModal.vue.d.ts +8 -8
  97. package/dist/src/components/shared/containers/SModal.vue.js +3 -6
  98. package/dist/src/components/shared/containers/SModal.vue_vue_type_script_setup_true_lang.js +93 -85
  99. package/dist/src/components/shared/containers/SOverlayHost.vue.d.ts +16 -0
  100. package/dist/src/components/shared/containers/SOverlayHost.vue.js +8 -0
  101. package/dist/src/components/shared/containers/SOverlayHost.vue_vue_type_script_setup_true_lang.js +66 -0
  102. package/dist/src/components/shared/containers/SPageHeader.vue.d.ts +1 -1
  103. package/dist/src/components/shared/containers/SPanel.vue.d.ts +2 -2
  104. package/dist/src/components/shared/containers/SPanel.vue_vue_type_script_setup_true_lang.js +7 -7
  105. package/dist/src/components/shared/containers/SPopover.vue.js +2 -2
  106. package/dist/src/components/shared/containers/SPopover.vue_vue_type_script_setup_true_lang.js +250 -156
  107. package/dist/src/components/shared/containers/SSidebarGroup.vue.js +2 -2
  108. package/dist/src/components/shared/containers/SSidebarGroup.vue_vue_type_script_setup_true_lang.js +30 -8
  109. package/dist/src/components/shared/containers/SSidebarSection.vue.js +2 -2
  110. package/dist/src/components/shared/containers/SSidebarSection.vue_vue_type_script_setup_true_lang.js +59 -45
  111. package/dist/src/components/shared/controls/SButton.vue.d.ts +7 -0
  112. package/dist/src/components/shared/controls/SButton.vue.js +2 -2
  113. package/dist/src/components/shared/controls/SButton.vue_vue_type_script_setup_true_lang.js +11 -5
  114. package/dist/src/components/shared/controls/SCheckbox.vue.d.ts +3 -0
  115. package/dist/src/components/shared/controls/SCheckbox.vue.js +2 -2
  116. package/dist/src/components/shared/controls/SCheckbox.vue_vue_type_script_setup_true_lang.js +53 -43
  117. package/dist/src/components/shared/controls/SCheckboxGroup.vue_vue_type_script_setup_true_lang.js +7 -7
  118. package/dist/src/components/shared/controls/SChoiceCards.vue_vue_type_script_setup_true_lang.js +4 -4
  119. package/dist/src/components/shared/controls/SColorSelect.vue_vue_type_script_setup_true_lang.js +6 -6
  120. package/dist/src/components/shared/controls/SCombobox.vue.js +2 -2
  121. package/dist/src/components/shared/controls/SCombobox.vue_vue_type_script_setup_true_lang.js +157 -132
  122. package/dist/src/components/shared/controls/SComboboxTrigger.vue.d.ts +2 -2
  123. package/dist/src/components/shared/controls/SContextMenu.vue.d.ts +11 -0
  124. package/dist/src/components/shared/controls/SContextMenu.vue.js +2 -2
  125. package/dist/src/components/shared/controls/SContextMenu.vue_vue_type_script_setup_true_lang.js +163 -73
  126. package/dist/src/components/shared/controls/SContextToggleButton.vue_vue_type_script_setup_true_lang.js +6 -6
  127. package/dist/src/components/shared/controls/SDragHandle.vue_vue_type_script_setup_true_lang.js +5 -5
  128. package/dist/src/components/shared/controls/SDropdownMenu.vue.js +2 -2
  129. package/dist/src/components/shared/controls/SDropdownMenu.vue_vue_type_script_setup_true_lang.js +77 -65
  130. package/dist/src/components/shared/controls/SField.vue.d.ts +9 -6
  131. package/dist/src/components/shared/controls/SField.vue.js +2 -2
  132. package/dist/src/components/shared/controls/SField.vue_vue_type_script_setup_true_lang.js +69 -52
  133. package/dist/src/components/shared/controls/SFieldGroup.vue_vue_type_script_setup_true_lang.js +13 -13
  134. package/dist/src/components/shared/controls/SInlineTokenEditor.vue_vue_type_script_setup_true_lang.js +26 -26
  135. package/dist/src/components/shared/controls/SInputText.vue_vue_type_script_setup_true_lang.js +21 -21
  136. package/dist/src/components/shared/controls/SInteractiveSurface.vue.js +2 -2
  137. package/dist/src/components/shared/controls/SInteractiveSurface.vue_vue_type_script_setup_true_lang.js +99 -74
  138. package/dist/src/components/shared/controls/SLink.d.ts +11 -1
  139. package/dist/src/components/shared/controls/SLink.vue.d.ts +17 -1
  140. package/dist/src/components/shared/controls/SLink.vue.js +2 -2
  141. package/dist/src/components/shared/controls/SLink.vue_vue_type_script_setup_true_lang.js +157 -62
  142. package/dist/src/components/shared/controls/SListbox.vue.d.ts +10 -1
  143. package/dist/src/components/shared/controls/SListbox.vue.js +2 -2
  144. package/dist/src/components/shared/controls/SListbox.vue_vue_type_script_setup_true_lang.js +371 -189
  145. package/dist/src/components/shared/controls/SListboxOption.vue.d.ts +6 -0
  146. package/dist/src/components/shared/controls/SListboxOption.vue.js +2 -2
  147. package/dist/src/components/shared/controls/SListboxOption.vue_vue_type_script_setup_true_lang.js +47 -34
  148. package/dist/src/components/shared/controls/SMenuSurface.vue.d.ts +2 -2
  149. package/dist/src/components/shared/controls/SMenuSurface.vue.js +2 -2
  150. package/dist/src/components/shared/controls/SMenuSurface.vue_vue_type_script_setup_true_lang.js +145 -115
  151. package/dist/src/components/shared/controls/SRange.vue_vue_type_script_setup_true_lang.js +12 -12
  152. package/dist/src/components/shared/controls/SSelect.vue.js +2 -2
  153. package/dist/src/components/shared/controls/SSelect.vue_vue_type_script_setup_true_lang.js +130 -112
  154. package/dist/src/components/shared/controls/STextarea.d.ts +1 -1
  155. package/dist/src/components/shared/controls/STextarea.vue.d.ts +28 -2
  156. package/dist/src/components/shared/controls/STextarea.vue_vue_type_script_setup_true_lang.js +348 -209
  157. package/dist/src/components/shared/controls/_internal/SInlineTokenSurface.vue_vue_type_script_lang.js +36 -36
  158. package/dist/src/components/shared/data-display/SActionList.vue.d.ts +1 -1
  159. package/dist/src/components/shared/data-display/SActionListItem.vue.d.ts +4 -4
  160. package/dist/src/components/shared/data-display/SActionListItem.vue_vue_type_script_setup_true_lang.js +6 -6
  161. package/dist/src/components/shared/data-display/SBadge.vue.d.ts +1 -1
  162. package/dist/src/components/shared/data-display/SChart.vue_vue_type_script_setup_true_lang.js +89 -89
  163. package/dist/src/components/shared/data-display/SChip.vue.d.ts +1 -1
  164. package/dist/src/components/shared/data-display/SChip.vue_vue_type_script_setup_true_lang.js +7 -7
  165. package/dist/src/components/shared/data-display/SCodeBlock.vue_vue_type_script_setup_true_lang.js +19 -19
  166. package/dist/src/components/shared/data-display/SCodeEditor.vue_vue_type_script_setup_true_lang.js +37 -37
  167. package/dist/src/components/shared/data-display/SCodeSearchPanel.vue_vue_type_script_setup_true_lang.js +17 -17
  168. package/dist/src/components/shared/data-display/SCodeWorkspaceEditor.vue_vue_type_script_setup_true_lang.js +12 -12
  169. package/dist/src/components/shared/data-display/SControlledToastViewport.vue.js +2 -2
  170. package/dist/src/components/shared/data-display/SControlledToastViewport.vue_vue_type_script_setup_true_lang.js +57 -48
  171. package/dist/src/components/shared/data-display/SDiffViewer.vue_vue_type_script_setup_true_lang.js +13 -13
  172. package/dist/src/components/shared/data-display/SDocBlock.vue_vue_type_script_setup_true_lang.js +12 -12
  173. package/dist/src/components/shared/data-display/SEmptyState.vue.d.ts +1 -1
  174. package/dist/src/components/shared/data-display/SEmptyState.vue_vue_type_script_setup_true_lang.js +4 -4
  175. package/dist/src/components/shared/data-display/SExpandableText.vue_vue_type_script_setup_true_lang.js +7 -7
  176. package/dist/src/components/shared/data-display/SKeyValueGrid.vue_vue_type_script_setup_true_lang.js +15 -15
  177. package/dist/src/components/shared/data-display/SLinkedSystemsList.vue_vue_type_script_setup_true_lang.js +17 -17
  178. package/dist/src/components/shared/data-display/SMessage.vue.d.ts +1 -1
  179. package/dist/src/components/shared/data-display/SMessage.vue_vue_type_script_setup_true_lang.js +9 -9
  180. package/dist/src/components/shared/data-display/SMetricCard.vue.d.ts +1 -1
  181. package/dist/src/components/shared/data-display/SProgressBar.vue.d.ts +22 -3
  182. package/dist/src/components/shared/data-display/SProgressBar.vue.js +2 -2
  183. package/dist/src/components/shared/data-display/SProgressBar.vue_vue_type_script_setup_true_lang.js +133 -47
  184. package/dist/src/components/shared/data-display/SProgressIndicator.vue_vue_type_script_setup_true_lang.js +4 -4
  185. package/dist/src/components/shared/data-display/SRichDocument.vue.js +2 -2
  186. package/dist/src/components/shared/data-display/SRichDocument.vue_vue_type_script_setup_true_lang.js +46 -23
  187. package/dist/src/components/shared/data-display/SScrollViewport.vue.d.ts +10 -5
  188. package/dist/src/components/shared/data-display/SScrollViewport.vue.js +2 -2
  189. package/dist/src/components/shared/data-display/SScrollViewport.vue_vue_type_script_setup_true_lang.js +162 -111
  190. package/dist/src/components/shared/data-display/SSectionHeader.vue.d.ts +1 -1
  191. package/dist/src/components/shared/data-display/SStatus.vue_vue_type_script_setup_true_lang.js +4 -4
  192. package/dist/src/components/shared/data-display/STable.vue.js +2 -2
  193. package/dist/src/components/shared/data-display/STable.vue_vue_type_script_setup_true_lang.js +343 -322
  194. package/dist/src/components/shared/data-display/STooltip.vue.d.ts +2 -2
  195. package/dist/src/components/shared/data-display/STooltip.vue_vue_type_script_setup_true_lang.js +284 -205
  196. package/dist/src/components/shared/data-display/STooltipAnchor.vue_vue_type_script_setup_true_lang.js +5 -5
  197. package/dist/src/components/shared/data-display/STooltipTarget.vue_vue_type_script_setup_true_lang.js +4 -4
  198. package/dist/src/components/shared/data-display/SVirtualList.vue.js +2 -2
  199. package/dist/src/components/shared/data-display/SVirtualList.vue_vue_type_script_setup_true_lang.js +196 -246
  200. package/dist/src/components/shared/data-display/_internal/SRichBlockNode.vue.js +2 -2
  201. package/dist/src/components/shared/data-display/_internal/SRichBlockNode.vue_vue_type_script_setup_true_lang.js +242 -220
  202. package/dist/src/components/shared/data-display/_internal/SRichDisclosure.vue.d.ts +13 -2
  203. package/dist/src/components/shared/data-display/_internal/SRichDisclosure.vue.js +2 -2
  204. package/dist/src/components/shared/data-display/_internal/SRichDisclosure.vue_vue_type_script_setup_true_lang.js +67 -11
  205. package/dist/src/components/shared/data-display/_internal/SRichImage.vue.d.ts +11 -0
  206. package/dist/src/components/shared/data-display/_internal/SRichImage.vue.js +8 -0
  207. package/dist/src/components/shared/data-display/_internal/SRichImage.vue_vue_type_script_setup_true_lang.js +89 -0
  208. package/dist/src/components/shared/data-display/_internal/SRichInlineNode.vue.d.ts +3 -2
  209. package/dist/src/components/shared/data-display/_internal/SRichInlineNode.vue.js +2 -2
  210. package/dist/src/components/shared/data-display/_internal/SRichInlineNode.vue_vue_type_script_setup_true_lang.js +179 -125
  211. package/dist/src/components/shared/data-display/_internal/SRichMath.vue_vue_type_script_setup_true_lang.js +4 -4
  212. package/dist/src/components/shared/data-display/_internal/SRichTableNode.vue.d.ts +21 -0
  213. package/dist/src/components/shared/data-display/_internal/SRichTableNode.vue.js +5 -0
  214. package/dist/src/components/shared/data-display/_internal/SRichTableNode.vue_vue_type_script_setup_true_lang.js +150 -0
  215. package/dist/src/components/shared/data-display/_internal/STableCell.vue.d.ts +52 -0
  216. package/dist/src/components/shared/data-display/_internal/STableCell.vue.js +8 -0
  217. package/dist/src/components/shared/data-display/_internal/STableCell.vue_vue_type_script_setup_true_lang.js +148 -0
  218. package/dist/src/components/shared/data-display/_internal/STableFrame.vue.d.ts +42 -0
  219. package/dist/src/components/shared/data-display/_internal/STableFrame.vue.js +8 -0
  220. package/dist/src/components/shared/data-display/_internal/STableFrame.vue_vue_type_script_setup_true_lang.js +114 -0
  221. package/dist/src/components/shared/data-display/_internal/STableRow.vue.d.ts +43 -0
  222. package/dist/src/components/shared/data-display/_internal/STableRow.vue.js +8 -0
  223. package/dist/src/components/shared/data-display/_internal/STableRow.vue_vue_type_script_setup_true_lang.js +115 -0
  224. package/dist/src/components/shared/data-display/_internal/STableSection.vue.d.ts +28 -0
  225. package/dist/src/components/shared/data-display/_internal/STableSection.vue.js +5 -0
  226. package/dist/src/components/shared/data-display/_internal/STableSection.vue_vue_type_script_setup_true_lang.js +77 -0
  227. package/dist/src/components/shared/data-display/_internal/richDocumentMedia.d.ts +6 -0
  228. package/dist/src/components/shared/data-display/_internal/richDocumentMedia.js +136 -0
  229. package/dist/src/components/shared/data-display/_internal/richDocumentMetadata.d.ts +21 -0
  230. package/dist/src/components/shared/data-display/_internal/richDocumentMetadata.js +39 -0
  231. package/dist/src/components/shared/data-display/_internal/richDocumentNavigation.d.ts +30 -0
  232. package/dist/src/components/shared/data-display/_internal/richDocumentNavigation.js +88 -0
  233. package/dist/src/components/shared/data-display/_internal/richDocumentTableValidation.d.ts +9 -0
  234. package/dist/src/components/shared/data-display/_internal/richDocumentTableValidation.js +240 -0
  235. package/dist/src/components/shared/data-display/_internal/richDocumentTraversal.d.ts +15 -0
  236. package/dist/src/components/shared/data-display/_internal/richDocumentTraversal.js +61 -0
  237. package/dist/src/components/shared/data-display/_internal/richDocumentTypes.d.ts +466 -0
  238. package/dist/src/components/shared/data-display/_internal/richDocumentValidation.d.ts +65 -0
  239. package/dist/src/components/shared/data-display/_internal/richDocumentValidation.js +192 -0
  240. package/dist/src/components/shared/data-display/_internal/tableFoundation.d.ts +27 -0
  241. package/dist/src/components/shared/data-display/_internal/tableFoundation.js +16 -0
  242. package/dist/src/components/shared/data-display/richDocument.d.ts +3 -220
  243. package/dist/src/components/shared/data-display/richDocument.js +607 -399
  244. package/dist/src/components/shared/data-display/scrollViewport.d.ts +2 -0
  245. package/dist/src/components/shared/database/SDataGrid.vue_vue_type_script_setup_true_lang.js +36 -36
  246. package/dist/src/components/shared/database/SSqlEditor.vue.d.ts +2 -2
  247. package/dist/src/components/shared/database/SSqlEditor.vue_vue_type_script_setup_true_lang.js +36 -36
  248. package/dist/src/components/shared/feedback/SAsyncState.vue.js +2 -2
  249. package/dist/src/components/shared/feedback/SAsyncState.vue_vue_type_script_setup_true_lang.js +70 -63
  250. package/dist/src/components/shared/navigation/SBottomNav.vue.d.ts +2 -2
  251. package/dist/src/components/shared/navigation/SBottomNav.vue.js +2 -2
  252. package/dist/src/components/shared/navigation/SBottomNav.vue_vue_type_script_setup_true_lang.js +140 -129
  253. package/dist/src/components/shared/navigation/SBreadcrumbs.vue.d.ts +2 -2
  254. package/dist/src/components/shared/navigation/STabList.vue.d.ts +1 -1
  255. package/dist/src/components/shared/navigation/STabPanel.vue.d.ts +2 -2
  256. package/dist/src/components/shared/navigation/SWizardSteps.vue_vue_type_script_setup_true_lang.js +16 -16
  257. package/dist/src/components/shared/persona/SPersonaProjectPicker.vue.d.ts +2 -2
  258. package/dist/src/composables/useDialogOverlay.d.ts +21 -2
  259. package/dist/src/composables/useDialogOverlay.js +275 -44
  260. package/dist/src/composables/useFloatingPosition.d.ts +20 -0
  261. package/dist/src/composables/useFloatingPosition.js +129 -52
  262. package/dist/src/internal/fieldSurface.d.ts +3 -0
  263. package/dist/src/internal/fieldSurface.js +3 -2
  264. package/dist/src/internal/flatTree.d.ts +8 -0
  265. package/dist/src/internal/flatTree.js +23 -0
  266. package/dist/src/internal/focusNavigation.d.ts +5 -0
  267. package/dist/src/internal/focusNavigation.js +29 -16
  268. package/dist/src/internal/inertLease.d.ts +8 -0
  269. package/dist/src/internal/inertLease.js +33 -0
  270. package/dist/src/internal/layerStack.d.ts +52 -0
  271. package/dist/src/internal/layerStack.js +343 -60
  272. package/dist/src/internal/linkTarget.d.ts +7 -1
  273. package/dist/src/internal/linkTarget.js +11 -7
  274. package/dist/src/internal/nativeFocus.d.ts +4 -0
  275. package/dist/src/internal/nativeFocus.js +12 -0
  276. package/dist/src/internal/overlayHost.d.ts +18 -0
  277. package/dist/src/internal/overlayHost.js +18 -0
  278. package/dist/src/internal/overlayPortal.d.ts +17 -0
  279. package/dist/src/internal/overlayPortal.js +23 -0
  280. package/dist/src/internal/ownedAttrs.d.ts +13 -3
  281. package/dist/src/internal/ownedAttrs.js +8 -1
  282. package/dist/src/internal/runtimeContract.d.ts +2 -0
  283. package/dist/src/internal/runtimeContract.js +10 -5
  284. package/dist/src/internal/semanticSizing.d.ts +2 -2
  285. package/dist/src/internal/semanticSizing.js +2 -1
  286. package/dist/src/internal/useMenuLayer.d.ts +8 -4
  287. package/dist/src/internal/useMenuLayer.js +78 -49
  288. package/dist/src/internal/viewportModality.d.ts +27 -0
  289. package/dist/src/internal/viewportModality.js +132 -0
  290. package/dist/tailwind.css +3 -0
  291. package/dist/typography.LICENSE.txt +94 -0
  292. package/dist/typography.js +5105 -0
  293. package/docs/getting-started.md +39 -0
  294. package/docs/link-download.md +114 -0
  295. package/docs/listbox.md +129 -0
  296. package/docs/overlay-lifecycle.md +195 -0
  297. package/docs/public-api.md +335 -6
  298. package/docs/resize.md +158 -0
  299. package/docs/rich-document.md +442 -25
  300. package/docs/scroll-viewport.md +30 -10
  301. package/docs/theming.md +42 -8
  302. package/package.json +12 -4
  303. package/src/components/shared/_internal/SDialogSurface.css +213 -36
  304. package/src/components/shared/_internal/SMenuLayer.css +4 -0
  305. package/src/components/shared/containers/SOverlayHost.css +14 -0
  306. package/src/components/shared/containers/SPopover.css +8 -2
  307. package/src/components/shared/controls/SButton.css +4 -3
  308. package/src/components/shared/controls/SCheckbox.css +19 -7
  309. package/src/components/shared/controls/SField.css +6 -0
  310. package/src/components/shared/controls/SListbox.css +17 -0
  311. package/src/components/shared/controls/SMenuSurface.css +18 -4
  312. package/src/components/shared/controls/STextarea.css +42 -3
  313. package/src/components/shared/data-display/SControlledToastViewport.css +2 -10
  314. package/src/components/shared/data-display/SProgressBar.css +79 -0
  315. package/src/components/shared/data-display/SRichDocument.css +1 -0
  316. package/src/components/shared/data-display/SScrollViewport.css +17 -1
  317. package/src/components/shared/data-display/SStatus.css +8 -25
  318. package/src/components/shared/data-display/STable.css +0 -113
  319. package/src/components/shared/data-display/STooltip.css +3 -0
  320. package/src/components/shared/data-display/_internal/SRichBlockNode.css +11 -7
  321. package/src/components/shared/data-display/_internal/SRichDisclosure.css +16 -0
  322. package/src/components/shared/data-display/_internal/SRichImage.css +37 -0
  323. package/src/components/shared/data-display/_internal/STableCell.css +55 -0
  324. package/src/components/shared/data-display/_internal/STableFrame.css +37 -0
  325. package/src/components/shared/data-display/_internal/STableRow.css +12 -0
  326. package/src/components/shared/feedback/SAsyncState.css +0 -4
  327. package/src/styles/style.css +9 -5
  328. package/src/styles/tokens.css +30 -0
  329. package/dist/assets/src/components/layout/SDockRegion.vue_vue_type_style_index_0_scoped_2932631d_lang.css +0 -1
  330. package/dist/assets/src/components/shared/_internal/SDialogSurface.css_vue_type_style_index_0_src_d1b65adf_scoped_d1b65adf_lang.css +0 -2
  331. package/dist/assets/src/components/shared/_internal/SMenuLayer.css_vue_type_style_index_0_src_4913bbe1_scoped_4913bbe1_lang.css +0 -1
  332. package/dist/assets/src/components/shared/containers/SDrawer.css_vue_type_style_index_0_src_091d7325_scoped_091d7325_lang.css +0 -2
  333. package/dist/assets/src/components/shared/containers/SModal.css_vue_type_style_index_0_src_0dc51b74_scoped_0dc51b74_lang.css +0 -2
  334. package/dist/assets/src/components/shared/containers/SPopover.css_vue_type_style_index_0_src_deded766_scoped_deded766_lang.css +0 -2
  335. package/dist/assets/src/components/shared/containers/SSidebarSection.css_vue_type_style_index_0_src_96f51ac6_scoped_96f51ac6_lang.css +0 -2
  336. package/dist/assets/src/components/shared/controls/SButton.css_vue_type_style_index_0_src_a5d8f7e0_scoped_a5d8f7e0_lang.css +0 -2
  337. package/dist/assets/src/components/shared/controls/SCheckbox.css_vue_type_style_index_0_src_b20b27dd_scoped_b20b27dd_lang.css +0 -2
  338. package/dist/assets/src/components/shared/controls/SCombobox.css_vue_type_style_index_0_src_e3b4f580_scoped_e3b4f580_lang.css +0 -2
  339. package/dist/assets/src/components/shared/controls/SContextMenu.css_vue_type_style_index_0_src_00c91d39_scoped_00c91d39_lang.css +0 -1
  340. package/dist/assets/src/components/shared/controls/SField.css_vue_type_style_index_0_src_60628f96_scoped_60628f96_lang.css +0 -2
  341. package/dist/assets/src/components/shared/controls/SListbox.css_vue_type_style_index_0_src_24db4abb_scoped_24db4abb_lang.css +0 -2
  342. package/dist/assets/src/components/shared/controls/SMenuSurface.css_vue_type_style_index_0_src_ddcc5fbb_scoped_ddcc5fbb_lang.css +0 -2
  343. package/dist/assets/src/components/shared/controls/SSelect.css_vue_type_style_index_0_src_441648c9_scoped_441648c9_lang.css +0 -2
  344. package/dist/assets/src/components/shared/data-display/SControlledToastViewport.css_vue_type_style_index_0_src_5864b6c6_scoped_5864b6c6_lang.css +0 -2
  345. package/dist/assets/src/components/shared/data-display/SProgressBar.css_vue_type_style_index_0_src_9308293a_scoped_9308293a_lang.css +0 -2
  346. package/dist/assets/src/components/shared/data-display/SRichDocument.css_vue_type_style_index_0_src_d1afafc5_scoped_d1afafc5_lang.css +0 -2
  347. package/dist/assets/src/components/shared/data-display/SScrollViewport.css_vue_type_style_index_0_src_e5d11342_scoped_e5d11342_lang.css +0 -2
  348. package/dist/assets/src/components/shared/data-display/STable.css_vue_type_style_index_0_src_9955d482_scoped_9955d482_lang.css +0 -2
  349. package/dist/assets/src/components/shared/data-display/SVirtualList.css_vue_type_style_index_0_src_cee8c247_scoped_cee8c247_lang.css +0 -2
  350. package/dist/assets/src/components/shared/data-display/_internal/SRichBlockNode.css_vue_type_style_index_0_src_195d5c06_scoped_195d5c06_lang.css +0 -2
  351. package/dist/assets/src/components/shared/data-display/_internal/SRichDisclosure.css_vue_type_style_index_0_src_fa94e2ff_scoped_fa94e2ff_lang.css +0 -2
  352. package/dist/assets/src/components/shared/feedback/SAsyncState.css_vue_type_style_index_0_src_bfc28903_scoped_bfc28903_lang.css +0 -2
  353. package/src/components/shared/containers/SDrawer.css +0 -69
  354. package/src/components/shared/containers/SModal.css +0 -27
@@ -1,12 +1,16 @@
1
- import { mergeIdReferences as e, useOwnedAttrs as t } from "../../../internal/ownedAttrs.js";
2
- import { resolveOptionalDomId as n, validateBoolean as r, validateBoundedInteger as i, validateBoundedNumber as a, validateDomId as o, validateExactString as s } from "../../../internal/runtimeContract.js";
1
+ import { resolveOptionalDomId as e, validateBoolean as t, validateBoundedInteger as n, validateBoundedNumber as r, validateDomId as i, validateExactString as a } from "../../../internal/runtimeContract.js";
2
+ import { mergeIdReferences as o, useOwnedAttrs as s } from "../../../internal/ownedAttrs.js";
3
3
  import { useInteractiveLeafRegistration as c } from "../../../internal/passiveContentContract.js";
4
4
  import l from "./SField.vue.js";
5
- import { resolveFieldSurfaceBindings as ee } from "../../../internal/fieldSurface.js";
6
- import { resolveTextLengthConstraints as te } from "../../../internal/textLengthConstraints.js";
7
- import { computed as u, createBlock as ne, createElementVNode as re, defineComponent as d, mergeProps as ie, nextTick as f, onBeforeUnmount as ae, onMounted as oe, openBlock as se, ref as p, unref as m, useId as ce, watch as h, withCtx as le } from "vue";
5
+ import { resolveFieldSurfaceBindings as u } from "../../../internal/fieldSurface.js";
6
+ import { resolveTextLengthConstraints as d } from "../../../internal/textLengthConstraints.js";
7
+ import { computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, defineComponent as _, guardReactiveProps as ee, mergeProps as te, nextTick as v, normalizeProps as ne, onBeforeUnmount as re, onMounted as ie, onUpdated as ae, openBlock as y, ref as b, renderSlot as oe, unref as x, useId as se, useSlots as ce, watch as le, withCtx as ue } from "vue";
8
8
  //#region src/components/shared/controls/STextarea.vue?vue&type=script&setup=true&lang.ts
9
- var ue = [
9
+ var de = [
10
+ "data-content-slots",
11
+ "data-appearance",
12
+ "data-size"
13
+ ], fe = [
10
14
  "id",
11
15
  "data-appearance",
12
16
  "data-size",
@@ -16,6 +20,7 @@ var ue = [
16
20
  "data-min-height",
17
21
  "data-max-height",
18
22
  "data-invalid",
23
+ "data-embedded",
19
24
  "value",
20
25
  "placeholder",
21
26
  "disabled",
@@ -27,12 +32,11 @@ var ue = [
27
32
  "aria-required",
28
33
  "aria-readonly",
29
34
  "aria-describedby",
30
- "aria-controls",
31
- "aria-activedescendant",
32
- "aria-autocomplete",
33
- "aria-haspopup",
34
35
  "rows"
35
- ], g = 100, _ = /*@__PURE__*/ d({
36
+ ], pe = {
37
+ key: 0,
38
+ class: "s-textarea__empty-content"
39
+ }, me = ["id"], he = 100, ge = /*@__PURE__*/ _({
36
40
  inheritAttrs: !1,
37
41
  __name: "STextarea",
38
42
  props: {
@@ -90,216 +94,305 @@ var ue = [
90
94
  "selection-change",
91
95
  "state-change"
92
96
  ],
93
- setup(d, { expose: _, emit: de }) {
94
- let fe = ["default", "ghost"], pe = [
97
+ setup(_, { expose: ge, emit: _e }) {
98
+ let ve = ["default", "ghost"], ye = [
95
99
  "sm",
96
100
  "md",
97
101
  "lg"
98
- ], v = {
102
+ ], be = {
99
103
  minimum: 1,
100
104
  maximum: 100
101
- }, y = {
105
+ }, xe = {
102
106
  minimum: 1,
103
107
  maximum: 4096
104
- }, me = [
108
+ }, Se = [
105
109
  "list",
106
110
  "both",
107
111
  "inline",
108
112
  "none"
109
- ], he = [
113
+ ], Ce = [
110
114
  "listbox",
111
115
  "grid",
112
116
  "tree",
113
117
  "dialog"
114
- ], b = [
118
+ ], we = [
115
119
  "forward",
116
120
  "backward",
117
121
  "none"
118
- ], ge = [
122
+ ], Te = [
119
123
  "select",
120
124
  "start",
121
125
  "end",
122
126
  "preserve"
123
- ], x = d, S = de, C = t({
127
+ ], S = _, C = _e, w = ce(), T = s({
124
128
  component: "STextarea",
125
129
  owner: "native textarea"
126
130
  });
127
131
  c({ owner: "STextarea" });
128
- let _e = ce(), w = u(() => n("STextarea", "id", x.id, `s-textarea-${_e}`)), T = p(null), E = p(!1), D = null, O = null, k = null, A = null, j = !1, M = [], N = [], P = u(() => s("STextarea", "appearance", x.appearance, fe)), F = u(() => s("STextarea", "size", x.size, pe)), I = u(() => i("STextarea", "rows", x.rows, v)), L = u(() => te("STextarea", x.minLength, x.maxLength)), R = u(() => x.maxRows === void 0 ? void 0 : i("STextarea", "maxRows", x.maxRows, v)), z = u(() => x.minHeight === void 0 ? void 0 : a("STextarea", "minHeight", x.minHeight, y)), B = u(() => x.maxHeight === void 0 ? void 0 : a("STextarea", "maxHeight", x.maxHeight, y)), V = u(() => {
129
- if (x.suggestions === void 0) return;
130
- if (x.suggestions === null || typeof x.suggestions != "object" || Array.isArray(x.suggestions)) throw TypeError("STextarea: suggestions должен быть объектом. / STextarea: suggestions must be an object.");
131
- let e = x.suggestions.activeDescendant === void 0 ? void 0 : o("STextarea", "suggestions.activeDescendant", x.suggestions.activeDescendant);
132
+ let Ee = se(), E = f(() => e("STextarea", "id", S.id, `s-textarea-${Ee}`)), D = b(null), O = b(null), k = b(null), A = b(null), De = f(() => `${E.value}-helper-content`), j = b(!1), M = b(null), N = b(S.modelValue ?? ""), Oe = f(() => N.value.length === 0 && !j.value), P = null, F = null, I = null, ke = null, L = /* @__PURE__ */ new Map(), R = null, z = !1, B = !1, Ae = null, V = !1, H = [], U = [], W = f(() => a("STextarea", "appearance", S.appearance, ve)), je = f(() => a("STextarea", "size", S.size, ye)), G = f(() => n("STextarea", "rows", S.rows, be)), Me = f(() => d("STextarea", S.minLength, S.maxLength)), Ne = f(() => S.maxRows === void 0 ? void 0 : n("STextarea", "maxRows", S.maxRows, be)), Pe = f(() => S.minHeight === void 0 ? void 0 : r("STextarea", "minHeight", S.minHeight, xe)), Fe = f(() => S.maxHeight === void 0 ? void 0 : r("STextarea", "maxHeight", S.maxHeight, xe)), Ie = f(() => {
133
+ if (S.suggestions === void 0) return;
134
+ if (S.suggestions === null || typeof S.suggestions != "object" || Array.isArray(S.suggestions)) throw TypeError("STextarea: suggestions должен быть объектом. / STextarea: suggestions must be an object.");
135
+ let e = S.suggestions.activeDescendant === void 0 ? void 0 : i("STextarea", "suggestions.activeDescendant", S.suggestions.activeDescendant), n = S.suggestions.active === void 0 || t("STextarea", "suggestions.active", S.suggestions.active);
136
+ if (!n && e !== void 0) throw TypeError("STextarea: suggestions.activeDescendant недопустим при active=false. / STextarea: suggestions.activeDescendant is unavailable when active=false.");
132
137
  return {
133
- controls: o("STextarea", "suggestions.controls", x.suggestions.controls),
138
+ controls: i("STextarea", "suggestions.controls", S.suggestions.controls),
139
+ active: n,
134
140
  activeDescendant: e,
135
- autocomplete: s("STextarea", "suggestions.autocomplete", x.suggestions.autocomplete ?? "list", me),
136
- popupRole: s("STextarea", "suggestions.popupRole", x.suggestions.popupRole ?? "listbox", he)
141
+ autocomplete: a("STextarea", "suggestions.autocomplete", S.suggestions.autocomplete ?? "list", Se),
142
+ popupRole: a("STextarea", "suggestions.popupRole", S.suggestions.popupRole ?? "listbox", Ce)
137
143
  };
138
- }), H = u(() => {
139
- let e = r("STextarea", "autoResize", x.autoResize), t = R.value, n = z.value, i = B.value;
140
- if (!e && t !== void 0 && n === void 0 && i === void 0) throw TypeError(`STextarea: maxRows применяется только при autoResize=true; получено autoResize=false, maxRows=${t}. / STextarea: maxRows applies only when autoResize=true; received autoResize=false, maxRows=${t}.`);
141
- if (!e && (n !== void 0 || i !== void 0)) throw TypeError("STextarea: maxRows/minHeight/maxHeight применяются только при autoResize=true. / STextarea: maxRows/minHeight/maxHeight apply only when autoResize=true.");
142
- if (t !== void 0 && i !== void 0) throw TypeError("STextarea: maxRows и maxHeight являются альтернативными ограничителями; укажите один. / STextarea: maxRows and maxHeight are alternative bounds; provide one.");
143
- if (n !== void 0 && i !== void 0 && i < n) throw TypeError(`STextarea: maxHeight не может быть меньше minHeight; получено minHeight=${n}, maxHeight=${i}. / STextarea: maxHeight cannot be below minHeight; received minHeight=${n}, maxHeight=${i}.`);
144
- if (t !== void 0 && t < I.value) throw TypeError(`STextarea: maxRows не может быть меньше rows; получено rows=${I.value}, maxRows=${t}. / STextarea: maxRows cannot be less than rows; received rows=${I.value}, maxRows=${t}.`);
144
+ });
145
+ function Le() {
146
+ let e = T.bindings(), t = T.string("aria-controls"), n = t === void 0 ? void 0 : i("STextarea", "aria-controls", t), r = e["aria-haspopup"], a = Ie.value, s = a?.active === !0;
147
+ return {
148
+ "aria-controls": o(n, a?.controls),
149
+ "aria-haspopup": s ? a?.popupRole : r,
150
+ "aria-activedescendant": s ? a?.activeDescendant : void 0,
151
+ "aria-autocomplete": s ? a?.autocomplete : void 0
152
+ };
153
+ }
154
+ let Re = f(() => {
155
+ let e = t("STextarea", "autoResize", S.autoResize), n = Ne.value, r = Pe.value, i = Fe.value;
156
+ if (!e && n !== void 0 && r === void 0 && i === void 0) throw TypeError(`STextarea: maxRows применяется только при autoResize=true; получено autoResize=false, maxRows=${n}. / STextarea: maxRows applies only when autoResize=true; received autoResize=false, maxRows=${n}.`);
157
+ if (!e && (r !== void 0 || i !== void 0)) throw TypeError("STextarea: maxRows/minHeight/maxHeight применяются только при autoResize=true. / STextarea: maxRows/minHeight/maxHeight apply only when autoResize=true.");
158
+ if (n !== void 0 && i !== void 0) throw TypeError("STextarea: maxRows и maxHeight являются альтернативными ограничителями; укажите один. / STextarea: maxRows and maxHeight are alternative bounds; provide one.");
159
+ if (r !== void 0 && i !== void 0 && i < r) throw TypeError(`STextarea: maxHeight не может быть меньше minHeight; получено minHeight=${r}, maxHeight=${i}. / STextarea: maxHeight cannot be below minHeight; received minHeight=${r}, maxHeight=${i}.`);
160
+ if (n !== void 0 && n < G.value) throw TypeError(`STextarea: maxRows не может быть меньше rows; получено rows=${G.value}, maxRows=${n}. / STextarea: maxRows cannot be less than rows; received rows=${G.value}, maxRows=${n}.`);
145
161
  return e ? {
146
162
  mode: "content",
147
163
  autoResize: !0,
148
- ...t === void 0 ? {} : { maxRows: t },
149
- ...n === void 0 ? {} : { minHeight: n },
164
+ ...n === void 0 ? {} : { maxRows: n },
165
+ ...r === void 0 ? {} : { minHeight: r },
150
166
  ...i === void 0 ? {} : { maxHeight: i }
151
167
  } : {
152
168
  mode: "fixed",
153
169
  autoResize: !1
154
170
  };
155
171
  });
156
- function ve(e) {
157
- return ee("STextarea", {
172
+ function ze(e) {
173
+ return u("STextarea", {
158
174
  kind: "textarea",
159
- appearance: P.value === "default" ? "field" : "ghost",
175
+ appearance: K() ? "embedded" : W.value === "default" ? "field" : "ghost",
160
176
  invalid: e.invalid,
161
177
  disabled: e.disabled,
162
178
  readonly: e.readonly
163
179
  });
164
180
  }
165
- function U(e, t) {
166
- let n = Z(e.selectionStart, e.value.length, `${t} selectionStart`), r = Z(e.selectionEnd, e.value.length, `${t} selectionEnd`);
181
+ function K() {
182
+ return !!(w["empty-content"] || w["helper-content"]);
183
+ }
184
+ function Be(e) {
185
+ return u("STextarea", {
186
+ kind: "textarea",
187
+ appearance: W.value === "default" ? "field" : "ghost",
188
+ invalid: e.invalid,
189
+ disabled: e.disabled,
190
+ readonly: e.readonly,
191
+ composite: !0
192
+ });
193
+ }
194
+ function Ve(e) {
195
+ return {
196
+ empty: Oe.value,
197
+ invalid: e.invalid,
198
+ disabled: e.disabled,
199
+ readonly: e.readonly,
200
+ composing: j.value,
201
+ hasMultipleVisualLines: M.value,
202
+ focus: tt
203
+ };
204
+ }
205
+ function q(e, t) {
206
+ let n = $(e.selectionStart, e.value.length, `${t} selectionStart`), r = $(e.selectionEnd, e.value.length, `${t} selectionEnd`);
167
207
  if (r < n) throw RangeError(`STextarea: ${t} selectionEnd=${r} is below selectionStart=${n}.`);
168
208
  return {
169
209
  start: n,
170
210
  end: r,
171
- direction: s("STextarea", `${t} selectionDirection`, e.selectionDirection ?? "none", b)
211
+ direction: a("STextarea", `${t} selectionDirection`, e.selectionDirection ?? "none", we)
172
212
  };
173
213
  }
174
- function W(e) {
175
- let t = U(e, "state-change");
176
- S("state-change", {
214
+ function J(e) {
215
+ let t = q(e, "state-change");
216
+ C("state-change", {
177
217
  text: e.value,
178
218
  cursor: t.start,
179
219
  selection: t,
180
- composing: E.value
220
+ composing: j.value
181
221
  });
182
222
  }
183
- function ye(e) {
184
- let t = e.target, n = e instanceof InputEvent ? e.inputType : "";
185
- !j && n !== "historyUndo" && n !== "historyRedo" && N.splice(0), S("update:modelValue", t.value), W(t), f(Y);
223
+ function He(e) {
224
+ let t = e.target;
225
+ M.value = null, N.value = t.value;
226
+ let n = e instanceof InputEvent ? e.inputType : "";
227
+ !V && n !== "historyUndo" && n !== "historyRedo" && U.splice(0), C("update:modelValue", t.value), J(t), v(Z);
186
228
  }
187
- function G(e, t) {
229
+ function Ue(e, t) {
188
230
  return {
189
231
  text: e.value,
190
- selection: U(e, t)
232
+ selection: q(e, t)
191
233
  };
192
234
  }
193
- function K(e, t) {
194
- e.value = t.text, e.focus(), e.setSelectionRange(t.selection.start, t.selection.end, t.selection.direction), S("update:modelValue", t.text), S("selection-change", t.selection), W(e), f(Y);
235
+ function We(e, t) {
236
+ e.value = t.text, N.value = t.text, e.focus(), e.setSelectionRange(t.selection.start, t.selection.end, t.selection.direction), C("update:modelValue", t.text), C("selection-change", t.selection), J(e), v(Z);
195
237
  }
196
- function q(e, t) {
238
+ function Ge(e, t) {
197
239
  return e.value === t.text;
198
240
  }
199
- function be(e, t) {
241
+ function Ke(e, t) {
200
242
  if (e.altKey || !(e.metaKey || e.ctrlKey)) return !1;
201
243
  let n = e.key.toLowerCase(), r = n === "z" && !e.shiftKey, i = n === "z" && e.shiftKey || n === "y" && !e.shiftKey;
202
244
  if (!r && !i) return !1;
203
- let a = r ? M : N, o = a[a.length - 1], s = r ? o?.after : o?.before;
204
- return !o || !s || !q(t, s) ? !1 : (e.preventDefault(), a.pop(), r ? (N.push(o), K(t, o.before)) : (M.push(o), K(t, o.after)), !0);
245
+ let a = r ? H : U, o = a[a.length - 1], s = r ? o?.after : o?.before;
246
+ return !o || !s || !Ge(t, s) ? !1 : (e.preventDefault(), a.pop(), r ? (U.push(o), We(t, o.before)) : (H.push(o), We(t, o.after)), !0);
205
247
  }
206
- function xe(e) {
207
- S("keydown", e), !(e.defaultPrevented || E.value || x.disabled || x.readonly) && be(e, e.currentTarget);
248
+ function qe(e) {
249
+ C("keydown", e), !(e.defaultPrevented || j.value || S.disabled || S.readonly) && Ke(e, e.currentTarget);
208
250
  }
209
- function Se(e) {
210
- S("keyup", e), W(e.currentTarget);
251
+ function Je(e) {
252
+ C("keyup", e), J(e.currentTarget);
211
253
  }
212
- function Ce(e) {
213
- S("click", e), W(e.currentTarget);
254
+ function Ye(e) {
255
+ C("click", e), J(e.currentTarget);
214
256
  }
215
- function we(e) {
216
- let t = e.currentTarget, n = U(t, "selection-change");
217
- S("selection-change", n), W(t);
257
+ function Xe(e) {
258
+ let t = e.currentTarget, n = q(t, "selection-change");
259
+ C("selection-change", n), J(t);
218
260
  }
219
- function Te(e) {
220
- E.value = !0, S("compositionstart", e), W(e.currentTarget);
261
+ function Ze(e) {
262
+ j.value = !0, M.value = null, C("compositionstart", e), J(e.currentTarget), v(Z);
221
263
  }
222
- function Ee(e) {
223
- S("compositionupdate", e), W(e.currentTarget);
264
+ function Qe(e) {
265
+ M.value = null, C("compositionupdate", e), J(e.currentTarget), v(Z);
224
266
  }
225
- function De(e) {
226
- E.value = !1, S("compositionend", e), W(e.currentTarget), Y();
267
+ function $e(e) {
268
+ j.value = !1, M.value = null, N.value = e.currentTarget.value, C("compositionend", e), J(e.currentTarget), Z();
227
269
  }
228
- function J() {
229
- let e = T.value, t = H.value;
230
- if (t.mode === "fixed" || !e || e.scrollHeight === 0) return;
231
- let n = window.getComputedStyle(e), r = Number.parseFloat(n.lineHeight) || Number.parseFloat(n.fontSize) * 1.5, i = Number.parseFloat(n.paddingTop) || 0, a = Number.parseFloat(n.paddingBottom) || 0, o = I.value * r + i + a, s = t.minHeight ?? o, c = t.maxHeight ?? (t.maxRows === void 0 ? 0 : t.maxRows * r + i + a);
232
- if (c > 0 && c < s) throw RangeError(`STextarea: вычисленный maxHeight=${c} меньше minimumHeight=${s}. / STextarea: resolved maxHeight=${c} is below minimumHeight=${s}.`);
233
- if (x.disabled || x.modelValue === null || x.modelValue.length === 0) {
234
- e.style.height = `${s}px`, e.style.overflowY = "hidden";
270
+ function et(e, t) {
271
+ if (!e.isConnected || e.getBoundingClientRect().width <= 0 || e.clientWidth <= 0) {
272
+ M.value = null;
235
273
  return;
236
274
  }
237
- e.style.height = "auto";
238
- let l = e.scrollHeight;
239
- if (c > 0 && l > c) {
240
- e.style.height = `${c}px`, e.style.overflowY = "auto";
275
+ if (e.value.length === 0) {
276
+ M.value = !1;
241
277
  return;
242
278
  }
243
- e.style.height = `${Math.max(s, l)}px`, e.style.overflowY = "hidden";
279
+ let n = Number.parseFloat(t.lineHeight), r = X(t.paddingTop), i = X(t.paddingBottom);
280
+ if (!Number.isFinite(n) || n <= 0) throw RangeError(`STextarea: native lineHeight=${JSON.stringify(t.lineHeight)} must resolve to a positive pixel value for visual-line measurement.`);
281
+ let a = n + 1 + (t.boxSizing === "border-box" ? r + i + X(t.borderTopWidth) + X(t.borderBottomWidth) : 0), o = [
282
+ "height",
283
+ "min-height",
284
+ "max-height"
285
+ ].map((t) => ({
286
+ property: t,
287
+ value: e.style.getPropertyValue(t),
288
+ priority: e.style.getPropertyPriority(t)
289
+ })), s = e.scrollTop, c = e.scrollLeft;
290
+ try {
291
+ e.style.setProperty("height", `${a}px`, "important"), e.style.setProperty("min-height", "0px", "important"), e.style.setProperty("max-height", "none", "important");
292
+ let t = e.scrollHeight - r - i;
293
+ M.value = t > n * 1.5;
294
+ } finally {
295
+ for (let { property: t, value: n, priority: r } of o) n.length === 0 ? e.style.removeProperty(t) : e.style.setProperty(t, n, r);
296
+ e.getBoundingClientRect(), e.scrollTop = s, e.scrollLeft = c;
297
+ }
244
298
  }
245
299
  function Y() {
246
- A === null && H.value.mode !== "fixed" && (A = window.requestAnimationFrame(() => {
247
- A = null, J();
300
+ let e = D.value, t = Re.value;
301
+ if (!e) return;
302
+ let n = window.getComputedStyle(e);
303
+ if (et(e, n), t.mode === "fixed" || e.scrollHeight === 0) return;
304
+ let r = Number.parseFloat(n.lineHeight) || Number.parseFloat(n.fontSize) * 1.5, i = Number.parseFloat(n.paddingTop) || 0, a = Number.parseFloat(n.paddingBottom) || 0, o = G.value * r + i + a, s = O.value;
305
+ if (s && K()) {
306
+ let n = window.getComputedStyle(s), c = [k.value, A.value].filter((e) => e !== null), l = X(n.paddingTop) + X(n.paddingBottom) + X(n.borderTopWidth) + X(n.borderBottomWidth) + c.length * X(n.rowGap), u = l + c.reduce((e, t) => e + t.scrollHeight, 0), d = t.minHeight ?? o + u, f = t.maxHeight ?? (t.maxRows === void 0 ? 0 : t.maxRows * r + i + a + u), p = r + i + a;
307
+ if (f > 0 && f < Math.max(d, l + p)) throw RangeError(`STextarea: maxHeight=${f} не вмещает minimumHeight=${d} и редактируемую строку с surface chrome=${l}. / STextarea: maxHeight=${f} cannot fit minimumHeight=${d} and an editable line with surface chrome=${l}.`);
308
+ e.style.height = "auto";
309
+ let m = S.disabled || e.value.length === 0 ? o : e.scrollHeight, h = Math.max(d, m + u), g = f > 0 ? Math.min(f, h) : h, _ = Math.max(p, g - u);
310
+ s.style.height = `${g}px`, e.style.height = `${_}px`, e.style.overflowY = m > _ ? "auto" : "hidden";
311
+ return;
312
+ }
313
+ let c = t.minHeight ?? o, l = t.maxHeight ?? (t.maxRows === void 0 ? 0 : t.maxRows * r + i + a);
314
+ if (l > 0 && l < c) throw RangeError(`STextarea: вычисленный maxHeight=${l} меньше minimumHeight=${c}. / STextarea: resolved maxHeight=${l} is below minimumHeight=${c}.`);
315
+ if (S.disabled || S.modelValue === null || S.modelValue.length === 0) {
316
+ e.style.height = `${c}px`, e.style.overflowY = "hidden";
317
+ return;
318
+ }
319
+ e.style.height = "auto";
320
+ let u = e.scrollHeight;
321
+ if (l > 0 && u > l) {
322
+ e.style.height = `${l}px`, e.style.overflowY = "auto";
323
+ return;
324
+ }
325
+ e.style.height = `${Math.max(c, u)}px`, e.style.overflowY = "hidden";
326
+ }
327
+ function X(e) {
328
+ return Number.parseFloat(e) || 0;
329
+ }
330
+ function Z() {
331
+ z && !B && R === null && (R = window.requestAnimationFrame(() => {
332
+ R = null, z && !B && Y();
248
333
  }));
249
334
  }
250
- function Oe() {
251
- T.value?.focus();
335
+ function tt() {
336
+ D.value?.focus();
252
337
  }
253
- function X(e) {
254
- let t = T.value;
255
- if (!t) throw Error(`STextarea: textarea не готова для ${e}; дождитесь mount. / STextarea: textarea is not ready for ${e}; wait for mount.`);
338
+ function Q(e) {
339
+ let t = D.value;
340
+ if (!t || B) throw Error(`STextarea: textarea не готова для ${e}; дождитесь mount. / STextarea: textarea is not ready for ${e}; wait for mount.`);
256
341
  return t;
257
342
  }
258
- function Z(e, t, n) {
259
- return i("STextarea", n, e, {
343
+ function $(e, t, r) {
344
+ return n("STextarea", r, e, {
260
345
  minimum: 0,
261
346
  maximum: t
262
347
  });
263
348
  }
264
- function ke() {
265
- let e = X("getSelectionOffset");
266
- return Z(e.selectionStart, e.value.length, "getSelectionOffset");
349
+ function nt() {
350
+ let e = Q("getSelectionOffset");
351
+ return $(e.selectionStart, e.value.length, "getSelectionOffset");
267
352
  }
268
- function Ae() {
269
- return U(X("getSelection"), "getSelection");
353
+ function rt() {
354
+ return q(Q("getSelection"), "getSelection");
270
355
  }
271
- function Q(e, t, n) {
356
+ function it(e, t, n) {
272
357
  if (typeof e != "object" || !e || Array.isArray(e)) throw TypeError(`STextarea: ${n} должен быть selection object. / STextarea: ${n} must be a selection object.`);
273
- let r = Z(e.start, t, `${n}.start`), i = Z(e.end, t, `${n}.end`);
358
+ let r = $(e.start, t, `${n}.start`), i = $(e.end, t, `${n}.end`);
274
359
  if (i < r) throw RangeError(`STextarea: ${n}.end=${i} меньше ${n}.start=${r}.`);
275
360
  return {
276
361
  start: r,
277
362
  end: i,
278
- direction: s("STextarea", `${n}.direction`, e.direction, b)
363
+ direction: a("STextarea", `${n}.direction`, e.direction, we)
279
364
  };
280
365
  }
281
- function je(e, t = !0) {
282
- let n = X("setSelection"), r = Q(e, n.value.length, "setSelection");
283
- t && n.focus(), n.setSelectionRange(r.start, r.end, r.direction), S("selection-change", r), W(n);
366
+ function at(e, t = !0) {
367
+ let n = Q("setSelection"), r = it(e, n.value.length, "setSelection");
368
+ t && n.focus(), n.setSelectionRange(r.start, r.end, r.direction), C("selection-change", r), J(n);
284
369
  }
285
- function Me(e) {
286
- let t = X("setSelectionOffset"), n = Z(e, t.value.length, "setSelectionOffset");
370
+ function ot(e = !0) {
371
+ let n = t("STextarea", "selectAll.focusOwner", e);
372
+ at({
373
+ start: 0,
374
+ end: Q("selectAll").value.length,
375
+ direction: "forward"
376
+ }, n);
377
+ }
378
+ function st(e) {
379
+ let t = Q("setSelectionOffset"), n = $(e, t.value.length, "setSelectionOffset");
287
380
  t.focus(), t.setSelectionRange(n, n);
288
381
  }
289
- function $(e, t = {}) {
290
- let n = X("replaceSelection");
291
- if (x.disabled || x.readonly) throw Error("STextarea: replaceSelection недоступен для disabled/readonly поля. / STextarea: replaceSelection is unavailable for a disabled/readonly field.");
292
- if (E.value) throw Error("STextarea: replaceSelection недоступен во время IME composition. / STextarea: replaceSelection is unavailable during IME composition.");
382
+ function ct(e, t = {}) {
383
+ let n = Q("replaceSelection");
384
+ if (S.disabled || S.readonly) throw Error("STextarea: replaceSelection недоступен для disabled/readonly поля. / STextarea: replaceSelection is unavailable for a disabled/readonly field.");
385
+ if (j.value) throw Error("STextarea: replaceSelection недоступен во время IME composition. / STextarea: replaceSelection is unavailable during IME composition.");
293
386
  if (typeof e != "string") throw TypeError("STextarea: replaceSelection text должен быть строкой. / STextarea: replaceSelection text must be a string.");
294
- let r = t.selection === void 0 ? U(n, "replaceSelection") : Q(t.selection, n.value.length, "replaceSelection.selection"), i = s("STextarea", "replaceSelection.selectionMode", t.selectionMode ?? "end", ge);
387
+ let r = t.selection === void 0 ? q(n, "replaceSelection") : it(t.selection, n.value.length, "replaceSelection.selection"), i = a("STextarea", "replaceSelection.selectionMode", t.selectionMode ?? "end", Te);
295
388
  (t.focus ?? !0) && n.focus();
296
- let a = G(n, "replaceSelection before");
389
+ let o = Ue(n, "replaceSelection before");
297
390
  n.setRangeText(e, r.start, r.end, i);
298
- let o = G(n, "replaceSelection after");
299
- M.push({
300
- before: a,
301
- after: o
302
- }), M.length > g && M.shift(), N.splice(0), j = !0;
391
+ let s = Ue(n, "replaceSelection after");
392
+ H.push({
393
+ before: o,
394
+ after: s
395
+ }), H.length > he && H.shift(), U.splice(0), V = !0;
303
396
  try {
304
397
  n.dispatchEvent(new InputEvent("input", {
305
398
  bubbles: !0,
@@ -308,106 +401,152 @@ var ue = [
308
401
  inputType: "insertReplacementText"
309
402
  }));
310
403
  } finally {
311
- j = !1;
404
+ V = !1;
312
405
  }
313
- S("selection-change", o.selection);
314
- let c = o.selection;
406
+ C("selection-change", s.selection);
407
+ let c = s.selection;
315
408
  return {
316
409
  text: n.value,
317
410
  cursor: c.start,
318
411
  selection: c,
319
- composing: E.value
412
+ composing: j.value
320
413
  };
321
414
  }
322
- function Ne() {
323
- x.disabled || x.readonly || $("\n");
324
- }
325
- return _({
326
- focus: Oe,
327
- getSelection: Ae,
328
- getSelectionOffset: ke,
329
- insertSoftLineBreak: Ne,
330
- replaceSelection: $,
331
- resize: J,
332
- setSelection: je,
333
- setSelectionOffset: Me
334
- }), oe(() => {
335
- J(), O = T.value?.parentElement ?? null, typeof ResizeObserver < "u" && O && (D = new ResizeObserver((e) => {
336
- let t = e.find((e) => e.target === O);
337
- if (!t) return;
338
- let n = t.contentRect.width;
339
- n !== k && (k = n, Y());
340
- }), D.observe(O));
341
- }), h(() => [
342
- x.modelValue,
343
- x.disabled,
344
- x.rows,
345
- x.maxRows,
346
- x.minHeight,
347
- x.maxHeight
415
+ function lt() {
416
+ S.disabled || S.readonly || ct("\n");
417
+ }
418
+ ge({
419
+ focus: tt,
420
+ getSelection: rt,
421
+ getSelectionOffset: nt,
422
+ insertSoftLineBreak: lt,
423
+ replaceSelection: ct,
424
+ resize: Y,
425
+ selectAll: ot,
426
+ setSelection: at,
427
+ setSelectionOffset: st
428
+ }), ie(() => {
429
+ z = !0, Y();
430
+ let e = D.value, t = document.fonts;
431
+ t && (Ae = t, t.addEventListener("loadingdone", Z), t.ready.then(Z)), F = K() ? O.value : e?.parentElement?.parentElement ?? null, typeof ResizeObserver < "u" && F && (P = new ResizeObserver((e) => {
432
+ let t = e.find((e) => e.target === F), n = !1;
433
+ t && t.contentRect.width !== I && (I = t.contentRect.width, n = !0);
434
+ let r = e.find((e) => e.target === D.value);
435
+ r && r.contentRect.width !== ke && (ke = r.contentRect.width, n = !0);
436
+ for (let t of e) {
437
+ if (!(t.target instanceof HTMLElement) || !L.has(t.target)) continue;
438
+ let e = t.contentRect.height;
439
+ e !== L.get(t.target) && (L.set(t.target, e), n = !0);
440
+ }
441
+ n && Z();
442
+ }), P.observe(F), e && e !== F && P.observe(e), ut());
443
+ });
444
+ function ut() {
445
+ if (!P) return;
446
+ let e = [k.value, A.value].filter((e) => e !== null);
447
+ for (let t of L.keys()) e.includes(t) || (P.unobserve(t), L.delete(t));
448
+ for (let t of e) L.has(t) || (L.set(t, t.getBoundingClientRect().height), P.observe(t));
449
+ }
450
+ return ae(() => {
451
+ let e = K() ? O.value : D.value?.parentElement?.parentElement ?? null;
452
+ P && e && e !== F && (F && P.unobserve(F), F = e, I = null, P.observe(e)), ut(), K() && Z();
453
+ }), le(() => [
454
+ S.modelValue,
455
+ S.disabled,
456
+ S.rows,
457
+ S.maxRows,
458
+ S.minHeight,
459
+ S.maxHeight,
460
+ S.autoResize,
461
+ S.size,
462
+ S.appearance,
463
+ S.monospace
348
464
  ], () => {
349
- f(Y);
350
- }), h(() => x.modelValue, (e) => {
351
- let t = T.value;
352
- t && t.value !== (e ?? "") && (M.splice(0), N.splice(0));
353
- }), ae(() => {
354
- A !== null && window.cancelAnimationFrame(A), D?.disconnect(), D = null, O = null, M.splice(0), N.splice(0);
355
- }), (t, n) => (se(), ne(l, {
356
- "control-id": w.value,
357
- label: d.label,
358
- required: d.required,
359
- "help-text": d.helpText,
360
- "error-message": d.errorMessage,
361
- invalid: d.invalid,
362
- disabled: d.disabled,
363
- readonly: d.readonly,
364
- fill: P.value === "ghost" ? "container" : "content"
465
+ M.value = null, v(Z);
466
+ }), le(() => S.modelValue, (e) => {
467
+ N.value = e ?? "";
468
+ let t = D.value;
469
+ t && t.value !== (e ?? "") && (H.splice(0), U.splice(0));
470
+ }), re(() => {
471
+ z = !1, B = !0, M.value = null, R !== null && window.cancelAnimationFrame(R), R = null, Ae?.removeEventListener("loadingdone", Z), Ae = null, P?.disconnect(), P = null, F = null, ke = null, L.clear(), H.splice(0), U.splice(0);
472
+ }), (e, t) => (y(), p(l, {
473
+ "control-id": E.value,
474
+ label: _.label,
475
+ required: _.required,
476
+ "help-text": _.helpText,
477
+ "error-message": _.errorMessage,
478
+ invalid: _.invalid,
479
+ disabled: _.disabled,
480
+ readonly: _.readonly,
481
+ fill: W.value === "ghost" ? "container" : "content"
365
482
  }, {
366
- default: le((t) => [re("textarea", ie({
367
- ...m(C).bindings(),
368
- ...ve(t)
369
- }, {
370
- id: w.value,
371
- ref_key: "textareaRef",
372
- ref: T,
373
- class: "s-textarea",
374
- "data-appearance": P.value,
375
- "data-size": F.value,
376
- "data-monospace": d.monospace || void 0,
377
- "data-auto-resize": H.value.mode === "content" || void 0,
378
- "data-max-rows": R.value,
379
- "data-min-height": z.value,
380
- "data-max-height": B.value,
381
- "data-invalid": t.invalid || void 0,
382
- value: d.modelValue,
383
- placeholder: d.placeholder,
384
- disabled: t.disabled,
385
- readonly: t.readonly,
386
- required: t.required,
387
- minlength: L.value.minLength,
388
- maxlength: L.value.maxLength,
389
- "aria-invalid": t.invalid || void 0,
390
- "aria-required": t.required || void 0,
391
- "aria-readonly": t.readonly || void 0,
392
- "aria-describedby": m(e)(m(C).string("aria-describedby"), t.describedBy),
393
- "aria-controls": V.value?.controls,
394
- "aria-activedescendant": V.value?.activeDescendant,
395
- "aria-autocomplete": V.value?.autocomplete,
396
- "aria-haspopup": V.value?.popupRole,
397
- rows: I.value,
398
- onInput: ye,
399
- onKeydown: xe,
400
- onKeyup: Se,
401
- onClick: Ce,
402
- onFocus: n[0] ||= (e) => S("focus", e),
403
- onBlur: n[1] ||= (e) => S("blur", e),
404
- onSelect: we,
405
- onPaste: n[2] ||= (e) => S("paste", e),
406
- onCompositionstart: Te,
407
- onCompositionupdate: Ee,
408
- onCompositionend: De
409
- }), null, 16, ue)]),
410
- _: 1
483
+ default: ue((n) => [g("div", te({
484
+ ref_key: "surfaceRef",
485
+ ref: O
486
+ }, K() ? Be(n) : {}, {
487
+ class: "s-textarea__surface",
488
+ "data-content-slots": K() || void 0,
489
+ "data-appearance": K() ? W.value : void 0,
490
+ "data-size": K() ? je.value : void 0
491
+ }), [
492
+ g("textarea", te({
493
+ ...x(T).bindings(),
494
+ ...ze(n),
495
+ ...Le()
496
+ }, {
497
+ id: E.value,
498
+ ref_key: "textareaRef",
499
+ ref: D,
500
+ class: "s-textarea",
501
+ "data-appearance": W.value,
502
+ "data-size": je.value,
503
+ "data-monospace": _.monospace || void 0,
504
+ "data-auto-resize": Re.value.mode === "content" || void 0,
505
+ "data-max-rows": Ne.value,
506
+ "data-min-height": Pe.value,
507
+ "data-max-height": Fe.value,
508
+ "data-invalid": n.invalid || void 0,
509
+ "data-embedded": K() || void 0,
510
+ value: N.value,
511
+ placeholder: _.placeholder,
512
+ disabled: n.disabled,
513
+ readonly: n.readonly,
514
+ required: n.required,
515
+ minlength: Me.value.minLength,
516
+ maxlength: Me.value.maxLength,
517
+ "aria-invalid": n.invalid || void 0,
518
+ "aria-required": n.required || void 0,
519
+ "aria-readonly": n.readonly || void 0,
520
+ "aria-describedby": x(o)(x(T).string("aria-describedby"), n.describedBy, w["helper-content"] ? De.value : void 0),
521
+ rows: G.value,
522
+ onInput: He,
523
+ onKeydown: qe,
524
+ onKeyup: Je,
525
+ onClick: Ye,
526
+ onFocus: t[0] ||= (e) => C("focus", e),
527
+ onBlur: t[1] ||= (e) => C("blur", e),
528
+ onSelect: Xe,
529
+ onPaste: t[2] ||= (e) => C("paste", e),
530
+ onCompositionstart: Ze,
531
+ onCompositionupdate: Qe,
532
+ onCompositionend: $e
533
+ }), null, 16, fe),
534
+ w["empty-content"] && Oe.value ? (y(), h("div", pe, [g("div", {
535
+ ref_key: "emptyContentRef",
536
+ ref: k,
537
+ class: "s-textarea__supporting-content"
538
+ }, [oe(e.$slots, "empty-content", ne(ee(Ve(n))))], 512)])) : m("", !0),
539
+ w["helper-content"] ? (y(), h("div", {
540
+ key: 1,
541
+ id: De.value,
542
+ class: "s-textarea__helper-content"
543
+ }, [g("div", {
544
+ ref_key: "helperContentRef",
545
+ ref: A,
546
+ class: "s-textarea__supporting-content"
547
+ }, [oe(e.$slots, "helper-content", ne(ee(Ve(n))))], 512)], 8, me)) : m("", !0)
548
+ ], 16, de)]),
549
+ _: 3
411
550
  }, 8, [
412
551
  "control-id",
413
552
  "label",
@@ -422,4 +561,4 @@ var ue = [
422
561
  }
423
562
  });
424
563
  //#endregion
425
- export { _ as default };
564
+ export { ge as default };