@dmlibs/dm-cmps 0.1.29 → 0.1.30

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmlibs/dm-cmps",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0"
@@ -1,5 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { Signal, InputSignal, InputSignalWithTransform, ModelSignal, OutputEmitterRef, OnDestroy, TemplateRef, Renderer2, Type, PipeTransform } from '@angular/core';
2
+ import { Signal, InputSignal, InputSignalWithTransform, ModelSignal, OutputEmitterRef, TemplateRef, OnDestroy, Renderer2, Type, PipeTransform } from '@angular/core';
3
3
  import { MatSelectChange } from '@angular/material/select';
4
4
  import { FormControl } from '@angular/forms';
5
5
  import { MatOptionSelectionChange } from '@angular/material/core';
@@ -578,6 +578,22 @@ interface DmMatSelectConfig<T = any> {
578
578
 
579
579
  */
580
580
  hideErrorArea?: InputSignalWithTransform<boolean, unknown>;
581
+ /**
582
+ * Template for the option.
583
+ * ```
584
+ * type TemplateRef<any> | null
585
+ * ```
586
+ * @default null
587
+ */
588
+ optionTemplate?: InputSignal<TemplateRef<any> | null>;
589
+ /**
590
+ * Template for the select trigger.
591
+ * ```
592
+ * type TemplateRef<any> | null
593
+ * ```
594
+ * @default null
595
+ */
596
+ selectTriggerTemplate?: InputSignal<TemplateRef<any> | null>;
581
597
  }
582
598
 
583
599
  type DmMatSelectOutput<T> = T | T[] | string | string[] | number | number[] | null;
@@ -615,7 +631,7 @@ declare class DmMatSelect<T = any> implements DmMatSelectConfig<T>, OnDestroy {
615
631
  value: _angular_core.ModelSignal<DmMatSelectOutput<T>>;
616
632
  formControl: _angular_core.InputSignal<FormControl<DmMatSelectOutput<T>> | null>;
617
633
  panelWidth: _angular_core.InputSignal<string | null>;
618
- panelClass: _angular_core.InputSignal<string | string[] | Set<string> | {
634
+ panelClass: _angular_core.InputSignal<string | Set<string> | string[] | {
619
635
  [key: string]: any;
620
636
  }>;
621
637
  searchSectionBackgroundColor: _angular_core.InputSignal<string | null>;