angular-perfect-select 1.1.0 → 1.1.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/README.md CHANGED
@@ -20,6 +20,9 @@ A modern, feature-rich, and fully accessible select component for Angular applic
20
20
  - **Forms Integration** - Full support for Angular template-driven and reactive forms
21
21
 
22
22
  ### Advanced Features
23
+ - **Max Selection Limit** (v1.1.0) - Limit the number of selections in multi-select mode with visual feedback
24
+ - **Search Debounce** (v1.1.0) - Configurable debounce delay for async loading to reduce API calls
25
+ - **Min Search Length** (v1.1.0) - Require minimum characters before filtering with helpful progress indicator
23
26
  - **Select All / Deselect All** - One-click selection for multi-select mode
24
27
  - **Option Grouping** - Organize options into categories with sticky headers
25
28
  - **Icons in Options** - Add visual elements (SVG or images) to options
@@ -105,3 +108,106 @@ import { PerfectSelectComponent } from 'angular-perfect-select';
105
108
  export class AppModule { }
106
109
  ```
107
110
 
111
+ ## Usage Examples
112
+
113
+ ### Max Selection Limit (v1.1.0)
114
+
115
+ Limit the number of selections in multi-select mode:
116
+
117
+ ```typescript
118
+ <ng-perfect-select
119
+ [options]="options"
120
+ [isMulti]="true"
121
+ [maxSelectedOptions]="3"
122
+ maxSelectedMessage="You can only select up to 3 items"
123
+ [(ngModel)]="selectedValues"
124
+ ></ng-perfect-select>
125
+ ```
126
+
127
+ ### Search Debounce (v1.1.0)
128
+
129
+ Add debouncing to async search to reduce API calls:
130
+
131
+ ```typescript
132
+ <ng-perfect-select
133
+ [options]="[]"
134
+ [loadOptions]="loadCountries"
135
+ [debounceTime]="500"
136
+ [(ngModel)]="selectedCountry"
137
+ ></ng-perfect-select>
138
+ ```
139
+
140
+ ```typescript
141
+ loadCountries = async (searchTerm: string): Promise<SelectOption[]> => {
142
+ const response = await fetch(`/api/countries?search=${searchTerm}`);
143
+ return response.json();
144
+ };
145
+ ```
146
+
147
+ ### Minimum Search Length (v1.1.0)
148
+
149
+ Require minimum characters before filtering options:
150
+
151
+ ```typescript
152
+ <ng-perfect-select
153
+ [options]="largeDataset"
154
+ [minSearchLength]="3"
155
+ minSearchMessage="Please enter at least 3 characters"
156
+ [(ngModel)]="selectedValue"
157
+ ></ng-perfect-select>
158
+ ```
159
+
160
+ ### Multi-Select with Tags
161
+
162
+ ```typescript
163
+ <ng-perfect-select
164
+ [options]="options"
165
+ [isMulti]="true"
166
+ placeholder="Select multiple..."
167
+ [(ngModel)]="selectedValues"
168
+ ></ng-perfect-select>
169
+ ```
170
+
171
+ ### Async Loading with Caching
172
+
173
+ ```typescript
174
+ <ng-perfect-select
175
+ [loadOptions]="loadRemoteData"
176
+ [cacheOptions]="true"
177
+ [defaultOptions]="true"
178
+ [(ngModel)]="selectedValue"
179
+ ></ng-perfect-select>
180
+ ```
181
+
182
+ ### Creatable Options
183
+
184
+ ```typescript
185
+ <ng-perfect-select
186
+ [options]="options"
187
+ [isCreatable]="true"
188
+ (createOption)="onCreateOption($event)"
189
+ [(ngModel)]="selectedValue"
190
+ ></ng-perfect-select>
191
+ ```
192
+
193
+ ### With Themes and Styling
194
+
195
+ ```typescript
196
+ <ng-perfect-select
197
+ [options]="options"
198
+ theme="purple"
199
+ selectSize="large"
200
+ containerSize="lg"
201
+ [(ngModel)]="selectedValue"
202
+ ></ng-perfect-select>
203
+ ```
204
+
205
+ ## Documentation
206
+
207
+ For complete documentation, examples, and interactive playground, visit:
208
+ **[https://angular-perfect-select.ishansasika.dev](https://angular-perfect-select.ishansasika.dev)**
209
+
210
+ ## License
211
+
212
+ MIT © [Ishan Karunaratne](https://ishansasika.dev)
213
+
package/dist/README.md CHANGED
@@ -20,6 +20,9 @@ A modern, feature-rich, and fully accessible select component for Angular applic
20
20
  - **Forms Integration** - Full support for Angular template-driven and reactive forms
21
21
 
22
22
  ### Advanced Features
23
+ - **Max Selection Limit** (v1.1.0) - Limit the number of selections in multi-select mode with visual feedback
24
+ - **Search Debounce** (v1.1.0) - Configurable debounce delay for async loading to reduce API calls
25
+ - **Min Search Length** (v1.1.0) - Require minimum characters before filtering with helpful progress indicator
23
26
  - **Select All / Deselect All** - One-click selection for multi-select mode
24
27
  - **Option Grouping** - Organize options into categories with sticky headers
25
28
  - **Icons in Options** - Add visual elements (SVG or images) to options
@@ -105,3 +108,106 @@ import { PerfectSelectComponent } from 'angular-perfect-select';
105
108
  export class AppModule { }
106
109
  ```
107
110
 
111
+ ## Usage Examples
112
+
113
+ ### Max Selection Limit (v1.1.0)
114
+
115
+ Limit the number of selections in multi-select mode:
116
+
117
+ ```typescript
118
+ <ng-perfect-select
119
+ [options]="options"
120
+ [isMulti]="true"
121
+ [maxSelectedOptions]="3"
122
+ maxSelectedMessage="You can only select up to 3 items"
123
+ [(ngModel)]="selectedValues"
124
+ ></ng-perfect-select>
125
+ ```
126
+
127
+ ### Search Debounce (v1.1.0)
128
+
129
+ Add debouncing to async search to reduce API calls:
130
+
131
+ ```typescript
132
+ <ng-perfect-select
133
+ [options]="[]"
134
+ [loadOptions]="loadCountries"
135
+ [debounceTime]="500"
136
+ [(ngModel)]="selectedCountry"
137
+ ></ng-perfect-select>
138
+ ```
139
+
140
+ ```typescript
141
+ loadCountries = async (searchTerm: string): Promise<SelectOption[]> => {
142
+ const response = await fetch(`/api/countries?search=${searchTerm}`);
143
+ return response.json();
144
+ };
145
+ ```
146
+
147
+ ### Minimum Search Length (v1.1.0)
148
+
149
+ Require minimum characters before filtering options:
150
+
151
+ ```typescript
152
+ <ng-perfect-select
153
+ [options]="largeDataset"
154
+ [minSearchLength]="3"
155
+ minSearchMessage="Please enter at least 3 characters"
156
+ [(ngModel)]="selectedValue"
157
+ ></ng-perfect-select>
158
+ ```
159
+
160
+ ### Multi-Select with Tags
161
+
162
+ ```typescript
163
+ <ng-perfect-select
164
+ [options]="options"
165
+ [isMulti]="true"
166
+ placeholder="Select multiple..."
167
+ [(ngModel)]="selectedValues"
168
+ ></ng-perfect-select>
169
+ ```
170
+
171
+ ### Async Loading with Caching
172
+
173
+ ```typescript
174
+ <ng-perfect-select
175
+ [loadOptions]="loadRemoteData"
176
+ [cacheOptions]="true"
177
+ [defaultOptions]="true"
178
+ [(ngModel)]="selectedValue"
179
+ ></ng-perfect-select>
180
+ ```
181
+
182
+ ### Creatable Options
183
+
184
+ ```typescript
185
+ <ng-perfect-select
186
+ [options]="options"
187
+ [isCreatable]="true"
188
+ (createOption)="onCreateOption($event)"
189
+ [(ngModel)]="selectedValue"
190
+ ></ng-perfect-select>
191
+ ```
192
+
193
+ ### With Themes and Styling
194
+
195
+ ```typescript
196
+ <ng-perfect-select
197
+ [options]="options"
198
+ theme="purple"
199
+ selectSize="large"
200
+ containerSize="lg"
201
+ [(ngModel)]="selectedValue"
202
+ ></ng-perfect-select>
203
+ ```
204
+
205
+ ## Documentation
206
+
207
+ For complete documentation, examples, and interactive playground, visit:
208
+ **[https://angular-perfect-select.ishansasika.dev](https://angular-perfect-select.ishansasika.dev)**
209
+
210
+ ## License
211
+
212
+ MIT © [Ishan Karunaratne](https://ishansasika.dev)
213
+
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, HostListener, Output, Directive, signal, computed, ViewChild, Input, Component } from '@angular/core';
2
+ import { EventEmitter, HostListener, Output, Directive, signal, computed, forwardRef, ViewChild, Input, Component } from '@angular/core';
3
3
  import * as i3 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import * as i2 from '@angular/forms';
@@ -683,7 +683,7 @@ class PerfectSelectComponent {
683
683
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: PerfectSelectComponent, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
684
684
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: PerfectSelectComponent, isStandalone: true, selector: "ng-perfect-select", inputs: { options: "options", placeholder: "placeholder", isMulti: "isMulti", multiple: "multiple", isSearchable: "isSearchable", searchable: "searchable", isClearable: "isClearable", clearable: "clearable", isDisabled: "isDisabled", disabled: "disabled", isLoading: "isLoading", loading: "loading", isRtl: "isRtl", closeMenuOnSelect: "closeMenuOnSelect", hideSelectedOptions: "hideSelectedOptions", isCreatable: "isCreatable", allowCreateWhileLoading: "allowCreateWhileLoading", createOptionPosition: "createOptionPosition", formatCreateLabel: "formatCreateLabel", loadOptions: "loadOptions", cacheOptions: "cacheOptions", defaultOptions: "defaultOptions", selectSize: "selectSize", containerSize: "containerSize", theme: "theme", borderRadius: "borderRadius", customStyles: "customStyles", maxHeight: "maxHeight", menuPlacement: "menuPlacement", menuPosition: "menuPosition", getOptionLabel: "getOptionLabel", getOptionValue: "getOptionValue", isOptionDisabled: "isOptionDisabled", filterOption: "filterOption", isGrouped: "isGrouped", groupBy: "groupBy", showSelectAll: "showSelectAll", selectAllText: "selectAllText", deselectAllText: "deselectAllText", showOptionIcons: "showOptionIcons", showOptionBadges: "showOptionBadges", maxOptionsDisplay: "maxOptionsDisplay", optionHeight: "optionHeight", emptyStateText: "emptyStateText", emptySearchText: "emptySearchText", maxSelectedOptions: "maxSelectedOptions", maxSelectedMessage: "maxSelectedMessage", debounceTime: "debounceTime", minSearchLength: "minSearchLength", minSearchMessage: "minSearchMessage", name: "name", id: "id", autoFocus: "autoFocus", openMenuOnFocus: "openMenuOnFocus", openMenuOnClick: "openMenuOnClick", tabSelectsValue: "tabSelectsValue", backspaceRemovesValue: "backspaceRemovesValue", escapeClearsValue: "escapeClearsValue", noOptionsMessage: "noOptionsMessage", loadingMessage: "loadingMessage" }, outputs: { change: "change", clear: "clear", focus: "focus", blur: "blur", menuOpen: "menuOpen", menuClose: "menuClose", inputChange: "inputChange", createOption: "createOption", optionsLoaded: "optionsLoaded", loadError: "loadError" }, host: { listeners: { "keydown": "handleKeydown($event)" } }, providers: [{
685
685
  provide: NG_VALUE_ACCESSOR,
686
- useExisting: PerfectSelectComponent,
686
+ useExisting: forwardRef(() => PerfectSelectComponent),
687
687
  multi: true
688
688
  }], viewQueries: [{ propertyName: "selectContainerRef", first: true, predicate: ["selectContainer"], descendants: true }, { propertyName: "searchInputRef", first: true, predicate: ["searchInput"], descendants: true }, { propertyName: "menuElementRef", first: true, predicate: ["menuRef"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n #selectContainer\n class=\"select-container {{selectSize}} {{containerSize}} theme-{{theme}}\"\n [class.disabled]=\"isDisabled\"\n [class.rtl]=\"isRtl\"\n (clickOutside)=\"onClickOutside()\"\n role=\"combobox\"\n tabindex=\"0\"\n [attr.aria-controls]=\"'options-list'\"\n [attr.aria-expanded]=\"isOpen()\"\n (focus)=\"openMenuOnFocus && !isOpen() && toggleDropdown(); focus.emit()\"\n [style]=\"customStyles.container || ''\"\n>\n <!-- Main Select Trigger -->\n <div\n class=\"select-trigger\"\n [class.open]=\"isOpen()\"\n [class.focused]=\"isOpen()\"\n (click)=\"openMenuOnClick && toggleDropdown()\"\n [attr.tabindex]=\"isDisabled ? -1 : 0\"\n role=\"button\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-label]=\"placeholder\"\n >\n <!-- Selected Value Display -->\n <div class=\"select-value\">\n <!-- Multi-select Tags -->\n @if (isMulti && selectedOptions().length > 0) {\n <div class=\"tags\">\n @for (option of selectedOptions(); track trackByValue($index, option)) {\n <span class=\"tag\" [class.disabled]=\"isDisabled\" [@tag]>\n <span class=\"tag-label\">{{getOptionLabel(option)}}</span>\n @if (!isDisabled) {\n <button\n class=\"tag-remove\"\n (click)=\"removeOption(option, $event)\"\n [attr.aria-label]=\"'Remove ' + getOptionLabel(option)\"\n type=\"button\"\n >\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 20 20\">\n <path d=\"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z\"></path>\n </svg>\n </button>\n }\n </span>\n }\n </div>\n } @else {\n <!-- Single Select or Placeholder -->\n <span class=\"placeholder\" [class.has-value]=\"selectedOptions().length > 0\">\n {{displayText()}}\n </span>\n }\n </div>\n\n <!-- Actions (Clear, Loading, Arrow) -->\n <div class=\"select-actions\">\n @if (isLoading || isLoadingAsync()) {\n <div class=\"spinner\"></div>\n }\n @if (isClearable && selectedOptions().length > 0 && !isDisabled && !isLoading && !isLoadingAsync()) {\n <button\n class=\"clear-button\"\n (click)=\"clearSelection($event)\"\n aria-label=\"Clear selection\"\n type=\"button\"\n >\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\">\n <path d=\"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z\"></path>\n </svg>\n </button>\n }\n <span class=\"separator\"></span>\n <span class=\"arrow\" [class.open]=\"isOpen()\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\">\n <path d=\"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z\"></path>\n </svg>\n </span>\n </div>\n </div>\n\n <!-- Dropdown Menu -->\n @if (isOpen()) {\n <div\n #menuRef\n class=\"dropdown {{menuPlacement}}\"\n [class.fixed]=\"menuPosition === 'fixed'\"\n [style.max-height]=\"maxHeight\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"isMulti\"\n [@dropdown]\n >\n <!-- Search Input -->\n @if (isSearchable) {\n <div class=\"search-container\">\n <input\n #searchInput\n type=\"text\"\n class=\"search-input\"\n placeholder=\"Search...\"\n [value]=\"searchTerm()\"\n (input)=\"onSearchChange($any($event.target).value)\"\n (click)=\"$event.stopPropagation()\"\n aria-label=\"Search options\"\n aria-autocomplete=\"list\"\n />\n </div>\n }\n\n <!-- Options List -->\n <div class=\"options-list\" id=\"options-list\">\n <!-- Max Selection Message -->\n @if (isMaxSelectionReached()) {\n <div class=\"info-message max-selection\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 20 20\" fill=\"currentColor\">\n <path d=\"M10 0C4.477 0 0 4.477 0 10s4.477 10 10 10 10-4.477 10-10S15.523 0 10 0zm1 15H9v-2h2v2zm0-4H9V5h2v6z\"/>\n </svg>\n {{maxSelectedMessage}}\n </div>\n }\n\n <!-- Min Search Length Message -->\n @if (showMinSearchMessage()) {\n <div class=\"info-message min-search\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 20 20\" fill=\"currentColor\">\n <path d=\"M10 0C4.477 0 0 4.477 0 10s4.477 10 10 10 10-4.477 10-10S15.523 0 10 0zm1 15H9v-2h2v2zm0-4H9V5h2v6z\"/>\n </svg>\n {{minSearchMessage}} ({{searchTerm().length}}/{{minSearchLength}})\n </div>\n }\n\n @if (isLoadingAsync()) {\n <div class=\"loading-message\">{{loadingMessage()}}</div>\n } @else if (displayOptions().length === 0 && !showMinSearchMessage()) {\n <div class=\"no-options\">\n {{searchTerm() ? emptySearchText : emptyStateText}}\n </div>\n } @else if (!showMinSearchMessage()) {\n <!-- Select All (Multi-select only) -->\n @if (isMulti && showSelectAll && !searchTerm()) {\n <div class=\"select-all-container\">\n <button\n class=\"select-all-button\"\n (click)=\"allOptionsSelected() ? deselectAll() : selectAll()\"\n type=\"button\"\n >\n <input\n type=\"checkbox\"\n [checked]=\"allOptionsSelected()\"\n [indeterminate]=\"someOptionsSelected()\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n readonly\n />\n <span class=\"select-all-text\">\n {{allOptionsSelected() ? deselectAllText : selectAllText}}\n </span>\n <span class=\"select-all-count\">\n ({{selectedOptions().length}}/{{getEnabledOptionsCount()}})\n </span>\n </button>\n </div>\n }\n\n <!-- Grouped Options -->\n @if (isGrouped && groupedOptions()) {\n @for (group of groupedOptions() | keyvalue; track trackByGroup($index, [$any(group.key), $any(group.value)])) {\n <div class=\"option-group\">\n <div class=\"option-group-label\">{{group.key}}</div>\n @for (option of $any(group.value); track trackByValue($index, option); let idx = $index) {\n <div\n class=\"option\"\n [class.selected]=\"isSelected(option)\"\n [class.highlighted]=\"idx === highlightedIndex()\"\n [class.disabled]=\"isOptionDisabled(option) || (isMaxSelectionReached() && !isSelected(option))\"\n [class.hidden]=\"hideSelectedOptions && isSelected(option)\"\n [class.create-option]=\"option.__isCreate__\"\n (click)=\"selectOption(option)\"\n (keydown)=\"$event.key === 'Enter' && selectOption(option)\"\n role=\"option\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"isOptionDisabled(option) || (isMaxSelectionReached() && !isSelected(option))\"\n tabindex=\"-1\"\n >\n <!-- Checkbox for multi-select -->\n @if (isMulti) {\n <input\n type=\"checkbox\"\n [checked]=\"isSelected(option)\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n readonly\n />\n }\n\n <!-- Option Icon -->\n @if (showOptionIcons && option.icon) {\n <div class=\"option-icon\">\n @if (option.icon.includes('<')) {\n <div [innerHTML]=\"sanitizeHtml(option.icon)\"></div>\n } @else {\n <img [src]=\"option.icon\" [alt]=\"getOptionLabel(option)\" />\n }\n </div>\n }\n\n <!-- Option Content -->\n <div class=\"option-content\">\n <div class=\"option-label\">{{getOptionLabel(option)}}</div>\n @if (option.description) {\n <div class=\"option-description\">{{option.description}}</div>\n }\n </div>\n\n <!-- Option Badge -->\n @if (showOptionBadges && option.badge) {\n <span\n class=\"option-badge\"\n [style.background-color]=\"option.badgeColor || currentTheme().primary\"\n >\n {{option.badge}}\n </span>\n }\n\n <!-- Check Icon for selected -->\n @if (!isMulti && isSelected(option)) {\n <svg class=\"check-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 20 20\">\n <path d=\"M7.629,14.566c0.125,0.125,0.291,0.188,0.456,0.188c0.164,0,0.329-0.062,0.456-0.188l8.219-8.221c0.252-0.252,0.252-0.659,0-0.911c-0.252-0.252-0.659-0.252-0.911,0l-7.764,7.763L4.152,9.267c-0.252-0.251-0.66-0.251-0.911,0c-0.252,0.252-0.252,0.66,0,0.911L7.629,14.566z\"></path>\n </svg>\n }\n </div>\n }\n </div>\n }\n } @else {\n <!-- Regular (Ungrouped) Options -->\n @for (option of displayOptions(); track trackByValue($index, option); let idx = $index) {\n <div\n class=\"option\"\n [class.selected]=\"isSelected(option)\"\n [class.highlighted]=\"idx === highlightedIndex()\"\n [class.disabled]=\"isOptionDisabled(option) || (isMaxSelectionReached() && !isSelected(option))\"\n [class.hidden]=\"hideSelectedOptions && isSelected(option)\"\n [class.create-option]=\"option.__isCreate__\"\n (click)=\"selectOption(option)\"\n (keydown)=\"$event.key === 'Enter' && selectOption(option)\"\n role=\"option\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"isOptionDisabled(option) || (isMaxSelectionReached() && !isSelected(option))\"\n tabindex=\"-1\"\n >\n <!-- Checkbox for multi-select -->\n @if (isMulti) {\n <input\n type=\"checkbox\"\n [checked]=\"isSelected(option)\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n readonly\n />\n }\n\n <!-- Option Icon -->\n @if (showOptionIcons && option.icon) {\n <div class=\"option-icon\">\n @if (option.icon.includes('<')) {\n <div [innerHTML]=\"sanitizeHtml(option.icon)\"></div>\n } @else {\n <img [src]=\"option.icon\" [alt]=\"getOptionLabel(option)\" />\n }\n </div>\n }\n\n <!-- Option Content -->\n <div class=\"option-content\">\n <div class=\"option-label\">{{getOptionLabel(option)}}</div>\n @if (option.description) {\n <div class=\"option-description\">{{option.description}}</div>\n }\n </div>\n\n <!-- Option Badge -->\n @if (showOptionBadges && option.badge) {\n <span\n class=\"option-badge\"\n [style.background-color]=\"option.badgeColor || currentTheme().primary\"\n >\n {{option.badge}}\n </span>\n }\n\n <!-- Check Icon for selected -->\n @if (!isMulti && isSelected(option)) {\n <svg class=\"check-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 20 20\">\n <path d=\"M7.629,14.566c0.125,0.125,0.291,0.188,0.456,0.188c0.164,0,0.329-0.062,0.456-0.188l8.219-8.221c0.252-0.252,0.252-0.659,0-0.911c-0.252-0.252-0.659-0.252-0.911,0l-7.764,7.763L4.152,9.267c-0.252-0.251-0.66-0.251-0.911,0c-0.252,0.252-0.252,0.66,0,0.911L7.629,14.566z\"></path>\n </svg>\n }\n </div>\n }\n }\n }\n </div>\n </div>\n }\n</div>\n\n<!-- Hidden native select for form compatibility -->\n@if (isMulti) {\n <select [name]=\"name\" [id]=\"id\" multiple style=\"display: none;\" [attr.aria-hidden]=\"true\">\n @for (option of selectedOptions(); track trackByValue($index, option)) {\n <option [value]=\"getOptionValue(option)\" selected>{{getOptionLabel(option)}}</option>\n }\n </select>\n} @else {\n @if (selectedOptions().length > 0) {\n <select [name]=\"name\" [id]=\"id\" style=\"display: none;\" [attr.aria-hidden]=\"true\">\n <option [value]=\"getOptionValue(selectedOptions()[0])\" selected>{{getOptionLabel(selectedOptions()[0])}}</option>\n </select>\n }\n}\n", styles: [":host{display:block;width:100%}.select-container{position:relative;width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.smaller{font-size:11px}.small{font-size:13px}.medium{font-size:14px}.large{font-size:16px}.larger{font-size:18px}.xs .select-trigger{min-height:28px;padding:4px 8px}.sm .select-trigger{min-height:32px;padding:6px 10px}.md .select-trigger{min-height:40px;padding:8px 12px}.lg .select-trigger{min-height:48px;padding:10px 14px}.xl .select-trigger{min-height:56px;padding:12px 16px}.select-container.disabled{opacity:.6;cursor:not-allowed}.select-container.rtl{direction:rtl}.select-trigger{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:#fff;border:1.5px solid #D1D5DB;border-radius:10px;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);min-height:38px;gap:8px;box-shadow:0 1px 2px #0000000d}.select-trigger:hover:not(.disabled){border-color:#9ca3af;box-shadow:0 2px 4px #00000014}.select-trigger:focus,.select-trigger.focused{outline:none;border-color:#2684ff;box-shadow:0 0 0 3px #2684ff1a,0 1px 2px #0000000d}.select-trigger.open{border-color:#2684ff;box-shadow:0 0 0 3px #2684ff1a,0 1px 2px #0000000d}.select-value{flex:1;display:flex;align-items:center;min-width:0;gap:4px}.placeholder{color:#999;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.placeholder.has-value{color:#333}.tags{display:flex;flex-wrap:wrap;gap:4px;flex:1}.tag{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;background:#e6f2ff;color:#0052cc;border-radius:6px;font-size:.875em;font-weight:500;white-space:nowrap;border:1px solid #CCE0FF;box-shadow:0 1px 2px #0000000d}.tag.disabled{background:#f0f0f0;color:#666;border-color:#d9d9d9}.tag-label{line-height:1.2}.tag-remove{background:none;border:none;color:inherit;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;border-radius:2px;transition:all .15s}.tag-remove:hover{background:#0052cc26}.tag-remove svg{fill:currentColor}.select-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.clear-button{background:none;border:none;color:#999;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:3px;transition:all .15s}.clear-button:hover{color:#333;background:#f0f0f0}.clear-button svg{fill:currentColor}.separator{width:1px;height:24px;background:#ccc;align-self:stretch}.arrow{color:#999;transition:transform .2s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;padding:4px}.arrow svg{fill:currentColor}.arrow.open{transform:rotate(180deg)}.spinner{width:16px;height:16px;border:2px solid #f3f3f3;border-top:2px solid #2684FF;border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.dropdown{position:absolute;top:calc(100% + 8px);left:0;right:0;background:#fffffffa;border:1px solid #E5E7EB;border-radius:12px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a,0 0 0 1px #0000000d;z-index:1000;overflow:hidden;backdrop-filter:blur(12px) saturate(180%);-webkit-backdrop-filter:blur(12px) saturate(180%)}.dropdown.fixed{position:fixed}.dropdown.top{top:auto;bottom:calc(100% + 4px)}.search-container{padding:8px;border-bottom:1px solid #f0f0f0;background:#fff}.search-input{width:100%;padding:6px 8px;border:1px solid #cccccc;border-radius:3px;font-size:inherit;outline:none;transition:border-color .15s}.search-input:focus{border-color:#2684ff;box-shadow:0 0 0 1px #2684ff}.options-list{max-height:inherit;overflow-y:auto;overflow-x:hidden;padding:4px 0}.options-list::-webkit-scrollbar{width:8px}.options-list::-webkit-scrollbar-track{background:transparent}.options-list::-webkit-scrollbar-thumb{background:#d9d9d9;border-radius:4px}.options-list::-webkit-scrollbar-thumb:hover{background:#b3b3b3}.select-all-container{padding:8px;border-bottom:1px solid #E5E7EB;background:#f9fafb}.select-all-button{width:100%;display:flex;align-items:center;gap:8px;padding:6px 8px;background:#fff;border:1px solid #D1D5DB;border-radius:6px;cursor:pointer;transition:all .15s;font-size:inherit;color:inherit;font-family:inherit}.select-all-button:hover{background:#f3f4f6;border-color:#9ca3af}.select-all-button input[type=checkbox]{cursor:pointer;width:16px;height:16px;margin:0;accent-color:#2684FF}.select-all-text{flex:1;text-align:left;font-weight:500}.select-all-count{color:#6b7280;font-size:.9em}.option-group{margin:4px 0}.option-group-label{padding:8px 12px 4px;font-size:.75em;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.05em;background:#f9fafb;border-bottom:1px solid #E5E7EB;position:sticky;top:0;z-index:1}.option-group .option{padding-left:20px}.option{display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;transition:all .15s cubic-bezier(.4,0,.2,1);position:relative;min-height:40px}.option-content{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.option-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;border-radius:6px;overflow:hidden;background:#f3f4f6}.option-icon img{width:100%;height:100%;object-fit:cover}.option-badge{padding:2px 8px;border-radius:12px;font-size:.75em;font-weight:500;color:#374151;background:#e5e7eb;flex-shrink:0;white-space:nowrap}.option:hover:not(.disabled):not(.create-option){background:#deebff}.option.highlighted{background:#deebff}.option.selected:not(.create-option){background:#e6f2ff;font-weight:500}.option.disabled{opacity:.5;cursor:not-allowed;background:transparent!important}.option.hidden{display:none}.option.create-option{color:#2684ff;font-weight:500;background:#f0f6ff}.option.create-option:hover{background:#e6f2ff}.option input[type=checkbox]{cursor:pointer;width:16px;height:16px;margin:0;accent-color:#2684FF}.option-label{font-weight:500;color:#1f2937;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4}.option-description{font-size:.875em;color:#6b7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.3}.check-icon{color:#2684ff;display:flex;align-items:center;margin-left:auto}.check-icon svg{fill:currentColor}.no-options,.loading-message{padding:16px 12px;text-align:center;color:#999;font-size:.95em}.info-message{padding:12px;margin:8px;border-radius:6px;font-size:.9em;display:flex;align-items:center;gap:8px}.info-message.max-selection{background:#fff4e5;color:#f57c00;border:1px solid #FFE0B2}.info-message.min-search{background:#e3f2fd;color:#1976d2;border:1px solid #BBDEFB}.info-message svg{flex-shrink:0}.rtl .select-actions,.rtl .tags,.rtl .option{flex-direction:row-reverse}.theme-blue .select-trigger:focus,.theme-blue .select-trigger.focused,.theme-blue .select-trigger.open{border-color:#2684ff;box-shadow:0 0 0 1px #2684ff}.theme-blue .option:hover:not(.disabled):not(.create-option),.theme-blue .option.highlighted{background:#deebff}.theme-blue .option.selected:not(.create-option){background:#e6f2ff}.theme-blue .tag{background:#e6f2ff;color:#0052cc;border-color:#cce0ff}.theme-blue .check-icon,.theme-blue .option.create-option{color:#2684ff}.theme-blue .spinner{border-top-color:#2684ff}.theme-blue .search-input:focus{border-color:#2684ff;box-shadow:0 0 0 1px #2684ff}.theme-purple .select-trigger:focus,.theme-purple .select-trigger.focused,.theme-purple .select-trigger.open{border-color:#9333ea;box-shadow:0 0 0 1px #9333ea}.theme-purple .option:hover:not(.disabled):not(.create-option),.theme-purple .option.highlighted{background:#f3e8ff}.theme-purple .option.selected:not(.create-option){background:#faf5ff}.theme-purple .tag{background:#faf5ff;color:#7e22ce;border-color:#e9d5ff}.theme-purple .check-icon,.theme-purple .option.create-option{color:#9333ea}.theme-purple .spinner{border-top-color:#9333ea}.theme-purple .search-input:focus{border-color:#9333ea;box-shadow:0 0 0 1px #9333ea}.theme-green .select-trigger:focus,.theme-green .select-trigger.focused,.theme-green .select-trigger.open{border-color:#10b981;box-shadow:0 0 0 1px #10b981}.theme-green .option:hover:not(.disabled):not(.create-option),.theme-green .option.highlighted{background:#d1fae5}.theme-green .option.selected:not(.create-option){background:#ecfdf5}.theme-green .tag{background:#ecfdf5;color:#059669;border-color:#a7f3d0}.theme-green .check-icon,.theme-green .option.create-option{color:#10b981}.theme-green .spinner{border-top-color:#10b981}.theme-green .search-input:focus{border-color:#10b981;box-shadow:0 0 0 1px #10b981}.theme-red .select-trigger:focus,.theme-red .select-trigger.focused,.theme-red .select-trigger.open{border-color:#ef4444;box-shadow:0 0 0 1px #ef4444}.theme-red .option:hover:not(.disabled):not(.create-option),.theme-red .option.highlighted{background:#fee2e2}.theme-red .option.selected:not(.create-option){background:#fef2f2}.theme-red .tag{background:#fef2f2;color:#dc2626;border-color:#fecaca}.theme-red .check-icon,.theme-red .option.create-option{color:#ef4444}.theme-red .spinner{border-top-color:#ef4444}.theme-red .search-input:focus{border-color:#ef4444;box-shadow:0 0 0 1px #ef4444}.theme-orange .select-trigger:focus,.theme-orange .select-trigger.focused,.theme-orange .select-trigger.open{border-color:#f97316;box-shadow:0 0 0 1px #f97316}.theme-orange .option:hover:not(.disabled):not(.create-option),.theme-orange .option.highlighted{background:#ffedd5}.theme-orange .option.selected:not(.create-option){background:#fff7ed}.theme-orange .tag{background:#fff7ed;color:#ea580c;border-color:#fed7aa}.theme-orange .check-icon,.theme-orange .option.create-option{color:#f97316}.theme-orange .spinner{border-top-color:#f97316}.theme-orange .search-input:focus{border-color:#f97316;box-shadow:0 0 0 1px #f97316}.theme-pink .select-trigger:focus,.theme-pink .select-trigger.focused,.theme-pink .select-trigger.open{border-color:#ec4899;box-shadow:0 0 0 1px #ec4899}.theme-pink .option:hover:not(.disabled):not(.create-option),.theme-pink .option.highlighted{background:#fce7f3}.theme-pink .option.selected:not(.create-option){background:#fdf2f8}.theme-pink .tag{background:#fdf2f8;color:#db2777;border-color:#fbcfe8}.theme-pink .check-icon,.theme-pink .option.create-option{color:#ec4899}.theme-pink .spinner{border-top-color:#ec4899}.theme-pink .search-input:focus{border-color:#ec4899;box-shadow:0 0 0 1px #ec4899}.theme-dark .select-trigger:focus,.theme-dark .select-trigger.focused,.theme-dark .select-trigger.open{border-color:#1f2937;box-shadow:0 0 0 1px #1f2937}.theme-dark .option:hover:not(.disabled):not(.create-option),.theme-dark .option.highlighted{background:#e5e7eb}.theme-dark .option.selected:not(.create-option){background:#f3f4f6}.theme-dark .tag{background:#f3f4f6;color:#111827;border-color:#d1d5db}.theme-dark .check-icon,.theme-dark .option.create-option{color:#1f2937}.theme-dark .spinner{border-top-color:#1f2937}.theme-dark .search-input:focus{border-color:#1f2937;box-shadow:0 0 0 1px #1f2937}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: ClickOutsideDirective, selector: "[clickOutside]", outputs: ["clickOutside"] }, { kind: "pipe", type: i3.KeyValuePipe, name: "keyvalue" }], animations: selectAnimations });
689
689
  }
@@ -691,7 +691,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
691
691
  type: Component,
692
692
  args: [{ selector: 'ng-perfect-select', standalone: true, imports: [CommonModule, FormsModule, ClickOutsideDirective], animations: selectAnimations, providers: [{
693
693
  provide: NG_VALUE_ACCESSOR,
694
- useExisting: PerfectSelectComponent,
694
+ useExisting: forwardRef(() => PerfectSelectComponent),
695
695
  multi: true
696
696
  }], template: "<div\n #selectContainer\n class=\"select-container {{selectSize}} {{containerSize}} theme-{{theme}}\"\n [class.disabled]=\"isDisabled\"\n [class.rtl]=\"isRtl\"\n (clickOutside)=\"onClickOutside()\"\n role=\"combobox\"\n tabindex=\"0\"\n [attr.aria-controls]=\"'options-list'\"\n [attr.aria-expanded]=\"isOpen()\"\n (focus)=\"openMenuOnFocus && !isOpen() && toggleDropdown(); focus.emit()\"\n [style]=\"customStyles.container || ''\"\n>\n <!-- Main Select Trigger -->\n <div\n class=\"select-trigger\"\n [class.open]=\"isOpen()\"\n [class.focused]=\"isOpen()\"\n (click)=\"openMenuOnClick && toggleDropdown()\"\n [attr.tabindex]=\"isDisabled ? -1 : 0\"\n role=\"button\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-label]=\"placeholder\"\n >\n <!-- Selected Value Display -->\n <div class=\"select-value\">\n <!-- Multi-select Tags -->\n @if (isMulti && selectedOptions().length > 0) {\n <div class=\"tags\">\n @for (option of selectedOptions(); track trackByValue($index, option)) {\n <span class=\"tag\" [class.disabled]=\"isDisabled\" [@tag]>\n <span class=\"tag-label\">{{getOptionLabel(option)}}</span>\n @if (!isDisabled) {\n <button\n class=\"tag-remove\"\n (click)=\"removeOption(option, $event)\"\n [attr.aria-label]=\"'Remove ' + getOptionLabel(option)\"\n type=\"button\"\n >\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 20 20\">\n <path d=\"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z\"></path>\n </svg>\n </button>\n }\n </span>\n }\n </div>\n } @else {\n <!-- Single Select or Placeholder -->\n <span class=\"placeholder\" [class.has-value]=\"selectedOptions().length > 0\">\n {{displayText()}}\n </span>\n }\n </div>\n\n <!-- Actions (Clear, Loading, Arrow) -->\n <div class=\"select-actions\">\n @if (isLoading || isLoadingAsync()) {\n <div class=\"spinner\"></div>\n }\n @if (isClearable && selectedOptions().length > 0 && !isDisabled && !isLoading && !isLoadingAsync()) {\n <button\n class=\"clear-button\"\n (click)=\"clearSelection($event)\"\n aria-label=\"Clear selection\"\n type=\"button\"\n >\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\">\n <path d=\"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z\"></path>\n </svg>\n </button>\n }\n <span class=\"separator\"></span>\n <span class=\"arrow\" [class.open]=\"isOpen()\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\">\n <path d=\"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z\"></path>\n </svg>\n </span>\n </div>\n </div>\n\n <!-- Dropdown Menu -->\n @if (isOpen()) {\n <div\n #menuRef\n class=\"dropdown {{menuPlacement}}\"\n [class.fixed]=\"menuPosition === 'fixed'\"\n [style.max-height]=\"maxHeight\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"isMulti\"\n [@dropdown]\n >\n <!-- Search Input -->\n @if (isSearchable) {\n <div class=\"search-container\">\n <input\n #searchInput\n type=\"text\"\n class=\"search-input\"\n placeholder=\"Search...\"\n [value]=\"searchTerm()\"\n (input)=\"onSearchChange($any($event.target).value)\"\n (click)=\"$event.stopPropagation()\"\n aria-label=\"Search options\"\n aria-autocomplete=\"list\"\n />\n </div>\n }\n\n <!-- Options List -->\n <div class=\"options-list\" id=\"options-list\">\n <!-- Max Selection Message -->\n @if (isMaxSelectionReached()) {\n <div class=\"info-message max-selection\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 20 20\" fill=\"currentColor\">\n <path d=\"M10 0C4.477 0 0 4.477 0 10s4.477 10 10 10 10-4.477 10-10S15.523 0 10 0zm1 15H9v-2h2v2zm0-4H9V5h2v6z\"/>\n </svg>\n {{maxSelectedMessage}}\n </div>\n }\n\n <!-- Min Search Length Message -->\n @if (showMinSearchMessage()) {\n <div class=\"info-message min-search\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 20 20\" fill=\"currentColor\">\n <path d=\"M10 0C4.477 0 0 4.477 0 10s4.477 10 10 10 10-4.477 10-10S15.523 0 10 0zm1 15H9v-2h2v2zm0-4H9V5h2v6z\"/>\n </svg>\n {{minSearchMessage}} ({{searchTerm().length}}/{{minSearchLength}})\n </div>\n }\n\n @if (isLoadingAsync()) {\n <div class=\"loading-message\">{{loadingMessage()}}</div>\n } @else if (displayOptions().length === 0 && !showMinSearchMessage()) {\n <div class=\"no-options\">\n {{searchTerm() ? emptySearchText : emptyStateText}}\n </div>\n } @else if (!showMinSearchMessage()) {\n <!-- Select All (Multi-select only) -->\n @if (isMulti && showSelectAll && !searchTerm()) {\n <div class=\"select-all-container\">\n <button\n class=\"select-all-button\"\n (click)=\"allOptionsSelected() ? deselectAll() : selectAll()\"\n type=\"button\"\n >\n <input\n type=\"checkbox\"\n [checked]=\"allOptionsSelected()\"\n [indeterminate]=\"someOptionsSelected()\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n readonly\n />\n <span class=\"select-all-text\">\n {{allOptionsSelected() ? deselectAllText : selectAllText}}\n </span>\n <span class=\"select-all-count\">\n ({{selectedOptions().length}}/{{getEnabledOptionsCount()}})\n </span>\n </button>\n </div>\n }\n\n <!-- Grouped Options -->\n @if (isGrouped && groupedOptions()) {\n @for (group of groupedOptions() | keyvalue; track trackByGroup($index, [$any(group.key), $any(group.value)])) {\n <div class=\"option-group\">\n <div class=\"option-group-label\">{{group.key}}</div>\n @for (option of $any(group.value); track trackByValue($index, option); let idx = $index) {\n <div\n class=\"option\"\n [class.selected]=\"isSelected(option)\"\n [class.highlighted]=\"idx === highlightedIndex()\"\n [class.disabled]=\"isOptionDisabled(option) || (isMaxSelectionReached() && !isSelected(option))\"\n [class.hidden]=\"hideSelectedOptions && isSelected(option)\"\n [class.create-option]=\"option.__isCreate__\"\n (click)=\"selectOption(option)\"\n (keydown)=\"$event.key === 'Enter' && selectOption(option)\"\n role=\"option\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"isOptionDisabled(option) || (isMaxSelectionReached() && !isSelected(option))\"\n tabindex=\"-1\"\n >\n <!-- Checkbox for multi-select -->\n @if (isMulti) {\n <input\n type=\"checkbox\"\n [checked]=\"isSelected(option)\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n readonly\n />\n }\n\n <!-- Option Icon -->\n @if (showOptionIcons && option.icon) {\n <div class=\"option-icon\">\n @if (option.icon.includes('<')) {\n <div [innerHTML]=\"sanitizeHtml(option.icon)\"></div>\n } @else {\n <img [src]=\"option.icon\" [alt]=\"getOptionLabel(option)\" />\n }\n </div>\n }\n\n <!-- Option Content -->\n <div class=\"option-content\">\n <div class=\"option-label\">{{getOptionLabel(option)}}</div>\n @if (option.description) {\n <div class=\"option-description\">{{option.description}}</div>\n }\n </div>\n\n <!-- Option Badge -->\n @if (showOptionBadges && option.badge) {\n <span\n class=\"option-badge\"\n [style.background-color]=\"option.badgeColor || currentTheme().primary\"\n >\n {{option.badge}}\n </span>\n }\n\n <!-- Check Icon for selected -->\n @if (!isMulti && isSelected(option)) {\n <svg class=\"check-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 20 20\">\n <path d=\"M7.629,14.566c0.125,0.125,0.291,0.188,0.456,0.188c0.164,0,0.329-0.062,0.456-0.188l8.219-8.221c0.252-0.252,0.252-0.659,0-0.911c-0.252-0.252-0.659-0.252-0.911,0l-7.764,7.763L4.152,9.267c-0.252-0.251-0.66-0.251-0.911,0c-0.252,0.252-0.252,0.66,0,0.911L7.629,14.566z\"></path>\n </svg>\n }\n </div>\n }\n </div>\n }\n } @else {\n <!-- Regular (Ungrouped) Options -->\n @for (option of displayOptions(); track trackByValue($index, option); let idx = $index) {\n <div\n class=\"option\"\n [class.selected]=\"isSelected(option)\"\n [class.highlighted]=\"idx === highlightedIndex()\"\n [class.disabled]=\"isOptionDisabled(option) || (isMaxSelectionReached() && !isSelected(option))\"\n [class.hidden]=\"hideSelectedOptions && isSelected(option)\"\n [class.create-option]=\"option.__isCreate__\"\n (click)=\"selectOption(option)\"\n (keydown)=\"$event.key === 'Enter' && selectOption(option)\"\n role=\"option\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"isOptionDisabled(option) || (isMaxSelectionReached() && !isSelected(option))\"\n tabindex=\"-1\"\n >\n <!-- Checkbox for multi-select -->\n @if (isMulti) {\n <input\n type=\"checkbox\"\n [checked]=\"isSelected(option)\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n readonly\n />\n }\n\n <!-- Option Icon -->\n @if (showOptionIcons && option.icon) {\n <div class=\"option-icon\">\n @if (option.icon.includes('<')) {\n <div [innerHTML]=\"sanitizeHtml(option.icon)\"></div>\n } @else {\n <img [src]=\"option.icon\" [alt]=\"getOptionLabel(option)\" />\n }\n </div>\n }\n\n <!-- Option Content -->\n <div class=\"option-content\">\n <div class=\"option-label\">{{getOptionLabel(option)}}</div>\n @if (option.description) {\n <div class=\"option-description\">{{option.description}}</div>\n }\n </div>\n\n <!-- Option Badge -->\n @if (showOptionBadges && option.badge) {\n <span\n class=\"option-badge\"\n [style.background-color]=\"option.badgeColor || currentTheme().primary\"\n >\n {{option.badge}}\n </span>\n }\n\n <!-- Check Icon for selected -->\n @if (!isMulti && isSelected(option)) {\n <svg class=\"check-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 20 20\">\n <path d=\"M7.629,14.566c0.125,0.125,0.291,0.188,0.456,0.188c0.164,0,0.329-0.062,0.456-0.188l8.219-8.221c0.252-0.252,0.252-0.659,0-0.911c-0.252-0.252-0.659-0.252-0.911,0l-7.764,7.763L4.152,9.267c-0.252-0.251-0.66-0.251-0.911,0c-0.252,0.252-0.252,0.66,0,0.911L7.629,14.566z\"></path>\n </svg>\n }\n </div>\n }\n }\n }\n </div>\n </div>\n }\n</div>\n\n<!-- Hidden native select for form compatibility -->\n@if (isMulti) {\n <select [name]=\"name\" [id]=\"id\" multiple style=\"display: none;\" [attr.aria-hidden]=\"true\">\n @for (option of selectedOptions(); track trackByValue($index, option)) {\n <option [value]=\"getOptionValue(option)\" selected>{{getOptionLabel(option)}}</option>\n }\n </select>\n} @else {\n @if (selectedOptions().length > 0) {\n <select [name]=\"name\" [id]=\"id\" style=\"display: none;\" [attr.aria-hidden]=\"true\">\n <option [value]=\"getOptionValue(selectedOptions()[0])\" selected>{{getOptionLabel(selectedOptions()[0])}}</option>\n </select>\n }\n}\n", styles: [":host{display:block;width:100%}.select-container{position:relative;width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.smaller{font-size:11px}.small{font-size:13px}.medium{font-size:14px}.large{font-size:16px}.larger{font-size:18px}.xs .select-trigger{min-height:28px;padding:4px 8px}.sm .select-trigger{min-height:32px;padding:6px 10px}.md .select-trigger{min-height:40px;padding:8px 12px}.lg .select-trigger{min-height:48px;padding:10px 14px}.xl .select-trigger{min-height:56px;padding:12px 16px}.select-container.disabled{opacity:.6;cursor:not-allowed}.select-container.rtl{direction:rtl}.select-trigger{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:#fff;border:1.5px solid #D1D5DB;border-radius:10px;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);min-height:38px;gap:8px;box-shadow:0 1px 2px #0000000d}.select-trigger:hover:not(.disabled){border-color:#9ca3af;box-shadow:0 2px 4px #00000014}.select-trigger:focus,.select-trigger.focused{outline:none;border-color:#2684ff;box-shadow:0 0 0 3px #2684ff1a,0 1px 2px #0000000d}.select-trigger.open{border-color:#2684ff;box-shadow:0 0 0 3px #2684ff1a,0 1px 2px #0000000d}.select-value{flex:1;display:flex;align-items:center;min-width:0;gap:4px}.placeholder{color:#999;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.placeholder.has-value{color:#333}.tags{display:flex;flex-wrap:wrap;gap:4px;flex:1}.tag{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;background:#e6f2ff;color:#0052cc;border-radius:6px;font-size:.875em;font-weight:500;white-space:nowrap;border:1px solid #CCE0FF;box-shadow:0 1px 2px #0000000d}.tag.disabled{background:#f0f0f0;color:#666;border-color:#d9d9d9}.tag-label{line-height:1.2}.tag-remove{background:none;border:none;color:inherit;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;border-radius:2px;transition:all .15s}.tag-remove:hover{background:#0052cc26}.tag-remove svg{fill:currentColor}.select-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.clear-button{background:none;border:none;color:#999;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:3px;transition:all .15s}.clear-button:hover{color:#333;background:#f0f0f0}.clear-button svg{fill:currentColor}.separator{width:1px;height:24px;background:#ccc;align-self:stretch}.arrow{color:#999;transition:transform .2s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;padding:4px}.arrow svg{fill:currentColor}.arrow.open{transform:rotate(180deg)}.spinner{width:16px;height:16px;border:2px solid #f3f3f3;border-top:2px solid #2684FF;border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.dropdown{position:absolute;top:calc(100% + 8px);left:0;right:0;background:#fffffffa;border:1px solid #E5E7EB;border-radius:12px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a,0 0 0 1px #0000000d;z-index:1000;overflow:hidden;backdrop-filter:blur(12px) saturate(180%);-webkit-backdrop-filter:blur(12px) saturate(180%)}.dropdown.fixed{position:fixed}.dropdown.top{top:auto;bottom:calc(100% + 4px)}.search-container{padding:8px;border-bottom:1px solid #f0f0f0;background:#fff}.search-input{width:100%;padding:6px 8px;border:1px solid #cccccc;border-radius:3px;font-size:inherit;outline:none;transition:border-color .15s}.search-input:focus{border-color:#2684ff;box-shadow:0 0 0 1px #2684ff}.options-list{max-height:inherit;overflow-y:auto;overflow-x:hidden;padding:4px 0}.options-list::-webkit-scrollbar{width:8px}.options-list::-webkit-scrollbar-track{background:transparent}.options-list::-webkit-scrollbar-thumb{background:#d9d9d9;border-radius:4px}.options-list::-webkit-scrollbar-thumb:hover{background:#b3b3b3}.select-all-container{padding:8px;border-bottom:1px solid #E5E7EB;background:#f9fafb}.select-all-button{width:100%;display:flex;align-items:center;gap:8px;padding:6px 8px;background:#fff;border:1px solid #D1D5DB;border-radius:6px;cursor:pointer;transition:all .15s;font-size:inherit;color:inherit;font-family:inherit}.select-all-button:hover{background:#f3f4f6;border-color:#9ca3af}.select-all-button input[type=checkbox]{cursor:pointer;width:16px;height:16px;margin:0;accent-color:#2684FF}.select-all-text{flex:1;text-align:left;font-weight:500}.select-all-count{color:#6b7280;font-size:.9em}.option-group{margin:4px 0}.option-group-label{padding:8px 12px 4px;font-size:.75em;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.05em;background:#f9fafb;border-bottom:1px solid #E5E7EB;position:sticky;top:0;z-index:1}.option-group .option{padding-left:20px}.option{display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;transition:all .15s cubic-bezier(.4,0,.2,1);position:relative;min-height:40px}.option-content{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.option-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;border-radius:6px;overflow:hidden;background:#f3f4f6}.option-icon img{width:100%;height:100%;object-fit:cover}.option-badge{padding:2px 8px;border-radius:12px;font-size:.75em;font-weight:500;color:#374151;background:#e5e7eb;flex-shrink:0;white-space:nowrap}.option:hover:not(.disabled):not(.create-option){background:#deebff}.option.highlighted{background:#deebff}.option.selected:not(.create-option){background:#e6f2ff;font-weight:500}.option.disabled{opacity:.5;cursor:not-allowed;background:transparent!important}.option.hidden{display:none}.option.create-option{color:#2684ff;font-weight:500;background:#f0f6ff}.option.create-option:hover{background:#e6f2ff}.option input[type=checkbox]{cursor:pointer;width:16px;height:16px;margin:0;accent-color:#2684FF}.option-label{font-weight:500;color:#1f2937;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4}.option-description{font-size:.875em;color:#6b7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.3}.check-icon{color:#2684ff;display:flex;align-items:center;margin-left:auto}.check-icon svg{fill:currentColor}.no-options,.loading-message{padding:16px 12px;text-align:center;color:#999;font-size:.95em}.info-message{padding:12px;margin:8px;border-radius:6px;font-size:.9em;display:flex;align-items:center;gap:8px}.info-message.max-selection{background:#fff4e5;color:#f57c00;border:1px solid #FFE0B2}.info-message.min-search{background:#e3f2fd;color:#1976d2;border:1px solid #BBDEFB}.info-message svg{flex-shrink:0}.rtl .select-actions,.rtl .tags,.rtl .option{flex-direction:row-reverse}.theme-blue .select-trigger:focus,.theme-blue .select-trigger.focused,.theme-blue .select-trigger.open{border-color:#2684ff;box-shadow:0 0 0 1px #2684ff}.theme-blue .option:hover:not(.disabled):not(.create-option),.theme-blue .option.highlighted{background:#deebff}.theme-blue .option.selected:not(.create-option){background:#e6f2ff}.theme-blue .tag{background:#e6f2ff;color:#0052cc;border-color:#cce0ff}.theme-blue .check-icon,.theme-blue .option.create-option{color:#2684ff}.theme-blue .spinner{border-top-color:#2684ff}.theme-blue .search-input:focus{border-color:#2684ff;box-shadow:0 0 0 1px #2684ff}.theme-purple .select-trigger:focus,.theme-purple .select-trigger.focused,.theme-purple .select-trigger.open{border-color:#9333ea;box-shadow:0 0 0 1px #9333ea}.theme-purple .option:hover:not(.disabled):not(.create-option),.theme-purple .option.highlighted{background:#f3e8ff}.theme-purple .option.selected:not(.create-option){background:#faf5ff}.theme-purple .tag{background:#faf5ff;color:#7e22ce;border-color:#e9d5ff}.theme-purple .check-icon,.theme-purple .option.create-option{color:#9333ea}.theme-purple .spinner{border-top-color:#9333ea}.theme-purple .search-input:focus{border-color:#9333ea;box-shadow:0 0 0 1px #9333ea}.theme-green .select-trigger:focus,.theme-green .select-trigger.focused,.theme-green .select-trigger.open{border-color:#10b981;box-shadow:0 0 0 1px #10b981}.theme-green .option:hover:not(.disabled):not(.create-option),.theme-green .option.highlighted{background:#d1fae5}.theme-green .option.selected:not(.create-option){background:#ecfdf5}.theme-green .tag{background:#ecfdf5;color:#059669;border-color:#a7f3d0}.theme-green .check-icon,.theme-green .option.create-option{color:#10b981}.theme-green .spinner{border-top-color:#10b981}.theme-green .search-input:focus{border-color:#10b981;box-shadow:0 0 0 1px #10b981}.theme-red .select-trigger:focus,.theme-red .select-trigger.focused,.theme-red .select-trigger.open{border-color:#ef4444;box-shadow:0 0 0 1px #ef4444}.theme-red .option:hover:not(.disabled):not(.create-option),.theme-red .option.highlighted{background:#fee2e2}.theme-red .option.selected:not(.create-option){background:#fef2f2}.theme-red .tag{background:#fef2f2;color:#dc2626;border-color:#fecaca}.theme-red .check-icon,.theme-red .option.create-option{color:#ef4444}.theme-red .spinner{border-top-color:#ef4444}.theme-red .search-input:focus{border-color:#ef4444;box-shadow:0 0 0 1px #ef4444}.theme-orange .select-trigger:focus,.theme-orange .select-trigger.focused,.theme-orange .select-trigger.open{border-color:#f97316;box-shadow:0 0 0 1px #f97316}.theme-orange .option:hover:not(.disabled):not(.create-option),.theme-orange .option.highlighted{background:#ffedd5}.theme-orange .option.selected:not(.create-option){background:#fff7ed}.theme-orange .tag{background:#fff7ed;color:#ea580c;border-color:#fed7aa}.theme-orange .check-icon,.theme-orange .option.create-option{color:#f97316}.theme-orange .spinner{border-top-color:#f97316}.theme-orange .search-input:focus{border-color:#f97316;box-shadow:0 0 0 1px #f97316}.theme-pink .select-trigger:focus,.theme-pink .select-trigger.focused,.theme-pink .select-trigger.open{border-color:#ec4899;box-shadow:0 0 0 1px #ec4899}.theme-pink .option:hover:not(.disabled):not(.create-option),.theme-pink .option.highlighted{background:#fce7f3}.theme-pink .option.selected:not(.create-option){background:#fdf2f8}.theme-pink .tag{background:#fdf2f8;color:#db2777;border-color:#fbcfe8}.theme-pink .check-icon,.theme-pink .option.create-option{color:#ec4899}.theme-pink .spinner{border-top-color:#ec4899}.theme-pink .search-input:focus{border-color:#ec4899;box-shadow:0 0 0 1px #ec4899}.theme-dark .select-trigger:focus,.theme-dark .select-trigger.focused,.theme-dark .select-trigger.open{border-color:#1f2937;box-shadow:0 0 0 1px #1f2937}.theme-dark .option:hover:not(.disabled):not(.create-option),.theme-dark .option.highlighted{background:#e5e7eb}.theme-dark .option.selected:not(.create-option){background:#f3f4f6}.theme-dark .tag{background:#f3f4f6;color:#111827;border-color:#d1d5db}.theme-dark .check-icon,.theme-dark .option.create-option{color:#1f2937}.theme-dark .spinner{border-top-color:#1f2937}.theme-dark .search-input:focus{border-color:#1f2937;box-shadow:0 0 0 1px #1f2937}\n"] }]
697
697
  }], ctorParameters: () => [{ type: i1.DomSanitizer }], propDecorators: { options: [{
@@ -1 +1 @@
1
- {"version":3,"file":"angular-perfect-select.mjs","sources":["../../src/lib/animations/select.animations.ts","../../src/lib/directives/click-outside.directive.ts","../../src/lib/constants/themes.constant.ts","../../src/lib/components/perfect-select/perfect-select.component.ts","../../src/lib/components/perfect-select/perfect-select.component.html","../../src/public-api.ts","../../src/angular-perfect-select.ts"],"sourcesContent":["import {\n trigger,\n transition,\n style,\n animate,\n query,\n stagger,\n AnimationTriggerMetadata\n} from '@angular/animations';\n\nexport const dropdownAnimation: AnimationTriggerMetadata = trigger('dropdown', [\n transition(':enter', [\n style({ opacity: 0, transform: 'translateY(-10px)' }),\n animate(\n '200ms cubic-bezier(0.4, 0, 0.2, 1)',\n style({ opacity: 1, transform: 'translateY(0)' })\n )\n ]),\n transition(':leave', [\n animate('150ms ease-out', style({ opacity: 0 }))\n ])\n]);\n\nexport const tagAnimation: AnimationTriggerMetadata = trigger('tag', [\n transition(':enter', [\n style({ opacity: 0, transform: 'scale(0.8)' }),\n animate(\n '200ms cubic-bezier(0.34, 1.56, 0.64, 1)',\n style({ opacity: 1, transform: 'scale(1)' })\n )\n ]),\n transition(':leave', [\n animate('150ms ease-out', style({ opacity: 0, transform: 'scale(0.8)' }))\n ])\n]);\n\nexport const optionListAnimation: AnimationTriggerMetadata = trigger('optionList', [\n transition(':enter', [\n query('.option', [\n style({ opacity: 0, transform: 'translateY(-5px)' }),\n stagger(15, [\n animate(\n '150ms ease-out',\n style({ opacity: 1, transform: 'translateY(0)' })\n )\n ])\n ], { optional: true })\n ])\n]);\n\nexport const selectAnimations = [dropdownAnimation, tagAnimation, optionListAnimation];\n","import {\n Directive,\n ElementRef,\n EventEmitter,\n HostListener,\n Output\n} from '@angular/core';\n\n@Directive({\n selector: '[clickOutside]',\n standalone: true\n})\nexport class ClickOutsideDirective {\n @Output() clickOutside = new EventEmitter<void>();\n\n constructor(private elementRef: ElementRef) {}\n\n @HostListener('document:click', ['$event'])\n onClick(event: MouseEvent): void {\n const clickedInside = this.elementRef.nativeElement.contains(event.target);\n if (!clickedInside) {\n this.clickOutside.emit();\n }\n }\n}\n","export interface ThemeColors {\n primary: string;\n secondary: string;\n tag: string;\n tagText: string;\n tagBorder: string;\n}\n\nexport type ThemeName = 'blue' | 'purple' | 'green' | 'red' | 'orange' | 'pink' | 'dark';\n\nexport const THEMES: Record<ThemeName, ThemeColors> = {\n blue: {\n primary: '#2684FF',\n secondary: '#DEEBFF',\n tag: '#E6F2FF',\n tagText: '#0052CC',\n tagBorder: '#CCE0FF'\n },\n purple: {\n primary: '#9333EA',\n secondary: '#F3E8FF',\n tag: '#FAF5FF',\n tagText: '#7E22CE',\n tagBorder: '#E9D5FF'\n },\n green: {\n primary: '#10B981',\n secondary: '#D1FAE5',\n tag: '#ECFDF5',\n tagText: '#059669',\n tagBorder: '#A7F3D0'\n },\n red: {\n primary: '#EF4444',\n secondary: '#FEE2E2',\n tag: '#FEF2F2',\n tagText: '#DC2626',\n tagBorder: '#FECACA'\n },\n orange: {\n primary: '#F97316',\n secondary: '#FFEDD5',\n tag: '#FFF7ED',\n tagText: '#EA580C',\n tagBorder: '#FED7AA'\n },\n pink: {\n primary: '#EC4899',\n secondary: '#FCE7F3',\n tag: '#FDF2F8',\n tagText: '#DB2777',\n tagBorder: '#FBCFE8'\n },\n dark: {\n primary: '#1F2937',\n secondary: '#E5E7EB',\n tag: '#F3F4F6',\n tagText: '#111827',\n tagBorder: '#D1D5DB'\n }\n};\n","import {\n Component,\n Input,\n Output,\n EventEmitter,\n signal,\n computed,\n HostListener,\n OnInit,\n OnDestroy,\n OnChanges,\n SimpleChanges,\n ElementRef,\n ViewChild\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { selectAnimations } from '../../animations/select.animations';\nimport { ClickOutsideDirective } from '../../directives/click-outside.directive';\nimport { THEMES, ThemeName } from '../../constants/themes.constant';\nimport { SelectOption } from '../../models/select-option.interface';\nimport {\n SelectChangeEvent,\n SelectInputChangeEvent,\n SelectCreateOptionEvent,\n SelectOptionsLoadedEvent,\n SelectLoadErrorEvent\n} from '../../models/select-events.interface';\n\n@Component({\n selector: 'ng-perfect-select',\n standalone: true,\n imports: [CommonModule, FormsModule, ClickOutsideDirective],\n templateUrl: './perfect-select.component.html',\n styleUrls: ['./perfect-select.component.scss'],\n animations: selectAnimations,\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: PerfectSelectComponent,\n multi: true\n }]\n})\nexport class PerfectSelectComponent implements ControlValueAccessor, OnInit, OnChanges, OnDestroy {\n\n // Core Props\n @Input() options: SelectOption[] = [];\n @Input() placeholder = 'Select...';\n\n // React-Select Compatible Props (dual naming)\n @Input() isMulti = false;\n @Input() set multiple(value: boolean) { this.isMulti = value; }\n @Input() isSearchable = true;\n @Input() set searchable(value: boolean) { this.isSearchable = value; }\n @Input() isClearable = true;\n @Input() set clearable(value: boolean) { this.isClearable = value; }\n @Input() isDisabled = false;\n @Input() set disabled(value: boolean) { this.isDisabled = value; }\n @Input() isLoading = false;\n @Input() set loading(value: boolean) { this.isLoading = value; }\n @Input() isRtl = false;\n @Input() closeMenuOnSelect = true;\n @Input() hideSelectedOptions = false;\n\n // Creatable Mode\n @Input() isCreatable = false;\n @Input() allowCreateWhileLoading = false;\n @Input() createOptionPosition: 'first' | 'last' = 'last';\n @Input() formatCreateLabel: (inputValue: string) => string = (inputValue) => `Create \"${inputValue}\"`;\n\n // Async Loading\n @Input() loadOptions: ((inputValue: string) => Promise<SelectOption[]>) | null = null;\n @Input() cacheOptions = true;\n @Input() defaultOptions = false;\n\n // Styling & Theming\n @Input() selectSize: 'smaller' | 'small' | 'medium' | 'large' | 'larger' = 'medium';\n @Input() containerSize: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = 'md';\n @Input() theme: ThemeName = 'blue';\n @Input() borderRadius = '8px';\n @Input() customStyles: {\n container?: string;\n control?: string;\n menu?: string;\n option?: string;\n tag?: string;\n } = {};\n @Input() maxHeight = '300px';\n @Input() menuPlacement: 'auto' | 'top' | 'bottom' = 'auto';\n @Input() menuPosition: 'absolute' | 'fixed' = 'absolute';\n\n // Option Customization\n @Input() getOptionLabel: (option: SelectOption) => string = (option) => option.label || String(option.value);\n @Input() getOptionValue: (option: SelectOption) => any = (option) => option.id || option.value;\n @Input() isOptionDisabled: (option: SelectOption) => boolean = (option) => option.disabled || false;\n @Input() filterOption: ((option: SelectOption, inputValue: string) => boolean) | null = null;\n\n // Grouping\n @Input() isGrouped = false;\n @Input() groupBy: ((option: SelectOption) => string) | null = null;\n\n // Advanced Features\n @Input() showSelectAll = false;\n @Input() selectAllText = 'Select All';\n @Input() deselectAllText = 'Deselect All';\n @Input() showOptionIcons = false;\n @Input() showOptionBadges = false;\n @Input() maxOptionsDisplay = 1000;\n @Input() optionHeight = 40;\n @Input() emptyStateText = 'No options available';\n @Input() emptySearchText = 'No results found';\n\n // v1.0.1 Features\n @Input() maxSelectedOptions: number | null = null;\n @Input() maxSelectedMessage: string = 'Maximum selections reached';\n @Input() debounceTime: number = 300;\n @Input() minSearchLength: number = 0;\n @Input() minSearchMessage: string = 'Type to search...';\n\n // Behavior\n @Input() name = 'angular-perfect-select';\n @Input() id = 'angular-perfect-select';\n @Input() autoFocus = false;\n @Input() openMenuOnFocus = false;\n @Input() openMenuOnClick = true;\n @Input() tabSelectsValue = true;\n @Input() backspaceRemovesValue = true;\n @Input() escapeClearsValue = false;\n @Input() noOptionsMessage: () => string = () => 'No options';\n @Input() loadingMessage: () => string = () => 'Loading...';\n\n // Events\n @Output() change = new EventEmitter<SelectChangeEvent>();\n @Output() clear = new EventEmitter<void>();\n @Output() focus = new EventEmitter<void>();\n @Output() blur = new EventEmitter<void>();\n @Output() menuOpen = new EventEmitter<void>();\n @Output() menuClose = new EventEmitter<void>();\n @Output() inputChange = new EventEmitter<SelectInputChangeEvent>();\n @Output() createOption = new EventEmitter<SelectCreateOptionEvent>();\n @Output() optionsLoaded = new EventEmitter<SelectOptionsLoadedEvent>();\n @Output() loadError = new EventEmitter<SelectLoadErrorEvent>();\n\n // ViewChildren\n @ViewChild('selectContainer') selectContainerRef!: ElementRef;\n @ViewChild('searchInput') searchInputRef!: ElementRef;\n @ViewChild('menuRef') menuElementRef!: ElementRef;\n\n // Signals for reactive state\n isOpen = signal(false);\n searchTerm = signal('');\n highlightedIndex = signal(-1);\n internalValue = signal<any>(this.isMulti ? [] : null);\n internalOptions = signal<SelectOption[]>([]);\n isLoadingAsync = signal(false);\n private optionsCache = new Map<string, SelectOption[]>();\n private debounceTimeout: any = null;\n\n // Computed signals\n currentTheme = computed(() => THEMES[this.theme] || THEMES.blue);\n\n filteredOptions = computed(() => {\n const term = this.searchTerm();\n const opts = this.internalOptions();\n\n // Check min search length\n if (this.minSearchLength > 0 && term.length < this.minSearchLength) {\n return [];\n }\n\n if (!term) return opts;\n\n return opts.filter(option => {\n if (this.filterOption) {\n return this.filterOption(option, term);\n }\n const label = this.getOptionLabel(option);\n return label.toLowerCase().includes(term.toLowerCase());\n });\n });\n\n selectedOptions = computed(() => {\n const value = this.internalValue();\n if (!value) return [];\n\n const allOptions = this.internalOptions();\n\n if (this.isMulti) {\n const values = Array.isArray(value) ? value : [];\n // Map values to option objects\n return values.map(v => {\n const found = allOptions.find(opt => this.getOptionValue(opt) === v);\n return found || { id: v, label: String(v), value: v };\n });\n }\n\n // Single select - find the option by value\n const found = allOptions.find(opt => this.getOptionValue(opt) === value);\n return found ? [found] : [];\n });\n\n displayText = computed(() => {\n const selected = this.selectedOptions();\n if (selected.length === 0) {\n return this.placeholder;\n }\n\n if (this.isMulti) {\n return `${selected.length} selected`;\n }\n\n return this.getOptionLabel(selected[0]);\n });\n\n groupedOptions = computed(() => {\n if (!this.isGrouped || !this.groupBy) {\n return null;\n }\n\n const opts = this.filteredOptions();\n const groups: Record<string, SelectOption[]> = {};\n\n opts.forEach(option => {\n const group = this.groupBy!(option);\n if (!groups[group]) {\n groups[group] = [];\n }\n groups[group].push(option);\n });\n\n return groups;\n });\n\n displayOptions = computed(() => {\n let opts = this.filteredOptions();\n\n if (this.isCreatable && this.searchTerm() && !this.isLoadingAsync()) {\n const term = this.searchTerm();\n const exactMatch = opts.some(opt =>\n this.getOptionLabel(opt).toLowerCase() === term.toLowerCase()\n );\n\n if (!exactMatch) {\n const createOption: SelectOption = {\n id: '__create__',\n label: this.formatCreateLabel(term),\n value: term,\n __isCreate__: true\n };\n\n if (this.createOptionPosition === 'first') {\n opts = [createOption, ...opts];\n } else {\n opts = [...opts, createOption];\n }\n }\n }\n\n return opts;\n });\n\n allOptionsSelected = computed(() => {\n if (!this.isMulti) return false;\n const opts = this.filteredOptions().filter(opt => !this.isOptionDisabled(opt));\n const selected = this.selectedOptions();\n return opts.length > 0 && opts.every(opt =>\n selected.some(s => this.getOptionValue(s) === this.getOptionValue(opt))\n );\n });\n\n someOptionsSelected = computed(() => {\n if (!this.isMulti) return false;\n const opts = this.filteredOptions().filter(opt => !this.isOptionDisabled(opt));\n const selected = this.selectedOptions();\n const selectedCount = opts.filter(opt =>\n selected.some(s => this.getOptionValue(s) === this.getOptionValue(opt))\n ).length;\n return selectedCount > 0 && selectedCount < opts.length;\n });\n\n // v1.0.1 Computed signals\n isMaxSelectionReached = computed(() => {\n if (!this.isMulti || this.maxSelectedOptions === null) return false;\n const selected = this.selectedOptions();\n return selected.length >= this.maxSelectedOptions;\n });\n\n showMinSearchMessage = computed(() => {\n if (this.minSearchLength === 0) return false;\n const term = this.searchTerm();\n return this.isOpen() && term.length > 0 && term.length < this.minSearchLength;\n });\n\n // Helper method for template\n getEnabledOptionsCount(): number {\n return this.filteredOptions().filter(opt => !this.isOptionDisabled(opt)).length;\n }\n\n // ControlValueAccessor\n private onChange: any = () => {};\n private onTouched: any = () => {};\n\n constructor(private sanitizer: DomSanitizer) {}\n\n ngOnChanges(changes: SimpleChanges): void {\n // Update internal options when the options input changes\n if (changes['options'] && this.options.length > 0 && !this.loadOptions) {\n this.internalOptions.set([...this.options]);\n }\n\n // Update closeMenuOnSelect based on isMulti\n if (changes['isMulti'] && this.isMulti && this.closeMenuOnSelect === true) {\n this.closeMenuOnSelect = false;\n }\n }\n\n writeValue(value: any): void {\n this.internalValue.set(value);\n }\n\n registerOnChange(fn: any): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: any): void {\n this.onTouched = fn;\n }\n\n setDisabledState(disabled: boolean): void {\n this.isDisabled = disabled;\n }\n\n ngOnInit(): void {\n // Initialize options\n if (this.options.length > 0) {\n this.internalOptions.set([...this.options]);\n }\n\n // Update closeMenuOnSelect based on isMulti (initial setup)\n if (this.isMulti && this.closeMenuOnSelect === true) {\n this.closeMenuOnSelect = false;\n }\n\n // Load default options if async\n if (this.loadOptions && this.defaultOptions) {\n this.handleLoadOptions('');\n }\n\n // Auto-focus if needed\n if (this.autoFocus) {\n setTimeout(() => {\n if (this.searchInputRef) {\n this.searchInputRef.nativeElement.focus();\n }\n });\n }\n }\n\n ngOnDestroy(): void {\n // Clear debounce timeout\n if (this.debounceTimeout) {\n clearTimeout(this.debounceTimeout);\n }\n }\n\n // Keyboard Navigation\n @HostListener('keydown', ['$event'])\n handleKeydown(event: KeyboardEvent): void {\n if (this.isDisabled) return;\n\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n if (!this.isOpen()) {\n this.toggleDropdown();\n } else {\n this.moveHighlight(1);\n }\n break;\n\n case 'ArrowUp':\n event.preventDefault();\n this.moveHighlight(-1);\n break;\n\n case 'Enter':\n event.preventDefault();\n if (this.isOpen()) {\n const index = this.highlightedIndex();\n const opts = this.displayOptions();\n if (index >= 0 && index < opts.length) {\n this.selectOption(opts[index]);\n }\n } else {\n this.toggleDropdown();\n }\n break;\n\n case 'Escape':\n event.preventDefault();\n if (this.isOpen()) {\n this.closeDropdown();\n }\n if (this.escapeClearsValue) {\n this.clearSelection(event);\n }\n break;\n\n case 'Tab':\n if (this.isOpen() && this.tabSelectsValue) {\n const index = this.highlightedIndex();\n const opts = this.displayOptions();\n if (index >= 0 && index < opts.length) {\n event.preventDefault();\n this.selectOption(opts[index]);\n }\n }\n if (this.isOpen()) {\n this.closeDropdown();\n }\n break;\n\n case 'Backspace':\n if (this.backspaceRemovesValue && this.isMulti && !this.searchTerm()) {\n const selected = this.selectedOptions();\n if (selected.length > 0) {\n event.preventDefault();\n this.removeOption(selected[selected.length - 1], event);\n }\n }\n break;\n }\n }\n\n // Toggle dropdown\n toggleDropdown(): void {\n if (this.isDisabled) return;\n\n if (this.isOpen()) {\n this.closeDropdown();\n } else {\n this.openDropdown();\n }\n }\n\n openDropdown(): void {\n this.isOpen.set(true);\n this.menuOpen.emit();\n\n // Focus search input\n setTimeout(() => {\n if (this.isSearchable && this.searchInputRef) {\n this.searchInputRef.nativeElement.focus();\n }\n });\n }\n\n closeDropdown(): void {\n this.isOpen.set(false);\n this.searchTerm.set('');\n this.highlightedIndex.set(-1);\n this.menuClose.emit();\n this.onTouched();\n }\n\n // Select option\n selectOption(option: SelectOption): void {\n if (this.isOptionDisabled(option)) return;\n\n // Handle create option\n if (option.__isCreate__) {\n const newOption: SelectOption = {\n id: Date.now().toString(),\n label: this.searchTerm(),\n value: this.searchTerm(),\n __isNew__: true\n };\n this.internalOptions.update(opts => [...opts, newOption]);\n this.createOption.emit({ option: newOption });\n option = newOption;\n }\n\n const optionValue = this.getOptionValue(option);\n\n if (this.isMulti) {\n const currentValue = Array.isArray(this.internalValue()) ? [...this.internalValue()] : [];\n const exists = currentValue.includes(optionValue);\n\n let newValue: any[];\n if (exists) {\n newValue = currentValue.filter((v: any) => v !== optionValue);\n } else {\n // Check max selection limit\n if (this.maxSelectedOptions !== null && currentValue.length >= this.maxSelectedOptions) {\n return; // Don't allow selection beyond max\n }\n newValue = [...currentValue, optionValue];\n }\n\n this.internalValue.set(newValue);\n this.onChange(newValue);\n this.change.emit({\n value: newValue,\n option,\n action: exists ? 'remove-value' : 'select-option'\n });\n } else {\n this.internalValue.set(optionValue);\n this.onChange(optionValue);\n this.change.emit({\n value: optionValue,\n option,\n action: 'select-option'\n });\n }\n\n if (this.closeMenuOnSelect) {\n this.closeDropdown();\n }\n\n this.searchTerm.set('');\n }\n\n // Remove option (multi-select)\n removeOption(option: SelectOption, event: Event): void {\n event.stopPropagation();\n\n const currentValue = Array.isArray(this.internalValue()) ? [...this.internalValue()] : [];\n const optionValue = this.getOptionValue(option);\n const newValue = currentValue.filter((v: any) => v !== optionValue);\n\n this.internalValue.set(newValue);\n this.onChange(newValue);\n this.change.emit({\n value: newValue,\n option,\n action: 'remove-value'\n });\n }\n\n // Clear selection\n clearSelection(event: Event): void {\n event.stopPropagation();\n\n const newValue = this.isMulti ? [] : null;\n this.internalValue.set(newValue);\n this.onChange(newValue);\n this.change.emit({\n value: newValue,\n action: 'clear'\n });\n this.clear.emit();\n }\n\n // Select All / Deselect All\n selectAll(): void {\n let opts = this.filteredOptions().filter(opt => !this.isOptionDisabled(opt));\n\n // Respect max selection limit\n if (this.maxSelectedOptions !== null && opts.length > this.maxSelectedOptions) {\n opts = opts.slice(0, this.maxSelectedOptions);\n }\n\n const values = opts.map(opt => this.getOptionValue(opt));\n this.internalValue.set(values);\n this.onChange(values);\n this.change.emit({\n value: values,\n option: opts,\n action: 'select-all'\n });\n }\n\n deselectAll(): void {\n this.internalValue.set([]);\n this.onChange([]);\n this.change.emit({\n value: [],\n action: 'deselect-all'\n });\n }\n\n // Search input change\n onSearchChange(term: string): void {\n this.searchTerm.set(term);\n this.highlightedIndex.set(0);\n this.inputChange.emit({\n value: term,\n action: 'input-change'\n });\n\n // Trigger async loading if configured with debounce\n if (this.loadOptions) {\n // Clear existing timeout\n if (this.debounceTimeout) {\n clearTimeout(this.debounceTimeout);\n }\n\n // Set new timeout for debounced loading\n this.debounceTimeout = setTimeout(() => {\n this.handleLoadOptions(term);\n }, this.debounceTime);\n }\n }\n\n // Async loading\n async handleLoadOptions(inputValue: string): Promise<void> {\n if (!this.loadOptions) return;\n\n // Check cache\n if (this.cacheOptions && this.optionsCache.has(inputValue)) {\n this.internalOptions.set(this.optionsCache.get(inputValue)!);\n return;\n }\n\n this.isLoadingAsync.set(true);\n\n try {\n const options = await this.loadOptions(inputValue);\n this.internalOptions.set(options);\n\n if (this.cacheOptions) {\n this.optionsCache.set(inputValue, options);\n }\n\n this.optionsLoaded.emit({ options });\n } catch (error) {\n this.loadError.emit({ error: error as Error });\n } finally {\n this.isLoadingAsync.set(false);\n }\n }\n\n // Move highlight index\n moveHighlight(direction: number): void {\n const opts = this.displayOptions();\n if (opts.length === 0) return;\n\n let newIndex = this.highlightedIndex() + direction;\n\n if (newIndex < 0) newIndex = 0;\n if (newIndex >= opts.length) newIndex = opts.length - 1;\n\n this.highlightedIndex.set(newIndex);\n this.scrollHighlightedIntoView();\n }\n\n // Scroll highlighted option into view\n scrollHighlightedIntoView(): void {\n setTimeout(() => {\n if (!this.menuElementRef) return;\n\n const menu = this.menuElementRef.nativeElement;\n const highlighted = menu.querySelector('.option.highlighted');\n\n if (highlighted) {\n const menuRect = menu.getBoundingClientRect();\n const optionRect = highlighted.getBoundingClientRect();\n\n if (optionRect.bottom > menuRect.bottom) {\n menu.scrollTop += optionRect.bottom - menuRect.bottom;\n } else if (optionRect.top < menuRect.top) {\n menu.scrollTop -= menuRect.top - optionRect.top;\n }\n }\n });\n }\n\n // Click outside handler\n onClickOutside(): void {\n if (this.isOpen()) {\n this.closeDropdown();\n this.blur.emit();\n }\n }\n\n // Check if option is selected\n isSelected(option: SelectOption): boolean {\n const selected = this.selectedOptions();\n const optionValue = this.getOptionValue(option);\n return selected.some(s => this.getOptionValue(s) === optionValue);\n }\n\n // Sanitize HTML for icons\n sanitizeHtml(html: string): SafeHtml {\n return this.sanitizer.bypassSecurityTrustHtml(html);\n }\n\n // Track by function for ngFor\n trackByValue(index: number, option: SelectOption): any {\n return this.getOptionValue(option);\n }\n\n trackByGroup(index: number, item: [string, SelectOption[]]): string {\n return item[0];\n }\n}\n","<div\n #selectContainer\n class=\"select-container {{selectSize}} {{containerSize}} theme-{{theme}}\"\n [class.disabled]=\"isDisabled\"\n [class.rtl]=\"isRtl\"\n (clickOutside)=\"onClickOutside()\"\n role=\"combobox\"\n tabindex=\"0\"\n [attr.aria-controls]=\"'options-list'\"\n [attr.aria-expanded]=\"isOpen()\"\n (focus)=\"openMenuOnFocus && !isOpen() && toggleDropdown(); focus.emit()\"\n [style]=\"customStyles.container || ''\"\n>\n <!-- Main Select Trigger -->\n <div\n class=\"select-trigger\"\n [class.open]=\"isOpen()\"\n [class.focused]=\"isOpen()\"\n (click)=\"openMenuOnClick && toggleDropdown()\"\n [attr.tabindex]=\"isDisabled ? -1 : 0\"\n role=\"button\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-label]=\"placeholder\"\n >\n <!-- Selected Value Display -->\n <div class=\"select-value\">\n <!-- Multi-select Tags -->\n @if (isMulti && selectedOptions().length > 0) {\n <div class=\"tags\">\n @for (option of selectedOptions(); track trackByValue($index, option)) {\n <span class=\"tag\" [class.disabled]=\"isDisabled\" [@tag]>\n <span class=\"tag-label\">{{getOptionLabel(option)}}</span>\n @if (!isDisabled) {\n <button\n class=\"tag-remove\"\n (click)=\"removeOption(option, $event)\"\n [attr.aria-label]=\"'Remove ' + getOptionLabel(option)\"\n type=\"button\"\n >\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 20 20\">\n <path d=\"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z\"></path>\n </svg>\n </button>\n }\n </span>\n }\n </div>\n } @else {\n <!-- Single Select or Placeholder -->\n <span class=\"placeholder\" [class.has-value]=\"selectedOptions().length > 0\">\n {{displayText()}}\n </span>\n }\n </div>\n\n <!-- Actions (Clear, Loading, Arrow) -->\n <div class=\"select-actions\">\n @if (isLoading || isLoadingAsync()) {\n <div class=\"spinner\"></div>\n }\n @if (isClearable && selectedOptions().length > 0 && !isDisabled && !isLoading && !isLoadingAsync()) {\n <button\n class=\"clear-button\"\n (click)=\"clearSelection($event)\"\n aria-label=\"Clear selection\"\n type=\"button\"\n >\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\">\n <path d=\"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z\"></path>\n </svg>\n </button>\n }\n <span class=\"separator\"></span>\n <span class=\"arrow\" [class.open]=\"isOpen()\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\">\n <path d=\"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z\"></path>\n </svg>\n </span>\n </div>\n </div>\n\n <!-- Dropdown Menu -->\n @if (isOpen()) {\n <div\n #menuRef\n class=\"dropdown {{menuPlacement}}\"\n [class.fixed]=\"menuPosition === 'fixed'\"\n [style.max-height]=\"maxHeight\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"isMulti\"\n [@dropdown]\n >\n <!-- Search Input -->\n @if (isSearchable) {\n <div class=\"search-container\">\n <input\n #searchInput\n type=\"text\"\n class=\"search-input\"\n placeholder=\"Search...\"\n [value]=\"searchTerm()\"\n (input)=\"onSearchChange($any($event.target).value)\"\n (click)=\"$event.stopPropagation()\"\n aria-label=\"Search options\"\n aria-autocomplete=\"list\"\n />\n </div>\n }\n\n <!-- Options List -->\n <div class=\"options-list\" id=\"options-list\">\n <!-- Max Selection Message -->\n @if (isMaxSelectionReached()) {\n <div class=\"info-message max-selection\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 20 20\" fill=\"currentColor\">\n <path d=\"M10 0C4.477 0 0 4.477 0 10s4.477 10 10 10 10-4.477 10-10S15.523 0 10 0zm1 15H9v-2h2v2zm0-4H9V5h2v6z\"/>\n </svg>\n {{maxSelectedMessage}}\n </div>\n }\n\n <!-- Min Search Length Message -->\n @if (showMinSearchMessage()) {\n <div class=\"info-message min-search\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 20 20\" fill=\"currentColor\">\n <path d=\"M10 0C4.477 0 0 4.477 0 10s4.477 10 10 10 10-4.477 10-10S15.523 0 10 0zm1 15H9v-2h2v2zm0-4H9V5h2v6z\"/>\n </svg>\n {{minSearchMessage}} ({{searchTerm().length}}/{{minSearchLength}})\n </div>\n }\n\n @if (isLoadingAsync()) {\n <div class=\"loading-message\">{{loadingMessage()}}</div>\n } @else if (displayOptions().length === 0 && !showMinSearchMessage()) {\n <div class=\"no-options\">\n {{searchTerm() ? emptySearchText : emptyStateText}}\n </div>\n } @else if (!showMinSearchMessage()) {\n <!-- Select All (Multi-select only) -->\n @if (isMulti && showSelectAll && !searchTerm()) {\n <div class=\"select-all-container\">\n <button\n class=\"select-all-button\"\n (click)=\"allOptionsSelected() ? deselectAll() : selectAll()\"\n type=\"button\"\n >\n <input\n type=\"checkbox\"\n [checked]=\"allOptionsSelected()\"\n [indeterminate]=\"someOptionsSelected()\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n readonly\n />\n <span class=\"select-all-text\">\n {{allOptionsSelected() ? deselectAllText : selectAllText}}\n </span>\n <span class=\"select-all-count\">\n ({{selectedOptions().length}}/{{getEnabledOptionsCount()}})\n </span>\n </button>\n </div>\n }\n\n <!-- Grouped Options -->\n @if (isGrouped && groupedOptions()) {\n @for (group of groupedOptions() | keyvalue; track trackByGroup($index, [$any(group.key), $any(group.value)])) {\n <div class=\"option-group\">\n <div class=\"option-group-label\">{{group.key}}</div>\n @for (option of $any(group.value); track trackByValue($index, option); let idx = $index) {\n <div\n class=\"option\"\n [class.selected]=\"isSelected(option)\"\n [class.highlighted]=\"idx === highlightedIndex()\"\n [class.disabled]=\"isOptionDisabled(option) || (isMaxSelectionReached() && !isSelected(option))\"\n [class.hidden]=\"hideSelectedOptions && isSelected(option)\"\n [class.create-option]=\"option.__isCreate__\"\n (click)=\"selectOption(option)\"\n (keydown)=\"$event.key === 'Enter' && selectOption(option)\"\n role=\"option\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"isOptionDisabled(option) || (isMaxSelectionReached() && !isSelected(option))\"\n tabindex=\"-1\"\n >\n <!-- Checkbox for multi-select -->\n @if (isMulti) {\n <input\n type=\"checkbox\"\n [checked]=\"isSelected(option)\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n readonly\n />\n }\n\n <!-- Option Icon -->\n @if (showOptionIcons && option.icon) {\n <div class=\"option-icon\">\n @if (option.icon.includes('<')) {\n <div [innerHTML]=\"sanitizeHtml(option.icon)\"></div>\n } @else {\n <img [src]=\"option.icon\" [alt]=\"getOptionLabel(option)\" />\n }\n </div>\n }\n\n <!-- Option Content -->\n <div class=\"option-content\">\n <div class=\"option-label\">{{getOptionLabel(option)}}</div>\n @if (option.description) {\n <div class=\"option-description\">{{option.description}}</div>\n }\n </div>\n\n <!-- Option Badge -->\n @if (showOptionBadges && option.badge) {\n <span\n class=\"option-badge\"\n [style.background-color]=\"option.badgeColor || currentTheme().primary\"\n >\n {{option.badge}}\n </span>\n }\n\n <!-- Check Icon for selected -->\n @if (!isMulti && isSelected(option)) {\n <svg class=\"check-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 20 20\">\n <path d=\"M7.629,14.566c0.125,0.125,0.291,0.188,0.456,0.188c0.164,0,0.329-0.062,0.456-0.188l8.219-8.221c0.252-0.252,0.252-0.659,0-0.911c-0.252-0.252-0.659-0.252-0.911,0l-7.764,7.763L4.152,9.267c-0.252-0.251-0.66-0.251-0.911,0c-0.252,0.252-0.252,0.66,0,0.911L7.629,14.566z\"></path>\n </svg>\n }\n </div>\n }\n </div>\n }\n } @else {\n <!-- Regular (Ungrouped) Options -->\n @for (option of displayOptions(); track trackByValue($index, option); let idx = $index) {\n <div\n class=\"option\"\n [class.selected]=\"isSelected(option)\"\n [class.highlighted]=\"idx === highlightedIndex()\"\n [class.disabled]=\"isOptionDisabled(option) || (isMaxSelectionReached() && !isSelected(option))\"\n [class.hidden]=\"hideSelectedOptions && isSelected(option)\"\n [class.create-option]=\"option.__isCreate__\"\n (click)=\"selectOption(option)\"\n (keydown)=\"$event.key === 'Enter' && selectOption(option)\"\n role=\"option\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"isOptionDisabled(option) || (isMaxSelectionReached() && !isSelected(option))\"\n tabindex=\"-1\"\n >\n <!-- Checkbox for multi-select -->\n @if (isMulti) {\n <input\n type=\"checkbox\"\n [checked]=\"isSelected(option)\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n readonly\n />\n }\n\n <!-- Option Icon -->\n @if (showOptionIcons && option.icon) {\n <div class=\"option-icon\">\n @if (option.icon.includes('<')) {\n <div [innerHTML]=\"sanitizeHtml(option.icon)\"></div>\n } @else {\n <img [src]=\"option.icon\" [alt]=\"getOptionLabel(option)\" />\n }\n </div>\n }\n\n <!-- Option Content -->\n <div class=\"option-content\">\n <div class=\"option-label\">{{getOptionLabel(option)}}</div>\n @if (option.description) {\n <div class=\"option-description\">{{option.description}}</div>\n }\n </div>\n\n <!-- Option Badge -->\n @if (showOptionBadges && option.badge) {\n <span\n class=\"option-badge\"\n [style.background-color]=\"option.badgeColor || currentTheme().primary\"\n >\n {{option.badge}}\n </span>\n }\n\n <!-- Check Icon for selected -->\n @if (!isMulti && isSelected(option)) {\n <svg class=\"check-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 20 20\">\n <path d=\"M7.629,14.566c0.125,0.125,0.291,0.188,0.456,0.188c0.164,0,0.329-0.062,0.456-0.188l8.219-8.221c0.252-0.252,0.252-0.659,0-0.911c-0.252-0.252-0.659-0.252-0.911,0l-7.764,7.763L4.152,9.267c-0.252-0.251-0.66-0.251-0.911,0c-0.252,0.252-0.252,0.66,0,0.911L7.629,14.566z\"></path>\n </svg>\n }\n </div>\n }\n }\n }\n </div>\n </div>\n }\n</div>\n\n<!-- Hidden native select for form compatibility -->\n@if (isMulti) {\n <select [name]=\"name\" [id]=\"id\" multiple style=\"display: none;\" [attr.aria-hidden]=\"true\">\n @for (option of selectedOptions(); track trackByValue($index, option)) {\n <option [value]=\"getOptionValue(option)\" selected>{{getOptionLabel(option)}}</option>\n }\n </select>\n} @else {\n @if (selectedOptions().length > 0) {\n <select [name]=\"name\" [id]=\"id\" style=\"display: none;\" [attr.aria-hidden]=\"true\">\n <option [value]=\"getOptionValue(selectedOptions()[0])\" selected>{{getOptionLabel(selectedOptions()[0])}}</option>\n </select>\n }\n}\n","/*\n * Public API Surface of angular-perfect-select\n */\n\n// Main Component\nexport * from './lib/components/perfect-select/perfect-select.component';\n\n// Models & Interfaces\nexport * from './lib/models/select-option.interface';\nexport * from './lib/models/select-events.interface';\n\n// Constants & Themes\nexport * from './lib/constants/themes.constant';\n\n// Animations\nexport * from './lib/animations/select.animations';\n\n// Directives\nexport * from './lib/directives/click-outside.directive';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAUO,MAAM,iBAAiB,GAA6B,OAAO,CAAC,UAAU,EAAE;IAC7E,UAAU,CAAC,QAAQ,EAAE;QACnB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAAC;AACrD,QAAA,OAAO,CACL,oCAAoC,EACpC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;KAEpD,CAAC;IACF,UAAU,CAAC,QAAQ,EAAE;QACnB,OAAO,CAAC,gBAAgB,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;KAChD;AACF,CAAA;AAEM,MAAM,YAAY,GAA6B,OAAO,CAAC,KAAK,EAAE;IACnE,UAAU,CAAC,QAAQ,EAAE;QACnB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AAC9C,QAAA,OAAO,CACL,yCAAyC,EACzC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;KAE/C,CAAC;IACF,UAAU,CAAC,QAAQ,EAAE;AACnB,QAAA,OAAO,CAAC,gBAAgB,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;KACzE;AACF,CAAA;AAEM,MAAM,mBAAmB,GAA6B,OAAO,CAAC,YAAY,EAAE;IACjF,UAAU,CAAC,QAAQ,EAAE;QACnB,KAAK,CAAC,SAAS,EAAE;YACf,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;YACpD,OAAO,CAAC,EAAE,EAAE;AACV,gBAAA,OAAO,CACL,gBAAgB,EAChB,KA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AAW,EAAA,sBAAwB;AACnC,4BAAA,KAAK,EAAE;yBACR,CAAC,EAAA,QAAA,EAAA,+qcAAA,EAAA,MAAA,EAAA,CAAA,opVAAA,CAAA,EAAA;;sBAKD;;sBACA;;sBAGA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAGA;;sBACA;;sBACA;;sBACA;;sBAGA;;sBACA;;sBACA;;sBAGA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAOA;;sBACA;;sBACA;;sBAGA;;sBACA;;sBACA;;sBACA;;sBAGA;;sBACA;;sBAGA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAGA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAGA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAGA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAGA,SAAS;uBAAC,iBAAiB;;sBAC3B,SAAS;uBAAC,aAAa;;sBACvB,SAAS;uBAAC,SAAS;;sBA4NnB,YAAY;uBAAC,SAAS,EAAE,CAAC,QAAQ,CAAC;;;AE9WrC;;AAEG;AAEH;;ACJA;;AAEG;;;;"}
1
+ {"version":3,"file":"angular-perfect-select.mjs","sources":["../../src/lib/animations/select.animations.ts","../../src/lib/directives/click-outside.directive.ts","../../src/lib/constants/themes.constant.ts","../../src/lib/components/perfect-select/perfect-select.component.ts","../../src/lib/components/perfect-select/perfect-select.component.html","../../src/public-api.ts","../../src/angular-perfect-select.ts"],"sourcesContent":["import {\n trigger,\n transition,\n style,\n animate,\n query,\n stagger,\n AnimationTriggerMetadata\n} from '@angular/animations';\n\nexport const dropdownAnimation: AnimationTriggerMetadata = trigger('dropdown', [\n transition(':enter', [\n style({ opacity: 0, transform: 'translateY(-10px)' }),\n animate(\n '200ms cubic-bezier(0.4, 0, 0.2, 1)',\n style({ opacity: 1, transform: 'translateY(0)' })\n )\n ]),\n transition(':leave', [\n animate('150ms ease-out', style({ opacity: 0 }))\n ])\n]);\n\nexport const tagAnimation: AnimationTriggerMetadata = trigger('tag', [\n transition(':enter', [\n style({ opacity: 0, transform: 'scale(0.8)' }),\n animate(\n '200ms cubic-bezier(0.34, 1.56, 0.64, 1)',\n style({ opacity: 1, transform: 'scale(1)' })\n )\n ]),\n transition(':leave', [\n animate('150ms ease-out', style({ opacity: 0, transform: 'scale(0.8)' }))\n ])\n]);\n\nexport const optionListAnimation: AnimationTriggerMetadata = trigger('optionList', [\n transition(':enter', [\n query('.option', [\n style({ opacity: 0, transform: 'translateY(-5px)' }),\n stagger(15, [\n animate(\n '150ms ease-out',\n style({ opacity: 1, transform: 'translateY(0)' })\n )\n ])\n ], { optional: true })\n ])\n]);\n\nexport const selectAnimations = [dropdownAnimation, tagAnimation, optionListAnimation];\n","import {\n Directive,\n ElementRef,\n EventEmitter,\n HostListener,\n Output\n} from '@angular/core';\n\n@Directive({\n selector: '[clickOutside]',\n standalone: true\n})\nexport class ClickOutsideDirective {\n @Output() clickOutside = new EventEmitter<void>();\n\n constructor(private elementRef: ElementRef) {}\n\n @HostListener('document:click', ['$event'])\n onClick(event: MouseEvent): void {\n const clickedInside = this.elementRef.nativeElement.contains(event.target);\n if (!clickedInside) {\n this.clickOutside.emit();\n }\n }\n}\n","export interface ThemeColors {\n primary: string;\n secondary: string;\n tag: string;\n tagText: string;\n tagBorder: string;\n}\n\nexport type ThemeName = 'blue' | 'purple' | 'green' | 'red' | 'orange' | 'pink' | 'dark';\n\nexport const THEMES: Record<ThemeName, ThemeColors> = {\n blue: {\n primary: '#2684FF',\n secondary: '#DEEBFF',\n tag: '#E6F2FF',\n tagText: '#0052CC',\n tagBorder: '#CCE0FF'\n },\n purple: {\n primary: '#9333EA',\n secondary: '#F3E8FF',\n tag: '#FAF5FF',\n tagText: '#7E22CE',\n tagBorder: '#E9D5FF'\n },\n green: {\n primary: '#10B981',\n secondary: '#D1FAE5',\n tag: '#ECFDF5',\n tagText: '#059669',\n tagBorder: '#A7F3D0'\n },\n red: {\n primary: '#EF4444',\n secondary: '#FEE2E2',\n tag: '#FEF2F2',\n tagText: '#DC2626',\n tagBorder: '#FECACA'\n },\n orange: {\n primary: '#F97316',\n secondary: '#FFEDD5',\n tag: '#FFF7ED',\n tagText: '#EA580C',\n tagBorder: '#FED7AA'\n },\n pink: {\n primary: '#EC4899',\n secondary: '#FCE7F3',\n tag: '#FDF2F8',\n tagText: '#DB2777',\n tagBorder: '#FBCFE8'\n },\n dark: {\n primary: '#1F2937',\n secondary: '#E5E7EB',\n tag: '#F3F4F6',\n tagText: '#111827',\n tagBorder: '#D1D5DB'\n }\n};\n","import {\n Component,\n Input,\n Output,\n EventEmitter,\n signal,\n computed,\n HostListener,\n OnInit,\n OnDestroy,\n OnChanges,\n SimpleChanges,\n ElementRef,\n ViewChild,\n forwardRef\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { selectAnimations } from '../../animations/select.animations';\nimport { ClickOutsideDirective } from '../../directives/click-outside.directive';\nimport { THEMES, ThemeName } from '../../constants/themes.constant';\nimport { SelectOption } from '../../models/select-option.interface';\nimport {\n SelectChangeEvent,\n SelectInputChangeEvent,\n SelectCreateOptionEvent,\n SelectOptionsLoadedEvent,\n SelectLoadErrorEvent\n} from '../../models/select-events.interface';\n\n@Component({\n selector: 'ng-perfect-select',\n standalone: true,\n imports: [CommonModule, FormsModule, ClickOutsideDirective],\n templateUrl: './perfect-select.component.html',\n styleUrls: ['./perfect-select.component.scss'],\n animations: selectAnimations,\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => PerfectSelectComponent),\n multi: true\n }]\n})\nexport class PerfectSelectComponent implements ControlValueAccessor, OnInit, OnChanges, OnDestroy {\n\n // Core Props\n @Input() options: SelectOption[] = [];\n @Input() placeholder = 'Select...';\n\n // React-Select Compatible Props (dual naming)\n @Input() isMulti = false;\n @Input() set multiple(value: boolean) { this.isMulti = value; }\n @Input() isSearchable = true;\n @Input() set searchable(value: boolean) { this.isSearchable = value; }\n @Input() isClearable = true;\n @Input() set clearable(value: boolean) { this.isClearable = value; }\n @Input() isDisabled = false;\n @Input() set disabled(value: boolean) { this.isDisabled = value; }\n @Input() isLoading = false;\n @Input() set loading(value: boolean) { this.isLoading = value; }\n @Input() isRtl = false;\n @Input() closeMenuOnSelect = true;\n @Input() hideSelectedOptions = false;\n\n // Creatable Mode\n @Input() isCreatable = false;\n @Input() allowCreateWhileLoading = false;\n @Input() createOptionPosition: 'first' | 'last' = 'last';\n @Input() formatCreateLabel: (inputValue: string) => string = (inputValue) => `Create \"${inputValue}\"`;\n\n // Async Loading\n @Input() loadOptions: ((inputValue: string) => Promise<SelectOption[]>) | null = null;\n @Input() cacheOptions = true;\n @Input() defaultOptions = false;\n\n // Styling & Theming\n @Input() selectSize: 'smaller' | 'small' | 'medium' | 'large' | 'larger' = 'medium';\n @Input() containerSize: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = 'md';\n @Input() theme: ThemeName = 'blue';\n @Input() borderRadius = '8px';\n @Input() customStyles: {\n container?: string;\n control?: string;\n menu?: string;\n option?: string;\n tag?: string;\n } = {};\n @Input() maxHeight = '300px';\n @Input() menuPlacement: 'auto' | 'top' | 'bottom' = 'auto';\n @Input() menuPosition: 'absolute' | 'fixed' = 'absolute';\n\n // Option Customization\n @Input() getOptionLabel: (option: SelectOption) => string = (option) => option.label || String(option.value);\n @Input() getOptionValue: (option: SelectOption) => any = (option) => option.id || option.value;\n @Input() isOptionDisabled: (option: SelectOption) => boolean = (option) => option.disabled || false;\n @Input() filterOption: ((option: SelectOption, inputValue: string) => boolean) | null = null;\n\n // Grouping\n @Input() isGrouped = false;\n @Input() groupBy: ((option: SelectOption) => string) | null = null;\n\n // Advanced Features\n @Input() showSelectAll = false;\n @Input() selectAllText = 'Select All';\n @Input() deselectAllText = 'Deselect All';\n @Input() showOptionIcons = false;\n @Input() showOptionBadges = false;\n @Input() maxOptionsDisplay = 1000;\n @Input() optionHeight = 40;\n @Input() emptyStateText = 'No options available';\n @Input() emptySearchText = 'No results found';\n\n // v1.0.1 Features\n @Input() maxSelectedOptions: number | null = null;\n @Input() maxSelectedMessage: string = 'Maximum selections reached';\n @Input() debounceTime: number = 300;\n @Input() minSearchLength: number = 0;\n @Input() minSearchMessage: string = 'Type to search...';\n\n // Behavior\n @Input() name = 'angular-perfect-select';\n @Input() id = 'angular-perfect-select';\n @Input() autoFocus = false;\n @Input() openMenuOnFocus = false;\n @Input() openMenuOnClick = true;\n @Input() tabSelectsValue = true;\n @Input() backspaceRemovesValue = true;\n @Input() escapeClearsValue = false;\n @Input() noOptionsMessage: () => string = () => 'No options';\n @Input() loadingMessage: () => string = () => 'Loading...';\n\n // Events\n @Output() change = new EventEmitter<SelectChangeEvent>();\n @Output() clear = new EventEmitter<void>();\n @Output() focus = new EventEmitter<void>();\n @Output() blur = new EventEmitter<void>();\n @Output() menuOpen = new EventEmitter<void>();\n @Output() menuClose = new EventEmitter<void>();\n @Output() inputChange = new EventEmitter<SelectInputChangeEvent>();\n @Output() createOption = new EventEmitter<SelectCreateOptionEvent>();\n @Output() optionsLoaded = new EventEmitter<SelectOptionsLoadedEvent>();\n @Output() loadError = new EventEmitter<SelectLoadErrorEvent>();\n\n // ViewChildren\n @ViewChild('selectContainer') selectContainerRef!: ElementRef;\n @ViewChild('searchInput') searchInputRef!: ElementRef;\n @ViewChild('menuRef') menuElementRef!: ElementRef;\n\n // Signals for reactive state\n isOpen = signal(false);\n searchTerm = signal('');\n highlightedIndex = signal(-1);\n internalValue = signal<any>(this.isMulti ? [] : null);\n internalOptions = signal<SelectOption[]>([]);\n isLoadingAsync = signal(false);\n private optionsCache = new Map<string, SelectOption[]>();\n private debounceTimeout: any = null;\n\n // Computed signals\n currentTheme = computed(() => THEMES[this.theme] || THEMES.blue);\n\n filteredOptions = computed(() => {\n const term = this.searchTerm();\n const opts = this.internalOptions();\n\n // Check min search length\n if (this.minSearchLength > 0 && term.length < this.minSearchLength) {\n return [];\n }\n\n if (!term) return opts;\n\n return opts.filter(option => {\n if (this.filterOption) {\n return this.filterOption(option, term);\n }\n const label = this.getOptionLabel(option);\n return label.toLowerCase().includes(term.toLowerCase());\n });\n });\n\n selectedOptions = computed(() => {\n const value = this.internalValue();\n if (!value) return [];\n\n const allOptions = this.internalOptions();\n\n if (this.isMulti) {\n const values = Array.isArray(value) ? value : [];\n // Map values to option objects\n return values.map(v => {\n const found = allOptions.find(opt => this.getOptionValue(opt) === v);\n return found || { id: v, label: String(v), value: v };\n });\n }\n\n // Single select - find the option by value\n const found = allOptions.find(opt => this.getOptionValue(opt) === value);\n return found ? [found] : [];\n });\n\n displayText = computed(() => {\n const selected = this.selectedOptions();\n if (selected.length === 0) {\n return this.placeholder;\n }\n\n if (this.isMulti) {\n return `${selected.length} selected`;\n }\n\n return this.getOptionLabel(selected[0]);\n });\n\n groupedOptions = computed(() => {\n if (!this.isGrouped || !this.groupBy) {\n return null;\n }\n\n const opts = this.filteredOptions();\n const groups: Record<string, SelectOption[]> = {};\n\n opts.forEach(option => {\n const group = this.groupBy!(option);\n if (!groups[group]) {\n groups[group] = [];\n }\n groups[group].push(option);\n });\n\n return groups;\n });\n\n displayOptions = computed(() => {\n let opts = this.filteredOptions();\n\n if (this.isCreatable && this.searchTerm() && !this.isLoadingAsync()) {\n const term = this.searchTerm();\n const exactMatch = opts.some(opt =>\n this.getOptionLabel(opt).toLowerCase() === term.toLowerCase()\n );\n\n if (!exactMatch) {\n const createOption: SelectOption = {\n id: '__create__',\n label: this.formatCreateLabel(term),\n value: term,\n __isCreate__: true\n };\n\n if (this.createOptionPosition === 'first') {\n opts = [createOption, ...opts];\n } else {\n opts = [...opts, createOption];\n }\n }\n }\n\n return opts;\n });\n\n allOptionsSelected = computed(() => {\n if (!this.isMulti) return false;\n const opts = this.filteredOptions().filter(opt => !this.isOptionDisabled(opt));\n const selected = this.selectedOptions();\n return opts.length > 0 && opts.every(opt =>\n selected.some(s => this.getOptionValue(s) === this.getOptionValue(opt))\n );\n });\n\n someOptionsSelected = computed(() => {\n if (!this.isMulti) return false;\n const opts = this.filteredOptions().filter(opt => !this.isOptionDisabled(opt));\n const selected = this.selectedOptions();\n const selectedCount = opts.filter(opt =>\n selected.some(s => this.getOptionValue(s) === this.getOptionValue(opt))\n ).length;\n return selectedCount > 0 && selectedCount < opts.length;\n });\n\n // v1.0.1 Computed signals\n isMaxSelectionReached = computed(() => {\n if (!this.isMulti || this.maxSelectedOptions === null) return false;\n const selected = this.selectedOptions();\n return selected.length >= this.maxSelectedOptions;\n });\n\n showMinSearchMessage = computed(() => {\n if (this.minSearchLength === 0) return false;\n const term = this.searchTerm();\n return this.isOpen() && term.length > 0 && term.length < this.minSearchLength;\n });\n\n // Helper method for template\n getEnabledOptionsCount(): number {\n return this.filteredOptions().filter(opt => !this.isOptionDisabled(opt)).length;\n }\n\n // ControlValueAccessor\n private onChange: any = () => {};\n private onTouched: any = () => {};\n\n constructor(private sanitizer: DomSanitizer) {}\n\n ngOnChanges(changes: SimpleChanges): void {\n // Update internal options when the options input changes\n if (changes['options'] && this.options.length > 0 && !this.loadOptions) {\n this.internalOptions.set([...this.options]);\n }\n\n // Update closeMenuOnSelect based on isMulti\n if (changes['isMulti'] && this.isMulti && this.closeMenuOnSelect === true) {\n this.closeMenuOnSelect = false;\n }\n }\n\n writeValue(value: any): void {\n this.internalValue.set(value);\n }\n\n registerOnChange(fn: any): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: any): void {\n this.onTouched = fn;\n }\n\n setDisabledState(disabled: boolean): void {\n this.isDisabled = disabled;\n }\n\n ngOnInit(): void {\n // Initialize options\n if (this.options.length > 0) {\n this.internalOptions.set([...this.options]);\n }\n\n // Update closeMenuOnSelect based on isMulti (initial setup)\n if (this.isMulti && this.closeMenuOnSelect === true) {\n this.closeMenuOnSelect = false;\n }\n\n // Load default options if async\n if (this.loadOptions && this.defaultOptions) {\n this.handleLoadOptions('');\n }\n\n // Auto-focus if needed\n if (this.autoFocus) {\n setTimeout(() => {\n if (this.searchInputRef) {\n this.searchInputRef.nativeElement.focus();\n }\n });\n }\n }\n\n ngOnDestroy(): void {\n // Clear debounce timeout\n if (this.debounceTimeout) {\n clearTimeout(this.debounceTimeout);\n }\n }\n\n // Keyboard Navigation\n @HostListener('keydown', ['$event'])\n handleKeydown(event: KeyboardEvent): void {\n if (this.isDisabled) return;\n\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n if (!this.isOpen()) {\n this.toggleDropdown();\n } else {\n this.moveHighlight(1);\n }\n break;\n\n case 'ArrowUp':\n event.preventDefault();\n this.moveHighlight(-1);\n break;\n\n case 'Enter':\n event.preventDefault();\n if (this.isOpen()) {\n const index = this.highlightedIndex();\n const opts = this.displayOptions();\n if (index >= 0 && index < opts.length) {\n this.selectOption(opts[index]);\n }\n } else {\n this.toggleDropdown();\n }\n break;\n\n case 'Escape':\n event.preventDefault();\n if (this.isOpen()) {\n this.closeDropdown();\n }\n if (this.escapeClearsValue) {\n this.clearSelection(event);\n }\n break;\n\n case 'Tab':\n if (this.isOpen() && this.tabSelectsValue) {\n const index = this.highlightedIndex();\n const opts = this.displayOptions();\n if (index >= 0 && index < opts.length) {\n event.preventDefault();\n this.selectOption(opts[index]);\n }\n }\n if (this.isOpen()) {\n this.closeDropdown();\n }\n break;\n\n case 'Backspace':\n if (this.backspaceRemovesValue && this.isMulti && !this.searchTerm()) {\n const selected = this.selectedOptions();\n if (selected.length > 0) {\n event.preventDefault();\n this.removeOption(selected[selected.length - 1], event);\n }\n }\n break;\n }\n }\n\n // Toggle dropdown\n toggleDropdown(): void {\n if (this.isDisabled) return;\n\n if (this.isOpen()) {\n this.closeDropdown();\n } else {\n this.openDropdown();\n }\n }\n\n openDropdown(): void {\n this.isOpen.set(true);\n this.menuOpen.emit();\n\n // Focus search input\n setTimeout(() => {\n if (this.isSearchable && this.searchInputRef) {\n this.searchInputRef.nativeElement.focus();\n }\n });\n }\n\n closeDropdown(): void {\n this.isOpen.set(false);\n this.searchTerm.set('');\n this.highlightedIndex.set(-1);\n this.menuClose.emit();\n this.onTouched();\n }\n\n // Select option\n selectOption(option: SelectOption): void {\n if (this.isOptionDisabled(option)) return;\n\n // Handle create option\n if (option.__isCreate__) {\n const newOption: SelectOption = {\n id: Date.now().toString(),\n label: this.searchTerm(),\n value: this.searchTerm(),\n __isNew__: true\n };\n this.internalOptions.update(opts => [...opts, newOption]);\n this.createOption.emit({ option: newOption });\n option = newOption;\n }\n\n const optionValue = this.getOptionValue(option);\n\n if (this.isMulti) {\n const currentValue = Array.isArray(this.internalValue()) ? [...this.internalValue()] : [];\n const exists = currentValue.includes(optionValue);\n\n let newValue: any[];\n if (exists) {\n newValue = currentValue.filter((v: any) => v !== optionValue);\n } else {\n // Check max selection limit\n if (this.maxSelectedOptions !== null && currentValue.length >= this.maxSelectedOptions) {\n return; // Don't allow selection beyond max\n }\n newValue = [...currentValue, optionValue];\n }\n\n this.internalValue.set(newValue);\n this.onChange(newValue);\n this.change.emit({\n value: newValue,\n option,\n action: exists ? 'remove-value' : 'select-option'\n });\n } else {\n this.internalValue.set(optionValue);\n this.onChange(optionValue);\n this.change.emit({\n value: optionValue,\n option,\n action: 'select-option'\n });\n }\n\n if (this.closeMenuOnSelect) {\n this.closeDropdown();\n }\n\n this.searchTerm.set('');\n }\n\n // Remove option (multi-select)\n removeOption(option: SelectOption, event: Event): void {\n event.stopPropagation();\n\n const currentValue = Array.isArray(this.internalValue()) ? [...this.internalValue()] : [];\n const optionValue = this.getOptionValue(option);\n const newValue = currentValue.filter((v: any) => v !== optionValue);\n\n this.internalValue.set(newValue);\n this.onChange(newValue);\n this.change.emit({\n value: newValue,\n option,\n action: 'remove-value'\n });\n }\n\n // Clear selection\n clearSelection(event: Event): void {\n event.stopPropagation();\n\n const newValue = this.isMulti ? [] : null;\n this.internalValue.set(newValue);\n this.onChange(newValue);\n this.change.emit({\n value: newValue,\n action: 'clear'\n });\n this.clear.emit();\n }\n\n // Select All / Deselect All\n selectAll(): void {\n let opts = this.filteredOptions().filter(opt => !this.isOptionDisabled(opt));\n\n // Respect max selection limit\n if (this.maxSelectedOptions !== null && opts.length > this.maxSelectedOptions) {\n opts = opts.slice(0, this.maxSelectedOptions);\n }\n\n const values = opts.map(opt => this.getOptionValue(opt));\n this.internalValue.set(values);\n this.onChange(values);\n this.change.emit({\n value: values,\n option: opts,\n action: 'select-all'\n });\n }\n\n deselectAll(): void {\n this.internalValue.set([]);\n this.onChange([]);\n this.change.emit({\n value: [],\n action: 'deselect-all'\n });\n }\n\n // Search input change\n onSearchChange(term: string): void {\n this.searchTerm.set(term);\n this.highlightedIndex.set(0);\n this.inputChange.emit({\n value: term,\n action: 'input-change'\n });\n\n // Trigger async loading if configured with debounce\n if (this.loadOptions) {\n // Clear existing timeout\n if (this.debounceTimeout) {\n clearTimeout(this.debounceTimeout);\n }\n\n // Set new timeout for debounced loading\n this.debounceTimeout = setTimeout(() => {\n this.handleLoadOptions(term);\n }, this.debounceTime);\n }\n }\n\n // Async loading\n async handleLoadOptions(inputValue: string): Promise<void> {\n if (!this.loadOptions) return;\n\n // Check cache\n if (this.cacheOptions && this.optionsCache.has(inputValue)) {\n this.internalOptions.set(this.optionsCache.get(inputValue)!);\n return;\n }\n\n this.isLoadingAsync.set(true);\n\n try {\n const options = await this.loadOptions(inputValue);\n this.internalOptions.set(options);\n\n if (this.cacheOptions) {\n this.optionsCache.set(inputValue, options);\n }\n\n this.optionsLoaded.emit({ options });\n } catch (error) {\n this.loadError.emit({ error: error as Error });\n } finally {\n this.isLoadingAsync.set(false);\n }\n }\n\n // Move highlight index\n moveHighlight(direction: number): void {\n const opts = this.displayOptions();\n if (opts.length === 0) return;\n\n let newIndex = this.highlightedIndex() + direction;\n\n if (newIndex < 0) newIndex = 0;\n if (newIndex >= opts.length) newIndex = opts.length - 1;\n\n this.highlightedIndex.set(newIndex);\n this.scrollHighlightedIntoView();\n }\n\n // Scroll highlighted option into view\n scrollHighlightedIntoView(): void {\n setTimeout(() => {\n if (!this.menuElementRef) return;\n\n const menu = this.menuElementRef.nativeElement;\n const highlighted = menu.querySelector('.option.highlighted');\n\n if (highlighted) {\n const menuRect = menu.getBoundingClientRect();\n const optionRect = highlighted.getBoundingClientRect();\n\n if (optionRect.bottom > menuRect.bottom) {\n menu.scrollTop += optionRect.bottom - menuRect.bottom;\n } else if (optionRect.top < menuRect.top) {\n menu.scrollTop -= menuRect.top - optionRect.top;\n }\n }\n });\n }\n\n // Click outside handler\n onClickOutside(): void {\n if (this.isOpen()) {\n this.closeDropdown();\n this.blur.emit();\n }\n }\n\n // Check if option is selected\n isSelected(option: SelectOption): boolean {\n const selected = this.selectedOptions();\n const optionValue = this.getOptionValue(option);\n return selected.some(s => this.getOptionValue(s) === optionValue);\n }\n\n // Sanitize HTML for icons\n sanitizeHtml(html: string): SafeHtml {\n return this.sanitizer.bypassSecurityTrustHtml(html);\n }\n\n // Track by function for ngFor\n trackByValue(index: number, option: SelectOption): any {\n return this.getOptionValue(option);\n }\n\n trackByGroup(index: number, item: [string, SelectOption[]]): string {\n return item[0];\n }\n}\n","<div\n #selectContainer\n class=\"select-container {{selectSize}} {{containerSize}} theme-{{theme}}\"\n [class.disabled]=\"isDisabled\"\n [class.rtl]=\"isRtl\"\n (clickOutside)=\"onClickOutside()\"\n role=\"combobox\"\n tabindex=\"0\"\n [attr.aria-controls]=\"'options-list'\"\n [attr.aria-expanded]=\"isOpen()\"\n (focus)=\"openMenuOnFocus && !isOpen() && toggleDropdown(); focus.emit()\"\n [style]=\"customStyles.container || ''\"\n>\n <!-- Main Select Trigger -->\n <div\n class=\"select-trigger\"\n [class.open]=\"isOpen()\"\n [class.focused]=\"isOpen()\"\n (click)=\"openMenuOnClick && toggleDropdown()\"\n [attr.tabindex]=\"isDisabled ? -1 : 0\"\n role=\"button\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-label]=\"placeholder\"\n >\n <!-- Selected Value Display -->\n <div class=\"select-value\">\n <!-- Multi-select Tags -->\n @if (isMulti && selectedOptions().length > 0) {\n <div class=\"tags\">\n @for (option of selectedOptions(); track trackByValue($index, option)) {\n <span class=\"tag\" [class.disabled]=\"isDisabled\" [@tag]>\n <span class=\"tag-label\">{{getOptionLabel(option)}}</span>\n @if (!isDisabled) {\n <button\n class=\"tag-remove\"\n (click)=\"removeOption(option, $event)\"\n [attr.aria-label]=\"'Remove ' + getOptionLabel(option)\"\n type=\"button\"\n >\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 20 20\">\n <path d=\"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z\"></path>\n </svg>\n </button>\n }\n </span>\n }\n </div>\n } @else {\n <!-- Single Select or Placeholder -->\n <span class=\"placeholder\" [class.has-value]=\"selectedOptions().length > 0\">\n {{displayText()}}\n </span>\n }\n </div>\n\n <!-- Actions (Clear, Loading, Arrow) -->\n <div class=\"select-actions\">\n @if (isLoading || isLoadingAsync()) {\n <div class=\"spinner\"></div>\n }\n @if (isClearable && selectedOptions().length > 0 && !isDisabled && !isLoading && !isLoadingAsync()) {\n <button\n class=\"clear-button\"\n (click)=\"clearSelection($event)\"\n aria-label=\"Clear selection\"\n type=\"button\"\n >\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\">\n <path d=\"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z\"></path>\n </svg>\n </button>\n }\n <span class=\"separator\"></span>\n <span class=\"arrow\" [class.open]=\"isOpen()\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\">\n <path d=\"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z\"></path>\n </svg>\n </span>\n </div>\n </div>\n\n <!-- Dropdown Menu -->\n @if (isOpen()) {\n <div\n #menuRef\n class=\"dropdown {{menuPlacement}}\"\n [class.fixed]=\"menuPosition === 'fixed'\"\n [style.max-height]=\"maxHeight\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"isMulti\"\n [@dropdown]\n >\n <!-- Search Input -->\n @if (isSearchable) {\n <div class=\"search-container\">\n <input\n #searchInput\n type=\"text\"\n class=\"search-input\"\n placeholder=\"Search...\"\n [value]=\"searchTerm()\"\n (input)=\"onSearchChange($any($event.target).value)\"\n (click)=\"$event.stopPropagation()\"\n aria-label=\"Search options\"\n aria-autocomplete=\"list\"\n />\n </div>\n }\n\n <!-- Options List -->\n <div class=\"options-list\" id=\"options-list\">\n <!-- Max Selection Message -->\n @if (isMaxSelectionReached()) {\n <div class=\"info-message max-selection\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 20 20\" fill=\"currentColor\">\n <path d=\"M10 0C4.477 0 0 4.477 0 10s4.477 10 10 10 10-4.477 10-10S15.523 0 10 0zm1 15H9v-2h2v2zm0-4H9V5h2v6z\"/>\n </svg>\n {{maxSelectedMessage}}\n </div>\n }\n\n <!-- Min Search Length Message -->\n @if (showMinSearchMessage()) {\n <div class=\"info-message min-search\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 20 20\" fill=\"currentColor\">\n <path d=\"M10 0C4.477 0 0 4.477 0 10s4.477 10 10 10 10-4.477 10-10S15.523 0 10 0zm1 15H9v-2h2v2zm0-4H9V5h2v6z\"/>\n </svg>\n {{minSearchMessage}} ({{searchTerm().length}}/{{minSearchLength}})\n </div>\n }\n\n @if (isLoadingAsync()) {\n <div class=\"loading-message\">{{loadingMessage()}}</div>\n } @else if (displayOptions().length === 0 && !showMinSearchMessage()) {\n <div class=\"no-options\">\n {{searchTerm() ? emptySearchText : emptyStateText}}\n </div>\n } @else if (!showMinSearchMessage()) {\n <!-- Select All (Multi-select only) -->\n @if (isMulti && showSelectAll && !searchTerm()) {\n <div class=\"select-all-container\">\n <button\n class=\"select-all-button\"\n (click)=\"allOptionsSelected() ? deselectAll() : selectAll()\"\n type=\"button\"\n >\n <input\n type=\"checkbox\"\n [checked]=\"allOptionsSelected()\"\n [indeterminate]=\"someOptionsSelected()\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n readonly\n />\n <span class=\"select-all-text\">\n {{allOptionsSelected() ? deselectAllText : selectAllText}}\n </span>\n <span class=\"select-all-count\">\n ({{selectedOptions().length}}/{{getEnabledOptionsCount()}})\n </span>\n </button>\n </div>\n }\n\n <!-- Grouped Options -->\n @if (isGrouped && groupedOptions()) {\n @for (group of groupedOptions() | keyvalue; track trackByGroup($index, [$any(group.key), $any(group.value)])) {\n <div class=\"option-group\">\n <div class=\"option-group-label\">{{group.key}}</div>\n @for (option of $any(group.value); track trackByValue($index, option); let idx = $index) {\n <div\n class=\"option\"\n [class.selected]=\"isSelected(option)\"\n [class.highlighted]=\"idx === highlightedIndex()\"\n [class.disabled]=\"isOptionDisabled(option) || (isMaxSelectionReached() && !isSelected(option))\"\n [class.hidden]=\"hideSelectedOptions && isSelected(option)\"\n [class.create-option]=\"option.__isCreate__\"\n (click)=\"selectOption(option)\"\n (keydown)=\"$event.key === 'Enter' && selectOption(option)\"\n role=\"option\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"isOptionDisabled(option) || (isMaxSelectionReached() && !isSelected(option))\"\n tabindex=\"-1\"\n >\n <!-- Checkbox for multi-select -->\n @if (isMulti) {\n <input\n type=\"checkbox\"\n [checked]=\"isSelected(option)\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n readonly\n />\n }\n\n <!-- Option Icon -->\n @if (showOptionIcons && option.icon) {\n <div class=\"option-icon\">\n @if (option.icon.includes('<')) {\n <div [innerHTML]=\"sanitizeHtml(option.icon)\"></div>\n } @else {\n <img [src]=\"option.icon\" [alt]=\"getOptionLabel(option)\" />\n }\n </div>\n }\n\n <!-- Option Content -->\n <div class=\"option-content\">\n <div class=\"option-label\">{{getOptionLabel(option)}}</div>\n @if (option.description) {\n <div class=\"option-description\">{{option.description}}</div>\n }\n </div>\n\n <!-- Option Badge -->\n @if (showOptionBadges && option.badge) {\n <span\n class=\"option-badge\"\n [style.background-color]=\"option.badgeColor || currentTheme().primary\"\n >\n {{option.badge}}\n </span>\n }\n\n <!-- Check Icon for selected -->\n @if (!isMulti && isSelected(option)) {\n <svg class=\"check-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 20 20\">\n <path d=\"M7.629,14.566c0.125,0.125,0.291,0.188,0.456,0.188c0.164,0,0.329-0.062,0.456-0.188l8.219-8.221c0.252-0.252,0.252-0.659,0-0.911c-0.252-0.252-0.659-0.252-0.911,0l-7.764,7.763L4.152,9.267c-0.252-0.251-0.66-0.251-0.911,0c-0.252,0.252-0.252,0.66,0,0.911L7.629,14.566z\"></path>\n </svg>\n }\n </div>\n }\n </div>\n }\n } @else {\n <!-- Regular (Ungrouped) Options -->\n @for (option of displayOptions(); track trackByValue($index, option); let idx = $index) {\n <div\n class=\"option\"\n [class.selected]=\"isSelected(option)\"\n [class.highlighted]=\"idx === highlightedIndex()\"\n [class.disabled]=\"isOptionDisabled(option) || (isMaxSelectionReached() && !isSelected(option))\"\n [class.hidden]=\"hideSelectedOptions && isSelected(option)\"\n [class.create-option]=\"option.__isCreate__\"\n (click)=\"selectOption(option)\"\n (keydown)=\"$event.key === 'Enter' && selectOption(option)\"\n role=\"option\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"isOptionDisabled(option) || (isMaxSelectionReached() && !isSelected(option))\"\n tabindex=\"-1\"\n >\n <!-- Checkbox for multi-select -->\n @if (isMulti) {\n <input\n type=\"checkbox\"\n [checked]=\"isSelected(option)\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n readonly\n />\n }\n\n <!-- Option Icon -->\n @if (showOptionIcons && option.icon) {\n <div class=\"option-icon\">\n @if (option.icon.includes('<')) {\n <div [innerHTML]=\"sanitizeHtml(option.icon)\"></div>\n } @else {\n <img [src]=\"option.icon\" [alt]=\"getOptionLabel(option)\" />\n }\n </div>\n }\n\n <!-- Option Content -->\n <div class=\"option-content\">\n <div class=\"option-label\">{{getOptionLabel(option)}}</div>\n @if (option.description) {\n <div class=\"option-description\">{{option.description}}</div>\n }\n </div>\n\n <!-- Option Badge -->\n @if (showOptionBadges && option.badge) {\n <span\n class=\"option-badge\"\n [style.background-color]=\"option.badgeColor || currentTheme().primary\"\n >\n {{option.badge}}\n </span>\n }\n\n <!-- Check Icon for selected -->\n @if (!isMulti && isSelected(option)) {\n <svg class=\"check-icon\" width=\"16\" height=\"16\" viewBox=\"0 0 20 20\">\n <path d=\"M7.629,14.566c0.125,0.125,0.291,0.188,0.456,0.188c0.164,0,0.329-0.062,0.456-0.188l8.219-8.221c0.252-0.252,0.252-0.659,0-0.911c-0.252-0.252-0.659-0.252-0.911,0l-7.764,7.763L4.152,9.267c-0.252-0.251-0.66-0.251-0.911,0c-0.252,0.252-0.252,0.66,0,0.911L7.629,14.566z\"></path>\n </svg>\n }\n </div>\n }\n }\n }\n </div>\n </div>\n }\n</div>\n\n<!-- Hidden native select for form compatibility -->\n@if (isMulti) {\n <select [name]=\"name\" [id]=\"id\" multiple style=\"display: none;\" [attr.aria-hidden]=\"true\">\n @for (option of selectedOptions(); track trackByValue($index, option)) {\n <option [value]=\"getOptionValue(option)\" selected>{{getOptionLabel(option)}}</option>\n }\n </select>\n} @else {\n @if (selectedOptions().length > 0) {\n <select [name]=\"name\" [id]=\"id\" style=\"display: none;\" [attr.aria-hidden]=\"true\">\n <option [value]=\"getOptionValue(selectedOptions()[0])\" selected>{{getOptionLabel(selectedOptions()[0])}}</option>\n </select>\n }\n}\n","/*\n * Public API Surface of angular-perfect-select\n */\n\n// Main Component\nexport * from './lib/components/perfect-select/perfect-select.component';\n\n// Models & Interfaces\nexport * from './lib/models/select-option.interface';\nexport * from './lib/models/select-events.interface';\n\n// Constants & Themes\nexport * from './lib/constants/themes.constant';\n\n// Animations\nexport * from './lib/animations/select.animations';\n\n// Directives\nexport * from './lib/directives/click-outside.directive';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAUO,MAAM,iBAAiB,GAA6B,OAAO,CAAC,UAAU,EAAE;IAC7E,UAAU,CAAC,QAAQ,EAAE;QACnB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAAC;AACrD,QAAA,OAAO,CACL,oCAAoC,EACpC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;KAEpD,CAAC;IACF,UAAU,CAAC,QAAQ,EAAE;QACnB,OAAO,CAAC,gBAAgB,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;KAChD;AACF,CAAA;AAEM,MAAM,YAAY,GAA6B,OAAO,CAAC,K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ACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAGA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAGA,SAAS;uBAAC,iBAAiB;;sBAC3B,SAAS;uBAAC,aAAa;;sBACvB,SAAS;uBAAC,SAAS;;sBA4NnB,YAAY;uBAAC,SAAS,EAAE,CAAC,QAAQ,CAAC;;;AE/WrC;;AAEG;AAEH;;ACJA;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-perfect-select",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A modern, feature-rich select component for Angular with react-select API compatibility",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",