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