cilog-lib 0.3.7 → 0.4.1

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 (53) hide show
  1. package/cilog-lib.d.ts +1 -3
  2. package/esm2020/cilog-lib.mjs +5 -0
  3. package/esm2020/lib/cilog-lib.component.mjs +26 -0
  4. package/esm2020/lib/cilog-lib.module.mjs +69 -0
  5. package/esm2020/lib/cilog-lib.service.mjs +14 -0
  6. package/esm2020/lib/helpers/enums/grille.enum.mjs +24 -0
  7. package/esm2020/lib/helpers/interfaces/edition.interface.mjs +2 -0
  8. package/esm2020/lib/helpers/interfaces/grille.interface.mjs +2 -0
  9. package/esm2020/lib/helpers/interfaces/message.interface.mjs +2 -0
  10. package/esm2020/lib/modules/primeng.module.mjs +72 -0
  11. package/esm2020/lib/services/message.service.mjs +27 -0
  12. package/esm2020/lib/services/table.service.mjs +14 -0
  13. package/esm2020/lib/views/message/message.component.mjs +77 -0
  14. package/esm2020/lib/views/table/table.component.mjs +312 -0
  15. package/esm2020/public-api.mjs +20 -0
  16. package/fesm2015/cilog-lib.mjs +620 -0
  17. package/fesm2015/cilog-lib.mjs.map +1 -0
  18. package/fesm2020/cilog-lib.mjs +620 -0
  19. package/fesm2020/cilog-lib.mjs.map +1 -0
  20. package/lib/cilog-lib.component.d.ts +3 -0
  21. package/lib/cilog-lib.module.d.ts +12 -0
  22. package/lib/cilog-lib.service.d.ts +3 -0
  23. package/lib/helpers/enums/grille.enum.d.ts +1 -0
  24. package/lib/helpers/interfaces/edition.interface.d.ts +1 -0
  25. package/lib/helpers/interfaces/grille.interface.d.ts +3 -0
  26. package/lib/modules/primeng.module.d.ts +18 -0
  27. package/lib/services/message.service.d.ts +3 -0
  28. package/lib/services/table.service.d.ts +3 -0
  29. package/lib/views/message/message.component.d.ts +3 -0
  30. package/lib/views/table/table.component.d.ts +11 -3
  31. package/package.json +22 -15
  32. package/public-api.d.ts +2 -0
  33. package/bundles/cilog-lib.umd.js +0 -837
  34. package/bundles/cilog-lib.umd.js.map +0 -1
  35. package/bundles/cilog-lib.umd.min.js +0 -2
  36. package/bundles/cilog-lib.umd.min.js.map +0 -1
  37. package/cilog-lib.metadata.json +0 -1
  38. package/esm2015/cilog-lib.js +0 -8
  39. package/esm2015/lib/cilog-lib.component.js +0 -18
  40. package/esm2015/lib/cilog-lib.module.js +0 -44
  41. package/esm2015/lib/cilog-lib.service.js +0 -13
  42. package/esm2015/lib/helpers/enums/grille.enum.js +0 -23
  43. package/esm2015/lib/helpers/interfaces/edition.interface.js +0 -2
  44. package/esm2015/lib/helpers/interfaces/grille.interface.js +0 -2
  45. package/esm2015/lib/helpers/interfaces/message.interface.js +0 -2
  46. package/esm2015/lib/modules/primeng.module.js +0 -39
  47. package/esm2015/lib/services/message.service.js +0 -25
  48. package/esm2015/lib/services/table.service.js +0 -13
  49. package/esm2015/lib/views/message/message.component.js +0 -76
  50. package/esm2015/lib/views/table/table.component.js +0 -260
  51. package/esm2015/public-api.js +0 -18
  52. package/fesm2015/cilog-lib.js +0 -503
  53. package/fesm2015/cilog-lib.js.map +0 -1
@@ -1,18 +0,0 @@
1
- /*
2
- * Public API Surface of cilog-lib
3
- */
4
- // Modules
5
- export * from './lib/cilog-lib.module';
6
- // Components
7
- export * from './lib/cilog-lib.component';
8
- // Services
9
- export * from './lib/cilog-lib.service';
10
- export * from './lib/services/message.service';
11
- export * from './lib/services/table.service';
12
- // Interfaces
13
- export * from './lib/helpers/interfaces/grille.interface';
14
- export * from './lib/helpers/interfaces/message.interface';
15
- export * from './lib/helpers/interfaces/edition.interface';
16
- // Enums
17
- export * from './lib/helpers/enums/grille.enum';
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJDOi9Vc2Vycy90b255Xy9EZXNrdG9wL1Byb2pldHMgQ2lsb2cvY2lsb2ctbGliLWFuZ3VsYXIvcHJvamVjdHMvY2lsb2ctbGliL3NyYy8iLCJzb3VyY2VzIjpbInB1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxVQUFVO0FBQ1YsY0FBYyx3QkFBd0IsQ0FBQztBQUV2QyxhQUFhO0FBQ2IsY0FBYywyQkFBMkIsQ0FBQztBQUUxQyxXQUFXO0FBQ1gsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLGdDQUFnQyxDQUFDO0FBQy9DLGNBQWMsOEJBQThCLENBQUM7QUFFN0MsYUFBYTtBQUNiLGNBQWMsMkNBQTJDLENBQUM7QUFDMUQsY0FBYyw0Q0FBNEMsQ0FBQztBQUMzRCxjQUFjLDRDQUE0QyxDQUFDO0FBRTNELFFBQVE7QUFDUixjQUFjLGlDQUFpQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGNpbG9nLWxpYlxyXG4gKi9cclxuXHJcbi8vIE1vZHVsZXNcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvY2lsb2ctbGliLm1vZHVsZSc7XHJcblxyXG4vLyBDb21wb25lbnRzXHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NpbG9nLWxpYi5jb21wb25lbnQnO1xyXG5cclxuLy8gU2VydmljZXNcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvY2lsb2ctbGliLnNlcnZpY2UnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9zZXJ2aWNlcy9tZXNzYWdlLnNlcnZpY2UnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9zZXJ2aWNlcy90YWJsZS5zZXJ2aWNlJztcclxuXHJcbi8vIEludGVyZmFjZXNcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvaGVscGVycy9pbnRlcmZhY2VzL2dyaWxsZS5pbnRlcmZhY2UnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9oZWxwZXJzL2ludGVyZmFjZXMvbWVzc2FnZS5pbnRlcmZhY2UnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9oZWxwZXJzL2ludGVyZmFjZXMvZWRpdGlvbi5pbnRlcmZhY2UnO1xyXG5cclxuLy8gRW51bXNcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvaGVscGVycy9lbnVtcy9ncmlsbGUuZW51bSc7XHJcbiJdfQ==
@@ -1,503 +0,0 @@
1
- import { Injectable, Component, NgModule, EventEmitter, ChangeDetectorRef, Input, Output, ViewChild, ɵɵdefineInjectable, LOCALE_ID } from '@angular/core';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { CommonModule, registerLocaleData } from '@angular/common';
4
- import { DialogModule } from 'primeng/dialog';
5
- import { ButtonModule } from 'primeng/button';
6
- import { TableModule } from 'primeng/table';
7
- import { InputTextModule } from 'primeng/inputtext';
8
- import { SelectButtonModule } from 'primeng/selectbutton';
9
- import { DropdownModule } from 'primeng/dropdown';
10
- import { InputNumberModule } from 'primeng/inputnumber';
11
- import { ConfirmDialogModule } from 'primeng/confirmdialog';
12
- import { MultiSelectModule } from 'primeng/multiselect';
13
- import { CalendarModule } from 'primeng/calendar';
14
- import { TagModule } from 'primeng/tag';
15
- import { TooltipModule } from 'primeng/tooltip';
16
- import { BrowserModule } from '@angular/platform-browser';
17
- import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
18
- import { ConfirmationService, FilterService } from 'primeng/api';
19
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
20
- import localeFr from '@angular/common/locales/fr';
21
-
22
- class CilogMessageService {
23
- constructor() {
24
- this.message = new BehaviorSubject(null);
25
- this.display = new BehaviorSubject(null);
26
- }
27
- showDialog(pContent, pSeverity, pClosable = true, pRefresh = false) {
28
- this.message.next({
29
- content: pContent,
30
- severity: pSeverity,
31
- closable: pClosable,
32
- refresh: pRefresh
33
- });
34
- this.display.next(true);
35
- }
36
- closeDialog() {
37
- this.display.next(false);
38
- }
39
- }
40
- CilogMessageService.decorators = [
41
- { type: Injectable }
42
- ];
43
- CilogMessageService.ctorParameters = () => [];
44
-
45
- class CilogMessageComponent {
46
- constructor(messageService) {
47
- this.messageService = messageService;
48
- }
49
- ngOnInit() {
50
- this.display = false;
51
- this.messageService.message.subscribe(message => {
52
- if (message != null) {
53
- this.message = message;
54
- }
55
- });
56
- this.messageService.display.subscribe(display => {
57
- if (display != null) {
58
- this.display = display;
59
- }
60
- });
61
- }
62
- headerBySeverity() {
63
- if (this.message != null) {
64
- switch (this.message.severity) {
65
- case 'warn':
66
- return 'Attention';
67
- case 'error':
68
- return 'Erreur';
69
- case 'success':
70
- return 'Succès';
71
- case 'info':
72
- return 'Information';
73
- }
74
- }
75
- }
76
- iconBySeverity() {
77
- if (this.message != null) {
78
- switch (this.message.severity) {
79
- case 'warn':
80
- return 'pi-exclamation-triangle';
81
- case 'error':
82
- return 'pi-exclamation-circle';
83
- case 'success':
84
- return 'pi-check';
85
- case 'info':
86
- return 'pi-info-circle';
87
- }
88
- }
89
- }
90
- classBySeverity() {
91
- if (this.message != null) {
92
- switch (this.message.severity) {
93
- case 'warn':
94
- return 'message_warn';
95
- case 'error':
96
- return 'message_error';
97
- case 'success':
98
- return 'message_success';
99
- case 'info':
100
- return 'message_info';
101
- }
102
- }
103
- }
104
- refreshPage() {
105
- window.location.reload(true);
106
- }
107
- }
108
- CilogMessageComponent.decorators = [
109
- { type: Component, args: [{
110
- selector: 'cilog-message',
111
- template: "<p-dialog [styleClass]=\"classBySeverity()\"\r\n [(visible)]=\"display\"\r\n [modal]=\"true\"\r\n [baseZIndex]=\"10000\"\r\n [closable]=\"false\"\r\n [resizable]=\"false\"\r\n [draggable]=\"false\">\r\n\r\n <!-- Header -->\r\n <ng-template pTemplate=\"header\">\r\n <i class=\"pi {{ iconBySeverity() }} header_icon\"></i>\r\n <span class=\"header_text\">{{ headerBySeverity() }}</span>\r\n </ng-template>\r\n\r\n <!-- Content -->\r\n <p class=\"content\">\r\n {{ message?.content }}\r\n </p>\r\n\r\n <!-- Footer -->\r\n <ng-template pTemplate=\"footer\">\r\n <p-button *ngIf=\"message?.closable == true && message?.refresh == false\" icon=\"pi pi-check\" (click)=\"display=false\" label=\"Ok\" styleClass=\"p-button-text\"></p-button>\r\n <p-button *ngIf=\"message?.refresh == true\" icon=\"pi pi-refresh\" (click)=\"refreshPage()\" label=\"Rafra\u00EEchir\" styleClass=\"p-button-text\"></p-button>\r\n </ng-template>\r\n\r\n</p-dialog>\r\n",
112
- styles: [":host ::ng-deep .message_success :nth-child(1n){background-color:#b7fdc0}:host ::ng-deep .message_error :nth-child(1n){background-color:#fdb8b7}:host ::ng-deep .message_warn :nth-child(1n){background-color:#fff5ba}:host ::ng-deep .message_info :nth-child(1n){background-color:#b7eefd}:host ::ng-deep .p-dialog-content,:host ::ng-deep .p-dialog-footer,:host ::ng-deep .p-dialog-header{padding:10px}:host ::ng-deep .content{margin:4px}:host ::ng-deep .p-button-text{padding-bottom:3px;padding-top:0}:host ::ng-deep .header_text{font-size:1.25rem;font-weight:500;margin-left:10px}:host ::ng-deep .header_icon{font-size:1.5rem}:host ::ng-deep .p-dialog-header{justify-content:inherit}"]
113
- },] }
114
- ];
115
- CilogMessageComponent.ctorParameters = () => [
116
- { type: CilogMessageService }
117
- ];
118
-
119
- class CilogLibComponent {
120
- constructor() { }
121
- ngOnInit() {
122
- }
123
- }
124
- CilogLibComponent.decorators = [
125
- { type: Component, args: [{
126
- selector: 'lib-cilog-lib',
127
- template: `
128
- <p>
129
- cilog-lib works!
130
- </p>
131
- `
132
- },] }
133
- ];
134
- CilogLibComponent.ctorParameters = () => [];
135
-
136
- class PrimengModule {
137
- }
138
- PrimengModule.decorators = [
139
- { type: NgModule, args: [{
140
- declarations: [],
141
- exports: [
142
- DialogModule,
143
- ButtonModule,
144
- TableModule,
145
- InputTextModule,
146
- SelectButtonModule,
147
- DropdownModule,
148
- InputNumberModule,
149
- ConfirmDialogModule,
150
- MultiSelectModule,
151
- CalendarModule,
152
- TagModule,
153
- TooltipModule
154
- ],
155
- imports: [
156
- CommonModule
157
- ]
158
- },] }
159
- ];
160
-
161
- var ColType;
162
- (function (ColType) {
163
- ColType["MultiSelect"] = "MultiSelect";
164
- ColType["Dropdown"] = "Dropdown";
165
- ColType["File"] = "File";
166
- ColType["Text"] = "Text";
167
- ColType["Number"] = "Number";
168
- ColType["SelectButton"] = "SelectButton";
169
- ColType["Button"] = "Button";
170
- ColType["Image"] = "Image";
171
- ColType["Date"] = "Date";
172
- ColType["State"] = "State";
173
- })(ColType || (ColType = {}));
174
- var Severity;
175
- (function (Severity) {
176
- Severity["Secondary"] = "secondary";
177
- Severity["Success"] = "success";
178
- Severity["Info"] = "info";
179
- Severity["Warning"] = "warning";
180
- Severity["Help"] = "help";
181
- Severity["Danger"] = "danger";
182
- })(Severity || (Severity = {}));
183
-
184
- class CilogTableComponent {
185
- constructor(confirmationService, filterService, cdRef) {
186
- this.confirmationService = confirmationService;
187
- this.filterService = filterService;
188
- this.cdRef = cdRef;
189
- this.onEdit = new EventEmitter();
190
- this.onEditInit = new EventEmitter();
191
- this.onDelete = new EventEmitter();
192
- this.onSelect = new EventEmitter();
193
- this.onUnselect = new EventEmitter();
194
- this.onFilter = new EventEmitter();
195
- this.onSort = new EventEmitter();
196
- this.onPage = new EventEmitter();
197
- }
198
- ngOnInit() {
199
- // Date
200
- this.filterService.register('dateRangeFilter', (cell, filter) => {
201
- if (filter == null) {
202
- return true;
203
- }
204
- let start = filter[0].getTime();
205
- let end;
206
- if (filter[1]) {
207
- end = filter[1].getTime() + 86400000;
208
- }
209
- else {
210
- end = start + 86400000;
211
- }
212
- return cell.value == null ? false : cell.value.getTime() >= start && cell.value.getTime() <= end;
213
- });
214
- // Text
215
- this.filterService.register('textFilter', (cell, filter) => {
216
- if (filter == null || filter.trim() == '') {
217
- return true;
218
- }
219
- if (cell.value == null) {
220
- return false;
221
- }
222
- return cell.value.toLowerCase().includes(filter.toLowerCase());
223
- });
224
- // Number
225
- this.filterService.register('numberFilter', (cell, filter) => {
226
- if (filter == null) {
227
- return true;
228
- }
229
- if (cell.value == null) {
230
- return false;
231
- }
232
- return cell.value == filter;
233
- });
234
- // Objet
235
- this.filterService.register('objetFilter', (cell, filter) => {
236
- return (filter.indexOf(cell.value) != -1);
237
- });
238
- // Liste
239
- this.filterService.register('listeFilter', (cell, filter) => {
240
- let ok = false;
241
- filter.forEach(val => {
242
- if (cell.value.indexOf(val) != -1) {
243
- ok = true;
244
- }
245
- });
246
- return ok;
247
- });
248
- this.columns.forEach(col => {
249
- if (col.options == null) {
250
- col.options = { defaultFilters: null };
251
- }
252
- });
253
- }
254
- ngAfterViewInit() {
255
- this.columns.forEach(col => {
256
- this.filter(col, col.options.defaultFilters, this.getFilterByCol(col), true);
257
- });
258
- this.cdRef.detectChanges();
259
- }
260
- // Sort
261
- customSort(event) {
262
- let col = this.columns.find(col => col.id == event.field);
263
- this.onSort.emit({ column: col, order: event.order });
264
- let typeCol = col.type;
265
- event.data.sort((data1, data2) => {
266
- let value1 = data1[event.field].value;
267
- let value2 = data2[event.field].value;
268
- let result = null;
269
- if (value1 == null && value2 != null)
270
- result = -1;
271
- else if (value1 != null && value2 == null)
272
- result = 1;
273
- else if (value1 == null && value2 == null)
274
- result = 0;
275
- else if (typeCol == ColType.Text || typeCol == ColType.File)
276
- result = value1.localeCompare(value2);
277
- else if (typeCol == ColType.MultiSelect) {
278
- result = this.getMultiSelectConcat(value1, this.getOption(col, data1, 'optionLabel')).localeCompare(this.getMultiSelectConcat(value2, this.getOption(col, data2, 'optionLabel')));
279
- }
280
- else if (typeCol == ColType.Dropdown || typeCol == ColType.SelectButton || typeCol == ColType.State) {
281
- result = value1[this.getOption(col, data1, 'optionLabel')].localeCompare(value2[this.getOption(col, data2, 'optionLabel')]);
282
- }
283
- else if (typeCol == ColType.Number || typeCol == ColType.Date)
284
- result = (value1 < value2) ? -1 : (value1 > value2) ? 1 : 0;
285
- else
286
- result == 0;
287
- return (event.order * result);
288
- });
289
- }
290
- checkType(typeCol, col) {
291
- return col['type'] == typeCol;
292
- }
293
- clickById(id) {
294
- document.getElementById(id).click();
295
- }
296
- onEditCell(row, column, value) {
297
- this.onEdit.emit({ row: row, column: column, value: value });
298
- }
299
- onSelectRow(row) {
300
- this.onSelect.emit({ row: row });
301
- }
302
- onPageTable(event) {
303
- this.onPage.emit(event);
304
- }
305
- onUnselectRow(row) {
306
- this.onUnselect.emit({ row: row });
307
- }
308
- onDeleteLine(row) {
309
- this.confirmationService.confirm({
310
- key: 'confirm',
311
- message: 'Êtes-vous sûr de vouloir supprimer cette ligne ?',
312
- accept: () => {
313
- this.values.splice(this.values.indexOf(row), 1);
314
- this.values = [...this.values];
315
- this.onDelete.emit({ row: row });
316
- }
317
- });
318
- }
319
- onEditInitCell(row, column, value) {
320
- this.onEditInit.emit({ row: row, column: column, value: value });
321
- }
322
- isModeEdition() {
323
- return this.options.editable;
324
- }
325
- getOption(col, row, option) {
326
- if (row[col.id].options != null) {
327
- if (row[col.id].options[option] != null) {
328
- return row[col.id].options[option];
329
- }
330
- }
331
- if (col.options != null) {
332
- if (col.options[option] != null) {
333
- return col.options[option];
334
- }
335
- }
336
- return null;
337
- }
338
- getMultiSelectConcat(value, label) {
339
- if (value != null) {
340
- return value.map(val => { return val[label]; }).join(', ');
341
- }
342
- else {
343
- return '';
344
- }
345
- }
346
- getSelectLibelleByValue(row, col) {
347
- let label = '';
348
- if (row[col.id].value == null) {
349
- return label;
350
- }
351
- if (row[col.id].options != null) {
352
- label = row[col.id].options['options'].find(opt => opt.value == row[col.id].value)[row[col.id].options.optionLabel];
353
- }
354
- else {
355
- if (col.options != null) {
356
- label = col.options['options'].find(opt => opt.value == row[col.id].value)[col.options.optionLabel];
357
- }
358
- }
359
- return label;
360
- }
361
- getFilterByCol(col) {
362
- // Dates (range)
363
- if (col.type == ColType.Date) {
364
- return 'dateRangeFilter';
365
- }
366
- // Number
367
- if (col.type == ColType.Number) {
368
- return 'numberFilter';
369
- }
370
- // Objet
371
- if (col.type == ColType.Dropdown || col.type == ColType.State || col.type == ColType.SelectButton) {
372
- return 'objetFilter';
373
- }
374
- // Liste
375
- if (col.type == ColType.MultiSelect) {
376
- return 'listeFilter';
377
- }
378
- // Texte
379
- if (col.type == ColType.File || col.type == ColType.Text) {
380
- return 'textFilter';
381
- }
382
- return null;
383
- }
384
- onFilterCol(event, col) {
385
- // Dates (range)
386
- if (col.type == ColType.Date) {
387
- this.filter(col, col.options.defaultFilters, 'dateRangeFilter');
388
- }
389
- // Number
390
- if (col.type == ColType.Number) {
391
- this.filter(col, event.value, 'numberFilter');
392
- }
393
- // Objet
394
- if (col.type == ColType.Dropdown || col.type == ColType.State || col.type == ColType.SelectButton) {
395
- this.filter(col, event.value, 'objetFilter');
396
- }
397
- // Liste
398
- if (col.type == ColType.MultiSelect) {
399
- this.filter(col, event.value, 'listeFilter');
400
- }
401
- // Texte
402
- if (col.type == ColType.File || col.type == ColType.Text) {
403
- this.filter(col, event.target.value, 'textFilter');
404
- }
405
- }
406
- filter(col, val, filter, init = false) {
407
- this.table.filter(val, col.id, filter);
408
- if (!init) {
409
- this.onFilter.emit({ column: col, value: val });
410
- }
411
- }
412
- }
413
- CilogTableComponent.decorators = [
414
- { type: Component, args: [{
415
- selector: 'cilog-table',
416
- template: "<p-table #table\r\n [columns]=\"columns\"\r\n [value]=\"values\"\r\n dataKey=\"id\"\r\n [selectionMode]=\"options.selectable && !isModeEdition() ? 'single' : null\"\r\n [(selection)]=\"selectedRow\"\r\n (onRowSelect)=\"onSelectRow($event)\"\r\n (onRowUnselect)=\"onUnselectRow($event)\"\r\n (sortFunction)=\"customSort($event)\"\r\n [customSort]=\"options.grouping == null ? true : false\"\r\n [scrollable]=\"true\"\r\n [loading]=\"loading\"\r\n [scrollHeight]=\"options.scrollHeight != null ? options.scrollHeight : null\"\r\n [rowGroupMode]=\"options.grouping != null ? 'subheader' : null\"\r\n [groupRowsBy]=\"options.grouping != null ? options.grouping.obj + '.' + options.grouping.id : null\"\r\n [virtualScroll]=\"options.virtualScroll != null && options.scrollHeight != null ? true : false\"\r\n [virtualRowHeight]=\"35\"\r\n [paginator]=\"options.paginator == null ? false : true\"\r\n [(first)]=\"options.paginatorFirst\"\r\n [rows]=\"options.paginatorRows\"\r\n (onPage)=\"onPageTable($event)\">\r\n\r\n <!-- Header -->\r\n <ng-template pTemplate=\"header\" let-columns>\r\n <tr>\r\n <th *ngFor=\"let col of columns\"\r\n [ngClass]=\"{ 'centerText' : options.centerHeaders }\"\r\n [pSortableColumn]=\"col.id\"\r\n [pSortableColumnDisabled]=\"options.virtualScroll != null || options.grouping != null || !options.sortable\"\r\n id=\"{{ col.id }}\">\r\n <span>{{ col.libelle }}</span>\r\n <p-sortIcon *ngIf=\"options.virtualScroll == null && options.sortable && options.grouping == null\" [field]=\"col.id\"></p-sortIcon>\r\n </th>\r\n <th class=\"cellDelete\" *ngIf=\"options.rowsDeletable\"></th>\r\n </tr>\r\n <!-- FILTRES -->\r\n <tr *ngIf=\"options.filterable\">\r\n <ng-container *ngFor=\"let col of columns\">\r\n <!-- Text -->\r\n <th *ngIf=\"checkType('Text', col) || checkType('File', col)\">\r\n <input pInputText\r\n type=\"text\"\r\n (input)=\"onFilterCol($event, col)\">\r\n </th>\r\n\r\n <!-- Date -->\r\n <th *ngIf=\"checkType('Date', col)\">\r\n <p-calendar dateFormat=\"dd/mm/yy\"\r\n [inputId]=\"col.id + '_filter'\"\r\n firstDayOfWeek=\"1\"\r\n [readonlyInput]=\"true\"\r\n appendTo=\"body\"\r\n selectionMode=\"range\"\r\n (onSelect)=\"onFilterCol($event, col)\"\r\n showButtonBar=\"true\"\r\n (onClearClick)=\"onFilterCol($event, col)\"\r\n [(ngModel)]=\"col.options.defaultFilters\">\r\n </p-calendar>\r\n </th>\r\n\r\n <!-- Number -->\r\n <th *ngIf=\"checkType('Number', col)\">\r\n <p-inputNumber mode=\"decimal\"\r\n locale=\"fr-FR\"\r\n [minFractionDigits]=\"2\"\r\n [showButtons]=\"true\"\r\n (onInput)=\"onFilterCol($event, col)\"\r\n [(ngModel)]=\"col.options.defaultFilters\">\r\n </p-inputNumber>\r\n </th>\r\n\r\n <!-- Liste -->\r\n <th *ngIf=\"checkType('Dropdown', col) || checkType('MultiSelect', col) || checkType('SelectButton', col) || checkType('State', col)\">\r\n <p-multiSelect [options]=\"col.options?.options\"\r\n [filter]=\"true\"\r\n dataKey=\"ID\"\r\n [optionLabel]=\"col.options?.optionLabel\"\r\n appendTo=\"body\"\r\n emptyFilterMessage=\"Aucun r\u00E9sultat\"\r\n emptyMessage=\"Aucun r\u00E9sultat\"\r\n itemSize=\"30\"\r\n selectedItemsLabel=\"{0} selectionn\u00E9s\"\r\n (onChange)=\"onFilterCol($event, col)\"\r\n [(ngModel)]=\"col.options.defaultFilters\">\r\n </p-multiSelect>\r\n </th>\r\n\r\n <!-- Non filtrable -->\r\n <th *ngIf=\"checkType('Button', col) || checkType('Image', col)\">\r\n\r\n </th>\r\n </ng-container>\r\n <th class=\"cellDelete\" *ngIf=\"options.rowsDeletable\"></th>\r\n </tr>\r\n </ng-template>\r\n\r\n <!-- Groupheader -->\r\n <ng-template pTemplate=\"groupheader\" let-rowData>\r\n <tr pRowGroupHeader class=\"row_grouping\">\r\n <td [attr.colspan]=\"columns.length + 1\">\r\n <span class=\"text_bold\">{{ rowData[options.grouping.obj][options.grouping.libelle] }}</span>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n\r\n <!-- Body -->\r\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\">\r\n <tr id=\"{{ rowData.id }}\"\r\n [ngStyle]=\"{ 'background-color': rowData.color ? rowData.color : null }\"\r\n [pSelectableRow]=\"rowData\"\r\n [pSelectableRowDisabled]=\"!options.selectable || isModeEdition()\">\r\n <ng-container *ngFor=\"let col of columns\">\r\n\r\n <!-- Text -->\r\n <td *ngIf=\"checkType('Text', col) && isModeEdition() && !rowData.readonly && !rowData[col.id]?.readonly\"\r\n [ngStyle]=\"{ 'width' : col.width ? col.width : null, 'background-color': rowData[col.id].color ? rowData[col.id].color : null }\"\r\n id=\"{{ rowData[col.id] != null ? rowData[col.id].id : '' }}\"\r\n [pEditableColumn]=\"rowData\"\r\n [pEditableColumnField]=\"col.id\"\r\n [pTooltip]=\"rowData[col.id].value\"\r\n [tooltipDisabled]=\"!col.tooltip\"\r\n tooltipPosition=\"bottom\">\r\n <span class=\"p-column-title\">{{ col.libelle }} : </span>\r\n <input pInputText\r\n type=\"text\"\r\n [(ngModel)]=\"rowData[col.id].value\"\r\n (change)=\"onEditCell(rowData, col, rowData[col.id].value)\"\r\n (keyup.enter)=\"onEditCell(rowData, col, rowData[col.id].value)\"\r\n (click)=\"onEditInitCell(rowData, col, rowData[col.id].value)\" />\r\n </td>\r\n <td *ngIf=\"checkType('Text', col) && (!isModeEdition() || rowData.readonly || rowData[col.id]?.readonly)\"\r\n [ngStyle]=\"{ 'width' : col.width ? col.width : null, 'background-color': rowData[col.id].color ? rowData[col.id].color : null }\"\r\n id=\"{{ rowData[col.id] != null ? rowData[col.id].id : '' }}\"\r\n [ngClass]=\"{ 'paddingCell': rowData[col.id] != null }\"\r\n [pTooltip]=\"rowData[col.id].value\"\r\n [tooltipDisabled]=\"!col.tooltip\"\r\n tooltipPosition=\"bottom\">\r\n <span class=\"p-column-title\">{{ col.libelle }} : </span>\r\n <span *ngIf=\"rowData[col.id]\">{{ rowData[col.id].value }}</span>\r\n </td>\r\n\r\n <!-- Dropdown -->\r\n <td *ngIf=\"checkType('Dropdown', col) && isModeEdition() && !rowData.readonly && !rowData[col.id]?.readonly\"\r\n [ngStyle]=\"{ 'width' : col.width ? col.width : null, 'background-color': rowData[col.id].color ? rowData[col.id].color : null }\"\r\n id=\"{{ rowData[col.id] != null ? rowData[col.id].id : '' }}\"\r\n [ngClass]=\"rowData[col.id] != null ? 'paddingCell' : null\"\r\n [pTooltip]=\"rowData[col.id].value != null ? rowData[col.id].value[getOption(col, rowData, 'optionLabel')] : ''\"\r\n [tooltipDisabled]=\"!col.tooltip\"\r\n tooltipPosition=\"bottom\">\r\n <span class=\"p-column-title\">{{ col.libelle }} : </span>\r\n <p-dropdown *ngIf=\"rowData[col.id] != null\"\r\n dataKey=\"ID\"\r\n [options]=\"getOption(col, rowData, 'options')\"\r\n [filter]=\"getOption(col, rowData, 'filter')\"\r\n [optionLabel]=\"getOption(col, rowData, 'optionLabel')\"\r\n [(ngModel)]=\"rowData[col.id].value\"\r\n [autoDisplayFirst]=\"false\"\r\n appendTo=\"body\"\r\n emptyFilterMessage=\"Aucun r\u00E9sultat\"\r\n emptyMessage=\"Aucun r\u00E9sultat\"\r\n [baseZIndex]=\"getOption(col, rowData, 'baseZIndex')\"\r\n [virtualScroll]=\"getOption(col, rowData, 'virtualScroll')\"\r\n [readonly]=\"rowData.readonly || rowData[col.id]?.readonly\"\r\n itemSize=\"30\"\r\n (onChange)=\"onEditCell(rowData, col, rowData[col.id].value)\">\r\n </p-dropdown>\r\n </td>\r\n <td *ngIf=\"checkType('Dropdown', col) && (rowData.readonly || rowData[col.id]?.readonly || !isModeEdition())\"\r\n [ngStyle]=\"{ 'width' : col.width ? col.width : null, 'background-color': rowData[col.id].color ? rowData[col.id].color : null }\"\r\n id=\"{{ rowData[col.id] != null ? rowData[col.id].id : '' }}\"\r\n [ngClass]=\"rowData[col.id] != null ? 'paddingCell' : null\"\r\n [pTooltip]=\"rowData[col.id].value != null ? rowData[col.id].value[getOption(col, rowData, 'optionLabel')] : ''\"\r\n [tooltipDisabled]=\"!col.tooltip\"\r\n tooltipPosition=\"bottom\">\r\n <span class=\"p-column-title\">{{ col.libelle }} : </span>\r\n <span *ngIf=\"rowData[col.id]\">{{ rowData[col.id].value != null ? rowData[col.id].value[getOption(col, rowData, 'optionLabel')] : '' }}</span>\r\n </td>\r\n\r\n <!-- Number -->\r\n <td *ngIf=\"checkType('Number', col) && isModeEdition() && !rowData.readonly && !rowData[col.id]?.readonly\"\r\n [ngStyle]=\"{ 'width' : col.width ? col.width : null, 'background-color': rowData[col.id].color ? rowData[col.id].color : null }\"\r\n id=\"{{ rowData[col.id] != null ? rowData[col.id].id : '' }}\"\r\n [ngClass]=\"rowData[col.id] != null ? 'paddingCell' : null\"\r\n [pTooltip]=\"rowData[col.id].value | number\"\r\n [tooltipDisabled]=\"!col.tooltip\"\r\n tooltipPosition=\"bottom\">\r\n <span class=\"p-column-title\">{{ col.libelle }} : </span>\r\n <p-inputNumber *ngIf=\"rowData[col.id] && !rowData.readonly && !rowData[col.id]?.readonly\"\r\n mode=\"decimal\"\r\n locale=\"fr-FR\"\r\n [(ngModel)]=\"rowData[col.id].value\"\r\n [showButtons]=\"getOption(col, rowData, 'showButtons')\"\r\n [suffix]=\"getOption(col, rowData, 'suffix')\"\r\n [prefix]=\"getOption(col, rowData, 'prefix') != null ? getOption(col, rowData, 'prefix') + ' ' : null\"\r\n [minFractionDigits]=\"2\"\r\n [maxFractionDigits]=\"getOption(col, rowData, 'maxDecimales') != null ? getOption(col, rowData, 'maxDecimales') : 2 \"\r\n (ngModelChange)=\"onEditCell(rowData, col, rowData[col.id].value)\"\r\n (onFocus)=\"onEditInitCell(rowData, col, rowData[col.id].value)\">\r\n </p-inputNumber>\r\n </td>\r\n <td *ngIf=\"checkType('Number', col) && (rowData.readonly || rowData[col.id]?.readonly || !isModeEdition())\"\r\n [ngStyle]=\"{ 'width' : col.width ? col.width : null, 'background-color': rowData[col.id].color ? rowData[col.id].color : null }\"\r\n id=\"{{ rowData[col.id] != null ? rowData[col.id].id : '' }}\"\r\n [ngClass]=\"rowData[col.id] != null ? 'paddingCell' : null\"\r\n [pTooltip]=\"rowData[col.id].value | number\"\r\n [tooltipDisabled]=\"!col.tooltip\"\r\n tooltipPosition=\"bottom\">\r\n <span class=\"p-column-title\">{{ col.libelle }} : </span>\r\n <span *ngIf=\"rowData[col.id]\">{{ rowData[col.id].value | number }}</span>\r\n </td>\r\n\r\n <!-- Date -->\r\n <td *ngIf=\"checkType('Date', col) && isModeEdition() && !rowData.readonly && !rowData[col.id]?.readonly\"\r\n [ngStyle]=\"{ 'width' : col.width ? col.width : null, 'background-color': rowData[col.id].color ? rowData[col.id].color : null }\"\r\n id=\"{{ rowData[col.id] != null ? rowData[col.id].id : '' }}\"\r\n [ngClass]=\"rowData[col.id] != null ? 'paddingCell' : null\"\r\n [pTooltip]=\"rowData[col.id].value | date: 'dd/MM/yyyy'\"\r\n [tooltipDisabled]=\"!col.tooltip\"\r\n tooltipPosition=\"bottom\">\r\n <span class=\"p-column-title\">{{ col.libelle }} : </span>\r\n <p-calendar [(ngModel)]=\"rowData[col.id].value\"\r\n dateFormat=\"dd/mm/yy\"\r\n firstDayOfWeek=\"1\"\r\n (onSelect)=\"onEditCell(rowData, col, rowData[col.id].value)\"\r\n [readonlyInput]=\"true\"\r\n appendTo=\"body\">\r\n </p-calendar>\r\n </td>\r\n <td *ngIf=\"checkType('Date', col) && (rowData.readonly || rowData[col.id]?.readonly || !isModeEdition())\"\r\n [ngStyle]=\"{ 'width' : col.width ? col.width : null, 'background-color': rowData[col.id].color ? rowData[col.id].color : null }\"\r\n id=\"{{ rowData[col.id] != null ? rowData[col.id].id : '' }}\"\r\n [ngClass]=\"rowData[col.id] != null ? 'paddingCell' : null\"\r\n [pTooltip]=\"rowData[col.id].value | date: 'dd/MM/yyyy'\"\r\n [tooltipDisabled]=\"!col.tooltip\"\r\n tooltipPosition=\"bottom\">\r\n <span class=\"p-column-title\">{{ col.libelle }} : </span>\r\n <span *ngIf=\"rowData[col.id]\">{{ rowData[col.id].value | date: 'dd/MM/yyyy' }}</span>\r\n </td>\r\n\r\n <!-- MultiSelect -->\r\n <td *ngIf=\"checkType('MultiSelect', col) && isModeEdition() && !rowData.readonly && !rowData[col.id]?.readonly\"\r\n [ngStyle]=\"{ 'width' : col.width ? col.width : null, 'background-color': rowData[col.id].color ? rowData[col.id].color : null }\"\r\n id=\"{{ rowData[col.id] != null ? rowData[col.id].id : '' }}\"\r\n [ngClass]=\"rowData[col.id] != null ? 'paddingCell' : null\"\r\n [pTooltip]=\"getMultiSelectConcat(rowData[col.id].value, getOption(col, rowData, 'optionLabel'))\"\r\n [tooltipDisabled]=\"!col.tooltip\"\r\n tooltipPosition=\"bottom\">\r\n <span class=\"p-column-title\">{{ col.libelle }} : </span>\r\n <p-multiSelect *ngIf=\"rowData[col.id] != null\"\r\n [options]=\"getOption(col, rowData, 'options')\"\r\n [filter]=\"getOption(col, rowData, 'filter')\"\r\n [optionLabel]=\"getOption(col, rowData, 'optionLabel')\"\r\n [(ngModel)]=\"rowData[col.id].value\"\r\n appendTo=\"body\"\r\n dataKey=\"ID\"\r\n emptyFilterMessage=\"Aucun r\u00E9sultat\"\r\n emptyMessage=\"Aucun r\u00E9sultat\"\r\n [baseZIndex]=\"getOption(col, rowData, 'baseZIndex')\"\r\n [virtualScroll]=\"getOption(col, rowData, 'virtualScroll')\"\r\n [readonly]=\"rowData.readonly || rowData[col.id]?.readonly || !isModeEdition()\"\r\n itemSize=\"30\"\r\n selectedItemsLabel=\"{0} utilisateurs selectionn\u00E9s\"\r\n (onChange)=\"onEditCell(rowData, col, rowData[col.id].value)\"\r\n [showToggleAll]=\"false\"\r\n [showHeader]=\"getOption(col, rowData, 'filter')\"\r\n ngDefaultControl>\r\n </p-multiSelect>\r\n </td>\r\n <td *ngIf=\"checkType('MultiSelect', col) && (rowData.readonly || rowData[col.id]?.readonly || !isModeEdition())\"\r\n [ngStyle]=\"{ 'width' : col.width ? col.width : null, 'background-color': rowData[col.id].color ? rowData[col.id].color : null }\"\r\n id=\"{{ rowData[col.id] != null ? rowData[col.id].id : '' }}\"\r\n [ngClass]=\"rowData[col.id] != null ? 'paddingCell' : null\"\r\n [pTooltip]=\"getMultiSelectConcat(rowData[col.id].value, getOption(col, rowData, 'optionLabel'))\"\r\n [tooltipDisabled]=\"!col.tooltip\"\r\n tooltipPosition=\"bottom\">\r\n <span class=\"p-column-title\">{{ col.libelle }} : </span>\r\n <span *ngIf=\"rowData[col.id]\">{{ getMultiSelectConcat(rowData[col.id].value, getOption(col, rowData, 'optionLabel')) }}</span>\r\n </td>\r\n\r\n <!-- Image -->\r\n <td *ngIf=\"checkType('Image', col)\"\r\n [ngStyle]=\"{ 'width' : col.width ? col.width : null, 'background-color': rowData[col.id].color ? rowData[col.id].color : null }\"\r\n id=\"{{ rowData[col.id] != null ? rowData[col.id].id : '' }}\"\r\n [ngClass]=\"rowData[col.id] != null ? 'paddingCell' : null\"\r\n class=\"centerText\">\r\n <span class=\"p-column-title\">{{ col.libelle }} : </span>\r\n <img *ngIf=\"rowData[col.id]\" style=\"vertical-align: middle; width: 40px;\" src=\"{{ rowData[col.id].value }}\" />\r\n </td>\r\n\r\n <!-- Button -->\r\n <td *ngIf=\"checkType('Button', col)\"\r\n class=\"paddingCell centerText\"\r\n [ngStyle]=\"{ 'background-color': rowData[col.id].color ? rowData[col.id].color : null }\">\r\n <span class=\"p-column-title\">{{ col.libelle }} : </span>\r\n <button pButton\r\n [disabled]=\"rowData.readonly || rowData[col.id]?.readonly\"\r\n [ngClass]=\"'p-button-' + getOption(col, rowData, 'severity')\"\r\n [label]=\"getOption(col, rowData, 'label')\"\r\n [icon]=\"getOption(col, rowData, 'icon')\"\r\n (click)=\"rowData[col.id].value()\"\r\n [pTooltip]=\"getOption(col, rowData, 'label')\"\r\n [tooltipDisabled]=\"!col.tooltip\">\r\n </button>\r\n </td>\r\n\r\n <!-- SelectButton -->\r\n <td *ngIf=\"checkType('SelectButton', col) && isModeEdition() && !rowData.readonly && !rowData[col.id]?.readonly\"\r\n [ngStyle]=\"{ 'width' : col.width ? col.width : null, 'background-color': rowData[col.id].color ? rowData[col.id].color : null }\"\r\n id=\"{{ rowData[col.id] != null ? rowData[col.id].id : '' }}\"\r\n [ngClass]=\"rowData[col.id] != null ? 'paddingCell' : null\">\r\n <span class=\"p-column-title\">{{ col.libelle }} : </span>\r\n <p-selectButton *ngIf=\"rowData[col.id] != null\"\r\n [options]=\"getOption(col, rowData, 'options')\"\r\n [optionLabel]=\"getOption(col, rowData, 'optionLabel')\"\r\n [optionValue]=\"getOption(col, rowData, 'optionValue') != null ? getOption(col, rowData, 'optionValue') : 'value'\"\r\n [(ngModel)]=\"rowData[col.id].value\"\r\n [disabled]=\"rowData.readonly || rowData[col.id]?.readonly || !isModeEdition()\"\r\n (onChange)=\"onEditCell(rowData, col, rowData[col.id].value)\">\r\n </p-selectButton>\r\n </td>\r\n <td *ngIf=\"checkType('SelectButton', col) && (rowData.readonly || rowData[col.id]?.readonly || !isModeEdition())\"\r\n [ngStyle]=\"{ 'width' : col.width ? col.width : null, 'background-color': rowData[col.id].color ? rowData[col.id].color : null }\"\r\n id=\"{{ rowData[col.id] != null ? rowData[col.id].id : '' }}\"\r\n [ngClass]=\"rowData[col.id] != null ? 'paddingCell' : null\">\r\n <span class=\"p-column-title\">{{ col.libelle }} : </span>\r\n <span *ngIf=\"rowData[col.id]\">{{ getSelectLibelleByValue(rowData, col) }}</span>\r\n </td>\r\n\r\n <!-- File -->\r\n <td *ngIf=\"checkType('File', col) && isModeEdition() && !rowData.readonly && !rowData[col.id]?.readonly\"\r\n [ngStyle]=\"{ 'width' : col.width ? col.width : null, 'background-color': rowData[col.id].color ? rowData[col.id].color : null }\"\r\n id=\"{{ rowData[col.id] != null ? rowData[col.id].id : '' }}\"\r\n [ngClass]=\"rowData[col.id] != null ? 'paddingCell' : null\"\r\n [pTooltip]=\"rowData[col.id].value ? rowData[col.id].value : ''\"\r\n [tooltipDisabled]=\"!col.tooltip\">\r\n <span class=\"p-column-title\">{{ col.libelle }} : </span>\r\n <div class=\"p-inputgroup\" *ngIf=\"rowData[col.id] != null\">\r\n <button type=\"button\"\r\n pButton\r\n pRipple\r\n icon=\"pi pi-upload\"\r\n (click)=\"clickById('input_' + rowData[col.id].id)\"\r\n [disabled]=\"rowData.readonly || rowData[col.id]?.readonly || !isModeEdition()\">\r\n </button>\r\n <input id=\"{{'output_' + rowData[col.id].id}}\" pInputText type=\"text\" value=\"{{ rowData[col.id].value != null ? rowData[col.id].value : '' }}\" readonly>\r\n </div>\r\n <input *ngIf=\"rowData[col.id]\" id=\"{{'input_' + rowData[col.id].id}}\" #inputFile pInputText type=\"file\" hidden (change)=\"rowData[col.id].value = inputFile.files[0].name; onEditCell(rowData, col, inputFile.files[0])\">\r\n </td>\r\n <td *ngIf=\"checkType('File', col) && (rowData.readonly || rowData[col.id]?.readonly || !isModeEdition())\"\r\n [ngStyle]=\"{ 'width' : col.width ? col.width : null, 'background-color': rowData[col.id].color ? rowData[col.id].color : null }\"\r\n id=\"{{ rowData[col.id] != null ? rowData[col.id].id : '' }}\"\r\n [ngClass]=\"rowData[col.id] != null ? 'paddingCell' : null\"\r\n [pTooltip]=\"rowData[col.id].value ? rowData[col.id].value : ''\"\r\n [tooltipDisabled]=\"!col.tooltip\"\r\n tooltipPosition=\"bottom\">\r\n <span class=\"p-column-title\">{{ col.libelle }} : </span>\r\n <span *ngIf=\"rowData[col.id]\">{{ rowData[col.id].value ? rowData[col.id].value : '' }}</span>\r\n </td>\r\n\r\n <!-- State -->\r\n <td *ngIf=\"checkType('State', col)\"\r\n [ngStyle]=\"{ 'width' : col.width ? col.width : null, 'background-color': rowData[col.id].color ? rowData[col.id].color : null }\"\r\n id=\"{{ rowData[col.id] != null ? rowData[col.id].id : '' }}\"\r\n [ngClass]=\"rowData[col.id] != null ? 'paddingCell' : null\"\r\n class=\"centerText\">\r\n <span class=\"p-column-title\">{{ col.libelle }} : </span>\r\n <p-tag [value]=\"rowData[col.id].value[getOption(col, rowData, 'optionLabel')]\"\r\n [severity]=\"rowData[col.id].value.severity\"\r\n [icon]=\"rowData[col.id].value.icon\">\r\n </p-tag>\r\n </td>\r\n\r\n </ng-container>\r\n\r\n <!-- Deletion -->\r\n <td *ngIf=\"options.rowsDeletable\"\r\n class=\"cellDelete\"\r\n [ngClass]=\"rowData.deletable ? 'paddingCell' : null\">\r\n <button *ngIf=\"rowData.deletable\"\r\n pButton\r\n type=\"button\"\r\n icon=\"pi pi-times\"\r\n class=\"p-button-danger buttonDelete p-button-text\"\r\n [disabled]=\"rowData.readonly\"\r\n (click)=\"onDeleteLine(rowData)\">\r\n </button>\r\n </td>\r\n\r\n </tr>\r\n </ng-template>\r\n</p-table>\r\n",
417
- styles: ["::ng-deep .p-tooltip .p-tooltip-text{overflow-wrap:break-word!important}:host ::ng-deep .p-datatable-table{width:100%!important}:host ::ng-deep .p-datatable-tbody>tr>td>span,:host ::ng-deep .p-datatable-thead>tr>th>span{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}:host ::ng-deep .row_grouping{background:#faeada!important}:host ::ng-deep .text_bold{font-weight:700!important}:host ::ng-deep .cellDelete{flex:0 0 50px!important}:host ::ng-deep .p-datatable .p-sortable-column.p-highlight,:host ::ng-deep .p-datatable .p-sortable-column.p-highlight .p-sortable-column-icon{color:#2196f3!important}:host ::ng-deep .p-tooltip .p-tooltip-text{background-color:red!important}:host ::ng-deep .p-datatable-thead>tr>th{background:#dedddd!important;border:1px solid rgba(0,0,0,.12)!important;color:#495057!important;font-weight:600!important;overflow:hidden!important;padding-bottom:8px!important;padding-top:8px!important;text-overflow:ellipsis!important;white-space:nowrap!important}:host ::ng-deep .p-datatable-tbody>tr{height:35px!important}:host ::ng-deep .p-datatable-tbody>tr>td{border:1px solid rgba(0,0,0,.12)!important;min-width:0!important}:host ::ng-deep .centerText{justify-content:center!important}:host ::ng-deep .p-button{padding-bottom:1px;padding-top:1px}:host ::ng-deep .p-button-label{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;width:100%!important}:host ::ng-deep .p-calendar,:host ::ng-deep p-calendar,:host ::ng-deep p-dropdown,:host ::ng-deep p-inputNumber,:host ::ng-deep p-multiselect,:host ::ng-deep p-selectButton{width:100%!important}:host ::ng-deep .p-inputtext{height:25px!important;padding:4px 5px!important;width:100%!important}:host ::ng-deep .p-inputnumber{height:25px;padding:0!important;width:100%}:host ::ng-deep .p-inputnumber-input{padding:0 5px!important;width:100%}:host ::ng-deep .p-inputgroup .p-inputtext{height:25px;padding:4px 5px!important;width:100%}:host ::ng-deep .p-dropdown{vertical-align:middle;width:100%}:host ::ng-deep .p-dropdown-label{padding-bottom:2px;padding-top:2px}:host ::ng-deep .p-multiselect{vertical-align:middle;width:100%}:host ::ng-deep .p-multiselect-label{padding-bottom:2px;padding-top:2px}:host ::ng-deep .p-editable-column,:host ::ng-deep .paddingCell{padding:3px 10px!important}:host ::ng-deep .p-selectbutton>.p-button{height:25px;width:50%}:host ::ng-deep .p-inputgroup>.p-button{height:25px}:host ::ng-deep .buttonDelete{height:20px;width:100%}:host ::ng-deep .p-column-title{display:none}:host ::ng-deep .p-datatable-loading-icon{color:#fff}@media screen and (max-width:650px){:host ::ng-deep .p-datatable-tfoot>tr>td,:host ::ng-deep .p-datatable-thead>tr>th{display:none!important;width:inherit!important}:host ::ng-deep .p-datatable-tbody>tr{border:2px solid rgba(0,0,0,.12);flex-direction:column;height:inherit!important;padding-top:12px!important}:host ::ng-deep .p-datatable-tbody>tr>td{border:0!important;flex-basis:auto!important;width:100%!important}:host ::ng-deep td .p-column-title{display:inline-block!important;font-weight:700;margin:-.4rem 1rem -.4rem -.4rem;min-width:35%;padding:.4rem}:host ::ng-deep .centerText{justify-content:inherit!important}}"]
418
- },] }
419
- ];
420
- CilogTableComponent.ctorParameters = () => [
421
- { type: ConfirmationService },
422
- { type: FilterService },
423
- { type: ChangeDetectorRef }
424
- ];
425
- CilogTableComponent.propDecorators = {
426
- columns: [{ type: Input }],
427
- values: [{ type: Input }],
428
- options: [{ type: Input }],
429
- loading: [{ type: Input }],
430
- onEdit: [{ type: Output }],
431
- onEditInit: [{ type: Output }],
432
- onDelete: [{ type: Output }],
433
- onSelect: [{ type: Output }],
434
- onUnselect: [{ type: Output }],
435
- onFilter: [{ type: Output }],
436
- onSort: [{ type: Output }],
437
- onPage: [{ type: Output }],
438
- table: [{ type: ViewChild, args: ['table', { static: true },] }]
439
- };
440
-
441
- class CilogTableService {
442
- constructor() { }
443
- }
444
- CilogTableService.ɵprov = ɵɵdefineInjectable({ factory: function CilogTableService_Factory() { return new CilogTableService(); }, token: CilogTableService, providedIn: "root" });
445
- CilogTableService.decorators = [
446
- { type: Injectable, args: [{
447
- providedIn: 'root'
448
- },] }
449
- ];
450
- CilogTableService.ctorParameters = () => [];
451
-
452
- registerLocaleData(localeFr);
453
- class CilogLibModule {
454
- }
455
- CilogLibModule.decorators = [
456
- { type: NgModule, args: [{
457
- imports: [
458
- CommonModule,
459
- PrimengModule,
460
- BrowserModule,
461
- BrowserAnimationsModule,
462
- FormsModule,
463
- ReactiveFormsModule
464
- ],
465
- declarations: [
466
- CilogLibComponent,
467
- CilogMessageComponent,
468
- CilogTableComponent
469
- ],
470
- exports: [
471
- CilogMessageComponent,
472
- CilogTableComponent
473
- ],
474
- providers: [
475
- CilogMessageService,
476
- CilogTableService,
477
- ConfirmationService,
478
- { provide: LOCALE_ID, useValue: 'fr-FR' },
479
- ]
480
- },] }
481
- ];
482
-
483
- class CilogLibService {
484
- constructor() { }
485
- }
486
- CilogLibService.ɵprov = ɵɵdefineInjectable({ factory: function CilogLibService_Factory() { return new CilogLibService(); }, token: CilogLibService, providedIn: "root" });
487
- CilogLibService.decorators = [
488
- { type: Injectable, args: [{
489
- providedIn: 'root'
490
- },] }
491
- ];
492
- CilogLibService.ctorParameters = () => [];
493
-
494
- /*
495
- * Public API Surface of cilog-lib
496
- */
497
-
498
- /**
499
- * Generated bundle index. Do not edit.
500
- */
501
-
502
- export { CilogLibComponent, CilogLibModule, CilogLibService, CilogMessageService, CilogTableService, ColType, Severity, PrimengModule as ɵa, CilogMessageComponent as ɵb, CilogTableComponent as ɵc };
503
- //# sourceMappingURL=cilog-lib.js.map