@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
|
@@ -14,7 +14,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
14
14
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
15
15
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
16
16
|
};
|
|
17
|
-
var _GxIdeNewKb_advancedTabHasBeenRendered, _GxIdeNewKb_componentLocale, _GxIdeNewKb_frontEndsCheckedMap, _GxIdeNewKb_selectedPrototypingEnvironmentId, _GxIdeNewKb_selectedDataSourceId, _GxIdeNewKb_shortcutsSrc, _GxIdeNewKb_kbSectionsModel, _GxIdeNewKb_authenticationTypeEl, _GxIdeNewKb_collationEl, _GxIdeNewKb_createDataFilesInKBFolderEl, _GxIdeNewKb_databaseNameEl, _GxIdeNewKb_dataSourceEl, _GxIdeNewKb_kbNameEl, _GxIdeNewKb_locationEl, _GxIdeNewKb_locationModeEl, _GxIdeNewKb_locationModeModel, _GxIdeNewKb_locationElRegistered, _GxIdeNewKb_passwordEl, _GxIdeNewKb_prototypingEnvironmentEl, _GxIdeNewKb_prototypingTargetEl, _GxIdeNewKb_savePasswordEl, _GxIdeNewKb_serverNameEl, _GxIdeNewKb_userInterfaceLanguageEl, _GxIdeNewKb_userNameEl, _GxIdeNewKb_chShortcutsEl, _GxIdeNewKb_handlerAuthenticationTypeInput,
|
|
17
|
+
var _GxIdeNewKb_advancedTabHasBeenRendered, _GxIdeNewKb_componentLocale, _GxIdeNewKb_frontEndsCheckedMap, _GxIdeNewKb_selectedPrototypingEnvironmentId, _GxIdeNewKb_selectedDataSourceId, _GxIdeNewKb_shortcutsSrc, _GxIdeNewKb_kbSectionsModel, _GxIdeNewKb_authenticationTypeEl, _GxIdeNewKb_collationEl, _GxIdeNewKb_createDataFilesInKBFolderEl, _GxIdeNewKb_databaseNameEl, _GxIdeNewKb_dataSourceEl, _GxIdeNewKb_kbNameEl, _GxIdeNewKb_locationEl, _GxIdeNewKb_locationModeEl, _GxIdeNewKb_locationModeModel, _GxIdeNewKb_locationElRegistered, _GxIdeNewKb_credentialControlsRegistered, _GxIdeNewKb_passwordEl, _GxIdeNewKb_prototypingEnvironmentEl, _GxIdeNewKb_prototypingTargetEl, _GxIdeNewKb_savePasswordEl, _GxIdeNewKb_serverNameEl, _GxIdeNewKb_userInterfaceLanguageEl, _GxIdeNewKb_userNameEl, _GxIdeNewKb_chShortcutsEl, _GxIdeNewKb_computeDefaultDatabaseName, _GxIdeNewKb_kbNameInputHandler, _GxIdeNewKb_databaseNameInputHandler, _GxIdeNewKb_handlerAuthenticationTypeInput, _GxIdeNewKb_handlerCredentialsChanged, _GxIdeNewKb_browseForMoreHandler, _GxIdeNewKb_serverNameChangedHandler, _GxIdeNewKb_classifyServer, _GxIdeNewKb_createDataFilesInKBFolderDisabled, _GxIdeNewKb_sqlAuthMissingCredentials, _GxIdeNewKb_applyCreateDataFilesInKBFolderForServer, _GxIdeNewKb_loadCollationsForCurrentConnection, _GxIdeNewKb_prototypingEnvironmentValueChangedHandler, _GxIdeNewKb_prototypingTargetValueChangedHandler, _GxIdeNewKb_dataSourceValueChangedHandler, _GxIdeNewKb_renderAdvanced, _GxIdeNewKb_renderBasic, _GxIdeNewKb_cancelKbHandler, _GxIdeNewKb_createKbHandler, _GxIdeNewKb_evaluateTooltipRender, _GxIdeNewKb_frontEndCheckboxInputHandler, _GxIdeNewKb_updateFrontEndsCheckedMap, _GxIdeNewKb_getPrototypingEnvironments, _GxIdeNewKb_getDataSources, _GxIdeNewKb_initialSetupAdvancedTab, _GxIdeNewKb_initializeValidatableControlsBasicTab, _GxIdeNewKb_initializeValidatableControlsAdvancedTab, _GxIdeNewKb_selectLocationHandler, _GxIdeNewKb_locationModeChangeHandler, _GxIdeNewKb_tabSelectionChangedHandler, _GxIdeNewKb_loadAdvancedTabData, _GxIdeNewKb_updateFrontEnds;
|
|
18
18
|
import { Host, getAssetPath, h } from "@stencil/core";
|
|
19
19
|
import { getIconPath } from "@genexus/mercury";
|
|
20
20
|
import { config } from "../../common/config";
|
|
@@ -33,7 +33,8 @@ const CSS_BUNDLES = [
|
|
|
33
33
|
"utils/spacing",
|
|
34
34
|
"chameleon/scrollbar"
|
|
35
35
|
];
|
|
36
|
-
const WINDOWS_AUTHENTICATION_VALUE = "
|
|
36
|
+
const WINDOWS_AUTHENTICATION_VALUE = "WINDOWS_AUTHENTICATION";
|
|
37
|
+
const LOCALDB_INSTANCE = "(LocalDB)\\MSSQLLocalDB";
|
|
37
38
|
const MAIN_SECTION_CLASSES = "main";
|
|
38
39
|
const BASIC_SECTION_PARENT_CLASSES = "basic";
|
|
39
40
|
const SYSTEM_ICON = getIconPath({
|
|
@@ -41,8 +42,19 @@ const SYSTEM_ICON = getIconPath({
|
|
|
41
42
|
name: "folder",
|
|
42
43
|
colorType: "primary"
|
|
43
44
|
});
|
|
45
|
+
const WARNING_ICON = getIconPath({
|
|
46
|
+
category: "system",
|
|
47
|
+
name: "warning",
|
|
48
|
+
colorType: "on-interactive"
|
|
49
|
+
});
|
|
50
|
+
const DATABASE_ICON = getIconPath({
|
|
51
|
+
category: "system",
|
|
52
|
+
name: "database",
|
|
53
|
+
colorType: "primary"
|
|
54
|
+
});
|
|
44
55
|
const LOCATION_MODE_DEFAULT = "default";
|
|
45
56
|
const LOCATION_MODE_CUSTOM = "custom";
|
|
57
|
+
const DATABASE_NAME_PREFIX = "GX_KB_";
|
|
46
58
|
const BASIC_TAB_SELECTOR = "basic";
|
|
47
59
|
const ADVANCED_TAB_SELECTOR = "advanced";
|
|
48
60
|
export class GxIdeNewKb {
|
|
@@ -73,6 +85,7 @@ export class GxIdeNewKb {
|
|
|
73
85
|
_GxIdeNewKb_locationModeEl.set(this, void 0);
|
|
74
86
|
_GxIdeNewKb_locationModeModel.set(this, void 0);
|
|
75
87
|
_GxIdeNewKb_locationElRegistered.set(this, false);
|
|
88
|
+
_GxIdeNewKb_credentialControlsRegistered.set(this, false);
|
|
76
89
|
_GxIdeNewKb_passwordEl.set(this, void 0);
|
|
77
90
|
_GxIdeNewKb_prototypingEnvironmentEl.set(this, void 0);
|
|
78
91
|
_GxIdeNewKb_prototypingTargetEl.set(this, void 0);
|
|
@@ -81,23 +94,122 @@ export class GxIdeNewKb {
|
|
|
81
94
|
_GxIdeNewKb_userInterfaceLanguageEl.set(this, void 0);
|
|
82
95
|
_GxIdeNewKb_userNameEl.set(this, void 0);
|
|
83
96
|
_GxIdeNewKb_chShortcutsEl.set(this, void 0);
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
_GxIdeNewKb_computeDefaultDatabaseName.set(this, (kbName) => `${DATABASE_NAME_PREFIX}${kbName !== null && kbName !== void 0 ? kbName : ""}`);
|
|
98
|
+
_GxIdeNewKb_kbNameInputHandler.set(this, (e) => {
|
|
99
|
+
var _a, _b;
|
|
100
|
+
const kbNameValue = ((_a = e.detail) !== null && _a !== void 0 ? _a : (_b = __classPrivateFieldGet(this, _GxIdeNewKb_kbNameEl, "f")) === null || _b === void 0 ? void 0 : _b.value);
|
|
101
|
+
this.databaseNameValue = __classPrivateFieldGet(this, _GxIdeNewKb_computeDefaultDatabaseName, "f").call(this, kbNameValue);
|
|
102
|
+
});
|
|
103
|
+
_GxIdeNewKb_databaseNameInputHandler.set(this, (e) => {
|
|
104
|
+
var _a, _b;
|
|
105
|
+
this.databaseNameValue = ((_a = e.detail) !== null && _a !== void 0 ? _a : (_b = __classPrivateFieldGet(this, _GxIdeNewKb_databaseNameEl, "f")) === null || _b === void 0 ? void 0 : _b.value);
|
|
106
|
+
});
|
|
107
|
+
_GxIdeNewKb_handlerAuthenticationTypeInput.set(this, async (e) => {
|
|
108
|
+
this.authenticationTypeValue = e === null || e === void 0 ? void 0 : e.detail;
|
|
109
|
+
this.collations = [];
|
|
110
|
+
this.defaultCollation = undefined;
|
|
111
|
+
this.connectionStatus = undefined;
|
|
112
|
+
await __classPrivateFieldGet(this, _GxIdeNewKb_loadCollationsForCurrentConnection, "f").call(this);
|
|
113
|
+
});
|
|
114
|
+
_GxIdeNewKb_handlerCredentialsChanged.set(this, async () => {
|
|
115
|
+
var _a, _b, _c, _d;
|
|
116
|
+
this.userNameValue = (_b = (_a = __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f")) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : "";
|
|
117
|
+
this.passwordValue = (_d = (_c = __classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f")) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : "";
|
|
118
|
+
await __classPrivateFieldGet(this, _GxIdeNewKb_loadCollationsForCurrentConnection, "f").call(this);
|
|
119
|
+
});
|
|
120
|
+
_GxIdeNewKb_browseForMoreHandler.set(this, async () => {
|
|
121
|
+
if (!this.browseForMoreCallback) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
this.browseForMoreDialogOpen = true;
|
|
125
|
+
try {
|
|
126
|
+
const selectedInstance = await this.browseForMoreCallback();
|
|
127
|
+
if (selectedInstance) {
|
|
128
|
+
this.serverNameValue = selectedInstance;
|
|
129
|
+
if (__classPrivateFieldGet(this, _GxIdeNewKb_serverNameEl, "f")) {
|
|
130
|
+
__classPrivateFieldGet(this, _GxIdeNewKb_serverNameEl, "f").value = selectedInstance;
|
|
131
|
+
}
|
|
132
|
+
await __classPrivateFieldGet(this, _GxIdeNewKb_serverNameChangedHandler, "f").call(this, new CustomEvent("change", { detail: selectedInstance }));
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
catch (error) {
|
|
136
|
+
}
|
|
137
|
+
finally {
|
|
138
|
+
this.browseForMoreDialogOpen = false;
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
_GxIdeNewKb_serverNameChangedHandler.set(this, async (e) => {
|
|
142
|
+
var _a, _b;
|
|
143
|
+
const selectedInstance = (_a = e === null || e === void 0 ? void 0 : e.detail) !== null && _a !== void 0 ? _a : (_b = e.target) === null || _b === void 0 ? void 0 : _b.value;
|
|
144
|
+
this.serverNameValue = selectedInstance !== null && selectedInstance !== void 0 ? selectedInstance : "";
|
|
145
|
+
__classPrivateFieldGet(this, _GxIdeNewKb_applyCreateDataFilesInKBFolderForServer, "f").call(this);
|
|
146
|
+
await __classPrivateFieldGet(this, _GxIdeNewKb_loadCollationsForCurrentConnection, "f").call(this);
|
|
147
|
+
});
|
|
148
|
+
_GxIdeNewKb_classifyServer.set(this, (serverName) => {
|
|
149
|
+
var _a;
|
|
150
|
+
if (!serverName) {
|
|
151
|
+
return "empty";
|
|
152
|
+
}
|
|
153
|
+
if (serverName.toLowerCase() === LOCALDB_INSTANCE.toLowerCase()) {
|
|
154
|
+
return "localdb";
|
|
155
|
+
}
|
|
156
|
+
const isLocal = ((_a = this.serverInstances) !== null && _a !== void 0 ? _a : []).some(s => { var _a; return ((_a = s.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === serverName.toLowerCase(); });
|
|
157
|
+
return isLocal ? "local" : "remote";
|
|
158
|
+
});
|
|
159
|
+
_GxIdeNewKb_createDataFilesInKBFolderDisabled.set(this, () => {
|
|
160
|
+
const kind = __classPrivateFieldGet(this, _GxIdeNewKb_classifyServer, "f").call(this, this.serverNameValue);
|
|
161
|
+
return kind === "localdb" || kind === "remote" || kind === "empty";
|
|
162
|
+
});
|
|
163
|
+
_GxIdeNewKb_sqlAuthMissingCredentials.set(this, () => {
|
|
164
|
+
const authType = this.authenticationTypeValue;
|
|
165
|
+
if (!authType || authType === WINDOWS_AUTHENTICATION_VALUE) {
|
|
166
|
+
return false;
|
|
167
|
+
}
|
|
168
|
+
return !this.userNameValue || !this.passwordValue;
|
|
98
169
|
});
|
|
99
|
-
|
|
100
|
-
__classPrivateFieldGet(this,
|
|
170
|
+
_GxIdeNewKb_applyCreateDataFilesInKBFolderForServer.set(this, () => {
|
|
171
|
+
const kind = __classPrivateFieldGet(this, _GxIdeNewKb_classifyServer, "f").call(this, this.serverNameValue);
|
|
172
|
+
if (kind === "local" || kind === "localdb") {
|
|
173
|
+
this.createDataFilesInKBFolder = true;
|
|
174
|
+
}
|
|
175
|
+
else if (kind === "remote") {
|
|
176
|
+
this.createDataFilesInKBFolder = false;
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
_GxIdeNewKb_loadCollationsForCurrentConnection.set(this, async () => {
|
|
180
|
+
var _a, _b, _c, _d;
|
|
181
|
+
const selectedInstance = this.serverNameValue;
|
|
182
|
+
if (!selectedInstance ||
|
|
183
|
+
!this.getCollationsForInstanceCallback ||
|
|
184
|
+
this.connectionStatus === "connecting") {
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
const authType = this.authenticationTypeValue;
|
|
188
|
+
const isWindowsAuth = authType === WINDOWS_AUTHENTICATION_VALUE;
|
|
189
|
+
const userName = isWindowsAuth ? undefined : (_a = __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f")) === null || _a === void 0 ? void 0 : _a.value;
|
|
190
|
+
const password = isWindowsAuth ? undefined : (_b = __classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f")) === null || _b === void 0 ? void 0 : _b.value;
|
|
191
|
+
if (!isWindowsAuth && authType && (!userName || !password)) {
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
this.connectionStatus = "connecting";
|
|
195
|
+
try {
|
|
196
|
+
const result = await this.getCollationsForInstanceCallback(selectedInstance, authType, userName, password);
|
|
197
|
+
if (result) {
|
|
198
|
+
this.collations = (_c = result.collations) !== null && _c !== void 0 ? _c : [];
|
|
199
|
+
this.defaultCollation = (_d = result.defaultCollation) !== null && _d !== void 0 ? _d : undefined;
|
|
200
|
+
this.connectionStatus = "success";
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
this.collations = [];
|
|
204
|
+
this.defaultCollation = undefined;
|
|
205
|
+
this.connectionStatus = "failed";
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
catch (_e) {
|
|
209
|
+
this.collations = [];
|
|
210
|
+
this.defaultCollation = undefined;
|
|
211
|
+
this.connectionStatus = "failed";
|
|
212
|
+
}
|
|
101
213
|
});
|
|
102
214
|
_GxIdeNewKb_prototypingEnvironmentValueChangedHandler.set(this, (event) => {
|
|
103
215
|
__classPrivateFieldSet(this, _GxIdeNewKb_selectedPrototypingEnvironmentId, event.detail, "f");
|
|
@@ -112,56 +224,20 @@ export class GxIdeNewKb {
|
|
|
112
224
|
__classPrivateFieldSet(this, _GxIdeNewKb_selectedDataSourceId, __classPrivateFieldGet(this, _GxIdeNewKb_dataSourceEl, "f").value, "f");
|
|
113
225
|
});
|
|
114
226
|
_GxIdeNewKb_renderAdvanced.set(this, () => {
|
|
227
|
+
const showCredentials = this.authenticationTypeValue !== WINDOWS_AUTHENTICATION_VALUE;
|
|
115
228
|
return [
|
|
116
|
-
h("h2", {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.tabTitle),
|
|
120
|
-
h("div", { class: "field-group tab-advanced__field-group" }, h("div", {
|
|
121
|
-
// #server name
|
|
122
|
-
class: "field field-block server-name-field"
|
|
123
|
-
}, h("label", { class: "label", htmlFor: "serverName" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.serverName.label), h("ch-combo-box-render", { class: "combo-box", disabled: this.serverNames.length === 0, placeholder: this.serverNames.length === 0
|
|
124
|
-
? __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.serverName
|
|
229
|
+
h("section", { class: "kb-storage-card", part: "kb-storage-card" }, h("header", { class: "kb-storage-card__header" }, h("div", { class: "kb-storage-card__heading" }, h("h2", { class: "kb-storage-card__title body-semi-bold-m" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.tabTitle))), h("div", { class: "kb-storage-card__grid" }, h("div", { class: "kb-storage-column" }, h("div", { class: "kb-storage-column__title body-regular-xs" }, h("span", { class: "kb-storage-column__title-text" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.connectionGroup), h("span", { class: "kb-storage-column__title-rule", "aria-hidden": "true" })), h("div", { class: "field-group field-group--stacked" }, h("div", { class: "field field-block server-name-field" }, h("label", { class: "label", htmlFor: "serverName" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.serverName.label), h("div", { class: "server-name-wrapper" }, h("ch-combo-box-render", { class: "combo-box", value: this.serverNameValue, ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_serverNameEl, el, "f")), id: "serverName", part: "server-name", model: this.serverInstancesComboBoxModel, suggest: true, suggestDebounce: config.inputDebounce, onInput: __classPrivateFieldGet(this, _GxIdeNewKb_serverNameChangedHandler, "f"), onChange: __classPrivateFieldGet(this, _GxIdeNewKb_serverNameChangedHandler, "f") }), h("button", { class: "button-tertiary button-icon-only", "aria-label": __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.serverName.browseForMore, part: "button-browse-for-more", onClick: __classPrivateFieldGet(this, _GxIdeNewKb_browseForMoreHandler, "f") }, h("ch-image", { class: "icon-m", src: DATABASE_ICON }), !this.browseForMoreDialogOpen && (h("ch-tooltip", { class: "tooltip", actionElement: null, blockAlign: "outside-start", inlineAlign: "center", delay: config.tooltipSettings.delay }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.serverName
|
|
230
|
+
.browseForMore)))), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_serverNameEl, "f"))), h("div", { class: "field field-block database-field" }, h("label", { class: "label", htmlFor: "databaseName" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.databaseName.label), h("ch-edit", { class: "input", value: this.databaseNameValue, id: "databaseName", part: "database-name", onInput: __classPrivateFieldGet(this, _GxIdeNewKb_databaseNameInputHandler, "f"), ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_databaseNameEl, el, "f")) }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_databaseNameEl, "f"))), h("div", { class: "field field-block collation-field" }, h("label", { class: "label", htmlFor: "collation" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.collation.label), h("ch-combo-box-render", { class: "combo-box", disabled: !this.serverNameValue || this.collations.length === 0, placeholder: this.collations.length === 0
|
|
231
|
+
? __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.collation
|
|
125
232
|
.disabledPlaceholder
|
|
126
|
-
: "", value: this.
|
|
127
|
-
// #authentication type
|
|
128
|
-
class: "field field-block authentication-type-field"
|
|
129
|
-
}, h("label", { class: "label", htmlFor: "authenticationType" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.authenticationType.label), h("ch-combo-box-render", { class: "combo-box", disabled: this.authenticationTypes.length === 0, placeholder: this.authenticationTypes.length === 0
|
|
233
|
+
: "", value: this.defaultCollation, ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_collationEl, el, "f")), model: this.collationsComboBoxModel, id: "collation", part: "collation" }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_collationEl, "f"))), h("ch-checkbox", { class: "checkbox", checkedValue: "true", value: this.createDataFilesInKBFolder ? "true" : undefined, disabled: __classPrivateFieldGet(this, _GxIdeNewKb_createDataFilesInKBFolderDisabled, "f").call(this), caption: __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.createDataFilesInKbFolder, part: "create-data-in-kb", id: "createDataFilesInKBFolder", ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_createDataFilesInKBFolderEl, el, "f")) }))), h("div", { class: "kb-storage-column" }, h("div", { class: "kb-storage-column__title body-regular-xs" }, h("span", { class: "kb-storage-column__title-text" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.authenticationGroup), h("span", { class: "kb-storage-column__title-rule", "aria-hidden": "true" })), h("div", { class: "field-group field-group--stacked" }, h("div", { class: "field field-block authentication-type-field" }, h("label", { class: "label", htmlFor: "authenticationType" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.authenticationType.label), h("ch-combo-box-render", { class: "combo-box", disabled: this.authenticationTypes.length === 0, placeholder: this.authenticationTypes.length === 0
|
|
130
234
|
? __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.authenticationType
|
|
131
235
|
.disabledPlaceholder
|
|
132
|
-
: "", value: this.
|
|
236
|
+
: "", value: this.authenticationTypeValue, ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_authenticationTypeEl, el, "f")), model: this.authenticationTypesComboBoxModel, id: "authenticationType", part: "authentication-type", onInput: this.authenticationTypes.length > 0
|
|
133
237
|
? __classPrivateFieldGet(this, _GxIdeNewKb_handlerAuthenticationTypeInput, "f")
|
|
134
|
-
: undefined }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_authenticationTypeEl, "f"))), h("div", {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}, h("label", { class: "label", htmlFor: "databaseName" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.databaseName.label), h("ch-edit", {
|
|
138
|
-
// TODO add placeholder
|
|
139
|
-
class: "input", value: this.databaseName, id: "databaseName", part: "database-name", ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_databaseNameEl, el, "f"))
|
|
140
|
-
}), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_databaseNameEl, "f"))), this.userNameVisible ? (h("div", {
|
|
141
|
-
// #username
|
|
142
|
-
class: "field field-block username-field"
|
|
143
|
-
}, h("label", { class: "label", htmlFor: "userName" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.userName.label), h("ch-edit", {
|
|
144
|
-
// TODO add placeholder
|
|
145
|
-
class: "input", value: this.userName, id: "userName", part: "user-name", ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_userNameEl, el, "f"))
|
|
146
|
-
}), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f")))) : null, h("div", {
|
|
147
|
-
// #collation
|
|
148
|
-
class: "field field-block collation-field"
|
|
149
|
-
}, h("label", { class: "label", htmlFor: "collation" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.collation.label), h("ch-combo-box-render", { class: "combo-box", disabled: this.serverNames.length === 0, placeholder: this.collations.length === 0
|
|
150
|
-
? __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.collation
|
|
151
|
-
.disabledPlaceholder
|
|
152
|
-
: "", value: this.collationsInitialValue, ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_collationEl, el, "f")), model: this.collationsComboBoxModel, id: "collation", part: "collation" }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_collationEl, "f"))), this.passwordVisible ? (h("div", {
|
|
153
|
-
// #password
|
|
154
|
-
class: "field field-block password-field"
|
|
155
|
-
}, h("label", { class: "label", htmlFor: "password" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.password.label), h("ch-edit", {
|
|
156
|
-
// TODO add placeholder
|
|
157
|
-
class: "input", type: "password", value: this.password, id: "password", part: "password", ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_passwordEl, el, "f"))
|
|
158
|
-
}), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f")))) : null, h("ch-checkbox", {
|
|
159
|
-
// #create data in knowledge base folder
|
|
160
|
-
class: "checkbox create-data-in-kb-checkbox", checkedValue: "createDataFilesInKBFolder", caption: __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.createDataFilesInKbFolder, disabled: this.createDataInKbDisabled, part: "create-data-in-kb", id: "createDataFilesInKBFolder", ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_createDataFilesInKBFolderEl, el, "f"))
|
|
161
|
-
}), this.savePasswordVisible ? (h("ch-checkbox", {
|
|
162
|
-
// #save password
|
|
163
|
-
class: "checkbox save-password-checkbox", checkedValue: "password", caption: __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.savePassword, part: "save-password", id: "savePassword", ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_savePasswordEl, el, "f"))
|
|
164
|
-
})) : null)
|
|
238
|
+
: undefined }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_authenticationTypeEl, "f"))), showCredentials ? (h("div", { class: "kb-storage-credentials" }, h("div", { class: "field field-block username-field" }, h("label", { class: "label", htmlFor: "userName" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.userName.label), h("ch-edit", { class: "input", value: this.userName, id: "userName", part: "user-name", ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_userNameEl, el, "f")), onInput: __classPrivateFieldGet(this, _GxIdeNewKb_handlerCredentialsChanged, "f"), debounce: config.inputDebounce }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f"))), h("div", { class: "field field-block password-field" }, h("label", { class: "label", htmlFor: "password" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.password.label), h("ch-edit", { class: "input", type: "password", showPasswordButton: true, value: this.password, id: "password", part: "password", ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_passwordEl, el, "f")), onInput: __classPrivateFieldGet(this, _GxIdeNewKb_handlerCredentialsChanged, "f"), debounce: config.inputDebounce }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f"))), h("ch-checkbox", { class: "checkbox", checkedValue: "password", value: "password", caption: __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.savePassword, part: "save-password", id: "savePassword", ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_savePasswordEl, el, "f")), disabled: true }))) : (h("div", { class: "kb-storage-callout", part: "windows-auth-callout" }, h("ch-image", { class: "icon-l", src: WARNING_ICON, type: "mask" }), h("div", { class: "kb-storage-callout-inner" }, h("span", { class: "kb-storage-callout__title body-semi-bold-s" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced
|
|
239
|
+
.windowsAuthCalloutTitle), h("span", { class: "kb-storage-callout__description body-regular-xs" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced
|
|
240
|
+
.windowsAuthCalloutDescription))))))))
|
|
165
241
|
];
|
|
166
242
|
});
|
|
167
243
|
_GxIdeNewKb_renderBasic.set(this, () => {
|
|
@@ -225,25 +301,12 @@ export class GxIdeNewKb {
|
|
|
225
301
|
savePassword: !!((_m = __classPrivateFieldGet(this, _GxIdeNewKb_savePasswordEl, "f")) === null || _m === void 0 ? void 0 : _m.value),
|
|
226
302
|
serverName: (_o = __classPrivateFieldGet(this, _GxIdeNewKb_serverNameEl, "f")) === null || _o === void 0 ? void 0 : _o.value,
|
|
227
303
|
userInterfaceLanguage: (_p = __classPrivateFieldGet(this, _GxIdeNewKb_userInterfaceLanguageEl, "f")) === null || _p === void 0 ? void 0 : _p.value,
|
|
228
|
-
userName: (_q = __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f")) === null || _q === void 0 ? void 0 : _q.value
|
|
304
|
+
userName: (_q = __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f")) === null || _q === void 0 ? void 0 : _q.value,
|
|
305
|
+
creationMode: this.selectedTab
|
|
229
306
|
}).then((formSubmitResult) => {
|
|
230
307
|
this.validatableControls = validateControls(formSubmitResult, this.validatableControls);
|
|
231
308
|
});
|
|
232
309
|
});
|
|
233
|
-
/**
|
|
234
|
-
* Disable "Create Data in Knowledge Base Folder" if the first Server Name
|
|
235
|
-
* option is selected.
|
|
236
|
-
* */
|
|
237
|
-
// eslint-disable-next-line @stencil-community/own-props-must-be-private
|
|
238
|
-
_GxIdeNewKb_evaluateCreateDataCheckboxEnabled.set(this, (serverNameValue) => {
|
|
239
|
-
var _a;
|
|
240
|
-
if (((_a = this.serverNames[0]) === null || _a === void 0 ? void 0 : _a.id) === serverNameValue) {
|
|
241
|
-
this.createDataInKbDisabled = true;
|
|
242
|
-
}
|
|
243
|
-
else {
|
|
244
|
-
this.createDataInKbDisabled = false;
|
|
245
|
-
}
|
|
246
|
-
});
|
|
247
310
|
// TODO: evaluate if this should be a global helper function.
|
|
248
311
|
// It is used on new-kb as well.
|
|
249
312
|
_GxIdeNewKb_evaluateTooltipRender.set(this, (controlReference) => {
|
|
@@ -251,23 +314,6 @@ export class GxIdeNewKb {
|
|
|
251
314
|
return ((_b = (_a = this.validatableControls) === null || _a === void 0 ? void 0 : _a.get(controlReference === null || controlReference === void 0 ? void 0 : controlReference.id)) === null || _b === void 0 ? void 0 : _b.hasError) &&
|
|
252
315
|
((_c = this.validatableControls.get(controlReference.id)) === null || _c === void 0 ? void 0 : _c.message) && (h("ch-tooltip", { class: "tooltip", actionElement: controlReference, blockAlign: config.tooltipSettings.blockAlign, inlineAlign: config.tooltipSettings.inlineAlign, delay: config.tooltipSettings.delay }, this.validatableControls.get(controlReference.id).message));
|
|
253
316
|
});
|
|
254
|
-
/**
|
|
255
|
-
* If "Authentication Type" is "Windows Authentication", hide User Name,
|
|
256
|
-
* Password, and Save Password fields.
|
|
257
|
-
*/
|
|
258
|
-
// eslint-disable-next-line @stencil-community/own-props-must-be-private
|
|
259
|
-
_GxIdeNewKb_evaluateUserInputsDisplay.set(this, (authenticationTypeValue) => {
|
|
260
|
-
if (authenticationTypeValue === WINDOWS_AUTHENTICATION_VALUE) {
|
|
261
|
-
this.userNameVisible = false;
|
|
262
|
-
this.passwordVisible = false;
|
|
263
|
-
this.savePasswordVisible = false;
|
|
264
|
-
}
|
|
265
|
-
else {
|
|
266
|
-
this.userNameVisible = true;
|
|
267
|
-
this.passwordVisible = true;
|
|
268
|
-
this.savePasswordVisible = true;
|
|
269
|
-
}
|
|
270
|
-
});
|
|
271
317
|
_GxIdeNewKb_frontEndCheckboxInputHandler.set(this, (event) => {
|
|
272
318
|
const checkedValue = event.target.checkedValue;
|
|
273
319
|
const checked = event.detail === checkedValue;
|
|
@@ -330,13 +376,10 @@ export class GxIdeNewKb {
|
|
|
330
376
|
}
|
|
331
377
|
});
|
|
332
378
|
_GxIdeNewKb_initialSetupAdvancedTab.set(this, () => {
|
|
333
|
-
const
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
// map all "Advanced Tab" GxOption[]'s to ComboBoxModel's
|
|
338
|
-
this.watchAuthenticationTypes(this.authenticationTypes);
|
|
339
|
-
this.watchCollations(this.collations);
|
|
379
|
+
const hasWindowsAuth = this.authenticationTypes.some(opt => opt.id === WINDOWS_AUTHENTICATION_VALUE);
|
|
380
|
+
if (hasWindowsAuth) {
|
|
381
|
+
this.authenticationTypeValue = WINDOWS_AUTHENTICATION_VALUE;
|
|
382
|
+
}
|
|
340
383
|
});
|
|
341
384
|
_GxIdeNewKb_initializeValidatableControlsBasicTab.set(this, () => {
|
|
342
385
|
// populate #controlsValidation with the controls that could have errors.
|
|
@@ -398,10 +441,49 @@ export class GxIdeNewKb {
|
|
|
398
441
|
this.locationMode = __classPrivateFieldGet(this, _GxIdeNewKb_locationModeEl, "f").value;
|
|
399
442
|
});
|
|
400
443
|
_GxIdeNewKb_tabSelectionChangedHandler.set(this, (event) => {
|
|
444
|
+
this.selectedTab = event.detail.newSelectedId;
|
|
401
445
|
if (event.detail.newSelectedId === ADVANCED_TAB_SELECTOR) {
|
|
402
|
-
this.advancedTabIsVisible
|
|
403
|
-
|
|
404
|
-
|
|
446
|
+
if (!this.advancedTabIsVisible) {
|
|
447
|
+
this.advancedTabIsVisible = true;
|
|
448
|
+
__classPrivateFieldGet(this, _GxIdeNewKb_loadAdvancedTabData, "f").call(this);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
else {
|
|
452
|
+
this.connectionStatus = undefined;
|
|
453
|
+
}
|
|
454
|
+
});
|
|
455
|
+
_GxIdeNewKb_loadAdvancedTabData.set(this, async () => {
|
|
456
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
457
|
+
if (!this.getAdvancedTabDataCallback || this.loadingAdvancedTab) {
|
|
458
|
+
return;
|
|
459
|
+
}
|
|
460
|
+
this.loadingAdvancedTab = true;
|
|
461
|
+
this.connectionStatus = "connecting";
|
|
462
|
+
try {
|
|
463
|
+
const data = await this.getAdvancedTabDataCallback();
|
|
464
|
+
if (data) {
|
|
465
|
+
if (data.serverName != null) {
|
|
466
|
+
this.serverNameValue = data.serverName;
|
|
467
|
+
__classPrivateFieldGet(this, _GxIdeNewKb_applyCreateDataFilesInKBFolderForServer, "f").call(this);
|
|
468
|
+
}
|
|
469
|
+
this.serverInstances = (_a = data.serverInstances) !== null && _a !== void 0 ? _a : this.serverInstances;
|
|
470
|
+
this.collations = (_b = data.collations) !== null && _b !== void 0 ? _b : this.collations;
|
|
471
|
+
this.authenticationTypes =
|
|
472
|
+
(_c = data.authenticationTypes) !== null && _c !== void 0 ? _c : this.authenticationTypes;
|
|
473
|
+
this.defaultCollation = (_d = data.defaultCollation) !== null && _d !== void 0 ? _d : this.defaultCollation;
|
|
474
|
+
this.authenticationTypeValue =
|
|
475
|
+
(_g = (_f = (_e = data.authenticationTypes) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.id) !== null && _g !== void 0 ? _g : this.authenticationTypeValue;
|
|
476
|
+
this.connectionStatus = "success";
|
|
477
|
+
}
|
|
478
|
+
else {
|
|
479
|
+
this.connectionStatus = "failed";
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
catch (_h) {
|
|
483
|
+
this.connectionStatus = "failed";
|
|
484
|
+
}
|
|
485
|
+
finally {
|
|
486
|
+
this.loadingAdvancedTab = false;
|
|
405
487
|
}
|
|
406
488
|
});
|
|
407
489
|
/**
|
|
@@ -426,32 +508,37 @@ export class GxIdeNewKb {
|
|
|
426
508
|
}
|
|
427
509
|
});
|
|
428
510
|
this.advancedTabIsVisible = false;
|
|
511
|
+
this.loadingAdvancedTab = false;
|
|
512
|
+
this.browseForMoreDialogOpen = false;
|
|
513
|
+
this.databaseNameValue = "";
|
|
429
514
|
this.locationMode = LOCATION_MODE_DEFAULT;
|
|
430
515
|
this.frontEnds = undefined;
|
|
431
516
|
this.validatableControls = new Map();
|
|
432
|
-
this.
|
|
433
|
-
this.
|
|
434
|
-
this.
|
|
435
|
-
this.
|
|
517
|
+
this.connectionStatus = undefined;
|
|
518
|
+
this.userNameValue = "";
|
|
519
|
+
this.passwordValue = "";
|
|
520
|
+
this.authenticationTypes = [];
|
|
436
521
|
this.authenticationTypesComboBoxModel = [];
|
|
437
|
-
this.
|
|
522
|
+
this.authenticationTypeValue = undefined;
|
|
523
|
+
this.collations = [];
|
|
438
524
|
this.collationsComboBoxModel = [];
|
|
439
|
-
this.
|
|
525
|
+
this.defaultCollation = undefined;
|
|
440
526
|
this.defaultDataSourcesComboBoxModel = [];
|
|
441
527
|
this.prototypingTargetsComboBoxModel = [];
|
|
442
528
|
this.prototypingTargetsInitialValue = undefined;
|
|
443
529
|
this.prototypingEnvironmentsComboBoxModel = [];
|
|
444
530
|
this.prototypingEnvironmentsInitialValue = undefined;
|
|
445
|
-
this.
|
|
446
|
-
this.
|
|
531
|
+
this.serverInstances = [];
|
|
532
|
+
this.serverInstancesComboBoxModel = [];
|
|
533
|
+
this.serverNameValue = "";
|
|
447
534
|
this.userInterfaceLanguagesComboBoxModel = [];
|
|
448
535
|
this.userInterfaceLanguagesInitialValue = undefined;
|
|
449
|
-
this.
|
|
536
|
+
this.selectedTab = BASIC_TAB_SELECTOR;
|
|
450
537
|
this.cancelCallback = undefined;
|
|
451
538
|
this.canSetLocation = false;
|
|
452
|
-
this.
|
|
539
|
+
this.getAdvancedTabDataCallback = undefined;
|
|
453
540
|
this.createCallback = undefined;
|
|
454
|
-
this.createDataFilesInKBFolder =
|
|
541
|
+
this.createDataFilesInKBFolder = true;
|
|
455
542
|
this.databaseName = undefined;
|
|
456
543
|
this.defaultDataSources = [];
|
|
457
544
|
this.getDataSourcesCallback = undefined;
|
|
@@ -465,7 +552,8 @@ export class GxIdeNewKb {
|
|
|
465
552
|
this.prototypingTargets = [];
|
|
466
553
|
this.savePassword = false;
|
|
467
554
|
this.selectLocationCallback = undefined;
|
|
468
|
-
this.
|
|
555
|
+
this.browseForMoreCallback = undefined;
|
|
556
|
+
this.getCollationsForInstanceCallback = undefined;
|
|
469
557
|
this.userInterfaceLanguages = [];
|
|
470
558
|
this.userName = undefined;
|
|
471
559
|
}
|
|
@@ -473,14 +561,22 @@ export class GxIdeNewKb {
|
|
|
473
561
|
if (newValue === null || newValue === void 0 ? void 0 : newValue.length) {
|
|
474
562
|
this.authenticationTypesComboBoxModel =
|
|
475
563
|
mapOptionsToComboBoxItemModel(newValue);
|
|
476
|
-
this.
|
|
564
|
+
this.authenticationTypeValue = getSelectedItem(newValue);
|
|
477
565
|
}
|
|
478
566
|
}
|
|
479
567
|
watchCollations(newValue) {
|
|
480
|
-
if (newValue === null || newValue === void 0 ? void 0 : newValue.length) {
|
|
481
|
-
this.collationsComboBoxModel =
|
|
482
|
-
|
|
568
|
+
if (!(newValue === null || newValue === void 0 ? void 0 : newValue.length)) {
|
|
569
|
+
this.collationsComboBoxModel = [];
|
|
570
|
+
return;
|
|
571
|
+
}
|
|
572
|
+
this.collationsComboBoxModel = mapOptionsToComboBoxItemModel(newValue);
|
|
573
|
+
}
|
|
574
|
+
watchServerInstances(newValue) {
|
|
575
|
+
if (!(newValue === null || newValue === void 0 ? void 0 : newValue.length)) {
|
|
576
|
+
this.serverInstancesComboBoxModel = [];
|
|
577
|
+
return;
|
|
483
578
|
}
|
|
579
|
+
this.serverInstancesComboBoxModel = mapOptionsToComboBoxItemModel(newValue);
|
|
484
580
|
}
|
|
485
581
|
watchDefaultDataSources(newValue) {
|
|
486
582
|
if (newValue === null || newValue === void 0 ? void 0 : newValue.length) {
|
|
@@ -506,12 +602,6 @@ export class GxIdeNewKb {
|
|
|
506
602
|
__classPrivateFieldGet(this, _GxIdeNewKb_getPrototypingEnvironments, "f").call(this);
|
|
507
603
|
}
|
|
508
604
|
}
|
|
509
|
-
watchServerNames(newValue) {
|
|
510
|
-
if (newValue === null || newValue === void 0 ? void 0 : newValue.length) {
|
|
511
|
-
this.serverNamesComboBoxModel = mapOptionsToComboBoxItemModel(newValue);
|
|
512
|
-
this.serverNamesInitialValue = getSelectedItem(newValue);
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
605
|
watchUserInterfaceLanguages(newValue) {
|
|
516
606
|
if (newValue === null || newValue === void 0 ? void 0 : newValue.length) {
|
|
517
607
|
this.userInterfaceLanguagesComboBoxModel =
|
|
@@ -520,7 +610,14 @@ export class GxIdeNewKb {
|
|
|
520
610
|
}
|
|
521
611
|
}
|
|
522
612
|
async componentWillLoad() {
|
|
613
|
+
var _a, _b;
|
|
523
614
|
__classPrivateFieldSet(this, _GxIdeNewKb_componentLocale, await Locale.getComponentStrings(this.el), "f");
|
|
615
|
+
this.databaseNameValue = __classPrivateFieldGet(this, _GxIdeNewKb_computeDefaultDatabaseName, "f").call(this, this.kbName);
|
|
616
|
+
if (this.databaseName) {
|
|
617
|
+
this.databaseNameValue = this.databaseName;
|
|
618
|
+
}
|
|
619
|
+
this.userNameValue = (_a = this.userName) !== null && _a !== void 0 ? _a : "";
|
|
620
|
+
this.passwordValue = (_b = this.password) !== null && _b !== void 0 ? _b : "";
|
|
524
621
|
__classPrivateFieldSet(this, _GxIdeNewKb_kbSectionsModel, [
|
|
525
622
|
{
|
|
526
623
|
id: BASIC_TAB_SELECTOR,
|
|
@@ -546,7 +643,6 @@ export class GxIdeNewKb {
|
|
|
546
643
|
this.watchDefaultDataSources(this.defaultDataSources);
|
|
547
644
|
this.watchDefaultPrototypingEnvironments(this.defaultPrototypingEnvironments);
|
|
548
645
|
this.watchPrototypingTargets(this.prototypingTargets);
|
|
549
|
-
this.watchServerNames(this.serverNames);
|
|
550
646
|
this.watchUserInterfaceLanguages(this.userInterfaceLanguages);
|
|
551
647
|
}
|
|
552
648
|
componentDidLoad() {
|
|
@@ -570,6 +666,28 @@ export class GxIdeNewKb {
|
|
|
570
666
|
});
|
|
571
667
|
__classPrivateFieldSet(this, _GxIdeNewKb_locationElRegistered, true, "f");
|
|
572
668
|
}
|
|
669
|
+
// Register credential controls when they become visible (SQL Auth selected)
|
|
670
|
+
if (this.authenticationTypeValue !== WINDOWS_AUTHENTICATION_VALUE &&
|
|
671
|
+
!__classPrivateFieldGet(this, _GxIdeNewKb_credentialControlsRegistered, "f") &&
|
|
672
|
+
__classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f") &&
|
|
673
|
+
__classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f")) {
|
|
674
|
+
this.validatableControls.set(__classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f").id, {
|
|
675
|
+
reference: __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f"),
|
|
676
|
+
hasError: false,
|
|
677
|
+
message: undefined
|
|
678
|
+
});
|
|
679
|
+
this.validatableControls.set(__classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f").id, {
|
|
680
|
+
reference: __classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f"),
|
|
681
|
+
hasError: false,
|
|
682
|
+
message: undefined
|
|
683
|
+
});
|
|
684
|
+
__classPrivateFieldSet(this, _GxIdeNewKb_credentialControlsRegistered, true, "f");
|
|
685
|
+
}
|
|
686
|
+
// Reset flag when switching back to Windows Auth so they re-register next time
|
|
687
|
+
if (this.authenticationTypeValue === WINDOWS_AUTHENTICATION_VALUE &&
|
|
688
|
+
__classPrivateFieldGet(this, _GxIdeNewKb_credentialControlsRegistered, "f")) {
|
|
689
|
+
__classPrivateFieldSet(this, _GxIdeNewKb_credentialControlsRegistered, false, "f");
|
|
690
|
+
}
|
|
573
691
|
}
|
|
574
692
|
/**
|
|
575
693
|
* Suspends or reactivates the shortcuts
|
|
@@ -596,25 +714,30 @@ export class GxIdeNewKb {
|
|
|
596
714
|
class: "field field-inline kb-name"
|
|
597
715
|
}, h("label", { class: "label kb-label", htmlFor: "kbName" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").header.kbName), h("ch-edit", {
|
|
598
716
|
// TODO add placeholder
|
|
599
|
-
autoFocus: true, class: "input kb-input", placeholder: "SalesInventory", value: this.kbName, ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_kbNameEl, el, "f")), id: "kbName", part: "kb-name"
|
|
717
|
+
autoFocus: true, class: "input kb-input", placeholder: "SalesInventory", value: this.kbName, onInput: __classPrivateFieldGet(this, _GxIdeNewKb_kbNameInputHandler, "f"), ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_kbNameEl, el, "f")), id: "kbName", part: "kb-name"
|
|
600
718
|
}), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_kbNameEl, "f"))), this.canSetLocation && (h("div", { class: "location-wrapper" }, h("label", { class: "label location-label" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").header.kbLocation), h("ch-radio-group-render", { class: "radio-group", model: __classPrivateFieldGet(this, _GxIdeNewKb_locationModeModel, "f"), value: LOCATION_MODE_DEFAULT, onChange: __classPrivateFieldGet(this, _GxIdeNewKb_locationModeChangeHandler, "f"), ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_locationModeEl, el, "f")) }), this.locationMode === LOCATION_MODE_CUSTOM && (h("div", { class: "location-custom-wrapper" }, h("div", { class: "location-field" }, h("ch-edit", { class: "input", value: this.kbLocation, ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_locationEl, el, "f")), id: "kbLocation", part: "kb-location" }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_locationEl, "f"))), h("button", { class: "button-tertiary button-icon-only location-icon", "aria-label": __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").header.selectLocationButton, title: __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").header.selectLocationButton, part: "button-select-location", onClick: __classPrivateFieldGet(this, _GxIdeNewKb_selectLocationHandler, "f") }, h("ch-image", { class: "icon-m", src: SYSTEM_ICON }))))))), this.isAdvanced ? (h("ch-tab-render", {
|
|
601
719
|
// #tab
|
|
602
720
|
class: {
|
|
603
721
|
scrollable: true,
|
|
604
722
|
tab: true,
|
|
605
723
|
[MAIN_SECTION_CLASSES]: true
|
|
606
|
-
}, tabListPosition: "block-start", model: __classPrivateFieldGet(this, _GxIdeNewKb_kbSectionsModel, "f"), selectedId: BASIC_TAB_SELECTOR, overflow: "auto", contain: "size", onSelectedItemChange:
|
|
607
|
-
}, h("div", { slot: BASIC_TAB_SELECTOR, class: BASIC_SECTION_PARENT_CLASSES, part: "tab-button-basic" }, __classPrivateFieldGet(this, _GxIdeNewKb_renderBasic, "f").call(this)), this.advancedTabIsVisible && (h("div", { slot: ADVANCED_TAB_SELECTOR, class: "advanced
|
|
608
|
-
"
|
|
609
|
-
"dialog-footer-with-border":
|
|
724
|
+
}, tabListPosition: "block-start", model: __classPrivateFieldGet(this, _GxIdeNewKb_kbSectionsModel, "f"), selectedId: BASIC_TAB_SELECTOR, overflow: "auto", contain: "size", onSelectedItemChange: __classPrivateFieldGet(this, _GxIdeNewKb_tabSelectionChangedHandler, "f")
|
|
725
|
+
}, h("div", { slot: BASIC_TAB_SELECTOR, class: BASIC_SECTION_PARENT_CLASSES, part: "tab-button-basic" }, __classPrivateFieldGet(this, _GxIdeNewKb_renderBasic, "f").call(this)), this.advancedTabIsVisible && (h("div", { slot: ADVANCED_TAB_SELECTOR, class: "advanced", part: "tab-button-advanced" }, __classPrivateFieldGet(this, _GxIdeNewKb_renderAdvanced, "f").call(this))))) : (h("div", { class: MAIN_SECTION_CLASSES }, h("div", { class: BASIC_SECTION_PARENT_CLASSES }, __classPrivateFieldGet(this, _GxIdeNewKb_renderBasic, "f").call(this)))), h("footer", { class: {
|
|
726
|
+
"footer": true,
|
|
727
|
+
"dialog-footer-with-border": true,
|
|
610
728
|
"spacing-body-block-end": true,
|
|
611
729
|
"spacing-body-inline": true
|
|
612
|
-
} }, h("
|
|
730
|
+
} }, this.connectionStatus && (h("span", { class: {
|
|
731
|
+
"connection-status": true,
|
|
732
|
+
[`connection-status--${this.connectionStatus}`]: true
|
|
733
|
+
}, part: `connection-status connection-status-${this.connectionStatus}` }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").footer.connectionStatus[this.connectionStatus])), h("div", { class: "buttons-spacer" }, h("button", {
|
|
613
734
|
// #cancel
|
|
614
735
|
class: "button-secondary", id: "button-cancel", onClick: __classPrivateFieldGet(this, _GxIdeNewKb_cancelKbHandler, "f"), part: "button-cancel"
|
|
615
736
|
}, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").footer.btnCancel), h("button", {
|
|
616
737
|
// #create
|
|
617
|
-
class: "button-primary", id: "button-create",
|
|
738
|
+
class: "button-primary", id: "button-create", disabled: this.connectionStatus === "failed" ||
|
|
739
|
+
this.connectionStatus === "connecting" ||
|
|
740
|
+
__classPrivateFieldGet(this, _GxIdeNewKb_sqlAuthMissingCredentials, "f").call(this), onClick: __classPrivateFieldGet(this, _GxIdeNewKb_createKbHandler, "f"), part: "button-create"
|
|
618
741
|
}, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").footer.btnCreate))))));
|
|
619
742
|
}
|
|
620
743
|
static get is() { return "gx-ide-new-kb"; }
|
|
@@ -632,28 +755,6 @@ export class GxIdeNewKb {
|
|
|
632
755
|
static get assetsDirs() { return ["gx-ide-assets/new-kb"]; }
|
|
633
756
|
static get properties() {
|
|
634
757
|
return {
|
|
635
|
-
"authenticationTypes": {
|
|
636
|
-
"type": "unknown",
|
|
637
|
-
"mutable": false,
|
|
638
|
-
"complexType": {
|
|
639
|
-
"original": "GxOption[]",
|
|
640
|
-
"resolved": "GxOption[]",
|
|
641
|
-
"references": {
|
|
642
|
-
"GxOption": {
|
|
643
|
-
"location": "import",
|
|
644
|
-
"path": "../../common/types",
|
|
645
|
-
"id": "src/common/types.ts::GxOption"
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
},
|
|
649
|
-
"required": false,
|
|
650
|
-
"optional": false,
|
|
651
|
-
"docs": {
|
|
652
|
-
"tags": [],
|
|
653
|
-
"text": "Defines the type of authentication for the connection to the previously defined database"
|
|
654
|
-
},
|
|
655
|
-
"defaultValue": "[]"
|
|
656
|
-
},
|
|
657
758
|
"cancelCallback": {
|
|
658
759
|
"type": "unknown",
|
|
659
760
|
"mutable": false,
|
|
@@ -693,25 +794,25 @@ export class GxIdeNewKb {
|
|
|
693
794
|
"reflect": false,
|
|
694
795
|
"defaultValue": "false"
|
|
695
796
|
},
|
|
696
|
-
"
|
|
797
|
+
"getAdvancedTabDataCallback": {
|
|
697
798
|
"type": "unknown",
|
|
698
799
|
"mutable": false,
|
|
699
800
|
"complexType": {
|
|
700
|
-
"original": "
|
|
701
|
-
"resolved": "
|
|
801
|
+
"original": "GetAdvancedTabDataCallback",
|
|
802
|
+
"resolved": "() => Promise<AdvancedTabData>",
|
|
702
803
|
"references": {
|
|
703
|
-
"
|
|
704
|
-
"location": "
|
|
705
|
-
"path": "
|
|
706
|
-
"id": "src/
|
|
804
|
+
"GetAdvancedTabDataCallback": {
|
|
805
|
+
"location": "local",
|
|
806
|
+
"path": "/home/runner/work/genexus-ide-ui/genexus-ide-ui/src/components/new-kb/new-kb.tsx",
|
|
807
|
+
"id": "src/components/new-kb/new-kb.tsx::GetAdvancedTabDataCallback"
|
|
707
808
|
}
|
|
708
809
|
}
|
|
709
810
|
},
|
|
710
|
-
"required":
|
|
811
|
+
"required": false,
|
|
711
812
|
"optional": false,
|
|
712
813
|
"docs": {
|
|
713
814
|
"tags": [],
|
|
714
|
-
"text": "
|
|
815
|
+
"text": "Callback invoked when the advanced tab is selected for the first time.\nReturns the data needed to populate the advanced tab fields lazily,\navoiding unnecessary loading at component initialization."
|
|
715
816
|
}
|
|
716
817
|
},
|
|
717
818
|
"createCallback": {
|
|
@@ -737,7 +838,7 @@ export class GxIdeNewKb {
|
|
|
737
838
|
},
|
|
738
839
|
"createDataFilesInKBFolder": {
|
|
739
840
|
"type": "boolean",
|
|
740
|
-
"mutable":
|
|
841
|
+
"mutable": true,
|
|
741
842
|
"complexType": {
|
|
742
843
|
"original": "boolean",
|
|
743
844
|
"resolved": "boolean",
|
|
@@ -747,11 +848,11 @@ export class GxIdeNewKb {
|
|
|
747
848
|
"optional": false,
|
|
748
849
|
"docs": {
|
|
749
850
|
"tags": [],
|
|
750
|
-
"text": "
|
|
851
|
+
"text": "It allows defining whether the option to create the data files in the KB folder will be shown in the advanced tab"
|
|
751
852
|
},
|
|
752
853
|
"attribute": "create-data-files-in-k-b-folder",
|
|
753
854
|
"reflect": false,
|
|
754
|
-
"defaultValue": "
|
|
855
|
+
"defaultValue": "true"
|
|
755
856
|
},
|
|
756
857
|
"databaseName": {
|
|
757
858
|
"type": "string",
|
|
@@ -1007,17 +1108,17 @@ export class GxIdeNewKb {
|
|
|
1007
1108
|
"text": "This is a function provided by the developer that returns a string, with the location path"
|
|
1008
1109
|
}
|
|
1009
1110
|
},
|
|
1010
|
-
"
|
|
1111
|
+
"browseForMoreCallback": {
|
|
1011
1112
|
"type": "unknown",
|
|
1012
1113
|
"mutable": false,
|
|
1013
1114
|
"complexType": {
|
|
1014
|
-
"original": "
|
|
1015
|
-
"resolved": "
|
|
1115
|
+
"original": "BrowseForMoreCallback",
|
|
1116
|
+
"resolved": "() => Promise<string>",
|
|
1016
1117
|
"references": {
|
|
1017
|
-
"
|
|
1018
|
-
"location": "
|
|
1019
|
-
"path": "
|
|
1020
|
-
"id": "src/
|
|
1118
|
+
"BrowseForMoreCallback": {
|
|
1119
|
+
"location": "local",
|
|
1120
|
+
"path": "/home/runner/work/genexus-ide-ui/genexus-ide-ui/src/components/new-kb/new-kb.tsx",
|
|
1121
|
+
"id": "src/components/new-kb/new-kb.tsx::BrowseForMoreCallback"
|
|
1021
1122
|
}
|
|
1022
1123
|
}
|
|
1023
1124
|
},
|
|
@@ -1025,9 +1126,29 @@ export class GxIdeNewKb {
|
|
|
1025
1126
|
"optional": false,
|
|
1026
1127
|
"docs": {
|
|
1027
1128
|
"tags": [],
|
|
1028
|
-
"text": "Name of the
|
|
1129
|
+
"text": "Callback invoked when the user clicks the \"Browse for more...\" button next\nto the Server Name combo. The host is expected to display its own server\npicker UI and resolve with the name of the selected server instance, which\nwill be set as the value of the Server Name combo."
|
|
1130
|
+
}
|
|
1131
|
+
},
|
|
1132
|
+
"getCollationsForInstanceCallback": {
|
|
1133
|
+
"type": "unknown",
|
|
1134
|
+
"mutable": false,
|
|
1135
|
+
"complexType": {
|
|
1136
|
+
"original": "GetCollationsForInstanceCallback",
|
|
1137
|
+
"resolved": "(serverInstance: string, authType?: string, userName?: string, password?: string) => Promise<CollationsForInstanceResult>",
|
|
1138
|
+
"references": {
|
|
1139
|
+
"GetCollationsForInstanceCallback": {
|
|
1140
|
+
"location": "local",
|
|
1141
|
+
"path": "/home/runner/work/genexus-ide-ui/genexus-ide-ui/src/components/new-kb/new-kb.tsx",
|
|
1142
|
+
"id": "src/components/new-kb/new-kb.tsx::GetCollationsForInstanceCallback"
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1029
1145
|
},
|
|
1030
|
-
"
|
|
1146
|
+
"required": false,
|
|
1147
|
+
"optional": false,
|
|
1148
|
+
"docs": {
|
|
1149
|
+
"tags": [],
|
|
1150
|
+
"text": "Callback invoked when the user selects a different server instance,\nallowing the host to fetch the collations available on that instance."
|
|
1151
|
+
}
|
|
1031
1152
|
},
|
|
1032
1153
|
"userInterfaceLanguages": {
|
|
1033
1154
|
"type": "unknown",
|
|
@@ -1053,7 +1174,7 @@ export class GxIdeNewKb {
|
|
|
1053
1174
|
},
|
|
1054
1175
|
"userName": {
|
|
1055
1176
|
"type": "string",
|
|
1056
|
-
"mutable":
|
|
1177
|
+
"mutable": true,
|
|
1057
1178
|
"complexType": {
|
|
1058
1179
|
"original": "string",
|
|
1059
1180
|
"resolved": "string",
|
|
@@ -1063,7 +1184,7 @@ export class GxIdeNewKb {
|
|
|
1063
1184
|
"optional": false,
|
|
1064
1185
|
"docs": {
|
|
1065
1186
|
"tags": [],
|
|
1066
|
-
"text": "Username for the database connection. Visible if the Authentication Type is different from Windows Authentication
|
|
1187
|
+
"text": "Username for the database connection. Visible if the Authentication Type is different from Windows Authentication"
|
|
1067
1188
|
},
|
|
1068
1189
|
"attribute": "user-name",
|
|
1069
1190
|
"reflect": false
|
|
@@ -1073,26 +1194,32 @@ export class GxIdeNewKb {
|
|
|
1073
1194
|
static get states() {
|
|
1074
1195
|
return {
|
|
1075
1196
|
"advancedTabIsVisible": {},
|
|
1197
|
+
"loadingAdvancedTab": {},
|
|
1198
|
+
"browseForMoreDialogOpen": {},
|
|
1199
|
+
"databaseNameValue": {},
|
|
1076
1200
|
"locationMode": {},
|
|
1077
1201
|
"frontEnds": {},
|
|
1078
1202
|
"validatableControls": {},
|
|
1079
|
-
"
|
|
1080
|
-
"
|
|
1081
|
-
"
|
|
1082
|
-
"
|
|
1203
|
+
"connectionStatus": {},
|
|
1204
|
+
"userNameValue": {},
|
|
1205
|
+
"passwordValue": {},
|
|
1206
|
+
"authenticationTypes": {},
|
|
1083
1207
|
"authenticationTypesComboBoxModel": {},
|
|
1084
|
-
"
|
|
1208
|
+
"authenticationTypeValue": {},
|
|
1209
|
+
"collations": {},
|
|
1085
1210
|
"collationsComboBoxModel": {},
|
|
1086
|
-
"
|
|
1211
|
+
"defaultCollation": {},
|
|
1087
1212
|
"defaultDataSourcesComboBoxModel": {},
|
|
1088
1213
|
"prototypingTargetsComboBoxModel": {},
|
|
1089
1214
|
"prototypingTargetsInitialValue": {},
|
|
1090
1215
|
"prototypingEnvironmentsComboBoxModel": {},
|
|
1091
1216
|
"prototypingEnvironmentsInitialValue": {},
|
|
1092
|
-
"
|
|
1093
|
-
"
|
|
1217
|
+
"serverInstances": {},
|
|
1218
|
+
"serverInstancesComboBoxModel": {},
|
|
1219
|
+
"serverNameValue": {},
|
|
1094
1220
|
"userInterfaceLanguagesComboBoxModel": {},
|
|
1095
|
-
"userInterfaceLanguagesInitialValue": {}
|
|
1221
|
+
"userInterfaceLanguagesInitialValue": {},
|
|
1222
|
+
"selectedTab": {}
|
|
1096
1223
|
};
|
|
1097
1224
|
}
|
|
1098
1225
|
static get methods() {
|
|
@@ -1128,6 +1255,9 @@ export class GxIdeNewKb {
|
|
|
1128
1255
|
}, {
|
|
1129
1256
|
"propName": "collations",
|
|
1130
1257
|
"methodName": "watchCollations"
|
|
1258
|
+
}, {
|
|
1259
|
+
"propName": "serverInstances",
|
|
1260
|
+
"methodName": "watchServerInstances"
|
|
1131
1261
|
}, {
|
|
1132
1262
|
"propName": "defaultDataSources",
|
|
1133
1263
|
"methodName": "watchDefaultDataSources"
|
|
@@ -1137,14 +1267,11 @@ export class GxIdeNewKb {
|
|
|
1137
1267
|
}, {
|
|
1138
1268
|
"propName": "prototypingTargets",
|
|
1139
1269
|
"methodName": "watchPrototypingTargets"
|
|
1140
|
-
}, {
|
|
1141
|
-
"propName": "serverNames",
|
|
1142
|
-
"methodName": "watchServerNames"
|
|
1143
1270
|
}, {
|
|
1144
1271
|
"propName": "userInterfaceLanguages",
|
|
1145
1272
|
"methodName": "watchUserInterfaceLanguages"
|
|
1146
1273
|
}];
|
|
1147
1274
|
}
|
|
1148
1275
|
}
|
|
1149
|
-
_GxIdeNewKb_advancedTabHasBeenRendered = new WeakMap(), _GxIdeNewKb_componentLocale = new WeakMap(), _GxIdeNewKb_frontEndsCheckedMap = new WeakMap(), _GxIdeNewKb_selectedPrototypingEnvironmentId = new WeakMap(), _GxIdeNewKb_selectedDataSourceId = new WeakMap(), _GxIdeNewKb_shortcutsSrc = new WeakMap(), _GxIdeNewKb_kbSectionsModel = new WeakMap(), _GxIdeNewKb_authenticationTypeEl = new WeakMap(), _GxIdeNewKb_collationEl = new WeakMap(), _GxIdeNewKb_createDataFilesInKBFolderEl = new WeakMap(), _GxIdeNewKb_databaseNameEl = new WeakMap(), _GxIdeNewKb_dataSourceEl = new WeakMap(), _GxIdeNewKb_kbNameEl = new WeakMap(), _GxIdeNewKb_locationEl = new WeakMap(), _GxIdeNewKb_locationModeEl = new WeakMap(), _GxIdeNewKb_locationModeModel = new WeakMap(), _GxIdeNewKb_locationElRegistered = new WeakMap(), _GxIdeNewKb_passwordEl = new WeakMap(), _GxIdeNewKb_prototypingEnvironmentEl = new WeakMap(), _GxIdeNewKb_prototypingTargetEl = new WeakMap(), _GxIdeNewKb_savePasswordEl = new WeakMap(), _GxIdeNewKb_serverNameEl = new WeakMap(), _GxIdeNewKb_userInterfaceLanguageEl = new WeakMap(), _GxIdeNewKb_userNameEl = new WeakMap(), _GxIdeNewKb_chShortcutsEl = new WeakMap(), _GxIdeNewKb_handlerAuthenticationTypeInput = new WeakMap(),
|
|
1276
|
+
_GxIdeNewKb_advancedTabHasBeenRendered = new WeakMap(), _GxIdeNewKb_componentLocale = new WeakMap(), _GxIdeNewKb_frontEndsCheckedMap = new WeakMap(), _GxIdeNewKb_selectedPrototypingEnvironmentId = new WeakMap(), _GxIdeNewKb_selectedDataSourceId = new WeakMap(), _GxIdeNewKb_shortcutsSrc = new WeakMap(), _GxIdeNewKb_kbSectionsModel = new WeakMap(), _GxIdeNewKb_authenticationTypeEl = new WeakMap(), _GxIdeNewKb_collationEl = new WeakMap(), _GxIdeNewKb_createDataFilesInKBFolderEl = new WeakMap(), _GxIdeNewKb_databaseNameEl = new WeakMap(), _GxIdeNewKb_dataSourceEl = new WeakMap(), _GxIdeNewKb_kbNameEl = new WeakMap(), _GxIdeNewKb_locationEl = new WeakMap(), _GxIdeNewKb_locationModeEl = new WeakMap(), _GxIdeNewKb_locationModeModel = new WeakMap(), _GxIdeNewKb_locationElRegistered = new WeakMap(), _GxIdeNewKb_credentialControlsRegistered = new WeakMap(), _GxIdeNewKb_passwordEl = new WeakMap(), _GxIdeNewKb_prototypingEnvironmentEl = new WeakMap(), _GxIdeNewKb_prototypingTargetEl = new WeakMap(), _GxIdeNewKb_savePasswordEl = new WeakMap(), _GxIdeNewKb_serverNameEl = new WeakMap(), _GxIdeNewKb_userInterfaceLanguageEl = new WeakMap(), _GxIdeNewKb_userNameEl = new WeakMap(), _GxIdeNewKb_chShortcutsEl = new WeakMap(), _GxIdeNewKb_computeDefaultDatabaseName = new WeakMap(), _GxIdeNewKb_kbNameInputHandler = new WeakMap(), _GxIdeNewKb_databaseNameInputHandler = new WeakMap(), _GxIdeNewKb_handlerAuthenticationTypeInput = new WeakMap(), _GxIdeNewKb_handlerCredentialsChanged = new WeakMap(), _GxIdeNewKb_browseForMoreHandler = new WeakMap(), _GxIdeNewKb_serverNameChangedHandler = new WeakMap(), _GxIdeNewKb_classifyServer = new WeakMap(), _GxIdeNewKb_createDataFilesInKBFolderDisabled = new WeakMap(), _GxIdeNewKb_sqlAuthMissingCredentials = new WeakMap(), _GxIdeNewKb_applyCreateDataFilesInKBFolderForServer = new WeakMap(), _GxIdeNewKb_loadCollationsForCurrentConnection = new WeakMap(), _GxIdeNewKb_prototypingEnvironmentValueChangedHandler = new WeakMap(), _GxIdeNewKb_prototypingTargetValueChangedHandler = new WeakMap(), _GxIdeNewKb_dataSourceValueChangedHandler = new WeakMap(), _GxIdeNewKb_renderAdvanced = new WeakMap(), _GxIdeNewKb_renderBasic = new WeakMap(), _GxIdeNewKb_cancelKbHandler = new WeakMap(), _GxIdeNewKb_createKbHandler = new WeakMap(), _GxIdeNewKb_evaluateTooltipRender = new WeakMap(), _GxIdeNewKb_frontEndCheckboxInputHandler = new WeakMap(), _GxIdeNewKb_updateFrontEndsCheckedMap = new WeakMap(), _GxIdeNewKb_getPrototypingEnvironments = new WeakMap(), _GxIdeNewKb_getDataSources = new WeakMap(), _GxIdeNewKb_initialSetupAdvancedTab = new WeakMap(), _GxIdeNewKb_initializeValidatableControlsBasicTab = new WeakMap(), _GxIdeNewKb_initializeValidatableControlsAdvancedTab = new WeakMap(), _GxIdeNewKb_selectLocationHandler = new WeakMap(), _GxIdeNewKb_locationModeChangeHandler = new WeakMap(), _GxIdeNewKb_tabSelectionChangedHandler = new WeakMap(), _GxIdeNewKb_loadAdvancedTabData = new WeakMap(), _GxIdeNewKb_updateFrontEnds = new WeakMap();
|
|
1150
1277
|
//# sourceMappingURL=new-kb.js.map
|