ng-cloudimage-responsive
Advanced tools
Comparing version 2.0.1 to 2.0.2
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/platform-browser'), require('rxjs'), require('rxjs/operators'), require('ng-lazyload-image')) : | ||
typeof define === 'function' && define.amd ? define('ng-cloudimage-responsive', ['exports', '@angular/core', '@angular/common', '@angular/platform-browser', 'rxjs', 'rxjs/operators', 'ng-lazyload-image'], factory) : | ||
(global = global || self, factory(global['ng-cloudimage-responsive'] = {}, global.ng.core, global.ng.common, global.ng.platformBrowser, global.rxjs, global.rxjs.operators, global.ngLazyloadImage)); | ||
}(this, function (exports, core, common, platformBrowser, rxjs, operators, ngLazyloadImage) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/platform-browser'), require('rxjs'), require('rxjs/operators'), require('ng-lazyload-image')) : | ||
typeof define === 'function' && define.amd ? define('ng-cloudimage-responsive', ['exports', '@angular/common', '@angular/core', '@angular/platform-browser', 'rxjs', 'rxjs/operators', 'ng-lazyload-image'], factory) : | ||
(factory((global['ng-cloudimage-responsive'] = {}),global.ng.common,global.ng.core,global.ng.platformBrowser,global.rxjs,global.rxjs.operators,global.ngLazyloadImage)); | ||
}(this, (function (exports,common,i0,platformBrowser,rxjs,operators,ngLazyloadImage) { 'use strict'; | ||
@@ -21,8 +21,9 @@ /*! ***************************************************************************** | ||
***************************************************************************** */ | ||
var __assign = function() { | ||
var __assign = function () { | ||
__assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
for (var p in s) | ||
if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
@@ -33,20 +34,26 @@ return t; | ||
}; | ||
function __read(o, n) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator]; | ||
if (!m) return o; | ||
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); | ||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) | ||
ar.push(r.value); | ||
} | ||
catch (error) { e = { error: error }; } | ||
catch (error) { | ||
e = { error: error }; | ||
} | ||
finally { | ||
try { | ||
if (r && !r.done && (m = i["return"])) m.call(i); | ||
if (r && !r.done && (m = i["return"])) | ||
m.call(i); | ||
} | ||
finally { if (e) throw e.error; } | ||
finally { | ||
if (e) | ||
throw e.error; | ||
} | ||
} | ||
return ar; | ||
} | ||
function __spread() { | ||
@@ -60,3 +67,3 @@ for (var ar = [], i = 0; i < arguments.length; i++) | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -71,3 +78,3 @@ var CIConfig = /** @class */ (function () { | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -119,22 +126,22 @@ var CIService = /** @class */ (function () { | ||
*/ | ||
function (img, config) { | ||
if (!(img && img.parentElement && img.parentElement.getBoundingClientRect) && !(img && img.width)) { | ||
return config.width; | ||
} | ||
/** @type {?} */ | ||
var parentContainer = this.getParentContainerWithWidth(img); | ||
/** @type {?} */ | ||
var currentWidth = parseInt('' + parentContainer, 10); | ||
/** @type {?} */ | ||
var computedWidth = Number(window.getComputedStyle(img).width); | ||
if ((computedWidth && (computedWidth < currentWidth && computedWidth > 15) || !currentWidth)) { | ||
return this.getSizeLimit(computedWidth); | ||
} | ||
else { | ||
if (!currentWidth) { | ||
return img.width || config.width; | ||
function (img, config) { | ||
if (!(img && img.parentElement && img.parentElement.getBoundingClientRect) && !(img && img.width)) { | ||
return config.width; | ||
} | ||
return this.getSizeLimit(currentWidth); | ||
} | ||
}; | ||
/** @type {?} */ | ||
var parentContainer = this.getParentContainerWithWidth(img); | ||
/** @type {?} */ | ||
var currentWidth = parseInt('' + parentContainer, 10); | ||
/** @type {?} */ | ||
var computedWidth = Number(window.getComputedStyle(img).width); | ||
if ((computedWidth && (computedWidth < currentWidth && computedWidth > 15) || !currentWidth)) { | ||
return this.getSizeLimit(computedWidth); | ||
} | ||
else { | ||
if (!currentWidth) { | ||
return img.width || config.width; | ||
} | ||
return this.getSizeLimit(currentWidth); | ||
} | ||
}; | ||
/** | ||
@@ -148,17 +155,17 @@ * @param {?} img | ||
*/ | ||
function (img) { | ||
/** @type {?} */ | ||
var parentNode = null; | ||
/** @type {?} */ | ||
var width = 0; | ||
do { | ||
parentNode = (parentNode && parentNode.parentNode) || img.parentNode; | ||
width = parentNode.getBoundingClientRect().width; | ||
} while (parentNode && !width); | ||
/** @type {?} */ | ||
var letPadding = width && parentNode && parseInt(window.getComputedStyle(parentNode).paddingLeft, 10); | ||
/** @type {?} */ | ||
var rightPadding = parseInt(window.getComputedStyle(parentNode).paddingRight, 10); | ||
return width + (width ? (-letPadding - rightPadding) : 0); | ||
}; | ||
function (img) { | ||
/** @type {?} */ | ||
var parentNode = null; | ||
/** @type {?} */ | ||
var width = 0; | ||
do { | ||
parentNode = (parentNode && parentNode.parentNode) || img.parentNode; | ||
width = parentNode.getBoundingClientRect().width; | ||
} while (parentNode && !width); | ||
/** @type {?} */ | ||
var letPadding = width && parentNode && parseInt(window.getComputedStyle(parentNode).paddingLeft, 10); | ||
/** @type {?} */ | ||
var rightPadding = parseInt(window.getComputedStyle(parentNode).paddingRight, 10); | ||
return width + (width ? (-letPadding - rightPadding) : 0); | ||
}; | ||
/** | ||
@@ -172,11 +179,11 @@ * @param {?} currentSize | ||
*/ | ||
function (currentSize) { | ||
if (currentSize <= 25) { | ||
return '25'; | ||
} | ||
if (currentSize <= 50) { | ||
return '50'; | ||
} | ||
return (Math.ceil(currentSize / 100) * 100).toString(); | ||
}; | ||
function (currentSize) { | ||
if (currentSize <= 25) { | ||
return '25'; | ||
} | ||
if (currentSize <= 50) { | ||
return '50'; | ||
} | ||
return (Math.ceil(currentSize / 100) * 100).toString(); | ||
}; | ||
/** | ||
@@ -190,12 +197,12 @@ * @param {?} size | ||
*/ | ||
function (size) { | ||
try { | ||
/** @type {?} */ | ||
var array = size.split(','); | ||
return array.length > 1; | ||
} | ||
catch (e) { | ||
return false; | ||
} | ||
}; | ||
function (size) { | ||
try { | ||
/** @type {?} */ | ||
var array = size.split(','); | ||
return array.length > 1; | ||
} | ||
catch (e) { | ||
return false; | ||
} | ||
}; | ||
/** | ||
@@ -209,8 +216,8 @@ * @param {?} src | ||
*/ | ||
function (src) { | ||
if (src.indexOf('//') === 0) { | ||
src = window.location.protocol + src; | ||
} | ||
return (src.indexOf('http://') !== 0 && src.indexOf('https://') !== 0 && src.indexOf('//') !== 0); | ||
}; | ||
function (src) { | ||
if (src.indexOf('//') === 0) { | ||
src = window.location.protocol + src; | ||
} | ||
return (src.indexOf('http://') !== 0 && src.indexOf('https://') !== 0 && src.indexOf('//') !== 0); | ||
}; | ||
/** | ||
@@ -228,10 +235,14 @@ * @param {?} src | ||
*/ | ||
function (src, isRelativeUrlPath, baseUrl) { | ||
if (isRelativeUrlPath === void 0) { isRelativeUrlPath = false; } | ||
if (baseUrl === void 0) { baseUrl = ''; } | ||
if (isRelativeUrlPath) { | ||
return baseUrl + src; | ||
} | ||
return src; | ||
}; | ||
function (src, isRelativeUrlPath, baseUrl) { | ||
if (isRelativeUrlPath === void 0) { | ||
isRelativeUrlPath = false; | ||
} | ||
if (baseUrl === void 0) { | ||
baseUrl = ''; | ||
} | ||
if (isRelativeUrlPath) { | ||
return baseUrl + src; | ||
} | ||
return src; | ||
}; | ||
/** | ||
@@ -245,16 +256,15 @@ * @param {?} size | ||
*/ | ||
function (size) { | ||
/** @type {?} */ | ||
var splittedSizes = size.toString().split('x'); | ||
/** @type {?} */ | ||
var result = []; | ||
[].forEach.call(splittedSizes, (/** | ||
* @param {?} item | ||
* @return {?} | ||
*/ | ||
function (item) { | ||
result.push(item * Math.round(window.devicePixelRatio || 1)); | ||
})); | ||
return result.join('x'); | ||
}; | ||
function (size) { | ||
/** @type {?} */ | ||
var splittedSizes = size.toString().split('x'); | ||
/** @type {?} */ | ||
var result = []; | ||
[].forEach.call(splittedSizes, ( /** | ||
* @param {?} item | ||
* @return {?} | ||
*/function (item) { | ||
result.push(item * Math.round(window.devicePixelRatio || 1)); | ||
})); | ||
return result.join('x'); | ||
}; | ||
/** | ||
@@ -276,10 +286,10 @@ * @param {?} operation | ||
*/ | ||
function (operation, size, filters, imgSrc, config) { | ||
var ultraFast = config.ultraFast, token = config.token, container = config.container, queryString = config.queryString; | ||
/** @type {?} */ | ||
var isUltraFast = ultraFast ? 'https://scaleflex.ultrafast.io/' : 'https://'; | ||
/** @type {?} */ | ||
var cloudUrl = isUltraFast + token + '.' + container + '/'; | ||
return cloudUrl + operation + '/' + size + '/' + filters + '/' + imgSrc + queryString; | ||
}; | ||
function (operation, size, filters, imgSrc, config) { | ||
var ultraFast = config.ultraFast, token = config.token, container = config.container, queryString = config.queryString; | ||
/** @type {?} */ | ||
var isUltraFast = ultraFast ? 'https://scaleflex.ultrafast.io/' : 'https://'; | ||
/** @type {?} */ | ||
var cloudUrl = isUltraFast + token + '.' + container + '/'; | ||
return cloudUrl + operation + '/' + size + '/' + filters + '/' + imgSrc + queryString; | ||
}; | ||
/** | ||
@@ -305,38 +315,35 @@ * @param {?} operation | ||
*/ | ||
function (operation, size, filters, imgSrc, isAdaptive, config, isPreview) { | ||
var _this = this; | ||
var previewQualityFactor = config.previewQualityFactor; | ||
/** @type {?} */ | ||
var sources = []; | ||
if (isAdaptive) { | ||
size.forEach((/** | ||
* @param {?} __0 | ||
* @return {?} | ||
*/ | ||
function (_a) { | ||
var nextSize = _a.size, mediaQuery = _a.media; | ||
function (operation, size, filters, imgSrc, isAdaptive, config, isPreview) { | ||
var _this = this; | ||
var previewQualityFactor = config.previewQualityFactor; | ||
/** @type {?} */ | ||
var sources = []; | ||
if (isAdaptive) { | ||
size.forEach(( /** | ||
* @param {?} __0 | ||
* @return {?} | ||
*/function (_a) { | ||
var nextSize = _a.size, mediaQuery = _a.media; | ||
if (isPreview) { | ||
nextSize = nextSize.split('x').map(( /** | ||
* @param {?} sizeNext | ||
* @return {?} | ||
*/function (sizeNext) { return Math.floor(sizeNext / previewQualityFactor); })).join('x'); | ||
} | ||
sources.push({ mediaQuery: mediaQuery, srcSet: _this.generateSrcset(operation, nextSize, filters, imgSrc, config) }); | ||
})); | ||
} | ||
else { | ||
if (isPreview) { | ||
nextSize = nextSize.split('x').map((/** | ||
size = size.split('x').map(( /** | ||
* @param {?} sizeNext | ||
* @return {?} | ||
*/ | ||
function (sizeNext) { return Math.floor(sizeNext / previewQualityFactor); })).join('x'); | ||
*/function (sizeNext) { return Math.floor(sizeNext / previewQualityFactor); })).join('x'); | ||
} | ||
sources.push({ mediaQuery: mediaQuery, srcSet: _this.generateSrcset(operation, nextSize, filters, imgSrc, config) }); | ||
})); | ||
} | ||
else { | ||
if (isPreview) { | ||
size = size.split('x').map((/** | ||
* @param {?} sizeNext | ||
* @return {?} | ||
*/ | ||
function (sizeNext) { return Math.floor(sizeNext / previewQualityFactor); })).join('x'); | ||
sources.push({ | ||
srcSet: this.generateSrcset(operation, size, filters, imgSrc, config) | ||
}); | ||
} | ||
sources.push({ | ||
srcSet: this.generateSrcset(operation, size, filters, imgSrc, config) | ||
}); | ||
} | ||
return sources; | ||
}; | ||
return sources; | ||
}; | ||
/** | ||
@@ -352,20 +359,19 @@ * @param {?} size | ||
*/ | ||
function (size, config) { | ||
/** @type {?} */ | ||
var arrayOfSizes = size.split(','); | ||
/** @type {?} */ | ||
var sizes = []; | ||
arrayOfSizes.forEach((/** | ||
* @param {?} string | ||
* @return {?} | ||
*/ | ||
function (string) { | ||
function (size, config) { | ||
/** @type {?} */ | ||
var groups = string.match(/(([a-z_][a-z_]*)|(\([\S\s]*\)))\s*([0-9xp]*)/); | ||
var arrayOfSizes = size.split(','); | ||
/** @type {?} */ | ||
var media = groups[3] ? groups[3] : config.presets[groups[2]]; | ||
sizes.push({ media: media, size: groups[4] }); | ||
})); | ||
return sizes; | ||
}; | ||
var sizes = []; | ||
arrayOfSizes.forEach(( /** | ||
* @param {?} string | ||
* @return {?} | ||
*/function (string) { | ||
/** @type {?} */ | ||
var groups = string.match(/(([a-z_][a-z_]*)|(\([\S\s]*\)))\s*([0-9xp]*)/); | ||
/** @type {?} */ | ||
var media = groups[3] ? groups[3] : config.presets[groups[2]]; | ||
sizes.push({ media: media, size: groups[4] }); | ||
})); | ||
return sizes; | ||
}; | ||
/** | ||
@@ -387,6 +393,6 @@ * @param {?} operation | ||
*/ | ||
function (operation, size, filters, imgSrc, config) { | ||
var _a = __read(size.toString().split('x'), 2), imgWidth = _a[0], imgHeight = _a[1]; | ||
return this.generateImgSrc(operation, filters, imgSrc, imgWidth, imgHeight, 1, config); | ||
}; | ||
function (operation, size, filters, imgSrc, config) { | ||
var _a = __read(size.toString().split('x'), 2), imgWidth = _a[0], imgHeight = _a[1]; | ||
return this.generateImgSrc(operation, filters, imgSrc, imgWidth, imgHeight, 1, config); | ||
}; | ||
/** | ||
@@ -412,14 +418,14 @@ * @param {?} operation | ||
*/ | ||
function (operation, filters, imgSrc, imgWidth, imgHeight, factor, config) { | ||
/** @type {?} */ | ||
var imgSize = '' + Math.trunc(imgWidth * factor); | ||
if (imgHeight) { | ||
imgSize += 'x' + Math.trunc(imgHeight * factor); | ||
} | ||
return this.generateUrl(operation, this.getSizeAccordingToPixelRatio(imgSize), filters, imgSrc, config) | ||
.replace('http://scaleflex.ultrafast.io/', '') | ||
.replace('https://scaleflex.ultrafast.io/', '') | ||
.replace('//scaleflex.ultrafast.io/', '') | ||
.replace('///', '/'); | ||
}; | ||
function (operation, filters, imgSrc, imgWidth, imgHeight, factor, config) { | ||
/** @type {?} */ | ||
var imgSize = '' + Math.trunc(imgWidth * factor); | ||
if (imgHeight) { | ||
imgSize += 'x' + Math.trunc(imgHeight * factor); | ||
} | ||
return this.generateUrl(operation, this.getSizeAccordingToPixelRatio(imgSize), filters, imgSrc, config) | ||
.replace('http://scaleflex.ultrafast.io/', '') | ||
.replace('https://scaleflex.ultrafast.io/', '') | ||
.replace('//scaleflex.ultrafast.io/', '') | ||
.replace('///', '/'); | ||
}; | ||
/** | ||
@@ -435,23 +441,23 @@ * @param {?} size | ||
*/ | ||
function (size, config) { | ||
var _a, _b; | ||
/** @type {?} */ | ||
var width; | ||
/** @type {?} */ | ||
var height; | ||
if (typeof size === 'object') { | ||
function (size, config) { | ||
var _a, _b; | ||
/** @type {?} */ | ||
var breakPointSource = this.getBreakPoint(size); | ||
var width; | ||
/** @type {?} */ | ||
var breakPointSize = breakPointSource ? breakPointSource.size : size[0].size; | ||
_a = __read(breakPointSize.toString().split('x'), 2), width = _a[0], height = _a[1]; | ||
} | ||
else { | ||
_b = __read(size.toString().split('x'), 2), width = _b[0], height = _b[1]; | ||
} | ||
if (width && height) { | ||
return width / height; | ||
} | ||
return null; | ||
}; | ||
var height; | ||
if (typeof size === 'object') { | ||
/** @type {?} */ | ||
var breakPointSource = this.getBreakPoint(size); | ||
/** @type {?} */ | ||
var breakPointSize = breakPointSource ? breakPointSource.size : size[0].size; | ||
_a = __read(breakPointSize.toString().split('x'), 2), width = _a[0], height = _a[1]; | ||
} | ||
else { | ||
_b = __read(size.toString().split('x'), 2), width = _b[0], height = _b[1]; | ||
} | ||
if (width && height) { | ||
return width / height; | ||
} | ||
return null; | ||
}; | ||
/** | ||
@@ -465,11 +471,10 @@ * @param {?} size | ||
*/ | ||
function (size) { | ||
return __spread(size).reverse().find((/** | ||
* @param {?} item | ||
* @return {?} | ||
*/ | ||
function (item) { return matchMedia(item.media).matches; })); | ||
}; | ||
function (size) { | ||
return __spread(size).reverse().find(( /** | ||
* @param {?} item | ||
* @return {?} | ||
*/function (item) { return matchMedia(item.media).matches; })); | ||
}; | ||
CIService.decorators = [ | ||
{ type: core.Injectable, args: [{ | ||
{ type: i0.Injectable, args: [{ | ||
providedIn: 'root' | ||
@@ -479,6 +484,8 @@ },] } | ||
/** @nocollapse */ | ||
CIService.ctorParameters = function () { return [ | ||
{ type: CIConfig } | ||
]; }; | ||
/** @nocollapse */ CIService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function CIService_Factory() { return new CIService(core.ɵɵinject(CIConfig)); }, token: CIService, providedIn: "root" }); | ||
CIService.ctorParameters = function () { | ||
return [ | ||
{ type: CIConfig } | ||
]; | ||
}; | ||
/** @nocollapse */ CIService.ngInjectableDef = i0.defineInjectable({ factory: function CIService_Factory() { return new CIService(i0.inject(CIConfig)); }, token: CIService, providedIn: "root" }); | ||
return CIService; | ||
@@ -489,3 +496,3 @@ }()); | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -499,3 +506,3 @@ var ImgComponent = /** @class */ (function () { | ||
this.offset = 100; | ||
this.imageLoaded = new core.EventEmitter(); | ||
this.imageLoaded = new i0.EventEmitter(); | ||
this.cloudimageUrl = ''; | ||
@@ -516,5 +523,5 @@ this.sources = []; | ||
*/ | ||
function () { | ||
this.resizeSubscription$.unsubscribe(); | ||
}; | ||
function () { | ||
this.resizeSubscription$.unsubscribe(); | ||
}; | ||
/** | ||
@@ -526,15 +533,14 @@ * @return {?} | ||
*/ | ||
function () { | ||
var _this = this; | ||
this.resizeObservable$ = rxjs.fromEvent(window, 'resize').pipe(operators.debounceTime(500)); | ||
this.resizeSubscription$ = this.resizeObservable$.subscribe((/** | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (_this.isAdaptive || _this.windowInnerWidth < window.innerWidth) { | ||
_this.processImage(); | ||
} | ||
_this.windowInnerWidth = window.innerWidth; | ||
})); | ||
}; | ||
var _this = this; | ||
this.resizeObservable$ = rxjs.fromEvent(window, 'resize').pipe(operators.debounceTime(500)); | ||
this.resizeSubscription$ = this.resizeObservable$.subscribe(( /** | ||
* @return {?} | ||
*/function () { | ||
if (_this.isAdaptive || _this.windowInnerWidth < window.innerWidth) { | ||
_this.processImage(); | ||
} | ||
_this.windowInnerWidth = window.innerWidth; | ||
})); | ||
}; | ||
/** | ||
@@ -546,5 +552,5 @@ * @return {?} | ||
*/ | ||
function () { | ||
this.processImage(); | ||
}; | ||
function () { | ||
this.processImage(); | ||
}; | ||
/** | ||
@@ -556,60 +562,59 @@ * @return {?} | ||
*/ | ||
function () { | ||
/** @type {?} */ | ||
var imgNode = (this.imgElem || this.pictureElem).nativeElement; | ||
var _a = this.ciService.config, config = _a === void 0 ? {} : _a; | ||
var previewQualityFactor = config.previewQualityFactor; | ||
/** @type {?} */ | ||
var operation = this.operation || this.o || config.operation; | ||
/** @type {?} */ | ||
var parentContainerWidth = this.ciService.getParentWidth(imgNode, config); | ||
/** @type {?} */ | ||
var size = this.size || this.s || config.size || parentContainerWidth; | ||
/** @type {?} */ | ||
var filters = this.filters || this.f || config.filters; | ||
/** @type {?} */ | ||
var isAdaptive = this.ciService.checkOnMedia(size); | ||
size = isAdaptive ? this.ciService.getAdaptiveSize(size, config) : size; | ||
/** @type {?} */ | ||
var isRelativeUrlPath = this.ciService.checkIfRelativeUrlPath(this.src); | ||
/** @type {?} */ | ||
var imgSrc = this.ciService.getImgSrc(this.src, isRelativeUrlPath, config.baseUrl); | ||
/** @type {?} */ | ||
var resultSize = isAdaptive ? size : this.ciService.getSizeAccordingToPixelRatio(size); | ||
this.isPreview = !config.isChrome && (parentContainerWidth > 400) && config.lazyLoading; | ||
this.cloudimageUrl = isAdaptive ? | ||
this.ciService.generateUrl('width', this.ciService.getSizeAccordingToPixelRatio(parentContainerWidth), filters, imgSrc, config) : | ||
this.ciService.generateUrl(operation, resultSize, filters, imgSrc, config); | ||
this.sources = isAdaptive ? | ||
this.ciService.generateSources(operation, resultSize, filters, imgSrc, isAdaptive, config, false) : []; | ||
/** @type {?} */ | ||
var previewCloudimageUrl; | ||
/** @type {?} */ | ||
var previewSources; | ||
if (this.isPreview) { | ||
function () { | ||
/** @type {?} */ | ||
var previewConfig = __assign({}, config, { queryString: '' }); | ||
previewCloudimageUrl = isAdaptive ? | ||
this.ciService.generateUrl('width', (Math.floor(parentContainerWidth / previewQualityFactor)), filters, imgSrc, previewConfig) : | ||
this.ciService.generateUrl(operation, resultSize.split('x').map((/** | ||
* @param {?} item | ||
* @return {?} | ||
*/ | ||
function (item) { return Math.floor(item / previewQualityFactor); })).join('x'), filters, imgSrc, previewConfig); | ||
previewSources = isAdaptive ? | ||
this.ciService.generateSources(operation, resultSize, filters, imgSrc, isAdaptive, previewConfig, true) : []; | ||
} | ||
this.previewCloudimageUrl = previewCloudimageUrl; | ||
this.previewSources = previewSources; | ||
this.isAdaptive = isAdaptive; | ||
this.actualSize = size; | ||
this.parentContainerWidth = parentContainerWidth; | ||
/** @type {?} */ | ||
var ratioBySize = this.ciService.getRatioBySize(size, config); | ||
this.imageHeight = Math.floor(parentContainerWidth / (ratioBySize || this.ratio || 1.5)); | ||
this.isRatio = !!(ratioBySize || this.ratio); | ||
this.ratioBySize = ratioBySize; | ||
this.isProcessed = true; | ||
this.cd.detectChanges(); | ||
}; | ||
var imgNode = (this.imgElem || this.pictureElem).nativeElement; | ||
var _a = this.ciService.config, config = _a === void 0 ? {} : _a; | ||
var previewQualityFactor = config.previewQualityFactor; | ||
/** @type {?} */ | ||
var operation = this.operation || this.o || config.operation; | ||
/** @type {?} */ | ||
var parentContainerWidth = this.ciService.getParentWidth(imgNode, config); | ||
/** @type {?} */ | ||
var size = this.size || this.s || config.size || parentContainerWidth; | ||
/** @type {?} */ | ||
var filters = this.filters || this.f || config.filters; | ||
/** @type {?} */ | ||
var isAdaptive = this.ciService.checkOnMedia(size); | ||
size = isAdaptive ? this.ciService.getAdaptiveSize(size, config) : size; | ||
/** @type {?} */ | ||
var isRelativeUrlPath = this.ciService.checkIfRelativeUrlPath(this.src); | ||
/** @type {?} */ | ||
var imgSrc = this.ciService.getImgSrc(this.src, isRelativeUrlPath, config.baseUrl); | ||
/** @type {?} */ | ||
var resultSize = isAdaptive ? size : this.ciService.getSizeAccordingToPixelRatio(size); | ||
this.isPreview = !config.isChrome && (parentContainerWidth > 400) && config.lazyLoading; | ||
this.cloudimageUrl = isAdaptive ? | ||
this.ciService.generateUrl('width', this.ciService.getSizeAccordingToPixelRatio(parentContainerWidth), filters, imgSrc, config) : | ||
this.ciService.generateUrl(operation, resultSize, filters, imgSrc, config); | ||
this.sources = isAdaptive ? | ||
this.ciService.generateSources(operation, resultSize, filters, imgSrc, isAdaptive, config, false) : []; | ||
/** @type {?} */ | ||
var previewCloudimageUrl; | ||
/** @type {?} */ | ||
var previewSources; | ||
if (this.isPreview) { | ||
/** @type {?} */ | ||
var previewConfig = __assign({}, config, { queryString: '' }); | ||
previewCloudimageUrl = isAdaptive ? | ||
this.ciService.generateUrl('width', (Math.floor(parentContainerWidth / previewQualityFactor)), filters, imgSrc, previewConfig) : | ||
this.ciService.generateUrl(operation, resultSize.split('x').map(( /** | ||
* @param {?} item | ||
* @return {?} | ||
*/function (item) { return Math.floor(item / previewQualityFactor); })).join('x'), filters, imgSrc, previewConfig); | ||
previewSources = isAdaptive ? | ||
this.ciService.generateSources(operation, resultSize, filters, imgSrc, isAdaptive, previewConfig, true) : []; | ||
} | ||
this.previewCloudimageUrl = previewCloudimageUrl; | ||
this.previewSources = previewSources; | ||
this.isAdaptive = isAdaptive; | ||
this.actualSize = size; | ||
this.parentContainerWidth = parentContainerWidth; | ||
/** @type {?} */ | ||
var ratioBySize = this.ciService.getRatioBySize(size, config); | ||
this.imageHeight = Math.floor(parentContainerWidth / (ratioBySize || this.ratio || 1.5)); | ||
this.isRatio = !!(ratioBySize || this.ratio); | ||
this.ratioBySize = ratioBySize; | ||
this.isProcessed = true; | ||
this.cd.detectChanges(); | ||
}; | ||
/** | ||
@@ -623,15 +628,15 @@ * @param {?} $event | ||
*/ | ||
function ($event) { | ||
if (!this.isPreview) { | ||
this.isPreviewLoaded = true; | ||
this.isLoaded = true; | ||
} | ||
else if (this.isPreviewLoaded) { | ||
this.isLoaded = true; | ||
} | ||
else { | ||
this.isPreviewLoaded = true; | ||
} | ||
this.imageLoaded.emit($event); | ||
}; | ||
function ($event) { | ||
if (!this.isPreview) { | ||
this.isPreviewLoaded = true; | ||
this.isLoaded = true; | ||
} | ||
else if (this.isPreviewLoaded) { | ||
this.isLoaded = true; | ||
} | ||
else { | ||
this.isPreviewLoaded = true; | ||
} | ||
this.imageLoaded.emit($event); | ||
}; | ||
/** | ||
@@ -643,7 +648,7 @@ * @return {?} | ||
*/ | ||
function () { | ||
/** @type {?} */ | ||
var resultSources = __spread((!this.isPreview ? this.sources : (this.isPreviewLoaded ? this.sources : this.previewSources))); | ||
return resultSources.slice(1).reverse(); | ||
}; | ||
function () { | ||
/** @type {?} */ | ||
var resultSources = __spread((!this.isPreview ? this.sources : (this.isPreviewLoaded ? this.sources : this.previewSources))); | ||
return resultSources.slice(1).reverse(); | ||
}; | ||
/** | ||
@@ -655,8 +660,8 @@ * @return {?} | ||
*/ | ||
function () { | ||
/** @type {?} */ | ||
var resultSources = __spread((!this.isPreview ? this.sources : (this.isPreviewLoaded ? this.sources : this.previewSources))); | ||
this.firstSource = resultSources[0]; | ||
return resultSources[0]; | ||
}; | ||
function () { | ||
/** @type {?} */ | ||
var resultSources = __spread((!this.isPreview ? this.sources : (this.isPreviewLoaded ? this.sources : this.previewSources))); | ||
this.firstSource = resultSources[0]; | ||
return resultSources[0]; | ||
}; | ||
/** | ||
@@ -668,5 +673,5 @@ * @return {?} | ||
*/ | ||
function () { | ||
return this._sanitizer.bypassSecurityTrustStyle(this.isRatio ? 'absolute' : 'relative'); | ||
}; | ||
function () { | ||
return this._sanitizer.bypassSecurityTrustStyle(this.isRatio ? 'absolute' : 'relative'); | ||
}; | ||
/** | ||
@@ -678,7 +683,7 @@ * @return {?} | ||
*/ | ||
function () { | ||
// todo check if we need 100% height | ||
// return this._sanitizer.bypassSecurityTrustStyle(this.isRatio ? '100%' : 'auto'); | ||
return this._sanitizer.bypassSecurityTrustStyle(this.isRatio ? 'auto' : 'auto'); | ||
}; | ||
function () { | ||
// todo check if we need 100% height | ||
// return this._sanitizer.bypassSecurityTrustStyle(this.isRatio ? '100%' : 'auto'); | ||
return this._sanitizer.bypassSecurityTrustStyle(this.isRatio ? 'auto' : 'auto'); | ||
}; | ||
/** | ||
@@ -690,14 +695,14 @@ * @return {?} | ||
*/ | ||
function () { | ||
var config = this.ciService.config; | ||
/** @type {?} */ | ||
var result = 'none'; | ||
if (config.imgLoadingAnimation) { | ||
result = 'scale3d(1.1, 1.1, 1)'; | ||
} | ||
if (this.isLoaded && config.imgLoadingAnimation) { | ||
result = 'translateZ(0) scale3d(1, 1, 1)'; | ||
} | ||
return this._sanitizer.bypassSecurityTrustStyle(result); | ||
}; | ||
function () { | ||
var config = this.ciService.config; | ||
/** @type {?} */ | ||
var result = 'none'; | ||
if (config.imgLoadingAnimation) { | ||
result = 'scale3d(1.1, 1.1, 1)'; | ||
} | ||
if (this.isLoaded && config.imgLoadingAnimation) { | ||
result = 'translateZ(0) scale3d(1, 1, 1)'; | ||
} | ||
return this._sanitizer.bypassSecurityTrustStyle(result); | ||
}; | ||
/** | ||
@@ -709,11 +714,11 @@ * @return {?} | ||
*/ | ||
function () { | ||
var config = this.ciService.config; | ||
/** @type {?} */ | ||
var result = 'none'; | ||
if (this.isLoaded && config.imgLoadingAnimation) { | ||
result = 'all 0.3s ease-in-out'; | ||
} | ||
return this._sanitizer.bypassSecurityTrustStyle(result); | ||
}; | ||
function () { | ||
var config = this.ciService.config; | ||
/** @type {?} */ | ||
var result = 'none'; | ||
if (this.isLoaded && config.imgLoadingAnimation) { | ||
result = 'all 0.3s ease-in-out'; | ||
} | ||
return this._sanitizer.bypassSecurityTrustStyle(result); | ||
}; | ||
/** | ||
@@ -725,14 +730,14 @@ * @return {?} | ||
*/ | ||
function () { | ||
var config = this.ciService.config; | ||
/** @type {?} */ | ||
var result = 'none'; | ||
if (config.imgLoadingAnimation) { | ||
result = "blur(" + Math.floor(parseInt(this.parentContainerWidth, 10) / 100) + "px)"; | ||
} | ||
if (this.isLoaded && config.imgLoadingAnimation) { | ||
result = 'blur(0px)'; | ||
} | ||
return this._sanitizer.bypassSecurityTrustStyle(result); | ||
}; | ||
function () { | ||
var config = this.ciService.config; | ||
/** @type {?} */ | ||
var result = 'none'; | ||
if (config.imgLoadingAnimation) { | ||
result = "blur(" + Math.floor(parseInt(this.parentContainerWidth, 10) / 100) + "px)"; | ||
} | ||
if (this.isLoaded && config.imgLoadingAnimation) { | ||
result = 'blur(0px)'; | ||
} | ||
return this._sanitizer.bypassSecurityTrustStyle(result); | ||
}; | ||
/** | ||
@@ -744,10 +749,10 @@ * @return {?} | ||
*/ | ||
function () { | ||
/** @type {?} */ | ||
var result = ''; | ||
if (this.isRatio) { | ||
result = (100 / (this.ratioBySize || this.ratio)) + '%'; | ||
} | ||
return this._sanitizer.bypassSecurityTrustStyle(result); | ||
}; | ||
function () { | ||
/** @type {?} */ | ||
var result = ''; | ||
if (this.isRatio) { | ||
result = (100 / (this.ratioBySize || this.ratio)) + '%'; | ||
} | ||
return this._sanitizer.bypassSecurityTrustStyle(result); | ||
}; | ||
/** | ||
@@ -759,13 +764,13 @@ * @return {?} | ||
*/ | ||
function () { | ||
var config = this.ciService.config; | ||
/** @type {?} */ | ||
var result = 'transparent'; | ||
if (this.isRatio && !this.isPreviewLoaded && !this.isLoaded) { | ||
result = config.placeholderBackground; | ||
} | ||
return this._sanitizer.bypassSecurityTrustStyle(result); | ||
}; | ||
function () { | ||
var config = this.ciService.config; | ||
/** @type {?} */ | ||
var result = 'transparent'; | ||
if (this.isRatio && !this.isPreviewLoaded && !this.isLoaded) { | ||
result = config.placeholderBackground; | ||
} | ||
return this._sanitizer.bypassSecurityTrustStyle(result); | ||
}; | ||
ImgComponent.decorators = [ | ||
{ type: core.Component, args: [{ | ||
{ type: i0.Component, args: [{ | ||
selector: 'ci-img', | ||
@@ -776,23 +781,25 @@ template: "\n <picture #pictureElem *ngIf=\"!isProcessed\"></picture>\n\n <ng-container [ngSwitch]=\"lazyLoading\">\n <ng-container *ngSwitchCase=\"true\">\n <picture\n [class]=\"class + ' cloudimage-image-picture cloudimage-image-' + (isLoaded ? 'loaded' : 'loading')\"\n style=\"display:block;width:100%;overflow:hidden;position:relative;\"\n [style.paddingBottom]=\"getPicturePaddingBottom()\"\n [style.background]=\"getPictureBackground()\"\n #imgElem\n *ngIf=\"isProcessed\">\n <source\n *ngFor=\"let source of getRestSources()\"\n [media]=\"source.mediaQuery || ''\"\n [attr.lazyLoad]=\"source.srcSet || ''\"\n (load)=\"onImageLoad($event)\"\n />\n <source\n *ngIf=\"getFirstSource()\"\n [attr.lazyLoad]=\"firstSource.srcSet || ''\"\n (load)=\"onImageLoad($event)\"\n />\n <img\n style=\"display:block;width:100%;opacity:1;top:0;left:0;\"\n [style.position]=\"getPositionStyle()\"\n [style.height]=\"getImgHeight()\"\n [style.transform]=\"getTransformStyle()\"\n [style.transition]=\"getTransitionStyle()\"\n [style.filter]=\"getFilterStyle()\"\n (load)=\"onImageLoad($event)\"\n [lazyLoad]=\"!isPreview ? cloudimageUrl : (isPreviewLoaded ? cloudimageUrl : previewCloudimageUrl)\"\n [offset]=\"offset\"\n [alt]=\"\">\n </picture>\n </ng-container>\n <div *ngSwitchCase=\"false\">\n <picture\n [class]=\"class + ' cloudimage-image-picture cloudimage-image-' + (isLoaded ? 'loaded' : 'loading')\"\n style=\"display:block;width:100%;overflow:hidden;position:relative;\"\n [style.paddingBottom]=\"getPicturePaddingBottom()\"\n [style.background]=\"getPictureBackground()\"\n #imgElem\n *ngIf=\"isProcessed\">\n <source\n *ngFor=\"let source of restSources\"\n [media]=\"source.mediaQuery || ''\"\n [srcset]=\"source.srcSet || ''\"\n (load)=\"onImageLoad($event)\"\n />\n <source\n *ngIf=\"firstSource\"\n [srcset]=\"firstSource.srcSet || ''\"\n (load)=\"onImageLoad($event)\"\n />\n <img\n style=\"display:block;width:100%;opacity:1;top:0;left:0;\"\n [style.position]=\"getPositionStyle()\"\n [style.height]=\"getImgHeight()\"\n [style.transform]=\"getTransformStyle()\"\n [style.transition]=\"getTransitionStyle()\"\n [style.filter]=\"getFilterStyle()\"\n (load)=\"onImageLoad($event)\"\n [src]=\"!isPreview ? cloudimageUrl : (isPreviewLoaded ? cloudimageUrl : previewCloudimageUrl)\"\n [alt]=\"\">\n </picture>\n </div>\n </ng-container>\n " | ||
/** @nocollapse */ | ||
ImgComponent.ctorParameters = function () { return [ | ||
{ type: CIService }, | ||
{ type: platformBrowser.DomSanitizer }, | ||
{ type: core.ChangeDetectorRef } | ||
]; }; | ||
ImgComponent.ctorParameters = function () { | ||
return [ | ||
{ type: CIService }, | ||
{ type: platformBrowser.DomSanitizer }, | ||
{ type: i0.ChangeDetectorRef } | ||
]; | ||
}; | ||
ImgComponent.propDecorators = { | ||
imgElem: [{ type: core.ViewChild, args: ['imgElem', { static: false },] }], | ||
pictureElem: [{ type: core.ViewChild, args: ['pictureElem', { static: false },] }], | ||
src: [{ type: core.Input }], | ||
class: [{ type: core.Input }], | ||
alt: [{ type: core.Input }], | ||
operation: [{ type: core.Input }], | ||
o: [{ type: core.Input }], | ||
size: [{ type: core.Input }], | ||
s: [{ type: core.Input }], | ||
filters: [{ type: core.Input }], | ||
f: [{ type: core.Input }], | ||
ratio: [{ type: core.Input }], | ||
offset: [{ type: core.Input }], | ||
ngSwitch: [{ type: core.Input }], | ||
imageLoaded: [{ type: core.Output }] | ||
imgElem: [{ type: i0.ViewChild, args: ['imgElem',] }], | ||
pictureElem: [{ type: i0.ViewChild, args: ['pictureElem',] }], | ||
src: [{ type: i0.Input }], | ||
class: [{ type: i0.Input }], | ||
alt: [{ type: i0.Input }], | ||
operation: [{ type: i0.Input }], | ||
o: [{ type: i0.Input }], | ||
size: [{ type: i0.Input }], | ||
s: [{ type: i0.Input }], | ||
filters: [{ type: i0.Input }], | ||
f: [{ type: i0.Input }], | ||
ratio: [{ type: i0.Input }], | ||
offset: [{ type: i0.Input }], | ||
ngSwitch: [{ type: i0.Input }], | ||
imageLoaded: [{ type: i0.Output }] | ||
}; | ||
@@ -804,3 +811,3 @@ return ImgComponent; | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -811,3 +818,3 @@ var CIModule = /** @class */ (function () { | ||
CIModule.decorators = [ | ||
{ type: core.NgModule, args: [{ | ||
{ type: i0.NgModule, args: [{ | ||
declarations: [ImgComponent], | ||
@@ -822,5 +829,15 @@ imports: [common.CommonModule, ngLazyloadImage.LazyLoadImageModule], | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
exports.CIService = CIService; | ||
exports.CIConfig = CIConfig; | ||
exports.CIModule = CIModule; | ||
exports.CIService = CIService; | ||
exports.ImgComponent = ImgComponent; | ||
@@ -830,3 +847,4 @@ | ||
})); | ||
//# sourceMappingURL=ng-cloudimage-responsive.umd.js.map | ||
}))); | ||
//# sourceMappingURL=ng-cloudimage-responsive.umd.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/platform-browser"),require("rxjs"),require("rxjs/operators"),require("ng-lazyload-image")):"function"==typeof define&&define.amd?define("ng-cloudimage-responsive",["exports","@angular/core","@angular/common","@angular/platform-browser","rxjs","rxjs/operators","ng-lazyload-image"],t):t((e=e||self)["ng-cloudimage-responsive"]={},e.ng.core,e.ng.common,e.ng.platformBrowser,e.rxjs,e.rxjs.operators,e.ngLazyloadImage)}(this,function(e,t,i,r,n,o,s){"use strict";var a=function(){return(a=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function c(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var r,n,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(i=o["return"])&&i.call(o)}finally{if(n)throw n.error}}return s}function l(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e}var d=function(){},u=function(){function e(e){this.config={};var t=e.token,i=void 0===t?"":t,r=e.container,n=void 0===r?"cloudimg.io":r,o=e.ultraFast,s=void 0!==o&&o,a=e.lazyLoading,c=void 0===a||a,l=e.imgLoadingAnimation,d=void 0===l||l,u=e.lazyLoadOffset,p=void 0===u?100:u,g=e.width,h=void 0===g?"400":g,f=e.height,y=void 0===f?"300":f,m=e.operation,v=void 0===m?"width":m,S=e.filters,w=void 0===S?"foil1":S,I=e.placeholderBackground,z=void 0===I?"#f4f4f4":I,L=e.baseUrl,P=void 0===L?"/":L,x=e.presets,b=e.queryString,C=void 0===b?"":b;this.config={token:i,container:n,ultraFast:s,lazyLoading:c,imgLoadingAnimation:d,lazyLoadOffset:p,width:h,height:y,operation:v,filters:w,placeholderBackground:z,baseUrl:P,presets:x||{xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"},queryString:C,innerWidth:window.innerWidth,previewQualityFactor:10}}return e.prototype.getParentWidth=function(e,t){if(!(e&&e.parentElement&&e.parentElement.getBoundingClientRect||e&&e.width))return t.width;var i=this.getParentContainerWithWidth(e),r=parseInt(""+i,10),n=Number(window.getComputedStyle(e).width);return n&&n<r&&n>15||!r?this.getSizeLimit(n):r?this.getSizeLimit(r):e.width||t.width},e.prototype.getParentContainerWithWidth=function(e){var t=null,i=0;do{i=(t=t&&t.parentNode||e.parentNode).getBoundingClientRect().width}while(t&&!i);var r=i&&t&&parseInt(window.getComputedStyle(t).paddingLeft,10),n=parseInt(window.getComputedStyle(t).paddingRight,10);return i+(i?-r-n:0)},e.prototype.getSizeLimit=function(e){return e<=25?"25":e<=50?"50":(100*Math.ceil(e/100)).toString()},e.prototype.checkOnMedia=function(e){try{return e.split(",").length>1}catch(t){return!1}},e.prototype.checkIfRelativeUrlPath=function(e){return 0===e.indexOf("//")&&(e=window.location.protocol+e),0!==e.indexOf("http://")&&0!==e.indexOf("https://")&&0!==e.indexOf("//")},e.prototype.getImgSrc=function(e,t,i){return void 0===t&&(t=!1),void 0===i&&(i=""),t?i+e:e},e.prototype.getSizeAccordingToPixelRatio=function(e){var t=e.toString().split("x"),i=[];return[].forEach.call(t,function(e){i.push(e*Math.round(window.devicePixelRatio||1))}),i.join("x")},e.prototype.generateUrl=function(e,t,i,r,n){return(n.ultraFast?"https://scaleflex.ultrafast.io/":"https://")+n.token+"."+n.container+"/"+e+"/"+t+"/"+i+"/"+r+n.queryString},e.prototype.generateSources=function(e,t,i,r,n,o,s){var a=this,c=o.previewQualityFactor,l=[];return n?t.forEach(function(t){var n=t.size,d=t.media;s&&(n=n.split("x").map(function(e){return Math.floor(e/c)}).join("x")),l.push({mediaQuery:d,srcSet:a.generateSrcset(e,n,i,r,o)})}):(s&&(t=t.split("x").map(function(e){return Math.floor(e/c)}).join("x")),l.push({srcSet:this.generateSrcset(e,t,i,r,o)})),l},e.prototype.getAdaptiveSize=function(e,t){var i=e.split(","),r=[];return i.forEach(function(e){var i=e.match(/(([a-z_][a-z_]*)|(\([\S\s]*\)))\s*([0-9xp]*)/),n=i[3]?i[3]:t.presets[i[2]];r.push({media:n,size:i[4]})}),r},e.prototype.generateSrcset=function(e,t,i,r,n){var o=c(t.toString().split("x"),2),s=o[0],a=o[1];return this.generateImgSrc(e,i,r,s,a,1,n)},e.prototype.generateImgSrc=function(e,t,i,r,n,o,s){var a=""+Math.trunc(r*o);return n&&(a+="x"+Math.trunc(n*o)),this.generateUrl(e,this.getSizeAccordingToPixelRatio(a),t,i,s).replace("http://scaleflex.ultrafast.io/","").replace("https://scaleflex.ultrafast.io/","").replace("//scaleflex.ultrafast.io/","").replace("///","/")},e.prototype.getRatioBySize=function(e,t){var i,r,n,o;if("object"==typeof e){var s=this.getBreakPoint(e);n=(i=c((s?s.size:e[0].size).toString().split("x"),2))[0],o=i[1]}else n=(r=c(e.toString().split("x"),2))[0],o=r[1];return n&&o?n/o:null},e.prototype.getBreakPoint=function(e){return l(e).reverse().find(function(e){return matchMedia(e.media).matches})},e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:d}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(d))},token:e,providedIn:"root"}),e}(),p=function(){function e(e,i,r){this.ciService=e,this._sanitizer=i,this.cd=r,this["class"]="",this.offset=100,this.imageLoaded=new t.EventEmitter,this.cloudimageUrl="",this.sources=[],this.firstSource=null,this.restSources=[],this.isLoaded=!1,this.isProcessed=!1,this.windowInnerWidth=window.innerWidth,this.lazyLoading=e.config.lazyLoading}return e.prototype.ngOnDestroy=function(){this.resizeSubscription$.unsubscribe()},e.prototype.ngOnInit=function(){var e=this;this.resizeObservable$=n.fromEvent(window,"resize").pipe(o.debounceTime(500)),this.resizeSubscription$=this.resizeObservable$.subscribe(function(){(e.isAdaptive||e.windowInnerWidth<window.innerWidth)&&e.processImage(),e.windowInnerWidth=window.innerWidth})},e.prototype.ngAfterViewInit=function(){this.processImage()},e.prototype.processImage=function(){var e=(this.imgElem||this.pictureElem).nativeElement,t=this.ciService.config,i=void 0===t?{}:t,r=i.previewQualityFactor,n=this.operation||this.o||i.operation,o=this.ciService.getParentWidth(e,i),s=this.size||this.s||i.size||o,c=this.filters||this.f||i.filters,l=this.ciService.checkOnMedia(s);s=l?this.ciService.getAdaptiveSize(s,i):s;var d,u,p=this.ciService.checkIfRelativeUrlPath(this.src),g=this.ciService.getImgSrc(this.src,p,i.baseUrl),h=l?s:this.ciService.getSizeAccordingToPixelRatio(s);if(this.isPreview=!i.isChrome&&o>400&&i.lazyLoading,this.cloudimageUrl=l?this.ciService.generateUrl("width",this.ciService.getSizeAccordingToPixelRatio(o),c,g,i):this.ciService.generateUrl(n,h,c,g,i),this.sources=l?this.ciService.generateSources(n,h,c,g,l,i,!1):[],this.isPreview){var f=a({},i,{queryString:""});d=l?this.ciService.generateUrl("width",Math.floor(o/r),c,g,f):this.ciService.generateUrl(n,h.split("x").map(function(e){return Math.floor(e/r)}).join("x"),c,g,f),u=l?this.ciService.generateSources(n,h,c,g,l,f,!0):[]}this.previewCloudimageUrl=d,this.previewSources=u,this.isAdaptive=l,this.actualSize=s,this.parentContainerWidth=o;var y=this.ciService.getRatioBySize(s,i);this.imageHeight=Math.floor(o/(y||this.ratio||1.5)),this.isRatio=!(!y&&!this.ratio),this.ratioBySize=y,this.isProcessed=!0,this.cd.detectChanges()},e.prototype.onImageLoad=function(e){this.isPreview?this.isPreviewLoaded?this.isLoaded=!0:this.isPreviewLoaded=!0:(this.isPreviewLoaded=!0,this.isLoaded=!0),this.imageLoaded.emit(e)},e.prototype.getRestSources=function(){return l(this.isPreview?this.isPreviewLoaded?this.sources:this.previewSources:this.sources).slice(1).reverse()},e.prototype.getFirstSource=function(){var e=l(this.isPreview?this.isPreviewLoaded?this.sources:this.previewSources:this.sources);return this.firstSource=e[0],e[0]},e.prototype.getPositionStyle=function(){return this._sanitizer.bypassSecurityTrustStyle(this.isRatio?"absolute":"relative")},e.prototype.getImgHeight=function(){return this._sanitizer.bypassSecurityTrustStyle((this.isRatio,"auto"))},e.prototype.getTransformStyle=function(){var e=this.ciService.config,t="none";return e.imgLoadingAnimation&&(t="scale3d(1.1, 1.1, 1)"),this.isLoaded&&e.imgLoadingAnimation&&(t="translateZ(0) scale3d(1, 1, 1)"),this._sanitizer.bypassSecurityTrustStyle(t)},e.prototype.getTransitionStyle=function(){var e=this.ciService.config,t="none";return this.isLoaded&&e.imgLoadingAnimation&&(t="all 0.3s ease-in-out"),this._sanitizer.bypassSecurityTrustStyle(t)},e.prototype.getFilterStyle=function(){var e=this.ciService.config,t="none";return e.imgLoadingAnimation&&(t="blur("+Math.floor(parseInt(this.parentContainerWidth,10)/100)+"px)"),this.isLoaded&&e.imgLoadingAnimation&&(t="blur(0px)"),this._sanitizer.bypassSecurityTrustStyle(t)},e.prototype.getPicturePaddingBottom=function(){var e="";return this.isRatio&&(e=100/(this.ratioBySize||this.ratio)+"%"),this._sanitizer.bypassSecurityTrustStyle(e)},e.prototype.getPictureBackground=function(){var e=this.ciService.config,t="transparent";return!this.isRatio||this.isPreviewLoaded||this.isLoaded||(t=e.placeholderBackground),this._sanitizer.bypassSecurityTrustStyle(t)},e.decorators=[{type:t.Component,args:[{selector:"ci-img",template:'\n <picture #pictureElem *ngIf="!isProcessed"></picture>\n\n <ng-container [ngSwitch]="lazyLoading">\n <ng-container *ngSwitchCase="true">\n <picture\n [class]="class + \' cloudimage-image-picture cloudimage-image-\' + (isLoaded ? \'loaded\' : \'loading\')"\n style="display:block;width:100%;overflow:hidden;position:relative;"\n [style.paddingBottom]="getPicturePaddingBottom()"\n [style.background]="getPictureBackground()"\n #imgElem\n *ngIf="isProcessed">\n <source\n *ngFor="let source of getRestSources()"\n [media]="source.mediaQuery || \'\'"\n [attr.lazyLoad]="source.srcSet || \'\'"\n (load)="onImageLoad($event)"\n />\n <source\n *ngIf="getFirstSource()"\n [attr.lazyLoad]="firstSource.srcSet || \'\'"\n (load)="onImageLoad($event)"\n />\n <img\n style="display:block;width:100%;opacity:1;top:0;left:0;"\n [style.position]="getPositionStyle()"\n [style.height]="getImgHeight()"\n [style.transform]="getTransformStyle()"\n [style.transition]="getTransitionStyle()"\n [style.filter]="getFilterStyle()"\n (load)="onImageLoad($event)"\n [lazyLoad]="!isPreview ? cloudimageUrl : (isPreviewLoaded ? cloudimageUrl : previewCloudimageUrl)"\n [offset]="offset"\n [alt]="">\n </picture>\n </ng-container>\n <div *ngSwitchCase="false">\n <picture\n [class]="class + \' cloudimage-image-picture cloudimage-image-\' + (isLoaded ? \'loaded\' : \'loading\')"\n style="display:block;width:100%;overflow:hidden;position:relative;"\n [style.paddingBottom]="getPicturePaddingBottom()"\n [style.background]="getPictureBackground()"\n #imgElem\n *ngIf="isProcessed">\n <source\n *ngFor="let source of restSources"\n [media]="source.mediaQuery || \'\'"\n [srcset]="source.srcSet || \'\'"\n (load)="onImageLoad($event)"\n />\n <source\n *ngIf="firstSource"\n [srcset]="firstSource.srcSet || \'\'"\n (load)="onImageLoad($event)"\n />\n <img\n style="display:block;width:100%;opacity:1;top:0;left:0;"\n [style.position]="getPositionStyle()"\n [style.height]="getImgHeight()"\n [style.transform]="getTransformStyle()"\n [style.transition]="getTransitionStyle()"\n [style.filter]="getFilterStyle()"\n (load)="onImageLoad($event)"\n [src]="!isPreview ? cloudimageUrl : (isPreviewLoaded ? cloudimageUrl : previewCloudimageUrl)"\n [alt]="">\n </picture>\n </div>\n </ng-container>\n '}]}],e.ctorParameters=function(){return[{type:u},{type:r.DomSanitizer},{type:t.ChangeDetectorRef}]},e.propDecorators={imgElem:[{type:t.ViewChild,args:["imgElem",{"static":!1}]}],pictureElem:[{type:t.ViewChild,args:["pictureElem",{"static":!1}]}],src:[{type:t.Input}],"class":[{type:t.Input}],alt:[{type:t.Input}],operation:[{type:t.Input}],o:[{type:t.Input}],size:[{type:t.Input}],s:[{type:t.Input}],filters:[{type:t.Input}],f:[{type:t.Input}],ratio:[{type:t.Input}],offset:[{type:t.Input}],ngSwitch:[{type:t.Input}],imageLoaded:[{type:t.Output}]},e}(),g=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[p],imports:[i.CommonModule,s.LazyLoadImageModule],exports:[p],providers:[]}]}],e}();e.CIConfig=d,e.CIModule=g,e.CIService=u,e.ImgComponent=p,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/common"),require("@angular/core"),require("@angular/platform-browser"),require("rxjs"),require("rxjs/operators"),require("ng-lazyload-image")):"function"==typeof define&&define.amd?define("ng-cloudimage-responsive",["exports","@angular/common","@angular/core","@angular/platform-browser","rxjs","rxjs/operators","ng-lazyload-image"],t):t(e["ng-cloudimage-responsive"]={},e.ng.common,e.ng.core,e.ng.platformBrowser,e.rxjs,e.rxjs.operators,e.ngLazyloadImage)}(this,function(e,t,r,i,n,o,s){"use strict";var y=function(){return(y=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function c(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var r,n,o=i.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(r=o.next()).done;)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(i=o["return"])&&i.call(o)}finally{if(n)throw n.error}}return s}function a(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e}function l(){}var d=(u.prototype.getParentWidth=function(e,t){if(!(e&&e.parentElement&&e.parentElement.getBoundingClientRect||e&&e.width))return t.width;var i=this.getParentContainerWithWidth(e),r=parseInt(""+i,10),n=Number(window.getComputedStyle(e).width);return n&&n<r&&15<n||!r?this.getSizeLimit(n):r?this.getSizeLimit(r):e.width||t.width},u.prototype.getParentContainerWithWidth=function(e){for(var t=null,i=0;i=(t=t&&t.parentNode||e.parentNode).getBoundingClientRect().width,t&&!i;);var r=i&&t&&parseInt(window.getComputedStyle(t).paddingLeft,10),n=parseInt(window.getComputedStyle(t).paddingRight,10);return i+(i?-r-n:0)},u.prototype.getSizeLimit=function(e){return e<=25?"25":e<=50?"50":(100*Math.ceil(e/100)).toString()},u.prototype.checkOnMedia=function(e){try{return 1<e.split(",").length}catch(t){return!1}},u.prototype.checkIfRelativeUrlPath=function(e){return 0===e.indexOf("//")&&(e=window.location.protocol+e),0!==e.indexOf("http://")&&0!==e.indexOf("https://")&&0!==e.indexOf("//")},u.prototype.getImgSrc=function(e,t,i){return void 0===t&&(t=!1),void 0===i&&(i=""),t?i+e:e},u.prototype.getSizeAccordingToPixelRatio=function(e){var t=e.toString().split("x"),i=[];return[].forEach.call(t,function(e){i.push(e*Math.round(window.devicePixelRatio||1))}),i.join("x")},u.prototype.generateUrl=function(e,t,i,r,n){return(n.ultraFast?"https://scaleflex.ultrafast.io/":"https://")+n.token+"."+n.container+"/"+e+"/"+t+"/"+i+"/"+r+n.queryString},u.prototype.generateSources=function(r,e,n,o,t,s,a){var c=this,l=s.previewQualityFactor,d=[];return t?e.forEach(function(e){var t=e.size,i=e.media;a&&(t=t.split("x").map(function(e){return Math.floor(e/l)}).join("x")),d.push({mediaQuery:i,srcSet:c.generateSrcset(r,t,n,o,s)})}):(a&&(e=e.split("x").map(function(e){return Math.floor(e/l)}).join("x")),d.push({srcSet:this.generateSrcset(r,e,n,o,s)})),d},u.prototype.getAdaptiveSize=function(e,r){var t=e.split(","),n=[];return t.forEach(function(e){var t=e.match(/(([a-z_][a-z_]*)|(\([\S\s]*\)))\s*([0-9xp]*)/),i=t[3]?t[3]:r.presets[t[2]];n.push({media:i,size:t[4]})}),n},u.prototype.generateSrcset=function(e,t,i,r,n){var o=c(t.toString().split("x"),2),s=o[0],a=o[1];return this.generateImgSrc(e,i,r,s,a,1,n)},u.prototype.generateImgSrc=function(e,t,i,r,n,o,s){var a=""+Math.trunc(r*o);return n&&(a+="x"+Math.trunc(n*o)),this.generateUrl(e,this.getSizeAccordingToPixelRatio(a),t,i,s).replace("http://scaleflex.ultrafast.io/","").replace("https://scaleflex.ultrafast.io/","").replace("//scaleflex.ultrafast.io/","").replace("///","/")},u.prototype.getRatioBySize=function(e,t){var i,r,n,o;if("object"==typeof e){var s=this.getBreakPoint(e);n=(i=c((s?s.size:e[0].size).toString().split("x"),2))[0],o=i[1]}else n=(r=c(e.toString().split("x"),2))[0],o=r[1];return n&&o?n/o:null},u.prototype.getBreakPoint=function(e){return a(e).reverse().find(function(e){return matchMedia(e.media).matches})},u.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],u.ctorParameters=function(){return[{type:l}]},u.ngInjectableDef=r.defineInjectable({factory:function(){return new u(r.inject(l))},token:u,providedIn:"root"}),u);function u(e){this.config={};var t=e.token,i=void 0===t?"":t,r=e.container,n=void 0===r?"cloudimg.io":r,o=e.ultraFast,s=void 0!==o&&o,a=e.lazyLoading,c=void 0===a||a,l=e.imgLoadingAnimation,d=void 0===l||l,u=e.lazyLoadOffset,p=void 0===u?100:u,g=e.width,h=void 0===g?"400":g,f=e.height,y=void 0===f?"300":f,m=e.operation,v=void 0===m?"width":m,S=e.filters,w=void 0===S?"foil1":S,I=e.placeholderBackground,z=void 0===I?"#f4f4f4":I,L=e.baseUrl,P=void 0===L?"/":L,x=e.presets,b=e.queryString,C=void 0===b?"":b;this.config={token:i,container:n,ultraFast:s,lazyLoading:c,imgLoadingAnimation:d,lazyLoadOffset:p,width:h,height:y,operation:v,filters:w,placeholderBackground:z,baseUrl:P,presets:x||{xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"},queryString:C,innerWidth:window.innerWidth,previewQualityFactor:10}}var p=(g.prototype.ngOnDestroy=function(){this.resizeSubscription$.unsubscribe()},g.prototype.ngOnInit=function(){var e=this;this.resizeObservable$=n.fromEvent(window,"resize").pipe(o.debounceTime(500)),this.resizeSubscription$=this.resizeObservable$.subscribe(function(){(e.isAdaptive||e.windowInnerWidth<window.innerWidth)&&e.processImage(),e.windowInnerWidth=window.innerWidth})},g.prototype.ngAfterViewInit=function(){this.processImage()},g.prototype.processImage=function(){var e=(this.imgElem||this.pictureElem).nativeElement,t=this.ciService.config,i=void 0===t?{}:t,r=i.previewQualityFactor,n=this.operation||this.o||i.operation,o=this.ciService.getParentWidth(e,i),s=this.size||this.s||i.size||o,a=this.filters||this.f||i.filters,c=this.ciService.checkOnMedia(s);s=c?this.ciService.getAdaptiveSize(s,i):s;var l,d,u=this.ciService.checkIfRelativeUrlPath(this.src),p=this.ciService.getImgSrc(this.src,u,i.baseUrl),g=c?s:this.ciService.getSizeAccordingToPixelRatio(s);if(this.isPreview=!i.isChrome&&400<o&&i.lazyLoading,this.cloudimageUrl=c?this.ciService.generateUrl("width",this.ciService.getSizeAccordingToPixelRatio(o),a,p,i):this.ciService.generateUrl(n,g,a,p,i),this.sources=c?this.ciService.generateSources(n,g,a,p,c,i,!1):[],this.isPreview){var h=y({},i,{queryString:""});l=c?this.ciService.generateUrl("width",Math.floor(o/r),a,p,h):this.ciService.generateUrl(n,g.split("x").map(function(e){return Math.floor(e/r)}).join("x"),a,p,h),d=c?this.ciService.generateSources(n,g,a,p,c,h,!0):[]}this.previewCloudimageUrl=l,this.previewSources=d,this.isAdaptive=c,this.actualSize=s,this.parentContainerWidth=o;var f=this.ciService.getRatioBySize(s,i);this.imageHeight=Math.floor(o/(f||this.ratio||1.5)),this.isRatio=!(!f&&!this.ratio),this.ratioBySize=f,this.isProcessed=!0,this.cd.detectChanges()},g.prototype.onImageLoad=function(e){this.isPreview?this.isPreviewLoaded?this.isLoaded=!0:this.isPreviewLoaded=!0:(this.isPreviewLoaded=!0,this.isLoaded=!0),this.imageLoaded.emit(e)},g.prototype.getRestSources=function(){return a(this.isPreview?this.isPreviewLoaded?this.sources:this.previewSources:this.sources).slice(1).reverse()},g.prototype.getFirstSource=function(){var e=a(this.isPreview?this.isPreviewLoaded?this.sources:this.previewSources:this.sources);return this.firstSource=e[0],e[0]},g.prototype.getPositionStyle=function(){return this._sanitizer.bypassSecurityTrustStyle(this.isRatio?"absolute":"relative")},g.prototype.getImgHeight=function(){return this._sanitizer.bypassSecurityTrustStyle((this.isRatio,"auto"))},g.prototype.getTransformStyle=function(){var e=this.ciService.config,t="none";return e.imgLoadingAnimation&&(t="scale3d(1.1, 1.1, 1)"),this.isLoaded&&e.imgLoadingAnimation&&(t="translateZ(0) scale3d(1, 1, 1)"),this._sanitizer.bypassSecurityTrustStyle(t)},g.prototype.getTransitionStyle=function(){var e=this.ciService.config,t="none";return this.isLoaded&&e.imgLoadingAnimation&&(t="all 0.3s ease-in-out"),this._sanitizer.bypassSecurityTrustStyle(t)},g.prototype.getFilterStyle=function(){var e=this.ciService.config,t="none";return e.imgLoadingAnimation&&(t="blur("+Math.floor(parseInt(this.parentContainerWidth,10)/100)+"px)"),this.isLoaded&&e.imgLoadingAnimation&&(t="blur(0px)"),this._sanitizer.bypassSecurityTrustStyle(t)},g.prototype.getPicturePaddingBottom=function(){var e="";return this.isRatio&&(e=100/(this.ratioBySize||this.ratio)+"%"),this._sanitizer.bypassSecurityTrustStyle(e)},g.prototype.getPictureBackground=function(){var e=this.ciService.config,t="transparent";return!this.isRatio||this.isPreviewLoaded||this.isLoaded||(t=e.placeholderBackground),this._sanitizer.bypassSecurityTrustStyle(t)},g.decorators=[{type:r.Component,args:[{selector:"ci-img",template:'\n <picture #pictureElem *ngIf="!isProcessed"></picture>\n\n <ng-container [ngSwitch]="lazyLoading">\n <ng-container *ngSwitchCase="true">\n <picture\n [class]="class + \' cloudimage-image-picture cloudimage-image-\' + (isLoaded ? \'loaded\' : \'loading\')"\n style="display:block;width:100%;overflow:hidden;position:relative;"\n [style.paddingBottom]="getPicturePaddingBottom()"\n [style.background]="getPictureBackground()"\n #imgElem\n *ngIf="isProcessed">\n <source\n *ngFor="let source of getRestSources()"\n [media]="source.mediaQuery || \'\'"\n [attr.lazyLoad]="source.srcSet || \'\'"\n (load)="onImageLoad($event)"\n />\n <source\n *ngIf="getFirstSource()"\n [attr.lazyLoad]="firstSource.srcSet || \'\'"\n (load)="onImageLoad($event)"\n />\n <img\n style="display:block;width:100%;opacity:1;top:0;left:0;"\n [style.position]="getPositionStyle()"\n [style.height]="getImgHeight()"\n [style.transform]="getTransformStyle()"\n [style.transition]="getTransitionStyle()"\n [style.filter]="getFilterStyle()"\n (load)="onImageLoad($event)"\n [lazyLoad]="!isPreview ? cloudimageUrl : (isPreviewLoaded ? cloudimageUrl : previewCloudimageUrl)"\n [offset]="offset"\n [alt]="">\n </picture>\n </ng-container>\n <div *ngSwitchCase="false">\n <picture\n [class]="class + \' cloudimage-image-picture cloudimage-image-\' + (isLoaded ? \'loaded\' : \'loading\')"\n style="display:block;width:100%;overflow:hidden;position:relative;"\n [style.paddingBottom]="getPicturePaddingBottom()"\n [style.background]="getPictureBackground()"\n #imgElem\n *ngIf="isProcessed">\n <source\n *ngFor="let source of restSources"\n [media]="source.mediaQuery || \'\'"\n [srcset]="source.srcSet || \'\'"\n (load)="onImageLoad($event)"\n />\n <source\n *ngIf="firstSource"\n [srcset]="firstSource.srcSet || \'\'"\n (load)="onImageLoad($event)"\n />\n <img\n style="display:block;width:100%;opacity:1;top:0;left:0;"\n [style.position]="getPositionStyle()"\n [style.height]="getImgHeight()"\n [style.transform]="getTransformStyle()"\n [style.transition]="getTransitionStyle()"\n [style.filter]="getFilterStyle()"\n (load)="onImageLoad($event)"\n [src]="!isPreview ? cloudimageUrl : (isPreviewLoaded ? cloudimageUrl : previewCloudimageUrl)"\n [alt]="">\n </picture>\n </div>\n </ng-container>\n '}]}],g.ctorParameters=function(){return[{type:d},{type:i.DomSanitizer},{type:r.ChangeDetectorRef}]},g.propDecorators={imgElem:[{type:r.ViewChild,args:["imgElem"]}],pictureElem:[{type:r.ViewChild,args:["pictureElem"]}],src:[{type:r.Input}],"class":[{type:r.Input}],alt:[{type:r.Input}],operation:[{type:r.Input}],o:[{type:r.Input}],size:[{type:r.Input}],s:[{type:r.Input}],filters:[{type:r.Input}],f:[{type:r.Input}],ratio:[{type:r.Input}],offset:[{type:r.Input}],ngSwitch:[{type:r.Input}],imageLoaded:[{type:r.Output}]},g);function g(e,t,i){this.ciService=e,this._sanitizer=t,this.cd=i,this["class"]="",this.offset=100,this.imageLoaded=new r.EventEmitter,this.cloudimageUrl="",this.sources=[],this.firstSource=null,this.restSources=[],this.isLoaded=!1,this.isProcessed=!1,this.windowInnerWidth=window.innerWidth,this.lazyLoading=e.config.lazyLoading}var h=(f.decorators=[{type:r.NgModule,args:[{declarations:[p],imports:[t.CommonModule,s.LazyLoadImageModule],exports:[p],providers:[]}]}],f);function f(){}e.CIService=d,e.CIConfig=l,e.CIModule=h,e.ImgComponent=p,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ng-cloudimage-responsive.umd.min.js.map |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ export class CIConfig { |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -315,4 +315,4 @@ import { Component, Input, ViewChild, ElementRef, EventEmitter, Output, ChangeDetectorRef } from '@angular/core'; | ||
ImgComponent.propDecorators = { | ||
imgElem: [{ type: ViewChild, args: ['imgElem', { static: false },] }], | ||
pictureElem: [{ type: ViewChild, args: ['pictureElem', { static: false },] }], | ||
imgElem: [{ type: ViewChild, args: ['imgElem',] }], | ||
pictureElem: [{ type: ViewChild, args: ['pictureElem',] }], | ||
src: [{ type: Input }], | ||
@@ -419,2 +419,2 @@ class: [{ type: Input }], | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1nLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25nLWNsb3VkaW1hZ2UtcmVzcG9uc2l2ZS8iLCJzb3VyY2VzIjpbImxpYi9pbWcvaW1nLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLFNBQVMsRUFBeUIsS0FBSyxFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQWEsWUFBWSxFQUFFLE1BQU0sRUFBRSxpQkFBaUIsRUFDbkgsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFDLFNBQVMsRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBQ3pDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSwyQkFBMkIsQ0FBQztBQUN2RCxPQUFPLEVBQUMsU0FBUyxFQUEyQixNQUFNLE1BQU0sQ0FBQztBQUN6RCxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUEwRTVDLE1BQU0sT0FBTyxZQUFZOzs7Ozs7SUFzQ3ZCLFlBQ1UsU0FBb0IsRUFDcEIsVUFBd0IsRUFDeEIsRUFBcUI7UUFGckIsY0FBUyxHQUFULFNBQVMsQ0FBVztRQUNwQixlQUFVLEdBQVYsVUFBVSxDQUFjO1FBQ3hCLE9BQUUsR0FBRixFQUFFLENBQW1CO1FBckN0QixVQUFLLEdBQVcsRUFBRSxDQUFDO1FBU25CLFdBQU0sR0FBRyxHQUFHLENBQUM7UUFFWixnQkFBVyxHQUFzQixJQ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ICAgICAgICBbc3R5bGUucGFkZGluZ0JvdHRvbV09XCJnZXRQaWN0dXJlUGFkZGluZ0JvdHRvbSgpXCJcbiAgICAgICAgICBbc3R5bGUuYmFja2dyb3VuZF09XCJnZXRQaWN0dXJlQmFja2dyb3VuZCgpXCJcbiAgICAgICAgICAjaW1nRWxlbVxuICAgICAgICAgICpuZ0lmPVwiaXNQcm9jZXNzZWRcIj5cbiAgICAgICAgICA8c291cmNlXG4gICAgICAgICAgICAqbmdGb3I9XCJsZXQgc291cmNlIG9mIGdldFJlc3RTb3VyY2VzKClcIlxuICAgICAgICAgICAgW21lZGlhXT1cInNvdXJjZS5tZWRpYVF1ZXJ5IHx8ICcnXCJcbiAgICAgICAgICAgIFthdHRyLmxhenlMb2FkXT1cInNvdXJjZS5zcmNTZXQgfHwgJydcIlxuICAgICAgICAgICAgKGxvYWQpPVwib25JbWFnZUxvYWQoJGV2ZW50KVwiXG4gICAgICAgICAgLz5cbiAgICAgICAgICA8c291cmNlXG4gICAgICAgICAgICAqbmdJZj1cImdldEZpcnN0U291cmNlKClcIlxuICAgICAgICAgICAgW2F0dHIubGF6eUxvYWRdPVwiZmlyc3RTb3VyY2Uuc3JjU2V0IHx8ICcnXCJcbiAgICAgICAgICAgIChsb2FkKT1cIm9uSW1hZ2VMb2FkKCRldmVudClcIlxuICAgICAgICAgIC8+XG4gICAgICAgICAgPGltZ1xuICAgICAgICAgICAgc3R5bGU9XCJkaXNwbGF5OmJsb2NrO3dpZHRoOjEwMCU7b3BhY2l0eToxO3RvcDowO2xlZnQ6MDtcIlxuICAgICAgICAgICAgW3N0eWxlLnBvc2l0aW9uXT1cImdldFBvc2l0aW9uU3R5bGUoKVwiXG4gICAgICAgICAgICBbc3R5bGUuaGVpZ2h0XT1cImdldEltZ0hlaWdodCgpXCJcbiAgICAgICAgICAgIFtzdHlsZS50cmFuc2Zvcm1dPVwiZ2V0VHJhbnNmb3JtU3R5bGUoKVwiXG4gICAgICAgICAgICBbc3R5bGUudHJh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JlbnQnO1xuXG4gICAgaWYgKHRoaXMuaXNSYXRpbyAmJiAhdGhpcy5pc1ByZXZpZXdMb2FkZWQgJiYgIXRoaXMuaXNMb2FkZWQpIHtcbiAgICAgIHJlc3VsdCA9IGNvbmZpZy5wbGFjZWhvbGRlckJhY2tncm91bmQ7XG4gICAgfVxuXG4gICAgcmV0dXJuIHRoaXMuX3Nhbml0aXplci5ieXBhc3NTZWN1cml0eVRydXN0U3R5bGUocmVzdWx0KTtcbiAgfVxufVxuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ import { NgModule } from '@angular/core'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -321,3 +321,3 @@ import { Injectable } from '@angular/core'; | ||
]; | ||
/** @nocollapse */ CIService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function CIService_Factory() { return new CIService(i0.ɵɵinject(i1.CIConfig)); }, token: CIService, providedIn: "root" }); | ||
/** @nocollapse */ CIService.ngInjectableDef = i0.defineInjectable({ factory: function CIService_Factory() { return new CIService(i0.inject(i1.CIConfig)); }, token: CIService, providedIn: "root" }); | ||
if (false) { | ||
@@ -324,0 +324,0 @@ /** @type {?} */ |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /** |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /* |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ var CIConfig = /** @class */ (function () { |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -286,4 +286,4 @@ import * as tslib_1 from "tslib"; | ||
ImgComponent.propDecorators = { | ||
imgElem: [{ type: ViewChild, args: ['imgElem', { static: false },] }], | ||
pictureElem: [{ type: ViewChild, args: ['pictureElem', { static: false },] }], | ||
imgElem: [{ type: ViewChild, args: ['imgElem',] }], | ||
pictureElem: [{ type: ViewChild, args: ['pictureElem',] }], | ||
src: [{ type: Input }], | ||
@@ -393,2 +393,2 @@ class: [{ type: Input }], | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1nLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25nLWNsb3VkaW1hZ2UtcmVzcG9uc2l2ZS8iLCJzb3VyY2VzIjpbImxpYi9pbWcvaW1nLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQXlCLEtBQUss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xlKHJlc3VsdCk7XG4gIH1cblxuICBnZXRQaWN0dXJlUGFkZGluZ0JvdHRvbSgpIHtcbiAgICBsZXQgcmVzdWx0ID0gJyc7XG5cbiAgICBpZiAodGhpcy5pc1JhdGlvKSB7XG4gICAgICByZXN1bHQgPSAoMTAwIC8gKHRoaXMucmF0aW9CeVNpemUgfHwgdGhpcy5yYXRpbykpICsgJyUnO1xuICAgIH1cblxuICAgIHJldHVybiB0aGlzLl9zYW5pdGl6ZXIuYnlwYXNzU2VjdXJpdHlUcnVzdFN0eWxlKHJlc3VsdCk7XG4gIH1cblxuICBnZXRQaWN0dXJlQmFja2dyb3VuZCgpIHtcbiAgICBjb25zdCB7Y29uZmlnfSA9IHRoaXMuY2lTZXJ2aWNlO1xuICAgIGxldCByZXN1bHQgPSAndHJhbnNwYXJlbnQnO1xuXG4gICAgaWYgKHRoaXMuaXNSYXRpbyAmJiAhdGhpcy5pc1ByZXZpZXdMb2FkZWQgJiYgIXRoaXMuaXNMb2FkZWQpIHtcbiAgICAgIHJlc3VsdCA9IGNvbmZpZy5wbGFjZWhvbGRlckJhY2tncm91bmQ7XG4gICAgfVxuXG4gICAgcmV0dXJuIHRoaXMuX3Nhbml0aXplci5ieXBhc3NTZWN1cml0eVRydXN0U3R5bGUocmVzdWx0KTtcbiAgfVxufVxuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ import { NgModule } from '@angular/core'; |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -404,3 +404,3 @@ import * as tslib_1 from "tslib"; | ||
]; }; | ||
/** @nocollapse */ CIService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function CIService_Factory() { return new CIService(i0.ɵɵinject(i1.CIConfig)); }, token: CIService, providedIn: "root" }); | ||
/** @nocollapse */ CIService.ngInjectableDef = i0.defineInjectable({ factory: function CIService_Factory() { return new CIService(i0.inject(i1.CIConfig)); }, token: CIService, providedIn: "root" }); | ||
return CIService; | ||
@@ -407,0 +407,0 @@ }()); |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /** |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -5,0 +5,0 @@ /* |
@@ -1,3 +0,3 @@ | ||
import { Injectable, ɵɵdefineInjectable, ɵɵinject, EventEmitter, Component, ChangeDetectorRef, ViewChild, Input, Output, NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { Injectable, NgModule, Component, Input, ViewChild, EventEmitter, Output, ChangeDetectorRef, defineInjectable, inject } from '@angular/core'; | ||
import { DomSanitizer } from '@angular/platform-browser'; | ||
@@ -10,3 +10,3 @@ import { fromEvent } from 'rxjs'; | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -18,3 +18,3 @@ class CIConfig { | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -333,7 +333,7 @@ class CIService { | ||
]; | ||
/** @nocollapse */ CIService.ngInjectableDef = ɵɵdefineInjectable({ factory: function CIService_Factory() { return new CIService(ɵɵinject(CIConfig)); }, token: CIService, providedIn: "root" }); | ||
/** @nocollapse */ CIService.ngInjectableDef = defineInjectable({ factory: function CIService_Factory() { return new CIService(inject(CIConfig)); }, token: CIService, providedIn: "root" }); | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -645,4 +645,4 @@ class ImgComponent { | ||
ImgComponent.propDecorators = { | ||
imgElem: [{ type: ViewChild, args: ['imgElem', { static: false },] }], | ||
pictureElem: [{ type: ViewChild, args: ['pictureElem', { static: false },] }], | ||
imgElem: [{ type: ViewChild, args: ['imgElem',] }], | ||
pictureElem: [{ type: ViewChild, args: ['pictureElem',] }], | ||
src: [{ type: Input }], | ||
@@ -665,3 +665,3 @@ class: [{ type: Input }], | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -679,3 +679,14 @@ class CIModule { | ||
export { CIConfig, CIModule, CIService, ImgComponent }; | ||
//# sourceMappingURL=ng-cloudimage-responsive.js.map | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
export { CIService, CIConfig, CIModule, ImgComponent }; | ||
//# sourceMappingURL=ng-cloudimage-responsive.js.map |
@@ -0,4 +1,4 @@ | ||
import { CommonModule } from '@angular/common'; | ||
import { __read, __spread, __assign } from 'tslib'; | ||
import { Injectable, ɵɵdefineInjectable, ɵɵinject, Component, ChangeDetectorRef, ViewChild, Input, Output, EventEmitter, NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { Injectable, NgModule, defineInjectable, inject, EventEmitter, Component, ChangeDetectorRef, ViewChild, Input, Output } from '@angular/core'; | ||
import { DomSanitizer } from '@angular/platform-browser'; | ||
@@ -11,3 +11,3 @@ import { fromEvent } from 'rxjs'; | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -22,3 +22,3 @@ var CIConfig = /** @class */ (function () { | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -419,3 +419,3 @@ var CIService = /** @class */ (function () { | ||
]; }; | ||
/** @nocollapse */ CIService.ngInjectableDef = ɵɵdefineInjectable({ factory: function CIService_Factory() { return new CIService(ɵɵinject(CIConfig)); }, token: CIService, providedIn: "root" }); | ||
/** @nocollapse */ CIService.ngInjectableDef = defineInjectable({ factory: function CIService_Factory() { return new CIService(inject(CIConfig)); }, token: CIService, providedIn: "root" }); | ||
return CIService; | ||
@@ -426,3 +426,3 @@ }()); | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -704,4 +704,4 @@ var ImgComponent = /** @class */ (function () { | ||
ImgComponent.propDecorators = { | ||
imgElem: [{ type: ViewChild, args: ['imgElem', { static: false },] }], | ||
pictureElem: [{ type: ViewChild, args: ['pictureElem', { static: false },] }], | ||
imgElem: [{ type: ViewChild, args: ['imgElem',] }], | ||
pictureElem: [{ type: ViewChild, args: ['pictureElem',] }], | ||
src: [{ type: Input }], | ||
@@ -726,3 +726,3 @@ class: [{ type: Input }], | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
@@ -743,3 +743,14 @@ var CIModule = /** @class */ (function () { | ||
export { CIConfig, CIModule, CIService, ImgComponent }; | ||
//# sourceMappingURL=ng-cloudimage-responsive.js.map | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
export { CIService, CIConfig, CIModule, ImgComponent }; | ||
//# sourceMappingURL=ng-cloudimage-responsive.js.map |
@@ -52,9 +52,9 @@ import { OnInit, AfterViewInit, ElementRef, OnDestroy, EventEmitter, ChangeDetectorRef } from '@angular/core'; | ||
getFirstSource(): any; | ||
getPositionStyle(): import("@angular/platform-browser").SafeStyle; | ||
getImgHeight(): import("@angular/platform-browser").SafeStyle; | ||
getTransformStyle(): import("@angular/platform-browser").SafeStyle; | ||
getTransitionStyle(): import("@angular/platform-browser").SafeStyle; | ||
getFilterStyle(): import("@angular/platform-browser").SafeStyle; | ||
getPicturePaddingBottom(): import("@angular/platform-browser").SafeStyle; | ||
getPictureBackground(): import("@angular/platform-browser").SafeStyle; | ||
getPositionStyle(): import("@angular/platform-browser/src/security/dom_sanitization_service").SafeStyle; | ||
getImgHeight(): import("@angular/platform-browser/src/security/dom_sanitization_service").SafeStyle; | ||
getTransformStyle(): import("@angular/platform-browser/src/security/dom_sanitization_service").SafeStyle; | ||
getTransitionStyle(): import("@angular/platform-browser/src/security/dom_sanitization_service").SafeStyle; | ||
getFilterStyle(): import("@angular/platform-browser/src/security/dom_sanitization_service").SafeStyle; | ||
getPicturePaddingBottom(): import("@angular/platform-browser/src/security/dom_sanitization_service").SafeStyle; | ||
getPictureBackground(): import("@angular/platform-browser/src/security/dom_sanitization_service").SafeStyle; | ||
} |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"CIService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"CIConfig"}]}],"getParentWidth":[{"__symbolic":"method"}],"getParentContainerWithWidth":[{"__symbolic":"method"}],"getSizeLimit":[{"__symbolic":"method"}],"checkOnMedia":[{"__symbolic":"method"}],"checkIfRelativeUrlPath":[{"__symbolic":"method"}],"getImgSrc":[{"__symbolic":"method"}],"getSizeAccordingToPixelRatio":[{"__symbolic":"method"}],"generateUrl":[{"__symbolic":"method"}],"generateSources":[{"__symbolic":"method"}],"getAdaptiveSize":[{"__symbolic":"method"}],"generateSrcset":[{"__symbolic":"method"}],"generateImgSrc":[{"__symbolic":"method"}],"getRatioBySize":[{"__symbolic":"method"}],"getBreakPoint":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"CIConfig":{"__symbolic":"class","members":{}},"CIModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ImgComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":7,"character":12},{"__symbolic":"reference","module":"ng-lazyload-image","name":"LazyLoadImageModule","line":7,"character":26}],"exports":[{"__symbolic":"reference","name":"ImgComponent"}],"providers":[]}]}],"members":{}},"ImgComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"selector":"ci-img","template":"\n <picture #pictureElem *ngIf=\"!isProcessed\"></picture>\n\n <ng-container [ngSwitch]=\"lazyLoading\">\n <ng-container *ngSwitchCase=\"true\">\n <picture\n [class]=\"class + ' cloudimage-image-picture cloudimage-image-' + (isLoaded ? 'loaded' : 'loading')\"\n style=\"display:block;width:100%;overflow:hidden;position:relative;\"\n [style.paddingBottom]=\"getPicturePaddingBottom()\"\n [style.background]=\"getPictureBackground()\"\n #imgElem\n *ngIf=\"isProcessed\">\n <source\n *ngFor=\"let source of getRestSources()\"\n [media]=\"source.mediaQuery || ''\"\n [attr.lazyLoad]=\"source.srcSet || ''\"\n (load)=\"onImageLoad($event)\"\n />\n <source\n *ngIf=\"getFirstSource()\"\n [attr.lazyLoad]=\"firstSource.srcSet || ''\"\n (load)=\"onImageLoad($event)\"\n />\n <img\n style=\"display:block;width:100%;opacity:1;top:0;left:0;\"\n [style.position]=\"getPositionStyle()\"\n [style.height]=\"getImgHeight()\"\n [style.transform]=\"getTransformStyle()\"\n [style.transition]=\"getTransitionStyle()\"\n [style.filter]=\"getFilterStyle()\"\n (load)=\"onImageLoad($event)\"\n [lazyLoad]=\"!isPreview ? cloudimageUrl : (isPreviewLoaded ? cloudimageUrl : previewCloudimageUrl)\"\n [offset]=\"offset\"\n [alt]=\"\">\n </picture>\n </ng-container>\n <div *ngSwitchCase=\"false\">\n <picture\n [class]=\"class + ' cloudimage-image-picture cloudimage-image-' + (isLoaded ? 'loaded' : 'loading')\"\n style=\"display:block;width:100%;overflow:hidden;position:relative;\"\n [style.paddingBottom]=\"getPicturePaddingBottom()\"\n [style.background]=\"getPictureBackground()\"\n #imgElem\n *ngIf=\"isProcessed\">\n <source\n *ngFor=\"let source of restSources\"\n [media]=\"source.mediaQuery || ''\"\n [srcset]=\"source.srcSet || ''\"\n (load)=\"onImageLoad($event)\"\n />\n <source\n *ngIf=\"firstSource\"\n [srcset]=\"firstSource.srcSet || ''\"\n (load)=\"onImageLoad($event)\"\n />\n <img\n style=\"display:block;width:100%;opacity:1;top:0;left:0;\"\n [style.position]=\"getPositionStyle()\"\n [style.height]=\"getImgHeight()\"\n [style.transform]=\"getTransformStyle()\"\n [style.transition]=\"getTransitionStyle()\"\n [style.filter]=\"getFilterStyle()\"\n (load)=\"onImageLoad($event)\"\n [src]=\"!isPreview ? cloudimageUrl : (isPreviewLoaded ? cloudimageUrl : previewCloudimageUrl)\"\n [alt]=\"\">\n </picture>\n </div>\n </ng-container>\n "}]}],"members":{"imgElem":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":81,"character":3},"arguments":["imgElem",{"static":false}]}]}],"pictureElem":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":82,"character":3},"arguments":["pictureElem",{"static":false}]}]}],"src":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":83,"character":3}}]}],"class":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":84,"character":3}}]}],"alt":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":85,"character":3}}]}],"operation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":86,"character":3}}]}],"o":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":87,"character":3}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":88,"character":3}}]}],"s":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":89,"character":3}}]}],"filters":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":90,"character":3}}]}],"f":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":91,"character":3}}]}],"ratio":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":92,"character":3}}]}],"offset":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":93,"character":3}}]}],"ngSwitch":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":94,"character":3}}]}],"imageLoaded":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":95,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"CIService"},{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer","line":120,"character":24},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":121,"character":16}]}],"ngOnDestroy":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"processImage":[{"__symbolic":"method"}],"onImageLoad":[{"__symbolic":"method"}],"getRestSources":[{"__symbolic":"method"}],"getFirstSource":[{"__symbolic":"method"}],"getPositionStyle":[{"__symbolic":"method"}],"getImgHeight":[{"__symbolic":"method"}],"getTransformStyle":[{"__symbolic":"method"}],"getTransitionStyle":[{"__symbolic":"method"}],"getFilterStyle":[{"__symbolic":"method"}],"getPicturePaddingBottom":[{"__symbolic":"method"}],"getPictureBackground":[{"__symbolic":"method"}]}}},"origins":{"CIService":"./lib/lib.service","CIConfig":"./lib/config.model","CIModule":"./lib/lib.module","ImgComponent":"./lib/img/img.component"},"importAs":"ng-cloudimage-responsive"} | ||
{"__symbolic":"module","version":4,"metadata":{"CIService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"CIConfig"}]}],"getParentWidth":[{"__symbolic":"method"}],"getParentContainerWithWidth":[{"__symbolic":"method"}],"getSizeLimit":[{"__symbolic":"method"}],"checkOnMedia":[{"__symbolic":"method"}],"checkIfRelativeUrlPath":[{"__symbolic":"method"}],"getImgSrc":[{"__symbolic":"method"}],"getSizeAccordingToPixelRatio":[{"__symbolic":"method"}],"generateUrl":[{"__symbolic":"method"}],"generateSources":[{"__symbolic":"method"}],"getAdaptiveSize":[{"__symbolic":"method"}],"generateSrcset":[{"__symbolic":"method"}],"generateImgSrc":[{"__symbolic":"method"}],"getRatioBySize":[{"__symbolic":"method"}],"getBreakPoint":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"CIConfig":{"__symbolic":"class","members":{}},"CIModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ImgComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":7,"character":12},{"__symbolic":"reference","module":"ng-lazyload-image","name":"LazyLoadImageModule","line":7,"character":26}],"exports":[{"__symbolic":"reference","name":"ImgComponent"}],"providers":[]}]}],"members":{}},"ImgComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"selector":"ci-img","template":"\n <picture #pictureElem *ngIf=\"!isProcessed\"></picture>\n\n <ng-container [ngSwitch]=\"lazyLoading\">\n <ng-container *ngSwitchCase=\"true\">\n <picture\n [class]=\"class + ' cloudimage-image-picture cloudimage-image-' + (isLoaded ? 'loaded' : 'loading')\"\n style=\"display:block;width:100%;overflow:hidden;position:relative;\"\n [style.paddingBottom]=\"getPicturePaddingBottom()\"\n [style.background]=\"getPictureBackground()\"\n #imgElem\n *ngIf=\"isProcessed\">\n <source\n *ngFor=\"let source of getRestSources()\"\n [media]=\"source.mediaQuery || ''\"\n [attr.lazyLoad]=\"source.srcSet || ''\"\n (load)=\"onImageLoad($event)\"\n />\n <source\n *ngIf=\"getFirstSource()\"\n [attr.lazyLoad]=\"firstSource.srcSet || ''\"\n (load)=\"onImageLoad($event)\"\n />\n <img\n style=\"display:block;width:100%;opacity:1;top:0;left:0;\"\n [style.position]=\"getPositionStyle()\"\n [style.height]=\"getImgHeight()\"\n [style.transform]=\"getTransformStyle()\"\n [style.transition]=\"getTransitionStyle()\"\n [style.filter]=\"getFilterStyle()\"\n (load)=\"onImageLoad($event)\"\n [lazyLoad]=\"!isPreview ? cloudimageUrl : (isPreviewLoaded ? cloudimageUrl : previewCloudimageUrl)\"\n [offset]=\"offset\"\n [alt]=\"\">\n </picture>\n </ng-container>\n <div *ngSwitchCase=\"false\">\n <picture\n [class]=\"class + ' cloudimage-image-picture cloudimage-image-' + (isLoaded ? 'loaded' : 'loading')\"\n style=\"display:block;width:100%;overflow:hidden;position:relative;\"\n [style.paddingBottom]=\"getPicturePaddingBottom()\"\n [style.background]=\"getPictureBackground()\"\n #imgElem\n *ngIf=\"isProcessed\">\n <source\n *ngFor=\"let source of restSources\"\n [media]=\"source.mediaQuery || ''\"\n [srcset]=\"source.srcSet || ''\"\n (load)=\"onImageLoad($event)\"\n />\n <source\n *ngIf=\"firstSource\"\n [srcset]=\"firstSource.srcSet || ''\"\n (load)=\"onImageLoad($event)\"\n />\n <img\n style=\"display:block;width:100%;opacity:1;top:0;left:0;\"\n [style.position]=\"getPositionStyle()\"\n [style.height]=\"getImgHeight()\"\n [style.transform]=\"getTransformStyle()\"\n [style.transition]=\"getTransitionStyle()\"\n [style.filter]=\"getFilterStyle()\"\n (load)=\"onImageLoad($event)\"\n [src]=\"!isPreview ? cloudimageUrl : (isPreviewLoaded ? cloudimageUrl : previewCloudimageUrl)\"\n [alt]=\"\">\n </picture>\n </div>\n </ng-container>\n "}]}],"members":{"imgElem":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":81,"character":3},"arguments":["imgElem"]}]}],"pictureElem":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":82,"character":3},"arguments":["pictureElem"]}]}],"src":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":83,"character":3}}]}],"class":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":84,"character":3}}]}],"alt":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":85,"character":3}}]}],"operation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":86,"character":3}}]}],"o":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":87,"character":3}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":88,"character":3}}]}],"s":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":89,"character":3}}]}],"filters":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":90,"character":3}}]}],"f":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":91,"character":3}}]}],"ratio":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":92,"character":3}}]}],"offset":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":93,"character":3}}]}],"ngSwitch":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":94,"character":3}}]}],"imageLoaded":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":95,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"CIService"},{"__symbolic":"reference","module":"@angular/platform-browser","name":"DomSanitizer","line":120,"character":24},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":121,"character":16}]}],"ngOnDestroy":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"processImage":[{"__symbolic":"method"}],"onImageLoad":[{"__symbolic":"method"}],"getRestSources":[{"__symbolic":"method"}],"getFirstSource":[{"__symbolic":"method"}],"getPositionStyle":[{"__symbolic":"method"}],"getImgHeight":[{"__symbolic":"method"}],"getTransformStyle":[{"__symbolic":"method"}],"getTransitionStyle":[{"__symbolic":"method"}],"getFilterStyle":[{"__symbolic":"method"}],"getPicturePaddingBottom":[{"__symbolic":"method"}],"getPictureBackground":[{"__symbolic":"method"}]}}},"origins":{"CIService":"./lib/lib.service","CIConfig":"./lib/config.model","CIModule":"./lib/lib.module","ImgComponent":"./lib/img/img.component"},"importAs":"ng-cloudimage-responsive"} |
{ | ||
"name": "ng-cloudimage-responsive", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Cloudimage Responsive will smartly resize, compress and accelerate images across the World in your site for all devices. The plugin supports lazy loading technique with fancy animation on image load.", | ||
@@ -5,0 +5,0 @@ "author": "scaleflex", |
@@ -1,2 +0,2 @@ | ||
[![Release](https://img.shields.io/badge/release-v2.0.1-blue.svg)](https://github.com/scaleflex/ng-cloudimage-responsive/releases) | ||
[![Release](https://img.shields.io/badge/release-v2.0.2-blue.svg)](https://github.com/scaleflex/ng-cloudimage-responsive/releases) | ||
[![Free plan](https://img.shields.io/badge/price-includes%20free%20plan-green.svg)](https://www.cloudimage.io/en/home#b38181a6-b9c8-4015-9742-7b1a1ad382d5) | ||
@@ -3,0 +3,0 @@ [![Contributions welcome](https://img.shields.io/badge/contributions-welcome-orange.svg)](#contributing) |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
421699
4090