PageSourceSearch

https://preview-9270-ng-zorro-antd.surge.sh/chunk-SZEKHW3Z.js

js preview-9270-ng-zorro-antd.surge.sh collected 2026-10-03 14:58:58 UTC 32,061 bytes, 15 lines download raw bytes

1import{a as ue,c as ce}from"./chunk-HYD7SKN3.js";import{a as de,b as ze}from"./chunk-T67I65N5.js";import"./chunk-34E445TD.js";import{a as ae,b as oe,c as re,d as le,e as pe,f as se}from"./chunk-DTZUD37P.js";import{a as f,g as j,h as J,m as X,n as Y}from"./chunk-4LWRTZ4J.js";import"./chunk-HECQD5M5.js";import"./chunk-WRS55NNU.js";import{Bc as Q,Fc as N,Hd as W,Jc as v,Md as q,Sd as F,Td as P,Ud as me,Wc as I,Wd as K,qb as Z,vc as V}from"./chunk-FE3MHUBC.js";import{Ac as x,Ec as b,Fc as D,Gc as B,Pc as _,Uc as s,Vc as S,Wc as g,Xb as a,Xc as U,Yb as n,Yc as ie,Zb as t,_b as o,eb as ne,ic as y,kb as i,oc as L,pc as O,qa as d,qc as R,ra as z,vc as G,wb as u,zc as e}from"./chunk-OQ4XWHPB.js";import"./chunk-JNGVGNCT.js";var $=()=>[7,8,2,3],k=class p{static \u0275fac=function(m){return new(m||p)};static \u0275cmp=u({type:p,selectors:[["nz-demo-pipes-aggregate"]],decls:13,vars:25,consts:[[3,"nzGutter"],[3,"nzSpan"],["nzTitle","Max [7, 8, 2, 3]",3,"nzValue"],["nzTitle","Min [7, 8, 2, 3]",3,"nzValue"],["nzTitle","Sum [7, 8, 2, 3]",3,"nzValue"],["nzTitle","Avg [7, 8, 2, 3]",3,"nzValue"]],template:function(m,r){m&1&&(n(0,"nz-row",0)(1,"nz-col",1),o(2,"nz-statistic",2),s(3,"nzAggregate"),t(),n(4,"nz-col",1),o(5,"nz-statistic",3),s(6,"nzAggregate"),t(),n(7,"nz-col",1),o(8,"nz-statistic",4),s(9,"nzAggregate"),t(),n(10,"nz-col",1),o(11,"nz-statistic",5),s(12,"nzAggregate"),t()()),m&2&&(a("nzGutter",16),i(),a("nzSpan",6),i(),a("nzValue",g(3,9,_(21,$),"max")),i(2),a("nzSpan",6),i(),a("nzValue",g(6,12,_(22,$),"min")),i(2),a("nzSpan",6),i(),a("nzValue",g(9,15,_(23,$),"sum")),i(2),a("nzSpan",6),i(),a("nzValue",g(12,18,_(24,$),"avg")))},dependencies:[me,P,F,ce,ue,ae],encapsulation:2})};var T=class p{static \u0275fac=function(m){return new(m||p)};static \u0275cmp=u({type:p,selectors:[["nz-demo-pipes-bytes"]],decls:22,vars:26,template:function(m,r){m&1&&(n(0,"ul")(1,"li"),e(2),s(3,"nzBytes"),t(),n(4,"li"),e(5),s(6,"nzBytes"),t(),n(7,"li"),e(8),s(9,"nzBytes"),t(),n(10,"li"),e(11),s(12,"nzBytes"),t(),n(13,"li"),e(14),s(15,"nzBytes"),t(),n(16,"li"),e(17),s(18,"nzBytes"),t(),n(19,"li"),e(20),s(21,"nzBytes"),t()()),m&2&&(i(2),x(S(3,7,200)),i(3),x(S(6,9,1024)),i(3),x(S(9,11,1048576)),i(3),x(U(12,13,1024,0,"KB")),i(3),x(S(15,17,1073741824)),i(3),x(S(18,19,1099511627776)),i(3),x(ie(21,21,1073741824,0,"B","MB")))},dependencies:[oe],encapsulation:2})};var w=class p{radiusValue=0;static \u0275fac=function(m){return new(m||p)};static \u0275cmp=u({type:p,selectors:[["nz-demo-pipes-css-unit"]],decls:11,vars:17,consts:[[3,"ngModelChange","ngModel","nzMax","nzMin"],[1,"wrap"],[1,"box"]],template:function(m,r){m&1&&(n(0,"nz-slider",0),B("ngModelChange",function(c){return D(r.radiusValue,c)||(r.radiusValue=c),c}),t(),n(1,"div",1)(2,"div",2),s(3,"nzToCssUnit"),e(4,"Default"),t(),n(5,"div",2),s(6,"nzToCssUnit"),e(7,"%"),t(),n(8,"div",2),s(9,"nzToCssUnit"),e(10,"rem"),t()()),m&2&&(b("ngModel",r.radiusValue),a("nzMax",100)("nzMin",0),i(2),G("border-radius",S(3,9,r.radiusValue)),i(3),G("border-radius",g(6,11,r.radiusValue,"%")),i(3),G("border-radius",g(9,14,r.radiusValue,"rem")))},dependencies:[I,N,v,ze,de,re],styles:[".wrap[_ngcontent-%COMP%]{display:flex}.box[_ngcontent-%COMP%]{margin-top:20px;margin-right:20px;text-align:center;line-height:50px;color:#fff;width:50px;height:50px;background:#4183c4}"]})};var A=class p{str="Ant Design, a design language for background applications";static \u0275fac=function(m){return new(m||p)};static \u0275cmp=u({type:p,selectors:[["nz-demo-pipes-ellipsis"]],decls:5,vars:6,consts:[["type","text","nz-input","",3,"ngModelChange","ngModel"]],template:function(m,r){m&1&&(n(0,"input",0),B("ngModelChange",function(c){return D(r.str,c)||(r.str=c),c}),t(),o(1,"br"),n(2,"p"),e(3),s(4,"nzEllipsis"),t()),m&2&&(b("ngModel",r.str),i(3),x(U(4,2,r.str,36,"...")))},dependencies:[I,Q,N,v,q,W,le],styles:["p[_ngcontent-%COMP%]{padding:8px 12px}"]})};var H=class p{html="<span>I am <code>innerHTML</code></span>";static \u0275fac=function(m){return new(m||p)};static \u0275cmp=u({type:p,selectors:[["nz-demo-pipes-sanitizer"]],decls:2,vars:4,consts:[[3,"innerHTML"]],template:function(m,r){m&1&&(o(0,"div",0),s(1,"nzSanitizer")),m&2&&a("innerHTML",g(1,1,r.html,"html"),ne)},dependencies:[pe],encapsulation:2})};var M=class p{str=" Ant Design ";static \u0275fac=function(m){return new(m||p)};static \u0275cmp=u({type:p,selectors:[["nz-demo-pipes-trim"]],decls:9,vars:5,consts:[["type","text","nz-input","",3,"ngModelChange","ngModel"]],template:function(m,r){m&1&&(n(0,"input",0),B("ngModelChange",function(c){return D(r.str,c)||
1(r.str=c),c}),t(),o(1,"br"),n(2,"div")(3,"pre"),e(4),t()(),n(5,"div")(6,"pre"),e(7),s(8,"nzTrim"),t()()),m&2&&(b("ngModel",r.str),i(4),x(r.str),i(3),x(S(8,3,r.str)))},dependencies:[I,Q,N,v,q,W,se],styles:["div[_ngcontent-%COMP%]{padding:8px 12px}pre[_ngcontent-%COMP%]{display:inline-block;background:#eee}"]})};var ee=class p{expanded=!1;codeBoxes;goLink(l){window&&(window.location.hash=l)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(l=>l.expandCode(this.expanded))}static \u0275fac=function(m){return new(m||p)};static \u0275cmp=u({type:p,selectors:[["nz-demo-pipes"]],viewQuery:function(m,r){if(m&1&&L(f,5),m&2){let E;O(E=R())&&(r.codeBoxes=E)}},decls:434,vars:34,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-pipes-demo-bytes","nzTitle","nzBytes"],["nzHref","#components-pipes-demo-css-unit","nzTitle","nzToCssUnit"],["nzHref","#components-pipes-demo-ellipsis","nzTitle","nzEllipsis"],["nzHref","#components-pipes-demo-aggregate","nzTitle","nzAggregate"],["nzHref","#components-pipes-demo-sanitizer","nzTitle","nzSanitizer"],["nzHref","#components-pipes-demo-trim","nzTitle","nzTrim"],["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/pipes/doc/index.zh-CN.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nzType","edit"],["name","pipes","description","\u5E38\u7528 Pipes \u96C6\u5408\u3002","language","zh"],[2,"border-color","#faad14"],["id","\u4F55\u65F6\u4F7F\u7528"],["onclick","window.location.hash = '\u4F55\u65F6\u4F7F\u7528'",1,"anchor"],["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","nzBytes","nzSelector","nz-demo-pipes-bytes","nzGenerateCommand","ng g ng-zorro-antd:pipes-bytes <name>","nzComponentName","NzDemoPipesBytesComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","nzToCssUnit","nzSelector","nz-demo-pipes-css-unit","nzGenerateCommand","ng g ng-zorro-antd:pipes-css-unit <name>","nzComponentName","NzDemoPipesCssUnitComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[1,"language-html"],[1,"token","tag"],[1,"token","punctuation"],[1,"token","attr-name"],[1,"token","attr-value"],[1,"token","punctuation","attr-equals"],["nzTitle","nzEllipsis","nzSelector","nz-demo-pipes-ellipsis","nzGenerateCommand","ng g ng-zorro-antd:pipes-ellipsis <name>","nzComponentName","NzDemoPipesEllipsisComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","nzAggregate","nzSelector","nz-demo-pipes-aggregate","nzGenerateCommand","ng g ng-zorro-antd:pipes-aggregate <name>","nzComponentName","NzDemoPipesAggregateComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","nzSanitizer","nzSelector","nz-demo-pipes-sanitizer","nzGenerateCommand","ng g ng-zorro-antd:pipes-sanitizer <name>","nzComponentName","NzDemoPipesSanitizerComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","nzTrim","nzSelector","nz-demo-pipes-trim","nzGenerateCommand","ng g ng-zorro-antd:pipes-trim <name>","nzComponentName","NzDemoPipesTrimComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nzbytes"],["onclick","window.location.hash = 'nzbytes'",1,"anchor"],["id","nztocssunit"],["onclick","window.location.hash = 'nztocssunit'",1,"anchor"],["id","nzellipsis"],["onclick","window.location.hash = 'nzellipsis'",1,"anchor"],["id","nzaggregate"],["onclick","window.location.hash = 'nzaggregate'",1,"anchor"],["id","nzsanitizer"],["onclick","window.location.hash = 'nzsanitizer'",1,"anchor"]],template:function(m,r){m&1&&(n(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),y("nzClick",function(c){return r.goLink(c)}),o(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8),t()(),n(10,"section",9)(11,"h1"),e(12,"Pipes"),o(13,"span",10)(14,"span",11),n(15,"a",12),o(16,"nz-icon",13),t()(),o(17,"component-meta",14),n(18,"blockquote",15)(19,"p"),e(20,"NG-ZORRO \u5B9E\u9A8C\u6027\u529F\u80FD\u662F\u6307\u5DF2\u53D1\u5E03\u4F46\u4E0D\u7A33\u5B9A\u6216\u8005\u8FD8\u672A\u51C6\u5907\u597D\u7528\u4E8E\u751F\u4EA7\u73AF\u5883\u7684\u529F\u80FD\u3002"),t(),n(21,"p"),e(22,"\u5F00\u53D1\u8005\u6216\u7528\u6237\u53EF\u4EE5\u9009\u62E9\u5728\u6B63\u5F0F\u53D1\u5E03\u524D\u4F7F\u7528\u8FD9\u4E9B\u529F\u80FD\uFF0C\u4F46\u662F\u6BCF\u6B21\u53D1\u5E03\u7248\u672C\u65F6\u90FD\u53EF\u80FD\u5B58\u5728 "),n(23,"strong"),e(24,"breaking changes"),t(),e(25,"\u3002"),t()(),n(26,"section",9),z(),n(27,"h2",16)(28,"span"),e(29,"\u4F55\u65F6\u4F7F\u7528"),t(),n(30,"a",17),e(31,"#"),t()(),n(32,"p"),e(33,"\u5F15\u5165 Pipe \u540E\uFF0C\u50CF angular \u7684\u9ED8\u8BA4 Pipe \u4E00\u6837\u4F7F\u7528"),t(),d(),t(),n(34,"h2")(35,"span"),e(36,"\u4EE3\u7801\u6F14\u793A"),t(),n(37,"nz-icon",18),y("click",function(){return r.expandAllCode()}),t()()(),n(38,"div",19)(39,"div",20)(40,"nz-code-box",21),o(41,"nz-demo-pipes-bytes",22),n(42,"div",23),z(),n(43,"p"),e(44,"\u5B58\u50A8\u5355\u4F4D\u7684\u6362\u7B97\uFF0C\u589E\u52A0\u53EF\u8BFB\u6027"),t(),d(),t()(),n(45,"nz-code-box",24),o(46,"nz-demo-pipes-css-unit",22),n(47,"div",23),z(),n(48,"p"),e(49,"Css \u5355\u4F4D"),t(),n(50,"p"),e(51,"\u63D0\u793A\uFF1A\u5982\u679C\u6761\u4EF6\u5141\u8BB8\uFF0C\u6211\u4EEC\u66F4\u63A8\u8350\u4F7F\u7528 Angular \u5185\u7F6E\u8BED\u6CD5\uFF0C\u4F8B\u5982\uFF1A"),t(),n(52,"pre")(53,"code",25)(54,"span",26)(55,"span",26)(56,"span",27),e(57,"<"),t(),e(58,"div"),t(),e(59," "),n(60,"span",28),e(61,"[style.border-radius.px]"),t(),n(62,"span",29)(63,"span",30),e(64,"="),t(),n(65,"span",27),e(66,'"'),t(),e(67,"1"),n(68,"span",27),e(69,'"'),t()(),n(70,"span",27),e(71,">"),t()(),e(72,"px"),n(73,"span",26)(74,"span",26)(75,"span",27),e(76,"</"),t(),e(77,"div"),t(),n(78,"span",27),e(79,">"),t()(),e(80,`
2`),n(81,"span",26)(82,"span",26)(83,"span",27),e(84,"<"),t(),e(85,"div"),t(),e(86," "),n(87,"span",28),e(88,"[style.border-radius.%]"),t(),n(89,"span",29)(90,"span",30),e(91,"="),t(),n(92,"span",27),e(93,'"'),t(),e(94,"1"),n(95,"span",27),e(96,'"'),t()(),n(97,"span",27),e(98,">"),t()(),e(99,"%"),n(100,"span",26)(101,"span",26)(102,"span",27),e(103,"</"),t(),e(104,"div"),t(),n(105,"span",27),e(106,">"),t()(),e(107,`
3`),n(108,"span",26)(109,"span",26)(110,"span",27),e(111,"<"),t(),e(112,"div"),t(),e(113," "),n(114,"span",28),e(115,"[style.border-radius.rem]"),t(),n(116,"span",29)(117,"span",30),e(118,"="),t(),n(119,"span",27),e(120,'"'),t(),e(121,"1"),n(122,"span",27),e(123,'"'),t()(),n(124,"span",27),e(125,">"),t()(),e(126,"rem"),n(127,"span",26)(128,"span",26)(129,"span",27),e(130,"</"),t(),e(131,"div"),t(),n(132,"span",27),e(133,">"),t()(),e(134,`
4`),t()(),d(),t()(),n(135,"nz-code-box",31),o(136,"nz-demo-pipes-ellipsis",22),n(137,"div",23),z(),n(138,"p"),e(139,"\u622A\u65AD\u5B57\u7B26\u4E32\uFF0C\u7528\u6307\u5B9A\u7684\u5B57\u7B26\u4E32\u7ED3\u5C3E"),t(),d(),t()(),n(140,"nz-code-box",32),o(141,"nz-demo-pipes-aggregate",22),n(142,"div",23),z(),n(143,"p"),e(144,"\u6570\u7EC4\u7684Sum\u3001Min\u3001Max\u3001Average\u7B49\u805A\u5408\u64CD\u4F5C"),t(),d(),t()(),n(145,"nz-code-box",33),o(146,"nz-demo-pipes-sanitizer",22),n(147,"div",23),z(),n(148,"p"),e(149,"DomSanitizer \u7684 Pipe \u5B9E\u73B0"),t(),n(150,"pre")(151,"code",25)(152,"span",26)(153,"span",26)(154,"span",27),e(155,"<"),t(),e(156,"div"),t(),e(157," "),n(1
458,"span",28),e(159,"[innerHTML]"),t(),n(160,"span",29)(161,"span",30),e(162,"="),t(),n(163,"span",27),e(164,'"'),t(),e(165,"html | nzSanitizer: 'html'"),n(166,"span",27),e(167,'"'),t()(),n(168,"span",27),e(169,">"),t()(),n(170,"span",26)(171,"span",26)(172,"span",27),e(173,"</"),t(),e(174,"div"),t(),n(175,"span",27),e(176,">"),t()(),e(177,`
5`),n(178,"span",26)(179,"span",26)(180,"span",27),e(181,"<"),t(),e(182,"div"),t(),e(183," "),n(184,"span",28),e(185,"[style]"),t(),n(186,"span",29)(187,"span",30),e(188,"="),t(),n(189,"span",27),e(190,'"'),t(),e(191,"style | nzSanitizer: 'style'"),n(192,"span",27),e(193,'"'),t()(),n(194,"span",27),e(195,">"),t()(),n(196,"span",26)(197,"span",26)(198,"span",27),e(199,"</"),t(),e(200,"div"),t(),n(201,"span",27),e(202,">"),t()(),e(203,`
6`),n(204,"span",26)(205,"span",26)(206,"span",27),e(207,"<"),t(),e(208,"img"),t(),e(209," "),n(210,"span",28),e(211,"[src]"),t(),n(212,"span",29)(213,"span",30),e(214,"="),t(),n(215,"span",27),e(216,'"'),t(),e(217,"url | nzSanitizer: 'url'"),n(218,"span",27),e(219,'"'),t()(),e(220," "),n(221,"span",27),e(222,"/>"),t()(),e(223,`
7`),n(224,"span",26)(225,"span",26)(226,"span",27),e(227,"<"),t(),e(228,"iframe"),t(),e(229," "),n(230,"span",28),e(231,"[src]"),t(),n(232,"span",29)(233,"span",30),e(234,"="),t(),n(235,"span",27),e(236,'"'),t(),e(237,"resourceUrl | nzSanitizer: 'resourceUrl'"),n(238,"span",27),e(239,'"'),t()(),n(240,"span",27),e(241,">"),t()(),n(242,"span",26)(243,"span",26)(244,"span",27),e(245,"</"),t(),e(246,"iframe"),t(),n(247,"span",27),e(248,">"),t()(),e(249,`
8`),t()(),d(),t()(),n(250,"nz-code-box",34),o(251,"nz-demo-pipes-trim",22),n(252,"div",23),z(),n(253,"p"),e(254,"\u53BB\u9664\u5B57\u7B26\u4E32\u5DE6\u53F3\u7A7A\u5B57\u7B26\u4E32"),t(),d(),t()()()(),n(255,"section",35),z(),n(256,"h2",36)(257,"span"),e(258,"API"),t(),n(259,"a",37),e(260,"#"),t()(),n(261,"h3",38)(262,"span"),e(263,"nzBytes"),t(),n(264,"a",39),e(265,"#"),t()(),n(266,"table")(267,"thead")(268,"tr")(269,"th"),e(270,"\u53C2\u6570"),t(),n(271,"th"),e(272,"\u8BF4\u660E"),t(),n(273,"th"),e(274,"\u7C7B\u578B"),t(),n(275,"th"),e(276,"\u9ED8\u8BA4\u503C"),t()()(),n(277,"tbody")(278,"tr")(279,"td")(280,"code"),e(281,"decimal"),t()(),n(282,"td"),e(283,"\u4FDD\u7559\u5C0F\u6570\u4F4D"),t(),n(284,"td")(285,"code"),e(286,"number"),t()(),n(287,"td"),e(288,"'0'"),t()(),n(289,"tr")(290,"td")(291,"code"),e(292,"from"),t()(),n(293,"td"),e(294,"\u5F53\u524D\u503C\u7684\u5355\u4F4D"),t(),n(295,"td")(296,"code"),e(297,"string"),t()(),n(298,"td"),e(299,"'B'"),t()(),n(300,"tr")(301,"td")(302,"code"),e(303,"to"),t()(),n(304,"td"),e(305,"\u8F6C\u6362\u5230\u76EE\u6807\u503C\u7684\u5355\u4F4D"),t(),n(306,"td")(307,"code"),e(308,"string"),t()(),n(309,"td"),e(310,"''"),t()()()(),n(311,"h3",40)(312,"span"),e(313,"nzToCssUnit"),t(),n(314,"a",41),e(315,"#"),t()(),n(316,"table")(317,"thead")(318,"tr")(319,"th"),e(320,"\u53C2\u6570"),t(),n(321,"th"),e(322,"\u8BF4\u660E"),t(),n(323,"th"),e(324,"\u7C7B\u578B"),t(),n(325,"th"),e(326,"\u9ED8\u8BA4\u503C"),t()()(),n(327,"tbody")(328,"tr")(329,"td")(330,"code"),e(331,"defaultUnit"),t()(),n(332,"td"),e(333,"\u9ED8\u8BA4\u5355\u4F4D"),t(),n(334,"td")(335,"code"),e(336,"string"),t()(),n(337,"td"),e(338,"'px'"),t()()()(),n(339,"h3",42)(340,"span"),e(341,"nzEllipsis"),t(),n(342,"a",43),e(343,"#"),t()(),n(344,"table")(345,"thead")(346,"tr")(347,"th"),e(348,"\u53C2\u6570"),t(),n(349,"th"),e(350,"\u8BF4\u660E"),t(),n(351,"th"),e(352,"\u7C7B\u578B"),t(),n(353,"th"),e(354,"\u9ED8\u8BA4\u503C"),t()()(),n(355,"tbody")(356,"tr")(357,"td")(358,"code"),e(359,"length"),t()(),n(360,"td"),e(361,"\u622A\u53D6\u957F\u5EA6"),t(),n(362,"td")(363,"code"),e(364,"number"),t()(),n(365,"td"),e(366,"''"),t()(),n(367,"tr")(368,"td")(369,"code"),e(370,"suffix"),t()(),n(371,"td"),e(372,"\u66FF\u6362\u5B57\u7B26"),t(),n(373,"td")(374,"code"),e(375,"string"),t()(),n(376,"td"),e(377,"''"),t()()()(),n(378,"h3",44)(379,"span"),e(380,"nzAggregate"),t(),n(381,"a",45),e(382,"#"),t()(),n(383,"table")(384,"thead")(385,"tr")(386,"th"),e(387,"\u53C2\u6570"),t(),n(388,"th"),e(389,"\u8BF4\u660E"),t(),n(390,"th"),e(391,"\u7C7B\u578B"),t(),n(392,"th"),e(393,"\u9ED8\u8BA4\u503C"),t()()(),n(394,"tbody")(395,"tr")(396,"td")(397,"code"),e(398,"method"),t()(),n(399,"td"),e(400,"\u805A\u5408\u65B9\u5F0F"),t(),n(401,"td")(402,"code"),e(403,"'sum' | 'max' | 'min' | 'avg'"),t()(),n(404,"td"),e(405,"''"),t()()()(),n(406,"h3",46)(407,"span"),e(408,"nzSanitizer"),t(),n(409,"a",47),e(410,"#"),t()(),n(411,"table")(412,"thead")(413,"tr")(414,"th"),e(415,"\u53C2\u6570"),t(),n(416,"th"),e(417,"\u8BF4\u660E"),t(),n(418,"th"),e(419,"\u7C7B\u578B"),t(),n(420,"th"),e(421,"\u9ED8\u8BA4\u503C"),t()()(),n(422,"tbody")(423,"tr")(424,"td")(425,"code"),e(426,"type"),t()(),n(427,"td"),e(428,"sanitizer \u7C7B\u578B"),t(),n(429,"td")(430,"code"),e(431,"string"),t()(),n(432,"td"),e(433,"'html'"),t()()()(),d(),t()()),m&2&&(i(),a("nzOffsetTop",16),i(),a("nzAffix",!1),i(36),a("nzGutter",8),i(),a("nzSpan",24),i(),a("nzId","components-pipes-demo-bytes")("nzLink","components-pipes-demo-bytes")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pipes/demo/bytes.md"),i(5),a("nzId","components-pipes-demo-css-unit")("nzLink","components-pipes-demo-css-unit")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pipes/demo/css-unit.md"),i(90),a("nzId","components-pipes-demo-ellipsis")("nzLink","components-pipes-demo-ellipsis")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pipes/demo/ellipsis.md"),i(5),a("nzId","components-pipes-demo-aggregate")("nzLink","components-pipes-demo-aggregate")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pipes/demo/aggregate.md"),i(5),a("nzId","components-pipes-demo-sanitizer")("nzLink","components-pipes-demo-sanitizer")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pipes/demo/sanitizer.md"),i(105),a("nzId","components-pipes-demo-trim")("nzLink","components-pipes-demo-trim")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pipes/demo/trim.md"))},dependencies:[Y,f,X,j,J,K,P,F,V,Z,k,T,w,A,H,M],encapsulation:2})};var te=class p{expanded=!1;codeBoxes;goLink(l){window&&(window.location.hash=l)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEac
8h(l=>l.expandCode(this.expanded))}static \u0275fac=function(m){return new(m||p)};static \u0275cmp=u({type:p,selectors:[["nz-demo-pipes"]],viewQuery:function(m,r){if(m&1&&L(f,5),m&2){let E;O(E=R())&&(r.codeBoxes=E)}},decls:434,vars:34,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-pipes-demo-bytes","nzTitle","nzBytes"],["nzHref","#components-pipes-demo-css-unit","nzTitle","nzToCssUnit"],["nzHref","#components-pipes-demo-ellipsis","nzTitle","nzEllipsis"],["nzHref","#components-pipes-demo-aggregate","nzTitle","nzAggregate"],["nzHref","#components-pipes-demo-sanitizer","nzTitle","nzSanitizer"],["nzHref","#components-pipes-demo-trim","nzTitle","nzTrim"],["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/pipes/doc/index.en-US.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nzType","edit"],["name","pipes","description","Common Pipe Collections.","language","en"],[2,"border-color","#faad14"],["id","when_to_use"],["onclick","window.location.hash = 'when_to_use'",1,"anchor"],["nzType","appstore","nz-tooltip","","nzTooltipTitle","Expand All Code",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan"],["nzTitle","nzBytes","nzSelector","nz-demo-pipes-bytes","nzGenerateCommand","ng g ng-zorro-antd:pipes-bytes <name>","nzComponentName","NzDemoPipesBytesComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","nzToCssUnit","nzSelector","nz-demo-pipes-css-unit","nzGenerateCommand","ng g ng-zorro-antd:pipes-css-unit <name>","nzComponentName","NzDemoPipesCssUnitComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[1,"language-html"],[1,"token","tag"],[1,"token","punctuation"],[1,"token","attr-name"],[1,"token","attr-value"],[1,"token","punctuation","attr-equals"],["nzTitle","nzEllipsis","nzSelector","nz-demo-pipes-ellipsis","nzGenerateCommand","ng g ng-zorro-antd:pipes-ellipsis <name>","nzComponentName","NzDemoPipesEllipsisComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","nzAggregate","nzSelector","nz-demo-pipes-aggregate","nzGenerateCommand","ng g ng-zorro-antd:pipes-aggregate <name>","nzComponentName","NzDemoPipesAggregateComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","nzSanitizer","nzSelector","nz-demo-pipes-sanitizer","nzGenerateCommand","ng g ng-zorro-antd:pipes-sanitizer <name>","nzComponentName","NzDemoPipesSanitizerComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],["nzTitle","nzTrim","nzSelector","nz-demo-pipes-trim","nzGenerateCommand","ng g ng-zorro-antd:pipes-trim <name>","nzComponentName","NzDemoPipesTrimComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframe","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nzbytes"],["onclick","window.location.hash = 'nzbytes'",1,"anchor"],["id","nztocssunit"],["onclick","window.location.hash = 'nztocssunit'",1,"anchor"],["id","nzellipsis"],["onclick","window.location.hash = 'nzellipsis'",1,"anchor"],["id","nzaggregate"],["onclick","window.location.hash = 'nzaggregate'",1,"anchor"],["id","nzsanitizer"],["onclick","window.location.hash = 'nzsanitizer'",1,"anchor"]],template:function(m,r){m&1&&(n(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),y("nzClick",function(c){return r.goLink(c)}),o(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8),t()(),n(10,"section",9)(11,"h1"),e(12,"Pipes"),o(13,"span",10)(14,"span",11),n(15,"a",12),o(16,"nz-icon",13),t()(),o(17,"component-meta",14),n(18,"blockquote",15)(19,"p"),e(20,"NG-ZORRO experiments are features that are released but not yet considered stable or production ready"),t(),n(21,"p"),e(22,"Developers and users can opt in into these features before they are fully released. But "),n(23,"strong"),e(24,"breaking changes"),t(),e(25," may occur with any release."),t()(),n(26,"section",9),z(),n(27,"h2",16)(28,"span"),e(29,"When To Use"),t(),n(30,"a",17),e(31,"#"),t()(),n(32,"p"),e(33,"After importing Pipe, use it like Angular's built-in Pipe"),t(),d(),t(),n(34,"h2")(35,"span"),e(36,"Examples"),t(),n(37,"nz-icon",18),y("click",function(){return r.expandAllCode()}),t()()(),n(38,"div",19)(39,"div",20)(40,"nz-code-box",21),o(41,"nz-demo-pipes-bytes",22),n(42,"div",23),z(),n(43,"p"),e(44,"Conversion of storage units to increase readability"),t(),d(),t()(),n(45,"nz-code-box",24),o(46,"nz-demo-pipes-css-unit",22),n(47,"div",23),z(),n(48,"p"),e(49,"Css unit"),t(),n(50,"p"),e(51,"Tip: If possible, we prefer to use Angular's built-in syntax, for example:"),t(),n(52,"pre")(53,"code",25)(54,"span",26)(55,"span",26)(56,"span",27),e(57,"<"),t(),e(58,"div"),t(),e(59," "),n(60,"span",28),e(61,"[style.border-radius.px]"),t(),n(62,"span",29)(63,"span",30),e(64,"="),t(),n(65,"span",27),e(66,'"'),t(),e(67,"1"),n(68,"span",27),e(69,'"'),t()(),n(70,"span",27),e(71,">"),t()(),e(72,"px"),n(73,"span",26)(74,"span",26)(75,"span",27),e(76,"</"),t(),e(77,"div"),t(),n(78,"span",27),e(79,">"),t()(),e(80,`
9`),n(81,"span",26)(82,"span",26)(83,"span",27),e(84,"<"),t(),e(85,"div"),t(),e(86," "),n(87,"span",28),e(88,"[style.border-radius.%]"),t(),n(89,"span",29)(90,"span",30),e(91,"="),t(),n(92,"span",27),e(93,'"'),t(),e(94,"1"),n(95,"span",27),e(96,'"'),t()(),n(97,"span",27),e(98,">"),t()(),e(99,"%"),n(100,"span",26)(101,"span",26)(102,"span",27),e(103,"</"),t(),e(104,"div"),t(),n(105,"span",27),e(106,">"),t()(),e(107,`
10`),n(108,"span",26)(109,"span",26)(110,"span",27),e(111,"<"),t(),e(112,"div"),t(),e(113," "),n(114,"span",28),e(115,"[style.border-radius.rem]"),t(),n(116,"span",29)(117,"span",30),e(118,"="),t(),n(119,"span",27),e(120,'"'),t(),e(121,"1"),n(122,"span",27),e(123,'"'),t()(),n(124,"span",27),e(125,">"),t()(),e(126,"rem"),n(127,"span",26)(128,"span",26)(129,"span",27),e(130,"</"),t(),e(131,"div"),t(),n(132,"span",27),e(133,">"),t()(),e(134,`
11`),t()(),d(),t()(),n(135,"nz-code-box",31),o(136,"nz-demo-pipes-ellipsis",22),n(137,"div",23),z(),n(138,"p"),e(139,"Truncate the string, ending with the specified string"),t(),d(),t()(),n(140,"nz-code-box",32),o(141,"nz-demo-pipes-aggregate",22),n(142,"div",23),z(),n(143,"p"),e(144,"Sum, Min, Max, Average and other operations on arrays"),t(),d(),t()(),n(145,"nz-code-box",33),o(146,"nz-demo-pipes-sanitizer",22),n(147,"div",23),z(),n(148,"p"),e(149,"Pipe implementation of DomSanitizer"),t(),n(150,"pre")(151,"code",25)(152,"span",26)(153,"span",26)(154,"span",27),e(155,"<"),t(),e(156,"div"),t(),e(157," "),n(1
1158,"span",28),e(159,"[innerHTML]"),t(),n(160,"span",29)(161,"span",30),e(162,"="),t(),n(163,"span",27),e(164,'"'),t(),e(165,"html | nzSanitizer: 'html'"),n(166,"span",27),e(167,'"'),t()(),n(168,"span",27),e(169,">"),t()(),n(170,"span",26)(171,"span",26)(172,"span",27),e(173,"</"),t(),e(174,"div"),t(),n(175,"span",27),e(176,">"),t()(),e(177,`
12`),n(178,"span",26)(179,"span",26)(180,"span",27),e(181,"<"),t(),e(182,"div"),t(),e(183," "),n(184,"span",28),e(185,"[style]"),t(),n(186,"span",29)(187,"span",30),e(188,"="),t(),n(189,"span",27),e(190,'"'),t(),e(191,"style | nzSanitizer: 'style'"),n(192,"span",27),e(193,'"'),t()(),n(194,"span",27),e(195,">"),t()(),n(196,"span",26)(197,"span",26)(198,"span",27),e(199,"</"),t(),e(200,"div"),t(),n(201,"span",27),e(202,">"),t()(),e(203,`
13`),n(204,"span",26)(205,"span",26)(206,"span",27),e(207,"<"),t(),e(208,"img"),t(),e(209," "),n(210,"span",28),e(211,"[src]"),t(),n(212,"span",29)(213,"span",30),e(214,"="),t(),n(215,"span",27),e(216,'"'),t(),e(217,"url | nzSanitizer: 'url'"),n(218,"span",27),e(219,'"'),t()(),e(220," "),n(221,"span",27),e(222,"/>"),t()(),e(223,`
14`),n(224,"span",26)(225,"span",26)(226,"span",27),e(227,"<"),t(),e(228,"iframe"),t(),e(229," "),n(230,"span",28),e(231,"[src]"),t(),n(232,"span",29)(233,"span",30),e(234,"="),t(),n(235,"span",27),e(236,'"'),t(),e(237,"resourceUrl | nzSanitizer: 'resourceUrl'"),n(238,"span",27),e(239,'"'),t()(),n(240,"span",27),e(241,">"),t()(),n(242,"span",26)(243,"span",26)(244,"span",27),e(245,"</"),t(),e(246,"iframe"),t(),n(247,"span",27),e(248,">"),t()(),e(249,`
15`),t()(),d(),t()(),n(250,"nz-code-box",34),o(251,"nz-demo-pipes-trim",22),n(252,"div",23),z(),n(253,"p"),e(254,"Strip left and right empty string"),t(),d(),t()()()(),n(255,"section",35),z(),n(256,"h2",36)(257,"span"),e(258,"API"),t(),n(259,"a",37),e(260,"#"),t()(),n(261,"h3",38)(262,"span"),e(263,"nzBytes"),t(),n(264,"a",39),e(265,"#"),t()(),n(266,"table")(267,"thead")(268,"tr")(269,"th"),e(270,"Property"),t(),n(271,"th"),e(272,"Description"),t(),n(273,"th"),e(274,"Type"),t(),n(275,"th"),e(276,"Default"),t()()(),n(277,"tbody")(278,"tr")(279,"td")(280,"code"),e(281,"decimal"),t()(),n(282,"td"),e(283,"Decimal"),t(),n(284,"td")(285,"code"),e(286,"number"),t()(),n(287,"td"),e(288,"'0'"),t()(),n(289,"tr")(290,"td")(291,"code"),e(292,"from"),t()(),n(293,"td"),e(294,"Unit of current value"),t(),n(295,"td")(296,"code"),e(297,"string"),t()(),n(298,"td"),e(299,"'B'"),t()(),n(300,"tr")(301,"td")(302,"code"),e(303,"to"),t()(),n(304,"td"),e(305,"Units converted to target value"),t(),n(306,"td")(307,"code"),e(308,"string"),t()(),n(309,"td"),e(310,"''"),t()()()(),n(311,"h3",40)(312,"span"),e(313,"nzToCssUnit"),t(),n(314,"a",41),e(315,"#"),t()(),n(316,"table")(317,"thead")(318,"tr")(319,"th"),e(320,"Property"),t(),n(321,"th"),e(322,"Description"),t(),n(323,"th"),e(324,"Type"),t(),n(325,"th"),e(326,"Default"),t()()(),n(327,"tbody")(328,"tr")(329,"td")(330,"code"),e(331,"defaultUnit"),t()(),n(332,"td"),e(333,"Default Unit"),t(),n(334,"td")(335,"code"),e(336,"string"),t()(),n(337,"td"),e(338,"'px'"),t()()()(),n(339,"h3",42)(340,"span"),e(341,"nzEllipsis"),t(),n(342,"a",43),e(343,"#"),t()(),n(344,"table")(345,"thead")(346,"tr")(347,"th"),e(348,"Property"),t(),n(349,"th"),e(350,"Description"),t(),n(351,"th"),e(352,"Type"),t(),n(353,"th"),e(354,"Default"),t()()(),n(355,"tbody")(356,"tr")(357,"td")(358,"code"),e(359,"length"),t()(),n(360,"td"),e(361,"Truncate length"),t(),n(362,"td")(363,"code"),e(364,"number"),t()(),n(365,"td"),e(366,"''"),t()(),n(367,"tr")(368,"td")(369,"code"),e(370,"suffix"),t()(),n(371,"td"),e(372,"Replace character"),t(),n(373,"td")(374,"code"),e(375,"string"),t()(),n(376,"td"),e(377,"''"),t()()()(),n(378,"h3",44)(379,"span"),e(380,"nzAggregate"),t(),n(381,"a",45),e(382,"#"),t()(),n(383,"table")(384,"thead")(385,"tr")(386,"th"),e(387,"Property"),t(),n(388,"th"),e(389,"Description"),t(),n(390,"th"),e(391,"Type"),t(),n(392,"th"),e(393,"Default"),t()()(),n(394,"tbody")(395,"tr")(396,"td")(397,"code"),e(398,"method"),t()(),n(399,"td"),e(400,"Aggregation"),t(),n(401,"td")(402,"code"),e(403,"'sum' | 'max' | 'min' | 'avg'"),t()(),n(404,"td"),e(405,"''"),t()()()(),n(406,"h3",46)(407,"span"),e(408,"nzSanitizer"),t(),n(409,"a",47),e(410,"#"),t()(),n(411,"table")(412,"thead")(413,"tr")(414,"th"),e(415,"Property"),t(),n(416,"th"),e(417,"Description"),t(),n(418,"th"),e(419,"Type"),t(),n(420,"th"),e(421,"Default"),t()()(),n(422,"tbody")(423,"tr")(424,"td")(425,"code"),e(426,"type"),t()(),n(427,"td"),e(428,"sanitizer type"),t(),n(429,"td")(430,"code"),e(431,"string"),t()(),n(432,"td"),e(433,"'html'"),t()()()(),d(),t()()),m&2&&(i(),a("nzOffsetTop",16),i(),a("nzAffix",!1),i(36),a("nzGutter",8),i(),a("nzSpan",24),i(),a("nzId","components-pipes-demo-bytes")("nzLink","components-pipes-demo-bytes")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pipes/demo/bytes.md"),i(5),a("nzId","components-pipes-demo-css-unit")("nzLink","components-pipes-demo-css-unit")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pipes/demo/css-unit.md"),i(90),a("nzId","components-pipes-demo-ellipsis")("nzLink","components-pipes-demo-ellipsis")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pipes/demo/ellipsis.md"),i(5),a("nzId","components-pipes-demo-aggregate")("nzLink","components-pipes-demo-aggregate")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pipes/demo/aggregate.md"),i(5),a("nzId","components-pipes-demo-sanitizer")("nzLink","components-pipes-demo-sanitizer")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pipes/demo/sanitizer.md"),i(105),a("nzId","components-pipes-demo-trim")("nzLink","components-pipes-demo-trim")("nzIframe",!1)("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/pipes/demo/trim.md"))},dependencies:[Y,f,X,j,J,K,P,F,V,Z,k,T,w,A,H,M],encapsulation:2})};var De=[{path:"en",component:te},{path:"zh",component:ee}],ut=De;export{ut as default};

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.