@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.
Files changed (78) hide show
  1. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  2. package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js +24 -34
  3. package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js +12 -12
  5. package/dist/cjs/gx-ide-kb-manager-import.cjs.entry.js.map +1 -1
  6. package/dist/cjs/gx-ide-new-environment.cjs.entry.js +26 -3
  7. package/dist/cjs/gx-ide-new-environment.cjs.entry.js.map +1 -1
  8. package/dist/cjs/gx-ide-new-kb.cjs.entry.js +77 -44
  9. package/dist/cjs/gx-ide-new-kb.cjs.entry.js.map +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/collection/components/kb-manager-import/helpers.js +2 -9
  12. package/dist/collection/components/kb-manager-import/helpers.js.map +1 -1
  13. package/dist/collection/components/kb-manager-import/kb-manager-import.js +10 -3
  14. package/dist/collection/components/kb-manager-import/kb-manager-import.js.map +1 -1
  15. package/dist/collection/components/new-environment/gx-ide-assets/new-environment/langs/new-environment.lang.en.json +3 -1
  16. package/dist/collection/components/new-environment/gx-ide-assets/new-environment/langs/new-environment.lang.ja.json +3 -1
  17. package/dist/collection/components/new-environment/gx-ide-assets/new-environment/langs/new-environment.lang.zh.json +3 -1
  18. package/dist/collection/components/new-environment/new-environment.css +29 -0
  19. package/dist/collection/components/new-environment/new-environment.js +54 -17
  20. package/dist/collection/components/new-environment/new-environment.js.map +1 -1
  21. package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.en.json +9 -5
  22. package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.ja.json +7 -3
  23. package/dist/collection/components/new-kb/gx-ide-assets/new-kb/langs/new-kb.lang.zh.json +9 -5
  24. package/dist/collection/components/new-kb/new-kb.css +42 -1
  25. package/dist/collection/components/new-kb/new-kb.js +77 -47
  26. package/dist/collection/components/new-kb/new-kb.js.map +1 -1
  27. package/dist/collection/components/team-dev/create-kb-from-server/create-kb-from-server.js +25 -36
  28. package/dist/collection/components/team-dev/create-kb-from-server/create-kb-from-server.js.map +1 -1
  29. 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
  30. 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
  31. 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
  32. package/dist/components/gx-ide-create-kb-from-server.js +24 -35
  33. package/dist/components/gx-ide-create-kb-from-server.js.map +1 -1
  34. package/dist/components/gx-ide-kb-manager-import.js +12 -12
  35. package/dist/components/gx-ide-kb-manager-import.js.map +1 -1
  36. package/dist/components/gx-ide-new-environment.js +27 -4
  37. package/dist/components/gx-ide-new-environment.js.map +1 -1
  38. package/dist/components/gx-ide-new-kb.js +85 -46
  39. package/dist/components/gx-ide-new-kb.js.map +1 -1
  40. package/dist/esm/genexus-ide-ui.js +1 -1
  41. package/dist/esm/gx-ide-create-kb-from-server.entry.js +24 -34
  42. package/dist/esm/gx-ide-create-kb-from-server.entry.js.map +1 -1
  43. package/dist/esm/gx-ide-kb-manager-import.entry.js +12 -12
  44. package/dist/esm/gx-ide-kb-manager-import.entry.js.map +1 -1
  45. package/dist/esm/gx-ide-new-environment.entry.js +26 -3
  46. package/dist/esm/gx-ide-new-environment.entry.js.map +1 -1
  47. package/dist/esm/gx-ide-new-kb.entry.js +77 -44
  48. package/dist/esm/gx-ide-new-kb.entry.js.map +1 -1
  49. package/dist/esm/loader.js +1 -1
  50. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  51. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
  52. package/dist/genexus-ide-ui/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.en.json +0 -2
  53. package/dist/genexus-ide-ui/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.ja.json +0 -2
  54. package/dist/genexus-ide-ui/gx-ide-assets/create-kb-from-server/langs/create-kb-from-server.lang.zh.json +0 -2
  55. package/dist/genexus-ide-ui/gx-ide-assets/new-environment/langs/new-environment.lang.en.json +3 -1
  56. package/dist/genexus-ide-ui/gx-ide-assets/new-environment/langs/new-environment.lang.ja.json +3 -1
  57. package/dist/genexus-ide-ui/gx-ide-assets/new-environment/langs/new-environment.lang.zh.json +3 -1
  58. package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.en.json +9 -5
  59. package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.ja.json +7 -3
  60. package/dist/genexus-ide-ui/gx-ide-assets/new-kb/langs/new-kb.lang.zh.json +9 -5
  61. package/dist/genexus-ide-ui/{p-cf61384e.entry.js → p-2164c3a8.entry.js} +154 -167
  62. package/dist/genexus-ide-ui/p-2164c3a8.entry.js.map +1 -0
  63. package/dist/genexus-ide-ui/{p-7cd24b82.entry.js → p-806c5dcb.entry.js} +58 -47
  64. package/dist/genexus-ide-ui/p-806c5dcb.entry.js.map +1 -0
  65. package/dist/genexus-ide-ui/{p-5727fce7.entry.js → p-8f4af976.entry.js} +222 -184
  66. package/dist/genexus-ide-ui/p-8f4af976.entry.js.map +1 -0
  67. package/dist/genexus-ide-ui/{p-eeae9dd5.entry.js → p-95cf766b.entry.js} +401 -345
  68. package/dist/genexus-ide-ui/p-95cf766b.entry.js.map +1 -0
  69. package/dist/types/components/kb-manager-import/helpers.d.ts +1 -1
  70. package/dist/types/components/new-environment/new-environment.d.ts +8 -3
  71. package/dist/types/components/new-kb/new-kb.d.ts +5 -1
  72. package/dist/types/components/team-dev/create-kb-from-server/create-kb-from-server.d.ts +0 -1
  73. package/dist/types/components.d.ts +8 -0
  74. package/package.json +1 -1
  75. package/dist/genexus-ide-ui/p-5727fce7.entry.js.map +0 -1
  76. package/dist/genexus-ide-ui/p-7cd24b82.entry.js.map +0 -1
  77. package/dist/genexus-ide-ui/p-cf61384e.entry.js.map +0 -1
  78. package/dist/genexus-ide-ui/p-eeae9dd5.entry.js.map +0 -1
@@ -1,101 +1,117 @@
1
- import { r as t, g as e, h as i, H as s, a } from "./p-9b9ccd0c.js";
1
+ import { r as t, g as i, h as e, H as s, a } from "./p-9b9ccd0c.js";
2
2
 
3
- import { c as n } from "./p-c5196b3b.js";
3
+ import { g as n } from "./p-d42e842b.js";
4
4
 
5
- import { L as o } from "./p-311eedf3.js";
5
+ import "./p-6534555e.js";
6
6
 
7
- import { r, m as h } from "./p-4d330836.js";
7
+ import "lit";
8
8
 
9
- import { s as d, g as l } from "./p-91e2ebb0.js";
9
+ import "lit/directives/when.js";
10
10
 
11
- import { v as c } from "./p-b32b6b1f.js";
11
+ import "lit/directives/if-defined.js";
12
12
 
13
- import { r as f } from "./p-1252519a.js";
13
+ import { c as o } from "./p-c5196b3b.js";
14
14
 
15
- const u = 'button.button-secondary{border-color:var(--color-border-neutral-default)}:host{display:grid;block-size:100%;grid-template-rows:max-content 1fr max-content}.section{display:contents}.basic,.advanced{padding-block-start:16px;block-size:100%;overflow:auto}.advanced{padding-block-end:12px}.basic{display:grid;grid-template:"runtime-environment runtime-environment" max-content "back-end front-end" 1fr;grid-template-columns:1fr 1fr}.basic__runtime-environment{grid-area:runtime-environment;display:flex;flex-direction:column;align-items:center;gap:var(--spacing-gap-m)}.basic__runtime-environment.one-runtime-only{align-items:center;flex-direction:row;justify-content:center}.dialog-header__back-end,.dialog-header__front-end{padding-block-start:16px}.basic__back-end{grid-area:back-end}.basic__front-end{grid-area:front-end}.basic__back-end,.basic__front-end{display:grid;grid-template-rows:max-content 1fr;grid-auto-rows:max-content;overflow:auto}.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}.text-align-center{text-align:center}.tab::part(page){scrollbar-width:thin}.checkbox{inline-size:max-content}';
15
+ import { L as r } from "./p-311eedf3.js";
16
16
 
17
- var p = undefined && undefined.__classPrivateFieldGet || function(t, e, i, s) {
18
- if (i === "a" && !s) throw new TypeError("Private accessor was defined without a getter");
19
- if (typeof e === "function" ? t !== e || !s : !e.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
20
- return i === "m" ? s : i === "a" ? s.call(t) : s ? s.value : e.get(t);
17
+ import { r as l, m as d } from "./p-4d330836.js";
18
+
19
+ import { s as h, g as c } from "./p-91e2ebb0.js";
20
+
21
+ import { v as f } from "./p-b32b6b1f.js";
22
+
23
+ import { r as u } from "./p-1252519a.js";
24
+
25
+ const p = 'button.button-secondary{border-color:var(--color-border-neutral-default)}:host{display:grid;block-size:100%;grid-template-rows:max-content 1fr max-content}.section{display:contents}.basic,.advanced{padding-block-start:16px;block-size:100%;overflow:auto}.advanced{padding-block-end:12px}.basic{display:grid;grid-template:"runtime-environment runtime-environment" max-content "back-end front-end" 1fr;grid-template-columns:1fr 1fr}.basic__runtime-environment{grid-area:runtime-environment;display:flex;flex-direction:column;align-items:center;gap:var(--spacing-gap-m)}.basic__runtime-environment.one-runtime-only{align-items:center;flex-direction:row;justify-content:center}.dialog-header__back-end,.dialog-header__front-end{padding-block-start:16px}.basic__back-end{grid-area:back-end}.basic__front-end{grid-area:front-end}.basic__back-end,.basic__front-end{display:grid;grid-template-rows:max-content 1fr;grid-auto-rows:max-content;overflow:auto}.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}.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);margin-block-start:var(--spacing-gap-m)}.callout-inner{display:flex;flex-direction:column}.callout__title{display:flex;gap:var(--spacing-gap-xs)}.callout__description{color:var(--color-text-neutral-disabled)}.text-align-center{text-align:center}.tab::part(page){scrollbar-width:thin}.checkbox{inline-size:max-content}';
26
+
27
+ var b = undefined && undefined.__classPrivateFieldGet || function(t, i, e, s) {
28
+ if (e === "a" && !s) throw new TypeError("Private accessor was defined without a getter");
29
+ 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");
30
+ return e === "m" ? s : e === "a" ? s.call(t) : s ? s.value : i.get(t);
21
31
  };
22
32
 
23
- var b = undefined && undefined.__classPrivateFieldSet || function(t, e, i, s, a) {
33
+ var m = undefined && undefined.__classPrivateFieldSet || function(t, i, e, s, a) {
24
34
  if (s === "m") throw new TypeError("Private method is not writable");
25
35
  if (s === "a" && !a) throw new TypeError("Private accessor was defined without a setter");
26
- if (typeof e === "function" ? t !== e || !a : !e.has(t)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
27
- return s === "a" ? a.call(t, i) : a ? a.value = i : e.set(t, i), i;
36
+ 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");
37
+ return s === "a" ? a.call(t, e) : a ? a.value = e : i.set(t, e), e;
28
38
  };
29
39
 
30
- var m, g, v, w, k, y, _, x, M, W, C, j, E, S, z, I, T, F, L, P, A, D, H, R, V, q, B, G, J, K, N;
40
+ var g, v, w, k, y, _, x, M, W, j, C, E, S, T, z, I, F, L, P, A, D, H, R, V, q, B, G, J, K, N, O;
31
41
 
32
- const O = [
42
+ const Q = [
33
43
  // TODO: review if "utils/form--full" is required.
34
44
  "resets/box-sizing", "components/tab", "components/tooltip", "utils/form--full", "utils/layout", "utils/typography", "utils/spacing", "chameleon/scrollbar" ];
35
45
 
36
- const Q = "main";
46
+ const U = n({
47
+ category: "system",
48
+ name: "warning",
49
+ colorType: "on-interactive"
50
+ });
51
+
52
+ const X = "main";
37
53
 
38
- const U = "basic";
54
+ const Y = "basic";
39
55
 
40
- const X = "basic";
56
+ const Z = "basic";
41
57
 
42
- const Y = "advanced";
58
+ const $ = "advanced";
43
59
 
44
- const Z = class {
60
+ const tt = class {
45
61
  constructor(s) {
46
62
  t(this, s);
47
- m.set(this, false);
48
- g.set(this, void 0);
49
- v.set(this, false);
63
+ g.set(this, false);
64
+ v.set(this, void 0);
65
+ w.set(this, false);
50
66
  /**
51
67
  * frontEndsState saves the id's of the front ends checkboxes that are checked
52
68
  */
53
69
  // TODO (Use a set instead of an array to improve performance)
54
70
  // eslint-disable-next-line @stencil-community/own-props-must-be-private
55
- w.set(this, new Map);
56
- k.set(this, void 0);
71
+ k.set(this, new Map);
57
72
  y.set(this, void 0);
58
73
  _.set(this, void 0);
59
- x.set(this, e(`./gx-ide-assets/new-environment/shortcuts.json`));
60
- M.set(this, []);
74
+ x.set(this, void 0);
75
+ M.set(this, i(`./gx-ide-assets/new-environment/shortcuts.json`));
76
+ W.set(this, []);
61
77
  /**
62
78
  * The component hard-coded strings translations.
63
79
  */
64
80
  // eslint-disable-next-line @stencil-community/own-props-must-be-private
65
- W.set(this, void 0);
81
+ j.set(this, void 0);
66
82
  // References needed to collect data con "createCallback" button submit*/
67
83
  C.set(this, void 0);
68
- j.set(this, void 0);
69
84
  E.set(this, void 0);
70
85
  S.set(this, void 0);
86
+ T.set(this, void 0);
71
87
  z.set(this, (() => {
72
88
  /* the data store item id is used for the value (they are equal)*/
73
- b(this, k, p(this, C, "f").value, "f");
74
- p(this, B, "f").call(this);
89
+ m(this, y, b(this, C, "f").value, "f");
90
+ b(this, G, "f").call(this);
75
91
  }));
76
92
  I.set(this, (t => {
77
- const e = t.detail.trim();
78
- b(this, v, e !== this.environmentName, "f");
93
+ const i = t.detail.trim();
94
+ m(this, w, i !== this.environmentName, "f");
79
95
  }));
80
- T.set(this, (() => {
96
+ F.set(this, (() => {
81
97
  var t;
82
- b(this, _, (t = this.runtimes[0]) === null || t === void 0 ? void 0 : t.value, "f");
98
+ m(this, x, (t = this.runtimes[0]) === null || t === void 0 ? void 0 : t.value, "f");
83
99
  }));
84
100
  // TODO: We must avoid performing the get 3 times.
85
101
  // It is used on new-environment as well.
86
- F.set(this, (t => {
87
- var e, s, a;
88
- return ((s = (e = this.validatableControls) === null || e === void 0 ? void 0 : e.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) && i("ch-tooltip", {
102
+ L.set(this, (t => {
103
+ var i, s, a;
104
+ 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", {
89
105
  class: "tooltip",
90
106
  actionElement: t,
91
- blockAlign: n.tooltipSettings.blockAlign,
92
- inlineAlign: n.tooltipSettings.inlineAlign,
93
- delay: n.tooltipSettings.delay
107
+ blockAlign: o.tooltipSettings.blockAlign,
108
+ inlineAlign: o.tooltipSettings.inlineAlign,
109
+ delay: o.tooltipSettings.delay
94
110
  }, this.validatableControls.get(t.id).message);
95
111
  }));
96
- L.set(this, (() => {
112
+ P.set(this, (() => {
97
113
  // populate #controlsValidation with the controls that could have errors.
98
- const t = [ p(this, C, "f"), p(this, E, "f") ];
114
+ const t = [ b(this, C, "f"), b(this, S, "f") ];
99
115
  t.forEach((t => {
100
116
  if (t.id) {
101
117
  this.validatableControls.set(t.id, {
@@ -106,151 +122,172 @@ const Z = class {
106
122
  }
107
123
  }));
108
124
  }));
109
- P.set(this, (async t => {
110
- b(this, y, t.detail, "f");
111
- await p(this, q, "f").call(this);
112
- p(this, G, "f").call(this);
113
- p(this, B, "f").call(this);
125
+ A.set(this, (async t => {
126
+ m(this, _, t.detail, "f");
127
+ await b(this, B, "f").call(this);
128
+ b(this, J, "f").call(this);
129
+ b(this, G, "f").call(this);
114
130
  }));
115
- A.set(this, (() => i("slot", {
131
+ D.set(this, (() => e("slot", {
116
132
  name: "property-grid"
117
133
  })));
118
- D.set(this, (() => [ i("div", {
134
+ H.set(this, (() => [ e("div", {
119
135
  class: {
120
136
  "basic__runtime-environment": true,
121
137
  "dialog-header-with-border": true,
122
138
  "one-runtime-only": this.runtimes.length === 1
123
139
  }
124
- }, this.runtimes.length > 1 ? [ i("h2", {
140
+ }, this.runtimes.length > 1 ? [ e("h2", {
125
141
  // Runtime Environment
126
142
  class: "subtitle-regular-xs\t text-align-center"
127
- }, p(this, W, "f").runtime), i("ch-radio-group-render", {
143
+ }, b(this, j, "f").runtime), e("ch-radio-group-render", {
128
144
  class: "radio-group",
129
- onChange: p(this, H, "f"),
145
+ onChange: b(this, R, "f"),
130
146
  model: this.runtimesRadioGroupModel,
131
- value: p(this, _, "f")
132
- }) ] : [ i("h2", {
147
+ value: b(this, x, "f")
148
+ }) ] : [ e("h2", {
133
149
  class: "subtitle-regular-xs\t text-align-center"
134
- }, p(this, W, "f").runtime, ":"), i("p", null, this.runtimesRadioGroupModel[0].caption) ]), i("section", {
150
+ }, b(this, j, "f").runtime, ":"), e("p", null, this.runtimesRadioGroupModel[0].caption) ]), e("section", {
135
151
  class: "basic__back-end scrollable"
136
- }, i("h2", {
152
+ }, e("h2", {
137
153
  // back end
138
154
  class: "dialog-header dialog-header-with-border dialog-header__back-end subtitle-regular-xs\t text-align-center spacing-body-inline"
139
- }, p(this, W, "f").tabBasic.backEnd.backEndLabel), i("div", {
155
+ }, b(this, j, "f").tabBasic.backEnd.backEndLabel), e("div", {
140
156
  class: "field-group main__back-end spacing-body-inline scrollable"
141
- }, i("div", {
157
+ }, e("div", {
142
158
  // #language
143
159
  class: "field field-block"
144
- }, i("label", {
160
+ }, e("label", {
145
161
  class: "label",
146
162
  htmlFor: "language"
147
- }, p(this, W, "f").tabBasic.backEnd.language), i("ch-combo-box-render", {
163
+ }, b(this, j, "f").tabBasic.backEnd.language), e("ch-combo-box-render", {
148
164
  id: "language",
149
165
  class: "combo-box",
150
166
  part: "language",
151
- value: p(this, y, "f"),
167
+ value: b(this, _, "f"),
152
168
  disabled: this.languages.length === 0,
153
169
  model: this.languageComboBoxModel,
154
- onInput: p(this, P, "f"),
155
- ref: t => b(this, E, t, "f")
156
- }), p(this, F, "f").call(this, p(this, E, "f"))), i("div", {
170
+ onInput: b(this, A, "f"),
171
+ ref: t => m(this, S, t, "f")
172
+ }), b(this, L, "f").call(this, b(this, S, "f"))), e("div", {
157
173
  // #data stores
158
174
  class: "field field-block"
159
- }, i("label", {
175
+ }, e("label", {
160
176
  class: "label",
161
177
  htmlFor: "data-store"
162
- }, p(this, W, "f").tabBasic.backEnd.dataStores), i("ch-combo-box-render", {
178
+ }, b(this, j, "f").tabBasic.backEnd.dataStores), e("ch-combo-box-render", {
163
179
  id: "data-store",
164
180
  class: "combo-box",
165
181
  part: "data-store",
166
- value: p(this, k, "f"),
182
+ value: b(this, y, "f"),
167
183
  model: this.dataStoresComboBoxModel,
168
- onInput: p(this, z, "f"),
169
- ref: t => b(this, C, t, "f")
170
- }), p(this, F, "f").call(this, p(this, C, "f"))))), i("section", {
184
+ onInput: b(this, z, "f"),
185
+ ref: t => m(this, C, t, "f")
186
+ }), b(this, L, "f").call(this, b(this, C, "f"))))), e("section", {
171
187
  class: "basic__front-end scrollable"
172
- }, i("h2", {
188
+ }, e("h2", {
173
189
  // front end
174
190
  class: "dialog-header dialog-header-with-border dialog-header__front-end subtitle-regular-xs\t text-align-center spacing-body-inline"
175
- }, p(this, W, "f").tabBasic.frontEnd.frontEndLabel), i("div", {
191
+ }, b(this, j, "f").tabBasic.frontEnd.frontEndLabel), e("div", {
176
192
  class: "field-group front-end__checkboxes spacing-body-inline main__front-end scrollable",
177
193
  role: "group",
178
- "aria-labelledby": p(this, W, "f").tabBasic.frontEnd.generators
179
- }, r(this.frontEnds, p(this, K, "f"), p(this, w, "f").get(p(this, y, "f"))))) ]));
180
- H.set(this, (async t => {
181
- b(this, _, t.detail, "f");
182
- await p(this, J, "f").call(this);
183
- await p(this, q, "f").call(this);
184
- p(this, B, "f").call(this);
194
+ "aria-labelledby": b(this, j, "f").tabBasic.frontEnd.generators
195
+ }, l(this.frontEnds, b(this, N, "f"), b(this, k, "f").get(b(this, _, "f"))), this.isBackendOnly && e("div", {
196
+ class: "callout",
197
+ part: "backend-only-callout"
198
+ }, e("ch-image", {
199
+ class: "icon-l",
200
+ src: U,
201
+ type: "mask"
202
+ }), e("div", {
203
+ class: "callout-inner"
204
+ }, e("span", {
205
+ class: "callout__title body-semi-bold-s"
206
+ }, b(this, j, "f").tabBasic.frontEnd.backendOnlyCalloutTitle), e("span", {
207
+ class: "callout__description body-regular-xs"
208
+ }, b(this, j, "f").tabBasic.frontEnd.backendOnlyCalloutDescription))))) ]));
209
+ R.set(this, (async t => {
210
+ m(this, x, t.detail, "f");
211
+ await b(this, K, "f").call(this);
212
+ await b(this, B, "f").call(this);
213
+ b(this, G, "f").call(this);
185
214
  }));
186
- R.set(this, (async () => {
187
- var t, e;
188
- const i = (t = p(this, w, "f").get(p(this, y, "f"))) !== null && t !== void 0 ? t : [];
215
+ V.set(this, (async () => {
216
+ var t, i;
217
+ const e = (t = b(this, k, "f").get(b(this, _, "f"))) !== null && t !== void 0 ? t : [];
189
218
  this.createCallback({
190
- setAsCurrent: !!((e = p(this, S, "f")) === null || e === void 0 ? void 0 : e.value),
191
- name: p(this, j, "f").value,
192
- runtime: p(this, _, "f"),
193
- language: p(this, E, "f").value,
194
- dataStores: p(this, C, "f").value,
195
- frontEnds: i
219
+ setAsCurrent: !!((i = b(this, T, "f")) === null || i === void 0 ? void 0 : i.value),
220
+ name: b(this, E, "f").value,
221
+ runtime: b(this, x, "f"),
222
+ language: b(this, S, "f").value,
223
+ dataStores: b(this, C, "f").value,
224
+ frontEnds: e
196
225
  }).then((t => {
197
- this.validatableControls = c(t, this.validatableControls);
226
+ this.validatableControls = f(t, this.validatableControls);
198
227
  }));
199
228
  }));
200
- V.set(this, (t => {
201
- if (t.detail.newSelectedId === Y) {
229
+ q.set(this, (t => {
230
+ if (t.detail.newSelectedId === $) {
202
231
  this.advancedTabIsVisible = true;
203
232
  // Some logic for advanced tab is done on componentDidRender lifecycle,
204
233
  // since the reference to the elements is needed.
205
234
  }
206
235
  }));
207
- q.set(this, (async () => {
208
- const t = await this.getDataSourcesCallback(p(this, y, "f"), p(this, _, "f"));
236
+ B.set(this, (async () => {
237
+ const t = await this.getDataSourcesCallback(b(this, _, "f"), b(this, x, "f"));
209
238
  if ((t === null || t === void 0 ? void 0 : t.length) > 0) {
210
239
  this.dataStores = t;
211
240
  }
212
241
  }));
213
- B.set(this, (async () => {
214
- if (!p(this, v, "f")) {
215
- this.environmentName = await this.getEnvironmentNameCallback(p(this, y, "f"), p(this, k, "f"), p(this, _, "f"));
242
+ G.set(this, (async () => {
243
+ if (!b(this, w, "f")) {
244
+ this.environmentName = await this.getEnvironmentNameCallback(b(this, _, "f"), b(this, y, "f"), b(this, x, "f"));
216
245
  }
217
246
  }));
218
- G.set(this, (async () => {
219
- const t = await this.getFrontEndsCallback(p(this, y, "f"));
247
+ J.set(this, (async () => {
248
+ const t = await this.getFrontEndsCallback(b(this, _, "f"));
220
249
  if ((t === null || t === void 0 ? void 0 : t.length) > 0) {
221
250
  this.frontEnds = t;
251
+ // Seed the checked map from the data's checked property so that
252
+ // initially checked items render as checked on first load.
253
+ if (!b(this, k, "f").has(b(this, _, "f"))) {
254
+ const i = t.filter((t => t.checked)).map((t => t.value || t.id));
255
+ if (i.length > 0) {
256
+ b(this, k, "f").set(b(this, _, "f"), i);
257
+ }
258
+ }
222
259
  }
223
260
  }));
224
- J.set(this, (async () => {
225
- const t = await this.getLanguagesCallback(p(this, _, "f"));
261
+ K.set(this, (async () => {
262
+ const t = await this.getLanguagesCallback(b(this, x, "f"));
226
263
  if ((t === null || t === void 0 ? void 0 : t.length) > 0) {
227
264
  this.languages = t;
228
265
  }
229
266
  }));
230
- K.set(this, (t => {
231
- const e = t.target.checkedValue;
232
- const i = t.detail === e;
233
- p(this, N, "f").call(this, e, i);
267
+ N.set(this, (t => {
268
+ const i = t.target.checkedValue;
269
+ const e = t.detail === i;
270
+ b(this, O, "f").call(this, i, e);
234
271
  }));
235
272
  /**
236
273
  * This function updates frontEndsCheckedMap, that contains the checked
237
274
  * checkboxes for each language front ends.
238
275
  */
239
276
  // eslint-disable-next-line @stencil-community/own-props-must-be-private
240
- N.set(this, ((t, e) => {
241
- let i = p(this, w, "f").get(p(this, y, "f"));
242
- if (!i) {
277
+ O.set(this, ((t, i) => {
278
+ let e = b(this, k, "f").get(b(this, _, "f"));
279
+ if (!e) {
243
280
  // first time
244
- i = [];
245
- p(this, w, "f").set(p(this, y, "f"), i);
281
+ e = [];
282
+ b(this, k, "f").set(b(this, _, "f"), e);
246
283
  }
247
- if (e) {
284
+ if (i) {
248
285
  // update by adding
249
- i.push(t);
286
+ e.push(t);
250
287
  } else {
251
288
  // update by removing
252
- const e = i.findIndex((e => e === t));
253
- f(i, e);
289
+ const i = e.findIndex((i => i === t));
290
+ u(e, i);
254
291
  }
255
292
  }));
256
293
  this.advancedTabIsVisible = false;
@@ -266,30 +303,31 @@ const Z = class {
266
303
  this.getDataSourcesCallback = undefined;
267
304
  this.getEnvironmentNameCallback = undefined;
268
305
  this.getFrontEndsCallback = undefined;
269
- this.isAdvanced = false;
270
306
  this.languages = undefined;
307
+ this.isAdvanced = false;
308
+ this.isBackendOnly = false;
271
309
  this.getLanguagesCallback = undefined;
272
310
  this.runtimes = undefined;
273
311
  this.setAsTarget = true;
274
312
  }
275
313
  dataStoresChanged(t) {
276
314
  if (t === null || t === void 0 ? void 0 : t.length) {
277
- this.dataStoresComboBoxModel = h(t);
278
- const e = d(t, p(this, k, "f"));
279
- b(this, k, l(e), "f");
315
+ this.dataStoresComboBoxModel = d(t);
316
+ const i = h(t, b(this, y, "f"));
317
+ m(this, y, c(i), "f");
280
318
  }
281
319
  }
282
320
  languagesChanged(t) {
283
321
  if (t === null || t === void 0 ? void 0 : t.length) {
284
- this.languageComboBoxModel = h(t);
285
- b(this, y, l(t), "f");
286
- p(this, G, "f").call(this);
322
+ this.languageComboBoxModel = d(t);
323
+ m(this, _, c(t), "f");
324
+ b(this, J, "f").call(this);
287
325
  }
288
326
  }
289
327
  runtimesChanged(t) {
290
328
  if (t === null || t === void 0 ? void 0 : t.length) {
291
- this.runtimesRadioGroupModel = h(this.runtimes);
292
- p(this, J, "f").call(this);
329
+ this.runtimesRadioGroupModel = d(this.runtimes);
330
+ b(this, K, "f").call(this);
293
331
  }
294
332
  }
295
333
  connectedCallback() {
@@ -298,45 +336,45 @@ const Z = class {
298
336
  this.runtimesChanged(this.runtimes);
299
337
  }
300
338
  componentDidLoad() {
301
- p(this, L, "f").call(this);
339
+ b(this, P, "f").call(this);
302
340
  }
303
341
  componentDidRender() {
304
- if (this.advancedTabIsVisible && !p(this, m, "f")) {
342
+ if (this.advancedTabIsVisible && !b(this, g, "f")) {
305
343
  // just call this once.
306
- b(this, m, true, "f");
344
+ m(this, g, true, "f");
307
345
  }
308
346
  }
309
347
  async componentWillLoad() {
310
- b(this, W, await o.getComponentStrings(this.el), "f");
311
- b(this, M, [ {
312
- id: X,
313
- name: p(this, W, "f").tabBasic.tabLabel
348
+ m(this, j, await r.getComponentStrings(this.el), "f");
349
+ m(this, W, [ {
350
+ id: Z,
351
+ name: b(this, j, "f").tabBasic.tabLabel
314
352
  }, {
315
- id: Y,
316
- name: p(this, W, "f").tabAdvanced.tabLabel
353
+ id: $,
354
+ name: b(this, j, "f").tabAdvanced.tabLabel
317
355
  } ], "f");
318
- p(this, T, "f").call(this);
356
+ b(this, F, "f").call(this);
319
357
  }
320
358
  /**
321
359
  * Suspends or reactivates the shortcuts
322
360
  */ async suspendShortcuts(t) {
323
361
  if (t) {
324
- p(this, g, "f").suspend = true;
362
+ b(this, v, "f").suspend = true;
325
363
  } else {
326
- p(this, g, "f").suspend = false;
364
+ b(this, v, "f").suspend = false;
327
365
  }
328
366
  }
329
367
  render() {
330
- return i(s, {
368
+ return e(s, {
331
369
  class: "widget scrollable"
332
- }, i("ch-theme", {
333
- model: O
334
- }), i("ch-shortcuts", {
335
- src: p(this, x, "f"),
336
- ref: t => b(this, g, t, "f")
337
- }), i("section", {
370
+ }, e("ch-theme", {
371
+ model: Q
372
+ }), e("ch-shortcuts", {
373
+ src: b(this, M, "f"),
374
+ ref: t => m(this, v, t, "f")
375
+ }), e("section", {
338
376
  class: "section"
339
- }, i("header", {
377
+ }, e("header", {
340
378
  class: {
341
379
  header: true,
342
380
  "spacing-body-inline": true,
@@ -344,49 +382,49 @@ const Z = class {
344
382
  "dialog-header": this.isAdvanced,
345
383
  "dialog-header-with-border": !this.isAdvanced
346
384
  }
347
- }, i("div", {
385
+ }, e("div", {
348
386
  // #environment name
349
387
  class: "field field-inline"
350
- }, i("label", {
388
+ }, e("label", {
351
389
  class: "label",
352
390
  htmlFor: "environment-name"
353
- }, p(this, W, "f").name), i("ch-edit", {
391
+ }, b(this, j, "f").name), e("ch-edit", {
354
392
  // environment name
355
393
  autoFocus: true,
356
394
  id: "environment-name",
357
395
  class: "input",
358
396
  part: "environment-name",
359
397
  value: this.environmentName,
360
- placeholder: p(this, W, "f").environmentNamePlaceholder,
398
+ placeholder: b(this, j, "f").environmentNamePlaceholder,
361
399
  // TODO: toolTip={config.tooltip}
362
- ref: t => b(this, j, t, "f"),
363
- onInput: p(this, I, "f")
364
- }))), this.isAdvanced ? i("ch-tab-render", {
400
+ ref: t => m(this, E, t, "f"),
401
+ onInput: b(this, I, "f")
402
+ }))), this.isAdvanced ? e("ch-tab-render", {
365
403
  // main section
366
404
  class: {
367
405
  tab: true,
368
- [Q]: true
406
+ [X]: true
369
407
  },
370
408
  tabListPosition: "block-start",
371
- model: p(this, M, "f"),
372
- selectedId: X,
409
+ model: b(this, W, "f"),
410
+ selectedId: Z,
373
411
  overflow: "auto",
374
412
  contain: "size",
375
- onSelectedItemChange: !this.advancedTabIsVisible && p(this, V, "f")
376
- }, i("div", {
377
- slot: X,
378
- class: U,
413
+ onSelectedItemChange: !this.advancedTabIsVisible && b(this, q, "f")
414
+ }, e("div", {
415
+ slot: Z,
416
+ class: Y,
379
417
  part: "tab-button-basic"
380
- }, p(this, D, "f").call(this)), this.advancedTabIsVisible && i("div", {
381
- slot: Y,
418
+ }, b(this, H, "f").call(this)), this.advancedTabIsVisible && e("div", {
419
+ slot: $,
382
420
  class: "advanced spacing-body-inline",
383
421
  part: "tab-button-advanced"
384
- }, p(this, A, "f").call(this))) : i("div", {
422
+ }, b(this, D, "f").call(this))) : e("div", {
385
423
  // main section
386
- class: Q
387
- }, i("div", {
388
- class: U
389
- }, p(this, D, "f").call(this))), i("footer", {
424
+ class: X
425
+ }, e("div", {
426
+ class: Y
427
+ }, b(this, H, "f").call(this))), e("footer", {
390
428
  class: {
391
429
  "dialog-footer": this.isAdvanced,
392
430
  "dialog-footer-with-border": !this.isAdvanced,
@@ -394,27 +432,27 @@ const Z = class {
394
432
  "spacing-body-block-end": true,
395
433
  "spacing-body-inline": true
396
434
  }
397
- }, i("ch-checkbox", {
435
+ }, e("ch-checkbox", {
398
436
  // #set as current environment
399
437
  class: "checkbox",
400
- caption: p(this, W, "f").footer.setAsCurrentEnvironment,
401
- ref: t => b(this, S, t, "f"),
438
+ caption: b(this, j, "f").footer.setAsCurrentEnvironment,
439
+ ref: t => m(this, T, t, "f"),
402
440
  checkedValue: "current-environment",
403
441
  value: this.setAsTarget ? "current-environment" : "",
404
442
  part: "set-as-current-environment"
405
- }), i("div", {
443
+ }), e("div", {
406
444
  class: "buttons-spacer"
407
- }, i("button", {
445
+ }, e("button", {
408
446
  // #cancel
409
447
  class: "button-secondary",
410
448
  onClick: this.cancelCallback,
411
449
  part: "button button-cancel"
412
- }, p(this, W, "f").footer.btnCancel), i("button", {
450
+ }, b(this, j, "f").footer.btnCancel), e("button", {
413
451
  // #create
414
452
  class: "button-primary",
415
- onClick: p(this, R, "f"),
453
+ onClick: b(this, V, "f"),
416
454
  part: "button button-create"
417
- }, p(this, W, "f").footer.btnCreate)))));
455
+ }, b(this, j, "f").footer.btnCreate)))));
418
456
  }
419
457
  static get assetsDirs() {
420
458
  return [ "gx-ide-assets/new-environment" ];
@@ -431,15 +469,15 @@ const Z = class {
431
469
  }
432
470
  };
433
471
 
434
- m = new WeakMap, g = new WeakMap, v = new WeakMap, w = new WeakMap, k = new WeakMap,
435
- y = new WeakMap, _ = new WeakMap, x = new WeakMap, M = new WeakMap, W = new WeakMap,
436
- C = new WeakMap, j = new WeakMap, E = new WeakMap, S = new WeakMap, z = new WeakMap,
437
- I = new WeakMap, T = new WeakMap, F = new WeakMap, L = new WeakMap, P = new WeakMap,
438
- A = new WeakMap, D = new WeakMap, H = new WeakMap, R = new WeakMap, V = new WeakMap,
439
- q = new WeakMap, B = new WeakMap, G = new WeakMap, J = new WeakMap, K = new WeakMap,
440
- N = new WeakMap;
472
+ g = new WeakMap, v = new WeakMap, w = new WeakMap, k = new WeakMap, y = new WeakMap,
473
+ _ = new WeakMap, x = new WeakMap, M = new WeakMap, W = new WeakMap, j = new WeakMap,
474
+ C = new WeakMap, E = new WeakMap, S = new WeakMap, T = new WeakMap, z = new WeakMap,
475
+ I = new WeakMap, F = new WeakMap, L = new WeakMap, P = new WeakMap, A = new WeakMap,
476
+ D = new WeakMap, H = new WeakMap, R = new WeakMap, V = new WeakMap, q = new WeakMap,
477
+ B = new WeakMap, G = new WeakMap, J = new WeakMap, K = new WeakMap, N = new WeakMap,
478
+ O = new WeakMap;
441
479
 
442
- Z.style = u;
480
+ tt.style = p;
443
481
 
444
- export { Z as gx_ide_new_environment };
445
- //# sourceMappingURL=p-5727fce7.entry.js.map
482
+ export { tt as gx_ide_new_environment };
483
+ //# sourceMappingURL=p-8f4af976.entry.js.map