@ethlete/cdk 2.14.0 → 2.15.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.
@@ -2,4 +2,5 @@ import { InputPrefixDirective, InputSuffixDirective } from '../../../../directiv
2
2
  import { LabelComponent } from '../../../label';
3
3
  import { SelectFieldComponent } from '../select-field';
4
4
  import { ComboboxComponent } from './components';
5
- export declare const ComboboxImports: readonly [typeof ComboboxComponent, typeof SelectFieldComponent, typeof InputPrefixDirective, typeof InputSuffixDirective, typeof LabelComponent];
5
+ import { ComboboxOptionTemplateDirective, ComboboxSelectedOptionTemplateDirective } from './directives';
6
+ export declare const ComboboxImports: readonly [typeof ComboboxComponent, typeof SelectFieldComponent, typeof InputPrefixDirective, typeof InputSuffixDirective, typeof LabelComponent, typeof ComboboxOptionTemplateDirective, typeof ComboboxSelectedOptionTemplateDirective];
@@ -4,6 +4,9 @@ import * as i0 from "@angular/core";
4
4
  import * as i1 from "../../../../../../directives/input/input.directive";
5
5
  import * as i2 from "@ethlete/core";
6
6
  export declare const COMBOBOX_TOKEN: InjectionToken<ComboboxComponent>;
7
+ type TemplateRefWithOption = TemplateRef<{
8
+ option: unknown;
9
+ }>;
7
10
  export declare class ComboboxComponent extends DecoratedInputBase implements OnInit {
8
11
  private readonly _input;
9
12
  private readonly _animatedOverlay;
@@ -42,13 +45,12 @@ export declare class ComboboxComponent extends DecoratedInputBase implements OnI
42
45
  readonly multiple$: import("rxjs").Observable<boolean>;
43
46
  readonly options$: import("rxjs").Observable<unknown[]>;
44
47
  readonly rawOptions$: import("rxjs").Observable<unknown[]>;
45
- set optionTemplates(value: TemplateRef<{
46
- option: unknown;
47
- }> | undefined);
48
+ set optionTemplate(value: TemplateRefWithOption | undefined);
48
49
  private readonly _optionTemplate$;
49
- readonly customOptionTpl$: import("rxjs").Observable<TemplateRef<{
50
- option: unknown;
51
- }> | null>;
50
+ set selectedOptionTemplate(value: TemplateRefWithOption | undefined);
51
+ private readonly _selectedOptionTemplate$;
52
+ readonly customOptionTpl$: import("rxjs").Observable<TemplateRefWithOption | null>;
53
+ readonly customSelectedOptionTpl$: import("rxjs").Observable<TemplateRefWithOption | null>;
52
54
  constructor();
53
55
  ngOnInit(): void;
54
56
  getOptionLabel(option: unknown): import("rxjs").Observable<unknown>;
@@ -70,5 +72,6 @@ export declare class ComboboxComponent extends DecoratedInputBase implements OnI
70
72
  private _interpretKeyHandlerResult;
71
73
  private _debugValidateComboboxConfig;
72
74
  static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxComponent, never>;
73
- static ɵcmp: i0.ɵɵComponentDeclaration<ComboboxComponent, "et-combobox", never, { "options": { "alias": "options"; "required": true; }; "initialValue": { "alias": "initialValue"; "required": false; }; "filterInternal": { "alias": "filterInternal"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "error": { "alias": "error"; "required": false; }; "emptyText": { "alias": "emptyText"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "bindValue": { "alias": "bindValue"; "required": false; }; "allowCustomValues": { "alias": "allowCustomValues"; "required": false; }; }, { "filterChange": "filterChange"; }, ["optionTemplates"], ["[etInputPrefix]", "[etInputSuffix]", "*"], true, [{ directive: typeof i1.InputDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.AnimatedOverlayDirective; inputs: {}; outputs: {}; }]>;
75
+ static ɵcmp: i0.ɵɵComponentDeclaration<ComboboxComponent, "et-combobox", never, { "options": { "alias": "options"; "required": true; }; "initialValue": { "alias": "initialValue"; "required": false; }; "filterInternal": { "alias": "filterInternal"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "error": { "alias": "error"; "required": false; }; "emptyText": { "alias": "emptyText"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "bindValue": { "alias": "bindValue"; "required": false; }; "allowCustomValues": { "alias": "allowCustomValues"; "required": false; }; }, { "filterChange": "filterChange"; }, ["optionTemplate", "selectedOptionTemplate"], ["[etInputPrefix]", "[etInputSuffix]", "*"], true, [{ directive: typeof i1.InputDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.AnimatedOverlayDirective; inputs: {}; outputs: {}; }]>;
74
76
  }
77
+ export {};
@@ -0,0 +1,8 @@
1
+ import { InjectionToken, TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare const COMBOBOX_SELECTED_OPTION_TEMPLATE_TOKEN: InjectionToken<ComboboxSelectedOptionTemplateDirective>;
4
+ export declare class ComboboxSelectedOptionTemplateDirective {
5
+ readonly template: TemplateRef<any>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxSelectedOptionTemplateDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComboboxSelectedOptionTemplateDirective, "ng-template[etComboboxSelectedOptionTemplate]", ["etComboboxSelectedOptionTemplate"], {}, {}, never, never, true, never>;
8
+ }
@@ -0,0 +1 @@
1
+ export * from './combobox-selected-option-template.directive';
@@ -1,2 +1,3 @@
1
1
  export * from './combobox-option-template/public-api';
2
+ export * from './combobox-selected-option-template/public-api';
2
3
  export * from './combobox/public-api';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/cdk",
3
- "version": "2.14.0",
3
+ "version": "2.15.1",
4
4
  "exports": {
5
5
  ".": {
6
6
  "css": "./src/lib/styles/index.css",