Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-cdk-responsive

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-cdk-responsive - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

esm2015/lib/models.js

236

bundles/ngx-cdk-responsive.umd.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/layout'), require('@angular/core')) :
typeof define === 'function' && define.amd ? define('ngx-cdk-responsive', ['exports', '@angular/cdk/layout', '@angular/core'], factory) :
(factory((global['ngx-cdk-responsive'] = {}),global.ng.cdk.layout,global.ng.core));
}(this, (function (exports,layout,core) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/layout')) :
typeof define === 'function' && define.amd ? define('ngx-cdk-responsive', ['exports', '@angular/core', '@angular/cdk/layout'], factory) :
(factory((global['ngx-cdk-responsive'] = {}),global.ng.core,global.ng.cdk.layout));
}(this, (function (exports,core,layout) { 'use strict';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
function __read(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m)
return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
ar.push(r.value);
}
catch (error) {
e = { error: error };
}
finally {
try {
if (r && !r.done && (m = i["return"]))
m.call(i);
}
finally {
if (e)
throw e.error;
}
}
return ar;
}
/**

@@ -50,22 +11,48 @@ * @fileoverview added by tsickle

*/
// tslint:disable:max-line-length
/** @type {?} */
var regexMinWidth = /\(min-width: \d+?px\)/g;
/** @type {?} */
var regexMaxWidth = /\(max-width: (\d|\.)+?px\)/g;
/** @type {?} */
var AllBreakpoints = Object.entries(layout.Breakpoints).reduce(function (acc, _a) {
var _b = __read(_a, 2), key = _b[0], value = _b[1];
/** @type {?} */
var keyAndSmaller = key + ' and smaller';
/** @type {?} */
var keyAndLarger = key + ' and larger';
/** @type {?} */
var valueAndSmaller = value.replace(regexMinWidth, '(min-width: 0px)');
/** @type {?} */
var valueAndLarger = value.replace(regexMaxWidth, '(max-width: 1000000px)');
acc[key] = value;
acc[keyAndSmaller] = valueAndSmaller;
acc[keyAndLarger] = valueAndLarger;
return acc;
}, {});
var AllBreakpoints = {
'XSmall': '(max-width: 599.99px)',
'XSmall and smaller': '(max-width: 599.99px)',
'XSmall and larger': '(max-width: 1000000px)',
'Small': '(min-width: 600px) and (max-width: 959.99px)',
'Small and smaller': '(min-width: 0px) and (max-width: 959.99px)',
'Small and larger': '(min-width: 600px) and (max-width: 1000000px)',
'Medium': '(min-width: 960px) and (max-width: 1279.99px)',
'Medium and smaller': '(min-width: 0px) and (max-width: 1279.99px)',
'Medium and larger': '(min-width: 960px) and (max-width: 1000000px)',
'Large': '(min-width: 1280px) and (max-width: 1919.99px)',
'Large and smaller': '(min-width: 0px) and (max-width: 1919.99px)',
'Large and larger': '(min-width: 1280px) and (max-width: 1000000px)',
'XLarge': '(min-width: 1920px)',
'XLarge and smaller': '(min-width: 0px)',
'XLarge and larger': '(min-width: 1920px)',
'Handset': '(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)',
'Handset and smaller': '(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)',
'Handset and larger': '(max-width: 1000000px) and (orientation: portrait), (max-width: 1000000px) and (orientation: landscape)',
'Tablet': '(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)',
'Tablet and smaller': '(min-width: 0px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 0px) and (max-width: 1279.99px) and (orientation: landscape)',
'Tablet and larger': '(min-width: 600px) and (max-width: 1000000px) and (orientation: portrait), (min-width: 960px) and (max-width: 1000000px) and (orientation: landscape)',
'Web': '(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)',
'Web and smaller': '(min-width: 0px) and (orientation: portrait), (min-width: 0px) and (orientation: landscape)',
'Web and larger': '(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)',
'HandsetPortrait': '(max-width: 599.99px) and (orientation: portrait)',
'HandsetPortrait and smaller': '(max-width: 599.99px) and (orientation: portrait)',
'HandsetPortrait and larger': '(max-width: 1000000px) and (orientation: portrait)',
'TabletPortrait': '(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)',
'TabletPortrait and smaller': '(min-width: 0px) and (max-width: 839.99px) and (orientation: portrait)',
'TabletPortrait and larger': '(min-width: 600px) and (max-width: 1000000px) and (orientation: portrait)',
'WebPortrait': '(min-width: 840px) and (orientation: portrait)',
'WebPortrait and smaller': '(min-width: 0px) and (orientation: portrait)',
'WebPortrait and larger': '(min-width: 840px) and (orientation: portrait)',
'HandsetLandscape': '(max-width: 959.99px) and (orientation: landscape)',
'HandsetLandscape and smaller': '(max-width: 959.99px) and (orientation: landscape)',
'HandsetLandscape and larger': '(max-width: 1000000px) and (orientation: landscape)',
'TabletLandscape': '(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)',
'TabletLandscape and smaller': '(min-width: 0px) and (max-width: 1279.99px) and (orientation: landscape)',
'TabletLandscape and larger': '(min-width: 960px) and (max-width: 1000000px) and (orientation: landscape)',
'WebLandscape': '(min-width: 1280px) and (orientation: landscape)',
'WebLandscape and smaller': '(min-width: 0px) and (orientation: landscape)',
'WebLandscape and larger': '(min-width: 1280px) and (orientation: landscape)'
};

@@ -76,8 +63,8 @@ /**

*/
var ResponsiveDirective = /** @class */ (function () {
function ResponsiveDirective(vcr, breakpoints) {
var ResponsiveSwitchDirective = /** @class */ (function () {
function ResponsiveSwitchDirective(vcr, breakpoints) {
this.vcr = vcr;
this.breakpoints = breakpoints;
this.updated = new core.EventEmitter();
this.registeredTemplates = new Map();
this.update = new core.EventEmitter();
this.registeredTemplates = {};
}

@@ -87,3 +74,3 @@ /**

*/
ResponsiveDirective.prototype.ngOnInit = /**
ResponsiveSwitchDirective.prototype.ngOnInit = /**
* @return {?}

@@ -102,3 +89,3 @@ */

*/
ResponsiveDirective.prototype.register = /**
ResponsiveSwitchDirective.prototype.register = /**
* @param {?} size

@@ -109,3 +96,3 @@ * @param {?} template

function (size, template) {
this.registeredTemplates.set(size.trim(), template);
this.registeredTemplates[size.trim()] = template;
this.render();

@@ -117,3 +104,3 @@ };

*/
ResponsiveDirective.prototype.registerDefault = /**
ResponsiveSwitchDirective.prototype.registerDefault = /**
* @param {?} template

@@ -129,3 +116,3 @@ * @return {?}

*/
ResponsiveDirective.prototype.render = /**
ResponsiveSwitchDirective.prototype.render = /**
* @return {?}

@@ -136,9 +123,9 @@ */

/** @type {?} */
var usedSize = Array.from(this.registeredTemplates.keys()).find(function (size) { return _this.breakpoints.isMatched(AllBreakpoints[size]); });
var usedSize = Object.keys(this.registeredTemplates).find(function (size) { return _this.breakpoints.isMatched(AllBreakpoints[size]); });
/** @type {?} */
var usedTemplate = this.registeredTemplates.get(usedSize) || this.defaultTemplate;
var usedTemplate = this.registeredTemplates[usedSize] || this.defaultTemplate;
if (usedTemplate !== undefined) {
this.vcr.clear();
this.vcr.createEmbeddedView(usedTemplate);
this.updated.emit(usedSize || 'Default');
this.update.emit(usedSize || 'Default');
}

@@ -149,3 +136,3 @@ };

*/
ResponsiveDirective.prototype.ngOnDestroy = /**
ResponsiveSwitchDirective.prototype.ngOnDestroy = /**
* @return {?}

@@ -157,10 +144,11 @@ */

}
this.vcr.clear();
};
ResponsiveDirective.decorators = [
ResponsiveSwitchDirective.decorators = [
{ type: core.Directive, args: [{
selector: '[responsive]' // tslint:disable-line
selector: '[responsiveSwitch]' // tslint:disable-line
},] }
];
/** @nocollapse */
ResponsiveDirective.ctorParameters = function () {
ResponsiveSwitchDirective.ctorParameters = function () {
return [

@@ -171,7 +159,7 @@ { type: core.ViewContainerRef },

};
ResponsiveDirective.propDecorators = {
ResponsiveSwitchDirective.propDecorators = {
observe: [{ type: core.Input }],
updated: [{ type: core.Output }]
update: [{ type: core.Output }]
};
return ResponsiveDirective;
return ResponsiveSwitchDirective;
}());

@@ -240,3 +228,3 @@ var ResponsiveCaseDirective = /** @class */ (function () {

{ type: core.TemplateRef },
{ type: ResponsiveDirective, decorators: [{ type: core.Host }] }
{ type: ResponsiveSwitchDirective, decorators: [{ type: core.Host }] }
];

@@ -255,2 +243,76 @@ };

*/
var ResponsiveDirective = /** @class */ (function () {
function ResponsiveDirective(tmpl, vcr, breakpoints) {
this.tmpl = tmpl;
this.vcr = vcr;
this.breakpoints = breakpoints;
}
/**
* @return {?}
*/
ResponsiveDirective.prototype.ngOnInit = /**
* @return {?}
*/
function () {
var _this = this;
if (this.observe !== undefined && this.observe.length > 0) {
this.sub = this.breakpoints.observe(this.observe).subscribe(function () { return _this.render(); });
}
this.render();
};
/**
* @return {?}
*/
ResponsiveDirective.prototype.render = /**
* @return {?}
*/
function () {
var _this = this;
/** @type {?} */
var usedSize = Object.keys(this.alternativeElements).find(function (size) { return _this.breakpoints.isMatched(AllBreakpoints[size]); });
/** @type {?} */
var usedTemplate = this.alternativeElements[usedSize] || this.tmpl;
this.vcr.clear();
this.vcr.createEmbeddedView(usedTemplate);
if (this.update !== undefined) {
this.update.next(usedSize || 'Default');
}
};
/**
* @return {?}
*/
ResponsiveDirective.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
if (this.sub !== undefined) {
this.sub.unsubscribe();
}
this.vcr.clear();
};
ResponsiveDirective.decorators = [
{ type: core.Directive, args: [{
selector: '[responsive]' // tslint:disable-line
},] }
];
/** @nocollapse */
ResponsiveDirective.ctorParameters = function () {
return [
{ type: core.TemplateRef },
{ type: core.ViewContainerRef },
{ type: layout.BreakpointObserver }
];
};
ResponsiveDirective.propDecorators = {
alternativeElements: [{ type: core.Input, args: ['responsive',] }],
observe: [{ type: core.Input, args: ['responsiveObserve',] }],
update: [{ type: core.Input, args: ['responsiveUpdate',] }]
};
return ResponsiveDirective;
}());
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var NgxCdkResponsiveModule = /** @class */ (function () {

@@ -261,5 +323,5 @@ function NgxCdkResponsiveModule() {

{ type: core.NgModule, args: [{
declarations: [ResponsiveCaseDirective, ResponsiveDirective],
declarations: [ResponsiveCaseDirective, ResponsiveSwitchDirective, ResponsiveDirective],
imports: [],
exports: [ResponsiveCaseDirective, ResponsiveDirective]
exports: [ResponsiveCaseDirective, ResponsiveSwitchDirective, ResponsiveDirective]
},] }

@@ -301,5 +363,7 @@ ];

exports.ResponsiveSwitchDirective = ResponsiveSwitchDirective;
exports.ResponsiveCaseDirective = ResponsiveCaseDirective;
exports.ResponsiveDirective = ResponsiveDirective;
exports.ResponsiveCaseDirective = ResponsiveCaseDirective;
exports.NgxCdkResponsiveModule = NgxCdkResponsiveModule;
exports.AllBreakpoints = AllBreakpoints;

@@ -310,2 +374,2 @@ Object.defineProperty(exports, '__esModule', { value: true });

//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNkay1yZXNwb25zaXZlLnVtZC5qcy5tYXAiLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy90c2xpYi90c2xpYi5lczYuanMiLCJuZzovL25neC1jZGstcmVzc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gICBfX2Fzc2lnbiA9IE9iamVjdC5hc3NpZ24gfHwgZnVuY3Rpb24gX19hc3NpZ24odCkge1xyXG4gICAgICAgIGZvciAodmFyIHMsIGkgPSAxLCBuID0gYXJndW1lbnRzLmxlbmd0aDsgaSA8IG47IGkrKykge1xyXG4gICAgICAgICAgICBzID0gYXJndW1lbnRzW2ldO1xyXG4gICAgICAgICAgICBmb3IgKHZhciBwIGluIHMpIGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwocywgcCkpIHRbcF0gPSBzW3BdO1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4gdDtcclxuICAgIH1cclxuICAgIHJldHVybiBfX2Fzc2lnbi5hcHBseSh0aGlzLCBhcmd1bWVudHMpO1xyXG59XHJcblxyXG5leHBvcnQgZnVuY3Rpb24gX19yZXN0KHMsIGUpIHtcclxuICAgIHZhciB0ID0ge307XHJcbiAgICBmb3IgKHZhciBwIGluIHMpIGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwocywgcCkgJiYgZS5pbmRleE9mKHApIDwgMClcclxuICAgICAgICB0W3BdID0gc1twXTtcclxuICAgIGlmIChzICE9IG51bGwgJiYgdHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMgPT09IFwiZnVuY3Rpb25cIilcclxuICAgICAgICBmb3IgKHZhciBpID0gMCwgcCA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMocyk7IGkgPCBwLmxlbmd0aDsgaSsrKSBpZiAoZS5pbmRleE9mKHBbaV0pIDwgMClcclxuICAgICAgICAgICAgdFtwW2ldXSA9IHNbcFtpXV07XHJcbiAgICByZXR1cm4gdDtcclxufVxyXG5cclxuZXhwb3J0IGZ1bmN0aW9uIF9fZGVjb3JhdGUoZGVjb3JhdG9ycywgdGFyZ2V0LCBrZXksIGRlc2MpIHtcclxuICAgIHZhciBjID0gYXJndW1lbnRzLmxlbmd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jtZQUFuQixxQkFBQTtnQkFBQSxXQUFtQjs7WUFBSyxPQUFBLGlCQUFlLEtBQUssR0FBRyxJQUFJLE1BQUc7U0FBQTtRQUNsRixpQkFBUyxHQUFHLFVBQUMsS0FBYSxFQUFFLElBQW1CO1lBQW5CLHFCQUFBO2dCQUFBLFdBQW1COztZQUFLLE9BQUEsaUJBQWUsS0FBSyxHQUFHLElBQUksTUFBRztTQUFBO1FBQ2xGLHlCQUFpQixHQUFHLENBQUMsdUJBQXVCLEVBQUUsdUJBQXVCLEVBQUUsd0JBQXdCLEVBQUUsd0JBQXdCLENBQUM7SUFDekksQ0FBQyxFQUxnQkMsZUFBTyxLQUFQQSxlQUFPLFFBS3ZCOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ==

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/cdk/layout"),require("@angular/core")):"function"==typeof define&&define.amd?define("ngx-cdk-responsive",["exports","@angular/cdk/layout","@angular/core"],t):t(e["ngx-cdk-responsive"]={},e.ng.cdk.layout,e.ng.core)}(this,function(e,t,r){"use strict";var i,d=/\(min-width: \d+?px\)/g,c=/\(max-width: (\d|\.)+?px\)/g,n=Object.entries(t.Breakpoints).reduce(function(e,t){var r=function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,s=r.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(i=s.next()).done;)o.push(i.value)}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=s["return"])&&r.call(s)}finally{if(n)throw n.error}}return o}(t,2),i=r[0],n=r[1],s=i+" and smaller",o=i+" and larger",a=n.replace(d,"(min-width: 0px)"),p=n.replace(c,"(max-width: 1000000px)");return e[i]=n,e[s]=a,e[o]=p,e},{}),s=function(){function e(e,t){this.vcr=e,this.breakpoints=t,this.updated=new r.EventEmitter,this.registeredTemplates=new Map}return e.prototype.ngOnInit=function(){var e=this;this.observe!==undefined&&0<this.observe.length&&(this.sub=this.breakpoints.observe(this.observe).subscribe(function(){return e.render()}))},e.prototype.register=function(e,t){this.registeredTemplates.set(e.trim(),t),this.render()},e.prototype.registerDefault=function(e){this.defaultTemplate=e,this.render()},e.prototype.render=function(){var t=this,e=Array.from(this.registeredTemplates.keys()).find(function(e){return t.breakpoints.isMatched(n[e])}),r=this.registeredTemplates.get(e)||this.defaultTemplate;r!==undefined&&(this.vcr.clear(),this.vcr.createEmbeddedView(r),this.updated.emit(e||"Default"))},e.prototype.ngOnDestroy=function(){this.sub!==undefined&&this.sub.unsubscribe()},e.decorators=[{type:r.Directive,args:[{selector:"[responsive]"}]}],e.ctorParameters=function(){return[{type:r.ViewContainerRef},{type:t.BreakpointObserver}]},e.propDecorators={observe:[{type:r.Input}],updated:[{type:r.Output}]},e}(),o=function(){function e(e,t){this.templateRef=e,this.host=t}return Object.defineProperty(e.prototype,"responsiveCase",{set:function(e){if(null===e)throw new Error("No 'size' passed. Use 'responsive.default' for default case.");if(!((e=(e=e.startsWith("<=")?e.substring(2).trim()+" and smaller":e).startsWith(">=")?e.substring(2).trim()+" and larger":e)in n))throw new Error("No such size '"+e+"'. Choose either prefix, suffix, or none.\nAvailable base breakpoints: '"+Object.keys(t.Breakpoints).join("', '")+"'.\nAvailable prefixes: '<= ', '>= '.\nAvailable suffixes: ' and smaller', ' and larger'.");this.registerTemplate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"responsiveDefault",{set:function(e){this.registerDefault()},enumerable:!0,configurable:!0}),e.prototype.registerTemplate=function(e){this.host.register(e,this.templateRef)},e.prototype.registerDefault=function(){this.host.registerDefault(this.templateRef)},e.decorators=[{type:r.Directive,args:[{selector:"[responsiveCase], [responsiveDefault]"}]}],e.ctorParameters=function(){return[{type:r.TemplateRef},{type:s,decorators:[{type:r.Host}]}]},e.propDecorators={responsiveCase:[{type:r.Input,args:["responsiveCase"]}],responsiveDefault:[{type:r.Input,args:["responsiveDefault"]}]},e}(),a=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{declarations:[o,s],imports:[],exports:[o,s]}]}],e}();(i=e.Observe||(e.Observe={})).ORIENTATION="(orientation:landscape)",i.MAX_WIDTH=function(e,t){return void 0===t&&(t="px"),"(max-width: "+e+t+")"},i.MIN_WIDTH=function(e,t){return void 0===t&&(t="px"),"(min-width: "+e+t+")"},i.ANY_WINDOW_CHANGE=["(max-width: 599.99px)","(max-width: 959.99px)","(max-width: 1279.99px)","(max-width: 1919.99px)"],e.ResponsiveDirective=s,e.ResponsiveCaseDirective=o,e.NgxCdkResponsiveModule=a,Object.defineProperty(e,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/cdk/layout")):"function"==typeof define&&define.amd?define("ngx-cdk-responsive",["exports","@angular/core","@angular/cdk/layout"],e):e(t["ngx-cdk-responsive"]={},t.ng.core,t.ng.cdk.layout)}(this,function(t,a,e){"use strict";var n,i={XSmall:"(max-width: 599.99px)","XSmall and smaller":"(max-width: 599.99px)","XSmall and larger":"(max-width: 1000000px)",Small:"(min-width: 600px) and (max-width: 959.99px)","Small and smaller":"(min-width: 0px) and (max-width: 959.99px)","Small and larger":"(min-width: 600px) and (max-width: 1000000px)",Medium:"(min-width: 960px) and (max-width: 1279.99px)","Medium and smaller":"(min-width: 0px) and (max-width: 1279.99px)","Medium and larger":"(min-width: 960px) and (max-width: 1000000px)",Large:"(min-width: 1280px) and (max-width: 1919.99px)","Large and smaller":"(min-width: 0px) and (max-width: 1919.99px)","Large and larger":"(min-width: 1280px) and (max-width: 1000000px)",XLarge:"(min-width: 1920px)","XLarge and smaller":"(min-width: 0px)","XLarge and larger":"(min-width: 1920px)",Handset:"(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)","Handset and smaller":"(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)","Handset and larger":"(max-width: 1000000px) and (orientation: portrait), (max-width: 1000000px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)","Tablet and smaller":"(min-width: 0px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 0px) and (max-width: 1279.99px) and (orientation: landscape)","Tablet and larger":"(min-width: 600px) and (max-width: 1000000px) and (orientation: portrait), (min-width: 960px) and (max-width: 1000000px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)","Web and smaller":"(min-width: 0px) and (orientation: portrait), (min-width: 0px) and (orientation: landscape)","Web and larger":"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.99px) and (orientation: portrait)","HandsetPortrait and smaller":"(max-width: 599.99px) and (orientation: portrait)","HandsetPortrait and larger":"(max-width: 1000000px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)","TabletPortrait and smaller":"(min-width: 0px) and (max-width: 839.99px) and (orientation: portrait)","TabletPortrait and larger":"(min-width: 600px) and (max-width: 1000000px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)","WebPortrait and smaller":"(min-width: 0px) and (orientation: portrait)","WebPortrait and larger":"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.99px) and (orientation: landscape)","HandsetLandscape and smaller":"(max-width: 959.99px) and (orientation: landscape)","HandsetLandscape and larger":"(max-width: 1000000px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)","TabletLandscape and smaller":"(min-width: 0px) and (max-width: 1279.99px) and (orientation: landscape)","TabletLandscape and larger":"(min-width: 960px) and (max-width: 1000000px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)","WebLandscape and smaller":"(min-width: 0px) and (orientation: landscape)","WebLandscape and larger":"(min-width: 1280px) and (orientation: landscape)"},r=function(){function t(t,e){this.vcr=t,this.breakpoints=e,this.update=new a.EventEmitter,this.registeredTemplates={}}return t.prototype.ngOnInit=function(){var t=this;this.observe!==undefined&&0<this.observe.length&&(this.sub=this.breakpoints.observe(this.observe).subscribe(function(){return t.render()}))},t.prototype.register=function(t,e){this.registeredTemplates[t.trim()]=e,this.render()},t.prototype.registerDefault=function(t){this.defaultTemplate=t,this.render()},t.prototype.render=function(){var e=this,t=Object.keys(this.registeredTemplates).find(function(t){return e.breakpoints.isMatched(i[t])}),a=this.registeredTemplates[t]||this.defaultTemplate;a!==undefined&&(this.vcr.clear(),this.vcr.createEmbeddedView(a),this.update.emit(t||"Default"))},t.prototype.ngOnDestroy=function(){this.sub!==undefined&&this.sub.unsubscribe(),this.vcr.clear()},t.decorators=[{type:a.Directive,args:[{selector:"[responsiveSwitch]"}]}],t.ctorParameters=function(){return[{type:a.ViewContainerRef},{type:e.BreakpointObserver}]},t.propDecorators={observe:[{type:a.Input}],update:[{type:a.Output}]},t}(),d=function(){function t(t,e){this.templateRef=t,this.host=e}return Object.defineProperty(t.prototype,"responsiveCase",{set:function(t){if(null===t)throw new Error("No 'size' passed. Use 'responsive.default' for default case.");if(!((t=(t=t.startsWith("<=")?t.substring(2).trim()+" and smaller":t).startsWith(">=")?t.substring(2).trim()+" and larger":t)in i))throw new Error("No such size '"+t+"'. Choose either prefix, suffix, or none.\nAvailable base breakpoints: '"+Object.keys(e.Breakpoints).join("', '")+"'.\nAvailable prefixes: '<= ', '>= '.\nAvailable suffixes: ' and smaller', ' and larger'.");this.registerTemplate(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"responsiveDefault",{set:function(t){this.registerDefault()},enumerable:!0,configurable:!0}),t.prototype.registerTemplate=function(t){this.host.register(t,this.templateRef)},t.prototype.registerDefault=function(){this.host.registerDefault(this.templateRef)},t.decorators=[{type:a.Directive,args:[{selector:"[responsiveCase], [responsiveDefault]"}]}],t.ctorParameters=function(){return[{type:a.TemplateRef},{type:r,decorators:[{type:a.Host}]}]},t.propDecorators={responsiveCase:[{type:a.Input,args:["responsiveCase"]}],responsiveDefault:[{type:a.Input,args:["responsiveDefault"]}]},t}(),s=function(){function t(t,e,a){this.tmpl=t,this.vcr=e,this.breakpoints=a}return t.prototype.ngOnInit=function(){var t=this;this.observe!==undefined&&0<this.observe.length&&(this.sub=this.breakpoints.observe(this.observe).subscribe(function(){return t.render()})),this.render()},t.prototype.render=function(){var e=this,t=Object.keys(this.alternativeElements).find(function(t){return e.breakpoints.isMatched(i[t])}),a=this.alternativeElements[t]||this.tmpl;this.vcr.clear(),this.vcr.createEmbeddedView(a),this.update!==undefined&&this.update.next(t||"Default")},t.prototype.ngOnDestroy=function(){this.sub!==undefined&&this.sub.unsubscribe(),this.vcr.clear()},t.decorators=[{type:a.Directive,args:[{selector:"[responsive]"}]}],t.ctorParameters=function(){return[{type:a.TemplateRef},{type:a.ViewContainerRef},{type:e.BreakpointObserver}]},t.propDecorators={alternativeElements:[{type:a.Input,args:["responsive"]}],observe:[{type:a.Input,args:["responsiveObserve"]}],update:[{type:a.Input,args:["responsiveUpdate"]}]},t}(),o=function(){function t(){}return t.decorators=[{type:a.NgModule,args:[{declarations:[d,r,s],imports:[],exports:[d,r,s]}]}],t}();(n=t.Observe||(t.Observe={})).ORIENTATION="(orientation:landscape)",n.MAX_WIDTH=function(t,e){return void 0===e&&(e="px"),"(max-width: "+t+e+")"},n.MIN_WIDTH=function(t,e){return void 0===e&&(e="px"),"(min-width: "+t+e+")"},n.ANY_WINDOW_CHANGE=["(max-width: 599.99px)","(max-width: 959.99px)","(max-width: 1279.99px)","(max-width: 1919.99px)"],t.ResponsiveSwitchDirective=r,t.ResponsiveCaseDirective=d,t.ResponsiveDirective=s,t.NgxCdkResponsiveModule=o,t.AllBreakpoints=i,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=ngx-cdk-responsive.umd.min.js.map

@@ -6,3 +6,4 @@ /**

import { NgModule } from '@angular/core';
import { ResponsiveCaseDirective, ResponsiveDirective } from './responsive.directive';
import { ResponsiveCaseDirective, ResponsiveSwitchDirective } from './responsive-switch.directive';
import { ResponsiveDirective } from './responsive.directive';
export class NgxCdkResponsiveModule {

@@ -12,7 +13,7 @@ }

{ type: NgModule, args: [{
declarations: [ResponsiveCaseDirective, ResponsiveDirective],
declarations: [ResponsiveCaseDirective, ResponsiveSwitchDirective, ResponsiveDirective],
imports: [],
exports: [ResponsiveCaseDirective, ResponsiveDirective]
exports: [ResponsiveCaseDirective, ResponsiveSwitchDirective, ResponsiveDirective]
},] }
];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNkay1yZXNwb25zaXZlLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jZGstcmVzcG9uc2l2ZS8iLCJzb3VyY2VzIjpbImxpYi9uZ3gtY2RrLXJlc3BvbnNpdmUubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBQyx1QkFBdUIsRUFBRSxtQkFBbUIsRUFBQyxNQUFNLHdCQUF3QixDQUFDO0FBT3BGLE1BQU0sT0FBTyxzQkFBc0I7OztZQUxsQyxRQUFRLFNBQUM7Z0JBQ1IsWUFBWSxFQUFFLENBQUMsdUJBQXVCLEVBQUUsbUJBQW1CLENBQUM7Z0JBQzVELE9BQU8sRUFBRSxFQUFFO2dCQUNYLE9BQU8sRUFBRSxDQUFDLHVCQUF1QixFQUFFLG1CQUFtQixDQUFDO2FBQ3hEIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7UmVzcG9uc2l2ZUNhc2VEaXJlY3RpdmUsIFJlc3BvbnNpdmVEaXJlY3RpdmV9IGZyb20gJy4vcmV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Wxhci9jb3JlJztcclxuaW1wb3J0IHtSZXNwb25zaXZlQ2FzZURpcmVjdGl2ZSwgUmVzcG9uc2l2ZVN3aXRjaERpcmVjdGl2ZX0gZnJvbSAnLi9yZXNwb25zaXZlLXN3aXRjaC5kaXJlY3RpdmUnO1xyXG5pbXBvcnQgeyBSZXNwb25zaXZlRGlyZWN0aXZlIH0gZnJvbSAnLi9yZXNwb25zaXZlLmRpcmVjdGl2ZSc7XHJcblxyXG5ATmdNb2R1bGUoe1xyXG4gIGRlY2xhcmF0aW9uczogW1Jlc3BvbnNpdmVDYXNlRGlyZWN0aXZlLCBSZXNwb25zaXZlU3dpdGNoRGlyZWN0aXZlLCBSZXNwb25zaXZlRGlyZWN0aXZlXSxcclxuICBpbXBvcnRzOiBbXSxcclxuICBleHBvcnRzOiBbUmVzcG9uc2l2ZUNhc2VEaXJlY3RpdmUsIFJlc3BvbnNpdmVTd2l0Y2hEaXJlY3RpdmUsIFJlc3BvbnNpdmVEaXJlY3RpdmVdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBOZ3hDZGtSZXNwb25zaXZlTW9kdWxlIHsgfVxyXG4iXX0=

@@ -5,15 +5,16 @@ /**

*/
import { Directive, EventEmitter, Host, Input, Output, TemplateRef, ViewContainerRef } from '@angular/core';
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
import { AllBreakpoints } from './internal';
import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core';
import { BreakpointObserver } from '@angular/cdk/layout';
import { Subject } from 'rxjs';
import { AllBreakpoints } from './models';
export class ResponsiveDirective {
/**
* @param {?} tmpl
* @param {?} vcr
* @param {?} breakpoints
*/
constructor(vcr, breakpoints) {
constructor(tmpl, vcr, breakpoints) {
this.tmpl = tmpl;
this.vcr = vcr;
this.breakpoints = breakpoints;
this.updated = new EventEmitter();
this.registeredTemplates = new Map();
}

@@ -27,32 +28,16 @@ /**

}
}
/**
* @param {?} size
* @param {?} template
* @return {?}
*/
register(size, template) {
this.registeredTemplates.set(size.trim(), template);
this.render();
}
/**
* @param {?} template
* @return {?}
*/
registerDefault(template) {
this.defaultTemplate = template;
this.render();
}
/**
* @return {?}
*/
render() {
/** @type {?} */
const usedSize = Array.from(this.registeredTemplates.keys()).find(size => this.breakpoints.isMatched(AllBreakpoints[size]));
const usedSize = Object.keys(this.alternativeElements).find(size => this.breakpoints.isMatched(AllBreakpoints[size]));
/** @type {?} */
const usedTemplate = this.registeredTemplates.get(usedSize) || this.defaultTemplate;
if (usedTemplate !== undefined) {
this.vcr.clear();
this.vcr.createEmbeddedView(usedTemplate);
this.updated.emit(usedSize || 'Default');
const usedTemplate = this.alternativeElements[usedSize] || this.tmpl;
this.vcr.clear();
this.vcr.createEmbeddedView(usedTemplate);
if (this.update !== undefined) {
this.update.next(usedSize || 'Default');
}

@@ -67,2 +52,3 @@ }

}
this.vcr.clear();
}

@@ -77,2 +63,3 @@ }

ResponsiveDirective.ctorParameters = () => [
{ type: TemplateRef },
{ type: ViewContainerRef },

@@ -82,10 +69,13 @@ { type: BreakpointObserver }

ResponsiveDirective.propDecorators = {
observe: [{ type: Input }],
updated: [{ type: Output }]
alternativeElements: [{ type: Input, args: ['responsive',] }],
observe: [{ type: Input, args: ['responsiveObserve',] }],
update: [{ type: Input, args: ['responsiveUpdate',] }]
};
if (false) {
/** @type {?} */
ResponsiveDirective.prototype.alternativeElements;
/** @type {?} */
ResponsiveDirective.prototype.observe;
/** @type {?} */
ResponsiveDirective.prototype.updated;
ResponsiveDirective.prototype.update;
/**

@@ -95,3 +85,3 @@ * @type {?}

*/
ResponsiveDirective.prototype.registeredTemplates;
ResponsiveDirective.prototype.sub;
/**

@@ -101,3 +91,3 @@ * @type {?}

*/
ResponsiveDirective.prototype.defaultTemplate;
ResponsiveDirective.prototype.tmpl;
/**

@@ -107,7 +97,2 @@ * @type {?}

*/
ResponsiveDirective.prototype.sub;
/**
* @type {?}
* @private
*/
ResponsiveDirective.prototype.vcr;

@@ -120,76 +105,2 @@ /**

}
export class ResponsiveCaseDirective {
/**
* @param {?} templateRef
* @param {?} host
*/
constructor(templateRef, host) {
this.templateRef = templateRef;
this.host = host;
}
/**
* @param {?} size
* @return {?}
*/
set responsiveCase(size) {
if (size === null) {
throw new Error('No \'size\' passed. Use \'responsive.default\' for default case.');
}
size = size.startsWith('<=') ? size.substring(2).trim() + ' and smaller' : size;
size = size.startsWith('>=') ? size.substring(2).trim() + ' and larger' : size;
if (!(size in AllBreakpoints)) {
throw new Error(`No such size '${size}'. Choose either prefix, suffix, or none.
Available base breakpoints: '${Object.keys(Breakpoints).join('\', \'')}'.
Available prefixes: '<= ', '>= '.
Available suffixes: ' and smaller', ' and larger'.`);
}
this.registerTemplate(size);
}
/**
* @param {?} _
* @return {?}
*/
set responsiveDefault(_) {
this.registerDefault();
}
/**
* @param {?} breakpoint
* @return {?}
*/
registerTemplate(breakpoint) {
this.host.register(breakpoint, this.templateRef);
}
/**
* @return {?}
*/
registerDefault() {
this.host.registerDefault(this.templateRef);
}
}
ResponsiveCaseDirective.decorators = [
{ type: Directive, args: [{
selector: '[responsiveCase], [responsiveDefault]' // tslint:disable-line
},] }
];
/** @nocollapse */
ResponsiveCaseDirective.ctorParameters = () => [
{ type: TemplateRef },
{ type: ResponsiveDirective, decorators: [{ type: Host }] }
];
ResponsiveCaseDirective.propDecorators = {
responsiveCase: [{ type: Input, args: ['responsiveCase',] }],
responsiveDefault: [{ type: Input, args: ['responsiveDefault',] }]
};
if (false) {
/**
* @type {?}
* @private
*/
ResponsiveCaseDirective.prototype.templateRef;
/**
* @type {?}
* @private
*/
ResponsiveCaseDirective.prototype.host;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzcG9uc2l2ZS5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtY2RrLXJlc3BvbnNpdmUvIiwic291cmNlcyI6WyJsaWIvcmVzcG9uc2l2ZS5kaXJlY3RpdmUudHMiXSwibmFt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XIoKTtcclxuICB9XHJcblxyXG4gIHJlbmRlcigpIHtcclxuICAgIGNvbnN0IHVzZWRTaXplID0gT2JqZWN0LmtleXModGhpcy5hbHRlcm5hdGl2ZUVsZW1lbnRzKS5maW5kKHNpemUgPT4gdGhpcy5icmVha3BvaW50cy5pc01hdGNoZWQoQWxsQnJlYWtwb2ludHNbc2l6ZV0pKTtcclxuICAgIGNvbnN0IHVzZWRUZW1wbGF0ZSA9IHRoaXMuYWx0ZXJuYXRpdmVFbGVtZW50c1t1c2VkU2l6ZV0gfHwgdGhpcy50bXBsO1xyXG4gICAgdGhpcy52Y3IuY2xlYXIoKTtcclxuICAgIHRoaXMudmNyLmNyZWF0ZUVtYmVkZGVkVmlldyh1c2VkVGVtcGxhdGUpO1xyXG4gICAgaWYgKHRoaXMudXBkYXRlICE9PSB1bmRlZmluZWQpIHtcclxuICAgICAgdGhpcy51cGRhdGUubmV4dCh1c2VkU2l6ZSB8fCAnRGVmYXVsdCcpO1xyXG4gICAgfVxyXG4gIH1cclxuXHJcbiAgbmdPbkRlc3Ryb3koKSB7XHJcbiAgICBpZiAodGhpcy5zdWIgIT09IHVuZGVmaW5lZCkge1xyXG4gICAgICB0aGlzLnN1Yi51bnN1YnNjcmliZSgpO1xyXG4gICAgfVxyXG4gICAgdGhpcy52Y3IuY2xlYXIoKTtcclxuICB9XHJcblxyXG59XHJcbiJdfQ==

@@ -8,3 +8,3 @@ /**

*/
export { ResponsiveDirective, ResponsiveCaseDirective, NgxCdkResponsiveModule, Observe } from './public_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNkay1yZXNwb25zaXZlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWNkay1yZXNwb25zaXZlLyIsInNvdXJjZXMiOlsibmd4LWNkay1yZXNwb25zaXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSw4RkFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
export { ResponsiveSwitchDirective, ResponsiveCaseDirective, ResponsiveDirective, NgxCdkResponsiveModule, Observe, AllBreakpoints } from './public_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNkay1yZXNwb25zaXZlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWNkay1yZXNwb25zaXZlLyIsInNvdXJjZXMiOlsibmd4LWNkay1yZXNwb25zaXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSx5SUFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=

@@ -8,5 +8,7 @@ /**

*/
export { ResponsiveDirective, ResponsiveCaseDirective } from './lib/responsive.directive';
export { ResponsiveSwitchDirective, ResponsiveCaseDirective } from './lib/responsive-switch.directive';
export { ResponsiveDirective } from './lib/responsive.directive';
export { NgxCdkResponsiveModule } from './lib/ngx-cdk-responsive.module';
export { Observe } from './lib/observe';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jZGstcmVzcG9uc2l2ZS8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUlBLDZEQUFjLDRCQUE0QixDQUFDO0FBQzNDLHVDQUFjLGlDQUFpQyxDQUFDO0FBQ2hELHdCQUF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yc7XHJcbiJdfQ==

@@ -6,3 +6,4 @@ /**

import { NgModule } from '@angular/core';
import { ResponsiveCaseDirective, ResponsiveDirective } from './responsive.directive';
import { ResponsiveCaseDirective, ResponsiveSwitchDirective } from './responsive-switch.directive';
import { ResponsiveDirective } from './responsive.directive';
var NgxCdkResponsiveModule = /** @class */ (function () {

@@ -13,5 +14,5 @@ function NgxCdkResponsiveModule() {

{ type: NgModule, args: [{
declarations: [ResponsiveCaseDirective, ResponsiveDirective],
declarations: [ResponsiveCaseDirective, ResponsiveSwitchDirective, ResponsiveDirective],
imports: [],
exports: [ResponsiveCaseDirective, ResponsiveDirective]
exports: [ResponsiveCaseDirective, ResponsiveSwitchDirective, ResponsiveDirective]
},] }

@@ -22,2 +23,2 @@ ];

export { NgxCdkResponsiveModule };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNkay1yZXNwb25zaXZlLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jZGstcmVzcG9uc2l2ZS8iLCJzb3VyY2VzIjpbImxpYi9uZ3gtY2RrLXJlc3BvbnNpdmUubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBQyx1QkFBdUIsRUFBRSxtQkFBbUIsRUFBQyxNQUFNLHdCQUF3QixDQUFDO0FBRXBGO0lBQUE7SUFLc0MsQ0FBQzs7Z0JBTHRDLFFBQVEsU0FBQztvQkFDUixZQUFZLEVBQUUsQ0FBQyx1QkFBdUIsRUFBRSxtQkFBbUIsQ0FBQztvQkFDNUQsT0FBTyxFQUFFLEVBQUU7b0JBQ1gsT0FBTyxFQUFFLENBQUMsdUJBQXVCLEVBQUUsbUJBQW1CLENBQUM7aUJBQ3hEOztJQUNxQyw2QkFBQztDQUFBLEFBTHZDLElBS3VDO1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QztvQkFDdkYsT0FBTyxFQUFFLEVBQUU7b0JBQ1gsT0FBTyxFQUFFLENBQUMsdUJBQXVCLEVBQUUseUJBQXlCLEVBQUUsbUJBQW1CLENBQUM7aUJBQ25GOztJQUNxQyw2QkFBQztDQUFBLEFBTHZDLElBS3VDO1NBQTFCLHNCQUFzQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcbmltcG9ydCB7UmVzcG9uc2l2ZUNhc2VEaXJlY3RpdmUsIFJlc3BvbnNpdmVTd2l0Y2hEaXJlY3RpdmV9IGZyb20gJy4vcmVzcG9uc2l2ZS1zd2l0Y2guZGlyZWN0aXZlJztcclxuaW1wb3J0IHsgUmVzcG9uc2l2ZURpcmVjdGl2ZSB9IGZyb20gJy4vcmVzcG9uc2l2ZS5kaXJlY3RpdmUnO1xyXG5cclxuQE5nTW9kdWxlKHtcclxuICBkZWNsYXJhdGlvbnM6IFtSZXNwb25zaXZlQ2FzZURpcmVjdGl2ZSwgUmVzcG9uc2l2ZVN3aXRjaERpcmVjdGl2ZSwgUmVzcG9uc2l2ZURpcmVjdGl2ZV0sXHJcbiAgaW1wb3J0czogW10sXHJcbiAgZXhwb3J0czogW1Jlc3BvbnNpdmVDYXNlRGlyZWN0aXZlLCBSZXNwb25zaXZlU3dpdGNoRGlyZWN0aXZlLCBSZXNwb25zaXZlRGlyZWN0aXZlXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgTmd4Q2RrUmVzcG9uc2l2ZU1vZHVsZSB7IH1cclxuIl19

@@ -5,11 +5,11 @@ /**

*/
import { Directive, EventEmitter, Host, Input, Output, TemplateRef, ViewContainerRef } from '@angular/core';
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
import { AllBreakpoints } from './internal';
import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core';
import { BreakpointObserver } from '@angular/cdk/layout';
import { Subject } from 'rxjs';
import { AllBreakpoints } from './models';
var ResponsiveDirective = /** @class */ (function () {
function ResponsiveDirective(vcr, breakpoints) {
function ResponsiveDirective(tmpl, vcr, breakpoints) {
this.tmpl = tmpl;
this.vcr = vcr;
this.breakpoints = breakpoints;
this.updated = new EventEmitter();
this.registeredTemplates = new Map();
}

@@ -27,32 +27,7 @@ /**

}
};
/**
* @param {?} size
* @param {?} template
* @return {?}
*/
ResponsiveDirective.prototype.register = /**
* @param {?} size
* @param {?} template
* @return {?}
*/
function (size, template) {
this.registeredTemplates.set(size.trim(), template);
this.render();
};
/**
* @param {?} template
* @return {?}
*/
ResponsiveDirective.prototype.registerDefault = /**
* @param {?} template
* @return {?}
*/
function (template) {
this.defaultTemplate = template;
this.render();
};
/**
* @return {?}
*/
ResponsiveDirective.prototype.render = /**

@@ -64,9 +39,9 @@ * @return {?}

/** @type {?} */
var usedSize = Array.from(this.registeredTemplates.keys()).find(function (size) { return _this.breakpoints.isMatched(AllBreakpoints[size]); });
var usedSize = Object.keys(this.alternativeElements).find(function (size) { return _this.breakpoints.isMatched(AllBreakpoints[size]); });
/** @type {?} */
var usedTemplate = this.registeredTemplates.get(usedSize) || this.defaultTemplate;
if (usedTemplate !== undefined) {
this.vcr.clear();
this.vcr.createEmbeddedView(usedTemplate);
this.updated.emit(usedSize || 'Default');
var usedTemplate = this.alternativeElements[usedSize] || this.tmpl;
this.vcr.clear();
this.vcr.createEmbeddedView(usedTemplate);
if (this.update !== undefined) {
this.update.next(usedSize || 'Default');
}

@@ -84,2 +59,3 @@ };

}
this.vcr.clear();
};

@@ -93,2 +69,3 @@ ResponsiveDirective.decorators = [

ResponsiveDirective.ctorParameters = function () { return [
{ type: TemplateRef },
{ type: ViewContainerRef },

@@ -98,4 +75,5 @@ { type: BreakpointObserver }

ResponsiveDirective.propDecorators = {
observe: [{ type: Input }],
updated: [{ type: Output }]
alternativeElements: [{ type: Input, args: ['responsive',] }],
observe: [{ type: Input, args: ['responsiveObserve',] }],
update: [{ type: Input, args: ['responsiveUpdate',] }]
};

@@ -107,5 +85,7 @@ return ResponsiveDirective;

/** @type {?} */
ResponsiveDirective.prototype.alternativeElements;
/** @type {?} */
ResponsiveDirective.prototype.observe;
/** @type {?} */
ResponsiveDirective.prototype.updated;
ResponsiveDirective.prototype.update;
/**

@@ -115,3 +95,3 @@ * @type {?}

*/
ResponsiveDirective.prototype.registeredTemplates;
ResponsiveDirective.prototype.sub;
/**

@@ -121,3 +101,3 @@ * @type {?}

*/
ResponsiveDirective.prototype.defaultTemplate;
ResponsiveDirective.prototype.tmpl;
/**

@@ -127,7 +107,2 @@ * @type {?}

*/
ResponsiveDirective.prototype.sub;
/**
* @type {?}
* @private
*/
ResponsiveDirective.prototype.vcr;

@@ -140,86 +115,2 @@ /**

}
var ResponsiveCaseDirective = /** @class */ (function () {
function ResponsiveCaseDirective(templateRef, host) {
this.templateRef = templateRef;
this.host = host;
}
Object.defineProperty(ResponsiveCaseDirective.prototype, "responsiveCase", {
set: /**
* @param {?} size
* @return {?}
*/
function (size) {
if (size === null) {
throw new Error('No \'size\' passed. Use \'responsive.default\' for default case.');
}
size = size.startsWith('<=') ? size.substring(2).trim() + ' and smaller' : size;
size = size.startsWith('>=') ? size.substring(2).trim() + ' and larger' : size;
if (!(size in AllBreakpoints)) {
throw new Error("No such size '" + size + "'. Choose either prefix, suffix, or none.\nAvailable base breakpoints: '" + Object.keys(Breakpoints).join('\', \'') + "'.\nAvailable prefixes: '<= ', '>= '.\nAvailable suffixes: ' and smaller', ' and larger'.");
}
this.registerTemplate(size);
},
enumerable: true,
configurable: true
});
Object.defineProperty(ResponsiveCaseDirective.prototype, "responsiveDefault", {
set: /**
* @param {?} _
* @return {?}
*/
function (_) {
this.registerDefault();
},
enumerable: true,
configurable: true
});
/**
* @param {?} breakpoint
* @return {?}
*/
ResponsiveCaseDirective.prototype.registerTemplate = /**
* @param {?} breakpoint
* @return {?}
*/
function (breakpoint) {
this.host.register(breakpoint, this.templateRef);
};
/**
* @return {?}
*/
ResponsiveCaseDirective.prototype.registerDefault = /**
* @return {?}
*/
function () {
this.host.registerDefault(this.templateRef);
};
ResponsiveCaseDirective.decorators = [
{ type: Directive, args: [{
selector: '[responsiveCase], [responsiveDefault]' // tslint:disable-line
},] }
];
/** @nocollapse */
ResponsiveCaseDirective.ctorParameters = function () { return [
{ type: TemplateRef },
{ type: ResponsiveDirective, decorators: [{ type: Host }] }
]; };
ResponsiveCaseDirective.propDecorators = {
responsiveCase: [{ type: Input, args: ['responsiveCase',] }],
responsiveDefault: [{ type: Input, args: ['responsiveDefault',] }]
};
return ResponsiveCaseDirective;
}());
export { ResponsiveCaseDirective };
if (false) {
/**
* @type {?}
* @private
*/
ResponsiveCaseDirective.prototype.templateRef;
/**
* @type {?}
* @private
*/
ResponsiveCaseDirective.prototype.host;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzcG9uc2l2ZS5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtY2RrLXJlc3BvbnNpdmUvIiwic291cmNlcyI6WyJsaWIvcmVzcG9uc2l2ZS5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsWUFBWSxFQUFFLElBQUksRUFBRSxLQUFLLEVBQXFCLE1BQU0sRUFBRSxXQUFXLEVBQUUsZ0JBQWdCLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDN0gsT0FBTyxFQUFDLGtCQUFrQixFQUFFLFdBQVcsRUFBQyxNQUFNLHFCQUFxQixDQUFDO0FBRXBFLE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSxZQUFZLENBQUM7QUFFMUM7SUFZRSw2QkFBb0IsR0FBcUIsRUFDckIsV0FBK0I7UUFEL0IsUUFBRyxHQUFILEdBQUcsQ0FBa0I7UUFDckIsZ0JBQVcsR0FBWCxXQUFXLENBQW9CO1FBUHpDLFlBQU8sR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dC5rZXlzKHRoaXMuYWx0ZXJuYXRpdmVFbGVtZW50cykuZmluZChzaXplID0+IHRoaXMuYnJlYWtwb2ludHMuaXNNYXRjaGVkKEFsbEJyZWFrcG9pbnRzW3NpemVdKSk7XHJcbiAgICBjb25zdCB1c2VkVGVtcGxhdGUgPSB0aGlzLmFsdGVybmF0aXZlRWxlbWVudHNbdXNlZFNpemVdIHx8IHRoaXMudG1wbDtcclxuICAgIHRoaXMudmNyLmNsZWFyKCk7XHJcbiAgICB0aGlzLnZjci5jcmVhdGVFbWJlZGRlZFZpZXcodXNlZFRlbXBsYXRlKTtcclxuICAgIGlmICh0aGlzLnVwZGF0ZSAhPT0gdW5kZWZpbmVkKSB7XHJcbiAgICAgIHRoaXMudXBkYXRlLm5leHQodXNlZFNpemUgfHwgJ0RlZmF1bHQnKTtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIG5nT25EZXN0cm95KCkge1xyXG4gICAgaWYgKHRoaXMuc3ViICE9PSB1bmRlZmluZWQpIHtcclxuICAgICAgdGhpcy5zdWIudW5zdWJzY3JpYmUoKTtcclxuICAgIH1cclxuICAgIHRoaXMudmNyLmNsZWFyKCk7XHJcbiAgfVxyXG5cclxufVxyXG4iXX0=

@@ -8,3 +8,3 @@ /**

*/
export { ResponsiveDirective, ResponsiveCaseDirective, NgxCdkResponsiveModule, Observe } from './public_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNkay1yZXNwb25zaXZlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWNkay1yZXNwb25zaXZlLyIsInNvdXJjZXMiOlsibmd4LWNkay1yZXNwb25zaXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSw4RkFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
export { ResponsiveSwitchDirective, ResponsiveCaseDirective, ResponsiveDirective, NgxCdkResponsiveModule, Observe, AllBreakpoints } from './public_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNkay1yZXNwb25zaXZlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWNkay1yZXNwb25zaXZlLyIsInNvdXJjZXMiOlsibmd4LWNkay1yZXNwb25zaXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSx5SUFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=

@@ -8,5 +8,7 @@ /**

*/
export { ResponsiveDirective, ResponsiveCaseDirective } from './lib/responsive.directive';
export { ResponsiveSwitchDirective, ResponsiveCaseDirective } from './lib/responsive-switch.directive';
export { ResponsiveDirective } from './lib/responsive.directive';
export { NgxCdkResponsiveModule } from './lib/ngx-cdk-responsive.module';
export { Observe } from './lib/observe';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jZGstcmVzcG9uc2l2ZS8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUlBLDZEQUFjLDRCQUE0QixDQUFDO0FBQzNDLHVDQUFjLGlDQUFpQyxDQUFDO0FBQ2hELHdCQUFjLGVBQWUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2Ygbmd4LWNkay1yZXNwb25zaXZlXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvcmVzcG9uc2l2ZS5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbmd4LWNkay1yZXNwb25zaXZlLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9vYnNlcnZlJztcbiJdfQ==
export { AllBreakpoints } from './lib/models';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jZGstcmVzcG9uc2l2ZS8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUlBLG1FQUFjLG1DQUFtQyxDQUFDO0FBQ2xELG9DQUFjLDRCQUE0QixDQUFDO0FBQzNDLHVDQUFjLGlDQUFpQyxDQUFDO0FBQ2hELHdCQUFjLGVBQWUsQ0FBQztBQUM5QiwrQkFBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2Ygbmd4LWNkay1yZXNwb25zaXZlXHJcbiAqL1xyXG5cclxuZXhwb3J0ICogZnJvbSAnLi9saWIvcmVzcG9uc2l2ZS1zd2l0Y2guZGlyZWN0aXZlJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvcmVzcG9uc2l2ZS5kaXJlY3RpdmUnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9uZ3gtY2RrLXJlc3BvbnNpdmUubW9kdWxlJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvb2JzZXJ2ZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL21vZGVscyc7XHJcbiJdfQ==

@@ -1,3 +0,4 @@

import { Breakpoints, BreakpointObserver } from '@angular/cdk/layout';
import { Directive, EventEmitter, Host, Input, Output, TemplateRef, ViewContainerRef, NgModule } from '@angular/core';
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
import 'rxjs';

@@ -8,21 +9,48 @@ /**

*/
// tslint:disable:max-line-length
/** @type {?} */
const regexMinWidth = /\(min-width: \d+?px\)/g;
/** @type {?} */
const regexMaxWidth = /\(max-width: (\d|\.)+?px\)/g;
/** @type {?} */
const AllBreakpoints = Object.entries(Breakpoints).reduce((acc, [key, value]) => {
/** @type {?} */
const keyAndSmaller = key + ' and smaller';
/** @type {?} */
const keyAndLarger = key + ' and larger';
/** @type {?} */
const valueAndSmaller = value.replace(regexMinWidth, '(min-width: 0px)');
/** @type {?} */
const valueAndLarger = value.replace(regexMaxWidth, '(max-width: 1000000px)');
acc[key] = value;
acc[keyAndSmaller] = valueAndSmaller;
acc[keyAndLarger] = valueAndLarger;
return acc;
}, {});
const AllBreakpoints = {
'XSmall': '(max-width: 599.99px)',
'XSmall and smaller': '(max-width: 599.99px)',
'XSmall and larger': '(max-width: 1000000px)',
'Small': '(min-width: 600px) and (max-width: 959.99px)',
'Small and smaller': '(min-width: 0px) and (max-width: 959.99px)',
'Small and larger': '(min-width: 600px) and (max-width: 1000000px)',
'Medium': '(min-width: 960px) and (max-width: 1279.99px)',
'Medium and smaller': '(min-width: 0px) and (max-width: 1279.99px)',
'Medium and larger': '(min-width: 960px) and (max-width: 1000000px)',
'Large': '(min-width: 1280px) and (max-width: 1919.99px)',
'Large and smaller': '(min-width: 0px) and (max-width: 1919.99px)',
'Large and larger': '(min-width: 1280px) and (max-width: 1000000px)',
'XLarge': '(min-width: 1920px)',
'XLarge and smaller': '(min-width: 0px)',
'XLarge and larger': '(min-width: 1920px)',
'Handset': '(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)',
'Handset and smaller': '(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)',
'Handset and larger': '(max-width: 1000000px) and (orientation: portrait), (max-width: 1000000px) and (orientation: landscape)',
'Tablet': '(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)',
'Tablet and smaller': '(min-width: 0px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 0px) and (max-width: 1279.99px) and (orientation: landscape)',
'Tablet and larger': '(min-width: 600px) and (max-width: 1000000px) and (orientation: portrait), (min-width: 960px) and (max-width: 1000000px) and (orientation: landscape)',
'Web': '(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)',
'Web and smaller': '(min-width: 0px) and (orientation: portrait), (min-width: 0px) and (orientation: landscape)',
'Web and larger': '(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)',
'HandsetPortrait': '(max-width: 599.99px) and (orientation: portrait)',
'HandsetPortrait and smaller': '(max-width: 599.99px) and (orientation: portrait)',
'HandsetPortrait and larger': '(max-width: 1000000px) and (orientation: portrait)',
'TabletPortrait': '(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)',
'TabletPortrait and smaller': '(min-width: 0px) and (max-width: 839.99px) and (orientation: portrait)',
'TabletPortrait and larger': '(min-width: 600px) and (max-width: 1000000px) and (orientation: portrait)',
'WebPortrait': '(min-width: 840px) and (orientation: portrait)',
'WebPortrait and smaller': '(min-width: 0px) and (orientation: portrait)',
'WebPortrait and larger': '(min-width: 840px) and (orientation: portrait)',
'HandsetLandscape': '(max-width: 959.99px) and (orientation: landscape)',
'HandsetLandscape and smaller': '(max-width: 959.99px) and (orientation: landscape)',
'HandsetLandscape and larger': '(max-width: 1000000px) and (orientation: landscape)',
'TabletLandscape': '(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)',
'TabletLandscape and smaller': '(min-width: 0px) and (max-width: 1279.99px) and (orientation: landscape)',
'TabletLandscape and larger': '(min-width: 960px) and (max-width: 1000000px) and (orientation: landscape)',
'WebLandscape': '(min-width: 1280px) and (orientation: landscape)',
'WebLandscape and smaller': '(min-width: 0px) and (orientation: landscape)',
'WebLandscape and larger': '(min-width: 1280px) and (orientation: landscape)'
};

@@ -33,3 +61,3 @@ /**

*/
class ResponsiveDirective {
class ResponsiveSwitchDirective {
/**

@@ -42,4 +70,4 @@ * @param {?} vcr

this.breakpoints = breakpoints;
this.updated = new EventEmitter();
this.registeredTemplates = new Map();
this.update = new EventEmitter();
this.registeredTemplates = {};
}

@@ -60,3 +88,3 @@ /**

register(size, template) {
this.registeredTemplates.set(size.trim(), template);
this.registeredTemplates[size.trim()] = template;
this.render();

@@ -77,9 +105,9 @@ }

/** @type {?} */
const usedSize = Array.from(this.registeredTemplates.keys()).find(size => this.breakpoints.isMatched(AllBreakpoints[size]));
const usedSize = Object.keys(this.registeredTemplates).find(size => this.breakpoints.isMatched(AllBreakpoints[size]));
/** @type {?} */
const usedTemplate = this.registeredTemplates.get(usedSize) || this.defaultTemplate;
const usedTemplate = this.registeredTemplates[usedSize] || this.defaultTemplate;
if (usedTemplate !== undefined) {
this.vcr.clear();
this.vcr.createEmbeddedView(usedTemplate);
this.updated.emit(usedSize || 'Default');
this.update.emit(usedSize || 'Default');
}

@@ -94,17 +122,18 @@ }

}
this.vcr.clear();
}
}
ResponsiveDirective.decorators = [
ResponsiveSwitchDirective.decorators = [
{ type: Directive, args: [{
selector: '[responsive]' // tslint:disable-line
selector: '[responsiveSwitch]' // tslint:disable-line
},] }
];
/** @nocollapse */
ResponsiveDirective.ctorParameters = () => [
ResponsiveSwitchDirective.ctorParameters = () => [
{ type: ViewContainerRef },
{ type: BreakpointObserver }
];
ResponsiveDirective.propDecorators = {
ResponsiveSwitchDirective.propDecorators = {
observe: [{ type: Input }],
updated: [{ type: Output }]
update: [{ type: Output }]
};

@@ -167,3 +196,3 @@ class ResponsiveCaseDirective {

{ type: TemplateRef },
{ type: ResponsiveDirective, decorators: [{ type: Host }] }
{ type: ResponsiveSwitchDirective, decorators: [{ type: Host }] }
];

@@ -179,2 +208,67 @@ ResponsiveCaseDirective.propDecorators = {

*/
class ResponsiveDirective {
/**
* @param {?} tmpl
* @param {?} vcr
* @param {?} breakpoints
*/
constructor(tmpl, vcr, breakpoints) {
this.tmpl = tmpl;
this.vcr = vcr;
this.breakpoints = breakpoints;
}
/**
* @return {?}
*/
ngOnInit() {
if (this.observe !== undefined && this.observe.length > 0) {
this.sub = this.breakpoints.observe(this.observe).subscribe(() => this.render());
}
this.render();
}
/**
* @return {?}
*/
render() {
/** @type {?} */
const usedSize = Object.keys(this.alternativeElements).find(size => this.breakpoints.isMatched(AllBreakpoints[size]));
/** @type {?} */
const usedTemplate = this.alternativeElements[usedSize] || this.tmpl;
this.vcr.clear();
this.vcr.createEmbeddedView(usedTemplate);
if (this.update !== undefined) {
this.update.next(usedSize || 'Default');
}
}
/**
* @return {?}
*/
ngOnDestroy() {
if (this.sub !== undefined) {
this.sub.unsubscribe();
}
this.vcr.clear();
}
}
ResponsiveDirective.decorators = [
{ type: Directive, args: [{
selector: '[responsive]' // tslint:disable-line
},] }
];
/** @nocollapse */
ResponsiveDirective.ctorParameters = () => [
{ type: TemplateRef },
{ type: ViewContainerRef },
{ type: BreakpointObserver }
];
ResponsiveDirective.propDecorators = {
alternativeElements: [{ type: Input, args: ['responsive',] }],
observe: [{ type: Input, args: ['responsiveObserve',] }],
update: [{ type: Input, args: ['responsiveUpdate',] }]
};
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
class NgxCdkResponsiveModule {

@@ -184,5 +278,5 @@ }

{ type: NgModule, args: [{
declarations: [ResponsiveCaseDirective, ResponsiveDirective],
declarations: [ResponsiveCaseDirective, ResponsiveSwitchDirective, ResponsiveDirective],
imports: [],
exports: [ResponsiveCaseDirective, ResponsiveDirective]
exports: [ResponsiveCaseDirective, ResponsiveSwitchDirective, ResponsiveDirective]
},] }

@@ -213,4 +307,4 @@ ];

export { ResponsiveDirective, ResponsiveCaseDirective, NgxCdkResponsiveModule, Observe };
export { ResponsiveSwitchDirective, ResponsiveCaseDirective, ResponsiveDirective, NgxCdkResponsiveModule, Observe, AllBreakpoints };
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNkay1yZXNwb25zaXZlLmpzLm1hcCIsInNvdXJjZXMiOlsibmc6Ly9uZ3gtY2RrLXJlc3BvbnNpdmUvbGliL2ludGVybmFsLnRzIiwibmc6Ly9uZ3gtY2RrLXJlc3BvbnNpdmUvbGliL3Jlc3BvbnNpdmUuZGlyZWN0aXZlLnRzIiwibmc6Ly9uZ3gtY2RrLXJlc3BvbnNpdmUvbGliL25neC1jZGstcmVzcG9uc2l2ZS5tb2R1bGUudHMiLCJuZzovL25neC1jZGstcmVzcG9uc2l2ZS9saWIvb2JzZXJ2ZS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0JyZWFrcG9pbnRzfSBmcm9tICdAYW5ndWxhci9jZGsvbGF5b3V0JztcclxuXHJcbmNvbnN0IHJlZ2V4TWluV2lkdGggPSAvXFwobWluLXdpZHRoOiBcXGQrP3B4XFwpL2c7XHJcbmNvbnN0IHJlZ2V4TWF4V2lkdGggPSAvXFwobWF4LXdpZHRoOiAoXFxkfFxcLikrP3B4XFwpL2c7XHJcblxyXG5leHBvcnQgY29uc3QgQWxsQnJlYWtwb2ludHMgPSBPYmplY3QuZW50cmllcyhCcmVha3BvaW50cykucmVkdWNlKChhY2MsIFtrZXksIHZhbHVlXSkgPT4ge1xyXG4gIGNvbnN0IGtleUFuZFNtYWxsZXIgPSBrZXkgKyAnIGFuZCBzbWFsbGVyJztcclxuICBjb25zdCBrZXlBbmRMYXJnZXIgPSBrZXkgKyAnIGFuZCBsYXJnZXInO1xyXG5cclxuICBjb25zdCB2YWx1ZUFuZFNtYWxsZXIgPSB2YWx1ZS5yZXBsYWNlKHJlZ2V4TWluV2lkdGgsICcobWluLXdpZHRoOiAwcHgpJyk7XHJcbiAgY29uc3QgdmFsdWVBbmRMYXJnZXIgPSB2YWx1ZS5yZ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0FBQztnQkFDVCxRQUFRLEVBQUUsY0FBYzthQUN6Qjs7OztZQVI0QyxXQUFXO1lBQUUsZ0JBQWdCO1lBQ2xFLGtCQUFrQjs7O2tDQVd2QixLQUFLLFNBQUMsWUFBWTtzQkFDbEIsS0FBSyxTQUFDLG1CQUFtQjtxQkFDekIsS0FBSyxTQUFDLGtCQUFrQjs7Ozs7OztBQ2QzQixNQVNhLHNCQUFzQjs7O1lBTGxDLFFBQVEsU0FBQztnQkFDUixZQUFZLEVBQUUsQ0FBQyx1QkFBdUIsRUFBRSx5QkFBeUIsRUFBRSxtQkFBbUIsQ0FBQztnQkFDdkYsT0FBTyxFQUFFLEVBQUU7Z0JBQ1gsT0FBTyxFQUFFLENBQUMsdUJBQXVCLEVBQUUseUJBQXlCLEVBQUUsbUJBQW1CLENBQUM7YUFDbkY7Ozs7Ozs7QUNSRCxJQUFpQixPQUFPLENBS3ZCO0FBTEQsV0FBaUIsT0FBTztJQUNULG1CQUFXLEdBQUcseUJBQXlCO0lBQ3ZDLGlCQUFTLEdBQUcsQ0FBQyxLQUFhLEVBQUUsT0FBZSxJQUFJLEtBQUssZUFBZSxLQUFLLEdBQUcsSUFBSSxHQUFHO0lBQ2xGLGlCQUFTLEdBQUcsQ0FBQyxLQUFhLEVBQUUsT0FBZSxJQUFJLEtBQUssZUFBZSxLQUFLLEdBQUcsSUFBSSxHQUFHO0lBQ2xGLHlCQUFpQixHQUFHLENBQUMsdUJBQXVCLEVBQUUsdUJBQXVCLEVBQUUsd0JBQXdCLEVBQUUsd0JBQXdCLENBQUM7Q0FDeEksRUFMZ0IsT0FBTyxLQUFQLE9BQU8sUUFLdkI7Ozs7Ozs7Ozs7Ozs7OyJ9

@@ -1,4 +0,4 @@

import { __read } from 'tslib';
import { Breakpoints, BreakpointObserver } from '@angular/cdk/layout';
import { Directive, EventEmitter, Host, Input, Output, TemplateRef, ViewContainerRef, NgModule } from '@angular/core';
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
import 'rxjs';

@@ -9,22 +9,48 @@ /**

*/
// tslint:disable:max-line-length
/** @type {?} */
var regexMinWidth = /\(min-width: \d+?px\)/g;
/** @type {?} */
var regexMaxWidth = /\(max-width: (\d|\.)+?px\)/g;
/** @type {?} */
var AllBreakpoints = Object.entries(Breakpoints).reduce(function (acc, _a) {
var _b = __read(_a, 2), key = _b[0], value = _b[1];
/** @type {?} */
var keyAndSmaller = key + ' and smaller';
/** @type {?} */
var keyAndLarger = key + ' and larger';
/** @type {?} */
var valueAndSmaller = value.replace(regexMinWidth, '(min-width: 0px)');
/** @type {?} */
var valueAndLarger = value.replace(regexMaxWidth, '(max-width: 1000000px)');
acc[key] = value;
acc[keyAndSmaller] = valueAndSmaller;
acc[keyAndLarger] = valueAndLarger;
return acc;
}, {});
var AllBreakpoints = {
'XSmall': '(max-width: 599.99px)',
'XSmall and smaller': '(max-width: 599.99px)',
'XSmall and larger': '(max-width: 1000000px)',
'Small': '(min-width: 600px) and (max-width: 959.99px)',
'Small and smaller': '(min-width: 0px) and (max-width: 959.99px)',
'Small and larger': '(min-width: 600px) and (max-width: 1000000px)',
'Medium': '(min-width: 960px) and (max-width: 1279.99px)',
'Medium and smaller': '(min-width: 0px) and (max-width: 1279.99px)',
'Medium and larger': '(min-width: 960px) and (max-width: 1000000px)',
'Large': '(min-width: 1280px) and (max-width: 1919.99px)',
'Large and smaller': '(min-width: 0px) and (max-width: 1919.99px)',
'Large and larger': '(min-width: 1280px) and (max-width: 1000000px)',
'XLarge': '(min-width: 1920px)',
'XLarge and smaller': '(min-width: 0px)',
'XLarge and larger': '(min-width: 1920px)',
'Handset': '(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)',
'Handset and smaller': '(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)',
'Handset and larger': '(max-width: 1000000px) and (orientation: portrait), (max-width: 1000000px) and (orientation: landscape)',
'Tablet': '(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)',
'Tablet and smaller': '(min-width: 0px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 0px) and (max-width: 1279.99px) and (orientation: landscape)',
'Tablet and larger': '(min-width: 600px) and (max-width: 1000000px) and (orientation: portrait), (min-width: 960px) and (max-width: 1000000px) and (orientation: landscape)',
'Web': '(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)',
'Web and smaller': '(min-width: 0px) and (orientation: portrait), (min-width: 0px) and (orientation: landscape)',
'Web and larger': '(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)',
'HandsetPortrait': '(max-width: 599.99px) and (orientation: portrait)',
'HandsetPortrait and smaller': '(max-width: 599.99px) and (orientation: portrait)',
'HandsetPortrait and larger': '(max-width: 1000000px) and (orientation: portrait)',
'TabletPortrait': '(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)',
'TabletPortrait and smaller': '(min-width: 0px) and (max-width: 839.99px) and (orientation: portrait)',
'TabletPortrait and larger': '(min-width: 600px) and (max-width: 1000000px) and (orientation: portrait)',
'WebPortrait': '(min-width: 840px) and (orientation: portrait)',
'WebPortrait and smaller': '(min-width: 0px) and (orientation: portrait)',
'WebPortrait and larger': '(min-width: 840px) and (orientation: portrait)',
'HandsetLandscape': '(max-width: 959.99px) and (orientation: landscape)',
'HandsetLandscape and smaller': '(max-width: 959.99px) and (orientation: landscape)',
'HandsetLandscape and larger': '(max-width: 1000000px) and (orientation: landscape)',
'TabletLandscape': '(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)',
'TabletLandscape and smaller': '(min-width: 0px) and (max-width: 1279.99px) and (orientation: landscape)',
'TabletLandscape and larger': '(min-width: 960px) and (max-width: 1000000px) and (orientation: landscape)',
'WebLandscape': '(min-width: 1280px) and (orientation: landscape)',
'WebLandscape and smaller': '(min-width: 0px) and (orientation: landscape)',
'WebLandscape and larger': '(min-width: 1280px) and (orientation: landscape)'
};

@@ -35,8 +61,8 @@ /**

*/
var ResponsiveDirective = /** @class */ (function () {
function ResponsiveDirective(vcr, breakpoints) {
var ResponsiveSwitchDirective = /** @class */ (function () {
function ResponsiveSwitchDirective(vcr, breakpoints) {
this.vcr = vcr;
this.breakpoints = breakpoints;
this.updated = new EventEmitter();
this.registeredTemplates = new Map();
this.update = new EventEmitter();
this.registeredTemplates = {};
}

@@ -46,3 +72,3 @@ /**

*/
ResponsiveDirective.prototype.ngOnInit = /**
ResponsiveSwitchDirective.prototype.ngOnInit = /**
* @return {?}

@@ -61,3 +87,3 @@ */

*/
ResponsiveDirective.prototype.register = /**
ResponsiveSwitchDirective.prototype.register = /**
* @param {?} size

@@ -68,3 +94,3 @@ * @param {?} template

function (size, template) {
this.registeredTemplates.set(size.trim(), template);
this.registeredTemplates[size.trim()] = template;
this.render();

@@ -76,3 +102,3 @@ };

*/
ResponsiveDirective.prototype.registerDefault = /**
ResponsiveSwitchDirective.prototype.registerDefault = /**
* @param {?} template

@@ -88,3 +114,3 @@ * @return {?}

*/
ResponsiveDirective.prototype.render = /**
ResponsiveSwitchDirective.prototype.render = /**
* @return {?}

@@ -95,9 +121,9 @@ */

/** @type {?} */
var usedSize = Array.from(this.registeredTemplates.keys()).find(function (size) { return _this.breakpoints.isMatched(AllBreakpoints[size]); });
var usedSize = Object.keys(this.registeredTemplates).find(function (size) { return _this.breakpoints.isMatched(AllBreakpoints[size]); });
/** @type {?} */
var usedTemplate = this.registeredTemplates.get(usedSize) || this.defaultTemplate;
var usedTemplate = this.registeredTemplates[usedSize] || this.defaultTemplate;
if (usedTemplate !== undefined) {
this.vcr.clear();
this.vcr.createEmbeddedView(usedTemplate);
this.updated.emit(usedSize || 'Default');
this.update.emit(usedSize || 'Default');
}

@@ -108,3 +134,3 @@ };

*/
ResponsiveDirective.prototype.ngOnDestroy = /**
ResponsiveSwitchDirective.prototype.ngOnDestroy = /**
* @return {?}

@@ -116,18 +142,19 @@ */

}
this.vcr.clear();
};
ResponsiveDirective.decorators = [
ResponsiveSwitchDirective.decorators = [
{ type: Directive, args: [{
selector: '[responsive]' // tslint:disable-line
selector: '[responsiveSwitch]' // tslint:disable-line
},] }
];
/** @nocollapse */
ResponsiveDirective.ctorParameters = function () { return [
ResponsiveSwitchDirective.ctorParameters = function () { return [
{ type: ViewContainerRef },
{ type: BreakpointObserver }
]; };
ResponsiveDirective.propDecorators = {
ResponsiveSwitchDirective.propDecorators = {
observe: [{ type: Input }],
updated: [{ type: Output }]
update: [{ type: Output }]
};
return ResponsiveDirective;
return ResponsiveSwitchDirective;
}());

@@ -197,3 +224,3 @@ var ResponsiveCaseDirective = /** @class */ (function () {

{ type: TemplateRef },
{ type: ResponsiveDirective, decorators: [{ type: Host }] }
{ type: ResponsiveSwitchDirective, decorators: [{ type: Host }] }
]; };

@@ -211,2 +238,74 @@ ResponsiveCaseDirective.propDecorators = {

*/
var ResponsiveDirective = /** @class */ (function () {
function ResponsiveDirective(tmpl, vcr, breakpoints) {
this.tmpl = tmpl;
this.vcr = vcr;
this.breakpoints = breakpoints;
}
/**
* @return {?}
*/
ResponsiveDirective.prototype.ngOnInit = /**
* @return {?}
*/
function () {
var _this = this;
if (this.observe !== undefined && this.observe.length > 0) {
this.sub = this.breakpoints.observe(this.observe).subscribe(function () { return _this.render(); });
}
this.render();
};
/**
* @return {?}
*/
ResponsiveDirective.prototype.render = /**
* @return {?}
*/
function () {
var _this = this;
/** @type {?} */
var usedSize = Object.keys(this.alternativeElements).find(function (size) { return _this.breakpoints.isMatched(AllBreakpoints[size]); });
/** @type {?} */
var usedTemplate = this.alternativeElements[usedSize] || this.tmpl;
this.vcr.clear();
this.vcr.createEmbeddedView(usedTemplate);
if (this.update !== undefined) {
this.update.next(usedSize || 'Default');
}
};
/**
* @return {?}
*/
ResponsiveDirective.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
if (this.sub !== undefined) {
this.sub.unsubscribe();
}
this.vcr.clear();
};
ResponsiveDirective.decorators = [
{ type: Directive, args: [{
selector: '[responsive]' // tslint:disable-line
},] }
];
/** @nocollapse */
ResponsiveDirective.ctorParameters = function () { return [
{ type: TemplateRef },
{ type: ViewContainerRef },
{ type: BreakpointObserver }
]; };
ResponsiveDirective.propDecorators = {
alternativeElements: [{ type: Input, args: ['responsive',] }],
observe: [{ type: Input, args: ['responsiveObserve',] }],
update: [{ type: Input, args: ['responsiveUpdate',] }]
};
return ResponsiveDirective;
}());
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var NgxCdkResponsiveModule = /** @class */ (function () {

@@ -217,5 +316,5 @@ function NgxCdkResponsiveModule() {

{ type: NgModule, args: [{
declarations: [ResponsiveCaseDirective, ResponsiveDirective],
declarations: [ResponsiveCaseDirective, ResponsiveSwitchDirective, ResponsiveDirective],
imports: [],
exports: [ResponsiveCaseDirective, ResponsiveDirective]
exports: [ResponsiveCaseDirective, ResponsiveSwitchDirective, ResponsiveDirective]
},] }

@@ -254,4 +353,4 @@ ];

export { ResponsiveDirective, ResponsiveCaseDirective, NgxCdkResponsiveModule, Observe };
export { ResponsiveSwitchDirective, ResponsiveCaseDirective, ResponsiveDirective, NgxCdkResponsiveModule, Observe, AllBreakpoints };
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNkay1yZXNwb25zaXZlLmpzLm1hcCIsInNvdXJjZXMiOlsibmc6Ly9uZ3gtY2RrLXJlc3BvbnNpdmUvbGliL2ludGVybmFsLnRzIiwibmc6Ly9uZ3gtY2RrLXJlc3BvbnNpdmUvbGliL3Jlc3BvbnNpdmUuZGlyZWN0aXZlLnRzIiwibmc6Ly9uZ3gtY2RrLXJlc3BvbnNpdmUvbGliL25neC1jZGstcmVzcG9uc2l2ZS5tb2R1bGUudHMiLCJuZzovL25neC1jZGstcmVzcG9uc2l2ZS9saWIvb2JzZXJ2ZS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBv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QkFBaUIsR0FBRyxDQUFDLHVCQUF1QixFQUFFLHVCQUF1QixFQUFFLHdCQUF3QixFQUFFLHdCQUF3QixDQUFDO0NBQ3hJLEVBTGdCLE9BQU8sS0FBUCxPQUFPLFFBS3ZCOzs7Ozs7Ozs7Ozs7OzsifQ==

@@ -1,26 +0,17 @@

import { EventEmitter, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
import { OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
import { BreakpointObserver } from '@angular/cdk/layout';
import { Subject } from 'rxjs';
import { AvailableBreakpoints } from './models';
export declare class ResponsiveDirective implements OnInit, OnDestroy {
private tmpl;
private vcr;
private breakpoints;
alternativeElements: Partial<AvailableBreakpoints<TemplateRef<any>>>;
observe: string[];
updated: EventEmitter<string>;
private registeredTemplates;
private defaultTemplate;
update: Subject<string> | undefined;
private sub;
constructor(vcr: ViewContainerRef, breakpoints: BreakpointObserver);
constructor(tmpl: TemplateRef<any>, vcr: ViewContainerRef, breakpoints: BreakpointObserver);
ngOnInit(): void;
register(size: string, template: TemplateRef<any>): void;
registerDefault(template: TemplateRef<any>): void;
render(): void;
ngOnDestroy(): void;
}
export declare class ResponsiveCaseDirective {
private templateRef;
private host;
responsiveCase: string;
responsiveDefault: any;
constructor(templateRef: TemplateRef<any>, host: ResponsiveDirective);
registerTemplate(breakpoint: string): void;
registerDefault(): void;
}

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"exports":[{"from":"./lib/observe"}],"metadata":{"ResponsiveDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"[responsive]"}]}],"members":{"observe":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"updated":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":11,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":17,"character":27},{"__symbolic":"reference","module":"@angular/cdk/layout","name":"BreakpointObserver","line":18,"character":35}]}],"ngOnInit":[{"__symbolic":"method"}],"register":[{"__symbolic":"method"}],"registerDefault":[{"__symbolic":"method"}],"render":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ResponsiveCaseDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":57,"character":1},"arguments":[{"selector":"[responsiveCase], [responsiveDefault]"}]}],"members":{"responsiveCase":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":62,"character":3},"arguments":["responsiveCase"]}]}],"responsiveDefault":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":79,"character":3},"arguments":["responsiveDefault"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host","line":84,"character":15}}]],"parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","name":"ResponsiveDirective"}]}],"registerTemplate":[{"__symbolic":"method"}],"registerDefault":[{"__symbolic":"method"}]}},"NgxCdkResponsiveModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":3,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ResponsiveCaseDirective"},{"__symbolic":"reference","name":"ResponsiveDirective"}],"imports":[],"exports":[{"__symbolic":"reference","name":"ResponsiveCaseDirective"},{"__symbolic":"reference","name":"ResponsiveDirective"}]}]}],"members":{}}},"origins":{"ResponsiveDirective":"./lib/responsive.directive","ResponsiveCaseDirective":"./lib/responsive.directive","NgxCdkResponsiveModule":"./lib/ngx-cdk-responsive.module"},"importAs":"ngx-cdk-responsive"}
{"__symbolic":"module","version":4,"exports":[{"from":"./lib/observe"}],"metadata":{"ResponsiveSwitchDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"[responsiveSwitch]"}]}],"members":{"observe":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"update":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":11,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":17,"character":27},{"__symbolic":"reference","module":"@angular/cdk/layout","name":"BreakpointObserver","line":18,"character":35}]}],"ngOnInit":[{"__symbolic":"method"}],"register":[{"__symbolic":"method"}],"registerDefault":[{"__symbolic":"method"}],"render":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ResponsiveCaseDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":58,"character":1},"arguments":[{"selector":"[responsiveCase], [responsiveDefault]"}]}],"members":{"responsiveCase":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":63,"character":3},"arguments":["responsiveCase"]}]}],"responsiveDefault":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":80,"character":3},"arguments":["responsiveDefault"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Host","line":85,"character":15}}]],"parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","name":"ResponsiveSwitchDirective"}]}],"registerTemplate":[{"__symbolic":"method"}],"registerDefault":[{"__symbolic":"method"}]}},"ResponsiveDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":6,"character":1},"arguments":[{"selector":"[responsive]"}]}],"members":{"alternativeElements":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3},"arguments":["responsive"]}]}],"observe":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3},"arguments":["responsiveObserve"]}]}],"update":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3},"arguments":["responsiveUpdate"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":20,"character":27},{"__symbolic":"reference","module":"@angular/cdk/layout","name":"BreakpointObserver","line":21,"character":35}]}],"ngOnInit":[{"__symbolic":"method"}],"render":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"NgxCdkResponsiveModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ResponsiveCaseDirective"},{"__symbolic":"reference","name":"ResponsiveSwitchDirective"},{"__symbolic":"reference","name":"ResponsiveDirective"}],"imports":[],"exports":[{"__symbolic":"reference","name":"ResponsiveCaseDirective"},{"__symbolic":"reference","name":"ResponsiveSwitchDirective"},{"__symbolic":"reference","name":"ResponsiveDirective"}]}]}],"members":{}},"AllBreakpoints":{"XSmall":"(max-width: 599.99px)","XSmall and smaller":"(max-width: 599.99px)","XSmall and larger":"(max-width: 1000000px)","Small":"(min-width: 600px) and (max-width: 959.99px)","Small and smaller":"(min-width: 0px) and (max-width: 959.99px)","Small and larger":"(min-width: 600px) and (max-width: 1000000px)","Medium":"(min-width: 960px) and (max-width: 1279.99px)","Medium and smaller":"(min-width: 0px) and (max-width: 1279.99px)","Medium and larger":"(min-width: 960px) and (max-width: 1000000px)","Large":"(min-width: 1280px) and (max-width: 1919.99px)","Large and smaller":"(min-width: 0px) and (max-width: 1919.99px)","Large and larger":"(min-width: 1280px) and (max-width: 1000000px)","XLarge":"(min-width: 1920px)","XLarge and smaller":"(min-width: 0px)","XLarge and larger":"(min-width: 1920px)","Handset":"(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)","Handset and smaller":"(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)","Handset and larger":"(max-width: 1000000px) and (orientation: portrait), (max-width: 1000000px) and (orientation: landscape)","Tablet":"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)","Tablet and smaller":"(min-width: 0px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 0px) and (max-width: 1279.99px) and (orientation: landscape)","Tablet and larger":"(min-width: 600px) and (max-width: 1000000px) and (orientation: portrait), (min-width: 960px) and (max-width: 1000000px) and (orientation: landscape)","Web":"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)","Web and smaller":"(min-width: 0px) and (orientation: portrait), (min-width: 0px) and (orientation: landscape)","Web and larger":"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)","HandsetPortrait":"(max-width: 599.99px) and (orientation: portrait)","HandsetPortrait and smaller":"(max-width: 599.99px) and (orientation: portrait)","HandsetPortrait and larger":"(max-width: 1000000px) and (orientation: portrait)","TabletPortrait":"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)","TabletPortrait and smaller":"(min-width: 0px) and (max-width: 839.99px) and (orientation: portrait)","TabletPortrait and larger":"(min-width: 600px) and (max-width: 1000000px) and (orientation: portrait)","WebPortrait":"(min-width: 840px) and (orientation: portrait)","WebPortrait and smaller":"(min-width: 0px) and (orientation: portrait)","WebPortrait and larger":"(min-width: 840px) and (orientation: portrait)","HandsetLandscape":"(max-width: 959.99px) and (orientation: landscape)","HandsetLandscape and smaller":"(max-width: 959.99px) and (orientation: landscape)","HandsetLandscape and larger":"(max-width: 1000000px) and (orientation: landscape)","TabletLandscape":"(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)","TabletLandscape and smaller":"(min-width: 0px) and (max-width: 1279.99px) and (orientation: landscape)","TabletLandscape and larger":"(min-width: 960px) and (max-width: 1000000px) and (orientation: landscape)","WebLandscape":"(min-width: 1280px) and (orientation: landscape)","WebLandscape and smaller":"(min-width: 0px) and (orientation: landscape)","WebLandscape and larger":"(min-width: 1280px) and (orientation: landscape)","$quoted$":["XSmall","XSmall and smaller","XSmall and larger","Small","Small and smaller","Small and larger","Medium","Medium and smaller","Medium and larger","Large","Large and smaller","Large and larger","XLarge","XLarge and smaller","XLarge and larger","Handset","Handset and smaller","Handset and larger","Tablet","Tablet and smaller","Tablet and larger","Web","Web and smaller","Web and larger","HandsetPortrait","HandsetPortrait and smaller","HandsetPortrait and larger","TabletPortrait","TabletPortrait and smaller","TabletPortrait and larger","WebPortrait","WebPortrait and smaller","WebPortrait and larger","HandsetLandscape","HandsetLandscape and smaller","HandsetLandscape and larger","TabletLandscape","TabletLandscape and smaller","TabletLandscape and larger","WebLandscape","WebLandscape and smaller","WebLandscape and larger"]},"AvailableBreakpoints":{"__symbolic":"interface"}},"origins":{"ResponsiveSwitchDirective":"./lib/responsive-switch.directive","ResponsiveCaseDirective":"./lib/responsive-switch.directive","ResponsiveDirective":"./lib/responsive.directive","NgxCdkResponsiveModule":"./lib/ngx-cdk-responsive.module","AllBreakpoints":"./lib/models","AvailableBreakpoints":"./lib/models"},"importAs":"ngx-cdk-responsive"}
{
"name": "ngx-cdk-responsive",
"version": "0.0.1",
"version": "0.1.0",
"peerDependencies": {

@@ -9,2 +9,18 @@ "@angular/common": "^7.0.0",

},
"repository": {
"type": "git",
"url": "git+https://github.com/JanMalch/ngx-cdk-responsive.git"
},
"keywords": [
"Angular",
"TypeScript",
"Utility",
"Responsive",
"CDK"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/JanMalch/ngx-cdk-responsive/issues"
},
"homepage": "https://janmalch.github.io/ngx-cdk-responsive/",
"main": "bundles/ngx-cdk-responsive.umd.js",

@@ -11,0 +27,0 @@ "module": "fesm5/ngx-cdk-responsive.js",

@@ -0,3 +1,5 @@

export * from './lib/responsive-switch.directive';
export * from './lib/responsive.directive';
export * from './lib/ngx-cdk-responsive.module';
export * from './lib/observe';
export * from './lib/models';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc