import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';

import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzColorPickerModule } from 'ng-zorro-antd/color-picker';

@Component({
  selector: '<%= selector %>',
  imports: [FormsModule, NzButtonModule, NzColorPickerModule],
  <% if(inlineTemplate) { %>template: `
    <nz-color-picker [nzFlipFlop]="flipFlop" [(ngModel)]="color"></nz-color-picker>
    <ng-template #flipFlop>
      <button nz-button nzType="primary" [style.background-color]="color">Color</button>
    </ng-template>
  `<% } else { %>templateUrl: './<%= dasherize(name) %>.component.html'<% } %>,
  <% if(inlineStyle) { %>styles: [`
      button {
        border: none;
      }
    `]<% } else { %>styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>']<% } %>
})
export class <%= classify(name) %>Component {
  color = '#1677ff';
}
