@genexus/genexus-ide-ui 1.1.7 → 1.1.8

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 (31) hide show
  1. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  2. package/dist/cjs/gx-ide-deployment-tool.cjs.entry.js +61 -20
  3. package/dist/cjs/gx-ide-deployment-tool.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +1 -1
  5. package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js.map +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/components/deployment-tool/deployment-tool.js +78 -20
  8. package/dist/collection/components/deployment-tool/deployment-tool.js.map +1 -1
  9. package/dist/collection/components/team-dev/update/update.js +1 -1
  10. package/dist/collection/components/team-dev/update/update.js.map +1 -1
  11. package/dist/components/gx-ide-deployment-tool.js +62 -20
  12. package/dist/components/gx-ide-deployment-tool.js.map +1 -1
  13. package/dist/components/gx-ide-team-dev-update.js +1 -1
  14. package/dist/components/gx-ide-team-dev-update.js.map +1 -1
  15. package/dist/esm/genexus-ide-ui.js +1 -1
  16. package/dist/esm/gx-ide-deployment-tool.entry.js +61 -20
  17. package/dist/esm/gx-ide-deployment-tool.entry.js.map +1 -1
  18. package/dist/esm/gx-ide-team-dev-update.entry.js +1 -1
  19. package/dist/esm/gx-ide-team-dev-update.entry.js.map +1 -1
  20. package/dist/esm/loader.js +1 -1
  21. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  22. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
  23. package/dist/genexus-ide-ui/{p-3085add2.entry.js → p-03dbccde.entry.js} +193 -160
  24. package/dist/genexus-ide-ui/p-03dbccde.entry.js.map +1 -0
  25. package/dist/genexus-ide-ui/{p-036d005d.entry.js → p-75a5c51f.entry.js} +2 -2
  26. package/dist/genexus-ide-ui/p-75a5c51f.entry.js.map +1 -0
  27. package/dist/types/components/deployment-tool/deployment-tool.d.ts +5 -0
  28. package/dist/types/components.d.ts +8 -0
  29. package/package.json +1 -1
  30. package/dist/genexus-ide-ui/p-036d005d.entry.js.map +0 -1
  31. package/dist/genexus-ide-ui/p-3085add2.entry.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { r as e, c as t, h as a, H as i, a as r } from "./p-25a9f1d7.js";
1
+ import { r as t, c as e, h as a, H as i, a as r } from "./p-25a9f1d7.js";
2
2
 
3
3
  import { L as o } from "./p-311eedf3.js";
4
4
 
@@ -6,23 +6,23 @@ const s = "type";
6
6
 
7
7
  const n = "object";
8
8
 
9
- const convertObjectDataToTreeItem = (e, t) => t.map((t => ({
10
- id: t.id,
11
- caption: t.name,
12
- startImgSrc: e,
9
+ const convertObjectDataToTreeItem = (t, e) => e.map((e => ({
10
+ id: e.id,
11
+ caption: e.name,
12
+ startImgSrc: t,
13
13
  expanded: true,
14
14
  leaf: true,
15
15
  metadata: n
16
16
  })));
17
17
 
18
- const convertObjectTypeDataToTreeView = e => {
19
- const t = [];
20
- if (!e) {
21
- return t;
18
+ const convertObjectTypeDataToTreeView = t => {
19
+ const e = [];
20
+ if (!t) {
21
+ return e;
22
22
  }
23
- for (const a of e) {
23
+ for (const a of t) {
24
24
  if (a.items.length > 0) {
25
- t.push({
25
+ e.push({
26
26
  id: a.id,
27
27
  caption: a.name,
28
28
  startImgSrc: a.icon,
@@ -33,16 +33,16 @@ const convertObjectTypeDataToTreeView = e => {
33
33
  });
34
34
  }
35
35
  }
36
- return t;
36
+ return e;
37
37
  };
38
38
 
39
- const createArrayOfItems = (e, t) => {
39
+ const createArrayOfItems = (t, e) => {
40
40
  // The resulting array with 'items' property added to each type
41
- const a = t.map((t => {
41
+ const a = e.map((e => {
42
42
  // Filter objects that match the current type id
43
- const a = e.filter((e => e.type === t.id));
43
+ const a = t.filter((t => t.type === e.id));
44
44
  // Return a new object type with the 'items' property
45
- return Object.assign(Object.assign({}, t), {
45
+ return Object.assign(Object.assign({}, e), {
46
46
  items: a
47
47
  });
48
48
  }));
@@ -52,34 +52,38 @@ const createArrayOfItems = (e, t) => {
52
52
 
53
53
  const l = ':root{--ui-animaton-speed:0.2s}.gxg-title-01{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-01-font-weight);font-size:var(--ds-title-01-font-size);letter-spacing:var(--ds-base-font-letter-spacing--comfortable);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-01--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-01-font-weight);font-size:var(--ds-title-01-font-size);letter-spacing:var(--ds-base-font-letter-spacing--comfortable);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-title-02{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-02-font-weight);font-size:var(--ds-title-02-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;text-transform:uppercase;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-02--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-02-font-weight);font-size:var(--ds-title-02-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;text-transform:uppercase;line-height:var(--ds-base-font-line-height--comfortable);color:var(--color-on-primary)}.gxg-title-03{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-03-font-weight);font-size:var(--ds-title-03-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;text-transform:uppercase;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-03--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-03-font-weight);font-size:var(--ds-title-03-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;text-transform:uppercase;line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-title-04{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-04-font-weight);font-size:var(--ds-title-04-font-size);letter-spacing:var(--ds-base-font-letter-spacing--comfortable);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-04--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-04-font-weight);font-size:var(--ds-title-04-font-size);letter-spacing:var(--ds-base-font-letter-spacing--comfortable);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-title-05{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-05-font-weight);font-size:var(--ds-title-05-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable)}.gxg-title-05--negative{font-family:var(--ds-base-font-family-primary);font-weight:var(--ds-title-05-font-weight);font-size:var(--ds-title-05-font-size);letter-spacing:var(--ds-base-font-letter-spacing--regular);color:var(--ds-base-font-color);text-align:start;line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-text{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable)}.gxg-text--negative{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--negative)}.gxg-text--gray{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--dimmed)}.gxg-quote{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);font-style:italic}.gxg-quote--negative{color:var(--ds-base-font-color--negative)}.gxg-link{line-height:unset;font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--link);text-decoration:underline;cursor:pointer;display:inline-block}.gxg-link:hover{color:var(--ds-base-font-color--link-hover)}.gxg-link:active{color:var(--ds-base-font-color--link-active)}.gxg-link-gray{line-height:unset;font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--link);text-decoration:underline;cursor:pointer;display:inline-block;color:var(--ds-base-font-color--dimmed)}.gxg-link-gray:hover{line-height:unset;font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--link);text-decoration:underline;cursor:pointer;display:inline-block;color:var(--ds-base-font-color--dimmed);filter:brightness(1.4)}.gxg-alert-error{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--error);display:inline-block}.gxg-alert-warning{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--warning);display:inline-block}.gxg-alert-success{font-family:var(--ds-base-font-family-primary);font-size:var(--ds-base-font-size);color:var(--ds-base-font-size-color);font-weight:var(--ds-base-font-size-weight);line-height:var(--ds-base-font-line-height--comfortable);color:var(--ds-base-font-color--success);display:inline-block}.gxg-tab--disabled{color:var(--color-primary-disabled);pointer-events:none}.gxg-tab--disabled[disabled]{color:var(--color-primary-disabled);pointer-events:none}.gxg-label{font-family:var(--ds-base-font-family-primary);font-weight:var(--gxg-label-font-weight);font-size:var(--gxg-label-font-size);color:var(--gxg-label-color);text-align:center;line-height:1.455em;display:flex;align-items:center}.gxg-label:hover{color:var(--color-primary-hover)}.gxg-label:focus{color:var(--color-primary-active)}.gxg-label:active{color:var(--color-primary-active)}.gxg-label[disabled]{color:var(--color-primary-disabled)}.gxg-label--negative{color:var(--color-on-primary)}.gxg-label--negative[disabled]{color:var(--color-on-disabled)}.gxg-scrollbar{}.gxg-scrollbar::-webkit-scrollbar{width:var(--gxg-scrollbar-width);height:var(--gxg-scrollbar-width)}.gxg-scrollbar::-webkit-scrollbar-track{background-color:var(--gxg-scrollbar-track-background);border-radius:var(--gxg-scrollbar-track-border-radius)}.gxg-scrollbar::-webkit-scrollbar-thumb{background-color:var(--gxg-scrollbar-track-thumb-background);border-radius:var(--gxg-scrollbar-track-thumb-radius)}.gxg-scrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--gxg-scrollbar-track-thumb-hover-background)}.gxg-scrollbar::-webkit-scrollbar-corner{background:rgba(0, 0, 0, 0)}:host{display:grid;block-size:100%}.card-regular{background-color:var(--mer-surface__elevation--01);border:var(--mer-border__width--sm) solid var(--mer-border-color__on-elevation--01);border-radius:var(--mer-border__radius--md);padding:var(--mer-spacing--md) var(--mer-spacing--md);display:grid}.card-small{background-color:var(--mer-surface__elevation--02);border-radius:var(--mer-border__radius--sm);padding:var(--mer-spacing--sm) var(--mer-spacing--sm)}.card-small--actionable:hover{background-color:var(--mer-color__neutral-gray--600)}.card-small--actionable:active{background-color:var(--mer-color__neutral-gray--650)}.card-small:focus-visible{outline:var(--focus__outline-width) var(--focus__outline-style) var(--focus__outline-color);outline-offset:var(--focus__outline-offset)}.empty-state{block-size:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:var(--mer-spacing--sm);text-align:center}.empty-state__title,.empty-state__button,.empty-state__link{max-inline-size:300px}.opacity-0{opacity:0}.opacity-1{opacity:1}.display-contents{display:contents}.pill-tag{padding:1px 4px;border-radius:2px;min-inline-size:40px;text-align:center;margin-inline-end:10px;font-size:11px}.gxi-hidden{display:none !important}.gxi-full-height{height:100%}.gxi-overflow-auto{overflow:auto}.gxi-display-flex{display:flex}.align-start{display:flex;align-items:start}.align-center{display:flex;align-items:center}.align-end{display:flex;align-items:end}.overflow-auto{overflow:auto}.justify-start{display:flex;justify-content:start}.justify-center{display:flex;justify-content:center}.justify-end{display:flex;justify-content:end}.grid{display:grid;grid-row-gap:var(--gx-ide-grid-row-gap);grid-column-gap:var(--gx-ide-grid-column-gap);grid-template-rows:auto}ch-grid-cell{display:flex}ch-grid{overflow:auto;height:100%}ch-grid-column{z-index:99;border-bottom:1px solid var(--mer-color__neutral-gray--800)}ch-grid-column:first-child{padding-inline-start:var(--gx-ide-container__padding) !important}ch-grid-column:last-child{padding-inline-end:var(--gx-ide-container__padding) !important}ch-grid-cell{--mer-spacing--xs:var(--gx-ide-container__padding)}.layout{display:grid;gap:var(--mer-spacing--lg);box-sizing:border-box}.layout--two-cols{grid-template-columns:1fr 1fr}.layout--space-above{padding-block-start:var(--mer-spacing--lg)}gxg-tabs{box-shadow:none}:host(.gx-ide-component){height:100% !important;display:flex !important;flex-direction:column !important}:host(:focus-within) gx-ide-top-bar::part(wrapper){background-color:var(--color-secondary-enabled)}.gx-ide-main-wrapper{color:var(--gx-ide-component-text-color);font-weight:var(--mer-font__weight--regular);font-size:var(--mer-font__size--xs);font-family:var(--mer-font-family--primary);height:100%;background-color:var(--gx-ide-component-background-color);display:flex;flex-direction:column;flex-grow:1;box-sizing:border-box}.gx-ide-main{flex-grow:1;overflow-y:auto;}.gx-ide-main::-webkit-scrollbar{width:var(--gxg-scrollbar-width);height:var(--gxg-scrollbar-width)}.gx-ide-main::-webkit-scrollbar-track{background-color:var(--gxg-scrollbar-track-background);border-radius:var(--gxg-scrollbar-track-border-radius)}.gx-ide-main::-webkit-scrollbar-thumb{background-color:var(--gxg-scrollbar-track-thumb-background);border-radius:var(--gxg-scrollbar-track-thumb-radius)}.gx-ide-main::-webkit-scrollbar-thumb:hover{background-color:var(--gxg-scrollbar-track-thumb-hover-background)}.gx-ide-main::-webkit-scrollbar-corner{background:rgba(0, 0, 0, 0)}.gx-ide-overflow{overflow-y:auto;}.gx-ide-overflow::-webkit-scrollbar{width:var(--gxg-scrollbar-width);height:var(--gxg-scrollbar-width)}.gx-ide-overflow::-webkit-scrollbar-track{background-color:var(--gxg-scrollbar-track-background);border-radius:var(--gxg-scrollbar-track-border-radius)}.gx-ide-overflow::-webkit-scrollbar-thumb{background-color:var(--gxg-scrollbar-track-thumb-background);border-radius:var(--gxg-scrollbar-track-thumb-radius)}.gx-ide-overflow::-webkit-scrollbar-thumb:hover{background-color:var(--gxg-scrollbar-track-thumb-hover-background)}.gx-ide-overflow::-webkit-scrollbar-corner{background:rgba(0, 0, 0, 0)}.tree-view-primary{font-size:var(--mer-font__size--2xs)}p{margin:0;font-size:var(--mer-font__size--xxs)}.buttons-container{display:flex;gap:var(--mer-spacing--xs)}:host{display:grid;block-size:100%;grid-template-rows:max-content 1fr max-content}.header{display:grid;padding:var(--gxg-container--padding);gap:var(--gx-ide-grid-column-gap);grid-template-columns:1fr auto;margin-block-end:var(--gx-ide-grid-row-gap)}.header :nth-child(2){align-self:self-end}.deploy-properties{display:grid;grid-auto-rows:max-content;grid-template-columns:max-content 1fr max-content;grid-template-areas:"target-types__label target-types__combo-box target-types__button-checkbox-container" "application-server__label application-server__combo-box ." ". target-type__description ." "display-name__label display-name__combo-box .";align-items:center;column-gap:var(--field__column-gap);row-gap:var(--field-group__row-gap);border-block-start:var(--section-common-border);padding-block-start:var(--mer-spacing--md)}.label.target-types{grid-area:target-types__label}#target-types{grid-area:target-types__combo-box}.target-types-button-checkbox-wrapper{grid-area:target-types__button-checkbox-container}.label.application-server{grid-area:application-server__label}#application-server{grid-area:application-server__combo-box}.target-type__description{grid-area:target-type__description}.label.display-name{grid-area:display-name__label}#display-name{grid-area:display-name__combo-box}.footer{margin-block-start:var(--gx-ide-grid-row-gap)}';
54
54
 
55
- var d = undefined && undefined.__classPrivateFieldGet || function(e, t, a, i) {
55
+ var d = undefined && undefined.__classPrivateFieldGet || function(t, e, a, i) {
56
56
  if (a === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
57
- if (typeof t === "function" ? e !== t || !i : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
58
- return a === "m" ? i : a === "a" ? i.call(e) : i ? i.value : t.get(e);
57
+ if (typeof e === "function" ? t !== e || !i : !e.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
58
+ return a === "m" ? i : a === "a" ? i.call(t) : i ? i.value : e.get(t);
59
59
  };
60
60
 
61
- var c = undefined && undefined.__classPrivateFieldSet || function(e, t, a, i, r) {
61
+ var c = undefined && undefined.__classPrivateFieldSet || function(t, e, a, i, r) {
62
62
  if (i === "m") throw new TypeError("Private method is not writable");
63
63
  if (i === "a" && !r) throw new TypeError("Private accessor was defined without a setter");
64
- if (typeof t === "function" ? e !== t || !r : !t.has(e)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
65
- return i === "a" ? r.call(e, a) : r ? r.value = a : t.set(e, a), a;
64
+ if (typeof e === "function" ? t !== e || !r : !e.has(t)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
65
+ return i === "a" ? r.call(t, a) : r ? r.value = a : e.set(t, a), a;
66
66
  };
67
67
 
68
- var g, f, h, b, v, p, m, u, y, x, w, k, _, z, M, W, j, T, C, I, D, E, H, O, S, L, P, F, q, R, A;
68
+ var f, g, h, b, v, p, m, u, y, x, w, k, _, z, M, W, j, C, T, I, D, E, H, O, S, L, P, F, q, R, V, A, G, N;
69
69
 
70
- const G = [ "resets/box-sizing", "utils/form", "utils/layout", "utils/typography", "components/button", "components/checkbox", "components/edit", "components/tree-view", "components/combo-box", "components/icon", "utils/spacing" ];
70
+ const U = [ "resets/box-sizing", "utils/form", "utils/layout", "utils/typography", "components/button", "components/checkbox", "components/edit", "components/tree-view", "components/combo-box", "components/icon", "utils/spacing" ];
71
71
 
72
- const N = class {
72
+ const $ = "true";
73
+
74
+ const B = "false";
75
+
76
+ const J = class {
73
77
  constructor(i) {
74
- e(this, i);
75
- this.componentDidLoadEvent = t(this, "componentDidLoadEvent", 7);
76
- this.componentDidRenderFirstTime = t(this, "componentDidRenderFirstTime", 7);
77
- g.add(this);
78
+ t(this, i);
79
+ this.componentDidLoadEvent = e(this, "componentDidLoadEvent", 7);
80
+ this.componentDidRenderFirstTime = e(this, "componentDidRenderFirstTime", 7);
81
+ f.add(this);
78
82
  /**
79
83
  * The component hard-coded strings translations.
80
84
  */
81
85
  // eslint-disable-next-line @stencil-community/own-props-must-be-private
82
- f.set(this, void 0);
86
+ g.set(this, void 0);
83
87
  h.set(this, false);
84
88
  b.set(this, new Map);
85
89
  v.set(this, void 0);
@@ -90,96 +94,121 @@ const N = class {
90
94
  x.set(this, void 0);
91
95
  w.set(this, void 0);
92
96
  k.set(this, (() => {
93
- var e;
94
- this.noObjects = !!(((e = this.treeModel) === null || e === void 0 ? void 0 : e.length) === 0 || !this.treeModel);
97
+ if (this.defaultTargetTypeId) {
98
+ const t = this.targetTypes.find((t => t.id === this.defaultTargetTypeId));
99
+ if (t) {
100
+ return t;
101
+ }
102
+ }
103
+ return this.targetTypes[0];
104
+ }));
105
+ _.set(this, (() => {
106
+ var t;
107
+ this.noObjects = !!(((t = this.treeModel) === null || t === void 0 ? void 0 : t.length) === 0 || !this.treeModel);
95
108
  }));
96
- _.set(this, (async e => {
97
- await d(this, z, "f").call(this, e.detail);
98
- d(this, W, "f").call(this);
109
+ z.set(this, (async t => {
110
+ await d(this, M, "f").call(this, t.detail);
111
+ d(this, j, "f").call(this);
99
112
  }));
100
- z.set(this, (async e => {
101
- if (e === this.newDeploymentUnitId) {
102
- await d(this, M, "f").call(this);
113
+ M.set(this, (async t => {
114
+ if (t === this.newDeploymentUnitId) {
115
+ // New deployment unit should be created before executing the deploy action.
103
116
  return;
104
117
  }
105
- c(this, v, e, "f");
106
- const t = await this.getDeploymentUnitObjectsCallback(e);
107
- this.addedObjects = [ ...t ];
118
+ c(this, v, t, "f");
119
+ const e = await this.getDeploymentUnitObjectsCallback(t);
120
+ this.addedObjects = [ ...e ];
108
121
  this.treeModel = createArrayOfItems(this.addedObjects, this.allObjectTypes);
109
122
  }));
110
- M.set(this, (async () => {
123
+ W.set(this, (async () => {
111
124
  if (this.createDeploymentUnitCallback) {
112
- const e = await this.createDeploymentUnitCallback();
113
- if (!e) {
125
+ const t = await this.createDeploymentUnitCallback();
126
+ if (!t) {
114
127
  return;
115
128
  }
116
- // Update deployment units:
117
- this.deploymentUnits.unshift(e);
118
- // Update combo:
119
- const t = d(this, O, "f").call(this, [ e ]);
120
- d(this, x, "f").model = t.concat(d(this, x, "f").model);
121
- d(this, x, "f").value = e.id;
129
+ if (!this.deploymentUnits.find((e => e.id === t.id))) {
130
+ // Update deployment units:
131
+ this.deploymentUnits.unshift(t);
132
+ // Update combo:
133
+ const e = d(this, P, "f").call(this, t);
134
+ const a = [ e, ...d(this, x, "f").model ];
135
+ d(this, x, "f").model = a;
136
+ }
137
+ d(this, x, "f").value = t.id;
122
138
  // Trigger selection callback:
123
- await d(this, z, "f").call(this, e.id);
139
+ await d(this, M, "f").call(this, t.id);
124
140
  }
125
141
  }));
126
- W.set(this, (() => {
142
+ j.set(this, (() => {
127
143
  if (this.optionsCallback) {
128
144
  this.optionsCallback(d(this, x, "f").value, d(this, m, "f").value);
129
145
  }
130
146
  }));
131
- j.set(this, (() => {
132
- const e = [ ...this.allObjectTypes ];
133
- this.addedObjects.forEach((t => {
134
- const a = this.allObjectTypes.find((e => e.id === t.type));
147
+ C.set(this, (() => {
148
+ const t = [ ...this.allObjectTypes ];
149
+ this.addedObjects.forEach((e => {
150
+ const a = this.allObjectTypes.find((t => t.id === e.type));
135
151
  if (!a) {
136
- e.push({
137
- id: t.type,
138
- name: t.type,
152
+ t.push({
153
+ id: e.type,
154
+ name: e.type,
139
155
  icon: ""
140
156
  });
141
157
  }
142
158
  }));
143
- this.allObjectTypes = [ ...e ];
159
+ this.allObjectTypes = [ ...t ];
144
160
  }));
145
161
  T.set(this, (async () => {
146
162
  if (this.addObjectsCallback) {
147
- const e = await this.addObjectsCallback();
148
- this.addedObjects = [ ...e, ...this.addedObjects ];
149
- d(this, j, "f").call(this);
163
+ const t = await this.addObjectsCallback();
164
+ this.addedObjects = [ ...t, ...this.addedObjects ];
165
+ d(this, C, "f").call(this);
150
166
  this.treeModel = createArrayOfItems(this.addedObjects, this.allObjectTypes);
151
167
  }
152
168
  }));
153
- C.set(this, (async () => {
154
- var e, t, a;
155
- const i = {
169
+ I.set(this, (async () => {
170
+ var t, e;
171
+ if (d(this, x, "f").value === this.newDeploymentUnitId) {
172
+ await d(this, W, "f").call(this);
173
+ }
174
+ const a = {
156
175
  targetId: d(this, m, "f").value,
157
- applicationServerId: (e = d(this, u, "f")) === null || e === void 0 ? void 0 : e.value,
176
+ applicationServerId: d(this, D, "f").call(this),
158
177
  displayName: (t = d(this, w, "f")) === null || t === void 0 ? void 0 : t.value,
159
- generatorId: (a = d(this, y, "f")) === null || a === void 0 ? void 0 : a.value,
160
- onlyPackage: d(this, p, "f") ? d(this, p, "f").value === "true" : undefined,
178
+ generatorId: (e = d(this, y, "f")) === null || e === void 0 ? void 0 : e.value,
179
+ onlyPackage: d(this, p, "f") ? d(this, p, "f").value === $ : undefined,
161
180
  objects: this.checkedObjectsIds
162
181
  };
163
182
  if (this.deployCallback) {
164
183
  this.allowDeploy = false;
165
- await this.deployCallback(i);
184
+ await this.deployCallback(a);
166
185
  this.allowDeploy = true;
167
186
  }
168
187
  }));
169
- I.set(this, (e => {
170
- const t = e.detail;
171
- this.selectedDeployTargetData = this.targetTypes.find((e => e.id === t)) || null;
172
- d(this, W, "f").call(this);
188
+ D.set(this, (() => {
189
+ var t, e, a;
190
+ if ((t = d(this, u, "f")) === null || t === void 0 ? void 0 : t.value) {
191
+ return d(this, u, "f").value;
192
+ }
193
+ return ((e = this.selectedDeployTargetData) === null || e === void 0 ? void 0 : e.applicationServers.length) > 0 ? (a = this.selectedDeployTargetData) === null || a === void 0 ? void 0 : a.applicationServers[0].id : undefined;
194
+ }));
195
+ E.set(this, (t => {
196
+ const e = t.detail;
197
+ this.selectedDeployTargetData = this.targetTypes.find((t => t.id === e)) || null;
198
+ if (!this.selectedDeployTargetData.canCreatePackage && d(this, p, "f").value === $) {
199
+ d(this, p, "f").value = B;
200
+ }
201
+ d(this, j, "f").call(this);
173
202
  }));
174
- E.set(this, (e => {
175
- const t = [ ...e.detail.values() ];
176
- this.checkedObjectsIds = t.filter((e => e.item.checked && e.item.metadata === n)).map((e => e.item.id));
203
+ O.set(this, (t => {
204
+ const e = [ ...t.detail.values() ];
205
+ this.checkedObjectsIds = e.filter((t => t.item.checked && t.item.metadata === n)).map((t => t.item.id));
177
206
  }));
178
- H.set(this, (() => {
207
+ S.set(this, (() => {
179
208
  if (this.noObjects) {
180
209
  return a("gx-ide-empty-state", {
181
210
  isAnimated: false,
182
- stateTitle: d(this, f, "f").main.noObjectsToDisplay,
211
+ stateTitle: d(this, g, "f").main.noObjectsToDisplay,
183
212
  key: "no-objects-empty-state",
184
213
  stateIconSrc: "objects/object"
185
214
  });
@@ -193,118 +222,121 @@ const N = class {
193
222
  showLines: "last",
194
223
  checked: true,
195
224
  checkbox: true,
196
- onCheckedItemsChange: d(this, E, "f")
225
+ onCheckedItemsChange: d(this, O, "f")
197
226
  });
198
227
  }));
199
- O.set(this, (e => e.map((e => ({
200
- caption: e.name,
201
- value: e.id
202
- })))));
203
- S.set(this, ((e, t = false) => {
228
+ L.set(this, (t => t.map((t => d(this, P, "f").call(this, t)))));
229
+ P.set(this, (t => ({
230
+ caption: t.name,
231
+ value: t.id
232
+ })));
233
+ F.set(this, ((t, e = false) => {
204
234
  var i;
205
- const r = e.label.replace(/ /g, "-").toLowerCase();
235
+ const r = t.label.replace(/ /g, "-").toLowerCase();
206
236
  const o = `label ${r}`;
207
237
  const s = [ a("label", {
208
238
  class: o,
209
239
  htmlFor: r
210
- }, e.label), a("ch-combo-box-render", {
240
+ }, t.label), a("ch-combo-box-render", {
211
241
  class: "combo-box",
212
- value: e.value ? e.value : (i = e.baseModel[0]) === null || i === void 0 ? void 0 : i.id,
213
- model: d(this, O, "f").call(this, e.baseModel),
242
+ value: t.value ? t.value : (i = t.baseModel[0]) === null || i === void 0 ? void 0 : i.id,
243
+ model: d(this, L, "f").call(this, t.baseModel),
214
244
  id: r,
215
- ref: e.refCallback,
216
- onInput: e.onInputCallback
245
+ ref: t.refCallback,
246
+ onInput: t.onInputCallback
217
247
  }) ];
218
- return t ? a("div", {
248
+ return e ? a("div", {
219
249
  class: "field field-inline"
220
250
  }, s) : s;
221
251
  }));
222
- L.set(this, (() => a("div", {
252
+ q.set(this, (() => a("div", {
223
253
  slot: "header",
224
254
  class: "header control-header-with-border"
225
- }, d(this, S, "f").call(this, {
255
+ }, d(this, F, "f").call(this, {
226
256
  id: "deploymentUnits",
227
257
  baseModel: this.deploymentUnits,
228
- label: d(this, f, "f").header.objectsToDeploy,
258
+ label: d(this, g, "f").header.objectsToDeploy,
229
259
  value: d(this, v, "f"),
230
- refCallback: e => {
231
- c(this, x, e, "f");
260
+ refCallback: t => {
261
+ c(this, x, t, "f");
232
262
  },
233
- onInputCallback: d(this, _, "f")
263
+ onInputCallback: d(this, z, "f")
234
264
  }, true), a("button", {
235
265
  class: "button-primary",
236
266
  onClick: d(this, T, "f")
237
- }, d(this, f, "f").main.addButton))));
238
- P.set(this, (() => {
239
- var e;
240
- return d(this, S, "f").call(this, {
267
+ }, d(this, g, "f").main.addButton))));
268
+ R.set(this, (() => {
269
+ var t;
270
+ return d(this, F, "f").call(this, {
241
271
  id: "application-servers",
242
- baseModel: (e = this.selectedDeployTargetData) === null || e === void 0 ? void 0 : e.applicationServers,
243
- label: d(this, f, "f").main.applicationServer,
244
- refCallback: e => {
245
- c(this, u, e, "f");
272
+ baseModel: (t = this.selectedDeployTargetData) === null || t === void 0 ? void 0 : t.applicationServers,
273
+ label: d(this, g, "f").main.applicationServer,
274
+ refCallback: t => {
275
+ c(this, u, t, "f");
246
276
  }
247
277
  });
248
278
  }));
249
- F.set(this, (() => {
250
- var e;
251
- return d(this, S, "f").call(this, {
279
+ V.set(this, (() => {
280
+ var t;
281
+ return d(this, F, "f").call(this, {
252
282
  id: "generator",
253
- baseModel: (e = this.selectedDeployTargetData) === null || e === void 0 ? void 0 : e.generators,
254
- label: d(this, f, "f").main.generator,
255
- refCallback: e => {
256
- c(this, y, e, "f");
283
+ baseModel: (t = this.selectedDeployTargetData) === null || t === void 0 ? void 0 : t.generators,
284
+ label: d(this, g, "f").main.generator,
285
+ refCallback: t => {
286
+ c(this, y, t, "f");
257
287
  }
258
288
  });
259
289
  }));
260
- q.set(this, (() => {
261
- var e;
262
- return [ d(this, S, "f").call(this, {
290
+ A.set(this, (() => {
291
+ var t;
292
+ return [ d(this, F, "f").call(this, {
263
293
  id: "targetTypes",
264
294
  baseModel: this.targetTypes,
265
- label: d(this, f, "f").main.targetTypes,
266
- refCallback: e => {
267
- c(this, m, e, "f");
295
+ label: d(this, g, "f").main.targetTypes,
296
+ value: this.selectedDeployTargetData ? this.selectedDeployTargetData.id : this.defaultTargetTypeId,
297
+ refCallback: t => {
298
+ c(this, m, t, "f");
268
299
  },
269
- onInputCallback: d(this, I, "f")
300
+ onInputCallback: d(this, E, "f")
270
301
  }), a("div", {
271
302
  class: "target-types-button-checkbox-wrapper buttons-spacer"
272
303
  }, a("button", {
273
304
  class: "button-tertiary button-icon-only",
274
- onClick: d(this, W, "f")
305
+ onClick: d(this, j, "f")
275
306
  }, a("ch-image", {
276
307
  class: "icon-md",
277
308
  src: "system/settings/primary"
278
309
  })), a("ch-checkbox", {
279
- disabled: !((e = this.selectedDeployTargetData) === null || e === void 0 ? void 0 : e.canCreatePackage),
310
+ disabled: !((t = this.selectedDeployTargetData) === null || t === void 0 ? void 0 : t.canCreatePackage),
280
311
  class: "checkbox",
281
- caption: d(this, f, "f").main.onlyPackageLabel,
312
+ caption: d(this, g, "f").main.onlyPackageLabel,
282
313
  part: "only-package-checkbox",
283
- checkedValue: "true",
284
- value: "false",
285
- ref: e => c(this, p, e, "f")
314
+ checkedValue: $,
315
+ unCheckedValue: B,
316
+ value: B,
317
+ ref: t => c(this, p, t, "f")
286
318
  })) ];
287
319
  }));
288
- R.set(this, (() => [ a("label", {
320
+ G.set(this, (() => [ a("label", {
289
321
  class: "label display-name",
290
322
  htmlFor: "display-name"
291
- }, d(this, f, "f").main.displayName), a("ch-edit", {
323
+ }, d(this, g, "f").main.displayName), a("ch-edit", {
292
324
  class: "input",
293
325
  id: "display-name",
294
- ref: e => {
295
- if (e) {
296
- c(this, w, e, "f");
326
+ ref: t => {
327
+ if (t) {
328
+ c(this, w, t, "f");
297
329
  }
298
330
  }
299
331
  }) ]));
300
- A.set(this, (() => a("div", {
332
+ N.set(this, (() => a("div", {
301
333
  slot: "footer-end",
302
334
  class: "footer control-footer-with-border"
303
335
  }, a("button", {
304
336
  class: "button-primary",
305
- onClick: d(this, C, "f"),
337
+ onClick: d(this, I, "f"),
306
338
  disabled: !this.allowDeploy
307
- }, d(this, f, "f").main.deployButton))));
339
+ }, d(this, g, "f").main.deployButton))));
308
340
  this.checkedObjectsIds = [];
309
341
  this.noObjects = undefined;
310
342
  this.selectedDeployTargetData = null;
@@ -314,6 +346,7 @@ const N = class {
314
346
  this.allowDeploy = true;
315
347
  this.deploymentUnits = undefined;
316
348
  this.targetTypes = undefined;
349
+ this.defaultTargetTypeId = undefined;
317
350
  this.newDeploymentUnitId = undefined;
318
351
  this.objectTypes = undefined;
319
352
  this.getDeploymentUnitObjectsCallback = undefined;
@@ -322,20 +355,20 @@ const N = class {
322
355
  this.addObjectsCallback = undefined;
323
356
  this.createDeploymentUnitCallback = undefined;
324
357
  }
325
- watchTreeModelHandler(e) {
326
- this.noObjects = !!(e.length === 0 || !e);
358
+ watchTreeModelHandler(t) {
359
+ this.noObjects = !!(t.length === 0 || !t);
327
360
  }
328
- watchObjectTypesHandler(e) {
329
- d(this, g, "m", D).call(this, e);
361
+ watchObjectTypesHandler(t) {
362
+ d(this, f, "m", H).call(this, t);
330
363
  }
331
364
  async componentWillLoad() {
332
- c(this, f, await o.getComponentStrings(this.el), "f");
333
- this.selectedDeployTargetData = this.targetTypes[0];
365
+ c(this, g, await o.getComponentStrings(this.el), "f");
366
+ this.selectedDeployTargetData = d(this, k, "f").call(this);
334
367
  this.allObjectTypes = [ ...this.objectTypes ];
335
- d(this, k, "f").call(this);
336
- d(this, g, "m", D).call(this, this.allObjectTypes);
368
+ d(this, _, "f").call(this);
369
+ d(this, f, "m", H).call(this, this.allObjectTypes);
337
370
  if (this.deploymentUnits.length > 0) {
338
- d(this, z, "f").call(this, this.deploymentUnits[0].id);
371
+ d(this, M, "f").call(this, this.deploymentUnits[0].id);
339
372
  if (this.targetTypes.length > 0 && this.optionsCallback) {
340
373
  this.optionsCallback(this.deploymentUnits[0].id, this.targetTypes[0].id);
341
374
  }
@@ -343,23 +376,23 @@ const N = class {
343
376
  }
344
377
  componentDidRender() {
345
378
  if (!d(this, h, "f")) {
346
- this.componentDidRenderFirstTime.emit(d(this, f, "f").componentName);
379
+ this.componentDidRenderFirstTime.emit(d(this, g, "f").componentName);
347
380
  c(this, h, true, "f");
348
381
  }
349
382
  }
350
383
  render() {
351
- var e, t, r, o, s, n;
384
+ var t, e, r, o, s, n;
352
385
  return a(i, {
353
386
  class: "widget spacing-body"
354
387
  }, a("ch-theme", {
355
- model: G
356
- }), d(this, L, "f").call(this), a("div", {
388
+ model: U
389
+ }), d(this, q, "f").call(this), a("div", {
357
390
  class: "container-wrapper"
358
- }, d(this, H, "f").call(this)), a("div", {
391
+ }, d(this, S, "f").call(this)), a("div", {
359
392
  class: "deploy-properties"
360
- }, d(this, q, "f").call(this), ((t = (e = this.selectedDeployTargetData) === null || e === void 0 ? void 0 : e.applicationServers) === null || t === void 0 ? void 0 : t.length) > 0 ? d(this, P, "f").call(this) : [], ((o = (r = this.selectedDeployTargetData) === null || r === void 0 ? void 0 : r.generators) === null || o === void 0 ? void 0 : o.length) > 0 ? d(this, F, "f").call(this) : [], a("p", {
393
+ }, d(this, A, "f").call(this), ((e = (t = this.selectedDeployTargetData) === null || t === void 0 ? void 0 : t.applicationServers) === null || e === void 0 ? void 0 : e.length) > 1 && this.selectedDeployTargetData.canSelectApplicationServer ? d(this, R, "f").call(this) : [], ((o = (r = this.selectedDeployTargetData) === null || r === void 0 ? void 0 : r.generators) === null || o === void 0 ? void 0 : o.length) > 0 ? d(this, V, "f").call(this) : [], a("p", {
361
394
  class: "body-italic-s target-type__description"
362
- }, (s = this.selectedDeployTargetData) === null || s === void 0 ? void 0 : s.description), ((n = this.selectedDeployTargetData) === null || n === void 0 ? void 0 : n.canDefineDisplayName) ? d(this, R, "f").call(this) : []), d(this, A, "f").call(this));
395
+ }, (s = this.selectedDeployTargetData) === null || s === void 0 ? void 0 : s.description), ((n = this.selectedDeployTargetData) === null || n === void 0 ? void 0 : n.canDefineDisplayName) ? d(this, G, "f").call(this) : []), d(this, N, "f").call(this));
363
396
  }
364
397
  static get assetsDirs() {
365
398
  return [ "gx-ide-assets/deployment-tool" ];
@@ -375,19 +408,19 @@ const N = class {
375
408
  }
376
409
  };
377
410
 
378
- f = new WeakMap, h = new WeakMap, b = new WeakMap, v = new WeakMap, p = new WeakMap,
411
+ g = new WeakMap, h = new WeakMap, b = new WeakMap, v = new WeakMap, p = new WeakMap,
379
412
  m = new WeakMap, u = new WeakMap, y = new WeakMap, x = new WeakMap, w = new WeakMap,
380
413
  k = new WeakMap, _ = new WeakMap, z = new WeakMap, M = new WeakMap, W = new WeakMap,
381
- j = new WeakMap, T = new WeakMap, C = new WeakMap, I = new WeakMap, E = new WeakMap,
382
- H = new WeakMap, O = new WeakMap, S = new WeakMap, L = new WeakMap, P = new WeakMap,
383
- F = new WeakMap, q = new WeakMap, R = new WeakMap, A = new WeakMap, g = new WeakSet,
384
- D = function _GxIdeDeploymentTool_flattenObjectTypes(e) {
385
- e.forEach((e => {
386
- d(this, b, "f").set(e.id, e);
414
+ j = new WeakMap, C = new WeakMap, T = new WeakMap, I = new WeakMap, D = new WeakMap,
415
+ E = new WeakMap, O = new WeakMap, S = new WeakMap, L = new WeakMap, P = new WeakMap,
416
+ F = new WeakMap, q = new WeakMap, R = new WeakMap, V = new WeakMap, A = new WeakMap,
417
+ G = new WeakMap, N = new WeakMap, f = new WeakSet, H = function _GxIdeDeploymentTool_flattenObjectTypes(t) {
418
+ t.forEach((t => {
419
+ d(this, b, "f").set(t.id, t);
387
420
  }));
388
421
  };
389
422
 
390
- N.style = l;
423
+ J.style = l;
391
424
 
392
- export { N as gx_ide_deployment_tool };
393
- //# sourceMappingURL=p-3085add2.entry.js.map
425
+ export { J as gx_ide_deployment_tool };
426
+ //# sourceMappingURL=p-03dbccde.entry.js.map