@genexus/genexus-ide-ui 3.2.12 → 3.2.14

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 (78) hide show
  1. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  2. package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js +24 -34
  3. package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js +12 -12
  5. package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js.map +1 -1
  6. package/dist/cjs/gx-ide-new-environment.cjs.entry.js +26 -3
  7. package/dist/cjs/gx-ide-new-environment.cjs.entry.js.map +1 -1
  8. package/dist/cjs/gx-ide-new-kb.cjs.entry.js +77 -44
  9. package/dist/cjs/gx-ide-new-kb.cjs.entry.js.map +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/collection/components/kb-manager-import/helpers.js +2 -9
  12. package/dist/collection/components/kb-manager-import/helpers.js.map +1 -1
  13. package/dist/collection/components/kb-manager-import/kb-manager-import.js +10 -3
  14. package/dist/collection/components/kb-manager-import/kb-manager-import.js.map +1 -1
  15. package/dist/collection/components/new-environment/gx-ide-assets/new-environment/langs/new-environment.lang.en.json +3 -1
  16. package/dist/collection/components/new-environment/gx-ide-assets/new-environment/langs/new-environment.lang.ja.json +3 -1
  17. package/dist/collection/components/new-environment/gx-ide-assets/new-environment/langs/new-environment.lang.zh.json +3 -1
  18. package/dist/collection/components/new-environment/new-environment.css +29 -0
  19. package/dist/collection/components/new-environment/new-environment.js +54 -17
  20. package/dist/collection/components/new-environment/new-environment.js.map +1 -1
  21. package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.en.json +9 -5
  22. package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.ja.json +7 -3
  23. package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.zh.json +9 -5
  24. package/dist/collection/components/new-kb/new-kb.css +42 -1
  25. package/dist/collection/components/new-kb/new-kb.js +77 -47
  26. package/dist/collection/components/new-kb/new-kb.js.map +1 -1
  27. package/dist/collection/components/team-dev/create-kb-from-server/create-kb-from-server.js +25 -36
  28. package/dist/collection/components/team-dev/create-kb-from-server/create-kb-from-server.js.map +1 -1
  29. package/dist/collection/components/team-dev/create-kb-from-server/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.en.json +0 -2
  30. package/dist/collection/components/team-dev/create-kb-from-server/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.ja.json +0 -2
  31. package/dist/collection/components/team-dev/create-kb-from-server/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.zh.json +0 -2
  32. package/dist/components/gx-ide-create-kb-from-server.js +24 -35
  33. package/dist/components/gx-ide-create-kb-from-server.js.map +1 -1
  34. package/dist/components/gx-ide-kb-manager-import.js +12 -12
  35. package/dist/components/gx-ide-kb-manager-import.js.map +1 -1
  36. package/dist/components/gx-ide-new-environment.js +27 -4
  37. package/dist/components/gx-ide-new-environment.js.map +1 -1
  38. package/dist/components/gx-ide-new-kb.js +85 -46
  39. package/dist/components/gx-ide-new-kb.js.map +1 -1
  40. package/dist/esm/genexus-ide-ui.js +1 -1
  41. package/dist/esm/gx-ide-create-kb-from-server.entry.js +24 -34
  42. package/dist/esm/gx-ide-create-kb-from-server.entry.js.map +1 -1
  43. package/dist/esm/gx-ide-kb-manager-import.entry.js +12 -12
  44. package/dist/esm/gx-ide-kb-manager-import.entry.js.map +1 -1
  45. package/dist/esm/gx-ide-new-environment.entry.js +26 -3
  46. package/dist/esm/gx-ide-new-environment.entry.js.map +1 -1
  47. package/dist/esm/gx-ide-new-kb.entry.js +77 -44
  48. package/dist/esm/gx-ide-new-kb.entry.js.map +1 -1
  49. package/dist/esm/loader.js +1 -1
  50. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  51. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
  52. package/dist/genexus-ide-ui/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.en.json +0 -2
  53. package/dist/genexus-ide-ui/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.ja.json +0 -2
  54. package/dist/genexus-ide-ui/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.zh.json +0 -2
  55. package/dist/genexus-ide-ui/gx-ide-assets/new-environment/langs/new-environment.lang.en.json +3 -1
  56. package/dist/genexus-ide-ui/gx-ide-assets/new-environment/langs/new-environment.lang.ja.json +3 -1
  57. package/dist/genexus-ide-ui/gx-ide-assets/new-environment/langs/new-environment.lang.zh.json +3 -1
  58. package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.en.json +9 -5
  59. package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.ja.json +7 -3
  60. package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.zh.json +9 -5
  61. package/dist/genexus-ide-ui/{p-cf61384e.entry.js → p-2164c3a8.entry.js} +154 -167
  62. package/dist/genexus-ide-ui/p-2164c3a8.entry.js.map +1 -0
  63. package/dist/genexus-ide-ui/{p-7cd24b82.entry.js → p-806c5dcb.entry.js} +58 -47
  64. package/dist/genexus-ide-ui/p-806c5dcb.entry.js.map +1 -0
  65. package/dist/genexus-ide-ui/{p-5727fce7.entry.js → p-8f4af976.entry.js} +222 -184
  66. package/dist/genexus-ide-ui/p-8f4af976.entry.js.map +1 -0
  67. package/dist/genexus-ide-ui/{p-eeae9dd5.entry.js → p-95cf766b.entry.js} +401 -345
  68. package/dist/genexus-ide-ui/p-95cf766b.entry.js.map +1 -0
  69. package/dist/types/components/kb-manager-import/helpers.d.ts +1 -1
  70. package/dist/types/components/new-environment/new-environment.d.ts +8 -3
  71. package/dist/types/components/new-kb/new-kb.d.ts +5 -1
  72. package/dist/types/components/team-dev/create-kb-from-server/create-kb-from-server.d.ts +0 -1
  73. package/dist/types/components.d.ts +8 -0
  74. package/package.json +1 -1
  75. package/dist/genexus-ide-ui/p-5727fce7.entry.js.map +0 -1
  76. package/dist/genexus-ide-ui/p-7cd24b82.entry.js.map +0 -1
  77. package/dist/genexus-ide-ui/p-cf61384e.entry.js.map +0 -1
  78. package/dist/genexus-ide-ui/p-eeae9dd5.entry.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { r as t, g as i, h as s, H as e, a } from "./p-9b9ccd0c.js";
1
+ import { r as i, g as t, h as s, H as e, a } from "./p-9b9ccd0c.js";
2
2
 
3
3
  import { g as o } from "./p-d42e842b.js";
4
4
 
@@ -16,71 +16,79 @@ import { L as l } from "./p-311eedf3.js";
16
16
 
17
17
  import { s as r, g as h } from "./p-91e2ebb0.js";
18
18
 
19
- import { r as d, m as c } from "./p-4d330836.js";
19
+ import { r as c, m as d } from "./p-4d330836.js";
20
20
 
21
21
  import { v as f } from "./p-b32b6b1f.js";
22
22
 
23
23
  import { r as u } from "./p-1252519a.js";
24
24
 
25
- const p = ':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}.basic,.advanced{padding-block-start:12px;overflow:auto;block-size:100%}.kb-storage-card{display:flex;flex-direction:column;gap:var(--spacing-gap-l);padding-inline:var(--spacing-padding-xl)}.kb-storage-card__header{display:flex;align-items:center;gap:var(--spacing-gap-s);padding-block-end:var(--spacing-padding-m);border-bottom:1px solid var(--color-border-surface-on-elevation-1)}.kb-storage-card__heading{display:flex;flex-direction:column;gap:var(--spacing-gap-xs);min-inline-size:0}.kb-storage-card__title{margin:0;color:var(--color-text-neutral-default)}.kb-storage-card__grid{display:grid;grid-template-columns:1fr 1fr;column-gap:var(--spacing-gap-xl);row-gap:var(--spacing-gap-l)}.kb-storage-column{display:flex;flex-direction:column;gap:var(--spacing-gap-m);min-inline-size:0}.kb-storage-column__title{display:flex;align-items:center;gap:var(--spacing-gap-s);color:var(--color-text-neutral-disabled);text-transform:uppercase;letter-spacing:0.04em}.kb-storage-column__title-text{white-space:nowrap}.kb-storage-column__title-rule{flex:1;block-size:1px;background-color:var(--color-border-surface-on-elevation-1)}.field-group--stacked{display:flex;flex-direction:column;gap:var(--spacing-gap-m)}.server-name-wrapper{display:grid;grid-template-columns:1fr max-content;gap:var(--spacing-gap-xs);min-inline-size:0}.kb-storage-credentials{display:flex;flex-direction:column;gap:var(--spacing-gap-m)}.kb-storage-callout{display:flex;flex-direction:row;gap:var(--spacing-gap-xs);padding:var(--spacing-padding-m);border:1px solid var(--color-border-surface-on-elevation-2);border-radius:var(--border-radius-s);background-color:var(--color-accent-surface-elevation-2)}.kb-storage-callout-inner{display:flex;flex-direction:column}.kb-storage-callout__title{display:flex;gap:var(--spacing-gap-xs)}.kb-storage-callout__description{color:var(--color-text-neutral-disabled)}.text-align-center{text-align:center}.tab::part(page){scrollbar-width:thin}.tab::part(tab-list block-start){padding-inline:var(--spacing-padding-xl)}.checkbox{inline-size:max-content}.footer.dialog-footer-with-border{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-gap-m)}.footer.dialog-footer-with-border>.buttons-spacer{margin-inline-start:auto}.connection-status--connecting{color:var(--color-text-neutral-disabled)}.connection-status--success{color:var(--color-text-success-default)}.connection-status--failed{color:var(--color-text-error-default)}';
25
+ const p = ':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 .field-inline{grid-template-columns:4.5rem 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}.main__front-end>.kb-storage-callout{margin-block-start:var(--spacing-gap-m)}.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}.basic,.advanced{padding-block-start:12px;overflow:auto;block-size:100%}.advanced-loader{position:relative;display:block;inline-size:100%;block-size:100%}.kb-storage-card{display:flex;flex-direction:column;gap:var(--spacing-gap-l);padding-inline:var(--spacing-padding-xl)}.kb-storage-card__header{display:flex;align-items:center;gap:var(--spacing-gap-s);padding-block-end:var(--spacing-padding-m);border-bottom:1px solid var(--color-border-surface-on-elevation-1)}.kb-storage-card__heading{display:flex;flex-direction:column;gap:var(--spacing-gap-xs);min-inline-size:0}.kb-storage-card__title{margin:0;color:var(--color-text-neutral-default)}.kb-storage-card__grid{display:grid;grid-template-columns:1fr 1fr;column-gap:var(--spacing-gap-xl);row-gap:var(--spacing-gap-l)}.kb-storage-column{display:flex;flex-direction:column;gap:var(--spacing-gap-m);min-inline-size:0}.kb-storage-column__title{display:flex;align-items:center;gap:var(--spacing-gap-s);color:var(--color-text-neutral-disabled);text-transform:uppercase;letter-spacing:0.04em}.kb-storage-column__title-text{white-space:nowrap}.kb-storage-column__title-rule{flex:1;block-size:1px;background-color:var(--color-border-surface-on-elevation-1)}.field-group--stacked{display:flex;flex-direction:column;gap:var(--spacing-gap-m)}.server-name-wrapper{display:grid;grid-template-columns:1fr max-content;gap:var(--spacing-gap-xs);min-inline-size:0}.kb-storage-credentials{display:flex;flex-direction:column;gap:var(--spacing-gap-m)}.kb-storage-callout{display:flex;flex-direction:row;gap:var(--spacing-gap-xs);padding:var(--spacing-padding-m);border:1px solid var(--color-border-surface-on-elevation-2);border-radius:var(--border-radius-s);background-color:var(--color-accent-surface-elevation-2)}.kb-storage-callout-inner{display:flex;flex-direction:column}.kb-storage-callout__title{display:flex;gap:var(--spacing-gap-xs)}.kb-storage-callout__description{color:var(--color-text-neutral-disabled)}.text-align-center{text-align:center}.tab::part(page){scrollbar-width:thin}.tab::part(tab-list block-start){padding-inline:var(--spacing-padding-xl)}.checkbox{inline-size:max-content}.footer.dialog-footer-with-border{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-gap-m)}.footer.dialog-footer-with-border>.buttons-spacer{margin-inline-start:auto}.connection-status{display:inline-flex;align-items:center;gap:var(--spacing-gap-xs)}.connection-status__spinner{display:inline-block;flex-shrink:0;width:var(--icon-s);height:var(--icon-s);border:calc(var(--icon-s) / 7) solid var(--color-accent-primary-pressed);border-top:calc(var(--icon-s) / 7) solid var(--color-border-primary-on-default);border-radius:50%;animation:spin var(--timing-regular) linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.connection-status--connecting{color:var(--color-accent-primary-on-default)}.connection-status--success{color:var(--color-text-success-default)}.connection-status--failed{color:var(--color-text-error-default)}';
26
26
 
27
- var b = undefined && undefined.__classPrivateFieldGet || function(t, i, s, e) {
27
+ var b = undefined && undefined.__classPrivateFieldGet || function(i, t, s, e) {
28
28
  if (s === "a" && !e) throw new TypeError("Private accessor was defined without a getter");
29
- if (typeof i === "function" ? t !== i || !e : !i.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
30
- return s === "m" ? e : s === "a" ? e.call(t) : e ? e.value : i.get(t);
29
+ if (typeof t === "function" ? i !== t || !e : !t.has(i)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
30
+ return s === "m" ? e : s === "a" ? e.call(i) : e ? e.value : t.get(i);
31
31
  };
32
32
 
33
- var v = undefined && undefined.__classPrivateFieldSet || function(t, i, s, e, a) {
33
+ var g = undefined && undefined.__classPrivateFieldSet || function(i, t, s, e, a) {
34
34
  if (e === "m") throw new TypeError("Private method is not writable");
35
35
  if (e === "a" && !a) throw new TypeError("Private accessor was defined without a setter");
36
- 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");
37
- return e === "a" ? a.call(t, s) : a ? a.value = s : i.set(t, s), s;
36
+ if (typeof t === "function" ? i !== t || !a : !t.has(i)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
37
+ return e === "a" ? a.call(i, s) : a ? a.value = s : t.set(i, s), s;
38
38
  };
39
39
 
40
- var g, m, k, w, y, x, _, M, W, I, T, E, D, F, j, L, N, z, C, S, P, A, B, $, K, U, H, O, V, G, Q, R, X, q, J, Y, Z, tt, it, st, et, at, ot, nt, lt, rt, ht, dt, ct, ft, ut, pt, bt, vt, gt, mt, kt, wt;
40
+ var v, m, k, w, y, x, _, M, W, I, T, E, F, z, D, L, j, N, S, C, P, A, B, $, K, U, H, O, V, G, Q, R, X, q, J, Y, Z, ii, ti, si, ei, ai, oi, ni, li, ri, hi, ci, di, fi, ui, pi, bi, gi, vi, mi, ki;
41
41
 
42
- const yt = [ "resets/box-sizing", "components/tab", "components/tooltip", "utils/form--full", "utils/layout", "utils/typography", "utils/spacing", "chameleon/scrollbar" ];
42
+ const wi = [ "resets/box-sizing", "components/tab", "components/tooltip", "utils/form--full", "utils/layout", "utils/typography", "utils/spacing", "chameleon/scrollbar" ];
43
43
 
44
- const xt = "WINDOWS_AUTHENTICATION";
44
+ const yi = "WINDOWS_AUTHENTICATION";
45
45
 
46
- const _t = "(LocalDB)\\MSSQLLocalDB";
46
+ const xi = "(LocalDB)\\MSSQLLocalDB";
47
47
 
48
- const Mt = "main";
48
+ const _i = "main";
49
49
 
50
- const Wt = "basic";
50
+ const Mi = "basic";
51
51
 
52
- const It = o({
52
+ const Wi = o({
53
53
  category: "system",
54
54
  name: "folder",
55
55
  colorType: "primary"
56
56
  });
57
57
 
58
- const Tt = o({
58
+ const Ii = o({
59
59
  category: "system",
60
60
  name: "warning",
61
61
  colorType: "on-interactive"
62
62
  });
63
63
 
64
- const Et = o({
64
+ const Ti = o({
65
65
  category: "system",
66
66
  name: "database",
67
67
  colorType: "primary"
68
68
  });
69
69
 
70
- const Dt = "default";
70
+ const Ei = o({
71
+ category: "system",
72
+ name: "check-circle",
73
+ colorType: "success"
74
+ });
71
75
 
72
- const Ft = "custom";
76
+ const Fi = o({
77
+ category: "system",
78
+ name: "warning",
79
+ colorType: "error"
80
+ });
73
81
 
74
- const jt = "GX_KB_";
82
+ const zi = "GX_KB_";
75
83
 
76
- const Lt = "basic";
84
+ const Di = "basic";
77
85
 
78
- const Nt = "advanced";
86
+ const Li = "advanced";
79
87
 
80
- const zt = class {
88
+ const ji = class {
81
89
  constructor(e) {
82
- t(this, e);
83
- g.set(this, false);
90
+ i(this, e);
91
+ v.set(this, false);
84
92
  /**
85
93
  * The component hard-coded strings translations.
86
94
  */
@@ -93,155 +101,171 @@ const zt = class {
93
101
  k.set(this, new Map);
94
102
  w.set(this, void 0);
95
103
  y.set(this, void 0);
96
- x.set(this, i(`./gx-ide-assets/new-kb/shortcuts.json`));
104
+ x.set(this, t(`./gx-ide-assets/new-kb/shortcuts.json`));
97
105
  _.set(this, []);
98
106
  /* References needed to collect data con "Create" button submit*/ M.set(this, void 0);
99
107
  W.set(this, void 0);
100
108
  I.set(this, void 0);
101
109
  T.set(this, void 0);
102
110
  E.set(this, void 0);
103
- D.set(this, void 0);
104
111
  F.set(this, void 0);
112
+ z.set(this, void 0);
113
+ D.set(this, false);
114
+ L.set(this, false);
105
115
  j.set(this, void 0);
106
- L.set(this, void 0);
107
- N.set(this, false);
108
- z.set(this, false);
109
- C.set(this, void 0);
116
+ N.set(this, void 0);
110
117
  S.set(this, void 0);
118
+ C.set(this, void 0);
111
119
  P.set(this, void 0);
112
120
  A.set(this, void 0);
113
121
  B.set(this, void 0);
114
- $.set(this, void 0);
122
+ /**
123
+ * Monotonic id of the latest collations request. Used to discard stale
124
+ * responses: a slow request for an invalid instance can resolve after a
125
+ * newer request for a valid instance, and without this guard it would
126
+ * overwrite the UI with the wrong (failed) result.
127
+ */ $.set(this, 0);
115
128
  K.set(this, void 0);
116
- U.set(this, void 0);
117
- H.set(this, (t => `${jt}${t !== null && t !== void 0 ? t : ""}`));
118
- O.set(this, (t => {
119
- var i, s;
120
- const e = (i = t.detail) !== null && i !== void 0 ? i : (s = b(this, D, "f")) === null || s === void 0 ? void 0 : s.value;
121
- this.databaseNameValue = b(this, H, "f").call(this, e);
129
+ U.set(this, (i => `${zi}${i !== null && i !== void 0 ? i : ""}`));
130
+ H.set(this, (i => {
131
+ var t, s;
132
+ const e = (t = i.detail) !== null && t !== void 0 ? t : (s = b(this, F, "f")) === null || s === void 0 ? void 0 : s.value;
133
+ this.databaseNameValue = b(this, U, "f").call(this, e);
122
134
  }));
123
- V.set(this, (t => {
124
- var i, s;
125
- this.databaseNameValue = (i = t.detail) !== null && i !== void 0 ? i : (s = b(this, T, "f")) === null || s === void 0 ? void 0 : s.value;
135
+ O.set(this, (i => {
136
+ var t, s;
137
+ this.databaseNameValue = (t = i.detail) !== null && t !== void 0 ? t : (s = b(this, T, "f")) === null || s === void 0 ? void 0 : s.value;
126
138
  }));
127
- G.set(this, (async t => {
128
- this.authenticationTypeValue = t === null || t === void 0 ? void 0 : t.detail;
139
+ V.set(this, (async i => {
140
+ this.authenticationTypeValue = i === null || i === void 0 ? void 0 : i.detail;
129
141
  this.collations = [];
130
142
  this.defaultCollation = undefined;
131
143
  this.connectionStatus = undefined;
132
- await b(this, tt, "f").call(this);
144
+ await b(this, Z, "f").call(this);
133
145
  }));
134
- Q.set(this, (async () => {
135
- var t, i, s, e;
136
- this.userNameValue = (i = (t = b(this, K, "f")) === null || t === void 0 ? void 0 : t.value) !== null && i !== void 0 ? i : "";
137
- this.passwordValue = (e = (s = b(this, C, "f")) === null || s === void 0 ? void 0 : s.value) !== null && e !== void 0 ? e : "";
138
- await b(this, tt, "f").call(this);
146
+ G.set(this, (async () => {
147
+ var i, t, s, e;
148
+ this.userNameValue = (t = (i = b(this, B, "f")) === null || i === void 0 ? void 0 : i.value) !== null && t !== void 0 ? t : "";
149
+ this.passwordValue = (e = (s = b(this, j, "f")) === null || s === void 0 ? void 0 : s.value) !== null && e !== void 0 ? e : "";
150
+ await b(this, Z, "f").call(this);
139
151
  }));
140
- R.set(this, (async () => {
152
+ Q.set(this, (async () => {
141
153
  if (!this.browseForMoreCallback) {
142
154
  return;
143
155
  }
144
156
  this.browseForMoreDialogOpen = true;
145
157
  try {
146
- const t = await this.browseForMoreCallback();
147
- if (t) {
148
- this.serverNameValue = t;
149
- if (b(this, B, "f")) {
150
- b(this, B, "f").value = t;
158
+ const i = await this.browseForMoreCallback();
159
+ if (i) {
160
+ this.serverNameValue = i;
161
+ if (b(this, P, "f")) {
162
+ b(this, P, "f").value = i;
151
163
  }
152
- await b(this, X, "f").call(this, new CustomEvent("change", {
153
- detail: t
164
+ await b(this, R, "f").call(this, new CustomEvent("change", {
165
+ detail: i
154
166
  }));
155
167
  }
156
- } catch (t) {} finally {
168
+ } catch (i) {} finally {
157
169
  this.browseForMoreDialogOpen = false;
158
170
  }
159
171
  }));
160
- X.set(this, (async t => {
161
- var i, s;
162
- const e = (i = t === null || t === void 0 ? void 0 : t.detail) !== null && i !== void 0 ? i : (s = t.target) === null || s === void 0 ? void 0 : s.value;
172
+ R.set(this, (async i => {
173
+ var t, s;
174
+ const e = (t = i === null || i === void 0 ? void 0 : i.detail) !== null && t !== void 0 ? t : (s = i.target) === null || s === void 0 ? void 0 : s.value;
163
175
  this.serverNameValue = e !== null && e !== void 0 ? e : "";
164
- b(this, Z, "f").call(this);
165
- await b(this, tt, "f").call(this);
176
+ b(this, Y, "f").call(this);
177
+ await b(this, Z, "f").call(this);
166
178
  }));
167
- q.set(this, (t => {
168
- var i;
169
- if (!t) {
179
+ X.set(this, (i => {
180
+ var t;
181
+ if (!i) {
170
182
  return "empty";
171
183
  }
172
- if (t.toLowerCase() === _t.toLowerCase()) {
184
+ if (i.toLowerCase() === xi.toLowerCase()) {
173
185
  return "localdb";
174
186
  }
175
- const s = ((i = this.serverInstances) !== null && i !== void 0 ? i : []).some((i => {
187
+ const s = ((t = this.serverInstances) !== null && t !== void 0 ? t : []).some((t => {
176
188
  var s;
177
- return ((s = i.label) === null || s === void 0 ? void 0 : s.toLowerCase()) === t.toLowerCase();
189
+ return ((s = t.label) === null || s === void 0 ? void 0 : s.toLowerCase()) === i.toLowerCase();
178
190
  }));
179
191
  return s ? "local" : "remote";
180
192
  }));
181
- J.set(this, (() => {
182
- const t = b(this, q, "f").call(this, this.serverNameValue);
183
- return t === "localdb" || t === "remote" || t === "empty";
193
+ q.set(this, (() => {
194
+ const i = b(this, X, "f").call(this, this.serverNameValue);
195
+ return i === "localdb" || i === "remote" || i === "empty";
184
196
  }));
185
- Y.set(this, (() => {
186
- const t = this.authenticationTypeValue;
187
- if (!t || t === xt) {
197
+ J.set(this, (() => {
198
+ const i = this.authenticationTypeValue;
199
+ if (!i || i === yi) {
188
200
  return false;
189
201
  }
190
202
  return !this.userNameValue || !this.passwordValue;
191
203
  }));
192
- Z.set(this, (() => {
193
- const t = b(this, q, "f").call(this, this.serverNameValue);
194
- if (t === "local" || t === "localdb") {
204
+ Y.set(this, (() => {
205
+ const i = b(this, X, "f").call(this, this.serverNameValue);
206
+ if (i === "local" || i === "localdb") {
195
207
  this.createDataFilesInKBFolder = true;
196
- } else if (t === "remote") {
208
+ } else if (i === "remote") {
197
209
  this.createDataFilesInKBFolder = false;
198
210
  }
199
211
  }));
200
- tt.set(this, (async () => {
201
- var t, i, s, e;
202
- const a = this.serverNameValue;
203
- if (!a || !this.getCollationsForInstanceCallback || this.connectionStatus === "connecting") {
212
+ Z.set(this, (async () => {
213
+ var i, t, s, e;
214
+ var a;
215
+ const o = this.serverNameValue;
216
+ if (!o || !this.getCollationsForInstanceCallback) {
204
217
  return;
205
218
  }
206
- const o = this.authenticationTypeValue;
207
- const n = o === xt;
208
- const l = n ? undefined : (t = b(this, K, "f")) === null || t === void 0 ? void 0 : t.value;
209
- const r = n ? undefined : (i = b(this, C, "f")) === null || i === void 0 ? void 0 : i.value;
210
- if (!n && o && (!l || !r)) {
219
+ const n = this.authenticationTypeValue;
220
+ const l = n === yi;
221
+ const r = l ? undefined : (i = b(this, B, "f")) === null || i === void 0 ? void 0 : i.value;
222
+ const h = l ? undefined : (t = b(this, j, "f")) === null || t === void 0 ? void 0 : t.value;
223
+ if (!l && n && (!r || !h)) {
211
224
  return;
212
225
  }
226
+ // Tag this request so we can ignore its response if a newer request is
227
+ // fired before it resolves (e.g. the user fixes an invalid server name
228
+ // while the slow request for the invalid one is still pending).
229
+ const c = g(this, $, (a = b(this, $, "f"), ++a), "f");
213
230
  this.connectionStatus = "connecting";
214
231
  try {
215
- const t = await this.getCollationsForInstanceCallback(a, o, l, r);
216
- if (t) {
217
- this.collations = (s = t.collations) !== null && s !== void 0 ? s : [];
218
- this.defaultCollation = (e = t.defaultCollation) !== null && e !== void 0 ? e : undefined;
232
+ const i = await this.getCollationsForInstanceCallback(o, n, r, h);
233
+ if (c !== b(this, $, "f")) {
234
+ // A newer request superseded this one; discard the stale response.
235
+ return;
236
+ }
237
+ if (i) {
238
+ this.collations = (s = i.collations) !== null && s !== void 0 ? s : [];
239
+ this.defaultCollation = (e = i.defaultCollation) !== null && e !== void 0 ? e : undefined;
219
240
  this.connectionStatus = "success";
220
241
  } else {
221
242
  this.collations = [];
222
243
  this.defaultCollation = undefined;
223
244
  this.connectionStatus = "failed";
224
245
  }
225
- } catch (t) {
246
+ } catch (i) {
247
+ if (c !== b(this, $, "f")) {
248
+ return;
249
+ }
226
250
  this.collations = [];
227
251
  this.defaultCollation = undefined;
228
252
  this.connectionStatus = "failed";
229
253
  }
230
254
  }));
231
- it.set(this, (t => {
232
- v(this, w, t.detail, "f");
233
- b(this, ft, "f").call(this);
234
- b(this, wt, "f").call(this);
255
+ ii.set(this, (i => {
256
+ g(this, w, i.detail, "f");
257
+ b(this, fi, "f").call(this);
258
+ b(this, ki, "f").call(this);
235
259
  }));
236
- st.set(this, (async () => {
237
- await b(this, ct, "f").call(this);
238
- b(this, ft, "f").call(this);
260
+ ti.set(this, (async () => {
261
+ await b(this, di, "f").call(this);
262
+ b(this, fi, "f").call(this);
239
263
  }));
240
- et.set(this, (() => {
241
- v(this, y, b(this, E, "f").value, "f");
264
+ si.set(this, (() => {
265
+ g(this, y, b(this, E, "f").value, "f");
242
266
  }));
243
- at.set(this, (() => {
244
- const t = this.authenticationTypeValue !== xt;
267
+ ei.set(this, (() => {
268
+ const i = this.authenticationTypeValue !== yi;
245
269
  return [ s("section", {
246
270
  class: "kb-storage-card",
247
271
  part: "kb-storage-card"
@@ -274,29 +298,29 @@ const zt = class {
274
298
  }, s("ch-combo-box-render", {
275
299
  class: "combo-box",
276
300
  value: this.serverNameValue,
277
- ref: t => v(this, B, t, "f"),
301
+ ref: i => g(this, P, i, "f"),
278
302
  id: "serverName",
279
303
  part: "server-name",
280
304
  model: this.serverInstancesComboBoxModel,
281
305
  suggest: true,
282
306
  suggestDebounce: n.inputDebounce,
283
- onInput: b(this, X, "f"),
284
- onChange: b(this, X, "f")
307
+ onInput: b(this, R, "f"),
308
+ onChange: b(this, R, "f")
285
309
  }), s("button", {
286
310
  class: "button-tertiary button-icon-only",
287
311
  "aria-label": b(this, m, "f").tabAdvanced.serverName.browseForMore,
288
312
  part: "button-browse-for-more",
289
- onClick: b(this, R, "f")
313
+ onClick: b(this, Q, "f")
290
314
  }, s("ch-image", {
291
315
  class: "icon-m",
292
- src: Et
316
+ src: Ti
293
317
  }), !this.browseForMoreDialogOpen && s("ch-tooltip", {
294
318
  class: "tooltip",
295
319
  actionElement: null,
296
320
  blockAlign: "outside-start",
297
321
  inlineAlign: "center",
298
322
  delay: n.tooltipSettings.delay
299
- }, b(this, m, "f").tabAdvanced.serverName.browseForMore))), b(this, rt, "f").call(this, b(this, B, "f"))), s("div", {
323
+ }, b(this, m, "f").tabAdvanced.serverName.browseForMore))), b(this, li, "f").call(this, b(this, P, "f"))), s("div", {
300
324
  class: "field field-block database-field"
301
325
  }, s("label", {
302
326
  class: "label",
@@ -306,9 +330,9 @@ const zt = class {
306
330
  value: this.databaseNameValue,
307
331
  id: "databaseName",
308
332
  part: "database-name",
309
- onInput: b(this, V, "f"),
310
- ref: t => v(this, T, t, "f")
311
- }), b(this, rt, "f").call(this, b(this, T, "f"))), s("div", {
333
+ onInput: b(this, O, "f"),
334
+ ref: i => g(this, T, i, "f")
335
+ }), b(this, li, "f").call(this, b(this, T, "f"))), s("div", {
312
336
  class: "field field-block collation-field"
313
337
  }, s("label", {
314
338
  class: "label",
@@ -318,19 +342,19 @@ const zt = class {
318
342
  disabled: !this.serverNameValue || this.collations.length === 0,
319
343
  placeholder: this.collations.length === 0 ? b(this, m, "f").tabAdvanced.collation.disabledPlaceholder : "",
320
344
  value: this.defaultCollation,
321
- ref: t => v(this, W, t, "f"),
345
+ ref: i => g(this, W, i, "f"),
322
346
  model: this.collationsComboBoxModel,
323
347
  id: "collation",
324
348
  part: "collation"
325
- }), b(this, rt, "f").call(this, b(this, W, "f"))), s("ch-checkbox", {
349
+ }), b(this, li, "f").call(this, b(this, W, "f"))), s("ch-checkbox", {
326
350
  class: "checkbox",
327
351
  checkedValue: "true",
328
352
  value: this.createDataFilesInKBFolder ? "true" : undefined,
329
- disabled: b(this, J, "f").call(this),
353
+ disabled: b(this, q, "f").call(this),
330
354
  caption: b(this, m, "f").tabAdvanced.createDataFilesInKbFolder,
331
355
  part: "create-data-in-kb",
332
356
  id: "createDataFilesInKBFolder",
333
- ref: t => v(this, I, t, "f")
357
+ ref: i => g(this, I, i, "f")
334
358
  }))), s("div", {
335
359
  class: "kb-storage-column"
336
360
  }, s("div", {
@@ -352,12 +376,12 @@ const zt = class {
352
376
  disabled: this.authenticationTypes.length === 0,
353
377
  placeholder: this.authenticationTypes.length === 0 ? b(this, m, "f").tabAdvanced.authenticationType.disabledPlaceholder : "",
354
378
  value: this.authenticationTypeValue,
355
- ref: t => v(this, M, t, "f"),
379
+ ref: i => g(this, M, i, "f"),
356
380
  model: this.authenticationTypesComboBoxModel,
357
381
  id: "authenticationType",
358
382
  part: "authentication-type",
359
- onInput: this.authenticationTypes.length > 0 ? b(this, G, "f") : undefined
360
- }), b(this, rt, "f").call(this, b(this, M, "f"))), t ? s("div", {
383
+ onInput: this.authenticationTypes.length > 0 ? b(this, V, "f") : undefined
384
+ }), b(this, li, "f").call(this, b(this, M, "f"))), i ? s("div", {
361
385
  class: "kb-storage-credentials"
362
386
  }, s("div", {
363
387
  class: "field field-block username-field"
@@ -369,10 +393,10 @@ const zt = class {
369
393
  value: this.userName,
370
394
  id: "userName",
371
395
  part: "user-name",
372
- ref: t => v(this, K, t, "f"),
373
- onInput: b(this, Q, "f"),
396
+ ref: i => g(this, B, i, "f"),
397
+ onInput: b(this, G, "f"),
374
398
  debounce: n.inputDebounce
375
- }), b(this, rt, "f").call(this, b(this, K, "f"))), s("div", {
399
+ }), b(this, li, "f").call(this, b(this, B, "f"))), s("div", {
376
400
  class: "field field-block password-field"
377
401
  }, s("label", {
378
402
  class: "label",
@@ -384,24 +408,24 @@ const zt = class {
384
408
  value: this.password,
385
409
  id: "password",
386
410
  part: "password",
387
- ref: t => v(this, C, t, "f"),
388
- onInput: b(this, Q, "f"),
411
+ ref: i => g(this, j, i, "f"),
412
+ onInput: b(this, G, "f"),
389
413
  debounce: n.inputDebounce
390
- }), b(this, rt, "f").call(this, b(this, C, "f"))), s("ch-checkbox", {
414
+ }), b(this, li, "f").call(this, b(this, j, "f"))), s("ch-checkbox", {
391
415
  class: "checkbox",
392
416
  checkedValue: "password",
393
417
  value: "password",
394
418
  caption: b(this, m, "f").tabAdvanced.savePassword,
395
419
  part: "save-password",
396
420
  id: "savePassword",
397
- ref: t => v(this, A, t, "f"),
421
+ ref: i => g(this, C, i, "f"),
398
422
  disabled: true
399
423
  })) : s("div", {
400
424
  class: "kb-storage-callout",
401
425
  part: "windows-auth-callout"
402
426
  }, s("ch-image", {
403
427
  class: "icon-l",
404
- src: Tt,
428
+ src: Ii,
405
429
  type: "mask"
406
430
  }), s("div", {
407
431
  class: "kb-storage-callout-inner"
@@ -411,7 +435,7 @@ const zt = class {
411
435
  class: "kb-storage-callout__description body-regular-xs"
412
436
  }, b(this, m, "f").tabAdvanced.windowsAuthCalloutDescription))))))) ];
413
437
  }));
414
- ot.set(this, (() => [ s("section", {
438
+ ai.set(this, (() => [ s("section", {
415
439
  class: "basic__header field-group dialog-header-with-border spacing-body-inline"
416
440
  }, s("div", {
417
441
  // #prototyping target
@@ -427,9 +451,9 @@ const zt = class {
427
451
  placeholder: this.prototypingTargets.length === 0 ? b(this, m, "f").tabBasic.prototypingTarget.disabledPlaceholder : "",
428
452
  value: this.prototypingTargetsInitialValue,
429
453
  model: this.prototypingTargetsComboBoxModel,
430
- onInput: this.prototypingTargets.length > 0 ? b(this, st, "f") : undefined,
431
- ref: t => v(this, P, t, "f")
432
- }), b(this, rt, "f").call(this, b(this, P, "f"))), s("div", {
454
+ onInput: this.prototypingTargets.length > 0 ? b(this, ti, "f") : undefined,
455
+ ref: i => g(this, S, i, "f")
456
+ }), b(this, li, "f").call(this, b(this, S, "f"))), s("div", {
433
457
  // #user interface
434
458
  class: "field field-block user-interface-language"
435
459
  }, s("label", {
@@ -440,11 +464,11 @@ const zt = class {
440
464
  disabled: this.userInterfaceLanguages.length === 0,
441
465
  placeholder: this.userInterfaceLanguages.length === 0 ? b(this, m, "f").tabBasic.userInterfaceLanguage.disabledPlaceholder : "",
442
466
  value: this.userInterfaceLanguagesInitialValue,
443
- ref: t => v(this, $, t, "f"),
467
+ ref: i => g(this, A, i, "f"),
444
468
  model: this.userInterfaceLanguagesComboBoxModel,
445
469
  id: "userInterfaceLanguage",
446
470
  part: "user-interface-language"
447
- }), b(this, rt, "f").call(this, b(this, $, "f")))), s("section", {
471
+ }), b(this, li, "f").call(this, b(this, A, "f")))), s("section", {
448
472
  class: "section__back-end"
449
473
  }, s("h2", {
450
474
  // back end
@@ -462,12 +486,12 @@ const zt = class {
462
486
  disabled: this.defaultPrototypingEnvironments.length === 0,
463
487
  placeholder: this.defaultPrototypingEnvironments.length === 0 ? b(this, m, "f").tabBasic.backEnd.prototypingEnvironment.disabledPlaceholder : "",
464
488
  value: b(this, w, "f"),
465
- ref: t => v(this, S, t, "f"),
489
+ ref: i => g(this, N, i, "f"),
466
490
  model: this.prototypingEnvironmentsComboBoxModel,
467
- onInput: b(this, it, "f"),
491
+ onInput: b(this, ii, "f"),
468
492
  part: "prototyping-environment",
469
493
  id: "prototypingEnvironment"
470
- }), b(this, rt, "f").call(this, b(this, S, "f"))), s("div", {
494
+ }), b(this, li, "f").call(this, b(this, N, "f"))), s("div", {
471
495
  // #data source
472
496
  class: "field field-block"
473
497
  }, s("label", {
@@ -478,170 +502,194 @@ const zt = class {
478
502
  disabled: this.defaultDataSources.length === 0,
479
503
  placeholder: this.defaultDataSources.length === 0 ? b(this, m, "f").tabBasic.backEnd.dataSource.disabledPlaceholder : "",
480
504
  value: b(this, y, "f"),
481
- ref: t => v(this, E, t, "f"),
482
- onInput: b(this, et, "f"),
505
+ ref: i => g(this, E, i, "f"),
506
+ onInput: b(this, si, "f"),
483
507
  model: this.defaultDataSourcesComboBoxModel,
484
508
  part: "data-source",
485
509
  id: "dataSource"
486
- }), b(this, rt, "f").call(this, b(this, E, "f"))))), s("section", {
510
+ }), b(this, li, "f").call(this, b(this, E, "f"))))), s("section", {
487
511
  class: "section__front-end"
488
512
  }, s("h2", {
489
513
  class: "dialog-header dialog-header-with-border dialog-header__front-end subtitle-regular-xs\t text-align-center spacing-body-inline"
490
514
  }, b(this, m, "f").tabBasic.frontEnd.frontEndLabel), s("div", {
491
515
  class: "field-group main__front-end spacing-body-inline scrollable"
492
- }, d(this.frontEnds, b(this, ht, "f"), b(this, k, "f").get(b(this, w, "f"))))) ]));
516
+ }, c(this.frontEnds, b(this, ri, "f"), b(this, k, "f").get(b(this, w, "f"))), this.noFrontEndSelected && s("div", {
517
+ class: "kb-storage-callout",
518
+ part: "backend-only-callout"
519
+ }, s("ch-image", {
520
+ class: "icon-l",
521
+ src: Ii,
522
+ type: "mask"
523
+ }), s("div", {
524
+ class: "kb-storage-callout-inner"
525
+ }, s("span", {
526
+ class: "kb-storage-callout__title body-semi-bold-s"
527
+ }, b(this, m, "f").tabBasic.frontEnd.backendOnlyCalloutTitle), s("span", {
528
+ class: "kb-storage-callout__description body-regular-xs"
529
+ }, b(this, m, "f").tabBasic.frontEnd.backendOnlyCalloutDescription))))) ]));
493
530
  // - - - - - - - - - -
494
- nt.set(this, (() => {
531
+ oi.set(this, (() => {
495
532
  if (this.cancelCallback) {
496
533
  this.cancelCallback();
497
534
  }
498
535
  }));
499
- lt.set(this, (() => {
500
- var t, i, s, e, a, o, n, l, r, h, d, c, u, p, v;
501
- const g = (t = b(this, k, "f").get(b(this, w, "f"))) !== null && t !== void 0 ? t : [];
536
+ ni.set(this, (() => {
537
+ var i, t, s, e, a, o, n, l, r, h, c, d, u, p, g;
538
+ const v = (i = b(this, k, "f").get(b(this, w, "f"))) !== null && i !== void 0 ? i : [];
502
539
  this.createCallback({
503
- authenticationType: (i = b(this, M, "f")) === null || i === void 0 ? void 0 : i.value,
540
+ authenticationType: (t = b(this, M, "f")) === null || t === void 0 ? void 0 : t.value,
504
541
  collation: (s = b(this, W, "f")) === null || s === void 0 ? void 0 : s.value,
505
542
  createDataFilesInKBFolder: !!((e = b(this, I, "f")) === null || e === void 0 ? void 0 : e.value),
506
543
  dataSource: (a = b(this, E, "f")) === null || a === void 0 ? void 0 : a.value,
507
544
  databaseName: (o = b(this, T, "f")) === null || o === void 0 ? void 0 : o.value,
508
- frontEnds: g,
509
- kbLocation: (n = b(this, F, "f")) === null || n === void 0 ? void 0 : n.value,
510
- kbName: (l = b(this, D, "f")) === null || l === void 0 ? void 0 : l.value,
511
- password: (r = b(this, C, "f")) === null || r === void 0 ? void 0 : r.value,
512
- prototypingEnvironment: (h = b(this, S, "f")) === null || h === void 0 ? void 0 : h.value,
513
- prototypingTarget: (d = b(this, P, "f")) === null || d === void 0 ? void 0 : d.value,
514
- savePassword: !!((c = b(this, A, "f")) === null || c === void 0 ? void 0 : c.value),
515
- serverName: (u = b(this, B, "f")) === null || u === void 0 ? void 0 : u.value,
516
- userInterfaceLanguage: (p = b(this, $, "f")) === null || p === void 0 ? void 0 : p.value,
517
- userName: (v = b(this, K, "f")) === null || v === void 0 ? void 0 : v.value,
545
+ frontEnds: v,
546
+ kbLocation: (n = b(this, z, "f")) === null || n === void 0 ? void 0 : n.value,
547
+ kbName: (l = b(this, F, "f")) === null || l === void 0 ? void 0 : l.value,
548
+ password: (r = b(this, j, "f")) === null || r === void 0 ? void 0 : r.value,
549
+ prototypingEnvironment: (h = b(this, N, "f")) === null || h === void 0 ? void 0 : h.value,
550
+ prototypingTarget: (c = b(this, S, "f")) === null || c === void 0 ? void 0 : c.value,
551
+ savePassword: !!((d = b(this, C, "f")) === null || d === void 0 ? void 0 : d.value),
552
+ serverName: (u = b(this, P, "f")) === null || u === void 0 ? void 0 : u.value,
553
+ userInterfaceLanguage: (p = b(this, A, "f")) === null || p === void 0 ? void 0 : p.value,
554
+ userName: (g = b(this, B, "f")) === null || g === void 0 ? void 0 : g.value,
518
555
  creationMode: this.selectedTab
519
- }).then((t => {
520
- this.validatableControls = f(t, this.validatableControls);
556
+ }).then((i => {
557
+ this.validatableControls = f(i, this.validatableControls);
521
558
  }));
522
559
  }));
523
560
  // TODO: evaluate if this should be a global helper function.
524
561
  // It is used on new-kb as well.
525
- rt.set(this, (t => {
526
- var i, e, a;
527
- return ((e = (i = this.validatableControls) === null || i === void 0 ? void 0 : i.get(t === null || t === void 0 ? void 0 : t.id)) === null || e === void 0 ? void 0 : e.hasError) && ((a = this.validatableControls.get(t.id)) === null || a === void 0 ? void 0 : a.message) && s("ch-tooltip", {
562
+ li.set(this, (i => {
563
+ var t, e, a;
564
+ return ((e = (t = this.validatableControls) === null || t === void 0 ? void 0 : t.get(i === null || i === void 0 ? void 0 : i.id)) === null || e === void 0 ? void 0 : e.hasError) && ((a = this.validatableControls.get(i.id)) === null || a === void 0 ? void 0 : a.message) && s("ch-tooltip", {
528
565
  class: "tooltip",
529
- actionElement: t,
566
+ actionElement: i,
530
567
  blockAlign: n.tooltipSettings.blockAlign,
531
568
  inlineAlign: n.tooltipSettings.inlineAlign,
532
569
  delay: n.tooltipSettings.delay
533
- }, this.validatableControls.get(t.id).message);
570
+ }, this.validatableControls.get(i.id).message);
534
571
  }));
535
- ht.set(this, (t => {
536
- const i = t.target.checkedValue;
537
- const s = t.detail === i;
538
- b(this, dt, "f").call(this, i, s);
572
+ ri.set(this, (i => {
573
+ const t = i.target.checkedValue;
574
+ const s = i.detail === t;
575
+ b(this, ci, "f").call(this, t, s);
576
+ b(this, hi, "f").call(this);
577
+ }));
578
+ /**
579
+ * Recomputes whether the KB will be generated as backend only, i.e. there
580
+ * are front ends to choose from but none is currently selected.
581
+ */ hi.set(this, (() => {
582
+ var i, t, s;
583
+ const e = b(this, k, "f").get(b(this, w, "f"));
584
+ this.noFrontEndSelected = ((t = (i = this.frontEnds) === null || i === void 0 ? void 0 : i.length) !== null && t !== void 0 ? t : 0) > 0 && ((s = e === null || e === void 0 ? void 0 : e.length) !== null && s !== void 0 ? s : 0) === 0;
539
585
  }));
540
586
  /**
541
587
  * This function updates frontEndsCheckedMap, that contains the checked
542
588
  * checkboxes for each language front ends.
543
589
  */
544
590
  // eslint-disable-next-line @stencil-community/own-props-must-be-private
545
- dt.set(this, ((t, i) => {
591
+ ci.set(this, ((i, t) => {
546
592
  let s = b(this, k, "f").get(b(this, w, "f"));
547
593
  if (!s) {
548
594
  // first time
549
595
  s = [];
550
596
  b(this, k, "f").set(b(this, w, "f"), s);
551
597
  }
552
- if (i) {
598
+ if (t) {
553
599
  // update by adding
554
- s.push(t);
600
+ s.push(i);
555
601
  } else {
556
602
  // update by removing
557
- const i = s.findIndex((i => i === t));
558
- u(s, i);
603
+ const t = s.findIndex((t => t === i));
604
+ u(s, t);
559
605
  }
560
606
  }));
561
- ct.set(this, (async () => {
607
+ di.set(this, (async () => {
562
608
  if (this.getPrototypingEnvironmentsCallback) {
563
- const t = b(this, P, "f") ? b(this, P, "f").value : this.prototypingTargetsInitialValue;
564
- const i = await this.getPrototypingEnvironmentsCallback(t);
565
- if (i) {
566
- this.defaultPrototypingEnvironments = i;
609
+ const i = b(this, S, "f") ? b(this, S, "f").value : this.prototypingTargetsInitialValue;
610
+ const t = await this.getPrototypingEnvironmentsCallback(i);
611
+ if (t) {
612
+ this.defaultPrototypingEnvironments = t;
567
613
  }
568
614
  }
569
615
  }));
570
- ft.set(this, (() => {
616
+ fi.set(this, (() => {
571
617
  if (this.getDataSourcesCallback) {
618
+ const i = b(this, N, "f").value;
572
619
  const t = b(this, S, "f").value;
573
- const i = b(this, P, "f").value;
574
- const s = this.getDataSourcesCallback(t, i);
575
- s.then((t => {
576
- if (t.length > 0) {
577
- t = r(t, b(this, y, "f"));
578
- v(this, y, h(t), "f");
579
- this.defaultDataSources = t;
620
+ const s = this.getDataSourcesCallback(i, t);
621
+ s.then((i => {
622
+ if (i.length > 0) {
623
+ i = r(i, b(this, y, "f"));
624
+ g(this, y, h(i), "f");
625
+ this.defaultDataSources = i;
580
626
  // set first option as selected
581
627
  b(this, E, "f").value = b(this, y, "f") !== undefined ? b(this, y, "f") : this.defaultDataSources[0].id;
582
628
  }
583
629
  })).catch((() => {}));
584
630
  }
585
631
  }));
586
- ut.set(this, (() => {
587
- const t = this.authenticationTypes.some((t => t.id === xt));
588
- if (t) {
589
- this.authenticationTypeValue = xt;
632
+ ui.set(this, (() => {
633
+ const i = this.authenticationTypes.some((i => i.id === yi));
634
+ if (i) {
635
+ this.authenticationTypeValue = yi;
590
636
  }
591
637
  }));
592
- pt.set(this, (() => {
638
+ pi.set(this, (() => {
593
639
  // populate #controlsValidation with the controls that could have errors.
594
- const t = [ b(this, E, "f"), b(this, D, "f"), b(this, S, "f"), b(this, P, "f"), b(this, $, "f") ];
595
- t.forEach((t => {
596
- if (t.id) {
597
- this.validatableControls.set(t.id, {
598
- reference: t,
640
+ const i = [ b(this, E, "f"), b(this, F, "f"), b(this, N, "f"), b(this, S, "f"), b(this, A, "f") ];
641
+ i.forEach((i => {
642
+ if (i.id) {
643
+ this.validatableControls.set(i.id, {
644
+ reference: i,
599
645
  hasError: false,
600
646
  message: undefined
601
647
  });
602
648
  }
603
649
  }));
604
650
  }));
605
- bt.set(this, (() => {
651
+ bi.set(this, (() => {
606
652
  // populate #controlsValidation with the controls that could have errors.
607
- const t = [ b(this, M, "f"), b(this, I, "f"), b(this, B, "f"), b(this, M, "f"), b(this, T, "f"), b(this, K, "f"), b(this, W, "f"), b(this, C, "f"), b(this, A, "f") ];
608
- t.forEach((t => {
609
- if (t.id) {
610
- this.validatableControls.set(t.id, {
611
- reference: t,
653
+ const i = [ b(this, M, "f"), b(this, I, "f"), b(this, P, "f"), b(this, M, "f"), b(this, T, "f"), b(this, B, "f"), b(this, W, "f"), b(this, j, "f"), b(this, C, "f") ];
654
+ i.forEach((i => {
655
+ if (i.id) {
656
+ this.validatableControls.set(i.id, {
657
+ reference: i,
612
658
  hasError: false,
613
659
  message: undefined
614
660
  });
615
661
  }
616
662
  }));
617
663
  }));
618
- /**
619
- * @description It allows defining the DBMS that will be used in the solution
620
- */
621
- // eslint-disable-next-line @stencil-community/own-props-must-be-private
622
- vt.set(this, (() => {
623
- this.selectLocationCallback().then((t => {
624
- if (t) {
625
- this.kbLocation = t;
626
- }
627
- }));
628
- }));
629
- gt.set(this, (() => {
630
- this.locationMode = b(this, j, "f").value;
664
+ gi.set(this, (async i => {
665
+ var t;
666
+ // Capture the button before awaiting. Opening/closing the location picker
667
+ // restores focus to it programmatically, leaving the :focus-visible outline
668
+ // lingering as if it were still active. On a successful selection move focus
669
+ // to the location input (natural next step, keyboard-friendly); otherwise
670
+ // just blur the button so the outline doesn't stay pinned.
671
+ const s = i.currentTarget;
672
+ const e = await this.selectLocationCallback();
673
+ if (e) {
674
+ this.kbLocation = e;
675
+ (t = b(this, z, "f")) === null || t === void 0 ? void 0 : t.focus();
676
+ } else {
677
+ s === null || s === void 0 ? void 0 : s.blur();
678
+ }
631
679
  }));
632
- mt.set(this, (t => {
633
- this.selectedTab = t.detail.newSelectedId;
634
- if (t.detail.newSelectedId === Nt) {
680
+ vi.set(this, (i => {
681
+ this.selectedTab = i.detail.newSelectedId;
682
+ if (i.detail.newSelectedId === Li) {
635
683
  if (!this.advancedTabIsVisible) {
636
684
  this.advancedTabIsVisible = true;
637
- b(this, kt, "f").call(this);
685
+ b(this, mi, "f").call(this);
638
686
  }
639
687
  } else {
640
688
  this.connectionStatus = undefined;
641
689
  }
642
690
  }));
643
- kt.set(this, (async () => {
644
- var t, i, s, e, a, o, n;
691
+ mi.set(this, (async () => {
692
+ var i, t, s, e, a, o, n;
645
693
  if (!this.getAdvancedTabDataCallback || this.loadingAdvancedTab) {
646
694
  return;
647
695
  }
@@ -652,10 +700,10 @@ const zt = class {
652
700
  if (l) {
653
701
  if (l.serverName != null) {
654
702
  this.serverNameValue = l.serverName;
655
- b(this, Z, "f").call(this);
703
+ b(this, Y, "f").call(this);
656
704
  }
657
- this.serverInstances = (t = l.serverInstances) !== null && t !== void 0 ? t : this.serverInstances;
658
- this.collations = (i = l.collations) !== null && i !== void 0 ? i : this.collations;
705
+ this.serverInstances = (i = l.serverInstances) !== null && i !== void 0 ? i : this.serverInstances;
706
+ this.collations = (t = l.collations) !== null && t !== void 0 ? t : this.collations;
659
707
  this.authenticationTypes = (s = l.authenticationTypes) !== null && s !== void 0 ? s : this.authenticationTypes;
660
708
  this.defaultCollation = (e = l.defaultCollation) !== null && e !== void 0 ? e : this.defaultCollation;
661
709
  this.authenticationTypeValue = (n = (o = (a = l.authenticationTypes) === null || a === void 0 ? void 0 : a[0]) === null || o === void 0 ? void 0 : o.id) !== null && n !== void 0 ? n : this.authenticationTypeValue;
@@ -663,7 +711,7 @@ const zt = class {
663
711
  } else {
664
712
  this.connectionStatus = "failed";
665
713
  }
666
- } catch (t) {
714
+ } catch (i) {
667
715
  this.connectionStatus = "failed";
668
716
  } finally {
669
717
  this.loadingAdvancedTab = false;
@@ -674,26 +722,27 @@ const zt = class {
674
722
  * by comparing the new state (getFrontEndsCallback result) and previous state.
675
723
  */
676
724
  // eslint-disable-next-line @stencil-community/own-props-must-be-private
677
- wt.set(this, (async () => {
678
- const t = await this.getFrontEndsCallback(b(this, w, "f"));
679
- if ((t === null || t === void 0 ? void 0 : t.length) > 0) {
680
- this.frontEnds = t;
725
+ ki.set(this, (async () => {
726
+ const i = await this.getFrontEndsCallback(b(this, w, "f"));
727
+ if ((i === null || i === void 0 ? void 0 : i.length) > 0) {
728
+ this.frontEnds = i;
681
729
  // Seed the checked map from the data's checked property so that
682
730
  // initially checked items render as checked on first load.
683
731
  if (!b(this, k, "f").has(b(this, w, "f"))) {
684
- const i = t.filter((t => t.checked)).map((t => t.value || t.id));
685
- if (i.length > 0) {
686
- b(this, k, "f").set(b(this, w, "f"), i);
732
+ const t = i.filter((i => i.checked)).map((i => i.value || i.id));
733
+ if (t.length > 0) {
734
+ b(this, k, "f").set(b(this, w, "f"), t);
687
735
  }
688
736
  }
737
+ b(this, hi, "f").call(this);
689
738
  }
690
739
  }));
691
740
  this.advancedTabIsVisible = false;
692
741
  this.loadingAdvancedTab = false;
693
742
  this.browseForMoreDialogOpen = false;
694
743
  this.databaseNameValue = "";
695
- this.locationMode = Dt;
696
744
  this.frontEnds = undefined;
745
+ this.noFrontEndSelected = false;
697
746
  this.validatableControls = new Map;
698
747
  this.connectionStatus = undefined;
699
748
  this.userNameValue = "";
@@ -714,7 +763,7 @@ const zt = class {
714
763
  this.serverNameValue = "";
715
764
  this.userInterfaceLanguagesComboBoxModel = [];
716
765
  this.userInterfaceLanguagesInitialValue = undefined;
717
- this.selectedTab = Lt;
766
+ this.selectedTab = Di;
718
767
  this.cancelCallback = undefined;
719
768
  this.canSetLocation = false;
720
769
  this.getAdvancedTabDataCallback = undefined;
@@ -738,76 +787,69 @@ const zt = class {
738
787
  this.userInterfaceLanguages = [];
739
788
  this.userName = undefined;
740
789
  }
741
- watchAuthenticationTypes(t) {
742
- if (t === null || t === void 0 ? void 0 : t.length) {
743
- this.authenticationTypesComboBoxModel = c(t);
744
- this.authenticationTypeValue = h(t);
790
+ watchAuthenticationTypes(i) {
791
+ if (i === null || i === void 0 ? void 0 : i.length) {
792
+ this.authenticationTypesComboBoxModel = d(i);
793
+ this.authenticationTypeValue = h(i);
745
794
  }
746
795
  }
747
- watchCollations(t) {
748
- if (!(t === null || t === void 0 ? void 0 : t.length)) {
796
+ watchCollations(i) {
797
+ if (!(i === null || i === void 0 ? void 0 : i.length)) {
749
798
  this.collationsComboBoxModel = [];
750
799
  return;
751
800
  }
752
- this.collationsComboBoxModel = c(t);
801
+ this.collationsComboBoxModel = d(i);
753
802
  }
754
- watchServerInstances(t) {
755
- if (!(t === null || t === void 0 ? void 0 : t.length)) {
803
+ watchServerInstances(i) {
804
+ if (!(i === null || i === void 0 ? void 0 : i.length)) {
756
805
  this.serverInstancesComboBoxModel = [];
757
806
  return;
758
807
  }
759
- this.serverInstancesComboBoxModel = c(t);
808
+ this.serverInstancesComboBoxModel = d(i);
760
809
  }
761
- watchDefaultDataSources(t) {
762
- if (t === null || t === void 0 ? void 0 : t.length) {
763
- this.defaultDataSourcesComboBoxModel = c(t);
764
- const i = r(t, b(this, y, "f"));
765
- v(this, y, h(i), "f");
810
+ watchDefaultDataSources(i) {
811
+ if (i === null || i === void 0 ? void 0 : i.length) {
812
+ this.defaultDataSourcesComboBoxModel = d(i);
813
+ const t = r(i, b(this, y, "f"));
814
+ g(this, y, h(t), "f");
766
815
  }
767
816
  }
768
- watchDefaultPrototypingEnvironments(t) {
769
- if (t === null || t === void 0 ? void 0 : t.length) {
770
- this.prototypingEnvironmentsComboBoxModel = c(t);
771
- v(this, w, h(t), "f");
772
- b(this, wt, "f").call(this);
817
+ watchDefaultPrototypingEnvironments(i) {
818
+ if (i === null || i === void 0 ? void 0 : i.length) {
819
+ this.prototypingEnvironmentsComboBoxModel = d(i);
820
+ g(this, w, h(i), "f");
821
+ b(this, ki, "f").call(this);
773
822
  }
774
823
  }
775
- watchPrototypingTargets(t) {
776
- if (t === null || t === void 0 ? void 0 : t.length) {
777
- this.prototypingTargetsComboBoxModel = c(t);
778
- this.prototypingTargetsInitialValue = h(t);
779
- b(this, ct, "f").call(this);
824
+ watchPrototypingTargets(i) {
825
+ if (i === null || i === void 0 ? void 0 : i.length) {
826
+ this.prototypingTargetsComboBoxModel = d(i);
827
+ this.prototypingTargetsInitialValue = h(i);
828
+ b(this, di, "f").call(this);
780
829
  }
781
830
  }
782
- watchUserInterfaceLanguages(t) {
783
- if (t === null || t === void 0 ? void 0 : t.length) {
784
- this.userInterfaceLanguagesComboBoxModel = c(t);
785
- this.userInterfaceLanguagesInitialValue = h(t);
831
+ watchUserInterfaceLanguages(i) {
832
+ if (i === null || i === void 0 ? void 0 : i.length) {
833
+ this.userInterfaceLanguagesComboBoxModel = d(i);
834
+ this.userInterfaceLanguagesInitialValue = h(i);
786
835
  }
787
836
  }
788
837
  async componentWillLoad() {
789
- var t, i;
790
- v(this, m, await l.getComponentStrings(this.el), "f");
791
- this.databaseNameValue = b(this, H, "f").call(this, this.kbName);
838
+ var i, t;
839
+ g(this, m, await l.getComponentStrings(this.el), "f");
840
+ this.databaseNameValue = b(this, U, "f").call(this, this.kbName);
792
841
  if (this.databaseName) {
793
842
  this.databaseNameValue = this.databaseName;
794
843
  }
795
- this.userNameValue = (t = this.userName) !== null && t !== void 0 ? t : "";
796
- this.passwordValue = (i = this.password) !== null && i !== void 0 ? i : "";
797
- v(this, _, [ {
798
- id: Lt,
844
+ this.userNameValue = (i = this.userName) !== null && i !== void 0 ? i : "";
845
+ this.passwordValue = (t = this.password) !== null && t !== void 0 ? t : "";
846
+ g(this, _, [ {
847
+ id: Di,
799
848
  name: b(this, m, "f").tabBasic.tabLabel
800
849
  }, {
801
- id: Nt,
850
+ id: Li,
802
851
  name: b(this, m, "f").tabAdvanced.tabLabel
803
852
  } ], "f");
804
- v(this, L, [ {
805
- value: Dt,
806
- caption: b(this, m, "f").header.kbLocationDefault
807
- }, {
808
- value: Ft,
809
- caption: b(this, m, "f").header.kbLocationCustom
810
- } ], "f");
811
853
  }
812
854
  connectedCallback() {
813
855
  this.watchDefaultDataSources(this.defaultDataSources);
@@ -816,60 +858,62 @@ const zt = class {
816
858
  this.watchUserInterfaceLanguages(this.userInterfaceLanguages);
817
859
  }
818
860
  componentDidLoad() {
819
- b(this, pt, "f").call(this);
861
+ b(this, pi, "f").call(this);
820
862
  }
821
863
  componentDidRender() {
822
- if (this.advancedTabIsVisible && !b(this, g, "f")) {
864
+ // Defer the one-time setup until the real advanced content is rendered
865
+ // (not the loader); otherwise the control refs it reads are still undefined.
866
+ if (this.advancedTabIsVisible && !this.loadingAdvancedTab && !b(this, v, "f")) {
823
867
  // just call this once.
824
- b(this, ut, "f").call(this);
825
- b(this, bt, "f").call(this);
826
- v(this, g, true, "f");
868
+ b(this, ui, "f").call(this);
869
+ b(this, bi, "f").call(this);
870
+ g(this, v, true, "f");
827
871
  }
828
- // Register the location input for validation once it's rendered (custom mode)
829
- if (this.locationMode === Ft && !b(this, N, "f") && b(this, F, "f")) {
830
- this.validatableControls.set(b(this, F, "f").id, {
831
- reference: b(this, F, "f"),
872
+ // Register the location input for validation once it's rendered
873
+ if (!b(this, D, "f") && b(this, z, "f")) {
874
+ this.validatableControls.set(b(this, z, "f").id, {
875
+ reference: b(this, z, "f"),
832
876
  hasError: false,
833
877
  message: undefined
834
878
  });
835
- v(this, N, true, "f");
879
+ g(this, D, true, "f");
836
880
  }
837
881
  // Register credential controls when they become visible (SQL Auth selected)
838
- if (this.authenticationTypeValue !== xt && !b(this, z, "f") && b(this, K, "f") && b(this, C, "f")) {
839
- this.validatableControls.set(b(this, K, "f").id, {
840
- reference: b(this, K, "f"),
882
+ if (this.authenticationTypeValue !== yi && !b(this, L, "f") && b(this, B, "f") && b(this, j, "f")) {
883
+ this.validatableControls.set(b(this, B, "f").id, {
884
+ reference: b(this, B, "f"),
841
885
  hasError: false,
842
886
  message: undefined
843
887
  });
844
- this.validatableControls.set(b(this, C, "f").id, {
845
- reference: b(this, C, "f"),
888
+ this.validatableControls.set(b(this, j, "f").id, {
889
+ reference: b(this, j, "f"),
846
890
  hasError: false,
847
891
  message: undefined
848
892
  });
849
- v(this, z, true, "f");
893
+ g(this, L, true, "f");
850
894
  }
851
895
  // Reset flag when switching back to Windows Auth so they re-register next time
852
- if (this.authenticationTypeValue === xt && b(this, z, "f")) {
853
- v(this, z, false, "f");
896
+ if (this.authenticationTypeValue === yi && b(this, L, "f")) {
897
+ g(this, L, false, "f");
854
898
  }
855
899
  }
856
900
  /**
857
901
  * Suspends or reactivates the shortcuts
858
- */ async suspendShortcuts(t) {
859
- if (t) {
860
- b(this, U, "f").suspend = true;
902
+ */ async suspendShortcuts(i) {
903
+ if (i) {
904
+ b(this, K, "f").suspend = true;
861
905
  } else {
862
- b(this, U, "f").suspend = false;
906
+ b(this, K, "f").suspend = false;
863
907
  }
864
908
  }
865
909
  render() {
866
910
  return s(e, {
867
911
  class: "widget"
868
912
  }, s("ch-theme", {
869
- model: yt
913
+ model: wi
870
914
  }), s("ch-shortcuts", {
871
915
  src: b(this, x, "f"),
872
- ref: t => v(this, U, t, "f")
916
+ ref: i => g(this, K, i, "f")
873
917
  }), s("section", {
874
918
  class: "section"
875
919
  }, s("header", {
@@ -894,65 +938,66 @@ const zt = class {
894
938
  class: "input kb-input",
895
939
  placeholder: "SalesInventory",
896
940
  value: this.kbName,
897
- onInput: b(this, O, "f"),
898
- ref: t => v(this, D, t, "f"),
941
+ onInput: b(this, H, "f"),
942
+ ref: i => g(this, F, i, "f"),
899
943
  id: "kbName",
900
944
  part: "kb-name"
901
- }), b(this, rt, "f").call(this, b(this, D, "f"))), this.canSetLocation && s("div", {
902
- class: "location-wrapper"
945
+ }), b(this, li, "f").call(this, b(this, F, "f"))), this.canSetLocation && s("div", {
946
+ class: "field field-inline"
903
947
  }, s("label", {
904
- class: "label location-label"
905
- }, b(this, m, "f").header.kbLocation), s("ch-radio-group-render", {
906
- class: "radio-group",
907
- model: b(this, L, "f"),
908
- value: Dt,
909
- onChange: b(this, gt, "f"),
910
- ref: t => v(this, j, t, "f")
911
- }), this.locationMode === Ft && s("div", {
948
+ class: "label",
949
+ htmlFor: "kbLocation"
950
+ }, b(this, m, "f").header.kbLocation), s("div", {
912
951
  class: "location-custom-wrapper"
913
952
  }, s("div", {
914
953
  class: "location-field"
915
954
  }, s("ch-edit", {
916
955
  class: "input",
917
956
  value: this.kbLocation,
918
- ref: t => v(this, F, t, "f"),
957
+ ref: i => g(this, z, i, "f"),
919
958
  id: "kbLocation",
920
959
  part: "kb-location"
921
- }), b(this, rt, "f").call(this, b(this, F, "f"))), s("button", {
922
- class: "button-tertiary button-icon-only location-icon",
960
+ }), b(this, li, "f").call(this, b(this, z, "f"))), s("button", {
961
+ class: "button-tertiary button-icon-only ",
923
962
  "aria-label": b(this, m, "f").header.selectLocationButton,
924
963
  title: b(this, m, "f").header.selectLocationButton,
925
964
  part: "button-select-location",
926
- onClick: b(this, vt, "f")
965
+ onClick: b(this, gi, "f"),
966
+ type: "button"
927
967
  }, s("ch-image", {
928
968
  class: "icon-m",
929
- src: It
969
+ src: Wi
930
970
  }))))), this.isAdvanced ? s("ch-tab-render", {
931
971
  // #tab
932
972
  class: {
933
973
  scrollable: true,
934
974
  tab: true,
935
- [Mt]: true
975
+ [_i]: true
936
976
  },
937
977
  tabListPosition: "block-start",
938
978
  model: b(this, _, "f"),
939
- selectedId: Lt,
979
+ selectedId: Di,
940
980
  overflow: "auto",
941
981
  contain: "size",
942
- onSelectedItemChange: b(this, mt, "f")
982
+ onSelectedItemChange: b(this, vi, "f")
943
983
  }, s("div", {
944
- slot: Lt,
945
- class: Wt,
984
+ slot: Di,
985
+ class: Mi,
946
986
  part: "tab-button-basic"
947
- }, b(this, ot, "f").call(this)), this.advancedTabIsVisible && s("div", {
948
- slot: Nt,
987
+ }, b(this, ai, "f").call(this)), this.advancedTabIsVisible && s("div", {
988
+ slot: Li,
949
989
  class: "advanced",
950
990
  part: "tab-button-advanced"
951
- }, b(this, at, "f").call(this))) : s("div", {
952
- class: Mt
991
+ }, this.loadingAdvancedTab ? s("gx-ide-loader", {
992
+ show: true,
993
+ class: "advanced-loader",
994
+ loaderTitle: b(this, m, "f").loader.title,
995
+ description: b(this, m, "f").loader.description
996
+ }) : b(this, ei, "f").call(this))) : s("div", {
997
+ class: _i
953
998
  }, s("div", {
954
- class: Wt
955
- }, b(this, ot, "f").call(this))), s("footer", {
999
+ class: Mi
1000
+ }, b(this, ai, "f").call(this))), s("footer", {
956
1001
  class: {
957
1002
  footer: true,
958
1003
  "dialog-footer-with-border": true,
@@ -961,24 +1006,35 @@ const zt = class {
961
1006
  }
962
1007
  }, this.connectionStatus && s("span", {
963
1008
  class: {
1009
+ "body-semi-bold-s": true,
964
1010
  "connection-status": true,
965
1011
  [`connection-status--${this.connectionStatus}`]: true
966
1012
  },
967
1013
  part: `connection-status connection-status-${this.connectionStatus}`
968
- }, b(this, m, "f").footer.connectionStatus[this.connectionStatus]), s("div", {
1014
+ }, this.connectionStatus === "connecting" && s("span", {
1015
+ class: "connection-status__spinner"
1016
+ }), this.connectionStatus === "success" && s("ch-image", {
1017
+ class: "icon-m",
1018
+ src: Ei,
1019
+ type: "mask"
1020
+ }), this.connectionStatus === "failed" && s("ch-image", {
1021
+ class: "icon-m",
1022
+ src: Fi,
1023
+ type: "mask"
1024
+ }), b(this, m, "f").footer.connectionStatus[this.connectionStatus]), s("div", {
969
1025
  class: "buttons-spacer"
970
1026
  }, s("button", {
971
1027
  // #cancel
972
1028
  class: "button-secondary",
973
1029
  id: "button-cancel",
974
- onClick: b(this, nt, "f"),
1030
+ onClick: b(this, oi, "f"),
975
1031
  part: "button-cancel"
976
1032
  }, b(this, m, "f").footer.btnCancel), s("button", {
977
1033
  // #create
978
1034
  class: "button-primary",
979
1035
  id: "button-create",
980
- disabled: this.connectionStatus === "failed" || this.connectionStatus === "connecting" || b(this, Y, "f").call(this),
981
- onClick: b(this, lt, "f"),
1036
+ disabled: this.connectionStatus === "failed" || this.connectionStatus === "connecting" || b(this, J, "f").call(this),
1037
+ onClick: b(this, ni, "f"),
982
1038
  part: "button-create"
983
1039
  }, b(this, m, "f").footer.btnCreate)))));
984
1040
  }
@@ -1001,20 +1057,20 @@ const zt = class {
1001
1057
  }
1002
1058
  };
1003
1059
 
1004
- g = new WeakMap, m = new WeakMap, k = new WeakMap, w = new WeakMap, y = new WeakMap,
1060
+ v = new WeakMap, m = new WeakMap, k = new WeakMap, w = new WeakMap, y = new WeakMap,
1005
1061
  x = new WeakMap, _ = new WeakMap, M = new WeakMap, W = new WeakMap, I = new WeakMap,
1006
- T = new WeakMap, E = new WeakMap, D = new WeakMap, F = new WeakMap, j = new WeakMap,
1007
- L = new WeakMap, N = new WeakMap, z = new WeakMap, C = new WeakMap, S = new WeakMap,
1062
+ T = new WeakMap, E = new WeakMap, F = new WeakMap, z = new WeakMap, D = new WeakMap,
1063
+ L = new WeakMap, j = new WeakMap, N = new WeakMap, S = new WeakMap, C = new WeakMap,
1008
1064
  P = new WeakMap, A = new WeakMap, B = new WeakMap, $ = new WeakMap, K = new WeakMap,
1009
1065
  U = new WeakMap, H = new WeakMap, O = new WeakMap, V = new WeakMap, G = new WeakMap,
1010
1066
  Q = new WeakMap, R = new WeakMap, X = new WeakMap, q = new WeakMap, J = new WeakMap,
1011
- Y = new WeakMap, Z = new WeakMap, tt = new WeakMap, it = new WeakMap, st = new WeakMap,
1012
- et = new WeakMap, at = new WeakMap, ot = new WeakMap, nt = new WeakMap, lt = new WeakMap,
1013
- rt = new WeakMap, ht = new WeakMap, dt = new WeakMap, ct = new WeakMap, ft = new WeakMap,
1014
- ut = new WeakMap, pt = new WeakMap, bt = new WeakMap, vt = new WeakMap, gt = new WeakMap,
1015
- mt = new WeakMap, kt = new WeakMap, wt = new WeakMap;
1067
+ Y = new WeakMap, Z = new WeakMap, ii = new WeakMap, ti = new WeakMap, si = new WeakMap,
1068
+ ei = new WeakMap, ai = new WeakMap, oi = new WeakMap, ni = new WeakMap, li = new WeakMap,
1069
+ ri = new WeakMap, hi = new WeakMap, ci = new WeakMap, di = new WeakMap, fi = new WeakMap,
1070
+ ui = new WeakMap, pi = new WeakMap, bi = new WeakMap, gi = new WeakMap, vi = new WeakMap,
1071
+ mi = new WeakMap, ki = new WeakMap;
1016
1072
 
1017
- zt.style = p;
1073
+ ji.style = p;
1018
1074
 
1019
- export { zt as gx_ide_new_kb };
1020
- //# sourceMappingURL=p-eeae9dd5.entry.js.map
1075
+ export { ji as gx_ide_new_kb };
1076
+ //# sourceMappingURL=p-95cf766b.entry.js.map