@genexus/genexus-ide-ui 0.0.30 → 0.0.32

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 (108) hide show
  1. package/dist/cjs/ch-action-group_2.cjs.entry.js +2 -9
  2. package/dist/cjs/ch-checkbox.cjs.entry.js +1 -1
  3. package/dist/cjs/ch-dropdown-item.cjs.entry.js +8 -8
  4. package/dist/cjs/ch-dropdown.cjs.entry.js +11 -10
  5. package/dist/cjs/ch-suggest_4.cjs.entry.js +1 -0
  6. package/dist/cjs/ch-test-action-group.cjs.entry.js +2 -2
  7. package/dist/cjs/ch-test-tree-x.cjs.entry.js +150 -80
  8. package/dist/cjs/ch-tree-x_3.cjs.entry.js +211 -132
  9. package/dist/cjs/ch-window_2.cjs.entry.js +28 -12
  10. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  11. package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +3 -3
  12. package/dist/cjs/gx-ide-team-dev-update-partial-selection.cjs.entry.js +17 -32
  13. package/dist/cjs/gx-ide-team-dev-update-to-revision.cjs.entry.js +16 -1
  14. package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +33 -31
  15. package/dist/cjs/gxg-combo-box_6.cjs.entry.js +10 -4
  16. package/dist/cjs/gxg-date-picker.cjs.entry.js +4 -4
  17. package/dist/cjs/loader.cjs.js +1 -1
  18. package/dist/collection/components/team-dev-commit/team-dev-commit.js +12 -18
  19. package/dist/collection/components/team-dev-update/team-dev-update.js +75 -35
  20. package/dist/collection/components/team-dev-update-partial-selection/gx-ide-assets/team-dev-update-partial-selection/langs/team-dev-update-partial-selection.lang.en.json +4 -2
  21. package/dist/collection/components/team-dev-update-partial-selection/team-dev-update-partial-selection.css +1 -0
  22. package/dist/collection/components/team-dev-update-partial-selection/team-dev-update-partial-selection.js +22 -46
  23. package/dist/collection/components/team-dev-update-to-revision/gx-ide-assets/team-dev-update-to-revision/langs/team-dev-update-to-revision.lang.en.json +1 -1
  24. package/dist/collection/components/team-dev-update-to-revision/team-dev-update-to-revision.js +33 -1
  25. package/dist/components/action-group-item.js +1 -9
  26. package/dist/components/action-group.js +1 -1
  27. package/dist/components/ch-suggest2.js +1 -0
  28. package/dist/components/ch-test-action-group.js +2 -2
  29. package/dist/components/ch-test-tree-x.js +157 -83
  30. package/dist/components/ch-window2.js +31 -13
  31. package/dist/components/checkbox.js +1 -1
  32. package/dist/components/combo-box-item.js +2 -2
  33. package/dist/components/combo-box.js +8 -2
  34. package/dist/components/dropdown-item.js +8 -8
  35. package/dist/components/dropdown.js +11 -10
  36. package/dist/components/gx-ide-team-dev-commit.js +4 -4
  37. package/dist/components/gx-ide-team-dev-update-partial-selection.js +18 -33
  38. package/dist/components/gx-ide-team-dev-update-to-revision.js +17 -1
  39. package/dist/components/gx-ide-team-dev-update.js +36 -32
  40. package/dist/components/gxg-date-picker.js +4 -4
  41. package/dist/components/tree-x-list-item.js +31 -17
  42. package/dist/components/tree-x-list.js +9 -4
  43. package/dist/components/tree-x.js +182 -117
  44. package/dist/esm/ch-action-group_2.entry.js +2 -9
  45. package/dist/esm/ch-checkbox.entry.js +1 -1
  46. package/dist/esm/ch-dropdown-item.entry.js +8 -8
  47. package/dist/esm/ch-dropdown.entry.js +11 -10
  48. package/dist/esm/ch-suggest_4.entry.js +1 -0
  49. package/dist/esm/ch-test-action-group.entry.js +2 -2
  50. package/dist/esm/ch-test-tree-x.entry.js +150 -80
  51. package/dist/esm/ch-tree-x_3.entry.js +211 -132
  52. package/dist/esm/ch-window_2.entry.js +28 -12
  53. package/dist/esm/genexus-ide-ui.js +1 -1
  54. package/dist/esm/gx-ide-team-dev-commit.entry.js +3 -3
  55. package/dist/esm/gx-ide-team-dev-update-partial-selection.entry.js +17 -32
  56. package/dist/esm/gx-ide-team-dev-update-to-revision.entry.js +16 -1
  57. package/dist/esm/gx-ide-team-dev-update.entry.js +33 -31
  58. package/dist/esm/gxg-combo-box_6.entry.js +10 -4
  59. package/dist/esm/gxg-date-picker.entry.js +4 -4
  60. package/dist/esm/loader.js +1 -1
  61. package/dist/genexus-ide-ui/genexus-ide-ui.css +1 -1
  62. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  63. package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-partial-selection/langs/team-dev-update-partial-selection.lang.en.json +4 -2
  64. package/dist/genexus-ide-ui/gx-ide-assets/team-dev-update-to-revision/langs/team-dev-update-to-revision.lang.en.json +1 -1
  65. package/dist/genexus-ide-ui/p-1b6b11e1.entry.js +1 -0
  66. package/dist/genexus-ide-ui/p-1fe05a05.entry.js +1 -0
  67. package/dist/genexus-ide-ui/p-24f47ee2.entry.js +1 -0
  68. package/dist/genexus-ide-ui/{p-54bab171.entry.js → p-28d0afda.entry.js} +1 -1
  69. package/dist/genexus-ide-ui/{p-6050cdba.entry.js → p-48412811.entry.js} +1 -1
  70. package/dist/genexus-ide-ui/p-714bd8ea.entry.js +1 -0
  71. package/dist/genexus-ide-ui/p-8592f072.entry.js +1 -0
  72. package/dist/genexus-ide-ui/p-8c2ab053.entry.js +1 -0
  73. package/dist/genexus-ide-ui/p-976e8118.entry.js +1 -0
  74. package/dist/genexus-ide-ui/p-a5463fc9.entry.js +1 -0
  75. package/dist/genexus-ide-ui/p-b2923298.entry.js +1 -0
  76. package/dist/genexus-ide-ui/p-bb1809cb.entry.js +1 -0
  77. package/dist/genexus-ide-ui/p-cf41f154.entry.js +1 -0
  78. package/dist/genexus-ide-ui/p-e8a21ed7.entry.js +1 -0
  79. package/dist/genexus-ide-ui/p-f794dc13.entry.js +1 -0
  80. package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/action-group-item/action-group-item.css +0 -1
  81. package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/checkbox/checkbox.css +5 -3
  82. package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/dropdown/dropdown.css +15 -33
  83. package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/dropdown-item/dropdown-item.css +0 -4
  84. package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/test/test-tree-x.css +0 -10
  85. package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/tree-x/tree-x.css +20 -3
  86. package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/tree-x-list-item/tree-x-list-item.css +25 -8
  87. package/dist/node_modules/@genexus/chameleon-controls-library/dist/collection/components/window/ch-window.css +51 -2
  88. package/dist/node_modules/@genexus/gemini/dist/collection/components/combo-box-item/combo-box-item.css +1 -1
  89. package/dist/types/common/types.d.ts +9 -0
  90. package/dist/types/components/team-dev-commit/team-dev-commit.d.ts +8 -15
  91. package/dist/types/components/team-dev-update/team-dev-update.d.ts +16 -13
  92. package/dist/types/components/team-dev-update-partial-selection/team-dev-update-partial-selection.d.ts +11 -14
  93. package/dist/types/components/team-dev-update-to-revision/team-dev-update-to-revision.d.ts +8 -0
  94. package/dist/types/components.d.ts +39 -19
  95. package/package.json +3 -3
  96. package/dist/genexus-ide-ui/p-097a3eeb.entry.js +0 -1
  97. package/dist/genexus-ide-ui/p-32b8abf6.entry.js +0 -1
  98. package/dist/genexus-ide-ui/p-3d9a4ede.entry.js +0 -1
  99. package/dist/genexus-ide-ui/p-4bbe1c18.entry.js +0 -1
  100. package/dist/genexus-ide-ui/p-53d36ef7.entry.js +0 -1
  101. package/dist/genexus-ide-ui/p-5c64c57f.entry.js +0 -1
  102. package/dist/genexus-ide-ui/p-5ff04ebe.entry.js +0 -1
  103. package/dist/genexus-ide-ui/p-6e80380b.entry.js +0 -1
  104. package/dist/genexus-ide-ui/p-757f8567.entry.js +0 -1
  105. package/dist/genexus-ide-ui/p-8d46f8d8.entry.js +0 -1
  106. package/dist/genexus-ide-ui/p-a0e85c2a.entry.js +0 -1
  107. package/dist/genexus-ide-ui/p-cda1623a.entry.js +0 -1
  108. package/dist/genexus-ide-ui/p-f8561da6.entry.js +0 -1
@@ -42,9 +42,11 @@
42
42
 
43
43
  .option {
44
44
  position: absolute;
45
- inset: calc(50% - min(0.25em, 5px));
46
- width: min(0.5em, 10px);
47
- height: min(0.5em, 10px);
45
+ left: 50%;
46
+ top: 50%;
47
+ transform: translate(-50%, -50%);
48
+ width: 50%;
49
+ height: 50%;
48
50
  background-color: #000;
49
51
  opacity: 0;
50
52
  pointer-events: none;
@@ -36,42 +36,24 @@
36
36
  pointer-events: none;
37
37
  }
38
38
 
39
- .separation {
40
- display: flex;
41
- position: absolute;
42
- z-index: 107;
43
- }
44
- .separation--y {
45
- width: 100%;
46
- height: var(--separation-y);
47
- }
48
- .separation--y-outside-start {
49
- inset-block-start: calc(var(--separation-y) * -1);
50
- }
51
- .separation--y-outside-start + ch-window {
52
- --ch-window-offset-y: calc(var(--separation-y) * -1);
53
- }
54
- .separation--y-outside-end {
55
- inset-block-end: calc(var(--separation-y) * -1);
56
- }
57
- .separation--y-outside-end + ch-window {
58
- --ch-window-offset-y: var(--separation-y);
39
+ ch-window[y-align=outside-start] {
40
+ --ch-window-separation: var(--separation-y);
41
+ --ch-window-separation-y: calc(var(--separation-y) * -1);
59
42
  }
60
- .separation--x {
61
- width: var(--separation-x);
62
- height: 100%;
63
- }
64
- .separation--x-outside-start {
65
- inset-inline-start: calc(var(--separation-x) * -1);
66
- }
67
- .separation--x-outside-start + ch-window {
68
- --ch-window-offset-x: calc(var(--separation-x) * -1);
43
+
44
+ ch-window[y-align=outside-end] {
45
+ --ch-window-separation: var(--separation-y);
46
+ --ch-window-separation-y: var(--separation-y);
69
47
  }
70
- .separation--x-outside-end {
71
- inset-inline-end: calc(var(--separation-x) * -1);
48
+
49
+ ch-window[x-align=outside-start] {
50
+ --ch-window-separation: var(--separation-x);
51
+ --ch-window-separation-x: calc(var(--separation-x) * -1);
72
52
  }
73
- .separation--x-outside-end + ch-window {
74
- --ch-window-offset-x: var(--separation-x);
53
+
54
+ ch-window[x-align=outside-end] {
55
+ --ch-window-separation: var(--separation-x);
56
+ --ch-window-separation-x: var(--separation-x);
75
57
  }
76
58
 
77
59
  .list {
@@ -38,8 +38,4 @@
38
38
 
39
39
  .content {
40
40
  width: 100%;
41
- }
42
-
43
- .dummy-wrapper {
44
- display: contents;
45
41
  }
@@ -4,16 +4,6 @@ ch-test-tree-x {
4
4
  grid-template-rows: 1fr;
5
5
  height: 100%;
6
6
  }
7
- ch-test-tree-x > .test-tree-x-scroll {
8
- position: relative;
9
- overflow-y: auto;
10
- margin-inline-end: 16px;
11
- }
12
- ch-test-tree-x > .test-tree-x-scroll > ch-tree-x {
13
- position: absolute;
14
- inset: 0;
15
- margin: 2px;
16
- }
17
7
 
18
8
  .tree-buttons {
19
9
  display: grid;
@@ -1,11 +1,22 @@
1
1
  ch-tree-x {
2
2
  display: flex;
3
+ position: relative;
4
+ overflow: auto;
3
5
  }
4
- ch-tree-x.ch-tree-x-dragging-item :not(.ch-tree-x-list-item--accept-drop) {
6
+ ch-tree-x > ch-tree-x-list {
7
+ position: absolute;
8
+ inset: 0;
9
+ min-width: max-content;
10
+ }
11
+ ch-tree-x.ch-tree-x-dragging-item ch-tree-x-list-item {
12
+ pointer-events: var(--ch-tree-x-pointer-events, all);
13
+ }
14
+ ch-tree-x.ch-tree-x-dragging-item .ch-tree-x-list-item--deny-drop,
15
+ ch-tree-x.ch-tree-x-dragging-item ch-tree-x-list {
5
16
  pointer-events: none;
6
17
  }
7
- ch-tree-x.ch-tree-x-dragging-item .ch-tree-x-list-item--accept-drop {
8
- pointer-events: all;
18
+ ch-tree-x.ch-tree-x--dragging-selected-items ch-tree-x-list-item[selected] {
19
+ --ch-tree-x-pointer-events: none;
9
20
  }
10
21
  ch-tree-x.ch-tree-x-waiting-drop-processing {
11
22
  cursor: wait;
@@ -22,8 +33,14 @@ ch-tree-x.ch-tree-x-waiting-drop-processing > ch-tree-x-list {
22
33
  transform: translate(calc(var(--ch-tree-x-dragging-item-x) + var(--rtl-offset)), calc(var(--ch-tree-x-dragging-item-y) + 8px));
23
34
  pointer-events: none;
24
35
  z-index: 1;
36
+ animation: ch-tree-x-drag-info-fade-in 10ms;
25
37
  }
26
38
 
39
+ @keyframes ch-tree-x-drag-info-fade-in {
40
+ 0%, 100% {
41
+ opacity: 0;
42
+ }
43
+ }
27
44
  html[dir=rtl] .ch-tree-x-drag-info {
28
45
  --rtl-offset: -100%;
29
46
  }
@@ -15,13 +15,15 @@
15
15
 
16
16
  :host {
17
17
  --checkbox-size: 1em;
18
- --expandable-button-width: 12px;
18
+ --expandable-button-width: 0.75em;
19
+ --ch-tree-x-list-item-dashed-line--offset: 0px;
19
20
  --tab-width: calc(
20
21
  var(--checkbox-size) + var(--expandable-button-width) +
21
22
  (5px * 2)
22
23
  );
23
24
  display: grid;
24
25
  grid-template-rows: min-content;
26
+ overflow: hidden;
25
27
  }
26
28
 
27
29
  .header {
@@ -116,22 +118,29 @@
116
118
 
117
119
  .dashed-line {
118
120
  position: absolute;
119
- inset-inline-start: var(--inset-inline-start);
121
+ inset-inline-start: calc( var(--inset-inline-start) + var(--ch-tree-x-list-item-dashed-line--offset) );
120
122
  height: 1px;
121
- width: calc( var(--tab-width) - var(--parent-checkbox-offset) - var(--parent-expandable-offset) - var(--own-offset) - 4px );
123
+ width: calc( var(--tab-width) - var(--parent-checkbox-offset) - var(--parent-expandable-offset) - var(--own-offset) - var(--ch-tree-x-list-item-dashed-line--offset) - 4px );
122
124
  border: 0 dashed #a9a9a9;
123
125
  border-block-end-width: 1px;
124
126
  pointer-events: none;
125
127
  content-visibility: hidden;
126
- contain-intrinsic-size: auto 100px;
128
+ z-index: 1;
127
129
  }
128
130
 
129
- .last-dashed-line {
131
+ .last-all-line {
130
132
  inset-block-start: 0;
131
133
  height: calc(100% - var(--distance-to-checkbox));
132
134
  border-inline-start-width: 1px;
133
135
  border-end-start-radius: 2px;
134
- pointer-events: none;
136
+ }
137
+
138
+ .last-line {
139
+ inset-block-start: 0;
140
+ height: 100%;
141
+ border-inline-start-width: 1px;
142
+ border-style: solid;
143
+ border-block-end: unset;
135
144
  }
136
145
 
137
146
  .expandable-button {
@@ -141,6 +150,8 @@
141
150
  height: var(--expandable-button-width);
142
151
  margin-inline-end: 5px;
143
152
  z-index: 1;
153
+ content-visibility: auto;
154
+ contain-intrinsic-size: auto var(--expandable-button-width);
144
155
  }
145
156
  .expandable-button::before {
146
157
  content: "";
@@ -162,6 +173,10 @@
162
173
  .checkbox {
163
174
  margin-inline-end: 5px;
164
175
  }
176
+ .checkbox::part(container) {
177
+ width: var(--checkbox-size);
178
+ height: var(--checkbox-size);
179
+ }
165
180
 
166
181
  .action {
167
182
  display: grid;
@@ -180,16 +195,18 @@
180
195
  display: block;
181
196
  width: 0.875em;
182
197
  height: 0.875em;
198
+ content-visibility: auto;
199
+ contain-intrinsic-size: auto 0.875em;
183
200
  }
184
201
 
185
202
  .left-img {
186
203
  grid-area: left-img;
187
- margin-inline-end: 6px;
204
+ margin-inline-end: 5px;
188
205
  }
189
206
 
190
207
  .right-img {
191
208
  grid-area: right-img;
192
- margin-inline-start: 6px;
209
+ margin-inline-start: 5px;
193
210
  }
194
211
 
195
212
  .edit-name {
@@ -1,6 +1,8 @@
1
1
  :host {
2
2
  --ch-window-offset-x: 0px;
3
3
  --ch-window-offset-y: 0px;
4
+ --ch-window-separation-x: 0px;
5
+ --ch-window-separation-y: 0px;
4
6
  --ch-window-x-outside: 0px;
5
7
  --ch-window-y-outside: 0px;
6
8
  }
@@ -21,8 +23,10 @@
21
23
  display: flex;
22
24
  position: fixed;
23
25
  inset: 0;
24
- inset-inline-start: calc( var(--ch-window-inset-inline-start) + var(--ch-window-offset-x) );
25
- inset-block-start: calc( var(--ch-window-inset-block-start) + var(--ch-window-offset-y) );
26
+ left: calc( var(--ch-window-inset-inline-start) + var(--ch-window-offset-x) + var(--ch-window-separation-x) );
27
+ inset-block-start: calc( var(--ch-window-inset-block-start) + var(--ch-window-offset-y) + var(--ch-window-separation-y) );
28
+ width: var(--ch-window-mask-width);
29
+ height: var(--ch-window-mask-height);
26
30
  z-index: var(--ch-window-mask-z-index, 1000);
27
31
  }
28
32
  :host(:is([x-align="outside-start"], [x-align="inside-start"])) .mask {
@@ -48,6 +52,7 @@
48
52
  display: flex;
49
53
  flex-direction: column;
50
54
  transform: translate(var(--ch-window-x-outside), var(--ch-window-y-outside)) translate(var(--ch-window-x-drag, 0px), var(--ch-window-y-drag, 0px));
55
+ z-index: inherit;
51
56
  }
52
57
  :host([x-align=outside-start]) .window {
53
58
  --ch-window-x-outside: -100%;
@@ -60,4 +65,48 @@
60
65
  }
61
66
  :host([y-align=outside-end]) .window {
62
67
  --ch-window-y-outside: 100%;
68
+ }
69
+
70
+ .separation {
71
+ position: fixed;
72
+ inset: 0;
73
+ pointer-events: all;
74
+ }
75
+ .separation--x {
76
+ top: var(--ch-window-inset-block-start);
77
+ width: var(--ch-window-separation);
78
+ height: var(--ch-window-mask-height);
79
+ }
80
+ .separation--y {
81
+ left: var(--ch-window-inset-inline-start);
82
+ width: var(--ch-window-mask-width);
83
+ height: var(--ch-window-separation);
84
+ }
85
+ .separation--both {
86
+ width: calc(var(--ch-window-separation) * 4);
87
+ height: calc(var(--ch-window-separation) * 4);
88
+ }
89
+ :host([x-align=outside-start]) .separation {
90
+ left: calc( var(--ch-window-inset-inline-start) - var(--ch-window-separation) );
91
+ }
92
+ :host([x-align=outside-start]) .separation--both {
93
+ left: calc( var(--ch-window-inset-inline-start) - var(--ch-window-separation) * 3 );
94
+ }
95
+ :host([x-align=outside-end]) .separation {
96
+ left: calc( var(--ch-window-inset-inline-start) + var(--ch-window-mask-width) );
97
+ }
98
+ :host([x-align=outside-end]) .separation--both {
99
+ left: calc( var(--ch-window-inset-inline-start) + var(--ch-window-mask-width) - var(--ch-window-separation) );
100
+ }
101
+ :host([y-align=outside-start]) .separation {
102
+ top: calc(var(--ch-window-inset-block-start) - var(--ch-window-separation));
103
+ }
104
+ :host([y-align=outside-start]) .separation--both {
105
+ top: calc( var(--ch-window-inset-block-start) - var(--ch-window-separation) * 3 );
106
+ }
107
+ :host([y-align=outside-end]) .separation {
108
+ top: calc( var(--ch-window-inset-block-start) + var(--ch-window-mask-height) );
109
+ }
110
+ :host([y-align=outside-end]) .separation--both {
111
+ top: calc( var(--ch-window-inset-block-start) + var(--ch-window-mask-height) - var(--ch-window-separation) );
63
112
  }
@@ -58,7 +58,7 @@
58
58
 
59
59
  :host([selected]) {
60
60
  background-color: var(--gxg-background-color-item-selected);
61
- color: var(--gxg-color-item-active);
61
+ color: var(--gxg-color-selected);
62
62
  }
63
63
 
64
64
  /*********************************************
@@ -34,3 +34,12 @@ export type ContextMenuInfo = {
34
34
  clientX: number;
35
35
  clientY: number;
36
36
  };
37
+ export type ItemsCheckedState = {
38
+ itemsChecked: string[];
39
+ itemsUnchecked: string[];
40
+ };
41
+ export type ItemsCheckedResult = {
42
+ itemsToCheck: string[];
43
+ itemsToUncheck: string[];
44
+ };
45
+ export type ResultState = "info" | "success" | "warning" | "error";
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from "../../stencil-public-runtime";
2
- import { GxOption, ObjectState, ContextMenuInfo, ObjectType } from "../../common/types";
2
+ import { GxOption, ObjectState, ContextMenuInfo, ObjectType, ItemsCheckedState, ItemsCheckedResult } from "../../common/types";
3
3
  export declare class GxIdeTeamDevCommit {
4
4
  /**
5
5
  * The component hard-coded strings translations.
@@ -50,11 +50,11 @@ export declare class GxIdeTeamDevCommit {
50
50
  /**
51
51
  * Callback that should be invoked when the user selects rows from the grids
52
52
  */
53
- readonly selectCallback: SelectCallback;
53
+ readonly selectCallback: CommitSelectCallback;
54
54
  /**
55
55
  * Callback invoked when user check/uncheck any item from the 'Pending to Commit' grid
56
56
  */
57
- readonly pendingItemCheckedCallback: (pendingItemsCheckedState: PendingItemsCheckedState) => Promise<PendingItemCheckedResult | undefined>;
57
+ readonly pendingItemsCheckedCallback: PendingItemsCheckedCallback;
58
58
  /**
59
59
  * Callback that must be invoked when user activate the context menu in any of the grids
60
60
  */
@@ -88,10 +88,11 @@ export declare class GxIdeTeamDevCommit {
88
88
  export type GetRecentComment = () => Promise<string | undefined>;
89
89
  export type LoadCallback = (filters: FiltersData) => Promise<CommitData>;
90
90
  export type CommitCallback = (selection: string[], commitComment: string) => Promise<boolean>;
91
- export type SelectCallback = (grid: SourceType, selectionIds: string[]) => Promise<void>;
92
- export type PendingItemCheckedCallback = (checkedItemIds: string[]) => Promise<PendingItemCheckedResult | undefined>;
93
- export type ObjectsContextMenuCallback = (grid: SourceType, contextMenuInfo: ContextMenuInfo) => Promise<void>;
94
- export type SourceType = "commit" | "ignored";
91
+ export type PendingItemsCheckedCallback = (pendingItemsCheckedState: ItemsCheckedState) => Promise<ItemsCheckedResult | undefined>;
92
+ export type CommitSelectCallback = (grid: CommitSourceType, selectionIds: string[]) => Promise<void>;
93
+ export type ItemCheckedCallback = (checkedItemIds: string[]) => Promise<ItemsCheckedResult | undefined>;
94
+ export type ObjectsContextMenuCallback = (grid: CommitSourceType, contextMenuInfo: ContextMenuInfo) => Promise<void>;
95
+ export type CommitSourceType = "commit" | "ignored";
95
96
  export type CommitData = {
96
97
  pending: ModifiedObjectData[];
97
98
  ignored: ModifiedObjectData[];
@@ -116,11 +117,3 @@ export type FiltersData = {
116
117
  folder: string;
117
118
  category: string;
118
119
  };
119
- export type PendingItemCheckedResult = {
120
- itemsToCheck: string[];
121
- itemsToUncheck: string[];
122
- };
123
- export type PendingItemsCheckedState = {
124
- itemsChecked: string[];
125
- itemsUnchecked: string[];
126
- };
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from "../../stencil-public-runtime";
2
- import { ObjectState, ObjectType } from "../../common/types";
2
+ import { ObjectState, ObjectType, ContextMenuInfo, ItemsCheckedState, ItemsCheckedResult, ResultState } from "../../common/types";
3
3
  export declare class GxIdeTeamDevUpdate {
4
4
  /**
5
5
  * The component hard-coded strings translations.
@@ -64,11 +64,19 @@ export declare class GxIdeTeamDevUpdate {
64
64
  /**
65
65
  * This is a function provided by the developer that return the information of a Font type of data.
66
66
  */
67
- readonly pendingItemCheckedCallback: PendingItemCheckedCallback;
67
+ readonly pendingItemsCheckedCallback: PendingItemsCheckedCallback;
68
68
  /**
69
69
  * This is a function provided by the developer to call when the user wants to select the revision to work on.
70
70
  */
71
71
  readonly revisionScopeCallback: () => Promise<string | undefined>;
72
+ /**
73
+ * Callback that should be invoked when the user activates the context menu on any of the grids. It receives the internal IDs of the selected elements and in which grid the event occurred. It should prevent the default browser context menu from appearing
74
+ */
75
+ readonly objectsContextMenuCallback: ObjectsContextMenuCallback;
76
+ /**
77
+ * Callback that should be invoked when the user selects rows from the grids
78
+ */
79
+ readonly selectCallback: UpdateSelectCallback;
72
80
  /**
73
81
  * Possibly values for the filter type
74
82
  */
@@ -92,7 +100,9 @@ export declare class GxIdeTeamDevUpdate {
92
100
  * Validate necessary data input
93
101
  */
94
102
  validate(): Promise<boolean>;
103
+ private onRowContextMenuHandler;
95
104
  private markAllPendingToUpdateRows;
105
+ private gridOnSelectionChangedCallbackHandler;
96
106
  private renderOptions;
97
107
  private renderFilter;
98
108
  private renderData;
@@ -106,7 +116,6 @@ export declare class GxIdeTeamDevUpdate {
106
116
  private toggleFilter;
107
117
  private objectsScope;
108
118
  private revisionScope;
109
- private addListeners;
110
119
  private pendingForUpdatesRowMarkingChangedHandler;
111
120
  private togglePendingCommitsCheckboxes;
112
121
  private revertPendingCommitsCheckboxes;
@@ -114,8 +123,11 @@ export declare class GxIdeTeamDevUpdate {
114
123
  }
115
124
  export type LoadCallback = (filters: FiltersData) => Promise<UpdateData>;
116
125
  export type UpdateCallback = (selection: string[]) => Promise<UpdateResultData[]>;
117
- export type PendingItemCheckedCallback = (pendingItemsCheckedState: PendingItemsCheckedState) => Promise<PendingItemCheckedResult | undefined>;
126
+ export type PendingItemsCheckedCallback = (pendingItemsCheckedState: ItemsCheckedState) => Promise<ItemsCheckedResult | undefined>;
127
+ export type UpdateSelectCallback = (grid: UpdateSourceType, selectionIds: string[]) => Promise<void>;
128
+ export type UpdateSourceType = "pending" | "ignored" | "results";
118
129
  export type GridContextMenuCallback = (selection: string[], grid: "update" | "ignored" | "results") => Promise<void>;
130
+ export type ObjectsContextMenuCallback = (source: UpdateSourceType, contextMenuInfo: ContextMenuInfo) => Promise<void>;
119
131
  export type ConfirmCallback = (data: any) => Promise<boolean>;
120
132
  export interface UpdateFromData {
121
133
  serverUrl: string;
@@ -157,12 +169,3 @@ export interface MessageData {
157
169
  type: "info" | "success" | "warning" | "error";
158
170
  text: string;
159
171
  }
160
- export type ResultState = "info" | "success" | "warning" | "error";
161
- export interface PendingItemCheckedResult {
162
- itemsToCheck: string[];
163
- itemsToUncheck: string[];
164
- }
165
- export interface PendingItemsCheckedState {
166
- itemsChecked: string[];
167
- itemsUnchecked: string[];
168
- }
@@ -7,15 +7,15 @@ export declare class GxIdeTeamDevUpdatePartialSelection {
7
7
  /**
8
8
  * This is a function provided by the developer that return a list of new objects to populate the table of objects.
9
9
  */
10
- readonly addCallback: AddCallbackFn;
10
+ readonly addCallback: AddCallback;
11
11
  /**
12
12
  * This is a function provided by the developer for execute when cancel button is pressed.
13
13
  */
14
- readonly cancelCallback: CancelCallbackFn;
14
+ readonly cancelCallback: CancelCallback;
15
15
  /**
16
16
  * This is a function provided by the developer and is invoked when the action confirm is executed passing the selected objects of the grid
17
17
  */
18
- readonly confirmCallback: ConfirmCallbackFn;
18
+ readonly confirmCallback: ConfirmCallback;
19
19
  /**
20
20
  * The categories render in the filter category selector
21
21
  */
@@ -32,25 +32,22 @@ export declare class GxIdeTeamDevUpdatePartialSelection {
32
32
  componentDidLoadEvent: EventEmitter<boolean>;
33
33
  componentWillLoad(): Promise<void>;
34
34
  componentDidLoad(): void;
35
- keyDownHandler(eventInfo: KeyboardEvent): void;
36
35
  /**
37
36
  * Validate necessary data input
38
37
  */
39
38
  validate(): Promise<boolean>;
40
- private handleKeyDownEvent;
41
- private keyDownEventHandler;
42
39
  private renderObjects;
43
- private getObjects;
44
- private removeObjects;
45
- private confirm;
46
- private cancel;
47
- private deselectAll;
40
+ private getObjectsHandler;
41
+ private removeObjectsHandler;
42
+ private confirmHandler;
43
+ private cancelHandler;
44
+ private deselectAllHandler;
48
45
  private listenChanges;
49
46
  render(): void;
50
47
  }
51
- export type AddCallbackFn = () => Promise<ObjectData[]>;
52
- export type CancelCallbackFn = () => Promise<void>;
53
- export type ConfirmCallbackFn = (ids: string[]) => Promise<void>;
48
+ export type AddCallback = () => Promise<ObjectData[]>;
49
+ export type CancelCallback = () => Promise<void>;
50
+ export type ConfirmCallback = (ids: string[]) => Promise<void>;
54
51
  export interface ObjectData {
55
52
  id: string;
56
53
  typeIcon: string;
@@ -12,20 +12,28 @@ export declare class GxIdeTeamDevUpdateToRevision {
12
12
  * This is a function provided by the developer and is invoked when the action confirm is executed passing the selected objects of the grid
13
13
  */
14
14
  readonly confirmCallback: confirmCallbackFn;
15
+ /**
16
+ * Set an initial value for the review
17
+ */
18
+ readonly currentRevision: string | undefined;
15
19
  el: HTMLGxIdeTeamDevUpdateToRevisionElement;
16
20
  private revisionNumberEl;
17
21
  private updateToRevisionEl;
22
+ private updateToLatestEl;
18
23
  /**
19
24
  * This event is emitted once just after the component is fully loaded and the first render() occurs.
20
25
  */
21
26
  componentDidLoadEvent: EventEmitter<boolean>;
22
27
  componentWillLoad(): Promise<void>;
28
+ componentDidLoad(): void;
23
29
  /**
24
30
  * Validate necessary data input
25
31
  */
26
32
  validate(): Promise<boolean>;
33
+ private setInitialCheckedRadio;
27
34
  private confirm;
28
35
  private cancel;
36
+ private updateToRevisionOnFocusHandler;
29
37
  render(): void;
30
38
  }
31
39
  export type addCallbackFn = () => Promise<ObjectData[]>;