{"version":3,"file":"ng-zorro-antd-calendar.mjs","names":[],"sources":["../../components/calendar/calendar-cells.ts","../../components/calendar/calendar-header.component.ts","../../components/calendar/calendar.component.ts","../../components/calendar/calendar.module.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 { Directive } from '@angular/core';\n\n@Directive({\n  selector: '[nzDateCell]',\n  exportAs: 'nzDateCell'\n})\nexport class NzDateCellDirective {}\n\n@Directive({\n  selector: '[nzMonthCell]',\n  exportAs: 'nzMonthCell'\n})\nexport class NzMonthCellDirective {}\n\n@Directive({\n  selector: '[nzDateFullCell]',\n  exportAs: 'nzDateFullCell'\n})\nexport class NzDateFullCellDirective {}\n\n@Directive({\n  selector: '[nzMonthFullCell]',\n  exportAs: 'nzMonthFullCell'\n})\nexport class NzMonthFullCellDirective {}\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  Component,\n  EventEmitter,\n  Input,\n  OnChanges,\n  OnInit,\n  Output,\n  SimpleChanges,\n  TemplateRef,\n  ViewEncapsulation,\n  booleanAttribute,\n  inject\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { FormsModule } from '@angular/forms';\n\nimport { NzStringTemplateOutletDirective } from 'ng-zorro-antd/core/outlet';\nimport { CandyDate, NzDateAdapter } from 'ng-zorro-antd/core/time';\nimport { NzI18nPipe } from 'ng-zorro-antd/i18n';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\nimport { NzSelectModule, NzSelectSizeType } from 'ng-zorro-antd/select';\n\n@Component({\n  selector: 'nz-calendar-header',\n  exportAs: 'nzCalendarHeader',\n  imports: [FormsModule, NzI18nPipe, NzSelectModule, NzRadioModule, NzStringTemplateOutletDirective],\n  encapsulation: ViewEncapsulation.None,\n  template: `\n    @if (nzCustomHeader) {\n      <ng-container *nzStringTemplateOutlet=\"nzCustomHeader\">{{ nzCustomHeader }}</ng-container>\n    } @else {\n      <div class=\"ant-picker-calendar-header\">\n        <nz-select\n          class=\"ant-picker-calendar-year-select\"\n          [nzSize]=\"size\"\n          [nzDropdownMatchSelectWidth]=\"false\"\n          [ngModel]=\"activeYear\"\n          [ngModelOptions]=\"{ standalone: true }\"\n          (ngModelChange)=\"updateYear($event)\"\n        >\n          @for (year of years; track year.value) {\n            <nz-option [nzLabel]=\"year.label\" [nzValue]=\"year.value\" />\n          }\n        </nz-select>\n\n        @if (mode === 'month') {\n          <nz-select\n            class=\"ant-picker-calendar-month-select\"\n            [nzSize]=\"size\"\n            [nzDropdownMatchSelectWidth]=\"false\"\n            [ngModel]=\"activeMonth\"\n            [ngModelOptions]=\"{ standalone: true }\"\n            (ngModelChange)=\"monthChange.emit($event)\"\n          >\n            @for (month of months; track month.value) {\n              <nz-option [nzLabel]=\"month.label\" [nzValue]=\"month.value\" />\n            }\n          </nz-select>\n        }\n\n        <nz-radio-group\n          class=\"ant-picker-calendar-mode-switch\"\n          [(ngModel)]=\"mode\"\n          [ngModelOptions]=\"{ standalone: true }\"\n          (ngModelChange)=\"modeChange.emit($event)\"\n          [nzSize]=\"size\"\n        >\n          <label nz-radio-button nzValue=\"month\">{{ 'Calendar.lang.month' | nzI18n }}</label>\n          <label nz-radio-button nzValue=\"year\">{{ 'Calendar.lang.year' | nzI18n }}</label>\n        </nz-radio-group>\n      </div>\n    }\n  `,\n  host: {\n    class: 'ant-fullcalendar-header',\n    '[style.display]': `'block'`\n  }\n})\nexport class NzCalendarHeaderComponent implements OnInit, OnChanges {\n  private readonly dateAdapter = inject(NzDateAdapter);\n\n  @Input() mode: 'month' | 'year' = 'month';\n  @Input({ transform: booleanAttribute }) fullscreen: boolean = true;\n  @Input() activeDate = new CandyDate();\n  @Input() nzCustomHeader?: string | TemplateRef<void>;\n\n  @Output() readonly modeChange = new EventEmitter<'month' | 'year'>();\n  @Output() readonly yearChange = new EventEmitter<number>();\n  @Output() readonly monthChange = new EventEmitter<number>();\n\n  yearOffset: number = 10;\n  yearTotal: number = 20;\n  years: Array<{ label: string; value: number }> = [];\n  months: Array<{ label: string; value: number }> = [];\n\n  get activeYear(): number {\n    return this.activeDate.getYear();\n  }\n\n  get activeMonth(): number {\n    return this.activeDate.getMonth();\n  }\n\n  get size(): NzSelectSizeType {\n    return this.fullscreen ? 'default' : 'small';\n  }\n\n  constructor() {\n    this.dateAdapter.localeChanges.pipe(takeUntilDestroyed()).subscribe(() => {\n      this.setUpYears();\n      this.setUpMonths();\n    });\n  }\n\n  ngOnInit(): void {\n    this.setUpYears();\n    this.setUpMonths();\n  }\n\n  ngOnChanges(changes: SimpleChanges): void {\n    const { activeDate } = changes;\n    if (activeDate) {\n      if (activeDate.previousValue?.getYear() !== activeDate.currentValue?.getYear()) {\n        this.setUpYears();\n      }\n    }\n  }\n\n  updateYear(year: number): void {\n    this.yearChange.emit(year);\n    this.setUpYears(year);\n  }\n\n  private setUpYears(year?: number): void {\n    const start = (year || this.activeYear) - this.yearOffset;\n    const end = start + this.yearTotal;\n\n    this.years = [];\n    for (let i = start; i < end; i++) {\n      this.years.push({ label: `${i}`, value: i });\n    }\n  }\n\n  private setUpMonths(): void {\n    this.months = [];\n\n    for (let i = 0; i < 12; i++) {\n      const dateInMonth = this.activeDate.setMonth(i);\n      const monthText = this.dateAdapter.format(dateInMonth.nativeDate, 'MMM');\n      this.months.push({ label: monthText, value: i });\n    }\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 { Directionality } from '@angular/cdk/bidi';\nimport {\n  ChangeDetectorRef,\n  Component,\n  ContentChild,\n  EventEmitter,\n  Input,\n  OnChanges,\n  Output,\n  SimpleChanges,\n  TemplateRef,\n  ViewEncapsulation,\n  booleanAttribute,\n  forwardRef,\n  inject\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\nimport { CandyDate } from 'ng-zorro-antd/core/time';\nimport { LibPackerModule } from 'ng-zorro-antd/date-picker';\nimport { NzCalendarI18nInterface, NzI18nService } from 'ng-zorro-antd/i18n';\n\nimport {\n  NzDateCellDirective,\n  NzDateFullCellDirective,\n  NzMonthCellDirective,\n  NzMonthFullCellDirective\n} from './calendar-cells';\nimport { NzCalendarHeaderComponent } from './calendar-header.component';\n\nexport type NzCalendarMode = 'month' | 'year';\ntype NzCalendarDateTemplate = TemplateRef<{ $implicit: Date }>;\n\n@Component({\n  selector: 'nz-calendar',\n  exportAs: 'nzCalendar',\n  providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => NzCalendarComponent), multi: true }],\n  imports: [NzCalendarHeaderComponent, LibPackerModule],\n  template: `\n    <nz-calendar-header\n      [fullscreen]=\"nzFullscreen\"\n      [activeDate]=\"activeDate\"\n      [nzCustomHeader]=\"nzCustomHeader\"\n      [(mode)]=\"nzMode\"\n      (modeChange)=\"onModeChange($event)\"\n      (yearChange)=\"onYearSelect($event)\"\n      (monthChange)=\"onMonthSelect($event)\"\n    />\n\n    <div class=\"ant-picker-panel\">\n      <div class=\"ant-picker-{{ nzMode === 'month' ? 'date' : 'month' }}-panel\">\n        <div class=\"ant-picker-body\">\n          @if (nzMode === 'month') {\n            <!--  TODO(@wenqi73) [cellRender] [fullCellRender] -->\n            <date-table\n              [prefixCls]=\"prefixCls\"\n              [value]=\"activeDate\"\n              [activeDate]=\"activeDate\"\n              [locale]=\"locale\"\n              [cellRender]=\"$any(dateCell)\"\n              [fullCellRender]=\"$any(dateFullCell)\"\n              [disabledDate]=\"nzDisabledDate\"\n              (valueChange)=\"onDateSelect($event)\"\n            />\n          } @else {\n            <month-table\n              [prefixCls]=\"prefixCls\"\n              [value]=\"activeDate\"\n              [activeDate]=\"activeDate\"\n              [locale]=\"locale\"\n              [cellRender]=\"$any(monthCell)\"\n              [fullCellRender]=\"$any(monthFullCell)\"\n              (valueChange)=\"onDateSelect($event)\"\n            />\n          }\n        </div>\n      </div>\n    </div>\n  `,\n  host: {\n    class: 'ant-picker-calendar',\n    '[class.ant-picker-calendar-full]': 'nzFullscreen',\n    '[class.ant-picker-calendar-mini]': '!nzFullscreen',\n    '[class.ant-picker-calendar-rtl]': `dir() === 'rtl'`\n  },\n  encapsulation: ViewEncapsulation.None\n})\nexport class NzCalendarComponent implements ControlValueAccessor, OnChanges {\n  private readonly cdr = inject(ChangeDetectorRef);\n  private readonly i18n = inject(NzI18nService);\n  protected readonly dir = inject(Directionality).valueSignal;\n\n  locale!: NzCalendarI18nInterface;\n  activeDate = new CandyDate();\n  prefixCls = 'ant-picker-calendar';\n\n  private onChangeFn: (date: Date) => void = () => {};\n  private onTouchFn: () => void = () => {};\n\n  @Input() nzMode: NzCalendarMode = 'month';\n  @Input() nzValue?: Date;\n  @Input() nzDisabledDate?: (date: Date) => boolean;\n\n  @Output() readonly nzModeChange = new EventEmitter<NzCalendarMode>();\n  @Output() readonly nzPanelChange = new EventEmitter<{ date: Date; mode: NzCalendarMode }>();\n  @Output() readonly nzSelectChange = new EventEmitter<Date>();\n  @Output() readonly nzValueChange = new EventEmitter<Date>();\n\n  /**\n   * Cannot use @Input and @ContentChild on one variable\n   * because { static: false } will make @Input property get delayed\n   **/\n  @Input() nzDateCell?: NzCalendarDateTemplate;\n  @ContentChild(NzDateCellDirective, { static: false, read: TemplateRef })\n  nzDateCellChild?: NzCalendarDateTemplate;\n  get dateCell(): NzCalendarDateTemplate {\n    return (this.nzDateCell || this.nzDateCellChild)!;\n  }\n\n  @Input() nzDateFullCell?: NzCalendarDateTemplate;\n  @ContentChild(NzDateFullCellDirective, { static: false, read: TemplateRef })\n  nzDateFullCellChild?: NzCalendarDateTemplate;\n  get dateFullCell(): NzCalendarDateTemplate {\n    return (this.nzDateFullCell || this.nzDateFullCellChild)!;\n  }\n\n  @Input() nzMonthCell?: NzCalendarDateTemplate;\n  @ContentChild(NzMonthCellDirective, { static: false, read: TemplateRef })\n  nzMonthCellChild?: NzCalendarDateTemplate;\n  get monthCell(): NzCalendarDateTemplate {\n    return (this.nzMonthCell || this.nzMonthCellChild)!;\n  }\n\n  @Input() nzMonthFullCell?: NzCalendarDateTemplate;\n  @ContentChild(NzMonthFullCellDirective, { static: false, read: TemplateRef })\n  nzMonthFullCellChild?: NzCalendarDateTemplate;\n  get monthFullCell(): NzCalendarDateTemplate {\n    return (this.nzMonthFullCell || this.nzMonthFullCellChild)!;\n  }\n\n  @Input() nzCustomHeader?: string | TemplateRef<void>;\n  @Input({ transform: booleanAttribute }) nzFullscreen = true;\n\n  constructor() {\n    this.i18n.localeChange.pipe(takeUntilDestroyed()).subscribe(() => {\n      this.locale = this.i18n.getLocaleData('Calendar', {}).lang;\n      this.cdr.markForCheck();\n    });\n  }\n\n  onModeChange(mode: NzCalendarMode): void {\n    this.nzModeChange.emit(mode);\n    this.nzPanelChange.emit({ date: this.activeDate.nativeDate, mode });\n  }\n\n  onYearSelect(year: number): void {\n    const date = this.activeDate.setYear(year);\n    this.updateDate(date);\n  }\n\n  onMonthSelect(month: number): void {\n    const date = this.activeDate.setMonth(month);\n    this.updateDate(date);\n  }\n\n  onDateSelect(date: CandyDate): void {\n    // Only activeDate is enough in calendar\n    // this.value = date;\n    this.updateDate(date);\n  }\n\n  writeValue(value: Date | null): void {\n    this.updateDate(new CandyDate(value as Date), false);\n  }\n\n  registerOnChange(fn: (date: Date) => void): void {\n    this.onChangeFn = fn;\n  }\n\n  registerOnTouched(fn: () => void): void {\n    this.onTouchFn = fn;\n  }\n\n  private updateDate(date: CandyDate, touched: boolean = true): void {\n    this.activeDate = date;\n\n    if (touched) {\n      this.onChangeFn(date.nativeDate);\n      this.onTouchFn();\n      this.nzSelectChange.emit(date.nativeDate);\n      this.nzValueChange.emit(date.nativeDate);\n    }\n\n    this.cdr.markForCheck();\n  }\n\n  ngOnChanges(changes: SimpleChanges): void {\n    if (changes.nzValue) {\n      this.updateDate(new CandyDate(this.nzValue), false);\n    }\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 { NgModule } from '@angular/core';\n\nimport {\n  NzDateCellDirective,\n  NzDateFullCellDirective,\n  NzMonthCellDirective,\n  NzMonthFullCellDirective\n} from './calendar-cells';\nimport { NzCalendarHeaderComponent } from './calendar-header.component';\nimport { NzCalendarComponent } from './calendar.component';\n\nconst CELL_DIRECTIVES = [NzDateCellDirective, NzDateFullCellDirective, NzMonthCellDirective, NzMonthFullCellDirective];\n\n@NgModule({\n  imports: [NzCalendarHeaderComponent, NzCalendarComponent, ...CELL_DIRECTIVES],\n  exports: [NzCalendarComponent, ...CELL_DIRECTIVES]\n})\nexport class NzCalendarModule {}\n"],"mappings":";;;;;;;;;;;;;;;AAWA,IAAa,sBAAb,MAAa,oBAAmB;CAAnB,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAmB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAnB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAmB,cAAA;EAAA,UAAA;EAAA,UAAA,CAAA,YAAA;EAAA,UAAA;CAAA,CAAA;;AAAnB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAmB,YAAA,CAAA;EAJ/B,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,UAAU;EACX,CAAA;;;AAOD,IAAa,uBAAb,MAAa,qBAAoB;CAApB,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAoB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAA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