globuswebcomponents 1.0.8 → 1.0.9

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 (261) hide show
  1. package/dist/cjs/gb-avatar_3.cjs.entry.js +186 -0
  2. package/dist/cjs/gb-avatar_3.cjs.entry.js.map +1 -0
  3. package/dist/cjs/gb-badge_2.cjs.entry.js +111 -0
  4. package/dist/cjs/gb-badge_2.cjs.entry.js.map +1 -0
  5. package/dist/cjs/gb-btn_4.cjs.entry.js +169 -0
  6. package/dist/cjs/gb-btn_4.cjs.entry.js.map +1 -0
  7. package/dist/cjs/gb-button.cjs.entry.js +90 -0
  8. package/dist/cjs/gb-button.cjs.entry.js.map +1 -0
  9. package/dist/cjs/gb-checkbox_2.cjs.entry.js +176 -0
  10. package/dist/cjs/gb-checkbox_2.cjs.entry.js.map +1 -0
  11. package/dist/cjs/gb-collapse-button_4.cjs.entry.js +158 -0
  12. package/dist/cjs/gb-collapse-button_4.cjs.entry.js.map +1 -0
  13. package/dist/cjs/gb-help-tooltip_4.cjs.entry.js +675 -0
  14. package/dist/cjs/gb-help-tooltip_4.cjs.entry.js.map +1 -0
  15. package/dist/cjs/gb-input-dropdown-menu-item_5.cjs.entry.js +144 -0
  16. package/dist/cjs/gb-input-dropdown-menu-item_5.cjs.entry.js.map +1 -0
  17. package/dist/cjs/gb-pagination.cjs.entry.js +4 -3
  18. package/dist/cjs/gb-pagination.cjs.entry.js.map +1 -1
  19. package/dist/cjs/gb-sidebar.cjs.entry.js +123 -0
  20. package/dist/cjs/gb-sidebar.cjs.entry.js.map +1 -0
  21. package/dist/cjs/gb-textarea-input-field.cjs.entry.js +218 -0
  22. package/dist/cjs/gb-textarea-input-field.cjs.entry.js.map +1 -0
  23. package/dist/cjs/gb-tooltip.cjs.entry.js +39 -0
  24. package/dist/cjs/gb-tooltip.cjs.entry.js.map +1 -0
  25. package/dist/cjs/globuscomponents.cjs.js +1 -1
  26. package/dist/cjs/loader.cjs.js +1 -1
  27. package/dist/collection/components/gb-button/readme.md +50 -48
  28. package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js +1 -1
  29. package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js.map +1 -1
  30. package/dist/collection/components/gb-input-field/gb-input-field.js +62 -64
  31. package/dist/collection/components/gb-input-field/gb-input-field.js.map +1 -1
  32. package/dist/collection/components/gb-pagination/gb-pagination.js +4 -3
  33. package/dist/collection/components/gb-pagination/gb-pagination.js.map +1 -1
  34. package/dist/collection/components/gb-textarea-input-field/gb-textarea-input-field.css +1 -0
  35. package/dist/collection/components/gb-textarea-input-field/gb-textarea-input-field.js +56 -18
  36. package/dist/collection/components/gb-textarea-input-field/gb-textarea-input-field.js.map +1 -1
  37. package/dist/components/gb-input-dropdown.js +1 -1
  38. package/dist/components/gb-input-field.js +1 -1
  39. package/dist/components/gb-pagination.js +6 -5
  40. package/dist/components/gb-pagination.js.map +1 -1
  41. package/dist/components/gb-rich-text.js +3 -3
  42. package/dist/components/gb-textarea-input-field.js +57 -20
  43. package/dist/components/gb-textarea-input-field.js.map +1 -1
  44. package/dist/components/gb-wysiwyg-toolbar.js +1 -1
  45. package/dist/components/{p-f6515d55.js → p-20d7ba96.js} +63 -66
  46. package/dist/components/p-20d7ba96.js.map +1 -0
  47. package/dist/components/{p-cec5b90c.js → p-7345f5b6.js} +3 -3
  48. package/dist/components/{p-cec5b90c.js.map → p-7345f5b6.js.map} +1 -1
  49. package/dist/components/{p-495583dd.js → p-7c1b28b5.js} +3 -3
  50. package/dist/components/p-7c1b28b5.js.map +1 -0
  51. package/dist/docs.json +2 -2
  52. package/dist/esm/gb-avatar-add-button.entry.js +1 -1
  53. package/dist/esm/gb-avatar-dropdown.entry.js +1 -1
  54. package/dist/esm/gb-avatar-group.entry.js +1 -1
  55. package/dist/esm/gb-avatar-label-group.entry.js +1 -1
  56. package/dist/esm/gb-avatar-profile-photo.entry.js +1 -1
  57. package/dist/esm/gb-avatar_3.entry.js +180 -0
  58. package/dist/esm/gb-avatar_3.entry.js.map +1 -0
  59. package/dist/esm/gb-badge_2.entry.js +106 -0
  60. package/dist/esm/gb-badge_2.entry.js.map +1 -0
  61. package/dist/esm/gb-btn_4.entry.js +162 -0
  62. package/dist/esm/gb-btn_4.entry.js.map +1 -0
  63. package/dist/esm/gb-button-close_3.entry.js +1 -1
  64. package/dist/esm/gb-button.entry.js +86 -0
  65. package/dist/esm/gb-button.entry.js.map +1 -0
  66. package/dist/esm/gb-carousel-arrow.entry.js +1 -1
  67. package/dist/esm/gb-checkbox-group-item.entry.js +1 -1
  68. package/dist/esm/gb-checkbox-group.entry.js +1 -1
  69. package/dist/esm/gb-checkbox_2.entry.js +171 -0
  70. package/dist/esm/gb-checkbox_2.entry.js.map +1 -0
  71. package/dist/esm/gb-collapse-button_4.entry.js +151 -0
  72. package/dist/esm/gb-collapse-button_4.entry.js.map +1 -0
  73. package/dist/esm/gb-dropdown-items-with-shortcut.entry.js +1 -1
  74. package/dist/esm/gb-export-dropdown-item_2.entry.js +1 -1
  75. package/dist/esm/gb-export-dropdown.entry.js +1 -1
  76. package/dist/esm/gb-export-sub-dropdown-item.entry.js +1 -1
  77. package/dist/esm/gb-file-upload-item-base.entry.js +1 -1
  78. package/dist/esm/gb-file-upload.entry.js +1 -1
  79. package/dist/esm/gb-header-icon.entry.js +1 -1
  80. package/dist/esm/gb-header.entry.js +1 -1
  81. package/dist/esm/gb-help-dropdown.entry.js +1 -1
  82. package/dist/esm/gb-help-tooltip_4.entry.js +668 -0
  83. package/dist/esm/gb-help-tooltip_4.entry.js.map +1 -0
  84. package/dist/esm/gb-horizontal-tabs.entry.js +1 -1
  85. package/dist/esm/gb-input-dropdown-menu-item_5.entry.js +136 -0
  86. package/dist/esm/gb-input-dropdown-menu-item_5.entry.js.map +1 -0
  87. package/dist/esm/gb-notification-content.entry.js +1 -1
  88. package/dist/esm/gb-notification-pane.entry.js +1 -1
  89. package/dist/esm/gb-pagination-button-group-base_2.entry.js +1 -1
  90. package/dist/esm/gb-pagination-dot-group.entry.js +1 -1
  91. package/dist/esm/gb-pagination-dot-indicator.entry.js +1 -1
  92. package/dist/esm/gb-pagination.entry.js +5 -4
  93. package/dist/esm/gb-pagination.entry.js.map +1 -1
  94. package/dist/esm/gb-progress-circle.entry.js +1 -1
  95. package/dist/esm/gb-rich-text.entry.js +1 -1
  96. package/dist/esm/gb-scrollbar.entry.js +1 -1
  97. package/dist/esm/gb-sidebar.entry.js +119 -0
  98. package/dist/esm/gb-sidebar.entry.js.map +1 -0
  99. package/dist/esm/gb-slider-control-handle.entry.js +1 -1
  100. package/dist/esm/gb-slider.entry.js +1 -1
  101. package/dist/esm/gb-tab-button-base.entry.js +1 -1
  102. package/dist/esm/gb-textarea-input-field.entry.js +214 -0
  103. package/dist/esm/gb-textarea-input-field.entry.js.map +1 -0
  104. package/dist/esm/gb-toast-button.entry.js +1 -1
  105. package/dist/esm/gb-toast.entry.js +1 -1
  106. package/dist/esm/gb-toggle-base.entry.js +1 -1
  107. package/dist/esm/gb-toggle.entry.js +1 -1
  108. package/dist/esm/gb-tooltip.entry.js +35 -0
  109. package/dist/esm/gb-tooltip.entry.js.map +1 -0
  110. package/dist/esm/gb-vertical-tabs.entry.js +1 -1
  111. package/dist/esm/gb-wysiwyg-editor-icon.entry.js +1 -1
  112. package/dist/esm/gb-wysiwyg-toolbar.entry.js +1 -1
  113. package/dist/esm/gb-wysiwyg-tooltip.entry.js +1 -1
  114. package/dist/esm/globuscomponents.js +3 -3
  115. package/dist/esm/{index-4b3f6d77.js → index-40a08107.js} +2 -2
  116. package/dist/esm/{index-4b3f6d77.js.map → index-40a08107.js.map} +1 -1
  117. package/dist/esm/loader.js +3 -3
  118. package/dist/esm/test-input-tag.entry.js +1 -1
  119. package/dist/globuscomponents/globuscomponents.esm.js +1 -1
  120. package/dist/globuscomponents/globuscomponents.esm.js.map +1 -1
  121. package/dist/globuscomponents/p-02bc91dc.entry.js +2 -0
  122. package/dist/globuscomponents/{p-75988614.entry.js.map → p-02bc91dc.entry.js.map} +1 -1
  123. package/dist/globuscomponents/{p-bcb96e82.entry.js → p-04cf4e3c.entry.js} +2 -2
  124. package/dist/globuscomponents/p-04f0cab4.entry.js +2 -0
  125. package/dist/globuscomponents/{p-623948cd.entry.js.map → p-04f0cab4.entry.js.map} +1 -1
  126. package/dist/globuscomponents/{p-524c0404.entry.js → p-053f4522.entry.js} +2 -2
  127. package/dist/globuscomponents/{p-0410b6df.entry.js → p-05b2248b.entry.js} +2 -2
  128. package/dist/globuscomponents/p-0e790c8d.entry.js +2 -0
  129. package/dist/globuscomponents/{p-57afd81a.entry.js.map → p-0e790c8d.entry.js.map} +1 -1
  130. package/dist/globuscomponents/p-129fb0a8.entry.js +2 -0
  131. package/dist/globuscomponents/p-129fb0a8.entry.js.map +1 -0
  132. package/dist/globuscomponents/{p-75988614.entry.js → p-1b7ae2d3.entry.js} +2 -2
  133. package/dist/globuscomponents/p-1b7ae2d3.entry.js.map +1 -0
  134. package/dist/globuscomponents/{p-9f35fda2.entry.js → p-223299d1.entry.js} +2 -2
  135. package/dist/globuscomponents/{p-bac53953.entry.js → p-26d17140.entry.js} +2 -2
  136. package/dist/globuscomponents/{p-818a14e9.entry.js → p-39e8e77b.entry.js} +2 -2
  137. package/dist/globuscomponents/p-3de0f9ca.entry.js +2 -0
  138. package/dist/globuscomponents/p-3de0f9ca.entry.js.map +1 -0
  139. package/dist/globuscomponents/{p-6dc28d3d.entry.js → p-410550c6.entry.js} +2 -2
  140. package/dist/globuscomponents/{p-59d20c30.entry.js → p-4127412b.entry.js} +2 -2
  141. package/dist/globuscomponents/{p-d9509ace.entry.js → p-42392914.entry.js} +2 -2
  142. package/dist/globuscomponents/p-440f937d.entry.js +2 -0
  143. package/dist/globuscomponents/{p-c95842ae.entry.js.map → p-440f937d.entry.js.map} +1 -1
  144. package/dist/globuscomponents/p-594acc52.entry.js +2 -0
  145. package/dist/globuscomponents/{p-f248f3fd.entry.js → p-5d280eca.entry.js} +2 -2
  146. package/dist/globuscomponents/{p-fc681fa9.entry.js → p-638a8a50.entry.js} +2 -2
  147. package/dist/globuscomponents/p-6964d1ff.entry.js +2 -0
  148. package/dist/globuscomponents/{p-d3848e3c.entry.js.map → p-6964d1ff.entry.js.map} +1 -1
  149. package/dist/globuscomponents/{p-c4769f4d.entry.js → p-6d8e0e31.entry.js} +2 -2
  150. package/dist/globuscomponents/{p-6f708ea2.entry.js → p-75756069.entry.js} +2 -2
  151. package/dist/globuscomponents/p-75756069.entry.js.map +1 -0
  152. package/dist/globuscomponents/{p-dd2d7d64.entry.js → p-75ea72c8.entry.js} +2 -2
  153. package/dist/globuscomponents/p-773a13cc.entry.js +2 -0
  154. package/dist/globuscomponents/p-773a13cc.entry.js.map +1 -0
  155. package/dist/globuscomponents/{p-112fe0dd.entry.js → p-79c45c48.entry.js} +2 -2
  156. package/dist/globuscomponents/p-875e11ee.entry.js +2 -0
  157. package/dist/globuscomponents/p-875e11ee.entry.js.map +1 -0
  158. package/dist/globuscomponents/{p-a0a50839.entry.js → p-8a49b168.entry.js} +2 -2
  159. package/dist/globuscomponents/{p-0c123fd6.entry.js → p-8ba7ae32.entry.js} +2 -2
  160. package/dist/globuscomponents/{p-a7fcbdee.entry.js → p-8dc5c4b2.entry.js} +2 -2
  161. package/dist/globuscomponents/{p-35ad112a.entry.js → p-966cd1bc.entry.js} +2 -2
  162. package/dist/globuscomponents/{p-e8a2ef96.entry.js → p-9dc818a7.entry.js} +2 -2
  163. package/dist/globuscomponents/{p-ebe51f1a.entry.js → p-9f5ba672.entry.js} +2 -2
  164. package/dist/globuscomponents/{p-79c2f800.entry.js → p-a457d63d.entry.js} +2 -2
  165. package/dist/globuscomponents/p-a536ba4c.entry.js +2 -0
  166. package/dist/globuscomponents/{p-83c744d6.entry.js.map → p-a536ba4c.entry.js.map} +1 -1
  167. package/dist/globuscomponents/{p-61bd6d69.entry.js → p-a7fc9c04.entry.js} +2 -2
  168. package/dist/globuscomponents/p-b89a233e.entry.js +2 -0
  169. package/dist/globuscomponents/p-b89a233e.entry.js.map +1 -0
  170. package/dist/globuscomponents/{p-fd82021b.entry.js → p-b8c515cf.entry.js} +2 -2
  171. package/dist/globuscomponents/{p-379f3ca1.entry.js → p-bbdf83e1.entry.js} +2 -2
  172. package/dist/globuscomponents/p-bbdf83e1.entry.js.map +1 -0
  173. package/dist/globuscomponents/{p-497724b2.entry.js → p-c2a3736b.entry.js} +2 -2
  174. package/dist/globuscomponents/p-c59d206f.entry.js +2 -0
  175. package/dist/globuscomponents/p-c59d206f.entry.js.map +1 -0
  176. package/dist/globuscomponents/p-c752a6ed.entry.js +2 -0
  177. package/dist/globuscomponents/p-c752a6ed.entry.js.map +1 -0
  178. package/dist/globuscomponents/p-c7d89a0d.entry.js +2 -0
  179. package/dist/globuscomponents/{p-24d227d0.entry.js.map → p-c7d89a0d.entry.js.map} +1 -1
  180. package/dist/globuscomponents/{p-060b0bf8.entry.js → p-c9eec1ba.entry.js} +2 -2
  181. package/dist/globuscomponents/{p-0d5efea5.entry.js → p-d50ae32d.entry.js} +2 -2
  182. package/dist/globuscomponents/{p-bbaf2d10.entry.js → p-d6054ed3.entry.js} +2 -2
  183. package/dist/globuscomponents/{p-994950d8.entry.js → p-dbc4000c.entry.js} +2 -2
  184. package/dist/globuscomponents/p-e07cc9b1.entry.js +2 -0
  185. package/dist/globuscomponents/p-e07cc9b1.entry.js.map +1 -0
  186. package/dist/globuscomponents/{p-bf92be61.js → p-ec3a36ed.js} +2 -2
  187. package/dist/globuscomponents/{p-38bea668.entry.js → p-ee0d76e5.entry.js} +2 -2
  188. package/dist/globuscomponents/p-f06f4962.entry.js +2 -0
  189. package/dist/globuscomponents/p-f06f4962.entry.js.map +1 -0
  190. package/dist/globuscomponents/{p-6e3f7bb2.entry.js → p-f43a6dc9.entry.js} +2 -2
  191. package/dist/globuscomponents/{p-76d093ef.entry.js → p-f662e95e.entry.js} +2 -2
  192. package/dist/globuscomponents/readme.md +50 -48
  193. package/dist/types/components/gb-input-field/gb-input-field.d.ts +1 -0
  194. package/dist/types/components/gb-textarea-input-field/gb-textarea-input-field.d.ts +2 -0
  195. package/package.json +1 -1
  196. package/dist/cjs/gb-avatar_25.cjs.entry.js +0 -1897
  197. package/dist/cjs/gb-avatar_25.cjs.entry.js.map +0 -1
  198. package/dist/cjs/gb-megainput-field.cjs.entry.js +0 -42
  199. package/dist/cjs/gb-megainput-field.cjs.entry.js.map +0 -1
  200. package/dist/cjs/gb-token-field.cjs.entry.js +0 -28
  201. package/dist/cjs/gb-token-field.cjs.entry.js.map +0 -1
  202. package/dist/cjs/gb-verification-code-field.cjs.entry.js +0 -32
  203. package/dist/cjs/gb-verification-code-field.cjs.entry.js.map +0 -1
  204. package/dist/components/p-495583dd.js.map +0 -1
  205. package/dist/components/p-f6515d55.js.map +0 -1
  206. package/dist/esm/gb-avatar_25.entry.js +0 -1869
  207. package/dist/esm/gb-avatar_25.entry.js.map +0 -1
  208. package/dist/esm/gb-megainput-field.entry.js +0 -38
  209. package/dist/esm/gb-megainput-field.entry.js.map +0 -1
  210. package/dist/esm/gb-token-field.entry.js +0 -24
  211. package/dist/esm/gb-token-field.entry.js.map +0 -1
  212. package/dist/esm/gb-verification-code-field.entry.js +0 -28
  213. package/dist/esm/gb-verification-code-field.entry.js.map +0 -1
  214. package/dist/globuscomponents/p-09ba896b.entry.js +0 -2
  215. package/dist/globuscomponents/p-09ba896b.entry.js.map +0 -1
  216. package/dist/globuscomponents/p-24d227d0.entry.js +0 -2
  217. package/dist/globuscomponents/p-379f3ca1.entry.js.map +0 -1
  218. package/dist/globuscomponents/p-57afd81a.entry.js +0 -2
  219. package/dist/globuscomponents/p-5a736f4a.entry.js +0 -2
  220. package/dist/globuscomponents/p-623948cd.entry.js +0 -2
  221. package/dist/globuscomponents/p-6f708ea2.entry.js.map +0 -1
  222. package/dist/globuscomponents/p-83c744d6.entry.js +0 -2
  223. package/dist/globuscomponents/p-c835beab.entry.js +0 -2
  224. package/dist/globuscomponents/p-c835beab.entry.js.map +0 -1
  225. package/dist/globuscomponents/p-c95842ae.entry.js +0 -2
  226. package/dist/globuscomponents/p-d3848e3c.entry.js +0 -2
  227. package/dist/globuscomponents/p-fcd3a902.entry.js +0 -2
  228. package/dist/globuscomponents/p-fcd3a902.entry.js.map +0 -1
  229. /package/dist/globuscomponents/{p-bcb96e82.entry.js.map → p-04cf4e3c.entry.js.map} +0 -0
  230. /package/dist/globuscomponents/{p-524c0404.entry.js.map → p-053f4522.entry.js.map} +0 -0
  231. /package/dist/globuscomponents/{p-0410b6df.entry.js.map → p-05b2248b.entry.js.map} +0 -0
  232. /package/dist/globuscomponents/{p-9f35fda2.entry.js.map → p-223299d1.entry.js.map} +0 -0
  233. /package/dist/globuscomponents/{p-bac53953.entry.js.map → p-26d17140.entry.js.map} +0 -0
  234. /package/dist/globuscomponents/{p-818a14e9.entry.js.map → p-39e8e77b.entry.js.map} +0 -0
  235. /package/dist/globuscomponents/{p-6dc28d3d.entry.js.map → p-410550c6.entry.js.map} +0 -0
  236. /package/dist/globuscomponents/{p-59d20c30.entry.js.map → p-4127412b.entry.js.map} +0 -0
  237. /package/dist/globuscomponents/{p-d9509ace.entry.js.map → p-42392914.entry.js.map} +0 -0
  238. /package/dist/globuscomponents/{p-5a736f4a.entry.js.map → p-594acc52.entry.js.map} +0 -0
  239. /package/dist/globuscomponents/{p-f248f3fd.entry.js.map → p-5d280eca.entry.js.map} +0 -0
  240. /package/dist/globuscomponents/{p-fc681fa9.entry.js.map → p-638a8a50.entry.js.map} +0 -0
  241. /package/dist/globuscomponents/{p-c4769f4d.entry.js.map → p-6d8e0e31.entry.js.map} +0 -0
  242. /package/dist/globuscomponents/{p-dd2d7d64.entry.js.map → p-75ea72c8.entry.js.map} +0 -0
  243. /package/dist/globuscomponents/{p-112fe0dd.entry.js.map → p-79c45c48.entry.js.map} +0 -0
  244. /package/dist/globuscomponents/{p-a0a50839.entry.js.map → p-8a49b168.entry.js.map} +0 -0
  245. /package/dist/globuscomponents/{p-0c123fd6.entry.js.map → p-8ba7ae32.entry.js.map} +0 -0
  246. /package/dist/globuscomponents/{p-a7fcbdee.entry.js.map → p-8dc5c4b2.entry.js.map} +0 -0
  247. /package/dist/globuscomponents/{p-35ad112a.entry.js.map → p-966cd1bc.entry.js.map} +0 -0
  248. /package/dist/globuscomponents/{p-e8a2ef96.entry.js.map → p-9dc818a7.entry.js.map} +0 -0
  249. /package/dist/globuscomponents/{p-ebe51f1a.entry.js.map → p-9f5ba672.entry.js.map} +0 -0
  250. /package/dist/globuscomponents/{p-79c2f800.entry.js.map → p-a457d63d.entry.js.map} +0 -0
  251. /package/dist/globuscomponents/{p-61bd6d69.entry.js.map → p-a7fc9c04.entry.js.map} +0 -0
  252. /package/dist/globuscomponents/{p-fd82021b.entry.js.map → p-b8c515cf.entry.js.map} +0 -0
  253. /package/dist/globuscomponents/{p-497724b2.entry.js.map → p-c2a3736b.entry.js.map} +0 -0
  254. /package/dist/globuscomponents/{p-060b0bf8.entry.js.map → p-c9eec1ba.entry.js.map} +0 -0
  255. /package/dist/globuscomponents/{p-0d5efea5.entry.js.map → p-d50ae32d.entry.js.map} +0 -0
  256. /package/dist/globuscomponents/{p-bbaf2d10.entry.js.map → p-d6054ed3.entry.js.map} +0 -0
  257. /package/dist/globuscomponents/{p-994950d8.entry.js.map → p-dbc4000c.entry.js.map} +0 -0
  258. /package/dist/globuscomponents/{p-bf92be61.js.map → p-ec3a36ed.js.map} +0 -0
  259. /package/dist/globuscomponents/{p-38bea668.entry.js.map → p-ee0d76e5.entry.js.map} +0 -0
  260. /package/dist/globuscomponents/{p-6e3f7bb2.entry.js.map → p-f43a6dc9.entry.js.map} +0 -0
  261. /package/dist/globuscomponents/{p-76d093ef.entry.js.map → p-f662e95e.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"file":"gb-textarea-input-field.js","mappings":";;;;;;;;;;;;;AAAA,MAAM,uBAAuB,GAAG,ixuEAAixuE,CAAC;AAClzuE,mCAAe,uBAAuB;;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AE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAErC,OAAO,IAAI,KAAK,QAAQ;cACrB,CAAC,SAAG,IAAI,EAAC,MAAM,IAAE,IAAI,CAAC,UAAU,CAAK,EAAE,SAAG,IAAI,EAAC,iBAAiB,IAAE,IAAI,CAAC,WAAW,CAAK,CAAC;cACxF,OAAO,IAAI,KAAK,QAAQ,IAAI,SAAG,IAAI,EAAC,MAAM,IAAE,IAAI,CAAK,CAC7B,CAC/B,CAAC,CACE,CACP,CACG,CACP,CACG,EACL,IAAI,CAAC,YAAY,IAAI,0DAAG,KAAK,EAAE,6BAA6B,IAAI,CAAC,WAAW,GAAG,aAAa,GAAG,EAAE,EAAE,IAAG,IAAI,CAAC,QAAQ,CAAK,CACrH,EACN;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["GbTextareaInputField"],"sources":["src/components/gb-textarea-input-field/gb-textarea-input-field.css?tag=gb-textarea-input-field&encapsulation=shadow","src/components/gb-textarea-input-field/gb-textarea-input-field.tsx"],"sourcesContent":["@import '../../global/global.css';\r\n\r\n.textarea_container{\r\n display: flex;\r\n flex-direction: column;\r\n gap: var(--spacing-2);\r\n}\r\n\r\n.input_with_label{\r\n display: flex;\r\n flex-direction: column;\r\n gap: var(--spacing-2);\r\n}\r\n\r\n.textarea{\r\n border: 1px solid var(--color-border-input, #CDD5DF);\r\n border-radius: var(--rounded-sm);\r\n padding: 0.75rem 0.875rem;\r\n font-family: var(--font-family-body);\r\n resize: none;\r\n width: 15rem; /* Remove later */\r\n min-height: 7.5rem;\r\n overflow: visible;\r\n}\r\n\r\n.textarea::placeholder{\r\n color: var(--color-text-subtle, #697586);\r\n}\r\n\r\n.results_display {\r\n display: flex;\r\n flex-wrap: wrap;\r\n position: relative;\r\n gap: 0.5rem;\r\n background-color: var(--color-surface, #FFFFFF);\r\n}\r\n\r\n.results_display.disabled{\r\n background: var(--color-background-disabled, #F6F8FA);\r\n}\r\n\r\n.textarea_tags{\r\n --weight: fit-content;\r\n /* flex-direction: row-reverse; */\r\n display: flex;\r\n flex-direction: column;\r\n position: relative;\r\n}\r\n\r\n.textarea.tags{\r\n display: flex;\r\n}\r\n\r\n.input_like,\r\n.results_display{\r\n height: fit-content;\r\n}\r\n\r\n.input_like{\r\n border: none;\r\n font-family: var(--font-family-body);\r\n}\r\n\r\n.input_like:focus{\r\n outline: none;\r\n}\r\n\r\n.input_like.disabled{\r\n background: var(--color-background-disabled, #F6F8FA);\r\n}\r\n\r\n.hidden-span {\r\n visibility: hidden;\r\n position: absolute;\r\n max-width: 100%;\r\n white-space: pre;\r\n}\r\n\r\n/* State Styles */\r\n.textarea:focus-within{\r\n border: 1.3px solid var(--color-border-selected, #075DB2);\r\n outline-color: transparent;\r\n}\r\n\r\n.textarea.destructive{\r\n border: 1px solid var(--color-border-danger, #B51726);\r\n}\r\n\r\n.textarea.disabled{\r\n background: var(--color-background-gray-subtlest, #F6F8FA);\r\n border: 1px solid var(--color-border-disabled, #E3E8EF);\r\n cursor: not-allowed;\r\n pointer-events: none;\r\n}\r\n\r\n.label {\r\n color: var(--color-text, #4B5565);\r\n}\r\n\r\n.hint_text{\r\n color: var(--color-text-subtle, #697586);\r\n}\r\n\r\n.hint_text.destructive{\r\n color: var(--color-border-danger, #B51726);\r\n}\r\n\r\n.dropdown_menu{\r\n display: flex;\r\n min-width: 100%;\r\n width: fit-content;\r\n max-height: 15rem;\r\n padding: var(--spacing-none);\r\n flex-direction: column;\r\n align-items: stretch;\r\n border-radius: var(--rounded-sm);\r\n border: 1px solid var(--color-border-subtler, #E3E8EF);\r\n background: var(--color-surface, #FFFFFF);\r\n box-shadow: var(--shadow-sm);\r\n position: absolute;\r\n z-index: 99999;\r\n gap: var(--spacing-none);\r\n transition: 1s ease-in-out;\r\n overflow-y: auto;\r\n top: 105%;\r\n}","import { Component, Element, Prop, State, h, Fragment, Event, EventEmitter, Listen } from '@stencil/core';\r\nimport { StateEnum } from '../../models/reusableModels';\r\n\r\n@Component({\r\n tag: 'gb-textarea-input-field',\r\n styleUrl: 'gb-textarea-input-field.css',\r\n shadow: true,\r\n})\r\nexport class GbTextareaInputField {\r\n @Prop() type: 'default' | 'tags';\r\n @Prop({ mutable: true }) state: 'default' | 'filled' | 'active' | 'disabled';\r\n @Prop() destructive: boolean = false;\r\n @Prop() placeholderText: string = '';\r\n @Prop() showLabel: boolean = false;\r\n @Prop() label: string = '';\r\n @Prop() showHintText: boolean = false;\r\n @Prop() hintText: string = '';\r\n @Prop({ reflect: true }) idOfInput!: string;\r\n @Prop({ reflect: true }) isReadOnly: boolean = false;\r\n @Prop({ mutable: true }) value: any = [\r\n { objectName: 'John Doe', objectValue: 'john.doe@example.com' },\r\n { objectName: 'Jane Smith', objectValue: 'jane.smith@example.com' },\r\n { objectName: 'Alice Johnson', objectValue: 'alice.johnson@example.com' },\r\n { objectName: 'Emmanuel Kadiri', objectValue: 'kadiri2047@gmail.com' },\r\n { objectName: 'Gideon Ogunkola', objectValue: 'gideon@example.com' },\r\n ];\r\n @Prop() icon: 'country' | 'avatar' | 'dot' | 'false';\r\n @Prop({ mutable: true }) results: any[] = [\r\n { objectName: 'John Doe', objectValue: 'john.doe@example.com' },\r\n { objectName: 'Jane Smith', objectValue: 'jane.smith@example.com' },\r\n { objectName: 'Alice Johnson', objectValue: 'alice.johnson@example.com' },\r\n { objectName: 'Emmanuel Kadiri', objectValue: 'kadiri2047@gmail.com' },\r\n { objectName: 'Gideon Ogunkola', objectValue: 'gideon@example.com' },\r\n 10,\r\n 20,\r\n 30,\r\n 40,\r\n 50,\r\n ];\r\n @Element() el: HTMLElement;\r\n @State() content: string = '';\r\n @State() inputValue: string = '';\r\n @State() selectedStaff: any[] = [];\r\n @State() paddingLeft: string = '1rem';\r\n @State() paddingTop: string = '0rem';\r\n @State() show: boolean = false;\r\n @State() staffInfo: any[] = [];\r\n @State() selectedItems: any[] = [];\r\n @State() unselectedItems: any[] = [];\r\n @Event() textareaValueChanged: EventEmitter<any[]>;\r\n\r\n private textarea!: HTMLTextAreaElement;\r\n inputElement!: HTMLInputElement;\r\n resultsDisplayElement!: HTMLDivElement;\r\n private hiddenSpan: HTMLElement;\r\n private minWidth: number = 10;\r\n\r\n componentDidLoad() {\r\n if (this.type === 'tags') {\r\n document.addEventListener('click', this.handleClickOutside);\r\n }\r\n\r\n this.inputElement.addEventListener('input', this.handleTagInput.bind(this));\r\n\r\n this.updateInputWidth();\r\n }\r\n\r\n disconnectedCallback() {\r\n this.inputElement.removeEventListener('input', this.handleTagInput.bind(this));\r\n }\r\n\r\n handleInput() {\r\n this.textarea.style.height = 'auto'; // Reset height to calculate the new height\r\n this.textarea.style.height = `${this.textarea.scrollHeight - 22}px`; // Set the height to the scrollHeight\r\n }\r\n\r\n handleTagInput(event: Event) {\r\n const target = event.target as HTMLInputElement;\r\n this.inputValue = target.value; // Update the value\r\n this.textareaValueChanged.emit(this.selectedItems);\r\n\r\n if (this.inputValue.trim() === '') {\r\n this.show = false;\r\n // this.results = [];\r\n return;\r\n }\r\n\r\n // Simulate API call\r\n setTimeout(() => {\r\n // this.results = this.mockStaffSearch(this.inputValue);\r\n this.show = this.results.length > 0;\r\n }, 1000);\r\n\r\n this.updateInputWidth();\r\n }\r\n\r\n emitInputValue() {\r\n this.textareaValueChanged.emit(this.selectedItems);\r\n }\r\n\r\n handleTagRemove(index: number) {\r\n if (this.value.length > 0) {\r\n this.value = [...this.value.slice(0, index), ...this.value.slice(index + 1)];\r\n this.updateStyles();\r\n this.emitInputValue();\r\n } else {\r\n this.selectedItems = [...this.selectedItems.slice(0, index), ...this.selectedItems.slice(index + 1)];\r\n this.updateStyles();\r\n this.emitInputValue();\r\n }\r\n }\r\n\r\n updateStyles() {\r\n setTimeout(() => {\r\n if (this.resultsDisplayElement) {\r\n const resultsWidth = this.resultsDisplayElement.offsetWidth;\r\n const inputWidth = this.inputElement.offsetWidth;\r\n\r\n this.paddingLeft = this.selectedItems.length === 0 ? '1rem' : `${resultsWidth + 10}px`;\r\n\r\n this.paddingTop = this.selectedItems.length > 2 ? '1rem' : `${inputWidth + 10}px`;\r\n }\r\n });\r\n\r\n if (this.destructive) {\r\n this.destructive = false;\r\n }\r\n this.inputValue = '';\r\n }\r\n\r\n mockStaffSearch(query: string) {\r\n const mockData = this.results;\r\n\r\n return mockData.filter(staff => staff.objectName.toLowerCase().includes(query.toLowerCase()));\r\n }\r\n\r\n selectStaff(staff: any) {\r\n this.selectedStaff = [...this.selectedStaff, staff];\r\n this.inputValue = '';\r\n this.staffInfo = [];\r\n this.updateStyles();\r\n }\r\n\r\n updateInputWidth() {\r\n if (this.hiddenSpan) {\r\n const input = this.el.shadowRoot.querySelector('input') as HTMLInputElement;\r\n\r\n // Update input width based on span's width or use minimum width\r\n const calculatedWidth = Math.max(this.hiddenSpan.offsetWidth + 10, this.minWidth);\r\n input.style.width = `${calculatedWidth}px`;\r\n }\r\n }\r\n\r\n handleWrapperClick() {\r\n this.inputElement.focus(); // Focus the input field\r\n }\r\n\r\n selectDropdownItem(item: any) {\r\n const isObject = typeof item === 'object';\r\n const isSelected = this.selectedItems.some(i => (isObject ? i.objectName === item.objectName : i === item));\r\n if (isSelected) {\r\n // Unselect item: Move it from selectedItems to unselectedItems\r\n this.selectedItems = this.selectedItems.filter(i => (isObject ? i.objectName !== item.objectName : i !== item));\r\n if (!this.unselectedItems.some(i => (isObject ? i.objectName === item.objectName : i === item))) {\r\n this.unselectedItems = [...this.unselectedItems, item];\r\n }\r\n } else {\r\n // Select item: Move it from unselectedItems to selectedItems\r\n this.selectedItems = [...this.selectedItems, item];\r\n this.unselectedItems = this.unselectedItems.filter(i => (isObject ? i.objectName !== item.objectName : i !== item));\r\n console.log(this.selectedItems);\r\n this.textareaValueChanged.emit(this.selectedItems);\r\n }\r\n // this.results = [];\r\n // this.showDropdown = false;\r\n this.updateStyles();\r\n }\r\n\r\n isTagItemSelected(item) {\r\n // return this.selectedStaff.some(i => i.name === item.name);\r\n\r\n const isObject = typeof item === 'object';\r\n return this.selectedItems.some(i => (isObject ? i.objectName === item.objectName : i === item));\r\n }\r\n\r\n @Listen('click', { target: 'document' })\r\n handleClickOutside(event: MouseEvent) {\r\n if (this.show && !this.el.contains(event.target as Node)) {\r\n this.show = false;\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n <div class=\"textarea_container\">\r\n <div class=\"input_with_label\">\r\n {this.showLabel && <p class={`label text-sm-medium`}>{this.label}</p>}\r\n {this.type === 'default' && (\r\n <textarea\r\n ref={el => (this.textarea = el as HTMLTextAreaElement)}\r\n onInput={() => this.handleInput()}\r\n class={`textarea ${this.state} ${this.destructive ? 'destructive' : ''}`}\r\n placeholder={this.placeholderText}\r\n ></textarea>\r\n )}\r\n {this.type === 'tags' && (\r\n <div class=\"textarea_tags\">\r\n <div class={`textarea ${this.type} ${this.state} ${this.destructive ? 'destructive' : ''}`} onClick={() => this.handleWrapperClick()}>\r\n <div class={`results_display ${this.state === 'disabled' ? 'disabled' : ''}`} ref={el => (this.resultsDisplayElement = el as HTMLDivElement)}>\r\n {this.value.length === 0 ? (\r\n <>\r\n {this.selectedItems.map((item, index) => (\r\n <>\r\n {typeof item === 'object' ? (\r\n <div class=\"added_tag\" key={index}>\r\n <gb-tag size=\"sm\" icon={this.icon ? this.icon : 'avatar'} action=\"X_close\" onClick={() => this.handleTagRemove(index)}>\r\n <p class=\"text-xs-medium\">{item.name.split(' ')[0]}</p>\r\n <h1 slot=\"initials\" class=\"text-xxs-semi-bold\">\r\n {item.name\r\n .split(' ')\r\n .map(part => part.charAt(0).toUpperCase())\r\n .join('')}\r\n </h1>\r\n </gb-tag>\r\n </div>\r\n ) : (\r\n <div class=\"added_tag\" key={index}>\r\n <gb-tag size=\"sm\" icon={this.icon ? this.icon : 'avatar'} action=\"X_close\" onClick={() => this.handleTagRemove(index)}>\r\n <p class=\"text-xs-medium\">{item}</p>\r\n </gb-tag>\r\n </div>\r\n )}\r\n </>\r\n ))}\r\n </>\r\n ) : (\r\n <>\r\n {this.value.map((val, index) => (\r\n <>\r\n {typeof val === 'object' ? (\r\n <gb-tag size=\"sm\" action=\"X_close\" icon={this.icon ? this.icon : 'avatar'} onClick={() => this.handleTagRemove(index)} key={index}>\r\n <h1 class=\"text-xxs-semi-bold\" slot=\"initials\">\r\n {val.objectName.split(' ').map(part => part.charAt(0).toUpperCase())}\r\n </h1>\r\n <p>{val.objectName.split(' ')[0]}</p>\r\n </gb-tag>\r\n ) : (\r\n <gb-tag size=\"sm\" action=\"X_close\" icon={this.icon ? this.icon : 'avatar'} onClick={() => this.handleTagRemove(index)} key={index}>\r\n <p>{val}</p>\r\n </gb-tag>\r\n )}\r\n </>\r\n ))}\r\n </>\r\n )}\r\n <span class=\"hidden-span\" ref={el => (this.hiddenSpan = el as HTMLElement)}>\r\n {this.inputValue || ' '}\r\n </span>\r\n <div class=\"input_field\">\r\n <input\r\n id={this.idOfInput}\r\n class={`input_like text-md-regular ${this.state}`}\r\n type=\"text\"\r\n // placeholder={this.placeholderText}\r\n value={this.inputValue}\r\n readOnly={this.isReadOnly}\r\n ref={el => (this.inputElement = el as HTMLInputElement)}\r\n onBlur={() => this.emitInputValue()}\r\n />\r\n </div>\r\n </div>\r\n {this.destructive && (\r\n <div class=\"help_icon\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\">\r\n <path\r\n d=\"M7.9947 10H8.00069M8.00004 8.00004V5.33337M14.6667 8.00004C14.6667 11.6819 11.6819 14.6667 8.00004 14.6667C4.31814 14.6667 1.33337 11.6819 1.33337 8.00004C1.33337 4.31814 4.31814 1.33337 8.00004 1.33337C11.6819 1.33337 14.6667 4.31814 14.6667 8.00004Z\"\r\n stroke=\"#B51726\"\r\n stroke-width=\"1.33333\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n </div>\r\n )}\r\n </div>\r\n {this.show && (\r\n <div class={`dropdown_menu`}>\r\n {this.results.map(item => (\r\n <gb-input-dropdown-menu-item\r\n type=\"checkbox\"\r\n supporting-text={true}\r\n state={StateEnum.Default}\r\n onClick={() => this.selectDropdownItem(item)}\r\n selected={this.isTagItemSelected(item)}\r\n >\r\n {typeof item === 'object'\r\n ? [<p slot=\"name\">{item.objectName}</p>, <p slot=\"supporting_text\">{item.objectValue}</p>]\r\n : typeof item !== 'object' && <p slot=\"name\">{item}</p>}\r\n </gb-input-dropdown-menu-item>\r\n ))}\r\n </div>\r\n )}\r\n </div>\r\n )}\r\n </div>\r\n {this.showHintText && <p class={`hint_text text-sm-regular ${this.destructive ? 'destructive' : ''}`}>{this.hintText}</p>}\r\n </div>\r\n );\r\n }\r\n}\r\n"],"version":3}
1
+ {"file":"gb-textarea-input-field.js","mappings":";;;;;;;;;;;;;AAAA,MAAM,uBAAuB,GAAG,myuEAAmyuE,CAAC;AACp0uE,mCAAe,uBAAuB;;MCOzBA,sBAAoB;;;;;;QA+CvB,aAAQ,GAAW,EAAE,CAAC;;;2BA5CC,KAAK;+BACF,EAAE;yBACP,KAAK;qBACV,EAAE;4BACM,KAAK;wBACV,EAAE;;0BAEkB,KAAK;qBACd;YACpC,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,sBAAsB,EAAE;YAC/D,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,wBAAwB,EAAE;YACnE,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,2BAA2B,EAAE;YACzE,EAAE,UAAU,EAAE,iBAAiB,EAAE,WAAW,EAAE,sBAAsB,EAAE;YACtE,EAAE,UAAU,EAAE,iBAAiB,EAAE,WAAW,EAAE,oBAAoB,EAAE;SACrE;;uBAEyC;YACxC,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,sBAAsB,EAAE;YAC/D,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,wBAAwB,E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B,CACE,CACF,CACP,CACG,EACL,IAAI,CAAC,IAAI,KACR,4DAAK,KAAK,EAAE,eAAe,IACxB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,KACpB,mCACE,IAAI,EAAC,UAAU,qBACE,IAAI,EACrB,KAAK,EAAE,SAAS,CAAC,OAAO,EACxB,OAAO,EAAE,MAAM,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAC5C,QAAQ,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAErC,OAAO,IAAI,KAAK,QAAQ;cACrB,CAAC,SAAG,IAAI,EAAC,MAAM,IAAE,IAAI,CAAC,UAAU,CAAK,EAAE,SAAG,IAAI,EAAC,iBAAiB,IAAE,IAAI,CAAC,WAAW,CAAK,CAAC;cACxF,OAAO,IAAI,KAAK,QAAQ,IAAI,SAAG,IAAI,EAAC,MAAM,IAAE,IAAI,CAAK,CAC7B,CAC/B,CAAC,CACE,CACP,CACG,CACP,CACG,EACL,IAAI,CAAC,YAAY,IAAI,0DAAG,KAAK,EAAE,6BAA6B,IAAI,CAAC,WAAW,GAAG,aAAa,GAAG,EAAE,EAAE,IAAG,IAAI,CAAC,QAAQ,CAAK,CACrH,EACN;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["GbTextareaInputField"],"sources":["src/components/gb-textarea-input-field/gb-textarea-input-field.css?tag=gb-textarea-input-field&encapsulation=shadow","src/components/gb-textarea-input-field/gb-textarea-input-field.tsx"],"sourcesContent":["@import '../../global/global.css';\r\n\r\n.textarea_container{\r\n display: flex;\r\n flex-direction: column;\r\n gap: var(--spacing-2);\r\n}\r\n\r\n.input_with_label{\r\n display: flex;\r\n flex-direction: column;\r\n gap: var(--spacing-2);\r\n}\r\n\r\n.textarea{\r\n border: 1px solid var(--color-border-input, #CDD5DF);\r\n border-radius: var(--rounded-sm);\r\n padding: 0.75rem 0.875rem;\r\n font-family: var(--font-family-body);\r\n resize: none;\r\n width: 15rem; /* Remove later */\r\n min-height: 7.5rem;\r\n overflow: visible;\r\n}\r\n\r\n.textarea::placeholder{\r\n color: var(--color-text-subtle, #697586);\r\n}\r\n\r\n.results_display {\r\n display: flex;\r\n flex-wrap: wrap;\r\n position: relative;\r\n gap: 0.5rem;\r\n width: 100%;\r\n background-color: var(--color-surface, #FFFFFF);\r\n}\r\n\r\n.results_display.disabled{\r\n background: var(--color-background-disabled, #F6F8FA);\r\n}\r\n\r\n.textarea_tags{\r\n --weight: fit-content;\r\n /* flex-direction: row-reverse; */\r\n display: flex;\r\n flex-direction: column;\r\n position: relative;\r\n}\r\n\r\n.textarea.tags{\r\n display: flex;\r\n}\r\n\r\n.input_like,\r\n.results_display{\r\n height: fit-content;\r\n}\r\n\r\n.input_like{\r\n border: none;\r\n font-family: var(--font-family-body);\r\n}\r\n\r\n.input_like:focus{\r\n outline: none;\r\n}\r\n\r\n.input_like.disabled{\r\n background: var(--color-background-disabled, #F6F8FA);\r\n}\r\n\r\n.hidden-span {\r\n visibility: hidden;\r\n position: absolute;\r\n max-width: 100%;\r\n white-space: pre;\r\n}\r\n\r\n/* State Styles */\r\n.textarea:focus-within{\r\n border: 1.3px solid var(--color-border-selected, #075DB2);\r\n outline-color: transparent;\r\n}\r\n\r\n.textarea.destructive{\r\n border: 1px solid var(--color-border-danger, #B51726);\r\n}\r\n\r\n.textarea.disabled{\r\n background: var(--color-background-gray-subtlest, #F6F8FA);\r\n border: 1px solid var(--color-border-disabled, #E3E8EF);\r\n cursor: not-allowed;\r\n pointer-events: none;\r\n}\r\n\r\n.label {\r\n color: var(--color-text, #4B5565);\r\n}\r\n\r\n.hint_text{\r\n color: var(--color-text-subtle, #697586);\r\n}\r\n\r\n.hint_text.destructive{\r\n color: var(--color-border-danger, #B51726);\r\n}\r\n\r\n.dropdown_menu{\r\n display: flex;\r\n min-width: 100%;\r\n width: fit-content;\r\n max-height: 15rem;\r\n padding: var(--spacing-none);\r\n flex-direction: column;\r\n align-items: stretch;\r\n border-radius: var(--rounded-sm);\r\n border: 1px solid var(--color-border-subtler, #E3E8EF);\r\n background: var(--color-surface, #FFFFFF);\r\n box-shadow: var(--shadow-sm);\r\n position: absolute;\r\n z-index: 99999;\r\n gap: var(--spacing-none);\r\n transition: 1s ease-in-out;\r\n overflow-y: auto;\r\n top: 105%;\r\n}","import { Component, Element, Prop, State, h, Fragment, Event, EventEmitter, Listen, Watch } from '@stencil/core';\r\nimport { StateEnum } from '../../models/reusableModels';\r\n\r\n@Component({\r\n tag: 'gb-textarea-input-field',\r\n styleUrl: 'gb-textarea-input-field.css',\r\n shadow: true,\r\n})\r\nexport class GbTextareaInputField {\r\n @Prop() type: 'default' | 'tags';\r\n @Prop({ mutable: true }) state: 'default' | 'filled' | 'active' | 'disabled';\r\n @Prop() destructive: boolean = false;\r\n @Prop() placeholderText: string = '';\r\n @Prop() showLabel: boolean = false;\r\n @Prop() label: string = '';\r\n @Prop() showHintText: boolean = false;\r\n @Prop() hintText: string = '';\r\n @Prop({ reflect: true }) idOfInput!: string;\r\n @Prop({ reflect: true }) isReadOnly: boolean = false;\r\n @Prop({ mutable: true }) value: any = [\r\n { objectName: 'John Doe', objectValue: 'john.doe@example.com' },\r\n { objectName: 'Jane Smith', objectValue: 'jane.smith@example.com' },\r\n { objectName: 'Alice Johnson', objectValue: 'alice.johnson@example.com' },\r\n { objectName: 'Emmanuel Kadiri', objectValue: 'kadiri2047@gmail.com' },\r\n { objectName: 'Gideon Ogunkola', objectValue: 'gideon@example.com' },\r\n ];\r\n @Prop() icon: 'country' | 'avatar' | 'dot' | 'false';\r\n @Prop({ mutable: true }) results: any[] = [\r\n { objectName: 'John Doe', objectValue: 'john.doe@example.com' },\r\n { objectName: 'Jane Smith', objectValue: 'jane.smith@example.com' },\r\n { objectName: 'Alice Johnson', objectValue: 'alice.johnson@example.com' },\r\n { objectName: 'Emmanuel Kadiri', objectValue: 'kadiri2047@gmail.com' },\r\n { objectName: 'Gideon Ogunkola', objectValue: 'gideon@example.com' },\r\n 10,\r\n 20,\r\n 30,\r\n 40,\r\n 50,\r\n ];\r\n @Element() el: HTMLElement;\r\n @State() content: string = '';\r\n @State() inputValue: string = '';\r\n @State() selectedStaff: any[] = [];\r\n @State() paddingLeft: string = '1rem';\r\n @State() paddingTop: string = '0rem';\r\n @State() show: boolean = false;\r\n @State() staffInfo: any[] = [];\r\n @State() selectedItems: any[] = [];\r\n @State() unselectedItems: any[] = [];\r\n @Event() textareaValueChanged: EventEmitter<any[]>;\r\n\r\n private textarea!: HTMLTextAreaElement;\r\n inputElement!: HTMLInputElement;\r\n resultsDisplayElement!: HTMLDivElement;\r\n private hiddenSpan: HTMLElement;\r\n private minWidth: number = 10;\r\n\r\n componentDidLoad() {\r\n if (this.type === 'tags') {\r\n document.addEventListener('click', this.handleClickOutside);\r\n }\r\n\r\n this.inputElement.addEventListener('input', this.handleTagInput.bind(this));\r\n\r\n this.updateInputWidth();\r\n }\r\n \r\n componentWillLoad() {\r\n this.updateSelectedItems(this.value);\r\n }\r\n\r\n disconnectedCallback() {\r\n this.inputElement.removeEventListener('input', this.handleTagInput.bind(this));\r\n }\r\n\r\n handleInput() {\r\n this.textarea.style.height = 'auto'; // Reset height to calculate the new height\r\n this.textarea.style.height = `${this.textarea.scrollHeight - 22}px`; // Set the height to the scrollHeight\r\n }\r\n\r\n handleTagInput(event: Event) {\r\n const target = event.target as HTMLInputElement;\r\n this.inputValue = target.value; // Update the value\r\n this.textareaValueChanged.emit(this.selectedItems);\r\n\r\n if (this.inputValue.trim() === '') {\r\n this.show = false;\r\n // this.results = [];\r\n return;\r\n }\r\n\r\n // Simulate API call\r\n setTimeout(() => {\r\n // this.results = this.mockStaffSearch(this.inputValue);\r\n this.show = this.results.length > 0;\r\n }, 1000);\r\n\r\n this.updateInputWidth();\r\n }\r\n\r\n emitInputValue() {\r\n this.textareaValueChanged.emit(this.selectedItems);\r\n }\r\n\r\n handleTagRemove(index: number) {\r\n if (this.value.length > 0) {\r\n this.value = [...this.value.slice(0, index), ...this.value.slice(index + 1)];\r\n this.updateStyles();\r\n this.emitInputValue();\r\n } else {\r\n this.selectedItems = [...this.selectedItems.slice(0, index), ...this.selectedItems.slice(index + 1)];\r\n this.updateStyles();\r\n this.emitInputValue();\r\n }\r\n }\r\n\r\n updateStyles() {\r\n setTimeout(() => {\r\n if (this.resultsDisplayElement) {\r\n const resultsWidth = this.resultsDisplayElement.offsetWidth;\r\n const inputWidth = this.inputElement.offsetWidth;\r\n\r\n this.paddingLeft = this.selectedItems.length === 0 ? '1rem' : `${resultsWidth + 10}px`;\r\n\r\n this.paddingTop = this.selectedItems.length > 2 ? '1rem' : `${inputWidth + 10}px`;\r\n }\r\n });\r\n\r\n if (this.destructive) {\r\n this.destructive = false;\r\n }\r\n this.inputValue = '';\r\n }\r\n\r\n mockStaffSearch(query: string) {\r\n const mockData = this.results;\r\n\r\n return mockData.filter(staff => staff.objectName.toLowerCase().includes(query.toLowerCase()));\r\n }\r\n\r\n selectStaff(staff: any) {\r\n this.selectedStaff = [...this.selectedStaff, staff];\r\n this.inputValue = '';\r\n this.staffInfo = [];\r\n this.updateStyles();\r\n }\r\n\r\n updateInputWidth() {\r\n if (this.hiddenSpan) {\r\n const input = this.el.shadowRoot.querySelector('input') as HTMLInputElement;\r\n\r\n // Update input width based on span's width or use minimum width\r\n const calculatedWidth = Math.max(this.hiddenSpan.offsetWidth + 10, this.minWidth);\r\n input.style.width = `${calculatedWidth}px`;\r\n }\r\n }\r\n\r\n handleWrapperClick() {\r\n this.inputElement.focus(); // Focus the input field\r\n }\r\n\r\n selectDropdownItem(item: any) {\r\n if (this.value.length === 0) {\r\n const isObject = typeof item === 'object';\r\n const isSelected = this.selectedItems.some(i => (isObject ? i.objectName === item.objectName : i === item));\r\n if (isSelected) {\r\n // Unselect item: Move it from selectedItems to unselectedItems\r\n this.selectedItems = this.selectedItems.filter(i => (isObject ? i.objectName !== item.objectName : i !== item));\r\n if (!this.unselectedItems.some(i => (isObject ? i.objectName === item.objectName : i === item))) {\r\n this.unselectedItems = [...this.unselectedItems, item];\r\n }\r\n this.textareaValueChanged.emit(this.selectedItems);\r\n } else {\r\n // Select item: Move it from unselectedItems to selectedItems\r\n this.selectedItems = [...this.selectedItems, item];\r\n this.unselectedItems = this.unselectedItems.filter(i => (isObject ? i.objectName !== item.objectName : i !== item));\r\n this.textareaValueChanged.emit(this.selectedItems);\r\n }\r\n } else {\r\n const isObject = typeof item === 'object';\r\n const isSelected = this.selectedItems.some(i => (isObject ? i.objectName === item.objectName : i === item));\r\n\r\n if (isSelected) {\r\n this.value = this.value.filter(i => (isObject ? i.objectName !== item.objectName : i !== item));\r\n console.log(this.value);\r\n this.textareaValueChanged.emit(this.value);\r\n } else {\r\n this.value = [...this.value, item]; // Add item to array\r\n this.textareaValueChanged.emit(this.value);\r\n }\r\n }\r\n\r\n this.updateStyles();\r\n }\r\n\r\n @Watch('value')\r\n updateSelectedItems(newValue: any[]) {\r\n if (Array.isArray(newValue) && newValue.length > 0) {\r\n this.selectedItems = [];\r\n this.unselectedItems = [];\r\n\r\n const objectValues = newValue.filter(val => typeof val === 'object' && val !== null);\r\n const primitiveValues = newValue.filter(val => typeof val !== 'object');\r\n\r\n this.selectedItems = this.results.filter(item =>\r\n typeof item === 'object' && item !== null\r\n ? objectValues.some(val => JSON.stringify(val) === JSON.stringify(item)) // Avoid object reference issues\r\n : primitiveValues.includes(item),\r\n );\r\n\r\n this.unselectedItems = this.results.filter(item =>\r\n typeof item === 'object' && item !== null ? !objectValues.some(val => JSON.stringify(val) === JSON.stringify(item)) : !primitiveValues.includes(item),\r\n );\r\n } else {\r\n this.selectedItems = [];\r\n this.unselectedItems = [...this.results];\r\n }\r\n }\r\n\r\n isTagItemSelected(item) {\r\n // return this.selectedStaff.some(i => i.name === item.name);\r\n\r\n const isObject = typeof item === 'object';\r\n return this.selectedItems.some(i => (isObject ? i.objectName === item.objectName : i === item));\r\n }\r\n\r\n @Listen('click', { target: 'document' })\r\n handleClickOutside(event: MouseEvent) {\r\n if (this.show && !this.el.contains(event.target as Node)) {\r\n this.show = false;\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n <div class=\"textarea_container\">\r\n <div class=\"input_with_label\">\r\n {this.showLabel && <p class={`label text-sm-medium`}>{this.label}</p>}\r\n {this.type === 'default' && (\r\n <textarea\r\n ref={el => (this.textarea = el as HTMLTextAreaElement)}\r\n onInput={() => this.handleInput()}\r\n class={`textarea ${this.state} ${this.destructive ? 'destructive' : ''}`}\r\n placeholder={this.placeholderText}\r\n ></textarea>\r\n )}\r\n {this.type === 'tags' && (\r\n <div class=\"textarea_tags\">\r\n <div class={`textarea ${this.type} ${this.state} ${this.destructive ? 'destructive' : ''}`} onClick={() => this.handleWrapperClick()}>\r\n <div class={`results_display ${this.state === 'disabled' ? 'disabled' : ''}`} ref={el => (this.resultsDisplayElement = el as HTMLDivElement)}>\r\n {this.value.length === 0 ? (\r\n <>\r\n {this.selectedItems.map((item, index) => (\r\n <>\r\n {typeof item === 'object' ? (\r\n <div class=\"added_tag\" key={index}>\r\n <gb-tag size=\"sm\" icon={this.icon ? this.icon : 'avatar'} action=\"X_close\" onClick={() => this.handleTagRemove(index)}>\r\n <p class=\"text-xs-medium\">{item.objectName.split(' ')[0]}</p>\r\n <h1 slot=\"initials\" class=\"text-xxs-semi-bold\">\r\n {item.objectName\r\n .split(' ')\r\n .map(part => part.charAt(0).toUpperCase())\r\n .join('')}\r\n </h1>\r\n </gb-tag>\r\n </div>\r\n ) : (\r\n <div class=\"added_tag\" key={index}>\r\n <gb-tag size=\"sm\" icon={this.icon ? this.icon : 'avatar'} action=\"X_close\" onClick={() => this.handleTagRemove(index)}>\r\n <p class=\"text-xs-medium\">{item}</p>\r\n </gb-tag>\r\n </div>\r\n )}\r\n </>\r\n ))}\r\n </>\r\n ) : (\r\n <>\r\n {this.value.map((val, index) => (\r\n <>\r\n {typeof val === 'object' ? (\r\n <gb-tag size=\"sm\" action=\"X_close\" icon={this.icon ? this.icon : 'avatar'} onClick={() => this.handleTagRemove(index)} key={index}>\r\n <h1 class=\"text-xxs-semi-bold\" slot=\"initials\">\r\n {val.objectName.split(' ').map(part => part.charAt(0).toUpperCase())}\r\n </h1>\r\n <p>{val.objectName.split(' ')[0]}</p>\r\n </gb-tag>\r\n ) : (\r\n <gb-tag size=\"sm\" action=\"X_close\" icon={this.icon ? this.icon : 'avatar'} onClick={() => this.handleTagRemove(index)} key={index}>\r\n <p>{val}</p>\r\n </gb-tag>\r\n )}\r\n </>\r\n ))}\r\n </>\r\n )}\r\n <span class=\"hidden-span\" ref={el => (this.hiddenSpan = el as HTMLElement)}>\r\n {this.inputValue || ' '}\r\n </span>\r\n <div class=\"input_field\">\r\n <input\r\n id={this.idOfInput}\r\n class={`input_like text-md-regular ${this.state}`}\r\n type=\"text\"\r\n // placeholder={this.placeholderText}\r\n value={this.inputValue}\r\n readOnly={this.isReadOnly}\r\n ref={el => (this.inputElement = el as HTMLInputElement)}\r\n onBlur={() => this.emitInputValue()}\r\n />\r\n </div>\r\n </div>\r\n {this.destructive && (\r\n <div class=\"help_icon\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\">\r\n <path\r\n d=\"M7.9947 10H8.00069M8.00004 8.00004V5.33337M14.6667 8.00004C14.6667 11.6819 11.6819 14.6667 8.00004 14.6667C4.31814 14.6667 1.33337 11.6819 1.33337 8.00004C1.33337 4.31814 4.31814 1.33337 8.00004 1.33337C11.6819 1.33337 14.6667 4.31814 14.6667 8.00004Z\"\r\n stroke=\"#B51726\"\r\n stroke-width=\"1.33333\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n </div>\r\n )}\r\n </div>\r\n {this.show && (\r\n <div class={`dropdown_menu`}>\r\n {this.results.map(item => (\r\n <gb-input-dropdown-menu-item\r\n type=\"checkbox\"\r\n supporting-text={true}\r\n state={StateEnum.Default}\r\n onClick={() => this.selectDropdownItem(item)}\r\n selected={this.isTagItemSelected(item)}\r\n >\r\n {typeof item === 'object'\r\n ? [<p slot=\"name\">{item.objectName}</p>, <p slot=\"supporting_text\">{item.objectValue}</p>]\r\n : typeof item !== 'object' && <p slot=\"name\">{item}</p>}\r\n </gb-input-dropdown-menu-item>\r\n ))}\r\n </div>\r\n )}\r\n </div>\r\n )}\r\n </div>\r\n {this.showHintText && <p class={`hint_text text-sm-regular ${this.destructive ? 'destructive' : ''}`}>{this.hintText}</p>}\r\n </div>\r\n );\r\n }\r\n}\r\n"],"version":3}
@@ -1,4 +1,4 @@
1
- import { G as GbWysiwygToolbar$1, d as defineCustomElement$1 } from './p-cec5b90c.js';
1
+ import { G as GbWysiwygToolbar$1, d as defineCustomElement$1 } from './p-7345f5b6.js';
2
2
 
3
3
  const GbWysiwygToolbar = GbWysiwygToolbar$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -32,12 +32,6 @@ const GbInputField = /*@__PURE__*/ proxyCustomElement(class GbInputField extends
32
32
  document.execCommand('copy'); // Deprecated but works in most browsers
33
33
  // For modern browsers:
34
34
  navigator.clipboard.writeText(this.inputRef.value);
35
- // .then(() => {
36
- // console.log('Copied to clipboard');
37
- // })
38
- // .catch(err => {
39
- // console.error('Failed to copy: ', err);
40
- // });
41
35
  }
42
36
  };
43
37
  this.size = undefined;
@@ -79,7 +73,7 @@ const GbInputField = /*@__PURE__*/ proxyCustomElement(class GbInputField extends
79
73
  // { objectName: 'Jane Smith', objectValue: 'jane.smith@example.com' },
80
74
  // { objectName: 'Alice Johnson', objectValue: 'alice.johnson@example.com' },
81
75
  // { objectName: 'Emmanuel Kadiri', objectValue: 'kadiri2047@gmail.com' },
82
- // 10
76
+ // 10,
83
77
  ];
84
78
  this.inputValue = '';
85
79
  this.tags = [];
@@ -123,30 +117,44 @@ const GbInputField = /*@__PURE__*/ proxyCustomElement(class GbInputField extends
123
117
  // return mockData.filter(staff => staff.name.toLowerCase().includes(query.toLowerCase()));
124
118
  // }
125
119
  selectDropdownItem(item) {
126
- const isObject = typeof item === 'object';
127
- const isSelected = this.selectedItems.some(i => (isObject ? i.objectName === item.objectName : i === item));
128
- if (isSelected) {
129
- // Unselect item: Move it from selectedItems to unselectedItems
130
- this.value = this.selectedItems.filter(i => (isObject ? i.objectName !== item.objectName : i !== item));
131
- if (!this.unselectedItems.some(i => (isObject ? i.objectName === item.objectName : i === item))) {
132
- this.unselectedItems = [...this.unselectedItems, item];
120
+ if (this.value.length === 0) {
121
+ const isObject = typeof item === 'object';
122
+ const isSelected = this.selectedItems.some(i => (isObject ? i.objectName === item.objectName : i === item));
123
+ if (isSelected) {
124
+ // Unselect item: Move it from selectedItems to unselectedItems
125
+ this.selectedItems = this.selectedItems.filter(i => (isObject ? i.objectName !== item.objectName : i !== item));
126
+ if (!this.unselectedItems.some(i => (isObject ? i.objectName === item.objectName : i === item))) {
127
+ this.unselectedItems = [...this.unselectedItems, item];
128
+ }
129
+ this.inputValueChanged.emit(this.selectedItems);
130
+ }
131
+ else {
132
+ // Select item: Move it from unselectedItems to selectedItems
133
+ this.selectedItems = [...this.selectedItems, item];
134
+ this.unselectedItems = this.unselectedItems.filter(i => (isObject ? i.objectName !== item.objectName : i !== item));
135
+ this.inputValueChanged.emit(this.selectedItems);
133
136
  }
134
137
  }
135
138
  else {
136
- // Select item: Move it from unselectedItems to selectedItems
137
- this.selectedItems = [...this.selectedItems, item];
138
- this.unselectedItems = this.unselectedItems.filter(i => (isObject ? i.objectName !== item.objectName : i !== item));
139
- this.inputValueChanged.emit(this.selectedItems);
139
+ const isObject = typeof item === 'object';
140
+ const isSelected = this.selectedItems.some(i => (isObject ? i.objectName === item.objectName : i === item));
141
+ if (isSelected) {
142
+ this.value = this.value.filter(i => (isObject ? i.objectName !== item.objectName : i !== item));
143
+ console.log(this.value);
144
+ this.inputValueChanged.emit(this.value);
145
+ }
146
+ else {
147
+ this.value = [...this.value, item]; // Add item to array
148
+ this.inputValueChanged.emit(this.value);
149
+ }
140
150
  }
141
- // this.results = [];
142
- // this.showDropdown = false;
143
151
  this.updateStyles();
144
152
  }
145
153
  handleTagRemove(index) {
146
154
  if (this.value.length > 0) {
147
155
  this.value = [...this.value.slice(0, index), ...this.value.slice(index + 1)];
148
156
  console.log(this.value);
149
- this.updateStyles();
157
+ // this.updateStyles();
150
158
  }
151
159
  else {
152
160
  this.selectedItems = [...this.selectedItems.slice(0, index), ...this.selectedItems.slice(index + 1)];
@@ -218,6 +226,22 @@ const GbInputField = /*@__PURE__*/ proxyCustomElement(class GbInputField extends
218
226
  this.selectedItem = option;
219
227
  this.showDropdown = false; // Close the dropdown
220
228
  }
229
+ updateSelectedItems(newValue) {
230
+ if (Array.isArray(newValue) && newValue.length > 0) {
231
+ this.selectedItems = [];
232
+ this.unselectedItems = [];
233
+ const objectValues = newValue.filter(val => typeof val === 'object' && val !== null);
234
+ const primitiveValues = newValue.filter(val => typeof val !== 'object');
235
+ this.selectedItems = this.results.filter(item => typeof item === 'object' && item !== null
236
+ ? objectValues.some(val => JSON.stringify(val) === JSON.stringify(item)) // Avoid object reference issues
237
+ : primitiveValues.includes(item));
238
+ this.unselectedItems = this.results.filter(item => typeof item === 'object' && item !== null ? !objectValues.some(val => JSON.stringify(val) === JSON.stringify(item)) : !primitiveValues.includes(item));
239
+ }
240
+ else {
241
+ this.selectedItems = [];
242
+ this.unselectedItems = [...this.results];
243
+ }
244
+ }
221
245
  componentWillLoad() {
222
246
  // this.selectedItem = this.options[0];
223
247
  if (this.options && this.options.length > 0) {
@@ -227,36 +251,7 @@ const GbInputField = /*@__PURE__*/ proxyCustomElement(class GbInputField extends
227
251
  if (this.type !== 'tags') {
228
252
  this.selectedItem = null; // For single selection types
229
253
  }
230
- if (this.value.length > 0) {
231
- this.selectedItems = [];
232
- this.unselectedItems = [];
233
- // Separate objects from primitive values
234
- const objectValues = this.value.filter(val => typeof val === 'object' && val !== null);
235
- const primitiveValues = this.value.filter(val => typeof val !== 'object');
236
- // Find selected items
237
- this.selectedItems = this.results.filter(item => {
238
- if (typeof item === 'object' && item !== null) {
239
- return objectValues.some(val => val.objectName === item.objectName);
240
- }
241
- else {
242
- return primitiveValues.includes(item);
243
- }
244
- });
245
- // Find unselected items
246
- this.unselectedItems = this.results.filter(item => {
247
- if (typeof item === 'object' && item !== null) {
248
- return !objectValues.some(val => val.objectName === item.objectName);
249
- }
250
- else {
251
- return !primitiveValues.includes(item);
252
- }
253
- });
254
- }
255
- else {
256
- // If value array is empty, all items are unselected
257
- this.selectedItems = [];
258
- this.unselectedItems = [...this.results];
259
- }
254
+ this.updateSelectedItems(this.value);
260
255
  // console.log('Selected Items:', this.selectedItems);
261
256
  // console.log('Unselected Items:', this.unselectedItems);
262
257
  }
@@ -299,29 +294,30 @@ const GbInputField = /*@__PURE__*/ proxyCustomElement(class GbInputField extends
299
294
  // this.inputElement.removeEventListener('input', this.handleTagInput.bind(this));
300
295
  // }
301
296
  render() {
302
- return (h("div", { key: '08995102ea0e056f02ef6e67c8468db9e0166b0a', class: `input_container` }, h("div", { key: '18e57594592d18afb605b99da317937a202db64b', class: `input_with_label` }, this.showLabel && h("p", { key: 'df803ca7c6941b5eb221924c95f15cd7a27cbab8', class: "label text-sm-medium" }, this.label.charAt(0).toUpperCase() + this.label.slice(1).toLowerCase()), this.type === 'default' && [
303
- h("div", { key: '4a1df41e59292235d8f78f933fbfcca609813b53', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("input", { key: '6e8de94c5ee53c96f6eb7a0cf74540c32bf7b9cb', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value }), h(Fragment, null, this.showValidation && (h("svg", { key: 'ba7a9608851569d7379885584dd44767f8a9ef7a', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", class: "tick" }, h("path", { key: 'f95e9d27de8c2206cbc1a6db9c6ccd620efc0d6a', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: '023c9f954303eea6afe517b3aaf7291ea422a702', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))))),
297
+ return (h("div", { key: '7809435ef27bd511eace564e2b450708e5a270d6', class: `input_container` }, h("div", { key: 'ed7c2438817636c7f5128037deb7d11df46718c8', class: `input_with_label` }, this.showLabel && h("p", { key: '3261cb08a42726430e5dc98d980bce4eff270276', class: "label text-sm-medium" }, this.label.charAt(0).toUpperCase() + this.label.slice(1).toLowerCase()), this.type === 'default' && [
298
+ h("div", { key: '71120fc763cfdb882b9037038bebc71cf173ddc8', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("input", { key: '3136b5613230acd0baf6bf935d068e092a1a454e', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value }), h(Fragment, null, this.showValidation && (h("svg", { key: 'd236bad8410a30da29a6ab6da65c677a623989e5', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", class: "tick" }, h("path", { key: '3babda9245f8af15b42d0ead67fc63a1c237c374', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: '097838deecb0a0bf2281ab4a10e50d31d4f22c02', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))))),
304
299
  ], this.type === 'icon_leading' && [
305
- h("div", { key: 'e26d74af15787146ca7e14dc6b8e37fe584632f6', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: 'c7a2d390c467cfdc6298bea2754cacffa6dcf77c', class: `icon ${this.size} ${this.state}`, innerHTML: this.leadingIconSvg }), h("input", { key: '565283eab31cc52b31cac1c6bd8740f5627cb58a', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value, ref: el => (this.inputRef = el) }), h(Fragment, null, this.showValidation && !this.destructive && (h("svg", { key: 'bc55d62d31f069cc2d5163c07873645b4d641fcc', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", class: "tick" }, h("path", { key: 'a6d8283130d9811f28b88360215ee27b53f9f6ea', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: 'ec2c20b19952b27a578295d16433b0d129b534fe', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))), this.showCloseButton && !this.destructive && (h("gb-button", { key: '454f6e62a0bb93308c269ef1a9099d997eaaa040', size: this.size, hierarchy: "tertiary_gray", icon: "only", state: "default", "icon-leading": true, "icon-leading-swap": "assets/cancel-01.svg", onClick: () => this.clearInput(), class: `input_close_button ${this.size}` })))),
300
+ h("div", { key: '5d5d0fa4ffed69a8c5b34085f42c3efc9c825e12', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: 'aee58b36613a2e4ce348320b9bf314e05c2a08bc', class: `icon ${this.size} ${this.state}`, innerHTML: this.leadingIconSvg }), h("input", { key: '11caf01eff8e8864a615b39fd668eb3370e161ee', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value, ref: el => (this.inputRef = el) }), h(Fragment, null, this.showValidation && !this.destructive && (h("svg", { key: '24236ea61a6f9c51b75413d71959ce1bfc956743', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", class: "tick" }, h("path", { key: '6a4f56b494c8efc8c90f65032da6afbc474e2d4f', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: '5ab8fe72cae3bb21b8a708a589ee5931eb75c2e3', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))), this.showCloseButton && !this.destructive && (h("gb-button", { key: 'd1ed2b7703c0621d784e246886af20e0d46c57b8', size: this.size, hierarchy: "tertiary_gray", icon: "only", state: "default", "icon-leading": true, "icon-leading-swap": "assets/cancel-01.svg", onClick: () => this.clearInput(), class: `input_close_button ${this.size}` })))),
306
301
  ], this.type === 'leading_dropdown' && [
307
- h("div", { key: '5e09967d6b940f3fc51396b50fe832dec5e5306a', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '4efb51928af93c7ccec3ab8d69b22693ec76c6b5', class: `leading_dropdown_dropdown`, onClick: () => (this.showDropdown = !this.showDropdown) }, this.showCountryIcon && (h("div", { key: 'dcb34091b5a44f701c0dfe05c8da1186fd73d32f', class: `country_icon` }, h("img", { key: '74e6feef49ab2be6e9b0ced59b6e5c18f7ef2086', src: "build/assets/NG.svg", alt: "" }))), h("div", { key: '809e2a02b54470261026b151eba892dbfb4829ff', class: `dropdown_text` }, h("p", { key: '3caf513756c3f246dbaa387c8c60c693a5dc9f63', class: "text-md-regular", style: { color: 'var(--color-text, #4B5565)' } }, this.selectedItem)), h("div", { key: '1c5c528c2967d71a21a00742ba6918099f60cf61', class: `dropdown_arrow` }, h("svg", { key: '815840cdedb16098f7b5f49056efd5b494b4cd15', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '9fe56a4b0d724b84eaf87f37a158eed45271d59a', d: "M15 7.50004C15 7.50004 11.3176 12.5 9.99996 12.5C8.68237 12.5 5 7.5 5 7.5", stroke: "#4B5565", "stroke-width": "1.66667", "stroke-linecap": "round", "stroke-linejoin": "round" })))), h("div", { key: '0da2f852ed77beb31faa47cbe59bc385a00fdd3e', class: `leading_dropdown_text_input` }, h("input", { key: 'b9789b0348ca6728056c7594f3e7a75f49ec490d', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value }), this.showValidation && !this.destructive && (h("svg", { key: 'c31a5c6748f1130b8d2cdb690c4fe661e396d3f0', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'e62dd5c3bc7c94f9db93d48c7762c4cf020cbc53', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: '6dcb4e165a789d8430875fa85dbe6b008960adaf', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))))),
308
- h(Fragment, null, this.showDropdown && (h("div", { key: '2019a27d5109a65f94af2a51f878a7b7b9fc1b33', class: `dropdown_menu ${this.type} ${this.size} ${this.menuPosition}`, ref: el => (this.dropdownRef = el) }, this.options.map(option => (h("gb-input-dropdown-menu-item", { type: "default", state: StateEnum.Default, selected: this.isItemSelected(option), onClick: () => this.handleItemSelect(option) }, h("p", { slot: "name" }, option))))))),
302
+ h("div", { key: 'fa16a676711f1dfdc612372ba9d15a81474c7853', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '6f883cd19b7f74887a88d4116b51663ccec10536', class: `leading_dropdown_dropdown`, onClick: () => (this.showDropdown = !this.showDropdown) }, this.showCountryIcon && (h("div", { key: '8a3e2f6d99be404d472144558d471b938fc7ef89', class: `country_icon` }, h("img", { key: '0955ad9f7319d78146ff1a969e6ccafd75a20675', src: "build/assets/NG.svg", alt: "" }))), h("div", { key: '62a90e16aec6e4ffd0cbcb3cf9fea6bfafc2b001', class: `dropdown_text` }, h("p", { key: '896b8dab5d23d1d8878edca47e3bd572a12692b7', class: "text-md-regular", style: { color: 'var(--color-text, #4B5565)' } }, this.selectedItem)), h("div", { key: 'c688a4d664b6c006a6eee2baa0ef1321cfdbd00f', class: `dropdown_arrow` }, h("svg", { key: 'e4755d0325c414f7bf2cfd72b4ec67b68d0c658c', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '01dbae5c22b01e87d0e46e727410e67d7487b800', d: "M15 7.50004C15 7.50004 11.3176 12.5 9.99996 12.5C8.68237 12.5 5 7.5 5 7.5", stroke: "#4B5565", "stroke-width": "1.66667", "stroke-linecap": "round", "stroke-linejoin": "round" })))), h("div", { key: 'a1638d1000b8daa1d1ee7b63fc06215d69229d1c', class: `leading_dropdown_text_input` }, h("input", { key: '8849b8da00c6bde7b61e613233662b8d0b082f66', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value }), this.showValidation && !this.destructive && (h("svg", { key: '339438e6c10481df10b811c40fc0117755e8bec1', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'e0706b8d4bc7c978ce5fe0a3727ec7657157562d', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: 'b0fdcd4eb21a5f80dd06b595c70786b67641861a', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))))),
303
+ h(Fragment, null, this.showDropdown && (h("div", { key: '0c63e820d993220dd8de22d3bbbccea1a49a2803', class: `dropdown_menu ${this.type} ${this.size} ${this.menuPosition}`, ref: el => (this.dropdownRef = el) }, this.options.map(option => (h("gb-input-dropdown-menu-item", { type: "default", state: StateEnum.Default, selected: this.isItemSelected(option), onClick: () => this.handleItemSelect(option) }, h("p", { slot: "name" }, option))))))),
309
304
  ], this.type === 'trailing_dropdown' && [
310
- h("div", { key: '2b8e9a553ada38f42446a667e928883869aa20aa', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '65977fca0b83bdfefcd79bae1272548c7acdf01e', class: `trailing_dropdown_content` }, h("p", { key: '0eb7dfd0024b22c0c5089cbb4a73def0ee62ca3c', class: "text-md-regular", style: { color: 'var(--color-text, #4B5565)' } }, "$"), h("input", { key: '879e2464c11cb580dfa71a5e4f165fb58ea11f87', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value }), this.showHelpIcon && (h("div", { key: '32e86b002a254bd090ef1d09ed28958ef8c907ad', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h("div", { key: '01e58ff919cc94751dda442423a9218aafae3747', class: `trailing_dropdown_dropdown`, onClick: () => (this.showDropdown = !this.showDropdown) }, h("div", { key: '11b8375a583fe982cd4e61b2c18808ceeb8dd8b3', class: `dropdown_text` }, h("p", { key: '0a788b941bb8de9a83b272c6b10719869bbcc034', class: "text-md-regular", style: { color: 'var(--color-text, #4B5565)' } }, this.selectedItem)), h("div", { key: '0548896780e3353e2d24e51a107a7277d350980c', class: `dropdown_arrow` }, h("svg", { key: '52a8810736c2be7363100dfe60ba7f2956c92909', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'dd8be7a690314892213fe82c51cfc35db4826865', d: "M15 7.50004C15 7.50004 11.3176 12.5 9.99996 12.5C8.68237 12.5 5 7.5 5 7.5", stroke: "#4B5565", "stroke-width": "1.66667", "stroke-linecap": "round", "stroke-linejoin": "round" }))))),
311
- h(Fragment, null, this.showDropdown && (h("div", { key: '3485837cd94be2bcc91bcb9b6bcf162ca0b3fdcb', class: `dropdown_menu ${this.type} ${this.size} ${this.menuPosition}`, ref: el => (this.dropdownRef = el) }, this.options.map(option => (h("gb-input-dropdown-menu-item", { type: "default", state: StateEnum.Default, selected: this.isItemSelected(option), onClick: () => this.handleItemSelect(option) }, h("p", { slot: "name" }, option))))))),
305
+ h("div", { key: '1778132fcd6de2749923bb7312a54c409a3bbd58', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: 'bb1fe2fb5c4b3dda403bd5e3e8319a8aa8b99bfe', class: `trailing_dropdown_content` }, h("p", { key: '7a0e7dede4f62e8f3876f482730fc4ae7196050a', class: "text-md-regular", style: { color: 'var(--color-text, #4B5565)' } }, "$"), h("input", { key: '6ee7c0d22a81a22586d22c05f16c2e8ec339925b', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value }), this.showHelpIcon && (h("div", { key: '2b42c6e94e27717b50de6db0c0f2be36d697eea4', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h("div", { key: '3b09967be92a8d9d0f7d11e556026d17225a7dd0', class: `trailing_dropdown_dropdown`, onClick: () => (this.showDropdown = !this.showDropdown) }, h("div", { key: 'b17977c17179330e6771abe2b611f9f6f741f981', class: `dropdown_text` }, h("p", { key: 'c41fcc9a72432c1c5fb6a5bd6a76a0c9345d68f0', class: "text-md-regular", style: { color: 'var(--color-text, #4B5565)' } }, this.selectedItem)), h("div", { key: '149f8de4f4ba993d03c307fd80b62f1c26c51460', class: `dropdown_arrow` }, h("svg", { key: '4f170ea61d1be1a4d86448cc0aff5632f474c588', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '059eb7176c9546ddc626d88388760bf3b9637d65', d: "M15 7.50004C15 7.50004 11.3176 12.5 9.99996 12.5C8.68237 12.5 5 7.5 5 7.5", stroke: "#4B5565", "stroke-width": "1.66667", "stroke-linecap": "round", "stroke-linejoin": "round" }))))),
306
+ h(Fragment, null, this.showDropdown && (h("div", { key: 'fab2e8e19e916ea7b5a79c47137052dda3eb5cb5', class: `dropdown_menu ${this.type} ${this.size} ${this.menuPosition}`, ref: el => (this.dropdownRef = el) }, this.options.map(option => (h("gb-input-dropdown-menu-item", { type: "default", state: StateEnum.Default, selected: this.isItemSelected(option), onClick: () => this.handleItemSelect(option) }, h("p", { slot: "name" }, option))))))),
312
307
  ], this.type === 'leading_text' && [
313
- h("div", { key: 'f57fc338aabf7293ce9a05f74786abf09b33002e', class: "leading_text_input" }, h("div", { key: '14d3df8157029268c0f9ba0429ddc4352f7c34c9', class: `add_on` }, h("slot", { key: '23586c59d5c95a1e017408e54090904a215c769d', name: "text" })), h("div", { key: '9d565bf84c28d0588ec6afb56499eb23e8b0a7a3', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("input", { key: '4021f630cc3beecb8c0c6f5dcf5b43437caa8d2b', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value }), this.showValidation && !this.destructive && (h("svg", { key: '75389e6646337b5fa9ad74473b41d81353999f8e', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '32a4702fc3bc0853a3b9085dbe8b80440d700abc', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: 'bc41cb2a6970a2f9d7329599cc7325e1fd44b370', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))))),
314
- ], this.type === 'payment_input' && (h("div", { key: '237fc2ab8c5b653629ad73dc3473910e8e734c56', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("svg", { key: 'e1a1f1f86d4136c997fca7266d39749512a9f5a0', xmlns: "http://www.w3.org/2000/svg", width: "23", height: "14", viewBox: "0 0 23 14", fill: "none" }, h("path", { key: 'b12080a13960a3bd543cfecf9de8447b021a8e68', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.179 11.8294C9.99493 12.8275 8.45902 13.43 6.78069 13.43C3.03582 13.43 0 10.4303 0 6.72997C0 3.02966 3.03582 0.0299683 6.78069 0.0299683C8.45902 0.0299683 9.99493 0.632466 11.179 1.63051C12.363 0.632466 13.8989 0.0299683 15.5773 0.0299683C19.3221 0.0299683 22.358 3.02966 22.358 6.72997C22.358 10.4303 19.3221 13.43 15.5773 13.43C13.8989 13.43 12.363 12.8275 11.179 11.8294Z", fill: "#ED0006" }), h("path", { key: 'f447a0dadc402d955a90c2e1c6ac04879ebc479f', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.179 11.8294C12.6369 10.6005 13.5614 8.77192 13.5614 6.72997C13.5614 4.68801 12.6369 2.85941 11.179 1.63051C12.363 0.632465 13.8989 0.0299683 15.5772 0.0299683C19.3221 0.0299683 22.3579 3.02966 22.3579 6.72997C22.3579 10.4303 19.3221 13.43 15.5772 13.43C13.8989 13.43 12.363 12.8275 11.179 11.8294Z", fill: "#F9A000" }), h("path", { key: 'e9fc696a4e5546bfd40a3e0c464703e7691a9854', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.179 11.8294C12.6369 10.6005 13.5614 8.77193 13.5614 6.72999C13.5614 4.68805 12.6369 2.85946 11.179 1.63055C9.72109 2.85946 8.79663 4.68805 8.79663 6.72999C8.79663 8.77193 9.72109 10.6005 11.179 11.8294Z", fill: "#FF5E00" })), h("input", { key: '929654985106cd630730d4847ec441689f8145e0', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value }), h(Fragment, null, this.showValidation && !this.destructive && (h("svg", { key: '5f84eecdd7de6128b6c488ca37515c55612ccd2c', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'cbed4257f7f37fbfaa1cee1980a57ba088350409', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: '17dc7bef0c24206023a49a9842e9e083687c3e46', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))))), this.type === 'trailing_button' && (h("div", { key: '565f76a55e7b359772ff556206502b65acfc34c6', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '7abbd2b7eb2d7d70c14aaa08fd5d316685112530', class: `trailing_button_text_input ${this.size}` }, h("input", { key: 'b9b0f67f0467f990d6bf3a207ac646ecf3c60f9f', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), ref: el => (this.inputRef = el), value: this.value }), this.showValidation && !this.destructive && (h("svg", { key: 'b7fe4e9011f642ca88d3b5aca04fe994f21d505f', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '57fb939ac3c47d32ff7ffb15714f8e4cea1befe9', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: 'd52b24c2c6d5015a42a334985a7a983fb7d7f8c9', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h("gb-button", { key: '9fe0a27c158ecf4ba70a263cc849246104bc77b7', size: "lg", hierarchy: "tertiary_gray", icon: "only", state: this.state === 'disabled' ? 'disabled' : 'default', "icon-leading": true, "icon-leading-swap": "assets/copy-01.svg", onClick: () => this.copyToClipboard() }))), this.type === 'password' && (h("div", { key: '77cedef354b16fa87589b1d684b5916646d8f71b', class: `password_input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: 'ed336339ba04a29bde08035da430263fdc22285a', class: `password_content` }, h("input", { key: '550a6befe49acd3e2869745745bf0af9fc95951e', class: `content text-md-regular ${this.type} ${this.state}`, type: this.isPasswordVisible ? 'text' : 'password', placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showValidation && !this.destructive && (h("svg", { key: '749937a3ea53fd36031f33090aea0ad3dfba717f', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '2a729f5ca74e95d95e1bd31a93b807ce48636317', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: '4b031c8769c6863140ef7e929dbee4b247bb1154', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h("div", { key: 'cb70d37c605ac0e00918d33e83edfec30d0994f4', class: `dropdown` }, h("gb-password-button", { key: '5578b67b3b231312ce3e215318512bd10ea9b8f8', onClick: () => this.togglePasswordVisibility() })))), this.type === 'password_icon_leading' && (h("div", { key: '6709411d4c61b75ad11d355b4d44a00a659efd1f', class: `password_icon_leading_input input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '33dd50fdb89da4613d380d04da42ba0a88faba81', class: `password_icon_leading_content` }, h("svg", { key: '8e57654448ca8b04a1abc905896dfdc3e9f9abf2', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'b13958cd19a87d9185b8db5c984fe648e1c818f2', d: "M12.0759 12.1667C11.6617 12.1667 11.3259 12.5025 11.3259 12.9167C11.3259 13.3309 11.6617 13.6667 12.0759 13.6667V12.1667ZM12.0833 13.6667C12.4976 13.6667 12.8333 13.3309 12.8333 12.9167C12.8333 12.5025 12.4976 12.1667 12.0833 12.1667V13.6667ZM7.91668 12.1667C7.50246 12.1667 7.16668 12.5025 7.16668 12.9167C7.16668 13.3309 7.50246 13.6667 7.91668 13.6667V12.1667ZM7.92415 13.6667C8.33836 13.6667 8.67415 13.3309 8.67415 12.9167C8.67415 12.5025 8.33836 12.1667 7.92415 12.1667V13.6667ZM16.4435 10.1294L17.1868 10.0293L16.4435 10.1294ZM13.7003 7.58258L13.7347 6.83337L13.7003 7.58258ZM13.7003 18.2508L13.7347 19L13.7003 18.2508ZM16.4435 15.704L15.7002 15.6039L16.4435 15.704ZM6.29973 7.58258L6.33417 8.33179L6.29973 7.58258ZM3.55652 10.1294L2.81323 10.0293L3.55652 10.1294ZM6.29973 18.2508L6.33417 17.5015L6.29973 18.2508ZM3.55652 15.704L4.29981 15.6039L3.55652 15.704ZM5.50001 7.5C5.50001 7.91422 5.8358 8.25 6.25001 8.25C6.66422 8.25 7.00001 7.91422 7.00001 7.5H5.50001ZM13 7.5C13 7.91422 13.3358 8.25 13.75 8.25C14.1642 8.25 14.5 7.91422 14.5 7.5H13ZM12.0759 13.6667H12.0833V12.1667H12.0759V13.6667ZM7.91668 13.6667H7.92415V12.1667H7.91668V13.6667ZM10 17.5833C8.69057 17.5833 7.50287 17.5553 6.33417 17.5015L6.26528 19C7.45761 19.0548 8.66829 19.0833 10 19.0833V17.5833ZM13.6659 17.5015C12.4972 17.5553 11.3094 17.5833 10 17.5833V19.0833C11.3317 19.0833 12.5424 19.0548 13.7347 19L13.6659 17.5015ZM17.1868 15.804C17.3105 14.8853 17.4167 13.9152 17.4167 12.9167H15.9167C15.9167 13.8142 15.8211 14.7058 15.7002 15.6039L17.1868 15.804ZM17.4167 12.9167C17.4167 11.9181 17.3105 10.948 17.1868 10.0293L15.7002 10.2295C15.8211 11.1275 15.9167 12.0192 15.9167 12.9167H17.4167ZM10 8.25C11.3095 8.25 12.4972 8.27806 13.6659 8.33179L13.7347 6.83337C12.5424 6.77856 11.3317 6.75 10 6.75V8.25ZM6.33417 8.33179C7.50287 8.27806 8.69057 8.25 10 8.25V6.75C8.66829 6.75 7.45761 6.77856 6.26528 6.83337L6.33417 8.33179ZM2.81323 10.0293C2.68953 10.948 2.58334 11.9181 2.58334 12.9167H4.08334C4.08334 12.0192 4.1789 11.1275 4.29981 10.2295L2.81323 10.0293ZM2.58334 12.9167C2.58334 13.9152 2.68953 14.8853 2.81323 15.804L4.29981 15.6039C4.1789 14.7058 4.08334 13.8142 4.08334 12.9167H2.58334ZM17.1868 10.0293C16.9527 8.29067 15.5122 6.91509 13.7347 6.83337L13.6659 8.33179C14.6943 8.37907 15.5595 9.18437 15.7002 10.2295L17.1868 10.0293ZM13.7347 19C15.5122 18.9183 16.9527 17.5427 17.1868 15.804L15.7002 15.6039C15.5595 16.649 14.6943 17.4543 13.6659 17.5015L13.7347 19ZM6.26528 6.83337C4.48781 6.91508 3.04732 8.29067 2.81323 10.0293L4.29981 10.2295C4.44052 9.18437 5.30576 8.37907 6.33417 8.33179L6.26528 6.83337ZM6.33417 17.5015C5.30576 17.4543 4.44052 16.649 4.29981 15.6039L2.81323 15.804C3.04732 17.5427 4.48782 18.9183 6.26528 19L6.33417 17.5015ZM7.00001 7.5V5.41667H5.50001V7.5H7.00001ZM13 5.41667V7.5H14.5V5.41667H13ZM10 2.41667C11.6569 2.41667 13 3.75981 13 5.41667H14.5C14.5 2.93139 12.4853 0.916668 10 0.916668V2.41667ZM7.00001 5.41667C7.00001 3.75981 8.34316 2.41667 10 2.41667V0.916668C7.51473 0.916668 5.50001 2.93139 5.50001 5.41667H7.00001Z", fill: "#4B5565" })), h("input", { key: 'b79a39d90caf9b82c7f4b1013b21f319d3dfd190', class: `content text-md-regular ${this.type} ${this.state}`, type: this.isPasswordVisible ? 'text' : 'password', placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) })), this.showValidation && !this.destructive && (h("svg", { key: '68f2d23ead5a0ad27105bf175612f2309ccee5d8', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '83dd494bd08cffd58c574feb1fd24a6bec1e381c', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: '170e23b7e229ae91fecf4bf3e15a67e5a714bfdf', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))), h("gb-password-button", { key: '9f05421cb65b7cad8b5c5057d9267d488e51ecc9', onClick: () => this.togglePasswordVisibility() }))), this.type === 'count' && [
315
- h("div", { key: '1d98d0a9a24111fe2dbe8cc695616fdd2914a464', class: `count_input` }, h("div", { key: '7e3b5692508108cef0816c29a9be119df1685bc1', class: `count_text_input ${this.destructive ? 'destructive' : ''} ${this.state}` }, h("input", { key: 'f8fd1d333f414a229de3a729e31707410e13cb9a', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value }), this.showHelpIcon && (h("div", { key: '764bbe011711437d1a5f574768a8520f34cc110d', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h("div", { key: 'c1f858308d1a339c0550517b223011f05915a471', class: `action ${this.state}` }, h("gb-button", { key: '094bfb498b338028d69e44f62b8c5b581e1a624f', size: "xl", state: this.state === 'disabled' ? 'disabled' : 'default', hierarchy: "tertiary_gray", icon: "only", "icon-leading": "true", "icon-leading-swap": "assets/minus_sign.svg" }), h("div", { key: '8c1d107020365171f020945f3f9e4a6111a05407', class: "vertical_line" }), h("gb-button", { key: '644a00b7dccf412bd77a3bdb3692814d1b3bcb2d', size: "xl", state: this.state === 'disabled' ? 'disabled' : 'default', hierarchy: "tertiary_gray", icon: "only", "icon-leading": "true", "icon-leading-swap": "assets/plus_sign.svg" }))),
316
- ], this.type === 'tags' && (h("div", { key: '8dc8a228af712fb47438a6346c24928fd9e269f4', class: `input_group ${this.state}`, ref: el => (this.inputGroupElement = el), onClick: () => this.handleWrapperClick() }, h("div", { key: '13f6c88d6721867787c2d81d1be1de594c7a5dda', class: `input_like_parent ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}`, onClick: () => (this.dropdownOpen = !this.dropdownOpen) }, h("div", { key: 'cd04dd7b20be55050ee91fcc93677a562735cc62', class: `results_display ${this.state === 'disabled' ? 'disabled' : ''}`, ref: el => (this.resultsDisplayElement = el) }, this.value.length === 0 ? (h(Fragment, null, this.selectedItems.map((item, index) => (h(Fragment, null, typeof item === 'object' ? (h("gb-tag", { size: "sm", action: "X_close", icon: this.icon ? this.icon : 'avatar', onClick: () => this.handleTagRemove(index) }, h("h1", { class: "text-xxs-semi-bold", slot: "initials" }, item.objectName.split(' ').map(part => part.charAt(0).toUpperCase())), h("p", null, item.objectName.split(' ')[0]))) : (h("gb-tag", { size: "sm", action: "X_close", icon: this.icon ? this.icon : 'avatar', onClick: () => this.handleTagRemove(index) }, h("p", null, item)))))))) : (h(Fragment, null, this.value.map((val, index) => (h(Fragment, null, typeof val === 'object' ? (h("gb-tag", { size: "sm", action: "X_close", icon: this.icon ? this.icon : 'avatar', onClick: () => this.handleTagRemove(index) }, h("h1", { class: "text-xxs-semi-bold", slot: "initials" }, val.objectName.split(' ').map(part => part.charAt(0).toUpperCase())), h("p", null, val.objectName.split(' ')[0]))) : (h("gb-tag", { size: "sm", action: "X_close", icon: this.icon ? this.icon : 'avatar', onClick: () => this.handleTagRemove(index) }, h("p", null, val)))))))), h("span", { key: 'effbcb5c208094cf108ee18434a7d80976cc3587', class: "hidden-span", ref: el => (this.hiddenSpan = el) }, this.inputValue || ' '), h("div", { key: 'f1957a658b2ec1d9a6790836c36f74633493efd3', class: "input_field" }, h("input", { key: '647db8bfb1666d114dfd6a449db3789c86591166', id: this.idOfInput, class: `input_like text-md-regular ${this.state}`, type: "text",
308
+ h("div", { key: '0e174d2dd1e8d2cbb92ad7db6a4bfb1eb6b8b248', class: "leading_text_input" }, h("div", { key: 'df7840a750ae6c7c54d205a8bc37243f7def9904', class: `add_on` }, h("slot", { key: '9e8b8fbd9b522b7d3975148f2173b321512c0dd6', name: "text" })), h("div", { key: '5ccbd5720eb31e3e0d0fdc9f6bc9d1386ace6d06', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("input", { key: '6d15c1fe186a2e4f05fd3bb11931bb237ffb9efb', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value }), this.showValidation && !this.destructive && (h("svg", { key: '54be01fb1b0e31ed1e5cdc27976062d167ffa6b8', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '043f829e3899b796aa5931226a003ba190e88484', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: '95aec5f82627c72325581424b3ddbbfb79935724', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))))),
309
+ ], this.type === 'payment_input' && (h("div", { key: '5fd7586c23f97fb75e8f14913bec1f918b7778c4', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("svg", { key: 'a2f660a471d9757f13ecb8efa89967dbf235d682', xmlns: "http://www.w3.org/2000/svg", width: "23", height: "14", viewBox: "0 0 23 14", fill: "none" }, h("path", { key: '4c407bfb9041aded54511233ac281111349db995', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.179 11.8294C9.99493 12.8275 8.45902 13.43 6.78069 13.43C3.03582 13.43 0 10.4303 0 6.72997C0 3.02966 3.03582 0.0299683 6.78069 0.0299683C8.45902 0.0299683 9.99493 0.632466 11.179 1.63051C12.363 0.632466 13.8989 0.0299683 15.5773 0.0299683C19.3221 0.0299683 22.358 3.02966 22.358 6.72997C22.358 10.4303 19.3221 13.43 15.5773 13.43C13.8989 13.43 12.363 12.8275 11.179 11.8294Z", fill: "#ED0006" }), h("path", { key: '2382a189aee0f5c1219b356bfc7202d7bd2d2d72', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.179 11.8294C12.6369 10.6005 13.5614 8.77192 13.5614 6.72997C13.5614 4.68801 12.6369 2.85941 11.179 1.63051C12.363 0.632465 13.8989 0.0299683 15.5772 0.0299683C19.3221 0.0299683 22.3579 3.02966 22.3579 6.72997C22.3579 10.4303 19.3221 13.43 15.5772 13.43C13.8989 13.43 12.363 12.8275 11.179 11.8294Z", fill: "#F9A000" }), h("path", { key: 'b419b99216a176516bc496e6e0c2abe7c6176989', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.179 11.8294C12.6369 10.6005 13.5614 8.77193 13.5614 6.72999C13.5614 4.68805 12.6369 2.85946 11.179 1.63055C9.72109 2.85946 8.79663 4.68805 8.79663 6.72999C8.79663 8.77193 9.72109 10.6005 11.179 11.8294Z", fill: "#FF5E00" })), h("input", { key: 'f471f1aaad623fa8fb0a1dba988cea98a1ac2f07', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value }), h(Fragment, null, this.showValidation && !this.destructive && (h("svg", { key: '8820a75a18971ecdc4dcfd6d7605f702df6cc357', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '7757f6595f58b63d57341146f7dc18efdf8e3b57', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: 'e7e80be019baae47077a7142869f4d13a4221cee', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))))), this.type === 'trailing_button' && (h("div", { key: '690ad82de399002327139eb58d346f8df6d7858d', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '0bfed6ffbc83f050fbc109662fa76ff7ff216b10', class: `trailing_button_text_input ${this.size}` }, h("input", { key: '9cf8509a95018ebe77f6ba3d3a7b47c5e8d58203', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), ref: el => (this.inputRef = el), value: this.value }), this.showValidation && !this.destructive && (h("svg", { key: 'bef935135668aefd95926f342fef1634cc3fd0b3', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '3a5da934e65d751e1fd027422b382747ec3c92c2', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: '769db33f3597099d61ed4ce34ead9ef5294b6b10', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h("gb-button", { key: '7bd11da4f7822e170140bb62ece1bc5e0444f723', size: "lg", hierarchy: "tertiary_gray", icon: "only", state: this.state === 'disabled' ? 'disabled' : 'default', "icon-leading": true, "icon-leading-swap": "assets/copy-01.svg", onClick: () => this.copyToClipboard() }))), this.type === 'password' && (h("div", { key: 'ac695b41e5b2049f941f66f1edb92d58565041a1', class: `password_input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: 'd9c65716d0de5ec0beda6731f199e3a32cd7ab2b', class: `password_content` }, h("input", { key: '2e56df32a9841a4dc9d39ff4476aec90c677a40e', class: `content text-md-regular ${this.type} ${this.state}`, type: this.isPasswordVisible ? 'text' : 'password', placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showValidation && !this.destructive && (h("svg", { key: '1c25e2079d09fda9723433596eb096662f8405d8', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'c0220744e00644bef867cdfc92848d934cd1fbb8', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: '2c2b8d48900c0042d4194754bf1b76d486fd6a35', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h("div", { key: 'd39ec03c2fcc0f9d2b30e1a219a15661bdf1d78f', class: `dropdown` }, h("gb-password-button", { key: '0a8534bf0b3e7c243b5277aeb1ff1e46a74b8c92', onClick: () => this.togglePasswordVisibility() })))), this.type === 'password_icon_leading' && (h("div", { key: '494b81b655a7bb7013db0add5473f6746f6684de', class: `password_icon_leading_input input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: 'eea76ecad338d6332bf6fe83bc434822017486d8', class: `password_icon_leading_content` }, h("svg", { key: '637f75ed574c1b5a52ad6c6ad810791b0cda5f6b', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'fcd53924bf15362b4e313c4e49b8f9167b18aaac', d: "M12.0759 12.1667C11.6617 12.1667 11.3259 12.5025 11.3259 12.9167C11.3259 13.3309 11.6617 13.6667 12.0759 13.6667V12.1667ZM12.0833 13.6667C12.4976 13.6667 12.8333 13.3309 12.8333 12.9167C12.8333 12.5025 12.4976 12.1667 12.0833 12.1667V13.6667ZM7.91668 12.1667C7.50246 12.1667 7.16668 12.5025 7.16668 12.9167C7.16668 13.3309 7.50246 13.6667 7.91668 13.6667V12.1667ZM7.92415 13.6667C8.33836 13.6667 8.67415 13.3309 8.67415 12.9167C8.67415 12.5025 8.33836 12.1667 7.92415 12.1667V13.6667ZM16.4435 10.1294L17.1868 10.0293L16.4435 10.1294ZM13.7003 7.58258L13.7347 6.83337L13.7003 7.58258ZM13.7003 18.2508L13.7347 19L13.7003 18.2508ZM16.4435 15.704L15.7002 15.6039L16.4435 15.704ZM6.29973 7.58258L6.33417 8.33179L6.29973 7.58258ZM3.55652 10.1294L2.81323 10.0293L3.55652 10.1294ZM6.29973 18.2508L6.33417 17.5015L6.29973 18.2508ZM3.55652 15.704L4.29981 15.6039L3.55652 15.704ZM5.50001 7.5C5.50001 7.91422 5.8358 8.25 6.25001 8.25C6.66422 8.25 7.00001 7.91422 7.00001 7.5H5.50001ZM13 7.5C13 7.91422 13.3358 8.25 13.75 8.25C14.1642 8.25 14.5 7.91422 14.5 7.5H13ZM12.0759 13.6667H12.0833V12.1667H12.0759V13.6667ZM7.91668 13.6667H7.92415V12.1667H7.91668V13.6667ZM10 17.5833C8.69057 17.5833 7.50287 17.5553 6.33417 17.5015L6.26528 19C7.45761 19.0548 8.66829 19.0833 10 19.0833V17.5833ZM13.6659 17.5015C12.4972 17.5553 11.3094 17.5833 10 17.5833V19.0833C11.3317 19.0833 12.5424 19.0548 13.7347 19L13.6659 17.5015ZM17.1868 15.804C17.3105 14.8853 17.4167 13.9152 17.4167 12.9167H15.9167C15.9167 13.8142 15.8211 14.7058 15.7002 15.6039L17.1868 15.804ZM17.4167 12.9167C17.4167 11.9181 17.3105 10.948 17.1868 10.0293L15.7002 10.2295C15.8211 11.1275 15.9167 12.0192 15.9167 12.9167H17.4167ZM10 8.25C11.3095 8.25 12.4972 8.27806 13.6659 8.33179L13.7347 6.83337C12.5424 6.77856 11.3317 6.75 10 6.75V8.25ZM6.33417 8.33179C7.50287 8.27806 8.69057 8.25 10 8.25V6.75C8.66829 6.75 7.45761 6.77856 6.26528 6.83337L6.33417 8.33179ZM2.81323 10.0293C2.68953 10.948 2.58334 11.9181 2.58334 12.9167H4.08334C4.08334 12.0192 4.1789 11.1275 4.29981 10.2295L2.81323 10.0293ZM2.58334 12.9167C2.58334 13.9152 2.68953 14.8853 2.81323 15.804L4.29981 15.6039C4.1789 14.7058 4.08334 13.8142 4.08334 12.9167H2.58334ZM17.1868 10.0293C16.9527 8.29067 15.5122 6.91509 13.7347 6.83337L13.6659 8.33179C14.6943 8.37907 15.5595 9.18437 15.7002 10.2295L17.1868 10.0293ZM13.7347 19C15.5122 18.9183 16.9527 17.5427 17.1868 15.804L15.7002 15.6039C15.5595 16.649 14.6943 17.4543 13.6659 17.5015L13.7347 19ZM6.26528 6.83337C4.48781 6.91508 3.04732 8.29067 2.81323 10.0293L4.29981 10.2295C4.44052 9.18437 5.30576 8.37907 6.33417 8.33179L6.26528 6.83337ZM6.33417 17.5015C5.30576 17.4543 4.44052 16.649 4.29981 15.6039L2.81323 15.804C3.04732 17.5427 4.48782 18.9183 6.26528 19L6.33417 17.5015ZM7.00001 7.5V5.41667H5.50001V7.5H7.00001ZM13 5.41667V7.5H14.5V5.41667H13ZM10 2.41667C11.6569 2.41667 13 3.75981 13 5.41667H14.5C14.5 2.93139 12.4853 0.916668 10 0.916668V2.41667ZM7.00001 5.41667C7.00001 3.75981 8.34316 2.41667 10 2.41667V0.916668C7.51473 0.916668 5.50001 2.93139 5.50001 5.41667H7.00001Z", fill: "#4B5565" })), h("input", { key: '9e6f5dbcb7792db9246669eeabb8e33aa1d9768c', class: `content text-md-regular ${this.type} ${this.state}`, type: this.isPasswordVisible ? 'text' : 'password', placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) })), this.showValidation && !this.destructive && (h("svg", { key: '3f9643b4dda15d7f836c369e3d9cc8fae5961ce5', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '5832fdd364341da0e76f167dc29bd33d675642f6', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: '71b62a02b2cd101993dc1b4027aa28a553b183cc', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))), h("gb-password-button", { key: 'e4ce221860ee4777d93267a9e8b04f5fab25d17d', onClick: () => this.togglePasswordVisibility() }))), this.type === 'count' && [
310
+ h("div", { key: '7c70b301d89cadee2c6d8792e7660c95843a2647', class: `count_input` }, h("div", { key: '79a9a973517c998c514ef38b019b96a67d925b00', class: `count_text_input ${this.destructive ? 'destructive' : ''} ${this.state}` }, h("input", { key: 'e564b8c1e21ad4d16c40cb7589db23fbe9be279d', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), value: this.value }), this.showHelpIcon && (h("div", { key: '1a62d140b8cddc3a091081c306c948807153c7d1', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h("div", { key: '23ddd64d76cddbf5ecfcbc6a0362c5a6fff20e84', class: `action ${this.state}` }, h("gb-button", { key: 'ffe5f23a73bf3a2ec045bace239a442d726caeec', size: "xl", state: this.state === 'disabled' ? 'disabled' : 'default', hierarchy: "tertiary_gray", icon: "only", "icon-leading": "true", "icon-leading-swap": "assets/minus_sign.svg" }), h("div", { key: 'ad97f5cfb1e1b8544084b55ecee4ccdbcbaa01d1', class: "vertical_line" }), h("gb-button", { key: '9fa11cb274b7cbedc1a5631c7bc7a3d616fcb15f', size: "xl", state: this.state === 'disabled' ? 'disabled' : 'default', hierarchy: "tertiary_gray", icon: "only", "icon-leading": "true", "icon-leading-swap": "assets/plus_sign.svg" }))),
311
+ ], this.type === 'tags' && (h("div", { key: '0dc6c3dfef17ffc9b317a537c32b8481dd6090f9', class: `input_group ${this.state}`, ref: el => (this.inputGroupElement = el), onClick: () => this.handleWrapperClick() }, h("div", { key: 'a85997a0b5c79d427b1766c945cd6ccd7fe5589c', class: `input_like_parent ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}`, onClick: () => (this.dropdownOpen = !this.dropdownOpen) }, h("div", { key: '630f04e9a858eeda3874d35d39b6f6855a03a856', class: `results_display ${this.state === 'disabled' ? 'disabled' : ''}`, ref: el => (this.resultsDisplayElement = el) }, this.value.length === 0 ? (h(Fragment, null, this.selectedItems.map((item, index) => (h(Fragment, null, typeof item === 'object' ? (h("gb-tag", { size: "sm", action: "X_close", icon: this.icon ? this.icon : 'avatar', onClick: () => this.handleTagRemove(index) }, h("h1", { class: "text-xxs-semi-bold", slot: "initials" }, item.objectName.split(' ').map(part => part.charAt(0).toUpperCase())), h("p", null, item.objectName.split(' ')[0]))) : (h("gb-tag", { size: "sm", action: "X_close", icon: this.icon ? this.icon : 'avatar', onClick: () => this.handleTagRemove(index) }, h("p", null, item)))))))) : (h(Fragment, null, this.value.map((val, index) => (h(Fragment, null, typeof val === 'object' ? (h("gb-tag", { size: "sm", action: "X_close", icon: this.icon ? this.icon : 'avatar', onClick: () => this.handleTagRemove(index) }, h("h1", { class: "text-xxs-semi-bold", slot: "initials" }, val.objectName.split(' ').map(part => part.charAt(0).toUpperCase())), h("p", null, val.objectName.split(' ')[0]))) : (h("gb-tag", { size: "sm", action: "X_close", icon: this.icon ? this.icon : 'avatar', onClick: () => this.handleTagRemove(index) }, h("p", null, val)))))))), h("span", { key: '4870685cfb978bc1439ef7215e148f20e4274ab1', class: "hidden-span", ref: el => (this.hiddenSpan = el) }, this.inputValue || ' '), h("div", { key: '91e5f27cefe9c93f546aa346fcd6f70abf980041', class: "input_field" }, h("input", { key: '4deb57903a9484dfcfbdaea4d9f249c66c60eb17', id: this.idOfInput, class: `input_like text-md-regular ${this.state}`, type: "text",
317
312
  // placeholder={this.placeholder && this.selectedStaff.length === 0 ? this.placeholder : ''}
318
- value: this.inputValue, readOnly: this.isReadOnly, ref: el => (this.inputElement = el), onBlur: () => this.exportSelectedStaff(), onInput: event => this.handleTagInput(event) })))), this.showDropdown && (h("div", { key: 'ea1097658e33c09f96b1ac3c736f578e22de5f53', class: `tags_dropdown_menu ${this.show ? 'show' : ''} ${this.menuPosition}` }, this.results.map(item => (h("gb-input-dropdown-menu-item", { type: "checkbox", "supporting-text": true, state: StateEnum.Default, onClick: () => this.selectDropdownItem(item), selected: this.isTagItemSelected(item) }, typeof item === 'object'
313
+ value: this.inputValue, readOnly: this.isReadOnly, ref: el => (this.inputElement = el), onBlur: () => this.exportSelectedStaff(), onInput: event => this.handleTagInput(event) })))), this.showDropdown && (h("div", { key: '4477804c2260254ffa03be4b7a5d7929773f1748', class: `tags_dropdown_menu ${this.show ? 'show' : ''} ${this.menuPosition}` }, this.results.map(item => (h("gb-input-dropdown-menu-item", { type: "checkbox", "supporting-text": true, state: StateEnum.Default, onClick: () => this.selectDropdownItem(item), selected: this.isTagItemSelected(item) }, typeof item === 'object'
319
314
  ? [h("p", { slot: "name" }, item.objectName), h("p", { slot: "supporting_text" }, item.objectValue)]
320
315
  : typeof item !== 'object' && h("p", { slot: "name" }, item))))))))), this.showHintText && h(Fragment, null, !this.destructive ? h("p", { class: "hint_text text-sm-regular" }, this.hintText) : h("p", { class: "error_text text-sm-regular" }, this.errorText))));
321
316
  }
322
317
  get el() { return this; }
323
318
  static get watchers() { return {
324
- "options": ["optionsChanged"]
319
+ "options": ["optionsChanged"],
320
+ "value": ["updateSelectedItems"]
325
321
  }; }
326
322
  static get style() { return GbInputFieldStyle0; }
327
323
  }, [1, "gb-input-field", {
@@ -363,7 +359,8 @@ const GbInputField = /*@__PURE__*/ proxyCustomElement(class GbInputField extends
363
359
  "show": [32],
364
360
  "showSpinner": [32]
365
361
  }, [[4, "click", "handleClickOutside"]], {
366
- "options": ["optionsChanged"]
362
+ "options": ["optionsChanged"],
363
+ "value": ["updateSelectedItems"]
367
364
  }]);
368
365
  function defineCustomElement() {
369
366
  if (typeof customElements === "undefined") {
@@ -457,4 +454,4 @@ defineCustomElement();
457
454
 
458
455
  export { GbInputField as G, defineCustomElement as d };
459
456
 
460
- //# sourceMappingURL=p-f6515d55.js.map
457
+ //# sourceMappingURL=p-20d7ba96.js.map