@genexus/genexus-ide-ui 0.0.42 → 0.0.44
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/ch-grid_8.cjs.entry.js +2 -1
- package/dist/cjs/ch-icon_2.cjs.entry.js +177 -0
- package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/grid-be8c3413.js +11 -0
- package/dist/cjs/{gxg-tab_4.cjs.entry.js → gx-ide-container_5.cjs.entry.js} +136 -2
- package/dist/cjs/gx-ide-create-kb-from-server.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-new-environment.cjs.entry.js +4 -5
- package/dist/cjs/gx-ide-new-kb.cjs.entry.js +6 -6
- package/dist/cjs/gx-ide-new-object.cjs.entry.js +3 -3
- package/dist/cjs/gx-ide-object-selector.cjs.entry.js +9 -12
- package/dist/cjs/gx-ide-references.cjs.entry.js +4 -4
- package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +8 -5
- package/dist/cjs/gx-ide-team-dev-select-recent-comment.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-team-dev-update-partial-selection.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-team-dev-update-to-revision.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +11 -9
- package/dist/cjs/gx-ide-template.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-ww-images.cjs.entry.js +19 -18
- package/dist/cjs/{gxg-button_2.cjs.entry.js → gxg-button.cjs.entry.js} +0 -61
- package/dist/cjs/gxg-menu-item.cjs.entry.js +11 -59
- package/dist/cjs/gxg-menu-slim-item.cjs.entry.js +78 -0
- package/dist/cjs/gxg-menu-slim-list.cjs.entry.js +28 -0
- package/dist/cjs/gxg-menu-slim.cjs.entry.js +251 -0
- package/dist/cjs/gxg-menu.cjs.entry.js +12 -228
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/_template/template.css +24 -0
- package/dist/collection/components/container/container.css +7 -11
- package/dist/collection/components/container/container.js +45 -40
- package/dist/collection/components/create-kb-from-server/create-kb-from-server.css +24 -0
- package/dist/collection/components/new-environment/new-environment.css +25 -0
- package/dist/collection/components/new-environment/new-environment.js +3 -22
- package/dist/collection/components/new-kb/new-kb.css +24 -0
- package/dist/collection/components/new-kb/new-kb.js +5 -5
- package/dist/collection/components/new-object/new-object.css +24 -0
- package/dist/collection/components/new-object/new-object.js +2 -2
- package/dist/collection/components/object-selector/object-selector.css +24 -0
- package/dist/collection/components/object-selector/object-selector.js +21 -3
- package/dist/collection/components/references/references.css +24 -0
- package/dist/collection/components/references/references.js +3 -3
- package/dist/collection/components/team-dev-commit/team-dev-commit.css +33 -10
- package/dist/collection/components/team-dev-commit/team-dev-commit.js +21 -4
- package/dist/collection/components/team-dev-select-recent-comment/team-dev-select-recent-comment.css +24 -0
- package/dist/collection/components/team-dev-update/team-dev-update.css +24 -0
- package/dist/collection/components/team-dev-update/team-dev-update.js +24 -8
- package/dist/collection/components/team-dev-update-partial-selection/team-dev-update-partial-selection.css +24 -0
- package/dist/collection/components/team-dev-update-to-revision/team-dev-update-to-revision.css +24 -0
- package/dist/collection/components/ww-images/ww-images.css +24 -0
- package/dist/collection/components/ww-images/ww-images.js +22 -22
- package/dist/collection/pages/assets/common.js +21 -21
- package/dist/components/container.js +12 -24
- package/dist/components/grid.js +9 -0
- package/dist/components/gx-ide-create-kb-from-server.js +1 -1
- package/dist/components/gx-ide-new-environment.js +8 -16
- package/dist/components/gx-ide-new-kb.js +6 -6
- package/dist/components/gx-ide-new-object.js +3 -3
- package/dist/components/gx-ide-object-selector.js +9 -12
- package/dist/components/gx-ide-references.js +4 -4
- package/dist/components/gx-ide-team-dev-commit.js +17 -14
- package/dist/components/gx-ide-team-dev-select-recent-comment.js +1 -1
- package/dist/components/gx-ide-team-dev-update-partial-selection.js +1 -1
- package/dist/components/gx-ide-team-dev-update-to-revision.js +1 -1
- package/dist/components/gx-ide-team-dev-update.js +20 -18
- package/dist/components/gx-ide-template.js +1 -1
- package/dist/components/gx-ide-top-bar.js +72 -1
- package/dist/components/gx-ide-ww-images.js +20 -19
- package/dist/components/gxg-grid2.js +4 -2
- package/dist/components/gxg-menu-item.js +14 -65
- package/dist/components/gxg-menu-slim-item.js +111 -0
- package/dist/components/gxg-menu-slim-list.js +50 -0
- package/dist/components/gxg-menu-slim.js +271 -0
- package/dist/components/gxg-menu.js +14 -233
- package/dist/components/index.js +3 -1
- package/dist/components/tab-bar.js +7 -1
- package/dist/components/tab.js +13 -1
- package/dist/components/tabs.js +2 -0
- package/dist/esm/ch-grid_8.entry.js +2 -1
- package/dist/esm/ch-icon_2.entry.js +172 -0
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/grid-1354bf8f.js +9 -0
- package/dist/esm/{gxg-tab_4.entry.js → gx-ide-container_5.entry.js} +136 -3
- package/dist/esm/gx-ide-create-kb-from-server.entry.js +1 -1
- package/dist/esm/gx-ide-new-environment.entry.js +4 -5
- package/dist/esm/gx-ide-new-kb.entry.js +6 -6
- package/dist/esm/gx-ide-new-object.entry.js +3 -3
- package/dist/esm/gx-ide-object-selector.entry.js +9 -12
- package/dist/esm/gx-ide-references.entry.js +4 -4
- package/dist/esm/gx-ide-team-dev-commit.entry.js +8 -5
- package/dist/esm/gx-ide-team-dev-select-recent-comment.entry.js +1 -1
- package/dist/esm/gx-ide-team-dev-update-partial-selection.entry.js +1 -1
- package/dist/esm/gx-ide-team-dev-update-to-revision.entry.js +1 -1
- package/dist/esm/gx-ide-team-dev-update.entry.js +11 -9
- package/dist/esm/gx-ide-template.entry.js +1 -1
- package/dist/esm/gx-ide-ww-images.entry.js +19 -18
- package/dist/esm/{gxg-button_2.entry.js → gxg-button.entry.js} +2 -62
- package/dist/esm/gxg-menu-item.entry.js +12 -60
- package/dist/esm/gxg-menu-slim-item.entry.js +74 -0
- package/dist/esm/gxg-menu-slim-list.entry.js +24 -0
- package/dist/esm/gxg-menu-slim.entry.js +247 -0
- package/dist/esm/gxg-menu.entry.js +12 -228
- package/dist/esm/loader.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
- package/dist/genexus-ide-ui/p-04f69ecc.entry.js +1 -0
- package/dist/genexus-ide-ui/p-098a1397.entry.js +1 -0
- package/dist/genexus-ide-ui/p-0f85cf00.entry.js +1 -0
- package/dist/genexus-ide-ui/{p-38fa6211.entry.js → p-19d9c08c.entry.js} +1 -1
- package/dist/genexus-ide-ui/p-1bcabe1c.entry.js +1 -0
- package/dist/genexus-ide-ui/{p-fcdcb919.entry.js → p-1ccf523f.entry.js} +1 -1
- package/dist/genexus-ide-ui/p-2bd01c9e.entry.js +1 -0
- package/dist/genexus-ide-ui/p-42901fd7.entry.js +1 -0
- package/dist/genexus-ide-ui/p-4b65669b.entry.js +1 -0
- package/dist/genexus-ide-ui/p-6afc6187.entry.js +1 -0
- package/dist/genexus-ide-ui/p-73f61127.entry.js +1 -0
- package/dist/genexus-ide-ui/p-9014609e.entry.js +1 -0
- package/dist/genexus-ide-ui/{p-508cf8b0.entry.js → p-917c5696.entry.js} +1 -1
- package/dist/genexus-ide-ui/p-a708db45.entry.js +1 -0
- package/dist/genexus-ide-ui/p-b456483d.entry.js +1 -0
- package/dist/genexus-ide-ui/p-b74dd891.entry.js +1 -0
- package/dist/genexus-ide-ui/p-c38c6957.entry.js +1 -0
- package/dist/genexus-ide-ui/p-c61bf417.entry.js +1 -0
- package/dist/genexus-ide-ui/p-c6a7b93c.js +1 -0
- package/dist/genexus-ide-ui/p-e1cd9135.entry.js +1 -0
- package/dist/genexus-ide-ui/{p-22e142e8.entry.js → p-e4eb3828.entry.js} +1 -1
- package/dist/genexus-ide-ui/p-e5a3e3b9.entry.js +1 -0
- package/dist/genexus-ide-ui/{p-6073c264.entry.js → p-f1116ac5.entry.js} +1 -1
- package/dist/node_modules/@genexus/gemini/dist/collection/components/grid/gxg-grid.css +1 -5
- package/dist/node_modules/@genexus/gemini/dist/collection/components/menu/menu/menu.css +724 -0
- package/dist/node_modules/@genexus/gemini/dist/collection/components/menu/menu-item/menu-item.css +711 -0
- package/dist/node_modules/@genexus/gemini/dist/collection/components/tab/tab.css +8 -0
- package/dist/node_modules/@genexus/gemini/dist/collection/components/tab-bar/tab-bar.css +3 -0
- package/dist/types/components/container/container.d.ts +8 -5
- package/dist/types/components/new-environment/new-environment.d.ts +0 -4
- package/dist/types/components/object-selector/object-selector.d.ts +10 -6
- package/dist/types/components/team-dev-commit/team-dev-commit.d.ts +4 -0
- package/dist/types/components/team-dev-update/team-dev-update.d.ts +4 -0
- package/dist/types/components/ww-images/ww-images.d.ts +13 -14
- package/dist/types/components.d.ts +27 -15
- package/package.json +3 -3
- package/dist/cjs/ch-icon.cjs.entry.js +0 -116
- package/dist/cjs/gx-ide-container.cjs.entry.js +0 -137
- package/dist/cjs/gxg-menu-list.cjs.entry.js +0 -28
- package/dist/components/gxg-menu-list.js +0 -50
- package/dist/components/top-bar.js +0 -74
- package/dist/esm/ch-icon.entry.js +0 -112
- package/dist/esm/gx-ide-container.entry.js +0 -133
- package/dist/esm/gxg-menu-list.entry.js +0 -24
- package/dist/genexus-ide-ui/p-07e89cdd.entry.js +0 -1
- package/dist/genexus-ide-ui/p-1770fa36.entry.js +0 -1
- package/dist/genexus-ide-ui/p-179713ef.entry.js +0 -1
- package/dist/genexus-ide-ui/p-181ee8a8.entry.js +0 -1
- package/dist/genexus-ide-ui/p-35fc1102.entry.js +0 -1
- package/dist/genexus-ide-ui/p-4d39c34a.entry.js +0 -1
- package/dist/genexus-ide-ui/p-55d98662.entry.js +0 -1
- package/dist/genexus-ide-ui/p-5ad757f4.entry.js +0 -1
- package/dist/genexus-ide-ui/p-764ab316.entry.js +0 -1
- package/dist/genexus-ide-ui/p-7a83018d.entry.js +0 -1
- package/dist/genexus-ide-ui/p-7a90def4.entry.js +0 -1
- package/dist/genexus-ide-ui/p-7c38776f.entry.js +0 -1
- package/dist/genexus-ide-ui/p-82228c39.entry.js +0 -1
- package/dist/genexus-ide-ui/p-8afbdbc9.entry.js +0 -1
- package/dist/genexus-ide-ui/p-cab184a7.entry.js +0 -1
- package/dist/genexus-ide-ui/p-d376dada.entry.js +0 -1
- /package/dist/node_modules/@genexus/gemini/dist/collection/components/{menu-item/menu-item.css → menu-slim/item/item.css} +0 -0
- /package/dist/node_modules/@genexus/gemini/dist/collection/components/{menu-list/menu-list.css → menu-slim/list/list.css} +0 -0
- /package/dist/node_modules/@genexus/gemini/dist/collection/components/{menu → menu-slim/menu}/menu.css +0 -0
|
@@ -9,6 +9,14 @@
|
|
|
9
9
|
height: 100%;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
.gxi-overflow-auto {
|
|
13
|
+
overflow: auto;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.gxi-display-flex {
|
|
17
|
+
display: flex;
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
.align-start {
|
|
13
21
|
display: flex;
|
|
14
22
|
align-items: start;
|
|
@@ -36,6 +44,22 @@ ch-grid-cell {
|
|
|
36
44
|
display: flex;
|
|
37
45
|
}
|
|
38
46
|
|
|
47
|
+
ch-grid {
|
|
48
|
+
overflow: auto;
|
|
49
|
+
height: 100%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
ch-grid-column {
|
|
53
|
+
/*to be removed when this works inside a component with shadow: true*/
|
|
54
|
+
z-index: 999;
|
|
55
|
+
border-bottom: 1px solid var(--gray-01);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/*Gxg Tabs*/
|
|
59
|
+
gxg-tabs {
|
|
60
|
+
box-shadow: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
39
63
|
/*All components Host should have this class set. !important is set on every rule, since this styles could be overridden by the host user, since they are applied on the host component*/
|
|
40
64
|
:host(.gx-ide-component) {
|
|
41
65
|
box-shadow: var(--box-shadow-01) !important;
|
|
@@ -358,14 +358,6 @@ HOST / GENERAL
|
|
|
358
358
|
flex-grow: 1;
|
|
359
359
|
}
|
|
360
360
|
|
|
361
|
-
/*reset fieldset*/
|
|
362
|
-
fieldset {
|
|
363
|
-
padding: 0;
|
|
364
|
-
margin-inline-start: 0;
|
|
365
|
-
margin-inline-end: 0;
|
|
366
|
-
border: none;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
361
|
.heading,
|
|
370
362
|
.content,
|
|
371
363
|
.footer {
|
|
@@ -428,9 +420,7 @@ HEADING
|
|
|
428
420
|
CONTENT
|
|
429
421
|
********************************/
|
|
430
422
|
.content {
|
|
431
|
-
display:
|
|
432
|
-
flex-direction: column;
|
|
433
|
-
gap: var(--gxg-container-elements-spacing);
|
|
423
|
+
display: block;
|
|
434
424
|
overflow-x: auto;
|
|
435
425
|
/* Track */
|
|
436
426
|
/* Handle */
|
|
@@ -455,6 +445,12 @@ CONTENT
|
|
|
455
445
|
.content--no-padding {
|
|
456
446
|
padding: 0;
|
|
457
447
|
}
|
|
448
|
+
.content--no-border-top {
|
|
449
|
+
border-top: none;
|
|
450
|
+
}
|
|
451
|
+
.content--flex {
|
|
452
|
+
display: flex;
|
|
453
|
+
}
|
|
458
454
|
.content--no-gap {
|
|
459
455
|
gap: 0;
|
|
460
456
|
}
|
|
@@ -12,8 +12,10 @@ export class GxIdeContainer {
|
|
|
12
12
|
this.contentClasses = () => {
|
|
13
13
|
return {
|
|
14
14
|
"content": true,
|
|
15
|
+
"content--flex": this.flexContent,
|
|
15
16
|
"content--no-padding": this.noContentPadding,
|
|
16
17
|
"content--no-gap": this.noContentGap,
|
|
18
|
+
"content--no-border-top": this.noContentBorderTop,
|
|
17
19
|
[`content--align-items-${this.alignItems}`]: this.alignItems !== undefined,
|
|
18
20
|
[`content--justify-content-${this.justifyContent}`]: this.justifyContent !== undefined
|
|
19
21
|
};
|
|
@@ -27,7 +29,6 @@ export class GxIdeContainer {
|
|
|
27
29
|
["footer--no-padding"]: this.noFooterPadding
|
|
28
30
|
} }, h("div", { class: "footer__start" }, h("slot", { name: "footer-start" })), h("div", { class: "footer__end" }, h("slot", { name: "footer-end" })))) : null;
|
|
29
31
|
};
|
|
30
|
-
this.fieldset = false;
|
|
31
32
|
this.containerTitle = undefined;
|
|
32
33
|
this.displayBorder = false;
|
|
33
34
|
this.displayBorderTop = false;
|
|
@@ -40,6 +41,8 @@ export class GxIdeContainer {
|
|
|
40
41
|
this.noHeadingBorder = false;
|
|
41
42
|
this.noHeadingPadding = false;
|
|
42
43
|
this.headingJustify = "center";
|
|
44
|
+
this.flexContent = false;
|
|
45
|
+
this.noContentBorderTop = false;
|
|
43
46
|
this.noContentPadding = false;
|
|
44
47
|
this.noContentGap = false;
|
|
45
48
|
this.alignItems = undefined;
|
|
@@ -58,7 +61,6 @@ export class GxIdeContainer {
|
|
|
58
61
|
// 6.COMPONENT LIFECYCLE EVENTS //
|
|
59
62
|
componentWillLoad() {
|
|
60
63
|
this.evaluateSlots();
|
|
61
|
-
this.evaluateFullHeight();
|
|
62
64
|
}
|
|
63
65
|
// 7.LISTENERS //
|
|
64
66
|
// 8.PUBLIC METHODS API //
|
|
@@ -81,12 +83,6 @@ export class GxIdeContainer {
|
|
|
81
83
|
this.hasFooterSlot = true;
|
|
82
84
|
}
|
|
83
85
|
}
|
|
84
|
-
evaluateFullHeight() {
|
|
85
|
-
if (this.fullHeight && this.fieldset) {
|
|
86
|
-
/* If full-height, fieldset has to be false*/
|
|
87
|
-
this.fieldset = false;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
86
|
evaluateSections() {
|
|
91
87
|
if (!this.hasSlottedContent && !this.hasFooterSlot) {
|
|
92
88
|
this.hasOnlyHeading = true;
|
|
@@ -98,20 +94,11 @@ export class GxIdeContainer {
|
|
|
98
94
|
// 10.RENDER() FUNCTION //
|
|
99
95
|
render() {
|
|
100
96
|
this.evaluateSections();
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
];
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
result = [
|
|
110
|
-
this.containerTitle || this.hasHeaderSlot ? (h("header", { class: this.headingClasses() }, this.containerTitle ? (h("gxg-title", { type: "title-04", alignment: this.titleAlignment }, this.containerTitle)) : null, this.hasHeaderSlot ? (h("div", { class: "heading__inner-wrapper" }, h("slot", { name: "header" }))) : null)) : null,
|
|
111
|
-
this.hasSlottedContent ? (h("div", { class: this.contentClasses() }, h("slot", null))) : null,
|
|
112
|
-
this.footer()
|
|
113
|
-
];
|
|
114
|
-
}
|
|
97
|
+
const result = [
|
|
98
|
+
this.containerTitle || this.hasHeaderSlot ? (h("header", { class: this.headingClasses() }, this.containerTitle ? (h("gxg-title", { type: "title-04", alignment: this.titleAlignment }, this.containerTitle)) : null, this.hasHeaderSlot ? (h("div", { class: "heading__inner-wrapper" }, h("slot", { name: "header" }))) : null)) : null,
|
|
99
|
+
this.hasSlottedContent ? (h("div", { class: this.contentClasses(), part: "content" }, h("slot", null))) : null,
|
|
100
|
+
this.footer()
|
|
101
|
+
];
|
|
115
102
|
return (h(Host, null, h("div", { class: {
|
|
116
103
|
"container": true,
|
|
117
104
|
[`container--padding-${this.sectionsPadding}`]: true,
|
|
@@ -136,24 +123,6 @@ export class GxIdeContainer {
|
|
|
136
123
|
}
|
|
137
124
|
static get properties() {
|
|
138
125
|
return {
|
|
139
|
-
"fieldset": {
|
|
140
|
-
"type": "boolean",
|
|
141
|
-
"mutable": true,
|
|
142
|
-
"complexType": {
|
|
143
|
-
"original": "boolean",
|
|
144
|
-
"resolved": "boolean",
|
|
145
|
-
"references": {}
|
|
146
|
-
},
|
|
147
|
-
"required": false,
|
|
148
|
-
"optional": false,
|
|
149
|
-
"docs": {
|
|
150
|
-
"tags": [],
|
|
151
|
-
"text": "Makes this component content act as a fieldset"
|
|
152
|
-
},
|
|
153
|
-
"attribute": "fieldset",
|
|
154
|
-
"reflect": false,
|
|
155
|
-
"defaultValue": "false"
|
|
156
|
-
},
|
|
157
126
|
"containerTitle": {
|
|
158
127
|
"type": "string",
|
|
159
128
|
"mutable": false,
|
|
@@ -382,6 +351,42 @@ export class GxIdeContainer {
|
|
|
382
351
|
"reflect": false,
|
|
383
352
|
"defaultValue": "\"center\""
|
|
384
353
|
},
|
|
354
|
+
"flexContent": {
|
|
355
|
+
"type": "boolean",
|
|
356
|
+
"mutable": false,
|
|
357
|
+
"complexType": {
|
|
358
|
+
"original": "boolean",
|
|
359
|
+
"resolved": "boolean",
|
|
360
|
+
"references": {}
|
|
361
|
+
},
|
|
362
|
+
"required": false,
|
|
363
|
+
"optional": false,
|
|
364
|
+
"docs": {
|
|
365
|
+
"tags": [],
|
|
366
|
+
"text": "Makes the content a flex container"
|
|
367
|
+
},
|
|
368
|
+
"attribute": "flex-content",
|
|
369
|
+
"reflect": false,
|
|
370
|
+
"defaultValue": "false"
|
|
371
|
+
},
|
|
372
|
+
"noContentBorderTop": {
|
|
373
|
+
"type": "boolean",
|
|
374
|
+
"mutable": false,
|
|
375
|
+
"complexType": {
|
|
376
|
+
"original": "boolean",
|
|
377
|
+
"resolved": "boolean",
|
|
378
|
+
"references": {}
|
|
379
|
+
},
|
|
380
|
+
"required": false,
|
|
381
|
+
"optional": false,
|
|
382
|
+
"docs": {
|
|
383
|
+
"tags": [],
|
|
384
|
+
"text": "Removes the border-top from the content"
|
|
385
|
+
},
|
|
386
|
+
"attribute": "no-content-border-top",
|
|
387
|
+
"reflect": false,
|
|
388
|
+
"defaultValue": "false"
|
|
389
|
+
},
|
|
385
390
|
"noContentPadding": {
|
|
386
391
|
"type": "boolean",
|
|
387
392
|
"mutable": false,
|
|
@@ -9,6 +9,14 @@
|
|
|
9
9
|
height: 100%;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
.gxi-overflow-auto {
|
|
13
|
+
overflow: auto;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.gxi-display-flex {
|
|
17
|
+
display: flex;
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
.align-start {
|
|
13
21
|
display: flex;
|
|
14
22
|
align-items: start;
|
|
@@ -36,6 +44,22 @@ ch-grid-cell {
|
|
|
36
44
|
display: flex;
|
|
37
45
|
}
|
|
38
46
|
|
|
47
|
+
ch-grid {
|
|
48
|
+
overflow: auto;
|
|
49
|
+
height: 100%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
ch-grid-column {
|
|
53
|
+
/*to be removed when this works inside a component with shadow: true*/
|
|
54
|
+
z-index: 999;
|
|
55
|
+
border-bottom: 1px solid var(--gray-01);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/*Gxg Tabs*/
|
|
59
|
+
gxg-tabs {
|
|
60
|
+
box-shadow: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
39
63
|
/*All components Host should have this class set. !important is set on every rule, since this styles could be overridden by the host user, since they are applied on the host component*/
|
|
40
64
|
:host(.gx-ide-component) {
|
|
41
65
|
box-shadow: var(--box-shadow-01) !important;
|
|
@@ -9,6 +9,14 @@
|
|
|
9
9
|
height: 100%;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
.gxi-overflow-auto {
|
|
13
|
+
overflow: auto;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.gxi-display-flex {
|
|
17
|
+
display: flex;
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
.align-start {
|
|
13
21
|
display: flex;
|
|
14
22
|
align-items: start;
|
|
@@ -36,6 +44,22 @@ ch-grid-cell {
|
|
|
36
44
|
display: flex;
|
|
37
45
|
}
|
|
38
46
|
|
|
47
|
+
ch-grid {
|
|
48
|
+
overflow: auto;
|
|
49
|
+
height: 100%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
ch-grid-column {
|
|
53
|
+
/*to be removed when this works inside a component with shadow: true*/
|
|
54
|
+
z-index: 999;
|
|
55
|
+
border-bottom: 1px solid var(--gray-01);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/*Gxg Tabs*/
|
|
59
|
+
gxg-tabs {
|
|
60
|
+
box-shadow: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
39
63
|
/*All components Host should have this class set. !important is set on every rule, since this styles could be overridden by the host user, since they are applied on the host component*/
|
|
40
64
|
:host(.gx-ide-component) {
|
|
41
65
|
box-shadow: var(--box-shadow-01) !important;
|
|
@@ -157,6 +181,7 @@ ch-grid-cell {
|
|
|
157
181
|
flex-grow: 1;
|
|
158
182
|
grid-template-columns: 1fr 1fr;
|
|
159
183
|
gap: 0;
|
|
184
|
+
height: 100%;
|
|
160
185
|
}
|
|
161
186
|
.grid--basic > *:first-child {
|
|
162
187
|
border-right: 1px solid var(--gx-ide-container-border-color);
|
|
@@ -77,12 +77,11 @@ export class GxIdeNewEnvironment {
|
|
|
77
77
|
this.changedCallback(newEnvData);
|
|
78
78
|
};
|
|
79
79
|
this.renderTabBasic = () => {
|
|
80
|
-
return (h("gxg-tab", { tab: "basic", "no-padding": true }, h("gx-ide-container", { containerTitle: this._componentLocale.runtime,
|
|
80
|
+
return (h("gxg-tab", { tab: "basic", "no-padding": true, flexContainer: true }, h("gx-ide-container", { containerTitle: this._componentLocale.runtime, displayBorderBottom: true }, h("gxg-form-radio-group", { ref: (el) => (this.runtimeGroup = el), row: true, onChange: this.runtimeEnvironmentChangedHandler, slot: "header" }, renderFormItems("gxg-form-radio", this.runtimes, "runtime-environment"))), h("div", { class: "grid grid--no-gap grid--basic" }, h("gx-ide-container", { noHeadingBorder: true, "container-title": this._componentLocale.tabBasic.backEnd.backEndLabel }, h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.tabBasic.backEnd.language, value: this.languages[0]["id"], ref: (el) => (this.languageEl = el), onValueChanged: this.languageValueChangedHandler, part: "language" }, renderFormItems("gxg-combo-box-item", this.languages)), h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.tabBasic.backEnd.dataStores, value: this.dataStores[0]["id"], ref: (el) => (this.dataStoreEl = el), onValueChanged: this.dataStoreValueChangedHandler, part: "data-store" }, renderFormItems("gxg-combo-box-item", this.dataStores))), h("gx-ide-container", { noHeadingBorder: true, "container-title": this._componentLocale.tabBasic.frontEnd.frontEndLabel }, h("gxg-form-checkbox-group", { ref: (el) => (this.frontEndsEl = el) }, renderFormItems("gxg-form-checkbox", this.frontEnds))))));
|
|
81
81
|
};
|
|
82
82
|
this.renderTabAdvanced = () => {
|
|
83
|
-
return (h("gxg-tab", { tab: "advanced", "no-padding": true }, h("gx-ide-container",
|
|
83
|
+
return (h("gxg-tab", { tab: "advanced", "no-padding": true }, h("gx-ide-container", null, h("slot", { name: "property-grid" }))));
|
|
84
84
|
};
|
|
85
|
-
this.hideTopBar = false;
|
|
86
85
|
this.dataStores = undefined;
|
|
87
86
|
this.frontEnd = undefined;
|
|
88
87
|
this.frontEnds = undefined;
|
|
@@ -104,7 +103,7 @@ export class GxIdeNewEnvironment {
|
|
|
104
103
|
}
|
|
105
104
|
// 10.RENDER() FUNCTION //
|
|
106
105
|
render() {
|
|
107
|
-
return (h(Host, { class: "gx-ide-component" },
|
|
106
|
+
return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper" }, h("gx-ide-container", null, h("header", { class: "header grid" }, h("gxg-label", { labelPosition: "start" }, this._componentLocale.name), h("gxg-form-text", { "label-position": "start", placeholder: "NewEnvironment", "max-width": "100%", value: this.environmentName, ref: (el) => (this.nameEl = el), part: "environment-name" }))), h("main", { class: "gxi-full-height gx-ide-overflow" }, h("gxg-tabs", { class: "gxg-tabs" }, h("gxg-tab-bar", { slot: "tab-bar-container", displayBorder: true }, h("gxg-tab-button", { slot: "tab-bar", "tab-label": this._componentLocale.tabBasic.tabLabel, tab: "basic", "is-selected": true }), h("gxg-tab-button", { slot: "tab-bar", "tab-label": this._componentLocale.tabAdvanced.tabLabel, tab: "advanced", disabled: this.disableAdvanced })), this.renderTabBasic(), this.renderTabAdvanced())), h("gx-ide-container", { displayBorderTop: true }, h("gxg-form-checkbox", { label: this._componentLocale.setCurrentEnvironment, id: "show-current-environment", checked: this.setAsTarget, slot: "footer-start" }), h("gxg-button", { id: "button-create", slot: "footer-end", type: "primary-text-only", onClick: this.setEnvironmentHandler, part: "gxg-button gxg-button--create" }, this._componentLocale.footer.btnSetNewEnvironment), h("gxg-button", { id: "button-cancel", slot: "footer-end", type: "outlined", onClick: this.cancelButtonClickedHandler, part: "gxg-button gxg-button--cancel" }, this._componentLocale.footer.btnCancel)))));
|
|
108
107
|
}
|
|
109
108
|
static get is() { return "gx-ide-new-environment"; }
|
|
110
109
|
static get encapsulation() { return "shadow"; }
|
|
@@ -121,24 +120,6 @@ export class GxIdeNewEnvironment {
|
|
|
121
120
|
static get assetsDirs() { return ["gx-ide-assets/new-environment"]; }
|
|
122
121
|
static get properties() {
|
|
123
122
|
return {
|
|
124
|
-
"hideTopBar": {
|
|
125
|
-
"type": "boolean",
|
|
126
|
-
"mutable": false,
|
|
127
|
-
"complexType": {
|
|
128
|
-
"original": "false",
|
|
129
|
-
"resolved": "boolean",
|
|
130
|
-
"references": {}
|
|
131
|
-
},
|
|
132
|
-
"required": false,
|
|
133
|
-
"optional": false,
|
|
134
|
-
"docs": {
|
|
135
|
-
"tags": [],
|
|
136
|
-
"text": "If true, will hide the top-bar"
|
|
137
|
-
},
|
|
138
|
-
"attribute": "hide-top-bar",
|
|
139
|
-
"reflect": false,
|
|
140
|
-
"defaultValue": "false"
|
|
141
|
-
},
|
|
142
123
|
"dataStores": {
|
|
143
124
|
"type": "unknown",
|
|
144
125
|
"mutable": false,
|
|
@@ -9,6 +9,14 @@
|
|
|
9
9
|
height: 100%;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
.gxi-overflow-auto {
|
|
13
|
+
overflow: auto;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.gxi-display-flex {
|
|
17
|
+
display: flex;
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
.align-start {
|
|
13
21
|
display: flex;
|
|
14
22
|
align-items: start;
|
|
@@ -36,6 +44,22 @@ ch-grid-cell {
|
|
|
36
44
|
display: flex;
|
|
37
45
|
}
|
|
38
46
|
|
|
47
|
+
ch-grid {
|
|
48
|
+
overflow: auto;
|
|
49
|
+
height: 100%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
ch-grid-column {
|
|
53
|
+
/*to be removed when this works inside a component with shadow: true*/
|
|
54
|
+
z-index: 999;
|
|
55
|
+
border-bottom: 1px solid var(--gray-01);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/*Gxg Tabs*/
|
|
59
|
+
gxg-tabs {
|
|
60
|
+
box-shadow: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
39
63
|
/*All components Host should have this class set. !important is set on every rule, since this styles could be overridden by the host user, since they are applied on the host component*/
|
|
40
64
|
:host(.gx-ide-component) {
|
|
41
65
|
box-shadow: var(--box-shadow-01) !important;
|
|
@@ -137,12 +137,12 @@ export class GxIdeNewKb {
|
|
|
137
137
|
// 10.RENDER() FUNCTION //
|
|
138
138
|
this.renderTabBasic = () => {
|
|
139
139
|
var _a, _b, _c, _d;
|
|
140
|
-
return (h("gxg-tab", { tab: "basic", "no-padding": true, flexContainer: true }, h("gx-ide-container", {
|
|
140
|
+
return (h("gxg-tab", { tab: "basic", "no-padding": true, flexContainer: true }, h("gx-ide-container", { displayBorderBottom: true }, h("div", { class: "grid basic-row-first" }, h("gxg-combo-box", { disableFilter: true, label: this._componentLocale.tabBasic.prototypingTarget, value: (_a = this._initialComboValue["prototypingTargets"]) !== null && _a !== void 0 ? _a : this.prototypingTargets[0].id, ref: (el) => (this.prototypingTargetEl = el), class: "prototyping-target", part: "prototyping-target" }, renderFormItems("gxg-combo-box-item", this.prototypingTargets, "prototyping-target")), h("gxg-combo-box", { disableFilter: true, label: this._componentLocale.tabBasic.userInterfaceLanguage, value: (_b = this._initialComboValue["userInterfaceLanguages"]) !== null && _b !== void 0 ? _b : this.userInterfaceLanguages[0].id, ref: (el) => (this.userInterfaceLanguageEl = el), class: "user-interface-language", part: "user-interface-language" }, renderFormItems("gxg-combo-box-item", this.userInterfaceLanguages, "user-interface-language")))), h("div", { class: "grid basic-row-second" }, h("gx-ide-container", { noHeadingBorder: true, containerTitle: this._componentLocale.tabBasic.backEnd.backEndLabel }, h("gxg-combo-box", { disableFilter: true, label: this._componentLocale.tabBasic.backEnd.prototypingEnvironment, value: (_c = this._initialComboValue["prototypingEnvironments"]) !== null && _c !== void 0 ? _c : this.prototypingEnvironments[0].id, ref: (el) => (this.prototypingEnvironmentEl = el), class: "prototyping-environment", part: "prototyping-environment" }, renderFormItems("gxg-combo-box-item", this.prototypingEnvironments, "prototyping-environment")), h("gxg-combo-box", { label: this._componentLocale.tabBasic.backEnd.dataSource, disableFilter: true, value: (_d = this._initialComboValue["dataSources"]) !== null && _d !== void 0 ? _d : this.dataSources[0].id, ref: (el) => (this.dataSourceEl = el), class: "data-source", part: "data-source" }, renderFormItems("gxg-combo-box-item", this.dataSources, "data-source"))), h("gx-ide-container", { noHeadingBorder: true, containerTitle: this._componentLocale.tabBasic.frontEnd.frontEndLabel }, h("gxg-form-checkbox-group", { ref: el => (this.frontEndsEl = el) }, renderFormItems("gxg-form-checkbox", this.frontEnds, "front-end"))))));
|
|
141
141
|
};
|
|
142
142
|
this.renderTabAdvanced = () => {
|
|
143
143
|
var _a, _b, _c;
|
|
144
|
-
return (h("gxg-tab", { tab: "advanced", "no-padding": true, flexContainer: true }, h("gx-ide-container", { displayBorderTop: true, displayBorderBottom: true, containerTitle: this._componentLocale.tabAdvanced.tabTitle }), h("div", { class: "grid knowledge-base-storage" }, h("gx-ide-container",
|
|
145
|
-
el), alignTop: true, checked: this.createDataFilesInKBFolder, disabled: this.createDataInKbDisabled, class: "create-data-in-kb", part: "create-data-in-kb" }))), h("gx-ide-container", {
|
|
144
|
+
return (h("gxg-tab", { tab: "advanced", "no-padding": true, flexContainer: true }, h("gx-ide-container", { displayBorderTop: true, displayBorderBottom: true, containerTitle: this._componentLocale.tabAdvanced.tabTitle }), h("div", { class: "grid knowledge-base-storage" }, h("gx-ide-container", null, h("div", { class: "grid knowledge-base-storage__col-left" }, h("gxg-combo-box", { label: this._componentLocale.tabAdvanced.serverName, disableFilter: true, value: (_a = this._initialComboValue["serverNames"]) !== null && _a !== void 0 ? _a : this.serverNames[0].id, ref: (el) => (this.serverNameEl = el), class: "server-name-combo-box", part: "server-name", onValueChanged: this.evaluateCreateDataInKbDisabled }, renderFormItems("gxg-combo-box-item", this.serverNames, "server-name")), h("gxg-button", { type: "secondary-icon-only", icon: "gemini-tools/search", class: "server-name-button", part: "search-server-name" }), h("gxg-form-text", { labelPosition: "above", label: this._componentLocale.tabAdvanced.databaseName, placeholder: "MyDatabase", ref: (el) => (this.databaseNameEl = el), value: this.databaseName, class: "database-name", part: "database-name" }), h("gxg-combo-box", { label: this._componentLocale.tabAdvanced.collation, disableFilter: true, value: (_b = this._initialComboValue["collations"]) !== null && _b !== void 0 ? _b : this.collations[0].id, ref: (el) => (this.collationEl = el), class: "collation-combo-box", part: "collation" }, renderFormItems("gxg-combo-box-item", this.collations, "collation")), h("gxg-button", { type: "secondary-icon-only", icon: "gemini-tools/reset", class: "collation-button", part: "reset-collation" }), h("gxg-form-checkbox", { label: this._componentLocale.tabAdvanced.createDataFilesInKbFolder, ref: (el) => (this.createDataFilesInKBFolderEl =
|
|
145
|
+
el), alignTop: true, checked: this.createDataFilesInKBFolder, disabled: this.createDataInKbDisabled, class: "create-data-in-kb", part: "create-data-in-kb" }))), h("gx-ide-container", { noHeadingBorder: true }, h("div", { class: {
|
|
146
146
|
"grid": true,
|
|
147
147
|
"knowledge-base-storage__col-right": true,
|
|
148
148
|
"knowledge-base-storage__col-right--windows-authentication": !this.userNameVisible
|
|
@@ -187,7 +187,7 @@ export class GxIdeNewKb {
|
|
|
187
187
|
* 11.RENDER() FUNCTION
|
|
188
188
|
********************************/
|
|
189
189
|
render() {
|
|
190
|
-
return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper
|
|
190
|
+
return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper" }, h("gx-ide-container", null, h("header", { class: {
|
|
191
191
|
"header": true,
|
|
192
192
|
"grid": true,
|
|
193
193
|
"header--is-advanced": this.isAdvanced
|
|
@@ -197,7 +197,7 @@ export class GxIdeNewKb {
|
|
|
197
197
|
h("gxg-form-text", { labelPosition: "start", placeholder: "C:\\Models", maxWidth: "100%", value: this.kbLocation, ref: (el) => (this.locationEl = el), disabled: !this.isAdvanced, part: "kb-location", class: "location-input" }),
|
|
198
198
|
h("gxg-button", { type: "secondary-icon-only", icon: "gemini-tools/folder", onClick: this.selectLocationHandler, part: "button-select-location", class: "location-icon" })
|
|
199
199
|
]
|
|
200
|
-
: null)), h("main", { class: "gxi-full-height" }, h("gxg-tabs", {
|
|
200
|
+
: null)), h("main", { class: "gxi-full-height gxi-overflow-auto" }, h("gxg-tabs", { class: "gxg-tabs" }, h("gxg-tab-bar", { slot: "tab-bar-container", part: "tab-bar", displayBorder: true }, h("gxg-tab-button", { slot: "tab-bar", tabLabel: this._componentLocale.tabBasic.tabLabel, tab: "basic", "is-selected": true, hidden: !this.isAdvanced, part: "tab-button-basic" }), h("gxg-tab-button", { slot: "tab-bar", tabLabel: this._componentLocale.tabAdvanced.tabLabel, tab: "advanced", hidden: !this.isAdvanced, part: "tab-button-advanced" })), this.renderTabBasic(), this.renderTabAdvanced())), h("gx-ide-container", { displayBorderTop: true }, h("gxg-button", { id: "button-create", type: "primary-text-only", onClick: this.createKbHandler, part: "button-create", slot: "footer-end" }, this._componentLocale.footer.btnCreate), h("gxg-button", { id: "button-cancel", type: "outlined", onClick: this.cancelKbHandler, part: "button-cancel", slot: "footer-end" }, this._componentLocale.footer.btnCancel)))));
|
|
201
201
|
}
|
|
202
202
|
static get is() { return "gx-ide-new-kb"; }
|
|
203
203
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,6 +9,14 @@
|
|
|
9
9
|
height: 100%;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
.gxi-overflow-auto {
|
|
13
|
+
overflow: auto;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.gxi-display-flex {
|
|
17
|
+
display: flex;
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
.align-start {
|
|
13
21
|
display: flex;
|
|
14
22
|
align-items: start;
|
|
@@ -36,6 +44,22 @@ ch-grid-cell {
|
|
|
36
44
|
display: flex;
|
|
37
45
|
}
|
|
38
46
|
|
|
47
|
+
ch-grid {
|
|
48
|
+
overflow: auto;
|
|
49
|
+
height: 100%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
ch-grid-column {
|
|
53
|
+
/*to be removed when this works inside a component with shadow: true*/
|
|
54
|
+
z-index: 999;
|
|
55
|
+
border-bottom: 1px solid var(--gray-01);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/*Gxg Tabs*/
|
|
59
|
+
gxg-tabs {
|
|
60
|
+
box-shadow: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
39
63
|
/*All components Host should have this class set. !important is set on every rule, since this styles could be overridden by the host user, since they are applied on the host component*/
|
|
40
64
|
:host(.gx-ide-component) {
|
|
41
65
|
box-shadow: var(--box-shadow-01) !important;
|
|
@@ -144,9 +144,9 @@ export class GxIdeNewObject {
|
|
|
144
144
|
return (h(Host, { class: {
|
|
145
145
|
"gxi-new-kb": true,
|
|
146
146
|
"gxi-new-object--shadow": this.shadow
|
|
147
|
-
} }, h("div", { class: "gx-ide-main-wrapper gx-ide-overflow" }, h("main", { class: "main" }, h("gxg-container", {
|
|
147
|
+
} }, h("div", { class: "gx-ide-main-wrapper gx-ide-overflow" }, h("main", { class: "main" }, h("gxg-container", { displayBorderBottom: true }, h("div", { class: "grid first-row" }, this.typeCategories.length > 1 ? (h("gxg-list-box", { "single-selection": true, id: "list-box-category", "the-title": this._componentLocale.categorySelection, height: "100%", onSelectionChanged: this.categoryOnSelectionChangedHandler }, this.typeCategories.map(category => (h("gxg-list-box-item", { key: category.id, value: category.id, icon: category.icon, part: `${category}-${category.id}` }, category.name))))) : null, h("gxg-list-box", { "single-selection": true, id: "list-box-type", "the-title": this._componentLocale.typeSelection, height: "100%", onSelectionChanged: this.typeOnSelectionChangedHandler }, this.selectedCategory.types
|
|
148
148
|
? this.selectedCategory.types.map(type => (h("gxg-list-box-item", { key: `${this.selectedCategory.id}-${type.id}`, icon: type.icon, selected: this.selectedType.id === type.id, part: `${type}-${type.id}` }, type.name)))
|
|
149
|
-
: null), h("gxg-title", { type: "title-05" }, "Text about the ", this.selectedType.name))), h("gxg-container",
|
|
149
|
+
: null), h("gxg-title", { type: "title-05" }, "Text about the ", this.selectedType.name))), h("gxg-container", null, h("div", { class: "grid" }, h("header", { class: "header grid" }, h("gxg-label", { labelPosition: "start" }, this._componentLocale.name), h("gxg-form-text", { "label-position": "start", placeholder: "Name", "max-width": "100%", value: this.name, ref: (el) => (this.nameEl = el), onInput: this.onInputNameHandler, onBlur: this.onBlurNameHandler, part: "name", "display-validation-styles": true, "display-validation-message": true }), h("gxg-label", { labelPosition: "start" }, this._componentLocale.description), h("gxg-form-text", { "label-position": "start", placeholder: "Description", "max-width": "100%", value: this.description, ref: (el) => (this.descriptionEl = el), onInput: this.onInputDescriptionHandler, part: "description", "display-validation-styles": true, "display-validation-message": true }), this.renderModuleFolder()))), h("gxg-container", { displayBorderTop: true }, h("gxg-button", { id: "button-create", slot: "footer", type: "primary-text-only", onClick: this.createCallbackHandler, disabled: !this.nameIsValid, part: "gxg-button gxg-button--create" }, this._componentLocale.footer.btnCreate), h("gxg-button", { id: "button-cancel", slot: "footer", type: "outlined", onClick: this.cancelCallbackHandler, part: "gxg-button gxg-button--cancel" }, this._componentLocale.footer.btnCancel))))));
|
|
150
150
|
}
|
|
151
151
|
static get is() { return "gx-ide-new-object"; }
|
|
152
152
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,6 +9,14 @@
|
|
|
9
9
|
height: 100%;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
.gxi-overflow-auto {
|
|
13
|
+
overflow: auto;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.gxi-display-flex {
|
|
17
|
+
display: flex;
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
.align-start {
|
|
13
21
|
display: flex;
|
|
14
22
|
align-items: start;
|
|
@@ -36,6 +44,22 @@ ch-grid-cell {
|
|
|
36
44
|
display: flex;
|
|
37
45
|
}
|
|
38
46
|
|
|
47
|
+
ch-grid {
|
|
48
|
+
overflow: auto;
|
|
49
|
+
height: 100%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
ch-grid-column {
|
|
53
|
+
/*to be removed when this works inside a component with shadow: true*/
|
|
54
|
+
z-index: 999;
|
|
55
|
+
border-bottom: 1px solid var(--gray-01);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/*Gxg Tabs*/
|
|
59
|
+
gxg-tabs {
|
|
60
|
+
box-shadow: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
39
63
|
/*All components Host should have this class set. !important is set on every rule, since this styles could be overridden by the host user, since they are applied on the host component*/
|
|
40
64
|
:host(.gx-ide-component) {
|
|
41
65
|
box-shadow: var(--box-shadow-01) !important;
|
|
@@ -12,7 +12,7 @@ export class GxIdeObjectSelector {
|
|
|
12
12
|
// 9.LOCAL METHODS //
|
|
13
13
|
this.renderFilter = () => {
|
|
14
14
|
var _a, _b;
|
|
15
|
-
return (h("gxg-container", {
|
|
15
|
+
return (h("gxg-container", { displayBorderBottom: true, containerTitle: this._componentLocale.filter.title, part: "filters-container" }, h("div", { class: "grid filter-grid" }, h("gxg-form-text", { "label-position": "above", label: this._componentLocale.filter.pattern, ref: (el) => (this.filterPatternEl = el), value: this.patternValue, part: "filter-pattern" }), h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.filter.type, value: this.defaultType, disabled: !this.types, "display-validation-styles": true, "display-validation-message": true, ref: (el) => (this.filterTypeEl = el), part: "filter-type" }, renderComboItems((_a = this.types) !== null && _a !== void 0 ? _a : [])), h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.filter.category, value: this.defaultCategory, disabled: !this.categories, "display-validation-styles": true, "display-validation-message": true, ref: (el) => (this.filterCategoryEl = el), part: "filter-category" }, renderComboItems((_b = this.categories) !== null && _b !== void 0 ? _b : [])), h("gx-ide-entity-selector", { label: this._componentLocale.filter.module, "label-position": "above", value: this.defaultModule, defaultValue: this.defaultModule, selectEntityCallback: this.selectModuleCallback, ref: (el) => (this.filterModuleEl = el) }), h("div", { class: "flex with-gap" }, h("gxg-form-checkbox", { label: this._componentLocale.filter.modified, class: "align-center", ref: (el) => (this.filterModifiedEl = el), part: "filter-modified" }), h("gxg-combo-box", { class: { hide: !this.filterModified }, "disable-filter": true, value: this.filterAfterType, "display-validation-styles": true, "display-validation-message": true, ref: (el) => (this.filterAfterTypeEl = el), part: "filter-after-type" }, renderComboItems([
|
|
16
16
|
{
|
|
17
17
|
id: FILTER_AFTER.NONE,
|
|
18
18
|
label: this._componentLocale.filter.afterNone,
|
|
@@ -40,7 +40,7 @@ export class GxIdeObjectSelector {
|
|
|
40
40
|
}, part: "filter-datetime" }, h("gxg-label", { "label-position": "start" }, this._componentLocale.filter.dateTime), h("gxg-date-picker", { ref: (el) => (this.filterModifiedDateEl = el) }))))));
|
|
41
41
|
};
|
|
42
42
|
this.renderObjects = () => {
|
|
43
|
-
return (h("gxg-
|
|
43
|
+
return (h("gxg-grid", { "ellipsis-cell-wrapper": true, noBorder: true }, h("ch-grid", { "row-selection-mode": this.multiSelection ? "multiple" : "single", ref: (el) => (this.chGridEl = el), onKeyDown: this.chGridKeyDownHandler, part: "ch-grid-objects" }, h("ch-grid-columnset", null, h("ch-grid-column", { "column-name-position": "text", settingable: false, size: gridCommon.colSize.auto }), h("ch-grid-column", { "column-name": this._componentLocale.tableHead.name, "column-name-position": "text", settingable: false, size: gridCommon.colSize.common }), h("ch-grid-column", { "column-name": this._componentLocale.tableHead.type, "column-name-position": "text", settingable: false, size: gridCommon.colSize.common }), h("ch-grid-column", { "column-name": this._componentLocale.tableHead.module, "column-name-position": "text", settingable: false, size: gridCommon.colSize.common }), h("ch-grid-column", { "column-name": this._componentLocale.tableHead.description, "column-name-position": "text", settingable: false, size: gridCommon.colSize.common }), h("ch-grid-column", { "column-name": this._componentLocale.tableHead.modifiedDate, "column-name-position": "text", settingable: false, size: gridCommon.colSize.auto }), h("ch-grid-column", { "column-name": this._componentLocale.tableHead.importDate, "column-name-position": "text", settingable: false, size: gridCommon.colSize.auto })), this.objects.map((obj) => (h("ch-grid-row", { rowid: obj.id, onDblClick: this.openSelectionCallbackHandler }, h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, h("gxg-icon", { type: obj.icon, color: "auto" }))), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, " ", obj.name, " ")), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, obj.type)), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, obj.module)), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, obj.description)), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, `${formatDate(obj.modifiedDate, "date-time")}`)), h("ch-grid-cell", null, h("span", { class: "cell-wrapper" }, `${formatDate(obj.importDate, "date")}`))))))));
|
|
44
44
|
};
|
|
45
45
|
this.getObjects = () => {
|
|
46
46
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -158,6 +158,9 @@ export class GxIdeObjectSelector {
|
|
|
158
158
|
this.listenChanges();
|
|
159
159
|
this.getObjects();
|
|
160
160
|
}
|
|
161
|
+
componentDidRender() {
|
|
162
|
+
this.componentDidRenderEvent.emit(this._componentLocale.componentName);
|
|
163
|
+
}
|
|
161
164
|
// 7.LISTENERS //
|
|
162
165
|
// 8.PUBLIC METHODS API //
|
|
163
166
|
/**
|
|
@@ -169,7 +172,7 @@ export class GxIdeObjectSelector {
|
|
|
169
172
|
}
|
|
170
173
|
// 10.RENDER() FUNCTION //
|
|
171
174
|
render() {
|
|
172
|
-
return (h(Host, { class: "gx-ide-component", onKeyPress: this.hostKeyPressHandler }, h("div", { class: "gx-ide-main-wrapper
|
|
175
|
+
return (h(Host, { class: "gx-ide-component", onKeyPress: this.hostKeyPressHandler }, h("div", { class: "gx-ide-main-wrapper" }, this.renderFilter(), this.renderObjects(), h("gxg-container", { displayBorderTop: true }, h("div", { class: "grid objects-count" }, h("gxg-text", { class: "align-end", part: "objects-selected" }, `${this.selectedObjectsIds.length} ${this._componentLocale.objCount.selected}`), h("gxg-text", { class: "align-end", part: "objects-matching" }, `${this.objects.length} ${this._componentLocale.objCount.matching}`))), h("gxg-container", { displayBorderTop: true }, h("div", { class: "grid actions" }, h("div", null, h("gxg-button", { id: "button-select-all", type: "primary-text-only", onClick: this.selectAll, part: "gxg-button gxg-button--select-all" }, this._componentLocale.footer.btnSelectAll), h("gxg-button", { id: "button-new", type: "primary-text-only", onClick: this.newObjectCallbackHandle, part: "gxg-button gxg-button--new" }, this._componentLocale.footer.btnNew)), h("div", null, h("gxg-button", { id: "button-ok", type: "primary-text-only", onClick: this.openSelectionCallbackHandler, part: "gxg-button gxg-button--ok" }, this._componentLocale.footer.btnConfirm), h("gxg-button", { id: "button-cancel", type: "outlined", onClick: this.cancelCallbackHandle, part: "gxg-button gxg-button--cancel" }, this._componentLocale.footer.btnCancel)))))));
|
|
173
176
|
}
|
|
174
177
|
static get is() { return "gx-ide-object-selector"; }
|
|
175
178
|
static get encapsulation() { return "shadow"; }
|
|
@@ -421,6 +424,21 @@ export class GxIdeObjectSelector {
|
|
|
421
424
|
}
|
|
422
425
|
static get events() {
|
|
423
426
|
return [{
|
|
427
|
+
"method": "componentDidRenderEvent",
|
|
428
|
+
"name": "componentDidRenderEvent",
|
|
429
|
+
"bubbles": true,
|
|
430
|
+
"cancelable": true,
|
|
431
|
+
"composed": true,
|
|
432
|
+
"docs": {
|
|
433
|
+
"tags": [],
|
|
434
|
+
"text": "This event is emitted once just after the component is fully loaded and the first render() occurs"
|
|
435
|
+
},
|
|
436
|
+
"complexType": {
|
|
437
|
+
"original": "boolean",
|
|
438
|
+
"resolved": "boolean",
|
|
439
|
+
"references": {}
|
|
440
|
+
}
|
|
441
|
+
}, {
|
|
424
442
|
"method": "componentDidLoadEvent",
|
|
425
443
|
"name": "componentDidLoadEvent",
|
|
426
444
|
"bubbles": true,
|