@angular-mdc/web
Version:
8 lines • 3.47 kB
JavaScript
/**
* @license
* Copyright (c) Dominic Carretto
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/trimox/angular-mdc-web/blob/master/LICENSE
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/cdk/coercion")):"function"==typeof define&&define.amd?define("@angular-mdc/web/image-list",["exports","@angular/core","@angular/cdk/coercion"],t):t(((e=e||self).ng=e.ng||{},e.ng.web=e.ng.web||{},e.ng.web.imageList={}),e.ng.core,e.ng.cdk.coercion)}(this,(function(e,t,n){"use strict";var o=function(){function e(e){this.elementRef=e}return e.decorators=[{type:t.Directive,args:[{selector:"[mdcImageListItem], mdc-image-list-item",exportAs:"mdcImageListItem",host:{class:"mdc-image-list__item"}}]}],e.ctorParameters=function(){return[{type:t.ElementRef}]},e}(),r=function(){function e(e){this.elementRef=e}return e.decorators=[{type:t.Component,args:[{selector:"[mdcImageListImageAspect], mdc-image-list-image-aspect",exportAs:"mdcImageListImageAspect",template:'\n <div class="mdc-image-list__image-aspect-container">\n <ng-content></ng-content>\n </div>\n ',encapsulation:t.ViewEncapsulation.None}]}],e.ctorParameters=function(){return[{type:t.ElementRef}]},e}(),i=function(){function e(e){this.elementRef=e}return e.decorators=[{type:t.Directive,args:[{selector:"[mdcImageListImage], mdc-image-list-image",exportAs:"mdcImageListImage",host:{class:"mdc-image-list__image"}}]}],e.ctorParameters=function(){return[{type:t.ElementRef}]},e}(),c=function(){function e(e){this.elementRef=e}return e.decorators=[{type:t.Directive,args:[{selector:"[mdcImageListSupporting], mdc-image-list-supporting",exportAs:"mdcImageListSupporting",host:{class:"mdc-image-list__supporting"}}]}],e.ctorParameters=function(){return[{type:t.ElementRef}]},e}(),s=function(){function e(e){this.elementRef=e}return e.decorators=[{type:t.Directive,args:[{selector:"[mdcImageListLabel], mdc-image-list-label",exportAs:"mdcImageListLabel",host:{class:"mdc-image-list__label"}}]}],e.ctorParameters=function(){return[{type:t.ElementRef}]},e}(),a=function(){function e(e){this.elementRef=e,this._masonry=!1,this._textProtection=!1}return Object.defineProperty(e.prototype,"masonry",{get:function(){return this._masonry},set:function(e){this._masonry=n.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textProtection",{get:function(){return this._textProtection},set:function(e){this._textProtection=n.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),e.decorators=[{type:t.Component,args:[{selector:"[mdc-image-list], mdc-image-list",exportAs:"mdcImageList",host:{class:"mdc-image-list","[class.mdc-image-list--masonry]":"masonry","[class.mdc-image-list--with-text-protection]":"textProtection"},template:"<ng-content></ng-content>",changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None}]}],e.ctorParameters=function(){return[{type:t.ElementRef}]},e.propDecorators={masonry:[{type:t.Input}],textProtection:[{type:t.Input}]},e}(),m=[a,i,r,o,s,c],g=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{exports:m,declarations:m}]}],e}();e.MdcImageList=a,e.MdcImageListImage=i,e.MdcImageListImageAspect=r,e.MdcImageListItem=o,e.MdcImageListLabel=s,e.MdcImageListModule=g,e.MdcImageListSupporting=c,Object.defineProperty(e,"__esModule",{value:!0})}));