@genexus/genexus-ide-ui 1.1.6 → 1.1.7
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-design-import.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-design-import.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-new-version.cjs.entry.js +58 -14
- package/dist/cjs/gx-ide-new-version.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-select-kb-items.cjs.entry.js +16 -9
- package/dist/cjs/gx-ide-select-kb-items.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-team-dev-history.cjs.entry.js +270 -0
- package/dist/cjs/gx-ide-team-dev-history.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/design-import/design-import.js +1 -1
- package/dist/collection/components/design-import/design-import.js.map +1 -1
- package/dist/collection/components/new-version/gx-ide-assets/new-version/langs/new-version.lang.en.json +3 -1
- package/dist/collection/components/new-version/gx-ide-assets/new-version/langs/new-version.lang.ja.json +3 -1
- package/dist/collection/components/new-version/gx-ide-assets/new-version/langs/new-version.lang.zh.json +3 -1
- package/dist/collection/components/new-version/new-version.css +4 -0
- package/dist/collection/components/new-version/new-version.js +124 -18
- package/dist/collection/components/new-version/new-version.js.map +1 -1
- package/dist/collection/components/select-kb-items/gx-ide-assets/select-kb-items/langs/select-kb-items.lang.en.json +2 -1
- package/dist/collection/components/select-kb-items/gx-ide-assets/select-kb-items/langs/select-kb-items.lang.ja.json +1 -0
- package/dist/collection/components/select-kb-items/gx-ide-assets/select-kb-items/langs/select-kb-items.lang.zh.json +1 -0
- package/dist/collection/components/select-kb-items/select-kb-items.css +22 -27
- package/dist/collection/components/select-kb-items/select-kb-items.js +34 -8
- package/dist/collection/components/select-kb-items/select-kb-items.js.map +1 -1
- package/dist/collection/components/team-dev/commit/commit.js +2 -2
- package/dist/collection/components/team-dev/commit/commit.js.map +1 -1
- package/dist/collection/components/team-dev/history/gx-ide-assets/team-dev-history/langs/team-dev-history.lang.en.json +42 -0
- package/dist/collection/components/team-dev/history/gx-ide-assets/team-dev-history/langs/team-dev-history.lang.ja.json +42 -0
- package/dist/collection/components/team-dev/history/gx-ide-assets/team-dev-history/langs/team-dev-history.lang.zh.json +42 -0
- package/dist/collection/components/team-dev/history/helpers.js +22 -0
- package/dist/collection/components/team-dev/history/helpers.js.map +1 -0
- package/dist/collection/components/team-dev/history/history.css +124 -0
- package/dist/collection/components/team-dev/history/history.js +448 -0
- package/dist/collection/components/team-dev/history/history.js.map +1 -0
- package/dist/collection/testing/locale.e2e.js +1 -0
- package/dist/collection/testing/locale.e2e.js.map +1 -1
- package/dist/components/gx-ide-design-import.js +1 -1
- package/dist/components/gx-ide-design-import.js.map +1 -1
- package/dist/components/gx-ide-new-version.js +65 -15
- package/dist/components/gx-ide-new-version.js.map +1 -1
- package/dist/components/gx-ide-select-kb-items.js +1 -507
- package/dist/components/gx-ide-select-kb-items.js.map +1 -1
- package/dist/components/gx-ide-team-dev-commit.js +2 -2
- package/dist/components/gx-ide-team-dev-commit.js.map +1 -1
- package/dist/components/gx-ide-team-dev-history.d.ts +11 -0
- package/dist/components/gx-ide-team-dev-history.js +322 -0
- package/dist/components/gx-ide-team-dev-history.js.map +1 -0
- package/dist/components/select-kb-items.js +520 -0
- package/dist/components/select-kb-items.js.map +1 -0
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-design-import.entry.js +1 -1
- package/dist/esm/gx-ide-design-import.entry.js.map +1 -1
- package/dist/esm/gx-ide-new-version.entry.js +58 -14
- package/dist/esm/gx-ide-new-version.entry.js.map +1 -1
- package/dist/esm/gx-ide-select-kb-items.entry.js +16 -9
- package/dist/esm/gx-ide-select-kb-items.entry.js.map +1 -1
- package/dist/esm/gx-ide-team-dev-commit.entry.js +2 -2
- package/dist/esm/gx-ide-team-dev-commit.entry.js.map +1 -1
- package/dist/esm/gx-ide-team-dev-history.entry.js +266 -0
- package/dist/esm/gx-ide-team-dev-history.entry.js.map +1 -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/genexus-ide-ui.esm.js.map +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/new-version/langs/new-version.lang.en.json +3 -1
- package/dist/genexus-ide-ui/gx-ide-assets/new-version/langs/new-version.lang.ja.json +3 -1
- package/dist/genexus-ide-ui/gx-ide-assets/new-version/langs/new-version.lang.zh.json +3 -1
- package/dist/genexus-ide-ui/gx-ide-assets/select-kb-items/langs/select-kb-items.lang.en.json +2 -1
- package/dist/genexus-ide-ui/gx-ide-assets/select-kb-items/langs/select-kb-items.lang.ja.json +1 -0
- package/dist/genexus-ide-ui/gx-ide-assets/select-kb-items/langs/select-kb-items.lang.zh.json +1 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-history/langs/team-dev-history.lang.en.json +42 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-history/langs/team-dev-history.lang.ja.json +42 -0
- package/dist/genexus-ide-ui/gx-ide-assets/team-dev-history/langs/team-dev-history.lang.zh.json +42 -0
- package/dist/genexus-ide-ui/{p-48062d23.entry.js → p-0acf517c.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-48062d23.entry.js.map → p-0acf517c.entry.js.map} +1 -1
- package/dist/genexus-ide-ui/{p-d2107cb2.entry.js → p-34fd4875.entry.js} +3 -18
- package/dist/genexus-ide-ui/p-34fd4875.entry.js.map +1 -0
- package/dist/genexus-ide-ui/p-74715731.entry.js +541 -0
- package/dist/genexus-ide-ui/p-74715731.entry.js.map +1 -0
- package/dist/genexus-ide-ui/p-80c1ddc3.entry.js +218 -0
- package/dist/genexus-ide-ui/p-80c1ddc3.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-9fa1200f.entry.js → p-a8d0b62e.entry.js} +139 -125
- package/dist/genexus-ide-ui/p-a8d0b62e.entry.js.map +1 -0
- package/dist/types/components/new-version/new-version.d.ts +27 -1
- package/dist/types/components/select-kb-items/select-kb-items.d.ts +8 -0
- package/dist/types/components/team-dev/history/helpers.d.ts +7 -0
- package/dist/types/components/team-dev/history/history.d.ts +109 -0
- package/dist/types/components.d.ts +141 -18
- package/package.json +1 -1
- package/dist/genexus-ide-ui/p-9fa1200f.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-c91af626.entry.js +0 -149
- package/dist/genexus-ide-ui/p-c91af626.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-d2107cb2.entry.js.map +0 -1
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: max-content 1fr;
|
|
4
|
+
block-size: 100%;
|
|
5
|
+
overflow: auto;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.sidebar {
|
|
9
|
+
background-color: transparent !important;
|
|
10
|
+
border-inline-end: var(--section-common-border);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.sidebar::part(expand-button) {
|
|
14
|
+
border-radius: var(--control__border-radius);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
gx-ide-select-kb-items {
|
|
18
|
+
--search-input-max-inline-size: 300px;
|
|
19
|
+
opacity: 0;
|
|
20
|
+
transition: opacity var(--mer-timing--fast);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
gx-ide-select-kb-items.sidebar-expanded {
|
|
24
|
+
opacity: 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
ch-tabular-grid.tabular-grid--empty::part(main) {
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
ch-tabular-grid-rowset-empty {
|
|
32
|
+
position: relative;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.main {
|
|
36
|
+
display: grid;
|
|
37
|
+
grid-template-rows: max-content 1fr;
|
|
38
|
+
grid-row-gap: var(--mer-spacing--sm);
|
|
39
|
+
overflow: auto;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.main__header {
|
|
43
|
+
display: grid;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.main__content {
|
|
47
|
+
position: relative;
|
|
48
|
+
overflow: auto;
|
|
49
|
+
display: grid;
|
|
50
|
+
grid-template-rows: 1fr max-content 2fr;
|
|
51
|
+
grid-row-gap: var(--mer-spacing--sm);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.tabular-grid {
|
|
55
|
+
overflow: auto;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/*SECOND GRID*/
|
|
59
|
+
.search-filter {
|
|
60
|
+
display: grid;
|
|
61
|
+
grid-template-columns: 1fr max-content max-content;
|
|
62
|
+
gap: var(--gx-ide-grid-column-gap);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.action-buttons {
|
|
66
|
+
justify-self: flex-end;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.filters-grid {
|
|
70
|
+
display: grid;
|
|
71
|
+
grid-template-columns: repeat(6, 1fr);
|
|
72
|
+
grid-template-areas: "from from to to type type" "user user user revision revision revision";
|
|
73
|
+
grid-gap: var(--gx-ide-grid-column-gap);
|
|
74
|
+
padding-block-start: var(--mer-spacing--sm);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.filters-container {
|
|
78
|
+
display: grid;
|
|
79
|
+
grid-template-rows: 0fr;
|
|
80
|
+
transition: grid-template-rows var(--mer-timing--fast);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.filters-container-visible {
|
|
84
|
+
grid-template-rows: 1fr;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.filters-container > div {
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.field-from {
|
|
92
|
+
grid-area: from;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.field-to {
|
|
96
|
+
grid-area: to;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.field-type {
|
|
100
|
+
grid-area: type;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.field-user {
|
|
104
|
+
grid-area: user;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.field-revision {
|
|
108
|
+
grid-area: revision;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.commits-grid ch-tabular-grid-cell:is(:nth-child(2)) {
|
|
112
|
+
padding-block: var(--grid-cell__padding-block);
|
|
113
|
+
padding-inline: var(--grid-cell__padding-inline);
|
|
114
|
+
align-items: start;
|
|
115
|
+
justify-content: start;
|
|
116
|
+
min-inline-size: 200px;
|
|
117
|
+
}
|
|
118
|
+
.affected-objects-grid ch-tabular-grid-cell:is(:nth-child(5)) {
|
|
119
|
+
padding-block: var(--grid-cell__padding-block);
|
|
120
|
+
padding-inline: var(--grid-cell__padding-inline);
|
|
121
|
+
align-items: start;
|
|
122
|
+
justify-content: start;
|
|
123
|
+
min-inline-size: 200px;
|
|
124
|
+
}
|
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
+
if (kind === "a" && !f)
|
|
3
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
5
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
6
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
9
|
+
if (kind === "m")
|
|
10
|
+
throw new TypeError("Private method is not writable");
|
|
11
|
+
if (kind === "a" && !f)
|
|
12
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
13
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
14
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
15
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
16
|
+
};
|
|
17
|
+
var _GxIdeTeamDevHistory__componentLocale, _GxIdeTeamDevHistory_types, _GxIdeTeamDevHistory_fromEl, _GxIdeTeamDevHistory_revisionEl, _GxIdeTeamDevHistory_searchEl, _GxIdeTeamDevHistory_toEl, _GxIdeTeamDevHistory_typesEl, _GxIdeTeamDevHistory_userEl, _GxIdeTeamDevHistory_sidebarEl, _GxIdeTeamDevHistory_revisionsGridEl, _GxIdeTeamDevHistory_getIconState, _GxIdeTeamDevHistory_getObjectsFromVersion, _GxIdeTeamDevHistory_getSelectedRevision, _GxIdeTeamDevHistory_registerGridContextMenuListener, _GxIdeTeamDevHistory_gridContextMenuCallbackHandler, _GxIdeTeamDevHistory_toggleFiltersHandler, _GxIdeTeamDevHistory_renderCommitsGrid, _GxIdeTeamDevHistory_renderAffectedObjectsGrid, _GxIdeTeamDevHistory_renderLoader;
|
|
18
|
+
/* STENCIL IMPORTS */
|
|
19
|
+
import { h, Host } from "@stencil/core";
|
|
20
|
+
import { getIconPath } from "@genexus/mercury";
|
|
21
|
+
import { config } from "../../../common/config";
|
|
22
|
+
import { formatDate } from "../../../common/helpers";
|
|
23
|
+
import { Locale } from "../../../common/locale";
|
|
24
|
+
import { hasActiveVersionInList, mapObjectTypeToComboBoxItemModel } from "./helpers";
|
|
25
|
+
const CSS_BUNDLES = [
|
|
26
|
+
"resets/box-sizing",
|
|
27
|
+
"utils/form--full",
|
|
28
|
+
"utils/layout",
|
|
29
|
+
"utils/spacing",
|
|
30
|
+
"utils/typography",
|
|
31
|
+
"chameleon/scrollbar",
|
|
32
|
+
"components/tabular-grid",
|
|
33
|
+
"components/accordion",
|
|
34
|
+
"components/sidebar"
|
|
35
|
+
];
|
|
36
|
+
const CHANGES_PENDING_ICON = getIconPath({
|
|
37
|
+
category: "gx-server",
|
|
38
|
+
name: "changes-commit-pending"
|
|
39
|
+
});
|
|
40
|
+
const FILTER_ICON_PRIMARY = getIconPath({
|
|
41
|
+
category: "window-tools",
|
|
42
|
+
name: "filter",
|
|
43
|
+
colorType: "primary"
|
|
44
|
+
});
|
|
45
|
+
const FILTER_ICON = getIconPath({
|
|
46
|
+
category: "window-tools",
|
|
47
|
+
name: "filter",
|
|
48
|
+
colorType: "on-surface"
|
|
49
|
+
});
|
|
50
|
+
const DELETED_ICON = getIconPath({
|
|
51
|
+
category: "gx-server",
|
|
52
|
+
name: "delete"
|
|
53
|
+
});
|
|
54
|
+
const NEW_ICON = getIconPath({
|
|
55
|
+
category: "gx-server",
|
|
56
|
+
name: "new"
|
|
57
|
+
});
|
|
58
|
+
const PRIVATE_ICON = getIconPath({
|
|
59
|
+
category: "gx-server",
|
|
60
|
+
name: "private"
|
|
61
|
+
});
|
|
62
|
+
const RESET_ICON = getIconPath({
|
|
63
|
+
category: "gemini-tools",
|
|
64
|
+
name: "reset",
|
|
65
|
+
colorType: "primary"
|
|
66
|
+
});
|
|
67
|
+
const SEARCH_ICON = getIconPath({
|
|
68
|
+
category: "gemini-tools",
|
|
69
|
+
name: "search",
|
|
70
|
+
colorType: "on-surface"
|
|
71
|
+
});
|
|
72
|
+
export class GxIdeTeamDevHistory {
|
|
73
|
+
constructor() {
|
|
74
|
+
_GxIdeTeamDevHistory__componentLocale.set(this, void 0);
|
|
75
|
+
_GxIdeTeamDevHistory_types.set(this, []);
|
|
76
|
+
_GxIdeTeamDevHistory_fromEl.set(this, void 0);
|
|
77
|
+
_GxIdeTeamDevHistory_revisionEl.set(this, void 0);
|
|
78
|
+
_GxIdeTeamDevHistory_searchEl.set(this, void 0);
|
|
79
|
+
_GxIdeTeamDevHistory_toEl.set(this, void 0);
|
|
80
|
+
_GxIdeTeamDevHistory_typesEl.set(this, void 0);
|
|
81
|
+
_GxIdeTeamDevHistory_userEl.set(this, void 0);
|
|
82
|
+
_GxIdeTeamDevHistory_sidebarEl.set(this, void 0);
|
|
83
|
+
_GxIdeTeamDevHistory_revisionsGridEl.set(this, void 0);
|
|
84
|
+
_GxIdeTeamDevHistory_getIconState.set(this, (state) => {
|
|
85
|
+
let icon = h("ch-image", { src: PRIVATE_ICON, class: "icon-sm" });
|
|
86
|
+
switch (state) {
|
|
87
|
+
case "Inserted":
|
|
88
|
+
icon = h("ch-image", { src: NEW_ICON, class: "icon-sm" });
|
|
89
|
+
break;
|
|
90
|
+
case "Modified":
|
|
91
|
+
icon = h("ch-image", { src: CHANGES_PENDING_ICON, class: "icon-sm" });
|
|
92
|
+
break;
|
|
93
|
+
case "Deleted":
|
|
94
|
+
icon = h("ch-image", { src: DELETED_ICON, class: "icon-sm" });
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
return icon;
|
|
98
|
+
});
|
|
99
|
+
_GxIdeTeamDevHistory_getObjectsFromVersion.set(this, async (versionId) => {
|
|
100
|
+
var _a;
|
|
101
|
+
this.loading = true;
|
|
102
|
+
const filters = {
|
|
103
|
+
search: __classPrivateFieldGet(this, _GxIdeTeamDevHistory_searchEl, "f").value ? __classPrivateFieldGet(this, _GxIdeTeamDevHistory_searchEl, "f").value : "",
|
|
104
|
+
from: __classPrivateFieldGet(this, _GxIdeTeamDevHistory_fromEl, "f").value ? new Date(__classPrivateFieldGet(this, _GxIdeTeamDevHistory_fromEl, "f").value) : null,
|
|
105
|
+
to: __classPrivateFieldGet(this, _GxIdeTeamDevHistory_toEl, "f").value ? new Date(__classPrivateFieldGet(this, _GxIdeTeamDevHistory_toEl, "f").value) : null,
|
|
106
|
+
revision: __classPrivateFieldGet(this, _GxIdeTeamDevHistory_revisionEl, "f").value ? __classPrivateFieldGet(this, _GxIdeTeamDevHistory_revisionEl, "f").value : "",
|
|
107
|
+
user: __classPrivateFieldGet(this, _GxIdeTeamDevHistory_userEl, "f").value ? __classPrivateFieldGet(this, _GxIdeTeamDevHistory_userEl, "f").value : "",
|
|
108
|
+
type: __classPrivateFieldGet(this, _GxIdeTeamDevHistory_typesEl, "f").value === "all" ? "" : __classPrivateFieldGet(this, _GxIdeTeamDevHistory_typesEl, "f").value
|
|
109
|
+
};
|
|
110
|
+
this.objects = await this.loadCallback(filters, versionId);
|
|
111
|
+
await __classPrivateFieldGet(this, _GxIdeTeamDevHistory_getSelectedRevision, "f").call(this, (_a = this.objects[0]) === null || _a === void 0 ? void 0 : _a.id);
|
|
112
|
+
this.loading = false;
|
|
113
|
+
});
|
|
114
|
+
_GxIdeTeamDevHistory_getSelectedRevision.set(this, async (revisionId) => {
|
|
115
|
+
if (revisionId) {
|
|
116
|
+
this.historyDetail = await this.loadDetailCallback(revisionId);
|
|
117
|
+
this.selectedRevisionId = revisionId;
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
this.historyDetail = null;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
_GxIdeTeamDevHistory_registerGridContextMenuListener.set(this, () => {
|
|
124
|
+
if (__classPrivateFieldGet(this, _GxIdeTeamDevHistory_revisionsGridEl, "f")) {
|
|
125
|
+
__classPrivateFieldGet(this, _GxIdeTeamDevHistory_revisionsGridEl, "f").addEventListener("contextmenu", (ev) => {
|
|
126
|
+
ev.preventDefault();
|
|
127
|
+
ev.stopPropagation();
|
|
128
|
+
__classPrivateFieldGet(this, _GxIdeTeamDevHistory_gridContextMenuCallbackHandler, "f").call(this, ev);
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
_GxIdeTeamDevHistory_gridContextMenuCallbackHandler.set(this, async (ev) => {
|
|
133
|
+
this.gridContextMenuCallback({
|
|
134
|
+
selection: [this.selectedRevisionId],
|
|
135
|
+
clientX: ev.clientX,
|
|
136
|
+
clientY: ev.clientY
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
_GxIdeTeamDevHistory_toggleFiltersHandler.set(this, () => {
|
|
140
|
+
this.filtersHidden = !this.filtersHidden;
|
|
141
|
+
});
|
|
142
|
+
_GxIdeTeamDevHistory_renderCommitsGrid.set(this, () => {
|
|
143
|
+
var _a;
|
|
144
|
+
const tabularGridEmpty = ((_a = this.objects) === null || _a === void 0 ? void 0 : _a.length) === 0 || !this.objects;
|
|
145
|
+
return (h("ch-tabular-grid", { class: {
|
|
146
|
+
"commits-grid": true,
|
|
147
|
+
"tabular-grid": true,
|
|
148
|
+
"tabular-grid--empty": tabularGridEmpty
|
|
149
|
+
}, onSelectionChanged: (ev) => {
|
|
150
|
+
this.objects.length > 0 &&
|
|
151
|
+
__classPrivateFieldGet(this, _GxIdeTeamDevHistory_getSelectedRevision, "f").call(this, ev.detail.rowsId[0]);
|
|
152
|
+
}, ref: (el) => {
|
|
153
|
+
var _a;
|
|
154
|
+
if (el && __classPrivateFieldGet(this, _GxIdeTeamDevHistory_revisionsGridEl, "f") !== el) {
|
|
155
|
+
__classPrivateFieldSet(this, _GxIdeTeamDevHistory_revisionsGridEl, el, "f");
|
|
156
|
+
__classPrivateFieldGet(this, _GxIdeTeamDevHistory_registerGridContextMenuListener, "f").call(this);
|
|
157
|
+
if (this.objects.length > 0) {
|
|
158
|
+
__classPrivateFieldGet(this, _GxIdeTeamDevHistory_revisionsGridEl, "f").selectRow((_a = this.objects[0]) === null || _a === void 0 ? void 0 : _a.id, true);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
} }, h("ch-tabular-grid-columnset", { class: "tabular-grid-column-set" }, h("ch-tabular-grid-column", { "column-name": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").mainGrid.columns.id, "column-name-position": "text", class: "tabular-grid-column", settingable: false, size: "max-content" }), h("ch-tabular-grid-column", { "column-name": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").mainGrid.columns.comment, "column-name-position": "text", class: "tabular-grid-column", settingable: false, size: "1fr" }), h("ch-tabular-grid-column", { "column-name": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").mainGrid.columns.user, "column-name-position": "text", class: "tabular-grid-column", settingable: false, size: "max-content" }), h("ch-tabular-grid-column", { "column-name": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").mainGrid.columns.commitDate, "column-name-position": "text", class: "tabular-grid-column", settingable: false, size: "max-content" })), this.objects.length > 0 ? (h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, this.objects.map((obj) => (h("ch-tabular-grid-row", { rowid: obj.id, key: obj.id, class: "tabular-grid-row" }, h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, obj.id), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, obj.comment), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, obj.user), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, `${formatDate(obj.commitDate, "date-time")}`)))))) : (h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, h("ch-tabular-grid-rowset-empty", null, h("gx-ide-empty-state", { stateTitle: __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").emptyRevisionsText, isAnimated: true })))), h("ch-tabular-grid-row", { class: "tabular-grid-row" })));
|
|
162
|
+
});
|
|
163
|
+
_GxIdeTeamDevHistory_renderAffectedObjectsGrid.set(this, () => {
|
|
164
|
+
var _a;
|
|
165
|
+
const iterable = this.historyDetail ? this.historyDetail.objects : [];
|
|
166
|
+
const tabularGridEmpty = ((_a = this.historyDetail) === null || _a === void 0 ? void 0 : _a.objects.length) === 0 || !this.historyDetail;
|
|
167
|
+
return (h("ch-tabular-grid", { class: {
|
|
168
|
+
"affected-objects-grid": true,
|
|
169
|
+
"tabular-grid": true,
|
|
170
|
+
"tabular-grid--empty": tabularGridEmpty
|
|
171
|
+
} }, h("ch-tabular-grid-columnset", { class: "tabular-grid-column-set" }, h("ch-tabular-grid-column", { "column-name-position": "text", class: "tabular-grid-column", settingable: false, size: "max-content" }), h("ch-tabular-grid-column", { "column-name-position": "text", class: "tabular-grid-column", settingable: false, size: config.tabularGrid.colSize.auto }), h("ch-tabular-grid-column", { "column-name": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").affectedObjectsGrid.columns.name, "column-name-position": "text", class: "tabular-grid-column", settingable: false, size: "max-content" }), h("ch-tabular-grid-column", { "column-name": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").affectedObjectsGrid.columns.types, "column-name-position": "text", class: "tabular-grid-column", settingable: false, size: "max-content" }), h("ch-tabular-grid-column", { "column-name": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").affectedObjectsGrid.columns.description, "column-name-position": "text", class: "tabular-grid-column", settingable: false, size: "1fr" }), h("ch-tabular-grid-column", { "column-name": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").affectedObjectsGrid.columns.action, "column-name-position": "text", class: "tabular-grid-column", settingable: false, size: "max-content" })), this.historyDetail && this.historyDetail.objects.length > 0 ? (h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, iterable.map((obj) => (h("ch-tabular-grid-row", { class: "tabular-grid-row" }, h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, h("ch-image", { src: obj.typeIcon, class: "icon-md" })), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, __classPrivateFieldGet(this, _GxIdeTeamDevHistory_getIconState, "f").call(this, obj.state)), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, obj.name), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, obj.type), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, obj.description), h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, obj.action)))))) : (h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, h("ch-tabular-grid-rowset-empty", null, h("gx-ide-empty-state", { stateIconSrc: FILTER_ICON, stateTitle: __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").emptyHistoryDetailText, isAnimated: true })))), h("ch-tabular-grid-row", { class: "tabular-grid-row" })));
|
|
172
|
+
});
|
|
173
|
+
_GxIdeTeamDevHistory_renderLoader.set(this, () => {
|
|
174
|
+
return (this.loading && (h("div", { class: "main__content scrollable" }, h("gx-ide-loader", { loaderTitle: __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").loader.title, show: true, description: __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").loader.description }))));
|
|
175
|
+
});
|
|
176
|
+
this.historyDetail = undefined;
|
|
177
|
+
this.objects = [];
|
|
178
|
+
this.isFirstLoad = true;
|
|
179
|
+
this.sidebarExpanded = true;
|
|
180
|
+
this.filtersHidden = true;
|
|
181
|
+
this.loading = true;
|
|
182
|
+
this.selectedRevisionId = undefined;
|
|
183
|
+
this.hasActiveVersion = false;
|
|
184
|
+
this.types = undefined;
|
|
185
|
+
this.itemContextMenuCallback = undefined;
|
|
186
|
+
this.gridContextMenuCallback = undefined;
|
|
187
|
+
this.selectedVersionId = undefined;
|
|
188
|
+
this.versions = [];
|
|
189
|
+
this.loadCallback = undefined;
|
|
190
|
+
this.loadDetailCallback = undefined;
|
|
191
|
+
this.selectedVersionChangeCallback = undefined;
|
|
192
|
+
}
|
|
193
|
+
async selectedVersionIdChanged(newSelectedVersionId) {
|
|
194
|
+
var _a;
|
|
195
|
+
this.selectedVersionId = newSelectedVersionId;
|
|
196
|
+
// Reset filters
|
|
197
|
+
__classPrivateFieldGet(this, _GxIdeTeamDevHistory_searchEl, "f").value = null;
|
|
198
|
+
__classPrivateFieldGet(this, _GxIdeTeamDevHistory_fromEl, "f").value = null;
|
|
199
|
+
__classPrivateFieldGet(this, _GxIdeTeamDevHistory_toEl, "f").value = null;
|
|
200
|
+
__classPrivateFieldGet(this, _GxIdeTeamDevHistory_revisionEl, "f").value = null;
|
|
201
|
+
__classPrivateFieldGet(this, _GxIdeTeamDevHistory_userEl, "f").value = null;
|
|
202
|
+
__classPrivateFieldGet(this, _GxIdeTeamDevHistory_typesEl, "f").value = (_a = __classPrivateFieldGet(this, _GxIdeTeamDevHistory_types, "f")[0]) === null || _a === void 0 ? void 0 : _a.value;
|
|
203
|
+
await __classPrivateFieldGet(this, _GxIdeTeamDevHistory_getObjectsFromVersion, "f").call(this, newSelectedVersionId);
|
|
204
|
+
}
|
|
205
|
+
async versionsListChanged(newVersionsList) {
|
|
206
|
+
this.versions = newVersionsList;
|
|
207
|
+
this.hasActiveVersion = hasActiveVersionInList(newVersionsList);
|
|
208
|
+
if (newVersionsList.length > 0 &&
|
|
209
|
+
this.selectedVersionId &&
|
|
210
|
+
this.isFirstLoad) {
|
|
211
|
+
await __classPrivateFieldGet(this, _GxIdeTeamDevHistory_getObjectsFromVersion, "f").call(this, this.selectedVersionId);
|
|
212
|
+
this.isFirstLoad = false;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
async componentWillLoad() {
|
|
216
|
+
__classPrivateFieldSet(this, _GxIdeTeamDevHistory__componentLocale, await Locale.getComponentStrings(this.el), "f");
|
|
217
|
+
__classPrivateFieldSet(this, _GxIdeTeamDevHistory_types, mapObjectTypeToComboBoxItemModel(this.types), "f");
|
|
218
|
+
}
|
|
219
|
+
async componentDidLoad() {
|
|
220
|
+
__classPrivateFieldGet(this, _GxIdeTeamDevHistory_sidebarEl, "f").addEventListener("expandedChange", (e) => {
|
|
221
|
+
this.sidebarExpanded = e.detail;
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
render() {
|
|
225
|
+
var _a;
|
|
226
|
+
return (h(Host, { class: "widget" }, h("ch-theme", { model: CSS_BUNDLES }), h("ch-sidebar", { ref: (el) => (__classPrivateFieldSet(this, _GxIdeTeamDevHistory_sidebarEl, el, "f")), class: "sidebar", expanded: this.sidebarExpanded, expandButtonCollapseAccessibleName: __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").sidebar.collapseAriaLabel, expandButtonExpandAccessibleName: __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").sidebar.expandAriaLabel, showExpandButton: true }, h("gx-ide-select-kb-items", { class: {
|
|
227
|
+
"sidebar-expanded": this.sidebarExpanded,
|
|
228
|
+
"has-active-version": this.hasActiveVersion
|
|
229
|
+
}, checkboxType: "none", itemsList: this.versions, expandOnClick: false, selectionChanged: this.selectedVersionChangeCallback, itemContextMenuCallback: this.itemContextMenuCallback })), h("main", { class: "main spacing-body-block-start spacing-body-inline" }, h("div", { class: "main__header" }, h("div", { class: "search-filter" }, h("div", { class: "field field-inline" }, h("label", { class: "label", htmlFor: "search" }, __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").filters.search), h("ch-edit", { value: "", class: "input", startImgSrc: SEARCH_ICON, part: "search", id: "search", ref: (el) => (__classPrivateFieldSet(this, _GxIdeTeamDevHistory_searchEl, el, "f")) })), h("button", { id: "filter-toggle-button", class: "button-teritary button-icon-only", "aria-label": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").searchFilter.filterAriaLabel, "aria-expanded": this.filtersHidden ? "false" : "true", "aria-controls": "filters-container", onClick: () => __classPrivateFieldGet(this, _GxIdeTeamDevHistory_toggleFiltersHandler, "f").call(this) }, h("ch-image", { class: "icon-md", src: FILTER_ICON_PRIMARY })), h("button", { class: "button-teritary button-icon-only", "aria-label": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").searchFilter.reloadAriaLabel, onClick: () => __classPrivateFieldGet(this, _GxIdeTeamDevHistory_getObjectsFromVersion, "f").call(this, this.selectedVersionId), part: __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").searchFilter.reloadAriaLabel }, h("ch-image", { class: "icon-md", src: RESET_ICON }))), h("div", { id: "filters-container", "aria-labelledby": "filter-toggle-button", class: {
|
|
230
|
+
"filters-container-visible": !this.filtersHidden,
|
|
231
|
+
"filters-container": true
|
|
232
|
+
}, inert: this.filtersHidden, hidden: this.filtersHidden }, h("div", null, h("div", { class: "filters-grid" }, h("div", { class: "field field-block field-from" }, h("label", { class: "label", htmlFor: "from" }, __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").filters.from), h("ch-edit", { value: "", class: "input", type: "date", part: "from", id: "from", ref: (el) => (__classPrivateFieldSet(this, _GxIdeTeamDevHistory_fromEl, el, "f")) })), h("div", { class: "field field-block field-to" }, h("label", { class: "label", htmlFor: "to" }, __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").filters.to), h("ch-edit", { value: "", class: "input", type: "date", id: "to", ref: (el) => (__classPrivateFieldSet(this, _GxIdeTeamDevHistory_toEl, el, "f")) })), h("div", { class: "field field-block field-type" }, h("label", { class: "label", htmlFor: "type" }, __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").filters.type), h("ch-combo-box-render", { accessibleName: "types", class: "combo-box", part: "type", model: __classPrivateFieldGet(this, _GxIdeTeamDevHistory_types, "f"), value: (_a = __classPrivateFieldGet(this, _GxIdeTeamDevHistory_types, "f")[0]) === null || _a === void 0 ? void 0 : _a.value, ref: (el) => (__classPrivateFieldSet(this, _GxIdeTeamDevHistory_typesEl, el, "f")) })), h("div", { class: "field field-block field-user" }, h("label", { class: "label", htmlFor: "user" }, __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").filters.user), h("ch-edit", { value: "", part: "user", class: "input", id: "user", ref: (el) => (__classPrivateFieldSet(this, _GxIdeTeamDevHistory_userEl, el, "f")) })), h("div", { class: "field field-block field-revision" }, h("label", { class: "label", htmlFor: "revision" }, __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").filters.revision), h("ch-edit", { value: "", part: "revision", class: "input", id: "revision", ref: (el) => (__classPrivateFieldSet(this, _GxIdeTeamDevHistory_revisionEl, el, "f")) })))))), __classPrivateFieldGet(this, _GxIdeTeamDevHistory_renderLoader, "f").call(this), !this.loading && (h("div", { class: "main__content scrollable" }, __classPrivateFieldGet(this, _GxIdeTeamDevHistory_renderCommitsGrid, "f").call(this), h("div", { class: "field field-block" }, h("label", { class: "label", htmlFor: "comment-area" }, this.historyDetail ? this.historyDetail.title : null), h("ch-edit", { class: "input comment-text-area", value: this.historyDetail ? this.historyDetail.comment : null, multiline: true, autoGrow: true, readonly: true, part: "comment-area", id: "comment-area" })), __classPrivateFieldGet(this, _GxIdeTeamDevHistory_renderAffectedObjectsGrid, "f").call(this))))));
|
|
233
|
+
}
|
|
234
|
+
static get is() { return "gx-ide-team-dev-history"; }
|
|
235
|
+
static get encapsulation() { return "shadow"; }
|
|
236
|
+
static get originalStyleUrls() {
|
|
237
|
+
return {
|
|
238
|
+
"$": ["history.scss"]
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
static get styleUrls() {
|
|
242
|
+
return {
|
|
243
|
+
"$": ["history.css"]
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
static get assetsDirs() { return ["gx-ide-assets/team-dev-history"]; }
|
|
247
|
+
static get properties() {
|
|
248
|
+
return {
|
|
249
|
+
"types": {
|
|
250
|
+
"type": "unknown",
|
|
251
|
+
"mutable": false,
|
|
252
|
+
"complexType": {
|
|
253
|
+
"original": "ObjectType[]",
|
|
254
|
+
"resolved": "ObjectType[]",
|
|
255
|
+
"references": {
|
|
256
|
+
"ObjectType": {
|
|
257
|
+
"location": "local",
|
|
258
|
+
"path": "/home/runner/work/genexus-ide-ui/genexus-ide-ui/src/components/team-dev/history/history.tsx",
|
|
259
|
+
"id": "src/components/team-dev/history/history.tsx::ObjectType"
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"required": false,
|
|
264
|
+
"optional": false,
|
|
265
|
+
"docs": {
|
|
266
|
+
"tags": [],
|
|
267
|
+
"text": "Possible values of type filter"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"itemContextMenuCallback": {
|
|
271
|
+
"type": "unknown",
|
|
272
|
+
"mutable": false,
|
|
273
|
+
"complexType": {
|
|
274
|
+
"original": "(\n info: ContextMenuInfo\n ) => Promise<void>",
|
|
275
|
+
"resolved": "(info: ContextMenuInfo) => Promise<void>",
|
|
276
|
+
"references": {
|
|
277
|
+
"ContextMenuInfo": {
|
|
278
|
+
"location": "import",
|
|
279
|
+
"path": "../../../components",
|
|
280
|
+
"id": "src/components.d.ts::ContextMenuInfo"
|
|
281
|
+
},
|
|
282
|
+
"Promise": {
|
|
283
|
+
"location": "global",
|
|
284
|
+
"id": "global::Promise"
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"required": false,
|
|
289
|
+
"optional": false,
|
|
290
|
+
"docs": {
|
|
291
|
+
"tags": [],
|
|
292
|
+
"text": "Callback emitted when the user right click on an item"
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"gridContextMenuCallback": {
|
|
296
|
+
"type": "unknown",
|
|
297
|
+
"mutable": false,
|
|
298
|
+
"complexType": {
|
|
299
|
+
"original": "(\n info: ContextMenuInfo\n ) => Promise<void>",
|
|
300
|
+
"resolved": "(info: ContextMenuInfo) => Promise<void>",
|
|
301
|
+
"references": {
|
|
302
|
+
"ContextMenuInfo": {
|
|
303
|
+
"location": "import",
|
|
304
|
+
"path": "../../../components",
|
|
305
|
+
"id": "src/components.d.ts::ContextMenuInfo"
|
|
306
|
+
},
|
|
307
|
+
"Promise": {
|
|
308
|
+
"location": "global",
|
|
309
|
+
"id": "global::Promise"
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"required": false,
|
|
314
|
+
"optional": false,
|
|
315
|
+
"docs": {
|
|
316
|
+
"tags": [],
|
|
317
|
+
"text": "Callback invoked when user right-clicks on the grid"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"selectedVersionId": {
|
|
321
|
+
"type": "string",
|
|
322
|
+
"mutable": true,
|
|
323
|
+
"complexType": {
|
|
324
|
+
"original": "string",
|
|
325
|
+
"resolved": "string",
|
|
326
|
+
"references": {}
|
|
327
|
+
},
|
|
328
|
+
"required": false,
|
|
329
|
+
"optional": false,
|
|
330
|
+
"docs": {
|
|
331
|
+
"tags": [],
|
|
332
|
+
"text": "The Id of the selected version in the select-kb-items component"
|
|
333
|
+
},
|
|
334
|
+
"attribute": "selected-version-id",
|
|
335
|
+
"reflect": false
|
|
336
|
+
},
|
|
337
|
+
"versions": {
|
|
338
|
+
"type": "unknown",
|
|
339
|
+
"mutable": true,
|
|
340
|
+
"complexType": {
|
|
341
|
+
"original": "ItemNode[]",
|
|
342
|
+
"resolved": "ItemNode[]",
|
|
343
|
+
"references": {
|
|
344
|
+
"ItemNode": {
|
|
345
|
+
"location": "import",
|
|
346
|
+
"path": "../../select-kb-items/select-kb-items",
|
|
347
|
+
"id": "src/components/select-kb-items/select-kb-items.tsx::ItemNode"
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"required": false,
|
|
352
|
+
"optional": false,
|
|
353
|
+
"docs": {
|
|
354
|
+
"tags": [],
|
|
355
|
+
"text": "List of versions to show in the versions tree"
|
|
356
|
+
},
|
|
357
|
+
"defaultValue": "[]"
|
|
358
|
+
},
|
|
359
|
+
"loadCallback": {
|
|
360
|
+
"type": "unknown",
|
|
361
|
+
"mutable": false,
|
|
362
|
+
"complexType": {
|
|
363
|
+
"original": "LoadCallback",
|
|
364
|
+
"resolved": "(filters: FiltersData, versionId: string) => Promise<RevisionData[]>",
|
|
365
|
+
"references": {
|
|
366
|
+
"LoadCallback": {
|
|
367
|
+
"location": "local",
|
|
368
|
+
"path": "/home/runner/work/genexus-ide-ui/genexus-ide-ui/src/components/team-dev/history/history.tsx",
|
|
369
|
+
"id": "src/components/team-dev/history/history.tsx::LoadCallback"
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"required": false,
|
|
374
|
+
"optional": false,
|
|
375
|
+
"docs": {
|
|
376
|
+
"tags": [],
|
|
377
|
+
"text": "Callback invoked when is necessary to reload the history info. Receive the filters as parameters and only returns the info corresponding to the master grid."
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
"loadDetailCallback": {
|
|
381
|
+
"type": "unknown",
|
|
382
|
+
"mutable": false,
|
|
383
|
+
"complexType": {
|
|
384
|
+
"original": "LoadDetailCallback",
|
|
385
|
+
"resolved": "(revision: string) => Promise<RevisionDetailData>",
|
|
386
|
+
"references": {
|
|
387
|
+
"LoadDetailCallback": {
|
|
388
|
+
"location": "local",
|
|
389
|
+
"path": "/home/runner/work/genexus-ide-ui/genexus-ide-ui/src/components/team-dev/history/history.tsx",
|
|
390
|
+
"id": "src/components/team-dev/history/history.tsx::LoadDetailCallback"
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
"required": false,
|
|
395
|
+
"optional": false,
|
|
396
|
+
"docs": {
|
|
397
|
+
"tags": [],
|
|
398
|
+
"text": "Callback invoked to obtain detailed info from a revision. As parameter receive internal revision id"
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
"selectedVersionChangeCallback": {
|
|
402
|
+
"type": "unknown",
|
|
403
|
+
"mutable": false,
|
|
404
|
+
"complexType": {
|
|
405
|
+
"original": "SelectedVersionChangeCallback",
|
|
406
|
+
"resolved": "(selectedVersion: string[]) => Promise<void>",
|
|
407
|
+
"references": {
|
|
408
|
+
"SelectedVersionChangeCallback": {
|
|
409
|
+
"location": "local",
|
|
410
|
+
"path": "/home/runner/work/genexus-ide-ui/genexus-ide-ui/src/components/team-dev/history/history.tsx",
|
|
411
|
+
"id": "src/components/team-dev/history/history.tsx::SelectedVersionChangeCallback"
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
"required": false,
|
|
416
|
+
"optional": false,
|
|
417
|
+
"docs": {
|
|
418
|
+
"tags": [],
|
|
419
|
+
"text": "Callback invoked when the selected version changes. As parameter receive the selected version id"
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
static get states() {
|
|
425
|
+
return {
|
|
426
|
+
"historyDetail": {},
|
|
427
|
+
"objects": {},
|
|
428
|
+
"isFirstLoad": {},
|
|
429
|
+
"sidebarExpanded": {},
|
|
430
|
+
"filtersHidden": {},
|
|
431
|
+
"loading": {},
|
|
432
|
+
"selectedRevisionId": {},
|
|
433
|
+
"hasActiveVersion": {}
|
|
434
|
+
};
|
|
435
|
+
}
|
|
436
|
+
static get elementRef() { return "el"; }
|
|
437
|
+
static get watchers() {
|
|
438
|
+
return [{
|
|
439
|
+
"propName": "selectedVersionId",
|
|
440
|
+
"methodName": "selectedVersionIdChanged"
|
|
441
|
+
}, {
|
|
442
|
+
"propName": "versions",
|
|
443
|
+
"methodName": "versionsListChanged"
|
|
444
|
+
}];
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
_GxIdeTeamDevHistory__componentLocale = new WeakMap(), _GxIdeTeamDevHistory_types = new WeakMap(), _GxIdeTeamDevHistory_fromEl = new WeakMap(), _GxIdeTeamDevHistory_revisionEl = new WeakMap(), _GxIdeTeamDevHistory_searchEl = new WeakMap(), _GxIdeTeamDevHistory_toEl = new WeakMap(), _GxIdeTeamDevHistory_typesEl = new WeakMap(), _GxIdeTeamDevHistory_userEl = new WeakMap(), _GxIdeTeamDevHistory_sidebarEl = new WeakMap(), _GxIdeTeamDevHistory_revisionsGridEl = new WeakMap(), _GxIdeTeamDevHistory_getIconState = new WeakMap(), _GxIdeTeamDevHistory_getObjectsFromVersion = new WeakMap(), _GxIdeTeamDevHistory_getSelectedRevision = new WeakMap(), _GxIdeTeamDevHistory_registerGridContextMenuListener = new WeakMap(), _GxIdeTeamDevHistory_gridContextMenuCallbackHandler = new WeakMap(), _GxIdeTeamDevHistory_toggleFiltersHandler = new WeakMap(), _GxIdeTeamDevHistory_renderCommitsGrid = new WeakMap(), _GxIdeTeamDevHistory_renderAffectedObjectsGrid = new WeakMap(), _GxIdeTeamDevHistory_renderLoader = new WeakMap();
|
|
448
|
+
//# sourceMappingURL=history.js.map
|