@seniorsistemas/tmsx-angular-components 0.0.0-feature-tmsx-1741-7d4c9914

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 (55) hide show
  1. package/bundles/seniorsistemas-tmsx-angular-components.umd.js +1320 -0
  2. package/bundles/seniorsistemas-tmsx-angular-components.umd.js.map +1 -0
  3. package/bundles/seniorsistemas-tmsx-angular-components.umd.min.js +16 -0
  4. package/bundles/seniorsistemas-tmsx-angular-components.umd.min.js.map +1 -0
  5. package/components/grid-editable-nested/grid-editable-nested.component.d.ts +80 -0
  6. package/components/grid-editable-nested/grid-editable-nested.module.d.ts +2 -0
  7. package/components/grid-editable-nested/grid.interface.d.ts +43 -0
  8. package/components/grid-editable-nested/index.d.ts +2 -0
  9. package/components/index.d.ts +2 -0
  10. package/components/painel-processamento/index.d.ts +2 -0
  11. package/components/painel-processamento/painel-processamento.component.d.ts +34 -0
  12. package/components/painel-processamento/painel-processamento.module.d.ts +2 -0
  13. package/components/painel-processamento/processamento.d.ts +24 -0
  14. package/esm2015/components/grid-editable-nested/grid-editable-nested.component.js +267 -0
  15. package/esm2015/components/grid-editable-nested/grid-editable-nested.module.js +69 -0
  16. package/esm2015/components/grid-editable-nested/grid.interface.js +9 -0
  17. package/esm2015/components/grid-editable-nested/index.js +3 -0
  18. package/esm2015/components/index.js +3 -0
  19. package/esm2015/components/painel-processamento/index.js +3 -0
  20. package/esm2015/components/painel-processamento/painel-processamento.component.js +176 -0
  21. package/esm2015/components/painel-processamento/painel-processamento.module.js +33 -0
  22. package/esm2015/components/painel-processamento/processamento.js +14 -0
  23. package/esm2015/locale/fallback.js +333 -0
  24. package/esm2015/public-api.js +5 -0
  25. package/esm2015/seniorsistemas-tmsx-angular-components.js +5 -0
  26. package/esm2015/tmsx-angular-components.module.js +22 -0
  27. package/esm2015/utils/index.js +2 -0
  28. package/esm2015/utils/services/utils.service.js +196 -0
  29. package/esm5/components/grid-editable-nested/grid-editable-nested.component.js +282 -0
  30. package/esm5/components/grid-editable-nested/grid-editable-nested.module.js +72 -0
  31. package/esm5/components/grid-editable-nested/grid.interface.js +9 -0
  32. package/esm5/components/grid-editable-nested/index.js +3 -0
  33. package/esm5/components/index.js +3 -0
  34. package/esm5/components/painel-processamento/index.js +3 -0
  35. package/esm5/components/painel-processamento/painel-processamento.component.js +180 -0
  36. package/esm5/components/painel-processamento/painel-processamento.module.js +36 -0
  37. package/esm5/components/painel-processamento/processamento.js +15 -0
  38. package/esm5/locale/fallback.js +333 -0
  39. package/esm5/public-api.js +5 -0
  40. package/esm5/seniorsistemas-tmsx-angular-components.js +5 -0
  41. package/esm5/tmsx-angular-components.module.js +26 -0
  42. package/esm5/utils/index.js +2 -0
  43. package/esm5/utils/services/utils.service.js +198 -0
  44. package/fesm2015/seniorsistemas-tmsx-angular-components.js +1078 -0
  45. package/fesm2015/seniorsistemas-tmsx-angular-components.js.map +1 -0
  46. package/fesm5/seniorsistemas-tmsx-angular-components.js +1110 -0
  47. package/fesm5/seniorsistemas-tmsx-angular-components.js.map +1 -0
  48. package/locale/fallback.d.ts +1 -0
  49. package/package.json +64 -0
  50. package/public-api.d.ts +4 -0
  51. package/seniorsistemas-tmsx-angular-components.d.ts +4 -0
  52. package/seniorsistemas-tmsx-angular-components.metadata.json +1 -0
  53. package/tmsx-angular-components.module.d.ts +9 -0
  54. package/utils/index.d.ts +1 -0
  55. package/utils/services/utils.service.d.ts +31 -0
@@ -0,0 +1,1320 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@ngx-translate/core'), require('@angular/core'), require('@seniorsistemas/angular-components'), require('primeng/table'), require('@angular/common'), require('primeng/panel'), require('rxjs'), require('angular2-hotkeys'), require('primeng/toast'), require('primeng/tabmenu'), require('@angular/forms'), require('primeng/inputtext'), require('primeng/confirmdialog'), require('primeng/calendar'), require('primeng/dropdown'), require('primeng/tabview'), require('primeng/api'), require('primeng/tooltip'), require('primeng/autocomplete'), require('primeng/checkbox')) :
3
+ typeof define === 'function' && define.amd ? define('@seniorsistemas/tmsx-angular-components', ['exports', '@ngx-translate/core', '@angular/core', '@seniorsistemas/angular-components', 'primeng/table', '@angular/common', 'primeng/panel', 'rxjs', 'angular2-hotkeys', 'primeng/toast', 'primeng/tabmenu', '@angular/forms', 'primeng/inputtext', 'primeng/confirmdialog', 'primeng/calendar', 'primeng/dropdown', 'primeng/tabview', 'primeng/api', 'primeng/tooltip', 'primeng/autocomplete', 'primeng/checkbox'], factory) :
4
+ (global = global || self, factory((global.seniorsistemas = global.seniorsistemas || {}, global.seniorsistemas['tmsx-angular-components'] = {}), global.core, global.ng.core, global.angularComponents, global.table, global.ng.common, global.panel, global.rxjs, global.angular2Hotkeys, global.toast, global.tabmenu, global.ng.forms, global.inputtext, global.confirmdialog, global.calendar, global.dropdown, global.tabview, global.api, global.tooltip, global.autocomplete, global.checkbox));
5
+ }(this, (function (exports, core, core$1, angularComponents, table, common, panel, rxjs, angular2Hotkeys, toast, tabmenu, forms, inputtext, confirmdialog, calendar, dropdown, tabview, api, tooltip, autocomplete, checkbox) { 'use strict';
6
+
7
+ /*! *****************************************************************************
8
+ Copyright (c) Microsoft Corporation.
9
+
10
+ Permission to use, copy, modify, and/or distribute this software for any
11
+ purpose with or without fee is hereby granted.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
+ PERFORMANCE OF THIS SOFTWARE.
20
+ ***************************************************************************** */
21
+ /* global Reflect, Promise */
22
+
23
+ var extendStatics = function(d, b) {
24
+ extendStatics = Object.setPrototypeOf ||
25
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
27
+ return extendStatics(d, b);
28
+ };
29
+
30
+ function __extends(d, b) {
31
+ extendStatics(d, b);
32
+ function __() { this.constructor = d; }
33
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
+ }
35
+
36
+ var __assign = function() {
37
+ __assign = Object.assign || function __assign(t) {
38
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
39
+ s = arguments[i];
40
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
41
+ }
42
+ return t;
43
+ };
44
+ return __assign.apply(this, arguments);
45
+ };
46
+
47
+ function __rest(s, e) {
48
+ var t = {};
49
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
+ t[p] = s[p];
51
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
+ t[p[i]] = s[p[i]];
55
+ }
56
+ return t;
57
+ }
58
+
59
+ function __decorate(decorators, target, key, desc) {
60
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
62
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
63
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
64
+ }
65
+
66
+ function __param(paramIndex, decorator) {
67
+ return function (target, key) { decorator(target, key, paramIndex); }
68
+ }
69
+
70
+ function __metadata(metadataKey, metadataValue) {
71
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
72
+ }
73
+
74
+ function __awaiter(thisArg, _arguments, P, generator) {
75
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
76
+ return new (P || (P = Promise))(function (resolve, reject) {
77
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
78
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
79
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
80
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
81
+ });
82
+ }
83
+
84
+ function __generator(thisArg, body) {
85
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
86
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
87
+ function verb(n) { return function (v) { return step([n, v]); }; }
88
+ function step(op) {
89
+ if (f) throw new TypeError("Generator is already executing.");
90
+ while (_) try {
91
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
92
+ if (y = 0, t) op = [op[0] & 2, t.value];
93
+ switch (op[0]) {
94
+ case 0: case 1: t = op; break;
95
+ case 4: _.label++; return { value: op[1], done: false };
96
+ case 5: _.label++; y = op[1]; op = [0]; continue;
97
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
98
+ default:
99
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
100
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
101
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
102
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
103
+ if (t[2]) _.ops.pop();
104
+ _.trys.pop(); continue;
105
+ }
106
+ op = body.call(thisArg, _);
107
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
108
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
109
+ }
110
+ }
111
+
112
+ function __createBinding(o, m, k, k2) {
113
+ if (k2 === undefined) k2 = k;
114
+ o[k2] = m[k];
115
+ }
116
+
117
+ function __exportStar(m, exports) {
118
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
119
+ }
120
+
121
+ function __values(o) {
122
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
123
+ if (m) return m.call(o);
124
+ if (o && typeof o.length === "number") return {
125
+ next: function () {
126
+ if (o && i >= o.length) o = void 0;
127
+ return { value: o && o[i++], done: !o };
128
+ }
129
+ };
130
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
131
+ }
132
+
133
+ function __read(o, n) {
134
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
135
+ if (!m) return o;
136
+ var i = m.call(o), r, ar = [], e;
137
+ try {
138
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
139
+ }
140
+ catch (error) { e = { error: error }; }
141
+ finally {
142
+ try {
143
+ if (r && !r.done && (m = i["return"])) m.call(i);
144
+ }
145
+ finally { if (e) throw e.error; }
146
+ }
147
+ return ar;
148
+ }
149
+
150
+ function __spread() {
151
+ for (var ar = [], i = 0; i < arguments.length; i++)
152
+ ar = ar.concat(__read(arguments[i]));
153
+ return ar;
154
+ }
155
+
156
+ function __spreadArrays() {
157
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
158
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
159
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
160
+ r[k] = a[j];
161
+ return r;
162
+ };
163
+
164
+ function __await(v) {
165
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
166
+ }
167
+
168
+ function __asyncGenerator(thisArg, _arguments, generator) {
169
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
170
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
171
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
172
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
173
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
174
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
175
+ function fulfill(value) { resume("next", value); }
176
+ function reject(value) { resume("throw", value); }
177
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
178
+ }
179
+
180
+ function __asyncDelegator(o) {
181
+ var i, p;
182
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
183
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
184
+ }
185
+
186
+ function __asyncValues(o) {
187
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
188
+ var m = o[Symbol.asyncIterator], i;
189
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
190
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
191
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
192
+ }
193
+
194
+ function __makeTemplateObject(cooked, raw) {
195
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
196
+ return cooked;
197
+ };
198
+
199
+ function __importStar(mod) {
200
+ if (mod && mod.__esModule) return mod;
201
+ var result = {};
202
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
203
+ result.default = mod;
204
+ return result;
205
+ }
206
+
207
+ function __importDefault(mod) {
208
+ return (mod && mod.__esModule) ? mod : { default: mod };
209
+ }
210
+
211
+ function __classPrivateFieldGet(receiver, privateMap) {
212
+ if (!privateMap.has(receiver)) {
213
+ throw new TypeError("attempted to get private field on non-instance");
214
+ }
215
+ return privateMap.get(receiver);
216
+ }
217
+
218
+ function __classPrivateFieldSet(receiver, privateMap, value) {
219
+ if (!privateMap.has(receiver)) {
220
+ throw new TypeError("attempted to set private field on non-instance");
221
+ }
222
+ privateMap.set(receiver, value);
223
+ return value;
224
+ }
225
+
226
+ var _a;
227
+ var EnumProcessamentoStatus;
228
+ (function (EnumProcessamentoStatus) {
229
+ EnumProcessamentoStatus["SUCCESS"] = "SUCCESS";
230
+ EnumProcessamentoStatus["FAILED"] = "FAILED";
231
+ EnumProcessamentoStatus["PENDING"] = "PENDING";
232
+ EnumProcessamentoStatus["PROCESSING"] = "PROCESSING";
233
+ })(EnumProcessamentoStatus || (EnumProcessamentoStatus = {}));
234
+ var EnumProcessamentoStatusTranslationMap = (_a = {},
235
+ _a[EnumProcessamentoStatus.SUCCESS] = 'tmsx_com.tmsx_angular_components.painel_processamento_status_success',
236
+ _a[EnumProcessamentoStatus.FAILED] = 'tmsx_com.tmsx_angular_components.painel_processamento_status_failed',
237
+ _a[EnumProcessamentoStatus.PENDING] = 'tmsx_com.tmsx_angular_components.painel_processamento_status_pending',
238
+ _a[EnumProcessamentoStatus.PROCESSING] = 'tmsx_com.tmsx_angular_components.painel_processamento_status_processing',
239
+ _a);
240
+
241
+ var PainelProcessamentoComponent = /** @class */ (function () {
242
+ function PainelProcessamentoComponent(translate) {
243
+ this.translate = translate;
244
+ this.processado = new core$1.EventEmitter();
245
+ this.concluido = new core$1.EventEmitter();
246
+ this.totalRecords = 0;
247
+ this.successCount = 0;
248
+ this.failedCount = 0;
249
+ this.pendingCount = 0;
250
+ this.successProgress = '0%';
251
+ this.failedProgress = '0%';
252
+ this.pendingProgress = '100%';
253
+ this.processingProgress = '0%';
254
+ this.sortField = 'status';
255
+ this.sortOrder = 1;
256
+ }
257
+ PainelProcessamentoComponent.prototype.ngOnInit = function () {
258
+ this.initPanel();
259
+ };
260
+ PainelProcessamentoComponent.prototype.initPanel = function () {
261
+ this.gridColumns = this.getGridColumn();
262
+ this.initGrid();
263
+ this.initProgressBar();
264
+ };
265
+ PainelProcessamentoComponent.prototype.initProgressBar = function () {
266
+ this.successProgress = '0%';
267
+ this.failedProgress = '0%';
268
+ this.pendingProgress = '100%';
269
+ this.processingProgress = '0%';
270
+ this.totalRecords = this.params.registros.length;
271
+ this.pendingCount = this.totalRecords;
272
+ this.processRecord(0);
273
+ };
274
+ PainelProcessamentoComponent.prototype.initGrid = function () {
275
+ this.gridData = [];
276
+ this.gridData = this.params.registros.map(function (registro) { return ({
277
+ registro: registro,
278
+ status: EnumProcessamentoStatus.PENDING,
279
+ label: registro.descricao
280
+ }); });
281
+ };
282
+ PainelProcessamentoComponent.prototype.processRecord = function (index) {
283
+ var _this = this;
284
+ if (this.pendingCount < 1) {
285
+ this.concluido.emit('ok');
286
+ return;
287
+ }
288
+ this.updateRowStatus(this.gridData[index], EnumProcessamentoStatus.PROCESSING);
289
+ var record = this.params.registros[index];
290
+ var row = this.gridData.find(function (item) { return item.registro === record; });
291
+ if (record.apiEnvio) {
292
+ record.apiEnvio(record.objEnvio)
293
+ .subscribe(function () {
294
+ _this.successCount++;
295
+ _this.pendingCount--;
296
+ _this.updateRowStatus(row, EnumProcessamentoStatus.SUCCESS);
297
+ _this.processado.emit(row);
298
+ _this.updateProgressBar();
299
+ _this.processRecord(index + 1);
300
+ }, function (error) {
301
+ _this.failedCount++;
302
+ _this.pendingCount--;
303
+ _this.updateRowStatus(row, EnumProcessamentoStatus.FAILED, error.message);
304
+ _this.processado.emit(row);
305
+ _this.updateProgressBar();
306
+ _this.processRecord(index + 1);
307
+ });
308
+ }
309
+ else {
310
+ this.failedCount = this.pendingCount;
311
+ this.pendingCount = 0;
312
+ this.updateRowStatus(row, EnumProcessamentoStatus.FAILED, this.translate.instant('tmsx_com.tmsx_angular_components.painel_processamento_api_error'));
313
+ this.updateProgressBar();
314
+ this.concluido.emit('erro');
315
+ }
316
+ };
317
+ PainelProcessamentoComponent.prototype.updateProgressBar = function () {
318
+ var successWidth = (this.successCount / this.totalRecords) * 100;
319
+ var failedWidth = (this.failedCount / this.totalRecords) * 100;
320
+ var pendingWidth = (this.pendingCount / this.totalRecords) * 100;
321
+ this.processingProgress = (successWidth + failedWidth) + "%";
322
+ this.successProgress = successWidth + "%";
323
+ this.failedProgress = failedWidth + "%";
324
+ this.pendingProgress = pendingWidth + "%";
325
+ };
326
+ PainelProcessamentoComponent.prototype.updateRowStatus = function (row, status, message) {
327
+ row.status = status;
328
+ if (message) {
329
+ row.message = message;
330
+ }
331
+ this.sortGridData();
332
+ };
333
+ PainelProcessamentoComponent.prototype.sortGridData = function () {
334
+ var _this = this;
335
+ this.gridData.sort(function (a, b) {
336
+ var _a;
337
+ var statusOrder = (_a = {},
338
+ _a[EnumProcessamentoStatus.FAILED] = 1,
339
+ _a[EnumProcessamentoStatus.PROCESSING] = 2,
340
+ _a[EnumProcessamentoStatus.SUCCESS] = 3,
341
+ _a[EnumProcessamentoStatus.PENDING] = 4,
342
+ _a);
343
+ if (_this.sortField === 'status') {
344
+ return (statusOrder[a.status] - statusOrder[b.status]) * _this.sortOrder;
345
+ }
346
+ else {
347
+ var valA = a[_this.sortField] || '';
348
+ var valB = b[_this.sortField] || '';
349
+ return valA.localeCompare(valB) * _this.sortOrder;
350
+ }
351
+ });
352
+ };
353
+ PainelProcessamentoComponent.prototype.getData = function (rowData, field) {
354
+ if (field === 'status') {
355
+ var text = this.translate.instant(EnumProcessamentoStatusTranslationMap[rowData.status]);
356
+ if (rowData.message) {
357
+ text += ": " + rowData.message;
358
+ }
359
+ return text;
360
+ }
361
+ return rowData[field];
362
+ };
363
+ PainelProcessamentoComponent.prototype.getClassStatus = function (rowData, field) {
364
+ if (field !== 'status') {
365
+ return '';
366
+ }
367
+ return "status " + rowData[field].toLowerCase();
368
+ };
369
+ PainelProcessamentoComponent.prototype.getGridColumn = function () {
370
+ return [
371
+ {
372
+ field: 'label',
373
+ header: this.translate.instant('tmsx_com.tmsx_angular_components.registro'),
374
+ style: { width: '50%' },
375
+ attributes: [],
376
+ type: angularComponents.EnumColumnFieldType.STRING
377
+ },
378
+ {
379
+ field: 'status',
380
+ header: this.translate.instant('tmsx_com.tmsx_angular_components.status'),
381
+ style: { width: '50%' },
382
+ attributes: [],
383
+ type: angularComponents.EnumColumnFieldType.STRING
384
+ },
385
+ ];
386
+ };
387
+ PainelProcessamentoComponent.ctorParameters = function () { return [
388
+ { type: core.TranslateService }
389
+ ]; };
390
+ PainelProcessamentoComponent.ɵprov = core$1["ɵɵdefineInjectable"]({ factory: function PainelProcessamentoComponent_Factory() { return new PainelProcessamentoComponent(core$1["ɵɵinject"](core.TranslateService)); }, token: PainelProcessamentoComponent, providedIn: "root" });
391
+ __decorate([
392
+ core$1.Input()
393
+ ], PainelProcessamentoComponent.prototype, "params", void 0);
394
+ __decorate([
395
+ core$1.Output()
396
+ ], PainelProcessamentoComponent.prototype, "processado", void 0);
397
+ __decorate([
398
+ core$1.Output()
399
+ ], PainelProcessamentoComponent.prototype, "concluido", void 0);
400
+ PainelProcessamentoComponent = __decorate([
401
+ core$1.Injectable({
402
+ providedIn: 'root'
403
+ }),
404
+ core$1.Component({
405
+ selector: 'tmsx-painel-processamento',
406
+ template: "<p-panel>\n <p-header>{{ this.params.titulo }} ({{processingProgress }})</p-header>\n\n <div class=\"progressbar\">\n <div class=\"success\"\n [ngClass]=\"successProgress == '0%' ? '' : 'visible'\"\n [ngStyle]=\"{'width': successProgress }\"\n [sTooltip]=\"successProgress\"\n [escape]=\"false\"\n mobileBehavior=\"tap\"></div>\n <div class=\"failed\"\n [ngClass]=\"failedProgress == '0%' ? '' : 'visible'\"\n [ngStyle]=\"{'width': failedProgress }\"\n [sTooltip]=\"failedProgress\"\n [escape]=\"false\"\n mobileBehavior=\"tap\"></div>\n <div class=\"pending\"\n [ngClass]=\"pendingProgress == '0%' ? '' : 'visible'\"\n [ngStyle]=\"{'width': pendingProgress }\"\n [sTooltip]=\"pendingProgress\"\n [escape]=\"false\"\n mobileBehavior=\"tap\"></div>\n </div>\n\n <p-table\n #myTable\n [value]=\"gridData\"\n [columns]=\"gridColumns\"\n dataKey=\"id\"\n [resizableColumns]=\"true\"\n sortMode=\"multiple\"\n [scrollable]=\"true\"\n [paginator]=\"true\"\n [rows]=\"10\"\n showInitialSortBadge=\"true\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\"\n [sortField]=\"sortField\"\n [sortOrder]=\"sortOrder\">\n\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [ngStyle]=\"col.style\">\n </colgroup>\n </ng-template>\n\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th scope=\"col\"\n *ngFor=\"let col of columns\"\n [pSortableColumn]=\"col.field\"\n [pSortableColumnDisabled]=\"col.disableColumnSort\"\n [ngStyle]=\"col.style\"\n pResizableColumn>\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{col.header}}</span>\n <p-sortIcon *ngIf=\"!col.disableColumnSort\" [field]=\"col.field\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\">\n <tr>\n <td *ngFor=\"let col of columns\" [ngClass]=\"getClassStatus(rowData, col.field)\">\n {{ getData(rowData, col.field) }}\n </td>\n </tr>\n\n </ng-template>\n\n <ng-template pTemplate=\"paginatorright\">\n <s-table-paging\n [table]=\"myTable\"\n [totalRecords]=\"gridData.length\"\n [exportable]=\"false\"\n >\n </s-table-paging>\n </ng-template>\n </p-table>\n</p-panel>\n",
407
+ styles: [".progressbar{margin-bottom:30px;border-radius:20px;height:40px}.progressbar .visible:nth-child(1of.visible){border-top-left-radius:20px;border-bottom-left-radius:20px}.progressbar .visible:nth-last-child(1of.visible){border-top-right-radius:20px;border-bottom-right-radius:20px}.progressbar .failed,.progressbar .pending,.progressbar .success{display:inline-block;height:100%;width:0%}.progressbar .success{background-color:#4caf50}.progressbar .failed{background-color:#f44336}.progressbar .pending{background-color:#ccc}.status.success{color:#007504}.status.pending{color:#333}.status.failed{color:#8d0900}.status.processing{color:#b96f00}"]
408
+ })
409
+ ], PainelProcessamentoComponent);
410
+ return PainelProcessamentoComponent;
411
+ }());
412
+
413
+ var PainelProcessamentoModule = /** @class */ (function () {
414
+ function PainelProcessamentoModule() {
415
+ }
416
+ PainelProcessamentoModule = __decorate([
417
+ core$1.NgModule({
418
+ imports: [
419
+ angularComponents.LocaleModule.forChild(),
420
+ core.TranslateModule.forChild(),
421
+ angularComponents.TooltipModule,
422
+ table.TableModule,
423
+ angularComponents.TableModule,
424
+ angularComponents.ButtonModule,
425
+ common.CommonModule,
426
+ panel.PanelModule,
427
+ ],
428
+ declarations: [
429
+ PainelProcessamentoComponent
430
+ ],
431
+ providers: [],
432
+ exports: [
433
+ PainelProcessamentoComponent
434
+ ],
435
+ })
436
+ ], PainelProcessamentoModule);
437
+ return PainelProcessamentoModule;
438
+ }());
439
+
440
+ var UtilsService = /** @class */ (function () {
441
+ function UtilsService(translate, dataPipe) {
442
+ this.translate = translate;
443
+ this.dataPipe = dataPipe;
444
+ }
445
+ UtilsService.prototype.getAuditCreatedBy = function (createdBy, createdDate) {
446
+ if (!createdBy || !createdDate) {
447
+ return '';
448
+ }
449
+ var date = '';
450
+ this.dataPipe.transform(createdDate).subscribe(function (item) { return date = item.split(' '); });
451
+ return this.translate.instant('tmsx_com.tmsx_angular_components.audit_created_by', { nome: createdBy, data: date[0], hora: date[1] });
452
+ };
453
+ UtilsService.prototype.getAuditModifiedBy = function (modifiedBy, modifiedDate) {
454
+ if (!modifiedBy || !modifiedDate) {
455
+ return '';
456
+ }
457
+ var date = '';
458
+ this.dataPipe.transform(modifiedDate).subscribe(function (item) { return date = item.split(' '); });
459
+ return this.translate.instant('tmsx_com.tmsx_angular_components.audit_modified_by', { nome: modifiedBy, data: date[0], hora: date[1] });
460
+ };
461
+ UtilsService.prototype.getAuditInactivatedBy = function (inactivatedBy, inactivatedDate) {
462
+ if (!inactivatedBy || !inactivatedDate) {
463
+ return '';
464
+ }
465
+ var date = '';
466
+ this.dataPipe.transform(inactivatedDate).subscribe(function (item) { return date = item.split(' '); });
467
+ return this.translate.instant('tmsx_com.tmsx_angular_components.audit_inactivated_by', { nome: inactivatedBy, data: date[0], hora: date[1] });
468
+ };
469
+ /* usage: [innerHTML]="getProp(rowData, 'nome')" */
470
+ UtilsService.prototype.getProp = function (obj, path, type) {
471
+ var value = path.split('.').reduce(function (result, prop) { return (result[prop] === undefined ? '' : result[prop]); }, obj);
472
+ if (value || value === 0) {
473
+ if (type) {
474
+ value = this.formatType(value, type);
475
+ }
476
+ return "<span>" + value + "</span>";
477
+ }
478
+ return "<span class=\"empty-grid\">" + this.translate.instant('tmsx_com.tmsx_angular_components.list_grid_empty_field') + "</span>";
479
+ };
480
+ UtilsService.prototype.formatType = function (value, type) {
481
+ if (value) {
482
+ if (type === 'date') {
483
+ var date_1 = '';
484
+ this.dataPipe.transform(value).subscribe(function (item) { return date_1 = item.split(' '); });
485
+ return date_1[0];
486
+ }
487
+ if (type === 'datetime') {
488
+ var date_2 = '';
489
+ this.dataPipe.transform(value).subscribe(function (item) { return date_2 = item; });
490
+ return date_2;
491
+ }
492
+ if (type === 'decimal') {
493
+ if (typeof value === 'string') {
494
+ value = Number(value);
495
+ }
496
+ return value.toLocaleString('pt-BR', { minimumFractionDigits: 2, maximumFractionDigits: 2 });
497
+ }
498
+ if (type === 'currency') {
499
+ return value.toLocaleString('pt-BR', { style: 'currency', currency: 'BRL' });
500
+ }
501
+ if (type === 'cep') {
502
+ return value.replace(/^(\d{2})(\d{3})(\d{3})/, '$1.$2-$3');
503
+ }
504
+ }
505
+ return value;
506
+ };
507
+ /* usage: [ngClass]="emptyGridClass(value)" */
508
+ UtilsService.prototype.emptyGridClass = function (value) {
509
+ if (!value || value === this.translate.instant('tmsx_fnd.replicacao.list_grid_empty_field')) {
510
+ return 'empty-grid';
511
+ }
512
+ return '';
513
+ };
514
+ UtilsService.prototype.infoContent = function (entity) {
515
+ var text = '';
516
+ if (!entity) {
517
+ return this.translate.instant("tmsx_com.tmsx_angular_components.condicao_valor_lookup_condicional_no_audit");
518
+ }
519
+ text += this.getAuditCreatedBy(entity.createdBy, entity.createdDate);
520
+ if (text) {
521
+ text += '\n';
522
+ }
523
+ text += this.getAuditModifiedBy(entity.lastModifiedBy, entity.lastModifiedDate);
524
+ return text;
525
+ };
526
+ UtilsService.prototype.formatCurrency = function (value) {
527
+ return value.toLocaleString('pt-BR', { style: 'currency', currency: 'BRL' });
528
+ };
529
+ UtilsService.prototype.getAtivoTokenLabel = function (formField, value, translate) {
530
+ var _a = formField, name = _a.name, type = _a.type, label = _a.label;
531
+ if (type === angularComponents.FieldType.Radio) {
532
+ var labelValue = value
533
+ ? translate.instant('tmsx_com.tmsx_angular_components.situacao_ativo_true')
534
+ : translate.instant('tmsx_com.tmsx_angular_components.situacao_ativo_false');
535
+ return { id: name, label: label + ": " + labelValue };
536
+ }
537
+ return this.createFilterTokens(formField, value, translate);
538
+ };
539
+ UtilsService.prototype.getUtilsProp = function (obj, path) {
540
+ return path.split('.').reduce(function (result, prop) { return (result[prop] === undefined ? '' : result[prop]); }, obj);
541
+ };
542
+ UtilsService.prototype.createFilterTokens = function (formField, value, translate) {
543
+ var _a = formField, name = _a.name, type = _a.type, label = _a.label, searchFields = _a.searchFields, options = _a.options;
544
+ var labelValue = this.getLabelValueByType(type, value, searchFields, options, translate);
545
+ return { id: name, label: label + ": " + labelValue };
546
+ };
547
+ UtilsService.prototype.getLabelValueByType = function (type, value, searchFields, options, translate) {
548
+ switch (type) {
549
+ case angularComponents.FieldType.Date:
550
+ return this.getDateLabel(value);
551
+ case angularComponents.FieldType.Time:
552
+ return this.getTimeFromDate(value);
553
+ case angularComponents.FieldType.LocalDateTime:
554
+ case angularComponents.FieldType.DateTime:
555
+ return this.getDateTimeFromDate(value);
556
+ case angularComponents.FieldType.Lookup:
557
+ return this.getLookupLabel(value, searchFields);
558
+ case angularComponents.FieldType.Enum:
559
+ return this.getEnumLabel(value, options);
560
+ case angularComponents.FieldType.Boolean:
561
+ return this.getBooleanLabel(value, translate);
562
+ default:
563
+ return value;
564
+ }
565
+ };
566
+ UtilsService.prototype.getDateLabel = function (value) {
567
+ var dateObj = value instanceof Date ? value : new Date(value);
568
+ return !isNaN(dateObj.getTime()) ? dateObj.toLocaleDateString('pt-BR') : value;
569
+ };
570
+ UtilsService.prototype.getLookupLabel = function (value, searchFields) {
571
+ var _this = this;
572
+ return searchFields.map(function (field) { return _this.getUtilsProp(value, field.name); }).join(' - ');
573
+ };
574
+ UtilsService.prototype.getEnumLabel = function (value, options) {
575
+ var option = options.find(function (opt) { return opt.value === value; });
576
+ return option ? option.label : value;
577
+ };
578
+ UtilsService.prototype.getBooleanLabel = function (value, translate) {
579
+ return value
580
+ ? translate.instant('tmsx_com.tmsx_angular_components.list_grid_boolean_true')
581
+ : translate.instant('tmsx_com.tmsx_angular_components.list_grid_boolean_false');
582
+ };
583
+ UtilsService.prototype.getTimeFromDate = function (value) {
584
+ var dateObj;
585
+ if (typeof value === 'string' && /^\d{2}:\d{2}(:\d{2})?$/.test(value)) {
586
+ var _a = __read(value.split(':'), 3), h = _a[0], m = _a[1], _b = _a[2], s = _b === void 0 ? '00' : _b;
587
+ dateObj = new Date();
588
+ dateObj.setHours(+h, +m, +s, 0);
589
+ }
590
+ else {
591
+ dateObj = value instanceof Date ? value : new Date(value);
592
+ }
593
+ if (!isNaN(dateObj.getTime())) {
594
+ return dateObj.toLocaleTimeString('pt-BR', {
595
+ hour: '2-digit',
596
+ minute: '2-digit',
597
+ second: '2-digit',
598
+ hour12: false
599
+ }); // HH:mm:ss
600
+ }
601
+ return value;
602
+ };
603
+ UtilsService.prototype.getDateTimeFromDate = function (value) {
604
+ var dateObj = value instanceof Date ? value : new Date(value);
605
+ if (!isNaN(dateObj.getTime())) {
606
+ var datePart = dateObj.toLocaleDateString('pt-BR'); // DD/MM/AAAA
607
+ var timePart = dateObj.toLocaleTimeString('pt-BR', {
608
+ hour: '2-digit',
609
+ minute: '2-digit',
610
+ second: '2-digit',
611
+ hour12: false
612
+ }); // HH:mm:ss
613
+ return datePart + " " + timePart;
614
+ }
615
+ return value;
616
+ };
617
+ UtilsService.ctorParameters = function () { return [
618
+ { type: core.TranslateService },
619
+ { type: angularComponents.LocalizedDatePipe }
620
+ ]; };
621
+ UtilsService.ɵprov = core$1["ɵɵdefineInjectable"]({ factory: function UtilsService_Factory() { return new UtilsService(core$1["ɵɵinject"](core.TranslateService), core$1["ɵɵinject"](angularComponents.LocalizedDatePipe)); }, token: UtilsService, providedIn: "root" });
622
+ UtilsService = __decorate([
623
+ core$1.Injectable({
624
+ providedIn: 'root'
625
+ })
626
+ ], UtilsService);
627
+ return UtilsService;
628
+ }());
629
+
630
+ var GridEditableNestedComponent = /** @class */ (function () {
631
+ function GridEditableNestedComponent(changeDetectorRef, translate, utils, hotkeysService) {
632
+ this.changeDetectorRef = changeDetectorRef;
633
+ this.translate = translate;
634
+ this.utils = utils;
635
+ this.hotkeysService = hotkeysService;
636
+ this.openDetails = new core$1.EventEmitter();
637
+ this.paging = new core$1.EventEmitter();
638
+ this.delete = new core$1.EventEmitter();
639
+ this.save = new core$1.EventEmitter();
640
+ this.add = new core$1.EventEmitter();
641
+ this.clonedData = {};
642
+ this.gridLoading = true;
643
+ this.editing = false;
644
+ this.lazy = true;
645
+ this.deleteEnabled = false;
646
+ this.editEnabled = false;
647
+ this.addEnabled = false;
648
+ this.detailsEnabled = false;
649
+ this.calendarTooltipText = '';
650
+ this.currentListParams = { page: 0, size: 5, sort: [] };
651
+ this.gridData = [];
652
+ this.gridColumns = [];
653
+ this.gridTotalRecords = 0;
654
+ this.selected = [];
655
+ this.nestedGridLoading = false;
656
+ this.frozenPosition = 'left';
657
+ this.frozenWidth = '200px';
658
+ this.frozenColumns = [];
659
+ this.ngUnsubscribe = new rxjs.Subject();
660
+ this.calendarTooltipText = this.translate.instant('tmsx_com.tmsx_angular_components.grid_editable_nested_calendar_required');
661
+ }
662
+ GridEditableNestedComponent.prototype.ngOnInit = function () {
663
+ this.setGridData();
664
+ this.setHotkeys();
665
+ };
666
+ GridEditableNestedComponent.prototype.ngOnChanges = function (changes) {
667
+ if (changes.config) {
668
+ this.setGridData();
669
+ }
670
+ };
671
+ GridEditableNestedComponent.prototype.formatData = function (column, value) {
672
+ return value;
673
+ };
674
+ GridEditableNestedComponent.prototype.setGridData = function () {
675
+ if (!this.config) {
676
+ return;
677
+ }
678
+ var _a = this.config, data = _a.data, size = _a.size, columns = _a.columns, frozenPosition = _a.frozenPosition, frozenColumns = _a.frozenColumns, editing = _a.editing, lazy = _a.lazy, deleteActionsEnabled = _a.deleteActionsEnabled, editEnabled = _a.editEnabled, addEnabled = _a.addEnabled, editActionsEnabled = _a.editActionsEnabled;
679
+ this.gridData = data !== null && data !== void 0 ? data : [];
680
+ this.gridTotalRecords = size !== null && size !== void 0 ? size : 0;
681
+ this.gridColumns = columns !== null && columns !== void 0 ? columns : [];
682
+ this.frozenPosition = frozenPosition !== null && frozenPosition !== void 0 ? frozenPosition : 'left';
683
+ this.frozenColumns = frozenColumns !== null && frozenColumns !== void 0 ? frozenColumns : [];
684
+ this.frozenWidth = this.calculateFrozenWidth(this.frozenColumns);
685
+ this.editing = !!editing;
686
+ this.lazy = !!lazy;
687
+ this.deleteEnabled = !!deleteActionsEnabled;
688
+ this.editEnabled = !!editEnabled;
689
+ this.addEnabled = !!addEnabled;
690
+ this.detailsEnabled = !!editActionsEnabled;
691
+ this.changeDetectorRef.detectChanges();
692
+ this.nestedGridLoading = false;
693
+ this.gridLoading = false;
694
+ };
695
+ GridEditableNestedComponent.prototype.calculateFrozenWidth = function (frozenColumns) {
696
+ var gutter = 120;
697
+ if (!(frozenColumns === null || frozenColumns === void 0 ? void 0 : frozenColumns.length)) {
698
+ return '120px';
699
+ }
700
+ var totalWidth = frozenColumns.reduce(function (sum, col) { return sum + gutter + (parseInt(col.width, 10) || 0); }, 0);
701
+ return totalWidth + "px";
702
+ };
703
+ GridEditableNestedComponent.prototype.getActions = function (data) {
704
+ var _this = this;
705
+ return [
706
+ {
707
+ id: 'edit',
708
+ label: this.translate.instant('tmsx_com.tmsx_angular_components.edit'),
709
+ disabled: !this.detailsEnabled,
710
+ command: function () {
711
+ _this.openRowDetails(data.id);
712
+ },
713
+ },
714
+ { separator: true },
715
+ {
716
+ id: 'delete',
717
+ label: this.translate.instant('tmsx_com.tmsx_angular_components.delete'),
718
+ disabled: !this.deleteEnabled,
719
+ command: function () {
720
+ _this.onDelete(data.id);
721
+ },
722
+ },
723
+ ];
724
+ };
725
+ GridEditableNestedComponent.prototype.updateGridData = function (event) {
726
+ var size = event.rows ? event.rows : 10;
727
+ var page = event.first ? event.first / size : 0;
728
+ this.gridLoading = true;
729
+ if (this.clonedData && Object.keys(this.clonedData).length) {
730
+ this.clonedData = {};
731
+ this.table.editingRowKeys = {};
732
+ }
733
+ this.paging.emit({ page: page, size: size });
734
+ };
735
+ GridEditableNestedComponent.prototype.updateNestedGridData = function (event, rowData) {
736
+ return __awaiter(this, void 0, void 0, function () {
737
+ var size, page, sort;
738
+ return __generator(this, function (_a) {
739
+ switch (_a.label) {
740
+ case 0:
741
+ size = event.rows ? event.rows : 10;
742
+ page = event.first ? event.first / size : 0;
743
+ sort = event.multiSortMeta || [];
744
+ rowData.nestedGridLoading = true;
745
+ return [4 /*yield*/, this.nestedFunction({ page: page, size: size, sort: sort }, rowData)];
746
+ case 1:
747
+ _a.sent();
748
+ return [2 /*return*/];
749
+ }
750
+ });
751
+ });
752
+ };
753
+ GridEditableNestedComponent.prototype.onTab = function (event) {
754
+ if (event.key !== 'Tab') {
755
+ return;
756
+ }
757
+ event.preventDefault();
758
+ var focusables = Array.from(document.querySelectorAll('p-cellEditor input, p-cellEditor textarea, p-cellEditor [tabindex="0"]')).filter(function (el) { return el.offsetParent !== null; });
759
+ var currentIndex = focusables.indexOf(event.target);
760
+ var next;
761
+ if (event.shiftKey) {
762
+ next = focusables[currentIndex - 1] || focusables[focusables.length - 1];
763
+ }
764
+ else {
765
+ next = focusables[currentIndex + 1] || focusables[0];
766
+ }
767
+ if (next) {
768
+ next.focus();
769
+ }
770
+ };
771
+ GridEditableNestedComponent.prototype.getRowIndex = function () {
772
+ var page = this.currentListParams.page || 0;
773
+ var size = this.currentListParams.size || 0;
774
+ return page * size;
775
+ };
776
+ GridEditableNestedComponent.prototype.getPageSize = function () {
777
+ var _a;
778
+ return (_a = this.currentListParams.size) !== null && _a !== void 0 ? _a : 0;
779
+ };
780
+ GridEditableNestedComponent.prototype.openRowDetails = function (id) {
781
+ this.openDetails.emit(id);
782
+ };
783
+ GridEditableNestedComponent.prototype.onDelete = function (id) {
784
+ this.delete.emit(id);
785
+ };
786
+ GridEditableNestedComponent.prototype.onAdd = function () {
787
+ this.add.emit();
788
+ };
789
+ GridEditableNestedComponent.prototype.ngOnDestroy = function () {
790
+ this.ngUnsubscribe.next();
791
+ this.ngUnsubscribe.complete();
792
+ };
793
+ GridEditableNestedComponent.prototype.onEditSave = function () {
794
+ this.saveAllRows();
795
+ };
796
+ GridEditableNestedComponent.prototype.onEditCancel = function () {
797
+ var _this = this;
798
+ this.gridData.forEach(function (data) {
799
+ if (_this.clonedData[data.id]) {
800
+ var index = _this.gridData.findIndex(function (row) { return row.id === data.id; });
801
+ _this.gridData[index] = _this.clonedData[data.id];
802
+ delete _this.clonedData[data.id];
803
+ }
804
+ _this.table.cancelRowEdit(data);
805
+ });
806
+ this.editing = false;
807
+ };
808
+ GridEditableNestedComponent.prototype.initAllRowsEdit = function () {
809
+ var _this = this;
810
+ this.gridData.forEach(function (data) {
811
+ _this.editing = true;
812
+ _this.table.initRowEdit(data);
813
+ _this.clonedData[data.id] = __assign({}, data);
814
+ });
815
+ };
816
+ GridEditableNestedComponent.prototype.saveAllRows = function () {
817
+ var _this = this;
818
+ this.gridData.forEach(function (data) {
819
+ if (_this.clonedData[data.id]) {
820
+ delete _this.clonedData[data.id];
821
+ }
822
+ _this.table.cancelRowEdit(data);
823
+ });
824
+ this.editing = false;
825
+ this.save.emit(this.gridData);
826
+ };
827
+ GridEditableNestedComponent.prototype.formatRowData = function (field) {
828
+ return field;
829
+ };
830
+ GridEditableNestedComponent.prototype.filterOptions = function (event) {
831
+ return event;
832
+ };
833
+ GridEditableNestedComponent.prototype.getSpanProp = function (obj, path, type) {
834
+ type = type === null || type === void 0 ? void 0 : type.toLowerCase();
835
+ var value = this.utils.getProp(obj, path, type);
836
+ if (value === '<span>0</span>' && type === 'decimal') {
837
+ return '<span>0,00</span>';
838
+ }
839
+ if (!obj.tiposDados) {
840
+ return value;
841
+ }
842
+ if ('MONETARIO' === obj.tiposDados[path]) {
843
+ return 'R$ ' + value;
844
+ }
845
+ if ('PERCENTUAL' === obj.tiposDados[path]) {
846
+ return value + ' %';
847
+ }
848
+ return value;
849
+ };
850
+ GridEditableNestedComponent.prototype.setHotkeys = function () {
851
+ var _this = this;
852
+ this.hotkeysService.add(new angular2Hotkeys.Hotkey('alt+shift+n', function () {
853
+ _this.onAdd();
854
+ return false;
855
+ }, ['INPUT', 'SELECT', 'TEXTAREA']));
856
+ };
857
+ GridEditableNestedComponent.ctorParameters = function () { return [
858
+ { type: core$1.ChangeDetectorRef },
859
+ { type: core.TranslateService },
860
+ { type: UtilsService },
861
+ { type: angular2Hotkeys.HotkeysService }
862
+ ]; };
863
+ GridEditableNestedComponent.ɵprov = core$1["ɵɵdefineInjectable"]({ factory: function GridEditableNestedComponent_Factory() { return new GridEditableNestedComponent(core$1["ɵɵinject"](core$1.ChangeDetectorRef), core$1["ɵɵinject"](core.TranslateService), core$1["ɵɵinject"](UtilsService), core$1["ɵɵinject"](angular2Hotkeys.HotkeysService)); }, token: GridEditableNestedComponent, providedIn: "root" });
864
+ __decorate([
865
+ core$1.Input()
866
+ ], GridEditableNestedComponent.prototype, "config", void 0);
867
+ __decorate([
868
+ core$1.Input()
869
+ ], GridEditableNestedComponent.prototype, "nestedFunction", void 0);
870
+ __decorate([
871
+ core$1.Output()
872
+ ], GridEditableNestedComponent.prototype, "openDetails", void 0);
873
+ __decorate([
874
+ core$1.Output()
875
+ ], GridEditableNestedComponent.prototype, "paging", void 0);
876
+ __decorate([
877
+ core$1.Output()
878
+ ], GridEditableNestedComponent.prototype, "delete", void 0);
879
+ __decorate([
880
+ core$1.Output()
881
+ ], GridEditableNestedComponent.prototype, "save", void 0);
882
+ __decorate([
883
+ core$1.Output()
884
+ ], GridEditableNestedComponent.prototype, "add", void 0);
885
+ __decorate([
886
+ core$1.ViewChild("table", { static: false })
887
+ ], GridEditableNestedComponent.prototype, "table", void 0);
888
+ GridEditableNestedComponent = __decorate([
889
+ core$1.Injectable({
890
+ providedIn: 'root'
891
+ }),
892
+ core$1.Component({
893
+ selector: 'tmsx-grid-editable-nested',
894
+ template: "<div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <s-button id=\"add-button\"\n data-cy=\"add-button\"\n priority=\"primary\" type=\"button\"\n [label]=\"'tmsx_com.tmsx_angular_components.add' | translate\"\n tooltip=\"{{'tmsx_com.tmsx_angular_components.add' | translate}} (Alt + Shift + N)\"\n [disabled]=\"!addEnabled\"\n (click)=\"onAdd()\">\n </s-button>\n <s-button\n *ngIf=\"!editing\"\n priority=\"primary\"\n iconClass=\"fa fa-edit\"\n label=\"{{'tmsx_com.tmsx_angular_components.grid_editable_nested_editar' | translate}}\"\n tooltip=\"{{'tmsx_com.tmsx_angular_components.grid_editable_nested_editar' | translate}}\"\n [disabled]=\"!editEnabled\"\n sTieredMenu\n (click)=\"initAllRowsEdit()\"\n ></s-button>\n <s-button\n *ngIf=\"editing\"\n priority=\"primary\"\n label=\"{{'tmsx_com.tmsx_angular_components.grid_editable_nested_salvar' | translate}}\"\n iconClass=\"fa fa-check\"\n [disabled]=\"false\"\n (click)=\"onEditSave()\"\n ></s-button>\n <s-button\n *ngIf=\"editing\"\n priority=\"default\"\n label=\"{{'tmsx_com.tmsx_angular_components.grid_editable_nested_cancelar' | translate}}\"\n iconClass=\"fa fa-times\"\n [disabled]=\"false\"\n (click)=\"onEditCancel()\"\n ></s-button>\n <p-table\n selectionMode=\"single\"\n [(selection)]=\"selected\"\n [value]=\"gridData\"\n [columns]=\"gridColumns\"\n dataKey=\"id\"\n rows=\"10\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\"\n [paginator]=\"true\"\n [totalRecords]=\"gridTotalRecords\"\n [lazy]=\"lazy\"\n (onLazyLoad)=\"updateGridData($event)\"\n *sLoadingState=\"gridLoading\"\n sortMode=\"multiple\"\n [frozenWidth]=\"frozenWidth\"\n [scrollable]=\"true\"\n [sTableFrozenPosition]=\"frozenPosition\"\n [sTableFrozenValue]=\"gridData\"\n editMode=\"row\"\n #table\n >\n <ng-template pTemplate=\"frozencolgroup\" let-columns>\n <colgroup>\n <col class=\"col50\" />\n <col *ngFor=\"let col of frozenColumns\" class=\"col200\" />\n <col class=\"frozenButton\" />\n </colgroup>\n </ng-template>\n\n <ng-template pTemplate=\"frozenheader\">\n <tr>\n <th pResizableColumn scope=\"col\"></th>\n <th pResizableColumn *ngFor=\"let col of frozenColumns\" scope=\"col\">{{ col.header }}</th>\n <th pResizableColumn scope=\"col\"></th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"frozenbody\" let-rowData let-expanded=\"expanded\">\n <tr [pSelectableRow]=\"rowData\">\n <td class=\"col50\" tabindex=\"0\" [sRowToggler]=\"rowData\">\n <i class=\"fa fa-{{ expanded ? 'minus' : 'plus' }} \"></i>\n </td>\n <td *ngFor=\"let col of frozenColumns\" class=\"colText\"\n tooltipPosition=\"top\" showDelay=\"500\"\n [innerHTML]=\"getSpanProp(rowData, col.field)\">\n </td>\n <td class=\"frozenButton\">\n <s-button\n id=\"edit-button\"\n data-cy=\"edit-button\"\n priority=\"default\"\n type=\"button\"\n size=\"small\"\n [auxiliary]=\"true\"\n [disabled]=\"false\"\n [model]=\"getActions(rowData)\">\n </s-button>\n </td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\" />\n </colgroup>\n </ng-template>\n\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngFor=\"let col of columns\" scope=\"col\">\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\n </div>\n </th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-rowData let-expanded=\"expanded\" let-columns=\"columns\">\n <tr sNavigation tabindex=\"0\" [pEditableRow]=\"rowData\">\n <td\n *ngFor=\"let col of columns\"\n [ngClass]=\"editing? 'editPadding': ''\"\n pResizableColumn\n [pTooltip]=\"rowData[col.field]\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n tabindex=\"0\"\n class=\"col80 colText\"\n >\n <p-cellEditor>\n <ng-template pTemplate=\"input\">\n <div class=\"ui-fluid\">\n <ng-container [ngSwitch]=\"col.type\">\n <ng-container *ngSwitchCase=\"'Text'\">\n <span>{{ rowData[col.field] }}</span>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Date'\">\n <p-calendar\n [(ngModel)]=\"rowData[col.field]\"\n appendTo=\"body\"\n [showIcon]=\"true\"\n [required]=\"true\"\n pTooltip=\"{{ calendarTooltipText }}\"\n tooltipPosition=\"bottom\"\n [tooltipDisabled]=\"rowData[col.field]\"\n ></p-calendar>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Autocomplete'\">\n <p-autoComplete\n [(ngModel)]=\"rowData[col.field]\"\n [suggestions]=\"col.options\"\n appendTo=\"body\"\n (completeMethod)=\"filterOptions($event)\"\n [dropdown]=\"true\"\n [forceSelection]=\"true\"\n ></p-autoComplete>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Decimal'\">\n <div class=\"ui-inputgroup\">\n <span class=\"ui-inputgroup-addon\"\n *ngIf=\"'MONETARIO' === rowData.tiposDados[col.field]\"\n >R$</span>\n <input sNumberInput [scale]=\"2\"\n alignTo=\"right\"\n thousandsSeparator=\".\"\n pInputText\n [(ngModel)]=\"rowData[col.field]\"\n (keydown)=\"onTab($event)\"\n />\n <span class=\"ui-inputgroup-addon\"\n *ngIf=\"'PERCENTUAL' === rowData.tiposDados[col.field]\"\n >%</span>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <input pInputText type=\"text\"\n [(ngModel)]=\"rowData[col.field]\"\n (keydown)=\"onTab($event)\"\n />\n </ng-container>\n </ng-container>\n </div>\n </ng-template>\n\n <ng-template pTemplate=\"output\">\n <div [innerHTML]=\"getSpanProp(rowData, col.field, col.type)\"></div>\n </ng-template>\n </p-cellEditor>\n </td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"rowexpansion\" let-rowData>\n <tr class=\"sds-expanded-row\">\n <td [attr.colspan]=\"gridColumns.length + 1\">\n <p-table\n [value]=\"rowData.nestedGridData\"\n [columns]=\"rowData.nestedGridColumns\"\n dataKey=\"id\"\n rows=\"5\"\n [first]=\"getRowIndex()\"\n [rows]=\"getPageSize()\"\n [rowsPerPageOptions]=\"[5, 10, 20, 50]\"\n [paginator]=\"true\"\n [totalRecords]=\"rowData.nestedGridTotalRecords\"\n [responsive]=\"true\"\n [lazy]=\"true\"\n (onLazyLoad)=\"updateNestedGridData($event, rowData)\"\n sortMode=\"multiple\"\n *sLoadingState=\"rowData.nestedGridLoading\"\n >\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngFor=\"let col of columns\" scope=\"col\"\n [pSortableColumn]=\"col.field\">\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\">\n <tr [pSelectableRow]=\"rowData\">\n <td *ngFor=\"let col of columns\" class=\"colText\">\n {{ formatData(col, rowData[col.field]) }}\n </td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"paginatorright\">\n <span>\n {{ rowData.nestedGridTotalRecords }}\n {{'tmsx_com.tmsx_angular_components.grid_editable_nested_paging' | translate}}\n </span>\n </ng-template>\n </p-table>\n </td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"paginatorright\">\n <span>\n {{ gridTotalRecords }}\n {{'tmsx_com.tmsx_angular_components.grid_editable_nested_paging' | translate}}\n </span>\n </ng-template>\n </p-table>\n </div>\n</div>\n",
895
+ styles: [":host ::ng-deep div.contents{margin-top:15px}input{max-width:100%}.col50{width:50px}.col80{width:80px}.col200{width:200px}.colText{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.frozenButton{width:70px;padding:5px}.editPadding{padding-top:8px;padding-bottom:9px}"]
896
+ })
897
+ ], GridEditableNestedComponent);
898
+ return GridEditableNestedComponent;
899
+ }());
900
+
901
+ var GridEditableNestedModule = /** @class */ (function () {
902
+ function GridEditableNestedModule() {
903
+ }
904
+ GridEditableNestedModule = __decorate([
905
+ core$1.NgModule({
906
+ imports: [
907
+ common.CommonModule,
908
+ angularComponents.LocaleModule.forChild(),
909
+ core.TranslateModule.forChild(),
910
+ angularComponents.ButtonModule,
911
+ angularComponents.TableModule,
912
+ angularComponents.TooltipModule,
913
+ angularComponents.LoadingStateModule,
914
+ angularComponents.NumberInputModule,
915
+ angularComponents.BreadcrumbModule,
916
+ angularComponents.ControlErrorsModule,
917
+ angularComponents.CustomFieldsModule,
918
+ angularComponents.DynamicFormModule,
919
+ angularComponents.EmptyStateModule,
920
+ angularComponents.TokenListModule,
921
+ angularComponents.TieredMenuModule,
922
+ // PrimeNG modules
923
+ toast.ToastModule,
924
+ table.TableModule,
925
+ tooltip.TooltipModule,
926
+ tabmenu.TabMenuModule,
927
+ tabview.TabViewModule,
928
+ panel.PanelModule,
929
+ inputtext.InputTextModule,
930
+ confirmdialog.ConfirmDialogModule,
931
+ calendar.CalendarModule,
932
+ dropdown.DropdownModule,
933
+ api.SharedModule,
934
+ autocomplete.AutoCompleteModule,
935
+ checkbox.CheckboxModule,
936
+ // Angular modules
937
+ forms.FormsModule,
938
+ forms.ReactiveFormsModule
939
+ ],
940
+ declarations: [
941
+ GridEditableNestedComponent,
942
+ ],
943
+ providers: [],
944
+ exports: [
945
+ GridEditableNestedComponent,
946
+ ],
947
+ })
948
+ ], GridEditableNestedModule);
949
+ return GridEditableNestedModule;
950
+ }());
951
+
952
+ var HostProjectConfigsInjectionToken = new core$1.InjectionToken("hostProjectConfigs");
953
+ var TmsxAngularComponentsModule = /** @class */ (function () {
954
+ function TmsxAngularComponentsModule() {
955
+ }
956
+ TmsxAngularComponentsModule_1 = TmsxAngularComponentsModule;
957
+ TmsxAngularComponentsModule.forRoot = function (config) {
958
+ return {
959
+ ngModule: TmsxAngularComponentsModule_1,
960
+ providers: [
961
+ {
962
+ provide: HostProjectConfigsInjectionToken,
963
+ useValue: config
964
+ }
965
+ ]
966
+ };
967
+ };
968
+ var TmsxAngularComponentsModule_1;
969
+ TmsxAngularComponentsModule = TmsxAngularComponentsModule_1 = __decorate([
970
+ core$1.NgModule({})
971
+ ], TmsxAngularComponentsModule);
972
+ return TmsxAngularComponentsModule;
973
+ }());
974
+
975
+ var fallback = {
976
+ "platform.angular_components.attachment": "anexo",
977
+ "platform.angular_components.watch": "assistir",
978
+ "platform.angular_components.view": "visualizar",
979
+ "platform.angular_components.listen": "ouvir",
980
+ "platform.angular_components.drag_your_photo_or": "Arraste sua foto ou",
981
+ "platform.angular_components.select_a_file": "selecione um arquivo",
982
+ "platform.angular_components.change_photo": "Alterar foto",
983
+ "platform.angular_components.remove_image": "Remover imagem",
984
+ "platform.angular_components.confirmation_remove_image": "Deseja remover a imagem? Não pode ser revertida.",
985
+ "platform.angular_components.strong": "Forte",
986
+ "platform.angular_components.medium": "Média",
987
+ "platform.angular_components.weak": "Fraca",
988
+ "platform.angular_components.invalid_value": "Valor inválido",
989
+ "platform.angular_components.insight_intro": "Olá! Aqui você encontrará insights valiosos a partir dos seus dados",
990
+ "platform.angular_components.insight_empty": "Ainda não há Insights na página",
991
+ "platform.angular_components.error_loading_insight_alt": "Não foi possível carregar o insight no momento. Por favor, verifique sua conexão com a internet e tente novamente.",
992
+ "platform.angular_components.loading_insight": "Carregando insight valioso...",
993
+ "platform.angular_components.insight_no_permission": "Olá! Você não possui acesso à página de insights. Entre em contato com o administrador para saber mais",
994
+ "platform.angular_components.count_items_in_target": "{{ count }} itens em {{ target }}",
995
+ "platform.angular_components.count_items_selected": "{{ count }} itens selecionados",
996
+ "platform.angular_components.january": "Janeiro",
997
+ "platform.angular_components.february": "Fevereiro",
998
+ "platform.angular_components.march": "Março",
999
+ "platform.angular_components.april": "Abril",
1000
+ "platform.angular_components.may": "Maio",
1001
+ "platform.angular_components.june": "Junho",
1002
+ "platform.angular_components.july": "Julho",
1003
+ "platform.angular_components.august": "Agosto",
1004
+ "platform.angular_components.september": "Setembro",
1005
+ "platform.angular_components.october": "Outubro",
1006
+ "platform.angular_components.november": "Novembro",
1007
+ "platform.angular_components.december": "Dezembro",
1008
+ "platform.angular_components.january_short": "Jan",
1009
+ "platform.angular_components.february_short": "Fev",
1010
+ "platform.angular_components.march_short": "Mar",
1011
+ "platform.angular_components.april_short": "Abr",
1012
+ "platform.angular_components.may_short": "Mai",
1013
+ "platform.angular_components.june_short": "Jun",
1014
+ "platform.angular_components.july_short": "Jul",
1015
+ "platform.angular_components.august_short": "Ago",
1016
+ "platform.angular_components.september_short": "Set",
1017
+ "platform.angular_components.october_short": "Out",
1018
+ "platform.angular_components.november_short": "Nov",
1019
+ "platform.angular_components.december_short": "Dez",
1020
+ "platform.angular_components.sunday": "Domingo",
1021
+ "platform.angular_components.monday": "Segunda-feira",
1022
+ "platform.angular_components.tuesday": "Terça-feira",
1023
+ "platform.angular_components.wednesday": "Quarta-feira",
1024
+ "platform.angular_components.thursday": "Quinta-feira",
1025
+ "platform.angular_components.friday": "Sexta-feira",
1026
+ "platform.angular_components.saturday": "Sábado",
1027
+ "platform.angular_components.sunday_short": "Dom",
1028
+ "platform.angular_components.monday_short": "Seg",
1029
+ "platform.angular_components.tuesday_short": "Ter",
1030
+ "platform.angular_components.wednesday_short": "Qua",
1031
+ "platform.angular_components.thursday_short": "Qui",
1032
+ "platform.angular_components.friday_short": "Sex",
1033
+ "platform.angular_components.saturday_short": "Sáb",
1034
+ "platform.angular_components.sunday_min": "D",
1035
+ "platform.angular_components.monday_min": "S",
1036
+ "platform.angular_components.tuesday_min": "T",
1037
+ "platform.angular_components.wednesday_min": "Q",
1038
+ "platform.angular_components.thursday_min": "Q",
1039
+ "platform.angular_components.friday_min": "S",
1040
+ "platform.angular_components.saturday_min": "S",
1041
+ "platform.angular_components.today": "Hoje",
1042
+ "platform.angular_components.hour_format": "24",
1043
+ "platform.angular_components.date_format": "dd/mm/yy",
1044
+ "platform.angular_components.ia_text_generator": "Gerador de texto por IA",
1045
+ "platform.angular_components.attach_files": "Anexar arquivos",
1046
+ "platform.angular_components.add_information": "Adicionar informação",
1047
+ "platform.angular_components.add": "Adicionar",
1048
+ "platform.angular_components.edit": "Editar",
1049
+ "platform.angular_components.remove": "Remover",
1050
+ "platform.angular_components.save": "Salvar",
1051
+ "platform.angular_components.file_attached_successfully": "Arquivo anexado com sucesso",
1052
+ "platform.angular_components.loading_file": "Carregando arquivo",
1053
+ "platform.angular_components.iassist_text_generator": "IAssist Gerador de texto",
1054
+ "platform.angular_components.copied_to_clipboard": "Copiado para área de transferência",
1055
+ "platform.angular_components.copy_field_content": "Copiar conteúdo preenchido",
1056
+ "platform.angular_components.generate_text": "Gerar texto",
1057
+ "platform.angular_components.context": "Contexto",
1058
+ "platform.angular_components.filters": "Filtros",
1059
+ "platform.angular_components.filter": "Filtrar",
1060
+ "platform.angular_components.clear": "Limpar",
1061
+ "platform.angular_components.cancel": "Cancelar",
1062
+ "platform.angular_components.select": "Selecionar",
1063
+ "platform.angular_components.not_informed": "Não informado",
1064
+ "platform.angular_components.advanced_search": "Pesquisa avançada",
1065
+ "platform.angular_components.no_records_found": "Nenhum registro encontrado",
1066
+ "platform.angular_components.total_record": "{{ count }} registro encontrado",
1067
+ "platform.angular_components.total_records": "{{ count }} registros encontrados",
1068
+ "platform.angular_components.total_records_selected": "{0} registros selecionados",
1069
+ "platform.angular_components.country_name_br": "Brasil",
1070
+ "platform.angular_components.country_name_us": "Estados Unidos",
1071
+ "platform.angular_components.country_name_co": "Colômbia",
1072
+ "platform.angular_components.country_name_ar": "Argentina",
1073
+ "platform.angular_components.country_name_cl": "Chile",
1074
+ "platform.angular_components.country_name_py": "Paraguai",
1075
+ "platform.angular_components.country_name_uy": "Uruguai",
1076
+ "platform.angular_components.country_name_cn": "China",
1077
+ "platform.angular_components.country_name_ca": "Canadá",
1078
+ "platform.angular_components.country_name_as": "Samoa Americana",
1079
+ "platform.angular_components.country_name_ai": "Anguilla",
1080
+ "platform.angular_components.country_name_ag": "Antígua e Barbuda",
1081
+ "platform.angular_components.country_name_bs": "Bahamas",
1082
+ "platform.angular_components.country_name_bb": "Barbados",
1083
+ "platform.angular_components.country_name_bm": "Bermuda",
1084
+ "platform.angular_components.country_name_vg": "Ilhas Virgens Britânicas",
1085
+ "platform.angular_components.country_name_ky": "Ilhas Cayman",
1086
+ "platform.angular_components.country_name_dm": "Dominica",
1087
+ "platform.angular_components.country_name_do": "República Dominicana",
1088
+ "platform.angular_components.country_name_gd": "Granada",
1089
+ "platform.angular_components.country_name_gu": "Guam",
1090
+ "platform.angular_components.country_name_jm": "Jamaica",
1091
+ "platform.angular_components.country_name_ms": "Montserrat",
1092
+ "platform.angular_components.country_name_mp": "Ilhas Mariana do Norte",
1093
+ "platform.angular_components.country_name_pr": "Porto Rico",
1094
+ "platform.angular_components.country_name_kn": "Saint Kitts and Nevis",
1095
+ "platform.angular_components.country_name_lc": "Saint Lucia",
1096
+ "platform.angular_components.country_name_vc": "Saint Vincent and the Grenadines",
1097
+ "platform.angular_components.country_name_tt": "Trinidad e Tobago",
1098
+ "platform.angular_components.country_name_tc": "Ilhas Turcas e Caicos",
1099
+ "platform.angular_components.country_name_fi": "Finlândia",
1100
+ "platform.angular_components.country_name_rs": "Sérvia",
1101
+ "platform.angular_components.country_name_zm": "Zâmbia",
1102
+ "platform.angular_components.country_name_af": "Afghanistão",
1103
+ "platform.angular_components.country_name_al": "Albânia",
1104
+ "platform.angular_components.country_name_hr": "Croácia",
1105
+ "platform.angular_components.country_name_ec": "Equador",
1106
+ "platform.angular_components.country_name_et": "Etiópia",
1107
+ "platform.angular_components.country_name_gh": "Gana",
1108
+ "platform.angular_components.country_name_gr": "Grécia",
1109
+ "platform.angular_components.country_name_ie": "Irlanda",
1110
+ "platform.angular_components.country_name_it": "Itália",
1111
+ "platform.angular_components.country_name_lr": "Libéria",
1112
+ "platform.angular_components.country_name_na": "Namíbia",
1113
+ "platform.angular_components.country_name_nz": "Nova Zelândia",
1114
+ "platform.angular_components.country_name_sa": "Arábia Saudita",
1115
+ "platform.angular_components.country_name_za": "África do Sul",
1116
+ "platform.angular_components.country_name_lk": "Sri Lanka",
1117
+ "platform.angular_components.country_name_sd": "Sudão",
1118
+ "platform.angular_components.country_name_th": "Tailândia",
1119
+ "platform.angular_components.country_name_ua": "Ucrânia",
1120
+ "platform.angular_components.country_name_ae": "Emirados Árabes Unidos",
1121
+ "platform.angular_components.country_name_va": "Vaticano",
1122
+ "platform.angular_components.country_name_zw": "Zimbábue",
1123
+ "platform.angular_components.country_name_dz": "Argélia",
1124
+ "platform.angular_components.country_name_be": "Bélgica",
1125
+ "platform.angular_components.country_name_yt": "Mayotte",
1126
+ "platform.angular_components.country_name_bl": "Saint Barthelemy",
1127
+ "platform.angular_components.country_name_mf": "Saint Martin",
1128
+ "platform.angular_components.country_name_ad": "Andora",
1129
+ "platform.angular_components.country_name_ao": "Angola",
1130
+ "platform.angular_components.country_name_ba": "Bósnia e Herzegovina",
1131
+ "platform.angular_components.country_name_bg": "Bulgária",
1132
+ "platform.angular_components.country_name_kh": "Camboja",
1133
+ "platform.angular_components.country_name_cz": "República Checa",
1134
+ "platform.angular_components.country_name_gq": "Guiné Equatorial",
1135
+ "platform.angular_components.country_name_gw": "Guiné-Bissau",
1136
+ "platform.angular_components.country_name_li": "Liechtenstein",
1137
+ "platform.angular_components.country_name_lu": "Luxemburgo",
1138
+ "platform.angular_components.country_name_mk": "Macedónia",
1139
+ "platform.angular_components.country_name_me": "Montenegro",
1140
+ "platform.angular_components.country_name_pe": "Peru",
1141
+ "platform.angular_components.country_name_pl": "Polónia",
1142
+ "platform.angular_components.country_name_pt": "Portugal",
1143
+ "platform.angular_components.country_name_si": "Slovenia",
1144
+ "platform.angular_components.country_name_am": "Arménia",
1145
+ "platform.angular_components.country_name_aw": "Aruba",
1146
+ "platform.angular_components.country_name_bn": "Brunei",
1147
+ "platform.angular_components.country_name_fj": "Fiji",
1148
+ "platform.angular_components.country_name_gm": "Gâmbia",
1149
+ "platform.angular_components.country_name_gy": "Guiana",
1150
+ "platform.angular_components.country_name_is": "Islândia",
1151
+ "platform.angular_components.country_name_fm": "Micronésia",
1152
+ "platform.angular_components.country_name_nr": "Nauru",
1153
+ "platform.angular_components.country_name_nu": "Niue",
1154
+ "platform.angular_components.country_name_pw": "Palau",
1155
+ "platform.angular_components.country_name_st": "Sao Tome e Principe",
1156
+ "platform.angular_components.country_name_to": "Tonga",
1157
+ "platform.angular_components.country_name_vu": "Vanuatu",
1158
+ "platform.angular_components.country_name_fk": "Ilhas Falkland (Malvinas)",
1159
+ "platform.angular_components.country_name_fo": "Ilhas Feroé",
1160
+ "platform.angular_components.country_name_sh": "Saint Helena",
1161
+ "platform.angular_components.country_name_au": "Austrália",
1162
+ "platform.angular_components.country_name_cx": "Christmas Island",
1163
+ "platform.angular_components.country_name_cc": "Ilhas Cocos (Keeling)",
1164
+ "platform.angular_components.country_name_cd": "República Democrática do Congo",
1165
+ "platform.angular_components.country_name_kg": "Quirguistão",
1166
+ "platform.angular_components.country_name_ro": "Roménia",
1167
+ "platform.angular_components.country_name_rw": "Ruanda",
1168
+ "platform.angular_components.country_name_sk": "Slovakia",
1169
+ "platform.angular_components.country_name_sy": "Syria",
1170
+ "platform.angular_components.country_name_tw": "Taiwan",
1171
+ "platform.angular_components.country_name_tz": "Tanzânia",
1172
+ "platform.angular_components.country_name_ye": "Iémen (Iémen, Yemen)",
1173
+ "platform.angular_components.country_name_at": "Áustria",
1174
+ "platform.angular_components.country_name_ke": "Quénia (Kenya)",
1175
+ "platform.angular_components.country_name_ug": "Uganda",
1176
+ "platform.angular_components.country_name_az": "Azerbaijão",
1177
+ "platform.angular_components.country_name_ch": "Suiça",
1178
+ "platform.angular_components.country_name_vn": "Vietnã (Vietname)",
1179
+ "platform.angular_components.country_name_bh": "Bahrein",
1180
+ "platform.angular_components.country_name_cr": "Costa Rica",
1181
+ "platform.angular_components.country_name_sv": "El Salvador",
1182
+ "platform.angular_components.country_name_ee": "Estónia",
1183
+ "platform.angular_components.country_name_sz": "Suazilândia",
1184
+ "platform.angular_components.country_name_gt": "Guatemala",
1185
+ "platform.angular_components.country_name_hk": "Hong Kong",
1186
+ "platform.angular_components.country_name_ls": "Lesoto",
1187
+ "platform.angular_components.country_name_mo": "Macau",
1188
+ "platform.angular_components.country_name_mt": "Malta",
1189
+ "platform.angular_components.country_name_mu": "Maurícia",
1190
+ "platform.angular_components.country_name_mn": "Mongólia",
1191
+ "platform.angular_components.country_name_ni": "Nicaragua",
1192
+ "platform.angular_components.country_name_om": "Omã",
1193
+ "platform.angular_components.country_name_pg": "Papua-Nova Guiné",
1194
+ "platform.angular_components.country_name_qa": "Catar",
1195
+ "platform.angular_components.country_name_sg": "Cingapura",
1196
+ "platform.angular_components.country_name_tl": "Timor-Leste",
1197
+ "platform.angular_components.country_name_bd": "Bangladesh",
1198
+ "platform.angular_components.country_name_im": "Ilha de Man",
1199
+ "platform.angular_components.country_name_by": "Bielorrússia",
1200
+ "platform.angular_components.country_name_bz": "Belize",
1201
+ "platform.angular_components.country_name_mv": "Maldivas",
1202
+ "platform.angular_components.country_name_mh": "Ilhas Marshall",
1203
+ "platform.angular_components.country_name_sr": "Suriname",
1204
+ "platform.angular_components.country_name_bj": "Benim",
1205
+ "platform.angular_components.country_name_bt": "Butão",
1206
+ "platform.angular_components.country_name_bf": "Burkina Faso",
1207
+ "platform.angular_components.country_name_bi": "Burundi",
1208
+ "platform.angular_components.country_name_cf": "República Centro-Africana",
1209
+ "platform.angular_components.country_name_td": "Chad",
1210
+ "platform.angular_components.country_name_ci": "Costa do Marfim",
1211
+ "platform.angular_components.country_name_dk": "Dinamarca",
1212
+ "platform.angular_components.country_name_dj": "Djibouti",
1213
+ "platform.angular_components.country_name_fr": "França",
1214
+ "platform.angular_components.country_name_pf": "Polinésia Francesa",
1215
+ "platform.angular_components.country_name_ga": "Gabão",
1216
+ "platform.angular_components.country_name_ml": "Mali",
1217
+ "platform.angular_components.country_name_mr": "Mauritânia",
1218
+ "platform.angular_components.country_name_ne": "Níger",
1219
+ "platform.angular_components.country_name_sm": "San Marino",
1220
+ "platform.angular_components.country_name_tg": "Togo",
1221
+ "platform.angular_components.country_name_bo": "Bolívia",
1222
+ "platform.angular_components.country_name_gi": "Gibraltar",
1223
+ "platform.angular_components.country_name_ki": "Kiribati",
1224
+ "platform.angular_components.country_name_tv": "Tuvalu",
1225
+ "platform.angular_components.country_name_bw": "Botswana",
1226
+ "platform.angular_components.country_name_er": "Eritreia",
1227
+ "platform.angular_components.country_name_lv": "Letônia",
1228
+ "platform.angular_components.country_name_lb": "Líbano",
1229
+ "platform.angular_components.country_name_tn": "Tunísia",
1230
+ "platform.angular_components.country_name_cm": "Camarões",
1231
+ "platform.angular_components.country_name_cv": "Cabo Verde",
1232
+ "platform.angular_components.country_name_km": "Comores",
1233
+ "platform.angular_components.country_name_pm": "Saint Pierre and Miquelon",
1234
+ "platform.angular_components.country_name_cg": "República do Congo",
1235
+ "platform.angular_components.country_name_mz": "Moçambique",
1236
+ "platform.angular_components.country_name_mm": "Myanmar (Burma)",
1237
+ "platform.angular_components.country_name_ck": "Ilhas Cook",
1238
+ "platform.angular_components.country_name_cu": "Cuba",
1239
+ "platform.angular_components.country_name_cy": "Chipre",
1240
+ "platform.angular_components.country_name_eg": "Egito",
1241
+ "platform.angular_components.country_name_ir": "Irã",
1242
+ "platform.angular_components.country_name_iq": "Iraque",
1243
+ "platform.angular_components.country_name_ng": "Nigéria",
1244
+ "platform.angular_components.country_name_kp": "Coreia do Norte",
1245
+ "platform.angular_components.country_name_ph": "Filipinas",
1246
+ "platform.angular_components.country_name_ge": "Geórgia",
1247
+ "platform.angular_components.country_name_gn": "Guiné",
1248
+ "platform.angular_components.country_name_es": "Espanha",
1249
+ "platform.angular_components.country_name_de": "Alemanha",
1250
+ "platform.angular_components.country_name_gl": "Groelândia",
1251
+ "platform.angular_components.country_name_wf": "Wallis e Futuna",
1252
+ "platform.angular_components.country_name_ht": "Haiti",
1253
+ "platform.angular_components.country_name_hn": "Honduras",
1254
+ "platform.angular_components.country_name_pa": "Panamá",
1255
+ "platform.angular_components.country_name_hu": "Hungria",
1256
+ "platform.angular_components.country_name_in": "India",
1257
+ "platform.angular_components.country_name_id": "Indonésia",
1258
+ "platform.angular_components.country_name_il": "Israel",
1259
+ "platform.angular_components.country_name_jp": "Japão",
1260
+ "platform.angular_components.country_name_jo": "Jordânia",
1261
+ "platform.angular_components.country_name_kz": "Cazaquistão",
1262
+ "platform.angular_components.country_name_kw": "Kuwait",
1263
+ "platform.angular_components.country_name_la": "Laos",
1264
+ "platform.angular_components.country_name_ly": "Líbia",
1265
+ "platform.angular_components.country_name_lt": "Lituânia",
1266
+ "platform.angular_components.country_name_np": "Nepal",
1267
+ "platform.angular_components.country_name_mg": "Madagáscar",
1268
+ "platform.angular_components.country_name_mw": "Malawi",
1269
+ "platform.angular_components.country_name_my": "Malásia",
1270
+ "platform.angular_components.country_name_mx": "México",
1271
+ "platform.angular_components.country_name_md": "Moldávia",
1272
+ "platform.angular_components.country_name_mc": "Monaco",
1273
+ "platform.angular_components.country_name_ma": "Marrocos",
1274
+ "platform.angular_components.country_name_nl": "Países Baixos",
1275
+ "platform.angular_components.country_name_nc": "Nova Caledônia",
1276
+ "platform.angular_components.country_name_no": "Noruega",
1277
+ "platform.angular_components.country_name_pk": "Paquistão",
1278
+ "platform.angular_components.country_name_ru": "Rússia",
1279
+ "platform.angular_components.country_name_ws": "Samoa",
1280
+ "platform.angular_components.country_name_sb": "Ilhas Salomão",
1281
+ "platform.angular_components.country_name_sn": "Senegal",
1282
+ "platform.angular_components.country_name_sc": "Seychelles",
1283
+ "platform.angular_components.country_name_sl": "Serra Leoa",
1284
+ "platform.angular_components.country_name_so": "Somalia",
1285
+ "platform.angular_components.country_name_kr": "Coreia do Sul",
1286
+ "platform.angular_components.country_name_se": "Suécia",
1287
+ "platform.angular_components.country_name_tj": "Tajiquistão",
1288
+ "platform.angular_components.country_name_tk": "Tokelau",
1289
+ "platform.angular_components.country_name_tr": "Turquia",
1290
+ "platform.angular_components.country_name_tm": "Turquemenistão",
1291
+ "platform.angular_components.country_name_uz": "Uzbequistão",
1292
+ "platform.angular_components.country_name_ve": "Venezuela",
1293
+ "platform.angular_components.date_modified_custom_blob": "Enviado às {{hour}}:{{minutes}} de {{day}}/{{month}}/{{fullYear}}",
1294
+ "platform.angular_components.available-items": "Itens disponíveis",
1295
+ "platform.angular_components.selected-items": "Itens selecionados",
1296
+ "platform.angular_components.picklist-placeholder": "Busque pelo nome ou termo",
1297
+ "platform.angular_components.add_all": "Adicionar todos",
1298
+ "platform.angular_components.remove_all": "Remover todos",
1299
+ "platform.angular_components.country_name_gb": "Reino Unido",
1300
+ "platform.angular_components.insight_footer": "Conteúdo gerado por inteligência artificial. Sujeito a imprecisões.",
1301
+ "platform.angular_components.text_area_speech_recognition_placeholder": "Preencha o campo com, pelo menos, uma frase",
1302
+ "platform.angular_components.text_area_before_speech": "Grave ou ouça o texto clicando nos ícones",
1303
+ "platform.angular_components.text_area_while_speech": "Clique novamente no ícone para finalizar",
1304
+ "platform.angular_components.text_area_end_speech": "Gravação finalizada",
1305
+ "platform.angular_components.no_microphone_permission": "O acesso ao microfone está bloqueado. Ative a permissão nas configurações do navegador para continuar usando este recurso."
1306
+ };
1307
+
1308
+ exports.GridEditableNestedComponent = GridEditableNestedComponent;
1309
+ exports.GridEditableNestedModule = GridEditableNestedModule;
1310
+ exports.HostProjectConfigsInjectionToken = HostProjectConfigsInjectionToken;
1311
+ exports.PainelProcessamentoComponent = PainelProcessamentoComponent;
1312
+ exports.PainelProcessamentoModule = PainelProcessamentoModule;
1313
+ exports.TmsxAngularComponentsModule = TmsxAngularComponentsModule;
1314
+ exports.UtilsService = UtilsService;
1315
+ exports.fallback = fallback;
1316
+
1317
+ Object.defineProperty(exports, '__esModule', { value: true });
1318
+
1319
+ })));
1320
+ //# sourceMappingURL=seniorsistemas-tmsx-angular-components.umd.js.map