@almoamendev/ngx-md3 0.8.0 → 0.8.1
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
|
@@ -1884,6 +1884,11 @@ declare class SelectField implements ControlValueAccessor {
|
|
|
1884
1884
|
private readonly ngControl;
|
|
1885
1885
|
options: _angular_core.InputSignal<SelectOption[]>;
|
|
1886
1886
|
multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1887
|
+
/**
|
|
1888
|
+
* Lets the user type in the field to filter the options. While the field has focus it
|
|
1889
|
+
* acts as a search box; the selected options are shown again as soon as it loses focus.
|
|
1890
|
+
*/
|
|
1891
|
+
searchable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1887
1892
|
label: _angular_core.InputSignal<string | null>;
|
|
1888
1893
|
/**
|
|
1889
1894
|
* Formats the text shown in the field. The default joins the labels of the selected
|
|
@@ -1922,11 +1927,31 @@ declare class SelectField implements ControlValueAccessor {
|
|
|
1922
1927
|
private onTouched;
|
|
1923
1928
|
/** Selection is kept by value so it survives options arriving or being replaced later. */
|
|
1924
1929
|
private selectedValues;
|
|
1930
|
+
private searchQuery;
|
|
1931
|
+
private isInputFocused;
|
|
1925
1932
|
formControl: _angular_core.Signal<AbstractControl<any, any, any> | undefined>;
|
|
1926
1933
|
isDisabled: _angular_core.Signal<boolean>;
|
|
1927
1934
|
selectedOptions: _angular_core.Signal<SelectOption[]>;
|
|
1928
1935
|
selectedText: _angular_core.Signal<string | null>;
|
|
1936
|
+
/** True while the field acts as a search box instead of showing the selection. */
|
|
1937
|
+
isSearching: _angular_core.Signal<boolean>;
|
|
1938
|
+
/** What the input element shows: the search query while searching, the selection otherwise. */
|
|
1939
|
+
displayText: _angular_core.Signal<string | null>;
|
|
1940
|
+
/**
|
|
1941
|
+
* Each option paired with the text the search runs against. It is rebuilt only when the
|
|
1942
|
+
* options array changes, so typing does not normalize the same text again and again.
|
|
1943
|
+
* The fields are joined with a character the query can never contain, which stops a query
|
|
1944
|
+
* from matching across two fields.
|
|
1945
|
+
*/
|
|
1946
|
+
private searchIndex;
|
|
1947
|
+
/** The options the menu shows. Options that do not match the query are hidden. */
|
|
1948
|
+
filteredOptions: _angular_core.Signal<SelectOption[]>;
|
|
1929
1949
|
constructor(menuService: MenuService, viewContainerRef: ViewContainerRef);
|
|
1950
|
+
onSearchFocus(): void;
|
|
1951
|
+
onSearchBlur(): void;
|
|
1952
|
+
onSearchInput(event: Event): void;
|
|
1953
|
+
/** Lower-cases the text and removes everything that is not a letter or a digit. */
|
|
1954
|
+
private normalizeSearchText;
|
|
1930
1955
|
writeValue(value: SelectFieldValue): void;
|
|
1931
1956
|
registerOnChange(fn: (value: SelectFieldValue) => void): void;
|
|
1932
1957
|
registerOnTouched(fn: () => void): void;
|
|
@@ -1949,7 +1974,7 @@ declare class SelectField implements ControlValueAccessor {
|
|
|
1949
1974
|
private normalizeValues;
|
|
1950
1975
|
private valuesAreEqual;
|
|
1951
1976
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectField, never>;
|
|
1952
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectField, "md3-select-field", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "displayWith": { "alias": "display-with"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "menuColors": { "alias": "menu-colors"; "required": false; "isSignal": true; }; "fieldType": { "alias": "field-type"; "required": false; "isSignal": true; }; "control": { "alias": "control"; "required": false; "isSignal": true; }; }, {}, ["iconElements"], ["[md3-icon-element=leading]", "[md3-icon-element=arrow]", "[md3-supporting-text]"], true, never>;
|
|
1977
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectField, "md3-select-field", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "searchable": { "alias": "searchable"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "displayWith": { "alias": "display-with"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "menuColors": { "alias": "menu-colors"; "required": false; "isSignal": true; }; "fieldType": { "alias": "field-type"; "required": false; "isSignal": true; }; "control": { "alias": "control"; "required": false; "isSignal": true; }; }, {}, ["iconElements"], ["[md3-icon-element=leading]", "[md3-icon-element=arrow]", "[md3-supporting-text]"], true, never>;
|
|
1953
1978
|
}
|
|
1954
1979
|
|
|
1955
1980
|
/**
|