@genexus/genexus-ide-ui 1.0.9 → 1.0.11

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 (248) hide show
  1. package/dist/cjs/{common-d21da2fc.js → common-10d3b190.js} +15 -19
  2. package/dist/cjs/common-10d3b190.js.map +1 -0
  3. package/dist/cjs/{config-cefda28a.js → config-b21feeee.js} +6 -1
  4. package/dist/cjs/config-b21feeee.js.map +1 -0
  5. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  6. package/dist/cjs/gx-ide-bpm-app-declaration.cjs.entry.js +1 -1
  7. package/dist/cjs/gx-ide-bpm-assign-roles.cjs.entry.js +1 -1
  8. package/dist/cjs/gx-ide-bpm-export-xpdl.cjs.entry.js +1 -1
  9. package/dist/cjs/gx-ide-bpm-import-files.cjs.entry.js +1 -1
  10. package/dist/cjs/gx-ide-bpm-import-gxpm.cjs.entry.js +1 -1
  11. package/dist/cjs/gx-ide-bpm-objects-selector.cjs.entry.js +1 -1
  12. package/dist/cjs/gx-ide-bpm-timer-duration.cjs.entry.js +1 -1
  13. package/dist/cjs/gx-ide-connect-gx-server.cjs.entry.js +1 -1
  14. package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js +1 -1
  15. package/dist/cjs/gx-ide-dashboard-home.cjs.entry.js +1 -1
  16. package/dist/cjs/gx-ide-dashboard-home.cjs.entry.js.map +1 -1
  17. package/dist/cjs/gx-ide-data-selector.cjs.entry.js +1 -1
  18. package/dist/cjs/gx-ide-design-import.cjs.entry.js +2 -2
  19. package/dist/cjs/gx-ide-gam-installation-settings.cjs.entry.js +1 -1
  20. package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js +1 -1
  21. package/dist/cjs/gx-ide-manage-module-references-v2.cjs.entry.js +1 -1
  22. package/dist/cjs/gx-ide-manage-module-references.cjs.entry.js +1 -1
  23. package/dist/cjs/gx-ide-new-environment.cjs.entry.js +2 -2
  24. package/dist/cjs/gx-ide-new-kb.cjs.entry.js +523 -182
  25. package/dist/cjs/gx-ide-new-kb.cjs.entry.js.map +1 -1
  26. package/dist/cjs/gx-ide-new-object.cjs.entry.js +1 -1
  27. package/dist/cjs/gx-ide-object-selector.cjs.entry.js +3 -3
  28. package/dist/cjs/gx-ide-object-selector.cjs.entry.js.map +1 -1
  29. package/dist/cjs/gx-ide-recent-news.cjs.entry.js +1 -1
  30. package/dist/cjs/gx-ide-references.cjs.entry.js +1 -1
  31. package/dist/cjs/gx-ide-share-kb.cjs.entry.js +2 -2
  32. package/dist/cjs/gx-ide-start-page.cjs.entry.js +2 -2
  33. package/dist/cjs/gx-ide-start-page.cjs.entry.js.map +1 -1
  34. package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +1 -1
  35. package/dist/cjs/gx-ide-team-dev-select-recent-comment.cjs.entry.js +1 -1
  36. package/dist/cjs/gx-ide-team-dev-update-partial-selection.cjs.entry.js +1 -1
  37. package/dist/cjs/gx-ide-team-dev-update-to-revision.cjs.entry.js +1 -1
  38. package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +1 -1
  39. package/dist/cjs/gx-ide-template.cjs.entry.js +1 -1
  40. package/dist/cjs/gx-ide-test.cjs.entry.js +53 -102
  41. package/dist/cjs/gx-ide-test.cjs.entry.js.map +1 -1
  42. package/dist/cjs/gx-ide-wf-settings.cjs.entry.js +1 -1
  43. package/dist/cjs/gx-ide-ww-images.cjs.entry.js +2 -2
  44. package/dist/cjs/loader.cjs.js +1 -1
  45. package/dist/collection/common/common.js +25 -1
  46. package/dist/collection/common/common.js.map +1 -1
  47. package/dist/collection/common/config.js +5 -0
  48. package/dist/collection/common/config.js.map +1 -1
  49. package/dist/collection/common/form-validation.js +50 -0
  50. package/dist/collection/common/form-validation.js.map +1 -0
  51. package/dist/collection/components/_helpers/card/card.css +3 -0
  52. package/dist/collection/components/_helpers/empty-state/gx-ide-empty-state.css +3 -0
  53. package/dist/collection/components/_helpers/list-selector/list-selector.css +3 -0
  54. package/dist/collection/components/_starting-template/template.css +3 -0
  55. package/dist/collection/components/_test/test.js +53 -102
  56. package/dist/collection/components/_test/test.js.map +1 -1
  57. package/dist/collection/components/ai-assistant/ai-assistant.css +3 -0
  58. package/dist/collection/components/bpm/application-declaration/bpm-app-declaration.css +3 -0
  59. package/dist/collection/components/bpm/assign-roles/bpm-assign-roles.css +3 -0
  60. package/dist/collection/components/bpm/export-xpdl/bpm-export-xpdl.css +3 -0
  61. package/dist/collection/components/bpm/import-files/bpm-import-files.css +3 -0
  62. package/dist/collection/components/bpm/import-gxpm/bpm-import-gxpm.css +3 -0
  63. package/dist/collection/components/bpm/objects-selector/bpm-objects-selector.css +3 -0
  64. package/dist/collection/components/bpm/timer-duration/bpm-timer-duration.css +3 -0
  65. package/dist/collection/components/connect-gx-server/connect-gx-server.css +3 -0
  66. package/dist/collection/components/create-kb-from-server/create-kb-from-server.css +3 -0
  67. package/dist/collection/components/dashboard-home/dashboard-home.css +3 -0
  68. package/dist/collection/components/design-import/design-import.css +3 -0
  69. package/dist/collection/components/gam-installation-settings/gam-installation-settings.css +3 -0
  70. package/dist/collection/components/kb-manager-import/kb-manager-import.css +3 -0
  71. package/dist/collection/components/modules/edit-module-server/edit-module-server.css +3 -0
  72. package/dist/collection/components/modules/manage-module-references/manage-module-references.css +3 -0
  73. package/dist/collection/components/modules/manage-module-references-v2/manage-module-references.css +3 -0
  74. package/dist/collection/components/new-environment/new-environment.css +3 -0
  75. package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.en.json +2 -1
  76. package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.ja.json +2 -1
  77. package/dist/collection/components/new-kb/helpers.js +9 -0
  78. package/dist/collection/components/new-kb/helpers.js.map +1 -0
  79. package/dist/collection/components/new-kb/new-kb.css +39 -664
  80. package/dist/collection/components/new-kb/new-kb.js +679 -382
  81. package/dist/collection/components/new-kb/new-kb.js.map +1 -1
  82. package/dist/collection/components/new-object/new-object.css +3 -0
  83. package/dist/collection/components/object-selector/object-selector.css +4 -0
  84. package/dist/collection/components/object-selector/object-selector.js +1 -1
  85. package/dist/collection/components/object-selector/object-selector.js.map +1 -1
  86. package/dist/collection/components/references/references.css +3 -0
  87. package/dist/collection/components/share-kb/share-kb.css +3 -0
  88. package/dist/collection/components/start-page/recent-news.css +3 -0
  89. package/dist/collection/components/start-page/start-page.css +3 -0
  90. package/dist/collection/components/team-dev/commit/commit.css +3 -0
  91. package/dist/collection/components/team-dev/select-recent-comment/select-recent-comment.css +3 -0
  92. package/dist/collection/components/team-dev/update/update.css +3 -0
  93. package/dist/collection/components/team-dev/update-partial-selection/update-partial-selection.css +3 -0
  94. package/dist/collection/components/team-dev/update-to-revision/update-to-revision.css +3 -0
  95. package/dist/collection/components/wf-settings/wf-settings.css +3 -0
  96. package/dist/collection/components/ww-images/ww-images.css +3 -0
  97. package/dist/components/common.js +14 -18
  98. package/dist/components/common.js.map +1 -1
  99. package/dist/components/config.js +5 -0
  100. package/dist/components/config.js.map +1 -1
  101. package/dist/components/gx-ide-dashboard-home.js +1 -1
  102. package/dist/components/gx-ide-dashboard-home.js.map +1 -1
  103. package/dist/components/gx-ide-new-kb.js +561 -209
  104. package/dist/components/gx-ide-new-kb.js.map +1 -1
  105. package/dist/components/gx-ide-object-selector.js +2 -2
  106. package/dist/components/gx-ide-object-selector.js.map +1 -1
  107. package/dist/components/gx-ide-start-page.js +1 -1
  108. package/dist/components/gx-ide-start-page.js.map +1 -1
  109. package/dist/components/gx-ide-test.js +53 -102
  110. package/dist/components/gx-ide-test.js.map +1 -1
  111. package/dist/esm/{common-31ac2b05.js → common-339b4376.js} +15 -19
  112. package/dist/esm/common-339b4376.js.map +1 -0
  113. package/dist/esm/{config-084ee328.js → config-ed1f26d7.js} +6 -1
  114. package/dist/esm/config-ed1f26d7.js.map +1 -0
  115. package/dist/esm/genexus-ide-ui.js +1 -1
  116. package/dist/esm/gx-ide-bpm-app-declaration.entry.js +1 -1
  117. package/dist/esm/gx-ide-bpm-assign-roles.entry.js +1 -1
  118. package/dist/esm/gx-ide-bpm-export-xpdl.entry.js +1 -1
  119. package/dist/esm/gx-ide-bpm-import-files.entry.js +1 -1
  120. package/dist/esm/gx-ide-bpm-import-gxpm.entry.js +1 -1
  121. package/dist/esm/gx-ide-bpm-objects-selector.entry.js +1 -1
  122. package/dist/esm/gx-ide-bpm-timer-duration.entry.js +1 -1
  123. package/dist/esm/gx-ide-connect-gx-server.entry.js +1 -1
  124. package/dist/esm/gx-ide-create-kb-from-server.entry.js +1 -1
  125. package/dist/esm/gx-ide-dashboard-home.entry.js +1 -1
  126. package/dist/esm/gx-ide-dashboard-home.entry.js.map +1 -1
  127. package/dist/esm/gx-ide-data-selector.entry.js +1 -1
  128. package/dist/esm/gx-ide-design-import.entry.js +2 -2
  129. package/dist/esm/gx-ide-gam-installation-settings.entry.js +1 -1
  130. package/dist/esm/gx-ide-kb-manager-import.entry.js +1 -1
  131. package/dist/esm/gx-ide-manage-module-references-v2.entry.js +1 -1
  132. package/dist/esm/gx-ide-manage-module-references.entry.js +1 -1
  133. package/dist/esm/gx-ide-new-environment.entry.js +2 -2
  134. package/dist/esm/gx-ide-new-kb.entry.js +524 -183
  135. package/dist/esm/gx-ide-new-kb.entry.js.map +1 -1
  136. package/dist/esm/gx-ide-new-object.entry.js +1 -1
  137. package/dist/esm/gx-ide-object-selector.entry.js +3 -3
  138. package/dist/esm/gx-ide-object-selector.entry.js.map +1 -1
  139. package/dist/esm/gx-ide-recent-news.entry.js +1 -1
  140. package/dist/esm/gx-ide-references.entry.js +1 -1
  141. package/dist/esm/gx-ide-share-kb.entry.js +2 -2
  142. package/dist/esm/gx-ide-start-page.entry.js +2 -2
  143. package/dist/esm/gx-ide-start-page.entry.js.map +1 -1
  144. package/dist/esm/gx-ide-team-dev-commit.entry.js +1 -1
  145. package/dist/esm/gx-ide-team-dev-select-recent-comment.entry.js +1 -1
  146. package/dist/esm/gx-ide-team-dev-update-partial-selection.entry.js +1 -1
  147. package/dist/esm/gx-ide-team-dev-update-to-revision.entry.js +1 -1
  148. package/dist/esm/gx-ide-team-dev-update.entry.js +1 -1
  149. package/dist/esm/gx-ide-template.entry.js +1 -1
  150. package/dist/esm/gx-ide-test.entry.js +53 -102
  151. package/dist/esm/gx-ide-test.entry.js.map +1 -1
  152. package/dist/esm/gx-ide-wf-settings.entry.js +1 -1
  153. package/dist/esm/gx-ide-ww-images.entry.js +2 -2
  154. package/dist/esm/loader.js +1 -1
  155. package/dist/genexus-ide-ui/genexus-ide-ui.css +2 -2
  156. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +4 -4
  157. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
  158. package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.en.json +2 -1
  159. package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.ja.json +2 -1
  160. package/dist/genexus-ide-ui/{p-032bdefc.entry.js → p-0fced96c.entry.js} +2 -2
  161. package/dist/genexus-ide-ui/{p-794ac8e6.entry.js → p-15711eed.entry.js} +2 -2
  162. package/dist/genexus-ide-ui/{p-8f294d2e.entry.js → p-176e8d55.entry.js} +2 -2
  163. package/dist/genexus-ide-ui/{p-4ade9a67.entry.js → p-1ad7189f.entry.js} +2 -2
  164. package/dist/genexus-ide-ui/{p-b5bb18d9.entry.js → p-1d56cc71.entry.js} +2 -2
  165. package/dist/genexus-ide-ui/{p-dcbf5cd9.entry.js → p-2ac9e22b.entry.js} +2 -2
  166. package/dist/genexus-ide-ui/{p-af836892.js → p-3ef5a5a6.js} +33 -37
  167. package/dist/genexus-ide-ui/p-3ef5a5a6.js.map +1 -0
  168. package/dist/genexus-ide-ui/{p-929dd336.entry.js → p-55304f04.entry.js} +2 -2
  169. package/dist/genexus-ide-ui/{p-e557aa5e.entry.js → p-5c5abefc.entry.js} +2 -2
  170. package/dist/genexus-ide-ui/{p-05eb7c04.entry.js → p-6d0037f1.entry.js} +20 -20
  171. package/dist/genexus-ide-ui/p-6d0037f1.entry.js.map +1 -0
  172. package/dist/genexus-ide-ui/{p-d5c2b4cc.entry.js → p-6fa9ea04.entry.js} +2 -2
  173. package/dist/genexus-ide-ui/{p-a4370f5d.entry.js → p-70588f0b.entry.js} +2 -2
  174. package/dist/genexus-ide-ui/{p-55a30661.js → p-78b90603.js} +6 -1
  175. package/dist/genexus-ide-ui/p-78b90603.js.map +1 -0
  176. package/dist/genexus-ide-ui/{p-5d8817cb.entry.js → p-88fff4f3.entry.js} +2 -2
  177. package/dist/genexus-ide-ui/{p-e0072adb.entry.js → p-9a9fdfc0.entry.js} +2 -2
  178. package/dist/genexus-ide-ui/p-a29cfcdb.entry.js +100 -0
  179. package/dist/genexus-ide-ui/p-a29cfcdb.entry.js.map +1 -0
  180. package/dist/genexus-ide-ui/{p-5620c188.entry.js → p-a29d27ed.entry.js} +2 -2
  181. package/dist/genexus-ide-ui/{p-2b200d34.entry.js → p-a2dad270.entry.js} +3 -3
  182. package/dist/genexus-ide-ui/{p-41e5e8e0.entry.js → p-a787b331.entry.js} +2 -2
  183. package/dist/genexus-ide-ui/{p-8beec8d4.entry.js → p-a7be549c.entry.js} +2 -2
  184. package/dist/genexus-ide-ui/p-ab29274c.entry.js +764 -0
  185. package/dist/genexus-ide-ui/p-ab29274c.entry.js.map +1 -0
  186. package/dist/genexus-ide-ui/{p-62be51c2.entry.js → p-b967c6e3.entry.js} +2 -2
  187. package/dist/genexus-ide-ui/{p-1a1042c2.entry.js → p-c10d7879.entry.js} +2 -2
  188. package/dist/genexus-ide-ui/{p-9d02318b.entry.js → p-c484250c.entry.js} +2 -2
  189. package/dist/genexus-ide-ui/{p-593981a8.entry.js → p-ca842e11.entry.js} +3 -3
  190. package/dist/genexus-ide-ui/{p-afb531b3.entry.js → p-d1a76638.entry.js} +2 -2
  191. package/dist/genexus-ide-ui/{p-f69df17d.entry.js → p-d703bff2.entry.js} +2 -2
  192. package/dist/genexus-ide-ui/{p-f512bbca.entry.js → p-dbf8b06e.entry.js} +2 -2
  193. package/dist/genexus-ide-ui/{p-b7dfdf6d.entry.js → p-de18e865.entry.js} +3 -3
  194. package/dist/genexus-ide-ui/{p-88ab3f67.entry.js → p-e0da6770.entry.js} +2 -2
  195. package/dist/genexus-ide-ui/{p-c0ee7647.entry.js → p-e146e456.entry.js} +3 -3
  196. package/dist/genexus-ide-ui/{p-54ee665f.entry.js → p-e4cbd23c.entry.js} +2 -2
  197. package/dist/genexus-ide-ui/{p-eb6ef221.entry.js → p-e629ab16.entry.js} +2 -2
  198. package/dist/genexus-ide-ui/{p-1f8445eb.entry.js → p-edffe8d7.entry.js} +3 -3
  199. package/dist/genexus-ide-ui/{p-aea82479.entry.js → p-faa6fc25.entry.js} +2 -2
  200. package/dist/types/common/common.d.ts +6 -1
  201. package/dist/types/common/config.d.ts +6 -0
  202. package/dist/types/common/form-validation.d.ts +8 -0
  203. package/dist/types/components/_test/test.d.ts +1 -1
  204. package/dist/types/components/new-kb/helpers.d.ts +5 -0
  205. package/dist/types/components/new-kb/new-kb.d.ts +68 -102
  206. package/dist/types/components.d.ts +0 -27
  207. package/package.json +3 -3
  208. package/dist/cjs/common-d21da2fc.js.map +0 -1
  209. package/dist/cjs/config-cefda28a.js.map +0 -1
  210. package/dist/esm/common-31ac2b05.js.map +0 -1
  211. package/dist/esm/config-084ee328.js.map +0 -1
  212. package/dist/genexus-ide-ui/p-05eb7c04.entry.js.map +0 -1
  213. package/dist/genexus-ide-ui/p-55a30661.js.map +0 -1
  214. package/dist/genexus-ide-ui/p-69a83248.entry.js +0 -186
  215. package/dist/genexus-ide-ui/p-69a83248.entry.js.map +0 -1
  216. package/dist/genexus-ide-ui/p-9d640444.entry.js +0 -472
  217. package/dist/genexus-ide-ui/p-9d640444.entry.js.map +0 -1
  218. package/dist/genexus-ide-ui/p-af836892.js.map +0 -1
  219. /package/dist/genexus-ide-ui/{p-032bdefc.entry.js.map → p-0fced96c.entry.js.map} +0 -0
  220. /package/dist/genexus-ide-ui/{p-794ac8e6.entry.js.map → p-15711eed.entry.js.map} +0 -0
  221. /package/dist/genexus-ide-ui/{p-8f294d2e.entry.js.map → p-176e8d55.entry.js.map} +0 -0
  222. /package/dist/genexus-ide-ui/{p-4ade9a67.entry.js.map → p-1ad7189f.entry.js.map} +0 -0
  223. /package/dist/genexus-ide-ui/{p-b5bb18d9.entry.js.map → p-1d56cc71.entry.js.map} +0 -0
  224. /package/dist/genexus-ide-ui/{p-dcbf5cd9.entry.js.map → p-2ac9e22b.entry.js.map} +0 -0
  225. /package/dist/genexus-ide-ui/{p-929dd336.entry.js.map → p-55304f04.entry.js.map} +0 -0
  226. /package/dist/genexus-ide-ui/{p-e557aa5e.entry.js.map → p-5c5abefc.entry.js.map} +0 -0
  227. /package/dist/genexus-ide-ui/{p-d5c2b4cc.entry.js.map → p-6fa9ea04.entry.js.map} +0 -0
  228. /package/dist/genexus-ide-ui/{p-a4370f5d.entry.js.map → p-70588f0b.entry.js.map} +0 -0
  229. /package/dist/genexus-ide-ui/{p-5d8817cb.entry.js.map → p-88fff4f3.entry.js.map} +0 -0
  230. /package/dist/genexus-ide-ui/{p-e0072adb.entry.js.map → p-9a9fdfc0.entry.js.map} +0 -0
  231. /package/dist/genexus-ide-ui/{p-5620c188.entry.js.map → p-a29d27ed.entry.js.map} +0 -0
  232. /package/dist/genexus-ide-ui/{p-2b200d34.entry.js.map → p-a2dad270.entry.js.map} +0 -0
  233. /package/dist/genexus-ide-ui/{p-41e5e8e0.entry.js.map → p-a787b331.entry.js.map} +0 -0
  234. /package/dist/genexus-ide-ui/{p-8beec8d4.entry.js.map → p-a7be549c.entry.js.map} +0 -0
  235. /package/dist/genexus-ide-ui/{p-62be51c2.entry.js.map → p-b967c6e3.entry.js.map} +0 -0
  236. /package/dist/genexus-ide-ui/{p-1a1042c2.entry.js.map → p-c10d7879.entry.js.map} +0 -0
  237. /package/dist/genexus-ide-ui/{p-9d02318b.entry.js.map → p-c484250c.entry.js.map} +0 -0
  238. /package/dist/genexus-ide-ui/{p-593981a8.entry.js.map → p-ca842e11.entry.js.map} +0 -0
  239. /package/dist/genexus-ide-ui/{p-afb531b3.entry.js.map → p-d1a76638.entry.js.map} +0 -0
  240. /package/dist/genexus-ide-ui/{p-f69df17d.entry.js.map → p-d703bff2.entry.js.map} +0 -0
  241. /package/dist/genexus-ide-ui/{p-f512bbca.entry.js.map → p-dbf8b06e.entry.js.map} +0 -0
  242. /package/dist/genexus-ide-ui/{p-b7dfdf6d.entry.js.map → p-de18e865.entry.js.map} +0 -0
  243. /package/dist/genexus-ide-ui/{p-88ab3f67.entry.js.map → p-e0da6770.entry.js.map} +0 -0
  244. /package/dist/genexus-ide-ui/{p-c0ee7647.entry.js.map → p-e146e456.entry.js.map} +0 -0
  245. /package/dist/genexus-ide-ui/{p-54ee665f.entry.js.map → p-e4cbd23c.entry.js.map} +0 -0
  246. /package/dist/genexus-ide-ui/{p-eb6ef221.entry.js.map → p-e629ab16.entry.js.map} +0 -0
  247. /package/dist/genexus-ide-ui/{p-1f8445eb.entry.js.map → p-edffe8d7.entry.js.map} +0 -0
  248. /package/dist/genexus-ide-ui/{p-aea82479.entry.js.map → p-faa6fc25.entry.js.map} +0 -0
@@ -0,0 +1,764 @@
1
+ import { h as t, r as i, a as e, H as s, g as a } from "./p-aaed592c.js";
2
+
3
+ import { c as o } from "./p-78b90603.js";
4
+
5
+ import { L as n } from "./p-74d59062.js";
6
+
7
+ import { g as h } from "./p-3ef5a5a6.js";
8
+
9
+ import { g as l } from "./p-6df9fab1.js";
10
+
11
+ // formSubmitValidation will be deprecated. use "validateControls" instead.
12
+ // TODO: Improve the way we mark components with error. We must not use error classes.
13
+ const r = {
14
+ "ch-checkbox": "checkbox-error",
15
+ "ch-combo-box-render": "combo-box-error",
16
+ "ch-edit": "form-input-error"
17
+ };
18
+
19
+ const toggleErrorClass = (t, i) => {
20
+ const e = i.tagName.toLowerCase();
21
+ const s = r[e];
22
+ if (t) {
23
+ i.classList.add(s);
24
+ } else {
25
+ i.classList.remove(s);
26
+ }
27
+ };
28
+
29
+ const validateControls = (t, i) => {
30
+ const e = new Map(i);
31
+ t.fieldErrors.forEach((t => {
32
+ const i = t.key;
33
+ const s = t.hasError;
34
+ const a = e.get(i);
35
+ if (a === null || a === void 0 ? void 0 : a.reference) {
36
+ // toggle class to add or remove error style
37
+ toggleErrorClass(s, a.reference);
38
+ e.set(i, Object.assign(Object.assign({}, a), {
39
+ hasError: s,
40
+ message: t.message
41
+ }));
42
+ }
43
+ }));
44
+ // return validatableControls updated.
45
+ return e;
46
+ };
47
+
48
+ const renderChCheckboxItems = (i, e = "undefined-group", s) => (i === null || i === void 0 ? void 0 : i.length) > 0 && i.map((i => t("ch-checkbox", {
49
+ name: i.name,
50
+ class: "checkbox",
51
+ part: `${e}-${i.id}`,
52
+ checkedValue: i.value || i.id,
53
+ caption: i.label,
54
+ disabled: i.disabled,
55
+ value: i.value,
56
+ onInput: s !== null && s !== void 0 ? s : null,
57
+ startImgSrc: i.iconName
58
+ })));
59
+
60
+ const mapOptionsToComboBoxItemModel = t => t.map((t => ({
61
+ value: t.id,
62
+ caption: t.label
63
+ })));
64
+
65
+ const d = ':host{display:grid;block-size:100%;overflow:auto;grid-template-rows:max-content 1fr max-content}.section{display:contents}.header-one-col{grid-template-columns:1fr}.header-two-cols{grid-template-columns:1fr 1fr}.location-wrapper{display:flex;gap:var(--mer-spacing--2xs)}.location{flex-grow:1;grid-area:location}.tab::part(page){scrollbar-width:thin}.basic{grid-template:"prototyping-target user-interface-language" max-content "back-end front-end" max-content;grid-template-columns:1fr 1fr}.prototyping-target{grid-area:prototyping-target}.user-interface-language{grid-area:user-interface-language}.back-end{grid-area:back-end;grid-auto-rows:max-content}.front-end{grid-area:front-end}.tab-advanced-title{grid-area:tab-advanced-title}.layout-tab-advanced-left-col{grid-area:layout-tab-advanced-left-col}.layout-tab-advanced-right-col{grid-area:layout-tab-advanced-right-col}.basic,.advanced{padding-block:var(--content-block-spacing)}.tab-advanced__field-group{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:auto}.text-align-center{text-align:center}';
66
+
67
+ var c = undefined && undefined.__classPrivateFieldGet || function(t, i, e, s) {
68
+ if (e === "a" && !s) throw new TypeError("Private accessor was defined without a getter");
69
+ if (typeof i === "function" ? t !== i || !s : !i.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
70
+ return e === "m" ? s : e === "a" ? s.call(t) : s ? s.value : i.get(t);
71
+ };
72
+
73
+ var f = undefined && undefined.__classPrivateFieldSet || function(t, i, e, s, a) {
74
+ if (s === "m") throw new TypeError("Private method is not writable");
75
+ if (s === "a" && !a) throw new TypeError("Private accessor was defined without a setter");
76
+ if (typeof i === "function" ? t !== i || !a : !i.has(t)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
77
+ return s === "a" ? a.call(t, e) : a ? a.value = e : i.set(t, e), e;
78
+ };
79
+
80
+ var u, p, b, v, m, g, w, k, y, x, M, W, F, I, T, E, N, S, L, D, j, C, P, _, A, B, K, V, z, O, U, $, G, H, R, q, J, Q, X, Y, Z, tt, it, et;
81
+
82
+ const st = [ "resets/box-sizing", "components/tab", "components/tooltip", "utils/form--full", "utils/layout", "utils/typography", "chameleon/scrollbar" ];
83
+
84
+ const at = "windows-authentication";
85
+
86
+ const ot = "main";
87
+
88
+ const nt = "basic field-group spacing-body-inline";
89
+
90
+ const ht = l({
91
+ category: "system",
92
+ name: "folder",
93
+ colorType: "primary"
94
+ });
95
+
96
+ const lt = "basic";
97
+
98
+ const rt = "advanced";
99
+
100
+ const dt = class {
101
+ constructor(s) {
102
+ i(this, s);
103
+ u.add(this);
104
+ p.set(this, false);
105
+ /**
106
+ * The component hard-coded strings translations.
107
+ */
108
+ // eslint-disable-next-line @stencil-community/own-props-must-be-private
109
+ b.set(this, void 0);
110
+ v.set(this, []);
111
+ m.set(this, e(`./gx-ide-assets/new-kb/shortcuts.json`));
112
+ g.set(this, []);
113
+ /* References needed to collect data con "Create" button submit*/ w.set(this, void 0);
114
+ k.set(this, void 0);
115
+ y.set(this, void 0);
116
+ x.set(this, void 0);
117
+ M.set(this, void 0);
118
+ W.set(this, void 0);
119
+ F.set(this, void 0);
120
+ I.set(this, void 0);
121
+ T.set(this, void 0);
122
+ E.set(this, void 0);
123
+ N.set(this, void 0);
124
+ S.set(this, void 0);
125
+ L.set(this, void 0);
126
+ D.set(this, void 0);
127
+ j.set(this, void 0);
128
+ C.set(this, void 0);
129
+ _.set(this, (() => {
130
+ c(this, et, "f").call(this);
131
+ }));
132
+ A.set(this, (t => {
133
+ const i = t === null || t === void 0 ? void 0 : t.detail;
134
+ c(this, R, "f").call(this, i);
135
+ }));
136
+ B.set(this, (t => {
137
+ c(this, G, "f").call(this, t.detail);
138
+ }));
139
+ K.set(this, (() => {
140
+ c(this, q, "f").call(this);
141
+ c(this, it, "f").call(this);
142
+ }));
143
+ V.set(this, (() => {
144
+ c(this, q, "f").call(this);
145
+ }));
146
+ z.set(this, (() => [ t("h2", {
147
+ // #knowledge base storage
148
+ class: "control-header heading-5 text-align-center"
149
+ }, c(this, b, "f").tabAdvanced.tabTitle), t("div", {
150
+ class: "field-group tab-advanced__field-group"
151
+ }, t("div", {
152
+ // #server name
153
+ class: "field field-block server-name-field"
154
+ }, t("label", {
155
+ class: "label",
156
+ htmlFor: "serverName"
157
+ }, c(this, b, "f").tabAdvanced.serverName.label), t("ch-combo-box-render", {
158
+ class: "combo-box",
159
+ disabled: this.serverNames.length === 0,
160
+ placeholder: this.serverNames.length === 0 ? c(this, b, "f").tabAdvanced.serverName.disabledPlaceholder : "",
161
+ value: this.serverNamesInitialValue,
162
+ ref: t => f(this, L, t, "f"),
163
+ model: this.serverNamesComboBoxModel,
164
+ onInput: this.serverNames.length > 0 ? c(this, B, "f") : undefined,
165
+ id: "serverName",
166
+ part: "server-name"
167
+ }), c(this, H, "f").call(this, c(this, L, "f"))), t("div", {
168
+ // #authentication type
169
+ class: "field field-block authentication-type-field"
170
+ }, t("label", {
171
+ class: "label",
172
+ htmlFor: "authenticationType"
173
+ }, c(this, b, "f").tabAdvanced.authenticationType.label), t("ch-combo-box-render", {
174
+ class: "combo-box",
175
+ disabled: this.authenticationTypes.length === 0,
176
+ placeholder: this.authenticationTypes.length === 0 ? c(this, b, "f").tabAdvanced.authenticationType.disabledPlaceholder : "",
177
+ value: this.authenticationTypesInitialValue,
178
+ ref: t => f(this, w, t, "f"),
179
+ model: this.authenticationTypesComboBoxModel,
180
+ id: "authenticationType",
181
+ part: "authentication-type",
182
+ onInput: this.authenticationTypes.length > 0 ? c(this, A, "f") : undefined
183
+ }), c(this, H, "f").call(this, c(this, w, "f"))), t("div", {
184
+ // #database
185
+ class: "field field-block database-field"
186
+ }, t("label", {
187
+ class: "label",
188
+ htmlFor: "databaseName"
189
+ }, c(this, b, "f").tabAdvanced.databaseName.label), t("ch-edit", {
190
+ // TODO add placeholder
191
+ class: "form-input",
192
+ value: this.databaseName,
193
+ id: "databaseName",
194
+ part: "database-name",
195
+ ref: t => f(this, x, t, "f")
196
+ }), c(this, H, "f").call(this, c(this, x, "f"))), this.userNameVisible ? t("div", {
197
+ // #username
198
+ class: "field field-block username-field"
199
+ }, t("label", {
200
+ class: "label",
201
+ htmlFor: "userName"
202
+ }, c(this, b, "f").tabAdvanced.userName.label), t("ch-edit", {
203
+ // TODO add placeholder
204
+ class: "form-input",
205
+ value: this.userName,
206
+ id: "userName",
207
+ part: "user-name",
208
+ ref: t => f(this, j, t, "f")
209
+ }), c(this, H, "f").call(this, c(this, j, "f"))) : null, t("div", {
210
+ // #collation
211
+ class: "field field-block collation-field"
212
+ }, t("label", {
213
+ class: "label",
214
+ htmlFor: "collation"
215
+ }, c(this, b, "f").tabAdvanced.collation.label), t("ch-combo-box-render", {
216
+ class: "combo-box",
217
+ disabled: this.serverNames.length === 0,
218
+ placeholder: this.collations.length === 0 ? c(this, b, "f").tabAdvanced.collation.disabledPlaceholder : "",
219
+ value: this.collationsInitialValue,
220
+ ref: t => f(this, k, t, "f"),
221
+ model: this.collationsComboBoxModel,
222
+ id: "collation",
223
+ part: "collation"
224
+ }), c(this, H, "f").call(this, c(this, k, "f"))), this.passwordVisible ? t("div", {
225
+ // #password
226
+ class: "field field-block password-field"
227
+ }, t("label", {
228
+ class: "label",
229
+ htmlFor: "password"
230
+ }, c(this, b, "f").tabAdvanced.password.label), t("ch-edit", {
231
+ // TODO add placeholder
232
+ class: "form-input",
233
+ type: "password",
234
+ value: this.password,
235
+ id: "password",
236
+ part: "password",
237
+ ref: t => f(this, T, t, "f")
238
+ }), c(this, H, "f").call(this, c(this, T, "f"))) : null, t("ch-checkbox", {
239
+ // #create data in knowledge base folder
240
+ class: "checkbox create-data-in-kb-checkbox",
241
+ checkedValue: "createDataFilesInKBFolder",
242
+ caption: c(this, b, "f").tabAdvanced.createDataFilesInKbFolder,
243
+ disabled: this.createDataInKbDisabled,
244
+ part: "create-data-in-kb",
245
+ id: "createDataFilesInKBFolder",
246
+ ref: t => f(this, y, t, "f")
247
+ }), this.savePasswordVisible ? t("ch-checkbox", {
248
+ // #save password
249
+ class: "checkbox save-password-checkbox",
250
+ checkedValue: "password",
251
+ caption: c(this, b, "f").tabAdvanced.savePassword,
252
+ part: "save-password",
253
+ id: "savePassword",
254
+ ref: t => f(this, S, t, "f")
255
+ }) : null) ]));
256
+ O.set(this, (() => [ t("div", {
257
+ // #prototyping target
258
+ class: "field field-block prototyping-target"
259
+ }, t("label", {
260
+ class: "label",
261
+ htmlFor: "prototypingTarget"
262
+ }, c(this, b, "f").tabBasic.prototypingTarget.label), t("ch-combo-box-render", {
263
+ id: "prototypingTarget",
264
+ class: "combo-box",
265
+ part: "prototyping-target",
266
+ disabled: this.prototypingTargets.length === 0,
267
+ placeholder: this.prototypingTargets.length === 0 ? c(this, b, "f").tabBasic.prototypingTarget.disabledPlaceholder : "",
268
+ value: this.prototypingTargetsInitialValue,
269
+ model: this.prototypingTargetsComboBoxModel,
270
+ onInput: this.prototypingTargets.length > 0 ? c(this, V, "f") : undefined,
271
+ ref: t => f(this, N, t, "f")
272
+ }), c(this, H, "f").call(this, c(this, N, "f"))), t("div", {
273
+ // #user interface
274
+ class: "field field-block user-interface-language"
275
+ }, t("label", {
276
+ class: "label",
277
+ htmlFor: "userInterfaceLanguage"
278
+ }, c(this, b, "f").tabBasic.userInterfaceLanguage.label), t("ch-combo-box-render", {
279
+ class: "combo-box",
280
+ disabled: this.userInterfaceLanguages.length === 0,
281
+ placeholder: this.userInterfaceLanguages.length === 0 ? c(this, b, "f").tabBasic.userInterfaceLanguage.disabledPlaceholder : "",
282
+ value: this.userInterfaceLanguagesInitialValue,
283
+ ref: t => f(this, D, t, "f"),
284
+ model: this.userInterfaceLanguagesComboBoxModel,
285
+ id: "userInterfaceLanguage",
286
+ part: "user-interface-language"
287
+ }), c(this, H, "f").call(this, c(this, D, "f"))), t("div", null, t("h2", {
288
+ // back end
289
+ class: "control-header heading-5 text-align-center"
290
+ }, c(this, b, "f").tabBasic.backEnd.backEndLabel), t("div", {
291
+ class: "field-group back-end"
292
+ }, t("div", {
293
+ // #prototyping environment
294
+ class: "field field-block"
295
+ }, t("label", {
296
+ class: "label",
297
+ htmlFor: "prototypingEnvironment"
298
+ }, c(this, b, "f").tabBasic.backEnd.prototypingEnvironment.label), t("ch-combo-box-render", {
299
+ class: "combo-box",
300
+ disabled: this.prototypingEnvironments.length === 0,
301
+ placeholder: this.prototypingEnvironments.length === 0 ? c(this, b, "f").tabBasic.backEnd.prototypingEnvironment.disabledPlaceholder : "",
302
+ value: this.prototypingEnvironmentsInitialValue,
303
+ ref: t => f(this, E, t, "f"),
304
+ model: this.prototypingEnvironmentsComboBoxModel,
305
+ onInput: this.prototypingEnvironments.length > 0 ? c(this, K, "f") : undefined,
306
+ part: "prototyping-environment",
307
+ id: "prototypingEnvironment"
308
+ }), c(this, H, "f").call(this, c(this, E, "f"))), t("div", {
309
+ // #data source
310
+ class: "field field-block"
311
+ }, t("label", {
312
+ class: "label",
313
+ htmlFor: "dataSource"
314
+ }, c(this, b, "f").tabBasic.backEnd.dataSource.label), t("ch-combo-box-render", {
315
+ class: "combo-box",
316
+ disabled: this.defaultDataSources.length === 0,
317
+ placeholder: this.defaultDataSources.length === 0 ? c(this, b, "f").tabBasic.backEnd.dataSource.disabledPlaceholder : "",
318
+ value: this.defaultDataSourcesInitialValue,
319
+ ref: t => f(this, M, t, "f"),
320
+ model: this.defaultDataSourcesComboBoxModel,
321
+ part: "data-source",
322
+ id: "dataSource"
323
+ }), c(this, H, "f").call(this, c(this, M, "f"))))), t("div", null, t("h2", {
324
+ // front end
325
+ class: "control-header heading-5 text-align-center"
326
+ }, c(this, b, "f").tabBasic.frontEnd.frontEndLabel), t("div", {
327
+ class: "field-group front-end",
328
+ ref: t => f(this, W, t, "f")
329
+ }, renderChCheckboxItems(this.frontEnds, "front-end", c(this, _, "f")))) ]));
330
+ // - - - - - - - - - -
331
+ U.set(this, (() => {
332
+ if (this.cancelCallback) {
333
+ this.cancelCallback();
334
+ }
335
+ }));
336
+ $.set(this, (() => {
337
+ var t, i, e, s, a, o, n, h, l, r, d, f, u, p;
338
+ if (this.createCallback) {
339
+ const b = this.createCallback({
340
+ authenticationType: (t = c(this, w, "f")) === null || t === void 0 ? void 0 : t.value,
341
+ collation: (i = c(this, k, "f")) === null || i === void 0 ? void 0 : i.value,
342
+ createDataFilesInKBFolder: !!((e = c(this, y, "f")) === null || e === void 0 ? void 0 : e.value),
343
+ dataSource: (s = c(this, M, "f")) === null || s === void 0 ? void 0 : s.value,
344
+ databaseName: (a = c(this, x, "f")) === null || a === void 0 ? void 0 : a.value,
345
+ frontEnds: c(this, v, "f"),
346
+ kbLocation: (o = c(this, I, "f")) === null || o === void 0 ? void 0 : o.value,
347
+ kbName: (n = c(this, F, "f")) === null || n === void 0 ? void 0 : n.value,
348
+ password: (h = c(this, T, "f")) === null || h === void 0 ? void 0 : h.value,
349
+ prototypingEnvironment: (l = c(this, E, "f")) === null || l === void 0 ? void 0 : l.value,
350
+ prototypingTarget: (r = c(this, N, "f")) === null || r === void 0 ? void 0 : r.value,
351
+ savePassword: !!((d = c(this, S, "f")) === null || d === void 0 ? void 0 : d.value),
352
+ serverName: (f = c(this, L, "f")) === null || f === void 0 ? void 0 : f.value,
353
+ userInterfaceLanguage: (u = c(this, D, "f")) === null || u === void 0 ? void 0 : u.value,
354
+ userName: (p = c(this, j, "f")) === null || p === void 0 ? void 0 : p.value
355
+ });
356
+ b.then((t => {
357
+ this.validatableControls = validateControls(t, this.validatableControls);
358
+ }));
359
+ }
360
+ }));
361
+ /**
362
+ * Disable "Create Data in Knowledge Base Folder" if the first Server Name
363
+ * option is selected.
364
+ * */
365
+ // eslint-disable-next-line @stencil-community/own-props-must-be-private
366
+ G.set(this, (t => {
367
+ var i;
368
+ if (((i = this.serverNames[0]) === null || i === void 0 ? void 0 : i.id) === t) {
369
+ this.createDataInKbDisabled = true;
370
+ } else {
371
+ this.createDataInKbDisabled = false;
372
+ }
373
+ }));
374
+ H.set(this, (i => {
375
+ var e, s, a;
376
+ return ((s = (e = this.validatableControls) === null || e === void 0 ? void 0 : e.get(i === null || i === void 0 ? void 0 : i.id)) === null || s === void 0 ? void 0 : s.hasError) && ((a = this.validatableControls.get(i.id)) === null || a === void 0 ? void 0 : a.message) && t("ch-tooltip", {
377
+ class: "tooltip",
378
+ actionElement: i,
379
+ blockAlign: o.tooltipSettings.blockAlign,
380
+ inlineAlign: o.tooltipSettings.inlineAlign,
381
+ delay: o.tooltipSettings.delay
382
+ }, this.validatableControls.get(i.id).message);
383
+ }));
384
+ /**
385
+ * If "Authentication Type" is "Windows Authentication", hide User Name,
386
+ * Password, and Save Password fields.
387
+ */
388
+ // eslint-disable-next-line @stencil-community/own-props-must-be-private
389
+ R.set(this, (t => {
390
+ if (t === at) {
391
+ this.userNameVisible = false;
392
+ this.passwordVisible = false;
393
+ this.savePasswordVisible = false;
394
+ } else {
395
+ this.userNameVisible = true;
396
+ this.passwordVisible = true;
397
+ this.savePasswordVisible = true;
398
+ }
399
+ }));
400
+ q.set(this, (() => {
401
+ if (this.getDataSourcesCallback) {
402
+ const t = c(this, E, "f").value;
403
+ const i = c(this, N, "f").value;
404
+ const e = this.getDataSourcesCallback(t, i);
405
+ e.then((t => {
406
+ if (t.length > 0) {
407
+ this.defaultDataSources = t;
408
+ // set first option as selected
409
+ c(this, M, "f").value = this.defaultDataSources[0].id;
410
+ }
411
+ })).catch((() => {}));
412
+ }
413
+ }));
414
+ J.set(this, (() => {
415
+ c(this, et, "f").call(this);
416
+ // map all "Basic Tab" GxOption[]'s to ComboBoxModel's
417
+ this.watchDefaultDataSources(this.defaultDataSources);
418
+ this.watchPrototypingEnvironments(this.prototypingEnvironments);
419
+ this.watchPrototypingTargets(this.prototypingTargets);
420
+ this.watchServerNames(this.serverNames);
421
+ this.watchUserInterfaceLanguages(this.userInterfaceLanguages);
422
+ }));
423
+ Q.set(this, (() => {
424
+ const t = c(this, L, "f").value;
425
+ c(this, G, "f").call(this, t);
426
+ const i = c(this, w, "f").value;
427
+ c(this, R, "f").call(this, i);
428
+ // map all "Advanced Tab" GxOption[]'s to ComboBoxModel's
429
+ this.watchAuthenticationTypes(this.authenticationTypes);
430
+ this.watchCollations(this.collations);
431
+ }));
432
+ X.set(this, (() => {
433
+ // populate #controlsValidation with the controls that could have errors.
434
+ const t = [ c(this, M, "f"), c(this, F, "f"), c(this, E, "f"), c(this, N, "f"), c(this, D, "f") ];
435
+ t.forEach((t => {
436
+ if (t.id) {
437
+ this.validatableControls.set(t.id, {
438
+ reference: t,
439
+ hasError: false,
440
+ message: undefined
441
+ });
442
+ }
443
+ }));
444
+ }));
445
+ Y.set(this, (() => {
446
+ // populate #controlsValidation with the controls that could have errors.
447
+ const t = [ c(this, I, "f"), c(this, w, "f"), c(this, y, "f"), c(this, L, "f"), c(this, w, "f"), c(this, x, "f"), c(this, j, "f"), c(this, k, "f"), c(this, T, "f"), c(this, S, "f") ];
448
+ t.forEach((t => {
449
+ if (t.id) {
450
+ this.validatableControls.set(t.id, {
451
+ reference: t,
452
+ hasError: false,
453
+ message: undefined
454
+ });
455
+ }
456
+ }));
457
+ }));
458
+ /**
459
+ * @description It allows defining the DBMS that will be used in the solution
460
+ */
461
+ // eslint-disable-next-line @stencil-community/own-props-must-be-private
462
+ Z.set(this, (() => {
463
+ this.selectLocationCallback().then((t => {
464
+ if (t) {
465
+ this.kbLocation = t;
466
+ }
467
+ }));
468
+ }));
469
+ tt.set(this, (t => {
470
+ if (t.detail.newSelectedId === rt) {
471
+ this.advancedTabIsVisible = true;
472
+ // Some logic for advanced tab is done on componentDidRender lifecycle,
473
+ // since the reference to the elements is needed.
474
+ }
475
+ }));
476
+ /**
477
+ * Evaluates which front-end options need updates on 'getFrontEndsCallback'
478
+ * by comparing the new state (getFrontEndsCallback result) and previous state.
479
+ */
480
+ // eslint-disable-next-line @stencil-community/own-props-must-be-private
481
+ it.set(this, (() => {
482
+ if (this.getFrontEndsCallback) {
483
+ const t = c(this, E, "f").value;
484
+ const i = this.getFrontEndsCallback(t);
485
+ i.then((t => {
486
+ const i = [];
487
+ t.forEach((t => {
488
+ const e = this.frontEnds.find((i => t.id === i.id));
489
+ if (e) {
490
+ // update newFrontEnd checked status with actual frontEnd checked status
491
+ t.checked = e.checked;
492
+ }
493
+ i.push(t);
494
+ }));
495
+ this.frontEnds = i;
496
+ })).catch((() => {}));
497
+ }
498
+ }));
499
+ et.set(this, (() => {
500
+ f(this, v, c(this, u, "m", P).call(this), "f");
501
+ }));
502
+ this.advancedTabIsVisible = false;
503
+ this.validatableControls = new Map;
504
+ this.createDataInKbDisabled = false;
505
+ this.userNameVisible = true;
506
+ this.passwordVisible = true;
507
+ this.savePasswordVisible = true;
508
+ this.authenticationTypesComboBoxModel = [];
509
+ this.authenticationTypesInitialValue = undefined;
510
+ this.collationsComboBoxModel = [];
511
+ this.collationsInitialValue = undefined;
512
+ this.defaultDataSourcesComboBoxModel = [];
513
+ this.defaultDataSourcesInitialValue = undefined;
514
+ this.prototypingTargetsComboBoxModel = [];
515
+ this.prototypingTargetsInitialValue = undefined;
516
+ this.prototypingEnvironmentsComboBoxModel = [];
517
+ this.prototypingEnvironmentsInitialValue = undefined;
518
+ this.serverNamesComboBoxModel = [];
519
+ this.serverNamesInitialValue = undefined;
520
+ this.userInterfaceLanguagesComboBoxModel = [];
521
+ this.userInterfaceLanguagesInitialValue = undefined;
522
+ this.authenticationTypes = undefined;
523
+ this.cancelCallback = undefined;
524
+ this.collations = undefined;
525
+ this.createCallback = undefined;
526
+ this.createDataFilesInKBFolder = false;
527
+ this.databaseName = undefined;
528
+ this.defaultDataSources = undefined;
529
+ this.displayTitle = false;
530
+ this.frontEnds = undefined;
531
+ this.getDataSourcesCallback = undefined;
532
+ this.getFrontEndsCallback = undefined;
533
+ this.isAdvanced = false;
534
+ this.kbLocation = undefined;
535
+ this.kbName = undefined;
536
+ this.password = undefined;
537
+ this.prototypingEnvironments = undefined;
538
+ this.prototypingTargets = undefined;
539
+ this.savePassword = false;
540
+ this.selectLocationCallback = undefined;
541
+ this.serverNames = undefined;
542
+ this.userInterfaceLanguages = undefined;
543
+ this.userName = undefined;
544
+ }
545
+ watchAuthenticationTypes(t) {
546
+ if (t === null || t === void 0 ? void 0 : t.length) {
547
+ this.authenticationTypesComboBoxModel = mapOptionsToComboBoxItemModel(t);
548
+ this.authenticationTypesInitialValue = h(t);
549
+ }
550
+ }
551
+ watchCollations(t) {
552
+ if (t === null || t === void 0 ? void 0 : t.length) {
553
+ this.collationsComboBoxModel = mapOptionsToComboBoxItemModel(t);
554
+ this.collationsInitialValue = h(t);
555
+ }
556
+ }
557
+ watchDefaultDataSources(t) {
558
+ if (t === null || t === void 0 ? void 0 : t.length) {
559
+ this.defaultDataSourcesComboBoxModel = mapOptionsToComboBoxItemModel(t);
560
+ this.defaultDataSourcesInitialValue = h(t);
561
+ }
562
+ }
563
+ watchPrototypingEnvironments(t) {
564
+ if (t === null || t === void 0 ? void 0 : t.length) {
565
+ this.prototypingEnvironmentsComboBoxModel = mapOptionsToComboBoxItemModel(t);
566
+ this.prototypingEnvironmentsInitialValue = h(t);
567
+ }
568
+ }
569
+ watchPrototypingTargets(t) {
570
+ if (t === null || t === void 0 ? void 0 : t.length) {
571
+ this.prototypingTargetsComboBoxModel = mapOptionsToComboBoxItemModel(t);
572
+ this.prototypingTargetsInitialValue = h(t);
573
+ }
574
+ }
575
+ watchServerNames(t) {
576
+ if (t === null || t === void 0 ? void 0 : t.length) {
577
+ this.serverNamesComboBoxModel = mapOptionsToComboBoxItemModel(t);
578
+ this.serverNamesInitialValue = h(t);
579
+ }
580
+ }
581
+ watchUserInterfaceLanguages(t) {
582
+ if (t === null || t === void 0 ? void 0 : t.length) {
583
+ this.userInterfaceLanguagesComboBoxModel = mapOptionsToComboBoxItemModel(t);
584
+ this.userInterfaceLanguagesInitialValue = h(t);
585
+ }
586
+ }
587
+ async componentWillLoad() {
588
+ f(this, b, await n.getComponentStrings(this.el), "f");
589
+ this.previousFrontEndsState = this.frontEnds;
590
+ f(this, g, [ {
591
+ id: lt,
592
+ name: c(this, b, "f").tabBasic.tabLabel
593
+ }, {
594
+ id: rt,
595
+ name: c(this, b, "f").tabAdvanced.tabLabel
596
+ } ], "f");
597
+ }
598
+ componentDidLoad() {
599
+ c(this, J, "f").call(this);
600
+ c(this, X, "f").call(this);
601
+ }
602
+ componentDidRender() {
603
+ if (this.advancedTabIsVisible && !c(this, p, "f")) {
604
+ // just call this once.
605
+ c(this, Q, "f").call(this);
606
+ c(this, Y, "f").call(this);
607
+ f(this, p, true, "f");
608
+ }
609
+ }
610
+ /**
611
+ * Suspends or reactivates the shortcuts
612
+ */ async suspendShortcuts(t) {
613
+ if (t) {
614
+ c(this, C, "f").suspend = true;
615
+ } else {
616
+ c(this, C, "f").suspend = false;
617
+ }
618
+ }
619
+ render() {
620
+ return t(s, {
621
+ class: "widget"
622
+ }, t("ch-theme", {
623
+ model: st
624
+ }), t("ch-shortcuts", {
625
+ src: c(this, m, "f"),
626
+ ref: t => f(this, C, t, "f")
627
+ }), t("section", {
628
+ class: "section"
629
+ }, t("header", {
630
+ class: {
631
+ "field-group": true,
632
+ "control-header-with-border": !this.isAdvanced,
633
+ "control-header": this.isAdvanced,
634
+ header: true,
635
+ "header-two-cols": this.isAdvanced,
636
+ "header-one-col": !this.isAdvanced,
637
+ "spacing-body-block-start": true,
638
+ "spacing-body-inline": true
639
+ }
640
+ }, t("div", {
641
+ // #kb name
642
+ class: "field field-inline kb-name"
643
+ }, t("label", {
644
+ class: "label kb-label",
645
+ htmlFor: "kbName"
646
+ }, c(this, b, "f").header.kbName), t("ch-edit", {
647
+ // TODO add placeholder
648
+ autoFocus: true,
649
+ class: "form-input kb-input",
650
+ placeholder: "SalesInventory",
651
+ value: this.kbName,
652
+ ref: t => f(this, F, t, "f"),
653
+ id: "kbName",
654
+ part: "kb-name"
655
+ }), c(this, H, "f").call(this, c(this, F, "f"))), this.isAdvanced && t("div", {
656
+ class: "location-wrapper"
657
+ }, t("div", {
658
+ // #location
659
+ class: "field field-inline location"
660
+ }, t("label", {
661
+ class: "label location-label",
662
+ htmlFor: "kbLocation"
663
+ }, c(this, b, "f").header.kbLocation), t("ch-edit", {
664
+ // TODO add placeholder
665
+ class: "form-input location-input",
666
+ value: this.kbLocation,
667
+ ref: t => f(this, I, t, "f"),
668
+ id: "kbLocation",
669
+ part: "kb-location"
670
+ }), c(this, H, "f").call(this, c(this, I, "f"))), t("button", {
671
+ class: "button-tertiary button-icon-only location-icon",
672
+ "aria-label": c(this, b, "f").header.selectLocationButton,
673
+ title: c(this, b, "f").header.selectLocationButton,
674
+ part: "button-select-location",
675
+ onClick: c(this, Z, "f")
676
+ }, t("ch-image", {
677
+ class: "icon-md",
678
+ src: ht
679
+ })))), this.isAdvanced ? t("ch-tab-render", {
680
+ // #tab
681
+ class: {
682
+ scrollable: true,
683
+ tab: true,
684
+ [ot]: true
685
+ },
686
+ direction: "block",
687
+ model: c(this, g, "f"),
688
+ selectedId: lt,
689
+ overflow: "auto scroll",
690
+ contain: "size",
691
+ onSelectedItemChange: !this.advancedTabIsVisible && c(this, tt, "f")
692
+ }, t("div", {
693
+ slot: lt,
694
+ class: nt,
695
+ part: "tab-button-basic"
696
+ }, c(this, O, "f").call(this)), this.advancedTabIsVisible && t("div", {
697
+ slot: rt,
698
+ class: "advanced spacing-body-inline",
699
+ part: "tab-button-advanced"
700
+ }, c(this, z, "f").call(this))) : t("div", {
701
+ class: ot
702
+ }, t("div", {
703
+ class: nt
704
+ }, c(this, O, "f").call(this))), t("footer", {
705
+ class: {
706
+ "control-footer": this.isAdvanced,
707
+ "control-footer-with-border": !this.isAdvanced,
708
+ "spacing-body-block-end": true,
709
+ "spacing-body-inline": true
710
+ }
711
+ }, t("div", {
712
+ class: "buttons-spacer"
713
+ }, t("button", {
714
+ // #cancel
715
+ class: "button-secondary",
716
+ id: "button-cancel",
717
+ onClick: c(this, U, "f"),
718
+ part: "button-cancel"
719
+ }, c(this, b, "f").footer.btnCancel), t("button", {
720
+ // #create
721
+ class: "button-primary",
722
+ id: "button-create",
723
+ onClick: c(this, $, "f"),
724
+ part: "button-create"
725
+ }, c(this, b, "f").footer.btnCreate)))));
726
+ }
727
+ static get assetsDirs() {
728
+ return [ "gx-ide-assets/new-kb" ];
729
+ }
730
+ get el() {
731
+ return a(this);
732
+ }
733
+ static get watchers() {
734
+ return {
735
+ authenticationTypes: [ "watchAuthenticationTypes" ],
736
+ collations: [ "watchCollations" ],
737
+ defaultDataSources: [ "watchDefaultDataSources" ],
738
+ prototypingEnvironments: [ "watchPrototypingEnvironments" ],
739
+ prototypingTargets: [ "watchPrototypingTargets" ],
740
+ serverNames: [ "watchServerNames" ],
741
+ userInterfaceLanguages: [ "watchUserInterfaceLanguages" ]
742
+ };
743
+ }
744
+ };
745
+
746
+ p = new WeakMap, b = new WeakMap, v = new WeakMap, m = new WeakMap, g = new WeakMap,
747
+ w = new WeakMap, k = new WeakMap, y = new WeakMap, x = new WeakMap, M = new WeakMap,
748
+ W = new WeakMap, F = new WeakMap, I = new WeakMap, T = new WeakMap, E = new WeakMap,
749
+ N = new WeakMap, S = new WeakMap, L = new WeakMap, D = new WeakMap, j = new WeakMap,
750
+ C = new WeakMap, _ = new WeakMap, A = new WeakMap, B = new WeakMap, K = new WeakMap,
751
+ V = new WeakMap, z = new WeakMap, O = new WeakMap, U = new WeakMap, $ = new WeakMap,
752
+ G = new WeakMap, H = new WeakMap, R = new WeakMap, q = new WeakMap, J = new WeakMap,
753
+ Q = new WeakMap, X = new WeakMap, Y = new WeakMap, Z = new WeakMap, tt = new WeakMap,
754
+ it = new WeakMap, et = new WeakMap, u = new WeakSet, P = function _GxIdeNewKb_getCheckboxValues() {
755
+ // TODO (We shouldn't be using querySelector)
756
+ const t = c(this, W, "f").querySelectorAll("ch-checkbox");
757
+ const i = Array.from(t).map((t => t.value)).filter(Boolean);
758
+ return i;
759
+ };
760
+
761
+ dt.style = d;
762
+
763
+ export { dt as gx_ide_new_kb };
764
+ //# sourceMappingURL=p-ab29274c.entry.js.map