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