@messaia/cdk 22.0.0-rc.8 → 22.0.0

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.
@@ -28,15 +28,16 @@ import { FocusMonitor } from '@angular/cdk/a11y';
28
28
  import { _ErrorStateTracker, ErrorStateMatcher, DateAdapter, MatDateFormats } from '@angular/material/core';
29
29
  import { MatFormFieldControl, MatFormField } from '@angular/material/form-field';
30
30
  import * as i3 from '@angular/material/input';
31
+ import { MatInput } from '@angular/material/input';
31
32
  import * as i4 from '@angular/material/icon';
32
33
  import * as i5 from '@angular/material/button';
33
34
  import { MatChipInputEvent } from '@angular/material/chips';
34
35
  import { Platform } from '@angular/cdk/platform';
35
36
  import { AutofillMonitor } from '@angular/cdk/text-field';
36
37
  import { Editor } from 'tinymce';
38
+ import { MatSelect } from '@angular/material/select';
37
39
  import { MatSidenav, MatDrawerToggleResult, MatDrawer } from '@angular/material/sidenav';
38
40
  import { OidcSecurityService } from 'angular-auth-oidc-client';
39
- import { MatSelect } from '@angular/material/select';
40
41
 
41
42
  declare class AppSetting {
42
43
  /**
@@ -3684,16 +3685,18 @@ declare class GenericService<T extends any> {
3684
3685
  * Downloads a file from the server
3685
3686
  * @param path Relative path to the download action
3686
3687
  * @param params Optional query parameters
3688
+ * @param headers Optional HTTP headers
3687
3689
  * @param handleError Whether to handle errors (default: true)
3688
3690
  */
3689
- download(path: string, params?: Object, handleError?: boolean): Observable<any>;
3691
+ download(path: string, params?: Object, headers?: Object | null, handleError?: boolean): Observable<any>;
3690
3692
  /**
3691
3693
  * Asynchronously downloads a file from the server
3692
3694
  * @param path Relative path to the download action
3693
3695
  * @param params Optional query parameters
3696
+ * @param headers Optional HTTP headers
3694
3697
  * @returns Promise resolving to the download result
3695
3698
  */
3696
- downloadAsync(path: string, params?: Object): Promise<any>;
3699
+ downloadAsync(path: string, params?: Object, headers?: Object | null): Promise<any>;
3697
3700
  /**
3698
3701
  * Duplicates a record by ID
3699
3702
  * @param id The ID of the record to duplicate
@@ -4865,6 +4868,13 @@ declare abstract class GenericListComponent<TEntity extends IEntity | any, TServ
4865
4868
  * @type {string}
4866
4869
  */
4867
4870
  protected configsKey: string;
4871
+ /**
4872
+ * @property configsKeySuffix
4873
+ * @description Optional suffix appended to the persisted table configuration key.
4874
+ * Subclasses can override this getter to isolate configurations.
4875
+ * @type {string | undefined}
4876
+ */
4877
+ protected get configsKeySuffix(): string | undefined;
4868
4878
  /**
4869
4879
  * Constructor for the table component.
4870
4880
  * @param service The service used for managing table data.
@@ -4954,13 +4964,14 @@ declare abstract class GenericListComponent<TEntity extends IEntity | any, TServ
4954
4964
  */
4955
4965
  upload(file: File, reload?: boolean): void;
4956
4966
  /**
4957
- * Downloads a document
4958
- * @param entity
4967
+ * Downloads a file for the specified entity and path.
4968
+ * @param entity The entity to download
4969
+ * @param path The path to download
4959
4970
  */
4960
4971
  download(entity?: TEntity, path?: string): void;
4961
4972
  /**
4962
- * Duplicates a record
4963
- * @param entity
4973
+ * Duplicates an entity by calling the duplicate method of the service and then reloads the list.
4974
+ * @param entity The entity to duplicate
4964
4975
  */
4965
4976
  duplicate(entity?: TEntity): void;
4966
4977
  /**
@@ -7431,9 +7442,9 @@ declare class RxFormControl extends FormControl {
7431
7442
  private _baseObject;
7432
7443
  private _sanitizers;
7433
7444
  /**
7434
- * Current language used for error message localization.
7435
- * @type {string | undefined}
7436
- */
7445
+ * Current language used for error message localization.
7446
+ * @type {string | undefined}
7447
+ */
7437
7448
  private _language?;
7438
7449
  /**
7439
7450
  * The key or name of the control.
@@ -7517,6 +7528,18 @@ declare class RxFormControl extends FormControl {
7517
7528
  backEndErrors: {
7518
7529
  [key: string]: string;
7519
7530
  };
7531
+ /**
7532
+ * Persisted validator metadata indexed by validator name.
7533
+ * @type {{ [key: string]: any }}
7534
+ */
7535
+ private _validatorConfigStore;
7536
+ /**
7537
+ * Runtime validator metadata consumed by existing template validation flow.
7538
+ * @type {{ [key: string]: any } | undefined}
7539
+ */
7540
+ validatorConfig?: {
7541
+ [key: string]: any;
7542
+ };
7520
7543
  /**
7521
7544
  * Indicates if updating the control element's class should be performed.
7522
7545
  * @type {boolean | Function | undefined}
@@ -7555,6 +7578,12 @@ declare class RxFormControl extends FormControl {
7555
7578
  * @type {any}
7556
7579
  */
7557
7580
  get baseObject(): any;
7581
+ /**
7582
+ * @method isModified
7583
+ * @description Gets whether the control value is modified compared to its base value.
7584
+ * @returns {boolean} True when the control has been modified.
7585
+ */
7586
+ get isModified(): boolean;
7558
7587
  /**
7559
7588
  * Constructor to initialize RxFormControl.
7560
7589
  * @param formState Initial state or value of the control.
@@ -7569,14 +7598,78 @@ declare class RxFormControl extends FormControl {
7569
7598
  }, _baseObject: {
7570
7599
  [key: string]: any;
7571
7600
  }, controlName: string, _sanitizers: DataSanitizer[]);
7601
+ /**
7602
+ * Defines a getter and setter for the 'errors' property to handle dynamic error message updates.
7603
+ * This allows the control to re-evaluate its errors when the language changes or when validation is triggered.
7604
+ * @returns {void}
7605
+ */
7572
7606
  private defineErrorsProperty;
7607
+ /**
7608
+ * Gets the current language for error message localization.
7609
+ * @param value Optional value to determine the language context.
7610
+ * @returns {string | undefined} The current language code.
7611
+ */
7573
7612
  private getFormState;
7574
- get isModified(): boolean;
7613
+ /**
7614
+ * @method getValidators
7615
+ * @description Returns a shallow copy of synchronous validators.
7616
+ * @returns {ValidatorFn[]} Synchronous validator functions.
7617
+ */
7575
7618
  getValidators(): ValidatorFn[];
7619
+ /**
7620
+ * @method getAsyncValidators
7621
+ * @description Returns a shallow copy of asynchronous validators.
7622
+ * @returns {AsyncValidatorFn[]} Asynchronous validator functions.
7623
+ */
7576
7624
  getAsyncValidators(): AsyncValidatorFn[];
7625
+ /**
7626
+ * @method setValidatorConfig
7627
+ * @description Persists validator configuration metadata by validator type.
7628
+ * @param {string} type Validator name.
7629
+ * @param {any} config Validator configuration object.
7630
+ */
7631
+ setValidatorConfig(type: string, config: any): void;
7632
+ /**
7633
+ * @method getValidatorConfig
7634
+ * @description Returns persisted validator configuration by validator name.
7635
+ * @param {string} type Validator name.
7636
+ * @returns {any} Validator configuration value.
7637
+ */
7638
+ getValidatorConfig(type: string): any;
7639
+ /**
7640
+ * @method isRequiredActive
7641
+ * @description Evaluates whether required validation is currently active, including dynamic conditional expressions.
7642
+ * @returns {boolean} True when required is active for this control.
7643
+ */
7644
+ isRequiredActive(): boolean;
7645
+ /**
7646
+ * @method getValidatorSource
7647
+ * @description Normalizes validator input to an array copy.
7648
+ * @param {any[]} validators Validator value or array to normalize.
7649
+ * @returns {any[]} Array of validators.
7650
+ */
7577
7651
  private getValidatorSource;
7652
+ /**
7653
+ * @method setValidators
7654
+ * @description Sets synchronous validators and stores the source list.
7655
+ * @param {ValidatorFn | ValidatorFn[] | null} newValidator Validator or validators to assign.
7656
+ * @returns {void}
7657
+ */
7578
7658
  setValidators(newValidator: ValidatorFn | ValidatorFn[] | null): void;
7659
+ /**
7660
+ * @method setAsyncValidators
7661
+ * @description Sets asynchronous validators and stores the source list.
7662
+ * @param {AsyncValidatorFn | AsyncValidatorFn[] | null} newValidator Async validator or validators to assign.
7663
+ * @returns {void}
7664
+ */
7579
7665
  setAsyncValidators(newValidator: AsyncValidatorFn | AsyncValidatorFn[] | null): void;
7666
+ /**
7667
+ * @method setValue
7668
+ * @description Sets control value, synchronizes entity/base objects, and runs expression hooks.
7669
+ * @param {any} value New control value.
7670
+ * @param {{ dirty?: boolean; updateChanged?: boolean; onlySelf?: boolean; emitEvent?: boolean; isThroughDynamic?: boolean; }} options Optional behavior flags.
7671
+ * @returns {void}
7672
+ */
7580
7673
  setValue(value: any, options?: {
7581
7674
  dirty?: boolean;
7582
7675
  updateChanged?: boolean;
@@ -7584,46 +7677,198 @@ declare class RxFormControl extends FormControl {
7584
7677
  emitEvent?: boolean;
7585
7678
  isThroughDynamic?: boolean;
7586
7679
  }): void;
7680
+ /**
7681
+ * @method getControlValue
7682
+ * @description Returns the sanitized current control value.
7683
+ * @returns {any} Sanitized control value.
7684
+ */
7587
7685
  getControlValue(): any;
7686
+ /**
7687
+ * @method bindError
7688
+ * @description Re-evaluates message expression and refreshes computed errors.
7689
+ * @returns {void}
7690
+ */
7588
7691
  bindError(): void;
7692
+ /**
7693
+ * @method bindClassName
7694
+ * @description Evaluates and applies dynamic CSS class output for the control element.
7695
+ * @returns {void}
7696
+ */
7589
7697
  bindClassName(): void;
7698
+ /**
7699
+ * @method setBackEndErrors
7700
+ * @description Assigns backend validation errors to the control and updates visible messages.
7701
+ * @param {{ [key: string]: string }} error Backend error map.
7702
+ * @returns {void}
7703
+ */
7590
7704
  setBackEndErrors(error: {
7591
7705
  [key: string]: string;
7592
7706
  }): void;
7707
+ /**
7708
+ * @method clearBackEndErrors
7709
+ * @description Clears all backend errors or selected backend error keys.
7710
+ * @param {{ [key: string]: any } | undefined} errors Optional map of keys to remove.
7711
+ * @returns {void}
7712
+ */
7593
7713
  clearBackEndErrors(errors?: {
7594
7714
  [key: string]: any;
7595
7715
  }): void;
7716
+ /**
7717
+ * @method markAsTouched
7718
+ * @description Marks control as touched and triggers dependent expression refreshes on state change.
7719
+ * @param {{ onlySelf?: boolean } | undefined} opts Angular control options.
7720
+ * @returns {void}
7721
+ */
7596
7722
  markAsTouched(opts?: {
7597
7723
  onlySelf?: boolean;
7598
7724
  }): void;
7725
+ /**
7726
+ * @method markAsUntouched
7727
+ * @description Marks control as untouched and triggers dependent expression refreshes on state change.
7728
+ * @param {{ onlySelf?: boolean } | undefined} opts Angular control options.
7729
+ * @returns {void}
7730
+ */
7599
7731
  markAsUntouched(opts?: {
7600
7732
  onlySelf?: boolean;
7601
7733
  }): void;
7734
+ /**
7735
+ * @method markAsDirty
7736
+ * @description Marks control as dirty and triggers dependent expression refreshes on state change.
7737
+ * @param {{ onlySelf?: boolean } | undefined} opts Angular control options.
7738
+ * @returns {void}
7739
+ */
7602
7740
  markAsDirty(opts?: {
7603
7741
  onlySelf?: boolean;
7604
7742
  }): void;
7743
+ /**
7744
+ * @method markAsPristine
7745
+ * @description Marks control as pristine and triggers dependent expression refreshes on state change.
7746
+ * @param {{ onlySelf?: boolean } | undefined} opts Angular control options.
7747
+ * @returns {void}
7748
+ */
7605
7749
  markAsPristine(opts?: {
7606
7750
  onlySelf?: boolean;
7607
7751
  }): void;
7752
+ /**
7753
+ * @method markAsPending
7754
+ * @description Marks control pending via base flow and triggers dependent expression refreshes on state change.
7755
+ * @param {{ onlySelf?: boolean; emitEvent?: boolean } | undefined} opts Angular control options.
7756
+ * @returns {void}
7757
+ */
7608
7758
  markAsPending(opts?: {
7609
7759
  onlySelf?: boolean;
7610
7760
  emitEvent?: boolean;
7611
7761
  }): void;
7762
+ /**
7763
+ * @method runControlPropChangeExpression
7764
+ * @description Executes error/class expression updates for changed control state flags.
7765
+ * @param {string[]} propNames State property names to evaluate.
7766
+ * @returns {void}
7767
+ */
7612
7768
  runControlPropChangeExpression(propNames: string[]): void;
7769
+ /**
7770
+ * @method refresh
7771
+ * @description Rebuilds decorator expressions and refreshes current error state.
7772
+ * @returns {void}
7773
+ */
7613
7774
  refresh(): void;
7775
+ /**
7776
+ * @method reset
7777
+ * @description Resets control value to provided value or stored base value and clears dirty flag.
7778
+ * @param {any} value Optional value to reset to.
7779
+ * @param {any} options Reset options passed to setValue.
7780
+ * @returns {void}
7781
+ */
7614
7782
  reset(value?: any, options?: any): void;
7783
+ /**
7784
+ * @method commit
7785
+ * @description Commits current value as base value and re-evaluates modification state.
7786
+ * @returns {void}
7787
+ */
7615
7788
  commit(): void;
7789
+ /**
7790
+ * @method callPatch
7791
+ * @description Updates modification flag and notifies parent patch hook when available.
7792
+ * @returns {void}
7793
+ */
7616
7794
  private callPatch;
7795
+ /**
7796
+ * @method checkErrorMessageStrategy
7797
+ * @description Evaluates whether error messages should be bound according to strategy and state.
7798
+ * @returns {boolean} True when error binding is currently enabled.
7799
+ */
7617
7800
  private checkErrorMessageStrategy;
7801
+ /**
7802
+ * @method executeExpressions
7803
+ * @description Executes conditional decorator expressions for disabled state, errors, and element classes.
7804
+ * @returns {void}
7805
+ */
7618
7806
  private executeExpressions;
7807
+ /**
7808
+ * @method getMessageExpression
7809
+ * @description Loads message/class expression metadata from the model container.
7810
+ * @param {FormGroup} formGroup Parent form group.
7811
+ * @param {string} keyName Control key name.
7812
+ * @returns {void}
7813
+ */
7619
7814
  private getMessageExpression;
7815
+ /**
7816
+ * @method getSanitizedValue
7817
+ * @description Applies configured sanitizers to a value in declaration order.
7818
+ * @param {any} value Raw value.
7819
+ * @returns {any} Sanitized value.
7820
+ */
7620
7821
  private getSanitizedValue;
7822
+ /**
7823
+ * @method bindConditionalControls
7824
+ * @description Builds and stores control references for conditional decorator expressions.
7825
+ * @param {string} decoratorType Decorator type key.
7826
+ * @param {string} refName Property name that stores computed references.
7827
+ * @returns {void}
7828
+ */
7621
7829
  private bindConditionalControls;
7830
+ /**
7831
+ * @method setControlErrorMessages
7832
+ * @description Computes and stores control error messages from validation and backend sources.
7833
+ * @returns {void}
7834
+ */
7622
7835
  private setControlErrorMessages;
7836
+ /**
7837
+ * @method getLanguage
7838
+ * @description Gets active language from reactive form i18n config.
7839
+ * @returns {string | undefined} Active language code.
7840
+ */
7623
7841
  private getLanguage;
7842
+ /**
7843
+ * @method getErrorMessage
7844
+ * @description Reads a formatted error message for a validation key.
7845
+ * @param {{ [key: string]: string }} errorObject Validation error object.
7846
+ * @param {string} keyName Validation key.
7847
+ * @returns {string | undefined} Resolved error message.
7848
+ */
7624
7849
  private getErrorMessage;
7850
+ /**
7851
+ * @method processExpression
7852
+ * @description Applies a conditional operation to referenced controls.
7853
+ * @param {string} propName Reference property name.
7854
+ * @param {string} operationType Operation identifier.
7855
+ * @returns {void}
7856
+ */
7625
7857
  private processExpression;
7858
+ /**
7859
+ * @method executeExpression
7860
+ * @description Executes a conditional expression using model instance context.
7861
+ * @param {Function} expression Expression function.
7862
+ * @param {AbstractControl} control Control used as expression argument.
7863
+ * @returns {Boolean} Expression result.
7864
+ */
7626
7865
  private executeExpression;
7866
+ /**
7867
+ * @method getValue
7868
+ * @description Normalizes nullable/empty values for comparison.
7869
+ * @param {any} value Source value.
7870
+ * @returns {any} Normalized comparable value.
7871
+ */
7627
7872
  private getValue;
7628
7873
  }
7629
7874
 
@@ -8489,7 +8734,7 @@ declare abstract class AbstractMatFormField<T> implements DoCheck, OnDestroy, Co
8489
8734
  * @description Element reference.
8490
8735
  * @type {ElementRef}
8491
8736
  */
8492
- readonly elementRef: ElementRef<any>;
8737
+ readonly elementRef: ElementRef;
8493
8738
  /**
8494
8739
  * @property focusMonitor
8495
8740
  * @description Focus monitor.
@@ -8563,7 +8808,13 @@ declare abstract class AbstractMatFormField<T> implements DoCheck, OnDestroy, Co
8563
8808
  * @description Required state.
8564
8809
  * @type {boolean}
8565
8810
  */
8566
- _required: boolean;
8811
+ protected _required: boolean;
8812
+ /**
8813
+ * @property _resolvedRequired
8814
+ * @description Caches the effective required state to detect runtime changes.
8815
+ * @type {boolean}
8816
+ */
8817
+ private _resolvedRequired;
8567
8818
  /**
8568
8819
  * @property required
8569
8820
  * @description Sets the required state.
@@ -8581,7 +8832,7 @@ declare abstract class AbstractMatFormField<T> implements DoCheck, OnDestroy, Co
8581
8832
  * @description Readonly state.
8582
8833
  * @type {boolean}
8583
8834
  */
8584
- _readonly?: boolean;
8835
+ protected _readonly?: boolean;
8585
8836
  /**
8586
8837
  * @property readonly
8587
8838
  * @description Sets the readonly state.
@@ -8594,7 +8845,7 @@ declare abstract class AbstractMatFormField<T> implements DoCheck, OnDestroy, Co
8594
8845
  * @description Disabled state.
8595
8846
  * @type {boolean}
8596
8847
  */
8597
- _disabled: boolean;
8848
+ protected _disabled: boolean;
8598
8849
  /**
8599
8850
  * @property disabled
8600
8851
  * @description Sets the disabled state.
@@ -8778,6 +9029,10 @@ declare class VdChipsComponent extends AbstractMatFormField<any> implements OnIn
8778
9029
  * Subscription for the data source observable.
8779
9030
  */
8780
9031
  dataSourceSubscription?: Subscription;
9032
+ /**
9033
+ * Subscription for the data source loaded event.
9034
+ */
9035
+ onDataLoadedSubscription?: Subscription;
8781
9036
  /**
8782
9037
  * Form control for the autocomplete chip list.
8783
9038
  */
@@ -8995,6 +9250,11 @@ declare class VdChipsComponent extends AbstractMatFormField<any> implements OnIn
8995
9250
  * It also sets up the necessary parameters for the data source.
8996
9251
  */
8997
9252
  connect(): void;
9253
+ /**
9254
+ * @description Reopens the autocomplete panel when the input is clicked while already focused.
9255
+ * @returns {void}
9256
+ */
9257
+ reopenPanel(): void;
8998
9258
  /**
8999
9259
  * Sets focus on the filter input element.
9000
9260
  */
@@ -10255,6 +10515,13 @@ declare const Templates: {
10255
10515
  * @returns {string} The formatted comma-separated string with no whitespace
10256
10516
  */
10257
10517
  declare const parseProjectionString: (projection: string | string[]) => string;
10518
+ /**
10519
+ * @method parseProjectionArray
10520
+ * @description Parses projection input (string, string array, or raw multi-line string) into a flattened projection array.
10521
+ * @param {string | string[]} projection The raw selection input
10522
+ * @returns {string[]} The formatted projection as an array of fields
10523
+ */
10524
+ declare const parseProjectionArray: (projection: string | string[]) => string[];
10258
10525
 
10259
10526
  declare class VdDialogTitleDirective {
10260
10527
  static ɵfac: i0.ɵɵFactoryDeclaration<VdDialogTitleDirective, never>;
@@ -11226,210 +11493,92 @@ declare class MatFormFieldReadonlyDirective {
11226
11493
  }
11227
11494
 
11228
11495
  /**
11229
- * This directive parses pasted currency strings into decimal values and updates the reactive form control.
11496
+ * @class MatInputRequiredDirective
11497
+ * @description Synchronizes Angular Material input required marker with tracked control required state.
11230
11498
  */
11231
- declare class ParseDecimalDirective {
11232
- private el;
11233
- private control;
11234
- /**
11235
- * Whether the directive is enabled.
11236
- */
11237
- parseDecimalEnabled: boolean;
11499
+ declare class MatInputRequiredDirective implements DoCheck {
11500
+ private readonly input;
11238
11501
  /**
11239
- * Constructor to inject dependencies.
11240
- * @param el - The ElementRef instance representing the DOM element.
11241
- * @param control - The NgControl instance for accessing the form control.
11502
+ * @constructor
11503
+ * @param {MatInput} input Material input instance.
11242
11504
  */
11243
- constructor(el: ElementRef, control: NgControl);
11505
+ constructor(input: MatInput);
11244
11506
  /**
11245
- * Handles the paste event to parse and normalize pasted currency strings into decimals.
11246
- * @param event - The ClipboardEvent triggered on pasting.
11507
+ * @method ngDoCheck
11508
+ * @description Updates Material input required flag when control required state changes.
11247
11509
  */
11248
- onPaste(event: ClipboardEvent): void;
11510
+ ngDoCheck(): void;
11511
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatInputRequiredDirective, never>;
11512
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatInputRequiredDirective, "[matInput][formControl]:not([required]), [matInput][formControlName]:not([required])", never, {}, {}, never, never, true, never>;
11513
+ }
11514
+
11515
+ /**
11516
+ * @class MatSelectRequiredDirective
11517
+ * @description Synchronizes Angular Material select required marker with tracked control required state.
11518
+ */
11519
+ declare class MatSelectRequiredDirective implements DoCheck {
11520
+ private readonly input;
11249
11521
  /**
11250
- * Parses a currency string into a decimal.
11251
- * @param value - The formatted currency string.
11252
- * @returns The parsed decimal or NaN if invalid.
11522
+ * @constructor
11523
+ * @param {MatSelect} input Material select instance.
11253
11524
  */
11254
- private parseCurrency;
11525
+ constructor(input: MatSelect);
11255
11526
  /**
11256
- * Updates the reactive form control's value.
11257
- * @param value - The normalized decimal value.
11527
+ * @method ngDoCheck
11528
+ * @description Updates Material select required flag when control required state changes.
11258
11529
  */
11259
- private updateFormControl;
11260
- static ɵfac: i0.ɵɵFactoryDeclaration<ParseDecimalDirective, never>;
11261
- static ɵdir: i0.ɵɵDirectiveDeclaration<ParseDecimalDirective, "[parseDecimal]", never, { "parseDecimalEnabled": { "alias": "parseDecimalEnabled"; "required": false; }; }, {}, never, never, true, never>;
11530
+ ngDoCheck(): void;
11531
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatSelectRequiredDirective, never>;
11532
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatSelectRequiredDirective, "mat-select[formControl]:not([required]), mat-select[formControlName]:not([required])", never, {}, {}, never, never, true, never>;
11262
11533
  }
11263
11534
 
11264
- /**
11265
- * Directive that optionally enforces a fixed, non-removable prefix
11266
- * at the beginning of an input field.
11267
- */
11268
- declare class PrefixDirective implements OnInit {
11269
- private el;
11535
+ declare abstract class AbstractSelectFormField<T> extends AbstractMatFormField<T> implements OnInit {
11270
11536
  /**
11271
- * @property Optional prefix that should be enforced at the beginning
11272
- * of the input value. If undefined or empty, the directive is inactive.
11273
- * @type {string | undefined}
11537
+ * @property _endpointChange
11538
+ * @description A BehaviorSubject that tracks changes to the endpoint data.
11539
+ * @type {BehaviorSubject<any[]>}
11274
11540
  */
11275
- prefix?: string;
11541
+ private _endpointChange;
11276
11542
  /**
11277
- * @constructor
11278
- * @param el Reference to the native input element.
11543
+ * @property _enumChange
11544
+ * @description A BehaviorSubject that tracks changes to the enum data.
11545
+ * @type {BehaviorSubject<any[]>}
11279
11546
  */
11280
- constructor(el: ElementRef<HTMLInputElement>);
11547
+ private _enumChange;
11281
11548
  /**
11282
- * Lifecycle hook invoked after input bindings are initialized.
11283
- * Applies the prefix only if it is defined.
11549
+ * @property _http
11550
+ * @description The HTTP client service used to fetch data from an API.
11551
+ * @type {HttpClient | undefined}
11284
11552
  */
11285
- ngOnInit(): void;
11553
+ protected _http?: HttpClient;
11286
11554
  /**
11287
- * Host listener for the native `input` event.
11288
- * Restores the prefix if it was removed (e.g. via paste),
11289
- * only when a prefix is configured.
11555
+ * @property _defaultOption
11556
+ * @description Whether the default option should be selected by default.
11557
+ * @type {boolean}
11290
11558
  */
11291
- onInput(): void;
11559
+ protected _defaultOption: boolean;
11292
11560
  /**
11293
- * Host listener for the native `keydown` event.
11294
- * Prevents deleting or modifying the prefix using Backspace or Delete,
11295
- * only when a prefix is configured.
11296
- *
11297
- * @param event Keyboard event triggered by user input.
11561
+ * @property _multiple
11562
+ * @description Whether multiple selection is enabled.
11563
+ * @type {boolean}
11298
11564
  */
11299
- onKeyDown(event: KeyboardEvent): void;
11300
- static ɵfac: i0.ɵɵFactoryDeclaration<PrefixDirective, never>;
11301
- static ɵdir: i0.ɵɵDirectiveDeclaration<PrefixDirective, "[prefix]", never, { "prefix": { "alias": "prefix"; "required": false; }; }, {}, never, never, true, never>;
11302
- }
11303
-
11304
- declare class RemoveWhitespaceDirective {
11305
- private ngControl;
11565
+ protected _multiple: boolean;
11306
11566
  /**
11307
- * Optional condition to enable or disable the whitespace removal.
11308
- * Use as [removeWhitespace]="condition" or simply removeWhitespace.
11567
+ * @property _sorted
11568
+ * @description Whether the options should be sorted.
11569
+ * @type {boolean}
11309
11570
  */
11310
- IsEnabled: boolean | string;
11571
+ protected _sorted: boolean;
11311
11572
  /**
11312
- * Directive to remove all types of whitespace (spaces, tabs, newlines) from the input value.
11313
- * @param ngControl The Angular form control associated with the input element.
11573
+ * @property _endpoint
11574
+ * @description The API endpoint or a function returning the endpoint URL.
11575
+ * @type {string | Function | undefined}
11314
11576
  */
11315
- constructor(ngControl: NgControl);
11577
+ protected _endpoint?: string | Function;
11316
11578
  /**
11317
- * Event handler for the input event, removing all types of whitespace from the input value.
11318
- * @param value The current value of the input element.
11319
- */
11320
- OnInput(value: string): void;
11321
- static ɵfac: i0.ɵɵFactoryDeclaration<RemoveWhitespaceDirective, [{ optional: true; self: true; }]>;
11322
- static ɵdir: i0.ɵɵDirectiveDeclaration<RemoveWhitespaceDirective, "[removeWhitespace]", never, { "IsEnabled": { "alias": "removeWhitespace"; "required": false; }; }, {}, never, never, true, never>;
11323
- }
11324
-
11325
- /**
11326
- * Class decorator to define a form definition for a given class.
11327
- * This decorator can be applied to a class to specify its form configuration, including endpoint, projection, actions, and field groups.
11328
- * @param formDefinition Optional partial configuration to customize the resulting FormDefinition.
11329
- * @returns A class decorator function.
11330
- */
11331
- declare function Form<T = any>(formDefinition?: Partial<FormDefinition<T>>): Function;
11332
- /**
11333
- * Property decorator to create and register form fields.
11334
- * This decorator can be applied to a class property to automatically generate and register form fields based on the provided arguments.
11335
- * @param args Partial arguments to customize the resulting FormFieldDefinition.
11336
- * @returns A property decorator function.
11337
- */
11338
- declare function FormField<TEntity = any, TProperty = any>(args: Partial<FormFieldDefinition<TEntity, TProperty>>): Function;
11339
- /**
11340
- * Property decorator to create and register form field groups.
11341
- *
11342
- * This decorator can be applied to a class property to automatically
11343
- * generate and register form groups based on the provided type and arguments.
11344
- *
11345
- * @param type The class type whose decorated properties will be grouped.
11346
- * @param args Optional partial configuration to customize the resulting FormFieldGroupDefinition.
11347
- * @param context Optional context object to influence form group generation, e.g., for conditional fields.
11348
- * @returns A property decorator function.
11349
- */
11350
- declare function FormFieldGroup<T = any>(type: Type$1<T>, args?: Partial<FormFieldGroupDefinition<T>>, context?: any): Function;
11351
-
11352
- /**
11353
- * Retrieves the form definition for a given object decorated with @Form.
11354
- *
11355
- * This function reads metadata defined via decorators on the class
11356
- * to build a FormDefinition instance, including field groups and
11357
- * an optional API endpoint.
11358
- *
11359
- * @template TEntity The type of the entity associated with the form.
11360
- * @param origin The entity instance for which to retrieve the form definition. Must not be undefined.
11361
- * @param form Optional NgForm or FormGroup associated with the entity.
11362
- * @param context Optional context object to customize form definition generation,
11363
- * e.g., for conditional fields or groups.
11364
- * @returns The FormDefinition object containing field groups and endpoint metadata.
11365
- * @throws Error if the `origin` argument is not provided.
11366
- */
11367
- declare function getFormDefinition<TEntity>(origin: TEntity, form?: FormGroup, context?: any): FormDefinition;
11368
- /**
11369
- * Retrieves properties decorated with @FormField, grouped by row.
11370
- *
11371
- * This function reads metadata from the instance (or type) to generate
11372
- * an array of FormFieldGroupDefinition objects. It can use additional
11373
- * arguments, the form instance, or a context object to customize group creation.
11374
- *
11375
- * @template TEntity The type of the entity associated with the form fields.
11376
- * @param instance The instance of the object containing decorated properties.
11377
- * @param type Optional constructor of the class; used if instance is not provided.
11378
- * @param args Optional partial configuration to customize the resulting FormFieldGroupDefinition.
11379
- * @param form Optional NgForm or FormGroup associated with the entity, for dynamic field logic.
11380
- * @param context Optional context object for conditional logic or dynamic modifications
11381
- * when generating form groups.
11382
- * @returns An array of FormFieldGroupDefinition objects representing the grouped form fields.
11383
- */
11384
- declare function getFormGroups<TEntity = any>(instance?: TEntity, type?: Type$1<TEntity>, args?: Partial<FormFieldGroupDefinition<TEntity>>, form?: FormGroup, context?: any): FormFieldGroupDefinition[];
11385
-
11386
- declare abstract class AbstractSelectFormField<T> extends AbstractMatFormField<T> implements OnInit {
11387
- /**
11388
- * @property _endpointChange
11389
- * @description A BehaviorSubject that tracks changes to the endpoint data.
11390
- * @type {BehaviorSubject<any[]>}
11391
- */
11392
- private _endpointChange;
11393
- /**
11394
- * @property _enumChange
11395
- * @description A BehaviorSubject that tracks changes to the enum data.
11396
- * @type {BehaviorSubject<any[]>}
11397
- */
11398
- private _enumChange;
11399
- /**
11400
- * @property _http
11401
- * @description The HTTP client service used to fetch data from an API.
11402
- * @type {HttpClient | undefined}
11403
- */
11404
- protected _http?: HttpClient;
11405
- /**
11406
- * @property _defaultOption
11407
- * @description Whether the default option should be selected by default.
11408
- * @type {boolean}
11409
- */
11410
- protected _defaultOption: boolean;
11411
- /**
11412
- * @property _multiple
11413
- * @description Whether multiple selection is enabled.
11414
- * @type {boolean}
11415
- */
11416
- protected _multiple: boolean;
11417
- /**
11418
- * @property _sorted
11419
- * @description Whether the options should be sorted.
11420
- * @type {boolean}
11421
- */
11422
- protected _sorted: boolean;
11423
- /**
11424
- * @property _endpoint
11425
- * @description The API endpoint or a function returning the endpoint URL.
11426
- * @type {string | Function | undefined}
11427
- */
11428
- protected _endpoint?: string | Function;
11429
- /**
11430
- * @property _params
11431
- * @description Parameters to be sent with the API request.
11432
- * @type {any}
11579
+ * @property _params
11580
+ * @description Parameters to be sent with the API request.
11581
+ * @type {any}
11433
11582
  */
11434
11583
  protected _params: any;
11435
11584
  /**
@@ -11742,6 +11891,294 @@ declare abstract class AbstractSelectFormField<T> extends AbstractMatFormField<T
11742
11891
  static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractSelectFormField<any>, never, never, { "enum": { "alias": "enum"; "required": false; }; "enumMetadata": { "alias": "enumMetadata"; "required": false; }; "textPrefix": { "alias": "textPrefix"; "required": false; }; "optionTextProperty": { "alias": "optionTextProperty"; "required": false; }; "optionValueProperty": { "alias": "optionValueProperty"; "required": false; }; "matIconKey": { "alias": "matIconKey"; "required": false; }; "svgIconKey": { "alias": "svgIconKey"; "required": false; }; "fontSet": { "alias": "fontSet"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "options": { "alias": "options"; "required": false; }; "filteredOptions": { "alias": "filteredOptions"; "required": false; }; "filterable": { "alias": "filterable"; "required": false; }; "cache": { "alias": "cache"; "required": false; }; "selectFirst": { "alias": "selectFirst"; "required": false; }; "sortBy": { "alias": "sortBy"; "required": false; }; "mapper": { "alias": "mapper"; "required": false; }; "optionIcon": { "alias": "optionIcon"; "required": false; }; "defaultOption": { "alias": "defaultOption"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "sorted": { "alias": "sorted"; "required": false; }; "endpoint": { "alias": "endpoint"; "required": false; }; "params": { "alias": "params"; "required": false; }; "projection": { "alias": "projection"; "required": false; }; "loadData": { "alias": "loadData"; "required": false; }; "enumFilter": { "alias": "enumFilter"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "context": { "alias": "context"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "searchField": { "alias": "searchField"; "required": false; }; }, { "onValueChange": "change"; "onItemChange": "itemChange"; "onSelected": "selected"; "onItemSelected": "itemSelected"; "onLaunch": "launch"; }, never, never, true, never>;
11743
11892
  }
11744
11893
 
11894
+ /**
11895
+ * VdSelectOptionDirective class
11896
+ */
11897
+ declare class VdSelectOptionDirective extends CdkPortal {
11898
+ static ɵfac: i0.ɵɵFactoryDeclaration<VdSelectOptionDirective, never>;
11899
+ static ɵdir: i0.ɵɵDirectiveDeclaration<VdSelectOptionDirective, "[vd-select-option]ng-template", never, {}, {}, never, never, true, never>;
11900
+ }
11901
+
11902
+ /**
11903
+ * VdSelectTriggerDirective class
11904
+ */
11905
+ declare class VdSelectTriggerDirective extends CdkPortal {
11906
+ static ɵfac: i0.ɵɵFactoryDeclaration<VdSelectTriggerDirective, never>;
11907
+ static ɵdir: i0.ɵɵDirectiveDeclaration<VdSelectTriggerDirective, "[vd-select-trigger]ng-template", never, {}, {}, never, never, true, never>;
11908
+ }
11909
+
11910
+ declare class VdSelectComponent extends AbstractSelectFormField<any> implements AfterViewInit {
11911
+ /**
11912
+ * CSS class applied to the trigger element.
11913
+ */
11914
+ protected _triggerCssClass?: string;
11915
+ /**
11916
+ * Mode of the trigger, default is 'chip'.
11917
+ */
11918
+ protected _triggerMode?: 'chip';
11919
+ /**
11920
+ * Template for rendering options.
11921
+ */
11922
+ optionTemplate?: VdSelectOptionDirective;
11923
+ /**
11924
+ * Template for rendering the trigger.
11925
+ */
11926
+ triggerTemplate?: VdSelectTriggerDirective;
11927
+ /**
11928
+ * Reference to the MatSelect element.
11929
+ */
11930
+ selectEl?: MatSelect;
11931
+ /**
11932
+ * Reference to the filter input element.
11933
+ */
11934
+ filterInput?: ElementRef;
11935
+ /**
11936
+ * CSS class applied to the trigger element.
11937
+ */
11938
+ get triggerCssClass(): string | undefined;
11939
+ set triggerCssClass(triggerCssClass: string | undefined);
11940
+ /**
11941
+ * Gets the display values of the selected options for the trigger.
11942
+ *
11943
+ * @returns The display values of the selected options
11944
+ */
11945
+ get triggerValues(): any[];
11946
+ /**
11947
+ * Retrieves the currently selected options from the filtered options.
11948
+ * If multiple options are selected, returns them as an array.
11949
+ * If a single option is selected, returns it as an array with one element.
11950
+ *
11951
+ * @returns An array of selected items from the filtered options.
11952
+ */
11953
+ get selectedOptions(): any[];
11954
+ /**
11955
+ * Checks if the select element is empty.
11956
+ *
11957
+ * @returns true if the select element is empty, false otherwise.
11958
+ */
11959
+ get empty(): boolean;
11960
+ /**
11961
+ * Constructor to initialize the VdSelectComponent.
11962
+ */
11963
+ constructor();
11964
+ /**
11965
+ * Lifecycle hook that is called after Angular has initialized the component's view.
11966
+ * Sets up an event listener to focus the filter input when the select element is opened.
11967
+ */
11968
+ ngAfterViewInit(): void;
11969
+ /**
11970
+ * Writes the value to the component. Part of the ControlValueAccessor interface.
11971
+ *
11972
+ * @param value The value to be written
11973
+ */
11974
+ writeValue(value: any): void;
11975
+ /**
11976
+ * Sets focus on the select element and opens the dropdown.
11977
+ */
11978
+ focus(): void;
11979
+ /**
11980
+ * Handles the launch button click event.
11981
+ * Emits the selected options through the onLaunch event emitter.
11982
+ *
11983
+ * @param value The value to be emitted
11984
+ */
11985
+ handleLaunchClicked(value: any): void;
11986
+ /**
11987
+ * Handles the filter event to filter the options based on the input.
11988
+ *
11989
+ * @param $event The filter event
11990
+ */
11991
+ handleFilter($event?: Event): void;
11992
+ static ɵfac: i0.ɵɵFactoryDeclaration<VdSelectComponent, never>;
11993
+ static ɵcmp: i0.ɵɵComponentDeclaration<VdSelectComponent, "vd-select", never, { "triggerCssClass": { "alias": "triggerCssClass"; "required": false; }; }, {}, ["optionTemplate", "triggerTemplate"], never, true, never>;
11994
+ }
11995
+
11996
+ /**
11997
+ * @class MsaSelectRequiredDirective
11998
+ * @description Synchronizes Angular Material select required marker with tracked control required state.
11999
+ */
12000
+ declare class MsaSelectRequiredDirective implements DoCheck {
12001
+ private readonly input;
12002
+ /**
12003
+ * @constructor
12004
+ * @param {VdSelectComponent} input Material select instance.
12005
+ */
12006
+ constructor(input: VdSelectComponent);
12007
+ /**
12008
+ * @method ngDoCheck
12009
+ * @description Updates Material select required flag when control required state changes.
12010
+ */
12011
+ ngDoCheck(): void;
12012
+ static ɵfac: i0.ɵɵFactoryDeclaration<MsaSelectRequiredDirective, never>;
12013
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MsaSelectRequiredDirective, "vd-select[formControl]:not([required]), vd-select[formControlName]:not([required])", never, {}, {}, never, never, true, never>;
12014
+ }
12015
+
12016
+ /**
12017
+ * This directive parses pasted currency strings into decimal values and updates the reactive form control.
12018
+ */
12019
+ declare class ParseDecimalDirective {
12020
+ private el;
12021
+ private control;
12022
+ /**
12023
+ * Whether the directive is enabled.
12024
+ */
12025
+ parseDecimalEnabled: boolean;
12026
+ /**
12027
+ * Constructor to inject dependencies.
12028
+ * @param el - The ElementRef instance representing the DOM element.
12029
+ * @param control - The NgControl instance for accessing the form control.
12030
+ */
12031
+ constructor(el: ElementRef, control: NgControl);
12032
+ /**
12033
+ * Handles the paste event to parse and normalize pasted currency strings into decimals.
12034
+ * @param event - The ClipboardEvent triggered on pasting.
12035
+ */
12036
+ onPaste(event: ClipboardEvent): void;
12037
+ /**
12038
+ * Parses a currency string into a decimal.
12039
+ * @param value - The formatted currency string.
12040
+ * @returns The parsed decimal or NaN if invalid.
12041
+ */
12042
+ private parseCurrency;
12043
+ /**
12044
+ * Updates the reactive form control's value.
12045
+ * @param value - The normalized decimal value.
12046
+ */
12047
+ private updateFormControl;
12048
+ static ɵfac: i0.ɵɵFactoryDeclaration<ParseDecimalDirective, never>;
12049
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ParseDecimalDirective, "[parseDecimal]", never, { "parseDecimalEnabled": { "alias": "parseDecimalEnabled"; "required": false; }; }, {}, never, never, true, never>;
12050
+ }
12051
+
12052
+ /**
12053
+ * Directive that optionally enforces a fixed, non-removable prefix
12054
+ * at the beginning of an input field.
12055
+ */
12056
+ declare class PrefixDirective implements OnInit {
12057
+ private el;
12058
+ /**
12059
+ * @property Optional prefix that should be enforced at the beginning
12060
+ * of the input value. If undefined or empty, the directive is inactive.
12061
+ * @type {string | undefined}
12062
+ */
12063
+ prefix?: string;
12064
+ /**
12065
+ * @constructor
12066
+ * @param el Reference to the native input element.
12067
+ */
12068
+ constructor(el: ElementRef<HTMLInputElement>);
12069
+ /**
12070
+ * Lifecycle hook invoked after input bindings are initialized.
12071
+ * Applies the prefix only if it is defined.
12072
+ */
12073
+ ngOnInit(): void;
12074
+ /**
12075
+ * Host listener for the native `input` event.
12076
+ * Restores the prefix if it was removed (e.g. via paste),
12077
+ * only when a prefix is configured.
12078
+ */
12079
+ onInput(): void;
12080
+ /**
12081
+ * Host listener for the native `keydown` event.
12082
+ * Prevents deleting or modifying the prefix using Backspace or Delete,
12083
+ * only when a prefix is configured.
12084
+ *
12085
+ * @param event Keyboard event triggered by user input.
12086
+ */
12087
+ onKeyDown(event: KeyboardEvent): void;
12088
+ static ɵfac: i0.ɵɵFactoryDeclaration<PrefixDirective, never>;
12089
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PrefixDirective, "[prefix]", never, { "prefix": { "alias": "prefix"; "required": false; }; }, {}, never, never, true, never>;
12090
+ }
12091
+
12092
+ declare class RemoveWhitespaceDirective {
12093
+ private ngControl;
12094
+ /**
12095
+ * Optional condition to enable or disable the whitespace removal.
12096
+ * Use as [removeWhitespace]="condition" or simply removeWhitespace.
12097
+ */
12098
+ IsEnabled: boolean | string;
12099
+ /**
12100
+ * Directive to remove all types of whitespace (spaces, tabs, newlines) from the input value.
12101
+ * @param ngControl The Angular form control associated with the input element.
12102
+ */
12103
+ constructor(ngControl: NgControl);
12104
+ /**
12105
+ * Event handler for the input event, removing all types of whitespace from the input value.
12106
+ * @param value The current value of the input element.
12107
+ */
12108
+ OnInput(value: string): void;
12109
+ static ɵfac: i0.ɵɵFactoryDeclaration<RemoveWhitespaceDirective, [{ optional: true; self: true; }]>;
12110
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RemoveWhitespaceDirective, "[removeWhitespace]", never, { "IsEnabled": { "alias": "removeWhitespace"; "required": false; }; }, {}, never, never, true, never>;
12111
+ }
12112
+
12113
+ /**
12114
+ * Class decorator to define a form definition for a given class.
12115
+ * This decorator can be applied to a class to specify its form configuration, including endpoint, projection, actions, and field groups.
12116
+ * @param formDefinition Optional partial configuration to customize the resulting FormDefinition.
12117
+ * @returns A class decorator function.
12118
+ */
12119
+ declare function Form<T = any>(formDefinition?: Partial<FormDefinition<T>>): Function;
12120
+ /**
12121
+ * Property decorator to create and register form fields.
12122
+ * This decorator can be applied to a class property to automatically generate and register form fields based on the provided arguments.
12123
+ * @param args Partial arguments to customize the resulting FormFieldDefinition.
12124
+ * @returns A property decorator function.
12125
+ */
12126
+ declare function FormField<TEntity = any, TProperty = any>(args: Partial<FormFieldDefinition<TEntity, TProperty>>): Function;
12127
+ /**
12128
+ * Property decorator to create and register form field groups.
12129
+ *
12130
+ * This decorator can be applied to a class property to automatically
12131
+ * generate and register form groups based on the provided type and arguments.
12132
+ *
12133
+ * @param type The class type whose decorated properties will be grouped.
12134
+ * @param args Optional partial configuration to customize the resulting FormFieldGroupDefinition.
12135
+ * @param context Optional context object to influence form group generation, e.g., for conditional fields.
12136
+ * @returns A property decorator function.
12137
+ */
12138
+ declare function FormFieldGroup<T = any>(type: Type$1<T>, args?: Partial<FormFieldGroupDefinition<T>>, context?: any): Function;
12139
+
12140
+ /**
12141
+ * Retrieves the form definition for a given object decorated with @Form.
12142
+ *
12143
+ * This function reads metadata defined via decorators on the class
12144
+ * to build a FormDefinition instance, including field groups and
12145
+ * an optional API endpoint.
12146
+ *
12147
+ * @template TEntity The type of the entity associated with the form.
12148
+ * @param origin The entity instance for which to retrieve the form definition. Must not be undefined.
12149
+ * @param form Optional NgForm or FormGroup associated with the entity.
12150
+ * @param context Optional context object to customize form definition generation,
12151
+ * e.g., for conditional fields or groups.
12152
+ * @returns The FormDefinition object containing field groups and endpoint metadata.
12153
+ * @throws Error if the `origin` argument is not provided.
12154
+ */
12155
+ declare function getFormDefinition<TEntity>(origin: TEntity, form?: FormGroup, context?: any): FormDefinition;
12156
+ /**
12157
+ * Retrieves properties decorated with @FormField, grouped by row.
12158
+ *
12159
+ * This function reads metadata from the instance (or type) to generate
12160
+ * an array of FormFieldGroupDefinition objects. It can use additional
12161
+ * arguments, the form instance, or a context object to customize group creation.
12162
+ *
12163
+ * @template TEntity The type of the entity associated with the form fields.
12164
+ * @param instance The instance of the object containing decorated properties.
12165
+ * @param type Optional constructor of the class; used if instance is not provided.
12166
+ * @param args Optional partial configuration to customize the resulting FormFieldGroupDefinition.
12167
+ * @param form Optional NgForm or FormGroup associated with the entity, for dynamic field logic.
12168
+ * @param context Optional context object for conditional logic or dynamic modifications
12169
+ * when generating form groups.
12170
+ * @returns An array of FormFieldGroupDefinition objects representing the grouped form fields.
12171
+ */
12172
+ declare function getFormGroups<TEntity = any>(instance?: TEntity, type?: Type$1<TEntity>, args?: Partial<FormFieldGroupDefinition<TEntity>>, form?: FormGroup, context?: any): FormFieldGroupDefinition[];
12173
+
12174
+ /**
12175
+ * @function hasRequiredValidator
12176
+ * @description Checks required state using runtime marker, native Angular validators and Rx validator metadata.
12177
+ * @param {AbstractControl | null | undefined} control The control to evaluate.
12178
+ * @returns {boolean} True when the control should be treated as required.
12179
+ */
12180
+ declare const hasRequiredValidator: (control: AbstractControl | null | undefined) => boolean;
12181
+
11745
12182
  declare class ValueAccessorBase<T> extends MatFormFieldControl<any> implements ControlValueAccessor, OnDestroy {
11746
12183
  /**
11747
12184
  * Inner model value
@@ -13265,108 +13702,6 @@ declare class SubMenuResolve {
13265
13702
  static ɵprov: i0.ɵɵInjectableDeclaration<SubMenuResolve>;
13266
13703
  }
13267
13704
 
13268
- /**
13269
- * VdSelectOptionDirective class
13270
- */
13271
- declare class VdSelectOptionDirective extends CdkPortal {
13272
- static ɵfac: i0.ɵɵFactoryDeclaration<VdSelectOptionDirective, never>;
13273
- static ɵdir: i0.ɵɵDirectiveDeclaration<VdSelectOptionDirective, "[vd-select-option]ng-template", never, {}, {}, never, never, true, never>;
13274
- }
13275
-
13276
- /**
13277
- * VdSelectTriggerDirective class
13278
- */
13279
- declare class VdSelectTriggerDirective extends CdkPortal {
13280
- static ɵfac: i0.ɵɵFactoryDeclaration<VdSelectTriggerDirective, never>;
13281
- static ɵdir: i0.ɵɵDirectiveDeclaration<VdSelectTriggerDirective, "[vd-select-trigger]ng-template", never, {}, {}, never, never, true, never>;
13282
- }
13283
-
13284
- declare class VdSelectComponent extends AbstractSelectFormField<any> implements AfterViewInit {
13285
- /**
13286
- * CSS class applied to the trigger element.
13287
- */
13288
- protected _triggerCssClass?: string;
13289
- /**
13290
- * Mode of the trigger, default is 'chip'.
13291
- */
13292
- protected _triggerMode?: 'chip';
13293
- /**
13294
- * Template for rendering options.
13295
- */
13296
- optionTemplate?: VdSelectOptionDirective;
13297
- /**
13298
- * Template for rendering the trigger.
13299
- */
13300
- triggerTemplate?: VdSelectTriggerDirective;
13301
- /**
13302
- * Reference to the MatSelect element.
13303
- */
13304
- selectEl?: MatSelect;
13305
- /**
13306
- * Reference to the filter input element.
13307
- */
13308
- filterInput?: ElementRef;
13309
- /**
13310
- * CSS class applied to the trigger element.
13311
- */
13312
- get triggerCssClass(): string | undefined;
13313
- set triggerCssClass(triggerCssClass: string | undefined);
13314
- /**
13315
- * Gets the display values of the selected options for the trigger.
13316
- *
13317
- * @returns The display values of the selected options
13318
- */
13319
- get triggerValues(): any[];
13320
- /**
13321
- * Retrieves the currently selected options from the filtered options.
13322
- * If multiple options are selected, returns them as an array.
13323
- * If a single option is selected, returns it as an array with one element.
13324
- *
13325
- * @returns An array of selected items from the filtered options.
13326
- */
13327
- get selectedOptions(): any[];
13328
- /**
13329
- * Checks if the select element is empty.
13330
- *
13331
- * @returns true if the select element is empty, false otherwise.
13332
- */
13333
- get empty(): boolean;
13334
- /**
13335
- * Constructor to initialize the VdSelectComponent.
13336
- */
13337
- constructor();
13338
- /**
13339
- * Lifecycle hook that is called after Angular has initialized the component's view.
13340
- * Sets up an event listener to focus the filter input when the select element is opened.
13341
- */
13342
- ngAfterViewInit(): void;
13343
- /**
13344
- * Writes the value to the component. Part of the ControlValueAccessor interface.
13345
- *
13346
- * @param value The value to be written
13347
- */
13348
- writeValue(value: any): void;
13349
- /**
13350
- * Sets focus on the select element and opens the dropdown.
13351
- */
13352
- focus(): void;
13353
- /**
13354
- * Handles the launch button click event.
13355
- * Emits the selected options through the onLaunch event emitter.
13356
- *
13357
- * @param value The value to be emitted
13358
- */
13359
- handleLaunchClicked(value: any): void;
13360
- /**
13361
- * Handles the filter event to filter the options based on the input.
13362
- *
13363
- * @param $event The filter event
13364
- */
13365
- handleFilter($event?: Event): void;
13366
- static ɵfac: i0.ɵɵFactoryDeclaration<VdSelectComponent, never>;
13367
- static ɵcmp: i0.ɵɵComponentDeclaration<VdSelectComponent, "vd-select", never, { "triggerCssClass": { "alias": "triggerCssClass"; "required": false; }; }, {}, ["optionTemplate", "triggerTemplate"], never, true, never>;
13368
- }
13369
-
13370
13705
  declare class FilterClearComponent {
13371
13706
  private table;
13372
13707
  /**
@@ -14148,5 +14483,5 @@ declare class TableStaticDataSource<TEntity> extends MatTableDataSource<TEntity>
14148
14483
  getSelected: <TType>(key?: string) => TType[];
14149
14484
  }
14150
14485
 
14151
- export { AbstractMatFormField, AbstractSelectFormField, ActionItem, Api, ApiResponse, AppEvent, AppEventType, AppSetting, AppStorage, AsyncValidationDirective, AuditEntity, AuditUser, AuthHelper, AuthUser, AutofocusDirective, BaseComponent, BaseDirective, BaseEntity, BaseInterceptor, BaseService, BindPipe, CachingInterceptor, Column, ColumnObject, Common, CommonError, CommonHandlerContext, ConfirmExitGuard, ContextHelper, DIALOG_PROVIDER, DIALOG_PROVIDER_FACTORY, DataSourceFilterDirective, DataSourcePipe, DatePickerHeaderComponent, DisableControlDirective, Display, DisplayNameNumberProjection, DisplayNameProjection, DynamicBuilder, DynamicComponentCompiler, EXPORT_DIALOG_COMPONENT, EmptyStringResetDirective, EnumMetadata, EnumPipe, EnumService, EqualValidator, ErrorMessageBindingStrategy, EventQueueService, Facet, FacetValue, FieldFuncPipe, FileControlDirective, FileService, FileSizePipe, FilterClearComponent, FilterDateComponent, FilterGlue, FilterInputComponent, FilterOperator, FilterPipe, FilterSelectComponent, FirstLetterPipe, Form, FormArrayPipe, FormBuilderConfiguration, FormControlPipe, FormDefinition, FormField, FormFieldDefinition, FormFieldGroup, FormFieldGroupDefinition, FormFieldType, FormGroupPipe, FuncPipe, GenericEmbeddedListComponent, GenericFormBaseComponent, GenericFormComponent, GenericListComponent, GenericReactiveFormComponent, GenericService, GlobalRoles, Grid, GroupFilterPipe, HtmlControlTemplateDirective, IAbstractControl, Icon, ImageFileControlDirective, IpVersion, KeyValue, KeysPipe, LayoutToggle, LoadingScreenInterceptor, LoadingScreenService, MEDIA_PROVIDER, MEDIA_PROVIDER_FACTORY, MatFormFieldEditorDirective, MatFormFieldRadioDirective, MatFormFieldReadonlyDirective, Menu, MenuClient, MenuDepartment, MenuFormIncludesResolve, MenuItem, MenuItemClient, MenuItemDepartment, MenuItemFormIncludesResolve, MenuItemService, MenuItemTarget, MenuListProjectionResolve, MenuResolve, MenuScope, MenuSettings, MenuSettingsResolve, MessageType, ModifiableEntity, MonthNamePipe, MsaEditFormActionsComponent, MsaEnumDisplayComponent, NameNumberProjection, NameProjection, NativeElementInjectorDirective, NumericValueType, OnlyNumberDirective, OrderPipe, Pagination, PaginatorIntl, ParseDecimalDirective, Permission, PlaceholderPipe, PrefixDirective, PrintService, PropertyJoinPipe, ReactiveFormConfig, ReactiveTypedFormsModule, RemoveWhitespaceDirective, ResetFormType, RxFormArray, RxFormBuilder, RxFormControl, RxFormControlDirective, RxFormGroup, RxReactiveFormsModule, RxwebFormDirective, RxwebValidators, SafeHtmlPipe, Salutation, SaveAction, SplitPipe, SubMenuResolve, SuffixButton, Table, TableColumn, TableColumnConfig, TableColumnType, TableConfig, TableDataSource, TableDefinition, TableQueryConfig, TableStaticDataSource, TaskDialogData, Templates, TimePipe, TitleCase, TitleProjection, TruncatePipe, TypedForm, TypedFormBuilder, UniqueValidatorDirective, UrlValidationType, Utils, ValidationAlphabetLocale, ValueAccessorBase, ValuesPipe, VdAlertDialogComponent, VdChipsComponent, VdCodeDirective, VdConfirmDialogComponent, VdCustomDirective, VdDelayedHoverDirective, VdDialogActionsDirective, VdDialogComponent, VdDialogContentDirective, VdDialogHeaderActionsComponent, VdDialogHeaderComponent, VdDialogMaximizeDirective, VdDialogService, VdDialogTitleDirective, VdDynamicMenuComponent, VdDynamicTableComponent, VdDynamicTableConfigDialogComponent, VdEditorDirective, VdFileDirective, VdFileInputComponent, VdFileModule, VdFilterOptionDirective, VdGenericFormComponent, VdGenericFormCustomFieldDirective, VdLayoutCardOverComponent, VdLayoutCloseDirective, VdLayoutCompactComponent, VdLayoutComponent, VdLayoutFooterComponent, VdLayoutManageListCloseDirective, VdLayoutManageListComponent, VdLayoutManageListOpenDirective, VdLayoutManageListToggleDirective, VdLayoutNavComponent, VdLayoutNavListCloseDirective, VdLayoutNavListComponent, VdLayoutNavListOpenDirective, VdLayoutNavListToggleDirective, VdLayoutOpenDirective, VdLayoutToggleDirective, VdListOptionDirective, VdListToolbarComponent, VdMediaService, VdMediaToggleDirective, VdMenuComponent, VdNavigationDrawerComponent, VdNavigationDrawerMenuDirective, VdNavigationDrawerToolbarDirective, VdPromptDialogComponent, VdSelectComponent, VdSelectOptionDirective, VdSelectTriggerDirective, VdTableFieldDirective, VdTaskDialogComponent, allOf, allOfAsync, alpha, alphaAsync, alphaNumeric, alphaNumericAsync, and, ascii, async, blacklist, choice, choiceAsync, compare, compose, contains, containsAsync, creditCard, creditCardAsync, cusip, custom, customAsync, dataUri, date, dateAsync, different, digit, disable, elementClass, email, endpointMetadataKey, endsWith, endsWithAsync, error, escape, even, extension, extensionAsync, factor, factorAsync, file, fileAsync, fileSize, fileSizeAsync, formDefinitionMetadataKey, formFieldGroupsMetadataKey, formFieldsMetadataKey, getDisplay, getEndpoint, getFormDefinition, getFormGroups, getTableDefinition, graphql, greaterThan, greaterThanAsync, greaterThanEqualTo, greaterThanEqualToAsync, grid, headerMetadataKey, hexColor, iban, ibanAsync, image, imageAsync, json, latLong, latitude, leapYear, lessThan, lessThanAsync, lessThanEqualTo, lessThanEqualToAsync, longitude, lowerCase, ltrim, mac, mask, maxDate, maxDateAsync, maxLength, maxLengthAsync, maxNumber, maxNumberAsync, maxTime, maxTimeAsync, minDate, minDateAsync, minLength, minLengthAsync, minNumber, minNumberAsync, minTime, minTimeAsync, mixinDisableRipple, mixinDisabled, model, noneOf, noneOfAsync, not, notEmpty, numeric, numericAsync, odd, oneOf, oneOfAsync, or, parseProjectionString, password, passwordAsync, pattern, patternAsync, port, prefix, primeNumber, prop, propArray, propObject, range, rangeAsync, required, requiredTrue, rtrim, rule, sanitize, startsWith, startsWithAsync, stripLow, suffix, tableColumnsMetadataKey, tableDefinitionMetadataKey, time, timeAsync, toBoolean, toDate, toDouble, toFloat, toInt, toString, trim, unique, updateOn, upperCase, url, urlAsync, whitelist };
14486
+ export { AbstractMatFormField, AbstractSelectFormField, ActionItem, Api, ApiResponse, AppEvent, AppEventType, AppSetting, AppStorage, AsyncValidationDirective, AuditEntity, AuditUser, AuthHelper, AuthUser, AutofocusDirective, BaseComponent, BaseDirective, BaseEntity, BaseInterceptor, BaseService, BindPipe, CachingInterceptor, Column, ColumnObject, Common, CommonError, CommonHandlerContext, ConfirmExitGuard, ContextHelper, DIALOG_PROVIDER, DIALOG_PROVIDER_FACTORY, DataSourceFilterDirective, DataSourcePipe, DatePickerHeaderComponent, DisableControlDirective, Display, DisplayNameNumberProjection, DisplayNameProjection, DynamicBuilder, DynamicComponentCompiler, EXPORT_DIALOG_COMPONENT, EmptyStringResetDirective, EnumMetadata, EnumPipe, EnumService, EqualValidator, ErrorMessageBindingStrategy, EventQueueService, Facet, FacetValue, FieldFuncPipe, FileControlDirective, FileService, FileSizePipe, FilterClearComponent, FilterDateComponent, FilterGlue, FilterInputComponent, FilterOperator, FilterPipe, FilterSelectComponent, FirstLetterPipe, Form, FormArrayPipe, FormBuilderConfiguration, FormControlPipe, FormDefinition, FormField, FormFieldDefinition, FormFieldGroup, FormFieldGroupDefinition, FormFieldType, FormGroupPipe, FuncPipe, GenericEmbeddedListComponent, GenericFormBaseComponent, GenericFormComponent, GenericListComponent, GenericReactiveFormComponent, GenericService, GlobalRoles, Grid, GroupFilterPipe, HtmlControlTemplateDirective, IAbstractControl, Icon, ImageFileControlDirective, IpVersion, KeyValue, KeysPipe, LayoutToggle, LoadingScreenInterceptor, LoadingScreenService, MEDIA_PROVIDER, MEDIA_PROVIDER_FACTORY, MatFormFieldEditorDirective, MatFormFieldRadioDirective, MatFormFieldReadonlyDirective, MatInputRequiredDirective, MatSelectRequiredDirective, Menu, MenuClient, MenuDepartment, MenuFormIncludesResolve, MenuItem, MenuItemClient, MenuItemDepartment, MenuItemFormIncludesResolve, MenuItemService, MenuItemTarget, MenuListProjectionResolve, MenuResolve, MenuScope, MenuSettings, MenuSettingsResolve, MessageType, ModifiableEntity, MonthNamePipe, MsaEditFormActionsComponent, MsaEnumDisplayComponent, MsaSelectRequiredDirective, NameNumberProjection, NameProjection, NativeElementInjectorDirective, NumericValueType, OnlyNumberDirective, OrderPipe, Pagination, PaginatorIntl, ParseDecimalDirective, Permission, PlaceholderPipe, PrefixDirective, PrintService, PropertyJoinPipe, ReactiveFormConfig, ReactiveTypedFormsModule, RemoveWhitespaceDirective, ResetFormType, RxFormArray, RxFormBuilder, RxFormControl, RxFormControlDirective, RxFormGroup, RxReactiveFormsModule, RxwebFormDirective, RxwebValidators, SafeHtmlPipe, Salutation, SaveAction, SplitPipe, SubMenuResolve, SuffixButton, Table, TableColumn, TableColumnConfig, TableColumnType, TableConfig, TableDataSource, TableDefinition, TableQueryConfig, TableStaticDataSource, TaskDialogData, Templates, TimePipe, TitleCase, TitleProjection, TruncatePipe, TypedForm, TypedFormBuilder, UniqueValidatorDirective, UrlValidationType, Utils, ValidationAlphabetLocale, ValueAccessorBase, ValuesPipe, VdAlertDialogComponent, VdChipsComponent, VdCodeDirective, VdConfirmDialogComponent, VdCustomDirective, VdDelayedHoverDirective, VdDialogActionsDirective, VdDialogComponent, VdDialogContentDirective, VdDialogHeaderActionsComponent, VdDialogHeaderComponent, VdDialogMaximizeDirective, VdDialogService, VdDialogTitleDirective, VdDynamicMenuComponent, VdDynamicTableComponent, VdDynamicTableConfigDialogComponent, VdEditorDirective, VdFileDirective, VdFileInputComponent, VdFileModule, VdFilterOptionDirective, VdGenericFormComponent, VdGenericFormCustomFieldDirective, VdLayoutCardOverComponent, VdLayoutCloseDirective, VdLayoutCompactComponent, VdLayoutComponent, VdLayoutFooterComponent, VdLayoutManageListCloseDirective, VdLayoutManageListComponent, VdLayoutManageListOpenDirective, VdLayoutManageListToggleDirective, VdLayoutNavComponent, VdLayoutNavListCloseDirective, VdLayoutNavListComponent, VdLayoutNavListOpenDirective, VdLayoutNavListToggleDirective, VdLayoutOpenDirective, VdLayoutToggleDirective, VdListOptionDirective, VdListToolbarComponent, VdMediaService, VdMediaToggleDirective, VdMenuComponent, VdNavigationDrawerComponent, VdNavigationDrawerMenuDirective, VdNavigationDrawerToolbarDirective, VdPromptDialogComponent, VdSelectComponent, VdSelectOptionDirective, VdSelectTriggerDirective, VdTableFieldDirective, VdTaskDialogComponent, allOf, allOfAsync, alpha, alphaAsync, alphaNumeric, alphaNumericAsync, and, ascii, async, blacklist, choice, choiceAsync, compare, compose, contains, containsAsync, creditCard, creditCardAsync, cusip, custom, customAsync, dataUri, date, dateAsync, different, digit, disable, elementClass, email, endpointMetadataKey, endsWith, endsWithAsync, error, escape, even, extension, extensionAsync, factor, factorAsync, file, fileAsync, fileSize, fileSizeAsync, formDefinitionMetadataKey, formFieldGroupsMetadataKey, formFieldsMetadataKey, getDisplay, getEndpoint, getFormDefinition, getFormGroups, getTableDefinition, graphql, greaterThan, greaterThanAsync, greaterThanEqualTo, greaterThanEqualToAsync, grid, hasRequiredValidator, headerMetadataKey, hexColor, iban, ibanAsync, image, imageAsync, json, latLong, latitude, leapYear, lessThan, lessThanAsync, lessThanEqualTo, lessThanEqualToAsync, longitude, lowerCase, ltrim, mac, mask, maxDate, maxDateAsync, maxLength, maxLengthAsync, maxNumber, maxNumberAsync, maxTime, maxTimeAsync, minDate, minDateAsync, minLength, minLengthAsync, minNumber, minNumberAsync, minTime, minTimeAsync, mixinDisableRipple, mixinDisabled, model, noneOf, noneOfAsync, not, notEmpty, numeric, numericAsync, odd, oneOf, oneOfAsync, or, parseProjectionArray, parseProjectionString, password, passwordAsync, pattern, patternAsync, port, prefix, primeNumber, prop, propArray, propObject, range, rangeAsync, required, requiredTrue, rtrim, rule, sanitize, startsWith, startsWithAsync, stripLow, suffix, tableColumnsMetadataKey, tableDefinitionMetadataKey, time, timeAsync, toBoolean, toDate, toDouble, toFloat, toInt, toString, trim, unique, updateOn, upperCase, url, urlAsync, whitelist };
14152
14487
  export type { AppFormGroup, CanComponentDeactivate, Constructor$1 as Constructor, Delegate, DialogButtonConfig, EditorChange, EnumItem, Filter, FilterField, FormGroupExtension, IAlertConfig, IBaseComponent, ICanDisable, ICanDisableRipple, ICommonHandlerContext, IConfirmConfig, IDialogConfig, IEntity, IFormGroup, IGenericFormBaseComponent, IGenericListComponent, IGenericReactiveFormBaseComponent, ILayoutTogglable, IPromptConfig, Options, ShowConfirmationDialog, ShowTaskDialog, VdGenericFormInitEvent };