@messaia/cdk 21.1.0 → 22.0.0-rc.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.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@messaia/cdk",
3
- "version": "21.1.0",
3
+ "version": "22.0.0-rc.01",
4
4
  "peerDependencies": {
5
- "@angular/common": "^21.2.9",
6
- "@angular/core": "^21.2.9",
7
- "@angular/localize": "^21.2.9"
5
+ "@angular/common": "^22.0.7",
6
+ "@angular/core": "^22.0.7",
7
+ "@angular/localize": "^22.0.7"
8
8
  },
9
9
  "dependencies": {
10
10
  "tslib": "^2.3.0"
@@ -2,7 +2,7 @@ import * as i1 from '@angular/common';
2
2
  import { Location, DecimalPipe } from '@angular/common';
3
3
  import { HttpHeaders, HttpClient, HttpParams, HttpEvent, HttpInterceptor, HttpRequest, HttpHandler } from '@angular/common/http';
4
4
  import * as i0 from '@angular/core';
5
- import { ViewContainerRef, Provider, NgZone, EventEmitter, Type as Type$1, OnInit, AfterViewInit, ChangeDetectorRef, QueryList, ElementRef, Renderer2, Compiler, ComponentRef, AfterViewChecked, TemplateRef, OnDestroy, OnChanges, SimpleChanges, AfterContentInit, EmbeddedViewRef, ModuleWithProviders, InjectionToken, DoCheck, PipeTransform } from '@angular/core';
5
+ import { ViewContainerRef, Provider, NgZone, EventEmitter, Type as Type$1, OnInit, AfterViewInit, ChangeDetectorRef, QueryList, ElementRef, Renderer2, ComponentRef, AfterViewChecked, TemplateRef, OnDestroy, OnChanges, SimpleChanges, AfterContentInit, EmbeddedViewRef, ModuleWithProviders, InjectionToken, DoCheck, PipeTransform } from '@angular/core';
6
6
  import { MatDialogRef, MatDialog, MatDialogConfig } from '@angular/material/dialog';
7
7
  import { MatExpansionPanel } from '@angular/material/expansion';
8
8
  import { MatSnackBar, MatSnackBarRef, TextOnlySnackBar } from '@angular/material/snack-bar';
@@ -1041,12 +1041,46 @@ interface CanComponentDeactivate {
1041
1041
  * A base list component for components with pagination support.
1042
1042
  */
1043
1043
  declare abstract class BaseComponent implements IBaseComponent, OnInit, AfterViewInit, CanComponentDeactivate {
1044
+ /**
1045
+ * Activated route for accessing route parameters, data, and fragments.
1046
+ */
1044
1047
  protected route: ActivatedRoute;
1048
+ /**
1049
+ * Change detector reference for manually triggering change detection.
1050
+ */
1045
1051
  protected changeDetectorRef: ChangeDetectorRef;
1046
1052
  /**
1047
1053
  * Application settings.
1048
1054
  */
1049
1055
  appSetting: AppSetting;
1056
+ /**
1057
+ * Utility to evaluate media queries based on the current screen or window size.
1058
+ */
1059
+ media: VdMediaService;
1060
+ /**
1061
+ * Service for navigation and URL manipulation.
1062
+ */
1063
+ router: Router;
1064
+ /**
1065
+ * Service for setting the document's title.
1066
+ */
1067
+ protected titleService: Title;
1068
+ /**
1069
+ * Service for displaying snack bar notifications.
1070
+ */
1071
+ protected snackBarService: MatSnackBar;
1072
+ /**
1073
+ * Service for displaying confirmation and prompt dialogs.
1074
+ */
1075
+ protected dialogService: VdDialogService;
1076
+ /**
1077
+ * Service for opening modal dialogs.
1078
+ */
1079
+ protected dialog: MatDialog;
1080
+ /**
1081
+ * Service for managing browser location and history.
1082
+ */
1083
+ protected location: Location;
1050
1084
  /**
1051
1085
  * General configuration settings, with a flexible type to accommodate different configurations.
1052
1086
  */
@@ -1093,10 +1127,6 @@ declare abstract class BaseComponent implements IBaseComponent, OnInit, AfterVie
1093
1127
  * Stores any errors encountered during requests or operations.
1094
1128
  */
1095
1129
  errors: Array<string>;
1096
- /**
1097
- * Utility to evaluate media queries based on the current screen or window size.
1098
- */
1099
- media: VdMediaService;
1100
1130
  /**
1101
1131
  * List of permitted file extensions for upload or selection.
1102
1132
  */
@@ -1113,10 +1143,6 @@ declare abstract class BaseComponent implements IBaseComponent, OnInit, AfterVie
1113
1143
  * Additional configuration settings for the editor.
1114
1144
  */
1115
1145
  editorConfig: any;
1116
- /**
1117
- * Service for navigation and URL manipulation.
1118
- */
1119
- router: Router;
1120
1146
  /**
1121
1147
  * Optional hash value appended to URLs for bookmarking or state management.
1122
1148
  */
@@ -1173,30 +1199,10 @@ declare abstract class BaseComponent implements IBaseComponent, OnInit, AfterVie
1173
1199
  * Event emitter for reload actions, useful for refreshing data.
1174
1200
  */
1175
1201
  reload: EventEmitter<any>;
1176
- /**
1177
- * Service for setting the document's title.
1178
- */
1179
- protected titleService: Title;
1180
- /**
1181
- * Service for displaying snack bar notifications.
1182
- */
1183
- protected snackBarService: MatSnackBar;
1184
1202
  /**
1185
1203
  * Reference to the currently displayed snack bar, if any.
1186
1204
  */
1187
1205
  protected snackBarRef?: MatSnackBarRef<TextOnlySnackBar>;
1188
- /**
1189
- * Service for displaying confirmation and prompt dialogs.
1190
- */
1191
- protected dialogService: VdDialogService;
1192
- /**
1193
- * Service for opening modal dialogs.
1194
- */
1195
- protected dialog: MatDialog;
1196
- /**
1197
- * Service for managing browser location and history.
1198
- */
1199
- protected location: Location;
1200
1206
  /**
1201
1207
  * If true, sets a URL hash for navigation state.
1202
1208
  */
@@ -1222,13 +1228,9 @@ declare abstract class BaseComponent implements IBaseComponent, OnInit, AfterVie
1222
1228
  */
1223
1229
  protected warnAudio: HTMLAudioElement;
1224
1230
  /**
1225
- * Initializes services and application settings, sets up context helpers,
1226
- * and initializes the editor with default configurations.
1227
- *
1228
- * @param route - ActivatedRoute instance for accessing route parameters and data.
1229
- * @param changeDetectorRef - ChangeDetectorRef instance for manually triggering change detection.
1231
+ * Initializes component defaults and editor configuration.
1230
1232
  */
1231
- constructor(route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef);
1233
+ constructor();
1232
1234
  /**
1233
1235
  * Lifecycle hook that is called after data-bound properties of a directive are initialized
1234
1236
  */
@@ -2975,19 +2977,14 @@ declare class TableConfig {
2975
2977
  }
2976
2978
 
2977
2979
  declare class DynamicBuilder {
2978
- private compiler;
2979
- /**
2980
- * Constructor
2981
- * @param componentFactoryResolver
2982
- */
2983
- constructor(compiler: Compiler);
2984
2980
  /**
2985
- * Compiles the specified html
2986
- * @param viewContainerRef
2987
- * @param template
2988
- * @param data
2981
+ * Compiles a dynamic HTML template and inserts it into the specified view container.
2982
+ * @param viewContainerRef The view container where the compiled component will be inserted.
2983
+ * @param template The HTML template string to compile.
2984
+ * @param data Optional data to bind to the component instance.
2985
+ * @returns A reference to the created component or null if compilation fails.
2989
2986
  */
2990
- compileHtml(viewContainerRef: ViewContainerRef, template: string, data?: any): ComponentRef<any> | null;
2987
+ compileHtml(viewContainerRef: ViewContainerRef, template: string, data?: Record<string, unknown>): ComponentRef<Record<string, unknown>> | null;
2991
2988
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicBuilder, never>;
2992
2989
  static ɵprov: i0.ɵɵInjectableDeclaration<DynamicBuilder>;
2993
2990
  }
@@ -4629,8 +4626,6 @@ declare class VdDynamicTableConfigDialogComponent extends BaseComponent {
4629
4626
  */
4630
4627
  declare abstract class GenericListComponent<TEntity extends IEntity | any, TService extends GenericService<TEntity>> extends BaseComponent implements IGenericListComponent<TEntity>, OnDestroy {
4631
4628
  service: TService;
4632
- protected route: ActivatedRoute;
4633
- protected changeDetectorRef: ChangeDetectorRef;
4634
4629
  classType?: {
4635
4630
  new (): TEntity;
4636
4631
  } | undefined;
@@ -4883,7 +4878,7 @@ declare abstract class GenericListComponent<TEntity extends IEntity | any, TServ
4883
4878
  * @param changeDetectorRef ChangeDetectorRef for managing view updates.
4884
4879
  * @param classType The class type of the table entity.
4885
4880
  */
4886
- constructor(service: TService, route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef, classType?: {
4881
+ constructor(service: TService, classType?: {
4887
4882
  new (): TEntity;
4888
4883
  } | undefined);
4889
4884
  /**
@@ -5135,8 +5130,6 @@ declare abstract class GenericEmbeddedListComponent<TEntity extends IEntity, TPa
5135
5130
  protected entity: Type$1<TEntity>;
5136
5131
  service: TService;
5137
5132
  protected formBuilder: RxFormBuilder;
5138
- protected route: ActivatedRoute;
5139
- protected changeDetectorRef: ChangeDetectorRef;
5140
5133
  /**
5141
5134
  * The reactive form associated with this component.
5142
5135
  */
@@ -5178,7 +5171,7 @@ declare abstract class GenericEmbeddedListComponent<TEntity extends IEntity, TPa
5178
5171
  * @param route The activated route for navigation.
5179
5172
  * @param changeDetectorRef The change detector for managing view updates.
5180
5173
  */
5181
- constructor(entity: Type$1<TEntity>, service: TService, formBuilder: RxFormBuilder, route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef);
5174
+ constructor(entity: Type$1<TEntity>, service: TService, formBuilder: RxFormBuilder);
5182
5175
  /**
5183
5176
  * Lifecycle hook called after the constructor.
5184
5177
  * Initializes input properties and sets up data fetching.
@@ -6081,8 +6074,6 @@ declare class FormDefinition<T = any> {
6081
6074
  declare abstract class GenericFormBaseComponent<TEntity extends IEntity, TService extends GenericService<TEntity>> extends BaseComponent implements IGenericFormBaseComponent<TEntity>, OnChanges {
6082
6075
  entityCtor: Type$1<TEntity>;
6083
6076
  protected service: TService;
6084
- protected route: ActivatedRoute;
6085
- protected changeDetectorRef: ChangeDetectorRef;
6086
6077
  /**
6087
6078
  * The action of the form (add | edit).
6088
6079
  */
@@ -6154,7 +6145,7 @@ declare abstract class GenericFormBaseComponent<TEntity extends IEntity, TServic
6154
6145
  * Emitted when the form has been fully initialized
6155
6146
  * and is ready to be accessed or modified.
6156
6147
  */
6157
- formInitialized: EventEmitter<NgForm | FormGroup<any>>;
6148
+ formInitialized: EventEmitter<FormGroup<any> | NgForm>;
6158
6149
  /**
6159
6150
  * The current date.
6160
6151
  */
@@ -6266,7 +6257,7 @@ declare abstract class GenericFormBaseComponent<TEntity extends IEntity, TServic
6266
6257
  * @param route The activated route.
6267
6258
  * @param changeDetectorRef The change detector reference.
6268
6259
  */
6269
- constructor(entityCtor: Type$1<TEntity>, service: TService, route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef);
6260
+ constructor(entityCtor: Type$1<TEntity>, service: TService);
6270
6261
  /**
6271
6262
  * Called after the constructor, initializing input properties,
6272
6263
  * and the first call to ngOnChanges.
@@ -6541,8 +6532,6 @@ declare abstract class GenericFormBaseComponent<TEntity extends IEntity, TServic
6541
6532
  declare abstract class GenericFormComponent<TEntity extends IEntity, TService extends GenericService<TEntity>> extends GenericFormBaseComponent<TEntity, TService> {
6542
6533
  entityCtor: Type$1<TEntity>;
6543
6534
  protected service: TService;
6544
- protected route: ActivatedRoute;
6545
- protected changeDetectorRef: ChangeDetectorRef;
6546
6535
  /**
6547
6536
  * Form group
6548
6537
  */
@@ -6556,7 +6545,7 @@ declare abstract class GenericFormComponent<TEntity extends IEntity, TService ex
6556
6545
  * Constructor
6557
6546
  * @param service
6558
6547
  */
6559
- constructor(entityCtor: Type$1<TEntity>, service: TService, route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef);
6548
+ constructor(entityCtor: Type$1<TEntity>, service: TService);
6560
6549
  static ɵfac: i0.ɵɵFactoryDeclaration<GenericFormComponent<any, any>, never>;
6561
6550
  static ɵdir: i0.ɵɵDirectiveDeclaration<GenericFormComponent<any, any>, never, never, { "form": { "alias": "form"; "required": false; }; }, {}, never, never, true, never>;
6562
6551
  }
@@ -8048,8 +8037,6 @@ declare class RxwebValidators {
8048
8037
  declare abstract class GenericReactiveFormComponent<TEntity extends IEntity, TService extends GenericService<TEntity>> extends GenericFormBaseComponent<TEntity, TService> implements IGenericReactiveFormBaseComponent<TEntity> {
8049
8038
  entityCtor: Type$1<TEntity>;
8050
8039
  protected service: TService;
8051
- protected route: ActivatedRoute;
8052
- protected changeDetectorRef: ChangeDetectorRef;
8053
8040
  /**
8054
8041
  * Form group
8055
8042
  */
@@ -8082,7 +8069,7 @@ declare abstract class GenericReactiveFormComponent<TEntity extends IEntity, TSe
8082
8069
  * Constructor
8083
8070
  * @param service
8084
8071
  */
8085
- constructor(entityCtor: Type$1<TEntity>, service: TService, route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef);
8072
+ constructor(entityCtor: Type$1<TEntity>, service: TService);
8086
8073
  /**
8087
8074
  * Builds a new form
8088
8075
  */
@@ -8736,7 +8723,6 @@ declare abstract class AbstractMatFormField<T> implements DoCheck, OnDestroy, Co
8736
8723
  * VdAutocompleteOptionDirective class
8737
8724
  */
8738
8725
  declare class VdAutocompleteOptionDirective extends CdkPortal {
8739
- constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
8740
8726
  static ɵfac: i0.ɵɵFactoryDeclaration<VdAutocompleteOptionDirective, never>;
8741
8727
  static ɵdir: i0.ɵɵDirectiveDeclaration<VdAutocompleteOptionDirective, "[vd-autocomplete-option]ng-template", never, {}, {}, never, never, true, never>;
8742
8728
  }
@@ -8745,7 +8731,6 @@ declare class VdAutocompleteOptionDirective extends CdkPortal {
8745
8731
  * VdChipDirective class
8746
8732
  */
8747
8733
  declare class VdChipDirective extends CdkPortal {
8748
- constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
8749
8734
  static ɵfac: i0.ɵɵFactoryDeclaration<VdChipDirective, never>;
8750
8735
  static ɵdir: i0.ɵɵDirectiveDeclaration<VdChipDirective, "[vd-chip]ng-template", never, {}, {}, never, never, true, never>;
8751
8736
  }
@@ -10629,12 +10614,6 @@ declare class VdGenericFormCustomFieldDirective extends CdkPortal {
10629
10614
  * @property
10630
10615
  */
10631
10616
  inline: boolean;
10632
- /**
10633
- * Constructor
10634
- * @param templateRef
10635
- * @param viewContainerRef
10636
- */
10637
- constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
10638
10617
  static ɵfac: i0.ɵɵFactoryDeclaration<VdGenericFormCustomFieldDirective, never>;
10639
10618
  static ɵdir: i0.ɵɵDirectiveDeclaration<VdGenericFormCustomFieldDirective, "[vd-generic-form-custom-field]ng-template", never, { "row": { "alias": "row"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; }, {}, never, never, true, never>;
10640
10619
  }
@@ -10658,12 +10637,6 @@ interface VdGenericFormInitEvent {
10658
10637
  * inside the component, using a template reference.
10659
10638
  */
10660
10639
  declare class VdEditorDirective extends CdkPortal {
10661
- /**
10662
- * @constructor
10663
- * @param {TemplateRef<any>} templateRef - The reference to the template to be rendered.
10664
- * @param {ViewContainerRef} viewContainerRef - The container where the template will be inserted.
10665
- */
10666
- constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
10667
10640
  static ɵfac: i0.ɵɵFactoryDeclaration<VdEditorDirective, never>;
10668
10641
  static ɵdir: i0.ɵɵDirectiveDeclaration<VdEditorDirective, "[vd-editor]ng-template", never, {}, {}, never, never, true, never>;
10669
10642
  }
@@ -10674,12 +10647,6 @@ declare class VdEditorDirective extends CdkPortal {
10674
10647
  * inside the component, using a template reference.
10675
10648
  */
10676
10649
  declare class VdCodeDirective extends CdkPortal {
10677
- /**
10678
- * @constructor
10679
- * @param {TemplateRef<any>} templateRef - The reference to the template to be rendered.
10680
- * @param {ViewContainerRef} viewContainerRef - The container where the template will be inserted.
10681
- */
10682
- constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
10683
10650
  static ɵfac: i0.ɵɵFactoryDeclaration<VdCodeDirective, never>;
10684
10651
  static ɵdir: i0.ɵɵDirectiveDeclaration<VdCodeDirective, "[vd-code]ng-template", never, {}, {}, never, never, true, never>;
10685
10652
  }
@@ -10690,12 +10657,6 @@ declare class VdCodeDirective extends CdkPortal {
10690
10657
  * content inside the component, using a template reference.
10691
10658
  */
10692
10659
  declare class VdFileDirective extends CdkPortal {
10693
- /**
10694
- * @constructor
10695
- * @param {TemplateRef<any>} templateRef - The reference to the template to be rendered.
10696
- * @param {ViewContainerRef} viewContainerRef - The container where the template will be inserted.
10697
- */
10698
- constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
10699
10660
  static ɵfac: i0.ɵɵFactoryDeclaration<VdFileDirective, never>;
10700
10661
  static ɵdir: i0.ɵɵDirectiveDeclaration<VdFileDirective, "[vd-file]ng-template", never, {}, {}, never, never, true, never>;
10701
10662
  }
@@ -10706,12 +10667,6 @@ declare class VdFileDirective extends CdkPortal {
10706
10667
  * rendered inside the component, using a template reference.
10707
10668
  */
10708
10669
  declare class VdCustomDirective extends CdkPortal {
10709
- /**
10710
- * @constructor
10711
- * @param {TemplateRef<any>} templateRef - The reference to the template to be rendered.
10712
- * @param {ViewContainerRef} viewContainerRef - The container where the template will be inserted.
10713
- */
10714
- constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
10715
10670
  static ɵfac: i0.ɵɵFactoryDeclaration<VdCustomDirective, never>;
10716
10671
  static ɵdir: i0.ɵɵDirectiveDeclaration<VdCustomDirective, "[vd-custom]ng-template", never, {}, {}, never, never, true, never>;
10717
10672
  }
@@ -13070,12 +13025,6 @@ declare class VdNavigationDrawerComponent implements OnInit, OnDestroy {
13070
13025
  * VdListOptionDirective class
13071
13026
  */
13072
13027
  declare class VdListOptionDirective extends CdkPortal {
13073
- /**
13074
- * Constructor
13075
- * @param templateRef
13076
- * @param viewContainerRef
13077
- */
13078
- constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
13079
13028
  static ɵfac: i0.ɵɵFactoryDeclaration<VdListOptionDirective, never>;
13080
13029
  static ɵdir: i0.ɵɵDirectiveDeclaration<VdListOptionDirective, "[vd-list-option]ng-template", never, {}, {}, never, never, true, never>;
13081
13030
  }
@@ -13351,12 +13300,6 @@ declare class SubMenuResolve {
13351
13300
  * VdSelectOptionDirective class
13352
13301
  */
13353
13302
  declare class VdSelectOptionDirective extends CdkPortal {
13354
- /**
13355
- * Constructor
13356
- * @param templateRef
13357
- * @param viewContainerRef
13358
- */
13359
- constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
13360
13303
  static ɵfac: i0.ɵɵFactoryDeclaration<VdSelectOptionDirective, never>;
13361
13304
  static ɵdir: i0.ɵɵDirectiveDeclaration<VdSelectOptionDirective, "[vd-select-option]ng-template", never, {}, {}, never, never, true, never>;
13362
13305
  }
@@ -13365,12 +13308,6 @@ declare class VdSelectOptionDirective extends CdkPortal {
13365
13308
  * VdSelectTriggerDirective class
13366
13309
  */
13367
13310
  declare class VdSelectTriggerDirective extends CdkPortal {
13368
- /**
13369
- * Constructor
13370
- * @param templateRef
13371
- * @param viewContainerRef
13372
- */
13373
- constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
13374
13311
  static ɵfac: i0.ɵɵFactoryDeclaration<VdSelectTriggerDirective, never>;
13375
13312
  static ɵdir: i0.ɵɵDirectiveDeclaration<VdSelectTriggerDirective, "[vd-select-trigger]ng-template", never, {}, {}, never, never, true, never>;
13376
13313
  }
@@ -13647,7 +13584,6 @@ declare class FilterInputComponent implements OnInit, ControlValueAccessor {
13647
13584
  }
13648
13585
 
13649
13586
  declare class VdFilterOptionDirective extends CdkPortal {
13650
- constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
13651
13587
  static ɵfac: i0.ɵɵFactoryDeclaration<VdFilterOptionDirective, never>;
13652
13588
  static ɵdir: i0.ɵɵDirectiveDeclaration<VdFilterOptionDirective, "[vd-filter-option]ng-template", never, {}, {}, never, never, true, never>;
13653
13589
  }
@@ -13886,12 +13822,6 @@ declare class VdTableFieldDirective extends CdkPortal {
13886
13822
  * @property
13887
13823
  */
13888
13824
  inline: boolean;
13889
- /**
13890
- * Constructor
13891
- * @param templateRef
13892
- * @param viewContainerRef
13893
- */
13894
- constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
13895
13825
  static ɵfac: i0.ɵɵFactoryDeclaration<VdTableFieldDirective, never>;
13896
13826
  static ɵdir: i0.ɵɵDirectiveDeclaration<VdTableFieldDirective, "[vd-table-field]ng-template", never, { "row": { "alias": "row"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; }, {}, never, never, true, never>;
13897
13827
  }