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

import { NzCheckboxModule } from 'ng-zorro-antd/checkbox';
import { NzGridModule } from 'ng-zorro-antd/grid';

@Component({
  selector: '<%= selector %>',
  imports: [FormsModule, NzCheckboxModule, NzGridModule],
  <% if(inlineTemplate) { %>template: `
    <nz-checkbox-wrapper style="width: 100%;" (nzOnChange)="log($event)">
      <nz-row>
        <nz-col nzSpan="8">
          <label nz-checkbox nzValue="A" [ngModel]="true">A</label>
        </nz-col>
        <nz-col nzSpan="8">
          <label nz-checkbox nzValue="B">B</label>
        </nz-col>
        <nz-col nzSpan="8">
          <label nz-checkbox nzValue="C">C</label>
        </nz-col>
        <nz-col nzSpan="8">
          <label nz-checkbox nzValue="D">D</label>
        </nz-col>
        <nz-col nzSpan="8">
          <label nz-checkbox nzValue="E">E</label>
        </nz-col>
      </nz-row>
    </nz-checkbox-wrapper>
  `<% } else { %>templateUrl: './<%= dasherize(name) %>.component.html'<% } %>
})
export class <%= classify(name) %>Component {
  value = ['A'];

  log(value: string[]): void {
    console.log(value);
  }
}
