@nuraly/lumenui 0.1.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 (755) hide show
  1. package/LICENSE +28 -0
  2. package/README.md +248 -0
  3. package/dist/nuralyui.bundle.js +29209 -0
  4. package/dist/nuralyui.bundle.js.gz +0 -0
  5. package/dist/src/components/alert/alert.component.d.ts +103 -0
  6. package/dist/src/components/alert/alert.component.js +225 -0
  7. package/dist/src/components/alert/alert.style.d.ts +14 -0
  8. package/dist/src/components/alert/alert.style.js +191 -0
  9. package/dist/src/components/alert/alert.types.d.ts +46 -0
  10. package/dist/src/components/alert/alert.types.js +7 -0
  11. package/dist/src/components/alert/bundle.js +231 -0
  12. package/dist/src/components/alert/bundle.js.gz +0 -0
  13. package/dist/src/components/alert/index.d.ts +8 -0
  14. package/dist/src/components/alert/index.js +8 -0
  15. package/dist/src/components/alert/react.d.ts +5 -0
  16. package/dist/src/components/alert/react.js +17 -0
  17. package/dist/src/components/badge/badge.component.d.ts +148 -0
  18. package/dist/src/components/badge/badge.component.js +270 -0
  19. package/dist/src/components/badge/badge.style.d.ts +14 -0
  20. package/dist/src/components/badge/badge.style.js +250 -0
  21. package/dist/src/components/badge/badge.types.d.ts +84 -0
  22. package/dist/src/components/badge/badge.types.js +7 -0
  23. package/dist/src/components/badge/bundle.js +277 -0
  24. package/dist/src/components/badge/bundle.js.gz +0 -0
  25. package/dist/src/components/badge/index.d.ts +2 -0
  26. package/dist/src/components/badge/index.js +2 -0
  27. package/dist/src/components/badge/react.d.ts +3 -0
  28. package/dist/src/components/badge/react.js +10 -0
  29. package/dist/src/components/breadcrumb/breadcrumb.component.d.ts +121 -0
  30. package/dist/src/components/breadcrumb/breadcrumb.component.js +257 -0
  31. package/dist/src/components/breadcrumb/breadcrumb.style.d.ts +14 -0
  32. package/dist/src/components/breadcrumb/breadcrumb.style.js +153 -0
  33. package/dist/src/components/breadcrumb/breadcrumb.types.d.ts +63 -0
  34. package/dist/src/components/breadcrumb/breadcrumb.types.js +7 -0
  35. package/dist/src/components/breadcrumb/bundle.js +213 -0
  36. package/dist/src/components/breadcrumb/bundle.js.gz +0 -0
  37. package/dist/src/components/breadcrumb/index.d.ts +2 -0
  38. package/dist/src/components/breadcrumb/index.js +2 -0
  39. package/dist/src/components/breadcrumb/react.d.ts +5 -0
  40. package/dist/src/components/breadcrumb/react.js +12 -0
  41. package/dist/src/components/button/bundle.js +606 -0
  42. package/dist/src/components/button/bundle.js.gz +0 -0
  43. package/dist/src/components/button/button.component.d.ts +96 -0
  44. package/dist/src/components/button/button.component.js +312 -0
  45. package/dist/src/components/button/button.style.d.ts +10 -0
  46. package/dist/src/components/button/button.style.js +535 -0
  47. package/dist/src/components/button/button.types.d.ts +57 -0
  48. package/dist/src/components/button/button.types.js +2 -0
  49. package/dist/src/components/button/index.d.ts +2 -0
  50. package/dist/src/components/button/index.js +2 -0
  51. package/dist/src/components/button/react.d.ts +5 -0
  52. package/dist/src/components/button/react.js +12 -0
  53. package/dist/src/components/canvas/base-canvas.component.d.ts +177 -0
  54. package/dist/src/components/canvas/base-canvas.component.js +865 -0
  55. package/dist/src/components/canvas/bundle.js +16664 -0
  56. package/dist/src/components/canvas/bundle.js.gz +0 -0
  57. package/dist/src/components/canvas/canvas.component.d.ts +2 -0
  58. package/dist/src/components/canvas/canvas.component.js +295 -0
  59. package/dist/src/components/canvas/canvas.constants.d.ts +66 -0
  60. package/dist/src/components/canvas/canvas.constants.js +61 -0
  61. package/dist/src/components/canvas/chatbot-panel.style.d.ts +11 -0
  62. package/dist/src/components/canvas/chatbot-panel.style.js +189 -0
  63. package/dist/src/components/canvas/index.d.ts +13 -0
  64. package/dist/src/components/canvas/index.js +21 -0
  65. package/dist/src/components/canvas/react.d.ts +354 -0
  66. package/dist/src/components/canvas/react.js +41 -0
  67. package/dist/src/components/canvas/whiteboard-canvas.component.d.ts +63 -0
  68. package/dist/src/components/canvas/whiteboard-canvas.component.js +356 -0
  69. package/dist/src/components/canvas/whiteboard-canvas.style.d.ts +7 -0
  70. package/dist/src/components/canvas/whiteboard-canvas.style.js +1011 -0
  71. package/dist/src/components/canvas/whiteboard-node.component.d.ts +87 -0
  72. package/dist/src/components/canvas/whiteboard-node.component.js +809 -0
  73. package/dist/src/components/canvas/whiteboard-node.style.d.ts +7 -0
  74. package/dist/src/components/canvas/whiteboard-node.style.js +775 -0
  75. package/dist/src/components/canvas/workflow-canvas.component.d.ts +150 -0
  76. package/dist/src/components/canvas/workflow-canvas.component.js +1468 -0
  77. package/dist/src/components/canvas/workflow-canvas.style.d.ts +8 -0
  78. package/dist/src/components/canvas/workflow-canvas.style.js +2903 -0
  79. package/dist/src/components/canvas/workflow-canvas.types.d.ts +710 -0
  80. package/dist/src/components/canvas/workflow-canvas.types.js +2305 -0
  81. package/dist/src/components/canvas/workflow-node.component.d.ts +96 -0
  82. package/dist/src/components/canvas/workflow-node.component.js +752 -0
  83. package/dist/src/components/canvas/workflow-node.style.d.ts +8 -0
  84. package/dist/src/components/canvas/workflow-node.style.js +1053 -0
  85. package/dist/src/components/card/bundle.js +69 -0
  86. package/dist/src/components/card/bundle.js.gz +0 -0
  87. package/dist/src/components/card/card.component.d.ts +30 -0
  88. package/dist/src/components/card/card.component.js +64 -0
  89. package/dist/src/components/card/card.style.d.ts +2 -0
  90. package/dist/src/components/card/card.style.js +62 -0
  91. package/dist/src/components/card/card.types.d.ts +17 -0
  92. package/dist/src/components/card/card.types.js +2 -0
  93. package/dist/src/components/card/index.d.ts +3 -0
  94. package/dist/src/components/card/index.js +3 -0
  95. package/dist/src/components/card/react.d.ts +5 -0
  96. package/dist/src/components/card/react.js +12 -0
  97. package/dist/src/components/carousel/bundle.js +96 -0
  98. package/dist/src/components/carousel/bundle.js.gz +0 -0
  99. package/dist/src/components/carousel/carousel.component.d.ts +19 -0
  100. package/dist/src/components/carousel/carousel.component.js +128 -0
  101. package/dist/src/components/carousel/carousel.style.d.ts +2 -0
  102. package/dist/src/components/carousel/carousel.style.js +68 -0
  103. package/dist/src/components/carousel/index.d.ts +2 -0
  104. package/dist/src/components/carousel/index.js +2 -0
  105. package/dist/src/components/carousel/react.d.ts +5 -0
  106. package/dist/src/components/carousel/react.js +12 -0
  107. package/dist/src/components/chatbot/bundle.js +2527 -0
  108. package/dist/src/components/chatbot/bundle.js.gz +0 -0
  109. package/dist/src/components/chatbot/chatbot.component.d.ts +215 -0
  110. package/dist/src/components/chatbot/chatbot.component.js +1097 -0
  111. package/dist/src/components/chatbot/chatbot.style.d.ts +3 -0
  112. package/dist/src/components/chatbot/chatbot.style.js +1638 -0
  113. package/dist/src/components/chatbot/chatbot.types.d.ts +246 -0
  114. package/dist/src/components/chatbot/chatbot.types.js +124 -0
  115. package/dist/src/components/chatbot/index.d.ts +13 -0
  116. package/dist/src/components/chatbot/index.js +20 -0
  117. package/dist/src/components/chatbot/react.d.ts +54 -0
  118. package/dist/src/components/chatbot/react.js +55 -0
  119. package/dist/src/components/checkbox/bundle.js +352 -0
  120. package/dist/src/components/checkbox/bundle.js.gz +0 -0
  121. package/dist/src/components/checkbox/checkbox.component.d.ts +62 -0
  122. package/dist/src/components/checkbox/checkbox.component.js +178 -0
  123. package/dist/src/components/checkbox/checkbox.style.d.ts +2 -0
  124. package/dist/src/components/checkbox/checkbox.style.js +323 -0
  125. package/dist/src/components/checkbox/checkbox.types.d.ts +6 -0
  126. package/dist/src/components/checkbox/checkbox.types.js +2 -0
  127. package/dist/src/components/checkbox/index.d.ts +2 -0
  128. package/dist/src/components/checkbox/index.js +2 -0
  129. package/dist/src/components/checkbox/react.d.ts +5 -0
  130. package/dist/src/components/checkbox/react.js +12 -0
  131. package/dist/src/components/code-editor/bundle.js +55 -0
  132. package/dist/src/components/code-editor/bundle.js.gz +0 -0
  133. package/dist/src/components/code-editor/code-editor.component.d.ts +119 -0
  134. package/dist/src/components/code-editor/code-editor.component.js +532 -0
  135. package/dist/src/components/code-editor/code-editor.style.d.ts +7 -0
  136. package/dist/src/components/code-editor/code-editor.style.js +39 -0
  137. package/dist/src/components/code-editor/code-editor.types.d.ts +39 -0
  138. package/dist/src/components/code-editor/code-editor.types.js +22 -0
  139. package/dist/src/components/code-editor/index.d.ts +9 -0
  140. package/dist/src/components/code-editor/index.js +9 -0
  141. package/dist/src/components/collapse/bundle.js +308 -0
  142. package/dist/src/components/collapse/bundle.js.gz +0 -0
  143. package/dist/src/components/collapse/collapse.component.d.ts +93 -0
  144. package/dist/src/components/collapse/collapse.component.js +322 -0
  145. package/dist/src/components/collapse/collapse.style.d.ts +11 -0
  146. package/dist/src/components/collapse/collapse.style.js +234 -0
  147. package/dist/src/components/collapse/collapse.type.d.ts +79 -0
  148. package/dist/src/components/collapse/collapse.type.js +11 -0
  149. package/dist/src/components/collapse/index.d.ts +2 -0
  150. package/dist/src/components/collapse/index.js +2 -0
  151. package/dist/src/components/collapse/react.d.ts +6 -0
  152. package/dist/src/components/collapse/react.js +13 -0
  153. package/dist/src/components/colorpicker/bundle.js +242 -0
  154. package/dist/src/components/colorpicker/bundle.js.gz +0 -0
  155. package/dist/src/components/colorpicker/color-holder.component.d.ts +50 -0
  156. package/dist/src/components/colorpicker/color-holder.component.js +116 -0
  157. package/dist/src/components/colorpicker/color-holder.style.d.ts +2 -0
  158. package/dist/src/components/colorpicker/color-holder.style.js +45 -0
  159. package/dist/src/components/colorpicker/color-picker.component.d.ts +178 -0
  160. package/dist/src/components/colorpicker/color-picker.component.js +374 -0
  161. package/dist/src/components/colorpicker/color-picker.style.d.ts +10 -0
  162. package/dist/src/components/colorpicker/color-picker.style.js +86 -0
  163. package/dist/src/components/colorpicker/color-picker.types.d.ts +60 -0
  164. package/dist/src/components/colorpicker/color-picker.types.js +2 -0
  165. package/dist/src/components/colorpicker/default-color-sets.component.d.ts +45 -0
  166. package/dist/src/components/colorpicker/default-color-sets.component.js +121 -0
  167. package/dist/src/components/colorpicker/default-color-sets.style.d.ts +2 -0
  168. package/dist/src/components/colorpicker/default-color-sets.style.js +34 -0
  169. package/dist/src/components/colorpicker/index.d.ts +3 -0
  170. package/dist/src/components/colorpicker/index.js +3 -0
  171. package/dist/src/components/colorpicker/react.d.ts +6 -0
  172. package/dist/src/components/colorpicker/react.js +13 -0
  173. package/dist/src/components/console/react.d.ts +340 -0
  174. package/dist/src/components/console/react.js +13 -0
  175. package/dist/src/components/container/bundle.js +161 -0
  176. package/dist/src/components/container/bundle.js.gz +0 -0
  177. package/dist/src/components/container/container.component.d.ts +85 -0
  178. package/dist/src/components/container/container.component.js +223 -0
  179. package/dist/src/components/container/container.style.d.ts +6 -0
  180. package/dist/src/components/container/container.style.js +146 -0
  181. package/dist/src/components/container/container.types.d.ts +67 -0
  182. package/dist/src/components/container/container.types.js +5 -0
  183. package/dist/src/components/container/index.d.ts +3 -0
  184. package/dist/src/components/container/index.js +3 -0
  185. package/dist/src/components/container/react.d.ts +3 -0
  186. package/dist/src/components/container/react.js +10 -0
  187. package/dist/src/components/datepicker/bundle.js +706 -0
  188. package/dist/src/components/datepicker/bundle.js.gz +0 -0
  189. package/dist/src/components/datepicker/datepicker.component.d.ts +190 -0
  190. package/dist/src/components/datepicker/datepicker.component.js +673 -0
  191. package/dist/src/components/datepicker/datepicker.constant.d.ts +60 -0
  192. package/dist/src/components/datepicker/datepicker.constant.js +60 -0
  193. package/dist/src/components/datepicker/datepicker.style.d.ts +17 -0
  194. package/dist/src/components/datepicker/datepicker.style.js +453 -0
  195. package/dist/src/components/datepicker/datepicker.style.variables.d.ts +2 -0
  196. package/dist/src/components/datepicker/datepicker.style.variables.js +119 -0
  197. package/dist/src/components/datepicker/datepicker.types.d.ts +142 -0
  198. package/dist/src/components/datepicker/datepicker.types.js +75 -0
  199. package/dist/src/components/datepicker/index.d.ts +4 -0
  200. package/dist/src/components/datepicker/index.js +4 -0
  201. package/dist/src/components/datepicker/react.d.ts +16 -0
  202. package/dist/src/components/datepicker/react.js +23 -0
  203. package/dist/src/components/db-connection-select/bundle.js +308 -0
  204. package/dist/src/components/db-connection-select/bundle.js.gz +0 -0
  205. package/dist/src/components/db-connection-select/db-connection-select.component.d.ts +105 -0
  206. package/dist/src/components/db-connection-select/db-connection-select.component.js +573 -0
  207. package/dist/src/components/db-connection-select/index.d.ts +7 -0
  208. package/dist/src/components/db-connection-select/index.js +7 -0
  209. package/dist/src/components/divider/bundle.js +143 -0
  210. package/dist/src/components/divider/bundle.js.gz +0 -0
  211. package/dist/src/components/divider/divider.component.d.ts +90 -0
  212. package/dist/src/components/divider/divider.component.js +168 -0
  213. package/dist/src/components/divider/divider.style.d.ts +3 -0
  214. package/dist/src/components/divider/divider.style.js +139 -0
  215. package/dist/src/components/divider/divider.types.d.ts +55 -0
  216. package/dist/src/components/divider/divider.types.js +6 -0
  217. package/dist/src/components/divider/index.d.ts +3 -0
  218. package/dist/src/components/divider/index.js +3 -0
  219. package/dist/src/components/divider/react.d.ts +3 -0
  220. package/dist/src/components/divider/react.js +10 -0
  221. package/dist/src/components/document/bundle.js +242 -0
  222. package/dist/src/components/document/bundle.js.gz +0 -0
  223. package/dist/src/components/document/document.component.d.ts +27 -0
  224. package/dist/src/components/document/document.component.js +136 -0
  225. package/dist/src/components/document/document.style.d.ts +3 -0
  226. package/dist/src/components/document/document.style.js +210 -0
  227. package/dist/src/components/document/document.types.d.ts +68 -0
  228. package/dist/src/components/document/document.types.js +7 -0
  229. package/dist/src/components/document/index.d.ts +3 -0
  230. package/dist/src/components/document/index.js +3 -0
  231. package/dist/src/components/document/react.d.ts +8 -0
  232. package/dist/src/components/document/react.js +15 -0
  233. package/dist/src/components/dropdown/bundle.js +528 -0
  234. package/dist/src/components/dropdown/bundle.js.gz +0 -0
  235. package/dist/src/components/dropdown/dropdown.component.d.ts +120 -0
  236. package/dist/src/components/dropdown/dropdown.component.js +390 -0
  237. package/dist/src/components/dropdown/dropdown.style.d.ts +2 -0
  238. package/dist/src/components/dropdown/dropdown.style.js +460 -0
  239. package/dist/src/components/dropdown/dropdown.types.d.ts +99 -0
  240. package/dist/src/components/dropdown/dropdown.types.js +2 -0
  241. package/dist/src/components/dropdown/index.d.ts +3 -0
  242. package/dist/src/components/dropdown/index.js +3 -0
  243. package/dist/src/components/dropdown/react.d.ts +7 -0
  244. package/dist/src/components/dropdown/react.js +14 -0
  245. package/dist/src/components/file-upload/bundle.js +472 -0
  246. package/dist/src/components/file-upload/bundle.js.gz +0 -0
  247. package/dist/src/components/file-upload/file-upload.component.d.ts +43 -0
  248. package/dist/src/components/file-upload/file-upload.component.js +398 -0
  249. package/dist/src/components/file-upload/index.d.ts +2 -0
  250. package/dist/src/components/file-upload/index.js +2 -0
  251. package/dist/src/components/file-upload/react.d.ts +7 -0
  252. package/dist/src/components/file-upload/react.js +14 -0
  253. package/dist/src/components/file-upload/styles.d.ts +2 -0
  254. package/dist/src/components/file-upload/styles.js +373 -0
  255. package/dist/src/components/file-upload/types.d.ts +11 -0
  256. package/dist/src/components/file-upload/types.js +2 -0
  257. package/dist/src/components/file-upload/utils.d.ts +6 -0
  258. package/dist/src/components/file-upload/utils.js +24 -0
  259. package/dist/src/components/flex/bundle.js +114 -0
  260. package/dist/src/components/flex/bundle.js.gz +0 -0
  261. package/dist/src/components/flex/flex.component.d.ts +89 -0
  262. package/dist/src/components/flex/flex.component.js +178 -0
  263. package/dist/src/components/flex/flex.style.d.ts +6 -0
  264. package/dist/src/components/flex/flex.style.js +101 -0
  265. package/dist/src/components/flex/flex.types.d.ts +63 -0
  266. package/dist/src/components/flex/flex.types.js +5 -0
  267. package/dist/src/components/flex/index.d.ts +3 -0
  268. package/dist/src/components/flex/index.js +3 -0
  269. package/dist/src/components/flex/react.d.ts +3 -0
  270. package/dist/src/components/flex/react.js +10 -0
  271. package/dist/src/components/form/bundle.js +98 -0
  272. package/dist/src/components/form/bundle.js.gz +0 -0
  273. package/dist/src/components/form/form.component.d.ts +279 -0
  274. package/dist/src/components/form/form.component.js +644 -0
  275. package/dist/src/components/form/form.style.d.ts +7 -0
  276. package/dist/src/components/form/form.style.js +68 -0
  277. package/dist/src/components/form/form.types.d.ts +92 -0
  278. package/dist/src/components/form/form.types.js +38 -0
  279. package/dist/src/components/form/index.d.ts +10 -0
  280. package/dist/src/components/form/index.js +13 -0
  281. package/dist/src/components/grid/bundle.js +202 -0
  282. package/dist/src/components/grid/bundle.js.gz +0 -0
  283. package/dist/src/components/grid/col.component.d.ts +103 -0
  284. package/dist/src/components/grid/col.component.js +253 -0
  285. package/dist/src/components/grid/col.style.d.ts +6 -0
  286. package/dist/src/components/grid/col.style.js +117 -0
  287. package/dist/src/components/grid/grid.types.d.ts +80 -0
  288. package/dist/src/components/grid/grid.types.js +16 -0
  289. package/dist/src/components/grid/index.d.ts +4 -0
  290. package/dist/src/components/grid/index.js +4 -0
  291. package/dist/src/components/grid/react.d.ts +5 -0
  292. package/dist/src/components/grid/react.js +17 -0
  293. package/dist/src/components/grid/row.component.d.ts +83 -0
  294. package/dist/src/components/grid/row.component.js +197 -0
  295. package/dist/src/components/grid/row.style.d.ts +6 -0
  296. package/dist/src/components/grid/row.style.js +68 -0
  297. package/dist/src/components/icon/bundle.js +340 -0
  298. package/dist/src/components/icon/bundle.js.gz +0 -0
  299. package/dist/src/components/icon/icon.component.d.ts +64 -0
  300. package/dist/src/components/icon/icon.component.js +207 -0
  301. package/dist/src/components/icon/icon.style.d.ts +2 -0
  302. package/dist/src/components/icon/icon.style.js +211 -0
  303. package/dist/src/components/icon/icon.types.d.ts +5 -0
  304. package/dist/src/components/icon/icon.types.js +2 -0
  305. package/dist/src/components/icon/icon.variables.d.ts +17 -0
  306. package/dist/src/components/icon/icon.variables.js +132 -0
  307. package/dist/src/components/icon/index.d.ts +2 -0
  308. package/dist/src/components/icon/index.js +2 -0
  309. package/dist/src/components/icon/react.d.ts +3 -0
  310. package/dist/src/components/icon/react.js +9 -0
  311. package/dist/src/components/iconpicker/bundle.js +2811 -0
  312. package/dist/src/components/iconpicker/bundle.js.gz +0 -0
  313. package/dist/src/components/iconpicker/icon-picker.component.d.ts +119 -0
  314. package/dist/src/components/iconpicker/icon-picker.component.js +337 -0
  315. package/dist/src/components/iconpicker/icon-picker.constant.d.ts +15 -0
  316. package/dist/src/components/iconpicker/icon-picker.constant.js +31 -0
  317. package/dist/src/components/iconpicker/icon-picker.style.d.ts +8 -0
  318. package/dist/src/components/iconpicker/icon-picker.style.js +216 -0
  319. package/dist/src/components/iconpicker/icon-picker.types.d.ts +49 -0
  320. package/dist/src/components/iconpicker/icon-picker.types.js +7 -0
  321. package/dist/src/components/iconpicker/index.d.ts +9 -0
  322. package/dist/src/components/iconpicker/index.js +9 -0
  323. package/dist/src/components/iconpicker/react.d.ts +14 -0
  324. package/dist/src/components/iconpicker/react.js +21 -0
  325. package/dist/src/components/image/bundle.js +98 -0
  326. package/dist/src/components/image/bundle.js.gz +0 -0
  327. package/dist/src/components/image/image.component.d.ts +31 -0
  328. package/dist/src/components/image/image.component.js +143 -0
  329. package/dist/src/components/image/image.style.d.ts +3 -0
  330. package/dist/src/components/image/image.style.js +83 -0
  331. package/dist/src/components/image/image.types.d.ts +68 -0
  332. package/dist/src/components/image/image.types.js +7 -0
  333. package/dist/src/components/image/index.d.ts +3 -0
  334. package/dist/src/components/image/index.js +3 -0
  335. package/dist/src/components/image/react.d.ts +8 -0
  336. package/dist/src/components/image/react.js +15 -0
  337. package/dist/src/components/input/bundle.js +930 -0
  338. package/dist/src/components/input/bundle.js.gz +0 -0
  339. package/dist/src/components/input/index.d.ts +3 -0
  340. package/dist/src/components/input/index.js +3 -0
  341. package/dist/src/components/input/input.component.d.ts +174 -0
  342. package/dist/src/components/input/input.component.js +490 -0
  343. package/dist/src/components/input/input.style.d.ts +2 -0
  344. package/dist/src/components/input/input.style.js +810 -0
  345. package/dist/src/components/input/input.types.d.ts +127 -0
  346. package/dist/src/components/input/input.types.js +75 -0
  347. package/dist/src/components/input/react.d.ts +9 -0
  348. package/dist/src/components/input/react.js +16 -0
  349. package/dist/src/components/input/validation.d.ts +3 -0
  350. package/dist/src/components/input/validation.js +3 -0
  351. package/dist/src/components/kv-secret-select/bundle.js +183 -0
  352. package/dist/src/components/kv-secret-select/bundle.js.gz +0 -0
  353. package/dist/src/components/kv-secret-select/index.d.ts +2 -0
  354. package/dist/src/components/kv-secret-select/index.js +2 -0
  355. package/dist/src/components/kv-secret-select/kv-secret-select.component.d.ts +83 -0
  356. package/dist/src/components/kv-secret-select/kv-secret-select.component.js +360 -0
  357. package/dist/src/components/label/bundle.js +104 -0
  358. package/dist/src/components/label/bundle.js.gz +0 -0
  359. package/dist/src/components/label/index.d.ts +2 -0
  360. package/dist/src/components/label/index.js +2 -0
  361. package/dist/src/components/label/label.component.d.ts +18 -0
  362. package/dist/src/components/label/label.component.js +64 -0
  363. package/dist/src/components/label/label.style.d.ts +3 -0
  364. package/dist/src/components/label/label.style.js +70 -0
  365. package/dist/src/components/label/label.style.variables.d.ts +2 -0
  366. package/dist/src/components/label/label.style.variables.js +35 -0
  367. package/dist/src/components/label/label.types.d.ts +42 -0
  368. package/dist/src/components/label/label.types.js +2 -0
  369. package/dist/src/components/label/react.d.ts +339 -0
  370. package/dist/src/components/label/react.js +12 -0
  371. package/dist/src/components/layout/bundle.js +220 -0
  372. package/dist/src/components/layout/bundle.js.gz +0 -0
  373. package/dist/src/components/layout/content.component.d.ts +35 -0
  374. package/dist/src/components/layout/content.component.js +47 -0
  375. package/dist/src/components/layout/content.style.d.ts +2 -0
  376. package/dist/src/components/layout/content.style.js +17 -0
  377. package/dist/src/components/layout/footer.component.d.ts +38 -0
  378. package/dist/src/components/layout/footer.component.js +60 -0
  379. package/dist/src/components/layout/footer.style.d.ts +2 -0
  380. package/dist/src/components/layout/footer.style.js +17 -0
  381. package/dist/src/components/layout/header.component.d.ts +39 -0
  382. package/dist/src/components/layout/header.component.js +61 -0
  383. package/dist/src/components/layout/header.style.d.ts +2 -0
  384. package/dist/src/components/layout/header.style.js +19 -0
  385. package/dist/src/components/layout/index.d.ts +8 -0
  386. package/dist/src/components/layout/index.js +7 -0
  387. package/dist/src/components/layout/layout.component.d.ts +50 -0
  388. package/dist/src/components/layout/layout.component.js +89 -0
  389. package/dist/src/components/layout/layout.style.d.ts +2 -0
  390. package/dist/src/components/layout/layout.style.js +23 -0
  391. package/dist/src/components/layout/layout.types.d.ts +75 -0
  392. package/dist/src/components/layout/layout.types.js +12 -0
  393. package/dist/src/components/layout/react.d.ts +14 -0
  394. package/dist/src/components/layout/react.js +37 -0
  395. package/dist/src/components/layout/sider.component.d.ts +116 -0
  396. package/dist/src/components/layout/sider.component.js +273 -0
  397. package/dist/src/components/layout/sider.style.d.ts +2 -0
  398. package/dist/src/components/layout/sider.style.js +104 -0
  399. package/dist/src/components/menu/bundle.js +520 -0
  400. package/dist/src/components/menu/bundle.js.gz +0 -0
  401. package/dist/src/components/menu/index.d.ts +4 -0
  402. package/dist/src/components/menu/index.js +2 -0
  403. package/dist/src/components/menu/menu.component.d.ts +87 -0
  404. package/dist/src/components/menu/menu.component.js +596 -0
  405. package/dist/src/components/menu/menu.constants.d.ts +12 -0
  406. package/dist/src/components/menu/menu.constants.js +14 -0
  407. package/dist/src/components/menu/menu.style.d.ts +2 -0
  408. package/dist/src/components/menu/menu.style.js +372 -0
  409. package/dist/src/components/menu/menu.types.d.ts +66 -0
  410. package/dist/src/components/menu/menu.types.js +7 -0
  411. package/dist/src/components/menu/react.d.ts +5 -0
  412. package/dist/src/components/menu/react.js +12 -0
  413. package/dist/src/components/modal/bundle.js +442 -0
  414. package/dist/src/components/modal/bundle.js.gz +0 -0
  415. package/dist/src/components/modal/index.d.ts +10 -0
  416. package/dist/src/components/modal/index.js +10 -0
  417. package/dist/src/components/modal/modal-manager.d.ts +72 -0
  418. package/dist/src/components/modal/modal-manager.js +170 -0
  419. package/dist/src/components/modal/modal.component.d.ts +121 -0
  420. package/dist/src/components/modal/modal.component.js +461 -0
  421. package/dist/src/components/modal/modal.style.d.ts +9 -0
  422. package/dist/src/components/modal/modal.style.js +369 -0
  423. package/dist/src/components/modal/modal.types.d.ts +105 -0
  424. package/dist/src/components/modal/modal.types.js +93 -0
  425. package/dist/src/components/modal/react.d.ts +9 -0
  426. package/dist/src/components/modal/react.js +16 -0
  427. package/dist/src/components/panel/bundle.js +1075 -0
  428. package/dist/src/components/panel/bundle.js.gz +0 -0
  429. package/dist/src/components/panel/index.d.ts +9 -0
  430. package/dist/src/components/panel/index.js +9 -0
  431. package/dist/src/components/panel/panel.component.d.ts +199 -0
  432. package/dist/src/components/panel/panel.component.js +720 -0
  433. package/dist/src/components/panel/panel.style.d.ts +7 -0
  434. package/dist/src/components/panel/panel.style.js +497 -0
  435. package/dist/src/components/panel/panel.types.d.ts +94 -0
  436. package/dist/src/components/panel/panel.types.js +50 -0
  437. package/dist/src/components/panel/react.d.ts +11 -0
  438. package/dist/src/components/panel/react.js +18 -0
  439. package/dist/src/components/popconfirm/bundle.js +438 -0
  440. package/dist/src/components/popconfirm/bundle.js.gz +0 -0
  441. package/dist/src/components/popconfirm/index.d.ts +4 -0
  442. package/dist/src/components/popconfirm/index.js +4 -0
  443. package/dist/src/components/popconfirm/popconfirm-manager.component.d.ts +129 -0
  444. package/dist/src/components/popconfirm/popconfirm-manager.component.js +372 -0
  445. package/dist/src/components/popconfirm/popconfirm-manager.style.d.ts +2 -0
  446. package/dist/src/components/popconfirm/popconfirm-manager.style.js +137 -0
  447. package/dist/src/components/popconfirm/popconfirm.component.d.ts +179 -0
  448. package/dist/src/components/popconfirm/popconfirm.component.js +409 -0
  449. package/dist/src/components/popconfirm/popconfirm.style.d.ts +2 -0
  450. package/dist/src/components/popconfirm/popconfirm.style.js +207 -0
  451. package/dist/src/components/popconfirm/popconfirm.types.d.ts +104 -0
  452. package/dist/src/components/popconfirm/popconfirm.types.js +2 -0
  453. package/dist/src/components/popconfirm/react.d.ts +7 -0
  454. package/dist/src/components/popconfirm/react.js +14 -0
  455. package/dist/src/components/radio/bundle.js +180 -0
  456. package/dist/src/components/radio/bundle.js.gz +0 -0
  457. package/dist/src/components/radio/index.d.ts +3 -0
  458. package/dist/src/components/radio/index.js +3 -0
  459. package/dist/src/components/radio/radio.component.d.ts +70 -0
  460. package/dist/src/components/radio/radio.component.js +187 -0
  461. package/dist/src/components/radio/radio.style.d.ts +7 -0
  462. package/dist/src/components/radio/radio.style.js +149 -0
  463. package/dist/src/components/radio/radio.types.d.ts +14 -0
  464. package/dist/src/components/radio/radio.types.js +15 -0
  465. package/dist/src/components/radio/react.d.ts +12 -0
  466. package/dist/src/components/radio/react.js +19 -0
  467. package/dist/src/components/radio-group/bundle.js +430 -0
  468. package/dist/src/components/radio-group/bundle.js.gz +0 -0
  469. package/dist/src/components/radio-group/index.d.ts +3 -0
  470. package/dist/src/components/radio-group/index.js +3 -0
  471. package/dist/src/components/radio-group/radio-group.component.d.ts +165 -0
  472. package/dist/src/components/radio-group/radio-group.component.js +437 -0
  473. package/dist/src/components/radio-group/radio-group.style.d.ts +7 -0
  474. package/dist/src/components/radio-group/radio-group.style.js +270 -0
  475. package/dist/src/components/radio-group/radio-group.types.d.ts +39 -0
  476. package/dist/src/components/radio-group/radio-group.types.js +29 -0
  477. package/dist/src/components/radio-group/radio.constant.d.ts +2 -0
  478. package/dist/src/components/radio-group/radio.constant.js +2 -0
  479. package/dist/src/components/radio-group/react.d.ts +10 -0
  480. package/dist/src/components/radio-group/react.js +17 -0
  481. package/dist/src/components/select/bundle.js +721 -0
  482. package/dist/src/components/select/bundle.js.gz +0 -0
  483. package/dist/src/components/select/index.d.ts +17 -0
  484. package/dist/src/components/select/index.js +20 -0
  485. package/dist/src/components/select/react.d.ts +19 -0
  486. package/dist/src/components/select/react.js +26 -0
  487. package/dist/src/components/select/select.component.d.ts +359 -0
  488. package/dist/src/components/select/select.component.js +775 -0
  489. package/dist/src/components/select/select.constant.d.ts +133 -0
  490. package/dist/src/components/select/select.constant.js +136 -0
  491. package/dist/src/components/select/select.style.d.ts +2 -0
  492. package/dist/src/components/select/select.style.js +533 -0
  493. package/dist/src/components/select/select.types.d.ts +100 -0
  494. package/dist/src/components/select/select.types.js +73 -0
  495. package/dist/src/components/skeleton/bundle.js +293 -0
  496. package/dist/src/components/skeleton/bundle.js.gz +0 -0
  497. package/dist/src/components/skeleton/index.d.ts +3 -0
  498. package/dist/src/components/skeleton/index.js +3 -0
  499. package/dist/src/components/skeleton/react.d.ts +3 -0
  500. package/dist/src/components/skeleton/react.js +10 -0
  501. package/dist/src/components/skeleton/skeleton.component.d.ts +165 -0
  502. package/dist/src/components/skeleton/skeleton.component.js +387 -0
  503. package/dist/src/components/skeleton/skeleton.style.d.ts +2 -0
  504. package/dist/src/components/skeleton/skeleton.style.js +224 -0
  505. package/dist/src/components/skeleton/skeleton.types.d.ts +82 -0
  506. package/dist/src/components/skeleton/skeleton.types.js +2 -0
  507. package/dist/src/components/slider-input/bundle.js +241 -0
  508. package/dist/src/components/slider-input/bundle.js.gz +0 -0
  509. package/dist/src/components/slider-input/index.d.ts +3 -0
  510. package/dist/src/components/slider-input/index.js +3 -0
  511. package/dist/src/components/slider-input/react.d.ts +340 -0
  512. package/dist/src/components/slider-input/react.js +13 -0
  513. package/dist/src/components/slider-input/slider-input.component.d.ts +38 -0
  514. package/dist/src/components/slider-input/slider-input.component.js +191 -0
  515. package/dist/src/components/slider-input/slider-input.style.d.ts +3 -0
  516. package/dist/src/components/slider-input/slider-input.style.js +171 -0
  517. package/dist/src/components/slider-input/slider-input.style.variables.d.ts +2 -0
  518. package/dist/src/components/slider-input/slider-input.style.variables.js +59 -0
  519. package/dist/src/components/slider-input/slider-input.types.d.ts +21 -0
  520. package/dist/src/components/slider-input/slider-input.types.js +6 -0
  521. package/dist/src/components/table/bundle.js +987 -0
  522. package/dist/src/components/table/bundle.js.gz +0 -0
  523. package/dist/src/components/table/index.d.ts +2 -0
  524. package/dist/src/components/table/index.js +2 -0
  525. package/dist/src/components/table/react.d.ts +7 -0
  526. package/dist/src/components/table/react.js +14 -0
  527. package/dist/src/components/table/table.component.d.ts +140 -0
  528. package/dist/src/components/table/table.component.js +433 -0
  529. package/dist/src/components/table/table.style.d.ts +3 -0
  530. package/dist/src/components/table/table.style.js +702 -0
  531. package/dist/src/components/table/table.types.d.ts +103 -0
  532. package/dist/src/components/table/table.types.js +2 -0
  533. package/dist/src/components/tabs/bundle.js +1782 -0
  534. package/dist/src/components/tabs/bundle.js.gz +0 -0
  535. package/dist/src/components/tabs/index.d.ts +9 -0
  536. package/dist/src/components/tabs/index.js +10 -0
  537. package/dist/src/components/tabs/react.d.ts +50 -0
  538. package/dist/src/components/tabs/react.js +50 -0
  539. package/dist/src/components/tabs/tabs.component.d.ts +100 -0
  540. package/dist/src/components/tabs/tabs.component.js +461 -0
  541. package/dist/src/components/tabs/tabs.constant.d.ts +20 -0
  542. package/dist/src/components/tabs/tabs.constant.js +21 -0
  543. package/dist/src/components/tabs/tabs.style.d.ts +9 -0
  544. package/dist/src/components/tabs/tabs.style.js +577 -0
  545. package/dist/src/components/tabs/tabs.types.d.ts +241 -0
  546. package/dist/src/components/tabs/tabs.types.js +13 -0
  547. package/dist/src/components/tag/bundle.js +108 -0
  548. package/dist/src/components/tag/bundle.js.gz +0 -0
  549. package/dist/src/components/tag/index.d.ts +2 -0
  550. package/dist/src/components/tag/index.js +2 -0
  551. package/dist/src/components/tag/react.d.ts +6 -0
  552. package/dist/src/components/tag/react.js +13 -0
  553. package/dist/src/components/tag/tag.component.d.ts +57 -0
  554. package/dist/src/components/tag/tag.component.js +157 -0
  555. package/dist/src/components/tag/tag.style.d.ts +7 -0
  556. package/dist/src/components/tag/tag.style.js +88 -0
  557. package/dist/src/components/tag/tag.types.d.ts +28 -0
  558. package/dist/src/components/tag/tag.types.js +7 -0
  559. package/dist/src/components/textarea/bundle.js +404 -0
  560. package/dist/src/components/textarea/bundle.js.gz +0 -0
  561. package/dist/src/components/textarea/index.d.ts +8 -0
  562. package/dist/src/components/textarea/index.js +7 -0
  563. package/dist/src/components/textarea/react.d.ts +9 -0
  564. package/dist/src/components/textarea/react.js +16 -0
  565. package/dist/src/components/textarea/textarea.component.d.ts +203 -0
  566. package/dist/src/components/textarea/textarea.component.js +657 -0
  567. package/dist/src/components/textarea/textarea.style.d.ts +59 -0
  568. package/dist/src/components/textarea/textarea.style.js +386 -0
  569. package/dist/src/components/textarea/textarea.types.d.ts +102 -0
  570. package/dist/src/components/textarea/textarea.types.js +14 -0
  571. package/dist/src/components/timeline/bundle.js +261 -0
  572. package/dist/src/components/timeline/bundle.js.gz +0 -0
  573. package/dist/src/components/timeline/index.d.ts +2 -0
  574. package/dist/src/components/timeline/index.js +2 -0
  575. package/dist/src/components/timeline/react.d.ts +3 -0
  576. package/dist/src/components/timeline/react.js +10 -0
  577. package/dist/src/components/timeline/timeline.component.d.ts +109 -0
  578. package/dist/src/components/timeline/timeline.component.js +214 -0
  579. package/dist/src/components/timeline/timeline.style.d.ts +14 -0
  580. package/dist/src/components/timeline/timeline.style.js +234 -0
  581. package/dist/src/components/timeline/timeline.types.d.ts +62 -0
  582. package/dist/src/components/timeline/timeline.types.js +7 -0
  583. package/dist/src/components/timepicker/bundle.js +810 -0
  584. package/dist/src/components/timepicker/bundle.js.gz +0 -0
  585. package/dist/src/components/timepicker/index.d.ts +12 -0
  586. package/dist/src/components/timepicker/index.js +12 -0
  587. package/dist/src/components/timepicker/timepicker.component.d.ts +115 -0
  588. package/dist/src/components/timepicker/timepicker.component.js +743 -0
  589. package/dist/src/components/timepicker/timepicker.constants.d.ts +85 -0
  590. package/dist/src/components/timepicker/timepicker.constants.js +85 -0
  591. package/dist/src/components/timepicker/timepicker.style.d.ts +7 -0
  592. package/dist/src/components/timepicker/timepicker.style.js +568 -0
  593. package/dist/src/components/timepicker/timepicker.style.variables.d.ts +2 -0
  594. package/dist/src/components/timepicker/timepicker.style.variables.js +122 -0
  595. package/dist/src/components/timepicker/timepicker.types.d.ts +161 -0
  596. package/dist/src/components/timepicker/timepicker.types.js +125 -0
  597. package/dist/src/components/toast/bundle.js +393 -0
  598. package/dist/src/components/toast/bundle.js.gz +0 -0
  599. package/dist/src/components/toast/index.d.ts +9 -0
  600. package/dist/src/components/toast/index.js +9 -0
  601. package/dist/src/components/toast/react.d.ts +7 -0
  602. package/dist/src/components/toast/react.js +19 -0
  603. package/dist/src/components/toast/toast.component.d.ts +152 -0
  604. package/dist/src/components/toast/toast.component.js +368 -0
  605. package/dist/src/components/toast/toast.style.d.ts +14 -0
  606. package/dist/src/components/toast/toast.style.js +338 -0
  607. package/dist/src/components/toast/toast.types.d.ts +124 -0
  608. package/dist/src/components/toast/toast.types.js +9 -0
  609. package/dist/src/components/tooltips/bundle.js +123 -0
  610. package/dist/src/components/tooltips/bundle.js.gz +0 -0
  611. package/dist/src/components/tooltips/index.d.ts +2 -0
  612. package/dist/src/components/tooltips/index.js +2 -0
  613. package/dist/src/components/tooltips/react.d.ts +1 -0
  614. package/dist/src/components/tooltips/react.js +2 -0
  615. package/dist/src/components/tooltips/tooltips.component.d.ts +33 -0
  616. package/dist/src/components/tooltips/tooltips.component.js +313 -0
  617. package/dist/src/components/tooltips/tooltips.constant.d.ts +13 -0
  618. package/dist/src/components/tooltips/tooltips.constant.js +15 -0
  619. package/dist/src/components/tooltips/tooltips.style.d.ts +2 -0
  620. package/dist/src/components/tooltips/tooltips.style.js +103 -0
  621. package/dist/src/components/tooltips/tooltips.variables.d.ts +2 -0
  622. package/dist/src/components/tooltips/tooltips.variables.js +14 -0
  623. package/dist/src/components/video/bundle.js +171 -0
  624. package/dist/src/components/video/bundle.js.gz +0 -0
  625. package/dist/src/components/video/index.d.ts +3 -0
  626. package/dist/src/components/video/index.js +3 -0
  627. package/dist/src/components/video/react.d.ts +10 -0
  628. package/dist/src/components/video/react.js +17 -0
  629. package/dist/src/components/video/video.component.d.ts +34 -0
  630. package/dist/src/components/video/video.component.js +184 -0
  631. package/dist/src/components/video/video.style.d.ts +3 -0
  632. package/dist/src/components/video/video.style.js +124 -0
  633. package/dist/src/components/video/video.types.d.ts +80 -0
  634. package/dist/src/components/video/video.types.js +7 -0
  635. package/package.json +215 -0
  636. package/packages/common/README.md +137 -0
  637. package/packages/common/dist/LICENSE +28 -0
  638. package/packages/common/dist/README.md +137 -0
  639. package/packages/common/dist/VERSIONS.md +4 -0
  640. package/packages/common/dist/constants/index.d.ts +2 -0
  641. package/packages/common/dist/constants/index.d.ts.map +1 -0
  642. package/packages/common/dist/constants/index.js +2 -0
  643. package/packages/common/dist/constants/index.js.map +1 -0
  644. package/packages/common/dist/constants.d.ts +17 -0
  645. package/packages/common/dist/constants.d.ts.map +1 -0
  646. package/packages/common/dist/constants.js +7 -0
  647. package/packages/common/dist/constants.js.map +1 -0
  648. package/packages/common/dist/controllers/index.d.ts +2 -0
  649. package/packages/common/dist/controllers/index.d.ts.map +1 -0
  650. package/packages/common/dist/controllers/index.js +2 -0
  651. package/packages/common/dist/controllers/index.js.map +1 -0
  652. package/packages/common/dist/controllers.d.ts +21 -0
  653. package/packages/common/dist/controllers.d.ts.map +1 -0
  654. package/packages/common/dist/controllers.js +22 -0
  655. package/packages/common/dist/controllers.js.map +1 -0
  656. package/packages/common/dist/index.d.ts +25 -0
  657. package/packages/common/dist/index.d.ts.map +1 -0
  658. package/packages/common/dist/index.js +27 -0
  659. package/packages/common/dist/index.js.map +1 -0
  660. package/packages/common/dist/mixins/index.d.ts +2 -0
  661. package/packages/common/dist/mixins/index.d.ts.map +1 -0
  662. package/packages/common/dist/mixins/index.js +3 -0
  663. package/packages/common/dist/mixins/index.js.map +1 -0
  664. package/packages/common/dist/mixins.d.ts +26 -0
  665. package/packages/common/dist/mixins.d.ts.map +1 -0
  666. package/packages/common/dist/mixins.js +29 -0
  667. package/packages/common/dist/mixins.js.map +1 -0
  668. package/packages/common/dist/shared/base-mixin.d.ts +42 -0
  669. package/packages/common/dist/shared/base-mixin.d.ts.map +1 -0
  670. package/packages/common/dist/shared/base-mixin.js +38 -0
  671. package/packages/common/dist/shared/base-mixin.js.map +1 -0
  672. package/packages/common/dist/shared/constants.d.ts +1 -0
  673. package/packages/common/dist/shared/constants.d.ts.map +1 -0
  674. package/packages/common/dist/shared/constants.js +2 -0
  675. package/packages/common/dist/shared/constants.js.map +1 -0
  676. package/packages/common/dist/shared/controllers/base-validation.controller.d.ts +81 -0
  677. package/packages/common/dist/shared/controllers/base-validation.controller.d.ts.map +1 -0
  678. package/packages/common/dist/shared/controllers/base-validation.controller.js +104 -0
  679. package/packages/common/dist/shared/controllers/base-validation.controller.js.map +1 -0
  680. package/packages/common/dist/shared/controllers/base.controller.d.ts +76 -0
  681. package/packages/common/dist/shared/controllers/base.controller.d.ts.map +1 -0
  682. package/packages/common/dist/shared/controllers/base.controller.js +129 -0
  683. package/packages/common/dist/shared/controllers/base.controller.js.map +1 -0
  684. package/packages/common/dist/shared/controllers/dropdown.controller.d.ts +77 -0
  685. package/packages/common/dist/shared/controllers/dropdown.controller.d.ts.map +1 -0
  686. package/packages/common/dist/shared/controllers/dropdown.controller.js +341 -0
  687. package/packages/common/dist/shared/controllers/dropdown.controller.js.map +1 -0
  688. package/packages/common/dist/shared/controllers/dropdown.interface.d.ts +37 -0
  689. package/packages/common/dist/shared/controllers/dropdown.interface.d.ts.map +1 -0
  690. package/packages/common/dist/shared/controllers/dropdown.interface.js +2 -0
  691. package/packages/common/dist/shared/controllers/dropdown.interface.js.map +1 -0
  692. package/packages/common/dist/shared/controllers/index.d.ts +6 -0
  693. package/packages/common/dist/shared/controllers/index.d.ts.map +1 -0
  694. package/packages/common/dist/shared/controllers/index.js +6 -0
  695. package/packages/common/dist/shared/controllers/index.js.map +1 -0
  696. package/packages/common/dist/shared/controllers/theme.controller.d.ts +48 -0
  697. package/packages/common/dist/shared/controllers/theme.controller.d.ts.map +1 -0
  698. package/packages/common/dist/shared/controllers/theme.controller.js +133 -0
  699. package/packages/common/dist/shared/controllers/theme.controller.js.map +1 -0
  700. package/packages/common/dist/shared/dependency-mixin.d.ts +37 -0
  701. package/packages/common/dist/shared/dependency-mixin.d.ts.map +1 -0
  702. package/packages/common/dist/shared/dependency-mixin.js +141 -0
  703. package/packages/common/dist/shared/dependency-mixin.js.map +1 -0
  704. package/packages/common/dist/shared/event-handler-mixin.d.ts +64 -0
  705. package/packages/common/dist/shared/event-handler-mixin.d.ts.map +1 -0
  706. package/packages/common/dist/shared/event-handler-mixin.js +95 -0
  707. package/packages/common/dist/shared/event-handler-mixin.js.map +1 -0
  708. package/packages/common/dist/shared/index.d.ts +13 -0
  709. package/packages/common/dist/shared/index.d.ts.map +1 -0
  710. package/packages/common/dist/shared/index.js +17 -0
  711. package/packages/common/dist/shared/index.js.map +1 -0
  712. package/packages/common/dist/shared/render-utils.d.ts +103 -0
  713. package/packages/common/dist/shared/render-utils.d.ts.map +1 -0
  714. package/packages/common/dist/shared/render-utils.js +132 -0
  715. package/packages/common/dist/shared/render-utils.js.map +1 -0
  716. package/packages/common/dist/shared/theme-mixin.d.ts +78 -0
  717. package/packages/common/dist/shared/theme-mixin.d.ts.map +1 -0
  718. package/packages/common/dist/shared/theme-mixin.js +194 -0
  719. package/packages/common/dist/shared/theme-mixin.js.map +1 -0
  720. package/packages/common/dist/shared/themes.d.ts +44 -0
  721. package/packages/common/dist/shared/themes.d.ts.map +1 -0
  722. package/packages/common/dist/shared/themes.js +85 -0
  723. package/packages/common/dist/shared/themes.js.map +1 -0
  724. package/packages/common/dist/shared/utils.d.ts +60 -0
  725. package/packages/common/dist/shared/utils.d.ts.map +1 -0
  726. package/packages/common/dist/shared/utils.js +85 -0
  727. package/packages/common/dist/shared/utils.js.map +1 -0
  728. package/packages/common/dist/shared/validation.types.d.ts +108 -0
  729. package/packages/common/dist/shared/validation.types.d.ts.map +1 -0
  730. package/packages/common/dist/shared/validation.types.js +17 -0
  731. package/packages/common/dist/shared/validation.types.js.map +1 -0
  732. package/packages/common/dist/themes/index.d.ts +2 -0
  733. package/packages/common/dist/themes/index.d.ts.map +1 -0
  734. package/packages/common/dist/themes/index.js +2 -0
  735. package/packages/common/dist/themes/index.js.map +1 -0
  736. package/packages/common/dist/themes.d.ts +22 -0
  737. package/packages/common/dist/themes.d.ts.map +1 -0
  738. package/packages/common/dist/themes.js +23 -0
  739. package/packages/common/dist/themes.js.map +1 -0
  740. package/packages/common/dist/utils/index.d.ts +2 -0
  741. package/packages/common/dist/utils/index.d.ts.map +1 -0
  742. package/packages/common/dist/utils/index.js +2 -0
  743. package/packages/common/dist/utils/index.js.map +1 -0
  744. package/packages/common/dist/utils.d.ts +22 -0
  745. package/packages/common/dist/utils.d.ts.map +1 -0
  746. package/packages/common/dist/utils.js +24 -0
  747. package/packages/common/dist/utils.js.map +1 -0
  748. package/packages/themes/README.md +146 -0
  749. package/packages/themes/dist/README.md +146 -0
  750. package/packages/themes/dist/carbon.css +2987 -0
  751. package/packages/themes/dist/default.css +2757 -0
  752. package/packages/themes/dist/editor.css +1063 -0
  753. package/packages/themes/dist/index.cjs +46 -0
  754. package/packages/themes/dist/index.js +46 -0
  755. package/packages/themes/dist/package.json +59 -0
@@ -0,0 +1,930 @@
1
+ import{css as t,html as i,nothing as r,LitElement as n}from"lit";import{property as e,state as a,customElement as o}from"lit/decorators.js";import{NuralyUIBaseMixin as s}from"@nuralyui/common/mixins";import{BaseComponentController as l,BaseValidationController as d}from"@nuralyui/common/controllers";const u=[t`
2
+ /*
3
+ * Host element base styles
4
+ * Container for the input component with flexible layout
5
+ */
6
+ :host {
7
+ display: flex;
8
+ flex-direction: column;
9
+ font-family: var(--nuraly-font-family-input, 'IBM Plex Sans', ui-sans-serif, system-ui);
10
+ }
11
+
12
+ /*
13
+ * Base input wrapper and input element styles
14
+ * Background applied to wrapper to cover entire container including addons
15
+ * Uses theme CSS custom properties for comprehensive theming support
16
+ */
17
+ .input-wrapper {
18
+ background-color: var(--nuraly-color-input-background, var(--nuraly-color-input-background-fallback, #ffffff));
19
+ }
20
+
21
+
22
+ #input-container > input {
23
+ background-color: transparent;
24
+ border: var(--nuraly-input-border, none);
25
+ outline: var(--nuraly-input-outline, none);
26
+ flex: 1;
27
+ min-width: 0;
28
+ width: 100%;
29
+
30
+ /* Typography from theme */
31
+ font-family: var(--nuraly-font-family-input, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto);
32
+ font-size: var(--nuraly-font-size-input, 14px);
33
+ color: var(--nuraly-color-input-text, var(--nuraly-color-input-text-fallback, rgba(0, 0, 0, 0.88)));
34
+
35
+ /* Padding from theme */
36
+ padding: var(--nuraly-spacing-input-medium-vertical, 4px) var(--nuraly-spacing-input-medium-horizontal, 11px);
37
+ }
38
+
39
+ /*
40
+ * Disabled state styles for wrapper and input
41
+ * Applied when input is disabled - removes interactivity and applies muted colors
42
+ */
43
+ :host([disabled]) .input-wrapper {
44
+ background-color: var(--nuraly-color-input-disabled-background, var(--nuraly-color-input-disabled-background-fallback, #f4f4f4));
45
+ }
46
+
47
+ :host([disabled]) #input-container > input {
48
+ background-color: transparent;
49
+ cursor: var(--nuraly-cursor-disabled, not-allowed);
50
+ color: var(--nuraly-color-input-disabled-text, var(--nuraly-color-input-disabled-text-fallback, rgba(0, 0, 0, 0.25)));
51
+ }
52
+
53
+ /*
54
+ * Icon base styles
55
+ * Common styling for all icons within the input component
56
+ * Provides comprehensive CSS variable override system
57
+ */
58
+ nr-icon {
59
+ display: flex;
60
+ align-items: center;
61
+
62
+ /* Global icon color override - applies to all icons in input */
63
+ --nuraly-color-icon: var(--nuraly-color-input-icon, var(--nuraly-color-icon, var(--nuraly-color-icon-fallback, #161616)));
64
+
65
+ /* Size override for input icons */
66
+ --nuraly-icon-size: var(--nuraly-size-input-icon, var(--nuraly-icon-size, var(--nuraly-icon-size-fallback, 18px)));
67
+
68
+ /* Interactive state overrides */
69
+ --nuraly-color-icon-hover: var(--nuraly-color-input-icon-hover, var(--nuraly-color-icon-hover, var(--nuraly-color-icon-hover-fallback, #0f62fe)));
70
+ --nuraly-color-icon-active: var(--nuraly-color-input-icon-active, var(--nuraly-color-icon-active, var(--nuraly-color-icon-active-fallback, #054ada)));
71
+ --nuraly-color-icon-disabled: var(--nuraly-color-input-icon-disabled, var(--nuraly-color-icon-disabled, var(--nuraly-color-icon-disabled-fallback, #c6c6c6)));
72
+ }
73
+
74
+ /*
75
+ * Placeholder styling
76
+ * Customizable placeholder text appearance
77
+ */
78
+ ::placeholder {
79
+ color: var(--nuraly-color-input-placeholder, var(--nuraly-color-input-placeholder-fallback, #a8a8a8));
80
+ font-size: var(--nuraly-font-size-input-placeholder, 14px);
81
+ font-family: var(--nuraly-font-family-input, 'IBM Plex Sans', ui-sans-serif, system-ui);
82
+ }
83
+
84
+ /*
85
+ * Disabled placeholder styling
86
+ * Applied when input is disabled
87
+ */
88
+ :host([disabled]) ::placeholder {
89
+ color: var(--nuraly-color-input-disabled-placeholder, var(--nuraly-color-input-disabled-placeholder-fallback, #c6c6c6));
90
+ }
91
+
92
+ /* ========================================
93
+ * ICON VARIANTS AND STATES
94
+ * ======================================== */
95
+
96
+ /* Warning state icon */
97
+ #warning-icon {
98
+ --nuraly-color-icon: var(--nuraly-color-input-warning-icon, #f1c21b);
99
+ }
100
+
101
+ /* Error state icon */
102
+ #error-icon {
103
+ --nuraly-color-icon: var(--nuraly-color-input-error-icon, #da1e28);
104
+ }
105
+
106
+ /* Calendar input type icon */
107
+ #calendar-icon {
108
+ --nuraly-color-icon: var(--nuraly-color-input-calendar-icon, #161616);
109
+ }
110
+
111
+ /* Password toggle icon */
112
+ #password-icon {
113
+ padding-left: var(--nuraly-input-password-icon-padding-left, var(--nuraly-password-icon-padding-left, 8px));
114
+ padding-right: var(--nuraly-input-password-icon-padding-right, var(--nuraly-password-icon-padding-right, 8px));
115
+ cursor: var(--nuraly-cursor-interactive, pointer);
116
+ --nuraly-color-icon: var(--nuraly-color-input-password-icon, #161616);
117
+ }
118
+
119
+ /* Copy functionality icon */
120
+ #copy-icon {
121
+ padding-right: var(--nuraly-input-copy-icon-padding-right, var(--nuraly-copy-icon-padding-right, 8px));
122
+ --nuraly-color-icon: var(--nuraly-color-input-copy-icon, #161616);
123
+ cursor: var(--nuraly-cursor-interactive, pointer);
124
+ }
125
+
126
+ /* Clear functionality icon */
127
+ #clear-icon {
128
+ padding-right: var(--nuraly-input-clear-icon-padding-right, var(--nuraly-clear-icon-padding-right, 8px));
129
+ --nuraly-color-icon: var(--nuraly-color-input-clear-icon, #161616);
130
+ cursor: var(--nuraly-cursor-interactive, pointer);
131
+ }
132
+
133
+ /*
134
+ * Number input increment/decrement icons container
135
+ * Positioned absolutely for overlay on input
136
+ */
137
+ #number-icons {
138
+ display: flex;
139
+ justify-content: space-between;
140
+ align-items: center;
141
+ cursor: var(--nuraly-cursor-interactive, pointer);
142
+ position: absolute;
143
+ right: 0;
144
+ top: 0;
145
+ height: 100%;
146
+ width: var(--nuraly-input-number-icons-container-width, var(--nuraly-number-icons-container-width, 50px));
147
+ padding-right: var(--nuraly-input-number-icons-container-padding-right, var(--nuraly-number-icons-container-padding-right, 8px));
148
+ }
149
+
150
+ /* Individual number icons styling */
151
+ #number-icons nr-icon {
152
+ --nuraly-color-icon: var(--nuraly-color-input-number-icons, #161616);
153
+ padding-left: var(--nuraly-input-number-icons-padding-left, var(--nuraly-number-icons-padding-left, 4px));
154
+ padding-right: var(--nuraly-input-number-icons-padding-right, var(--nuraly-number-icons-padding-right, 4px));
155
+ width: var(--nuraly-input-number-icons-width, var(--nuraly-number-icons-width, 24px));
156
+ height: var(--nuraly-input-number-icons-height, var(--nuraly-number-icons-height, 24px));
157
+ }
158
+
159
+ /* Number icons separator styling */
160
+ #icons-separator {
161
+ color: var(--nuraly-input-number-icons-separator-color, var(--nuraly-number-icons-separator-color));
162
+ padding-bottom: var(--nuraly-input-number-icons-separator-padding-bottom, var(--nuraly-number-icons-separator-padding-bottom));
163
+ padding-left: var(--nuraly-input-number-icons-separator-padding-left, var(--nuraly-number-icons-separator-padding-left));
164
+ padding-right: var(--nuraly-input-number-icons-separator-padding-right, var(--nuraly-number-icons-separator-padding-right));
165
+ }
166
+
167
+ /*
168
+ * Disabled state for all icons
169
+ * Applied when input is disabled - reduces opacity and disables interaction
170
+ */
171
+ :host([disabled]) #password-icon,
172
+ :host([disabled]) #error-icon,
173
+ :host([disabled]) #warning-icon,
174
+ :host([disabled]) #number-icons,
175
+ :host([disabled]) #calendar-icon,
176
+ :host([disabled]) #copy-icon,
177
+ :host([disabled]) #clear-icon {
178
+ opacity: var(--nuraly-input-disabled-icon-opacity, var(--nuraly-disabled-icon-opacity));
179
+ }
180
+
181
+ /* Disabled icons cursor override */
182
+ :host([disabled]) #password-icon,
183
+ :host([disabled]) #number-icons,
184
+ :host([disabled]) #copy-icon,
185
+ :host([disabled]) #clear-icon {
186
+ cursor: not-allowed;
187
+ }
188
+
189
+ /* ========================================
190
+ * INPUT CONTAINER STYLES
191
+ * ======================================== */
192
+
193
+ /*
194
+ * Input wrapper - contains addons and input container
195
+ * Provides horizontal layout for addon before/after elements
196
+ */
197
+ .input-wrapper {
198
+ display: flex;
199
+ align-items: stretch;
200
+ width: 100%;
201
+ }
202
+
203
+ /*
204
+ * Addon before element - content before input (outside borders)
205
+ * Styled to visually connect with input
206
+ */
207
+ .input-addon-before {
208
+ background-color: var(--nuraly-input-addon-background-color, var(--nuraly-addon-background-color));
209
+ border: var(--nuraly-input-border, var(--nuraly-border));
210
+ border-right: none;
211
+ border-top-left-radius: var(--nuraly-input-border-radius, var(--nuraly-border-radius));
212
+ border-bottom-left-radius: var(--nuraly-input-border-radius, var(--nuraly-border-radius));
213
+ padding: var(--nuraly-input-addon-padding, var(--nuraly-addon-padding));
214
+ display: flex;
215
+ align-items: center;
216
+ color: var(--nuraly-input-addon-color, var(--nuraly-addon-color));
217
+ font-size: var(--nuraly-input-font-size, var(--nuraly-font-size));
218
+ white-space: nowrap;
219
+ min-width: 0; /* Allow shrinking */
220
+ flex-shrink: 0; /* Prevent shrinking */
221
+ }
222
+
223
+ /*
224
+ * Addon after element - content after input (outside borders)
225
+ * Styled to visually connect with input
226
+ */
227
+ .input-addon-after {
228
+ background-color: var(--nuraly-input-addon-background-color, var(--nuraly-addon-background-color));
229
+ border: var(--nuraly-input-border, var(--nuraly-border));
230
+ border-left: none;
231
+ border-top-right-radius: var(--nuraly-input-border-radius, var(--nuraly-border-radius));
232
+ border-bottom-right-radius: var(--nuraly-input-border-radius, var(--nuraly-border-radius));
233
+ padding: var(--nuraly-input-addon-padding, var(--nuraly-addon-padding));
234
+ display: flex;
235
+ align-items: center;
236
+ color: var(--nuraly-input-addon-color, var(--nuraly-addon-color));
237
+ font-size: var(--nuraly-input-font-size, var(--nuraly-font-size));
238
+ white-space: nowrap;
239
+ min-width: 0; /* Allow shrinking */
240
+ flex-shrink: 0; /* Prevent shrinking */
241
+ }
242
+
243
+ /*
244
+ * Input container border radius adjustments when addons are present
245
+ * Removes border radius on sides where addons are attached
246
+ */
247
+ .input-wrapper:has(.input-addon-before) #input-container {
248
+ border-top-left-radius: 0;
249
+ border-bottom-left-radius: 0;
250
+ border-left: none;
251
+ }
252
+
253
+ .input-wrapper:has(.input-addon-after) #input-container {
254
+ border-top-right-radius: 0;
255
+ border-bottom-right-radius: 0;
256
+ border-right: none;
257
+ }
258
+
259
+ /*
260
+ * Main input container element
261
+ * Uses theme CSS custom properties for comprehensive border and layout control
262
+ */
263
+ #input-container {
264
+ /* Default outlined style */
265
+ border: var(--nuraly-border-width-input, 1px) solid var(--nuraly-color-input-border, #d9d9d9);
266
+ border-radius: var(--nuraly-border-radius-input, 6px);
267
+
268
+ /* Background and text styling */
269
+ background-color: var(--nuraly-color-input-background, #ffffff);
270
+ color: var(--nuraly-color-input-text, rgba(0, 0, 0, 0.88));
271
+ font-family: var(--nuraly-font-family-input, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto);
272
+ font-size: var(--nuraly-font-size-input, 14px);
273
+
274
+ /* Layout */
275
+ display: flex;
276
+ position: relative;
277
+ flex: 1; /* Take available space in wrapper */
278
+ min-width: 0; /* Allow shrinking below content size */
279
+
280
+ /* Transitions for smooth theme changes */
281
+ transition: var(--nuraly-transition-input, border-color 0.2s, box-shadow 0.2s);
282
+ }
283
+
284
+ /* Focus state for input container */
285
+ #input-container:focus-within {
286
+ border-color: var(--nuraly-color-input-border-focus, #1890ff);
287
+ box-shadow: var(--nuraly-shadow-input-focus, 0 0 0 2px rgba(24, 144, 255, 0.2));
288
+ outline: none;
289
+ }
290
+
291
+ /*
292
+ * Disabled container styles
293
+ * Applied when input is disabled
294
+ */
295
+ :host([disabled]) #input-container {
296
+ background-color: var(--nuraly-color-input-disabled-background, #f5f5f5);
297
+ border-color: var(--nuraly-color-input-disabled-border, #d9d9d9);
298
+ color: var(--nuraly-color-input-disabled-text, rgba(0, 0, 0, 0.25));
299
+ cursor: not-allowed;
300
+ }
301
+
302
+ /* ========================================
303
+ * INPUT VARIANT STYLES
304
+ * ======================================== */
305
+
306
+ /*
307
+ * Outlined variant - full border around input
308
+ * Default: light border, focus: blue border
309
+ */
310
+ :host([variant='outlined']) #input-container {
311
+ border: var(--nuraly-input-outlined-border, var(--nuraly-outlined-border, 1px solid #d1d5db));
312
+ border-radius: var(--nuraly-input-outlined-border-radius, var(--nuraly-outlined-border-radius, var(--nuraly-border-radius-input, 6px)));
313
+ background-color: var(--nuraly-input-outlined-background, var(--nuraly-outlined-background, transparent));
314
+ }
315
+
316
+ :host([variant='outlined']) .input-wrapper {
317
+ background-color: transparent;
318
+ }
319
+
320
+ :host([variant='outlined']:not([state='error'])) #input-container:focus-within {
321
+ border-color: var(--nuraly-color-input-border-focus, #3b82f6);
322
+ box-shadow: var(--nuraly-shadow-input-focus, 0 0 0 1px #3b82f6);
323
+ }
324
+
325
+ /*
326
+ * Filled variant - background with bottom border only
327
+ * Subtle background with bottom border indication
328
+ */
329
+ :host([variant='filled']) #input-container {
330
+ background-color: var(--nuraly-input-filled-background, var(--nuraly-filled-background));
331
+ border-radius: var(--nuraly-input-filled-border-radius, var(--nuraly-filled-border-radius, var(--nuraly-border-radius-input, 6px)));
332
+ border-bottom: var(--nuraly-input-filled-border-bottom, var(--nuraly-filled-border-bottom));
333
+ border-top: none;
334
+ border-left: none;
335
+ border-right: none;
336
+ }
337
+
338
+ :host([variant='filled']) .input-wrapper {
339
+ background-color: transparent;
340
+ }
341
+
342
+ :host([variant='filled']:not([state='error'])) #input-container:focus-within {
343
+ border-bottom: var(--nuraly-input-filled-focus-border-bottom, var(--nuraly-filled-focus-border-bottom));
344
+ border-top: none;
345
+ border-left: none;
346
+ border-right: none;
347
+ }
348
+
349
+ /*
350
+ * Borderless variant - no borders, focus with outline
351
+ * Clean appearance with focus indication via outline
352
+ */
353
+ :host([variant='borderless']) #input-container {
354
+ background-color: var(--nuraly-input-borderless-background, var(--nuraly-borderless-background));
355
+ border: none;
356
+ border-radius: var(--nuraly-input-borderless-border-radius, var(--nuraly-borderless-border-radius));
357
+ }
358
+
359
+ :host([variant='borderless']) .input-wrapper {
360
+ background-color: transparent;
361
+ }
362
+
363
+ :host([variant='borderless']:not([state='error'])) #input-container:focus-within {
364
+ outline: var(--nuraly-input-borderless-focus-outline, var(--nuraly-borderless-focus-outline));
365
+ border: none;
366
+ }
367
+
368
+ /*
369
+ * Underlined variant - bottom border only (default/current behavior)
370
+ * Maintains existing behavior as default
371
+ */
372
+ :host([variant='underlined']) #input-container {
373
+ border-bottom: var(--nuraly-input-underlined-border-bottom, var(--nuraly-underlined-border-bottom));
374
+ border-top: none;
375
+ border-left: none;
376
+ border-right: none;
377
+ border-radius: var(--nuraly-input-underlined-border-radius, 0);
378
+ }
379
+
380
+ :host([variant='underlined']:not([state='error'])) #input-container:focus-within {
381
+ border-bottom: var(--nuraly-input-underlined-focus-border-bottom, var(--nuraly-underlined-focus-border-bottom));
382
+ border-top: none;
383
+ border-left: none;
384
+ border-right: none;
385
+ }
386
+
387
+ /* ========================================
388
+ * INPUT ELEMENT STYLES
389
+ * ======================================== */
390
+
391
+ /*
392
+ * Base input element styling
393
+ * Full width with no default borders, using container for styling
394
+ */
395
+ input {
396
+ width: 100%;
397
+ border: none;
398
+ outline: none;
399
+ color: var(--nuraly-input-text-color, var(--nuraly-text-color));
400
+ font-family: var(--nuraly-input-font-family, var(--nuraly-font-family));
401
+ font-size: var(--nuraly-input-font-size, var(--nuraly-font-size));
402
+ }
403
+
404
+ /* Remove default number input spinners */
405
+ /* Chrome, Safari, Edge, Opera */
406
+ input::-webkit-outer-spin-button,
407
+ input::-webkit-inner-spin-button {
408
+ -webkit-appearance: none;
409
+ }
410
+
411
+ /* Firefox */
412
+ input[type='number'] {
413
+ -moz-appearance: textfield;
414
+ }
415
+
416
+ /* ========================================
417
+ * STATE STYLES
418
+ * ======================================== */
419
+
420
+ /*
421
+ * Error state styling - works with all variants
422
+ * Applied when state='error' and not disabled
423
+ */
424
+ :host(:not([disabled])[state='error']) #input-container {
425
+ border: var(--nuraly-input-error-border, var(--nuraly-error-border)) !important;
426
+ outline: none !important;
427
+ }
428
+
429
+ /* Override variant-specific error state styling */
430
+ :host([variant='borderless'][state='error']) #input-container {
431
+ border: var(--nuraly-input-error-border, var(--nuraly-error-border)) !important;
432
+ outline: none !important;
433
+ }
434
+
435
+ :host([variant='underlined'][state='error']) #input-container,
436
+ :host([variant='filled'][state='error']) #input-container {
437
+ border-top: none !important;
438
+ border-left: none !important;
439
+ border-right: none !important;
440
+ border-bottom: var(--nuraly-input-error-border, var(--nuraly-error-border)) !important;
441
+ }
442
+
443
+ /*
444
+ * Number input icon positioning adjustments for error/warning states
445
+ * When validation states are present, adjust icon positioning
446
+ */
447
+ :host([state='error']) input[type='number'] ~ #number-icons,
448
+ :host([state='warning']) input[type='number'] ~ #number-icons {
449
+ position: static;
450
+ padding-left: var(--nuraly-input-number-icons-container-padding-left, var(--nuraly-number-icons-container-padding-left));
451
+ }
452
+
453
+ /* ========================================
454
+ * SLOTTED CONTENT STYLES
455
+ * ======================================== */
456
+
457
+ /*
458
+ * Label slot styling
459
+ * Applied to slotted label elements
460
+ */
461
+ ::slotted([slot='label']) {
462
+ color: var(--nuraly-input-label-color, var(--nuraly-label-color));
463
+ font-size: var(--nuraly-input-label-font-size, var(--nuraly-label-font-size));
464
+ padding-bottom: var(--nuraly-input-label-padding-bottom, var(--nuraly-label-padding-bottom));
465
+ }
466
+
467
+ /*
468
+ * Helper text slot styling
469
+ * Applied to slotted helper text elements
470
+ */
471
+ ::slotted([slot='helper-text']) {
472
+ color: var(--nuraly-input-helper-text-color, var(--nuraly-helper-text-color));
473
+ font-size: var(--nuraly-input-helper-text-font-size, var(--nuraly-helper-text-font-size));
474
+ padding-top: var(--nuraly-input-helper-text-padding-top, var(--nuraly-helper-text-padding-top));
475
+
476
+ /* Prevent text overflow and ensure proper wrapping without affecting parent width */
477
+ word-wrap: break-word;
478
+ word-break: break-word;
479
+ overflow-wrap: break-word;
480
+ hyphens: auto;
481
+ white-space: normal;
482
+ max-width: 100%;
483
+ width: 0;
484
+ min-width: 100%;
485
+ box-sizing: border-box;
486
+ line-height: 1.4;
487
+ }
488
+
489
+ /*
490
+ * State-specific helper text colors
491
+ * Override helper text color based on validation state
492
+ */
493
+ :host([state='error']) ::slotted([slot='helper-text']) {
494
+ color: var(--nuraly-input-error-helper-text-color, var(--nuraly-error-helper-text-color));
495
+ }
496
+
497
+ :host([state='warning']) ::slotted([slot='helper-text']) {
498
+ color: var(--nuraly-input-warning-helper-text-color, var(--nuraly-warning-helper-text-color));
499
+ }
500
+
501
+ /*
502
+ * Disabled state for slotted content
503
+ * Applied when input is disabled
504
+ */
505
+ :host([disabled]) ::slotted([slot='helper-text']) {
506
+ color: var(--nuraly-input-disabled-helper-text-color, var(--nuraly-disabled-helper-text-color));
507
+ }
508
+
509
+ :host([disabled]) ::slotted([slot='label']) {
510
+ color: var(--nuraly-input-disabled-label-color, var(--nuraly-disabled-label-color));
511
+ }
512
+
513
+ /*
514
+ * Input prefix wrapper styling
515
+ * Centers the prefix content vertically and horizontally
516
+ */
517
+ .input-prefix {
518
+ display: flex;
519
+ align-items: center;
520
+ justify-content: center;
521
+ }
522
+
523
+ /*
524
+ * Prefix slot styling
525
+ * Applied to slotted prefix content (icons, text, etc.)
526
+ */
527
+ ::slotted([slot='prefix']) {
528
+ display: flex;
529
+ align-items: center;
530
+ padding-right: var(--nuraly-input-prefix-padding-right, var(--nuraly-prefix-padding-right));
531
+ color: var(--nuraly-input-prefix-color, var(--nuraly-prefix-color));
532
+ font-size: var(--nuraly-input-prefix-font-size, var(--nuraly-prefix-font-size));
533
+ flex-shrink: 0;
534
+ }
535
+
536
+ /*
537
+ * Input suffix wrapper styling
538
+ * Centers the suffix content vertically and horizontally
539
+ */
540
+ .input-suffix {
541
+ display: flex;
542
+ align-items: center;
543
+ justify-content: center;
544
+ }
545
+
546
+ /*
547
+ * Suffix slot styling
548
+ * Applied to slotted suffix content (icons, text, etc.)
549
+ */
550
+ ::slotted([slot='suffix']) {
551
+ display: flex;
552
+ align-items: center;
553
+ padding-left: var(--nuraly-input-suffix-padding-left, var(--nuraly-suffix-padding-left));
554
+ color: var(--nuraly-input-suffix-color, var(--nuraly-suffix-color));
555
+ font-size: var(--nuraly-input-suffix-font-size, var(--nuraly-suffix-font-size));
556
+ flex-shrink: 0;
557
+ }
558
+
559
+ /*
560
+ * Disabled state for prefix and suffix slots
561
+ * Applied when input is disabled
562
+ */
563
+ :host([disabled]) ::slotted([slot='prefix']),
564
+ :host([disabled]) ::slotted([slot='suffix']) {
565
+ opacity: var(--nuraly-input-disabled-icon-opacity, var(--nuraly-disabled-icon-opacity));
566
+ color: var(--nuraly-input-disabled-prefix-suffix-color, var(--nuraly-disabled-prefix-suffix-color));
567
+ }
568
+ `,t`
569
+ /* ========================================
570
+ * SIZE VARIATIONS
571
+ * ======================================== */
572
+
573
+ /* Large input size variant */
574
+ div[data-size='large'] {
575
+ padding-top: var(--nuraly-input-large-padding-top, var(--nuraly-large-padding-top));
576
+ padding-bottom: var(--nuraly-input-large-padding-bottom, var(--nuraly-large-padding-bottom));
577
+ padding-left: var(--nuraly-input-large-padding-left, var(--nuraly-large-padding-left));
578
+ padding-right: var(--nuraly-input-large-padding-right, var(--nuraly-large-padding-right));
579
+ }
580
+
581
+ /* Medium input size variant (default) */
582
+ div[data-size='medium'] {
583
+ padding-top: var(--nuraly-input-medium-padding-top, var(--nuraly-medium-padding-top));
584
+ padding-bottom: var(--nuraly-input-medium-padding-bottom, var(--nuraly-medium-padding-bottom));
585
+ padding-left: var(--nuraly-input-medium-padding-left, var(--nuraly-medium-padding-left));
586
+ padding-right: var(--nuraly-input-medium-padding-right, var(--nuraly-medium-padding-right));
587
+ }
588
+
589
+ /* Small input size variant */
590
+ div[data-size='small'] {
591
+ padding-top: var(--nuraly-input-small-padding-top, var(--nuraly-small-padding-top));
592
+ padding-bottom: var(--nuraly-input-small-padding-bottom, var(--nuraly-small-padding-bottom));
593
+ padding-left: var(--nuraly-input-small-padding-left, var(--nuraly-small-padding-left));
594
+ padding-right: var(--nuraly-input-small-padding-right, var(--nuraly-small-padding-right));
595
+ }
596
+
597
+ /*
598
+ * Character count display
599
+ * Shows character count and limit information
600
+ */
601
+ .character-count {
602
+ font-size: var(--nuraly-input-character-count-font-size, var(--nuraly-character-count-font-size));
603
+ color: var(--nuraly-input-character-count-color, var(--nuraly-character-count-color));
604
+ text-align: right;
605
+ margin-top: var(--nuraly-input-character-count-margin-top, var(--nuraly-character-count-margin-top));
606
+ font-family: var(--nuraly-input-font-family, var(--nuraly-font-family));
607
+ }
608
+
609
+ /* Character count over limit styling */
610
+ .character-count[data-over-limit] {
611
+ color: var(--nuraly-input-character-count-over-limit-color, var(--nuraly-character-count-over-limit-color));
612
+ }
613
+
614
+ /* ========================================
615
+ * VALIDATION MESSAGE STYLES
616
+ * ======================================== */
617
+
618
+ /*
619
+ * Base validation message styling
620
+ * Common styles for error and warning messages
621
+ */
622
+ .validation-message {
623
+ font-size: var(--nuraly-input-validation-message-font-size, var(--nuraly-validation-message-font-size, 0.875rem));
624
+ font-family: var(--nuraly-input-font-family, var(--nuraly-font-family));
625
+ margin-top: var(--nuraly-input-validation-message-margin-top, var(--nuraly-validation-message-margin-top, 0.25rem));
626
+ padding: var(--nuraly-input-validation-message-padding, var(--nuraly-validation-message-padding, 0));
627
+
628
+ /* Prevent text overflow and ensure proper wrapping without affecting parent width */
629
+ word-wrap: break-word;
630
+ word-break: break-word;
631
+ overflow-wrap: break-word;
632
+ hyphens: auto;
633
+ white-space: normal;
634
+ max-width: 100%;
635
+ width: 0;
636
+ min-width: 100%;
637
+ box-sizing: border-box;
638
+ line-height: var(--nuraly-input-validation-message-line-height, var(--nuraly-validation-message-line-height, 1.4));
639
+ }
640
+
641
+ /*
642
+ * Error validation message styling
643
+ * Applied when validation message has error class
644
+ */
645
+ .validation-message.error {
646
+ color: var(--nuraly-input-error-message-color, var(--nuraly-error-message-color, var(--nuraly-input-error-color, var(--nuraly-error-color, #dc2626))));
647
+ }
648
+
649
+ /*
650
+ * Warning validation message styling
651
+ * Applied when validation message has warning class
652
+ */
653
+ .validation-message.warning {
654
+ color: var(--nuraly-input-warning-message-color, var(--nuraly-warning-message-color, var(--nuraly-input-warning-color, var(--nuraly-warning-color, #d97706))));
655
+ }
656
+
657
+ /*
658
+ * Disabled state for validation messages
659
+ * Applied when input is disabled
660
+ */
661
+ :host([disabled]) .validation-message {
662
+ opacity: var(--nuraly-input-disabled-validation-message-opacity, var(--nuraly-disabled-validation-message-opacity, 0.6));
663
+ color: var(--nuraly-input-disabled-validation-message-color, var(--nuraly-disabled-validation-message-color));
664
+ }
665
+
666
+ /*
667
+ * Validation icon styles
668
+ * Base styles for validation feedback icons
669
+ */
670
+ .validation-icon {
671
+ width: 16px;
672
+ height: 16px;
673
+ display: inline-flex;
674
+ align-items: center;
675
+ justify-content: center;
676
+ }
677
+
678
+ /*
679
+ * Loading validation icon with hourglass animation
680
+ * Applied when async validation is in progress
681
+ */
682
+ .validation-icon.validation-loading {
683
+ color: var(--nuraly-input-primary-color, var(--nuraly-primary-color, #3b82f6));
684
+ animation: validation-hourglass 2s ease-in-out infinite;
685
+ transform-origin: center;
686
+ }
687
+
688
+ /*
689
+ * Error validation icon styling
690
+ * Applied when validation fails
691
+ */
692
+ .validation-icon.validation-error {
693
+ color: var(--nuraly-input-error-color, var(--nuraly-error-color, #dc2626));
694
+ }
695
+
696
+ /*
697
+ * Warning validation icon styling
698
+ * Applied when validation has warnings
699
+ */
700
+ .validation-icon.validation-warning {
701
+ color: var(--nuraly-input-warning-color, var(--nuraly-warning-color, #d97706));
702
+ }
703
+
704
+ /*
705
+ * Success validation icon styling
706
+ * Applied when validation passes
707
+ */
708
+ .validation-icon.validation-success {
709
+ color: var(--nuraly-input-success-color, var(--nuraly-success-color, #16a34a));
710
+ }
711
+
712
+ /*
713
+ * Hourglass animation for validation loading
714
+ * Gentle pulsing effect without rotation for clean appearance
715
+ */
716
+ @keyframes validation-hourglass {
717
+ 0% {
718
+ opacity: 0.7;
719
+ transform: scale(1);
720
+ }
721
+ 25% {
722
+ opacity: 1;
723
+ transform: scale(1.03);
724
+ }
725
+ 50% {
726
+ opacity: 0.8;
727
+ transform: scale(1);
728
+ }
729
+ 75% {
730
+ opacity: 1;
731
+ transform: scale(1.03);
732
+ }
733
+ 100% {
734
+ opacity: 0.7;
735
+ transform: scale(1);
736
+ }
737
+ }
738
+
739
+ /*
740
+ * Alternative pulse animation option
741
+ * Uncomment this and change animation above to use pulse instead of hourglass
742
+ */
743
+ /*
744
+ @keyframes validation-pulse {
745
+ 0%, 100% {
746
+ opacity: 1;
747
+ transform: scale(1);
748
+ }
749
+ 50% {
750
+ opacity: 0.7;
751
+ transform: scale(1.1);
752
+ }
753
+ }
754
+ */
755
+ `],c={EMAIL:/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,URL:/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$/,PHONE:/^[\+]?[1-9][\d]{0,15}$/,PASSWORD_STRONG:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,ALPHANUMERIC:/^[a-zA-Z0-9]+$/,NUMERIC:/^\d+$/,ALPHA:/^[a-zA-Z]+$/,USERNAME:/^[a-zA-Z0-9_-]{3,16}$/,HEX_COLOR:/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,IPV4:/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,CREDIT_CARD:/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|3[47][0-9]{13}|3[0-9]{13}|6(?:011|5[0-9]{2})[0-9]{12})$/},h=t=>({required:!0,message:t||"This field is required"}),p=t=>({type:"email",pattern:c.EMAIL,message:t||"Please enter a valid email address"}),v=t=>({type:"url",pattern:c.URL,message:t||"Please enter a valid URL"}),g=(t,i)=>({maxLength:t,message:i||`Maximum length is ${t} characters`}),y=(t,i)=>({type:"number",min:t,message:i||`Minimum value is ${t}`}),b=(t,i)=>({type:"number",max:t,message:i||`Maximum value is ${t}`});
756
+ /**
757
+ * @license
758
+ * Copyright 2023 Google Laabidi Aymen
759
+ * SPDX-License-Identifier: MIT
760
+ */
761
+ class m{static validateNumericProperties(t,i,r,n){"number"===t&&(i&&Number.isNaN(Number(i))&&console.warn(`Invalid min value: "${i}" is not a valid number`),r&&Number.isNaN(Number(r))&&console.warn(`Invalid max value: "${r}" is not a valid number`),n&&Number.isNaN(Number(n))&&console.warn(`Invalid step value: "${n}" is not a valid number`),i&&r&&Number(i)>=Number(r)&&console.warn(`Invalid range: min value (${i}) should be less than max value (${r})`))}static preventNonNumericInput(t,i){const r=t.key,n=t.target,e=n.value,a=n.selectionStart||0;if(!(t.ctrlKey||t.metaKey||["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(r)||/^\d$/.test(r))){if("."===r||","===r){if(!(e.includes(".")||e.includes(",")))return}if("-"===r){const t=e.includes("-"),r=!i||Number(i)<0;if(!t&&0===a&&r)return}if("+"===r){if(!e.includes("+")&&0===a)return}t.preventDefault()}}static validateNumericValue(t,i,r){const n=[];if(!t)return{isValid:!0,warnings:n};const e=Number(t);return Number.isNaN(e)?{isValid:!1,warnings:[`Invalid numeric value: "${t}"`]}:(i&&e<Number(i)&&n.push(`Value ${e} is below minimum ${i}`),r&&e>Number(r)&&n.push(`Value ${e} is above maximum ${r}`),{isValid:!0,warnings:n})}}
762
+ /**
763
+ * @license
764
+ * Copyright 2023 Google Laabidi Aymen
765
+ * SPDX-License-Identifier: MIT
766
+ */class f{static renderPrefix(){return i`
767
+ <div class="input-prefix">
768
+ <slot name="prefix"></slot>
769
+ </div>
770
+ `}static renderSuffix(){return i`
771
+ <div class="input-suffix">
772
+ <slot name="suffix"></slot>
773
+ </div>
774
+ `}static renderAddonBefore(t,n){return t?i`
775
+ <div class="input-addon-before">
776
+ <slot name="addon-before" @slotchange=${n}></slot>
777
+ </div>
778
+ `:r}static renderAddonAfter(t,n){return t?i`
779
+ <div class="input-addon-after">
780
+ <slot name="addon-after" @slotchange=${n}></slot>
781
+ </div>
782
+ `:r}static renderCopyIcon(t,n,e,a,o){return t?i`<nr-icon
783
+ name="copy"
784
+ type="regular"
785
+ id="copy-icon"
786
+ role="button"
787
+ aria-label="Copy input value"
788
+ tabindex="0"
789
+ @click=${n||e?r:a}
790
+ @keydown=${o}
791
+ ></nr-icon>`:r}static renderClearIcon(t,n,e,a,o,s){return!t||!n||e||a?r:i`<nr-icon
792
+ name="times-circle"
793
+ type="regular"
794
+ id="clear-icon"
795
+ role="button"
796
+ aria-label="Clear input value"
797
+ tabindex="0"
798
+ @click=${o}
799
+ @keydown=${s}
800
+ ></nr-icon>`}static renderStateIcon(t){switch(t){case"warning":return i`<nr-icon name="warning" id="warning-icon"></nr-icon>`;case"error":return i`<nr-icon name="exclamation-circle" id="error-icon"></nr-icon>`;default:return r}}static renderCalendarIcon(t,n){return"default"!==t||"calendar"!==n?r:i`<nr-icon name="calendar" type="regular" id="calendar-icon"></nr-icon>`}static renderPasswordIcon(t,n,e,a,o,s){return"password"!==t?r:"text"===n?i`<nr-icon
801
+ name="eye-slash"
802
+ type="regular"
803
+ id="password-icon"
804
+ role="button"
805
+ aria-label="Hide password"
806
+ tabindex="0"
807
+ @click=${e||a?r:o}
808
+ @keydown=${s}
809
+ ></nr-icon>`:i`<nr-icon
810
+ name="eye"
811
+ type="regular"
812
+ id="password-icon"
813
+ role="button"
814
+ aria-label="Show password"
815
+ tabindex="0"
816
+ @click=${e||a?r:o}
817
+ @keydown=${s}
818
+ ></nr-icon>`}static renderNumberIcons(t,n,e,a,o,s,l){return"number"!==t?r:i`
819
+ <div id="number-icons">
820
+ ${"default"!==n?i`<span id="icons-separator">|</span>`:r}
821
+ <nr-icon
822
+ name="minus"
823
+ aria-label="Decrease value"
824
+ role="button"
825
+ tabindex="0"
826
+ @click=${e||a?r:s}
827
+ @keydown=${l}
828
+ ></nr-icon>
829
+ <span id="icons-separator">|</span>
830
+ <nr-icon
831
+ name="plus"
832
+ aria-label="Increase value"
833
+ role="button"
834
+ tabindex="0"
835
+ @click=${e||a?r:o}
836
+ @keydown=${l}
837
+ ></nr-icon>
838
+ </div>
839
+ `}}
840
+ /**
841
+ * @license
842
+ * Copyright 2023 Nuraly, Laabidi Aymen
843
+ * SPDX-License-Identifier: MIT
844
+ */const w=t=>class extends t{get inputElement(){var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("#input, input, textarea");if(i)return i;const r=this.querySelector("input, textarea");if(!r)throw new Error("SelectionMixin requires an input or textarea element");return r}selectAll(){const t=this.inputElement;t&&t.select()}selectRange(t,i){const r=this.inputElement;r&&r.setSelectionRange&&(r.focus(),r.setSelectionRange(t,i))}getCursorPosition(){const t=this.inputElement;return t&&"number"==typeof t.selectionStart?t.selectionStart:null}setCursorPosition(t){const i=this.inputElement;i&&i.setSelectionRange&&(i.focus(),i.setSelectionRange(t,t))}getSelectedText(){const t=this.inputElement;return t&&null!==t.selectionStart&&null!==t.selectionEnd?t.value.substring(t.selectionStart,t.selectionEnd):""}},x=t=>class extends t{get inputElement(){var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("#input, input, textarea");if(i)return i;const r=this.querySelector("input, textarea");if(!r)throw new Error("FocusMixin requires an input or textarea element");return r}focus(t={}){const i=this.inputElement;i&&(i.focus({preventScroll:t.preventScroll}),t.selectText&&i.select())}blur(){const t=this.inputElement;t&&t.blur()}isFocused(){const t=this.inputElement;return!!t&&document.activeElement===t}},k=t=>class extends t{get inputElement(){var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("#input, input");if(i)return i;const r=this.querySelector("input");if(!r)throw new Error("NumberMixin requires an input element");return r}dispatchInputEvent(t,i){"_dispatchInputEvent"in this&&"function"==typeof this._dispatchInputEvent?this._dispatchInputEvent(t,i):this.dispatchEvent(new CustomEvent(t,{detail:i,bubbles:!0,composed:!0}))}increment(){try{const t=this.inputElement;if(!t.value){const i=t.getAttribute("min");t.value=i||"0"}t.stepUp();const i=t.value;this.dispatchInputEvent("nr-input",{value:i,target:t,action:"increment"}),"value"in this&&(this.value=i)}catch(t){console.warn("Failed to increment value:",t),this.dispatchInputEvent("nr-increment-error",{error:t,value:this.inputElement.value,target:this.inputElement})}}decrement(){try{const t=this.inputElement;t.stepDown();const i=t.value;this.dispatchInputEvent("nr-input",{value:i,target:t,action:"decrement"}),"value"in this&&(this.value=i)}catch(t){console.warn("Failed to decrement value:",t),this.dispatchInputEvent("nr-decrement-error",{error:t,value:this.inputElement.value,target:this.inputElement})}}setStep(t){const i=this.inputElement;t&&this.isValidStep(t)?i.setAttribute("step",t):i.removeAttribute("step")}isValidStep(t){if(!t)return!0;const i=Number.parseFloat(t);return!Number.isNaN(i)&&i>0}};
845
+ /**
846
+ * @license
847
+ * Copyright 2023 Nuraly, Laabidi Aymen
848
+ * SPDX-License-Identifier: MIT
849
+ */
850
+ /**
851
+ * @license
852
+ * Copyright 2023 Nuraly, Laabidi Aymen
853
+ * SPDX-License-Identifier: MIT
854
+ */
855
+ class V extends l{}
856
+ /**
857
+ * @license
858
+ * Copyright 2023 Nuraly, Laabidi Aymen
859
+ * SPDX-License-Identifier: MIT
860
+ */var S;!function(t){t.Pristine="pristine",t.Pending="pending",t.Valid="valid",t.Invalid="invalid",t.Warning="warning"}(S||(S={}));class A extends V{constructor(){super(...arguments),this._validationState=S.Pristine,this._isValidating=!1,this._isValid=!0,this._validationMessage="",this._validationResult={isValid:!0,errors:[],warnings:[],hasError:!1,hasWarning:!1},this._debounceTimer=null}get stateHost(){return this.host}get validationState(){return this._validationState}get isValidating(){return this._isValidating}get isValid(){return this._isValid}get validationMessage(){return this._validationMessage}get validationResult(){return this._validationResult}setValidationState(t){if(this._validationState!==t){const i=this._validationState;this._validationState=t,this.dispatchStateChangeEvent(i,t),this.requestUpdate()}}setValidationResult(t){this._validationResult=t,this._isValid=t.isValid,this._validationMessage=t.hasError?t.errorMessage||"":t.hasWarning&&t.warningMessage||"";let i=S.Valid;t.hasError?i=S.Invalid:t.hasWarning&&this.stateHost.allowWarnings&&(i=S.Warning),this.setValidationState(i)}setValidating(t){this._isValidating!==t&&(this._isValidating=t,t&&this.setValidationState(S.Pending),this.requestUpdate())}shouldValidateOnChange(){return this.stateHost.validateOnChangeInput&&("change"===this.stateHost.validationTrigger||this._validationState!==S.Pristine)}shouldValidateOnBlur(){return this.stateHost.validateOnBlurInput&&("blur"===this.stateHost.validationTrigger||"change"===this.stateHost.validationTrigger)}clearDebounceTimer(){null!==this._debounceTimer&&(clearTimeout(this._debounceTimer),this._debounceTimer=null)}debounceValidation(t){this.clearDebounceTimer();const i=this.stateHost.validationDebounce;i&&i>0?this._debounceTimer=window.setTimeout(()=>{this._debounceTimer=null,t()},i):t()}resetValidationState(){this.clearDebounceTimer(),this._validationState=S.Pristine,this._isValidating=!1,this._isValid=!0,this._validationMessage="",this._validationResult={isValid:!0,errors:[],warnings:[],hasError:!1,hasWarning:!1},this.requestUpdate()}markAsTouched(){this._validationState===S.Pristine&&this.setValidationState(S.Valid)}isPristine(){return this._validationState===S.Pristine}hasError(){return this._validationState===S.Invalid}hasWarning(){return this._validationState===S.Warning}isPending(){return this._validationState===S.Pending}getStateSummary(){return{state:this._validationState,isValidating:this._isValidating,isValid:this._isValid,message:this._validationMessage,result:this._validationResult,isPristine:this.isPristine(),hasError:this.hasError(),hasWarning:this.hasWarning(),shouldValidateOnChange:this.shouldValidateOnChange(),shouldValidateOnBlur:this.shouldValidateOnBlur()}}hostDisconnected(){super.hostDisconnected(),this.clearDebounceTimer()}dispatchStateChangeEvent(t,i){this.dispatchEvent(new CustomEvent("nr-validation-state-change",{detail:{previousState:t,newState:i,isValidating:this._isValidating,isValid:this._isValid,validationResult:this._validationResult},bubbles:!0,composed:!0}))}}
861
+ /**
862
+ * @license
863
+ * Copyright 2023 Nuraly, Laabidi Aymen
864
+ * SPDX-License-Identifier: MIT
865
+ */var $=function(t,i,r,n){return new(r||(r=Promise))(function(e,a){function o(t){try{l(n.next(t))}catch(t){a(t)}}function s(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r(function(t){t(i)})).then(o,s)}l((n=n.apply(t,i||[])).next())})};class E extends d{constructor(){super(...arguments),this.stateController=new A(this._host)}get validationHost(){return this._host}get isValid(){return this.stateController.isValid}get validationMessage(){return this.stateController.validationMessage}get validationState(){return this.stateController.validationState}get validationResult(){return this.stateController.validationResult}get isValidating(){return this.stateController.isValidating}hostConnected(){this.setupValidationRules()}hostUpdated(){}setupValidationRules(){const t=[],i=this.validationHost;"email"===i.type&&t.push(p()),"url"===i.type&&t.push(v()),i.required&&t.push(h(i.label?`${i.label} is required`:void 0)),i.maxLength&&t.push(g(i.maxLength)),"number"===i.type&&(void 0!==i.min&&t.push(y(Number(i.min))),void 0!==i.max&&t.push(b(Number(i.max))));const r=i.rules||[],n=[...t.filter(t=>!r.some(i=>this.isSameRuleType(t,i))),...r];JSON.stringify(i.rules)!==JSON.stringify(n)&&(i.rules=n,this.requestUpdate())}validate(){try{this.stateController.setValidationState(S.Pending),this.stateController.setValidating(!0),this.dispatchInputValidationEvent();if(this.hasAsyncValidators())return this.performAsyncValidation(this.validationHost.value),!0;const t=this.performDetailedValidation(this.validationHost.value);return this.stateController.setValidationResult(t),t.hasError?this.setValidationResult(!1,this.stateController.validationMessage,S.Invalid):t.hasWarning&&this.validationHost.allowWarnings?this.setValidationResult(!0,this.stateController.validationMessage,S.Warning):this.setValidationResult(!0,"",S.Valid),this.stateController.setValidating(!1),this.updateHostValidationState(),t.isValid}catch(t){return this.handleError(t,"validate"),this.stateController.setValidating(!1),this.setValidationResult(!1,"Validation error occurred",S.Invalid),this.updateHostValidationState(),!1}}validateOnChange(){this.stateController.shouldValidateOnChange()&&this.stateController.debounceValidation(()=>{this.validate()})}validateOnBlur(){this.stateController.shouldValidateOnBlur()&&(this.stateController.clearDebounceTimer(),this.validate())}addInputRule(t){const i=this.validationHost.rules||[];this.validationHost.rules=[...i,t],this.requestUpdate()}removeInputRule(t){const i=this.validationHost.rules||[];this.validationHost.rules=i.filter(i=>!t(i)),this.requestUpdate()}clearInputRules(){this.validationHost.rules=[],this.reset()}hasAsyncValidators(){return(this.validationHost.rules||[]).some(t=>t.asyncValidator||t.validator&&this.isValidatorAsync(t.validator))}isValidatorAsync(t){const i=t.toString();return i.includes("Promise")||i.includes("async")||i.includes("setTimeout")||i.includes("new Promise")}performAsyncValidation(t){return $(this,void 0,void 0,function*(){try{this.stateController.setValidating(!0),this.updateHostValidationState();const i=[],r=[],n=this.validationHost.rules||[];for(const e of n)if(!(e.asyncValidator||e.validator&&this.isValidatorAsync(e.validator))){const n=this.validateRule(e,t);n.isValid||(e.warningOnly&&this.validationHost.allowWarnings?r.push(n.message):i.push(n.message))}if(i.length>0)return this.stateController.setValidationResult({isValid:!1,errors:i,warnings:r,hasError:!0,hasWarning:r.length>0,errorMessage:i[0],warningMessage:r[0]}),this.setValidationResult(!1,this.stateController.validationMessage,S.Invalid),this.stateController.setValidating(!1),void this.updateHostValidationState();for(const e of n)if(e.asyncValidator||e.validator&&this.isValidatorAsync(e.validator))try{yield this.validateAsyncRule(e,t)}catch(t){const n=t.message||e.message||"Validation failed";e.warningOnly&&this.validationHost.allowWarnings?r.push(n):i.push(n)}const e=i.length>0,a=r.length>0;this.stateController.setValidationResult({isValid:!e,errors:i,warnings:r,hasError:e,hasWarning:a,errorMessage:i[0],warningMessage:r[0]}),e?this.setValidationResult(!1,this.stateController.validationMessage,S.Invalid):a&&this.validationHost.allowWarnings?this.setValidationResult(!0,this.stateController.validationMessage,S.Warning):this.setValidationResult(!0,"",S.Valid),this.stateController.setValidating(!1),this.updateHostValidationState()}catch(t){this.handleError(t,"performAsyncValidation"),this.stateController.setValidating(!1),this.setValidationResult(!1,"Async validation error occurred",S.Invalid),this.updateHostValidationState()}})}validateAsyncRule(t,i){return $(this,void 0,void 0,function*(){if(t.asyncValidator)yield t.asyncValidator(t,i);else if(t.validator){const r=t.validator(t,i);r&&"object"==typeof r&&"then"in r&&(yield r)}})}reset(){this.stateController.setValidationResult({isValid:!0,errors:[],warnings:[],hasError:!1,hasWarning:!1}),this.stateController.setValidationState(S.Pristine),this.stateController.setValidating(!1),this.updateHostValidationState(),this.dispatchInputValidationEvent()}getValidationStatus(){return{isValid:this.stateController.validationResult.isValid,isValidating:this.stateController.isValidating,errors:this.stateController.validationResult.errors,warnings:this.stateController.validationResult.warnings,validationResult:this.stateController.validationResult}}setValidationStatus(t){this.stateController.setValidationResult(t),t.hasError?this.setValidationResult(!1,this.stateController.validationMessage,S.Invalid):t.hasWarning?this.setValidationResult(!0,this.stateController.validationMessage,S.Warning):t.isValid?this.setValidationResult(!0,"",S.Valid):this.setValidationResult(!0,"",S.Pristine),this.updateHostValidationState()}performDetailedValidation(t){const i=[],r=[],n=this.validationHost.rules||[];for(const e of n){const n=this.validateRule(e,t);n.isValid||(e.warningOnly&&this.validationHost.allowWarnings?r.push(n.message):i.push(n.message))}const e=i.length>0;return{isValid:!e,errors:i,warnings:r,hasError:e,hasWarning:r.length>0,errorMessage:i[0],warningMessage:r[0]}}validateRule(t,i){if(t.asyncValidator||t.validator&&this.isValidatorAsync(t.validator))return{isValid:!0,message:""};const r=t.transform?t.transform(i):i;if(t.required&&this.isValueEmpty(i))return{isValid:!1,message:t.message||`${this.validationHost.label||"This field"} is required`};if(this.isValueEmpty(i)&&!t.required)return{isValid:!0,message:""};if(t.type){const i=this.validateType(t.type,r);if(!i.isValid)return{isValid:!1,message:t.message||i.message}}if(t.pattern&&!t.pattern.test(r))return{isValid:!1,message:t.message||"Invalid format"};if(void 0!==t.minLength&&r.length<t.minLength)return{isValid:!1,message:t.message||`Minimum length is ${t.minLength} characters`};if(void 0!==t.maxLength&&r.length>t.maxLength)return{isValid:!1,message:t.message||`Maximum length is ${t.maxLength} characters`};if("number"===t.type||"number"===this.validationHost.type){const i=Number(r);if(void 0!==t.min&&i<t.min)return{isValid:!1,message:t.message||`Minimum value is ${t.min}`};if(void 0!==t.max&&i>t.max)return{isValid:!1,message:t.message||`Maximum value is ${t.max}`}}if(t.enum&&!t.enum.includes(r))return{isValid:!1,message:t.message||`Value must be one of: ${t.enum.join(", ")}`};if(t.validator)try{const i=t.validator(t,r);return i&&"object"==typeof i&&"isValid"in i?{isValid:i.isValid,message:i.isValid?"":i.message||t.message||"Validation failed"}:{isValid:!0,message:""}}catch(i){return{isValid:!1,message:t.message||i.message||"Validation failed"}}return{isValid:!0,message:""}}validateType(t,i){switch(t){case"email":return{isValid:c.EMAIL.test(i),message:"Please enter a valid email address"};case"url":return{isValid:c.URL.test(i),message:"Please enter a valid URL"};case"number":case"integer":return{isValid:!Number.isNaN(Number(i))&&("number"===t||Number.isInteger(Number(i))),message:`Please enter a valid ${t}`};case"float":return{isValid:!Number.isNaN(Number.parseFloat(i)),message:"Please enter a valid number"};default:return{isValid:!0,message:""}}}isValueEmpty(t){return null==t||""===t}isSameRuleType(t,i){return t.type===i.type&&t.required===i.required&&!!t.pattern==!!i.pattern}setValidationResult(t,i,r){const n=this.stateController.isValid!==t||this.stateController.validationMessage!==i||this.stateController.validationState!==r;this.stateController.setValidationState(r),this.stateController.setValidationResult({isValid:t,errors:t?[]:[i],warnings:[],hasError:!t,hasWarning:!1,errorMessage:t?"":i,warningMessage:""}),this._isValid=t,this._validationMessage=i,this._validationState=r,n&&this.dispatchInputValidationEvent()}updateHostValidationState(){this.dispatchInputValidationEvent()}dispatchInputValidationEvent(){const t={isValid:this.stateController.isValid,validationMessage:this.stateController.validationMessage,validationState:this.stateController.validationState,errors:this.stateController.validationResult.errors,warnings:this.stateController.validationResult.warnings,validationResult:this.stateController.validationResult};this.dispatchEvent(new CustomEvent("nr-validation",{detail:t,bubbles:!0,composed:!0}))}getValidationClasses(){const t=this.host,i=this.host;return{valid:this.stateController.validationResult.isValid&&!this.stateController.validationResult.hasWarning,invalid:this.stateController.validationResult.hasError,warning:this.stateController.validationResult.hasWarning&&!this.stateController.validationResult.hasError,validating:this.stateController.isValidating,"has-feedback":i.hasFeedback||!1,touched:t.isTouched||!1,dirty:t.isDirty||!1,required:this.host.required||!1}}hasValidationFeedback(){const t=this.host;return!!t.hasFeedback&&(this.stateController.isValidating||this.stateController.validationResult.hasError||this.stateController.validationResult.hasWarning||this.stateController.validationResult.isValid&&t.value&&""!==t.value.trim()&&this.stateController.validationState!==S.Pristine)}renderValidationIcon(){const t=this.host;if(!t.hasFeedback)return"";let r="",n="";return this.stateController.isValidating?(r="hourglass-half",n="validation-loading"):this.stateController.validationResult.hasError?(r="exclamation-circle",n="validation-error"):this.stateController.validationResult.hasWarning?(r="exclamation-triangle",n="validation-warning"):this.stateController.validationResult.isValid&&t.value&&""!==t.value.trim()&&this.stateController.validationState!==S.Pristine&&(r="check-circle",n="validation-success"),r?i`
866
+ <nr-icon
867
+ name="${r}"
868
+ class="validation-icon ${n}"
869
+ part="validation-icon">
870
+ </nr-icon>
871
+ `:""}renderValidationMessage(){const t=this.stateController.validationResult.hasError,r=this.stateController.validationResult.hasWarning&&!t,n=t?this.stateController.validationResult.errorMessage:r?this.stateController.validationResult.warningMessage:"";return n?i`
872
+ <div class="validation-message ${t?"error":"warning"}"
873
+ part="validation-message"
874
+ role="alert"
875
+ aria-live="polite">
876
+ ${n}
877
+ </div>
878
+ `:""}clearDebounceTimer(){this.stateController.clearDebounceTimer()}getValidationRenderState(){return{classes:this.getValidationClasses(),hasValidationFeedback:this.hasValidationFeedback(),isValidating:this.stateController.isValidating,validationResult:this.stateController.validationResult,validationState:this.stateController.validationState}}}
879
+ /**
880
+ * @license
881
+ * Copyright 2023 Nuraly, Laabidi Aymen
882
+ * SPDX-License-Identifier: MIT
883
+ */var z=function(t,i,r,n){return new(r||(r=Promise))(function(e,a){function o(t){try{l(n.next(t))}catch(t){a(t)}}function s(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r(function(t){t(i)})).then(o,s)}l((n=n.apply(t,i||[])).next())})};class N extends V{constructor(){super(...arguments),this.debounceTimer=null,this.handleKeyDown=t=>{!this.eventHost.readonly||this.isReadonlyKeyAllowed(t)?"Enter"!==t.key?"number"===this.eventHost.type&&this.handleNumericKeyDown(t):this.dispatchEnterEvent(t):t.preventDefault()},this.handleValueChange=t=>{if(this.eventHost.readonly)return void t.preventDefault();const i=t.target,r=i.value;if(this.eventHost.maxLength&&r.length>this.eventHost.maxLength)return void t.preventDefault();"number"===this.eventHost.type&&r&&this.validateNumericValue(r,t),this.eventHost.value=r;const n=this.eventHost;n.validationController&&"function"==typeof n.validationController.validateOnChange&&n.validationController.validateOnChange();const e=this.eventHost.debounce||0;e>0?(this.clearDebounceTimer(),this.debounceTimer=setTimeout(()=>{this.eventHost.dispatchInputEvent("nr-input",{value:this.eventHost.value,target:i,originalEvent:t})},e)):this.eventHost.dispatchInputEvent("nr-input",{value:this.eventHost.value,target:i,originalEvent:t})},this.handleFocus=t=>{var i;this.setFocusState(!0);const r=t.target;this.restoreCursorPosition(r);const n={focused:!0,cursorPosition:null!==(i=this.getCursorPosition())&&void 0!==i?i:void 0,selectedText:this.getSelectedText()};this.eventHost.dispatchFocusEvent("nr-focus",Object.assign({target:t.target,value:this.eventHost.value},n)),this.eventHost.dispatchFocusEvent("nr-focus-change",n)},this.handleBlur=t=>{var i;this.setFocusState(!1);const r={focused:!1,cursorPosition:null!==(i=this.getCursorPosition())&&void 0!==i?i:void 0,selectedText:this.getSelectedText()},n=this.eventHost;n.validationController&&"function"==typeof n.validationController.validateOnBlur&&n.validationController.validateOnBlur(),this.eventHost.dispatchFocusEvent("nr-blur",Object.assign({target:t.target,value:this.eventHost.value},r)),this.eventHost.dispatchFocusEvent("nr-focus-change",r)},this.handleIconKeydown=t=>{if(!this.isActivationKey(t))return;t.preventDefault();const i=t.target;switch(i.id){case"copy-icon":this.handleCopy();break;case"clear-icon":this.handleClear();break;case"password-icon":this.handleTogglePassword();break;default:i.closest("#number-icons")&&this.handleNumberIconAction(i)}},this.handleCopy=()=>z(this,void 0,void 0,function*(){if(this.eventHost.withCopy&&!this.eventHost.disabled)try{const t=this.inputElement;if(!t)return;t.select(),yield navigator.clipboard.writeText(t.value),this.eventHost.dispatchActionEvent("nr-copy-success",{value:t.value,action:"copy"})}catch(t){this.handleError(t,"copy"),this.eventHost.dispatchActionEvent("nr-copy-error",{error:t,action:"copy"})}}),this.handleClear=()=>{if(this.eventHost.disabled||this.eventHost.readonly||!this.eventHost.allowClear)return;const t=this.eventHost.value;this.eventHost.value="";const i=this.inputElement;i&&(i.value="",i.focus()),this.eventHost.dispatchActionEvent("nr-clear",{previousValue:t,newValue:this.eventHost.value,target:i,action:"clear"}),this.eventHost.dispatchInputEvent("nr-input",{value:this.eventHost.value,target:i,action:"clear"})},this.handleTogglePassword=()=>{if("password"!==this.eventHost.type)return;const t="password"===this.eventHost.inputType?"text":"password";this.eventHost.inputType=t,this.requestUpdate(),this.eventHost.dispatchActionEvent("nr-password-toggle",{visible:"text"===t,action:"password-toggle"})},this.handleIncrement=()=>{"number"===this.eventHost.type&&this.eventHost.increment&&this.eventHost.increment()},this.handleDecrement=()=>{"number"===this.eventHost.type&&this.eventHost.decrement&&this.eventHost.decrement()}}get eventHost(){return this.host}get inputElement(){var t;return(null===(t=this.eventHost.shadowRoot)||void 0===t?void 0:t.querySelector("#input"))||null}clearDebounceTimer(){this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null)}handleNumericKeyDown(t){["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)||t.ctrlKey||t.metaKey||"."!==t.key&&"-"!==t.key&&(/^\d$/.test(t.key)||t.preventDefault())}handleNumberIconAction(t){const i=t.classList.contains("increment")||t.closest(".increment"),r=t.classList.contains("decrement")||t.closest(".decrement");i?this.handleIncrement():r&&this.handleDecrement()}dispatchEnterEvent(t){this.eventHost.dispatchInputEvent("nr-enter",{value:this.eventHost.value,target:t.target,originalEvent:t})}validateNumericValue(t,i){}restoreCursorPosition(t){if(t.dataset.restoreCursor){const i=Number.parseInt(t.dataset.restoreCursor,10);Number.isNaN(i)||t.setSelectionRange(i,i),delete t.dataset.restoreCursor}}setFocusState(t){this.eventHost.hasOwnProperty("focused")&&(this.eventHost.focused=t,this.requestUpdate())}getCursorPosition(){if(this.eventHost.getCursorPosition)return this.eventHost.getCursorPosition();const t=this.inputElement;return t?t.selectionStart:null}getSelectedText(){if(this.eventHost.getSelectedText)return this.eventHost.getSelectedText();const t=this.inputElement;return t&&null!==t.selectionStart&&null!==t.selectionEnd?t.value.substring(t.selectionStart,t.selectionEnd):""}isReadonlyKeyAllowed(t){if(this.eventHost.isReadonlyKeyAllowed)return this.eventHost.isReadonlyKeyAllowed(t);return t.ctrlKey||t.metaKey?["KeyA","KeyC"].includes(t.code):["Tab","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(t.key)}isActivationKey(t){return this.eventHost.isActivationKey?this.eventHost.isActivationKey(t):"Enter"===t.key||" "===t.key}}
884
+ /**
885
+ * @license
886
+ * Copyright 2023 Nuraly, Laabidi Aymen
887
+ * SPDX-License-Identifier: MIT
888
+ */var C=function(t,i,r,n){for(var e,a=arguments.length,o=a<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,r):n,s=t.length-1;s>=0;s--)(e=t[s])&&(o=(a<3?e(o):a>3?e(i,r,o):e(i,r))||o);return a>3&&o&&Object.defineProperty(i,r,o),o},I=function(t,i,r,n){return new(r||(r=Promise))(function(e,a){function o(t){try{l(n.next(t))}catch(t){a(t)}}function s(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r(function(t){t(i)})).then(o,s)}l((n=n.apply(t,i||[])).next())})};let T=class extends(k(x(w(s(n))))){constructor(){super(...arguments),this.validationController=new E(this),this.eventController=new N(this),this.disabled=!1,this.readonly=!1,this.state="default",this.value="",this.size="medium",this.variant="outlined",this.type="text",this.placeholder="",this.autocomplete="off",this.withCopy=!1,this.allowClear=!1,this.showCount=!1,this.rules=[],this.validateOnChangeInput=!0,this.validateOnBlurInput=!0,this.hasFeedback=!1,this.allowWarnings=!1,this.validationTrigger="change",this.debounce=0,this.inputType="",this.hasAddonBefore=!1,this.hasAddonAfter=!1,this.focused=!1,this.requiredComponents=["nr-icon"],this._handleValidationEvent=t=>{const i=t.detail;this.validationMessage=i.validationMessage||"";let r="default";i.validationResult.hasError?r="error":i.validationResult.hasWarning&&this.allowWarnings?r="warning":i.validationResult.isValid&&this.value&&this.hasFeedback&&(r="success"),this.state!==r&&(this.state=r),this.requestUpdate()},this._handleKeyDown=t=>{this.eventController.handleKeyDown(t)},this._valueChange=t=>{this.eventController.handleValueChange(t)},this._focusEvent=t=>{this.eventController.handleFocus(t)},this._blurEvent=t=>{this.eventController.handleBlur(t)},this._handleIconKeydown=t=>{this.eventController.handleIconKeydown(t)}}get _input(){return this.shadowRoot.querySelector("#input")}get characterCountDisplay(){const t=this.value.length;return this.maxLength?`${t}/${this.maxLength}`:`${t}`}get isOverCharacterLimit(){return!!this.maxLength&&this.value.length>this.maxLength}get input(){return this._input}get inputElement(){return this._input}connectedCallback(){super.connectedCallback(),this.addEventListener("nr-validation",this._handleValidationEvent)}disconnectedCallback(){var t,i,r,n;super.disconnectedCallback(),this.removeEventListener("nr-validation",this._handleValidationEvent),null===(i=(t=this.validationController).clearDebounceTimer)||void 0===i||i.call(t),null===(n=(r=this.eventController).clearDebounceTimer)||void 0===n||n.call(r)}willUpdate(t){super.willUpdate(t),!t.has("type")&&this.inputType||(this.inputType=this.type),(t.has("type")||t.has("min"))&&"number"===this.type&&this.min&&!this.value&&(this.value=this.min),(t.has("type")||t.has("min")||t.has("max")||t.has("step"))&&m.validateNumericProperties(this.type,this.min,this.max,this.step),(t.has("type")||t.has("required")||t.has("maxLength")||t.has("min")||t.has("max"))&&this.validationController.setupValidationRules()}updated(t){if(t.has("step")||t.has("min")||t.has("max")||t.has("maxLength")){const t=this.input;t&&(this.setStep(this.step),this.min?t.setAttribute("min",this.min):t.removeAttribute("min"),this.max?t.setAttribute("max",this.max):t.removeAttribute("max"),this.maxLength?t.setAttribute("maxlength",this.maxLength.toString()):t.removeAttribute("maxlength"))}if(t.has("value")){const t=this.input;t&&t.value!==this.value&&(t.value=this.value)}}firstUpdated(){this._checkInitialSlotContent()}_checkInitialSlotContent(){const t=this.querySelectorAll('[slot="addon-before"]');this.hasAddonBefore=t.length>0;const i=this.querySelectorAll('[slot="addon-after"]');this.hasAddonAfter=i.length>0}_handleSlotChange(t){const i=t.target,r=i.name;"addon-before"===r?this.hasAddonBefore=i.assignedElements().length>0:"addon-after"===r&&(this.hasAddonAfter=i.assignedElements().length>0)}_onCopy(){return I(this,void 0,void 0,function*(){yield this.eventController.handleCopy()})}_onClear(){this.eventController.handleClear()}_increment(){this.eventController.handleIncrement()}_decrement(){this.eventController.handleDecrement()}_togglePasswordIcon(){this.eventController.handleTogglePassword()}_getAriaDescribedBy(){var t;const i=[],r=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="helper-text"]');return r&&r.assignedNodes().length>0&&i.push("helper-text"),i.join(" ")||""}validateValue(t){return this.validationController.validate()}addRule(t){this.validationController.addInputRule(t)}removeRule(t){this.validationController.removeInputRule(t)}clearRules(){this.validationController.clearInputRules()}getValidationStatus(){return this.validationController.getValidationStatus()}validateInput(){return I(this,void 0,void 0,function*(){const t=this.validationController.validate();return this.validationController.isValidating?new Promise(t=>{const i=()=>{this.validationController.isValidating?setTimeout(i,50):t(this.validationController.isValid)};i()}):t})}setValidationStatus(t){this.validationController.setValidationStatus(t)}getValidationClasses(){return this.validationController.getValidationClasses()}renderValidationIcon(){return this.validationController.renderValidationIcon()}renderValidationMessage(){return this.validationController.renderValidationMessage()}render(){const t=this.getValidationClasses(),r=this.validationController.getValidationRenderState();return i`
889
+ <slot name="label"></slot>
890
+ <div class="input-wrapper ${Object.entries(t).filter(([,t])=>t).map(([t])=>t).join(" ")}"
891
+ part="input-wrapper"
892
+ data-theme="${this.currentTheme}"
893
+ ?data-validating="${r.isValidating}">
894
+ ${f.renderAddonBefore(this.hasAddonBefore,t=>this._handleSlotChange(t))}
895
+ <div data-size=${this.size} id="input-container" part="input-container">
896
+ ${f.renderPrefix()}
897
+ <input
898
+ id="input"
899
+ part="input"
900
+ .disabled=${this.disabled}
901
+ .readOnly=${this.readonly}
902
+ .value=${this.value}
903
+ .placeholder=${this.placeholder}
904
+ .type="${this.inputType}"
905
+ .autocomplete=${this.autocomplete}
906
+ aria-invalid=${r.validationResult.hasError?"true":"false"}
907
+ aria-describedby=${this._getAriaDescribedBy()}
908
+ @input=${this._valueChange}
909
+ @focus=${this._focusEvent}
910
+ @blur=${this._blurEvent}
911
+ @keydown=${this._handleKeyDown}
912
+ />
913
+ ${f.renderSuffix()}
914
+ ${f.renderCopyIcon(this.withCopy,this.disabled,this.readonly,()=>this._onCopy(),t=>this._handleIconKeydown(t))}
915
+ ${f.renderClearIcon(this.allowClear,this.value,this.disabled,this.readonly,()=>this._onClear(),t=>this._handleIconKeydown(t))}
916
+ ${r.hasValidationFeedback?this.renderValidationIcon():f.renderStateIcon(this.state)}
917
+ ${f.renderCalendarIcon(this.state,this.type)}
918
+ ${f.renderPasswordIcon(this.type,this.inputType,this.disabled,this.readonly,()=>this._togglePasswordIcon(),t=>this._handleIconKeydown(t))}
919
+ ${f.renderNumberIcons(this.type,this.state,this.disabled,this.readonly,()=>this._increment(),()=>this._decrement(),t=>this._handleIconKeydown(t))}
920
+ </div>
921
+ ${f.renderAddonAfter(this.hasAddonAfter,t=>this._handleSlotChange(t))}
922
+ </div>
923
+ <slot name="helper-text"></slot>
924
+ ${this.renderValidationMessage()}
925
+ ${this.showCount?i`
926
+ <div class="character-count" part="character-count" ?data-over-limit=${this.isOverCharacterLimit}>
927
+ ${this.characterCountDisplay}
928
+ </div>
929
+ `:""}
930
+ `}};T.styles=u,C([e({type:Boolean,reflect:!0})],T.prototype,"disabled",void 0),C([e({type:Boolean,reflect:!0})],T.prototype,"readonly",void 0),C([e({type:String,reflect:!0})],T.prototype,"state",void 0),C([e({type:String,reflect:!0})],T.prototype,"value",void 0),C([e({type:String})],T.prototype,"size",void 0),C([e({type:String,reflect:!0})],T.prototype,"variant",void 0),C([e({reflect:!0})],T.prototype,"type",void 0),C([e({type:String})],T.prototype,"step",void 0),C([e({type:String})],T.prototype,"min",void 0),C([e({type:String})],T.prototype,"max",void 0),C([e({type:String})],T.prototype,"placeholder",void 0),C([e({type:String})],T.prototype,"autocomplete",void 0),C([e({type:String})],T.prototype,"name",void 0),C([e({type:Boolean})],T.prototype,"required",void 0),C([e({type:Boolean,reflect:!0})],T.prototype,"withCopy",void 0),C([e({type:Boolean,reflect:!0})],T.prototype,"allowClear",void 0),C([e({type:Boolean,reflect:!0})],T.prototype,"showCount",void 0),C([e({type:Number})],T.prototype,"maxLength",void 0),C([e({type:Array})],T.prototype,"rules",void 0),C([e({type:Boolean,attribute:"validate-on-change"})],T.prototype,"validateOnChangeInput",void 0),C([e({type:Boolean,attribute:"validate-on-blur"})],T.prototype,"validateOnBlurInput",void 0),C([e({type:Boolean,attribute:"has-feedback"})],T.prototype,"hasFeedback",void 0),C([e({type:Boolean,attribute:"allow-warnings"})],T.prototype,"allowWarnings",void 0),C([e({type:String,attribute:"validation-trigger"})],T.prototype,"validationTrigger",void 0),C([e({type:Number,attribute:"validation-debounce"})],T.prototype,"validationDebounce",void 0),C([e({type:String})],T.prototype,"label",void 0),C([e({type:Number})],T.prototype,"debounce",void 0),C([a()],T.prototype,"validationMessage",void 0),C([a()],T.prototype,"inputType",void 0),C([a()],T.prototype,"hasAddonBefore",void 0),C([a()],T.prototype,"hasAddonAfter",void 0),C([a()],T.prototype,"focused",void 0),T=C([o("nr-input")],T);var P=Object.freeze({__proto__:null,PORT:/^(?:[1-9]\d{0,4}|[1-5]\d{5}|6[0-4]\d{4}|65[0-4]\d{3}|655[0-2]\d{2}|6553[0-5])$/,NOT_EMPTY:/^.+$/});export{T as NrInputElement,P as Validations};