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

import { NzMarks, NzSliderModule } from 'ng-zorro-antd/slider';
import { NzSwitchModule } from 'ng-zorro-antd/switch';

@Component({
  selector: '<%= selector %>',
  imports: [FormsModule, NzSliderModule, NzSwitchModule],
  <% if(inlineTemplate) { %>template: `
    <nz-slider [ngModel]="30" [nzReverse]="reverse"></nz-slider>
    <nz-slider nzRange [ngModel]="[20, 50]" [nzReverse]="reverse"></nz-slider>
    <nz-slider [nzMarks]="marks" [ngModel]="30" [nzReverse]="reverse"></nz-slider>
    Reversed:
    <nz-switch nzSize="small" [(ngModel)]="reverse"></nz-switch>
  `<% } else { %>templateUrl: './<%= dasherize(name) %>.component.html'<% } %>,
  <% if(inlineStyle) { %>styles: [`
      .ant-slider-with-marks {
        margin-bottom: 44px;
      }
    `]<% } else { %>styleUrls: ['./<%= dasherize(name) %>.component.<%= style %>']<% } %>
})
export class <%= classify(name) %>Component {
  reverse = true;

  marks: NzMarks = {
    0: '0°C',
    26: '26°C',
    37: '37°C',
    100: {
      style: {
        color: '#f50'
      },
      label: '<strong>100°C</strong>'
    }
  };
}
