@genexus/genexus-ide-ui 1.0.13 → 1.0.14

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 (144) hide show
  1. package/dist/cjs/form-validation-df39cabb.js +56 -0
  2. package/dist/cjs/form-validation-df39cabb.js.map +1 -0
  3. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  4. package/dist/cjs/gx-ide-ai-message.cjs.entry.js +1 -1
  5. package/dist/cjs/gx-ide-connect-gx-server.cjs.entry.js +2 -2
  6. package/dist/cjs/gx-ide-connect-gx-server.cjs.entry.js.map +1 -1
  7. package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js +3 -3
  8. package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js.map +1 -1
  9. package/dist/cjs/gx-ide-dashboard-home.cjs.entry.js +1 -1
  10. package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js +1 -1
  11. package/dist/cjs/gx-ide-new-environment.cjs.entry.js +274 -147
  12. package/dist/cjs/gx-ide-new-environment.cjs.entry.js.map +1 -1
  13. package/dist/cjs/gx-ide-new-kb.cjs.entry.js +41 -87
  14. package/dist/cjs/gx-ide-new-kb.cjs.entry.js.map +1 -1
  15. package/dist/cjs/gx-ide-object-selector.cjs.entry.js +1 -1
  16. package/dist/cjs/gx-ide-recent-news.cjs.entry.js +1 -1
  17. package/dist/cjs/gx-ide-share-kb.cjs.entry.js +2 -2
  18. package/dist/cjs/gx-ide-share-kb.cjs.entry.js.map +1 -1
  19. package/dist/cjs/gx-ide-start-page.cjs.entry.js +1 -1
  20. package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +1 -1
  21. package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +1 -1
  22. package/dist/cjs/gx-ide-ww-images.cjs.entry.js +1 -1
  23. package/dist/cjs/{helpers-be14ea67.js → helpers-74cf5c16.js} +9 -35
  24. package/dist/cjs/helpers-74cf5c16.js.map +1 -0
  25. package/dist/cjs/loader.cjs.js +1 -1
  26. package/dist/collection/common/helpers.js +6 -18
  27. package/dist/collection/common/helpers.js.map +1 -1
  28. package/dist/collection/components/connect-gx-server/connect-gx-server.js +1 -1
  29. package/dist/collection/components/connect-gx-server/connect-gx-server.js.map +1 -1
  30. package/dist/collection/components/create-kb-from-server/create-kb-from-server.js +1 -1
  31. package/dist/collection/components/create-kb-from-server/create-kb-from-server.js.map +1 -1
  32. package/dist/collection/components/new-environment/gx-ide-assets/new-environment/langs/new-environment.lang.en.json +4 -1
  33. package/dist/collection/components/new-environment/gx-ide-assets/new-environment/langs/new-environment.lang.ja.json +5 -2
  34. package/dist/collection/components/new-environment/helpers.js +11 -0
  35. package/dist/collection/components/new-environment/helpers.js.map +1 -0
  36. package/dist/collection/components/new-environment/new-environment.css +37 -658
  37. package/dist/collection/components/new-environment/new-environment.js +316 -214
  38. package/dist/collection/components/new-environment/new-environment.js.map +1 -1
  39. package/dist/collection/components/new-kb/helpers.js +0 -5
  40. package/dist/collection/components/new-kb/helpers.js.map +1 -1
  41. package/dist/collection/components/new-kb/new-kb.css +34 -11
  42. package/dist/collection/components/new-kb/new-kb.js +33 -40
  43. package/dist/collection/components/new-kb/new-kb.js.map +1 -1
  44. package/dist/collection/components/share-kb/share-kb.js +1 -1
  45. package/dist/collection/components/share-kb/share-kb.js.map +1 -1
  46. package/dist/components/form-validation.js +53 -0
  47. package/dist/components/form-validation.js.map +1 -0
  48. package/dist/components/gx-ide-connect-gx-server.js +1 -1
  49. package/dist/components/gx-ide-connect-gx-server.js.map +1 -1
  50. package/dist/components/gx-ide-create-kb-from-server.js +1 -1
  51. package/dist/components/gx-ide-create-kb-from-server.js.map +1 -1
  52. package/dist/components/gx-ide-dashboard-home.js +1 -1
  53. package/dist/components/gx-ide-new-environment.js +289 -164
  54. package/dist/components/gx-ide-new-environment.js.map +1 -1
  55. package/dist/components/gx-ide-new-kb.js +35 -81
  56. package/dist/components/gx-ide-new-kb.js.map +1 -1
  57. package/dist/components/gx-ide-object-selector.js +1 -1
  58. package/dist/components/gx-ide-share-kb.js +1 -1
  59. package/dist/components/gx-ide-share-kb.js.map +1 -1
  60. package/dist/components/gx-ide-start-page.js +1 -1
  61. package/dist/components/gx-ide-team-dev-commit.js +1 -1
  62. package/dist/components/gx-ide-team-dev-update.js +1 -1
  63. package/dist/components/gx-ide-ww-images.js +1 -1
  64. package/dist/components/helpers.js +7 -33
  65. package/dist/components/helpers.js.map +1 -1
  66. package/dist/esm/form-validation-8b3f527c.js +53 -0
  67. package/dist/esm/form-validation-8b3f527c.js.map +1 -0
  68. package/dist/esm/genexus-ide-ui.js +1 -1
  69. package/dist/esm/gx-ide-ai-message.entry.js +1 -1
  70. package/dist/esm/gx-ide-connect-gx-server.entry.js +1 -1
  71. package/dist/esm/gx-ide-connect-gx-server.entry.js.map +1 -1
  72. package/dist/esm/gx-ide-create-kb-from-server.entry.js +1 -1
  73. package/dist/esm/gx-ide-create-kb-from-server.entry.js.map +1 -1
  74. package/dist/esm/gx-ide-dashboard-home.entry.js +1 -1
  75. package/dist/esm/gx-ide-kb-manager-import.entry.js +1 -1
  76. package/dist/esm/gx-ide-new-environment.entry.js +276 -149
  77. package/dist/esm/gx-ide-new-environment.entry.js.map +1 -1
  78. package/dist/esm/gx-ide-new-kb.entry.js +35 -81
  79. package/dist/esm/gx-ide-new-kb.entry.js.map +1 -1
  80. package/dist/esm/gx-ide-object-selector.entry.js +1 -1
  81. package/dist/esm/gx-ide-recent-news.entry.js +1 -1
  82. package/dist/esm/gx-ide-share-kb.entry.js +1 -1
  83. package/dist/esm/gx-ide-share-kb.entry.js.map +1 -1
  84. package/dist/esm/gx-ide-start-page.entry.js +1 -1
  85. package/dist/esm/gx-ide-team-dev-commit.entry.js +1 -1
  86. package/dist/esm/gx-ide-team-dev-update.entry.js +1 -1
  87. package/dist/esm/gx-ide-ww-images.entry.js +1 -1
  88. package/dist/esm/{helpers-05c62775.js → helpers-97d0509d.js} +8 -34
  89. package/dist/esm/helpers-97d0509d.js.map +1 -0
  90. package/dist/esm/loader.js +1 -1
  91. package/dist/genexus-ide-ui/genexus-ide-ui.css +2 -0
  92. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  93. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
  94. package/dist/genexus-ide-ui/gx-ide-assets/new-environment/langs/new-environment.lang.en.json +4 -1
  95. package/dist/genexus-ide-ui/gx-ide-assets/new-environment/langs/new-environment.lang.ja.json +5 -2
  96. package/dist/genexus-ide-ui/{p-176e8d55.entry.js → p-3663c45f.entry.js} +2 -2
  97. package/dist/genexus-ide-ui/{p-ca842e11.entry.js → p-3c7371a8.entry.js} +2 -2
  98. package/dist/genexus-ide-ui/p-41ea711a.js +56 -0
  99. package/dist/genexus-ide-ui/p-41ea711a.js.map +1 -0
  100. package/dist/genexus-ide-ui/{p-55304f04.entry.js → p-4a8910cd.entry.js} +2 -2
  101. package/dist/genexus-ide-ui/p-4b6e1cf2.js +158 -0
  102. package/dist/genexus-ide-ui/p-4b6e1cf2.js.map +1 -0
  103. package/dist/genexus-ide-ui/{p-5c5abefc.entry.js → p-4bf55012.entry.js} +2 -2
  104. package/dist/genexus-ide-ui/p-4bf55012.entry.js.map +1 -0
  105. package/dist/genexus-ide-ui/p-51d5cc3d.entry.js +436 -0
  106. package/dist/genexus-ide-ui/p-51d5cc3d.entry.js.map +1 -0
  107. package/dist/genexus-ide-ui/{p-03a88768.entry.js → p-58409610.entry.js} +2 -2
  108. package/dist/genexus-ide-ui/{p-0fced96c.entry.js → p-7f08a5f8.entry.js} +2 -2
  109. package/dist/genexus-ide-ui/p-7f08a5f8.entry.js.map +1 -0
  110. package/dist/genexus-ide-ui/{p-6d0037f1.entry.js → p-7f4d8db5.entry.js} +2 -2
  111. package/dist/genexus-ide-ui/{p-6fa9ea04.entry.js → p-7f7d93b8.entry.js} +2 -2
  112. package/dist/genexus-ide-ui/{p-a2dad270.entry.js → p-89a7d88f.entry.js} +2 -2
  113. package/dist/genexus-ide-ui/p-89a7d88f.entry.js.map +1 -0
  114. package/dist/genexus-ide-ui/{p-e629ab16.entry.js → p-8ad301c4.entry.js} +2 -2
  115. package/dist/genexus-ide-ui/{p-a787b331.entry.js → p-90deeaa8.entry.js} +2 -2
  116. package/dist/genexus-ide-ui/{p-ab29274c.entry.js → p-92681e48.entry.js} +249 -295
  117. package/dist/genexus-ide-ui/p-92681e48.entry.js.map +1 -0
  118. package/dist/genexus-ide-ui/{p-de18e865.entry.js → p-f9a00f85.entry.js} +2 -2
  119. package/dist/types/common/helpers.d.ts +4 -3
  120. package/dist/types/components/new-environment/helpers.d.ts +4 -0
  121. package/dist/types/components/new-environment/new-environment.d.ts +33 -65
  122. package/dist/types/components/new-kb/helpers.d.ts +0 -2
  123. package/dist/types/components/new-kb/new-kb.d.ts +1 -2
  124. package/dist/types/components.d.ts +18 -45
  125. package/package.json +3 -3
  126. package/dist/cjs/helpers-be14ea67.js.map +0 -1
  127. package/dist/esm/helpers-05c62775.js.map +0 -1
  128. package/dist/genexus-ide-ui/p-0fced96c.entry.js.map +0 -1
  129. package/dist/genexus-ide-ui/p-14e6ef41.js +0 -171
  130. package/dist/genexus-ide-ui/p-14e6ef41.js.map +0 -1
  131. package/dist/genexus-ide-ui/p-5c5abefc.entry.js.map +0 -1
  132. package/dist/genexus-ide-ui/p-a2dad270.entry.js.map +0 -1
  133. package/dist/genexus-ide-ui/p-ab29274c.entry.js.map +0 -1
  134. package/dist/genexus-ide-ui/p-e146e456.entry.js +0 -342
  135. package/dist/genexus-ide-ui/p-e146e456.entry.js.map +0 -1
  136. /package/dist/genexus-ide-ui/{p-176e8d55.entry.js.map → p-3663c45f.entry.js.map} +0 -0
  137. /package/dist/genexus-ide-ui/{p-ca842e11.entry.js.map → p-3c7371a8.entry.js.map} +0 -0
  138. /package/dist/genexus-ide-ui/{p-55304f04.entry.js.map → p-4a8910cd.entry.js.map} +0 -0
  139. /package/dist/genexus-ide-ui/{p-03a88768.entry.js.map → p-58409610.entry.js.map} +0 -0
  140. /package/dist/genexus-ide-ui/{p-6d0037f1.entry.js.map → p-7f4d8db5.entry.js.map} +0 -0
  141. /package/dist/genexus-ide-ui/{p-6fa9ea04.entry.js.map → p-7f7d93b8.entry.js.map} +0 -0
  142. /package/dist/genexus-ide-ui/{p-e629ab16.entry.js.map → p-8ad301c4.entry.js.map} +0 -0
  143. /package/dist/genexus-ide-ui/{p-a787b331.entry.js.map → p-90deeaa8.entry.js.map} +0 -0
  144. /package/dist/genexus-ide-ui/{p-de18e865.entry.js.map → p-f9a00f85.entry.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- import { h as t, r as i, a as e, H as s, g as a } from "./p-aaed592c.js";
1
+ import { r as t, a as i, h as e, H as s, g as a } from "./p-aaed592c.js";
2
2
 
3
3
  import { c as o } from "./p-78b90603.js";
4
4
 
@@ -6,364 +6,316 @@ import { L as n } from "./p-74d59062.js";
6
6
 
7
7
  import { g as h } from "./p-3ef5a5a6.js";
8
8
 
9
- import { g as l } from "./p-6df9fab1.js";
9
+ import { r as l, m as r } from "./p-4b6e1cf2.js";
10
10
 
11
- // formSubmitValidation will be deprecated. use "validateControls" instead.
12
- // TODO: Improve the way we mark components with error. We must not use error classes.
13
- const r = {
14
- "ch-checkbox": "checkbox-error",
15
- "ch-combo-box-render": "combo-box-error",
16
- "ch-edit": "form-input-error"
17
- };
18
-
19
- const toggleErrorClass = (t, i) => {
20
- const e = i.tagName.toLowerCase();
21
- const s = r[e];
22
- if (t) {
23
- i.classList.add(s);
24
- } else {
25
- i.classList.remove(s);
26
- }
27
- };
28
-
29
- const validateControls = (t, i) => {
30
- const e = new Map(i);
31
- t.fieldErrors.forEach((t => {
32
- const i = t.key;
33
- const s = t.hasError;
34
- const a = e.get(i);
35
- if (a === null || a === void 0 ? void 0 : a.reference) {
36
- // toggle class to add or remove error style
37
- toggleErrorClass(s, a.reference);
38
- e.set(i, Object.assign(Object.assign({}, a), {
39
- hasError: s,
40
- message: t.message
41
- }));
42
- }
43
- }));
44
- // return validatableControls updated.
45
- return e;
46
- };
11
+ import { v as d } from "./p-41ea711a.js";
47
12
 
48
- const renderChCheckboxItems = (i, e = "undefined-group", s) => (i === null || i === void 0 ? void 0 : i.length) > 0 && i.map((i => t("ch-checkbox", {
49
- name: i.name,
50
- class: "checkbox",
51
- part: `${e}-${i.id}`,
52
- checkedValue: i.value || i.id,
53
- caption: i.label,
54
- disabled: i.disabled,
55
- value: i.value,
56
- onInput: s !== null && s !== void 0 ? s : null,
57
- startImgSrc: i.iconName
58
- })));
13
+ import { g as c } from "./p-6df9fab1.js";
59
14
 
60
- const mapOptionsToComboBoxItemModel = t => t.map((t => ({
61
- value: t.id,
62
- caption: t.label
63
- })));
15
+ const f = ':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}.header-two-cols{grid-template-columns:1fr 1fr}.location-wrapper{display:flex;gap:var(--mer-spacing--2xs)}.location{flex-grow:1;grid-area:location}.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}.control-header__back-end,.control-header__front-end{padding-block-start:var(--mer-spacing--md)}.main__back-end{border-inline-end:var(--section-common-border)}.main__back-end,.main__front-end{grid-auto-rows:max-content;padding-block:var(--content-block-spacing);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:var(--content-block-spacing);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}';
64
16
 
65
- const d = ':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}.header-two-cols{grid-template-columns:1fr 1fr}.location-wrapper{display:flex;gap:var(--mer-spacing--2xs)}.location{flex-grow:1;grid-area:location}.tab::part(page){scrollbar-width:thin}.basic{grid-template:"prototyping-target user-interface-language" max-content "back-end front-end" max-content;grid-template-columns:1fr 1fr}.prototyping-target{grid-area:prototyping-target}.user-interface-language{grid-area:user-interface-language}.back-end{grid-area:back-end;grid-auto-rows:max-content}.front-end{grid-area:front-end}.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:var(--content-block-spacing)}.tab-advanced__field-group{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:auto}.text-align-center{text-align:center}';
66
-
67
- var c = undefined && undefined.__classPrivateFieldGet || function(t, i, e, s) {
17
+ var u = undefined && undefined.__classPrivateFieldGet || function(t, i, e, s) {
68
18
  if (e === "a" && !s) throw new TypeError("Private accessor was defined without a getter");
69
19
  if (typeof i === "function" ? t !== i || !s : !i.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
70
20
  return e === "m" ? s : e === "a" ? s.call(t) : s ? s.value : i.get(t);
71
21
  };
72
22
 
73
- var f = undefined && undefined.__classPrivateFieldSet || function(t, i, e, s, a) {
23
+ var p = undefined && undefined.__classPrivateFieldSet || function(t, i, e, s, a) {
74
24
  if (s === "m") throw new TypeError("Private method is not writable");
75
25
  if (s === "a" && !a) throw new TypeError("Private accessor was defined without a setter");
76
26
  if (typeof i === "function" ? t !== i || !a : !i.has(t)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
77
27
  return s === "a" ? a.call(t, e) : a ? a.value = e : i.set(t, e), e;
78
28
  };
79
29
 
80
- var u, p, b, v, m, g, w, k, y, x, M, W, F, I, T, E, N, S, L, D, j, C, P, _, A, B, K, V, z, O, U, $, G, H, R, q, J, Q, X, Y, Z, tt, it, et;
30
+ var b, v, m, g, w, k, y, W, M, _, x, F, T, I, N, E, L, S, D, j, C, P, A, z, B, K, V, U, G, H, R, q, J, O, Q, X, Y, Z, $, tt, it, et, st, at;
81
31
 
82
- const st = [ "resets/box-sizing", "components/tab", "components/tooltip", "utils/form--full", "utils/layout", "utils/typography", "chameleon/scrollbar" ];
32
+ const ot = [ "resets/box-sizing", "components/tab", "components/tooltip", "utils/form--full", "utils/layout", "utils/typography", "chameleon/scrollbar" ];
83
33
 
84
- const at = "windows-authentication";
34
+ const nt = "windows-authentication";
85
35
 
86
- const ot = "main";
36
+ const ht = "main";
87
37
 
88
- const nt = "basic field-group spacing-body-inline";
38
+ const lt = "basic";
89
39
 
90
- const ht = l({
40
+ const rt = c({
91
41
  category: "system",
92
42
  name: "folder",
93
43
  colorType: "primary"
94
44
  });
95
45
 
96
- const lt = "basic";
46
+ const dt = "basic";
97
47
 
98
- const rt = "advanced";
48
+ const ct = "advanced";
99
49
 
100
- const dt = class {
50
+ const ft = class {
101
51
  constructor(s) {
102
- i(this, s);
103
- u.add(this);
104
- p.set(this, false);
52
+ t(this, s);
53
+ b.add(this);
54
+ v.set(this, false);
105
55
  /**
106
56
  * The component hard-coded strings translations.
107
57
  */
108
58
  // eslint-disable-next-line @stencil-community/own-props-must-be-private
109
- b.set(this, void 0);
110
- v.set(this, []);
111
- m.set(this, e(`./gx-ide-assets/new-kb/shortcuts.json`));
59
+ m.set(this, void 0);
112
60
  g.set(this, []);
113
- /* References needed to collect data con "Create" button submit*/ w.set(this, void 0);
114
- k.set(this, void 0);
115
- y.set(this, void 0);
116
- x.set(this, void 0);
117
- M.set(this, void 0);
61
+ w.set(this, i(`./gx-ide-assets/new-kb/shortcuts.json`));
62
+ k.set(this, []);
63
+ /* References needed to collect data con "Create" button submit*/ y.set(this, void 0);
118
64
  W.set(this, void 0);
65
+ M.set(this, void 0);
66
+ _.set(this, void 0);
67
+ x.set(this, void 0);
119
68
  F.set(this, void 0);
120
- I.set(this, void 0);
121
69
  T.set(this, void 0);
122
- E.set(this, void 0);
70
+ I.set(this, void 0);
123
71
  N.set(this, void 0);
124
- S.set(this, void 0);
72
+ E.set(this, void 0);
125
73
  L.set(this, void 0);
74
+ S.set(this, void 0);
126
75
  D.set(this, void 0);
127
76
  j.set(this, void 0);
128
77
  C.set(this, void 0);
129
- _.set(this, (() => {
130
- c(this, et, "f").call(this);
131
- }));
132
- A.set(this, (t => {
133
- const i = t === null || t === void 0 ? void 0 : t.detail;
134
- c(this, R, "f").call(this, i);
78
+ P.set(this, void 0);
79
+ z.set(this, (() => {
80
+ u(this, at, "f").call(this);
135
81
  }));
136
82
  B.set(this, (t => {
137
- c(this, G, "f").call(this, t.detail);
83
+ const i = t === null || t === void 0 ? void 0 : t.detail;
84
+ u(this, Q, "f").call(this, i);
138
85
  }));
139
- K.set(this, (() => {
140
- c(this, q, "f").call(this);
141
- c(this, it, "f").call(this);
86
+ K.set(this, (t => {
87
+ u(this, J, "f").call(this, t.detail);
142
88
  }));
143
89
  V.set(this, (() => {
144
- c(this, q, "f").call(this);
90
+ u(this, X, "f").call(this);
91
+ u(this, st, "f").call(this);
92
+ }));
93
+ U.set(this, (() => {
94
+ u(this, X, "f").call(this);
145
95
  }));
146
- z.set(this, (() => [ t("h2", {
96
+ G.set(this, (() => [ e("h2", {
147
97
  // #knowledge base storage
148
98
  class: "control-header heading-5 text-align-center"
149
- }, c(this, b, "f").tabAdvanced.tabTitle), t("div", {
99
+ }, u(this, m, "f").tabAdvanced.tabTitle), e("div", {
150
100
  class: "field-group tab-advanced__field-group"
151
- }, t("div", {
101
+ }, e("div", {
152
102
  // #server name
153
103
  class: "field field-block server-name-field"
154
- }, t("label", {
104
+ }, e("label", {
155
105
  class: "label",
156
106
  htmlFor: "serverName"
157
- }, c(this, b, "f").tabAdvanced.serverName.label), t("ch-combo-box-render", {
107
+ }, u(this, m, "f").tabAdvanced.serverName.label), e("ch-combo-box-render", {
158
108
  class: "combo-box",
159
109
  disabled: this.serverNames.length === 0,
160
- placeholder: this.serverNames.length === 0 ? c(this, b, "f").tabAdvanced.serverName.disabledPlaceholder : "",
110
+ placeholder: this.serverNames.length === 0 ? u(this, m, "f").tabAdvanced.serverName.disabledPlaceholder : "",
161
111
  value: this.serverNamesInitialValue,
162
- ref: t => f(this, L, t, "f"),
112
+ ref: t => p(this, D, t, "f"),
163
113
  model: this.serverNamesComboBoxModel,
164
- onInput: this.serverNames.length > 0 ? c(this, B, "f") : undefined,
114
+ onInput: this.serverNames.length > 0 && u(this, K, "f"),
165
115
  id: "serverName",
166
116
  part: "server-name"
167
- }), c(this, H, "f").call(this, c(this, L, "f"))), t("div", {
117
+ }), u(this, O, "f").call(this, u(this, D, "f"))), e("div", {
168
118
  // #authentication type
169
119
  class: "field field-block authentication-type-field"
170
- }, t("label", {
120
+ }, e("label", {
171
121
  class: "label",
172
122
  htmlFor: "authenticationType"
173
- }, c(this, b, "f").tabAdvanced.authenticationType.label), t("ch-combo-box-render", {
123
+ }, u(this, m, "f").tabAdvanced.authenticationType.label), e("ch-combo-box-render", {
174
124
  class: "combo-box",
175
125
  disabled: this.authenticationTypes.length === 0,
176
- placeholder: this.authenticationTypes.length === 0 ? c(this, b, "f").tabAdvanced.authenticationType.disabledPlaceholder : "",
126
+ placeholder: this.authenticationTypes.length === 0 ? u(this, m, "f").tabAdvanced.authenticationType.disabledPlaceholder : "",
177
127
  value: this.authenticationTypesInitialValue,
178
- ref: t => f(this, w, t, "f"),
128
+ ref: t => p(this, y, t, "f"),
179
129
  model: this.authenticationTypesComboBoxModel,
180
130
  id: "authenticationType",
181
131
  part: "authentication-type",
182
- onInput: this.authenticationTypes.length > 0 ? c(this, A, "f") : undefined
183
- }), c(this, H, "f").call(this, c(this, w, "f"))), t("div", {
132
+ onInput: this.authenticationTypes.length > 0 ? u(this, B, "f") : undefined
133
+ }), u(this, O, "f").call(this, u(this, y, "f"))), e("div", {
184
134
  // #database
185
135
  class: "field field-block database-field"
186
- }, t("label", {
136
+ }, e("label", {
187
137
  class: "label",
188
138
  htmlFor: "databaseName"
189
- }, c(this, b, "f").tabAdvanced.databaseName.label), t("ch-edit", {
139
+ }, u(this, m, "f").tabAdvanced.databaseName.label), e("ch-edit", {
190
140
  // TODO add placeholder
191
141
  class: "form-input",
192
142
  value: this.databaseName,
193
143
  id: "databaseName",
194
144
  part: "database-name",
195
- ref: t => f(this, x, t, "f")
196
- }), c(this, H, "f").call(this, c(this, x, "f"))), this.userNameVisible ? t("div", {
145
+ ref: t => p(this, _, t, "f")
146
+ }), u(this, O, "f").call(this, u(this, _, "f"))), this.userNameVisible ? e("div", {
197
147
  // #username
198
148
  class: "field field-block username-field"
199
- }, t("label", {
149
+ }, e("label", {
200
150
  class: "label",
201
151
  htmlFor: "userName"
202
- }, c(this, b, "f").tabAdvanced.userName.label), t("ch-edit", {
152
+ }, u(this, m, "f").tabAdvanced.userName.label), e("ch-edit", {
203
153
  // TODO add placeholder
204
154
  class: "form-input",
205
155
  value: this.userName,
206
156
  id: "userName",
207
157
  part: "user-name",
208
- ref: t => f(this, j, t, "f")
209
- }), c(this, H, "f").call(this, c(this, j, "f"))) : null, t("div", {
158
+ ref: t => p(this, C, t, "f")
159
+ }), u(this, O, "f").call(this, u(this, C, "f"))) : null, e("div", {
210
160
  // #collation
211
161
  class: "field field-block collation-field"
212
- }, t("label", {
162
+ }, e("label", {
213
163
  class: "label",
214
164
  htmlFor: "collation"
215
- }, c(this, b, "f").tabAdvanced.collation.label), t("ch-combo-box-render", {
165
+ }, u(this, m, "f").tabAdvanced.collation.label), e("ch-combo-box-render", {
216
166
  class: "combo-box",
217
167
  disabled: this.serverNames.length === 0,
218
- placeholder: this.collations.length === 0 ? c(this, b, "f").tabAdvanced.collation.disabledPlaceholder : "",
168
+ placeholder: this.collations.length === 0 ? u(this, m, "f").tabAdvanced.collation.disabledPlaceholder : "",
219
169
  value: this.collationsInitialValue,
220
- ref: t => f(this, k, t, "f"),
170
+ ref: t => p(this, W, t, "f"),
221
171
  model: this.collationsComboBoxModel,
222
172
  id: "collation",
223
173
  part: "collation"
224
- }), c(this, H, "f").call(this, c(this, k, "f"))), this.passwordVisible ? t("div", {
174
+ }), u(this, O, "f").call(this, u(this, W, "f"))), this.passwordVisible ? e("div", {
225
175
  // #password
226
176
  class: "field field-block password-field"
227
- }, t("label", {
177
+ }, e("label", {
228
178
  class: "label",
229
179
  htmlFor: "password"
230
- }, c(this, b, "f").tabAdvanced.password.label), t("ch-edit", {
180
+ }, u(this, m, "f").tabAdvanced.password.label), e("ch-edit", {
231
181
  // TODO add placeholder
232
182
  class: "form-input",
233
183
  type: "password",
234
184
  value: this.password,
235
185
  id: "password",
236
186
  part: "password",
237
- ref: t => f(this, T, t, "f")
238
- }), c(this, H, "f").call(this, c(this, T, "f"))) : null, t("ch-checkbox", {
187
+ ref: t => p(this, N, t, "f")
188
+ }), u(this, O, "f").call(this, u(this, N, "f"))) : null, e("ch-checkbox", {
239
189
  // #create data in knowledge base folder
240
190
  class: "checkbox create-data-in-kb-checkbox",
241
191
  checkedValue: "createDataFilesInKBFolder",
242
- caption: c(this, b, "f").tabAdvanced.createDataFilesInKbFolder,
192
+ caption: u(this, m, "f").tabAdvanced.createDataFilesInKbFolder,
243
193
  disabled: this.createDataInKbDisabled,
244
194
  part: "create-data-in-kb",
245
195
  id: "createDataFilesInKBFolder",
246
- ref: t => f(this, y, t, "f")
247
- }), this.savePasswordVisible ? t("ch-checkbox", {
196
+ ref: t => p(this, M, t, "f")
197
+ }), this.savePasswordVisible ? e("ch-checkbox", {
248
198
  // #save password
249
199
  class: "checkbox save-password-checkbox",
250
200
  checkedValue: "password",
251
- caption: c(this, b, "f").tabAdvanced.savePassword,
201
+ caption: u(this, m, "f").tabAdvanced.savePassword,
252
202
  part: "save-password",
253
203
  id: "savePassword",
254
- ref: t => f(this, S, t, "f")
204
+ ref: t => p(this, S, t, "f")
255
205
  }) : null) ]));
256
- O.set(this, (() => [ t("div", {
206
+ H.set(this, (() => [ e("section", {
207
+ class: "basic__header field-group control-header-with-border spacing-body-inline"
208
+ }, e("div", {
257
209
  // #prototyping target
258
210
  class: "field field-block prototyping-target"
259
- }, t("label", {
211
+ }, e("label", {
260
212
  class: "label",
261
213
  htmlFor: "prototypingTarget"
262
- }, c(this, b, "f").tabBasic.prototypingTarget.label), t("ch-combo-box-render", {
214
+ }, u(this, m, "f").tabBasic.prototypingTarget.label), e("ch-combo-box-render", {
263
215
  id: "prototypingTarget",
264
216
  class: "combo-box",
265
217
  part: "prototyping-target",
266
218
  disabled: this.prototypingTargets.length === 0,
267
- placeholder: this.prototypingTargets.length === 0 ? c(this, b, "f").tabBasic.prototypingTarget.disabledPlaceholder : "",
219
+ placeholder: this.prototypingTargets.length === 0 ? u(this, m, "f").tabBasic.prototypingTarget.disabledPlaceholder : "",
268
220
  value: this.prototypingTargetsInitialValue,
269
221
  model: this.prototypingTargetsComboBoxModel,
270
- onInput: this.prototypingTargets.length > 0 ? c(this, V, "f") : undefined,
271
- ref: t => f(this, N, t, "f")
272
- }), c(this, H, "f").call(this, c(this, N, "f"))), t("div", {
222
+ onInput: this.prototypingTargets.length > 0 ? u(this, U, "f") : undefined,
223
+ ref: t => p(this, L, t, "f")
224
+ }), u(this, O, "f").call(this, u(this, L, "f"))), e("div", {
273
225
  // #user interface
274
226
  class: "field field-block user-interface-language"
275
- }, t("label", {
227
+ }, e("label", {
276
228
  class: "label",
277
229
  htmlFor: "userInterfaceLanguage"
278
- }, c(this, b, "f").tabBasic.userInterfaceLanguage.label), t("ch-combo-box-render", {
230
+ }, u(this, m, "f").tabBasic.userInterfaceLanguage.label), e("ch-combo-box-render", {
279
231
  class: "combo-box",
280
232
  disabled: this.userInterfaceLanguages.length === 0,
281
- placeholder: this.userInterfaceLanguages.length === 0 ? c(this, b, "f").tabBasic.userInterfaceLanguage.disabledPlaceholder : "",
233
+ placeholder: this.userInterfaceLanguages.length === 0 ? u(this, m, "f").tabBasic.userInterfaceLanguage.disabledPlaceholder : "",
282
234
  value: this.userInterfaceLanguagesInitialValue,
283
- ref: t => f(this, D, t, "f"),
235
+ ref: t => p(this, j, t, "f"),
284
236
  model: this.userInterfaceLanguagesComboBoxModel,
285
237
  id: "userInterfaceLanguage",
286
238
  part: "user-interface-language"
287
- }), c(this, H, "f").call(this, c(this, D, "f"))), t("div", null, t("h2", {
239
+ }), u(this, O, "f").call(this, u(this, j, "f")))), e("section", {
240
+ class: "section__back-end"
241
+ }, e("h2", {
288
242
  // back end
289
- class: "control-header heading-5 text-align-center"
290
- }, c(this, b, "f").tabBasic.backEnd.backEndLabel), t("div", {
291
- class: "field-group back-end"
292
- }, t("div", {
243
+ class: "control-header control-header-with-border control-header__back-end heading-5 text-align-center spacing-body-inline"
244
+ }, u(this, m, "f").tabBasic.backEnd.backEndLabel), e("div", {
245
+ class: "field-group main__back-end spacing-body-inline scrollable"
246
+ }, e("div", {
293
247
  // #prototyping environment
294
248
  class: "field field-block"
295
- }, t("label", {
249
+ }, e("label", {
296
250
  class: "label",
297
251
  htmlFor: "prototypingEnvironment"
298
- }, c(this, b, "f").tabBasic.backEnd.prototypingEnvironment.label), t("ch-combo-box-render", {
252
+ }, u(this, m, "f").tabBasic.backEnd.prototypingEnvironment.label), e("ch-combo-box-render", {
299
253
  class: "combo-box",
300
254
  disabled: this.prototypingEnvironments.length === 0,
301
- placeholder: this.prototypingEnvironments.length === 0 ? c(this, b, "f").tabBasic.backEnd.prototypingEnvironment.disabledPlaceholder : "",
255
+ placeholder: this.prototypingEnvironments.length === 0 ? u(this, m, "f").tabBasic.backEnd.prototypingEnvironment.disabledPlaceholder : "",
302
256
  value: this.prototypingEnvironmentsInitialValue,
303
- ref: t => f(this, E, t, "f"),
257
+ ref: t => p(this, E, t, "f"),
304
258
  model: this.prototypingEnvironmentsComboBoxModel,
305
- onInput: this.prototypingEnvironments.length > 0 ? c(this, K, "f") : undefined,
259
+ onInput: this.prototypingEnvironments.length > 0 ? u(this, V, "f") : undefined,
306
260
  part: "prototyping-environment",
307
261
  id: "prototypingEnvironment"
308
- }), c(this, H, "f").call(this, c(this, E, "f"))), t("div", {
262
+ }), u(this, O, "f").call(this, u(this, E, "f"))), e("div", {
309
263
  // #data source
310
264
  class: "field field-block"
311
- }, t("label", {
265
+ }, e("label", {
312
266
  class: "label",
313
267
  htmlFor: "dataSource"
314
- }, c(this, b, "f").tabBasic.backEnd.dataSource.label), t("ch-combo-box-render", {
268
+ }, u(this, m, "f").tabBasic.backEnd.dataSource.label), e("ch-combo-box-render", {
315
269
  class: "combo-box",
316
270
  disabled: this.defaultDataSources.length === 0,
317
- placeholder: this.defaultDataSources.length === 0 ? c(this, b, "f").tabBasic.backEnd.dataSource.disabledPlaceholder : "",
271
+ placeholder: this.defaultDataSources.length === 0 ? u(this, m, "f").tabBasic.backEnd.dataSource.disabledPlaceholder : "",
318
272
  value: this.defaultDataSourcesInitialValue,
319
- ref: t => f(this, M, t, "f"),
273
+ ref: t => p(this, x, t, "f"),
320
274
  model: this.defaultDataSourcesComboBoxModel,
321
275
  part: "data-source",
322
276
  id: "dataSource"
323
- }), c(this, H, "f").call(this, c(this, M, "f"))))), t("div", null, t("h2", {
324
- // front end
325
- class: "control-header heading-5 text-align-center"
326
- }, c(this, b, "f").tabBasic.frontEnd.frontEndLabel), t("div", {
327
- class: "field-group front-end",
328
- ref: t => f(this, W, t, "f")
329
- }, renderChCheckboxItems(this.frontEnds, "front-end", c(this, _, "f")))) ]));
277
+ }), u(this, O, "f").call(this, u(this, x, "f"))))), e("section", {
278
+ class: "section__front-end"
279
+ }, e("h2", {
280
+ class: "control-header control-header-with-border control-header__front-end heading-5 text-align-center spacing-body-inline"
281
+ }, u(this, m, "f").tabBasic.frontEnd.frontEndLabel), e("div", {
282
+ class: "field-group main__front-end spacing-body-inline scrollable",
283
+ ref: t => p(this, F, t, "f")
284
+ }, l(this.frontEnds, "front-end", u(this, z, "f")))) ]));
330
285
  // - - - - - - - - - -
331
- U.set(this, (() => {
286
+ R.set(this, (() => {
332
287
  if (this.cancelCallback) {
333
288
  this.cancelCallback();
334
289
  }
335
290
  }));
336
- $.set(this, (() => {
337
- var t, i, e, s, a, o, n, h, l, r, d, f, u, p;
338
- if (this.createCallback) {
339
- const b = this.createCallback({
340
- authenticationType: (t = c(this, w, "f")) === null || t === void 0 ? void 0 : t.value,
341
- collation: (i = c(this, k, "f")) === null || i === void 0 ? void 0 : i.value,
342
- createDataFilesInKBFolder: !!((e = c(this, y, "f")) === null || e === void 0 ? void 0 : e.value),
343
- dataSource: (s = c(this, M, "f")) === null || s === void 0 ? void 0 : s.value,
344
- databaseName: (a = c(this, x, "f")) === null || a === void 0 ? void 0 : a.value,
345
- frontEnds: c(this, v, "f"),
346
- kbLocation: (o = c(this, I, "f")) === null || o === void 0 ? void 0 : o.value,
347
- kbName: (n = c(this, F, "f")) === null || n === void 0 ? void 0 : n.value,
348
- password: (h = c(this, T, "f")) === null || h === void 0 ? void 0 : h.value,
349
- prototypingEnvironment: (l = c(this, E, "f")) === null || l === void 0 ? void 0 : l.value,
350
- prototypingTarget: (r = c(this, N, "f")) === null || r === void 0 ? void 0 : r.value,
351
- savePassword: !!((d = c(this, S, "f")) === null || d === void 0 ? void 0 : d.value),
352
- serverName: (f = c(this, L, "f")) === null || f === void 0 ? void 0 : f.value,
353
- userInterfaceLanguage: (u = c(this, D, "f")) === null || u === void 0 ? void 0 : u.value,
354
- userName: (p = c(this, j, "f")) === null || p === void 0 ? void 0 : p.value
355
- });
356
- b.then((t => {
357
- this.validatableControls = validateControls(t, this.validatableControls);
358
- }));
359
- }
291
+ q.set(this, (() => {
292
+ var t, i, e, s, a, o, n, h, l, r, c, f, p, b;
293
+ this.createCallback({
294
+ authenticationType: (t = u(this, y, "f")) === null || t === void 0 ? void 0 : t.value,
295
+ collation: (i = u(this, W, "f")) === null || i === void 0 ? void 0 : i.value,
296
+ createDataFilesInKBFolder: !!((e = u(this, M, "f")) === null || e === void 0 ? void 0 : e.value),
297
+ dataSource: (s = u(this, x, "f")) === null || s === void 0 ? void 0 : s.value,
298
+ databaseName: (a = u(this, _, "f")) === null || a === void 0 ? void 0 : a.value,
299
+ frontEnds: u(this, g, "f"),
300
+ kbLocation: (o = u(this, I, "f")) === null || o === void 0 ? void 0 : o.value,
301
+ kbName: (n = u(this, T, "f")) === null || n === void 0 ? void 0 : n.value,
302
+ password: (h = u(this, N, "f")) === null || h === void 0 ? void 0 : h.value,
303
+ prototypingEnvironment: (l = u(this, E, "f")) === null || l === void 0 ? void 0 : l.value,
304
+ prototypingTarget: (r = u(this, L, "f")) === null || r === void 0 ? void 0 : r.value,
305
+ savePassword: !!((c = u(this, S, "f")) === null || c === void 0 ? void 0 : c.value),
306
+ serverName: (f = u(this, D, "f")) === null || f === void 0 ? void 0 : f.value,
307
+ userInterfaceLanguage: (p = u(this, j, "f")) === null || p === void 0 ? void 0 : p.value,
308
+ userName: (b = u(this, C, "f")) === null || b === void 0 ? void 0 : b.value
309
+ }).then((t => {
310
+ this.validatableControls = d(t, this.validatableControls);
311
+ }));
360
312
  }));
361
313
  /**
362
314
  * Disable "Create Data in Knowledge Base Folder" if the first Server Name
363
315
  * option is selected.
364
316
  * */
365
317
  // eslint-disable-next-line @stencil-community/own-props-must-be-private
366
- G.set(this, (t => {
318
+ J.set(this, (t => {
367
319
  var i;
368
320
  if (((i = this.serverNames[0]) === null || i === void 0 ? void 0 : i.id) === t) {
369
321
  this.createDataInKbDisabled = true;
@@ -371,23 +323,25 @@ const dt = class {
371
323
  this.createDataInKbDisabled = false;
372
324
  }
373
325
  }));
374
- H.set(this, (i => {
375
- var e, s, a;
376
- return ((s = (e = this.validatableControls) === null || e === void 0 ? void 0 : e.get(i === null || i === void 0 ? void 0 : i.id)) === null || s === void 0 ? void 0 : s.hasError) && ((a = this.validatableControls.get(i.id)) === null || a === void 0 ? void 0 : a.message) && t("ch-tooltip", {
326
+ // TODO: evaluate if this should be a global helper function.
327
+ // It is used on new-kb as well.
328
+ O.set(this, (t => {
329
+ var i, s, a;
330
+ return ((s = (i = this.validatableControls) === null || i === void 0 ? void 0 : i.get(t === null || t === void 0 ? void 0 : t.id)) === null || s === void 0 ? void 0 : s.hasError) && ((a = this.validatableControls.get(t.id)) === null || a === void 0 ? void 0 : a.message) && e("ch-tooltip", {
377
331
  class: "tooltip",
378
- actionElement: i,
332
+ actionElement: t,
379
333
  blockAlign: o.tooltipSettings.blockAlign,
380
334
  inlineAlign: o.tooltipSettings.inlineAlign,
381
335
  delay: o.tooltipSettings.delay
382
- }, this.validatableControls.get(i.id).message);
336
+ }, this.validatableControls.get(t.id).message);
383
337
  }));
384
338
  /**
385
339
  * If "Authentication Type" is "Windows Authentication", hide User Name,
386
340
  * Password, and Save Password fields.
387
341
  */
388
342
  // eslint-disable-next-line @stencil-community/own-props-must-be-private
389
- R.set(this, (t => {
390
- if (t === at) {
343
+ Q.set(this, (t => {
344
+ if (t === nt) {
391
345
  this.userNameVisible = false;
392
346
  this.passwordVisible = false;
393
347
  this.savePasswordVisible = false;
@@ -397,22 +351,22 @@ const dt = class {
397
351
  this.savePasswordVisible = true;
398
352
  }
399
353
  }));
400
- q.set(this, (() => {
354
+ X.set(this, (() => {
401
355
  if (this.getDataSourcesCallback) {
402
- const t = c(this, E, "f").value;
403
- const i = c(this, N, "f").value;
356
+ const t = u(this, E, "f").value;
357
+ const i = u(this, L, "f").value;
404
358
  const e = this.getDataSourcesCallback(t, i);
405
359
  e.then((t => {
406
360
  if (t.length > 0) {
407
361
  this.defaultDataSources = t;
408
362
  // set first option as selected
409
- c(this, M, "f").value = this.defaultDataSources[0].id;
363
+ u(this, x, "f").value = this.defaultDataSources[0].id;
410
364
  }
411
365
  })).catch((() => {}));
412
366
  }
413
367
  }));
414
- J.set(this, (() => {
415
- c(this, et, "f").call(this);
368
+ Y.set(this, (() => {
369
+ u(this, at, "f").call(this);
416
370
  // map all "Basic Tab" GxOption[]'s to ComboBoxModel's
417
371
  this.watchDefaultDataSources(this.defaultDataSources);
418
372
  this.watchPrototypingEnvironments(this.prototypingEnvironments);
@@ -420,18 +374,18 @@ const dt = class {
420
374
  this.watchServerNames(this.serverNames);
421
375
  this.watchUserInterfaceLanguages(this.userInterfaceLanguages);
422
376
  }));
423
- Q.set(this, (() => {
424
- const t = c(this, L, "f").value;
425
- c(this, G, "f").call(this, t);
426
- const i = c(this, w, "f").value;
427
- c(this, R, "f").call(this, i);
377
+ Z.set(this, (() => {
378
+ const t = u(this, D, "f").value;
379
+ u(this, J, "f").call(this, t);
380
+ const i = u(this, y, "f").value;
381
+ u(this, Q, "f").call(this, i);
428
382
  // map all "Advanced Tab" GxOption[]'s to ComboBoxModel's
429
383
  this.watchAuthenticationTypes(this.authenticationTypes);
430
384
  this.watchCollations(this.collations);
431
385
  }));
432
- X.set(this, (() => {
386
+ $.set(this, (() => {
433
387
  // populate #controlsValidation with the controls that could have errors.
434
- const t = [ c(this, M, "f"), c(this, F, "f"), c(this, E, "f"), c(this, N, "f"), c(this, D, "f") ];
388
+ const t = [ u(this, x, "f"), u(this, T, "f"), u(this, E, "f"), u(this, L, "f"), u(this, j, "f") ];
435
389
  t.forEach((t => {
436
390
  if (t.id) {
437
391
  this.validatableControls.set(t.id, {
@@ -442,9 +396,9 @@ const dt = class {
442
396
  }
443
397
  }));
444
398
  }));
445
- Y.set(this, (() => {
399
+ tt.set(this, (() => {
446
400
  // populate #controlsValidation with the controls that could have errors.
447
- const t = [ c(this, I, "f"), c(this, w, "f"), c(this, y, "f"), c(this, L, "f"), c(this, w, "f"), c(this, x, "f"), c(this, j, "f"), c(this, k, "f"), c(this, T, "f"), c(this, S, "f") ];
401
+ const t = [ u(this, I, "f"), u(this, y, "f"), u(this, M, "f"), u(this, D, "f"), u(this, y, "f"), u(this, _, "f"), u(this, C, "f"), u(this, W, "f"), u(this, N, "f"), u(this, S, "f") ];
448
402
  t.forEach((t => {
449
403
  if (t.id) {
450
404
  this.validatableControls.set(t.id, {
@@ -459,15 +413,15 @@ const dt = class {
459
413
  * @description It allows defining the DBMS that will be used in the solution
460
414
  */
461
415
  // eslint-disable-next-line @stencil-community/own-props-must-be-private
462
- Z.set(this, (() => {
416
+ it.set(this, (() => {
463
417
  this.selectLocationCallback().then((t => {
464
418
  if (t) {
465
419
  this.kbLocation = t;
466
420
  }
467
421
  }));
468
422
  }));
469
- tt.set(this, (t => {
470
- if (t.detail.newSelectedId === rt) {
423
+ et.set(this, (t => {
424
+ if (t.detail.newSelectedId === ct) {
471
425
  this.advancedTabIsVisible = true;
472
426
  // Some logic for advanced tab is done on componentDidRender lifecycle,
473
427
  // since the reference to the elements is needed.
@@ -478,9 +432,9 @@ const dt = class {
478
432
  * by comparing the new state (getFrontEndsCallback result) and previous state.
479
433
  */
480
434
  // eslint-disable-next-line @stencil-community/own-props-must-be-private
481
- it.set(this, (() => {
435
+ st.set(this, (() => {
482
436
  if (this.getFrontEndsCallback) {
483
- const t = c(this, E, "f").value;
437
+ const t = u(this, E, "f").value;
484
438
  const i = this.getFrontEndsCallback(t);
485
439
  i.then((t => {
486
440
  const i = [];
@@ -496,8 +450,8 @@ const dt = class {
496
450
  })).catch((() => {}));
497
451
  }
498
452
  }));
499
- et.set(this, (() => {
500
- f(this, v, c(this, u, "m", P).call(this), "f");
453
+ at.set(this, (() => {
454
+ p(this, g, u(this, b, "m", A).call(this), "f");
501
455
  }));
502
456
  this.advancedTabIsVisible = false;
503
457
  this.validatableControls = new Map;
@@ -544,89 +498,89 @@ const dt = class {
544
498
  }
545
499
  watchAuthenticationTypes(t) {
546
500
  if (t === null || t === void 0 ? void 0 : t.length) {
547
- this.authenticationTypesComboBoxModel = mapOptionsToComboBoxItemModel(t);
501
+ this.authenticationTypesComboBoxModel = r(t);
548
502
  this.authenticationTypesInitialValue = h(t);
549
503
  }
550
504
  }
551
505
  watchCollations(t) {
552
506
  if (t === null || t === void 0 ? void 0 : t.length) {
553
- this.collationsComboBoxModel = mapOptionsToComboBoxItemModel(t);
507
+ this.collationsComboBoxModel = r(t);
554
508
  this.collationsInitialValue = h(t);
555
509
  }
556
510
  }
557
511
  watchDefaultDataSources(t) {
558
512
  if (t === null || t === void 0 ? void 0 : t.length) {
559
- this.defaultDataSourcesComboBoxModel = mapOptionsToComboBoxItemModel(t);
513
+ this.defaultDataSourcesComboBoxModel = r(t);
560
514
  this.defaultDataSourcesInitialValue = h(t);
561
515
  }
562
516
  }
563
517
  watchPrototypingEnvironments(t) {
564
518
  if (t === null || t === void 0 ? void 0 : t.length) {
565
- this.prototypingEnvironmentsComboBoxModel = mapOptionsToComboBoxItemModel(t);
519
+ this.prototypingEnvironmentsComboBoxModel = r(t);
566
520
  this.prototypingEnvironmentsInitialValue = h(t);
567
521
  }
568
522
  }
569
523
  watchPrototypingTargets(t) {
570
524
  if (t === null || t === void 0 ? void 0 : t.length) {
571
- this.prototypingTargetsComboBoxModel = mapOptionsToComboBoxItemModel(t);
525
+ this.prototypingTargetsComboBoxModel = r(t);
572
526
  this.prototypingTargetsInitialValue = h(t);
573
527
  }
574
528
  }
575
529
  watchServerNames(t) {
576
530
  if (t === null || t === void 0 ? void 0 : t.length) {
577
- this.serverNamesComboBoxModel = mapOptionsToComboBoxItemModel(t);
531
+ this.serverNamesComboBoxModel = r(t);
578
532
  this.serverNamesInitialValue = h(t);
579
533
  }
580
534
  }
581
535
  watchUserInterfaceLanguages(t) {
582
536
  if (t === null || t === void 0 ? void 0 : t.length) {
583
- this.userInterfaceLanguagesComboBoxModel = mapOptionsToComboBoxItemModel(t);
537
+ this.userInterfaceLanguagesComboBoxModel = r(t);
584
538
  this.userInterfaceLanguagesInitialValue = h(t);
585
539
  }
586
540
  }
587
541
  async componentWillLoad() {
588
- f(this, b, await n.getComponentStrings(this.el), "f");
542
+ p(this, m, await n.getComponentStrings(this.el), "f");
589
543
  this.previousFrontEndsState = this.frontEnds;
590
- f(this, g, [ {
591
- id: lt,
592
- name: c(this, b, "f").tabBasic.tabLabel
544
+ p(this, k, [ {
545
+ id: dt,
546
+ name: u(this, m, "f").tabBasic.tabLabel
593
547
  }, {
594
- id: rt,
595
- name: c(this, b, "f").tabAdvanced.tabLabel
548
+ id: ct,
549
+ name: u(this, m, "f").tabAdvanced.tabLabel
596
550
  } ], "f");
597
551
  }
598
552
  componentDidLoad() {
599
- c(this, J, "f").call(this);
600
- c(this, X, "f").call(this);
553
+ u(this, Y, "f").call(this);
554
+ u(this, $, "f").call(this);
601
555
  }
602
556
  componentDidRender() {
603
- if (this.advancedTabIsVisible && !c(this, p, "f")) {
557
+ if (this.advancedTabIsVisible && !u(this, v, "f")) {
604
558
  // just call this once.
605
- c(this, Q, "f").call(this);
606
- c(this, Y, "f").call(this);
607
- f(this, p, true, "f");
559
+ u(this, Z, "f").call(this);
560
+ u(this, tt, "f").call(this);
561
+ p(this, v, true, "f");
608
562
  }
609
563
  }
610
564
  /**
611
565
  * Suspends or reactivates the shortcuts
612
566
  */ async suspendShortcuts(t) {
613
567
  if (t) {
614
- c(this, C, "f").suspend = true;
568
+ u(this, P, "f").suspend = true;
615
569
  } else {
616
- c(this, C, "f").suspend = false;
570
+ u(this, P, "f").suspend = false;
617
571
  }
618
572
  }
619
573
  render() {
620
- return t(s, {
574
+ return e(s, {
621
575
  class: "widget"
622
- }, t("ch-theme", {
623
- model: st
624
- }), t("ch-shortcuts", {
625
- src: c(this, m, "f"),
626
- ref: t => f(this, C, t, "f")
627
- }), t("section", {
576
+ }, e("ch-theme", {
577
+ model: ot
578
+ }), e("ch-shortcuts", {
579
+ src: u(this, w, "f"),
580
+ ref: t => p(this, P, t, "f")
581
+ }), e("section", {
628
582
  class: "section"
629
- }, t("header", {
583
+ }, e("header", {
630
584
  class: {
631
585
  "field-group": true,
632
586
  "control-header-with-border": !this.isAdvanced,
@@ -637,92 +591,92 @@ const dt = class {
637
591
  "spacing-body-block-start": true,
638
592
  "spacing-body-inline": true
639
593
  }
640
- }, t("div", {
594
+ }, e("div", {
641
595
  // #kb name
642
596
  class: "field field-inline kb-name"
643
- }, t("label", {
597
+ }, e("label", {
644
598
  class: "label kb-label",
645
599
  htmlFor: "kbName"
646
- }, c(this, b, "f").header.kbName), t("ch-edit", {
600
+ }, u(this, m, "f").header.kbName), e("ch-edit", {
647
601
  // TODO add placeholder
648
602
  autoFocus: true,
649
603
  class: "form-input kb-input",
650
604
  placeholder: "SalesInventory",
651
605
  value: this.kbName,
652
- ref: t => f(this, F, t, "f"),
606
+ ref: t => p(this, T, t, "f"),
653
607
  id: "kbName",
654
608
  part: "kb-name"
655
- }), c(this, H, "f").call(this, c(this, F, "f"))), this.isAdvanced && t("div", {
609
+ }), u(this, O, "f").call(this, u(this, T, "f"))), this.isAdvanced && e("div", {
656
610
  class: "location-wrapper"
657
- }, t("div", {
611
+ }, e("div", {
658
612
  // #location
659
613
  class: "field field-inline location"
660
- }, t("label", {
614
+ }, e("label", {
661
615
  class: "label location-label",
662
616
  htmlFor: "kbLocation"
663
- }, c(this, b, "f").header.kbLocation), t("ch-edit", {
617
+ }, u(this, m, "f").header.kbLocation), e("ch-edit", {
664
618
  // TODO add placeholder
665
619
  class: "form-input location-input",
666
620
  value: this.kbLocation,
667
- ref: t => f(this, I, t, "f"),
621
+ ref: t => p(this, I, t, "f"),
668
622
  id: "kbLocation",
669
623
  part: "kb-location"
670
- }), c(this, H, "f").call(this, c(this, I, "f"))), t("button", {
624
+ }), u(this, O, "f").call(this, u(this, I, "f"))), e("button", {
671
625
  class: "button-tertiary button-icon-only location-icon",
672
- "aria-label": c(this, b, "f").header.selectLocationButton,
673
- title: c(this, b, "f").header.selectLocationButton,
626
+ "aria-label": u(this, m, "f").header.selectLocationButton,
627
+ title: u(this, m, "f").header.selectLocationButton,
674
628
  part: "button-select-location",
675
- onClick: c(this, Z, "f")
676
- }, t("ch-image", {
629
+ onClick: u(this, it, "f")
630
+ }, e("ch-image", {
677
631
  class: "icon-md",
678
- src: ht
679
- })))), this.isAdvanced ? t("ch-tab-render", {
632
+ src: rt
633
+ })))), this.isAdvanced ? e("ch-tab-render", {
680
634
  // #tab
681
635
  class: {
682
636
  scrollable: true,
683
637
  tab: true,
684
- [ot]: true
638
+ [ht]: true
685
639
  },
686
640
  direction: "block",
687
- model: c(this, g, "f"),
688
- selectedId: lt,
689
- overflow: "auto scroll",
641
+ model: u(this, k, "f"),
642
+ selectedId: dt,
643
+ overflow: "auto",
690
644
  contain: "size",
691
- onSelectedItemChange: !this.advancedTabIsVisible && c(this, tt, "f")
692
- }, t("div", {
693
- slot: lt,
694
- class: nt,
645
+ onSelectedItemChange: !this.advancedTabIsVisible && u(this, et, "f")
646
+ }, e("div", {
647
+ slot: dt,
648
+ class: lt,
695
649
  part: "tab-button-basic"
696
- }, c(this, O, "f").call(this)), this.advancedTabIsVisible && t("div", {
697
- slot: rt,
650
+ }, u(this, H, "f").call(this)), this.advancedTabIsVisible && e("div", {
651
+ slot: ct,
698
652
  class: "advanced spacing-body-inline",
699
653
  part: "tab-button-advanced"
700
- }, c(this, z, "f").call(this))) : t("div", {
701
- class: ot
702
- }, t("div", {
703
- class: nt
704
- }, c(this, O, "f").call(this))), t("footer", {
654
+ }, u(this, G, "f").call(this))) : e("div", {
655
+ class: ht
656
+ }, e("div", {
657
+ class: lt
658
+ }, u(this, H, "f").call(this))), e("footer", {
705
659
  class: {
706
660
  "control-footer": this.isAdvanced,
707
661
  "control-footer-with-border": !this.isAdvanced,
708
662
  "spacing-body-block-end": true,
709
663
  "spacing-body-inline": true
710
664
  }
711
- }, t("div", {
665
+ }, e("div", {
712
666
  class: "buttons-spacer"
713
- }, t("button", {
667
+ }, e("button", {
714
668
  // #cancel
715
669
  class: "button-secondary",
716
670
  id: "button-cancel",
717
- onClick: c(this, U, "f"),
671
+ onClick: u(this, R, "f"),
718
672
  part: "button-cancel"
719
- }, c(this, b, "f").footer.btnCancel), t("button", {
673
+ }, u(this, m, "f").footer.btnCancel), e("button", {
720
674
  // #create
721
675
  class: "button-primary",
722
676
  id: "button-create",
723
- onClick: c(this, $, "f"),
677
+ onClick: u(this, q, "f"),
724
678
  part: "button-create"
725
- }, c(this, b, "f").footer.btnCreate)))));
679
+ }, u(this, m, "f").footer.btnCreate)))));
726
680
  }
727
681
  static get assetsDirs() {
728
682
  return [ "gx-ide-assets/new-kb" ];
@@ -743,22 +697,22 @@ const dt = class {
743
697
  }
744
698
  };
745
699
 
746
- p = new WeakMap, b = new WeakMap, v = new WeakMap, m = new WeakMap, g = new WeakMap,
747
- w = new WeakMap, k = new WeakMap, y = new WeakMap, x = new WeakMap, M = new WeakMap,
748
- W = new WeakMap, F = new WeakMap, I = new WeakMap, T = new WeakMap, E = new WeakMap,
749
- N = new WeakMap, S = new WeakMap, L = new WeakMap, D = new WeakMap, j = new WeakMap,
750
- C = new WeakMap, _ = new WeakMap, A = new WeakMap, B = new WeakMap, K = new WeakMap,
751
- V = new WeakMap, z = new WeakMap, O = new WeakMap, U = new WeakMap, $ = new WeakMap,
752
- G = new WeakMap, H = new WeakMap, R = new WeakMap, q = new WeakMap, J = new WeakMap,
753
- Q = new WeakMap, X = new WeakMap, Y = new WeakMap, Z = new WeakMap, tt = new WeakMap,
754
- it = new WeakMap, et = new WeakMap, u = new WeakSet, P = function _GxIdeNewKb_getCheckboxValues() {
700
+ v = new WeakMap, m = new WeakMap, g = new WeakMap, w = new WeakMap, k = new WeakMap,
701
+ y = new WeakMap, W = new WeakMap, M = new WeakMap, _ = new WeakMap, x = new WeakMap,
702
+ F = new WeakMap, T = new WeakMap, I = new WeakMap, N = new WeakMap, E = new WeakMap,
703
+ L = new WeakMap, S = new WeakMap, D = new WeakMap, j = new WeakMap, C = new WeakMap,
704
+ P = new WeakMap, z = new WeakMap, B = new WeakMap, K = new WeakMap, V = new WeakMap,
705
+ U = new WeakMap, G = new WeakMap, H = new WeakMap, R = new WeakMap, q = new WeakMap,
706
+ J = new WeakMap, O = new WeakMap, Q = new WeakMap, X = new WeakMap, Y = new WeakMap,
707
+ Z = new WeakMap, $ = new WeakMap, tt = new WeakMap, it = new WeakMap, et = new WeakMap,
708
+ st = new WeakMap, at = new WeakMap, b = new WeakSet, A = function _GxIdeNewKb_getCheckboxValues() {
755
709
  // TODO (We shouldn't be using querySelector)
756
- const t = c(this, W, "f").querySelectorAll("ch-checkbox");
710
+ const t = u(this, F, "f").querySelectorAll("ch-checkbox");
757
711
  const i = Array.from(t).map((t => t.value)).filter(Boolean);
758
712
  return i;
759
713
  };
760
714
 
761
- dt.style = d;
715
+ ft.style = f;
762
716
 
763
- export { dt as gx_ide_new_kb };
764
- //# sourceMappingURL=p-ab29274c.entry.js.map
717
+ export { ft as gx_ide_new_kb };
718
+ //# sourceMappingURL=p-92681e48.entry.js.map