@genexus/genexus-ide-ui 1.1.3 → 1.1.5

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 (850) hide show
  1. package/dist/cjs/MERCURY_ASSETS-972bf7f4.js +9 -0
  2. package/dist/cjs/MERCURY_ASSETS-972bf7f4.js.map +1 -0
  3. package/dist/cjs/code-render-0e9837c4.js +86 -0
  4. package/dist/cjs/code-render-0e9837c4.js.map +1 -0
  5. package/dist/cjs/{common-72f91a78.js → common-090e6d3a.js} +28 -12
  6. package/dist/cjs/common-090e6d3a.js.map +1 -0
  7. package/dist/cjs/{form-validation-178cf461.js → form-validation-ffe2b957.js} +7 -3
  8. package/dist/cjs/form-validation-ffe2b957.js.map +1 -0
  9. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  10. package/dist/cjs/gx-ide-about.cjs.entry.js +1 -1
  11. package/dist/cjs/gx-ide-ai-assistant.cjs.entry.js +10 -16
  12. package/dist/cjs/gx-ide-ai-assistant.cjs.entry.js.map +1 -1
  13. package/dist/cjs/gx-ide-ai-message.cjs.entry.js +4 -5
  14. package/dist/cjs/gx-ide-ai-message.cjs.entry.js.map +1 -1
  15. package/dist/cjs/gx-ide-bpm-app-declaration.cjs.entry.js +180 -168
  16. package/dist/cjs/gx-ide-bpm-app-declaration.cjs.entry.js.map +1 -1
  17. package/dist/cjs/gx-ide-bpm-assign-roles.cjs.entry.js +2 -2
  18. package/dist/cjs/gx-ide-bpm-assign-roles.cjs.entry.js.map +1 -1
  19. package/dist/cjs/gx-ide-bpm-export-xpdl.cjs.entry.js +4 -6
  20. package/dist/cjs/gx-ide-bpm-export-xpdl.cjs.entry.js.map +1 -1
  21. package/dist/cjs/gx-ide-bpm-import-files.cjs.entry.js +3 -4
  22. package/dist/cjs/gx-ide-bpm-import-files.cjs.entry.js.map +1 -1
  23. package/dist/cjs/gx-ide-bpm-import-gxpm.cjs.entry.js +2 -2
  24. package/dist/cjs/gx-ide-bpm-import-gxpm.cjs.entry.js.map +1 -1
  25. package/dist/cjs/gx-ide-bpm-objects-selector.cjs.entry.js +2 -2
  26. package/dist/cjs/gx-ide-bpm-objects-selector.cjs.entry.js.map +1 -1
  27. package/dist/cjs/gx-ide-bpm-sync-gam-roles.cjs.entry.js +2 -3
  28. package/dist/cjs/gx-ide-bpm-sync-gam-roles.cjs.entry.js.map +1 -1
  29. package/dist/cjs/gx-ide-bpm-task-documents.cjs.entry.js +13 -16
  30. package/dist/cjs/gx-ide-bpm-task-documents.cjs.entry.js.map +1 -1
  31. package/dist/cjs/gx-ide-bpm-timer-duration.cjs.entry.js +3 -4
  32. package/dist/cjs/gx-ide-bpm-timer-duration.cjs.entry.js.map +1 -1
  33. package/dist/cjs/gx-ide-card.cjs.entry.js +2 -2
  34. package/dist/cjs/gx-ide-card.cjs.entry.js.map +1 -1
  35. package/dist/cjs/gx-ide-chat-container_2.cjs.entry.js +239 -0
  36. package/dist/cjs/gx-ide-chat-container_2.cjs.entry.js.map +1 -0
  37. package/dist/cjs/gx-ide-connect-gx-server.cjs.entry.js +18 -23
  38. package/dist/cjs/gx-ide-connect-gx-server.cjs.entry.js.map +1 -1
  39. package/dist/cjs/gx-ide-container_2.cjs.entry.js +1 -2
  40. package/dist/cjs/gx-ide-container_2.cjs.entry.js.map +1 -1
  41. package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js +9 -14
  42. package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js.map +1 -1
  43. package/dist/cjs/gx-ide-current-user-info.cjs.entry.js +5 -7
  44. package/dist/cjs/gx-ide-current-user-info.cjs.entry.js.map +1 -1
  45. package/dist/cjs/gx-ide-dashboard-home.cjs.entry.js +7 -9
  46. package/dist/cjs/gx-ide-dashboard-home.cjs.entry.js.map +1 -1
  47. package/dist/cjs/gx-ide-data-selector.cjs.entry.js +6 -8
  48. package/dist/cjs/gx-ide-data-selector.cjs.entry.js.map +1 -1
  49. package/dist/cjs/gx-ide-data-type-selector.cjs.entry.js +6 -8
  50. package/dist/cjs/gx-ide-data-type-selector.cjs.entry.js.map +1 -1
  51. package/dist/cjs/gx-ide-deployment-tool.cjs.entry.js +17 -21
  52. package/dist/cjs/gx-ide-deployment-tool.cjs.entry.js.map +1 -1
  53. package/dist/cjs/gx-ide-design-import.cjs.entry.js +27 -36
  54. package/dist/cjs/gx-ide-design-import.cjs.entry.js.map +1 -1
  55. package/dist/cjs/gx-ide-directory-selector.cjs.entry.js +1 -2
  56. package/dist/cjs/gx-ide-directory-selector.cjs.entry.js.map +1 -1
  57. package/dist/cjs/gx-ide-edit-module-server.cjs.entry.js +3 -4
  58. package/dist/cjs/gx-ide-edit-module-server.cjs.entry.js.map +1 -1
  59. package/dist/cjs/gx-ide-empty-state.cjs.entry.js +1 -1
  60. package/dist/cjs/gx-ide-empty-state.cjs.entry.js.map +1 -1
  61. package/dist/cjs/gx-ide-entity-selector.cjs.entry.js +6 -9
  62. package/dist/cjs/gx-ide-entity-selector.cjs.entry.js.map +1 -1
  63. package/dist/cjs/gx-ide-file-item.cjs.entry.js +5 -6
  64. package/dist/cjs/gx-ide-file-item.cjs.entry.js.map +1 -1
  65. package/dist/cjs/gx-ide-file-uploader.cjs.entry.js +63 -49
  66. package/dist/cjs/gx-ide-file-uploader.cjs.entry.js.map +1 -1
  67. package/dist/cjs/gx-ide-gam-installation-settings.cjs.entry.js +3 -4
  68. package/dist/cjs/gx-ide-gam-installation-settings.cjs.entry.js.map +1 -1
  69. package/dist/cjs/gx-ide-kb-manager-export.cjs.entry.js +7 -8
  70. package/dist/cjs/gx-ide-kb-manager-export.cjs.entry.js.map +1 -1
  71. package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js +10 -14
  72. package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js.map +1 -1
  73. package/dist/cjs/gx-ide-list-selector_2.cjs.entry.js +2 -2
  74. package/dist/cjs/gx-ide-list-selector_2.cjs.entry.js.map +1 -1
  75. package/dist/cjs/gx-ide-manage-module-references-v2.cjs.entry.js +19 -11
  76. package/dist/cjs/gx-ide-manage-module-references-v2.cjs.entry.js.map +1 -1
  77. package/dist/cjs/gx-ide-manage-module-references.cjs.entry.js +8 -9
  78. package/dist/cjs/gx-ide-manage-module-references.cjs.entry.js.map +1 -1
  79. package/dist/cjs/gx-ide-navigation-report.cjs.entry.js +4 -7
  80. package/dist/cjs/gx-ide-navigation-report.cjs.entry.js.map +1 -1
  81. package/dist/cjs/gx-ide-new-environment.cjs.entry.js +14 -19
  82. package/dist/cjs/gx-ide-new-environment.cjs.entry.js.map +1 -1
  83. package/dist/cjs/gx-ide-new-kb.cjs.entry.js +34 -39
  84. package/dist/cjs/gx-ide-new-kb.cjs.entry.js.map +1 -1
  85. package/dist/cjs/gx-ide-new-object.cjs.entry.js +6 -9
  86. package/dist/cjs/gx-ide-new-object.cjs.entry.js.map +1 -1
  87. package/dist/cjs/gx-ide-new-version.cjs.entry.js +3 -3
  88. package/dist/cjs/gx-ide-new-version.cjs.entry.js.map +1 -1
  89. package/dist/cjs/gx-ide-object-selector.cjs.entry.js +10 -12
  90. package/dist/cjs/gx-ide-object-selector.cjs.entry.js.map +1 -1
  91. package/dist/cjs/gx-ide-open-api-import.cjs.entry.js +8 -13
  92. package/dist/cjs/gx-ide-open-api-import.cjs.entry.js.map +1 -1
  93. package/dist/cjs/gx-ide-references.cjs.entry.js +22 -28
  94. package/dist/cjs/gx-ide-references.cjs.entry.js.map +1 -1
  95. package/dist/cjs/gx-ide-sc-chat-container.cjs.entry.js +202 -98
  96. package/dist/cjs/gx-ide-sc-chat-container.cjs.entry.js.map +1 -1
  97. package/dist/cjs/gx-ide-select-kb-items.cjs.entry.js +10 -17
  98. package/dist/cjs/gx-ide-select-kb-items.cjs.entry.js.map +1 -1
  99. package/dist/cjs/gx-ide-select-user-team.cjs.entry.js +3 -4
  100. package/dist/cjs/gx-ide-select-user-team.cjs.entry.js.map +1 -1
  101. package/dist/cjs/gx-ide-share-kb.cjs.entry.js +6 -10
  102. package/dist/cjs/gx-ide-share-kb.cjs.entry.js.map +1 -1
  103. package/dist/cjs/gx-ide-sign-in-team.cjs.entry.js +2 -3
  104. package/dist/cjs/gx-ide-sign-in-team.cjs.entry.js.map +1 -1
  105. package/dist/cjs/gx-ide-sign-in.cjs.entry.js +1 -1
  106. package/dist/cjs/gx-ide-splash.cjs.entry.js +6 -8
  107. package/dist/cjs/gx-ide-splash.cjs.entry.js.map +1 -1
  108. package/dist/cjs/gx-ide-start-page.cjs.entry.js +9 -13
  109. package/dist/cjs/gx-ide-start-page.cjs.entry.js.map +1 -1
  110. package/dist/cjs/gx-ide-status-buttons.cjs.entry.js +1 -1
  111. package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +3 -3
  112. package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js.map +1 -1
  113. package/dist/cjs/gx-ide-team-dev-select-recent-comment.cjs.entry.js +2 -2
  114. package/dist/cjs/gx-ide-team-dev-select-recent-comment.cjs.entry.js.map +1 -1
  115. package/dist/cjs/gx-ide-team-dev-update-partial-selection.cjs.entry.js +3 -3
  116. package/dist/cjs/gx-ide-team-dev-update-partial-selection.cjs.entry.js.map +1 -1
  117. package/dist/cjs/gx-ide-team-dev-update-to-revision.cjs.entry.js +2 -2
  118. package/dist/cjs/gx-ide-team-dev-update-to-revision.cjs.entry.js.map +1 -1
  119. package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +4 -5
  120. package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js.map +1 -1
  121. package/dist/cjs/gx-ide-template.cjs.entry.js +2 -2
  122. package/dist/cjs/gx-ide-template.cjs.entry.js.map +1 -1
  123. package/dist/cjs/gx-ide-welcome-page.cjs.entry.js +8 -11
  124. package/dist/cjs/gx-ide-welcome-page.cjs.entry.js.map +1 -1
  125. package/dist/cjs/gx-ide-wf-settings.cjs.entry.js +2 -2
  126. package/dist/cjs/gx-ide-wf-settings.cjs.entry.js.map +1 -1
  127. package/dist/cjs/gx-ide-ww-attributes.cjs.entry.js +11 -18
  128. package/dist/cjs/gx-ide-ww-attributes.cjs.entry.js.map +1 -1
  129. package/dist/cjs/gx-ide-ww-files.cjs.entry.js +19 -22
  130. package/dist/cjs/gx-ide-ww-files.cjs.entry.js.map +1 -1
  131. package/dist/cjs/gx-ide-ww-images.cjs.entry.js +20 -9
  132. package/dist/cjs/gx-ide-ww-images.cjs.entry.js.map +1 -1
  133. package/dist/cjs/{helpers-30f109a4.js → helpers-e5a13fa5.js} +6 -6
  134. package/dist/cjs/helpers-e5a13fa5.js.map +1 -0
  135. package/dist/cjs/index.cjs.js +2 -2
  136. package/dist/cjs/index.cjs.js.map +1 -1
  137. package/dist/cjs/loader.cjs.js +1 -1
  138. package/dist/cjs/{locale-ff30a5f3.js → locale-36b93b1b.js} +4 -4
  139. package/dist/cjs/locale-36b93b1b.js.map +1 -0
  140. package/dist/collection/collection-manifest.json +2 -1
  141. package/dist/collection/common/common.js +23 -13
  142. package/dist/collection/common/common.js.map +1 -1
  143. package/dist/collection/common/form-validation.js +7 -4
  144. package/dist/collection/common/form-validation.js.map +1 -1
  145. package/dist/collection/common/helpers.js +9 -10
  146. package/dist/collection/common/helpers.js.map +1 -1
  147. package/dist/collection/common/locale.js +3 -3
  148. package/dist/collection/common/locale.js.map +1 -1
  149. package/dist/collection/common/render-suggest.js +1 -1
  150. package/dist/collection/common/render-suggest.js.map +1 -1
  151. package/dist/collection/components/_helpers/card/card.css +9 -0
  152. package/dist/collection/components/_helpers/container/container.js +1 -2
  153. package/dist/collection/components/_helpers/container/container.js.map +1 -1
  154. package/dist/collection/components/_helpers/directory-selector/directory-selector.js +1 -2
  155. package/dist/collection/components/_helpers/directory-selector/directory-selector.js.map +1 -1
  156. package/dist/collection/components/_helpers/empty-state/gx-ide-empty-state.css +9 -0
  157. package/dist/collection/components/_helpers/entity-selector/entity-selector.js +2 -4
  158. package/dist/collection/components/_helpers/entity-selector/entity-selector.js.map +1 -1
  159. package/dist/collection/components/_helpers/list-selector/list-selector-item/list-selector-item.js +1 -1
  160. package/dist/collection/components/_helpers/list-selector/list-selector-item/list-selector-item.js.map +1 -1
  161. package/dist/collection/components/_helpers/list-selector/list-selector.css +9 -0
  162. package/dist/collection/components/_starting-template/template.css +9 -0
  163. package/dist/collection/components/ai-assistant/ai-assistant.css +9 -0
  164. package/dist/collection/components/ai-assistant/ai-assistant.js +8 -14
  165. package/dist/collection/components/ai-assistant/ai-assistant.js.map +1 -1
  166. package/dist/collection/components/bpm/application-declaration/bpm-app-declaration.css +37 -27
  167. package/dist/collection/components/bpm/application-declaration/bpm-app-declaration.js +217 -182
  168. package/dist/collection/components/bpm/application-declaration/bpm-app-declaration.js.map +1 -1
  169. package/dist/collection/components/bpm/application-declaration/gx-ide-assets/bpm-app-declaration/langs/bpm-app-declaration.lang.en.json +14 -2
  170. package/dist/collection/components/bpm/application-declaration/gx-ide-assets/bpm-app-declaration/langs/bpm-app-declaration.lang.ja.json +15 -3
  171. package/dist/collection/components/bpm/application-declaration/gx-ide-assets/bpm-app-declaration/langs/bpm-app-declaration.lang.zh.json +14 -2
  172. package/dist/collection/components/bpm/assign-roles/bpm-assign-roles.css +9 -0
  173. package/dist/collection/components/bpm/export-xpdl/bpm-export-xpdl.css +9 -0
  174. package/dist/collection/components/bpm/export-xpdl/bpm-export-xpdl.js +2 -4
  175. package/dist/collection/components/bpm/export-xpdl/bpm-export-xpdl.js.map +1 -1
  176. package/dist/collection/components/bpm/import-files/bpm-import-files.css +9 -0
  177. package/dist/collection/components/bpm/import-files/bpm-import-files.js +1 -2
  178. package/dist/collection/components/bpm/import-files/bpm-import-files.js.map +1 -1
  179. package/dist/collection/components/bpm/import-gxpm/bpm-import-gxpm.css +9 -0
  180. package/dist/collection/components/bpm/objects-selector/bpm-objects-selector.css +9 -0
  181. package/dist/collection/components/bpm/sync-gam-roles/bpm-sync-gam-roles.js +1 -2
  182. package/dist/collection/components/bpm/sync-gam-roles/bpm-sync-gam-roles.js.map +1 -1
  183. package/dist/collection/components/bpm/task-documents/helpers.js +1 -1
  184. package/dist/collection/components/bpm/task-documents/helpers.js.map +1 -1
  185. package/dist/collection/components/bpm/task-documents/task-documents.js +7 -9
  186. package/dist/collection/components/bpm/task-documents/task-documents.js.map +1 -1
  187. package/dist/collection/components/bpm/timer-duration/bpm-timer-duration.css +9 -0
  188. package/dist/collection/components/bpm/timer-duration/bpm-timer-duration.js +1 -2
  189. package/dist/collection/components/bpm/timer-duration/bpm-timer-duration.js.map +1 -1
  190. package/dist/collection/components/chat/chat-container/chat-container.css +118 -0
  191. package/dist/collection/components/chat/chat-container/chat-container.js +218 -0
  192. package/dist/collection/components/chat/chat-container/chat-container.js.map +1 -0
  193. package/dist/collection/components/chat/chat-container/gx-ide-assets/chat-container/langs/chat-container.lang.en.json +9 -0
  194. package/dist/collection/components/chat/chat-container/gx-ide-assets/chat-container/langs/chat-container.lang.ja.json +9 -0
  195. package/dist/collection/components/chat/chat-container/gx-ide-assets/chat-container/langs/chat-container.lang.zh.json +9 -0
  196. package/dist/collection/components/chat/chat-welcome/chat-welcome.css +109 -0
  197. package/dist/collection/components/chat/chat-welcome/chat-welcome.js +228 -0
  198. package/dist/collection/components/chat/chat-welcome/chat-welcome.js.map +1 -0
  199. package/dist/collection/components/chat/chat-welcome/gx-ide-assets/chat-welcome/helpers.js +3 -0
  200. package/dist/collection/components/chat/chat-welcome/gx-ide-assets/chat-welcome/helpers.js.map +1 -0
  201. package/dist/collection/components/chat/chat-welcome/gx-ide-assets/chat-welcome/helpers.tsx +31 -0
  202. package/dist/collection/components/chat/chat-welcome/gx-ide-assets/chat-welcome/images/ai-avatar-welcome.svg +21 -0
  203. package/dist/collection/components/chat/chat-welcome/gx-ide-assets/chat-welcome/images/ai-avatar.svg +11 -0
  204. package/dist/collection/components/chat/chat-welcome/gx-ide-assets/chat-welcome/images/header-illustration.svg +24 -0
  205. package/dist/collection/components/chat/chat-welcome/gx-ide-assets/chat-welcome/langs/chat-welcome.lang.en.json +10 -0
  206. package/dist/collection/components/chat/chat-welcome/gx-ide-assets/chat-welcome/langs/chat-welcome.lang.ja.json +10 -0
  207. package/dist/collection/components/chat/chat-welcome/gx-ide-assets/chat-welcome/langs/chat-welcome.lang.zh.json +10 -0
  208. package/dist/collection/components/chat/code-render.js +65 -0
  209. package/dist/collection/components/chat/code-render.js.map +1 -0
  210. package/dist/collection/components/current-user-info/current-user-info.js +2 -3
  211. package/dist/collection/components/current-user-info/current-user-info.js.map +1 -1
  212. package/dist/collection/components/dashboard-home/dashboard-home.css +9 -0
  213. package/dist/collection/components/dashboard-home/dashboard-home.js +2 -3
  214. package/dist/collection/components/dashboard-home/dashboard-home.js.map +1 -1
  215. package/dist/collection/components/data-selector/data-selector.css +1 -0
  216. package/dist/collection/components/data-selector/data-selector.js +2 -3
  217. package/dist/collection/components/data-selector/data-selector.js.map +1 -1
  218. package/dist/collection/components/data-type-selector/data-type-selector.js +3 -4
  219. package/dist/collection/components/data-type-selector/data-type-selector.js.map +1 -1
  220. package/dist/collection/components/deployment-tool/deployment-tool.css +9 -0
  221. package/dist/collection/components/deployment-tool/deployment-tool.js +11 -18
  222. package/dist/collection/components/deployment-tool/deployment-tool.js.map +1 -1
  223. package/dist/collection/components/deployment-tool/helpers.js +4 -1
  224. package/dist/collection/components/deployment-tool/helpers.js.map +1 -1
  225. package/dist/collection/components/design-import/design-import.js +18 -26
  226. package/dist/collection/components/design-import/design-import.js.map +1 -1
  227. package/dist/collection/components/design-import/helpers.js +1 -1
  228. package/dist/collection/components/design-import/helpers.js.map +1 -1
  229. package/dist/collection/components/file-uploader/file-uploader.css +9 -0
  230. package/dist/collection/components/file-uploader/file-uploader.js +59 -44
  231. package/dist/collection/components/file-uploader/file-uploader.js.map +1 -1
  232. package/dist/collection/components/gam-installation-settings/gam-installation-settings.css +9 -0
  233. package/dist/collection/components/gam-installation-settings/gam-installation-settings.js +1 -2
  234. package/dist/collection/components/gam-installation-settings/gam-installation-settings.js.map +1 -1
  235. package/dist/collection/components/kb-manager-import/kb-manager-import.js +4 -7
  236. package/dist/collection/components/kb-manager-import/kb-manager-import.js.map +1 -1
  237. package/dist/collection/components/modules/edit-module-server/edit-module-server.css +9 -0
  238. package/dist/collection/components/modules/edit-module-server/edit-module-server.js +1 -2
  239. package/dist/collection/components/modules/edit-module-server/edit-module-server.js.map +1 -1
  240. package/dist/collection/components/modules/manage-module-references/manage-module-references.css +9 -0
  241. package/dist/collection/components/modules/manage-module-references/manage-module-references.js +2 -2
  242. package/dist/collection/components/modules/manage-module-references/manage-module-references.js.map +1 -1
  243. package/dist/collection/components/modules/manage-module-references-v2/manage-module-references-v2.js +13 -4
  244. package/dist/collection/components/modules/manage-module-references-v2/manage-module-references-v2.js.map +1 -1
  245. package/dist/collection/components/modules/manage-module-references-v2/manage-module-references.css +9 -0
  246. package/dist/collection/components/navigation-report/navigation-report.js +3 -6
  247. package/dist/collection/components/navigation-report/navigation-report.js.map +1 -1
  248. package/dist/collection/components/new-environment/new-environment.js +10 -15
  249. package/dist/collection/components/new-environment/new-environment.js.map +1 -1
  250. package/dist/collection/components/new-kb/new-kb.js +28 -32
  251. package/dist/collection/components/new-kb/new-kb.js.map +1 -1
  252. package/dist/collection/components/new-object/new-object.js +5 -8
  253. package/dist/collection/components/new-object/new-object.js.map +1 -1
  254. package/dist/collection/components/new-version/new-version.js +2 -2
  255. package/dist/collection/components/new-version/new-version.js.map +1 -1
  256. package/dist/collection/components/object-selector/object-selector.css +1 -0
  257. package/dist/collection/components/object-selector/object-selector.js +4 -5
  258. package/dist/collection/components/object-selector/object-selector.js.map +1 -1
  259. package/dist/collection/components/open-api-import/open-api-import.js +4 -8
  260. package/dist/collection/components/open-api-import/open-api-import.js.map +1 -1
  261. package/dist/collection/components/references/helpers.js +9 -13
  262. package/dist/collection/components/references/helpers.js.map +1 -1
  263. package/dist/collection/components/references/references.css +9 -0
  264. package/dist/collection/components/references/references.js +9 -11
  265. package/dist/collection/components/references/references.js.map +1 -1
  266. package/dist/collection/components/select-kb-items/helpers.js +5 -10
  267. package/dist/collection/components/select-kb-items/helpers.js.map +1 -1
  268. package/dist/collection/components/select-kb-items/select-kb-items.js +1 -2
  269. package/dist/collection/components/select-kb-items/select-kb-items.js.map +1 -1
  270. package/dist/collection/components/select-user-team/helpers.js +1 -1
  271. package/dist/collection/components/select-user-team/helpers.js.map +1 -1
  272. package/dist/collection/components/select-user-team/select-user-team.js +1 -2
  273. package/dist/collection/components/select-user-team/select-user-team.js.map +1 -1
  274. package/dist/collection/components/sign-in-team/sign-in-team.js +1 -2
  275. package/dist/collection/components/sign-in-team/sign-in-team.js.map +1 -1
  276. package/dist/collection/components/splash/splash.js +2 -3
  277. package/dist/collection/components/splash/splash.js.map +1 -1
  278. package/dist/collection/components/start-page/start-page.js +3 -6
  279. package/dist/collection/components/start-page/start-page.js.map +1 -1
  280. package/dist/collection/components/team-dev/commit/commit.css +10 -0
  281. package/dist/collection/components/team-dev/connect-gx-server/connect-gx-server.js +16 -21
  282. package/dist/collection/components/team-dev/connect-gx-server/connect-gx-server.js.map +1 -1
  283. package/dist/collection/components/team-dev/create-kb-from-server/create-kb-from-server.js +4 -8
  284. package/dist/collection/components/team-dev/create-kb-from-server/create-kb-from-server.js.map +1 -1
  285. package/dist/collection/components/team-dev/select-recent-comment/select-recent-comment.css +9 -0
  286. package/dist/collection/components/team-dev/share-kb/share-kb.js +2 -5
  287. package/dist/collection/components/team-dev/share-kb/share-kb.js.map +1 -1
  288. package/dist/collection/components/team-dev/update/update.css +11 -0
  289. package/dist/collection/components/team-dev/update/update.js +1 -2
  290. package/dist/collection/components/team-dev/update/update.js.map +1 -1
  291. package/dist/collection/components/team-dev/update-partial-selection/update-partial-selection.css +9 -0
  292. package/dist/collection/components/team-dev/update-partial-selection/update-partial-selection.js +1 -1
  293. package/dist/collection/components/team-dev/update-partial-selection/update-partial-selection.js.map +1 -1
  294. package/dist/collection/components/team-dev/update-to-revision/update-to-revision.css +9 -0
  295. package/dist/collection/components/welcome-page/welcome-page.js +5 -7
  296. package/dist/collection/components/welcome-page/welcome-page.js.map +1 -1
  297. package/dist/collection/components/wf-settings/wf-settings.css +9 -0
  298. package/dist/collection/components/ww-attributes/helpers.js +1 -2
  299. package/dist/collection/components/ww-attributes/helpers.js.map +1 -1
  300. package/dist/collection/components/ww-attributes/ww-attributes.css +1 -0
  301. package/dist/collection/components/ww-attributes/ww-attributes.js +6 -11
  302. package/dist/collection/components/ww-attributes/ww-attributes.js.map +1 -1
  303. package/dist/collection/components/ww-files/helpers.js +1 -2
  304. package/dist/collection/components/ww-files/helpers.js.map +1 -1
  305. package/dist/collection/components/ww-files/ww-files.css +1 -0
  306. package/dist/collection/components/ww-files/ww-files.js +16 -18
  307. package/dist/collection/components/ww-files/ww-files.js.map +1 -1
  308. package/dist/collection/components/ww-images/ww-images.css +10 -0
  309. package/dist/collection/components/ww-images/ww-images.js +16 -5
  310. package/dist/collection/components/ww-images/ww-images.js.map +1 -1
  311. package/dist/collection/index.js +1 -1
  312. package/dist/collection/index.js.map +1 -1
  313. package/dist/collection/showcase/chat-container/callbacks.js +105 -90
  314. package/dist/collection/showcase/chat-container/callbacks.js.map +1 -1
  315. package/dist/collection/showcase/chat-container/chat.showcase.js +145 -10
  316. package/dist/collection/showcase/chat-container/chat.showcase.js.map +1 -1
  317. package/dist/collection/testing/locale.e2e.js +4 -3
  318. package/dist/collection/testing/locale.e2e.js.map +1 -1
  319. package/dist/components/MERCURY_ASSETS.js +5 -1
  320. package/dist/components/MERCURY_ASSETS.js.map +1 -1
  321. package/dist/components/ai-message.js +1 -2
  322. package/dist/components/ai-message.js.map +1 -1
  323. package/dist/components/bpm-objects-selector.js +1 -1
  324. package/dist/components/bpm-objects-selector.js.map +1 -1
  325. package/dist/components/chat-container.js +70 -7
  326. package/dist/components/chat-container.js.map +1 -1
  327. package/dist/components/chat-welcome.js +146 -0
  328. package/dist/components/chat-welcome.js.map +1 -0
  329. package/dist/components/code-render.js +68 -41
  330. package/dist/components/code-render.js.map +1 -1
  331. package/dist/components/common.js +27 -11
  332. package/dist/components/common.js.map +1 -1
  333. package/dist/components/container.js +1 -2
  334. package/dist/components/container.js.map +1 -1
  335. package/dist/components/entity-selector.js +3 -6
  336. package/dist/components/entity-selector.js.map +1 -1
  337. package/dist/components/file-item.js +1 -2
  338. package/dist/components/file-item.js.map +1 -1
  339. package/dist/components/form-validation.js +6 -2
  340. package/dist/components/form-validation.js.map +1 -1
  341. package/dist/components/gx-ide-ai-assistant.js +9 -15
  342. package/dist/components/gx-ide-ai-assistant.js.map +1 -1
  343. package/dist/components/gx-ide-bpm-app-declaration.js +188 -185
  344. package/dist/components/gx-ide-bpm-app-declaration.js.map +1 -1
  345. package/dist/components/gx-ide-bpm-assign-roles.js +1 -1
  346. package/dist/components/gx-ide-bpm-assign-roles.js.map +1 -1
  347. package/dist/components/gx-ide-bpm-export-xpdl.js +3 -5
  348. package/dist/components/gx-ide-bpm-export-xpdl.js.map +1 -1
  349. package/dist/components/gx-ide-bpm-import-files.js +2 -3
  350. package/dist/components/gx-ide-bpm-import-files.js.map +1 -1
  351. package/dist/components/gx-ide-bpm-import-gxpm.js +1 -1
  352. package/dist/components/gx-ide-bpm-import-gxpm.js.map +1 -1
  353. package/dist/components/gx-ide-bpm-sync-gam-roles.js +1 -2
  354. package/dist/components/gx-ide-bpm-sync-gam-roles.js.map +1 -1
  355. package/dist/components/gx-ide-bpm-task-documents.js +9 -12
  356. package/dist/components/gx-ide-bpm-task-documents.js.map +1 -1
  357. package/dist/components/gx-ide-bpm-timer-duration.js +2 -3
  358. package/dist/components/gx-ide-bpm-timer-duration.js.map +1 -1
  359. package/dist/components/gx-ide-card.js +1 -1
  360. package/dist/components/gx-ide-card.js.map +1 -1
  361. package/dist/components/gx-ide-chat-welcome.d.ts +11 -0
  362. package/dist/components/gx-ide-chat-welcome.js +8 -0
  363. package/dist/components/gx-ide-chat-welcome.js.map +1 -0
  364. package/dist/components/gx-ide-connect-gx-server.js +16 -21
  365. package/dist/components/gx-ide-connect-gx-server.js.map +1 -1
  366. package/dist/components/gx-ide-create-kb-from-server.js +5 -10
  367. package/dist/components/gx-ide-create-kb-from-server.js.map +1 -1
  368. package/dist/components/gx-ide-current-user-info.js +3 -5
  369. package/dist/components/gx-ide-current-user-info.js.map +1 -1
  370. package/dist/components/gx-ide-dashboard-home.js +4 -6
  371. package/dist/components/gx-ide-dashboard-home.js.map +1 -1
  372. package/dist/components/gx-ide-data-selector.js +4 -6
  373. package/dist/components/gx-ide-data-selector.js.map +1 -1
  374. package/dist/components/gx-ide-data-type-selector.js +4 -6
  375. package/dist/components/gx-ide-data-type-selector.js.map +1 -1
  376. package/dist/components/gx-ide-deployment-tool.js +16 -20
  377. package/dist/components/gx-ide-deployment-tool.js.map +1 -1
  378. package/dist/components/gx-ide-design-import.js +20 -29
  379. package/dist/components/gx-ide-design-import.js.map +1 -1
  380. package/dist/components/gx-ide-directory-selector.js +1 -2
  381. package/dist/components/gx-ide-directory-selector.js.map +1 -1
  382. package/dist/components/gx-ide-edit-module-server.js +2 -3
  383. package/dist/components/gx-ide-edit-module-server.js.map +1 -1
  384. package/dist/components/gx-ide-empty-state2.js +1 -1
  385. package/dist/components/gx-ide-empty-state2.js.map +1 -1
  386. package/dist/components/gx-ide-file-uploader.js +61 -47
  387. package/dist/components/gx-ide-file-uploader.js.map +1 -1
  388. package/dist/components/gx-ide-gam-installation-settings.js +2 -3
  389. package/dist/components/gx-ide-gam-installation-settings.js.map +1 -1
  390. package/dist/components/gx-ide-kb-manager-export.js +1 -2
  391. package/dist/components/gx-ide-kb-manager-export.js.map +1 -1
  392. package/dist/components/gx-ide-kb-manager-import.js +5 -9
  393. package/dist/components/gx-ide-kb-manager-import.js.map +1 -1
  394. package/dist/components/gx-ide-manage-module-references-v2.js +15 -7
  395. package/dist/components/gx-ide-manage-module-references-v2.js.map +1 -1
  396. package/dist/components/gx-ide-manage-module-references.js +4 -5
  397. package/dist/components/gx-ide-manage-module-references.js.map +1 -1
  398. package/dist/components/gx-ide-navigation-report.js +3 -6
  399. package/dist/components/gx-ide-navigation-report.js.map +1 -1
  400. package/dist/components/gx-ide-new-environment.js +10 -15
  401. package/dist/components/gx-ide-new-environment.js.map +1 -1
  402. package/dist/components/gx-ide-new-kb.js +29 -34
  403. package/dist/components/gx-ide-new-kb.js.map +1 -1
  404. package/dist/components/gx-ide-new-object.js +5 -8
  405. package/dist/components/gx-ide-new-object.js.map +1 -1
  406. package/dist/components/gx-ide-new-version.js +2 -2
  407. package/dist/components/gx-ide-new-version.js.map +1 -1
  408. package/dist/components/gx-ide-object-selector.js +6 -8
  409. package/dist/components/gx-ide-object-selector.js.map +1 -1
  410. package/dist/components/gx-ide-open-api-import.js +5 -10
  411. package/dist/components/gx-ide-open-api-import.js.map +1 -1
  412. package/dist/components/gx-ide-references.js +19 -25
  413. package/dist/components/gx-ide-references.js.map +1 -1
  414. package/dist/components/gx-ide-sc-chat-container.js +215 -100
  415. package/dist/components/gx-ide-sc-chat-container.js.map +1 -1
  416. package/dist/components/gx-ide-select-kb-items.js +7 -14
  417. package/dist/components/gx-ide-select-kb-items.js.map +1 -1
  418. package/dist/components/gx-ide-select-user-team.js +2 -3
  419. package/dist/components/gx-ide-select-user-team.js.map +1 -1
  420. package/dist/components/gx-ide-share-kb.js +3 -7
  421. package/dist/components/gx-ide-share-kb.js.map +1 -1
  422. package/dist/components/gx-ide-sign-in-team.js +1 -2
  423. package/dist/components/gx-ide-sign-in-team.js.map +1 -1
  424. package/dist/components/gx-ide-splash.js +3 -5
  425. package/dist/components/gx-ide-splash.js.map +1 -1
  426. package/dist/components/gx-ide-start-page.js +4 -8
  427. package/dist/components/gx-ide-start-page.js.map +1 -1
  428. package/dist/components/gx-ide-team-dev-commit.js +1 -1
  429. package/dist/components/gx-ide-team-dev-commit.js.map +1 -1
  430. package/dist/components/gx-ide-team-dev-select-recent-comment.js +1 -1
  431. package/dist/components/gx-ide-team-dev-select-recent-comment.js.map +1 -1
  432. package/dist/components/gx-ide-team-dev-update-partial-selection.js +2 -2
  433. package/dist/components/gx-ide-team-dev-update-partial-selection.js.map +1 -1
  434. package/dist/components/gx-ide-team-dev-update-to-revision.js +1 -1
  435. package/dist/components/gx-ide-team-dev-update-to-revision.js.map +1 -1
  436. package/dist/components/gx-ide-team-dev-update.js +2 -3
  437. package/dist/components/gx-ide-team-dev-update.js.map +1 -1
  438. package/dist/components/gx-ide-template.js +1 -1
  439. package/dist/components/gx-ide-template.js.map +1 -1
  440. package/dist/components/gx-ide-welcome-page.js +6 -9
  441. package/dist/components/gx-ide-welcome-page.js.map +1 -1
  442. package/dist/components/gx-ide-wf-settings.js +1 -1
  443. package/dist/components/gx-ide-wf-settings.js.map +1 -1
  444. package/dist/components/gx-ide-ww-attributes.js +9 -16
  445. package/dist/components/gx-ide-ww-attributes.js.map +1 -1
  446. package/dist/components/gx-ide-ww-files.js +18 -21
  447. package/dist/components/gx-ide-ww-files.js.map +1 -1
  448. package/dist/components/gx-ide-ww-images.js +17 -6
  449. package/dist/components/gx-ide-ww-images.js.map +1 -1
  450. package/dist/components/helpers.js +5 -5
  451. package/dist/components/helpers.js.map +1 -1
  452. package/dist/components/index.js.map +1 -1
  453. package/dist/components/list-selector-item.js +1 -1
  454. package/dist/components/list-selector-item.js.map +1 -1
  455. package/dist/components/list-selector.js +1 -1
  456. package/dist/components/list-selector.js.map +1 -1
  457. package/dist/components/locale.js +3 -3
  458. package/dist/components/locale.js.map +1 -1
  459. package/dist/esm/MERCURY_ASSETS-039222dd.js +7 -0
  460. package/dist/esm/MERCURY_ASSETS-039222dd.js.map +1 -0
  461. package/dist/esm/code-render-f3afd300.js +83 -0
  462. package/dist/esm/code-render-f3afd300.js.map +1 -0
  463. package/dist/esm/{common-ccb4504a.js → common-719c4daf.js} +28 -12
  464. package/dist/esm/common-719c4daf.js.map +1 -0
  465. package/dist/esm/{form-validation-cd0215c6.js → form-validation-71dca8c6.js} +7 -3
  466. package/dist/esm/form-validation-71dca8c6.js.map +1 -0
  467. package/dist/esm/genexus-ide-ui.js +1 -1
  468. package/dist/esm/gx-ide-about.entry.js +1 -1
  469. package/dist/esm/gx-ide-ai-assistant.entry.js +10 -16
  470. package/dist/esm/gx-ide-ai-assistant.entry.js.map +1 -1
  471. package/dist/esm/gx-ide-ai-message.entry.js +3 -4
  472. package/dist/esm/gx-ide-ai-message.entry.js.map +1 -1
  473. package/dist/esm/gx-ide-bpm-app-declaration.entry.js +181 -169
  474. package/dist/esm/gx-ide-bpm-app-declaration.entry.js.map +1 -1
  475. package/dist/esm/gx-ide-bpm-assign-roles.entry.js +2 -2
  476. package/dist/esm/gx-ide-bpm-assign-roles.entry.js.map +1 -1
  477. package/dist/esm/gx-ide-bpm-export-xpdl.entry.js +4 -6
  478. package/dist/esm/gx-ide-bpm-export-xpdl.entry.js.map +1 -1
  479. package/dist/esm/gx-ide-bpm-import-files.entry.js +3 -4
  480. package/dist/esm/gx-ide-bpm-import-files.entry.js.map +1 -1
  481. package/dist/esm/gx-ide-bpm-import-gxpm.entry.js +2 -2
  482. package/dist/esm/gx-ide-bpm-import-gxpm.entry.js.map +1 -1
  483. package/dist/esm/gx-ide-bpm-objects-selector.entry.js +2 -2
  484. package/dist/esm/gx-ide-bpm-objects-selector.entry.js.map +1 -1
  485. package/dist/esm/gx-ide-bpm-sync-gam-roles.entry.js +2 -3
  486. package/dist/esm/gx-ide-bpm-sync-gam-roles.entry.js.map +1 -1
  487. package/dist/esm/gx-ide-bpm-task-documents.entry.js +10 -13
  488. package/dist/esm/gx-ide-bpm-task-documents.entry.js.map +1 -1
  489. package/dist/esm/gx-ide-bpm-timer-duration.entry.js +3 -4
  490. package/dist/esm/gx-ide-bpm-timer-duration.entry.js.map +1 -1
  491. package/dist/esm/gx-ide-card.entry.js +2 -2
  492. package/dist/esm/gx-ide-card.entry.js.map +1 -1
  493. package/dist/esm/gx-ide-chat-container_2.entry.js +234 -0
  494. package/dist/esm/gx-ide-chat-container_2.entry.js.map +1 -0
  495. package/dist/esm/gx-ide-connect-gx-server.entry.js +18 -23
  496. package/dist/esm/gx-ide-connect-gx-server.entry.js.map +1 -1
  497. package/dist/esm/gx-ide-container_2.entry.js +1 -2
  498. package/dist/esm/gx-ide-container_2.entry.js.map +1 -1
  499. package/dist/esm/gx-ide-create-kb-from-server.entry.js +7 -12
  500. package/dist/esm/gx-ide-create-kb-from-server.entry.js.map +1 -1
  501. package/dist/esm/gx-ide-current-user-info.entry.js +4 -6
  502. package/dist/esm/gx-ide-current-user-info.entry.js.map +1 -1
  503. package/dist/esm/gx-ide-dashboard-home.entry.js +6 -8
  504. package/dist/esm/gx-ide-dashboard-home.entry.js.map +1 -1
  505. package/dist/esm/gx-ide-data-selector.entry.js +5 -7
  506. package/dist/esm/gx-ide-data-selector.entry.js.map +1 -1
  507. package/dist/esm/gx-ide-data-type-selector.entry.js +5 -7
  508. package/dist/esm/gx-ide-data-type-selector.entry.js.map +1 -1
  509. package/dist/esm/gx-ide-deployment-tool.entry.js +17 -21
  510. package/dist/esm/gx-ide-deployment-tool.entry.js.map +1 -1
  511. package/dist/esm/gx-ide-design-import.entry.js +21 -30
  512. package/dist/esm/gx-ide-design-import.entry.js.map +1 -1
  513. package/dist/esm/gx-ide-directory-selector.entry.js +1 -2
  514. package/dist/esm/gx-ide-directory-selector.entry.js.map +1 -1
  515. package/dist/esm/gx-ide-edit-module-server.entry.js +3 -4
  516. package/dist/esm/gx-ide-edit-module-server.entry.js.map +1 -1
  517. package/dist/esm/gx-ide-empty-state.entry.js +1 -1
  518. package/dist/esm/gx-ide-empty-state.entry.js.map +1 -1
  519. package/dist/esm/gx-ide-entity-selector.entry.js +4 -7
  520. package/dist/esm/gx-ide-entity-selector.entry.js.map +1 -1
  521. package/dist/esm/gx-ide-file-item.entry.js +1 -2
  522. package/dist/esm/gx-ide-file-item.entry.js.map +1 -1
  523. package/dist/esm/gx-ide-file-uploader.entry.js +62 -48
  524. package/dist/esm/gx-ide-file-uploader.entry.js.map +1 -1
  525. package/dist/esm/gx-ide-gam-installation-settings.entry.js +3 -4
  526. package/dist/esm/gx-ide-gam-installation-settings.entry.js.map +1 -1
  527. package/dist/esm/gx-ide-kb-manager-export.entry.js +2 -3
  528. package/dist/esm/gx-ide-kb-manager-export.entry.js.map +1 -1
  529. package/dist/esm/gx-ide-kb-manager-import.entry.js +6 -10
  530. package/dist/esm/gx-ide-kb-manager-import.entry.js.map +1 -1
  531. package/dist/esm/gx-ide-list-selector_2.entry.js +2 -2
  532. package/dist/esm/gx-ide-list-selector_2.entry.js.map +1 -1
  533. package/dist/esm/gx-ide-manage-module-references-v2.entry.js +17 -9
  534. package/dist/esm/gx-ide-manage-module-references-v2.entry.js.map +1 -1
  535. package/dist/esm/gx-ide-manage-module-references.entry.js +6 -7
  536. package/dist/esm/gx-ide-manage-module-references.entry.js.map +1 -1
  537. package/dist/esm/gx-ide-navigation-report.entry.js +4 -7
  538. package/dist/esm/gx-ide-navigation-report.entry.js.map +1 -1
  539. package/dist/esm/gx-ide-new-environment.entry.js +14 -19
  540. package/dist/esm/gx-ide-new-environment.entry.js.map +1 -1
  541. package/dist/esm/gx-ide-new-kb.entry.js +33 -38
  542. package/dist/esm/gx-ide-new-kb.entry.js.map +1 -1
  543. package/dist/esm/gx-ide-new-object.entry.js +6 -9
  544. package/dist/esm/gx-ide-new-object.entry.js.map +1 -1
  545. package/dist/esm/gx-ide-new-version.entry.js +3 -3
  546. package/dist/esm/gx-ide-new-version.entry.js.map +1 -1
  547. package/dist/esm/gx-ide-object-selector.entry.js +8 -10
  548. package/dist/esm/gx-ide-object-selector.entry.js.map +1 -1
  549. package/dist/esm/gx-ide-open-api-import.entry.js +6 -11
  550. package/dist/esm/gx-ide-open-api-import.entry.js.map +1 -1
  551. package/dist/esm/gx-ide-references.entry.js +20 -26
  552. package/dist/esm/gx-ide-references.entry.js.map +1 -1
  553. package/dist/esm/gx-ide-sc-chat-container.entry.js +203 -99
  554. package/dist/esm/gx-ide-sc-chat-container.entry.js.map +1 -1
  555. package/dist/esm/gx-ide-select-kb-items.entry.js +8 -15
  556. package/dist/esm/gx-ide-select-kb-items.entry.js.map +1 -1
  557. package/dist/esm/gx-ide-select-user-team.entry.js +3 -4
  558. package/dist/esm/gx-ide-select-user-team.entry.js.map +1 -1
  559. package/dist/esm/gx-ide-share-kb.entry.js +5 -9
  560. package/dist/esm/gx-ide-share-kb.entry.js.map +1 -1
  561. package/dist/esm/gx-ide-sign-in-team.entry.js +2 -3
  562. package/dist/esm/gx-ide-sign-in-team.entry.js.map +1 -1
  563. package/dist/esm/gx-ide-sign-in.entry.js +1 -1
  564. package/dist/esm/gx-ide-splash.entry.js +5 -7
  565. package/dist/esm/gx-ide-splash.entry.js.map +1 -1
  566. package/dist/esm/gx-ide-start-page.entry.js +5 -9
  567. package/dist/esm/gx-ide-start-page.entry.js.map +1 -1
  568. package/dist/esm/gx-ide-status-buttons.entry.js +1 -1
  569. package/dist/esm/gx-ide-team-dev-commit.entry.js +3 -3
  570. package/dist/esm/gx-ide-team-dev-commit.entry.js.map +1 -1
  571. package/dist/esm/gx-ide-team-dev-select-recent-comment.entry.js +2 -2
  572. package/dist/esm/gx-ide-team-dev-select-recent-comment.entry.js.map +1 -1
  573. package/dist/esm/gx-ide-team-dev-update-partial-selection.entry.js +3 -3
  574. package/dist/esm/gx-ide-team-dev-update-partial-selection.entry.js.map +1 -1
  575. package/dist/esm/gx-ide-team-dev-update-to-revision.entry.js +2 -2
  576. package/dist/esm/gx-ide-team-dev-update-to-revision.entry.js.map +1 -1
  577. package/dist/esm/gx-ide-team-dev-update.entry.js +4 -5
  578. package/dist/esm/gx-ide-team-dev-update.entry.js.map +1 -1
  579. package/dist/esm/gx-ide-template.entry.js +2 -2
  580. package/dist/esm/gx-ide-template.entry.js.map +1 -1
  581. package/dist/esm/gx-ide-welcome-page.entry.js +7 -10
  582. package/dist/esm/gx-ide-welcome-page.entry.js.map +1 -1
  583. package/dist/esm/gx-ide-wf-settings.entry.js +2 -2
  584. package/dist/esm/gx-ide-wf-settings.entry.js.map +1 -1
  585. package/dist/esm/gx-ide-ww-attributes.entry.js +10 -17
  586. package/dist/esm/gx-ide-ww-attributes.entry.js.map +1 -1
  587. package/dist/esm/gx-ide-ww-files.entry.js +19 -22
  588. package/dist/esm/gx-ide-ww-files.entry.js.map +1 -1
  589. package/dist/esm/gx-ide-ww-images.entry.js +20 -9
  590. package/dist/esm/gx-ide-ww-images.entry.js.map +1 -1
  591. package/dist/esm/{helpers-10479d69.js → helpers-5f1c9a32.js} +6 -6
  592. package/dist/esm/helpers-5f1c9a32.js.map +1 -0
  593. package/dist/esm/index.js +2 -2
  594. package/dist/esm/index.js.map +1 -1
  595. package/dist/esm/loader.js +1 -1
  596. package/dist/esm/{locale-e5107fad.js → locale-643afe17.js} +4 -4
  597. package/dist/esm/locale-643afe17.js.map +1 -0
  598. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  599. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
  600. package/dist/genexus-ide-ui/gx-ide-assets/bpm-app-declaration/langs/bpm-app-declaration.lang.en.json +14 -2
  601. package/dist/genexus-ide-ui/gx-ide-assets/bpm-app-declaration/langs/bpm-app-declaration.lang.ja.json +15 -3
  602. package/dist/genexus-ide-ui/gx-ide-assets/bpm-app-declaration/langs/bpm-app-declaration.lang.zh.json +14 -2
  603. package/dist/genexus-ide-ui/gx-ide-assets/chat-container/langs/chat-container.lang.en.json +9 -0
  604. package/dist/genexus-ide-ui/gx-ide-assets/chat-container/langs/chat-container.lang.ja.json +9 -0
  605. package/dist/genexus-ide-ui/gx-ide-assets/chat-container/langs/chat-container.lang.zh.json +9 -0
  606. package/dist/genexus-ide-ui/gx-ide-assets/chat-welcome/helpers.tsx +31 -0
  607. package/dist/genexus-ide-ui/gx-ide-assets/chat-welcome/images/ai-avatar-welcome.svg +21 -0
  608. package/dist/genexus-ide-ui/gx-ide-assets/chat-welcome/images/ai-avatar.svg +11 -0
  609. package/dist/genexus-ide-ui/gx-ide-assets/chat-welcome/images/header-illustration.svg +24 -0
  610. package/dist/genexus-ide-ui/gx-ide-assets/chat-welcome/langs/chat-welcome.lang.en.json +10 -0
  611. package/dist/genexus-ide-ui/gx-ide-assets/chat-welcome/langs/chat-welcome.lang.ja.json +10 -0
  612. package/dist/genexus-ide-ui/gx-ide-assets/chat-welcome/langs/chat-welcome.lang.zh.json +10 -0
  613. package/dist/genexus-ide-ui/index.esm.js +2 -2
  614. package/dist/genexus-ide-ui/index.esm.js.map +1 -1
  615. package/dist/genexus-ide-ui/{p-59ed3f39.entry.js → p-02fc47cd.entry.js} +3 -3
  616. package/dist/genexus-ide-ui/{p-530c32aa.entry.js → p-032b4a81.entry.js} +25 -30
  617. package/dist/genexus-ide-ui/p-032b4a81.entry.js.map +1 -0
  618. package/dist/genexus-ide-ui/{p-eea944d4.entry.js → p-0d83a34d.entry.js} +63 -69
  619. package/dist/genexus-ide-ui/p-0d83a34d.entry.js.map +1 -0
  620. package/dist/genexus-ide-ui/{p-22b8bdb1.entry.js → p-0e53f1ef.entry.js} +161 -163
  621. package/dist/genexus-ide-ui/p-0e53f1ef.entry.js.map +1 -0
  622. package/dist/genexus-ide-ui/p-11dccb8f.entry.js +309 -0
  623. package/dist/genexus-ide-ui/p-11dccb8f.entry.js.map +1 -0
  624. package/dist/genexus-ide-ui/{p-fecc50e4.entry.js → p-29575656.entry.js} +85 -96
  625. package/dist/genexus-ide-ui/p-29575656.entry.js.map +1 -0
  626. package/dist/genexus-ide-ui/{p-683cb15e.entry.js → p-2be58a7a.entry.js} +3 -3
  627. package/dist/genexus-ide-ui/{p-fdf41406.entry.js → p-2dbf722d.entry.js} +77 -85
  628. package/dist/genexus-ide-ui/p-2dbf722d.entry.js.map +1 -0
  629. package/dist/genexus-ide-ui/{p-31beae9e.entry.js → p-2e90a13a.entry.js} +2 -3
  630. package/dist/genexus-ide-ui/p-2e90a13a.entry.js.map +1 -0
  631. package/dist/genexus-ide-ui/{p-ba7d1472.entry.js → p-353810b8.entry.js} +99 -104
  632. package/dist/genexus-ide-ui/p-353810b8.entry.js.map +1 -0
  633. package/dist/genexus-ide-ui/{p-3b8db39e.entry.js → p-39c527ff.entry.js} +3 -3
  634. package/dist/genexus-ide-ui/p-3edbf07d.js +109 -0
  635. package/dist/genexus-ide-ui/p-3edbf07d.js.map +1 -0
  636. package/dist/genexus-ide-ui/{p-ef5dfd35.entry.js → p-41a4364d.entry.js} +2 -4
  637. package/dist/genexus-ide-ui/{p-ef5dfd35.entry.js.map → p-41a4364d.entry.js.map} +1 -1
  638. package/dist/genexus-ide-ui/{p-68969051.entry.js → p-45d2fa91.entry.js} +11 -12
  639. package/dist/genexus-ide-ui/p-45d2fa91.entry.js.map +1 -0
  640. package/dist/genexus-ide-ui/{p-5687fdb7.entry.js → p-460db3ff.entry.js} +11 -13
  641. package/dist/genexus-ide-ui/{p-5687fdb7.entry.js.map → p-460db3ff.entry.js.map} +1 -1
  642. package/dist/genexus-ide-ui/{p-9a609b51.js → p-48f5911b.js} +50 -33
  643. package/dist/genexus-ide-ui/p-48f5911b.js.map +1 -0
  644. package/dist/genexus-ide-ui/{p-50b22f23.entry.js → p-4d929210.entry.js} +3 -3
  645. package/dist/genexus-ide-ui/{p-de7f0c1f.entry.js → p-501c7b1f.entry.js} +19 -22
  646. package/dist/genexus-ide-ui/p-501c7b1f.entry.js.map +1 -0
  647. package/dist/genexus-ide-ui/{p-c747afac.entry.js → p-50eaa96d.entry.js} +99 -111
  648. package/dist/genexus-ide-ui/p-50eaa96d.entry.js.map +1 -0
  649. package/dist/genexus-ide-ui/p-51601b85.js +145 -0
  650. package/dist/genexus-ide-ui/p-51601b85.js.map +1 -0
  651. package/dist/genexus-ide-ui/{p-289c3290.js → p-549b8f0c.js} +16 -15
  652. package/dist/{esm/form-validation-cd0215c6.js.map → genexus-ide-ui/p-549b8f0c.js.map} +1 -1
  653. package/dist/genexus-ide-ui/{p-007173ef.entry.js → p-5a42428d.entry.js} +16 -19
  654. package/dist/genexus-ide-ui/p-5a42428d.entry.js.map +1 -0
  655. package/dist/genexus-ide-ui/{p-ded7444c.entry.js → p-5da3e999.entry.js} +16 -17
  656. package/dist/genexus-ide-ui/p-5da3e999.entry.js.map +1 -0
  657. package/dist/genexus-ide-ui/{p-3ecdb582.entry.js → p-5e05f830.entry.js} +33 -39
  658. package/dist/genexus-ide-ui/p-5e05f830.entry.js.map +1 -0
  659. package/dist/genexus-ide-ui/{p-fe490103.entry.js → p-6168d48c.entry.js} +165 -174
  660. package/dist/genexus-ide-ui/p-6168d48c.entry.js.map +1 -0
  661. package/dist/genexus-ide-ui/{p-76c3fc51.entry.js → p-66d9269a.entry.js} +17 -22
  662. package/dist/genexus-ide-ui/p-66d9269a.entry.js.map +1 -0
  663. package/dist/genexus-ide-ui/{p-038c3f9b.entry.js → p-6dc05a27.entry.js} +4 -5
  664. package/dist/genexus-ide-ui/p-6dc05a27.entry.js.map +1 -0
  665. package/dist/genexus-ide-ui/{p-cd397078.entry.js → p-75e1aa31.entry.js} +5 -6
  666. package/dist/genexus-ide-ui/p-75e1aa31.entry.js.map +1 -0
  667. package/dist/genexus-ide-ui/{p-e502c2fd.entry.js → p-7782e1b8.entry.js} +56 -61
  668. package/dist/genexus-ide-ui/p-7782e1b8.entry.js.map +1 -0
  669. package/dist/genexus-ide-ui/{p-1bc2613e.entry.js → p-7cedb0f0.entry.js} +66 -69
  670. package/dist/genexus-ide-ui/p-7cedb0f0.entry.js.map +1 -0
  671. package/dist/genexus-ide-ui/{p-bac13202.entry.js → p-844b7117.entry.js} +17 -17
  672. package/dist/genexus-ide-ui/{p-311eedf3.js → p-857866f8.js} +8 -9
  673. package/dist/genexus-ide-ui/p-857866f8.js.map +1 -0
  674. package/dist/genexus-ide-ui/{p-74c81ca3.entry.js → p-8636a0bd.entry.js} +3 -3
  675. package/dist/genexus-ide-ui/{p-d095a37c.entry.js → p-8b046b4b.entry.js} +9 -10
  676. package/dist/genexus-ide-ui/p-8b046b4b.entry.js.map +1 -0
  677. package/dist/genexus-ide-ui/{p-4b79c3ab.entry.js → p-8f1f4126.entry.js} +10 -12
  678. package/dist/genexus-ide-ui/p-8f1f4126.entry.js.map +1 -0
  679. package/dist/genexus-ide-ui/{p-c6c955a3.entry.js → p-95f831a8.entry.js} +3 -3
  680. package/dist/genexus-ide-ui/{p-c91af626.entry.js → p-970d16ca.entry.js} +15 -15
  681. package/dist/genexus-ide-ui/{p-c91af626.entry.js.map → p-970d16ca.entry.js.map} +1 -1
  682. package/dist/genexus-ide-ui/{p-e4c2e200.entry.js → p-9a39e49c.entry.js} +6 -6
  683. package/dist/genexus-ide-ui/{p-beea29fa.entry.js → p-9a9ee1ee.entry.js} +3 -3
  684. package/dist/genexus-ide-ui/{p-961cd6c2.entry.js → p-9b238bf7.entry.js} +174 -181
  685. package/dist/genexus-ide-ui/p-9b238bf7.entry.js.map +1 -0
  686. package/dist/genexus-ide-ui/{p-54fbb568.entry.js → p-9c690c36.entry.js} +14 -17
  687. package/dist/genexus-ide-ui/p-9c690c36.entry.js.map +1 -0
  688. package/dist/genexus-ide-ui/{p-4c717aa7.entry.js → p-a6029d9a.entry.js} +117 -131
  689. package/dist/genexus-ide-ui/p-a6029d9a.entry.js.map +1 -0
  690. package/dist/genexus-ide-ui/{p-833c3585.entry.js → p-a86a8692.entry.js} +33 -39
  691. package/dist/genexus-ide-ui/p-a86a8692.entry.js.map +1 -0
  692. package/dist/genexus-ide-ui/{p-2a6683e1.entry.js → p-a8cc41e4.entry.js} +59 -62
  693. package/dist/genexus-ide-ui/p-a8cc41e4.entry.js.map +1 -0
  694. package/dist/genexus-ide-ui/{p-3d4355b4.entry.js → p-ac0438d6.entry.js} +9 -10
  695. package/dist/genexus-ide-ui/p-ac0438d6.entry.js.map +1 -0
  696. package/dist/genexus-ide-ui/{p-56331289.entry.js → p-b1833747.entry.js} +38 -45
  697. package/dist/genexus-ide-ui/p-b1833747.entry.js.map +1 -0
  698. package/dist/genexus-ide-ui/{p-6b957e82.entry.js → p-b211bca8.entry.js} +2 -2
  699. package/dist/genexus-ide-ui/{p-84618917.entry.js → p-be794132.entry.js} +229 -236
  700. package/dist/genexus-ide-ui/p-be794132.entry.js.map +1 -0
  701. package/dist/genexus-ide-ui/{p-a790c4c9.entry.js → p-bfd9066c.entry.js} +9 -9
  702. package/dist/genexus-ide-ui/p-bfd9066c.entry.js.map +1 -0
  703. package/dist/genexus-ide-ui/{p-9b5cb6b9.entry.js → p-c30b2104.entry.js} +7 -9
  704. package/dist/genexus-ide-ui/p-c30b2104.entry.js.map +1 -0
  705. package/dist/genexus-ide-ui/{p-fa18a70c.entry.js → p-c5cca204.entry.js} +17 -20
  706. package/dist/genexus-ide-ui/p-c5cca204.entry.js.map +1 -0
  707. package/dist/genexus-ide-ui/p-cdf8b082.entry.js +338 -0
  708. package/dist/genexus-ide-ui/p-cdf8b082.entry.js.map +1 -0
  709. package/dist/genexus-ide-ui/{p-8f00263d.entry.js → p-d1cc4724.entry.js} +18 -13
  710. package/dist/genexus-ide-ui/p-d1cc4724.entry.js.map +1 -0
  711. package/dist/genexus-ide-ui/{p-1dd7be84.entry.js → p-daa29451.entry.js} +14 -17
  712. package/dist/genexus-ide-ui/p-daa29451.entry.js.map +1 -0
  713. package/dist/genexus-ide-ui/{p-67762237.entry.js → p-db4750ff.entry.js} +139 -148
  714. package/dist/genexus-ide-ui/p-db4750ff.entry.js.map +1 -0
  715. package/dist/genexus-ide-ui/{p-48826a6f.entry.js → p-db4f756a.entry.js} +123 -135
  716. package/dist/genexus-ide-ui/p-db4f756a.entry.js.map +1 -0
  717. package/dist/genexus-ide-ui/{p-3e936f26.entry.js → p-e1d75f00.entry.js} +3 -3
  718. package/dist/genexus-ide-ui/{p-3e936f26.entry.js.map → p-e1d75f00.entry.js.map} +1 -1
  719. package/dist/genexus-ide-ui/{p-a59a07e2.entry.js → p-e26e05c7.entry.js} +13 -19
  720. package/dist/genexus-ide-ui/p-e26e05c7.entry.js.map +1 -0
  721. package/dist/genexus-ide-ui/{p-2027c939.entry.js → p-e37e95e7.entry.js} +4 -4
  722. package/dist/genexus-ide-ui/{p-4cbc8a8b.entry.js → p-e5571f49.entry.js} +26 -28
  723. package/dist/genexus-ide-ui/p-e5571f49.entry.js.map +1 -0
  724. package/dist/genexus-ide-ui/p-eb51429c.entry.js +317 -0
  725. package/dist/genexus-ide-ui/p-eb51429c.entry.js.map +1 -0
  726. package/dist/genexus-ide-ui/{p-29a026bb.entry.js → p-ec01c70c.entry.js} +15 -18
  727. package/dist/genexus-ide-ui/p-ec01c70c.entry.js.map +1 -0
  728. package/dist/genexus-ide-ui/{p-5ac47c69.js → p-ede7bd20.js} +6885 -6346
  729. package/dist/genexus-ide-ui/p-ede7bd20.js.map +1 -0
  730. package/dist/genexus-ide-ui/{p-e7fb3ee3.entry.js → p-f2bd9044.entry.js} +2 -2
  731. package/dist/genexus-ide-ui/{p-50f304fe.entry.js → p-f315c6e0.entry.js} +12 -14
  732. package/dist/genexus-ide-ui/{p-50f304fe.entry.js.map → p-f315c6e0.entry.js.map} +1 -1
  733. package/dist/genexus-ide-ui/{p-0550fd5f.entry.js → p-f52bcdac.entry.js} +2 -2
  734. package/dist/genexus-ide-ui/{p-a05d4963.entry.js → p-f5879a41.entry.js} +10 -10
  735. package/dist/genexus-ide-ui/{p-a05d4963.entry.js.map → p-f5879a41.entry.js.map} +1 -1
  736. package/dist/genexus-ide-ui/{p-f3f35e5c.entry.js → p-f5a48b33.entry.js} +6 -9
  737. package/dist/genexus-ide-ui/p-f5a48b33.entry.js.map +1 -0
  738. package/dist/genexus-ide-ui/{p-1e8f5da5.entry.js → p-f6ceb01a.entry.js} +4 -5
  739. package/dist/genexus-ide-ui/p-f6ceb01a.entry.js.map +1 -0
  740. package/dist/types/common/common.d.ts +1 -1
  741. package/dist/types/components/bpm/application-declaration/bpm-app-declaration.d.ts +22 -44
  742. package/dist/types/components/{_helpers → chat}/chat-container/chat-container.d.ts +13 -2
  743. package/dist/types/components/chat/chat-welcome/chat-welcome.d.ts +39 -0
  744. package/dist/types/components/chat/chat-welcome/gx-ide-assets/chat-welcome/helpers.d.ts +1 -0
  745. package/dist/types/components/{_helpers/chat-container → chat}/code-render.d.ts +1 -1
  746. package/dist/types/components.d.ts +75 -10
  747. package/dist/types/index.d.ts +1 -1
  748. package/dist/types/showcase/chat-container/callbacks.d.ts +1 -1
  749. package/dist/types/showcase/chat-container/chat.showcase.d.ts +15 -0
  750. package/package.json +5 -5
  751. package/dist/cjs/MERCURY_ASSETS-6bbcc011.js +0 -5
  752. package/dist/cjs/MERCURY_ASSETS-6bbcc011.js.map +0 -1
  753. package/dist/cjs/assets-manager-7227a74b.js +0 -7
  754. package/dist/cjs/assets-manager-7227a74b.js.map +0 -1
  755. package/dist/cjs/code-render-db7cb770.js +0 -59
  756. package/dist/cjs/code-render-db7cb770.js.map +0 -1
  757. package/dist/cjs/common-72f91a78.js.map +0 -1
  758. package/dist/cjs/form-validation-178cf461.js.map +0 -1
  759. package/dist/cjs/gx-ide-chat-container.cjs.entry.js +0 -62
  760. package/dist/cjs/gx-ide-chat-container.cjs.entry.js.map +0 -1
  761. package/dist/cjs/helpers-30f109a4.js.map +0 -1
  762. package/dist/cjs/locale-ff30a5f3.js.map +0 -1
  763. package/dist/collection/components/_helpers/chat-container/chat-container.css +0 -204
  764. package/dist/collection/components/_helpers/chat-container/chat-container.js +0 -137
  765. package/dist/collection/components/_helpers/chat-container/chat-container.js.map +0 -1
  766. package/dist/collection/components/_helpers/chat-container/code-render.js +0 -46
  767. package/dist/collection/components/_helpers/chat-container/code-render.js.map +0 -1
  768. package/dist/components/assets-manager.js +0 -5
  769. package/dist/components/assets-manager.js.map +0 -1
  770. package/dist/esm/MERCURY_ASSETS-bbdf7018.js +0 -3
  771. package/dist/esm/MERCURY_ASSETS-bbdf7018.js.map +0 -1
  772. package/dist/esm/assets-manager-0d129105.js +0 -5
  773. package/dist/esm/assets-manager-0d129105.js.map +0 -1
  774. package/dist/esm/code-render-6cbb0e63.js +0 -56
  775. package/dist/esm/code-render-6cbb0e63.js.map +0 -1
  776. package/dist/esm/common-ccb4504a.js.map +0 -1
  777. package/dist/esm/gx-ide-chat-container.entry.js +0 -58
  778. package/dist/esm/gx-ide-chat-container.entry.js.map +0 -1
  779. package/dist/esm/helpers-10479d69.js.map +0 -1
  780. package/dist/esm/locale-e5107fad.js.map +0 -1
  781. package/dist/genexus-ide-ui/p-007173ef.entry.js.map +0 -1
  782. package/dist/genexus-ide-ui/p-038c3f9b.entry.js.map +0 -1
  783. package/dist/genexus-ide-ui/p-1a74d49a.entry.js +0 -231
  784. package/dist/genexus-ide-ui/p-1a74d49a.entry.js.map +0 -1
  785. package/dist/genexus-ide-ui/p-1bc2613e.entry.js.map +0 -1
  786. package/dist/genexus-ide-ui/p-1dd7be84.entry.js.map +0 -1
  787. package/dist/genexus-ide-ui/p-1e8f5da5.entry.js.map +0 -1
  788. package/dist/genexus-ide-ui/p-22b8bdb1.entry.js.map +0 -1
  789. package/dist/genexus-ide-ui/p-289c3290.js.map +0 -1
  790. package/dist/genexus-ide-ui/p-29a026bb.entry.js.map +0 -1
  791. package/dist/genexus-ide-ui/p-2a6683e1.entry.js.map +0 -1
  792. package/dist/genexus-ide-ui/p-311eedf3.js.map +0 -1
  793. package/dist/genexus-ide-ui/p-31beae9e.entry.js.map +0 -1
  794. package/dist/genexus-ide-ui/p-3d4355b4.entry.js.map +0 -1
  795. package/dist/genexus-ide-ui/p-3ecdb582.entry.js.map +0 -1
  796. package/dist/genexus-ide-ui/p-48826a6f.entry.js.map +0 -1
  797. package/dist/genexus-ide-ui/p-4b79c3ab.entry.js.map +0 -1
  798. package/dist/genexus-ide-ui/p-4c717aa7.entry.js.map +0 -1
  799. package/dist/genexus-ide-ui/p-4cbc8a8b.entry.js.map +0 -1
  800. package/dist/genexus-ide-ui/p-530c32aa.entry.js.map +0 -1
  801. package/dist/genexus-ide-ui/p-54fbb568.entry.js.map +0 -1
  802. package/dist/genexus-ide-ui/p-55c87f23.entry.js +0 -287
  803. package/dist/genexus-ide-ui/p-55c87f23.entry.js.map +0 -1
  804. package/dist/genexus-ide-ui/p-56331289.entry.js.map +0 -1
  805. package/dist/genexus-ide-ui/p-5ac47c69.js.map +0 -1
  806. package/dist/genexus-ide-ui/p-67762237.entry.js.map +0 -1
  807. package/dist/genexus-ide-ui/p-68969051.entry.js.map +0 -1
  808. package/dist/genexus-ide-ui/p-6e4208d8.js +0 -9
  809. package/dist/genexus-ide-ui/p-6e4208d8.js.map +0 -1
  810. package/dist/genexus-ide-ui/p-76c3fc51.entry.js.map +0 -1
  811. package/dist/genexus-ide-ui/p-833c3585.entry.js.map +0 -1
  812. package/dist/genexus-ide-ui/p-84618917.entry.js.map +0 -1
  813. package/dist/genexus-ide-ui/p-8f00263d.entry.js.map +0 -1
  814. package/dist/genexus-ide-ui/p-961cd6c2.entry.js.map +0 -1
  815. package/dist/genexus-ide-ui/p-9a609b51.js.map +0 -1
  816. package/dist/genexus-ide-ui/p-9b5cb6b9.entry.js.map +0 -1
  817. package/dist/genexus-ide-ui/p-9ddea83b.js +0 -146
  818. package/dist/genexus-ide-ui/p-9ddea83b.js.map +0 -1
  819. package/dist/genexus-ide-ui/p-a59a07e2.entry.js.map +0 -1
  820. package/dist/genexus-ide-ui/p-a790c4c9.entry.js.map +0 -1
  821. package/dist/genexus-ide-ui/p-ba7d1472.entry.js.map +0 -1
  822. package/dist/genexus-ide-ui/p-be8a59fd.js +0 -107
  823. package/dist/genexus-ide-ui/p-be8a59fd.js.map +0 -1
  824. package/dist/genexus-ide-ui/p-c747afac.entry.js.map +0 -1
  825. package/dist/genexus-ide-ui/p-cd397078.entry.js.map +0 -1
  826. package/dist/genexus-ide-ui/p-d095a37c.entry.js.map +0 -1
  827. package/dist/genexus-ide-ui/p-db9c3b37.entry.js +0 -85
  828. package/dist/genexus-ide-ui/p-db9c3b37.entry.js.map +0 -1
  829. package/dist/genexus-ide-ui/p-de7f0c1f.entry.js.map +0 -1
  830. package/dist/genexus-ide-ui/p-ded7444c.entry.js.map +0 -1
  831. package/dist/genexus-ide-ui/p-e502c2fd.entry.js.map +0 -1
  832. package/dist/genexus-ide-ui/p-eea944d4.entry.js.map +0 -1
  833. package/dist/genexus-ide-ui/p-f3f35e5c.entry.js.map +0 -1
  834. package/dist/genexus-ide-ui/p-fa18a70c.entry.js.map +0 -1
  835. package/dist/genexus-ide-ui/p-fdf41406.entry.js.map +0 -1
  836. package/dist/genexus-ide-ui/p-fe490103.entry.js.map +0 -1
  837. package/dist/genexus-ide-ui/p-fecc50e4.entry.js.map +0 -1
  838. /package/dist/genexus-ide-ui/{p-59ed3f39.entry.js.map → p-02fc47cd.entry.js.map} +0 -0
  839. /package/dist/genexus-ide-ui/{p-683cb15e.entry.js.map → p-2be58a7a.entry.js.map} +0 -0
  840. /package/dist/genexus-ide-ui/{p-3b8db39e.entry.js.map → p-39c527ff.entry.js.map} +0 -0
  841. /package/dist/genexus-ide-ui/{p-50b22f23.entry.js.map → p-4d929210.entry.js.map} +0 -0
  842. /package/dist/genexus-ide-ui/{p-bac13202.entry.js.map → p-844b7117.entry.js.map} +0 -0
  843. /package/dist/genexus-ide-ui/{p-74c81ca3.entry.js.map → p-8636a0bd.entry.js.map} +0 -0
  844. /package/dist/genexus-ide-ui/{p-c6c955a3.entry.js.map → p-95f831a8.entry.js.map} +0 -0
  845. /package/dist/genexus-ide-ui/{p-e4c2e200.entry.js.map → p-9a39e49c.entry.js.map} +0 -0
  846. /package/dist/genexus-ide-ui/{p-beea29fa.entry.js.map → p-9a9ee1ee.entry.js.map} +0 -0
  847. /package/dist/genexus-ide-ui/{p-6b957e82.entry.js.map → p-b211bca8.entry.js.map} +0 -0
  848. /package/dist/genexus-ide-ui/{p-2027c939.entry.js.map → p-e37e95e7.entry.js.map} +0 -0
  849. /package/dist/genexus-ide-ui/{p-e7fb3ee3.entry.js.map → p-f2bd9044.entry.js.map} +0 -0
  850. /package/dist/genexus-ide-ui/{p-0550fd5f.entry.js.map → p-f52bcdac.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"render-suggest.js","sourceRoot":"","sources":["../../src/common/render-suggest.tsx"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAKlC,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,WAAwB,EACI,EAAE;IAC9B,IAAI,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,YAAY,CAAC,MAAM,EAAE;QACpC,OAAO,WAAW,CAAC,YAAY,CAAC,GAAG,CACjC,CAAC,IAAqB,EAA4B,EAAE;YAClD,OAAO,CACL,uBAAiB,KAAK,EAAE,IAAI,CAAC,KAAK,IAC/B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAqB,EAAE,EAAE;gBACxC,OAAO,sBAAsB,CAAC,IAAI,CAAC,CAAC;YACtC,CAAC,CAAC,CACc,CACnB,CAAC;QACJ,CAAC,CACF,CAAC;KACH;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAC7B,WAA4B,EACE,EAAE;IAChC,OAAO,CACL,4BAAsB,KAAK,EAAE,WAAW,CAAC,KAAK,IAC3C;QACC,WAAW,CAAC,WAAW,IAAI,WAAW,CAAC,KAAK;QAC5C,WAAW,CAAC,IAAI,IAAI,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC;KACjD,CACoB,CACxB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,QAAgB,EAAsB,EAAE;IAC1D,OAAO,gBAAU,KAAK,EAAC,MAAM,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAC,MAAM,GAAY,CAAC;AACxE,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-use-before-define */\nimport { h } from \"@stencil/core\";\nimport { SuggestItemData } from \"@genexus/chameleon-controls-library/dist/types/deprecated-components/suggest/suggest-list-item/ch-suggest-list-item\";\nimport { SuggestListData } from \"@genexus/chameleon-controls-library/dist/types/deprecated-components/suggest/suggest-list/ch-suggest-list\";\nimport { SuggestData } from \"@genexus/chameleon-controls-library/dist/types/deprecated-components/suggest/ch-suggest\";\n\nexport const renderSuggestLists = (\n suggestData: SuggestData\n): HTMLChSuggestListElement[] => {\n if (suggestData?.suggestLists.length) {\n return suggestData.suggestLists.map(\n (list: SuggestListData): HTMLChSuggestListElement => {\n return (\n <ch-suggest-list label={list.label}>\n {list.items.map((item: SuggestItemData) => {\n return renderSuggestListsItem(item);\n })}\n </ch-suggest-list>\n );\n }\n );\n }\n return [];\n};\n\nconst renderSuggestListsItem = (\n suggestItem: SuggestItemData\n): HTMLChSuggestListItemElement => {\n return (\n <ch-suggest-list-item value={suggestItem.value}>\n {[\n suggestItem.description || suggestItem.value,\n suggestItem.icon && renderIcon(suggestItem.icon)\n ]}\n </ch-suggest-list-item>\n );\n};\n\nconst renderIcon = (iconName: string): HTMLGxgIconElement => {\n return <gxg-icon color=\"auto\" type={iconName} slot=\"icon\"></gxg-icon>;\n};\n"]}
1
+ {"version":3,"file":"render-suggest.js","sourceRoot":"","sources":["../../src/common/render-suggest.tsx"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAKlC,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,WAAwB,EACI,EAAE;IAC9B,IAAI,WAAW,EAAE,YAAY,CAAC,MAAM,EAAE;QACpC,OAAO,WAAW,CAAC,YAAY,CAAC,GAAG,CACjC,CAAC,IAAqB,EAA4B,EAAE;YAClD,OAAO,CACL,uBAAiB,KAAK,EAAE,IAAI,CAAC,KAAK,IAC/B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAqB,EAAE,EAAE;gBACxC,OAAO,sBAAsB,CAAC,IAAI,CAAC,CAAC;YACtC,CAAC,CAAC,CACc,CACnB,CAAC;QACJ,CAAC,CACF,CAAC;KACH;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAC7B,WAA4B,EACE,EAAE;IAChC,OAAO,CACL,4BAAsB,KAAK,EAAE,WAAW,CAAC,KAAK,IAC3C;QACC,WAAW,CAAC,WAAW,IAAI,WAAW,CAAC,KAAK;QAC5C,WAAW,CAAC,IAAI,IAAI,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC;KACjD,CACoB,CACxB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,QAAgB,EAAsB,EAAE;IAC1D,OAAO,gBAAU,KAAK,EAAC,MAAM,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAC,MAAM,GAAY,CAAC;AACxE,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-use-before-define */\nimport { h } from \"@stencil/core\";\nimport { SuggestItemData } from \"@genexus/chameleon-controls-library/dist/types/deprecated-components/suggest/suggest-list-item/ch-suggest-list-item\";\nimport { SuggestListData } from \"@genexus/chameleon-controls-library/dist/types/deprecated-components/suggest/suggest-list/ch-suggest-list\";\nimport { SuggestData } from \"@genexus/chameleon-controls-library/dist/types/deprecated-components/suggest/ch-suggest\";\n\nexport const renderSuggestLists = (\n suggestData: SuggestData\n): HTMLChSuggestListElement[] => {\n if (suggestData?.suggestLists.length) {\n return suggestData.suggestLists.map(\n (list: SuggestListData): HTMLChSuggestListElement => {\n return (\n <ch-suggest-list label={list.label}>\n {list.items.map((item: SuggestItemData) => {\n return renderSuggestListsItem(item);\n })}\n </ch-suggest-list>\n );\n }\n );\n }\n return [];\n};\n\nconst renderSuggestListsItem = (\n suggestItem: SuggestItemData\n): HTMLChSuggestListItemElement => {\n return (\n <ch-suggest-list-item value={suggestItem.value}>\n {[\n suggestItem.description || suggestItem.value,\n suggestItem.icon && renderIcon(suggestItem.icon)\n ]}\n </ch-suggest-list-item>\n );\n};\n\nconst renderIcon = (iconName: string): HTMLGxgIconElement => {\n return <gxg-icon color=\"auto\" type={iconName} slot=\"icon\"></gxg-icon>;\n};\n"]}
@@ -370,6 +370,15 @@ New classes for Chameleon + Mercury
370
370
  display: contents;
371
371
  }
372
372
 
373
+ .pill-tag {
374
+ padding: 1px 4px;
375
+ border-radius: 2px;
376
+ min-inline-size: 40px;
377
+ text-align: center;
378
+ margin-inline-end: 10px;
379
+ font-size: 11px;
380
+ }
381
+
373
382
  /* - - - - - - - - - - - - - - - - - - -
374
383
  Old classes (Gemini) to be removed soon
375
384
  - - - - - - - - - - - - - - - - - - - */
@@ -2,7 +2,6 @@ import { Host, h } from "@stencil/core";
2
2
  export class GxIdeContainer {
3
3
  constructor() {
4
4
  this.headingClasses = () => {
5
- var _a;
6
5
  return {
7
6
  "heading": true,
8
7
  "heading--inactive": this.inactiveTitle,
@@ -12,7 +11,7 @@ export class GxIdeContainer {
12
11
  "heading--no-padding": this.noHeadingPadding,
13
12
  "heading--no-padding-block-end": this.noHeadingPaddingBlockEnd,
14
13
  "heading--no-gap": this.noHeadingGap,
15
- "heading--padding-top": this.headingPaddingTop && ((_a = this.containerTitle) === null || _a === void 0 ? void 0 : _a.length) > 0,
14
+ "heading--padding-top": this.headingPaddingTop && this.containerTitle?.length > 0,
16
15
  "heading--form-text-height": this.titleHeightAsInput,
17
16
  "heading--flex-row": this.flexRow
18
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../src/components/_helpers/container/container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQzE,MAAM,OAAO,cAAc;;QAgSjB,mBAAc,GAAG,GAA8C,EAAE;;YACvE,OAAO;gBACL,SAAS,EAAE,IAAI;gBACf,mBAAmB,EAAE,IAAI,CAAC,aAAa;gBACvC,kBAAkB,EAAE,IAAI,CAAC,SAAS,KAAK,WAAW;gBAClD,oBAAoB,EAAE,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,cAAc;gBACjE,CAAC,oBAAoB,I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","sourcesContent":["import { Component, Host, h, Prop, Element, State } from \"@stencil/core\";\nimport { TitleAlignment } from \"@genexus/gemini/dist/types/common/types\";\nimport { TitleType } from \"../title/title\";\n@Component({\n tag: \"gx-ide-container\",\n styleUrl: \"container.scss\",\n shadow: true\n})\nexport class GxIdeContainer {\n // 1.OWN PROPERTIES //\n\n /* GENERAL */\n\n /**\n * By setting the title to inactive, the color will be gray instead of black.\n */\n @Prop() readonly inactiveTitle: boolean = false;\n\n /**\n * The title of the container\n */\n @Prop() readonly containerTitle: string;\n\n /**\n * The title of the container\n */\n @Prop() readonly titleType: TitleType = \"primary\";\n\n /**\n * Displays a border all around the container\n */\n @Prop() readonly displayBorder: boolean = false;\n\n /**\n * Displays a border on the top\n */\n @Prop() readonly displayBorderTop: boolean = false;\n\n /**\n * Displays a border at the end\n */\n @Prop() readonly displayBorderEnd: boolean = false;\n\n /**\n * Displays a border at on the bottom\n */\n @Prop() readonly displayBorderBottom: boolean = false;\n\n /**\n * Displays a border at the start\n */\n @Prop() readonly displayBorderStart: boolean = false;\n\n /**\n * The container general padding (applies to .heading, .content, and .footer)\n */\n @Prop() readonly sectionsPadding: SectionsPadding = \"m\";\n\n /* HEADING*/\n\n /**\n * Title alignment\n */\n @Prop() readonly titleAlignment: TitleAlignment = \"center\";\n\n /**\n * Removes the border bottom from the heading\n */\n @Prop() readonly noHeadingBorder: boolean = false;\n\n /**\n * Removes the heading gap\n */\n @Prop() readonly noHeadingGap: boolean = false;\n\n /**\n * Removes the padding from the heading\n */\n @Prop() readonly noHeadingPadding: boolean = false;\n\n /**\n * Removes the padding block end from the heading\n */\n @Prop() readonly noHeadingPaddingBlockEnd: boolean = false;\n\n /**\n * Adds padding to the top of the heading\n */\n @Prop() readonly headingPaddingTop: boolean = false;\n\n /**\n * The heading justification\n */\n @Prop() readonly headingJustify: HeadingJustify = \"center\";\n\n /**\n * It forces the .heading__title min-height to be as tall as the gxg-form-text height. This is useful when you are displaying two gx-ide-container's on the same row, both of them display a title, and one of them displays a gxg-form-text in the header (usually used to filter content). Without this property set to true, the .heading without a gxg-from-text would be shorter. At the time of writing, this is used on ww-images.\n */\n @Prop() readonly titleHeightAsInput: boolean = false;\n\n /**\n * Makes the header (.heading) display flex:row, instad of the default flex:column.\n */\n @Prop() readonly flexRow: boolean = false;\n\n /* CONTENT */\n\n /**\n * Makes the content a flex container\n */\n @Prop() readonly flexContent: boolean = false;\n\n /**\n * Removes the border-top from the content\n */\n @Prop() readonly noContentBorderTop: boolean = false;\n\n /**\n * Removes the padding from the content\n */\n @Prop() readonly noContentPadding: boolean = false;\n\n /**\n * Removes the gap from the content\n */\n @Prop() readonly noContentGap: boolean = false;\n\n /**\n * Align items\n */\n @Prop() readonly alignItems: AlignItems = undefined;\n\n /**\n * Justify content\n */\n @Prop() readonly justifyContent: JustifyContent = undefined;\n\n /**\n * Display border end on the content\n */\n @Prop() readonly contentBorderEnd: boolean = false;\n\n /* FOOTER ABOVE */\n\n /**\n * Makes the above footer vertical padding slimmer\n */\n @Prop() readonly slimmerAboveFooter: boolean = false;\n\n /**\n * Removes the above padding from the footer\n */\n @Prop() readonly noAboveFooterPadding: boolean = false;\n\n /**\n * Removes the above border top\n */\n @Prop() readonly noBorderAboveFooter: boolean = false;\n\n /* FOOTER > START and FOOTER > END*/\n\n /**\n * Makes the footer vertical padding slimmer\n */\n @Prop() readonly slimmerFooter: boolean = false;\n\n /**\n * Removes the padding from the footer\n */\n @Prop() readonly noFooterPadding: boolean = false;\n\n /**\n * The footer justification\n */\n @Prop() readonly footerJustify: FooterJustify = \"end\";\n\n /**\n * Removes the border top from the footer\n */\n @Prop() readonly noBorderFooter: boolean = false;\n\n // 2. REFERENCE TO ELEMENTS //\n\n @Element() el: HTMLGxIdeContainerElement;\n\n // 3.STATE() VARIABLES //\n\n /**\n * A boolean variable indicating if the component has or not any content for the 'header' slot\n */\n @State() hasHeaderSlot = false;\n\n /**\n * A boolean variable indicating if the component has or not any content slotted content (regular slotted content, without 'slot' attribute)\n */\n @State() hasSlottedContent = false;\n\n /**\n * A boolean variable indicating if the component has or not any content for the 'footer' slot\n */\n @State() hasFooterSlot = false;\n\n /**\n * A boolean variable indicating if the component has or not any content for the 'footer' slot\n */\n @State() hasAboveFooterSlot = false;\n\n /**\n * A boolean variable indicating that the container only has the heading section\n */\n @State() hasOnlyHeading = false;\n\n /**\n * A boolean variable indicating that the container only has the content section\n */\n @State() hasOnlyContent = false;\n\n /**\n * A boolean variable indicating that the container only has the footer section\n */\n @State() hasOnlyFooter = false;\n\n // 4.PUBLIC PROPERTY API //\n\n // 5.EVENTS (EMIT) //\n\n // 6.COMPONENT LIFECYCLE EVENTS //\n\n componentWillLoad() {\n this.evaluateSlots();\n }\n\n // 7.LISTENERS //\n\n // 8.PUBLIC METHODS API //\n\n // 9.LOCAL METHODS //\n\n private evaluateSlots() {\n // header\n const headerSlot = this.el.querySelectorAll(':scope > [slot=\"header\"]');\n if (headerSlot.length) {\n this.hasHeaderSlot = true;\n }\n // content\n const slottedContent = this.el.querySelectorAll(\":scope > :not([slot])\");\n if (slottedContent.length) {\n this.hasSlottedContent = true;\n }\n // footer\n const footerAboveSlot = this.el.querySelectorAll(\n ':scope > [slot=\"footer-above\"]'\n );\n const footerStartSlot = this.el.querySelectorAll(\n ':scope > [slot=\"footer-start\"]'\n );\n const footerEndSlot = this.el.querySelectorAll(\n ':scope > [slot=\"footer-end\"]'\n );\n if (footerStartSlot.length || footerEndSlot.length) {\n this.hasFooterSlot = true;\n }\n if (footerAboveSlot.length) {\n this.hasAboveFooterSlot = true;\n }\n }\n\n private evaluateSections() {\n // has only heading\n if (\n !this.hasSlottedContent &&\n !this.hasFooterSlot &&\n !this.hasAboveFooterSlot\n ) {\n this.hasOnlyHeading = true;\n }\n // has only content\n if (\n this.hasSlottedContent &&\n !this.containerTitle &&\n !this.hasHeaderSlot &&\n !this.hasAboveFooterSlot &&\n !this.hasFooterSlot\n ) {\n this.hasOnlyContent = true;\n }\n // has only footer\n if (\n !this.hasSlottedContent &&\n !this.containerTitle &&\n !this.hasAboveFooterSlot\n ) {\n this.hasOnlyFooter = true;\n }\n }\n\n private headingClasses = (): string | { [className: string]: boolean } => {\n return {\n \"heading\": true,\n \"heading--inactive\": this.inactiveTitle,\n \"heading--slimmer\": this.titleType === \"secondary\",\n \"heading--no-border\": this.noHeadingBorder || this.hasOnlyHeading,\n [`heading--justify-${this.headingJustify}`]: true,\n \"heading--no-padding\": this.noHeadingPadding,\n \"heading--no-padding-block-end\": this.noHeadingPaddingBlockEnd,\n \"heading--no-gap\": this.noHeadingGap,\n \"heading--padding-top\":\n this.headingPaddingTop && this.containerTitle?.length > 0,\n \"heading--form-text-height\": this.titleHeightAsInput,\n \"heading--flex-row\": this.flexRow\n };\n };\n\n private contentClasses = (): string | { [className: string]: boolean } => {\n return {\n \"content\": true,\n \"content--flex\": this.flexContent,\n \"content--no-padding\": this.noContentPadding,\n \"content--no-gap\": this.noContentGap,\n \"content--no-border-top\": this.noContentBorderTop,\n \"content--border-end\": this.contentBorderEnd,\n [`content--align-items-${this.alignItems}`]:\n this.alignItems !== undefined,\n [`content--justify-content-${this.justifyContent}`]:\n this.justifyContent !== undefined\n };\n };\n\n private aboveFooter = (): any | null => {\n return this.hasAboveFooterSlot ? (\n <footer\n class={{\n \"footer-above\": true,\n \"footer-above--no-border-top\": this.noBorderAboveFooter,\n \"footer-above--no-padding\": this.noAboveFooterPadding,\n \"footer-above--slimmer\": this.slimmerFooter\n }}\n >\n <slot name=\"footer-above\"></slot>\n </footer>\n ) : null;\n };\n\n private footer = (): any | null => {\n return this.hasFooterSlot ? (\n <footer\n class={{\n \"footer\": true,\n \"footer--no-border\":\n this.hasOnlyFooter ||\n !this.hasSlottedContent ||\n this.noBorderFooter,\n [`footer--justify-${this.footerJustify}`]: true,\n [`footer--justify-${this.footerJustify}`]: true,\n \"footer--no-padding\": this.noFooterPadding,\n \"footer--slimmer\": this.slimmerFooter\n }}\n >\n <div class=\"footer__start\">\n <slot name=\"footer-start\"></slot>\n </div>\n <div class=\"footer__end\">\n <slot name=\"footer-end\"></slot>\n </div>\n </footer>\n ) : null;\n };\n\n // 10.RENDER() FUNCTION //\n\n render() {\n this.evaluateSections();\n const result = [\n this.containerTitle || this.hasHeaderSlot ? (\n <header class={this.headingClasses()}>\n {this.containerTitle ? (\n <gx-ide-title\n class=\"heading__title\"\n type={this.titleType}\n alignment={this.titleAlignment as any}\n >\n {this.containerTitle}\n </gx-ide-title>\n ) : null}\n {this.hasHeaderSlot ? (\n <div class=\"heading__inner-wrapper\">\n <slot name=\"header\"></slot>\n </div>\n ) : null}\n </header>\n ) : null,\n this.hasSlottedContent ? (\n <div class={this.contentClasses()} part=\"content\">\n <slot></slot>\n </div>\n ) : null,\n this.aboveFooter(),\n this.footer()\n ];\n\n return (\n <Host>\n <div\n class={{\n \"container\": true,\n [`container--padding-${this.sectionsPadding}`]: true,\n \"container--display-border\": this.displayBorder,\n \"container--display-border-top\": this.displayBorderTop,\n \"container--display-border-end\": this.displayBorderEnd,\n \"container--display-border-bottom\": this.displayBorderBottom,\n \"container--display-border-start\": this.displayBorderStart,\n \"container--only-content\": this.hasOnlyContent,\n \"container--no-header\": !this.hasHeaderSlot && !this.containerTitle,\n \"container--no-footer\":\n !this.hasFooterSlot && !this.hasAboveFooterSlot\n }}\n >\n {result}\n </div>\n </Host>\n );\n }\n}\n\nexport type HeadingJustify = \"start\" | \"center\" | \"end\";\nexport type FooterJustify = \"start\" | \"center\" | \"end\";\nexport type SectionsPadding = \"s\" | \"m\" | \"l\";\nexport type AlignItems = \"start\" | \"center\" | \"end\";\nexport type JustifyContent = \"start\" | \"center\" | \"end\";\n"]}
1
+ {"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../src/components/_helpers/container/container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQzE,MAAM,OAAO,cAAc;;Q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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Element, State } from \"@stencil/core\";\nimport { TitleAlignment } from \"@genexus/gemini/dist/types/common/types\";\nimport { TitleType } from \"../title/title\";\n@Component({\n tag: \"gx-ide-container\",\n styleUrl: \"container.scss\",\n shadow: true\n})\nexport class GxIdeContainer {\n // 1.OWN PROPERTIES //\n\n /* GENERAL */\n\n /**\n * By setting the title to inactive, the color will be gray instead of black.\n */\n @Prop() readonly inactiveTitle: boolean = false;\n\n /**\n * The title of the container\n */\n @Prop() readonly containerTitle: string;\n\n /**\n * The title of the container\n */\n @Prop() readonly titleType: TitleType = \"primary\";\n\n /**\n * Displays a border all around the container\n */\n @Prop() readonly displayBorder: boolean = false;\n\n /**\n * Displays a border on the top\n */\n @Prop() readonly displayBorderTop: boolean = false;\n\n /**\n * Displays a border at the end\n */\n @Prop() readonly displayBorderEnd: boolean = false;\n\n /**\n * Displays a border at on the bottom\n */\n @Prop() readonly displayBorderBottom: boolean = false;\n\n /**\n * Displays a border at the start\n */\n @Prop() readonly displayBorderStart: boolean = false;\n\n /**\n * The container general padding (applies to .heading, .content, and .footer)\n */\n @Prop() readonly sectionsPadding: SectionsPadding = \"m\";\n\n /* HEADING*/\n\n /**\n * Title alignment\n */\n @Prop() readonly titleAlignment: TitleAlignment = \"center\";\n\n /**\n * Removes the border bottom from the heading\n */\n @Prop() readonly noHeadingBorder: boolean = false;\n\n /**\n * Removes the heading gap\n */\n @Prop() readonly noHeadingGap: boolean = false;\n\n /**\n * Removes the padding from the heading\n */\n @Prop() readonly noHeadingPadding: boolean = false;\n\n /**\n * Removes the padding block end from the heading\n */\n @Prop() readonly noHeadingPaddingBlockEnd: boolean = false;\n\n /**\n * Adds padding to the top of the heading\n */\n @Prop() readonly headingPaddingTop: boolean = false;\n\n /**\n * The heading justification\n */\n @Prop() readonly headingJustify: HeadingJustify = \"center\";\n\n /**\n * It forces the .heading__title min-height to be as tall as the gxg-form-text height. This is useful when you are displaying two gx-ide-container's on the same row, both of them display a title, and one of them displays a gxg-form-text in the header (usually used to filter content). Without this property set to true, the .heading without a gxg-from-text would be shorter. At the time of writing, this is used on ww-images.\n */\n @Prop() readonly titleHeightAsInput: boolean = false;\n\n /**\n * Makes the header (.heading) display flex:row, instad of the default flex:column.\n */\n @Prop() readonly flexRow: boolean = false;\n\n /* CONTENT */\n\n /**\n * Makes the content a flex container\n */\n @Prop() readonly flexContent: boolean = false;\n\n /**\n * Removes the border-top from the content\n */\n @Prop() readonly noContentBorderTop: boolean = false;\n\n /**\n * Removes the padding from the content\n */\n @Prop() readonly noContentPadding: boolean = false;\n\n /**\n * Removes the gap from the content\n */\n @Prop() readonly noContentGap: boolean = false;\n\n /**\n * Align items\n */\n @Prop() readonly alignItems: AlignItems = undefined;\n\n /**\n * Justify content\n */\n @Prop() readonly justifyContent: JustifyContent = undefined;\n\n /**\n * Display border end on the content\n */\n @Prop() readonly contentBorderEnd: boolean = false;\n\n /* FOOTER ABOVE */\n\n /**\n * Makes the above footer vertical padding slimmer\n */\n @Prop() readonly slimmerAboveFooter: boolean = false;\n\n /**\n * Removes the above padding from the footer\n */\n @Prop() readonly noAboveFooterPadding: boolean = false;\n\n /**\n * Removes the above border top\n */\n @Prop() readonly noBorderAboveFooter: boolean = false;\n\n /* FOOTER > START and FOOTER > END*/\n\n /**\n * Makes the footer vertical padding slimmer\n */\n @Prop() readonly slimmerFooter: boolean = false;\n\n /**\n * Removes the padding from the footer\n */\n @Prop() readonly noFooterPadding: boolean = false;\n\n /**\n * The footer justification\n */\n @Prop() readonly footerJustify: FooterJustify = \"end\";\n\n /**\n * Removes the border top from the footer\n */\n @Prop() readonly noBorderFooter: boolean = false;\n\n // 2. REFERENCE TO ELEMENTS //\n\n @Element() el: HTMLGxIdeContainerElement;\n\n // 3.STATE() VARIABLES //\n\n /**\n * A boolean variable indicating if the component has or not any content for the 'header' slot\n */\n @State() hasHeaderSlot = false;\n\n /**\n * A boolean variable indicating if the component has or not any content slotted content (regular slotted content, without 'slot' attribute)\n */\n @State() hasSlottedContent = false;\n\n /**\n * A boolean variable indicating if the component has or not any content for the 'footer' slot\n */\n @State() hasFooterSlot = false;\n\n /**\n * A boolean variable indicating if the component has or not any content for the 'footer' slot\n */\n @State() hasAboveFooterSlot = false;\n\n /**\n * A boolean variable indicating that the container only has the heading section\n */\n @State() hasOnlyHeading = false;\n\n /**\n * A boolean variable indicating that the container only has the content section\n */\n @State() hasOnlyContent = false;\n\n /**\n * A boolean variable indicating that the container only has the footer section\n */\n @State() hasOnlyFooter = false;\n\n // 4.PUBLIC PROPERTY API //\n\n // 5.EVENTS (EMIT) //\n\n // 6.COMPONENT LIFECYCLE EVENTS //\n\n componentWillLoad() {\n this.evaluateSlots();\n }\n\n // 7.LISTENERS //\n\n // 8.PUBLIC METHODS API //\n\n // 9.LOCAL METHODS //\n\n private evaluateSlots() {\n // header\n const headerSlot = this.el.querySelectorAll(':scope > [slot=\"header\"]');\n if (headerSlot.length) {\n this.hasHeaderSlot = true;\n }\n // content\n const slottedContent = this.el.querySelectorAll(\":scope > :not([slot])\");\n if (slottedContent.length) {\n this.hasSlottedContent = true;\n }\n // footer\n const footerAboveSlot = this.el.querySelectorAll(\n ':scope > [slot=\"footer-above\"]'\n );\n const footerStartSlot = this.el.querySelectorAll(\n ':scope > [slot=\"footer-start\"]'\n );\n const footerEndSlot = this.el.querySelectorAll(\n ':scope > [slot=\"footer-end\"]'\n );\n if (footerStartSlot.length || footerEndSlot.length) {\n this.hasFooterSlot = true;\n }\n if (footerAboveSlot.length) {\n this.hasAboveFooterSlot = true;\n }\n }\n\n private evaluateSections() {\n // has only heading\n if (\n !this.hasSlottedContent &&\n !this.hasFooterSlot &&\n !this.hasAboveFooterSlot\n ) {\n this.hasOnlyHeading = true;\n }\n // has only content\n if (\n this.hasSlottedContent &&\n !this.containerTitle &&\n !this.hasHeaderSlot &&\n !this.hasAboveFooterSlot &&\n !this.hasFooterSlot\n ) {\n this.hasOnlyContent = true;\n }\n // has only footer\n if (\n !this.hasSlottedContent &&\n !this.containerTitle &&\n !this.hasAboveFooterSlot\n ) {\n this.hasOnlyFooter = true;\n }\n }\n\n private headingClasses = (): string | { [className: string]: boolean } => {\n return {\n \"heading\": true,\n \"heading--inactive\": this.inactiveTitle,\n \"heading--slimmer\": this.titleType === \"secondary\",\n \"heading--no-border\": this.noHeadingBorder || this.hasOnlyHeading,\n [`heading--justify-${this.headingJustify}`]: true,\n \"heading--no-padding\": this.noHeadingPadding,\n \"heading--no-padding-block-end\": this.noHeadingPaddingBlockEnd,\n \"heading--no-gap\": this.noHeadingGap,\n \"heading--padding-top\":\n this.headingPaddingTop && this.containerTitle?.length > 0,\n \"heading--form-text-height\": this.titleHeightAsInput,\n \"heading--flex-row\": this.flexRow\n };\n };\n\n private contentClasses = (): string | { [className: string]: boolean } => {\n return {\n \"content\": true,\n \"content--flex\": this.flexContent,\n \"content--no-padding\": this.noContentPadding,\n \"content--no-gap\": this.noContentGap,\n \"content--no-border-top\": this.noContentBorderTop,\n \"content--border-end\": this.contentBorderEnd,\n [`content--align-items-${this.alignItems}`]:\n this.alignItems !== undefined,\n [`content--justify-content-${this.justifyContent}`]:\n this.justifyContent !== undefined\n };\n };\n\n private aboveFooter = (): any | null => {\n return this.hasAboveFooterSlot ? (\n <footer\n class={{\n \"footer-above\": true,\n \"footer-above--no-border-top\": this.noBorderAboveFooter,\n \"footer-above--no-padding\": this.noAboveFooterPadding,\n \"footer-above--slimmer\": this.slimmerFooter\n }}\n >\n <slot name=\"footer-above\"></slot>\n </footer>\n ) : null;\n };\n\n private footer = (): any | null => {\n return this.hasFooterSlot ? (\n <footer\n class={{\n \"footer\": true,\n \"footer--no-border\":\n this.hasOnlyFooter ||\n !this.hasSlottedContent ||\n this.noBorderFooter,\n [`footer--justify-${this.footerJustify}`]: true,\n [`footer--justify-${this.footerJustify}`]: true,\n \"footer--no-padding\": this.noFooterPadding,\n \"footer--slimmer\": this.slimmerFooter\n }}\n >\n <div class=\"footer__start\">\n <slot name=\"footer-start\"></slot>\n </div>\n <div class=\"footer__end\">\n <slot name=\"footer-end\"></slot>\n </div>\n </footer>\n ) : null;\n };\n\n // 10.RENDER() FUNCTION //\n\n render() {\n this.evaluateSections();\n const result = [\n this.containerTitle || this.hasHeaderSlot ? (\n <header class={this.headingClasses()}>\n {this.containerTitle ? (\n <gx-ide-title\n class=\"heading__title\"\n type={this.titleType}\n alignment={this.titleAlignment as any}\n >\n {this.containerTitle}\n </gx-ide-title>\n ) : null}\n {this.hasHeaderSlot ? (\n <div class=\"heading__inner-wrapper\">\n <slot name=\"header\"></slot>\n </div>\n ) : null}\n </header>\n ) : null,\n this.hasSlottedContent ? (\n <div class={this.contentClasses()} part=\"content\">\n <slot></slot>\n </div>\n ) : null,\n this.aboveFooter(),\n this.footer()\n ];\n\n return (\n <Host>\n <div\n class={{\n \"container\": true,\n [`container--padding-${this.sectionsPadding}`]: true,\n \"container--display-border\": this.displayBorder,\n \"container--display-border-top\": this.displayBorderTop,\n \"container--display-border-end\": this.displayBorderEnd,\n \"container--display-border-bottom\": this.displayBorderBottom,\n \"container--display-border-start\": this.displayBorderStart,\n \"container--only-content\": this.hasOnlyContent,\n \"container--no-header\": !this.hasHeaderSlot && !this.containerTitle,\n \"container--no-footer\":\n !this.hasFooterSlot && !this.hasAboveFooterSlot\n }}\n >\n {result}\n </div>\n </Host>\n );\n }\n}\n\nexport type HeadingJustify = \"start\" | \"center\" | \"end\";\nexport type FooterJustify = \"start\" | \"center\" | \"end\";\nexport type SectionsPadding = \"s\" | \"m\" | \"l\";\nexport type AlignItems = \"start\" | \"center\" | \"end\";\nexport type JustifyContent = \"start\" | \"center\" | \"end\";\n"]}
@@ -65,8 +65,7 @@ export class GxIdeDirectorySelector {
65
65
  }
66
66
  // 10.RENDER() FUNCTION //
67
67
  render() {
68
- var _a;
69
- return (h(Host, null, this.label ? (h("gxg-label", { labelPosition: this.labelPosition, center: this.centerLabel }, this.label)) : null, h("div", { class: "wrapper" }, h("gxg-form-text", { part: "input", value: this.value, onValueChanged: this.valueChangedHandler }), h("gxg-button", { part: "button-select", onClick: this.btnSelectClickHandler, "aria-label": (_a = this.accessibilityLabels) === null || _a === void 0 ? void 0 : _a.buttonSelectLabel, type: "secondary-icon-only", icon: this.icon, disabled: !this.selectDirectoryCallback, onMouseEnter: this.buttonSelectMouseEnterHandler, onMouseLeave: this.buttonSelectMouseLeaveHandler }))));
68
+ return (h(Host, null, this.label ? (h("gxg-label", { labelPosition: this.labelPosition, center: this.centerLabel }, this.label)) : null, h("div", { class: "wrapper" }, h("gxg-form-text", { part: "input", value: this.value, onValueChanged: this.valueChangedHandler }), h("gxg-button", { part: "button-select", onClick: this.btnSelectClickHandler, "aria-label": this.accessibilityLabels?.buttonSelectLabel, type: "secondary-icon-only", icon: this.icon, disabled: !this.selectDirectoryCallback, onMouseEnter: this.buttonSelectMouseEnterHandler, onMouseLeave: this.buttonSelectMouseLeaveHandler }))));
70
69
  }
71
70
  static get is() { return "gx-ide-directory-selector"; }
72
71
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"directory-selector.js","sourceRoot":"","sources":["../../../../src/components/_helpers/directory-selector/directory-selector.tsx"],"names":[],"mappings":"AAAA,qBAAqB;AACrB,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChE,6BAA6B;AAC7B,oBAAoB;AAOpB,MAAM,OAAO,sBAAsB;;QACjC;;;;;;;;;;;;QAYA;QAEA,gCAAgC;QAExB,gBAAW,GAAG,gBAAgB,CAAC;QAuD/B,0BAAqB,GAA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ACR,WAAK,KAAK,EAAC,SAAS;gBAClB,qBACE,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,cAAc,EAAE,IAAI,CAAC,mBAAmB,GACzB;gBACjB,kBACE,IAAI,EAAC,eAAe,EACpB,OAAO,EAAE,IAAI,CAAC,qBAAqB,gBACvB,MAAA,IAAI,CAAC,mBAAmB,0CAAE,iBAAiB,EACvD,IAAI,EAAC,qBAAqB,EAC1B,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,CAAC,IAAI,CAAC,uBAAuB,EACvC,YAAY,EAAE,IAAI,CAAC,6BAA6B,EAChD,YAAY,EAAE,IAAI,CAAC,6BAA6B,GACpC,CACV,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["/* STENCIL IMPORTS */\nimport { Component, Host, h, Prop, State } from \"@stencil/core\";\n/* OTHER LIBRARIES IMPORTS */\n/* CUSTOM IMPORTS */\n\n@Component({\n tag: \"gx-ide-directory-selector\",\n styleUrl: \"directory-selector.scss\",\n shadow: true\n})\nexport class GxIdeDirectorySelector {\n /*\nINDEX:\n1.OWN PROPERTIES \n2.REFERENCE TO ELEMENTS\n3.STATE() VARIABLES\n4.PUBLIC PROPERTY API | WATCH'S\n5.EVENTS (EMIT)\n6.METHODS\n7.LISTENERS\n8.PUBLIC METHODS API\n9.LOCAL METHODS\n10.RENDER() FUNCTION\n*/\n\n // 1.OWN PROPERTIES | WATCH'S //\n\n private defaultIcon = \"objects/folder\";\n\n // 2. REFERENCE TO ELEMENTS //\n\n // 3.STATE() VARIABLES //\n\n @State() icon = this.defaultIcon;\n\n // 4.PUBLIC PROPERTY API | WATCH'S //\n\n /**\n * This property provides the user a way to define custom aria-label descriptions.\n */\n @Prop() readonly accessibilityLabels: DirectorySelectorLabels = {\n buttonSelectLabel: \"displays the directory selector\"\n };\n\n /**\n * The label associated with the input (optional)\n */\n @Prop() readonly label?: string;\n\n /**\n * The label position\n */\n @Prop({ reflect: true }) readonly labelPosition?: LabelPosition = \"start\";\n\n /**\n * Centers the label\n */\n @Prop({ mutable: true }) centerLabel = true;\n\n /**\n * The label width\n */\n @Prop() readonly labelWidth: string;\n\n /**\n * Callback that will be called when the user presses the action button. Returns the new value (directory path) assigned to the component.\n */\n @Prop() readonly selectDirectoryCallback: () => Promise<string>;\n\n /**\n * Value currently assigned.\n */\n @Prop({ mutable: true }) value: string;\n\n // 5.EVENTS (EMIT) //\n\n // 6.METHODS //\n\n componentWillLoad() {\n this.evaluateLabelPosition();\n }\n\n private evaluateLabelPosition = (): void => {\n if (this.label && this.labelPosition === \"above\") {\n this.centerLabel = false;\n }\n };\n\n // 7.LISTENERS //\n\n // 8.PUBLIC METHODS API //\n\n // 9.LOCAL METHODS //\n\n private btnSelectClickHandler = () => {\n this.selectDirectoryCallback &&\n this.selectDirectoryCallback().then(result => {\n if (result) {\n this.value = result;\n } else {\n // to be defined\n }\n });\n };\n\n private valueChangedHandler = (e: CustomEvent<string>) => {\n this.value = e.detail;\n };\n\n private buttonSelectMouseEnterHandler = (): void => {\n this.icon = \"objects/folder-open\";\n };\n\n private buttonSelectMouseLeaveHandler = (): void => {\n this.icon = this.defaultIcon;\n };\n\n // 10.RENDER() FUNCTION //\n\n render() {\n return (\n <Host>\n {this.label ? (\n <gxg-label\n labelPosition={this.labelPosition}\n center={this.centerLabel}\n >\n {this.label}\n </gxg-label>\n ) : null}\n <div class=\"wrapper\">\n <gxg-form-text\n part=\"input\"\n value={this.value}\n onValueChanged={this.valueChangedHandler}\n ></gxg-form-text>\n <gxg-button\n part=\"button-select\"\n onClick={this.btnSelectClickHandler}\n aria-label={this.accessibilityLabels?.buttonSelectLabel}\n type=\"secondary-icon-only\"\n icon={this.icon}\n disabled={!this.selectDirectoryCallback}\n onMouseEnter={this.buttonSelectMouseEnterHandler}\n onMouseLeave={this.buttonSelectMouseLeaveHandler}\n ></gxg-button>\n </div>\n </Host>\n );\n }\n}\n\nexport type DirectorySelectorLabels = {\n buttonSelectLabel: string;\n};\nexport type LabelPosition = \"start\" | \"above\";\n"]}
1
+ {"version":3,"file":"directory-selector.js","sourceRoot":"","sources":["../../../../src/components/_helpers/directory-selector/directory-selector.tsx"],"names":[],"mappings":"AAAA,qBAAqB;AACrB,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChE,6BAA6B;AAC7B,oBAAoB;AAOpB,MAAM,OAAO,sBAAsB;;QACjC;;;;;;;;;;;;QAYA;QAEA,gCAAgC;QAExB,gBAAW,GAAG,gBAAgB,CAAC;QAuD/B,0BAAqB,GAAG,GAAS,EAAE;YACzC,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,aAAa,KAAK,OAAO,EAAE;gBAChD,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;aAC1B;QACH,CAAC,CAAC;QAEF,iBAAiB;QAEjB,0BAA0B;QAE1B,qBAAqB;QAEb,0BAAqB,GAAG,GAAG,EAAE;YACnC,IAAI,CAAC,uBAAuB;gBAC1B,IAAI,CAAC,uBAAuB,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;oBAC3C,IAAI,MAAM,EAAE;wBACV,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC;qBACrB;yBAAM;wBACL,gBAAgB;qBACjB;gBACH,CAAC,CAAC,CAAC;QACP,CAAC,CAAC;QAEM,wBAAmB,GAAG,CAAC,CAAsB,EAAE,EAAE;YACvD,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACxB,CAAC,CAAC;QAEM,kCAA6B,GAAG,GAAS,EAAE;YACjD,IAAI,CAAC,I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;;;;;;CACF","sourcesContent":["/* STENCIL IMPORTS */\nimport { Component, Host, h, Prop, State } from \"@stencil/core\";\n/* OTHER LIBRARIES IMPORTS */\n/* CUSTOM IMPORTS */\n\n@Component({\n tag: \"gx-ide-directory-selector\",\n styleUrl: \"directory-selector.scss\",\n shadow: true\n})\nexport class GxIdeDirectorySelector {\n /*\nINDEX:\n1.OWN PROPERTIES \n2.REFERENCE TO ELEMENTS\n3.STATE() VARIABLES\n4.PUBLIC PROPERTY API | WATCH'S\n5.EVENTS (EMIT)\n6.METHODS\n7.LISTENERS\n8.PUBLIC METHODS API\n9.LOCAL METHODS\n10.RENDER() FUNCTION\n*/\n\n // 1.OWN PROPERTIES | WATCH'S //\n\n private defaultIcon = \"objects/folder\";\n\n // 2. REFERENCE TO ELEMENTS //\n\n // 3.STATE() VARIABLES //\n\n @State() icon = this.defaultIcon;\n\n // 4.PUBLIC PROPERTY API | WATCH'S //\n\n /**\n * This property provides the user a way to define custom aria-label descriptions.\n */\n @Prop() readonly accessibilityLabels: DirectorySelectorLabels = {\n buttonSelectLabel: \"displays the directory selector\"\n };\n\n /**\n * The label associated with the input (optional)\n */\n @Prop() readonly label?: string;\n\n /**\n * The label position\n */\n @Prop({ reflect: true }) readonly labelPosition?: LabelPosition = \"start\";\n\n /**\n * Centers the label\n */\n @Prop({ mutable: true }) centerLabel = true;\n\n /**\n * The label width\n */\n @Prop() readonly labelWidth: string;\n\n /**\n * Callback that will be called when the user presses the action button. Returns the new value (directory path) assigned to the component.\n */\n @Prop() readonly selectDirectoryCallback: () => Promise<string>;\n\n /**\n * Value currently assigned.\n */\n @Prop({ mutable: true }) value: string;\n\n // 5.EVENTS (EMIT) //\n\n // 6.METHODS //\n\n componentWillLoad() {\n this.evaluateLabelPosition();\n }\n\n private evaluateLabelPosition = (): void => {\n if (this.label && this.labelPosition === \"above\") {\n this.centerLabel = false;\n }\n };\n\n // 7.LISTENERS //\n\n // 8.PUBLIC METHODS API //\n\n // 9.LOCAL METHODS //\n\n private btnSelectClickHandler = () => {\n this.selectDirectoryCallback &&\n this.selectDirectoryCallback().then(result => {\n if (result) {\n this.value = result;\n } else {\n // to be defined\n }\n });\n };\n\n private valueChangedHandler = (e: CustomEvent<string>) => {\n this.value = e.detail;\n };\n\n private buttonSelectMouseEnterHandler = (): void => {\n this.icon = \"objects/folder-open\";\n };\n\n private buttonSelectMouseLeaveHandler = (): void => {\n this.icon = this.defaultIcon;\n };\n\n // 10.RENDER() FUNCTION //\n\n render() {\n return (\n <Host>\n {this.label ? (\n <gxg-label\n labelPosition={this.labelPosition}\n center={this.centerLabel}\n >\n {this.label}\n </gxg-label>\n ) : null}\n <div class=\"wrapper\">\n <gxg-form-text\n part=\"input\"\n value={this.value}\n onValueChanged={this.valueChangedHandler}\n ></gxg-form-text>\n <gxg-button\n part=\"button-select\"\n onClick={this.btnSelectClickHandler}\n aria-label={this.accessibilityLabels?.buttonSelectLabel}\n type=\"secondary-icon-only\"\n icon={this.icon}\n disabled={!this.selectDirectoryCallback}\n onMouseEnter={this.buttonSelectMouseEnterHandler}\n onMouseLeave={this.buttonSelectMouseLeaveHandler}\n ></gxg-button>\n </div>\n </Host>\n );\n }\n}\n\nexport type DirectorySelectorLabels = {\n buttonSelectLabel: string;\n};\nexport type LabelPosition = \"start\" | \"above\";\n"]}
@@ -370,6 +370,15 @@ New classes for Chameleon + Mercury
370
370
  display: contents;
371
371
  }
372
372
 
373
+ .pill-tag {
374
+ padding: 1px 4px;
375
+ border-radius: 2px;
376
+ min-inline-size: 40px;
377
+ text-align: center;
378
+ margin-inline-end: 10px;
379
+ font-size: 11px;
380
+ }
381
+
373
382
  /* - - - - - - - - - - - - - - - - - - -
374
383
  Old classes (Gemini) to be removed soon
375
384
  - - - - - - - - - - - - - - - - - - - */
@@ -39,9 +39,8 @@ export class GxIdeEntitySelector {
39
39
  constructor() {
40
40
  _GxIdeEntitySelector_componentLocale.set(this, void 0);
41
41
  _GxIdeEntitySelector_btnClearClickHandler.set(this, () => {
42
- var _a;
43
42
  this.value = this.defaultValue;
44
- this.iconSrc = (_a = this.defaultValue) === null || _a === void 0 ? void 0 : _a.iconSrc;
43
+ this.iconSrc = this.defaultValue?.iconSrc;
45
44
  });
46
45
  _GxIdeEntitySelector_btnSelectClickHandler.set(this, () => {
47
46
  this.selectEntityCallback().then(result => {
@@ -59,9 +58,8 @@ export class GxIdeEntitySelector {
59
58
  }
60
59
  });
61
60
  _GxIdeEntitySelector_renderControl.set(this, () => {
62
- var _a, _b;
63
61
  return (h("div", { part: "wrapper", class: "wrapper" }, h("ch-edit", { accessibleName: this.labelPosition === "none" &&
64
- __classPrivateFieldGet(this, _GxIdeEntitySelector_componentLocale, "f").entitySelectorInputAccessibleName, class: "input", disabled: this.disabled, name: this.name || __classPrivateFieldGet(this, _GxIdeEntitySelector_componentLocale, "f").entitySelectorNameAttribute, startImgSrc: this.iconSrc, readonly: true, value: ((_a = this.value) === null || _a === void 0 ? void 0 : _a.name) || ((_b = this.defaultValue) === null || _b === void 0 ? void 0 : _b.name), id: "entity-input" }), h("button", { part: "button-clear", class: "icon-button", "aria-label": __classPrivateFieldGet(this, _GxIdeEntitySelector_componentLocale, "f").clearButtonLabel, title: __classPrivateFieldGet(this, _GxIdeEntitySelector_componentLocale, "f").clearButtonLabel, type: "button", disabled: this.disabled, onClick: __classPrivateFieldGet(this, _GxIdeEntitySelector_btnClearClickHandler, "f"), onFocus: this.buttonHasFocus ? __classPrivateFieldGet(this, _GxIdeEntitySelector_buttonFocusHandler, "f") : undefined, onBlur: !this.buttonHasFocus ? __classPrivateFieldGet(this, _GxIdeEntitySelector_buttonFocusHandler, "f") : undefined }, h("ch-image", { class: "icon-md", src: CLEAR_ICON, disabled: this.disabled })), h("button", { class: "icon-button", "aria-label": __classPrivateFieldGet(this, _GxIdeEntitySelector_componentLocale, "f").selectButtonLabel, title: __classPrivateFieldGet(this, _GxIdeEntitySelector_componentLocale, "f").selectButtonLabel, type: "button", disabled: !this.selectEntityCallback || this.disabled, onClick: __classPrivateFieldGet(this, _GxIdeEntitySelector_btnSelectClickHandler, "f"), onBlur: !this.buttonHasFocus ? __classPrivateFieldGet(this, _GxIdeEntitySelector_buttonFocusHandler, "f") : undefined, onFocus: this.buttonHasFocus ? __classPrivateFieldGet(this, _GxIdeEntitySelector_buttonFocusHandler, "f") : undefined }, h("ch-image", { class: "icon-md", src: SELECT_DEFAULT_ICON, disabled: this.disabled }))));
62
+ __classPrivateFieldGet(this, _GxIdeEntitySelector_componentLocale, "f").entitySelectorInputAccessibleName, class: "input", disabled: this.disabled, name: this.name || __classPrivateFieldGet(this, _GxIdeEntitySelector_componentLocale, "f").entitySelectorNameAttribute, startImgSrc: this.iconSrc, readonly: true, value: this.value?.name || this.defaultValue?.name, id: "entity-input" }), h("button", { part: "button-clear", class: "icon-button", "aria-label": __classPrivateFieldGet(this, _GxIdeEntitySelector_componentLocale, "f").clearButtonLabel, title: __classPrivateFieldGet(this, _GxIdeEntitySelector_componentLocale, "f").clearButtonLabel, type: "button", disabled: this.disabled, onClick: __classPrivateFieldGet(this, _GxIdeEntitySelector_btnClearClickHandler, "f"), onFocus: this.buttonHasFocus ? __classPrivateFieldGet(this, _GxIdeEntitySelector_buttonFocusHandler, "f") : undefined, onBlur: !this.buttonHasFocus ? __classPrivateFieldGet(this, _GxIdeEntitySelector_buttonFocusHandler, "f") : undefined }, h("ch-image", { class: "icon-md", src: CLEAR_ICON, disabled: this.disabled })), h("button", { class: "icon-button", "aria-label": __classPrivateFieldGet(this, _GxIdeEntitySelector_componentLocale, "f").selectButtonLabel, title: __classPrivateFieldGet(this, _GxIdeEntitySelector_componentLocale, "f").selectButtonLabel, type: "button", disabled: !this.selectEntityCallback || this.disabled, onClick: __classPrivateFieldGet(this, _GxIdeEntitySelector_btnSelectClickHandler, "f"), onBlur: !this.buttonHasFocus ? __classPrivateFieldGet(this, _GxIdeEntitySelector_buttonFocusHandler, "f") : undefined, onFocus: this.buttonHasFocus ? __classPrivateFieldGet(this, _GxIdeEntitySelector_buttonFocusHandler, "f") : undefined }, h("ch-image", { class: "icon-md", src: SELECT_DEFAULT_ICON, disabled: this.disabled }))));
65
63
  });
66
64
  _GxIdeEntitySelector_updateIconSrc.set(this, () => {
67
65
  if (this.value && this.value.iconSrc) {
@@ -1 +1 @@
1
- {"version":3,"file":"entity-selector.js","sourceRoot":"","sources":["../../../../src/components/_helpers/entity-selector/entity-selector.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,OAAO,EACP,KAAK,EACL,KAAK,EAEL,KAAK,EACN,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAkB,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAIhD,MAAM,WAAW,GAAmB;IAClC,mBAAmB;IACnB,iBAAiB;IACjB,mBAAmB;IACnB,iBAAiB;IACjB,YAAY;CACb,CAAC;AACF,MAAM,mBAAmB,GAAG,WAAW,CAAC;IACtC,QAAQ,EAAE,cAAc;IACxB,IAAI,EAAE,sBAAsB;IAC5B,SAAS,EAAE,SAAS;CACrB,CAAC,CAAC;AACH,MAAM,UAAU,GAAG,WAAW,CAAC;IAC7B,QAAQ,EAAE,cAAc;IACxB,IAAI,EAAE,OAAO;IACb,SAAS,EAAE,SAAS;CACrB,CAAC,CAAC;AAQH,MAAM,OAAO,mBAAmB;;QAC9B,uDAAsB;QAqEtB,oDAAwB,GAAG,EAAE;;YAC3B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC;YAC/B,IAAI,CAAC,OAAO,GAAG,MAAA,IAAI,CAAC,YAAY,0CAAE,OAAO,CAAC;QAC5C,CAAC,EAAC;QAEF,qDAAyB,GAAG,EAAE;YAC5B,IAAI,CAAC,oBAAoB,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;gBACxC,IAAI,MAAM,EAAE;oBACV,IAAI,CA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AiB;QACrB,uBAAA,IAAI,wCAAoB,MAAM,MAAM,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,CAAC,MAAA,CAAC;IACpE,CAAC;IAED,iBAAiB;QACf,uBAAA,IAAI,0CAAe,MAAnB,IAAI,CAAiB,CAAC;IACxB,CAAC;IAoFD,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,IACH,KAAK,EAAE;gBACL,mCAAmC,EAAE,IAAI,CAAC,cAAc;aACzD;YAED,gBAAU,KAAK,EAAE,WAAW,GAAa;YACxC,IAAI,CAAC,aAAa,KAAK,MAAM,CAAC,CAAC,CAAC,CAC/B,WACE,KAAK,EAAE;oBACL,OAAO,EAAE,IAAI;oBACb,aAAa,EAAE,IAAI,CAAC,aAAa,KAAK,aAAa;oBACnD,cAAc,EAAE,IAAI,CAAC,aAAa,KAAK,cAAc;iBACtD;gBAED,aAAO,KAAK,EAAC,OAAO,EAAC,OAAO,EAAC,cAAc,IACxC,IAAI,CAAC,YAAY;oBAChB,uBAAA,IAAI,4CAAiB,CAAC,iCAAiC,CACnD;gBACP,uBAAA,IAAI,0CAAe,MAAnB,IAAI,CAAiB,CAClB,CACP,CAAC,CAAC,CAAC,CACF,uBAAA,IAAI,0CAAe,MAAnB,IAAI,CAAiB,CACtB,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n Element,\n State,\n Event,\n EventEmitter,\n Watch\n} from \"@stencil/core\";\n\nimport { MercuryBundles, getIconPath } from \"@genexus/mercury\";\n\nimport { Locale } from \"../../../common/locale\";\nimport { LabelPosition } from \"../../../common/types\";\nimport { EntityData } from \"../../../common/types\";\n\nconst CSS_BUNDLES: MercuryBundles = [\n \"resets/box-sizing\",\n \"components/edit\",\n \"components/button\",\n \"components/icon\",\n \"utils/form\"\n];\nconst SELECT_DEFAULT_ICON = getIconPath({\n category: \"gemini-tools\",\n name: \"show-more-horizontal\",\n colorType: \"primary\"\n});\nconst CLEAR_ICON = getIconPath({\n category: \"gemini-tools\",\n name: \"reset\",\n colorType: \"primary\"\n});\n\n@Component({\n tag: \"gx-ide-entity-selector\",\n styleUrl: \"entity-selector.scss\",\n shadow: true,\n assetsDirs: [\"gx-ide-assets/entity-selector\"]\n})\nexport class GxIdeEntitySelector {\n #componentLocale: any;\n\n @Element() el: HTMLGxIdeEntitySelectorElement;\n\n /**\n * Adds/removes a CSS class on the host. It removes focus-within styles when\n * focus is on a button.\n */\n @State() buttonHasFocus = false;\n\n @State() iconSrc: string = null;\n\n /**\n * Default value for the component. Used when the 'X' button is pressed.\n */\n @Prop() readonly defaultValue?: EntityData | null | undefined;\n\n /**\n * This attribute lets you specify if the element is disabled.\n */\n @Prop({ reflect: true }) readonly disabled: boolean = false;\n\n /**\n * The label caption. Only visible if \"labelPosition\" is not \"none\".\n * I no \"labelCaption\" is provided, a generic caption \"Select Entity\" will be provided\n */\n @Prop() readonly labelCaption?: string;\n\n /**\n * The label position\n */\n @Prop({ reflect: true }) readonly labelPosition?: LabelPosition =\n \"block-start\";\n\n /**\n * This property specifies the `name` of the control when used in a form.\n */\n @Prop({ reflect: true }) readonly name?: string;\n\n /**\n * Callback invoked when the action button is pressed. Returns the new value.\n */\n @Prop() readonly selectEntityCallback!: () => Promise<EntityData> | null;\n\n /**\n * Value currently assigned.\n */\n @Prop({ mutable: true }) value: EntityData | null | undefined;\n @Watch(\"value\")\n valueChangedHandler() {\n this.valueChanged.emit(this.value);\n this.#updateIconSrc();\n }\n\n /**\n * Emits the input value every time it changes\n */\n @Event() valueChanged: EventEmitter<EntityData>;\n\n // 6.Component Lifecycle Events\n\n async componentWillLoad() {\n this.#componentLocale = await Locale.getComponentStrings(this.el);\n }\n\n connectedCallback() {\n this.#updateIconSrc();\n }\n\n #btnClearClickHandler = () => {\n this.value = this.defaultValue;\n this.iconSrc = this.defaultValue?.iconSrc;\n };\n\n #btnSelectClickHandler = () => {\n this.selectEntityCallback().then(result => {\n if (result) {\n this.value = result;\n }\n });\n };\n\n #buttonFocusHandler = (e: FocusEvent) => {\n if (e.type === \"focus\") {\n this.buttonHasFocus = true;\n } else if (e.type === \"blur\") {\n this.buttonHasFocus = false;\n }\n };\n\n #renderControl = (): HTMLDivElement => {\n return (\n <div part=\"wrapper\" class=\"wrapper\">\n <ch-edit\n accessibleName={\n this.labelPosition === \"none\" &&\n this.#componentLocale.entitySelectorInputAccessibleName\n }\n class=\"input\"\n disabled={this.disabled}\n name={this.name || this.#componentLocale.entitySelectorNameAttribute}\n startImgSrc={this.iconSrc}\n readonly\n value={this.value?.name || this.defaultValue?.name}\n id=\"entity-input\"\n ></ch-edit>\n\n <button\n part=\"button-clear\"\n class=\"icon-button\"\n aria-label={this.#componentLocale.clearButtonLabel}\n title={this.#componentLocale.clearButtonLabel}\n type=\"button\"\n disabled={this.disabled}\n onClick={this.#btnClearClickHandler}\n onFocus={this.buttonHasFocus ? this.#buttonFocusHandler : undefined}\n onBlur={!this.buttonHasFocus ? this.#buttonFocusHandler : undefined}\n >\n <ch-image\n class=\"icon-md\"\n src={CLEAR_ICON}\n disabled={this.disabled}\n ></ch-image>\n </button>\n\n <button\n class=\"icon-button\"\n aria-label={this.#componentLocale.selectButtonLabel}\n title={this.#componentLocale.selectButtonLabel}\n type=\"button\"\n disabled={!this.selectEntityCallback || this.disabled}\n onClick={this.#btnSelectClickHandler}\n onBlur={!this.buttonHasFocus ? this.#buttonFocusHandler : undefined}\n onFocus={this.buttonHasFocus ? this.#buttonFocusHandler : undefined}\n >\n <ch-image\n class=\"icon-md\"\n src={SELECT_DEFAULT_ICON}\n disabled={this.disabled}\n ></ch-image>\n </button>\n </div>\n );\n };\n\n #updateIconSrc = () => {\n if (this.value && this.value.iconSrc) {\n this.iconSrc = this.value.iconSrc;\n }\n };\n\n render() {\n return (\n <Host\n class={{\n \"entity-selector--button-has-focus\": this.buttonHasFocus\n }}\n >\n <ch-theme model={CSS_BUNDLES}></ch-theme>\n {this.labelPosition !== \"none\" ? (\n <div\n class={{\n \"field\": true,\n \"field-block\": this.labelPosition === \"block-start\",\n \"field-inline\": this.labelPosition === \"inline-start\"\n }}\n >\n <label class=\"label\" htmlFor=\"entity-input\">\n {this.labelCaption ||\n this.#componentLocale.entitySelectorInputAccessibleName}\n </label>\n {this.#renderControl()}\n </div>\n ) : (\n this.#renderControl()\n )}\n </Host>\n );\n }\n}\n\nexport type EntitySelectorLabels = {\n buttonClearLabel: string;\n buttonSelectLabel: string;\n};\n"]}
1
+ {"version":3,"file":"entity-selector.js","sourceRoot":"","sources":["../../../../src/components/_helpers/entity-selector/entity-selector.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,OAAO,EACP,KAAK,EACL,KAAK,EAEL,KAAK,EACN,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAkB,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAIhD,MAAM,WAAW,GAAmB;IAClC,mBAAmB;IACnB,iBAAiB;IACjB,mBAAmB;IACnB,iBAAiB;IACjB,YAAY;CACb,CAAC;AACF,MAAM,mBAAmB,GAAG,WAAW,CAAC;IACtC,QAAQ,EAAE,cAAc;IACxB,IAAI,EAAE,sBAAsB;IAC5B,SAAS,EAAE,SAAS;CACrB,CAAC,CAAC;AACH,MAAM,UAAU,GAAG,WAAW,CAAC;IAC7B,QAAQ,EAAE,cAAc;IACxB,IAAI,EAAE,OAAO;IACb,SAAS,EAAE,SAAS;CACrB,CAAC,CAAC;AAQH,MAAM,OAAO,mBAAmB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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n Element,\n State,\n Event,\n EventEmitter,\n Watch\n} from \"@stencil/core\";\n\nimport { MercuryBundles, getIconPath } from \"@genexus/mercury\";\n\nimport { Locale } from \"../../../common/locale\";\nimport { LabelPosition } from \"../../../common/types\";\nimport { EntityData } from \"../../../common/types\";\n\nconst CSS_BUNDLES: MercuryBundles = [\n \"resets/box-sizing\",\n \"components/edit\",\n \"components/button\",\n \"components/icon\",\n \"utils/form\"\n];\nconst SELECT_DEFAULT_ICON = getIconPath({\n category: \"gemini-tools\",\n name: \"show-more-horizontal\",\n colorType: \"primary\"\n});\nconst CLEAR_ICON = getIconPath({\n category: \"gemini-tools\",\n name: \"reset\",\n colorType: \"primary\"\n});\n\n@Component({\n tag: \"gx-ide-entity-selector\",\n styleUrl: \"entity-selector.scss\",\n shadow: true,\n assetsDirs: [\"gx-ide-assets/entity-selector\"]\n})\nexport class GxIdeEntitySelector {\n #componentLocale: any;\n\n @Element() el: HTMLGxIdeEntitySelectorElement;\n\n /**\n * Adds/removes a CSS class on the host. It removes focus-within styles when\n * focus is on a button.\n */\n @State() buttonHasFocus = false;\n\n @State() iconSrc: string = null;\n\n /**\n * Default value for the component. Used when the 'X' button is pressed.\n */\n @Prop() readonly defaultValue?: EntityData | null | undefined;\n\n /**\n * This attribute lets you specify if the element is disabled.\n */\n @Prop({ reflect: true }) readonly disabled: boolean = false;\n\n /**\n * The label caption. Only visible if \"labelPosition\" is not \"none\".\n * I no \"labelCaption\" is provided, a generic caption \"Select Entity\" will be provided\n */\n @Prop() readonly labelCaption?: string;\n\n /**\n * The label position\n */\n @Prop({ reflect: true }) readonly labelPosition?: LabelPosition =\n \"block-start\";\n\n /**\n * This property specifies the `name` of the control when used in a form.\n */\n @Prop({ reflect: true }) readonly name?: string;\n\n /**\n * Callback invoked when the action button is pressed. Returns the new value.\n */\n @Prop() readonly selectEntityCallback!: () => Promise<EntityData> | null;\n\n /**\n * Value currently assigned.\n */\n @Prop({ mutable: true }) value: EntityData | null | undefined;\n @Watch(\"value\")\n valueChangedHandler() {\n this.valueChanged.emit(this.value);\n this.#updateIconSrc();\n }\n\n /**\n * Emits the input value every time it changes\n */\n @Event() valueChanged: EventEmitter<EntityData>;\n\n // 6.Component Lifecycle Events\n\n async componentWillLoad() {\n this.#componentLocale = await Locale.getComponentStrings(this.el);\n }\n\n connectedCallback() {\n this.#updateIconSrc();\n }\n\n #btnClearClickHandler = () => {\n this.value = this.defaultValue;\n this.iconSrc = this.defaultValue?.iconSrc;\n };\n\n #btnSelectClickHandler = () => {\n this.selectEntityCallback().then(result => {\n if (result) {\n this.value = result;\n }\n });\n };\n\n #buttonFocusHandler = (e: FocusEvent) => {\n if (e.type === \"focus\") {\n this.buttonHasFocus = true;\n } else if (e.type === \"blur\") {\n this.buttonHasFocus = false;\n }\n };\n\n #renderControl = (): HTMLDivElement => {\n return (\n <div part=\"wrapper\" class=\"wrapper\">\n <ch-edit\n accessibleName={\n this.labelPosition === \"none\" &&\n this.#componentLocale.entitySelectorInputAccessibleName\n }\n class=\"input\"\n disabled={this.disabled}\n name={this.name || this.#componentLocale.entitySelectorNameAttribute}\n startImgSrc={this.iconSrc}\n readonly\n value={this.value?.name || this.defaultValue?.name}\n id=\"entity-input\"\n ></ch-edit>\n\n <button\n part=\"button-clear\"\n class=\"icon-button\"\n aria-label={this.#componentLocale.clearButtonLabel}\n title={this.#componentLocale.clearButtonLabel}\n type=\"button\"\n disabled={this.disabled}\n onClick={this.#btnClearClickHandler}\n onFocus={this.buttonHasFocus ? this.#buttonFocusHandler : undefined}\n onBlur={!this.buttonHasFocus ? this.#buttonFocusHandler : undefined}\n >\n <ch-image\n class=\"icon-md\"\n src={CLEAR_ICON}\n disabled={this.disabled}\n ></ch-image>\n </button>\n\n <button\n class=\"icon-button\"\n aria-label={this.#componentLocale.selectButtonLabel}\n title={this.#componentLocale.selectButtonLabel}\n type=\"button\"\n disabled={!this.selectEntityCallback || this.disabled}\n onClick={this.#btnSelectClickHandler}\n onBlur={!this.buttonHasFocus ? this.#buttonFocusHandler : undefined}\n onFocus={this.buttonHasFocus ? this.#buttonFocusHandler : undefined}\n >\n <ch-image\n class=\"icon-md\"\n src={SELECT_DEFAULT_ICON}\n disabled={this.disabled}\n ></ch-image>\n </button>\n </div>\n );\n };\n\n #updateIconSrc = () => {\n if (this.value && this.value.iconSrc) {\n this.iconSrc = this.value.iconSrc;\n }\n };\n\n render() {\n return (\n <Host\n class={{\n \"entity-selector--button-has-focus\": this.buttonHasFocus\n }}\n >\n <ch-theme model={CSS_BUNDLES}></ch-theme>\n {this.labelPosition !== \"none\" ? (\n <div\n class={{\n \"field\": true,\n \"field-block\": this.labelPosition === \"block-start\",\n \"field-inline\": this.labelPosition === \"inline-start\"\n }}\n >\n <label class=\"label\" htmlFor=\"entity-input\">\n {this.labelCaption ||\n this.#componentLocale.entitySelectorInputAccessibleName}\n </label>\n {this.#renderControl()}\n </div>\n ) : (\n this.#renderControl()\n )}\n </Host>\n );\n }\n}\n\nexport type EntitySelectorLabels = {\n buttonClearLabel: string;\n buttonSelectLabel: string;\n};\n"]}
@@ -13,7 +13,7 @@ export class GxIdeListSelectorItem {
13
13
  */
14
14
  this.evaluateParentIsListSelector = () => {
15
15
  const parentList = this.el.parentElement;
16
- this.parentIsListSelector = (parentList === null || parentList === void 0 ? void 0 : parentList.nodeName) === "GX-IDE-LIST-SELECTOR";
16
+ this.parentIsListSelector = parentList?.nodeName === "GX-IDE-LIST-SELECTOR";
17
17
  this.parentIsListSelector && (this.parentList = parentList);
18
18
  };
19
19
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"list-selector-item.js","sourceRoot":"","sources":["../../../../../src/components/_helpers/list-selector/list-selector-item/list-selector-item.tsx"],"names":[],"mappings":"AAAA,UAAU;AACV,OAAO,EACL,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,OAAO,EAAC,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,EAAC,OAAO;gBACrD,WAAK,KAAK,EAAC,gBAAgB;oBACxB,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACZ,YAAM,KAAK,EAAC,cAAc;wBAAE,IAAI,CAAC,KAAK;6BAAU,CACjD,CAAC,CAAC,CAAC,IAAI;oBACP,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,CACvB,YAAM,KAAK,EAAC,uBAAuB,EAAC,IAAI,EAAC,gBAAgB;wBACvD,YAAM,IAAI,EAAC,WAAW,GAAQ,CACzB,CACR,CAAC,CAAC,CAAC,IAAI;oBACP,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CACX,gBAAU,KAAK,EAAC,SAAS,EAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAC,MAAM,GAAY,CAClE,CAAC,CAAC,CAAC,IAAI;oBACR,YAAM,KAAK,EAAC,oBAAoB,EAAC,IAAI,EAAC,aAAa,IAChD,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,eAAa,CAC3C,CACH,CACA,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["// Stencil\nimport {\n Component,\n Host,\n h,\n Prop,\n Event,\n EventEmitter,\n Element\n} from \"@stencil/core\";\n\n@Component({\n tag: \"gx-ide-list-selector-item\",\n styleUrl: \"list-selector-item.scss\",\n shadow: false\n})\nexport class GxIdeListSelectorItem {\n // 1.OWN PROPERTIES | WATCH'S //\n\n private parentIsListSelector: boolean;\n private parentList: HTMLGxIdeListSelectorElement;\n private checked: boolean;\n private name: string;\n private type: string;\n private hasUniversalSlot = false;\n private index: string = undefined;\n\n // 2. REFERENCE TO ELEMENTS //\n\n @Element() el: HTMLGxIdeListSelectorItemElement;\n\n // 3.STATE() VARIABLES //\n\n // 4.PUBLIC PROPERTY API | WATCH'S //\n\n /**\n * The item id\n */\n @Prop({ reflect: true }) readonly itemId!: string;\n\n /**\n * The item value, that acts as a label as well\n */\n @Prop() readonly itemValue!: string;\n\n /**\n * This will set the input as checked\n */\n @Prop({ mutable: true }) itemChecked = false;\n\n /**\n * It allows to select the item by clicking on it. It will emit the item-id\n */\n @Prop({ mutable: true, reflect: true }) readonly: boolean;\n\n /**\n * The presence of this property will force the item text to not-wrap, and have ellipsis\n */\n @Prop({ mutable: true, reflect: true }) ellipsis: boolean;\n\n /**\n * The gemini icon name\n */\n @Prop() readonly icon: string;\n\n /**\n * Disables the item border\n */\n @Prop({ mutable: true, reflect: true }) noBorder = false;\n\n /**\n * Displays the universal slot at the end, instead of at the benign\n */\n @Prop({ reflect: true }) readonly universalSlotEnd = false;\n\n // 5.EVENTS (EMIT) //\n\n componentWillLoad() {\n this.evaluateParentIsListSelector();\n this.evaluateType();\n this.evaluateSelectable();\n this.evaluateEllipsis();\n this.evaluateChecked();\n this.evaluateBorder();\n this.evaluateUniversalSlot();\n this.assignName();\n this.evaluateOrderedList();\n }\n\n /**\n * Emits the item data\n */\n @Event() itemSelectionChanged: EventEmitter<ItemData>;\n\n // 6.COMPONENT LIFECYCLE METHODS //\n\n // 7.LISTENERS //\n\n // 8.PUBLIC METHODS API //\n\n // 9.LOCAL METHODS //\n\n /**\n * Checks if this item parentElement is a gx-ide-list-selector, and assigns a reference\n */\n private evaluateParentIsListSelector = () => {\n const parentList = this.el.parentElement as HTMLGxIdeListSelectorElement;\n this.parentIsListSelector = parentList?.nodeName === \"GX-IDE-LIST-SELECTOR\";\n this.parentIsListSelector && (this.parentList = parentList);\n };\n\n /**\n * Determines the type of item, based on the parent list-selector 'type' property value\n */\n private evaluateType = () => {\n const parentList: HTMLGxIdeListSelectorElement = this.el\n .parentElement as HTMLGxIdeListSelectorElement;\n this.type = parentList.type === \"single-selection\" ? \"radio\" : \"checkbox\";\n };\n\n /**\n * Evaluates if is selectable, considering the parent list-selector 'selectable' property value, only if it is undefined on this item\n */\n private evaluateSelectable = () => {\n if (this.readonly === undefined && this.parentIsListSelector) {\n this.readonly = this.parentList.readonly;\n }\n };\n\n /**\n * Evaluates if text should truncate with ellipsis, considering the parent list-selector 'ellipsis' property value, only if it is undefined on this item\n */\n private evaluateEllipsis = () => {\n if (this.ellipsis === undefined && this.parentIsListSelector) {\n this.ellipsis = this.parentList.ellipsis;\n }\n };\n\n /**\n * Evaluates if this item should be initially checked, only if the parent list-selector listValue equals this item value.\n */\n private evaluateChecked = () => {\n if (\n this.checked === undefined &&\n this.parentIsListSelector &&\n this.parentList.value !== undefined &&\n this.parentList.value === this.itemValue\n ) {\n this.checked = true;\n }\n };\n\n private evaluateBorder = () => {\n if (this.parentIsListSelector) {\n this.noBorder = this.parentList.noItemsBorder;\n }\n };\n\n private evaluateUniversalSlot = () => {\n this.hasUniversalSlot = !!this.el.querySelector(\"[slot=universal]\");\n };\n\n /**\n * Gets the listName required value, that is needed for the list selection to properly work\n */\n private assignName = () => {\n this.parentIsListSelector &&\n this.parentList.listName &&\n (this.name = this.parentList.listName);\n };\n\n private evaluateOrderedList = () => {\n if (this.parentIsListSelector && this.parentList.ordered) {\n let index: number | string =\n Array.from(this.parentList.children).indexOf(this.el) + 1;\n if (index < 10) {\n // This will make descriptions to be nicely aligned, between one digit, and two digit indexes items.\n index = `0${index}`;\n } else {\n index = `${index}`;\n }\n this.index = index;\n }\n };\n\n private onChangeHandler = (e: Event) => {\n this.itemChecked = (e.target as HTMLInputElement).checked;\n this.itemSelectionChanged.emit({\n itemId: this.itemId,\n itemValue: this.itemValue,\n itemIcon: this.icon,\n itemChecked: this.itemChecked\n });\n };\n\n // 10.RENDER() FUNCTION //\n\n render() {\n return (\n <Host role=\"listitem\">\n <input\n type={this.type}\n id={this.itemId}\n name={this.name}\n value={this.itemValue}\n checked={this.itemChecked}\n onChange={this.onChangeHandler}\n disabled={this.readonly}\n part=\"input\"\n />\n <label class=\"label\" htmlFor={this.itemId} part=\"label\">\n <div class=\"label__wrapper\">\n {this.index ? (\n <span class=\"label__index\">{this.index}. </span>\n ) : null}\n {this.hasUniversalSlot ? (\n <span class=\"label__universal-slot\" part=\"universal-slot\">\n <slot name=\"universal\"></slot>\n </span>\n ) : null}\n {this.icon ? (\n <ch-image class=\"icon-md\" src={this.icon} part=\"icon\"></ch-image>\n ) : null}\n <span class=\"label__description\" part=\"description\">\n {this.itemValue ? this.itemValue : <slot></slot>}\n </span>\n </div>\n </label>\n </Host>\n );\n }\n}\n\nexport type ItemData = {\n itemId: string;\n itemValue: string;\n itemIcon?: string;\n itemChecked: boolean;\n};\n"]}
1
+ {"version":3,"file":"list-selector-item.js","sourceRoot":"","sources":["../../../../../src/components/_helpers/list-selector/list-selector-item/list-selector-item.tsx"],"names":[],"mappings":"AAAA,UAAU;AACV,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,KAAK,EAEL,OAAO,EACR,MAAM,eAAe,CAAC;AAOvB,MAAM,OAAO,qBAAqB;;QAQxB,qBAAgB,GAAG,KAAK,CAAC;QACzB,UAAK,GAAW,SAAS,CAAC;QAqElC,mCAAmC;QAEnC,iBAAiB;QAEjB,0BAA0B;QAE1B,qBAAqB;QAErB;;WAEG;QACK,iCAA4B,GAAG,GAAG,EAAE;YAC1C,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC,aAA6C,CAAC;YACzE,IAAI,CAAC,oBAAoB,GAAG,UAAU,EAAE,QAAQ,KAAK,sBAAsB,CAAC;YAC5E,IAAI,CAAC,oBAAoB,IAAI,CAAC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,CAAC;QAC9D,CAAC,CAAC;QAEF;;WAEG;QACK,iB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C,IAAI;oBACR,YAAM,KAAK,EAAC,oBAAoB,EAAC,IAAI,EAAC,aAAa,IAChD,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,eAAa,CAC3C,CACH,CACA,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["// Stencil\nimport {\n Component,\n Host,\n h,\n Prop,\n Event,\n EventEmitter,\n Element\n} from \"@stencil/core\";\n\n@Component({\n tag: \"gx-ide-list-selector-item\",\n styleUrl: \"list-selector-item.scss\",\n shadow: false\n})\nexport class GxIdeListSelectorItem {\n // 1.OWN PROPERTIES | WATCH'S //\n\n private parentIsListSelector: boolean;\n private parentList: HTMLGxIdeListSelectorElement;\n private checked: boolean;\n private name: string;\n private type: string;\n private hasUniversalSlot = false;\n private index: string = undefined;\n\n // 2. REFERENCE TO ELEMENTS //\n\n @Element() el: HTMLGxIdeListSelectorItemElement;\n\n // 3.STATE() VARIABLES //\n\n // 4.PUBLIC PROPERTY API | WATCH'S //\n\n /**\n * The item id\n */\n @Prop({ reflect: true }) readonly itemId!: string;\n\n /**\n * The item value, that acts as a label as well\n */\n @Prop() readonly itemValue!: string;\n\n /**\n * This will set the input as checked\n */\n @Prop({ mutable: true }) itemChecked = false;\n\n /**\n * It allows to select the item by clicking on it. It will emit the item-id\n */\n @Prop({ mutable: true, reflect: true }) readonly: boolean;\n\n /**\n * The presence of this property will force the item text to not-wrap, and have ellipsis\n */\n @Prop({ mutable: true, reflect: true }) ellipsis: boolean;\n\n /**\n * The gemini icon name\n */\n @Prop() readonly icon: string;\n\n /**\n * Disables the item border\n */\n @Prop({ mutable: true, reflect: true }) noBorder = false;\n\n /**\n * Displays the universal slot at the end, instead of at the benign\n */\n @Prop({ reflect: true }) readonly universalSlotEnd = false;\n\n // 5.EVENTS (EMIT) //\n\n componentWillLoad() {\n this.evaluateParentIsListSelector();\n this.evaluateType();\n this.evaluateSelectable();\n this.evaluateEllipsis();\n this.evaluateChecked();\n this.evaluateBorder();\n this.evaluateUniversalSlot();\n this.assignName();\n this.evaluateOrderedList();\n }\n\n /**\n * Emits the item data\n */\n @Event() itemSelectionChanged: EventEmitter<ItemData>;\n\n // 6.COMPONENT LIFECYCLE METHODS //\n\n // 7.LISTENERS //\n\n // 8.PUBLIC METHODS API //\n\n // 9.LOCAL METHODS //\n\n /**\n * Checks if this item parentElement is a gx-ide-list-selector, and assigns a reference\n */\n private evaluateParentIsListSelector = () => {\n const parentList = this.el.parentElement as HTMLGxIdeListSelectorElement;\n this.parentIsListSelector = parentList?.nodeName === \"GX-IDE-LIST-SELECTOR\";\n this.parentIsListSelector && (this.parentList = parentList);\n };\n\n /**\n * Determines the type of item, based on the parent list-selector 'type' property value\n */\n private evaluateType = () => {\n const parentList: HTMLGxIdeListSelectorElement = this.el\n .parentElement as HTMLGxIdeListSelectorElement;\n this.type = parentList.type === \"single-selection\" ? \"radio\" : \"checkbox\";\n };\n\n /**\n * Evaluates if is selectable, considering the parent list-selector 'selectable' property value, only if it is undefined on this item\n */\n private evaluateSelectable = () => {\n if (this.readonly === undefined && this.parentIsListSelector) {\n this.readonly = this.parentList.readonly;\n }\n };\n\n /**\n * Evaluates if text should truncate with ellipsis, considering the parent list-selector 'ellipsis' property value, only if it is undefined on this item\n */\n private evaluateEllipsis = () => {\n if (this.ellipsis === undefined && this.parentIsListSelector) {\n this.ellipsis = this.parentList.ellipsis;\n }\n };\n\n /**\n * Evaluates if this item should be initially checked, only if the parent list-selector listValue equals this item value.\n */\n private evaluateChecked = () => {\n if (\n this.checked === undefined &&\n this.parentIsListSelector &&\n this.parentList.value !== undefined &&\n this.parentList.value === this.itemValue\n ) {\n this.checked = true;\n }\n };\n\n private evaluateBorder = () => {\n if (this.parentIsListSelector) {\n this.noBorder = this.parentList.noItemsBorder;\n }\n };\n\n private evaluateUniversalSlot = () => {\n this.hasUniversalSlot = !!this.el.querySelector(\"[slot=universal]\");\n };\n\n /**\n * Gets the listName required value, that is needed for the list selection to properly work\n */\n private assignName = () => {\n this.parentIsListSelector &&\n this.parentList.listName &&\n (this.name = this.parentList.listName);\n };\n\n private evaluateOrderedList = () => {\n if (this.parentIsListSelector && this.parentList.ordered) {\n let index: number | string =\n Array.from(this.parentList.children).indexOf(this.el) + 1;\n if (index < 10) {\n // This will make descriptions to be nicely aligned, between one digit, and two digit indexes items.\n index = `0${index}`;\n } else {\n index = `${index}`;\n }\n this.index = index;\n }\n };\n\n private onChangeHandler = (e: Event) => {\n this.itemChecked = (e.target as HTMLInputElement).checked;\n this.itemSelectionChanged.emit({\n itemId: this.itemId,\n itemValue: this.itemValue,\n itemIcon: this.icon,\n itemChecked: this.itemChecked\n });\n };\n\n // 10.RENDER() FUNCTION //\n\n render() {\n return (\n <Host role=\"listitem\">\n <input\n type={this.type}\n id={this.itemId}\n name={this.name}\n value={this.itemValue}\n checked={this.itemChecked}\n onChange={this.onChangeHandler}\n disabled={this.readonly}\n part=\"input\"\n />\n <label class=\"label\" htmlFor={this.itemId} part=\"label\">\n <div class=\"label__wrapper\">\n {this.index ? (\n <span class=\"label__index\">{this.index}. </span>\n ) : null}\n {this.hasUniversalSlot ? (\n <span class=\"label__universal-slot\" part=\"universal-slot\">\n <slot name=\"universal\"></slot>\n </span>\n ) : null}\n {this.icon ? (\n <ch-image class=\"icon-md\" src={this.icon} part=\"icon\"></ch-image>\n ) : null}\n <span class=\"label__description\" part=\"description\">\n {this.itemValue ? this.itemValue : <slot></slot>}\n </span>\n </div>\n </label>\n </Host>\n );\n }\n}\n\nexport type ItemData = {\n itemId: string;\n itemValue: string;\n itemIcon?: string;\n itemChecked: boolean;\n};\n"]}
@@ -375,6 +375,15 @@ New classes for Chameleon + Mercury
375
375
  display: contents;
376
376
  }
377
377
 
378
+ .pill-tag {
379
+ padding: 1px 4px;
380
+ border-radius: 2px;
381
+ min-inline-size: 40px;
382
+ text-align: center;
383
+ margin-inline-end: 10px;
384
+ font-size: 11px;
385
+ }
386
+
378
387
  /* - - - - - - - - - - - - - - - - - - -
379
388
  Old classes (Gemini) to be removed soon
380
389
  - - - - - - - - - - - - - - - - - - - */
@@ -370,6 +370,15 @@ New classes for Chameleon + Mercury
370
370
  display: contents;
371
371
  }
372
372
 
373
+ .pill-tag {
374
+ padding: 1px 4px;
375
+ border-radius: 2px;
376
+ min-inline-size: 40px;
377
+ text-align: center;
378
+ margin-inline-end: 10px;
379
+ font-size: 11px;
380
+ }
381
+
373
382
  /* - - - - - - - - - - - - - - - - - - -
374
383
  Old classes (Gemini) to be removed soon
375
384
  - - - - - - - - - - - - - - - - - - - */
@@ -370,6 +370,15 @@ New classes for Chameleon + Mercury
370
370
  display: contents;
371
371
  }
372
372
 
373
+ .pill-tag {
374
+ padding: 1px 4px;
375
+ border-radius: 2px;
376
+ min-inline-size: 40px;
377
+ text-align: center;
378
+ margin-inline-end: 10px;
379
+ font-size: 11px;
380
+ }
381
+
373
382
  /* - - - - - - - - - - - - - - - - - - -
374
383
  Old classes (Gemini) to be removed soon
375
384
  - - - - - - - - - - - - - - - - - - - */
@@ -18,8 +18,7 @@ export class GxIdeTemplate {
18
18
  this.setFocus = true;
19
19
  this.scrollToBottomFlag = true;
20
20
  this.evaluateAiInProgress = () => {
21
- var _a;
22
- if (((_a = this.messages) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
21
+ if (this.messages?.length > 0 &&
23
22
  this.messages[this.messages.length - 1].type === "assistant-in-progress") {
24
23
  this.aIInProgress = true;
25
24
  }
@@ -28,8 +27,7 @@ export class GxIdeTemplate {
28
27
  }
29
28
  };
30
29
  this.evaluateAiStatus = () => {
31
- var _a;
32
- if (((_a = this.messages) === null || _a === void 0 ? void 0 : _a.length) === 0) {
30
+ if (this.messages?.length === 0) {
33
31
  this.assistantStatus = "indeterminate";
34
32
  return;
35
33
  }
@@ -105,8 +103,7 @@ export class GxIdeTemplate {
105
103
  }
106
104
  };
107
105
  this.attachShortcuts = () => {
108
- var _a;
109
- if (((_a = this.focusShortcuts) === null || _a === void 0 ? void 0 : _a.length) > 0) {
106
+ if (this.focusShortcuts?.length > 0) {
110
107
  const ctrlFocusIndex = this.focusShortcuts.findIndex(key => key.toLocaleLowerCase() === "ctrl");
111
108
  const shiftFocusIndex = this.focusShortcuts.findIndex(key => key.toLocaleLowerCase() === "shift");
112
109
  const cmdKeyIndex = this.focusShortcuts.findIndex(key => key.toLocaleLowerCase() === "cmd");
@@ -134,9 +131,8 @@ export class GxIdeTemplate {
134
131
  }
135
132
  };
136
133
  this.promptArrowUpHandler = () => {
137
- var _a;
138
134
  this.userHasTyped = true;
139
- const lastUserMessage = (_a = this.messages) === null || _a === void 0 ? void 0 : _a.find(message => {
135
+ const lastUserMessage = this.messages?.find(message => {
140
136
  return message.type === "user";
141
137
  });
142
138
  if (lastUserMessage) {
@@ -235,10 +231,9 @@ export class GxIdeTemplate {
235
231
  * Add a message. This method will be used by the host to add messages from the assistant
236
232
  */
237
233
  async addMessage(message) {
238
- var _a;
239
- if (((_a = message.text) === null || _a === void 0 ? void 0 : _a.length) > 0) {
234
+ if (message.text?.length > 0) {
240
235
  const messages = [...this.messages];
241
- const updateInProgressMessage = (messages === null || messages === void 0 ? void 0 : messages.length) > 0 &&
236
+ const updateInProgressMessage = messages?.length > 0 &&
242
237
  messages[messages.length - 1].type === "assistant-in-progress";
243
238
  if (updateInProgressMessage) {
244
239
  messages.pop();
@@ -248,7 +243,6 @@ export class GxIdeTemplate {
248
243
  }
249
244
  }
250
245
  render() {
251
- var _a, _b;
252
246
  return (h(Host, { class: {
253
247
  [`assistant--${this.assistantStatus}`]: true,
254
248
  "assistant--in-progress": this.aIInProgress
@@ -258,7 +252,7 @@ export class GxIdeTemplate {
258
252
  } }, h("div", { class: "filter-inner-wrapper" }, h("gxg-form-text", { class: "header__filter", onInput: this.filterMessagesHandler, ref: el => (this.filterEl = el) })))) : null), h("div", { class: {
259
253
  "messages-wrapper": true,
260
254
  "scrollable": true
261
- }, ref: el => (this.messagesWrapperEl = el) }, ((_a = this.messages) === null || _a === void 0 ? void 0 : _a.length) ? (h("ol", { class: { messages: true } }, this.messages.map((message, i) => {
255
+ }, ref: el => (this.messagesWrapperEl = el) }, this.messages?.length ? (h("ol", { class: { messages: true } }, this.messages.map((message, i) => {
262
256
  return this.renderMessage(message, i);
263
257
  }))) : null), h("div", { class: {
264
258
  prompt: true
@@ -267,7 +261,7 @@ export class GxIdeTemplate {
267
261
  : this._componentLocale.promptPlaceholder, onInput: this.textAreaInputHandler, onEnter: this.promptEnterHandler, onArrowUpPressed: this.promptArrowUpHandler, onBlur: this.promptBlurHandler, onFocus: this.promptFocusHandler, disabled: this.aIInProgress, ref: el => (this.textAreaEl = el) }), !this.userHasTyped &&
268
262
  !this.aIInProgress &&
269
263
  !this.promptHasFocus &&
270
- ((_b = this.focusShortcuts) === null || _b === void 0 ? void 0 : _b.length) > 0 ? (h("div", { class: {
264
+ this.focusShortcuts?.length > 0 ? (h("div", { class: {
271
265
  prompt__shortcuts: true
272
266
  } }, this.focusShortcuts.map((shortcut, i) => {
273
267
  /* Up to three keys allowed*/