@genexus/genexus-ide-ui 0.0.22 → 0.0.24
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-action-group_2.cjs.entry.js +211 -0
- package/dist/cjs/ch-dropdown-item.cjs.entry.js +36 -5
- package/dist/cjs/ch-dropdown.cjs.entry.js +50 -52
- package/dist/cjs/{ch-grid_4.cjs.entry.js → ch-grid_8.cjs.entry.js} +143 -0
- package/dist/cjs/{ch-suggest_5.cjs.entry.js → ch-suggest_4.cjs.entry.js} +0 -65
- package/dist/cjs/ch-test-action-group.cjs.entry.js +79 -0
- package/dist/cjs/ch-test-dropdown.cjs.entry.js +54 -0
- package/dist/cjs/ch-window_2.cjs.entry.js +25 -6
- package/dist/cjs/format-date-f2c49d1a.js +28 -0
- package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +15 -35
- package/dist/cjs/gx-ide-team-dev-select-recent-comment.cjs.entry.js +5 -15
- package/dist/cjs/gx-ide-team-dev-update-partial-selection.cjs.entry.js +102 -0
- package/dist/cjs/gx-ide-team-dev-update-to-revision.cjs.entry.js +53 -0
- package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +278 -0
- package/dist/cjs/gx-ide-top-bar.cjs.entry.js +37 -0
- package/dist/cjs/{gxg-combo-box_8.cjs.entry.js → gxg-combo-box_6.cjs.entry.js} +0 -132
- package/dist/cjs/gxg-form-checkbox-group_2.cjs.entry.js +140 -0
- package/dist/cjs/{gx-ide-top-bar_2.cjs.entry.js → gxg-form-radio-group.cjs.entry.js} +0 -31
- package/dist/cjs/gxg-text.cjs.entry.js +72 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +7 -0
- package/dist/collection/common/format-date.js +11 -0
- package/dist/collection/components/team-dev-commit/gx-ide-assets/team-dev-commit/langs/team-dev-commit.lang.en.json +1 -1
- package/dist/collection/components/team-dev-commit/team-dev-commit.js +35 -26
- package/dist/collection/components/team-dev-select-recent-comment/team-dev-select-recent-comment.js +6 -16
- package/dist/collection/components/team-dev-update/gx-ide-assets/team-dev-update/langs/team-dev-update.lang.en.json +45 -0
- package/dist/collection/components/team-dev-update/gx-ide-assets/team-dev-update/langs/team-dev-update.lang.ja.json +3 -0
- package/dist/collection/components/team-dev-update/gx-ide-assets/team-dev-update/langs/team-dev-update.lang.zh.json +3 -0
- package/dist/collection/components/team-dev-update/team-dev-update.css +216 -0
- package/dist/collection/components/team-dev-update/team-dev-update.js +524 -0
- package/dist/collection/components/team-dev-update-partial-selection/gx-ide-assets/team-dev-update-partial-selection/langs/team-dev-update-partial-selection.lang.en.json +15 -0
- package/dist/collection/components/team-dev-update-partial-selection/gx-ide-assets/team-dev-update-partial-selection/langs/team-dev-update-partial-selection.lang.ja.json +3 -0
- package/dist/collection/components/team-dev-update-partial-selection/gx-ide-assets/team-dev-update-partial-selection/langs/team-dev-update-partial-selection.lang.zh.json +3 -0
- package/dist/collection/components/team-dev-update-partial-selection/team-dev-update-partial-selection.css +149 -0
- package/dist/collection/components/team-dev-update-partial-selection/team-dev-update-partial-selection.js +238 -0
- package/dist/collection/components/team-dev-update-to-revision/gx-ide-assets/team-dev-update-to-revision/langs/team-dev-update-to-revision.lang.en.json +11 -0
- package/dist/collection/components/team-dev-update-to-revision/gx-ide-assets/team-dev-update-to-revision/langs/team-dev-update-to-revision.lang.ja.json +3 -0
- package/dist/collection/components/team-dev-update-to-revision/gx-ide-assets/team-dev-update-to-revision/langs/team-dev-update-to-revision.lang.zh.json +3 -0
- package/dist/collection/components/team-dev-update-to-revision/team-dev-update-to-revision.css +147 -0
- package/dist/collection/components/team-dev-update-to-revision/team-dev-update-to-revision.js +136 -0
- package/dist/components/action-group-item.js +54 -0
- package/dist/components/action-group.js +214 -0
- package/dist/components/ch-action-group-item.js +6 -0
- package/dist/components/ch-action-group.js +6 -0
- package/dist/components/ch-dropdown-item-separator.js +1 -28
- package/dist/components/ch-dropdown-item.js +1 -53
- package/dist/components/ch-dropdown.js +1 -284
- package/dist/components/ch-grid-rowset-empty.js +1 -24
- package/dist/components/ch-grid-rowset-empty2.js +26 -0
- package/dist/components/ch-test-action-group.js +137 -0
- package/dist/components/ch-test-dropdown.js +104 -0
- package/dist/components/ch-window2.js +25 -6
- package/dist/components/dropdown-item-separator.js +30 -0
- package/dist/components/dropdown-item.js +109 -0
- package/dist/components/dropdown.js +294 -0
- package/dist/components/format-date.js +25 -0
- package/dist/components/gx-ide-team-dev-commit.js +16 -35
- package/dist/components/gx-ide-team-dev-select-recent-comment.js +5 -15
- package/dist/components/gx-ide-team-dev-update-partial-selection.d.ts +11 -0
- package/dist/components/gx-ide-team-dev-update-partial-selection.js +213 -0
- package/dist/components/gx-ide-team-dev-update-to-revision.d.ts +11 -0
- package/dist/components/gx-ide-team-dev-update-to-revision.js +131 -0
- package/dist/components/gx-ide-team-dev-update.d.ts +11 -0
- package/dist/components/gx-ide-team-dev-update.js +473 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +7 -0
- package/dist/esm/ch-action-group_2.entry.js +206 -0
- package/dist/esm/ch-dropdown-item.entry.js +36 -5
- package/dist/esm/ch-dropdown.entry.js +50 -52
- package/dist/esm/{ch-grid_4.entry.js → ch-grid_8.entry.js} +140 -1
- package/dist/esm/{ch-suggest_5.entry.js → ch-suggest_4.entry.js} +1 -65
- package/dist/esm/ch-test-action-group.entry.js +75 -0
- package/dist/esm/ch-test-dropdown.entry.js +50 -0
- package/dist/esm/ch-window_2.entry.js +25 -6
- package/dist/esm/format-date-e9ca0786.js +25 -0
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-team-dev-commit.entry.js +15 -35
- package/dist/esm/gx-ide-team-dev-select-recent-comment.entry.js +5 -15
- package/dist/esm/gx-ide-team-dev-update-partial-selection.entry.js +98 -0
- package/dist/esm/gx-ide-team-dev-update-to-revision.entry.js +49 -0
- package/dist/esm/gx-ide-team-dev-update.entry.js +274 -0
- package/dist/esm/gx-ide-top-bar.entry.js +33 -0
- package/dist/esm/{gxg-combo-box_8.entry.js → gxg-combo-box_6.entry.js} +2 -132
- package/dist/esm/gxg-form-checkbox-group_2.entry.js +135 -0
- package/dist/esm/{gx-ide-top-bar_2.entry.js → gxg-form-radio-group.entry.js} +2 -32
- package/dist/esm/gxg-text.entry.js +68 -0
- package/dist/esm/loader.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-commit/langs/team-dev-commit.lang.en.json +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update/langs/team-dev-update.lang.en.json +45 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update/langs/team-dev-update.lang.ja.json +3 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update/langs/team-dev-update.lang.zh.json +3 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-partial-selection/langs/team-dev-update-partial-selection.lang.en.json +15 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-partial-selection/langs/team-dev-update-partial-selection.lang.ja.json +3 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-partial-selection/langs/team-dev-update-partial-selection.lang.zh.json +3 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-to-revision/langs/team-dev-update-to-revision.lang.en.json +11 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-to-revision/langs/team-dev-update-to-revision.lang.ja.json +3 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-to-revision/langs/team-dev-update-to-revision.lang.zh.json +3 -0
- package/dist/genexus-ide-ui/p-097a3eeb.entry.js +1 -0
- package/dist/genexus-ide-ui/p-16bd5578.entry.js +1 -0
- package/dist/genexus-ide-ui/p-32b8abf6.entry.js +1 -0
- package/dist/genexus-ide-ui/p-3bdcb73b.entry.js +1 -0
- package/dist/genexus-ide-ui/p-4bbe1c18.entry.js +1 -0
- package/dist/genexus-ide-ui/p-53d36ef7.entry.js +1 -0
- package/dist/genexus-ide-ui/p-5884a014.entry.js +1 -0
- package/dist/genexus-ide-ui/p-5c64c57f.entry.js +1 -0
- package/dist/genexus-ide-ui/p-5ff04ebe.entry.js +1 -0
- package/dist/genexus-ide-ui/p-6e80380b.entry.js +1 -0
- package/dist/genexus-ide-ui/p-718759e7.entry.js +1 -0
- package/dist/genexus-ide-ui/p-72303355.js +1 -0
- package/dist/genexus-ide-ui/p-757f8567.entry.js +1 -0
- package/dist/genexus-ide-ui/p-9c82381c.entry.js +1 -0
- package/dist/genexus-ide-ui/p-a0e85c2a.entry.js +1 -0
- package/dist/genexus-ide-ui/p-afe9515e.entry.js +1 -0
- package/dist/genexus-ide-ui/p-dbebb1a0.entry.js +1 -0
- package/dist/genexus-ide-ui/p-f8561da6.entry.js +1 -0
- package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/action-group/action-group.css +48 -0
- package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/action-group-item/action-group-item.css +4 -0
- package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/dropdown/dropdown.css +32 -88
- package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/dropdown-item/dropdown-item.css +9 -22
- package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/test/test-action-group/test-action-group.css +52 -0
- package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/test/test-dropdown/test-dropdown.css +36 -0
- package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/window/ch-window.css +3 -1
- package/dist/types/common/format-date.d.ts +1 -0
- package/dist/types/common/types.d.ts +1 -0
- package/dist/types/components/team-dev-commit/team-dev-commit.d.ts +13 -7
- package/dist/types/components/team-dev-select-recent-comment/team-dev-select-recent-comment.d.ts +1 -31
- package/dist/types/components/team-dev-update/team-dev-update.d.ts +173 -0
- package/dist/types/components/team-dev-update-partial-selection/team-dev-update-partial-selection.d.ts +61 -0
- package/dist/types/components/team-dev-update-to-revision/team-dev-update-to-revision.d.ts +41 -0
- package/dist/types/components.d.ts +216 -2
- package/package.json +3 -3
- package/dist/cjs/ch-grid-column-resize_4.cjs.entry.js +0 -150
- package/dist/esm/ch-grid-column-resize_4.entry.js +0 -143
- package/dist/genexus-ide-ui/p-04f094d1.entry.js +0 -1
- package/dist/genexus-ide-ui/p-192f1342.entry.js +0 -1
- package/dist/genexus-ide-ui/p-54cef7ae.entry.js +0 -1
- package/dist/genexus-ide-ui/p-554ed73a.entry.js +0 -1
- package/dist/genexus-ide-ui/p-6d378d61.entry.js +0 -1
- package/dist/genexus-ide-ui/p-b26b5d74.entry.js +0 -1
- package/dist/genexus-ide-ui/p-c10d5f34.entry.js +0 -1
- package/dist/genexus-ide-ui/p-d5c29251.entry.js +0 -1
- package/dist/genexus-ide-ui/p-f1a3397d.entry.js +0 -1
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/*Gemini*/
|
|
2
|
+
/*Gx Ide*/
|
|
3
|
+
/* Helper Classes */
|
|
4
|
+
.gxi-hidden {
|
|
5
|
+
display: none !important;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.gxi-full-height {
|
|
9
|
+
height: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.align-start {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: start;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.align-center {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.align-end {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: end;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Grids */
|
|
28
|
+
.grid {
|
|
29
|
+
display: grid;
|
|
30
|
+
grid-row-gap: var(--gx-ide-grid-row-gap);
|
|
31
|
+
grid-column-gap: var(--gx-ide-grid-column-gap);
|
|
32
|
+
grid-template-rows: auto;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/*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*/
|
|
36
|
+
:host(.gx-ide-component) {
|
|
37
|
+
box-shadow: var(--box-shadow-01) !important;
|
|
38
|
+
height: 100% !important;
|
|
39
|
+
display: flex !important;
|
|
40
|
+
flex-direction: column !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/*stylize the top bar*/
|
|
44
|
+
:host(:focus-within) gx-ide-top-bar::part(wrapper) {
|
|
45
|
+
background-color: var(--color-secondary-enabled);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Main wrapper (should be the first element inside the host. Everything should be inside .gx-ide-main-wrapper) */
|
|
49
|
+
.gx-ide-main-wrapper {
|
|
50
|
+
color: var(--gx-ide-component-text-color);
|
|
51
|
+
font-weight: var(--font-weight-regular);
|
|
52
|
+
font-size: var(--font-size-lg);
|
|
53
|
+
line-height: 1.6em;
|
|
54
|
+
height: 100%;
|
|
55
|
+
background-color: var(--gx-ide-component-background-color);
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
flex-grow: 1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/*This is the main element. This is the one that take the remaining vertical space*/
|
|
62
|
+
.gx-ide-main {
|
|
63
|
+
flex-grow: 1;
|
|
64
|
+
overflow-y: auto;
|
|
65
|
+
/* Track */
|
|
66
|
+
/* Handle */
|
|
67
|
+
/* Handle on hover */
|
|
68
|
+
}
|
|
69
|
+
.gx-ide-main::-webkit-scrollbar {
|
|
70
|
+
width: 6px;
|
|
71
|
+
height: 6px;
|
|
72
|
+
}
|
|
73
|
+
.gx-ide-main::-webkit-scrollbar-track {
|
|
74
|
+
background-color: var(--gray-02);
|
|
75
|
+
border-radius: 10px;
|
|
76
|
+
}
|
|
77
|
+
.gx-ide-main::-webkit-scrollbar-thumb {
|
|
78
|
+
background: var(--gray-05);
|
|
79
|
+
border-radius: 10px;
|
|
80
|
+
}
|
|
81
|
+
.gx-ide-main::-webkit-scrollbar-thumb:hover {
|
|
82
|
+
background: var(--gray-04);
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
}
|
|
85
|
+
.gx-ide-main .gxg-scroll {
|
|
86
|
+
display: block;
|
|
87
|
+
overflow-y: auto;
|
|
88
|
+
padding-inline-end: 2px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.gx-ide-overflow {
|
|
92
|
+
overflow-y: auto;
|
|
93
|
+
/* Track */
|
|
94
|
+
/* Handle */
|
|
95
|
+
/* Handle on hover */
|
|
96
|
+
}
|
|
97
|
+
.gx-ide-overflow::-webkit-scrollbar {
|
|
98
|
+
width: 6px;
|
|
99
|
+
height: 6px;
|
|
100
|
+
}
|
|
101
|
+
.gx-ide-overflow::-webkit-scrollbar-track {
|
|
102
|
+
background-color: var(--gray-02);
|
|
103
|
+
border-radius: 10px;
|
|
104
|
+
}
|
|
105
|
+
.gx-ide-overflow::-webkit-scrollbar-thumb {
|
|
106
|
+
background: var(--gray-05);
|
|
107
|
+
border-radius: 10px;
|
|
108
|
+
}
|
|
109
|
+
.gx-ide-overflow::-webkit-scrollbar-thumb:hover {
|
|
110
|
+
background: var(--gray-04);
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
}
|
|
113
|
+
.gx-ide-overflow .gxg-scroll {
|
|
114
|
+
display: block;
|
|
115
|
+
overflow-y: auto;
|
|
116
|
+
padding-inline-end: 2px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/*Gemini*/
|
|
120
|
+
/*Gx Ide*/
|
|
121
|
+
:host {
|
|
122
|
+
display: block;
|
|
123
|
+
border: 1px solid var(--gxg-border-color--regular);
|
|
124
|
+
background-color: var(--color-background);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:host(.gxi-object-selector--shadow) {
|
|
128
|
+
border: none;
|
|
129
|
+
box-shadow: var(--box-shadow-01);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.top-actions {
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
justify-content: flex-end;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* Objects Table */
|
|
139
|
+
.actions {
|
|
140
|
+
grid-template-columns: repeat(2, 1fr);
|
|
141
|
+
}
|
|
142
|
+
.actions > * {
|
|
143
|
+
display: flex;
|
|
144
|
+
flex-direction: row;
|
|
145
|
+
gap: var(--gx-ide-grid-row-gap);
|
|
146
|
+
}
|
|
147
|
+
.actions > *:nth-child(2) {
|
|
148
|
+
justify-content: flex-end;
|
|
149
|
+
}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
/* STENCIL IMPORTS */
|
|
2
|
+
import { Host, h } from "@stencil/core";
|
|
3
|
+
/* OTHER LIBRARIES IMPORTS */
|
|
4
|
+
/* CUSTOM IMPORTS */
|
|
5
|
+
import { Locale } from "../../common/locale";
|
|
6
|
+
export class GxIdeTeamDevUpdatePartialSelection {
|
|
7
|
+
constructor() {
|
|
8
|
+
// 9.LOCAL METHODS //
|
|
9
|
+
this.handleKeyDownEvent = (add) => {
|
|
10
|
+
if (add) {
|
|
11
|
+
document.addEventListener("keydown", this.keyDownEventHandler);
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
document.removeEventListener("keydown", this.keyDownEventHandler);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
this.keyDownEventHandler = (e) => {
|
|
18
|
+
console.log(e.detail);
|
|
19
|
+
};
|
|
20
|
+
this.renderObjects = () => {
|
|
21
|
+
return (h("gxg-grid", null, h("ch-grid", { "row-selection-mode": "multiple", ref: (el) => (this.chGridEl = el), part: "ch-grid-objects" }, h("ch-grid-columnset", null, h("ch-grid-column", { columnName: "", settingable: false, sortable: false }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.name, settingable: false }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.type, settingable: false }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.description, settingable: false }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.modifiedOn, settingable: false })), this.selection.map((obj) => (h("ch-grid-row", { rowid: obj.id }, h("ch-grid-cell", null, h("gxg-icon", { type: obj.typeIcon })), h("ch-grid-cell", null, " ", obj.name, " "), h("ch-grid-cell", null, " ", obj.type, " "), h("ch-grid-cell", null, " ", obj.description, " "), h("ch-grid-cell", null, `${obj.modifiedOn.toISOString().slice(0, 10)}`)))))));
|
|
22
|
+
};
|
|
23
|
+
this.getObjects = () => {
|
|
24
|
+
this.addCallback().then((items) => {
|
|
25
|
+
if ((items === null || items === void 0 ? void 0 : items.length) > 0) {
|
|
26
|
+
this.selection = [...this.selection, ...items];
|
|
27
|
+
this.selectedObjectsIds = [];
|
|
28
|
+
this.deselectAll();
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
this.removeObjects = () => {
|
|
33
|
+
this.selection = this.selection.filter(item => !this.selectedObjectsIds.includes(item.id));
|
|
34
|
+
this.selectedObjectsIds = [];
|
|
35
|
+
this.deselectAll();
|
|
36
|
+
};
|
|
37
|
+
this.confirm = () => {
|
|
38
|
+
this.confirmCallback(this.selectedObjectsIds);
|
|
39
|
+
};
|
|
40
|
+
this.cancel = () => {
|
|
41
|
+
this.cancelCallback();
|
|
42
|
+
};
|
|
43
|
+
this.deselectAll = () => {
|
|
44
|
+
this.chGridEl.selectAllRows(false);
|
|
45
|
+
};
|
|
46
|
+
this.listenChanges = () => {
|
|
47
|
+
// for grid selection
|
|
48
|
+
this.chGridEl.addEventListener("selectionChanged", (ev) => {
|
|
49
|
+
this.selectedObjectsIds = ev.detail.rowsId;
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
this.addCallback = undefined;
|
|
53
|
+
this.cancelCallback = undefined;
|
|
54
|
+
this.confirmCallback = undefined;
|
|
55
|
+
this.selection = [];
|
|
56
|
+
this.selectedObjectsIds = [];
|
|
57
|
+
}
|
|
58
|
+
// 6.COMPONENT LIFECYCLE EVENTS //
|
|
59
|
+
async componentWillLoad() {
|
|
60
|
+
this._componentLocale = await Locale.getComponentStrings(this.el);
|
|
61
|
+
this.componentDidLoadEvent.emit(true);
|
|
62
|
+
this.handleKeyDownEvent(true);
|
|
63
|
+
}
|
|
64
|
+
componentDidLoad() {
|
|
65
|
+
this.listenChanges();
|
|
66
|
+
}
|
|
67
|
+
// 7.LISTENERS //
|
|
68
|
+
keyDownHandler(eventInfo) {
|
|
69
|
+
if (document.activeElement === this.el) {
|
|
70
|
+
switch (eventInfo.key) {
|
|
71
|
+
case "Delete":
|
|
72
|
+
this.removeObjects();
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
// 8.PUBLIC METHODS API //
|
|
78
|
+
/**
|
|
79
|
+
* Validate necessary data input
|
|
80
|
+
*/
|
|
81
|
+
async validate() {
|
|
82
|
+
const isValid = true;
|
|
83
|
+
return isValid;
|
|
84
|
+
}
|
|
85
|
+
// 10.RENDER() FUNCTION //
|
|
86
|
+
render() {
|
|
87
|
+
return (h(Host, { class: {
|
|
88
|
+
"gxi-team-dev-update-partial-selection": true
|
|
89
|
+
} }, h("div", { class: `main-wrapper` }, h("gxg-container", { containerTitle: this._componentLocale.title }, h("div", { class: "top-actions" }, h("gxg-button", { id: "button-add", type: "secondary-icon-only", icon: "gemini-tools/add-circle", onClick: this.getObjects, part: "gxg-button gxg-button--add" }), h("gxg-button", { id: "button-remove", type: "secondary-icon-only", icon: "gemini-tools/minus-circle", onClick: this.removeObjects, part: "gxg-button gxg-button--remove" })), this.renderObjects(), h("gxg-container", { displayBorderTop: true }, h("div", { class: "grid actions" }, h("div", null, h("gxg-button", { id: "button-clear", type: "primary-text-only", onClick: this.deselectAll, part: "gxg-button gxg-button--clear" }, this._componentLocale.footer.btnClear)), h("div", null, h("gxg-button", { id: "button-ok", type: "primary-text-only", onClick: this.confirm, part: "gxg-button gxg-button--ok" }, this._componentLocale.footer.btnOk), h("gxg-button", { id: "button-cancel", type: "outlined", onClick: this.cancel, part: "gxg-button gxg-button--cancel" }, this._componentLocale.footer.btnCancel))))))));
|
|
90
|
+
}
|
|
91
|
+
static get is() { return "gx-ide-team-dev-update-partial-selection"; }
|
|
92
|
+
static get encapsulation() { return "shadow"; }
|
|
93
|
+
static get originalStyleUrls() {
|
|
94
|
+
return {
|
|
95
|
+
"$": ["team-dev-update-partial-selection.scss"]
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
static get styleUrls() {
|
|
99
|
+
return {
|
|
100
|
+
"$": ["team-dev-update-partial-selection.css"]
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
static get assetsDirs() { return ["gx-ide-assets/team-dev-update-partial-selection"]; }
|
|
104
|
+
static get properties() {
|
|
105
|
+
return {
|
|
106
|
+
"addCallback": {
|
|
107
|
+
"type": "unknown",
|
|
108
|
+
"mutable": false,
|
|
109
|
+
"complexType": {
|
|
110
|
+
"original": "AddCallbackFn",
|
|
111
|
+
"resolved": "() => Promise<ObjectData[]>",
|
|
112
|
+
"references": {
|
|
113
|
+
"AddCallbackFn": {
|
|
114
|
+
"location": "local"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"required": true,
|
|
119
|
+
"optional": false,
|
|
120
|
+
"docs": {
|
|
121
|
+
"tags": [],
|
|
122
|
+
"text": "This is a function provided by the developer that return a list of new objects to populate the table of objects."
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"cancelCallback": {
|
|
126
|
+
"type": "unknown",
|
|
127
|
+
"mutable": false,
|
|
128
|
+
"complexType": {
|
|
129
|
+
"original": "CancelCallbackFn",
|
|
130
|
+
"resolved": "() => Promise<void>",
|
|
131
|
+
"references": {
|
|
132
|
+
"CancelCallbackFn": {
|
|
133
|
+
"location": "local"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"required": true,
|
|
138
|
+
"optional": false,
|
|
139
|
+
"docs": {
|
|
140
|
+
"tags": [],
|
|
141
|
+
"text": "This is a function provided by the developer for execute when cancel button is pressed."
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"confirmCallback": {
|
|
145
|
+
"type": "unknown",
|
|
146
|
+
"mutable": false,
|
|
147
|
+
"complexType": {
|
|
148
|
+
"original": "ConfirmCallbackFn",
|
|
149
|
+
"resolved": "(ids: string[]) => Promise<void>",
|
|
150
|
+
"references": {
|
|
151
|
+
"ConfirmCallbackFn": {
|
|
152
|
+
"location": "local"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"required": true,
|
|
157
|
+
"optional": false,
|
|
158
|
+
"docs": {
|
|
159
|
+
"tags": [],
|
|
160
|
+
"text": "This is a function provided by the developer and is invoked when the action confirm is executed passing the selected objects of the grid"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"selection": {
|
|
164
|
+
"type": "unknown",
|
|
165
|
+
"mutable": true,
|
|
166
|
+
"complexType": {
|
|
167
|
+
"original": "ObjectData[]",
|
|
168
|
+
"resolved": "ObjectData[]",
|
|
169
|
+
"references": {
|
|
170
|
+
"ObjectData": {
|
|
171
|
+
"location": "local"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"required": false,
|
|
176
|
+
"optional": false,
|
|
177
|
+
"docs": {
|
|
178
|
+
"tags": [],
|
|
179
|
+
"text": "The categories render in the filter category selector"
|
|
180
|
+
},
|
|
181
|
+
"defaultValue": "[]"
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
static get states() {
|
|
186
|
+
return {
|
|
187
|
+
"selectedObjectsIds": {}
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
static get events() {
|
|
191
|
+
return [{
|
|
192
|
+
"method": "componentDidLoadEvent",
|
|
193
|
+
"name": "componentDidLoadEvent",
|
|
194
|
+
"bubbles": true,
|
|
195
|
+
"cancelable": true,
|
|
196
|
+
"composed": true,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [],
|
|
199
|
+
"text": "This event is emitted once just after the component is fully loaded and the first render() occurs."
|
|
200
|
+
},
|
|
201
|
+
"complexType": {
|
|
202
|
+
"original": "boolean",
|
|
203
|
+
"resolved": "boolean",
|
|
204
|
+
"references": {}
|
|
205
|
+
}
|
|
206
|
+
}];
|
|
207
|
+
}
|
|
208
|
+
static get methods() {
|
|
209
|
+
return {
|
|
210
|
+
"validate": {
|
|
211
|
+
"complexType": {
|
|
212
|
+
"signature": "() => Promise<boolean>",
|
|
213
|
+
"parameters": [],
|
|
214
|
+
"references": {
|
|
215
|
+
"Promise": {
|
|
216
|
+
"location": "global"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"return": "Promise<boolean>"
|
|
220
|
+
},
|
|
221
|
+
"docs": {
|
|
222
|
+
"text": "Validate necessary data input",
|
|
223
|
+
"tags": []
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
static get elementRef() { return "el"; }
|
|
229
|
+
static get listeners() {
|
|
230
|
+
return [{
|
|
231
|
+
"name": "keydown",
|
|
232
|
+
"method": "keyDownHandler",
|
|
233
|
+
"target": undefined,
|
|
234
|
+
"capture": false,
|
|
235
|
+
"passive": true
|
|
236
|
+
}];
|
|
237
|
+
}
|
|
238
|
+
}
|
package/dist/collection/components/team-dev-update-to-revision/team-dev-update-to-revision.css
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/*Gemini*/
|
|
2
|
+
/*Gx Ide*/
|
|
3
|
+
/* Helper Classes */
|
|
4
|
+
.gxi-hidden {
|
|
5
|
+
display: none !important;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.gxi-full-height {
|
|
9
|
+
height: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.align-start {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: start;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.align-center {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.align-end {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: end;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Grids */
|
|
28
|
+
.grid {
|
|
29
|
+
display: grid;
|
|
30
|
+
grid-row-gap: var(--gx-ide-grid-row-gap);
|
|
31
|
+
grid-column-gap: var(--gx-ide-grid-column-gap);
|
|
32
|
+
grid-template-rows: auto;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/*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*/
|
|
36
|
+
:host(.gx-ide-component) {
|
|
37
|
+
box-shadow: var(--box-shadow-01) !important;
|
|
38
|
+
height: 100% !important;
|
|
39
|
+
display: flex !important;
|
|
40
|
+
flex-direction: column !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/*stylize the top bar*/
|
|
44
|
+
:host(:focus-within) gx-ide-top-bar::part(wrapper) {
|
|
45
|
+
background-color: var(--color-secondary-enabled);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Main wrapper (should be the first element inside the host. Everything should be inside .gx-ide-main-wrapper) */
|
|
49
|
+
.gx-ide-main-wrapper {
|
|
50
|
+
color: var(--gx-ide-component-text-color);
|
|
51
|
+
font-weight: var(--font-weight-regular);
|
|
52
|
+
font-size: var(--font-size-lg);
|
|
53
|
+
line-height: 1.6em;
|
|
54
|
+
height: 100%;
|
|
55
|
+
background-color: var(--gx-ide-component-background-color);
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
flex-grow: 1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/*This is the main element. This is the one that take the remaining vertical space*/
|
|
62
|
+
.gx-ide-main {
|
|
63
|
+
flex-grow: 1;
|
|
64
|
+
overflow-y: auto;
|
|
65
|
+
/* Track */
|
|
66
|
+
/* Handle */
|
|
67
|
+
/* Handle on hover */
|
|
68
|
+
}
|
|
69
|
+
.gx-ide-main::-webkit-scrollbar {
|
|
70
|
+
width: 6px;
|
|
71
|
+
height: 6px;
|
|
72
|
+
}
|
|
73
|
+
.gx-ide-main::-webkit-scrollbar-track {
|
|
74
|
+
background-color: var(--gray-02);
|
|
75
|
+
border-radius: 10px;
|
|
76
|
+
}
|
|
77
|
+
.gx-ide-main::-webkit-scrollbar-thumb {
|
|
78
|
+
background: var(--gray-05);
|
|
79
|
+
border-radius: 10px;
|
|
80
|
+
}
|
|
81
|
+
.gx-ide-main::-webkit-scrollbar-thumb:hover {
|
|
82
|
+
background: var(--gray-04);
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
}
|
|
85
|
+
.gx-ide-main .gxg-scroll {
|
|
86
|
+
display: block;
|
|
87
|
+
overflow-y: auto;
|
|
88
|
+
padding-inline-end: 2px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.gx-ide-overflow {
|
|
92
|
+
overflow-y: auto;
|
|
93
|
+
/* Track */
|
|
94
|
+
/* Handle */
|
|
95
|
+
/* Handle on hover */
|
|
96
|
+
}
|
|
97
|
+
.gx-ide-overflow::-webkit-scrollbar {
|
|
98
|
+
width: 6px;
|
|
99
|
+
height: 6px;
|
|
100
|
+
}
|
|
101
|
+
.gx-ide-overflow::-webkit-scrollbar-track {
|
|
102
|
+
background-color: var(--gray-02);
|
|
103
|
+
border-radius: 10px;
|
|
104
|
+
}
|
|
105
|
+
.gx-ide-overflow::-webkit-scrollbar-thumb {
|
|
106
|
+
background: var(--gray-05);
|
|
107
|
+
border-radius: 10px;
|
|
108
|
+
}
|
|
109
|
+
.gx-ide-overflow::-webkit-scrollbar-thumb:hover {
|
|
110
|
+
background: var(--gray-04);
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
}
|
|
113
|
+
.gx-ide-overflow .gxg-scroll {
|
|
114
|
+
display: block;
|
|
115
|
+
overflow-y: auto;
|
|
116
|
+
padding-inline-end: 2px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/*Gemini*/
|
|
120
|
+
/*Gx Ide*/
|
|
121
|
+
:host {
|
|
122
|
+
display: block;
|
|
123
|
+
border: 1px solid var(--gxg-border-color--regular);
|
|
124
|
+
background-color: var(--color-background);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:host(.gxi-object-selector--shadow) {
|
|
128
|
+
border: none;
|
|
129
|
+
box-shadow: var(--box-shadow-01);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.revision-number {
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
gap: var(--gx-ide-grid-row-gap);
|
|
136
|
+
}
|
|
137
|
+
.revision-number > :nth-child(2) {
|
|
138
|
+
width: auto !important;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* Objects Table */
|
|
142
|
+
.actions {
|
|
143
|
+
display: flex;
|
|
144
|
+
justify-content: flex-end;
|
|
145
|
+
align-items: center;
|
|
146
|
+
gap: var(--gx-ide-grid-row-gap);
|
|
147
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/* STENCIL IMPORTS */
|
|
2
|
+
import { Host, h } from "@stencil/core";
|
|
3
|
+
/* OTHER LIBRARIES IMPORTS */
|
|
4
|
+
/* CUSTOM IMPORTS */
|
|
5
|
+
import { Locale } from "../../common/locale";
|
|
6
|
+
export class GxIdeTeamDevUpdateToRevision {
|
|
7
|
+
constructor() {
|
|
8
|
+
// 9.LOCAL METHODS //
|
|
9
|
+
this.confirm = () => {
|
|
10
|
+
let revision = undefined;
|
|
11
|
+
if (this.updateToRevisionEl.checked) {
|
|
12
|
+
revision = this.revisionNumberEl.value;
|
|
13
|
+
}
|
|
14
|
+
this.confirmCallback(revision);
|
|
15
|
+
};
|
|
16
|
+
this.cancel = () => {
|
|
17
|
+
this.cancelCallback();
|
|
18
|
+
};
|
|
19
|
+
this.cancelCallback = undefined;
|
|
20
|
+
this.confirmCallback = undefined;
|
|
21
|
+
}
|
|
22
|
+
// 6.COMPONENT LIFECYCLE EVENTS //
|
|
23
|
+
async componentWillLoad() {
|
|
24
|
+
this._componentLocale = await Locale.getComponentStrings(this.el);
|
|
25
|
+
this.componentDidLoadEvent.emit(true);
|
|
26
|
+
}
|
|
27
|
+
// 7.LISTENERS //
|
|
28
|
+
// 8.PUBLIC METHODS API //
|
|
29
|
+
/**
|
|
30
|
+
* Validate necessary data input
|
|
31
|
+
*/
|
|
32
|
+
async validate() {
|
|
33
|
+
const isValid = true;
|
|
34
|
+
return isValid;
|
|
35
|
+
}
|
|
36
|
+
// 10.RENDER() FUNCTION //
|
|
37
|
+
render() {
|
|
38
|
+
return (h(Host, { class: {
|
|
39
|
+
"gxi-team-dev-update-to-revision": true
|
|
40
|
+
} }, h("div", { class: `main-wrapper` }, h("gxg-container", null, h("gxg-form-radio-group", null, h("gxg-form-radio", { label: this._componentLocale.options.updateToLatest, value: "updateToLatest", part: "radio-to-latest" }), h("div", { class: "revision-number" }, h("gxg-form-radio", { label: this._componentLocale.options.updateToRevision, value: "updateToRevision", ref: (el) => (this.updateToRevisionEl = el), part: "radio-to-revision" }), h("gxg-form-text", { ref: (el) => (this.revisionNumberEl = el), part: "revision-number" })))), h("gxg-container", { displayBorderTop: true }, h("div", { class: "actions" }, h("gxg-button", { id: "button-ok", type: "primary-text-only", onClick: this.confirm, part: "gxg-button gxg-button--ok" }, this._componentLocale.footer.btnOk), h("gxg-button", { id: "button-cancel", type: "outlined", onClick: this.cancel, part: "gxg-button gxg-button--cancel" }, this._componentLocale.footer.btnCancel))))));
|
|
41
|
+
}
|
|
42
|
+
static get is() { return "gx-ide-team-dev-update-to-revision"; }
|
|
43
|
+
static get encapsulation() { return "shadow"; }
|
|
44
|
+
static get originalStyleUrls() {
|
|
45
|
+
return {
|
|
46
|
+
"$": ["team-dev-update-to-revision.scss"]
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
static get styleUrls() {
|
|
50
|
+
return {
|
|
51
|
+
"$": ["team-dev-update-to-revision.css"]
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
static get assetsDirs() { return ["gx-ide-assets/team-dev-update-to-revision"]; }
|
|
55
|
+
static get properties() {
|
|
56
|
+
return {
|
|
57
|
+
"cancelCallback": {
|
|
58
|
+
"type": "unknown",
|
|
59
|
+
"mutable": false,
|
|
60
|
+
"complexType": {
|
|
61
|
+
"original": "cancelCallbackFn",
|
|
62
|
+
"resolved": "() => Promise<void>",
|
|
63
|
+
"references": {
|
|
64
|
+
"cancelCallbackFn": {
|
|
65
|
+
"location": "local"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"required": true,
|
|
70
|
+
"optional": false,
|
|
71
|
+
"docs": {
|
|
72
|
+
"tags": [],
|
|
73
|
+
"text": "This is a function provided by the developer for execute when cancel button is pressed."
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"confirmCallback": {
|
|
77
|
+
"type": "unknown",
|
|
78
|
+
"mutable": false,
|
|
79
|
+
"complexType": {
|
|
80
|
+
"original": "confirmCallbackFn",
|
|
81
|
+
"resolved": "(revision: string) => Promise<void>",
|
|
82
|
+
"references": {
|
|
83
|
+
"confirmCallbackFn": {
|
|
84
|
+
"location": "local"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"required": true,
|
|
89
|
+
"optional": false,
|
|
90
|
+
"docs": {
|
|
91
|
+
"tags": [],
|
|
92
|
+
"text": "This is a function provided by the developer and is invoked when the action confirm is executed passing the selected objects of the grid"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
static get events() {
|
|
98
|
+
return [{
|
|
99
|
+
"method": "componentDidLoadEvent",
|
|
100
|
+
"name": "componentDidLoadEvent",
|
|
101
|
+
"bubbles": true,
|
|
102
|
+
"cancelable": true,
|
|
103
|
+
"composed": true,
|
|
104
|
+
"docs": {
|
|
105
|
+
"tags": [],
|
|
106
|
+
"text": "This event is emitted once just after the component is fully loaded and the first render() occurs."
|
|
107
|
+
},
|
|
108
|
+
"complexType": {
|
|
109
|
+
"original": "boolean",
|
|
110
|
+
"resolved": "boolean",
|
|
111
|
+
"references": {}
|
|
112
|
+
}
|
|
113
|
+
}];
|
|
114
|
+
}
|
|
115
|
+
static get methods() {
|
|
116
|
+
return {
|
|
117
|
+
"validate": {
|
|
118
|
+
"complexType": {
|
|
119
|
+
"signature": "() => Promise<boolean>",
|
|
120
|
+
"parameters": [],
|
|
121
|
+
"references": {
|
|
122
|
+
"Promise": {
|
|
123
|
+
"location": "global"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"return": "Promise<boolean>"
|
|
127
|
+
},
|
|
128
|
+
"docs": {
|
|
129
|
+
"text": "Validate necessary data input",
|
|
130
|
+
"tags": []
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
static get elementRef() { return "el"; }
|
|
136
|
+
}
|