ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
1 lines • 38.4 kB
Source Map (JSON)
{"version":3,"file":"ng-zorro-antd-color-picker.mjs","sources":["../../components/color-picker/typings.ts","../../components/color-picker/color-block.component.ts","../../components/color-picker/color-format.component.ts","../../components/color-picker/color-picker.component.ts","../../components/color-picker/color-picker.module.ts","../../components/color-picker/public-api.ts","../../components/color-picker/ng-zorro-antd-color-picker.ts"],"sourcesContent":["/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport { Color } from 'ng-antd-color-picker';\n\nexport type NzColorPickerFormatType = 'rgb' | 'hex' | 'hsb';\n\nexport type NzColorPickerTriggerType = 'click' | 'hover';\n\nexport interface NzColor extends Color {}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\n\nimport { defaultColor } from 'ng-antd-color-picker';\n\nimport { NzSizeLDSType } from 'ng-zorro-antd/core/types';\n\n@Component({\n selector: 'nz-color-block',\n exportAs: 'NzColorBlock',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: ` <ng-antd-color-block [color]=\"nzColor\" (nzOnClick)=\"nzOnClick.emit($event)\"></ng-antd-color-block> `,\n host: {\n class: 'ant-color-picker-inline',\n '[class.ant-color-picker-inline-sm]': `nzSize === 'small'`,\n '[class.ant-color-picker-inline-lg]': `nzSize === 'large'`\n }\n})\nexport class NzColorBlockComponent {\n @Input() nzColor: string = defaultColor.toHexString();\n @Input() nzSize: NzSizeLDSType = 'default';\n @Output() readonly nzOnClick = new EventEmitter<boolean>();\n\n constructor() {}\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport {\n ChangeDetectionStrategy,\n SimpleChanges,\n Component,\n Input,\n OnChanges,\n OnDestroy,\n OnInit,\n Output,\n EventEmitter\n} from '@angular/core';\nimport { AbstractControl, FormBuilder, FormControl, FormGroup, ValidationErrors, ValidatorFn } from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { debounceTime, filter, takeUntil } from 'rxjs/operators';\n\nimport { generateColor } from 'ng-antd-color-picker';\n\nimport { NzColorPickerFormatType } from './typings';\n\n@Component({\n selector: 'nz-color-format',\n exportAs: 'NzColorFormat',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div [formGroup]=\"validateForm\" class=\"ant-color-picker-input-container\">\n <div class=\"ant-color-picker-format-select\">\n <nz-select formControlName=\"isFormat\" nzBorderless nzSize=\"small\">\n <nz-option nzValue=\"hex\" nzLabel=\"HEX\"></nz-option>\n <nz-option nzValue=\"hsb\" nzLabel=\"HSB\"></nz-option>\n <nz-option nzValue=\"rgb\" nzLabel=\"RGB\"></nz-option>\n </nz-select>\n </div>\n <div class=\"ant-color-picker-input\" [ngSwitch]=\"validateForm.get('isFormat')?.value\">\n <div class=\"ant-color-picker-hex-input\" *ngSwitchCase=\"'hex'\">\n <nz-input-group nzPrefix=\"#\" nzSize=\"small\">\n <input nz-input nzSize=\"small\" formControlName=\"hex\" />\n </nz-input-group>\n </div>\n\n <div class=\"ant-color-picker-hsb-input\" *ngSwitchCase=\"'hsb'\">\n <div class=\"ant-color-picker-steppers ant-color-picker-hsb-input\">\n <nz-input-number\n formControlName=\"hsbH\"\n [nzMin]=\"0\"\n [nzMax]=\"360\"\n [nzStep]=\"1\"\n [nzPrecision]=\"0\"\n nzSize=\"small\"\n ></nz-input-number>\n </div>\n <div class=\"ant-color-picker-steppers ant-color-picker-hsb-input\">\n <nz-input-number\n formControlName=\"hsbS\"\n [nzMin]=\"0\"\n [nzMax]=\"100\"\n [nzStep]=\"1\"\n [nzFormatter]=\"formatterPercent\"\n [nzParser]=\"parserPercent\"\n nzSize=\"small\"\n ></nz-input-number>\n </div>\n <div class=\"ant-color-picker-steppers ant-color-picker-hsb-input\">\n <nz-input-number\n formControlName=\"hsbB\"\n [nzMin]=\"0\"\n [nzMax]=\"100\"\n [nzStep]=\"1\"\n [nzFormatter]=\"formatterPercent\"\n [nzParser]=\"parserPercent\"\n nzSize=\"small\"\n ></nz-input-number>\n </div>\n </div>\n\n <div class=\"ant-color-picker-rgb-input\" *ngSwitchDefault>\n <div class=\"ant-color-picker-steppers ant-color-picker-rgb-input\">\n <nz-input-number formControlName=\"rgbR\" [nzMin]=\"0\" [nzMax]=\"255\" [nzStep]=\"1\" nzSize=\"small\">\n </nz-input-number>\n </div>\n <div class=\"ant-color-picker-steppers ant-color-picker-rgb-input\">\n <nz-input-number\n formControlName=\"rgbG\"\n [nzMin]=\"0\"\n [nzMax]=\"255\"\n [nzStep]=\"1\"\n nzSize=\"small\"\n ></nz-input-number>\n </div>\n <div class=\"ant-color-picker-steppers ant-color-picker-rgb-input\">\n <nz-input-number\n formControlName=\"rgbB\"\n [nzMin]=\"0\"\n [nzMax]=\"255\"\n [nzStep]=\"1\"\n nzSize=\"small\"\n ></nz-input-number>\n </div>\n </div>\n </div>\n\n <div class=\"ant-color-picker-steppers ant-color-picker-alpha-input\">\n <nz-input-number\n formControlName=\"roundA\"\n [nzMin]=\"0\"\n [nzMax]=\"100\"\n [nzStep]=\"1\"\n [nzFormatter]=\"formatterPercent\"\n [nzParser]=\"parserPercent\"\n nzSize=\"small\"\n ></nz-input-number>\n </div>\n </div>\n `\n})\nexport class NzColorFormatComponent implements OnChanges, OnInit, OnDestroy {\n @Input() format: NzColorPickerFormatType | null = null;\n @Input() colorValue: string = '';\n @Input() clearColor: boolean = false;\n @Output() readonly formatChange = new EventEmitter<{ color: string; format: NzColorPickerFormatType }>();\n @Output() readonly nzOnFormatChange = new EventEmitter<NzColorPickerFormatType>();\n\n private destroy$ = new Subject<void>();\n\n validatorFn(): ValidatorFn {\n return (control: AbstractControl): ValidationErrors | null => {\n const REGEXP = /^[0-9a-fA-F]{6}$/;\n if (!control.value) {\n return { error: true };\n } else if (!REGEXP.test(control.value)) {\n return { error: true };\n }\n return null;\n };\n }\n\n validateForm: FormGroup<{\n isFormat: FormControl<NzColorPickerFormatType | null>;\n hex: FormControl<string | null>;\n hsbH: FormControl<number>;\n hsbS: FormControl<number>;\n hsbB: FormControl<number>;\n rgbR: FormControl<number>;\n rgbG: FormControl<number>;\n rgbB: FormControl<number>;\n roundA: FormControl<number>;\n }>;\n\n formatterPercent = (value: number): string => `${value} %`;\n parserPercent = (value: string): string => value.replace(' %', '');\n\n constructor(private formBuilder: FormBuilder) {\n this.validateForm = this.formBuilder.nonNullable.group({\n isFormat: this.formBuilder.control<NzColorPickerFormatType>('hex'),\n hex: this.formBuilder.control<string>('1677FF', this.validatorFn()),\n hsbH: 215,\n hsbS: 91,\n hsbB: 100,\n rgbR: 22,\n rgbG: 119,\n rgbB: 255,\n roundA: 100\n });\n }\n\n ngOnInit(): void {\n this.validateForm.valueChanges\n .pipe(\n filter(() => this.validateForm.valid),\n debounceTime(200),\n takeUntil(this.destroy$)\n )\n .subscribe(value => {\n let color = '';\n switch (value.isFormat) {\n case 'hsb':\n color = generateColor({\n h: Number(value.hsbH),\n s: Number(value.hsbS) / 100,\n b: Number(value.hsbB) / 100,\n a: Number(value.roundA) / 100\n }).toHsbString();\n break;\n case 'rgb':\n color = generateColor({\n r: Number(value.rgbR),\n g: Number(value.rgbG),\n b: Number(value.rgbB),\n a: Number(value.roundA) / 100\n }).toRgbString();\n break;\n default:\n const hex = generateColor(value.hex as NzColorPickerFormatType);\n const hexColor = generateColor({\n r: hex.r,\n g: hex.g,\n b: hex.b,\n a: Number(value.roundA) / 100\n });\n color = hexColor.getAlpha() < 1 ? hexColor.toHex8String() : hexColor.toHexString();\n break;\n }\n this.formatChange.emit({ color, format: value.isFormat || this.format || 'hex' });\n });\n\n this.validateForm\n .get('isFormat')\n ?.valueChanges.pipe(takeUntil(this.destroy$))\n .subscribe(value => {\n this.nzOnFormatChange.emit(value as NzColorPickerFormatType);\n });\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n const { colorValue, format, clearColor } = changes;\n if (colorValue) {\n const colorValue = {\n hex: generateColor(this.colorValue).toHex(),\n hsbH: Math.round(generateColor(this.colorValue).toHsb().h),\n hsbS: Math.round(generateColor(this.colorValue).toHsb().s * 100),\n hsbB: Math.round(generateColor(this.colorValue).toHsb().b * 100),\n rgbR: Math.round(generateColor(this.colorValue).r),\n rgbG: Math.round(generateColor(this.colorValue).g),\n rgbB: Math.round(generateColor(this.colorValue).b),\n roundA: Math.round(generateColor(this.colorValue).roundA * 100)\n };\n this.validateForm.patchValue(colorValue);\n }\n\n if (format && this.format) {\n this.validateForm.get('isFormat')?.patchValue(this.format);\n }\n\n if (clearColor && this.clearColor) {\n this.validateForm.get('roundA')?.patchValue(0);\n }\n }\n\n ngOnDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n }\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n forwardRef,\n Input,\n OnChanges,\n OnDestroy,\n OnInit,\n Output,\n SimpleChanges,\n TemplateRef\n} from '@angular/core';\nimport { ControlValueAccessor, FormBuilder, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { defaultColor, generateColor } from 'ng-antd-color-picker';\n\nimport { BooleanInput, NzSafeAny, NzSizeLDSType } from 'ng-zorro-antd/core/types';\nimport { InputBoolean, isNonEmptyString, isTemplateRef } from 'ng-zorro-antd/core/util';\n\nimport { NzColor, NzColorPickerTriggerType, NzColorPickerFormatType } from './typings';\n\n@Component({\n selector: 'nz-color-picker',\n exportAs: 'NzColorPicker',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div\n [class.ant-color-picker-trigger]=\"!nzFlipFlop\"\n [class.ant-color-picker-sm]=\"nzSize === 'small'\"\n [class.ant-color-picker-lg]=\"nzSize === 'large'\"\n nz-popover\n [nzPopoverContent]=\"colorPicker\"\n [nzPopoverTrigger]=\"!nzDisabled ? nzTrigger : null\"\n [nzPopoverVisible]=\"nzOpen\"\n (nzPopoverVisibleChange)=\"nzOnOpenChange.emit($event)\"\n >\n <ng-container *ngIf=\"!nzFlipFlop\">\n <nz-color-block [nzColor]=\"blockColor\" [nzSize]=\"nzSize\"></nz-color-block>\n </ng-container>\n <ng-container *ngIf=\"nzFlipFlop\">\n <ng-template [ngTemplateOutlet]=\"nzFlipFlop\"></ng-template>\n </ng-container>\n <div class=\"ant-color-picker-trigger-text\" *ngIf=\"nzShowText && !!showText && !nzFlipFlop\">\n {{ showText }}\n </div>\n </div>\n <ng-template #colorPicker>\n <ng-antd-color-picker\n [value]=\"nzValue\"\n [defaultValue]=\"nzDefaultValue\"\n [disabled]=\"nzDisabled\"\n [panelRenderHeader]=\"nzPanelRenderHeader\"\n [panelRenderFooter]=\"nzPanelRenderFooter\"\n (nzOnChange)=\"colorChange($event)\"\n ></ng-antd-color-picker>\n </ng-template>\n <ng-template #nzPanelRenderHeader>\n <div class=\"ant-color-picker-title\" *ngIf=\"nzAllowClear || nzTitle\">\n <div class=\"ant-color-picker-title-content\">\n <ng-container [ngSwitch]=\"true\">\n <ng-container *ngSwitchCase=\"isTemplateRef(nzTitle)\">\n <ng-container *ngTemplateOutlet=\"$any(nzTitle)\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"isNonEmptyString(nzTitle)\">\n <span [innerHTML]=\"nzTitle\"></span>\n </ng-container>\n </ng-container>\n </div>\n <div class=\"ant-color-picker-clear\" *ngIf=\"nzAllowClear\" (click)=\"clearColorHandle()\"></div>\n </div>\n </ng-template>\n <ng-template #nzPanelRenderFooter>\n <nz-color-format\n [colorValue]=\"blockColor\"\n [clearColor]=\"clearColor\"\n [format]=\"nzFormat\"\n (formatChange)=\"formatChange($event)\"\n (nzOnFormatChange)=\"nzOnFormatChange.emit($event)\"\n ></nz-color-format>\n </ng-template>\n `,\n host: {\n class: 'ant-color-picker-inline',\n '[class.ant-color-picker-disabled]': `nzDisabled`\n },\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NzColorPickerComponent),\n multi: true\n }\n ]\n})\nexport class NzColorPickerComponent implements OnInit, OnChanges, ControlValueAccessor, OnDestroy {\n static ngAcceptInputType_nzShowText: BooleanInput;\n static ngAcceptInputType_nzOpen: BooleanInput;\n static ngAcceptInputType_nzAllowClear: BooleanInput;\n static ngAcceptInputType_nzDisabled: BooleanInput;\n\n @Input() nzFormat: NzColorPickerFormatType | null = null;\n @Input() nzValue: string | NzColor = '';\n @Input() nzSize: NzSizeLDSType = 'default';\n @Input() nzDefaultValue: string | NzColor = '';\n @Input() nzTrigger: NzColorPickerTriggerType = 'click';\n @Input() nzTitle: TemplateRef<void> | string = '';\n @Input() nzFlipFlop: TemplateRef<void> | null = null;\n @Input() @InputBoolean() nzShowText: boolean = false;\n @Input() @InputBoolean() nzOpen: boolean = false;\n @Input() @InputBoolean() nzAllowClear: boolean = false;\n @Input() @InputBoolean() nzDisabled: boolean = false;\n @Output() readonly nzOnChange = new EventEmitter<{ color: NzColor; format: string }>();\n @Output() readonly nzOnFormatChange = new EventEmitter<NzColorPickerFormatType>();\n @Output() readonly nzOnClear = new EventEmitter<boolean>();\n @Output() readonly nzOnOpenChange = new EventEmitter<boolean>();\n\n protected readonly isTemplateRef = isTemplateRef;\n protected readonly isNonEmptyString = isNonEmptyString;\n private destroy$ = new Subject<void>();\n private isNzDisableFirstChange: boolean = true;\n blockColor: string = '';\n clearColor: boolean = false;\n showText: string = defaultColor.toHexString();\n\n constructor(private formBuilder: FormBuilder, private cdr: ChangeDetectorRef) {}\n\n formControl = this.formBuilder.control('');\n\n onChange: (value: string) => void = () => {};\n\n writeValue(value: string): void {\n this.nzValue = value;\n this.getBlockColor();\n this.formControl.patchValue(value);\n }\n\n registerOnChange(fn: NzSafeAny): void {\n this.onChange = fn;\n }\n\n registerOnTouched(): void {}\n\n setDisabledState(isDisabled: boolean): void {\n this.nzDisabled = (this.isNzDisableFirstChange && this.nzDisabled) || isDisabled;\n this.isNzDisableFirstChange = false;\n this.cdr.markForCheck();\n }\n\n ngOnInit(): void {\n this.getBlockColor();\n this.formControl.valueChanges.pipe(takeUntil(this.destroy$)).subscribe(value => {\n if (!!value) {\n let color = value;\n if (this.nzFormat === 'hex') {\n color =\n generateColor(value).getAlpha() < 1\n ? generateColor(value).toHex8String()\n : generateColor(value).toHexString();\n } else if (this.nzFormat === 'hsb') {\n color = generateColor(value).toHsbString();\n } else if (this.nzFormat === 'rgb') {\n color = generateColor(value).toRgbString();\n }\n this.showText = color;\n this.onChange(color);\n this.cdr.markForCheck();\n }\n });\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n const { nzValue, nzDefaultValue } = changes;\n if (nzValue || nzDefaultValue) {\n this.getBlockColor();\n }\n }\n\n clearColorHandle(): void {\n this.clearColor = true;\n this.nzOnClear.emit(true);\n this.cdr.markForCheck();\n }\n\n getBlockColor(): void {\n if (!!this.nzValue) {\n this.blockColor = generateColor(this.nzValue).toRgbString();\n } else if (!!this.nzDefaultValue) {\n this.blockColor = generateColor(this.nzDefaultValue).toRgbString();\n } else {\n this.blockColor = defaultColor.toHexString();\n }\n }\n\n colorChange(value: { color: NzColor }): void {\n this.blockColor = value.color.getAlpha() < 1 ? value.color.toHex8String() : value.color.toHexString();\n this.clearColor = false;\n this.cdr.markForCheck();\n }\n\n formatChange(value: { color: string; format: NzColorPickerFormatType }): void {\n this.nzValue = value.color;\n this.clearColor = false;\n this.getBlockColor();\n this.nzOnChange.emit({ color: generateColor(value.color), format: value.format });\n this.formControl.patchValue(value.color);\n this.cdr.markForCheck();\n }\n\n ngOnDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n }\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\nimport { NgAntdColorPickerModule } from 'ng-antd-color-picker';\n\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzInputNumberModule } from 'ng-zorro-antd/input-number';\nimport { NzPopoverModule } from 'ng-zorro-antd/popover';\nimport { NzSelectModule } from 'ng-zorro-antd/select';\n\nimport { NzColorBlockComponent } from './color-block.component';\nimport { NzColorFormatComponent } from './color-format.component';\nimport { NzColorPickerComponent } from './color-picker.component';\n\n@NgModule({\n declarations: [NzColorPickerComponent, NzColorBlockComponent, NzColorFormatComponent],\n imports: [\n CommonModule,\n NgAntdColorPickerModule,\n NzPopoverModule,\n NzSelectModule,\n FormsModule,\n NzInputNumberModule,\n NzInputModule,\n ReactiveFormsModule\n ],\n exports: [NzColorPickerComponent, NzColorBlockComponent]\n})\nexport class NzColorPickerModule {}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nexport * from './typings';\nexport * from './color-picker.component';\nexport * from './color-block.component';\nexport * from './color-picker.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i3","i4","i5.NzColorBlockComponent","i6.NzColorFormatComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;AAGG;;ACHH;;;AAGG;MAmBU,qBAAqB,CAAA;AAKhC,IAAA,WAAA,GAAA;AAJS,QAAA,IAAA,CAAA,OAAO,GAAW,YAAY,CAAC,WAAW,EAAE,CAAC;QAC7C,IAAM,CAAA,MAAA,GAAkB,SAAS,CAAC;AACxB,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,YAAY,EAAW,CAAC;KAE3C;8GALL,q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