@tedi-design-system/angular 6.3.0-rc.10 → 6.3.0-rc.11
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/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConnectedPosition } from "@angular/cdk/overlay";
|
|
1
|
+
import { CdkConnectedOverlay, ConnectedPosition } from "@angular/cdk/overlay";
|
|
2
2
|
import { CdkListbox } from "@angular/cdk/listbox";
|
|
3
3
|
import { AfterContentChecked, AfterViewChecked, ElementRef } from "@angular/core";
|
|
4
4
|
import { ControlValueAccessor } from "@angular/forms";
|
|
@@ -152,6 +152,12 @@ export declare class SelectComponent<T = unknown> implements AfterContentChecked
|
|
|
152
152
|
* @default false
|
|
153
153
|
*/
|
|
154
154
|
searchable: import("@angular/core").InputSignal<boolean>;
|
|
155
|
+
/**
|
|
156
|
+
* Custom search function for filtering options.
|
|
157
|
+
* When provided, overrides the default label-based search.
|
|
158
|
+
* Receives the search term and the option item (with all original properties), returns true to include the option.
|
|
159
|
+
*/
|
|
160
|
+
searchFn: import("@angular/core").InputSignal<((term: string, item: T) => boolean) | undefined>;
|
|
155
161
|
readonly SpecialOptionControls: typeof SpecialOptionControls;
|
|
156
162
|
readonly dropdownPositions: ConnectedPosition[];
|
|
157
163
|
listboxId: import("@angular/core").Signal<string>;
|
|
@@ -167,6 +173,7 @@ export declare class SelectComponent<T = unknown> implements AfterContentChecked
|
|
|
167
173
|
hiddenTagsCount: import("@angular/core").Signal<number>;
|
|
168
174
|
listboxRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
169
175
|
cdkListboxRef: import("@angular/core").Signal<CdkListbox<any> | undefined>;
|
|
176
|
+
connectedOverlay: import("@angular/core").Signal<CdkConnectedOverlay | undefined>;
|
|
170
177
|
triggerRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
171
178
|
searchInputRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
172
179
|
multiselectContainerRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
@@ -183,6 +190,7 @@ export declare class SelectComponent<T = unknown> implements AfterContentChecked
|
|
|
183
190
|
selectedLabels: import("@angular/core").Signal<string[]>;
|
|
184
191
|
showSingleSelectedValue: import("@angular/core").Signal<boolean>;
|
|
185
192
|
allOptionsSelected: import("@angular/core").Signal<boolean>;
|
|
193
|
+
someOptionsSelected: import("@angular/core").Signal<boolean>;
|
|
186
194
|
ngAfterContentChecked(): void;
|
|
187
195
|
ngAfterViewChecked(): void;
|
|
188
196
|
onWindowResize(): void;
|
|
@@ -195,6 +203,7 @@ export declare class SelectComponent<T = unknown> implements AfterContentChecked
|
|
|
195
203
|
onSearchFocus(): void;
|
|
196
204
|
onSearchBlur(): void;
|
|
197
205
|
onTriggerClick(): void;
|
|
206
|
+
onArrowClick(event: Event): void;
|
|
198
207
|
onTriggerEnter(): void;
|
|
199
208
|
onSearchKeydown(event: KeyboardEvent): void;
|
|
200
209
|
private static readonly KEY_CODES;
|
|
@@ -233,6 +242,6 @@ export declare class SelectComponent<T = unknown> implements AfterContentChecked
|
|
|
233
242
|
registerOnTouched(fn: () => void): void;
|
|
234
243
|
setDisabledState(isDisabled: boolean): void;
|
|
235
244
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent<any>, never>;
|
|
236
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent<any>, "tedi-select", never, { "inputId": { "alias": "inputId"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "dropdownWidthRef": { "alias": "dropdownWidthRef"; "required": false; "isSignal": true; }; "feedbackText": { "alias": "feedbackText"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "bindLabel": { "alias": "bindLabel"; "required": false; "isSignal": true; }; "bindValue": { "alias": "bindValue"; "required": false; "isSignal": true; }; "allowMultiple": { "alias": "allowMultiple"; "required": false; "isSignal": true; }; "groupBy": { "alias": "groupBy"; "required": false; "isSignal": true; }; "showSelectAll": { "alias": "showSelectAll"; "required": false; "isSignal": true; }; "selectableGroups": { "alias": "selectableGroups"; "required": false; "isSignal": true; }; "isTagRemovable": { "alias": "isTagRemovable"; "required": false; "isSignal": true; }; "multiRow": { "alias": "multiRow"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; "disabledKey": { "alias": "disabledKey"; "required": false; "isSignal": true; }; "noOptionsMessage": { "alias": "noOptionsMessage"; "required": false; "isSignal": true; }; "maxDropdownHeight": { "alias": "maxDropdownHeight"; "required": false; "isSignal": true; }; "dropdownType": { "alias": "dropdownType"; "required": false; "isSignal": true; }; "searchable": { "alias": "searchable"; "required": false; "isSignal": true; }; }, {}, ["optionTemplate", "valueTemplate"], never, true, never>;
|
|
245
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent<any>, "tedi-select", never, { "inputId": { "alias": "inputId"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "dropdownWidthRef": { "alias": "dropdownWidthRef"; "required": false; "isSignal": true; }; "feedbackText": { "alias": "feedbackText"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "bindLabel": { "alias": "bindLabel"; "required": false; "isSignal": true; }; "bindValue": { "alias": "bindValue"; "required": false; "isSignal": true; }; "allowMultiple": { "alias": "allowMultiple"; "required": false; "isSignal": true; }; "groupBy": { "alias": "groupBy"; "required": false; "isSignal": true; }; "showSelectAll": { "alias": "showSelectAll"; "required": false; "isSignal": true; }; "selectableGroups": { "alias": "selectableGroups"; "required": false; "isSignal": true; }; "isTagRemovable": { "alias": "isTagRemovable"; "required": false; "isSignal": true; }; "multiRow": { "alias": "multiRow"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; "disabledKey": { "alias": "disabledKey"; "required": false; "isSignal": true; }; "noOptionsMessage": { "alias": "noOptionsMessage"; "required": false; "isSignal": true; }; "maxDropdownHeight": { "alias": "maxDropdownHeight"; "required": false; "isSignal": true; }; "dropdownType": { "alias": "dropdownType"; "required": false; "isSignal": true; }; "searchable": { "alias": "searchable"; "required": false; "isSignal": true; }; "searchFn": { "alias": "searchFn"; "required": false; "isSignal": true; }; }, {}, ["optionTemplate", "valueTemplate"], never, true, never>;
|
|
237
246
|
}
|
|
238
247
|
//# sourceMappingURL=select.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/form/select/select.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,iBAAiB,EAAiB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"select.component.d.ts","sourceRoot":"","sources":["../../../../../tedi/components/form/select/select.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAoB,iBAAiB,EAAiB,MAAM,sBAAsB,CAAC;AAC/G,OAAO,EAAE,UAAU,EAAoB,MAAM,sBAAsB,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAKhB,UAAU,EAWX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;AAKzE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;A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