@genexus/genexus-ide-ui 1.0.12 → 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.
- package/dist/cjs/form-validation-df39cabb.js +56 -0
- package/dist/cjs/form-validation-df39cabb.js.map +1 -0
- package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/gx-ide-ai-message.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-connect-gx-server.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-connect-gx-server.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js +3 -3
- package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-dashboard-home.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-kb-manager-export.cjs.entry.js +11 -11
- package/dist/cjs/gx-ide-kb-manager-export.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-new-environment.cjs.entry.js +274 -147
- package/dist/cjs/gx-ide-new-environment.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-new-kb.cjs.entry.js +41 -87
- package/dist/cjs/gx-ide-new-kb.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-object-selector.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-recent-news.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-share-kb.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-share-kb.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-start-page.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-ww-images.cjs.entry.js +1 -1
- package/dist/cjs/{helpers-be14ea67.js → helpers-74cf5c16.js} +9 -35
- package/dist/cjs/helpers-74cf5c16.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/common/helpers.js +6 -18
- package/dist/collection/common/helpers.js.map +1 -1
- package/dist/collection/components/connect-gx-server/connect-gx-server.js +1 -1
- package/dist/collection/components/connect-gx-server/connect-gx-server.js.map +1 -1
- package/dist/collection/components/create-kb-from-server/create-kb-from-server.js +1 -1
- package/dist/collection/components/create-kb-from-server/create-kb-from-server.js.map +1 -1
- package/dist/collection/components/kb-manager-export/kb-manager-export.js +11 -11
- package/dist/collection/components/kb-manager-export/kb-manager-export.js.map +1 -1
- package/dist/collection/components/new-environment/gx-ide-assets/new-environment/langs/new-environment.lang.en.json +4 -1
- package/dist/collection/components/new-environment/gx-ide-assets/new-environment/langs/new-environment.lang.ja.json +5 -2
- package/dist/collection/components/new-environment/helpers.js +11 -0
- package/dist/collection/components/new-environment/helpers.js.map +1 -0
- package/dist/collection/components/new-environment/new-environment.css +37 -658
- package/dist/collection/components/new-environment/new-environment.js +316 -214
- package/dist/collection/components/new-environment/new-environment.js.map +1 -1
- package/dist/collection/components/new-kb/helpers.js +0 -5
- package/dist/collection/components/new-kb/helpers.js.map +1 -1
- package/dist/collection/components/new-kb/new-kb.css +34 -11
- package/dist/collection/components/new-kb/new-kb.js +33 -40
- package/dist/collection/components/new-kb/new-kb.js.map +1 -1
- package/dist/collection/components/share-kb/share-kb.js +1 -1
- package/dist/collection/components/share-kb/share-kb.js.map +1 -1
- package/dist/components/form-validation.js +53 -0
- package/dist/components/form-validation.js.map +1 -0
- package/dist/components/gx-ide-connect-gx-server.js +1 -1
- package/dist/components/gx-ide-connect-gx-server.js.map +1 -1
- package/dist/components/gx-ide-create-kb-from-server.js +1 -1
- package/dist/components/gx-ide-create-kb-from-server.js.map +1 -1
- package/dist/components/gx-ide-dashboard-home.js +1 -1
- package/dist/components/gx-ide-kb-manager-export.js +11 -11
- package/dist/components/gx-ide-kb-manager-export.js.map +1 -1
- package/dist/components/gx-ide-new-environment.js +289 -164
- package/dist/components/gx-ide-new-environment.js.map +1 -1
- package/dist/components/gx-ide-new-kb.js +35 -81
- package/dist/components/gx-ide-new-kb.js.map +1 -1
- package/dist/components/gx-ide-object-selector.js +1 -1
- package/dist/components/gx-ide-share-kb.js +1 -1
- package/dist/components/gx-ide-share-kb.js.map +1 -1
- package/dist/components/gx-ide-start-page.js +1 -1
- package/dist/components/gx-ide-team-dev-commit.js +1 -1
- package/dist/components/gx-ide-team-dev-update.js +1 -1
- package/dist/components/gx-ide-ww-images.js +1 -1
- package/dist/components/helpers.js +7 -33
- package/dist/components/helpers.js.map +1 -1
- package/dist/esm/form-validation-8b3f527c.js +53 -0
- package/dist/esm/form-validation-8b3f527c.js.map +1 -0
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-ai-message.entry.js +1 -1
- package/dist/esm/gx-ide-connect-gx-server.entry.js +1 -1
- package/dist/esm/gx-ide-connect-gx-server.entry.js.map +1 -1
- package/dist/esm/gx-ide-create-kb-from-server.entry.js +1 -1
- package/dist/esm/gx-ide-create-kb-from-server.entry.js.map +1 -1
- package/dist/esm/gx-ide-dashboard-home.entry.js +1 -1
- package/dist/esm/gx-ide-kb-manager-export.entry.js +11 -11
- package/dist/esm/gx-ide-kb-manager-export.entry.js.map +1 -1
- package/dist/esm/gx-ide-kb-manager-import.entry.js +1 -1
- package/dist/esm/gx-ide-new-environment.entry.js +276 -149
- package/dist/esm/gx-ide-new-environment.entry.js.map +1 -1
- package/dist/esm/gx-ide-new-kb.entry.js +35 -81
- package/dist/esm/gx-ide-new-kb.entry.js.map +1 -1
- package/dist/esm/gx-ide-object-selector.entry.js +1 -1
- package/dist/esm/gx-ide-recent-news.entry.js +1 -1
- package/dist/esm/gx-ide-share-kb.entry.js +1 -1
- package/dist/esm/gx-ide-share-kb.entry.js.map +1 -1
- package/dist/esm/gx-ide-start-page.entry.js +1 -1
- package/dist/esm/gx-ide-team-dev-commit.entry.js +1 -1
- package/dist/esm/gx-ide-team-dev-update.entry.js +1 -1
- package/dist/esm/gx-ide-ww-images.entry.js +1 -1
- package/dist/esm/{helpers-05c62775.js → helpers-97d0509d.js} +8 -34
- package/dist/esm/helpers-97d0509d.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.css +2 -0
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/new-environment/langs/new-environment.lang.en.json +4 -1
- package/dist/genexus-ide-ui/gx-ide-assets/new-environment/langs/new-environment.lang.ja.json +5 -2
- package/dist/genexus-ide-ui/{p-176e8d55.entry.js → p-3663c45f.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-ca842e11.entry.js → p-3c7371a8.entry.js} +2 -2
- package/dist/genexus-ide-ui/p-41ea711a.js +56 -0
- package/dist/genexus-ide-ui/p-41ea711a.js.map +1 -0
- package/dist/genexus-ide-ui/{p-55304f04.entry.js → p-4a8910cd.entry.js} +2 -2
- package/dist/genexus-ide-ui/p-4b6e1cf2.js +158 -0
- package/dist/genexus-ide-ui/p-4b6e1cf2.js.map +1 -0
- package/dist/genexus-ide-ui/{p-5c5abefc.entry.js → p-4bf55012.entry.js} +2 -2
- package/dist/genexus-ide-ui/p-4bf55012.entry.js.map +1 -0
- package/dist/genexus-ide-ui/p-51d5cc3d.entry.js +436 -0
- package/dist/genexus-ide-ui/p-51d5cc3d.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-03a88768.entry.js → p-58409610.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-0fced96c.entry.js → p-7f08a5f8.entry.js} +2 -2
- package/dist/genexus-ide-ui/p-7f08a5f8.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-6d0037f1.entry.js → p-7f4d8db5.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-6fa9ea04.entry.js → p-7f7d93b8.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-a2dad270.entry.js → p-89a7d88f.entry.js} +2 -2
- package/dist/genexus-ide-ui/p-89a7d88f.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-e629ab16.entry.js → p-8ad301c4.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-aa38604e.entry.js → p-8b9cf93c.entry.js} +62 -62
- package/dist/genexus-ide-ui/p-8b9cf93c.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-a787b331.entry.js → p-90deeaa8.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-ab29274c.entry.js → p-92681e48.entry.js} +249 -295
- package/dist/genexus-ide-ui/p-92681e48.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-de18e865.entry.js → p-f9a00f85.entry.js} +2 -2
- package/dist/types/common/helpers.d.ts +4 -3
- package/dist/types/components/new-environment/helpers.d.ts +4 -0
- package/dist/types/components/new-environment/new-environment.d.ts +33 -65
- package/dist/types/components/new-kb/helpers.d.ts +0 -2
- package/dist/types/components/new-kb/new-kb.d.ts +1 -2
- package/dist/types/components.d.ts +18 -45
- package/package.json +3 -3
- package/dist/cjs/helpers-be14ea67.js.map +0 -1
- package/dist/esm/helpers-05c62775.js.map +0 -1
- package/dist/genexus-ide-ui/p-0fced96c.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-14e6ef41.js +0 -171
- package/dist/genexus-ide-ui/p-14e6ef41.js.map +0 -1
- package/dist/genexus-ide-ui/p-5c5abefc.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-a2dad270.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-aa38604e.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-ab29274c.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-e146e456.entry.js +0 -342
- package/dist/genexus-ide-ui/p-e146e456.entry.js.map +0 -1
- /package/dist/genexus-ide-ui/{p-176e8d55.entry.js.map → p-3663c45f.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-ca842e11.entry.js.map → p-3c7371a8.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-55304f04.entry.js.map → p-4a8910cd.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-03a88768.entry.js.map → p-58409610.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-6d0037f1.entry.js.map → p-7f4d8db5.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-6fa9ea04.entry.js.map → p-7f7d93b8.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-e629ab16.entry.js.map → p-8ad301c4.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-a787b331.entry.js.map → p-90deeaa8.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-de18e865.entry.js.map → p-f9a00f85.entry.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
9
|
+
import { r as l, m as r } from "./p-4b6e1cf2.js";
|
|
10
10
|
|
|
11
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
32
|
+
const ot = [ "resets/box-sizing", "components/tab", "components/tooltip", "utils/form--full", "utils/layout", "utils/typography", "chameleon/scrollbar" ];
|
|
83
33
|
|
|
84
|
-
const
|
|
34
|
+
const nt = "windows-authentication";
|
|
85
35
|
|
|
86
|
-
const
|
|
36
|
+
const ht = "main";
|
|
87
37
|
|
|
88
|
-
const
|
|
38
|
+
const lt = "basic";
|
|
89
39
|
|
|
90
|
-
const
|
|
40
|
+
const rt = c({
|
|
91
41
|
category: "system",
|
|
92
42
|
name: "folder",
|
|
93
43
|
colorType: "primary"
|
|
94
44
|
});
|
|
95
45
|
|
|
96
|
-
const
|
|
46
|
+
const dt = "basic";
|
|
97
47
|
|
|
98
|
-
const
|
|
48
|
+
const ct = "advanced";
|
|
99
49
|
|
|
100
|
-
const
|
|
50
|
+
const ft = class {
|
|
101
51
|
constructor(s) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
-
|
|
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
|
-
|
|
114
|
-
k.set(this,
|
|
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
|
-
|
|
70
|
+
I.set(this, void 0);
|
|
123
71
|
N.set(this, void 0);
|
|
124
|
-
|
|
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
|
-
|
|
130
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
96
|
+
G.set(this, (() => [ e("h2", {
|
|
147
97
|
// #knowledge base storage
|
|
148
98
|
class: "control-header heading-5 text-align-center"
|
|
149
|
-
},
|
|
99
|
+
}, u(this, m, "f").tabAdvanced.tabTitle), e("div", {
|
|
150
100
|
class: "field-group tab-advanced__field-group"
|
|
151
|
-
},
|
|
101
|
+
}, e("div", {
|
|
152
102
|
// #server name
|
|
153
103
|
class: "field field-block server-name-field"
|
|
154
|
-
},
|
|
104
|
+
}, e("label", {
|
|
155
105
|
class: "label",
|
|
156
106
|
htmlFor: "serverName"
|
|
157
|
-
},
|
|
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 ?
|
|
110
|
+
placeholder: this.serverNames.length === 0 ? u(this, m, "f").tabAdvanced.serverName.disabledPlaceholder : "",
|
|
161
111
|
value: this.serverNamesInitialValue,
|
|
162
|
-
ref: t =>
|
|
112
|
+
ref: t => p(this, D, t, "f"),
|
|
163
113
|
model: this.serverNamesComboBoxModel,
|
|
164
|
-
onInput: this.serverNames.length > 0
|
|
114
|
+
onInput: this.serverNames.length > 0 && u(this, K, "f"),
|
|
165
115
|
id: "serverName",
|
|
166
116
|
part: "server-name"
|
|
167
|
-
}),
|
|
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
|
-
},
|
|
120
|
+
}, e("label", {
|
|
171
121
|
class: "label",
|
|
172
122
|
htmlFor: "authenticationType"
|
|
173
|
-
},
|
|
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 ?
|
|
126
|
+
placeholder: this.authenticationTypes.length === 0 ? u(this, m, "f").tabAdvanced.authenticationType.disabledPlaceholder : "",
|
|
177
127
|
value: this.authenticationTypesInitialValue,
|
|
178
|
-
ref: t =>
|
|
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 ?
|
|
183
|
-
}),
|
|
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
|
-
},
|
|
136
|
+
}, e("label", {
|
|
187
137
|
class: "label",
|
|
188
138
|
htmlFor: "databaseName"
|
|
189
|
-
},
|
|
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 =>
|
|
196
|
-
}),
|
|
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
|
-
},
|
|
149
|
+
}, e("label", {
|
|
200
150
|
class: "label",
|
|
201
151
|
htmlFor: "userName"
|
|
202
|
-
},
|
|
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 =>
|
|
209
|
-
}),
|
|
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
|
-
},
|
|
162
|
+
}, e("label", {
|
|
213
163
|
class: "label",
|
|
214
164
|
htmlFor: "collation"
|
|
215
|
-
},
|
|
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 ?
|
|
168
|
+
placeholder: this.collations.length === 0 ? u(this, m, "f").tabAdvanced.collation.disabledPlaceholder : "",
|
|
219
169
|
value: this.collationsInitialValue,
|
|
220
|
-
ref: t =>
|
|
170
|
+
ref: t => p(this, W, t, "f"),
|
|
221
171
|
model: this.collationsComboBoxModel,
|
|
222
172
|
id: "collation",
|
|
223
173
|
part: "collation"
|
|
224
|
-
}),
|
|
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
|
-
},
|
|
177
|
+
}, e("label", {
|
|
228
178
|
class: "label",
|
|
229
179
|
htmlFor: "password"
|
|
230
|
-
},
|
|
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 =>
|
|
238
|
-
}),
|
|
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:
|
|
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 =>
|
|
247
|
-
}), this.savePasswordVisible ?
|
|
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:
|
|
201
|
+
caption: u(this, m, "f").tabAdvanced.savePassword,
|
|
252
202
|
part: "save-password",
|
|
253
203
|
id: "savePassword",
|
|
254
|
-
ref: t =>
|
|
204
|
+
ref: t => p(this, S, t, "f")
|
|
255
205
|
}) : null) ]));
|
|
256
|
-
|
|
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
|
-
},
|
|
211
|
+
}, e("label", {
|
|
260
212
|
class: "label",
|
|
261
213
|
htmlFor: "prototypingTarget"
|
|
262
|
-
},
|
|
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 ?
|
|
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 ?
|
|
271
|
-
ref: t =>
|
|
272
|
-
}),
|
|
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
|
-
},
|
|
227
|
+
}, e("label", {
|
|
276
228
|
class: "label",
|
|
277
229
|
htmlFor: "userInterfaceLanguage"
|
|
278
|
-
},
|
|
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 ?
|
|
233
|
+
placeholder: this.userInterfaceLanguages.length === 0 ? u(this, m, "f").tabBasic.userInterfaceLanguage.disabledPlaceholder : "",
|
|
282
234
|
value: this.userInterfaceLanguagesInitialValue,
|
|
283
|
-
ref: t =>
|
|
235
|
+
ref: t => p(this, j, t, "f"),
|
|
284
236
|
model: this.userInterfaceLanguagesComboBoxModel,
|
|
285
237
|
id: "userInterfaceLanguage",
|
|
286
238
|
part: "user-interface-language"
|
|
287
|
-
}),
|
|
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
|
-
},
|
|
291
|
-
class: "field-group
|
|
292
|
-
},
|
|
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
|
-
},
|
|
249
|
+
}, e("label", {
|
|
296
250
|
class: "label",
|
|
297
251
|
htmlFor: "prototypingEnvironment"
|
|
298
|
-
},
|
|
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 ?
|
|
255
|
+
placeholder: this.prototypingEnvironments.length === 0 ? u(this, m, "f").tabBasic.backEnd.prototypingEnvironment.disabledPlaceholder : "",
|
|
302
256
|
value: this.prototypingEnvironmentsInitialValue,
|
|
303
|
-
ref: t =>
|
|
257
|
+
ref: t => p(this, E, t, "f"),
|
|
304
258
|
model: this.prototypingEnvironmentsComboBoxModel,
|
|
305
|
-
onInput: this.prototypingEnvironments.length > 0 ?
|
|
259
|
+
onInput: this.prototypingEnvironments.length > 0 ? u(this, V, "f") : undefined,
|
|
306
260
|
part: "prototyping-environment",
|
|
307
261
|
id: "prototypingEnvironment"
|
|
308
|
-
}),
|
|
262
|
+
}), u(this, O, "f").call(this, u(this, E, "f"))), e("div", {
|
|
309
263
|
// #data source
|
|
310
264
|
class: "field field-block"
|
|
311
|
-
},
|
|
265
|
+
}, e("label", {
|
|
312
266
|
class: "label",
|
|
313
267
|
htmlFor: "dataSource"
|
|
314
|
-
},
|
|
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 ?
|
|
271
|
+
placeholder: this.defaultDataSources.length === 0 ? u(this, m, "f").tabBasic.backEnd.dataSource.disabledPlaceholder : "",
|
|
318
272
|
value: this.defaultDataSourcesInitialValue,
|
|
319
|
-
ref: t =>
|
|
273
|
+
ref: t => p(this, x, t, "f"),
|
|
320
274
|
model: this.defaultDataSourcesComboBoxModel,
|
|
321
275
|
part: "data-source",
|
|
322
276
|
id: "dataSource"
|
|
323
|
-
}),
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
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
|
-
|
|
286
|
+
R.set(this, (() => {
|
|
332
287
|
if (this.cancelCallback) {
|
|
333
288
|
this.cancelCallback();
|
|
334
289
|
}
|
|
335
290
|
}));
|
|
336
|
-
|
|
337
|
-
var t, i, e, s, a, o, n, h, l, r,
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
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
|
-
|
|
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
|
-
|
|
375
|
-
|
|
376
|
-
|
|
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:
|
|
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(
|
|
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
|
-
|
|
390
|
-
if (t ===
|
|
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
|
-
|
|
354
|
+
X.set(this, (() => {
|
|
401
355
|
if (this.getDataSourcesCallback) {
|
|
402
|
-
const t =
|
|
403
|
-
const i =
|
|
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
|
-
|
|
363
|
+
u(this, x, "f").value = this.defaultDataSources[0].id;
|
|
410
364
|
}
|
|
411
365
|
})).catch((() => {}));
|
|
412
366
|
}
|
|
413
367
|
}));
|
|
414
|
-
|
|
415
|
-
|
|
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
|
-
|
|
424
|
-
const t =
|
|
425
|
-
|
|
426
|
-
const i =
|
|
427
|
-
|
|
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
|
-
|
|
386
|
+
$.set(this, (() => {
|
|
433
387
|
// populate #controlsValidation with the controls that could have errors.
|
|
434
|
-
const t = [
|
|
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
|
-
|
|
399
|
+
tt.set(this, (() => {
|
|
446
400
|
// populate #controlsValidation with the controls that could have errors.
|
|
447
|
-
const t = [
|
|
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
|
-
|
|
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
|
-
|
|
470
|
-
if (t.detail.newSelectedId ===
|
|
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
|
-
|
|
435
|
+
st.set(this, (() => {
|
|
482
436
|
if (this.getFrontEndsCallback) {
|
|
483
|
-
const t =
|
|
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
|
-
|
|
500
|
-
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
537
|
+
this.userInterfaceLanguagesComboBoxModel = r(t);
|
|
584
538
|
this.userInterfaceLanguagesInitialValue = h(t);
|
|
585
539
|
}
|
|
586
540
|
}
|
|
587
541
|
async componentWillLoad() {
|
|
588
|
-
|
|
542
|
+
p(this, m, await n.getComponentStrings(this.el), "f");
|
|
589
543
|
this.previousFrontEndsState = this.frontEnds;
|
|
590
|
-
|
|
591
|
-
id:
|
|
592
|
-
name:
|
|
544
|
+
p(this, k, [ {
|
|
545
|
+
id: dt,
|
|
546
|
+
name: u(this, m, "f").tabBasic.tabLabel
|
|
593
547
|
}, {
|
|
594
|
-
id:
|
|
595
|
-
name:
|
|
548
|
+
id: ct,
|
|
549
|
+
name: u(this, m, "f").tabAdvanced.tabLabel
|
|
596
550
|
} ], "f");
|
|
597
551
|
}
|
|
598
552
|
componentDidLoad() {
|
|
599
|
-
|
|
600
|
-
|
|
553
|
+
u(this, Y, "f").call(this);
|
|
554
|
+
u(this, $, "f").call(this);
|
|
601
555
|
}
|
|
602
556
|
componentDidRender() {
|
|
603
|
-
if (this.advancedTabIsVisible && !
|
|
557
|
+
if (this.advancedTabIsVisible && !u(this, v, "f")) {
|
|
604
558
|
// just call this once.
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
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
|
-
|
|
568
|
+
u(this, P, "f").suspend = true;
|
|
615
569
|
} else {
|
|
616
|
-
|
|
570
|
+
u(this, P, "f").suspend = false;
|
|
617
571
|
}
|
|
618
572
|
}
|
|
619
573
|
render() {
|
|
620
|
-
return
|
|
574
|
+
return e(s, {
|
|
621
575
|
class: "widget"
|
|
622
|
-
},
|
|
623
|
-
model:
|
|
624
|
-
}),
|
|
625
|
-
src:
|
|
626
|
-
ref: t =>
|
|
627
|
-
}),
|
|
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
|
-
},
|
|
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
|
-
},
|
|
594
|
+
}, e("div", {
|
|
641
595
|
// #kb name
|
|
642
596
|
class: "field field-inline kb-name"
|
|
643
|
-
},
|
|
597
|
+
}, e("label", {
|
|
644
598
|
class: "label kb-label",
|
|
645
599
|
htmlFor: "kbName"
|
|
646
|
-
},
|
|
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 =>
|
|
606
|
+
ref: t => p(this, T, t, "f"),
|
|
653
607
|
id: "kbName",
|
|
654
608
|
part: "kb-name"
|
|
655
|
-
}),
|
|
609
|
+
}), u(this, O, "f").call(this, u(this, T, "f"))), this.isAdvanced && e("div", {
|
|
656
610
|
class: "location-wrapper"
|
|
657
|
-
},
|
|
611
|
+
}, e("div", {
|
|
658
612
|
// #location
|
|
659
613
|
class: "field field-inline location"
|
|
660
|
-
},
|
|
614
|
+
}, e("label", {
|
|
661
615
|
class: "label location-label",
|
|
662
616
|
htmlFor: "kbLocation"
|
|
663
|
-
},
|
|
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 =>
|
|
621
|
+
ref: t => p(this, I, t, "f"),
|
|
668
622
|
id: "kbLocation",
|
|
669
623
|
part: "kb-location"
|
|
670
|
-
}),
|
|
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":
|
|
673
|
-
title:
|
|
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:
|
|
676
|
-
},
|
|
629
|
+
onClick: u(this, it, "f")
|
|
630
|
+
}, e("ch-image", {
|
|
677
631
|
class: "icon-md",
|
|
678
|
-
src:
|
|
679
|
-
})))), this.isAdvanced ?
|
|
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
|
-
[
|
|
638
|
+
[ht]: true
|
|
685
639
|
},
|
|
686
640
|
direction: "block",
|
|
687
|
-
model:
|
|
688
|
-
selectedId:
|
|
689
|
-
overflow: "auto
|
|
641
|
+
model: u(this, k, "f"),
|
|
642
|
+
selectedId: dt,
|
|
643
|
+
overflow: "auto",
|
|
690
644
|
contain: "size",
|
|
691
|
-
onSelectedItemChange: !this.advancedTabIsVisible &&
|
|
692
|
-
},
|
|
693
|
-
slot:
|
|
694
|
-
class:
|
|
645
|
+
onSelectedItemChange: !this.advancedTabIsVisible && u(this, et, "f")
|
|
646
|
+
}, e("div", {
|
|
647
|
+
slot: dt,
|
|
648
|
+
class: lt,
|
|
695
649
|
part: "tab-button-basic"
|
|
696
|
-
},
|
|
697
|
-
slot:
|
|
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
|
-
},
|
|
701
|
-
class:
|
|
702
|
-
},
|
|
703
|
-
class:
|
|
704
|
-
},
|
|
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
|
-
},
|
|
665
|
+
}, e("div", {
|
|
712
666
|
class: "buttons-spacer"
|
|
713
|
-
},
|
|
667
|
+
}, e("button", {
|
|
714
668
|
// #cancel
|
|
715
669
|
class: "button-secondary",
|
|
716
670
|
id: "button-cancel",
|
|
717
|
-
onClick:
|
|
671
|
+
onClick: u(this, R, "f"),
|
|
718
672
|
part: "button-cancel"
|
|
719
|
-
},
|
|
673
|
+
}, u(this, m, "f").footer.btnCancel), e("button", {
|
|
720
674
|
// #create
|
|
721
675
|
class: "button-primary",
|
|
722
676
|
id: "button-create",
|
|
723
|
-
onClick:
|
|
677
|
+
onClick: u(this, q, "f"),
|
|
724
678
|
part: "button-create"
|
|
725
|
-
},
|
|
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
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
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 =
|
|
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
|
-
|
|
715
|
+
ft.style = f;
|
|
762
716
|
|
|
763
|
-
export {
|
|
764
|
-
//# sourceMappingURL=p-
|
|
717
|
+
export { ft as gx_ide_new_kb };
|
|
718
|
+
//# sourceMappingURL=p-92681e48.entry.js.map
|