@genexus/genexus-ide-ui 0.0.120 → 0.0.122

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 (40) hide show
  1. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  2. package/dist/cjs/gx-ide-object-selector.cjs.entry.js +21 -9
  3. package/dist/cjs/gx-ide-object-selector.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gx-ide-wf-settings.cjs.entry.js +59 -0
  5. package/dist/cjs/gx-ide-wf-settings.cjs.entry.js.map +1 -0
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/collection-manifest.json +2 -1
  8. package/dist/collection/components/object-selector/object-selector.js +21 -9
  9. package/dist/collection/components/object-selector/object-selector.js.map +1 -1
  10. package/dist/collection/components/wf-settings/gx-ide-assets/wf-settings/langs/wf-settings.lang.en.json +29 -0
  11. package/dist/collection/components/wf-settings/gx-ide-assets/wf-settings/langs/wf-settings.lang.ja.json +3 -0
  12. package/dist/collection/components/wf-settings/gx-ide-assets/wf-settings/langs/wf-settings.lang.zh.json +3 -0
  13. package/dist/collection/components/wf-settings/wf-settings.css +535 -0
  14. package/dist/collection/components/wf-settings/wf-settings.js +173 -0
  15. package/dist/collection/components/wf-settings/wf-settings.js.map +1 -0
  16. package/dist/components/gx-ide-object-selector.js +21 -9
  17. package/dist/components/gx-ide-object-selector.js.map +1 -1
  18. package/dist/components/gx-ide-wf-settings.d.ts +11 -0
  19. package/dist/components/gx-ide-wf-settings.js +156 -0
  20. package/dist/components/gx-ide-wf-settings.js.map +1 -0
  21. package/dist/esm/genexus-ide-ui.js +1 -1
  22. package/dist/esm/gx-ide-object-selector.entry.js +21 -9
  23. package/dist/esm/gx-ide-object-selector.entry.js.map +1 -1
  24. package/dist/esm/gx-ide-wf-settings.entry.js +55 -0
  25. package/dist/esm/gx-ide-wf-settings.entry.js.map +1 -0
  26. package/dist/esm/loader.js +1 -1
  27. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  28. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
  29. package/dist/genexus-ide-ui/gx-ide-assets/wf-settings/langs/wf-settings.lang.en.json +29 -0
  30. package/dist/genexus-ide-ui/gx-ide-assets/wf-settings/langs/wf-settings.lang.ja.json +3 -0
  31. package/dist/genexus-ide-ui/gx-ide-assets/wf-settings/langs/wf-settings.lang.zh.json +3 -0
  32. package/dist/genexus-ide-ui/{p-7ed89885.entry.js → p-debee72d.entry.js} +134 -118
  33. package/dist/genexus-ide-ui/p-debee72d.entry.js.map +1 -0
  34. package/dist/genexus-ide-ui/p-f19ec1c3.entry.js +100 -0
  35. package/dist/genexus-ide-ui/p-f19ec1c3.entry.js.map +1 -0
  36. package/dist/types/components/object-selector/object-selector.d.ts +4 -0
  37. package/dist/types/components/wf-settings/wf-settings.d.ts +42 -0
  38. package/dist/types/components.d.ts +66 -0
  39. package/package.json +1 -1
  40. package/dist/genexus-ide-ui/p-7ed89885.entry.js.map +0 -1
@@ -0,0 +1,535 @@
1
+ :root {
2
+ --ui-animaton-speed: 0.2s;
3
+ }
4
+
5
+ /*ALIGNMENT*/
6
+ /*Ellipsis*/
7
+ /*****************************************************
8
+ TYPOGRAPHY
9
+ *****************************************************/
10
+ /*Title 01 (Positive)*/
11
+ .gxg-title-01 {
12
+ font-family: var(--ds-base-font-family-primary);
13
+ font-weight: var(--ds-title-01-font-weight);
14
+ font-size: var(--ds-title-01-font-size);
15
+ letter-spacing: var(--ds-base-font-letter-spacing--comfortable);
16
+ color: var(--ds-base-font-color);
17
+ text-align: start;
18
+ line-height: var(--ds-base-font-line-height--comfortable);
19
+ }
20
+
21
+ /*Title 01 (Negative)*/
22
+ .gxg-title-01--negative {
23
+ font-family: var(--ds-base-font-family-primary);
24
+ font-weight: var(--ds-title-01-font-weight);
25
+ font-size: var(--ds-title-01-font-size);
26
+ letter-spacing: var(--ds-base-font-letter-spacing--comfortable);
27
+ color: var(--ds-base-font-color);
28
+ text-align: start;
29
+ line-height: var(--ds-base-font-line-height--comfortable);
30
+ color: var(--ds-base-font-color--negative);
31
+ }
32
+
33
+ /*Title 02 (Positive)*/
34
+ .gxg-title-02 {
35
+ font-family: var(--ds-base-font-family-primary);
36
+ font-weight: var(--ds-title-02-font-weight);
37
+ font-size: var(--ds-title-02-font-size);
38
+ letter-spacing: var(--ds-base-font-letter-spacing--regular);
39
+ color: var(--ds-base-font-color);
40
+ text-align: start;
41
+ text-transform: uppercase;
42
+ line-height: var(--ds-base-font-line-height--comfortable);
43
+ }
44
+
45
+ .gxg-title-02--negative {
46
+ font-family: var(--ds-base-font-family-primary);
47
+ font-weight: var(--ds-title-02-font-weight);
48
+ font-size: var(--ds-title-02-font-size);
49
+ letter-spacing: var(--ds-base-font-letter-spacing--regular);
50
+ color: var(--ds-base-font-color);
51
+ text-align: start;
52
+ text-transform: uppercase;
53
+ line-height: var(--ds-base-font-line-height--comfortable);
54
+ color: var(--color-on-primary);
55
+ }
56
+
57
+ /*Title 03*/
58
+ .gxg-title-03 {
59
+ font-family: var(--ds-base-font-family-primary);
60
+ font-weight: var(--ds-title-03-font-weight);
61
+ font-size: var(--ds-title-03-font-size);
62
+ letter-spacing: var(--ds-base-font-letter-spacing--regular);
63
+ color: var(--ds-base-font-color);
64
+ text-align: start;
65
+ text-transform: uppercase;
66
+ line-height: var(--ds-base-font-line-height--comfortable);
67
+ }
68
+
69
+ .gxg-title-03--negative {
70
+ font-family: var(--ds-base-font-family-primary);
71
+ font-weight: var(--ds-title-03-font-weight);
72
+ font-size: var(--ds-title-03-font-size);
73
+ letter-spacing: var(--ds-base-font-letter-spacing--regular);
74
+ color: var(--ds-base-font-color);
75
+ text-align: start;
76
+ text-transform: uppercase;
77
+ line-height: var(--ds-base-font-line-height--comfortable);
78
+ color: var(--ds-base-font-color--negative);
79
+ }
80
+
81
+ /*Title 04*/
82
+ .gxg-title-04 {
83
+ font-family: var(--ds-base-font-family-primary);
84
+ font-weight: var(--ds-title-04-font-weight);
85
+ font-size: var(--ds-title-04-font-size);
86
+ letter-spacing: var(--ds-base-font-letter-spacing--comfortable);
87
+ color: var(--ds-base-font-color);
88
+ text-align: start;
89
+ line-height: var(--ds-base-font-line-height--comfortable);
90
+ }
91
+
92
+ .gxg-title-04--negative {
93
+ font-family: var(--ds-base-font-family-primary);
94
+ font-weight: var(--ds-title-04-font-weight);
95
+ font-size: var(--ds-title-04-font-size);
96
+ letter-spacing: var(--ds-base-font-letter-spacing--comfortable);
97
+ color: var(--ds-base-font-color);
98
+ text-align: start;
99
+ line-height: var(--ds-base-font-line-height--comfortable);
100
+ color: var(--ds-base-font-color--negative);
101
+ }
102
+
103
+ /*Title 05*/
104
+ .gxg-title-05 {
105
+ font-family: var(--ds-base-font-family-primary);
106
+ font-weight: var(--ds-title-05-font-weight);
107
+ font-size: var(--ds-title-05-font-size);
108
+ letter-spacing: var(--ds-base-font-letter-spacing--regular);
109
+ color: var(--ds-base-font-color);
110
+ text-align: start;
111
+ line-height: var(--ds-base-font-line-height--comfortable);
112
+ }
113
+
114
+ .gxg-title-05--negative {
115
+ font-family: var(--ds-base-font-family-primary);
116
+ font-weight: var(--ds-title-05-font-weight);
117
+ font-size: var(--ds-title-05-font-size);
118
+ letter-spacing: var(--ds-base-font-letter-spacing--regular);
119
+ color: var(--ds-base-font-color);
120
+ text-align: start;
121
+ line-height: var(--ds-base-font-line-height--comfortable);
122
+ color: var(--ds-base-font-color--negative);
123
+ }
124
+
125
+ /*Text*/
126
+ .gxg-text {
127
+ font-family: var(--ds-base-font-family-primary);
128
+ font-size: var(--ds-base-font-size);
129
+ color: var(--ds-base-font-size-color);
130
+ font-weight: var(--ds-base-font-size-weight);
131
+ line-height: var(--ds-base-font-line-height--comfortable);
132
+ }
133
+
134
+ .gxg-text--negative {
135
+ font-family: var(--ds-base-font-family-primary);
136
+ font-size: var(--ds-base-font-size);
137
+ color: var(--ds-base-font-size-color);
138
+ font-weight: var(--ds-base-font-size-weight);
139
+ line-height: var(--ds-base-font-line-height--comfortable);
140
+ color: var(--ds-base-font-color--negative);
141
+ }
142
+
143
+ .gxg-text--gray {
144
+ font-family: var(--ds-base-font-family-primary);
145
+ font-size: var(--ds-base-font-size);
146
+ color: var(--ds-base-font-size-color);
147
+ font-weight: var(--ds-base-font-size-weight);
148
+ line-height: var(--ds-base-font-line-height--comfortable);
149
+ color: var(--ds-base-font-color--dimmed);
150
+ }
151
+
152
+ /*Quote*/
153
+ .gxg-quote {
154
+ font-family: var(--ds-base-font-family-primary);
155
+ font-size: var(--ds-base-font-size);
156
+ color: var(--ds-base-font-size-color);
157
+ font-weight: var(--ds-base-font-size-weight);
158
+ line-height: var(--ds-base-font-line-height--comfortable);
159
+ font-style: italic;
160
+ }
161
+
162
+ .gxg-quote--negative {
163
+ color: var(--ds-base-font-color--negative);
164
+ }
165
+
166
+ /*Link*/
167
+ .gxg-link {
168
+ line-height: unset;
169
+ font-family: var(--ds-base-font-family-primary);
170
+ font-size: var(--ds-base-font-size);
171
+ color: var(--ds-base-font-size-color);
172
+ font-weight: var(--ds-base-font-size-weight);
173
+ line-height: var(--ds-base-font-line-height--comfortable);
174
+ color: var(--ds-base-font-color--link);
175
+ text-decoration: underline;
176
+ cursor: pointer;
177
+ display: inline-block;
178
+ }
179
+ .gxg-link:hover {
180
+ color: var(--ds-base-font-color--link-hover);
181
+ }
182
+ .gxg-link:active {
183
+ color: var(--ds-base-font-color--link-active);
184
+ }
185
+
186
+ .gxg-link-gray {
187
+ line-height: unset;
188
+ font-family: var(--ds-base-font-family-primary);
189
+ font-size: var(--ds-base-font-size);
190
+ color: var(--ds-base-font-size-color);
191
+ font-weight: var(--ds-base-font-size-weight);
192
+ line-height: var(--ds-base-font-line-height--comfortable);
193
+ color: var(--ds-base-font-color--link);
194
+ text-decoration: underline;
195
+ cursor: pointer;
196
+ display: inline-block;
197
+ color: var(--ds-base-font-color--dimmed);
198
+ }
199
+ .gxg-link-gray:hover {
200
+ line-height: unset;
201
+ font-family: var(--ds-base-font-family-primary);
202
+ font-size: var(--ds-base-font-size);
203
+ color: var(--ds-base-font-size-color);
204
+ font-weight: var(--ds-base-font-size-weight);
205
+ line-height: var(--ds-base-font-line-height--comfortable);
206
+ color: var(--ds-base-font-color--link);
207
+ text-decoration: underline;
208
+ cursor: pointer;
209
+ display: inline-block;
210
+ color: var(--ds-base-font-color--dimmed);
211
+ filter: brightness(1.4);
212
+ }
213
+
214
+ /*Alerts*/
215
+ .gxg-alert-error {
216
+ font-family: var(--ds-base-font-family-primary);
217
+ font-size: var(--ds-base-font-size);
218
+ color: var(--ds-base-font-size-color);
219
+ font-weight: var(--ds-base-font-size-weight);
220
+ line-height: var(--ds-base-font-line-height--comfortable);
221
+ color: var(--ds-base-font-color--error);
222
+ display: inline-block;
223
+ }
224
+
225
+ .gxg-alert-warning {
226
+ font-family: var(--ds-base-font-family-primary);
227
+ font-size: var(--ds-base-font-size);
228
+ color: var(--ds-base-font-size-color);
229
+ font-weight: var(--ds-base-font-size-weight);
230
+ line-height: var(--ds-base-font-line-height--comfortable);
231
+ color: var(--ds-base-font-color--warning);
232
+ display: inline-block;
233
+ }
234
+
235
+ .gxg-alert-success {
236
+ font-family: var(--ds-base-font-family-primary);
237
+ font-size: var(--ds-base-font-size);
238
+ color: var(--ds-base-font-size-color);
239
+ font-weight: var(--ds-base-font-size-weight);
240
+ line-height: var(--ds-base-font-line-height--comfortable);
241
+ color: var(--ds-base-font-color--success);
242
+ display: inline-block;
243
+ }
244
+
245
+ /*Tab*/
246
+ .gxg-tab--disabled {
247
+ color: var(--color-primary-disabled);
248
+ pointer-events: none;
249
+ }
250
+ .gxg-tab--disabled[disabled] {
251
+ color: var(--color-primary-disabled);
252
+ pointer-events: none;
253
+ }
254
+
255
+ /*Label*/
256
+ .gxg-label {
257
+ font-family: var(--ds-base-font-family-primary);
258
+ font-weight: var(--gxg-label-font-weight);
259
+ font-size: var(--gxg-label-font-size);
260
+ color: var(--gxg-label-color);
261
+ text-align: center;
262
+ line-height: 1.455em;
263
+ display: flex;
264
+ align-items: center;
265
+ }
266
+ .gxg-label:hover {
267
+ color: var(--color-primary-hover);
268
+ }
269
+ .gxg-label:focus {
270
+ color: var(--color-primary-active);
271
+ }
272
+ .gxg-label:active {
273
+ color: var(--color-primary-active);
274
+ }
275
+ .gxg-label[disabled] {
276
+ color: var(--color-primary-disabled);
277
+ }
278
+
279
+ .gxg-label--negative {
280
+ color: var(--color-on-primary);
281
+ }
282
+ .gxg-label--negative[disabled] {
283
+ color: var(--color-on-disabled);
284
+ }
285
+
286
+ /*****************************************************
287
+ GXG-BUTTON and GXG-BUTTON-GROUP COMMON STYLES
288
+ *****************************************************/
289
+ /*****************************************************
290
+ FORM ELEMENTS
291
+ *****************************************************/
292
+ .gxg-scrollbar {
293
+ /* Track */
294
+ /* Handle */
295
+ /* Handle on hover */
296
+ }
297
+ .gxg-scrollbar::-webkit-scrollbar {
298
+ width: var(--gxg-scrollbar-width);
299
+ height: var(--gxg-scrollbar-width);
300
+ }
301
+ .gxg-scrollbar::-webkit-scrollbar-track {
302
+ background-color: var(--gxg-scrollbar-track-background);
303
+ border-radius: var(--gxg-scrollbar-track-border-radius);
304
+ }
305
+ .gxg-scrollbar::-webkit-scrollbar-thumb {
306
+ background-color: var(--gxg-scrollbar-track-thumb-background);
307
+ border-radius: var(--gxg-scrollbar-track-thumb-radius);
308
+ }
309
+ .gxg-scrollbar::-webkit-scrollbar-thumb:hover {
310
+ background-color: var(--gxg-scrollbar-track-thumb-hover-background);
311
+ }
312
+ .gxg-scrollbar::-webkit-scrollbar-corner {
313
+ background: rgba(0, 0, 0, 0);
314
+ }
315
+
316
+ /*Gx Ide*/
317
+ /*@container queries*/
318
+ /* hiChar styles
319
+ Found on /common/helpers.tsx hiChar function is used to add a span/class to every character that matches a search value. It is used to help the user see why the filter results are filtered. The span/class on the characters are useless without proper styling.
320
+ */
321
+ /* Helper Classes */
322
+ .gxi-hidden {
323
+ display: none !important;
324
+ }
325
+
326
+ .gxi-full-height {
327
+ height: 100%;
328
+ }
329
+
330
+ .gxi-overflow-auto {
331
+ overflow: auto;
332
+ }
333
+
334
+ .gxi-display-flex {
335
+ display: flex;
336
+ }
337
+
338
+ .align-start {
339
+ display: flex;
340
+ align-items: start;
341
+ }
342
+
343
+ .align-center {
344
+ display: flex;
345
+ align-items: center;
346
+ }
347
+
348
+ .align-end {
349
+ display: flex;
350
+ align-items: end;
351
+ }
352
+
353
+ .overflow-auto {
354
+ overflow: auto;
355
+ }
356
+
357
+ .justify-start {
358
+ display: flex;
359
+ justify-content: start;
360
+ }
361
+
362
+ .justify-center {
363
+ display: flex;
364
+ justify-content: center;
365
+ }
366
+
367
+ .justify-end {
368
+ display: flex;
369
+ justify-content: end;
370
+ }
371
+
372
+ /* Grids */
373
+ .grid {
374
+ display: grid;
375
+ grid-row-gap: var(--gx-ide-grid-row-gap);
376
+ grid-column-gap: var(--gx-ide-grid-column-gap);
377
+ grid-template-rows: auto;
378
+ }
379
+
380
+ ch-grid-cell {
381
+ display: flex;
382
+ }
383
+
384
+ ch-grid {
385
+ overflow: auto;
386
+ height: 100%;
387
+ }
388
+
389
+ ch-grid-column {
390
+ /*to be removed when this works inside a component with shadow: true*/
391
+ z-index: 99;
392
+ border-bottom: 1px solid var(--mer-color__neutral-gray--800);
393
+ }
394
+
395
+ ch-grid-column:first-child {
396
+ padding-inline-start: var(--gx-ide-container__padding) !important;
397
+ }
398
+
399
+ ch-grid-column:last-child {
400
+ padding-inline-end: var(--gx-ide-container__padding) !important;
401
+ }
402
+
403
+ ch-grid-cell {
404
+ --mer-spacing--xs: var(--gx-ide-container__padding);
405
+ }
406
+
407
+ /*--- Layout ---*/
408
+ .layout {
409
+ display: grid;
410
+ gap: var(--mer-spacing--lg);
411
+ box-sizing: border-box;
412
+ }
413
+ .layout--two-cols {
414
+ grid-template-columns: 1fr 1fr;
415
+ }
416
+ .layout--space-above {
417
+ padding-block-start: var(--mer-spacing--lg);
418
+ }
419
+
420
+ /*Gxg Tabs*/
421
+ gxg-tabs {
422
+ box-shadow: none;
423
+ }
424
+
425
+ /*All components Host should have this class set. !important is set on every rule, since this styles could be overridden by the host user, since they are applied on the host component*/
426
+ :host(.gx-ide-component) {
427
+ height: 100% !important;
428
+ display: flex !important;
429
+ flex-direction: column !important;
430
+ }
431
+
432
+ /*stylize the top bar*/
433
+ :host(:focus-within) gx-ide-top-bar::part(wrapper) {
434
+ background-color: var(--color-secondary-enabled);
435
+ }
436
+
437
+ /* Main wrapper (should be the first element inside the host. Everything should be inside .gx-ide-main-wrapper) */
438
+ .gx-ide-main-wrapper {
439
+ color: var(--gx-ide-component-text-color);
440
+ font-weight: var(--mer-font__weight--regular);
441
+ font-size: var(--mer-font__size--xs);
442
+ font-family: var(--mer-font-family--primary);
443
+ height: 100%;
444
+ background-color: var(--gx-ide-component-background-color);
445
+ display: flex;
446
+ flex-direction: column;
447
+ flex-grow: 1;
448
+ box-sizing: border-box;
449
+ }
450
+
451
+ /*This is the main element. This is the one that take the remaining vertical space*/
452
+ .gx-ide-main {
453
+ flex-grow: 1;
454
+ overflow-y: auto;
455
+ /* Track */
456
+ /* Handle */
457
+ /* Handle on hover */
458
+ }
459
+ .gx-ide-main::-webkit-scrollbar {
460
+ width: var(--gxg-scrollbar-width);
461
+ height: var(--gxg-scrollbar-width);
462
+ }
463
+ .gx-ide-main::-webkit-scrollbar-track {
464
+ background-color: var(--gxg-scrollbar-track-background);
465
+ border-radius: var(--gxg-scrollbar-track-border-radius);
466
+ }
467
+ .gx-ide-main::-webkit-scrollbar-thumb {
468
+ background-color: var(--gxg-scrollbar-track-thumb-background);
469
+ border-radius: var(--gxg-scrollbar-track-thumb-radius);
470
+ }
471
+ .gx-ide-main::-webkit-scrollbar-thumb:hover {
472
+ background-color: var(--gxg-scrollbar-track-thumb-hover-background);
473
+ }
474
+ .gx-ide-main::-webkit-scrollbar-corner {
475
+ background: rgba(0, 0, 0, 0);
476
+ }
477
+
478
+ .gx-ide-overflow {
479
+ overflow-y: auto;
480
+ /* Track */
481
+ /* Handle */
482
+ /* Handle on hover */
483
+ }
484
+ .gx-ide-overflow::-webkit-scrollbar {
485
+ width: var(--gxg-scrollbar-width);
486
+ height: var(--gxg-scrollbar-width);
487
+ }
488
+ .gx-ide-overflow::-webkit-scrollbar-track {
489
+ background-color: var(--gxg-scrollbar-track-background);
490
+ border-radius: var(--gxg-scrollbar-track-border-radius);
491
+ }
492
+ .gx-ide-overflow::-webkit-scrollbar-thumb {
493
+ background-color: var(--gxg-scrollbar-track-thumb-background);
494
+ border-radius: var(--gxg-scrollbar-track-thumb-radius);
495
+ }
496
+ .gx-ide-overflow::-webkit-scrollbar-thumb:hover {
497
+ background-color: var(--gxg-scrollbar-track-thumb-hover-background);
498
+ }
499
+ .gx-ide-overflow::-webkit-scrollbar-corner {
500
+ background: rgba(0, 0, 0, 0);
501
+ }
502
+
503
+ /*gxg-tree-view*/
504
+ .tree-container {
505
+ display: flex;
506
+ height: 100%;
507
+ width: 100%;
508
+ box-sizing: border-box;
509
+ }
510
+
511
+ p {
512
+ margin: 0;
513
+ }
514
+
515
+ /*Gx Ide*/
516
+ /*@container queries*/
517
+ /* hiChar styles
518
+ Found on /common/helpers.tsx hiChar function is used to add a span/class to every character that matches a search value. It is used to help the user see why the filter results are filtered. The span/class on the characters are useless without proper styling.
519
+ */
520
+ :host {
521
+ display: block;
522
+ }
523
+
524
+ .options {
525
+ max-width: 50%;
526
+ display: flex;
527
+ flex-direction: column;
528
+ gap: var(--gx-ide-form-items-gap);
529
+ }
530
+
531
+ .message-item {
532
+ display: flex;
533
+ align-items: start;
534
+ gap: var(--mer-spacing--xs);
535
+ }
@@ -0,0 +1,173 @@
1
+ /* STENCIL IMPORTS */
2
+ import { Host, h } from "@stencil/core";
3
+ /* OTHER LIBRARIES IMPORTS */
4
+ /* CUSTOM IMPORTS */
5
+ import { config } from "../../common/config";
6
+ import { Locale } from "../../common/locale";
7
+ export class GxIdeWFSettings {
8
+ constructor() {
9
+ this.renderedFirstTime = false;
10
+ // 7.LISTENERS //
11
+ // 8.PUBLIC METHODS API //
12
+ // 9.LOCAL METHODS //
13
+ this.cancelHandler = () => {
14
+ if (this.cancelCallback) {
15
+ this.cancelCallback();
16
+ }
17
+ };
18
+ this.saveCallbackHandler = () => {
19
+ if (this.saveCallback) {
20
+ const wfConfigData = {
21
+ installClient: this.installGxFlowEl.checked,
22
+ futureUpgrades: this.futureUpgradesEl.value
23
+ };
24
+ this.saveCallback(wfConfigData);
25
+ }
26
+ };
27
+ this.displayTitle = false;
28
+ this.configurationType = "installation";
29
+ this.saveCallback = undefined;
30
+ this.cancelCallback = undefined;
31
+ }
32
+ // 6.COMPONENT LIFECYCLE METHODS //
33
+ async componentWillLoad() {
34
+ this._componentLocale = await Locale.getComponentStrings(this.el);
35
+ }
36
+ componentDidRender() {
37
+ if (!this.renderedFirstTime) {
38
+ this.componentDidRenderFirstTime.emit(this._componentLocale.componentName);
39
+ this.renderedFirstTime = true;
40
+ }
41
+ }
42
+ // 10.RENDER() FUNCTION //
43
+ render() {
44
+ return (h(Host, { class: "gx-ide-component" }, h("div", { class: "gx-ide-main-wrapper" }, h("gx-ide-container", { containerTitle: this.displayTitle ? this._componentLocale.componentName : null, slimmerFooter: config.gxIdeContainer.slimmerFooter }, "gx-ide-top", h("div", { class: "message-item" }, h("gxg-icon", { type: "gx-server/changes-commit-pending", color: "auto", size: "small" }), h("gxg-text", null, this._componentLocale.description[this.configurationType])), h("div", { class: "options" }, h("gxg-form-checkbox", { label: this._componentLocale.installGxFlow, ref: el => (this.installGxFlowEl = el) }), h("gxg-combo-box", { class: "upgrades-options", label: this._componentLocale.manageUpgrades, disableFilter: true, ref: el => (this.futureUpgradesEl = el) }, h("gxg-combo-box-item", { value: "automatic" }, this._componentLocale.upgradesOptions[0]), h("gxg-combo-box-item", { value: "prompt" }, this._componentLocale.upgradesOptions[1]), h("gxg-combo-box-item", { value: "never" }, this._componentLocale.upgradesOptions[2]))), h("gxg-text", { textAlign: "end", type: "text-regular" }, this._componentLocale.prompt[this.configurationType]), h("gxg-button", { slot: "footer-end", type: "outlined", onClick: this.cancelHandler }, "Cancel"), h("gxg-button", { slot: "footer-end", onClick: this.saveCallbackHandler }, this._componentLocale.footer.confirmButton[this.configurationType])))));
45
+ }
46
+ static get is() { return "gx-ide-wf-settings"; }
47
+ static get encapsulation() { return "shadow"; }
48
+ static get originalStyleUrls() {
49
+ return {
50
+ "$": ["wf-settings.scss"]
51
+ };
52
+ }
53
+ static get styleUrls() {
54
+ return {
55
+ "$": ["wf-settings.css"]
56
+ };
57
+ }
58
+ static get assetsDirs() { return ["gx-ide-assets/wf-settings"]; }
59
+ static get properties() {
60
+ return {
61
+ "displayTitle": {
62
+ "type": "boolean",
63
+ "mutable": false,
64
+ "complexType": {
65
+ "original": "false",
66
+ "resolved": "boolean",
67
+ "references": {}
68
+ },
69
+ "required": false,
70
+ "optional": false,
71
+ "docs": {
72
+ "tags": [],
73
+ "text": "If true it displays the component title on the header"
74
+ },
75
+ "attribute": "display-title",
76
+ "reflect": false,
77
+ "defaultValue": "false"
78
+ },
79
+ "configurationType": {
80
+ "type": "string",
81
+ "mutable": false,
82
+ "complexType": {
83
+ "original": "ConfigurationType",
84
+ "resolved": "\"installation\" | \"update\"",
85
+ "references": {
86
+ "ConfigurationType": {
87
+ "location": "local",
88
+ "path": "/home/runner/work/genexus-ide-ui/genexus-ide-ui/src/components/wf-settings/wf-settings.tsx",
89
+ "id": "src/components/wf-settings/wf-settings.tsx::ConfigurationType"
90
+ }
91
+ }
92
+ },
93
+ "required": false,
94
+ "optional": false,
95
+ "docs": {
96
+ "tags": [],
97
+ "text": "The configuration type"
98
+ },
99
+ "attribute": "configuration-type",
100
+ "reflect": false,
101
+ "defaultValue": "\"installation\""
102
+ },
103
+ "saveCallback": {
104
+ "type": "unknown",
105
+ "mutable": false,
106
+ "complexType": {
107
+ "original": "(config: WFConfigData) => Promise<void>",
108
+ "resolved": "(config: WFConfigData) => Promise<void>",
109
+ "references": {
110
+ "WFConfigData": {
111
+ "location": "local",
112
+ "path": "/home/runner/work/genexus-ide-ui/genexus-ide-ui/src/components/wf-settings/wf-settings.tsx",
113
+ "id": "src/components/wf-settings/wf-settings.tsx::WFConfigData"
114
+ },
115
+ "Promise": {
116
+ "location": "global",
117
+ "id": "global::Promise"
118
+ }
119
+ }
120
+ },
121
+ "required": false,
122
+ "optional": false,
123
+ "docs": {
124
+ "tags": [],
125
+ "text": "Callback invoked when the user presses the 'OK' button. As a parameter, it receives the data entered by the user"
126
+ }
127
+ },
128
+ "cancelCallback": {
129
+ "type": "unknown",
130
+ "mutable": false,
131
+ "complexType": {
132
+ "original": "() => Promise<void>",
133
+ "resolved": "() => Promise<void>",
134
+ "references": {
135
+ "Promise": {
136
+ "location": "global",
137
+ "id": "global::Promise"
138
+ }
139
+ }
140
+ },
141
+ "required": false,
142
+ "optional": false,
143
+ "docs": {
144
+ "tags": [],
145
+ "text": "Callback invoked when the user presses the 'Cancel' button."
146
+ }
147
+ }
148
+ };
149
+ }
150
+ static get events() {
151
+ return [{
152
+ "method": "componentDidRenderFirstTime",
153
+ "name": "componentDidRenderFirstTime",
154
+ "bubbles": true,
155
+ "cancelable": true,
156
+ "composed": true,
157
+ "docs": {
158
+ "tags": [{
159
+ "name": "description",
160
+ "text": "Gets fired when the component has rendered for the first time."
161
+ }],
162
+ "text": ""
163
+ },
164
+ "complexType": {
165
+ "original": "string",
166
+ "resolved": "string",
167
+ "references": {}
168
+ }
169
+ }];
170
+ }
171
+ static get elementRef() { return "el"; }
172
+ }
173
+ //# sourceMappingURL=wf-settings.js.map