@fundamental-ngx/cdk 0.56.5 → 0.57.0-rc.0
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/data-source/index.d.ts +236 -8
- package/fesm2022/fundamental-ngx-cdk-data-source.mjs +7 -7
- package/fesm2022/fundamental-ngx-cdk-data-source.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-cdk-forms.mjs +10 -10
- package/fesm2022/fundamental-ngx-cdk-forms.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-cdk-utils.mjs +302 -300
- package/fesm2022/fundamental-ngx-cdk-utils.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-cdk.mjs +4 -4
- package/fesm2022/fundamental-ngx-cdk.mjs.map +1 -1
- package/forms/index.d.ts +396 -12
- package/index.d.ts +12 -1
- package/package.json +8 -8
- package/utils/index.d.ts +3253 -24
- package/data-source/base/abstract-data-provider.class.d.ts +0 -54
- package/data-source/base/base-data-source.class.d.ts +0 -64
- package/data-source/data-source.directive.d.ts +0 -46
- package/data-source/data-source.module.d.ts +0 -7
- package/data-source/helpers/apply-datasource-directive.d.ts +0 -6
- package/data-source/helpers/common.d.ts +0 -7
- package/data-source/helpers/is-datasource.d.ts +0 -5
- package/data-source/models/data-source-provider.d.ts +0 -22
- package/data-source/models/data-source.d.ts +0 -16
- package/data-source/models/index.d.ts +0 -3
- package/data-source/models/matching-strategy.d.ts +0 -10
- package/data-source/tokens.d.ts +0 -6
- package/forms/cva/cva-control.class.d.ts +0 -25
- package/forms/cva/cva.directive.d.ts +0 -181
- package/forms/forms.module.d.ts +0 -7
- package/forms/helpers/state.d.ts +0 -3
- package/forms/models/control-type.model.d.ts +0 -6
- package/forms/models/cva.d.ts +0 -4
- package/forms/models/form-error.d.ts +0 -36
- package/forms/models/form-field.d.ts +0 -88
- package/forms/models/form-state.d.ts +0 -2
- package/forms/models/select-item.d.ts +0 -47
- package/forms/tokens/form-field-control.token.d.ts +0 -3
- package/forms/tokens/form-field.token.d.ts +0 -3
- package/fundamental-ngx.module.d.ts +0 -9
- package/utils/abstract-fd-ngx-class.d.ts +0 -28
- package/utils/async-strategy/function-strategy.class.d.ts +0 -8
- package/utils/async-strategy/index.d.ts +0 -6
- package/utils/async-strategy/observable-strategy.class.d.ts +0 -9
- package/utils/async-strategy/promise-strategy.class.d.ts +0 -8
- package/utils/async-strategy/select-strategy.class.d.ts +0 -8
- package/utils/async-strategy/subscription-strategy.interface.d.ts +0 -10
- package/utils/async-strategy/value-strategy.class.d.ts +0 -8
- package/utils/coercion/array.d.ts +0 -2
- package/utils/components/dynamic-portal/dynamic-portal.component.d.ts +0 -36
- package/utils/components/index.d.ts +0 -1
- package/utils/consts/error-messages.d.ts +0 -3
- package/utils/consts/index.d.ts +0 -4
- package/utils/consts/overflow-priority-score.d.ts +0 -2
- package/utils/consts/unicode-letters.regex.d.ts +0 -7
- package/utils/consts/unicode-numbers.regex.d.ts +0 -6
- package/utils/datatypes/color-accent.datatype.d.ts +0 -3
- package/utils/datatypes/hash.datatype.d.ts +0 -3
- package/utils/datatypes/index.d.ts +0 -4
- package/utils/datatypes/object-nesting.types.d.ts +0 -4
- package/utils/datatypes/size.datatype.d.ts +0 -1
- package/utils/decorators/apply-css-class.decorator.d.ts +0 -10
- package/utils/decorators/apply-css-style.decorator.d.ts +0 -10
- package/utils/decorators/coerce-boolean.d.ts +0 -4
- package/utils/decorators/coerce-css-pixel.d.ts +0 -1
- package/utils/decorators/index.d.ts +0 -5
- package/utils/decorators/setter-alternator.d.ts +0 -4
- package/utils/deprecated-selector.class.d.ts +0 -18
- package/utils/directives/auto-complete/auto-complete.directive.d.ts +0 -59
- package/utils/directives/auto-complete/auto-complete.module.d.ts +0 -7
- package/utils/directives/breakpoints/breakpoint.directive.d.ts +0 -78
- package/utils/directives/breakpoints/responsive-breakpoints.d.ts +0 -10
- package/utils/directives/clicked/clicked-behavior.module.d.ts +0 -16
- package/utils/directives/clicked/clicked-event.plugin.d.ts +0 -26
- package/utils/directives/clicked/clicked.directive.d.ts +0 -17
- package/utils/directives/clicked/element-click.observable.d.ts +0 -8
- package/utils/directives/clicked/fdk-clicked-provider.service.d.ts +0 -23
- package/utils/directives/clicked/index.d.ts +0 -5
- package/utils/directives/clicked/provide-fdk-clicked.d.ts +0 -11
- package/utils/directives/disabled/default-disabled-view-modifier.d.ts +0 -9
- package/utils/directives/disabled/disabled-behavior.directive.d.ts +0 -35
- package/utils/directives/disabled/disabled-behavior.interface.d.ts +0 -7
- package/utils/directives/disabled/disabled-behavior.module.d.ts +0 -7
- package/utils/directives/disabled/disabled-view-modifier.interface.d.ts +0 -3
- package/utils/directives/disabled/disabled.observer.d.ts +0 -18
- package/utils/directives/disabled/fdk-disabled-provider.service.d.ts +0 -35
- package/utils/directives/disabled/fdk-disabled.token.d.ts +0 -3
- package/utils/directives/disabled/index.d.ts +0 -8
- package/utils/directives/disabled/set-disabled-state.d.ts +0 -4
- package/utils/directives/focus-key-manager/focus-key-manager-helpers.module.d.ts +0 -8
- package/utils/directives/focus-key-manager/focus-key-manager-item.directive.d.ts +0 -30
- package/utils/directives/focus-key-manager/focus-key-manager-list.directive.d.ts +0 -37
- package/utils/directives/focus-key-manager/focus-key-manager.tokens.d.ts +0 -3
- package/utils/directives/focus-key-manager/index.d.ts +0 -4
- package/utils/directives/focusable-grid/focusable-grid.directive.d.ts +0 -41
- package/utils/directives/focusable-grid/focusable-grid.module.d.ts +0 -8
- package/utils/directives/focusable-grid/focusable-grid.tokens.d.ts +0 -2
- package/utils/directives/focusable-grid/index.d.ts +0 -3
- package/utils/directives/focusable-item/focusable-item.directive.d.ts +0 -75
- package/utils/directives/focusable-item/focusable-item.module.d.ts +0 -7
- package/utils/directives/focusable-item/focusable-item.tokens.d.ts +0 -2
- package/utils/directives/focusable-item/focusable-list.position.d.ts +0 -4
- package/utils/directives/focusable-item/focusable.item.d.ts +0 -10
- package/utils/directives/focusable-item/focusable.observer.d.ts +0 -18
- package/utils/directives/focusable-item/get-item-element.d.ts +0 -7
- package/utils/directives/focusable-item/index.d.ts +0 -8
- package/utils/directives/focusable-item/indirect-focusable-item.directive.d.ts +0 -26
- package/utils/directives/focusable-item/is-element-focusable-by-default.d.ts +0 -4
- package/utils/directives/focusable-item/is-item-focusable.d.ts +0 -6
- package/utils/directives/focusable-list/focusable-list.directive.d.ts +0 -117
- package/utils/directives/focusable-list/focusable-list.module.d.ts +0 -8
- package/utils/directives/focusable-list/focusable-list.tokens.d.ts +0 -2
- package/utils/directives/focusable-list/index.d.ts +0 -5
- package/utils/directives/focusable-list/indirect-focusable-list.directive.d.ts +0 -25
- package/utils/directives/focusable-list/scroll.d.ts +0 -4
- package/utils/directives/ignore-click-on-selection/ignore-click-on-selection.directive.d.ts +0 -17
- package/utils/directives/ignore-click-on-selection/ignore-click-on-selection.module.d.ts +0 -7
- package/utils/directives/ignore-click-on-selection/tokens.d.ts +0 -2
- package/utils/directives/index.d.ts +0 -34
- package/utils/directives/initial-focus/initial-focus.directive.d.ts +0 -43
- package/utils/directives/initial-focus/initial-focus.module.d.ts +0 -7
- package/utils/directives/intersection-spy/intersection-spy.directive.d.ts +0 -18
- package/utils/directives/line-clamp/line-clamp.directive.d.ts +0 -91
- package/utils/directives/line-clamp/line-clamp.module.d.ts +0 -7
- package/utils/directives/only-digits/only-digits.directive.d.ts +0 -39
- package/utils/directives/only-digits/only-digits.module.d.ts +0 -7
- package/utils/directives/overflow-list/overflow-list-item.directive.d.ts +0 -9
- package/utils/directives/overflow-list/overflow-list.directive.d.ts +0 -60
- package/utils/directives/overflow-list/overflow-list.module.d.ts +0 -8
- package/utils/directives/readonly/default-readonly-view-modifier.d.ts +0 -9
- package/utils/directives/readonly/fdk-readonly-provider.service.d.ts +0 -35
- package/utils/directives/readonly/fdk-readonly.token.d.ts +0 -2
- package/utils/directives/readonly/index.d.ts +0 -9
- package/utils/directives/readonly/readonly-behavior.directive.d.ts +0 -24
- package/utils/directives/readonly/readonly-behavior.interface.d.ts +0 -7
- package/utils/directives/readonly/readonly-behavior.module.d.ts +0 -7
- package/utils/directives/readonly/readonly-view-modifier.interface.d.ts +0 -3
- package/utils/directives/readonly/readonly.observer.d.ts +0 -18
- package/utils/directives/readonly/set-readonly-state.d.ts +0 -4
- package/utils/directives/repeat/repeat.directive.d.ts +0 -17
- package/utils/directives/repeat/repeat.module.d.ts +0 -7
- package/utils/directives/resize/resize-handle.directive.d.ts +0 -9
- package/utils/directives/resize/resize.directive.d.ts +0 -60
- package/utils/directives/resize/resize.module.d.ts +0 -8
- package/utils/directives/resize-observer/index.d.ts +0 -1
- package/utils/directives/resize-observer/resize-observer.directive.d.ts +0 -20
- package/utils/directives/selectable-list/index.d.ts +0 -7
- package/utils/directives/selectable-list/select-component-root.token.d.ts +0 -10
- package/utils/directives/selectable-list/selectable-item.directive.d.ts +0 -46
- package/utils/directives/selectable-list/selectable-item.token.d.ts +0 -11
- package/utils/directives/selectable-list/selectable-list.directive.d.ts +0 -34
- package/utils/directives/selectable-list/selectable-list.module.d.ts +0 -8
- package/utils/directives/selectable-list/selectable-list.tokens.d.ts +0 -2
- package/utils/directives/selectable-list/selection.service.d.ts +0 -64
- package/utils/directives/template/template.directive.d.ts +0 -13
- package/utils/directives/template/template.module.d.ts +0 -7
- package/utils/directives/truncate/truncate.directive.d.ts +0 -55
- package/utils/directives/truncate/truncate.module.d.ts +0 -7
- package/utils/drag-and-drop/dnd-item/dnd-item.directive.d.ts +0 -95
- package/utils/drag-and-drop/dnd-keyboard-group/dnd-keyboard-group.directive.d.ts +0 -32
- package/utils/drag-and-drop/dnd-keyboard-item/dnd-keyboard-item.directive.d.ts +0 -61
- package/utils/drag-and-drop/dnd-list/dnd-list.directive.d.ts +0 -113
- package/utils/drag-and-drop/dnd.interfaces.d.ts +0 -40
- package/utils/drag-and-drop/drag-and-drop.module.d.ts +0 -11
- package/utils/drag-and-drop/index.d.ts +0 -7
- package/utils/drag-and-drop/tokens.d.ts +0 -3
- package/utils/dynamic-component/dynamic-component-config.d.ts +0 -8
- package/utils/dynamic-component/dynamic-component-container.d.ts +0 -24
- package/utils/dynamic-component/dynamic-component-injector.d.ts +0 -13
- package/utils/dynamic-component/dynamic-component.service.d.ts +0 -46
- package/utils/dynamic-component/index.d.ts +0 -4
- package/utils/functions/consumer-provider-factory.d.ts +0 -5
- package/utils/functions/element-size.d.ts +0 -12
- package/utils/functions/get-document-font-size.d.ts +0 -2
- package/utils/functions/index.d.ts +0 -13
- package/utils/functions/intersection-observable.d.ts +0 -8
- package/utils/functions/is-compact-density.d.ts +0 -7
- package/utils/functions/is-odd.d.ts +0 -6
- package/utils/functions/key-util.d.ts +0 -16
- package/utils/functions/module-deprecations-provider.d.ts +0 -5
- package/utils/functions/parser-file-size.d.ts +0 -2
- package/utils/functions/random-color-accent.d.ts +0 -3
- package/utils/functions/resize-observable.d.ts +0 -8
- package/utils/functions/scroll.d.ts +0 -7
- package/utils/functions/uuidv4-generator.d.ts +0 -2
- package/utils/helpers/destroy-observable.d.ts +0 -7
- package/utils/helpers/dfs.d.ts +0 -18
- package/utils/helpers/get-native-element.d.ts +0 -13
- package/utils/helpers/index.d.ts +0 -5
- package/utils/helpers/range-selector.d.ts +0 -84
- package/utils/helpers/warn-once.d.ts +0 -2
- package/utils/interfaces/content-density.d.ts +0 -1
- package/utils/interfaces/css-class-builder.interface.d.ts +0 -13
- package/utils/interfaces/css-style-builder.interface.d.ts +0 -5
- package/utils/interfaces/has-element-ref.interface.d.ts +0 -5
- package/utils/interfaces/index.d.ts +0 -7
- package/utils/interfaces/keyboard-support-item.interface.d.ts +0 -6
- package/utils/interfaces/module-deprecation.interface.d.ts +0 -8
- package/utils/interfaces/require.interface.d.ts +0 -6
- package/utils/list-item/list-item-utils.d.ts +0 -7
- package/utils/models/nullable.d.ts +0 -6
- package/utils/pipes/async-or-sync.pipe.d.ts +0 -21
- package/utils/pipes/displayFn.pipe.d.ts +0 -8
- package/utils/pipes/filter-strings.pipe.d.ts +0 -16
- package/utils/pipes/index.d.ts +0 -11
- package/utils/pipes/is-compact.pipe.d.ts +0 -9
- package/utils/pipes/make-async.pipe.d.ts +0 -12
- package/utils/pipes/pipe.module.d.ts +0 -16
- package/utils/pipes/safe.pipe.d.ts +0 -12
- package/utils/pipes/search-highlight.pipe.d.ts +0 -8
- package/utils/pipes/truncate.pipe.d.ts +0 -8
- package/utils/pipes/two-digits.pipe.d.ts +0 -8
- package/utils/pipes/value-by-path.pipe.d.ts +0 -8
- package/utils/services/content-density.service.d.ts +0 -19
- package/utils/services/destroyed.service.d.ts +0 -15
- package/utils/services/focus-trap.service.d.ts +0 -43
- package/utils/services/index.d.ts +0 -9
- package/utils/services/keyboard-support/keyboard-support.service.d.ts +0 -32
- package/utils/services/local-storage.service.d.ts +0 -13
- package/utils/services/observers/attribute.observer.d.ts +0 -26
- package/utils/services/resize-observer.service.d.ts +0 -34
- package/utils/services/rtl.service.d.ts +0 -14
- package/utils/services/tabbable-element.service.d.ts +0 -12
- package/utils/toast/base-toast-animations.d.ts +0 -7
- package/utils/toast/base-toast-positions.d.ts +0 -129
- package/utils/toast/base-toast.service.d.ts +0 -148
- package/utils/toast/classes/action-dismissible/base-toast-action-dismissible-ref.d.ts +0 -23
- package/utils/toast/classes/base-toast-animated-container.component.d.ts +0 -41
- package/utils/toast/classes/base-toast-config.d.ts +0 -53
- package/utils/toast/classes/base-toast-container.component.d.ts +0 -55
- package/utils/toast/classes/base-toast-overlay-container.d.ts +0 -16
- package/utils/toast/classes/base-toast-ref.d.ts +0 -35
- package/utils/toast/classes/duration-dismissible/base-toast-duration-dismissible-config.d.ts +0 -15
- package/utils/toast/classes/duration-dismissible/base-toast-duration-dismissible-container.component.d.ts +0 -20
- package/utils/toast/classes/duration-dismissible/base-toast-duration-dismissible-ref.d.ts +0 -20
- package/utils/toast/classes/duration-dismissible/base-toast-duration-dismissible.service.d.ts +0 -11
- package/utils/toast/index.d.ts +0 -15
- package/utils/toast/interfaces/toast-container-component.interface.d.ts +0 -14
- package/utils/toast/interfaces/toast-duration-dismissible-container-component.interface.d.ts +0 -6
- package/utils/toast/interfaces/toast-text-component.interface.d.ts +0 -5
- package/utils/tokens/module-deprecations.token.d.ts +0 -3
- package/utils/tokens/viewport-size.observable.d.ts +0 -8
- package/utils/typecheck.d.ts +0 -47
- package/utils/utils.module.d.ts +0 -25
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ProviderParams } from '../helpers/common';
|
|
3
|
-
import { MatchBy, MatchingBy, MatchingStrategy } from '../models/matching-strategy';
|
|
4
|
-
/**
|
|
5
|
-
* Base data provider class.
|
|
6
|
-
*/
|
|
7
|
-
export declare abstract class AbstractDataProvider<T> {
|
|
8
|
-
/** @hidden */
|
|
9
|
-
abstract fetch(params: ProviderParams, start?: number, end?: number): Observable<T[]>;
|
|
10
|
-
/** @hidden */
|
|
11
|
-
abstract getTotalItems(params?: Map<string, any>): Observable<number>;
|
|
12
|
-
/** @hidden */
|
|
13
|
-
protected _keyPath: string;
|
|
14
|
-
/** @hidden */
|
|
15
|
-
protected _matchingStrategy: MatchingStrategy;
|
|
16
|
-
/** @hidden */
|
|
17
|
-
protected _matchingBy: MatchingBy | null;
|
|
18
|
-
/** @hidden */
|
|
19
|
-
setLookupKey(key: string): void;
|
|
20
|
-
/** @hidden */
|
|
21
|
-
setMatchingBy(matchingBy: MatchingBy): void;
|
|
22
|
-
/** @hidden */
|
|
23
|
-
setMatchingStrategy(strategy: MatchingStrategy): void;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Default data provider class used for other components to extend from.
|
|
27
|
-
*/
|
|
28
|
-
export declare class DataProvider<T> extends AbstractDataProvider<T> {
|
|
29
|
-
protected values: Observable<T[]> | T[];
|
|
30
|
-
/** Default limit for the pagination. */
|
|
31
|
-
defaultLimit: number;
|
|
32
|
-
/** @hidden */
|
|
33
|
-
constructor(values: Observable<T[]> | T[]);
|
|
34
|
-
/** @hidden */
|
|
35
|
-
fetch(params: Map<string, any>): Observable<T[]>;
|
|
36
|
-
/**
|
|
37
|
-
* Returns observable with the number of total items that satisfy the search query.
|
|
38
|
-
* Warning: this is a naive implementation of the number of the filtered items.
|
|
39
|
-
* For real-world scenarios, it is recommended to override this method with its own logic.
|
|
40
|
-
*/
|
|
41
|
-
getTotalItems(params: Map<string, any>): Observable<number>;
|
|
42
|
-
/**
|
|
43
|
-
* Warning: If you don't supply search Key and you want fulltext search, and you use this
|
|
44
|
-
* default implementation, be aware that it can perform poorly as it is a naive implementation
|
|
45
|
-
* that does not do deep compare.
|
|
46
|
-
*/
|
|
47
|
-
matches(item: T, pattern: string): boolean;
|
|
48
|
-
/** @hidden */
|
|
49
|
-
matchesBy(item: any, pattern: string, matchingBy: MatchBy): boolean;
|
|
50
|
-
/** @hidden */
|
|
51
|
-
protected hasObjectValue(obj: any, pattern: string): boolean;
|
|
52
|
-
/** @hidden */
|
|
53
|
-
private withLimit;
|
|
54
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
2
|
-
import { DataSourceProvider } from '../models';
|
|
3
|
-
import { AbstractDataProvider } from './abstract-data-provider.class';
|
|
4
|
-
export declare abstract class BaseDataSource<T> implements DataSourceProvider<T> {
|
|
5
|
-
dataProvider: AbstractDataProvider<any>;
|
|
6
|
-
/**
|
|
7
|
-
* Max limit of items to be returned.
|
|
8
|
-
*/
|
|
9
|
-
static readonly MaxLimit = 5;
|
|
10
|
-
/**
|
|
11
|
-
* Whether to enable limit of max items.
|
|
12
|
-
*/
|
|
13
|
-
limitless: boolean;
|
|
14
|
-
/** @hidden */
|
|
15
|
-
protected readonly _dataChanges$: BehaviorSubject<T[]>;
|
|
16
|
-
/** @hidden */
|
|
17
|
-
protected readonly _dataRequested$: BehaviorSubject<boolean>;
|
|
18
|
-
/** @hidden */
|
|
19
|
-
protected readonly _dataReceived$: BehaviorSubject<boolean>;
|
|
20
|
-
/** @hidden */
|
|
21
|
-
protected readonly _destroy$: Subject<void>;
|
|
22
|
-
/** @hidden */
|
|
23
|
-
protected readonly _dataLoading$: BehaviorSubject<boolean>;
|
|
24
|
-
/**
|
|
25
|
-
* Emitted when new data has been requested.
|
|
26
|
-
* @returns Observable
|
|
27
|
-
*/
|
|
28
|
-
get dataRequested(): Observable<boolean>;
|
|
29
|
-
/**
|
|
30
|
-
* Emitted when new data has been received.
|
|
31
|
-
* @returns Observable
|
|
32
|
-
*/
|
|
33
|
-
get dataReceived(): Observable<boolean>;
|
|
34
|
-
/**
|
|
35
|
-
* Emitted when loading state has been changed.
|
|
36
|
-
* @returns Observable.
|
|
37
|
-
*/
|
|
38
|
-
get dataLoading(): Observable<boolean>;
|
|
39
|
-
/**
|
|
40
|
-
* Emits when the data from the provider has been changed.
|
|
41
|
-
* @returns Observable of data source objects.
|
|
42
|
-
*/
|
|
43
|
-
get dataChanges(): Observable<T[]>;
|
|
44
|
-
/** @hidden */
|
|
45
|
-
protected constructor(dataProvider: AbstractDataProvider<any>);
|
|
46
|
-
/**
|
|
47
|
-
* Searches through the data source with defined parameters.
|
|
48
|
-
* @param predicate Search query.
|
|
49
|
-
* @param start start index.
|
|
50
|
-
* @param end end index.
|
|
51
|
-
*/
|
|
52
|
-
match(predicate?: string | Map<string, string>, start?: number, end?: number): void;
|
|
53
|
-
/**
|
|
54
|
-
* Returns the Observable of a total items number filtered by the `predicate` param.
|
|
55
|
-
* @param predicate Search query.
|
|
56
|
-
*/
|
|
57
|
-
getTotalItems(predicate?: string | Map<string, string>): Observable<number>;
|
|
58
|
-
/**
|
|
59
|
-
* Closes the stream
|
|
60
|
-
*/
|
|
61
|
-
unsubscribe(): void;
|
|
62
|
-
/** @hidden */
|
|
63
|
-
private _getSearchParams;
|
|
64
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { DestroyRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { DataSource, DataSourceProvider } from './models';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class DataSourceDirective<T = any, P extends DataSourceProvider<T> = DataSourceProvider<T>> implements OnDestroy {
|
|
6
|
-
/**
|
|
7
|
-
* Emits when the data source object has been changed.
|
|
8
|
-
*/
|
|
9
|
-
readonly dataSourceChanged: EventEmitter<void>;
|
|
10
|
-
/**
|
|
11
|
-
* Event emitted when datasource content has been changed.
|
|
12
|
-
*/
|
|
13
|
-
readonly dataChanged: EventEmitter<T[]>;
|
|
14
|
-
/**
|
|
15
|
-
* Event emitted when data provider loading state has been changed.
|
|
16
|
-
*/
|
|
17
|
-
readonly isLoading: EventEmitter<boolean>;
|
|
18
|
-
/**
|
|
19
|
-
* Data source.
|
|
20
|
-
* @param source
|
|
21
|
-
*/
|
|
22
|
-
set dataSource(source: DataSource<T, P> | null);
|
|
23
|
-
get dataSource(): DataSource<T, P> | null;
|
|
24
|
-
/** @hidden */
|
|
25
|
-
dataSourceProvider: P | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Data stream. Emits when new data retrieved.
|
|
28
|
-
*/
|
|
29
|
-
readonly dataChanged$: BehaviorSubject<T[]>;
|
|
30
|
-
/** @hidden */
|
|
31
|
-
protected readonly _destroyRef: DestroyRef;
|
|
32
|
-
/** @hidden */
|
|
33
|
-
private _dataSource;
|
|
34
|
-
/** @hidden */
|
|
35
|
-
private _dsSubscription;
|
|
36
|
-
/** @hidden */
|
|
37
|
-
private readonly _dataSourceTransformer;
|
|
38
|
-
/** @hidden */
|
|
39
|
-
ngOnDestroy(): void;
|
|
40
|
-
/** @Hidden */
|
|
41
|
-
protected _toDataStream(source: DataSource<T> | null): P | undefined;
|
|
42
|
-
/** @hidden */
|
|
43
|
-
private _initializeDataSource;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DataSourceDirective<any, any>, never>;
|
|
45
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DataSourceDirective<any, any>, "[fdkDataSource]", never, { "dataSource": { "alias": "dataSource"; "required": false; }; }, { "dataSourceChanged": "dataSourceChanged"; "dataChanged": "dataChanged"; "isLoading": "isLoading"; }, never, never, true, never>;
|
|
46
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./data-source.directive";
|
|
3
|
-
export declare class DataSourceModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DataSourceModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DataSourceModule, never, [typeof i1.DataSourceDirective], [typeof i1.DataSourceDirective]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DataSourceModule>;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type ProviderParams = ReadonlyMap<string, any>;
|
|
2
|
-
/** @Hidden */
|
|
3
|
-
export declare function getMatchingStrategyStartsWithPerTermReqexp(value: string): RegExp;
|
|
4
|
-
/** @hidden */
|
|
5
|
-
export declare function objectValues(obj: any): any[];
|
|
6
|
-
/** @hidden */
|
|
7
|
-
export declare function objectToName(target: any): string;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
/**
|
|
3
|
-
* Data source provider class controls the data stream.
|
|
4
|
-
*/
|
|
5
|
-
export interface DataSourceProvider<T = any> {
|
|
6
|
-
/**
|
|
7
|
-
* Stream emits when new data has been requested.
|
|
8
|
-
*/
|
|
9
|
-
dataRequested: Observable<boolean>;
|
|
10
|
-
/**
|
|
11
|
-
* Stream emits when new data has been loaded.
|
|
12
|
-
*/
|
|
13
|
-
dataReceived: Observable<boolean>;
|
|
14
|
-
/**
|
|
15
|
-
* Stream emits when loading state has been changed.
|
|
16
|
-
*/
|
|
17
|
-
dataLoading: Observable<boolean>;
|
|
18
|
-
/** Stream emits when data changed. */
|
|
19
|
-
dataChanges: Observable<T[]>;
|
|
20
|
-
/** Closes the data stream. */
|
|
21
|
-
unsubscribe(): void;
|
|
22
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { DataSourceProvider } from './data-source-provider';
|
|
3
|
-
/**
|
|
4
|
-
* Acceptable data source types.
|
|
5
|
-
*/
|
|
6
|
-
export type DataSource<T = any, P extends DataSourceProvider<T> = DataSourceProvider<T>> = P | Observable<T[]> | T[];
|
|
7
|
-
/**
|
|
8
|
-
* Data source parser is a special class that parses incoming data into appropriate data source provider.
|
|
9
|
-
*/
|
|
10
|
-
export interface DataSourceParser<T = any, P extends DataSourceProvider<T> = DataSourceProvider<T>> {
|
|
11
|
-
/**
|
|
12
|
-
* Defines which data provider class to initiate.
|
|
13
|
-
* @param source data source to be parsed.
|
|
14
|
-
*/
|
|
15
|
-
parse(source: DataSource<T>): P | undefined;
|
|
16
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare enum MatchingStrategy {
|
|
2
|
-
STARTS_WITH_PER_TERM = "starts with per term",
|
|
3
|
-
STARTS_WITH = "starts with",
|
|
4
|
-
CONTAINS = "contains"
|
|
5
|
-
}
|
|
6
|
-
export type MatchBy = (item: any) => any;
|
|
7
|
-
export interface MatchingBy {
|
|
8
|
-
firstBy: MatchBy;
|
|
9
|
-
secondaryBy?: MatchBy;
|
|
10
|
-
}
|
package/data-source/tokens.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { DataSourceParser } from './models/data-source';
|
|
3
|
-
/**
|
|
4
|
-
* Injection token used for passing custom datasource transformer into DataSourceProvider.
|
|
5
|
-
*/
|
|
6
|
-
export declare const FD_DATA_SOURCE_TRANSFORMER: InjectionToken<DataSourceParser<any, import("@fundamental-ngx/cdk/data-source").DataSourceProvider<any>>>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, DestroyRef } from '@angular/core';
|
|
2
|
-
import { CvaDirective } from './cva.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Base ControlValueAccessor control class.
|
|
6
|
-
* Used in conjunction with CvaDirective.
|
|
7
|
-
*
|
|
8
|
-
* This class performs generic change detection based on `CvaDirective` outputs.
|
|
9
|
-
*/
|
|
10
|
-
export declare class CvaControl<T> {
|
|
11
|
-
/**
|
|
12
|
-
* Control value accessor directive instance.
|
|
13
|
-
*/
|
|
14
|
-
cvaDirective: CvaDirective<T> | null;
|
|
15
|
-
/**
|
|
16
|
-
* Change detector instance.
|
|
17
|
-
*/
|
|
18
|
-
protected _changeDetector: ChangeDetectorRef;
|
|
19
|
-
/** @Hidden */
|
|
20
|
-
protected _destroyRef: DestroyRef;
|
|
21
|
-
/** @hidden */
|
|
22
|
-
listenToChanges(): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CvaControl<any>, never>;
|
|
24
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CvaControl<any>>;
|
|
25
|
-
}
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
-
import { AfterViewInit, DoCheck, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
3
|
-
import { ControlContainer, ControlValueAccessor, NgControl, NgForm } from '@angular/forms';
|
|
4
|
-
import { HasElementRef, Nullable } from '@fundamental-ngx/cdk/utils';
|
|
5
|
-
import { Subject, Subscription } from 'rxjs';
|
|
6
|
-
import { BaseCVA } from '../models/cva';
|
|
7
|
-
import { FormField, FormFieldControl } from '../models/form-field';
|
|
8
|
-
import { FormStates } from '../models/form-state';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class CvaDirective<T = any> implements HasElementRef, BaseCVA, FormFieldControl, OnInit, DoCheck, AfterViewInit, OnDestroy, ControlValueAccessor {
|
|
11
|
-
/** Input placeholder */
|
|
12
|
-
placeholder: string;
|
|
13
|
-
/**
|
|
14
|
-
* The state of the form control - applies css classes.
|
|
15
|
-
* Can be 'success', 'error', 'warning', 'default', 'information'.
|
|
16
|
-
*
|
|
17
|
-
* @default 'default'
|
|
18
|
-
*/
|
|
19
|
-
set state(state: Nullable<FormStates>);
|
|
20
|
-
get state(): FormStates;
|
|
21
|
-
/** Holds the message with respect to state */
|
|
22
|
-
stateMessage: Nullable<string>;
|
|
23
|
-
/** Whether the input is disabled */
|
|
24
|
-
set disabled(value: boolean);
|
|
25
|
-
get disabled(): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* readOnly Value to Mark component read only
|
|
28
|
-
*/
|
|
29
|
-
readonly: boolean;
|
|
30
|
-
/** Binds to control aria-labelledBy attribute */
|
|
31
|
-
ariaLabelledBy: Nullable<string>;
|
|
32
|
-
/** Sets control aria-label attribute value */
|
|
33
|
-
ariaLabel: Nullable<string>;
|
|
34
|
-
/**
|
|
35
|
-
* Tell the component if we are in editing mode.
|
|
36
|
-
*/
|
|
37
|
-
set editable(value: BooleanInput);
|
|
38
|
-
get editable(): boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Name of the control.
|
|
41
|
-
*/
|
|
42
|
-
name: string;
|
|
43
|
-
/**
|
|
44
|
-
* Emits when change detection is needed.
|
|
45
|
-
*/
|
|
46
|
-
detectChanges: EventEmitter<void>;
|
|
47
|
-
/**
|
|
48
|
-
* Emits when mark for changes detection is needed.
|
|
49
|
-
*/
|
|
50
|
-
markForCheck: EventEmitter<void>;
|
|
51
|
-
/**
|
|
52
|
-
* Reference to internal Input element
|
|
53
|
-
*/
|
|
54
|
-
protected _elementRef: ElementRef;
|
|
55
|
-
/** @hidden */
|
|
56
|
-
value: T;
|
|
57
|
-
/** set when input field is mandatory form field */
|
|
58
|
-
required: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* See @FormFieldControl
|
|
61
|
-
*/
|
|
62
|
-
focused: boolean;
|
|
63
|
-
/** Whether control has errors */
|
|
64
|
-
get controlInvalid(): boolean;
|
|
65
|
-
/**
|
|
66
|
-
* See @FormFieldControl
|
|
67
|
-
*/
|
|
68
|
-
readonly stateChanges: Subject<any>;
|
|
69
|
-
/** @hidden */
|
|
70
|
-
readonly formField: FormField | null;
|
|
71
|
-
/**
|
|
72
|
-
* NgControl instance.
|
|
73
|
-
*/
|
|
74
|
-
readonly ngControl: NgControl | null;
|
|
75
|
-
/**
|
|
76
|
-
* Form container instance. Usually ngForm or FormGroup directives.
|
|
77
|
-
*/
|
|
78
|
-
readonly controlContainer: ControlContainer | null;
|
|
79
|
-
/**
|
|
80
|
-
* Separate NgForm instance. For cases when formGroup is used with the form itself.
|
|
81
|
-
*/
|
|
82
|
-
readonly ngForm: NgForm | null;
|
|
83
|
-
/** @hidden */
|
|
84
|
-
readonly normalizedState$: import("@angular/core").Signal<"success" | "error" | "warning" | "default" | "information">;
|
|
85
|
-
/** @hidden */
|
|
86
|
-
protected _subscriptions: Subscription;
|
|
87
|
-
/**
|
|
88
|
-
* A private property to hold the ElementRef which might be null
|
|
89
|
-
*/
|
|
90
|
-
private _elementRefOrNull;
|
|
91
|
-
/**
|
|
92
|
-
* Element reference.
|
|
93
|
-
*/
|
|
94
|
-
get elementRef(): ElementRef;
|
|
95
|
-
/** @hidden */
|
|
96
|
-
private _defaultId;
|
|
97
|
-
/** ID for the Element */
|
|
98
|
-
id: string;
|
|
99
|
-
/** @hidden */
|
|
100
|
-
private _disabled;
|
|
101
|
-
/** @hidden */
|
|
102
|
-
private _editable;
|
|
103
|
-
/**
|
|
104
|
-
* @hidden
|
|
105
|
-
*/
|
|
106
|
-
private readonly _controlInvalid$;
|
|
107
|
-
/** @hidden */
|
|
108
|
-
private readonly _parentControl;
|
|
109
|
-
/**
|
|
110
|
-
* @hidden
|
|
111
|
-
* The state of the form control - applies css classes.
|
|
112
|
-
* Can be `success`, `error`, `warning`, `information` or 'default'
|
|
113
|
-
*/
|
|
114
|
-
private readonly _state$;
|
|
115
|
-
/** @hidden */
|
|
116
|
-
constructor();
|
|
117
|
-
/** @hidden */
|
|
118
|
-
onChange: (value: any) => void;
|
|
119
|
-
/** @hidden */
|
|
120
|
-
onTouched: () => void;
|
|
121
|
-
/** @hidden */
|
|
122
|
-
ngOnInit(): void;
|
|
123
|
-
/**
|
|
124
|
-
* Re-validate and emit event to parent container on every CD cycle as they are some errors
|
|
125
|
-
* that we can't subscribe to.
|
|
126
|
-
*/
|
|
127
|
-
ngDoCheck(): void;
|
|
128
|
-
/** @hidden */
|
|
129
|
-
ngAfterViewInit(): void;
|
|
130
|
-
/** @hidden */
|
|
131
|
-
registerOnChange(fn: (_: any) => void): void;
|
|
132
|
-
/** @hidden */
|
|
133
|
-
registerOnTouched(fn: () => void): void;
|
|
134
|
-
/** @hidden */
|
|
135
|
-
ngOnDestroy(): void;
|
|
136
|
-
/** @hidden */
|
|
137
|
-
setDisabledState(isDisabled: BooleanInput): void;
|
|
138
|
-
/**
|
|
139
|
-
* Method for setting the value
|
|
140
|
-
* @param value
|
|
141
|
-
*/
|
|
142
|
-
writeValue(value: T): void;
|
|
143
|
-
/**
|
|
144
|
-
*
|
|
145
|
-
* Keeps track of element focus
|
|
146
|
-
*/
|
|
147
|
-
_onFocusChanged(isFocused: boolean): void;
|
|
148
|
-
/**
|
|
149
|
-
* Handles even when we click on parent container which is the FormField Wrapping this
|
|
150
|
-
* control
|
|
151
|
-
*/
|
|
152
|
-
onContainerClick(event: MouseEvent): void;
|
|
153
|
-
/**
|
|
154
|
-
* In most of the cases when working with input element directly you should be just find to assign
|
|
155
|
-
* variable to this element
|
|
156
|
-
*
|
|
157
|
-
* ```
|
|
158
|
-
* <input #inputElementRef fd-form-control ...>
|
|
159
|
-
* ```
|
|
160
|
-
*
|
|
161
|
-
* and this default behavior used. For other cases implement focus.
|
|
162
|
-
*
|
|
163
|
-
*/
|
|
164
|
-
focus(event?: MouseEvent): void;
|
|
165
|
-
/**
|
|
166
|
-
* Need re-validates errors on every CD iteration to make sure we are also
|
|
167
|
-
* covering non-control errors, errors that happens outside of this control
|
|
168
|
-
*/
|
|
169
|
-
updateErrorState(): void;
|
|
170
|
-
/**
|
|
171
|
-
* Used to change the value of a control.
|
|
172
|
-
* @param value the value to be applied
|
|
173
|
-
* @param emitOnChange whether to emit "onChange" event.
|
|
174
|
-
* Should be "false", if the change is made programmatically (internally) by the control, "true" otherwise
|
|
175
|
-
*/
|
|
176
|
-
setValue(value: T, emitOnChange?: boolean): void;
|
|
177
|
-
/** @hidden */
|
|
178
|
-
private _markForCheck;
|
|
179
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CvaDirective<any>, never>;
|
|
180
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CvaDirective<any>, "[fdkCva]", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "state": { "alias": "state"; "required": false; }; "stateMessage": { "alias": "stateMessage"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, { "detectChanges": "detectChanges"; "markForCheck": "markForCheck"; }, never, never, true, never>;
|
|
181
|
-
}
|
package/forms/forms.module.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./cva/cva.directive";
|
|
3
|
-
export declare class FormsModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormsModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormsModule, never, [typeof i1.CvaDirective], [typeof i1.CvaDirective]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormsModule>;
|
|
7
|
-
}
|
package/forms/helpers/state.d.ts
DELETED
package/forms/models/cva.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import { Nullable } from '@fundamental-ngx/cdk/utils';
|
|
3
|
-
import { Subject } from 'rxjs';
|
|
4
|
-
import { FormStates } from './form-state';
|
|
5
|
-
export interface FormFieldErrorContext<T> {
|
|
6
|
-
label: string;
|
|
7
|
-
$implicit: T;
|
|
8
|
-
}
|
|
9
|
-
export interface FormError<T = any> {
|
|
10
|
-
detectChanges$: Subject<void>;
|
|
11
|
-
fdpFormFieldErrorAs: T;
|
|
12
|
-
type: FormStates;
|
|
13
|
-
error: string;
|
|
14
|
-
_headingTemplateRef: TemplateRef<FormFieldErrorContext<T>>;
|
|
15
|
-
_descriptionTemplateRef: TemplateRef<FormFieldErrorContext<T>> | null;
|
|
16
|
-
templateRef: TemplateRef<FormFieldErrorContext<T>>;
|
|
17
|
-
registerHeading: (heading: FormErrorHeading) => void;
|
|
18
|
-
registerDescription: (description: FormErrorDescription) => void;
|
|
19
|
-
}
|
|
20
|
-
export interface FormErrorHeading<T = any> {
|
|
21
|
-
fdpFormFieldErrorHeadingAs: T;
|
|
22
|
-
fdpFormFieldErrorHeadingType?: FormStates;
|
|
23
|
-
templateRef: TemplateRef<FormFieldErrorContext<T>>;
|
|
24
|
-
}
|
|
25
|
-
export interface FormErrorDescription<T = any> {
|
|
26
|
-
fdpFormFieldErrorDescriptionAs: T;
|
|
27
|
-
templateRef: TemplateRef<FormFieldErrorContext<T>>;
|
|
28
|
-
}
|
|
29
|
-
export interface FormFieldErrorDirectiveContext {
|
|
30
|
-
directive: FormError;
|
|
31
|
-
error: any;
|
|
32
|
-
}
|
|
33
|
-
export interface FormFieldAdvancedStateMessage {
|
|
34
|
-
template: Nullable<TemplateRef<any>>;
|
|
35
|
-
hasErrors: boolean;
|
|
36
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { ElementRef, QueryList } from '@angular/core';
|
|
2
|
-
import { NgControl } from '@angular/forms';
|
|
3
|
-
import { Nullable } from '@fundamental-ngx/cdk/utils';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { FormError } from './form-error';
|
|
6
|
-
import { FormStates } from './form-state';
|
|
7
|
-
/**
|
|
8
|
-
* FormField base class.
|
|
9
|
-
*
|
|
10
|
-
* This class is used to create form field components.
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
export declare abstract class FormField {
|
|
14
|
-
/**
|
|
15
|
-
* Register underlying form control
|
|
16
|
-
*/
|
|
17
|
-
registerFormFieldControl: (control: FormFieldControl) => void;
|
|
18
|
-
/**
|
|
19
|
-
* Unregister underlying form control
|
|
20
|
-
*/
|
|
21
|
-
unregisterFormFieldControl: (control: FormFieldControl) => void;
|
|
22
|
-
/**
|
|
23
|
-
* Set default columns layout
|
|
24
|
-
*/
|
|
25
|
-
setDefaultColumnLayout: () => void;
|
|
26
|
-
/** Gets field error priority state. */
|
|
27
|
-
getPriorityState: () => FormStates;
|
|
28
|
-
/** Groups errors. */
|
|
29
|
-
groupErrors: () => void;
|
|
30
|
-
/** Sets error directives from parent container */
|
|
31
|
-
setErrorDirectives: (directives: QueryList<FormError>) => void;
|
|
32
|
-
}
|
|
33
|
-
export interface FormFieldControl<T = any> {
|
|
34
|
-
/**
|
|
35
|
-
* Each input control has always a value. Need to make sure we keep a convention for
|
|
36
|
-
* input fields
|
|
37
|
-
*/
|
|
38
|
-
value: T | null;
|
|
39
|
-
/**
|
|
40
|
-
* Need to have a way to set placeholder to the input
|
|
41
|
-
*/
|
|
42
|
-
placeholder: string;
|
|
43
|
-
/**
|
|
44
|
-
* Need to have a way to set Mandatory to the input field
|
|
45
|
-
*/
|
|
46
|
-
required: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Sets id from FF to Input
|
|
49
|
-
*/
|
|
50
|
-
id: string;
|
|
51
|
-
/**
|
|
52
|
-
* This should be coming from Parent.
|
|
53
|
-
*/
|
|
54
|
-
editable: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* The height of the extra content at the bottom of the form control,
|
|
57
|
-
* which should not affect the alignment of form control and it's label
|
|
58
|
-
*/
|
|
59
|
-
extraContentHeightPx?: number;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* Form Field listen for all the changes happening inside the input
|
|
63
|
-
*/
|
|
64
|
-
stateChanges: Observable<void>;
|
|
65
|
-
/**
|
|
66
|
-
* Each input should inject its own ngControl and we should retrieve it
|
|
67
|
-
*/
|
|
68
|
-
ngControl: NgControl | null;
|
|
69
|
-
/** Whether the control is disabled. */
|
|
70
|
-
disabled: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Keeps track if the form element is in focus
|
|
73
|
-
*/
|
|
74
|
-
focused: boolean;
|
|
75
|
-
/** Whether control has errors */
|
|
76
|
-
controlInvalid: boolean;
|
|
77
|
-
/** Corresponding element reference. */
|
|
78
|
-
elementRef: ElementRef;
|
|
79
|
-
/** Form field instance. */
|
|
80
|
-
formField: Nullable<FormField>;
|
|
81
|
-
/** Method for focusing on the element */
|
|
82
|
-
focus(event?: MouseEvent): void;
|
|
83
|
-
/**
|
|
84
|
-
* Handles even when we click on parent container which is the FormField Wrapping this
|
|
85
|
-
* control
|
|
86
|
-
*/
|
|
87
|
-
onContainerClick(event: MouseEvent): void;
|
|
88
|
-
}
|