@genexus/genexus-ide-ui 3.2.12 → 3.2.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/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js +24 -34
- package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js +12 -12
- package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-new-environment.cjs.entry.js +26 -3
- package/dist/cjs/gx-ide-new-environment.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-new-kb.cjs.entry.js +77 -44
- package/dist/cjs/gx-ide-new-kb.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/kb-manager-import/helpers.js +2 -9
- package/dist/collection/components/kb-manager-import/helpers.js.map +1 -1
- package/dist/collection/components/kb-manager-import/kb-manager-import.js +10 -3
- package/dist/collection/components/kb-manager-import/kb-manager-import.js.map +1 -1
- package/dist/collection/components/new-environment/gx-ide-assets/new-environment/langs/new-environment.lang.en.json +3 -1
- package/dist/collection/components/new-environment/gx-ide-assets/new-environment/langs/new-environment.lang.ja.json +3 -1
- package/dist/collection/components/new-environment/gx-ide-assets/new-environment/langs/new-environment.lang.zh.json +3 -1
- package/dist/collection/components/new-environment/new-environment.css +29 -0
- package/dist/collection/components/new-environment/new-environment.js +54 -17
- package/dist/collection/components/new-environment/new-environment.js.map +1 -1
- package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.en.json +9 -5
- package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.ja.json +7 -3
- package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.zh.json +9 -5
- package/dist/collection/components/new-kb/new-kb.css +42 -1
- package/dist/collection/components/new-kb/new-kb.js +77 -47
- package/dist/collection/components/new-kb/new-kb.js.map +1 -1
- package/dist/collection/components/team-dev/create-kb-from-server/create-kb-from-server.js +25 -36
- package/dist/collection/components/team-dev/create-kb-from-server/create-kb-from-server.js.map +1 -1
- package/dist/collection/components/team-dev/create-kb-from-server/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.en.json +0 -2
- package/dist/collection/components/team-dev/create-kb-from-server/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.ja.json +0 -2
- package/dist/collection/components/team-dev/create-kb-from-server/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.zh.json +0 -2
- package/dist/components/gx-ide-create-kb-from-server.js +24 -35
- package/dist/components/gx-ide-create-kb-from-server.js.map +1 -1
- package/dist/components/gx-ide-kb-manager-import.js +12 -12
- package/dist/components/gx-ide-kb-manager-import.js.map +1 -1
- package/dist/components/gx-ide-new-environment.js +27 -4
- package/dist/components/gx-ide-new-environment.js.map +1 -1
- package/dist/components/gx-ide-new-kb.js +85 -46
- package/dist/components/gx-ide-new-kb.js.map +1 -1
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-create-kb-from-server.entry.js +24 -34
- package/dist/esm/gx-ide-create-kb-from-server.entry.js.map +1 -1
- package/dist/esm/gx-ide-kb-manager-import.entry.js +12 -12
- package/dist/esm/gx-ide-kb-manager-import.entry.js.map +1 -1
- package/dist/esm/gx-ide-new-environment.entry.js +26 -3
- package/dist/esm/gx-ide-new-environment.entry.js.map +1 -1
- package/dist/esm/gx-ide-new-kb.entry.js +77 -44
- package/dist/esm/gx-ide-new-kb.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.en.json +0 -2
- package/dist/genexus-ide-ui/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.ja.json +0 -2
- package/dist/genexus-ide-ui/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.zh.json +0 -2
- package/dist/genexus-ide-ui/gx-ide-assets/new-environment/langs/new-environment.lang.en.json +3 -1
- package/dist/genexus-ide-ui/gx-ide-assets/new-environment/langs/new-environment.lang.ja.json +3 -1
- package/dist/genexus-ide-ui/gx-ide-assets/new-environment/langs/new-environment.lang.zh.json +3 -1
- package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.en.json +9 -5
- package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.ja.json +7 -3
- package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.zh.json +9 -5
- package/dist/genexus-ide-ui/{p-cf61384e.entry.js → p-2164c3a8.entry.js} +154 -167
- package/dist/genexus-ide-ui/p-2164c3a8.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-7cd24b82.entry.js → p-806c5dcb.entry.js} +58 -47
- package/dist/genexus-ide-ui/p-806c5dcb.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-5727fce7.entry.js → p-8f4af976.entry.js} +222 -184
- package/dist/genexus-ide-ui/p-8f4af976.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-eeae9dd5.entry.js → p-95cf766b.entry.js} +401 -345
- package/dist/genexus-ide-ui/p-95cf766b.entry.js.map +1 -0
- package/dist/types/components/kb-manager-import/helpers.d.ts +1 -1
- package/dist/types/components/new-environment/new-environment.d.ts +8 -3
- package/dist/types/components/new-kb/new-kb.d.ts +5 -1
- package/dist/types/components/team-dev/create-kb-from-server/create-kb-from-server.d.ts +0 -1
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/genexus-ide-ui/p-5727fce7.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-7cd24b82.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-cf61384e.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-eeae9dd5.entry.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as i, g as t, h as s, H as e, a } from "./p-9b9ccd0c.js";
|
|
2
2
|
|
|
3
3
|
import { g as o } from "./p-d42e842b.js";
|
|
4
4
|
|
|
@@ -16,71 +16,79 @@ import { L as l } from "./p-311eedf3.js";
|
|
|
16
16
|
|
|
17
17
|
import { s as r, g as h } from "./p-91e2ebb0.js";
|
|
18
18
|
|
|
19
|
-
import { r as
|
|
19
|
+
import { r as c, m as d } from "./p-4d330836.js";
|
|
20
20
|
|
|
21
21
|
import { v as f } from "./p-b32b6b1f.js";
|
|
22
22
|
|
|
23
23
|
import { r as u } from "./p-1252519a.js";
|
|
24
24
|
|
|
25
|
-
const p = ':host{display:grid;block-size:100%;overflow:auto;grid-template-rows:max-content 1fr max-content}.section{display:contents}.header-one-col{grid-template-columns:1fr}.location-wrapper{display:flex;align-items:center;gap:var(--spacing-gap-xs);min-block-size:var(--control-block-size)}.location-custom-wrapper{display:flex;align-items:center;gap:var(--spacing-gap-xs);flex-grow:1;min-inline-size:0}.location-field{flex-grow:1;min-inline-size:0}.location-field>.input{inline-size:100%}.basic{display:grid;grid-template:"basic-top basic-top" max-content "back-end front-end" 1fr;grid-template-columns:1fr 1fr}.basic__header{grid-area:basic-top;grid-template-columns:1fr 1fr}.dialog-header__back-end,.dialog-header__front-end{padding-block-start:16px}.main__back-end{border-inline-end:var(--section-common-border)}.main__back-end,.main__front-end{grid-auto-rows:max-content;padding-block:12px;overflow:auto}.section__back-end{grid-area:back-end;grid-auto-rows:max-content}.section__front-end{grid-area:front-end}.section__back-end,.section__front-end{display:grid;grid-template-rows:max-content 1fr;overflow:auto}.basic,.advanced{padding-block-start:12px;overflow:auto;block-size:100%}.kb-storage-card{display:flex;flex-direction:column;gap:var(--spacing-gap-l);padding-inline:var(--spacing-padding-xl)}.kb-storage-card__header{display:flex;align-items:center;gap:var(--spacing-gap-s);padding-block-end:var(--spacing-padding-m);border-bottom:1px solid var(--color-border-surface-on-elevation-1)}.kb-storage-card__heading{display:flex;flex-direction:column;gap:var(--spacing-gap-xs);min-inline-size:0}.kb-storage-card__title{margin:0;color:var(--color-text-neutral-default)}.kb-storage-card__grid{display:grid;grid-template-columns:1fr 1fr;column-gap:var(--spacing-gap-xl);row-gap:var(--spacing-gap-l)}.kb-storage-column{display:flex;flex-direction:column;gap:var(--spacing-gap-m);min-inline-size:0}.kb-storage-column__title{display:flex;align-items:center;gap:var(--spacing-gap-s);color:var(--color-text-neutral-disabled);text-transform:uppercase;letter-spacing:0.04em}.kb-storage-column__title-text{white-space:nowrap}.kb-storage-column__title-rule{flex:1;block-size:1px;background-color:var(--color-border-surface-on-elevation-1)}.field-group--stacked{display:flex;flex-direction:column;gap:var(--spacing-gap-m)}.server-name-wrapper{display:grid;grid-template-columns:1fr max-content;gap:var(--spacing-gap-xs);min-inline-size:0}.kb-storage-credentials{display:flex;flex-direction:column;gap:var(--spacing-gap-m)}.kb-storage-callout{display:flex;flex-direction:row;gap:var(--spacing-gap-xs);padding:var(--spacing-padding-m);border:1px solid var(--color-border-surface-on-elevation-2);border-radius:var(--border-radius-s);background-color:var(--color-accent-surface-elevation-2)}.kb-storage-callout-inner{display:flex;flex-direction:column}.kb-storage-callout__title{display:flex;gap:var(--spacing-gap-xs)}.kb-storage-callout__description{color:var(--color-text-neutral-disabled)}.text-align-center{text-align:center}.tab::part(page){scrollbar-width:thin}.tab::part(tab-list block-start){padding-inline:var(--spacing-padding-xl)}.checkbox{inline-size:max-content}.footer.dialog-footer-with-border{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-gap-m)}.footer.dialog-footer-with-border>.buttons-spacer{margin-inline-start:auto}.connection-status--connecting{color:var(--color-
|
|
25
|
+
const p = ':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 .field-inline{grid-template-columns:4.5rem 1fr}.location-wrapper{display:flex;align-items:center;gap:var(--spacing-gap-xs);min-block-size:var(--control-block-size)}.location-custom-wrapper{display:flex;align-items:center;gap:var(--spacing-gap-xs);flex-grow:1;min-inline-size:0}.location-field{flex-grow:1;min-inline-size:0}.location-field>.input{inline-size:100%}.basic{display:grid;grid-template:"basic-top basic-top" max-content "back-end front-end" 1fr;grid-template-columns:1fr 1fr}.basic__header{grid-area:basic-top;grid-template-columns:1fr 1fr}.dialog-header__back-end,.dialog-header__front-end{padding-block-start:16px}.main__back-end{border-inline-end:var(--section-common-border)}.main__back-end,.main__front-end{grid-auto-rows:max-content;padding-block:12px;overflow:auto}.main__front-end>.kb-storage-callout{margin-block-start:var(--spacing-gap-m)}.section__back-end{grid-area:back-end;grid-auto-rows:max-content}.section__front-end{grid-area:front-end}.section__back-end,.section__front-end{display:grid;grid-template-rows:max-content 1fr;overflow:auto}.basic,.advanced{padding-block-start:12px;overflow:auto;block-size:100%}.advanced-loader{position:relative;display:block;inline-size:100%;block-size:100%}.kb-storage-card{display:flex;flex-direction:column;gap:var(--spacing-gap-l);padding-inline:var(--spacing-padding-xl)}.kb-storage-card__header{display:flex;align-items:center;gap:var(--spacing-gap-s);padding-block-end:var(--spacing-padding-m);border-bottom:1px solid var(--color-border-surface-on-elevation-1)}.kb-storage-card__heading{display:flex;flex-direction:column;gap:var(--spacing-gap-xs);min-inline-size:0}.kb-storage-card__title{margin:0;color:var(--color-text-neutral-default)}.kb-storage-card__grid{display:grid;grid-template-columns:1fr 1fr;column-gap:var(--spacing-gap-xl);row-gap:var(--spacing-gap-l)}.kb-storage-column{display:flex;flex-direction:column;gap:var(--spacing-gap-m);min-inline-size:0}.kb-storage-column__title{display:flex;align-items:center;gap:var(--spacing-gap-s);color:var(--color-text-neutral-disabled);text-transform:uppercase;letter-spacing:0.04em}.kb-storage-column__title-text{white-space:nowrap}.kb-storage-column__title-rule{flex:1;block-size:1px;background-color:var(--color-border-surface-on-elevation-1)}.field-group--stacked{display:flex;flex-direction:column;gap:var(--spacing-gap-m)}.server-name-wrapper{display:grid;grid-template-columns:1fr max-content;gap:var(--spacing-gap-xs);min-inline-size:0}.kb-storage-credentials{display:flex;flex-direction:column;gap:var(--spacing-gap-m)}.kb-storage-callout{display:flex;flex-direction:row;gap:var(--spacing-gap-xs);padding:var(--spacing-padding-m);border:1px solid var(--color-border-surface-on-elevation-2);border-radius:var(--border-radius-s);background-color:var(--color-accent-surface-elevation-2)}.kb-storage-callout-inner{display:flex;flex-direction:column}.kb-storage-callout__title{display:flex;gap:var(--spacing-gap-xs)}.kb-storage-callout__description{color:var(--color-text-neutral-disabled)}.text-align-center{text-align:center}.tab::part(page){scrollbar-width:thin}.tab::part(tab-list block-start){padding-inline:var(--spacing-padding-xl)}.checkbox{inline-size:max-content}.footer.dialog-footer-with-border{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-gap-m)}.footer.dialog-footer-with-border>.buttons-spacer{margin-inline-start:auto}.connection-status{display:inline-flex;align-items:center;gap:var(--spacing-gap-xs)}.connection-status__spinner{display:inline-block;flex-shrink:0;width:var(--icon-s);height:var(--icon-s);border:calc(var(--icon-s) / 7) solid var(--color-accent-primary-pressed);border-top:calc(var(--icon-s) / 7) solid var(--color-border-primary-on-default);border-radius:50%;animation:spin var(--timing-regular) linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.connection-status--connecting{color:var(--color-accent-primary-on-default)}.connection-status--success{color:var(--color-text-success-default)}.connection-status--failed{color:var(--color-text-error-default)}';
|
|
26
26
|
|
|
27
|
-
var b = undefined && undefined.__classPrivateFieldGet || function(
|
|
27
|
+
var b = undefined && undefined.__classPrivateFieldGet || function(i, t, s, e) {
|
|
28
28
|
if (s === "a" && !e) throw new TypeError("Private accessor was defined without a getter");
|
|
29
|
-
if (typeof
|
|
30
|
-
return s === "m" ? e : s === "a" ? e.call(
|
|
29
|
+
if (typeof t === "function" ? i !== t || !e : !t.has(i)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
30
|
+
return s === "m" ? e : s === "a" ? e.call(i) : e ? e.value : t.get(i);
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var g = undefined && undefined.__classPrivateFieldSet || function(i, t, s, e, a) {
|
|
34
34
|
if (e === "m") throw new TypeError("Private method is not writable");
|
|
35
35
|
if (e === "a" && !a) throw new TypeError("Private accessor was defined without a setter");
|
|
36
|
-
if (typeof
|
|
37
|
-
return e === "a" ? a.call(
|
|
36
|
+
if (typeof t === "function" ? i !== t || !a : !t.has(i)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
37
|
+
return e === "a" ? a.call(i, s) : a ? a.value = s : t.set(i, s), s;
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var v, m, k, w, y, x, _, M, W, I, T, E, F, z, D, L, j, N, S, C, P, A, B, $, K, U, H, O, V, G, Q, R, X, q, J, Y, Z, ii, ti, si, ei, ai, oi, ni, li, ri, hi, ci, di, fi, ui, pi, bi, gi, vi, mi, ki;
|
|
41
41
|
|
|
42
|
-
const
|
|
42
|
+
const wi = [ "resets/box-sizing", "components/tab", "components/tooltip", "utils/form--full", "utils/layout", "utils/typography", "utils/spacing", "chameleon/scrollbar" ];
|
|
43
43
|
|
|
44
|
-
const
|
|
44
|
+
const yi = "WINDOWS_AUTHENTICATION";
|
|
45
45
|
|
|
46
|
-
const
|
|
46
|
+
const xi = "(LocalDB)\\MSSQLLocalDB";
|
|
47
47
|
|
|
48
|
-
const
|
|
48
|
+
const _i = "main";
|
|
49
49
|
|
|
50
|
-
const
|
|
50
|
+
const Mi = "basic";
|
|
51
51
|
|
|
52
|
-
const
|
|
52
|
+
const Wi = o({
|
|
53
53
|
category: "system",
|
|
54
54
|
name: "folder",
|
|
55
55
|
colorType: "primary"
|
|
56
56
|
});
|
|
57
57
|
|
|
58
|
-
const
|
|
58
|
+
const Ii = o({
|
|
59
59
|
category: "system",
|
|
60
60
|
name: "warning",
|
|
61
61
|
colorType: "on-interactive"
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
-
const
|
|
64
|
+
const Ti = o({
|
|
65
65
|
category: "system",
|
|
66
66
|
name: "database",
|
|
67
67
|
colorType: "primary"
|
|
68
68
|
});
|
|
69
69
|
|
|
70
|
-
const
|
|
70
|
+
const Ei = o({
|
|
71
|
+
category: "system",
|
|
72
|
+
name: "check-circle",
|
|
73
|
+
colorType: "success"
|
|
74
|
+
});
|
|
71
75
|
|
|
72
|
-
const
|
|
76
|
+
const Fi = o({
|
|
77
|
+
category: "system",
|
|
78
|
+
name: "warning",
|
|
79
|
+
colorType: "error"
|
|
80
|
+
});
|
|
73
81
|
|
|
74
|
-
const
|
|
82
|
+
const zi = "GX_KB_";
|
|
75
83
|
|
|
76
|
-
const
|
|
84
|
+
const Di = "basic";
|
|
77
85
|
|
|
78
|
-
const
|
|
86
|
+
const Li = "advanced";
|
|
79
87
|
|
|
80
|
-
const
|
|
88
|
+
const ji = class {
|
|
81
89
|
constructor(e) {
|
|
82
|
-
|
|
83
|
-
|
|
90
|
+
i(this, e);
|
|
91
|
+
v.set(this, false);
|
|
84
92
|
/**
|
|
85
93
|
* The component hard-coded strings translations.
|
|
86
94
|
*/
|
|
@@ -93,155 +101,171 @@ const zt = class {
|
|
|
93
101
|
k.set(this, new Map);
|
|
94
102
|
w.set(this, void 0);
|
|
95
103
|
y.set(this, void 0);
|
|
96
|
-
x.set(this,
|
|
104
|
+
x.set(this, t(`./gx-ide-assets/new-kb/shortcuts.json`));
|
|
97
105
|
_.set(this, []);
|
|
98
106
|
/* References needed to collect data con "Create" button submit*/ M.set(this, void 0);
|
|
99
107
|
W.set(this, void 0);
|
|
100
108
|
I.set(this, void 0);
|
|
101
109
|
T.set(this, void 0);
|
|
102
110
|
E.set(this, void 0);
|
|
103
|
-
D.set(this, void 0);
|
|
104
111
|
F.set(this, void 0);
|
|
112
|
+
z.set(this, void 0);
|
|
113
|
+
D.set(this, false);
|
|
114
|
+
L.set(this, false);
|
|
105
115
|
j.set(this, void 0);
|
|
106
|
-
|
|
107
|
-
N.set(this, false);
|
|
108
|
-
z.set(this, false);
|
|
109
|
-
C.set(this, void 0);
|
|
116
|
+
N.set(this, void 0);
|
|
110
117
|
S.set(this, void 0);
|
|
118
|
+
C.set(this, void 0);
|
|
111
119
|
P.set(this, void 0);
|
|
112
120
|
A.set(this, void 0);
|
|
113
121
|
B.set(this, void 0);
|
|
114
|
-
|
|
122
|
+
/**
|
|
123
|
+
* Monotonic id of the latest collations request. Used to discard stale
|
|
124
|
+
* responses: a slow request for an invalid instance can resolve after a
|
|
125
|
+
* newer request for a valid instance, and without this guard it would
|
|
126
|
+
* overwrite the UI with the wrong (failed) result.
|
|
127
|
+
*/ $.set(this, 0);
|
|
115
128
|
K.set(this, void 0);
|
|
116
|
-
U.set(this, void 0);
|
|
117
|
-
H.set(this, (
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
this.databaseNameValue = b(this, H, "f").call(this, e);
|
|
129
|
+
U.set(this, (i => `${zi}${i !== null && i !== void 0 ? i : ""}`));
|
|
130
|
+
H.set(this, (i => {
|
|
131
|
+
var t, s;
|
|
132
|
+
const e = (t = i.detail) !== null && t !== void 0 ? t : (s = b(this, F, "f")) === null || s === void 0 ? void 0 : s.value;
|
|
133
|
+
this.databaseNameValue = b(this, U, "f").call(this, e);
|
|
122
134
|
}));
|
|
123
|
-
|
|
124
|
-
var
|
|
125
|
-
this.databaseNameValue = (
|
|
135
|
+
O.set(this, (i => {
|
|
136
|
+
var t, s;
|
|
137
|
+
this.databaseNameValue = (t = i.detail) !== null && t !== void 0 ? t : (s = b(this, T, "f")) === null || s === void 0 ? void 0 : s.value;
|
|
126
138
|
}));
|
|
127
|
-
|
|
128
|
-
this.authenticationTypeValue =
|
|
139
|
+
V.set(this, (async i => {
|
|
140
|
+
this.authenticationTypeValue = i === null || i === void 0 ? void 0 : i.detail;
|
|
129
141
|
this.collations = [];
|
|
130
142
|
this.defaultCollation = undefined;
|
|
131
143
|
this.connectionStatus = undefined;
|
|
132
|
-
await b(this,
|
|
144
|
+
await b(this, Z, "f").call(this);
|
|
133
145
|
}));
|
|
134
|
-
|
|
135
|
-
var
|
|
136
|
-
this.userNameValue = (
|
|
137
|
-
this.passwordValue = (e = (s = b(this,
|
|
138
|
-
await b(this,
|
|
146
|
+
G.set(this, (async () => {
|
|
147
|
+
var i, t, s, e;
|
|
148
|
+
this.userNameValue = (t = (i = b(this, B, "f")) === null || i === void 0 ? void 0 : i.value) !== null && t !== void 0 ? t : "";
|
|
149
|
+
this.passwordValue = (e = (s = b(this, j, "f")) === null || s === void 0 ? void 0 : s.value) !== null && e !== void 0 ? e : "";
|
|
150
|
+
await b(this, Z, "f").call(this);
|
|
139
151
|
}));
|
|
140
|
-
|
|
152
|
+
Q.set(this, (async () => {
|
|
141
153
|
if (!this.browseForMoreCallback) {
|
|
142
154
|
return;
|
|
143
155
|
}
|
|
144
156
|
this.browseForMoreDialogOpen = true;
|
|
145
157
|
try {
|
|
146
|
-
const
|
|
147
|
-
if (
|
|
148
|
-
this.serverNameValue =
|
|
149
|
-
if (b(this,
|
|
150
|
-
b(this,
|
|
158
|
+
const i = await this.browseForMoreCallback();
|
|
159
|
+
if (i) {
|
|
160
|
+
this.serverNameValue = i;
|
|
161
|
+
if (b(this, P, "f")) {
|
|
162
|
+
b(this, P, "f").value = i;
|
|
151
163
|
}
|
|
152
|
-
await b(this,
|
|
153
|
-
detail:
|
|
164
|
+
await b(this, R, "f").call(this, new CustomEvent("change", {
|
|
165
|
+
detail: i
|
|
154
166
|
}));
|
|
155
167
|
}
|
|
156
|
-
} catch (
|
|
168
|
+
} catch (i) {} finally {
|
|
157
169
|
this.browseForMoreDialogOpen = false;
|
|
158
170
|
}
|
|
159
171
|
}));
|
|
160
|
-
|
|
161
|
-
var
|
|
162
|
-
const e = (
|
|
172
|
+
R.set(this, (async i => {
|
|
173
|
+
var t, s;
|
|
174
|
+
const e = (t = i === null || i === void 0 ? void 0 : i.detail) !== null && t !== void 0 ? t : (s = i.target) === null || s === void 0 ? void 0 : s.value;
|
|
163
175
|
this.serverNameValue = e !== null && e !== void 0 ? e : "";
|
|
164
|
-
b(this,
|
|
165
|
-
await b(this,
|
|
176
|
+
b(this, Y, "f").call(this);
|
|
177
|
+
await b(this, Z, "f").call(this);
|
|
166
178
|
}));
|
|
167
|
-
|
|
168
|
-
var
|
|
169
|
-
if (!
|
|
179
|
+
X.set(this, (i => {
|
|
180
|
+
var t;
|
|
181
|
+
if (!i) {
|
|
170
182
|
return "empty";
|
|
171
183
|
}
|
|
172
|
-
if (
|
|
184
|
+
if (i.toLowerCase() === xi.toLowerCase()) {
|
|
173
185
|
return "localdb";
|
|
174
186
|
}
|
|
175
|
-
const s = ((
|
|
187
|
+
const s = ((t = this.serverInstances) !== null && t !== void 0 ? t : []).some((t => {
|
|
176
188
|
var s;
|
|
177
|
-
return ((s =
|
|
189
|
+
return ((s = t.label) === null || s === void 0 ? void 0 : s.toLowerCase()) === i.toLowerCase();
|
|
178
190
|
}));
|
|
179
191
|
return s ? "local" : "remote";
|
|
180
192
|
}));
|
|
181
|
-
|
|
182
|
-
const
|
|
183
|
-
return
|
|
193
|
+
q.set(this, (() => {
|
|
194
|
+
const i = b(this, X, "f").call(this, this.serverNameValue);
|
|
195
|
+
return i === "localdb" || i === "remote" || i === "empty";
|
|
184
196
|
}));
|
|
185
|
-
|
|
186
|
-
const
|
|
187
|
-
if (!
|
|
197
|
+
J.set(this, (() => {
|
|
198
|
+
const i = this.authenticationTypeValue;
|
|
199
|
+
if (!i || i === yi) {
|
|
188
200
|
return false;
|
|
189
201
|
}
|
|
190
202
|
return !this.userNameValue || !this.passwordValue;
|
|
191
203
|
}));
|
|
192
|
-
|
|
193
|
-
const
|
|
194
|
-
if (
|
|
204
|
+
Y.set(this, (() => {
|
|
205
|
+
const i = b(this, X, "f").call(this, this.serverNameValue);
|
|
206
|
+
if (i === "local" || i === "localdb") {
|
|
195
207
|
this.createDataFilesInKBFolder = true;
|
|
196
|
-
} else if (
|
|
208
|
+
} else if (i === "remote") {
|
|
197
209
|
this.createDataFilesInKBFolder = false;
|
|
198
210
|
}
|
|
199
211
|
}));
|
|
200
|
-
|
|
201
|
-
var
|
|
202
|
-
|
|
203
|
-
|
|
212
|
+
Z.set(this, (async () => {
|
|
213
|
+
var i, t, s, e;
|
|
214
|
+
var a;
|
|
215
|
+
const o = this.serverNameValue;
|
|
216
|
+
if (!o || !this.getCollationsForInstanceCallback) {
|
|
204
217
|
return;
|
|
205
218
|
}
|
|
206
|
-
const
|
|
207
|
-
const
|
|
208
|
-
const
|
|
209
|
-
const
|
|
210
|
-
if (!
|
|
219
|
+
const n = this.authenticationTypeValue;
|
|
220
|
+
const l = n === yi;
|
|
221
|
+
const r = l ? undefined : (i = b(this, B, "f")) === null || i === void 0 ? void 0 : i.value;
|
|
222
|
+
const h = l ? undefined : (t = b(this, j, "f")) === null || t === void 0 ? void 0 : t.value;
|
|
223
|
+
if (!l && n && (!r || !h)) {
|
|
211
224
|
return;
|
|
212
225
|
}
|
|
226
|
+
// Tag this request so we can ignore its response if a newer request is
|
|
227
|
+
// fired before it resolves (e.g. the user fixes an invalid server name
|
|
228
|
+
// while the slow request for the invalid one is still pending).
|
|
229
|
+
const c = g(this, $, (a = b(this, $, "f"), ++a), "f");
|
|
213
230
|
this.connectionStatus = "connecting";
|
|
214
231
|
try {
|
|
215
|
-
const
|
|
216
|
-
if (
|
|
217
|
-
|
|
218
|
-
|
|
232
|
+
const i = await this.getCollationsForInstanceCallback(o, n, r, h);
|
|
233
|
+
if (c !== b(this, $, "f")) {
|
|
234
|
+
// A newer request superseded this one; discard the stale response.
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
if (i) {
|
|
238
|
+
this.collations = (s = i.collations) !== null && s !== void 0 ? s : [];
|
|
239
|
+
this.defaultCollation = (e = i.defaultCollation) !== null && e !== void 0 ? e : undefined;
|
|
219
240
|
this.connectionStatus = "success";
|
|
220
241
|
} else {
|
|
221
242
|
this.collations = [];
|
|
222
243
|
this.defaultCollation = undefined;
|
|
223
244
|
this.connectionStatus = "failed";
|
|
224
245
|
}
|
|
225
|
-
} catch (
|
|
246
|
+
} catch (i) {
|
|
247
|
+
if (c !== b(this, $, "f")) {
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
226
250
|
this.collations = [];
|
|
227
251
|
this.defaultCollation = undefined;
|
|
228
252
|
this.connectionStatus = "failed";
|
|
229
253
|
}
|
|
230
254
|
}));
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
b(this,
|
|
234
|
-
b(this,
|
|
255
|
+
ii.set(this, (i => {
|
|
256
|
+
g(this, w, i.detail, "f");
|
|
257
|
+
b(this, fi, "f").call(this);
|
|
258
|
+
b(this, ki, "f").call(this);
|
|
235
259
|
}));
|
|
236
|
-
|
|
237
|
-
await b(this,
|
|
238
|
-
b(this,
|
|
260
|
+
ti.set(this, (async () => {
|
|
261
|
+
await b(this, di, "f").call(this);
|
|
262
|
+
b(this, fi, "f").call(this);
|
|
239
263
|
}));
|
|
240
|
-
|
|
241
|
-
|
|
264
|
+
si.set(this, (() => {
|
|
265
|
+
g(this, y, b(this, E, "f").value, "f");
|
|
242
266
|
}));
|
|
243
|
-
|
|
244
|
-
const
|
|
267
|
+
ei.set(this, (() => {
|
|
268
|
+
const i = this.authenticationTypeValue !== yi;
|
|
245
269
|
return [ s("section", {
|
|
246
270
|
class: "kb-storage-card",
|
|
247
271
|
part: "kb-storage-card"
|
|
@@ -274,29 +298,29 @@ const zt = class {
|
|
|
274
298
|
}, s("ch-combo-box-render", {
|
|
275
299
|
class: "combo-box",
|
|
276
300
|
value: this.serverNameValue,
|
|
277
|
-
ref:
|
|
301
|
+
ref: i => g(this, P, i, "f"),
|
|
278
302
|
id: "serverName",
|
|
279
303
|
part: "server-name",
|
|
280
304
|
model: this.serverInstancesComboBoxModel,
|
|
281
305
|
suggest: true,
|
|
282
306
|
suggestDebounce: n.inputDebounce,
|
|
283
|
-
onInput: b(this,
|
|
284
|
-
onChange: b(this,
|
|
307
|
+
onInput: b(this, R, "f"),
|
|
308
|
+
onChange: b(this, R, "f")
|
|
285
309
|
}), s("button", {
|
|
286
310
|
class: "button-tertiary button-icon-only",
|
|
287
311
|
"aria-label": b(this, m, "f").tabAdvanced.serverName.browseForMore,
|
|
288
312
|
part: "button-browse-for-more",
|
|
289
|
-
onClick: b(this,
|
|
313
|
+
onClick: b(this, Q, "f")
|
|
290
314
|
}, s("ch-image", {
|
|
291
315
|
class: "icon-m",
|
|
292
|
-
src:
|
|
316
|
+
src: Ti
|
|
293
317
|
}), !this.browseForMoreDialogOpen && s("ch-tooltip", {
|
|
294
318
|
class: "tooltip",
|
|
295
319
|
actionElement: null,
|
|
296
320
|
blockAlign: "outside-start",
|
|
297
321
|
inlineAlign: "center",
|
|
298
322
|
delay: n.tooltipSettings.delay
|
|
299
|
-
}, b(this, m, "f").tabAdvanced.serverName.browseForMore))), b(this,
|
|
323
|
+
}, b(this, m, "f").tabAdvanced.serverName.browseForMore))), b(this, li, "f").call(this, b(this, P, "f"))), s("div", {
|
|
300
324
|
class: "field field-block database-field"
|
|
301
325
|
}, s("label", {
|
|
302
326
|
class: "label",
|
|
@@ -306,9 +330,9 @@ const zt = class {
|
|
|
306
330
|
value: this.databaseNameValue,
|
|
307
331
|
id: "databaseName",
|
|
308
332
|
part: "database-name",
|
|
309
|
-
onInput: b(this,
|
|
310
|
-
ref:
|
|
311
|
-
}), b(this,
|
|
333
|
+
onInput: b(this, O, "f"),
|
|
334
|
+
ref: i => g(this, T, i, "f")
|
|
335
|
+
}), b(this, li, "f").call(this, b(this, T, "f"))), s("div", {
|
|
312
336
|
class: "field field-block collation-field"
|
|
313
337
|
}, s("label", {
|
|
314
338
|
class: "label",
|
|
@@ -318,19 +342,19 @@ const zt = class {
|
|
|
318
342
|
disabled: !this.serverNameValue || this.collations.length === 0,
|
|
319
343
|
placeholder: this.collations.length === 0 ? b(this, m, "f").tabAdvanced.collation.disabledPlaceholder : "",
|
|
320
344
|
value: this.defaultCollation,
|
|
321
|
-
ref:
|
|
345
|
+
ref: i => g(this, W, i, "f"),
|
|
322
346
|
model: this.collationsComboBoxModel,
|
|
323
347
|
id: "collation",
|
|
324
348
|
part: "collation"
|
|
325
|
-
}), b(this,
|
|
349
|
+
}), b(this, li, "f").call(this, b(this, W, "f"))), s("ch-checkbox", {
|
|
326
350
|
class: "checkbox",
|
|
327
351
|
checkedValue: "true",
|
|
328
352
|
value: this.createDataFilesInKBFolder ? "true" : undefined,
|
|
329
|
-
disabled: b(this,
|
|
353
|
+
disabled: b(this, q, "f").call(this),
|
|
330
354
|
caption: b(this, m, "f").tabAdvanced.createDataFilesInKbFolder,
|
|
331
355
|
part: "create-data-in-kb",
|
|
332
356
|
id: "createDataFilesInKBFolder",
|
|
333
|
-
ref:
|
|
357
|
+
ref: i => g(this, I, i, "f")
|
|
334
358
|
}))), s("div", {
|
|
335
359
|
class: "kb-storage-column"
|
|
336
360
|
}, s("div", {
|
|
@@ -352,12 +376,12 @@ const zt = class {
|
|
|
352
376
|
disabled: this.authenticationTypes.length === 0,
|
|
353
377
|
placeholder: this.authenticationTypes.length === 0 ? b(this, m, "f").tabAdvanced.authenticationType.disabledPlaceholder : "",
|
|
354
378
|
value: this.authenticationTypeValue,
|
|
355
|
-
ref:
|
|
379
|
+
ref: i => g(this, M, i, "f"),
|
|
356
380
|
model: this.authenticationTypesComboBoxModel,
|
|
357
381
|
id: "authenticationType",
|
|
358
382
|
part: "authentication-type",
|
|
359
|
-
onInput: this.authenticationTypes.length > 0 ? b(this,
|
|
360
|
-
}), b(this,
|
|
383
|
+
onInput: this.authenticationTypes.length > 0 ? b(this, V, "f") : undefined
|
|
384
|
+
}), b(this, li, "f").call(this, b(this, M, "f"))), i ? s("div", {
|
|
361
385
|
class: "kb-storage-credentials"
|
|
362
386
|
}, s("div", {
|
|
363
387
|
class: "field field-block username-field"
|
|
@@ -369,10 +393,10 @@ const zt = class {
|
|
|
369
393
|
value: this.userName,
|
|
370
394
|
id: "userName",
|
|
371
395
|
part: "user-name",
|
|
372
|
-
ref:
|
|
373
|
-
onInput: b(this,
|
|
396
|
+
ref: i => g(this, B, i, "f"),
|
|
397
|
+
onInput: b(this, G, "f"),
|
|
374
398
|
debounce: n.inputDebounce
|
|
375
|
-
}), b(this,
|
|
399
|
+
}), b(this, li, "f").call(this, b(this, B, "f"))), s("div", {
|
|
376
400
|
class: "field field-block password-field"
|
|
377
401
|
}, s("label", {
|
|
378
402
|
class: "label",
|
|
@@ -384,24 +408,24 @@ const zt = class {
|
|
|
384
408
|
value: this.password,
|
|
385
409
|
id: "password",
|
|
386
410
|
part: "password",
|
|
387
|
-
ref:
|
|
388
|
-
onInput: b(this,
|
|
411
|
+
ref: i => g(this, j, i, "f"),
|
|
412
|
+
onInput: b(this, G, "f"),
|
|
389
413
|
debounce: n.inputDebounce
|
|
390
|
-
}), b(this,
|
|
414
|
+
}), b(this, li, "f").call(this, b(this, j, "f"))), s("ch-checkbox", {
|
|
391
415
|
class: "checkbox",
|
|
392
416
|
checkedValue: "password",
|
|
393
417
|
value: "password",
|
|
394
418
|
caption: b(this, m, "f").tabAdvanced.savePassword,
|
|
395
419
|
part: "save-password",
|
|
396
420
|
id: "savePassword",
|
|
397
|
-
ref:
|
|
421
|
+
ref: i => g(this, C, i, "f"),
|
|
398
422
|
disabled: true
|
|
399
423
|
})) : s("div", {
|
|
400
424
|
class: "kb-storage-callout",
|
|
401
425
|
part: "windows-auth-callout"
|
|
402
426
|
}, s("ch-image", {
|
|
403
427
|
class: "icon-l",
|
|
404
|
-
src:
|
|
428
|
+
src: Ii,
|
|
405
429
|
type: "mask"
|
|
406
430
|
}), s("div", {
|
|
407
431
|
class: "kb-storage-callout-inner"
|
|
@@ -411,7 +435,7 @@ const zt = class {
|
|
|
411
435
|
class: "kb-storage-callout__description body-regular-xs"
|
|
412
436
|
}, b(this, m, "f").tabAdvanced.windowsAuthCalloutDescription))))))) ];
|
|
413
437
|
}));
|
|
414
|
-
|
|
438
|
+
ai.set(this, (() => [ s("section", {
|
|
415
439
|
class: "basic__header field-group dialog-header-with-border spacing-body-inline"
|
|
416
440
|
}, s("div", {
|
|
417
441
|
// #prototyping target
|
|
@@ -427,9 +451,9 @@ const zt = class {
|
|
|
427
451
|
placeholder: this.prototypingTargets.length === 0 ? b(this, m, "f").tabBasic.prototypingTarget.disabledPlaceholder : "",
|
|
428
452
|
value: this.prototypingTargetsInitialValue,
|
|
429
453
|
model: this.prototypingTargetsComboBoxModel,
|
|
430
|
-
onInput: this.prototypingTargets.length > 0 ? b(this,
|
|
431
|
-
ref:
|
|
432
|
-
}), b(this,
|
|
454
|
+
onInput: this.prototypingTargets.length > 0 ? b(this, ti, "f") : undefined,
|
|
455
|
+
ref: i => g(this, S, i, "f")
|
|
456
|
+
}), b(this, li, "f").call(this, b(this, S, "f"))), s("div", {
|
|
433
457
|
// #user interface
|
|
434
458
|
class: "field field-block user-interface-language"
|
|
435
459
|
}, s("label", {
|
|
@@ -440,11 +464,11 @@ const zt = class {
|
|
|
440
464
|
disabled: this.userInterfaceLanguages.length === 0,
|
|
441
465
|
placeholder: this.userInterfaceLanguages.length === 0 ? b(this, m, "f").tabBasic.userInterfaceLanguage.disabledPlaceholder : "",
|
|
442
466
|
value: this.userInterfaceLanguagesInitialValue,
|
|
443
|
-
ref:
|
|
467
|
+
ref: i => g(this, A, i, "f"),
|
|
444
468
|
model: this.userInterfaceLanguagesComboBoxModel,
|
|
445
469
|
id: "userInterfaceLanguage",
|
|
446
470
|
part: "user-interface-language"
|
|
447
|
-
}), b(this,
|
|
471
|
+
}), b(this, li, "f").call(this, b(this, A, "f")))), s("section", {
|
|
448
472
|
class: "section__back-end"
|
|
449
473
|
}, s("h2", {
|
|
450
474
|
// back end
|
|
@@ -462,12 +486,12 @@ const zt = class {
|
|
|
462
486
|
disabled: this.defaultPrototypingEnvironments.length === 0,
|
|
463
487
|
placeholder: this.defaultPrototypingEnvironments.length === 0 ? b(this, m, "f").tabBasic.backEnd.prototypingEnvironment.disabledPlaceholder : "",
|
|
464
488
|
value: b(this, w, "f"),
|
|
465
|
-
ref:
|
|
489
|
+
ref: i => g(this, N, i, "f"),
|
|
466
490
|
model: this.prototypingEnvironmentsComboBoxModel,
|
|
467
|
-
onInput: b(this,
|
|
491
|
+
onInput: b(this, ii, "f"),
|
|
468
492
|
part: "prototyping-environment",
|
|
469
493
|
id: "prototypingEnvironment"
|
|
470
|
-
}), b(this,
|
|
494
|
+
}), b(this, li, "f").call(this, b(this, N, "f"))), s("div", {
|
|
471
495
|
// #data source
|
|
472
496
|
class: "field field-block"
|
|
473
497
|
}, s("label", {
|
|
@@ -478,170 +502,194 @@ const zt = class {
|
|
|
478
502
|
disabled: this.defaultDataSources.length === 0,
|
|
479
503
|
placeholder: this.defaultDataSources.length === 0 ? b(this, m, "f").tabBasic.backEnd.dataSource.disabledPlaceholder : "",
|
|
480
504
|
value: b(this, y, "f"),
|
|
481
|
-
ref:
|
|
482
|
-
onInput: b(this,
|
|
505
|
+
ref: i => g(this, E, i, "f"),
|
|
506
|
+
onInput: b(this, si, "f"),
|
|
483
507
|
model: this.defaultDataSourcesComboBoxModel,
|
|
484
508
|
part: "data-source",
|
|
485
509
|
id: "dataSource"
|
|
486
|
-
}), b(this,
|
|
510
|
+
}), b(this, li, "f").call(this, b(this, E, "f"))))), s("section", {
|
|
487
511
|
class: "section__front-end"
|
|
488
512
|
}, s("h2", {
|
|
489
513
|
class: "dialog-header dialog-header-with-border dialog-header__front-end subtitle-regular-xs\t text-align-center spacing-body-inline"
|
|
490
514
|
}, b(this, m, "f").tabBasic.frontEnd.frontEndLabel), s("div", {
|
|
491
515
|
class: "field-group main__front-end spacing-body-inline scrollable"
|
|
492
|
-
},
|
|
516
|
+
}, c(this.frontEnds, b(this, ri, "f"), b(this, k, "f").get(b(this, w, "f"))), this.noFrontEndSelected && s("div", {
|
|
517
|
+
class: "kb-storage-callout",
|
|
518
|
+
part: "backend-only-callout"
|
|
519
|
+
}, s("ch-image", {
|
|
520
|
+
class: "icon-l",
|
|
521
|
+
src: Ii,
|
|
522
|
+
type: "mask"
|
|
523
|
+
}), s("div", {
|
|
524
|
+
class: "kb-storage-callout-inner"
|
|
525
|
+
}, s("span", {
|
|
526
|
+
class: "kb-storage-callout__title body-semi-bold-s"
|
|
527
|
+
}, b(this, m, "f").tabBasic.frontEnd.backendOnlyCalloutTitle), s("span", {
|
|
528
|
+
class: "kb-storage-callout__description body-regular-xs"
|
|
529
|
+
}, b(this, m, "f").tabBasic.frontEnd.backendOnlyCalloutDescription))))) ]));
|
|
493
530
|
// - - - - - - - - - -
|
|
494
|
-
|
|
531
|
+
oi.set(this, (() => {
|
|
495
532
|
if (this.cancelCallback) {
|
|
496
533
|
this.cancelCallback();
|
|
497
534
|
}
|
|
498
535
|
}));
|
|
499
|
-
|
|
500
|
-
var
|
|
501
|
-
const
|
|
536
|
+
ni.set(this, (() => {
|
|
537
|
+
var i, t, s, e, a, o, n, l, r, h, c, d, u, p, g;
|
|
538
|
+
const v = (i = b(this, k, "f").get(b(this, w, "f"))) !== null && i !== void 0 ? i : [];
|
|
502
539
|
this.createCallback({
|
|
503
|
-
authenticationType: (
|
|
540
|
+
authenticationType: (t = b(this, M, "f")) === null || t === void 0 ? void 0 : t.value,
|
|
504
541
|
collation: (s = b(this, W, "f")) === null || s === void 0 ? void 0 : s.value,
|
|
505
542
|
createDataFilesInKBFolder: !!((e = b(this, I, "f")) === null || e === void 0 ? void 0 : e.value),
|
|
506
543
|
dataSource: (a = b(this, E, "f")) === null || a === void 0 ? void 0 : a.value,
|
|
507
544
|
databaseName: (o = b(this, T, "f")) === null || o === void 0 ? void 0 : o.value,
|
|
508
|
-
frontEnds:
|
|
509
|
-
kbLocation: (n = b(this,
|
|
510
|
-
kbName: (l = b(this,
|
|
511
|
-
password: (r = b(this,
|
|
512
|
-
prototypingEnvironment: (h = b(this,
|
|
513
|
-
prototypingTarget: (
|
|
514
|
-
savePassword: !!((
|
|
515
|
-
serverName: (u = b(this,
|
|
516
|
-
userInterfaceLanguage: (p = b(this,
|
|
517
|
-
userName: (
|
|
545
|
+
frontEnds: v,
|
|
546
|
+
kbLocation: (n = b(this, z, "f")) === null || n === void 0 ? void 0 : n.value,
|
|
547
|
+
kbName: (l = b(this, F, "f")) === null || l === void 0 ? void 0 : l.value,
|
|
548
|
+
password: (r = b(this, j, "f")) === null || r === void 0 ? void 0 : r.value,
|
|
549
|
+
prototypingEnvironment: (h = b(this, N, "f")) === null || h === void 0 ? void 0 : h.value,
|
|
550
|
+
prototypingTarget: (c = b(this, S, "f")) === null || c === void 0 ? void 0 : c.value,
|
|
551
|
+
savePassword: !!((d = b(this, C, "f")) === null || d === void 0 ? void 0 : d.value),
|
|
552
|
+
serverName: (u = b(this, P, "f")) === null || u === void 0 ? void 0 : u.value,
|
|
553
|
+
userInterfaceLanguage: (p = b(this, A, "f")) === null || p === void 0 ? void 0 : p.value,
|
|
554
|
+
userName: (g = b(this, B, "f")) === null || g === void 0 ? void 0 : g.value,
|
|
518
555
|
creationMode: this.selectedTab
|
|
519
|
-
}).then((
|
|
520
|
-
this.validatableControls = f(
|
|
556
|
+
}).then((i => {
|
|
557
|
+
this.validatableControls = f(i, this.validatableControls);
|
|
521
558
|
}));
|
|
522
559
|
}));
|
|
523
560
|
// TODO: evaluate if this should be a global helper function.
|
|
524
561
|
// It is used on new-kb as well.
|
|
525
|
-
|
|
526
|
-
var
|
|
527
|
-
return ((e = (
|
|
562
|
+
li.set(this, (i => {
|
|
563
|
+
var t, e, a;
|
|
564
|
+
return ((e = (t = this.validatableControls) === null || t === void 0 ? void 0 : t.get(i === null || i === void 0 ? void 0 : i.id)) === null || e === void 0 ? void 0 : e.hasError) && ((a = this.validatableControls.get(i.id)) === null || a === void 0 ? void 0 : a.message) && s("ch-tooltip", {
|
|
528
565
|
class: "tooltip",
|
|
529
|
-
actionElement:
|
|
566
|
+
actionElement: i,
|
|
530
567
|
blockAlign: n.tooltipSettings.blockAlign,
|
|
531
568
|
inlineAlign: n.tooltipSettings.inlineAlign,
|
|
532
569
|
delay: n.tooltipSettings.delay
|
|
533
|
-
}, this.validatableControls.get(
|
|
570
|
+
}, this.validatableControls.get(i.id).message);
|
|
534
571
|
}));
|
|
535
|
-
|
|
536
|
-
const
|
|
537
|
-
const s =
|
|
538
|
-
b(this,
|
|
572
|
+
ri.set(this, (i => {
|
|
573
|
+
const t = i.target.checkedValue;
|
|
574
|
+
const s = i.detail === t;
|
|
575
|
+
b(this, ci, "f").call(this, t, s);
|
|
576
|
+
b(this, hi, "f").call(this);
|
|
577
|
+
}));
|
|
578
|
+
/**
|
|
579
|
+
* Recomputes whether the KB will be generated as backend only, i.e. there
|
|
580
|
+
* are front ends to choose from but none is currently selected.
|
|
581
|
+
*/ hi.set(this, (() => {
|
|
582
|
+
var i, t, s;
|
|
583
|
+
const e = b(this, k, "f").get(b(this, w, "f"));
|
|
584
|
+
this.noFrontEndSelected = ((t = (i = this.frontEnds) === null || i === void 0 ? void 0 : i.length) !== null && t !== void 0 ? t : 0) > 0 && ((s = e === null || e === void 0 ? void 0 : e.length) !== null && s !== void 0 ? s : 0) === 0;
|
|
539
585
|
}));
|
|
540
586
|
/**
|
|
541
587
|
* This function updates frontEndsCheckedMap, that contains the checked
|
|
542
588
|
* checkboxes for each language front ends.
|
|
543
589
|
*/
|
|
544
590
|
// eslint-disable-next-line @stencil-community/own-props-must-be-private
|
|
545
|
-
|
|
591
|
+
ci.set(this, ((i, t) => {
|
|
546
592
|
let s = b(this, k, "f").get(b(this, w, "f"));
|
|
547
593
|
if (!s) {
|
|
548
594
|
// first time
|
|
549
595
|
s = [];
|
|
550
596
|
b(this, k, "f").set(b(this, w, "f"), s);
|
|
551
597
|
}
|
|
552
|
-
if (
|
|
598
|
+
if (t) {
|
|
553
599
|
// update by adding
|
|
554
|
-
s.push(
|
|
600
|
+
s.push(i);
|
|
555
601
|
} else {
|
|
556
602
|
// update by removing
|
|
557
|
-
const
|
|
558
|
-
u(s,
|
|
603
|
+
const t = s.findIndex((t => t === i));
|
|
604
|
+
u(s, t);
|
|
559
605
|
}
|
|
560
606
|
}));
|
|
561
|
-
|
|
607
|
+
di.set(this, (async () => {
|
|
562
608
|
if (this.getPrototypingEnvironmentsCallback) {
|
|
563
|
-
const
|
|
564
|
-
const
|
|
565
|
-
if (
|
|
566
|
-
this.defaultPrototypingEnvironments =
|
|
609
|
+
const i = b(this, S, "f") ? b(this, S, "f").value : this.prototypingTargetsInitialValue;
|
|
610
|
+
const t = await this.getPrototypingEnvironmentsCallback(i);
|
|
611
|
+
if (t) {
|
|
612
|
+
this.defaultPrototypingEnvironments = t;
|
|
567
613
|
}
|
|
568
614
|
}
|
|
569
615
|
}));
|
|
570
|
-
|
|
616
|
+
fi.set(this, (() => {
|
|
571
617
|
if (this.getDataSourcesCallback) {
|
|
618
|
+
const i = b(this, N, "f").value;
|
|
572
619
|
const t = b(this, S, "f").value;
|
|
573
|
-
const
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
this.defaultDataSources = t;
|
|
620
|
+
const s = this.getDataSourcesCallback(i, t);
|
|
621
|
+
s.then((i => {
|
|
622
|
+
if (i.length > 0) {
|
|
623
|
+
i = r(i, b(this, y, "f"));
|
|
624
|
+
g(this, y, h(i), "f");
|
|
625
|
+
this.defaultDataSources = i;
|
|
580
626
|
// set first option as selected
|
|
581
627
|
b(this, E, "f").value = b(this, y, "f") !== undefined ? b(this, y, "f") : this.defaultDataSources[0].id;
|
|
582
628
|
}
|
|
583
629
|
})).catch((() => {}));
|
|
584
630
|
}
|
|
585
631
|
}));
|
|
586
|
-
|
|
587
|
-
const
|
|
588
|
-
if (
|
|
589
|
-
this.authenticationTypeValue =
|
|
632
|
+
ui.set(this, (() => {
|
|
633
|
+
const i = this.authenticationTypes.some((i => i.id === yi));
|
|
634
|
+
if (i) {
|
|
635
|
+
this.authenticationTypeValue = yi;
|
|
590
636
|
}
|
|
591
637
|
}));
|
|
592
|
-
|
|
638
|
+
pi.set(this, (() => {
|
|
593
639
|
// populate #controlsValidation with the controls that could have errors.
|
|
594
|
-
const
|
|
595
|
-
|
|
596
|
-
if (
|
|
597
|
-
this.validatableControls.set(
|
|
598
|
-
reference:
|
|
640
|
+
const i = [ b(this, E, "f"), b(this, F, "f"), b(this, N, "f"), b(this, S, "f"), b(this, A, "f") ];
|
|
641
|
+
i.forEach((i => {
|
|
642
|
+
if (i.id) {
|
|
643
|
+
this.validatableControls.set(i.id, {
|
|
644
|
+
reference: i,
|
|
599
645
|
hasError: false,
|
|
600
646
|
message: undefined
|
|
601
647
|
});
|
|
602
648
|
}
|
|
603
649
|
}));
|
|
604
650
|
}));
|
|
605
|
-
|
|
651
|
+
bi.set(this, (() => {
|
|
606
652
|
// populate #controlsValidation with the controls that could have errors.
|
|
607
|
-
const
|
|
608
|
-
|
|
609
|
-
if (
|
|
610
|
-
this.validatableControls.set(
|
|
611
|
-
reference:
|
|
653
|
+
const i = [ b(this, M, "f"), b(this, I, "f"), b(this, P, "f"), b(this, M, "f"), b(this, T, "f"), b(this, B, "f"), b(this, W, "f"), b(this, j, "f"), b(this, C, "f") ];
|
|
654
|
+
i.forEach((i => {
|
|
655
|
+
if (i.id) {
|
|
656
|
+
this.validatableControls.set(i.id, {
|
|
657
|
+
reference: i,
|
|
612
658
|
hasError: false,
|
|
613
659
|
message: undefined
|
|
614
660
|
});
|
|
615
661
|
}
|
|
616
662
|
}));
|
|
617
663
|
}));
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
664
|
+
gi.set(this, (async i => {
|
|
665
|
+
var t;
|
|
666
|
+
// Capture the button before awaiting. Opening/closing the location picker
|
|
667
|
+
// restores focus to it programmatically, leaving the :focus-visible outline
|
|
668
|
+
// lingering as if it were still active. On a successful selection move focus
|
|
669
|
+
// to the location input (natural next step, keyboard-friendly); otherwise
|
|
670
|
+
// just blur the button so the outline doesn't stay pinned.
|
|
671
|
+
const s = i.currentTarget;
|
|
672
|
+
const e = await this.selectLocationCallback();
|
|
673
|
+
if (e) {
|
|
674
|
+
this.kbLocation = e;
|
|
675
|
+
(t = b(this, z, "f")) === null || t === void 0 ? void 0 : t.focus();
|
|
676
|
+
} else {
|
|
677
|
+
s === null || s === void 0 ? void 0 : s.blur();
|
|
678
|
+
}
|
|
631
679
|
}));
|
|
632
|
-
|
|
633
|
-
this.selectedTab =
|
|
634
|
-
if (
|
|
680
|
+
vi.set(this, (i => {
|
|
681
|
+
this.selectedTab = i.detail.newSelectedId;
|
|
682
|
+
if (i.detail.newSelectedId === Li) {
|
|
635
683
|
if (!this.advancedTabIsVisible) {
|
|
636
684
|
this.advancedTabIsVisible = true;
|
|
637
|
-
b(this,
|
|
685
|
+
b(this, mi, "f").call(this);
|
|
638
686
|
}
|
|
639
687
|
} else {
|
|
640
688
|
this.connectionStatus = undefined;
|
|
641
689
|
}
|
|
642
690
|
}));
|
|
643
|
-
|
|
644
|
-
var
|
|
691
|
+
mi.set(this, (async () => {
|
|
692
|
+
var i, t, s, e, a, o, n;
|
|
645
693
|
if (!this.getAdvancedTabDataCallback || this.loadingAdvancedTab) {
|
|
646
694
|
return;
|
|
647
695
|
}
|
|
@@ -652,10 +700,10 @@ const zt = class {
|
|
|
652
700
|
if (l) {
|
|
653
701
|
if (l.serverName != null) {
|
|
654
702
|
this.serverNameValue = l.serverName;
|
|
655
|
-
b(this,
|
|
703
|
+
b(this, Y, "f").call(this);
|
|
656
704
|
}
|
|
657
|
-
this.serverInstances = (
|
|
658
|
-
this.collations = (
|
|
705
|
+
this.serverInstances = (i = l.serverInstances) !== null && i !== void 0 ? i : this.serverInstances;
|
|
706
|
+
this.collations = (t = l.collations) !== null && t !== void 0 ? t : this.collations;
|
|
659
707
|
this.authenticationTypes = (s = l.authenticationTypes) !== null && s !== void 0 ? s : this.authenticationTypes;
|
|
660
708
|
this.defaultCollation = (e = l.defaultCollation) !== null && e !== void 0 ? e : this.defaultCollation;
|
|
661
709
|
this.authenticationTypeValue = (n = (o = (a = l.authenticationTypes) === null || a === void 0 ? void 0 : a[0]) === null || o === void 0 ? void 0 : o.id) !== null && n !== void 0 ? n : this.authenticationTypeValue;
|
|
@@ -663,7 +711,7 @@ const zt = class {
|
|
|
663
711
|
} else {
|
|
664
712
|
this.connectionStatus = "failed";
|
|
665
713
|
}
|
|
666
|
-
} catch (
|
|
714
|
+
} catch (i) {
|
|
667
715
|
this.connectionStatus = "failed";
|
|
668
716
|
} finally {
|
|
669
717
|
this.loadingAdvancedTab = false;
|
|
@@ -674,26 +722,27 @@ const zt = class {
|
|
|
674
722
|
* by comparing the new state (getFrontEndsCallback result) and previous state.
|
|
675
723
|
*/
|
|
676
724
|
// eslint-disable-next-line @stencil-community/own-props-must-be-private
|
|
677
|
-
|
|
678
|
-
const
|
|
679
|
-
if ((
|
|
680
|
-
this.frontEnds =
|
|
725
|
+
ki.set(this, (async () => {
|
|
726
|
+
const i = await this.getFrontEndsCallback(b(this, w, "f"));
|
|
727
|
+
if ((i === null || i === void 0 ? void 0 : i.length) > 0) {
|
|
728
|
+
this.frontEnds = i;
|
|
681
729
|
// Seed the checked map from the data's checked property so that
|
|
682
730
|
// initially checked items render as checked on first load.
|
|
683
731
|
if (!b(this, k, "f").has(b(this, w, "f"))) {
|
|
684
|
-
const
|
|
685
|
-
if (
|
|
686
|
-
b(this, k, "f").set(b(this, w, "f"),
|
|
732
|
+
const t = i.filter((i => i.checked)).map((i => i.value || i.id));
|
|
733
|
+
if (t.length > 0) {
|
|
734
|
+
b(this, k, "f").set(b(this, w, "f"), t);
|
|
687
735
|
}
|
|
688
736
|
}
|
|
737
|
+
b(this, hi, "f").call(this);
|
|
689
738
|
}
|
|
690
739
|
}));
|
|
691
740
|
this.advancedTabIsVisible = false;
|
|
692
741
|
this.loadingAdvancedTab = false;
|
|
693
742
|
this.browseForMoreDialogOpen = false;
|
|
694
743
|
this.databaseNameValue = "";
|
|
695
|
-
this.locationMode = Dt;
|
|
696
744
|
this.frontEnds = undefined;
|
|
745
|
+
this.noFrontEndSelected = false;
|
|
697
746
|
this.validatableControls = new Map;
|
|
698
747
|
this.connectionStatus = undefined;
|
|
699
748
|
this.userNameValue = "";
|
|
@@ -714,7 +763,7 @@ const zt = class {
|
|
|
714
763
|
this.serverNameValue = "";
|
|
715
764
|
this.userInterfaceLanguagesComboBoxModel = [];
|
|
716
765
|
this.userInterfaceLanguagesInitialValue = undefined;
|
|
717
|
-
this.selectedTab =
|
|
766
|
+
this.selectedTab = Di;
|
|
718
767
|
this.cancelCallback = undefined;
|
|
719
768
|
this.canSetLocation = false;
|
|
720
769
|
this.getAdvancedTabDataCallback = undefined;
|
|
@@ -738,76 +787,69 @@ const zt = class {
|
|
|
738
787
|
this.userInterfaceLanguages = [];
|
|
739
788
|
this.userName = undefined;
|
|
740
789
|
}
|
|
741
|
-
watchAuthenticationTypes(
|
|
742
|
-
if (
|
|
743
|
-
this.authenticationTypesComboBoxModel =
|
|
744
|
-
this.authenticationTypeValue = h(
|
|
790
|
+
watchAuthenticationTypes(i) {
|
|
791
|
+
if (i === null || i === void 0 ? void 0 : i.length) {
|
|
792
|
+
this.authenticationTypesComboBoxModel = d(i);
|
|
793
|
+
this.authenticationTypeValue = h(i);
|
|
745
794
|
}
|
|
746
795
|
}
|
|
747
|
-
watchCollations(
|
|
748
|
-
if (!(
|
|
796
|
+
watchCollations(i) {
|
|
797
|
+
if (!(i === null || i === void 0 ? void 0 : i.length)) {
|
|
749
798
|
this.collationsComboBoxModel = [];
|
|
750
799
|
return;
|
|
751
800
|
}
|
|
752
|
-
this.collationsComboBoxModel =
|
|
801
|
+
this.collationsComboBoxModel = d(i);
|
|
753
802
|
}
|
|
754
|
-
watchServerInstances(
|
|
755
|
-
if (!(
|
|
803
|
+
watchServerInstances(i) {
|
|
804
|
+
if (!(i === null || i === void 0 ? void 0 : i.length)) {
|
|
756
805
|
this.serverInstancesComboBoxModel = [];
|
|
757
806
|
return;
|
|
758
807
|
}
|
|
759
|
-
this.serverInstancesComboBoxModel =
|
|
808
|
+
this.serverInstancesComboBoxModel = d(i);
|
|
760
809
|
}
|
|
761
|
-
watchDefaultDataSources(
|
|
762
|
-
if (
|
|
763
|
-
this.defaultDataSourcesComboBoxModel =
|
|
764
|
-
const
|
|
765
|
-
|
|
810
|
+
watchDefaultDataSources(i) {
|
|
811
|
+
if (i === null || i === void 0 ? void 0 : i.length) {
|
|
812
|
+
this.defaultDataSourcesComboBoxModel = d(i);
|
|
813
|
+
const t = r(i, b(this, y, "f"));
|
|
814
|
+
g(this, y, h(t), "f");
|
|
766
815
|
}
|
|
767
816
|
}
|
|
768
|
-
watchDefaultPrototypingEnvironments(
|
|
769
|
-
if (
|
|
770
|
-
this.prototypingEnvironmentsComboBoxModel =
|
|
771
|
-
|
|
772
|
-
b(this,
|
|
817
|
+
watchDefaultPrototypingEnvironments(i) {
|
|
818
|
+
if (i === null || i === void 0 ? void 0 : i.length) {
|
|
819
|
+
this.prototypingEnvironmentsComboBoxModel = d(i);
|
|
820
|
+
g(this, w, h(i), "f");
|
|
821
|
+
b(this, ki, "f").call(this);
|
|
773
822
|
}
|
|
774
823
|
}
|
|
775
|
-
watchPrototypingTargets(
|
|
776
|
-
if (
|
|
777
|
-
this.prototypingTargetsComboBoxModel =
|
|
778
|
-
this.prototypingTargetsInitialValue = h(
|
|
779
|
-
b(this,
|
|
824
|
+
watchPrototypingTargets(i) {
|
|
825
|
+
if (i === null || i === void 0 ? void 0 : i.length) {
|
|
826
|
+
this.prototypingTargetsComboBoxModel = d(i);
|
|
827
|
+
this.prototypingTargetsInitialValue = h(i);
|
|
828
|
+
b(this, di, "f").call(this);
|
|
780
829
|
}
|
|
781
830
|
}
|
|
782
|
-
watchUserInterfaceLanguages(
|
|
783
|
-
if (
|
|
784
|
-
this.userInterfaceLanguagesComboBoxModel =
|
|
785
|
-
this.userInterfaceLanguagesInitialValue = h(
|
|
831
|
+
watchUserInterfaceLanguages(i) {
|
|
832
|
+
if (i === null || i === void 0 ? void 0 : i.length) {
|
|
833
|
+
this.userInterfaceLanguagesComboBoxModel = d(i);
|
|
834
|
+
this.userInterfaceLanguagesInitialValue = h(i);
|
|
786
835
|
}
|
|
787
836
|
}
|
|
788
837
|
async componentWillLoad() {
|
|
789
|
-
var
|
|
790
|
-
|
|
791
|
-
this.databaseNameValue = b(this,
|
|
838
|
+
var i, t;
|
|
839
|
+
g(this, m, await l.getComponentStrings(this.el), "f");
|
|
840
|
+
this.databaseNameValue = b(this, U, "f").call(this, this.kbName);
|
|
792
841
|
if (this.databaseName) {
|
|
793
842
|
this.databaseNameValue = this.databaseName;
|
|
794
843
|
}
|
|
795
|
-
this.userNameValue = (
|
|
796
|
-
this.passwordValue = (
|
|
797
|
-
|
|
798
|
-
id:
|
|
844
|
+
this.userNameValue = (i = this.userName) !== null && i !== void 0 ? i : "";
|
|
845
|
+
this.passwordValue = (t = this.password) !== null && t !== void 0 ? t : "";
|
|
846
|
+
g(this, _, [ {
|
|
847
|
+
id: Di,
|
|
799
848
|
name: b(this, m, "f").tabBasic.tabLabel
|
|
800
849
|
}, {
|
|
801
|
-
id:
|
|
850
|
+
id: Li,
|
|
802
851
|
name: b(this, m, "f").tabAdvanced.tabLabel
|
|
803
852
|
} ], "f");
|
|
804
|
-
v(this, L, [ {
|
|
805
|
-
value: Dt,
|
|
806
|
-
caption: b(this, m, "f").header.kbLocationDefault
|
|
807
|
-
}, {
|
|
808
|
-
value: Ft,
|
|
809
|
-
caption: b(this, m, "f").header.kbLocationCustom
|
|
810
|
-
} ], "f");
|
|
811
853
|
}
|
|
812
854
|
connectedCallback() {
|
|
813
855
|
this.watchDefaultDataSources(this.defaultDataSources);
|
|
@@ -816,60 +858,62 @@ const zt = class {
|
|
|
816
858
|
this.watchUserInterfaceLanguages(this.userInterfaceLanguages);
|
|
817
859
|
}
|
|
818
860
|
componentDidLoad() {
|
|
819
|
-
b(this,
|
|
861
|
+
b(this, pi, "f").call(this);
|
|
820
862
|
}
|
|
821
863
|
componentDidRender() {
|
|
822
|
-
|
|
864
|
+
// Defer the one-time setup until the real advanced content is rendered
|
|
865
|
+
// (not the loader); otherwise the control refs it reads are still undefined.
|
|
866
|
+
if (this.advancedTabIsVisible && !this.loadingAdvancedTab && !b(this, v, "f")) {
|
|
823
867
|
// just call this once.
|
|
824
|
-
b(this,
|
|
825
|
-
b(this,
|
|
826
|
-
|
|
868
|
+
b(this, ui, "f").call(this);
|
|
869
|
+
b(this, bi, "f").call(this);
|
|
870
|
+
g(this, v, true, "f");
|
|
827
871
|
}
|
|
828
|
-
// Register the location input for validation once it's rendered
|
|
829
|
-
if (
|
|
830
|
-
this.validatableControls.set(b(this,
|
|
831
|
-
reference: b(this,
|
|
872
|
+
// Register the location input for validation once it's rendered
|
|
873
|
+
if (!b(this, D, "f") && b(this, z, "f")) {
|
|
874
|
+
this.validatableControls.set(b(this, z, "f").id, {
|
|
875
|
+
reference: b(this, z, "f"),
|
|
832
876
|
hasError: false,
|
|
833
877
|
message: undefined
|
|
834
878
|
});
|
|
835
|
-
|
|
879
|
+
g(this, D, true, "f");
|
|
836
880
|
}
|
|
837
881
|
// Register credential controls when they become visible (SQL Auth selected)
|
|
838
|
-
if (this.authenticationTypeValue !==
|
|
839
|
-
this.validatableControls.set(b(this,
|
|
840
|
-
reference: b(this,
|
|
882
|
+
if (this.authenticationTypeValue !== yi && !b(this, L, "f") && b(this, B, "f") && b(this, j, "f")) {
|
|
883
|
+
this.validatableControls.set(b(this, B, "f").id, {
|
|
884
|
+
reference: b(this, B, "f"),
|
|
841
885
|
hasError: false,
|
|
842
886
|
message: undefined
|
|
843
887
|
});
|
|
844
|
-
this.validatableControls.set(b(this,
|
|
845
|
-
reference: b(this,
|
|
888
|
+
this.validatableControls.set(b(this, j, "f").id, {
|
|
889
|
+
reference: b(this, j, "f"),
|
|
846
890
|
hasError: false,
|
|
847
891
|
message: undefined
|
|
848
892
|
});
|
|
849
|
-
|
|
893
|
+
g(this, L, true, "f");
|
|
850
894
|
}
|
|
851
895
|
// Reset flag when switching back to Windows Auth so they re-register next time
|
|
852
|
-
if (this.authenticationTypeValue ===
|
|
853
|
-
|
|
896
|
+
if (this.authenticationTypeValue === yi && b(this, L, "f")) {
|
|
897
|
+
g(this, L, false, "f");
|
|
854
898
|
}
|
|
855
899
|
}
|
|
856
900
|
/**
|
|
857
901
|
* Suspends or reactivates the shortcuts
|
|
858
|
-
*/ async suspendShortcuts(
|
|
859
|
-
if (
|
|
860
|
-
b(this,
|
|
902
|
+
*/ async suspendShortcuts(i) {
|
|
903
|
+
if (i) {
|
|
904
|
+
b(this, K, "f").suspend = true;
|
|
861
905
|
} else {
|
|
862
|
-
b(this,
|
|
906
|
+
b(this, K, "f").suspend = false;
|
|
863
907
|
}
|
|
864
908
|
}
|
|
865
909
|
render() {
|
|
866
910
|
return s(e, {
|
|
867
911
|
class: "widget"
|
|
868
912
|
}, s("ch-theme", {
|
|
869
|
-
model:
|
|
913
|
+
model: wi
|
|
870
914
|
}), s("ch-shortcuts", {
|
|
871
915
|
src: b(this, x, "f"),
|
|
872
|
-
ref:
|
|
916
|
+
ref: i => g(this, K, i, "f")
|
|
873
917
|
}), s("section", {
|
|
874
918
|
class: "section"
|
|
875
919
|
}, s("header", {
|
|
@@ -894,65 +938,66 @@ const zt = class {
|
|
|
894
938
|
class: "input kb-input",
|
|
895
939
|
placeholder: "SalesInventory",
|
|
896
940
|
value: this.kbName,
|
|
897
|
-
onInput: b(this,
|
|
898
|
-
ref:
|
|
941
|
+
onInput: b(this, H, "f"),
|
|
942
|
+
ref: i => g(this, F, i, "f"),
|
|
899
943
|
id: "kbName",
|
|
900
944
|
part: "kb-name"
|
|
901
|
-
}), b(this,
|
|
902
|
-
class: "
|
|
945
|
+
}), b(this, li, "f").call(this, b(this, F, "f"))), this.canSetLocation && s("div", {
|
|
946
|
+
class: "field field-inline"
|
|
903
947
|
}, s("label", {
|
|
904
|
-
class: "label
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
model: b(this, L, "f"),
|
|
908
|
-
value: Dt,
|
|
909
|
-
onChange: b(this, gt, "f"),
|
|
910
|
-
ref: t => v(this, j, t, "f")
|
|
911
|
-
}), this.locationMode === Ft && s("div", {
|
|
948
|
+
class: "label",
|
|
949
|
+
htmlFor: "kbLocation"
|
|
950
|
+
}, b(this, m, "f").header.kbLocation), s("div", {
|
|
912
951
|
class: "location-custom-wrapper"
|
|
913
952
|
}, s("div", {
|
|
914
953
|
class: "location-field"
|
|
915
954
|
}, s("ch-edit", {
|
|
916
955
|
class: "input",
|
|
917
956
|
value: this.kbLocation,
|
|
918
|
-
ref:
|
|
957
|
+
ref: i => g(this, z, i, "f"),
|
|
919
958
|
id: "kbLocation",
|
|
920
959
|
part: "kb-location"
|
|
921
|
-
}), b(this,
|
|
922
|
-
class: "button-tertiary button-icon-only
|
|
960
|
+
}), b(this, li, "f").call(this, b(this, z, "f"))), s("button", {
|
|
961
|
+
class: "button-tertiary button-icon-only ",
|
|
923
962
|
"aria-label": b(this, m, "f").header.selectLocationButton,
|
|
924
963
|
title: b(this, m, "f").header.selectLocationButton,
|
|
925
964
|
part: "button-select-location",
|
|
926
|
-
onClick: b(this,
|
|
965
|
+
onClick: b(this, gi, "f"),
|
|
966
|
+
type: "button"
|
|
927
967
|
}, s("ch-image", {
|
|
928
968
|
class: "icon-m",
|
|
929
|
-
src:
|
|
969
|
+
src: Wi
|
|
930
970
|
}))))), this.isAdvanced ? s("ch-tab-render", {
|
|
931
971
|
// #tab
|
|
932
972
|
class: {
|
|
933
973
|
scrollable: true,
|
|
934
974
|
tab: true,
|
|
935
|
-
[
|
|
975
|
+
[_i]: true
|
|
936
976
|
},
|
|
937
977
|
tabListPosition: "block-start",
|
|
938
978
|
model: b(this, _, "f"),
|
|
939
|
-
selectedId:
|
|
979
|
+
selectedId: Di,
|
|
940
980
|
overflow: "auto",
|
|
941
981
|
contain: "size",
|
|
942
|
-
onSelectedItemChange: b(this,
|
|
982
|
+
onSelectedItemChange: b(this, vi, "f")
|
|
943
983
|
}, s("div", {
|
|
944
|
-
slot:
|
|
945
|
-
class:
|
|
984
|
+
slot: Di,
|
|
985
|
+
class: Mi,
|
|
946
986
|
part: "tab-button-basic"
|
|
947
|
-
}, b(this,
|
|
948
|
-
slot:
|
|
987
|
+
}, b(this, ai, "f").call(this)), this.advancedTabIsVisible && s("div", {
|
|
988
|
+
slot: Li,
|
|
949
989
|
class: "advanced",
|
|
950
990
|
part: "tab-button-advanced"
|
|
951
|
-
},
|
|
952
|
-
|
|
991
|
+
}, this.loadingAdvancedTab ? s("gx-ide-loader", {
|
|
992
|
+
show: true,
|
|
993
|
+
class: "advanced-loader",
|
|
994
|
+
loaderTitle: b(this, m, "f").loader.title,
|
|
995
|
+
description: b(this, m, "f").loader.description
|
|
996
|
+
}) : b(this, ei, "f").call(this))) : s("div", {
|
|
997
|
+
class: _i
|
|
953
998
|
}, s("div", {
|
|
954
|
-
class:
|
|
955
|
-
}, b(this,
|
|
999
|
+
class: Mi
|
|
1000
|
+
}, b(this, ai, "f").call(this))), s("footer", {
|
|
956
1001
|
class: {
|
|
957
1002
|
footer: true,
|
|
958
1003
|
"dialog-footer-with-border": true,
|
|
@@ -961,24 +1006,35 @@ const zt = class {
|
|
|
961
1006
|
}
|
|
962
1007
|
}, this.connectionStatus && s("span", {
|
|
963
1008
|
class: {
|
|
1009
|
+
"body-semi-bold-s": true,
|
|
964
1010
|
"connection-status": true,
|
|
965
1011
|
[`connection-status--${this.connectionStatus}`]: true
|
|
966
1012
|
},
|
|
967
1013
|
part: `connection-status connection-status-${this.connectionStatus}`
|
|
968
|
-
},
|
|
1014
|
+
}, this.connectionStatus === "connecting" && s("span", {
|
|
1015
|
+
class: "connection-status__spinner"
|
|
1016
|
+
}), this.connectionStatus === "success" && s("ch-image", {
|
|
1017
|
+
class: "icon-m",
|
|
1018
|
+
src: Ei,
|
|
1019
|
+
type: "mask"
|
|
1020
|
+
}), this.connectionStatus === "failed" && s("ch-image", {
|
|
1021
|
+
class: "icon-m",
|
|
1022
|
+
src: Fi,
|
|
1023
|
+
type: "mask"
|
|
1024
|
+
}), b(this, m, "f").footer.connectionStatus[this.connectionStatus]), s("div", {
|
|
969
1025
|
class: "buttons-spacer"
|
|
970
1026
|
}, s("button", {
|
|
971
1027
|
// #cancel
|
|
972
1028
|
class: "button-secondary",
|
|
973
1029
|
id: "button-cancel",
|
|
974
|
-
onClick: b(this,
|
|
1030
|
+
onClick: b(this, oi, "f"),
|
|
975
1031
|
part: "button-cancel"
|
|
976
1032
|
}, b(this, m, "f").footer.btnCancel), s("button", {
|
|
977
1033
|
// #create
|
|
978
1034
|
class: "button-primary",
|
|
979
1035
|
id: "button-create",
|
|
980
|
-
disabled: this.connectionStatus === "failed" || this.connectionStatus === "connecting" || b(this,
|
|
981
|
-
onClick: b(this,
|
|
1036
|
+
disabled: this.connectionStatus === "failed" || this.connectionStatus === "connecting" || b(this, J, "f").call(this),
|
|
1037
|
+
onClick: b(this, ni, "f"),
|
|
982
1038
|
part: "button-create"
|
|
983
1039
|
}, b(this, m, "f").footer.btnCreate)))));
|
|
984
1040
|
}
|
|
@@ -1001,20 +1057,20 @@ const zt = class {
|
|
|
1001
1057
|
}
|
|
1002
1058
|
};
|
|
1003
1059
|
|
|
1004
|
-
|
|
1060
|
+
v = new WeakMap, m = new WeakMap, k = new WeakMap, w = new WeakMap, y = new WeakMap,
|
|
1005
1061
|
x = new WeakMap, _ = new WeakMap, M = new WeakMap, W = new WeakMap, I = new WeakMap,
|
|
1006
|
-
T = new WeakMap, E = new WeakMap,
|
|
1007
|
-
L = new WeakMap,
|
|
1062
|
+
T = new WeakMap, E = new WeakMap, F = new WeakMap, z = new WeakMap, D = new WeakMap,
|
|
1063
|
+
L = new WeakMap, j = new WeakMap, N = new WeakMap, S = new WeakMap, C = new WeakMap,
|
|
1008
1064
|
P = new WeakMap, A = new WeakMap, B = new WeakMap, $ = new WeakMap, K = new WeakMap,
|
|
1009
1065
|
U = new WeakMap, H = new WeakMap, O = new WeakMap, V = new WeakMap, G = new WeakMap,
|
|
1010
1066
|
Q = new WeakMap, R = new WeakMap, X = new WeakMap, q = new WeakMap, J = new WeakMap,
|
|
1011
|
-
Y = new WeakMap, Z = new WeakMap,
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1067
|
+
Y = new WeakMap, Z = new WeakMap, ii = new WeakMap, ti = new WeakMap, si = new WeakMap,
|
|
1068
|
+
ei = new WeakMap, ai = new WeakMap, oi = new WeakMap, ni = new WeakMap, li = new WeakMap,
|
|
1069
|
+
ri = new WeakMap, hi = new WeakMap, ci = new WeakMap, di = new WeakMap, fi = new WeakMap,
|
|
1070
|
+
ui = new WeakMap, pi = new WeakMap, bi = new WeakMap, gi = new WeakMap, vi = new WeakMap,
|
|
1071
|
+
mi = new WeakMap, ki = new WeakMap;
|
|
1016
1072
|
|
|
1017
|
-
|
|
1073
|
+
ji.style = p;
|
|
1018
1074
|
|
|
1019
|
-
export {
|
|
1020
|
-
//# sourceMappingURL=p-
|
|
1075
|
+
export { ji as gx_ide_new_kb };
|
|
1076
|
+
//# sourceMappingURL=p-95cf766b.entry.js.map
|