@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.
- package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js +24 -34
- package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js +12 -12
- package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-new-environment.cjs.entry.js +26 -3
- package/dist/cjs/gx-ide-new-environment.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-new-kb.cjs.entry.js +78 -45
- package/dist/cjs/gx-ide-new-kb.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/kb-manager-import/helpers.js +2 -9
- package/dist/collection/components/kb-manager-import/helpers.js.map +1 -1
- package/dist/collection/components/kb-manager-import/kb-manager-import.js +10 -3
- package/dist/collection/components/kb-manager-import/kb-manager-import.js.map +1 -1
- package/dist/collection/components/new-environment/gx-ide-assets/new-environment/langs/new-environment.lang.en.json +3 -1
- package/dist/collection/components/new-environment/gx-ide-assets/new-environment/langs/new-environment.lang.ja.json +3 -1
- package/dist/collection/components/new-environment/gx-ide-assets/new-environment/langs/new-environment.lang.zh.json +3 -1
- package/dist/collection/components/new-environment/new-environment.css +29 -0
- package/dist/collection/components/new-environment/new-environment.js +54 -17
- package/dist/collection/components/new-environment/new-environment.js.map +1 -1
- package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.en.json +9 -5
- package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.ja.json +7 -3
- package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.zh.json +9 -5
- package/dist/collection/components/new-kb/new-kb.css +42 -1
- package/dist/collection/components/new-kb/new-kb.js +78 -48
- package/dist/collection/components/new-kb/new-kb.js.map +1 -1
- package/dist/collection/components/team-dev/create-kb-from-server/create-kb-from-server.js +25 -36
- package/dist/collection/components/team-dev/create-kb-from-server/create-kb-from-server.js.map +1 -1
- 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
- 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
- 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
- package/dist/components/gx-ide-create-kb-from-server.js +24 -35
- package/dist/components/gx-ide-create-kb-from-server.js.map +1 -1
- package/dist/components/gx-ide-kb-manager-import.js +12 -12
- package/dist/components/gx-ide-kb-manager-import.js.map +1 -1
- package/dist/components/gx-ide-new-environment.js +27 -4
- package/dist/components/gx-ide-new-environment.js.map +1 -1
- package/dist/components/gx-ide-new-kb.js +86 -47
- package/dist/components/gx-ide-new-kb.js.map +1 -1
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-create-kb-from-server.entry.js +24 -34
- package/dist/esm/gx-ide-create-kb-from-server.entry.js.map +1 -1
- package/dist/esm/gx-ide-kb-manager-import.entry.js +12 -12
- package/dist/esm/gx-ide-kb-manager-import.entry.js.map +1 -1
- package/dist/esm/gx-ide-new-environment.entry.js +26 -3
- package/dist/esm/gx-ide-new-environment.entry.js.map +1 -1
- package/dist/esm/gx-ide-new-kb.entry.js +78 -45
- package/dist/esm/gx-ide-new-kb.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.en.json +0 -2
- package/dist/genexus-ide-ui/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.ja.json +0 -2
- package/dist/genexus-ide-ui/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.zh.json +0 -2
- package/dist/genexus-ide-ui/gx-ide-assets/new-environment/langs/new-environment.lang.en.json +3 -1
- package/dist/genexus-ide-ui/gx-ide-assets/new-environment/langs/new-environment.lang.ja.json +3 -1
- package/dist/genexus-ide-ui/gx-ide-assets/new-environment/langs/new-environment.lang.zh.json +3 -1
- package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.en.json +9 -5
- package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.ja.json +7 -3
- package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.zh.json +9 -5
- package/dist/genexus-ide-ui/{p-cf61384e.entry.js → p-2164c3a8.entry.js} +154 -167
- package/dist/genexus-ide-ui/p-2164c3a8.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-7cd24b82.entry.js → p-806c5dcb.entry.js} +58 -47
- package/dist/genexus-ide-ui/p-806c5dcb.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-5727fce7.entry.js → p-8f4af976.entry.js} +222 -184
- package/dist/genexus-ide-ui/p-8f4af976.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-eeae9dd5.entry.js → p-e3a0b11b.entry.js} +402 -346
- package/dist/genexus-ide-ui/p-e3a0b11b.entry.js.map +1 -0
- package/dist/types/components/kb-manager-import/helpers.d.ts +1 -1
- package/dist/types/components/new-environment/new-environment.d.ts +8 -3
- package/dist/types/components/new-kb/new-kb.d.ts +6 -1
- package/dist/types/components/team-dev/create-kb-from-server/create-kb-from-server.d.ts +0 -1
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/genexus-ide-ui/p-5727fce7.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-7cd24b82.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-cf61384e.entry.js.map +0 -1
- 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
|
|
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
|
|
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
|
|
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.
|
|
34
|
-
if (e === "
|
|
35
|
-
if (
|
|
36
|
-
|
|
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.
|
|
41
|
-
if (s === "
|
|
42
|
-
if (
|
|
43
|
-
|
|
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,
|
|
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
|
|
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
|
|
50
|
+
const D = o({
|
|
51
51
|
category: "system",
|
|
52
52
|
name: "information",
|
|
53
53
|
colorType: "on-surface"
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
const
|
|
56
|
+
const U = o({
|
|
57
57
|
category: "system",
|
|
58
58
|
name: "folder",
|
|
59
59
|
colorType: "primary"
|
|
60
60
|
});
|
|
61
61
|
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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
|
-
|
|
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
|
-
|
|
127
|
+
f(this, w, [], "f");
|
|
128
128
|
}
|
|
129
129
|
this.createKBCallback({
|
|
130
|
-
selectedKB:
|
|
130
|
+
selectedKB: d(this, k, "f"),
|
|
131
131
|
versionSelected: this.versionSelectedType,
|
|
132
132
|
localKBName: this.localKbNameInputValue,
|
|
133
|
-
kbLocation: this.
|
|
134
|
-
versionList:
|
|
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,
|
|
143
|
-
return ((
|
|
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 =
|
|
153
|
+
this.kbsFilteredActionListModel = d(this, v, "f").filter((t => t.caption.toLowerCase().includes(this.filterValue)));
|
|
154
154
|
}));
|
|
155
|
-
|
|
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
|
-
|
|
163
|
-
this.kbsFilteredActionListModel =
|
|
162
|
+
f(this, v, mapKbsModelToActionListModel(t), "f");
|
|
163
|
+
this.kbsFilteredActionListModel = d(this, v, "f");
|
|
164
164
|
this.filterValue = "";
|
|
165
165
|
}));
|
|
166
166
|
}));
|
|
167
|
-
|
|
167
|
+
$.set(this, (() => {
|
|
168
168
|
// populate validatableControls with the controls that could have errors.
|
|
169
|
-
const t = [
|
|
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
|
-
|
|
180
|
+
A.set(this, (t => {
|
|
181
181
|
this.localKbNameInputValue = t.detail;
|
|
182
|
-
|
|
182
|
+
f(this, M, true, "f");
|
|
183
183
|
}));
|
|
184
|
-
|
|
184
|
+
N.set(this, (async () => {
|
|
185
185
|
if (this.selectKBVersionsCallback) {
|
|
186
|
-
await this.selectKBVersionsCallback(
|
|
186
|
+
await this.selectKBVersionsCallback(d(this, k, "f")).then((t => {
|
|
187
187
|
if (t === null || t === void 0 ? void 0 : t.length) {
|
|
188
|
-
|
|
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 &&
|
|
193
|
-
this.localKbNameInputValue =
|
|
194
|
-
this.versionsValueInput =
|
|
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 =
|
|
197
|
-
this.versionsValueInput = `${t.length.toString()} ${
|
|
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 = `${
|
|
200
|
-
this.versionsValueInput = `${t[0].name} ${
|
|
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
|
-
|
|
206
|
+
P.set(this, (t => {
|
|
207
207
|
var i;
|
|
208
|
-
const
|
|
209
|
-
if (
|
|
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
|
-
|
|
211
|
+
f(this, k, undefined, "f");
|
|
212
212
|
return;
|
|
213
213
|
}
|
|
214
214
|
this.enableSelectVersionsButton = true;
|
|
215
|
-
|
|
216
|
-
if (
|
|
215
|
+
f(this, k, e.id, "f");
|
|
216
|
+
if (d(this, M, "f")) {
|
|
217
217
|
return;
|
|
218
218
|
}
|
|
219
|
-
this.localKbNameInputValue =
|
|
219
|
+
this.localKbNameInputValue = e.caption;
|
|
220
220
|
if (this.versionSelectedType === "Select") {
|
|
221
221
|
this.versionsValueInput = "";
|
|
222
|
-
|
|
222
|
+
f(this, w, [], "f");
|
|
223
223
|
}
|
|
224
224
|
}));
|
|
225
|
-
|
|
225
|
+
F.set(this, (t => {
|
|
226
226
|
this.versionSelectedType = t.detail;
|
|
227
227
|
}));
|
|
228
|
-
|
|
228
|
+
K.set(this, (t => {
|
|
229
229
|
t.sort(((t, i) => {
|
|
230
|
-
var
|
|
231
|
-
return (
|
|
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
|
-
|
|
234
|
+
V.set(this, (() => e("footer", {
|
|
235
235
|
class: "footer dialog-footer-with-border spacing-body-inline spacing-body-block-end"
|
|
236
|
-
},
|
|
236
|
+
}, e("div", {
|
|
237
237
|
class: "buttons-spacer"
|
|
238
|
-
},
|
|
238
|
+
}, e("button", {
|
|
239
239
|
// cancel button
|
|
240
240
|
class: "button-secondary",
|
|
241
|
-
onClick:
|
|
241
|
+
onClick: d(this, j, "f"),
|
|
242
242
|
part: "button button-cancel"
|
|
243
|
-
},
|
|
243
|
+
}, d(this, b, "f").footer.cancel), e("button", {
|
|
244
244
|
// create kb button
|
|
245
245
|
class: "button-primary",
|
|
246
|
-
onClick: this.enableSelectVersionsButton &&
|
|
246
|
+
onClick: this.enableSelectVersionsButton && d(this, z, "f"),
|
|
247
247
|
disabled: !this.enableSelectVersionsButton,
|
|
248
248
|
part: "button button-create-kb"
|
|
249
|
-
},
|
|
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
|
|
269
|
+
await d(this, L, "f").call(this);
|
|
271
270
|
this.loading = false;
|
|
272
271
|
}
|
|
273
272
|
async componentWillLoad() {
|
|
274
|
-
|
|
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
|
-
|
|
279
|
+
d(this, g, "f").suspend = true;
|
|
288
280
|
} else {
|
|
289
|
-
|
|
281
|
+
d(this, g, "f").suspend = false;
|
|
290
282
|
}
|
|
291
283
|
}
|
|
292
284
|
render() {
|
|
293
|
-
return
|
|
285
|
+
return e(a, {
|
|
294
286
|
class: "widget"
|
|
295
|
-
},
|
|
296
|
-
model:
|
|
297
|
-
}),
|
|
298
|
-
src:
|
|
299
|
-
ref: t =>
|
|
300
|
-
}),
|
|
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
|
-
},
|
|
294
|
+
}, e("header", {
|
|
303
295
|
class: "header dialog-header-with-border space-body spacing-body-inline spacing-body-block-start"
|
|
304
|
-
},
|
|
296
|
+
}, e("div", {
|
|
305
297
|
class: "field field-block"
|
|
306
|
-
},
|
|
298
|
+
}, e("label", {
|
|
307
299
|
class: "label"
|
|
308
|
-
},
|
|
300
|
+
}, d(this, b, "f").header.serverUrl), e("p", null, this.connectionData.serverUrl)), e("div", {
|
|
309
301
|
class: "field field-block"
|
|
310
|
-
},
|
|
302
|
+
}, e("label", {
|
|
311
303
|
class: "label"
|
|
312
|
-
},
|
|
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:
|
|
316
|
-
},
|
|
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 ?
|
|
319
|
-
loaderTitle:
|
|
320
|
-
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
|
|
314
|
+
}) : e(s, null, e("ch-edit", {
|
|
323
315
|
class: "input search-kbs",
|
|
324
316
|
id: "local-kb-name",
|
|
325
|
-
startImgSrc:
|
|
317
|
+
startImgSrc: d(this, p, "f"),
|
|
326
318
|
type: "search",
|
|
327
|
-
onInput:
|
|
328
|
-
placeholder:
|
|
329
|
-
}),
|
|
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
|
-
},
|
|
332
|
-
stateIconSrc:
|
|
333
|
-
stateTitle:
|
|
323
|
+
}, e("gx-ide-empty-state", {
|
|
324
|
+
stateIconSrc: D,
|
|
325
|
+
stateTitle: d(this, b, "f").emptyKBsText,
|
|
334
326
|
isAnimated: true
|
|
335
|
-
})) :
|
|
327
|
+
})) : e("ch-action-list-render", {
|
|
336
328
|
selection: "single",
|
|
337
329
|
class: "list-box",
|
|
338
|
-
onSelectedItemsChange:
|
|
330
|
+
onSelectedItemsChange: d(this, P, "f"),
|
|
339
331
|
model: this.kbsFilteredActionListModel,
|
|
340
|
-
sortItemsCallback:
|
|
341
|
-
}),
|
|
332
|
+
sortItemsCallback: d(this, K, "f")
|
|
333
|
+
}), e("div", {
|
|
342
334
|
class: "versions-container field-group"
|
|
343
|
-
},
|
|
335
|
+
}, e("ch-radio-group-render", {
|
|
344
336
|
class: "radio-group",
|
|
345
|
-
model:
|
|
346
|
-
onChange:
|
|
347
|
-
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
|
-
|
|
350
|
-
if (
|
|
351
|
-
this.versionSelectedType =
|
|
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" &&
|
|
346
|
+
}), this.versionSelectedType === "Select" && e("div", {
|
|
355
347
|
class: "versions-container__item field-group"
|
|
356
|
-
},
|
|
348
|
+
}, e("div", {
|
|
357
349
|
class: "field field-block"
|
|
358
|
-
},
|
|
350
|
+
}, e("label", {
|
|
359
351
|
class: "label",
|
|
360
352
|
htmlFor: "control-id-1"
|
|
361
|
-
},
|
|
353
|
+
}, d(this, b, "f").kb.versionsLabel), e("div", {
|
|
362
354
|
class: "versions-container__input"
|
|
363
|
-
},
|
|
355
|
+
}, e("ch-edit", {
|
|
364
356
|
class: "input",
|
|
365
357
|
readonly: true,
|
|
366
|
-
placeholder: this.enableSelectVersionsButton ?
|
|
358
|
+
placeholder: this.enableSelectVersionsButton ? d(this, b, "f").kb.versionsPlaceholder : d(this, b, "f").kb.versionsPlaceholderDisabled,
|
|
367
359
|
value: this.versionsValueInput
|
|
368
|
-
}),
|
|
360
|
+
}), e("button", {
|
|
369
361
|
id: "select-version-button",
|
|
370
362
|
class: "button-tertiary button-icon-only",
|
|
371
|
-
onClick:
|
|
363
|
+
onClick: d(this, N, "f"),
|
|
372
364
|
disabled: !this.enableSelectVersionsButton
|
|
373
|
-
},
|
|
374
|
-
src:
|
|
365
|
+
}, e("ch-image", {
|
|
366
|
+
src: d(this, u, "f"),
|
|
375
367
|
class: "icon-m",
|
|
376
368
|
disabled: !this.enableSelectVersionsButton
|
|
377
|
-
})))))),
|
|
369
|
+
})))))), e("div", {
|
|
378
370
|
class: "field field-block"
|
|
379
|
-
},
|
|
371
|
+
}, e("label", {
|
|
380
372
|
class: "label",
|
|
381
373
|
htmlFor: "localKbName"
|
|
382
|
-
},
|
|
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:
|
|
388
|
-
placeholder:
|
|
379
|
+
onInput: d(this, A, "f"),
|
|
380
|
+
placeholder: d(this, b, "f").kb.localKbNamePlaceholder,
|
|
389
381
|
ref: t => {
|
|
390
|
-
|
|
391
|
-
if (
|
|
392
|
-
|
|
382
|
+
f(this, x, t, "f");
|
|
383
|
+
if (d(this, x, "f")) {
|
|
384
|
+
d(this, $, "f").call(this);
|
|
393
385
|
}
|
|
394
386
|
}
|
|
395
|
-
}),
|
|
387
|
+
}), d(this, E, "f").call(this, d(this, x, "f"))), this.canSetLocation && e("div", {
|
|
396
388
|
class: "field field-block"
|
|
397
|
-
},
|
|
389
|
+
}, e("label", {
|
|
398
390
|
class: "label",
|
|
399
391
|
htmlFor: "kbLocation"
|
|
400
|
-
},
|
|
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
|
-
},
|
|
394
|
+
}, e("div", {
|
|
409
395
|
class: "location-field"
|
|
410
|
-
},
|
|
396
|
+
}, e("ch-edit", {
|
|
411
397
|
class: "input",
|
|
412
398
|
value: this.kbLocation,
|
|
413
399
|
id: "kbLocation",
|
|
414
|
-
onInput:
|
|
415
|
-
|
|
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":
|
|
418
|
-
title:
|
|
419
|
-
onClick:
|
|
420
|
-
},
|
|
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:
|
|
424
|
-
})))))),
|
|
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,
|
|
438
|
-
|
|
439
|
-
F = new WeakMap, K = new WeakMap, V = 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
|
-
|
|
428
|
+
H.style = c;
|
|
442
429
|
|
|
443
|
-
export {
|
|
444
|
-
//# sourceMappingURL=p-
|
|
430
|
+
export { H as gx_ide_create_kb_from_server };
|
|
431
|
+
//# sourceMappingURL=p-2164c3a8.entry.js.map
|