@messaia/cdk 18.0.0-rc19 → 18.0.0-rc21

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,7 +20,7 @@ export declare class OrderPipe implements PipeTransform {
20
20
  * @param a
21
21
  * @param b
22
22
  */
23
- static defaultCompare(a: any, b: any): 0 | 1 | -1;
23
+ static defaultCompare(a: any, b: any): 1 | 0 | -1;
24
24
  /**
25
25
  * Parse expression, split into items
26
26
  * @param expression
@@ -28,7 +28,7 @@ declare const _AbstractMatFormFieldBase: import("@angular/material/core")._Const
28
28
  * AbstractMatFormField class
29
29
  */
30
30
  export declare abstract class AbstractMatFormField<T> extends _AbstractMatFormFieldBase implements DoCheck, OnDestroy, ControlValueAccessor, MatFormFieldControl<T> {
31
- readonly controlType: string;
31
+ controlType: string;
32
32
  readonly ngControl: NgControl;
33
33
  readonly _parentForm: NgForm;
34
34
  readonly _parentFormGroup: FormGroupDirective;
@@ -38,6 +38,11 @@ export declare class FormFieldDefinition<TEntity = any, TProperty = any> {
38
38
  * @property
39
39
  */
40
40
  chipText: string;
41
+ /**
42
+ * Theme color palette for the chip.
43
+ * @property
44
+ */
45
+ chipColor: 'primary' | 'accent' | 'warn';
41
46
  /**
42
47
  * Type of class to be instantiated.
43
48
  * @property
@@ -359,7 +364,7 @@ export declare class FormFieldDefinition<TEntity = any, TProperty = any> {
359
364
  * Mode of the trigger (e.g., chip).
360
365
  * @property
361
366
  */
362
- triggerMode: 'chip';
367
+ triggerMode?: 'chip';
363
368
  /**
364
369
  * Template for the trigger.
365
370
  * @property
@@ -16,7 +16,7 @@ export declare class VdSelectComponent extends AbstractSelectFormField<any> impl
16
16
  /**
17
17
  * Mode of the trigger, default is 'chip'.
18
18
  */
19
- protected _triggerMode: string;
19
+ protected _triggerMode?: 'chip';
20
20
  /**
21
21
  * Template for rendering options.
22
22
  */
@@ -39,10 +39,10 @@ export declare class VdSelectComponent extends AbstractSelectFormField<any> impl
39
39
  get triggerCssClass(): string | undefined;
40
40
  set triggerCssClass(triggerCssClass: string | undefined);
41
41
  /**
42
- * Mode of the trigger, default is 'chip'.
42
+ * Mode of the trigger.
43
43
  */
44
- get triggerMode(): string;
45
- set triggerMode(triggerMode: string);
44
+ get triggerMode(): string | undefined;
45
+ set triggerMode(triggerMode: 'chip' | undefined);
46
46
  /**
47
47
  * Gets the display values of the selected options for the trigger.
48
48
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@messaia/cdk",
3
- "version": "18.0.0-rc19",
3
+ "version": "18.0.0-rc21",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.0.6",
6
6
  "@angular/core": "^18.0.6"