@tilde-nlp/ngx-common 2.0.0 → 2.0.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 (96) hide show
  1. package/esm2020/lib/directives/drag-and-drop/drag-and-drop.directive.mjs +62 -0
  2. package/esm2020/lib/directives/drag-and-drop/drag-and-drop.module.mjs +24 -0
  3. package/esm2020/lib/directives/drag-and-drop/index.mjs +3 -0
  4. package/esm2020/lib/directives/index.mjs +2 -1
  5. package/esm2020/lib/file-upload/file-upload.component.mjs +107 -0
  6. package/esm2020/lib/file-upload/file-upload.module.mjs +42 -0
  7. package/esm2020/lib/file-upload/index.mjs +4 -0
  8. package/esm2020/lib/file-upload/models/file-upload-error-type.enum.mjs +8 -0
  9. package/esm2020/lib/file-upload/models/file-upload-error.model.mjs +2 -0
  10. package/esm2020/lib/file-upload/models/index.mjs +3 -0
  11. package/esm2020/lib/filter-bar/filter-bar.component.mjs +86 -0
  12. package/esm2020/lib/filter-bar/filter-bar.module.mjs +56 -0
  13. package/esm2020/lib/filter-bar/index.mjs +4 -0
  14. package/esm2020/lib/filter-bar/models/filter-bar-change-event.model.mjs +2 -0
  15. package/esm2020/lib/filter-bar/models/filter-bar-filter-item.model.mjs +2 -0
  16. package/esm2020/lib/filter-bar/models/filter-bar-filter.model.mjs +2 -0
  17. package/esm2020/lib/filter-bar/models/filter-bar-settings.model.mjs +2 -0
  18. package/esm2020/lib/filter-bar/models/index.mjs +4 -0
  19. package/esm2020/lib/helpers/html-element-parse.helper.mjs +14 -0
  20. package/esm2020/lib/helpers/index.mjs +4 -2
  21. package/esm2020/lib/helpers/{missing-translation-helper.mjs → missing-translation.helper.mjs} +1 -1
  22. package/esm2020/lib/helpers/save-file.helper.mjs +11 -0
  23. package/esm2020/lib/multi-functional-table/index.mjs +4 -0
  24. package/esm2020/lib/multi-functional-table/models/column-config.model.mjs +2 -0
  25. package/esm2020/lib/multi-functional-table/models/column-select-config.model.mjs +2 -0
  26. package/esm2020/lib/multi-functional-table/models/export-config.model.mjs +2 -0
  27. package/esm2020/lib/multi-functional-table/models/export-format.enum.mjs +5 -0
  28. package/esm2020/lib/multi-functional-table/models/filter-config.model.mjs +2 -0
  29. package/esm2020/lib/multi-functional-table/models/index.mjs +6 -0
  30. package/esm2020/lib/multi-functional-table/models/multi-functional-table-config.model.mjs +2 -0
  31. package/esm2020/lib/multi-functional-table/models/selected-column-local-storage-config.model.mjs +2 -0
  32. package/esm2020/lib/multi-functional-table/multi-functional-table.component.mjs +176 -0
  33. package/esm2020/lib/multi-functional-table/multi-functional-table.module.mjs +60 -0
  34. package/esm2020/lib/notification-message/notification-message.component.mjs +2 -2
  35. package/esm2020/lib/pipes/date-ago/date-ago.module.mjs +28 -0
  36. package/esm2020/lib/pipes/date-ago/date-ago.pipe.mjs +111 -0
  37. package/esm2020/lib/pipes/date-ago/index.mjs +3 -0
  38. package/esm2020/lib/pipes/date-ago/models/date-ago-interval.model.mjs +2 -0
  39. package/esm2020/lib/pipes/date-ago/models/date-ago-settings.model.mjs +2 -0
  40. package/esm2020/lib/pipes/date-ago/models/date-ago-settings.token.mjs +2 -0
  41. package/esm2020/lib/pipes/date-ago/models/date-ago.model.mjs +2 -0
  42. package/esm2020/lib/pipes/date-ago/models/index.mjs +5 -0
  43. package/esm2020/lib/pipes/index.mjs +2 -1
  44. package/esm2020/public-api.mjs +4 -1
  45. package/fesm2015/tilde-nlp-ngx-common.mjs +746 -8
  46. package/fesm2015/tilde-nlp-ngx-common.mjs.map +1 -1
  47. package/fesm2020/tilde-nlp-ngx-common.mjs +730 -8
  48. package/fesm2020/tilde-nlp-ngx-common.mjs.map +1 -1
  49. package/lib/directives/drag-and-drop/drag-and-drop.directive.d.ts +14 -0
  50. package/lib/directives/drag-and-drop/drag-and-drop.module.d.ts +8 -0
  51. package/lib/directives/drag-and-drop/index.d.ts +2 -0
  52. package/lib/directives/index.d.ts +1 -0
  53. package/lib/file-upload/file-upload.component.d.ts +29 -0
  54. package/lib/file-upload/file-upload.module.d.ts +13 -0
  55. package/lib/file-upload/index.d.ts +3 -0
  56. package/lib/file-upload/models/file-upload-error-type.enum.d.ts +6 -0
  57. package/lib/file-upload/models/file-upload-error.model.d.ts +6 -0
  58. package/lib/file-upload/models/index.d.ts +2 -0
  59. package/lib/filter-bar/filter-bar.component.d.ts +36 -0
  60. package/lib/filter-bar/filter-bar.module.d.ts +16 -0
  61. package/lib/filter-bar/index.d.ts +3 -0
  62. package/lib/filter-bar/models/filter-bar-change-event.model.d.ts +6 -0
  63. package/lib/filter-bar/models/filter-bar-filter-item.model.d.ts +4 -0
  64. package/lib/filter-bar/models/filter-bar-filter.model.d.ts +6 -0
  65. package/lib/filter-bar/models/filter-bar-settings.model.d.ts +19 -0
  66. package/lib/filter-bar/models/index.d.ts +3 -0
  67. package/lib/helpers/html-element-parse.helper.d.ts +3 -0
  68. package/lib/helpers/index.d.ts +3 -1
  69. package/lib/helpers/save-file.helper.d.ts +3 -0
  70. package/lib/multi-functional-table/index.d.ts +3 -0
  71. package/lib/multi-functional-table/models/column-config.model.d.ts +14 -0
  72. package/lib/multi-functional-table/models/column-select-config.model.d.ts +14 -0
  73. package/lib/multi-functional-table/models/export-config.model.d.ts +9 -0
  74. package/lib/multi-functional-table/models/export-format.enum.d.ts +3 -0
  75. package/lib/multi-functional-table/models/filter-config.model.d.ts +6 -0
  76. package/lib/multi-functional-table/models/index.d.ts +5 -0
  77. package/lib/multi-functional-table/models/multi-functional-table-config.model.d.ts +29 -0
  78. package/lib/multi-functional-table/models/selected-column-local-storage-config.model.d.ts +20 -0
  79. package/lib/multi-functional-table/multi-functional-table.component.d.ts +48 -0
  80. package/lib/multi-functional-table/multi-functional-table.module.d.ts +17 -0
  81. package/lib/pipes/date-ago/date-ago.module.d.ts +9 -0
  82. package/lib/pipes/date-ago/date-ago.pipe.d.ts +20 -0
  83. package/lib/pipes/date-ago/index.d.ts +2 -0
  84. package/lib/pipes/date-ago/models/date-ago-interval.model.d.ts +5 -0
  85. package/lib/pipes/date-ago/models/date-ago-settings.model.d.ts +26 -0
  86. package/lib/pipes/date-ago/models/date-ago-settings.token.d.ts +1 -0
  87. package/lib/pipes/date-ago/models/date-ago.model.d.ts +4 -0
  88. package/lib/pipes/date-ago/models/index.d.ts +4 -0
  89. package/lib/pipes/index.d.ts +1 -0
  90. package/package.json +1 -1
  91. package/public-api.d.ts +3 -0
  92. package/styles/components/icons.scss +16 -4
  93. package/styles/mixins/material-overrides/mat-progress-bar-overrides.mixin.scss +14 -0
  94. package/styles/mixins/material-overrides/material-overrides.mixin.scss +2 -0
  95. package/styles/mixins/tld-all-mixins.mixin.scss +9 -1
  96. /package/lib/helpers/{missing-translation-helper.d.ts → missing-translation.helper.d.ts} +0 -0
@@ -1,21 +1,40 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Directive, Input, HostListener, NgModule, Component, Pipe, EventEmitter, Output, ViewChild } from '@angular/core';
2
+ import { Injectable, Directive, Input, HostListener, NgModule, Component, Pipe, Inject, Optional, EventEmitter, Output, HostBinding, ViewChild, ElementRef, ContentChildren, ContentChild } from '@angular/core';
3
3
  import * as i1 from '@angular/material/icon';
4
+ import { MatIconModule } from '@angular/material/icon';
4
5
  import * as i2 from '@angular/platform-browser';
5
6
  import * as i1$1 from '@angular/common';
6
7
  import { CommonModule } from '@angular/common';
7
8
  import * as i2$1 from '@angular/material/tooltip';
8
9
  import { MatTooltipModule } from '@angular/material/tooltip';
9
10
  import * as i1$2 from '@ngx-translate/core';
10
- import { TranslateModule } from '@ngx-translate/core';
11
- import { Observable, of } from 'rxjs';
12
- import * as i1$3 from '@angular/material/button';
11
+ import { TranslateModule, TranslatePipe } from '@ngx-translate/core';
12
+ import { Observable, of, take } from 'rxjs';
13
+ import * as i5 from '@angular/material/button';
13
14
  import { MatButtonModule } from '@angular/material/button';
14
15
  import { FlexLayoutModule } from '@angular/flex-layout';
15
16
  import * as i6 from '@angular/router';
16
17
  import { RouterModule } from '@angular/router';
17
18
  import * as i2$2 from '@angular/flex-layout/flex';
18
19
  import * as i3 from '@angular/flex-layout/extended';
20
+ import * as i2$3 from '@angular/material/progress-bar';
21
+ import { MatProgressBarModule } from '@angular/material/progress-bar';
22
+ import * as i2$4 from '@angular/material/form-field';
23
+ import { MatFormFieldModule } from '@angular/material/form-field';
24
+ import * as i3$1 from '@angular/material/input';
25
+ import { MatInputModule } from '@angular/material/input';
26
+ import * as i5$1 from '@angular/material/select';
27
+ import { MatSelectModule } from '@angular/material/select';
28
+ import * as i6$1 from '@angular/material/core';
29
+ import * as i7 from '@angular/forms';
30
+ import { FormsModule } from '@angular/forms';
31
+ import { MatSort, MatSortModule } from '@angular/material/sort';
32
+ import * as i4 from '@angular/material/table';
33
+ import { MatNoDataRow, MatHeaderRowDef, MatRowDef, MatColumnDef, MatTable, MatTableModule } from '@angular/material/table';
34
+ import * as i6$2 from '@angular/material/menu';
35
+ import { MatMenuModule } from '@angular/material/menu';
36
+ import * as i7$1 from '@angular/material/checkbox';
37
+ import { MatCheckboxModule } from '@angular/material/checkbox';
19
38
 
20
39
  class IconService {
21
40
  constructor(iconRegistry, sanitizer) {
@@ -347,6 +366,137 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
347
366
  }]
348
367
  }] });
349
368
 
369
+ const DateAgoSettingsToken = "DATE_AGO_SETTINGS";
370
+
371
+ /**
372
+ * Pipe that converts date to date ago and returns translated string.
373
+ */
374
+ class DateAgoPipe {
375
+ constructor(translate, _ref, settings) {
376
+ this.translate = translate;
377
+ this._ref = _ref;
378
+ this.settings = settings;
379
+ this.defaultSettings = {
380
+ intervals: [
381
+ {
382
+ key: "YEAR",
383
+ interval: 31536000,
384
+ min: 1
385
+ },
386
+ {
387
+ key: "MONTH",
388
+ interval: 2592000,
389
+ min: 1
390
+ },
391
+ {
392
+ key: "WEEK",
393
+ interval: 604800,
394
+ min: 2
395
+ },
396
+ {
397
+ key: "DAY",
398
+ interval: 86400,
399
+ min: 1
400
+ },
401
+ {
402
+ key: "HOUR",
403
+ interval: 3600,
404
+ min: 1
405
+ },
406
+ {
407
+ key: "MINUTE",
408
+ interval: 60,
409
+ min: 1
410
+ },
411
+ {
412
+ key: "SECOND",
413
+ interval: 1,
414
+ min: 10
415
+ }
416
+ ],
417
+ localizationPrefix: "DATE_AGO",
418
+ multiplePostfix: "S",
419
+ justNowKey: "JUST_NOW",
420
+ justNowSeconds: 29
421
+ };
422
+ }
423
+ get intervals() { return this.settings?.intervals ?? this.defaultSettings.intervals; }
424
+ get multiplePostfix() { return this.settings?.multiplePostfix ?? this.defaultSettings.multiplePostfix; }
425
+ get localizationPrefix() { return this.settings?.localizationPrefix ?? this.defaultSettings.localizationPrefix; }
426
+ get justNowKey() { return this.settings?.justNowKey ?? this.defaultSettings.justNowKey; }
427
+ get justNowSeconds() { return this.settings?.justNowSeconds ?? this.defaultSettings.justNowSeconds; }
428
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
429
+ transform(value, enableMultiplePostfix = true) {
430
+ const dateAgo = this.calculateDateAgo(value, enableMultiplePostfix);
431
+ if (!dateAgo) {
432
+ return "";
433
+ }
434
+ const translatePipe = new TranslatePipe(this.translate, this._ref);
435
+ return translatePipe.transform(`${this.localizationPrefix}.${dateAgo.key}`, { value: dateAgo.howMany });
436
+ }
437
+ calculateDateAgo(value, enableMultiplePostfix) {
438
+ if (value) {
439
+ const seconds = Math.floor((new Date().getTime() - new Date(value).getTime()) / 1000);
440
+ if (seconds < this.justNowSeconds) // less than 30 seconds ago will show as 'Just now'
441
+ return { key: this.justNowKey };
442
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
443
+ let counter;
444
+ let type;
445
+ for (let i = 0; i < this.intervals.length; i++) {
446
+ const interval = this.intervals[i];
447
+ counter = Math.floor(seconds / interval.interval);
448
+ if (counter >= interval.min) {
449
+ type = interval.key;
450
+ if (enableMultiplePostfix && counter > 1) {
451
+ // add "S" in the end of localization key
452
+ type += this.multiplePostfix;
453
+ }
454
+ break;
455
+ }
456
+ }
457
+ return { key: type, howMany: counter };
458
+ }
459
+ return null;
460
+ }
461
+ }
462
+ DateAgoPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateAgoPipe, deps: [{ token: i1$2.TranslateService }, { token: i0.ChangeDetectorRef }, { token: DateAgoSettingsToken, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
463
+ DateAgoPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: DateAgoPipe, name: "dateAgo", pure: false });
464
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateAgoPipe, decorators: [{
465
+ type: Pipe,
466
+ args: [{
467
+ name: 'dateAgo',
468
+ pure: false
469
+ }]
470
+ }], ctorParameters: function () { return [{ type: i1$2.TranslateService }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
471
+ type: Inject,
472
+ args: [DateAgoSettingsToken]
473
+ }, {
474
+ type: Optional
475
+ }] }]; } });
476
+
477
+ class DateAgoModule {
478
+ }
479
+ DateAgoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateAgoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
480
+ DateAgoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: DateAgoModule, declarations: [DateAgoPipe], imports: [CommonModule,
481
+ TranslateModule], exports: [DateAgoPipe] });
482
+ DateAgoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateAgoModule, imports: [CommonModule,
483
+ TranslateModule] });
484
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateAgoModule, decorators: [{
485
+ type: NgModule,
486
+ args: [{
487
+ declarations: [
488
+ DateAgoPipe
489
+ ],
490
+ imports: [
491
+ CommonModule,
492
+ TranslateModule
493
+ ],
494
+ exports: [
495
+ DateAgoPipe
496
+ ]
497
+ }]
498
+ }] });
499
+
350
500
  class ClickOutsideDirective {
351
501
  constructor(elementRef) {
352
502
  this.elementRef = elementRef;
@@ -394,6 +544,86 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
394
544
  }]
395
545
  }] });
396
546
 
547
+ class DragAndDropDirective {
548
+ constructor(element) {
549
+ this.element = element;
550
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
551
+ this.fileDropped = new EventEmitter();
552
+ }
553
+ get disabled() { return this.element.nativeElement.disabled; }
554
+ // Dragover listener
555
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
556
+ onDragOver(evt) {
557
+ evt.preventDefault();
558
+ evt.stopPropagation();
559
+ this.active = !this.disabled;
560
+ }
561
+ // Dragleave listener
562
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
563
+ onDragLeave(evt) {
564
+ evt.preventDefault();
565
+ evt.stopPropagation();
566
+ this.active = false;
567
+ }
568
+ // Drop listener
569
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
570
+ ondrop(evt) {
571
+ evt.preventDefault();
572
+ evt.stopPropagation();
573
+ this.active = false;
574
+ if (this.disabled) {
575
+ return;
576
+ }
577
+ const files = evt.dataTransfer.files;
578
+ if (files.length > 0) {
579
+ this.fileDropped.emit(files);
580
+ }
581
+ }
582
+ }
583
+ DragAndDropDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DragAndDropDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
584
+ DragAndDropDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: DragAndDropDirective, selector: "[tldDragAndDrop]", outputs: { fileDropped: "fileDropped" }, host: { listeners: { "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "ondrop($event)" }, properties: { "class.tld-file-over": "this.active" } }, ngImport: i0 });
585
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DragAndDropDirective, decorators: [{
586
+ type: Directive,
587
+ args: [{
588
+ // eslint-disable-next-line @angular-eslint/directive-selector
589
+ selector: '[tldDragAndDrop]'
590
+ }]
591
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { active: [{
592
+ type: HostBinding,
593
+ args: ['class.tld-file-over']
594
+ }], fileDropped: [{
595
+ type: Output
596
+ }], onDragOver: [{
597
+ type: HostListener,
598
+ args: ['dragover', ['$event']]
599
+ }], onDragLeave: [{
600
+ type: HostListener,
601
+ args: ['dragleave', ['$event']]
602
+ }], ondrop: [{
603
+ type: HostListener,
604
+ args: ['drop', ['$event']]
605
+ }] } });
606
+
607
+ class DragAndDropModule {
608
+ }
609
+ DragAndDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DragAndDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
610
+ DragAndDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: DragAndDropModule, declarations: [DragAndDropDirective], imports: [CommonModule], exports: [DragAndDropDirective] });
611
+ DragAndDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DragAndDropModule, imports: [CommonModule] });
612
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DragAndDropModule, decorators: [{
613
+ type: NgModule,
614
+ args: [{
615
+ declarations: [
616
+ DragAndDropDirective
617
+ ],
618
+ imports: [
619
+ CommonModule
620
+ ],
621
+ exports: [
622
+ DragAndDropDirective
623
+ ]
624
+ }]
625
+ }] });
626
+
397
627
  class CloseButtonComponent {
398
628
  constructor() {
399
629
  // any type because emitter doesn't really need a value
@@ -406,7 +636,7 @@ class CloseButtonComponent {
406
636
  }
407
637
  }
408
638
  CloseButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CloseButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
409
- CloseButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CloseButtonComponent, selector: "tld-close-button", inputs: { ariaCode: "ariaCode", disabled: "disabled", tooltip: "tooltip" }, outputs: { tldClick: "tldClick" }, viewQueries: [{ propertyName: "clearButton", first: true, predicate: ["clearButton"], descendants: true }], ngImport: i0, template: "<button [matTooltip]=\"tooltip | translate\"\r\n#clearButton mat-icon-button (click)=\"clicked()\" [attr.aria-label]=\"'ARIA_LABELS.'+ariaCode | translate\"\r\n [disabled]=\"disabled\">\r\n <span class=\"material-icons\">\r\n close\r\n </span>\r\n</button>", dependencies: [{ kind: "component", type: i1$3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i2$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }] });
639
+ CloseButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: CloseButtonComponent, selector: "tld-close-button", inputs: { ariaCode: "ariaCode", disabled: "disabled", tooltip: "tooltip" }, outputs: { tldClick: "tldClick" }, viewQueries: [{ propertyName: "clearButton", first: true, predicate: ["clearButton"], descendants: true }], ngImport: i0, template: "<button [matTooltip]=\"tooltip | translate\"\r\n#clearButton mat-icon-button (click)=\"clicked()\" [attr.aria-label]=\"'ARIA_LABELS.'+ariaCode | translate\"\r\n [disabled]=\"disabled\">\r\n <span class=\"material-icons\">\r\n close\r\n </span>\r\n</button>", dependencies: [{ kind: "component", type: i5.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i2$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }] });
410
640
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CloseButtonComponent, decorators: [{
411
641
  type: Component,
412
642
  args: [{ selector: 'tld-close-button', template: "<button [matTooltip]=\"tooltip | translate\"\r\n#clearButton mat-icon-button (click)=\"clicked()\" [attr.aria-label]=\"'ARIA_LABELS.'+ariaCode | translate\"\r\n [disabled]=\"disabled\">\r\n <span class=\"material-icons\">\r\n close\r\n </span>\r\n</button>" }]
@@ -478,10 +708,10 @@ class NotificationMessageComponent {
478
708
  }
479
709
  }
480
710
  NotificationMessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NotificationMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
481
- NotificationMessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: NotificationMessageComponent, selector: "lib-tld-notification-message", inputs: { message: "message", inline: "inline" }, outputs: { buttonClicked: "buttonClicked", closeClicked: "closeClicked", linkClicked: "linkClicked" }, ngImport: i0, template: "<div class=\"notification-message {{className}}\">\r\n <div class=\"notification-message-container tld-default-border\" [ngClass.lt-md]=\"'mobile'\" [class.inline]=\"inline\"\r\n fxLayout=\"row\" fxLayoutAlign=\"start start\" [attr.id]=\"message.id\" aria-live=\"polite\" fxLayout=\"row\">\r\n <span class=\"material-icons message-icon\">\r\n {{iconNames[message.type]}}\r\n </span>\r\n <div class=\"items-container\" fxFlex>\r\n <div fxLayout=\"row\">\r\n <div class=\"text-container\" fxFlex>\r\n <h1 *ngIf=\"message.title\" class=\"message-title\"\r\n [innerHtml]=\"message.title | translate: message.localizationParams\"></h1>\r\n <p *ngIf=\"message.body\" class=\"message-body\">\r\n <span [innerHtml]=\"message.body | translate: message.localizationParams\"></span>\r\n <span *ngIf=\"message.support\" [innerHtml]=\"message.support | translate: message.localizationParams\"></span>\r\n </p>\r\n </div>\r\n <tld-close-button *ngIf=\"!message.hideClose\" class=\"close-button\" (tldClick)=\"closeClick()\">\r\n </tld-close-button>\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutGap=\"16px\" fxLayoutAlign=\"start center\"\r\n *ngIf=\"message.buttonText || message.linkHref || message.routerLink\">\r\n <button class=\"message-action-button\" color=\"accent\" mat-flat-button *ngIf=\"message.buttonText\"\r\n (click)=\"buttonClick()\">{{message.buttonText | translate}} </button>\r\n <a class=\"message-action-link\" *ngIf=\"message.linkHref && message.linkText\" (click)=\"linkClick()\"\r\n [attr.href]=\"message.linkHref\">{{message.linkText |\r\n translate}}</a>\r\n <a class=\"message-action-link\" *ngIf=\"message.routerLink && message.linkText\" (click)=\"linkClick()\"\r\n [routerLink]=\"[message.routerLink]\">{{message.linkText |\r\n translate}}</a>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".notification-message.basic .notification-message-container{background-color:var(--base-100);border-color:var(--base-100)}.notification-message.basic .notification-message-container .message-icon{color:var(--base-40)}.notification-message.basic .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.error .notification-message-container{background-color:var(--error-light);border-color:var(--base-100)}.notification-message.error .notification-message-container .message-icon{color:var(--error-dark)}.notification-message.error .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.warning .notification-message-container{background-color:var(--warning-light);border-color:var(--base-100)}.notification-message.warning .notification-message-container .message-icon{color:var(--warning-dark)}.notification-message.warning .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.success .notification-message-container{background-color:var(--success-light);border-color:var(--base-100)}.notification-message.success .notification-message-container .message-icon{color:var(--success-dark)}.notification-message.success .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message .notification-message-container{border:1px solid var(--base-95);border-radius:.5em}.notification-message .notification-message-container.mobile{padding:.6em .4em!important}.notification-message .notification-message-container.mobile .items-container{margin-left:.4em!important}.notification-message .notification-message-container.mobile .items-container div+div{margin-top:.2em!important}.notification-message .notification-message-container.mobile .items-container .message-title+.message-body{margin-top:0!important}.notification-message .notification-message-container .text-container:first-child{line-height:1.5em}.notification-message .notification-message-container .text-container .message-title{font-weight:500;margin:0}.notification-message .notification-message-container .text-container .message-body{margin:0}.notification-message .notification-message-container:not(.inline){padding:1.5em}.notification-message .notification-message-container:not(.inline) .items-container{margin-left:1em}.notification-message .notification-message-container:not(.inline) .items-container div+div,.notification-message .notification-message-container:not(.inline) .items-container .message-title+.message-body{margin-top:1em}.notification-message .notification-message-container:not(.inline) .message-title{font-size:1.25em}.notification-message .notification-message-container:not(.inline) .message-body{line-height:1.5em}.notification-message .notification-message-container.inline{padding:.75em 1em}.notification-message .notification-message-container.inline .items-container{margin-left:.75em}.notification-message .notification-message-container.inline .items-container div+div{margin-top:.5em}.notification-message .notification-message-container.inline .items-container .message-title+.message-body{margin-top:.2em}.notification-message .notification-message-container.inline .message-title{font-size:1em}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i2$2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i2$2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i2$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i3.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: CloseButtonComponent, selector: "tld-close-button", inputs: ["ariaCode", "disabled", "tooltip"], outputs: ["tldClick"] }, { kind: "component", type: i1$3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i6.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }] });
711
+ NotificationMessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: NotificationMessageComponent, selector: "lib-tld-notification-message", inputs: { message: "message", inline: "inline" }, outputs: { buttonClicked: "buttonClicked", closeClicked: "closeClicked", linkClicked: "linkClicked" }, ngImport: i0, template: "<div class=\"notification-message {{className}}\">\r\n <div class=\"notification-message-container tld-default-border\" [ngClass.lt-md]=\"'mobile'\" [class.inline]=\"inline\"\r\n fxLayout=\"row\" fxLayoutAlign=\"start start\" [attr.id]=\"message.id\" aria-live=\"polite\" fxLayout=\"row\">\r\n <span class=\"material-icons message-icon\">\r\n {{iconNames[message.type]}}\r\n </span>\r\n <div class=\"items-container\" fxFlex>\r\n <div fxLayout=\"row\">\r\n <div class=\"text-container\" fxFlex>\r\n <h1 *ngIf=\"message.title\" class=\"message-title\"\r\n [innerHtml]=\"message.title | translate: message.localizationParams\"></h1>\r\n <p *ngIf=\"message.body\" class=\"message-body\">\r\n <span [innerHtml]=\"message.body | translate: message.localizationParams\"></span>\r\n <span *ngIf=\"message.support\" [innerHtml]=\"message.support | translate: message.localizationParams\"></span>\r\n </p>\r\n </div>\r\n <tld-close-button *ngIf=\"!message.hideClose\" class=\"close-button\" (tldClick)=\"closeClick()\">\r\n </tld-close-button>\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutGap=\"16px\" fxLayoutAlign=\"start center\"\r\n *ngIf=\"message.buttonText || message.linkHref || message.routerLink\">\r\n <button class=\"message-action-button\" color=\"accent\" mat-flat-button *ngIf=\"message.buttonText\"\r\n (click)=\"buttonClick()\">{{message.buttonText | translate}} </button>\r\n <a class=\"message-action-link\" *ngIf=\"message.linkHref && message.linkText\" (click)=\"linkClick()\"\r\n [attr.href]=\"message.linkHref\">{{message.linkText |\r\n translate}}</a>\r\n <a class=\"message-action-link\" *ngIf=\"message.routerLink && message.linkText\" (click)=\"linkClick()\"\r\n [routerLink]=\"[message.routerLink]\">{{message.linkText |\r\n translate}}</a>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [":host{display:inline-block;width:100%}.notification-message.basic .notification-message-container{background-color:var(--base-100);border-color:var(--base-100)}.notification-message.basic .notification-message-container .message-icon{color:var(--base-40)}.notification-message.basic .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.error .notification-message-container{background-color:var(--error-light);border-color:var(--base-100)}.notification-message.error .notification-message-container .message-icon{color:var(--error-dark)}.notification-message.error .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.warning .notification-message-container{background-color:var(--warning-light);border-color:var(--base-100)}.notification-message.warning .notification-message-container .message-icon{color:var(--warning-dark)}.notification-message.warning .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.success .notification-message-container{background-color:var(--success-light);border-color:var(--base-100)}.notification-message.success .notification-message-container .message-icon{color:var(--success-dark)}.notification-message.success .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message .notification-message-container{border:1px solid var(--base-95);border-radius:.5em}.notification-message .notification-message-container.mobile{padding:.6em .4em!important}.notification-message .notification-message-container.mobile .items-container{margin-left:.4em!important}.notification-message .notification-message-container.mobile .items-container div+div{margin-top:.2em!important}.notification-message .notification-message-container.mobile .items-container .message-title+.message-body{margin-top:0!important}.notification-message .notification-message-container .text-container:first-child{line-height:1.5em}.notification-message .notification-message-container .text-container .message-title{font-weight:500;margin:0}.notification-message .notification-message-container .text-container .message-body{margin:0}.notification-message .notification-message-container:not(.inline){padding:1.5em}.notification-message .notification-message-container:not(.inline) .items-container{margin-left:1em}.notification-message .notification-message-container:not(.inline) .items-container div+div,.notification-message .notification-message-container:not(.inline) .items-container .message-title+.message-body{margin-top:1em}.notification-message .notification-message-container:not(.inline) .message-title{font-size:1.25em}.notification-message .notification-message-container:not(.inline) .message-body{line-height:1.5em}.notification-message .notification-message-container.inline{padding:.75em 1em}.notification-message .notification-message-container.inline .items-container{margin-left:.75em}.notification-message .notification-message-container.inline .items-container div+div{margin-top:.5em}.notification-message .notification-message-container.inline .items-container .message-title+.message-body{margin-top:.2em}.notification-message .notification-message-container.inline .message-title{font-size:1em}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i2$2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i2$2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i2$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i3.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: CloseButtonComponent, selector: "tld-close-button", inputs: ["ariaCode", "disabled", "tooltip"], outputs: ["tldClick"] }, { kind: "component", type: i5.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i6.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }] });
482
712
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NotificationMessageComponent, decorators: [{
483
713
  type: Component,
484
- args: [{ selector: 'lib-tld-notification-message', template: "<div class=\"notification-message {{className}}\">\r\n <div class=\"notification-message-container tld-default-border\" [ngClass.lt-md]=\"'mobile'\" [class.inline]=\"inline\"\r\n fxLayout=\"row\" fxLayoutAlign=\"start start\" [attr.id]=\"message.id\" aria-live=\"polite\" fxLayout=\"row\">\r\n <span class=\"material-icons message-icon\">\r\n {{iconNames[message.type]}}\r\n </span>\r\n <div class=\"items-container\" fxFlex>\r\n <div fxLayout=\"row\">\r\n <div class=\"text-container\" fxFlex>\r\n <h1 *ngIf=\"message.title\" class=\"message-title\"\r\n [innerHtml]=\"message.title | translate: message.localizationParams\"></h1>\r\n <p *ngIf=\"message.body\" class=\"message-body\">\r\n <span [innerHtml]=\"message.body | translate: message.localizationParams\"></span>\r\n <span *ngIf=\"message.support\" [innerHtml]=\"message.support | translate: message.localizationParams\"></span>\r\n </p>\r\n </div>\r\n <tld-close-button *ngIf=\"!message.hideClose\" class=\"close-button\" (tldClick)=\"closeClick()\">\r\n </tld-close-button>\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutGap=\"16px\" fxLayoutAlign=\"start center\"\r\n *ngIf=\"message.buttonText || message.linkHref || message.routerLink\">\r\n <button class=\"message-action-button\" color=\"accent\" mat-flat-button *ngIf=\"message.buttonText\"\r\n (click)=\"buttonClick()\">{{message.buttonText | translate}} </button>\r\n <a class=\"message-action-link\" *ngIf=\"message.linkHref && message.linkText\" (click)=\"linkClick()\"\r\n [attr.href]=\"message.linkHref\">{{message.linkText |\r\n translate}}</a>\r\n <a class=\"message-action-link\" *ngIf=\"message.routerLink && message.linkText\" (click)=\"linkClick()\"\r\n [routerLink]=\"[message.routerLink]\">{{message.linkText |\r\n translate}}</a>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".notification-message.basic .notification-message-container{background-color:var(--base-100);border-color:var(--base-100)}.notification-message.basic .notification-message-container .message-icon{color:var(--base-40)}.notification-message.basic .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.error .notification-message-container{background-color:var(--error-light);border-color:var(--base-100)}.notification-message.error .notification-message-container .message-icon{color:var(--error-dark)}.notification-message.error .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.warning .notification-message-container{background-color:var(--warning-light);border-color:var(--base-100)}.notification-message.warning .notification-message-container .message-icon{color:var(--warning-dark)}.notification-message.warning .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.success .notification-message-container{background-color:var(--success-light);border-color:var(--base-100)}.notification-message.success .notification-message-container .message-icon{color:var(--success-dark)}.notification-message.success .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message .notification-message-container{border:1px solid var(--base-95);border-radius:.5em}.notification-message .notification-message-container.mobile{padding:.6em .4em!important}.notification-message .notification-message-container.mobile .items-container{margin-left:.4em!important}.notification-message .notification-message-container.mobile .items-container div+div{margin-top:.2em!important}.notification-message .notification-message-container.mobile .items-container .message-title+.message-body{margin-top:0!important}.notification-message .notification-message-container .text-container:first-child{line-height:1.5em}.notification-message .notification-message-container .text-container .message-title{font-weight:500;margin:0}.notification-message .notification-message-container .text-container .message-body{margin:0}.notification-message .notification-message-container:not(.inline){padding:1.5em}.notification-message .notification-message-container:not(.inline) .items-container{margin-left:1em}.notification-message .notification-message-container:not(.inline) .items-container div+div,.notification-message .notification-message-container:not(.inline) .items-container .message-title+.message-body{margin-top:1em}.notification-message .notification-message-container:not(.inline) .message-title{font-size:1.25em}.notification-message .notification-message-container:not(.inline) .message-body{line-height:1.5em}.notification-message .notification-message-container.inline{padding:.75em 1em}.notification-message .notification-message-container.inline .items-container{margin-left:.75em}.notification-message .notification-message-container.inline .items-container div+div{margin-top:.5em}.notification-message .notification-message-container.inline .items-container .message-title+.message-body{margin-top:.2em}.notification-message .notification-message-container.inline .message-title{font-size:1em}\n"] }]
714
+ args: [{ selector: 'lib-tld-notification-message', template: "<div class=\"notification-message {{className}}\">\r\n <div class=\"notification-message-container tld-default-border\" [ngClass.lt-md]=\"'mobile'\" [class.inline]=\"inline\"\r\n fxLayout=\"row\" fxLayoutAlign=\"start start\" [attr.id]=\"message.id\" aria-live=\"polite\" fxLayout=\"row\">\r\n <span class=\"material-icons message-icon\">\r\n {{iconNames[message.type]}}\r\n </span>\r\n <div class=\"items-container\" fxFlex>\r\n <div fxLayout=\"row\">\r\n <div class=\"text-container\" fxFlex>\r\n <h1 *ngIf=\"message.title\" class=\"message-title\"\r\n [innerHtml]=\"message.title | translate: message.localizationParams\"></h1>\r\n <p *ngIf=\"message.body\" class=\"message-body\">\r\n <span [innerHtml]=\"message.body | translate: message.localizationParams\"></span>\r\n <span *ngIf=\"message.support\" [innerHtml]=\"message.support | translate: message.localizationParams\"></span>\r\n </p>\r\n </div>\r\n <tld-close-button *ngIf=\"!message.hideClose\" class=\"close-button\" (tldClick)=\"closeClick()\">\r\n </tld-close-button>\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutGap=\"16px\" fxLayoutAlign=\"start center\"\r\n *ngIf=\"message.buttonText || message.linkHref || message.routerLink\">\r\n <button class=\"message-action-button\" color=\"accent\" mat-flat-button *ngIf=\"message.buttonText\"\r\n (click)=\"buttonClick()\">{{message.buttonText | translate}} </button>\r\n <a class=\"message-action-link\" *ngIf=\"message.linkHref && message.linkText\" (click)=\"linkClick()\"\r\n [attr.href]=\"message.linkHref\">{{message.linkText |\r\n translate}}</a>\r\n <a class=\"message-action-link\" *ngIf=\"message.routerLink && message.linkText\" (click)=\"linkClick()\"\r\n [routerLink]=\"[message.routerLink]\">{{message.linkText |\r\n translate}}</a>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [":host{display:inline-block;width:100%}.notification-message.basic .notification-message-container{background-color:var(--base-100);border-color:var(--base-100)}.notification-message.basic .notification-message-container .message-icon{color:var(--base-40)}.notification-message.basic .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.error .notification-message-container{background-color:var(--error-light);border-color:var(--base-100)}.notification-message.error .notification-message-container .message-icon{color:var(--error-dark)}.notification-message.error .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.warning .notification-message-container{background-color:var(--warning-light);border-color:var(--base-100)}.notification-message.warning .notification-message-container .message-icon{color:var(--warning-dark)}.notification-message.warning .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.success .notification-message-container{background-color:var(--success-light);border-color:var(--base-100)}.notification-message.success .notification-message-container .message-icon{color:var(--success-dark)}.notification-message.success .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message .notification-message-container{border:1px solid var(--base-95);border-radius:.5em}.notification-message .notification-message-container.mobile{padding:.6em .4em!important}.notification-message .notification-message-container.mobile .items-container{margin-left:.4em!important}.notification-message .notification-message-container.mobile .items-container div+div{margin-top:.2em!important}.notification-message .notification-message-container.mobile .items-container .message-title+.message-body{margin-top:0!important}.notification-message .notification-message-container .text-container:first-child{line-height:1.5em}.notification-message .notification-message-container .text-container .message-title{font-weight:500;margin:0}.notification-message .notification-message-container .text-container .message-body{margin:0}.notification-message .notification-message-container:not(.inline){padding:1.5em}.notification-message .notification-message-container:not(.inline) .items-container{margin-left:1em}.notification-message .notification-message-container:not(.inline) .items-container div+div,.notification-message .notification-message-container:not(.inline) .items-container .message-title+.message-body{margin-top:1em}.notification-message .notification-message-container:not(.inline) .message-title{font-size:1.25em}.notification-message .notification-message-container:not(.inline) .message-body{line-height:1.5em}.notification-message .notification-message-container.inline{padding:.75em 1em}.notification-message .notification-message-container.inline .items-container{margin-left:.75em}.notification-message .notification-message-container.inline .items-container div+div{margin-top:.5em}.notification-message .notification-message-container.inline .items-container .message-title+.message-body{margin-top:.2em}.notification-message .notification-message-container.inline .message-title{font-size:1em}\n"] }]
485
715
  }], propDecorators: { message: [{
486
716
  type: Input
487
717
  }], buttonClicked: [{
@@ -570,6 +800,31 @@ class MissingTranslationHelper {
570
800
  }
571
801
  }
572
802
 
803
+ class SaveFileHelper {
804
+ static saveFile(content, fileName) {
805
+ const file = new Blob([content]);
806
+ const link = document.createElement("a");
807
+ link.href = URL.createObjectURL(file);
808
+ link.download = fileName;
809
+ link.click();
810
+ link.remove();
811
+ }
812
+ }
813
+
814
+ class HtmlElementParseHelper {
815
+ static tableAsCsv(tableElement) {
816
+ const csv_data = [];
817
+ const rows = tableElement.querySelectorAll('tr');
818
+ for (let i = 0; i < rows.length; i++) {
819
+ const cols = rows[i].querySelectorAll('td,th');
820
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
821
+ const csvrow = Array.from(cols).map((element) => element.innerText);
822
+ csv_data.push(csvrow.join(","));
823
+ }
824
+ return csv_data.join('\n');
825
+ }
826
+ }
827
+
573
828
  class CompanyProductComponent {
574
829
  constructor() {
575
830
  this.company = "";
@@ -663,6 +918,473 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
663
918
  }]
664
919
  }] });
665
920
 
921
+ var FileUploadErrorTypeEnum;
922
+ (function (FileUploadErrorTypeEnum) {
923
+ FileUploadErrorTypeEnum["FILE_UPLOAD_UNSUPPORTED_FORMAT"] = "FILE_UPLOAD_UNSUPPORTED_FORMAT";
924
+ FileUploadErrorTypeEnum["FILE_UPLOAD_UNSUPPORTED_FORMAT_REGISTER"] = "FILE_UPLOAD_UNSUPPORTED_FORMAT_REGISTER";
925
+ FileUploadErrorTypeEnum["MAX_SIZE"] = "FILE_UPLOAD_MAX_SIZE";
926
+ FileUploadErrorTypeEnum["FILE_EMPTY"] = "FILE_UPLOAD_EMPTY";
927
+ })(FileUploadErrorTypeEnum || (FileUploadErrorTypeEnum = {}));
928
+
929
+ class FileUploadComponent {
930
+ constructor() {
931
+ this.fileChange = new EventEmitter();
932
+ this.errorEvent = new EventEmitter();
933
+ this._accept = [];
934
+ this.multiple = false;
935
+ }
936
+ set accept(val) {
937
+ this._accept = val;
938
+ this.allowedExtensions = val ? val.join(",") : "";
939
+ }
940
+ get accept() { return this._accept; }
941
+ handleFileInput(event) {
942
+ const target = event.target;
943
+ const files = target.files;
944
+ this.validate(files);
945
+ }
946
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
947
+ onFileDrop(files) {
948
+ this.validate(files);
949
+ }
950
+ emit(files) {
951
+ if (files && files.length > 0) {
952
+ this.fileChange.emit(files);
953
+ }
954
+ }
955
+ emitError(error) {
956
+ this.errorEvent.emit(error);
957
+ }
958
+ validate(files) {
959
+ //let size = 0;
960
+ const validFiles = [];
961
+ for (let i = 0; i < files.length; i++) {
962
+ const file = files[i];
963
+ if (!this.allowEmpty && file.size == 0) {
964
+ this.emitError({ code: FileUploadErrorTypeEnum.FILE_EMPTY, error: "File is empty", fileName: file.name });
965
+ return;
966
+ }
967
+ //size += file.size;
968
+ const extensionErrorCode = this.getExtensionErrorCode(file.name);
969
+ if (extensionErrorCode) {
970
+ const error = { code: extensionErrorCode, error: "Not valid extension.", fileName: file.name };
971
+ this.emitError(error);
972
+ }
973
+ else if (this.maxSize && file.size > this.maxSize) {
974
+ const error = { code: FileUploadErrorTypeEnum.MAX_SIZE, error: "Maximum allowed file size exceeded.", fileName: file.name };
975
+ this.emitError(error);
976
+ }
977
+ else {
978
+ validFiles.push(file);
979
+ }
980
+ }
981
+ this.emit(validFiles);
982
+ this.fileInput.nativeElement.value = '';
983
+ }
984
+ getExtensionErrorCode(fileName) {
985
+ const extension = fileName.slice(fileName.lastIndexOf('.')).toLowerCase();
986
+ if (this.accept.length == 0 || (this.accept.length == 1 && this.accept[0] == '*') || this.accept.includes(extension)) {
987
+ return null;
988
+ }
989
+ else {
990
+ return this.extendedAcceptList?.includes(extension) ? FileUploadErrorTypeEnum.FILE_UPLOAD_UNSUPPORTED_FORMAT_REGISTER : FileUploadErrorTypeEnum.FILE_UPLOAD_UNSUPPORTED_FORMAT;
991
+ }
992
+ }
993
+ }
994
+ FileUploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FileUploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
995
+ FileUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FileUploadComponent, selector: "tld-file-upload", inputs: { accept: "accept", maxSize: "maxSize", multiple: "multiple", filePreviewProgress: "filePreviewProgress", allowEmpty: "allowEmpty", disabled: "disabled", uploadIconName: "uploadIconName", extendedAcceptList: "extendedAcceptList" }, outputs: { fileChange: "fileChange", errorEvent: "errorEvent" }, viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true }, { propertyName: "inputButton", first: true, predicate: ["inputButton"], descendants: true, read: ElementRef }], ngImport: i0, template: "<div class=\"file-upload\" [ngClass.lt-sm]=\"'file-upload-mobile'\">\r\n <mat-progress-bar class=\"tld-file-upload-progress\" color=\"primary\" [value]=\"filePreviewProgress\"\r\n *ngIf=\"filePreviewProgress\"></mat-progress-bar>\r\n <button tldDragAndDrop #inputButton mat-button (fileDropped)=\"onFileDrop($event)\" [disabled]=\"disabled\" type=\"button\"\r\n (click)=\"fileInput.click()\" class=\"upload-button text-l\">\r\n <mat-icon *ngIf=\"uploadIconName\">{{uploadIconName}}</mat-icon>\r\n <ng-content></ng-content>\r\n </button>\r\n</div>\r\n<input #fileInput type=\"file\" (change)=\"handleFileInput($event)\" name=\"files\" class=\"native-file-input\"\r\n [accept]=\"allowedExtensions\" [multiple]=\"multiple\" />\r\n", styles: [".file-upload{max-width:100%;width:100%}.file-upload .upload-button{width:100%;font-size:1em;border:1px dashed #9aa5b1;border-radius:16px;background-color:#fff;font-family:var(--tld-font);padding:1em;white-space:normal;line-height:normal;text-align:left}.file-upload-mobile .upload-button{border:2px solid var(--base-70);padding:.5em 1em!important}.tld-file-over{background-color:#e5e7e8!important;border-color:#00f!important}.mat-icon{color:var(--accent);margin-right:16px}.mat-stroked-button .mat-button-wrapper{pointer-events:none}.native-file-input{display:none}.tld-file-upload-progress ::ng-deep .mat-progress-bar-fill:after{background-color:#1e457c}.tld-file-upload-progress ::ng-deep .mat-progress-bar-buffer{background:white}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$3.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i3.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: i5.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: DragAndDropDirective, selector: "[tldDragAndDrop]", outputs: ["fileDropped"] }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
996
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FileUploadComponent, decorators: [{
997
+ type: Component,
998
+ args: [{ selector: 'tld-file-upload', template: "<div class=\"file-upload\" [ngClass.lt-sm]=\"'file-upload-mobile'\">\r\n <mat-progress-bar class=\"tld-file-upload-progress\" color=\"primary\" [value]=\"filePreviewProgress\"\r\n *ngIf=\"filePreviewProgress\"></mat-progress-bar>\r\n <button tldDragAndDrop #inputButton mat-button (fileDropped)=\"onFileDrop($event)\" [disabled]=\"disabled\" type=\"button\"\r\n (click)=\"fileInput.click()\" class=\"upload-button text-l\">\r\n <mat-icon *ngIf=\"uploadIconName\">{{uploadIconName}}</mat-icon>\r\n <ng-content></ng-content>\r\n </button>\r\n</div>\r\n<input #fileInput type=\"file\" (change)=\"handleFileInput($event)\" name=\"files\" class=\"native-file-input\"\r\n [accept]=\"allowedExtensions\" [multiple]=\"multiple\" />\r\n", styles: [".file-upload{max-width:100%;width:100%}.file-upload .upload-button{width:100%;font-size:1em;border:1px dashed #9aa5b1;border-radius:16px;background-color:#fff;font-family:var(--tld-font);padding:1em;white-space:normal;line-height:normal;text-align:left}.file-upload-mobile .upload-button{border:2px solid var(--base-70);padding:.5em 1em!important}.tld-file-over{background-color:#e5e7e8!important;border-color:#00f!important}.mat-icon{color:var(--accent);margin-right:16px}.mat-stroked-button .mat-button-wrapper{pointer-events:none}.native-file-input{display:none}.tld-file-upload-progress ::ng-deep .mat-progress-bar-fill:after{background-color:#1e457c}.tld-file-upload-progress ::ng-deep .mat-progress-bar-buffer{background:white}\n"] }]
999
+ }], propDecorators: { fileInput: [{
1000
+ type: ViewChild,
1001
+ args: ['fileInput']
1002
+ }], inputButton: [{
1003
+ type: ViewChild,
1004
+ args: ['inputButton', { read: ElementRef }]
1005
+ }], fileChange: [{
1006
+ type: Output
1007
+ }], errorEvent: [{
1008
+ type: Output
1009
+ }], accept: [{
1010
+ type: Input
1011
+ }], maxSize: [{
1012
+ type: Input
1013
+ }], multiple: [{
1014
+ type: Input
1015
+ }], filePreviewProgress: [{
1016
+ type: Input
1017
+ }], allowEmpty: [{
1018
+ type: Input
1019
+ }], disabled: [{
1020
+ type: Input
1021
+ }], uploadIconName: [{
1022
+ type: Input
1023
+ }], extendedAcceptList: [{
1024
+ type: Input
1025
+ }] } });
1026
+
1027
+ class FileUploadModule {
1028
+ }
1029
+ FileUploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FileUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1030
+ FileUploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: FileUploadModule, declarations: [FileUploadComponent], imports: [CommonModule,
1031
+ MatProgressBarModule,
1032
+ FlexLayoutModule,
1033
+ MatButtonModule,
1034
+ DragAndDropModule,
1035
+ MatIconModule], exports: [FileUploadComponent] });
1036
+ FileUploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FileUploadModule, imports: [CommonModule,
1037
+ MatProgressBarModule,
1038
+ FlexLayoutModule,
1039
+ MatButtonModule,
1040
+ DragAndDropModule,
1041
+ MatIconModule] });
1042
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FileUploadModule, decorators: [{
1043
+ type: NgModule,
1044
+ args: [{
1045
+ declarations: [FileUploadComponent],
1046
+ imports: [
1047
+ CommonModule,
1048
+ MatProgressBarModule,
1049
+ FlexLayoutModule,
1050
+ MatButtonModule,
1051
+ DragAndDropModule,
1052
+ MatIconModule
1053
+ ],
1054
+ exports: [
1055
+ FileUploadComponent
1056
+ ]
1057
+ }]
1058
+ }] });
1059
+
1060
+ class FilterBarComponent {
1061
+ constructor(cdref) {
1062
+ this.cdref = cdref;
1063
+ this._inputText = "";
1064
+ this.filters = {
1065
+ filters: {},
1066
+ input: ""
1067
+ };
1068
+ this.filterOverflow = false;
1069
+ this.filterBarChange = new EventEmitter();
1070
+ this.defaultScrollWidth = 180;
1071
+ }
1072
+ get inputText() {
1073
+ return this._inputText;
1074
+ }
1075
+ set inputText(value) {
1076
+ this._inputText = value;
1077
+ this.filters.input = this._inputText;
1078
+ this.emitFilters();
1079
+ }
1080
+ get showSearch() {
1081
+ return !this.settings?.hideSearch;
1082
+ }
1083
+ get fields() {
1084
+ return this.settings?.filters ?? [];
1085
+ }
1086
+ onResize() {
1087
+ this.checkOverflow();
1088
+ }
1089
+ ngOnInit() {
1090
+ this.searchTooltip = this.settings?.searchTooltip ?? 'FILTER_BAR.SEARCH_TOOLTIP';
1091
+ this.searchTitle = this.settings?.searchTitle ?? 'FILTER_BAR.SEARCH';
1092
+ this.prefixIcon = this.settings?.prefixIcon ?? "filter_alt";
1093
+ this.suffixIcon = this.settings?.suffixIcon ?? "question_mark";
1094
+ this.showSuffixIcon = this.settings?.showSuffixIcon ?? true;
1095
+ }
1096
+ ngAfterViewInit() {
1097
+ this.checkOverflow();
1098
+ this.cdref.detectChanges();
1099
+ }
1100
+ filterChange(filter, event) {
1101
+ this.filters.filters[filter.fieldName] = event.value.map(item => item.value);
1102
+ this.emitFilters();
1103
+ }
1104
+ emitFilters() {
1105
+ this.filterBarChange.next(this.filters);
1106
+ }
1107
+ scrollRight() {
1108
+ this.filterWrapper.nativeElement.scrollTo({ left: (this.filterWrapper.nativeElement.scrollLeft + this.defaultScrollWidth), behavior: 'smooth' });
1109
+ }
1110
+ scrollLeft() {
1111
+ this.filterWrapper.nativeElement.scrollTo({ left: (this.filterWrapper.nativeElement.scrollLeft - this.defaultScrollWidth), behavior: 'smooth' });
1112
+ }
1113
+ checkOverflow() {
1114
+ this.filterOverflow = this.filterWrapper.nativeElement.clientWidth < this.filterWrapper.nativeElement.scrollWidth;
1115
+ }
1116
+ }
1117
+ FilterBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FilterBarComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1118
+ FilterBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: FilterBarComponent, selector: "tld-filter-bar", inputs: { settings: "settings" }, outputs: { filterBarChange: "filterBarChange" }, host: { listeners: { "window:resize": "onResize()" } }, viewQueries: [{ propertyName: "filterWrapper", first: true, predicate: ["filterWrapper"], descendants: true }], ngImport: i0, template: "<button mat-icon-button (click)=\"scrollLeft()\" *ngIf=\"filterOverflow\">\r\n <span class=\"material-icons-outlined\">\r\n arrow_back_ios\r\n </span>\r\n</button>\r\n<div fxLayout=\"row\" class=\"filter-wrapper\" #filterWrapper>\r\n <mat-form-field fxFlex *ngIf=\"showSearch\" class=\"filter-bar-search-input\">\r\n <span matPrefix class=\"material-icons-outlined\">\r\n {{prefixIcon}}\r\n </span>\r\n <span matSuffix class=\"material-icons-outlined\" *ngIf=\"showSuffixIcon\" [matTooltip]=\"searchTooltip | translate\">\r\n {{suffixIcon}}\r\n </span>\r\n <input class=\"search-input\" matInput [(ngModel)]=\"inputText\" [placeholder]=\"searchTitle | translate\">\r\n </mat-form-field>\r\n <mat-form-field *ngFor=\"let filter of fields\">\r\n <mat-label>{{filter.title | translate}}</mat-label>\r\n <mat-select multiple (selectionChange)=\"filterChange(filter, $event)\">\r\n <mat-option *ngFor=\"let value of filter.values\" [value]=\"value\">\r\n {{value.key | translate : {default: value.value | titlecase } }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n</div>\r\n<button mat-icon-button *ngIf=\"filterOverflow\" (click)=\"scrollRight()\">\r\n <span class=\"material-icons-outlined\">\r\n arrow_forward_ios\r\n </span>\r\n</button>\r\n", styles: [":host{display:flex;background-color:var(--base-95);min-height:40px;min-width:100%;border-radius:.5rem;padding:.5rem 1.25rem 1rem;max-width:100%;align-items:baseline}:host ::ng-deep .mat-form-field-wrapper{padding-bottom:0!important}:host ::ng-deep .mat-form-field-underline{bottom:0!important}.search-input{background-color:unset;border:none}mat-form-field+mat-form-field{margin-left:1rem}.filter-bar-search-input{width:100%}.filter-bar-search-input::ng-deep .material-icons-outlined{vertical-align:bottom}.material-icons-outlined{color:var(--base-40)}.filter-wrapper{max-width:100%;overflow-x:hidden;overflow-y:hidden;display:flex;flex:1}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$4.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2$4.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i2$4.MatSuffix, selector: "[matSuffix]" }, { kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i2$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i2$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "component", type: i5$1.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i6$1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i7.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i5.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "pipe", type: i1$1.TitleCasePipe, name: "titlecase" }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }] });
1119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FilterBarComponent, decorators: [{
1120
+ type: Component,
1121
+ args: [{ selector: 'tld-filter-bar', template: "<button mat-icon-button (click)=\"scrollLeft()\" *ngIf=\"filterOverflow\">\r\n <span class=\"material-icons-outlined\">\r\n arrow_back_ios\r\n </span>\r\n</button>\r\n<div fxLayout=\"row\" class=\"filter-wrapper\" #filterWrapper>\r\n <mat-form-field fxFlex *ngIf=\"showSearch\" class=\"filter-bar-search-input\">\r\n <span matPrefix class=\"material-icons-outlined\">\r\n {{prefixIcon}}\r\n </span>\r\n <span matSuffix class=\"material-icons-outlined\" *ngIf=\"showSuffixIcon\" [matTooltip]=\"searchTooltip | translate\">\r\n {{suffixIcon}}\r\n </span>\r\n <input class=\"search-input\" matInput [(ngModel)]=\"inputText\" [placeholder]=\"searchTitle | translate\">\r\n </mat-form-field>\r\n <mat-form-field *ngFor=\"let filter of fields\">\r\n <mat-label>{{filter.title | translate}}</mat-label>\r\n <mat-select multiple (selectionChange)=\"filterChange(filter, $event)\">\r\n <mat-option *ngFor=\"let value of filter.values\" [value]=\"value\">\r\n {{value.key | translate : {default: value.value | titlecase } }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n</div>\r\n<button mat-icon-button *ngIf=\"filterOverflow\" (click)=\"scrollRight()\">\r\n <span class=\"material-icons-outlined\">\r\n arrow_forward_ios\r\n </span>\r\n</button>\r\n", styles: [":host{display:flex;background-color:var(--base-95);min-height:40px;min-width:100%;border-radius:.5rem;padding:.5rem 1.25rem 1rem;max-width:100%;align-items:baseline}:host ::ng-deep .mat-form-field-wrapper{padding-bottom:0!important}:host ::ng-deep .mat-form-field-underline{bottom:0!important}.search-input{background-color:unset;border:none}mat-form-field+mat-form-field{margin-left:1rem}.filter-bar-search-input{width:100%}.filter-bar-search-input::ng-deep .material-icons-outlined{vertical-align:bottom}.material-icons-outlined{color:var(--base-40)}.filter-wrapper{max-width:100%;overflow-x:hidden;overflow-y:hidden;display:flex;flex:1}\n"] }]
1122
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { filterBarChange: [{
1123
+ type: Output
1124
+ }], settings: [{
1125
+ type: Input
1126
+ }], filterWrapper: [{
1127
+ type: ViewChild,
1128
+ args: ["filterWrapper"]
1129
+ }], onResize: [{
1130
+ type: HostListener,
1131
+ args: ['window:resize', []]
1132
+ }] } });
1133
+
1134
+ class FilterBarModule {
1135
+ }
1136
+ FilterBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FilterBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1137
+ FilterBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: FilterBarModule, declarations: [FilterBarComponent], imports: [CommonModule,
1138
+ TranslateModule,
1139
+ MatInputModule,
1140
+ MatFormFieldModule,
1141
+ FlexLayoutModule,
1142
+ MatSelectModule,
1143
+ FormsModule,
1144
+ MatTooltipModule,
1145
+ MatButtonModule], exports: [FilterBarComponent] });
1146
+ FilterBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FilterBarModule, imports: [CommonModule,
1147
+ TranslateModule,
1148
+ MatInputModule,
1149
+ MatFormFieldModule,
1150
+ FlexLayoutModule,
1151
+ MatSelectModule,
1152
+ FormsModule,
1153
+ MatTooltipModule,
1154
+ MatButtonModule] });
1155
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FilterBarModule, decorators: [{
1156
+ type: NgModule,
1157
+ args: [{
1158
+ declarations: [
1159
+ FilterBarComponent
1160
+ ],
1161
+ imports: [
1162
+ CommonModule,
1163
+ TranslateModule,
1164
+ MatInputModule,
1165
+ MatFormFieldModule,
1166
+ FlexLayoutModule,
1167
+ MatSelectModule,
1168
+ FormsModule,
1169
+ MatTooltipModule,
1170
+ MatButtonModule
1171
+ ],
1172
+ exports: [
1173
+ FilterBarComponent
1174
+ ]
1175
+ }]
1176
+ }] });
1177
+
1178
+ var ExportFormat;
1179
+ (function (ExportFormat) {
1180
+ ExportFormat["CSV"] = "csv";
1181
+ })(ExportFormat || (ExportFormat = {}));
1182
+
1183
+ class MultiFunctionalTableComponent {
1184
+ constructor(domService, translateService) {
1185
+ this.domService = domService;
1186
+ this.translateService = translateService;
1187
+ //#region Output properties
1188
+ this.filterBarChange = new EventEmitter();
1189
+ this.exported = new EventEmitter();
1190
+ }
1191
+ ngOnInit() {
1192
+ this.readFromLocalStorage();
1193
+ this.setColumnProperties();
1194
+ this.setFilterProperties();
1195
+ this.setExportProperties();
1196
+ }
1197
+ ngAfterContentInit() {
1198
+ this.columnDefs.forEach(columnDef => this.table.addColumnDef(columnDef));
1199
+ this.rowDefs.forEach(rowDef => this.table.addRowDef(rowDef));
1200
+ this.headerRowDefs.forEach(headerRowDef => this.table.addHeaderRowDef(headerRowDef));
1201
+ this.headerRowDefs.forEach(headerRowDef => this.table.addHeaderRowDef(headerRowDef));
1202
+ this.table.setNoDataRow(this.noDataRow);
1203
+ }
1204
+ ngAfterViewInit() {
1205
+ this.config.dataSource.sort = this.sort;
1206
+ }
1207
+ updateDisplayColumns(initial = false) {
1208
+ this.displayColumns = [];
1209
+ this.columns = this.config.columnSelect?.columns ?? [];
1210
+ if (!this.columns.length) {
1211
+ return;
1212
+ }
1213
+ const localStorageValue = this.localStorageValue ?? {};
1214
+ if (!localStorageValue.columns) {
1215
+ localStorageValue.columns = {};
1216
+ }
1217
+ this.columns.forEach((column) => {
1218
+ if (initial) {
1219
+ column.selected = localStorageValue.columns?.[column.name] ?? column.selected;
1220
+ }
1221
+ else {
1222
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
1223
+ localStorageValue.columns[column.name] = column.selected;
1224
+ }
1225
+ if (column.selected) {
1226
+ this.displayColumns.push(column.name);
1227
+ }
1228
+ });
1229
+ if (!initial) {
1230
+ this.updateLocalStorage(localStorageValue);
1231
+ }
1232
+ }
1233
+ toggleFilterBar() {
1234
+ const localstorageObject = this.localStorageValue ?? {};
1235
+ if (!localstorageObject.filter) {
1236
+ localstorageObject.filter = {};
1237
+ }
1238
+ this.filterBarVisible = !this.filterBarVisible;
1239
+ localstorageObject.filter.visible = this.filterBarVisible;
1240
+ this.updateLocalStorage(localstorageObject);
1241
+ }
1242
+ filtersChanged(filters) {
1243
+ this.filterBarChange.emit(filters);
1244
+ }
1245
+ export() {
1246
+ this.config.dataSource.connect().pipe(take(1)).subscribe((data) => {
1247
+ this.exported.emit(data);
1248
+ });
1249
+ if (this.config.export?.fileOptions) {
1250
+ this.exportToFile();
1251
+ }
1252
+ }
1253
+ exportToFile() {
1254
+ if (!this.config.export?.fileOptions?.saveToFile) {
1255
+ return;
1256
+ }
1257
+ let fileString = "";
1258
+ let extension;
1259
+ switch (this.config.export.fileOptions.format) {
1260
+ case ExportFormat.CSV:
1261
+ default:
1262
+ extension = ExportFormat.CSV;
1263
+ fileString = HtmlElementParseHelper.tableAsCsv(this.tableElementRef.nativeElement);
1264
+ break;
1265
+ }
1266
+ const translatedFileName = this.translateService.instant(this.config.export.fileOptions.fileName);
1267
+ SaveFileHelper.saveFile(fileString, `${translatedFileName}.${extension}`);
1268
+ }
1269
+ updateLocalStorage(newValue) {
1270
+ this.localStorageValue = newValue;
1271
+ if (this.config.localStorageKey && newValue) {
1272
+ this.domService.localStorage?.setItem(this.config.localStorageKey, JSON.stringify(newValue));
1273
+ }
1274
+ }
1275
+ readFromLocalStorage() {
1276
+ if (this.config.localStorageKey) {
1277
+ try {
1278
+ const localStorageString = this.domService.localStorage?.getItem(this.config.localStorageKey);
1279
+ if (localStorageString) {
1280
+ this.localStorageValue = JSON.parse(localStorageString);
1281
+ }
1282
+ }
1283
+ // eslint-disable-next-line no-empty
1284
+ catch {
1285
+ }
1286
+ }
1287
+ }
1288
+ setFilterProperties() {
1289
+ if (this.config.columnSelect?.enabled) {
1290
+ this.columnSelectActive = true;
1291
+ this.updateDisplayColumns(true);
1292
+ }
1293
+ }
1294
+ setColumnProperties() {
1295
+ if (this.config.filter?.enabled) {
1296
+ this.filterActive = true;
1297
+ this.filterBarVisible = this.localStorageValue?.filter?.visible ?? this.config.filter.visible ?? false;
1298
+ this.filterSettings = this.config.filter.settings;
1299
+ }
1300
+ }
1301
+ setExportProperties() {
1302
+ if (this.config.export?.enabled) {
1303
+ this.exportActive = true;
1304
+ }
1305
+ }
1306
+ }
1307
+ MultiFunctionalTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: MultiFunctionalTableComponent, deps: [{ token: DOMService }, { token: i1$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
1308
+ MultiFunctionalTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: MultiFunctionalTableComponent, selector: "tld-multi-functional-table", inputs: { config: "config" }, outputs: { filterBarChange: "filterBarChange", exported: "exported" }, queries: [{ propertyName: "noDataRow", first: true, predicate: MatNoDataRow, descendants: true }, { propertyName: "headerRowDefs", predicate: MatHeaderRowDef }, { propertyName: "rowDefs", predicate: MatRowDef }, { propertyName: "columnDefs", predicate: MatColumnDef }], viewQueries: [{ propertyName: "table", first: true, predicate: MatTable, descendants: true, static: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true }, { propertyName: "tableElementRef", first: true, predicate: MatTable, descendants: true, read: ElementRef }], ngImport: i0, template: "<div fxLayout=\"column\" fxLayoutGap=\"1rem\">\r\n\r\n <div fxLayout=\"row\">\r\n <div fxFlex fxLayoutGap=\"1rem\">\r\n <button mat-button [matMenuTriggerFor]=\"columnMenu\" *ngIf=\"columnSelectActive\">\r\n <span class=\"material-icons column-select-icon\">menu</span>\r\n <span>{{'MULTI_FUNCTIONAL_TABLE.COLUMN_SELECT' | translate}}</span>\r\n </button>\r\n\r\n <button mat-button *ngIf=\"filterActive\" (click)=\"toggleFilterBar()\">\r\n <span class=\"material-icons\">filter_list</span>\r\n <span>{{'MULTI_FUNCTIONAL_TABLE.FILTER_TOGGLE' | translate}}</span>\r\n </button>\r\n\r\n <button mat-stroked-button *ngIf=\"exportActive\" (click)=\"export()\">\r\n <span class=\"material-icons-outlined\">cloud_download</span>\r\n <span>{{'MULTI_FUNCTIONAL_TABLE.EXPORT' | translate}}</span>\r\n </button>\r\n </div>\r\n\r\n <ng-content select=\"[additionalActions]\"></ng-content>\r\n </div>\r\n\r\n <mat-menu #columnMenu=\"matMenu\">\r\n <div class=\"column-select-wrapper\" (click)=\"$event.stopPropagation()\">\r\n <div *ngFor=\"let column of columns\">\r\n <mat-checkbox [(ngModel)]=\"column.selected\" (change)=\"updateDisplayColumns()\">\r\n {{column.displayName | translate}}\r\n </mat-checkbox>\r\n </div>\r\n </div>\r\n </mat-menu>\r\n\r\n <tld-filter-bar *ngIf=\"filterBarVisible\" [settings]=\"filterSettings\" (filterBarChange)=\"filtersChanged($event)\">\r\n </tld-filter-bar>\r\n <table #table mat-table [dataSource]=\"config.dataSource\">\r\n <ng-content></ng-content>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayColumns\"></tr>\r\n </table>\r\n\r\n</div>\r\n", styles: ["table{width:100%}.column-select-icon{rotate:90deg}.column-select-wrapper{padding:1rem}.material-icons,.material-icons-outlined{margin-right:.5rem}.table-action-button{margin-bottom:1rem}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i4.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i4.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "component", type: i4.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i4.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i5.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i6$2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "directive", type: i6$2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: i7$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: FilterBarComponent, selector: "tld-filter-bar", inputs: ["settings"], outputs: ["filterBarChange"] }, { kind: "directive", type: i2$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i2$2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i2$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }] });
1309
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: MultiFunctionalTableComponent, decorators: [{
1310
+ type: Component,
1311
+ args: [{ selector: 'tld-multi-functional-table', template: "<div fxLayout=\"column\" fxLayoutGap=\"1rem\">\r\n\r\n <div fxLayout=\"row\">\r\n <div fxFlex fxLayoutGap=\"1rem\">\r\n <button mat-button [matMenuTriggerFor]=\"columnMenu\" *ngIf=\"columnSelectActive\">\r\n <span class=\"material-icons column-select-icon\">menu</span>\r\n <span>{{'MULTI_FUNCTIONAL_TABLE.COLUMN_SELECT' | translate}}</span>\r\n </button>\r\n\r\n <button mat-button *ngIf=\"filterActive\" (click)=\"toggleFilterBar()\">\r\n <span class=\"material-icons\">filter_list</span>\r\n <span>{{'MULTI_FUNCTIONAL_TABLE.FILTER_TOGGLE' | translate}}</span>\r\n </button>\r\n\r\n <button mat-stroked-button *ngIf=\"exportActive\" (click)=\"export()\">\r\n <span class=\"material-icons-outlined\">cloud_download</span>\r\n <span>{{'MULTI_FUNCTIONAL_TABLE.EXPORT' | translate}}</span>\r\n </button>\r\n </div>\r\n\r\n <ng-content select=\"[additionalActions]\"></ng-content>\r\n </div>\r\n\r\n <mat-menu #columnMenu=\"matMenu\">\r\n <div class=\"column-select-wrapper\" (click)=\"$event.stopPropagation()\">\r\n <div *ngFor=\"let column of columns\">\r\n <mat-checkbox [(ngModel)]=\"column.selected\" (change)=\"updateDisplayColumns()\">\r\n {{column.displayName | translate}}\r\n </mat-checkbox>\r\n </div>\r\n </div>\r\n </mat-menu>\r\n\r\n <tld-filter-bar *ngIf=\"filterBarVisible\" [settings]=\"filterSettings\" (filterBarChange)=\"filtersChanged($event)\">\r\n </tld-filter-bar>\r\n <table #table mat-table [dataSource]=\"config.dataSource\">\r\n <ng-content></ng-content>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"displayColumns\"></tr>\r\n <tr mat-row *matRowDef=\"let row; columns: displayColumns\"></tr>\r\n </table>\r\n\r\n</div>\r\n", styles: ["table{width:100%}.column-select-icon{rotate:90deg}.column-select-wrapper{padding:1rem}.material-icons,.material-icons-outlined{margin-right:.5rem}.table-action-button{margin-bottom:1rem}\n"] }]
1312
+ }], ctorParameters: function () { return [{ type: DOMService }, { type: i1$2.TranslateService }]; }, propDecorators: { config: [{
1313
+ type: Input
1314
+ }], filterBarChange: [{
1315
+ type: Output
1316
+ }], exported: [{
1317
+ type: Output
1318
+ }], headerRowDefs: [{
1319
+ type: ContentChildren,
1320
+ args: [MatHeaderRowDef]
1321
+ }], rowDefs: [{
1322
+ type: ContentChildren,
1323
+ args: [MatRowDef]
1324
+ }], columnDefs: [{
1325
+ type: ContentChildren,
1326
+ args: [MatColumnDef]
1327
+ }], noDataRow: [{
1328
+ type: ContentChild,
1329
+ args: [MatNoDataRow]
1330
+ }], table: [{
1331
+ type: ViewChild,
1332
+ args: [MatTable, { static: true }]
1333
+ }], sort: [{
1334
+ type: ViewChild,
1335
+ args: [MatSort]
1336
+ }], tableElementRef: [{
1337
+ type: ViewChild,
1338
+ args: [MatTable, { read: ElementRef }]
1339
+ }] } });
1340
+
1341
+ class MultiFunctionalTableModule {
1342
+ }
1343
+ MultiFunctionalTableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: MultiFunctionalTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1344
+ MultiFunctionalTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: MultiFunctionalTableModule, declarations: [MultiFunctionalTableComponent], imports: [CommonModule,
1345
+ MatTableModule,
1346
+ MatButtonModule,
1347
+ TranslateModule,
1348
+ MatMenuModule,
1349
+ MatCheckboxModule,
1350
+ FormsModule,
1351
+ FilterBarModule,
1352
+ FlexLayoutModule,
1353
+ MatSortModule], exports: [MultiFunctionalTableComponent] });
1354
+ MultiFunctionalTableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: MultiFunctionalTableModule, imports: [CommonModule,
1355
+ MatTableModule,
1356
+ MatButtonModule,
1357
+ TranslateModule,
1358
+ MatMenuModule,
1359
+ MatCheckboxModule,
1360
+ FormsModule,
1361
+ FilterBarModule,
1362
+ FlexLayoutModule,
1363
+ MatSortModule] });
1364
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: MultiFunctionalTableModule, decorators: [{
1365
+ type: NgModule,
1366
+ args: [{
1367
+ declarations: [
1368
+ MultiFunctionalTableComponent
1369
+ ],
1370
+ imports: [
1371
+ CommonModule,
1372
+ MatTableModule,
1373
+ MatButtonModule,
1374
+ TranslateModule,
1375
+ MatMenuModule,
1376
+ MatCheckboxModule,
1377
+ FormsModule,
1378
+ FilterBarModule,
1379
+ FlexLayoutModule,
1380
+ MatSortModule
1381
+ ],
1382
+ exports: [
1383
+ MultiFunctionalTableComponent
1384
+ ]
1385
+ }]
1386
+ }] });
1387
+
666
1388
  /*
667
1389
  * Public API Surface of ngx-common
668
1390
  */
@@ -671,5 +1393,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
671
1393
  * Generated bundle index. Do not edit.
672
1394
  */
673
1395
 
674
- export { ClickOutsideDirective, ClickOutsideModule, CloseButtonComponent, CloseButtonModule, CompanyProductComponent, CompanyProductModule, DOMService, FilterWithHighlightModule, FilterWithHighlightPipe, FooterComponent, FooterModule, IconService, InlineMessageComponent, InlineMessageIconPosition, InlineMessageModule, InlineMessageType, MissingTranslationHelper, NotificationMessageComponent, NotificationMessageModule, NotificationMessageType, PlausibleEventDirective, PlausibleHelper, PlausibleModule, SortTranslationsModule, SortTranslationsPipe, TldLoaderComponent, TldLoaderModule };
1396
+ export { ClickOutsideDirective, ClickOutsideModule, CloseButtonComponent, CloseButtonModule, CompanyProductComponent, CompanyProductModule, DOMService, DateAgoModule, DateAgoPipe, DragAndDropDirective, DragAndDropModule, ExportFormat, FileUploadComponent, FileUploadErrorTypeEnum, FileUploadModule, FilterBarComponent, FilterBarModule, FilterWithHighlightModule, FilterWithHighlightPipe, FooterComponent, FooterModule, HtmlElementParseHelper, IconService, InlineMessageComponent, InlineMessageIconPosition, InlineMessageModule, InlineMessageType, MissingTranslationHelper, MultiFunctionalTableComponent, MultiFunctionalTableModule, NotificationMessageComponent, NotificationMessageModule, NotificationMessageType, PlausibleEventDirective, PlausibleHelper, PlausibleModule, SaveFileHelper, SortTranslationsModule, SortTranslationsPipe, TldLoaderComponent, TldLoaderModule };
675
1397
  //# sourceMappingURL=tilde-nlp-ngx-common.mjs.map