dts-backoffice-util 2.8.0 → 3.0.0

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 (58) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/README.md +53 -10
  3. package/bundles/dts-backoffice-util.umd.js +477 -1127
  4. package/bundles/dts-backoffice-util.umd.js.map +1 -1
  5. package/bundles/dts-backoffice-util.umd.min.js +1 -1
  6. package/bundles/dts-backoffice-util.umd.min.js.map +1 -1
  7. package/esm2015/dts-backoffice-util.js +3 -2
  8. package/esm2015/lib/components/totvs-schedule-execution/totvs-schedule-execution.component.js +3 -2
  9. package/esm2015/lib/components/totvs-schedule-execution/totvs-schedule-execution.model.js +3 -2
  10. package/esm2015/lib/components/totvs-schedule-execution/totvs-schedule-execution.service.js +3 -2
  11. package/esm2015/lib/dts-backoffice-util.module.js +3 -2
  12. package/esm2015/lib/interfaces/filter-range.interface.js +3 -2
  13. package/esm2015/lib/interfaces/totvs-response.interface.js +3 -2
  14. package/esm2015/lib/model/session-info.model.js +3 -2
  15. package/esm2015/lib/pipes/dts-date-format.pipe.js +3 -2
  16. package/esm2015/lib/services/breadcrumb-control.service.js +3 -2
  17. package/esm2015/lib/services/cache-params.service.js +3 -2
  18. package/esm2015/lib/services/menu-datasul.service.js +3 -2
  19. package/esm2015/lib/services/profile.service.js +3 -2
  20. package/esm2015/lib/services/report.service.js +7 -6
  21. package/esm2015/lib/services/session-info.service.js +3 -2
  22. package/esm2015/lib/services/translate.service.js +3 -2
  23. package/esm2015/lib/utils/date.util.js +3 -2
  24. package/esm2015/lib/utils/disclaimer.util.js +3 -2
  25. package/esm2015/lib/utils/field-validation.util.js +3 -2
  26. package/esm2015/lib/utils/file.util.js +21 -10
  27. package/esm2015/lib/utils/filter-range.util.js +3 -2
  28. package/esm2015/lib/utils/generic-functions.utils.js +3 -2
  29. package/esm2015/public-api.js +3 -2
  30. package/fesm2015/dts-backoffice-util.js +66 -34
  31. package/fesm2015/dts-backoffice-util.js.map +1 -1
  32. package/lib/utils/file.util.d.ts +1 -1
  33. package/package.json +8 -7
  34. package/esm5/dts-backoffice-util.js +0 -9
  35. package/esm5/lib/components/totvs-schedule-execution/totvs-schedule-execution.component.js +0 -448
  36. package/esm5/lib/components/totvs-schedule-execution/totvs-schedule-execution.model.js +0 -143
  37. package/esm5/lib/components/totvs-schedule-execution/totvs-schedule-execution.service.js +0 -434
  38. package/esm5/lib/dts-backoffice-util.module.js +0 -53
  39. package/esm5/lib/interfaces/filter-range.interface.js +0 -47
  40. package/esm5/lib/interfaces/totvs-response.interface.js +0 -16
  41. package/esm5/lib/model/session-info.model.js +0 -239
  42. package/esm5/lib/pipes/dts-date-format.pipe.js +0 -36
  43. package/esm5/lib/services/breadcrumb-control.service.js +0 -157
  44. package/esm5/lib/services/cache-params.service.js +0 -61
  45. package/esm5/lib/services/menu-datasul.service.js +0 -92
  46. package/esm5/lib/services/profile.service.js +0 -146
  47. package/esm5/lib/services/report.service.js +0 -137
  48. package/esm5/lib/services/session-info.service.js +0 -64
  49. package/esm5/lib/services/translate.service.js +0 -47
  50. package/esm5/lib/utils/date.util.js +0 -135
  51. package/esm5/lib/utils/disclaimer.util.js +0 -930
  52. package/esm5/lib/utils/field-validation.util.js +0 -358
  53. package/esm5/lib/utils/file.util.js +0 -251
  54. package/esm5/lib/utils/filter-range.util.js +0 -69
  55. package/esm5/lib/utils/generic-functions.utils.js +0 -358
  56. package/esm5/public-api.js +0 -37
  57. package/fesm5/dts-backoffice-util.js +0 -3933
  58. package/fesm5/dts-backoffice-util.js.map +0 -1
@@ -1,14 +1,18 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('rxjs'), require('rxjs/operators'), require('@po-ui/ng-components'), require('@angular/forms'), require('@angular/common')) :
3
3
  typeof define === 'function' && define.amd ? define('dts-backoffice-util', ['exports', '@angular/core', '@angular/common/http', 'rxjs', 'rxjs/operators', '@po-ui/ng-components', '@angular/forms', '@angular/common'], factory) :
4
- (global = global || self, factory(global['dts-backoffice-util'] = {}, global.ng.core, global.ng.common.http, global.rxjs, global.rxjs.operators, global.ngComponents, global.ng.forms, global.ng.common));
5
- }(this, (function (exports, core, http, rxjs, operators, ngComponents, forms, common) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['dts-backoffice-util'] = {}, global.ng.core, global.ng.common.http, global.rxjs, global.rxjs.operators, global.ngComponents, global.ng.forms, global.ng.common));
5
+ }(this, (function (exports, i0, i1, rxjs, operators, ngComponents, forms, common) { 'use strict';
6
6
 
7
7
  /**
8
8
  * @fileoverview added by tsickle
9
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9
+ * Generated from: lib/services/session-info.service.ts
10
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10
11
  */
11
12
  var UserLoginService = /** @class */ (function () {
13
+ /**
14
+ * @param {?} http
15
+ */
12
16
  function UserLoginService(http) {
13
17
  this.http = http;
14
18
  this.apiUrl = '/totvs-menu/rest/getSessionInfo';
@@ -17,10 +21,7 @@
17
21
  /**
18
22
  * @return {?}
19
23
  */
20
- UserLoginService.prototype.getUserLogin = /**
21
- * @return {?}
22
- */
23
- function () {
24
+ UserLoginService.prototype.getUserLogin = function () {
24
25
  var _this = this;
25
26
  if (localStorage.getItem('username')) {
26
27
  return rxjs.of(localStorage.getItem('username'));
@@ -30,28 +31,27 @@
30
31
  }
31
32
  else {
32
33
  return this.http.get("" + this.apiUrl)
33
- .pipe(operators.map((/**
34
- * @param {?} response
35
- * @return {?}
36
- */
37
- function (response) {
34
+ .pipe(operators.map(( /**
35
+ * @param {?} response
36
+ * @return {?}
37
+ */function (response) {
38
38
  _this.userLogin = response.userName;
39
39
  return response.userName;
40
40
  })));
41
41
  }
42
42
  };
43
- UserLoginService.decorators = [
44
- { type: core.Injectable, args: [{
45
- providedIn: 'root'
46
- },] }
47
- ];
48
- /** @nocollapse */
49
- UserLoginService.ctorParameters = function () { return [
50
- { type: http.HttpClient }
51
- ]; };
52
- /** @nocollapse */ UserLoginService.ɵprov = core.ɵɵdefineInjectable({ factory: function UserLoginService_Factory() { return new UserLoginService(core.ɵɵinject(http.HttpClient)); }, token: UserLoginService, providedIn: "root" });
53
43
  return UserLoginService;
54
44
  }());
45
+ UserLoginService.decorators = [
46
+ { type: i0.Injectable, args: [{
47
+ providedIn: 'root'
48
+ },] }
49
+ ];
50
+ /** @nocollapse */
51
+ UserLoginService.ctorParameters = function () { return [
52
+ { type: i1.HttpClient }
53
+ ]; };
54
+ /** @nocollapse */ UserLoginService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserLoginService_Factory() { return new UserLoginService(i0.ɵɵinject(i1.HttpClient)); }, token: UserLoginService, providedIn: "root" });
55
55
  if (false) {
56
56
  /** @type {?} */
57
57
  UserLoginService.prototype.apiUrl;
@@ -63,7 +63,8 @@
63
63
 
64
64
  /**
65
65
  * @fileoverview added by tsickle
66
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
66
+ * Generated from: lib/services/profile.service.ts
67
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
67
68
  */
68
69
  /**
69
70
  * @record
@@ -99,6 +100,9 @@
99
100
  EDataType[EDataType.STRING] = 'STRING';
100
101
  EDataType[EDataType.JSON] = 'JSON';
101
102
  var ProfileService = /** @class */ (function () {
103
+ /**
104
+ * @param {?} http
105
+ */
102
106
  function ProfileService(http) {
103
107
  this.http = http;
104
108
  this.apiURL = '/dts/datasul-rest/resources/api/btb/btapi930za';
@@ -107,11 +111,7 @@
107
111
  * @param {?} profile
108
112
  * @return {?}
109
113
  */
110
- ProfileService.prototype.setProfile = /**
111
- * @param {?} profile
112
- * @return {?}
113
- */
114
- function (profile) {
114
+ ProfileService.prototype.setProfile = function (profile) {
115
115
  /** @type {?} */
116
116
  var headers = { 'X-PO-Screen-Lock': 'true' };
117
117
  var pageId = profile.pageId, userCode = profile.userCode;
@@ -123,12 +123,7 @@
123
123
  * @param {?=} showLoading
124
124
  * @return {?}
125
125
  */
126
- ProfileService.prototype.getProfileAsString = /**
127
- * @param {?} profile
128
- * @param {?=} showLoading
129
- * @return {?}
130
- */
131
- function (profile, showLoading) {
126
+ ProfileService.prototype.getProfileAsString = function (profile, showLoading) {
132
127
  return this.getProfile(profile, EDataType.STRING, showLoading ? 'true' : 'false');
133
128
  };
134
129
  /**
@@ -136,12 +131,7 @@
136
131
  * @param {?=} showLoading
137
132
  * @return {?}
138
133
  */
139
- ProfileService.prototype.getProfileAsJSON = /**
140
- * @param {?} profile
141
- * @param {?=} showLoading
142
- * @return {?}
143
- */
144
- function (profile, showLoading) {
134
+ ProfileService.prototype.getProfileAsJSON = function (profile, showLoading) {
145
135
  return this.getProfile(profile, EDataType.JSON, showLoading ? 'true' : 'false');
146
136
  };
147
137
  /**
@@ -151,24 +141,19 @@
151
141
  * @param {?=} showLoading
152
142
  * @return {?}
153
143
  */
154
- ProfileService.prototype.getProfile = /**
155
- * @private
156
- * @param {?} profile
157
- * @param {?} dataType
158
- * @param {?=} showLoading
159
- * @return {?}
160
- */
161
- function (profile, dataType, showLoading) {
144
+ ProfileService.prototype.getProfile = function (profile, dataType, showLoading) {
162
145
  /** @type {?} */
163
146
  var headers = { 'X-PO-Screen-Lock': showLoading };
164
147
  var pageId = profile.pageId, dataCode = profile.dataCode, userCode = profile.userCode;
165
148
  return this.http
166
149
  .get(this.apiURL + "/getProfile?userCode=" + userCode + "&pageId=" + pageId + "&dataCode=" + dataCode, { headers: headers })
167
- .pipe(operators.map((/**
168
- * @param {?} preference
169
- * @return {?}
170
- */
171
- function (preference) {
150
+ .pipe(operators.map(( /**
151
+ * @param {?} preference
152
+ * @return {?}
153
+ */function (/**
154
+ * @param {?} preference
155
+ * @return {?}
156
+ */ preference) {
172
157
  if (preference.data[0]) {
173
158
  if (dataType === EDataType.STRING) {
174
159
  return preference.data[0].dataValue;
@@ -182,18 +167,18 @@
182
167
  }
183
168
  })));
184
169
  };
185
- ProfileService.decorators = [
186
- { type: core.Injectable, args: [{
187
- providedIn: 'root'
188
- },] }
189
- ];
190
- /** @nocollapse */
191
- ProfileService.ctorParameters = function () { return [
192
- { type: http.HttpClient }
193
- ]; };
194
- /** @nocollapse */ ProfileService.ɵprov = core.ɵɵdefineInjectable({ factory: function ProfileService_Factory() { return new ProfileService(core.ɵɵinject(http.HttpClient)); }, token: ProfileService, providedIn: "root" });
195
170
  return ProfileService;
196
171
  }());
172
+ ProfileService.decorators = [
173
+ { type: i0.Injectable, args: [{
174
+ providedIn: 'root'
175
+ },] }
176
+ ];
177
+ /** @nocollapse */
178
+ ProfileService.ctorParameters = function () { return [
179
+ { type: i1.HttpClient }
180
+ ]; };
181
+ /** @nocollapse */ ProfileService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProfileService_Factory() { return new ProfileService(i0.ɵɵinject(i1.HttpClient)); }, token: ProfileService, providedIn: "root" });
197
182
  if (false) {
198
183
  /** @type {?} */
199
184
  ProfileService.prototype.apiURL;
@@ -203,7 +188,8 @@
203
188
 
204
189
  /**
205
190
  * @fileoverview added by tsickle
206
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
191
+ * Generated from: lib/services/report.service.ts
192
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
207
193
  */
208
194
  /**
209
195
  * @record
@@ -237,12 +223,15 @@
237
223
  }
238
224
  /** @enum {string} */
239
225
  var ReportFormats = {
240
- XLSX: 'xlsx',
241
- PDF: 'pdf',
242
- DOCX: 'docx',
243
- HTML: 'html',
226
+ XLSX: "xlsx",
227
+ PDF: "pdf",
228
+ DOCX: "docx",
229
+ HTML: "html",
244
230
  };
245
231
  var ReportService = /** @class */ (function () {
232
+ /**
233
+ * @param {?} httpClient
234
+ */
246
235
  function ReportService(httpClient) {
247
236
  this.httpClient = httpClient;
248
237
  this.URL = window.location.href.indexOf('totvs-menu') > 0 ? '/totvs-menu/rest/report/run/'
@@ -253,12 +242,7 @@
253
242
  * @param {?=} showLoading
254
243
  * @return {?}
255
244
  */
256
- ReportService.prototype.generate = /**
257
- * @param {?} params
258
- * @param {?=} showLoading
259
- * @return {?}
260
- */
261
- function (params, showLoading) {
245
+ ReportService.prototype.generate = function (params, showLoading) {
262
246
  var _this = this;
263
247
  if (showLoading === void 0) { showLoading = true; }
264
248
  /** @type {?} */
@@ -267,12 +251,11 @@
267
251
  var reportURL = "" + this.URL + params.reportName;
268
252
  if (params.properties.length > 0) {
269
253
  reportURL += '?';
270
- params.properties.forEach((/**
254
+ params.properties.forEach(( /**
271
255
  * @param {?} property
272
256
  * @param {?} index
273
257
  * @return {?}
274
- */
275
- function (property, index) {
258
+ */function (property, index) {
276
259
  if (index > 0) {
277
260
  reportURL += '&';
278
261
  }
@@ -282,11 +265,13 @@
282
265
  reportURL += "&dialect=" + params.dialect + "&format=" + params.format;
283
266
  reportURL += "&program=" + params.programName + "&resultFileName=" + params.downloadName;
284
267
  return this.httpClient.post(reportURL, {}, { headers: headers, responseType: 'blob' })
285
- .pipe(operators.map((/**
286
- * @param {?} report
287
- * @return {?}
288
- */
289
- function (report) {
268
+ .pipe(operators.map(( /**
269
+ * @param {?} report
270
+ * @return {?}
271
+ */function (/**
272
+ * @param {?} report
273
+ * @return {?}
274
+ */ report) {
290
275
  if (params.download) {
291
276
  _this.download(report, params.downloadName + "." + params.format);
292
277
  }
@@ -298,12 +283,7 @@
298
283
  * @param {?} fileName
299
284
  * @return {?}
300
285
  */
301
- ReportService.prototype.download = /**
302
- * @param {?} file
303
- * @param {?} fileName
304
- * @return {?}
305
- */
306
- function (file, fileName) {
286
+ ReportService.prototype.download = function (file, fileName) {
307
287
  /** @type {?} */
308
288
  var binaryData = [file];
309
289
  /** @type {?} */
@@ -317,15 +297,15 @@
317
297
  window.URL.revokeObjectURL(urlDownload);
318
298
  downloadLink.remove();
319
299
  };
320
- ReportService.decorators = [
321
- { type: core.Injectable }
322
- ];
323
- /** @nocollapse */
324
- ReportService.ctorParameters = function () { return [
325
- { type: http.HttpClient }
326
- ]; };
327
300
  return ReportService;
328
301
  }());
302
+ ReportService.decorators = [
303
+ { type: i0.Injectable }
304
+ ];
305
+ /** @nocollapse */
306
+ ReportService.ctorParameters = function () { return [
307
+ { type: i1.HttpClient }
308
+ ]; };
329
309
  if (false) {
330
310
  /** @type {?} */
331
311
  ReportService.prototype.URL;
@@ -335,7 +315,8 @@
335
315
 
336
316
  /**
337
317
  * @fileoverview added by tsickle
338
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
318
+ * Generated from: lib/services/breadcrumb-control.service.ts
319
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
339
320
  */
340
321
  var BreadcrumbControlService = /** @class */ (function () {
341
322
  function BreadcrumbControlService() {
@@ -343,10 +324,7 @@
343
324
  /**
344
325
  * @return {?}
345
326
  */
346
- BreadcrumbControlService.prototype.newBreadcrumb = /**
347
- * @return {?}
348
- */
349
- function () {
327
+ BreadcrumbControlService.prototype.newBreadcrumb = function () {
350
328
  this.breadcrumb = { items: [] };
351
329
  };
352
330
  /**
@@ -354,12 +332,7 @@
354
332
  * @param {?} activatedRoute
355
333
  * @return {?}
356
334
  */
357
- BreadcrumbControlService.prototype.addBreadcrumb = /**
358
- * @param {?} literal
359
- * @param {?} activatedRoute
360
- * @return {?}
361
- */
362
- function (literal, activatedRoute) {
335
+ BreadcrumbControlService.prototype.addBreadcrumb = function (literal, activatedRoute) {
363
336
  this.addBreadcrumbURL(literal, decodeURIComponent(activatedRoute.snapshot['_routerState'].url));
364
337
  };
365
338
  /**
@@ -367,12 +340,7 @@
367
340
  * @param {?} url
368
341
  * @return {?}
369
342
  */
370
- BreadcrumbControlService.prototype.addBreadcrumbURL = /**
371
- * @param {?} literal
372
- * @param {?} url
373
- * @return {?}
374
- */
375
- function (literal, url) {
343
+ BreadcrumbControlService.prototype.addBreadcrumbURL = function (literal, url) {
376
344
  if (!literal || literal === '') {
377
345
  return;
378
346
  }
@@ -400,13 +368,7 @@
400
368
  * @param {?} valueNew
401
369
  * @return {?}
402
370
  */
403
- BreadcrumbControlService.prototype.updBreadcrumbURL = /**
404
- * @param {?} literal
405
- * @param {?} valueOld
406
- * @param {?} valueNew
407
- * @return {?}
408
- */
409
- function (literal, valueOld, valueNew) {
371
+ BreadcrumbControlService.prototype.updBreadcrumbURL = function (literal, valueOld, valueNew) {
410
372
  /** @type {?} */
411
373
  var currentRouterURL = this.getCurrentRouter();
412
374
  if (!currentRouterURL) {
@@ -424,10 +386,7 @@
424
386
  /**
425
387
  * @return {?}
426
388
  */
427
- BreadcrumbControlService.prototype.getBreadcrumb = /**
428
- * @return {?}
429
- */
430
- function () {
389
+ BreadcrumbControlService.prototype.getBreadcrumb = function () {
431
390
  if (!this.breadcrumb) {
432
391
  this.newBreadcrumb();
433
392
  }
@@ -436,10 +395,7 @@
436
395
  /**
437
396
  * @return {?}
438
397
  */
439
- BreadcrumbControlService.prototype.getCurrentRouter = /**
440
- * @return {?}
441
- */
442
- function () {
398
+ BreadcrumbControlService.prototype.getCurrentRouter = function () {
443
399
  if (!this.breadcrumb) {
444
400
  this.newBreadcrumb();
445
401
  }
@@ -451,10 +407,7 @@
451
407
  /**
452
408
  * @return {?}
453
409
  */
454
- BreadcrumbControlService.prototype.getPrevRouter = /**
455
- * @return {?}
456
- */
457
- function () {
410
+ BreadcrumbControlService.prototype.getPrevRouter = function () {
458
411
  if (!this.breadcrumb) {
459
412
  this.newBreadcrumb();
460
413
  }
@@ -466,19 +419,16 @@
466
419
  /**
467
420
  * @return {?}
468
421
  */
469
- BreadcrumbControlService.prototype.hasPreviousRouter = /**
470
- * @return {?}
471
- */
472
- function () {
422
+ BreadcrumbControlService.prototype.hasPreviousRouter = function () {
473
423
  return this.breadcrumb.items.length > 1;
474
424
  };
475
- BreadcrumbControlService.decorators = [
476
- { type: core.Injectable }
477
- ];
478
- /** @nocollapse */
479
- BreadcrumbControlService.ctorParameters = function () { return []; };
480
425
  return BreadcrumbControlService;
481
426
  }());
427
+ BreadcrumbControlService.decorators = [
428
+ { type: i0.Injectable }
429
+ ];
430
+ /** @nocollapse */
431
+ BreadcrumbControlService.ctorParameters = function () { return []; };
482
432
  if (false) {
483
433
  /** @type {?} */
484
434
  BreadcrumbControlService.prototype.breadcrumb;
@@ -486,16 +436,12 @@
486
436
 
487
437
  /**
488
438
  * @fileoverview added by tsickle
489
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
439
+ * Generated from: lib/services/menu-datasul.service.ts
440
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
490
441
  */
491
442
  var MenuDatasulService = /** @class */ (function () {
492
443
  function MenuDatasulService() {
493
444
  }
494
- /**
495
- * var program = {};
496
- * program['prg'] = "cd0210";
497
- * program['params'] = '01|123456'
498
- */
499
445
  /**
500
446
  * var program = {};
501
447
  * program['prg'] = "cd0210";
@@ -503,22 +449,9 @@
503
449
  * @param {?} program
504
450
  * @return {?}
505
451
  */
506
- MenuDatasulService.prototype.callProgress = /**
507
- * var program = {};
508
- * program['prg'] = "cd0210";
509
- * program['params'] = '01|123456'
510
- * @param {?} program
511
- * @return {?}
512
- */
513
- function (program) {
452
+ MenuDatasulService.prototype.callProgress = function (program) {
514
453
  parent.postMessage({ program: program }, '*');
515
454
  };
516
- /**
517
- * var notification = {};
518
- * notification['type'] = 'success';
519
- * notification['title'] = 'Notification Title'
520
- * notification['detail'] = 'Notification Detail'
521
- */
522
455
  /**
523
456
  * var notification = {};
524
457
  * notification['type'] = 'success';
@@ -527,15 +460,7 @@
527
460
  * @param {?} notification
528
461
  * @return {?}
529
462
  */
530
- MenuDatasulService.prototype.sendNotification = /**
531
- * var notification = {};
532
- * notification['type'] = 'success';
533
- * notification['title'] = 'Notification Title'
534
- * notification['detail'] = 'Notification Detail'
535
- * @param {?} notification
536
- * @return {?}
537
- */
538
- function (notification) {
463
+ MenuDatasulService.prototype.sendNotification = function (notification) {
539
464
  parent.postMessage({ notification: notification }, '*');
540
465
  };
541
466
  /**
@@ -544,13 +469,7 @@
544
469
  * @param {?=} parent
545
470
  * @return {?}
546
471
  */
547
- MenuDatasulService.prototype.openPath = /**
548
- * @param {?} programName
549
- * @param {?} params
550
- * @param {?=} parent
551
- * @return {?}
552
- */
553
- function (programName, params, parent) {
472
+ MenuDatasulService.prototype.openPath = function (programName, params, parent) {
554
473
  if (parent === void 0) { parent = true; }
555
474
  /** @type {?} */
556
475
  var datasulPath = document.referrer.indexOf('totvs-menu') > 0 ? 'totvs-menu' : 'menu-html';
@@ -566,17 +485,18 @@
566
485
  window.open(baseUrl);
567
486
  }
568
487
  };
569
- MenuDatasulService.decorators = [
570
- { type: core.Injectable }
571
- ];
572
- /** @nocollapse */
573
- MenuDatasulService.ctorParameters = function () { return []; };
574
488
  return MenuDatasulService;
575
- }());
489
+ }());
490
+ MenuDatasulService.decorators = [
491
+ { type: i0.Injectable }
492
+ ];
493
+ /** @nocollapse */
494
+ MenuDatasulService.ctorParameters = function () { return []; };
576
495
 
577
496
  /**
578
497
  * @fileoverview added by tsickle
579
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
498
+ * Generated from: lib/services/cache-params.service.ts
499
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
580
500
  */
581
501
  var CacheParamsService = /** @class */ (function () {
582
502
  function CacheParamsService() {
@@ -587,46 +507,33 @@
587
507
  * @param {?} value
588
508
  * @return {?}
589
509
  */
590
- CacheParamsService.prototype.setValue = /**
591
- * @param {?} key
592
- * @param {?} value
593
- * @return {?}
594
- */
595
- function (key, value) {
510
+ CacheParamsService.prototype.setValue = function (key, value) {
596
511
  this.values[key] = value;
597
512
  };
598
513
  /**
599
514
  * @param {?} key
600
515
  * @return {?}
601
516
  */
602
- CacheParamsService.prototype.getValue = /**
603
- * @param {?} key
604
- * @return {?}
605
- */
606
- function (key) {
517
+ CacheParamsService.prototype.getValue = function (key) {
607
518
  return this.values[key];
608
519
  };
609
520
  /**
610
521
  * @param {?} key
611
522
  * @return {?}
612
523
  */
613
- CacheParamsService.prototype.removeValue = /**
614
- * @param {?} key
615
- * @return {?}
616
- */
617
- function (key) {
524
+ CacheParamsService.prototype.removeValue = function (key) {
618
525
  delete this.values[key];
619
526
  };
620
- CacheParamsService.decorators = [
621
- { type: core.Injectable, args: [{
622
- providedIn: 'root'
623
- },] }
624
- ];
625
- /** @nocollapse */
626
- CacheParamsService.ctorParameters = function () { return []; };
627
- /** @nocollapse */ CacheParamsService.ɵprov = core.ɵɵdefineInjectable({ factory: function CacheParamsService_Factory() { return new CacheParamsService(); }, token: CacheParamsService, providedIn: "root" });
628
527
  return CacheParamsService;
629
528
  }());
529
+ CacheParamsService.decorators = [
530
+ { type: i0.Injectable, args: [{
531
+ providedIn: 'root'
532
+ },] }
533
+ ];
534
+ /** @nocollapse */
535
+ CacheParamsService.ctorParameters = function () { return []; };
536
+ /** @nocollapse */ CacheParamsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CacheParamsService_Factory() { return new CacheParamsService(); }, token: CacheParamsService, providedIn: "root" });
630
537
  if (false) {
631
538
  /** @type {?} */
632
539
  CacheParamsService.prototype.values;
@@ -634,7 +541,8 @@
634
541
 
635
542
  /**
636
543
  * @fileoverview added by tsickle
637
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
544
+ * Generated from: lib/services/translate.service.ts
545
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
638
546
  */
639
547
  var TranslateService = /** @class */ (function () {
640
548
  function TranslateService() {
@@ -642,28 +550,19 @@
642
550
  /**
643
551
  * @return {?}
644
552
  */
645
- TranslateService.getSuportLanguage = /**
646
- * @return {?}
647
- */
648
- function () {
553
+ TranslateService.getSuportLanguage = function () {
649
554
  return ['pt-BR', 'pt', 'en-US', 'en', 'es'];
650
555
  };
651
556
  /**
652
557
  * @return {?}
653
558
  */
654
- TranslateService.getDefaultCurrencyCode = /**
655
- * @return {?}
656
- */
657
- function () {
559
+ TranslateService.getDefaultCurrencyCode = function () {
658
560
  return '$';
659
561
  };
660
562
  /**
661
563
  * @return {?}
662
564
  */
663
- TranslateService.getCurrentLanguage = /**
664
- * @return {?}
665
- */
666
- function () {
565
+ TranslateService.getCurrentLanguage = function () {
667
566
  /** @type {?} */
668
567
  var locale = localStorage.getItem('user.language') || navigator.language;
669
568
  if (locale && this.getSuportLanguage().includes(locale)) {
@@ -671,15 +570,16 @@
671
570
  }
672
571
  return 'en-US';
673
572
  };
674
- TranslateService.decorators = [
675
- { type: core.Injectable }
676
- ];
677
573
  return TranslateService;
678
- }());
574
+ }());
575
+ TranslateService.decorators = [
576
+ { type: i0.Injectable }
577
+ ];
679
578
 
680
579
  /**
681
580
  * @fileoverview added by tsickle
682
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
581
+ * Generated from: lib/utils/date.util.ts
582
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
683
583
  */
684
584
  /*
685
585
  Versão: 1.000
@@ -689,17 +589,11 @@
689
589
  function DateUtil() {
690
590
  }
691
591
  /* Transforma data para o padrão YYYY-MM-DD */
692
- /* Transforma data para o padrão YYYY-MM-DD */
693
- /**
694
- * @param {?} date
695
- * @return {?}
696
- */
697
- DateUtil.dateToQueryParam = /* Transforma data para o padrão YYYY-MM-DD */
698
592
  /**
699
593
  * @param {?} date
700
594
  * @return {?}
701
595
  */
702
- function (date) {
596
+ DateUtil.dateToQueryParam = function (date) {
703
597
  /** @type {?} */
704
598
  var iDay = date.getDate();
705
599
  /** @type {?} */
@@ -709,17 +603,11 @@
709
603
  return iYear + "-" + this.pad(iMonth) + "-" + this.pad(iDay);
710
604
  };
711
605
  /* Transforma data no padrão YYYY-MM-DD para DATE */
712
- /* Transforma data no padrão YYYY-MM-DD para DATE */
713
606
  /**
714
607
  * @param {?} param
715
608
  * @return {?}
716
609
  */
717
- DateUtil.queryParamToDate = /* Transforma data no padrão YYYY-MM-DD para DATE */
718
- /**
719
- * @param {?} param
720
- * @return {?}
721
- */
722
- function (param) {
610
+ DateUtil.queryParamToDate = function (param) {
723
611
  /** @type {?} */
724
612
  var iDay = +param.split('-')[2];
725
613
  /** @type {?} */
@@ -729,31 +617,19 @@
729
617
  return new Date(iYear, iMonth - 1, iDay);
730
618
  };
731
619
  /* Valida se foi informado uma data válida */
732
- /* Valida se foi informado uma data válida */
733
620
  /**
734
621
  * @param {?} date
735
622
  * @return {?}
736
623
  */
737
- DateUtil.isValidDate = /* Valida se foi informado uma data válida */
738
- /**
739
- * @param {?} date
740
- * @return {?}
741
- */
742
- function (date) {
624
+ DateUtil.isValidDate = function (date) {
743
625
  return date instanceof Date && !isNaN(date.getTime());
744
626
  };
745
627
  /* Ajusta a data retornando o padrão DATE */
746
- /* Ajusta a data retornando o padrão DATE */
747
628
  /**
748
629
  * @param {?} param
749
630
  * @return {?}
750
631
  */
751
- DateUtil.ajustDate = /* Ajusta a data retornando o padrão DATE */
752
- /**
753
- * @param {?} param
754
- * @return {?}
755
- */
756
- function (param) {
632
+ DateUtil.ajustDate = function (param) {
757
633
  if (param instanceof Date) {
758
634
  return param;
759
635
  }
@@ -763,19 +639,12 @@
763
639
  return this.queryParamToDate(param.split('T')[0]);
764
640
  };
765
641
  /* Ajusta a data para o padrão DATE - utilizada nos construtores dos modelos */
766
- /* Ajusta a data para o padrão DATE - utilizada nos construtores dos modelos */
767
642
  /**
768
643
  * @param {?=} values
769
644
  * @param {?=} fieldName
770
645
  * @return {?}
771
646
  */
772
- DateUtil.ajustDateToModel = /* Ajusta a data para o padrão DATE - utilizada nos construtores dos modelos */
773
- /**
774
- * @param {?=} values
775
- * @param {?=} fieldName
776
- * @return {?}
777
- */
778
- function (values, fieldName) {
647
+ DateUtil.ajustDateToModel = function (values, fieldName) {
779
648
  if (values === void 0) { values = {}; }
780
649
  if (values.hasOwnProperty(fieldName) && (values[fieldName])) {
781
650
  if (values[fieldName].indexOf('T') >= 0) {
@@ -792,17 +661,11 @@
792
661
  return null;
793
662
  };
794
663
  /* Adicona zero a esquerda do número */
795
- /* Adicona zero a esquerda do número */
796
- /**
797
- * @param {?} number
798
- * @return {?}
799
- */
800
- DateUtil.pad = /* Adicona zero a esquerda do número */
801
664
  /**
802
665
  * @param {?} number
803
666
  * @return {?}
804
667
  */
805
- function (number) {
668
+ DateUtil.pad = function (number) {
806
669
  if (number < 10) {
807
670
  return '0' + number;
808
671
  }
@@ -813,13 +676,19 @@
813
676
 
814
677
  /**
815
678
  * @fileoverview added by tsickle
816
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
679
+ * Generated from: lib/utils/disclaimer.util.ts
680
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
817
681
  */
818
682
  /*
819
683
  Versão: 1.009
820
684
  Data Criação: 06/08/2018
821
685
  */
822
686
  var DisclaimerUtil = /** @class */ (function () {
687
+ /**
688
+ * @param {?} poNotification
689
+ * @param {?} poI18nPipe
690
+ * @param {?} literals
691
+ */
823
692
  function DisclaimerUtil(poNotification, poI18nPipe, literals) {
824
693
  this.literals = {};
825
694
  this.poNotification = poNotification;
@@ -834,15 +703,7 @@
834
703
  * @param {?=} vldBlank
835
704
  * @return {?}
836
705
  */
837
- DisclaimerUtil.prototype.makeDisclaimer = /**
838
- * @param {?} property
839
- * @param {?} value
840
- * @param {?=} hideClose
841
- * @param {?=} tradValue
842
- * @param {?=} vldBlank
843
- * @return {?}
844
- */
845
- function (property, value, hideClose, tradValue, vldBlank) {
706
+ DisclaimerUtil.prototype.makeDisclaimer = function (property, value, hideClose, tradValue, vldBlank) {
846
707
  if (hideClose === void 0) { hideClose = false; }
847
708
  if (tradValue === void 0) { tradValue = false; }
848
709
  if (vldBlank === void 0) { vldBlank = false; }
@@ -866,14 +727,7 @@
866
727
  * @param {?=} vldBlank
867
728
  * @return {?}
868
729
  */
869
- DisclaimerUtil.prototype.makeDisclaimerFromNumber = /**
870
- * @param {?} property
871
- * @param {?} value
872
- * @param {?=} hideClose
873
- * @param {?=} vldBlank
874
- * @return {?}
875
- */
876
- function (property, value, hideClose, vldBlank) {
730
+ DisclaimerUtil.prototype.makeDisclaimerFromNumber = function (property, value, hideClose, vldBlank) {
877
731
  if (hideClose === void 0) { hideClose = false; }
878
732
  if (vldBlank === void 0) { vldBlank = false; }
879
733
  if (value === null || value === undefined) {
@@ -895,13 +749,7 @@
895
749
  * @param {?=} hideClose
896
750
  * @return {?}
897
751
  */
898
- DisclaimerUtil.prototype.makeDisclaimerFromBoolean = /**
899
- * @param {?} property
900
- * @param {?} value
901
- * @param {?=} hideClose
902
- * @return {?}
903
- */
904
- function (property, value, hideClose) {
752
+ DisclaimerUtil.prototype.makeDisclaimerFromBoolean = function (property, value, hideClose) {
905
753
  if (hideClose === void 0) { hideClose = false; }
906
754
  if (value === null || value === undefined) {
907
755
  return { label: '', property: '', value: '' };
@@ -919,13 +767,7 @@
919
767
  * @param {?=} hideClose
920
768
  * @return {?}
921
769
  */
922
- DisclaimerUtil.prototype.makeDisclaimerFromDate = /**
923
- * @param {?} property
924
- * @param {?} value
925
- * @param {?=} hideClose
926
- * @return {?}
927
- */
928
- function (property, value, hideClose) {
770
+ DisclaimerUtil.prototype.makeDisclaimerFromDate = function (property, value, hideClose) {
929
771
  if (hideClose === void 0) { hideClose = false; }
930
772
  /** @type {?} */
931
773
  var dDate = this.ajustDate(value);
@@ -947,15 +789,7 @@
947
789
  * @param {?=} tradValue
948
790
  * @return {?}
949
791
  */
950
- DisclaimerUtil.prototype.makeDisclaimerFromMultiSelect = /**
951
- * @param {?} property
952
- * @param {?} value
953
- * @param {?=} length
954
- * @param {?=} hideClose
955
- * @param {?=} tradValue
956
- * @return {?}
957
- */
958
- function (property, value, length, hideClose, tradValue) {
792
+ DisclaimerUtil.prototype.makeDisclaimerFromMultiSelect = function (property, value, length, hideClose, tradValue) {
959
793
  var _this = this;
960
794
  if (length === void 0) { length = 0; }
961
795
  if (hideClose === void 0) { hideClose = false; }
@@ -972,11 +806,13 @@
972
806
  lstValues = 'all';
973
807
  }
974
808
  else {
975
- value.map((/**
809
+ value.map(( /**
976
810
  * @param {?} item
977
811
  * @return {?}
978
- */
979
- function (item) {
812
+ */function (/**
813
+ * @param {?} item
814
+ * @return {?}
815
+ */ item) {
980
816
  if (lstLabels !== '') {
981
817
  lstLabels = lstLabels + ", ";
982
818
  }
@@ -1002,15 +838,7 @@
1002
838
  * @param {?=} hideClose
1003
839
  * @return {?}
1004
840
  */
1005
- DisclaimerUtil.prototype.makeDisclaimerFromMultiSelectNumber = /**
1006
- * @param {?} property
1007
- * @param {?} value
1008
- * @param {?} options
1009
- * @param {?=} length
1010
- * @param {?=} hideClose
1011
- * @return {?}
1012
- */
1013
- function (property, value, options, length, hideClose) {
841
+ DisclaimerUtil.prototype.makeDisclaimerFromMultiSelectNumber = function (property, value, options, length, hideClose) {
1014
842
  if (length === void 0) { length = 0; }
1015
843
  if (hideClose === void 0) { hideClose = false; }
1016
844
  /** @type {?} */
@@ -1027,22 +855,26 @@
1027
855
  lstValues = 'all';
1028
856
  }
1029
857
  else {
1030
- value.map((/**
858
+ value.map(( /**
859
+ * @param {?} item
860
+ * @return {?}
861
+ */function (/**
1031
862
  * @param {?} item
1032
863
  * @return {?}
1033
- */
1034
- function (item) {
864
+ */ item) {
1035
865
  if (lstLabels !== '') {
1036
866
  lstLabels = lstLabels + ", ";
1037
867
  }
1038
868
  if (lstValues !== '') {
1039
869
  lstValues = lstValues + ",";
1040
870
  }
1041
- opt = options.find((/**
871
+ opt = options.find(( /**
1042
872
  * @param {?} itOpt
1043
873
  * @return {?}
1044
- */
1045
- function (itOpt) { return itOpt.value === item; }));
874
+ */function (/**
875
+ * @param {?} itOpt
876
+ * @return {?}
877
+ */ itOpt) { return itOpt.value === item; }));
1046
878
  lstLabels = "" + lstLabels + (opt ? opt.label : item);
1047
879
  lstValues = "" + lstValues + item;
1048
880
  }));
@@ -1061,14 +893,7 @@
1061
893
  * @param {?=} hideClose
1062
894
  * @return {?}
1063
895
  */
1064
- DisclaimerUtil.prototype.makeDisclaimerFromCheckboxGroup = /**
1065
- * @param {?} property
1066
- * @param {?} value
1067
- * @param {?=} length
1068
- * @param {?=} hideClose
1069
- * @return {?}
1070
- */
1071
- function (property, value, length, hideClose) {
896
+ DisclaimerUtil.prototype.makeDisclaimerFromCheckboxGroup = function (property, value, length, hideClose) {
1072
897
  var _this = this;
1073
898
  if (length === void 0) { length = 0; }
1074
899
  if (hideClose === void 0) { hideClose = false; }
@@ -1088,11 +913,13 @@
1088
913
  lstValues = 'all';
1089
914
  }
1090
915
  else {
1091
- value.map((/**
916
+ value.map(( /**
917
+ * @param {?} checkParam
918
+ * @return {?}
919
+ */function (/**
1092
920
  * @param {?} checkParam
1093
921
  * @return {?}
1094
- */
1095
- function (checkParam) {
922
+ */ checkParam) {
1096
923
  if (lstLabels !== '') {
1097
924
  lstLabels = lstLabels + ", ";
1098
925
  }
@@ -1117,14 +944,7 @@
1117
944
  * @param {?=} validateEqual
1118
945
  * @return {?}
1119
946
  */
1120
- DisclaimerUtil.prototype.makeDisclaimerFromRangeCharacter = /**
1121
- * @param {?} property
1122
- * @param {?} value
1123
- * @param {?=} hideClose
1124
- * @param {?=} validateEqual
1125
- * @return {?}
1126
- */
1127
- function (property, value, hideClose, validateEqual) {
947
+ DisclaimerUtil.prototype.makeDisclaimerFromRangeCharacter = function (property, value, hideClose, validateEqual) {
1128
948
  if (hideClose === void 0) { hideClose = false; }
1129
949
  if (validateEqual === void 0) { validateEqual = true; }
1130
950
  if (value.valInitial === null || value.valInitial === undefined) {
@@ -1152,14 +972,7 @@
1152
972
  * @param {?=} validateEqual
1153
973
  * @return {?}
1154
974
  */
1155
- DisclaimerUtil.prototype.makeDisclaimerFromRangeNumber = /**
1156
- * @param {?} property
1157
- * @param {?} value
1158
- * @param {?=} hideClose
1159
- * @param {?=} validateEqual
1160
- * @return {?}
1161
- */
1162
- function (property, value, hideClose, validateEqual) {
975
+ DisclaimerUtil.prototype.makeDisclaimerFromRangeNumber = function (property, value, hideClose, validateEqual) {
1163
976
  if (hideClose === void 0) { hideClose = false; }
1164
977
  if (validateEqual === void 0) { validateEqual = true; }
1165
978
  if (value.valInitial === null || value.valInitial === undefined) {
@@ -1187,14 +1000,7 @@
1187
1000
  * @param {?=} validateEqual
1188
1001
  * @return {?}
1189
1002
  */
1190
- DisclaimerUtil.prototype.makeDisclaimerFromRangeDate = /**
1191
- * @param {?} property
1192
- * @param {?} value
1193
- * @param {?=} hideClose
1194
- * @param {?=} validateEqual
1195
- * @return {?}
1196
- */
1197
- function (property, value, hideClose, validateEqual) {
1003
+ DisclaimerUtil.prototype.makeDisclaimerFromRangeDate = function (property, value, hideClose, validateEqual) {
1198
1004
  if (hideClose === void 0) { hideClose = false; }
1199
1005
  if (validateEqual === void 0) { validateEqual = true; }
1200
1006
  /** @type {?} */
@@ -1227,21 +1033,14 @@
1227
1033
  * @param {?} defaultValue
1228
1034
  * @return {?}
1229
1035
  */
1230
- DisclaimerUtil.prototype.atzCharFromDisclamer = /**
1231
- * @param {?} disclaimers
1232
- * @param {?} property
1233
- * @param {?} defaultValue
1234
- * @return {?}
1235
- */
1236
- function (disclaimers, property, defaultValue) {
1036
+ DisclaimerUtil.prototype.atzCharFromDisclamer = function (disclaimers, property, defaultValue) {
1237
1037
  /** @type {?} */
1238
1038
  var returnValue = defaultValue;
1239
1039
  if (disclaimers && disclaimers.length > 0) {
1240
- disclaimers.find((/**
1040
+ disclaimers.find(( /**
1241
1041
  * @param {?} item
1242
1042
  * @return {?}
1243
- */
1244
- function (item) {
1043
+ */function (item) {
1245
1044
  if (item.property === property) {
1246
1045
  if (item.value === null) {
1247
1046
  return false;
@@ -1260,21 +1059,14 @@
1260
1059
  * @param {?} defaultValue
1261
1060
  * @return {?}
1262
1061
  */
1263
- DisclaimerUtil.prototype.atzNumberFromDisclamer = /**
1264
- * @param {?} disclaimers
1265
- * @param {?} property
1266
- * @param {?} defaultValue
1267
- * @return {?}
1268
- */
1269
- function (disclaimers, property, defaultValue) {
1062
+ DisclaimerUtil.prototype.atzNumberFromDisclamer = function (disclaimers, property, defaultValue) {
1270
1063
  /** @type {?} */
1271
1064
  var returnValue = defaultValue;
1272
1065
  if (disclaimers && disclaimers.length > 0) {
1273
- disclaimers.find((/**
1066
+ disclaimers.find(( /**
1274
1067
  * @param {?} item
1275
1068
  * @return {?}
1276
- */
1277
- function (item) {
1069
+ */function (item) {
1278
1070
  if (item.property === property) {
1279
1071
  if (item.value === null) {
1280
1072
  return false;
@@ -1293,22 +1085,15 @@
1293
1085
  * @param {?} defaultValue
1294
1086
  * @return {?}
1295
1087
  */
1296
- DisclaimerUtil.prototype.atzBooleanFromDisclamer = /**
1297
- * @param {?} disclaimers
1298
- * @param {?} property
1299
- * @param {?} defaultValue
1300
- * @return {?}
1301
- */
1302
- function (disclaimers, property, defaultValue) {
1088
+ DisclaimerUtil.prototype.atzBooleanFromDisclamer = function (disclaimers, property, defaultValue) {
1303
1089
  /** @type {?} */
1304
1090
  var returnValue = defaultValue;
1305
1091
  if (disclaimers && disclaimers.length > 0) {
1306
1092
  /** @type {?} */
1307
- var disclaimerFind = disclaimers.find((/**
1093
+ var disclaimerFind = disclaimers.find(( /**
1308
1094
  * @param {?} item
1309
1095
  * @return {?}
1310
- */
1311
- function (item) { return item.property === property; }));
1096
+ */function (item) { return item.property === property; }));
1312
1097
  if (disclaimerFind && disclaimerFind.value !== null && disclaimerFind.value !== undefined) {
1313
1098
  if (disclaimerFind.value === 'true') {
1314
1099
  return true;
@@ -1326,22 +1111,15 @@
1326
1111
  * @param {?} defaultValue
1327
1112
  * @return {?}
1328
1113
  */
1329
- DisclaimerUtil.prototype.atzDateFromDisclamer = /**
1330
- * @param {?} disclaimers
1331
- * @param {?} property
1332
- * @param {?} defaultValue
1333
- * @return {?}
1334
- */
1335
- function (disclaimers, property, defaultValue) {
1114
+ DisclaimerUtil.prototype.atzDateFromDisclamer = function (disclaimers, property, defaultValue) {
1336
1115
  var _this = this;
1337
1116
  /** @type {?} */
1338
1117
  var returnValue = this.ajustDate(defaultValue);
1339
1118
  if (disclaimers && disclaimers.length > 0) {
1340
- disclaimers.find((/**
1119
+ disclaimers.find(( /**
1341
1120
  * @param {?} item
1342
1121
  * @return {?}
1343
- */
1344
- function (item) {
1122
+ */function (item) {
1345
1123
  if (item.property === property) {
1346
1124
  if (item.value === null) {
1347
1125
  return false;
@@ -1360,13 +1138,7 @@
1360
1138
  * @param {?} defaultValue
1361
1139
  * @return {?}
1362
1140
  */
1363
- DisclaimerUtil.prototype.atzMultiSelectCharFromDisclamer = /**
1364
- * @param {?} disclaimers
1365
- * @param {?} property
1366
- * @param {?} defaultValue
1367
- * @return {?}
1368
- */
1369
- function (disclaimers, property, defaultValue) {
1141
+ DisclaimerUtil.prototype.atzMultiSelectCharFromDisclamer = function (disclaimers, property, defaultValue) {
1370
1142
  return this.atzMultiSelectFromDisclamer('char', disclaimers, property, defaultValue);
1371
1143
  };
1372
1144
  /**
@@ -1375,13 +1147,7 @@
1375
1147
  * @param {?} defaultValue
1376
1148
  * @return {?}
1377
1149
  */
1378
- DisclaimerUtil.prototype.atzMultiSelectNumberFromDisclamer = /**
1379
- * @param {?} disclaimers
1380
- * @param {?} property
1381
- * @param {?} defaultValue
1382
- * @return {?}
1383
- */
1384
- function (disclaimers, property, defaultValue) {
1150
+ DisclaimerUtil.prototype.atzMultiSelectNumberFromDisclamer = function (disclaimers, property, defaultValue) {
1385
1151
  return this.atzMultiSelectFromDisclamer('number', disclaimers, property, defaultValue);
1386
1152
  };
1387
1153
  /**
@@ -1391,39 +1157,35 @@
1391
1157
  * @param {?} defaultValue
1392
1158
  * @return {?}
1393
1159
  */
1394
- DisclaimerUtil.prototype.atzMultiSelectFromDisclamer = /**
1395
- * @param {?} type
1396
- * @param {?} disclaimers
1397
- * @param {?} property
1398
- * @param {?} defaultValue
1399
- * @return {?}
1400
- */
1401
- function (type, disclaimers, property, defaultValue) {
1160
+ DisclaimerUtil.prototype.atzMultiSelectFromDisclamer = function (type, disclaimers, property, defaultValue) {
1402
1161
  /** @type {?} */
1403
1162
  var returnValue = [];
1404
- defaultValue.map((/**
1163
+ defaultValue.map(( /**
1164
+ * @param {?} item
1165
+ * @return {?}
1166
+ */function (/**
1405
1167
  * @param {?} item
1406
1168
  * @return {?}
1407
- */
1408
- function (item) {
1169
+ */ item) {
1409
1170
  returnValue.push(item.value);
1410
1171
  }));
1411
1172
  if (disclaimers && disclaimers.length > 0) {
1412
- disclaimers.find((/**
1173
+ disclaimers.find(( /**
1413
1174
  * @param {?} item
1414
1175
  * @return {?}
1415
- */
1416
- function (item) {
1176
+ */function (item) {
1417
1177
  if (item.property === property) {
1418
1178
  if (item.value === null || item.value === 'all' || item.value === 'none') {
1419
1179
  return false;
1420
1180
  }
1421
1181
  returnValue = [];
1422
- item.value.split(',').forEach((/**
1182
+ item.value.split(',').forEach(( /**
1423
1183
  * @param {?} itemOpt
1424
1184
  * @return {?}
1425
- */
1426
- function (itemOpt) {
1185
+ */function (/**
1186
+ * @param {?} itemOpt
1187
+ * @return {?}
1188
+ */ itemOpt) {
1427
1189
  if (type === 'char') {
1428
1190
  returnValue.push(itemOpt);
1429
1191
  }
@@ -1444,38 +1206,35 @@
1444
1206
  * @param {?} options
1445
1207
  * @return {?}
1446
1208
  */
1447
- DisclaimerUtil.prototype.atzCheckboxFromDisclamer = /**
1448
- * @param {?} disclaimers
1449
- * @param {?} property
1450
- * @param {?} options
1451
- * @return {?}
1452
- */
1453
- function (disclaimers, property, options) {
1209
+ DisclaimerUtil.prototype.atzCheckboxFromDisclamer = function (disclaimers, property, options) {
1454
1210
  /** @type {?} */
1455
1211
  var returnValue = [];
1456
- options.map((/**
1212
+ options.map(( /**
1213
+ * @param {?} item
1214
+ * @return {?}
1215
+ */function (/**
1457
1216
  * @param {?} item
1458
1217
  * @return {?}
1459
- */
1460
- function (item) {
1218
+ */ item) {
1461
1219
  returnValue.push(item.value);
1462
1220
  }));
1463
1221
  if (disclaimers && disclaimers.length > 0) {
1464
- disclaimers.find((/**
1222
+ disclaimers.find(( /**
1465
1223
  * @param {?} item
1466
1224
  * @return {?}
1467
- */
1468
- function (item) {
1225
+ */function (item) {
1469
1226
  if (item.property === property) {
1470
1227
  if (item.value === null || item.value === 'all' || item.value === 'none') {
1471
1228
  return false;
1472
1229
  }
1473
1230
  returnValue = [];
1474
- item.value.split(',').forEach((/**
1231
+ item.value.split(',').forEach(( /**
1475
1232
  * @param {?} itemOpt
1476
1233
  * @return {?}
1477
- */
1478
- function (itemOpt) {
1234
+ */function (/**
1235
+ * @param {?} itemOpt
1236
+ * @return {?}
1237
+ */ itemOpt) {
1479
1238
  returnValue.push(itemOpt);
1480
1239
  }));
1481
1240
  return true;
@@ -1491,21 +1250,14 @@
1491
1250
  * @param {?} rangeChar
1492
1251
  * @return {?}
1493
1252
  */
1494
- DisclaimerUtil.prototype.atzRangeCharFromDisclamer = /**
1495
- * @param {?} disclaimers
1496
- * @param {?} property
1497
- * @param {?} rangeChar
1498
- * @return {?}
1499
- */
1500
- function (disclaimers, property, rangeChar) {
1253
+ DisclaimerUtil.prototype.atzRangeCharFromDisclamer = function (disclaimers, property, rangeChar) {
1501
1254
  /** @type {?} */
1502
1255
  var value = '';
1503
1256
  if (disclaimers && disclaimers.length > 0) {
1504
- disclaimers.find((/**
1257
+ disclaimers.find(( /**
1505
1258
  * @param {?} item
1506
1259
  * @return {?}
1507
- */
1508
- function (item) {
1260
+ */function (item) {
1509
1261
  if (item.property === property) {
1510
1262
  if (item.value === null) {
1511
1263
  return false;
@@ -1524,21 +1276,14 @@
1524
1276
  * @param {?} rangeNum
1525
1277
  * @return {?}
1526
1278
  */
1527
- DisclaimerUtil.prototype.atzRangeNumFromDisclamer = /**
1528
- * @param {?} disclaimers
1529
- * @param {?} property
1530
- * @param {?} rangeNum
1531
- * @return {?}
1532
- */
1533
- function (disclaimers, property, rangeNum) {
1279
+ DisclaimerUtil.prototype.atzRangeNumFromDisclamer = function (disclaimers, property, rangeNum) {
1534
1280
  /** @type {?} */
1535
1281
  var value = '';
1536
1282
  if (disclaimers && disclaimers.length > 0) {
1537
- disclaimers.find((/**
1283
+ disclaimers.find(( /**
1538
1284
  * @param {?} item
1539
1285
  * @return {?}
1540
- */
1541
- function (item) {
1286
+ */function (item) {
1542
1287
  if (item.property === property) {
1543
1288
  if (item.value === null) {
1544
1289
  return false;
@@ -1557,21 +1302,14 @@
1557
1302
  * @param {?} rangeDate
1558
1303
  * @return {?}
1559
1304
  */
1560
- DisclaimerUtil.prototype.atzRangeDateFromDisclamer = /**
1561
- * @param {?} disclaimers
1562
- * @param {?} property
1563
- * @param {?} rangeDate
1564
- * @return {?}
1565
- */
1566
- function (disclaimers, property, rangeDate) {
1305
+ DisclaimerUtil.prototype.atzRangeDateFromDisclamer = function (disclaimers, property, rangeDate) {
1567
1306
  /** @type {?} */
1568
1307
  var value = '';
1569
1308
  if (disclaimers && disclaimers.length > 0) {
1570
- disclaimers.find((/**
1309
+ disclaimers.find(( /**
1571
1310
  * @param {?} item
1572
1311
  * @return {?}
1573
- */
1574
- function (item) {
1312
+ */function (item) {
1575
1313
  if (item.property === property) {
1576
1314
  if (item.value === null) {
1577
1315
  return false;
@@ -1589,12 +1327,7 @@
1589
1327
  * @param {?} rangeChar
1590
1328
  * @return {?}
1591
1329
  */
1592
- DisclaimerUtil.prototype.atzRangeCharFromQueryParam = /**
1593
- * @param {?} value
1594
- * @param {?} rangeChar
1595
- * @return {?}
1596
- */
1597
- function (value, rangeChar) {
1330
+ DisclaimerUtil.prototype.atzRangeCharFromQueryParam = function (value, rangeChar) {
1598
1331
  rangeChar.valInitial = rangeChar.iniInitial;
1599
1332
  rangeChar.valFinal = rangeChar.iniFinal;
1600
1333
  if (!value || value === '') {
@@ -1612,12 +1345,7 @@
1612
1345
  * @param {?} rangeNum
1613
1346
  * @return {?}
1614
1347
  */
1615
- DisclaimerUtil.prototype.atzRangeNumFromQueryParam = /**
1616
- * @param {?} value
1617
- * @param {?} rangeNum
1618
- * @return {?}
1619
- */
1620
- function (value, rangeNum) {
1348
+ DisclaimerUtil.prototype.atzRangeNumFromQueryParam = function (value, rangeNum) {
1621
1349
  rangeNum.valInitial = rangeNum.iniInitial;
1622
1350
  rangeNum.valFinal = rangeNum.iniFinal;
1623
1351
  if (!value || value === '') {
@@ -1635,12 +1363,7 @@
1635
1363
  * @param {?} rangeDate
1636
1364
  * @return {?}
1637
1365
  */
1638
- DisclaimerUtil.prototype.atzRangeDateFromQueryParam = /**
1639
- * @param {?} value
1640
- * @param {?} rangeDate
1641
- * @return {?}
1642
- */
1643
- function (value, rangeDate) {
1366
+ DisclaimerUtil.prototype.atzRangeDateFromQueryParam = function (value, rangeDate) {
1644
1367
  rangeDate.valInitial = rangeDate.iniInitial;
1645
1368
  rangeDate.valFinal = rangeDate.iniFinal;
1646
1369
  if (!value || value === '') {
@@ -1657,11 +1380,7 @@
1657
1380
  * @param {?} date
1658
1381
  * @return {?}
1659
1382
  */
1660
- DisclaimerUtil.prototype.dateToQueryParam = /**
1661
- * @param {?} date
1662
- * @return {?}
1663
- */
1664
- function (date) {
1383
+ DisclaimerUtil.prototype.dateToQueryParam = function (date) {
1665
1384
  /** @type {?} */
1666
1385
  var iDay = date.getDate();
1667
1386
  /** @type {?} */
@@ -1674,11 +1393,7 @@
1674
1393
  * @param {?} param
1675
1394
  * @return {?}
1676
1395
  */
1677
- DisclaimerUtil.prototype.queryParamToDate = /**
1678
- * @param {?} param
1679
- * @return {?}
1680
- */
1681
- function (param) {
1396
+ DisclaimerUtil.prototype.queryParamToDate = function (param) {
1682
1397
  /** @type {?} */
1683
1398
  var iDay = +param.split('-')[2];
1684
1399
  /** @type {?} */
@@ -1691,22 +1406,14 @@
1691
1406
  * @param {?} date
1692
1407
  * @return {?}
1693
1408
  */
1694
- DisclaimerUtil.prototype.isValidDate = /**
1695
- * @param {?} date
1696
- * @return {?}
1697
- */
1698
- function (date) {
1409
+ DisclaimerUtil.prototype.isValidDate = function (date) {
1699
1410
  return date instanceof Date && !isNaN(date.getTime());
1700
1411
  };
1701
1412
  /**
1702
1413
  * @param {?} param
1703
1414
  * @return {?}
1704
1415
  */
1705
- DisclaimerUtil.prototype.ajustDate = /**
1706
- * @param {?} param
1707
- * @return {?}
1708
- */
1709
- function (param) {
1416
+ DisclaimerUtil.prototype.ajustDate = function (param) {
1710
1417
  if (param instanceof Date) {
1711
1418
  return param;
1712
1419
  }
@@ -1719,11 +1426,7 @@
1719
1426
  * @param {?} number
1720
1427
  * @return {?}
1721
1428
  */
1722
- DisclaimerUtil.prototype.pad = /**
1723
- * @param {?} number
1724
- * @return {?}
1725
- */
1726
- function (number) {
1429
+ DisclaimerUtil.prototype.pad = function (number) {
1727
1430
  if (number < 10) {
1728
1431
  return '0' + number;
1729
1432
  }
@@ -1742,9 +1445,15 @@
1742
1445
 
1743
1446
  /**
1744
1447
  * @fileoverview added by tsickle
1745
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1448
+ * Generated from: lib/utils/field-validation.util.ts
1449
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1746
1450
  */
1747
1451
  var FieldValidationUtil = /** @class */ (function () {
1452
+ /**
1453
+ * @param {?} poNotification
1454
+ * @param {?} poI18nPipe
1455
+ * @param {?} literals
1456
+ */
1748
1457
  function FieldValidationUtil(poNotification, poI18nPipe, literals) {
1749
1458
  this.literals = {};
1750
1459
  this.poNotification = poNotification;
@@ -1757,12 +1466,7 @@
1757
1466
  * @param {?} value
1758
1467
  * @return {?}
1759
1468
  */
1760
- FieldValidationUtil.prototype.vldFieldCharacter = /**
1761
- * @param {?} field
1762
- * @param {?} value
1763
- * @return {?}
1764
- */
1765
- function (field, value) {
1469
+ FieldValidationUtil.prototype.vldFieldCharacter = function (field, value) {
1766
1470
  if (!value || value.trim() === '') {
1767
1471
  this.poNotification.error({
1768
1472
  message: this.poI18nPipe.transform(this.literals['fieldVldRequered'], [this.literals[field]])
@@ -1772,16 +1476,6 @@
1772
1476
  return true;
1773
1477
  };
1774
1478
  // Valida uma faixa de caracteres se o inicial é menor que final
1775
- // Valida uma faixa de caracteres se o inicial é menor que final
1776
- /**
1777
- * @param {?} initialField
1778
- * @param {?} finalField
1779
- * @param {?} initialValue
1780
- * @param {?} finalValue
1781
- * @return {?}
1782
- */
1783
- FieldValidationUtil.prototype.vldRangeCharacter =
1784
- // Valida uma faixa de caracteres se o inicial é menor que final
1785
1479
  /**
1786
1480
  * @param {?} initialField
1787
1481
  * @param {?} finalField
@@ -1789,7 +1483,7 @@
1789
1483
  * @param {?} finalValue
1790
1484
  * @return {?}
1791
1485
  */
1792
- function (initialField, finalField, initialValue, finalValue) {
1486
+ FieldValidationUtil.prototype.vldRangeCharacter = function (initialField, finalField, initialValue, finalValue) {
1793
1487
  if (!initialValue || !finalValue) {
1794
1488
  return true;
1795
1489
  }
@@ -1808,14 +1502,7 @@
1808
1502
  * @param {?=} zeroAccept
1809
1503
  * @return {?}
1810
1504
  */
1811
- FieldValidationUtil.prototype.vldFieldNumber = /**
1812
- * @param {?} field
1813
- * @param {?} value
1814
- * @param {?=} vldValue
1815
- * @param {?=} zeroAccept
1816
- * @return {?}
1817
- */
1818
- function (field, value, vldValue, zeroAccept) {
1505
+ FieldValidationUtil.prototype.vldFieldNumber = function (field, value, vldValue, zeroAccept) {
1819
1506
  if (vldValue === void 0) { vldValue = false; }
1820
1507
  if (zeroAccept === void 0) { zeroAccept = false; }
1821
1508
  if (vldValue && !this.vldValueOfNumber(field, value)) {
@@ -1837,12 +1524,7 @@
1837
1524
  * @param {?} value
1838
1525
  * @return {?}
1839
1526
  */
1840
- FieldValidationUtil.prototype.vldValueOfNumber = /**
1841
- * @param {?} field
1842
- * @param {?} value
1843
- * @return {?}
1844
- */
1845
- function (field, value) {
1527
+ FieldValidationUtil.prototype.vldValueOfNumber = function (field, value) {
1846
1528
  if (value && value < 0) {
1847
1529
  this.poNotification.error({ message: this.poI18nPipe.transform(this.literals['fieldVldNumber'], [value.toString(), this.literals[field]]) });
1848
1530
  return false;
@@ -1855,13 +1537,7 @@
1855
1537
  * @param {?=} vldValue
1856
1538
  * @return {?}
1857
1539
  */
1858
- FieldValidationUtil.prototype.vldFieldPercent = /**
1859
- * @param {?} field
1860
- * @param {?} value
1861
- * @param {?=} vldValue
1862
- * @return {?}
1863
- */
1864
- function (field, value, vldValue) {
1540
+ FieldValidationUtil.prototype.vldFieldPercent = function (field, value, vldValue) {
1865
1541
  if (vldValue === void 0) { vldValue = false; }
1866
1542
  if (vldValue && !this.vldValueOfPercent(field, value)) {
1867
1543
  return false;
@@ -1876,12 +1552,7 @@
1876
1552
  * @param {?} value
1877
1553
  * @return {?}
1878
1554
  */
1879
- FieldValidationUtil.prototype.vldValueOfPercent = /**
1880
- * @param {?} field
1881
- * @param {?} value
1882
- * @return {?}
1883
- */
1884
- function (field, value) {
1555
+ FieldValidationUtil.prototype.vldValueOfPercent = function (field, value) {
1885
1556
  if (value && value < 0) {
1886
1557
  this.poNotification.error({ message: this.poI18nPipe.transform(this.literals['fieldVldNumber'], [value.toString(), this.literals[field]]) });
1887
1558
  return false;
@@ -1893,7 +1564,6 @@
1893
1564
  return true;
1894
1565
  };
1895
1566
  // Valida uma faixa de números se o inicial é menor que final
1896
- // Valida uma faixa de números se o inicial é menor que final
1897
1567
  /**
1898
1568
  * @param {?} initialField
1899
1569
  * @param {?} finalField
@@ -1901,16 +1571,7 @@
1901
1571
  * @param {?} finalValue
1902
1572
  * @return {?}
1903
1573
  */
1904
- FieldValidationUtil.prototype.vldRangeNumber =
1905
- // Valida uma faixa de números se o inicial é menor que final
1906
- /**
1907
- * @param {?} initialField
1908
- * @param {?} finalField
1909
- * @param {?} initialValue
1910
- * @param {?} finalValue
1911
- * @return {?}
1912
- */
1913
- function (initialField, finalField, initialValue, finalValue) {
1574
+ FieldValidationUtil.prototype.vldRangeNumber = function (initialField, finalField, initialValue, finalValue) {
1914
1575
  if (!initialValue) {
1915
1576
  initialValue = 0;
1916
1577
  }
@@ -1930,12 +1591,7 @@
1930
1591
  * @param {?} value
1931
1592
  * @return {?}
1932
1593
  */
1933
- FieldValidationUtil.prototype.vldFieldDate = /**
1934
- * @param {?} field
1935
- * @param {?} value
1936
- * @return {?}
1937
- */
1938
- function (field, value) {
1594
+ FieldValidationUtil.prototype.vldFieldDate = function (field, value) {
1939
1595
  /** @type {?} */
1940
1596
  var valDate = this.disclaimerUtil.ajustDate(value);
1941
1597
  if (!this.disclaimerUtil.isValidDate(valDate)) {
@@ -1947,7 +1603,6 @@
1947
1603
  return true;
1948
1604
  };
1949
1605
  // Valida uma faixa de datas se o inicial é menor que final
1950
- // Valida uma faixa de datas se o inicial é menor que final
1951
1606
  /**
1952
1607
  * @param {?} initialField
1953
1608
  * @param {?} finalField
@@ -1955,16 +1610,7 @@
1955
1610
  * @param {?} finalValue
1956
1611
  * @return {?}
1957
1612
  */
1958
- FieldValidationUtil.prototype.vldRangeDate =
1959
- // Valida uma faixa de datas se o inicial é menor que final
1960
- /**
1961
- * @param {?} initialField
1962
- * @param {?} finalField
1963
- * @param {?} initialValue
1964
- * @param {?} finalValue
1965
- * @return {?}
1966
- */
1967
- function (initialField, finalField, initialValue, finalValue) {
1613
+ FieldValidationUtil.prototype.vldRangeDate = function (initialField, finalField, initialValue, finalValue) {
1968
1614
  if (!initialValue || !finalValue) {
1969
1615
  return true;
1970
1616
  }
@@ -1985,12 +1631,7 @@
1985
1631
  * @param {?} value
1986
1632
  * @return {?}
1987
1633
  */
1988
- FieldValidationUtil.prototype.vldFieldMultiSelect = /**
1989
- * @param {?} field
1990
- * @param {?} value
1991
- * @return {?}
1992
- */
1993
- function (field, value) {
1634
+ FieldValidationUtil.prototype.vldFieldMultiSelect = function (field, value) {
1994
1635
  if (!value || value.length === 0) {
1995
1636
  this.poNotification.error({
1996
1637
  message: this.poI18nPipe.transform(this.literals['fieldVldSelected'], [this.literals[field]])
@@ -2004,12 +1645,7 @@
2004
1645
  * @param {?} value
2005
1646
  * @return {?}
2006
1647
  */
2007
- FieldValidationUtil.prototype.vldFieldCheckbox = /**
2008
- * @param {?} field
2009
- * @param {?} value
2010
- * @return {?}
2011
- */
2012
- function (field, value) {
1648
+ FieldValidationUtil.prototype.vldFieldCheckbox = function (field, value) {
2013
1649
  if (!value || value.length === 0) {
2014
1650
  this.poNotification.error({
2015
1651
  message: this.poI18nPipe.transform(this.literals['fieldVldSelected'], [this.literals[field]])
@@ -2019,7 +1655,6 @@
2019
1655
  return true;
2020
1656
  };
2021
1657
  // Valida formato conforme regra: "9" apenas números, "X" qualquer caracter, "!" apenas letras maiúsculas
2022
- // Valida formato conforme regra: "9" apenas números, "X" qualquer caracter, "!" apenas letras maiúsculas
2023
1658
  /**
2024
1659
  * @param {?} field
2025
1660
  * @param {?} value
@@ -2027,16 +1662,7 @@
2027
1662
  * @param {?=} replacePoint
2028
1663
  * @return {?}
2029
1664
  */
2030
- FieldValidationUtil.prototype.vldFieldFormat =
2031
- // Valida formato conforme regra: "9" apenas números, "X" qualquer caracter, "!" apenas letras maiúsculas
2032
- /**
2033
- * @param {?} field
2034
- * @param {?} value
2035
- * @param {?} format
2036
- * @param {?=} replacePoint
2037
- * @return {?}
2038
- */
2039
- function (field, value, format, replacePoint) {
1665
+ FieldValidationUtil.prototype.vldFieldFormat = function (field, value, format, replacePoint) {
2040
1666
  if (replacePoint === void 0) { replacePoint = false; }
2041
1667
  /** @type {?} */
2042
1668
  var lOK = true;
@@ -2094,7 +1720,8 @@
2094
1720
 
2095
1721
  /**
2096
1722
  * @fileoverview added by tsickle
2097
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1723
+ * Generated from: lib/utils/filter-range.util.ts
1724
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2098
1725
  */
2099
1726
  /*
2100
1727
  Versão: 1.000
@@ -2108,12 +1735,7 @@
2108
1735
  * @param {?} iniFinal
2109
1736
  * @return {?}
2110
1737
  */
2111
- FilterRangeUtil.makeFilterRangeCharacter = /**
2112
- * @param {?} iniInitial
2113
- * @param {?} iniFinal
2114
- * @return {?}
2115
- */
2116
- function (iniInitial, iniFinal) {
1738
+ FilterRangeUtil.makeFilterRangeCharacter = function (iniInitial, iniFinal) {
2117
1739
  return {
2118
1740
  iniInitial: iniInitial,
2119
1741
  iniFinal: iniFinal,
@@ -2126,12 +1748,7 @@
2126
1748
  * @param {?} iniFinal
2127
1749
  * @return {?}
2128
1750
  */
2129
- FilterRangeUtil.makeFilterRangeNumber = /**
2130
- * @param {?} iniInitial
2131
- * @param {?} iniFinal
2132
- * @return {?}
2133
- */
2134
- function (iniInitial, iniFinal) {
1751
+ FilterRangeUtil.makeFilterRangeNumber = function (iniInitial, iniFinal) {
2135
1752
  return {
2136
1753
  iniInitial: iniInitial,
2137
1754
  iniFinal: iniFinal,
@@ -2144,12 +1761,7 @@
2144
1761
  * @param {?} iniFinal
2145
1762
  * @return {?}
2146
1763
  */
2147
- FilterRangeUtil.makeFilterRangeDate = /**
2148
- * @param {?} iniInitial
2149
- * @param {?} iniFinal
2150
- * @return {?}
2151
- */
2152
- function (iniInitial, iniFinal) {
1764
+ FilterRangeUtil.makeFilterRangeDate = function (iniInitial, iniFinal) {
2153
1765
  return {
2154
1766
  iniInitial: iniInitial,
2155
1767
  iniFinal: iniFinal,
@@ -2162,7 +1774,8 @@
2162
1774
 
2163
1775
  /**
2164
1776
  * @fileoverview added by tsickle
2165
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1777
+ * Generated from: lib/utils/generic-functions.utils.ts
1778
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2166
1779
  */
2167
1780
  /*
2168
1781
  Versão: 1.003
@@ -2189,22 +1802,19 @@
2189
1802
  ChartValues.prototype.maxValue;
2190
1803
  }
2191
1804
  var GenericFunctionsUtils = /** @class */ (function () {
1805
+ /**
1806
+ * @param {?} literals
1807
+ */
2192
1808
  function GenericFunctionsUtils(literals) {
2193
1809
  this.literals = {};
2194
1810
  this.literals = literals;
2195
1811
  }
2196
1812
  /* Transforma uma Lista separada por "," em um Array */
2197
- /* Transforma uma Lista separada por "," em um Array */
2198
1813
  /**
2199
1814
  * @param {?} list
2200
1815
  * @return {?}
2201
1816
  */
2202
- GenericFunctionsUtils.listToArrayCharacter = /* Transforma uma Lista separada por "," em um Array */
2203
- /**
2204
- * @param {?} list
2205
- * @return {?}
2206
- */
2207
- function (list) {
1817
+ GenericFunctionsUtils.listToArrayCharacter = function (list) {
2208
1818
  /** @type {?} */
2209
1819
  var returnArray = new Array();
2210
1820
  if (list && list !== '') {
@@ -2213,17 +1823,11 @@
2213
1823
  return returnArray;
2214
1824
  };
2215
1825
  /* Transforma um Array em uma Lista separada por "," */
2216
- /* Transforma um Array em uma Lista separada por "," */
2217
1826
  /**
2218
1827
  * @param {?} array
2219
1828
  * @return {?}
2220
1829
  */
2221
- GenericFunctionsUtils.ArrayToListCharacter = /* Transforma um Array em uma Lista separada por "," */
2222
- /**
2223
- * @param {?} array
2224
- * @return {?}
2225
- */
2226
- function (array) {
1830
+ GenericFunctionsUtils.ArrayToListCharacter = function (array) {
2227
1831
  /** @type {?} */
2228
1832
  var list = '';
2229
1833
  if (array && array.length > 0) {
@@ -2235,11 +1839,7 @@
2235
1839
  * @param {?} object
2236
1840
  * @return {?}
2237
1841
  */
2238
- GenericFunctionsUtils.isEmpty = /**
2239
- * @param {?} object
2240
- * @return {?}
2241
- */
2242
- function (object) {
1842
+ GenericFunctionsUtils.isEmpty = function (object) {
2243
1843
  /** @type {?} */
2244
1844
  var isEmpty = true;
2245
1845
  for (var content in object) {
@@ -2253,11 +1853,7 @@
2253
1853
  * @param {?} chartData
2254
1854
  * @return {?}
2255
1855
  */
2256
- GenericFunctionsUtils.getChartValues = /**
2257
- * @param {?} chartData
2258
- * @return {?}
2259
- */
2260
- function (chartData) {
1856
+ GenericFunctionsUtils.getChartValues = function (chartData) {
2261
1857
  /** @type {?} */
2262
1858
  var chartValues;
2263
1859
  /** @type {?} */
@@ -2266,11 +1862,13 @@
2266
1862
  var minValue;
2267
1863
  maxValue = undefined;
2268
1864
  minValue = undefined;
2269
- chartData.map((/**
1865
+ chartData.map(( /**
2270
1866
  * @param {?} item
2271
1867
  * @return {?}
2272
- */
2273
- function (item) {
1868
+ */function (/**
1869
+ * @param {?} item
1870
+ * @return {?}
1871
+ */ item) {
2274
1872
  if (maxValue === undefined && minValue === undefined) {
2275
1873
  maxValue = item.data[0];
2276
1874
  minValue = item.data[0];
@@ -2311,19 +1909,12 @@
2311
1909
  return chartValues;
2312
1910
  };
2313
1911
  /*Deixa no list apenas o itens que existem no options*/
2314
- /*Deixa no list apenas o itens que existem no options*/
2315
1912
  /**
2316
1913
  * @param {?} options
2317
1914
  * @param {?} list
2318
1915
  * @return {?}
2319
1916
  */
2320
- GenericFunctionsUtils.atzMultiSelectListByOptions = /*Deixa no list apenas o itens que existem no options*/
2321
- /**
2322
- * @param {?} options
2323
- * @param {?} list
2324
- * @return {?}
2325
- */
2326
- function (options, list) {
1917
+ GenericFunctionsUtils.atzMultiSelectListByOptions = function (options, list) {
2327
1918
  /** @type {?} */
2328
1919
  var idx;
2329
1920
  /** @type {?} */
@@ -2332,17 +1923,21 @@
2332
1923
  return list;
2333
1924
  }
2334
1925
  newList = new Array();
2335
- list.map((/**
1926
+ list.map(( /**
1927
+ * @param {?} item
1928
+ * @return {?}
1929
+ */function (/**
2336
1930
  * @param {?} item
2337
1931
  * @return {?}
2338
- */
2339
- function (item) {
1932
+ */ item) {
2340
1933
  if (item) {
2341
- idx = options.findIndex((/**
1934
+ idx = options.findIndex(( /**
2342
1935
  * @param {?} itemOptions
2343
1936
  * @return {?}
2344
- */
2345
- function (itemOptions) { return itemOptions.value === item; }));
1937
+ */function (/**
1938
+ * @param {?} itemOptions
1939
+ * @return {?}
1940
+ */ itemOptions) { return itemOptions.value === item; }));
2346
1941
  if (idx >= 0) {
2347
1942
  newList.push(item);
2348
1943
  }
@@ -2351,36 +1946,33 @@
2351
1946
  return newList;
2352
1947
  };
2353
1948
  /*Carrega o Options com os valores defaults passados como parâmetro (list)*/
2354
- /*Carrega o Options com os valores defaults passados como parâmetro (list)*/
2355
- /**
2356
- * @param {?} options
2357
- * @param {?} list
2358
- * @return {?}
2359
- */
2360
- GenericFunctionsUtils.prototype.loadOptionsMultiSelect = /*Carrega o Options com os valores defaults passados como parâmetro (list)*/
2361
1949
  /**
2362
1950
  * @param {?} options
2363
1951
  * @param {?} list
2364
1952
  * @return {?}
2365
1953
  */
2366
- function (options, list) {
1954
+ GenericFunctionsUtils.prototype.loadOptionsMultiSelect = function (options, list) {
2367
1955
  var _this = this;
2368
1956
  /** @type {?} */
2369
1957
  var idx;
2370
1958
  if (!list) {
2371
1959
  return;
2372
1960
  }
2373
- list.map((/**
1961
+ list.map(( /**
2374
1962
  * @param {?} item
2375
1963
  * @return {?}
2376
- */
2377
- function (item) {
1964
+ */function (/**
1965
+ * @param {?} item
1966
+ * @return {?}
1967
+ */ item) {
2378
1968
  if (item) {
2379
- idx = options.findIndex((/**
1969
+ idx = options.findIndex(( /**
1970
+ * @param {?} itemOptions
1971
+ * @return {?}
1972
+ */function (/**
2380
1973
  * @param {?} itemOptions
2381
1974
  * @return {?}
2382
- */
2383
- function (itemOptions) { return itemOptions.value === item; }));
1975
+ */ itemOptions) { return itemOptions.value === item; }));
2384
1976
  if (idx === -1) {
2385
1977
  options.push({ label: item === 'all' ? _this.literals['all'] : item, value: item });
2386
1978
  }
@@ -2388,21 +1980,13 @@
2388
1980
  }));
2389
1981
  };
2390
1982
  /*Carrega o Options com os valores defaults passados como parâmetro (list)*/
2391
- /*Carrega o Options com os valores defaults passados como parâmetro (list)*/
2392
- /**
2393
- * @param {?} options
2394
- * @param {?} selectValue
2395
- * @param {?=} tradValue
2396
- * @return {?}
2397
- */
2398
- GenericFunctionsUtils.prototype.loadOptionsSelect = /*Carrega o Options com os valores defaults passados como parâmetro (list)*/
2399
1983
  /**
2400
1984
  * @param {?} options
2401
1985
  * @param {?} selectValue
2402
1986
  * @param {?=} tradValue
2403
1987
  * @return {?}
2404
1988
  */
2405
- function (options, selectValue, tradValue) {
1989
+ GenericFunctionsUtils.prototype.loadOptionsSelect = function (options, selectValue, tradValue) {
2406
1990
  if (tradValue === void 0) { tradValue = false; }
2407
1991
  /** @type {?} */
2408
1992
  var idx;
@@ -2410,30 +1994,25 @@
2410
1994
  return;
2411
1995
  }
2412
1996
  if (selectValue) {
2413
- idx = options.findIndex((/**
1997
+ idx = options.findIndex(( /**
1998
+ * @param {?} itemOptions
1999
+ * @return {?}
2000
+ */function (/**
2414
2001
  * @param {?} itemOptions
2415
2002
  * @return {?}
2416
- */
2417
- function (itemOptions) { return itemOptions.value === selectValue; }));
2003
+ */ itemOptions) { return itemOptions.value === selectValue; }));
2418
2004
  if (idx === -1) {
2419
2005
  options.push({ label: tradValue ? this.literals[selectValue] : selectValue, value: selectValue });
2420
2006
  }
2421
2007
  }
2422
2008
  };
2423
2009
  /*Método que compara 2 objetos e retorna se são iguais ou diferentes*/
2424
- /*Método que compara 2 objetos e retorna se são iguais ou diferentes*/
2425
- /**
2426
- * @param {?} firstObject
2427
- * @param {?} secondObject
2428
- * @return {?}
2429
- */
2430
- GenericFunctionsUtils.prototype.compareObjects = /*Método que compara 2 objetos e retorna se são iguais ou diferentes*/
2431
2010
  /**
2432
2011
  * @param {?} firstObject
2433
2012
  * @param {?} secondObject
2434
2013
  * @return {?}
2435
2014
  */
2436
- function (firstObject, secondObject) {
2015
+ GenericFunctionsUtils.prototype.compareObjects = function (firstObject, secondObject) {
2437
2016
  if (!firstObject || !secondObject) {
2438
2017
  return false;
2439
2018
  }
@@ -2456,12 +2035,7 @@
2456
2035
  * @param {?} dateRef
2457
2036
  * @return {?}
2458
2037
  */
2459
- GenericFunctionsUtils.prototype.referenceGeneration = /**
2460
- * @param {?} charInd
2461
- * @param {?} dateRef
2462
- * @return {?}
2463
- */
2464
- function (charInd, dateRef) {
2038
+ GenericFunctionsUtils.prototype.referenceGeneration = function (charInd, dateRef) {
2465
2039
  /** @type {?} */
2466
2040
  var reference;
2467
2041
  /** @type {?} */
@@ -2482,11 +2056,7 @@
2482
2056
  * @param {?} number
2483
2057
  * @return {?}
2484
2058
  */
2485
- GenericFunctionsUtils.prototype.pad = /**
2486
- * @param {?} number
2487
- * @return {?}
2488
- */
2489
- function (number) {
2059
+ GenericFunctionsUtils.prototype.pad = function (number) {
2490
2060
  if (number < 10) {
2491
2061
  return '0' + number;
2492
2062
  }
@@ -2499,15 +2069,11 @@
2499
2069
  * @param {?} idField
2500
2070
  * @return {?}
2501
2071
  */
2502
- GenericFunctionsUtils.prototype.focusInternalInput = /**
2503
- * @param {?} idField
2504
- * @return {?}
2505
- */
2506
- function (idField) {
2072
+ GenericFunctionsUtils.prototype.focusInternalInput = function (idField) {
2507
2073
  /** @type {?} */
2508
2074
  var fieldComponent = document.getElementById(idField);
2509
2075
  /** @type {?} */
2510
- var fieldInput = ((/** @type {?} */ ((/** @type {?} */ (fieldComponent.getElementsByClassName('po-input'))))))[0];
2076
+ var fieldInput = (( /** @type {?} */(( /** @type {?} */(fieldComponent.getElementsByClassName('po-input'))))))[0];
2511
2077
  fieldInput.focus();
2512
2078
  };
2513
2079
  return GenericFunctionsUtils;
@@ -2519,26 +2085,23 @@
2519
2085
 
2520
2086
  /**
2521
2087
  * @fileoverview added by tsickle
2522
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2088
+ * Generated from: lib/utils/file.util.ts
2089
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2523
2090
  */
2524
2091
  var FileUtil = /** @class */ (function () {
2525
2092
  function FileUtil() {
2526
2093
  }
2527
2094
  /**
2528
- * @param {?} datab64
2529
- * @param {?} fileName
2530
- * @param {?=} contentType
2531
- * @return {?}
2532
- */
2533
- FileUtil.downloadFile = /**
2534
- * @param {?} datab64
2095
+ * @param {?} data
2535
2096
  * @param {?} fileName
2536
2097
  * @param {?=} contentType
2098
+ * @param {?=} base64
2537
2099
  * @return {?}
2538
2100
  */
2539
- function (datab64, fileName, contentType) {
2101
+ FileUtil.downloadFile = function (data, fileName, contentType, base64) {
2102
+ base64 = (base64 === false) ? false : true;
2540
2103
  /** @type {?} */
2541
- var dataBlob = this.b64toBlob(datab64, contentType);
2104
+ var dataBlob = base64 ? this.b64toBlob(data, contentType) : data;
2542
2105
  this.download(dataBlob, fileName);
2543
2106
  };
2544
2107
  /**
@@ -2546,12 +2109,7 @@
2546
2109
  * @param {?=} dwldDataParam
2547
2110
  * @return {?}
2548
2111
  */
2549
- FileUtil.downloadData = /**
2550
- * @param {?} data
2551
- * @param {?=} dwldDataParam
2552
- * @return {?}
2553
- */
2554
- function (data, dwldDataParam) {
2112
+ FileUtil.downloadData = function (data, dwldDataParam) {
2555
2113
  if (dwldDataParam === void 0) { dwldDataParam = null; }
2556
2114
  if (!data) {
2557
2115
  return;
@@ -2584,13 +2142,7 @@
2584
2142
  * @param {?} fileName
2585
2143
  * @return {?}
2586
2144
  */
2587
- FileUtil.download = /**
2588
- * @private
2589
- * @param {?} file
2590
- * @param {?} fileName
2591
- * @return {?}
2592
- */
2593
- function (file, fileName) {
2145
+ FileUtil.download = function (file, fileName) {
2594
2146
  /** @type {?} */
2595
2147
  var binaryData = [file];
2596
2148
  /** @type {?} */
@@ -2617,14 +2169,7 @@
2617
2169
  * @param {?=} sliceSize
2618
2170
  * @return {?}
2619
2171
  */
2620
- FileUtil.b64toBlob = /**
2621
- * @private
2622
- * @param {?} b64Data
2623
- * @param {?=} contentType
2624
- * @param {?=} sliceSize
2625
- * @return {?}
2626
- */
2627
- function (b64Data, contentType, sliceSize) {
2172
+ FileUtil.b64toBlob = function (b64Data, contentType, sliceSize) {
2628
2173
  contentType = contentType || '';
2629
2174
  sliceSize = sliceSize || 512;
2630
2175
  /** @type {?} */
@@ -2653,34 +2198,38 @@
2653
2198
  * @param {?} dwldDataParam
2654
2199
  * @return {?}
2655
2200
  */
2656
- FileUtil.jsonToString = /**
2657
- * @private
2658
- * @param {?} jsonData
2659
- * @param {?} dwldDataParam
2660
- * @return {?}
2661
- */
2662
- function (jsonData, dwldDataParam) {
2201
+ FileUtil.jsonToString = function (jsonData, dwldDataParam) {
2663
2202
  if (!jsonData || jsonData.length === 0) {
2664
2203
  return '';
2665
2204
  }
2666
2205
  /** @type {?} */
2667
2206
  var lineDelimiter = '\n';
2668
2207
  /** @type {?} */
2208
+ var columnOrig = null;
2209
+ /** @type {?} */
2669
2210
  var columnHeader = null;
2670
2211
  /** @type {?} */
2671
2212
  var keys = [];
2672
2213
  /** @type {?} */
2673
2214
  var includeKey;
2674
- Object.keys(jsonData[0]).forEach((/**
2215
+ if (dwldDataParam.columnList &&
2216
+ dwldDataParam.columnList.length > 0) {
2217
+ columnOrig = dwldDataParam.columnList;
2218
+ }
2219
+ else {
2220
+ columnOrig = Object.keys(jsonData[0]);
2221
+ }
2222
+ columnOrig.forEach(( /**
2223
+ * @param {?} key
2224
+ * @return {?}
2225
+ */function (/**
2675
2226
  * @param {?} key
2676
2227
  * @return {?}
2677
- */
2678
- function (key) {
2228
+ */ key) {
2679
2229
  includeKey = true;
2680
- if (dwldDataParam.columnList.length > 0 && dwldDataParam.columnList.indexOf(key) === -1) {
2681
- includeKey = false;
2682
- }
2683
- if (dwldDataParam.columnExclude.length > 0 && dwldDataParam.columnExclude.indexOf(key) !== -1) {
2230
+ if (dwldDataParam.columnExclude &&
2231
+ dwldDataParam.columnExclude.length > 0 &&
2232
+ dwldDataParam.columnExclude.indexOf(key) !== -1) {
2684
2233
  includeKey = false;
2685
2234
  }
2686
2235
  if (includeKey) {
@@ -2690,21 +2239,22 @@
2690
2239
  }
2691
2240
  }));
2692
2241
  /** @type {?} */
2693
- var lineStr = jsonData.reduce((/**
2242
+ var lineStr = jsonData.reduce(( /**
2694
2243
  * @param {?} accLineStr
2695
2244
  * @param {?} currentItem
2696
2245
  * @return {?}
2697
- */
2698
- function (accLineStr, currentItem) {
2246
+ */function (accLineStr, currentItem) {
2699
2247
  /** @type {?} */
2700
2248
  var first = true;
2701
2249
  /** @type {?} */
2702
2250
  var columnValue = null;
2703
- keys.forEach((/**
2251
+ keys.forEach(( /**
2252
+ * @param {?} key
2253
+ * @return {?}
2254
+ */function (/**
2704
2255
  * @param {?} key
2705
2256
  * @return {?}
2706
- */
2707
- function (key) {
2257
+ */ key) {
2708
2258
  if (!first) {
2709
2259
  accLineStr += dwldDataParam.columnDelimiter;
2710
2260
  }
@@ -2768,70 +2318,8 @@
2768
2318
 
2769
2319
  /**
2770
2320
  * @fileoverview added by tsickle
2771
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2772
- */
2773
- /**
2774
- * @record
2775
- * @template T
2776
- */
2777
- function TotvsResponse() { }
2778
- if (false) {
2779
- /** @type {?} */
2780
- TotvsResponse.prototype.items;
2781
- /** @type {?|undefined} */
2782
- TotvsResponse.prototype.hasNext;
2783
- }
2784
-
2785
- /**
2786
- * @fileoverview added by tsickle
2787
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2788
- */
2789
- /**
2790
- * @record
2791
- */
2792
- function IFilterRangeCharacter() { }
2793
- if (false) {
2794
- /** @type {?} */
2795
- IFilterRangeCharacter.prototype.iniInitial;
2796
- /** @type {?} */
2797
- IFilterRangeCharacter.prototype.iniFinal;
2798
- /** @type {?} */
2799
- IFilterRangeCharacter.prototype.valInitial;
2800
- /** @type {?} */
2801
- IFilterRangeCharacter.prototype.valFinal;
2802
- }
2803
- /**
2804
- * @record
2805
- */
2806
- function IFilterRangeNumber() { }
2807
- if (false) {
2808
- /** @type {?} */
2809
- IFilterRangeNumber.prototype.iniInitial;
2810
- /** @type {?} */
2811
- IFilterRangeNumber.prototype.iniFinal;
2812
- /** @type {?} */
2813
- IFilterRangeNumber.prototype.valInitial;
2814
- /** @type {?} */
2815
- IFilterRangeNumber.prototype.valFinal;
2816
- }
2817
- /**
2818
- * @record
2819
- */
2820
- function IFilterRangeDate() { }
2821
- if (false) {
2822
- /** @type {?} */
2823
- IFilterRangeDate.prototype.iniInitial;
2824
- /** @type {?} */
2825
- IFilterRangeDate.prototype.iniFinal;
2826
- /** @type {?} */
2827
- IFilterRangeDate.prototype.valInitial;
2828
- /** @type {?} */
2829
- IFilterRangeDate.prototype.valFinal;
2830
- }
2831
-
2832
- /**
2833
- * @fileoverview added by tsickle
2834
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2321
+ * Generated from: lib/components/totvs-schedule-execution/totvs-schedule-execution.model.ts
2322
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2835
2323
  */
2836
2324
  /**
2837
2325
  * @record
@@ -2971,9 +2459,13 @@
2971
2459
 
2972
2460
  /**
2973
2461
  * @fileoverview added by tsickle
2974
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2462
+ * Generated from: lib/components/totvs-schedule-execution/totvs-schedule-execution.service.ts
2463
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2975
2464
  */
2976
2465
  var TotvsScheduleExecutionService = /** @class */ (function () {
2466
+ /**
2467
+ * @param {?} http
2468
+ */
2977
2469
  function TotvsScheduleExecutionService(http) {
2978
2470
  this.http = http;
2979
2471
  this.headers = { headers: { 'X-PO-Screen-Lock': 'true' } };
@@ -2985,11 +2477,7 @@
2985
2477
  * @param {?} params
2986
2478
  * @return {?}
2987
2479
  */
2988
- TotvsScheduleExecutionService.prototype.getFilteredItems = /**
2989
- * @param {?} params
2990
- * @return {?}
2991
- */
2992
- function (params) {
2480
+ TotvsScheduleExecutionService.prototype.getFilteredItems = function (params) {
2993
2481
  /** @type {?} */
2994
2482
  var urlParams = new Array();
2995
2483
  urlParams.push("pageSize=" + params.pageSize.toString());
@@ -3003,11 +2491,7 @@
3003
2491
  * @param {?} id
3004
2492
  * @return {?}
3005
2493
  */
3006
- TotvsScheduleExecutionService.prototype.getObjectByValue = /**
3007
- * @param {?} id
3008
- * @return {?}
3009
- */
3010
- function (id) {
2494
+ TotvsScheduleExecutionService.prototype.getObjectByValue = function (id) {
3011
2495
  return this.http.get(this.urlCadServidor + "/" + id, this.headers);
3012
2496
  };
3013
2497
  /**
@@ -3015,12 +2499,7 @@
3015
2499
  * @param {?} loading
3016
2500
  * @return {?}
3017
2501
  */
3018
- TotvsScheduleExecutionService.prototype.createExecution = /**
3019
- * @param {?} parameters
3020
- * @param {?} loading
3021
- * @return {?}
3022
- */
3023
- function (parameters, loading) {
2502
+ TotvsScheduleExecutionService.prototype.createExecution = function (parameters, loading) {
3024
2503
  /** @type {?} */
3025
2504
  var params = JSON.parse(JSON.stringify(parameters).replace(/\\\\/g, '*|'));
3026
2505
  if (loading) {
@@ -3035,12 +2514,7 @@
3035
2514
  * @param {?} loading
3036
2515
  * @return {?}
3037
2516
  */
3038
- TotvsScheduleExecutionService.prototype.createExecutionForNow = /**
3039
- * @param {?} executionParams
3040
- * @param {?} loading
3041
- * @return {?}
3042
- */
3043
- function (executionParams, loading) {
2517
+ TotvsScheduleExecutionService.prototype.createExecutionForNow = function (executionParams, loading) {
3044
2518
  /** @type {?} */
3045
2519
  var jobScheduleParams;
3046
2520
  /** @type {?} */
@@ -3076,42 +2550,30 @@
3076
2550
  * @param {?=} loading
3077
2551
  * @return {?}
3078
2552
  */
3079
- TotvsScheduleExecutionService.prototype.getExecutionByJobScheduleID = /**
3080
- * @param {?} jobScheduleID
3081
- * @param {?=} loading
3082
- * @return {?}
3083
- */
3084
- function (jobScheduleID, loading) {
2553
+ TotvsScheduleExecutionService.prototype.getExecutionByJobScheduleID = function (jobScheduleID, loading) {
3085
2554
  var _this = this;
3086
2555
  if (loading === void 0) { loading = false; }
3087
2556
  /** @type {?} */
3088
2557
  var url = this.urlJobExecution + "?jobScheduleID=" + jobScheduleID;
3089
- return this.getExecution(url, loading).pipe(operators.map((/**
2558
+ return this.getExecution(url, loading).pipe(operators.map(( /**
3090
2559
  * @param {?} response
3091
2560
  * @return {?}
3092
- */
3093
- function (response) { return _this.transformExecution('jobScheduleID', response); })));
2561
+ */function (response) { return _this.transformExecution('jobScheduleID', response); })));
3094
2562
  };
3095
2563
  /**
3096
2564
  * @param {?} executionID
3097
2565
  * @param {?=} loading
3098
2566
  * @return {?}
3099
2567
  */
3100
- TotvsScheduleExecutionService.prototype.getExecutionByExecutionID = /**
3101
- * @param {?} executionID
3102
- * @param {?=} loading
3103
- * @return {?}
3104
- */
3105
- function (executionID, loading) {
2568
+ TotvsScheduleExecutionService.prototype.getExecutionByExecutionID = function (executionID, loading) {
3106
2569
  var _this = this;
3107
2570
  if (loading === void 0) { loading = false; }
3108
2571
  /** @type {?} */
3109
2572
  var url = this.urlJobExecution + "/" + executionID;
3110
- return this.getExecution(url, loading).pipe(operators.map((/**
2573
+ return this.getExecution(url, loading).pipe(operators.map(( /**
3111
2574
  * @param {?} response
3112
2575
  * @return {?}
3113
- */
3114
- function (response) { return _this.transformExecution('executionID', response); })));
2576
+ */function (response) { return _this.transformExecution('executionID', response); })));
3115
2577
  };
3116
2578
  /**
3117
2579
  * @private
@@ -3119,13 +2581,7 @@
3119
2581
  * @param {?} loading
3120
2582
  * @return {?}
3121
2583
  */
3122
- TotvsScheduleExecutionService.prototype.getExecution = /**
3123
- * @private
3124
- * @param {?} url
3125
- * @param {?} loading
3126
- * @return {?}
3127
- */
3128
- function (url, loading) {
2584
+ TotvsScheduleExecutionService.prototype.getExecution = function (url, loading) {
3129
2585
  if (loading) {
3130
2586
  return this.http.get(url, this.headers);
3131
2587
  }
@@ -3139,13 +2595,7 @@
3139
2595
  * @param {?} response
3140
2596
  * @return {?}
3141
2597
  */
3142
- TotvsScheduleExecutionService.prototype.transformExecution = /**
3143
- * @private
3144
- * @param {?} type
3145
- * @param {?} response
3146
- * @return {?}
3147
- */
3148
- function (type, response) {
2598
+ TotvsScheduleExecutionService.prototype.transformExecution = function (type, response) {
3149
2599
  if (!response || !response.items || response.items.length === 0) {
3150
2600
  return;
3151
2601
  }
@@ -3166,14 +2616,7 @@
3166
2616
  * @param {?=} loading
3167
2617
  * @return {?}
3168
2618
  */
3169
- TotvsScheduleExecutionService.prototype.followUpExcByJobScheduleID = /**
3170
- * @param {?} jobScheduleID
3171
- * @param {?} intervalNum
3172
- * @param {?} fncCallBack
3173
- * @param {?=} loading
3174
- * @return {?}
3175
- */
3176
- function (jobScheduleID, intervalNum, fncCallBack, loading) {
2619
+ TotvsScheduleExecutionService.prototype.followUpExcByJobScheduleID = function (jobScheduleID, intervalNum, fncCallBack, loading) {
3177
2620
  if (loading === void 0) { loading = false; }
3178
2621
  this.followUpExecution('jobScheduleID', jobScheduleID, intervalNum, fncCallBack, loading);
3179
2622
  };
@@ -3184,14 +2627,7 @@
3184
2627
  * @param {?=} loading
3185
2628
  * @return {?}
3186
2629
  */
3187
- TotvsScheduleExecutionService.prototype.followUpExcByExecutionID = /**
3188
- * @param {?} executionID
3189
- * @param {?} intervalNum
3190
- * @param {?} fncCallBack
3191
- * @param {?=} loading
3192
- * @return {?}
3193
- */
3194
- function (executionID, intervalNum, fncCallBack, loading) {
2630
+ TotvsScheduleExecutionService.prototype.followUpExcByExecutionID = function (executionID, intervalNum, fncCallBack, loading) {
3195
2631
  if (loading === void 0) { loading = false; }
3196
2632
  this.followUpExecution('executionID', executionID, intervalNum, fncCallBack, loading);
3197
2633
  };
@@ -3204,23 +2640,13 @@
3204
2640
  * @param {?} loading
3205
2641
  * @return {?}
3206
2642
  */
3207
- TotvsScheduleExecutionService.prototype.followUpExecution = /**
3208
- * @private
3209
- * @param {?} type
3210
- * @param {?} execID
3211
- * @param {?} intervalNum
3212
- * @param {?} fncCallBack
3213
- * @param {?} loading
3214
- * @return {?}
3215
- */
3216
- function (type, execID, intervalNum, fncCallBack, loading) {
2643
+ TotvsScheduleExecutionService.prototype.followUpExecution = function (type, execID, intervalNum, fncCallBack, loading) {
3217
2644
  var _this = this;
3218
2645
  this.jobExecutionSubscription$ = null;
3219
2646
  /** @type {?} */
3220
- var intervalID = setInterval((/**
2647
+ var intervalID = setInterval(( /**
3221
2648
  * @return {?}
3222
- */
3223
- function () {
2649
+ */function () {
3224
2650
  /** @type {?} */
3225
2651
  var execStatus = new ExecutionStatus();
3226
2652
  execStatus.jobScheduleID = (type === 'jobScheduleID') ? execID : '';
@@ -3233,33 +2659,29 @@
3233
2659
  }
3234
2660
  if (type === 'jobScheduleID') {
3235
2661
  _this.jobExecutionSubscription$ = _this.getExecutionByJobScheduleID(execID, loading)
3236
- .subscribe((/**
3237
- * @param {?} response
3238
- * @return {?}
3239
- */
3240
- function (response) {
2662
+ .subscribe(( /**
2663
+ * @param {?} response
2664
+ * @return {?}
2665
+ */function (response) {
3241
2666
  _this.followUpExecReturnOk(execID, execStatus, response, intervalID, fncCallBack);
3242
- }), (/**
2667
+ }), ( /**
3243
2668
  * @param {?} error
3244
2669
  * @return {?}
3245
- */
3246
- function (error) {
2670
+ */function (error) {
3247
2671
  _this.followUpExecReturnError(error, execStatus, intervalID, fncCallBack);
3248
2672
  }));
3249
2673
  }
3250
2674
  if (type === 'executionID') {
3251
2675
  _this.jobExecutionSubscription$ = _this.getExecutionByExecutionID(execID, loading)
3252
- .subscribe((/**
3253
- * @param {?} response
3254
- * @return {?}
3255
- */
3256
- function (response) {
2676
+ .subscribe(( /**
2677
+ * @param {?} response
2678
+ * @return {?}
2679
+ */function (response) {
3257
2680
  _this.followUpExecReturnOk(execID, execStatus, response, intervalID, fncCallBack);
3258
- }), (/**
2681
+ }), ( /**
3259
2682
  * @param {?} error
3260
2683
  * @return {?}
3261
- */
3262
- function (error) {
2684
+ */function (error) {
3263
2685
  _this.followUpExecReturnError(error, execStatus, intervalID, fncCallBack);
3264
2686
  }));
3265
2687
  }
@@ -3274,16 +2696,7 @@
3274
2696
  * @param {?} fncCallBack
3275
2697
  * @return {?}
3276
2698
  */
3277
- TotvsScheduleExecutionService.prototype.followUpExecReturnOk = /**
3278
- * @private
3279
- * @param {?} execID
3280
- * @param {?} execStatus
3281
- * @param {?} response
3282
- * @param {?} intervalID
3283
- * @param {?} fncCallBack
3284
- * @return {?}
3285
- */
3286
- function (execID, execStatus, response, intervalID, fncCallBack) {
2699
+ TotvsScheduleExecutionService.prototype.followUpExecReturnOk = function (execID, execStatus, response, intervalID, fncCallBack) {
3287
2700
  if (response) {
3288
2701
  execStatus = response;
3289
2702
  }
@@ -3306,18 +2719,10 @@
3306
2719
  * @param {?} fncCallBack
3307
2720
  * @return {?}
3308
2721
  */
3309
- TotvsScheduleExecutionService.prototype.followUpExecReturnError = /**
3310
- * @private
3311
- * @param {?} error
3312
- * @param {?} execStatus
3313
- * @param {?} intervalID
3314
- * @param {?} fncCallBack
3315
- * @return {?}
3316
- */
3317
- function (error, execStatus, intervalID, fncCallBack) {
2722
+ TotvsScheduleExecutionService.prototype.followUpExecReturnError = function (error, execStatus, intervalID, fncCallBack) {
3318
2723
  /** @type {?} */
3319
2724
  var erroDesc = '';
3320
- if (error instanceof http.HttpErrorResponse) {
2725
+ if (error instanceof i1.HttpErrorResponse) {
3321
2726
  erroDesc = error.message;
3322
2727
  if (error.error) {
3323
2728
  erroDesc = '';
@@ -3346,12 +2751,7 @@
3346
2751
  * @param {?} num
3347
2752
  * @return {?}
3348
2753
  */
3349
- TotvsScheduleExecutionService.prototype.addZero = /**
3350
- * @private
3351
- * @param {?} num
3352
- * @return {?}
3353
- */
3354
- function (num) {
2754
+ TotvsScheduleExecutionService.prototype.addZero = function (num) {
3355
2755
  /** @type {?} */
3356
2756
  var str = "" + num;
3357
2757
  if (num < 10) {
@@ -3359,15 +2759,15 @@
3359
2759
  }
3360
2760
  return str;
3361
2761
  };
3362
- TotvsScheduleExecutionService.decorators = [
3363
- { type: core.Injectable }
3364
- ];
3365
- /** @nocollapse */
3366
- TotvsScheduleExecutionService.ctorParameters = function () { return [
3367
- { type: http.HttpClient }
3368
- ]; };
3369
2762
  return TotvsScheduleExecutionService;
3370
2763
  }());
2764
+ TotvsScheduleExecutionService.decorators = [
2765
+ { type: i0.Injectable }
2766
+ ];
2767
+ /** @nocollapse */
2768
+ TotvsScheduleExecutionService.ctorParameters = function () { return [
2769
+ { type: i1.HttpClient }
2770
+ ]; };
3371
2771
  if (false) {
3372
2772
  /**
3373
2773
  * @type {?}
@@ -3400,9 +2800,15 @@
3400
2800
 
3401
2801
  /**
3402
2802
  * @fileoverview added by tsickle
3403
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2803
+ * Generated from: lib/components/totvs-schedule-execution/totvs-schedule-execution.component.ts
2804
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3404
2805
  */
3405
2806
  var TotvsScheduleExecutionComponent = /** @class */ (function () {
2807
+ /**
2808
+ * @param {?} poI18nService
2809
+ * @param {?} rpwService
2810
+ * @param {?} poNotification
2811
+ */
3406
2812
  function TotvsScheduleExecutionComponent(poI18nService, rpwService, poNotification) {
3407
2813
  this.poI18nService = poI18nService;
3408
2814
  this.rpwService = rpwService;
@@ -3411,17 +2817,14 @@
3411
2817
  this.programVersion = '';
3412
2818
  this.disabledParams = false;
3413
2819
  this.loading = false;
3414
- this.endExecution = new core.EventEmitter();
2820
+ this.endExecution = new i0.EventEmitter();
3415
2821
  this.jsonObject = {};
3416
2822
  this.literals = {};
3417
2823
  }
3418
2824
  /**
3419
2825
  * @return {?}
3420
2826
  */
3421
- TotvsScheduleExecutionComponent.prototype.ngOnInit = /**
3422
- * @return {?}
3423
- */
3424
- function () {
2827
+ TotvsScheduleExecutionComponent.prototype.ngOnInit = function () {
3425
2828
  /* VERIFICAR COMO FICARÁ A TRADUÇÃO
3426
2829
  forkJoin(
3427
2830
  this.poI18nService.getLiterals(),
@@ -3435,10 +2838,7 @@
3435
2838
  /**
3436
2839
  * @return {?}
3437
2840
  */
3438
- TotvsScheduleExecutionComponent.prototype.setupComponents = /**
3439
- * @return {?}
3440
- */
3441
- function () {
2841
+ TotvsScheduleExecutionComponent.prototype.setupComponents = function () {
3442
2842
  this.executionTypeOptions = [
3443
2843
  { label: 'Executar Hoje', value: 1 },
3444
2844
  { label: 'Agendar Execução', value: 2 }
@@ -3473,11 +2873,7 @@
3473
2873
  * @param {?} schParam
3474
2874
  * @return {?}
3475
2875
  */
3476
- TotvsScheduleExecutionComponent.prototype.setScheduleParameters = /**
3477
- * @param {?} schParam
3478
- * @return {?}
3479
- */
3480
- function (schParam) {
2876
+ TotvsScheduleExecutionComponent.prototype.setScheduleParameters = function (schParam) {
3481
2877
  if (!schParam) {
3482
2878
  return;
3483
2879
  }
@@ -3487,47 +2883,31 @@
3487
2883
  * @param {?} value
3488
2884
  * @return {?}
3489
2885
  */
3490
- TotvsScheduleExecutionComponent.prototype.fieldRpwServiceFormat = /**
3491
- * @param {?} value
3492
- * @return {?}
3493
- */
3494
- function (value) {
2886
+ TotvsScheduleExecutionComponent.prototype.fieldRpwServiceFormat = function (value) {
3495
2887
  return value.code + " - " + value.name;
3496
2888
  };
3497
2889
  /**
3498
2890
  * @return {?}
3499
2891
  */
3500
- TotvsScheduleExecutionComponent.prototype.isExecutionSchedule = /**
3501
- * @return {?}
3502
- */
3503
- function () {
2892
+ TotvsScheduleExecutionComponent.prototype.isExecutionSchedule = function () {
3504
2893
  return (this.model.executionType === 2);
3505
2894
  };
3506
2895
  /**
3507
2896
  * @return {?}
3508
2897
  */
3509
- TotvsScheduleExecutionComponent.prototype.isRepeatExecution = /**
3510
- * @return {?}
3511
- */
3512
- function () {
2898
+ TotvsScheduleExecutionComponent.prototype.isRepeatExecution = function () {
3513
2899
  return this.model.repeatExecution;
3514
2900
  };
3515
2901
  /**
3516
2902
  * @return {?}
3517
2903
  */
3518
- TotvsScheduleExecutionComponent.prototype.isFrenquency = /**
3519
- * @return {?}
3520
- */
3521
- function () {
2904
+ TotvsScheduleExecutionComponent.prototype.isFrenquency = function () {
3522
2905
  return (this.model.frequency === 'yes');
3523
2906
  };
3524
2907
  /**
3525
2908
  * @return {?}
3526
2909
  */
3527
- TotvsScheduleExecutionComponent.prototype.changeRepeatExecution = /**
3528
- * @return {?}
3529
- */
3530
- function () {
2910
+ TotvsScheduleExecutionComponent.prototype.changeRepeatExecution = function () {
3531
2911
  /** @type {?} */
3532
2912
  var date = new Date();
3533
2913
  if (!this.model.execAppointHourInit) {
@@ -3545,10 +2925,7 @@
3545
2925
  /**
3546
2926
  * @return {?}
3547
2927
  */
3548
- TotvsScheduleExecutionComponent.prototype.changeExecutionType = /**
3549
- * @return {?}
3550
- */
3551
- function () {
2928
+ TotvsScheduleExecutionComponent.prototype.changeExecutionType = function () {
3552
2929
  /** @type {?} */
3553
2930
  var date = new Date();
3554
2931
  this.model.execAppointDate = date;
@@ -3557,42 +2934,27 @@
3557
2934
  /**
3558
2935
  * @return {?}
3559
2936
  */
3560
- TotvsScheduleExecutionComponent.prototype.changeTypeFrequency = /**
3561
- * @return {?}
3562
- */
3563
- function () {
2937
+ TotvsScheduleExecutionComponent.prototype.changeTypeFrequency = function () {
3564
2938
  };
3565
2939
  /**
3566
2940
  * @param {?} codTab
3567
2941
  * @return {?}
3568
2942
  */
3569
- TotvsScheduleExecutionComponent.prototype.getActiveTab = /**
3570
- * @param {?} codTab
3571
- * @return {?}
3572
- */
3573
- function (codTab) {
2943
+ TotvsScheduleExecutionComponent.prototype.getActiveTab = function (codTab) {
3574
2944
  return (this.model.repeatType === codTab);
3575
2945
  };
3576
2946
  /**
3577
2947
  * @param {?} codTab
3578
2948
  * @return {?}
3579
2949
  */
3580
- TotvsScheduleExecutionComponent.prototype.setActiveTab = /**
3581
- * @param {?} codTab
3582
- * @return {?}
3583
- */
3584
- function (codTab) {
2950
+ TotvsScheduleExecutionComponent.prototype.setActiveTab = function (codTab) {
3585
2951
  this.model.repeatType = codTab;
3586
2952
  };
3587
2953
  /**
3588
2954
  * @param {?} num
3589
2955
  * @return {?}
3590
2956
  */
3591
- TotvsScheduleExecutionComponent.prototype.addZero = /**
3592
- * @param {?} num
3593
- * @return {?}
3594
- */
3595
- function (num) {
2957
+ TotvsScheduleExecutionComponent.prototype.addZero = function (num) {
3596
2958
  /** @type {?} */
3597
2959
  var str = "" + num;
3598
2960
  if (num < 10) {
@@ -3603,10 +2965,7 @@
3603
2965
  /**
3604
2966
  * @return {?}
3605
2967
  */
3606
- TotvsScheduleExecutionComponent.prototype.executeSchedule = /**
3607
- * @return {?}
3608
- */
3609
- function () {
2968
+ TotvsScheduleExecutionComponent.prototype.executeSchedule = function () {
3610
2969
  var _this = this;
3611
2970
  if (this.disabledParams) {
3612
2971
  return;
@@ -3635,10 +2994,9 @@
3635
2994
  this.jsonObject.executionParameter.parametros[4] = {};
3636
2995
  this.jsonObject.executionParameter.parametros[4].parametros_negocio = this.parameters;
3637
2996
  // Executa hoje ou agendada
3638
- this.rpwService.createExecution(this.jsonObject, this.loading).subscribe((/**
2997
+ this.rpwService.createExecution(this.jsonObject, this.loading).subscribe(( /**
3639
2998
  * @return {?}
3640
- */
3641
- function () {
2999
+ */function () {
3642
3000
  _this.poNotification.success('Agendamento realizado com sucesso !');
3643
3001
  }));
3644
3002
  if (this.model.repeatExecution) {
@@ -3675,10 +3033,9 @@
3675
3033
  };
3676
3034
  }
3677
3035
  // Executa a diária, semanal ou mensal
3678
- this.rpwService.createExecution(this.jsonObject, this.loading).subscribe((/**
3036
+ this.rpwService.createExecution(this.jsonObject, this.loading).subscribe(( /**
3679
3037
  * @return {?}
3680
- */
3681
- function () {
3038
+ */function () {
3682
3039
  }));
3683
3040
  }
3684
3041
  this.endExecution.emit(this.model);
@@ -3688,12 +3045,7 @@
3688
3045
  * @param {?} type
3689
3046
  * @return {?}
3690
3047
  */
3691
- TotvsScheduleExecutionComponent.prototype.getHourOrMinute = /**
3692
- * @param {?} value
3693
- * @param {?} type
3694
- * @return {?}
3695
- */
3696
- function (value, type) {
3048
+ TotvsScheduleExecutionComponent.prototype.getHourOrMinute = function (value, type) {
3697
3049
  if (type === 'h') {
3698
3050
  return +value.substring(0, 2);
3699
3051
  }
@@ -3706,12 +3058,7 @@
3706
3058
  * @param {?} hourFinal
3707
3059
  * @return {?}
3708
3060
  */
3709
- TotvsScheduleExecutionComponent.prototype.compareHour = /**
3710
- * @param {?} hourInit
3711
- * @param {?} hourFinal
3712
- * @return {?}
3713
- */
3714
- function (hourInit, hourFinal) {
3061
+ TotvsScheduleExecutionComponent.prototype.compareHour = function (hourInit, hourFinal) {
3715
3062
  if (hourInit === hourFinal) {
3716
3063
  return false;
3717
3064
  }
@@ -3726,10 +3073,7 @@
3726
3073
  /**
3727
3074
  * @return {?}
3728
3075
  */
3729
- TotvsScheduleExecutionComponent.prototype.validate = /**
3730
- * @return {?}
3731
- */
3732
- function () {
3076
+ TotvsScheduleExecutionComponent.prototype.validate = function () {
3733
3077
  if (!this.scheduleExecutionForm.valid) {
3734
3078
  this.poNotification.error('Verifique as inconsistências em tela.');
3735
3079
  return false;
@@ -3768,32 +3112,32 @@
3768
3112
  }
3769
3113
  return true;
3770
3114
  };
3771
- TotvsScheduleExecutionComponent.decorators = [
3772
- { type: core.Component, args: [{
3773
- selector: 'app-totvs-schedule-execution',
3774
- template: "<form #scheduleExecutionForm=\"ngForm\">\r\n <div class=\"po-row po-sm-12 po-md-12 po-lg-12 po-xl-12\">\r\n <po-radio-group \r\n class=\"po-sm-12 po-md-12 po-lg-12 po-xl-12\"\r\n name=\"executionType\"\r\n p-label=\"Data de Execu\u00E7\u00E3o\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.executionType\"\r\n [p-options]=\"executionTypeOptions\"\r\n (p-change)=\"changeExecutionType()\">\r\n </po-radio-group>\r\n\r\n <po-datepicker *ngIf=isExecutionSchedule()\r\n class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"\r\n name=\"model.execAppointDate\"\r\n p-label=\"Agendar para\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.execAppointDate\">\r\n </po-datepicker>\r\n\r\n <po-input *ngIf=isExecutionSchedule()\r\n class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"\r\n name=\"execAppointHour\"\r\n p-label=\"Hora\"\r\n p-mask=\"99:99\"\r\n p-mask-format-model=\"true\"\r\n p-pattern=\"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$\"\r\n p-error-pattern=\"Hora inv\u00E1lida\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.execAppointHour\">\r\n </po-input>\r\n </div>\r\n\r\n <div class=\"po-row po-sm-12 po-md-12 po-lg-12 po-xl-12\">\r\n <po-lookup\r\n class=\"po-sm-12 po-md-12 po-lg-12 po-xl-12\"\r\n name=\"executionServer\"\r\n p-label=\"Servidor de Execu\u00E7\u00E3o\"\r\n p-placeholder=\"Servidor de Execu\u00E7\u00E3o\"\r\n [p-columns]=\"zoomRpwServiceColumns\"\r\n [p-field-format]=\"fieldRpwServiceFormat\"\r\n [p-filter-service]=\"rpwService\"\r\n p-field-label=\"name\"\r\n p-field-value=\"code\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.executionServer\">\r\n </po-lookup>\r\n </div>\r\n\r\n <div class=\"po-row po-sm-12 po-md-12 po-lg-12 po-xl-12\">\r\n <po-switch\r\n class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"\r\n name=\"repeatExecution\"\r\n p-label=\"Repetir ocorr\u00EAncia ?\"\r\n p-label-off=\"N\u00E3o\"\r\n p-label-on=\"Sim\"\r\n [(ngModel)]=\"model.repeatExecution\"\r\n [p-disabled]=\"disabledParams\"\r\n (click)=\"changeRepeatExecution()\">\r\n </po-switch>\r\n </div>\r\n\r\n <div class=\"po-row\" *ngIf=\"isRepeatExecution()\">\r\n \r\n <po-tabs>\r\n\r\n <po-tab \r\n p-label=\"Di\u00E1ria\" \r\n [p-active]=\"getActiveTab(1)\" \r\n (p-click)=\"setActiveTab(1)\">\r\n\r\n <div class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\">\r\n <po-radio-group \r\n class=\"po-sm-12 po-md-12 po-lg-12 po-xl-12\"\r\n name=\"frequencyDaily\"\r\n p-label=\"Frequ\u00EAncia\"\r\n p-columns=1\r\n [(ngModel)]=\"model.frequency\"\r\n [p-disabled]=\"disabledParams\"\r\n [p-options]=\"frequencyOptions\"\r\n (p-change)=\"changeTypeFrequency()\">\r\n </po-radio-group>\r\n </div>\r\n \r\n <div class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"> \r\n <po-input\r\n class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"\r\n name=\"execAppointHourInitDaily\"\r\n p-label=\"Hora In\u00EDcio\"\r\n p-mask=\"99:99\"\r\n p-mask-format-model=\"true\"\r\n p-pattern=\"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$\"\r\n p-error-pattern=\"Hora inv\u00E1lida\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.execAppointHourInit\">\r\n </po-input>\r\n \r\n <po-input *ngIf=\"isFrenquency()\"\r\n class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"\r\n name=\"execAppointHourFinalDaily\"\r\n p-label=\"Hora Fim\"\r\n p-mask=\"99:99\"\r\n p-mask-format-model=\"true\"\r\n p-pattern=\"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$\"\r\n p-error-pattern=\"Hora inv\u00E1lida\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.execAppointHourFinal\">\r\n </po-input>\r\n \r\n <po-number *ngIf=\"isFrenquency()\"\r\n class=\"po-sm-5 po-md-5 po-lg-5 po-xl-5\"\r\n name=\"frequencyValueDaily\"\r\n p-label=\"A cada\"\r\n p-minlength=\"1\"\r\n p-maxlength=\"3\"\r\n p-min=\"0\"\r\n p-max=\"999\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.frequencyValue\">\r\n </po-number>\r\n \r\n <po-select *ngIf=\"isFrenquency()\"\r\n class=\"po-mt-3 po-sm-7 po-md-7 po-lg-7 po-xl-7\"\r\n name=\"frequencyTypeDaily\"\r\n p-label=\"\"\r\n [p-options]=\"frequencyTypeOptions\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.frequencyType\">\r\n </po-select>\r\n </div>\r\n </po-tab>\r\n\r\n <po-tab \r\n p-label=\"Semanal\"\r\n [p-active]=\"getActiveTab(2)\"\r\n (p-click)=\"setActiveTab(2)\">\r\n\r\n <div class=\"po-row po-sm-12 po-md-12 po-lg-12 po-xl-12\">\r\n <po-multiselect\r\n class=\"po-sm-12 po-md-12 po-lg-12 po-xl-12\"\r\n name=\"selectWeeklys\"\r\n p-label=\"Dias da Semana\"\r\n p-placeholder=\"Escolha os dias da semana\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.selectWeeklys\"\r\n [p-options]=\"weeklyOptions\">\r\n </po-multiselect>\r\n </div>\r\n\r\n <div class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\">\r\n <po-radio-group \r\n class=\"po-sm-12 po-md-12 po-lg-12 po-xl-12\"\r\n name=\"frequencyWeekly\"\r\n p-label=\"Frequ\u00EAncia\"\r\n p-columns=1\r\n [(ngModel)]=\"model.frequency\"\r\n [p-disabled]=\"disabledParams\"\r\n [p-options]=\"frequencyOptions\"\r\n (p-change)=\"changeTypeFrequency()\">\r\n </po-radio-group>\r\n </div>\r\n\r\n <div class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\">\r\n <po-input\r\n class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"\r\n name=\"execAppointHourInitWeekly\"\r\n p-label=\"Hora In\u00EDcio\"\r\n p-mask=\"99:99\"\r\n p-mask-format-model=\"true\"\r\n p-pattern=\"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$\"\r\n p-error-pattern=\"Hora inv\u00E1lida\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.execAppointHourInit\">\r\n </po-input>\r\n\r\n <po-input *ngIf=\"isFrenquency()\"\r\n class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"\r\n name=\"execAppointHourFinalWeekly\"\r\n p-label=\"Hora Fim\"\r\n p-mask=\"99:99\"\r\n p-mask-format-model=\"true\"\r\n p-pattern=\"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$\"\r\n p-error-pattern=\"Hora inv\u00E1lida\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.execAppointHourFinal\">\r\n </po-input>\r\n\r\n <po-number *ngIf=\"isFrenquency()\"\r\n class=\"po-sm-5 po-md-5 po-lg-5 po-xl-5\"\r\n name=\"frequencyValueWeekly\"\r\n p-label=\"A cada\"\r\n p-minlength=\"1\"\r\n p-maxlength=\"3\"\r\n p-min=\"0\"\r\n p-max=\"999\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.frequencyValue\">\r\n </po-number>\r\n\r\n <po-select *ngIf=\"isFrenquency()\"\r\n class=\"po-mt-3 po-sm-7 po-md-7 po-lg-7 po-xl-7\"\r\n name=\"frequencyTypeWeekly\"\r\n p-label=\"\"\r\n [p-options]=\"frequencyTypeOptions\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.frequencyType\">\r\n </po-select>\r\n </div>\r\n </po-tab>\r\n\r\n <po-tab \r\n p-label=\"Mensal\" \r\n [p-active]=\"getActiveTab(3)\" \r\n (p-click)=\"setActiveTab(3)\">\r\n\r\n <div class=\"po-row po-sm-12 po-md-12 po-lg-12 po-xl-12\">\r\n <po-number\r\n class=\"po-sm-3 po-md-3 po-lg-3 po-xl-3\"\r\n name=\"dayOfMonth\"\r\n p-label=\"Dia do m\u00EAs\"\r\n p-minlength=\"1\"\r\n p-maxlength=\"2\"\r\n p-min=\"0\"\r\n p-max=\"31\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.dayOfMonth\">\r\n </po-number>\r\n </div>\r\n\r\n <div class=\"po-row po-sm-6 po-md-6 po-lg-6 po-xl-6\">\r\n <po-radio-group \r\n class=\"po-sm-12 po-md-12 po-lg-12 po-xl-12\"\r\n name=\"frequencyMonthly\"\r\n p-label=\"Frequ\u00EAncia\"\r\n p-columns=1\r\n [(ngModel)]=\"model.frequency\"\r\n [p-disabled]=\"disabledParams\"\r\n [p-options]=\"frequencyOptions\"\r\n (p-change)=\"changeTypeFrequency()\">\r\n </po-radio-group>\r\n </div>\r\n\r\n <div class=\"po-row po-sm-6 po-md-6 po-lg-6 po-xl-6\">\r\n <po-input\r\n class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"\r\n name=\"execAppointHourInitMonthly\"\r\n p-label=\"Hora In\u00EDcio\"\r\n p-mask=\"99:99\"\r\n p-mask-format-model=\"true\"\r\n p-pattern=\"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$\"\r\n p-error-pattern=\"Hora inv\u00E1lida\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.execAppointHourInit\">\r\n </po-input>\r\n\r\n <po-input *ngIf=\"isFrenquency()\"\r\n class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"\r\n name=\"execAppointHourFinalWeekly\"\r\n p-label=\"Hora Fim\"\r\n p-mask=\"99:99\"\r\n p-mask-format-model=\"true\"\r\n p-pattern=\"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$\"\r\n p-error-pattern=\"Hora inv\u00E1lida\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.execAppointHourFinal\">\r\n </po-input>\r\n\r\n <po-number *ngIf=\"isFrenquency()\"\r\n class=\"po-sm-5 po-md-5 po-lg-5 po-xl-5\"\r\n name=\"frequencyValueWeekly\"\r\n p-label=\"A cada\"\r\n p-minlength=\"1\"\r\n p-maxlength=\"3\"\r\n p-min=\"0\"\r\n p-max=\"999\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.frequencyValue\">\r\n </po-number>\r\n\r\n <po-select *ngIf=\"isFrenquency()\"\r\n class=\"po-mt-3 po-sm-7 po-md-7 po-lg-7 po-xl-7\"\r\n name=\"frequencyTypeWeekly\"\r\n p-label=\"\"\r\n [p-options]=\"frequencyTypeOptions\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.frequencyType\">\r\n </po-select>\r\n </div>\r\n </po-tab>\r\n </po-tabs>\r\n </div>\r\n\r\n <div class=\"po-sm-12 po-md-12 po-lg-12 po-xl-12\" style=\"padding-top: 15px;\">\r\n <po-button\r\n style=\"float: right;\"\r\n p-label=\"Gerar Agendamento RPW\"\r\n [p-disabled]=\"disabledParams\"\r\n (click)=\"executeSchedule()\">\r\n </po-button>\r\n </div>\r\n</form>\r\n",
3775
- styles: [""]
3776
- }] }
3777
- ];
3778
- /** @nocollapse */
3779
- TotvsScheduleExecutionComponent.ctorParameters = function () { return [
3780
- { type: ngComponents.PoI18nService },
3781
- { type: TotvsScheduleExecutionService },
3782
- { type: ngComponents.PoNotificationService }
3783
- ]; };
3784
- TotvsScheduleExecutionComponent.propDecorators = {
3785
- scheduleExecutionForm: [{ type: core.ViewChild, args: ['scheduleExecutionForm', { static: true },] }],
3786
- programName: [{ type: core.Input }],
3787
- externalName: [{ type: core.Input }],
3788
- programEMS5: [{ type: core.Input }],
3789
- programVersion: [{ type: core.Input }],
3790
- parameters: [{ type: core.Input }],
3791
- disabledParams: [{ type: core.Input }],
3792
- loading: [{ type: core.Input }],
3793
- endExecution: [{ type: core.Output }]
3794
- };
3795
3115
  return TotvsScheduleExecutionComponent;
3796
3116
  }());
3117
+ TotvsScheduleExecutionComponent.decorators = [
3118
+ { type: i0.Component, args: [{
3119
+ selector: 'app-totvs-schedule-execution',
3120
+ template: "<form #scheduleExecutionForm=\"ngForm\">\r\n <div class=\"po-row po-sm-12 po-md-12 po-lg-12 po-xl-12\">\r\n <po-radio-group \r\n class=\"po-sm-12 po-md-12 po-lg-12 po-xl-12\"\r\n name=\"executionType\"\r\n p-label=\"Data de Execu\u00E7\u00E3o\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.executionType\"\r\n [p-options]=\"executionTypeOptions\"\r\n (p-change)=\"changeExecutionType()\">\r\n </po-radio-group>\r\n\r\n <po-datepicker *ngIf=isExecutionSchedule()\r\n class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"\r\n name=\"model.execAppointDate\"\r\n p-label=\"Agendar para\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.execAppointDate\">\r\n </po-datepicker>\r\n\r\n <po-input *ngIf=isExecutionSchedule()\r\n class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"\r\n name=\"execAppointHour\"\r\n p-label=\"Hora\"\r\n p-mask=\"99:99\"\r\n p-mask-format-model=\"true\"\r\n p-pattern=\"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$\"\r\n p-error-pattern=\"Hora inv\u00E1lida\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.execAppointHour\">\r\n </po-input>\r\n </div>\r\n\r\n <div class=\"po-row po-sm-12 po-md-12 po-lg-12 po-xl-12\">\r\n <po-lookup\r\n class=\"po-sm-12 po-md-12 po-lg-12 po-xl-12\"\r\n name=\"executionServer\"\r\n p-label=\"Servidor de Execu\u00E7\u00E3o\"\r\n p-placeholder=\"Servidor de Execu\u00E7\u00E3o\"\r\n [p-columns]=\"zoomRpwServiceColumns\"\r\n [p-field-format]=\"fieldRpwServiceFormat\"\r\n [p-filter-service]=\"rpwService\"\r\n p-field-label=\"name\"\r\n p-field-value=\"code\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.executionServer\">\r\n </po-lookup>\r\n </div>\r\n\r\n <div class=\"po-row po-sm-12 po-md-12 po-lg-12 po-xl-12\">\r\n <po-switch\r\n class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"\r\n name=\"repeatExecution\"\r\n p-label=\"Repetir ocorr\u00EAncia ?\"\r\n p-label-off=\"N\u00E3o\"\r\n p-label-on=\"Sim\"\r\n [(ngModel)]=\"model.repeatExecution\"\r\n [p-disabled]=\"disabledParams\"\r\n (click)=\"changeRepeatExecution()\">\r\n </po-switch>\r\n </div>\r\n\r\n <div class=\"po-row\" *ngIf=\"isRepeatExecution()\">\r\n \r\n <po-tabs>\r\n\r\n <po-tab \r\n p-label=\"Di\u00E1ria\" \r\n [p-active]=\"getActiveTab(1)\" \r\n (p-click)=\"setActiveTab(1)\">\r\n\r\n <div class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\">\r\n <po-radio-group \r\n class=\"po-sm-12 po-md-12 po-lg-12 po-xl-12\"\r\n name=\"frequencyDaily\"\r\n p-label=\"Frequ\u00EAncia\"\r\n p-columns=1\r\n [(ngModel)]=\"model.frequency\"\r\n [p-disabled]=\"disabledParams\"\r\n [p-options]=\"frequencyOptions\"\r\n (p-change)=\"changeTypeFrequency()\">\r\n </po-radio-group>\r\n </div>\r\n \r\n <div class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"> \r\n <po-input\r\n class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"\r\n name=\"execAppointHourInitDaily\"\r\n p-label=\"Hora In\u00EDcio\"\r\n p-mask=\"99:99\"\r\n p-mask-format-model=\"true\"\r\n p-pattern=\"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$\"\r\n p-error-pattern=\"Hora inv\u00E1lida\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.execAppointHourInit\">\r\n </po-input>\r\n \r\n <po-input *ngIf=\"isFrenquency()\"\r\n class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"\r\n name=\"execAppointHourFinalDaily\"\r\n p-label=\"Hora Fim\"\r\n p-mask=\"99:99\"\r\n p-mask-format-model=\"true\"\r\n p-pattern=\"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$\"\r\n p-error-pattern=\"Hora inv\u00E1lida\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.execAppointHourFinal\">\r\n </po-input>\r\n \r\n <po-number *ngIf=\"isFrenquency()\"\r\n class=\"po-sm-5 po-md-5 po-lg-5 po-xl-5\"\r\n name=\"frequencyValueDaily\"\r\n p-label=\"A cada\"\r\n p-minlength=\"1\"\r\n p-maxlength=\"3\"\r\n p-min=\"0\"\r\n p-max=\"999\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.frequencyValue\">\r\n </po-number>\r\n \r\n <po-select *ngIf=\"isFrenquency()\"\r\n class=\"po-mt-3 po-sm-7 po-md-7 po-lg-7 po-xl-7\"\r\n name=\"frequencyTypeDaily\"\r\n p-label=\"\"\r\n [p-options]=\"frequencyTypeOptions\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.frequencyType\">\r\n </po-select>\r\n </div>\r\n </po-tab>\r\n\r\n <po-tab \r\n p-label=\"Semanal\"\r\n [p-active]=\"getActiveTab(2)\"\r\n (p-click)=\"setActiveTab(2)\">\r\n\r\n <div class=\"po-row po-sm-12 po-md-12 po-lg-12 po-xl-12\">\r\n <po-multiselect\r\n class=\"po-sm-12 po-md-12 po-lg-12 po-xl-12\"\r\n name=\"selectWeeklys\"\r\n p-label=\"Dias da Semana\"\r\n p-placeholder=\"Escolha os dias da semana\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.selectWeeklys\"\r\n [p-options]=\"weeklyOptions\">\r\n </po-multiselect>\r\n </div>\r\n\r\n <div class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\">\r\n <po-radio-group \r\n class=\"po-sm-12 po-md-12 po-lg-12 po-xl-12\"\r\n name=\"frequencyWeekly\"\r\n p-label=\"Frequ\u00EAncia\"\r\n p-columns=1\r\n [(ngModel)]=\"model.frequency\"\r\n [p-disabled]=\"disabledParams\"\r\n [p-options]=\"frequencyOptions\"\r\n (p-change)=\"changeTypeFrequency()\">\r\n </po-radio-group>\r\n </div>\r\n\r\n <div class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\">\r\n <po-input\r\n class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"\r\n name=\"execAppointHourInitWeekly\"\r\n p-label=\"Hora In\u00EDcio\"\r\n p-mask=\"99:99\"\r\n p-mask-format-model=\"true\"\r\n p-pattern=\"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$\"\r\n p-error-pattern=\"Hora inv\u00E1lida\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.execAppointHourInit\">\r\n </po-input>\r\n\r\n <po-input *ngIf=\"isFrenquency()\"\r\n class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"\r\n name=\"execAppointHourFinalWeekly\"\r\n p-label=\"Hora Fim\"\r\n p-mask=\"99:99\"\r\n p-mask-format-model=\"true\"\r\n p-pattern=\"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$\"\r\n p-error-pattern=\"Hora inv\u00E1lida\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.execAppointHourFinal\">\r\n </po-input>\r\n\r\n <po-number *ngIf=\"isFrenquency()\"\r\n class=\"po-sm-5 po-md-5 po-lg-5 po-xl-5\"\r\n name=\"frequencyValueWeekly\"\r\n p-label=\"A cada\"\r\n p-minlength=\"1\"\r\n p-maxlength=\"3\"\r\n p-min=\"0\"\r\n p-max=\"999\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.frequencyValue\">\r\n </po-number>\r\n\r\n <po-select *ngIf=\"isFrenquency()\"\r\n class=\"po-mt-3 po-sm-7 po-md-7 po-lg-7 po-xl-7\"\r\n name=\"frequencyTypeWeekly\"\r\n p-label=\"\"\r\n [p-options]=\"frequencyTypeOptions\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.frequencyType\">\r\n </po-select>\r\n </div>\r\n </po-tab>\r\n\r\n <po-tab \r\n p-label=\"Mensal\" \r\n [p-active]=\"getActiveTab(3)\" \r\n (p-click)=\"setActiveTab(3)\">\r\n\r\n <div class=\"po-row po-sm-12 po-md-12 po-lg-12 po-xl-12\">\r\n <po-number\r\n class=\"po-sm-3 po-md-3 po-lg-3 po-xl-3\"\r\n name=\"dayOfMonth\"\r\n p-label=\"Dia do m\u00EAs\"\r\n p-minlength=\"1\"\r\n p-maxlength=\"2\"\r\n p-min=\"0\"\r\n p-max=\"31\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.dayOfMonth\">\r\n </po-number>\r\n </div>\r\n\r\n <div class=\"po-row po-sm-6 po-md-6 po-lg-6 po-xl-6\">\r\n <po-radio-group \r\n class=\"po-sm-12 po-md-12 po-lg-12 po-xl-12\"\r\n name=\"frequencyMonthly\"\r\n p-label=\"Frequ\u00EAncia\"\r\n p-columns=1\r\n [(ngModel)]=\"model.frequency\"\r\n [p-disabled]=\"disabledParams\"\r\n [p-options]=\"frequencyOptions\"\r\n (p-change)=\"changeTypeFrequency()\">\r\n </po-radio-group>\r\n </div>\r\n\r\n <div class=\"po-row po-sm-6 po-md-6 po-lg-6 po-xl-6\">\r\n <po-input\r\n class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"\r\n name=\"execAppointHourInitMonthly\"\r\n p-label=\"Hora In\u00EDcio\"\r\n p-mask=\"99:99\"\r\n p-mask-format-model=\"true\"\r\n p-pattern=\"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$\"\r\n p-error-pattern=\"Hora inv\u00E1lida\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.execAppointHourInit\">\r\n </po-input>\r\n\r\n <po-input *ngIf=\"isFrenquency()\"\r\n class=\"po-sm-6 po-md-6 po-lg-6 po-xl-6\"\r\n name=\"execAppointHourFinalWeekly\"\r\n p-label=\"Hora Fim\"\r\n p-mask=\"99:99\"\r\n p-mask-format-model=\"true\"\r\n p-pattern=\"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$\"\r\n p-error-pattern=\"Hora inv\u00E1lida\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.execAppointHourFinal\">\r\n </po-input>\r\n\r\n <po-number *ngIf=\"isFrenquency()\"\r\n class=\"po-sm-5 po-md-5 po-lg-5 po-xl-5\"\r\n name=\"frequencyValueWeekly\"\r\n p-label=\"A cada\"\r\n p-minlength=\"1\"\r\n p-maxlength=\"3\"\r\n p-min=\"0\"\r\n p-max=\"999\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.frequencyValue\">\r\n </po-number>\r\n\r\n <po-select *ngIf=\"isFrenquency()\"\r\n class=\"po-mt-3 po-sm-7 po-md-7 po-lg-7 po-xl-7\"\r\n name=\"frequencyTypeWeekly\"\r\n p-label=\"\"\r\n [p-options]=\"frequencyTypeOptions\"\r\n [p-disabled]=\"disabledParams\"\r\n [(ngModel)]=\"model.frequencyType\">\r\n </po-select>\r\n </div>\r\n </po-tab>\r\n </po-tabs>\r\n </div>\r\n\r\n <div class=\"po-sm-12 po-md-12 po-lg-12 po-xl-12\" style=\"padding-top: 15px;\">\r\n <po-button\r\n style=\"float: right;\"\r\n p-label=\"Gerar Agendamento RPW\"\r\n [p-disabled]=\"disabledParams\"\r\n (click)=\"executeSchedule()\">\r\n </po-button>\r\n </div>\r\n</form>\r\n",
3121
+ styles: [""]
3122
+ }] }
3123
+ ];
3124
+ /** @nocollapse */
3125
+ TotvsScheduleExecutionComponent.ctorParameters = function () { return [
3126
+ { type: ngComponents.PoI18nService },
3127
+ { type: TotvsScheduleExecutionService },
3128
+ { type: ngComponents.PoNotificationService }
3129
+ ]; };
3130
+ TotvsScheduleExecutionComponent.propDecorators = {
3131
+ scheduleExecutionForm: [{ type: i0.ViewChild, args: ['scheduleExecutionForm', { static: true },] }],
3132
+ programName: [{ type: i0.Input }],
3133
+ externalName: [{ type: i0.Input }],
3134
+ programEMS5: [{ type: i0.Input }],
3135
+ programVersion: [{ type: i0.Input }],
3136
+ parameters: [{ type: i0.Input }],
3137
+ disabledParams: [{ type: i0.Input }],
3138
+ loading: [{ type: i0.Input }],
3139
+ endExecution: [{ type: i0.Output }]
3140
+ };
3797
3141
  if (false) {
3798
3142
  /** @type {?} */
3799
3143
  TotvsScheduleExecutionComponent.prototype.scheduleExecutionForm;
@@ -3842,7 +3186,8 @@
3842
3186
 
3843
3187
  /**
3844
3188
  * @fileoverview added by tsickle
3845
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3189
+ * Generated from: lib/pipes/dts-date-format.pipe.ts
3190
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3846
3191
  */
3847
3192
  var DtsDateFormatPipe = /** @class */ (function () {
3848
3193
  function DtsDateFormatPipe() {
@@ -3852,12 +3197,7 @@
3852
3197
  * @param {?=} format
3853
3198
  * @return {?}
3854
3199
  */
3855
- DtsDateFormatPipe.prototype.transform = /**
3856
- * @param {?} value
3857
- * @param {?=} format
3858
- * @return {?}
3859
- */
3860
- function (value, format) {
3200
+ DtsDateFormatPipe.prototype.transform = function (value, format) {
3861
3201
  if (format === void 0) { format = 'dd/MM/yyyy'; }
3862
3202
  var _a = value.split('-'), year = _a[0], month = _a[1], day = _a[2];
3863
3203
  /** @type {?} */
@@ -3866,17 +3206,18 @@
3866
3206
  .replace('yyyy', year);
3867
3207
  return formattedDate;
3868
3208
  };
3869
- DtsDateFormatPipe.decorators = [
3870
- { type: core.Pipe, args: [{
3871
- name: 'dtsDateFormat'
3872
- },] }
3873
- ];
3874
3209
  return DtsDateFormatPipe;
3875
- }());
3210
+ }());
3211
+ DtsDateFormatPipe.decorators = [
3212
+ { type: i0.Pipe, args: [{
3213
+ name: 'dtsDateFormat'
3214
+ },] }
3215
+ ];
3876
3216
 
3877
3217
  /**
3878
3218
  * @fileoverview added by tsickle
3879
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3219
+ * Generated from: lib/dts-backoffice-util.module.ts
3220
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3880
3221
  */
3881
3222
  var DtsBackofficeUtilsModule = /** @class */ (function () {
3882
3223
  function DtsBackofficeUtilsModule() {
@@ -3884,38 +3225,47 @@
3884
3225
  /**
3885
3226
  * @return {?}
3886
3227
  */
3887
- DtsBackofficeUtilsModule.forRoot = /**
3888
- * @return {?}
3889
- */
3890
- function () {
3228
+ DtsBackofficeUtilsModule.forRoot = function () {
3891
3229
  return {
3892
3230
  ngModule: DtsBackofficeUtilsModule,
3893
3231
  providers: [TotvsScheduleExecutionService]
3894
3232
  };
3895
3233
  };
3896
- DtsBackofficeUtilsModule.decorators = [
3897
- { type: core.NgModule, args: [{
3898
- declarations: [
3899
- TotvsScheduleExecutionComponent,
3900
- DtsDateFormatPipe
3901
- ],
3902
- imports: [
3903
- common.CommonModule,
3904
- ngComponents.PoModule,
3905
- forms.FormsModule,
3906
- http.HttpClientModule
3907
- ],
3908
- exports: [
3909
- TotvsScheduleExecutionComponent,
3910
- DtsDateFormatPipe
3911
- ],
3912
- providers: [
3913
- TotvsScheduleExecutionService
3914
- ]
3915
- },] }
3916
- ];
3917
3234
  return DtsBackofficeUtilsModule;
3918
- }());
3235
+ }());
3236
+ DtsBackofficeUtilsModule.decorators = [
3237
+ { type: i0.NgModule, args: [{
3238
+ declarations: [
3239
+ TotvsScheduleExecutionComponent,
3240
+ DtsDateFormatPipe
3241
+ ],
3242
+ imports: [
3243
+ common.CommonModule,
3244
+ ngComponents.PoModule,
3245
+ forms.FormsModule,
3246
+ i1.HttpClientModule
3247
+ ],
3248
+ exports: [
3249
+ TotvsScheduleExecutionComponent,
3250
+ DtsDateFormatPipe
3251
+ ],
3252
+ providers: [
3253
+ TotvsScheduleExecutionService
3254
+ ]
3255
+ },] }
3256
+ ];
3257
+
3258
+ /**
3259
+ * @fileoverview added by tsickle
3260
+ * Generated from: public-api.ts
3261
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3262
+ */
3263
+
3264
+ /**
3265
+ * @fileoverview added by tsickle
3266
+ * Generated from: dts-backoffice-util.ts
3267
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3268
+ */
3919
3269
 
3920
3270
  exports.BreadcrumbControlService = BreadcrumbControlService;
3921
3271
  exports.CacheParamsService = CacheParamsService;