-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathchunk-2GECKGN5.js
33 lines (33 loc) · 41.6 KB
/
chunk-2GECKGN5.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import{a as $e,b as Ue,c as qe}from"./chunk-X4SMD34Y.js";import"./chunk-UIMO4O7E.js";import{a as We,b as Ye,c as Ze}from"./chunk-QJV6BNJ5.js";import{b as Re,h as Oe,i as Ve}from"./chunk-VXEXO2ZG.js";import"./chunk-7YBW4ECE.js";import{c as Be,f as ke}from"./chunk-WB2K572S.js";import{o as q}from"./chunk-NOC6LG5C.js";import{a as Le,b as Pe}from"./chunk-U36PLR3L.js";import{a as Ge,c as Qe}from"./chunk-JEXA74LK.js";import"./chunk-EGUMISKP.js";import"./chunk-SF6YDLBW.js";import"./chunk-FKGJGU3K.js";import"./chunk-B3KZDYFP.js";import{a as y,g as oe,h as re,j as de}from"./chunk-CQCG3332.js";import"./chunk-MC2HPSUP.js";import"./chunk-V4U3URE2.js";import{Ca as te,Fa as Ae,Fc as R,Gb as Ie,Hc as ie,Ic as ae,Lc as le,ec as ne,hc as He,oc as I,sc as H}from"./chunk-U67ZLHSB.js";import{$b as _e,Aa as F,Ac as ee,Ba as N,Bc as S,Cc as D,Gc as ye,Hc as e,Ib as C,Ic as A,Jb as ge,Ka as _,Kb as Z,Mc as w,Nc as v,Ob as ue,Oc as B,Od as we,Pb as f,Sc as Fe,Wb as s,Xb as Se,Yb as De,Yc as Ne,_c as Me,aa as xe,bd as be,dc as M,ec as J,f as he,ga as fe,gc as b,hc as T,hd as Te,ia as Ee,ic as n,jc as t,kc as c,lc as K,ld as pe,mc as X,oc as $,rc as u,tb as m,tc as z,ub as W,wb as Y,xa as ce,xc as ve,ya as h,za as x,zc as U}from"./chunk-6WFMSBDD.js";import"./chunk-EQDQRRRY.js";var Je=(a,r)=>r.value;function Xe(a,r){if(a&1&&(K(0),e(1),X()),a&2){let i=z(2);m(),A(i.nzCustomHeader)}}function et(a,r){if(a&1&&f(0,Xe,2,1,"ng-container",1),a&2){let i=z();s("nzStringTemplateOutlet",i.nzCustomHeader)}}function tt(a,r){if(a&1&&c(0,"nz-option",3),a&2){let i=r.$implicit;s("nzLabel",i.label)("nzValue",i.value)}}function nt(a,r){if(a&1&&c(0,"nz-option",3),a&2){let i=r.$implicit;s("nzLabel",i.label)("nzValue",i.value)}}function it(a,r){if(a&1){let i=$();n(0,"nz-select",8),u("ngModelChange",function(o){F(i);let d=z(2);return N(d.monthChange.emit(o))}),b(1,nt,1,2,"nz-option",3,Je),t()}if(a&2){let i=z(2);s("nzSize",i.size)("nzDropdownMatchSelectWidth",!1)("ngModel",i.activeMonth),m(),T(i.months)}}function at(a,r){if(a&1){let i=$();n(0,"div",0)(1,"nz-select",2),u("ngModelChange",function(o){F(i);let d=z();return N(d.updateYear(o))}),b(2,tt,1,2,"nz-option",3,Je),t(),f(4,it,3,3,"nz-select",4),n(5,"nz-radio-group",5),B("ngModelChange",function(o){F(i);let d=z();return v(d.mode,o)||(d.mode=o),N(o)}),u("ngModelChange",function(o){F(i);let d=z();return N(d.modeChange.emit(o))}),n(6,"label",6),e(7),t(),n(8,"label",7),e(9),t()()()}if(a&2){let i=z();m(),s("nzSize",i.size)("nzDropdownMatchSelectWidth",!1)("ngModel",i.activeYear),m(),T(i.years),m(2),M(i.mode==="month"?4:-1),m(),w("ngModel",i.mode),s("nzSize",i.size),m(2),A(i.monthTypeText),m(2),A(i.yearTypeText)}}function lt(a,r){if(a&1){let i=$();n(0,"date-table",5),u("valueChange",function(o){F(i);let d=z();return N(d.onDateSelect(o))}),t()}if(a&2){let i=z();s("prefixCls",i.prefixCls)("value",i.activeDate)("activeDate",i.activeDate)("cellRender",i.dateCell)("fullCellRender",i.dateFullCell)("disabledDate",i.nzDisabledDate)}}function ot(a,r){if(a&1){let i=$();n(0,"month-table",6),u("valueChange",function(o){F(i);let d=z();return N(d.onDateSelect(o))}),t()}if(a&2){let i=z();s("prefixCls",i.prefixCls)("value",i.activeDate)("activeDate",i.activeDate)("cellRender",i.monthCell)("fullCellRender",i.monthFullCell)}}var ze=(()=>{class a{static \u0275fac=function(l){return new(l||a)};static \u0275dir=Z({type:a,selectors:[["","nzDateCell",""]],exportAs:["nzDateCell"]})}return a})(),Ce=(()=>{class a{static \u0275fac=function(l){return new(l||a)};static \u0275dir=Z({type:a,selectors:[["","nzMonthCell",""]],exportAs:["nzMonthCell"]})}return a})(),rt=(()=>{class a{static \u0275fac=function(l){return new(l||a)};static \u0275dir=Z({type:a,selectors:[["","nzDateFullCell",""]],exportAs:["nzDateFullCell"]})}return a})(),dt=(()=>{class a{static \u0275fac=function(l){return new(l||a)};static \u0275dir=Z({type:a,selectors:[["","nzMonthFullCell",""]],exportAs:["nzMonthFullCell"]})}return a})(),Ke=(()=>{class a{i18n;dateHelper;mode="month";fullscreen=!0;activeDate=new q;nzCustomHeader;modeChange=new _;yearChange=new _;monthChange=new _;yearOffset=10;yearTotal=20;years=[];months=[];get activeYear(){return this.activeDate.getYear()}get activeMonth(){return this.activeDate.getMonth()}get size(){return this.fullscreen?"default":"small"}get yearTypeText(){return this.i18n.getLocale().Calendar.lang.year}get monthTypeText(){return this.i18n.getLocale().Calendar.lang.month}constructor(i,l){this.i18n=i,this.dateHelper=l}ngOnInit(){this.setUpYears(),this.setUpMonths()}ngOnChanges(i){if(i.activeDate){let l=i.activeDate.previousValue,o=i.activeDate.currentValue;l?.getYear()!==o?.getYear()&&this.setUpYears()}}updateYear(i){this.yearChange.emit(i),this.setUpYears(i)}setUpYears(i){let l=(i||this.activeYear)-this.yearOffset,o=l+this.yearTotal;this.years=[];for(let d=l;d<o;d++)this.years.push({label:`${d}`,value:d})}setUpMonths(){this.months=[];for(let i=0;i<12;i++){let l=this.activeDate.setMonth(i),o=this.dateHelper.format(l.nativeDate,"MMM");this.months.push({label:o,value:i})}}static \u0275fac=function(l){return new(l||a)(W(Be),W(ke))};static \u0275cmp=C({type:a,selectors:[["nz-calendar-header"]],hostAttrs:[1,"ant-fullcalendar-header"],hostVars:2,hostBindings:function(l,o){l&2&&Se("display","block")},inputs:{mode:"mode",fullscreen:[2,"fullscreen","fullscreen",pe],activeDate:"activeDate",nzCustomHeader:"nzCustomHeader"},outputs:{modeChange:"modeChange",yearChange:"yearChange",monthChange:"monthChange"},exportAs:["nzCalendarHeader"],features:[ue,ce],decls:2,vars:1,consts:[[1,"ant-picker-calendar-header"],[4,"nzStringTemplateOutlet"],[1,"ant-picker-calendar-year-select",3,"ngModelChange","nzSize","nzDropdownMatchSelectWidth","ngModel"],[3,"nzLabel","nzValue"],[1,"ant-picker-calendar-month-select",3,"nzSize","nzDropdownMatchSelectWidth","ngModel"],[1,"ant-picker-calendar-mode-switch",3,"ngModelChange","ngModel","nzSize"],["nz-radio-button","","nzValue","month"],["nz-radio-button","","nzValue","year"],[1,"ant-picker-calendar-month-select",3,"ngModelChange","nzSize","nzDropdownMatchSelectWidth","ngModel"]],template:function(l,o){l&1&&f(0,et,1,1,"ng-container")(1,at,10,8,"div",0),l&2&&M(o.nzCustomHeader?0:1)},dependencies:[Ve,Re,Oe,R,I,H,Ze,Ye,We,Ie],encapsulation:2,changeDetection:0})}return a})(),E=(()=>{class a{cdr;directionality;activeDate=new q;prefixCls="ant-picker-calendar";destroy$=new he;dir="ltr";onChangeFn=()=>{};onTouchFn=()=>{};nzMode="month";nzValue;nzDisabledDate;nzModeChange=new _;nzPanelChange=new _;nzSelectChange=new _;nzValueChange=new _;nzDateCell;nzDateCellChild;get dateCell(){return this.nzDateCell||this.nzDateCellChild}nzDateFullCell;nzDateFullCellChild;get dateFullCell(){return this.nzDateFullCell||this.nzDateFullCellChild}nzMonthCell;nzMonthCellChild;get monthCell(){return this.nzMonthCell||this.nzMonthCellChild}nzMonthFullCell;nzMonthFullCellChild;get monthFullCell(){return this.nzMonthFullCell||this.nzMonthFullCellChild}nzCustomHeader;nzFullscreen=!0;constructor(i,l){this.cdr=i,this.directionality=l}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(xe(this.destroy$)).subscribe(()=>{this.dir=this.directionality.value})}onModeChange(i){this.nzModeChange.emit(i),this.nzPanelChange.emit({date:this.activeDate.nativeDate,mode:i})}onYearSelect(i){let l=this.activeDate.setYear(i);this.updateDate(l)}onMonthSelect(i){let l=this.activeDate.setMonth(i);this.updateDate(l)}onDateSelect(i){this.updateDate(i)}writeValue(i){this.updateDate(new q(i),!1),this.cdr.markForCheck()}registerOnChange(i){this.onChangeFn=i}registerOnTouched(i){this.onTouchFn=i}updateDate(i,l=!0){this.activeDate=i,l&&(this.onChangeFn(i.nativeDate),this.onTouchFn(),this.nzSelectChange.emit(i.nativeDate),this.nzValueChange.emit(i.nativeDate))}ngOnChanges(i){i.nzValue&&this.updateDate(new q(this.nzValue),!1)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static \u0275fac=function(l){return new(l||a)(W(Te),W(Ae))};static \u0275cmp=C({type:a,selectors:[["nz-calendar"]],contentQueries:function(l,o,d){if(l&1&&(U(d,ze,5,Y),U(d,rt,5,Y),U(d,Ce,5,Y),U(d,dt,5,Y)),l&2){let p;S(p=D())&&(o.nzDateCellChild=p.first),S(p=D())&&(o.nzDateFullCellChild=p.first),S(p=D())&&(o.nzMonthCellChild=p.first),S(p=D())&&(o.nzMonthFullCellChild=p.first)}},hostAttrs:[1,"ant-picker-calendar"],hostVars:6,hostBindings:function(l,o){l&2&&De("ant-picker-calendar-full",o.nzFullscreen)("ant-picker-calendar-mini",!o.nzFullscreen)("ant-picker-calendar-rtl",o.dir==="rtl")},inputs:{nzMode:"nzMode",nzValue:"nzValue",nzDisabledDate:"nzDisabledDate",nzDateCell:"nzDateCell",nzDateFullCell:"nzDateFullCell",nzMonthCell:"nzMonthCell",nzMonthFullCell:"nzMonthFullCell",nzCustomHeader:"nzCustomHeader",nzFullscreen:[2,"nzFullscreen","nzFullscreen",pe]},outputs:{nzModeChange:"nzModeChange",nzPanelChange:"nzPanelChange",nzSelectChange:"nzSelectChange",nzValueChange:"nzValueChange"},exportAs:["nzCalendar"],features:[Fe([{provide:He,useExisting:fe(()=>a),multi:!0}]),ue,ce],decls:6,vars:8,consts:[[3,"modeChange","yearChange","monthChange","fullscreen","activeDate","nzCustomHeader","mode"],[1,"ant-picker-panel"],[1,"ant-picker-body"],[3,"prefixCls","value","activeDate","cellRender","fullCellRender","disabledDate"],[3,"prefixCls","value","activeDate","cellRender","fullCellRender"],[3,"valueChange","prefixCls","value","activeDate","cellRender","fullCellRender","disabledDate"],[3,"valueChange","prefixCls","value","activeDate","cellRender","fullCellRender"]],template:function(l,o){l&1&&(n(0,"nz-calendar-header",0),B("modeChange",function(p){return v(o.nzMode,p)||(o.nzMode=p),p}),u("modeChange",function(p){return o.onModeChange(p)})("yearChange",function(p){return o.onYearSelect(p)})("monthChange",function(p){return o.onMonthSelect(p)}),t(),n(1,"div",1)(2,"div")(3,"div",2),f(4,lt,1,6,"date-table",3)(5,ot,1,5,"month-table",4),t()()()),l&2&&(s("fullscreen",o.nzFullscreen)("activeDate",o.activeDate)("nzCustomHeader",o.nzCustomHeader),w("mode",o.nzMode),m(2),_e("ant-picker-",o.nzMode==="month"?"date":"month","-panel"),m(2),M(o.nzMode==="month"?4:5))},dependencies:[Ke,qe,Ue,$e],encapsulation:2,changeDetection:0})}return a})(),g=(()=>{class a{static \u0275fac=function(l){return new(l||a)};static \u0275mod=ge({type:a});static \u0275inj=Ee({imports:[Ke,E]})}return a})();var O=class a{date=new Date(2012,11,21);mode="month";panelChange(r){console.log(r.date,r.mode)}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=C({type:a,selectors:[["nz-demo-calendar-basic"]],decls:1,vars:2,consts:[[3,"ngModelChange","nzModeChange","nzPanelChange","ngModel","nzMode"]],template:function(i,l){i&1&&(n(0,"nz-calendar",0),B("ngModelChange",function(d){return v(l.date,d)||(l.date=d),d})("nzModeChange",function(d){return v(l.mode,d)||(l.mode=d),d}),u("nzPanelChange",function(d){return l.panelChange(d)}),t()),i&2&&w("ngModel",l.date)("nzMode",l.mode)},dependencies:[R,I,H,g,E],encapsulation:2})};var L=class a{onValueChange(r){console.log(`Current value: ${r}`)}onPanelChange(r){console.log(`Current value: ${r.date}`),console.log(`Current mode: ${r.mode}`)}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=C({type:a,selectors:[["nz-demo-calendar-card"]],decls:2,vars:1,consts:[[1,"card"],[3,"nzSelectChange","nzPanelChange","nzFullscreen"]],template:function(i,l){i&1&&(n(0,"div",0)(1,"nz-calendar",1),u("nzSelectChange",function(d){return l.onValueChange(d)})("nzPanelChange",function(d){return l.onPanelChange(d)}),t()()),i&2&&(m(),s("nzFullscreen",!1))},dependencies:[g,E],styles:[".card[_ngcontent-%COMP%]{width:300px;border:1px solid #d9d9d9;border-radius:4px}"]})};function mt(a,r){a&1&&(n(0,"div",3)(1,"h4"),e(2,"Custom header"),t()())}var P=class a{static \u0275fac=function(i){return new(i||a)};static \u0275cmp=C({type:a,selectors:[["nz-demo-calendar-customize-header"]],decls:4,vars:2,consts:[["customHeader",""],[1,"card"],[3,"nzFullscreen","nzCustomHeader"],[2,"padding","8px"]],template:function(i,l){if(i&1&&(n(0,"div",1),c(1,"nz-calendar",2),t(),f(2,mt,3,0,"ng-template",null,0,be)),i&2){let o=ye(3);m(),s("nzFullscreen",!1)("nzCustomHeader",o)}},dependencies:[g,E],styles:[".card[_ngcontent-%COMP%]{width:300px;border:1px solid #d9d9d9;border-radius:4px}"]})};function st(a,r){if(a&1&&(n(0,"li"),c(1,"nz-badge",3),t()),a&2){let i=r.$implicit;m(),s("nzStatus",i.type)("nzText",i.content)}}function ct(a,r){if(a&1&&b(0,st,2,2,"li",null,J),a&2){let i=z(2);T(i.listDataMap.eight)}}function ut(a,r){if(a&1&&(n(0,"li"),c(1,"nz-badge",3),t()),a&2){let i=r.$implicit;m(),s("nzStatus",i.type)("nzText",i.content)}}function pt(a,r){if(a&1&&b(0,ut,2,2,"li",null,J),a&2){let i=z(2);T(i.listDataMap.ten)}}function zt(a,r){if(a&1&&(n(0,"li"),c(1,"nz-badge",3),t()),a&2){let i=r.$implicit;m(),s("nzStatus",i.type)("nzText",i.content)}}function Ct(a,r){if(a&1&&b(0,zt,2,2,"li",null,J),a&2){let i=z(2);T(i.listDataMap.eleven)}}function ht(a,r){if(a&1&&(n(0,"ul",2),f(1,ct,2,0)(2,pt,2,0)(3,Ct,2,0),t()),a&2){let i,l=r.$implicit;m(),M((i=l.getDate())===8?1:i===10?2:i===11?3:-1)}}function xt(a,r){a&1&&(n(0,"div",4)(1,"section"),e(2),t(),n(3,"span"),e(4,"Backlog number"),t()()),a&2&&(m(2),A(r))}function ft(a,r){if(a&1&&(K(0),f(1,xt,5,1,"div",4),X()),a&2){let i,l=r.$implicit,o=z();m(),M((i=o.getMonthData(l))?1:-1,i)}}var G=class a{listDataMap={eight:[{type:"warning",content:"This is warning event."},{type:"success",content:"This is usual event."}],ten:[{type:"warning",content:"This is warning event."},{type:"success",content:"This is usual event."},{type:"error",content:"This is error event."}],eleven:[{type:"warning",content:"This is warning event"},{type:"success",content:"This is very long usual event........"},{type:"error",content:"This is error event 1."},{type:"error",content:"This is error event 2."},{type:"error",content:"This is error event 3."},{type:"error",content:"This is error event 4."}]};getMonthData(r){return r.getMonth()===8?1394:null}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=C({type:a,selectors:[["nz-demo-calendar-notice-calendar"]],decls:3,vars:0,consts:[["class","events",4,"nzDateCell"],[4,"nzMonthCell"],[1,"events"],[3,"nzStatus","nzText"],[1,"notes-month"]],template:function(i,l){i&1&&(n(0,"nz-calendar"),f(1,ht,4,1,"ul",0)(2,ft,2,1,"ng-container",1),t())},dependencies:[Qe,Ge,g,E,ze,Ce],styles:[".events[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}.events[_ngcontent-%COMP%] .ant-badge-status[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;width:100%;text-overflow:ellipsis;font-size:12px}"]})};var Q=class a{selectedValue=new Date("2017-01-25");selectChange(r){console.log(`Select value: ${r}`)}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=C({type:a,selectors:[["nz-demo-calendar-select"]],decls:3,vars:6,consts:[[3,"nzMessage"],[3,"ngModelChange","nzSelectChange","ngModel"]],template:function(i,l){i&1&&(c(0,"nz-alert",0),Ne(1,"date"),n(2,"nz-calendar",1),B("ngModelChange",function(d){return v(l.selectedValue,d)||(l.selectedValue=d),d}),u("nzSelectChange",function(d){return l.selectChange(d)}),t()),i&2&&(ve("nzMessage","Your selected date: ",Me(1,3,l.selectedValue,"yyyy-MM-dd"),""),m(2),w("ngModel",l.selectedValue))},dependencies:[we,R,I,H,Pe,Le,g,E],encapsulation:2})};var me=class a{expanded=!1;codeBoxes;goLink(r){window&&(window.location.hash=r)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(r=>r.expandCode(this.expanded))}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=C({type:a,selectors:[["nz-demo-calendar"]],viewQuery:function(i,l){if(i&1&&ee(y,5),i&2){let o;S(o=D())&&(l.codeBoxes=o)}},decls:410,vars:29,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-calendar-demo-basic","nzTitle","\u57FA\u672C"],["nzHref","#components-calendar-demo-notice-calendar","nzTitle","\u901A\u77E5\u4E8B\u9879\u65E5\u5386"],["nzHref","#components-calendar-demo-card","nzTitle","\u5361\u7247\u6A21\u5F0F"],["nzHref","#components-calendar-demo-select","nzTitle","\u9009\u62E9\u529F\u80FD"],["nzHref","#components-calendar-demo-customize-header","nzTitle","\u81EA\u5B9A\u4E49\u5934\u90E8"],["nzHref","#api","nzTitle","API"],[1,"markdown"],[1,"subtitle"],[1,"widget"],["aria-label","Edit this page on Github","href","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/doc/index.zh-CN.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nzType","edit"],["id","\u4F55\u65F6\u4F7F\u7528"],["onclick","window.location.hash = '\u4F55\u65F6\u4F7F\u7528'",1,"anchor"],[1,"language-ts"],[1,"token","keyword"],[1,"token","punctuation"],[1,"token","string"],["nzType","appstore","nz-tooltip","","nzTooltipTitle","\u5C55\u5F00\u5168\u90E8\u4EE3\u7801",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan"],["nzTitle","\u57FA\u672C","nzSelector","nz-demo-calendar-basic","nzGenerateCommand","ng g ng-zorro-antd:calendar-basic <name>","nzComponentName","NzDemoCalendarBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","\u901A\u77E5\u4E8B\u9879\u65E5\u5386","nzSelector","nz-demo-calendar-notice-calendar","nzGenerateCommand","ng g ng-zorro-antd:calendar-notice-calendar <name>","nzComponentName","NzDemoCalendarNoticeCalendarComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u5361\u7247\u6A21\u5F0F","nzSelector","nz-demo-calendar-card","nzGenerateCommand","ng g ng-zorro-antd:calendar-card <name>","nzComponentName","NzDemoCalendarCardComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u9009\u62E9\u529F\u80FD","nzSelector","nz-demo-calendar-select","nzGenerateCommand","ng g ng-zorro-antd:calendar-select <name>","nzComponentName","NzDemoCalendarSelectComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","\u81EA\u5B9A\u4E49\u5934\u90E8","nzSelector","nz-demo-calendar-customize-header","nzGenerateCommand","ng g ng-zorro-antd:calendar-customize-header <name>","nzComponentName","NzDemoCalendarCustomizeHeaderComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],[1,"language-typescript"],[1,"token","function"],[1,"language-html"],[1,"token","tag"],[1,"token","attr-name"],[1,"token","attr-value"],[1,"token","punctuation","attr-equals"],[1,"token","comment"],["id","nz-calendar"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-calendar'",1,"anchor"]],template:function(i,l){i&1&&(n(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),u("nzClick",function(d){return l.goLink(d)}),c(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7),t()(),n(9,"section",8)(10,"h1"),e(11,"Calendar"),n(12,"span",9),e(13,"\u65E5\u5386"),t(),c(14,"span",10),n(15,"a",11),c(16,"nz-icon",12),t()(),n(17,"section",8),x(),n(18,"p"),e(19,"\u6309\u7167\u65E5\u5386\u5F62\u5F0F\u5C55\u793A\u6570\u636E\u7684\u5BB9\u5668\u3002"),t(),n(20,"h2",13)(21,"span"),e(22,"\u4F55\u65F6\u4F7F\u7528"),t(),n(23,"a",14),e(24,"#"),t()(),n(25,"p"),e(26,"\u5F53\u6570\u636E\u662F\u65E5\u671F\u6216\u6309\u7167\u65E5\u671F\u5212\u5206\u65F6\uFF0C\u4F8B\u5982\u65E5\u7A0B\u3001\u8BFE\u8868\u3001\u4EF7\u683C\u65E5\u5386\u7B49\uFF0C\u519C\u5386\u7B49\u3002\u76EE\u524D\u652F\u6301\u5E74/\u6708\u5207\u6362\u3002"),t(),n(27,"pre")(28,"code",15)(29,"span",16),e(30,"import"),t(),e(31," "),n(32,"span",17),e(33,"{"),t(),e(34," NzCalendarModule "),n(35,"span",17),e(36,"}"),t(),e(37," "),n(38,"span",16),e(39,"from"),t(),e(40," "),n(41,"span",18),e(42,"'ng-zorro-antd/calendar'"),t(),n(43,"span",17),e(44,";"),t(),e(45,`
`),t()(),h(),t(),n(46,"h2")(47,"span"),e(48,"\u4EE3\u7801\u6F14\u793A"),t(),n(49,"nz-icon",19),u("click",function(){return l.expandAllCode()}),t()()(),n(50,"div",20)(51,"div",21)(52,"nz-code-box",22),c(53,"nz-demo-calendar-basic",23),n(54,"div",24),x(),n(55,"p"),e(56,"\u4E00\u4E2A\u901A\u7528\u7684\u65E5\u5386\u9762\u677F\uFF0C\u652F\u6301\u5E74/\u6708\u5207\u6362\u3002"),t(),h(),t()(),n(57,"nz-code-box",25),c(58,"nz-demo-calendar-notice-calendar",23),n(59,"div",24),x(),n(60,"p"),e(61,"\u4E00\u4E2A\u590D\u6742\u7684\u5E94\u7528\u793A\u4F8B\uFF0C\u7528 "),n(62,"code"),e(63,"nzDateCell"),t(),e(64," \u548C "),n(65,"code"),e(66,"nzMonthCell"),t(),e(67," \u6A21\u7248\u6765\u81EA\u5B9A\u4E49\u9700\u8981\u6E32\u67D3\u7684\u6570\u636E\u3002"),t(),h(),t()(),n(68,"nz-code-box",26),c(69,"nz-demo-calendar-card",23),n(70,"div",24),x(),n(71,"p"),e(72,"\u7528\u4E8E\u5D4C\u5957\u5728\u7A7A\u95F4\u6709\u9650\u7684\u5BB9\u5668\u4E2D\u3002"),t(),h(),t()(),n(73,"nz-code-box",27),c(74,"nz-demo-calendar-select",23),n(75,"div",24),x(),n(76,"p"),e(77,"\u4E00\u4E2A\u901A\u7528\u7684\u65E5\u5386\u9762\u677F\uFF0C\u652F\u6301\u5E74/\u6708\u5207\u6362\u3002"),t(),h(),t()(),n(78,"nz-code-box",28),c(79,"nz-demo-calendar-customize-header",23),n(80,"div",24),x(),n(81,"p"),e(82,"\u81EA\u5B9A\u4E49\u65E5\u5386\u5934\u90E8\u5185\u5BB9\u3002"),t(),h(),t()()()(),n(83,"section",29),x(),n(84,"h2",30)(85,"span"),e(86,"API"),t(),n(87,"a",31),e(88,"#"),t()(),n(89,"p"),e(90,"**\u6CE8\u610F\uFF1A**Calendar \u7684\u90E8\u5206 locale \u6765\u81EA\u4E8E Angular \u81EA\u8EAB\u7684\u56FD\u9645\u5316\u652F\u6301\uFF0C\u9700\u8981\u5728 app.module.ts \u6587\u4EF6\u4E2D \u5F15\u5165\u76F8\u5E94\u7684 Angular \u8BED\u8A00\u5305\u3002"),t(),n(91,"p"),e(92,"\u4F8B\u5982\uFF1A"),t(),n(93,"pre")(94,"code",32)(95,"span",16),e(96,"import"),t(),e(97," "),n(98,"span",17),e(99,"{"),t(),e(100," registerLocaleData "),n(101,"span",17),e(102,"}"),t(),e(103," "),n(104,"span",16),e(105,"from"),t(),e(106," "),n(107,"span",18),e(108,"'@angular/common'"),t(),n(109,"span",17),e(110,";"),t(),e(111,`
`),n(112,"span",16),e(113,"import"),t(),e(114," zh "),n(115,"span",16),e(116,"from"),t(),e(117," "),n(118,"span",18),e(119,"'@angular/common/locales/zh'"),t(),n(120,"span",17),e(121,";"),t(),e(122,`
`),n(123,"span",33),e(124,"registerLocaleData"),t(),n(125,"span",17),e(126,"("),t(),e(127,"zh"),n(128,"span",17),e(129,")"),t(),n(130,"span",17),e(131,";"),t(),e(132,`
`),t()(),n(133,"pre")(134,"code",34)(135,"span",35)(136,"span",35)(137,"span",17),e(138,"<"),t(),e(139,"nz-calendar"),t(),e(140,`
`),n(141,"span",36),e(142,"[nzDateCell]"),t(),n(143,"span",37)(144,"span",38),e(145,"="),t(),n(146,"span",17),e(147,'"'),t(),e(148,"dateCellTpl"),n(149,"span",17),e(150,'"'),t()(),e(151,`
`),n(152,"span",36),e(153,"[(ngModel)]"),t(),n(154,"span",37)(155,"span",38),e(156,"="),t(),n(157,"span",17),e(158,'"'),t(),e(159,"selectedDate"),n(160,"span",17),e(161,'"'),t()(),e(162,`
`),n(163,"span",36),e(164,"[(nzMode)]"),t(),n(165,"span",37)(166,"span",38),e(167,"="),t(),n(168,"span",17),e(169,'"'),t(),e(170,"mode"),n(171,"span",17),e(172,'"'),t()(),e(173,`
`),n(174,"span",36),e(175,"(nzPanelChange)"),t(),n(176,"span",37)(177,"span",38),e(178,"="),t(),n(179,"span",17),e(180,'"'),t(),e(181,"panelChange($event)"),n(182,"span",17),e(183,'"'),t()(),e(184,`
`),n(185,"span",36),e(186,"(nzSelectChange)"),t(),n(187,"span",37)(188,"span",38),e(189,"="),t(),n(190,"span",17),e(191,'"'),t(),e(192,"selectChange($event)"),n(193,"span",17),e(194,'"'),t()(),e(195,`
`),n(196,"span",17),e(197,">"),t()(),e(198,`
`),n(199,"span",39),e(200,"<!-- \u5B9A\u4E49 Cell \u7684\u53E6\u4E00\u79CD\u65B9\u5F0F -->"),t(),e(201,`
`),n(202,"span",35)(203,"span",35)(204,"span",17),e(205,"<"),t(),e(206,"div"),t(),e(207," "),n(208,"span",36),e(209,"*dateCell"),t(),n(210,"span",17),e(211,">"),t()(),e(212,"Foo"),n(213,"span",35)(214,"span",35)(215,"span",17),e(216,"</"),t(),e(217,"div"),t(),n(218,"span",17),e(219,">"),t()(),e(220,`
`),n(221,"span",35)(222,"span",35)(223,"span",17),e(224,"</"),t(),e(225,"nz-calendar"),t(),n(226,"span",17),e(227,">"),t()(),e(228,`
`),n(229,"span",39),e(230,"<!-- \u4F20\u5165 TemplateRef \u7684\u65B9\u5F0F -->"),t(),e(231,`
`),n(232,"span",35)(233,"span",35)(234,"span",17),e(235,"<"),t(),e(236,"ng-template"),t(),e(237," "),n(238,"span",36),e(239,"#dateCellTpl"),t(),e(240," "),n(241,"span",36),e(242,"let-date"),t(),n(243,"span",17),e(244,">"),t()(),n(245,"span",35)(246,"span",35)(247,"span",17),e(248,"<"),t(),e(249,"span"),t(),n(250,"span",17),e(251,">"),t()(),e(252,"{{ date | date:'d'}}"),n(253,"span",35)(254,"span",35)(255,"span",17),e(256,"</"),t(),e(257,"span"),t(),n(258,"span",17),e(259,">"),t()(),n(260,"span",35)(261,"span",35)(262,"span",17),e(263,"</"),t(),e(264,"ng-template"),t(),n(265,"span",17),e(266,">"),t()(),e(267,`
`),t()(),n(268,"h3",40)(269,"span"),e(270,"nz-calendar"),t(),n(271,"label",41),e(272,"component"),t(),n(273,"a",42),e(274,"#"),t()(),n(275,"table")(276,"thead")(277,"tr")(278,"th"),e(279,"\u53C2\u6570"),t(),n(280,"th"),e(281,"\u8BF4\u660E"),t(),n(282,"th"),e(283,"\u7C7B\u578B"),t(),n(284,"th"),e(285,"\u9ED8\u8BA4\u503C"),t()()(),n(286,"tbody")(287,"tr")(288,"td")(289,"code"),e(290,"[(ngModel)]"),t()(),n(291,"td"),e(292,"\uFF08\u53EF\u53CC\u5411\u7ED1\u5B9A\uFF09\u5C55\u793A\u65E5\u671F"),t(),n(293,"td")(294,"code"),e(295,"Date"),t()(),n(296,"td"),e(297,"\u5F53\u524D\u65E5\u671F"),t()(),n(298,"tr")(299,"td")(300,"code"),e(301,"[(nzMode)]"),t()(),n(302,"td"),e(303,"\uFF08\u53EF\u53CC\u5411\u7ED1\u5B9A\uFF09\u663E\u793A\u6A21\u5F0F"),t(),n(304,"td")(305,"code"),e(306,"'month' | 'year'"),t()(),n(307,"td")(308,"code"),e(309,"'month'"),t()()(),n(310,"tr")(311,"td")(312,"code"),e(313,"[nzFullscreen]"),t()(),n(314,"td"),e(315,"\u662F\u5426\u5168\u5C4F\u663E\u793A"),t(),n(316,"td")(317,"code"),e(318,"boolean"),t()(),n(319,"td")(320,"code"),e(321,"true"),t()()(),n(322,"tr")(323,"td")(324,"code"),e(325,"[nzDateCell]"),t()(),n(326,"td"),e(327,"\uFF08\u53EF\u4F5C\u4E3A\u5185\u5BB9\uFF09\u81EA\u5B9A\u4E49\u6E32\u67D3\u65E5\u671F\u5355\u5143\u683C\uFF0C\u6A21\u7248\u5185\u5BB9\u4F1A\u88AB\u8FFD\u52A0\u5230\u5355\u5143\u683C"),t(),n(328,"td")(329,"code"),e(330,"TemplateRef<Date>"),t()(),n(331,"td"),e(332,"-"),t()(),n(333,"tr")(334,"td")(335,"code"),e(336,"[nzDateFullCell]"),t()(),n(337,"td"),e(338,"\uFF08\u53EF\u4F5C\u4E3A\u5185\u5BB9\uFF09\u81EA\u5B9A\u4E49\u6E32\u67D3\u65E5\u671F\u5355\u5143\u683C\uFF0C\u6A21\u7248\u5185\u5BB9\u8986\u76D6\u5355\u5143\u683C"),t(),n(339,"td")(340,"code"),e(341,"TemplateRef<Date>"),t()(),n(342,"td"),e(343,"-"),t()(),n(344,"tr")(345,"td")(346,"code"),e(347,"[nzMonthCell]"),t()(),n(348,"td"),e(349,"\uFF08\u53EF\u4F5C\u4E3A\u5185\u5BB9\uFF09\u81EA\u5B9A\u4E49\u6E32\u67D3\u6708\u5355\u5143\u683C\uFF0C\u6A21\u7248\u5185\u5BB9\u4F1A\u88AB\u8FFD\u52A0\u5230\u5355\u5143\u683C"),t(),n(350,"td")(351,"code"),e(352,"TemplateRef<Date>"),t()(),n(353,"td"),e(354,"-"),t()(),n(355,"tr")(356,"td")(357,"code"),e(358,"[nzMonthFullCell]"),t()(),n(359,"td"),e(360,"\uFF08\u53EF\u4F5C\u4E3A\u5185\u5BB9\uFF09\u81EA\u5B9A\u4E49\u6E32\u67D3\u6708\u5355\u5143\u683C\uFF0C\u6A21\u7248\u5185\u5BB9\u8986\u76D6\u5355\u5143\u683C"),t(),n(361,"td")(362,"code"),e(363,"TemplateRef<Date>"),t()(),n(364,"td"),e(365,"-"),t()(),n(366,"tr")(367,"td")(368,"code"),e(369,"[nzCustomHeader]"),t()(),n(370,"td"),e(371,"\u81EA\u5B9A\u4E49\u5934\u90E8\u5185\u5BB9"),t(),n(372,"td")(373,"code"),e(374,"string | TemplateRef<void>"),t()(),n(375,"td"),e(376,"-"),t()(),n(377,"tr")(378,"td")(379,"code"),e(380,"[nzDisabledDate]"),t()(),n(381,"td"),e(382,"\u4E0D\u53EF\u9009\u62E9\u7684\u65E5\u671F"),t(),n(383,"td")(384,"code"),e(385,"(current: Date) => boolean"),t()(),n(386,"td"),e(387,"-"),t()(),n(388,"tr")(389,"td")(390,"code"),e(391,"(nzPanelChange)"),t()(),n(392,"td"),e(393,"\u9762\u677F\u53D8\u5316\u7684\u56DE\u8C03"),t(),n(394,"td")(395,"code"),e(396,"EventEmitter<{ date: Date, mode: 'month' | 'year' }>"),t()(),n(397,"td"),e(398,"-"),t()(),n(399,"tr")(400,"td")(401,"code"),e(402,"(nzSelectChange)"),t()(),n(403,"td"),e(404,"\u9009\u62E9\u65E5\u671F\u7684\u56DE\u8C03"),t(),n(405,"td")(406,"code"),e(407,"EventEmitter<Date>"),t()(),n(408,"td"),e(409,"-"),t()()()(),h(),t()()),i&2&&(m(),s("nzOffsetTop",16),m(),s("nzAffix",!1),m(48),s("nzGutter",8),m(),s("nzSpan",24),m(),s("nzId","components-calendar-demo-basic")("nzLink","components-calendar-demo-basic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/basic.md"),m(5),s("nzId","components-calendar-demo-notice-calendar")("nzLink","components-calendar-demo-notice-calendar")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/notice-calendar.md"),m(11),s("nzId","components-calendar-demo-card")("nzLink","components-calendar-demo-card")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/card.md"),m(5),s("nzId","components-calendar-demo-select")("nzLink","components-calendar-demo-select")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/select.md"),m(5),s("nzId","components-calendar-demo-customize-header")("nzLink","components-calendar-demo-customize-header")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/customize-header.md"))},dependencies:[de,y,oe,re,le,ae,ie,ne,te,O,L,P,G,Q],encapsulation:2})};var se=class a{expanded=!1;codeBoxes;goLink(r){window&&(window.location.hash=r)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(r=>r.expandCode(this.expanded))}static \u0275fac=function(i){return new(i||a)};static \u0275cmp=C({type:a,selectors:[["nz-demo-calendar"]],viewQuery:function(i,l){if(i&1&&ee(y,5),i&2){let o;S(o=D())&&(l.codeBoxes=o)}},decls:417,vars:29,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-calendar-demo-basic","nzTitle","Basic"],["nzHref","#components-calendar-demo-notice-calendar","nzTitle","Notice Calendar"],["nzHref","#components-calendar-demo-card","nzTitle","Card"],["nzHref","#components-calendar-demo-select","nzTitle","Selectable Calendar"],["nzHref","#components-calendar-demo-customize-header","nzTitle","Customize Header"],["nzHref","#api","nzTitle","API"],[1,"markdown"],[1,"subtitle"],[1,"widget"],["aria-label","Edit this page on Github","href","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/doc/index.en-US.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nzType","edit"],["id","when_to_use"],["onclick","window.location.hash = 'when_to_use'",1,"anchor"],[1,"language-ts"],[1,"token","keyword"],[1,"token","punctuation"],[1,"token","string"],["nzType","appstore","nz-tooltip","","nzTooltipTitle","Expand All Code",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan"],["nzTitle","Basic","nzSelector","nz-demo-calendar-basic","nzGenerateCommand","ng g ng-zorro-antd:calendar-basic <name>","nzComponentName","NzDemoCalendarBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","Notice Calendar","nzSelector","nz-demo-calendar-notice-calendar","nzGenerateCommand","ng g ng-zorro-antd:calendar-notice-calendar <name>","nzComponentName","NzDemoCalendarNoticeCalendarComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Card","nzSelector","nz-demo-calendar-card","nzGenerateCommand","ng g ng-zorro-antd:calendar-card <name>","nzComponentName","NzDemoCalendarCardComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Selectable Calendar","nzSelector","nz-demo-calendar-select","nzGenerateCommand","ng g ng-zorro-antd:calendar-select <name>","nzComponentName","NzDemoCalendarSelectComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","Customize Header","nzSelector","nz-demo-calendar-customize-header","nzGenerateCommand","ng g ng-zorro-antd:calendar-customize-header <name>","nzComponentName","NzDemoCalendarCustomizeHeaderComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["href","https://angular.dev/guide/i18n","target","_blank","rel","noopener"],[1,"language-typescript"],[1,"token","function"],[1,"language-html"],[1,"token","tag"],[1,"token","attr-name"],[1,"token","attr-value"],[1,"token","punctuation","attr-equals"],[1,"token","comment"],["id","nz-calendar"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-calendar'",1,"anchor"]],template:function(i,l){i&1&&(n(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),u("nzClick",function(d){return l.goLink(d)}),c(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7),t()(),n(9,"section",8)(10,"h1"),e(11,"Calendar"),c(12,"span",9)(13,"span",10),n(14,"a",11),c(15,"nz-icon",12),t()(),n(16,"section",8),x(),n(17,"p"),e(18,"Container for displaying data in calendar form."),t(),n(19,"h2",13)(20,"span"),e(21,"When To Use"),t(),n(22,"a",14),e(23,"#"),t()(),n(24,"p"),e(25,"When data is in the form of dates, such as schedules, timetables, prices calendar, lunar calendar. This component also supports Year/Month switch."),t(),n(26,"pre")(27,"code",15)(28,"span",16),e(29,"import"),t(),e(30," "),n(31,"span",17),e(32,"{"),t(),e(33," NzCalendarModule "),n(34,"span",17),e(35,"}"),t(),e(36," "),n(37,"span",16),e(38,"from"),t(),e(39," "),n(40,"span",18),e(41,"'ng-zorro-antd/calendar'"),t(),n(42,"span",17),e(43,";"),t(),e(44,`
`),t()(),h(),t(),n(45,"h2")(46,"span"),e(47,"Examples"),t(),n(48,"nz-icon",19),u("click",function(){return l.expandAllCode()}),t()()(),n(49,"div",20)(50,"div",21)(51,"nz-code-box",22),c(52,"nz-demo-calendar-basic",23),n(53,"div",24),x(),n(54,"p"),e(55,"A basic calendar component with Year/Month switch."),t(),h(),t()(),n(56,"nz-code-box",25),c(57,"nz-demo-calendar-notice-calendar",23),n(58,"div",24),x(),n(59,"p"),e(60,"This component can be rendered by using "),n(61,"code"),e(62,"nzDateCell"),t(),e(63," and "),n(64,"code"),e(65,"nzMonthCell"),t(),e(66," with the data you need."),t(),h(),t()(),n(67,"nz-code-box",26),c(68,"nz-demo-calendar-card",23),n(69,"div",24),x(),n(70,"p"),e(71,"Nested inside a container element for rendering in limited space."),t(),h(),t()(),n(72,"nz-code-box",27),c(73,"nz-demo-calendar-select",23),n(74,"div",24),x(),n(75,"p"),e(76,"A basic calendar component with Year/Month switch."),t(),h(),t()(),n(77,"nz-code-box",28),c(78,"nz-demo-calendar-customize-header",23),n(79,"div",24),x(),n(80,"p"),e(81,"Customize Calendar header content."),t(),h(),t()()()(),n(82,"section",29),x(),n(83,"h2",30)(84,"span"),e(85,"API"),t(),n(86,"a",31),e(87,"#"),t()(),n(88,"p")(89,"strong"),e(90,"Note:"),t(),e(91," Some of Calendar's locale are coming from "),n(92,"a",32),e(93,"Angular i18n"),t(),e(94,", that should be provided in the file of "),n(95,"code"),e(96,"app.module.ts"),t(),e(97,"."),t(),n(98,"p"),e(99,"For example:"),t(),n(100,"pre")(101,"code",33)(102,"span",16),e(103,"import"),t(),e(104," "),n(105,"span",17),e(106,"{"),t(),e(107," registerLocaleData "),n(108,"span",17),e(109,"}"),t(),e(110," "),n(111,"span",16),e(112,"from"),t(),e(113," "),n(114,"span",18),e(115,"'@angular/common'"),t(),n(116,"span",17),e(117,";"),t(),e(118,`
`),n(119,"span",16),e(120,"import"),t(),e(121," en "),n(122,"span",16),e(123,"from"),t(),e(124," "),n(125,"span",18),e(126,"'@angular/common/locales/en'"),t(),n(127,"span",17),e(128,";"),t(),e(129,`
`),n(130,"span",34),e(131,"registerLocaleData"),t(),n(132,"span",17),e(133,"("),t(),e(134,"en"),n(135,"span",17),e(136,")"),t(),n(137,"span",17),e(138,";"),t(),e(139,`
`),t()(),n(140,"pre")(141,"code",35)(142,"span",36)(143,"span",36)(144,"span",17),e(145,"<"),t(),e(146,"nz-calendar"),t(),e(147,`
`),n(148,"span",37),e(149,"[nzDateCell]"),t(),n(150,"span",38)(151,"span",39),e(152,"="),t(),n(153,"span",17),e(154,'"'),t(),e(155,"dateCellTpl"),n(156,"span",17),e(157,'"'),t()(),e(158,`
`),n(159,"span",37),e(160,"[(ngModel)]"),t(),n(161,"span",38)(162,"span",39),e(163,"="),t(),n(164,"span",17),e(165,'"'),t(),e(166,"selectedDate"),n(167,"span",17),e(168,'"'),t()(),e(169,`
`),n(170,"span",37),e(171,"[(nzMode)]"),t(),n(172,"span",38)(173,"span",39),e(174,"="),t(),n(175,"span",17),e(176,'"'),t(),e(177,"mode"),n(178,"span",17),e(179,'"'),t()(),e(180,`
`),n(181,"span",37),e(182,"(nzPanelChange)"),t(),n(183,"span",38)(184,"span",39),e(185,"="),t(),n(186,"span",17),e(187,'"'),t(),e(188,"panelChange($event)"),n(189,"span",17),e(190,'"'),t()(),e(191,`
`),n(192,"span",37),e(193,"(nzSelectChange)"),t(),n(194,"span",38)(195,"span",39),e(196,"="),t(),n(197,"span",17),e(198,'"'),t(),e(199,"selectChange($event)"),n(200,"span",17),e(201,'"'),t()(),e(202,`
`),n(203,"span",17),e(204,">"),t()(),e(205,`
`),n(206,"span",40),e(207,"<!-- Another method for cell definition -->"),t(),e(208,`
`),n(209,"span",36)(210,"span",36)(211,"span",17),e(212,"<"),t(),e(213,"div"),t(),e(214," "),n(215,"span",37),e(216,"*nzDateCell"),t(),n(217,"span",17),e(218,">"),t()(),e(219,"Foo"),n(220,"span",36)(221,"span",36)(222,"span",17),e(223,"</"),t(),e(224,"div"),t(),n(225,"span",17),e(226,">"),t()(),e(227,`
`),n(228,"span",36)(229,"span",36)(230,"span",17),e(231,"</"),t(),e(232,"nz-calendar"),t(),n(233,"span",17),e(234,">"),t()(),e(235,`
`),n(236,"span",40),e(237,"<!-- Passing TemplateRef -->"),t(),e(238,`
`),n(239,"span",36)(240,"span",36)(241,"span",17),e(242,"<"),t(),e(243,"ng-template"),t(),e(244," "),n(245,"span",37),e(246,"#dateCellTpl"),t(),e(247," "),n(248,"span",37),e(249,"let-date"),t(),n(250,"span",17),e(251,">"),t()(),n(252,"span",36)(253,"span",36)(254,"span",17),e(255,"<"),t(),e(256,"span"),t(),n(257,"span",17),e(258,">"),t()(),e(259,"{{ date | date:'d'}}"),n(260,"span",36)(261,"span",36)(262,"span",17),e(263,"</"),t(),e(264,"span"),t(),n(265,"span",17),e(266,">"),t()(),n(267,"span",36)(268,"span",36)(269,"span",17),e(270,"</"),t(),e(271,"ng-template"),t(),n(272,"span",17),e(273,">"),t()(),e(274,`
`),t()(),n(275,"h3",41)(276,"span"),e(277,"nz-calendar"),t(),n(278,"label",42),e(279,"component"),t(),n(280,"a",43),e(281,"#"),t()(),n(282,"table")(283,"thead")(284,"tr")(285,"th"),e(286,"Property"),t(),n(287,"th"),e(288,"Description"),t(),n(289,"th"),e(290,"Type"),t(),n(291,"th"),e(292,"Default"),t()()(),n(293,"tbody")(294,"tr")(295,"td")(296,"code"),e(297,"[(ngModel)]"),t()(),n(298,"td"),e(299,"(Two-way bindable) The current selected date"),t(),n(300,"td")(301,"code"),e(302,"Date"),t()(),n(303,"td"),e(304,"current date"),t()(),n(305,"tr")(306,"td")(307,"code"),e(308,"[(nzMode)]"),t()(),n(309,"td"),e(310,"The display mode of the calendar (two-way bindable)"),t(),n(311,"td")(312,"code"),e(313,"'month' | 'year'"),t()(),n(314,"td")(315,"code"),e(316,"'month'"),t()()(),n(317,"tr")(318,"td")(319,"code"),e(320,"[nzFullscreen]"),t()(),n(321,"td"),e(322,"Whether to display in full-screen"),t(),n(323,"td")(324,"code"),e(325,"boolean"),t()(),n(326,"td")(327,"code"),e(328,"true"),t()()(),n(329,"tr")(330,"td")(331,"code"),e(332,"[nzDateCell]"),t()(),n(333,"td"),e(334,"(Contentable) Customize the display of the date cell, the template content will be appended to the cell"),t(),n(335,"td")(336,"code"),e(337,"TemplateRef<Date>"),t()(),n(338,"td"),e(339,"-"),t()(),n(340,"tr")(341,"td")(342,"code"),e(343,"[nzDateFullCell]"),t()(),n(344,"td"),e(345,"(Contentable) Customize the display of the date cell, the template content will override the cell"),t(),n(346,"td")(347,"code"),e(348,"TemplateRef<Date>"),t()(),n(349,"td"),e(350,"-"),t()(),n(351,"tr")(352,"td")(353,"code"),e(354,"[nzMonthCell]"),t()(),n(355,"td"),e(356,"(Contentable) Customize the display of the month cell, the template content will be appended to the cell"),t(),n(357,"td")(358,"code"),e(359,"TemplateRef<Date>"),t()(),n(360,"td"),e(361,"-"),t()(),n(362,"tr")(363,"td")(364,"code"),e(365,"[nzMonthFullCell]"),t()(),n(366,"td"),e(367,"(Contentable) Customize the display of the month cell, the template content will override the cell"),t(),n(368,"td")(369,"code"),e(370,"TemplateRef<Date>"),t()(),n(371,"td"),e(372,"-"),t()(),n(373,"tr")(374,"td")(375,"code"),e(376,"[nzCustomHeader]"),t()(),n(377,"td"),e(378,"Render custom header in panel"),t(),n(379,"td")(380,"code"),e(381,"string | TemplateRef<void>"),t()(),n(382,"td"),e(383,"-"),t()(),n(384,"tr")(385,"td")(386,"code"),e(387,"[nzDisabledDate]"),t()(),n(388,"td"),e(389,"specify the date that cannot be selected"),t(),n(390,"td")(391,"code"),e(392,"(current: Date) => boolean"),t()(),n(393,"td"),e(394,"-"),t()(),n(395,"tr")(396,"td")(397,"code"),e(398,"(nzPanelChange)"),t()(),n(399,"td"),e(400,"Callback for when panel changes"),t(),n(401,"td")(402,"code"),e(403,"EventEmitter<{ date: Date, mode: 'month' | 'year' }>"),t()(),n(404,"td"),e(405,"-"),t()(),n(406,"tr")(407,"td")(408,"code"),e(409,"(nzSelectChange)"),t()(),n(410,"td"),e(411,"A callback function of selected item"),t(),n(412,"td")(413,"code"),e(414,"EventEmitter<Date>"),t()(),n(415,"td"),e(416,"-"),t()()()(),h(),t()()),i&2&&(m(),s("nzOffsetTop",16),m(),s("nzAffix",!1),m(47),s("nzGutter",8),m(),s("nzSpan",24),m(),s("nzId","components-calendar-demo-basic")("nzLink","components-calendar-demo-basic")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/basic.md"),m(5),s("nzId","components-calendar-demo-notice-calendar")("nzLink","components-calendar-demo-notice-calendar")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/notice-calendar.md"),m(11),s("nzId","components-calendar-demo-card")("nzLink","components-calendar-demo-card")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/card.md"),m(5),s("nzId","components-calendar-demo-select")("nzLink","components-calendar-demo-select")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/select.md"),m(5),s("nzId","components-calendar-demo-customize-header")("nzLink","components-calendar-demo-customize-header")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/customize-header.md"))},dependencies:[de,y,oe,re,le,ae,ie,ne,te,O,L,P,G,Q],encapsulation:2})};var yt=[{path:"en",component:se},{path:"zh",component:me}],wn=yt;export{wn as default};