diff --git a/next/39401.293c398fa8fa87d2.js b/next/39401.293c398fa8fa87d2.js deleted file mode 100644 index a988eb0b37a6..000000000000 --- a/next/39401.293c398fa8fa87d2.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[39401],{39401:(e,t,n)=>{n.r(t),n.d(t,{ExampleTuiFormatNumberModule:()=>w});var i=n(88692),a=n(69900),o=n(91795),r=n(64500),u=n(73588),m=n(84479),c=n(64537),l=n(44056),d=n(83074),p=n(62840),s=n(60404),f=n(43560),g=n(93525),h=n(38868),x=n(66596),Z=n(68874),b=n(10200),y=n(59544);const T=function(){return{decimalLimit:4,decimalSeparator:"."}},L=function(){return{decimalLimit:2,decimalSeparator:".",rounding:"ceil"}};let A=(()=>{var e;class t{}return(e=t).ɵfac=function(t){return new(t||e)},e.ɵcmp=c.Xpm({type:e,selectors:[["tui-format-number-example-1"]],decls:12,vars:19,template:function(e,t){1&e&&(c.TgZ(0,"p"),c._uU(1),c.ALo(2,"async"),c.ALo(3,"tuiFormatNumber"),c.qZA(),c.TgZ(4,"p"),c._uU(5),c.ALo(6,"async"),c.ALo(7,"tuiFormatNumber"),c.qZA(),c.TgZ(8,"p"),c._uU(9),c.ALo(10,"async"),c.ALo(11,"tuiFormatNumber"),c.qZA()),2&e&&(c.xp6(1),c.hij("Formatted number by default: ",c.lcZ(2,3,c.lcZ(3,5,10500.33)),""),c.xp6(4),c.hij(" Formatted number with custom params: ",c.lcZ(6,7,c.xi3(7,9,10500.33,c.DdM(17,T))),"\n"),c.xp6(4),c.hij(" Formatted number with rounding: ",c.lcZ(10,12,c.xi3(11,14,10500.334,c.DdM(18,L))),"\n"))},dependencies:[y.m,i.Ov],encapsulation:2,changeDetection:0}),t})();function M(e,t){if(1&e&&(c.TgZ(0,"p"),c._uU(1,"Pipe to format number values to separate thousands"),c.qZA(),c.TgZ(2,"p"),c._uU(3," Number formatting can be customized by using "),c.TgZ(4,"a",2),c._uU(5," TUI_NUMBER_FORMAT "),c.qZA()(),c.TgZ(6,"tui-doc-example",3),c._UZ(7,"tui-format-number-example-1"),c.qZA()),2&e){const e=c.oxw();c.xp6(6),c.Q6J("content",e.example1)}}function U(e,t){1&e&&(c._uU(0," Digits after comma (use "),c.TgZ(1,"code"),c._uU(2,"Infinity"),c.qZA(),c._uU(3," not to change) "))}function _(e,t){1&e&&c._uU(0," Symbol for separating fraction ")}const P=function(e,t){return{decimalLimit:e,decimalSeparator:t}};function V(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"p",4),c._uU(1),c.ALo(2,"tuiFormatNumber"),c.qZA(),c.TgZ(3,"tui-input-slider",5),c.NdJ("ngModelChange",(function(t){c.CHM(e);const n=c.oxw();return c.KtG(n.value=t)})),c.qZA(),c.TgZ(4,"tui-doc-documentation"),c.YNc(5,U,4,0,"ng-template",6),c.NdJ("documentationPropertyValueChange",(function(t){c.CHM(e);const n=c.oxw();return c.KtG(n.decimalLimit=t)})),c.YNc(6,_,1,0,"ng-template",7),c.NdJ("documentationPropertyValueChange",(function(t){c.CHM(e);const n=c.oxw();return c.KtG(n.decimalSeparator=t)})),c.qZA()}if(2&e){const e=c.oxw();c.xp6(1),c.hij(" Formatted number: ",c.xi3(2,9,e.value,c.WLB(12,P,e.decimalLimit,e.decimalSeparator))," "),c.xp6(2),c.Q6J("max",1e7)("quantum",.111)("tuiTextfieldLabelOutside",!0)("ngModel",e.value),c.xp6(2),c.Q6J("documentationPropertyValues",e.decimalLimitVariants)("documentationPropertyValue",e.decimalLimit),c.xp6(1),c.Q6J("documentationPropertyValues",e.decimalSeparatorVariants)("documentationPropertyValue",e.decimalSeparator)}}function N(e,t){if(1&e&&(c.TgZ(0,"ol",8)(1,"li")(2,"p"),c._uU(3," Import "),c.TgZ(4,"code"),c._uU(5,"TuiFormatNumberPipeModule"),c.qZA(),c._uU(6," into a module where you want to use the pipe "),c.qZA(),c._UZ(7,"tui-doc-code",9),c.qZA(),c.TgZ(8,"li")(9,"p"),c._uU(10,"Use pipe in template with function and its arguments:"),c.qZA(),c._UZ(11,"tui-doc-code",10),c.qZA()()),2&e){const e=c.oxw();c.xp6(7),c.Q6J("code",e.exampleModule),c.xp6(4),c.Q6J("code",e.exampleHtml)}}let q=(()=>{var e;class t{constructor(){this.exampleModule=n.e(59969).then(n.t.bind(n,59969,17)),this.exampleHtml=n.e(29178).then(n.t.bind(n,29178,17)),this.example1={TypeScript:n.e(46844).then(n.t.bind(n,46844,17)),HTML:n.e(48364).then(n.t.bind(n,48364,17))},this.value=100,this.decimalLimitVariants=[1/0,0,2,4],this.decimalLimit=this.decimalLimitVariants[0],this.decimalSeparatorVariants=[",","."],this.decimalSeparator=this.decimalSeparatorVariants[0]}}return(e=t).ɵfac=function(t){return new(t||e)},e.ɵcmp=c.Xpm({type:e,selectors:[["example-tui-format-number"]],decls:4,vars:0,consts:[["header","FormatNumber","package","CORE","type","pipes"],["pageTab",""],["fragment","number-format","routerLink","/utils/tokens","tuiLink",""],["id","base","heading","Basic",3,"content"],[1,"text","b-full-width"],["tuiTextfieldSize","m",1,"slider",3,"max","quantum","tuiTextfieldLabelOutside","ngModel","ngModelChange"],["documentationPropertyName","decimalLimit","documentationPropertyType","number",3,"documentationPropertyValues","documentationPropertyValue","documentationPropertyValueChange"],["documentationPropertyName","decimalSeparator","documentationPropertyType","TuiDecimalSymbol",3,"documentationPropertyValues","documentationPropertyValue","documentationPropertyValueChange"],[1,"b-demo-steps"],["filename","my.module.ts",3,"code"],["filename","my.component.html",3,"code"]],template:function(e,t){1&e&&(c.TgZ(0,"tui-doc-page",0),c.YNc(1,M,8,1,"ng-template",1),c.YNc(2,V,7,15,"ng-template",1),c.YNc(3,N,12,2,"ng-template",1),c.qZA())},dependencies:[l.h,a.JJ,a.On,d.c,p.z,s.B,f.q,g.n,h.f,x.V,o.rH,Z.x,b.s,A,y.m],styles:[".text[_ngcontent-%COMP%]{font-size:1.1875rem}.slider[_ngcontent-%COMP%]{margin-top:.75rem;width:9.375rem}"],changeDetection:0}),t})(),w=(()=>{var e;class t{}return(e=t).ɵfac=function(t){return new(t||e)},e.ɵmod=c.oAB({type:e}),e.ɵinj=c.cJS({imports:[u.TuiFormatNumberPipeModule,m.TuiInputSliderModule,a.UX,a.u5,i.ez,m.TuiRadioListModule,r.fV,u.TuiLinkModule,o.Bz.forChild((0,r.Ve)(q)),u.TuiTextfieldControllerModule]}),t})()}}]); \ No newline at end of file diff --git a/next/39401.3ef4acf02fcd2bae.js b/next/39401.3ef4acf02fcd2bae.js new file mode 100644 index 000000000000..d8c056f78ddc --- /dev/null +++ b/next/39401.3ef4acf02fcd2bae.js @@ -0,0 +1 @@ +(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[39401],{39401:(e,t,n)=>{n.r(t),n.d(t,{ExampleTuiFormatNumberModule:()=>w});var i=n(88692),a=n(69900),o=n(91795),r=n(64500),u=n(73588),m=n(84479),c=n(64537),l=n(44056),d=n(83074),p=n(62840),s=n(60404),f=n(43560),g=n(93525),h=n(38868),x=n(66596),Z=n(68874),b=n(10200),y=n(59544);const T=function(){return{decimalLimit:4,decimalSeparator:"."}},L=function(){return{decimalLimit:2,decimalSeparator:".",rounding:"ceil"}};let A=(()=>{var e;class t{}return(e=t).ɵfac=function(t){return new(t||e)},e.ɵcmp=c.Xpm({type:e,selectors:[["tui-format-number-example-1"]],decls:12,vars:19,template:function(e,t){1&e&&(c.TgZ(0,"p"),c._uU(1),c.ALo(2,"async"),c.ALo(3,"tuiFormatNumber"),c.qZA(),c.TgZ(4,"p"),c._uU(5),c.ALo(6,"async"),c.ALo(7,"tuiFormatNumber"),c.qZA(),c.TgZ(8,"p"),c._uU(9),c.ALo(10,"async"),c.ALo(11,"tuiFormatNumber"),c.qZA()),2&e&&(c.xp6(1),c.hij("Formatted number by default: ",c.lcZ(2,3,c.lcZ(3,5,10500.33)),""),c.xp6(4),c.hij(" Formatted number with custom params: ",c.lcZ(6,7,c.xi3(7,9,10500.33,c.DdM(17,T))),"\n"),c.xp6(4),c.hij(" Formatted number with rounding: ",c.lcZ(10,12,c.xi3(11,14,10500.334,c.DdM(18,L))),"\n"))},dependencies:[y.m,i.Ov],encapsulation:2,changeDetection:0}),t})();function M(e,t){if(1&e&&(c.TgZ(0,"p"),c._uU(1,"Pipe to format number values to separate thousands"),c.qZA(),c.TgZ(2,"p"),c._uU(3," Number formatting can be customized by using "),c.TgZ(4,"a",2),c._uU(5," TUI_NUMBER_FORMAT "),c.qZA()(),c.TgZ(6,"tui-doc-example",3),c._UZ(7,"tui-format-number-example-1"),c.qZA()),2&e){const e=c.oxw();c.xp6(6),c.Q6J("content",e.example1)}}function U(e,t){1&e&&(c._uU(0," Digits after comma (use "),c.TgZ(1,"code"),c._uU(2,"Infinity"),c.qZA(),c._uU(3," not to change) "))}function _(e,t){1&e&&c._uU(0," Symbol for separating fraction ")}const P=function(e,t){return{decimalLimit:e,decimalSeparator:t}};function V(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"p",4),c._uU(1),c.ALo(2,"async"),c.ALo(3,"tuiFormatNumber"),c.qZA(),c.TgZ(4,"tui-input-slider",5),c.NdJ("ngModelChange",(function(t){c.CHM(e);const n=c.oxw();return c.KtG(n.value=t)})),c.qZA(),c.TgZ(5,"tui-doc-documentation"),c.YNc(6,U,4,0,"ng-template",6),c.NdJ("documentationPropertyValueChange",(function(t){c.CHM(e);const n=c.oxw();return c.KtG(n.decimalLimit=t)})),c.YNc(7,_,1,0,"ng-template",7),c.NdJ("documentationPropertyValueChange",(function(t){c.CHM(e);const n=c.oxw();return c.KtG(n.decimalSeparator=t)})),c.qZA()}if(2&e){const e=c.oxw();c.xp6(1),c.hij(" Formatted number: ",c.lcZ(2,9,c.xi3(3,11,e.value,c.WLB(14,P,e.decimalLimit,e.decimalSeparator)))," "),c.xp6(3),c.Q6J("max",1e7)("quantum",.111)("tuiTextfieldLabelOutside",!0)("ngModel",e.value),c.xp6(2),c.Q6J("documentationPropertyValues",e.decimalLimitVariants)("documentationPropertyValue",e.decimalLimit),c.xp6(1),c.Q6J("documentationPropertyValues",e.decimalSeparatorVariants)("documentationPropertyValue",e.decimalSeparator)}}function N(e,t){if(1&e&&(c.TgZ(0,"ol",8)(1,"li")(2,"p"),c._uU(3," Import "),c.TgZ(4,"code"),c._uU(5,"TuiFormatNumberPipeModule"),c.qZA(),c._uU(6," into a module where you want to use the pipe "),c.qZA(),c._UZ(7,"tui-doc-code",9),c.qZA(),c.TgZ(8,"li")(9,"p"),c._uU(10,"Use pipe in template with function and its arguments:"),c.qZA(),c._UZ(11,"tui-doc-code",10),c.qZA()()),2&e){const e=c.oxw();c.xp6(7),c.Q6J("code",e.exampleModule),c.xp6(4),c.Q6J("code",e.exampleHtml)}}let q=(()=>{var e;class t{constructor(){this.exampleModule=n.e(59969).then(n.t.bind(n,59969,17)),this.exampleHtml=n.e(29178).then(n.t.bind(n,29178,17)),this.example1={TypeScript:n.e(46844).then(n.t.bind(n,46844,17)),HTML:n.e(48364).then(n.t.bind(n,48364,17))},this.value=100,this.decimalLimitVariants=[1/0,0,2,4],this.decimalLimit=this.decimalLimitVariants[0],this.decimalSeparatorVariants=[",","."],this.decimalSeparator=this.decimalSeparatorVariants[0]}}return(e=t).ɵfac=function(t){return new(t||e)},e.ɵcmp=c.Xpm({type:e,selectors:[["example-tui-format-number"]],decls:4,vars:0,consts:[["header","FormatNumber","package","CORE","type","pipes"],["pageTab",""],["fragment","number-format","routerLink","/utils/tokens","tuiLink",""],["id","base","heading","Basic",3,"content"],[1,"text","b-full-width"],["tuiTextfieldSize","m",1,"slider",3,"max","quantum","tuiTextfieldLabelOutside","ngModel","ngModelChange"],["documentationPropertyName","decimalLimit","documentationPropertyType","number",3,"documentationPropertyValues","documentationPropertyValue","documentationPropertyValueChange"],["documentationPropertyName","decimalSeparator","documentationPropertyType","TuiDecimalSymbol",3,"documentationPropertyValues","documentationPropertyValue","documentationPropertyValueChange"],[1,"b-demo-steps"],["filename","my.module.ts",3,"code"],["filename","my.component.html",3,"code"]],template:function(e,t){1&e&&(c.TgZ(0,"tui-doc-page",0),c.YNc(1,M,8,1,"ng-template",1),c.YNc(2,V,8,17,"ng-template",1),c.YNc(3,N,12,2,"ng-template",1),c.qZA())},dependencies:[l.h,a.JJ,a.On,d.c,p.z,s.B,f.q,g.n,h.f,x.V,o.rH,Z.x,b.s,A,y.m,i.Ov],styles:[".text[_ngcontent-%COMP%]{font-size:1.1875rem}.slider[_ngcontent-%COMP%]{margin-top:.75rem;width:9.375rem}"],changeDetection:0}),t})(),w=(()=>{var e;class t{}return(e=t).ɵfac=function(t){return new(t||e)},e.ɵmod=c.oAB({type:e}),e.ɵinj=c.cJS({imports:[u.TuiFormatNumberPipeModule,m.TuiInputSliderModule,a.UX,a.u5,i.ez,m.TuiRadioListModule,r.fV,u.TuiLinkModule,o.Bz.forChild((0,r.Ve)(q)),u.TuiTextfieldControllerModule]}),t})()}}]); \ No newline at end of file diff --git a/next/index.html b/next/index.html index fd73820376a4..d725f34c8cfd 100644 --- a/next/index.html +++ b/next/index.html @@ -49,6 +49,6 @@