dts-backoffice-util 3.0.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/bundles/dts-backoffice-util.umd.js +111 -1472
  2. package/bundles/dts-backoffice-util.umd.js.map +1 -1
  3. package/bundles/dts-backoffice-util.umd.min.js +1 -1
  4. package/bundles/dts-backoffice-util.umd.min.js.map +1 -1
  5. package/esm2015/dts-backoffice-util.js +2 -7
  6. package/esm2015/lib/components/totvs-schedule-execution/totvs-schedule-execution.component.js +6 -131
  7. package/esm2015/lib/components/totvs-schedule-execution/totvs-schedule-execution.model.js +1 -126
  8. package/esm2015/lib/components/totvs-schedule-execution/totvs-schedule-execution.service.js +11 -172
  9. package/esm2015/lib/dts-backoffice-util.module.js +1 -9
  10. package/esm2015/lib/interfaces/filter-range.interface.js +2 -48
  11. package/esm2015/lib/interfaces/totvs-response.interface.js +2 -17
  12. package/esm2015/lib/model/session-info.model.js +1 -117
  13. package/esm2015/lib/pipes/dts-date-format.pipe.js +1 -12
  14. package/esm2015/lib/services/breadcrumb-control.service.js +1 -44
  15. package/esm2015/lib/services/cache-params.service.js +2 -24
  16. package/esm2015/lib/services/menu-datasul.service.js +1 -18
  17. package/esm2015/lib/services/profile.service.js +9 -78
  18. package/esm2015/lib/services/report.service.js +12 -81
  19. package/esm2015/lib/services/session-info.service.js +4 -27
  20. package/esm2015/lib/services/translate.service.js +1 -16
  21. package/esm2015/lib/utils/date.util.js +1 -40
  22. package/esm2015/lib/utils/disclaimer.util.js +33 -318
  23. package/esm2015/lib/utils/field-validation.util.js +1 -97
  24. package/esm2015/lib/utils/file.util.js +7 -103
  25. package/esm2015/lib/utils/filter-range.util.js +1 -21
  26. package/esm2015/lib/utils/generic-functions.utils.js +12 -138
  27. package/esm2015/public-api.js +22 -26
  28. package/fesm2015/dts-backoffice-util.js +108 -1517
  29. package/fesm2015/dts-backoffice-util.js.map +1 -1
  30. package/package.json +5 -5
  31. package/CHANGELOG.md +0 -159
@@ -1,4 +1,4 @@
1
- import { Injectable, ɵɵdefineInjectable, ɵɵinject, EventEmitter, Component, ViewChild, Input, Output, Pipe, NgModule } from '@angular/core';
1
+ import { ɵɵdefineInjectable, ɵɵinject, Injectable, EventEmitter, Component, ViewChild, Input, Output, Pipe, NgModule } from '@angular/core';
2
2
  import { HttpClient, HttpErrorResponse, HttpClientModule } from '@angular/common/http';
3
3
  import { of } from 'rxjs';
4
4
  import { map } from 'rxjs/operators';
@@ -6,23 +6,12 @@ import { PoI18nService, PoNotificationService, PoModule } from '@po-ui/ng-compon
6
6
  import { FormsModule } from '@angular/forms';
7
7
  import { CommonModule } from '@angular/common';
8
8
 
9
- /**
10
- * @fileoverview added by tsickle
11
- * Generated from: lib/services/session-info.service.ts
12
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
13
- */
14
9
  class UserLoginService {
15
- /**
16
- * @param {?} http
17
- */
18
10
  constructor(http) {
19
11
  this.http = http;
20
12
  this.apiUrl = '/totvs-menu/rest/getSessionInfo';
21
13
  this.userLogin = undefined;
22
14
  }
23
- /**
24
- * @return {?}
25
- */
26
15
  getUserLogin() {
27
16
  if (localStorage.getItem('username')) {
28
17
  return of(localStorage.getItem('username'));
@@ -32,17 +21,14 @@ class UserLoginService {
32
21
  }
33
22
  else {
34
23
  return this.http.get(`${this.apiUrl}`)
35
- .pipe(map((/**
36
- * @param {?} response
37
- * @return {?}
38
- */
39
- (response) => {
24
+ .pipe(map((response) => {
40
25
  this.userLogin = response.userName;
41
26
  return response.userName;
42
- })));
27
+ }));
43
28
  }
44
29
  }
45
30
  }
31
+ /** @nocollapse */ UserLoginService.ɵprov = ɵɵdefineInjectable({ factory: function UserLoginService_Factory() { return new UserLoginService(ɵɵinject(HttpClient)); }, token: UserLoginService, providedIn: "root" });
46
32
  UserLoginService.decorators = [
47
33
  { type: Injectable, args: [{
48
34
  providedIn: 'root'
@@ -51,108 +37,36 @@ UserLoginService.decorators = [
51
37
  /** @nocollapse */
52
38
  UserLoginService.ctorParameters = () => [
53
39
  { type: HttpClient }
54
- ];
55
- /** @nocollapse */ UserLoginService.ɵprov = ɵɵdefineInjectable({ factory: function UserLoginService_Factory() { return new UserLoginService(ɵɵinject(HttpClient)); }, token: UserLoginService, providedIn: "root" });
56
- if (false) {
57
- /** @type {?} */
58
- UserLoginService.prototype.apiUrl;
59
- /** @type {?} */
60
- UserLoginService.prototype.userLogin;
61
- /** @type {?} */
62
- UserLoginService.prototype.http;
63
- }
40
+ ];
64
41
 
65
- /**
66
- * @fileoverview added by tsickle
67
- * Generated from: lib/services/profile.service.ts
68
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
69
- */
70
- /**
71
- * @record
72
- */
73
- function IProfile() { }
74
- if (false) {
75
- /** @type {?} */
76
- IProfile.prototype.pageId;
77
- /** @type {?} */
78
- IProfile.prototype.dataCode;
79
- /** @type {?} */
80
- IProfile.prototype.userCode;
81
- /** @type {?|undefined} */
82
- IProfile.prototype.dataValue;
83
- }
84
- /**
85
- * @record
86
- */
87
- function IProfileResponse() { }
88
- if (false) {
89
- /** @type {?} */
90
- IProfileResponse.prototype.message;
91
- /** @type {?} */
92
- IProfileResponse.prototype.length;
93
- /** @type {?} */
94
- IProfileResponse.prototype.data;
95
- }
96
- /** @enum {number} */
97
- const EDataType = {
98
- STRING: 1,
99
- JSON: 2,
100
- };
101
- EDataType[EDataType.STRING] = 'STRING';
102
- EDataType[EDataType.JSON] = 'JSON';
42
+ var EDataType;
43
+ (function (EDataType) {
44
+ EDataType[EDataType["STRING"] = 1] = "STRING";
45
+ EDataType[EDataType["JSON"] = 2] = "JSON";
46
+ })(EDataType || (EDataType = {}));
103
47
  class ProfileService {
104
- /**
105
- * @param {?} http
106
- */
107
48
  constructor(http) {
108
49
  this.http = http;
109
50
  this.apiURL = '/dts/datasul-rest/resources/api/btb/btapi930za';
110
51
  }
111
- /**
112
- * @param {?} profile
113
- * @return {?}
114
- */
115
52
  setProfile(profile) {
116
- /** @type {?} */
117
53
  const headers = { 'X-PO-Screen-Lock': 'true' };
118
54
  const { pageId, userCode } = profile;
119
55
  return this.http
120
56
  .post(`${this.apiURL}/setProfile?userCode=${userCode}&pageId=${pageId}`, profile, { headers });
121
57
  }
122
- /**
123
- * @param {?} profile
124
- * @param {?=} showLoading
125
- * @return {?}
126
- */
127
58
  getProfileAsString(profile, showLoading) {
128
59
  return this.getProfile(profile, EDataType.STRING, showLoading ? 'true' : 'false');
129
60
  }
130
- /**
131
- * @param {?} profile
132
- * @param {?=} showLoading
133
- * @return {?}
134
- */
135
61
  getProfileAsJSON(profile, showLoading) {
136
62
  return this.getProfile(profile, EDataType.JSON, showLoading ? 'true' : 'false');
137
63
  }
138
- /**
139
- * @private
140
- * @param {?} profile
141
- * @param {?} dataType
142
- * @param {?=} showLoading
143
- * @return {?}
144
- */
145
64
  getProfile(profile, dataType, showLoading) {
146
- /** @type {?} */
147
65
  const headers = { 'X-PO-Screen-Lock': showLoading };
148
66
  const { pageId, dataCode, userCode } = profile;
149
67
  return this.http
150
68
  .get(`${this.apiURL}/getProfile?userCode=${userCode}&pageId=${pageId}&dataCode=${dataCode}`, { headers })
151
- .pipe(map((/**
152
- * @param {?} preference
153
- * @return {?}
154
- */
155
- preference => {
69
+ .pipe(map(preference => {
156
70
  if (preference.data[0]) {
157
71
  if (dataType === EDataType.STRING) {
158
72
  return preference.data[0].dataValue;
@@ -164,9 +78,10 @@ class ProfileService {
164
78
  else {
165
79
  return undefined;
166
80
  }
167
- })));
81
+ }));
168
82
  }
169
83
  }
84
+ /** @nocollapse */ ProfileService.ɵprov = ɵɵdefineInjectable({ factory: function ProfileService_Factory() { return new ProfileService(ɵɵinject(HttpClient)); }, token: ProfileService, providedIn: "root" });
170
85
  ProfileService.decorators = [
171
86
  { type: Injectable, args: [{
172
87
  providedIn: 'root'
@@ -175,115 +90,46 @@ ProfileService.decorators = [
175
90
  /** @nocollapse */
176
91
  ProfileService.ctorParameters = () => [
177
92
  { type: HttpClient }
178
- ];
179
- /** @nocollapse */ ProfileService.ɵprov = ɵɵdefineInjectable({ factory: function ProfileService_Factory() { return new ProfileService(ɵɵinject(HttpClient)); }, token: ProfileService, providedIn: "root" });
180
- if (false) {
181
- /** @type {?} */
182
- ProfileService.prototype.apiURL;
183
- /** @type {?} */
184
- ProfileService.prototype.http;
185
- }
93
+ ];
186
94
 
187
- /**
188
- * @fileoverview added by tsickle
189
- * Generated from: lib/services/report.service.ts
190
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
191
- */
192
- /**
193
- * @record
194
- */
195
- function IProperty() { }
196
- if (false) {
197
- /** @type {?} */
198
- IProperty.prototype.name;
199
- /** @type {?} */
200
- IProperty.prototype.value;
201
- }
202
- /**
203
- * @record
204
- */
205
- function IReportServiceParams() { }
206
- if (false) {
207
- /** @type {?} */
208
- IReportServiceParams.prototype.reportName;
209
- /** @type {?} */
210
- IReportServiceParams.prototype.programName;
211
- /** @type {?} */
212
- IReportServiceParams.prototype.properties;
213
- /** @type {?} */
214
- IReportServiceParams.prototype.dialect;
215
- /** @type {?} */
216
- IReportServiceParams.prototype.downloadName;
217
- /** @type {?} */
218
- IReportServiceParams.prototype.download;
219
- /** @type {?} */
220
- IReportServiceParams.prototype.format;
221
- }
222
- /** @enum {string} */
223
- const ReportFormats = {
224
- XLSX: "xlsx",
225
- PDF: "pdf",
226
- DOCX: "docx",
227
- HTML: "html",
228
- };
95
+ var ReportFormats;
96
+ (function (ReportFormats) {
97
+ ReportFormats["XLSX"] = "xlsx";
98
+ ReportFormats["PDF"] = "pdf";
99
+ ReportFormats["DOCX"] = "docx";
100
+ ReportFormats["HTML"] = "html";
101
+ })(ReportFormats || (ReportFormats = {}));
229
102
  class ReportService {
230
- /**
231
- * @param {?} httpClient
232
- */
233
103
  constructor(httpClient) {
234
104
  this.httpClient = httpClient;
235
105
  this.URL = window.location.href.indexOf('totvs-menu') > 0 ? '/totvs-menu/rest/report/run/'
236
106
  : '/dts/datasul-report/resources/run/';
237
107
  }
238
- /**
239
- * @param {?} params
240
- * @param {?=} showLoading
241
- * @return {?}
242
- */
243
108
  generate(params, showLoading = true) {
244
- /** @type {?} */
245
109
  const headers = { 'X-PO-Screen-Lock': showLoading ? 'true' : 'false' };
246
- /** @type {?} */
247
110
  let reportURL = `${this.URL}${params.reportName}`;
248
111
  if (params.properties.length > 0) {
249
112
  reportURL += '?';
250
- params.properties.forEach((/**
251
- * @param {?} property
252
- * @param {?} index
253
- * @return {?}
254
- */
255
- (property, index) => {
113
+ params.properties.forEach((property, index) => {
256
114
  if (index > 0) {
257
115
  reportURL += '&';
258
116
  }
259
117
  reportURL += `c_properties=${property.name}&c_values=${property.value}`;
260
- }));
118
+ });
261
119
  }
262
120
  reportURL += `&dialect=${params.dialect}&format=${params.format}`;
263
121
  reportURL += `&program=${params.programName}&resultFileName=${params.downloadName}`;
264
122
  return this.httpClient.post(reportURL, {}, { headers, responseType: 'blob' })
265
- .pipe(map((/**
266
- * @param {?} report
267
- * @return {?}
268
- */
269
- report => {
123
+ .pipe(map(report => {
270
124
  if (params.download) {
271
125
  this.download(report, `${params.downloadName}.${params.format}`);
272
126
  }
273
127
  return report;
274
- })));
128
+ }));
275
129
  }
276
- /**
277
- * @param {?} file
278
- * @param {?} fileName
279
- * @return {?}
280
- */
281
130
  download(file, fileName) {
282
- /** @type {?} */
283
131
  const binaryData = [file];
284
- /** @type {?} */
285
132
  const downloadLink = document.createElement('a');
286
- /** @type {?} */
287
133
  const urlDownload = window.URL.createObjectURL(new Blob(binaryData, { type: file.type }));
288
134
  downloadLink.href = urlDownload;
289
135
  downloadLink.setAttribute('download', fileName);
@@ -299,40 +145,20 @@ ReportService.decorators = [
299
145
  /** @nocollapse */
300
146
  ReportService.ctorParameters = () => [
301
147
  { type: HttpClient }
302
- ];
303
- if (false) {
304
- /** @type {?} */
305
- ReportService.prototype.URL;
306
- /** @type {?} */
307
- ReportService.prototype.httpClient;
308
- }
148
+ ];
309
149
 
310
- /**
311
- * @fileoverview added by tsickle
312
- * Generated from: lib/services/breadcrumb-control.service.ts
313
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
314
- */
150
+ /*
151
+ Versão: 1.003
152
+ Data Criação: 06/08/2018
153
+ */
315
154
  class BreadcrumbControlService {
316
155
  constructor() { }
317
- /**
318
- * @return {?}
319
- */
320
156
  newBreadcrumb() {
321
157
  this.breadcrumb = { items: [] };
322
158
  }
323
- /**
324
- * @param {?} literal
325
- * @param {?} activatedRoute
326
- * @return {?}
327
- */
328
159
  addBreadcrumb(literal, activatedRoute) {
329
160
  this.addBreadcrumbURL(literal, decodeURIComponent(activatedRoute.snapshot['_routerState'].url));
330
161
  }
331
- /**
332
- * @param {?} literal
333
- * @param {?} url
334
- * @return {?}
335
- */
336
162
  addBreadcrumbURL(literal, url) {
337
163
  if (!literal || literal === '') {
338
164
  return;
@@ -340,9 +166,7 @@ class BreadcrumbControlService {
340
166
  if (!this.breadcrumb) {
341
167
  this.newBreadcrumb();
342
168
  }
343
- /** @type {?} */
344
169
  const breadcrumbAux = { items: [] };
345
- /** @type {?} */
346
170
  let idx = 0;
347
171
  for (idx = 0; idx < this.breadcrumb.items.length; idx++) {
348
172
  if (this.breadcrumb.items[idx].label !== literal) {
@@ -355,14 +179,7 @@ class BreadcrumbControlService {
355
179
  breadcrumbAux.items.push({ label: literal, link: url });
356
180
  this.breadcrumb = breadcrumbAux;
357
181
  }
358
- /**
359
- * @param {?} literal
360
- * @param {?} valueOld
361
- * @param {?} valueNew
362
- * @return {?}
363
- */
364
182
  updBreadcrumbURL(literal, valueOld, valueNew) {
365
- /** @type {?} */
366
183
  let currentRouterURL = this.getCurrentRouter();
367
184
  if (!currentRouterURL) {
368
185
  return;
@@ -376,18 +193,12 @@ class BreadcrumbControlService {
376
193
  currentRouterURL = currentRouterURL.replace(valueOld, valueNew);
377
194
  this.addBreadcrumbURL(literal, currentRouterURL);
378
195
  }
379
- /**
380
- * @return {?}
381
- */
382
196
  getBreadcrumb() {
383
197
  if (!this.breadcrumb) {
384
198
  this.newBreadcrumb();
385
199
  }
386
200
  return this.breadcrumb;
387
201
  }
388
- /**
389
- * @return {?}
390
- */
391
202
  getCurrentRouter() {
392
203
  if (!this.breadcrumb) {
393
204
  this.newBreadcrumb();
@@ -397,9 +208,6 @@ class BreadcrumbControlService {
397
208
  }
398
209
  return this.breadcrumb.items[this.breadcrumb.items.length - 1].link;
399
210
  }
400
- /**
401
- * @return {?}
402
- */
403
211
  getPrevRouter() {
404
212
  if (!this.breadcrumb) {
405
213
  this.newBreadcrumb();
@@ -409,9 +217,6 @@ class BreadcrumbControlService {
409
217
  }
410
218
  return this.breadcrumb.items[this.breadcrumb.items.length - 2].link;
411
219
  }
412
- /**
413
- * @return {?}
414
- */
415
220
  hasPreviousRouter() {
416
221
  return this.breadcrumb.items.length > 1;
417
222
  }
@@ -420,25 +225,14 @@ BreadcrumbControlService.decorators = [
420
225
  { type: Injectable }
421
226
  ];
422
227
  /** @nocollapse */
423
- BreadcrumbControlService.ctorParameters = () => [];
424
- if (false) {
425
- /** @type {?} */
426
- BreadcrumbControlService.prototype.breadcrumb;
427
- }
228
+ BreadcrumbControlService.ctorParameters = () => [];
428
229
 
429
- /**
430
- * @fileoverview added by tsickle
431
- * Generated from: lib/services/menu-datasul.service.ts
432
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
433
- */
434
230
  class MenuDatasulService {
435
231
  constructor() { }
436
232
  /**
437
233
  * var program = {};
438
234
  * program['prg'] = "cd0210";
439
235
  * program['params'] = '01|123456'
440
- * @param {?} program
441
- * @return {?}
442
236
  */
443
237
  callProgress(program) {
444
238
  parent.postMessage({ program }, '*');
@@ -448,22 +242,12 @@ class MenuDatasulService {
448
242
  * notification['type'] = 'success';
449
243
  * notification['title'] = 'Notification Title'
450
244
  * notification['detail'] = 'Notification Detail'
451
- * @param {?} notification
452
- * @return {?}
453
245
  */
454
246
  sendNotification(notification) {
455
247
  parent.postMessage({ notification }, '*');
456
248
  }
457
- /**
458
- * @param {?} programName
459
- * @param {?} params
460
- * @param {?=} parent
461
- * @return {?}
462
- */
463
249
  openPath(programName, params, parent = true) {
464
- /** @type {?} */
465
250
  const datasulPath = document.referrer.indexOf('totvs-menu') > 0 ? 'totvs-menu' : 'menu-html';
466
- /** @type {?} */
467
251
  let baseUrl = `/${datasulPath}/#/${datasulPath}/program-html/${programName}/#`;
468
252
  if (params) {
469
253
  baseUrl = `${baseUrl}/${params}`;
@@ -482,74 +266,37 @@ MenuDatasulService.decorators = [
482
266
  /** @nocollapse */
483
267
  MenuDatasulService.ctorParameters = () => [];
484
268
 
485
- /**
486
- * @fileoverview added by tsickle
487
- * Generated from: lib/services/cache-params.service.ts
488
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
489
- */
490
269
  class CacheParamsService {
491
270
  constructor() {
492
271
  this.values = {};
493
272
  }
494
- /**
495
- * @param {?} key
496
- * @param {?} value
497
- * @return {?}
498
- */
499
273
  setValue(key, value) {
500
274
  this.values[key] = value;
501
275
  }
502
- /**
503
- * @param {?} key
504
- * @return {?}
505
- */
506
276
  getValue(key) {
507
277
  return this.values[key];
508
278
  }
509
- /**
510
- * @param {?} key
511
- * @return {?}
512
- */
513
279
  removeValue(key) {
514
280
  delete this.values[key];
515
281
  }
516
282
  }
283
+ /** @nocollapse */ CacheParamsService.ɵprov = ɵɵdefineInjectable({ factory: function CacheParamsService_Factory() { return new CacheParamsService(); }, token: CacheParamsService, providedIn: "root" });
517
284
  CacheParamsService.decorators = [
518
285
  { type: Injectable, args: [{
519
286
  providedIn: 'root'
520
287
  },] }
521
288
  ];
522
289
  /** @nocollapse */
523
- CacheParamsService.ctorParameters = () => [];
524
- /** @nocollapse */ CacheParamsService.ɵprov = ɵɵdefineInjectable({ factory: function CacheParamsService_Factory() { return new CacheParamsService(); }, token: CacheParamsService, providedIn: "root" });
525
- if (false) {
526
- /** @type {?} */
527
- CacheParamsService.prototype.values;
528
- }
290
+ CacheParamsService.ctorParameters = () => [];
529
291
 
530
- /**
531
- * @fileoverview added by tsickle
532
- * Generated from: lib/services/translate.service.ts
533
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
534
- */
535
292
  class TranslateService {
536
- /**
537
- * @return {?}
538
- */
539
293
  static getSuportLanguage() {
540
294
  return ['pt-BR', 'pt', 'en-US', 'en', 'es'];
541
295
  }
542
- /**
543
- * @return {?}
544
- */
545
296
  static getDefaultCurrencyCode() {
546
297
  return '$';
547
298
  }
548
- /**
549
- * @return {?}
550
- */
551
299
  static getCurrentLanguage() {
552
- /** @type {?} */
553
300
  const locale = localStorage.getItem('user.language') || navigator.language;
554
301
  if (locale && this.getSuportLanguage().includes(locale)) {
555
302
  return locale;
@@ -561,11 +308,6 @@ TranslateService.decorators = [
561
308
  { type: Injectable }
562
309
  ];
563
310
 
564
- /**
565
- * @fileoverview added by tsickle
566
- * Generated from: lib/utils/date.util.ts
567
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
568
- */
569
311
  /*
570
312
  Versão: 1.000
571
313
  Data Criação: 18/04/2019
@@ -573,46 +315,24 @@ Data Criação: 18/04/2019
573
315
  class DateUtil {
574
316
  constructor() { }
575
317
  /* Transforma data para o padrão YYYY-MM-DD */
576
- /**
577
- * @param {?} date
578
- * @return {?}
579
- */
580
318
  static dateToQueryParam(date) {
581
- /** @type {?} */
582
319
  const iDay = date.getDate();
583
- /** @type {?} */
584
320
  const iMonth = date.getMonth() + 1;
585
- /** @type {?} */
586
321
  const iYear = date.getFullYear();
587
322
  return `${iYear}-${this.pad(iMonth)}-${this.pad(iDay)}`;
588
323
  }
589
324
  /* Transforma data no padrão YYYY-MM-DD para DATE */
590
- /**
591
- * @param {?} param
592
- * @return {?}
593
- */
594
325
  static queryParamToDate(param) {
595
- /** @type {?} */
596
326
  const iDay = +param.split('-')[2];
597
- /** @type {?} */
598
327
  const iMonth = +param.split('-')[1];
599
- /** @type {?} */
600
328
  const iYear = +param.split('-')[0];
601
329
  return new Date(iYear, iMonth - 1, iDay);
602
330
  }
603
331
  /* Valida se foi informado uma data válida */
604
- /**
605
- * @param {?} date
606
- * @return {?}
607
- */
608
332
  static isValidDate(date) {
609
333
  return date instanceof Date && !isNaN(date.getTime());
610
334
  }
611
335
  /* Ajusta a data retornando o padrão DATE */
612
- /**
613
- * @param {?} param
614
- * @return {?}
615
- */
616
336
  static ajustDate(param) {
617
337
  if (param instanceof Date) {
618
338
  return param;
@@ -623,31 +343,19 @@ class DateUtil {
623
343
  return this.queryParamToDate(param.split('T')[0]);
624
344
  }
625
345
  /* Ajusta a data para o padrão DATE - utilizada nos construtores dos modelos */
626
- /**
627
- * @param {?=} values
628
- * @param {?=} fieldName
629
- * @return {?}
630
- */
631
346
  static ajustDateToModel(values = {}, fieldName) {
632
347
  if (values.hasOwnProperty(fieldName) && (values[fieldName])) {
633
348
  if (values[fieldName].indexOf('T') >= 0) {
634
349
  return new Date(values[fieldName]);
635
350
  }
636
- /** @type {?} */
637
351
  const iDay = +values[fieldName].split('-')[2];
638
- /** @type {?} */
639
352
  const iMonth = +values[fieldName].split('-')[1];
640
- /** @type {?} */
641
353
  const iYear = +values[fieldName].split('-')[0];
642
354
  return new Date(iYear, iMonth - 1, iDay);
643
355
  }
644
356
  return null;
645
357
  }
646
358
  /* Adicona zero a esquerda do número */
647
- /**
648
- * @param {?} number
649
- * @return {?}
650
- */
651
359
  static pad(number) {
652
360
  if (number < 10) {
653
361
  return '0' + number;
@@ -656,35 +364,17 @@ class DateUtil {
656
364
  }
657
365
  }
658
366
 
659
- /**
660
- * @fileoverview added by tsickle
661
- * Generated from: lib/utils/disclaimer.util.ts
662
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
663
- */
664
367
  /*
665
368
  Versão: 1.009
666
369
  Data Criação: 06/08/2018
667
370
  */
668
371
  class DisclaimerUtil {
669
- /**
670
- * @param {?} poNotification
671
- * @param {?} poI18nPipe
672
- * @param {?} literals
673
- */
674
372
  constructor(poNotification, poI18nPipe, literals) {
675
373
  this.literals = {};
676
374
  this.poNotification = poNotification;
677
375
  this.poI18nPipe = poI18nPipe;
678
376
  this.literals = literals;
679
377
  }
680
- /**
681
- * @param {?} property
682
- * @param {?} value
683
- * @param {?=} hideClose
684
- * @param {?=} tradValue
685
- * @param {?=} vldBlank
686
- * @return {?}
687
- */
688
378
  makeDisclaimer(property, value, hideClose = false, tradValue = false, vldBlank = false) {
689
379
  if (value === null || value === undefined) {
690
380
  return { label: '', property: '', value: '' };
@@ -699,13 +389,6 @@ class DisclaimerUtil {
699
389
  value: `${value}`
700
390
  };
701
391
  }
702
- /**
703
- * @param {?} property
704
- * @param {?} value
705
- * @param {?=} hideClose
706
- * @param {?=} vldBlank
707
- * @return {?}
708
- */
709
392
  makeDisclaimerFromNumber(property, value, hideClose = false, vldBlank = false) {
710
393
  if (value === null || value === undefined) {
711
394
  return { label: '', property: '', value: '' };
@@ -720,12 +403,6 @@ class DisclaimerUtil {
720
403
  value: `${value}`
721
404
  };
722
405
  }
723
- /**
724
- * @param {?} property
725
- * @param {?} value
726
- * @param {?=} hideClose
727
- * @return {?}
728
- */
729
406
  makeDisclaimerFromBoolean(property, value, hideClose = false) {
730
407
  if (value === null || value === undefined) {
731
408
  return { label: '', property: '', value: '' };
@@ -737,14 +414,7 @@ class DisclaimerUtil {
737
414
  value: `${value}`
738
415
  };
739
416
  }
740
- /**
741
- * @param {?} property
742
- * @param {?} value
743
- * @param {?=} hideClose
744
- * @return {?}
745
- */
746
417
  makeDisclaimerFromDate(property, value, hideClose = false) {
747
- /** @type {?} */
748
418
  const dDate = this.ajustDate(value);
749
419
  if (!this.isValidDate(dDate)) {
750
420
  return { label: '', property: '', value: '' };
@@ -756,18 +426,8 @@ class DisclaimerUtil {
756
426
  value: `${this.dateToQueryParam(dDate)}`
757
427
  };
758
428
  }
759
- /**
760
- * @param {?} property
761
- * @param {?} value
762
- * @param {?=} length
763
- * @param {?=} hideClose
764
- * @param {?=} tradValue
765
- * @return {?}
766
- */
767
429
  makeDisclaimerFromMultiSelect(property, value, length = 0, hideClose = false, tradValue = false) {
768
- /** @type {?} */
769
430
  let lstLabels = '';
770
- /** @type {?} */
771
431
  let lstValues = '';
772
432
  if (!value) {
773
433
  return { label: '', property: '', value: '' };
@@ -777,11 +437,7 @@ class DisclaimerUtil {
777
437
  lstValues = 'all';
778
438
  }
779
439
  else {
780
- value.map((/**
781
- * @param {?} item
782
- * @return {?}
783
- */
784
- item => {
440
+ value.map(item => {
785
441
  if (lstLabels !== '') {
786
442
  lstLabels = `${lstLabels}, `;
787
443
  }
@@ -790,7 +446,7 @@ class DisclaimerUtil {
790
446
  }
791
447
  lstLabels = `${lstLabels}${tradValue ? this.literals[item] : item}`;
792
448
  lstValues = `${lstValues}${item}`;
793
- }));
449
+ });
794
450
  }
795
451
  return {
796
452
  hideClose,
@@ -799,20 +455,9 @@ class DisclaimerUtil {
799
455
  value: `${lstValues}`
800
456
  };
801
457
  }
802
- /**
803
- * @param {?} property
804
- * @param {?} value
805
- * @param {?} options
806
- * @param {?=} length
807
- * @param {?=} hideClose
808
- * @return {?}
809
- */
810
458
  makeDisclaimerFromMultiSelectNumber(property, value, options, length = 0, hideClose = false) {
811
- /** @type {?} */
812
459
  let lstLabels = '';
813
- /** @type {?} */
814
460
  let lstValues = '';
815
- /** @type {?} */
816
461
  let opt = null;
817
462
  if (!value || !options) {
818
463
  return { label: '', property: '', value: '' };
@@ -822,25 +467,17 @@ class DisclaimerUtil {
822
467
  lstValues = 'all';
823
468
  }
824
469
  else {
825
- value.map((/**
826
- * @param {?} item
827
- * @return {?}
828
- */
829
- item => {
470
+ value.map(item => {
830
471
  if (lstLabels !== '') {
831
472
  lstLabels = `${lstLabels}, `;
832
473
  }
833
474
  if (lstValues !== '') {
834
475
  lstValues = `${lstValues},`;
835
476
  }
836
- opt = options.find((/**
837
- * @param {?} itOpt
838
- * @return {?}
839
- */
840
- itOpt => itOpt.value === item));
477
+ opt = options.find(itOpt => itOpt.value === item);
841
478
  lstLabels = `${lstLabels}${opt ? opt.label : item}`;
842
479
  lstValues = `${lstValues}${item}`;
843
- }));
480
+ });
844
481
  }
845
482
  return {
846
483
  hideClose,
@@ -849,17 +486,8 @@ class DisclaimerUtil {
849
486
  value: `${lstValues}`
850
487
  };
851
488
  }
852
- /**
853
- * @param {?} property
854
- * @param {?} value
855
- * @param {?=} length
856
- * @param {?=} hideClose
857
- * @return {?}
858
- */
859
489
  makeDisclaimerFromCheckboxGroup(property, value, length = 0, hideClose = false) {
860
- /** @type {?} */
861
490
  let lstLabels = '';
862
- /** @type {?} */
863
491
  let lstValues = '';
864
492
  if (!value) {
865
493
  return { label: '', property: '', value: '' };
@@ -873,11 +501,7 @@ class DisclaimerUtil {
873
501
  lstValues = 'all';
874
502
  }
875
503
  else {
876
- value.map((/**
877
- * @param {?} checkParam
878
- * @return {?}
879
- */
880
- checkParam => {
504
+ value.map(checkParam => {
881
505
  if (lstLabels !== '') {
882
506
  lstLabels = `${lstLabels}, `;
883
507
  }
@@ -886,7 +510,7 @@ class DisclaimerUtil {
886
510
  }
887
511
  lstLabels = `${lstLabels}${this.literals[checkParam]}`;
888
512
  lstValues = `${lstValues}${checkParam}`;
889
- }));
513
+ });
890
514
  }
891
515
  return {
892
516
  hideClose,
@@ -895,13 +519,6 @@ class DisclaimerUtil {
895
519
  value: `${lstValues}`
896
520
  };
897
521
  }
898
- /**
899
- * @param {?} property
900
- * @param {?} value
901
- * @param {?=} hideClose
902
- * @param {?=} validateEqual
903
- * @return {?}
904
- */
905
522
  makeDisclaimerFromRangeCharacter(property, value, hideClose = false, validateEqual = true) {
906
523
  if (value.valInitial === null || value.valInitial === undefined) {
907
524
  value.valInitial = value.iniInitial;
@@ -921,13 +538,6 @@ class DisclaimerUtil {
921
538
  value: `${value.valInitial};${value.valFinal}`
922
539
  };
923
540
  }
924
- /**
925
- * @param {?} property
926
- * @param {?} value
927
- * @param {?=} hideClose
928
- * @param {?=} validateEqual
929
- * @return {?}
930
- */
931
541
  makeDisclaimerFromRangeNumber(property, value, hideClose = false, validateEqual = true) {
932
542
  if (value.valInitial === null || value.valInitial === undefined) {
933
543
  value.valInitial = value.iniInitial;
@@ -947,17 +557,8 @@ class DisclaimerUtil {
947
557
  value: `${value.valInitial};${value.valFinal}`
948
558
  };
949
559
  }
950
- /**
951
- * @param {?} property
952
- * @param {?} value
953
- * @param {?=} hideClose
954
- * @param {?=} validateEqual
955
- * @return {?}
956
- */
957
560
  makeDisclaimerFromRangeDate(property, value, hideClose = false, validateEqual = true) {
958
- /** @type {?} */
959
561
  let valInitDate = this.ajustDate(value.valInitial);
960
- /** @type {?} */
961
562
  let valFinalDate = this.ajustDate(value.valFinal);
962
563
  if (!this.isValidDate(valInitDate)) {
963
564
  valInitDate = value.iniInitial;
@@ -979,21 +580,10 @@ class DisclaimerUtil {
979
580
  value: `${this.dateToQueryParam(valInitDate)};${this.dateToQueryParam(valFinalDate)}`
980
581
  };
981
582
  }
982
- /**
983
- * @param {?} disclaimers
984
- * @param {?} property
985
- * @param {?} defaultValue
986
- * @return {?}
987
- */
988
583
  atzCharFromDisclamer(disclaimers, property, defaultValue) {
989
- /** @type {?} */
990
584
  let returnValue = defaultValue;
991
585
  if (disclaimers && disclaimers.length > 0) {
992
- disclaimers.find((/**
993
- * @param {?} item
994
- * @return {?}
995
- */
996
- (item) => {
586
+ disclaimers.find((item) => {
997
587
  if (item.property === property) {
998
588
  if (item.value === null) {
999
589
  return false;
@@ -1002,25 +592,14 @@ class DisclaimerUtil {
1002
592
  return true;
1003
593
  }
1004
594
  return false;
1005
- }));
595
+ });
1006
596
  }
1007
597
  return returnValue;
1008
598
  }
1009
- /**
1010
- * @param {?} disclaimers
1011
- * @param {?} property
1012
- * @param {?} defaultValue
1013
- * @return {?}
1014
- */
1015
599
  atzNumberFromDisclamer(disclaimers, property, defaultValue) {
1016
- /** @type {?} */
1017
600
  let returnValue = defaultValue;
1018
601
  if (disclaimers && disclaimers.length > 0) {
1019
- disclaimers.find((/**
1020
- * @param {?} item
1021
- * @return {?}
1022
- */
1023
- (item) => {
602
+ disclaimers.find((item) => {
1024
603
  if (item.property === property) {
1025
604
  if (item.value === null) {
1026
605
  return false;
@@ -1029,26 +608,14 @@ class DisclaimerUtil {
1029
608
  return true;
1030
609
  }
1031
610
  return false;
1032
- }));
611
+ });
1033
612
  }
1034
613
  return returnValue;
1035
614
  }
1036
- /**
1037
- * @param {?} disclaimers
1038
- * @param {?} property
1039
- * @param {?} defaultValue
1040
- * @return {?}
1041
- */
1042
615
  atzBooleanFromDisclamer(disclaimers, property, defaultValue) {
1043
- /** @type {?} */
1044
616
  const returnValue = defaultValue;
1045
617
  if (disclaimers && disclaimers.length > 0) {
1046
- /** @type {?} */
1047
- const disclaimerFind = disclaimers.find((/**
1048
- * @param {?} item
1049
- * @return {?}
1050
- */
1051
- (item) => item.property === property));
618
+ const disclaimerFind = disclaimers.find((item) => item.property === property);
1052
619
  if (disclaimerFind && disclaimerFind.value !== null && disclaimerFind.value !== undefined) {
1053
620
  if (disclaimerFind.value === 'true') {
1054
621
  return true;
@@ -1060,21 +627,10 @@ class DisclaimerUtil {
1060
627
  }
1061
628
  return returnValue;
1062
629
  }
1063
- /**
1064
- * @param {?} disclaimers
1065
- * @param {?} property
1066
- * @param {?} defaultValue
1067
- * @return {?}
1068
- */
1069
630
  atzDateFromDisclamer(disclaimers, property, defaultValue) {
1070
- /** @type {?} */
1071
631
  let returnValue = this.ajustDate(defaultValue);
1072
632
  if (disclaimers && disclaimers.length > 0) {
1073
- disclaimers.find((/**
1074
- * @param {?} item
1075
- * @return {?}
1076
- */
1077
- (item) => {
633
+ disclaimers.find((item) => {
1078
634
  if (item.property === property) {
1079
635
  if (item.value === null) {
1080
636
  return false;
@@ -1083,131 +639,69 @@ class DisclaimerUtil {
1083
639
  return true;
1084
640
  }
1085
641
  return false;
1086
- }));
642
+ });
1087
643
  }
1088
644
  return returnValue;
1089
645
  }
1090
- /**
1091
- * @param {?} disclaimers
1092
- * @param {?} property
1093
- * @param {?} defaultValue
1094
- * @return {?}
1095
- */
1096
646
  atzMultiSelectCharFromDisclamer(disclaimers, property, defaultValue) {
1097
647
  return this.atzMultiSelectFromDisclamer('char', disclaimers, property, defaultValue);
1098
648
  }
1099
- /**
1100
- * @param {?} disclaimers
1101
- * @param {?} property
1102
- * @param {?} defaultValue
1103
- * @return {?}
1104
- */
1105
649
  atzMultiSelectNumberFromDisclamer(disclaimers, property, defaultValue) {
1106
650
  return this.atzMultiSelectFromDisclamer('number', disclaimers, property, defaultValue);
1107
651
  }
1108
- /**
1109
- * @param {?} type
1110
- * @param {?} disclaimers
1111
- * @param {?} property
1112
- * @param {?} defaultValue
1113
- * @return {?}
1114
- */
1115
652
  atzMultiSelectFromDisclamer(type, disclaimers, property, defaultValue) {
1116
- /** @type {?} */
1117
653
  let returnValue = [];
1118
- defaultValue.map((/**
1119
- * @param {?} item
1120
- * @return {?}
1121
- */
1122
- item => {
654
+ defaultValue.map(item => {
1123
655
  returnValue.push(item.value);
1124
- }));
656
+ });
1125
657
  if (disclaimers && disclaimers.length > 0) {
1126
- disclaimers.find((/**
1127
- * @param {?} item
1128
- * @return {?}
1129
- */
1130
- (item) => {
658
+ disclaimers.find((item) => {
1131
659
  if (item.property === property) {
1132
660
  if (item.value === null || item.value === 'all' || item.value === 'none') {
1133
661
  return false;
1134
662
  }
1135
663
  returnValue = [];
1136
- item.value.split(',').forEach((/**
1137
- * @param {?} itemOpt
1138
- * @return {?}
1139
- */
1140
- itemOpt => {
664
+ item.value.split(',').forEach(itemOpt => {
1141
665
  if (type === 'char') {
1142
666
  returnValue.push(itemOpt);
1143
667
  }
1144
668
  if (type === 'number') {
1145
669
  returnValue.push(+itemOpt);
1146
670
  }
1147
- }));
671
+ });
1148
672
  return true;
1149
673
  }
1150
674
  return false;
1151
- }));
675
+ });
1152
676
  }
1153
677
  return returnValue;
1154
678
  }
1155
- /**
1156
- * @param {?} disclaimers
1157
- * @param {?} property
1158
- * @param {?} options
1159
- * @return {?}
1160
- */
1161
679
  atzCheckboxFromDisclamer(disclaimers, property, options) {
1162
- /** @type {?} */
1163
680
  let returnValue = [];
1164
- options.map((/**
1165
- * @param {?} item
1166
- * @return {?}
1167
- */
1168
- item => {
681
+ options.map(item => {
1169
682
  returnValue.push(item.value);
1170
- }));
683
+ });
1171
684
  if (disclaimers && disclaimers.length > 0) {
1172
- disclaimers.find((/**
1173
- * @param {?} item
1174
- * @return {?}
1175
- */
1176
- (item) => {
685
+ disclaimers.find((item) => {
1177
686
  if (item.property === property) {
1178
687
  if (item.value === null || item.value === 'all' || item.value === 'none') {
1179
688
  return false;
1180
689
  }
1181
690
  returnValue = [];
1182
- item.value.split(',').forEach((/**
1183
- * @param {?} itemOpt
1184
- * @return {?}
1185
- */
1186
- itemOpt => {
691
+ item.value.split(',').forEach(itemOpt => {
1187
692
  returnValue.push(itemOpt);
1188
- }));
693
+ });
1189
694
  return true;
1190
695
  }
1191
696
  return false;
1192
- }));
697
+ });
1193
698
  }
1194
699
  return returnValue;
1195
700
  }
1196
- /**
1197
- * @param {?} disclaimers
1198
- * @param {?} property
1199
- * @param {?} rangeChar
1200
- * @return {?}
1201
- */
1202
701
  atzRangeCharFromDisclamer(disclaimers, property, rangeChar) {
1203
- /** @type {?} */
1204
702
  let value = '';
1205
703
  if (disclaimers && disclaimers.length > 0) {
1206
- disclaimers.find((/**
1207
- * @param {?} item
1208
- * @return {?}
1209
- */
1210
- (item) => {
704
+ disclaimers.find((item) => {
1211
705
  if (item.property === property) {
1212
706
  if (item.value === null) {
1213
707
  return false;
@@ -1216,25 +710,14 @@ class DisclaimerUtil {
1216
710
  return true;
1217
711
  }
1218
712
  return false;
1219
- }));
713
+ });
1220
714
  }
1221
715
  return this.atzRangeCharFromQueryParam(value, rangeChar);
1222
716
  }
1223
- /**
1224
- * @param {?} disclaimers
1225
- * @param {?} property
1226
- * @param {?} rangeNum
1227
- * @return {?}
1228
- */
1229
717
  atzRangeNumFromDisclamer(disclaimers, property, rangeNum) {
1230
- /** @type {?} */
1231
718
  let value = '';
1232
719
  if (disclaimers && disclaimers.length > 0) {
1233
- disclaimers.find((/**
1234
- * @param {?} item
1235
- * @return {?}
1236
- */
1237
- (item) => {
720
+ disclaimers.find((item) => {
1238
721
  if (item.property === property) {
1239
722
  if (item.value === null) {
1240
723
  return false;
@@ -1243,25 +726,14 @@ class DisclaimerUtil {
1243
726
  return true;
1244
727
  }
1245
728
  return false;
1246
- }));
729
+ });
1247
730
  }
1248
731
  return this.atzRangeNumFromQueryParam(value, rangeNum);
1249
732
  }
1250
- /**
1251
- * @param {?} disclaimers
1252
- * @param {?} property
1253
- * @param {?} rangeDate
1254
- * @return {?}
1255
- */
1256
733
  atzRangeDateFromDisclamer(disclaimers, property, rangeDate) {
1257
- /** @type {?} */
1258
734
  let value = '';
1259
735
  if (disclaimers && disclaimers.length > 0) {
1260
- disclaimers.find((/**
1261
- * @param {?} item
1262
- * @return {?}
1263
- */
1264
- (item) => {
736
+ disclaimers.find((item) => {
1265
737
  if (item.property === property) {
1266
738
  if (item.value === null) {
1267
739
  return false;
@@ -1270,15 +742,10 @@ class DisclaimerUtil {
1270
742
  return true;
1271
743
  }
1272
744
  return false;
1273
- }));
745
+ });
1274
746
  }
1275
747
  return this.atzRangeDateFromQueryParam(value, rangeDate);
1276
748
  }
1277
- /**
1278
- * @param {?} value
1279
- * @param {?} rangeChar
1280
- * @return {?}
1281
- */
1282
749
  atzRangeCharFromQueryParam(value, rangeChar) {
1283
750
  rangeChar.valInitial = rangeChar.iniInitial;
1284
751
  rangeChar.valFinal = rangeChar.iniFinal;
@@ -1292,11 +759,6 @@ class DisclaimerUtil {
1292
759
  }
1293
760
  return rangeChar;
1294
761
  }
1295
- /**
1296
- * @param {?} value
1297
- * @param {?} rangeNum
1298
- * @return {?}
1299
- */
1300
762
  atzRangeNumFromQueryParam(value, rangeNum) {
1301
763
  rangeNum.valInitial = rangeNum.iniInitial;
1302
764
  rangeNum.valFinal = rangeNum.iniFinal;
@@ -1310,11 +772,6 @@ class DisclaimerUtil {
1310
772
  }
1311
773
  return rangeNum;
1312
774
  }
1313
- /**
1314
- * @param {?} value
1315
- * @param {?} rangeDate
1316
- * @return {?}
1317
- */
1318
775
  atzRangeDateFromQueryParam(value, rangeDate) {
1319
776
  rangeDate.valInitial = rangeDate.iniInitial;
1320
777
  rangeDate.valFinal = rangeDate.iniFinal;
@@ -1328,43 +785,21 @@ class DisclaimerUtil {
1328
785
  }
1329
786
  return rangeDate;
1330
787
  }
1331
- /**
1332
- * @param {?} date
1333
- * @return {?}
1334
- */
1335
788
  dateToQueryParam(date) {
1336
- /** @type {?} */
1337
789
  const iDay = date.getDate();
1338
- /** @type {?} */
1339
790
  const iMonth = date.getMonth() + 1;
1340
- /** @type {?} */
1341
791
  const iYear = date.getFullYear();
1342
792
  return `${iYear}-${this.pad(iMonth)}-${this.pad(iDay)}`;
1343
793
  }
1344
- /**
1345
- * @param {?} param
1346
- * @return {?}
1347
- */
1348
794
  queryParamToDate(param) {
1349
- /** @type {?} */
1350
795
  const iDay = +param.split('-')[2];
1351
- /** @type {?} */
1352
796
  const iMonth = +param.split('-')[1];
1353
- /** @type {?} */
1354
797
  const iYear = +param.split('-')[0];
1355
798
  return new Date(iYear, iMonth - 1, iDay);
1356
799
  }
1357
- /**
1358
- * @param {?} date
1359
- * @return {?}
1360
- */
1361
800
  isValidDate(date) {
1362
801
  return date instanceof Date && !isNaN(date.getTime());
1363
802
  }
1364
- /**
1365
- * @param {?} param
1366
- * @return {?}
1367
- */
1368
803
  ajustDate(param) {
1369
804
  if (param instanceof Date) {
1370
805
  return param;
@@ -1374,37 +809,19 @@ class DisclaimerUtil {
1374
809
  }
1375
810
  return this.queryParamToDate(param.split('T')[0]);
1376
811
  }
1377
- /**
1378
- * @param {?} number
1379
- * @return {?}
1380
- */
1381
812
  pad(number) {
1382
813
  if (number < 10) {
1383
814
  return '0' + number;
1384
815
  }
1385
816
  return number;
1386
817
  }
1387
- }
1388
- if (false) {
1389
- /** @type {?} */
1390
- DisclaimerUtil.prototype.poNotification;
1391
- /** @type {?} */
1392
- DisclaimerUtil.prototype.poI18nPipe;
1393
- /** @type {?} */
1394
- DisclaimerUtil.prototype.literals;
1395
818
  }
1396
819
 
1397
- /**
1398
- * @fileoverview added by tsickle
1399
- * Generated from: lib/utils/field-validation.util.ts
1400
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1401
- */
820
+ /*
821
+ Versão: 1.002
822
+ Data Criação: 19/02/2019
823
+ */
1402
824
  class FieldValidationUtil {
1403
- /**
1404
- * @param {?} poNotification
1405
- * @param {?} poI18nPipe
1406
- * @param {?} literals
1407
- */
1408
825
  constructor(poNotification, poI18nPipe, literals) {
1409
826
  this.literals = {};
1410
827
  this.poNotification = poNotification;
@@ -1412,11 +829,6 @@ class FieldValidationUtil {
1412
829
  this.literals = literals;
1413
830
  this.disclaimerUtil = new DisclaimerUtil(this.poNotification, this.poI18nPipe, this.literals);
1414
831
  }
1415
- /**
1416
- * @param {?} field
1417
- * @param {?} value
1418
- * @return {?}
1419
- */
1420
832
  vldFieldCharacter(field, value) {
1421
833
  if (!value || value.trim() === '') {
1422
834
  this.poNotification.error({
@@ -1427,13 +839,6 @@ class FieldValidationUtil {
1427
839
  return true;
1428
840
  }
1429
841
  // Valida uma faixa de caracteres se o inicial é menor que final
1430
- /**
1431
- * @param {?} initialField
1432
- * @param {?} finalField
1433
- * @param {?} initialValue
1434
- * @param {?} finalValue
1435
- * @return {?}
1436
- */
1437
842
  vldRangeCharacter(initialField, finalField, initialValue, finalValue) {
1438
843
  if (!initialValue || !finalValue) {
1439
844
  return true;
@@ -1446,13 +851,6 @@ class FieldValidationUtil {
1446
851
  }
1447
852
  return true;
1448
853
  }
1449
- /**
1450
- * @param {?} field
1451
- * @param {?} value
1452
- * @param {?=} vldValue
1453
- * @param {?=} zeroAccept
1454
- * @return {?}
1455
- */
1456
854
  vldFieldNumber(field, value, vldValue = false, zeroAccept = false) {
1457
855
  if (vldValue && !this.vldValueOfNumber(field, value)) {
1458
856
  return false;
@@ -1468,11 +866,6 @@ class FieldValidationUtil {
1468
866
  }
1469
867
  return true;
1470
868
  }
1471
- /**
1472
- * @param {?} field
1473
- * @param {?} value
1474
- * @return {?}
1475
- */
1476
869
  vldValueOfNumber(field, value) {
1477
870
  if (value && value < 0) {
1478
871
  this.poNotification.error({ message: this.poI18nPipe.transform(this.literals['fieldVldNumber'], [value.toString(), this.literals[field]]) });
@@ -1480,12 +873,6 @@ class FieldValidationUtil {
1480
873
  }
1481
874
  return true;
1482
875
  }
1483
- /**
1484
- * @param {?} field
1485
- * @param {?} value
1486
- * @param {?=} vldValue
1487
- * @return {?}
1488
- */
1489
876
  vldFieldPercent(field, value, vldValue = false) {
1490
877
  if (vldValue && !this.vldValueOfPercent(field, value)) {
1491
878
  return false;
@@ -1495,11 +882,6 @@ class FieldValidationUtil {
1495
882
  }
1496
883
  return true;
1497
884
  }
1498
- /**
1499
- * @param {?} field
1500
- * @param {?} value
1501
- * @return {?}
1502
- */
1503
885
  vldValueOfPercent(field, value) {
1504
886
  if (value && value < 0) {
1505
887
  this.poNotification.error({ message: this.poI18nPipe.transform(this.literals['fieldVldNumber'], [value.toString(), this.literals[field]]) });
@@ -1512,13 +894,6 @@ class FieldValidationUtil {
1512
894
  return true;
1513
895
  }
1514
896
  // Valida uma faixa de números se o inicial é menor que final
1515
- /**
1516
- * @param {?} initialField
1517
- * @param {?} finalField
1518
- * @param {?} initialValue
1519
- * @param {?} finalValue
1520
- * @return {?}
1521
- */
1522
897
  vldRangeNumber(initialField, finalField, initialValue, finalValue) {
1523
898
  if (!initialValue) {
1524
899
  initialValue = 0;
@@ -1534,13 +909,7 @@ class FieldValidationUtil {
1534
909
  }
1535
910
  return true;
1536
911
  }
1537
- /**
1538
- * @param {?} field
1539
- * @param {?} value
1540
- * @return {?}
1541
- */
1542
912
  vldFieldDate(field, value) {
1543
- /** @type {?} */
1544
913
  const valDate = this.disclaimerUtil.ajustDate(value);
1545
914
  if (!this.disclaimerUtil.isValidDate(valDate)) {
1546
915
  this.poNotification.error({
@@ -1551,20 +920,11 @@ class FieldValidationUtil {
1551
920
  return true;
1552
921
  }
1553
922
  // Valida uma faixa de datas se o inicial é menor que final
1554
- /**
1555
- * @param {?} initialField
1556
- * @param {?} finalField
1557
- * @param {?} initialValue
1558
- * @param {?} finalValue
1559
- * @return {?}
1560
- */
1561
923
  vldRangeDate(initialField, finalField, initialValue, finalValue) {
1562
924
  if (!initialValue || !finalValue) {
1563
925
  return true;
1564
926
  }
1565
- /** @type {?} */
1566
927
  const valInitialDate = this.disclaimerUtil.ajustDate(initialValue).getTime();
1567
- /** @type {?} */
1568
928
  const valFinalDate = this.disclaimerUtil.ajustDate(finalValue).getTime();
1569
929
  if (valInitialDate > valFinalDate) {
1570
930
  this.poNotification.error({
@@ -1574,11 +934,6 @@ class FieldValidationUtil {
1574
934
  }
1575
935
  return true;
1576
936
  }
1577
- /**
1578
- * @param {?} field
1579
- * @param {?} value
1580
- * @return {?}
1581
- */
1582
937
  vldFieldMultiSelect(field, value) {
1583
938
  if (!value || value.length === 0) {
1584
939
  this.poNotification.error({
@@ -1588,11 +943,6 @@ class FieldValidationUtil {
1588
943
  }
1589
944
  return true;
1590
945
  }
1591
- /**
1592
- * @param {?} field
1593
- * @param {?} value
1594
- * @return {?}
1595
- */
1596
946
  vldFieldCheckbox(field, value) {
1597
947
  if (!value || value.length === 0) {
1598
948
  this.poNotification.error({
@@ -1603,17 +953,8 @@ class FieldValidationUtil {
1603
953
  return true;
1604
954
  }
1605
955
  // Valida formato conforme regra: "9" apenas números, "X" qualquer caracter, "!" apenas letras maiúsculas
1606
- /**
1607
- * @param {?} field
1608
- * @param {?} value
1609
- * @param {?} format
1610
- * @param {?=} replacePoint
1611
- * @return {?}
1612
- */
1613
956
  vldFieldFormat(field, value, format, replacePoint = false) {
1614
- /** @type {?} */
1615
957
  let lOK = true;
1616
- /** @type {?} */
1617
958
  let oldFormat;
1618
959
  if (!value) {
1619
960
  return lOK;
@@ -1652,23 +993,8 @@ class FieldValidationUtil {
1652
993
  }
1653
994
  return lOK;
1654
995
  }
1655
- }
1656
- if (false) {
1657
- /** @type {?} */
1658
- FieldValidationUtil.prototype.poNotification;
1659
- /** @type {?} */
1660
- FieldValidationUtil.prototype.poI18nPipe;
1661
- /** @type {?} */
1662
- FieldValidationUtil.prototype.literals;
1663
- /** @type {?} */
1664
- FieldValidationUtil.prototype.disclaimerUtil;
1665
996
  }
1666
997
 
1667
- /**
1668
- * @fileoverview added by tsickle
1669
- * Generated from: lib/utils/filter-range.util.ts
1670
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1671
- */
1672
998
  /*
1673
999
  Versão: 1.000
1674
1000
  Data Criação: 06/08/2018
@@ -1676,11 +1002,6 @@ Data Criação: 06/08/2018
1676
1002
  class FilterRangeUtil {
1677
1003
  constructor() {
1678
1004
  }
1679
- /**
1680
- * @param {?} iniInitial
1681
- * @param {?} iniFinal
1682
- * @return {?}
1683
- */
1684
1005
  static makeFilterRangeCharacter(iniInitial, iniFinal) {
1685
1006
  return {
1686
1007
  iniInitial,
@@ -1689,11 +1010,6 @@ class FilterRangeUtil {
1689
1010
  valFinal: iniFinal
1690
1011
  };
1691
1012
  }
1692
- /**
1693
- * @param {?} iniInitial
1694
- * @param {?} iniFinal
1695
- * @return {?}
1696
- */
1697
1013
  static makeFilterRangeNumber(iniInitial, iniFinal) {
1698
1014
  return {
1699
1015
  iniInitial,
@@ -1702,11 +1018,6 @@ class FilterRangeUtil {
1702
1018
  valFinal: iniFinal
1703
1019
  };
1704
1020
  }
1705
- /**
1706
- * @param {?} iniInitial
1707
- * @param {?} iniFinal
1708
- * @return {?}
1709
- */
1710
1021
  static makeFilterRangeDate(iniInitial, iniFinal) {
1711
1022
  return {
1712
1023
  iniInitial,
@@ -1717,50 +1028,17 @@ class FilterRangeUtil {
1717
1028
  }
1718
1029
  }
1719
1030
 
1720
- /**
1721
- * @fileoverview added by tsickle
1722
- * Generated from: lib/utils/generic-functions.utils.ts
1723
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1724
- */
1725
1031
  /*
1726
1032
  Versão: 1.003
1727
1033
  Data Criação: 18/04/2019
1728
1034
  */
1729
- /**
1730
- * @record
1731
- */
1732
- function ChartSeries() { }
1733
- if (false) {
1734
- /** @type {?|undefined} */
1735
- ChartSeries.prototype.name;
1736
- /** @type {?|undefined} */
1737
- ChartSeries.prototype.data;
1738
- }
1739
- /**
1740
- * @record
1741
- */
1742
- function ChartValues() { }
1743
- if (false) {
1744
- /** @type {?} */
1745
- ChartValues.prototype.minValue;
1746
- /** @type {?} */
1747
- ChartValues.prototype.maxValue;
1748
- }
1749
1035
  class GenericFunctionsUtils {
1750
- /**
1751
- * @param {?} literals
1752
- */
1753
1036
  constructor(literals) {
1754
1037
  this.literals = {};
1755
1038
  this.literals = literals;
1756
1039
  }
1757
1040
  /* Transforma uma Lista separada por "," em um Array */
1758
- /**
1759
- * @param {?} list
1760
- * @return {?}
1761
- */
1762
1041
  static listToArrayCharacter(list) {
1763
- /** @type {?} */
1764
1042
  let returnArray = new Array();
1765
1043
  if (list && list !== '') {
1766
1044
  returnArray = list.split(',');
@@ -1768,24 +1046,14 @@ class GenericFunctionsUtils {
1768
1046
  return returnArray;
1769
1047
  }
1770
1048
  /* Transforma um Array em uma Lista separada por "," */
1771
- /**
1772
- * @param {?} array
1773
- * @return {?}
1774
- */
1775
1049
  static ArrayToListCharacter(array) {
1776
- /** @type {?} */
1777
1050
  let list = '';
1778
1051
  if (array && array.length > 0) {
1779
1052
  list = array.join(',');
1780
1053
  }
1781
1054
  return list;
1782
1055
  }
1783
- /**
1784
- * @param {?} object
1785
- * @return {?}
1786
- */
1787
1056
  static isEmpty(object) {
1788
- /** @type {?} */
1789
1057
  let isEmpty = true;
1790
1058
  for (const content in object) {
1791
1059
  if (object.hasOwnProperty(content)) {
@@ -1794,24 +1062,12 @@ class GenericFunctionsUtils {
1794
1062
  }
1795
1063
  return isEmpty;
1796
1064
  }
1797
- /**
1798
- * @param {?} chartData
1799
- * @return {?}
1800
- */
1801
1065
  static getChartValues(chartData) {
1802
- /** @type {?} */
1803
1066
  let chartValues;
1804
- /** @type {?} */
1805
- let maxValue;
1806
- /** @type {?} */
1807
- let minValue;
1067
+ let maxValue, minValue;
1808
1068
  maxValue = undefined;
1809
1069
  minValue = undefined;
1810
- chartData.map((/**
1811
- * @param {?} item
1812
- * @return {?}
1813
- */
1814
- item => {
1070
+ chartData.map(item => {
1815
1071
  if (maxValue === undefined && minValue === undefined) {
1816
1072
  maxValue = item.data[0];
1817
1073
  minValue = item.data[0];
@@ -1824,7 +1080,7 @@ class GenericFunctionsUtils {
1824
1080
  maxValue = item.data[0];
1825
1081
  }
1826
1082
  }
1827
- }));
1083
+ });
1828
1084
  if (maxValue > 0 && minValue > 0) {
1829
1085
  chartValues = { maxValue: maxValue, minValue: 0 };
1830
1086
  }
@@ -1832,7 +1088,6 @@ class GenericFunctionsUtils {
1832
1088
  chartValues = { maxValue: maxValue, minValue: minValue };
1833
1089
  }
1834
1090
  if (maxValue < 0 && minValue < 0) {
1835
- /** @type {?} */
1836
1091
  const max = (minValue / 3) * (-1);
1837
1092
  chartValues = { maxValue: max, minValue: minValue };
1838
1093
  }
@@ -1840,7 +1095,6 @@ class GenericFunctionsUtils {
1840
1095
  chartValues = { maxValue: maxValue, minValue: 0 };
1841
1096
  }
1842
1097
  if (maxValue === 0 && minValue < 0) {
1843
- /** @type {?} */
1844
1098
  const max = (minValue / 3) * (-1);
1845
1099
  chartValues = { maxValue: max, minValue: minValue };
1846
1100
  }
@@ -1852,97 +1106,52 @@ class GenericFunctionsUtils {
1852
1106
  return chartValues;
1853
1107
  }
1854
1108
  /*Deixa no list apenas o itens que existem no options*/
1855
- /**
1856
- * @param {?} options
1857
- * @param {?} list
1858
- * @return {?}
1859
- */
1860
1109
  static atzMultiSelectListByOptions(options, list) {
1861
- /** @type {?} */
1862
1110
  let idx;
1863
- /** @type {?} */
1864
1111
  let newList;
1865
1112
  if (!list) {
1866
1113
  return list;
1867
1114
  }
1868
1115
  newList = new Array();
1869
- list.map((/**
1870
- * @param {?} item
1871
- * @return {?}
1872
- */
1873
- item => {
1116
+ list.map(item => {
1874
1117
  if (item) {
1875
- idx = options.findIndex((/**
1876
- * @param {?} itemOptions
1877
- * @return {?}
1878
- */
1879
- itemOptions => itemOptions.value === item));
1118
+ idx = options.findIndex(itemOptions => itemOptions.value === item);
1880
1119
  if (idx >= 0) {
1881
1120
  newList.push(item);
1882
1121
  }
1883
1122
  }
1884
- }));
1123
+ });
1885
1124
  return newList;
1886
1125
  }
1887
1126
  /*Carrega o Options com os valores defaults passados como parâmetro (list)*/
1888
- /**
1889
- * @param {?} options
1890
- * @param {?} list
1891
- * @return {?}
1892
- */
1893
1127
  loadOptionsMultiSelect(options, list) {
1894
- /** @type {?} */
1895
1128
  let idx;
1896
1129
  if (!list) {
1897
1130
  return;
1898
1131
  }
1899
- list.map((/**
1900
- * @param {?} item
1901
- * @return {?}
1902
- */
1903
- item => {
1132
+ list.map(item => {
1904
1133
  if (item) {
1905
- idx = options.findIndex((/**
1906
- * @param {?} itemOptions
1907
- * @return {?}
1908
- */
1909
- itemOptions => itemOptions.value === item));
1134
+ idx = options.findIndex(itemOptions => itemOptions.value === item);
1910
1135
  if (idx === -1) {
1911
1136
  options.push({ label: item === 'all' ? this.literals['all'] : item, value: item });
1912
1137
  }
1913
1138
  }
1914
- }));
1139
+ });
1915
1140
  }
1916
1141
  /*Carrega o Options com os valores defaults passados como parâmetro (list)*/
1917
- /**
1918
- * @param {?} options
1919
- * @param {?} selectValue
1920
- * @param {?=} tradValue
1921
- * @return {?}
1922
- */
1923
1142
  loadOptionsSelect(options, selectValue, tradValue = false) {
1924
- /** @type {?} */
1925
1143
  let idx;
1926
1144
  if (!selectValue) {
1927
1145
  return;
1928
1146
  }
1929
1147
  if (selectValue) {
1930
- idx = options.findIndex((/**
1931
- * @param {?} itemOptions
1932
- * @return {?}
1933
- */
1934
- itemOptions => itemOptions.value === selectValue));
1148
+ idx = options.findIndex(itemOptions => itemOptions.value === selectValue);
1935
1149
  if (idx === -1) {
1936
1150
  options.push({ label: tradValue ? this.literals[selectValue] : selectValue, value: selectValue });
1937
1151
  }
1938
1152
  }
1939
1153
  }
1940
1154
  /*Método que compara 2 objetos e retorna se são iguais ou diferentes*/
1941
- /**
1942
- * @param {?} firstObject
1943
- * @param {?} secondObject
1944
- * @return {?}
1945
- */
1946
1155
  compareObjects(firstObject, secondObject) {
1947
1156
  if (!firstObject || !secondObject) {
1948
1157
  return false;
@@ -1961,21 +1170,11 @@ class GenericFunctionsUtils {
1961
1170
  }
1962
1171
  return true;
1963
1172
  }
1964
- /**
1965
- * @param {?} charInd
1966
- * @param {?} dateRef
1967
- * @return {?}
1968
- */
1969
1173
  referenceGeneration(charInd, dateRef) {
1970
- /** @type {?} */
1971
1174
  let reference;
1972
- /** @type {?} */
1973
1175
  let random;
1974
- /** @type {?} */
1975
1176
  const iDay = dateRef.getDate();
1976
- /** @type {?} */
1977
1177
  const iMonth = dateRef.getMonth() + 1;
1978
- /** @type {?} */
1979
1178
  const iYear = dateRef.getFullYear();
1980
1179
  reference = `${this.pad(iYear)}${this.pad(iMonth)}${this.pad(iDay)}${charInd}`;
1981
1180
  random = btoa(`${(new Date()).getTime()}`);
@@ -1983,10 +1182,6 @@ class GenericFunctionsUtils {
1983
1182
  random = random.slice(random.length - 3, random.length);
1984
1183
  return `${reference}${random}`;
1985
1184
  }
1986
- /**
1987
- * @param {?} number
1988
- * @return {?}
1989
- */
1990
1185
  pad(number) {
1991
1186
  if (number < 10) {
1992
1187
  return '0' + number;
@@ -1996,48 +1191,20 @@ class GenericFunctionsUtils {
1996
1191
  }
1997
1192
  return number;
1998
1193
  }
1999
- /**
2000
- * @param {?} idField
2001
- * @return {?}
2002
- */
2003
1194
  focusInternalInput(idField) {
2004
- /** @type {?} */
2005
1195
  const fieldComponent = document.getElementById(idField);
2006
- /** @type {?} */
2007
- const fieldInput = ((/** @type {?} */ ((/** @type {?} */ (fieldComponent.getElementsByClassName('po-input'))))))[0];
1196
+ const fieldInput = fieldComponent.getElementsByClassName('po-input')[0];
2008
1197
  fieldInput.focus();
2009
1198
  }
2010
- }
2011
- if (false) {
2012
- /** @type {?} */
2013
- GenericFunctionsUtils.prototype.literals;
2014
1199
  }
2015
1200
 
2016
- /**
2017
- * @fileoverview added by tsickle
2018
- * Generated from: lib/utils/file.util.ts
2019
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2020
- */
2021
1201
  class FileUtil {
2022
1202
  constructor() { }
2023
- /**
2024
- * @param {?} data
2025
- * @param {?} fileName
2026
- * @param {?=} contentType
2027
- * @param {?=} base64
2028
- * @return {?}
2029
- */
2030
1203
  static downloadFile(data, fileName, contentType, base64) {
2031
1204
  base64 = (base64 === false) ? false : true;
2032
- /** @type {?} */
2033
1205
  const dataBlob = base64 ? this.b64toBlob(data, contentType) : data;
2034
1206
  this.download(dataBlob, fileName);
2035
1207
  }
2036
- /**
2037
- * @param {?} data
2038
- * @param {?=} dwldDataParam
2039
- * @return {?}
2040
- */
2041
1208
  static downloadData(data, dwldDataParam = null) {
2042
1209
  if (!data) {
2043
1210
  return;
@@ -2060,22 +1227,12 @@ class FileUtil {
2060
1227
  if (!dwldDataParam.columnExclude) {
2061
1228
  dwldDataParam.columnExclude = [];
2062
1229
  }
2063
- /** @type {?} */
2064
1230
  const datab64 = btoa(this.jsonToString(data, dwldDataParam));
2065
1231
  this.downloadFile(datab64, dwldDataParam.fileName, 'text/csv');
2066
1232
  }
2067
- /**
2068
- * @private
2069
- * @param {?} file
2070
- * @param {?} fileName
2071
- * @return {?}
2072
- */
2073
1233
  static download(file, fileName) {
2074
- /** @type {?} */
2075
1234
  const binaryData = [file];
2076
- /** @type {?} */
2077
1235
  const downloadLink = document.createElement('a');
2078
- /** @type {?} */
2079
1236
  const urlDownload = window.URL.createObjectURL(new Blob(binaryData, { type: file.type }));
2080
1237
  /**Verifica se é ie ou edge, pois o mesmo tem tratamento próprio para arquivos blob */
2081
1238
  if (navigator.userAgent.toUpperCase().indexOf('.NET') > 0 || navigator.userAgent.toUpperCase().indexOf('EDGE') > 0) {
@@ -2090,55 +1247,31 @@ class FileUtil {
2090
1247
  downloadLink.remove();
2091
1248
  }
2092
1249
  }
2093
- /**
2094
- * @private
2095
- * @param {?} b64Data
2096
- * @param {?=} contentType
2097
- * @param {?=} sliceSize
2098
- * @return {?}
2099
- */
2100
1250
  static b64toBlob(b64Data, contentType, sliceSize) {
2101
1251
  contentType = contentType || '';
2102
1252
  sliceSize = sliceSize || 512;
2103
- /** @type {?} */
2104
1253
  const byteCharacters = atob(b64Data);
2105
- /** @type {?} */
2106
1254
  const byteArrays = [];
2107
1255
  for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {
2108
- /** @type {?} */
2109
1256
  const slice = byteCharacters.slice(offset, offset + sliceSize);
2110
- /** @type {?} */
2111
1257
  const byteNumbers = new Array(slice.length);
2112
1258
  for (let i = 0; i < slice.length; i++) {
2113
1259
  byteNumbers[i] = slice.charCodeAt(i);
2114
1260
  }
2115
- /** @type {?} */
2116
1261
  const byteArray = new Uint8Array(byteNumbers);
2117
1262
  byteArrays.push(byteArray);
2118
1263
  }
2119
- /** @type {?} */
2120
1264
  const blob = new Blob(byteArrays, { type: contentType });
2121
1265
  return blob;
2122
1266
  }
2123
- /**
2124
- * @private
2125
- * @param {?} jsonData
2126
- * @param {?} dwldDataParam
2127
- * @return {?}
2128
- */
2129
1267
  static jsonToString(jsonData, dwldDataParam) {
2130
1268
  if (!jsonData || jsonData.length === 0) {
2131
1269
  return '';
2132
1270
  }
2133
- /** @type {?} */
2134
1271
  const lineDelimiter = '\n';
2135
- /** @type {?} */
2136
1272
  let columnOrig = null;
2137
- /** @type {?} */
2138
1273
  let columnHeader = null;
2139
- /** @type {?} */
2140
1274
  const keys = [];
2141
- /** @type {?} */
2142
1275
  let includeKey;
2143
1276
  if (dwldDataParam.columnList &&
2144
1277
  dwldDataParam.columnList.length > 0) {
@@ -2147,11 +1280,7 @@ class FileUtil {
2147
1280
  else {
2148
1281
  columnOrig = Object.keys(jsonData[0]);
2149
1282
  }
2150
- columnOrig.forEach((/**
2151
- * @param {?} key
2152
- * @return {?}
2153
- */
2154
- key => {
1283
+ columnOrig.forEach(key => {
2155
1284
  includeKey = true;
2156
1285
  if (dwldDataParam.columnExclude &&
2157
1286
  dwldDataParam.columnExclude.length > 0 &&
@@ -2163,23 +1292,11 @@ class FileUtil {
2163
1292
  columnHeader = (!columnHeader) ? '' : columnHeader + dwldDataParam.columnDelimiter;
2164
1293
  columnHeader += (dwldDataParam.literals[key]) ? dwldDataParam.literals[key] : key;
2165
1294
  }
2166
- }));
2167
- /** @type {?} */
2168
- const lineStr = jsonData.reduce((/**
2169
- * @param {?} accLineStr
2170
- * @param {?} currentItem
2171
- * @return {?}
2172
- */
2173
- (accLineStr, currentItem) => {
2174
- /** @type {?} */
1295
+ });
1296
+ const lineStr = jsonData.reduce((accLineStr, currentItem) => {
2175
1297
  let first = true;
2176
- /** @type {?} */
2177
1298
  let columnValue = null;
2178
- keys.forEach((/**
2179
- * @param {?} key
2180
- * @return {?}
2181
- */
2182
- key => {
1299
+ keys.forEach(key => {
2183
1300
  if (!first) {
2184
1301
  accLineStr += dwldDataParam.columnDelimiter;
2185
1302
  }
@@ -2200,249 +1317,23 @@ class FileUtil {
2200
1317
  }
2201
1318
  accLineStr += columnValue;
2202
1319
  first = false;
2203
- }));
1320
+ });
2204
1321
  return accLineStr + lineDelimiter;
2205
- }), columnHeader + lineDelimiter);
1322
+ }, columnHeader + lineDelimiter);
2206
1323
  return lineStr;
2207
1324
  }
2208
1325
  }
2209
- /**
2210
- * @record
2211
- */
2212
- function IDownloadDataParams() { }
2213
- if (false) {
2214
- /** @type {?} */
2215
- IDownloadDataParams.prototype.fileName;
2216
- /** @type {?} */
2217
- IDownloadDataParams.prototype.literals;
2218
- /** @type {?} */
2219
- IDownloadDataParams.prototype.columnDelimiter;
2220
- /** @type {?} */
2221
- IDownloadDataParams.prototype.columnList;
2222
- /** @type {?} */
2223
- IDownloadDataParams.prototype.columnExclude;
2224
- }
2225
1326
  class DownloadDataParams {
2226
- }
2227
- if (false) {
2228
- /** @type {?} */
2229
- DownloadDataParams.prototype.fileName;
2230
- /** @type {?} */
2231
- DownloadDataParams.prototype.literals;
2232
- /** @type {?} */
2233
- DownloadDataParams.prototype.columnDelimiter;
2234
- /** @type {?} */
2235
- DownloadDataParams.prototype.columnList;
2236
- /** @type {?} */
2237
- DownloadDataParams.prototype.columnExclude;
2238
1327
  }
2239
1328
 
2240
- /**
2241
- * @fileoverview added by tsickle
2242
- * Generated from: lib/interfaces/totvs-response.interface.ts
2243
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2244
- */
2245
- /**
2246
- * @record
2247
- * @template T
2248
- */
2249
- function TotvsResponse() { }
2250
- if (false) {
2251
- /** @type {?} */
2252
- TotvsResponse.prototype.items;
2253
- /** @type {?|undefined} */
2254
- TotvsResponse.prototype.hasNext;
2255
- }
2256
-
2257
- /**
2258
- * @fileoverview added by tsickle
2259
- * Generated from: lib/interfaces/filter-range.interface.ts
2260
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2261
- */
2262
- /**
2263
- * @record
2264
- */
2265
- function IFilterRangeCharacter() { }
2266
- if (false) {
2267
- /** @type {?} */
2268
- IFilterRangeCharacter.prototype.iniInitial;
2269
- /** @type {?} */
2270
- IFilterRangeCharacter.prototype.iniFinal;
2271
- /** @type {?} */
2272
- IFilterRangeCharacter.prototype.valInitial;
2273
- /** @type {?} */
2274
- IFilterRangeCharacter.prototype.valFinal;
2275
- }
2276
- /**
2277
- * @record
2278
- */
2279
- function IFilterRangeNumber() { }
2280
- if (false) {
2281
- /** @type {?} */
2282
- IFilterRangeNumber.prototype.iniInitial;
2283
- /** @type {?} */
2284
- IFilterRangeNumber.prototype.iniFinal;
2285
- /** @type {?} */
2286
- IFilterRangeNumber.prototype.valInitial;
2287
- /** @type {?} */
2288
- IFilterRangeNumber.prototype.valFinal;
2289
- }
2290
- /**
2291
- * @record
2292
- */
2293
- function IFilterRangeDate() { }
2294
- if (false) {
2295
- /** @type {?} */
2296
- IFilterRangeDate.prototype.iniInitial;
2297
- /** @type {?} */
2298
- IFilterRangeDate.prototype.iniFinal;
2299
- /** @type {?} */
2300
- IFilterRangeDate.prototype.valInitial;
2301
- /** @type {?} */
2302
- IFilterRangeDate.prototype.valFinal;
2303
- }
2304
-
2305
- /**
2306
- * @fileoverview added by tsickle
2307
- * Generated from: lib/components/totvs-schedule-execution/totvs-schedule-execution.model.ts
2308
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2309
- */
2310
- /**
2311
- * @record
2312
- */
2313
- function IScheduleParameters() { }
2314
- if (false) {
2315
- /** @type {?} */
2316
- IScheduleParameters.prototype.executionType;
2317
- /** @type {?} */
2318
- IScheduleParameters.prototype.execAppointDate;
2319
- /** @type {?} */
2320
- IScheduleParameters.prototype.execAppointHour;
2321
- /** @type {?} */
2322
- IScheduleParameters.prototype.executionServer;
2323
- /** @type {?} */
2324
- IScheduleParameters.prototype.repeatExecution;
2325
- /** @type {?} */
2326
- IScheduleParameters.prototype.repeatType;
2327
- /** @type {?} */
2328
- IScheduleParameters.prototype.frequency;
2329
- /** @type {?} */
2330
- IScheduleParameters.prototype.frequencyValue;
2331
- /** @type {?} */
2332
- IScheduleParameters.prototype.frequencyType;
2333
- /** @type {?} */
2334
- IScheduleParameters.prototype.execAppointHourInit;
2335
- /** @type {?} */
2336
- IScheduleParameters.prototype.execAppointHourFinal;
2337
- /** @type {?} */
2338
- IScheduleParameters.prototype.selectWeeklys;
2339
- /** @type {?} */
2340
- IScheduleParameters.prototype.dayOfMonth;
2341
- }
2342
1329
  class ScheduleParameters {
2343
1330
  }
2344
- if (false) {
2345
- /** @type {?} */
2346
- ScheduleParameters.prototype.executionType;
2347
- /** @type {?} */
2348
- ScheduleParameters.prototype.execAppointDate;
2349
- /** @type {?} */
2350
- ScheduleParameters.prototype.execAppointHour;
2351
- /** @type {?} */
2352
- ScheduleParameters.prototype.executionServer;
2353
- /** @type {?} */
2354
- ScheduleParameters.prototype.repeatExecution;
2355
- /** @type {?} */
2356
- ScheduleParameters.prototype.repeatType;
2357
- /** @type {?} */
2358
- ScheduleParameters.prototype.frequency;
2359
- /** @type {?} */
2360
- ScheduleParameters.prototype.frequencyValue;
2361
- /** @type {?} */
2362
- ScheduleParameters.prototype.frequencyType;
2363
- /** @type {?} */
2364
- ScheduleParameters.prototype.execAppointHourInit;
2365
- /** @type {?} */
2366
- ScheduleParameters.prototype.execAppointHourFinal;
2367
- /** @type {?} */
2368
- ScheduleParameters.prototype.selectWeeklys;
2369
- /** @type {?} */
2370
- ScheduleParameters.prototype.dayOfMonth;
2371
- }
2372
- /**
2373
- * @record
2374
- */
2375
- function IExecutionStatus() { }
2376
- if (false) {
2377
- /** @type {?} */
2378
- IExecutionStatus.prototype.jobScheduleID;
2379
- /** @type {?} */
2380
- IExecutionStatus.prototype.executionID;
2381
- /** @type {?} */
2382
- IExecutionStatus.prototype.startedDate;
2383
- /** @type {?} */
2384
- IExecutionStatus.prototype.error;
2385
- /** @type {?} */
2386
- IExecutionStatus.prototype.status;
2387
- }
2388
1331
  class ExecutionStatus {
2389
1332
  }
2390
- if (false) {
2391
- /** @type {?} */
2392
- ExecutionStatus.prototype.jobScheduleID;
2393
- /** @type {?} */
2394
- ExecutionStatus.prototype.executionID;
2395
- /** @type {?} */
2396
- ExecutionStatus.prototype.startedDate;
2397
- /** @type {?} */
2398
- ExecutionStatus.prototype.error;
2399
- /** @type {?} */
2400
- ExecutionStatus.prototype.status;
2401
- }
2402
- /**
2403
- * @record
2404
- */
2405
- function IExecutionParameters() { }
2406
- if (false) {
2407
- /** @type {?} */
2408
- IExecutionParameters.prototype.executionServer;
2409
- /** @type {?} */
2410
- IExecutionParameters.prototype.programName;
2411
- /** @type {?} */
2412
- IExecutionParameters.prototype.externalName;
2413
- /** @type {?} */
2414
- IExecutionParameters.prototype.programEMS5;
2415
- /** @type {?} */
2416
- IExecutionParameters.prototype.programVersion;
2417
- /** @type {?} */
2418
- IExecutionParameters.prototype.businessParams;
2419
- }
2420
1333
  class ExecutionParameters {
2421
- }
2422
- if (false) {
2423
- /** @type {?} */
2424
- ExecutionParameters.prototype.executionServer;
2425
- /** @type {?} */
2426
- ExecutionParameters.prototype.programName;
2427
- /** @type {?} */
2428
- ExecutionParameters.prototype.externalName;
2429
- /** @type {?} */
2430
- ExecutionParameters.prototype.programEMS5;
2431
- /** @type {?} */
2432
- ExecutionParameters.prototype.programVersion;
2433
- /** @type {?} */
2434
- ExecutionParameters.prototype.businessParams;
2435
1334
  }
2436
1335
 
2437
- /**
2438
- * @fileoverview added by tsickle
2439
- * Generated from: lib/components/totvs-schedule-execution/totvs-schedule-execution.service.ts
2440
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2441
- */
2442
1336
  class TotvsScheduleExecutionService {
2443
- /**
2444
- * @param {?} http
2445
- */
2446
1337
  constructor(http) {
2447
1338
  this.http = http;
2448
1339
  this.headers = { headers: { 'X-PO-Screen-Lock': 'true' } };
@@ -2450,12 +1341,7 @@ class TotvsScheduleExecutionService {
2450
1341
  this.urlJobScheduler = '/dts/datasul-rest/resources/prg/framework/v1/jobScheduler';
2451
1342
  this.urlJobExecution = '/dts/datasul-rest/resources/prg/framework/v1/jobExecution';
2452
1343
  }
2453
- /**
2454
- * @param {?} params
2455
- * @return {?}
2456
- */
2457
1344
  getFilteredItems(params) {
2458
- /** @type {?} */
2459
1345
  const urlParams = new Array();
2460
1346
  urlParams.push(`pageSize=${params.pageSize.toString()}`);
2461
1347
  urlParams.push(`page=${params.page.toString()}`);
@@ -2464,20 +1350,10 @@ class TotvsScheduleExecutionService {
2464
1350
  }
2465
1351
  return this.http.get(`${this.urlCadServidor}?${urlParams.join('&')}`);
2466
1352
  }
2467
- /**
2468
- * @param {?} id
2469
- * @return {?}
2470
- */
2471
1353
  getObjectByValue(id) {
2472
1354
  return this.http.get(`${this.urlCadServidor}/${id}`, this.headers);
2473
1355
  }
2474
- /**
2475
- * @param {?} parameters
2476
- * @param {?} loading
2477
- * @return {?}
2478
- */
2479
1356
  createExecution(parameters, loading) {
2480
- /** @type {?} */
2481
1357
  const params = JSON.parse(JSON.stringify(parameters).replace(/\\\\/g, '*|'));
2482
1358
  if (loading) {
2483
1359
  return this.http.post(`${this.urlJobScheduler}`, params, this.headers);
@@ -2486,17 +1362,9 @@ class TotvsScheduleExecutionService {
2486
1362
  return this.http.post(`${this.urlJobScheduler}`, params);
2487
1363
  }
2488
1364
  }
2489
- /**
2490
- * @param {?} executionParams
2491
- * @param {?} loading
2492
- * @return {?}
2493
- */
2494
1365
  createExecutionForNow(executionParams, loading) {
2495
- /** @type {?} */
2496
1366
  let jobScheduleParams;
2497
- /** @type {?} */
2498
1367
  const date = new Date();
2499
- /** @type {?} */
2500
1368
  const params = JSON.parse(JSON.stringify(executionParams).replace(/\\\\/g, '*|'));
2501
1369
  if (!params.businessParams || params.businessParams.length === 0) {
2502
1370
  params.businessParams = [{ chave: '', valor: '' }];
@@ -2522,40 +1390,14 @@ class TotvsScheduleExecutionService {
2522
1390
  return this.http.post(`${this.urlJobScheduler}`, jobScheduleParams);
2523
1391
  }
2524
1392
  }
2525
- /**
2526
- * @param {?} jobScheduleID
2527
- * @param {?=} loading
2528
- * @return {?}
2529
- */
2530
1393
  getExecutionByJobScheduleID(jobScheduleID, loading = false) {
2531
- /** @type {?} */
2532
1394
  const url = `${this.urlJobExecution}?jobScheduleID=${jobScheduleID}`;
2533
- return this.getExecution(url, loading).pipe(map((/**
2534
- * @param {?} response
2535
- * @return {?}
2536
- */
2537
- (response) => this.transformExecution('jobScheduleID', response))));
1395
+ return this.getExecution(url, loading).pipe(map((response) => this.transformExecution('jobScheduleID', response)));
2538
1396
  }
2539
- /**
2540
- * @param {?} executionID
2541
- * @param {?=} loading
2542
- * @return {?}
2543
- */
2544
1397
  getExecutionByExecutionID(executionID, loading = false) {
2545
- /** @type {?} */
2546
1398
  const url = `${this.urlJobExecution}/${executionID}`;
2547
- return this.getExecution(url, loading).pipe(map((/**
2548
- * @param {?} response
2549
- * @return {?}
2550
- */
2551
- (response) => this.transformExecution('executionID', response))));
1399
+ return this.getExecution(url, loading).pipe(map((response) => this.transformExecution('executionID', response)));
2552
1400
  }
2553
- /**
2554
- * @private
2555
- * @param {?} url
2556
- * @param {?} loading
2557
- * @return {?}
2558
- */
2559
1401
  getExecution(url, loading) {
2560
1402
  if (loading) {
2561
1403
  return this.http.get(url, this.headers);
@@ -2564,18 +1406,11 @@ class TotvsScheduleExecutionService {
2564
1406
  return this.http.get(url);
2565
1407
  }
2566
1408
  }
2567
- /**
2568
- * @private
2569
- * @param {?} type
2570
- * @param {?} response
2571
- * @return {?}
2572
- */
2573
1409
  transformExecution(type, response) {
2574
1410
  if (!response || !response.items || response.items.length === 0) {
2575
1411
  return;
2576
1412
  }
2577
1413
  response = response.items[0];
2578
- /** @type {?} */
2579
1414
  const execStatus = new ExecutionStatus();
2580
1415
  execStatus.jobScheduleID = response.jobScheduleID;
2581
1416
  execStatus.executionID = response.executionID;
@@ -2584,43 +1419,15 @@ class TotvsScheduleExecutionService {
2584
1419
  execStatus.status = response.status;
2585
1420
  return execStatus;
2586
1421
  }
2587
- /**
2588
- * @param {?} jobScheduleID
2589
- * @param {?} intervalNum
2590
- * @param {?} fncCallBack
2591
- * @param {?=} loading
2592
- * @return {?}
2593
- */
2594
1422
  followUpExcByJobScheduleID(jobScheduleID, intervalNum, fncCallBack, loading = false) {
2595
1423
  this.followUpExecution('jobScheduleID', jobScheduleID, intervalNum, fncCallBack, loading);
2596
1424
  }
2597
- /**
2598
- * @param {?} executionID
2599
- * @param {?} intervalNum
2600
- * @param {?} fncCallBack
2601
- * @param {?=} loading
2602
- * @return {?}
2603
- */
2604
1425
  followUpExcByExecutionID(executionID, intervalNum, fncCallBack, loading = false) {
2605
1426
  this.followUpExecution('executionID', executionID, intervalNum, fncCallBack, loading);
2606
1427
  }
2607
- /**
2608
- * @private
2609
- * @param {?} type
2610
- * @param {?} execID
2611
- * @param {?} intervalNum
2612
- * @param {?} fncCallBack
2613
- * @param {?} loading
2614
- * @return {?}
2615
- */
2616
1428
  followUpExecution(type, execID, intervalNum, fncCallBack, loading) {
2617
1429
  this.jobExecutionSubscription$ = null;
2618
- /** @type {?} */
2619
- const intervalID = setInterval((/**
2620
- * @return {?}
2621
- */
2622
- () => {
2623
- /** @type {?} */
1430
+ const intervalID = setInterval(() => {
2624
1431
  const execStatus = new ExecutionStatus();
2625
1432
  execStatus.jobScheduleID = (type === 'jobScheduleID') ? execID : '';
2626
1433
  execStatus.executionID = (type === 'executionID') ? execID : '';
@@ -2632,47 +1439,22 @@ class TotvsScheduleExecutionService {
2632
1439
  }
2633
1440
  if (type === 'jobScheduleID') {
2634
1441
  this.jobExecutionSubscription$ = this.getExecutionByJobScheduleID(execID, loading)
2635
- .subscribe((/**
2636
- * @param {?} response
2637
- * @return {?}
2638
- */
2639
- (response) => {
1442
+ .subscribe((response) => {
2640
1443
  this.followUpExecReturnOk(execID, execStatus, response, intervalID, fncCallBack);
2641
- }), (/**
2642
- * @param {?} error
2643
- * @return {?}
2644
- */
2645
- (error) => {
1444
+ }, (error) => {
2646
1445
  this.followUpExecReturnError(error, execStatus, intervalID, fncCallBack);
2647
- }));
1446
+ });
2648
1447
  }
2649
1448
  if (type === 'executionID') {
2650
1449
  this.jobExecutionSubscription$ = this.getExecutionByExecutionID(execID, loading)
2651
- .subscribe((/**
2652
- * @param {?} response
2653
- * @return {?}
2654
- */
2655
- (response) => {
1450
+ .subscribe((response) => {
2656
1451
  this.followUpExecReturnOk(execID, execStatus, response, intervalID, fncCallBack);
2657
- }), (/**
2658
- * @param {?} error
2659
- * @return {?}
2660
- */
2661
- (error) => {
1452
+ }, (error) => {
2662
1453
  this.followUpExecReturnError(error, execStatus, intervalID, fncCallBack);
2663
- }));
1454
+ });
2664
1455
  }
2665
- }), intervalNum);
1456
+ }, intervalNum);
2666
1457
  }
2667
- /**
2668
- * @private
2669
- * @param {?} execID
2670
- * @param {?} execStatus
2671
- * @param {?} response
2672
- * @param {?} intervalID
2673
- * @param {?} fncCallBack
2674
- * @return {?}
2675
- */
2676
1458
  followUpExecReturnOk(execID, execStatus, response, intervalID, fncCallBack) {
2677
1459
  if (response) {
2678
1460
  execStatus = response;
@@ -2688,16 +1470,7 @@ class TotvsScheduleExecutionService {
2688
1470
  }
2689
1471
  this.jobExecutionSubscription$ = null;
2690
1472
  }
2691
- /**
2692
- * @private
2693
- * @param {?} error
2694
- * @param {?} execStatus
2695
- * @param {?} intervalID
2696
- * @param {?} fncCallBack
2697
- * @return {?}
2698
- */
2699
1473
  followUpExecReturnError(error, execStatus, intervalID, fncCallBack) {
2700
- /** @type {?} */
2701
1474
  let erroDesc = '';
2702
1475
  if (error instanceof HttpErrorResponse) {
2703
1476
  erroDesc = error.message;
@@ -2723,13 +1496,7 @@ class TotvsScheduleExecutionService {
2723
1496
  clearInterval(intervalID);
2724
1497
  this.jobExecutionSubscription$ = null;
2725
1498
  }
2726
- /**
2727
- * @private
2728
- * @param {?} num
2729
- * @return {?}
2730
- */
2731
1499
  addZero(num) {
2732
- /** @type {?} */
2733
1500
  let str = `${num}`;
2734
1501
  if (num < 10) {
2735
1502
  str = `0${num}`;
@@ -2743,48 +1510,9 @@ TotvsScheduleExecutionService.decorators = [
2743
1510
  /** @nocollapse */
2744
1511
  TotvsScheduleExecutionService.ctorParameters = () => [
2745
1512
  { type: HttpClient }
2746
- ];
2747
- if (false) {
2748
- /**
2749
- * @type {?}
2750
- * @private
2751
- */
2752
- TotvsScheduleExecutionService.prototype.headers;
2753
- /**
2754
- * @type {?}
2755
- * @private
2756
- */
2757
- TotvsScheduleExecutionService.prototype.urlCadServidor;
2758
- /**
2759
- * @type {?}
2760
- * @private
2761
- */
2762
- TotvsScheduleExecutionService.prototype.urlJobScheduler;
2763
- /**
2764
- * @type {?}
2765
- * @private
2766
- */
2767
- TotvsScheduleExecutionService.prototype.urlJobExecution;
2768
- /**
2769
- * @type {?}
2770
- * @private
2771
- */
2772
- TotvsScheduleExecutionService.prototype.jobExecutionSubscription$;
2773
- /** @type {?} */
2774
- TotvsScheduleExecutionService.prototype.http;
2775
- }
1513
+ ];
2776
1514
 
2777
- /**
2778
- * @fileoverview added by tsickle
2779
- * Generated from: lib/components/totvs-schedule-execution/totvs-schedule-execution.component.ts
2780
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2781
- */
2782
1515
  class TotvsScheduleExecutionComponent {
2783
- /**
2784
- * @param {?} poI18nService
2785
- * @param {?} rpwService
2786
- * @param {?} poNotification
2787
- */
2788
1516
  constructor(poI18nService, rpwService, poNotification) {
2789
1517
  this.poI18nService = poI18nService;
2790
1518
  this.rpwService = rpwService;
@@ -2797,9 +1525,6 @@ class TotvsScheduleExecutionComponent {
2797
1525
  this.jsonObject = {};
2798
1526
  this.literals = {};
2799
1527
  }
2800
- /**
2801
- * @return {?}
2802
- */
2803
1528
  ngOnInit() {
2804
1529
  /* VERIFICAR COMO FICARÁ A TRADUÇÃO
2805
1530
  forkJoin(
@@ -2811,9 +1536,6 @@ class TotvsScheduleExecutionComponent {
2811
1536
  });*/
2812
1537
  this.setupComponents();
2813
1538
  }
2814
- /**
2815
- * @return {?}
2816
- */
2817
1539
  setupComponents() {
2818
1540
  this.executionTypeOptions = [
2819
1541
  { label: 'Executar Hoje', value: 1 },
@@ -2845,46 +1567,25 @@ class TotvsScheduleExecutionComponent {
2845
1567
  this.model.repeatType = 1;
2846
1568
  this.model.repeatExecution = false;
2847
1569
  }
2848
- /**
2849
- * @param {?} schParam
2850
- * @return {?}
2851
- */
2852
1570
  setScheduleParameters(schParam) {
2853
1571
  if (!schParam) {
2854
1572
  return;
2855
1573
  }
2856
1574
  this.model = schParam;
2857
1575
  }
2858
- /**
2859
- * @param {?} value
2860
- * @return {?}
2861
- */
2862
1576
  fieldRpwServiceFormat(value) {
2863
1577
  return `${value.code} - ${value.name}`;
2864
1578
  }
2865
- /**
2866
- * @return {?}
2867
- */
2868
1579
  isExecutionSchedule() {
2869
1580
  return (this.model.executionType === 2);
2870
1581
  }
2871
- /**
2872
- * @return {?}
2873
- */
2874
1582
  isRepeatExecution() {
2875
1583
  return this.model.repeatExecution;
2876
1584
  }
2877
- /**
2878
- * @return {?}
2879
- */
2880
1585
  isFrenquency() {
2881
1586
  return (this.model.frequency === 'yes');
2882
1587
  }
2883
- /**
2884
- * @return {?}
2885
- */
2886
1588
  changeRepeatExecution() {
2887
- /** @type {?} */
2888
1589
  const date = new Date();
2889
1590
  if (!this.model.execAppointHourInit) {
2890
1591
  this.model.execAppointHourInit = `${this.addZero(date.getHours())}:${this.addZero(date.getMinutes())}`;
@@ -2898,49 +1599,26 @@ class TotvsScheduleExecutionComponent {
2898
1599
  this.model.frequencyType = 'hour';
2899
1600
  this.model.frequencyValue = 0;
2900
1601
  }
2901
- /**
2902
- * @return {?}
2903
- */
2904
1602
  changeExecutionType() {
2905
- /** @type {?} */
2906
1603
  const date = new Date();
2907
1604
  this.model.execAppointDate = date;
2908
1605
  this.model.execAppointHour = `${this.addZero(date.getHours())}:${this.addZero(date.getMinutes())}`;
2909
1606
  }
2910
- /**
2911
- * @return {?}
2912
- */
2913
1607
  changeTypeFrequency() {
2914
1608
  }
2915
- /**
2916
- * @param {?} codTab
2917
- * @return {?}
2918
- */
2919
1609
  getActiveTab(codTab) {
2920
1610
  return (this.model.repeatType === codTab);
2921
1611
  }
2922
- /**
2923
- * @param {?} codTab
2924
- * @return {?}
2925
- */
2926
1612
  setActiveTab(codTab) {
2927
1613
  this.model.repeatType = codTab;
2928
1614
  }
2929
- /**
2930
- * @param {?} num
2931
- * @return {?}
2932
- */
2933
1615
  addZero(num) {
2934
- /** @type {?} */
2935
1616
  let str = `${num}`;
2936
1617
  if (num < 10) {
2937
1618
  str = `0${num}`;
2938
1619
  }
2939
1620
  return str;
2940
1621
  }
2941
- /**
2942
- * @return {?}
2943
- */
2944
1622
  executeSchedule() {
2945
1623
  if (this.disabledParams) {
2946
1624
  return;
@@ -2954,7 +1632,6 @@ class TotvsScheduleExecutionComponent {
2954
1632
  this.jsonObject.recurrent = this.model.repeatExecution;
2955
1633
  this.jsonObject.executionParameter = {};
2956
1634
  if (this.model.executionType === 1) {
2957
- /** @type {?} */
2958
1635
  const date = new Date();
2959
1636
  this.jsonObject.firstExecution = `${date.getFullYear()}-${(date.getMonth() + 1)}-${date.getDate()}T${this.addZero(date.getHours())}:${this.addZero(date.getMinutes())}:00.000Z`;
2960
1637
  }
@@ -2969,12 +1646,9 @@ class TotvsScheduleExecutionComponent {
2969
1646
  this.jsonObject.executionParameter.parametros[4] = {};
2970
1647
  this.jsonObject.executionParameter.parametros[4].parametros_negocio = this.parameters;
2971
1648
  // Executa hoje ou agendada
2972
- this.rpwService.createExecution(this.jsonObject, this.loading).subscribe((/**
2973
- * @return {?}
2974
- */
2975
- () => {
1649
+ this.rpwService.createExecution(this.jsonObject, this.loading).subscribe(() => {
2976
1650
  this.poNotification.success('Agendamento realizado com sucesso !');
2977
- }));
1651
+ });
2978
1652
  if (this.model.repeatExecution) {
2979
1653
  if (this.model.repeatType === 1) {
2980
1654
  this.jsonObject.daily = {
@@ -3009,19 +1683,11 @@ class TotvsScheduleExecutionComponent {
3009
1683
  };
3010
1684
  }
3011
1685
  // Executa a diária, semanal ou mensal
3012
- this.rpwService.createExecution(this.jsonObject, this.loading).subscribe((/**
3013
- * @return {?}
3014
- */
3015
- () => {
3016
- }));
1686
+ this.rpwService.createExecution(this.jsonObject, this.loading).subscribe(() => {
1687
+ });
3017
1688
  }
3018
1689
  this.endExecution.emit(this.model);
3019
1690
  }
3020
- /**
3021
- * @param {?} value
3022
- * @param {?} type
3023
- * @return {?}
3024
- */
3025
1691
  getHourOrMinute(value, type) {
3026
1692
  if (type === 'h') {
3027
1693
  return +value.substring(0, 2);
@@ -3030,11 +1696,6 @@ class TotvsScheduleExecutionComponent {
3030
1696
  return +value.substring(3, 6);
3031
1697
  }
3032
1698
  }
3033
- /**
3034
- * @param {?} hourInit
3035
- * @param {?} hourFinal
3036
- * @return {?}
3037
- */
3038
1699
  compareHour(hourInit, hourFinal) {
3039
1700
  if (hourInit === hourFinal) {
3040
1701
  return false;
@@ -3047,9 +1708,6 @@ class TotvsScheduleExecutionComponent {
3047
1708
  }
3048
1709
  return true;
3049
1710
  }
3050
- /**
3051
- * @return {?}
3052
- */
3053
1711
  validate() {
3054
1712
  if (!this.scheduleExecutionForm.valid) {
3055
1713
  this.poNotification.error('Verifique as inconsistências em tela.');
@@ -3095,7 +1753,7 @@ TotvsScheduleExecutionComponent.decorators = [
3095
1753
  selector: 'app-totvs-schedule-execution',
3096
1754
  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",
3097
1755
  styles: [""]
3098
- }] }
1756
+ },] }
3099
1757
  ];
3100
1758
  /** @nocollapse */
3101
1759
  TotvsScheduleExecutionComponent.ctorParameters = () => [
@@ -3113,67 +1771,11 @@ TotvsScheduleExecutionComponent.propDecorators = {
3113
1771
  disabledParams: [{ type: Input }],
3114
1772
  loading: [{ type: Input }],
3115
1773
  endExecution: [{ type: Output }]
3116
- };
3117
- if (false) {
3118
- /** @type {?} */
3119
- TotvsScheduleExecutionComponent.prototype.scheduleExecutionForm;
3120
- /** @type {?} */
3121
- TotvsScheduleExecutionComponent.prototype.programName;
3122
- /** @type {?} */
3123
- TotvsScheduleExecutionComponent.prototype.externalName;
3124
- /** @type {?} */
3125
- TotvsScheduleExecutionComponent.prototype.programEMS5;
3126
- /** @type {?} */
3127
- TotvsScheduleExecutionComponent.prototype.programVersion;
3128
- /** @type {?} */
3129
- TotvsScheduleExecutionComponent.prototype.parameters;
3130
- /** @type {?} */
3131
- TotvsScheduleExecutionComponent.prototype.disabledParams;
3132
- /** @type {?} */
3133
- TotvsScheduleExecutionComponent.prototype.loading;
3134
- /** @type {?} */
3135
- TotvsScheduleExecutionComponent.prototype.endExecution;
3136
- /** @type {?} */
3137
- TotvsScheduleExecutionComponent.prototype.executionTypeOptions;
3138
- /** @type {?} */
3139
- TotvsScheduleExecutionComponent.prototype.frequencyOptions;
3140
- /** @type {?} */
3141
- TotvsScheduleExecutionComponent.prototype.frequencyTypeOptions;
3142
- /** @type {?} */
3143
- TotvsScheduleExecutionComponent.prototype.weeklyOptions;
3144
- /** @type {?} */
3145
- TotvsScheduleExecutionComponent.prototype.zoomRpwServiceColumns;
3146
- /** @type {?} */
3147
- TotvsScheduleExecutionComponent.prototype.model;
3148
- /**
3149
- * @type {?}
3150
- * @private
3151
- */
3152
- TotvsScheduleExecutionComponent.prototype.jsonObject;
3153
- /** @type {?} */
3154
- TotvsScheduleExecutionComponent.prototype.literals;
3155
- /** @type {?} */
3156
- TotvsScheduleExecutionComponent.prototype.poI18nService;
3157
- /** @type {?} */
3158
- TotvsScheduleExecutionComponent.prototype.rpwService;
3159
- /** @type {?} */
3160
- TotvsScheduleExecutionComponent.prototype.poNotification;
3161
- }
1774
+ };
3162
1775
 
3163
- /**
3164
- * @fileoverview added by tsickle
3165
- * Generated from: lib/pipes/dts-date-format.pipe.ts
3166
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3167
- */
3168
1776
  class DtsDateFormatPipe {
3169
- /**
3170
- * @param {?} value
3171
- * @param {?=} format
3172
- * @return {?}
3173
- */
3174
1777
  transform(value, format = 'dd/MM/yyyy') {
3175
1778
  const { 0: year, 1: month, 2: day } = value.split('-');
3176
- /** @type {?} */
3177
1779
  const formattedDate = format.replace('dd', day)
3178
1780
  .replace('MM', month)
3179
1781
  .replace('yyyy', year);
@@ -3186,15 +1788,7 @@ DtsDateFormatPipe.decorators = [
3186
1788
  },] }
3187
1789
  ];
3188
1790
 
3189
- /**
3190
- * @fileoverview added by tsickle
3191
- * Generated from: lib/dts-backoffice-util.module.ts
3192
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3193
- */
3194
1791
  class DtsBackofficeUtilsModule {
3195
- /**
3196
- * @return {?}
3197
- */
3198
1792
  static forRoot() {
3199
1793
  return {
3200
1794
  ngModule: DtsBackofficeUtilsModule,
@@ -3224,16 +1818,13 @@ DtsBackofficeUtilsModule.decorators = [
3224
1818
  },] }
3225
1819
  ];
3226
1820
 
3227
- /**
3228
- * @fileoverview added by tsickle
3229
- * Generated from: public-api.ts
3230
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3231
- */
1821
+ /*
1822
+ * Public API Surface of dts-backoffice-util
1823
+ */
1824
+ // Pipes
3232
1825
 
3233
1826
  /**
3234
- * @fileoverview added by tsickle
3235
- * Generated from: dts-backoffice-util.ts
3236
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1827
+ * Generated bundle index. Do not edit.
3237
1828
  */
3238
1829
 
3239
1830
  export { BreadcrumbControlService, CacheParamsService, DateUtil, DisclaimerUtil, DownloadDataParams, DtsBackofficeUtilsModule, DtsDateFormatPipe, ExecutionParameters, ExecutionStatus, FieldValidationUtil, FileUtil, FilterRangeUtil, GenericFunctionsUtils, MenuDatasulService, ProfileService, ReportFormats, ReportService, ScheduleParameters, TotvsScheduleExecutionComponent, TotvsScheduleExecutionService, TranslateService, UserLoginService };