@genexus/genexus-ide-ui 3.1.2 → 3.2.0

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 (37) hide show
  1. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  2. package/dist/cjs/gx-ide-new-kb.cjs.entry.js +46 -13
  3. package/dist/cjs/gx-ide-new-kb.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gx-ide-sign-in-team.cjs.entry.js +1 -1
  5. package/dist/cjs/gx-ide-sign-in-team.cjs.entry.js.map +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.en.json +2 -0
  8. package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.ja.json +2 -0
  9. package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.zh.json +2 -0
  10. package/dist/collection/components/new-kb/new-kb.css +15 -5
  11. package/dist/collection/components/new-kb/new-kb.js +64 -12
  12. package/dist/collection/components/new-kb/new-kb.js.map +1 -1
  13. package/dist/collection/components/sign-in-team/sign-in-team.css +1 -0
  14. package/dist/components/gx-ide-new-kb.js +48 -13
  15. package/dist/components/gx-ide-new-kb.js.map +1 -1
  16. package/dist/components/gx-ide-sign-in-team.js +1 -1
  17. package/dist/components/gx-ide-sign-in-team.js.map +1 -1
  18. package/dist/esm/genexus-ide-ui.js +1 -1
  19. package/dist/esm/gx-ide-new-kb.entry.js +46 -13
  20. package/dist/esm/gx-ide-new-kb.entry.js.map +1 -1
  21. package/dist/esm/gx-ide-sign-in-team.entry.js +1 -1
  22. package/dist/esm/gx-ide-sign-in-team.entry.js.map +1 -1
  23. package/dist/esm/loader.js +1 -1
  24. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  25. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
  26. package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.en.json +2 -0
  27. package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.ja.json +2 -0
  28. package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.zh.json +2 -0
  29. package/dist/genexus-ide-ui/{p-c24ea55d.entry.js → p-1d44dd0a.entry.js} +59 -59
  30. package/dist/genexus-ide-ui/p-1d44dd0a.entry.js.map +1 -0
  31. package/dist/genexus-ide-ui/{p-217bd2d7.entry.js → p-76e1c357.entry.js} +178 -137
  32. package/dist/genexus-ide-ui/p-76e1c357.entry.js.map +1 -0
  33. package/dist/types/components/new-kb/new-kb.d.ts +7 -0
  34. package/dist/types/components.d.ts +8 -0
  35. package/package.json +1 -1
  36. package/dist/genexus-ide-ui/p-217bd2d7.entry.js.map +0 -1
  37. package/dist/genexus-ide-ui/p-c24ea55d.entry.js.map +0 -1
@@ -14,15 +14,15 @@ import { c as n } from "./p-c5196b3b.js";
14
14
 
15
15
  import { L as h } from "./p-311eedf3.js";
16
16
 
17
- import { s as l, g as d } from "./p-91e2ebb0.js";
17
+ import { s as l, g as r } from "./p-91e2ebb0.js";
18
18
 
19
- import { r, m as c } from "./p-4d330836.js";
19
+ import { r as d, m as c } from "./p-4d330836.js";
20
20
 
21
21
  import { v as f } from "./p-b32b6b1f.js";
22
22
 
23
23
  import { r as p } from "./p-1252519a.js";
24
24
 
25
- const u = 'button.button-secondary{border-color:var(--color-border-neutral-default)}: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(--spacing-gap-xs)}.location{flex-grow:1;grid-area:location}.basic{display:grid;grid-template:"basic-top basic-top" max-content "back-end front-end" 1fr;grid-template-columns:1fr 1fr}.basic__header{grid-area:basic-top;grid-template-columns:1fr 1fr}.dialog-header__back-end,.dialog-header__front-end{padding-block-start:16px}.main__back-end{border-inline-end:var(--section-common-border)}.main__back-end,.main__front-end{grid-auto-rows:max-content;padding-block:12px;overflow:auto}.section__back-end{grid-area:back-end;grid-auto-rows:max-content}.section__front-end{grid-area:front-end}.section__back-end,.section__front-end{display:grid;grid-template-rows:max-content 1fr;overflow:auto}.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-start:12px;overflow:auto;block-size:100%}.tab-advanced__field-group{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:auto}.text-align-center{text-align:center}.tab::part(page){scrollbar-width:thin}.checkbox{inline-size:max-content}';
25
+ const u = 'button.button-secondary{border-color:var(--color-border-neutral-default)}: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}.location-wrapper{display:flex;align-items:center;gap:var(--spacing-gap-xs);min-block-size:var(--control-block-size)}.location-custom-wrapper{display:flex;align-items:center;gap:var(--spacing-gap-xs);flex-grow:1;min-inline-size:0}.location-field{flex-grow:1;min-inline-size:0}.location-field>.input{inline-size:100%}.basic{display:grid;grid-template:"basic-top basic-top" max-content "back-end front-end" 1fr;grid-template-columns:1fr 1fr}.basic__header{grid-area:basic-top;grid-template-columns:1fr 1fr}.dialog-header__back-end,.dialog-header__front-end{padding-block-start:16px}.main__back-end{border-inline-end:var(--section-common-border)}.main__back-end,.main__front-end{grid-auto-rows:max-content;padding-block:12px;overflow:auto}.section__back-end{grid-area:back-end;grid-auto-rows:max-content}.section__front-end{grid-area:front-end}.section__back-end,.section__front-end{display:grid;grid-template-rows:max-content 1fr;overflow:auto}.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-start:12px;overflow:auto;block-size:100%}.tab-advanced__field-group{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:auto}.text-align-center{text-align:center}.tab::part(page){scrollbar-width:thin}.checkbox{inline-size:max-content}';
26
26
 
27
27
  var b = undefined && undefined.__classPrivateFieldGet || function(t, i, e, s) {
28
28
  if (e === "a" && !s) throw new TypeError("Private accessor was defined without a getter");
@@ -37,27 +37,31 @@ var v = undefined && undefined.__classPrivateFieldSet || function(t, i, e, s, a)
37
37
  return s === "a" ? a.call(t, e) : a ? a.value = e : i.set(t, e), e;
38
38
  };
39
39
 
40
- var m, g, w, k, y, x, M, W, _, F, T, I, E, N, j, D, L, P, S, C, z, A, B, K, U, V, H, R, q, G, J, O, Q, X, Y, Z, $, tt, it, et, st, at, ot, nt;
40
+ var m, g, w, k, y, x, M, W, _, F, T, I, E, N, j, D, L, P, S, z, C, A, B, K, U, V, H, R, q, G, J, O, Q, X, Y, Z, $, tt, it, et, st, at, ot, nt, ht, lt, rt, dt;
41
41
 
42
- const ht = [ "resets/box-sizing", "components/tab", "components/tooltip", "utils/form--full", "utils/layout", "utils/typography", "utils/spacing", "chameleon/scrollbar" ];
42
+ const ct = [ "resets/box-sizing", "components/tab", "components/tooltip", "utils/form--full", "utils/layout", "utils/typography", "utils/spacing", "chameleon/scrollbar" ];
43
43
 
44
- const lt = "windows-authentication";
44
+ const ft = "windows-authentication";
45
45
 
46
- const dt = "main";
46
+ const pt = "main";
47
47
 
48
- const rt = "basic";
48
+ const ut = "basic";
49
49
 
50
- const ct = o({
50
+ const bt = o({
51
51
  category: "system",
52
52
  name: "folder",
53
53
  colorType: "primary"
54
54
  });
55
55
 
56
- const ft = "basic";
56
+ const vt = "default";
57
57
 
58
- const pt = "advanced";
58
+ const mt = "custom";
59
59
 
60
- const ut = class {
60
+ const gt = "basic";
61
+
62
+ const wt = "advanced";
63
+
64
+ const kt = class {
61
65
  constructor(s) {
62
66
  t(this, s);
63
67
  m.set(this, false);
@@ -84,12 +88,15 @@ const ut = class {
84
88
  N.set(this, void 0);
85
89
  j.set(this, void 0);
86
90
  D.set(this, void 0);
87
- L.set(this, void 0);
91
+ L.set(this, false);
88
92
  P.set(this, void 0);
89
93
  S.set(this, void 0);
90
- C.set(this, void 0);
91
94
  z.set(this, void 0);
95
+ C.set(this, void 0);
92
96
  A.set(this, void 0);
97
+ B.set(this, void 0);
98
+ K.set(this, void 0);
99
+ U.set(this, void 0);
93
100
  // Uncomment when "TODO: define button handler and logic" is done.
94
101
  // #geminiToolsSearchPrimary = getIconPath({
95
102
  // category: "gemini-tools",
@@ -101,26 +108,26 @@ const ut = class {
101
108
  // name: "reset",
102
109
  // colorType: "primary"
103
110
  // });
104
- B.set(this, (t => {
111
+ V.set(this, (t => {
105
112
  const i = t === null || t === void 0 ? void 0 : t.detail;
106
- b(this, X, "f").call(this, i);
113
+ b(this, $, "f").call(this, i);
107
114
  }));
108
- K.set(this, (t => {
109
- b(this, O, "f").call(this, t.detail);
115
+ H.set(this, (t => {
116
+ b(this, Y, "f").call(this, t.detail);
110
117
  }));
111
- U.set(this, (t => {
118
+ R.set(this, (t => {
112
119
  v(this, k, t.detail, "f");
113
- b(this, tt, "f").call(this);
114
- b(this, nt, "f").call(this);
120
+ b(this, st, "f").call(this);
121
+ b(this, dt, "f").call(this);
115
122
  }));
116
- V.set(this, (async () => {
117
- await b(this, $, "f").call(this);
118
- b(this, tt, "f").call(this);
123
+ q.set(this, (async () => {
124
+ await b(this, et, "f").call(this);
125
+ b(this, st, "f").call(this);
119
126
  }));
120
- H.set(this, (() => {
127
+ G.set(this, (() => {
121
128
  v(this, y, b(this, I, "f").value, "f");
122
129
  }));
123
- R.set(this, (() => [ e("h2", {
130
+ J.set(this, (() => [ e("h2", {
124
131
  // #knowledge base storage
125
132
  class: "dialog-header subtitle-regular-xs\t text-align-center"
126
133
  }, b(this, g, "f").tabAdvanced.tabTitle), e("div", {
@@ -136,12 +143,12 @@ const ut = class {
136
143
  disabled: this.serverNames.length === 0,
137
144
  placeholder: this.serverNames.length === 0 ? b(this, g, "f").tabAdvanced.serverName.disabledPlaceholder : "",
138
145
  value: this.serverNamesInitialValue,
139
- ref: t => v(this, S, t, "f"),
146
+ ref: t => v(this, A, t, "f"),
140
147
  model: this.serverNamesComboBoxModel,
141
- onInput: this.serverNames.length > 0 && b(this, K, "f"),
148
+ onInput: this.serverNames.length > 0 && b(this, H, "f"),
142
149
  id: "serverName",
143
150
  part: "server-name"
144
- }), b(this, Q, "f").call(this, b(this, S, "f"))), e("div", {
151
+ }), b(this, Z, "f").call(this, b(this, A, "f"))), e("div", {
145
152
  // #authentication type
146
153
  class: "field field-block authentication-type-field"
147
154
  }, e("label", {
@@ -156,8 +163,8 @@ const ut = class {
156
163
  model: this.authenticationTypesComboBoxModel,
157
164
  id: "authenticationType",
158
165
  part: "authentication-type",
159
- onInput: this.authenticationTypes.length > 0 ? b(this, B, "f") : undefined
160
- }), b(this, Q, "f").call(this, b(this, W, "f"))), e("div", {
166
+ onInput: this.authenticationTypes.length > 0 ? b(this, V, "f") : undefined
167
+ }), b(this, Z, "f").call(this, b(this, W, "f"))), e("div", {
161
168
  // #database
162
169
  class: "field field-block database-field"
163
170
  }, e("label", {
@@ -170,7 +177,7 @@ const ut = class {
170
177
  id: "databaseName",
171
178
  part: "database-name",
172
179
  ref: t => v(this, T, t, "f")
173
- }), b(this, Q, "f").call(this, b(this, T, "f"))), this.userNameVisible ? e("div", {
180
+ }), b(this, Z, "f").call(this, b(this, T, "f"))), this.userNameVisible ? e("div", {
174
181
  // #username
175
182
  class: "field field-block username-field"
176
183
  }, e("label", {
@@ -182,8 +189,8 @@ const ut = class {
182
189
  value: this.userName,
183
190
  id: "userName",
184
191
  part: "user-name",
185
- ref: t => v(this, z, t, "f")
186
- }), b(this, Q, "f").call(this, b(this, z, "f"))) : null, e("div", {
192
+ ref: t => v(this, K, t, "f")
193
+ }), b(this, Z, "f").call(this, b(this, K, "f"))) : null, e("div", {
187
194
  // #collation
188
195
  class: "field field-block collation-field"
189
196
  }, e("label", {
@@ -198,7 +205,7 @@ const ut = class {
198
205
  model: this.collationsComboBoxModel,
199
206
  id: "collation",
200
207
  part: "collation"
201
- }), b(this, Q, "f").call(this, b(this, _, "f"))), this.passwordVisible ? e("div", {
208
+ }), b(this, Z, "f").call(this, b(this, _, "f"))), this.passwordVisible ? e("div", {
202
209
  // #password
203
210
  class: "field field-block password-field"
204
211
  }, e("label", {
@@ -211,8 +218,8 @@ const ut = class {
211
218
  value: this.password,
212
219
  id: "password",
213
220
  part: "password",
214
- ref: t => v(this, j, t, "f")
215
- }), b(this, Q, "f").call(this, b(this, j, "f"))) : null, e("ch-checkbox", {
221
+ ref: t => v(this, P, t, "f")
222
+ }), b(this, Z, "f").call(this, b(this, P, "f"))) : null, e("ch-checkbox", {
216
223
  // #create data in knowledge base folder
217
224
  class: "checkbox create-data-in-kb-checkbox",
218
225
  checkedValue: "createDataFilesInKBFolder",
@@ -228,9 +235,9 @@ const ut = class {
228
235
  caption: b(this, g, "f").tabAdvanced.savePassword,
229
236
  part: "save-password",
230
237
  id: "savePassword",
231
- ref: t => v(this, P, t, "f")
238
+ ref: t => v(this, C, t, "f")
232
239
  }) : null) ]));
233
- q.set(this, (() => [ e("section", {
240
+ O.set(this, (() => [ e("section", {
234
241
  class: "basic__header field-group dialog-header-with-border spacing-body-inline"
235
242
  }, e("div", {
236
243
  // #prototyping target
@@ -246,9 +253,9 @@ const ut = class {
246
253
  placeholder: this.prototypingTargets.length === 0 ? b(this, g, "f").tabBasic.prototypingTarget.disabledPlaceholder : "",
247
254
  value: this.prototypingTargetsInitialValue,
248
255
  model: this.prototypingTargetsComboBoxModel,
249
- onInput: this.prototypingTargets.length > 0 ? b(this, V, "f") : undefined,
250
- ref: t => v(this, L, t, "f")
251
- }), b(this, Q, "f").call(this, b(this, L, "f"))), e("div", {
256
+ onInput: this.prototypingTargets.length > 0 ? b(this, q, "f") : undefined,
257
+ ref: t => v(this, z, t, "f")
258
+ }), b(this, Z, "f").call(this, b(this, z, "f"))), e("div", {
252
259
  // #user interface
253
260
  class: "field field-block user-interface-language"
254
261
  }, e("label", {
@@ -259,11 +266,11 @@ const ut = class {
259
266
  disabled: this.userInterfaceLanguages.length === 0,
260
267
  placeholder: this.userInterfaceLanguages.length === 0 ? b(this, g, "f").tabBasic.userInterfaceLanguage.disabledPlaceholder : "",
261
268
  value: this.userInterfaceLanguagesInitialValue,
262
- ref: t => v(this, C, t, "f"),
269
+ ref: t => v(this, B, t, "f"),
263
270
  model: this.userInterfaceLanguagesComboBoxModel,
264
271
  id: "userInterfaceLanguage",
265
272
  part: "user-interface-language"
266
- }), b(this, Q, "f").call(this, b(this, C, "f")))), e("section", {
273
+ }), b(this, Z, "f").call(this, b(this, B, "f")))), e("section", {
267
274
  class: "section__back-end"
268
275
  }, e("h2", {
269
276
  // back end
@@ -281,12 +288,12 @@ const ut = class {
281
288
  disabled: this.defaultPrototypingEnvironments.length === 0,
282
289
  placeholder: this.defaultPrototypingEnvironments.length === 0 ? b(this, g, "f").tabBasic.backEnd.prototypingEnvironment.disabledPlaceholder : "",
283
290
  value: b(this, k, "f"),
284
- ref: t => v(this, D, t, "f"),
291
+ ref: t => v(this, S, t, "f"),
285
292
  model: this.prototypingEnvironmentsComboBoxModel,
286
- onInput: b(this, U, "f"),
293
+ onInput: b(this, R, "f"),
287
294
  part: "prototyping-environment",
288
295
  id: "prototypingEnvironment"
289
- }), b(this, Q, "f").call(this, b(this, D, "f"))), e("div", {
296
+ }), b(this, Z, "f").call(this, b(this, S, "f"))), e("div", {
290
297
  // #data source
291
298
  class: "field field-block"
292
299
  }, e("label", {
@@ -298,25 +305,25 @@ const ut = class {
298
305
  placeholder: this.defaultDataSources.length === 0 ? b(this, g, "f").tabBasic.backEnd.dataSource.disabledPlaceholder : "",
299
306
  value: b(this, y, "f"),
300
307
  ref: t => v(this, I, t, "f"),
301
- onInput: b(this, H, "f"),
308
+ onInput: b(this, G, "f"),
302
309
  model: this.defaultDataSourcesComboBoxModel,
303
310
  part: "data-source",
304
311
  id: "dataSource"
305
- }), b(this, Q, "f").call(this, b(this, I, "f"))))), e("section", {
312
+ }), b(this, Z, "f").call(this, b(this, I, "f"))))), e("section", {
306
313
  class: "section__front-end"
307
314
  }, e("h2", {
308
315
  class: "dialog-header dialog-header-with-border dialog-header__front-end subtitle-regular-xs\t text-align-center spacing-body-inline"
309
316
  }, b(this, g, "f").tabBasic.frontEnd.frontEndLabel), e("div", {
310
317
  class: "field-group main__front-end spacing-body-inline scrollable"
311
- }, r(this.frontEnds, b(this, Y, "f"), b(this, w, "f").get(b(this, k, "f"))))) ]));
318
+ }, d(this.frontEnds, b(this, tt, "f"), b(this, w, "f").get(b(this, k, "f"))))) ]));
312
319
  // - - - - - - - - - -
313
- G.set(this, (() => {
320
+ Q.set(this, (() => {
314
321
  if (this.cancelCallback) {
315
322
  this.cancelCallback();
316
323
  }
317
324
  }));
318
- J.set(this, (() => {
319
- var t, i, e, s, a, o, n, h, l, d, r, c, p, u, v;
325
+ X.set(this, (() => {
326
+ var t, i, e, s, a, o, n, h, l, r, d, c, p, u, v;
320
327
  const m = (t = b(this, w, "f").get(b(this, k, "f"))) !== null && t !== void 0 ? t : [];
321
328
  this.createCallback({
322
329
  authenticationType: (i = b(this, W, "f")) === null || i === void 0 ? void 0 : i.value,
@@ -327,13 +334,13 @@ const ut = class {
327
334
  frontEnds: m,
328
335
  kbLocation: (n = b(this, N, "f")) === null || n === void 0 ? void 0 : n.value,
329
336
  kbName: (h = b(this, E, "f")) === null || h === void 0 ? void 0 : h.value,
330
- password: (l = b(this, j, "f")) === null || l === void 0 ? void 0 : l.value,
331
- prototypingEnvironment: (d = b(this, D, "f")) === null || d === void 0 ? void 0 : d.value,
332
- prototypingTarget: (r = b(this, L, "f")) === null || r === void 0 ? void 0 : r.value,
333
- savePassword: !!((c = b(this, P, "f")) === null || c === void 0 ? void 0 : c.value),
334
- serverName: (p = b(this, S, "f")) === null || p === void 0 ? void 0 : p.value,
335
- userInterfaceLanguage: (u = b(this, C, "f")) === null || u === void 0 ? void 0 : u.value,
336
- userName: (v = b(this, z, "f")) === null || v === void 0 ? void 0 : v.value
337
+ password: (l = b(this, P, "f")) === null || l === void 0 ? void 0 : l.value,
338
+ prototypingEnvironment: (r = b(this, S, "f")) === null || r === void 0 ? void 0 : r.value,
339
+ prototypingTarget: (d = b(this, z, "f")) === null || d === void 0 ? void 0 : d.value,
340
+ savePassword: !!((c = b(this, C, "f")) === null || c === void 0 ? void 0 : c.value),
341
+ serverName: (p = b(this, A, "f")) === null || p === void 0 ? void 0 : p.value,
342
+ userInterfaceLanguage: (u = b(this, B, "f")) === null || u === void 0 ? void 0 : u.value,
343
+ userName: (v = b(this, K, "f")) === null || v === void 0 ? void 0 : v.value
337
344
  }).then((t => {
338
345
  this.validatableControls = f(t, this.validatableControls);
339
346
  }));
@@ -343,7 +350,7 @@ const ut = class {
343
350
  * option is selected.
344
351
  * */
345
352
  // eslint-disable-next-line @stencil-community/own-props-must-be-private
346
- O.set(this, (t => {
353
+ Y.set(this, (t => {
347
354
  var i;
348
355
  if (((i = this.serverNames[0]) === null || i === void 0 ? void 0 : i.id) === t) {
349
356
  this.createDataInKbDisabled = true;
@@ -353,7 +360,7 @@ const ut = class {
353
360
  }));
354
361
  // TODO: evaluate if this should be a global helper function.
355
362
  // It is used on new-kb as well.
356
- Q.set(this, (t => {
363
+ Z.set(this, (t => {
357
364
  var i, s, a;
358
365
  return ((s = (i = this.validatableControls) === null || i === void 0 ? void 0 : i.get(t === null || t === void 0 ? void 0 : t.id)) === null || s === void 0 ? void 0 : s.hasError) && ((a = this.validatableControls.get(t.id)) === null || a === void 0 ? void 0 : a.message) && e("ch-tooltip", {
359
366
  class: "tooltip",
@@ -368,8 +375,8 @@ const ut = class {
368
375
  * Password, and Save Password fields.
369
376
  */
370
377
  // eslint-disable-next-line @stencil-community/own-props-must-be-private
371
- X.set(this, (t => {
372
- if (t === lt) {
378
+ $.set(this, (t => {
379
+ if (t === ft) {
373
380
  this.userNameVisible = false;
374
381
  this.passwordVisible = false;
375
382
  this.savePasswordVisible = false;
@@ -379,17 +386,17 @@ const ut = class {
379
386
  this.savePasswordVisible = true;
380
387
  }
381
388
  }));
382
- Y.set(this, (t => {
389
+ tt.set(this, (t => {
383
390
  const i = t.target.checkedValue;
384
391
  const e = t.detail === i;
385
- b(this, Z, "f").call(this, i, e);
392
+ b(this, it, "f").call(this, i, e);
386
393
  }));
387
394
  /**
388
395
  * This function updates frontEndsCheckedMap, that contains the checked
389
396
  * checkboxes for each language front ends.
390
397
  */
391
398
  // eslint-disable-next-line @stencil-community/own-props-must-be-private
392
- Z.set(this, ((t, i) => {
399
+ it.set(this, ((t, i) => {
393
400
  let e = b(this, w, "f").get(b(this, k, "f"));
394
401
  if (!e) {
395
402
  // first time
@@ -405,24 +412,24 @@ const ut = class {
405
412
  p(e, i);
406
413
  }
407
414
  }));
408
- $.set(this, (async () => {
415
+ et.set(this, (async () => {
409
416
  if (this.getPrototypingEnvironmentsCallback) {
410
- const t = b(this, L, "f") ? b(this, L, "f").value : this.prototypingTargetsInitialValue;
417
+ const t = b(this, z, "f") ? b(this, z, "f").value : this.prototypingTargetsInitialValue;
411
418
  const i = await this.getPrototypingEnvironmentsCallback(t);
412
419
  if (i) {
413
420
  this.defaultPrototypingEnvironments = i;
414
421
  }
415
422
  }
416
423
  }));
417
- tt.set(this, (() => {
424
+ st.set(this, (() => {
418
425
  if (this.getDataSourcesCallback) {
419
- const t = b(this, D, "f").value;
420
- const i = b(this, L, "f").value;
426
+ const t = b(this, S, "f").value;
427
+ const i = b(this, z, "f").value;
421
428
  const e = this.getDataSourcesCallback(t, i);
422
429
  e.then((t => {
423
430
  if (t.length > 0) {
424
431
  t = l(t, b(this, y, "f"));
425
- v(this, y, d(t), "f");
432
+ v(this, y, r(t), "f");
426
433
  this.defaultDataSources = t;
427
434
  // set first option as selected
428
435
  b(this, I, "f").value = b(this, y, "f") !== undefined ? b(this, y, "f") : this.defaultDataSources[0].id;
@@ -430,18 +437,18 @@ const ut = class {
430
437
  })).catch((() => {}));
431
438
  }
432
439
  }));
433
- it.set(this, (() => {
434
- const t = b(this, S, "f").value;
435
- b(this, O, "f").call(this, t);
440
+ at.set(this, (() => {
441
+ const t = b(this, A, "f").value;
442
+ b(this, Y, "f").call(this, t);
436
443
  const i = b(this, W, "f").value;
437
- b(this, X, "f").call(this, i);
444
+ b(this, $, "f").call(this, i);
438
445
  // map all "Advanced Tab" GxOption[]'s to ComboBoxModel's
439
446
  this.watchAuthenticationTypes(this.authenticationTypes);
440
447
  this.watchCollations(this.collations);
441
448
  }));
442
- et.set(this, (() => {
449
+ ot.set(this, (() => {
443
450
  // populate #controlsValidation with the controls that could have errors.
444
- const t = [ b(this, I, "f"), b(this, E, "f"), b(this, D, "f"), b(this, L, "f"), b(this, C, "f") ];
451
+ const t = [ b(this, I, "f"), b(this, E, "f"), b(this, S, "f"), b(this, z, "f"), b(this, B, "f") ];
445
452
  t.forEach((t => {
446
453
  if (t.id) {
447
454
  this.validatableControls.set(t.id, {
@@ -452,9 +459,9 @@ const ut = class {
452
459
  }
453
460
  }));
454
461
  }));
455
- st.set(this, (() => {
462
+ nt.set(this, (() => {
456
463
  // populate #controlsValidation with the controls that could have errors.
457
- const t = [ b(this, N, "f"), b(this, W, "f"), b(this, F, "f"), b(this, S, "f"), b(this, W, "f"), b(this, T, "f"), b(this, z, "f"), b(this, _, "f"), b(this, j, "f"), b(this, P, "f") ];
464
+ const t = [ b(this, W, "f"), b(this, F, "f"), b(this, A, "f"), b(this, W, "f"), b(this, T, "f"), b(this, K, "f"), b(this, _, "f"), b(this, P, "f"), b(this, C, "f") ];
458
465
  t.forEach((t => {
459
466
  if (t.id) {
460
467
  this.validatableControls.set(t.id, {
@@ -469,15 +476,18 @@ const ut = class {
469
476
  * @description It allows defining the DBMS that will be used in the solution
470
477
  */
471
478
  // eslint-disable-next-line @stencil-community/own-props-must-be-private
472
- at.set(this, (() => {
479
+ ht.set(this, (() => {
473
480
  this.selectLocationCallback().then((t => {
474
481
  if (t) {
475
482
  this.kbLocation = t;
476
483
  }
477
484
  }));
478
485
  }));
479
- ot.set(this, (t => {
480
- if (t.detail.newSelectedId === pt) {
486
+ lt.set(this, (() => {
487
+ this.locationMode = b(this, j, "f").value;
488
+ }));
489
+ rt.set(this, (t => {
490
+ if (t.detail.newSelectedId === wt) {
481
491
  this.advancedTabIsVisible = true;
482
492
  // Some logic for advanced tab is done on componentDidRender lifecycle,
483
493
  // since the reference to the elements is needed.
@@ -488,13 +498,22 @@ const ut = class {
488
498
  * by comparing the new state (getFrontEndsCallback result) and previous state.
489
499
  */
490
500
  // eslint-disable-next-line @stencil-community/own-props-must-be-private
491
- nt.set(this, (async () => {
501
+ dt.set(this, (async () => {
492
502
  const t = await this.getFrontEndsCallback(b(this, k, "f"));
493
503
  if ((t === null || t === void 0 ? void 0 : t.length) > 0) {
494
504
  this.frontEnds = t;
505
+ // Seed the checked map from the data's checked property so that
506
+ // initially checked items render as checked on first load.
507
+ if (!b(this, w, "f").has(b(this, k, "f"))) {
508
+ const i = t.filter((t => t.checked)).map((t => t.value || t.id));
509
+ if (i.length > 0) {
510
+ b(this, w, "f").set(b(this, k, "f"), i);
511
+ }
512
+ }
495
513
  }
496
514
  }));
497
515
  this.advancedTabIsVisible = false;
516
+ this.locationMode = vt;
498
517
  this.frontEnds = undefined;
499
518
  this.validatableControls = new Map;
500
519
  this.createDataInKbDisabled = false;
@@ -516,6 +535,7 @@ const ut = class {
516
535
  this.userInterfaceLanguagesInitialValue = undefined;
517
536
  this.authenticationTypes = [];
518
537
  this.cancelCallback = undefined;
538
+ this.canSetLocation = false;
519
539
  this.collations = undefined;
520
540
  this.createCallback = undefined;
521
541
  this.createDataFilesInKBFolder = false;
@@ -539,57 +559,64 @@ const ut = class {
539
559
  watchAuthenticationTypes(t) {
540
560
  if (t === null || t === void 0 ? void 0 : t.length) {
541
561
  this.authenticationTypesComboBoxModel = c(t);
542
- this.authenticationTypesInitialValue = d(t);
562
+ this.authenticationTypesInitialValue = r(t);
543
563
  }
544
564
  }
545
565
  watchCollations(t) {
546
566
  if (t === null || t === void 0 ? void 0 : t.length) {
547
567
  this.collationsComboBoxModel = c(t);
548
- this.collationsInitialValue = d(t);
568
+ this.collationsInitialValue = r(t);
549
569
  }
550
570
  }
551
571
  watchDefaultDataSources(t) {
552
572
  if (t === null || t === void 0 ? void 0 : t.length) {
553
573
  this.defaultDataSourcesComboBoxModel = c(t);
554
574
  const i = l(t, b(this, y, "f"));
555
- v(this, y, d(i), "f");
575
+ v(this, y, r(i), "f");
556
576
  }
557
577
  }
558
578
  watchDefaultPrototypingEnvironments(t) {
559
579
  if (t === null || t === void 0 ? void 0 : t.length) {
560
580
  this.prototypingEnvironmentsComboBoxModel = c(t);
561
- v(this, k, d(t), "f");
562
- b(this, nt, "f").call(this);
581
+ v(this, k, r(t), "f");
582
+ b(this, dt, "f").call(this);
563
583
  }
564
584
  }
565
585
  watchPrototypingTargets(t) {
566
586
  if (t === null || t === void 0 ? void 0 : t.length) {
567
587
  this.prototypingTargetsComboBoxModel = c(t);
568
- this.prototypingTargetsInitialValue = d(t);
569
- b(this, $, "f").call(this);
588
+ this.prototypingTargetsInitialValue = r(t);
589
+ b(this, et, "f").call(this);
570
590
  }
571
591
  }
572
592
  watchServerNames(t) {
573
593
  if (t === null || t === void 0 ? void 0 : t.length) {
574
594
  this.serverNamesComboBoxModel = c(t);
575
- this.serverNamesInitialValue = d(t);
595
+ this.serverNamesInitialValue = r(t);
576
596
  }
577
597
  }
578
598
  watchUserInterfaceLanguages(t) {
579
599
  if (t === null || t === void 0 ? void 0 : t.length) {
580
600
  this.userInterfaceLanguagesComboBoxModel = c(t);
581
- this.userInterfaceLanguagesInitialValue = d(t);
601
+ this.userInterfaceLanguagesInitialValue = r(t);
582
602
  }
583
603
  }
584
604
  async componentWillLoad() {
585
605
  v(this, g, await h.getComponentStrings(this.el), "f");
586
606
  v(this, M, [ {
587
- id: ft,
607
+ id: gt,
588
608
  name: b(this, g, "f").tabBasic.tabLabel
589
609
  }, {
590
- id: pt,
610
+ id: wt,
591
611
  name: b(this, g, "f").tabAdvanced.tabLabel
592
612
  } ], "f");
613
+ v(this, D, [ {
614
+ value: vt,
615
+ caption: b(this, g, "f").header.kbLocationDefault
616
+ }, {
617
+ value: mt,
618
+ caption: b(this, g, "f").header.kbLocationCustom
619
+ } ], "f");
593
620
  }
594
621
  connectedCallback() {
595
622
  this.watchDefaultDataSources(this.defaultDataSources);
@@ -599,33 +626,42 @@ const ut = class {
599
626
  this.watchUserInterfaceLanguages(this.userInterfaceLanguages);
600
627
  }
601
628
  componentDidLoad() {
602
- b(this, et, "f").call(this);
629
+ b(this, ot, "f").call(this);
603
630
  }
604
631
  componentDidRender() {
605
632
  if (this.advancedTabIsVisible && !b(this, m, "f")) {
606
633
  // just call this once.
607
- b(this, it, "f").call(this);
608
- b(this, st, "f").call(this);
634
+ b(this, at, "f").call(this);
635
+ b(this, nt, "f").call(this);
609
636
  v(this, m, true, "f");
610
637
  }
638
+ // Register the location input for validation once it's rendered (custom mode)
639
+ if (this.locationMode === mt && !b(this, L, "f") && b(this, N, "f")) {
640
+ this.validatableControls.set(b(this, N, "f").id, {
641
+ reference: b(this, N, "f"),
642
+ hasError: false,
643
+ message: undefined
644
+ });
645
+ v(this, L, true, "f");
646
+ }
611
647
  }
612
648
  /**
613
649
  * Suspends or reactivates the shortcuts
614
650
  */ async suspendShortcuts(t) {
615
651
  if (t) {
616
- b(this, A, "f").suspend = true;
652
+ b(this, U, "f").suspend = true;
617
653
  } else {
618
- b(this, A, "f").suspend = false;
654
+ b(this, U, "f").suspend = false;
619
655
  }
620
656
  }
621
657
  render() {
622
658
  return e(s, {
623
659
  class: "widget"
624
660
  }, e("ch-theme", {
625
- model: ht
661
+ model: ct
626
662
  }), e("ch-shortcuts", {
627
663
  src: b(this, x, "f"),
628
- ref: t => v(this, A, t, "f")
664
+ ref: t => v(this, U, t, "f")
629
665
  }), e("section", {
630
666
  class: "section"
631
667
  }, e("header", {
@@ -634,8 +670,7 @@ const ut = class {
634
670
  "dialog-header-with-border": !this.isAdvanced,
635
671
  "dialog-header": this.isAdvanced,
636
672
  header: true,
637
- "header-two-cols": this.isAdvanced,
638
- "header-one-col": !this.isAdvanced,
673
+ "header-one-col": true,
639
674
  "spacing-body-block-start": true,
640
675
  "spacing-body-inline": true
641
676
  }
@@ -654,56 +689,61 @@ const ut = class {
654
689
  ref: t => v(this, E, t, "f"),
655
690
  id: "kbName",
656
691
  part: "kb-name"
657
- }), b(this, Q, "f").call(this, b(this, E, "f"))), this.isAdvanced && e("div", {
692
+ }), b(this, Z, "f").call(this, b(this, E, "f"))), this.canSetLocation && e("div", {
658
693
  class: "location-wrapper"
659
- }, e("div", {
660
- // #location
661
- class: "field field-inline location"
662
694
  }, e("label", {
663
- class: "label location-label",
664
- htmlFor: "kbLocation"
665
- }, b(this, g, "f").header.kbLocation), e("ch-edit", {
666
- // TODO add placeholder
667
- class: "input location-input",
695
+ class: "label location-label"
696
+ }, b(this, g, "f").header.kbLocation), e("ch-radio-group-render", {
697
+ class: "radio-group",
698
+ model: b(this, D, "f"),
699
+ value: vt,
700
+ onChange: b(this, lt, "f"),
701
+ ref: t => v(this, j, t, "f")
702
+ }), this.locationMode === mt && e("div", {
703
+ class: "location-custom-wrapper"
704
+ }, e("div", {
705
+ class: "location-field"
706
+ }, e("ch-edit", {
707
+ class: "input",
668
708
  value: this.kbLocation,
669
709
  ref: t => v(this, N, t, "f"),
670
710
  id: "kbLocation",
671
711
  part: "kb-location"
672
- }), b(this, Q, "f").call(this, b(this, N, "f"))), e("button", {
712
+ }), b(this, Z, "f").call(this, b(this, N, "f"))), e("button", {
673
713
  class: "button-tertiary button-icon-only location-icon",
674
714
  "aria-label": b(this, g, "f").header.selectLocationButton,
675
715
  title: b(this, g, "f").header.selectLocationButton,
676
716
  part: "button-select-location",
677
- onClick: b(this, at, "f")
717
+ onClick: b(this, ht, "f")
678
718
  }, e("ch-image", {
679
719
  class: "icon-m",
680
- src: ct
681
- })))), this.isAdvanced ? e("ch-tab-render", {
720
+ src: bt
721
+ }))))), this.isAdvanced ? e("ch-tab-render", {
682
722
  // #tab
683
723
  class: {
684
724
  scrollable: true,
685
725
  tab: true,
686
- [dt]: true
726
+ [pt]: true
687
727
  },
688
728
  tabListPosition: "block-start",
689
729
  model: b(this, M, "f"),
690
- selectedId: ft,
730
+ selectedId: gt,
691
731
  overflow: "auto",
692
732
  contain: "size",
693
- onSelectedItemChange: !this.advancedTabIsVisible && b(this, ot, "f")
733
+ onSelectedItemChange: !this.advancedTabIsVisible && b(this, rt, "f")
694
734
  }, e("div", {
695
- slot: ft,
696
- class: rt,
735
+ slot: gt,
736
+ class: ut,
697
737
  part: "tab-button-basic"
698
- }, b(this, q, "f").call(this)), this.advancedTabIsVisible && e("div", {
699
- slot: pt,
738
+ }, b(this, O, "f").call(this)), this.advancedTabIsVisible && e("div", {
739
+ slot: wt,
700
740
  class: "advanced spacing-body-inline",
701
741
  part: "tab-button-advanced"
702
- }, b(this, R, "f").call(this))) : e("div", {
703
- class: dt
742
+ }, b(this, J, "f").call(this))) : e("div", {
743
+ class: pt
704
744
  }, e("div", {
705
- class: rt
706
- }, b(this, q, "f").call(this))), e("footer", {
745
+ class: ut
746
+ }, b(this, O, "f").call(this))), e("footer", {
707
747
  class: {
708
748
  "dialog-footer": this.isAdvanced,
709
749
  "dialog-footer-with-border": !this.isAdvanced,
@@ -716,13 +756,13 @@ const ut = class {
716
756
  // #cancel
717
757
  class: "button-secondary",
718
758
  id: "button-cancel",
719
- onClick: b(this, G, "f"),
759
+ onClick: b(this, Q, "f"),
720
760
  part: "button-cancel"
721
761
  }, b(this, g, "f").footer.btnCancel), e("button", {
722
762
  // #create
723
763
  class: "button-primary",
724
764
  id: "button-create",
725
- onClick: b(this, J, "f"),
765
+ onClick: b(this, X, "f"),
726
766
  part: "button-create"
727
767
  }, b(this, g, "f").footer.btnCreate)))));
728
768
  }
@@ -748,14 +788,15 @@ const ut = class {
748
788
  m = new WeakMap, g = new WeakMap, w = new WeakMap, k = new WeakMap, y = new WeakMap,
749
789
  x = new WeakMap, M = new WeakMap, W = new WeakMap, _ = new WeakMap, F = new WeakMap,
750
790
  T = new WeakMap, I = new WeakMap, E = new WeakMap, N = new WeakMap, j = new WeakMap,
751
- D = new WeakMap, L = new WeakMap, P = new WeakMap, S = new WeakMap, C = new WeakMap,
752
- z = new WeakMap, A = new WeakMap, B = new WeakMap, K = new WeakMap, U = new WeakMap,
791
+ D = new WeakMap, L = new WeakMap, P = new WeakMap, S = new WeakMap, z = new WeakMap,
792
+ C = new WeakMap, A = new WeakMap, B = new WeakMap, K = new WeakMap, U = new WeakMap,
753
793
  V = new WeakMap, H = new WeakMap, R = new WeakMap, q = new WeakMap, G = new WeakMap,
754
794
  J = new WeakMap, O = new WeakMap, Q = new WeakMap, X = new WeakMap, Y = new WeakMap,
755
795
  Z = new WeakMap, $ = new WeakMap, tt = new WeakMap, it = new WeakMap, et = new WeakMap,
756
- st = new WeakMap, at = new WeakMap, ot = new WeakMap, nt = new WeakMap;
796
+ st = new WeakMap, at = new WeakMap, ot = new WeakMap, nt = new WeakMap, ht = new WeakMap,
797
+ lt = new WeakMap, rt = new WeakMap, dt = new WeakMap;
757
798
 
758
- ut.style = u;
799
+ kt.style = u;
759
800
 
760
- export { ut as gx_ide_new_kb };
761
- //# sourceMappingURL=p-217bd2d7.entry.js.map
801
+ export { kt as gx_ide_new_kb };
802
+ //# sourceMappingURL=p-76e1c357.entry.js.map