@pgcorp/ui-kit 0.12.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 (334) hide show
  1. package/README.md +787 -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/SMenuItem.css_vue_type_style_index_0_src_af485607_scoped_af485607_lang.css +2 -0
  8. package/dist/assets/src/components/shared/_internal/SMenuLayer.css_vue_type_style_index_0_src_e478164c_scoped_e478164c_lang.css +1 -0
  9. package/dist/assets/src/components/shared/containers/{SCollapsiblePanel.css_vue_type_style_index_0_src_4882f962_scoped_4882f962_lang.css → SCollapsiblePanel.css_vue_type_style_index_0_src_71824088_scoped_71824088_lang.css} +1 -1
  10. package/dist/assets/src/components/shared/containers/SDrawer.css_vue_type_style_index_0_src_61cf20dd_scoped_61cf20dd_lang.css +2 -0
  11. package/dist/assets/src/components/shared/containers/{SModal.css_vue_type_style_index_0_src_23373daf_scoped_23373daf_lang.css → SModal.css_vue_type_style_index_0_src_42e1bd5f_scoped_42e1bd5f_lang.css} +1 -1
  12. package/dist/assets/src/components/shared/containers/SOverlayHost.css_vue_type_style_index_0_src_8f9be94e_scoped_8f9be94e_lang.css +2 -0
  13. package/dist/assets/src/components/shared/containers/SPopover.css_vue_type_style_index_0_src_4091d007_scoped_4091d007_lang.css +2 -0
  14. 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
  15. package/dist/assets/src/components/shared/containers/SSidebarSection.css_vue_type_style_index_0_src_21f71ae8_scoped_21f71ae8_lang.css +2 -0
  16. package/dist/assets/src/components/shared/controls/SButton.css_vue_type_style_index_0_src_7a5acda9_scoped_7a5acda9_lang.css +2 -0
  17. 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
  18. package/dist/assets/src/components/shared/controls/SCombobox.css_vue_type_style_index_0_src_537f5744_scoped_537f5744_lang.css +2 -0
  19. package/dist/assets/src/components/shared/controls/SContextMenu.css_vue_type_style_index_0_src_03921269_scoped_03921269_lang.css +1 -0
  20. package/dist/assets/src/components/shared/controls/{SDropdownMenu.css_vue_type_style_index_0_src_b854a89e_scoped_b854a89e_lang.css → SDropdownMenu.css_vue_type_style_index_0_src_857e2649_scoped_857e2649_lang.css} +1 -1
  21. package/dist/assets/src/components/shared/controls/SField.css_vue_type_style_index_0_src_2d353c26_scoped_2d353c26_lang.css +2 -0
  22. package/dist/assets/src/components/shared/controls/{SInputText.css_vue_type_style_index_0_src_a9c5f1aa_scoped_a9c5f1aa_lang.css → SInputText.css_vue_type_style_index_0_src_023c25d0_scoped_023c25d0_lang.css} +1 -1
  23. 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
  24. 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
  25. package/dist/assets/src/components/shared/controls/SListbox.css_vue_type_style_index_0_src_50063f9f_scoped_50063f9f_lang.css +2 -0
  26. 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
  27. package/dist/assets/src/components/shared/controls/SMenuSurface.css_vue_type_style_index_0_src_84109ad9_scoped_84109ad9_lang.css +2 -0
  28. package/dist/assets/src/components/shared/controls/SSelect.css_vue_type_style_index_0_src_df3d6688_scoped_df3d6688_lang.css +2 -0
  29. package/dist/assets/src/components/shared/controls/STextarea.css_vue_type_style_index_0_src_true_lang.css +1 -1
  30. package/dist/assets/src/components/shared/data-display/SProgressBar.css_vue_type_style_index_0_src_cad721dd_scoped_cad721dd_lang.css +2 -0
  31. package/dist/assets/src/components/shared/data-display/SRichDocument.css_vue_type_style_index_0_src_8db085d5_scoped_8db085d5_lang.css +2 -0
  32. package/dist/assets/src/components/shared/data-display/SStatus.css_vue_type_style_index_0_src_3ce41a12_scoped_3ce41a12_lang.css +1 -1
  33. package/dist/assets/src/components/shared/data-display/STable.css_vue_type_style_index_0_src_b23b3d71_scoped_b23b3d71_lang.css +2 -0
  34. package/dist/assets/src/components/shared/data-display/STooltip.css_vue_type_style_index_0_src_true_lang.css +1 -1
  35. package/dist/assets/src/components/shared/data-display/SVirtualList.css_vue_type_style_index_0_src_9fe3ade0_scoped_9fe3ade0_lang.css +2 -0
  36. package/dist/assets/src/components/shared/data-display/_internal/SRichBlockNode.css_vue_type_style_index_0_src_eaae882d_scoped_eaae882d_lang.css +2 -0
  37. package/dist/assets/src/components/shared/data-display/_internal/SRichDisclosure.css_vue_type_style_index_0_src_1f0ffc97_scoped_1f0ffc97_lang.css +2 -0
  38. package/dist/assets/src/components/shared/data-display/_internal/SRichImage.css_vue_type_style_index_0_src_2f1c39a9_scoped_2f1c39a9_lang.css +2 -0
  39. 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
  40. package/dist/assets/src/components/shared/data-display/_internal/STableCell.css_vue_type_style_index_0_src_b829cbc6_scoped_b829cbc6_lang.css +2 -0
  41. package/dist/assets/src/components/shared/data-display/_internal/STableFrame.css_vue_type_style_index_0_src_52b5825e_scoped_52b5825e_lang.css +2 -0
  42. package/dist/assets/src/components/shared/data-display/_internal/STableRow.css_vue_type_style_index_0_src_1661f8b8_scoped_1661f8b8_lang.css +2 -0
  43. package/dist/assets/src/components/shared/feedback/SAsyncState.css_vue_type_style_index_0_src_8a291af7_scoped_8a291af7_lang.css +2 -0
  44. 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
  45. package/dist/index.d.ts +1 -0
  46. package/dist/index.js +3 -3
  47. package/dist/reference.css +4 -0
  48. package/dist/src/components/icons/_internal/generatedSputnigUiIconComponents.d.ts +15 -0
  49. package/dist/src/components/icons/_internal/generatedSputnigUiIconComponents.js +4 -4
  50. package/dist/src/components/icons/_internal/generatedSputnigUiIconMarkup.d.ts +46 -1
  51. package/dist/src/components/icons/_internal/generatedSputnigUiIconMarkup.js +260 -230
  52. package/dist/src/components/icons/sputnigUiIcons.d.ts +1 -1
  53. package/dist/src/components/icons/sputnigUiIcons.js +233 -218
  54. package/dist/src/components/layout/SAppShell.vue_vue_type_script_setup_true_lang.js +8 -8
  55. package/dist/src/components/layout/SDockRegion.vue.d.ts +18 -5
  56. package/dist/src/components/layout/SDockRegion.vue.js +2 -2
  57. package/dist/src/components/layout/SDockRegion.vue_vue_type_script_setup_true_lang.js +112 -64
  58. package/dist/src/components/layout/SResizeHandle.vue.d.ts +6 -3
  59. package/dist/src/components/layout/SResizeHandle.vue.js +2 -2
  60. package/dist/src/components/layout/SResizeHandle.vue_vue_type_script_setup_true_lang.js +125 -87
  61. package/dist/src/components/layout/SStack.vue.d.ts +1 -1
  62. package/dist/src/components/layout/SWorkbenchPanelShell.vue.d.ts +4 -4
  63. package/dist/src/components/layout/SWorkbenchPanelShell.vue.js +2 -2
  64. package/dist/src/components/layout/SWorkbenchPanelShell.vue_vue_type_script_setup_true_lang.js +62 -58
  65. package/dist/src/components/layout/types.d.ts +20 -0
  66. package/dist/src/components/shared/_internal/SDialogSurface.vue.js +2 -2
  67. package/dist/src/components/shared/_internal/SDialogSurface.vue_vue_type_script_setup_true_lang.js +64 -41
  68. package/dist/src/components/shared/_internal/SHeaderSurface.vue.d.ts +1 -1
  69. package/dist/src/components/shared/_internal/SListboxGroup.vue.d.ts +5 -0
  70. package/dist/src/components/shared/_internal/SListboxGroup.vue.js +2 -2
  71. package/dist/src/components/shared/_internal/SListboxGroup.vue_vue_type_script_setup_true_lang.js +33 -15
  72. package/dist/src/components/shared/_internal/SMenuItem.vue.js +2 -2
  73. package/dist/src/components/shared/_internal/SMenuItem.vue_vue_type_script_setup_true_lang.js +88 -76
  74. package/dist/src/components/shared/_internal/SMenuLayer.vue.d.ts +5 -1
  75. package/dist/src/components/shared/_internal/SMenuLayer.vue.js +2 -2
  76. package/dist/src/components/shared/_internal/SMenuLayer.vue_vue_type_script_setup_true_lang.js +64 -20
  77. package/dist/src/components/shared/_internal/dialogSurface.d.ts +16 -3
  78. package/dist/src/components/shared/_internal/dialogSurface.js +40 -23
  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 +1 -1
  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 +60 -58
  93. package/dist/src/components/shared/containers/SDrawer.vue.d.ts +12 -1
  94. package/dist/src/components/shared/containers/SDrawer.vue.js +2 -2
  95. package/dist/src/components/shared/containers/SDrawer.vue_vue_type_script_setup_true_lang.js +151 -53
  96. package/dist/src/components/shared/containers/SModal.vue.js +2 -2
  97. package/dist/src/components/shared/containers/SModal.vue_vue_type_script_setup_true_lang.js +79 -49
  98. package/dist/src/components/shared/containers/SOverlayHost.vue.d.ts +16 -0
  99. package/dist/src/components/shared/containers/SOverlayHost.vue.js +8 -0
  100. package/dist/src/components/shared/containers/SOverlayHost.vue_vue_type_script_setup_true_lang.js +65 -0
  101. package/dist/src/components/shared/containers/SPageHeader.vue.d.ts +1 -1
  102. package/dist/src/components/shared/containers/SPanel.vue.d.ts +1 -1
  103. package/dist/src/components/shared/containers/SPanel.vue_vue_type_script_setup_true_lang.js +7 -7
  104. package/dist/src/components/shared/containers/SPopover.vue.js +2 -2
  105. package/dist/src/components/shared/containers/SPopover.vue_vue_type_script_setup_true_lang.js +214 -145
  106. package/dist/src/components/shared/containers/SSidebarGroup.vue.js +2 -2
  107. package/dist/src/components/shared/containers/SSidebarGroup.vue_vue_type_script_setup_true_lang.js +30 -8
  108. package/dist/src/components/shared/containers/SSidebarSection.vue.js +2 -2
  109. package/dist/src/components/shared/containers/SSidebarSection.vue_vue_type_script_setup_true_lang.js +58 -45
  110. package/dist/src/components/shared/controls/SButton.vue.d.ts +7 -0
  111. package/dist/src/components/shared/controls/SButton.vue.js +2 -2
  112. package/dist/src/components/shared/controls/SButton.vue_vue_type_script_setup_true_lang.js +11 -5
  113. package/dist/src/components/shared/controls/SCheckbox.vue.d.ts +3 -0
  114. package/dist/src/components/shared/controls/SCheckbox.vue.js +2 -2
  115. package/dist/src/components/shared/controls/SCheckbox.vue_vue_type_script_setup_true_lang.js +45 -41
  116. package/dist/src/components/shared/controls/SCheckboxGroup.vue_vue_type_script_setup_true_lang.js +7 -7
  117. package/dist/src/components/shared/controls/SChoiceCards.vue_vue_type_script_setup_true_lang.js +4 -4
  118. package/dist/src/components/shared/controls/SColorSelect.vue_vue_type_script_setup_true_lang.js +6 -6
  119. package/dist/src/components/shared/controls/SCombobox.vue.js +2 -2
  120. package/dist/src/components/shared/controls/SCombobox.vue_vue_type_script_setup_true_lang.js +147 -132
  121. package/dist/src/components/shared/controls/SComboboxTrigger.vue.d.ts +2 -2
  122. package/dist/src/components/shared/controls/SContextMenu.vue.d.ts +11 -0
  123. package/dist/src/components/shared/controls/SContextMenu.vue.js +2 -2
  124. package/dist/src/components/shared/controls/SContextMenu.vue_vue_type_script_setup_true_lang.js +144 -59
  125. package/dist/src/components/shared/controls/SContextToggleButton.vue_vue_type_script_setup_true_lang.js +6 -6
  126. package/dist/src/components/shared/controls/SDragHandle.vue_vue_type_script_setup_true_lang.js +5 -5
  127. package/dist/src/components/shared/controls/SDropdownMenu.vue.d.ts +15 -4
  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 +114 -71
  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.d.ts +2 -2
  136. package/dist/src/components/shared/controls/SInputText.vue.js +2 -2
  137. package/dist/src/components/shared/controls/SInputText.vue_vue_type_script_setup_true_lang.js +33 -42
  138. package/dist/src/components/shared/controls/SInteractiveSurface.vue.js +2 -2
  139. package/dist/src/components/shared/controls/SInteractiveSurface.vue_vue_type_script_setup_true_lang.js +99 -74
  140. package/dist/src/components/shared/controls/SLink.d.ts +11 -1
  141. package/dist/src/components/shared/controls/SLink.vue.d.ts +17 -1
  142. package/dist/src/components/shared/controls/SLink.vue.js +2 -2
  143. package/dist/src/components/shared/controls/SLink.vue_vue_type_script_setup_true_lang.js +157 -62
  144. package/dist/src/components/shared/controls/SListbox.vue.d.ts +10 -1
  145. package/dist/src/components/shared/controls/SListbox.vue.js +2 -2
  146. package/dist/src/components/shared/controls/SListbox.vue_vue_type_script_setup_true_lang.js +371 -189
  147. package/dist/src/components/shared/controls/SListboxOption.vue.d.ts +6 -0
  148. package/dist/src/components/shared/controls/SListboxOption.vue.js +2 -2
  149. package/dist/src/components/shared/controls/SListboxOption.vue_vue_type_script_setup_true_lang.js +47 -34
  150. package/dist/src/components/shared/controls/SMenuSurface.vue.d.ts +2 -2
  151. package/dist/src/components/shared/controls/SMenuSurface.vue.js +2 -2
  152. package/dist/src/components/shared/controls/SMenuSurface.vue_vue_type_script_setup_true_lang.js +165 -117
  153. package/dist/src/components/shared/controls/SRange.vue_vue_type_script_setup_true_lang.js +12 -12
  154. package/dist/src/components/shared/controls/SSelect.vue.js +2 -2
  155. package/dist/src/components/shared/controls/SSelect.vue_vue_type_script_setup_true_lang.js +126 -116
  156. package/dist/src/components/shared/controls/STextarea.d.ts +1 -1
  157. package/dist/src/components/shared/controls/STextarea.vue.d.ts +32 -2
  158. package/dist/src/components/shared/controls/STextarea.vue_vue_type_script_setup_true_lang.js +346 -200
  159. package/dist/src/components/shared/controls/_internal/SInlineTokenSurface.vue_vue_type_script_lang.js +36 -36
  160. package/dist/src/components/shared/controls/menu.d.ts +9 -1
  161. package/dist/src/components/shared/controls/menu.js +43 -28
  162. package/dist/src/components/shared/data-display/SActionList.vue.d.ts +1 -1
  163. package/dist/src/components/shared/data-display/SActionListItem.vue.d.ts +4 -4
  164. package/dist/src/components/shared/data-display/SActionListItem.vue_vue_type_script_setup_true_lang.js +6 -6
  165. package/dist/src/components/shared/data-display/SBadge.vue.d.ts +1 -1
  166. package/dist/src/components/shared/data-display/SChart.vue_vue_type_script_setup_true_lang.js +89 -89
  167. package/dist/src/components/shared/data-display/SChip.vue.d.ts +1 -1
  168. package/dist/src/components/shared/data-display/SChip.vue_vue_type_script_setup_true_lang.js +7 -7
  169. package/dist/src/components/shared/data-display/SCodeBlock.vue_vue_type_script_setup_true_lang.js +19 -19
  170. package/dist/src/components/shared/data-display/SCodeEditor.vue_vue_type_script_setup_true_lang.js +37 -37
  171. package/dist/src/components/shared/data-display/SCodeSearchPanel.vue_vue_type_script_setup_true_lang.js +17 -17
  172. package/dist/src/components/shared/data-display/SCodeWorkspaceEditor.vue_vue_type_script_setup_true_lang.js +12 -12
  173. package/dist/src/components/shared/data-display/SControlledToastViewport.vue_vue_type_script_setup_true_lang.js +4 -4
  174. package/dist/src/components/shared/data-display/SDiffViewer.vue_vue_type_script_setup_true_lang.js +13 -13
  175. package/dist/src/components/shared/data-display/SDocBlock.vue_vue_type_script_setup_true_lang.js +12 -12
  176. package/dist/src/components/shared/data-display/SEmptyState.vue.d.ts +1 -1
  177. package/dist/src/components/shared/data-display/SEmptyState.vue_vue_type_script_setup_true_lang.js +4 -4
  178. package/dist/src/components/shared/data-display/SExpandableText.vue_vue_type_script_setup_true_lang.js +7 -7
  179. package/dist/src/components/shared/data-display/SKeyValueGrid.vue_vue_type_script_setup_true_lang.js +15 -15
  180. package/dist/src/components/shared/data-display/SLinkedSystemsList.vue_vue_type_script_setup_true_lang.js +17 -17
  181. package/dist/src/components/shared/data-display/SMessage.vue.d.ts +1 -1
  182. package/dist/src/components/shared/data-display/SMessage.vue_vue_type_script_setup_true_lang.js +9 -9
  183. package/dist/src/components/shared/data-display/SMetricCard.vue.d.ts +1 -1
  184. package/dist/src/components/shared/data-display/SProgressBar.vue.d.ts +22 -3
  185. package/dist/src/components/shared/data-display/SProgressBar.vue.js +2 -2
  186. package/dist/src/components/shared/data-display/SProgressBar.vue_vue_type_script_setup_true_lang.js +133 -47
  187. package/dist/src/components/shared/data-display/SProgressIndicator.vue_vue_type_script_setup_true_lang.js +4 -4
  188. package/dist/src/components/shared/data-display/SRichDocument.vue.js +2 -2
  189. package/dist/src/components/shared/data-display/SRichDocument.vue_vue_type_script_setup_true_lang.js +46 -23
  190. package/dist/src/components/shared/data-display/SScrollViewport.vue_vue_type_script_setup_true_lang.js +18 -18
  191. package/dist/src/components/shared/data-display/SSectionHeader.vue.d.ts +1 -1
  192. package/dist/src/components/shared/data-display/SStatus.vue_vue_type_script_setup_true_lang.js +4 -4
  193. package/dist/src/components/shared/data-display/STable.vue.js +2 -2
  194. package/dist/src/components/shared/data-display/STable.vue_vue_type_script_setup_true_lang.js +343 -322
  195. package/dist/src/components/shared/data-display/STooltip.vue.d.ts +2 -2
  196. package/dist/src/components/shared/data-display/STooltip.vue_vue_type_script_setup_true_lang.js +181 -154
  197. package/dist/src/components/shared/data-display/STooltipAnchor.vue_vue_type_script_setup_true_lang.js +5 -5
  198. package/dist/src/components/shared/data-display/STooltipTarget.vue_vue_type_script_setup_true_lang.js +4 -4
  199. package/dist/src/components/shared/data-display/SVirtualList.vue.js +2 -2
  200. package/dist/src/components/shared/data-display/SVirtualList.vue_vue_type_script_setup_true_lang.js +196 -246
  201. package/dist/src/components/shared/data-display/_internal/SRichBlockNode.vue.js +2 -2
  202. package/dist/src/components/shared/data-display/_internal/SRichBlockNode.vue_vue_type_script_setup_true_lang.js +242 -220
  203. package/dist/src/components/shared/data-display/_internal/SRichDisclosure.vue.d.ts +13 -2
  204. package/dist/src/components/shared/data-display/_internal/SRichDisclosure.vue.js +2 -2
  205. package/dist/src/components/shared/data-display/_internal/SRichDisclosure.vue_vue_type_script_setup_true_lang.js +67 -11
  206. package/dist/src/components/shared/data-display/_internal/SRichImage.vue.d.ts +11 -0
  207. package/dist/src/components/shared/data-display/_internal/SRichImage.vue.js +8 -0
  208. package/dist/src/components/shared/data-display/_internal/SRichImage.vue_vue_type_script_setup_true_lang.js +89 -0
  209. package/dist/src/components/shared/data-display/_internal/SRichInlineNode.vue.d.ts +3 -2
  210. package/dist/src/components/shared/data-display/_internal/SRichInlineNode.vue.js +2 -2
  211. package/dist/src/components/shared/data-display/_internal/SRichInlineNode.vue_vue_type_script_setup_true_lang.js +179 -125
  212. package/dist/src/components/shared/data-display/_internal/SRichMath.vue_vue_type_script_setup_true_lang.js +4 -4
  213. package/dist/src/components/shared/data-display/_internal/SRichTableNode.vue.d.ts +21 -0
  214. package/dist/src/components/shared/data-display/_internal/SRichTableNode.vue.js +5 -0
  215. package/dist/src/components/shared/data-display/_internal/SRichTableNode.vue_vue_type_script_setup_true_lang.js +150 -0
  216. package/dist/src/components/shared/data-display/_internal/STableCell.vue.d.ts +52 -0
  217. package/dist/src/components/shared/data-display/_internal/STableCell.vue.js +8 -0
  218. package/dist/src/components/shared/data-display/_internal/STableCell.vue_vue_type_script_setup_true_lang.js +148 -0
  219. package/dist/src/components/shared/data-display/_internal/STableFrame.vue.d.ts +42 -0
  220. package/dist/src/components/shared/data-display/_internal/STableFrame.vue.js +8 -0
  221. package/dist/src/components/shared/data-display/_internal/STableFrame.vue_vue_type_script_setup_true_lang.js +98 -0
  222. package/dist/src/components/shared/data-display/_internal/STableRow.vue.d.ts +43 -0
  223. package/dist/src/components/shared/data-display/_internal/STableRow.vue.js +8 -0
  224. package/dist/src/components/shared/data-display/_internal/STableRow.vue_vue_type_script_setup_true_lang.js +115 -0
  225. package/dist/src/components/shared/data-display/_internal/STableSection.vue.d.ts +28 -0
  226. package/dist/src/components/shared/data-display/_internal/STableSection.vue.js +5 -0
  227. package/dist/src/components/shared/data-display/_internal/STableSection.vue_vue_type_script_setup_true_lang.js +77 -0
  228. package/dist/src/components/shared/data-display/_internal/richDocumentMedia.d.ts +6 -0
  229. package/dist/src/components/shared/data-display/_internal/richDocumentMedia.js +136 -0
  230. package/dist/src/components/shared/data-display/_internal/richDocumentMetadata.d.ts +21 -0
  231. package/dist/src/components/shared/data-display/_internal/richDocumentMetadata.js +39 -0
  232. package/dist/src/components/shared/data-display/_internal/richDocumentNavigation.d.ts +30 -0
  233. package/dist/src/components/shared/data-display/_internal/richDocumentNavigation.js +88 -0
  234. package/dist/src/components/shared/data-display/_internal/richDocumentTableValidation.d.ts +9 -0
  235. package/dist/src/components/shared/data-display/_internal/richDocumentTableValidation.js +240 -0
  236. package/dist/src/components/shared/data-display/_internal/richDocumentTraversal.d.ts +15 -0
  237. package/dist/src/components/shared/data-display/_internal/richDocumentTraversal.js +61 -0
  238. package/dist/src/components/shared/data-display/_internal/richDocumentTypes.d.ts +466 -0
  239. package/dist/src/components/shared/data-display/_internal/richDocumentValidation.d.ts +65 -0
  240. package/dist/src/components/shared/data-display/_internal/richDocumentValidation.js +192 -0
  241. package/dist/src/components/shared/data-display/_internal/tableFoundation.d.ts +27 -0
  242. package/dist/src/components/shared/data-display/_internal/tableFoundation.js +16 -0
  243. package/dist/src/components/shared/data-display/richDocument.d.ts +3 -220
  244. package/dist/src/components/shared/data-display/richDocument.js +607 -399
  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 +138 -129
  253. package/dist/src/components/shared/navigation/SBreadcrumbs.vue.d.ts +2 -2
  254. package/dist/src/components/shared/navigation/STabPanel.vue.d.ts +2 -2
  255. package/dist/src/components/shared/navigation/SWizardSteps.vue_vue_type_script_setup_true_lang.js +16 -16
  256. package/dist/src/components/shared/persona/SPersonaProjectPicker.vue.d.ts +2 -2
  257. package/dist/src/composables/useDialogOverlay.d.ts +12 -2
  258. package/dist/src/composables/useDialogOverlay.js +202 -41
  259. package/dist/src/composables/useFloatingPosition.d.ts +20 -0
  260. package/dist/src/composables/useFloatingPosition.js +129 -52
  261. package/dist/src/internal/fieldSurface.d.ts +3 -0
  262. package/dist/src/internal/fieldSurface.js +3 -2
  263. package/dist/src/internal/focusNavigation.d.ts +2 -0
  264. package/dist/src/internal/focusNavigation.js +9 -9
  265. package/dist/src/internal/layerStack.d.ts +12 -0
  266. package/dist/src/internal/layerStack.js +138 -62
  267. package/dist/src/internal/linkTarget.d.ts +7 -1
  268. package/dist/src/internal/linkTarget.js +11 -7
  269. package/dist/src/internal/overlayHost.d.ts +18 -0
  270. package/dist/src/internal/overlayHost.js +18 -0
  271. package/dist/src/internal/ownedAttrs.d.ts +13 -3
  272. package/dist/src/internal/ownedAttrs.js +8 -1
  273. package/dist/src/internal/runtimeContract.d.ts +2 -0
  274. package/dist/src/internal/runtimeContract.js +10 -5
  275. package/dist/src/internal/textLengthConstraints.d.ts +9 -0
  276. package/dist/src/internal/textLengthConstraints.js +18 -0
  277. package/dist/src/internal/useMenuLayer.d.ts +8 -4
  278. package/dist/src/internal/useMenuLayer.js +75 -46
  279. package/dist/tailwind.css +3 -0
  280. package/dist/typography.LICENSE.txt +94 -0
  281. package/dist/typography.js +5150 -0
  282. package/docs/getting-started.md +39 -0
  283. package/docs/link-download.md +114 -0
  284. package/docs/listbox.md +129 -0
  285. package/docs/public-api.md +208 -4
  286. package/docs/resize.md +129 -0
  287. package/docs/rich-document.md +442 -25
  288. package/package.json +12 -4
  289. package/src/components/shared/_internal/SDialogSurface.css +43 -7
  290. package/src/components/shared/_internal/SMenuItem.css +22 -1
  291. package/src/components/shared/_internal/SMenuLayer.css +4 -0
  292. package/src/components/shared/containers/SDrawer.css +20 -2
  293. package/src/components/shared/containers/SOverlayHost.css +14 -0
  294. package/src/components/shared/containers/SPopover.css +8 -2
  295. package/src/components/shared/controls/SButton.css +4 -0
  296. package/src/components/shared/controls/SField.css +6 -0
  297. package/src/components/shared/controls/SListbox.css +17 -0
  298. package/src/components/shared/controls/SMenuSurface.css +38 -4
  299. package/src/components/shared/controls/STextarea.css +42 -3
  300. package/src/components/shared/data-display/SProgressBar.css +79 -0
  301. package/src/components/shared/data-display/SRichDocument.css +1 -0
  302. package/src/components/shared/data-display/SStatus.css +8 -25
  303. package/src/components/shared/data-display/STable.css +0 -113
  304. package/src/components/shared/data-display/STooltip.css +4 -1
  305. package/src/components/shared/data-display/_internal/SRichBlockNode.css +11 -7
  306. package/src/components/shared/data-display/_internal/SRichDisclosure.css +16 -0
  307. package/src/components/shared/data-display/_internal/SRichImage.css +37 -0
  308. package/src/components/shared/data-display/_internal/STableCell.css +55 -0
  309. package/src/components/shared/data-display/_internal/STableFrame.css +41 -0
  310. package/src/components/shared/data-display/_internal/STableRow.css +12 -0
  311. package/src/components/shared/feedback/SAsyncState.css +0 -4
  312. package/src/styles/style.css +9 -5
  313. package/src/styles/tokens.css +30 -0
  314. package/dist/assets/src/components/layout/SDockRegion.vue_vue_type_style_index_0_scoped_2932631d_lang.css +0 -1
  315. package/dist/assets/src/components/shared/_internal/SDialogSurface.css_vue_type_style_index_0_src_d1b65adf_scoped_d1b65adf_lang.css +0 -2
  316. package/dist/assets/src/components/shared/_internal/SMenuItem.css_vue_type_style_index_0_src_e5bd192e_scoped_e5bd192e_lang.css +0 -2
  317. package/dist/assets/src/components/shared/_internal/SMenuLayer.css_vue_type_style_index_0_src_4913bbe1_scoped_4913bbe1_lang.css +0 -1
  318. package/dist/assets/src/components/shared/containers/SDrawer.css_vue_type_style_index_0_src_091d7325_scoped_091d7325_lang.css +0 -2
  319. package/dist/assets/src/components/shared/containers/SPopover.css_vue_type_style_index_0_src_deded766_scoped_deded766_lang.css +0 -2
  320. package/dist/assets/src/components/shared/containers/SSidebarSection.css_vue_type_style_index_0_src_96f51ac6_scoped_96f51ac6_lang.css +0 -2
  321. package/dist/assets/src/components/shared/controls/SButton.css_vue_type_style_index_0_src_a5d8f7e0_scoped_a5d8f7e0_lang.css +0 -2
  322. package/dist/assets/src/components/shared/controls/SCombobox.css_vue_type_style_index_0_src_e3b4f580_scoped_e3b4f580_lang.css +0 -2
  323. package/dist/assets/src/components/shared/controls/SContextMenu.css_vue_type_style_index_0_src_00c91d39_scoped_00c91d39_lang.css +0 -1
  324. package/dist/assets/src/components/shared/controls/SField.css_vue_type_style_index_0_src_60628f96_scoped_60628f96_lang.css +0 -2
  325. package/dist/assets/src/components/shared/controls/SListbox.css_vue_type_style_index_0_src_24db4abb_scoped_24db4abb_lang.css +0 -2
  326. package/dist/assets/src/components/shared/controls/SMenuSurface.css_vue_type_style_index_0_src_bc7c7be4_scoped_bc7c7be4_lang.css +0 -2
  327. package/dist/assets/src/components/shared/controls/SSelect.css_vue_type_style_index_0_src_441648c9_scoped_441648c9_lang.css +0 -2
  328. package/dist/assets/src/components/shared/data-display/SProgressBar.css_vue_type_style_index_0_src_9308293a_scoped_9308293a_lang.css +0 -2
  329. package/dist/assets/src/components/shared/data-display/SRichDocument.css_vue_type_style_index_0_src_d1afafc5_scoped_d1afafc5_lang.css +0 -2
  330. package/dist/assets/src/components/shared/data-display/STable.css_vue_type_style_index_0_src_9955d482_scoped_9955d482_lang.css +0 -2
  331. package/dist/assets/src/components/shared/data-display/SVirtualList.css_vue_type_style_index_0_src_cee8c247_scoped_cee8c247_lang.css +0 -2
  332. package/dist/assets/src/components/shared/data-display/_internal/SRichBlockNode.css_vue_type_style_index_0_src_195d5c06_scoped_195d5c06_lang.css +0 -2
  333. package/dist/assets/src/components/shared/data-display/_internal/SRichDisclosure.css_vue_type_style_index_0_src_fa94e2ff_scoped_fa94e2ff_lang.css +0 -2
  334. package/dist/assets/src/components/shared/feedback/SAsyncState.css_vue_type_style_index_0_src_bfc28903_scoped_bfc28903_lang.css +0 -2
@@ -1,11 +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 { computed as u, createBlock as d, createElementVNode as te, defineComponent as f, mergeProps as ne, nextTick as p, onBeforeUnmount as re, onMounted as ie, openBlock as ae, ref as m, unref as h, useId as oe, watch as g, withCtx as _ } 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";
7
8
  //#region src/components/shared/controls/STextarea.vue?vue&type=script&setup=true&lang.ts
8
- var se = [
9
+ var de = [
10
+ "data-content-slots",
11
+ "data-appearance",
12
+ "data-size"
13
+ ], fe = [
9
14
  "id",
10
15
  "data-appearance",
11
16
  "data-size",
@@ -15,21 +20,23 @@ var se = [
15
20
  "data-min-height",
16
21
  "data-max-height",
17
22
  "data-invalid",
23
+ "data-embedded",
18
24
  "value",
19
25
  "placeholder",
20
26
  "disabled",
21
27
  "readonly",
22
28
  "required",
29
+ "minlength",
30
+ "maxlength",
23
31
  "aria-invalid",
24
32
  "aria-required",
25
33
  "aria-readonly",
26
34
  "aria-describedby",
27
- "aria-controls",
28
- "aria-activedescendant",
29
- "aria-autocomplete",
30
- "aria-haspopup",
31
35
  "rows"
32
- ], v = 100, y = /*@__PURE__*/ f({
36
+ ], pe = {
37
+ key: 0,
38
+ class: "s-textarea__empty-content"
39
+ }, me = ["id"], he = 100, ge = /*@__PURE__*/ _({
33
40
  inheritAttrs: !1,
34
41
  __name: "STextarea",
35
42
  props: {
@@ -56,6 +63,8 @@ var se = [
56
63
  helpText: { default: void 0 },
57
64
  id: { default: void 0 },
58
65
  rows: { default: 3 },
66
+ minLength: { default: void 0 },
67
+ maxLength: { default: void 0 },
59
68
  size: { default: "md" },
60
69
  autoResize: {
61
70
  type: Boolean,
@@ -85,216 +94,305 @@ var se = [
85
94
  "selection-change",
86
95
  "state-change"
87
96
  ],
88
- setup(f, { expose: y, emit: ce }) {
89
- let le = ["default", "ghost"], ue = [
97
+ setup(_, { expose: ge, emit: _e }) {
98
+ let ve = ["default", "ghost"], ye = [
90
99
  "sm",
91
100
  "md",
92
101
  "lg"
93
- ], b = {
102
+ ], be = {
94
103
  minimum: 1,
95
104
  maximum: 100
96
- }, x = {
105
+ }, xe = {
97
106
  minimum: 1,
98
107
  maximum: 4096
99
- }, de = [
108
+ }, Se = [
100
109
  "list",
101
110
  "both",
102
111
  "inline",
103
112
  "none"
104
- ], fe = [
113
+ ], Ce = [
105
114
  "listbox",
106
115
  "grid",
107
116
  "tree",
108
117
  "dialog"
109
- ], S = [
118
+ ], we = [
110
119
  "forward",
111
120
  "backward",
112
121
  "none"
113
- ], pe = [
122
+ ], Te = [
114
123
  "select",
115
124
  "start",
116
125
  "end",
117
126
  "preserve"
118
- ], C = f, w = ce, T = t({
127
+ ], S = _, C = _e, w = ce(), T = s({
119
128
  component: "STextarea",
120
129
  owner: "native textarea"
121
130
  });
122
131
  c({ owner: "STextarea" });
123
- let me = oe(), E = u(() => n("STextarea", "id", C.id, `s-textarea-${me}`)), D = m(null), O = m(!1), k = null, A = null, j = null, M = null, N = !1, P = [], F = [], I = u(() => s("STextarea", "appearance", C.appearance, le)), L = u(() => s("STextarea", "size", C.size, ue)), R = u(() => i("STextarea", "rows", C.rows, b)), z = u(() => C.maxRows === void 0 ? void 0 : i("STextarea", "maxRows", C.maxRows, b)), B = u(() => C.minHeight === void 0 ? void 0 : a("STextarea", "minHeight", C.minHeight, x)), V = u(() => C.maxHeight === void 0 ? void 0 : a("STextarea", "maxHeight", C.maxHeight, x)), H = u(() => {
124
- if (C.suggestions === void 0) return;
125
- if (C.suggestions === null || typeof C.suggestions != "object" || Array.isArray(C.suggestions)) throw TypeError("STextarea: suggestions должен быть объектом. / STextarea: suggestions must be an object.");
126
- let e = C.suggestions.activeDescendant === void 0 ? void 0 : o("STextarea", "suggestions.activeDescendant", C.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.");
127
137
  return {
128
- controls: o("STextarea", "suggestions.controls", C.suggestions.controls),
138
+ controls: i("STextarea", "suggestions.controls", S.suggestions.controls),
139
+ active: n,
129
140
  activeDescendant: e,
130
- autocomplete: s("STextarea", "suggestions.autocomplete", C.suggestions.autocomplete ?? "list", de),
131
- popupRole: s("STextarea", "suggestions.popupRole", C.suggestions.popupRole ?? "listbox", fe)
141
+ autocomplete: a("STextarea", "suggestions.autocomplete", S.suggestions.autocomplete ?? "list", Se),
142
+ popupRole: a("STextarea", "suggestions.popupRole", S.suggestions.popupRole ?? "listbox", Ce)
132
143
  };
133
- }), U = u(() => {
134
- let e = r("STextarea", "autoResize", C.autoResize), t = z.value, n = B.value, i = V.value;
135
- 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}.`);
136
- 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.");
137
- if (t !== void 0 && i !== void 0) throw TypeError("STextarea: maxRows и maxHeight являются альтернативными ограничителями; укажите один. / STextarea: maxRows and maxHeight are alternative bounds; provide one.");
138
- 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}.`);
139
- if (t !== void 0 && t < R.value) throw TypeError(`STextarea: maxRows не может быть меньше rows; получено rows=${R.value}, maxRows=${t}. / STextarea: maxRows cannot be less than rows; received rows=${R.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}.`);
140
161
  return e ? {
141
162
  mode: "content",
142
163
  autoResize: !0,
143
- ...t === void 0 ? {} : { maxRows: t },
144
- ...n === void 0 ? {} : { minHeight: n },
164
+ ...n === void 0 ? {} : { maxRows: n },
165
+ ...r === void 0 ? {} : { minHeight: r },
145
166
  ...i === void 0 ? {} : { maxHeight: i }
146
167
  } : {
147
168
  mode: "fixed",
148
169
  autoResize: !1
149
170
  };
150
171
  });
151
- function he(e) {
152
- return ee("STextarea", {
172
+ function ze(e) {
173
+ return u("STextarea", {
153
174
  kind: "textarea",
154
- appearance: I.value === "default" ? "field" : "ghost",
175
+ appearance: K() ? "embedded" : W.value === "default" ? "field" : "ghost",
155
176
  invalid: e.invalid,
156
177
  disabled: e.disabled,
157
178
  readonly: e.readonly
158
179
  });
159
180
  }
160
- function W(e, t) {
161
- 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`);
162
207
  if (r < n) throw RangeError(`STextarea: ${t} selectionEnd=${r} is below selectionStart=${n}.`);
163
208
  return {
164
209
  start: n,
165
210
  end: r,
166
- direction: s("STextarea", `${t} selectionDirection`, e.selectionDirection ?? "none", S)
211
+ direction: a("STextarea", `${t} selectionDirection`, e.selectionDirection ?? "none", we)
167
212
  };
168
213
  }
169
- function G(e) {
170
- let t = W(e, "state-change");
171
- w("state-change", {
214
+ function J(e) {
215
+ let t = q(e, "state-change");
216
+ C("state-change", {
172
217
  text: e.value,
173
218
  cursor: t.start,
174
219
  selection: t,
175
- composing: O.value
220
+ composing: j.value
176
221
  });
177
222
  }
178
- function ge(e) {
179
- let t = e.target, n = e instanceof InputEvent ? e.inputType : "";
180
- !N && n !== "historyUndo" && n !== "historyRedo" && F.splice(0), w("update:modelValue", t.value), G(t), p(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);
181
228
  }
182
- function K(e, t) {
229
+ function Ue(e, t) {
183
230
  return {
184
231
  text: e.value,
185
- selection: W(e, t)
232
+ selection: q(e, t)
186
233
  };
187
234
  }
188
- function q(e, t) {
189
- e.value = t.text, e.focus(), e.setSelectionRange(t.selection.start, t.selection.end, t.selection.direction), w("update:modelValue", t.text), w("selection-change", t.selection), G(e), p(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);
190
237
  }
191
- function _e(e, t) {
238
+ function Ge(e, t) {
192
239
  return e.value === t.text;
193
240
  }
194
- function ve(e, t) {
241
+ function Ke(e, t) {
195
242
  if (e.altKey || !(e.metaKey || e.ctrlKey)) return !1;
196
243
  let n = e.key.toLowerCase(), r = n === "z" && !e.shiftKey, i = n === "z" && e.shiftKey || n === "y" && !e.shiftKey;
197
244
  if (!r && !i) return !1;
198
- let a = r ? P : F, o = a[a.length - 1], s = r ? o?.after : o?.before;
199
- return !o || !s || !_e(t, s) ? !1 : (e.preventDefault(), a.pop(), r ? (F.push(o), q(t, o.before)) : (P.push(o), q(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);
200
247
  }
201
- function ye(e) {
202
- w("keydown", e), !(e.defaultPrevented || O.value || C.disabled || C.readonly) && ve(e, e.currentTarget);
248
+ function qe(e) {
249
+ C("keydown", e), !(e.defaultPrevented || j.value || S.disabled || S.readonly) && Ke(e, e.currentTarget);
203
250
  }
204
- function be(e) {
205
- w("keyup", e), G(e.currentTarget);
251
+ function Je(e) {
252
+ C("keyup", e), J(e.currentTarget);
206
253
  }
207
- function xe(e) {
208
- w("click", e), G(e.currentTarget);
254
+ function Ye(e) {
255
+ C("click", e), J(e.currentTarget);
209
256
  }
210
- function Se(e) {
211
- let t = e.currentTarget, n = W(t, "selection-change");
212
- w("selection-change", n), G(t);
257
+ function Xe(e) {
258
+ let t = e.currentTarget, n = q(t, "selection-change");
259
+ C("selection-change", n), J(t);
213
260
  }
214
- function Ce(e) {
215
- O.value = !0, w("compositionstart", e), G(e.currentTarget);
261
+ function Ze(e) {
262
+ j.value = !0, M.value = null, C("compositionstart", e), J(e.currentTarget), v(Z);
216
263
  }
217
- function we(e) {
218
- w("compositionupdate", e), G(e.currentTarget);
264
+ function Qe(e) {
265
+ M.value = null, C("compositionupdate", e), J(e.currentTarget), v(Z);
219
266
  }
220
- function Te(e) {
221
- O.value = !1, w("compositionend", e), G(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();
222
269
  }
223
- function J() {
224
- let e = D.value, t = U.value;
225
- if (t.mode === "fixed" || !e || e.scrollHeight === 0) return;
226
- 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 = R.value * r + i + a, s = t.minHeight ?? o, c = t.maxHeight ?? (t.maxRows === void 0 ? 0 : t.maxRows * r + i + a);
227
- if (c > 0 && c < s) throw RangeError(`STextarea: вычисленный maxHeight=${c} меньше minimumHeight=${s}. / STextarea: resolved maxHeight=${c} is below minimumHeight=${s}.`);
228
- if (C.disabled || C.modelValue === null || C.modelValue.length === 0) {
229
- 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;
230
273
  return;
231
274
  }
232
- e.style.height = "auto";
233
- let l = e.scrollHeight;
234
- if (c > 0 && l > c) {
235
- e.style.height = `${c}px`, e.style.overflowY = "auto";
275
+ if (e.value.length === 0) {
276
+ M.value = !1;
236
277
  return;
237
278
  }
238
- 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
+ }
239
298
  }
240
299
  function Y() {
241
- M === null && U.value.mode !== "fixed" && (M = window.requestAnimationFrame(() => {
242
- M = 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();
243
333
  }));
244
334
  }
245
- function Ee() {
335
+ function tt() {
246
336
  D.value?.focus();
247
337
  }
248
- function X(e) {
338
+ function Q(e) {
249
339
  let t = D.value;
250
- if (!t) throw Error(`STextarea: textarea не готова для ${e}; дождитесь mount. / STextarea: textarea is not ready for ${e}; wait for mount.`);
340
+ if (!t || B) throw Error(`STextarea: textarea не готова для ${e}; дождитесь mount. / STextarea: textarea is not ready for ${e}; wait for mount.`);
251
341
  return t;
252
342
  }
253
- function Z(e, t, n) {
254
- return i("STextarea", n, e, {
343
+ function $(e, t, r) {
344
+ return n("STextarea", r, e, {
255
345
  minimum: 0,
256
346
  maximum: t
257
347
  });
258
348
  }
259
- function De() {
260
- let e = X("getSelectionOffset");
261
- return Z(e.selectionStart, e.value.length, "getSelectionOffset");
349
+ function nt() {
350
+ let e = Q("getSelectionOffset");
351
+ return $(e.selectionStart, e.value.length, "getSelectionOffset");
262
352
  }
263
- function Oe() {
264
- return W(X("getSelection"), "getSelection");
353
+ function rt() {
354
+ return q(Q("getSelection"), "getSelection");
265
355
  }
266
- function Q(e, t, n) {
356
+ function it(e, t, n) {
267
357
  if (typeof e != "object" || !e || Array.isArray(e)) throw TypeError(`STextarea: ${n} должен быть selection object. / STextarea: ${n} must be a selection object.`);
268
- 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`);
269
359
  if (i < r) throw RangeError(`STextarea: ${n}.end=${i} меньше ${n}.start=${r}.`);
270
360
  return {
271
361
  start: r,
272
362
  end: i,
273
- direction: s("STextarea", `${n}.direction`, e.direction, S)
363
+ direction: a("STextarea", `${n}.direction`, e.direction, we)
274
364
  };
275
365
  }
276
- function ke(e, t = !0) {
277
- let n = X("setSelection"), r = Q(e, n.value.length, "setSelection");
278
- t && n.focus(), n.setSelectionRange(r.start, r.end, r.direction), w("selection-change", r), G(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);
279
369
  }
280
- function Ae(e) {
281
- 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");
282
380
  t.focus(), t.setSelectionRange(n, n);
283
381
  }
284
- function $(e, t = {}) {
285
- let n = X("replaceSelection");
286
- if (C.disabled || C.readonly) throw Error("STextarea: replaceSelection недоступен для disabled/readonly поля. / STextarea: replaceSelection is unavailable for a disabled/readonly field.");
287
- if (O.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.");
288
386
  if (typeof e != "string") throw TypeError("STextarea: replaceSelection text должен быть строкой. / STextarea: replaceSelection text must be a string.");
289
- let r = t.selection === void 0 ? W(n, "replaceSelection") : Q(t.selection, n.value.length, "replaceSelection.selection"), i = s("STextarea", "replaceSelection.selectionMode", t.selectionMode ?? "end", pe);
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);
290
388
  (t.focus ?? !0) && n.focus();
291
- let a = K(n, "replaceSelection before");
389
+ let o = Ue(n, "replaceSelection before");
292
390
  n.setRangeText(e, r.start, r.end, i);
293
- let o = K(n, "replaceSelection after");
294
- P.push({
295
- before: a,
296
- after: o
297
- }), P.length > v && P.shift(), F.splice(0), N = !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;
298
396
  try {
299
397
  n.dispatchEvent(new InputEvent("input", {
300
398
  bubbles: !0,
@@ -303,104 +401,152 @@ var se = [
303
401
  inputType: "insertReplacementText"
304
402
  }));
305
403
  } finally {
306
- N = !1;
404
+ V = !1;
307
405
  }
308
- w("selection-change", o.selection);
309
- let c = o.selection;
406
+ C("selection-change", s.selection);
407
+ let c = s.selection;
310
408
  return {
311
409
  text: n.value,
312
410
  cursor: c.start,
313
411
  selection: c,
314
- composing: O.value
412
+ composing: j.value
315
413
  };
316
414
  }
317
- function je() {
318
- C.disabled || C.readonly || $("\n");
319
- }
320
- return y({
321
- focus: Ee,
322
- getSelection: Oe,
323
- getSelectionOffset: De,
324
- insertSoftLineBreak: je,
325
- replaceSelection: $,
326
- resize: J,
327
- setSelection: ke,
328
- setSelectionOffset: Ae
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
329
428
  }), ie(() => {
330
- J(), A = D.value?.parentElement ?? null, typeof ResizeObserver < "u" && A && (k = new ResizeObserver((e) => {
331
- let t = e.find((e) => e.target === A);
332
- if (!t) return;
333
- let n = t.contentRect.width;
334
- n !== j && (j = n, Y());
335
- }), k.observe(A));
336
- }), g(() => [
337
- C.modelValue,
338
- C.disabled,
339
- C.rows,
340
- C.maxRows,
341
- C.minHeight,
342
- C.maxHeight
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
343
464
  ], () => {
344
- p(Y);
345
- }), g(() => C.modelValue, (e) => {
465
+ M.value = null, v(Z);
466
+ }), le(() => S.modelValue, (e) => {
467
+ N.value = e ?? "";
346
468
  let t = D.value;
347
- t && t.value !== (e ?? "") && (P.splice(0), F.splice(0));
469
+ t && t.value !== (e ?? "") && (H.splice(0), U.splice(0));
348
470
  }), re(() => {
349
- M !== null && window.cancelAnimationFrame(M), k?.disconnect(), k = null, A = null, P.splice(0), F.splice(0);
350
- }), (t, n) => (ae(), d(l, {
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, {
351
473
  "control-id": E.value,
352
- label: f.label,
353
- required: f.required,
354
- "help-text": f.helpText,
355
- "error-message": f.errorMessage,
356
- invalid: f.invalid,
357
- disabled: f.disabled,
358
- readonly: f.readonly,
359
- fill: I.value === "ghost" ? "container" : "content"
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"
360
482
  }, {
361
- default: _((t) => [te("textarea", ne({
362
- ...h(T).bindings(),
363
- ...he(t)
364
- }, {
365
- id: E.value,
366
- ref_key: "textareaRef",
367
- ref: D,
368
- class: "s-textarea",
369
- "data-appearance": I.value,
370
- "data-size": L.value,
371
- "data-monospace": f.monospace || void 0,
372
- "data-auto-resize": U.value.mode === "content" || void 0,
373
- "data-max-rows": z.value,
374
- "data-min-height": B.value,
375
- "data-max-height": V.value,
376
- "data-invalid": t.invalid || void 0,
377
- value: f.modelValue,
378
- placeholder: f.placeholder,
379
- disabled: t.disabled,
380
- readonly: t.readonly,
381
- required: t.required,
382
- "aria-invalid": t.invalid || void 0,
383
- "aria-required": t.required || void 0,
384
- "aria-readonly": t.readonly || void 0,
385
- "aria-describedby": h(e)(h(T).string("aria-describedby"), t.describedBy),
386
- "aria-controls": H.value?.controls,
387
- "aria-activedescendant": H.value?.activeDescendant,
388
- "aria-autocomplete": H.value?.autocomplete,
389
- "aria-haspopup": H.value?.popupRole,
390
- rows: R.value,
391
- onInput: ge,
392
- onKeydown: ye,
393
- onKeyup: be,
394
- onClick: xe,
395
- onFocus: n[0] ||= (e) => w("focus", e),
396
- onBlur: n[1] ||= (e) => w("blur", e),
397
- onSelect: Se,
398
- onPaste: n[2] ||= (e) => w("paste", e),
399
- onCompositionstart: Ce,
400
- onCompositionupdate: we,
401
- onCompositionend: Te
402
- }), null, 16, se)]),
403
- _: 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
404
550
  }, 8, [
405
551
  "control-id",
406
552
  "label",
@@ -415,4 +561,4 @@ var se = [
415
561
  }
416
562
  });
417
563
  //#endregion
418
- export { y as default };
564
+ export { ge as default };