UNPKG

primeng-extensions

Version:

[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![npm](https://img.shields.io/npm/dt/primeng-extensions.svg)]() [![Dependency Status][daviddm-image]][daviddm-url] ![Crates.io](https://img.shields.io/github/license/mashape

1 lines 9.35 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{ojLL:function(l,n,u){"use strict";u.r(n);var e=u("CcnG"),t=function(){return function(){}}(),o=u("pMnS"),a=function(){function l(){this.backgroundColor=""}return l.prototype.data=function(){if(!this.dot)return"number"==typeof this.value&&"number"==typeof this.max&&this.max<this.value?this.max+"+":this.value},l.prototype.display=function(){return this.data()||this.dot},l.prototype.ngOnDestroy=function(){},l.prototype.ngOnInit=function(){},l}(),d=function(){return function(){}}(),i=u("Ip0R"),r=e["\u0275crt"]({encapsulation:2,styles:[],data:{}});function c(l){return e["\u0275vid"](0,[(l()(),e["\u0275eld"](0,0,null,null,5,"span",[],null,null,null,null,null)),e["\u0275did"](1,278528,null,0,i.NgClass,[e.IterableDiffers,e.KeyValueDiffers,e.ElementRef,e.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),e["\u0275pod"](2,{"ui-widget ui-widget-content ui-corner-all ui-badge-content":0,fixed:1,dot:2}),e["\u0275did"](3,278528,null,0,i.NgStyle,[e.KeyValueDiffers,e.ElementRef,e.Renderer2],{ngStyle:[0,"ngStyle"]},null),e["\u0275pod"](4,{"background-color":0}),(l()(),e["\u0275ted"](5,null,[" "," "]))],function(l,n){var u=n.component,e=u.badgeClass,t=l(n,2,0,!0,!0,u.dot);l(n,1,0,e,t);var o=l(n,4,0,u.backgroundColor);l(n,3,0,o)},function(l,n){l(n,5,0,n.component.data())})}function s(l){return e["\u0275vid"](0,[(l()(),e["\u0275eld"](0,0,null,null,3,"div",[["class","ui-badge ui-position"]],null,null,null,null,null)),e["\u0275ncd"](null,0),(l()(),e["\u0275and"](16777216,null,null,1,null,c)),e["\u0275did"](3,16384,null,0,i.NgIf,[e.ViewContainerRef,e.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(l,n){l(n,3,0,n.component.display())},null)}var f=u("VSng"),m=function(){return function(){}}(),p=e["\u0275crt"]({encapsulation:2,styles:[],data:{}});function b(l){return e["\u0275vid"](0,[(l()(),e["\u0275eld"](0,0,null,null,5,"div",[["class","content-section introduction"]],null,null,null,null,null)),(l()(),e["\u0275eld"](1,0,null,null,4,"div",[],null,null,null,null,null)),(l()(),e["\u0275eld"](2,0,null,null,1,"span",[["class","feature-title"]],null,null,null,null,null)),(l()(),e["\u0275ted"](-1,null,["Badge"])),(l()(),e["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(l()(),e["\u0275ted"](-1,null,["A number or status mark on form components."])),(l()(),e["\u0275eld"](6,0,null,null,50,"div",[["class","content-section implementation"]],null,null,null,null,null)),(l()(),e["\u0275eld"](7,0,null,null,1,"h3",[["class","first"]],null,null,null,null,null)),(l()(),e["\u0275ted"](-1,null,["Numbers"])),(l()(),e["\u0275eld"](9,0,null,null,3,"pe-badge",[["value","100"]],null,null,null,s,r)),e["\u0275did"](10,245760,null,0,a,[],{value:[0,"value"]},null),(l()(),e["\u0275eld"](11,0,null,0,1,"button",[["icon","fa fa-thumbs-up"],["label","Likes"],["pButton",""],["type","button"]],null,null,null,null,null)),e["\u0275did"](12,4341760,null,0,f.ButtonDirective,[e.ElementRef],{label:[0,"label"],icon:[1,"icon"]},null),(l()(),e["\u0275eld"](13,0,null,null,3,"pe-badge",[["value","50"]],null,null,null,s,r)),e["\u0275did"](14,245760,null,0,a,[],{value:[0,"value"]},null),(l()(),e["\u0275eld"](15,0,null,0,1,"button",[["icon","fa fa-thumbs-down"],["label","Dislikes"],["pButton",""],["type","button"]],null,null,null,null,null)),e["\u0275did"](16,4341760,null,0,f.ButtonDirective,[e.ElementRef],{label:[0,"label"],icon:[1,"icon"]},null),(l()(),e["\u0275eld"](17,0,null,null,1,"h3",[["class","first"]],null,null,null,null,null)),(l()(),e["\u0275ted"](-1,null,["Color"])),(l()(),e["\u0275eld"](19,0,null,null,3,"pe-badge",[["backgroundColor","red"],["value","100"]],null,null,null,s,r)),e["\u0275did"](20,245760,null,0,a,[],{value:[0,"value"],backgroundColor:[1,"backgroundColor"]},null),(l()(),e["\u0275eld"](21,0,null,0,1,"button",[["icon","fa fa-thumbs-up"],["label","Likes"],["pButton",""],["type","button"]],null,null,null,null,null)),e["\u0275did"](22,4341760,null,0,f.ButtonDirective,[e.ElementRef],{label:[0,"label"],icon:[1,"icon"]},null),(l()(),e["\u0275eld"](23,0,null,null,3,"pe-badge",[["backgroundColor","blue"],["value","50"]],null,null,null,s,r)),e["\u0275did"](24,245760,null,0,a,[],{value:[0,"value"],backgroundColor:[1,"backgroundColor"]},null),(l()(),e["\u0275eld"](25,0,null,0,1,"button",[["icon","fa fa-thumbs-down"],["label","Dislikes"],["pButton",""],["type","button"]],null,null,null,null,null)),e["\u0275did"](26,4341760,null,0,f.ButtonDirective,[e.ElementRef],{label:[0,"label"],icon:[1,"icon"]},null),(l()(),e["\u0275eld"](27,0,null,null,1,"h3",[],null,null,null,null,null)),(l()(),e["\u0275ted"](-1,null,["Max"])),(l()(),e["\u0275eld"](29,0,null,null,3,"pe-badge",[["max","100"],["value","200"]],null,null,null,s,r)),e["\u0275did"](30,245760,null,0,a,[],{value:[0,"value"],max:[1,"max"]},null),(l()(),e["\u0275eld"](31,0,null,0,1,"button",[["icon","fa fa-thumbs-up"],["label","Likes"],["pButton",""],["type","button"]],null,null,null,null,null)),e["\u0275did"](32,4341760,null,0,f.ButtonDirective,[e.ElementRef],{label:[0,"label"],icon:[1,"icon"]},null),(l()(),e["\u0275eld"](33,0,null,null,3,"pe-badge",[["max","50"],["value","100"]],null,null,null,s,r)),e["\u0275did"](34,245760,null,0,a,[],{value:[0,"value"],max:[1,"max"]},null),(l()(),e["\u0275eld"](35,0,null,0,1,"button",[["icon","fa fa-thumbs-down"],["label","Dislikes"],["pButton",""],["type","button"]],null,null,null,null,null)),e["\u0275did"](36,4341760,null,0,f.ButtonDirective,[e.ElementRef],{label:[0,"label"],icon:[1,"icon"]},null),(l()(),e["\u0275eld"](37,0,null,null,1,"h3",[],null,null,null,null,null)),(l()(),e["\u0275ted"](-1,null,["Text"])),(l()(),e["\u0275eld"](39,0,null,null,3,"pe-badge",[["value","new"]],null,null,null,s,r)),e["\u0275did"](40,245760,null,0,a,[],{value:[0,"value"]},null),(l()(),e["\u0275eld"](41,0,null,0,1,"button",[["icon","fa fa-comments"],["label","Comments"],["pButton",""],["type","button"]],null,null,null,null,null)),e["\u0275did"](42,4341760,null,0,f.ButtonDirective,[e.ElementRef],{label:[0,"label"],icon:[1,"icon"]},null),(l()(),e["\u0275eld"](43,0,null,null,3,"pe-badge",[["value","old"]],null,null,null,s,r)),e["\u0275did"](44,245760,null,0,a,[],{value:[0,"value"]},null),(l()(),e["\u0275eld"](45,0,null,0,1,"button",[["icon","fa fa-comments"],["label","Comments"],["pButton",""],["type","button"]],null,null,null,null,null)),e["\u0275did"](46,4341760,null,0,f.ButtonDirective,[e.ElementRef],{label:[0,"label"],icon:[1,"icon"]},null),(l()(),e["\u0275eld"](47,0,null,null,1,"h3",[],null,null,null,null,null)),(l()(),e["\u0275ted"](-1,null,["Notify"])),(l()(),e["\u0275eld"](49,0,null,null,3,"pe-badge",[["dot","true"]],null,null,null,s,r)),e["\u0275did"](50,245760,null,0,a,[],{dot:[0,"dot"]},null),(l()(),e["\u0275eld"](51,0,null,0,1,"button",[["label","Alert"],["pButton",""],["type","button"]],null,null,null,null,null)),e["\u0275did"](52,4341760,null,0,f.ButtonDirective,[e.ElementRef],{label:[0,"label"]},null),(l()(),e["\u0275eld"](53,0,null,null,3,"pe-badge",[["dot","true"]],null,null,null,s,r)),e["\u0275did"](54,245760,null,0,a,[],{dot:[0,"dot"]},null),(l()(),e["\u0275eld"](55,0,null,0,1,"button",[["icon","fa fa-exclamation-circle"],["pButton",""],["type","button"]],null,null,null,null,null)),e["\u0275did"](56,4341760,null,0,f.ButtonDirective,[e.ElementRef],{icon:[0,"icon"]},null)],function(l,n){l(n,10,0,"100"),l(n,12,0,"Likes","fa fa-thumbs-up"),l(n,14,0,"50"),l(n,16,0,"Dislikes","fa fa-thumbs-down"),l(n,20,0,"100","red"),l(n,22,0,"Likes","fa fa-thumbs-up"),l(n,24,0,"50","blue"),l(n,26,0,"Dislikes","fa fa-thumbs-down"),l(n,30,0,"200","100"),l(n,32,0,"Likes","fa fa-thumbs-up"),l(n,34,0,"100","50"),l(n,36,0,"Dislikes","fa fa-thumbs-down"),l(n,40,0,"new"),l(n,42,0,"Comments","fa fa-comments"),l(n,44,0,"old"),l(n,46,0,"Comments","fa fa-comments"),l(n,50,0,"true"),l(n,52,0,"Alert"),l(n,54,0,"true"),l(n,56,0,"fa fa-exclamation-circle")},null)}function g(l){return e["\u0275vid"](0,[(l()(),e["\u0275eld"](0,0,null,null,1,"ng-component",[],null,null,null,b,p)),e["\u0275did"](1,49152,null,0,m,[],null,null)],null,null)}var v=e["\u0275ccf"]("ng-component",m,g,{},{},[]),h=u("gIcY"),k=u("ZYCi"),y=function(){return function(){}}(),C=u("xhcO");u.d(n,"BadgeDemoModuleNgFactory",function(){return R});var R=e["\u0275cmf"](t,[],function(l){return e["\u0275mod"]([e["\u0275mpd"](512,e.ComponentFactoryResolver,e["\u0275CodegenComponentFactoryResolver"],[[8,[o.a,v]],[3,e.ComponentFactoryResolver],e.NgModuleRef]),e["\u0275mpd"](4608,i.NgLocalization,i.NgLocaleLocalization,[e.LOCALE_ID,[2,i["\u0275angular_packages_common_common_a"]]]),e["\u0275mpd"](4608,h["\u0275angular_packages_forms_forms_j"],h["\u0275angular_packages_forms_forms_j"],[]),e["\u0275mpd"](1073742336,i.CommonModule,i.CommonModule,[]),e["\u0275mpd"](1073742336,h["\u0275angular_packages_forms_forms_bc"],h["\u0275angular_packages_forms_forms_bc"],[]),e["\u0275mpd"](1073742336,h.FormsModule,h.FormsModule,[]),e["\u0275mpd"](1073742336,k.RouterModule,k.RouterModule,[[2,k["\u0275angular_packages_router_router_a"]],[2,k.Router]]),e["\u0275mpd"](1073742336,y,y,[]),e["\u0275mpd"](1073742336,d,d,[]),e["\u0275mpd"](1073742336,f.ButtonModule,f.ButtonModule,[]),e["\u0275mpd"](1073742336,C.CodeHighlighterModule,C.CodeHighlighterModule,[]),e["\u0275mpd"](1073742336,t,t,[]),e["\u0275mpd"](1024,k.ROUTES,function(){return[[{path:"",component:m}]]},[])])})}}]);