angular-perfect-select 1.0.0
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/LICENSE +21 -0
- package/README.md +107 -0
- package/dist/LICENSE +21 -0
- package/dist/README.md +107 -0
- package/dist/fesm2022/angular-perfect-select.mjs +807 -0
- package/dist/fesm2022/angular-perfect-select.mjs.map +1 -0
- package/dist/index.d.ts +197 -0
- package/package.json +58 -0
|
@@ -0,0 +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 forwardRef,\n HostListener,\n OnInit,\n OnDestroy,\n OnChanges,\n SimpleChanges,\n ElementRef,\n ViewChild,\n effect,\n inject,\n DestroyRef\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 { takeUntilDestroyed } from '@angular/core/rxjs-interop';\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 private destroyRef = inject(DestroyRef);\n private sanitizer = inject(DomSanitizer);\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 // 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\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 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 // 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() {\n // Update closeMenuOnSelect based on isMulti\n effect(() => {\n if (this.isMulti && this.closeMenuOnSelect === true) {\n this.closeMenuOnSelect = false;\n }\n });\n }\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\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 // 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 // Cleanup handled by DestroyRef\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 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 const opts = this.filteredOptions().filter(opt => !this.isOptionDisabled(opt));\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\n if (this.loadOptions) {\n this.handleLoadOptions(term);\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 @if (isLoadingAsync()) {\n <div class=\"loading-message\">{{loadingMessage()}}</div>\n } @else if (displayOptions().length === 0) {\n <div class=\"no-options\">\n {{searchTerm() ? emptySearchText : emptyStateText}}\n </div>\n } @else {\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)\"\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)\"\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)\"\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)\"\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":";;;;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ACA;;sBACA;;sBACA;;sBAGA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBACA;;sBAGA,SAAS;uBAAC,iBAAiB;;sBAC3B,SAAS;uBAAC,aAAa;;sBACvB,SAAS;uBAAC,SAAS;;sBAmMnB,YAAY;uBAAC,SAAS,EAAE,CAAC,QAAQ,CAAC;;;AErVrC;;AAEG;AAEH;;ACJA;;AAEG;;;;"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import * as angular_perfect_select from 'angular-perfect-select';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import { OnInit, OnChanges, OnDestroy, EventEmitter, ElementRef, SimpleChanges } from '@angular/core';
|
|
4
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
6
|
+
import { AnimationTriggerMetadata } from '@angular/animations';
|
|
7
|
+
|
|
8
|
+
interface ThemeColors {
|
|
9
|
+
primary: string;
|
|
10
|
+
secondary: string;
|
|
11
|
+
tag: string;
|
|
12
|
+
tagText: string;
|
|
13
|
+
tagBorder: string;
|
|
14
|
+
}
|
|
15
|
+
type ThemeName = 'blue' | 'purple' | 'green' | 'red' | 'orange' | 'pink' | 'dark';
|
|
16
|
+
declare const THEMES: Record<ThemeName, ThemeColors>;
|
|
17
|
+
|
|
18
|
+
interface SelectOption {
|
|
19
|
+
id: string | number;
|
|
20
|
+
label: string;
|
|
21
|
+
value: any;
|
|
22
|
+
description?: string;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
icon?: string;
|
|
25
|
+
badge?: string;
|
|
26
|
+
badgeColor?: string;
|
|
27
|
+
group?: string;
|
|
28
|
+
__isNew__?: boolean;
|
|
29
|
+
__isCreate__?: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
type SelectChangeAction = 'select-option' | 'remove-value' | 'clear' | 'set-value' | 'select-all' | 'deselect-all';
|
|
33
|
+
interface SelectChangeEvent {
|
|
34
|
+
value: any;
|
|
35
|
+
option?: SelectOption | SelectOption[];
|
|
36
|
+
action: SelectChangeAction;
|
|
37
|
+
}
|
|
38
|
+
type InputChangeAction = 'input-change' | 'set-value';
|
|
39
|
+
interface SelectInputChangeEvent {
|
|
40
|
+
value: string;
|
|
41
|
+
action: InputChangeAction;
|
|
42
|
+
}
|
|
43
|
+
interface SelectCreateOptionEvent {
|
|
44
|
+
option: SelectOption;
|
|
45
|
+
}
|
|
46
|
+
interface SelectOptionsLoadedEvent {
|
|
47
|
+
options: SelectOption[];
|
|
48
|
+
}
|
|
49
|
+
interface SelectLoadErrorEvent {
|
|
50
|
+
error: Error;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
declare class PerfectSelectComponent implements ControlValueAccessor, OnInit, OnChanges, OnDestroy {
|
|
54
|
+
private destroyRef;
|
|
55
|
+
private sanitizer;
|
|
56
|
+
options: SelectOption[];
|
|
57
|
+
placeholder: string;
|
|
58
|
+
isMulti: boolean;
|
|
59
|
+
set multiple(value: boolean);
|
|
60
|
+
isSearchable: boolean;
|
|
61
|
+
set searchable(value: boolean);
|
|
62
|
+
isClearable: boolean;
|
|
63
|
+
set clearable(value: boolean);
|
|
64
|
+
isDisabled: boolean;
|
|
65
|
+
set disabled(value: boolean);
|
|
66
|
+
isLoading: boolean;
|
|
67
|
+
set loading(value: boolean);
|
|
68
|
+
isRtl: boolean;
|
|
69
|
+
closeMenuOnSelect: boolean;
|
|
70
|
+
hideSelectedOptions: boolean;
|
|
71
|
+
isCreatable: boolean;
|
|
72
|
+
allowCreateWhileLoading: boolean;
|
|
73
|
+
createOptionPosition: 'first' | 'last';
|
|
74
|
+
formatCreateLabel: (inputValue: string) => string;
|
|
75
|
+
loadOptions: ((inputValue: string) => Promise<SelectOption[]>) | null;
|
|
76
|
+
cacheOptions: boolean;
|
|
77
|
+
defaultOptions: boolean;
|
|
78
|
+
selectSize: 'smaller' | 'small' | 'medium' | 'large' | 'larger';
|
|
79
|
+
containerSize: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
80
|
+
theme: ThemeName;
|
|
81
|
+
borderRadius: string;
|
|
82
|
+
customStyles: {
|
|
83
|
+
container?: string;
|
|
84
|
+
control?: string;
|
|
85
|
+
menu?: string;
|
|
86
|
+
option?: string;
|
|
87
|
+
tag?: string;
|
|
88
|
+
};
|
|
89
|
+
maxHeight: string;
|
|
90
|
+
menuPlacement: 'auto' | 'top' | 'bottom';
|
|
91
|
+
menuPosition: 'absolute' | 'fixed';
|
|
92
|
+
getOptionLabel: (option: SelectOption) => string;
|
|
93
|
+
getOptionValue: (option: SelectOption) => any;
|
|
94
|
+
isOptionDisabled: (option: SelectOption) => boolean;
|
|
95
|
+
filterOption: ((option: SelectOption, inputValue: string) => boolean) | null;
|
|
96
|
+
isGrouped: boolean;
|
|
97
|
+
groupBy: ((option: SelectOption) => string) | null;
|
|
98
|
+
showSelectAll: boolean;
|
|
99
|
+
selectAllText: string;
|
|
100
|
+
deselectAllText: string;
|
|
101
|
+
showOptionIcons: boolean;
|
|
102
|
+
showOptionBadges: boolean;
|
|
103
|
+
maxOptionsDisplay: number;
|
|
104
|
+
optionHeight: number;
|
|
105
|
+
emptyStateText: string;
|
|
106
|
+
emptySearchText: string;
|
|
107
|
+
name: string;
|
|
108
|
+
id: string;
|
|
109
|
+
autoFocus: boolean;
|
|
110
|
+
openMenuOnFocus: boolean;
|
|
111
|
+
openMenuOnClick: boolean;
|
|
112
|
+
tabSelectsValue: boolean;
|
|
113
|
+
backspaceRemovesValue: boolean;
|
|
114
|
+
escapeClearsValue: boolean;
|
|
115
|
+
noOptionsMessage: () => string;
|
|
116
|
+
loadingMessage: () => string;
|
|
117
|
+
change: EventEmitter<SelectChangeEvent>;
|
|
118
|
+
clear: EventEmitter<void>;
|
|
119
|
+
focus: EventEmitter<void>;
|
|
120
|
+
blur: EventEmitter<void>;
|
|
121
|
+
menuOpen: EventEmitter<void>;
|
|
122
|
+
menuClose: EventEmitter<void>;
|
|
123
|
+
inputChange: EventEmitter<SelectInputChangeEvent>;
|
|
124
|
+
createOption: EventEmitter<SelectCreateOptionEvent>;
|
|
125
|
+
optionsLoaded: EventEmitter<SelectOptionsLoadedEvent>;
|
|
126
|
+
loadError: EventEmitter<SelectLoadErrorEvent>;
|
|
127
|
+
selectContainerRef: ElementRef;
|
|
128
|
+
searchInputRef: ElementRef;
|
|
129
|
+
menuElementRef: ElementRef;
|
|
130
|
+
isOpen: _angular_core.WritableSignal<boolean>;
|
|
131
|
+
searchTerm: _angular_core.WritableSignal<string>;
|
|
132
|
+
highlightedIndex: _angular_core.WritableSignal<number>;
|
|
133
|
+
internalValue: _angular_core.WritableSignal<any>;
|
|
134
|
+
internalOptions: _angular_core.WritableSignal<SelectOption[]>;
|
|
135
|
+
isLoadingAsync: _angular_core.WritableSignal<boolean>;
|
|
136
|
+
private optionsCache;
|
|
137
|
+
currentTheme: _angular_core.Signal<angular_perfect_select.ThemeColors>;
|
|
138
|
+
filteredOptions: _angular_core.Signal<SelectOption[]>;
|
|
139
|
+
selectedOptions: _angular_core.Signal<(SelectOption | {
|
|
140
|
+
id: any;
|
|
141
|
+
label: string;
|
|
142
|
+
value: any;
|
|
143
|
+
})[]>;
|
|
144
|
+
displayText: _angular_core.Signal<string>;
|
|
145
|
+
groupedOptions: _angular_core.Signal<Record<string, SelectOption[]> | null>;
|
|
146
|
+
displayOptions: _angular_core.Signal<SelectOption[]>;
|
|
147
|
+
allOptionsSelected: _angular_core.Signal<boolean>;
|
|
148
|
+
someOptionsSelected: _angular_core.Signal<boolean>;
|
|
149
|
+
getEnabledOptionsCount(): number;
|
|
150
|
+
private onChange;
|
|
151
|
+
private onTouched;
|
|
152
|
+
constructor();
|
|
153
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
154
|
+
writeValue(value: any): void;
|
|
155
|
+
registerOnChange(fn: any): void;
|
|
156
|
+
registerOnTouched(fn: any): void;
|
|
157
|
+
setDisabledState(disabled: boolean): void;
|
|
158
|
+
ngOnInit(): void;
|
|
159
|
+
ngOnDestroy(): void;
|
|
160
|
+
handleKeydown(event: KeyboardEvent): void;
|
|
161
|
+
toggleDropdown(): void;
|
|
162
|
+
openDropdown(): void;
|
|
163
|
+
closeDropdown(): void;
|
|
164
|
+
selectOption(option: SelectOption): void;
|
|
165
|
+
removeOption(option: SelectOption, event: Event): void;
|
|
166
|
+
clearSelection(event: Event): void;
|
|
167
|
+
selectAll(): void;
|
|
168
|
+
deselectAll(): void;
|
|
169
|
+
onSearchChange(term: string): void;
|
|
170
|
+
handleLoadOptions(inputValue: string): Promise<void>;
|
|
171
|
+
moveHighlight(direction: number): void;
|
|
172
|
+
scrollHighlightedIntoView(): void;
|
|
173
|
+
onClickOutside(): void;
|
|
174
|
+
isSelected(option: SelectOption): boolean;
|
|
175
|
+
sanitizeHtml(html: string): SafeHtml;
|
|
176
|
+
trackByValue(index: number, option: SelectOption): any;
|
|
177
|
+
trackByGroup(index: number, item: [string, SelectOption[]]): string;
|
|
178
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PerfectSelectComponent, never>;
|
|
179
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PerfectSelectComponent, "ng-perfect-select", never, { "options": { "alias": "options"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "isMulti": { "alias": "isMulti"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "isSearchable": { "alias": "isSearchable"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "isClearable": { "alias": "isClearable"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "isRtl": { "alias": "isRtl"; "required": false; }; "closeMenuOnSelect": { "alias": "closeMenuOnSelect"; "required": false; }; "hideSelectedOptions": { "alias": "hideSelectedOptions"; "required": false; }; "isCreatable": { "alias": "isCreatable"; "required": false; }; "allowCreateWhileLoading": { "alias": "allowCreateWhileLoading"; "required": false; }; "createOptionPosition": { "alias": "createOptionPosition"; "required": false; }; "formatCreateLabel": { "alias": "formatCreateLabel"; "required": false; }; "loadOptions": { "alias": "loadOptions"; "required": false; }; "cacheOptions": { "alias": "cacheOptions"; "required": false; }; "defaultOptions": { "alias": "defaultOptions"; "required": false; }; "selectSize": { "alias": "selectSize"; "required": false; }; "containerSize": { "alias": "containerSize"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "customStyles": { "alias": "customStyles"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "menuPlacement": { "alias": "menuPlacement"; "required": false; }; "menuPosition": { "alias": "menuPosition"; "required": false; }; "getOptionLabel": { "alias": "getOptionLabel"; "required": false; }; "getOptionValue": { "alias": "getOptionValue"; "required": false; }; "isOptionDisabled": { "alias": "isOptionDisabled"; "required": false; }; "filterOption": { "alias": "filterOption"; "required": false; }; "isGrouped": { "alias": "isGrouped"; "required": false; }; "groupBy": { "alias": "groupBy"; "required": false; }; "showSelectAll": { "alias": "showSelectAll"; "required": false; }; "selectAllText": { "alias": "selectAllText"; "required": false; }; "deselectAllText": { "alias": "deselectAllText"; "required": false; }; "showOptionIcons": { "alias": "showOptionIcons"; "required": false; }; "showOptionBadges": { "alias": "showOptionBadges"; "required": false; }; "maxOptionsDisplay": { "alias": "maxOptionsDisplay"; "required": false; }; "optionHeight": { "alias": "optionHeight"; "required": false; }; "emptyStateText": { "alias": "emptyStateText"; "required": false; }; "emptySearchText": { "alias": "emptySearchText"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "openMenuOnFocus": { "alias": "openMenuOnFocus"; "required": false; }; "openMenuOnClick": { "alias": "openMenuOnClick"; "required": false; }; "tabSelectsValue": { "alias": "tabSelectsValue"; "required": false; }; "backspaceRemovesValue": { "alias": "backspaceRemovesValue"; "required": false; }; "escapeClearsValue": { "alias": "escapeClearsValue"; "required": false; }; "noOptionsMessage": { "alias": "noOptionsMessage"; "required": false; }; "loadingMessage": { "alias": "loadingMessage"; "required": false; }; }, { "change": "change"; "clear": "clear"; "focus": "focus"; "blur": "blur"; "menuOpen": "menuOpen"; "menuClose": "menuClose"; "inputChange": "inputChange"; "createOption": "createOption"; "optionsLoaded": "optionsLoaded"; "loadError": "loadError"; }, never, never, true, never>;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
declare const dropdownAnimation: AnimationTriggerMetadata;
|
|
183
|
+
declare const tagAnimation: AnimationTriggerMetadata;
|
|
184
|
+
declare const optionListAnimation: AnimationTriggerMetadata;
|
|
185
|
+
declare const selectAnimations: AnimationTriggerMetadata[];
|
|
186
|
+
|
|
187
|
+
declare class ClickOutsideDirective {
|
|
188
|
+
private elementRef;
|
|
189
|
+
clickOutside: EventEmitter<void>;
|
|
190
|
+
constructor(elementRef: ElementRef);
|
|
191
|
+
onClick(event: MouseEvent): void;
|
|
192
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClickOutsideDirective, never>;
|
|
193
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[clickOutside]", never, {}, { "clickOutside": "clickOutside"; }, never, never, true, never>;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export { ClickOutsideDirective, PerfectSelectComponent, THEMES, dropdownAnimation, optionListAnimation, selectAnimations, tagAnimation };
|
|
197
|
+
export type { InputChangeAction, SelectChangeAction, SelectChangeEvent, SelectCreateOptionEvent, SelectInputChangeEvent, SelectLoadErrorEvent, SelectOption, SelectOptionsLoadedEvent, ThemeColors, ThemeName };
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "angular-perfect-select",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A modern, feature-rich select component for Angular with react-select API compatibility",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"dev": "ng build --watch",
|
|
10
|
+
"build": "ng build --configuration production",
|
|
11
|
+
"test": "ng test",
|
|
12
|
+
"lint": "ng lint"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"angular",
|
|
16
|
+
"select",
|
|
17
|
+
"dropdown",
|
|
18
|
+
"multi-select",
|
|
19
|
+
"async",
|
|
20
|
+
"creatable",
|
|
21
|
+
"component",
|
|
22
|
+
"ui"
|
|
23
|
+
],
|
|
24
|
+
"author": "Ishan Karunaratne <ishansasika@gmail.com>",
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "https://github.com/ishansasika/angular-perfect-select.git"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"@angular/animations": "^20.0.0",
|
|
32
|
+
"@angular/common": "^20.0.0",
|
|
33
|
+
"@angular/core": "^20.0.0",
|
|
34
|
+
"@angular/forms": "^20.0.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@angular-devkit/build-angular": "^20.0.0",
|
|
38
|
+
"@angular/cli": "^20.0.0",
|
|
39
|
+
"@angular/compiler": "^20.0.0",
|
|
40
|
+
"@angular/compiler-cli": "^20.0.0",
|
|
41
|
+
"@angular/animations": "^20.0.0",
|
|
42
|
+
"@angular/common": "^20.0.0",
|
|
43
|
+
"@angular/core": "^20.0.0",
|
|
44
|
+
"@angular/forms": "^20.0.0",
|
|
45
|
+
"@angular/platform-browser": "^20.0.0",
|
|
46
|
+
"@angular/platform-browser-dynamic": "^20.0.0",
|
|
47
|
+
"typescript": "~5.8.0",
|
|
48
|
+
"zone.js": "~0.15.0",
|
|
49
|
+
"rxjs": "~7.8.0",
|
|
50
|
+
"tslib": "^2.3.0",
|
|
51
|
+
"ng-packagr": "^20.0.0"
|
|
52
|
+
},
|
|
53
|
+
"files": [
|
|
54
|
+
"dist",
|
|
55
|
+
"README.md",
|
|
56
|
+
"LICENSE"
|
|
57
|
+
]
|
|
58
|
+
}
|