@genexus/genexus-ide-ui 1.1.40 → 1.1.41

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.
Files changed (93) hide show
  1. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  2. package/dist/cjs/gx-ide-server-selector.cjs.entry.js +12 -28
  3. package/dist/cjs/gx-ide-server-selector.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gx-ide-team-dev-bring-changes.cjs.entry.js +20 -4
  5. package/dist/cjs/gx-ide-team-dev-bring-changes.cjs.entry.js.map +1 -1
  6. package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +99 -238
  7. package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js.map +1 -1
  8. package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +60 -10
  9. package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js.map +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/tabular-grid-column-sort-5ca06dc1.js +43 -0
  12. package/dist/cjs/tabular-grid-column-sort-5ca06dc1.js.map +1 -0
  13. package/dist/cjs/tabular-grid-render-4350dbaf.js +223 -0
  14. package/dist/cjs/tabular-grid-render-4350dbaf.js.map +1 -0
  15. package/dist/cjs/uncheck-ignored-77ca69fe.js +43 -0
  16. package/dist/cjs/uncheck-ignored-77ca69fe.js.map +1 -0
  17. package/dist/collection/common/chameleon/tabular-grid-column-sort.js +39 -0
  18. package/dist/collection/common/chameleon/tabular-grid-column-sort.js.map +1 -0
  19. package/dist/collection/components/team-dev/bring-changes/bring-changes.js +18 -4
  20. package/dist/collection/components/team-dev/bring-changes/bring-changes.js.map +1 -1
  21. package/dist/collection/components/team-dev/server-selector/server-selector.css +18 -14
  22. package/dist/collection/components/team-dev/server-selector/server-selector.js +11 -27
  23. package/dist/collection/components/team-dev/server-selector/server-selector.js.map +1 -1
  24. package/dist/collection/components/team-dev/update/update.css +1 -0
  25. package/dist/collection/components/team-dev/update/update.js +62 -9
  26. package/dist/collection/components/team-dev/update/update.js.map +1 -1
  27. package/dist/collection/components/team-dev/version-control/commit/commit.css +1 -0
  28. package/dist/collection/components/team-dev/version-control/commit/commit.js +79 -20
  29. package/dist/collection/components/team-dev/version-control/commit/commit.js.map +1 -1
  30. package/dist/collection/components/team-dev/version-control/common/are-sets-equal.js +21 -0
  31. package/dist/collection/components/team-dev/version-control/common/are-sets-equal.js.map +1 -0
  32. package/dist/collection/components/team-dev/version-control/common/tabular-grid-render.js +13 -3
  33. package/dist/collection/components/team-dev/version-control/common/tabular-grid-render.js.map +1 -1
  34. package/dist/collection/components/team-dev/version-control/common/uncheck-ignored.js +18 -0
  35. package/dist/collection/components/team-dev/version-control/common/uncheck-ignored.js.map +1 -0
  36. package/dist/components/gx-ide-server-selector.js +12 -28
  37. package/dist/components/gx-ide-server-selector.js.map +1 -1
  38. package/dist/components/gx-ide-team-dev-bring-changes.js +18 -4
  39. package/dist/components/gx-ide-team-dev-bring-changes.js.map +1 -1
  40. package/dist/components/gx-ide-team-dev-commit.js +78 -221
  41. package/dist/components/gx-ide-team-dev-commit.js.map +1 -1
  42. package/dist/components/gx-ide-team-dev-update.js +61 -10
  43. package/dist/components/gx-ide-team-dev-update.js.map +1 -1
  44. package/dist/components/tabular-grid-column-sort.js +41 -0
  45. package/dist/components/tabular-grid-column-sort.js.map +1 -0
  46. package/dist/components/tabular-grid-render.js +216 -0
  47. package/dist/components/tabular-grid-render.js.map +1 -0
  48. package/dist/components/uncheck-ignored.js +40 -0
  49. package/dist/components/uncheck-ignored.js.map +1 -0
  50. package/dist/esm/genexus-ide-ui.js +1 -1
  51. package/dist/esm/gx-ide-server-selector.entry.js +12 -28
  52. package/dist/esm/gx-ide-server-selector.entry.js.map +1 -1
  53. package/dist/esm/gx-ide-team-dev-bring-changes.entry.js +20 -4
  54. package/dist/esm/gx-ide-team-dev-bring-changes.entry.js.map +1 -1
  55. package/dist/esm/gx-ide-team-dev-commit.entry.js +81 -220
  56. package/dist/esm/gx-ide-team-dev-commit.entry.js.map +1 -1
  57. package/dist/esm/gx-ide-team-dev-update.entry.js +60 -10
  58. package/dist/esm/gx-ide-team-dev-update.entry.js.map +1 -1
  59. package/dist/esm/loader.js +1 -1
  60. package/dist/esm/tabular-grid-column-sort-1d503b27.js +41 -0
  61. package/dist/esm/tabular-grid-column-sort-1d503b27.js.map +1 -0
  62. package/dist/esm/tabular-grid-render-f7eb612b.js +216 -0
  63. package/dist/esm/tabular-grid-render-f7eb612b.js.map +1 -0
  64. package/dist/esm/uncheck-ignored-4ba48c9e.js +40 -0
  65. package/dist/esm/uncheck-ignored-4ba48c9e.js.map +1 -0
  66. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  67. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
  68. package/dist/genexus-ide-ui/p-02fb496a.js +36 -0
  69. package/dist/genexus-ide-ui/p-02fb496a.js.map +1 -0
  70. package/dist/genexus-ide-ui/{p-970e89ac.entry.js → p-4b06b578.entry.js} +100 -115
  71. package/dist/genexus-ide-ui/p-4b06b578.entry.js.map +1 -0
  72. package/dist/genexus-ide-ui/{p-34447b77.entry.js → p-4e3ad78d.entry.js} +261 -234
  73. package/dist/genexus-ide-ui/p-4e3ad78d.entry.js.map +1 -0
  74. package/dist/genexus-ide-ui/p-77c2e69d.js +314 -0
  75. package/dist/genexus-ide-ui/p-77c2e69d.js.map +1 -0
  76. package/dist/genexus-ide-ui/p-a7883e6b.entry.js +691 -0
  77. package/dist/genexus-ide-ui/p-a7883e6b.entry.js.map +1 -0
  78. package/dist/genexus-ide-ui/p-c9b9e260.js +36 -0
  79. package/dist/genexus-ide-ui/p-c9b9e260.js.map +1 -0
  80. package/dist/genexus-ide-ui/{p-42f37527.entry.js → p-e1a2550e.entry.js} +351 -289
  81. package/dist/genexus-ide-ui/p-e1a2550e.entry.js.map +1 -0
  82. package/dist/types/common/chameleon/tabular-grid-column-sort.d.ts +4 -0
  83. package/dist/types/components/team-dev/update/update.d.ts +6 -0
  84. package/dist/types/components/team-dev/version-control/commit/commit.d.ts +15 -13
  85. package/dist/types/components/team-dev/version-control/common/are-sets-equal.d.ts +12 -0
  86. package/dist/types/components/team-dev/version-control/common/tabular-grid-render.d.ts +13 -1
  87. package/dist/types/components/team-dev/version-control/common/uncheck-ignored.d.ts +13 -0
  88. package/package.json +1 -1
  89. package/dist/genexus-ide-ui/p-34447b77.entry.js.map +0 -1
  90. package/dist/genexus-ide-ui/p-42f37527.entry.js.map +0 -1
  91. package/dist/genexus-ide-ui/p-723d25ae.entry.js +0 -912
  92. package/dist/genexus-ide-ui/p-723d25ae.entry.js.map +0 -1
  93. package/dist/genexus-ide-ui/p-970e89ac.entry.js.map +0 -1
@@ -4,11 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f1471c9.js');
6
6
  const locale = require('./locale-ff30a5f3.js');
7
- const MERCURY_ASSETS = require('./MERCURY_ASSETS-f14e91ff.js');
8
- const utilities = require('./utilities-0e316b39.js');
9
- const helpers = require('./helpers-21c9cd02.js');
10
- const helpers$1 = require('./helpers-8fb178a2.js');
11
- const config = require('./config-df6ba4e9.js');
7
+ const uncheckIgnored = require('./uncheck-ignored-77ca69fe.js');
8
+ const tabularGridRender = require('./tabular-grid-render-4350dbaf.js');
9
+ const tabularGridColumnSort = require('./tabular-grid-column-sort-5ca06dc1.js');
10
+ require('./MERCURY_ASSETS-f14e91ff.js');
11
+ require('./utilities-0e316b39.js');
12
+ require('./helpers-21c9cd02.js');
13
+ require('./helpers-8fb178a2.js');
14
+ require('./config-df6ba4e9.js');
12
15
 
13
16
  /**
14
17
  * Filters a grid selection to only include rows from the given source ("pending" or "ignored").
@@ -77,203 +80,7 @@ const typesToComboBoxItemModel = (objectTypeModel) => objectTypeModel.map(object
77
80
  startImgSrc: objectType.icon
78
81
  }));
79
82
 
80
- const ALL_VALUE = "All";
81
- const CSS_SELECTORS = {
82
- HEADER: "header spacing-body-inline spacing-body-block-start field-group",
83
- HEADER_DETAILS: "header__details",
84
- FILTER: "filter",
85
- MAIN: "main spacing-body",
86
- GRID_CELL_DESCRIPTION: "tabular-grid-cell-description-custom-selector"
87
- };
88
- const ICONS = {
89
- add: MERCURY_ASSETS.getIconPath({
90
- category: "system",
91
- name: "add",
92
- colorType: "on-elevation"
93
- }),
94
- edit: MERCURY_ASSETS.getIconPath({
95
- category: "system",
96
- name: "edit",
97
- colorType: "on-elevation"
98
- }),
99
- error: MERCURY_ASSETS.getIconPath({
100
- category: "system",
101
- name: "error",
102
- colorType: "error"
103
- }),
104
- filter: MERCURY_ASSETS.getIconPath({
105
- category: "window-tools",
106
- name: "filter",
107
- colorType: "neutral"
108
- }),
109
- filterWithConditions: MERCURY_ASSETS.getIconPath({
110
- category: "window-tools",
111
- name: "filter-conditions",
112
- colorType: "neutral"
113
- }),
114
- info: MERCURY_ASSETS.getIconPath({
115
- category: "system",
116
- name: "information",
117
- colorType: "on-elevation"
118
- }),
119
- refresh: MERCURY_ASSETS.getIconPath({
120
- category: "gemini-tools",
121
- name: "reset",
122
- colorType: "neutral"
123
- }),
124
- search: MERCURY_ASSETS.getIconPath({
125
- category: "system",
126
- name: "search",
127
- colorType: "on-elevation"
128
- }),
129
- success: MERCURY_ASSETS.getIconPath({
130
- category: "system",
131
- name: "check",
132
- colorType: "success"
133
- }),
134
- substract: MERCURY_ASSETS.getIconPath({
135
- category: "system",
136
- name: "substract",
137
- colorType: "on-elevation"
138
- }),
139
- warning: MERCURY_ASSETS.getIconPath({
140
- category: "system",
141
- name: "warning",
142
- colorType: "warning"
143
- })
144
- };
145
-
146
- // stencil
147
- const BUTTON_ACTION_SELECTOR = "button-action-custom-selector";
148
- const renderStateCellContent = (action, componentLocale) => {
149
- let icon;
150
- let caption;
151
- let iconColor;
152
- if (action === "deleted") {
153
- icon = ICONS.substract;
154
- caption = componentLocale.states.deleted;
155
- iconColor = "--mer-icon__error";
156
- }
157
- else if (action === "inserted") {
158
- icon = ICONS.add;
159
- caption = componentLocale.states.inserted;
160
- iconColor = "--mer-icon__success";
161
- }
162
- else if (action === "modified") {
163
- icon = ICONS.edit;
164
- caption = componentLocale.states.modified;
165
- iconColor = "--mer-icon__warning";
166
- }
167
- else if (action === "conflicted") {
168
- icon = ICONS.warning;
169
- caption = componentLocale.states.conflicted;
170
- iconColor = "--mer-icon__warning";
171
- }
172
- else if (!action) {
173
- // proably is "ignored"
174
- return null;
175
- }
176
- return (index.h("span", { class: "custom-icon-text-wrapper" },
177
- index.h("ch-image", { type: "mask", class: "icon-md", src: icon, style: { backgroundColor: `var(${iconColor})` } }),
178
- `${caption}`));
179
- };
180
- const renderObjectStatus = (objectId, objectsStatusMap, updatePillAsButton, commitSingleObject, componentLocale) => {
181
- const status = objectsStatusMap.get(objectId);
182
- const caption = status === "pending" && updatePillAsButton
183
- ? componentLocale.status.commit
184
- : componentLocale.status[status];
185
- if (status === "commiting") {
186
- return index.h("span", { class: "spinner-caption" }, caption);
187
- }
188
- const classes = `pill pill--${status}`;
189
- if (updatePillAsButton && status === "pending") {
190
- return (index.h("button", { class: {
191
- "button-secondary": true,
192
- "button-icon-and-text": true,
193
- "pill": true,
194
- "pill--update": true,
195
- [BUTTON_ACTION_SELECTOR]: true
196
- }, onClick: commitSingleObject(objectId) }, caption));
197
- }
198
- else {
199
- return index.h("span", { class: classes }, caption);
200
- }
201
- };
202
- const renderTabularGridRows = (type, pendingObjectsAfterFilter, ignoredObjectsAfterFilter, alreadyUpdatedObjectsIdsSet, markedObjectsSet, objectsMessagesDataMap, updatePillAsButton, commitSingleObject, objectsStatusMap, searchValue, componentLocale) => {
203
- let objects;
204
- if (type === "pending") {
205
- objects = pendingObjectsAfterFilter;
206
- }
207
- else if (type === "ignored") {
208
- objects = ignoredObjectsAfterFilter;
209
- }
210
- searchValue = searchValue.toLowerCase();
211
- const filteredRows = objects.map(object => {
212
- const alreadyUpdated = alreadyUpdatedObjectsIdsSet.has(object.id);
213
- const hideCheckbox = alreadyUpdated || type === "ignored";
214
- const marked = markedObjectsSet.has(object.id);
215
- const messages = objectsMessagesDataMap.get(object.id);
216
- return (index.h("ch-tabular-grid-row", { class: "tabular-grid-row", key: object.id, rowid: object.id, ref: (el) => marked && (el === null || el === void 0 ? void 0 : el.setAttribute("marked", "true")) },
217
- index.h("ch-tabular-grid-cell", { "cell-type": "rich", "row-selector": "true", class: {
218
- "tabular-grid-cell": true,
219
- "no-checkbox-custom-selector": hideCheckbox
220
- }, size: "max-content" },
221
- index.h("div", null, helpers$1.hiChar(object.name, searchValue))),
222
- index.h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, utilities.renderObjectTypeWithIcon(object.type)),
223
- index.h("ch-tabular-grid-cell", { class: {
224
- "tabular-grid-cell": true,
225
- [CSS_SELECTORS.GRID_CELL_DESCRIPTION]: true
226
- } },
227
- index.h("div", null, helpers$1.hiChar(object.description, searchValue))),
228
- index.h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, helpers.formatDate(object.modifiedOn)),
229
- index.h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, object.module),
230
- index.h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, renderStateCellContent(object.state, componentLocale)),
231
- index.h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, helpers.formatDate(object.lastSynchronized)),
232
- index.h("ch-tabular-grid-cell", { class: "tabular-grid-cell tabular-grid-cell--for-pill" }, renderObjectStatus(object.id, objectsStatusMap, updatePillAsButton, commitSingleObject, componentLocale)),
233
- (messages === null || messages === void 0 ? void 0 : messages.length) && (index.h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" },
234
- index.h("ch-tabular-grid-rowset-empty", { class: {
235
- "tabular-grid-rowset-empty": true
236
- } },
237
- index.h("ul", { class: "messages-list" }, messages.map(message => {
238
- let MESSAGE_ICON;
239
- if (message.type === "error") {
240
- MESSAGE_ICON = ICONS.error;
241
- }
242
- else if (message.type === "warning") {
243
- MESSAGE_ICON = ICONS.warning;
244
- }
245
- else if (message.type === "success") {
246
- MESSAGE_ICON = ICONS.success;
247
- }
248
- else {
249
- // info
250
- MESSAGE_ICON = ICONS.info;
251
- }
252
- return (index.h("li", { class: "message-description" },
253
- index.h("ch-image", { class: "icon-md message-icon", src: MESSAGE_ICON }),
254
- message.text));
255
- })))))));
256
- });
257
- // this.objectsRenderedAlready = true;
258
- return filteredRows;
259
- };
260
- const renderTabularGridColumns = (ignoredGridColumns, gridIsEmpty = false, componentLocale) => {
261
- const colSize = gridIsEmpty
262
- ? config.config.tabularGrid.colSize.auto
263
- : config.config.tabularGrid.colSize.maxContent;
264
- return (index.h("ch-tabular-grid-columnset", { class: "tabular-grid-column-set" },
265
- !ignoredGridColumns.includes("name") && (index.h("ch-tabular-grid-column", { class: "tabular-grid-column", columnId: "name", columnName: componentLocale.objects.name, columnType: "rich", richRowSelector: true, richRowSelectorMode: "mark", settingable: false, size: colSize })),
266
- !ignoredGridColumns.includes("type") && (index.h("ch-tabular-grid-column", { class: "tabular-grid-column", columnId: "type", columnName: componentLocale.objects.type, settingable: false, size: colSize })),
267
- !ignoredGridColumns.includes("description") && (index.h("ch-tabular-grid-column", { class: "tabular-grid-column", columnId: "description", columnName: componentLocale.objects.description, settingable: false, size: config.config.tabularGrid.colSize.description })),
268
- !ignoredGridColumns.includes("modifiedOn") && (index.h("ch-tabular-grid-column", { class: "tabular-grid-column", columnId: "modifiedOn", columnName: componentLocale.objects.modifiedOn, settingable: false, size: colSize })),
269
- !ignoredGridColumns.includes("module") && (index.h("ch-tabular-grid-column", { class: "tabular-grid-column", columnId: "module", columnName: componentLocale.objects.module, settingable: false, size: colSize })),
270
- !ignoredGridColumns.includes("localState") && (index.h("ch-tabular-grid-column", { class: "tabular-grid-column", columnId: "localState", columnName: componentLocale.objects.localState, settingable: false, size: colSize })),
271
- !ignoredGridColumns.includes("lastSynchronized") && (index.h("ch-tabular-grid-column", { class: "tabular-grid-column", columnId: "lastSynchronized", columnName: componentLocale.objects.lastSynchronized, settingable: false, size: colSize })),
272
- !ignoredGridColumns.includes("action") && (index.h("ch-tabular-grid-column", { class: "tabular-grid-column", columnId: "action", columnName: componentLocale.objects.action, settingable: false, size: colSize })),
273
- !ignoredGridColumns.includes("status") && (index.h("ch-tabular-grid-column", { class: "tabular-grid-column", columnId: "status", columnName: componentLocale.objects.status, settingable: false, size: gridIsEmpty ? "auto" : "100px" }))));
274
- };
275
-
276
- const commitCss = ".detail__knowledge-base{padding-inline:24px;border-inline-end:1px solid var(--mer-border-color__on-elevation--01)}.detail__genexus-server{padding-inline-end:24px;border-inline-end:1px solid var(--mer-border-color__on-elevation--01)}.detail__version{padding-inline-start:24px}.filter,.filter-secondary>div{display:grid;gap:12px}:host{display:grid;block-size:100%;overflow:auto;grid-template-rows:max-content max-content 1fr;--pill-border-radius:12px;--pill-padding-inline:8px;--pill-padding-block:2px;--pill-font-size:var(--font-size-body-s)}.section{display:grid;display:contents}.header__details{display:grid;row-gap:var(--mer-spacing--md);grid-auto-columns:max-content;grid-auto-rows:max-content;margin-block-end:var(--mer-spacing--lg)}.detail__label{color:var(--mer-color__neutral-gray--400)}.detail__link{align-items:start;color:var(--mer-text__primary);text-decoration:underline}.detail__link:hover{color:var(--mer-text__primary--hover)}.detail__link:active{color:var(--mer-text__primary--active)}.filter__combo{max-block-size:minmax(0, 200px)}.main{position:relative;display:grid;overflow:auto}.loader{position:relative;inline-size:100%;block-size:100%;inset-block-start:0;--elevation-background-color:var(--mer-surface__elevation--01)}.empty-state{block-size:100%}.tabular-grid.disabled-custom-selector .tabular-grid-cell::part(selector-label),.tabular-grid.disabled-custom-selector .tabular-grid-column::part(bar-selector),.tabular-grid.disabled-custom-selector .tabular-grid-cell::part(actions-icon){pointer-events:none;opacity:0.5}.tabular-grid-cell.no-checkbox-custom-selector::part(selector-label){visibility:hidden}.tabular-grid{border-radius:4px;overflow:hidden}.tabular-grid .tabular-grid-cell--for-pill{--grid-cell__padding-block:4px;align-items:center;justify-content:center}.tabular-grid .button-action-custom-selector{--control__padding-block:var(--pill-padding-block);--control__padding-inline:var(--pill-padding-inline);font-size:inherit;font-weight:inherit;}.tabular-grid.empty-result::part(main){overflow:hidden}.messages-list{margin:0;padding:0;list-style:none;max-inline-size:800px;padding:8px 0;list-style-type:none;display:flex;flex-direction:column;gap:var(--mer-spacing--3xs)}.message-description{line-height:1.5;display:flex;align-items:center;gap:8px}.message-icon{flex-shrink:0}.pill{--pill-background-color:transparent;--pill-color:transparent;--pill-border-color:transparent;background-color:var(--pill-background-color);color:var(--pill-color);border:1px solid var(--pill-border-color);inline-size:100%;padding:var(--pill-padding-block) var(--pill-padding-inline);display:flex;align-items:center;justify-content:center;border-radius:var(--pill-border-radius);position:relative;font-weight:var(--font-weight-semi-bold)}.pill--update,.pill--pending{--pill-background-color:var();--pill-color:var(--mer-color__neutral-gray--400);--pill-border-color:var()}.pill--to-merge-marked{--pill-background-color:var();--pill-color:var(--mer-border-color__primary);--pill-border-color:var()}.pill--ignored{--pill-background-color:var(--mer-surface__elevation--02);--pill-color:var(--mer-text__on-disabled);--pill-border-color:var(--mer-border-color__primary--disabled)}.pill--pending{--pill-background-color:var(--mer-color__tinted-primary--8);--pill-color:var(--mer-border-color__primary);--pill-border-color:var(--mer-color__tinted-primary--50)}.pill--warning{--pill-background-color:var(--mer-color__tinted-yellow--5);--pill-color:var(--mer-border-color__warning);--pill-border-color:var(--mer-color__tinted-yellow--60)}.pill--error{--pill-background-color:var(--mer-color__tinted-red--5);--pill-color:var(--mer-border-color__error);--pill-border-color:var(--mer-color__tinted-red--60)}.pill--commited{--pill-background-color:var(--mer-color__tinted-green--5);--pill-color:var(--mer-border-color__success);--pill-border-color:var(--mer-color__tinted-green--60)}.pill--transitioning{--pill-color:transparent}.spinner-caption{display:flex;align-items:center;gap:6px;--status-circle-color:transparent;--status-circle-size:$size;--status-circle-inset-inline-start:14px;--pill-color:var(--mer-border-color__primary)}.spinner-caption::before{display:inline-block;content:\"\";width:14px;height:14px;border:calc(14px / 7) solid var(--mer-color__tinted-primary--50);border-top:calc(14px / 7) solid var(--mer-color__primary--300);border-radius:50%;animation:spin var(--mer-timing--regular) linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.hiChar{color:var(--mer-color__primary--200);filter:brightness(1.3)}.custom-icon-text-wrapper{display:flex;align-items:center;gap:10px}.header__details{grid-template-areas:\"detail-heading-gx . . .\" \"detail-genexus-server detail-knowledge-base detail-version detail-last-full-update\"}.detail__heading-genexus-server{grid-area:detail-heading-gx}.detail__genexus-server{grid-area:detail-genexus-server}.detail__knowledge-base{grid-area:detail-knowledge-base}.detail__version{grid-area:detail-version}.filter-container{container-type:inline-size;box-sizing:border-box;display:grid;column-gap:12px;grid-template-areas:\"filter-primary filter-toggle-button filter-action-buttons\" \"filter-secondary . .\" \"comments comments comments\";grid-template-columns:minmax(0, max-content) max-content 1fr}.filter-primary{grid-area:filter-primary;grid-template-columns:minmax(0, 200px) minmax(0, 200px) minmax(0, 200px)}.filter-container>:nth-child(2){grid-area:filter-toggle-button}.filter-container>:nth-child(3){grid-area:filter-action-buttons;justify-content:end}.filter__toggle-secondary-filter-btn{grid-area:filter-toggle-button}.filter__buttons{grid-area:filter-buttons;margin-inline-start:auto}.filter-secondary{display:grid;grid-template-rows:0fr;grid-area:filter-secondary;transition:grid-template-rows var(--mer-timing--fast)}.filter-secondary--visible{grid-template-rows:1fr}.filter-secondary>div{display:grid;overflow:hidden;font-size:0;grid-template-columns:repeat(3, minmax(0, 200px))}.filter-secondary>div>.combo-box,.comments{margin-block-start:12px}.comments{grid-area:comments}.input-comments-container{position:relative}.input-comments{--control__border-color:transparent;padding-block:0 !important;padding-inline:0 !important;--line-height-tight:1.4;block-size:100%;background-color:var(--mer-surface);transition:var(--mer-timing--super-fast) block-size, var(--mer-timing--super-fast) background-color, var(--mer-timing--super-fast) padding-block, var(--mer-timing--super-fast) padding-inline}.input-comments:focus{position:absolute;block-size:minmax(0, 200px);inline-size:100%;z-index:99;background-color:var(--mer-surface__elevation--01);padding-block:var(--control__padding-block) !important;padding-inline:var(--control__padding-inline) !important}";
83
+ const commitCss = ".detail__knowledge-base{padding-inline:24px;border-inline-end:1px solid var(--mer-border-color__on-elevation--01)}.detail__genexus-server{padding-inline-end:24px;border-inline-end:1px solid var(--mer-border-color__on-elevation--01)}.detail__version{padding-inline-start:24px}.filter,.filter-secondary>div{display:grid;gap:12px}:host{display:grid;block-size:100%;overflow:auto;grid-template-rows:max-content max-content 1fr;--pill-border-radius:12px;--pill-padding-inline:8px;--pill-padding-block:2px;--pill-font-size:var(--font-size-body-s)}.section{display:grid;display:contents}.header__details{display:grid;row-gap:var(--mer-spacing--md);grid-auto-columns:max-content;grid-auto-rows:max-content;margin-block-end:var(--mer-spacing--lg)}.detail__label{color:var(--mer-color__neutral-gray--400)}.detail__link{align-items:start;color:var(--mer-text__primary);text-decoration:underline}.detail__link:hover{color:var(--mer-text__primary--hover)}.detail__link:active{color:var(--mer-text__primary--active)}.filter__combo{max-block-size:minmax(0, 200px)}.main{position:relative;display:grid;overflow:auto}.loader{position:relative;inline-size:100%;block-size:100%;inset-block-start:0;--elevation-background-color:var(--mer-surface__elevation--01)}.empty-state{block-size:100%}.tabular-grid.disabled-custom-selector .tabular-grid-cell::part(selector-label),.tabular-grid.disabled-custom-selector .tabular-grid-column::part(bar-selector),.tabular-grid.disabled-custom-selector .tabular-grid-cell::part(actions-icon){pointer-events:none;opacity:0.5}.tabular-grid-cell.no-checkbox-custom-selector::part(selector-label){visibility:hidden;pointer-events:none}.tabular-grid{border-radius:4px;overflow:hidden}.tabular-grid .tabular-grid-cell--for-pill{--grid-cell__padding-block:4px;align-items:center;justify-content:center}.tabular-grid .button-action-custom-selector{--control__padding-block:var(--pill-padding-block);--control__padding-inline:var(--pill-padding-inline);font-size:inherit;font-weight:inherit;}.tabular-grid.empty-result::part(main){overflow:hidden}.messages-list{margin:0;padding:0;list-style:none;max-inline-size:800px;padding:8px 0;list-style-type:none;display:flex;flex-direction:column;gap:var(--mer-spacing--3xs)}.message-description{line-height:1.5;display:flex;align-items:center;gap:8px}.message-icon{flex-shrink:0}.pill{--pill-background-color:transparent;--pill-color:transparent;--pill-border-color:transparent;background-color:var(--pill-background-color);color:var(--pill-color);border:1px solid var(--pill-border-color);inline-size:100%;padding:var(--pill-padding-block) var(--pill-padding-inline);display:flex;align-items:center;justify-content:center;border-radius:var(--pill-border-radius);position:relative;font-weight:var(--font-weight-semi-bold)}.pill--update,.pill--pending{--pill-background-color:var();--pill-color:var(--mer-color__neutral-gray--400);--pill-border-color:var()}.pill--to-merge-marked{--pill-background-color:var();--pill-color:var(--mer-border-color__primary);--pill-border-color:var()}.pill--ignored{--pill-background-color:var(--mer-surface__elevation--02);--pill-color:var(--mer-text__on-disabled);--pill-border-color:var(--mer-border-color__primary--disabled)}.pill--pending{--pill-background-color:var(--mer-color__tinted-primary--8);--pill-color:var(--mer-border-color__primary);--pill-border-color:var(--mer-color__tinted-primary--50)}.pill--warning{--pill-background-color:var(--mer-color__tinted-yellow--5);--pill-color:var(--mer-border-color__warning);--pill-border-color:var(--mer-color__tinted-yellow--60)}.pill--error{--pill-background-color:var(--mer-color__tinted-red--5);--pill-color:var(--mer-border-color__error);--pill-border-color:var(--mer-color__tinted-red--60)}.pill--commited{--pill-background-color:var(--mer-color__tinted-green--5);--pill-color:var(--mer-border-color__success);--pill-border-color:var(--mer-color__tinted-green--60)}.pill--transitioning{--pill-color:transparent}.spinner-caption{display:flex;align-items:center;gap:6px;--status-circle-color:transparent;--status-circle-size:$size;--status-circle-inset-inline-start:14px;--pill-color:var(--mer-border-color__primary)}.spinner-caption::before{display:inline-block;content:\"\";width:14px;height:14px;border:calc(14px / 7) solid var(--mer-color__tinted-primary--50);border-top:calc(14px / 7) solid var(--mer-color__primary--300);border-radius:50%;animation:spin var(--mer-timing--regular) linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.hiChar{color:var(--mer-color__primary--200);filter:brightness(1.3)}.custom-icon-text-wrapper{display:flex;align-items:center;gap:10px}.header__details{grid-template-areas:\"detail-heading-gx . . .\" \"detail-genexus-server detail-knowledge-base detail-version detail-last-full-update\"}.detail__heading-genexus-server{grid-area:detail-heading-gx}.detail__genexus-server{grid-area:detail-genexus-server}.detail__knowledge-base{grid-area:detail-knowledge-base}.detail__version{grid-area:detail-version}.filter-container{container-type:inline-size;box-sizing:border-box;display:grid;column-gap:12px;grid-template-areas:\"filter-primary filter-toggle-button filter-action-buttons\" \"filter-secondary . .\" \"comments comments comments\";grid-template-columns:minmax(0, max-content) max-content 1fr}.filter-primary{grid-area:filter-primary;grid-template-columns:minmax(0, 200px) minmax(0, 200px) minmax(0, 200px)}.filter-container>:nth-child(2){grid-area:filter-toggle-button}.filter-container>:nth-child(3){grid-area:filter-action-buttons;justify-content:end}.filter__toggle-secondary-filter-btn{grid-area:filter-toggle-button}.filter__buttons{grid-area:filter-buttons;margin-inline-start:auto}.filter-secondary{display:grid;grid-template-rows:0fr;grid-area:filter-secondary;transition:grid-template-rows var(--mer-timing--fast)}.filter-secondary--visible{grid-template-rows:1fr}.filter-secondary>div{display:grid;overflow:hidden;font-size:0;grid-template-columns:repeat(3, minmax(0, 200px))}.filter-secondary>div>.combo-box,.comments{margin-block-start:12px}.comments{grid-area:comments}.input-comments-container{position:relative}.input-comments{--control__border-color:transparent;padding-block:0 !important;padding-inline:0 !important;--line-height-tight:1.4;block-size:100%;background-color:var(--mer-surface);transition:var(--mer-timing--super-fast) block-size, var(--mer-timing--super-fast) background-color, var(--mer-timing--super-fast) padding-block, var(--mer-timing--super-fast) padding-inline}.input-comments:focus{position:absolute;block-size:minmax(0, 200px);inline-size:100%;z-index:99;background-color:var(--mer-surface__elevation--01);padding-block:var(--control__padding-block) !important;padding-inline:var(--control__padding-inline) !important}";
277
84
 
278
85
  var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
279
86
  if (kind === "a" && !f)
@@ -291,7 +98,7 @@ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) ||
291
98
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
292
99
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
293
100
  };
294
- var _GxIdeTeamDevCommit_componentLocale, _GxIdeTeamDevCommit_localStatesComboBoxModel, _GxIdeTeamDevCommit_rowCheckedChangedByTheUser, _GxIdeTeamDevCommit_chGridPendingForUpdateEl, _GxIdeTeamDevCommit_commitCheckedClickedHandler, _GxIdeTeamDevCommit_commitSingleObject, _GxIdeTeamDevCommit_commitObjectsHandler, _GxIdeTeamDevCommit_rowMarkingChangedHandler, _GxIdeTeamDevCommit_rowSelectionChangedHandler, _GxIdeTeamDevCommit_commentsInputHandler, _GxIdeTeamDevCommit_applyClientFilter, _GxIdeTeamDevCommit_filteredObjects, _GxIdeTeamDevCommit_evaluateSecondaryFilterHasConditions, _GxIdeTeamDevCommit_toggleFiltersHandler, _GxIdeTeamDevCommit_searchInputHandler, _GxIdeTeamDevCommit_typeChangedHandler, _GxIdeTeamDevCommit_stateChangedHandler, _GxIdeTeamDevCommit_folderChanged, _GxIdeTeamDevCommit_onRowContextMenuHandler, _GxIdeTeamDevCommit_updatePendingCheckedItems, _GxIdeTeamDevCommit_setInitialObjectsStatus, _GxIdeTeamDevCommit_loadData, _GxIdeTeamDevCommit_markPendingObjects, _GxIdeTeamDevCommit_revertPendingCommitsCheckboxes, _GxIdeTeamDevCommit_togglePendingCommitsCheckboxes;
101
+ var _GxIdeTeamDevCommit_componentLocale, _GxIdeTeamDevCommit_localStatesComboBoxModel, _GxIdeTeamDevCommit_rowCheckedChangedByTheUser, _GxIdeTeamDevCommit_chGridPendingForUpdateEl, _GxIdeTeamDevCommit_commitCheckedClickedHandler, _GxIdeTeamDevCommit_commitSingleObject, _GxIdeTeamDevCommit_commitObjectsHandler, _GxIdeTeamDevCommit_rowMarkingChangedHandler, _GxIdeTeamDevCommit_rowSelectionChangedHandler, _GxIdeTeamDevCommit_commentsInputHandler, _GxIdeTeamDevCommit_applyClientFilter, _GxIdeTeamDevCommit_filteredObjects, _GxIdeTeamDevCommit_evaluateSecondaryFilterHasConditions, _GxIdeTeamDevCommit_toggleFiltersHandler, _GxIdeTeamDevCommit_searchInputHandler, _GxIdeTeamDevCommit_typeChangedHandler, _GxIdeTeamDevCommit_stateChangedHandler, _GxIdeTeamDevCommit_folderChanged, _GxIdeTeamDevCommit_onRowContextMenuHandler, _GxIdeTeamDevCommit_updatePendingCheckedItems, _GxIdeTeamDevCommit_setInitialObjectsStatus, _GxIdeTeamDevCommit_loadData, _GxIdeTeamDevCommit_markPendingObjects, _GxIdeTeamDevCommit_revertPendingCommitsCheckboxes, _GxIdeTeamDevCommit_togglePendingCommitsCheckboxes, _GxIdeTeamDevCommit_sortTabularGridColumnCallback, _GxIdeTeamDevCommit_columnSelectorClickedCallback;
295
102
  const FILTER_SECONDARY_CONTAINER_ID = "filters-secondary-container";
296
103
  const FILTER_SECONDARY_BUTTON_ID = "filter-toggle-button";
297
104
  const CSS_BUNDLES = [
@@ -358,7 +165,11 @@ const GxIdeTeamDevCommit = class {
358
165
  this.objectsMessagesDataMap.delete(objectResult.id);
359
166
  }
360
167
  if (objectResult.result === "commited") {
361
- this.alreadyCommitedObjectsIdsSet.add(objectResult.id);
168
+ // Apply a new Set to "alreadyCommitedObjectsIdsSet" in order for the Watch to fire.
169
+ this.alreadyCommitedObjectsIdsSet = new Set([
170
+ ...this.alreadyCommitedObjectsIdsSet,
171
+ objectResult.id
172
+ ]);
362
173
  this.objectsStatusMap.set(objectResult.id, "commited");
363
174
  await __classPrivateFieldGet(this, _GxIdeTeamDevCommit_chGridPendingForUpdateEl, "f").markRow(objectResult.id, false);
364
175
  }
@@ -412,7 +223,7 @@ const GxIdeTeamDevCommit = class {
412
223
  });
413
224
  }
414
225
  // status
415
- if (this.selectedState && this.selectedState !== ALL_VALUE) {
226
+ if (this.selectedState && this.selectedState !== tabularGridRender.ALL_VALUE) {
416
227
  filtered = filtered.filter(object => object.state === this.selectedState);
417
228
  }
418
229
  return filtered;
@@ -420,7 +231,7 @@ const GxIdeTeamDevCommit = class {
420
231
  _GxIdeTeamDevCommit_evaluateSecondaryFilterHasConditions.set(this, () => {
421
232
  if (
422
233
  // this.selectedChangeset !== ALL_VALUE ||
423
- this.selectedFolder !== ALL_VALUE
234
+ this.selectedFolder !== tabularGridRender.ALL_VALUE
424
235
  // this.selectedCategory !== ALL_VALUE
425
236
  ) {
426
237
  this.filterSecondaryHasConditions = true;
@@ -493,9 +304,6 @@ const GxIdeTeamDevCommit = class {
493
304
  __classPrivateFieldSet(this, _GxIdeTeamDevCommit_rowCheckedChangedByTheUser, true, "f");
494
305
  });
495
306
  _GxIdeTeamDevCommit_setInitialObjectsStatus.set(this, () => {
496
- if (this.objectsRenderedAlready) {
497
- return;
498
- }
499
307
  this.pendingAndIgnored.pendingForCommit.forEach(pendingObject => {
500
308
  const status = "pending";
501
309
  this.objectsStatusMap.set(pendingObject.id, status);
@@ -514,10 +322,9 @@ const GxIdeTeamDevCommit = class {
514
322
  folder: this.selectedFolder,
515
323
  category: this.selectedCategory
516
324
  });
517
- __classPrivateFieldGet(this, _GxIdeTeamDevCommit_setInitialObjectsStatus, "f").call(this);
518
325
  this.loading = false;
519
326
  // Is is required to mark/check all objects after loadCallback.
520
- __classPrivateFieldGet(this, _GxIdeTeamDevCommit_markPendingObjects, "f").call(this);
327
+ // this.#markPendingObjects();
521
328
  });
522
329
  /**
523
330
  * Marks all pending objects that have not been committed yet.
@@ -558,6 +365,44 @@ const GxIdeTeamDevCommit = class {
558
365
  }
559
366
  }
560
367
  });
368
+ _GxIdeTeamDevCommit_sortTabularGridColumnCallback.set(this, (e) => {
369
+ const columnId = e.detail.columnId;
370
+ let objectProperty;
371
+ let dateType = "string";
372
+ if (columnId === tabularGridRender.COLUMNS_IDS.type) {
373
+ objectProperty = "name"; // the type name
374
+ dateType = "object";
375
+ }
376
+ else if (columnId === tabularGridRender.COLUMNS_IDS.modifiedOn ||
377
+ columnId === tabularGridRender.COLUMNS_IDS.lastSynchronized) {
378
+ dateType = "dateString";
379
+ }
380
+ this.pendingObjectsAfterFilter = [
381
+ ...tabularGridColumnSort.sortTabularGridColumn(e, this.pendingObjectsAfterFilter, dateType, objectProperty)
382
+ ];
383
+ this.ignoredObjectsAfterFilter = [
384
+ ...tabularGridColumnSort.sortTabularGridColumn(e, this.ignoredObjectsAfterFilter, dateType, objectProperty)
385
+ ];
386
+ });
387
+ /**
388
+ * WA: Ignored objects must always remain unchecked.
389
+ * Because `tabular-grid` selects all rows when the checkbox column is toggled,
390
+ * we need to manually unselect the ignored IDs. // TODO: Move this function
391
+ * to common
392
+ */
393
+ _GxIdeTeamDevCommit_columnSelectorClickedCallback.set(this, async (e) => {
394
+ const allRowsChecked = e.detail;
395
+ if (allRowsChecked) {
396
+ const markedRowsIds = await __classPrivateFieldGet(this, _GxIdeTeamDevCommit_chGridPendingForUpdateEl, "f").getMarkedRows();
397
+ const ignoredMarkedRowsIds = markedRowsIds.filter(rowId => {
398
+ return this.ignoredIdsSet.has(rowId);
399
+ });
400
+ if (ignoredMarkedRowsIds.length) {
401
+ uncheckIgnored.uncheckIgnoredObjects(ignoredMarkedRowsIds, __classPrivateFieldGet(this, _GxIdeTeamDevCommit_chGridPendingForUpdateEl, "f"));
402
+ }
403
+ }
404
+ });
405
+ this.allPendingAreCommited = false;
561
406
  this.alreadyCommitedObjectsIdsSet = new Set([]);
562
407
  this.ignoredIdsSet = new Set([]);
563
408
  this.pendingIdsSet = new Set([]);
@@ -570,7 +415,6 @@ const GxIdeTeamDevCommit = class {
570
415
  this.filterSecondaryIsHidden = true;
571
416
  this.filterSecondaryHasConditions = false;
572
417
  this.loading = true;
573
- this.objectsRenderedAlready = false;
574
418
  this.changesetsComboBoxModel = undefined;
575
419
  this.pendingObjectsAfterFilter = [];
576
420
  this.ignoredObjectsAfterFilter = [];
@@ -582,7 +426,7 @@ const GxIdeTeamDevCommit = class {
582
426
  this.commentsValue = "";
583
427
  this.searchValue = "";
584
428
  this.selectedType = undefined;
585
- this.selectedState = ALL_VALUE;
429
+ this.selectedState = tabularGridRender.ALL_VALUE;
586
430
  this.selectedChangeset = undefined;
587
431
  this.selectedFolder = undefined;
588
432
  this.selectedCategory = undefined;
@@ -599,6 +443,11 @@ const GxIdeTeamDevCommit = class {
599
443
  this.updatePillAsButton = false;
600
444
  this.serverDetails = undefined;
601
445
  }
446
+ alreadyCommitedObjectsIdsSetChanged(newCommitedObjectsIdsSet) {
447
+ const pendingIdsSetAndCommitedIdsSetAreEqual = uncheckIgnored.areSetsEqual(newCommitedObjectsIdsSet, this.pendingIdsSet);
448
+ this.allPendingAreCommited =
449
+ pendingIdsSetAndCommitedIdsSetAreEqual && this.pendingIdsSet.size > 0;
450
+ }
602
451
  markedObjectsSetChanged(newMarkedObjectsSet) {
603
452
  this.atLeastOneObjectIsChecked = newMarkedObjectsSet.size > 0;
604
453
  }
@@ -608,17 +457,24 @@ const GxIdeTeamDevCommit = class {
608
457
  this.commiting = false;
609
458
  }
610
459
  }
611
- pendingAndIgnoredChanged() {
460
+ pendingAndIgnoredChanged(newPendingAndIgnored) {
612
461
  var _a, _b;
613
- __classPrivateFieldGet(this, _GxIdeTeamDevCommit_applyClientFilter, "f").call(this);
614
- this.pendingIdsSet.clear();
615
- (_a = this.pendingAndIgnored.pendingForCommit) === null || _a === void 0 ? void 0 : _a.forEach(pending => {
462
+ // clear previous state
463
+ this.pendingIdsSet.clear(); // before pendingIdsSet.add
464
+ this.ignoredIdsSet.clear(); // before ignoredIdsSet.add
465
+ this.objectsMessagesDataMap = new Map();
466
+ this.alreadyCommitedObjectsIdsSet = new Set();
467
+ this.commentInputHasError = false;
468
+ this.markedObjectsSet = new Set(); // before #markPendingObjects
469
+ (_a = newPendingAndIgnored.pendingForCommit) === null || _a === void 0 ? void 0 : _a.forEach(pending => {
616
470
  this.pendingIdsSet.add(pending.id);
617
471
  });
618
- this.ignoredIdsSet.clear();
619
- (_b = this.pendingAndIgnored.ignoredObjects) === null || _b === void 0 ? void 0 : _b.forEach(ignored => {
472
+ (_b = newPendingAndIgnored.ignoredObjects) === null || _b === void 0 ? void 0 : _b.forEach(ignored => {
620
473
  this.ignoredIdsSet.add(ignored.id);
621
474
  });
475
+ __classPrivateFieldGet(this, _GxIdeTeamDevCommit_markPendingObjects, "f").call(this); // after pendingIdsSet.add and ignoredIdsSet.add
476
+ __classPrivateFieldGet(this, _GxIdeTeamDevCommit_setInitialObjectsStatus, "f").call(this); // after pendingIdsSet.add and ignoredIdsSet.add
477
+ __classPrivateFieldGet(this, _GxIdeTeamDevCommit_applyClientFilter, "f").call(this);
622
478
  }
623
479
  typesChanged(newTypes) {
624
480
  this.typesComboBoxModel = typesToComboBoxItemModel(newTypes);
@@ -636,7 +492,7 @@ const GxIdeTeamDevCommit = class {
636
492
  __classPrivateFieldSet(this, _GxIdeTeamDevCommit_localStatesComboBoxModel, [
637
493
  {
638
494
  caption: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").states.all,
639
- value: ALL_VALUE
495
+ value: tabularGridRender.ALL_VALUE
640
496
  },
641
497
  {
642
498
  caption: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").states.inserted,
@@ -663,12 +519,12 @@ const GxIdeTeamDevCommit = class {
663
519
  this.selectedChangeset =
664
520
  this.changesetsComboBoxModel.length > 0
665
521
  ? this.changesetsComboBoxModel[0].value
666
- : ALL_VALUE;
522
+ : tabularGridRender.ALL_VALUE;
667
523
  this.folderChanged(this.folders);
668
524
  this.selectedFolder =
669
525
  this.foldersComboBoxModel && this.foldersComboBoxModel.length > 0
670
526
  ? this.foldersComboBoxModel[0].value
671
- : ALL_VALUE;
527
+ : tabularGridRender.ALL_VALUE;
672
528
  // this.categoryChanged(this.categories);
673
529
  // this.selectedCategory =
674
530
  // this.categoriesComboBoxModel.length > 0
@@ -678,33 +534,37 @@ const GxIdeTeamDevCommit = class {
678
534
  }
679
535
  async componentDidLoad() {
680
536
  await __classPrivateFieldGet(this, _GxIdeTeamDevCommit_loadData, "f").call(this);
537
+ // initialize "allPendingAreCommited"
538
+ this.alreadyCommitedObjectsIdsSetChanged(this.alreadyCommitedObjectsIdsSet);
681
539
  }
682
540
  /**
683
541
  * Used by the host to instruct the component to force a data reload in the grids.
684
542
  */
685
543
  async reload() {
686
- __classPrivateFieldGet(this, _GxIdeTeamDevCommit_loadData, "f").call(this);
544
+ await __classPrivateFieldGet(this, _GxIdeTeamDevCommit_loadData, "f").call(this);
687
545
  }
688
546
  render() {
689
547
  const disableControls = this.commiting || this.loading;
690
548
  const gridIsEmpty = this.pendingObjectsAfterFilter.length === 0 &&
691
549
  this.ignoredObjectsAfterFilter.length === 0;
692
550
  const filterIcon = this.filterSecondaryHasConditions
693
- ? ICONS.filterWithConditions
694
- : ICONS.filter;
695
- const commitButtonEnabled = this.atLeastOneObjectIsChecked && this.commentsValue.length > 0;
696
- return (index.h(index.Host, { class: "widget" }, index.h("ch-theme", { model: CSS_BUNDLES }), index.h("section", { class: "section" }, index.h("header", { class: { [CSS_SELECTORS.HEADER]: true } }, index.h("div", {
551
+ ? tabularGridRender.ICONS.filterWithConditions
552
+ : tabularGridRender.ICONS.filter;
553
+ const commitButtonEnabled = this.atLeastOneObjectIsChecked &&
554
+ this.commentsValue.length > 0 &&
555
+ !this.allPendingAreCommited;
556
+ return (index.h(index.Host, { class: "widget" }, index.h("ch-theme", { model: CSS_BUNDLES }), index.h("section", { class: "section" }, index.h("header", { class: { [tabularGridRender.CSS_SELECTORS.HEADER]: true } }, index.h("div", {
697
557
  // header details
698
- class: { [CSS_SELECTORS.HEADER_DETAILS]: true }
558
+ class: { [tabularGridRender.CSS_SELECTORS.HEADER_DETAILS]: true }
699
559
  }, headerTitle(__classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").commitDetail.title),
700
560
  // genexus server
701
561
  headerDetail("link", __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").commitDetail.genexusServer, this.serverDetails ? this.serverDetails.serverUrl : "", this.openServerCallback, "detail__genexus-server"),
702
562
  // knowledge base
703
563
  headerDetail("text", __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").commitDetail.knowledgeBase, this.serverDetails ? this.serverDetails.kbName : "", undefined, "detail__knowledge-base"),
704
564
  // version
705
- headerDetail("text", __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").commitDetail.version, this.serverDetails ? this.serverDetails.versionName : "", undefined, "detail__version"))), index.h("div", { class: "filter-container spacing-body-inline" }, index.h("div", { class: { [CSS_SELECTORS.FILTER]: true, "filter-primary": true } }, index.h("ch-edit", {
565
+ headerDetail("text", __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").commitDetail.version, this.serverDetails ? this.serverDetails.versionName : "", undefined, "detail__version"))), index.h("div", { class: "filter-container spacing-body-inline" }, index.h("div", { class: { [tabularGridRender.CSS_SELECTORS.FILTER]: true, "filter-primary": true } }, index.h("ch-edit", {
706
566
  // searchch-edit
707
- class: "input filter__combo", disabled: disableControls, startImgSrc: ICONS.search, accessibleName: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").filter.searchAccessibleName, placeholder: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").filter.searchPlaceholder, type: "search", onInput: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_searchInputHandler, "f")
567
+ class: "input filter__combo", disabled: disableControls, startImgSrc: tabularGridRender.ICONS.search, accessibleName: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").filter.searchAccessibleName, placeholder: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").filter.searchPlaceholder, type: "search", onInput: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_searchInputHandler, "f")
708
568
  }), index.h("ch-combo-box-render", {
709
569
  // types
710
570
  class: "combo-box filter__combo", disabled: disableControls, model: this.typesComboBoxModel, value: this.selectedType, accessibleName: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").filter.typeAccesibleName, placeholder: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").filter.typePlaceholder, onInput: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_typeChangedHandler, "f")
@@ -717,13 +577,13 @@ const GxIdeTeamDevCommit = class {
717
577
  }, index.h("ch-image", { class: "icon-md", src: filterIcon })), index.h("div", { class: "buttons-spacer" }, index.h("button", {
718
578
  // reload button
719
579
  class: "button-secondary button-icon-and-text", disabled: disableControls, onClick: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_loadData, "f")
720
- }, index.h("ch-image", { class: "icon-md", src: ICONS.refresh }), __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").filter.reload), index.h("button", {
580
+ }, index.h("ch-image", { class: "icon-md", src: tabularGridRender.ICONS.refresh }), __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").filter.reload), index.h("button", {
721
581
  // commit button
722
582
  class: "button-primary", disabled: !commitButtonEnabled || disableControls, onClick: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_commitCheckedClickedHandler, "f")
723
583
  }, __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").filter.commit)), index.h("div", {
724
584
  // secondary filter
725
585
  id: FILTER_SECONDARY_CONTAINER_ID, "aria-labelledby": FILTER_SECONDARY_BUTTON_ID, class: {
726
- [CSS_SELECTORS.FILTER]: true,
586
+ [tabularGridRender.CSS_SELECTORS.FILTER]: true,
727
587
  "filter-secondary": true,
728
588
  "filter-secondary--visible": !this.filterSecondaryIsHidden
729
589
  }, inert: this.filterSecondaryIsHidden, hidden: this.filterSecondaryIsHidden
@@ -733,21 +593,22 @@ const GxIdeTeamDevCommit = class {
733
593
  }))), index.h("ch-edit", {
734
594
  // commit comments
735
595
  class: "input comments", multiline: true, autoGrow: true, placeholder: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").commitCommentPlaceholder, onInput: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_commentsInputHandler, "f")
736
- })), index.h("div", { class: CSS_SELECTORS.MAIN }, !this.loading ? (index.h("ch-tabular-grid", { class: {
596
+ })), index.h("div", { class: tabularGridRender.CSS_SELECTORS.MAIN }, !this.loading ? (index.h("ch-tabular-grid", { class: {
737
597
  "tabular-grid": true,
738
598
  "objects-tabular-grid": true,
739
599
  "disabled-custom-selector": this.commiting,
740
600
  "empty-result": gridIsEmpty
741
- }, keyboardNavigationMode: "focus", rowSelectionMode: "multiple", onSelectionChanged: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_rowSelectionChangedHandler, "f"), onRowMarkingChanged: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_rowMarkingChangedHandler, "f"), onRowContextMenu: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_onRowContextMenuHandler, "f").call(this), ref: (el) => (__classPrivateFieldSet(this, _GxIdeTeamDevCommit_chGridPendingForUpdateEl, el, "f")) }, renderTabularGridColumns(["action"], gridIsEmpty, __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f")), !gridIsEmpty
601
+ }, keyboardNavigationMode: "focus", rowSelectionMode: "multiple", onSelectionChanged: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_rowSelectionChangedHandler, "f"), onRowMarkingChanged: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_rowMarkingChangedHandler, "f"), onRowContextMenu: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_onRowContextMenuHandler, "f").call(this), ref: (el) => (__classPrivateFieldSet(this, _GxIdeTeamDevCommit_chGridPendingForUpdateEl, el, "f")) }, tabularGridRender.renderTabularGridColumns(["action"], gridIsEmpty, __classPrivateFieldGet(this, _GxIdeTeamDevCommit_sortTabularGridColumnCallback, "f"), __classPrivateFieldGet(this, _GxIdeTeamDevCommit_columnSelectorClickedCallback, "f"), __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f"), !this.allPendingAreCommited), !gridIsEmpty
742
602
  ? [
743
- index.h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, index.h("ch-tabular-grid-rowset-legend", { class: "tabular-grid-rowset-legend" }, __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").objects.pendingCommits), renderTabularGridRows("pending", this.pendingObjectsAfterFilter, this.ignoredObjectsAfterFilter, this.alreadyCommitedObjectsIdsSet, this.markedObjectsSet, this.objectsMessagesDataMap, this.updatePillAsButton, __classPrivateFieldGet(this, _GxIdeTeamDevCommit_commitSingleObject, "f"), this.objectsStatusMap, this.searchValue, __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f"))),
744
- index.h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, index.h("ch-tabular-grid-rowset-legend", { class: "tabular-grid-rowset-legend" }, __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").objects.ignoredObjects), renderTabularGridRows("ignored", this.pendingObjectsAfterFilter, this.ignoredObjectsAfterFilter, this.alreadyCommitedObjectsIdsSet, this.markedObjectsSet, this.objectsMessagesDataMap, this.updatePillAsButton, __classPrivateFieldGet(this, _GxIdeTeamDevCommit_commitSingleObject, "f"), this.objectsStatusMap, this.searchValue, __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f")))
603
+ index.h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, index.h("ch-tabular-grid-rowset-legend", { class: "tabular-grid-rowset-legend" }, __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").objects.pendingCommits), tabularGridRender.renderTabularGridRows("pending", this.pendingObjectsAfterFilter, this.ignoredObjectsAfterFilter, this.alreadyCommitedObjectsIdsSet, this.markedObjectsSet, this.objectsMessagesDataMap, this.updatePillAsButton, __classPrivateFieldGet(this, _GxIdeTeamDevCommit_commitSingleObject, "f"), this.objectsStatusMap, this.searchValue, __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f"))),
604
+ index.h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, index.h("ch-tabular-grid-rowset-legend", { class: "tabular-grid-rowset-legend" }, __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").objects.ignoredObjects), tabularGridRender.renderTabularGridRows("ignored", this.pendingObjectsAfterFilter, this.ignoredObjectsAfterFilter, this.alreadyCommitedObjectsIdsSet, this.markedObjectsSet, this.objectsMessagesDataMap, this.updatePillAsButton, __classPrivateFieldGet(this, _GxIdeTeamDevCommit_commitSingleObject, "f"), this.objectsStatusMap, this.searchValue, __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f")))
745
605
  ]
746
- : null, index.h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, gridIsEmpty && (index.h("ch-tabular-grid-rowset-empty", null, index.h("gx-ide-empty-state", { class: "empty-state", isAnimated: true, stateIconSrc: ICONS.filter, stateTitle: "No object matched your filter" })))))) : (index.h("gx-ide-loader", { cancelLabel: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").loader.cancelLabel, loaderTitle: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").loader.title, description: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").loader.description, show: true, class: "loader" }))))));
606
+ : null, index.h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, gridIsEmpty && (index.h("ch-tabular-grid-rowset-empty", null, index.h("gx-ide-empty-state", { class: "empty-state", isAnimated: true, stateIconSrc: tabularGridRender.ICONS.filter, stateTitle: "No object matched your filter" })))))) : (index.h("gx-ide-loader", { cancelLabel: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").loader.cancelLabel, loaderTitle: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").loader.title, description: __classPrivateFieldGet(this, _GxIdeTeamDevCommit_componentLocale, "f").loader.description, show: true, class: "loader" }))))));
747
607
  }
748
608
  static get assetsDirs() { return ["gx-ide-assets/team-dev-commit"]; }
749
609
  get el() { return index.getElement(this); }
750
610
  static get watchers() { return {
611
+ "alreadyCommitedObjectsIdsSet": ["alreadyCommitedObjectsIdsSetChanged"],
751
612
  "markedObjectsSet": ["markedObjectsSetChanged"],
752
613
  "objectsStatusMap": ["objectsStatusMapChanged"],
753
614
  "pendingAndIgnored": ["pendingAndIgnoredChanged"],
@@ -756,7 +617,7 @@ const GxIdeTeamDevCommit = class {
756
617
  "folders": ["folderChanged"]
757
618
  }; }
758
619
  };
759
- _GxIdeTeamDevCommit_componentLocale = new WeakMap(), _GxIdeTeamDevCommit_localStatesComboBoxModel = new WeakMap(), _GxIdeTeamDevCommit_rowCheckedChangedByTheUser = new WeakMap(), _GxIdeTeamDevCommit_chGridPendingForUpdateEl = new WeakMap(), _GxIdeTeamDevCommit_commitCheckedClickedHandler = new WeakMap(), _GxIdeTeamDevCommit_commitSingleObject = new WeakMap(), _GxIdeTeamDevCommit_commitObjectsHandler = new WeakMap(), _GxIdeTeamDevCommit_rowMarkingChangedHandler = new WeakMap(), _GxIdeTeamDevCommit_rowSelectionChangedHandler = new WeakMap(), _GxIdeTeamDevCommit_commentsInputHandler = new WeakMap(), _GxIdeTeamDevCommit_applyClientFilter = new WeakMap(), _GxIdeTeamDevCommit_filteredObjects = new WeakMap(), _GxIdeTeamDevCommit_evaluateSecondaryFilterHasConditions = new WeakMap(), _GxIdeTeamDevCommit_toggleFiltersHandler = new WeakMap(), _GxIdeTeamDevCommit_searchInputHandler = new WeakMap(), _GxIdeTeamDevCommit_typeChangedHandler = new WeakMap(), _GxIdeTeamDevCommit_stateChangedHandler = new WeakMap(), _GxIdeTeamDevCommit_folderChanged = new WeakMap(), _GxIdeTeamDevCommit_onRowContextMenuHandler = new WeakMap(), _GxIdeTeamDevCommit_updatePendingCheckedItems = new WeakMap(), _GxIdeTeamDevCommit_setInitialObjectsStatus = new WeakMap(), _GxIdeTeamDevCommit_loadData = new WeakMap(), _GxIdeTeamDevCommit_markPendingObjects = new WeakMap(), _GxIdeTeamDevCommit_revertPendingCommitsCheckboxes = new WeakMap(), _GxIdeTeamDevCommit_togglePendingCommitsCheckboxes = new WeakMap();
620
+ _GxIdeTeamDevCommit_componentLocale = new WeakMap(), _GxIdeTeamDevCommit_localStatesComboBoxModel = new WeakMap(), _GxIdeTeamDevCommit_rowCheckedChangedByTheUser = new WeakMap(), _GxIdeTeamDevCommit_chGridPendingForUpdateEl = new WeakMap(), _GxIdeTeamDevCommit_commitCheckedClickedHandler = new WeakMap(), _GxIdeTeamDevCommit_commitSingleObject = new WeakMap(), _GxIdeTeamDevCommit_commitObjectsHandler = new WeakMap(), _GxIdeTeamDevCommit_rowMarkingChangedHandler = new WeakMap(), _GxIdeTeamDevCommit_rowSelectionChangedHandler = new WeakMap(), _GxIdeTeamDevCommit_commentsInputHandler = new WeakMap(), _GxIdeTeamDevCommit_applyClientFilter = new WeakMap(), _GxIdeTeamDevCommit_filteredObjects = new WeakMap(), _GxIdeTeamDevCommit_evaluateSecondaryFilterHasConditions = new WeakMap(), _GxIdeTeamDevCommit_toggleFiltersHandler = new WeakMap(), _GxIdeTeamDevCommit_searchInputHandler = new WeakMap(), _GxIdeTeamDevCommit_typeChangedHandler = new WeakMap(), _GxIdeTeamDevCommit_stateChangedHandler = new WeakMap(), _GxIdeTeamDevCommit_folderChanged = new WeakMap(), _GxIdeTeamDevCommit_onRowContextMenuHandler = new WeakMap(), _GxIdeTeamDevCommit_updatePendingCheckedItems = new WeakMap(), _GxIdeTeamDevCommit_setInitialObjectsStatus = new WeakMap(), _GxIdeTeamDevCommit_loadData = new WeakMap(), _GxIdeTeamDevCommit_markPendingObjects = new WeakMap(), _GxIdeTeamDevCommit_revertPendingCommitsCheckboxes = new WeakMap(), _GxIdeTeamDevCommit_togglePendingCommitsCheckboxes = new WeakMap(), _GxIdeTeamDevCommit_sortTabularGridColumnCallback = new WeakMap(), _GxIdeTeamDevCommit_columnSelectorClickedCallback = new WeakMap();
760
621
  GxIdeTeamDevCommit.style = commitCss;
761
622
 
762
623
  exports.gx_ide_team_dev_commit = GxIdeTeamDevCommit;