@klippa/ngx-enhancy-forms 16.0.0 → 16.6.2

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.
@@ -13,6 +13,7 @@ export declare class RadioComponent extends ValueAccessorBase<string> {
13
13
  options: RadioOptions;
14
14
  orientation: Orientation;
15
15
  variant: 'classic' | 'button';
16
+ Orientation: typeof Orientation;
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<RadioComponent, never>;
17
18
  static ɵcmp: i0.ɵɵComponentDeclaration<RadioComponent, "klp-form-radio", never, { "options": { "alias": "options"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, never, false, never>;
18
19
  }
@@ -1,4 +1,4 @@
1
- import { ElementRef, EventEmitter, InjectionToken, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, EventEmitter, InjectionToken, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
2
2
  import { ControlContainer } from '@angular/forms';
3
3
  import { ValueAccessorBase } from '../value-accessor-base/value-accessor-base.component';
4
4
  import { FormElementComponent } from '../../form/form-element/form-element.component';
@@ -16,19 +16,22 @@ export declare class KlpSelectOptionTemplateDirective {
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<KlpSelectOptionTemplateDirective, never>;
17
17
  static ɵdir: i0.ɵɵDirectiveDeclaration<KlpSelectOptionTemplateDirective, "[klpSelectOptionTpl]", never, {}, {}, never, never, false, never>;
18
18
  }
19
- export declare class SelectComponent extends ValueAccessorBase<string | string[]> implements OnChanges {
19
+ export declare class SelectComponent extends ValueAccessorBase<string | string[]> implements OnChanges, AfterViewInit {
20
20
  protected parent: FormElementComponent;
21
21
  protected controlContainer: ControlContainer;
22
22
  private translations;
23
23
  private elRef;
24
24
  placeholder: string;
25
+ prefix: string;
25
26
  orientation: 'vertical' | 'horizontal';
26
27
  options: AppSelectOptions;
27
28
  multiple: boolean;
28
29
  multipleDisplayedAsAmount: boolean;
29
30
  clearable: boolean;
30
31
  truncateOptions: boolean;
31
- dropdownPosition: string;
32
+ withSeparatingLine: boolean;
33
+ searchable: boolean;
34
+ dropdownPosition: 'auto' | 'bottom' | 'top' | 'left' | 'right';
32
35
  customSearchFn: (term: string, item: {
33
36
  id: string;
34
37
  name: string;
@@ -38,19 +41,27 @@ export declare class SelectComponent extends ValueAccessorBase<string | string[]
38
41
  onSearch: EventEmitter<string>;
39
42
  onEndReached: EventEmitter<void>;
40
43
  onOpened: EventEmitter<void>;
44
+ onClosed: EventEmitter<void>;
41
45
  onBlur: EventEmitter<void>;
42
46
  onClear: EventEmitter<void>;
43
47
  ngSelect: any;
44
48
  customOptionTpl: TemplateRef<any>;
45
49
  private lastItemIndexReached;
50
+ dropdownPositionToUse: 'auto' | 'bottom' | 'top' | 'left' | 'right';
46
51
  constructor(parent: FormElementComponent, controlContainer: ControlContainer, translations: any, elRef: ElementRef);
52
+ ngAfterViewInit(): void;
53
+ private addPrefix;
47
54
  ngOnChanges(changes: SimpleChanges): void;
48
55
  getDefaultTranslation(key: string): (x: any) => string;
49
56
  getTranslation(key: string, params?: any): string;
50
57
  onScroll(lastItemIndex: number): void;
51
58
  searchQueryChanged(searchQuery: string): void;
52
59
  onOpen(): void;
60
+ private setWidthBasedOnOptionsWidths;
61
+ private determineDropdownPosition;
62
+ private isLimitingContainer;
53
63
  focus: () => void;
64
+ onClose(): void;
54
65
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, [{ optional: true; host: true; }, { optional: true; host: true; }, { optional: true; }, null]>;
55
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "klp-form-select", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "options": { "alias": "options"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "multipleDisplayedAsAmount": { "alias": "multipleDisplayedAsAmount"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "truncateOptions": { "alias": "truncateOptions"; "required": false; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; }; "customSearchFn": { "alias": "customSearchFn"; "required": false; }; "footerElement": { "alias": "footerElement"; "required": false; }; }, { "onSearch": "onSearch"; "onEndReached": "onEndReached"; "onOpened": "onOpened"; "onBlur": "onBlur"; "onClear": "onClear"; }, ["customOptionTpl"], never, false, never>;
66
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "klp-form-select", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "options": { "alias": "options"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "multipleDisplayedAsAmount": { "alias": "multipleDisplayedAsAmount"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "truncateOptions": { "alias": "truncateOptions"; "required": false; }; "withSeparatingLine": { "alias": "withSeparatingLine"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; }; "customSearchFn": { "alias": "customSearchFn"; "required": false; }; "footerElement": { "alias": "footerElement"; "required": false; }; }, { "onSearch": "onSearch"; "onEndReached": "onEndReached"; "onOpened": "onOpened"; "onClosed": "onClosed"; "onBlur": "onBlur"; "onClear": "onClear"; }, ["customOptionTpl"], never, false, never>;
56
67
  }
@@ -6,7 +6,9 @@ export declare class TextInputComponent extends ValueAccessorBase<string> {
6
6
  type: 'text' | 'password';
7
7
  clearable: boolean;
8
8
  icon: 'search';
9
+ hasBorderLeft: boolean;
10
+ hasBorderRight: boolean;
9
11
  onBlur: EventEmitter<void>;
10
12
  static ɵfac: i0.ɵɵFactoryDeclaration<TextInputComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "klp-form-text-input", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, { "onBlur": "onBlur"; }, never, never, false, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "klp-form-text-input", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "hasBorderLeft": { "alias": "hasBorderLeft"; "required": false; }; "hasBorderRight": { "alias": "hasBorderRight"; "required": false; }; }, { "onBlur": "onBlur"; }, never, never, false, never>;
12
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klippa/ngx-enhancy-forms",
3
- "version": "16.0.0",
3
+ "version": "16.6.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },