@dbg-riskit/angular-testing 9999.9999.9999-rc.436399 → 9999.9999.9999-rc.445048

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.
@@ -15,7 +15,7 @@ export { LayoutComponent, NoopAnimationMessageComponent, NoopAnimationsCommonVie
15
15
  import { throwError, of, timer, EMPTY, BehaviorSubject } from 'rxjs';
16
16
  import { switchMap, defaultIfEmpty, map } from 'rxjs/operators';
17
17
  import { MatCard } from '@angular/material/card';
18
- import { MatButton, MatAnchor } from '@angular/material/button';
18
+ import { MatIconButton, MatIconAnchor, MatButton } from '@angular/material/button';
19
19
  import { MatButtonToggle } from '@angular/material/button-toggle';
20
20
  import { MatIcon } from '@angular/material/icon';
21
21
  import { MatTooltip } from '@angular/material/tooltip';
@@ -108,9 +108,11 @@ function newEvent(eventName, bubbles = false, cancelable = false) {
108
108
 
109
109
  const FAKE_HTTP_ASYNC_TIMEOUT = 1000;
110
110
  class HttpServiceStub {
111
- value = [];
112
- error = [];
113
- unauthorized = new EventEmitter();
111
+ constructor() {
112
+ this.value = [];
113
+ this.error = [];
114
+ this.unauthorized = new EventEmitter();
115
+ }
114
116
  returnValue(value) {
115
117
  this.value.push(value);
116
118
  }
@@ -134,8 +136,8 @@ class HttpServiceStub {
134
136
  post(request) {
135
137
  return this.get(request);
136
138
  }
137
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HttpServiceStub, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
138
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HttpServiceStub });
139
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HttpServiceStub, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
140
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HttpServiceStub }); }
139
141
  }
140
142
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HttpServiceStub, decorators: [{
141
143
  type: Injectable
@@ -147,15 +149,14 @@ class HttpAsyncServiceStub extends HttpServiceStub {
147
149
  post(request) {
148
150
  return this.get(request);
149
151
  }
150
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HttpAsyncServiceStub, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
151
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HttpAsyncServiceStub });
152
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HttpAsyncServiceStub, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
153
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HttpAsyncServiceStub }); }
152
154
  }
153
155
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HttpAsyncServiceStub, decorators: [{
154
156
  type: Injectable
155
157
  }] });
156
158
 
157
159
  class MessageComponentDef {
158
- debugElement;
159
160
  constructor(debugElement) {
160
161
  this.debugElement = debugElement;
161
162
  if (debugElement == null) {
@@ -169,12 +170,9 @@ class MessageComponentDef {
169
170
  }
170
171
 
171
172
  class Page {
172
- fixture;
173
- debugElement;
174
- component;
175
- _timeOffset = 0;
176
173
  constructor(fixture) {
177
174
  this.fixture = fixture;
175
+ this._timeOffset = 0;
178
176
  this.debugElement = fixture.debugElement;
179
177
  this.component = this.debugElement.componentInstance;
180
178
  }
@@ -248,10 +246,6 @@ class CSVDownloadMenuPage extends Page {
248
246
  }
249
247
  }
250
248
  class DownloadLink {
251
- element;
252
- page;
253
- _blobSpy;
254
- _saveBlobSpy;
255
249
  constructor(element, page) {
256
250
  this.element = element;
257
251
  this.page = page;
@@ -289,15 +283,12 @@ class DownloadLink {
289
283
  }
290
284
  }
291
285
  class DownloadTestComponent {
292
- data;
293
- contentType;
294
- filename;
295
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DownloadTestComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
296
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DownloadTestComponent, selector: "ng-component", ngImport: i0, template: `
286
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DownloadTestComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
287
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DownloadTestComponent, selector: "ng-component", ngImport: i0, template: `
297
288
  <a [risk-download]="data"
298
289
  [risk-download-content-type]="contentType"
299
290
  [risk-download-filename]="filename">Download</a>
300
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.FileDownloadDirective, selector: "[risk-download]", inputs: ["risk-download", "risk-download-content-type", "risk-download-filename"] }] });
291
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.FileDownloadDirective, selector: "[risk-download]", inputs: ["risk-download", "risk-download-content-type", "risk-download-filename"] }] }); }
301
292
  }
302
293
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DownloadTestComponent, decorators: [{
303
294
  type: Component,
@@ -319,8 +310,6 @@ class DownloadTestComponentPage extends Page {
319
310
  }
320
311
 
321
312
  class DataTableDefinition {
322
- debugElement;
323
- page;
324
313
  constructor(debugElement, page) {
325
314
  this.debugElement = debugElement;
326
315
  this.page = page;
@@ -355,8 +344,6 @@ class DataTableDefinition {
355
344
  }
356
345
  // <editor-fold defaultstate="collapsed" desc="Table header">
357
346
  class TableHeader {
358
- element;
359
- page;
360
347
  constructor(element, page) {
361
348
  this.element = element;
362
349
  this.page = page;
@@ -373,8 +360,6 @@ class TableHeader {
373
360
  }
374
361
  }
375
362
  class TableHeaderRow {
376
- element;
377
- page;
378
363
  constructor(element, page) {
379
364
  this.element = element;
380
365
  this.page = page;
@@ -386,14 +371,12 @@ class TableHeaderRow {
386
371
  }
387
372
  }
388
373
  class TableHeaderCell {
389
- element;
390
- page;
391
374
  constructor(element, page) {
392
375
  this.element = element;
393
376
  this.page = page;
394
377
  }
395
378
  get sortingHandle() {
396
- const handle = this.element.query(By.directive(MatButton));
379
+ const handle = this.element.query(By.directive(MatIconButton));
397
380
  if (handle) {
398
381
  return new SortingHandle(this.page, handle);
399
382
  }
@@ -423,15 +406,13 @@ class TableHeaderCell {
423
406
  }
424
407
  // <editor-fold defaultstate="collapsed" desc="Sorting">
425
408
  class TableSorting {
426
- table;
427
- page;
428
409
  constructor(table, page) {
429
410
  this.table = table;
430
411
  this.page = page;
431
412
  }
432
413
  get handles() {
433
414
  const handles = this.table.debugElement.query((de) => de.references.mainHeader)
434
- .queryAll(By.directive(MatButton));
415
+ .queryAll(By.directive(MatIconButton));
435
416
  if (!handles) {
436
417
  return [];
437
418
  }
@@ -441,7 +422,7 @@ class TableSorting {
441
422
  }
442
423
  get detailRowHandles() {
443
424
  const handles = this.table.debugElement.query(By.css('.risk-data-table-detail')).query(By.css('thead'))
444
- .queryAll(By.directive(MatButton));
425
+ .queryAll(By.directive(MatIconButton));
445
426
  if (!handles) {
446
427
  return null;
447
428
  }
@@ -490,8 +471,6 @@ class TableSorting {
490
471
  }
491
472
  }
492
473
  class SortingHandle {
493
- page;
494
- handle;
495
474
  constructor(page, handle) {
496
475
  this.page = page;
497
476
  this.handle = handle;
@@ -505,8 +484,6 @@ class SortingHandle {
505
484
  // </editor-fold>
506
485
  // <editor-fold defaultstate="collapsed" desc="Table body">
507
486
  class TableBody {
508
- element;
509
- page;
510
487
  constructor(element, page) {
511
488
  this.element = element;
512
489
  this.page = page;
@@ -527,8 +504,6 @@ class TableBody {
527
504
  }
528
505
  }
529
506
  class TableBodyRow {
530
- element;
531
- page;
532
507
  constructor(element, page) {
533
508
  this.element = element;
534
509
  this.page = page;
@@ -538,7 +513,7 @@ class TableBodyRow {
538
513
  this.page.detectChanges();
539
514
  }
540
515
  get expander() {
541
- return new RowExpander(this.element.query(By.directive(DataTableRowDetailExpanderComponent)).query(By.directive(MatAnchor)));
516
+ return new RowExpander(this.element.query(By.directive(DataTableRowDetailExpanderComponent)).query(By.directive(MatIconAnchor)));
542
517
  }
543
518
  get cells() {
544
519
  return this.element.queryAll(By.css('td')).map((element) => {
@@ -560,7 +535,6 @@ class TableBodyRow {
560
535
  }
561
536
  }
562
537
  class RowExpander {
563
- element;
564
538
  constructor(element) {
565
539
  this.element = element;
566
540
  }
@@ -575,7 +549,6 @@ class RowExpander {
575
549
  }
576
550
  }
577
551
  class TableBodyCell {
578
- element;
579
552
  constructor(element) {
580
553
  this.element = element;
581
554
  }
@@ -588,8 +561,6 @@ class TableBodyCell {
588
561
  }
589
562
  // <editor-fold defaultstate="collapsed" desc="Row detail">
590
563
  class TableBodyDetail {
591
- element;
592
- page;
593
564
  constructor(element, page) {
594
565
  this.element = element;
595
566
  this.page = page;
@@ -608,7 +579,6 @@ class TableBodyDetail {
608
579
  }
609
580
  }
610
581
  class TableBodyDetailBody {
611
- element;
612
582
  constructor(element) {
613
583
  this.element = element;
614
584
  }
@@ -628,7 +598,6 @@ class TableBodyDetailBody {
628
598
  }
629
599
  }
630
600
  class TableBodyDetailRow {
631
- element;
632
601
  constructor(element) {
633
602
  this.element = element;
634
603
  }
@@ -642,7 +611,6 @@ class TableBodyDetailRow {
642
611
  // </editor-fold>
643
612
  // <editor-fold defaultstate="collapsed" desc="Table footer">
644
613
  class TableFooter {
645
- element;
646
614
  constructor(element) {
647
615
  this.element = element;
648
616
  }
@@ -662,7 +630,6 @@ class TableFooter {
662
630
  }
663
631
  }
664
632
  class TableFooterRow {
665
- element;
666
633
  constructor(element) {
667
634
  this.element = element;
668
635
  }
@@ -674,7 +641,6 @@ class TableFooterRow {
674
641
  }
675
642
  // </editor-fold>
676
643
  class RecordsCount {
677
- element;
678
644
  constructor(element) {
679
645
  this.element = element;
680
646
  }
@@ -683,8 +649,6 @@ class RecordsCount {
683
649
  }
684
650
  }
685
651
  class Pager {
686
- element;
687
- page;
688
652
  constructor(element, page) {
689
653
  this.element = element;
690
654
  this.page = page;
@@ -694,41 +658,41 @@ class Pager {
694
658
  }
695
659
  expectLeadingButtonsDisabled() {
696
660
  for (let i = 0; i < 2; i++) {
697
- expect(this.pageButtons[i].classes['mat-mdc-button-toggle-disabled'])
661
+ expect(this.pageButtons[i].classes['mat-button-toggle-disabled'])
698
662
  .toBe(true, 'First two are disabled.');
699
663
  }
700
664
  }
701
665
  expectLeadingButtonsNotDisabled() {
702
666
  for (let i = 0; i < 2; i++) {
703
- expect(this.pageButtons[i].classes['mat-mdc-button-toggle-disabled'])
667
+ expect(this.pageButtons[i].classes['mat-button-toggle-disabled'])
704
668
  .not.toBe(true, 'First two are not disabled.');
705
669
  }
706
670
  }
707
671
  expectTrailingButtonsDisabled() {
708
672
  for (let i = this.pageButtons.length - 1; i > this.pageButtons.length - 3; i--) {
709
- expect(this.pageButtons[i].classes['mat-mdc-button-toggle-disabled'])
673
+ expect(this.pageButtons[i].classes['mat-button-toggle-disabled'])
710
674
  .toBe(true, 'Last two are disabled.');
711
675
  }
712
676
  }
713
677
  expectTrailingButtonsNotDisabled() {
714
678
  for (let i = this.pageButtons.length - 1; i > this.pageButtons.length - 3; i--) {
715
- expect(this.pageButtons[i].classes['mat-mdc-button-toggle-disabled'])
679
+ expect(this.pageButtons[i].classes['mat-button-toggle-disabled'])
716
680
  .not.toBe(true, 'Last two are not disabled.');
717
681
  }
718
682
  }
719
683
  expectButtonNumbers(numbers) {
720
684
  for (let i = 0; i < numbers.length; i++) {
721
- expect(this.pageButtons[i + 2].query(By.css('.mat-mdc-button-toggle-label-content'))
685
+ expect(this.pageButtons[i + 2].query(By.css('.mat-button-toggle-label-content'))
722
686
  .nativeElement.textContent.trim())
723
687
  .toEqual(numbers[i] + '', 'Button numbers are correct');
724
688
  }
725
689
  }
726
690
  expectButtonActive(index) {
727
- expect(this.pageButtons[index].classes['mat-mdc-button-toggle-checked'])
691
+ expect(this.pageButtons[index].classes['mat-button-toggle-checked'])
728
692
  .toBe(true, 'Button is active.');
729
693
  }
730
694
  click(index) {
731
- click(this.pageButtons[index].query(By.css('.mat-mdc-button-toggle-label-content')).nativeElement);
695
+ click(this.pageButtons[index].query(By.css('.mat-button-toggle-label-content')).nativeElement);
732
696
  this.page.detectChanges();
733
697
  this.page.advanceAndDetectChanges();
734
698
  }
@@ -762,8 +726,6 @@ class DataTableDefinitionHosted extends Page {
762
726
  }
763
727
  }
764
728
  class TestDataTableHostComponent {
765
- data;
766
- footer;
767
729
  constructor() {
768
730
  this.data = [];
769
731
  for (let i = 0; i < 500; i++) {
@@ -793,8 +755,8 @@ class TestDataTableHostComponent {
793
755
  return record.value1;
794
756
  };
795
757
  }
796
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TestDataTableHostComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
797
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TestDataTableHostComponent, selector: "ng-component", ngImport: i0, template: `
758
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TestDataTableHostComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
759
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TestDataTableHostComponent, selector: "ng-component", ngImport: i0, template: `
798
760
  <risk-data-table [data]="data"
799
761
  [footer]="footer"
800
762
  [pageSize]="20"
@@ -838,7 +800,7 @@ class TestDataTableHostComponent {
838
800
  </risk-data-table-column-group>
839
801
  <risk-data-table-column-group></risk-data-table-column-group>
840
802
  </risk-data-table-detail-row>
841
- </risk-data-table>`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DataTableComponent, selector: "risk-data-table", inputs: ["footer", "pageSize", "striped", "showFooter", "allowEmpty", "trackByRowKey", "highlighting", "stickyHeader", "stickyHeaderOffsetTopPx", "data", "defaultOrdering"], exportAs: ["dataTable"] }, { kind: "directive", type: i1$1.ɵDataTableColumnDirective, selector: "risk-data-table-column", inputs: ["title", "sortingKey", "tooltip", "contentAlign", "headerAlign", "footerAlign", "class"] }, { kind: "directive", type: i1$1.ɵDataTableColumnGroupDirective, selector: "risk-data-table-column-group" }, { kind: "directive", type: i1$1.ɵDataTableColumnCellDirective, selector: "[risk-data-table-cell]" }, { kind: "directive", type: i1$1.ɵDataTableColumnFooterDirective, selector: "[risk-data-table-footer-cell]" }, { kind: "directive", type: i1$1.ɵDataTableRowDetailDirective, selector: "risk-data-table-detail-row" }, { kind: "component", type: i1$1.DataTableRowDetailExpanderComponent, selector: "risk-data-table-detail-expander", inputs: ["expanded"] }] });
803
+ </risk-data-table>`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DataTableComponent, selector: "risk-data-table", inputs: ["footer", "pageSize", "striped", "showFooter", "allowEmpty", "trackByRowKey", "highlighting", "stickyHeader", "stickyHeaderOffsetTopPx", "data", "defaultOrdering"], exportAs: ["dataTable"] }, { kind: "directive", type: i1$1.ɵDataTableColumnDirective, selector: "risk-data-table-column", inputs: ["title", "sortingKey", "tooltip", "contentAlign", "headerAlign", "footerAlign", "class"] }, { kind: "directive", type: i1$1.ɵDataTableColumnGroupDirective, selector: "risk-data-table-column-group" }, { kind: "directive", type: i1$1.ɵDataTableColumnCellDirective, selector: "[risk-data-table-cell]" }, { kind: "directive", type: i1$1.ɵDataTableColumnFooterDirective, selector: "[risk-data-table-footer-cell]" }, { kind: "directive", type: i1$1.ɵDataTableRowDetailDirective, selector: "risk-data-table-detail-row" }, { kind: "component", type: i1$1.DataTableRowDetailExpanderComponent, selector: "risk-data-table-detail-expander", inputs: ["expanded"] }] }); }
842
804
  }
843
805
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TestDataTableHostComponent, decorators: [{
844
806
  type: Component,
@@ -892,13 +854,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
892
854
  }], ctorParameters: function () { return []; } });
893
855
 
894
856
  class HighLighterDirectiveTestComponent {
895
- context;
896
857
  trackBy(index, row) {
897
858
  return row.rowData;
898
859
  }
899
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HighLighterDirectiveTestComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
900
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: HighLighterDirectiveTestComponent, selector: "ng-component", ngImport: i0, template: `
901
- <div [risk-data-table-highlighter]="trackBy" [risk-data-table-highlighter-context]="context"></div>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.HighlighterDirective, selector: "[risk-data-table-highlighter]", inputs: ["risk-data-table-highlighter", "risk-data-table-highlighter-context"] }] });
860
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HighLighterDirectiveTestComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
861
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: HighLighterDirectiveTestComponent, selector: "ng-component", ngImport: i0, template: `
862
+ <div [risk-data-table-highlighter]="trackBy" [risk-data-table-highlighter-context]="context"></div>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.HighlighterDirective, selector: "[risk-data-table-highlighter]", inputs: ["risk-data-table-highlighter", "risk-data-table-highlighter-context"] }] }); }
902
863
  }
903
864
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HighLighterDirectiveTestComponent, decorators: [{
904
865
  type: Component,
@@ -942,8 +903,6 @@ class ByUtil {
942
903
  }
943
904
 
944
905
  class LayoutComponentDefinition {
945
- debugElement;
946
- page;
947
906
  constructor(debugElement, page) {
948
907
  this.debugElement = debugElement;
949
908
  this.page = page;
@@ -987,8 +946,8 @@ class TestLayoutComponentHostPage extends Page {
987
946
  }
988
947
  }
989
948
  class TestLayoutHostComponent {
990
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TestLayoutHostComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
991
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TestLayoutHostComponent, selector: "ng-component", ngImport: i0, template: `
949
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TestLayoutHostComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
950
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TestLayoutHostComponent, selector: "ng-component", ngImport: i0, template: `
992
951
  <risk-layout>
993
952
  <!-- menu-horizontal -->
994
953
  <risk-layout-horizontal>
@@ -1003,7 +962,7 @@ class TestLayoutHostComponent {
1003
962
 
1004
963
  <span>Content</span>
1005
964
  </risk-layout>
1006
- `, isInline: true, dependencies: [{ kind: "component", type: i1$2.LayoutComponent, selector: "risk-layout", inputs: ["smallScreenMenuVisible", "smallScreenWidth", "footerVisible", "toolbarBackgroundColor", "backgroundColor"] }, { kind: "directive", type: i1$2.VerticalLayoutDirective, selector: "risk-layout-vertical" }, { kind: "directive", type: i1$2.HorizontalLayoutDirective, selector: "risk-layout-horizontal" }] });
965
+ `, isInline: true, dependencies: [{ kind: "component", type: i1$2.LayoutComponent, selector: "risk-layout", inputs: ["smallScreenMenuVisible", "smallScreenWidth", "footerVisible", "toolbarBackgroundColor", "backgroundColor"] }, { kind: "directive", type: i1$2.VerticalLayoutDirective, selector: "risk-layout-vertical" }, { kind: "directive", type: i1$2.HorizontalLayoutDirective, selector: "risk-layout-horizontal" }] }); }
1007
966
  }
1008
967
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TestLayoutHostComponent, decorators: [{
1009
968
  type: Component,
@@ -1028,11 +987,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1028
987
  }] });
1029
988
 
1030
989
  class RouterLinkStubDirective {
1031
- linkParams;
1032
- navigatedTo = null;
1033
- _urlTree = null;
1034
- routerStub;
1035
990
  constructor(injector) {
991
+ this.navigatedTo = null;
992
+ this._urlTree = null;
1036
993
  this.routerStub = injector.get(Router, null);
1037
994
  }
1038
995
  ngOnChanges() {
@@ -1054,8 +1011,8 @@ class RouterLinkStubDirective {
1054
1011
  get urlTree() {
1055
1012
  return this._urlTree;
1056
1013
  }
1057
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouterLinkStubDirective, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
1058
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: RouterLinkStubDirective, selector: "[routerLink]", inputs: { linkParams: ["routerLink", "linkParams"] }, host: { listeners: { "click": "onClick()" } }, usesOnChanges: true, ngImport: i0 });
1014
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouterLinkStubDirective, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive }); }
1015
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: RouterLinkStubDirective, selector: "[routerLink]", inputs: { linkParams: ["routerLink", "linkParams"] }, host: { listeners: { "click": "onClick()" } }, usesOnChanges: true, ngImport: i0 }); }
1059
1016
  }
1060
1017
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouterLinkStubDirective, decorators: [{
1061
1018
  type: Directive,
@@ -1073,8 +1030,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1073
1030
  }] } });
1074
1031
 
1075
1032
  class LinkDefinition {
1076
- page;
1077
- link;
1078
1033
  constructor(page, link) {
1079
1034
  this.page = page;
1080
1035
  this.link = link;
@@ -1163,9 +1118,11 @@ class LoginPage extends Page {
1163
1118
  }
1164
1119
 
1165
1120
  class TestMessageHostComponent {
1166
- message = 'custom message';
1167
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TestMessageHostComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1168
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TestMessageHostComponent, selector: "ng-component", ngImport: i0, template: `
1121
+ constructor() {
1122
+ this.message = 'custom message';
1123
+ }
1124
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TestMessageHostComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1125
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TestMessageHostComponent, selector: "ng-component", ngImport: i0, template: `
1169
1126
  <risk-error [message]="message"></risk-error>
1170
1127
  <risk-good [message]="message"></risk-good>
1171
1128
  <risk-info [message]="message"></risk-info>
@@ -1174,7 +1131,7 @@ class TestMessageHostComponent {
1174
1131
  <risk-initial-load [message]="message"></risk-initial-load>
1175
1132
  <risk-update-failed [message]="message"></risk-update-failed>
1176
1133
  <risk-no-data [message]="message"></risk-no-data>
1177
- `, isInline: true, dependencies: [{ kind: "component", type: i1$2.MessageComponent, selector: "risk-error, risk-good, risk-info, risk-message, risk-warn, risk-initial-load, risk-no-data, risk-update-failed", inputs: ["message"] }] });
1134
+ `, isInline: true, dependencies: [{ kind: "component", type: i1$2.MessageComponent, selector: "risk-error, risk-good, risk-info, risk-message, risk-warn, risk-initial-load, risk-no-data, risk-update-failed", inputs: ["message"] }] }); }
1178
1135
  }
1179
1136
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TestMessageHostComponent, decorators: [{
1180
1137
  type: Component,
@@ -1223,7 +1180,6 @@ class MessageHostedPage extends Page {
1223
1180
 
1224
1181
  const storage = { authRequestedPath: null };
1225
1182
  class AuthRoutingFlowServiceStub extends AuthRoutingFlowService {
1226
- authServiceStub;
1227
1183
  constructor(authServiceStub, authConfig) {
1228
1184
  super(null, null, { loggedIn: of(null) }, storage, authConfig, null);
1229
1185
  this.authServiceStub = authServiceStub;
@@ -1239,8 +1195,8 @@ class AuthRoutingFlowServiceStub extends AuthRoutingFlowService {
1239
1195
  loginViaService() {
1240
1196
  return this.authServiceStub.loginViaAuthService();
1241
1197
  }
1242
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthRoutingFlowServiceStub, deps: [{ token: AUTH_PROVIDER }, { token: AUTH_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
1243
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthRoutingFlowServiceStub });
1198
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthRoutingFlowServiceStub, deps: [{ token: AUTH_PROVIDER }, { token: AUTH_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable }); }
1199
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthRoutingFlowServiceStub }); }
1244
1200
  }
1245
1201
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthRoutingFlowServiceStub, decorators: [{
1246
1202
  type: Injectable
@@ -1264,8 +1220,8 @@ class WellKnownServiceStub {
1264
1220
  get wellKnown() {
1265
1221
  return of(WELL_KNOWN);
1266
1222
  }
1267
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WellKnownServiceStub, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1268
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WellKnownServiceStub });
1223
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WellKnownServiceStub, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1224
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WellKnownServiceStub }); }
1269
1225
  }
1270
1226
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WellKnownServiceStub, decorators: [{
1271
1227
  type: Injectable
@@ -1275,7 +1231,6 @@ class AuthServiceStub extends AuthService {
1275
1231
  constructor() {
1276
1232
  super({}, new WellKnownServiceStub(), null, null, null);
1277
1233
  }
1278
- user;
1279
1234
  get loggedIn() {
1280
1235
  return of(!!this.user);
1281
1236
  }
@@ -1300,17 +1255,19 @@ class AuthServiceStub extends AuthService {
1300
1255
  delete this.user;
1301
1256
  return EMPTY;
1302
1257
  }
1303
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthServiceStub, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1304
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthServiceStub });
1258
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthServiceStub, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1259
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthServiceStub }); }
1305
1260
  }
1306
1261
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthServiceStub, decorators: [{
1307
1262
  type: Injectable
1308
1263
  }], ctorParameters: function () { return []; } });
1309
1264
 
1310
1265
  class LoginMenuStubComponent {
1311
- orientation = 'row';
1312
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoginMenuStubComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1313
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LoginMenuStubComponent, selector: "login-menu, risk-login-menu", inputs: { orientation: "orientation" }, ngImport: i0, template: '', isInline: true });
1266
+ constructor() {
1267
+ this.orientation = 'row';
1268
+ }
1269
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoginMenuStubComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1270
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LoginMenuStubComponent, selector: "login-menu, risk-login-menu", inputs: { orientation: "orientation" }, ngImport: i0, template: '', isInline: true }); }
1314
1271
  }
1315
1272
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoginMenuStubComponent, decorators: [{
1316
1273
  type: Component,
@@ -1323,11 +1280,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1323
1280
  }] } });
1324
1281
 
1325
1282
  class ActivatedRouteStub {
1326
- // Test parameters
1327
- _testParams = {};
1328
- // ActivatedRoute.params is Observable
1329
- subject = new BehaviorSubject(this.testParams);
1330
- params = this.subject.asObservable();
1283
+ constructor() {
1284
+ // Test parameters
1285
+ this._testParams = {};
1286
+ // ActivatedRoute.params is Observable
1287
+ this.subject = new BehaviorSubject(this.testParams);
1288
+ this.params = this.subject.asObservable();
1289
+ }
1331
1290
  get testParams() {
1332
1291
  return this._testParams;
1333
1292
  }
@@ -1339,16 +1298,16 @@ class ActivatedRouteStub {
1339
1298
  get snapshot() {
1340
1299
  return { params: this.testParams };
1341
1300
  }
1342
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActivatedRouteStub, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1343
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActivatedRouteStub });
1301
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActivatedRouteStub, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1302
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActivatedRouteStub }); }
1344
1303
  }
1345
1304
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActivatedRouteStub, decorators: [{
1346
1305
  type: Injectable
1347
1306
  }] });
1348
1307
 
1349
1308
  class RouterOutletStubComponent {
1350
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouterOutletStubComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1351
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: RouterOutletStubComponent, selector: "router-outlet", ngImport: i0, template: '', isInline: true });
1309
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouterOutletStubComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1310
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: RouterOutletStubComponent, selector: "router-outlet", ngImport: i0, template: '', isInline: true }); }
1352
1311
  }
1353
1312
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouterOutletStubComponent, decorators: [{
1354
1313
  type: Component,
@@ -1361,7 +1320,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1361
1320
  }] });
1362
1321
 
1363
1322
  class Snapshot {
1364
- stub;
1365
1323
  constructor(stub) {
1366
1324
  this.stub = stub;
1367
1325
  }
@@ -1371,13 +1329,15 @@ class Snapshot {
1371
1329
  }
1372
1330
  // @dynamic
1373
1331
  class RouterStub {
1374
- id = 0;
1375
- navigated = true;
1376
- currentUrlTree = this.createUrlTree(['/dashboard']);
1377
- routerState = {
1378
- snapshot: new Snapshot(this)
1379
- };
1380
- events = new EventEmitter();
1332
+ constructor() {
1333
+ this.id = 0;
1334
+ this.navigated = true;
1335
+ this.currentUrlTree = this.createUrlTree(['/dashboard']);
1336
+ this.routerState = {
1337
+ snapshot: new Snapshot(this)
1338
+ };
1339
+ this.events = new EventEmitter();
1340
+ }
1381
1341
  getURLTree(url) {
1382
1342
  if (Array.isArray(url)) {
1383
1343
  return this.createUrlTree(url);
@@ -1428,8 +1388,8 @@ class RouterStub {
1428
1388
  static serializeUrl(url) {
1429
1389
  return url.root.segments.map((segment) => segment.path).join('/');
1430
1390
  }
1431
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouterStub, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1432
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouterStub });
1391
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouterStub, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1392
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouterStub }); }
1433
1393
  }
1434
1394
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouterStub, decorators: [{
1435
1395
  type: Injectable
@@ -1519,8 +1479,8 @@ function fakeMatchMedia(matches = false) {
1519
1479
  }
1520
1480
 
1521
1481
  class TestingModule {
1522
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1523
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TestingModule, declarations: [DownloadTestComponent,
1482
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1483
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TestingModule, declarations: [DownloadTestComponent,
1524
1484
  TestDataTableHostComponent,
1525
1485
  HighLighterDirectiveTestComponent,
1526
1486
  TestLayoutHostComponent,
@@ -1529,10 +1489,10 @@ class TestingModule {
1529
1489
  LoginMenuStubComponent,
1530
1490
  RouterOutletStubComponent], imports: [CommonViewModule,
1531
1491
  FileModule,
1532
- DataTableModule] });
1533
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TestingModule, imports: [CommonViewModule,
1492
+ DataTableModule] }); }
1493
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TestingModule, imports: [CommonViewModule,
1534
1494
  FileModule,
1535
- DataTableModule] });
1495
+ DataTableModule] }); }
1536
1496
  }
1537
1497
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TestingModule, decorators: [{
1538
1498
  type: NgModule,