@genexus/genexus-ide-ui 3.2.9 → 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.
Files changed (54) hide show
  1. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  2. package/dist/cjs/gx-ide-db-instance-selector.cjs.entry.js +147 -0
  3. package/dist/cjs/gx-ide-db-instance-selector.cjs.entry.js.map +1 -0
  4. package/dist/cjs/gx-ide-new-kb.cjs.entry.js +261 -138
  5. package/dist/cjs/gx-ide-new-kb.cjs.entry.js.map +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/collection-manifest.json +1 -0
  8. package/dist/collection/components/db-instance-selector/db-instance-selector.css +20 -0
  9. package/dist/collection/components/db-instance-selector/db-instance-selector.js +262 -0
  10. package/dist/collection/components/db-instance-selector/db-instance-selector.js.map +1 -0
  11. package/dist/collection/components/db-instance-selector/gx-ide-assets/db-instance-selector/langs/db-instance-selector.lang.en.json +14 -0
  12. package/dist/collection/components/db-instance-selector/gx-ide-assets/db-instance-selector/langs/db-instance-selector.lang.ja.json +14 -0
  13. package/dist/collection/components/db-instance-selector/gx-ide-assets/db-instance-selector/langs/db-instance-selector.lang.zh.json +14 -0
  14. package/dist/collection/components/db-instance-selector/gx-ide-assets/db-instance-selector/shortcuts.json +15 -0
  15. package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.en.json +17 -4
  16. package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.ja.json +17 -4
  17. package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.zh.json +17 -4
  18. package/dist/collection/components/new-kb/new-kb.css +122 -17
  19. package/dist/collection/components/new-kb/new-kb.js +320 -193
  20. package/dist/collection/components/new-kb/new-kb.js.map +1 -1
  21. package/dist/collection/components/new-kb/tests/new-kb.e2e.js +48 -60
  22. package/dist/collection/components/new-kb/tests/new-kb.e2e.js.map +1 -1
  23. package/dist/collection/testing/locale.e2e.js +1 -0
  24. package/dist/collection/testing/locale.e2e.js.map +1 -1
  25. package/dist/components/gx-ide-db-instance-selector.d.ts +11 -0
  26. package/dist/components/gx-ide-db-instance-selector.js +168 -0
  27. package/dist/components/gx-ide-db-instance-selector.js.map +1 -0
  28. package/dist/components/gx-ide-new-kb.js +281 -152
  29. package/dist/components/gx-ide-new-kb.js.map +1 -1
  30. package/dist/esm/genexus-ide-ui.js +1 -1
  31. package/dist/esm/gx-ide-db-instance-selector.entry.js +143 -0
  32. package/dist/esm/gx-ide-db-instance-selector.entry.js.map +1 -0
  33. package/dist/esm/gx-ide-new-kb.entry.js +261 -138
  34. package/dist/esm/gx-ide-new-kb.entry.js.map +1 -1
  35. package/dist/esm/loader.js +1 -1
  36. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  37. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
  38. package/dist/genexus-ide-ui/gx-ide-assets/db-instance-selector/langs/db-instance-selector.lang.en.json +14 -0
  39. package/dist/genexus-ide-ui/gx-ide-assets/db-instance-selector/langs/db-instance-selector.lang.ja.json +14 -0
  40. package/dist/genexus-ide-ui/gx-ide-assets/db-instance-selector/langs/db-instance-selector.lang.zh.json +14 -0
  41. package/dist/genexus-ide-ui/gx-ide-assets/db-instance-selector/shortcuts.json +15 -0
  42. package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.en.json +17 -4
  43. package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.ja.json +17 -4
  44. package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.zh.json +17 -4
  45. package/dist/genexus-ide-ui/p-c1db7f38.entry.js +182 -0
  46. package/dist/genexus-ide-ui/p-c1db7f38.entry.js.map +1 -0
  47. package/dist/genexus-ide-ui/p-eeae9dd5.entry.js +1020 -0
  48. package/dist/genexus-ide-ui/p-eeae9dd5.entry.js.map +1 -0
  49. package/dist/types/components/db-instance-selector/db-instance-selector.d.ts +39 -0
  50. package/dist/types/components/new-kb/new-kb.d.ts +51 -23
  51. package/dist/types/components.d.ts +135 -84
  52. package/package.json +1 -1
  53. package/dist/genexus-ide-ui/p-76e1c357.entry.js +0 -802
  54. package/dist/genexus-ide-ui/p-76e1c357.entry.js.map +0 -1
@@ -15,7 +15,7 @@ const helpers = require('./helpers-bb6622f5.js');
15
15
  const formValidation = require('./form-validation-54acc775.js');
16
16
  const array = require('./array-b1e04a85.js');
17
17
 
18
- const newKbCss = "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}";
18
+ const newKbCss = ":host{display:grid;block-size:100%;overflow:auto;grid-template-rows:max-content 1fr max-content}.section{display:contents}.header-one-col{grid-template-columns:1fr}.location-wrapper{display:flex;align-items:center;gap:var(--spacing-gap-xs);min-block-size:var(--control-block-size)}.location-custom-wrapper{display:flex;align-items:center;gap:var(--spacing-gap-xs);flex-grow:1;min-inline-size:0}.location-field{flex-grow:1;min-inline-size:0}.location-field>.input{inline-size:100%}.basic{display:grid;grid-template:\"basic-top basic-top\" max-content \"back-end front-end\" 1fr;grid-template-columns:1fr 1fr}.basic__header{grid-area:basic-top;grid-template-columns:1fr 1fr}.dialog-header__back-end,.dialog-header__front-end{padding-block-start:16px}.main__back-end{border-inline-end:var(--section-common-border)}.main__back-end,.main__front-end{grid-auto-rows:max-content;padding-block:12px;overflow:auto}.section__back-end{grid-area:back-end;grid-auto-rows:max-content}.section__front-end{grid-area:front-end}.section__back-end,.section__front-end{display:grid;grid-template-rows:max-content 1fr;overflow:auto}.basic,.advanced{padding-block-start:12px;overflow:auto;block-size:100%}.kb-storage-card{display:flex;flex-direction:column;gap:var(--spacing-gap-l);padding-inline:var(--spacing-padding-xl)}.kb-storage-card__header{display:flex;align-items:center;gap:var(--spacing-gap-s);padding-block-end:var(--spacing-padding-m);border-bottom:1px solid var(--color-border-surface-on-elevation-1)}.kb-storage-card__heading{display:flex;flex-direction:column;gap:var(--spacing-gap-xs);min-inline-size:0}.kb-storage-card__title{margin:0;color:var(--color-text-neutral-default)}.kb-storage-card__grid{display:grid;grid-template-columns:1fr 1fr;column-gap:var(--spacing-gap-xl);row-gap:var(--spacing-gap-l)}.kb-storage-column{display:flex;flex-direction:column;gap:var(--spacing-gap-m);min-inline-size:0}.kb-storage-column__title{display:flex;align-items:center;gap:var(--spacing-gap-s);color:var(--color-text-neutral-disabled);text-transform:uppercase;letter-spacing:0.04em}.kb-storage-column__title-text{white-space:nowrap}.kb-storage-column__title-rule{flex:1;block-size:1px;background-color:var(--color-border-surface-on-elevation-1)}.field-group--stacked{display:flex;flex-direction:column;gap:var(--spacing-gap-m)}.server-name-wrapper{display:grid;grid-template-columns:1fr max-content;gap:var(--spacing-gap-xs);min-inline-size:0}.kb-storage-credentials{display:flex;flex-direction:column;gap:var(--spacing-gap-m)}.kb-storage-callout{display:flex;flex-direction:row;gap:var(--spacing-gap-xs);padding:var(--spacing-padding-m);border:1px solid var(--color-border-surface-on-elevation-2);border-radius:var(--border-radius-s);background-color:var(--color-accent-surface-elevation-2)}.kb-storage-callout-inner{display:flex;flex-direction:column}.kb-storage-callout__title{display:flex;gap:var(--spacing-gap-xs)}.kb-storage-callout__description{color:var(--color-text-neutral-disabled)}.text-align-center{text-align:center}.tab::part(page){scrollbar-width:thin}.tab::part(tab-list block-start){padding-inline:var(--spacing-padding-xl)}.checkbox{inline-size:max-content}.footer.dialog-footer-with-border{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-gap-m)}.footer.dialog-footer-with-border>.buttons-spacer{margin-inline-start:auto}.connection-status--connecting{color:var(--color-text-neutral-disabled)}.connection-status--success{color:var(--color-text-success-default)}.connection-status--failed{color:var(--color-text-error-default)}";
19
19
 
20
20
  var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
21
21
  if (kind === "a" && !f)
@@ -33,7 +33,7 @@ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) ||
33
33
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
34
34
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
35
35
  };
36
- 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, _GxIdeNewKb_handlerServerNameInput, _GxIdeNewKb_prototypingEnvironmentValueChangedHandler, _GxIdeNewKb_prototypingTargetValueChangedHandler, _GxIdeNewKb_dataSourceValueChangedHandler, _GxIdeNewKb_renderAdvanced, _GxIdeNewKb_renderBasic, _GxIdeNewKb_cancelKbHandler, _GxIdeNewKb_createKbHandler, _GxIdeNewKb_evaluateCreateDataCheckboxEnabled, _GxIdeNewKb_evaluateTooltipRender, _GxIdeNewKb_evaluateUserInputsDisplay, _GxIdeNewKb_frontEndCheckboxInputHandler, _GxIdeNewKb_updateFrontEndsCheckedMap, _GxIdeNewKb_getPrototypingEnvironments, _GxIdeNewKb_getDataSources, _GxIdeNewKb_initialSetupAdvancedTab, _GxIdeNewKb_initializeValidatableControlsBasicTab, _GxIdeNewKb_initializeValidatableControlsAdvancedTab, _GxIdeNewKb_selectLocationHandler, _GxIdeNewKb_locationModeChangeHandler, _GxIdeNewKb_tabSelectionChangedHandler, _GxIdeNewKb_updateFrontEnds;
36
+ 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;
37
37
  const CSS_BUNDLES = [
38
38
  "resets/box-sizing",
39
39
  "components/tab",
@@ -44,7 +44,8 @@ const CSS_BUNDLES = [
44
44
  "utils/spacing",
45
45
  "chameleon/scrollbar"
46
46
  ];
47
- const WINDOWS_AUTHENTICATION_VALUE = "windows-authentication";
47
+ const WINDOWS_AUTHENTICATION_VALUE = "WINDOWS_AUTHENTICATION";
48
+ const LOCALDB_INSTANCE = "(LocalDB)\\MSSQLLocalDB";
48
49
  const MAIN_SECTION_CLASSES = "main";
49
50
  const BASIC_SECTION_PARENT_CLASSES = "basic";
50
51
  const SYSTEM_ICON = assetsManager.getIconPath({
@@ -52,8 +53,19 @@ const SYSTEM_ICON = assetsManager.getIconPath({
52
53
  name: "folder",
53
54
  colorType: "primary"
54
55
  });
56
+ const WARNING_ICON = assetsManager.getIconPath({
57
+ category: "system",
58
+ name: "warning",
59
+ colorType: "on-interactive"
60
+ });
61
+ const DATABASE_ICON = assetsManager.getIconPath({
62
+ category: "system",
63
+ name: "database",
64
+ colorType: "primary"
65
+ });
55
66
  const LOCATION_MODE_DEFAULT = "default";
56
67
  const LOCATION_MODE_CUSTOM = "custom";
68
+ const DATABASE_NAME_PREFIX = "GX_KB_";
57
69
  const BASIC_TAB_SELECTOR = "basic";
58
70
  const ADVANCED_TAB_SELECTOR = "advanced";
59
71
  const GxIdeNewKb = class {
@@ -85,6 +97,7 @@ const GxIdeNewKb = class {
85
97
  _GxIdeNewKb_locationModeEl.set(this, void 0);
86
98
  _GxIdeNewKb_locationModeModel.set(this, void 0);
87
99
  _GxIdeNewKb_locationElRegistered.set(this, false);
100
+ _GxIdeNewKb_credentialControlsRegistered.set(this, false);
88
101
  _GxIdeNewKb_passwordEl.set(this, void 0);
89
102
  _GxIdeNewKb_prototypingEnvironmentEl.set(this, void 0);
90
103
  _GxIdeNewKb_prototypingTargetEl.set(this, void 0);
@@ -93,23 +106,122 @@ const GxIdeNewKb = class {
93
106
  _GxIdeNewKb_userInterfaceLanguageEl.set(this, void 0);
94
107
  _GxIdeNewKb_userNameEl.set(this, void 0);
95
108
  _GxIdeNewKb_chShortcutsEl.set(this, void 0);
96
- // Uncomment when "TODO: define button handler and logic" is done.
97
- // #geminiToolsSearchPrimary = getIconPath({
98
- // category: "gemini-tools",
99
- // name: "search",
100
- // colorType: "primary"
101
- // });
102
- // #geminiToolsResetPrimary = getIconPath({
103
- // category: "gemini-tools",
104
- // name: "reset",
105
- // colorType: "primary"
106
- // });
107
- _GxIdeNewKb_handlerAuthenticationTypeInput.set(this, (e) => {
108
- const authenticationTypeValue = e === null || e === void 0 ? void 0 : e.detail;
109
- __classPrivateFieldGet(this, _GxIdeNewKb_evaluateUserInputsDisplay, "f").call(this, authenticationTypeValue);
109
+ _GxIdeNewKb_computeDefaultDatabaseName.set(this, (kbName) => `${DATABASE_NAME_PREFIX}${kbName !== null && kbName !== void 0 ? kbName : ""}`);
110
+ _GxIdeNewKb_kbNameInputHandler.set(this, (e) => {
111
+ var _a, _b;
112
+ const kbNameValue = ((_a = e.detail) !== null && _a !== void 0 ? _a : (_b = __classPrivateFieldGet(this, _GxIdeNewKb_kbNameEl, "f")) === null || _b === void 0 ? void 0 : _b.value);
113
+ this.databaseNameValue = __classPrivateFieldGet(this, _GxIdeNewKb_computeDefaultDatabaseName, "f").call(this, kbNameValue);
114
+ });
115
+ _GxIdeNewKb_databaseNameInputHandler.set(this, (e) => {
116
+ var _a, _b;
117
+ this.databaseNameValue = ((_a = e.detail) !== null && _a !== void 0 ? _a : (_b = __classPrivateFieldGet(this, _GxIdeNewKb_databaseNameEl, "f")) === null || _b === void 0 ? void 0 : _b.value);
118
+ });
119
+ _GxIdeNewKb_handlerAuthenticationTypeInput.set(this, async (e) => {
120
+ this.authenticationTypeValue = e === null || e === void 0 ? void 0 : e.detail;
121
+ this.collations = [];
122
+ this.defaultCollation = undefined;
123
+ this.connectionStatus = undefined;
124
+ await __classPrivateFieldGet(this, _GxIdeNewKb_loadCollationsForCurrentConnection, "f").call(this);
125
+ });
126
+ _GxIdeNewKb_handlerCredentialsChanged.set(this, async () => {
127
+ var _a, _b, _c, _d;
128
+ this.userNameValue = (_b = (_a = __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f")) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : "";
129
+ this.passwordValue = (_d = (_c = __classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f")) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : "";
130
+ await __classPrivateFieldGet(this, _GxIdeNewKb_loadCollationsForCurrentConnection, "f").call(this);
131
+ });
132
+ _GxIdeNewKb_browseForMoreHandler.set(this, async () => {
133
+ if (!this.browseForMoreCallback) {
134
+ return;
135
+ }
136
+ this.browseForMoreDialogOpen = true;
137
+ try {
138
+ const selectedInstance = await this.browseForMoreCallback();
139
+ if (selectedInstance) {
140
+ this.serverNameValue = selectedInstance;
141
+ if (__classPrivateFieldGet(this, _GxIdeNewKb_serverNameEl, "f")) {
142
+ __classPrivateFieldGet(this, _GxIdeNewKb_serverNameEl, "f").value = selectedInstance;
143
+ }
144
+ await __classPrivateFieldGet(this, _GxIdeNewKb_serverNameChangedHandler, "f").call(this, new CustomEvent("change", { detail: selectedInstance }));
145
+ }
146
+ }
147
+ catch (error) {
148
+ }
149
+ finally {
150
+ this.browseForMoreDialogOpen = false;
151
+ }
152
+ });
153
+ _GxIdeNewKb_serverNameChangedHandler.set(this, async (e) => {
154
+ var _a, _b;
155
+ 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;
156
+ this.serverNameValue = selectedInstance !== null && selectedInstance !== void 0 ? selectedInstance : "";
157
+ __classPrivateFieldGet(this, _GxIdeNewKb_applyCreateDataFilesInKBFolderForServer, "f").call(this);
158
+ await __classPrivateFieldGet(this, _GxIdeNewKb_loadCollationsForCurrentConnection, "f").call(this);
159
+ });
160
+ _GxIdeNewKb_classifyServer.set(this, (serverName) => {
161
+ var _a;
162
+ if (!serverName) {
163
+ return "empty";
164
+ }
165
+ if (serverName.toLowerCase() === LOCALDB_INSTANCE.toLowerCase()) {
166
+ return "localdb";
167
+ }
168
+ 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(); });
169
+ return isLocal ? "local" : "remote";
110
170
  });
111
- _GxIdeNewKb_handlerServerNameInput.set(this, (e) => {
112
- __classPrivateFieldGet(this, _GxIdeNewKb_evaluateCreateDataCheckboxEnabled, "f").call(this, e.detail);
171
+ _GxIdeNewKb_createDataFilesInKBFolderDisabled.set(this, () => {
172
+ const kind = __classPrivateFieldGet(this, _GxIdeNewKb_classifyServer, "f").call(this, this.serverNameValue);
173
+ return kind === "localdb" || kind === "remote" || kind === "empty";
174
+ });
175
+ _GxIdeNewKb_sqlAuthMissingCredentials.set(this, () => {
176
+ const authType = this.authenticationTypeValue;
177
+ if (!authType || authType === WINDOWS_AUTHENTICATION_VALUE) {
178
+ return false;
179
+ }
180
+ return !this.userNameValue || !this.passwordValue;
181
+ });
182
+ _GxIdeNewKb_applyCreateDataFilesInKBFolderForServer.set(this, () => {
183
+ const kind = __classPrivateFieldGet(this, _GxIdeNewKb_classifyServer, "f").call(this, this.serverNameValue);
184
+ if (kind === "local" || kind === "localdb") {
185
+ this.createDataFilesInKBFolder = true;
186
+ }
187
+ else if (kind === "remote") {
188
+ this.createDataFilesInKBFolder = false;
189
+ }
190
+ });
191
+ _GxIdeNewKb_loadCollationsForCurrentConnection.set(this, async () => {
192
+ var _a, _b, _c, _d;
193
+ const selectedInstance = this.serverNameValue;
194
+ if (!selectedInstance ||
195
+ !this.getCollationsForInstanceCallback ||
196
+ this.connectionStatus === "connecting") {
197
+ return;
198
+ }
199
+ const authType = this.authenticationTypeValue;
200
+ const isWindowsAuth = authType === WINDOWS_AUTHENTICATION_VALUE;
201
+ const userName = isWindowsAuth ? undefined : (_a = __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f")) === null || _a === void 0 ? void 0 : _a.value;
202
+ const password = isWindowsAuth ? undefined : (_b = __classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f")) === null || _b === void 0 ? void 0 : _b.value;
203
+ if (!isWindowsAuth && authType && (!userName || !password)) {
204
+ return;
205
+ }
206
+ this.connectionStatus = "connecting";
207
+ try {
208
+ const result = await this.getCollationsForInstanceCallback(selectedInstance, authType, userName, password);
209
+ if (result) {
210
+ this.collations = (_c = result.collations) !== null && _c !== void 0 ? _c : [];
211
+ this.defaultCollation = (_d = result.defaultCollation) !== null && _d !== void 0 ? _d : undefined;
212
+ this.connectionStatus = "success";
213
+ }
214
+ else {
215
+ this.collations = [];
216
+ this.defaultCollation = undefined;
217
+ this.connectionStatus = "failed";
218
+ }
219
+ }
220
+ catch (_e) {
221
+ this.collations = [];
222
+ this.defaultCollation = undefined;
223
+ this.connectionStatus = "failed";
224
+ }
113
225
  });
114
226
  _GxIdeNewKb_prototypingEnvironmentValueChangedHandler.set(this, (event) => {
115
227
  __classPrivateFieldSet(this, _GxIdeNewKb_selectedPrototypingEnvironmentId, event.detail, "f");
@@ -124,56 +236,20 @@ const GxIdeNewKb = class {
124
236
  __classPrivateFieldSet(this, _GxIdeNewKb_selectedDataSourceId, __classPrivateFieldGet(this, _GxIdeNewKb_dataSourceEl, "f").value, "f");
125
237
  });
126
238
  _GxIdeNewKb_renderAdvanced.set(this, () => {
239
+ const showCredentials = this.authenticationTypeValue !== WINDOWS_AUTHENTICATION_VALUE;
127
240
  return [
128
- index.h("h2", {
129
- // #knowledge base storage
130
- class: "dialog-header subtitle-regular-xs\t text-align-center"
131
- }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.tabTitle),
132
- index.h("div", { class: "field-group tab-advanced__field-group" }, index.h("div", {
133
- // #server name
134
- class: "field field-block server-name-field"
135
- }, index.h("label", { class: "label", htmlFor: "serverName" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.serverName.label), index.h("ch-combo-box-render", { class: "combo-box", disabled: this.serverNames.length === 0, placeholder: this.serverNames.length === 0
136
- ? __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.serverName
241
+ index.h("section", { class: "kb-storage-card", part: "kb-storage-card" }, index.h("header", { class: "kb-storage-card__header" }, index.h("div", { class: "kb-storage-card__heading" }, index.h("h2", { class: "kb-storage-card__title body-semi-bold-m" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.tabTitle))), index.h("div", { class: "kb-storage-card__grid" }, index.h("div", { class: "kb-storage-column" }, index.h("div", { class: "kb-storage-column__title body-regular-xs" }, index.h("span", { class: "kb-storage-column__title-text" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.connectionGroup), index.h("span", { class: "kb-storage-column__title-rule", "aria-hidden": "true" })), index.h("div", { class: "field-group field-group--stacked" }, index.h("div", { class: "field field-block server-name-field" }, index.h("label", { class: "label", htmlFor: "serverName" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.serverName.label), index.h("div", { class: "server-name-wrapper" }, index.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.config.inputDebounce, onInput: __classPrivateFieldGet(this, _GxIdeNewKb_serverNameChangedHandler, "f"), onChange: __classPrivateFieldGet(this, _GxIdeNewKb_serverNameChangedHandler, "f") }), index.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") }, index.h("ch-image", { class: "icon-m", src: DATABASE_ICON }), !this.browseForMoreDialogOpen && (index.h("ch-tooltip", { class: "tooltip", actionElement: null, blockAlign: "outside-start", inlineAlign: "center", delay: config.config.tooltipSettings.delay }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.serverName
242
+ .browseForMore)))), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_serverNameEl, "f"))), index.h("div", { class: "field field-block database-field" }, index.h("label", { class: "label", htmlFor: "databaseName" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.databaseName.label), index.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"))), index.h("div", { class: "field field-block collation-field" }, index.h("label", { class: "label", htmlFor: "collation" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.collation.label), index.h("ch-combo-box-render", { class: "combo-box", disabled: !this.serverNameValue || this.collations.length === 0, placeholder: this.collations.length === 0
243
+ ? __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.collation
137
244
  .disabledPlaceholder
138
- : "", value: this.serverNamesInitialValue, ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_serverNameEl, el, "f")), model: this.serverNamesComboBoxModel, onInput: this.serverNames.length > 0 && __classPrivateFieldGet(this, _GxIdeNewKb_handlerServerNameInput, "f"), id: "serverName", part: "server-name" }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_serverNameEl, "f"))), index.h("div", {
139
- // #authentication type
140
- class: "field field-block authentication-type-field"
141
- }, index.h("label", { class: "label", htmlFor: "authenticationType" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.authenticationType.label), index.h("ch-combo-box-render", { class: "combo-box", disabled: this.authenticationTypes.length === 0, placeholder: this.authenticationTypes.length === 0
245
+ : "", 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"))), index.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")) }))), index.h("div", { class: "kb-storage-column" }, index.h("div", { class: "kb-storage-column__title body-regular-xs" }, index.h("span", { class: "kb-storage-column__title-text" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.authenticationGroup), index.h("span", { class: "kb-storage-column__title-rule", "aria-hidden": "true" })), index.h("div", { class: "field-group field-group--stacked" }, index.h("div", { class: "field field-block authentication-type-field" }, index.h("label", { class: "label", htmlFor: "authenticationType" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.authenticationType.label), index.h("ch-combo-box-render", { class: "combo-box", disabled: this.authenticationTypes.length === 0, placeholder: this.authenticationTypes.length === 0
142
246
  ? __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.authenticationType
143
247
  .disabledPlaceholder
144
- : "", value: this.authenticationTypesInitialValue, ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_authenticationTypeEl, el, "f")), model: this.authenticationTypesComboBoxModel, id: "authenticationType", part: "authentication-type", onInput: this.authenticationTypes.length > 0
248
+ : "", value: this.authenticationTypeValue, ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_authenticationTypeEl, el, "f")), model: this.authenticationTypesComboBoxModel, id: "authenticationType", part: "authentication-type", onInput: this.authenticationTypes.length > 0
145
249
  ? __classPrivateFieldGet(this, _GxIdeNewKb_handlerAuthenticationTypeInput, "f")
146
- : undefined }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_authenticationTypeEl, "f"))), index.h("div", {
147
- // #database
148
- class: "field field-block database-field"
149
- }, index.h("label", { class: "label", htmlFor: "databaseName" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.databaseName.label), index.h("ch-edit", {
150
- // TODO add placeholder
151
- class: "input", value: this.databaseName, id: "databaseName", part: "database-name", ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_databaseNameEl, el, "f"))
152
- }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_databaseNameEl, "f"))), this.userNameVisible ? (index.h("div", {
153
- // #username
154
- class: "field field-block username-field"
155
- }, index.h("label", { class: "label", htmlFor: "userName" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.userName.label), index.h("ch-edit", {
156
- // TODO add placeholder
157
- class: "input", value: this.userName, id: "userName", part: "user-name", ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_userNameEl, el, "f"))
158
- }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f")))) : null, index.h("div", {
159
- // #collation
160
- class: "field field-block collation-field"
161
- }, index.h("label", { class: "label", htmlFor: "collation" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.collation.label), index.h("ch-combo-box-render", { class: "combo-box", disabled: this.serverNames.length === 0, placeholder: this.collations.length === 0
162
- ? __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.collation
163
- .disabledPlaceholder
164
- : "", 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 ? (index.h("div", {
165
- // #password
166
- class: "field field-block password-field"
167
- }, index.h("label", { class: "label", htmlFor: "password" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.password.label), index.h("ch-edit", {
168
- // TODO add placeholder
169
- class: "input", type: "password", value: this.password, id: "password", part: "password", ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_passwordEl, el, "f"))
170
- }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f")))) : null, index.h("ch-checkbox", {
171
- // #create data in knowledge base folder
172
- 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"))
173
- }), this.savePasswordVisible ? (index.h("ch-checkbox", {
174
- // #save password
175
- 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"))
176
- })) : null)
250
+ : undefined }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_authenticationTypeEl, "f"))), showCredentials ? (index.h("div", { class: "kb-storage-credentials" }, index.h("div", { class: "field field-block username-field" }, index.h("label", { class: "label", htmlFor: "userName" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.userName.label), index.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.config.inputDebounce }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f"))), index.h("div", { class: "field field-block password-field" }, index.h("label", { class: "label", htmlFor: "password" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.password.label), index.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.config.inputDebounce }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f"))), index.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 }))) : (index.h("div", { class: "kb-storage-callout", part: "windows-auth-callout" }, index.h("ch-image", { class: "icon-l", src: WARNING_ICON, type: "mask" }), index.h("div", { class: "kb-storage-callout-inner" }, index.h("span", { class: "kb-storage-callout__title body-semi-bold-s" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced
251
+ .windowsAuthCalloutTitle), index.h("span", { class: "kb-storage-callout__description body-regular-xs" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced
252
+ .windowsAuthCalloutDescription))))))))
177
253
  ];
178
254
  });
179
255
  _GxIdeNewKb_renderBasic.set(this, () => {
@@ -237,25 +313,12 @@ const GxIdeNewKb = class {
237
313
  savePassword: !!((_m = __classPrivateFieldGet(this, _GxIdeNewKb_savePasswordEl, "f")) === null || _m === void 0 ? void 0 : _m.value),
238
314
  serverName: (_o = __classPrivateFieldGet(this, _GxIdeNewKb_serverNameEl, "f")) === null || _o === void 0 ? void 0 : _o.value,
239
315
  userInterfaceLanguage: (_p = __classPrivateFieldGet(this, _GxIdeNewKb_userInterfaceLanguageEl, "f")) === null || _p === void 0 ? void 0 : _p.value,
240
- userName: (_q = __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f")) === null || _q === void 0 ? void 0 : _q.value
316
+ userName: (_q = __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f")) === null || _q === void 0 ? void 0 : _q.value,
317
+ creationMode: this.selectedTab
241
318
  }).then((formSubmitResult) => {
242
319
  this.validatableControls = formValidation.validateControls(formSubmitResult, this.validatableControls);
243
320
  });
244
321
  });
245
- /**
246
- * Disable "Create Data in Knowledge Base Folder" if the first Server Name
247
- * option is selected.
248
- * */
249
- // eslint-disable-next-line @stencil-community/own-props-must-be-private
250
- _GxIdeNewKb_evaluateCreateDataCheckboxEnabled.set(this, (serverNameValue) => {
251
- var _a;
252
- if (((_a = this.serverNames[0]) === null || _a === void 0 ? void 0 : _a.id) === serverNameValue) {
253
- this.createDataInKbDisabled = true;
254
- }
255
- else {
256
- this.createDataInKbDisabled = false;
257
- }
258
- });
259
322
  // TODO: evaluate if this should be a global helper function.
260
323
  // It is used on new-kb as well.
261
324
  _GxIdeNewKb_evaluateTooltipRender.set(this, (controlReference) => {
@@ -263,23 +326,6 @@ const GxIdeNewKb = class {
263
326
  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) &&
264
327
  ((_c = this.validatableControls.get(controlReference.id)) === null || _c === void 0 ? void 0 : _c.message) && (index.h("ch-tooltip", { class: "tooltip", actionElement: controlReference, blockAlign: config.config.tooltipSettings.blockAlign, inlineAlign: config.config.tooltipSettings.inlineAlign, delay: config.config.tooltipSettings.delay }, this.validatableControls.get(controlReference.id).message));
265
328
  });
266
- /**
267
- * If "Authentication Type" is "Windows Authentication", hide User Name,
268
- * Password, and Save Password fields.
269
- */
270
- // eslint-disable-next-line @stencil-community/own-props-must-be-private
271
- _GxIdeNewKb_evaluateUserInputsDisplay.set(this, (authenticationTypeValue) => {
272
- if (authenticationTypeValue === WINDOWS_AUTHENTICATION_VALUE) {
273
- this.userNameVisible = false;
274
- this.passwordVisible = false;
275
- this.savePasswordVisible = false;
276
- }
277
- else {
278
- this.userNameVisible = true;
279
- this.passwordVisible = true;
280
- this.savePasswordVisible = true;
281
- }
282
- });
283
329
  _GxIdeNewKb_frontEndCheckboxInputHandler.set(this, (event) => {
284
330
  const checkedValue = event.target.checkedValue;
285
331
  const checked = event.detail === checkedValue;
@@ -342,13 +388,10 @@ const GxIdeNewKb = class {
342
388
  }
343
389
  });
344
390
  _GxIdeNewKb_initialSetupAdvancedTab.set(this, () => {
345
- const selectedServerNameValue = __classPrivateFieldGet(this, _GxIdeNewKb_serverNameEl, "f").value;
346
- __classPrivateFieldGet(this, _GxIdeNewKb_evaluateCreateDataCheckboxEnabled, "f").call(this, selectedServerNameValue);
347
- const selectedAuthenticationType = __classPrivateFieldGet(this, _GxIdeNewKb_authenticationTypeEl, "f").value;
348
- __classPrivateFieldGet(this, _GxIdeNewKb_evaluateUserInputsDisplay, "f").call(this, selectedAuthenticationType);
349
- // map all "Advanced Tab" GxOption[]'s to ComboBoxModel's
350
- this.watchAuthenticationTypes(this.authenticationTypes);
351
- this.watchCollations(this.collations);
391
+ const hasWindowsAuth = this.authenticationTypes.some(opt => opt.id === WINDOWS_AUTHENTICATION_VALUE);
392
+ if (hasWindowsAuth) {
393
+ this.authenticationTypeValue = WINDOWS_AUTHENTICATION_VALUE;
394
+ }
352
395
  });
353
396
  _GxIdeNewKb_initializeValidatableControlsBasicTab.set(this, () => {
354
397
  // populate #controlsValidation with the controls that could have errors.
@@ -407,10 +450,49 @@ const GxIdeNewKb = class {
407
450
  this.locationMode = __classPrivateFieldGet(this, _GxIdeNewKb_locationModeEl, "f").value;
408
451
  });
409
452
  _GxIdeNewKb_tabSelectionChangedHandler.set(this, (event) => {
453
+ this.selectedTab = event.detail.newSelectedId;
410
454
  if (event.detail.newSelectedId === ADVANCED_TAB_SELECTOR) {
411
- this.advancedTabIsVisible = true;
412
- // Some logic for advanced tab is done on componentDidRender lifecycle,
413
- // since the reference to the elements is needed.
455
+ if (!this.advancedTabIsVisible) {
456
+ this.advancedTabIsVisible = true;
457
+ __classPrivateFieldGet(this, _GxIdeNewKb_loadAdvancedTabData, "f").call(this);
458
+ }
459
+ }
460
+ else {
461
+ this.connectionStatus = undefined;
462
+ }
463
+ });
464
+ _GxIdeNewKb_loadAdvancedTabData.set(this, async () => {
465
+ var _a, _b, _c, _d, _e, _f, _g;
466
+ if (!this.getAdvancedTabDataCallback || this.loadingAdvancedTab) {
467
+ return;
468
+ }
469
+ this.loadingAdvancedTab = true;
470
+ this.connectionStatus = "connecting";
471
+ try {
472
+ const data = await this.getAdvancedTabDataCallback();
473
+ if (data) {
474
+ if (data.serverName != null) {
475
+ this.serverNameValue = data.serverName;
476
+ __classPrivateFieldGet(this, _GxIdeNewKb_applyCreateDataFilesInKBFolderForServer, "f").call(this);
477
+ }
478
+ this.serverInstances = (_a = data.serverInstances) !== null && _a !== void 0 ? _a : this.serverInstances;
479
+ this.collations = (_b = data.collations) !== null && _b !== void 0 ? _b : this.collations;
480
+ this.authenticationTypes =
481
+ (_c = data.authenticationTypes) !== null && _c !== void 0 ? _c : this.authenticationTypes;
482
+ this.defaultCollation = (_d = data.defaultCollation) !== null && _d !== void 0 ? _d : this.defaultCollation;
483
+ this.authenticationTypeValue =
484
+ (_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;
485
+ this.connectionStatus = "success";
486
+ }
487
+ else {
488
+ this.connectionStatus = "failed";
489
+ }
490
+ }
491
+ catch (_h) {
492
+ this.connectionStatus = "failed";
493
+ }
494
+ finally {
495
+ this.loadingAdvancedTab = false;
414
496
  }
415
497
  });
416
498
  /**
@@ -435,32 +517,37 @@ const GxIdeNewKb = class {
435
517
  }
436
518
  });
437
519
  this.advancedTabIsVisible = false;
520
+ this.loadingAdvancedTab = false;
521
+ this.browseForMoreDialogOpen = false;
522
+ this.databaseNameValue = "";
438
523
  this.locationMode = LOCATION_MODE_DEFAULT;
439
524
  this.frontEnds = undefined;
440
525
  this.validatableControls = new Map();
441
- this.createDataInKbDisabled = false;
442
- this.userNameVisible = true;
443
- this.passwordVisible = true;
444
- this.savePasswordVisible = true;
526
+ this.connectionStatus = undefined;
527
+ this.userNameValue = "";
528
+ this.passwordValue = "";
529
+ this.authenticationTypes = [];
445
530
  this.authenticationTypesComboBoxModel = [];
446
- this.authenticationTypesInitialValue = undefined;
531
+ this.authenticationTypeValue = undefined;
532
+ this.collations = [];
447
533
  this.collationsComboBoxModel = [];
448
- this.collationsInitialValue = undefined;
534
+ this.defaultCollation = undefined;
449
535
  this.defaultDataSourcesComboBoxModel = [];
450
536
  this.prototypingTargetsComboBoxModel = [];
451
537
  this.prototypingTargetsInitialValue = undefined;
452
538
  this.prototypingEnvironmentsComboBoxModel = [];
453
539
  this.prototypingEnvironmentsInitialValue = undefined;
454
- this.serverNamesComboBoxModel = [];
455
- this.serverNamesInitialValue = undefined;
540
+ this.serverInstances = [];
541
+ this.serverInstancesComboBoxModel = [];
542
+ this.serverNameValue = "";
456
543
  this.userInterfaceLanguagesComboBoxModel = [];
457
544
  this.userInterfaceLanguagesInitialValue = undefined;
458
- this.authenticationTypes = [];
545
+ this.selectedTab = BASIC_TAB_SELECTOR;
459
546
  this.cancelCallback = undefined;
460
547
  this.canSetLocation = false;
461
- this.collations = undefined;
548
+ this.getAdvancedTabDataCallback = undefined;
462
549
  this.createCallback = undefined;
463
- this.createDataFilesInKBFolder = false;
550
+ this.createDataFilesInKBFolder = true;
464
551
  this.databaseName = undefined;
465
552
  this.defaultDataSources = [];
466
553
  this.getDataSourcesCallback = undefined;
@@ -474,7 +561,8 @@ const GxIdeNewKb = class {
474
561
  this.prototypingTargets = [];
475
562
  this.savePassword = false;
476
563
  this.selectLocationCallback = undefined;
477
- this.serverNames = [];
564
+ this.browseForMoreCallback = undefined;
565
+ this.getCollationsForInstanceCallback = undefined;
478
566
  this.userInterfaceLanguages = [];
479
567
  this.userName = undefined;
480
568
  }
@@ -482,14 +570,22 @@ const GxIdeNewKb = class {
482
570
  if (newValue === null || newValue === void 0 ? void 0 : newValue.length) {
483
571
  this.authenticationTypesComboBoxModel =
484
572
  helpers.mapOptionsToComboBoxItemModel(newValue);
485
- this.authenticationTypesInitialValue = common.getSelectedItem(newValue);
573
+ this.authenticationTypeValue = common.getSelectedItem(newValue);
486
574
  }
487
575
  }
488
576
  watchCollations(newValue) {
489
- if (newValue === null || newValue === void 0 ? void 0 : newValue.length) {
490
- this.collationsComboBoxModel = helpers.mapOptionsToComboBoxItemModel(newValue);
491
- this.collationsInitialValue = common.getSelectedItem(newValue);
577
+ if (!(newValue === null || newValue === void 0 ? void 0 : newValue.length)) {
578
+ this.collationsComboBoxModel = [];
579
+ return;
492
580
  }
581
+ this.collationsComboBoxModel = helpers.mapOptionsToComboBoxItemModel(newValue);
582
+ }
583
+ watchServerInstances(newValue) {
584
+ if (!(newValue === null || newValue === void 0 ? void 0 : newValue.length)) {
585
+ this.serverInstancesComboBoxModel = [];
586
+ return;
587
+ }
588
+ this.serverInstancesComboBoxModel = helpers.mapOptionsToComboBoxItemModel(newValue);
493
589
  }
494
590
  watchDefaultDataSources(newValue) {
495
591
  if (newValue === null || newValue === void 0 ? void 0 : newValue.length) {
@@ -515,12 +611,6 @@ const GxIdeNewKb = class {
515
611
  __classPrivateFieldGet(this, _GxIdeNewKb_getPrototypingEnvironments, "f").call(this);
516
612
  }
517
613
  }
518
- watchServerNames(newValue) {
519
- if (newValue === null || newValue === void 0 ? void 0 : newValue.length) {
520
- this.serverNamesComboBoxModel = helpers.mapOptionsToComboBoxItemModel(newValue);
521
- this.serverNamesInitialValue = common.getSelectedItem(newValue);
522
- }
523
- }
524
614
  watchUserInterfaceLanguages(newValue) {
525
615
  if (newValue === null || newValue === void 0 ? void 0 : newValue.length) {
526
616
  this.userInterfaceLanguagesComboBoxModel =
@@ -529,7 +619,14 @@ const GxIdeNewKb = class {
529
619
  }
530
620
  }
531
621
  async componentWillLoad() {
622
+ var _a, _b;
532
623
  __classPrivateFieldSet(this, _GxIdeNewKb_componentLocale, await locale.Locale.getComponentStrings(this.el), "f");
624
+ this.databaseNameValue = __classPrivateFieldGet(this, _GxIdeNewKb_computeDefaultDatabaseName, "f").call(this, this.kbName);
625
+ if (this.databaseName) {
626
+ this.databaseNameValue = this.databaseName;
627
+ }
628
+ this.userNameValue = (_a = this.userName) !== null && _a !== void 0 ? _a : "";
629
+ this.passwordValue = (_b = this.password) !== null && _b !== void 0 ? _b : "";
533
630
  __classPrivateFieldSet(this, _GxIdeNewKb_kbSectionsModel, [
534
631
  {
535
632
  id: BASIC_TAB_SELECTOR,
@@ -555,7 +652,6 @@ const GxIdeNewKb = class {
555
652
  this.watchDefaultDataSources(this.defaultDataSources);
556
653
  this.watchDefaultPrototypingEnvironments(this.defaultPrototypingEnvironments);
557
654
  this.watchPrototypingTargets(this.prototypingTargets);
558
- this.watchServerNames(this.serverNames);
559
655
  this.watchUserInterfaceLanguages(this.userInterfaceLanguages);
560
656
  }
561
657
  componentDidLoad() {
@@ -579,6 +675,28 @@ const GxIdeNewKb = class {
579
675
  });
580
676
  __classPrivateFieldSet(this, _GxIdeNewKb_locationElRegistered, true, "f");
581
677
  }
678
+ // Register credential controls when they become visible (SQL Auth selected)
679
+ if (this.authenticationTypeValue !== WINDOWS_AUTHENTICATION_VALUE &&
680
+ !__classPrivateFieldGet(this, _GxIdeNewKb_credentialControlsRegistered, "f") &&
681
+ __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f") &&
682
+ __classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f")) {
683
+ this.validatableControls.set(__classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f").id, {
684
+ reference: __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f"),
685
+ hasError: false,
686
+ message: undefined
687
+ });
688
+ this.validatableControls.set(__classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f").id, {
689
+ reference: __classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f"),
690
+ hasError: false,
691
+ message: undefined
692
+ });
693
+ __classPrivateFieldSet(this, _GxIdeNewKb_credentialControlsRegistered, true, "f");
694
+ }
695
+ // Reset flag when switching back to Windows Auth so they re-register next time
696
+ if (this.authenticationTypeValue === WINDOWS_AUTHENTICATION_VALUE &&
697
+ __classPrivateFieldGet(this, _GxIdeNewKb_credentialControlsRegistered, "f")) {
698
+ __classPrivateFieldSet(this, _GxIdeNewKb_credentialControlsRegistered, false, "f");
699
+ }
582
700
  }
583
701
  /**
584
702
  * Suspends or reactivates the shortcuts
@@ -605,25 +723,30 @@ const GxIdeNewKb = class {
605
723
  class: "field field-inline kb-name"
606
724
  }, index.h("label", { class: "label kb-label", htmlFor: "kbName" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").header.kbName), index.h("ch-edit", {
607
725
  // TODO add placeholder
608
- autoFocus: true, class: "input kb-input", placeholder: "SalesInventory", value: this.kbName, ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_kbNameEl, el, "f")), id: "kbName", part: "kb-name"
726
+ 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"
609
727
  }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_kbNameEl, "f"))), this.canSetLocation && (index.h("div", { class: "location-wrapper" }, index.h("label", { class: "label location-label" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").header.kbLocation), index.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 && (index.h("div", { class: "location-custom-wrapper" }, index.h("div", { class: "location-field" }, index.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"))), index.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") }, index.h("ch-image", { class: "icon-m", src: SYSTEM_ICON }))))))), this.isAdvanced ? (index.h("ch-tab-render", {
610
728
  // #tab
611
729
  class: {
612
730
  scrollable: true,
613
731
  tab: true,
614
732
  [MAIN_SECTION_CLASSES]: true
615
- }, tabListPosition: "block-start", model: __classPrivateFieldGet(this, _GxIdeNewKb_kbSectionsModel, "f"), selectedId: BASIC_TAB_SELECTOR, overflow: "auto", contain: "size", onSelectedItemChange: !this.advancedTabIsVisible && __classPrivateFieldGet(this, _GxIdeNewKb_tabSelectionChangedHandler, "f")
616
- }, index.h("div", { slot: BASIC_TAB_SELECTOR, class: BASIC_SECTION_PARENT_CLASSES, part: "tab-button-basic" }, __classPrivateFieldGet(this, _GxIdeNewKb_renderBasic, "f").call(this)), this.advancedTabIsVisible && (index.h("div", { slot: ADVANCED_TAB_SELECTOR, class: "advanced spacing-body-inline", part: "tab-button-advanced" }, __classPrivateFieldGet(this, _GxIdeNewKb_renderAdvanced, "f").call(this))))) : (index.h("div", { class: MAIN_SECTION_CLASSES }, index.h("div", { class: BASIC_SECTION_PARENT_CLASSES }, __classPrivateFieldGet(this, _GxIdeNewKb_renderBasic, "f").call(this)))), index.h("footer", { class: {
617
- "dialog-footer": this.isAdvanced,
618
- "dialog-footer-with-border": !this.isAdvanced,
733
+ }, tabListPosition: "block-start", model: __classPrivateFieldGet(this, _GxIdeNewKb_kbSectionsModel, "f"), selectedId: BASIC_TAB_SELECTOR, overflow: "auto", contain: "size", onSelectedItemChange: __classPrivateFieldGet(this, _GxIdeNewKb_tabSelectionChangedHandler, "f")
734
+ }, index.h("div", { slot: BASIC_TAB_SELECTOR, class: BASIC_SECTION_PARENT_CLASSES, part: "tab-button-basic" }, __classPrivateFieldGet(this, _GxIdeNewKb_renderBasic, "f").call(this)), this.advancedTabIsVisible && (index.h("div", { slot: ADVANCED_TAB_SELECTOR, class: "advanced", part: "tab-button-advanced" }, __classPrivateFieldGet(this, _GxIdeNewKb_renderAdvanced, "f").call(this))))) : (index.h("div", { class: MAIN_SECTION_CLASSES }, index.h("div", { class: BASIC_SECTION_PARENT_CLASSES }, __classPrivateFieldGet(this, _GxIdeNewKb_renderBasic, "f").call(this)))), index.h("footer", { class: {
735
+ "footer": true,
736
+ "dialog-footer-with-border": true,
619
737
  "spacing-body-block-end": true,
620
738
  "spacing-body-inline": true
621
- } }, index.h("div", { class: "buttons-spacer" }, index.h("button", {
739
+ } }, this.connectionStatus && (index.h("span", { class: {
740
+ "connection-status": true,
741
+ [`connection-status--${this.connectionStatus}`]: true
742
+ }, part: `connection-status connection-status-${this.connectionStatus}` }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").footer.connectionStatus[this.connectionStatus])), index.h("div", { class: "buttons-spacer" }, index.h("button", {
622
743
  // #cancel
623
744
  class: "button-secondary", id: "button-cancel", onClick: __classPrivateFieldGet(this, _GxIdeNewKb_cancelKbHandler, "f"), part: "button-cancel"
624
745
  }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").footer.btnCancel), index.h("button", {
625
746
  // #create
626
- class: "button-primary", id: "button-create", onClick: __classPrivateFieldGet(this, _GxIdeNewKb_createKbHandler, "f"), part: "button-create"
747
+ class: "button-primary", id: "button-create", disabled: this.connectionStatus === "failed" ||
748
+ this.connectionStatus === "connecting" ||
749
+ __classPrivateFieldGet(this, _GxIdeNewKb_sqlAuthMissingCredentials, "f").call(this), onClick: __classPrivateFieldGet(this, _GxIdeNewKb_createKbHandler, "f"), part: "button-create"
627
750
  }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").footer.btnCreate))))));
628
751
  }
629
752
  static get assetsDirs() { return ["gx-ide-assets/new-kb"]; }
@@ -631,14 +754,14 @@ const GxIdeNewKb = class {
631
754
  static get watchers() { return {
632
755
  "authenticationTypes": ["watchAuthenticationTypes"],
633
756
  "collations": ["watchCollations"],
757
+ "serverInstances": ["watchServerInstances"],
634
758
  "defaultDataSources": ["watchDefaultDataSources"],
635
759
  "defaultPrototypingEnvironments": ["watchDefaultPrototypingEnvironments"],
636
760
  "prototypingTargets": ["watchPrototypingTargets"],
637
- "serverNames": ["watchServerNames"],
638
761
  "userInterfaceLanguages": ["watchUserInterfaceLanguages"]
639
762
  }; }
640
763
  };
641
- _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(), _GxIdeNewKb_handlerServerNameInput = 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_evaluateCreateDataCheckboxEnabled = new WeakMap(), _GxIdeNewKb_evaluateTooltipRender = new WeakMap(), _GxIdeNewKb_evaluateUserInputsDisplay = 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_updateFrontEnds = new WeakMap();
764
+ _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();
642
765
  GxIdeNewKb.style = newKbCss;
643
766
 
644
767
  exports.gx_ide_new_kb = GxIdeNewKb;