@genexus/genexus-ide-ui 1.0.8 → 1.0.10

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