@genexus/genexus-ide-ui 3.2.13 → 3.2.15

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 +78 -45
  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 +78 -48
  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 +86 -47
  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 +78 -45
  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-e3a0b11b.entry.js} +402 -346
  68. package/dist/genexus-ide-ui/p-e3a0b11b.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 +6 -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
@@ -3,8 +3,6 @@
3
3
  "header": {
4
4
  "kbName": "KB Name",
5
5
  "kbLocation": "Location",
6
- "kbLocationDefault": "Default",
7
- "kbLocationCustom": "Custom",
8
6
  "selectLocationButton": "Select location"
9
7
  },
10
8
  "tabBasic": {
@@ -33,7 +31,9 @@
33
31
  }
34
32
  },
35
33
  "frontEnd": {
36
- "frontEndLabel": "Frontend"
34
+ "frontEndLabel": "Frontend",
35
+ "backendOnlyCalloutTitle": "Backend only",
36
+ "backendOnlyCalloutDescription": "No frontends are selected, so the Knowledge Base will be generated as backend only."
37
37
  }
38
38
  },
39
39
  "tabAdvanced": {
@@ -85,8 +85,12 @@
85
85
  "btnCancel": "Cancel",
86
86
  "connectionStatus": {
87
87
  "connecting": "Connecting...",
88
- "success": "Connection success",
89
- "failed": "Connection failed"
88
+ "success": "Connection succeeded.",
89
+ "failed": "Connection failed."
90
90
  }
91
+ },
92
+ "loader": {
93
+ "title": "Loading storage settings",
94
+ "description": "Retrieving available servers and collations..."
91
95
  }
92
96
  }
@@ -3,8 +3,6 @@
3
3
  "header": {
4
4
  "kbName": "KB 名",
5
5
  "kbLocation": "場所",
6
- "kbLocationDefault": "デフォルト",
7
- "kbLocationCustom": "カスタム",
8
6
  "selectLocationButton": "場所を選択"
9
7
  },
10
8
  "tabBasic": {
@@ -33,7 +31,9 @@
33
31
  }
34
32
  },
35
33
  "frontEnd": {
36
- "frontEndLabel": "フロントエンド"
34
+ "frontEndLabel": "フロントエンド",
35
+ "backendOnlyCalloutTitle": "バックエンド専用",
36
+ "backendOnlyCalloutDescription": "フロントエンドが選択されていないため、ナレッジベースはバックエンド専用として生成されます。"
37
37
  }
38
38
  },
39
39
  "tabAdvanced": {
@@ -88,5 +88,9 @@
88
88
  "success": "接続に成功しました",
89
89
  "failed": "接続に失敗しました"
90
90
  }
91
+ },
92
+ "loader": {
93
+ "title": "ストレージ設定を読み込み中",
94
+ "description": "利用可能なサーバーと照合順序を取得しています..."
91
95
  }
92
96
  }
@@ -3,8 +3,6 @@
3
3
  "header": {
4
4
  "kbName": "KB Name",
5
5
  "kbLocation": "Location",
6
- "kbLocationDefault": "Default",
7
- "kbLocationCustom": "Custom",
8
6
  "selectLocationButton": "Select location"
9
7
  },
10
8
  "tabBasic": {
@@ -33,7 +31,9 @@
33
31
  }
34
32
  },
35
33
  "frontEnd": {
36
- "frontEndLabel": "Frontend"
34
+ "frontEndLabel": "Frontend",
35
+ "backendOnlyCalloutTitle": "Backend only",
36
+ "backendOnlyCalloutDescription": "No frontends are selected, so the Knowledge Base will be generated as backend only."
37
37
  }
38
38
  },
39
39
  "tabAdvanced": {
@@ -85,8 +85,12 @@
85
85
  "btnCancel": "Cancel",
86
86
  "connectionStatus": {
87
87
  "connecting": "Connecting...",
88
- "success": "Connection success",
89
- "failed": "Connection failed"
88
+ "success": "Connection succeeded.",
89
+ "failed": "Connection failed."
90
90
  }
91
+ },
92
+ "loader": {
93
+ "title": "Loading storage settings",
94
+ "description": "Retrieving available servers and collations..."
91
95
  }
92
96
  }
@@ -1,4 +1,4 @@
1
- import { r as t, g as i, h as s, F as e, H as a, a as n } from "./p-9b9ccd0c.js";
1
+ import { r as t, g as i, h as e, F as s, H as a, a as n } from "./p-9b9ccd0c.js";
2
2
 
3
3
  import { g as o } from "./p-d42e842b.js";
4
4
 
@@ -30,42 +30,38 @@ const mapKbsModelToActionListModel = t => {
30
30
 
31
31
  const c = "button.button-secondary{border-color:var(--color-border-neutral-default)}:host{display:grid;block-size:100%;grid-template-rows:max-content 1fr max-content}.section{display:contents}header{display:grid;grid-template-rows:max-content;grid-template-columns:1fr 1fr max-content}.button-change{align-self:center;justify-self:end}.main{display:grid;grid-template-columns:1fr;grid-template-rows:max-content 1fr max-content max-content;position:relative}.search-kbs{inline-size:50%}.versions-container{grid-auto-rows:max-content}.versions-container__input{display:grid;grid-template-columns:1fr max-content;gap:var(--spacing-gap-m)}.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%}";
32
32
 
33
- var d = undefined && undefined.__classPrivateFieldSet || function(t, i, s, e, a) {
34
- if (e === "m") throw new TypeError("Private method is not writable");
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;
33
+ var d = undefined && undefined.__classPrivateFieldGet || function(t, i, e, s) {
34
+ if (e === "a" && !s) throw new TypeError("Private accessor was defined without a getter");
35
+ if (typeof i === "function" ? t !== i || !s : !i.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
36
+ return e === "m" ? s : e === "a" ? s.call(t) : s ? s.value : i.get(t);
38
37
  };
39
38
 
40
- var f = undefined && undefined.__classPrivateFieldGet || function(t, i, s, e) {
41
- if (s === "a" && !e) throw new TypeError("Private accessor was defined without a getter");
42
- 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");
43
- return s === "m" ? e : s === "a" ? e.call(t) : e ? e.value : i.get(t);
39
+ var f = undefined && undefined.__classPrivateFieldSet || function(t, i, e, s, a) {
40
+ if (s === "m") throw new TypeError("Private method is not writable");
41
+ if (s === "a" && !a) throw new TypeError("Private accessor was defined without a setter");
42
+ 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");
43
+ return s === "a" ? a.call(t, e) : a ? a.value = e : i.set(t, e), e;
44
44
  };
45
45
 
46
- var p, u, m, b, v, w, g, y, k, M, W, x, T, j, _, C, S, L, z, E, I, $, A, N, P, F, K, V, B;
46
+ var p, u, m, b, v, w, g, y, k, M, W, x, T, j, _, C, S, z, E, I, L, $, A, N, P, F, K, V;
47
47
 
48
- const D = [ "resets/box-sizing", "utils/form--full", "utils/layout", "utils/typography", "utils/spacing", "components/list-box", "components/tooltip", "chameleon/scrollbar" ];
48
+ const B = [ "resets/box-sizing", "utils/form--full", "utils/layout", "utils/typography", "utils/spacing", "components/list-box", "components/tooltip", "chameleon/scrollbar" ];
49
49
 
50
- const U = o({
50
+ const D = o({
51
51
  category: "system",
52
52
  name: "information",
53
53
  colorType: "on-surface"
54
54
  });
55
55
 
56
- const H = o({
56
+ const U = o({
57
57
  category: "system",
58
58
  name: "folder",
59
59
  colorType: "primary"
60
60
  });
61
61
 
62
- const q = "default";
63
-
64
- const G = "custom";
65
-
66
- const J = class {
67
- constructor(e) {
68
- t(this, e);
62
+ const H = class {
63
+ constructor(s) {
64
+ t(this, s);
69
65
  p.set(this, o({
70
66
  category: "system",
71
67
  name: "search",
@@ -107,31 +103,35 @@ const J = class {
107
103
  userPassword: this.connectionData.userPassword
108
104
  });
109
105
  }));
110
- C.set(this, (t => {
111
- this.locationMode = t.detail;
112
- if (this.locationMode === q) {
113
- this.kbLocation = "";
114
- }
115
- }));
116
- S.set(this, (async () => {
117
- const t = await this.selectLocationCallback();
118
- if (t) {
119
- this.kbLocation = t;
106
+ C.set(this, (async t => {
107
+ var i;
108
+ // Capture the button before awaiting. Opening/closing the location picker
109
+ // restores focus to it programmatically, leaving the :focus-visible outline
110
+ // lingering as if it were still active. On a successful selection move focus
111
+ // to the location input (natural next step, keyboard-friendly); otherwise
112
+ // just blur the button so the outline doesn't stay pinned.
113
+ const e = t.currentTarget;
114
+ const s = await this.selectLocationCallback();
115
+ if (s) {
116
+ this.kbLocation = s;
117
+ (i = d(this, T, "f")) === null || i === void 0 ? void 0 : i.focus();
118
+ } else {
119
+ e === null || e === void 0 ? void 0 : e.blur();
120
120
  }
121
121
  }));
122
- L.set(this, (t => {
122
+ S.set(this, (t => {
123
123
  this.kbLocation = t.detail;
124
124
  }));
125
125
  z.set(this, (async () => {
126
126
  if (this.versionSelectedType !== "Select") {
127
- d(this, w, [], "f");
127
+ f(this, w, [], "f");
128
128
  }
129
129
  this.createKBCallback({
130
- selectedKB: f(this, k, "f"),
130
+ selectedKB: d(this, k, "f"),
131
131
  versionSelected: this.versionSelectedType,
132
132
  localKBName: this.localKbNameInputValue,
133
- kbLocation: this.locationMode === G ? this.kbLocation || undefined : undefined,
134
- versionList: f(this, w, "f")
133
+ kbLocation: this.kbLocation || undefined,
134
+ versionList: d(this, w, "f")
135
135
  }).then((t => {
136
136
  this.validatableControls = l(t, this.validatableControls);
137
137
  }));
@@ -139,8 +139,8 @@ const J = class {
139
139
  // TODO: evaluate if this should be a global helper function.
140
140
  // It is used on other dialogs as well.
141
141
  E.set(this, (t => {
142
- var i, e, a;
143
- 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", {
142
+ var i, s, a;
143
+ 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", {
144
144
  class: "tooltip",
145
145
  actionElement: t,
146
146
  blockAlign: r.tooltipSettings.blockAlign,
@@ -150,23 +150,23 @@ const J = class {
150
150
  }));
151
151
  I.set(this, (t => {
152
152
  this.filterValue = t.detail.toLowerCase();
153
- this.kbsFilteredActionListModel = f(this, v, "f").filter((t => t.caption.toLowerCase().includes(this.filterValue)));
153
+ this.kbsFilteredActionListModel = d(this, v, "f").filter((t => t.caption.toLowerCase().includes(this.filterValue)));
154
154
  }));
155
- $.set(this, (async () => {
155
+ L.set(this, (async () => {
156
156
  await this.getGXserverKBsCallback({
157
157
  authenticationType: this.connectionData.authenticationType,
158
158
  serverUrl: this.connectionData.serverUrl,
159
159
  userName: this.connectionData.userName,
160
160
  userPassword: this.connectionData.userPassword
161
161
  }).then((t => {
162
- d(this, v, mapKbsModelToActionListModel(t), "f");
163
- this.kbsFilteredActionListModel = f(this, v, "f");
162
+ f(this, v, mapKbsModelToActionListModel(t), "f");
163
+ this.kbsFilteredActionListModel = d(this, v, "f");
164
164
  this.filterValue = "";
165
165
  }));
166
166
  }));
167
- A.set(this, (() => {
167
+ $.set(this, (() => {
168
168
  // populate validatableControls with the controls that could have errors.
169
- const t = [ f(this, T, "f") ];
169
+ const t = [ d(this, x, "f") ];
170
170
  t.forEach((t => {
171
171
  if (t.id) {
172
172
  this.validatableControls.set(t.id, {
@@ -177,76 +177,76 @@ const J = class {
177
177
  }
178
178
  }));
179
179
  }));
180
- N.set(this, (t => {
180
+ A.set(this, (t => {
181
181
  this.localKbNameInputValue = t.detail;
182
- d(this, M, true, "f");
182
+ f(this, M, true, "f");
183
183
  }));
184
- P.set(this, (async () => {
184
+ N.set(this, (async () => {
185
185
  if (this.selectKBVersionsCallback) {
186
- await this.selectKBVersionsCallback(f(this, k, "f")).then((t => {
186
+ await this.selectKBVersionsCallback(d(this, k, "f")).then((t => {
187
187
  if (t === null || t === void 0 ? void 0 : t.length) {
188
- d(this, w, t.map((t => ({
188
+ f(this, w, t.map((t => ({
189
189
  id: t.id,
190
190
  name: t.name
191
191
  }))), "f");
192
- if (t.length === 1 && f(this, w, "f")[0].id === 0) {
193
- this.localKbNameInputValue = f(this, k, "f");
194
- this.versionsValueInput = f(this, b, "f").kb.versionsPlaceholder;
192
+ if (t.length === 1 && d(this, w, "f")[0].id === 0) {
193
+ this.localKbNameInputValue = d(this, k, "f");
194
+ this.versionsValueInput = d(this, b, "f").kb.versionsPlaceholder;
195
195
  } else if (t.length > 1) {
196
- this.localKbNameInputValue = f(this, k, "f");
197
- this.versionsValueInput = `${t.length.toString()} ${f(this, b, "f").kb.versionSelectedFieldValue}`;
196
+ this.localKbNameInputValue = d(this, k, "f");
197
+ this.versionsValueInput = `${t.length.toString()} ${d(this, b, "f").kb.versionSelectedFieldValue}`;
198
198
  } else {
199
- this.localKbNameInputValue = `${f(this, k, "f")}_${f(this, w, "f")[0].name}`;
200
- this.versionsValueInput = `${t[0].name} ${f(this, b, "f").kb.oneVersionSelectedFieldValue}`;
199
+ this.localKbNameInputValue = `${d(this, k, "f")}_${d(this, w, "f")[0].name}`;
200
+ this.versionsValueInput = `${t[0].name} ${d(this, b, "f").kb.oneVersionSelectedFieldValue}`;
201
201
  }
202
202
  }
203
203
  }));
204
204
  }
205
205
  }));
206
- F.set(this, (t => {
206
+ P.set(this, (t => {
207
207
  var i;
208
- const s = (i = t.detail[0]) === null || i === void 0 ? void 0 : i.item;
209
- if (s === undefined) {
208
+ const e = (i = t.detail[0]) === null || i === void 0 ? void 0 : i.item;
209
+ if (e === undefined) {
210
210
  this.enableSelectVersionsButton = false;
211
- d(this, k, undefined, "f");
211
+ f(this, k, undefined, "f");
212
212
  return;
213
213
  }
214
214
  this.enableSelectVersionsButton = true;
215
- d(this, k, s.id, "f");
216
- if (f(this, M, "f")) {
215
+ f(this, k, e.id, "f");
216
+ if (d(this, M, "f")) {
217
217
  return;
218
218
  }
219
- this.localKbNameInputValue = s.caption;
219
+ this.localKbNameInputValue = e.caption;
220
220
  if (this.versionSelectedType === "Select") {
221
221
  this.versionsValueInput = "";
222
- d(this, w, [], "f");
222
+ f(this, w, [], "f");
223
223
  }
224
224
  }));
225
- K.set(this, (t => {
225
+ F.set(this, (t => {
226
226
  this.versionSelectedType = t.detail;
227
227
  }));
228
- V.set(this, (t => {
228
+ K.set(this, (t => {
229
229
  t.sort(((t, i) => {
230
- var s, e;
231
- return (s = t.caption) === null || s === void 0 ? void 0 : s.toLocaleLowerCase().localeCompare((e = i.caption) === null || e === void 0 ? void 0 : e.toLocaleLowerCase());
230
+ var e, s;
231
+ return (e = t.caption) === null || e === void 0 ? void 0 : e.toLocaleLowerCase().localeCompare((s = i.caption) === null || s === void 0 ? void 0 : s.toLocaleLowerCase());
232
232
  }));
233
233
  }));
234
- B.set(this, (() => s("footer", {
234
+ V.set(this, (() => e("footer", {
235
235
  class: "footer dialog-footer-with-border spacing-body-inline spacing-body-block-end"
236
- }, s("div", {
236
+ }, e("div", {
237
237
  class: "buttons-spacer"
238
- }, s("button", {
238
+ }, e("button", {
239
239
  // cancel button
240
240
  class: "button-secondary",
241
- onClick: f(this, j, "f"),
241
+ onClick: d(this, j, "f"),
242
242
  part: "button button-cancel"
243
- }, f(this, b, "f").footer.cancel), s("button", {
243
+ }, d(this, b, "f").footer.cancel), e("button", {
244
244
  // create kb button
245
245
  class: "button-primary",
246
- onClick: this.enableSelectVersionsButton && f(this, z, "f"),
246
+ onClick: this.enableSelectVersionsButton && d(this, z, "f"),
247
247
  disabled: !this.enableSelectVersionsButton,
248
248
  part: "button button-create-kb"
249
- }, f(this, b, "f").footer.createKb)))));
249
+ }, d(this, b, "f").footer.createKb)))));
250
250
  this.enableSelectVersionsButton = false;
251
251
  this.localKbNameInputValue = "";
252
252
  this.loading = true;
@@ -255,7 +255,6 @@ const J = class {
255
255
  this.validatableControls = new Map;
256
256
  this.versionSelectedType = undefined;
257
257
  this.versionsValueInput = "";
258
- this.locationMode = q;
259
258
  this.kbLocation = undefined;
260
259
  this.canSetLocation = false;
261
260
  this.connectionData = undefined;
@@ -267,161 +266,149 @@ const J = class {
267
266
  this.selectKBVersionsCallback = undefined;
268
267
  }
269
268
  async componentDidLoad() {
270
- await f(this, $, "f").call(this);
269
+ await d(this, L, "f").call(this);
271
270
  this.loading = false;
272
271
  }
273
272
  async componentWillLoad() {
274
- d(this, b, await h.getComponentStrings(this.el), "f");
275
- d(this, W, [ {
276
- value: q,
277
- caption: f(this, b, "f").kb.kbLocationDefault
278
- }, {
279
- value: G,
280
- caption: f(this, b, "f").kb.kbLocationCustom
281
- } ], "f");
273
+ f(this, b, await h.getComponentStrings(this.el), "f");
282
274
  }
283
275
  /**
284
276
  * Suspends or reactivates the shortcuts
285
277
  */ async suspendShortcuts(t) {
286
278
  if (t) {
287
- f(this, g, "f").suspend = true;
279
+ d(this, g, "f").suspend = true;
288
280
  } else {
289
- f(this, g, "f").suspend = false;
281
+ d(this, g, "f").suspend = false;
290
282
  }
291
283
  }
292
284
  render() {
293
- return s(a, {
285
+ return e(a, {
294
286
  class: "widget"
295
- }, s("ch-theme", {
296
- model: D
297
- }), s("ch-shortcuts", {
298
- src: f(this, y, "f"),
299
- ref: t => d(this, g, t, "f")
300
- }), s("section", {
287
+ }, e("ch-theme", {
288
+ model: B
289
+ }), e("ch-shortcuts", {
290
+ src: d(this, y, "f"),
291
+ ref: t => f(this, g, t, "f")
292
+ }), e("section", {
301
293
  class: "section"
302
- }, s("header", {
294
+ }, e("header", {
303
295
  class: "header dialog-header-with-border space-body spacing-body-inline spacing-body-block-start"
304
- }, s("div", {
296
+ }, e("div", {
305
297
  class: "field field-block"
306
- }, s("label", {
298
+ }, e("label", {
307
299
  class: "label"
308
- }, f(this, b, "f").header.serverUrl), s("p", null, this.connectionData.serverUrl)), s("div", {
300
+ }, d(this, b, "f").header.serverUrl), e("p", null, this.connectionData.serverUrl)), e("div", {
309
301
  class: "field field-block"
310
- }, s("label", {
302
+ }, e("label", {
311
303
  class: "label"
312
- }, f(this, b, "f").header.user), s("p", null, this.connectionData.userName)), s("button", {
304
+ }, d(this, b, "f").header.user), e("p", null, this.connectionData.userName)), e("button", {
313
305
  id: "change-connection-button",
314
306
  class: "button-tertiary button-change",
315
- onClick: f(this, _, "f")
316
- }, f(this, b, "f").header.change)), s("section", {
307
+ onClick: d(this, _, "f")
308
+ }, d(this, b, "f").header.change)), e("section", {
317
309
  class: "main field-group spacing-body"
318
- }, this.loading ? s("gx-ide-loader", {
319
- loaderTitle: f(this, b, "f").loader.title,
320
- description: f(this, b, "f").loader.description,
310
+ }, this.loading ? e("gx-ide-loader", {
311
+ loaderTitle: d(this, b, "f").loader.title,
312
+ description: d(this, b, "f").loader.description,
321
313
  show: true
322
- }) : s(e, null, s("ch-edit", {
314
+ }) : e(s, null, e("ch-edit", {
323
315
  class: "input search-kbs",
324
316
  id: "local-kb-name",
325
- startImgSrc: f(this, p, "f"),
317
+ startImgSrc: d(this, p, "f"),
326
318
  type: "search",
327
- onInput: f(this, I, "f"),
328
- placeholder: f(this, b, "f").kb.searchKbsPlaceholder
329
- }), f(this, v, "f").length === 0 || this.kbsFilteredActionListModel.length === 0 ? s("div", {
319
+ onInput: d(this, I, "f"),
320
+ placeholder: d(this, b, "f").kb.searchKbsPlaceholder
321
+ }), d(this, v, "f").length === 0 || this.kbsFilteredActionListModel.length === 0 ? e("div", {
330
322
  class: "list-box"
331
- }, s("gx-ide-empty-state", {
332
- stateIconSrc: U,
333
- stateTitle: f(this, b, "f").emptyKBsText,
323
+ }, e("gx-ide-empty-state", {
324
+ stateIconSrc: D,
325
+ stateTitle: d(this, b, "f").emptyKBsText,
334
326
  isAnimated: true
335
- })) : s("ch-action-list-render", {
327
+ })) : e("ch-action-list-render", {
336
328
  selection: "single",
337
329
  class: "list-box",
338
- onSelectedItemsChange: f(this, F, "f"),
330
+ onSelectedItemsChange: d(this, P, "f"),
339
331
  model: this.kbsFilteredActionListModel,
340
- sortItemsCallback: f(this, V, "f")
341
- }), s("div", {
332
+ sortItemsCallback: d(this, K, "f")
333
+ }), e("div", {
342
334
  class: "versions-container field-group"
343
- }, s("ch-radio-group-render", {
335
+ }, e("ch-radio-group-render", {
344
336
  class: "radio-group",
345
- model: f(this, m, "f"),
346
- onChange: f(this, K, "f"),
347
- value: f(this, m, "f")[0].value,
337
+ model: d(this, m, "f"),
338
+ onChange: d(this, F, "f"),
339
+ value: d(this, m, "f")[0].value,
348
340
  ref: t => {
349
- d(this, x, t, "f");
350
- if (f(this, x, "f")) {
351
- this.versionSelectedType = f(this, x, "f").value;
341
+ f(this, W, t, "f");
342
+ if (d(this, W, "f")) {
343
+ this.versionSelectedType = d(this, W, "f").value;
352
344
  }
353
345
  }
354
- }), this.versionSelectedType === "Select" && s("div", {
346
+ }), this.versionSelectedType === "Select" && e("div", {
355
347
  class: "versions-container__item field-group"
356
- }, s("div", {
348
+ }, e("div", {
357
349
  class: "field field-block"
358
- }, s("label", {
350
+ }, e("label", {
359
351
  class: "label",
360
352
  htmlFor: "control-id-1"
361
- }, f(this, b, "f").kb.versionsLabel), s("div", {
353
+ }, d(this, b, "f").kb.versionsLabel), e("div", {
362
354
  class: "versions-container__input"
363
- }, s("ch-edit", {
355
+ }, e("ch-edit", {
364
356
  class: "input",
365
357
  readonly: true,
366
- placeholder: this.enableSelectVersionsButton ? f(this, b, "f").kb.versionsPlaceholder : f(this, b, "f").kb.versionsPlaceholderDisabled,
358
+ placeholder: this.enableSelectVersionsButton ? d(this, b, "f").kb.versionsPlaceholder : d(this, b, "f").kb.versionsPlaceholderDisabled,
367
359
  value: this.versionsValueInput
368
- }), s("button", {
360
+ }), e("button", {
369
361
  id: "select-version-button",
370
362
  class: "button-tertiary button-icon-only",
371
- onClick: f(this, P, "f"),
363
+ onClick: d(this, N, "f"),
372
364
  disabled: !this.enableSelectVersionsButton
373
- }, s("ch-image", {
374
- src: f(this, u, "f"),
365
+ }, e("ch-image", {
366
+ src: d(this, u, "f"),
375
367
  class: "icon-m",
376
368
  disabled: !this.enableSelectVersionsButton
377
- })))))), s("div", {
369
+ })))))), e("div", {
378
370
  class: "field field-block"
379
- }, s("label", {
371
+ }, e("label", {
380
372
  class: "label",
381
373
  htmlFor: "localKbName"
382
- }, f(this, b, "f").kb.localKbNameLabel), s("ch-edit", {
374
+ }, d(this, b, "f").kb.localKbNameLabel), e("ch-edit", {
383
375
  // local kb name
384
376
  class: "input",
385
377
  id: "localKbName",
386
378
  value: this.localKbNameInputValue,
387
- onInput: f(this, N, "f"),
388
- placeholder: f(this, b, "f").kb.localKbNamePlaceholder,
379
+ onInput: d(this, A, "f"),
380
+ placeholder: d(this, b, "f").kb.localKbNamePlaceholder,
389
381
  ref: t => {
390
- d(this, T, t, "f");
391
- if (f(this, T, "f")) {
392
- f(this, A, "f").call(this);
382
+ f(this, x, t, "f");
383
+ if (d(this, x, "f")) {
384
+ d(this, $, "f").call(this);
393
385
  }
394
386
  }
395
- }), f(this, E, "f").call(this, f(this, T, "f"))), this.canSetLocation && s("div", {
387
+ }), d(this, E, "f").call(this, d(this, x, "f"))), this.canSetLocation && e("div", {
396
388
  class: "field field-block"
397
- }, s("label", {
389
+ }, e("label", {
398
390
  class: "label",
399
391
  htmlFor: "kbLocation"
400
- }, f(this, b, "f").kb.kbLocation), s("ch-radio-group-render", {
401
- class: "radio-group",
402
- id: "kbLocation",
403
- model: f(this, W, "f"),
404
- value: q,
405
- onChange: f(this, C, "f")
406
- }), this.locationMode === G && s("div", {
392
+ }, d(this, b, "f").kb.kbLocation), e("div", {
407
393
  class: "location-custom-wrapper"
408
- }, s("div", {
394
+ }, e("div", {
409
395
  class: "location-field"
410
- }, s("ch-edit", {
396
+ }, e("ch-edit", {
411
397
  class: "input",
412
398
  value: this.kbLocation,
413
399
  id: "kbLocation",
414
- onInput: f(this, L, "f")
415
- })), s("button", {
400
+ onInput: d(this, S, "f"),
401
+ ref: t => f(this, T, t, "f")
402
+ })), e("button", {
416
403
  class: "button-tertiary button-icon-only",
417
- "aria-label": f(this, b, "f").kb.selectLocationButton,
418
- title: f(this, b, "f").kb.selectLocationButton,
419
- onClick: f(this, S, "f")
420
- }, s("ch-image", {
404
+ "aria-label": d(this, b, "f").kb.selectLocationButton,
405
+ title: d(this, b, "f").kb.selectLocationButton,
406
+ onClick: d(this, C, "f")
407
+ }, e("ch-image", {
421
408
  class: "icon-m",
422
409
  type: "mask",
423
- src: H
424
- })))))), f(this, B, "f").call(this)));
410
+ src: U
411
+ })))))), d(this, V, "f").call(this)));
425
412
  }
426
413
  static get assetsDirs() {
427
414
  return [ "gx-ide-assets/create-kb-from-server" ];
@@ -434,11 +421,11 @@ const J = class {
434
421
  p = new WeakMap, u = new WeakMap, m = new WeakMap, b = new WeakMap, v = new WeakMap,
435
422
  w = new WeakMap, g = new WeakMap, y = new WeakMap, k = new WeakMap, M = new WeakMap,
436
423
  W = new WeakMap, x = new WeakMap, T = new WeakMap, j = new WeakMap, _ = new WeakMap,
437
- C = new WeakMap, S = new WeakMap, L = new WeakMap, z = new WeakMap, E = new WeakMap,
438
- I = new WeakMap, $ = new WeakMap, A = new WeakMap, N = new WeakMap, P = new WeakMap,
439
- F = new WeakMap, K = new WeakMap, V = new WeakMap, B = new WeakMap;
424
+ C = new WeakMap, S = new WeakMap, z = new WeakMap, E = new WeakMap, I = new WeakMap,
425
+ L = new WeakMap, $ = new WeakMap, A = new WeakMap, N = new WeakMap, P = new WeakMap,
426
+ F = new WeakMap, K = new WeakMap, V = new WeakMap;
440
427
 
441
- J.style = c;
428
+ H.style = c;
442
429
 
443
- export { J as gx_ide_create_kb_from_server };
444
- //# sourceMappingURL=p-cf61384e.entry.js.map
430
+ export { H as gx_ide_create_kb_from_server };
431
+ //# sourceMappingURL=p-2164c3a8.entry.js.map