@i-cell/ids-angular 0.1.6 → 0.1.8
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/core/public-api.d.ts +1 -1
- package/core/utils/date.d.ts +24 -0
- package/core/utils/number.d.ts +4 -0
- package/datepicker/calendar/calendar-page.d.ts +26 -0
- package/datepicker/calendar/calendar.component.d.ts +40 -0
- package/datepicker/datepicker-defaults.d.ts +7 -0
- package/datepicker/datepicker-intl.d.ts +22 -0
- package/datepicker/datepicker-positions.d.ts +2 -0
- package/datepicker/datepicker.directive.d.ts +58 -0
- package/datepicker/day-selector/day-selector.component.d.ts +26 -0
- package/datepicker/index.d.ts +5 -0
- package/datepicker/month-selector/month-selector.component.d.ts +20 -0
- package/datepicker/public-api.d.ts +7 -0
- package/datepicker/tokens/date-formatter.d.ts +3 -0
- package/datepicker/tokens/date-parser.d.ts +3 -0
- package/datepicker/tokens/datepicker-view.d.ts +6 -0
- package/datepicker/trigger/datepicker-trigger.component.d.ts +12 -0
- package/datepicker/year-selector/year-selector.component.d.ts +20 -0
- package/fesm2022/i-cell-ids-angular-core.mjs +156 -13
- package/fesm2022/i-cell-ids-angular-core.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-datepicker.mjs +860 -0
- package/fesm2022/i-cell-ids-angular-datepicker.mjs.map +1 -0
- package/fesm2022/i-cell-ids-angular-forms.mjs +79 -66
- package/fesm2022/i-cell-ids-angular-forms.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-select.mjs +18 -63
- package/fesm2022/i-cell-ids-angular-select.mjs.map +1 -1
- package/forms/components/form-field/form-field-control.d.ts +41 -17
- package/forms/components/form-field/form-field.component.d.ts +2 -1
- package/forms/components/form-field/tokens/form-field-control.d.ts +1 -1
- package/forms/components/input/input.directive.d.ts +7 -36
- package/package.json +6 -2
- package/select/select.component.d.ts +8 -37
- package/core/utils/even-odd.d.ts +0 -2
|
@@ -1,52 +1,30 @@
|
|
|
1
1
|
import { IdsSelectDefaultConfig } from './select-defaults';
|
|
2
2
|
import { IdsSelectTriggerDirective } from './select-trigger.directive';
|
|
3
3
|
import { CdkOverlayOrigin } from '@angular/cdk/overlay';
|
|
4
|
-
import {
|
|
5
|
-
import { ControlValueAccessor
|
|
6
|
-
import {
|
|
7
|
-
import { IdsFormFieldControl, IdsOptionComponent, IdsOptionGroupComponent, AbstractSuccessStateMatcher, AbstractErrorStateMatcher } from '@i-cell/ids-angular/forms';
|
|
8
|
-
import { Subject } from 'rxjs';
|
|
4
|
+
import { AfterContentInit, AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
5
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
6
|
+
import { AbstractErrorStateMatcher, AbstractSuccessStateMatcher, IdsFormFieldControl, IdsOptionComponent, IdsOptionGroupComponent } from '@i-cell/ids-angular/forms';
|
|
9
7
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class IdsSelectComponent extends
|
|
8
|
+
export declare class IdsSelectComponent extends IdsFormFieldControl<IdsSelectDefaultConfig> implements ControlValueAccessor, OnInit, AfterContentInit, AfterViewInit, OnDestroy {
|
|
11
9
|
protected get _hostName(): string;
|
|
12
10
|
protected readonly _defaultConfig: Required<IdsSelectDefaultConfig>;
|
|
13
|
-
|
|
14
|
-
private readonly _elementRef;
|
|
11
|
+
protected readonly _elementRef: ElementRef<any>;
|
|
15
12
|
private readonly _changeDetectorRef;
|
|
16
13
|
private readonly _liveAnnouncer;
|
|
17
14
|
private readonly _parentFormField;
|
|
18
|
-
private readonly _parentForm;
|
|
19
|
-
private readonly _parentFormGroup;
|
|
20
15
|
protected readonly _connectedPositions: import("@angular/cdk/overlay").ConnectedPosition[];
|
|
21
|
-
readonly errorStateChanges: Subject<void>;
|
|
22
|
-
readonly successStateChanges: Subject<void>;
|
|
23
16
|
protected _preferredOverlayOrigin: CdkOverlayOrigin | ElementRef | undefined;
|
|
24
17
|
protected _overlayWidth: string | number;
|
|
25
18
|
multiSelect: import("@angular/core").InputSignal<boolean>;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
29
|
-
canHandleSuccessState: import("@angular/core").InputSignal<boolean>;
|
|
30
|
-
errorStateMatcher: import("@angular/core").InputSignal<AbstractErrorStateMatcher>;
|
|
31
|
-
successStateMatcher: import("@angular/core").InputSignal<AbstractSuccessStateMatcher>;
|
|
19
|
+
readonly errorStateMatcher: import("@angular/core").InputSignal<AbstractErrorStateMatcher>;
|
|
20
|
+
readonly successStateMatcher: import("@angular/core").InputSignal<AbstractSuccessStateMatcher>;
|
|
32
21
|
ariaLabel: import("@angular/core").InputSignal<string>;
|
|
33
22
|
ariaLabelledby: import("@angular/core").InputSignal<string>;
|
|
34
23
|
valueCompareFn: import("@angular/core").InputSignal<(o1: unknown, o2: unknown) => boolean>;
|
|
35
24
|
sortCompareFn: import("@angular/core").InputSignal<((a: IdsOptionComponent, b: IdsOptionComponent, options: Readonly<IdsOptionComponent[]>) => number) | undefined>;
|
|
36
25
|
tabIndex: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
37
26
|
typeaheadDebounceInterval: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
38
|
-
ngControl: import("@angular/core").WritableSignal<NgControl | null>;
|
|
39
|
-
/** Handles the `disabled` input binding */
|
|
40
|
-
disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
41
|
-
/** Stores the `disabled` state internally */
|
|
42
|
-
private _disabled;
|
|
43
|
-
/** The input's `disabled` state as a read-only signal (to enable/disable the contol programmatically, use the FormControl's related API) */
|
|
44
|
-
disabled: import("@angular/core").Signal<boolean>;
|
|
45
|
-
/** This effect is triggered if the `disabled` attribute binding changes and delegates the change to the underlying FormControl */
|
|
46
|
-
private _disabledInputEffect;
|
|
47
27
|
isPanelOpen: import("@angular/core").WritableSignal<boolean>;
|
|
48
|
-
hasErrorState: import("@angular/core").WritableSignal<boolean>;
|
|
49
|
-
hasSuccessState: import("@angular/core").WritableSignal<boolean>;
|
|
50
28
|
parentSize: import("@angular/core").Signal<import("@i-cell/ids-angular").IdsSizeType>;
|
|
51
29
|
parentVariant: import("@angular/core").Signal<import("@i-cell/ids-angular").IdsFormFieldVariantType>;
|
|
52
30
|
private _focused;
|
|
@@ -58,10 +36,6 @@ export declare class IdsSelectComponent extends ComponentBaseWithDefaults<IdsSel
|
|
|
58
36
|
options: import("@angular/core").Signal<readonly IdsOptionComponent<unknown>[]>;
|
|
59
37
|
optionGroups: import("@angular/core").Signal<readonly IdsOptionGroupComponent[]>;
|
|
60
38
|
protected _customTrigger: import("@angular/core").Signal<IdsSelectTriggerDirective | undefined>;
|
|
61
|
-
private _errorStateTracker?;
|
|
62
|
-
private _successStateTracker?;
|
|
63
|
-
private _successStateSubscription?;
|
|
64
|
-
private _canHandleSuccessStateEffect;
|
|
65
39
|
private _keyManager?;
|
|
66
40
|
private _rawValue;
|
|
67
41
|
private _selectionModel?;
|
|
@@ -76,8 +50,6 @@ export declare class IdsSelectComponent extends ComponentBaseWithDefaults<IdsSel
|
|
|
76
50
|
ngAfterViewInit(): void;
|
|
77
51
|
updateErrorAndSuccessState(): void;
|
|
78
52
|
ngOnDestroy(): void;
|
|
79
|
-
private _initErrorStateTracker;
|
|
80
|
-
protected _setSuccessStateTracker(canHandleSuccessState: boolean): void;
|
|
81
53
|
private _initKeyManager;
|
|
82
54
|
private _subscribeOptionChanges;
|
|
83
55
|
private _handleOptionChange;
|
|
@@ -103,12 +75,11 @@ export declare class IdsSelectComponent extends ComponentBaseWithDefaults<IdsSel
|
|
|
103
75
|
private _skipPredicate;
|
|
104
76
|
private _highlightCorrectOption;
|
|
105
77
|
isOptionPreSelectedByValue(optionValue: unknown): boolean;
|
|
106
|
-
setDescribedByIds(ids: string[]): void;
|
|
107
78
|
private _onFocus;
|
|
108
79
|
private _onBlur;
|
|
109
80
|
private _getAriaActiveDescendant;
|
|
110
81
|
focus(options?: FocusOptions): void;
|
|
111
82
|
onContainerClick: () => void;
|
|
112
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<IdsSelectComponent, never>;
|
|
113
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IdsSelectComponent, "ids-select[ngModel]:not([formControl]):not([formControlName]), ids-select[formControl]:not([ngModel]):not([formControlName]), ids-select[formControlName]:not([ngModel]):not([formControl])", never, { "multiSelect": { "alias": "multiSelect"; "required": false; "isSignal": true; }; "
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IdsSelectComponent, "ids-select[ngModel]:not([formControl]):not([formControlName]), ids-select[formControl]:not([ngModel]):not([formControlName]), ids-select[formControlName]:not([ngModel]):not([formControl])", never, { "multiSelect": { "alias": "multiSelect"; "required": false; "isSignal": true; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; "isSignal": true; }; "successStateMatcher": { "alias": "successStateMatcher"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "valueCompareFn": { "alias": "valueCompareFn"; "required": false; "isSignal": true; }; "sortCompareFn": { "alias": "sortCompareFn"; "required": false; "isSignal": true; }; "tabIndex": { "alias": "tabIndex"; "required": false; "isSignal": true; }; "typeaheadDebounceInterval": { "alias": "typeaheadDebounceInterval"; "required": false; "isSignal": true; }; }, {}, ["options", "optionGroups", "_customTrigger"], ["ids-select-trigger", "*"], true, never>;
|
|
114
85
|
}
|
package/core/utils/even-odd.d.ts
DELETED