@porscheinformatik/material-addons 22.3.1 → 22.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,9 +20,9 @@ import * as i7 from '@angular/material/paginator';
20
20
  import { MatPaginator, PageEvent } from '@angular/material/paginator';
21
21
  import * as i8 from '@angular/material/sort';
22
22
  import { Sort, MatSort } from '@angular/material/sort';
23
- import * as i6 from '@angular/material/menu';
24
- import { MatDialogRef } from '@angular/material/dialog';
23
+ import { MatDialogRef, MatDialog } from '@angular/material/dialog';
25
24
  import { CdkDragDrop, CdkDropList, CdkDrag } from '@angular/cdk/drag-drop';
25
+ import * as i6 from '@angular/material/menu';
26
26
  import * as i4$1 from '@angular/cdk/stepper';
27
27
  import { CdkStepHeader, CdkStep, CdkStepper, StepContentPositionState } from '@angular/cdk/stepper';
28
28
  import { AnimationEvent, AnimationTriggerMetadata } from '@angular/animations';
@@ -33,7 +33,7 @@ import { EmblaOptionsType } from 'embla-carousel';
33
33
  import { TemplatePortal } from '@angular/cdk/portal';
34
34
  import * as i5$2 from '@angular/material/toolbar';
35
35
  import * as i10 from '@angular/material/badge';
36
- import { Title } from '@angular/platform-browser';
36
+ import { Title, SafeResourceUrl, DomSanitizer } from '@angular/platform-browser';
37
37
  import { TranslateService } from '@ngx-translate/core';
38
38
  import { BreakpointObserver } from '@angular/cdk/layout';
39
39
 
@@ -423,80 +423,40 @@ declare class CardModule {
423
423
  static ɵinj: _angular_core.ɵɵInjectorDeclaration<CardModule>;
424
424
  }
425
425
 
426
- interface QuickListItem {
427
- id: string;
426
+ declare class ContentHeaderComponent {
427
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContentHeaderComponent, never>;
428
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContentHeaderComponent, "mad-content-header", never, {}, {}, never, ["*"], true, never>;
428
429
  }
429
- declare class BaseQuickListComponent<T> implements OnInit, AfterViewInit {
430
- changeDetectorRef: ChangeDetectorRef;
431
- formBuilder: FormBuilder;
432
- allItems: T[];
433
- addLabel: string;
434
- addPossible: boolean;
435
- removePossible: boolean;
436
- blankItem: any;
437
- readonly: boolean;
438
- maxItems: number;
439
- minItems: number;
440
- formArray: FormArray;
441
- added: EventEmitter<T>;
442
- removed: EventEmitter<T>;
443
- itemTemplate: TemplateRef<any>;
444
- itemRows: QueryList<ElementRef>;
445
- rowCountFocus: number;
446
- addEventFunction: Function;
447
- constructor(changeDetectorRef: ChangeDetectorRef, formBuilder: FormBuilder);
448
- ngOnInit(): void;
449
- ngAfterViewInit(): void;
450
- addItem(): void;
451
- addReactiveItem(): void;
452
- removeItem(item: T): void;
453
- removeReactiveItem(item: AbstractControl<any>): void;
454
- setFocusOnAdd(): void;
455
- isAddAllowed(): boolean;
456
- isAddReactiveAllowed(): boolean;
457
- isDeleteAllowed(): boolean;
458
- isDeleteReactiveAllowed(): boolean;
459
- private interalAddItem;
460
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseQuickListComponent<any>, never>;
461
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseQuickListComponent<any>, "mad-base-quick-list", never, { "allItems": { "alias": "allItems"; "required": false; }; "addLabel": { "alias": "addLabel"; "required": false; }; "addPossible": { "alias": "addPossible"; "required": false; }; "removePossible": { "alias": "removePossible"; "required": false; }; "blankItem": { "alias": "blankItem"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxItems": { "alias": "maxItems"; "required": false; }; "minItems": { "alias": "minItems"; "required": false; }; "formArray": { "alias": "formArray"; "required": false; }; }, { "added": "added"; "removed": "removed"; }, ["itemTemplate"], never, true, never>;
430
+
431
+ declare class ContentPanelContainerComponent {
432
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContentPanelContainerComponent, never>;
433
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContentPanelContainerComponent, "mad-content-panel-container", never, {}, {}, never, ["mad-content-panel-container-sidebar", "mad-content-panel-container-content", "mad-content-panel-container-footer"], true, never>;
462
434
  }
463
435
 
464
- declare class QuickListCompactComponent extends BaseQuickListComponent<QuickListItem> {
465
- changeDetectorRef: ChangeDetectorRef;
466
- formBuilder: FormBuilder;
467
- constructor(changeDetectorRef: ChangeDetectorRef, formBuilder: FormBuilder);
468
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuickListCompactComponent, never>;
469
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<QuickListCompactComponent, "mad-quick-list-compact", never, {}, {}, never, ["label"], true, never>;
436
+ declare class ContentPanelContainerContentComponent {
437
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContentPanelContainerContentComponent, never>;
438
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContentPanelContainerContentComponent, "mad-content-panel-container-content", never, {}, {}, never, ["*"], true, never>;
470
439
  }
471
440
 
472
- declare class QuickListComponent extends BaseQuickListComponent<QuickListItem> {
473
- changeDetectorRef: ChangeDetectorRef;
474
- formBuilder: FormBuilder;
475
- constructor(changeDetectorRef: ChangeDetectorRef, formBuilder: FormBuilder);
476
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuickListComponent, never>;
477
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<QuickListComponent, "mad-quick-list", never, {}, {}, never, ["label"], true, never>;
441
+ declare class ContentPanelContainerFooterComponent {
442
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContentPanelContainerFooterComponent, never>;
443
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContentPanelContainerFooterComponent, "mad-content-panel-container-footer", never, {}, {}, never, ["*"], true, never>;
478
444
  }
479
445
 
480
- declare class ReactiveFormQuickListComponent extends BaseQuickListComponent<QuickListItem> {
481
- changeDetectorRef: ChangeDetectorRef;
482
- formBuilder: FormBuilder;
483
- constructor(changeDetectorRef: ChangeDetectorRef, formBuilder: FormBuilder);
484
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ReactiveFormQuickListComponent, never>;
485
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ReactiveFormQuickListComponent, "mad-reactive-form-quick-list", never, {}, {}, never, ["label"], true, never>;
446
+ declare class ContentPanelContainerSidebarComponent {
447
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContentPanelContainerSidebarComponent, never>;
448
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContentPanelContainerSidebarComponent, "mad-content-panel-container-sidebar", never, {}, {}, never, ["*"], true, never>;
486
449
  }
487
450
 
488
- declare class ReactiveFormQuickListCompactComponent extends BaseQuickListComponent<QuickListItem> {
489
- changeDetectorRef: ChangeDetectorRef;
490
- formBuilder: FormBuilder;
491
- constructor(changeDetectorRef: ChangeDetectorRef, formBuilder: FormBuilder);
492
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ReactiveFormQuickListCompactComponent, never>;
493
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ReactiveFormQuickListCompactComponent, "mad-reactive-form-quick-list-compact", never, {}, {}, never, ["label"], true, never>;
451
+ declare class MainContainerComponent {
452
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MainContainerComponent, never>;
453
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<MainContainerComponent, "mad-main-container", never, {}, {}, never, ["mad-content-header", "mad-flowbar", "mad-content-panel-container"], true, never>;
494
454
  }
495
455
 
496
- declare class QuickListModule {
497
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuickListModule, never>;
498
- static ɵmod: _angular_core.ɵɵNgModuleDeclaration<QuickListModule, never, [typeof i1.CommonModule, typeof i2$1.MatButtonModule, typeof i3.MatIconModule, typeof ButtonModule, typeof i5$1.ReactiveFormsModule, typeof QuickListComponent, typeof BaseQuickListComponent, typeof QuickListCompactComponent, typeof ReactiveFormQuickListComponent, typeof ReactiveFormQuickListCompactComponent], [typeof QuickListComponent, typeof QuickListCompactComponent, typeof BaseQuickListComponent, typeof ReactiveFormQuickListComponent, typeof ReactiveFormQuickListCompactComponent]>;
499
- static ɵinj: _angular_core.ɵɵInjectorDeclaration<QuickListModule>;
456
+ declare class ContentPanelModule {
457
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContentPanelModule, never>;
458
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<ContentPanelModule, never, [typeof i1.CommonModule, typeof ContentHeaderComponent, typeof ContentPanelContainerComponent, typeof ContentPanelContainerContentComponent, typeof ContentPanelContainerFooterComponent, typeof ContentPanelContainerSidebarComponent, typeof MainContainerComponent], [typeof ContentHeaderComponent, typeof ContentPanelContainerComponent, typeof ContentPanelContainerContentComponent, typeof ContentPanelContainerFooterComponent, typeof ContentPanelContainerSidebarComponent, typeof MainContainerComponent]>;
459
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<ContentPanelModule>;
500
460
  }
501
461
 
502
462
  interface ColumnHeader {
@@ -552,12 +512,6 @@ declare class TableComponent implements OnInit, AfterViewInit {
552
512
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent, "mad-table", never, { "columns": { "alias": "columns"; "required": false; }; "filterLabel": { "alias": "filterLabel"; "required": false; }; "filterPlaceholder": { "alias": "filterPlaceholder"; "required": false; }; "noDataText": { "alias": "noDataText"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "defaultPageSize": { "alias": "defaultPageSize"; "required": false; }; "rowActions": { "alias": "rowActions"; "required": false; }; "tableActions": { "alias": "tableActions"; "required": false; }; "displayedData": { "alias": "displayedData"; "required": false; }; "paginationEnabled": { "alias": "paginationEnabled"; "required": false; }; "filterEnabled": { "alias": "filterEnabled"; "required": false; }; }, { "tableAction": "tableAction"; "rowAction": "rowAction"; "sortEvent": "sortEvent"; }, never, never, true, never>;
553
513
  }
554
514
 
555
- declare class TableModule {
556
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableModule, never>;
557
- static ɵmod: _angular_core.ɵɵNgModuleDeclaration<TableModule, never, [typeof i1.CommonModule, typeof i2$1.MatButtonModule, typeof i3.MatIconModule, typeof i3$1.MatFormFieldModule, typeof i4.MatInputModule, typeof i6.MatMenuModule, typeof i7.MatPaginatorModule, typeof i8.MatSortModule, typeof i9.MatTableModule, typeof ButtonModule, typeof TableComponent], [typeof TableComponent]>;
558
- static ɵinj: _angular_core.ɵɵInjectorDeclaration<TableModule>;
559
- }
560
-
561
515
  interface DataTableFilterOption {
562
516
  key: string;
563
517
  label: string;
@@ -825,6 +779,7 @@ declare class DataTableComponent implements AfterViewInit {
825
779
  allSelected: boolean;
826
780
  extPaginator: any;
827
781
  readonly ACTION_COLUMN_NAME = "__action__";
782
+ private static readonly EXPANDABLE_COLUMN_NAME;
828
783
  readonly effectivePersistenceConfig: _angular_core.Signal<DataTablePersistenceConfiguration>;
829
784
  readonly filterModeState: _angular_core.Signal<DataTableFilterMode>;
830
785
  readonly deprecatedForceSelectionMode: _angular_core.Signal<DataTableSelectionMode>;
@@ -874,6 +829,7 @@ declare class DataTableComponent implements AfterViewInit {
874
829
  ngAfterViewInit(): void;
875
830
  private registerSignalEffects;
876
831
  private registerMatSortEffect;
832
+ private registerExpandableTemplateEffect;
877
833
  private registerUseAsyncEffect;
878
834
  private registerExternalPaginatorEffect;
879
835
  private registerPageInputEffect;
@@ -909,6 +865,7 @@ declare class DataTableComponent implements AfterViewInit {
909
865
  showRowActionIcon(displayedData: any): boolean;
910
866
  showRadioButton(displayedData: any): boolean;
911
867
  showExpandableButton(displayedData: any): boolean;
868
+ isExpandableDetailRow: (_index: number, row: any) => boolean;
912
869
  isSelected(rowId: string): boolean;
913
870
  onToggleSelectAll(): void;
914
871
  onActionEvent(action: DataTableAction): void;
@@ -981,6 +938,88 @@ declare class DataTablePersistenceService {
981
938
  }
982
939
  declare const MAD_DATA_TABLE_PERSISTENCE_SERVICE: InjectionToken<DataTablePersistenceService>;
983
940
 
941
+ interface QuickListItem {
942
+ id: string;
943
+ }
944
+ declare class BaseQuickListComponent<T> implements OnInit, AfterViewInit {
945
+ changeDetectorRef: ChangeDetectorRef;
946
+ formBuilder: FormBuilder;
947
+ allItems: T[];
948
+ addLabel: string;
949
+ addPossible: boolean;
950
+ removePossible: boolean;
951
+ blankItem: any;
952
+ readonly: boolean;
953
+ maxItems: number;
954
+ minItems: number;
955
+ formArray: FormArray;
956
+ added: EventEmitter<T>;
957
+ removed: EventEmitter<T>;
958
+ itemTemplate: TemplateRef<any>;
959
+ itemRows: QueryList<ElementRef>;
960
+ rowCountFocus: number;
961
+ addEventFunction: Function;
962
+ constructor(changeDetectorRef: ChangeDetectorRef, formBuilder: FormBuilder);
963
+ ngOnInit(): void;
964
+ ngAfterViewInit(): void;
965
+ addItem(): void;
966
+ addReactiveItem(): void;
967
+ removeItem(item: T): void;
968
+ removeReactiveItem(item: AbstractControl<any>): void;
969
+ setFocusOnAdd(): void;
970
+ isAddAllowed(): boolean;
971
+ isAddReactiveAllowed(): boolean;
972
+ isDeleteAllowed(): boolean;
973
+ isDeleteReactiveAllowed(): boolean;
974
+ private interalAddItem;
975
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseQuickListComponent<any>, never>;
976
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseQuickListComponent<any>, "mad-base-quick-list", never, { "allItems": { "alias": "allItems"; "required": false; }; "addLabel": { "alias": "addLabel"; "required": false; }; "addPossible": { "alias": "addPossible"; "required": false; }; "removePossible": { "alias": "removePossible"; "required": false; }; "blankItem": { "alias": "blankItem"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxItems": { "alias": "maxItems"; "required": false; }; "minItems": { "alias": "minItems"; "required": false; }; "formArray": { "alias": "formArray"; "required": false; }; }, { "added": "added"; "removed": "removed"; }, ["itemTemplate"], never, true, never>;
977
+ }
978
+
979
+ declare class QuickListCompactComponent extends BaseQuickListComponent<QuickListItem> {
980
+ changeDetectorRef: ChangeDetectorRef;
981
+ formBuilder: FormBuilder;
982
+ constructor(changeDetectorRef: ChangeDetectorRef, formBuilder: FormBuilder);
983
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuickListCompactComponent, never>;
984
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<QuickListCompactComponent, "mad-quick-list-compact", never, {}, {}, never, ["label"], true, never>;
985
+ }
986
+
987
+ declare class QuickListComponent extends BaseQuickListComponent<QuickListItem> {
988
+ changeDetectorRef: ChangeDetectorRef;
989
+ formBuilder: FormBuilder;
990
+ constructor(changeDetectorRef: ChangeDetectorRef, formBuilder: FormBuilder);
991
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuickListComponent, never>;
992
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<QuickListComponent, "mad-quick-list", never, {}, {}, never, ["label"], true, never>;
993
+ }
994
+
995
+ declare class ReactiveFormQuickListComponent extends BaseQuickListComponent<QuickListItem> {
996
+ changeDetectorRef: ChangeDetectorRef;
997
+ formBuilder: FormBuilder;
998
+ constructor(changeDetectorRef: ChangeDetectorRef, formBuilder: FormBuilder);
999
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ReactiveFormQuickListComponent, never>;
1000
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ReactiveFormQuickListComponent, "mad-reactive-form-quick-list", never, {}, {}, never, ["label"], true, never>;
1001
+ }
1002
+
1003
+ declare class ReactiveFormQuickListCompactComponent extends BaseQuickListComponent<QuickListItem> {
1004
+ changeDetectorRef: ChangeDetectorRef;
1005
+ formBuilder: FormBuilder;
1006
+ constructor(changeDetectorRef: ChangeDetectorRef, formBuilder: FormBuilder);
1007
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ReactiveFormQuickListCompactComponent, never>;
1008
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ReactiveFormQuickListCompactComponent, "mad-reactive-form-quick-list-compact", never, {}, {}, never, ["label"], true, never>;
1009
+ }
1010
+
1011
+ declare class QuickListModule {
1012
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<QuickListModule, never>;
1013
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<QuickListModule, never, [typeof i1.CommonModule, typeof i2$1.MatButtonModule, typeof i3.MatIconModule, typeof ButtonModule, typeof i5$1.ReactiveFormsModule, typeof QuickListComponent, typeof BaseQuickListComponent, typeof QuickListCompactComponent, typeof ReactiveFormQuickListComponent, typeof ReactiveFormQuickListCompactComponent], [typeof QuickListComponent, typeof QuickListCompactComponent, typeof BaseQuickListComponent, typeof ReactiveFormQuickListComponent, typeof ReactiveFormQuickListCompactComponent]>;
1014
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<QuickListModule>;
1015
+ }
1016
+
1017
+ declare class TableModule {
1018
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableModule, never>;
1019
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<TableModule, never, [typeof i1.CommonModule, typeof i2$1.MatButtonModule, typeof i3.MatIconModule, typeof i3$1.MatFormFieldModule, typeof i4.MatInputModule, typeof i6.MatMenuModule, typeof i7.MatPaginatorModule, typeof i8.MatSortModule, typeof i9.MatTableModule, typeof ButtonModule, typeof TableComponent], [typeof TableComponent]>;
1020
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<TableModule>;
1021
+ }
1022
+
984
1023
  declare class StepHeaderComponent extends CdkStepHeader implements AfterViewInit, OnDestroy {
985
1024
  private _focusMonitor;
986
1025
  index: number;
@@ -1065,42 +1104,6 @@ declare class StepperModule {
1065
1104
  static ɵinj: _angular_core.ɵɵInjectorDeclaration<StepperModule>;
1066
1105
  }
1067
1106
 
1068
- declare class ContentHeaderComponent {
1069
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContentHeaderComponent, never>;
1070
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContentHeaderComponent, "mad-content-header", never, {}, {}, never, ["*"], true, never>;
1071
- }
1072
-
1073
- declare class ContentPanelContainerComponent {
1074
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContentPanelContainerComponent, never>;
1075
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContentPanelContainerComponent, "mad-content-panel-container", never, {}, {}, never, ["mad-content-panel-container-sidebar", "mad-content-panel-container-content", "mad-content-panel-container-footer"], true, never>;
1076
- }
1077
-
1078
- declare class ContentPanelContainerContentComponent {
1079
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContentPanelContainerContentComponent, never>;
1080
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContentPanelContainerContentComponent, "mad-content-panel-container-content", never, {}, {}, never, ["*"], true, never>;
1081
- }
1082
-
1083
- declare class ContentPanelContainerFooterComponent {
1084
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContentPanelContainerFooterComponent, never>;
1085
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContentPanelContainerFooterComponent, "mad-content-panel-container-footer", never, {}, {}, never, ["*"], true, never>;
1086
- }
1087
-
1088
- declare class ContentPanelContainerSidebarComponent {
1089
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContentPanelContainerSidebarComponent, never>;
1090
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ContentPanelContainerSidebarComponent, "mad-content-panel-container-sidebar", never, {}, {}, never, ["*"], true, never>;
1091
- }
1092
-
1093
- declare class MainContainerComponent {
1094
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<MainContainerComponent, never>;
1095
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<MainContainerComponent, "mad-main-container", never, {}, {}, never, ["mad-content-header", "mad-flowbar", "mad-content-panel-container"], true, never>;
1096
- }
1097
-
1098
- declare class ContentPanelModule {
1099
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContentPanelModule, never>;
1100
- static ɵmod: _angular_core.ɵɵNgModuleDeclaration<ContentPanelModule, never, [typeof i1.CommonModule, typeof ContentHeaderComponent, typeof ContentPanelContainerComponent, typeof ContentPanelContainerContentComponent, typeof ContentPanelContainerFooterComponent, typeof ContentPanelContainerSidebarComponent, typeof MainContainerComponent], [typeof ContentHeaderComponent, typeof ContentPanelContainerComponent, typeof ContentPanelContainerContentComponent, typeof ContentPanelContainerFooterComponent, typeof ContentPanelContainerSidebarComponent, typeof MainContainerComponent]>;
1101
- static ɵinj: _angular_core.ɵɵInjectorDeclaration<ContentPanelModule>;
1102
- }
1103
-
1104
1107
  interface IStep {
1105
1108
  label: string;
1106
1109
  enabled?: boolean;
@@ -1395,7 +1398,7 @@ declare class BreadcrumbComponent {
1395
1398
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<BreadcrumbComponent, "mad-breadcrumb", never, { "breadcrumbs": { "alias": "breadcrumbs"; "required": true; "isSignal": true; }; "showCopy": { "alias": "showCopy"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; }, { "copy": "copy"; }, never, never, true, never>;
1396
1399
  }
1397
1400
 
1398
- declare const VERSION = "22.3.1";
1401
+ declare const VERSION = "22.3.2";
1399
1402
 
1400
1403
  type AlertType = 'success' | 'info' | 'warning' | 'error';
1401
1404
  type AlertSize = 'small' | 'medium' | 'large';
@@ -1422,6 +1425,408 @@ interface AlertDefaultOptions {
1422
1425
  declare const MAD_ALERT_DEFAULT_CONFIGURATION: InjectionToken<AlertDefaultOptions>;
1423
1426
  declare function MAD_ALERT_DEFAULT_CONFIGURATION_FACTORY(): AlertDefaultOptions;
1424
1427
 
1425
- export { AlertComponent, BaseQuickListComponent, BreadcrumbComponent, ButtonModule, CardComponent, CardModule, CarouselComponent, CarouselShortTextDirective, CarouselSlideDirective, ContentHeaderComponent, ContentPanelContainerComponent, ContentPanelContainerContentComponent, ContentPanelContainerFooterComponent, ContentPanelContainerSidebarComponent, ContentPanelModule, DangerButtonComponent, DataTableActionType, DataTableColumnsModalComponent, DataTableComponent, DataTablePersistenceService, DataTableTemplateCellDefinition, DataTableTemplateColumnDefinition, DataTableTemplateExpandableCellDefinition, DataTableTemplateExpandableColumnDefinition, FileUploadComponent, FlowbarComponent, FlowbarModule, IconButtonComponent, LinkButtonComponent, MAD_ALERT_DEFAULT_CONFIGURATION, MAD_ALERT_DEFAULT_CONFIGURATION_FACTORY, MAD_DATA_TABLE_GLOBAL_CONFIGURATION, MAD_DATA_TABLE_PERSISTENCE_SERVICE, MAD_READONLY_FORM_FIELD_DEFAULT_CONFIGURATION, MadBasicButton, MadButtonDirective, MadButtonGroupComponent, MainContainerComponent, MaterialActionButtonComponent, MaterialActionButtonModule, MaterialAddonsModule, NumberFormatService, NumericFieldDirective, NumericFieldModule, OutlineButtonComponent, PrimaryButtonComponent, QuickListCompactComponent, QuickListComponent, QuickListModule, ReactiveFormQuickListCompactComponent, ReactiveFormQuickListComponent, ReadOnlyFormFieldComponent, ReadOnlyFormFieldModule, ReadOnlyFormFieldWrapperComponent, SidebarComponent, SidebarItemComponent, SidebarLayoutComponent, SidebarModule, StepComponent, StepHeaderComponent, StepperComponent, StepperModule, TableComponent, TableModule, ThrottleClickDirective, ThrottleClickModule, TileComponent, ToolbarComponent, ToolbarModule, ToolbarService, VERSION, madStepperAnimations };
1426
- export type { Action, AlertDefaultOptions, AlertSize, AlertType, BackAction, BreadcrumbItem, ColumnHeader, DataTableAction, DataTableColumn, DataTableColumnDefinition, DataTableColumnDefinitionChange, DataTableFilterMode, DataTableFilterObject, DataTableFilterOption, DataTableGlobalConfiguration, DataTablePersistenceConfiguration, DataTableSelectionEmitMode, DataTableSelectionEmitType, DataTableSelectionMode, FormFieldDefaultOptions, FormatOptions, IStep, MainAction, QuickListItem, StripOptions, TableAction, TileIconPosition, TileSize, TileVariant, ToolbarAction, ToolbarActionBadge, UploadError };
1428
+ type FilePreviewKind = 'image' | 'pdf' | 'docx' | 'xlsx' | 'unknown';
1429
+ type ThumbnailSize = 'sm' | 'md' | 'lg' | {
1430
+ width: number;
1431
+ height: number;
1432
+ };
1433
+ /**
1434
+ * Supported MIME types for file preview rendering.
1435
+ * Includes all types supported by built-in renderers (images, PDF, DOCX, and spreadsheets).
1436
+ * Use as a union type for better IDE autocomplete and type safety.
1437
+ */
1438
+ type MimeType = 'image/jpeg' | 'image/png' | 'image/gif' | 'image/webp' | 'image/bmp' | 'image/svg+xml' | 'image/x-icon' | 'image/ico' | 'application/pdf' | 'application/msword' | 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' | 'application/vnd.ms-word.document.macroenabled.12' | 'application/vnd.openxmlformats-officedocument.wordprocessingml.template' | 'application/vnd.ms-word.template.macroenabled.12' | 'application/vnd.oasis.opendocument.text' | 'application/rtf' | 'text/rtf' | 'application/vnd.ms-excel' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' | 'application/vnd.ms-excel.sheet.macroenabled.12' | 'application/vnd.ms-excel.template.macroenabled.12' | 'application/vnd.oasis.opendocument.spreadsheet' | 'text/csv' | 'text/plain';
1439
+ /**
1440
+ * Structured Base64 input accepted by the component as an alternative to raw strings.
1441
+ * Use this when you receive binary data from a backend API in Base64 format along
1442
+ * with the file's MIME type (e.g. carCAT document service responses).
1443
+ *
1444
+ * @example
1445
+ * // Backend returns { content: "<base64>", contentType: "application/pdf" }
1446
+ * const source: FilePreviewBase64Input = {
1447
+ * data: apiResponse.content, // raw base64 or full data: URL
1448
+ * mimeType: apiResponse.contentType
1449
+ * };
1450
+ */
1451
+ interface FilePreviewBase64Input {
1452
+ /** Raw Base64 string or fully qualified data URI (data:<mime>;base64,<data>). */
1453
+ data: string;
1454
+ /** MIME type of the file, e.g. 'image/png' or 'application/pdf'. */
1455
+ mimeType: MimeType | (string & {});
1456
+ }
1457
+ /**
1458
+ * Represents a single file item to be previewed. The `source` field is intentionally
1459
+ * flexible to accommodate all common integration patterns (URL, Blob, File, ArrayBuffer,
1460
+ * raw Base64, or structured Base64 input).
1461
+ */
1462
+ interface FilePreviewItem {
1463
+ /** Unique stable identifier for this item. Used for trackBy and delete events. */
1464
+ id: string;
1465
+ /** Display name including extension, e.g. 'service-order.pdf'. */
1466
+ name: string;
1467
+ /**
1468
+ * MIME type string, e.g. 'application/pdf'. Recommended for accurate kind detection,
1469
+ * but optional when the file extension in `name` is sufficient for renderer fallback.
1470
+ */
1471
+ mimeType?: MimeType | (string & {});
1472
+ /**
1473
+ * File content in any supported form.
1474
+ * - `string` — URL or data URI (data:<mime>;base64,<data>)
1475
+ * - `FilePreviewBase64Input` — structured Base64 input from backend APIs
1476
+ * - `Blob | File` — browser file objects
1477
+ * - `ArrayBuffer` — raw binary buffer
1478
+ */
1479
+ source?: string | FilePreviewBase64Input | Blob | File | ArrayBuffer;
1480
+ /** Pre-resolved URL for the full-size preview. Skips internal URL resolution when set. */
1481
+ previewUrl?: string;
1482
+ /** Pre-resolved URL for the thumbnail image. Skips thumbnail generation when set. */
1483
+ thumbnailUrl?: string;
1484
+ /** Optional file size in bytes. Displayed in the overlay header. */
1485
+ size?: number;
1486
+ /** Additional metadata fields passed through to action/delete events unchanged. */
1487
+ meta?: Record<string, unknown>;
1488
+ }
1489
+ /**
1490
+ * Resolved version of `FilePreviewItem` produced by the service after URL resolution
1491
+ * and thumbnail generation. Emitted through all output events.
1492
+ */
1493
+ interface ResolvedFilePreviewItem extends FilePreviewItem {
1494
+ /** Detected rendering kind after MIME + extension analysis. */
1495
+ kind: FilePreviewKind;
1496
+ /** Resolved URL suitable for preview (object URL, data URI, or original URL). */
1497
+ resolvedPreviewUrl?: string;
1498
+ /** Resolved thumbnail URL. Undefined if no thumbnail could be generated (shows icon). */
1499
+ resolvedThumbnailUrl?: string;
1500
+ /** Lower-cased file extension extracted from name, e.g. 'pdf'. */
1501
+ extension: string;
1502
+ }
1503
+ /** A custom action button rendered in the thumbnail action bar and overlay header. */
1504
+ interface FilePreviewAction {
1505
+ /** Unique identifier returned with the `actionClicked` event. */
1506
+ id: string;
1507
+ /** Material icon ligature, e.g. 'info', 'share', 'edit'. */
1508
+ icon: string;
1509
+ /** Tooltip and aria-label. */
1510
+ label: string;
1511
+ /** Angular Material theme colour applied to the icon button. */
1512
+ color?: ThemePalette;
1513
+ }
1514
+ /** Labels used by the main file preview component. */
1515
+ interface FilePreviewLabels {
1516
+ /** Aria label for the outer gallery section. */
1517
+ galleryAriaLabel?: string;
1518
+ /** Prefix used for thumbnail button aria label. */
1519
+ thumbnailPreviewAriaPrefix?: string;
1520
+ /** Empty-state message when no items are present. */
1521
+ emptyStateMessage?: string;
1522
+ /** Tooltip and aria label for preview action button. */
1523
+ previewActionLabel?: string;
1524
+ /** Tooltip and aria label for download action button. */
1525
+ downloadActionLabel?: string;
1526
+ /** Tooltip and aria label for delete action button. */
1527
+ deleteActionLabel?: string;
1528
+ /** Tooltip and aria label for close overlay action. */
1529
+ closeActionLabel?: string;
1530
+ /** Tooltip and aria label for maximize overlay action. */
1531
+ maximizeActionLabel?: string;
1532
+ /** Tooltip and aria label for restore (un-maximize) overlay action. */
1533
+ restoreActionLabel?: string;
1534
+ /** Message shown when no preview is available (unknown file type, unsupported format, etc.). */
1535
+ noPreviewMessage?: string;
1536
+ /** Link/button text for download actions in fallback sections. */
1537
+ downloadLabel?: string;
1538
+ /** Error message shown when DOCX rendering fails. */
1539
+ docxRenderErrorMessage?: string;
1540
+ }
1541
+ /** Configuration object for `<mad-file-preview>`. All fields are optional. */
1542
+ interface FilePreviewConfig {
1543
+ /**
1544
+ * Preset keyword or explicit pixel dimensions.
1545
+ * - 'sm' → 96 × 96 px
1546
+ * - 'md' → 132 × 132 px (default)
1547
+ * - 'lg' → 180 × 180 px
1548
+ * - { width, height } → custom size in px
1549
+ */
1550
+ thumbnailSize?: ThumbnailSize;
1551
+ /** When false the thumbnail click and action bar preview button do nothing. Default: true. */
1552
+ showOverlayPreview?: boolean;
1553
+ /** Shows the action bar below each thumbnail. Default: true. */
1554
+ showActionIcons?: boolean;
1555
+ /** Adds a Delete button to the action bar and overlay header. Default: true. */
1556
+ showDeleteAction?: boolean;
1557
+ /** Adds a Preview icon button to action bars when overlay preview is enabled. Default: true. */
1558
+ showPreviewAction?: boolean;
1559
+ /** Adds a Download icon button to action bars and overlay header. Default: true. */
1560
+ showDownloadAction?: boolean;
1561
+ /** Additional custom action buttons appended to every action bar. */
1562
+ actions?: FilePreviewAction[];
1563
+ /**
1564
+ * When true, each PDF is rasterised to a real JPEG thumbnail of its first page via `pdfjs-dist`.
1565
+ * Default: true.
1566
+ * Set to false to show the PDF file-type icon instead — the escape hatch for very long lists,
1567
+ * where downloading and rendering every PDF would dominate initial load time.
1568
+ * Falls back to the icon automatically when `pdfjs-dist` is not installed or rendering fails.
1569
+ */
1570
+ generatePdfThumbnails?: boolean;
1571
+ /**
1572
+ * When true, each DOCX shows a real mini-preview: the document's first page rendered by
1573
+ * `docx-preview` and scaled down to the tile, so the thumbnail and the full preview come from
1574
+ * the same renderer and always match.
1575
+ * Default: true.
1576
+ * Rendering is deferred until the tile scrolls into view, so off-screen tiles cost nothing.
1577
+ * Set to false to show the DOCX file-type icon instead — the escape hatch for very long lists.
1578
+ * Falls back to the icon automatically when `docx-preview` is not installed or rendering fails.
1579
+ */
1580
+ generateDocxThumbnails?: boolean;
1581
+ }
1582
+ type ResolvedFilePreviewConfig = Required<Omit<FilePreviewConfig, 'actions'>> & Pick<FilePreviewConfig, 'actions'>;
1583
+ declare const DEFAULT_FILE_PREVIEW_CONFIG: ResolvedFilePreviewConfig;
1584
+ declare const DEFAULT_FILE_PREVIEW_LABELS: Required<FilePreviewLabels>;
1585
+ /** Thumbnail dimension presets in pixels. */
1586
+ declare const THUMBNAIL_SIZE_MAP: Record<Exclude<ThumbnailSize, object>, {
1587
+ width: number;
1588
+ height: number;
1589
+ }>;
1590
+
1591
+ /**
1592
+ * Core service for the Material Addons File Preview component.
1593
+ *
1594
+ * Responsibilities:
1595
+ * - Detecting file kind from MIME type / extension
1596
+ * - Resolving any source format (URL, data URI, Base64 input, Blob, ArrayBuffer) to a URL
1597
+ * - Generating rasterised PDF thumbnails via pdfjs-dist (optional — gracefully falls back to icon)
1598
+ * - Triggering browser file downloads
1599
+ * - Cleaning up blob object URLs on destroy
1600
+ *
1601
+ * Note: DOCX rendering is now component-driven via DocxPreviewComponent for both full preview
1602
+ * and thumbnail modes. The service no longer renders DOCX content; it only detects the kind
1603
+ * and resolves the source URL. The dialog and gallery handle rendering.
1604
+ */
1605
+ declare class FilePreviewService {
1606
+ /** Tracks object URLs created by this service so they can be revoked on destroy. */
1607
+ private readonly objectUrls;
1608
+ private readonly platformId;
1609
+ private readonly document;
1610
+ private readonly isBrowser;
1611
+ private readonly pdfRenderer;
1612
+ /** Resolves an array of FilePreviewItems in parallel. */
1613
+ resolveItems(items: FilePreviewItem[], thumbnailConfig?: {
1614
+ generatePdfThumbnails?: boolean;
1615
+ generateDocxThumbnails?: boolean;
1616
+ }): Promise<ResolvedFilePreviewItem[]>;
1617
+ /**
1618
+ * Resolves a single FilePreviewItem:
1619
+ * 1. Detects the rendering kind (image / pdf / docx / unknown)
1620
+ * 2. Converts the source to a URL usable by <img>, <object>, or fetch
1621
+ * 3. Generates a thumbnail URL if none is supplied
1622
+ */
1623
+ resolveItem(item: FilePreviewItem, thumbnailConfig?: {
1624
+ generatePdfThumbnails?: boolean;
1625
+ generateDocxThumbnails?: boolean;
1626
+ }): Promise<ResolvedFilePreviewItem>;
1627
+ /**
1628
+ * Detects the rendering kind from MIME type and/or file extension.
1629
+ * Extension-based detection serves as a reliable fallback for
1630
+ * scenarios where the MIME type is generic (e.g. 'application/octet-stream').
1631
+ */
1632
+ detectKind(item: Pick<FilePreviewItem, 'mimeType' | 'name'>): FilePreviewKind;
1633
+ /**
1634
+ * Attempts to generate a rasterised first-page thumbnail for a PDF source.
1635
+ * Requires `pdfjs-dist` to be installed in the host application.
1636
+ * Returns undefined (triggering icon fallback) if the library is absent or rendering fails.
1637
+ *
1638
+ * To install: npm install pdfjs-dist
1639
+ */
1640
+ tryGeneratePdfThumbnail(source: FilePreviewItem['source'], resolvedUrl: string): Promise<string | undefined>;
1641
+ /** Triggers a browser download for the resolved file. */
1642
+ download(item: ResolvedFilePreviewItem): void;
1643
+ /**
1644
+ * Formats a byte count as a human-readable string (B / KB / MB).
1645
+ * Exposed for use in templates and tests.
1646
+ */
1647
+ formatFileSize(bytes?: number): string;
1648
+ /** Revokes all object URLs created during this service's lifetime. Call on component destroy. */
1649
+ releaseResources(): void;
1650
+ /**
1651
+ * Keeps only currently used object URLs and revokes all others.
1652
+ * Useful for long-lived components receiving many list updates.
1653
+ */
1654
+ retainOnlyObjectUrls(urlsToKeep: Iterable<string | undefined>): void;
1655
+ /**
1656
+ * Converts any accepted source format to a URL string.
1657
+ *
1658
+ * Accepted forms:
1659
+ * - `string` → returned as-is (data URI or http/https URL)
1660
+ * - `FilePreviewBase64Input` → assembled into a data URI
1661
+ * - `Blob | File` → converted to an object URL (tracked for cleanup)
1662
+ * - `ArrayBuffer` → wrapped in a Blob, then object URL
1663
+ */
1664
+ resolveSourceUrl(source?: FilePreviewItem['source']): string | undefined;
1665
+ /**
1666
+ * Type guard for `FilePreviewBase64Input`.
1667
+ * Checks for the shape `{ data: string; mimeType: string }`.
1668
+ */
1669
+ isBase64Input(source: FilePreviewItem['source']): source is FilePreviewBase64Input;
1670
+ /**
1671
+ * Converts a `FilePreviewBase64Input` to a fully qualified data URI.
1672
+ * Accepts both raw base64 strings and pre-formed data URIs.
1673
+ */
1674
+ private base64InputToDataUrl;
1675
+ private createObjectUrl;
1676
+ private canUseObjectUrls;
1677
+ private sanitizeResolvedUrl;
1678
+ private getExtension;
1679
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilePreviewService, never>;
1680
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<FilePreviewService>;
1681
+ }
1682
+
1683
+ type FileActionVisibilityKey = 'previewAction' | 'downloadAction' | 'deleteAction';
1684
+ interface Dimensions {
1685
+ width: number;
1686
+ height: number;
1687
+ }
1688
+ declare class FilePreviewComponent implements OnDestroy {
1689
+ private readonly filePreviewService;
1690
+ private readonly dialog;
1691
+ private readonly translate;
1692
+ readonly items: _angular_core.InputSignal<FilePreviewItem[]>;
1693
+ readonly config: _angular_core.InputSignal<FilePreviewConfig>;
1694
+ readonly labels: _angular_core.InputSignal<FilePreviewLabels>;
1695
+ readonly previewOpened: _angular_core.OutputEmitterRef<ResolvedFilePreviewItem>;
1696
+ readonly actionClicked: _angular_core.OutputEmitterRef<{
1697
+ action: FilePreviewAction;
1698
+ item: ResolvedFilePreviewItem;
1699
+ }>;
1700
+ readonly deleteClicked: _angular_core.OutputEmitterRef<ResolvedFilePreviewItem>;
1701
+ readonly resolvedItems: _angular_core.WritableSignal<ResolvedFilePreviewItem[]>;
1702
+ readonly mergedConfig: _angular_core.Signal<{
1703
+ thumbnailSize: ThumbnailSize;
1704
+ showOverlayPreview: boolean;
1705
+ showActionIcons: boolean;
1706
+ showDeleteAction: boolean;
1707
+ showPreviewAction: boolean;
1708
+ showDownloadAction: boolean;
1709
+ actions?: FilePreviewAction[];
1710
+ generatePdfThumbnails: boolean;
1711
+ generateDocxThumbnails: boolean;
1712
+ }>;
1713
+ readonly thumbnailDimensions: _angular_core.Signal<Dimensions>;
1714
+ readonly mergedLabels: _angular_core.Signal<{
1715
+ galleryAriaLabel: string;
1716
+ thumbnailPreviewAriaPrefix: string;
1717
+ emptyStateMessage: string;
1718
+ previewActionLabel: string;
1719
+ downloadActionLabel: string;
1720
+ deleteActionLabel: string;
1721
+ closeActionLabel: string;
1722
+ maximizeActionLabel: string;
1723
+ restoreActionLabel: string;
1724
+ noPreviewMessage: string;
1725
+ downloadLabel: string;
1726
+ docxRenderErrorMessage: string;
1727
+ }>;
1728
+ readonly visibleCustomActions: _angular_core.Signal<FilePreviewAction[]>;
1729
+ readonly hasVisibleActions: _angular_core.Signal<boolean>;
1730
+ /** Ids of items whose DOCX thumbnail failed to render, so the template falls back to an icon. */
1731
+ protected readonly docxRenderErrors: _angular_core.WritableSignal<ReadonlySet<string>>;
1732
+ private dialogRef?;
1733
+ private loadRequestId;
1734
+ private loadDebounceTimer?;
1735
+ private isDestroyed;
1736
+ private readonly i18nLabels;
1737
+ constructor(filePreviewService: FilePreviewService, dialog: MatDialog, translate: TranslateService);
1738
+ ngOnDestroy(): void;
1739
+ trackById(_: number, item: ResolvedFilePreviewItem): string;
1740
+ onDocxRenderFailed(itemId: string): void;
1741
+ trackByActionId(_: number, action: FilePreviewAction): string;
1742
+ formatFileSize(bytes?: number): string;
1743
+ openPreview(item: ResolvedFilePreviewItem): void;
1744
+ triggerAction(action: FilePreviewAction, item: ResolvedFilePreviewItem): void;
1745
+ triggerDelete(item: ResolvedFilePreviewItem): void;
1746
+ download(item: ResolvedFilePreviewItem): void;
1747
+ isFileActionVisible(action: FileActionVisibilityKey): boolean;
1748
+ private scheduleLoadItems;
1749
+ private loadItems;
1750
+ private collectItemUrls;
1751
+ private retainCurrentObjectUrls;
1752
+ private computeFileActionVisible;
1753
+ private loadI18nLabels;
1754
+ private resolveSize;
1755
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilePreviewComponent, never>;
1756
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilePreviewComponent, "mad-file-preview", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; }, { "previewOpened": "previewOpened"; "actionClicked": "actionClicked"; "deleteClicked": "deleteClicked"; }, never, never, true, never>;
1757
+ }
1758
+
1759
+ interface FilePreviewDialogData {
1760
+ item: ResolvedFilePreviewItem;
1761
+ config: ResolvedFilePreviewConfig;
1762
+ labels: Required<FilePreviewLabels>;
1763
+ visibleCustomActions: FilePreviewAction[];
1764
+ isDownloadVisible: boolean;
1765
+ isDeleteVisible: boolean;
1766
+ }
1767
+ type FilePreviewDialogResult = {
1768
+ type: 'delete';
1769
+ item: ResolvedFilePreviewItem;
1770
+ } | {
1771
+ type: 'action';
1772
+ action: FilePreviewAction;
1773
+ item: ResolvedFilePreviewItem;
1774
+ } | null;
1775
+ declare class FilePreviewDialogComponent {
1776
+ readonly dialogRef: MatDialogRef<FilePreviewDialogComponent, FilePreviewDialogResult>;
1777
+ private readonly filePreviewService;
1778
+ private readonly documentRef;
1779
+ private readonly sanitizer;
1780
+ /** Set to the kind whose renderer reported a failure, so the template can fall back. */
1781
+ readonly renderError: _angular_core.WritableSignal<FilePreviewKind>;
1782
+ readonly item: ResolvedFilePreviewItem;
1783
+ readonly config: ResolvedFilePreviewConfig;
1784
+ readonly labels: Required<FilePreviewLabels>;
1785
+ readonly visibleCustomActions: FilePreviewAction[];
1786
+ readonly isDownloadVisible: boolean;
1787
+ readonly isDeleteVisible: boolean;
1788
+ protected downloadUrl: string | null;
1789
+ protected inlinePdfUrl: SafeResourceUrl | null;
1790
+ protected isMaximized: boolean;
1791
+ constructor(dialogRef: MatDialogRef<FilePreviewDialogComponent, FilePreviewDialogResult>, data: FilePreviewDialogData, filePreviewService: FilePreviewService, documentRef: Document | null, sanitizer: DomSanitizer);
1792
+ trackByActionId(_: number, action: FilePreviewAction): string;
1793
+ formatFileSize(bytes?: number): string;
1794
+ getMetaIcon(): string;
1795
+ getMaximizeLabel(): string;
1796
+ close(): void;
1797
+ toggleMaximize(): void;
1798
+ download(): void;
1799
+ triggerDelete(): void;
1800
+ triggerAction(action: FilePreviewAction): void;
1801
+ ngAfterViewInit(): void;
1802
+ onDocxRenderFailed(): void;
1803
+ private applyDialogSize;
1804
+ private updatePanelClasses;
1805
+ private sanitizeUrl;
1806
+ private computeInlinePdfUrl;
1807
+ private isTrustedUrl;
1808
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilePreviewDialogComponent, never>;
1809
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilePreviewDialogComponent, "mad-file-preview-dialog", never, {}, {}, never, never, true, never>;
1810
+ }
1811
+
1812
+ declare class MaterialFilePreviewModule {
1813
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaterialFilePreviewModule, never>;
1814
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<MaterialFilePreviewModule, never, [typeof FilePreviewComponent], [typeof FilePreviewComponent]>;
1815
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<MaterialFilePreviewModule>;
1816
+ }
1817
+
1818
+ /**
1819
+ * Injection token for the pdfjs-dist worker script URL.
1820
+ *
1821
+ * Override this token in your application providers when you want to serve the
1822
+ * worker from your own origin (e.g. copied into `assets/`) instead of the CDN:
1823
+ *
1824
+ * ```ts
1825
+ * { provide: PDF_WORKER_SRC, useValue: '/assets/pdf.worker.min.mjs' }
1826
+ * ```
1827
+ */
1828
+ declare const PDF_WORKER_SRC: InjectionToken<string>;
1829
+
1830
+ export { AlertComponent, BaseQuickListComponent, BreadcrumbComponent, ButtonModule, CardComponent, CardModule, CarouselComponent, CarouselShortTextDirective, CarouselSlideDirective, ContentHeaderComponent, ContentPanelContainerComponent, ContentPanelContainerContentComponent, ContentPanelContainerFooterComponent, ContentPanelContainerSidebarComponent, ContentPanelModule, DEFAULT_FILE_PREVIEW_CONFIG, DEFAULT_FILE_PREVIEW_LABELS, DangerButtonComponent, DataTableActionType, DataTableColumnsModalComponent, DataTableComponent, DataTablePersistenceService, DataTableTemplateCellDefinition, DataTableTemplateColumnDefinition, DataTableTemplateExpandableCellDefinition, DataTableTemplateExpandableColumnDefinition, FilePreviewComponent, FilePreviewDialogComponent, FilePreviewService, FileUploadComponent, FlowbarComponent, FlowbarModule, IconButtonComponent, LinkButtonComponent, MAD_ALERT_DEFAULT_CONFIGURATION, MAD_ALERT_DEFAULT_CONFIGURATION_FACTORY, MAD_DATA_TABLE_GLOBAL_CONFIGURATION, MAD_DATA_TABLE_PERSISTENCE_SERVICE, MAD_READONLY_FORM_FIELD_DEFAULT_CONFIGURATION, MadBasicButton, MadButtonDirective, MadButtonGroupComponent, MainContainerComponent, MaterialActionButtonComponent, MaterialActionButtonModule, MaterialAddonsModule, MaterialFilePreviewModule, NumberFormatService, NumericFieldDirective, NumericFieldModule, OutlineButtonComponent, PDF_WORKER_SRC, PrimaryButtonComponent, QuickListCompactComponent, QuickListComponent, QuickListModule, ReactiveFormQuickListCompactComponent, ReactiveFormQuickListComponent, ReadOnlyFormFieldComponent, ReadOnlyFormFieldModule, ReadOnlyFormFieldWrapperComponent, SidebarComponent, SidebarItemComponent, SidebarLayoutComponent, SidebarModule, StepComponent, StepHeaderComponent, StepperComponent, StepperModule, THUMBNAIL_SIZE_MAP, TableComponent, TableModule, ThrottleClickDirective, ThrottleClickModule, TileComponent, ToolbarComponent, ToolbarModule, ToolbarService, VERSION, madStepperAnimations };
1831
+ export type { Action, AlertDefaultOptions, AlertSize, AlertType, BackAction, BreadcrumbItem, ColumnHeader, DataTableAction, DataTableColumn, DataTableColumnDefinition, DataTableColumnDefinitionChange, DataTableFilterMode, DataTableFilterObject, DataTableFilterOption, DataTableGlobalConfiguration, DataTablePersistenceConfiguration, DataTableSelectionEmitMode, DataTableSelectionEmitType, DataTableSelectionMode, FilePreviewAction, FilePreviewBase64Input, FilePreviewConfig, FilePreviewDialogData, FilePreviewDialogResult, FilePreviewItem, FilePreviewKind, FilePreviewLabels, FormFieldDefaultOptions, FormatOptions, IStep, MainAction, MimeType, QuickListItem, ResolvedFilePreviewConfig, ResolvedFilePreviewItem, StripOptions, TableAction, ThumbnailSize, TileIconPosition, TileSize, TileVariant, ToolbarAction, ToolbarActionBadge, UploadError };
1427
1832
  //# sourceMappingURL=porscheinformatik-material-addons.d.ts.map