11import { AfterViewChecked , ChangeDetectorRef , Component , ElementRef , HostListener , OnDestroy , OnInit , ViewEncapsulation } from '@angular/core'
2+ import { NgStyle , NgClass } from '@angular/common'
23import { cmykToRgb , denormalizeCMYK , denormalizeHSLA , denormalizeRGBA , formatCmyk , formatOutput , hslaToHsva , hsvaToHsla , hsvaToRgba , rgbaToCmyk , rgbaToHex , rgbaToHsva , stringToCmyk , stringToHsva } from '../../util/color'
34import { opaqueSliderLight , transparentSliderLight } from '../../util/contrast'
45import { Cmyk , Hsla , Hsva , Rgba } from '../../util/formats'
56import { ColorModeInternal , composedPath , CursorEvent , DialogConfig , DirectiveCallbacks , parseColorMode , sizeToString , SliderPosition , TextEvent } from '../../util/helpers'
67import { AlphaChannel , AlphaChannelEnum , AlphaEnabledFormats , ColorFormat , ColorFormatEnum , DialogDisplay , DialogDisplayEnum , OutputFormat , OutputFormatEnum } from '../../util/types'
78import { ColorPickerService } from '../color-picker.service'
9+ import { SliderDirective } from '../slider.directive'
10+ import { TextDirective } from '../text.directive'
811
912/**
1013 * @internal
@@ -14,7 +17,12 @@ import { ColorPickerService } from '../color-picker.service'
1417 templateUrl : './color-picker.component.html' ,
1518 styleUrls : [ './color-picker.component.scss' ] ,
1619 encapsulation : ViewEncapsulation . Emulated ,
17- standalone : false
20+ imports : [
21+ NgStyle ,
22+ SliderDirective ,
23+ NgClass ,
24+ TextDirective
25+ ]
1826} )
1927export class ColorPickerComponent implements OnInit , OnDestroy , AfterViewChecked {
2028
0 commit comments