dts-backoffice-util 2.8.1 → 4.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/README.md +52 -9
  2. package/bundles/dts-backoffice-util.umd.js +346 -2365
  3. package/bundles/dts-backoffice-util.umd.js.map +1 -1
  4. package/bundles/dts-backoffice-util.umd.min.js +1 -1
  5. package/bundles/dts-backoffice-util.umd.min.js.map +1 -1
  6. package/esm2015/dts-backoffice-util.js +2 -6
  7. package/esm2015/lib/components/totvs-schedule-execution/totvs-schedule-execution.component.js +6 -130
  8. package/esm2015/lib/components/totvs-schedule-execution/totvs-schedule-execution.model.js +1 -125
  9. package/esm2015/lib/components/totvs-schedule-execution/totvs-schedule-execution.service.js +11 -171
  10. package/esm2015/lib/dts-backoffice-util.module.js +1 -8
  11. package/esm2015/lib/interfaces/filter-range.interface.js +2 -47
  12. package/esm2015/lib/interfaces/totvs-response.interface.js +2 -16
  13. package/esm2015/lib/model/session-info.model.js +1 -116
  14. package/esm2015/lib/pipes/dts-date-format.pipe.js +1 -11
  15. package/esm2015/lib/services/breadcrumb-control.service.js +1 -43
  16. package/esm2015/lib/services/cache-params.service.js +2 -23
  17. package/esm2015/lib/services/menu-datasul.service.js +1 -17
  18. package/esm2015/lib/services/profile.service.js +9 -77
  19. package/esm2015/lib/services/report.service.js +12 -80
  20. package/esm2015/lib/services/session-info.service.js +4 -26
  21. package/esm2015/lib/services/translate.service.js +1 -15
  22. package/esm2015/lib/utils/date.util.js +1 -39
  23. package/esm2015/lib/utils/disclaimer.util.js +33 -317
  24. package/esm2015/lib/utils/field-validation.util.js +1 -96
  25. package/esm2015/lib/utils/file.util.js +10 -103
  26. package/esm2015/lib/utils/filter-range.util.js +1 -20
  27. package/esm2015/lib/utils/generic-functions.utils.js +12 -137
  28. package/esm2015/public-api.js +22 -25
  29. package/fesm2015/dts-backoffice-util.js +111 -1496
  30. package/fesm2015/dts-backoffice-util.js.map +1 -1
  31. package/lib/utils/file.util.d.ts +1 -1
  32. package/package.json +9 -8
  33. package/CHANGELOG.md +0 -159
  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 -259
  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 -3941
  58. package/fesm5/dts-backoffice-util.js.map +0 -1
@@ -1,26 +1,16 @@
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
- /**
8
- * @fileoverview added by tsickle
9
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10
- */
11
7
  var UserLoginService = /** @class */ (function () {
12
8
  function UserLoginService(http) {
13
9
  this.http = http;
14
10
  this.apiUrl = '/totvs-menu/rest/getSessionInfo';
15
11
  this.userLogin = undefined;
16
12
  }
17
- /**
18
- * @return {?}
19
- */
20
- UserLoginService.prototype.getUserLogin = /**
21
- * @return {?}
22
- */
23
- function () {
13
+ UserLoginService.prototype.getUserLogin = function () {
24
14
  var _this = this;
25
15
  if (localStorage.getItem('username')) {
26
16
  return rxjs.of(localStorage.getItem('username'));
@@ -30,145 +20,53 @@
30
20
  }
31
21
  else {
32
22
  return this.http.get("" + this.apiUrl)
33
- .pipe(operators.map((/**
34
- * @param {?} response
35
- * @return {?}
36
- */
37
- function (response) {
23
+ .pipe(operators.map(function (response) {
38
24
  _this.userLogin = response.userName;
39
25
  return response.userName;
40
- })));
41
- }
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" });
26
+ }));
27
+ }
28
+ };
53
29
  return UserLoginService;
54
30
  }());
55
- if (false) {
56
- /** @type {?} */
57
- UserLoginService.prototype.apiUrl;
58
- /** @type {?} */
59
- UserLoginService.prototype.userLogin;
60
- /** @type {?} */
61
- UserLoginService.prototype.http;
62
- }
31
+ /** @nocollapse */ UserLoginService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserLoginService_Factory() { return new UserLoginService(i0.ɵɵinject(i1.HttpClient)); }, token: UserLoginService, providedIn: "root" });
32
+ UserLoginService.decorators = [
33
+ { type: i0.Injectable, args: [{
34
+ providedIn: 'root'
35
+ },] }
36
+ ];
37
+ /** @nocollapse */
38
+ UserLoginService.ctorParameters = function () { return [
39
+ { type: i1.HttpClient }
40
+ ]; };
63
41
 
64
- /**
65
- * @fileoverview added by tsickle
66
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
67
- */
68
- /**
69
- * @record
70
- */
71
- function IProfile() { }
72
- if (false) {
73
- /** @type {?} */
74
- IProfile.prototype.pageId;
75
- /** @type {?} */
76
- IProfile.prototype.dataCode;
77
- /** @type {?} */
78
- IProfile.prototype.userCode;
79
- /** @type {?|undefined} */
80
- IProfile.prototype.dataValue;
81
- }
82
- /**
83
- * @record
84
- */
85
- function IProfileResponse() { }
86
- if (false) {
87
- /** @type {?} */
88
- IProfileResponse.prototype.message;
89
- /** @type {?} */
90
- IProfileResponse.prototype.length;
91
- /** @type {?} */
92
- IProfileResponse.prototype.data;
93
- }
94
- /** @enum {number} */
95
- var EDataType = {
96
- STRING: 1,
97
- JSON: 2,
98
- };
99
- EDataType[EDataType.STRING] = 'STRING';
100
- EDataType[EDataType.JSON] = 'JSON';
42
+ var EDataType;
43
+ (function (EDataType) {
44
+ EDataType[EDataType["STRING"] = 1] = "STRING";
45
+ EDataType[EDataType["JSON"] = 2] = "JSON";
46
+ })(EDataType || (EDataType = {}));
101
47
  var ProfileService = /** @class */ (function () {
102
48
  function ProfileService(http) {
103
49
  this.http = http;
104
50
  this.apiURL = '/dts/datasul-rest/resources/api/btb/btapi930za';
105
51
  }
106
- /**
107
- * @param {?} profile
108
- * @return {?}
109
- */
110
- ProfileService.prototype.setProfile = /**
111
- * @param {?} profile
112
- * @return {?}
113
- */
114
- function (profile) {
115
- /** @type {?} */
52
+ ProfileService.prototype.setProfile = function (profile) {
116
53
  var headers = { 'X-PO-Screen-Lock': 'true' };
117
54
  var pageId = profile.pageId, userCode = profile.userCode;
118
55
  return this.http
119
56
  .post(this.apiURL + "/setProfile?userCode=" + userCode + "&pageId=" + pageId, profile, { headers: headers });
120
57
  };
121
- /**
122
- * @param {?} profile
123
- * @param {?=} showLoading
124
- * @return {?}
125
- */
126
- ProfileService.prototype.getProfileAsString = /**
127
- * @param {?} profile
128
- * @param {?=} showLoading
129
- * @return {?}
130
- */
131
- function (profile, showLoading) {
58
+ ProfileService.prototype.getProfileAsString = function (profile, showLoading) {
132
59
  return this.getProfile(profile, EDataType.STRING, showLoading ? 'true' : 'false');
133
60
  };
134
- /**
135
- * @param {?} profile
136
- * @param {?=} showLoading
137
- * @return {?}
138
- */
139
- ProfileService.prototype.getProfileAsJSON = /**
140
- * @param {?} profile
141
- * @param {?=} showLoading
142
- * @return {?}
143
- */
144
- function (profile, showLoading) {
61
+ ProfileService.prototype.getProfileAsJSON = function (profile, showLoading) {
145
62
  return this.getProfile(profile, EDataType.JSON, showLoading ? 'true' : 'false');
146
63
  };
147
- /**
148
- * @private
149
- * @param {?} profile
150
- * @param {?} dataType
151
- * @param {?=} showLoading
152
- * @return {?}
153
- */
154
- ProfileService.prototype.getProfile = /**
155
- * @private
156
- * @param {?} profile
157
- * @param {?} dataType
158
- * @param {?=} showLoading
159
- * @return {?}
160
- */
161
- function (profile, dataType, showLoading) {
162
- /** @type {?} */
64
+ ProfileService.prototype.getProfile = function (profile, dataType, showLoading) {
163
65
  var headers = { 'X-PO-Screen-Lock': showLoading };
164
66
  var pageId = profile.pageId, dataCode = profile.dataCode, userCode = profile.userCode;
165
67
  return this.http
166
68
  .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) {
69
+ .pipe(operators.map(function (preference) {
172
70
  if (preference.data[0]) {
173
71
  if (dataType === EDataType.STRING) {
174
72
  return preference.data[0].dataValue;
@@ -180,135 +78,60 @@
180
78
  else {
181
79
  return undefined;
182
80
  }
183
- })));
184
- };
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" });
81
+ }));
82
+ };
195
83
  return ProfileService;
196
84
  }());
197
- if (false) {
198
- /** @type {?} */
199
- ProfileService.prototype.apiURL;
200
- /** @type {?} */
201
- ProfileService.prototype.http;
202
- }
85
+ /** @nocollapse */ ProfileService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProfileService_Factory() { return new ProfileService(i0.ɵɵinject(i1.HttpClient)); }, token: ProfileService, providedIn: "root" });
86
+ ProfileService.decorators = [
87
+ { type: i0.Injectable, args: [{
88
+ providedIn: 'root'
89
+ },] }
90
+ ];
91
+ /** @nocollapse */
92
+ ProfileService.ctorParameters = function () { return [
93
+ { type: i1.HttpClient }
94
+ ]; };
203
95
 
204
- /**
205
- * @fileoverview added by tsickle
206
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
207
- */
208
- /**
209
- * @record
210
- */
211
- function IProperty() { }
212
- if (false) {
213
- /** @type {?} */
214
- IProperty.prototype.name;
215
- /** @type {?} */
216
- IProperty.prototype.value;
217
- }
218
- /**
219
- * @record
220
- */
221
- function IReportServiceParams() { }
222
- if (false) {
223
- /** @type {?} */
224
- IReportServiceParams.prototype.reportName;
225
- /** @type {?} */
226
- IReportServiceParams.prototype.programName;
227
- /** @type {?} */
228
- IReportServiceParams.prototype.properties;
229
- /** @type {?} */
230
- IReportServiceParams.prototype.dialect;
231
- /** @type {?} */
232
- IReportServiceParams.prototype.downloadName;
233
- /** @type {?} */
234
- IReportServiceParams.prototype.download;
235
- /** @type {?} */
236
- IReportServiceParams.prototype.format;
237
- }
238
- /** @enum {string} */
239
- var ReportFormats = {
240
- XLSX: 'xlsx',
241
- PDF: 'pdf',
242
- DOCX: 'docx',
243
- HTML: 'html',
244
- };
96
+ (function (ReportFormats) {
97
+ ReportFormats["XLSX"] = "xlsx";
98
+ ReportFormats["PDF"] = "pdf";
99
+ ReportFormats["DOCX"] = "docx";
100
+ ReportFormats["HTML"] = "html";
101
+ })(exports.ReportFormats || (exports.ReportFormats = {}));
245
102
  var ReportService = /** @class */ (function () {
246
103
  function ReportService(httpClient) {
247
104
  this.httpClient = httpClient;
248
105
  this.URL = window.location.href.indexOf('totvs-menu') > 0 ? '/totvs-menu/rest/report/run/'
249
106
  : '/dts/datasul-report/resources/run/';
250
107
  }
251
- /**
252
- * @param {?} params
253
- * @param {?=} showLoading
254
- * @return {?}
255
- */
256
- ReportService.prototype.generate = /**
257
- * @param {?} params
258
- * @param {?=} showLoading
259
- * @return {?}
260
- */
261
- function (params, showLoading) {
108
+ ReportService.prototype.generate = function (params, showLoading) {
262
109
  var _this = this;
263
110
  if (showLoading === void 0) { showLoading = true; }
264
- /** @type {?} */
265
111
  var headers = { 'X-PO-Screen-Lock': showLoading ? 'true' : 'false' };
266
- /** @type {?} */
267
112
  var reportURL = "" + this.URL + params.reportName;
268
113
  if (params.properties.length > 0) {
269
114
  reportURL += '?';
270
- params.properties.forEach((/**
271
- * @param {?} property
272
- * @param {?} index
273
- * @return {?}
274
- */
275
- function (property, index) {
115
+ params.properties.forEach(function (property, index) {
276
116
  if (index > 0) {
277
117
  reportURL += '&';
278
118
  }
279
119
  reportURL += "c_properties=" + property.name + "&c_values=" + property.value;
280
- }));
120
+ });
281
121
  }
282
122
  reportURL += "&dialect=" + params.dialect + "&format=" + params.format;
283
123
  reportURL += "&program=" + params.programName + "&resultFileName=" + params.downloadName;
284
124
  return this.httpClient.post(reportURL, {}, { headers: headers, responseType: 'blob' })
285
- .pipe(operators.map((/**
286
- * @param {?} report
287
- * @return {?}
288
- */
289
- function (report) {
125
+ .pipe(operators.map(function (report) {
290
126
  if (params.download) {
291
127
  _this.download(report, params.downloadName + "." + params.format);
292
128
  }
293
129
  return report;
294
- })));
130
+ }));
295
131
  };
296
- /**
297
- * @param {?} file
298
- * @param {?} fileName
299
- * @return {?}
300
- */
301
- ReportService.prototype.download = /**
302
- * @param {?} file
303
- * @param {?} fileName
304
- * @return {?}
305
- */
306
- function (file, fileName) {
307
- /** @type {?} */
132
+ ReportService.prototype.download = function (file, fileName) {
308
133
  var binaryData = [file];
309
- /** @type {?} */
310
134
  var downloadLink = document.createElement('a');
311
- /** @type {?} */
312
135
  var urlDownload = window.URL.createObjectURL(new Blob(binaryData, { type: file.type }));
313
136
  downloadLink.href = urlDownload;
314
137
  downloadLink.setAttribute('download', fileName);
@@ -317,71 +140,37 @@
317
140
  window.URL.revokeObjectURL(urlDownload);
318
141
  downloadLink.remove();
319
142
  };
320
- ReportService.decorators = [
321
- { type: core.Injectable }
322
- ];
323
- /** @nocollapse */
324
- ReportService.ctorParameters = function () { return [
325
- { type: http.HttpClient }
326
- ]; };
327
143
  return ReportService;
328
144
  }());
329
- if (false) {
330
- /** @type {?} */
331
- ReportService.prototype.URL;
332
- /** @type {?} */
333
- ReportService.prototype.httpClient;
334
- }
145
+ ReportService.decorators = [
146
+ { type: i0.Injectable }
147
+ ];
148
+ /** @nocollapse */
149
+ ReportService.ctorParameters = function () { return [
150
+ { type: i1.HttpClient }
151
+ ]; };
335
152
 
336
- /**
337
- * @fileoverview added by tsickle
338
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
339
- */
153
+ /*
154
+ Versão: 1.003
155
+ Data Criação: 06/08/2018
156
+ */
340
157
  var BreadcrumbControlService = /** @class */ (function () {
341
158
  function BreadcrumbControlService() {
342
159
  }
343
- /**
344
- * @return {?}
345
- */
346
- BreadcrumbControlService.prototype.newBreadcrumb = /**
347
- * @return {?}
348
- */
349
- function () {
160
+ BreadcrumbControlService.prototype.newBreadcrumb = function () {
350
161
  this.breadcrumb = { items: [] };
351
162
  };
352
- /**
353
- * @param {?} literal
354
- * @param {?} activatedRoute
355
- * @return {?}
356
- */
357
- BreadcrumbControlService.prototype.addBreadcrumb = /**
358
- * @param {?} literal
359
- * @param {?} activatedRoute
360
- * @return {?}
361
- */
362
- function (literal, activatedRoute) {
163
+ BreadcrumbControlService.prototype.addBreadcrumb = function (literal, activatedRoute) {
363
164
  this.addBreadcrumbURL(literal, decodeURIComponent(activatedRoute.snapshot['_routerState'].url));
364
165
  };
365
- /**
366
- * @param {?} literal
367
- * @param {?} url
368
- * @return {?}
369
- */
370
- BreadcrumbControlService.prototype.addBreadcrumbURL = /**
371
- * @param {?} literal
372
- * @param {?} url
373
- * @return {?}
374
- */
375
- function (literal, url) {
166
+ BreadcrumbControlService.prototype.addBreadcrumbURL = function (literal, url) {
376
167
  if (!literal || literal === '') {
377
168
  return;
378
169
  }
379
170
  if (!this.breadcrumb) {
380
171
  this.newBreadcrumb();
381
172
  }
382
- /** @type {?} */
383
173
  var breadcrumbAux = { items: [] };
384
- /** @type {?} */
385
174
  var idx = 0;
386
175
  for (idx = 0; idx < this.breadcrumb.items.length; idx++) {
387
176
  if (this.breadcrumb.items[idx].label !== literal) {
@@ -394,20 +183,7 @@
394
183
  breadcrumbAux.items.push({ label: literal, link: url });
395
184
  this.breadcrumb = breadcrumbAux;
396
185
  };
397
- /**
398
- * @param {?} literal
399
- * @param {?} valueOld
400
- * @param {?} valueNew
401
- * @return {?}
402
- */
403
- BreadcrumbControlService.prototype.updBreadcrumbURL = /**
404
- * @param {?} literal
405
- * @param {?} valueOld
406
- * @param {?} valueNew
407
- * @return {?}
408
- */
409
- function (literal, valueOld, valueNew) {
410
- /** @type {?} */
186
+ BreadcrumbControlService.prototype.updBreadcrumbURL = function (literal, valueOld, valueNew) {
411
187
  var currentRouterURL = this.getCurrentRouter();
412
188
  if (!currentRouterURL) {
413
189
  return;
@@ -421,25 +197,13 @@
421
197
  currentRouterURL = currentRouterURL.replace(valueOld, valueNew);
422
198
  this.addBreadcrumbURL(literal, currentRouterURL);
423
199
  };
424
- /**
425
- * @return {?}
426
- */
427
- BreadcrumbControlService.prototype.getBreadcrumb = /**
428
- * @return {?}
429
- */
430
- function () {
200
+ BreadcrumbControlService.prototype.getBreadcrumb = function () {
431
201
  if (!this.breadcrumb) {
432
202
  this.newBreadcrumb();
433
203
  }
434
204
  return this.breadcrumb;
435
205
  };
436
- /**
437
- * @return {?}
438
- */
439
- BreadcrumbControlService.prototype.getCurrentRouter = /**
440
- * @return {?}
441
- */
442
- function () {
206
+ BreadcrumbControlService.prototype.getCurrentRouter = function () {
443
207
  if (!this.breadcrumb) {
444
208
  this.newBreadcrumb();
445
209
  }
@@ -448,13 +212,7 @@
448
212
  }
449
213
  return this.breadcrumb.items[this.breadcrumb.items.length - 1].link;
450
214
  };
451
- /**
452
- * @return {?}
453
- */
454
- BreadcrumbControlService.prototype.getPrevRouter = /**
455
- * @return {?}
456
- */
457
- function () {
215
+ BreadcrumbControlService.prototype.getPrevRouter = function () {
458
216
  if (!this.breadcrumb) {
459
217
  this.newBreadcrumb();
460
218
  }
@@ -463,31 +221,17 @@
463
221
  }
464
222
  return this.breadcrumb.items[this.breadcrumb.items.length - 2].link;
465
223
  };
466
- /**
467
- * @return {?}
468
- */
469
- BreadcrumbControlService.prototype.hasPreviousRouter = /**
470
- * @return {?}
471
- */
472
- function () {
224
+ BreadcrumbControlService.prototype.hasPreviousRouter = function () {
473
225
  return this.breadcrumb.items.length > 1;
474
226
  };
475
- BreadcrumbControlService.decorators = [
476
- { type: core.Injectable }
477
- ];
478
- /** @nocollapse */
479
- BreadcrumbControlService.ctorParameters = function () { return []; };
480
227
  return BreadcrumbControlService;
481
228
  }());
482
- if (false) {
483
- /** @type {?} */
484
- BreadcrumbControlService.prototype.breadcrumb;
485
- }
229
+ BreadcrumbControlService.decorators = [
230
+ { type: i0.Injectable }
231
+ ];
232
+ /** @nocollapse */
233
+ BreadcrumbControlService.ctorParameters = function () { return []; };
486
234
 
487
- /**
488
- * @fileoverview added by tsickle
489
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
490
- */
491
235
  var MenuDatasulService = /** @class */ (function () {
492
236
  function MenuDatasulService() {
493
237
  }
@@ -496,21 +240,7 @@
496
240
  * program['prg'] = "cd0210";
497
241
  * program['params'] = '01|123456'
498
242
  */
499
- /**
500
- * var program = {};
501
- * program['prg'] = "cd0210";
502
- * program['params'] = '01|123456'
503
- * @param {?} program
504
- * @return {?}
505
- */
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) {
243
+ MenuDatasulService.prototype.callProgress = function (program) {
514
244
  parent.postMessage({ program: program }, '*');
515
245
  };
516
246
  /**
@@ -519,42 +249,12 @@
519
249
  * notification['title'] = 'Notification Title'
520
250
  * notification['detail'] = 'Notification Detail'
521
251
  */
522
- /**
523
- * var notification = {};
524
- * notification['type'] = 'success';
525
- * notification['title'] = 'Notification Title'
526
- * notification['detail'] = 'Notification Detail'
527
- * @param {?} notification
528
- * @return {?}
529
- */
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) {
252
+ MenuDatasulService.prototype.sendNotification = function (notification) {
539
253
  parent.postMessage({ notification: notification }, '*');
540
254
  };
541
- /**
542
- * @param {?} programName
543
- * @param {?} params
544
- * @param {?=} parent
545
- * @return {?}
546
- */
547
- MenuDatasulService.prototype.openPath = /**
548
- * @param {?} programName
549
- * @param {?} params
550
- * @param {?=} parent
551
- * @return {?}
552
- */
553
- function (programName, params, parent) {
255
+ MenuDatasulService.prototype.openPath = function (programName, params, parent) {
554
256
  if (parent === void 0) { parent = true; }
555
- /** @type {?} */
556
257
  var datasulPath = document.referrer.indexOf('totvs-menu') > 0 ? 'totvs-menu' : 'menu-html';
557
- /** @type {?} */
558
258
  var baseUrl = "/" + datasulPath + "/#/" + datasulPath + "/program-html/" + programName + "/#";
559
259
  if (params) {
560
260
  baseUrl = baseUrl + "/" + params;
@@ -566,121 +266,60 @@
566
266
  window.open(baseUrl);
567
267
  }
568
268
  };
569
- MenuDatasulService.decorators = [
570
- { type: core.Injectable }
571
- ];
572
- /** @nocollapse */
573
- MenuDatasulService.ctorParameters = function () { return []; };
574
269
  return MenuDatasulService;
575
- }());
270
+ }());
271
+ MenuDatasulService.decorators = [
272
+ { type: i0.Injectable }
273
+ ];
274
+ /** @nocollapse */
275
+ MenuDatasulService.ctorParameters = function () { return []; };
576
276
 
577
- /**
578
- * @fileoverview added by tsickle
579
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
580
- */
581
277
  var CacheParamsService = /** @class */ (function () {
582
278
  function CacheParamsService() {
583
279
  this.values = {};
584
280
  }
585
- /**
586
- * @param {?} key
587
- * @param {?} value
588
- * @return {?}
589
- */
590
- CacheParamsService.prototype.setValue = /**
591
- * @param {?} key
592
- * @param {?} value
593
- * @return {?}
594
- */
595
- function (key, value) {
281
+ CacheParamsService.prototype.setValue = function (key, value) {
596
282
  this.values[key] = value;
597
283
  };
598
- /**
599
- * @param {?} key
600
- * @return {?}
601
- */
602
- CacheParamsService.prototype.getValue = /**
603
- * @param {?} key
604
- * @return {?}
605
- */
606
- function (key) {
284
+ CacheParamsService.prototype.getValue = function (key) {
607
285
  return this.values[key];
608
286
  };
609
- /**
610
- * @param {?} key
611
- * @return {?}
612
- */
613
- CacheParamsService.prototype.removeValue = /**
614
- * @param {?} key
615
- * @return {?}
616
- */
617
- function (key) {
287
+ CacheParamsService.prototype.removeValue = function (key) {
618
288
  delete this.values[key];
619
289
  };
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
290
  return CacheParamsService;
629
291
  }());
630
- if (false) {
631
- /** @type {?} */
632
- CacheParamsService.prototype.values;
633
- }
292
+ /** @nocollapse */ CacheParamsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CacheParamsService_Factory() { return new CacheParamsService(); }, token: CacheParamsService, providedIn: "root" });
293
+ CacheParamsService.decorators = [
294
+ { type: i0.Injectable, args: [{
295
+ providedIn: 'root'
296
+ },] }
297
+ ];
298
+ /** @nocollapse */
299
+ CacheParamsService.ctorParameters = function () { return []; };
634
300
 
635
- /**
636
- * @fileoverview added by tsickle
637
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
638
- */
639
301
  var TranslateService = /** @class */ (function () {
640
302
  function TranslateService() {
641
303
  }
642
- /**
643
- * @return {?}
644
- */
645
- TranslateService.getSuportLanguage = /**
646
- * @return {?}
647
- */
648
- function () {
304
+ TranslateService.getSuportLanguage = function () {
649
305
  return ['pt-BR', 'pt', 'en-US', 'en', 'es'];
650
306
  };
651
- /**
652
- * @return {?}
653
- */
654
- TranslateService.getDefaultCurrencyCode = /**
655
- * @return {?}
656
- */
657
- function () {
307
+ TranslateService.getDefaultCurrencyCode = function () {
658
308
  return '$';
659
309
  };
660
- /**
661
- * @return {?}
662
- */
663
- TranslateService.getCurrentLanguage = /**
664
- * @return {?}
665
- */
666
- function () {
667
- /** @type {?} */
310
+ TranslateService.getCurrentLanguage = function () {
668
311
  var locale = localStorage.getItem('user.language') || navigator.language;
669
312
  if (locale && this.getSuportLanguage().includes(locale)) {
670
313
  return locale;
671
314
  }
672
315
  return 'en-US';
673
316
  };
674
- TranslateService.decorators = [
675
- { type: core.Injectable }
676
- ];
677
317
  return TranslateService;
678
- }());
318
+ }());
319
+ TranslateService.decorators = [
320
+ { type: i0.Injectable }
321
+ ];
679
322
 
680
- /**
681
- * @fileoverview added by tsickle
682
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
683
- */
684
323
  /*
685
324
  Versão: 1.000
686
325
  Data Criação: 18/04/2019
@@ -689,71 +328,25 @@
689
328
  function DateUtil() {
690
329
  }
691
330
  /* 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
- /**
699
- * @param {?} date
700
- * @return {?}
701
- */
702
- function (date) {
703
- /** @type {?} */
331
+ DateUtil.dateToQueryParam = function (date) {
704
332
  var iDay = date.getDate();
705
- /** @type {?} */
706
333
  var iMonth = date.getMonth() + 1;
707
- /** @type {?} */
708
334
  var iYear = date.getFullYear();
709
335
  return iYear + "-" + this.pad(iMonth) + "-" + this.pad(iDay);
710
336
  };
711
337
  /* Transforma data no padrão YYYY-MM-DD para DATE */
712
- /* Transforma data no padrão YYYY-MM-DD para DATE */
713
- /**
714
- * @param {?} param
715
- * @return {?}
716
- */
717
- DateUtil.queryParamToDate = /* Transforma data no padrão YYYY-MM-DD para DATE */
718
- /**
719
- * @param {?} param
720
- * @return {?}
721
- */
722
- function (param) {
723
- /** @type {?} */
338
+ DateUtil.queryParamToDate = function (param) {
724
339
  var iDay = +param.split('-')[2];
725
- /** @type {?} */
726
340
  var iMonth = +param.split('-')[1];
727
- /** @type {?} */
728
341
  var iYear = +param.split('-')[0];
729
342
  return new Date(iYear, iMonth - 1, iDay);
730
343
  };
731
344
  /* Valida se foi informado uma data válida */
732
- /* Valida se foi informado uma data válida */
733
- /**
734
- * @param {?} date
735
- * @return {?}
736
- */
737
- DateUtil.isValidDate = /* Valida se foi informado uma data válida */
738
- /**
739
- * @param {?} date
740
- * @return {?}
741
- */
742
- function (date) {
345
+ DateUtil.isValidDate = function (date) {
743
346
  return date instanceof Date && !isNaN(date.getTime());
744
347
  };
745
348
  /* Ajusta a data retornando o padrão DATE */
746
- /* Ajusta a data retornando o padrão DATE */
747
- /**
748
- * @param {?} param
749
- * @return {?}
750
- */
751
- DateUtil.ajustDate = /* Ajusta a data retornando o padrão DATE */
752
- /**
753
- * @param {?} param
754
- * @return {?}
755
- */
756
- function (param) {
349
+ DateUtil.ajustDate = function (param) {
757
350
  if (param instanceof Date) {
758
351
  return param;
759
352
  }
@@ -763,46 +356,21 @@
763
356
  return this.queryParamToDate(param.split('T')[0]);
764
357
  };
765
358
  /* 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
- /**
768
- * @param {?=} values
769
- * @param {?=} fieldName
770
- * @return {?}
771
- */
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) {
359
+ DateUtil.ajustDateToModel = function (values, fieldName) {
779
360
  if (values === void 0) { values = {}; }
780
361
  if (values.hasOwnProperty(fieldName) && (values[fieldName])) {
781
362
  if (values[fieldName].indexOf('T') >= 0) {
782
363
  return new Date(values[fieldName]);
783
364
  }
784
- /** @type {?} */
785
365
  var iDay = +values[fieldName].split('-')[2];
786
- /** @type {?} */
787
366
  var iMonth = +values[fieldName].split('-')[1];
788
- /** @type {?} */
789
367
  var iYear = +values[fieldName].split('-')[0];
790
368
  return new Date(iYear, iMonth - 1, iDay);
791
369
  }
792
370
  return null;
793
371
  };
794
372
  /* 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
- /**
802
- * @param {?} number
803
- * @return {?}
804
- */
805
- function (number) {
373
+ DateUtil.pad = function (number) {
806
374
  if (number < 10) {
807
375
  return '0' + number;
808
376
  }
@@ -811,10 +379,6 @@
811
379
  return DateUtil;
812
380
  }());
813
381
 
814
- /**
815
- * @fileoverview added by tsickle
816
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
817
- */
818
382
  /*
819
383
  Versão: 1.009
820
384
  Data Criação: 06/08/2018
@@ -826,23 +390,7 @@
826
390
  this.poI18nPipe = poI18nPipe;
827
391
  this.literals = literals;
828
392
  }
829
- /**
830
- * @param {?} property
831
- * @param {?} value
832
- * @param {?=} hideClose
833
- * @param {?=} tradValue
834
- * @param {?=} vldBlank
835
- * @return {?}
836
- */
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) {
393
+ DisclaimerUtil.prototype.makeDisclaimer = function (property, value, hideClose, tradValue, vldBlank) {
846
394
  if (hideClose === void 0) { hideClose = false; }
847
395
  if (tradValue === void 0) { tradValue = false; }
848
396
  if (vldBlank === void 0) { vldBlank = false; }
@@ -859,21 +407,7 @@
859
407
  value: "" + value
860
408
  };
861
409
  };
862
- /**
863
- * @param {?} property
864
- * @param {?} value
865
- * @param {?=} hideClose
866
- * @param {?=} vldBlank
867
- * @return {?}
868
- */
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) {
410
+ DisclaimerUtil.prototype.makeDisclaimerFromNumber = function (property, value, hideClose, vldBlank) {
877
411
  if (hideClose === void 0) { hideClose = false; }
878
412
  if (vldBlank === void 0) { vldBlank = false; }
879
413
  if (value === null || value === undefined) {
@@ -889,19 +423,7 @@
889
423
  value: "" + value
890
424
  };
891
425
  };
892
- /**
893
- * @param {?} property
894
- * @param {?} value
895
- * @param {?=} hideClose
896
- * @return {?}
897
- */
898
- DisclaimerUtil.prototype.makeDisclaimerFromBoolean = /**
899
- * @param {?} property
900
- * @param {?} value
901
- * @param {?=} hideClose
902
- * @return {?}
903
- */
904
- function (property, value, hideClose) {
426
+ DisclaimerUtil.prototype.makeDisclaimerFromBoolean = function (property, value, hideClose) {
905
427
  if (hideClose === void 0) { hideClose = false; }
906
428
  if (value === null || value === undefined) {
907
429
  return { label: '', property: '', value: '' };
@@ -913,21 +435,8 @@
913
435
  value: "" + value
914
436
  };
915
437
  };
916
- /**
917
- * @param {?} property
918
- * @param {?} value
919
- * @param {?=} hideClose
920
- * @return {?}
921
- */
922
- DisclaimerUtil.prototype.makeDisclaimerFromDate = /**
923
- * @param {?} property
924
- * @param {?} value
925
- * @param {?=} hideClose
926
- * @return {?}
927
- */
928
- function (property, value, hideClose) {
438
+ DisclaimerUtil.prototype.makeDisclaimerFromDate = function (property, value, hideClose) {
929
439
  if (hideClose === void 0) { hideClose = false; }
930
- /** @type {?} */
931
440
  var dDate = this.ajustDate(value);
932
441
  if (!this.isValidDate(dDate)) {
933
442
  return { label: '', property: '', value: '' };
@@ -939,30 +448,12 @@
939
448
  value: "" + this.dateToQueryParam(dDate)
940
449
  };
941
450
  };
942
- /**
943
- * @param {?} property
944
- * @param {?} value
945
- * @param {?=} length
946
- * @param {?=} hideClose
947
- * @param {?=} tradValue
948
- * @return {?}
949
- */
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) {
451
+ DisclaimerUtil.prototype.makeDisclaimerFromMultiSelect = function (property, value, length, hideClose, tradValue) {
959
452
  var _this = this;
960
453
  if (length === void 0) { length = 0; }
961
454
  if (hideClose === void 0) { hideClose = false; }
962
455
  if (tradValue === void 0) { tradValue = false; }
963
- /** @type {?} */
964
456
  var lstLabels = '';
965
- /** @type {?} */
966
457
  var lstValues = '';
967
458
  if (!value) {
968
459
  return { label: '', property: '', value: '' };
@@ -972,11 +463,7 @@
972
463
  lstValues = 'all';
973
464
  }
974
465
  else {
975
- value.map((/**
976
- * @param {?} item
977
- * @return {?}
978
- */
979
- function (item) {
466
+ value.map(function (item) {
980
467
  if (lstLabels !== '') {
981
468
  lstLabels = lstLabels + ", ";
982
469
  }
@@ -985,7 +472,7 @@
985
472
  }
986
473
  lstLabels = "" + lstLabels + (tradValue ? _this.literals[item] : item);
987
474
  lstValues = "" + lstValues + item;
988
- }));
475
+ });
989
476
  }
990
477
  return {
991
478
  hideClose: hideClose,
@@ -994,30 +481,11 @@
994
481
  value: "" + lstValues
995
482
  };
996
483
  };
997
- /**
998
- * @param {?} property
999
- * @param {?} value
1000
- * @param {?} options
1001
- * @param {?=} length
1002
- * @param {?=} hideClose
1003
- * @return {?}
1004
- */
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) {
484
+ DisclaimerUtil.prototype.makeDisclaimerFromMultiSelectNumber = function (property, value, options, length, hideClose) {
1014
485
  if (length === void 0) { length = 0; }
1015
486
  if (hideClose === void 0) { hideClose = false; }
1016
- /** @type {?} */
1017
487
  var lstLabels = '';
1018
- /** @type {?} */
1019
488
  var lstValues = '';
1020
- /** @type {?} */
1021
489
  var opt = null;
1022
490
  if (!value || !options) {
1023
491
  return { label: '', property: '', value: '' };
@@ -1027,25 +495,17 @@
1027
495
  lstValues = 'all';
1028
496
  }
1029
497
  else {
1030
- value.map((/**
1031
- * @param {?} item
1032
- * @return {?}
1033
- */
1034
- function (item) {
498
+ value.map(function (item) {
1035
499
  if (lstLabels !== '') {
1036
500
  lstLabels = lstLabels + ", ";
1037
501
  }
1038
502
  if (lstValues !== '') {
1039
503
  lstValues = lstValues + ",";
1040
504
  }
1041
- opt = options.find((/**
1042
- * @param {?} itOpt
1043
- * @return {?}
1044
- */
1045
- function (itOpt) { return itOpt.value === item; }));
505
+ opt = options.find(function (itOpt) { return itOpt.value === item; });
1046
506
  lstLabels = "" + lstLabels + (opt ? opt.label : item);
1047
507
  lstValues = "" + lstValues + item;
1048
- }));
508
+ });
1049
509
  }
1050
510
  return {
1051
511
  hideClose: hideClose,
@@ -1054,27 +514,11 @@
1054
514
  value: "" + lstValues
1055
515
  };
1056
516
  };
1057
- /**
1058
- * @param {?} property
1059
- * @param {?} value
1060
- * @param {?=} length
1061
- * @param {?=} hideClose
1062
- * @return {?}
1063
- */
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) {
517
+ DisclaimerUtil.prototype.makeDisclaimerFromCheckboxGroup = function (property, value, length, hideClose) {
1072
518
  var _this = this;
1073
519
  if (length === void 0) { length = 0; }
1074
520
  if (hideClose === void 0) { hideClose = false; }
1075
- /** @type {?} */
1076
521
  var lstLabels = '';
1077
- /** @type {?} */
1078
522
  var lstValues = '';
1079
523
  if (!value) {
1080
524
  return { label: '', property: '', value: '' };
@@ -1088,11 +532,7 @@
1088
532
  lstValues = 'all';
1089
533
  }
1090
534
  else {
1091
- value.map((/**
1092
- * @param {?} checkParam
1093
- * @return {?}
1094
- */
1095
- function (checkParam) {
535
+ value.map(function (checkParam) {
1096
536
  if (lstLabels !== '') {
1097
537
  lstLabels = lstLabels + ", ";
1098
538
  }
@@ -1101,7 +541,7 @@
1101
541
  }
1102
542
  lstLabels = "" + lstLabels + _this.literals[checkParam];
1103
543
  lstValues = "" + lstValues + checkParam;
1104
- }));
544
+ });
1105
545
  }
1106
546
  return {
1107
547
  hideClose: hideClose,
@@ -1110,21 +550,7 @@
1110
550
  value: "" + lstValues
1111
551
  };
1112
552
  };
1113
- /**
1114
- * @param {?} property
1115
- * @param {?} value
1116
- * @param {?=} hideClose
1117
- * @param {?=} validateEqual
1118
- * @return {?}
1119
- */
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) {
553
+ DisclaimerUtil.prototype.makeDisclaimerFromRangeCharacter = function (property, value, hideClose, validateEqual) {
1128
554
  if (hideClose === void 0) { hideClose = false; }
1129
555
  if (validateEqual === void 0) { validateEqual = true; }
1130
556
  if (value.valInitial === null || value.valInitial === undefined) {
@@ -1145,21 +571,7 @@
1145
571
  value: value.valInitial + ";" + value.valFinal
1146
572
  };
1147
573
  };
1148
- /**
1149
- * @param {?} property
1150
- * @param {?} value
1151
- * @param {?=} hideClose
1152
- * @param {?=} validateEqual
1153
- * @return {?}
1154
- */
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) {
574
+ DisclaimerUtil.prototype.makeDisclaimerFromRangeNumber = function (property, value, hideClose, validateEqual) {
1163
575
  if (hideClose === void 0) { hideClose = false; }
1164
576
  if (validateEqual === void 0) { validateEqual = true; }
1165
577
  if (value.valInitial === null || value.valInitial === undefined) {
@@ -1180,26 +592,10 @@
1180
592
  value: value.valInitial + ";" + value.valFinal
1181
593
  };
1182
594
  };
1183
- /**
1184
- * @param {?} property
1185
- * @param {?} value
1186
- * @param {?=} hideClose
1187
- * @param {?=} validateEqual
1188
- * @return {?}
1189
- */
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) {
595
+ DisclaimerUtil.prototype.makeDisclaimerFromRangeDate = function (property, value, hideClose, validateEqual) {
1198
596
  if (hideClose === void 0) { hideClose = false; }
1199
597
  if (validateEqual === void 0) { validateEqual = true; }
1200
- /** @type {?} */
1201
598
  var valInitDate = this.ajustDate(value.valInitial);
1202
- /** @type {?} */
1203
599
  var valFinalDate = this.ajustDate(value.valFinal);
1204
600
  if (!this.isValidDate(valInitDate)) {
1205
601
  valInitDate = value.iniInitial;
@@ -1221,27 +617,10 @@
1221
617
  value: this.dateToQueryParam(valInitDate) + ";" + this.dateToQueryParam(valFinalDate)
1222
618
  };
1223
619
  };
1224
- /**
1225
- * @param {?} disclaimers
1226
- * @param {?} property
1227
- * @param {?} defaultValue
1228
- * @return {?}
1229
- */
1230
- DisclaimerUtil.prototype.atzCharFromDisclamer = /**
1231
- * @param {?} disclaimers
1232
- * @param {?} property
1233
- * @param {?} defaultValue
1234
- * @return {?}
1235
- */
1236
- function (disclaimers, property, defaultValue) {
1237
- /** @type {?} */
620
+ DisclaimerUtil.prototype.atzCharFromDisclamer = function (disclaimers, property, defaultValue) {
1238
621
  var returnValue = defaultValue;
1239
622
  if (disclaimers && disclaimers.length > 0) {
1240
- disclaimers.find((/**
1241
- * @param {?} item
1242
- * @return {?}
1243
- */
1244
- function (item) {
623
+ disclaimers.find(function (item) {
1245
624
  if (item.property === property) {
1246
625
  if (item.value === null) {
1247
626
  return false;
@@ -1250,31 +629,14 @@
1250
629
  return true;
1251
630
  }
1252
631
  return false;
1253
- }));
632
+ });
1254
633
  }
1255
634
  return returnValue;
1256
635
  };
1257
- /**
1258
- * @param {?} disclaimers
1259
- * @param {?} property
1260
- * @param {?} defaultValue
1261
- * @return {?}
1262
- */
1263
- DisclaimerUtil.prototype.atzNumberFromDisclamer = /**
1264
- * @param {?} disclaimers
1265
- * @param {?} property
1266
- * @param {?} defaultValue
1267
- * @return {?}
1268
- */
1269
- function (disclaimers, property, defaultValue) {
1270
- /** @type {?} */
636
+ DisclaimerUtil.prototype.atzNumberFromDisclamer = function (disclaimers, property, defaultValue) {
1271
637
  var returnValue = defaultValue;
1272
638
  if (disclaimers && disclaimers.length > 0) {
1273
- disclaimers.find((/**
1274
- * @param {?} item
1275
- * @return {?}
1276
- */
1277
- function (item) {
639
+ disclaimers.find(function (item) {
1278
640
  if (item.property === property) {
1279
641
  if (item.value === null) {
1280
642
  return false;
@@ -1283,32 +645,14 @@
1283
645
  return true;
1284
646
  }
1285
647
  return false;
1286
- }));
648
+ });
1287
649
  }
1288
650
  return returnValue;
1289
651
  };
1290
- /**
1291
- * @param {?} disclaimers
1292
- * @param {?} property
1293
- * @param {?} defaultValue
1294
- * @return {?}
1295
- */
1296
- DisclaimerUtil.prototype.atzBooleanFromDisclamer = /**
1297
- * @param {?} disclaimers
1298
- * @param {?} property
1299
- * @param {?} defaultValue
1300
- * @return {?}
1301
- */
1302
- function (disclaimers, property, defaultValue) {
1303
- /** @type {?} */
652
+ DisclaimerUtil.prototype.atzBooleanFromDisclamer = function (disclaimers, property, defaultValue) {
1304
653
  var returnValue = defaultValue;
1305
654
  if (disclaimers && disclaimers.length > 0) {
1306
- /** @type {?} */
1307
- var disclaimerFind = disclaimers.find((/**
1308
- * @param {?} item
1309
- * @return {?}
1310
- */
1311
- function (item) { return item.property === property; }));
655
+ var disclaimerFind = disclaimers.find(function (item) { return item.property === property; });
1312
656
  if (disclaimerFind && disclaimerFind.value !== null && disclaimerFind.value !== undefined) {
1313
657
  if (disclaimerFind.value === 'true') {
1314
658
  return true;
@@ -1320,28 +664,11 @@
1320
664
  }
1321
665
  return returnValue;
1322
666
  };
1323
- /**
1324
- * @param {?} disclaimers
1325
- * @param {?} property
1326
- * @param {?} defaultValue
1327
- * @return {?}
1328
- */
1329
- DisclaimerUtil.prototype.atzDateFromDisclamer = /**
1330
- * @param {?} disclaimers
1331
- * @param {?} property
1332
- * @param {?} defaultValue
1333
- * @return {?}
1334
- */
1335
- function (disclaimers, property, defaultValue) {
667
+ DisclaimerUtil.prototype.atzDateFromDisclamer = function (disclaimers, property, defaultValue) {
1336
668
  var _this = this;
1337
- /** @type {?} */
1338
669
  var returnValue = this.ajustDate(defaultValue);
1339
670
  if (disclaimers && disclaimers.length > 0) {
1340
- disclaimers.find((/**
1341
- * @param {?} item
1342
- * @return {?}
1343
- */
1344
- function (item) {
671
+ disclaimers.find(function (item) {
1345
672
  if (item.property === property) {
1346
673
  if (item.value === null) {
1347
674
  return false;
@@ -1350,162 +677,69 @@
1350
677
  return true;
1351
678
  }
1352
679
  return false;
1353
- }));
680
+ });
1354
681
  }
1355
682
  return returnValue;
1356
683
  };
1357
- /**
1358
- * @param {?} disclaimers
1359
- * @param {?} property
1360
- * @param {?} defaultValue
1361
- * @return {?}
1362
- */
1363
- DisclaimerUtil.prototype.atzMultiSelectCharFromDisclamer = /**
1364
- * @param {?} disclaimers
1365
- * @param {?} property
1366
- * @param {?} defaultValue
1367
- * @return {?}
1368
- */
1369
- function (disclaimers, property, defaultValue) {
684
+ DisclaimerUtil.prototype.atzMultiSelectCharFromDisclamer = function (disclaimers, property, defaultValue) {
1370
685
  return this.atzMultiSelectFromDisclamer('char', disclaimers, property, defaultValue);
1371
686
  };
1372
- /**
1373
- * @param {?} disclaimers
1374
- * @param {?} property
1375
- * @param {?} defaultValue
1376
- * @return {?}
1377
- */
1378
- DisclaimerUtil.prototype.atzMultiSelectNumberFromDisclamer = /**
1379
- * @param {?} disclaimers
1380
- * @param {?} property
1381
- * @param {?} defaultValue
1382
- * @return {?}
1383
- */
1384
- function (disclaimers, property, defaultValue) {
687
+ DisclaimerUtil.prototype.atzMultiSelectNumberFromDisclamer = function (disclaimers, property, defaultValue) {
1385
688
  return this.atzMultiSelectFromDisclamer('number', disclaimers, property, defaultValue);
1386
689
  };
1387
- /**
1388
- * @param {?} type
1389
- * @param {?} disclaimers
1390
- * @param {?} property
1391
- * @param {?} defaultValue
1392
- * @return {?}
1393
- */
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) {
1402
- /** @type {?} */
690
+ DisclaimerUtil.prototype.atzMultiSelectFromDisclamer = function (type, disclaimers, property, defaultValue) {
1403
691
  var returnValue = [];
1404
- defaultValue.map((/**
1405
- * @param {?} item
1406
- * @return {?}
1407
- */
1408
- function (item) {
692
+ defaultValue.map(function (item) {
1409
693
  returnValue.push(item.value);
1410
- }));
694
+ });
1411
695
  if (disclaimers && disclaimers.length > 0) {
1412
- disclaimers.find((/**
1413
- * @param {?} item
1414
- * @return {?}
1415
- */
1416
- function (item) {
696
+ disclaimers.find(function (item) {
1417
697
  if (item.property === property) {
1418
698
  if (item.value === null || item.value === 'all' || item.value === 'none') {
1419
699
  return false;
1420
700
  }
1421
701
  returnValue = [];
1422
- item.value.split(',').forEach((/**
1423
- * @param {?} itemOpt
1424
- * @return {?}
1425
- */
1426
- function (itemOpt) {
702
+ item.value.split(',').forEach(function (itemOpt) {
1427
703
  if (type === 'char') {
1428
704
  returnValue.push(itemOpt);
1429
705
  }
1430
706
  if (type === 'number') {
1431
707
  returnValue.push(+itemOpt);
1432
708
  }
1433
- }));
709
+ });
1434
710
  return true;
1435
711
  }
1436
712
  return false;
1437
- }));
713
+ });
1438
714
  }
1439
715
  return returnValue;
1440
716
  };
1441
- /**
1442
- * @param {?} disclaimers
1443
- * @param {?} property
1444
- * @param {?} options
1445
- * @return {?}
1446
- */
1447
- DisclaimerUtil.prototype.atzCheckboxFromDisclamer = /**
1448
- * @param {?} disclaimers
1449
- * @param {?} property
1450
- * @param {?} options
1451
- * @return {?}
1452
- */
1453
- function (disclaimers, property, options) {
1454
- /** @type {?} */
717
+ DisclaimerUtil.prototype.atzCheckboxFromDisclamer = function (disclaimers, property, options) {
1455
718
  var returnValue = [];
1456
- options.map((/**
1457
- * @param {?} item
1458
- * @return {?}
1459
- */
1460
- function (item) {
719
+ options.map(function (item) {
1461
720
  returnValue.push(item.value);
1462
- }));
721
+ });
1463
722
  if (disclaimers && disclaimers.length > 0) {
1464
- disclaimers.find((/**
1465
- * @param {?} item
1466
- * @return {?}
1467
- */
1468
- function (item) {
723
+ disclaimers.find(function (item) {
1469
724
  if (item.property === property) {
1470
725
  if (item.value === null || item.value === 'all' || item.value === 'none') {
1471
726
  return false;
1472
727
  }
1473
728
  returnValue = [];
1474
- item.value.split(',').forEach((/**
1475
- * @param {?} itemOpt
1476
- * @return {?}
1477
- */
1478
- function (itemOpt) {
729
+ item.value.split(',').forEach(function (itemOpt) {
1479
730
  returnValue.push(itemOpt);
1480
- }));
731
+ });
1481
732
  return true;
1482
733
  }
1483
734
  return false;
1484
- }));
735
+ });
1485
736
  }
1486
737
  return returnValue;
1487
738
  };
1488
- /**
1489
- * @param {?} disclaimers
1490
- * @param {?} property
1491
- * @param {?} rangeChar
1492
- * @return {?}
1493
- */
1494
- DisclaimerUtil.prototype.atzRangeCharFromDisclamer = /**
1495
- * @param {?} disclaimers
1496
- * @param {?} property
1497
- * @param {?} rangeChar
1498
- * @return {?}
1499
- */
1500
- function (disclaimers, property, rangeChar) {
1501
- /** @type {?} */
739
+ DisclaimerUtil.prototype.atzRangeCharFromDisclamer = function (disclaimers, property, rangeChar) {
1502
740
  var value = '';
1503
741
  if (disclaimers && disclaimers.length > 0) {
1504
- disclaimers.find((/**
1505
- * @param {?} item
1506
- * @return {?}
1507
- */
1508
- function (item) {
742
+ disclaimers.find(function (item) {
1509
743
  if (item.property === property) {
1510
744
  if (item.value === null) {
1511
745
  return false;
@@ -1514,31 +748,14 @@
1514
748
  return true;
1515
749
  }
1516
750
  return false;
1517
- }));
751
+ });
1518
752
  }
1519
753
  return this.atzRangeCharFromQueryParam(value, rangeChar);
1520
754
  };
1521
- /**
1522
- * @param {?} disclaimers
1523
- * @param {?} property
1524
- * @param {?} rangeNum
1525
- * @return {?}
1526
- */
1527
- DisclaimerUtil.prototype.atzRangeNumFromDisclamer = /**
1528
- * @param {?} disclaimers
1529
- * @param {?} property
1530
- * @param {?} rangeNum
1531
- * @return {?}
1532
- */
1533
- function (disclaimers, property, rangeNum) {
1534
- /** @type {?} */
755
+ DisclaimerUtil.prototype.atzRangeNumFromDisclamer = function (disclaimers, property, rangeNum) {
1535
756
  var value = '';
1536
757
  if (disclaimers && disclaimers.length > 0) {
1537
- disclaimers.find((/**
1538
- * @param {?} item
1539
- * @return {?}
1540
- */
1541
- function (item) {
758
+ disclaimers.find(function (item) {
1542
759
  if (item.property === property) {
1543
760
  if (item.value === null) {
1544
761
  return false;
@@ -1547,31 +764,14 @@
1547
764
  return true;
1548
765
  }
1549
766
  return false;
1550
- }));
767
+ });
1551
768
  }
1552
769
  return this.atzRangeNumFromQueryParam(value, rangeNum);
1553
770
  };
1554
- /**
1555
- * @param {?} disclaimers
1556
- * @param {?} property
1557
- * @param {?} rangeDate
1558
- * @return {?}
1559
- */
1560
- DisclaimerUtil.prototype.atzRangeDateFromDisclamer = /**
1561
- * @param {?} disclaimers
1562
- * @param {?} property
1563
- * @param {?} rangeDate
1564
- * @return {?}
1565
- */
1566
- function (disclaimers, property, rangeDate) {
1567
- /** @type {?} */
771
+ DisclaimerUtil.prototype.atzRangeDateFromDisclamer = function (disclaimers, property, rangeDate) {
1568
772
  var value = '';
1569
773
  if (disclaimers && disclaimers.length > 0) {
1570
- disclaimers.find((/**
1571
- * @param {?} item
1572
- * @return {?}
1573
- */
1574
- function (item) {
774
+ disclaimers.find(function (item) {
1575
775
  if (item.property === property) {
1576
776
  if (item.value === null) {
1577
777
  return false;
@@ -1580,21 +780,11 @@
1580
780
  return true;
1581
781
  }
1582
782
  return false;
1583
- }));
783
+ });
1584
784
  }
1585
785
  return this.atzRangeDateFromQueryParam(value, rangeDate);
1586
786
  };
1587
- /**
1588
- * @param {?} value
1589
- * @param {?} rangeChar
1590
- * @return {?}
1591
- */
1592
- DisclaimerUtil.prototype.atzRangeCharFromQueryParam = /**
1593
- * @param {?} value
1594
- * @param {?} rangeChar
1595
- * @return {?}
1596
- */
1597
- function (value, rangeChar) {
787
+ DisclaimerUtil.prototype.atzRangeCharFromQueryParam = function (value, rangeChar) {
1598
788
  rangeChar.valInitial = rangeChar.iniInitial;
1599
789
  rangeChar.valFinal = rangeChar.iniFinal;
1600
790
  if (!value || value === '') {
@@ -1607,17 +797,7 @@
1607
797
  }
1608
798
  return rangeChar;
1609
799
  };
1610
- /**
1611
- * @param {?} value
1612
- * @param {?} rangeNum
1613
- * @return {?}
1614
- */
1615
- DisclaimerUtil.prototype.atzRangeNumFromQueryParam = /**
1616
- * @param {?} value
1617
- * @param {?} rangeNum
1618
- * @return {?}
1619
- */
1620
- function (value, rangeNum) {
800
+ DisclaimerUtil.prototype.atzRangeNumFromQueryParam = function (value, rangeNum) {
1621
801
  rangeNum.valInitial = rangeNum.iniInitial;
1622
802
  rangeNum.valFinal = rangeNum.iniFinal;
1623
803
  if (!value || value === '') {
@@ -1630,17 +810,7 @@
1630
810
  }
1631
811
  return rangeNum;
1632
812
  };
1633
- /**
1634
- * @param {?} value
1635
- * @param {?} rangeDate
1636
- * @return {?}
1637
- */
1638
- DisclaimerUtil.prototype.atzRangeDateFromQueryParam = /**
1639
- * @param {?} value
1640
- * @param {?} rangeDate
1641
- * @return {?}
1642
- */
1643
- function (value, rangeDate) {
813
+ DisclaimerUtil.prototype.atzRangeDateFromQueryParam = function (value, rangeDate) {
1644
814
  rangeDate.valInitial = rangeDate.iniInitial;
1645
815
  rangeDate.valFinal = rangeDate.iniFinal;
1646
816
  if (!value || value === '') {
@@ -1653,60 +823,22 @@
1653
823
  }
1654
824
  return rangeDate;
1655
825
  };
1656
- /**
1657
- * @param {?} date
1658
- * @return {?}
1659
- */
1660
- DisclaimerUtil.prototype.dateToQueryParam = /**
1661
- * @param {?} date
1662
- * @return {?}
1663
- */
1664
- function (date) {
1665
- /** @type {?} */
826
+ DisclaimerUtil.prototype.dateToQueryParam = function (date) {
1666
827
  var iDay = date.getDate();
1667
- /** @type {?} */
1668
828
  var iMonth = date.getMonth() + 1;
1669
- /** @type {?} */
1670
829
  var iYear = date.getFullYear();
1671
830
  return iYear + "-" + this.pad(iMonth) + "-" + this.pad(iDay);
1672
831
  };
1673
- /**
1674
- * @param {?} param
1675
- * @return {?}
1676
- */
1677
- DisclaimerUtil.prototype.queryParamToDate = /**
1678
- * @param {?} param
1679
- * @return {?}
1680
- */
1681
- function (param) {
1682
- /** @type {?} */
832
+ DisclaimerUtil.prototype.queryParamToDate = function (param) {
1683
833
  var iDay = +param.split('-')[2];
1684
- /** @type {?} */
1685
834
  var iMonth = +param.split('-')[1];
1686
- /** @type {?} */
1687
835
  var iYear = +param.split('-')[0];
1688
836
  return new Date(iYear, iMonth - 1, iDay);
1689
837
  };
1690
- /**
1691
- * @param {?} date
1692
- * @return {?}
1693
- */
1694
- DisclaimerUtil.prototype.isValidDate = /**
1695
- * @param {?} date
1696
- * @return {?}
1697
- */
1698
- function (date) {
838
+ DisclaimerUtil.prototype.isValidDate = function (date) {
1699
839
  return date instanceof Date && !isNaN(date.getTime());
1700
840
  };
1701
- /**
1702
- * @param {?} param
1703
- * @return {?}
1704
- */
1705
- DisclaimerUtil.prototype.ajustDate = /**
1706
- * @param {?} param
1707
- * @return {?}
1708
- */
1709
- function (param) {
841
+ DisclaimerUtil.prototype.ajustDate = function (param) {
1710
842
  if (param instanceof Date) {
1711
843
  return param;
1712
844
  }
@@ -1715,35 +847,19 @@
1715
847
  }
1716
848
  return this.queryParamToDate(param.split('T')[0]);
1717
849
  };
1718
- /**
1719
- * @param {?} number
1720
- * @return {?}
1721
- */
1722
- DisclaimerUtil.prototype.pad = /**
1723
- * @param {?} number
1724
- * @return {?}
1725
- */
1726
- function (number) {
850
+ DisclaimerUtil.prototype.pad = function (number) {
1727
851
  if (number < 10) {
1728
852
  return '0' + number;
1729
853
  }
1730
854
  return number;
1731
855
  };
1732
856
  return DisclaimerUtil;
1733
- }());
1734
- if (false) {
1735
- /** @type {?} */
1736
- DisclaimerUtil.prototype.poNotification;
1737
- /** @type {?} */
1738
- DisclaimerUtil.prototype.poI18nPipe;
1739
- /** @type {?} */
1740
- DisclaimerUtil.prototype.literals;
1741
- }
857
+ }());
1742
858
 
1743
- /**
1744
- * @fileoverview added by tsickle
1745
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1746
- */
859
+ /*
860
+ Versão: 1.002
861
+ Data Criação: 19/02/2019
862
+ */
1747
863
  var FieldValidationUtil = /** @class */ (function () {
1748
864
  function FieldValidationUtil(poNotification, poI18nPipe, literals) {
1749
865
  this.literals = {};
@@ -1752,17 +868,7 @@
1752
868
  this.literals = literals;
1753
869
  this.disclaimerUtil = new DisclaimerUtil(this.poNotification, this.poI18nPipe, this.literals);
1754
870
  }
1755
- /**
1756
- * @param {?} field
1757
- * @param {?} value
1758
- * @return {?}
1759
- */
1760
- FieldValidationUtil.prototype.vldFieldCharacter = /**
1761
- * @param {?} field
1762
- * @param {?} value
1763
- * @return {?}
1764
- */
1765
- function (field, value) {
871
+ FieldValidationUtil.prototype.vldFieldCharacter = function (field, value) {
1766
872
  if (!value || value.trim() === '') {
1767
873
  this.poNotification.error({
1768
874
  message: this.poI18nPipe.transform(this.literals['fieldVldRequered'], [this.literals[field]])
@@ -1772,24 +878,7 @@
1772
878
  return true;
1773
879
  };
1774
880
  // 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
- /**
1786
- * @param {?} initialField
1787
- * @param {?} finalField
1788
- * @param {?} initialValue
1789
- * @param {?} finalValue
1790
- * @return {?}
1791
- */
1792
- function (initialField, finalField, initialValue, finalValue) {
881
+ FieldValidationUtil.prototype.vldRangeCharacter = function (initialField, finalField, initialValue, finalValue) {
1793
882
  if (!initialValue || !finalValue) {
1794
883
  return true;
1795
884
  }
@@ -1801,21 +890,7 @@
1801
890
  }
1802
891
  return true;
1803
892
  };
1804
- /**
1805
- * @param {?} field
1806
- * @param {?} value
1807
- * @param {?=} vldValue
1808
- * @param {?=} zeroAccept
1809
- * @return {?}
1810
- */
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) {
893
+ FieldValidationUtil.prototype.vldFieldNumber = function (field, value, vldValue, zeroAccept) {
1819
894
  if (vldValue === void 0) { vldValue = false; }
1820
895
  if (zeroAccept === void 0) { zeroAccept = false; }
1821
896
  if (vldValue && !this.vldValueOfNumber(field, value)) {
@@ -1832,36 +907,14 @@
1832
907
  }
1833
908
  return true;
1834
909
  };
1835
- /**
1836
- * @param {?} field
1837
- * @param {?} value
1838
- * @return {?}
1839
- */
1840
- FieldValidationUtil.prototype.vldValueOfNumber = /**
1841
- * @param {?} field
1842
- * @param {?} value
1843
- * @return {?}
1844
- */
1845
- function (field, value) {
910
+ FieldValidationUtil.prototype.vldValueOfNumber = function (field, value) {
1846
911
  if (value && value < 0) {
1847
912
  this.poNotification.error({ message: this.poI18nPipe.transform(this.literals['fieldVldNumber'], [value.toString(), this.literals[field]]) });
1848
913
  return false;
1849
914
  }
1850
915
  return true;
1851
916
  };
1852
- /**
1853
- * @param {?} field
1854
- * @param {?} value
1855
- * @param {?=} vldValue
1856
- * @return {?}
1857
- */
1858
- FieldValidationUtil.prototype.vldFieldPercent = /**
1859
- * @param {?} field
1860
- * @param {?} value
1861
- * @param {?=} vldValue
1862
- * @return {?}
1863
- */
1864
- function (field, value, vldValue) {
917
+ FieldValidationUtil.prototype.vldFieldPercent = function (field, value, vldValue) {
1865
918
  if (vldValue === void 0) { vldValue = false; }
1866
919
  if (vldValue && !this.vldValueOfPercent(field, value)) {
1867
920
  return false;
@@ -1871,17 +924,7 @@
1871
924
  }
1872
925
  return true;
1873
926
  };
1874
- /**
1875
- * @param {?} field
1876
- * @param {?} value
1877
- * @return {?}
1878
- */
1879
- FieldValidationUtil.prototype.vldValueOfPercent = /**
1880
- * @param {?} field
1881
- * @param {?} value
1882
- * @return {?}
1883
- */
1884
- function (field, value) {
927
+ FieldValidationUtil.prototype.vldValueOfPercent = function (field, value) {
1885
928
  if (value && value < 0) {
1886
929
  this.poNotification.error({ message: this.poI18nPipe.transform(this.literals['fieldVldNumber'], [value.toString(), this.literals[field]]) });
1887
930
  return false;
@@ -1893,24 +936,7 @@
1893
936
  return true;
1894
937
  };
1895
938
  // 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
- /**
1898
- * @param {?} initialField
1899
- * @param {?} finalField
1900
- * @param {?} initialValue
1901
- * @param {?} finalValue
1902
- * @return {?}
1903
- */
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) {
939
+ FieldValidationUtil.prototype.vldRangeNumber = function (initialField, finalField, initialValue, finalValue) {
1914
940
  if (!initialValue) {
1915
941
  initialValue = 0;
1916
942
  }
@@ -1925,18 +951,7 @@
1925
951
  }
1926
952
  return true;
1927
953
  };
1928
- /**
1929
- * @param {?} field
1930
- * @param {?} value
1931
- * @return {?}
1932
- */
1933
- FieldValidationUtil.prototype.vldFieldDate = /**
1934
- * @param {?} field
1935
- * @param {?} value
1936
- * @return {?}
1937
- */
1938
- function (field, value) {
1939
- /** @type {?} */
954
+ FieldValidationUtil.prototype.vldFieldDate = function (field, value) {
1940
955
  var valDate = this.disclaimerUtil.ajustDate(value);
1941
956
  if (!this.disclaimerUtil.isValidDate(valDate)) {
1942
957
  this.poNotification.error({
@@ -1947,30 +962,11 @@
1947
962
  return true;
1948
963
  };
1949
964
  // Valida uma faixa de datas se o inicial é menor que final
1950
- // Valida uma faixa de datas se o inicial é menor que final
1951
- /**
1952
- * @param {?} initialField
1953
- * @param {?} finalField
1954
- * @param {?} initialValue
1955
- * @param {?} finalValue
1956
- * @return {?}
1957
- */
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) {
965
+ FieldValidationUtil.prototype.vldRangeDate = function (initialField, finalField, initialValue, finalValue) {
1968
966
  if (!initialValue || !finalValue) {
1969
967
  return true;
1970
968
  }
1971
- /** @type {?} */
1972
969
  var valInitialDate = this.disclaimerUtil.ajustDate(initialValue).getTime();
1973
- /** @type {?} */
1974
970
  var valFinalDate = this.disclaimerUtil.ajustDate(finalValue).getTime();
1975
971
  if (valInitialDate > valFinalDate) {
1976
972
  this.poNotification.error({
@@ -1980,17 +976,7 @@
1980
976
  }
1981
977
  return true;
1982
978
  };
1983
- /**
1984
- * @param {?} field
1985
- * @param {?} value
1986
- * @return {?}
1987
- */
1988
- FieldValidationUtil.prototype.vldFieldMultiSelect = /**
1989
- * @param {?} field
1990
- * @param {?} value
1991
- * @return {?}
1992
- */
1993
- function (field, value) {
979
+ FieldValidationUtil.prototype.vldFieldMultiSelect = function (field, value) {
1994
980
  if (!value || value.length === 0) {
1995
981
  this.poNotification.error({
1996
982
  message: this.poI18nPipe.transform(this.literals['fieldVldSelected'], [this.literals[field]])
@@ -1998,18 +984,8 @@
1998
984
  return false;
1999
985
  }
2000
986
  return true;
2001
- };
2002
- /**
2003
- * @param {?} field
2004
- * @param {?} value
2005
- * @return {?}
2006
- */
2007
- FieldValidationUtil.prototype.vldFieldCheckbox = /**
2008
- * @param {?} field
2009
- * @param {?} value
2010
- * @return {?}
2011
- */
2012
- function (field, value) {
987
+ };
988
+ FieldValidationUtil.prototype.vldFieldCheckbox = function (field, value) {
2013
989
  if (!value || value.length === 0) {
2014
990
  this.poNotification.error({
2015
991
  message: this.poI18nPipe.transform(this.literals['fieldVldSelected'], [this.literals[field]])
@@ -2019,28 +995,9 @@
2019
995
  return true;
2020
996
  };
2021
997
  // 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
- /**
2024
- * @param {?} field
2025
- * @param {?} value
2026
- * @param {?} format
2027
- * @param {?=} replacePoint
2028
- * @return {?}
2029
- */
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) {
998
+ FieldValidationUtil.prototype.vldFieldFormat = function (field, value, format, replacePoint) {
2040
999
  if (replacePoint === void 0) { replacePoint = false; }
2041
- /** @type {?} */
2042
1000
  var lOK = true;
2043
- /** @type {?} */
2044
1001
  var oldFormat;
2045
1002
  if (!value) {
2046
1003
  return lOK;
@@ -2080,22 +1037,8 @@
2080
1037
  return lOK;
2081
1038
  };
2082
1039
  return FieldValidationUtil;
2083
- }());
2084
- if (false) {
2085
- /** @type {?} */
2086
- FieldValidationUtil.prototype.poNotification;
2087
- /** @type {?} */
2088
- FieldValidationUtil.prototype.poI18nPipe;
2089
- /** @type {?} */
2090
- FieldValidationUtil.prototype.literals;
2091
- /** @type {?} */
2092
- FieldValidationUtil.prototype.disclaimerUtil;
2093
- }
1040
+ }());
2094
1041
 
2095
- /**
2096
- * @fileoverview added by tsickle
2097
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2098
- */
2099
1042
  /*
2100
1043
  Versão: 1.000
2101
1044
  Data Criação: 06/08/2018
@@ -2103,17 +1046,7 @@
2103
1046
  var FilterRangeUtil = /** @class */ (function () {
2104
1047
  function FilterRangeUtil() {
2105
1048
  }
2106
- /**
2107
- * @param {?} iniInitial
2108
- * @param {?} iniFinal
2109
- * @return {?}
2110
- */
2111
- FilterRangeUtil.makeFilterRangeCharacter = /**
2112
- * @param {?} iniInitial
2113
- * @param {?} iniFinal
2114
- * @return {?}
2115
- */
2116
- function (iniInitial, iniFinal) {
1049
+ FilterRangeUtil.makeFilterRangeCharacter = function (iniInitial, iniFinal) {
2117
1050
  return {
2118
1051
  iniInitial: iniInitial,
2119
1052
  iniFinal: iniFinal,
@@ -2121,17 +1054,7 @@
2121
1054
  valFinal: iniFinal
2122
1055
  };
2123
1056
  };
2124
- /**
2125
- * @param {?} iniInitial
2126
- * @param {?} iniFinal
2127
- * @return {?}
2128
- */
2129
- FilterRangeUtil.makeFilterRangeNumber = /**
2130
- * @param {?} iniInitial
2131
- * @param {?} iniFinal
2132
- * @return {?}
2133
- */
2134
- function (iniInitial, iniFinal) {
1057
+ FilterRangeUtil.makeFilterRangeNumber = function (iniInitial, iniFinal) {
2135
1058
  return {
2136
1059
  iniInitial: iniInitial,
2137
1060
  iniFinal: iniFinal,
@@ -2139,17 +1062,7 @@
2139
1062
  valFinal: iniFinal
2140
1063
  };
2141
1064
  };
2142
- /**
2143
- * @param {?} iniInitial
2144
- * @param {?} iniFinal
2145
- * @return {?}
2146
- */
2147
- FilterRangeUtil.makeFilterRangeDate = /**
2148
- * @param {?} iniInitial
2149
- * @param {?} iniFinal
2150
- * @return {?}
2151
- */
2152
- function (iniInitial, iniFinal) {
1065
+ FilterRangeUtil.makeFilterRangeDate = function (iniInitial, iniFinal) {
2153
1066
  return {
2154
1067
  iniInitial: iniInitial,
2155
1068
  iniFinal: iniFinal,
@@ -2160,52 +1073,17 @@
2160
1073
  return FilterRangeUtil;
2161
1074
  }());
2162
1075
 
2163
- /**
2164
- * @fileoverview added by tsickle
2165
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2166
- */
2167
1076
  /*
2168
1077
  Versão: 1.003
2169
1078
  Data Criação: 18/04/2019
2170
1079
  */
2171
- /**
2172
- * @record
2173
- */
2174
- function ChartSeries() { }
2175
- if (false) {
2176
- /** @type {?|undefined} */
2177
- ChartSeries.prototype.name;
2178
- /** @type {?|undefined} */
2179
- ChartSeries.prototype.data;
2180
- }
2181
- /**
2182
- * @record
2183
- */
2184
- function ChartValues() { }
2185
- if (false) {
2186
- /** @type {?} */
2187
- ChartValues.prototype.minValue;
2188
- /** @type {?} */
2189
- ChartValues.prototype.maxValue;
2190
- }
2191
1080
  var GenericFunctionsUtils = /** @class */ (function () {
2192
1081
  function GenericFunctionsUtils(literals) {
2193
1082
  this.literals = {};
2194
1083
  this.literals = literals;
2195
1084
  }
2196
1085
  /* Transforma uma Lista separada por "," em um Array */
2197
- /* Transforma uma Lista separada por "," em um Array */
2198
- /**
2199
- * @param {?} list
2200
- * @return {?}
2201
- */
2202
- GenericFunctionsUtils.listToArrayCharacter = /* Transforma uma Lista separada por "," em um Array */
2203
- /**
2204
- * @param {?} list
2205
- * @return {?}
2206
- */
2207
- function (list) {
2208
- /** @type {?} */
1086
+ GenericFunctionsUtils.listToArrayCharacter = function (list) {
2209
1087
  var returnArray = new Array();
2210
1088
  if (list && list !== '') {
2211
1089
  returnArray = list.split(',');
@@ -2213,34 +1091,14 @@
2213
1091
  return returnArray;
2214
1092
  };
2215
1093
  /* Transforma um Array em uma Lista separada por "," */
2216
- /* Transforma um Array em uma Lista separada por "," */
2217
- /**
2218
- * @param {?} array
2219
- * @return {?}
2220
- */
2221
- GenericFunctionsUtils.ArrayToListCharacter = /* Transforma um Array em uma Lista separada por "," */
2222
- /**
2223
- * @param {?} array
2224
- * @return {?}
2225
- */
2226
- function (array) {
2227
- /** @type {?} */
1094
+ GenericFunctionsUtils.ArrayToListCharacter = function (array) {
2228
1095
  var list = '';
2229
1096
  if (array && array.length > 0) {
2230
1097
  list = array.join(',');
2231
1098
  }
2232
1099
  return list;
2233
1100
  };
2234
- /**
2235
- * @param {?} object
2236
- * @return {?}
2237
- */
2238
- GenericFunctionsUtils.isEmpty = /**
2239
- * @param {?} object
2240
- * @return {?}
2241
- */
2242
- function (object) {
2243
- /** @type {?} */
1101
+ GenericFunctionsUtils.isEmpty = function (object) {
2244
1102
  var isEmpty = true;
2245
1103
  for (var content in object) {
2246
1104
  if (object.hasOwnProperty(content)) {
@@ -2249,28 +1107,12 @@
2249
1107
  }
2250
1108
  return isEmpty;
2251
1109
  };
2252
- /**
2253
- * @param {?} chartData
2254
- * @return {?}
2255
- */
2256
- GenericFunctionsUtils.getChartValues = /**
2257
- * @param {?} chartData
2258
- * @return {?}
2259
- */
2260
- function (chartData) {
2261
- /** @type {?} */
1110
+ GenericFunctionsUtils.getChartValues = function (chartData) {
2262
1111
  var chartValues;
2263
- /** @type {?} */
2264
- var maxValue;
2265
- /** @type {?} */
2266
- var minValue;
1112
+ var maxValue, minValue;
2267
1113
  maxValue = undefined;
2268
1114
  minValue = undefined;
2269
- chartData.map((/**
2270
- * @param {?} item
2271
- * @return {?}
2272
- */
2273
- function (item) {
1115
+ chartData.map(function (item) {
2274
1116
  if (maxValue === undefined && minValue === undefined) {
2275
1117
  maxValue = item.data[0];
2276
1118
  minValue = item.data[0];
@@ -2283,7 +1125,7 @@
2283
1125
  maxValue = item.data[0];
2284
1126
  }
2285
1127
  }
2286
- }));
1128
+ });
2287
1129
  if (maxValue > 0 && minValue > 0) {
2288
1130
  chartValues = { maxValue: maxValue, minValue: 0 };
2289
1131
  }
@@ -2291,7 +1133,6 @@
2291
1133
  chartValues = { maxValue: maxValue, minValue: minValue };
2292
1134
  }
2293
1135
  if (maxValue < 0 && minValue < 0) {
2294
- /** @type {?} */
2295
1136
  var max = (minValue / 3) * (-1);
2296
1137
  chartValues = { maxValue: max, minValue: minValue };
2297
1138
  }
@@ -2299,7 +1140,6 @@
2299
1140
  chartValues = { maxValue: maxValue, minValue: 0 };
2300
1141
  }
2301
1142
  if (maxValue === 0 && minValue < 0) {
2302
- /** @type {?} */
2303
1143
  var max = (minValue / 3) * (-1);
2304
1144
  chartValues = { maxValue: max, minValue: minValue };
2305
1145
  }
@@ -2311,129 +1151,55 @@
2311
1151
  return chartValues;
2312
1152
  };
2313
1153
  /*Deixa no list apenas o itens que existem no options*/
2314
- /*Deixa no list apenas o itens que existem no options*/
2315
- /**
2316
- * @param {?} options
2317
- * @param {?} list
2318
- * @return {?}
2319
- */
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) {
2327
- /** @type {?} */
1154
+ GenericFunctionsUtils.atzMultiSelectListByOptions = function (options, list) {
2328
1155
  var idx;
2329
- /** @type {?} */
2330
1156
  var newList;
2331
1157
  if (!list) {
2332
1158
  return list;
2333
1159
  }
2334
1160
  newList = new Array();
2335
- list.map((/**
2336
- * @param {?} item
2337
- * @return {?}
2338
- */
2339
- function (item) {
1161
+ list.map(function (item) {
2340
1162
  if (item) {
2341
- idx = options.findIndex((/**
2342
- * @param {?} itemOptions
2343
- * @return {?}
2344
- */
2345
- function (itemOptions) { return itemOptions.value === item; }));
1163
+ idx = options.findIndex(function (itemOptions) { return itemOptions.value === item; });
2346
1164
  if (idx >= 0) {
2347
1165
  newList.push(item);
2348
1166
  }
2349
1167
  }
2350
- }));
1168
+ });
2351
1169
  return newList;
2352
1170
  };
2353
1171
  /*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
- /**
2362
- * @param {?} options
2363
- * @param {?} list
2364
- * @return {?}
2365
- */
2366
- function (options, list) {
1172
+ GenericFunctionsUtils.prototype.loadOptionsMultiSelect = function (options, list) {
2367
1173
  var _this = this;
2368
- /** @type {?} */
2369
1174
  var idx;
2370
1175
  if (!list) {
2371
1176
  return;
2372
1177
  }
2373
- list.map((/**
2374
- * @param {?} item
2375
- * @return {?}
2376
- */
2377
- function (item) {
1178
+ list.map(function (item) {
2378
1179
  if (item) {
2379
- idx = options.findIndex((/**
2380
- * @param {?} itemOptions
2381
- * @return {?}
2382
- */
2383
- function (itemOptions) { return itemOptions.value === item; }));
1180
+ idx = options.findIndex(function (itemOptions) { return itemOptions.value === item; });
2384
1181
  if (idx === -1) {
2385
1182
  options.push({ label: item === 'all' ? _this.literals['all'] : item, value: item });
2386
1183
  }
2387
1184
  }
2388
- }));
1185
+ });
2389
1186
  };
2390
1187
  /*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
- /**
2400
- * @param {?} options
2401
- * @param {?} selectValue
2402
- * @param {?=} tradValue
2403
- * @return {?}
2404
- */
2405
- function (options, selectValue, tradValue) {
1188
+ GenericFunctionsUtils.prototype.loadOptionsSelect = function (options, selectValue, tradValue) {
2406
1189
  if (tradValue === void 0) { tradValue = false; }
2407
- /** @type {?} */
2408
1190
  var idx;
2409
1191
  if (!selectValue) {
2410
1192
  return;
2411
1193
  }
2412
1194
  if (selectValue) {
2413
- idx = options.findIndex((/**
2414
- * @param {?} itemOptions
2415
- * @return {?}
2416
- */
2417
- function (itemOptions) { return itemOptions.value === selectValue; }));
1195
+ idx = options.findIndex(function (itemOptions) { return itemOptions.value === selectValue; });
2418
1196
  if (idx === -1) {
2419
1197
  options.push({ label: tradValue ? this.literals[selectValue] : selectValue, value: selectValue });
2420
1198
  }
2421
1199
  }
2422
1200
  };
2423
1201
  /*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
- /**
2432
- * @param {?} firstObject
2433
- * @param {?} secondObject
2434
- * @return {?}
2435
- */
2436
- function (firstObject, secondObject) {
1202
+ GenericFunctionsUtils.prototype.compareObjects = function (firstObject, secondObject) {
2437
1203
  if (!firstObject || !secondObject) {
2438
1204
  return false;
2439
1205
  }
@@ -2451,26 +1217,11 @@
2451
1217
  }
2452
1218
  return true;
2453
1219
  };
2454
- /**
2455
- * @param {?} charInd
2456
- * @param {?} dateRef
2457
- * @return {?}
2458
- */
2459
- GenericFunctionsUtils.prototype.referenceGeneration = /**
2460
- * @param {?} charInd
2461
- * @param {?} dateRef
2462
- * @return {?}
2463
- */
2464
- function (charInd, dateRef) {
2465
- /** @type {?} */
1220
+ GenericFunctionsUtils.prototype.referenceGeneration = function (charInd, dateRef) {
2466
1221
  var reference;
2467
- /** @type {?} */
2468
1222
  var random;
2469
- /** @type {?} */
2470
1223
  var iDay = dateRef.getDate();
2471
- /** @type {?} */
2472
1224
  var iMonth = dateRef.getMonth() + 1;
2473
- /** @type {?} */
2474
1225
  var iYear = dateRef.getFullYear();
2475
1226
  reference = "" + this.pad(iYear) + this.pad(iMonth) + this.pad(iDay) + charInd;
2476
1227
  random = btoa("" + (new Date()).getTime());
@@ -2478,15 +1229,7 @@
2478
1229
  random = random.slice(random.length - 3, random.length);
2479
1230
  return "" + reference + random;
2480
1231
  };
2481
- /**
2482
- * @param {?} number
2483
- * @return {?}
2484
- */
2485
- GenericFunctionsUtils.prototype.pad = /**
2486
- * @param {?} number
2487
- * @return {?}
2488
- */
2489
- function (number) {
1232
+ GenericFunctionsUtils.prototype.pad = function (number) {
2490
1233
  if (number < 10) {
2491
1234
  return '0' + number;
2492
1235
  }
@@ -2495,63 +1238,23 @@
2495
1238
  }
2496
1239
  return number;
2497
1240
  };
2498
- /**
2499
- * @param {?} idField
2500
- * @return {?}
2501
- */
2502
- GenericFunctionsUtils.prototype.focusInternalInput = /**
2503
- * @param {?} idField
2504
- * @return {?}
2505
- */
2506
- function (idField) {
2507
- /** @type {?} */
1241
+ GenericFunctionsUtils.prototype.focusInternalInput = function (idField) {
2508
1242
  var fieldComponent = document.getElementById(idField);
2509
- /** @type {?} */
2510
- var fieldInput = ((/** @type {?} */ ((/** @type {?} */ (fieldComponent.getElementsByClassName('po-input'))))))[0];
1243
+ var fieldInput = fieldComponent.getElementsByClassName('po-input')[0];
2511
1244
  fieldInput.focus();
2512
1245
  };
2513
1246
  return GenericFunctionsUtils;
2514
- }());
2515
- if (false) {
2516
- /** @type {?} */
2517
- GenericFunctionsUtils.prototype.literals;
2518
- }
1247
+ }());
2519
1248
 
2520
- /**
2521
- * @fileoverview added by tsickle
2522
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2523
- */
2524
1249
  var FileUtil = /** @class */ (function () {
2525
1250
  function FileUtil() {
2526
1251
  }
2527
- /**
2528
- * @param {?} datab64
2529
- * @param {?} fileName
2530
- * @param {?=} contentType
2531
- * @return {?}
2532
- */
2533
- FileUtil.downloadFile = /**
2534
- * @param {?} datab64
2535
- * @param {?} fileName
2536
- * @param {?=} contentType
2537
- * @return {?}
2538
- */
2539
- function (datab64, fileName, contentType) {
2540
- /** @type {?} */
2541
- var dataBlob = this.b64toBlob(datab64, contentType);
1252
+ FileUtil.downloadFile = function (data, fileName, contentType, base64) {
1253
+ base64 = (base64 === false) ? false : true;
1254
+ var dataBlob = base64 ? this.b64toBlob(data, contentType) : data;
2542
1255
  this.download(dataBlob, fileName);
2543
1256
  };
2544
- /**
2545
- * @param {?} data
2546
- * @param {?=} dwldDataParam
2547
- * @return {?}
2548
- */
2549
- FileUtil.downloadData = /**
2550
- * @param {?} data
2551
- * @param {?=} dwldDataParam
2552
- * @return {?}
2553
- */
2554
- function (data, dwldDataParam) {
1257
+ FileUtil.downloadData = function (data, dwldDataParam) {
2555
1258
  if (dwldDataParam === void 0) { dwldDataParam = null; }
2556
1259
  if (!data) {
2557
1260
  return;
@@ -2574,28 +1277,12 @@
2574
1277
  if (!dwldDataParam.columnExclude) {
2575
1278
  dwldDataParam.columnExclude = [];
2576
1279
  }
2577
- /** @type {?} */
2578
1280
  var datab64 = btoa(this.jsonToString(data, dwldDataParam));
2579
1281
  this.downloadFile(datab64, dwldDataParam.fileName, 'text/csv');
2580
1282
  };
2581
- /**
2582
- * @private
2583
- * @param {?} file
2584
- * @param {?} fileName
2585
- * @return {?}
2586
- */
2587
- FileUtil.download = /**
2588
- * @private
2589
- * @param {?} file
2590
- * @param {?} fileName
2591
- * @return {?}
2592
- */
2593
- function (file, fileName) {
2594
- /** @type {?} */
1283
+ FileUtil.download = function (file, fileName) {
2595
1284
  var binaryData = [file];
2596
- /** @type {?} */
2597
1285
  var downloadLink = document.createElement('a');
2598
- /** @type {?} */
2599
1286
  var urlDownload = window.URL.createObjectURL(new Blob(binaryData, { type: file.type }));
2600
1287
  /**Verifica se é ie ou edge, pois o mesmo tem tratamento próprio para arquivos blob */
2601
1288
  if (navigator.userAgent.toUpperCase().indexOf('.NET') > 0 || navigator.userAgent.toUpperCase().indexOf('EDGE') > 0) {
@@ -2610,68 +1297,31 @@
2610
1297
  downloadLink.remove();
2611
1298
  }
2612
1299
  };
2613
- /**
2614
- * @private
2615
- * @param {?} b64Data
2616
- * @param {?=} contentType
2617
- * @param {?=} sliceSize
2618
- * @return {?}
2619
- */
2620
- FileUtil.b64toBlob = /**
2621
- * @private
2622
- * @param {?} b64Data
2623
- * @param {?=} contentType
2624
- * @param {?=} sliceSize
2625
- * @return {?}
2626
- */
2627
- function (b64Data, contentType, sliceSize) {
1300
+ FileUtil.b64toBlob = function (b64Data, contentType, sliceSize) {
2628
1301
  contentType = contentType || '';
2629
1302
  sliceSize = sliceSize || 512;
2630
- /** @type {?} */
2631
1303
  var byteCharacters = atob(b64Data);
2632
- /** @type {?} */
2633
1304
  var byteArrays = [];
2634
1305
  for (var offset = 0; offset < byteCharacters.length; offset += sliceSize) {
2635
- /** @type {?} */
2636
1306
  var slice = byteCharacters.slice(offset, offset + sliceSize);
2637
- /** @type {?} */
2638
1307
  var byteNumbers = new Array(slice.length);
2639
1308
  for (var i = 0; i < slice.length; i++) {
2640
1309
  byteNumbers[i] = slice.charCodeAt(i);
2641
1310
  }
2642
- /** @type {?} */
2643
1311
  var byteArray = new Uint8Array(byteNumbers);
2644
1312
  byteArrays.push(byteArray);
2645
1313
  }
2646
- /** @type {?} */
2647
1314
  var blob = new Blob(byteArrays, { type: contentType });
2648
1315
  return blob;
2649
1316
  };
2650
- /**
2651
- * @private
2652
- * @param {?} jsonData
2653
- * @param {?} dwldDataParam
2654
- * @return {?}
2655
- */
2656
- FileUtil.jsonToString = /**
2657
- * @private
2658
- * @param {?} jsonData
2659
- * @param {?} dwldDataParam
2660
- * @return {?}
2661
- */
2662
- function (jsonData, dwldDataParam) {
1317
+ FileUtil.jsonToString = function (jsonData, dwldDataParam) {
2663
1318
  if (!jsonData || jsonData.length === 0) {
2664
1319
  return '';
2665
1320
  }
2666
- /** @type {?} */
2667
1321
  var lineDelimiter = '\n';
2668
- /** @type {?} */
2669
1322
  var columnOrig = null;
2670
- /** @type {?} */
2671
1323
  var columnHeader = null;
2672
- /** @type {?} */
2673
1324
  var keys = [];
2674
- /** @type {?} */
2675
1325
  var includeKey;
2676
1326
  if (dwldDataParam.columnList &&
2677
1327
  dwldDataParam.columnList.length > 0) {
@@ -2680,11 +1330,7 @@
2680
1330
  else {
2681
1331
  columnOrig = Object.keys(jsonData[0]);
2682
1332
  }
2683
- columnOrig.forEach((/**
2684
- * @param {?} key
2685
- * @return {?}
2686
- */
2687
- function (key) {
1333
+ columnOrig.forEach(function (key) {
2688
1334
  includeKey = true;
2689
1335
  if (dwldDataParam.columnExclude &&
2690
1336
  dwldDataParam.columnExclude.length > 0 &&
@@ -2696,23 +1342,11 @@
2696
1342
  columnHeader = (!columnHeader) ? '' : columnHeader + dwldDataParam.columnDelimiter;
2697
1343
  columnHeader += (dwldDataParam.literals[key]) ? dwldDataParam.literals[key] : key;
2698
1344
  }
2699
- }));
2700
- /** @type {?} */
2701
- var lineStr = jsonData.reduce((/**
2702
- * @param {?} accLineStr
2703
- * @param {?} currentItem
2704
- * @return {?}
2705
- */
2706
- function (accLineStr, currentItem) {
2707
- /** @type {?} */
1345
+ });
1346
+ var lineStr = jsonData.reduce(function (accLineStr, currentItem) {
2708
1347
  var first = true;
2709
- /** @type {?} */
2710
1348
  var columnValue = null;
2711
- keys.forEach((/**
2712
- * @param {?} key
2713
- * @return {?}
2714
- */
2715
- function (key) {
1349
+ keys.forEach(function (key) {
2716
1350
  if (!first) {
2717
1351
  accLineStr += dwldDataParam.columnDelimiter;
2718
1352
  }
@@ -2733,254 +1367,35 @@
2733
1367
  }
2734
1368
  accLineStr += columnValue;
2735
1369
  first = false;
2736
- }));
1370
+ });
2737
1371
  return accLineStr + lineDelimiter;
2738
- }), columnHeader + lineDelimiter);
1372
+ }, columnHeader + lineDelimiter);
2739
1373
  return lineStr;
2740
1374
  };
2741
1375
  return FileUtil;
2742
1376
  }());
2743
- /**
2744
- * @record
2745
- */
2746
- function IDownloadDataParams() { }
2747
- if (false) {
2748
- /** @type {?} */
2749
- IDownloadDataParams.prototype.fileName;
2750
- /** @type {?} */
2751
- IDownloadDataParams.prototype.literals;
2752
- /** @type {?} */
2753
- IDownloadDataParams.prototype.columnDelimiter;
2754
- /** @type {?} */
2755
- IDownloadDataParams.prototype.columnList;
2756
- /** @type {?} */
2757
- IDownloadDataParams.prototype.columnExclude;
2758
- }
2759
1377
  var DownloadDataParams = /** @class */ (function () {
2760
1378
  function DownloadDataParams() {
2761
1379
  }
2762
1380
  return DownloadDataParams;
2763
- }());
2764
- if (false) {
2765
- /** @type {?} */
2766
- DownloadDataParams.prototype.fileName;
2767
- /** @type {?} */
2768
- DownloadDataParams.prototype.literals;
2769
- /** @type {?} */
2770
- DownloadDataParams.prototype.columnDelimiter;
2771
- /** @type {?} */
2772
- DownloadDataParams.prototype.columnList;
2773
- /** @type {?} */
2774
- DownloadDataParams.prototype.columnExclude;
2775
- }
2776
-
2777
- /**
2778
- * @fileoverview added by tsickle
2779
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2780
- */
2781
- /**
2782
- * @record
2783
- * @template T
2784
- */
2785
- function TotvsResponse() { }
2786
- if (false) {
2787
- /** @type {?} */
2788
- TotvsResponse.prototype.items;
2789
- /** @type {?|undefined} */
2790
- TotvsResponse.prototype.hasNext;
2791
- }
2792
-
2793
- /**
2794
- * @fileoverview added by tsickle
2795
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2796
- */
2797
- /**
2798
- * @record
2799
- */
2800
- function IFilterRangeCharacter() { }
2801
- if (false) {
2802
- /** @type {?} */
2803
- IFilterRangeCharacter.prototype.iniInitial;
2804
- /** @type {?} */
2805
- IFilterRangeCharacter.prototype.iniFinal;
2806
- /** @type {?} */
2807
- IFilterRangeCharacter.prototype.valInitial;
2808
- /** @type {?} */
2809
- IFilterRangeCharacter.prototype.valFinal;
2810
- }
2811
- /**
2812
- * @record
2813
- */
2814
- function IFilterRangeNumber() { }
2815
- if (false) {
2816
- /** @type {?} */
2817
- IFilterRangeNumber.prototype.iniInitial;
2818
- /** @type {?} */
2819
- IFilterRangeNumber.prototype.iniFinal;
2820
- /** @type {?} */
2821
- IFilterRangeNumber.prototype.valInitial;
2822
- /** @type {?} */
2823
- IFilterRangeNumber.prototype.valFinal;
2824
- }
2825
- /**
2826
- * @record
2827
- */
2828
- function IFilterRangeDate() { }
2829
- if (false) {
2830
- /** @type {?} */
2831
- IFilterRangeDate.prototype.iniInitial;
2832
- /** @type {?} */
2833
- IFilterRangeDate.prototype.iniFinal;
2834
- /** @type {?} */
2835
- IFilterRangeDate.prototype.valInitial;
2836
- /** @type {?} */
2837
- IFilterRangeDate.prototype.valFinal;
2838
- }
1381
+ }());
2839
1382
 
2840
- /**
2841
- * @fileoverview added by tsickle
2842
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2843
- */
2844
- /**
2845
- * @record
2846
- */
2847
- function IScheduleParameters() { }
2848
- if (false) {
2849
- /** @type {?} */
2850
- IScheduleParameters.prototype.executionType;
2851
- /** @type {?} */
2852
- IScheduleParameters.prototype.execAppointDate;
2853
- /** @type {?} */
2854
- IScheduleParameters.prototype.execAppointHour;
2855
- /** @type {?} */
2856
- IScheduleParameters.prototype.executionServer;
2857
- /** @type {?} */
2858
- IScheduleParameters.prototype.repeatExecution;
2859
- /** @type {?} */
2860
- IScheduleParameters.prototype.repeatType;
2861
- /** @type {?} */
2862
- IScheduleParameters.prototype.frequency;
2863
- /** @type {?} */
2864
- IScheduleParameters.prototype.frequencyValue;
2865
- /** @type {?} */
2866
- IScheduleParameters.prototype.frequencyType;
2867
- /** @type {?} */
2868
- IScheduleParameters.prototype.execAppointHourInit;
2869
- /** @type {?} */
2870
- IScheduleParameters.prototype.execAppointHourFinal;
2871
- /** @type {?} */
2872
- IScheduleParameters.prototype.selectWeeklys;
2873
- /** @type {?} */
2874
- IScheduleParameters.prototype.dayOfMonth;
2875
- }
2876
1383
  var ScheduleParameters = /** @class */ (function () {
2877
1384
  function ScheduleParameters() {
2878
1385
  }
2879
1386
  return ScheduleParameters;
2880
1387
  }());
2881
- if (false) {
2882
- /** @type {?} */
2883
- ScheduleParameters.prototype.executionType;
2884
- /** @type {?} */
2885
- ScheduleParameters.prototype.execAppointDate;
2886
- /** @type {?} */
2887
- ScheduleParameters.prototype.execAppointHour;
2888
- /** @type {?} */
2889
- ScheduleParameters.prototype.executionServer;
2890
- /** @type {?} */
2891
- ScheduleParameters.prototype.repeatExecution;
2892
- /** @type {?} */
2893
- ScheduleParameters.prototype.repeatType;
2894
- /** @type {?} */
2895
- ScheduleParameters.prototype.frequency;
2896
- /** @type {?} */
2897
- ScheduleParameters.prototype.frequencyValue;
2898
- /** @type {?} */
2899
- ScheduleParameters.prototype.frequencyType;
2900
- /** @type {?} */
2901
- ScheduleParameters.prototype.execAppointHourInit;
2902
- /** @type {?} */
2903
- ScheduleParameters.prototype.execAppointHourFinal;
2904
- /** @type {?} */
2905
- ScheduleParameters.prototype.selectWeeklys;
2906
- /** @type {?} */
2907
- ScheduleParameters.prototype.dayOfMonth;
2908
- }
2909
- /**
2910
- * @record
2911
- */
2912
- function IExecutionStatus() { }
2913
- if (false) {
2914
- /** @type {?} */
2915
- IExecutionStatus.prototype.jobScheduleID;
2916
- /** @type {?} */
2917
- IExecutionStatus.prototype.executionID;
2918
- /** @type {?} */
2919
- IExecutionStatus.prototype.startedDate;
2920
- /** @type {?} */
2921
- IExecutionStatus.prototype.error;
2922
- /** @type {?} */
2923
- IExecutionStatus.prototype.status;
2924
- }
2925
1388
  var ExecutionStatus = /** @class */ (function () {
2926
1389
  function ExecutionStatus() {
2927
1390
  }
2928
1391
  return ExecutionStatus;
2929
1392
  }());
2930
- if (false) {
2931
- /** @type {?} */
2932
- ExecutionStatus.prototype.jobScheduleID;
2933
- /** @type {?} */
2934
- ExecutionStatus.prototype.executionID;
2935
- /** @type {?} */
2936
- ExecutionStatus.prototype.startedDate;
2937
- /** @type {?} */
2938
- ExecutionStatus.prototype.error;
2939
- /** @type {?} */
2940
- ExecutionStatus.prototype.status;
2941
- }
2942
- /**
2943
- * @record
2944
- */
2945
- function IExecutionParameters() { }
2946
- if (false) {
2947
- /** @type {?} */
2948
- IExecutionParameters.prototype.executionServer;
2949
- /** @type {?} */
2950
- IExecutionParameters.prototype.programName;
2951
- /** @type {?} */
2952
- IExecutionParameters.prototype.externalName;
2953
- /** @type {?} */
2954
- IExecutionParameters.prototype.programEMS5;
2955
- /** @type {?} */
2956
- IExecutionParameters.prototype.programVersion;
2957
- /** @type {?} */
2958
- IExecutionParameters.prototype.businessParams;
2959
- }
2960
1393
  var ExecutionParameters = /** @class */ (function () {
2961
1394
  function ExecutionParameters() {
2962
1395
  }
2963
1396
  return ExecutionParameters;
2964
- }());
2965
- if (false) {
2966
- /** @type {?} */
2967
- ExecutionParameters.prototype.executionServer;
2968
- /** @type {?} */
2969
- ExecutionParameters.prototype.programName;
2970
- /** @type {?} */
2971
- ExecutionParameters.prototype.externalName;
2972
- /** @type {?} */
2973
- ExecutionParameters.prototype.programEMS5;
2974
- /** @type {?} */
2975
- ExecutionParameters.prototype.programVersion;
2976
- /** @type {?} */
2977
- ExecutionParameters.prototype.businessParams;
2978
- }
1397
+ }());
2979
1398
 
2980
- /**
2981
- * @fileoverview added by tsickle
2982
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2983
- */
2984
1399
  var TotvsScheduleExecutionService = /** @class */ (function () {
2985
1400
  function TotvsScheduleExecutionService(http) {
2986
1401
  this.http = http;
@@ -2989,16 +1404,7 @@
2989
1404
  this.urlJobScheduler = '/dts/datasul-rest/resources/prg/framework/v1/jobScheduler';
2990
1405
  this.urlJobExecution = '/dts/datasul-rest/resources/prg/framework/v1/jobExecution';
2991
1406
  }
2992
- /**
2993
- * @param {?} params
2994
- * @return {?}
2995
- */
2996
- TotvsScheduleExecutionService.prototype.getFilteredItems = /**
2997
- * @param {?} params
2998
- * @return {?}
2999
- */
3000
- function (params) {
3001
- /** @type {?} */
1407
+ TotvsScheduleExecutionService.prototype.getFilteredItems = function (params) {
3002
1408
  var urlParams = new Array();
3003
1409
  urlParams.push("pageSize=" + params.pageSize.toString());
3004
1410
  urlParams.push("page=" + params.page.toString());
@@ -3007,29 +1413,10 @@
3007
1413
  }
3008
1414
  return this.http.get(this.urlCadServidor + "?" + urlParams.join('&'));
3009
1415
  };
3010
- /**
3011
- * @param {?} id
3012
- * @return {?}
3013
- */
3014
- TotvsScheduleExecutionService.prototype.getObjectByValue = /**
3015
- * @param {?} id
3016
- * @return {?}
3017
- */
3018
- function (id) {
1416
+ TotvsScheduleExecutionService.prototype.getObjectByValue = function (id) {
3019
1417
  return this.http.get(this.urlCadServidor + "/" + id, this.headers);
3020
1418
  };
3021
- /**
3022
- * @param {?} parameters
3023
- * @param {?} loading
3024
- * @return {?}
3025
- */
3026
- TotvsScheduleExecutionService.prototype.createExecution = /**
3027
- * @param {?} parameters
3028
- * @param {?} loading
3029
- * @return {?}
3030
- */
3031
- function (parameters, loading) {
3032
- /** @type {?} */
1419
+ TotvsScheduleExecutionService.prototype.createExecution = function (parameters, loading) {
3033
1420
  var params = JSON.parse(JSON.stringify(parameters).replace(/\\\\/g, '*|'));
3034
1421
  if (loading) {
3035
1422
  return this.http.post("" + this.urlJobScheduler, params, this.headers);
@@ -3038,22 +1425,9 @@
3038
1425
  return this.http.post("" + this.urlJobScheduler, params);
3039
1426
  }
3040
1427
  };
3041
- /**
3042
- * @param {?} executionParams
3043
- * @param {?} loading
3044
- * @return {?}
3045
- */
3046
- TotvsScheduleExecutionService.prototype.createExecutionForNow = /**
3047
- * @param {?} executionParams
3048
- * @param {?} loading
3049
- * @return {?}
3050
- */
3051
- function (executionParams, loading) {
3052
- /** @type {?} */
1428
+ TotvsScheduleExecutionService.prototype.createExecutionForNow = function (executionParams, loading) {
3053
1429
  var jobScheduleParams;
3054
- /** @type {?} */
3055
1430
  var date = new Date();
3056
- /** @type {?} */
3057
1431
  var params = JSON.parse(JSON.stringify(executionParams).replace(/\\\\/g, '*|'));
3058
1432
  if (!params.businessParams || params.businessParams.length === 0) {
3059
1433
  params.businessParams = [{ chave: '', valor: '' }];
@@ -3079,61 +1453,19 @@
3079
1453
  return this.http.post("" + this.urlJobScheduler, jobScheduleParams);
3080
1454
  }
3081
1455
  };
3082
- /**
3083
- * @param {?} jobScheduleID
3084
- * @param {?=} loading
3085
- * @return {?}
3086
- */
3087
- TotvsScheduleExecutionService.prototype.getExecutionByJobScheduleID = /**
3088
- * @param {?} jobScheduleID
3089
- * @param {?=} loading
3090
- * @return {?}
3091
- */
3092
- function (jobScheduleID, loading) {
1456
+ TotvsScheduleExecutionService.prototype.getExecutionByJobScheduleID = function (jobScheduleID, loading) {
3093
1457
  var _this = this;
3094
1458
  if (loading === void 0) { loading = false; }
3095
- /** @type {?} */
3096
1459
  var url = this.urlJobExecution + "?jobScheduleID=" + jobScheduleID;
3097
- return this.getExecution(url, loading).pipe(operators.map((/**
3098
- * @param {?} response
3099
- * @return {?}
3100
- */
3101
- function (response) { return _this.transformExecution('jobScheduleID', response); })));
1460
+ return this.getExecution(url, loading).pipe(operators.map(function (response) { return _this.transformExecution('jobScheduleID', response); }));
3102
1461
  };
3103
- /**
3104
- * @param {?} executionID
3105
- * @param {?=} loading
3106
- * @return {?}
3107
- */
3108
- TotvsScheduleExecutionService.prototype.getExecutionByExecutionID = /**
3109
- * @param {?} executionID
3110
- * @param {?=} loading
3111
- * @return {?}
3112
- */
3113
- function (executionID, loading) {
1462
+ TotvsScheduleExecutionService.prototype.getExecutionByExecutionID = function (executionID, loading) {
3114
1463
  var _this = this;
3115
1464
  if (loading === void 0) { loading = false; }
3116
- /** @type {?} */
3117
1465
  var url = this.urlJobExecution + "/" + executionID;
3118
- return this.getExecution(url, loading).pipe(operators.map((/**
3119
- * @param {?} response
3120
- * @return {?}
3121
- */
3122
- function (response) { return _this.transformExecution('executionID', response); })));
1466
+ return this.getExecution(url, loading).pipe(operators.map(function (response) { return _this.transformExecution('executionID', response); }));
3123
1467
  };
3124
- /**
3125
- * @private
3126
- * @param {?} url
3127
- * @param {?} loading
3128
- * @return {?}
3129
- */
3130
- TotvsScheduleExecutionService.prototype.getExecution = /**
3131
- * @private
3132
- * @param {?} url
3133
- * @param {?} loading
3134
- * @return {?}
3135
- */
3136
- function (url, loading) {
1468
+ TotvsScheduleExecutionService.prototype.getExecution = function (url, loading) {
3137
1469
  if (loading) {
3138
1470
  return this.http.get(url, this.headers);
3139
1471
  }
@@ -3141,24 +1473,11 @@
3141
1473
  return this.http.get(url);
3142
1474
  }
3143
1475
  };
3144
- /**
3145
- * @private
3146
- * @param {?} type
3147
- * @param {?} response
3148
- * @return {?}
3149
- */
3150
- TotvsScheduleExecutionService.prototype.transformExecution = /**
3151
- * @private
3152
- * @param {?} type
3153
- * @param {?} response
3154
- * @return {?}
3155
- */
3156
- function (type, response) {
1476
+ TotvsScheduleExecutionService.prototype.transformExecution = function (type, response) {
3157
1477
  if (!response || !response.items || response.items.length === 0) {
3158
1478
  return;
3159
1479
  }
3160
1480
  response = response.items[0];
3161
- /** @type {?} */
3162
1481
  var execStatus = new ExecutionStatus();
3163
1482
  execStatus.jobScheduleID = response.jobScheduleID;
3164
1483
  execStatus.executionID = response.executionID;
@@ -3167,69 +1486,18 @@
3167
1486
  execStatus.status = response.status;
3168
1487
  return execStatus;
3169
1488
  };
3170
- /**
3171
- * @param {?} jobScheduleID
3172
- * @param {?} intervalNum
3173
- * @param {?} fncCallBack
3174
- * @param {?=} loading
3175
- * @return {?}
3176
- */
3177
- TotvsScheduleExecutionService.prototype.followUpExcByJobScheduleID = /**
3178
- * @param {?} jobScheduleID
3179
- * @param {?} intervalNum
3180
- * @param {?} fncCallBack
3181
- * @param {?=} loading
3182
- * @return {?}
3183
- */
3184
- function (jobScheduleID, intervalNum, fncCallBack, loading) {
1489
+ TotvsScheduleExecutionService.prototype.followUpExcByJobScheduleID = function (jobScheduleID, intervalNum, fncCallBack, loading) {
3185
1490
  if (loading === void 0) { loading = false; }
3186
1491
  this.followUpExecution('jobScheduleID', jobScheduleID, intervalNum, fncCallBack, loading);
3187
1492
  };
3188
- /**
3189
- * @param {?} executionID
3190
- * @param {?} intervalNum
3191
- * @param {?} fncCallBack
3192
- * @param {?=} loading
3193
- * @return {?}
3194
- */
3195
- TotvsScheduleExecutionService.prototype.followUpExcByExecutionID = /**
3196
- * @param {?} executionID
3197
- * @param {?} intervalNum
3198
- * @param {?} fncCallBack
3199
- * @param {?=} loading
3200
- * @return {?}
3201
- */
3202
- function (executionID, intervalNum, fncCallBack, loading) {
1493
+ TotvsScheduleExecutionService.prototype.followUpExcByExecutionID = function (executionID, intervalNum, fncCallBack, loading) {
3203
1494
  if (loading === void 0) { loading = false; }
3204
1495
  this.followUpExecution('executionID', executionID, intervalNum, fncCallBack, loading);
3205
1496
  };
3206
- /**
3207
- * @private
3208
- * @param {?} type
3209
- * @param {?} execID
3210
- * @param {?} intervalNum
3211
- * @param {?} fncCallBack
3212
- * @param {?} loading
3213
- * @return {?}
3214
- */
3215
- TotvsScheduleExecutionService.prototype.followUpExecution = /**
3216
- * @private
3217
- * @param {?} type
3218
- * @param {?} execID
3219
- * @param {?} intervalNum
3220
- * @param {?} fncCallBack
3221
- * @param {?} loading
3222
- * @return {?}
3223
- */
3224
- function (type, execID, intervalNum, fncCallBack, loading) {
1497
+ TotvsScheduleExecutionService.prototype.followUpExecution = function (type, execID, intervalNum, fncCallBack, loading) {
3225
1498
  var _this = this;
3226
1499
  this.jobExecutionSubscription$ = null;
3227
- /** @type {?} */
3228
- var intervalID = setInterval((/**
3229
- * @return {?}
3230
- */
3231
- function () {
3232
- /** @type {?} */
1500
+ var intervalID = setInterval(function () {
3233
1501
  var execStatus = new ExecutionStatus();
3234
1502
  execStatus.jobScheduleID = (type === 'jobScheduleID') ? execID : '';
3235
1503
  execStatus.executionID = (type === 'executionID') ? execID : '';
@@ -3241,57 +1509,23 @@
3241
1509
  }
3242
1510
  if (type === 'jobScheduleID') {
3243
1511
  _this.jobExecutionSubscription$ = _this.getExecutionByJobScheduleID(execID, loading)
3244
- .subscribe((/**
3245
- * @param {?} response
3246
- * @return {?}
3247
- */
3248
- function (response) {
1512
+ .subscribe(function (response) {
3249
1513
  _this.followUpExecReturnOk(execID, execStatus, response, intervalID, fncCallBack);
3250
- }), (/**
3251
- * @param {?} error
3252
- * @return {?}
3253
- */
3254
- function (error) {
1514
+ }, function (error) {
3255
1515
  _this.followUpExecReturnError(error, execStatus, intervalID, fncCallBack);
3256
- }));
1516
+ });
3257
1517
  }
3258
1518
  if (type === 'executionID') {
3259
1519
  _this.jobExecutionSubscription$ = _this.getExecutionByExecutionID(execID, loading)
3260
- .subscribe((/**
3261
- * @param {?} response
3262
- * @return {?}
3263
- */
3264
- function (response) {
1520
+ .subscribe(function (response) {
3265
1521
  _this.followUpExecReturnOk(execID, execStatus, response, intervalID, fncCallBack);
3266
- }), (/**
3267
- * @param {?} error
3268
- * @return {?}
3269
- */
3270
- function (error) {
1522
+ }, function (error) {
3271
1523
  _this.followUpExecReturnError(error, execStatus, intervalID, fncCallBack);
3272
- }));
1524
+ });
3273
1525
  }
3274
- }), intervalNum);
1526
+ }, intervalNum);
3275
1527
  };
3276
- /**
3277
- * @private
3278
- * @param {?} execID
3279
- * @param {?} execStatus
3280
- * @param {?} response
3281
- * @param {?} intervalID
3282
- * @param {?} fncCallBack
3283
- * @return {?}
3284
- */
3285
- TotvsScheduleExecutionService.prototype.followUpExecReturnOk = /**
3286
- * @private
3287
- * @param {?} execID
3288
- * @param {?} execStatus
3289
- * @param {?} response
3290
- * @param {?} intervalID
3291
- * @param {?} fncCallBack
3292
- * @return {?}
3293
- */
3294
- function (execID, execStatus, response, intervalID, fncCallBack) {
1528
+ TotvsScheduleExecutionService.prototype.followUpExecReturnOk = function (execID, execStatus, response, intervalID, fncCallBack) {
3295
1529
  if (response) {
3296
1530
  execStatus = response;
3297
1531
  }
@@ -3306,26 +1540,9 @@
3306
1540
  }
3307
1541
  this.jobExecutionSubscription$ = null;
3308
1542
  };
3309
- /**
3310
- * @private
3311
- * @param {?} error
3312
- * @param {?} execStatus
3313
- * @param {?} intervalID
3314
- * @param {?} fncCallBack
3315
- * @return {?}
3316
- */
3317
- TotvsScheduleExecutionService.prototype.followUpExecReturnError = /**
3318
- * @private
3319
- * @param {?} error
3320
- * @param {?} execStatus
3321
- * @param {?} intervalID
3322
- * @param {?} fncCallBack
3323
- * @return {?}
3324
- */
3325
- function (error, execStatus, intervalID, fncCallBack) {
3326
- /** @type {?} */
1543
+ TotvsScheduleExecutionService.prototype.followUpExecReturnError = function (error, execStatus, intervalID, fncCallBack) {
3327
1544
  var erroDesc = '';
3328
- if (error instanceof http.HttpErrorResponse) {
1545
+ if (error instanceof i1.HttpErrorResponse) {
3329
1546
  erroDesc = error.message;
3330
1547
  if (error.error) {
3331
1548
  erroDesc = '';
@@ -3349,67 +1566,23 @@
3349
1566
  clearInterval(intervalID);
3350
1567
  this.jobExecutionSubscription$ = null;
3351
1568
  };
3352
- /**
3353
- * @private
3354
- * @param {?} num
3355
- * @return {?}
3356
- */
3357
- TotvsScheduleExecutionService.prototype.addZero = /**
3358
- * @private
3359
- * @param {?} num
3360
- * @return {?}
3361
- */
3362
- function (num) {
3363
- /** @type {?} */
1569
+ TotvsScheduleExecutionService.prototype.addZero = function (num) {
3364
1570
  var str = "" + num;
3365
1571
  if (num < 10) {
3366
1572
  str = "0" + num;
3367
1573
  }
3368
1574
  return str;
3369
1575
  };
3370
- TotvsScheduleExecutionService.decorators = [
3371
- { type: core.Injectable }
3372
- ];
3373
- /** @nocollapse */
3374
- TotvsScheduleExecutionService.ctorParameters = function () { return [
3375
- { type: http.HttpClient }
3376
- ]; };
3377
1576
  return TotvsScheduleExecutionService;
3378
1577
  }());
3379
- if (false) {
3380
- /**
3381
- * @type {?}
3382
- * @private
3383
- */
3384
- TotvsScheduleExecutionService.prototype.headers;
3385
- /**
3386
- * @type {?}
3387
- * @private
3388
- */
3389
- TotvsScheduleExecutionService.prototype.urlCadServidor;
3390
- /**
3391
- * @type {?}
3392
- * @private
3393
- */
3394
- TotvsScheduleExecutionService.prototype.urlJobScheduler;
3395
- /**
3396
- * @type {?}
3397
- * @private
3398
- */
3399
- TotvsScheduleExecutionService.prototype.urlJobExecution;
3400
- /**
3401
- * @type {?}
3402
- * @private
3403
- */
3404
- TotvsScheduleExecutionService.prototype.jobExecutionSubscription$;
3405
- /** @type {?} */
3406
- TotvsScheduleExecutionService.prototype.http;
3407
- }
1578
+ TotvsScheduleExecutionService.decorators = [
1579
+ { type: i0.Injectable }
1580
+ ];
1581
+ /** @nocollapse */
1582
+ TotvsScheduleExecutionService.ctorParameters = function () { return [
1583
+ { type: i1.HttpClient }
1584
+ ]; };
3408
1585
 
3409
- /**
3410
- * @fileoverview added by tsickle
3411
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3412
- */
3413
1586
  var TotvsScheduleExecutionComponent = /** @class */ (function () {
3414
1587
  function TotvsScheduleExecutionComponent(poI18nService, rpwService, poNotification) {
3415
1588
  this.poI18nService = poI18nService;
@@ -3419,17 +1592,11 @@
3419
1592
  this.programVersion = '';
3420
1593
  this.disabledParams = false;
3421
1594
  this.loading = false;
3422
- this.endExecution = new core.EventEmitter();
1595
+ this.endExecution = new i0.EventEmitter();
3423
1596
  this.jsonObject = {};
3424
1597
  this.literals = {};
3425
1598
  }
3426
- /**
3427
- * @return {?}
3428
- */
3429
- TotvsScheduleExecutionComponent.prototype.ngOnInit = /**
3430
- * @return {?}
3431
- */
3432
- function () {
1599
+ TotvsScheduleExecutionComponent.prototype.ngOnInit = function () {
3433
1600
  /* VERIFICAR COMO FICARÁ A TRADUÇÃO
3434
1601
  forkJoin(
3435
1602
  this.poI18nService.getLiterals(),
@@ -3440,13 +1607,7 @@
3440
1607
  });*/
3441
1608
  this.setupComponents();
3442
1609
  };
3443
- /**
3444
- * @return {?}
3445
- */
3446
- TotvsScheduleExecutionComponent.prototype.setupComponents = /**
3447
- * @return {?}
3448
- */
3449
- function () {
1610
+ TotvsScheduleExecutionComponent.prototype.setupComponents = function () {
3450
1611
  this.executionTypeOptions = [
3451
1612
  { label: 'Executar Hoje', value: 1 },
3452
1613
  { label: 'Agendar Execução', value: 2 }
@@ -3477,66 +1638,25 @@
3477
1638
  this.model.repeatType = 1;
3478
1639
  this.model.repeatExecution = false;
3479
1640
  };
3480
- /**
3481
- * @param {?} schParam
3482
- * @return {?}
3483
- */
3484
- TotvsScheduleExecutionComponent.prototype.setScheduleParameters = /**
3485
- * @param {?} schParam
3486
- * @return {?}
3487
- */
3488
- function (schParam) {
1641
+ TotvsScheduleExecutionComponent.prototype.setScheduleParameters = function (schParam) {
3489
1642
  if (!schParam) {
3490
1643
  return;
3491
1644
  }
3492
1645
  this.model = schParam;
3493
1646
  };
3494
- /**
3495
- * @param {?} value
3496
- * @return {?}
3497
- */
3498
- TotvsScheduleExecutionComponent.prototype.fieldRpwServiceFormat = /**
3499
- * @param {?} value
3500
- * @return {?}
3501
- */
3502
- function (value) {
1647
+ TotvsScheduleExecutionComponent.prototype.fieldRpwServiceFormat = function (value) {
3503
1648
  return value.code + " - " + value.name;
3504
1649
  };
3505
- /**
3506
- * @return {?}
3507
- */
3508
- TotvsScheduleExecutionComponent.prototype.isExecutionSchedule = /**
3509
- * @return {?}
3510
- */
3511
- function () {
1650
+ TotvsScheduleExecutionComponent.prototype.isExecutionSchedule = function () {
3512
1651
  return (this.model.executionType === 2);
3513
1652
  };
3514
- /**
3515
- * @return {?}
3516
- */
3517
- TotvsScheduleExecutionComponent.prototype.isRepeatExecution = /**
3518
- * @return {?}
3519
- */
3520
- function () {
1653
+ TotvsScheduleExecutionComponent.prototype.isRepeatExecution = function () {
3521
1654
  return this.model.repeatExecution;
3522
1655
  };
3523
- /**
3524
- * @return {?}
3525
- */
3526
- TotvsScheduleExecutionComponent.prototype.isFrenquency = /**
3527
- * @return {?}
3528
- */
3529
- function () {
1656
+ TotvsScheduleExecutionComponent.prototype.isFrenquency = function () {
3530
1657
  return (this.model.frequency === 'yes');
3531
1658
  };
3532
- /**
3533
- * @return {?}
3534
- */
3535
- TotvsScheduleExecutionComponent.prototype.changeRepeatExecution = /**
3536
- * @return {?}
3537
- */
3538
- function () {
3539
- /** @type {?} */
1659
+ TotvsScheduleExecutionComponent.prototype.changeRepeatExecution = function () {
3540
1660
  var date = new Date();
3541
1661
  if (!this.model.execAppointHourInit) {
3542
1662
  this.model.execAppointHourInit = this.addZero(date.getHours()) + ":" + this.addZero(date.getMinutes());
@@ -3550,71 +1670,27 @@
3550
1670
  this.model.frequencyType = 'hour';
3551
1671
  this.model.frequencyValue = 0;
3552
1672
  };
3553
- /**
3554
- * @return {?}
3555
- */
3556
- TotvsScheduleExecutionComponent.prototype.changeExecutionType = /**
3557
- * @return {?}
3558
- */
3559
- function () {
3560
- /** @type {?} */
1673
+ TotvsScheduleExecutionComponent.prototype.changeExecutionType = function () {
3561
1674
  var date = new Date();
3562
1675
  this.model.execAppointDate = date;
3563
1676
  this.model.execAppointHour = this.addZero(date.getHours()) + ":" + this.addZero(date.getMinutes());
3564
1677
  };
3565
- /**
3566
- * @return {?}
3567
- */
3568
- TotvsScheduleExecutionComponent.prototype.changeTypeFrequency = /**
3569
- * @return {?}
3570
- */
3571
- function () {
1678
+ TotvsScheduleExecutionComponent.prototype.changeTypeFrequency = function () {
3572
1679
  };
3573
- /**
3574
- * @param {?} codTab
3575
- * @return {?}
3576
- */
3577
- TotvsScheduleExecutionComponent.prototype.getActiveTab = /**
3578
- * @param {?} codTab
3579
- * @return {?}
3580
- */
3581
- function (codTab) {
1680
+ TotvsScheduleExecutionComponent.prototype.getActiveTab = function (codTab) {
3582
1681
  return (this.model.repeatType === codTab);
3583
1682
  };
3584
- /**
3585
- * @param {?} codTab
3586
- * @return {?}
3587
- */
3588
- TotvsScheduleExecutionComponent.prototype.setActiveTab = /**
3589
- * @param {?} codTab
3590
- * @return {?}
3591
- */
3592
- function (codTab) {
1683
+ TotvsScheduleExecutionComponent.prototype.setActiveTab = function (codTab) {
3593
1684
  this.model.repeatType = codTab;
3594
1685
  };
3595
- /**
3596
- * @param {?} num
3597
- * @return {?}
3598
- */
3599
- TotvsScheduleExecutionComponent.prototype.addZero = /**
3600
- * @param {?} num
3601
- * @return {?}
3602
- */
3603
- function (num) {
3604
- /** @type {?} */
1686
+ TotvsScheduleExecutionComponent.prototype.addZero = function (num) {
3605
1687
  var str = "" + num;
3606
1688
  if (num < 10) {
3607
1689
  str = "0" + num;
3608
1690
  }
3609
1691
  return str;
3610
1692
  };
3611
- /**
3612
- * @return {?}
3613
- */
3614
- TotvsScheduleExecutionComponent.prototype.executeSchedule = /**
3615
- * @return {?}
3616
- */
3617
- function () {
1693
+ TotvsScheduleExecutionComponent.prototype.executeSchedule = function () {
3618
1694
  var _this = this;
3619
1695
  if (this.disabledParams) {
3620
1696
  return;
@@ -3628,7 +1704,6 @@
3628
1704
  this.jsonObject.recurrent = this.model.repeatExecution;
3629
1705
  this.jsonObject.executionParameter = {};
3630
1706
  if (this.model.executionType === 1) {
3631
- /** @type {?} */
3632
1707
  var date = new Date();
3633
1708
  this.jsonObject.firstExecution = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate() + "T" + this.addZero(date.getHours()) + ":" + this.addZero(date.getMinutes()) + ":00.000Z";
3634
1709
  }
@@ -3643,12 +1718,9 @@
3643
1718
  this.jsonObject.executionParameter.parametros[4] = {};
3644
1719
  this.jsonObject.executionParameter.parametros[4].parametros_negocio = this.parameters;
3645
1720
  // Executa hoje ou agendada
3646
- this.rpwService.createExecution(this.jsonObject, this.loading).subscribe((/**
3647
- * @return {?}
3648
- */
3649
- function () {
1721
+ this.rpwService.createExecution(this.jsonObject, this.loading).subscribe(function () {
3650
1722
  _this.poNotification.success('Agendamento realizado com sucesso !');
3651
- }));
1723
+ });
3652
1724
  if (this.model.repeatExecution) {
3653
1725
  if (this.model.repeatType === 1) {
3654
1726
  this.jsonObject.daily = {
@@ -3683,25 +1755,12 @@
3683
1755
  };
3684
1756
  }
3685
1757
  // Executa a diária, semanal ou mensal
3686
- this.rpwService.createExecution(this.jsonObject, this.loading).subscribe((/**
3687
- * @return {?}
3688
- */
3689
- function () {
3690
- }));
1758
+ this.rpwService.createExecution(this.jsonObject, this.loading).subscribe(function () {
1759
+ });
3691
1760
  }
3692
1761
  this.endExecution.emit(this.model);
3693
1762
  };
3694
- /**
3695
- * @param {?} value
3696
- * @param {?} type
3697
- * @return {?}
3698
- */
3699
- TotvsScheduleExecutionComponent.prototype.getHourOrMinute = /**
3700
- * @param {?} value
3701
- * @param {?} type
3702
- * @return {?}
3703
- */
3704
- function (value, type) {
1763
+ TotvsScheduleExecutionComponent.prototype.getHourOrMinute = function (value, type) {
3705
1764
  if (type === 'h') {
3706
1765
  return +value.substring(0, 2);
3707
1766
  }
@@ -3709,17 +1768,7 @@
3709
1768
  return +value.substring(3, 6);
3710
1769
  }
3711
1770
  };
3712
- /**
3713
- * @param {?} hourInit
3714
- * @param {?} hourFinal
3715
- * @return {?}
3716
- */
3717
- TotvsScheduleExecutionComponent.prototype.compareHour = /**
3718
- * @param {?} hourInit
3719
- * @param {?} hourFinal
3720
- * @return {?}
3721
- */
3722
- function (hourInit, hourFinal) {
1771
+ TotvsScheduleExecutionComponent.prototype.compareHour = function (hourInit, hourFinal) {
3723
1772
  if (hourInit === hourFinal) {
3724
1773
  return false;
3725
1774
  }
@@ -3731,13 +1780,7 @@
3731
1780
  }
3732
1781
  return true;
3733
1782
  };
3734
- /**
3735
- * @return {?}
3736
- */
3737
- TotvsScheduleExecutionComponent.prototype.validate = /**
3738
- * @return {?}
3739
- */
3740
- function () {
1783
+ TotvsScheduleExecutionComponent.prototype.validate = function () {
3741
1784
  if (!this.scheduleExecutionForm.valid) {
3742
1785
  this.poNotification.error('Verifique as inconsistências em tela.');
3743
1786
  return false;
@@ -3776,154 +1819,93 @@
3776
1819
  }
3777
1820
  return true;
3778
1821
  };
3779
- TotvsScheduleExecutionComponent.decorators = [
3780
- { type: core.Component, args: [{
3781
- selector: 'app-totvs-schedule-execution',
3782
- 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",
3783
- styles: [""]
3784
- }] }
3785
- ];
3786
- /** @nocollapse */
3787
- TotvsScheduleExecutionComponent.ctorParameters = function () { return [
3788
- { type: ngComponents.PoI18nService },
3789
- { type: TotvsScheduleExecutionService },
3790
- { type: ngComponents.PoNotificationService }
3791
- ]; };
3792
- TotvsScheduleExecutionComponent.propDecorators = {
3793
- scheduleExecutionForm: [{ type: core.ViewChild, args: ['scheduleExecutionForm', { static: true },] }],
3794
- programName: [{ type: core.Input }],
3795
- externalName: [{ type: core.Input }],
3796
- programEMS5: [{ type: core.Input }],
3797
- programVersion: [{ type: core.Input }],
3798
- parameters: [{ type: core.Input }],
3799
- disabledParams: [{ type: core.Input }],
3800
- loading: [{ type: core.Input }],
3801
- endExecution: [{ type: core.Output }]
3802
- };
3803
1822
  return TotvsScheduleExecutionComponent;
3804
1823
  }());
3805
- if (false) {
3806
- /** @type {?} */
3807
- TotvsScheduleExecutionComponent.prototype.scheduleExecutionForm;
3808
- /** @type {?} */
3809
- TotvsScheduleExecutionComponent.prototype.programName;
3810
- /** @type {?} */
3811
- TotvsScheduleExecutionComponent.prototype.externalName;
3812
- /** @type {?} */
3813
- TotvsScheduleExecutionComponent.prototype.programEMS5;
3814
- /** @type {?} */
3815
- TotvsScheduleExecutionComponent.prototype.programVersion;
3816
- /** @type {?} */
3817
- TotvsScheduleExecutionComponent.prototype.parameters;
3818
- /** @type {?} */
3819
- TotvsScheduleExecutionComponent.prototype.disabledParams;
3820
- /** @type {?} */
3821
- TotvsScheduleExecutionComponent.prototype.loading;
3822
- /** @type {?} */
3823
- TotvsScheduleExecutionComponent.prototype.endExecution;
3824
- /** @type {?} */
3825
- TotvsScheduleExecutionComponent.prototype.executionTypeOptions;
3826
- /** @type {?} */
3827
- TotvsScheduleExecutionComponent.prototype.frequencyOptions;
3828
- /** @type {?} */
3829
- TotvsScheduleExecutionComponent.prototype.frequencyTypeOptions;
3830
- /** @type {?} */
3831
- TotvsScheduleExecutionComponent.prototype.weeklyOptions;
3832
- /** @type {?} */
3833
- TotvsScheduleExecutionComponent.prototype.zoomRpwServiceColumns;
3834
- /** @type {?} */
3835
- TotvsScheduleExecutionComponent.prototype.model;
3836
- /**
3837
- * @type {?}
3838
- * @private
3839
- */
3840
- TotvsScheduleExecutionComponent.prototype.jsonObject;
3841
- /** @type {?} */
3842
- TotvsScheduleExecutionComponent.prototype.literals;
3843
- /** @type {?} */
3844
- TotvsScheduleExecutionComponent.prototype.poI18nService;
3845
- /** @type {?} */
3846
- TotvsScheduleExecutionComponent.prototype.rpwService;
3847
- /** @type {?} */
3848
- TotvsScheduleExecutionComponent.prototype.poNotification;
3849
- }
1824
+ TotvsScheduleExecutionComponent.decorators = [
1825
+ { type: i0.Component, args: [{
1826
+ selector: 'app-totvs-schedule-execution',
1827
+ 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",
1828
+ styles: [""]
1829
+ },] }
1830
+ ];
1831
+ /** @nocollapse */
1832
+ TotvsScheduleExecutionComponent.ctorParameters = function () { return [
1833
+ { type: ngComponents.PoI18nService },
1834
+ { type: TotvsScheduleExecutionService },
1835
+ { type: ngComponents.PoNotificationService }
1836
+ ]; };
1837
+ TotvsScheduleExecutionComponent.propDecorators = {
1838
+ scheduleExecutionForm: [{ type: i0.ViewChild, args: ['scheduleExecutionForm', { static: true },] }],
1839
+ programName: [{ type: i0.Input }],
1840
+ externalName: [{ type: i0.Input }],
1841
+ programEMS5: [{ type: i0.Input }],
1842
+ programVersion: [{ type: i0.Input }],
1843
+ parameters: [{ type: i0.Input }],
1844
+ disabledParams: [{ type: i0.Input }],
1845
+ loading: [{ type: i0.Input }],
1846
+ endExecution: [{ type: i0.Output }]
1847
+ };
3850
1848
 
3851
- /**
3852
- * @fileoverview added by tsickle
3853
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3854
- */
3855
1849
  var DtsDateFormatPipe = /** @class */ (function () {
3856
1850
  function DtsDateFormatPipe() {
3857
1851
  }
3858
- /**
3859
- * @param {?} value
3860
- * @param {?=} format
3861
- * @return {?}
3862
- */
3863
- DtsDateFormatPipe.prototype.transform = /**
3864
- * @param {?} value
3865
- * @param {?=} format
3866
- * @return {?}
3867
- */
3868
- function (value, format) {
1852
+ DtsDateFormatPipe.prototype.transform = function (value, format) {
3869
1853
  if (format === void 0) { format = 'dd/MM/yyyy'; }
3870
1854
  var _a = value.split('-'), year = _a[0], month = _a[1], day = _a[2];
3871
- /** @type {?} */
3872
1855
  var formattedDate = format.replace('dd', day)
3873
1856
  .replace('MM', month)
3874
1857
  .replace('yyyy', year);
3875
1858
  return formattedDate;
3876
1859
  };
3877
- DtsDateFormatPipe.decorators = [
3878
- { type: core.Pipe, args: [{
3879
- name: 'dtsDateFormat'
3880
- },] }
3881
- ];
3882
1860
  return DtsDateFormatPipe;
3883
- }());
1861
+ }());
1862
+ DtsDateFormatPipe.decorators = [
1863
+ { type: i0.Pipe, args: [{
1864
+ name: 'dtsDateFormat'
1865
+ },] }
1866
+ ];
3884
1867
 
3885
- /**
3886
- * @fileoverview added by tsickle
3887
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3888
- */
3889
1868
  var DtsBackofficeUtilsModule = /** @class */ (function () {
3890
1869
  function DtsBackofficeUtilsModule() {
3891
1870
  }
3892
- /**
3893
- * @return {?}
3894
- */
3895
- DtsBackofficeUtilsModule.forRoot = /**
3896
- * @return {?}
3897
- */
3898
- function () {
1871
+ DtsBackofficeUtilsModule.forRoot = function () {
3899
1872
  return {
3900
1873
  ngModule: DtsBackofficeUtilsModule,
3901
1874
  providers: [TotvsScheduleExecutionService]
3902
1875
  };
3903
1876
  };
3904
- DtsBackofficeUtilsModule.decorators = [
3905
- { type: core.NgModule, args: [{
3906
- declarations: [
3907
- TotvsScheduleExecutionComponent,
3908
- DtsDateFormatPipe
3909
- ],
3910
- imports: [
3911
- common.CommonModule,
3912
- ngComponents.PoModule,
3913
- forms.FormsModule,
3914
- http.HttpClientModule
3915
- ],
3916
- exports: [
3917
- TotvsScheduleExecutionComponent,
3918
- DtsDateFormatPipe
3919
- ],
3920
- providers: [
3921
- TotvsScheduleExecutionService
3922
- ]
3923
- },] }
3924
- ];
3925
1877
  return DtsBackofficeUtilsModule;
3926
- }());
1878
+ }());
1879
+ DtsBackofficeUtilsModule.decorators = [
1880
+ { type: i0.NgModule, args: [{
1881
+ declarations: [
1882
+ TotvsScheduleExecutionComponent,
1883
+ DtsDateFormatPipe
1884
+ ],
1885
+ imports: [
1886
+ common.CommonModule,
1887
+ ngComponents.PoModule,
1888
+ forms.FormsModule,
1889
+ i1.HttpClientModule
1890
+ ],
1891
+ exports: [
1892
+ TotvsScheduleExecutionComponent,
1893
+ DtsDateFormatPipe
1894
+ ],
1895
+ providers: [
1896
+ TotvsScheduleExecutionService
1897
+ ]
1898
+ },] }
1899
+ ];
1900
+
1901
+ /*
1902
+ * Public API Surface of dts-backoffice-util
1903
+ */
1904
+ // Pipes
1905
+
1906
+ /**
1907
+ * Generated bundle index. Do not edit.
1908
+ */
3927
1909
 
3928
1910
  exports.BreadcrumbControlService = BreadcrumbControlService;
3929
1911
  exports.CacheParamsService = CacheParamsService;
@@ -3940,7 +1922,6 @@
3940
1922
  exports.GenericFunctionsUtils = GenericFunctionsUtils;
3941
1923
  exports.MenuDatasulService = MenuDatasulService;
3942
1924
  exports.ProfileService = ProfileService;
3943
- exports.ReportFormats = ReportFormats;
3944
1925
  exports.ReportService = ReportService;
3945
1926
  exports.ScheduleParameters = ScheduleParameters;
3946
1927
  exports.TotvsScheduleExecutionComponent = TotvsScheduleExecutionComponent;