@genexus/genexus-ide-ui 0.0.32 → 0.0.34
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/format-date-c32a19bd.js +15 -0
- package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/{gxg-date-picker.cjs.entry.js → gx-ide-entity-selector_2.cjs.entry.js} +81 -0
- package/dist/cjs/gx-ide-object-selector.cjs.entry.js +174 -0
- package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +19 -5
- package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +3 -2
- package/dist/cjs/gx-ide-test.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/render-combo-items-ef403ec4.js +16 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/common/render-combo-items.js +2 -1
- package/dist/collection/components/_test/test.js +1 -1
- package/dist/collection/components/entity-selector/entity-selector.js +1 -1
- package/dist/collection/components/object-selector/gx-ide-assets/object-selector/langs/object-selector.lang.en.json +36 -0
- package/dist/collection/components/object-selector/gx-ide-assets/object-selector/langs/object-selector.lang.ja.json +3 -0
- package/dist/collection/components/object-selector/gx-ide-assets/object-selector/langs/object-selector.lang.zh.json +3 -0
- package/dist/collection/components/object-selector/object-selector.css +169 -0
- package/dist/collection/components/object-selector/object-selector.js +449 -0
- package/dist/collection/components/team-dev-commit/team-dev-commit.js +20 -6
- package/dist/{esm/gxg-date-picker.entry.js → components/date-picker.js} +47 -11
- package/dist/{esm/gx-ide-entity-selector.entry.js → components/entity-selector.js} +63 -8
- package/dist/components/format-date.js +1 -13
- package/dist/components/gx-ide-entity-selector.js +1 -136
- package/dist/components/gx-ide-object-selector.d.ts +11 -0
- package/dist/components/gx-ide-object-selector.js +350 -0
- package/dist/components/gx-ide-team-dev-commit.js +20 -5
- package/dist/components/gx-ide-team-dev-update.js +2 -1
- package/dist/components/gx-ide-test.js +3 -3
- package/dist/components/gxg-date-picker.js +1 -206
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +1 -0
- package/dist/components/render-combo-items.js +14 -0
- package/dist/esm/format-date-3c7cead5.js +13 -0
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-entity-selector_2.entry.js +252 -0
- package/dist/esm/gx-ide-object-selector.entry.js +170 -0
- package/dist/esm/gx-ide-team-dev-commit.entry.js +19 -5
- package/dist/esm/gx-ide-team-dev-update.entry.js +2 -1
- package/dist/esm/gx-ide-test.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/render-combo-items-84c5ea90.js +14 -0
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/object-selector/langs/object-selector.lang.en.json +36 -0
- package/dist/genexus-ide-ui/gx-ide-assets/object-selector/langs/object-selector.lang.ja.json +3 -0
- package/dist/genexus-ide-ui/gx-ide-assets/object-selector/langs/object-selector.lang.zh.json +3 -0
- package/dist/genexus-ide-ui/p-04e80c6b.entry.js +1 -0
- package/dist/genexus-ide-ui/p-35bc6e3a.entry.js +1 -0
- package/dist/genexus-ide-ui/p-379b0fdc.entry.js +1 -0
- package/dist/genexus-ide-ui/p-98906eb4.js +1 -0
- package/dist/genexus-ide-ui/p-d3c40681.js +1 -0
- package/dist/genexus-ide-ui/p-ee458561.entry.js +1 -0
- package/dist/types/components/_test/test.d.ts +1 -1
- package/dist/types/components/object-selector/object-selector.d.ts +134 -0
- package/dist/types/components/team-dev-commit/team-dev-commit.d.ts +4 -2
- package/dist/types/components.d.ts +131 -8
- package/package.json +1 -1
- package/dist/cjs/format-date-f2c49d1a.js +0 -28
- package/dist/cjs/gx-ide-entity-selector.cjs.entry.js +0 -87
- package/dist/esm/format-date-e9ca0786.js +0 -25
- package/dist/genexus-ide-ui/p-48412811.entry.js +0 -1
- package/dist/genexus-ide-ui/p-72303355.js +0 -1
- package/dist/genexus-ide-ui/p-b2923298.entry.js +0 -1
- package/dist/genexus-ide-ui/p-c580682f.entry.js +0 -1
- package/dist/genexus-ide-ui/p-f794dc13.entry.js +0 -1
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-5a32426a.js');
|
|
6
|
+
const locale = require('./locale-c8445ea4.js');
|
|
7
|
+
const renderComboItems = require('./render-combo-items-ef403ec4.js');
|
|
8
|
+
|
|
9
|
+
const objectSelectorCss = ".gxi-hidden{display:none !important}.gxi-full-height{height:100%}.align-start{display:flex;align-items:start}.align-center{display:flex;align-items:center}.align-end{display:flex;align-items:end}.grid{display:grid;grid-row-gap:var(--gx-ide-grid-row-gap);grid-column-gap:var(--gx-ide-grid-column-gap);grid-template-rows:auto}:host(.gx-ide-component){box-shadow:var(--box-shadow-01) !important;height:100% !important;display:flex !important;flex-direction:column !important}:host(:focus-within) gx-ide-top-bar::part(wrapper){background-color:var(--color-secondary-enabled)}.gx-ide-main-wrapper{color:var(--gx-ide-component-text-color);font-weight:var(--font-weight-regular);font-size:var(--font-size-lg);line-height:1.6em;height:100%;background-color:var(--gx-ide-component-background-color);display:flex;flex-direction:column;flex-grow:1}.gx-ide-main{flex-grow:1;overflow-y:auto;}.gx-ide-main::-webkit-scrollbar{width:6px;height:6px}.gx-ide-main::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-main .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}.gx-ide-overflow{overflow-y:auto;}.gx-ide-overflow::-webkit-scrollbar{width:6px;height:6px}.gx-ide-overflow::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-overflow .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}:host{display:block;border:1px solid var(--gxg-border-color--regular);background-color:var(--color-background)}.filter-grid{grid-template-columns:repeat(2, 1fr)}.filter-grid *:nth-child(5){grid-area:3/1/4/3}.flex{display:flex;flex-direction:row;align-items:center}.with-gap{gap:var(--gx-ide-grid-row-gap)}.hide{display:none}.objects-count{grid-template-columns:repeat(2, 1fr)}.objects-count *:nth-child(2){justify-content:flex-end;align-items:flex-start}.actions{grid-template-columns:repeat(2, 1fr)}.actions>*{display:flex;flex-direction:row;gap:var(--gx-ide-grid-row-gap)}.actions>*:nth-child(2){justify-content:flex-end}";
|
|
10
|
+
|
|
11
|
+
const FILTER_AFTER_NONE = "none";
|
|
12
|
+
const FILTER_AFTER_DATE_TIME = "afterDateTime";
|
|
13
|
+
const FILTER_AFTER_LAST_BUILD = "afterLastBuild";
|
|
14
|
+
const FILTER_AFTER_IMPORT = "afterImport";
|
|
15
|
+
const GxIdeObjectSelector = class {
|
|
16
|
+
constructor(hostRef) {
|
|
17
|
+
index.registerInstance(this, hostRef);
|
|
18
|
+
this.componentDidLoadEvent = index.createEvent(this, "componentDidLoadEvent", 7);
|
|
19
|
+
// 9.LOCAL METHODS //
|
|
20
|
+
this.renderFilter = () => {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
return (index.h("gxg-container", { fieldset: true, displayBorderBottom: true, containerTitle: this._componentLocale.filter.title, part: "filters-container" }, index.h("div", { class: "grid filter-grid" }, index.h("gxg-form-text", { "label-position": "above", label: this._componentLocale.filter.pattern, ref: (el) => (this.filterPatternEl = el), value: this.patternValue, part: "filter-pattern" }), index.h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.filter.type, value: this.defaultType, disabled: !this.types, "display-validation-styles": true, "display-validation-message": true, ref: (el) => (this.filterTypeEl = el), part: "filter-type" }, renderComboItems.renderComboItems((_a = this.types) !== null && _a !== void 0 ? _a : [])), index.h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.filter.category, value: this.defaultCategory, disabled: !this.categories, "display-validation-styles": true, "display-validation-message": true, ref: (el) => (this.filterCategoryEl = el), part: "filter-category" }, renderComboItems.renderComboItems((_b = this.categories) !== null && _b !== void 0 ? _b : [])), index.h("gx-ide-entity-selector", { label: this._componentLocale.filter.moduleFolder, "label-position": "above", value: this.defaultModule, defaultValue: this.defaultModule, selectEntityCallback: this.selectModuleCallback, ref: (el) => (this.filterModuleEl = el) }), index.h("div", { class: "flex with-gap" }, index.h("gxg-form-checkbox", { label: this._componentLocale.filter.modified, class: "align-center", ref: (el) => (this.filterModifiedEl = el), part: "filter-modified" }), index.h("gxg-combo-box", { class: { hide: !this.filterModified }, "disable-filter": true, value: this.filterAfterType, "display-validation-styles": true, "display-validation-message": true, ref: (el) => (this.filterAfterTypeEl = el), part: "filter-after-type" }, renderComboItems.renderComboItems([
|
|
23
|
+
{
|
|
24
|
+
id: FILTER_AFTER_NONE,
|
|
25
|
+
label: this._componentLocale.filter.modifiedEmpty,
|
|
26
|
+
value: FILTER_AFTER_NONE
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: FILTER_AFTER_DATE_TIME,
|
|
30
|
+
label: this._componentLocale.filter[FILTER_AFTER_DATE_TIME],
|
|
31
|
+
value: FILTER_AFTER_DATE_TIME
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
id: FILTER_AFTER_IMPORT,
|
|
35
|
+
label: this._componentLocale.filter[FILTER_AFTER_IMPORT],
|
|
36
|
+
value: FILTER_AFTER_IMPORT
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
id: FILTER_AFTER_LAST_BUILD,
|
|
40
|
+
label: this._componentLocale.filter[FILTER_AFTER_LAST_BUILD],
|
|
41
|
+
value: FILTER_AFTER_LAST_BUILD
|
|
42
|
+
}
|
|
43
|
+
])), index.h("gxg-form-text", { class: { hide: !this.filterModified }, "label-position": "start", label: this._componentLocale.filter.user, "max-width": "150px", ref: (el) => (this.filterUserEl = el), part: "filter-user" }), index.h("div", { class: {
|
|
44
|
+
flex: true,
|
|
45
|
+
hide: !this.filterModified ||
|
|
46
|
+
this.filterAfterType !== FILTER_AFTER_DATE_TIME
|
|
47
|
+
}, part: "filter-datetime" }, index.h("gxg-label", { "label-position": "start" }, this._componentLocale.filter.dateTime), index.h("gxg-date-picker", { ref: (el) => (this.filterModifiedDateEl = el) }))))));
|
|
48
|
+
};
|
|
49
|
+
this.renderObjects = () => {
|
|
50
|
+
return (index.h("gxg-container", null, index.h("gxg-grid", null, index.h("ch-grid", { "row-selection-mode": this.multiSelection ? "multiple" : "single", ref: (el) => (this.chGridEl = el), part: "ch-grid-objects" }, index.h("ch-grid-columnset", null, index.h("ch-grid-column", { "column-name": "", "column-name-position": "text", settingable: false }), index.h("ch-grid-column", { "column-name": this._componentLocale.tableHead.name, "column-name-position": "text", settingable: false }), index.h("ch-grid-column", { "column-name": this._componentLocale.tableHead.type, "column-name-position": "text", settingable: false }), index.h("ch-grid-column", { "column-name": this._componentLocale.tableHead.module, "column-name-position": "text", settingable: false }), index.h("ch-grid-column", { "column-name": this._componentLocale.tableHead.description, "column-name-position": "text", settingable: false }), index.h("ch-grid-column", { "column-name": this._componentLocale.tableHead.modifiedDate, "column-name-position": "text", settingable: false }), index.h("ch-grid-column", { "column-name": this._componentLocale.tableHead.importDate, "column-name-position": "text", settingable: false })), this.objects.map((obj) => (index.h("ch-grid-row", { rowid: obj.id }, index.h("ch-grid-cell", null, index.h("gxg-icon", { type: obj.icon, color: "auto" })), index.h("ch-grid-cell", null, " ", obj.name, " "), index.h("ch-grid-cell", null, " ", obj.type, " "), index.h("ch-grid-cell", null, " ", obj.module, " "), index.h("ch-grid-cell", null, " ", obj.description, " "), index.h("ch-grid-cell", null, `${obj.modifiedDate.toISOString().slice(0, 10)}`), index.h("ch-grid-cell", null, `${obj.importDate.toISOString().slice(0, 10)}`))))))));
|
|
51
|
+
};
|
|
52
|
+
this.getObjects = () => {
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
54
|
+
/* 'modified' checkbox, should only be considered if 'date' || 'user' */
|
|
55
|
+
const modified = this.filterModifiedEl.checked;
|
|
56
|
+
const modifiedAfter = this.filterAfterTypeEl.value;
|
|
57
|
+
const user = (_b = (_a = this.filterUserEl) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.trim();
|
|
58
|
+
const filters = {
|
|
59
|
+
pattern: (_c = this.filterPatternEl) === null || _c === void 0 ? void 0 : _c.value,
|
|
60
|
+
type: (_d = this.filterTypeEl) === null || _d === void 0 ? void 0 : _d.value,
|
|
61
|
+
category: (_e = this.filterCategoryEl) === null || _e === void 0 ? void 0 : _e.value,
|
|
62
|
+
module: (_g = (_f = this.filterModuleEl) === null || _f === void 0 ? void 0 : _f.value) === null || _g === void 0 ? void 0 : _g.id,
|
|
63
|
+
modifiedAfter: modified && modifiedAfter ? modifiedAfter : null,
|
|
64
|
+
modifiedBy: modified && user ? user : null,
|
|
65
|
+
modifiedDate: modified && modifiedAfter === FILTER_AFTER_DATE_TIME
|
|
66
|
+
? (_h = this.filterModifiedDateEl) === null || _h === void 0 ? void 0 : _h.value
|
|
67
|
+
: null
|
|
68
|
+
};
|
|
69
|
+
this.loadCallback(filters).then((items) => {
|
|
70
|
+
this.objects = items;
|
|
71
|
+
this.selectedObjectsIds = [];
|
|
72
|
+
this.deselectAll();
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
this.openSelectionCallbackHandle = () => {
|
|
76
|
+
this.openSelectionCallback(this.selectedObjectsIds);
|
|
77
|
+
};
|
|
78
|
+
this.cancelCallbackHandle = () => {
|
|
79
|
+
this.cancelCallback();
|
|
80
|
+
};
|
|
81
|
+
this.selectAll = () => {
|
|
82
|
+
this.chGridEl.selectAllRows();
|
|
83
|
+
};
|
|
84
|
+
this.deselectAll = () => {
|
|
85
|
+
this.chGridEl.selectAllRows(false);
|
|
86
|
+
};
|
|
87
|
+
this.newObjectCallbackHandle = () => {
|
|
88
|
+
this.newObjectCallback();
|
|
89
|
+
};
|
|
90
|
+
this.listenChanges = async () => {
|
|
91
|
+
/* pattern*/
|
|
92
|
+
this.filterPatternEl.addEventListener("input", () => {
|
|
93
|
+
this.getObjects();
|
|
94
|
+
});
|
|
95
|
+
/* type*/
|
|
96
|
+
this.filterTypeEl.addEventListener("valueChanged", () => {
|
|
97
|
+
this.getObjects();
|
|
98
|
+
});
|
|
99
|
+
/* category*/
|
|
100
|
+
this.filterCategoryEl.addEventListener("valueChanged", () => {
|
|
101
|
+
this.getObjects();
|
|
102
|
+
});
|
|
103
|
+
/* module/folder*/
|
|
104
|
+
this.filterModuleEl.addEventListener("valueChanged", () => {
|
|
105
|
+
this.getObjects();
|
|
106
|
+
});
|
|
107
|
+
/* modified */
|
|
108
|
+
this.filterModifiedEl.addEventListener("change", (e) => {
|
|
109
|
+
this.filterModified = e.detail.value;
|
|
110
|
+
this.getObjects();
|
|
111
|
+
});
|
|
112
|
+
/* modified after... */
|
|
113
|
+
this.filterAfterTypeEl.addEventListener("valueChanged", () => {
|
|
114
|
+
this.filterAfterType = this.filterAfterTypeEl.value;
|
|
115
|
+
this.getObjects();
|
|
116
|
+
});
|
|
117
|
+
/* user... */
|
|
118
|
+
this.filterUserEl.addEventListener("input", () => {
|
|
119
|
+
this.getObjects();
|
|
120
|
+
});
|
|
121
|
+
/* Date/Time */
|
|
122
|
+
this.filterModifiedDateEl.addEventListener("valueChanged", () => {
|
|
123
|
+
this.getObjects();
|
|
124
|
+
});
|
|
125
|
+
// for grid selection
|
|
126
|
+
this.chGridEl.addEventListener("selectionChanged", (ev) => {
|
|
127
|
+
this.selectedObjectsIds = ev.detail.rowsId;
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
this.filterAfterType = "";
|
|
131
|
+
this.filterModified = false;
|
|
132
|
+
this.objects = [];
|
|
133
|
+
this.selectedObjectsIds = [];
|
|
134
|
+
this.multiSelection = undefined;
|
|
135
|
+
this.patternValue = undefined;
|
|
136
|
+
this.types = undefined;
|
|
137
|
+
this.defaultType = undefined;
|
|
138
|
+
this.categories = undefined;
|
|
139
|
+
this.defaultCategory = undefined;
|
|
140
|
+
this.defaultModule = undefined;
|
|
141
|
+
this.selectModuleCallback = undefined;
|
|
142
|
+
this.cancelCallback = undefined;
|
|
143
|
+
this.loadCallback = undefined;
|
|
144
|
+
this.newObjectCallback = undefined;
|
|
145
|
+
this.openSelectionCallback = undefined;
|
|
146
|
+
}
|
|
147
|
+
// 6.COMPONENT LIFECYCLE EVENTS //
|
|
148
|
+
async componentWillLoad() {
|
|
149
|
+
this._componentLocale = await locale.Locale.getComponentStrings(this.el);
|
|
150
|
+
this.componentDidLoadEvent.emit(true);
|
|
151
|
+
}
|
|
152
|
+
componentDidLoad() {
|
|
153
|
+
this.listenChanges();
|
|
154
|
+
this.getObjects();
|
|
155
|
+
}
|
|
156
|
+
// 7.LISTENERS //
|
|
157
|
+
// 8.PUBLIC METHODS API //
|
|
158
|
+
/**
|
|
159
|
+
* Validate necessary data input
|
|
160
|
+
*/
|
|
161
|
+
async validate() {
|
|
162
|
+
const isValid = true;
|
|
163
|
+
return isValid;
|
|
164
|
+
}
|
|
165
|
+
// 10.RENDER() FUNCTION //
|
|
166
|
+
render() {
|
|
167
|
+
return (index.h(index.Host, { class: "gx-ide-component" }, index.h("div", { class: "gx-ide-main-wrapper gx-ide-overflow" }, this.renderFilter(), this.renderObjects(), index.h("gxg-container", null, index.h("div", { class: "grid objects-count" }, index.h("gxg-text", { class: "align-end", part: "objects-selected" }, `${this.selectedObjectsIds.length} ${this._componentLocale.objCount.selected}`), index.h("gxg-text", { class: "align-end", part: "objects-matching" }, `${this.objects.length} ${this._componentLocale.objCount.matching}`))), index.h("gxg-container", { displayBorderTop: true }, index.h("div", { class: "grid actions" }, index.h("div", null, index.h("gxg-button", { id: "button-select-all", type: "primary-text-only", onClick: this.selectAll, part: "gxg-button gxg-button--select-all" }, this._componentLocale.footer.btnSelectAll), index.h("gxg-button", { id: "button-new", type: "primary-text-only", onClick: this.newObjectCallbackHandle, part: "gxg-button gxg-button--new" }, this._componentLocale.footer.btnNew)), index.h("div", null, index.h("gxg-button", { id: "button-ok", type: "primary-text-only", onClick: this.openSelectionCallbackHandle, part: "gxg-button gxg-button--ok" }, this._componentLocale.footer.btnConfirm), index.h("gxg-button", { id: "button-cancel", type: "outlined", onClick: this.cancelCallbackHandle, part: "gxg-button gxg-button--cancel" }, this._componentLocale.footer.btnCancel)))))));
|
|
168
|
+
}
|
|
169
|
+
static get assetsDirs() { return ["gx-ide-assets/object-selector"]; }
|
|
170
|
+
get el() { return index.getElement(this); }
|
|
171
|
+
};
|
|
172
|
+
GxIdeObjectSelector.style = objectSelectorCss;
|
|
173
|
+
|
|
174
|
+
exports.gx_ide_object_selector = GxIdeObjectSelector;
|
|
@@ -4,7 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5a32426a.js');
|
|
6
6
|
const locale = require('./locale-c8445ea4.js');
|
|
7
|
-
const
|
|
7
|
+
const renderComboItems = require('./render-combo-items-ef403ec4.js');
|
|
8
|
+
const formatDate = require('./format-date-c32a19bd.js');
|
|
8
9
|
|
|
9
10
|
const teamDevCommitCss = ".gxi-hidden{display:none !important}.gxi-full-height{height:100%}.align-start{display:flex;align-items:start}.align-center{display:flex;align-items:center}.align-end{display:flex;align-items:end}.grid{display:grid;grid-row-gap:var(--gx-ide-grid-row-gap);grid-column-gap:var(--gx-ide-grid-column-gap);grid-template-rows:auto}:host(.gx-ide-component){box-shadow:var(--box-shadow-01) !important;height:100% !important;display:flex !important;flex-direction:column !important}:host(:focus-within) gx-ide-top-bar::part(wrapper){background-color:var(--color-secondary-enabled)}.gx-ide-main-wrapper{color:var(--gx-ide-component-text-color);font-weight:var(--font-weight-regular);font-size:var(--font-size-lg);line-height:1.6em;height:100%;background-color:var(--gx-ide-component-background-color);display:flex;flex-direction:column;flex-grow:1}.gx-ide-main{flex-grow:1;overflow-y:auto;}.gx-ide-main::-webkit-scrollbar{width:6px;height:6px}.gx-ide-main::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-main .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}.gx-ide-overflow{overflow-y:auto;}.gx-ide-overflow::-webkit-scrollbar{width:6px;height:6px}.gx-ide-overflow::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-overflow .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}:host{display:block}.main-wrapper{width:100%}.gxg-tabs{margin-top:0;box-shadow:none}.header{grid-template-columns:4fr auto}.header .header-button{height:fit-content}.second-grid{grid-template-rows:1fr auto}.second-grid .actions-row{grid-template-columns:1fr auto}.action-buttons{justify-self:flex-end}.hidden{display:none}.filters-grid{grid-template-rows:repeat(2, 1fr)}.filters-grid .first-row{grid-template-columns:repeat(2, 1fr)}.filters-grid .second-row{grid-template-columns:repeat(2, 1fr)}";
|
|
10
11
|
|
|
@@ -14,6 +15,16 @@ const GxIdeTeamDevCommit = class {
|
|
|
14
15
|
this.componentDidLoadEvent = index.createEvent(this, "componentDidLoadEvent", 7);
|
|
15
16
|
this.loadDataCalledFirstTime = false; // pending commits grid checkboxes, should be checked, after loadData has loaded commits for the first time.
|
|
16
17
|
// 9.LOCAL METHODS //
|
|
18
|
+
this.conditionToCommit = async () => {
|
|
19
|
+
const commitComment = !!this.commitCommentEl.value.length;
|
|
20
|
+
const pendingChecked = await this.chGridPendingCommitsEl.getMarkedRows();
|
|
21
|
+
if (commitComment && pendingChecked.length > 0) {
|
|
22
|
+
this.commitButtonEnabled = true;
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
this.commitButtonEnabled = false;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
17
28
|
this.markAllPendingCommitsRows = () => {
|
|
18
29
|
this.chGridPendingCommitsEl.markAllRows();
|
|
19
30
|
};
|
|
@@ -81,6 +92,7 @@ const GxIdeTeamDevCommit = class {
|
|
|
81
92
|
else {
|
|
82
93
|
await this.togglePendingCommitsCheckboxes(pendingItemCheckedResult);
|
|
83
94
|
}
|
|
95
|
+
this.conditionToCommit();
|
|
84
96
|
this.chGridPendingCommitsEl.addEventListener("rowMarkingChanged", this.pendingCommitsRowMarkingChangedHandler);
|
|
85
97
|
}
|
|
86
98
|
};
|
|
@@ -124,11 +136,11 @@ const GxIdeTeamDevCommit = class {
|
|
|
124
136
|
}
|
|
125
137
|
};
|
|
126
138
|
this.commitCallbackHandler = async () => {
|
|
127
|
-
const
|
|
139
|
+
const commitCommentEl = this.commitCommentEl.value;
|
|
128
140
|
this.chGridPendingCommitsEl
|
|
129
141
|
.getMarkedRows()
|
|
130
142
|
.then(async (pendingCommitsCheckedIds) => {
|
|
131
|
-
await this.commitCallback(pendingCommitsCheckedIds,
|
|
143
|
+
await this.commitCallback(pendingCommitsCheckedIds, commitCommentEl);
|
|
132
144
|
/* returns boolean*/
|
|
133
145
|
});
|
|
134
146
|
};
|
|
@@ -154,6 +166,7 @@ const GxIdeTeamDevCommit = class {
|
|
|
154
166
|
this.comment = "";
|
|
155
167
|
this.pendingCommits = [];
|
|
156
168
|
this.ignoredObjects = [];
|
|
169
|
+
this.commitButtonEnabled = false;
|
|
157
170
|
this.changeSet = undefined;
|
|
158
171
|
this.types = undefined;
|
|
159
172
|
this.folders = undefined;
|
|
@@ -173,6 +186,7 @@ const GxIdeTeamDevCommit = class {
|
|
|
173
186
|
await this.loadData();
|
|
174
187
|
this.loadDataCalledFirstTime = true;
|
|
175
188
|
this.componentDidLoadEvent.emit(true);
|
|
189
|
+
this.conditionToCommit();
|
|
176
190
|
}
|
|
177
191
|
async componentDidRender() {
|
|
178
192
|
if (this.loadDataCalledFirstTime) {
|
|
@@ -193,8 +207,8 @@ const GxIdeTeamDevCommit = class {
|
|
|
193
207
|
}
|
|
194
208
|
// 10.RENDER() FUNCTION //
|
|
195
209
|
render() {
|
|
196
|
-
return (index.h(index.Host, { class: "gx-ide-component" }, index.h("div", { class: "gx-ide-main-wrapper gx-ide-overflow" }, index.h("gxg-container", null, index.h("header", { class: "header grid" }, index.h("gxg-form-textarea", { id: "gxg-textarea", height: "100px", label: this._componentLocale.topMenu.commentLabel, value: this.comment, ref: (el) => (this.
|
|
197
|
-
(this.filtersHidden ? "hidden" : null) }, index.h("div", { class: "first-row grid" }, index.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 },
|
|
210
|
+
return (index.h(index.Host, { class: "gx-ide-component" }, index.h("div", { class: "gx-ide-main-wrapper gx-ide-overflow" }, index.h("gxg-container", null, index.h("header", { class: "header grid" }, index.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" }), index.h("gxg-button", { class: "header-button", type: "outlined", part: "location", onClick: this.getRecentCommentHandler }, this._componentLocale.topMenu.recentCommentsButton))), index.h("main", { class: "main" }, index.h("gxg-container", { fieldset: true, noContentPadding: !!this.filtersHidden }, index.h("div", { class: "grid second-grid" }, index.h("div", { class: "actions-row grid" }, index.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 }), index.h("div", { class: "action-buttons", slot: "tab-bar" }, index.h("gxg-button", { onClick: this.toggleFiltersHandler, type: "secondary-icon-only", icon: "patterns/filters", part: "gxg-button gxg-button--show-filter" }), index.h("gxg-button", { type: "secondary-icon-only", icon: "gemini-tools/reset", onClick: this.loadData, part: "gxg-button gxg-button--reload" }))), index.h("div", { class: "filters-grid grid " +
|
|
211
|
+
(this.filtersHidden ? "hidden" : null) }, index.h("div", { class: "first-row grid" }, index.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.renderComboItems(this.changeSet)), index.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.renderComboItems(this.types))), index.h("div", { class: "second-row grid" }, index.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.renderComboItems(this.folders)), index.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.renderComboItems(this.categories)))))), index.h("gxg-container", null, index.h("gxg-tabs", { height: "100%", position: "top", class: "gxg-tabs" }, index.h("gxg-tab-bar", { slot: "tab-bar-container" }, index.h("gxg-tab-button", { slot: "tab-bar", "tab-label": `${this._componentLocale.tabs.pendingCommits} (${this.pendingCommits.length})`, tab: "pending-commits", "is-selected": true }), index.h("gxg-tab-button", { slot: "tab-bar", "tab-label": `${this._componentLocale.tabs.ignoredObjects} (${this.ignoredObjects.length})`, tab: "ignored-objects" })), index.h("gxg-tab", { tab: "pending-commits", "no-padding": true }, this.renderPendingCommitsGrid()), index.h("gxg-tab", { tab: "ignored-objects", "no-padding": true }, this.renderIgnoredObjectsGrid())), index.h("gxg-button", { slot: "footer", type: "primary-text-only", onClick: this.commitCallbackHandler, part: "commit-button", disabled: !this.commitButtonEnabled }, this._componentLocale.footer.commitButton))))));
|
|
198
212
|
}
|
|
199
213
|
static get assetsDirs() { return ["gx-ide-assets/team-dev-commit"]; }
|
|
200
214
|
get el() { return index.getElement(this); }
|
|
@@ -4,7 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-5a32426a.js');
|
|
6
6
|
const locale = require('./locale-c8445ea4.js');
|
|
7
|
-
const
|
|
7
|
+
const renderComboItems = require('./render-combo-items-ef403ec4.js');
|
|
8
|
+
const formatDate = require('./format-date-c32a19bd.js');
|
|
8
9
|
|
|
9
10
|
const teamDevUpdateCss = ".gxi-hidden{display:none !important}.gxi-full-height{height:100%}.align-start{display:flex;align-items:start}.align-center{display:flex;align-items:center}.align-end{display:flex;align-items:end}.grid{display:grid;grid-row-gap:var(--gx-ide-grid-row-gap);grid-column-gap:var(--gx-ide-grid-column-gap);grid-template-rows:auto}:host(.gx-ide-component){box-shadow:var(--box-shadow-01) !important;height:100% !important;display:flex !important;flex-direction:column !important}:host(:focus-within) gx-ide-top-bar::part(wrapper){background-color:var(--color-secondary-enabled)}.gx-ide-main-wrapper{color:var(--gx-ide-component-text-color);font-weight:var(--font-weight-regular);font-size:var(--font-size-lg);line-height:1.6em;height:100%;background-color:var(--gx-ide-component-background-color);display:flex;flex-direction:column;flex-grow:1}.gx-ide-main{flex-grow:1;overflow-y:auto;}.gx-ide-main::-webkit-scrollbar{width:6px;height:6px}.gx-ide-main::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-main::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-main .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}.gx-ide-overflow{overflow-y:auto;}.gx-ide-overflow::-webkit-scrollbar{width:6px;height:6px}.gx-ide-overflow::-webkit-scrollbar-track{background-color:var(--gray-02);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb{background:var(--gray-05);border-radius:10px}.gx-ide-overflow::-webkit-scrollbar-thumb:hover{background:var(--gray-04);cursor:pointer}.gx-ide-overflow .gxg-scroll{display:block;overflow-y:auto;padding-inline-end:2px}:host{display:block;border:1px solid var(--gxg-border-color--regular);background-color:var(--color-background)}:host(.gxi-object-selector--shadow){border:none;box-shadow:var(--box-shadow-01)}.options-grid{grid-template-columns:1fr auto}.options-grid .options-update-from-grid{grid-template-columns:auto 1fr;grid-row-gap:0}.options-grid .options-scope-grid{grid-template-columns:auto 1fr auto}.options-grid .options-scope-grid>:nth-child(7){grid-area:3/1/4/4}.flex{display:flex;flex-direction:row;align-items:center}.with-gap{gap:var(--gx-ide-grid-row-gap)}.hide{display:none !important}.filters-container-body{width:100%;display:flex;align-items:flex-end;justify-content:space-between}.filters-container-body .filter-grid{flex:1;grid-template-columns:repeat(2, 1fr)}.filters-container-body .actions{display:flex;justify-content:flex-end;align-items:center}.filters-container-body .actions.close{width:100%}.data-grid{grid-template-columns:repeat(3, 1fr)}.data-grid>:nth-child(1){grid-area:1/1/2/2}.data-grid>:nth-child(2){grid-area:1/2/2/4}.data-panel-grid{grid-template-columns:repeat(2, 1fr)}.data-preview img{max-width:100%}.data-max-height{max-height:300px;overflow-y:auto}.actions{justify-content:flex-end}.no-border{border:0}.bold{font-weight:bold}";
|
|
10
11
|
|
|
@@ -55,7 +56,7 @@ const GxIdeTeamDevUpdate = class {
|
|
|
55
56
|
"grid": true,
|
|
56
57
|
"filter-grid": true,
|
|
57
58
|
"hide": !this.showFilter
|
|
58
|
-
} }, index.h("gxg-form-text", { "label-position": "above", label: this._componentLocale.filter.pattern, ref: (el) => (this.filterPatternEl = el), part: "filter-pattern", onInput: this.loadData }), index.h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.filter.type, disabled: !this.types, ref: (el) => (this.filterTypeEl = el), onValueChanged: this.loadData, part: "filter-type", value: this.types[0].id },
|
|
59
|
+
} }, index.h("gxg-form-text", { "label-position": "above", label: this._componentLocale.filter.pattern, ref: (el) => (this.filterPatternEl = el), part: "filter-pattern", onInput: this.loadData }), index.h("gxg-combo-box", { "disable-filter": true, label: this._componentLocale.filter.type, disabled: !this.types, ref: (el) => (this.filterTypeEl = el), onValueChanged: this.loadData, part: "filter-type", value: this.types[0].id }, renderComboItems.renderComboItems(this.types))), index.h("div", { class: { actions: true, close: !this.showFilter } }, index.h("gxg-button", { type: "secondary-icon-only", icon: "patterns/filters", onClick: this.toggleFilter, part: "gxg-button gxg-button--show-filter" }), index.h("gxg-button", { type: "secondary-icon-only", icon: "gemini-tools/reset", onClick: this.loadData, part: "gxg-button gxg-button--reload" })))));
|
|
59
60
|
};
|
|
60
61
|
this.renderData = () => {
|
|
61
62
|
return (index.h("gxg-container", { part: "data-container" }, index.h("gxg-tabs", { id: "dataTabs", part: "data-tabs" }, index.h("gxg-tab-bar", { slot: "tab-bar-container" }, index.h("gxg-tab-button", { slot: "tab-bar", "tab-label": this._componentLocale.tabs.pendingForUpdate, tab: "pendingForUpdate", key: "pendingForUpdate", isSelected: true }), index.h("gxg-tab-button", { slot: "tab-bar", "tab-label": this._componentLocale.tabs.ignoredObjects, tab: "ignoredObjects", key: "ignoredObjects" }), index.h("gxg-tab-button", { slot: "tab-bar", "tab-label": this._componentLocale.tabs.results, tab: "results", key: "results", ref: (el) => (this.gxgTabButtonResultsEl = el) })), index.h("gxg-tab", { tab: "pendingForUpdate", key: "pendingForUpdate", isSelected: true }, this.renderPendingForUpdate()), index.h("gxg-tab", { tab: "ignoredObjects", key: "ignoredObjects" }, this.renderIgnoredObjects()), index.h("gxg-tab", { tab: "results", key: "results" }, this.renderResults()))));
|
|
@@ -7,7 +7,7 @@ const updateTreeModel = require('./update-tree-model-8b154db1.js');
|
|
|
7
7
|
|
|
8
8
|
const testCss = ":host{display:block}";
|
|
9
9
|
|
|
10
|
-
const
|
|
10
|
+
const GxIdeTest = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
// 8.PUBLIC METHODS API //
|
|
@@ -95,6 +95,6 @@ const GxIdeUiTest = class {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
|
-
|
|
98
|
+
GxIdeTest.style = testCss;
|
|
99
99
|
|
|
100
|
-
exports.gx_ide_test =
|
|
100
|
+
exports.gx_ide_test = GxIdeTest;
|