Skip to content

Commit

Permalink
Adjusted the grammar / word's (#486) (#487)
Browse files Browse the repository at this point in the history
* Adjusted the grammar / word's (#486)

* Synced the README.md with mat-select-search.component.ts (#486)
  • Loading branch information
sirh3e authored Sep 3, 2024
1 parent e43f1af commit 909e4e6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,16 +443,16 @@ Furthermore, it provides the following inputs:
/** Font-based icon used for displaying Close-Icon */
@Input() closeIcon = 'close';

/** Svg-based icon used for displaying Close-Icon. If set, closeIcon is overridden */
/** SVG-based icon used for displaying Close-Icon. If set, closeIcon is overridden */
@Input() closeSvgIcon?: string;

/** Label to be shown when no entries are found. Set to null if no message should be shown. */
@Input() noEntriesFoundLabel = 'Keine Optionen gefunden';

/**
* Whether or not the search field should be cleared after the dropdown menu is closed.
* Useful for server-side filtering. See [#3](https://github.com/bithost-gmbh/ngx-mat-select-search/issues/3)
*/
* Whether the search field should be cleared after the dropdown menu is closed.
* Useful for server-side filtering. See [#3](https://github.com/bithost-gmbh/ngx-mat-select-search/issues/3)
*/
@Input() clearSearchInput = true;

/** Whether to show the search-in-progress indicator */
Expand All @@ -479,7 +479,7 @@ Furthermore, it provides the following inputs:
/** Whether to show Select All Checkbox (for mat-select[multi=true]) */
@Input() showToggleAllCheckbox = false;

/** select all checkbox checked state */
/** Select all checkbox checked state */
@Input() toggleAllCheckboxChecked = false;

/** select all checkbox indeterminate state */
Expand All @@ -494,9 +494,9 @@ Furthermore, it provides the following inputs:
/** Show/Hide the search clear button of the search input */
@Input() hideClearSearchButton = false;

/**
* Always restore selected options on selectionChange for mode multi (e.g. for lazy loading/infinity scrolling).
* Defaults to false, so selected options are only restored while filtering is active.
/**
* Always restore selected options on selectionChange for mode multi (e.g. for lazy loading/infinity scrolling).
* Defaults to false, so selected options are only restored while filtering is active.
*/
@Input() alwaysRestoreSelectedOptionsMulti = false;

Expand Down
14 changes: 7 additions & 7 deletions src/app/mat-select-search/mat-select-search.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,14 @@ export class MatSelectSearchComponent implements OnInit, OnDestroy, ControlValue
/** Font-based icon used for displaying Close-Icon */
@Input() closeIcon = 'close';

/** Svg-based icon used for displaying Close-Icon. If set, closeIcon is overridden */
/** SVG-based icon used for displaying Close-Icon. If set, closeIcon is overridden */
@Input() closeSvgIcon?: string;

/** Label to be shown when no entries are found. Set to null if no message should be shown. */
@Input() noEntriesFoundLabel = 'Keine Optionen gefunden';

/**
* Whether or not the search field should be cleared after the dropdown menu is closed.
* Whether the search field should be cleared after the dropdown menu is closed.
* Useful for server-side filtering. See [#3](https://github.com/bithost-gmbh/ngx-mat-select-search/issues/3)
*/
@Input() clearSearchInput = true;
Expand Down Expand Up @@ -173,7 +173,7 @@ export class MatSelectSearchComponent implements OnInit, OnDestroy, ControlValue
/** Whether to show Select All Checkbox (for mat-select[multi=true]) */
@Input() showToggleAllCheckbox = false;

/** select all checkbox checked state */
/** Select all checkbox checked state */
@Input() toggleAllCheckboxChecked = false;

/** select all checkbox indeterminate state */
Expand Down Expand Up @@ -244,7 +244,7 @@ export class MatSelectSearchComponent implements OnInit, OnDestroy, ControlValue

public _formControl: FormControl<string> = new FormControl<string>('', {nonNullable: true});

/** whether to show the no entries found message */
/** Whether to show the no entries found message */
public _showNoEntriesFound$: Observable<boolean> = combineLatest([
this._formControl.valueChanges,
this.optionsLength$
Expand Down Expand Up @@ -321,7 +321,7 @@ export class MatSelectSearchComponent implements OnInit, OnDestroy, ControlValue
this._options = this.matSelect.options;

// Closure variable for tracking the most recent first option.
// In order to avoid avoid causing the list to
// In order to avoid causing the list to
// scroll to the top when options are added to the bottom of
// the list (eg: infinite scroll), we compare only
// the changes to the first options to determine if we
Expand Down Expand Up @@ -352,7 +352,7 @@ export class MatSelectSearchComponent implements OnInit, OnDestroy, ControlValue
|| !this.matSelect.compareWith(previousFirstOption.value, currentFirstOption.value);

// CASE: The first option is different now.
// Indiciates we should set it as active and scroll to the top.
// Indicates we should set it as active and scroll to the top.
if (firstOptionIsChanged
|| !keyManager.activeItem
|| !options.find(option => this.matSelect.compareWith(option.value, keyManager.activeItem?.value))) {
Expand Down Expand Up @@ -573,7 +573,7 @@ export class MatSelectSearchComponent implements OnInit, OnDestroy, ControlValue

/**
* Set the width of the innerSelectSearch to fit even custom scrollbars
* And support all Operation Systems
* And support all Operating Systems
*/
public updateInputWidth() {
if (!this.innerSelectSearch || !this.innerSelectSearch.nativeElement) {
Expand Down

0 comments on commit 909e4e6

Please sign in to comment.