@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
@@ -10,7 +10,7 @@ import { r as renderChCheckboxItems, m as mapOptionsToComboBoxItemModel } from '
10
10
  import { v as validateControls } from './form-validation.js';
11
11
  import { r as removeIndex } from './array.js';
12
12
 
13
- 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}";
13
+ 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)}";
14
14
 
15
15
  var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16
16
  if (kind === "a" && !f)
@@ -28,7 +28,7 @@ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) ||
28
28
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
29
29
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
30
30
  };
31
- 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;
31
+ 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;
32
32
  const CSS_BUNDLES = [
33
33
  "resets/box-sizing",
34
34
  "components/tab",
@@ -39,7 +39,8 @@ const CSS_BUNDLES = [
39
39
  "utils/spacing",
40
40
  "chameleon/scrollbar"
41
41
  ];
42
- const WINDOWS_AUTHENTICATION_VALUE = "windows-authentication";
42
+ const WINDOWS_AUTHENTICATION_VALUE = "WINDOWS_AUTHENTICATION";
43
+ const LOCALDB_INSTANCE = "(LocalDB)\\MSSQLLocalDB";
43
44
  const MAIN_SECTION_CLASSES = "main";
44
45
  const BASIC_SECTION_PARENT_CLASSES = "basic";
45
46
  const SYSTEM_ICON = getIconPath({
@@ -47,8 +48,19 @@ const SYSTEM_ICON = getIconPath({
47
48
  name: "folder",
48
49
  colorType: "primary"
49
50
  });
51
+ const WARNING_ICON = getIconPath({
52
+ category: "system",
53
+ name: "warning",
54
+ colorType: "on-interactive"
55
+ });
56
+ const DATABASE_ICON = getIconPath({
57
+ category: "system",
58
+ name: "database",
59
+ colorType: "primary"
60
+ });
50
61
  const LOCATION_MODE_DEFAULT = "default";
51
62
  const LOCATION_MODE_CUSTOM = "custom";
63
+ const DATABASE_NAME_PREFIX = "GX_KB_";
52
64
  const BASIC_TAB_SELECTOR = "basic";
53
65
  const ADVANCED_TAB_SELECTOR = "advanced";
54
66
  const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class GxIdeNewKb extends HTMLElement {
@@ -82,6 +94,7 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class GxIdeNewKb extends H
82
94
  _GxIdeNewKb_locationModeEl.set(this, void 0);
83
95
  _GxIdeNewKb_locationModeModel.set(this, void 0);
84
96
  _GxIdeNewKb_locationElRegistered.set(this, false);
97
+ _GxIdeNewKb_credentialControlsRegistered.set(this, false);
85
98
  _GxIdeNewKb_passwordEl.set(this, void 0);
86
99
  _GxIdeNewKb_prototypingEnvironmentEl.set(this, void 0);
87
100
  _GxIdeNewKb_prototypingTargetEl.set(this, void 0);
@@ -90,23 +103,122 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class GxIdeNewKb extends H
90
103
  _GxIdeNewKb_userInterfaceLanguageEl.set(this, void 0);
91
104
  _GxIdeNewKb_userNameEl.set(this, void 0);
92
105
  _GxIdeNewKb_chShortcutsEl.set(this, void 0);
93
- // Uncomment when "TODO: define button handler and logic" is done.
94
- // #geminiToolsSearchPrimary = getIconPath({
95
- // category: "gemini-tools",
96
- // name: "search",
97
- // colorType: "primary"
98
- // });
99
- // #geminiToolsResetPrimary = getIconPath({
100
- // category: "gemini-tools",
101
- // name: "reset",
102
- // colorType: "primary"
103
- // });
104
- _GxIdeNewKb_handlerAuthenticationTypeInput.set(this, (e) => {
105
- const authenticationTypeValue = e === null || e === void 0 ? void 0 : e.detail;
106
- __classPrivateFieldGet(this, _GxIdeNewKb_evaluateUserInputsDisplay, "f").call(this, authenticationTypeValue);
106
+ _GxIdeNewKb_computeDefaultDatabaseName.set(this, (kbName) => `${DATABASE_NAME_PREFIX}${kbName !== null && kbName !== void 0 ? kbName : ""}`);
107
+ _GxIdeNewKb_kbNameInputHandler.set(this, (e) => {
108
+ var _a, _b;
109
+ const kbNameValue = ((_a = e.detail) !== null && _a !== void 0 ? _a : (_b = __classPrivateFieldGet(this, _GxIdeNewKb_kbNameEl, "f")) === null || _b === void 0 ? void 0 : _b.value);
110
+ this.databaseNameValue = __classPrivateFieldGet(this, _GxIdeNewKb_computeDefaultDatabaseName, "f").call(this, kbNameValue);
111
+ });
112
+ _GxIdeNewKb_databaseNameInputHandler.set(this, (e) => {
113
+ var _a, _b;
114
+ this.databaseNameValue = ((_a = e.detail) !== null && _a !== void 0 ? _a : (_b = __classPrivateFieldGet(this, _GxIdeNewKb_databaseNameEl, "f")) === null || _b === void 0 ? void 0 : _b.value);
115
+ });
116
+ _GxIdeNewKb_handlerAuthenticationTypeInput.set(this, async (e) => {
117
+ this.authenticationTypeValue = e === null || e === void 0 ? void 0 : e.detail;
118
+ this.collations = [];
119
+ this.defaultCollation = undefined;
120
+ this.connectionStatus = undefined;
121
+ await __classPrivateFieldGet(this, _GxIdeNewKb_loadCollationsForCurrentConnection, "f").call(this);
122
+ });
123
+ _GxIdeNewKb_handlerCredentialsChanged.set(this, async () => {
124
+ var _a, _b, _c, _d;
125
+ this.userNameValue = (_b = (_a = __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f")) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : "";
126
+ this.passwordValue = (_d = (_c = __classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f")) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : "";
127
+ await __classPrivateFieldGet(this, _GxIdeNewKb_loadCollationsForCurrentConnection, "f").call(this);
128
+ });
129
+ _GxIdeNewKb_browseForMoreHandler.set(this, async () => {
130
+ if (!this.browseForMoreCallback) {
131
+ return;
132
+ }
133
+ this.browseForMoreDialogOpen = true;
134
+ try {
135
+ const selectedInstance = await this.browseForMoreCallback();
136
+ if (selectedInstance) {
137
+ this.serverNameValue = selectedInstance;
138
+ if (__classPrivateFieldGet(this, _GxIdeNewKb_serverNameEl, "f")) {
139
+ __classPrivateFieldGet(this, _GxIdeNewKb_serverNameEl, "f").value = selectedInstance;
140
+ }
141
+ await __classPrivateFieldGet(this, _GxIdeNewKb_serverNameChangedHandler, "f").call(this, new CustomEvent("change", { detail: selectedInstance }));
142
+ }
143
+ }
144
+ catch (error) {
145
+ }
146
+ finally {
147
+ this.browseForMoreDialogOpen = false;
148
+ }
149
+ });
150
+ _GxIdeNewKb_serverNameChangedHandler.set(this, async (e) => {
151
+ var _a, _b;
152
+ 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;
153
+ this.serverNameValue = selectedInstance !== null && selectedInstance !== void 0 ? selectedInstance : "";
154
+ __classPrivateFieldGet(this, _GxIdeNewKb_applyCreateDataFilesInKBFolderForServer, "f").call(this);
155
+ await __classPrivateFieldGet(this, _GxIdeNewKb_loadCollationsForCurrentConnection, "f").call(this);
156
+ });
157
+ _GxIdeNewKb_classifyServer.set(this, (serverName) => {
158
+ var _a;
159
+ if (!serverName) {
160
+ return "empty";
161
+ }
162
+ if (serverName.toLowerCase() === LOCALDB_INSTANCE.toLowerCase()) {
163
+ return "localdb";
164
+ }
165
+ 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(); });
166
+ return isLocal ? "local" : "remote";
107
167
  });
108
- _GxIdeNewKb_handlerServerNameInput.set(this, (e) => {
109
- __classPrivateFieldGet(this, _GxIdeNewKb_evaluateCreateDataCheckboxEnabled, "f").call(this, e.detail);
168
+ _GxIdeNewKb_createDataFilesInKBFolderDisabled.set(this, () => {
169
+ const kind = __classPrivateFieldGet(this, _GxIdeNewKb_classifyServer, "f").call(this, this.serverNameValue);
170
+ return kind === "localdb" || kind === "remote" || kind === "empty";
171
+ });
172
+ _GxIdeNewKb_sqlAuthMissingCredentials.set(this, () => {
173
+ const authType = this.authenticationTypeValue;
174
+ if (!authType || authType === WINDOWS_AUTHENTICATION_VALUE) {
175
+ return false;
176
+ }
177
+ return !this.userNameValue || !this.passwordValue;
178
+ });
179
+ _GxIdeNewKb_applyCreateDataFilesInKBFolderForServer.set(this, () => {
180
+ const kind = __classPrivateFieldGet(this, _GxIdeNewKb_classifyServer, "f").call(this, this.serverNameValue);
181
+ if (kind === "local" || kind === "localdb") {
182
+ this.createDataFilesInKBFolder = true;
183
+ }
184
+ else if (kind === "remote") {
185
+ this.createDataFilesInKBFolder = false;
186
+ }
187
+ });
188
+ _GxIdeNewKb_loadCollationsForCurrentConnection.set(this, async () => {
189
+ var _a, _b, _c, _d;
190
+ const selectedInstance = this.serverNameValue;
191
+ if (!selectedInstance ||
192
+ !this.getCollationsForInstanceCallback ||
193
+ this.connectionStatus === "connecting") {
194
+ return;
195
+ }
196
+ const authType = this.authenticationTypeValue;
197
+ const isWindowsAuth = authType === WINDOWS_AUTHENTICATION_VALUE;
198
+ const userName = isWindowsAuth ? undefined : (_a = __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f")) === null || _a === void 0 ? void 0 : _a.value;
199
+ const password = isWindowsAuth ? undefined : (_b = __classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f")) === null || _b === void 0 ? void 0 : _b.value;
200
+ if (!isWindowsAuth && authType && (!userName || !password)) {
201
+ return;
202
+ }
203
+ this.connectionStatus = "connecting";
204
+ try {
205
+ const result = await this.getCollationsForInstanceCallback(selectedInstance, authType, userName, password);
206
+ if (result) {
207
+ this.collations = (_c = result.collations) !== null && _c !== void 0 ? _c : [];
208
+ this.defaultCollation = (_d = result.defaultCollation) !== null && _d !== void 0 ? _d : undefined;
209
+ this.connectionStatus = "success";
210
+ }
211
+ else {
212
+ this.collations = [];
213
+ this.defaultCollation = undefined;
214
+ this.connectionStatus = "failed";
215
+ }
216
+ }
217
+ catch (_e) {
218
+ this.collations = [];
219
+ this.defaultCollation = undefined;
220
+ this.connectionStatus = "failed";
221
+ }
110
222
  });
111
223
  _GxIdeNewKb_prototypingEnvironmentValueChangedHandler.set(this, (event) => {
112
224
  __classPrivateFieldSet(this, _GxIdeNewKb_selectedPrototypingEnvironmentId, event.detail, "f");
@@ -121,56 +233,20 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class GxIdeNewKb extends H
121
233
  __classPrivateFieldSet(this, _GxIdeNewKb_selectedDataSourceId, __classPrivateFieldGet(this, _GxIdeNewKb_dataSourceEl, "f").value, "f");
122
234
  });
123
235
  _GxIdeNewKb_renderAdvanced.set(this, () => {
236
+ const showCredentials = this.authenticationTypeValue !== WINDOWS_AUTHENTICATION_VALUE;
124
237
  return [
125
- h("h2", {
126
- // #knowledge base storage
127
- class: "dialog-header subtitle-regular-xs\t text-align-center"
128
- }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.tabTitle),
129
- h("div", { class: "field-group tab-advanced__field-group" }, h("div", {
130
- // #server name
131
- class: "field field-block server-name-field"
132
- }, 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
133
- ? __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.serverName
238
+ 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
239
+ .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
240
+ ? __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.collation
134
241
  .disabledPlaceholder
135
- : "", 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"))), h("div", {
136
- // #authentication type
137
- class: "field field-block authentication-type-field"
138
- }, 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
242
+ : "", 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
139
243
  ? __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.authenticationType
140
244
  .disabledPlaceholder
141
- : "", value: this.authenticationTypesInitialValue, ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_authenticationTypeEl, el, "f")), model: this.authenticationTypesComboBoxModel, id: "authenticationType", part: "authentication-type", onInput: this.authenticationTypes.length > 0
245
+ : "", value: this.authenticationTypeValue, ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_authenticationTypeEl, el, "f")), model: this.authenticationTypesComboBoxModel, id: "authenticationType", part: "authentication-type", onInput: this.authenticationTypes.length > 0
142
246
  ? __classPrivateFieldGet(this, _GxIdeNewKb_handlerAuthenticationTypeInput, "f")
143
- : undefined }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_authenticationTypeEl, "f"))), h("div", {
144
- // #database
145
- class: "field field-block database-field"
146
- }, h("label", { class: "label", htmlFor: "databaseName" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.databaseName.label), h("ch-edit", {
147
- // TODO add placeholder
148
- class: "input", value: this.databaseName, id: "databaseName", part: "database-name", ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_databaseNameEl, el, "f"))
149
- }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_databaseNameEl, "f"))), this.userNameVisible ? (h("div", {
150
- // #username
151
- class: "field field-block username-field"
152
- }, h("label", { class: "label", htmlFor: "userName" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.userName.label), h("ch-edit", {
153
- // TODO add placeholder
154
- class: "input", value: this.userName, id: "userName", part: "user-name", ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_userNameEl, el, "f"))
155
- }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f")))) : null, h("div", {
156
- // #collation
157
- class: "field field-block collation-field"
158
- }, 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
159
- ? __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.collation
160
- .disabledPlaceholder
161
- : "", 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", {
162
- // #password
163
- class: "field field-block password-field"
164
- }, h("label", { class: "label", htmlFor: "password" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced.password.label), h("ch-edit", {
165
- // TODO add placeholder
166
- class: "input", type: "password", value: this.password, id: "password", part: "password", ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_passwordEl, el, "f"))
167
- }), __classPrivateFieldGet(this, _GxIdeNewKb_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f")))) : null, h("ch-checkbox", {
168
- // #create data in knowledge base folder
169
- 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"))
170
- }), this.savePasswordVisible ? (h("ch-checkbox", {
171
- // #save password
172
- 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"))
173
- })) : null)
247
+ : 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
248
+ .windowsAuthCalloutTitle), h("span", { class: "kb-storage-callout__description body-regular-xs" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").tabAdvanced
249
+ .windowsAuthCalloutDescription))))))))
174
250
  ];
175
251
  });
176
252
  _GxIdeNewKb_renderBasic.set(this, () => {
@@ -234,25 +310,12 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class GxIdeNewKb extends H
234
310
  savePassword: !!((_m = __classPrivateFieldGet(this, _GxIdeNewKb_savePasswordEl, "f")) === null || _m === void 0 ? void 0 : _m.value),
235
311
  serverName: (_o = __classPrivateFieldGet(this, _GxIdeNewKb_serverNameEl, "f")) === null || _o === void 0 ? void 0 : _o.value,
236
312
  userInterfaceLanguage: (_p = __classPrivateFieldGet(this, _GxIdeNewKb_userInterfaceLanguageEl, "f")) === null || _p === void 0 ? void 0 : _p.value,
237
- userName: (_q = __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f")) === null || _q === void 0 ? void 0 : _q.value
313
+ userName: (_q = __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f")) === null || _q === void 0 ? void 0 : _q.value,
314
+ creationMode: this.selectedTab
238
315
  }).then((formSubmitResult) => {
239
316
  this.validatableControls = validateControls(formSubmitResult, this.validatableControls);
240
317
  });
241
318
  });
242
- /**
243
- * Disable "Create Data in Knowledge Base Folder" if the first Server Name
244
- * option is selected.
245
- * */
246
- // eslint-disable-next-line @stencil-community/own-props-must-be-private
247
- _GxIdeNewKb_evaluateCreateDataCheckboxEnabled.set(this, (serverNameValue) => {
248
- var _a;
249
- if (((_a = this.serverNames[0]) === null || _a === void 0 ? void 0 : _a.id) === serverNameValue) {
250
- this.createDataInKbDisabled = true;
251
- }
252
- else {
253
- this.createDataInKbDisabled = false;
254
- }
255
- });
256
319
  // TODO: evaluate if this should be a global helper function.
257
320
  // It is used on new-kb as well.
258
321
  _GxIdeNewKb_evaluateTooltipRender.set(this, (controlReference) => {
@@ -260,23 +323,6 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class GxIdeNewKb extends H
260
323
  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) &&
261
324
  ((_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));
262
325
  });
263
- /**
264
- * If "Authentication Type" is "Windows Authentication", hide User Name,
265
- * Password, and Save Password fields.
266
- */
267
- // eslint-disable-next-line @stencil-community/own-props-must-be-private
268
- _GxIdeNewKb_evaluateUserInputsDisplay.set(this, (authenticationTypeValue) => {
269
- if (authenticationTypeValue === WINDOWS_AUTHENTICATION_VALUE) {
270
- this.userNameVisible = false;
271
- this.passwordVisible = false;
272
- this.savePasswordVisible = false;
273
- }
274
- else {
275
- this.userNameVisible = true;
276
- this.passwordVisible = true;
277
- this.savePasswordVisible = true;
278
- }
279
- });
280
326
  _GxIdeNewKb_frontEndCheckboxInputHandler.set(this, (event) => {
281
327
  const checkedValue = event.target.checkedValue;
282
328
  const checked = event.detail === checkedValue;
@@ -339,13 +385,10 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class GxIdeNewKb extends H
339
385
  }
340
386
  });
341
387
  _GxIdeNewKb_initialSetupAdvancedTab.set(this, () => {
342
- const selectedServerNameValue = __classPrivateFieldGet(this, _GxIdeNewKb_serverNameEl, "f").value;
343
- __classPrivateFieldGet(this, _GxIdeNewKb_evaluateCreateDataCheckboxEnabled, "f").call(this, selectedServerNameValue);
344
- const selectedAuthenticationType = __classPrivateFieldGet(this, _GxIdeNewKb_authenticationTypeEl, "f").value;
345
- __classPrivateFieldGet(this, _GxIdeNewKb_evaluateUserInputsDisplay, "f").call(this, selectedAuthenticationType);
346
- // map all "Advanced Tab" GxOption[]'s to ComboBoxModel's
347
- this.watchAuthenticationTypes(this.authenticationTypes);
348
- this.watchCollations(this.collations);
388
+ const hasWindowsAuth = this.authenticationTypes.some(opt => opt.id === WINDOWS_AUTHENTICATION_VALUE);
389
+ if (hasWindowsAuth) {
390
+ this.authenticationTypeValue = WINDOWS_AUTHENTICATION_VALUE;
391
+ }
349
392
  });
350
393
  _GxIdeNewKb_initializeValidatableControlsBasicTab.set(this, () => {
351
394
  // populate #controlsValidation with the controls that could have errors.
@@ -404,10 +447,49 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class GxIdeNewKb extends H
404
447
  this.locationMode = __classPrivateFieldGet(this, _GxIdeNewKb_locationModeEl, "f").value;
405
448
  });
406
449
  _GxIdeNewKb_tabSelectionChangedHandler.set(this, (event) => {
450
+ this.selectedTab = event.detail.newSelectedId;
407
451
  if (event.detail.newSelectedId === ADVANCED_TAB_SELECTOR) {
408
- this.advancedTabIsVisible = true;
409
- // Some logic for advanced tab is done on componentDidRender lifecycle,
410
- // since the reference to the elements is needed.
452
+ if (!this.advancedTabIsVisible) {
453
+ this.advancedTabIsVisible = true;
454
+ __classPrivateFieldGet(this, _GxIdeNewKb_loadAdvancedTabData, "f").call(this);
455
+ }
456
+ }
457
+ else {
458
+ this.connectionStatus = undefined;
459
+ }
460
+ });
461
+ _GxIdeNewKb_loadAdvancedTabData.set(this, async () => {
462
+ var _a, _b, _c, _d, _e, _f, _g;
463
+ if (!this.getAdvancedTabDataCallback || this.loadingAdvancedTab) {
464
+ return;
465
+ }
466
+ this.loadingAdvancedTab = true;
467
+ this.connectionStatus = "connecting";
468
+ try {
469
+ const data = await this.getAdvancedTabDataCallback();
470
+ if (data) {
471
+ if (data.serverName != null) {
472
+ this.serverNameValue = data.serverName;
473
+ __classPrivateFieldGet(this, _GxIdeNewKb_applyCreateDataFilesInKBFolderForServer, "f").call(this);
474
+ }
475
+ this.serverInstances = (_a = data.serverInstances) !== null && _a !== void 0 ? _a : this.serverInstances;
476
+ this.collations = (_b = data.collations) !== null && _b !== void 0 ? _b : this.collations;
477
+ this.authenticationTypes =
478
+ (_c = data.authenticationTypes) !== null && _c !== void 0 ? _c : this.authenticationTypes;
479
+ this.defaultCollation = (_d = data.defaultCollation) !== null && _d !== void 0 ? _d : this.defaultCollation;
480
+ this.authenticationTypeValue =
481
+ (_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;
482
+ this.connectionStatus = "success";
483
+ }
484
+ else {
485
+ this.connectionStatus = "failed";
486
+ }
487
+ }
488
+ catch (_h) {
489
+ this.connectionStatus = "failed";
490
+ }
491
+ finally {
492
+ this.loadingAdvancedTab = false;
411
493
  }
412
494
  });
413
495
  /**
@@ -432,32 +514,37 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class GxIdeNewKb extends H
432
514
  }
433
515
  });
434
516
  this.advancedTabIsVisible = false;
517
+ this.loadingAdvancedTab = false;
518
+ this.browseForMoreDialogOpen = false;
519
+ this.databaseNameValue = "";
435
520
  this.locationMode = LOCATION_MODE_DEFAULT;
436
521
  this.frontEnds = undefined;
437
522
  this.validatableControls = new Map();
438
- this.createDataInKbDisabled = false;
439
- this.userNameVisible = true;
440
- this.passwordVisible = true;
441
- this.savePasswordVisible = true;
523
+ this.connectionStatus = undefined;
524
+ this.userNameValue = "";
525
+ this.passwordValue = "";
526
+ this.authenticationTypes = [];
442
527
  this.authenticationTypesComboBoxModel = [];
443
- this.authenticationTypesInitialValue = undefined;
528
+ this.authenticationTypeValue = undefined;
529
+ this.collations = [];
444
530
  this.collationsComboBoxModel = [];
445
- this.collationsInitialValue = undefined;
531
+ this.defaultCollation = undefined;
446
532
  this.defaultDataSourcesComboBoxModel = [];
447
533
  this.prototypingTargetsComboBoxModel = [];
448
534
  this.prototypingTargetsInitialValue = undefined;
449
535
  this.prototypingEnvironmentsComboBoxModel = [];
450
536
  this.prototypingEnvironmentsInitialValue = undefined;
451
- this.serverNamesComboBoxModel = [];
452
- this.serverNamesInitialValue = undefined;
537
+ this.serverInstances = [];
538
+ this.serverInstancesComboBoxModel = [];
539
+ this.serverNameValue = "";
453
540
  this.userInterfaceLanguagesComboBoxModel = [];
454
541
  this.userInterfaceLanguagesInitialValue = undefined;
455
- this.authenticationTypes = [];
542
+ this.selectedTab = BASIC_TAB_SELECTOR;
456
543
  this.cancelCallback = undefined;
457
544
  this.canSetLocation = false;
458
- this.collations = undefined;
545
+ this.getAdvancedTabDataCallback = undefined;
459
546
  this.createCallback = undefined;
460
- this.createDataFilesInKBFolder = false;
547
+ this.createDataFilesInKBFolder = true;
461
548
  this.databaseName = undefined;
462
549
  this.defaultDataSources = [];
463
550
  this.getDataSourcesCallback = undefined;
@@ -471,7 +558,8 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class GxIdeNewKb extends H
471
558
  this.prototypingTargets = [];
472
559
  this.savePassword = false;
473
560
  this.selectLocationCallback = undefined;
474
- this.serverNames = [];
561
+ this.browseForMoreCallback = undefined;
562
+ this.getCollationsForInstanceCallback = undefined;
475
563
  this.userInterfaceLanguages = [];
476
564
  this.userName = undefined;
477
565
  }
@@ -479,14 +567,22 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class GxIdeNewKb extends H
479
567
  if (newValue === null || newValue === void 0 ? void 0 : newValue.length) {
480
568
  this.authenticationTypesComboBoxModel =
481
569
  mapOptionsToComboBoxItemModel(newValue);
482
- this.authenticationTypesInitialValue = getSelectedItem(newValue);
570
+ this.authenticationTypeValue = getSelectedItem(newValue);
483
571
  }
484
572
  }
485
573
  watchCollations(newValue) {
486
- if (newValue === null || newValue === void 0 ? void 0 : newValue.length) {
487
- this.collationsComboBoxModel = mapOptionsToComboBoxItemModel(newValue);
488
- this.collationsInitialValue = getSelectedItem(newValue);
574
+ if (!(newValue === null || newValue === void 0 ? void 0 : newValue.length)) {
575
+ this.collationsComboBoxModel = [];
576
+ return;
489
577
  }
578
+ this.collationsComboBoxModel = mapOptionsToComboBoxItemModel(newValue);
579
+ }
580
+ watchServerInstances(newValue) {
581
+ if (!(newValue === null || newValue === void 0 ? void 0 : newValue.length)) {
582
+ this.serverInstancesComboBoxModel = [];
583
+ return;
584
+ }
585
+ this.serverInstancesComboBoxModel = mapOptionsToComboBoxItemModel(newValue);
490
586
  }
491
587
  watchDefaultDataSources(newValue) {
492
588
  if (newValue === null || newValue === void 0 ? void 0 : newValue.length) {
@@ -512,12 +608,6 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class GxIdeNewKb extends H
512
608
  __classPrivateFieldGet(this, _GxIdeNewKb_getPrototypingEnvironments, "f").call(this);
513
609
  }
514
610
  }
515
- watchServerNames(newValue) {
516
- if (newValue === null || newValue === void 0 ? void 0 : newValue.length) {
517
- this.serverNamesComboBoxModel = mapOptionsToComboBoxItemModel(newValue);
518
- this.serverNamesInitialValue = getSelectedItem(newValue);
519
- }
520
- }
521
611
  watchUserInterfaceLanguages(newValue) {
522
612
  if (newValue === null || newValue === void 0 ? void 0 : newValue.length) {
523
613
  this.userInterfaceLanguagesComboBoxModel =
@@ -526,7 +616,14 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class GxIdeNewKb extends H
526
616
  }
527
617
  }
528
618
  async componentWillLoad() {
619
+ var _a, _b;
529
620
  __classPrivateFieldSet(this, _GxIdeNewKb_componentLocale, await Locale.getComponentStrings(this.el), "f");
621
+ this.databaseNameValue = __classPrivateFieldGet(this, _GxIdeNewKb_computeDefaultDatabaseName, "f").call(this, this.kbName);
622
+ if (this.databaseName) {
623
+ this.databaseNameValue = this.databaseName;
624
+ }
625
+ this.userNameValue = (_a = this.userName) !== null && _a !== void 0 ? _a : "";
626
+ this.passwordValue = (_b = this.password) !== null && _b !== void 0 ? _b : "";
530
627
  __classPrivateFieldSet(this, _GxIdeNewKb_kbSectionsModel, [
531
628
  {
532
629
  id: BASIC_TAB_SELECTOR,
@@ -552,7 +649,6 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class GxIdeNewKb extends H
552
649
  this.watchDefaultDataSources(this.defaultDataSources);
553
650
  this.watchDefaultPrototypingEnvironments(this.defaultPrototypingEnvironments);
554
651
  this.watchPrototypingTargets(this.prototypingTargets);
555
- this.watchServerNames(this.serverNames);
556
652
  this.watchUserInterfaceLanguages(this.userInterfaceLanguages);
557
653
  }
558
654
  componentDidLoad() {
@@ -576,6 +672,28 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class GxIdeNewKb extends H
576
672
  });
577
673
  __classPrivateFieldSet(this, _GxIdeNewKb_locationElRegistered, true, "f");
578
674
  }
675
+ // Register credential controls when they become visible (SQL Auth selected)
676
+ if (this.authenticationTypeValue !== WINDOWS_AUTHENTICATION_VALUE &&
677
+ !__classPrivateFieldGet(this, _GxIdeNewKb_credentialControlsRegistered, "f") &&
678
+ __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f") &&
679
+ __classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f")) {
680
+ this.validatableControls.set(__classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f").id, {
681
+ reference: __classPrivateFieldGet(this, _GxIdeNewKb_userNameEl, "f"),
682
+ hasError: false,
683
+ message: undefined
684
+ });
685
+ this.validatableControls.set(__classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f").id, {
686
+ reference: __classPrivateFieldGet(this, _GxIdeNewKb_passwordEl, "f"),
687
+ hasError: false,
688
+ message: undefined
689
+ });
690
+ __classPrivateFieldSet(this, _GxIdeNewKb_credentialControlsRegistered, true, "f");
691
+ }
692
+ // Reset flag when switching back to Windows Auth so they re-register next time
693
+ if (this.authenticationTypeValue === WINDOWS_AUTHENTICATION_VALUE &&
694
+ __classPrivateFieldGet(this, _GxIdeNewKb_credentialControlsRegistered, "f")) {
695
+ __classPrivateFieldSet(this, _GxIdeNewKb_credentialControlsRegistered, false, "f");
696
+ }
579
697
  }
580
698
  /**
581
699
  * Suspends or reactivates the shortcuts
@@ -602,25 +720,30 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class GxIdeNewKb extends H
602
720
  class: "field field-inline kb-name"
603
721
  }, h("label", { class: "label kb-label", htmlFor: "kbName" }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").header.kbName), h("ch-edit", {
604
722
  // TODO add placeholder
605
- autoFocus: true, class: "input kb-input", placeholder: "SalesInventory", value: this.kbName, ref: (el) => (__classPrivateFieldSet(this, _GxIdeNewKb_kbNameEl, el, "f")), id: "kbName", part: "kb-name"
723
+ 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"
606
724
  }), __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", {
607
725
  // #tab
608
726
  class: {
609
727
  scrollable: true,
610
728
  tab: true,
611
729
  [MAIN_SECTION_CLASSES]: true
612
- }, 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")
613
- }, 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 spacing-body-inline", 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: {
614
- "dialog-footer": this.isAdvanced,
615
- "dialog-footer-with-border": !this.isAdvanced,
730
+ }, tabListPosition: "block-start", model: __classPrivateFieldGet(this, _GxIdeNewKb_kbSectionsModel, "f"), selectedId: BASIC_TAB_SELECTOR, overflow: "auto", contain: "size", onSelectedItemChange: __classPrivateFieldGet(this, _GxIdeNewKb_tabSelectionChangedHandler, "f")
731
+ }, 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: {
732
+ "footer": true,
733
+ "dialog-footer-with-border": true,
616
734
  "spacing-body-block-end": true,
617
735
  "spacing-body-inline": true
618
- } }, h("div", { class: "buttons-spacer" }, h("button", {
736
+ } }, this.connectionStatus && (h("span", { class: {
737
+ "connection-status": true,
738
+ [`connection-status--${this.connectionStatus}`]: true
739
+ }, part: `connection-status connection-status-${this.connectionStatus}` }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").footer.connectionStatus[this.connectionStatus])), h("div", { class: "buttons-spacer" }, h("button", {
619
740
  // #cancel
620
741
  class: "button-secondary", id: "button-cancel", onClick: __classPrivateFieldGet(this, _GxIdeNewKb_cancelKbHandler, "f"), part: "button-cancel"
621
742
  }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").footer.btnCancel), h("button", {
622
743
  // #create
623
- class: "button-primary", id: "button-create", onClick: __classPrivateFieldGet(this, _GxIdeNewKb_createKbHandler, "f"), part: "button-create"
744
+ class: "button-primary", id: "button-create", disabled: this.connectionStatus === "failed" ||
745
+ this.connectionStatus === "connecting" ||
746
+ __classPrivateFieldGet(this, _GxIdeNewKb_sqlAuthMissingCredentials, "f").call(this), onClick: __classPrivateFieldGet(this, _GxIdeNewKb_createKbHandler, "f"), part: "button-create"
624
747
  }, __classPrivateFieldGet(this, _GxIdeNewKb_componentLocale, "f").footer.btnCreate))))));
625
748
  }
626
749
  static get assetsDirs() { return ["gx-ide-assets/new-kb"]; }
@@ -628,20 +751,19 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class GxIdeNewKb extends H
628
751
  static get watchers() { return {
629
752
  "authenticationTypes": ["watchAuthenticationTypes"],
630
753
  "collations": ["watchCollations"],
754
+ "serverInstances": ["watchServerInstances"],
631
755
  "defaultDataSources": ["watchDefaultDataSources"],
632
756
  "defaultPrototypingEnvironments": ["watchDefaultPrototypingEnvironments"],
633
757
  "prototypingTargets": ["watchPrototypingTargets"],
634
- "serverNames": ["watchServerNames"],
635
758
  "userInterfaceLanguages": ["watchUserInterfaceLanguages"]
636
759
  }; }
637
760
  static get style() { return newKbCss; }
638
761
  }, [1, "gx-ide-new-kb", {
639
- "authenticationTypes": [16],
640
762
  "cancelCallback": [16],
641
763
  "canSetLocation": [4, "can-set-location"],
642
- "collations": [16],
764
+ "getAdvancedTabDataCallback": [16],
643
765
  "createCallback": [16],
644
- "createDataFilesInKBFolder": [4, "create-data-files-in-k-b-folder"],
766
+ "createDataFilesInKBFolder": [1028, "create-data-files-in-k-b-folder"],
645
767
  "databaseName": [1, "database-name"],
646
768
  "defaultDataSources": [1040],
647
769
  "getDataSourcesCallback": [16],
@@ -655,41 +777,48 @@ const GxIdeNewKb$1 = /*@__PURE__*/ proxyCustomElement(class GxIdeNewKb extends H
655
777
  "prototypingTargets": [16],
656
778
  "savePassword": [4, "save-password"],
657
779
  "selectLocationCallback": [16],
658
- "serverNames": [16],
780
+ "browseForMoreCallback": [16],
781
+ "getCollationsForInstanceCallback": [16],
659
782
  "userInterfaceLanguages": [16],
660
- "userName": [1, "user-name"],
783
+ "userName": [1025, "user-name"],
661
784
  "advancedTabIsVisible": [32],
785
+ "loadingAdvancedTab": [32],
786
+ "browseForMoreDialogOpen": [32],
787
+ "databaseNameValue": [32],
662
788
  "locationMode": [32],
663
789
  "frontEnds": [32],
664
790
  "validatableControls": [32],
665
- "createDataInKbDisabled": [32],
666
- "userNameVisible": [32],
667
- "passwordVisible": [32],
668
- "savePasswordVisible": [32],
791
+ "connectionStatus": [32],
792
+ "userNameValue": [32],
793
+ "passwordValue": [32],
794
+ "authenticationTypes": [32],
669
795
  "authenticationTypesComboBoxModel": [32],
670
- "authenticationTypesInitialValue": [32],
796
+ "authenticationTypeValue": [32],
797
+ "collations": [32],
671
798
  "collationsComboBoxModel": [32],
672
- "collationsInitialValue": [32],
799
+ "defaultCollation": [32],
673
800
  "defaultDataSourcesComboBoxModel": [32],
674
801
  "prototypingTargetsComboBoxModel": [32],
675
802
  "prototypingTargetsInitialValue": [32],
676
803
  "prototypingEnvironmentsComboBoxModel": [32],
677
804
  "prototypingEnvironmentsInitialValue": [32],
678
- "serverNamesComboBoxModel": [32],
679
- "serverNamesInitialValue": [32],
805
+ "serverInstances": [32],
806
+ "serverInstancesComboBoxModel": [32],
807
+ "serverNameValue": [32],
680
808
  "userInterfaceLanguagesComboBoxModel": [32],
681
809
  "userInterfaceLanguagesInitialValue": [32],
810
+ "selectedTab": [32],
682
811
  "suspendShortcuts": [64]
683
812
  }, undefined, {
684
813
  "authenticationTypes": ["watchAuthenticationTypes"],
685
814
  "collations": ["watchCollations"],
815
+ "serverInstances": ["watchServerInstances"],
686
816
  "defaultDataSources": ["watchDefaultDataSources"],
687
817
  "defaultPrototypingEnvironments": ["watchDefaultPrototypingEnvironments"],
688
818
  "prototypingTargets": ["watchPrototypingTargets"],
689
- "serverNames": ["watchServerNames"],
690
819
  "userInterfaceLanguages": ["watchUserInterfaceLanguages"]
691
820
  }]);
692
- _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();
821
+ _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();
693
822
  function defineCustomElement$1() {
694
823
  if (typeof customElements === "undefined") {
695
824
  return;