@genexus/genexus-ide-ui 1.1.3 → 1.1.4

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 (262) hide show
  1. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  2. package/dist/cjs/gx-ide-ai-assistant.cjs.entry.js +1 -1
  3. package/dist/cjs/gx-ide-ai-assistant.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gx-ide-bpm-app-declaration.cjs.entry.js +180 -166
  5. package/dist/cjs/gx-ide-bpm-app-declaration.cjs.entry.js.map +1 -1
  6. package/dist/cjs/gx-ide-bpm-assign-roles.cjs.entry.js +1 -1
  7. package/dist/cjs/gx-ide-bpm-assign-roles.cjs.entry.js.map +1 -1
  8. package/dist/cjs/gx-ide-bpm-export-xpdl.cjs.entry.js +1 -1
  9. package/dist/cjs/gx-ide-bpm-export-xpdl.cjs.entry.js.map +1 -1
  10. package/dist/cjs/gx-ide-bpm-import-files.cjs.entry.js +1 -1
  11. package/dist/cjs/gx-ide-bpm-import-files.cjs.entry.js.map +1 -1
  12. package/dist/cjs/gx-ide-bpm-import-gxpm.cjs.entry.js +1 -1
  13. package/dist/cjs/gx-ide-bpm-import-gxpm.cjs.entry.js.map +1 -1
  14. package/dist/cjs/gx-ide-bpm-objects-selector.cjs.entry.js +1 -1
  15. package/dist/cjs/gx-ide-bpm-objects-selector.cjs.entry.js.map +1 -1
  16. package/dist/cjs/gx-ide-bpm-timer-duration.cjs.entry.js +1 -1
  17. package/dist/cjs/gx-ide-bpm-timer-duration.cjs.entry.js.map +1 -1
  18. package/dist/cjs/gx-ide-card.cjs.entry.js +1 -1
  19. package/dist/cjs/gx-ide-card.cjs.entry.js.map +1 -1
  20. package/dist/cjs/gx-ide-dashboard-home.cjs.entry.js +1 -1
  21. package/dist/cjs/gx-ide-dashboard-home.cjs.entry.js.map +1 -1
  22. package/dist/cjs/gx-ide-deployment-tool.cjs.entry.js +1 -1
  23. package/dist/cjs/gx-ide-deployment-tool.cjs.entry.js.map +1 -1
  24. package/dist/cjs/gx-ide-edit-module-server.cjs.entry.js +1 -1
  25. package/dist/cjs/gx-ide-edit-module-server.cjs.entry.js.map +1 -1
  26. package/dist/cjs/gx-ide-empty-state.cjs.entry.js +1 -1
  27. package/dist/cjs/gx-ide-empty-state.cjs.entry.js.map +1 -1
  28. package/dist/cjs/gx-ide-file-uploader.cjs.entry.js +1 -1
  29. package/dist/cjs/gx-ide-file-uploader.cjs.entry.js.map +1 -1
  30. package/dist/cjs/gx-ide-gam-installation-settings.cjs.entry.js +1 -1
  31. package/dist/cjs/gx-ide-gam-installation-settings.cjs.entry.js.map +1 -1
  32. package/dist/cjs/gx-ide-list-selector_2.cjs.entry.js +1 -1
  33. package/dist/cjs/gx-ide-list-selector_2.cjs.entry.js.map +1 -1
  34. package/dist/cjs/gx-ide-manage-module-references-v2.cjs.entry.js +1 -1
  35. package/dist/cjs/gx-ide-manage-module-references-v2.cjs.entry.js.map +1 -1
  36. package/dist/cjs/gx-ide-manage-module-references.cjs.entry.js +1 -1
  37. package/dist/cjs/gx-ide-manage-module-references.cjs.entry.js.map +1 -1
  38. package/dist/cjs/gx-ide-references.cjs.entry.js +1 -1
  39. package/dist/cjs/gx-ide-references.cjs.entry.js.map +1 -1
  40. package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +1 -1
  41. package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js.map +1 -1
  42. package/dist/cjs/gx-ide-team-dev-select-recent-comment.cjs.entry.js +1 -1
  43. package/dist/cjs/gx-ide-team-dev-select-recent-comment.cjs.entry.js.map +1 -1
  44. package/dist/cjs/gx-ide-team-dev-update-partial-selection.cjs.entry.js +1 -1
  45. package/dist/cjs/gx-ide-team-dev-update-partial-selection.cjs.entry.js.map +1 -1
  46. package/dist/cjs/gx-ide-team-dev-update-to-revision.cjs.entry.js +1 -1
  47. package/dist/cjs/gx-ide-team-dev-update-to-revision.cjs.entry.js.map +1 -1
  48. package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +1 -1
  49. package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js.map +1 -1
  50. package/dist/cjs/gx-ide-template.cjs.entry.js +1 -1
  51. package/dist/cjs/gx-ide-template.cjs.entry.js.map +1 -1
  52. package/dist/cjs/gx-ide-wf-settings.cjs.entry.js +1 -1
  53. package/dist/cjs/gx-ide-wf-settings.cjs.entry.js.map +1 -1
  54. package/dist/cjs/gx-ide-ww-images.cjs.entry.js +1 -1
  55. package/dist/cjs/gx-ide-ww-images.cjs.entry.js.map +1 -1
  56. package/dist/cjs/loader.cjs.js +1 -1
  57. package/dist/collection/components/_helpers/card/card.css +9 -0
  58. package/dist/collection/components/_helpers/empty-state/gx-ide-empty-state.css +9 -0
  59. package/dist/collection/components/_helpers/list-selector/list-selector.css +9 -0
  60. package/dist/collection/components/_starting-template/template.css +9 -0
  61. package/dist/collection/components/ai-assistant/ai-assistant.css +9 -0
  62. package/dist/collection/components/bpm/application-declaration/bpm-app-declaration.css +36 -27
  63. package/dist/collection/components/bpm/application-declaration/bpm-app-declaration.js +217 -181
  64. package/dist/collection/components/bpm/application-declaration/bpm-app-declaration.js.map +1 -1
  65. package/dist/collection/components/bpm/application-declaration/gx-ide-assets/bpm-app-declaration/langs/bpm-app-declaration.lang.en.json +14 -2
  66. package/dist/collection/components/bpm/application-declaration/gx-ide-assets/bpm-app-declaration/langs/bpm-app-declaration.lang.ja.json +15 -3
  67. package/dist/collection/components/bpm/application-declaration/gx-ide-assets/bpm-app-declaration/langs/bpm-app-declaration.lang.zh.json +14 -2
  68. package/dist/collection/components/bpm/assign-roles/bpm-assign-roles.css +9 -0
  69. package/dist/collection/components/bpm/export-xpdl/bpm-export-xpdl.css +9 -0
  70. package/dist/collection/components/bpm/import-files/bpm-import-files.css +9 -0
  71. package/dist/collection/components/bpm/import-gxpm/bpm-import-gxpm.css +9 -0
  72. package/dist/collection/components/bpm/objects-selector/bpm-objects-selector.css +9 -0
  73. package/dist/collection/components/bpm/timer-duration/bpm-timer-duration.css +9 -0
  74. package/dist/collection/components/dashboard-home/dashboard-home.css +9 -0
  75. package/dist/collection/components/deployment-tool/deployment-tool.css +9 -0
  76. package/dist/collection/components/file-uploader/file-uploader.css +9 -0
  77. package/dist/collection/components/gam-installation-settings/gam-installation-settings.css +9 -0
  78. package/dist/collection/components/modules/edit-module-server/edit-module-server.css +9 -0
  79. package/dist/collection/components/modules/manage-module-references/manage-module-references.css +9 -0
  80. package/dist/collection/components/modules/manage-module-references-v2/manage-module-references.css +9 -0
  81. package/dist/collection/components/references/references.css +9 -0
  82. package/dist/collection/components/team-dev/commit/commit.css +9 -0
  83. package/dist/collection/components/team-dev/select-recent-comment/select-recent-comment.css +9 -0
  84. package/dist/collection/components/team-dev/update/update.css +9 -0
  85. package/dist/collection/components/team-dev/update-partial-selection/update-partial-selection.css +9 -0
  86. package/dist/collection/components/team-dev/update-to-revision/update-to-revision.css +9 -0
  87. package/dist/collection/components/wf-settings/wf-settings.css +9 -0
  88. package/dist/collection/components/ww-images/ww-images.css +9 -0
  89. package/dist/components/bpm-objects-selector.js +1 -1
  90. package/dist/components/bpm-objects-selector.js.map +1 -1
  91. package/dist/components/gx-ide-ai-assistant.js +1 -1
  92. package/dist/components/gx-ide-ai-assistant.js.map +1 -1
  93. package/dist/components/gx-ide-bpm-app-declaration.js +189 -184
  94. package/dist/components/gx-ide-bpm-app-declaration.js.map +1 -1
  95. package/dist/components/gx-ide-bpm-assign-roles.js +1 -1
  96. package/dist/components/gx-ide-bpm-assign-roles.js.map +1 -1
  97. package/dist/components/gx-ide-bpm-export-xpdl.js +1 -1
  98. package/dist/components/gx-ide-bpm-export-xpdl.js.map +1 -1
  99. package/dist/components/gx-ide-bpm-import-files.js +1 -1
  100. package/dist/components/gx-ide-bpm-import-files.js.map +1 -1
  101. package/dist/components/gx-ide-bpm-import-gxpm.js +1 -1
  102. package/dist/components/gx-ide-bpm-import-gxpm.js.map +1 -1
  103. package/dist/components/gx-ide-bpm-timer-duration.js +1 -1
  104. package/dist/components/gx-ide-bpm-timer-duration.js.map +1 -1
  105. package/dist/components/gx-ide-card.js +1 -1
  106. package/dist/components/gx-ide-card.js.map +1 -1
  107. package/dist/components/gx-ide-dashboard-home.js +1 -1
  108. package/dist/components/gx-ide-dashboard-home.js.map +1 -1
  109. package/dist/components/gx-ide-deployment-tool.js +1 -1
  110. package/dist/components/gx-ide-deployment-tool.js.map +1 -1
  111. package/dist/components/gx-ide-edit-module-server.js +1 -1
  112. package/dist/components/gx-ide-edit-module-server.js.map +1 -1
  113. package/dist/components/gx-ide-empty-state2.js +1 -1
  114. package/dist/components/gx-ide-empty-state2.js.map +1 -1
  115. package/dist/components/gx-ide-file-uploader.js +1 -1
  116. package/dist/components/gx-ide-file-uploader.js.map +1 -1
  117. package/dist/components/gx-ide-gam-installation-settings.js +1 -1
  118. package/dist/components/gx-ide-gam-installation-settings.js.map +1 -1
  119. package/dist/components/gx-ide-manage-module-references-v2.js +1 -1
  120. package/dist/components/gx-ide-manage-module-references-v2.js.map +1 -1
  121. package/dist/components/gx-ide-manage-module-references.js +1 -1
  122. package/dist/components/gx-ide-manage-module-references.js.map +1 -1
  123. package/dist/components/gx-ide-references.js +1 -1
  124. package/dist/components/gx-ide-references.js.map +1 -1
  125. package/dist/components/gx-ide-team-dev-commit.js +1 -1
  126. package/dist/components/gx-ide-team-dev-commit.js.map +1 -1
  127. package/dist/components/gx-ide-team-dev-select-recent-comment.js +1 -1
  128. package/dist/components/gx-ide-team-dev-select-recent-comment.js.map +1 -1
  129. package/dist/components/gx-ide-team-dev-update-partial-selection.js +1 -1
  130. package/dist/components/gx-ide-team-dev-update-partial-selection.js.map +1 -1
  131. package/dist/components/gx-ide-team-dev-update-to-revision.js +1 -1
  132. package/dist/components/gx-ide-team-dev-update-to-revision.js.map +1 -1
  133. package/dist/components/gx-ide-team-dev-update.js +1 -1
  134. package/dist/components/gx-ide-team-dev-update.js.map +1 -1
  135. package/dist/components/gx-ide-template.js +1 -1
  136. package/dist/components/gx-ide-template.js.map +1 -1
  137. package/dist/components/gx-ide-wf-settings.js +1 -1
  138. package/dist/components/gx-ide-wf-settings.js.map +1 -1
  139. package/dist/components/gx-ide-ww-images.js +1 -1
  140. package/dist/components/gx-ide-ww-images.js.map +1 -1
  141. package/dist/components/list-selector.js +1 -1
  142. package/dist/components/list-selector.js.map +1 -1
  143. package/dist/esm/genexus-ide-ui.js +1 -1
  144. package/dist/esm/gx-ide-ai-assistant.entry.js +1 -1
  145. package/dist/esm/gx-ide-ai-assistant.entry.js.map +1 -1
  146. package/dist/esm/gx-ide-bpm-app-declaration.entry.js +181 -167
  147. package/dist/esm/gx-ide-bpm-app-declaration.entry.js.map +1 -1
  148. package/dist/esm/gx-ide-bpm-assign-roles.entry.js +1 -1
  149. package/dist/esm/gx-ide-bpm-assign-roles.entry.js.map +1 -1
  150. package/dist/esm/gx-ide-bpm-export-xpdl.entry.js +1 -1
  151. package/dist/esm/gx-ide-bpm-export-xpdl.entry.js.map +1 -1
  152. package/dist/esm/gx-ide-bpm-import-files.entry.js +1 -1
  153. package/dist/esm/gx-ide-bpm-import-files.entry.js.map +1 -1
  154. package/dist/esm/gx-ide-bpm-import-gxpm.entry.js +1 -1
  155. package/dist/esm/gx-ide-bpm-import-gxpm.entry.js.map +1 -1
  156. package/dist/esm/gx-ide-bpm-objects-selector.entry.js +1 -1
  157. package/dist/esm/gx-ide-bpm-objects-selector.entry.js.map +1 -1
  158. package/dist/esm/gx-ide-bpm-timer-duration.entry.js +1 -1
  159. package/dist/esm/gx-ide-bpm-timer-duration.entry.js.map +1 -1
  160. package/dist/esm/gx-ide-card.entry.js +1 -1
  161. package/dist/esm/gx-ide-card.entry.js.map +1 -1
  162. package/dist/esm/gx-ide-dashboard-home.entry.js +1 -1
  163. package/dist/esm/gx-ide-dashboard-home.entry.js.map +1 -1
  164. package/dist/esm/gx-ide-deployment-tool.entry.js +1 -1
  165. package/dist/esm/gx-ide-deployment-tool.entry.js.map +1 -1
  166. package/dist/esm/gx-ide-edit-module-server.entry.js +1 -1
  167. package/dist/esm/gx-ide-edit-module-server.entry.js.map +1 -1
  168. package/dist/esm/gx-ide-empty-state.entry.js +1 -1
  169. package/dist/esm/gx-ide-empty-state.entry.js.map +1 -1
  170. package/dist/esm/gx-ide-file-uploader.entry.js +1 -1
  171. package/dist/esm/gx-ide-file-uploader.entry.js.map +1 -1
  172. package/dist/esm/gx-ide-gam-installation-settings.entry.js +1 -1
  173. package/dist/esm/gx-ide-gam-installation-settings.entry.js.map +1 -1
  174. package/dist/esm/gx-ide-list-selector_2.entry.js +1 -1
  175. package/dist/esm/gx-ide-list-selector_2.entry.js.map +1 -1
  176. package/dist/esm/gx-ide-manage-module-references-v2.entry.js +1 -1
  177. package/dist/esm/gx-ide-manage-module-references-v2.entry.js.map +1 -1
  178. package/dist/esm/gx-ide-manage-module-references.entry.js +1 -1
  179. package/dist/esm/gx-ide-manage-module-references.entry.js.map +1 -1
  180. package/dist/esm/gx-ide-references.entry.js +1 -1
  181. package/dist/esm/gx-ide-references.entry.js.map +1 -1
  182. package/dist/esm/gx-ide-team-dev-commit.entry.js +1 -1
  183. package/dist/esm/gx-ide-team-dev-commit.entry.js.map +1 -1
  184. package/dist/esm/gx-ide-team-dev-select-recent-comment.entry.js +1 -1
  185. package/dist/esm/gx-ide-team-dev-select-recent-comment.entry.js.map +1 -1
  186. package/dist/esm/gx-ide-team-dev-update-partial-selection.entry.js +1 -1
  187. package/dist/esm/gx-ide-team-dev-update-partial-selection.entry.js.map +1 -1
  188. package/dist/esm/gx-ide-team-dev-update-to-revision.entry.js +1 -1
  189. package/dist/esm/gx-ide-team-dev-update-to-revision.entry.js.map +1 -1
  190. package/dist/esm/gx-ide-team-dev-update.entry.js +1 -1
  191. package/dist/esm/gx-ide-team-dev-update.entry.js.map +1 -1
  192. package/dist/esm/gx-ide-template.entry.js +1 -1
  193. package/dist/esm/gx-ide-template.entry.js.map +1 -1
  194. package/dist/esm/gx-ide-wf-settings.entry.js +1 -1
  195. package/dist/esm/gx-ide-wf-settings.entry.js.map +1 -1
  196. package/dist/esm/gx-ide-ww-images.entry.js +1 -1
  197. package/dist/esm/gx-ide-ww-images.entry.js.map +1 -1
  198. package/dist/esm/loader.js +1 -1
  199. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  200. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
  201. package/dist/genexus-ide-ui/gx-ide-assets/bpm-app-declaration/langs/bpm-app-declaration.lang.en.json +14 -2
  202. package/dist/genexus-ide-ui/gx-ide-assets/bpm-app-declaration/langs/bpm-app-declaration.lang.ja.json +15 -3
  203. package/dist/genexus-ide-ui/gx-ide-assets/bpm-app-declaration/langs/bpm-app-declaration.lang.zh.json +14 -2
  204. package/dist/genexus-ide-ui/{p-1e8f5da5.entry.js → p-04c6bd23.entry.js} +29 -29
  205. package/dist/genexus-ide-ui/{p-3e936f26.entry.js → p-05b04291.entry.js} +2 -2
  206. package/dist/genexus-ide-ui/{p-3ecdb582.entry.js → p-1072bf33.entry.js} +2 -2
  207. package/dist/genexus-ide-ui/{p-683cb15e.entry.js → p-14165308.entry.js} +2 -2
  208. package/dist/genexus-ide-ui/{p-2027c939.entry.js → p-2b3938b4.entry.js} +2 -2
  209. package/dist/genexus-ide-ui/{p-48826a6f.entry.js → p-3085add2.entry.js} +99 -99
  210. package/dist/genexus-ide-ui/{p-e4c2e200.entry.js → p-35f9ebbc.entry.js} +5 -5
  211. package/dist/genexus-ide-ui/{p-038c3f9b.entry.js → p-45996535.entry.js} +2 -2
  212. package/dist/genexus-ide-ui/{p-50b22f23.entry.js → p-4b38fffc.entry.js} +2 -2
  213. package/dist/genexus-ide-ui/{p-8f00263d.entry.js → p-6d2174ed.entry.js} +2 -2
  214. package/dist/genexus-ide-ui/{p-3d4355b4.entry.js → p-767e0f6d.entry.js} +8 -8
  215. package/dist/genexus-ide-ui/{p-bac13202.entry.js → p-844b7117.entry.js} +17 -17
  216. package/dist/genexus-ide-ui/{p-a790c4c9.entry.js → p-961bb2cc.entry.js} +2 -2
  217. package/dist/genexus-ide-ui/p-a1d73ca3.entry.js +310 -0
  218. package/dist/genexus-ide-ui/p-a1d73ca3.entry.js.map +1 -0
  219. package/dist/genexus-ide-ui/{p-9b5cb6b9.entry.js → p-a47d71eb.entry.js} +5 -5
  220. package/dist/genexus-ide-ui/{p-a05d4963.entry.js → p-b1851e6b.entry.js} +8 -8
  221. package/dist/genexus-ide-ui/{p-c6c955a3.entry.js → p-b2928645.entry.js} +2 -2
  222. package/dist/genexus-ide-ui/{p-3b8db39e.entry.js → p-b58fb87b.entry.js} +2 -2
  223. package/dist/genexus-ide-ui/{p-961cd6c2.entry.js → p-bbf88f43.entry.js} +2 -2
  224. package/dist/genexus-ide-ui/{p-59ed3f39.entry.js → p-d8379699.entry.js} +2 -2
  225. package/dist/genexus-ide-ui/{p-beea29fa.entry.js → p-e24902a0.entry.js} +2 -2
  226. package/dist/genexus-ide-ui/{p-54fbb568.entry.js → p-edf889d2.entry.js} +2 -2
  227. package/dist/genexus-ide-ui/{p-a59a07e2.entry.js → p-f49bb305.entry.js} +2 -2
  228. package/dist/genexus-ide-ui/{p-cd397078.entry.js → p-f51adb3d.entry.js} +2 -2
  229. package/dist/genexus-ide-ui/{p-74c81ca3.entry.js → p-f722955f.entry.js} +2 -2
  230. package/dist/genexus-ide-ui/{p-2a6683e1.entry.js → p-f7421997.entry.js} +2 -2
  231. package/dist/genexus-ide-ui/{p-22b8bdb1.entry.js → p-fcecdafa.entry.js} +2 -2
  232. package/dist/types/components/bpm/application-declaration/bpm-app-declaration.d.ts +22 -44
  233. package/dist/types/components.d.ts +2 -10
  234. package/package.json +1 -1
  235. package/dist/genexus-ide-ui/p-55c87f23.entry.js +0 -287
  236. package/dist/genexus-ide-ui/p-55c87f23.entry.js.map +0 -1
  237. /package/dist/genexus-ide-ui/{p-1e8f5da5.entry.js.map → p-04c6bd23.entry.js.map} +0 -0
  238. /package/dist/genexus-ide-ui/{p-3e936f26.entry.js.map → p-05b04291.entry.js.map} +0 -0
  239. /package/dist/genexus-ide-ui/{p-3ecdb582.entry.js.map → p-1072bf33.entry.js.map} +0 -0
  240. /package/dist/genexus-ide-ui/{p-683cb15e.entry.js.map → p-14165308.entry.js.map} +0 -0
  241. /package/dist/genexus-ide-ui/{p-2027c939.entry.js.map → p-2b3938b4.entry.js.map} +0 -0
  242. /package/dist/genexus-ide-ui/{p-48826a6f.entry.js.map → p-3085add2.entry.js.map} +0 -0
  243. /package/dist/genexus-ide-ui/{p-e4c2e200.entry.js.map → p-35f9ebbc.entry.js.map} +0 -0
  244. /package/dist/genexus-ide-ui/{p-038c3f9b.entry.js.map → p-45996535.entry.js.map} +0 -0
  245. /package/dist/genexus-ide-ui/{p-50b22f23.entry.js.map → p-4b38fffc.entry.js.map} +0 -0
  246. /package/dist/genexus-ide-ui/{p-8f00263d.entry.js.map → p-6d2174ed.entry.js.map} +0 -0
  247. /package/dist/genexus-ide-ui/{p-3d4355b4.entry.js.map → p-767e0f6d.entry.js.map} +0 -0
  248. /package/dist/genexus-ide-ui/{p-bac13202.entry.js.map → p-844b7117.entry.js.map} +0 -0
  249. /package/dist/genexus-ide-ui/{p-a790c4c9.entry.js.map → p-961bb2cc.entry.js.map} +0 -0
  250. /package/dist/genexus-ide-ui/{p-9b5cb6b9.entry.js.map → p-a47d71eb.entry.js.map} +0 -0
  251. /package/dist/genexus-ide-ui/{p-a05d4963.entry.js.map → p-b1851e6b.entry.js.map} +0 -0
  252. /package/dist/genexus-ide-ui/{p-c6c955a3.entry.js.map → p-b2928645.entry.js.map} +0 -0
  253. /package/dist/genexus-ide-ui/{p-3b8db39e.entry.js.map → p-b58fb87b.entry.js.map} +0 -0
  254. /package/dist/genexus-ide-ui/{p-961cd6c2.entry.js.map → p-bbf88f43.entry.js.map} +0 -0
  255. /package/dist/genexus-ide-ui/{p-59ed3f39.entry.js.map → p-d8379699.entry.js.map} +0 -0
  256. /package/dist/genexus-ide-ui/{p-beea29fa.entry.js.map → p-e24902a0.entry.js.map} +0 -0
  257. /package/dist/genexus-ide-ui/{p-54fbb568.entry.js.map → p-edf889d2.entry.js.map} +0 -0
  258. /package/dist/genexus-ide-ui/{p-a59a07e2.entry.js.map → p-f49bb305.entry.js.map} +0 -0
  259. /package/dist/genexus-ide-ui/{p-cd397078.entry.js.map → p-f51adb3d.entry.js.map} +0 -0
  260. /package/dist/genexus-ide-ui/{p-74c81ca3.entry.js.map → p-f722955f.entry.js.map} +0 -0
  261. /package/dist/genexus-ide-ui/{p-2a6683e1.entry.js.map → p-f7421997.entry.js.map} +0 -0
  262. /package/dist/genexus-ide-ui/{p-22b8bdb1.entry.js.map → p-fcecdafa.entry.js.map} +0 -0
@@ -1,200 +1,214 @@
1
- import { h, r as registerInstance, c as createEvent, g as getAssetPath, H as Host, a as getElement } from './index-10af18cf.js';
1
+ import { r as registerInstance, c as createEvent, g as getAssetPath, h, H as Host, a as getElement } from './index-10af18cf.js';
2
+ import { g as getIconPath } from './assets-manager-0d129105.js';
3
+ import './MERCURY_ASSETS-bbdf7018.js';
2
4
  import { L as Locale } from './locale-e5107fad.js';
3
5
  import { c as config } from './config-1ef9d75a.js';
4
- import { r as renderComboItems } from './render-combo-items-e9c8df5e.js';
5
6
 
6
- /* eslint-disable @typescript-eslint/no-use-before-define */
7
- const renderSuggestLists = (suggestData) => {
8
- if (suggestData === null || suggestData === void 0 ? void 0 : suggestData.suggestLists.length) {
9
- return suggestData.suggestLists.map((list) => {
10
- return (h("ch-suggest-list", { label: list.label }, list.items.map((item) => {
11
- return renderSuggestListsItem(item);
12
- })));
13
- });
14
- }
15
- return [];
16
- };
17
- const renderSuggestListsItem = (suggestItem) => {
18
- return (h("ch-suggest-list-item", { value: suggestItem.value }, [
19
- suggestItem.description || suggestItem.value,
20
- suggestItem.icon && renderIcon(suggestItem.icon)
21
- ]));
22
- };
23
- const renderIcon = (iconName) => {
24
- return h("gxg-icon", { color: "auto", type: iconName, slot: "icon" });
25
- };
7
+ const bpmAppDeclarationCss = ":root{--ui-animaton-speed:0.2s}.gxg-title-01{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-01-font-weight);font-size:var(--ds-title-01-font-size);letter-spacing:var(--ds-base-font-letter-spacing--comfortable);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-01--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-01-font-weight);font-size:var(--ds-title-01-font-size);letter-spacing:var(--ds-base-font-letter-spacing--comfortable);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-title-02{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-02-font-weight);font-size:var(--ds-title-02-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;text-transform:uppercase;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-02--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-02-font-weight);font-size:var(--ds-title-02-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;text-transform:uppercase;line-height:var(--ds-base-font-line-height--comfortable);color:var(--color-on-primary)}.gxg-title-03{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-03-font-weight);font-size:var(--ds-title-03-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;text-transform:uppercase;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-03--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-03-font-weight);font-size:var(--ds-title-03-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;text-transform:uppercase;line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-title-04{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-04-font-weight);font-size:var(--ds-title-04-font-size);letter-spacing:var(--ds-base-font-letter-spacing--comfortable);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-04--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-04-font-weight);font-size:var(--ds-title-04-font-size);letter-spacing:var(--ds-base-font-letter-spacing--comfortable);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-title-05{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-05-font-weight);font-size:var(--ds-title-05-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-05--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-05-font-weight);font-size:var(--ds-title-05-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-text{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable)}.gxg-text--negative{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-text--gray{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--dimmed)}.gxg-quote{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);font-style:italic}.gxg-quote--negative{color:var(--ds-base-font-color--negative)}.gxg-link{line-height:unset;font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--link);text-decoration:underline;cursor:pointer;display:inline-block}.gxg-link:hover{color:var(--ds-base-font-color--link-hover)}.gxg-link:active{color:var(--ds-base-font-color--link-active)}.gxg-link-gray{line-height:unset;font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--link);text-decoration:underline;cursor:pointer;display:inline-block;color:var(--ds-base-font-color--dimmed)}.gxg-link-gray:hover{line-height:unset;font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--link);text-decoration:underline;cursor:pointer;display:inline-block;color:var(--ds-base-font-color--dimmed);filter:brightness(1.4)}.gxg-alert-error{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--error);display:inline-block}.gxg-alert-warning{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--warning);display:inline-block}.gxg-alert-success{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--success);display:inline-block}.gxg-tab--disabled{color:var(--color-primary-disabled);pointer-events:none}.gxg-tab--disabled[disabled]{color:var(--color-primary-disabled);pointer-events:none}.gxg-label{font-family:var(--ds-base-font-family-primary);font-weight:var(--gxg-label-font-weight);font-size:var(--gxg-label-font-size);color:var(--gxg-label-color);text-align:center;line-height:1.455em;display:flex;align-items:center}.gxg-label:hover{color:var(--color-primary-hover)}.gxg-label:focus{color:var(--color-primary-active)}.gxg-label:active{color:var(--color-primary-active)}.gxg-label[disabled]{color:var(--color-primary-disabled)}.gxg-label--negative{color:var(--color-on-primary)}.gxg-label--negative[disabled]{color:var(--color-on-disabled)}.gxg-scrollbar{}.gxg-scrollbar::-webkit-scrollbar{width:var(--gxg-scrollbar-width);height:var(--gxg-scrollbar-width)}.gxg-scrollbar::-webkit-scrollbar-track{background-color:var(--gxg-scrollbar-track-background);border-radius:var(--gxg-scrollbar-track-border-radius)}.gxg-scrollbar::-webkit-scrollbar-thumb{background-color:var(--gxg-scrollbar-track-thumb-background);border-radius:var(--gxg-scrollbar-track-thumb-radius)}.gxg-scrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--gxg-scrollbar-track-thumb-hover-background)}.gxg-scrollbar::-webkit-scrollbar-corner{background:rgba(0, 0, 0, 0)}:host{display:grid;block-size:100%}.card-regular{background-color:var(--mer-surface__elevation--01);border:var(--mer-border__width--sm) solid var(--mer-border-color__on-elevation--01);border-radius:var(--mer-border__radius--md);padding:var(--mer-spacing--md) var(--mer-spacing--md);display:grid}.card-small{background-color:var(--mer-surface__elevation--02);border-radius:var(--mer-border__radius--sm);padding:var(--mer-spacing--sm) var(--mer-spacing--sm)}.card-small--actionable:hover{background-color:var(--mer-color__neutral-gray--600)}.card-small--actionable:active{background-color:var(--mer-color__neutral-gray--650)}.card-small:focus-visible{outline:var(--focus__outline-width) var(--focus__outline-style) var(--focus__outline-color);outline-offset:var(--focus__outline-offset)}.empty-state{block-size:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:var(--mer-spacing--sm);text-align:center}.empty-state__title,.empty-state__button,.empty-state__link{max-inline-size:300px}.opacity-0{opacity:0}.opacity-1{opacity:1}.display-contents{display:contents}.pill-tag{padding:1px 4px;border-radius:2px;min-inline-size:40px;text-align:center;margin-inline-end:10px;font-size:11px}.gxi-hidden{display:none !important}.gxi-full-height{height:100%}.gxi-overflow-auto{overflow:auto}.gxi-display-flex{display:flex}.align-start{display:flex;align-items:start}.align-center{display:flex;align-items:center}.align-end{display:flex;align-items:end}.overflow-auto{overflow:auto}.justify-start{display:flex;justify-content:start}.justify-center{display:flex;justify-content:center}.justify-end{display:flex;justify-content:end}.grid{display:grid;grid-row-gap:var(--gx-ide-grid-row-gap);grid-column-gap:var(--gx-ide-grid-column-gap);grid-template-rows:auto}ch-grid-cell{display:flex}ch-grid{overflow:auto;height:100%}ch-grid-column{z-index:99;border-bottom:1px solid var(--mer-color__neutral-gray--800)}ch-grid-column:first-child{padding-inline-start:var(--gx-ide-container__padding) !important}ch-grid-column:last-child{padding-inline-end:var(--gx-ide-container__padding) !important}ch-grid-cell{--mer-spacing--xs:var(--gx-ide-container__padding)}.layout{display:grid;gap:var(--mer-spacing--lg);box-sizing:border-box}.layout--two-cols{grid-template-columns:1fr 1fr}.layout--space-above{padding-block-start:var(--mer-spacing--lg)}gxg-tabs{box-shadow:none}:host(.gx-ide-component){height:100% !important;display:flex !important;flex-direction:column !important}:host(:focus-within) gx-ide-top-bar::part(wrapper){background-color:var(--color-secondary-enabled)}.gx-ide-main-wrapper{color:var(--gx-ide-component-text-color);font-weight:var(--mer-font__weight--regular);font-size:var(--mer-font__size--xs);font-family:var(--mer-font-family--primary);height:100%;background-color:var(--gx-ide-component-background-color);display:flex;flex-direction:column;flex-grow:1;box-sizing:border-box}.gx-ide-main{flex-grow:1;overflow-y:auto;}.gx-ide-main::-webkit-scrollbar{width:var(--gxg-scrollbar-width);height:var(--gxg-scrollbar-width)}.gx-ide-main::-webkit-scrollbar-track{background-color:var(--gxg-scrollbar-track-background);border-radius:var(--gxg-scrollbar-track-border-radius)}.gx-ide-main::-webkit-scrollbar-thumb{background-color:var(--gxg-scrollbar-track-thumb-background);border-radius:var(--gxg-scrollbar-track-thumb-radius)}.gx-ide-main::-webkit-scrollbar-thumb:hover{background-color:var(--gxg-scrollbar-track-thumb-hover-background)}.gx-ide-main::-webkit-scrollbar-corner{background:rgba(0, 0, 0, 0)}.gx-ide-overflow{overflow-y:auto;}.gx-ide-overflow::-webkit-scrollbar{width:var(--gxg-scrollbar-width);height:var(--gxg-scrollbar-width)}.gx-ide-overflow::-webkit-scrollbar-track{background-color:var(--gxg-scrollbar-track-background);border-radius:var(--gxg-scrollbar-track-border-radius)}.gx-ide-overflow::-webkit-scrollbar-thumb{background-color:var(--gxg-scrollbar-track-thumb-background);border-radius:var(--gxg-scrollbar-track-thumb-radius)}.gx-ide-overflow::-webkit-scrollbar-thumb:hover{background-color:var(--gxg-scrollbar-track-thumb-hover-background)}.gx-ide-overflow::-webkit-scrollbar-corner{background:rgba(0, 0, 0, 0)}.tree-view-primary{font-size:var(--mer-font__size--2xs)}p{margin:0;font-size:var(--mer-font__size--xxs)}.buttons-container{display:flex;gap:var(--mer-spacing--xs)}:host{display:grid;block-size:100%;grid-template-rows:max-content 1fr max-content;overflow:auto}.section{display:contents}.header{display:grid;grid-template-columns:1fr max-content}.data-mapping-grid-container,.data-mapping-grid-container .field{overflow:auto;block-size:100%}.tabular-grid-application-declaration{overflow:auto}ch-tabular-grid.empty-result::part(main){overflow:hidden}.pill-tag{min-inline-size:40px;margin-inline-end:10px}.tabular-grid-application-declaration ch-tabular-grid-cell:is(:nth-child(2)){--control__border-width:0;--control__border-color:transparent;--control__border-radius:0;padding-block:0;padding-inline:0;padding-block:0;padding-inline:0;--control__padding-inline:var(--grid-cell__padding-inline);display:grid;align-items:stretch;justify-content:stretch}.tabular-grid-application-declaration ch-tabular-grid-cell:is(:nth-child(2)):hover{outline:var(--focus__outline-width) var(--focus__outline-style) var(--control__border-color--hover);outline-offset:var(--focus__outline-offset)}.tabular-grid-cell:nth-child(2){padding:0 !important;display:grid;align-items:stretch;justify-content:stretch;--ds-focus-border-width:none}.tabular-grid-cell:nth-child(3){padding:0 !important;align-items:center !important;justify-content:center !important}.tabular-grid{overflow:auto}";
26
8
 
27
- /* References Types*/
28
- /**
29
- * @description This function converts string[] to SuggestItemData[]
30
- */
31
- const convertSuggestedApplicationsToSuggestItems = (suggestedApplications) => {
32
- const suggestData = {
33
- suggestItems: null,
34
- suggestLists: []
35
- };
36
- if (suggestedApplications.length) {
37
- const suggestList = {
38
- label: "Applications",
39
- items: []
40
- };
41
- suggestedApplications.forEach((suggestedApplication) => {
42
- const suggestItem = {
43
- value: suggestedApplication,
44
- description: null,
45
- icon: null
46
- };
47
- suggestList.items.push(suggestItem);
48
- });
49
- suggestData.suggestLists.push(suggestList);
50
- }
51
- return suggestData;
9
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
10
+ if (kind === "a" && !f)
11
+ throw new TypeError("Private accessor was defined without a getter");
12
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
13
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
14
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
52
15
  };
53
-
54
- const bpmAppDeclarationCss = ":root{--ui-animaton-speed:0.2s}.gxg-title-01{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-01-font-weight);font-size:var(--ds-title-01-font-size);letter-spacing:var(--ds-base-font-letter-spacing--comfortable);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-01--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-01-font-weight);font-size:var(--ds-title-01-font-size);letter-spacing:var(--ds-base-font-letter-spacing--comfortable);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-title-02{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-02-font-weight);font-size:var(--ds-title-02-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;text-transform:uppercase;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-02--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-02-font-weight);font-size:var(--ds-title-02-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;text-transform:uppercase;line-height:var(--ds-base-font-line-height--comfortable);color:var(--color-on-primary)}.gxg-title-03{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-03-font-weight);font-size:var(--ds-title-03-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;text-transform:uppercase;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-03--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-03-font-weight);font-size:var(--ds-title-03-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;text-transform:uppercase;line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-title-04{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-04-font-weight);font-size:var(--ds-title-04-font-size);letter-spacing:var(--ds-base-font-letter-spacing--comfortable);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-04--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-04-font-weight);font-size:var(--ds-title-04-font-size);letter-spacing:var(--ds-base-font-letter-spacing--comfortable);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-title-05{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-05-font-weight);font-size:var(--ds-title-05-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-05--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-05-font-weight);font-size:var(--ds-title-05-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-text{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable)}.gxg-text--negative{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-text--gray{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--dimmed)}.gxg-quote{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);font-style:italic}.gxg-quote--negative{color:var(--ds-base-font-color--negative)}.gxg-link{line-height:unset;font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--link);text-decoration:underline;cursor:pointer;display:inline-block}.gxg-link:hover{color:var(--ds-base-font-color--link-hover)}.gxg-link:active{color:var(--ds-base-font-color--link-active)}.gxg-link-gray{line-height:unset;font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--link);text-decoration:underline;cursor:pointer;display:inline-block;color:var(--ds-base-font-color--dimmed)}.gxg-link-gray:hover{line-height:unset;font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--link);text-decoration:underline;cursor:pointer;display:inline-block;color:var(--ds-base-font-color--dimmed);filter:brightness(1.4)}.gxg-alert-error{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--error);display:inline-block}.gxg-alert-warning{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--warning);display:inline-block}.gxg-alert-success{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--success);display:inline-block}.gxg-tab--disabled{color:var(--color-primary-disabled);pointer-events:none}.gxg-tab--disabled[disabled]{color:var(--color-primary-disabled);pointer-events:none}.gxg-label{font-family:var(--ds-base-font-family-primary);font-weight:var(--gxg-label-font-weight);font-size:var(--gxg-label-font-size);color:var(--gxg-label-color);text-align:center;line-height:1.455em;display:flex;align-items:center}.gxg-label:hover{color:var(--color-primary-hover)}.gxg-label:focus{color:var(--color-primary-active)}.gxg-label:active{color:var(--color-primary-active)}.gxg-label[disabled]{color:var(--color-primary-disabled)}.gxg-label--negative{color:var(--color-on-primary)}.gxg-label--negative[disabled]{color:var(--color-on-disabled)}.gxg-scrollbar{}.gxg-scrollbar::-webkit-scrollbar{width:var(--gxg-scrollbar-width);height:var(--gxg-scrollbar-width)}.gxg-scrollbar::-webkit-scrollbar-track{background-color:var(--gxg-scrollbar-track-background);border-radius:var(--gxg-scrollbar-track-border-radius)}.gxg-scrollbar::-webkit-scrollbar-thumb{background-color:var(--gxg-scrollbar-track-thumb-background);border-radius:var(--gxg-scrollbar-track-thumb-radius)}.gxg-scrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--gxg-scrollbar-track-thumb-hover-background)}.gxg-scrollbar::-webkit-scrollbar-corner{background:rgba(0, 0, 0, 0)}:host{display:grid;block-size:100%}.card-regular{background-color:var(--mer-surface__elevation--01);border:var(--mer-border__width--sm) solid var(--mer-border-color__on-elevation--01);border-radius:var(--mer-border__radius--md);padding:var(--mer-spacing--md) var(--mer-spacing--md);display:grid}.card-small{background-color:var(--mer-surface__elevation--02);border-radius:var(--mer-border__radius--sm);padding:var(--mer-spacing--sm) var(--mer-spacing--sm)}.card-small--actionable:hover{background-color:var(--mer-color__neutral-gray--600)}.card-small--actionable:active{background-color:var(--mer-color__neutral-gray--650)}.card-small:focus-visible{outline:var(--focus__outline-width) var(--focus__outline-style) var(--focus__outline-color);outline-offset:var(--focus__outline-offset)}.empty-state{block-size:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:var(--mer-spacing--sm);text-align:center}.empty-state__title,.empty-state__button,.empty-state__link{max-inline-size:300px}.opacity-0{opacity:0}.opacity-1{opacity:1}.display-contents{display:contents}.gxi-hidden{display:none !important}.gxi-full-height{height:100%}.gxi-overflow-auto{overflow:auto}.gxi-display-flex{display:flex}.align-start{display:flex;align-items:start}.align-center{display:flex;align-items:center}.align-end{display:flex;align-items:end}.overflow-auto{overflow:auto}.justify-start{display:flex;justify-content:start}.justify-center{display:flex;justify-content:center}.justify-end{display:flex;justify-content:end}.grid{display:grid;grid-row-gap:var(--gx-ide-grid-row-gap);grid-column-gap:var(--gx-ide-grid-column-gap);grid-template-rows:auto}ch-grid-cell{display:flex}ch-grid{overflow:auto;height:100%}ch-grid-column{z-index:99;border-bottom:1px solid var(--mer-color__neutral-gray--800)}ch-grid-column:first-child{padding-inline-start:var(--gx-ide-container__padding) !important}ch-grid-column:last-child{padding-inline-end:var(--gx-ide-container__padding) !important}ch-grid-cell{--mer-spacing--xs:var(--gx-ide-container__padding)}.layout{display:grid;gap:var(--mer-spacing--lg);box-sizing:border-box}.layout--two-cols{grid-template-columns:1fr 1fr}.layout--space-above{padding-block-start:var(--mer-spacing--lg)}gxg-tabs{box-shadow:none}:host(.gx-ide-component){height:100% !important;display:flex !important;flex-direction:column !important}:host(:focus-within) gx-ide-top-bar::part(wrapper){background-color:var(--color-secondary-enabled)}.gx-ide-main-wrapper{color:var(--gx-ide-component-text-color);font-weight:var(--mer-font__weight--regular);font-size:var(--mer-font__size--xs);font-family:var(--mer-font-family--primary);height:100%;background-color:var(--gx-ide-component-background-color);display:flex;flex-direction:column;flex-grow:1;box-sizing:border-box}.gx-ide-main{flex-grow:1;overflow-y:auto;}.gx-ide-main::-webkit-scrollbar{width:var(--gxg-scrollbar-width);height:var(--gxg-scrollbar-width)}.gx-ide-main::-webkit-scrollbar-track{background-color:var(--gxg-scrollbar-track-background);border-radius:var(--gxg-scrollbar-track-border-radius)}.gx-ide-main::-webkit-scrollbar-thumb{background-color:var(--gxg-scrollbar-track-thumb-background);border-radius:var(--gxg-scrollbar-track-thumb-radius)}.gx-ide-main::-webkit-scrollbar-thumb:hover{background-color:var(--gxg-scrollbar-track-thumb-hover-background)}.gx-ide-main::-webkit-scrollbar-corner{background:rgba(0, 0, 0, 0)}.gx-ide-overflow{overflow-y:auto;}.gx-ide-overflow::-webkit-scrollbar{width:var(--gxg-scrollbar-width);height:var(--gxg-scrollbar-width)}.gx-ide-overflow::-webkit-scrollbar-track{background-color:var(--gxg-scrollbar-track-background);border-radius:var(--gxg-scrollbar-track-border-radius)}.gx-ide-overflow::-webkit-scrollbar-thumb{background-color:var(--gxg-scrollbar-track-thumb-background);border-radius:var(--gxg-scrollbar-track-thumb-radius)}.gx-ide-overflow::-webkit-scrollbar-thumb:hover{background-color:var(--gxg-scrollbar-track-thumb-hover-background)}.gx-ide-overflow::-webkit-scrollbar-corner{background:rgba(0, 0, 0, 0)}.tree-view-primary{font-size:var(--mer-font__size--2xs)}p{margin:0;font-size:var(--mer-font__size--xxs)}.buttons-container{display:flex;gap:var(--mer-spacing--xs)}:host{display:block;}:host .header{display:flex;flex-direction:column;gap:var(--gx-ide-grid-row-gap)}:host .header__first-row{display:flex;flex-direction:row;gap:var(--gx-ide-grid-column-gap)}:host .header__first-row .application-suggest{flex:1}:host .data-mappings{display:grid}:host .row-button{display:flex;align-items:center}.tabular-grid-application-declaration ch-tabular-grid-cell:is(:nth-child(2)){--control__border-width:0;--control__border-color:transparent;--control__border-radius:0;padding-block:0;padding-inline:0;padding-block:0;padding-inline:0;--control__padding-inline:var(--grid-cell__padding-inline);display:grid;align-items:stretch;justify-content:stretch}.tabular-grid-application-declaration ch-tabular-grid-cell:is(:nth-child(2)):hover{outline:var(--focus__outline-width) var(--focus__outline-style) var(--control__border-color--hover);outline-offset:var(--focus__outline-offset)}gx-ide-container::part(content){display:grid}gxg-combo-box::part(input-input){border:none;background-color:transparent;top:2px}.tabular-grid-cell:nth-child(2){padding:0 !important;display:grid;align-items:stretch;justify-content:stretch;--ds-focus-border-width:none}.tabular-grid-cell:nth-child(3){padding:0 !important;align-items:center !important;justify-content:center !important}.tabular-grid{overflow:auto}";
55
-
16
+ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
17
+ if (kind === "m")
18
+ throw new TypeError("Private method is not writable");
19
+ if (kind === "a" && !f)
20
+ throw new TypeError("Private accessor was defined without a setter");
21
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
22
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
23
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
24
+ };
25
+ var _GxIdeBpmAppDeclaration_componentLocale, _GxIdeBpmAppDeclaration_animateEmptyState, _GxIdeBpmAppDeclaration_shortcutsSrc, _GxIdeBpmAppDeclaration_ACCESS_CAPTION_MAP, _GxIdeBpmAppDeclaration_setAccessCaptions, _GxIdeBpmAppDeclaration_applicationInputChangedHandler, _GxIdeBpmAppDeclaration_cancelCallbackHandler, _GxIdeBpmAppDeclaration_clearApplicationHandler, _GxIdeBpmAppDeclaration_confirmCallbackHandler, _GxIdeBpmAppDeclaration_mapRelevantDataOptionsToComboBoxModel, _GxIdeBpmAppDeclaration_mapSuggestedApplicationsToComboBoxModel, _GxIdeBpmAppDeclaration_relevantDataInputHandler, _GxIdeBpmAppDeclaration_selectApplicationCallbackHandler, _GxIdeBpmAppDeclaration_selectMappingCallbackHandler, _GxIdeBpmAppDeclaration_setApplicationData, _GxIdeBpmAppDeclaration_suggestInputHandler, _GxIdeBpmAppDeclaration_updateApplicationData, _GxIdeBpmAppDeclaration_renderDataMappingsGrid;
56
26
  const CSS_BUNDLES = [
57
27
  "resets/box-sizing",
58
- // "utils/form",
59
- // "utils/layout",
60
- // "utils/typography",
61
- // "components/button",
62
- // "components/checkbox",
63
- // "components/edit",
64
- "components/tabular-grid"
28
+ "components/button",
29
+ "components/combo-box",
30
+ "components/icon",
31
+ "components/tabular-grid",
32
+ "utils/elevation",
33
+ "utils/form",
34
+ "utils/layout",
35
+ "utils/spacing"
65
36
  ];
37
+ const ADD_ICON = getIconPath({
38
+ category: "system",
39
+ name: "add",
40
+ colorType: "neutral"
41
+ });
42
+ const FILTER_ICON = getIconPath({
43
+ category: "window-tools",
44
+ name: "filter",
45
+ colorType: "on-elevation"
46
+ });
47
+ const MORE_ICON = getIconPath({
48
+ category: "system",
49
+ name: "more-horizontal",
50
+ colorType: "primary"
51
+ });
52
+ const SUGGEST_OPTIONS = {
53
+ alreadyProcessed: true,
54
+ autoExpand: false,
55
+ hideMatchesAndShowNonMatches: false,
56
+ highlightMatchedItems: false,
57
+ matchCase: false,
58
+ regularExpression: false,
59
+ strict: false,
60
+ renderActiveItemIconOnExpand: true
61
+ };
66
62
  const GxIdeBpmAppDeclaration = class {
67
63
  constructor(hostRef) {
68
64
  registerInstance(this, hostRef);
69
65
  this.componentDidRenderFirstTime = createEvent(this, "componentDidRenderFirstTime", 7);
70
- this.renderedFirstTime = false;
71
- this.shortcutsSrc = getAssetPath(`./gx-ide-assets/bpm-app-declaration/shortcuts.json`);
72
- // 7.LISTENERS //
73
- // 8.PUBLIC METHODS API //
74
- // 9.LOCAL METHODS //
75
- this.listenApplicationSelected = async () => {
76
- this.applicationSuggestEl.addEventListener("itemSelected", (e) => {
77
- this.getDataMappingCallbackHandler(e.detail.value);
66
+ /**
67
+ * The component hard-coded strings translations.
68
+ */
69
+ // eslint-disable-next-line @stencil-community/own-props-must-be-private
70
+ _GxIdeBpmAppDeclaration_componentLocale.set(this, void 0);
71
+ _GxIdeBpmAppDeclaration_animateEmptyState.set(this, true);
72
+ _GxIdeBpmAppDeclaration_shortcutsSrc.set(this, getAssetPath(`./gx-ide-assets/bpm-app-declaration/shortcuts.json`));
73
+ _GxIdeBpmAppDeclaration_ACCESS_CAPTION_MAP.set(this, {
74
+ // To be defined on componentWillLoad
75
+ in: undefined,
76
+ out: undefined,
77
+ inout: undefined
78
+ });
79
+ _GxIdeBpmAppDeclaration_setAccessCaptions.set(this, () => {
80
+ __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_ACCESS_CAPTION_MAP, "f").in = __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_componentLocale, "f").dataMappings.access.in;
81
+ __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_ACCESS_CAPTION_MAP, "f").out =
82
+ __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_componentLocale, "f").dataMappings.access.out;
83
+ __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_ACCESS_CAPTION_MAP, "f").inout =
84
+ __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_componentLocale, "f").dataMappings.access.inout;
85
+ });
86
+ _GxIdeBpmAppDeclaration_applicationInputChangedHandler.set(this, async (event) => {
87
+ const selectedApplicationName = event.detail;
88
+ this.application.mappings = await this.getDataMappingCallback(selectedApplicationName);
89
+ });
90
+ _GxIdeBpmAppDeclaration_cancelCallbackHandler.set(this, () => {
91
+ this.cancelCallback();
92
+ });
93
+ _GxIdeBpmAppDeclaration_clearApplicationHandler.set(this, () => {
94
+ this.application = {
95
+ application: {
96
+ name: "",
97
+ typeIcon: ""
98
+ },
99
+ mappings: []
100
+ };
101
+ });
102
+ _GxIdeBpmAppDeclaration_confirmCallbackHandler.set(this, () => {
103
+ this.confirmCallback(this.application);
104
+ });
105
+ _GxIdeBpmAppDeclaration_mapRelevantDataOptionsToComboBoxModel.set(this, (relevantDataOptions) => {
106
+ return relevantDataOptions.map(optionName => {
107
+ return {
108
+ caption: optionName,
109
+ value: optionName
110
+ };
78
111
  });
79
- };
80
- this.applicationSuggestValueChangedHandler = async (e) => {
81
- const value = e.detail;
82
- this.suggestApplicationsCallback(value)
83
- .then(result => {
84
- this.suggestedApplications =
85
- convertSuggestedApplicationsToSuggestItems(result);
86
- })
87
- .catch(() => {
88
- // to do
112
+ });
113
+ _GxIdeBpmAppDeclaration_mapSuggestedApplicationsToComboBoxModel.set(this, (suggestedApplicationsNames) => {
114
+ return suggestedApplicationsNames.map(applicationName => {
115
+ return {
116
+ caption: applicationName,
117
+ value: applicationName
118
+ };
89
119
  });
90
- };
91
- this.getDataMappingCallbackHandler = async (applicationName) => {
92
- this.application = await this.getDataMappingCallback(applicationName);
93
- };
94
- this.selectApplicationCallbackHandler = async () => {
95
- const callbackResult = await this.selectApplicationCallback();
96
- if (callbackResult) {
97
- this.application = callbackResult;
120
+ });
121
+ _GxIdeBpmAppDeclaration_relevantDataInputHandler.set(this, (mappingIndex) => async (event) => {
122
+ const inputValue = event.detail;
123
+ this.application.mappings[mappingIndex].relevantData = inputValue;
124
+ });
125
+ _GxIdeBpmAppDeclaration_selectApplicationCallbackHandler.set(this, async () => {
126
+ const applicationDeclarationData = await this.selectApplicationCallback();
127
+ if (applicationDeclarationData) {
128
+ __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_setApplicationData, "f").call(this, applicationDeclarationData.application);
129
+ this.application.mappings = applicationDeclarationData.mappings;
98
130
  }
99
- };
100
- this.confirmCallbackHandler = async () => {
101
- await this.confirmCallback(this.application);
102
- };
103
- this.cancelCallbackHandler = async () => {
104
- await this.cancelCallback();
105
- };
106
- this.selectMappingCallbackHandler = (parameter) => async () => {
107
- if (this.selectMappingCallback) {
108
- const newRelevantData = await this.selectMappingCallback(parameter);
109
- if (newRelevantData) {
110
- // update actual application with new relevant data option
111
- // first find mapping index
112
- const dataIndex = this.applicationState.mappings.findIndex(mapping => {
113
- return mapping.parameter === parameter;
114
- });
115
- if (dataIndex !== -1) {
116
- // new relevant data could be new, or already existent.
117
- const found = this.applicationState.mappings[dataIndex].relevantDataOptions.find(option => {
118
- return option === newRelevantData;
119
- });
120
- if (!found) {
121
- // new. add.
122
- this.applicationState.mappings[dataIndex].relevantDataOptions.push(newRelevantData);
123
- }
124
- // always set this data as selected
125
- this.applicationState.mappings[dataIndex].relevantData =
126
- newRelevantData;
127
- // update
128
- this.application = Object.assign({}, this.applicationState);
129
- }
131
+ });
132
+ _GxIdeBpmAppDeclaration_selectMappingCallbackHandler.set(this, (parameter, mappingIndex) => async () => {
133
+ const returnedRelevantData = await this.selectMappingCallback(parameter);
134
+ if (returnedRelevantData) {
135
+ const currentRelevantDataOptions = this.application.mappings[mappingIndex].relevantDataOptions;
136
+ const indexOfReturnedRelevantData = currentRelevantDataOptions.indexOf(returnedRelevantData);
137
+ if (indexOfReturnedRelevantData === -1) {
138
+ // returnedRelevantData is a new option. Add to combo-box.
139
+ currentRelevantDataOptions.push(returnedRelevantData);
130
140
  }
141
+ // Set as selected
142
+ this.application.mappings[mappingIndex].relevantData =
143
+ returnedRelevantData;
144
+ __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_updateApplicationData, "f").call(this);
131
145
  }
132
- };
133
- this.dataOptionsToComboItems = (relevantDataOptions) => {
134
- const gxOptions = [
135
- { id: this._componentLocale.dataMappings.emptyOption }
136
- ];
137
- relevantDataOptions.forEach(relevantOption => {
138
- const gxOption = { id: relevantOption };
139
- gxOptions.push(gxOption);
140
- });
141
- return gxOptions;
142
- };
143
- this.clearApplicationHandler = () => {
144
- this.application = {
145
- application: undefined,
146
- mappings: []
147
- };
148
- };
149
- this.renderDataMappingsGrid = () => {
146
+ });
147
+ _GxIdeBpmAppDeclaration_setApplicationData.set(this, (applicationData) => {
148
+ if (applicationData) {
149
+ const applicationName = applicationData.name;
150
+ this.application.application.name = applicationName;
151
+ this.applicationComboBoxModel = [
152
+ {
153
+ caption: applicationName,
154
+ value: applicationName,
155
+ startImgSrc: applicationData.typeIcon
156
+ }
157
+ ];
158
+ }
159
+ });
160
+ _GxIdeBpmAppDeclaration_suggestInputHandler.set(this, async (event) => {
161
+ const inputValue = event.detail;
162
+ this.application.application.name = inputValue;
163
+ const suggestedApplicationNames = await this.suggestApplicationsCallback(inputValue);
164
+ this.applicationComboBoxModel =
165
+ __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_mapSuggestedApplicationsToComboBoxModel, "f").call(this, suggestedApplicationNames);
166
+ });
167
+ _GxIdeBpmAppDeclaration_updateApplicationData.set(this, () => {
168
+ this.application = Object.assign({}, this.application);
169
+ });
170
+ // Renders
171
+ _GxIdeBpmAppDeclaration_renderDataMappingsGrid.set(this, () => {
150
172
  var _a;
151
- return (h("ch-tabular-grid", { class: "tabular-grid tabular-grid-application-declaration", part: "ch-grid-data-mappings" }, h("ch-tabular-grid-columnset", { class: "tabular-grid-column-set" }, h("ch-tabular-grid-column", { class: "tabular-grid-column", columnName: ((_a = this.application.application) === null || _a === void 0 ? void 0 : _a.typeIcon) === "objects/transaction"
152
- ? this._componentLocale.dataMappings.firstColName
153
- : this._componentLocale.dataMappings.firstColNameParameter, settingable: false, size: config.tabularGrid.colSize.common }), h("ch-tabular-grid-column", { class: "tabular-grid-column", columnName: this._componentLocale.dataMappings.secondColName, settingable: false, sortable: false, size: config.tabularGrid.colSize.common }), h("ch-tabular-grid-column", { class: "tabular-grid-column", settingable: false, sortable: false, size: config.tabularGrid.colSize.auto })), this.application.mappings.map((obj, index) => {
154
- var _a;
155
- return (h("ch-tabular-grid-row", { class: "tabular-grid-row", rowId: index + obj.parameter }, h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, `${obj.access}: ${obj.parameter}`), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, h("gxg-combo-box", { disableFilter: true, value: obj.relevantData }, renderComboItems((_a = this.dataOptionsToComboItems(obj.relevantDataOptions)) !== null && _a !== void 0 ? _a : []))), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, h("gxg-button", { "data-index": index, type: "secondary-icon-only", icon: "gemini-tools/add", onClick: this.selectMappingCallbackHandler(obj.parameter), class: "select-mapping-callback-button" }))));
156
- })));
157
- };
158
- this.suggestedApplications = undefined;
159
- this.displayTitle = false;
173
+ const applicationDataToDisplay = this.application.mappings.length;
174
+ if (applicationDataToDisplay) {
175
+ // Set as animated for the next time.
176
+ __classPrivateFieldSet(this, _GxIdeBpmAppDeclaration_animateEmptyState, true, "f");
177
+ }
178
+ return (h("div", { class: "field-group data-mapping-grid-container" }, h("div", { class: "field field-block" }, h("label", { class: "spacing-body-inline-start label" }, __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_componentLocale, "f").dataMappings.title), h("ch-tabular-grid", { class: {
179
+ "tabular-grid": true,
180
+ "tabular-grid-application-declaration": true,
181
+ "scrollable": true,
182
+ "empty-result": !applicationDataToDisplay
183
+ }, part: "ch-grid-data-mappings" }, h("ch-tabular-grid-columnset", { class: "tabular-grid-column-set" }, h("ch-tabular-grid-column", { class: "tabular-grid-column", columnName: ((_a = this.application.application) === null || _a === void 0 ? void 0 : _a.typeIcon) ===
184
+ "objects/transaction"
185
+ ? __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_componentLocale, "f").dataMappings.firstColName
186
+ : __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_componentLocale, "f").dataMappings.firstColNameParameter, settingable: false, size: config.tabularGrid.colSize.common }), h("ch-tabular-grid-column", { class: "tabular-grid-column", columnName: __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_componentLocale, "f").dataMappings.secondColName, settingable: false, sortable: false, size: config.tabularGrid.colSize.common }), h("ch-tabular-grid-column", { class: "tabular-grid-column", settingable: false, sortable: false, size: config.tabularGrid.colSize.auto })), this.application.mappings.length ? (h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, this.application.mappings.map((obj, index) => (h("ch-tabular-grid-row", { class: "tabular-grid-row", rowId: `${index}-${obj.parameter}`, key: `${index}-${obj.parameter}-grid-row` }, h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, h("span", { class: "pill-tag elevation-3" }, __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_ACCESS_CAPTION_MAP, "f")[obj.access]), obj.parameter), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, h("ch-combo-box-render", { class: "combo-box", model: __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_mapRelevantDataOptionsToComboBoxModel, "f").call(this, obj.relevantDataOptions), value: obj.relevantData, key: `${index}-${obj.parameter}-combo-box`, onInput: __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_relevantDataInputHandler, "f").call(this, index) })), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, h("button", { "data-index": index, onClick: __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_selectMappingCallbackHandler, "f").call(this, obj.parameter, index), class: "button-tertiary button-icon-only", "aria-label": __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_componentLocale, "f").buttons.selectMapping, title: __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_componentLocale, "f").buttons.selectMapping }, h("ch-image", { class: "icon-md", src: ADD_ICON })))))))) : (h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, h("ch-tabular-grid-rowset-empty", null, h("gx-ide-empty-state", { isAnimated: __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_animateEmptyState, "f"), stateIconSrc: FILTER_ICON, stateTitle: __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_componentLocale, "f").emptyState.title, stateDescription: __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_componentLocale, "f").emptyState.description }))))))));
187
+ });
188
+ this.applicationComboBoxModel = [];
160
189
  this.application = undefined;
161
- this.suggestApplicationsCallback = undefined;
162
- this.selectApplicationCallback = undefined;
163
- this.selectMappingCallback = undefined;
164
- this.confirmCallback = undefined;
165
190
  this.cancelCallback = undefined;
191
+ this.confirmCallback = undefined;
166
192
  this.getDataMappingCallback = undefined;
193
+ this.selectApplicationCallback = undefined;
194
+ this.selectMappingCallback = undefined;
195
+ this.suggestApplicationsCallback = undefined;
167
196
  }
168
- watchApplicationHandler(newApplication) {
169
- this.applicationState = newApplication;
170
- }
171
- // 6.COMPONENT LIFECYCLE METHODS //
172
197
  async componentWillLoad() {
173
- this._componentLocale = await Locale.getComponentStrings(this.el);
174
- this.applicationState = this.application;
175
- }
176
- async componentDidLoad() {
177
- /* this.applicationSuggestValueChangedHandler(this.applicationText); */
178
- this.listenApplicationSelected();
179
- this.applicationSuggestEl.focus();
180
- }
181
- componentDidRender() {
182
- if (!this.renderedFirstTime) {
183
- this.componentDidRenderFirstTime.emit(this._componentLocale.componentName);
184
- this.renderedFirstTime = true;
198
+ __classPrivateFieldSet(this, _GxIdeBpmAppDeclaration_componentLocale, await Locale.getComponentStrings(this.el), "f");
199
+ __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_setApplicationData, "f").call(this, this.application.application);
200
+ if (this.application.mappings.length === 0) {
201
+ __classPrivateFieldSet(this, _GxIdeBpmAppDeclaration_animateEmptyState, false, "f");
185
202
  }
203
+ __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_setAccessCaptions, "f").call(this);
186
204
  }
187
- // 10.RENDER() FUNCTION //
188
205
  render() {
189
- var _a;
190
- return (h(Host, { class: "gx-ide-component" }, h("ch-theme", { model: CSS_BUNDLES }), h("div", { class: "gx-ide-main-wrapper" }, h("gx-ide-container", { noContentPadding: true, noAboveFooterPadding: true, noHeadingBorder: true, slimmerFooter: config.gxIdeContainer.slimmerFooter, containerTitle: this.displayTitle ? this._componentLocale.componentName : null }, h("header", { slot: "header", class: "header" }, h("div", { class: "header__first-row" }, h("gxg-suggest", { class: "application-suggest" }, h("ch-suggest", { value: ((_a = this.application.application) === null || _a === void 0 ? void 0 : _a.name) || null, onValueChanged: this.applicationSuggestValueChangedHandler, ref: el => (this.applicationSuggestEl = el), part: "application-suggest" }, renderSuggestLists(this.suggestedApplications))), h("gxg-button", { type: "secondary-icon-only", icon: "gemini-tools/show-more-horizontal", onClick: this.selectApplicationCallbackHandler, class: "selector-dialog-button", part: "open-selector-dialog-button" }), h("gxg-button", { type: "outlined", part: "clear-application-button", onClick: this.clearApplicationHandler }, "Clear")), h("div", { class: "header__second-row" }, h("gx-ide-title", { type: "secondary" }, this._componentLocale.dataMappings.title))), this.renderDataMappingsGrid(), h("gxg-button", { type: "secondary-text-only", slot: "footer-end", onClick: this.cancelCallbackHandler, part: "cancel-button" }, this._componentLocale.buttons.cancelButton), h("gxg-button", { type: "primary-text-only", slot: "footer-end", icon: "general/datastore", onClick: this.confirmCallbackHandler, part: "confirm-button" }, this._componentLocale.buttons.confirmButton))), h("gxg-shortcuts", { src: this.shortcutsSrc })));
206
+ return (h(Host, { class: "widget" }, h("ch-theme", { model: CSS_BUNDLES }), h("section", { class: "section" }, h("header", { slot: "header", class: "header spacing-body" }, h("ch-combo-box-render", { class: "combo-box", value: this.application.application.name, model: this.applicationComboBoxModel, suggestDebounce: config.inputDebounce, suggest: true, suggestOptions: SUGGEST_OPTIONS, onInput: __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_suggestInputHandler, "f"), onChange: __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_applicationInputChangedHandler, "f") }), h("div", { class: "buttons-spacer" }, h("button", { onClick: __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_selectApplicationCallbackHandler, "f"), class: "button-tertiary button-icon-only", "aria-label": __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_componentLocale, "f").buttons.selectApplication, title: __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_componentLocale, "f").buttons.selectApplication }, h("ch-image", { class: "icon-md", src: MORE_ICON })), h("button", { onClick: __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_clearApplicationHandler, "f"), class: "button-secondary" }, "Clear"))), __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_renderDataMappingsGrid, "f").call(this), h("footer", { class: "control-footer spacing-body-block-end spacing-body-inline" }, h("div", { class: "buttons-spacer" }, h("button", { class: "button-secondary", onClick: __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_cancelCallbackHandler, "f") }, __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_componentLocale, "f").buttons.cancelButton), h("button", { class: "button-primary", onClick: __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_confirmCallbackHandler, "f") }, __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_componentLocale, "f").buttons.confirmButton)))), h("ch-shortcuts", { src: __classPrivateFieldGet(this, _GxIdeBpmAppDeclaration_shortcutsSrc, "f") })));
191
207
  }
192
208
  static get assetsDirs() { return ["gx-ide-assets/bpm-app-declaration"]; }
193
209
  get el() { return getElement(this); }
194
- static get watchers() { return {
195
- "application": ["watchApplicationHandler"]
196
- }; }
197
210
  };
211
+ _GxIdeBpmAppDeclaration_componentLocale = new WeakMap(), _GxIdeBpmAppDeclaration_animateEmptyState = new WeakMap(), _GxIdeBpmAppDeclaration_shortcutsSrc = new WeakMap(), _GxIdeBpmAppDeclaration_ACCESS_CAPTION_MAP = new WeakMap(), _GxIdeBpmAppDeclaration_setAccessCaptions = new WeakMap(), _GxIdeBpmAppDeclaration_applicationInputChangedHandler = new WeakMap(), _GxIdeBpmAppDeclaration_cancelCallbackHandler = new WeakMap(), _GxIdeBpmAppDeclaration_clearApplicationHandler = new WeakMap(), _GxIdeBpmAppDeclaration_confirmCallbackHandler = new WeakMap(), _GxIdeBpmAppDeclaration_mapRelevantDataOptionsToComboBoxModel = new WeakMap(), _GxIdeBpmAppDeclaration_mapSuggestedApplicationsToComboBoxModel = new WeakMap(), _GxIdeBpmAppDeclaration_relevantDataInputHandler = new WeakMap(), _GxIdeBpmAppDeclaration_selectApplicationCallbackHandler = new WeakMap(), _GxIdeBpmAppDeclaration_selectMappingCallbackHandler = new WeakMap(), _GxIdeBpmAppDeclaration_setApplicationData = new WeakMap(), _GxIdeBpmAppDeclaration_suggestInputHandler = new WeakMap(), _GxIdeBpmAppDeclaration_updateApplicationData = new WeakMap(), _GxIdeBpmAppDeclaration_renderDataMappingsGrid = new WeakMap();
198
212
  GxIdeBpmAppDeclaration.style = bpmAppDeclarationCss;
199
213
 
200
214
  export { GxIdeBpmAppDeclaration as gx_ide_bpm_app_declaration };
@@ -1 +1 @@
1
- {"file":"gx-ide-bpm-app-declaration.entry.js","mappings":";;;;;AAAA;AAMO,MAAM,kBAAkB,GAAG,CAChC,WAAwB;IAExB,IAAI,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,YAAY,CAAC,MAAM,EAAE;QACpC,OAAO,WAAW,CAAC,YAAY,CAAC,GAAG,CACjC,CAAC,IAAqB;YACpB,QACE,uBAAiB,KAAK,EAAE,IAAI,CAAC,KAAK,IAC/B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAqB;gBACpC,OAAO,sBAAsB,CAAC,IAAI,CAAC,CAAC;aACrC,CAAC,CACc,EAClB;SACH,CACF,CAAC;KACH;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAC7B,WAA4B;IAE5B,QACE,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,EACvB;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG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BACE,IAAI,EAAC,qBAAqB,EAC1B,IAAI,EAAC,mCAAmC,EACxC,OAAO,EAAE,IAAI,CAAC,gCAAgC,EAC9C,KAAK,EAAC,wBAAwB,EAC9B,IAAI,EAAC,6BAA6B,GACtB,EACd,kBACE,IAAI,EAAC,UAAU,EACf,IAAI,EAAC,0BAA0B,EAC/B,OAAO,EAAE,IAAI,CAAC,uBAAuB,YAG1B,CACT,EACN,WAAK,KAAK,EAAC,oBAAoB,IAC7B,oBAAc,IAAI,EAAC,WAAW,IAC3B,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,KAAK,CAC5B,CACX,CACC,EAER,IAAI,CAAC,sBAAsB,EAAE,EAC9B,kBACE,IAAI,EAAC,qBAAqB,EAC1B,IAAI,EAAC,YAAY,EACjB,OAAO,EAAE,IAAI,CAAC,qBAAqB,EACnC,IAAI,EAAC,eAAe,IAEnB,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,YAAY,CAChC,EACb,kBACE,IAAI,EAAC,mBAAmB,EACxB,IAAI,EAAC,YAAY,EACjB,IAAI,EAAC,mBAAmB,EACxB,OAAO,EAAE,IAAI,CAAC,sBAAsB,EACpC,IAAI,EAAC,gBAAgB,IAEpB,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,aAAa,CACjC,CACI,CACf,EACN,qBAAe,GAAG,EAAE,IAAI,CAAC,YAAY,GAAkB,CAClD,EACP;KACH;;;;;;;;;;;","names":[],"sources":["src/common/render-suggest.tsx","src/components/bpm/application-declaration/helpers.ts","src/components/bpm/application-declaration/bpm-app-declaration.scss?tag=gx-ide-bpm-app-declaration&encapsulation=shadow","src/components/bpm/application-declaration/bpm-app-declaration.tsx"],"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","/* Ch Suggest*/\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\n/* References Types*/\n\n/**\n * @description This function converts string[] to SuggestItemData[]\n */\nexport const convertSuggestedApplicationsToSuggestItems = (\n suggestedApplications: string[]\n): SuggestData => {\n const suggestData: SuggestData = {\n suggestItems: null,\n suggestLists: []\n };\n if (suggestedApplications.length) {\n const suggestList: SuggestListData = {\n label: \"Applications\",\n items: []\n };\n suggestedApplications.forEach((suggestedApplication: string) => {\n const suggestItem: SuggestItemData = {\n value: suggestedApplication,\n description: null,\n icon: null\n };\n suggestList.items.push(suggestItem);\n });\n suggestData.suggestLists.push(suggestList);\n }\n return suggestData;\n};\n","@import \"../../../global/gx-ide-common.scss\";\n@import \"../../../global/gx-ide-mixins.scss\";\n@import \"../../../../node_modules/@genexus/mercury/dist/assets/scss/helpers.scss\";\n\n:host {\n display: block;\n .header {\n display: flex;\n flex-direction: column;\n gap: var(--gx-ide-grid-row-gap);\n &__first-row {\n display: flex;\n flex-direction: row;\n gap: var(--gx-ide-grid-column-gap);\n .application-suggest {\n flex: 1;\n }\n }\n }\n /*data mappings*/\n .data-mappings {\n display: grid;\n }\n .row-button {\n display: flex;\n align-items: center;\n }\n}\n\n@include tabular-grid-cell-layout(\n $tabular-grid-selector: \".tabular-grid-application-declaration\",\n $tabular-grid-cell-node-type: \"element\",\n $tabular-grid-affected-columns-nth-list: (\n 2\n )\n);\n\n// temporary styles until que update controls with chameleon + mercury:\n\ngx-ide-container::part(content) {\n display: grid;\n}\n\ngxg-combo-box::part(input-input) {\n border: none;\n background-color: transparent;\n top: 2px;\n}\n\n// WA\n.tabular-grid-cell:nth-child(2) {\n padding: 0 !important;\n display: grid;\n align-items: stretch;\n justify-content: stretch;\n --ds-focus-border-width: none;\n}\n.tabular-grid-cell:nth-child(3) {\n padding: 0 !important;\n align-items: center !important;\n justify-content: center !important;\n}\n.tabular-grid {\n overflow: auto;\n}\n","/* STENCIL IMPORTS */\nimport {\n Component,\n Host,\n h,\n Prop,\n State,\n Element,\n Event,\n EventEmitter,\n Watch,\n getAssetPath\n} from \"@stencil/core\";\n/* OTHER LIBRARIES IMPORTS */\nimport { MercuryBundles } from \"@genexus/mercury\";\n/* CUSTOM IMPORTS */\nimport { Locale } from \"../../../common/locale\";\nimport { config } from \"../../../common/config\";\nimport { SuggestData } from \"@genexus/chameleon-controls-library/dist/types/deprecated-components/suggest/ch-suggest\";\nimport { renderSuggestLists } from \"../../../common/render-suggest\";\nimport { renderComboItems } from \"../../../common/render-combo-items\";\nimport { convertSuggestedApplicationsToSuggestItems } from \"./helpers\";\nimport { GxOption } from \"../../../common/types\";\n\nconst CSS_BUNDLES: MercuryBundles = [\n \"resets/box-sizing\",\n // \"utils/form\",\n // \"utils/layout\",\n // \"utils/typography\",\n // \"components/button\",\n // \"components/checkbox\",\n // \"components/edit\",\n \"components/tabular-grid\"\n];\n\n@Component({\n tag: \"gx-ide-bpm-app-declaration\",\n styleUrl: \"bpm-app-declaration.scss\",\n shadow: true,\n assetsDirs: [\"gx-ide-assets/bpm-app-declaration\"]\n})\nexport class GxIdeBpmAppDeclaration {\n // 1.OWN PROPERTIES //\n\n /**\n * The component hard-coded strings translations.\n */\n private _componentLocale: any;\n private renderedFirstTime = false;\n private shortcutsSrc = getAssetPath(\n `./gx-ide-assets/bpm-app-declaration/shortcuts.json`\n );\n\n /**\n * The state of the actual application. Used to add a new 'Relevant data' option on 'selectMappingCallback', and update the application with the new option\n */\n private applicationState: ApplicationDeclarationData;\n\n // 2. REFERENCE TO ELEMENTS //\n\n @Element() el: HTMLGxIdeBpmAppDeclarationElement;\n private applicationSuggestEl: HTMLChSuggestElement;\n\n // 3.STATE() VARIABLES //\n\n /**\n * Possible suggestions for the applications\n */\n @State() suggestedApplications: SuggestData;\n\n // 4.PUBLIC PROPERTY API | WATCH'S //\n\n /**\n * If true it displays the component title on the header\n */\n @Prop() readonly displayTitle = false;\n\n /**\n * Current application value\n */\n @Prop({ mutable: true }) application: ApplicationDeclarationData;\n\n @Watch(\"application\")\n watchApplicationHandler(newApplication: ApplicationDeclarationData) {\n this.applicationState = newApplication;\n }\n\n /**\n * Callback invoked to get options for application input suggest\n */\n @Prop() readonly suggestApplicationsCallback: SuggestApplicationsCallback;\n\n /**\n * Callback invoked to get access to selection application dialog\n */\n @Prop() readonly selectApplicationCallback: SelectApplicationCallback;\n\n /**\n * Callback invoked when user press mapping auto-def button\n */\n @Prop() readonly selectMappingCallback: SelectMappingCallback;\n\n /**\n * Callback invoked when user confirms application declaration\n */\n @Prop() readonly confirmCallback: ConfirmCallback;\n\n /**\n * Callback invoked when user cancels application declaration\n */\n @Prop() readonly cancelCallback: CancelCallback;\n\n /**\n * Callback invoked when user select one of the options provided by the suggest\n */\n @Prop() readonly getDataMappingCallback: GetDataMappingCallback;\n\n // 5.EVENTS (EMIT) //\n\n /**\n * @description Gets fired when the component has rendered for the first time.\n */\n @Event() componentDidRenderFirstTime: EventEmitter<string>;\n\n // 6.COMPONENT LIFECYCLE METHODS //\n\n async componentWillLoad() {\n this._componentLocale = await Locale.getComponentStrings(this.el);\n this.applicationState = this.application;\n }\n\n async componentDidLoad() {\n /* this.applicationSuggestValueChangedHandler(this.applicationText); */\n this.listenApplicationSelected();\n this.applicationSuggestEl.focus();\n }\n\n componentDidRender() {\n if (!this.renderedFirstTime) {\n this.componentDidRenderFirstTime.emit(\n this._componentLocale.componentName\n );\n this.renderedFirstTime = true;\n }\n }\n\n // 7.LISTENERS //\n\n // 8.PUBLIC METHODS API //\n\n // 9.LOCAL METHODS //\n\n private listenApplicationSelected = async () => {\n this.applicationSuggestEl.addEventListener(\"itemSelected\", (e: any) => {\n this.getDataMappingCallbackHandler(e.detail.value);\n });\n };\n\n private applicationSuggestValueChangedHandler = async (\n e: CustomEvent<string>\n ) => {\n const value = e.detail;\n this.suggestApplicationsCallback(value)\n .then(result => {\n this.suggestedApplications =\n convertSuggestedApplicationsToSuggestItems(result);\n })\n .catch(() => {\n // to do\n });\n };\n\n private getDataMappingCallbackHandler = async (applicationName: string) => {\n this.application = await this.getDataMappingCallback(applicationName);\n };\n\n private selectApplicationCallbackHandler = async () => {\n const callbackResult = await this.selectApplicationCallback();\n if (callbackResult) {\n this.application = callbackResult;\n }\n };\n\n private confirmCallbackHandler = async () => {\n await this.confirmCallback(this.application);\n };\n\n private cancelCallbackHandler = async () => {\n await this.cancelCallback();\n };\n\n private selectMappingCallbackHandler = (parameter: string) => async () => {\n if (this.selectMappingCallback) {\n const newRelevantData = await this.selectMappingCallback(parameter);\n if (newRelevantData) {\n // update actual application with new relevant data option\n // first find mapping index\n const dataIndex: number = this.applicationState.mappings.findIndex(\n mapping => {\n return mapping.parameter === parameter;\n }\n );\n if (dataIndex !== -1) {\n // new relevant data could be new, or already existent.\n const found = this.applicationState.mappings[\n dataIndex\n ].relevantDataOptions.find(option => {\n return option === newRelevantData;\n });\n if (!found) {\n // new. add.\n this.applicationState.mappings[dataIndex].relevantDataOptions.push(\n newRelevantData\n );\n }\n // always set this data as selected\n this.applicationState.mappings[dataIndex].relevantData =\n newRelevantData;\n // update\n this.application = { ...this.applicationState };\n }\n }\n }\n };\n\n private dataOptionsToComboItems = (\n relevantDataOptions: string[]\n ): GxOption[] => {\n const gxOptions: GxOption[] = [\n { id: this._componentLocale.dataMappings.emptyOption }\n ];\n relevantDataOptions.forEach(relevantOption => {\n const gxOption: GxOption = { id: relevantOption };\n gxOptions.push(gxOption);\n });\n return gxOptions;\n };\n\n private clearApplicationHandler = () => {\n this.application = {\n application: undefined,\n mappings: []\n };\n };\n\n private renderDataMappingsGrid = (): Element => {\n return (\n <ch-tabular-grid\n class=\"tabular-grid tabular-grid-application-declaration\"\n part=\"ch-grid-data-mappings\"\n >\n <ch-tabular-grid-columnset class=\"tabular-grid-column-set\">\n <ch-tabular-grid-column\n class=\"tabular-grid-column\"\n columnName={\n this.application.application?.typeIcon === \"objects/transaction\"\n ? this._componentLocale.dataMappings.firstColName\n : this._componentLocale.dataMappings.firstColNameParameter\n }\n settingable={false}\n size={config.tabularGrid.colSize.common}\n ></ch-tabular-grid-column>\n\n <ch-tabular-grid-column\n class=\"tabular-grid-column\"\n columnName={this._componentLocale.dataMappings.secondColName}\n settingable={false}\n sortable={false}\n size={config.tabularGrid.colSize.common}\n ></ch-tabular-grid-column>\n <ch-tabular-grid-column\n class=\"tabular-grid-column\"\n settingable={false}\n sortable={false}\n size={config.tabularGrid.colSize.auto}\n ></ch-tabular-grid-column>\n </ch-tabular-grid-columnset>\n\n {this.application.mappings.map((obj: DataMappingData, index) => (\n <ch-tabular-grid-row\n class=\"tabular-grid-row\"\n rowId={index + obj.parameter}\n >\n <ch-tabular-grid-cell class=\"tabular-grid-cell\">\n {`${obj.access}: ${obj.parameter}`}\n </ch-tabular-grid-cell>\n <ch-tabular-grid-cell class=\"tabular-grid-cell\">\n <gxg-combo-box disableFilter value={obj.relevantData}>\n {renderComboItems(\n this.dataOptionsToComboItems(obj.relevantDataOptions) ?? []\n )}\n </gxg-combo-box>\n {/* <div class=\"row-button\">{obj.relevantData}</div> */}\n </ch-tabular-grid-cell>\n <ch-tabular-grid-cell class=\"tabular-grid-cell\">\n <gxg-button\n data-index={index}\n type=\"secondary-icon-only\"\n icon=\"gemini-tools/add\"\n onClick={this.selectMappingCallbackHandler(obj.parameter)}\n class=\"select-mapping-callback-button\"\n ></gxg-button>\n </ch-tabular-grid-cell>\n </ch-tabular-grid-row>\n ))}\n </ch-tabular-grid>\n );\n };\n\n // 10.RENDER() FUNCTION //\n\n render() {\n return (\n <Host class=\"gx-ide-component\">\n <ch-theme model={CSS_BUNDLES}></ch-theme>\n <div class=\"gx-ide-main-wrapper\">\n <gx-ide-container\n noContentPadding\n noAboveFooterPadding\n noHeadingBorder\n slimmerFooter={config.gxIdeContainer.slimmerFooter}\n containerTitle={\n this.displayTitle ? this._componentLocale.componentName : null\n }\n >\n <header slot=\"header\" class=\"header\">\n <div class=\"header__first-row\">\n <gxg-suggest class=\"application-suggest\">\n <ch-suggest\n value={this.application.application?.name || null}\n onValueChanged={this.applicationSuggestValueChangedHandler}\n ref={el =>\n (this.applicationSuggestEl = el as HTMLChSuggestElement)\n }\n part=\"application-suggest\"\n >\n {renderSuggestLists(this.suggestedApplications)}\n </ch-suggest>\n </gxg-suggest>\n <gxg-button\n type=\"secondary-icon-only\"\n icon=\"gemini-tools/show-more-horizontal\"\n onClick={this.selectApplicationCallbackHandler}\n class=\"selector-dialog-button\"\n part=\"open-selector-dialog-button\"\n ></gxg-button>\n <gxg-button\n type=\"outlined\"\n part=\"clear-application-button\"\n onClick={this.clearApplicationHandler}\n >\n Clear\n </gxg-button>\n </div>\n <div class=\"header__second-row\">\n <gx-ide-title type=\"secondary\">\n {this._componentLocale.dataMappings.title}\n </gx-ide-title>\n </div>\n </header>\n\n {this.renderDataMappingsGrid()}\n <gxg-button\n type=\"secondary-text-only\"\n slot=\"footer-end\"\n onClick={this.cancelCallbackHandler}\n part=\"cancel-button\"\n >\n {this._componentLocale.buttons.cancelButton}\n </gxg-button>\n <gxg-button\n type=\"primary-text-only\"\n slot=\"footer-end\"\n icon=\"general/datastore\"\n onClick={this.confirmCallbackHandler}\n part=\"confirm-button\"\n >\n {this._componentLocale.buttons.confirmButton}\n </gxg-button>\n </gx-ide-container>\n </div>\n <gxg-shortcuts src={this.shortcutsSrc}></gxg-shortcuts>\n </Host>\n );\n }\n}\n\nexport type ApplicationDeclarationData = {\n application?: ApplicationData;\n mappings: DataMappingData[];\n};\nexport type ApplicationData = {\n name: string;\n typeIcon: string;\n};\n\nexport type DataMappingData = {\n parameter: string;\n access: \"in\" | \"out\" | \"in-out\";\n relevantDataOptions: string[];\n relevantData?: string;\n};\n\nexport type SuggestApplicationsCallback = (\n prefix: string\n) => Promise<string[] | undefined>;\n\nexport type SelectApplicationCallback = () => Promise<\n ApplicationDeclarationData | undefined\n>;\n\nexport type SelectMappingCallback = (parameter: string) => Promise<string>;\n\nexport type ConfirmCallback = (\n data: ApplicationDeclarationData\n) => Promise<void>;\n\nexport type CancelCallback = () => Promise<void>;\n\nexport type GetDataMappingCallback = (\n applicationName: string\n) => Promise<ApplicationDeclarationData>;\n"],"version":3}
1
+ {"file":"gx-ide-bpm-app-declaration.entry.js","mappings":";;;;;;AAAA,MAAM,oBAAoB,GAAG,y4aAAy4a;;;;;;;;;;;;;;;;;;;ACkBt6a,MAAM,WAAW,GAAmB;IAClC,mBAAmB;IACnB,mBAAmB;IACnB,sBAAsB;IACtB,iBAAiB;IACjB,yBAAyB;IACzB,iBAAiB;IACjB,YAAY;IACZ,cAAc;IACd,eAAe;CAChB,CAAC;AAEF,MAAM,QAAQ,GAAG,WAAW,CAAC;IAC3B,QAAQ,EAAE,QAAQ;IAClB,IAAI,E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DAAqB,EAClC,QAAQ,EAAE,uBAAA,IAAI,8DAAgC,GACzB,EAEvB,WAAK,KAAK,EAAC,gBAAgB,IACzB,cACE,OAAO,EAAE,uBAAA,IAAI,gEAAkC,EAC/C,KAAK,EAAC,kCAAkC,gBAC5B,uBAAA,IAAI,+CAAiB,CAAC,OAAO,CAAC,iBAAiB,EAC3D,KAAK,EAAE,uBAAA,IAAI,+CAAiB,CAAC,OAAO,CAAC,iBAAiB,IAEtD,gBAAU,KAAK,EAAC,SAAS,EAAC,GAAG,EAAE,SAAS,GAAa,CAC9C,EACT,cACE,OAAO,EAAE,uBAAA,IAAI,uDAAyB,EACtC,KAAK,EAAC,kBAAkB,YAGjB,CACL,CACC,EAER,uBAAA,IAAI,sDAAwB,MAA5B,IAAI,CAA0B,EAE/B,cAAQ,KAAK,EAAC,2DAA2D,IACvE,WAAK,KAAK,EAAC,gBAAgB,IACzB,cACE,KAAK,EAAC,kBAAkB,EACxB,OAAO,EAAE,uBAAA,IAAI,qDAAuB,IAEnC,uBAAA,IAAI,+CAAiB,CAAC,OAAO,CAAC,YAAY,CACpC,EACT,cACE,KAAK,EAAC,gBAAgB,EACtB,OAAO,EAAE,uBAAA,IAAI,sDAAwB,IAEpC,uBAAA,IAAI,+CAAiB,CAAC,OAAO,CAAC,aAAa,CACrC,CACL,CACC,CACD,EACV,oBAAc,GAAG,EAAE,uBAAA,IAAI,4CAAc,GAAiB,CACjD,EACP;KACH;;;;;;;;;","names":[],"sources":["src/components/bpm/application-declaration/bpm-app-declaration.scss?tag=gx-ide-bpm-app-declaration&encapsulation=shadow","src/components/bpm/application-declaration/bpm-app-declaration.tsx"],"sourcesContent":["@import \"../../../global/gx-ide-common.scss\";\n@import \"../../../global/gx-ide-mixins.scss\";\n@import \"../../../../node_modules/@genexus/mercury/dist/assets/scss/helpers.scss\";\n\n:host {\n display: grid;\n block-size: 100%;\n grid-template-rows: max-content 1fr max-content;\n overflow: auto;\n}\n\n.section {\n display: contents;\n}\n\n.header {\n display: grid;\n grid-template-columns: 1fr max-content;\n}\n\n.data-mapping-grid-container,\n.data-mapping-grid-container .field {\n overflow: auto;\n block-size: 100%;\n}\n\n.tabular-grid-application-declaration {\n overflow: auto;\n}\nch-tabular-grid.empty-result::part(main) {\n // WA to avoid scrollbar flickering when displaying the empty-state message\n overflow: hidden;\n}\n\n.pill-tag {\n // base styles for this class defined on \"gx-ide-common.scss\"\n min-inline-size: 40px;\n margin-inline-end: 10px;\n}\n\n@include tabular-grid-cell-layout(\n $tabular-grid-selector: \".tabular-grid-application-declaration\",\n $tabular-grid-cell-node-type: \"element\",\n $tabular-grid-affected-columns-nth-list: (\n 2\n )\n);\n\n// WA\n.tabular-grid-cell:nth-child(2) {\n padding: 0 !important;\n display: grid;\n align-items: stretch;\n justify-content: stretch;\n --ds-focus-border-width: none;\n}\n.tabular-grid-cell:nth-child(3) {\n padding: 0 !important;\n align-items: center !important;\n justify-content: center !important;\n}\n.tabular-grid {\n overflow: auto;\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n State,\n Element,\n Event,\n EventEmitter,\n getAssetPath\n} from \"@stencil/core\";\n\nimport { MercuryBundles, getIconPath } from \"@genexus/mercury\";\n\nimport { Locale } from \"../../../common/locale\";\nimport { config } from \"../../../common/config\";\nimport { ComboBoxModel } from \"@genexus/chameleon-controls-library\";\n\nconst CSS_BUNDLES: MercuryBundles = [\n \"resets/box-sizing\",\n \"components/button\",\n \"components/combo-box\",\n \"components/icon\",\n \"components/tabular-grid\",\n \"utils/elevation\",\n \"utils/form\",\n \"utils/layout\",\n \"utils/spacing\"\n];\n\nconst ADD_ICON = getIconPath({\n category: \"system\",\n name: \"add\",\n colorType: \"neutral\"\n});\nconst FILTER_ICON = getIconPath({\n category: \"window-tools\",\n name: \"filter\",\n colorType: \"on-elevation\"\n});\nconst MORE_ICON = getIconPath({\n category: \"system\",\n name: \"more-horizontal\",\n colorType: \"primary\"\n});\n\nconst SUGGEST_OPTIONS = {\n alreadyProcessed: true,\n autoExpand: false,\n hideMatchesAndShowNonMatches: false,\n highlightMatchedItems: false,\n matchCase: false,\n regularExpression: false,\n strict: false,\n renderActiveItemIconOnExpand: true\n};\n\n@Component({\n tag: \"gx-ide-bpm-app-declaration\",\n styleUrl: \"bpm-app-declaration.scss\",\n shadow: true,\n assetsDirs: [\"gx-ide-assets/bpm-app-declaration\"]\n})\nexport class GxIdeBpmAppDeclaration {\n /**\n * The component hard-coded strings translations.\n */\n // eslint-disable-next-line @stencil-community/own-props-must-be-private\n #componentLocale: any;\n #animateEmptyState = true;\n #shortcutsSrc = getAssetPath(\n `./gx-ide-assets/bpm-app-declaration/shortcuts.json`\n );\n\n #ACCESS_CAPTION_MAP: Record<DataMappingAccess, string> = {\n // To be defined on componentWillLoad\n in: undefined,\n out: undefined,\n inout: undefined\n };\n\n @Element() el: HTMLGxIdeBpmAppDeclarationElement;\n\n /**\n * The application ComoBoxModel. When the component renders for the first time, it is required\n * to display the application typeIcon. Later, it is required to display the suggested application\n * options with the combo suggest.\n */\n @State() applicationComboBoxModel: ComboBoxModel = [];\n\n /**\n * Current value of the application declaration. Keep in mind that this property will be used by\n * the host to initialize the component, meaning it will assign the current declaration value.\n */\n @Prop({ mutable: true }) application: ApplicationDeclarationData;\n\n /**\n * Callback invoked when user cancels application declaration\n */\n @Prop() readonly cancelCallback: CancelCallback;\n\n /**\n * Callback invoked when user confirms application declaration\n */\n @Prop() readonly confirmCallback: ConfirmCallback;\n\n /**\n * Callback invoked when user select one of the options provided by the suggest\n */\n @Prop() readonly getDataMappingCallback: GetDataMappingCallback;\n\n /**\n * Callback invoked to get access to selection application dialog\n */\n @Prop() readonly selectApplicationCallback: SelectApplicationCallback;\n\n /**\n * Callback invoked when user press mapping auto-def button\n */\n @Prop() readonly selectMappingCallback: SelectMappingCallback;\n\n /**\n * Callback invoked to get options for application input suggest\n */\n @Prop() readonly suggestApplicationsCallback: SuggestApplicationsCallback;\n\n /**\n * @description Gets fired when the component has rendered for the first time.\n */\n @Event() componentDidRenderFirstTime: EventEmitter<string>;\n\n async componentWillLoad() {\n this.#componentLocale = await Locale.getComponentStrings(this.el);\n this.#setApplicationData(this.application.application);\n if (this.application.mappings.length === 0) {\n this.#animateEmptyState = false;\n }\n this.#setAccessCaptions();\n }\n\n #setAccessCaptions = () => {\n this.#ACCESS_CAPTION_MAP.in = this.#componentLocale.dataMappings.access.in;\n this.#ACCESS_CAPTION_MAP.out =\n this.#componentLocale.dataMappings.access.out;\n this.#ACCESS_CAPTION_MAP.inout =\n this.#componentLocale.dataMappings.access.inout;\n };\n\n #applicationInputChangedHandler = async (\n event: CustomEvent<string> | InputEvent\n ) => {\n const selectedApplicationName = event.detail as string;\n this.application.mappings = await this.getDataMappingCallback(\n selectedApplicationName\n );\n };\n\n #cancelCallbackHandler = () => {\n this.cancelCallback();\n };\n\n #clearApplicationHandler = () => {\n this.application = {\n application: {\n name: \"\",\n typeIcon: \"\"\n },\n mappings: []\n };\n };\n\n #confirmCallbackHandler = () => {\n this.confirmCallback(this.application);\n };\n\n #mapRelevantDataOptionsToComboBoxModel = (\n relevantDataOptions: string[]\n ): ComboBoxModel => {\n return relevantDataOptions.map(optionName => {\n return {\n caption: optionName,\n value: optionName\n };\n });\n };\n\n #mapSuggestedApplicationsToComboBoxModel = (\n suggestedApplicationsNames: string[]\n ): ComboBoxModel => {\n return suggestedApplicationsNames.map(applicationName => {\n return {\n caption: applicationName,\n value: applicationName\n };\n });\n };\n\n #relevantDataInputHandler =\n (mappingIndex: number) =>\n async (event: CustomEvent<string> | InputEvent) => {\n const inputValue = event.detail as string;\n this.application.mappings[mappingIndex].relevantData = inputValue;\n };\n\n #selectApplicationCallbackHandler = async () => {\n const applicationDeclarationData = await this.selectApplicationCallback();\n if (applicationDeclarationData) {\n this.#setApplicationData(applicationDeclarationData.application);\n this.application.mappings = applicationDeclarationData.mappings;\n }\n };\n\n #selectMappingCallbackHandler =\n (parameter: string, mappingIndex: number) => async () => {\n const returnedRelevantData = await this.selectMappingCallback(parameter);\n if (returnedRelevantData) {\n const currentRelevantDataOptions =\n this.application.mappings[mappingIndex].relevantDataOptions;\n\n const indexOfReturnedRelevantData =\n currentRelevantDataOptions.indexOf(returnedRelevantData);\n\n if (indexOfReturnedRelevantData === -1) {\n // returnedRelevantData is a new option. Add to combo-box.\n currentRelevantDataOptions.push(returnedRelevantData);\n }\n // Set as selected\n this.application.mappings[mappingIndex].relevantData =\n returnedRelevantData;\n\n this.#updateApplicationData();\n }\n };\n\n #setApplicationData = (applicationData: ApplicationData) => {\n if (applicationData) {\n const applicationName = applicationData.name;\n this.application.application.name = applicationName;\n this.applicationComboBoxModel = [\n {\n caption: applicationName,\n value: applicationName,\n startImgSrc: applicationData.typeIcon\n }\n ];\n }\n };\n\n #suggestInputHandler = async (event: CustomEvent<string> | InputEvent) => {\n const inputValue = event.detail as string;\n this.application.application.name = inputValue;\n const suggestedApplicationNames: string[] =\n await this.suggestApplicationsCallback(inputValue);\n\n this.applicationComboBoxModel =\n this.#mapSuggestedApplicationsToComboBoxModel(suggestedApplicationNames);\n };\n\n #updateApplicationData = () => {\n this.application = { ...this.application };\n };\n\n // Renders\n\n #renderDataMappingsGrid = (): Element => {\n const applicationDataToDisplay = this.application.mappings.length;\n if (applicationDataToDisplay) {\n // Set as animated for the next time.\n this.#animateEmptyState = true;\n }\n return (\n <div class=\"field-group data-mapping-grid-container\">\n <div class=\"field field-block\">\n <label class=\"spacing-body-inline-start label\">\n {this.#componentLocale.dataMappings.title}\n </label>\n <ch-tabular-grid\n class={{\n \"tabular-grid\": true,\n \"tabular-grid-application-declaration\": true,\n \"scrollable\": true,\n \"empty-result\": !applicationDataToDisplay\n }}\n part=\"ch-grid-data-mappings\"\n >\n <ch-tabular-grid-columnset class=\"tabular-grid-column-set\">\n <ch-tabular-grid-column\n class=\"tabular-grid-column\"\n columnName={\n this.application.application?.typeIcon ===\n \"objects/transaction\"\n ? this.#componentLocale.dataMappings.firstColName\n : this.#componentLocale.dataMappings.firstColNameParameter\n }\n settingable={false}\n size={config.tabularGrid.colSize.common}\n ></ch-tabular-grid-column>\n\n <ch-tabular-grid-column\n class=\"tabular-grid-column\"\n columnName={this.#componentLocale.dataMappings.secondColName}\n settingable={false}\n sortable={false}\n size={config.tabularGrid.colSize.common}\n ></ch-tabular-grid-column>\n <ch-tabular-grid-column\n class=\"tabular-grid-column\"\n settingable={false}\n sortable={false}\n size={config.tabularGrid.colSize.auto}\n ></ch-tabular-grid-column>\n </ch-tabular-grid-columnset>\n\n {this.application.mappings.length ? (\n <ch-tabular-grid-rowset class=\"tabular-grid-rowset\">\n {this.application.mappings.map(\n (obj: DataMappingData, index) => (\n <ch-tabular-grid-row\n class=\"tabular-grid-row\"\n rowId={`${index}-${obj.parameter}`}\n key={`${index}-${obj.parameter}-grid-row`}\n >\n <ch-tabular-grid-cell class=\"tabular-grid-cell\">\n <span class=\"pill-tag elevation-3\">\n {\n this.#ACCESS_CAPTION_MAP[\n obj.access as DataMappingAccess\n ]\n }\n </span>\n {obj.parameter}\n </ch-tabular-grid-cell>\n <ch-tabular-grid-cell class=\"tabular-grid-cell\">\n <ch-combo-box-render\n class=\"combo-box\"\n model={this.#mapRelevantDataOptionsToComboBoxModel(\n obj.relevantDataOptions\n )}\n value={obj.relevantData}\n key={`${index}-${obj.parameter}-combo-box`}\n onInput={this.#relevantDataInputHandler(index)}\n ></ch-combo-box-render>\n </ch-tabular-grid-cell>\n <ch-tabular-grid-cell class=\"tabular-grid-cell\">\n <button\n data-index={index}\n onClick={this.#selectMappingCallbackHandler(\n obj.parameter,\n index\n )}\n class=\"button-tertiary button-icon-only\"\n aria-label={\n this.#componentLocale.buttons.selectMapping\n }\n title={this.#componentLocale.buttons.selectMapping}\n >\n <ch-image class=\"icon-md\" src={ADD_ICON}></ch-image>\n </button>\n </ch-tabular-grid-cell>\n </ch-tabular-grid-row>\n )\n )}\n </ch-tabular-grid-rowset>\n ) : (\n <ch-tabular-grid-rowset class=\"tabular-grid-rowset\">\n <ch-tabular-grid-rowset-empty>\n <gx-ide-empty-state\n isAnimated={this.#animateEmptyState}\n stateIconSrc={FILTER_ICON}\n stateTitle={this.#componentLocale.emptyState.title}\n stateDescription={\n this.#componentLocale.emptyState.description\n }\n ></gx-ide-empty-state>\n </ch-tabular-grid-rowset-empty>\n </ch-tabular-grid-rowset>\n )}\n </ch-tabular-grid>\n </div>\n </div>\n );\n };\n\n render() {\n return (\n <Host class=\"widget\">\n <ch-theme model={CSS_BUNDLES}></ch-theme>\n <section class=\"section\">\n <header slot=\"header\" class=\"header spacing-body\">\n <ch-combo-box-render\n class=\"combo-box\"\n value={this.application.application.name}\n model={this.applicationComboBoxModel}\n suggestDebounce={config.inputDebounce}\n suggest\n suggestOptions={SUGGEST_OPTIONS}\n onInput={this.#suggestInputHandler}\n onChange={this.#applicationInputChangedHandler}\n ></ch-combo-box-render>\n\n <div class=\"buttons-spacer\">\n <button\n onClick={this.#selectApplicationCallbackHandler}\n class=\"button-tertiary button-icon-only\"\n aria-label={this.#componentLocale.buttons.selectApplication}\n title={this.#componentLocale.buttons.selectApplication}\n >\n <ch-image class=\"icon-md\" src={MORE_ICON}></ch-image>\n </button>\n <button\n onClick={this.#clearApplicationHandler}\n class=\"button-secondary\"\n >\n Clear\n </button>\n </div>\n </header>\n\n {this.#renderDataMappingsGrid()}\n\n <footer class=\"control-footer spacing-body-block-end spacing-body-inline\">\n <div class=\"buttons-spacer\">\n <button\n class=\"button-secondary\"\n onClick={this.#cancelCallbackHandler}\n >\n {this.#componentLocale.buttons.cancelButton}\n </button>\n <button\n class=\"button-primary\"\n onClick={this.#confirmCallbackHandler}\n >\n {this.#componentLocale.buttons.confirmButton}\n </button>\n </div>\n </footer>\n </section>\n <ch-shortcuts src={this.#shortcutsSrc}></ch-shortcuts>\n </Host>\n );\n }\n}\n\nexport type ApplicationDeclarationData = {\n application?: ApplicationData;\n mappings: DataMappingData[];\n};\nexport type ApplicationData = {\n name: string;\n typeIcon: string;\n};\n\ntype DataMappingAccess = \"in\" | \"out\" | \"inout\";\n\nexport type DataMappingData = {\n parameter: string;\n access: DataMappingAccess;\n relevantDataOptions: string[];\n relevantData?: string;\n};\n\nexport type SuggestApplicationsCallback = (\n prefix: string\n) => Promise<string[] | undefined>;\n\nexport type SelectApplicationCallback = () => Promise<\n ApplicationDeclarationData | undefined\n>;\n\nexport type SelectMappingCallback = (parameter: string) => Promise<string>;\n\nexport type ConfirmCallback = (\n data: ApplicationDeclarationData\n) => Promise<void>;\n\nexport type CancelCallback = () => Promise<void>;\n\nexport type GetDataMappingCallback = (\n applicationName: string\n) => Promise<DataMappingData[]>;\n"],"version":3}