PageSourceSearch

https://preview-8494-ng-zorro-antd.surge.sh/8496.b98e93ac8291362b.js

js preview-8494-ng-zorro-antd.surge.sh collected 2026-10-03 14:58:47 UTC 54,832 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkng_zorro_antd_doc=self.webpackChunkng_zorro_antd_doc||[]).push([[8496],{8496:(J,Y,c)=>{c.r(Y),c.d(Y,{NzDemoCalendarModule:()=>ze});var O=c(9072),l=c(2928),e=c(4496),m=c(6504),R=c(6256),E=c(3520),p=c(9656),z=c(5712),I=c(372),T=c(1316),N=c(5657),_=c(3616),A=c(5739),f=c(9380),$=c(1900);function w(t,h){if(1&t&&(e.SAx(0),e.OEk(1),e.k70()),2&t){const n=e.GaO(2);e.yG2(),e.cNF(n.nzCustomHeader)}}function G(t,h){if(1&t&&e.yuY(0,w,2,1,"ng-container",0),2&t){const n=e.GaO();e.E7m("nzStringTemplateOutlet",n.nzCustomHeader)}}const D=(t,h)=>h.value;function C(t,h){if(1&t&&e.wR5(0,"nz-option",7),2&t){const n=h.$implicit;e.E7m("nzLabel",n.label)("nzValue",n.value)}}function X(t,h){if(1&t&&e.wR5(0,"nz-option",7),2&t){const n=h.$implicit;e.E7m("nzLabel",n.label)("nzValue",n.value)}}function i(t,h){if(1&t){const n=e.KQA();e.I0R(0,"nz-select",8),e.qCj("ngModelChange",function(o){e.usT(n);const d=e.GaO(2);return e.CGJ(d.monthChange.emit(o))}),e.c53(1,X,1,2,"nz-option",7,D),e.C$Y()}if(2&t){const n=e.GaO(2);e.E7m("nzSize",n.size)("nzDropdownMatchSelectWidth",!1)("ngModel",n.activeMonth),e.yG2(),e.oho(n.months)}}function u(t,h){if(1&t){const n=e.KQA();e.I0R(0,"div",1)(1,"nz-select",2),e.qCj("ngModelChange",function(o){e.usT(n);const d=e.GaO();return e.CGJ(d.updateYear(o))}),e.c53(2,C,1,2,"nz-option",7,D),e.C$Y(),e.yuY(4,i,3,3,"nz-select",3),e.I0R(5,"nz-radio-group",4),e.iHE("ngModelChange",function(o){e.usT(n);const d=e.GaO();return e.kNx(d.mode,o)||(d.mode=o),e.CGJ(o)}),e.qCj("ngModelChange",function(o){e.usT(n);const d=e.GaO();return e.CGJ(d.modeChange.emit(o))}),e.I0R(6,"label",5),e.OEk(7),e.C$Y(),e.I0R(8,"label",6),e.OEk(9),e.C$Y()()()}if(2&t){const n=e.GaO();e.yG2(),e.E7m("nzSize",n.size)("nzDropdownMatchSelectWidth",!1)("ngModel",n.activeYear),e.yG2(),e.oho(n.years),e.yG2(2),e.C0Y(4,"month"===n.mode?4:-1),e.yG2(),e.OKB("ngModel",n.mode),e.E7m("nzSize",n.size),e.yG2(2),e.cNF(n.monthTypeText),e.yG2(2),e.cNF(n.yearTypeText)}}function s(t,h){if(1&t){const n=e.KQA();e.I0R(0,"date-table",4),e.qCj("valueChange",function(o){e.usT(n);const d=e.GaO();return e.CGJ(d.onDateSelect(o))}),e.C$Y()}if(2&t){const n=e.GaO();e.E7m("prefixCls",n.prefixCls)("value",n.activeDate)("activeDate",n.activeDate)("cellRender",n.dateCell)("fullCellRender",n.dateFullCell)("disabledDate",n.nzDisabledDate)}}function k(t,h){if(1&t){const n=e.KQA();e.I0R(0,"month-table",5),e.qCj("valueChange",function(o){e.usT(n);const d=e.GaO();return e.CGJ(d.onDateSelect(o))}),e.C$Y()}if(2&t){const n=e.GaO();e.E7m("prefixCls",n.prefixCls)("value",n.activeDate)("activeDate",n.activeDate)("cellRender",n.monthCell)("fullCellRender",n.monthFullCell)}}let F=(()=>{class t{static#e=this.\u0275fac=function(a){return new(a||t)};static#n=this.\u0275dir=e.Sc5({type:t,selectors:[["","nzDateCell",""]],exportAs:["nzDateCell"],standalone:!0})}return t})(),y=(()=>{class t{static#e=this.\u0275fac=function(a){return new(a||t)};static#n=this.\u0275dir=e.Sc5({type:t,selectors:[["","nzMonthCell",""]],exportAs:["nzMonthCell"],standalone:!0})}return t})(),S=(()=>{class t{static#e=this.\u0275fac=function(a){return new(a||t)};static#n=this.\u0275dir=e.Sc5({type:t,selectors:[["","nzDateFullCell",""]],exportAs:["nzDateFullCell"],standalone:!0})}return t})(),q=(()=>{class t{static#e=this.\u0275fac=function(a){return new(a||t)};static#n=this.\u0275dir=e.Sc5({type:t,selectors:[["","nzMonthFullCell",""]],exportAs:["nzMonthFullCell"],standalone:!0})}return t})(),H=(()=>{class t{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(n,a){this.i18n=n,this.dateHelper=a,this.mode="month",this.fullscreen=!0,this.activeDate=new E.AD,this.modeChange=new e._w7,this.yearChange=new e._w7,this.monthChange=new e._w7,this.yearOffset=10,this.yearTotal=20,this.years=[],this.months=[]}ngOnInit(){this.setUpYears(),this.setUpMonths()}updateYear(n){this.yearChange.emit(n),this.setUpYears(n)}setUpYears(n){const a=(n||this.activeYear)-this.yearOffset,o=a+this.yearTotal;this.years=[];for(let d=a;d<o;d++)this.years.push({label:`${d}`,value:d})}setUpMonths(){this.months=[];for(let n=0;n<12;n++){const a=this.activeDate.setMonth(n),o=this.dateHelper.format(a.nativeDate,"MMM");this.months.push({label:o,value:n})}}static#e=this.\u0275fac=function(a){return new(a||t)(e.GI1(I.Sc),e.GI1(I.Oe))};static#n=this.\u0275cmp=e.In1({type:t,selectors:[["nz-calendar-header"]],hostAttrs:[1,"ant-fullcalendar-header"],hostVars:2,hostBindings:function(a,o){2&a&&e.m4B("display","block")},inputs:{mode:"mode",fullscreen:"fullscreen",activeDate:"activeDate",nzCustomHeader:"nzCustomHeader"},outputs:{modeChange:"modeChange",yearChange:"yearChange",monthChange:"monthChange"},exportAs:["nzCalendarHeader"],standalone:!0,features:[e.UHJ],decls:2,vars:1,consts:[[4,"nzStringTemplateOutlet"],[1,"ant-picker-calendar-header"],[1,"ant-picker-calendar-year-select",3,"nzSize","nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["class","ant-picker-calendar-month-select",3,"nzSize","nzDropdownMatchSelectWidth","ngModel"],[1,"ant-picker-calendar-mode-switch",3,"ngModel","nzSize","ngModelChange"],["nz-radio-button","","nzValue","month"],["nz-radio-button","","nzValue","year"],[3,"nzLabel","nzValue"],[1,"ant-picker-calendar-month-select",3,"nzSize","nzDropdownMatchSelectWidth","ngModel","ngModelChange"]],template:function(a,o){1&a&&e.yuY(0,G,1,1,"ng-container")(1,u,10,8),2&a&&e.C0Y(0,o.nzCustomHeader?0:1)},dependencies:[z.VL,z.eE,z.Mh,m.y,m.ue,m._G,p.sn,p.es,p.uw,R.C],encapsulation:2,changeDetection:0})}return t})(),g=(()=>{class t{get dateCell(){return this.nzDateCell||this.nzDateCellChild}get dateFullCell(){return this.nzDateFullCell||this.nzDateFullCellChild}get monthCell(){return this.nzMonthCell||this.nzMonthCellChild}get monthFullCell(){return this.nzMonthFullCell||this.nzMonthFullCellChild}constructor(n,a){this.cdr=n,this.directionality=a,this.activeDate=new E.AD,this.prefixCls="ant-picker-calendar",this.destroy$=new N.E,this.dir="ltr",this.onChangeFn=()=>{},this.onTouchFn=()=>{},this.nzMode="month",this.nzModeChange=new e._w7,this.nzPanelChange=new e._w7,this.nzSelectChange=new e._w7,this.nzValueChange=new e._w7,this.nzFullscreen=!0}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,_.a)(this.destroy$)).subscribe(()=>{this.dir=this.directionality.value})}onModeChange(n){this.nzModeChange.emit(n),this.nzPanelChange.emit({date:this.activeDate.nativeDate,mode:n})}onYearSelect(n){const a=this.activeDate.setYear(n);this.updateDate(a)}onMonthSelect(n){const a=this.activeDate.setMonth(n);this.updateDate(a)}onDateSelect(n){this.updateDate(n)}writeValue(n){this.updateDate(new E.AD(n),!1),this.cdr.markForCheck()}registerOnChange(n){this.onChangeFn=n}registerOnTouched(n){this.onTouchFn=n}updateDate(n,a=!0){this.activeDate=n,a&&(this.onChangeFn(n.nativeDate),this.onTouchFn(),this.nzSelectChange.emit(n.nativeDate),this.nzValueChange.emit(n.nativeDate))}ngOnChanges(n){n.nzValue&&this.updateDate(new E.AD(this.nzValue),!1)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(a){return new(a||t)(e.GI1(e.kD9),e.GI1($.yG,8))};static#n=this.\u0275cmp=e.In1({type:t,selectors:[["nz-calendar"]],c
1ontentQueries:function(a,o,d){if(1&a&&(e.szK(d,F,5,e.Yw2),e.szK(d,S,5,e.Yw2),e.szK(d,y,5,e.Yw2),e.szK(d,q,5,e.Yw2)),2&a){let r;e.wto(r=e.Gqi())&&(o.nzDateCellChild=r.first),e.wto(r=e.Gqi())&&(o.nzDateFullCellChild=r.first),e.wto(r=e.Gqi())&&(o.nzMonthCellChild=r.first),e.wto(r=e.Gqi())&&(o.nzMonthFullCellChild=r.first)}},hostAttrs:[1,"ant-picker-calendar"],hostVars:6,hostBindings:function(a,o){2&a&&e.eAK("ant-picker-calendar-full",o.nzFullscreen)("ant-picker-calendar-mini",!o.nzFullscreen)("ant-picker-calendar-rtl","rtl"===o.dir)},inputs:{nzMode:"nzMode",nzValue:"nzValue",nzDisabledDate:"nzDisabledDate",nzDateCell:"nzDateCell",nzDateFullCell:"nzDateFullCell",nzMonthCell:"nzMonthCell",nzMonthFullCell:"nzMonthFullCell",nzCustomHeader:"nzCustomHeader",nzFullscreen:"nzFullscreen"},outputs:{nzModeChange:"nzModeChange",nzPanelChange:"nzPanelChange",nzSelectChange:"nzSelectChange",nzValueChange:"nzValueChange"},exportAs:["nzCalendar"],standalone:!0,features:[e.M5G([{provide:m.Y6,useExisting:(0,e.wd)(()=>t),multi:!0}]),e.SYr,e.UHJ],decls:6,vars:8,consts:[[3,"fullscreen","activeDate","nzCustomHeader","mode","modeChange","yearChange","monthChange"],[1,"ant-picker-panel"],[1,"ant-picker-body"],[3,"prefixCls","value","activeDate","cellRender","fullCellRender","disabledDate"],[3,"prefixCls","value","activeDate","cellRender","fullCellRender","disabledDate","valueChange"],[3,"prefixCls","value","activeDate","cellRender","fullCellRender","valueChange"]],template:function(a,o){1&a&&(e.I0R(0,"nz-calendar-header",0),e.iHE("modeChange",function(r){return e.kNx(o.nzMode,r)||(o.nzMode=r),r}),e.qCj("modeChange",function(r){return o.onModeChange(r)})("yearChange",function(r){return o.onYearSelect(r)})("monthChange",function(r){return o.onMonthSelect(r)}),e.C$Y(),e.I0R(1,"div",1)(2,"div")(3,"div",2),e.yuY(4,s,1,6,"date-table",3)(5,k,1,5),e.C$Y()()()),2&a&&(e.E7m("fullscreen",o.nzFullscreen)("activeDate",o.activeDate)("nzCustomHeader",o.nzCustomHeader),e.OKB("mode",o.nzMode),e.yG2(2),e.uQ9("ant-picker-","month"===o.nzMode?"date":"month","-panel"),e.yG2(2),e.C0Y(4,"month"===o.nzMode?4:5))},dependencies:[H,f.Mp,f.YF,f.If],encapsulation:2,changeDetection:0})}return(0,T.UN)([(0,A.U7)()],t.prototype,"nzFullscreen",void 0),t})(),ee=(()=>{class t{static#e=this.\u0275fac=function(a){return new(a||t)};static#n=this.\u0275mod=e.a4G({type:t});static#t=this.\u0275inj=e.s3X({imports:[H,g]})}return t})();var x=c(6240),P=c(5076);const ne=[ee,x.M7,P.S];var v=c(6056),M=c(8700),L=c(8656),b=c(3172),V=c(9100),K=c(5120);let U=(()=>{class t{constructor(){this.date=new Date(2012,11,21),this.mode="month"}panelChange(n){console.log(n.date,n.mode)}static#e=this.\u0275fac=function(a){return new(a||t)};static#n=this.\u0275cmp=e.In1({type:t,selectors:[["nz-demo-calendar-basic"]],decls:1,vars:2,consts:[[3,"ngModel","nzMode","ngModelChange","nzModeChange","nzPanelChange"]],template:function(a,o){1&a&&(e.I0R(0,"nz-calendar",0),e.iHE("ngModelChange",function(r){return e.kNx(o.date,r)||(o.date=r),r})("nzModeChange",function(r){return e.kNx(o.mode,r)||(o.mode=r),r}),e.qCj("nzPanelChange",function(r){return o.panelChange(r)}),e.C$Y()),2&a&&e.OKB("ngModel",o.date)("nzMode",o.mode)},dependencies:[m.ue,m._G,g],encapsulation:2})}return t})();var B=c(1368);const te=()=>({width:"300px",border:"1px solid #d9d9d9",borderRadius:"4px"});let W=(()=>{class t{onValueChange(n){console.log(`Current value: ${n}`)}onPanelChange(n){console.log(`Current value: ${n.date}`),console.log(`Current mode: ${n.mode}`)}static#e=this.\u0275fac=function(a){return new(a||t)};static#n=this.\u0275cmp=e.In1({type:t,selectors:[["nz-demo-calendar-card"]],decls:2,vars:3,consts:[[3,"ngStyle"],[3,"nzFullscreen","nzSelectChange","nzPanelChange"]],template:function(a,o){1&a&&(e.I0R(0,"div",0)(1,"nz-calendar",1),e.qCj("nzSelectChange",function(r){return o.onValueChange(r)})("nzPanelChange",function(r){return o.onPanelChange(r)}),e.C$Y()()),2&a&&(e.E7m("ngStyle",e.q4q(2,te)),e.yG2(),e.E7m("nzFullscreen",!1))},dependencies:[B.Qt,g],encapsulation:2})}return t})();function ae(t,h){1&t&&(e.I0R(0,"div",3)(1,"h4"),e.OEk(2,"Custom header"),e.C$Y()())}const oe=()=>({width:"300px",border:"1px solid #d9d9d9",borderRadius:"4px"});let j=(()=>{class t{static#e=this.\u0275fac=function(a){return new(a||t)};static#n=this.\u0275cmp=e.In1({type:t,selectors:[["nz-demo-calendar-customize-header"]],decls:4,vars:4,consts:[[3,"ngStyle"],[3,"nzFullscreen","nzCustomHeader"],["customHeader",""],[2,"padding","8px"]],template:function(a,o){if(1&a&&(e.I0R(0,"div",0),e.wR5(1,"nz-calendar",1),e.C$Y(),e.yuY(2,ae,3,0,"ng-template",null,2,e.gJz)),2&a){const d=e.Gew(3);e.E7m("ngStyle",e.q4q(3,oe)),e.yG2(),e.E7m("nzFullscreen",!1)("nzCustomHeader",d)}},dependencies:[B.Qt,g],encapsulation:2})}return t})();function ie(t,h){if(1&t&&(e.I0R(0,"li"),e.wR5(1,"nz-badge",3),e.C$Y()),2&t){const n=h.$implicit;e.yG2(),e.E7m("nzStatus",n.type)("nzText",n.content)}}function le(t,h){if(1&t&&e.c53(0,ie,2,2,"li",null,e.wJt),2&t){const n=e.GaO(2);e.oho(n.listDataMap.eight)}}function se(t,h){if(1&t&&(e.I0R(0,"li"),e.wR5(1,"nz-badge",3),e.C$Y()),2&t){const n=h.$implicit;e.yG2(),e.E7m("nzStatus",n.type)("nzText",n.content)}}function de(t,h){if(1&t&&e.c53(0,se,2,2,"li",null,e.wJt),2&t){const n=e.GaO(2);e.oho(n.listDataMap.ten)}}function re(t,h){if(1&t&&(e.I0R(0,"li"),e.wR5(1,"nz-badge",3),e.C$Y()),2&t){const n=h.$implicit;e.yG2(),e.E7m("nzStatus",n.type)("nzText",n.content)}}function ce(t,h){if(1&t&&e.c53(0,re,2,2,"li",null,e.wJt),2&t){const n=e.GaO(2);e.oho(n.listDataMap.eleven)}}function ue(t,h){if(1&t&&(e.I0R(0,"ul",2),e.yuY(1,le,2,0)(2,de,2,0)(3,ce,2,0),e.C$Y()),2&t){const n=h.$implicit;let a;e.yG2(),e.C0Y(1,8===(a=n.getDate())?1:10===a?2:11===a?3:-1)}}function Ce(t,h){1&t&&(e.I0R(0,"div",5)(1,"section"),e.OEk(2),e.C$Y(),e.I0R(3,"span"),e.OEk(4,"Backlog number"),e.C$Y()()),2&t&&(e.yG2(2),e.cNF(h))}function he(t,h){if(1&t&&(e.SAx(0),e.yuY(1,Ce,5,1,"div",4),e.k70()),2&t){const n=h.$implicit,a=e.GaO();let o;e.yG2(),e.C0Y(1,(o=a.getMonthData(n))?1:-1,o)}}let Z=(()=>{class t{constructor(){this.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(n){return 8===n.getMonth()?1394:null}static#e=this.\u0275fac=function(a){return new(a||t)};static#n=this.\u0275cmp=e.In1({type:t,selectors:[["nz-demo-calendar-notice-calendar"]],decls:3,vars:0,consts:[["class","events",4,"nzDateCell"],[4,"nzMonthCell"],[1,"events"],[3,"nzStatus","nzText"],["class","notes-month"],[1,"n
1otes-month"]],template:function(a,o){1&a&&(e.I0R(0,"nz-calendar"),e.yuY(1,ue,4,1,"ul",0)(2,he,2,1,"ng-container",1),e.C$Y())},dependencies:[g,F,y,x.Er],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}.notes-month[_ngcontent-%COMP%]{text-align:center;font-size:28px}.notes-month[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]{font-size:28px}"]})}return t})(),Q=(()=>{class t{constructor(){this.selectedValue=new Date("2017-01-25")}selectChange(n){console.log(`Select value: ${n}`)}static#e=this.\u0275fac=function(a){return new(a||t)};static#n=this.\u0275cmp=e.In1({type:t,selectors:[["nz-demo-calendar-select"]],decls:3,vars:5,consts:[[3,"nzMessage"],[3,"ngModel","ngModelChange","nzSelectChange"]],template:function(a,o){1&a&&(e.wR5(0,"nz-alert",0),e.wVc(1,"date"),e.I0R(2,"nz-calendar",1),e.iHE("ngModelChange",function(r){return e.kNx(o.selectedValue,r)||(o.selectedValue=r),r}),e.qCj("nzSelectChange",function(r){return o.selectChange(r)}),e.C$Y()),2&a&&(e.CI5("nzMessage","Your selected date: ",e.g7$(1,2,o.selectedValue,"yyyy-MM-dd"),""),e.yG2(2),e.OKB("ngModel",o.selectedValue))},dependencies:[m.ue,m._G,g,P.G,B.y],encapsulation:2})}return t})(),pe=(()=>{class t{constructor(){this.expanded=!1}goLink(n){window&&(window.location.hash=n)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(n=>{n.nzExpanded=this.expanded,n.expandCode(this.expanded),n.check()})}static#e=this.\u0275fac=function(a){return new(a||t)};static#n=this.\u0275cmp=e.In1({type:t,selectors:[["nz-demo-calendar"]],viewQuery:function(a,o){if(1&a&&e.CC$(v.A,5),2&a){let d;e.wto(d=e.Gqi())&&(o.codeBoxes=d)}},decls:409,vars:24,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzAffix","nzClick"],["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"],["nz-icon","","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"],["nz-icon","","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","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","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","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","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","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"],["spellcheck","true",1,"token","comment"],["id","nz-calendar:standalone"],[1,"api-type-label","component"],[1,"api-type-label","standalone"],["onclick","window.location.hash = 'nz-calendar:standalone'",1,"anchor"]],template:function(a,o){1&a&&(e.I0R(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),e.qCj("nzClick",function(r){return o.goLink(r)}
1),e.wR5(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7),e.C$Y()(),e.I0R(9,"section",8)(10,"h1"),e.OEk(11,"Calendar"),e.I0R(12,"span",9),e.OEk(13,"\u65e5\u5386"),e.C$Y(),e.wR5(14,"span",10),e.I0R(15,"a",11),e.wR5(16,"span",12),e.C$Y()(),e.I0R(17,"section",8),e.EdD(),e.I0R(18,"p"),e.OEk(19,"\u6309\u7167\u65e5\u5386\u5f62\u5f0f\u5c55\u793a\u6570\u636e\u7684\u5bb9\u5668\u3002"),e.C$Y(),e.I0R(20,"h2",13)(21,"span"),e.OEk(22,"\u4f55\u65f6\u4f7f\u7528"),e.C$Y(),e.I0R(23,"a",14),e.OEk(24,"#"),e.C$Y()(),e.I0R(25,"p"),e.OEk(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"),e.C$Y(),e.I0R(27,"pre",15)(28,"code")(29,"span",16),e.OEk(30,"import"),e.C$Y(),e.OEk(31," "),e.I0R(32,"span",17),e.OEk(33,"{"),e.C$Y(),e.OEk(34," NzCalendarModule "),e.I0R(35,"span",17),e.OEk(36,"}"),e.C$Y(),e.OEk(37," "),e.I0R(38,"span",16),e.OEk(39,"from"),e.C$Y(),e.OEk(40," "),e.I0R(41,"span",18),e.OEk(42,"'ng-zorro-antd/calendar'"),e.C$Y(),e.I0R(43,"span",17),e.OEk(44,";"),e.C$Y()()(),e.eAF(),e.C$Y(),e.I0R(45,"h2")(46,"span"),e.OEk(47,"\u4ee3\u7801\u6f14\u793a"),e.C$Y(),e.I0R(48,"span",19),e.qCj("click",function(){return o.expandAllCode()}),e.C$Y()()(),e.I0R(49,"div",20)(50,"div",21)(51,"nz-code-box",22),e.wR5(52,"nz-demo-calendar-basic",23),e.I0R(53,"div",24),e.EdD(),e.I0R(54,"p"),e.OEk(55,"\u4e00\u4e2a\u901a\u7528\u7684\u65e5\u5386\u9762\u677f\uff0c\u652f\u6301\u5e74/\u6708\u5207\u6362\u3002"),e.C$Y(),e.eAF(),e.C$Y()(),e.I0R(56,"nz-code-box",25),e.wR5(57,"nz-demo-calendar-notice-calendar",23),e.I0R(58,"div",24),e.EdD(),e.I0R(59,"p"),e.OEk(60,"\u4e00\u4e2a\u590d\u6742\u7684\u5e94\u7528\u793a\u4f8b\uff0c\u7528 "),e.I0R(61,"code"),e.OEk(62,"nzDateCell"),e.C$Y(),e.OEk(63," \u548c "),e.I0R(64,"code"),e.OEk(65,"nzMonthCell"),e.C$Y(),e.OEk(66," \u6a21\u7248\u6765\u81ea\u5b9a\u4e49\u9700\u8981\u6e32\u67d3\u7684\u6570\u636e\u3002"),e.C$Y(),e.eAF(),e.C$Y()(),e.I0R(67,"nz-code-box",26),e.wR5(68,"nz-demo-calendar-card",23),e.I0R(69,"div",24),e.EdD(),e.I0R(70,"p"),e.OEk(71,"\u7528\u4e8e\u5d4c\u5957\u5728\u7a7a\u95f4\u6709\u9650\u7684\u5bb9\u5668\u4e2d\u3002"),e.C$Y(),e.eAF(),e.C$Y()(),e.I0R(72,"nz-code-box",27),e.wR5(73,"nz-demo-calendar-select",23),e.I0R(74,"div",24),e.EdD(),e.I0R(75,"p"),e.OEk(76,"\u4e00\u4e2a\u901a\u7528\u7684\u65e5\u5386\u9762\u677f\uff0c\u652f\u6301\u5e74/\u6708\u5207\u6362\u3002"),e.C$Y(),e.eAF(),e.C$Y()(),e.I0R(77,"nz-code-box",28),e.wR5(78,"nz-demo-calendar-customize-header",23),e.I0R(79,"div",24),e.EdD(),e.I0R(80,"p"),e.OEk(81,"\u81ea\u5b9a\u4e49\u65e5\u5386\u5934\u90e8\u5185\u5bb9\u3002"),e.C$Y(),e.eAF(),e.C$Y()()()(),e.I0R(82,"section",29),e.EdD(),e.I0R(83,"h2",30)(84,"span"),e.OEk(85,"API"),e.C$Y(),e.I0R(86,"a",31),e.OEk(87,"#"),e.C$Y()(),e.I0R(88,"p"),e.OEk(89,"**\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"),e.C$Y(),e.I0R(90,"p"),e.OEk(91,"\u4f8b\u5982\uff1a"),e.C$Y(),e.I0R(92,"pre",32)(93,"code")(94,"span",16),e.OEk(95,"import"),e.C$Y(),e.OEk(96," "),e.I0R(97,"span",17),e.OEk(98,"{"),e.C$Y(),e.OEk(99," registerLocaleData "),e.I0R(100,"span",17),e.OEk(101,"}"),e.C$Y(),e.OEk(102," "),e.I0R(103,"span",16),e.OEk(104,"from"),e.C$Y(),e.OEk(105," "),e.I0R(106,"span",18),e.OEk(107,"'@angular/common'"),e.C$Y(),e.I0R(108,"span",17),e.OEk(109,";"),e.C$Y(),e.OEk(110,"\n"),e.I0R(111,"span",16),e.OEk(112,"import"),e.C$Y(),e.OEk(113," zh "),e.I0R(114,"span",16),e.OEk(115,"from"),e.C$Y(),e.OEk(116," "),e.I0R(117,"span",18),e.OEk(118,"'@angular/common/locales/zh'"),e.C$Y(),e.I0R(119,"span",17),e.OEk(120,";"),e.C$Y(),e.OEk(121,"\n"),e.I0R(122,"span",33),e.OEk(123,"registerLocaleData"),e.C$Y(),e.I0R(124,"span",17),e.OEk(125,"("),e.C$Y(),e.OEk(126,"zh"),e.I0R(127,"span",17),e.OEk(128,")"),e.C$Y(),e.I0R(129,"span",17),e.OEk(130,";"),e.C$Y()()(),e.I0R(131,"pre",34)(132,"code")(133,"span",35)(134,"span",35)(135,"span",17),e.OEk(136,"<"),e.C$Y(),e.OEk(137,"nz-calendar"),e.C$Y(),e.OEk(138,"\n  "),e.I0R(139,"span",36),e.OEk(140,"[nzDateCell]"),e.C$Y(),e.I0R(141,"span",37)(142,"span",17),e.OEk(143,"="),e.C$Y(),e.I0R(144,"span",17),e.OEk(145,'"'),e.C$Y(),e.OEk(146,"dateCellTpl"),e.I0R(147,"span",17),e.OEk(148,'"'),e.C$Y()(),e.OEk(149,"\n  "),e.I0R(150,"span",36),e.OEk(151,"[(ngModel)]"),e.C$Y(),e.I0R(152,"span",37)(153,"span",17),e.OEk(154,"="),e.C$Y(),e.I0R(155,"span",17),e.OEk(156,'"'),e.C$Y(),e.OEk(157,"selectedDate"),e.I0R(158,"span",17),e.OEk(159,'"'),e.C$Y()(),e.OEk(160,"\n  "),e.I0R(161,"span",36),e.OEk(162,"[(nzMode)]"),e.C$Y(),e.I0R(163,"span",37)(164,"span",17),e.OEk(165,"="),e.C$Y(),e.I0R(166,"span",17),e.OEk(167,'"'),e.C$Y(),e.OEk(168,"mode"),e.I0R(169,"span",17),e.OEk(170,'"'),e.C$Y()(),e.OEk(171,"\n  "),e.I0R(172,"span",36),e.OEk(173,"(nzPanelChange)"),e.C$Y(),e.I0R(174,"span",37)(175,"span",17),e.OEk(176,"="),e.C$Y(),e.I0R(177,"span",17),e.OEk(178,'"'),e.C$Y(),e.OEk(179,"panelChange($event)"),e.I0R(180,"span",17),e.OEk(181,'"'),e.C$Y()(),e.OEk(182,"\n  "),e.I0R(183,"span",36),e.OEk(184,"(nzSelectChange)"),e.C$Y(),e.I0R(185,"span",37)(186,"span",17),e.OEk(187,"="),e.C$Y(),e.I0R(188,"span",17),e.OEk(189,'"'),e.C$Y(),e.OEk(190,"selectChange($event)"),e.I0R(191,"span",17),e.OEk(192,'"'),e.C$Y()(),e.OEk(193,"\n"),e.I0R(194,"span",17),e.OEk(195,">"),e.C$Y()(),e.OEk(196,"\n  "),e.I0R(197,"span",38),e.OEk(198,"\x3c!-- \u5b9a\u4e49 Cell \u7684\u53e6\u4e00\u79cd\u65b9\u5f0f --\x3e"),e.C$Y(),e.OEk(199,"\n  "),e.I0R(200,"span",35)(201,"span",35)(202,"span",17),e.OEk(203,"<"),e.C$Y(),e.OEk(204,"div"),e.C$Y(),e.OEk(205," "),e.I0R(206,"span",36),e.OEk(207,"*dateCell"),e.C$Y(),e.I0R(208,"span",17),e.OEk(209,">"),e.C$Y()(),e.OEk(210,"Foo"),e.I0R(211,"span",35)(212,"span",35)(213,"span",17),e.OEk(214,"</"),e.C$Y(),e.OEk(215,"div"),e.C$Y(),e.I0R(216,"span",17),e.OEk(217,">"),e.C$Y()(),e.OEk(218,"\n"),e.I0R(219,"span",35)(220,"span",35)(221,"span",17),e.OEk(222,"</"),e.C$Y(),e.OEk(223,"nz-calendar"),e.C$Y(),e.I0R(224,"span",17),e.OEk(225,">"),e.C$Y()(),e.OEk(226,"\n"),e.I0R(227,"span",38),e.OEk(228,"\x3c!-- \u4f20\u5165 TemplateRef \u7684\u65b9\u5f0f --\x3e"),e.C$Y(),e.OEk(229,"\n"),e.I0R(230,"span",35)(231,"span",35)(232,"span",17),e.OEk(233,"<"),e.C$Y(),e.OEk(234,"ng-template"),e.C$Y(),e.OEk(235," "),e.I0R(236,"span",36),e.OEk(237,"#dateCellTpl"),e.C$Y(),e.OEk(238," "),e.I0R(239,"span",36),e.OEk(240,"let-date"),e.C$Y(),e.I0R(241,"span",17),e.OEk(242,">"),e.C$Y()(),e.I0R(243,"span",35)(244,"span",35)(245,"span",17),e.OEk(246,"<"),e.C$Y(),e.OEk(247,"span"),e.C$Y(),e.I0R(248,"span",17),e.OEk(249,">"),e.C$Y()(),e.OEk(250,"{{ date | date:'d'}}"),e.I0R(251,"span",35)(252,"span",35)(253,"span",17),e.OEk(254,"</"),e.C$Y(),e.OEk(255,"span"),e.C$Y(),e.I0R(256,"span",17),e.OEk(257,">"),e.C$Y()(),e.I0R(258,"span",35)(259,"span",35)(260,"span",17),e.OEk(261,"</"),e.C$Y(),e.OEk(262,"ng-template"),e.C$Y(),e.I0R(263,"span",17),e.OEk(264,">"),e.C$Y()()()(),e.I0R(265,"h3",39)(266,"span"),e.OEk(267,"nz-calendar"),e.C$Y(),e.I0R(268,"label",40),e.OEk(269,"component"),e.C$Y(),e.I0R(270,"label",41),e.OEk(271,"standalone"),e.C$Y(),e.I0R(272,"a",42),e.OEk(273,"#"),e.C$Y()(),e.I0R(274,"table")(275,"thead")(276,"tr")(277,"th"),e.OEk(278,"\u53c2\u6570"),e.C$Y(),e.I0R(279,"th"),e.OEk(280,"\u8bf4\u660e"),e.C$Y(),e.I0R(281,"th"),e.OEk(282,"\u7c7b\u578b"),e.C$Y(),e.I0R(283,"th"),e.OEk(284,"\u9ed8\u8ba4\u503c"),e.C$Y()()(),e.I0R(285,"tbody")(286,"tr")(287,"td")(288,"code"),e.OEk(289,"[(ngModel)]"),e.C$Y()(),e.I0R(290,"td"),e.OEk(291,"\uff08\u53ef\u53cc\u5411\u7ed1\u5b9a\uff09\u5c55\u793a\u65e5\u671f"),e.C$Y(),e.I0R(292,"td")(293,"code"),e.OEk(294,"Date"),e.C$Y()(),e.I0R(295,"td"),e.OEk(296,"\u5f53\u524d\u65e5\u671f"),e.C$Y()(),e.I0R(297,"tr")(298,"td")(299,"code"),e.OEk(300,"[(nzMode)]"),e.C$Y()(),e.I0R(301,"td"),e.OEk(302,"\uff08\u53ef\u53cc\u5411\u7ed1\u5b9a\uff09\u663e\u793a\u6a21\u5f0f"),e.C$Y(),e.I0R(303,"td")(304,"code"),e.OEk(305,"'month' | 'year'"),e.C$Y()(),e.I0R(306,"td")(307,"code"),e.OEk(308,"'month'"),e.C$Y()()(),e.I0R(309,"tr")(310,"td")(311,"code"),e.OEk(312,"[nzFullscreen]"),e.C$Y()(),e.I0R(313,"td"),e.OEk(314,"\u662f\u5426\u5168\u5c4f\u663e\u793a"),e.C$Y(),e.I0R(315,"td")(316,"code"),e.OEk(317,"boolean"),e.C$Y()(),e.I0R(318,"td")(319,"code"),e.OEk(320,"true"),e.C$Y()()(),e.I0R(321,"tr")(322,"td")(323,"code"),e.OEk(324,"[nzDateCell]"),e.C$Y()(),e.I0R(325,"td"),e.OEk(326,"\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"),e.C$Y(),e.I0R(327,"td")(328,"code"),e.OEk(329,"TemplateRef<Date>"),e.C$Y()(),e.I0R(330,"td"),e.OEk(331,"-"),e.C$Y()(),e.I0R(332,"tr")(333,"td")(334,"code"),e.OEk(335,"[nzDateFullCell]"),e.C$Y()(),e.I0R(336,"td"),e.OEk(337,"\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"),e.C$Y(),e.I0R(338,"td")(339,"code"),e.OEk(340,"TemplateRef<Date>"),e.C$Y()(),e.I0R(341,"td"),e.OEk(342,"-"),e.C$Y()(),e.I0R(343,"tr")(344,"td")(345,"code"),e.OEk(346,"[nzMonthCell]"),e.C$Y()(),e.I0R(347,"td"),e.OEk(348,"\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"),e.C$Y(),e.I0R(349,"td")(350,"code"),e.OEk(351,"TemplateRef<Date>"),e.C$Y()(),e.I0R(352,"td"),e.OEk(353,"-"),e.C$Y()(),e.I0R(354,"tr")(355,"td")(356,"code"),e.OEk(357,"[nzMonthFullCell]"),e.C$Y()(),e.I0R(358,"td"),e.OEk(359,"\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"),e.C$Y(),e.I0R(360,"td")(361,"code"),e.OEk(362,"TemplateRef<Date>"),e.C$Y()(),e.I0R(363,"td"),e.OEk(364,"-"),e.C$Y()(),e.I0R(365,"tr")(366,"td")(367,"code"),e.OEk(368,"[nzCustomHeader]"),e.C$Y()(),e.I0R(369,"td"),e.OEk(370,"\u81ea\u5b9a\u4e49\u5934\u90e8\u5185\u5bb9"),e.C$Y(),e.I0R(371,"td")(372,"code"),e.OEk(373,"string | TemplateRef<void>"),e.C$Y()(),e.I0R(374,"td"),e.OEk(375,"-"),e.C$Y()(),e.I0R(376,"tr")(377,"td")(378,"code"),e.OEk(379,"[nzDisabledDate]"),e.C$Y()(),e.I0R(380,"td"),e.OEk(381,"\u4e0d\u53ef\u9009\u62e9\u7684\u65e5\u671f"),e.C$Y(),e.I0R(382,"td")(383,"code"),e.OEk(384,"(current: Date) => boolean"),e.C$Y()(),e.I0R(385,"td"),e.OEk(386,"-"),e.C$Y()(),e.I0R(387,"tr")(388,"td")(389,"code"),e.OEk(390,"(nzPanelChange)"),e.C$Y()(),e.I0R(391,"td"),e.OEk(392,"\u9762\u677f\u53d8\u5316\u7684\u56de\u8c03"),e.C$Y(),e.I0R(393,"td")(394,"code"),e.OEk(395,"EventEmitter<{ date: Date, mode: 'month' | 'year' }>"),e.C$Y()(),e.I0R(396,"td"),e.OEk(397,"-"),e.C$Y()(),e.I0R(398,"tr")(399,"td")(400,"code"),e.OEk(401,"(nzSelectChange)"),e.C$Y()(),e.I0R(402,"td"),e.OEk(403,"\u9009\u62e9\u65e5\u671f\u7684\u56de\u8c03"),e.C$Y(),e.I0R(404,"td")(405,"code"),e.OEk(406,"EventEmitter<Date>"),e.C$Y()(),e.I0R(407,"td"),e.OEk(408,"-"),e.C$Y()()()(),e.eAF(),e.C$Y()()),2&a&&(e.yG2(),e.E7m("nzOffsetTop",16),e.yG2(),e.E7m("nzAffix",!1),e.yG2(47),e.E7m("nzGutter",8),e.yG2(),e.E7m("nzSpan",24),e.yG2(),e.E7m("nzId","components-calendar-demo-basic")("nzLink","components-calendar-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/basic.md"),e.yG2(5),e.E7m("nzId","components-calendar-demo-notice-calendar")("nzLink","components-calendar-demo-notice-calendar")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/notice-calendar.md"),e.yG2(11),e.E7m("nzId","components-calendar-demo-card")("nzLink","components-calendar-demo-card")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/card.md"),e.yG2(5),e.E7m("nzId","components-calendar-demo-select")("nzLink","components-calendar-demo-select")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/select.md"),e.yG2(5),e.E7m("nzId","components-calendar-demo-customize-header")("nzLink","components-calendar-demo-customize-header")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/customize-header.md"))},dependencies:[v.A,M.s9,M.mK,L.g,b.QD,b.ox,V.qG,K.If,U,W,j,Z,Q],encapsulation:2})}return t})(),me=(()=>{class t{constructor(){this.expanded=!1}goLink(n){window&&(window.location.hash=n)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEac
1h(n=>{n.nzExpanded=this.expanded,n.expandCode(this.expanded),n.check()})}static#e=this.\u0275fac=function(a){return new(a||t)};static#n=this.\u0275cmp=e.In1({type:t,selectors:[["nz-demo-calendar"]],viewQuery:function(a,o){if(1&a&&e.CC$(v.A,5),2&a){let d;e.wto(d=e.Gqi())&&(o.codeBoxes=d)}},decls:416,vars:24,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzAffix","nzClick"],["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"],["nz-icon","","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"],["nz-icon","","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","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","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","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","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","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["href","https://angular.io/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"],["spellcheck","true",1,"token","comment"],["id","nz-calendar:standalone"],[1,"api-type-label","component"],[1,"api-type-label","standalone"],["onclick","window.location.hash = 'nz-calendar:standalone'",1,"anchor"]],template:function(a,o){1&a&&(e.I0R(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),e.qCj("nzClick",function(r){return o.goLink(r)}),e.wR5(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7),e.C$Y()(),e.I0R(9,"section",8)(10,"h1"),e.OEk(11,"Calendar"),e.wR5(12,"span",9)(13,"span",10),e.I0R(14,"a",11),e.wR5(15,"span",12),e.C$Y()(),e.I0R(16,"section",8),e.EdD(),e.I0R(17,"p"),e.OEk(18,"Container for displaying data in calendar form."),e.C$Y(),e.I0R(19,"h2",13)(20,"span"),e.OEk(21,"When To Use"),e.C$Y(),e.I0R(22,"a",14),e.OEk(23,"#"),e.C$Y()(),e.I0R(24,"p"),e.OEk(25,"When data is in the form of dates, such as schedules, timetables, prices calendar, lunar calendar. This component also supports Year/Month switch."),e.C$Y(),e.I0R(26,"pre",15)(27,"code")(28,"span",16),e.OEk(29,"import"),e.C$Y(),e.OEk(30," "),e.I0R(31,"span",17),e.OEk(32,"{"),e.C$Y(),e.OEk(33," NzCalendarModule "),e.I0R(34,"span",17),e.OEk(35,"}"),e.C$Y(),e.OEk(36," "),e.I0R(37,"span",16),e.OEk(38,"from"),e.C$Y(),e.OEk(39," "),e.I0R(40,"span",18),e.OEk(41,"'ng-zorro-antd/calendar'"),e.C$Y(),e.I0R(42,"span",17),e.OEk(43,";"),e.C$Y()()(),e.eAF(),e.C$Y(),e.I0R(44,"h2")(45,"span"),e.OEk(46,"Examples"),e.C$Y(),e.I0R(47,"span",19),e.qCj("click",function(){return o.expandAllCode()}),e.C$Y()()(),e.I0R(48,"div",20)(49,"div",21)(50,"nz-code-box",22),e.wR5(51,"nz-demo-calendar-basic",23),e.I0R(52,"div",24),e.EdD(),e.I0R(53,"p"),e.OEk(54,"A basic calendar component with Year/Month switch."),e.C$Y(),e.eAF(),e.C$Y()(),e.I0R(55,"nz-code-box",25),e.wR5(56,"nz-demo-calendar-notice-calendar",23),e.I0R(57,"div",24),e.EdD(),e.I0R(58,"p"),e.OEk(59,"This component can be rendered by using "),e.I0R(60,"code"),e.OEk(61,"nzDateCell"),e.C$Y(),e.OEk(62," and "),e.I0R(63,"code"),e.OEk(64,"nzMonthCell"),e.C$Y(),e.OEk(65," with the data you need."),e.C$Y(),e.eAF(),e.C$Y()(),e.I0R(66,"nz-code-box",26),e.wR5(67,"nz-demo-calendar-card",23),e.I0R(68,"div",24),e.EdD(),e.I0R(69,"p"),e.OEk(70,"Nested inside a container element for rendering in limited space."),e.C$Y(),e.eAF(),e.C$Y()(),e.I0R(71,"nz-code-box",27),e.wR5(72,"nz-demo-calendar-select",23),e.I0R(73,"div",24),e.EdD(),e.I0R(74,"p"),e.OEk(75,"A basic calendar component with Year/Month switch."),e.C$Y(),e.eAF(),e.C$Y()(),e.I0R(76,"nz-code-box",28),e.wR5(77,"nz-demo-calendar-customize-header",23),e.I0R(78,"div",24),e.EdD(),e.I0R(79,"p"),e.OEk(80,"Customize Calendar header content."),e.C$Y(),e.eAF(),e.C$Y()()()(),e.I0R(81,"section",29),e.EdD(),e.I0R(82,"h2",30)(83,"span"),e.OEk(84,"API"),e.C$Y(),e.I0R(85,"a",31),e.OEk(86,"#"),e.C$Y()(),e.I0R(87,"p")(88,"strong"),e.OEk(89,"Note:"),e.C$Y(),e.OEk(90," Some of Calendar's locale are coming from "),e.I0R(91,"a",32),e.OEk(92,"Angular i18n"),e.C$Y(),e.OEk(93,", that should be provided in the file of "),e.I0R(94,"code"),e.OEk(95,"app.module.ts"),e.C$Y(),e.OEk(96,"."),e.C$Y(),e.I0R(97,"p"),e.OEk(98,"For example:"),e.C$Y(),e.I0R(99,"pre",33)(100,"code")(101,"span",16),e.OEk(102,"import"),e.C$Y(),e.OEk(103," "),e.I0R(104,"span",17),e.OEk(105,"{"),e.C$Y(),e.OEk(106," registerLocaleData "),e.I0R(107,"span",17),e.OEk(108,"}"),e.C$Y(),e.OEk(109," "),e.I0R(110,"span",16),e.OEk(111,"from"),e.C$Y(),e.OEk(112," "),e.I0R(113,"span",18),e.OEk(114,"'@angular/common'"),e.C$Y(),e.I0R(115,"span",17),e.OEk(116,";"),e.C$Y(),e.OEk(117,"\n"),e.I0R(118,"span",16),e.OEk(119,"import"),e.C$Y(),e.OEk(120," en "),e.I0R(121,"span",16),e.OEk(122,"from"),e.C$Y(),e.OEk(123," "),e.I0R(124,"span",18),e.OEk(125,"'@angular/common/locales/en'"),e.C$Y(),e.I0R(126,"span",17),e.OEk(127,";"),e.C$Y(),e.OEk(128,"\n"),e.I0R(129,"span",34),e.OEk(130,"registerLocaleData"),e.C$Y(),e.I0R(131,"span",17),e.OEk(132,"("),e.C$Y(),e.OEk(133,"en"),e.I0R(134,"span",17),e.OEk(135,")"),e.C$Y(),e.I0R(136,"span",17),e.OEk(137,";"),e.C$Y()()(),e.I0R(138,"pre",35)(139,"code")(140,"span",36)(141,"span",36)(142,"span",17),e.OEk(143,"<"),e.C$Y(),e.OEk(144,"nz-calendar"),e.C$Y(),e.OEk(145,"\n  "),e.I0R(146,"span",37),e.OEk(147,"[nzDateCell]"),e.C$Y(),e.I0R(148,"span",38)(149,"span",17),e.OEk(150,"="),e.C$Y(),e.I0R(151,"span",17),e.OEk(152,'"'),e.C$Y(),e.OEk(153,"dateCellTpl"),e.I0R(154,"span",17),e.OEk(155,'"'),e.C$Y()(),e.OEk(156,"\n  "),e.I0R(157,"span",37),e.OEk(158,"[(ngModel)]"),e.C$Y(),e.I0R(159,"span",38)(160,"span",17),e.OEk(161,"="),e.C$Y(),e.I0R(162,"span",17),e.OEk(163,'"'),e.C$Y(),e.OEk(164,"selectedDate"),e.I0R(165,"span",17),e.OEk(166,'"'),e.C$Y()(),e.OEk(167,"\n  "),e.I0R(168,"span",37),e.OEk(169,"[(nzMode)]"),e.C$Y(),e.I0R(170,"span",38)(171,"span",17),e.OEk(172,"="),e.C$Y(),e.I0R(173,"span",17),e.OEk(174,'"'),e.C$Y(),e.OEk(175,"mode"),e.I0R(176,"span",17),e.OEk(177,'"'),e.C$Y()(),e.OEk(178,"\n  "),e.I0R(179,"span",37),e.OEk(180,"(nzPanelChange)"),e.C$Y(),e.I0R(181,"span",38)(182,"span",17),e.OEk(183,"="),e.C$Y(),e.I0R(184,"span",17),e.OEk(185,'"'),e.C$Y(),e.OEk(186,"panelChange($event)"),e.I0R(187,"span",17),e.OEk(188,'"'),e.C$Y()(),e.OEk(189,"\n  "),e.I0R(190,"span",37),e.OEk(191,"(nzSelectChange)"),e.C$Y(),e.I0R(192,"span",38)(193,"span",17),e.OEk(194,"="),e.C$Y(),e.I0R(195,"span",17),e.OEk(196,'"'),e.C$Y(),e.OEk(197,"selectChange($event)"),e.I0R(198,"span",17),e.OEk(199,'"'),e.C$Y()(),e.OEk(200,"\n"),e.I0R(201,"span",17),e.OEk(202,">"),e.C$Y()(),e.OEk(203,"\n  "),e.I0R(204,"span",39),e.OEk(205,"\x3c!-- Another method for cell definition --\x3e"),e.C$Y(),e.OEk(206,"\n  "),e.I0R(207,"span",36)(208,"span",36)(209,"span",17),e.OEk(210,"<"),e.C$Y(),e.OEk(211,"div"),e.C$Y(),e.OEk(212," "),e.I0R(213,"span",37),e.OEk(214,"*nzDateCell"),e.C$Y(),e.I0R(215,"span",17),e.OEk(216,">"),e.C$Y()(),e.OEk(217,"Foo"),e.I0R(218,"span",36)(219,"span",36)(220,"span",17),e.OEk(221,"</"),e.C$Y(),e.OEk(222,"div"),e.C$Y(),e.I0R(223,"span",17),e.OEk(224,">"),e.C$Y()(),e.OEk(225,"\n"),e.I0R(226,"span",36)(227,"span",36)(228,"span",17),e.OEk(229,"</"),e.C$Y(),e.OEk(230,"nz-calendar"),e.C$Y(),e.I0R(231,"span",17),e.OEk(232,">"),e.C$Y()(),e.OEk(233,"\n"),e.I0R(234,"span",39),e.OEk(235,"\x3c!-- Passing TemplateRef --\x3e"),e.C$Y(),e.OEk(236,"\n"),e.I0R(237,"span",36)(238,"span",36)(239,"span",17),e.OEk(240,"<"),e.C$Y(),e.OEk(241,"ng-template"),e.C$Y(),e.OEk(242," "),e.I0R(243,"span",37),e.OEk(244,"#dateCellTpl"),e.C$Y(),e.OEk(245," "),e.I0R(246,"span",37),e.OEk(247,"let-date"),e.C$Y(),e.I0R(248,"span",17),e.OEk(249,">
1"),e.C$Y()(),e.I0R(250,"span",36)(251,"span",36)(252,"span",17),e.OEk(253,"<"),e.C$Y(),e.OEk(254,"span"),e.C$Y(),e.I0R(255,"span",17),e.OEk(256,">"),e.C$Y()(),e.OEk(257,"{{ date | date:'d'}}"),e.I0R(258,"span",36)(259,"span",36)(260,"span",17),e.OEk(261,"</"),e.C$Y(),e.OEk(262,"span"),e.C$Y(),e.I0R(263,"span",17),e.OEk(264,">"),e.C$Y()(),e.I0R(265,"span",36)(266,"span",36)(267,"span",17),e.OEk(268,"</"),e.C$Y(),e.OEk(269,"ng-template"),e.C$Y(),e.I0R(270,"span",17),e.OEk(271,">"),e.C$Y()()()(),e.I0R(272,"h3",40)(273,"span"),e.OEk(274,"nz-calendar"),e.C$Y(),e.I0R(275,"label",41),e.OEk(276,"component"),e.C$Y(),e.I0R(277,"label",42),e.OEk(278,"standalone"),e.C$Y(),e.I0R(279,"a",43),e.OEk(280,"#"),e.C$Y()(),e.I0R(281,"table")(282,"thead")(283,"tr")(284,"th"),e.OEk(285,"Property"),e.C$Y(),e.I0R(286,"th"),e.OEk(287,"Description"),e.C$Y(),e.I0R(288,"th"),e.OEk(289,"Type"),e.C$Y(),e.I0R(290,"th"),e.OEk(291,"Default"),e.C$Y()()(),e.I0R(292,"tbody")(293,"tr")(294,"td")(295,"code"),e.OEk(296,"[(ngModel)]"),e.C$Y()(),e.I0R(297,"td"),e.OEk(298,"(Two-way bindable) The current selected date"),e.C$Y(),e.I0R(299,"td")(300,"code"),e.OEk(301,"Date"),e.C$Y()(),e.I0R(302,"td"),e.OEk(303,"current date"),e.C$Y()(),e.I0R(304,"tr")(305,"td")(306,"code"),e.OEk(307,"[(nzMode)]"),e.C$Y()(),e.I0R(308,"td"),e.OEk(309,"The display mode of the calendar (two-way bindable)"),e.C$Y(),e.I0R(310,"td")(311,"code"),e.OEk(312,"'month' | 'year'"),e.C$Y()(),e.I0R(313,"td")(314,"code"),e.OEk(315,"'month'"),e.C$Y()()(),e.I0R(316,"tr")(317,"td")(318,"code"),e.OEk(319,"[nzFullscreen]"),e.C$Y()(),e.I0R(320,"td"),e.OEk(321,"Whether to display in full-screen"),e.C$Y(),e.I0R(322,"td")(323,"code"),e.OEk(324,"boolean"),e.C$Y()(),e.I0R(325,"td")(326,"code"),e.OEk(327,"true"),e.C$Y()()(),e.I0R(328,"tr")(329,"td")(330,"code"),e.OEk(331,"[nzDateCell]"),e.C$Y()(),e.I0R(332,"td"),e.OEk(333,"(Contentable) Customize the display of the date cell, the template content will be appended to the cell"),e.C$Y(),e.I0R(334,"td")(335,"code"),e.OEk(336,"TemplateRef<Date>"),e.C$Y()(),e.I0R(337,"td"),e.OEk(338,"-"),e.C$Y()(),e.I0R(339,"tr")(340,"td")(341,"code"),e.OEk(342,"[nzDateFullCell]"),e.C$Y()(),e.I0R(343,"td"),e.OEk(344,"(Contentable) Customize the display of the date cell, the template content will override the cell"),e.C$Y(),e.I0R(345,"td")(346,"code"),e.OEk(347,"TemplateRef<Date>"),e.C$Y()(),e.I0R(348,"td"),e.OEk(349,"-"),e.C$Y()(),e.I0R(350,"tr")(351,"td")(352,"code"),e.OEk(353,"[nzMonthCell]"),e.C$Y()(),e.I0R(354,"td"),e.OEk(355,"(Contentable) Customize the display of the month cell, the template content will be appended to the cell"),e.C$Y(),e.I0R(356,"td")(357,"code"),e.OEk(358,"TemplateRef<Date>"),e.C$Y()(),e.I0R(359,"td"),e.OEk(360,"-"),e.C$Y()(),e.I0R(361,"tr")(362,"td")(363,"code"),e.OEk(364,"[nzMonthFullCell]"),e.C$Y()(),e.I0R(365,"td"),e.OEk(366,"(Contentable) Customize the display of the month cell, the template content will override the cell"),e.C$Y(),e.I0R(367,"td")(368,"code"),e.OEk(369,"TemplateRef<Date>"),e.C$Y()(),e.I0R(370,"td"),e.OEk(371,"-"),e.C$Y()(),e.I0R(372,"tr")(373,"td")(374,"code"),e.OEk(375,"[nzCustomHeader]"),e.C$Y()(),e.I0R(376,"td"),e.OEk(377,"Render custom header in panel"),e.C$Y(),e.I0R(378,"td")(379,"code"),e.OEk(380,"string | TemplateRef<void>"),e.C$Y()(),e.I0R(381,"td"),e.OEk(382,"-"),e.C$Y()(),e.I0R(383,"tr")(384,"td")(385,"code"),e.OEk(386,"[nzDisabledDate]"),e.C$Y()(),e.I0R(387,"td"),e.OEk(388,"specify the date that cannot be selected"),e.C$Y(),e.I0R(389,"td")(390,"code"),e.OEk(391,"(current: Date) => boolean"),e.C$Y()(),e.I0R(392,"td"),e.OEk(393,"-"),e.C$Y()(),e.I0R(394,"tr")(395,"td")(396,"code"),e.OEk(397,"(nzPanelChange)"),e.C$Y()(),e.I0R(398,"td"),e.OEk(399,"Callback for when panel changes"),e.C$Y(),e.I0R(400,"td")(401,"code"),e.OEk(402,"EventEmitter<{ date: Date, mode: 'month' | 'year' }>"),e.C$Y()(),e.I0R(403,"td"),e.OEk(404,"-"),e.C$Y()(),e.I0R(405,"tr")(406,"td")(407,"code"),e.OEk(408,"(nzSelectChange)"),e.C$Y()(),e.I0R(409,"td"),e.OEk(410,"A callback function of selected item"),e.C$Y(),e.I0R(411,"td")(412,"code"),e.OEk(413,"EventEmitter<Date>"),e.C$Y()(),e.I0R(414,"td"),e.OEk(415,"-"),e.C$Y()()()(),e.eAF(),e.C$Y()()),2&a&&(e.yG2(),e.E7m("nzOffsetTop",16),e.yG2(),e.E7m("nzAffix",!1),e.yG2(46),e.E7m("nzGutter",8),e.yG2(),e.E7m("nzSpan",24),e.yG2(),e.E7m("nzId","components-calendar-demo-basic")("nzLink","components-calendar-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/basic.md"),e.yG2(5),e.E7m("nzId","components-calendar-demo-notice-calendar")("nzLink","components-calendar-demo-notice-calendar")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/notice-calendar.md"),e.yG2(11),e.E7m("nzId","components-calendar-demo-card")("nzLink","components-calendar-demo-card")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/card.md"),e.yG2(5),e.E7m("nzId","components-calendar-demo-select")("nzLink","components-calendar-demo-select")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/select.md"),e.yG2(5),e.E7m("nzId","components-calendar-demo-customize-header")("nzLink","components-calendar-demo-customize-header")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/calendar/demo/customize-header.md"))},dependencies:[v.A,M.s9,M.mK,L.g,b.QD,b.ox,V.qG,K.If,U,W,j,Z,Q],encapsulation:2})}return t})(),ze=(()=>{class t{static#e=this.\u0275fac=function(a){return new(a||t)};static#n=this.\u0275mod=e.a4G({type:t});static#t=this.\u0275inj=e.s3X({imports:[l.K,ne,O.qQ.forChild([{path:"en",component:me},{path:"zh",component:pe}])]})}return t})()},9656:(J,Y,c)=>{c.d(Y,{es:()=>G,sn:()=>D,uw:()=>w});var O=c(1316),l=c(4496),e=c(6504),m=c(2540),R=c(5657),E=c(800),p=c(3616),z=c(5739),I=c(1900),T=c(916),N=c(3972);const _=["*"],A=["inputElement"],f=["nz-radio",""];let $=(()=>{class C{constructor(){this.selected$=new m.o(1),this.touched$=new R.E,this.disabled$=new m.o(1),this.name$=new m.o(1)}touch(){this.touched$.next()}select(i){this.selected$.next(i)}setDisabled(i){this.disabled$.next(i)}setName(i){this.name$.next(i)}static#e=this.\u0275fac=function(u){return new(u||C)};
1static#n=this.\u0275prov=l.wxM({token:C,factory:C.\u0275fac})}return C})(),w=(()=>{class C{constructor(i,u,s){this.cdr=i,this.nzRadioService=u,this.directionality=s,this.value=null,this.destroy$=new R.E,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.nzDisabled=!1,this.nzButtonStyle="outline",this.nzSize="default",this.nzName=null,this.dir="ltr"}ngOnInit(){this.nzRadioService.selected$.pipe((0,p.a)(this.destroy$)).subscribe(i=>{this.value!==i&&(this.value=i,this.onChange(this.value))}),this.nzRadioService.touched$.pipe((0,p.a)(this.destroy$)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe((0,p.a)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(i){const{nzDisabled:u,nzName:s}=i;u&&this.nzRadioService.setDisabled(this.nzDisabled),s&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}writeValue(i){this.value=i,this.nzRadioService.select(i),this.cdr.markForCheck()}registerOnChange(i){this.onChange=i}registerOnTouched(i){this.onTouched=i}setDisabledState(i){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||i,this.isNzDisableFirstChange=!1,this.nzRadioService.setDisabled(this.nzDisabled),this.cdr.markForCheck()}static#e=this.\u0275fac=function(u){return new(u||C)(l.GI1(l.kD9),l.GI1($),l.GI1(I.yG,8))};static#n=this.\u0275cmp=l.In1({type:C,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(u,s){2&u&&l.eAK("ant-radio-group-large","large"===s.nzSize)("ant-radio-group-small","small"===s.nzSize)("ant-radio-group-solid","solid"===s.nzButtonStyle)("ant-radio-group-rtl","rtl"===s.dir)},inputs:{nzDisabled:"nzDisabled",nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],standalone:!0,features:[l.M5G([$,{provide:e.Y6,useExisting:(0,l.wd)(()=>C),multi:!0}]),l.SYr,l.UHJ],ngContentSelectors:_,decls:1,vars:0,template:function(u,s){1&u&&(l.kPM(),l._Xx(0))},encapsulation:2,changeDetection:0})}return(0,O.UN)([(0,z.U7)()],C.prototype,"nzDisabled",void 0),C})(),G=(()=>{class C{focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(i,u,s,k,F,y,S){this.ngZone=i,this.elementRef=u,this.cdr=s,this.focusMonitor=k,this.directionality=F,this.nzRadioService=y,this.nzFormStatusService=S,this.isNgModel=!1,this.destroy$=new R.E,this.isNzDisableFirstChange=!0,this.isChecked=!1,this.name=null,this.onChange=()=>{},this.onTouched=()=>{},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.isRadioButton=!1,this.dir="ltr"}setDisabledState(i){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||i,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}writeValue(i){this.isChecked=i,this.cdr.markForCheck()}registerOnChange(i){this.isNgModel=!0,this.onChange=i}registerOnTouched(i){this.onTouched=i}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe((0,p.a)(this.destroy$)).subscribe(i=>{this.name=i,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe((0,p.a)(this.destroy$)).subscribe(i=>{this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||i,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe((0,p.a)(this.destroy$)).subscribe(i=>{const u=this.isChecked;this.isChecked=this.nzValue===i,this.isNgModel&&u!==this.isChecked&&!1===this.isChecked&&this.onChange(!1),this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,p.a)(this.destroy$)).subscribe(i=>{i||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe((0,p.a)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}setupClickListener(){this.ngZone.runOutsideAngular(()=>{(0,E.w)(this.elementRef.nativeElement,"click").pipe((0,p.a)(this.destroy$)).subscribe(i=>{i.stopPropagation(),i.preventDefault(),!this.nzDisabled&&!this.isChecked&&this.ngZone.run(()=>{this.focus(),this.nzRadioService?.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})})}static#e=this.\u0275fac=function(u){return new(u||C)(l.GI1(l.WW2),l.GI1(l.GMv),l.GI1(l.kD9),l.GI1(T.Kk),l.GI1(I.yG,8),l.GI1($,8),l.GI1(N.WC,8))};static#n=this.\u0275cmp=l.In1({type:C,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(u,s){if(1&u&&l.CC$(A,7),2&u){let k;l.wto(k=l.Gqi())&&(s.inputElement=k.first)}},hostVars:18,hostBindings:function(u,s){2&u&&l.eAK("ant-radio-wrapper-in-form-item",!!s.nzFormStatusService)("ant-radio-wrapper",!s.isRadioButton)("ant-radio-button-wrapper",s.isRadioButton)("ant-radio-wrapper-checked",s.isChecked&&!s.isRadioButton)("ant-radio-button-wrapper-checked",s.isChecked&&s.isRadioButton)("ant-radio-wrapper-disabled",s.nzDisabled&&!s.isRadioButton)("ant-radio-button-wrapper-disabled",s.nzDisabled&&s.isRadioButton)("ant-radio-wrapper-rtl",!s.isRadioButton&&"rtl"===s.dir)("ant-radio-button-wrapper-rtl",s.isRadioButton&&"rtl"===s.dir)},inputs:{nzValue:"nzValue",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus",
1isRadioButton:[l.Wk5.HasDecoratorInputTransform,"nz-radio-button","isRadioButton",l.cZD]},exportAs:["nzRadio"],standalone:!0,features:[l.M5G([{provide:e.Y6,useExisting:(0,l.wd)(()=>C),multi:!0}]),l.QJr,l.UHJ],attrs:f,ngContentSelectors:_,decls:6,vars:24,consts:[["type","radio",3,"disabled","checked"],["inputElement",""]],template:function(u,s){1&u&&(l.kPM(),l.I0R(0,"span"),l.wR5(1,"input",0,1)(3,"span"),l.C$Y(),l.I0R(4,"span"),l._Xx(5),l.C$Y()),2&u&&(l.eAK("ant-radio",!s.isRadioButton)("ant-radio-checked",s.isChecked&&!s.isRadioButton)("ant-radio-disabled",s.nzDisabled&&!s.isRadioButton)("ant-radio-button",s.isRadioButton)("ant-radio-button-checked",s.isChecked&&s.isRadioButton)("ant-radio-button-disabled",s.nzDisabled&&s.isRadioButton),l.yG2(),l.eAK("ant-radio-input",!s.isRadioButton)("ant-radio-button-input",s.isRadioButton),l.E7m("disabled",s.nzDisabled)("checked",s.isChecked),l.e48("autofocus",s.nzAutoFocus?"autofocus":null)("name",s.name),l.yG2(2),l.eAK("ant-radio-inner",!s.isRadioButton)("ant-radio-button-inner",s.isRadioButton))},encapsulation:2,changeDetection:0})}return(0,O.UN)([(0,z.U7)()],C.prototype,"nzDisabled",void 0),(0,O.UN)([(0,z.U7)()],C.prototype,"nzAutoFocus",void 0),C})(),D=(()=>{class C{static#e=this.\u0275fac=function(u){return new(u||C)};static#n=this.\u0275mod=l.a4G({type:C});static#t=this.\u0275inj=l.s3X({})}return C})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.