@festo-ui/angular 5.0.0-dev.80 → 5.0.0-dev.85

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.
@@ -16,7 +16,8 @@ export declare class FngSegmentControlComponent implements OnInit, OnChanges, Af
16
16
  ngOnInit(): void;
17
17
  ngOnChanges(changes: SimpleChanges): void;
18
18
  ngAfterViewInit(): void;
19
- onChange(event: unknown): void;
19
+ onInputChange(event: Event): void;
20
+ onInputClick(event: Event): void;
20
21
  static ɵfac: i0.ɵɵFactoryDeclaration<FngSegmentControlComponent, never>;
21
22
  static ɵcmp: i0.ɵɵComponentDeclaration<FngSegmentControlComponent, "fng-segment-control", never, { "name": "name"; "value": "value"; "label": "label"; "icon": "icon"; "iconOnly": "iconOnly"; "checked": "checked"; "disabled": "disabled"; }, { "change": "change"; }, never, never, true, never>;
22
23
  }
@@ -1,25 +1,34 @@
1
1
  import { AfterContentInit, SimpleChanges, OnChanges, AfterViewInit, ViewContainerRef, ChangeDetectorRef, EventEmitter, OnDestroy } from '@angular/core';
2
2
  import type { QueryList } from '@angular/core';
3
- import { FngValueAccessorBaseDirective } from '../value-accessor-base';
3
+ import { ControlValueAccessor } from '@angular/forms';
4
4
  import { FngSegmentControlComponent } from './segment-control/segment-control.component';
5
5
  import * as i0 from "@angular/core";
6
6
  export interface FngSegmentComponentConfiguration {
7
7
  outline: boolean;
8
8
  iconOnly: boolean;
9
9
  }
10
- export declare class FngSegmentComponent extends FngValueAccessorBaseDirective<any> implements OnChanges, AfterContentInit, AfterViewInit, OnDestroy {
10
+ export declare class FngSegmentComponent implements OnChanges, AfterContentInit, AfterViewInit, OnDestroy, ControlValueAccessor {
11
11
  private cd;
12
+ protected changed: ((value: string) => void)[];
13
+ protected touched: (() => void)[];
14
+ protected innerValue: any;
15
+ writeValue(value: string): void;
16
+ updateCheckState(): void;
17
+ registerOnChange(fn: (value: string) => void): void;
18
+ registerOnTouched(fn: () => void): void;
12
19
  private complete;
13
20
  defaultConfig: FngSegmentComponentConfiguration;
14
21
  useIcon: boolean;
15
22
  useIconAndText: boolean;
23
+ id: string;
16
24
  legend: string;
17
25
  config: FngSegmentComponentConfiguration;
18
26
  controls: QueryList<FngSegmentControlComponent> | undefined;
19
27
  vc: ViewContainerRef | undefined;
20
28
  fngChange: EventEmitter<any>;
21
29
  change: EventEmitter<any>;
22
- set value(value: string);
30
+ set value(value: any);
31
+ get value(): any;
23
32
  constructor(cd: ChangeDetectorRef);
24
33
  ngOnChanges(changes: SimpleChanges): void;
25
34
  ngAfterContentInit(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@festo-ui/angular",
3
- "version": "5.0.0-dev.80",
3
+ "version": "5.0.0-dev.85",
4
4
  "author": "Festo UI (styleguide@festo.com)",
5
5
  "license": "apache-2.0",
6
6
  "description": "CSS framework and utils to build FESTO web applications",