@genexus/genexus-ide-ui 0.0.31 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +19 -6
- package/dist/cjs/gx-ide-team-dev-update-partial-selection.cjs.entry.js +17 -32
- package/dist/cjs/gx-ide-team-dev-update-to-revision.cjs.entry.js +16 -1
- package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +33 -31
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/team-dev-commit/team-dev-commit.js +31 -23
- package/dist/collection/components/team-dev-update/team-dev-update.js +75 -35
- 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 +4 -2
- package/dist/collection/components/team-dev-update-partial-selection/team-dev-update-partial-selection.css +1 -0
- package/dist/collection/components/team-dev-update-partial-selection/team-dev-update-partial-selection.js +22 -46
- 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 +1 -1
- package/dist/collection/components/team-dev-update-to-revision/team-dev-update-to-revision.js +33 -1
- package/dist/components/gx-ide-team-dev-commit.js +21 -7
- package/dist/components/gx-ide-team-dev-update-partial-selection.js +18 -33
- package/dist/components/gx-ide-team-dev-update-to-revision.js +17 -1
- package/dist/components/gx-ide-team-dev-update.js +36 -32
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-team-dev-commit.entry.js +19 -6
- package/dist/esm/gx-ide-team-dev-update-partial-selection.entry.js +17 -32
- package/dist/esm/gx-ide-team-dev-update-to-revision.entry.js +16 -1
- package/dist/esm/gx-ide-team-dev-update.entry.js +33 -31
- 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-update-partial-selection/langs/team-dev-update-partial-selection.lang.en.json +4 -2
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-to-revision/langs/team-dev-update-to-revision.lang.en.json +1 -1
- package/dist/genexus-ide-ui/p-1b6b11e1.entry.js +1 -0
- package/dist/genexus-ide-ui/p-8592f072.entry.js +1 -0
- package/dist/genexus-ide-ui/p-bc2d4253.entry.js +1 -0
- package/dist/genexus-ide-ui/p-f794dc13.entry.js +1 -0
- package/dist/types/common/types.d.ts +9 -0
- package/dist/types/components/team-dev-commit/team-dev-commit.d.ts +12 -17
- package/dist/types/components/team-dev-update/team-dev-update.d.ts +16 -13
- package/dist/types/components/team-dev-update-partial-selection/team-dev-update-partial-selection.d.ts +11 -14
- package/dist/types/components/team-dev-update-to-revision/team-dev-update-to-revision.d.ts +8 -0
- package/dist/types/components.d.ts +39 -19
- package/package.json +1 -1
- package/dist/genexus-ide-ui/p-32b8abf6.entry.js +0 -1
- package/dist/genexus-ide-ui/p-53d36ef7.entry.js +0 -1
- package/dist/genexus-ide-ui/p-6e80380b.entry.js +0 -1
- package/dist/genexus-ide-ui/p-b54f448c.entry.js +0 -1
|
@@ -8,9 +8,35 @@ export class GxIdeTeamDevUpdate {
|
|
|
8
8
|
constructor() {
|
|
9
9
|
this.loadDataCalledFirstTime = false; // pending for update grid checkboxes, should be checked, after loadData has loaded objects for the first time.
|
|
10
10
|
// 9.LOCAL METHODS //
|
|
11
|
+
this.onRowContextMenuHandler = (grid) => async (ev) => {
|
|
12
|
+
if (this.objectsContextMenuCallback) {
|
|
13
|
+
ev.preventDefault();
|
|
14
|
+
ev.stopPropagation();
|
|
15
|
+
let selection = [];
|
|
16
|
+
if (grid === "pending") {
|
|
17
|
+
selection = await this.chGridPendingForUpdateEl.getSelectedRows();
|
|
18
|
+
}
|
|
19
|
+
else if (grid === "ignored") {
|
|
20
|
+
selection = await this.chGridIgnoredObjectsEl.getSelectedRows();
|
|
21
|
+
}
|
|
22
|
+
else if (grid === "results") {
|
|
23
|
+
selection = await this.chGridResultsEl.getSelectedRows();
|
|
24
|
+
}
|
|
25
|
+
await this.objectsContextMenuCallback(grid, {
|
|
26
|
+
selection: selection,
|
|
27
|
+
clientX: ev.detail.clientX,
|
|
28
|
+
clientY: ev.detail.clientY
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
};
|
|
11
32
|
this.markAllPendingToUpdateRows = () => {
|
|
12
33
|
this.chGridPendingForUpdateEl.markAllRows();
|
|
13
34
|
};
|
|
35
|
+
this.gridOnSelectionChangedCallbackHandler = (grid) => async (ev) => {
|
|
36
|
+
if (this.selectCallback) {
|
|
37
|
+
await this.selectCallback(grid, ev.detail.rowsId);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
14
40
|
this.renderOptions = () => {
|
|
15
41
|
return (h("gxg-container", { part: "options-container" }, h("div", { class: "grid options-grid" }, h("gxg-container", { displayBorder: true, part: "options-update-from", containerTitle: this._componentLocale.options.updateFrom }, h("div", { class: "grid options-update-from-grid" }, h("gxg-text", { type: "text-regular" }, this._componentLocale.options.updateFrom, ":"), h("gxg-text", { type: "text-link", onClick: this.openServerCallback }, this.updateFrom ? this.updateFrom.serverUrl : ""), h("gxg-text", { type: "text-regular" }, this._componentLocale.options.knowledgeBase, ":"), h("gxg-text", { type: "text-regular" }, this.updateFrom ? this.updateFrom.kbName : ""), h("gxg-text", { type: "text-regular" }, this._componentLocale.options.version, ":"), h("gxg-text", { type: "text-regular" }, this.updateFrom ? this.updateFrom.versionName : ""), h("gxg-text", { type: "text-regular" }, this._componentLocale.options.lastFullUpdate, ":"), h("gxg-text", { type: "text-regular" }, this.updateFrom
|
|
16
42
|
? formatDate(this.updateFrom.lastFullUpdate)
|
|
@@ -29,13 +55,13 @@ export class GxIdeTeamDevUpdate {
|
|
|
29
55
|
return (h("gxg-container", { part: "data-container" }, h("gxg-tabs", { id: "dataTabs", part: "data-tabs" }, h("gxg-tab-bar", { slot: "tab-bar-container" }, h("gxg-tab-button", { slot: "tab-bar", "tab-label": this._componentLocale.tabs.pendingForUpdate, tab: "pendingForUpdate", key: "pendingForUpdate", isSelected: true }), h("gxg-tab-button", { slot: "tab-bar", "tab-label": this._componentLocale.tabs.ignoredObjects, tab: "ignoredObjects", key: "ignoredObjects" }), h("gxg-tab-button", { slot: "tab-bar", "tab-label": this._componentLocale.tabs.results, tab: "results", key: "results", ref: (el) => (this.gxgTabButtonResultsEl = el) })), h("gxg-tab", { tab: "pendingForUpdate", key: "pendingForUpdate", isSelected: true }, this.renderPendingForUpdate()), h("gxg-tab", { tab: "ignoredObjects", key: "ignoredObjects" }, this.renderIgnoredObjects()), h("gxg-tab", { tab: "results", key: "results" }, this.renderResults()))));
|
|
30
56
|
};
|
|
31
57
|
this.renderPendingForUpdate = () => {
|
|
32
|
-
return (h("gxg-grid", null, h("ch-grid", { "row-selection-mode": "
|
|
58
|
+
return (h("gxg-grid", null, h("ch-grid", { "row-selection-mode": "multiple", ref: (el) => (this.chGridPendingForUpdateEl = el), part: "ch-grid-pending-for-updates", class: "no-border", onRowContextMenu: this.onRowContextMenuHandler("pending"), onSelectionChanged: this.gridOnSelectionChangedCallbackHandler("pending") }, h("ch-grid-columnset", null, h("ch-grid-column", { settingable: false, sortable: false, "column-type": "rich", richRowSelector: true, richRowSelectorMode: "mark" }), h("ch-grid-column", { settingable: false, sortable: false }), h("ch-grid-column", { 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 }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.status, settingable: false }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.action, settingable: false })), this.updateData.pendingForUpdate.map((obj) => (h("ch-grid-row", { rowid: obj.id }, h("ch-grid-cell", { "cell-type": "rich", "row-selector": true }), h("ch-grid-cell", null, h("gxg-icon", { type: obj.typeIcon, color: "auto" })), h("ch-grid-cell", null, " ", this.renderIconState(obj.state), " "), 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, `${formatDate(obj.modifiedOn)}`), h("ch-grid-cell", null, " ", obj.status, " "), h("ch-grid-cell", null, " ", obj.action, " ")))))));
|
|
33
59
|
};
|
|
34
60
|
this.renderIgnoredObjects = () => {
|
|
35
|
-
return (h("gxg-grid", null, h("ch-grid", { "row-selection-mode": "multiple", ref: (el) => (this.chGridIgnoredObjectsEl = el), part: "ch-grid-ignored-objects", class: "no-border" }, h("ch-grid-columnset", null, h("ch-grid-column", { settingable: false, sortable: false, size: "min-content" }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.name, settingable: false, size: "1fr" }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.type, settingable: false, size: "1fr" })), this.updateData.ignoredObjects.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, " ")))))));
|
|
61
|
+
return (h("gxg-grid", null, h("ch-grid", { "row-selection-mode": "multiple", ref: (el) => (this.chGridIgnoredObjectsEl = el), part: "ch-grid-ignored-objects", class: "no-border", onRowContextMenu: this.onRowContextMenuHandler("ignored"), onSelectionChanged: this.gridOnSelectionChangedCallbackHandler("ignored") }, h("ch-grid-columnset", null, h("ch-grid-column", { settingable: false, sortable: false, size: "min-content" }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.name, settingable: false, size: "1fr" }), h("ch-grid-column", { columnName: this._componentLocale.tableHead.type, settingable: false, size: "1fr" })), this.updateData.ignoredObjects.map((obj) => (h("ch-grid-row", { rowid: obj.id }, h("ch-grid-cell", null, h("gxg-icon", { type: obj.typeIcon, color: "auto" })), h("ch-grid-cell", null, " ", obj.name, " "), h("ch-grid-cell", null, " ", obj.type, " ")))))));
|
|
36
62
|
};
|
|
37
63
|
this.renderResults = () => {
|
|
38
|
-
return (h("gxg-grid", null, h("ch-grid", { "row-selection-mode": "multiple", ref: (el) => (this.chGridResultsEl = el), part: "ch-grid-results", class: "no-border" }, h("ch-grid-columnset", null, h("ch-grid-column", { settingable: false, sortable: false, "column-type": "tree" }), h("ch-grid-column", { settingable: false, sortable: false }), h("ch-grid-column", { 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.notes, settingable: false })), this.updateResultData.map((obj) => (h("ch-grid-row", { rowid: obj.id }, h("ch-grid-cell", null, " ", this.renderIconResult(obj.result), " "), h("ch-grid-cell", null, h("gxg-icon", { type: obj.typeIcon })), h("ch-grid-cell", null, " ", this.renderIconState(obj.state), " "), 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.notes, " "), h("ch-grid-rowset", null, obj.messages.map(msg => {
|
|
64
|
+
return (h("gxg-grid", null, h("ch-grid", { "row-selection-mode": "multiple", ref: (el) => (this.chGridResultsEl = el), part: "ch-grid-results", class: "no-border", onRowContextMenu: this.onRowContextMenuHandler("results"), onSelectionChanged: this.gridOnSelectionChangedCallbackHandler("results") }, h("ch-grid-columnset", null, h("ch-grid-column", { settingable: false, sortable: false, "column-type": "tree" }), h("ch-grid-column", { settingable: false, sortable: false }), h("ch-grid-column", { 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.notes, settingable: false })), this.updateResultData.map((obj) => (h("ch-grid-row", { rowid: obj.id }, h("ch-grid-cell", null, " ", this.renderIconResult(obj.result), " "), h("ch-grid-cell", null, h("gxg-icon", { type: obj.typeIcon, color: "auto" })), h("ch-grid-cell", null, " ", this.renderIconState(obj.state), " "), 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.notes, " "), h("ch-grid-rowset", null, obj.messages.map(msg => {
|
|
39
65
|
let msgType;
|
|
40
66
|
switch (msg.type) {
|
|
41
67
|
case "info":
|
|
@@ -142,38 +168,13 @@ export class GxIdeTeamDevUpdate {
|
|
|
142
168
|
});
|
|
143
169
|
}
|
|
144
170
|
};
|
|
145
|
-
this.addListeners = async () => {
|
|
146
|
-
// for pending-for-update grid events
|
|
147
|
-
if (this.updateData.pendingForUpdate) {
|
|
148
|
-
this.chGridPendingForUpdateEl.addEventListener("contextmenu", async (ev) => {
|
|
149
|
-
ev.preventDefault();
|
|
150
|
-
ev.stopPropagation();
|
|
151
|
-
const pendingForUpdateMarked = await this.chGridPendingForUpdateEl.getMarkedRows();
|
|
152
|
-
this.gridContextMenuCallback(pendingForUpdateMarked, "update");
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
// for ignored-objects grid events
|
|
156
|
-
this.chGridIgnoredObjectsEl.addEventListener("contextmenu", async (ev) => {
|
|
157
|
-
ev.preventDefault();
|
|
158
|
-
ev.stopPropagation();
|
|
159
|
-
const ignoredObjectsSelected = await this.chGridIgnoredObjectsEl.getSelectedRows();
|
|
160
|
-
this.gridContextMenuCallback(ignoredObjectsSelected, "ignored");
|
|
161
|
-
});
|
|
162
|
-
// for results grid events
|
|
163
|
-
this.chGridResultsEl.addEventListener("contextmenu", async (ev) => {
|
|
164
|
-
ev.preventDefault();
|
|
165
|
-
ev.stopPropagation();
|
|
166
|
-
const resultsObjectsSelected = await this.chGridResultsEl.getMarkedRows();
|
|
167
|
-
this.gridContextMenuCallback(resultsObjectsSelected, "results");
|
|
168
|
-
});
|
|
169
|
-
};
|
|
170
171
|
this.pendingForUpdatesRowMarkingChangedHandler = async (e) => {
|
|
171
172
|
// remove "rowMarkingChanged" until checkboxes have been added/removed on togglePendingCommitsCheckboxes, to prevent loops.
|
|
172
173
|
this.chGridPendingForUpdateEl.removeEventListener("rowMarkingChanged", this.pendingForUpdatesRowMarkingChangedHandler);
|
|
173
174
|
if (this.chGridPendingForUpdateEl) {
|
|
174
175
|
const addedRowsIds = e.detail.addedRowsId;
|
|
175
176
|
const removedRowsId = e.detail.removedRowsId;
|
|
176
|
-
const pendingItemCheckedResult = await this.
|
|
177
|
+
const pendingItemCheckedResult = await this.pendingItemsCheckedCallback({
|
|
177
178
|
itemsChecked: addedRowsIds,
|
|
178
179
|
itemsUnchecked: removedRowsId
|
|
179
180
|
});
|
|
@@ -227,8 +228,10 @@ export class GxIdeTeamDevUpdate {
|
|
|
227
228
|
this.loadCallback = undefined;
|
|
228
229
|
this.objectsScopeCallback = undefined;
|
|
229
230
|
this.openServerCallback = undefined;
|
|
230
|
-
this.
|
|
231
|
+
this.pendingItemsCheckedCallback = undefined;
|
|
231
232
|
this.revisionScopeCallback = undefined;
|
|
233
|
+
this.objectsContextMenuCallback = undefined;
|
|
234
|
+
this.selectCallback = undefined;
|
|
232
235
|
this.types = undefined;
|
|
233
236
|
this.updateCallback = undefined;
|
|
234
237
|
this.updateFrom = undefined;
|
|
@@ -240,7 +243,6 @@ export class GxIdeTeamDevUpdate {
|
|
|
240
243
|
}
|
|
241
244
|
async componentDidLoad() {
|
|
242
245
|
await this.loadData();
|
|
243
|
-
this.addListeners();
|
|
244
246
|
}
|
|
245
247
|
async componentDidRender() {
|
|
246
248
|
if (this.loadDataCalledFirstTime) {
|
|
@@ -374,14 +376,14 @@ export class GxIdeTeamDevUpdate {
|
|
|
374
376
|
"text": "This is a function provided by the developer to call when the user clicked in server url of Update From group."
|
|
375
377
|
}
|
|
376
378
|
},
|
|
377
|
-
"
|
|
379
|
+
"pendingItemsCheckedCallback": {
|
|
378
380
|
"type": "unknown",
|
|
379
381
|
"mutable": false,
|
|
380
382
|
"complexType": {
|
|
381
|
-
"original": "
|
|
382
|
-
"resolved": "(pendingItemsCheckedState:
|
|
383
|
+
"original": "PendingItemsCheckedCallback",
|
|
384
|
+
"resolved": "(pendingItemsCheckedState: ItemsCheckedState) => Promise<ItemsCheckedResult>",
|
|
383
385
|
"references": {
|
|
384
|
-
"
|
|
386
|
+
"PendingItemsCheckedCallback": {
|
|
385
387
|
"location": "local"
|
|
386
388
|
}
|
|
387
389
|
}
|
|
@@ -412,6 +414,44 @@ export class GxIdeTeamDevUpdate {
|
|
|
412
414
|
"text": "This is a function provided by the developer to call when the user wants to select the revision to work on."
|
|
413
415
|
}
|
|
414
416
|
},
|
|
417
|
+
"objectsContextMenuCallback": {
|
|
418
|
+
"type": "unknown",
|
|
419
|
+
"mutable": false,
|
|
420
|
+
"complexType": {
|
|
421
|
+
"original": "ObjectsContextMenuCallback",
|
|
422
|
+
"resolved": "(source: UpdateSourceType, contextMenuInfo: ContextMenuInfo) => Promise<void>",
|
|
423
|
+
"references": {
|
|
424
|
+
"ObjectsContextMenuCallback": {
|
|
425
|
+
"location": "local"
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"required": true,
|
|
430
|
+
"optional": false,
|
|
431
|
+
"docs": {
|
|
432
|
+
"tags": [],
|
|
433
|
+
"text": "Callback that should be invoked when the user activates the context menu on any of the grids. It receives the internal IDs of the selected elements and in which grid the event occurred. It should prevent the default browser context menu from appearing"
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"selectCallback": {
|
|
437
|
+
"type": "unknown",
|
|
438
|
+
"mutable": false,
|
|
439
|
+
"complexType": {
|
|
440
|
+
"original": "UpdateSelectCallback",
|
|
441
|
+
"resolved": "(grid: UpdateSourceType, selectionIds: string[]) => Promise<void>",
|
|
442
|
+
"references": {
|
|
443
|
+
"UpdateSelectCallback": {
|
|
444
|
+
"location": "local"
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
"required": false,
|
|
449
|
+
"optional": false,
|
|
450
|
+
"docs": {
|
|
451
|
+
"tags": [],
|
|
452
|
+
"text": "Callback that should be invoked when the user selects rows from the grids"
|
|
453
|
+
}
|
|
454
|
+
},
|
|
415
455
|
"types": {
|
|
416
456
|
"type": "unknown",
|
|
417
457
|
"mutable": false,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "Name",
|
|
3
3
|
"title": "Partial Selection",
|
|
4
|
+
"addObject": "Add",
|
|
5
|
+
"removeObject": "Remove",
|
|
4
6
|
"tableHead": {
|
|
5
7
|
"name": "Name",
|
|
6
8
|
"type": "Type",
|
|
@@ -8,8 +10,8 @@
|
|
|
8
10
|
"modifiedOn": "Modified On"
|
|
9
11
|
},
|
|
10
12
|
"footer": {
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
+
"btnDeselectAll": "Deselect All",
|
|
14
|
+
"btnConfirm": "Confirm",
|
|
13
15
|
"btnCancel": "Cancel"
|
|
14
16
|
}
|
|
15
17
|
}
|
|
@@ -6,41 +6,36 @@ import { Locale } from "../../common/locale";
|
|
|
6
6
|
export class GxIdeTeamDevUpdatePartialSelection {
|
|
7
7
|
constructor() {
|
|
8
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
9
|
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)}`)))))));
|
|
10
|
+
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, color: "auto" })), 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
11
|
};
|
|
23
|
-
this.
|
|
12
|
+
this.getObjectsHandler = () => {
|
|
24
13
|
this.addCallback().then((items) => {
|
|
25
14
|
if ((items === null || items === void 0 ? void 0 : items.length) > 0) {
|
|
26
15
|
this.selection = [...this.selection, ...items];
|
|
27
16
|
this.selectedObjectsIds = [];
|
|
28
|
-
this.
|
|
17
|
+
this.deselectAllHandler();
|
|
29
18
|
}
|
|
30
19
|
});
|
|
31
20
|
};
|
|
32
|
-
this.
|
|
21
|
+
this.removeObjectsHandler = () => {
|
|
33
22
|
this.selection = this.selection.filter(item => !this.selectedObjectsIds.includes(item.id));
|
|
34
23
|
this.selectedObjectsIds = [];
|
|
35
|
-
this.
|
|
24
|
+
this.deselectAllHandler();
|
|
36
25
|
};
|
|
37
|
-
this.
|
|
38
|
-
this.confirmCallback
|
|
26
|
+
this.confirmHandler = () => {
|
|
27
|
+
if (this.confirmCallback) {
|
|
28
|
+
const allRowsIds = [];
|
|
29
|
+
this.selection.forEach(row => {
|
|
30
|
+
allRowsIds.push(row.id);
|
|
31
|
+
});
|
|
32
|
+
this.confirmCallback(allRowsIds);
|
|
33
|
+
}
|
|
39
34
|
};
|
|
40
|
-
this.
|
|
35
|
+
this.cancelHandler = () => {
|
|
41
36
|
this.cancelCallback();
|
|
42
37
|
};
|
|
43
|
-
this.
|
|
38
|
+
this.deselectAllHandler = () => {
|
|
44
39
|
this.chGridEl.selectAllRows(false);
|
|
45
40
|
};
|
|
46
41
|
this.listenChanges = () => {
|
|
@@ -59,21 +54,11 @@ export class GxIdeTeamDevUpdatePartialSelection {
|
|
|
59
54
|
async componentWillLoad() {
|
|
60
55
|
this._componentLocale = await Locale.getComponentStrings(this.el);
|
|
61
56
|
this.componentDidLoadEvent.emit(true);
|
|
62
|
-
this.handleKeyDownEvent(true);
|
|
63
57
|
}
|
|
64
58
|
componentDidLoad() {
|
|
65
59
|
this.listenChanges();
|
|
66
60
|
}
|
|
67
61
|
// 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
62
|
// 8.PUBLIC METHODS API //
|
|
78
63
|
/**
|
|
79
64
|
* Validate necessary data input
|
|
@@ -86,7 +71,7 @@ export class GxIdeTeamDevUpdatePartialSelection {
|
|
|
86
71
|
render() {
|
|
87
72
|
return (h(Host, { class: {
|
|
88
73
|
"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: "
|
|
74
|
+
} }, h("div", { class: `main-wrapper` }, h("gxg-container", { containerTitle: this._componentLocale.title }, h("div", { class: "top-actions" }, h("gxg-button", { id: "button-add", type: "outlined", onClick: this.getObjectsHandler, part: "add" }, this._componentLocale.addObject), h("gxg-button", { id: "button-remove", type: "outlined", onClick: this.removeObjectsHandler, part: "remove", disabled: !(this.selectedObjectsIds.length > 0) }, this._componentLocale.removeObject)), this.renderObjects(), h("gxg-container", { displayBorderTop: true }, h("div", { class: "grid actions" }, h("div", null, h("gxg-button", { id: "button-clear", type: "outlined", onClick: this.deselectAllHandler, part: "clear", disabled: !(this.selectedObjectsIds.length > 0) }, this._componentLocale.footer.btnDeselectAll)), h("div", null, h("gxg-button", { id: "button-ok", type: "primary-text-only", onClick: this.confirmHandler, part: "confirm" }, this._componentLocale.footer.btnConfirm), h("gxg-button", { id: "button-cancel", type: "outlined", onClick: this.cancelHandler, part: "cancel" }, this._componentLocale.footer.btnCancel))))))));
|
|
90
75
|
}
|
|
91
76
|
static get is() { return "gx-ide-team-dev-update-partial-selection"; }
|
|
92
77
|
static get encapsulation() { return "shadow"; }
|
|
@@ -107,10 +92,10 @@ export class GxIdeTeamDevUpdatePartialSelection {
|
|
|
107
92
|
"type": "unknown",
|
|
108
93
|
"mutable": false,
|
|
109
94
|
"complexType": {
|
|
110
|
-
"original": "
|
|
95
|
+
"original": "AddCallback",
|
|
111
96
|
"resolved": "() => Promise<ObjectData[]>",
|
|
112
97
|
"references": {
|
|
113
|
-
"
|
|
98
|
+
"AddCallback": {
|
|
114
99
|
"location": "local"
|
|
115
100
|
}
|
|
116
101
|
}
|
|
@@ -126,10 +111,10 @@ export class GxIdeTeamDevUpdatePartialSelection {
|
|
|
126
111
|
"type": "unknown",
|
|
127
112
|
"mutable": false,
|
|
128
113
|
"complexType": {
|
|
129
|
-
"original": "
|
|
114
|
+
"original": "CancelCallback",
|
|
130
115
|
"resolved": "() => Promise<void>",
|
|
131
116
|
"references": {
|
|
132
|
-
"
|
|
117
|
+
"CancelCallback": {
|
|
133
118
|
"location": "local"
|
|
134
119
|
}
|
|
135
120
|
}
|
|
@@ -145,10 +130,10 @@ export class GxIdeTeamDevUpdatePartialSelection {
|
|
|
145
130
|
"type": "unknown",
|
|
146
131
|
"mutable": false,
|
|
147
132
|
"complexType": {
|
|
148
|
-
"original": "
|
|
133
|
+
"original": "ConfirmCallback",
|
|
149
134
|
"resolved": "(ids: string[]) => Promise<void>",
|
|
150
135
|
"references": {
|
|
151
|
-
"
|
|
136
|
+
"ConfirmCallback": {
|
|
152
137
|
"location": "local"
|
|
153
138
|
}
|
|
154
139
|
}
|
|
@@ -226,13 +211,4 @@ export class GxIdeTeamDevUpdatePartialSelection {
|
|
|
226
211
|
};
|
|
227
212
|
}
|
|
228
213
|
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
214
|
}
|
package/dist/collection/components/team-dev-update-to-revision/team-dev-update-to-revision.js
CHANGED
|
@@ -6,6 +6,14 @@ import { Locale } from "../../common/locale";
|
|
|
6
6
|
export class GxIdeTeamDevUpdateToRevision {
|
|
7
7
|
constructor() {
|
|
8
8
|
// 9.LOCAL METHODS //
|
|
9
|
+
this.setInitialCheckedRadio = () => {
|
|
10
|
+
if (this.currentRevision === undefined) {
|
|
11
|
+
this.updateToLatestEl.checked = true;
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
this.updateToRevisionEl.checked = true;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
9
17
|
this.confirm = () => {
|
|
10
18
|
let revision = undefined;
|
|
11
19
|
if (this.updateToRevisionEl.checked) {
|
|
@@ -16,13 +24,20 @@ export class GxIdeTeamDevUpdateToRevision {
|
|
|
16
24
|
this.cancel = () => {
|
|
17
25
|
this.cancelCallback();
|
|
18
26
|
};
|
|
27
|
+
this.updateToRevisionOnFocusHandler = () => {
|
|
28
|
+
this.updateToRevisionEl.checked = true;
|
|
29
|
+
};
|
|
19
30
|
this.cancelCallback = undefined;
|
|
20
31
|
this.confirmCallback = undefined;
|
|
32
|
+
this.currentRevision = undefined;
|
|
21
33
|
}
|
|
22
34
|
// 6.COMPONENT LIFECYCLE EVENTS //
|
|
23
35
|
async componentWillLoad() {
|
|
24
36
|
this._componentLocale = await Locale.getComponentStrings(this.el);
|
|
37
|
+
}
|
|
38
|
+
componentDidLoad() {
|
|
25
39
|
this.componentDidLoadEvent.emit(true);
|
|
40
|
+
this.setInitialCheckedRadio();
|
|
26
41
|
}
|
|
27
42
|
// 7.LISTENERS //
|
|
28
43
|
// 8.PUBLIC METHODS API //
|
|
@@ -37,7 +52,7 @@ export class GxIdeTeamDevUpdateToRevision {
|
|
|
37
52
|
render() {
|
|
38
53
|
return (h(Host, { class: {
|
|
39
54
|
"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: "
|
|
55
|
+
} }, 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", ref: (el) => (this.updateToLatestEl = el), 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), onFocus: this.updateToRevisionOnFocusHandler, value: this.currentRevision, 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: "update" }, this._componentLocale.footer.btnUpdate), h("gxg-button", { id: "button-cancel", type: "outlined", onClick: this.cancel, part: "cancel" }, this._componentLocale.footer.btnCancel))))));
|
|
41
56
|
}
|
|
42
57
|
static get is() { return "gx-ide-team-dev-update-to-revision"; }
|
|
43
58
|
static get encapsulation() { return "shadow"; }
|
|
@@ -91,6 +106,23 @@ export class GxIdeTeamDevUpdateToRevision {
|
|
|
91
106
|
"tags": [],
|
|
92
107
|
"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
108
|
}
|
|
109
|
+
},
|
|
110
|
+
"currentRevision": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"mutable": false,
|
|
113
|
+
"complexType": {
|
|
114
|
+
"original": "string | undefined",
|
|
115
|
+
"resolved": "string",
|
|
116
|
+
"references": {}
|
|
117
|
+
},
|
|
118
|
+
"required": false,
|
|
119
|
+
"optional": false,
|
|
120
|
+
"docs": {
|
|
121
|
+
"tags": [],
|
|
122
|
+
"text": "Set an initial value for the review"
|
|
123
|
+
},
|
|
124
|
+
"attribute": "current-revision",
|
|
125
|
+
"reflect": false
|
|
94
126
|
}
|
|
95
127
|
};
|
|
96
128
|
}
|
|
@@ -37,6 +37,16 @@ const GxIdeTeamDevCommit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
37
37
|
this.componentDidLoadEvent = createEvent(this, "componentDidLoadEvent", 7);
|
|
38
38
|
this.loadDataCalledFirstTime = false; // pending commits grid checkboxes, should be checked, after loadData has loaded commits for the first time.
|
|
39
39
|
// 9.LOCAL METHODS //
|
|
40
|
+
this.conditionToCommit = async () => {
|
|
41
|
+
const commitComment = !!this.commitCommentEl.value.length;
|
|
42
|
+
const pendingChecked = await this.chGridPendingCommitsEl.getMarkedRows();
|
|
43
|
+
if (commitComment && pendingChecked.length > 0) {
|
|
44
|
+
this.commitButtonEnabled = true;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
this.commitButtonEnabled = false;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
40
50
|
this.markAllPendingCommitsRows = () => {
|
|
41
51
|
this.chGridPendingCommitsEl.markAllRows();
|
|
42
52
|
};
|
|
@@ -93,7 +103,7 @@ const GxIdeTeamDevCommit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
93
103
|
if (this.chGridPendingCommitsEl) {
|
|
94
104
|
const addedRowsIds = e.detail.addedRowsId;
|
|
95
105
|
const removedRowsId = e.detail.removedRowsId;
|
|
96
|
-
const pendingItemCheckedResult = await this.
|
|
106
|
+
const pendingItemCheckedResult = await this.pendingItemsCheckedCallback({
|
|
97
107
|
itemsChecked: addedRowsIds,
|
|
98
108
|
itemsUnchecked: removedRowsId
|
|
99
109
|
});
|
|
@@ -104,6 +114,7 @@ const GxIdeTeamDevCommit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
104
114
|
else {
|
|
105
115
|
await this.togglePendingCommitsCheckboxes(pendingItemCheckedResult);
|
|
106
116
|
}
|
|
117
|
+
this.conditionToCommit();
|
|
107
118
|
this.chGridPendingCommitsEl.addEventListener("rowMarkingChanged", this.pendingCommitsRowMarkingChangedHandler);
|
|
108
119
|
}
|
|
109
120
|
};
|
|
@@ -147,11 +158,11 @@ const GxIdeTeamDevCommit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
147
158
|
}
|
|
148
159
|
};
|
|
149
160
|
this.commitCallbackHandler = async () => {
|
|
150
|
-
const
|
|
161
|
+
const commitCommentEl = this.commitCommentEl.value;
|
|
151
162
|
this.chGridPendingCommitsEl
|
|
152
163
|
.getMarkedRows()
|
|
153
164
|
.then(async (pendingCommitsCheckedIds) => {
|
|
154
|
-
await this.commitCallback(pendingCommitsCheckedIds,
|
|
165
|
+
await this.commitCallback(pendingCommitsCheckedIds, commitCommentEl);
|
|
155
166
|
/* returns boolean*/
|
|
156
167
|
});
|
|
157
168
|
};
|
|
@@ -177,6 +188,7 @@ const GxIdeTeamDevCommit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
177
188
|
this.comment = "";
|
|
178
189
|
this.pendingCommits = [];
|
|
179
190
|
this.ignoredObjects = [];
|
|
191
|
+
this.commitButtonEnabled = false;
|
|
180
192
|
this.changeSet = undefined;
|
|
181
193
|
this.types = undefined;
|
|
182
194
|
this.folders = undefined;
|
|
@@ -185,7 +197,7 @@ const GxIdeTeamDevCommit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
185
197
|
this.loadCallback = undefined;
|
|
186
198
|
this.commitCallback = undefined;
|
|
187
199
|
this.selectCallback = undefined;
|
|
188
|
-
this.
|
|
200
|
+
this.pendingItemsCheckedCallback = undefined;
|
|
189
201
|
this.objectsContextMenuCallback = undefined;
|
|
190
202
|
}
|
|
191
203
|
// 6.COMPONENT LIFECYCLE METHODS //
|
|
@@ -196,6 +208,7 @@ const GxIdeTeamDevCommit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
196
208
|
await this.loadData();
|
|
197
209
|
this.loadDataCalledFirstTime = true;
|
|
198
210
|
this.componentDidLoadEvent.emit(true);
|
|
211
|
+
this.conditionToCommit();
|
|
199
212
|
}
|
|
200
213
|
async componentDidRender() {
|
|
201
214
|
if (this.loadDataCalledFirstTime) {
|
|
@@ -216,8 +229,8 @@ const GxIdeTeamDevCommit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
216
229
|
}
|
|
217
230
|
// 10.RENDER() FUNCTION //
|
|
218
231
|
render() {
|
|
219
|
-
return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper gx-ide-overflow" }, h("gxg-container", null, h("header", { class: "header grid" }, h("gxg-form-textarea", { id: "gxg-textarea", height: "100px", label: this._componentLocale.topMenu.commentLabel, value: this.comment, ref: (el) => (this.
|
|
220
|
-
(this.filtersHidden ? "hidden" : null) }, h("div", { class: "first-row grid" }, h("gxg-combo-box", { labelPosition: "start", label: this._componentLocale.filtersMenu.changesetLabel, value: this.changeSet[0]["id"], ref: (el) => (this.changeSetEl = el), part: "change-set", "display-validation-styles": true, "display-validation-message": true, onValueChanged: this.loadData }, renderComboItems(this.changeSet)), h("gxg-combo-box", { labelPosition: "start", label: this._componentLocale.filtersMenu.typeLabel, value: this.types[0]["id"], ref: (el) => (this.typesEl = el), part: "type", onValueChanged: this.loadData }, renderComboItems(this.types))), h("div", { class: "second-row grid" }, h("gxg-combo-box", { labelPosition: "start", label: this._componentLocale.filtersMenu.folderLabel, value: this.folders[0]["id"], ref: (el) => (this.foldersEl = el), part: "folder", "display-validation-styles": true, "display-validation-message": true, onValueChanged: this.loadData }, renderComboItems(this.folders)), h("gxg-combo-box", { labelPosition: "start", label: this._componentLocale.filtersMenu.categoryLabel, value: this.categories[0]["id"], ref: (el) => (this.categoriesEl = el), part: "categories", onValueChanged: this.loadData }, renderComboItems(this.categories)))))), h("gxg-container", null, h("gxg-tabs", { height: "100%", position: "top", class: "gxg-tabs" }, h("gxg-tab-bar", { slot: "tab-bar-container" }, h("gxg-tab-button", { slot: "tab-bar", "tab-label": `${this._componentLocale.tabs.pendingCommits} (${this.pendingCommits.length})`, tab: "pending-commits", "is-selected": true }), h("gxg-tab-button", { slot: "tab-bar", "tab-label": `${this._componentLocale.tabs.ignoredObjects} (${this.ignoredObjects.length})`, tab: "ignored-objects" })), h("gxg-tab", { tab: "pending-commits", "no-padding": true }, this.renderPendingCommitsGrid()), h("gxg-tab", { tab: "ignored-objects", "no-padding": true }, this.renderIgnoredObjectsGrid())), h("gxg-button", { slot: "footer", type: "primary-text-only", onClick: this.commitCallbackHandler, part: "commit-button" }, this._componentLocale.footer.commitButton))))));
|
|
232
|
+
return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper gx-ide-overflow" }, h("gxg-container", null, h("header", { class: "header grid" }, h("gxg-form-textarea", { id: "gxg-textarea", height: "100px", label: this._componentLocale.topMenu.commentLabel, value: this.comment, ref: (el) => (this.commitCommentEl = el), onInput: this.conditionToCommit, placeholder: this._componentLocale.topMenu.commentPlaceholder, part: "comment" }), h("gxg-button", { class: "header-button", type: "outlined", part: "location", onClick: this.getRecentCommentHandler }, this._componentLocale.topMenu.recentCommentsButton))), h("main", { class: "main" }, h("gxg-container", { fieldset: true, noContentPadding: !!this.filtersHidden }, h("div", { class: "grid second-grid" }, h("div", { class: "actions-row grid" }, h("gxg-form-text", { class: this.filtersHidden ? "hidden" : null, "disable-filter": true, label: this._componentLocale.filtersMenu.patternLabel, labelPosition: "start", value: "", ref: (el) => (this.patternEl = el), "display-validation-styles": true, "display-validation-message": true, part: "pattern", onInput: this.loadData }), h("div", { class: "action-buttons", slot: "tab-bar" }, h("gxg-button", { onClick: this.toggleFiltersHandler, type: "secondary-icon-only", icon: "patterns/filters", part: "gxg-button gxg-button--show-filter" }), h("gxg-button", { type: "secondary-icon-only", icon: "gemini-tools/reset", onClick: this.loadData, part: "gxg-button gxg-button--reload" }))), h("div", { class: "filters-grid grid " +
|
|
233
|
+
(this.filtersHidden ? "hidden" : null) }, h("div", { class: "first-row grid" }, h("gxg-combo-box", { labelPosition: "start", label: this._componentLocale.filtersMenu.changesetLabel, value: this.changeSet[0]["id"], ref: (el) => (this.changeSetEl = el), part: "change-set", "display-validation-styles": true, "display-validation-message": true, onValueChanged: this.loadData }, renderComboItems(this.changeSet)), h("gxg-combo-box", { labelPosition: "start", label: this._componentLocale.filtersMenu.typeLabel, value: this.types[0]["id"], ref: (el) => (this.typesEl = el), part: "type", onValueChanged: this.loadData }, renderComboItems(this.types))), h("div", { class: "second-row grid" }, h("gxg-combo-box", { labelPosition: "start", label: this._componentLocale.filtersMenu.folderLabel, value: this.folders[0]["id"], ref: (el) => (this.foldersEl = el), part: "folder", "display-validation-styles": true, "display-validation-message": true, onValueChanged: this.loadData }, renderComboItems(this.folders)), h("gxg-combo-box", { labelPosition: "start", label: this._componentLocale.filtersMenu.categoryLabel, value: this.categories[0]["id"], ref: (el) => (this.categoriesEl = el), part: "categories", onValueChanged: this.loadData }, renderComboItems(this.categories)))))), h("gxg-container", null, h("gxg-tabs", { height: "100%", position: "top", class: "gxg-tabs" }, h("gxg-tab-bar", { slot: "tab-bar-container" }, h("gxg-tab-button", { slot: "tab-bar", "tab-label": `${this._componentLocale.tabs.pendingCommits} (${this.pendingCommits.length})`, tab: "pending-commits", "is-selected": true }), h("gxg-tab-button", { slot: "tab-bar", "tab-label": `${this._componentLocale.tabs.ignoredObjects} (${this.ignoredObjects.length})`, tab: "ignored-objects" })), h("gxg-tab", { tab: "pending-commits", "no-padding": true }, this.renderPendingCommitsGrid()), h("gxg-tab", { tab: "ignored-objects", "no-padding": true }, this.renderIgnoredObjectsGrid())), h("gxg-button", { slot: "footer", type: "primary-text-only", onClick: this.commitCallbackHandler, part: "commit-button", disabled: !this.commitButtonEnabled }, this._componentLocale.footer.commitButton))))));
|
|
221
234
|
}
|
|
222
235
|
static get assetsDirs() { return ["gx-ide-assets/team-dev-commit"]; }
|
|
223
236
|
get el() { return this; }
|
|
@@ -231,12 +244,13 @@ const GxIdeTeamDevCommit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
231
244
|
"loadCallback": [16],
|
|
232
245
|
"commitCallback": [16],
|
|
233
246
|
"selectCallback": [16],
|
|
234
|
-
"
|
|
247
|
+
"pendingItemsCheckedCallback": [16],
|
|
235
248
|
"objectsContextMenuCallback": [16],
|
|
236
249
|
"filtersHidden": [32],
|
|
237
250
|
"comment": [32],
|
|
238
251
|
"pendingCommits": [32],
|
|
239
252
|
"ignoredObjects": [32],
|
|
253
|
+
"commitButtonEnabled": [32],
|
|
240
254
|
"reload": [64]
|
|
241
255
|
}]);
|
|
242
256
|
function defineCustomElement$1() {
|