@nuraly/lumenui 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/dist/nuralyui.bundle.js +23024 -17355
  2. package/dist/nuralyui.bundle.js.gz +0 -0
  3. package/dist/src/components/alert/alert.component.d.ts +8 -5
  4. package/dist/src/components/alert/alert.component.js +24 -20
  5. package/dist/src/components/alert/alert.style.d.ts +0 -7
  6. package/dist/src/components/alert/alert.style.js +48 -90
  7. package/dist/src/components/alert/bundle.js +82 -108
  8. package/dist/src/components/alert/bundle.js.gz +0 -0
  9. package/dist/src/components/badge/badge.component.d.ts +9 -8
  10. package/dist/src/components/badge/badge.component.js +17 -14
  11. package/dist/src/components/badge/badge.style.d.ts +0 -7
  12. package/dist/src/components/badge/badge.style.js +49 -107
  13. package/dist/src/components/badge/bundle.js +81 -119
  14. package/dist/src/components/badge/bundle.js.gz +0 -0
  15. package/dist/src/components/breadcrumb/breadcrumb.component.d.ts +8 -10
  16. package/dist/src/components/breadcrumb/breadcrumb.component.js +16 -15
  17. package/dist/src/components/breadcrumb/breadcrumb.style.d.ts +0 -7
  18. package/dist/src/components/breadcrumb/breadcrumb.style.js +42 -60
  19. package/dist/src/components/breadcrumb/bundle.js +96 -93
  20. package/dist/src/components/breadcrumb/bundle.js.gz +0 -0
  21. package/dist/src/components/button/bundle.js +221 -470
  22. package/dist/src/components/button/bundle.js.gz +0 -0
  23. package/dist/src/components/button/button.component.d.ts +2 -1
  24. package/dist/src/components/button/button.component.js +6 -6
  25. package/dist/src/components/button/button.style.d.ts +0 -7
  26. package/dist/src/components/button/button.style.js +167 -433
  27. package/dist/src/components/canvas/base-canvas.component.d.ts +2 -1
  28. package/dist/src/components/canvas/base-canvas.component.js +1 -0
  29. package/dist/src/components/canvas/bundle.js +16919 -9595
  30. package/dist/src/components/canvas/bundle.js.gz +0 -0
  31. package/dist/src/components/canvas/canvas.constants.d.ts +1 -1
  32. package/dist/src/components/canvas/canvas.constants.js +1 -1
  33. package/dist/src/components/canvas/chatbot-panel.style.js +31 -31
  34. package/dist/src/components/canvas/index.d.ts +2 -0
  35. package/dist/src/components/canvas/index.js +3 -0
  36. package/dist/src/components/canvas/whiteboard-canvas.component.d.ts +3 -1
  37. package/dist/src/components/canvas/whiteboard-canvas.component.js +19 -1
  38. package/dist/src/components/canvas/whiteboard-canvas.style.js +159 -138
  39. package/dist/src/components/canvas/whiteboard-node.component.d.ts +2 -1
  40. package/dist/src/components/canvas/whiteboard-node.component.js +2 -1
  41. package/dist/src/components/canvas/whiteboard-node.style.js +44 -44
  42. package/dist/src/components/canvas/workflow-canvas-only.d.ts +4 -0
  43. package/dist/src/components/canvas/workflow-canvas-only.js +5 -0
  44. package/dist/src/components/canvas/workflow-canvas.component.d.ts +3 -1
  45. package/dist/src/components/canvas/workflow-canvas.component.js +24 -2
  46. package/dist/src/components/canvas/workflow-canvas.style.js +776 -648
  47. package/dist/src/components/canvas/workflow-canvas.types.d.ts +113 -4
  48. package/dist/src/components/canvas/workflow-canvas.types.js +646 -3
  49. package/dist/src/components/canvas/workflow-node.component.d.ts +3 -2
  50. package/dist/src/components/canvas/workflow-node.component.js +5 -5
  51. package/dist/src/components/canvas/workflow-node.style.js +183 -181
  52. package/dist/src/components/card/bundle.js +43 -35
  53. package/dist/src/components/card/bundle.js.gz +0 -0
  54. package/dist/src/components/card/card.component.d.ts +6 -1
  55. package/dist/src/components/card/card.component.js +8 -2
  56. package/dist/src/components/card/card.style.js +26 -30
  57. package/dist/src/components/carousel/bundle.js +8 -8
  58. package/dist/src/components/carousel/bundle.js.gz +0 -0
  59. package/dist/src/components/carousel/carousel.component.d.ts +12 -0
  60. package/dist/src/components/carousel/carousel.component.js +16 -4
  61. package/dist/src/components/chatbot/bundle.js +422 -406
  62. package/dist/src/components/chatbot/bundle.js.gz +0 -0
  63. package/dist/src/components/chatbot/chatbot.component.d.ts +2 -1
  64. package/dist/src/components/chatbot/chatbot.component.js +1 -0
  65. package/dist/src/components/chatbot/chatbot.style.js +277 -277
  66. package/dist/src/components/checkbox/bundle.js +86 -245
  67. package/dist/src/components/checkbox/bundle.js.gz +0 -0
  68. package/dist/src/components/checkbox/checkbox.component.d.ts +5 -2
  69. package/dist/src/components/checkbox/checkbox.component.js +11 -13
  70. package/dist/src/components/checkbox/checkbox.style.js +56 -231
  71. package/dist/src/components/code-editor/bundle.js +151 -25
  72. package/dist/src/components/code-editor/bundle.js.gz +0 -0
  73. package/dist/src/components/code-editor/code-editor.component.d.ts +18 -56
  74. package/dist/src/components/code-editor/code-editor.component.js +141 -394
  75. package/dist/src/components/code-editor/code-editor.style.js +139 -15
  76. package/dist/src/components/collapse/bundle.js +97 -84
  77. package/dist/src/components/collapse/bundle.js.gz +0 -0
  78. package/dist/src/components/collapse/collapse.component.d.ts +7 -1
  79. package/dist/src/components/collapse/collapse.component.js +11 -2
  80. package/dist/src/components/collapse/collapse.style.js +60 -60
  81. package/dist/src/components/colorpicker/bundle.js +85 -48
  82. package/dist/src/components/colorpicker/bundle.js.gz +0 -0
  83. package/dist/src/components/colorpicker/color-holder.component.d.ts +2 -4
  84. package/dist/src/components/colorpicker/color-holder.component.js +5 -6
  85. package/dist/src/components/colorpicker/color-holder.style.js +11 -11
  86. package/dist/src/components/colorpicker/color-picker.component.d.ts +2 -1
  87. package/dist/src/components/colorpicker/color-picker.component.js +1 -0
  88. package/dist/src/components/colorpicker/color-picker.style.js +12 -12
  89. package/dist/src/components/colorpicker/default-color-sets.component.d.ts +2 -2
  90. package/dist/src/components/colorpicker/default-color-sets.component.js +4 -3
  91. package/dist/src/components/colorpicker/default-color-sets.style.js +5 -5
  92. package/dist/src/components/container/bundle.js +24 -14
  93. package/dist/src/components/container/bundle.js.gz +0 -0
  94. package/dist/src/components/container/container.component.d.ts +4 -1
  95. package/dist/src/components/container/container.component.js +7 -5
  96. package/dist/src/components/container/container.style.js +9 -9
  97. package/dist/src/components/datepicker/bundle.js +193 -177
  98. package/dist/src/components/datepicker/bundle.js.gz +0 -0
  99. package/dist/src/components/datepicker/datepicker.component.d.ts +2 -1
  100. package/dist/src/components/datepicker/datepicker.component.js +1 -0
  101. package/dist/src/components/datepicker/datepicker.style.js +65 -65
  102. package/dist/src/components/datepicker/datepicker.style.variables.js +91 -91
  103. package/dist/src/components/db-connection-select/bundle.js +7 -6
  104. package/dist/src/components/db-connection-select/bundle.js.gz +0 -0
  105. package/dist/src/components/db-connection-select/db-connection-select.component.d.ts +3 -0
  106. package/dist/src/components/db-connection-select/db-connection-select.component.js +4 -0
  107. package/dist/src/components/divider/bundle.js +61 -35
  108. package/dist/src/components/divider/bundle.js.gz +0 -0
  109. package/dist/src/components/divider/divider.component.d.ts +4 -6
  110. package/dist/src/components/divider/divider.component.js +10 -14
  111. package/dist/src/components/divider/divider.style.js +41 -31
  112. package/dist/src/components/document/bundle.js +50 -48
  113. package/dist/src/components/document/bundle.js.gz +0 -0
  114. package/dist/src/components/document/document.component.d.ts +12 -1
  115. package/dist/src/components/document/document.component.js +18 -6
  116. package/dist/src/components/document/document.style.js +21 -36
  117. package/dist/src/components/dropdown/bundle.js +117 -101
  118. package/dist/src/components/dropdown/bundle.js.gz +0 -0
  119. package/dist/src/components/dropdown/dropdown.component.d.ts +2 -1
  120. package/dist/src/components/dropdown/dropdown.component.js +1 -0
  121. package/dist/src/components/dropdown/dropdown.style.js +68 -68
  122. package/dist/src/components/file-upload/bundle.js +82 -76
  123. package/dist/src/components/file-upload/bundle.js.gz +0 -0
  124. package/dist/src/components/file-upload/file-upload.component.d.ts +2 -1
  125. package/dist/src/components/file-upload/file-upload.component.js +1 -0
  126. package/dist/src/components/file-upload/styles.js +59 -59
  127. package/dist/src/components/flex/bundle.js +18 -8
  128. package/dist/src/components/flex/bundle.js.gz +0 -0
  129. package/dist/src/components/flex/flex.component.d.ts +4 -1
  130. package/dist/src/components/flex/flex.component.js +7 -4
  131. package/dist/src/components/flex/flex.style.js +2 -2
  132. package/dist/src/components/form/bundle.js +22 -10
  133. package/dist/src/components/form/bundle.js.gz +0 -0
  134. package/dist/src/components/form/form.component.d.ts +4 -1
  135. package/dist/src/components/form/form.component.js +5 -1
  136. package/dist/src/components/form/form.style.js +2 -2
  137. package/dist/src/components/grid/bundle.js +26 -14
  138. package/dist/src/components/grid/bundle.js.gz +0 -0
  139. package/dist/src/components/grid/col.component.d.ts +4 -1
  140. package/dist/src/components/grid/col.component.js +4 -1
  141. package/dist/src/components/grid/col.style.js +2 -2
  142. package/dist/src/components/grid/row.component.d.ts +4 -1
  143. package/dist/src/components/grid/row.component.js +4 -1
  144. package/dist/src/components/grid/row.style.js +2 -2
  145. package/dist/src/components/icon/bundle.js +78 -252
  146. package/dist/src/components/icon/bundle.js.gz +0 -0
  147. package/dist/src/components/icon/icon-paths.d.ts +2 -0
  148. package/dist/src/components/icon/icon-paths.js +141 -0
  149. package/dist/src/components/icon/icon.component.d.ts +10 -12
  150. package/dist/src/components/icon/icon.component.js +42 -93
  151. package/dist/src/components/icon/icon.style.js +42 -130
  152. package/dist/src/components/icon/icon.variables.js +9 -9
  153. package/dist/src/components/iconpicker/bundle.js +859 -1511
  154. package/dist/src/components/iconpicker/bundle.js.gz +0 -0
  155. package/dist/src/components/iconpicker/icon-picker.component.d.ts +2 -1
  156. package/dist/src/components/iconpicker/icon-picker.component.js +1 -0
  157. package/dist/src/components/iconpicker/icon-picker.style.js +13 -13
  158. package/dist/src/components/image/bundle.js +43 -33
  159. package/dist/src/components/image/bundle.js.gz +0 -0
  160. package/dist/src/components/image/image.component.d.ts +10 -1
  161. package/dist/src/components/image/image.component.js +13 -3
  162. package/dist/src/components/image/image.style.js +19 -26
  163. package/dist/src/components/input/bundle.js +420 -644
  164. package/dist/src/components/input/bundle.js.gz +0 -0
  165. package/dist/src/components/input/input.component.d.ts +16 -3
  166. package/dist/src/components/input/input.component.js +43 -27
  167. package/dist/src/components/input/input.style.d.ts +1 -1
  168. package/dist/src/components/input/input.style.js +331 -634
  169. package/dist/src/components/kv-secret-select/bundle.js +2 -1
  170. package/dist/src/components/kv-secret-select/bundle.js.gz +0 -0
  171. package/dist/src/components/kv-secret-select/kv-secret-select.component.d.ts +3 -0
  172. package/dist/src/components/kv-secret-select/kv-secret-select.component.js +4 -0
  173. package/dist/src/components/label/bundle.js +37 -60
  174. package/dist/src/components/label/bundle.js.gz +0 -0
  175. package/dist/src/components/label/label.component.d.ts +8 -4
  176. package/dist/src/components/label/label.component.js +9 -14
  177. package/dist/src/components/label/label.style.js +17 -25
  178. package/dist/src/components/label/label.style.variables.js +18 -18
  179. package/dist/src/components/layout/bundle.js +86 -70
  180. package/dist/src/components/layout/bundle.js.gz +0 -0
  181. package/dist/src/components/layout/content.component.d.ts +2 -1
  182. package/dist/src/components/layout/content.component.js +2 -1
  183. package/dist/src/components/layout/content.style.js +3 -3
  184. package/dist/src/components/layout/footer.component.d.ts +2 -1
  185. package/dist/src/components/layout/footer.component.js +3 -2
  186. package/dist/src/components/layout/footer.style.js +7 -7
  187. package/dist/src/components/layout/header.component.d.ts +2 -1
  188. package/dist/src/components/layout/header.component.js +3 -2
  189. package/dist/src/components/layout/header.style.js +7 -7
  190. package/dist/src/components/layout/layout.component.d.ts +4 -7
  191. package/dist/src/components/layout/layout.component.js +9 -22
  192. package/dist/src/components/layout/layout.style.js +1 -1
  193. package/dist/src/components/layout/sider.component.d.ts +3 -1
  194. package/dist/src/components/layout/sider.component.js +3 -1
  195. package/dist/src/components/layout/sider.style.js +29 -29
  196. package/dist/src/components/menu/bundle.js +135 -125
  197. package/dist/src/components/menu/bundle.js.gz +0 -0
  198. package/dist/src/components/menu/menu.component.d.ts +2 -1
  199. package/dist/src/components/menu/menu.component.js +1 -0
  200. package/dist/src/components/menu/menu.style.js +87 -87
  201. package/dist/src/components/modal/bundle.js +105 -96
  202. package/dist/src/components/modal/bundle.js.gz +0 -0
  203. package/dist/src/components/modal/modal.component.d.ts +2 -1
  204. package/dist/src/components/modal/modal.component.js +1 -0
  205. package/dist/src/components/modal/modal.style.js +69 -71
  206. package/dist/src/components/panel/bundle.js +190 -391
  207. package/dist/src/components/panel/bundle.js.gz +0 -0
  208. package/dist/src/components/panel/panel.component.d.ts +2 -1
  209. package/dist/src/components/panel/panel.component.js +1 -0
  210. package/dist/src/components/panel/panel.style.js +65 -65
  211. package/dist/src/components/popconfirm/bundle.js +107 -93
  212. package/dist/src/components/popconfirm/bundle.js.gz +0 -0
  213. package/dist/src/components/popconfirm/popconfirm-manager.component.d.ts +2 -1
  214. package/dist/src/components/popconfirm/popconfirm-manager.component.js +1 -0
  215. package/dist/src/components/popconfirm/popconfirm-manager.style.js +16 -16
  216. package/dist/src/components/popconfirm/popconfirm.component.d.ts +2 -1
  217. package/dist/src/components/popconfirm/popconfirm.component.js +9 -5
  218. package/dist/src/components/popconfirm/popconfirm.style.js +43 -43
  219. package/dist/src/components/radio/bundle.js +56 -86
  220. package/dist/src/components/radio/bundle.js.gz +0 -0
  221. package/dist/src/components/radio/radio.component.d.ts +8 -2
  222. package/dist/src/components/radio/radio.component.js +17 -9
  223. package/dist/src/components/radio/radio.style.js +30 -77
  224. package/dist/src/components/radio-group/bundle.js +125 -89
  225. package/dist/src/components/radio-group/bundle.js.gz +0 -0
  226. package/dist/src/components/radio-group/radio-group.component.d.ts +5 -1
  227. package/dist/src/components/radio-group/radio-group.component.js +18 -10
  228. package/dist/src/components/radio-group/radio-group.style.js +44 -44
  229. package/dist/src/components/select/bundle.js +260 -367
  230. package/dist/src/components/select/bundle.js.gz +0 -0
  231. package/dist/src/components/select/select.component.d.ts +12 -17
  232. package/dist/src/components/select/select.component.js +35 -35
  233. package/dist/src/components/select/select.style.js +184 -324
  234. package/dist/src/components/skeleton/bundle.js +82 -162
  235. package/dist/src/components/skeleton/bundle.js.gz +0 -0
  236. package/dist/src/components/skeleton/skeleton.component.d.ts +10 -5
  237. package/dist/src/components/skeleton/skeleton.component.js +20 -7
  238. package/dist/src/components/skeleton/skeleton.style.js +34 -133
  239. package/dist/src/components/slider-input/bundle.js +89 -88
  240. package/dist/src/components/slider-input/bundle.js.gz +0 -0
  241. package/dist/src/components/slider-input/slider-input.component.d.ts +11 -0
  242. package/dist/src/components/slider-input/slider-input.component.js +20 -8
  243. package/dist/src/components/slider-input/slider-input.style.js +47 -47
  244. package/dist/src/components/slider-input/slider-input.style.variables.js +32 -32
  245. package/dist/src/components/table/bundle.js +149 -128
  246. package/dist/src/components/table/bundle.js.gz +0 -0
  247. package/dist/src/components/table/table.component.d.ts +2 -1
  248. package/dist/src/components/table/table.component.js +1 -0
  249. package/dist/src/components/table/table.style.js +79 -79
  250. package/dist/src/components/tabs/bundle.js +462 -663
  251. package/dist/src/components/tabs/bundle.js.gz +0 -0
  252. package/dist/src/components/tabs/tabs.component.d.ts +6 -1
  253. package/dist/src/components/tabs/tabs.component.js +8 -1
  254. package/dist/src/components/tabs/tabs.style.js +200 -201
  255. package/dist/src/components/tag/bundle.js +44 -36
  256. package/dist/src/components/tag/bundle.js.gz +0 -0
  257. package/dist/src/components/tag/tag.component.d.ts +7 -6
  258. package/dist/src/components/tag/tag.component.js +10 -19
  259. package/dist/src/components/tag/tag.style.js +20 -24
  260. package/dist/src/components/textarea/bundle.js +131 -94
  261. package/dist/src/components/textarea/bundle.js.gz +0 -0
  262. package/dist/src/components/textarea/textarea.component.d.ts +7 -1
  263. package/dist/src/components/textarea/textarea.component.js +10 -3
  264. package/dist/src/components/textarea/textarea.style.d.ts +1 -13
  265. package/dist/src/components/textarea/textarea.style.js +79 -91
  266. package/dist/src/components/timeline/bundle.js +71 -134
  267. package/dist/src/components/timeline/bundle.js.gz +0 -0
  268. package/dist/src/components/timeline/timeline.component.d.ts +9 -6
  269. package/dist/src/components/timeline/timeline.component.js +16 -13
  270. package/dist/src/components/timeline/timeline.style.d.ts +0 -7
  271. package/dist/src/components/timeline/timeline.style.js +41 -122
  272. package/dist/src/components/timepicker/bundle.js +196 -166
  273. package/dist/src/components/timepicker/bundle.js.gz +0 -0
  274. package/dist/src/components/timepicker/timepicker.component.d.ts +2 -1
  275. package/dist/src/components/timepicker/timepicker.component.js +1 -0
  276. package/dist/src/components/timepicker/timepicker.style.js +42 -42
  277. package/dist/src/components/timepicker/timepicker.style.variables.js +91 -91
  278. package/dist/src/components/toast/bundle.js +97 -81
  279. package/dist/src/components/toast/bundle.js.gz +0 -0
  280. package/dist/src/components/toast/toast.component.d.ts +2 -1
  281. package/dist/src/components/toast/toast.component.js +1 -0
  282. package/dist/src/components/toast/toast.style.js +62 -62
  283. package/dist/src/components/tooltips/bundle.js +10 -10
  284. package/dist/src/components/tooltips/bundle.js.gz +0 -0
  285. package/dist/src/components/tooltips/tooltips.component.d.ts +8 -0
  286. package/dist/src/components/tooltips/tooltips.component.js +9 -1
  287. package/dist/src/components/tooltips/tooltips.style.js +6 -6
  288. package/dist/src/components/video/bundle.js +47 -36
  289. package/dist/src/components/video/bundle.js.gz +0 -0
  290. package/dist/src/components/video/video.component.d.ts +12 -1
  291. package/dist/src/components/video/video.component.js +18 -6
  292. package/dist/src/components/video/video.style.js +18 -24
  293. package/package.json +25 -12
  294. package/packages/common/dist/VERSIONS.md +2 -2
  295. package/packages/common/dist/shared/base-mixin.d.ts +21 -19
  296. package/packages/common/dist/shared/base-mixin.d.ts.map +1 -1
  297. package/packages/common/dist/shared/base-mixin.js +102 -18
  298. package/packages/common/dist/shared/base-mixin.js.map +1 -1
  299. package/packages/common/dist/shared/index.d.ts +1 -0
  300. package/packages/common/dist/shared/index.d.ts.map +1 -1
  301. package/packages/common/dist/shared/index.js +2 -0
  302. package/packages/common/dist/shared/index.js.map +1 -1
  303. package/packages/common/dist/shared/style-injector.d.ts +11 -0
  304. package/packages/common/dist/shared/style-injector.d.ts.map +1 -0
  305. package/packages/common/dist/shared/style-injector.js +53 -0
  306. package/packages/common/dist/shared/style-injector.js.map +1 -0
  307. package/packages/common/dist/shared/theme-mixin.d.ts +2 -24
  308. package/packages/common/dist/shared/theme-mixin.d.ts.map +1 -1
  309. package/packages/common/dist/shared/theme-mixin.js +5 -38
  310. package/packages/common/dist/shared/theme-mixin.js.map +1 -1
  311. package/packages/themes/dist/default.css +0 -10
  312. package/packages/themes/dist/package.json +1 -1
@@ -1,14 +1,14 @@
1
- import{css as t,LitElement as e,html as r}from"lit";import{query as a,property as i,state as o,customElement as s}from"lit/decorators.js";import{NuralyUIBaseMixin as n}from"@nuralyui/common/mixins";import{renderValidationIcon as l,renderClearButton as d}from"@nuralyui/common/utils";import{BaseComponentController as h,BaseValidationController as c}from"@nuralyui/common/controllers";const u=t`
1
+ import{css as t,nothing as e,html as i,LitElement as s}from"lit";import{query as r,property as o,state as n,customElement as a}from"lit/decorators.js";import"lit/directives/if-defined.js";const l=t`
2
2
  :host {
3
3
  display: block;
4
4
  position: relative;
5
- font-family: var(--nuraly-font-family-textarea, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif);
5
+ font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
6
6
  }
7
7
 
8
8
  .textarea-container {
9
9
  display: flex;
10
10
  flex-direction: column;
11
- gap: var(--nuraly-spacing-textarea-gap, 8px);
11
+ gap: 8px;
12
12
  width: 100%;
13
13
  }
14
14
 
@@ -16,21 +16,21 @@ import{css as t,LitElement as e,html as r}from"lit";import{query as a,property a
16
16
  display: flex;
17
17
  align-items: center;
18
18
  gap: 4px;
19
- font-size: var(--nuraly-font-size-textarea, 16px);
19
+ font-size: 16px;
20
20
  font-weight: 500;
21
- color: var(--nuraly-color-textarea-label, #262626);
22
- line-height: var(--nuraly-line-height-textarea, 1.5);
21
+ color: #262626;
22
+ line-height: 1.5;
23
23
  }
24
24
 
25
25
  .required-indicator {
26
- color: var(--nuraly-color-textarea-error, #ef4444);
26
+ color: #ef4444;
27
27
  font-weight: 600;
28
28
  }
29
29
 
30
30
  .textarea-wrapper {
31
31
  display: flex;
32
32
  align-items: flex-start;
33
- gap: var(--nuraly-spacing-textarea-gap, 8px);
33
+ gap: 8px;
34
34
  position: relative;
35
35
  }
36
36
 
@@ -38,7 +38,7 @@ import{css as t,LitElement as e,html as r}from"lit";import{query as a,property a
38
38
  .addon-after {
39
39
  display: flex;
40
40
  align-items: flex-start;
41
- padding-top: var(--nuraly-padding-textarea, 12px);
41
+ padding-top: 12px;
42
42
  }
43
43
 
44
44
  .textarea-input-container {
@@ -51,89 +51,89 @@ import{css as t,LitElement as e,html as r}from"lit";import{query as a,property a
51
51
  .textarea-element {
52
52
  width: 100%;
53
53
  min-height: 80px;
54
- padding: var(--nuraly-padding-textarea, 12px);
55
- border-top: var(--nuraly-border-width-textarea, 1px) solid var(--nuraly-color-textarea-border, #d9d9d9);
56
- border-left: var(--nuraly-border-width-textarea, 1px) solid var(--nuraly-color-textarea-border, #d9d9d9);
57
- border-right: var(--nuraly-border-width-textarea, 1px) solid var(--nuraly-color-textarea-border, #d9d9d9);
58
- border-bottom: var(--nuraly-border-width-textarea, 1px) solid var(--nuraly-color-textarea-border-bottom, var(--nuraly-color-textarea-border, #d9d9d9));
59
- border-radius: var(--nuraly-border-radius-textarea, 6px);
60
- background-color: var(--nuraly-color-textarea-background, #ffffff);
61
- color: var(--nuraly-color-textarea-text, #262626);
62
- font-family: var(--nuraly-font-family-textarea, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif);
63
- font-size: var(--nuraly-font-size-textarea, 16px);
64
- line-height: var(--nuraly-line-height-textarea, 1.5);
54
+ padding: 12px;
55
+ border-top: 1px solid #d9d9d9;
56
+ border-left: 1px solid #d9d9d9;
57
+ border-right: 1px solid #d9d9d9;
58
+ border-bottom: 1px solid #d9d9d9;
59
+ border-radius: 6px;
60
+ background-color: #ffffff;
61
+ color: #262626;
62
+ font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
63
+ font-size: 16px;
64
+ line-height: 1.5;
65
65
  outline: none;
66
66
  transition: border-color 0.2s ease-in-out;
67
67
  box-sizing: border-box;
68
68
  }
69
69
 
70
70
  .textarea-element::placeholder {
71
- color: var(--nuraly-color-textarea-placeholder, #8c8c8c);
71
+ color: #8c8c8c;
72
72
  }
73
73
 
74
74
  .textarea-element:hover:not(:disabled):not(:focus) {
75
- border-top-color: var(--nuraly-color-textarea-border-hover, #7c3aed);
76
- border-left-color: var(--nuraly-color-textarea-border-hover, #7c3aed);
77
- border-right-color: var(--nuraly-color-textarea-border-hover, #7c3aed);
78
- border-bottom-color: var(--nuraly-color-textarea-border-hover, #7c3aed);
75
+ border-top-color: #7c3aed;
76
+ border-left-color: #7c3aed;
77
+ border-right-color: #7c3aed;
78
+ border-bottom-color: #7c3aed;
79
79
  }
80
80
 
81
81
  .textarea-element:focus {
82
- border-top-color: var(--nuraly-color-textarea-border-focus, #7c3aed);
83
- border-left-color: var(--nuraly-color-textarea-border-focus, #7c3aed);
84
- border-right-color: var(--nuraly-color-textarea-border-focus, #7c3aed);
85
- border-bottom-color: var(--nuraly-color-textarea-border-focus, #7c3aed);
86
- box-shadow: 0 0 0 1px var(--nuraly-color-textarea-border-focus, #7c3aed);
82
+ border-top-color: #7c3aed;
83
+ border-left-color: #7c3aed;
84
+ border-right-color: #7c3aed;
85
+ border-bottom-color: #7c3aed;
86
+ box-shadow: 0 0 0 1px #7c3aed;
87
87
  }
88
88
 
89
89
  .textarea-element:disabled {
90
- background-color: var(--nuraly-color-surface-disabled, #f5f5f5);
91
- color: var(--nuraly-color-text-disabled, #8c8c8c);
92
- border-color: var(--nuraly-color-border-disabled, #d9d9d9);
90
+ background-color: #f5f5f5;
91
+ color: #8c8c8c;
92
+ border-color: #d9d9d9;
93
93
  cursor: not-allowed;
94
94
  resize: none;
95
95
  }
96
96
 
97
97
  .textarea-element:disabled {
98
- background-color: var(--nuraly-color-surface-disabled, #f5f5f5);
99
- color: var(--nuraly-color-text-disabled, #8c8c8c);
100
- border-color: var(--nuraly-color-border-disabled, #d9d9d9);
98
+ background-color: #f5f5f5;
99
+ color: #8c8c8c;
100
+ border-color: #d9d9d9;
101
101
  cursor: not-allowed;
102
102
  resize: none;
103
103
  }
104
104
 
105
105
  .textarea-element:read-only {
106
- background-color: var(--nuraly-color-surface-readonly, #f9f9f9);
106
+ background-color: #f9f9f9;
107
107
  cursor: default;
108
108
  }
109
109
 
110
110
  /* Size variants */
111
111
  .size-small .textarea-element {
112
- font-size: var(--nuraly-font-size-textarea-small, 14px);
113
- padding: calc(var(--nuraly-padding-textarea, 12px) * 0.75);
112
+ font-size: 14px;
113
+ padding: calc(12px * 0.75);
114
114
  min-height: 60px;
115
115
  }
116
116
 
117
117
  .size-large .textarea-element {
118
- font-size: var(--nuraly-font-size-textarea-large, 18px);
119
- padding: calc(var(--nuraly-padding-textarea, 12px) * 1.25);
118
+ font-size: 18px;
119
+ padding: calc(12px * 1.25);
120
120
  min-height: 100px;
121
121
  }
122
122
 
123
123
  /* Variant styles */
124
124
  .variant-outlined .textarea-element {
125
- border: var(--nuraly-border-width-textarea, 1px) solid var(--nuraly-color-textarea-border, #d9d9d9);
126
- background-color: var(--nuraly-color-textarea-background, #ffffff);
125
+ border: 1px solid #d9d9d9;
126
+ background-color: #ffffff;
127
127
  }
128
128
 
129
129
  .variant-filled .textarea-element {
130
- border: var(--nuraly-border-width-textarea, 1px) solid transparent;
131
- background-color: var(--nuraly-color-surface-secondary, #f5f5f5);
130
+ border: 1px solid transparent;
131
+ background-color: #f5f5f5;
132
132
  }
133
133
 
134
134
  .variant-filled .textarea-element:focus {
135
- background-color: var(--nuraly-color-textarea-background, #ffffff);
136
- border-color: var(--nuraly-color-textarea-border-focus, #7c3aed);
135
+ background-color: #ffffff;
136
+ border-color: #7c3aed;
137
137
  }
138
138
 
139
139
  .variant-borderless .textarea-element {
@@ -145,7 +145,7 @@ import{css as t,LitElement as e,html as r}from"lit";import{query as a,property a
145
145
 
146
146
  .variant-underlined .textarea-element {
147
147
  border: none;
148
- border-bottom: var(--nuraly-border-width-textarea, 1px) solid var(--nuraly-color-textarea-border, #d9d9d9);
148
+ border-bottom: 1px solid #d9d9d9;
149
149
  border-radius: 0;
150
150
  background-color: transparent;
151
151
  padding-left: 0;
@@ -153,57 +153,57 @@ import{css as t,LitElement as e,html as r}from"lit";import{query as a,property a
153
153
  }
154
154
 
155
155
  .variant-underlined .textarea-element:focus {
156
- border-bottom-color: var(--nuraly-color-textarea-border-focus, #7c3aed);
156
+ border-bottom-color: #7c3aed;
157
157
  box-shadow: none;
158
158
  }
159
159
 
160
160
  /* State styles */
161
161
  .state-error .textarea-element,
162
162
  .validation-error .textarea-element {
163
- border-color: var(--nuraly-color-textarea-error, #ef4444);
163
+ border-color: #ef4444;
164
164
  }
165
165
 
166
166
  .state-error .textarea-element:focus,
167
167
  .validation-error .textarea-element:focus {
168
- border-color: var(--nuraly-color-textarea-error, #ef4444);
169
- box-shadow: 0 0 0 1px var(--nuraly-color-textarea-error, #ef4444);
168
+ border-color: #ef4444;
169
+ box-shadow: 0 0 0 1px #ef4444;
170
170
  }
171
171
 
172
172
  .state-warning .textarea-element,
173
173
  .validation-warning .textarea-element {
174
- border-color: var(--nuraly-color-textarea-warning, #f59e0b);
174
+ border-color: #f59e0b;
175
175
  }
176
176
 
177
177
  .state-warning .textarea-element:focus,
178
178
  .validation-warning .textarea-element:focus {
179
- border-color: var(--nuraly-color-textarea-warning, #f59e0b);
180
- box-shadow: 0 0 0 1px var(--nuraly-color-textarea-warning, #f59e0b);
179
+ border-color: #f59e0b;
180
+ box-shadow: 0 0 0 1px #f59e0b;
181
181
  }
182
182
 
183
183
  /* Icons */
184
184
  .validation-icon,
185
185
  .clear-button {
186
186
  position: absolute;
187
- top: var(--nuraly-padding-textarea, 12px);
188
- right: var(--nuraly-padding-textarea, 12px);
187
+ top: 12px;
188
+ right: 12px;
189
189
  z-index: 1;
190
190
  }
191
191
 
192
192
  .validation-icon {
193
- color: var(--nuraly-color-textarea-icon, #8c8c8c);
193
+ color: #8c8c8c;
194
194
  pointer-events: none;
195
195
  }
196
196
 
197
197
  .validation-icon.error {
198
- color: var(--nuraly-color-textarea-error, #ef4444);
198
+ color: #ef4444;
199
199
  }
200
200
 
201
201
  .validation-icon.warning {
202
- color: var(--nuraly-color-textarea-warning, #f59e0b);
202
+ color: #f59e0b;
203
203
  }
204
204
 
205
205
  .validation-icon.success {
206
- color: var(--nuraly-color-textarea-success, #10b981);
206
+ color: #10b981;
207
207
  }
208
208
 
209
209
  .clear-button {
@@ -213,25 +213,25 @@ import{css as t,LitElement as e,html as r}from"lit";import{query as a,property a
213
213
  background: none;
214
214
  border: none;
215
215
  cursor: pointer;
216
- color: var(--nuraly-color-textarea-icon, #8c8c8c);
216
+ color: #8c8c8c;
217
217
  padding: 2px;
218
218
  border-radius: 4px;
219
219
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
220
220
  }
221
221
 
222
222
  .clear-button:hover {
223
- color: var(--nuraly-color-textarea-icon-hover, #7c3aed);
224
- background-color: var(--nuraly-color-surface-hover, rgba(0, 0, 0, 0.05));
223
+ color: #7c3aed;
224
+ background-color: rgba(0, 0, 0, 0.05);
225
225
  }
226
226
 
227
227
  .clear-button:active {
228
- color: var(--nuraly-color-textarea-icon-active, #6d28d9);
228
+ color: #6d28d9;
229
229
  }
230
230
 
231
231
  /* Adjust textarea padding when icons are present */
232
232
  :host([allow-clear]) .textarea-element,
233
233
  :host([has-feedback]) .textarea-element {
234
- padding-right: calc(var(--nuraly-padding-textarea, 12px) + 16px + 8px);
234
+ padding-right: calc(12px + 16px + 8px);
235
235
  }
236
236
 
237
237
  /* Footer */
@@ -239,15 +239,15 @@ import{css as t,LitElement as e,html as r}from"lit";import{query as a,property a
239
239
  display: flex;
240
240
  justify-content: space-between;
241
241
  align-items: flex-start;
242
- gap: var(--nuraly-spacing-textarea-gap, 8px);
242
+ gap: 8px;
243
243
  min-height: 20px;
244
244
  }
245
245
 
246
246
  .helper-text {
247
247
  flex: 1;
248
- font-size: var(--nuraly-font-size-textarea-small, 14px);
248
+ font-size: 14px;
249
249
  line-height: 1.4;
250
- color: var(--nuraly-color-textarea-helper-text, #666666);
250
+ color: #666666;
251
251
  }
252
252
 
253
253
  .validation-message {
@@ -259,26 +259,26 @@ import{css as t,LitElement as e,html as r}from"lit";import{query as a,property a
259
259
  }
260
260
 
261
261
  .validation-message.error {
262
- color: var(--nuraly-color-textarea-error, #ef4444);
262
+ color: #ef4444;
263
263
  }
264
264
 
265
265
  .validation-message.warning {
266
- color: var(--nuraly-color-textarea-warning, #f59e0b);
266
+ color: #f59e0b;
267
267
  }
268
268
 
269
269
  .validation-message.success {
270
- color: var(--nuraly-color-textarea-success, #10b981);
270
+ color: #10b981;
271
271
  }
272
272
 
273
273
  .character-count {
274
- font-size: var(--nuraly-font-size-textarea-small, 14px);
275
- color: var(--nuraly-color-textarea-counter, #666666);
274
+ font-size: 14px;
275
+ color: #666666;
276
276
  white-space: nowrap;
277
277
  line-height: 1.4;
278
278
  }
279
279
 
280
280
  .character-count.over-limit {
281
- color: var(--nuraly-color-textarea-counter-over, #ef4444);
281
+ color: #ef4444;
282
282
  font-weight: 500;
283
283
  }
284
284
 
@@ -288,7 +288,7 @@ import{css as t,LitElement as e,html as r}from"lit";import{query as a,property a
288
288
  flex-direction: column;
289
289
  align-items: stretch;
290
290
  }
291
-
291
+
292
292
  .character-count {
293
293
  text-align: right;
294
294
  }
@@ -296,7 +296,7 @@ import{css as t,LitElement as e,html as r}from"lit";import{query as a,property a
296
296
 
297
297
  /* Focus-visible for accessibility */
298
298
  .textarea-element:focus-visible {
299
- outline: 2px solid var(--nuraly-color-textarea-border-focus, #7c3aed);
299
+ outline: 2px solid #7c3aed;
300
300
  outline-offset: 2px;
301
301
  }
302
302
 
@@ -305,9 +305,9 @@ import{css as t,LitElement as e,html as r}from"lit";import{query as a,property a
305
305
  .textarea-element {
306
306
  border-width: 2px;
307
307
  }
308
-
308
+
309
309
  .textarea-element:focus {
310
- box-shadow: 0 0 0 2px var(--nuraly-color-textarea-border-focus, #7c3aed);
310
+ box-shadow: 0 0 0 2px #7c3aed;
311
311
  }
312
312
  }
313
313
 
@@ -324,35 +324,57 @@ import{css as t,LitElement as e,html as r}from"lit";import{query as a,property a
324
324
  * ======================================== */
325
325
 
326
326
  /* No theme-specific overrides - themes handle styling through CSS variables */
327
- `,v=3,p=50;
327
+ `,h=3,d=50,c=t=>class extends t{constructor(){super(...arguments),this.handleSystemThemeChange=()=>{this.closest("[data-theme]")||document.documentElement.hasAttribute("data-theme")||this.requestUpdate()}}connectedCallback(){super.connectedCallback(),this.setupThemeObserver(),this.setupDesignSystemObserver(),this.setupSystemThemeListener()}disconnectedCallback(){var t,e,i;super.disconnectedCallback(),null===(t=this.themeObserver)||void 0===t||t.disconnect(),null===(e=this.designSystemObserver)||void 0===e||e.disconnect(),null===(i=this.mediaQuery)||void 0===i||i.removeEventListener("change",this.handleSystemThemeChange)}get currentTheme(){var t,e;const i=(null===(t=this.closest("[data-theme]"))||void 0===t?void 0:t.getAttribute("data-theme"))||document.documentElement.getAttribute("data-theme");return i||((null===(e=window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light")}get currentDesignSystem(){var t;const e=(null===(t=this.closest("[design-system]"))||void 0===t?void 0:t.getAttribute("design-system"))||document.documentElement.getAttribute("design-system");return"carbon"===e?e:"default"}setupThemeObserver(){this.themeObserver=new MutationObserver(()=>{this.requestUpdate()}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}setupDesignSystemObserver(){this.designSystemObserver=new MutationObserver(()=>{this.requestUpdate()}),this.designSystemObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["design-system"]})}setupSystemThemeListener(){window.matchMedia&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQuery.addEventListener("change",this.handleSystemThemeChange))}},u=()=>{var t;return void 0!==globalThis.litElementVersions||"undefined"!=typeof process&&"development"===(null===(t=process.env)||void 0===t?void 0:t.NODE_ENV)||"undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname)},v=t=>class extends t{constructor(){super(...arguments),this.requiredComponents=[]}validateDependencies(){if(u())for(const t of this.requiredComponents)if(!this.isComponentAvailable(t))throw new Error(`Required component "${t}" is not registered. Please import and register the component before using ${this.tagName.toLowerCase()}. Example: import '@nuralyui/${t}';`)}validateDependenciesWithHandler(t){if(!u())return!0;let e=!0;for(const i of this.requiredComponents)if(!this.isComponentAvailable(i)){e=!1;const s=new Error(`Required component "${i}" is not registered. Please import and register the component before using ${this.tagName.toLowerCase()}.`);t?t(i,s):console.error(s.message)}return e}isComponentAvailable(t){return!!customElements.get(t)}getMissingDependencies(){return this.requiredComponents.filter(t=>!this.isComponentAvailable(t))}areDependenciesAvailable(){return this.requiredComponents.every(t=>this.isComponentAvailable(t))}addRequiredComponent(t){this.requiredComponents.includes(t)||this.requiredComponents.push(t)}removeRequiredComponent(t){const e=this.requiredComponents.indexOf(t);e>-1&&this.requiredComponents.splice(e,1)}},p=t=>class extends t{dispatchCustomEvent(t,e){this.dispatchEvent(new CustomEvent(t,{detail:e,bubbles:!0,composed:!0}))}dispatchEventWithMetadata(t,e){var i;const s=Object.assign(Object.assign({},e),{timestamp:Date.now(),componentName:(null===(i=this.tagName)||void 0===i?void 0:i.toLowerCase())||"unknown"});this.dispatchCustomEvent(t,s)}dispatchInputEvent(t,e){const i=Object.assign({target:e.target||this,value:e.value,originalEvent:e.originalEvent},e);this.dispatchCustomEvent(t,i)}dispatchFocusEvent(t,e){const i=Object.assign({target:e.target||this,value:e.value,focused:e.focused,cursorPosition:e.cursorPosition,selectedText:e.selectedText},e);this.dispatchCustomEvent(t,i)}dispatchValidationEvent(t,e){var i;const s=Object.assign({target:e.target||this,value:e.value,isValid:null!==(i=e.isValid)&&void 0!==i&&i,error:e.error},e);this.dispatchCustomEvent(t,s)}dispatchActionEvent(t,e){const i=Object.assign({target:e.target||this,action:e.action,previousValue:e.previousValue,newValue:e.newValue},e);this.dispatchCustomEvent(t,i)}isReadonlyKeyAllowed(t){if(t.ctrlKey||t.metaKey){return["KeyA","KeyC"].includes(t.code)}return["Tab","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(t.key)}isActivationKey(t){return"Enter"===t.key||" "===t.key}},b=new Set,m=new Map;
328
+ /**
329
+ * @license
330
+ * Copyright 2023 Nuraly, Laabidi Aymen
331
+ * SPDX-License-Identifier: MIT
332
+ */
333
+ const f=t=>{class e extends t{constructor(){super(...arguments),this.t=null}createRenderRoot(){return this.constructor.useShadowDom?super.createRenderRoot():this}connectedCallback(){const t=this.constructor.useShadowDom;if(!t&&null===this.t)for(this.t=[];this.firstChild;)this.t.push(this.removeChild(this.firstChild));if(super.connectedCallback(),!t){const t=this.constructor,e=this.tagName.toLowerCase(),i=t.styles;if(i){const t=g(i);t&&function(t,e,i){var s;if(!m.has(t)){const i=new CSSStyleSheet;i.replaceSync(e),m.set(t,i)}const r=m.get(t),o=`doc:${t}`;if(b.has(o)||(document.adoptedStyleSheets=[...document.adoptedStyleSheets,r],b.add(o)),i){let e=i;for(;e;){const i=e.getRootNode();if(!(i instanceof ShadowRoot))break;{const o=`shadow:${((null===(s=i.host)||void 0===s?void 0:s.tagName)||"").toLowerCase()}:${t}`;b.has(o)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,r],b.add(o)),e=i.host}}}}(e,t,this)}}}get lightChildren(){return this.t?this.t.filter(t=>!(t instanceof Element&&t.hasAttribute("slot"))):[]}lightChildrenNamed(t){return this.t?this.t.filter(e=>e instanceof Element&&e.getAttribute("slot")===t):[]}}return e.useShadowDom=!1,e};function g(t){return Array.isArray(t)?t.map(t=>g(t)).filter(Boolean).join("\n"):t&&"string"==typeof t.cssText?t.cssText:"string"==typeof t?t:""}
334
+ /**
335
+ * @license
336
+ * Copyright 2023 Nuraly, Laabidi Aymen
337
+ * SPDX-License-Identifier: MIT
338
+ */
328
339
  /**
329
340
  * @license
330
341
  * Copyright 2023 Nuraly, Laabidi Aymen
331
342
  * SPDX-License-Identifier: MIT
332
343
  */
333
- class x extends h{requestHostUpdate(){this.requestUpdate()}}
344
+ class x{constructor(t){this._host=t,t.addController(this)}get host(){return this._host}hostConnected(){}hostDisconnected(){}hostUpdate(){}hostUpdated(){}requestUpdate(){try{this._host.requestUpdate()}catch(t){this.handleError(t,"requestUpdate")}}dispatchEvent(t){try{return this._host.dispatchEvent(t)}catch(t){return this.handleError(t,"dispatchEvent"),!1}}handleError(t,e){console.error(`[${this.constructor.name}] Error in ${e}:`,t);try{this._host.dispatchEvent(new CustomEvent("nr-controller-error",{detail:{error:t.message,context:e,controller:this.constructor.name},bubbles:!0,composed:!0}))}catch(t){}}safeExecute(t,e,i){try{return t()}catch(t){return this.handleError(t,e),i}}debounce(t,e){let i;const s=(...s)=>{void 0!==i&&clearTimeout(i),i=setTimeout(()=>{i=void 0,t.apply(this,s)},e)};return s.cancel=()=>{void 0!==i&&(clearTimeout(i),i=void 0)},s}}
345
+ /**
346
+ * @license
347
+ * Copyright 2023 Nuraly, Laabidi Aymen
348
+ * SPDX-License-Identifier: MIT
349
+ */class w extends x{constructor(){super(...arguments),this._isValid=!0,this._validationMessage="",this._validationState="pristine",this._rules=[]}get isValid(){return this._isValid}get validationMessage(){return this._validationMessage}get validationState(){return this._validationState}addRule(t){this._rules.push(t),this.requestUpdate()}removeRule(t){this._rules=this._rules.filter(e=>!t(e)),this.requestUpdate()}clearRules(){this._rules=[],this.clearValidation()}clearValidation(){this._isValid=!0,this._validationMessage="",this._validationState="pristine",this.requestUpdate(),this.dispatchValidationEvent()}checkValidity(){return this.validate()}reportValidity(){const t=this.checkValidity();return t||this.dispatchValidationEvent(),t}dispatchValidationEvent(){this.dispatchEvent(new CustomEvent("nr-validation",{detail:{isValid:this._isValid,validationMessage:this._validationMessage,validationState:this._validationState},bubbles:!0,composed:!0}))}}
350
+ /**
351
+ * @license
352
+ * Copyright 2023 Nuraly, Laabidi Aymen
353
+ * SPDX-License-Identifier: MIT
354
+ */class y extends x{requestHostUpdate(){this.requestUpdate()}}
334
355
  /**
335
356
  * @license
336
357
  * Copyright 2023 Nuraly, Laabidi Aymen
337
358
  * SPDX-License-Identifier: MIT
338
- */var b=function(t,e,r,a){return new(r||(r=Promise))(function(i,o){function s(t){try{l(a.next(t))}catch(t){o(t)}}function n(t){try{l(a.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,n)}l((a=a.apply(t,e||[])).next())})};class f extends c{constructor(){super(...arguments),this._validationDebounceMs=300}get validationHost(){return this._host}get validationResult(){return this._validationResult}setValidationDebounce(t){this._validationDebounceMs=t}validate(){return b(this,void 0,void 0,function*(){return(yield this.validateTextarea()).isValid})}validateTextarea(t){return b(this,void 0,void 0,function*(){const e=null!=t?t:this.validationHost.value,r=this.validationHost.rules||[];if(0===r.length)return this._validationResult=void 0,{isValid:!0,messages:[],level:"success",blocking:!1};const a=[];let i=!1,o=!1,s=!1;for(const t of r)try{(yield t.validator(e))||(a.push(t.message),"error"!==t.level&&t.level?"warning"===t.level&&(o=!0):(i=!0,!1!==t.blocking&&(s=!0)))}catch(t){this.handleError(t,"validation"),a.push(`Validation error: ${t}`),i=!0,s=!0}const n=i?"error":o?"warning":"success";return this._validationResult={isValid:!i&&!o,messages:a,level:n,blocking:s},this._isValid=this._validationResult.isValid,this._validationMessage=a.join(", "),this._validationState="success"===n?"valid":n,this.updateHostValidationState(),this.dispatchTextareaValidationEvent(),this._validationResult})}validateDebounced(t){return new Promise(e=>{this._validationTimeout&&clearTimeout(this._validationTimeout),this._validationTimeout=setTimeout(()=>b(this,void 0,void 0,function*(){const r=yield this.validateTextarea(t);e(r)}),this._validationDebounceMs)})}validateOnChangeIfEnabled(t){return b(this,void 0,void 0,function*(){if(this.validationHost.validateOnChange&&(this.validationHost.rules||[]).length>0)return yield this.validateDebounced(t)})}validateOnBlurIfEnabled(t){return b(this,void 0,void 0,function*(){if(this.validationHost.validateOnBlur&&(this.validationHost.rules||[]).length>0)return yield this.validateTextarea(t)})}clearValidation(){this._validationResult=void 0,this._isValid=!0,this._validationMessage="",this._validationState="pristine",this._validationTimeout&&(clearTimeout(this._validationTimeout),this._validationTimeout=void 0),"default"!==this.validationHost.state&&(this.validationHost.state="default",this.requestUpdate()),this.dispatchTextareaValidationEvent()}isCurrentlyValid(){var t,e;return null===(e=null===(t=this._validationResult)||void 0===t?void 0:t.isValid)||void 0===e||e}isBlocking(){var t,e;return null!==(e=null===(t=this._validationResult)||void 0===t?void 0:t.blocking)&&void 0!==e&&e}getValidationMessages(){var t,e;return null!==(e=null===(t=this._validationResult)||void 0===t?void 0:t.messages)&&void 0!==e?e:[]}addRule(t){const e=this.validationHost.rules||[];e.push(t),this.validationHost.rules=e,this.requestUpdate()}removeRule(t){const e=this.validationHost.rules||[];this.validationHost.rules=e.filter(e=>!t(e)),this.requestUpdate()}clearRules(){this.validationHost.rules=[],this.clearValidation()}static createRequiredRule(t="This field is required"){return{validator:t=>t.trim().length>0,message:t,level:"error",blocking:!0}}static createMinLengthRule(t,e){return{validator:e=>e.length>=t,message:e||`Minimum ${t} characters required`,level:"error",blocking:!0}}static createMaxLengthRule(t,e){return{validator:e=>e.length<=t,message:e||`Maximum ${t} characters allowed`,level:"error",blocking:!0}}static createPatternRule(t,e){return{validator:e=>t.test(e),message:e,level:"error",blocking:!0}}updateHostValidationState(){if(!this._validationResult)return;const{level:t}=this._validationResult;"error"===t?this.validationHost.state="error":"warning"===t?this.validationHost.state="warning":this.validationHost.rules.length>0&&(this.validationHost.state="success"),this.requestUpdate()}dispatchTextareaValidationEvent(){var t,e,r,a,i,o,s,n;const l={isValid:null===(e=null===(t=this._validationResult)||void 0===t?void 0:t.isValid)||void 0===e||e,validationMessage:null!==(a=null===(r=this._validationResult)||void 0===r?void 0:r.messages.join(", "))&&void 0!==a?a:"",errors:null!==(o=null===(i=this._validationResult)||void 0===i?void 0:i.messages.filter(()=>{var t;return"error"===(null===(t=this._validationResult)||void 0===t?void 0:t.level)}))&&void 0!==o?o:[],warnings:null!==(n=null===(s=this._validationResult)||void 0===s?void 0:s.messages.filter(()=>{var t;return"warning"===(null===(t=this._validationResult)||void 0===t?void 0:t.level)}))&&void 0!==n?n:[],validationResult:this._validationResult||{isValid:!0,messages:[],level:"success",blocking:!1}};this.safeExecute(()=>this.dispatchEvent(new CustomEvent("nr-validation",{detail:l,bubbles:!0,composed:!0})),"dispatchValidationEvent")}hostDisconnected(){this._validationTimeout&&(clearTimeout(this._validationTimeout),this._validationTimeout=void 0)}}
359
+ */var E=function(t,e,i,s){return new(i||(i=Promise))(function(r,o){function n(t){try{l(s.next(t))}catch(t){o(t)}}function a(t){try{l(s.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(n,a)}l((s=s.apply(t,e||[])).next())})};class C extends w{constructor(){super(...arguments),this._validationDebounceMs=300}get validationHost(){return this._host}get validationResult(){return this._validationResult}setValidationDebounce(t){this._validationDebounceMs=t}validate(){return E(this,void 0,void 0,function*(){return(yield this.validateTextarea()).isValid})}validateTextarea(t){return E(this,void 0,void 0,function*(){const e=null!=t?t:this.validationHost.value,i=this.validationHost.rules||[];if(0===i.length)return this._validationResult=void 0,{isValid:!0,messages:[],level:"success",blocking:!1};const s=[];let r=!1,o=!1,n=!1;for(const t of i)try{(yield t.validator(e))||(s.push(t.message),"error"!==t.level&&t.level?"warning"===t.level&&(o=!0):(r=!0,!1!==t.blocking&&(n=!0)))}catch(t){this.handleError(t,"validation"),s.push(`Validation error: ${t}`),r=!0,n=!0}const a=r?"error":o?"warning":"success";return this._validationResult={isValid:!r&&!o,messages:s,level:a,blocking:n},this._isValid=this._validationResult.isValid,this._validationMessage=s.join(", "),this._validationState="success"===a?"valid":a,this.updateHostValidationState(),this.dispatchTextareaValidationEvent(),this._validationResult})}validateDebounced(t){return new Promise(e=>{this._validationTimeout&&clearTimeout(this._validationTimeout),this._validationTimeout=setTimeout(()=>E(this,void 0,void 0,function*(){const i=yield this.validateTextarea(t);e(i)}),this._validationDebounceMs)})}validateOnChangeIfEnabled(t){return E(this,void 0,void 0,function*(){if(this.validationHost.validateOnChange&&(this.validationHost.rules||[]).length>0)return yield this.validateDebounced(t)})}validateOnBlurIfEnabled(t){return E(this,void 0,void 0,function*(){if(this.validationHost.validateOnBlur&&(this.validationHost.rules||[]).length>0)return yield this.validateTextarea(t)})}clearValidation(){this._validationResult=void 0,this._isValid=!0,this._validationMessage="",this._validationState="pristine",this._validationTimeout&&(clearTimeout(this._validationTimeout),this._validationTimeout=void 0),"default"!==this.validationHost.state&&(this.validationHost.state="default",this.requestUpdate()),this.dispatchTextareaValidationEvent()}isCurrentlyValid(){var t,e;return null===(e=null===(t=this._validationResult)||void 0===t?void 0:t.isValid)||void 0===e||e}isBlocking(){var t,e;return null!==(e=null===(t=this._validationResult)||void 0===t?void 0:t.blocking)&&void 0!==e&&e}getValidationMessages(){var t,e;return null!==(e=null===(t=this._validationResult)||void 0===t?void 0:t.messages)&&void 0!==e?e:[]}addRule(t){const e=this.validationHost.rules||[];e.push(t),this.validationHost.rules=e,this.requestUpdate()}removeRule(t){const e=this.validationHost.rules||[];this.validationHost.rules=e.filter(e=>!t(e)),this.requestUpdate()}clearRules(){this.validationHost.rules=[],this.clearValidation()}static createRequiredRule(t="This field is required"){return{validator:t=>t.trim().length>0,message:t,level:"error",blocking:!0}}static createMinLengthRule(t,e){return{validator:e=>e.length>=t,message:e||`Minimum ${t} characters required`,level:"error",blocking:!0}}static createMaxLengthRule(t,e){return{validator:e=>e.length<=t,message:e||`Maximum ${t} characters allowed`,level:"error",blocking:!0}}static createPatternRule(t,e){return{validator:e=>t.test(e),message:e,level:"error",blocking:!0}}updateHostValidationState(){if(!this._validationResult)return;const{level:t}=this._validationResult;"error"===t?this.validationHost.state="error":"warning"===t?this.validationHost.state="warning":this.validationHost.rules.length>0&&(this.validationHost.state="success"),this.requestUpdate()}dispatchTextareaValidationEvent(){var t,e,i,s,r,o,n,a;const l={isValid:null===(e=null===(t=this._validationResult)||void 0===t?void 0:t.isValid)||void 0===e||e,validationMessage:null!==(s=null===(i=this._validationResult)||void 0===i?void 0:i.messages.join(", "))&&void 0!==s?s:"",errors:null!==(o=null===(r=this._validationResult)||void 0===r?void 0:r.messages.filter(()=>{var t;return"error"===(null===(t=this._validationResult)||void 0===t?void 0:t.level)}))&&void 0!==o?o:[],warnings:null!==(a=null===(n=this._validationResult)||void 0===n?void 0:n.messages.filter(()=>{var t;return"warning"===(null===(t=this._validationResult)||void 0===t?void 0:t.level)}))&&void 0!==a?a:[],validationResult:this._validationResult||{isValid:!0,messages:[],level:"success",blocking:!1}};this.safeExecute(()=>this.dispatchEvent(new CustomEvent("nr-validation",{detail:l,bubbles:!0,composed:!0})),"dispatchValidationEvent")}hostDisconnected(){this._validationTimeout&&(clearTimeout(this._validationTimeout),this._validationTimeout=void 0)}}
339
360
  /**
340
361
  * @license
341
362
  * Copyright 2023 Nuraly, Laabidi Aymen
342
363
  * SPDX-License-Identifier: MIT
343
- */class m extends x{constructor(t){super(t),this._hasFocus=!1,this._inputDebounceMs=150}get eventHost(){return this._host}get hasFocus(){return this._hasFocus}setInputDebounce(t){this._inputDebounceMs=t}hostConnected(){super.hostConnected(),this.setupEventListeners()}hostDisconnected(){super.hostDisconnected(),this.cleanupEventListeners()}setupEventListeners(){this.safeExecute(()=>{var t,e;const r=this._host;this._textareaElement=null===(t=r.shadowRoot)||void 0===t?void 0:t.querySelector("textarea"),this._clearButtonElement=null===(e=r.shadowRoot)||void 0===e?void 0:e.querySelector(".clear-button"),this._textareaElement&&this.addTextareaEventListeners(),this._clearButtonElement&&this.eventHost.clearable&&this.addClearButtonEventListeners()},"setupEventListeners")}cleanupEventListeners(){this._inputTimeout&&(clearTimeout(this._inputTimeout),this._inputTimeout=void 0)}handleInput(t){if(this.eventHost.readonly||this.eventHost.disabled)return;const e=t.target,r=e.value;this._inputTimeout&&clearTimeout(this._inputTimeout),this.eventHost.value=r,this.eventHost.autoResize&&this.handleAutoResize(e),this._inputTimeout=setTimeout(()=>{this.dispatchInputEvent(r,t)},this._inputDebounceMs),this.requestHostUpdate()}handleFocus(t){this.eventHost.disabled||(this._hasFocus=!0,this.requestHostUpdate(),this.dispatchFocusEvent(t))}handleBlur(t){this._hasFocus=!1,this.requestHostUpdate(),this.dispatchBlurEvent(t)}handleKeyDown(t){if(this.eventHost.readonly||this.eventHost.disabled)return;const{key:e,ctrlKey:r,metaKey:a}=t;"Escape"!==e?"Enter"!==e||!r&&!a?this.dispatchKeydownEvent(t):this.handleSubmit(t):this.handleEscape(t)}handleKeyUp(t){this.dispatchKeyupEvent(t)}handlePaste(t){this.eventHost.readonly||this.eventHost.disabled?t.preventDefault():this.dispatchPasteEvent(t)}handleClear(t){if(this.eventHost.readonly||this.eventHost.disabled)return;const e=this.eventHost.value;this.eventHost.value="",this._textareaElement&&this._textareaElement.focus(),this.requestHostUpdate(),this.dispatchClearEvent(e,t)}handleAutoResize(t){if(!this.eventHost.autoResize)return;const e=t||this._textareaElement;e&&this.safeExecute(()=>{e.style.height="auto",e.style.height=`${e.scrollHeight}px`},"handleAutoResize")}focus(){this.safeExecute(()=>{var t;null===(t=this._textareaElement)||void 0===t||t.focus()},"focus")}blur(){this.safeExecute(()=>{var t;null===(t=this._textareaElement)||void 0===t||t.blur()},"blur")}selectAll(){this.safeExecute(()=>{var t;null===(t=this._textareaElement)||void 0===t||t.select()},"selectAll")}setCursorPosition(t){this.safeExecute(()=>{this._textareaElement&&this._textareaElement.setSelectionRange(t,t)},"setCursorPosition")}getCursorPosition(){var t,e;return null!==(e=null===(t=this._textareaElement)||void 0===t?void 0:t.selectionStart)&&void 0!==e?e:0}addTextareaEventListeners(){if(!this._textareaElement)return;const t=this._textareaElement;t.addEventListener("input",this.handleInput.bind(this)),t.addEventListener("focus",this.handleFocus.bind(this)),t.addEventListener("blur",this.handleBlur.bind(this)),t.addEventListener("keydown",this.handleKeyDown.bind(this)),t.addEventListener("keyup",this.handleKeyUp.bind(this)),t.addEventListener("paste",this.handlePaste.bind(this))}addClearButtonEventListeners(){this._clearButtonElement&&this._clearButtonElement.addEventListener("click",this.handleClear.bind(this))}handleEscape(t){this.blur(),this.dispatchEscapeEvent(t)}handleSubmit(t){this.dispatchSubmitEvent(t)}dispatchInputEvent(t,e){const r=new CustomEvent("textarea-input",{detail:{value:t,originalEvent:e,cursorPosition:this.getCursorPosition()},bubbles:!0,composed:!0});this.safeExecute(()=>this._host.dispatchEvent(r),"dispatchInputEvent")}dispatchFocusEvent(t){const e=new CustomEvent("textarea-focus",{detail:{originalEvent:t,value:this.eventHost.value},bubbles:!0,composed:!0});this.safeExecute(()=>this._host.dispatchEvent(e),"dispatchFocusEvent")}dispatchBlurEvent(t){const e=new CustomEvent("textarea-blur",{detail:{originalEvent:t,value:this.eventHost.value},bubbles:!0,composed:!0});this.safeExecute(()=>this._host.dispatchEvent(e),"dispatchBlurEvent")}dispatchKeydownEvent(t){const e=new CustomEvent("textarea-keydown",{detail:{originalEvent:t,key:t.key,ctrlKey:t.ctrlKey,metaKey:t.metaKey,value:this.eventHost.value},bubbles:!0,composed:!0});this.safeExecute(()=>this._host.dispatchEvent(e),"dispatchKeydownEvent")}dispatchKeyupEvent(t){const e=new CustomEvent("textarea-keyup",{detail:{originalEvent:t,key:t.key,value:this.eventHost.value},bubbles:!0,composed:!0});this.safeExecute(()=>this._host.dispatchEvent(e),"dispatchKeyupEvent")}dispatchPasteEvent(t){const e=new CustomEvent("textarea-paste",{detail:{originalEvent:t,value:this.eventHost.value},bubbles:!0,composed:!0});this.safeExecute(()=>this._host.dispatchEvent(e),"dispatchPasteEvent")}dispatchClearEvent(t,e){const r=new CustomEvent("textarea-clear",{detail:{previousValue:t,originalEvent:e,value:this.eventHost.value},bubbles:!0,composed:!0});this.safeExecute(()=>this._host.dispatchEvent(r),"dispatchClearEvent")}dispatchEscapeEvent(t){const e=new CustomEvent("textarea-escape",{detail:{originalEvent:t,value:this.eventHost.value},bubbles:!0,composed:!0});this.safeExecute(()=>this._host.dispatchEvent(e),"dispatchEscapeEvent")}dispatchSubmitEvent(t){const e=new CustomEvent("textarea-submit",{detail:{originalEvent:t,value:this.eventHost.value},bubbles:!0,composed:!0});this.safeExecute(()=>this._host.dispatchEvent(e),"dispatchSubmitEvent")}}
364
+ */class $ extends y{constructor(t){super(t),this._hasFocus=!1,this._inputDebounceMs=150}get eventHost(){return this._host}get hasFocus(){return this._hasFocus}setInputDebounce(t){this._inputDebounceMs=t}hostConnected(){super.hostConnected(),this.setupEventListeners()}hostDisconnected(){super.hostDisconnected(),this.cleanupEventListeners()}setupEventListeners(){this.safeExecute(()=>{var t,e;const i=this._host;this._textareaElement=null===(t=i.shadowRoot)||void 0===t?void 0:t.querySelector("textarea"),this._clearButtonElement=null===(e=i.shadowRoot)||void 0===e?void 0:e.querySelector(".clear-button"),this._textareaElement&&this.addTextareaEventListeners(),this._clearButtonElement&&this.eventHost.clearable&&this.addClearButtonEventListeners()},"setupEventListeners")}cleanupEventListeners(){this._inputTimeout&&(clearTimeout(this._inputTimeout),this._inputTimeout=void 0)}handleInput(t){if(this.eventHost.readonly||this.eventHost.disabled)return;const e=t.target,i=e.value;this._inputTimeout&&clearTimeout(this._inputTimeout),this.eventHost.value=i,this.eventHost.autoResize&&this.handleAutoResize(e),this._inputTimeout=setTimeout(()=>{this.dispatchInputEvent(i,t)},this._inputDebounceMs),this.requestHostUpdate()}handleFocus(t){this.eventHost.disabled||(this._hasFocus=!0,this.requestHostUpdate(),this.dispatchFocusEvent(t))}handleBlur(t){this._hasFocus=!1,this.requestHostUpdate(),this.dispatchBlurEvent(t)}handleKeyDown(t){if(this.eventHost.readonly||this.eventHost.disabled)return;const{key:e,ctrlKey:i,metaKey:s}=t;"Escape"!==e?"Enter"!==e||!i&&!s?this.dispatchKeydownEvent(t):this.handleSubmit(t):this.handleEscape(t)}handleKeyUp(t){this.dispatchKeyupEvent(t)}handlePaste(t){this.eventHost.readonly||this.eventHost.disabled?t.preventDefault():this.dispatchPasteEvent(t)}handleClear(t){if(this.eventHost.readonly||this.eventHost.disabled)return;const e=this.eventHost.value;this.eventHost.value="",this._textareaElement&&this._textareaElement.focus(),this.requestHostUpdate(),this.dispatchClearEvent(e,t)}handleAutoResize(t){if(!this.eventHost.autoResize)return;const e=t||this._textareaElement;e&&this.safeExecute(()=>{e.style.height="auto",e.style.height=`${e.scrollHeight}px`},"handleAutoResize")}focus(){this.safeExecute(()=>{var t;null===(t=this._textareaElement)||void 0===t||t.focus()},"focus")}blur(){this.safeExecute(()=>{var t;null===(t=this._textareaElement)||void 0===t||t.blur()},"blur")}selectAll(){this.safeExecute(()=>{var t;null===(t=this._textareaElement)||void 0===t||t.select()},"selectAll")}setCursorPosition(t){this.safeExecute(()=>{this._textareaElement&&this._textareaElement.setSelectionRange(t,t)},"setCursorPosition")}getCursorPosition(){var t,e;return null!==(e=null===(t=this._textareaElement)||void 0===t?void 0:t.selectionStart)&&void 0!==e?e:0}addTextareaEventListeners(){if(!this._textareaElement)return;const t=this._textareaElement;t.addEventListener("input",this.handleInput.bind(this)),t.addEventListener("focus",this.handleFocus.bind(this)),t.addEventListener("blur",this.handleBlur.bind(this)),t.addEventListener("keydown",this.handleKeyDown.bind(this)),t.addEventListener("keyup",this.handleKeyUp.bind(this)),t.addEventListener("paste",this.handlePaste.bind(this))}addClearButtonEventListeners(){this._clearButtonElement&&this._clearButtonElement.addEventListener("click",this.handleClear.bind(this))}handleEscape(t){this.blur(),this.dispatchEscapeEvent(t)}handleSubmit(t){this.dispatchSubmitEvent(t)}dispatchInputEvent(t,e){const i=new CustomEvent("textarea-input",{detail:{value:t,originalEvent:e,cursorPosition:this.getCursorPosition()},bubbles:!0,composed:!0});this.safeExecute(()=>this._host.dispatchEvent(i),"dispatchInputEvent")}dispatchFocusEvent(t){const e=new CustomEvent("textarea-focus",{detail:{originalEvent:t,value:this.eventHost.value},bubbles:!0,composed:!0});this.safeExecute(()=>this._host.dispatchEvent(e),"dispatchFocusEvent")}dispatchBlurEvent(t){const e=new CustomEvent("textarea-blur",{detail:{originalEvent:t,value:this.eventHost.value},bubbles:!0,composed:!0});this.safeExecute(()=>this._host.dispatchEvent(e),"dispatchBlurEvent")}dispatchKeydownEvent(t){const e=new CustomEvent("textarea-keydown",{detail:{originalEvent:t,key:t.key,ctrlKey:t.ctrlKey,metaKey:t.metaKey,value:this.eventHost.value},bubbles:!0,composed:!0});this.safeExecute(()=>this._host.dispatchEvent(e),"dispatchKeydownEvent")}dispatchKeyupEvent(t){const e=new CustomEvent("textarea-keyup",{detail:{originalEvent:t,key:t.key,value:this.eventHost.value},bubbles:!0,composed:!0});this.safeExecute(()=>this._host.dispatchEvent(e),"dispatchKeyupEvent")}dispatchPasteEvent(t){const e=new CustomEvent("textarea-paste",{detail:{originalEvent:t,value:this.eventHost.value},bubbles:!0,composed:!0});this.safeExecute(()=>this._host.dispatchEvent(e),"dispatchPasteEvent")}dispatchClearEvent(t,e){const i=new CustomEvent("textarea-clear",{detail:{previousValue:t,originalEvent:e,value:this.eventHost.value},bubbles:!0,composed:!0});this.safeExecute(()=>this._host.dispatchEvent(i),"dispatchClearEvent")}dispatchEscapeEvent(t){const e=new CustomEvent("textarea-escape",{detail:{originalEvent:t,value:this.eventHost.value},bubbles:!0,composed:!0});this.safeExecute(()=>this._host.dispatchEvent(e),"dispatchEscapeEvent")}dispatchSubmitEvent(t){const e=new CustomEvent("textarea-submit",{detail:{originalEvent:t,value:this.eventHost.value},bubbles:!0,composed:!0});this.safeExecute(()=>this._host.dispatchEvent(e),"dispatchSubmitEvent")}}
344
365
  /**
345
366
  * @license
346
367
  * Copyright 2023 Nuraly, Laabidi Aymen
347
368
  * SPDX-License-Identifier: MIT
348
- */var g=function(t,e,r,a){for(var i,o=arguments.length,s=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a,n=t.length-1;n>=0;n--)(i=t[n])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},y=function(t,e,r,a){return new(r||(r=Promise))(function(i,o){function s(t){try{l(a.next(t))}catch(t){o(t)}}function n(t){try{l(a.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,n)}l((a=a.apply(t,e||[])).next())})};let w=class extends(n(e)){get clearable(){return this.allowClear}constructor(){super(),this.validationController=new f(this),this.eventController=new m(this),this.disabled=!1,this.readonly=!1,this.state="default",this.value="",this.size="medium",this.variant="underlined",this.resize="vertical",this.rows=v,this.cols=p,this.placeholder="",this.autocomplete="off",this.allowClear=!1,this.showCount=!1,this.autoResize=!1,this.rules=[],this.validateOnChange=!0,this.validateOnBlur=!0,this.hasFeedback=!1,this.isFocused=!1,this.characterCount=0,this.characterCount=this.value.length,this.setupControllerListeners()}setupControllerListeners(){this.addEventListener("nr-validation",t=>{this.validationResult=t.detail.validationResult}),this.addEventListener("textarea-input",t=>{this.handleControllerInput(t.detail.value)}),this.addEventListener("textarea-focus",()=>{this.isFocused=!0}),this.addEventListener("textarea-blur",()=>{this.isFocused=!1,this.validateOnBlur&&this.validationController.validateOnBlurIfEnabled()}),this.addEventListener("textarea-clear",t=>{this.handleControllerClear(t.detail.previousValue)})}handleControllerInput(t){this.maxLength&&t.length>this.maxLength?this.value=t.slice(0,this.maxLength):this.value=t,this.characterCount=this.value.length,this.autoResizeIfNeeded(),this.dispatchChangeEvent(),this.validateOnChange&&this.validationController.validateOnChangeIfEnabled(this.value)}handleControllerClear(t){this.characterCount=0,this.dispatchChangeEvent(),this.dispatchEvent(new CustomEvent("nr-clear",{detail:{value:this.value,previousValue:t},bubbles:!0}))}connectedCallback(){super.connectedCallback(),this.setupResizeObserver()}disconnectedCallback(){super.disconnectedCallback(),this.cleanupResizeObserver()}firstUpdated(t){super.firstUpdated(t),this.updateTextareaValue(),this.autoResizeIfNeeded(),this.resizeObserver&&this.textareaElement&&this.resizeObserver.observe(this.textareaElement),this.eventController.setupEventListeners()}updated(t){super.updated(t),t.has("value")&&(this.characterCount=this.value.length,this.updateTextareaValue(),this.autoResizeIfNeeded()),t.has("autoResize")&&this.autoResizeIfNeeded(),t.has("rules")&&(this.validationController.clearValidation(),this.rules.length>0&&this.value&&this.validationController.validateTextarea(this.value))}setupResizeObserver(){"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver(t=>{for(const e of t){const{width:t,height:r}=e.contentRect;this.dispatchResizeEvent(t,r)}}))}cleanupResizeObserver(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0)}updateTextareaValue(){this.textareaElement&&this.textareaElement.value!==this.value&&(this.textareaElement.value=this.value)}autoResizeIfNeeded(){if(!this.autoResize||!this.textareaElement)return;this.textareaElement.style.height="auto";let t=this.textareaElement.scrollHeight;this.minHeight&&t<this.minHeight&&(t=this.minHeight),this.maxHeight&&t>this.maxHeight&&(t=this.maxHeight),this.textareaElement.style.height=`${t}px`}handleInput(t){this.eventController.handleInput(t)}handleFocus(t){this.eventController.handleFocus(t),this.dispatchEvent(new CustomEvent("nr-focus",{detail:{focused:!0,originalEvent:t},bubbles:!0}))}handleBlur(t){this.eventController.handleBlur(t),this.dispatchEvent(new CustomEvent("nr-blur",{detail:{focused:!1,originalEvent:t},bubbles:!0}))}handleClear(){this.eventController.handleClear()}dispatchChangeEvent(){const t={value:this.value,length:this.characterCount,exceedsMaxLength:!!this.maxLength&&this.characterCount>this.maxLength,validation:this.validationResult};this.dispatchEvent(new CustomEvent("nr-textarea-change",{detail:t,bubbles:!0}))}dispatchResizeEvent(t,e){const r={width:t,height:e,direction:this.resize};this.dispatchEvent(new CustomEvent("nr-resize",{detail:r,bubbles:!0}))}focus(t){this.eventController.focus(),(void 0!==(null==t?void 0:t.cursor)||(null==t?void 0:t.select))&&setTimeout(()=>{this.textareaElement&&(void 0!==(null==t?void 0:t.cursor)?"number"==typeof t.cursor?this.eventController.setCursorPosition(t.cursor):"start"===t.cursor?this.eventController.setCursorPosition(0):"end"===t.cursor?this.eventController.setCursorPosition(this.value.length):"all"===t.cursor&&this.eventController.selectAll():(null==t?void 0:t.select)&&this.eventController.selectAll())})}blur(){this.eventController.blur()}getValidationResult(){return this.validationController.validationResult}validate(){return y(this,void 0,void 0,function*(){return(yield this.validationController.validateTextarea(this.value)).isValid})}clearValidation(){this.validationController.clearValidation()}clear(){this.eventController.handleClear()}addRule(t){this.validationController.addRule(t)}removeRule(t){this.validationController.removeRule(t)}clearRules(){this.validationController.clearRules()}getValidationStatus(){var t;const e=this.validationController.validationResult;return{isValid:null===(t=null==e?void 0:e.isValid)||void 0===t||t,errors:"error"===(null==e?void 0:e.level)?e.messages:[],warnings:"warning"===(null==e?void 0:e.level)?e.messages:[]}}isValid(){return this.validationController.isCurrentlyValid()}checkValidity(){return this.validationController.isCurrentlyValid()}reportValidity(){const t=this.validationController.isCurrentlyValid();return t||this.validationController.validateTextarea(this.value),t}setCustomValidity(t){t?this.validationController.addRule({validator:()=>!1,message:t,level:"error",blocking:!0}):this.validationController.removeRule(e=>e.message===t)}validateTextarea(){return y(this,void 0,void 0,function*(){return(yield this.validationController.validateTextarea(this.value)).isValid})}setValidationStatus(t){this.validationResult=t,"error"===t.level?this.state="error":"warning"===t.level?this.state="warning":t.isValid&&(this.state="success"),this.requestUpdate()}renderLabel(){return r`
349
- <div class="textarea-label">
369
+ */var k=function(t,e,i,s){for(var r,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(o<3?r(n):o>3?r(e,i,n):r(e,i))||n);return o>3&&n&&Object.defineProperty(e,i,n),n},R=function(t,e,i,s){return new(i||(i=Promise))(function(r,o){function n(t){try{l(s.next(t))}catch(t){o(t)}}function a(t){try{l(s.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(n,a)}l((s=s.apply(t,e||[])).next())})};let S=class extends((t=>v(c(p(f(t)))))(s)){get clearable(){return this.allowClear}constructor(){super(),this.validationController=new C(this),this.eventController=new $(this),this.disabled=!1,this.readonly=!1,this.state="default",this.value="",this.size="medium",this.variant="underlined",this.resize="vertical",this.rows=h,this.cols=d,this.placeholder="",this.autocomplete="off",this.allowClear=!1,this.showCount=!1,this.autoResize=!1,this.rules=[],this.validateOnChange=!0,this.validateOnBlur=!0,this.hasFeedback=!1,this.isFocused=!1,this.characterCount=0,this.characterCount=this.value.length,this.setupControllerListeners()}setupControllerListeners(){this.addEventListener("nr-validation",t=>{this.validationResult=t.detail.validationResult}),this.addEventListener("textarea-input",t=>{this.handleControllerInput(t.detail.value)}),this.addEventListener("textarea-focus",()=>{this.isFocused=!0}),this.addEventListener("textarea-blur",()=>{this.isFocused=!1,this.validateOnBlur&&this.validationController.validateOnBlurIfEnabled()}),this.addEventListener("textarea-clear",t=>{this.handleControllerClear(t.detail.previousValue)})}handleControllerInput(t){this.maxLength&&t.length>this.maxLength?this.value=t.slice(0,this.maxLength):this.value=t,this.characterCount=this.value.length,this.autoResizeIfNeeded(),this.dispatchChangeEvent(),this.validateOnChange&&this.validationController.validateOnChangeIfEnabled(this.value)}handleControllerClear(t){this.characterCount=0,this.dispatchChangeEvent(),this.dispatchEvent(new CustomEvent("nr-clear",{detail:{value:this.value,previousValue:t},bubbles:!0}))}connectedCallback(){super.connectedCallback(),this.setupResizeObserver()}disconnectedCallback(){super.disconnectedCallback(),this.cleanupResizeObserver()}firstUpdated(t){super.firstUpdated(t),this.updateTextareaValue(),this.autoResizeIfNeeded(),this.resizeObserver&&this.textareaElement&&this.resizeObserver.observe(this.textareaElement),this.eventController.setupEventListeners()}updated(t){super.updated(t),t.has("value")&&(this.characterCount=this.value.length,this.updateTextareaValue(),this.autoResizeIfNeeded()),t.has("autoResize")&&this.autoResizeIfNeeded(),t.has("rules")&&(this.validationController.clearValidation(),this.rules.length>0&&this.value&&this.validationController.validateTextarea(this.value))}setupResizeObserver(){"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver(t=>{for(const e of t){const{width:t,height:i}=e.contentRect;this.dispatchResizeEvent(t,i)}}))}cleanupResizeObserver(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0)}updateTextareaValue(){this.textareaElement&&this.textareaElement.value!==this.value&&(this.textareaElement.value=this.value)}autoResizeIfNeeded(){if(!this.autoResize||!this.textareaElement)return;this.textareaElement.style.height="auto";let t=this.textareaElement.scrollHeight;this.minHeight&&t<this.minHeight&&(t=this.minHeight),this.maxHeight&&t>this.maxHeight&&(t=this.maxHeight),this.textareaElement.style.height=`${t}px`}handleInput(t){this.eventController.handleInput(t)}handleFocus(t){this.eventController.handleFocus(t),this.dispatchEvent(new CustomEvent("nr-focus",{detail:{focused:!0,originalEvent:t},bubbles:!0}))}handleBlur(t){this.eventController.handleBlur(t),this.dispatchEvent(new CustomEvent("nr-blur",{detail:{focused:!1,originalEvent:t},bubbles:!0}))}handleClear(){this.eventController.handleClear()}dispatchChangeEvent(){const t={value:this.value,length:this.characterCount,exceedsMaxLength:!!this.maxLength&&this.characterCount>this.maxLength,validation:this.validationResult};this.dispatchEvent(new CustomEvent("nr-textarea-change",{detail:t,bubbles:!0}))}dispatchResizeEvent(t,e){const i={width:t,height:e,direction:this.resize};this.dispatchEvent(new CustomEvent("nr-resize",{detail:i,bubbles:!0}))}focus(t){this.eventController.focus(),(void 0!==(null==t?void 0:t.cursor)||(null==t?void 0:t.select))&&setTimeout(()=>{this.textareaElement&&(void 0!==(null==t?void 0:t.cursor)?"number"==typeof t.cursor?this.eventController.setCursorPosition(t.cursor):"start"===t.cursor?this.eventController.setCursorPosition(0):"end"===t.cursor?this.eventController.setCursorPosition(this.value.length):"all"===t.cursor&&this.eventController.selectAll():(null==t?void 0:t.select)&&this.eventController.selectAll())})}blur(){this.eventController.blur()}getValidationResult(){return this.validationController.validationResult}validate(){return R(this,void 0,void 0,function*(){return(yield this.validationController.validateTextarea(this.value)).isValid})}clearValidation(){this.validationController.clearValidation()}clear(){this.eventController.handleClear()}addRule(t){this.validationController.addRule(t)}removeRule(t){this.validationController.removeRule(t)}clearRules(){this.validationController.clearRules()}getValidationStatus(){var t;const e=this.validationController.validationResult;return{isValid:null===(t=null==e?void 0:e.isValid)||void 0===t||t,errors:"error"===(null==e?void 0:e.level)?e.messages:[],warnings:"warning"===(null==e?void 0:e.level)?e.messages:[]}}isValid(){return this.validationController.isCurrentlyValid()}checkValidity(){return this.validationController.isCurrentlyValid()}reportValidity(){const t=this.validationController.isCurrentlyValid();return t||this.validationController.validateTextarea(this.value),t}setCustomValidity(t){t?this.validationController.addRule({validator:()=>!1,message:t,level:"error",blocking:!0}):this.validationController.removeRule(e=>e.message===t)}validateTextarea(){return R(this,void 0,void 0,function*(){return(yield this.validationController.validateTextarea(this.value)).isValid})}setValidationStatus(t){this.validationResult=t,"error"===t.level?this.state="error":"warning"===t.level?this.state="warning":t.isValid&&(this.state="success"),this.requestUpdate()}renderLabel(){return i`
370
+ <div class="textarea-label" part="label">
350
371
  <slot name="label"></slot>
351
- ${this.required?r`<span class="required-indicator">*</span>`:""}
372
+ ${this.required?i`<span class="required-indicator">*</span>`:""}
352
373
  </div>
353
- `}renderTextarea(){return r`
374
+ `}renderTextarea(){return i`
354
375
  <textarea
355
376
  class="textarea-element"
377
+ part="input"
356
378
  .value=${this.value}
357
379
  .disabled=${this.disabled}
358
380
  .readOnly=${this.readonly}
@@ -368,16 +390,31 @@ class x extends h{requestHostUpdate(){this.requestUpdate()}}
368
390
  @focus=${this.handleFocus}
369
391
  @blur=${this.handleBlur}
370
392
  ></textarea>
371
- `}renderValidationIcon(){var t;return l(null===(t=this.validationResult)||void 0===t?void 0:t.level,this.hasFeedback&&!!this.validationResult)}renderClearButton(){return d({allowClear:this.allowClear,value:this.value,disabled:this.disabled,readonly:this.readonly,onClear:this.handleClear,ariaLabel:"Clear textarea"})}renderCharacterCount(){if(!this.showCount)return"";const t=this.maxLength?` / ${this.maxLength}`:"",e=this.maxLength&&this.characterCount>this.maxLength;return r`
393
+ `}renderValidationIcon(){var t;return function(t,s){if(!s||!t)return e;let r="",o="";switch(t){case"error":r="error",o="validation-error";break;case"warning":r="warning",o="validation-warning";break;case"success":r="check-circle",o="validation-success";break;default:return e}return i`
394
+ <nr-icon
395
+ class="validation-icon ${o}"
396
+ name="${r}"
397
+ size="small"
398
+ ></nr-icon>
399
+ `}(null===(t=this.validationResult)||void 0===t?void 0:t.level,this.hasFeedback&&!!this.validationResult)}renderClearButton(){return function(t){const{allowClear:s,value:r,disabled:o=!1,readonly:n=!1,onClear:a,ariaLabel:l="Clear value",iconName:h="x",iconSize:d="small",cssClass:c="clear-button"}=t;return!s||!r||o||n?e:i`
400
+ <button
401
+ class="${c}"
402
+ type="button"
403
+ @click=${a}
404
+ aria-label="${l}"
405
+ >
406
+ <nr-icon name="${h}" size="${d}"></nr-icon>
407
+ </button>
408
+ `}({allowClear:this.allowClear,value:this.value,disabled:this.disabled,readonly:this.readonly,onClear:this.handleClear,ariaLabel:"Clear textarea"})}renderCharacterCount(){if(!this.showCount)return"";const t=this.maxLength?` / ${this.maxLength}`:"",e=this.maxLength&&this.characterCount>this.maxLength;return i`
372
409
  <div class="character-count ${e?"over-limit":""}">
373
410
  ${this.characterCount}${t}
374
411
  </div>
375
- `}renderHelperText(){var t,e;const a=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="helper-text"]'),i=null==a?void 0:a.assignedNodes().length,o=null===(e=this.validationResult)||void 0===e?void 0:e.messages.length;return i||o?r`
376
- <div class="helper-text">
377
- ${o?this.validationResult.messages.map(t=>r`<div class="validation-message ${this.validationResult.level}">${t}</div>`):r`<slot name="helper-text"></slot>`}
412
+ `}renderHelperText(){var t,e;const s=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="helper-text"]'),r=null==s?void 0:s.assignedNodes().length,o=null===(e=this.validationResult)||void 0===e?void 0:e.messages.length;return r||o?i`
413
+ <div class="helper-text" part="helper-text">
414
+ ${o?this.validationResult.messages.map(t=>i`<div class="validation-message ${this.validationResult.level}">${t}</div>`):i`<slot name="helper-text"></slot>`}
378
415
  </div>
379
- `:""}render(){const t=["textarea-container",`size-${this.size}`,`variant-${this.variant}`,`state-${this.state}`,this.isFocused?"focused":"",this.disabled?"disabled":"",this.readonly?"readonly":"",this.validationResult?`validation-${this.validationResult.level}`:""].filter(Boolean).join(" ");return r`
380
- <div class="${t}">
416
+ `:""}render(){const t=["textarea-container",`size-${this.size}`,`variant-${this.variant}`,`state-${this.state}`,this.isFocused?"focused":"",this.disabled?"disabled":"",this.readonly?"readonly":"",this.validationResult?`validation-${this.validationResult.level}`:""].filter(Boolean).join(" ");return i`
417
+ <div class="${t}" part="container">
381
418
  ${this.renderLabel()}
382
419
 
383
420
  <div class="textarea-wrapper">
@@ -401,4 +438,4 @@ class x extends h{requestHostUpdate(){this.requestUpdate()}}
401
438
  ${this.renderCharacterCount()}
402
439
  </div>
403
440
  </div>
404
- `}};w.styles=u,g([a("textarea")],w.prototype,"textareaElement",void 0),g([i({type:Boolean,reflect:!0})],w.prototype,"disabled",void 0),g([i({type:Boolean,reflect:!0})],w.prototype,"readonly",void 0),g([i({type:String,reflect:!0})],w.prototype,"state",void 0),g([i({type:String})],w.prototype,"value",void 0),g([i({type:String})],w.prototype,"size",void 0),g([i({type:String,reflect:!0})],w.prototype,"variant",void 0),g([i({type:String})],w.prototype,"resize",void 0),g([i({type:Number})],w.prototype,"rows",void 0),g([i({type:Number})],w.prototype,"cols",void 0),g([i({type:String})],w.prototype,"placeholder",void 0),g([i({type:String})],w.prototype,"autocomplete",void 0),g([i({type:String})],w.prototype,"name",void 0),g([i({type:Boolean})],w.prototype,"required",void 0),g([i({type:Boolean,reflect:!0})],w.prototype,"allowClear",void 0),g([i({type:Boolean,reflect:!0})],w.prototype,"showCount",void 0),g([i({type:Number})],w.prototype,"maxLength",void 0),g([i({type:Number})],w.prototype,"minHeight",void 0),g([i({type:Number})],w.prototype,"maxHeight",void 0),g([i({type:Boolean})],w.prototype,"autoResize",void 0),g([i({type:Array})],w.prototype,"rules",void 0),g([i({type:Boolean,attribute:"validate-on-change"})],w.prototype,"validateOnChange",void 0),g([i({type:Boolean,attribute:"validate-on-blur"})],w.prototype,"validateOnBlur",void 0),g([i({type:Boolean,attribute:"has-feedback"})],w.prototype,"hasFeedback",void 0),g([i({type:String,attribute:"validation-message"})],w.prototype,"validationMessage",void 0),g([o()],w.prototype,"isFocused",void 0),g([o()],w.prototype,"validationResult",void 0),g([o()],w.prototype,"characterCount",void 0),w=g([s("nr-textarea")],w);export{w as NrTextareaElement};
441
+ `}};S.useShadowDom=!0,S.styles=l,k([r("textarea")],S.prototype,"textareaElement",void 0),k([o({type:Boolean,reflect:!0})],S.prototype,"disabled",void 0),k([o({type:Boolean,reflect:!0})],S.prototype,"readonly",void 0),k([o({type:String,reflect:!0})],S.prototype,"state",void 0),k([o({type:String})],S.prototype,"value",void 0),k([o({type:String})],S.prototype,"size",void 0),k([o({type:String,reflect:!0})],S.prototype,"variant",void 0),k([o({type:String})],S.prototype,"resize",void 0),k([o({type:Number})],S.prototype,"rows",void 0),k([o({type:Number})],S.prototype,"cols",void 0),k([o({type:String})],S.prototype,"placeholder",void 0),k([o({type:String})],S.prototype,"autocomplete",void 0),k([o({type:String})],S.prototype,"name",void 0),k([o({type:Boolean})],S.prototype,"required",void 0),k([o({type:Boolean,reflect:!0})],S.prototype,"allowClear",void 0),k([o({type:Boolean,reflect:!0})],S.prototype,"showCount",void 0),k([o({type:Number})],S.prototype,"maxLength",void 0),k([o({type:Number})],S.prototype,"minHeight",void 0),k([o({type:Number})],S.prototype,"maxHeight",void 0),k([o({type:Boolean})],S.prototype,"autoResize",void 0),k([o({type:Array})],S.prototype,"rules",void 0),k([o({type:Boolean,attribute:"validate-on-change"})],S.prototype,"validateOnChange",void 0),k([o({type:Boolean,attribute:"validate-on-blur"})],S.prototype,"validateOnBlur",void 0),k([o({type:Boolean,attribute:"has-feedback"})],S.prototype,"hasFeedback",void 0),k([o({type:String,attribute:"validation-message"})],S.prototype,"validationMessage",void 0),k([n()],S.prototype,"isFocused",void 0),k([n()],S.prototype,"validationResult",void 0),k([n()],S.prototype,"characterCount",void 0),S=k([a("nr-textarea")],S);export{S as NrTextareaElement};
@@ -7,7 +7,7 @@ import { LitElement, type PropertyValues } from 'lit';
7
7
  import { TEXTAREA_STATE, TEXTAREA_SIZE, TEXTAREA_VARIANT, TEXTAREA_RESIZE, ValidationRule, TextareaValidationResult, FocusOptions } from './textarea.types.js';
8
8
  import { ValidatableComponent, ValidationStatus } from '@nuralyui/common/mixins';
9
9
  import { type TextareaValidationHost, type TextareaEventHost } from './controllers/index.js';
10
- declare const NrTextareaElement_base: (new (...args: any[]) => import("@nuralyui/common/mixins").DependencyAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").ThemeAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").EventHandlerCapable) & typeof LitElement;
10
+ declare const NrTextareaElement_base: (new (...args: any[]) => import("@nuralyui/common/mixins").DependencyAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").ThemeAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").EventHandlerCapable) & (new (...args: any[]) => import("packages/common/src/shared/base-mixin.js").LightDomContent) & typeof LitElement;
11
11
  /**
12
12
  * Versatile textarea component with validation, resize options, and interactive features.
13
13
  *
@@ -28,8 +28,14 @@ declare const NrTextareaElement_base: (new (...args: any[]) => import("@nuralyui
28
28
  * @slot helper-text - Helper text
29
29
  * @slot addon-before - Content before textarea
30
30
  * @slot addon-after - Content after textarea
31
+ *
32
+ * @csspart container - The outermost wrapper div
33
+ * @csspart label - The label wrapper div
34
+ * @csspart input - The native textarea element
35
+ * @csspart helper-text - The helper/error text wrapper div
31
36
  */
32
37
  export declare class NrTextareaElement extends NrTextareaElement_base implements TextareaValidationHost, TextareaEventHost, ValidatableComponent {
38
+ static useShadowDom: boolean;
33
39
  static styles: import("lit").CSSResult;
34
40
  private textareaElement;
35
41
  private validationController;