igniteui-angular
Version:
Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps
1,360 lines (1,341 loc) • 3.63 MB
JavaScript
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jszip/dist/jszip'), require('@angular/common/http'), require('rxjs/internal/Subject'), require('@angular/platform-browser'), require('rxjs/operators'), require('@angular/animations'), require('@angular/common'), require('@angular/forms'), require('@angular/core'), require('rxjs')) :
typeof define === 'function' && define.amd ? define('igniteui-angular', ['exports', 'jszip/dist/jszip', '@angular/common/http', 'rxjs/internal/Subject', '@angular/platform-browser', 'rxjs/operators', '@angular/animations', '@angular/common', '@angular/forms', '@angular/core', 'rxjs'], factory) :
(factory((global['igniteui-angular'] = {}),global.JSZip,global.ng.common.http,global.rxjs['internal/Subject'],global.ng.platformBrowser,global.rxjs.operators,global.ng.animations,global.ng.common,global.ng.forms,global.ng.core,global.rxjs));
}(this, (function (exports,JSZip,i2,Subject,i1,operators,i1$1,i3,forms,i0,rxjs) { 'use strict';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @enum {string} */
var EaseIn = {
quad: ( /** @type {?} */("cubic-bezier(0.550, 0.085, 0.680, 0.530)")),
cubic: ( /** @type {?} */("cubic-bezier(0.550, 0.055, 0.675, 0.190)")),
quart: ( /** @type {?} */("cubic-bezier(0.895, 0.030, 0.685, 0.220)")),
quint: ( /** @type {?} */("cubic-bezier(0.755, 0.050, 0.855, 0.060)")),
sine: ( /** @type {?} */("cubic-bezier(0.470, 0.000, 0.745, 0.715)")),
expo: ( /** @type {?} */("cubic-bezier(0.950, 0.050, 0.795, 0.035)")),
circ: ( /** @type {?} */("cubic-bezier(0.600, 0.040, 0.980, 0.335)")),
back: ( /** @type {?} */("cubic-bezier(0.600, -0.280, 0.735, 0.045)")),
};
/** @enum {string} */
var EaseOut = {
quad: ( /** @type {?} */("cubic-bezier(0.250, 0.460, 0.450, 0.940)")),
cubic: ( /** @type {?} */("cubic-bezier(0.215, 0.610, 0.355, 1.000)")),
quart: ( /** @type {?} */("cubic-bezier(0.165, 0.840, 0.440, 1.000)")),
quint: ( /** @type {?} */("cubic-bezier(0.230, 1.000, 0.320, 1.000)")),
sine: ( /** @type {?} */("cubic-bezier(0.390, 0.575, 0.565, 1.000)")),
expo: ( /** @type {?} */("cubic-bezier(0.190, 1.000, 0.220, 1.000)")),
circ: ( /** @type {?} */("cubic-bezier(0.075, 0.820, 0.165, 1.000)")),
back: ( /** @type {?} */("cubic-bezier(0.175, 0.885, 0.320, 1.275)")),
};
/** @enum {string} */
var EaseInOut = {
quad: ( /** @type {?} */("cubic-bezier(0.455, 0.030, 0.515, 0.955)")),
cubic: ( /** @type {?} */("cubic-bezier(0.645, 0.045, 0.355, 1.000)")),
quart: ( /** @type {?} */("cubic-bezier(0.770, 0.000, 0.175, 1.000)")),
quint: ( /** @type {?} */("cubic-bezier(0.860, 0.000, 0.070, 1.000)")),
sine: ( /** @type {?} */("cubic-bezier(0.445, 0.050, 0.550, 0.950)")),
expo: ( /** @type {?} */("cubic-bezier(1.000, 0.000, 0.000, 1.000)")),
circ: ( /** @type {?} */("cubic-bezier(0.785, 0.135, 0.150, 0.860)")),
back: ( /** @type {?} */("cubic-bezier(0.680, -0.550, 0.265, 1.550)")),
};
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var base = [
i1$1.style({
opacity: "{{startOpacity}}"
}),
i1$1.animate("{{duration}} {{delay}} {{easing}}", i1$1.style({
opacity: "{{endOpacity}}"
}))
];
/** @type {?} */
var baseParams = {
delay: '0s',
duration: '350ms',
easing: EaseOut.sine,
endOpacity: 1,
startOpacity: 0
};
/** @type {?} */
var fadeIn = i1$1.animation(base, {
params: baseParams
});
/** @type {?} */
var fadeOut = i1$1.animation(base, {
params: {
delay: '0s',
duration: '350ms',
easing: EaseOut.sine,
endOpacity: 0,
startOpacity: 1
}
});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b)
if (b.hasOwnProperty(p))
d[p] = b[p]; };
return extendStatics(d, b);
};
function __extends(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
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];
}
return t;
};
return __assign.apply(this, arguments);
};
function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (var i = decorators.length - 1; i >= 0; i--)
if (d = decorators[i])
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function __metadata(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
return Reflect.metadata(metadataKey, metadataValue);
}
function __values(o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m)
return m.call(o);
return {
next: function () {
if (o && i >= o.length)
o = void 0;
return { value: o && o[i++], done: !o };
}
};
}
function __read(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m)
return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
ar.push(r.value);
}
catch (error) {
e = { error: error };
}
finally {
try {
if (r && !r.done && (m = i["return"]))
m.call(i);
}
finally {
if (e)
throw e.error;
}
}
return ar;
}
function __spread() {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var baseRecipe = [
i1$1.style({
backfaceVisibility: 'hidden',
transformStyle: 'preserve-3d'
}),
i1$1.animate("{{duration}} {{delay}} {{easing}}", i1$1.keyframes([
i1$1.style({
offset: 0,
transform: "translateZ({{startDistance}})\n rotate3d({{rotateX}}, {{rotateY}}, {{rotateZ}}, {{startAngle}}deg)"
}),
i1$1.style({
offset: 1,
transform: "translateZ({{endDistance}})\n rotate3d({{rotateX}}, {{rotateY}}, {{rotateZ}}, {{endAngle}}deg)"
})
]))
];
/** @type {?} */
var baseParams$1 = {
delay: '0s',
duration: '600ms',
easing: EaseOut.quad,
endAngle: 180,
endDistance: '0px',
rotateX: 1,
rotateY: 0,
rotateZ: 0,
startAngle: 0,
startDistance: '0px'
};
/** @type {?} */
var flipTop = i1$1.animation(baseRecipe, {
params: __assign({}, baseParams$1)
});
/** @type {?} */
var flipBottom = i1$1.animation(baseRecipe, {
params: __assign({}, baseParams$1, { endAngle: -180 })
});
/** @type {?} */
var flipLeft = i1$1.animation(baseRecipe, {
params: __assign({}, baseParams$1, { rotateX: 0, rotateY: 1 })
});
/** @type {?} */
var flipRight = i1$1.animation(baseRecipe, {
params: __assign({}, baseParams$1, { endAngle: -180, rotateX: 0, rotateY: 1 })
});
/** @type {?} */
var flipHorFwd = i1$1.animation(baseRecipe, {
params: __assign({}, baseParams$1, { endDistance: '170px' })
});
/** @type {?} */
var flipHorBck = i1$1.animation(baseRecipe, {
params: __assign({}, baseParams$1, { endDistance: '-170px' })
});
/** @type {?} */
var flipVerFwd = i1$1.animation(baseRecipe, {
params: __assign({}, baseParams$1, { endDistance: '170px', rotateX: 0, rotateY: 1 })
});
/** @type {?} */
var flipVerBck = i1$1.animation(baseRecipe, {
params: __assign({}, baseParams$1, { endDistance: '-170px', rotateX: 0, rotateY: 1 })
});
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var baseRecipe$1 = [
i1$1.style({
opacity: "{{startOpacity}}",
transform: "rotate3d({{rotateX}},{{rotateY}},{{rotateZ}},{{startAngle}}deg)",
transformOrigin: "{{xPos}} {{yPos}}"
}),
i1$1.animate("{{duration}} {{delay}} {{easing}}", i1$1.style({
offset: 0,
opacity: "{{endOpacity}}",
transform: "rotate3d({{rotateX}},{{rotateY}},{{rotateZ}},{{endAngle}}deg)",
transformOrigin: "{{xPos}} {{yPos}}"
}))
];
/** @type {?} */
var baseInParams = {
delay: '0s',
duration: '600ms',
easing: EaseOut.quad,
endAngle: 0,
endOpacity: 1,
rotateX: 0,
rotateY: 0,
rotateZ: 1,
startAngle: -360,
startOpacity: 0,
xPos: 'center',
yPos: 'center'
};
/** @type {?} */
var baseOutParams = __assign({}, baseInParams, { easing: EaseIn.quad, endOpacity: 0, startOpacity: 1 });
/** @type {?} */
var rotateInCenter = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseInParams)
});
/** @type {?} */
var rotateOutCenter = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseOutParams)
});
/** @type {?} */
var rotateInTop = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseInParams, { xPos: 'top' })
});
/** @type {?} */
var rotateOutTop = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseOutParams, { xPos: 'top' })
});
/** @type {?} */
var rotateInRight = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseInParams, { xPos: 'right' })
});
/** @type {?} */
var rotateOutRight = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseOutParams, { xPos: 'right' })
});
/** @type {?} */
var rotateInBottom = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseInParams, { xPos: 'bottom' })
});
/** @type {?} */
var rotateOutBottom = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseOutParams, { xPos: 'bottom' })
});
/** @type {?} */
var rotateInLeft = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseInParams, { xPos: 'left' })
});
/** @type {?} */
var rotateOutLeft = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseOutParams, { xPos: 'left' })
});
/** @type {?} */
var rotateInTr = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseInParams, { xPos: 'right', yPos: 'top' })
});
/** @type {?} */
var rotateOutTr = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseOutParams, { xPos: 'right', yPos: 'top' })
});
/** @type {?} */
var rotateInBr = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseInParams, { xPos: 'right', yPos: 'bottom' })
});
/** @type {?} */
var rotateOutBr = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseOutParams, { xPos: 'right', yPos: 'bottom' })
});
/** @type {?} */
var rotateInBl = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseInParams, { xPos: 'left', yPos: 'bottom' })
});
/** @type {?} */
var rotateOutBl = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseOutParams, { xPos: 'left', yPos: 'bottom' })
});
/** @type {?} */
var rotateInTl = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseInParams, { xPos: 'left', yPos: 'top' })
});
/** @type {?} */
var rotateOutTl = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseOutParams, { xPos: 'left', yPos: 'top' })
});
/** @type {?} */
var rotateInDiagonal1 = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseInParams, { rotateX: 1, rotateY: 1, rotateZ: 0 })
});
/** @type {?} */
var rotateOutDiagonal1 = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseOutParams, { rotateX: 1, rotateY: 1, rotateZ: 0 })
});
/** @type {?} */
var rotateInDiagonal2 = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseInParams, { rotateX: -1, rotateY: 1, rotateZ: 0 })
});
/** @type {?} */
var rotateOutDiagonal2 = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseOutParams, { rotateX: -1, rotateY: 1, rotateZ: 0 })
});
/** @type {?} */
var rotateInHor = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseInParams, { rotateX: 0, rotateY: 1, rotateZ: 0 })
});
/** @type {?} */
var rotateOutHor = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseOutParams, { rotateX: 0, rotateY: 1, rotateZ: 0 })
});
/** @type {?} */
var rotateInVer = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseInParams, { rotateX: 1, rotateY: 0, rotateZ: 0 })
});
/** @type {?} */
var rotateOutVer = i1$1.animation(baseRecipe$1, {
params: __assign({}, baseOutParams, { rotateX: 1, rotateY: 0, rotateZ: 0 })
});
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var baseRecipe$2 = [
i1$1.animate("{{duration}} {{delay}} {{easing}}", i1$1.keyframes([
i1$1.style({
offset: 0,
transform: "rotate(0deg) translate{{direction}}(0)",
transformOrigin: "{{xPos}} {{yPos}}"
}),
i1$1.style({
offset: 0.1,
transform: "rotate({{endAngle}}deg) translate{{direction}}(-{{startDistance}})"
}),
i1$1.style({
offset: 0.2,
transform: "rotate(-{{startAngle}}deg) translate{{direction}}({{startDistance}})"
}),
i1$1.style({
offset: 0.3,
transform: "rotate({{startAngle}}deg) translate{{direction}}(-{{startDistance}})"
}),
i1$1.style({
offset: 0.4,
transform: "rotate(-{{startAngle}}deg) translate{{direction}}({{startDistance}})"
}),
i1$1.style({
offset: 0.5,
transform: "rotate({{startAngle}}deg) translate{{direction}}(-{{startDistance}})"
}),
i1$1.style({
offset: 0.6,
transform: "rotate(-{{startAngle}}deg) translate{{direction}}({{startDistance}})"
}),
i1$1.style({
offset: 0.7,
transform: "rotate({{startAngle}}deg) translate{{direction}}(-{{startDistance}})"
}),
i1$1.style({
offset: 0.8,
transform: "rotate(-{{endAngle}}deg) translate{{direction}}({{endDistance}})"
}),
i1$1.style({
offset: 0.9,
transform: "rotate({{endAngle}}deg) translate{{direction}}(-{{endDistance}})"
}),
i1$1.style({
offset: 1,
transform: "rotate(0deg) translate{{direction}}(0)",
transformOrigin: "{{xPos}} {{yPos}}"
})
]))
];
/** @type {?} */
var baseParams$2 = {
delay: '0s',
direction: 'X',
duration: '800ms',
easing: EaseInOut.quad,
endAngle: 0,
endDistance: '8px',
startAngle: 0,
startDistance: '10px',
xPos: 'center',
yPos: 'center'
};
/** @type {?} */
var shakeHor = i1$1.animation(baseRecipe$2, {
params: __assign({}, baseParams$2, { direction: 'X' })
});
/** @type {?} */
var shakeVer = i1$1.animation(baseRecipe$2, {
params: __assign({}, baseParams$2, { direction: 'Y' })
});
/** @type {?} */
var shakeTop = i1$1.animation(baseRecipe$2, {
params: __assign({}, baseParams$2, { endAngle: 2, endDistance: '0', startAngle: 4, startDistance: '0', yPos: 'top' })
});
/** @type {?} */
var shakeBottom = i1$1.animation(baseRecipe$2, {
params: __assign({}, baseParams$2, { direction: 'Y', endAngle: 2, endDistance: '0', startAngle: 4, startDistance: '0', yPos: 'bottom' })
});
/** @type {?} */
var shakeRight = i1$1.animation(baseRecipe$2, {
params: __assign({}, baseParams$2, { direction: 'Y', endAngle: 2, endDistance: '0', startAngle: 4, startDistance: '0', xPos: 'right', yPos: 'center' })
});
/** @type {?} */
var shakeLeft = i1$1.animation(baseRecipe$2, {
params: __assign({}, baseParams$2, { direction: 'Y', endAngle: 2, endDistance: '0', startAngle: 4, startDistance: '0', xPos: 'left', yPos: 'center' })
});
/** @type {?} */
var shakeCenter = i1$1.animation(baseRecipe$2, {
params: __assign({}, baseParams$2, { direction: 'Y', endAngle: 8, endDistance: '0', startAngle: 10, startDistance: '0', xPos: 'center', yPos: 'center' })
});
/** @type {?} */
var shakeTr = i1$1.animation(baseRecipe$2, {
params: __assign({}, baseParams$2, { direction: 'Y', endAngle: 2, endDistance: '0', startAngle: 4, startDistance: '0', xPos: 'right', yPos: 'top' })
});
/** @type {?} */
var shakeBr = i1$1.animation(baseRecipe$2, {
params: __assign({}, baseParams$2, { direction: 'Y', endAngle: 2, endDistance: '0', startAngle: 4, startDistance: '0', xPos: 'right', yPos: 'bottom' })
});
/** @type {?} */
var shakeBl = i1$1.animation(baseRecipe$2, {
params: __assign({}, baseParams$2, { direction: 'Y', endAngle: 2, endDistance: '0', startAngle: 4, startDistance: '0', xPos: 'left', yPos: 'bottom' })
});
/** @type {?} */
var shakeTl = i1$1.animation(baseRecipe$2, {
params: __assign({}, baseParams$2, { direction: 'Y', endAngle: 2, endDistance: '0', startAngle: 4, startDistance: '0', xPos: 'left', yPos: 'top' })
});
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var heartbeatBase = [
i1$1.style({
animationTimingFunction: "ease-out",
transform: "scale(1)",
transformOrigin: "center center"
}),
i1$1.animate("{{duration}} {{delay}} {{easing}}", i1$1.keyframes([
i1$1.style({
animationTimingFunction: "ease-in",
offset: 0.1,
transform: "scale(0.91)"
}),
i1$1.style({
animationTimingFunction: "ease-out",
offset: 0.17,
transform: "scale(0.98)"
}),
i1$1.style({
animationTimingFunction: "ease-in",
offset: 0.33,
transform: "scale(0.87)"
}),
i1$1.style({
animationTimingFunction: "ease-out",
offset: 0.45,
transform: "scale(1)"
})
]))
];
/** @type {?} */
var heartbeatParams = {
delay: '0s',
duration: '1.5s',
easing: 'ease-in-out'
};
/** @type {?} */
var pulsateBase = [
i1$1.animate("{{duration}} {{delay}} {{easing}}", i1$1.keyframes([
i1$1.style({
offset: 0,
transform: "scale({{fromScale}})"
}),
i1$1.style({
offset: 0.5,
transform: "scale({{toScale}})"
}),
i1$1.style({
offset: 1,
transform: "scale({{fromScale}})"
})
]))
];
/** @type {?} */
var pulsateParams = {
delay: '0s',
duration: '.5s',
easing: 'ease-in-out',
fromScale: 1,
toScale: 1.1
};
/** @type {?} */
var blinkBase = [
i1$1.animate("{{duration}} {{delay}} {{easing}}", i1$1.keyframes([
i1$1.style({
offset: 0,
opacity: .8,
transform: "scale({{fromScale}})"
}),
i1$1.style({
offset: 0.8,
opacity: 0,
transform: "scale({{midScale}})"
}),
i1$1.style({
offset: 1,
opacity: 0,
transform: "scale({{toScale}})"
})
]))
];
/** @type {?} */
var blinkParams = {
delay: '0s',
duration: '.8s',
easing: 'ease-in-out',
fromScale: .2,
midScale: 1.2,
toScale: 2.2
};
/** @type {?} */
var pulsateFwd = i1$1.animation(pulsateBase, {
params: __assign({}, pulsateParams)
});
/** @type {?} */
var pulsateBck = i1$1.animation(pulsateBase, {
params: __assign({}, pulsateParams, { toScale: .9 })
});
/** @type {?} */
var heartbeat = i1$1.animation(heartbeatBase, {
params: __assign({}, heartbeatParams)
});
/** @type {?} */
var blink = i1$1.animation(blinkBase, {
params: __assign({}, blinkParams)
});
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var base$1 = [
i1$1.style({
opacity: "{{startOpacity}}",
transform: "scale{{direction}}({{fromScale}})",
transformOrigin: "{{xPos}} {{yPos}}"
}),
i1$1.animate("{{duration}} {{delay}} {{easing}}", i1$1.style({
opacity: "{{endOpacity}}",
transform: "scale{{direction}}({{toScale}})",
transformOrigin: "{{xPos}} {{yPos}}"
}))
];
/** @type {?} */
var baseInParams$1 = {
delay: '0s',
direction: '',
duration: '350ms',
easing: EaseOut.quad,
endOpacity: 1,
fromScale: .5,
startOpacity: 0,
toScale: 1,
xPos: '50%',
yPos: '50%'
};
/** @type {?} */
var baseOutParams$1 = __assign({}, baseInParams$1, { easing: EaseOut.sine, endOpacity: 0, fromScale: 1, startOpacity: 1, toScale: .5 });
/** @type {?} */
var scaleInCenter = i1$1.animation(base$1, { params: baseInParams$1 });
/** @type {?} */
var scaleInBl = i1$1.animation(base$1, {
params: __assign({}, baseInParams$1, { xPos: '0', yPos: '100%' })
});
/** @type {?} */
var scaleInVerCenter = i1$1.animation(base$1, {
params: __assign({}, baseInParams$1, { direction: 'Y', fromScale: .4 })
});
/** @type {?} */
var scaleInTop = i1$1.animation(base$1, {
params: __assign({}, baseInParams$1, { xPos: '50%', yPos: '0' })
});
/** @type {?} */
var scaleInLeft = i1$1.animation(base$1, {
params: __assign({}, baseInParams$1, { xPos: '0', yPos: '50%' })
});
/** @type {?} */
var scaleInVerTop = i1$1.animation(base$1, {
params: __assign({}, baseInParams$1, { direction: 'Y', fromScale: .4, xPos: '100%', yPos: '0' })
});
/** @type {?} */
var scaleInTr = i1$1.animation(base$1, {
params: __assign({}, baseInParams$1, { xPos: '100%', yPos: '0' })
});
/** @type {?} */
var scaleInTl = i1$1.animation(base$1, {
params: __assign({}, baseInParams$1, { xPos: '0', yPos: '0' })
});
/** @type {?} */
var scaleInVerBottom = i1$1.animation(base$1, {
params: __assign({}, baseInParams$1, { direction: 'Y', fromScale: .4, xPos: '0', yPos: '100%' })
});
/** @type {?} */
var scaleInRight = i1$1.animation(base$1, {
params: __assign({}, baseInParams$1, { xPos: '100%', yPos: '50%' })
});
/** @type {?} */
var scaleInHorCenter = i1$1.animation(base$1, {
params: __assign({}, baseInParams$1, { direction: 'X', fromScale: .4 })
});
/** @type {?} */
var scaleInBr = i1$1.animation(base$1, {
params: __assign({}, baseInParams$1, { xPos: '100%', yPos: '100%' })
});
/** @type {?} */
var scaleInHorLeft = i1$1.animation(base$1, {
params: __assign({}, baseInParams$1, { direction: 'X', fromScale: .4, xPos: '0', yPos: '0' })
});
/** @type {?} */
var scaleInBottom = i1$1.animation(base$1, {
params: __assign({}, baseInParams$1, { xPos: '50%', yPos: '100%' })
});
/** @type {?} */
var scaleInHorRight = i1$1.animation(base$1, {
params: __assign({}, baseInParams$1, { direction: 'X', fromScale: .4, xPos: '100%', yPos: '100%' })
});
/** @type {?} */
var scaleOutCenter = i1$1.animation(base$1, { params: baseOutParams$1 });
/** @type {?} */
var scaleOutBl = i1$1.animation(base$1, {
params: __assign({}, baseOutParams$1, { xPos: '0', yPos: '100%' })
});
/** @type {?} */
var scaleOutBr = i1$1.animation(base$1, {
params: __assign({}, baseOutParams$1, { xPos: '100%', yPos: '100%' })
});
/** @type {?} */
var scaleOutVerCenter = i1$1.animation(base$1, {
params: __assign({}, baseOutParams$1, { direction: 'Y', toScale: .3 })
});
/** @type {?} */
var scaleOutVerTop = i1$1.animation(base$1, {
params: __assign({}, baseOutParams$1, { direction: 'Y', toScale: .3, xPos: '100%', yPos: '0' })
});
/** @type {?} */
var scaleOutVerBottom = i1$1.animation(base$1, {
params: __assign({}, baseOutParams$1, { direction: 'Y', toScale: .3, xPos: '0', yPos: '100%' })
});
/** @type {?} */
var scaleOutTop = i1$1.animation(base$1, {
params: __assign({}, baseOutParams$1, { xPos: '50%', yPos: '0' })
});
/** @type {?} */
var scaleOutLeft = i1$1.animation(base$1, {
params: __assign({}, baseOutParams$1, { xPos: '0', yPos: '50%' })
});
/** @type {?} */
var scaleOutTr = i1$1.animation(base$1, {
params: __assign({}, baseOutParams$1, { xPos: '100%', yPos: '0' })
});
/** @type {?} */
var scaleOutTl = i1$1.animation(base$1, {
params: __assign({}, baseOutParams$1, { xPos: '0', yPos: '0' })
});
/** @type {?} */
var scaleOutRight = i1$1.animation(base$1, {
params: __assign({}, baseOutParams$1, { xPos: '100%', yPos: '50%' })
});
/** @type {?} */
var scaleOutBottom = i1$1.animation(base$1, {
params: __assign({}, baseOutParams$1, { xPos: '50%', yPos: '100%' })
});
/** @type {?} */
var scaleOutHorCenter = i1$1.animation(base$1, {
params: __assign({}, baseOutParams$1, { direction: 'X', toScale: .3 })
});
/** @type {?} */
var scaleOutHorLeft = i1$1.animation(base$1, {
params: __assign({}, baseOutParams$1, { direction: 'X', toScale: .3, xPos: '0', yPos: '0' })
});
/** @type {?} */
var scaleOutHorRight = i1$1.animation(base$1, {
params: __assign({}, baseOutParams$1, { direction: 'X', toScale: .3, xPos: '100%', yPos: '100%' })
});
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var base$2 = [
i1$1.style({
opacity: "{{startOpacity}}",
transform: "{{fromPosition}}"
}),
i1$1.animate("{{duration}} {{delay}} {{easing}}", i1$1.style({
opacity: "{{endOpacity}}",
transform: "{{toPosition}}"
}))
];
/** @type {?} */
var baseInParams$2 = {
delay: '0s',
duration: '350ms',
easing: EaseOut.quad,
endOpacity: 1,
fromPosition: 'translateY(-500px)',
startOpacity: 0,
toPosition: 'translateY(0)'
};
/** @type {?} */
var baseOutParams$2 = {
delay: '0s',
duration: '350ms',
easing: EaseIn.quad,
endOpacity: 0,
fromPosition: 'translateY(0)',
startOpacity: 1,
toPosition: 'translateY(-500px)'
};
/** @type {?} */
var slideInTop = i1$1.animation(base$2, { params: baseInParams$2 });
/** @type {?} */
var slideInLeft = i1$1.animation(base$2, {
params: {
delay: '0s',
duration: '350ms',
easing: EaseOut.quad,
endOpacity: 1,
fromPosition: 'translateX(-500px)',
startOpacity: 0,
toPosition: 'translateY(0)'
}
});
/** @type {?} */
var slideInRight = i1$1.animation(base$2, {
params: {
delay: '0s',
duration: '350ms',
easing: EaseOut.quad,
endOpacity: 1,
fromPosition: 'translateX(500px)',
startOpacity: 0,
toPosition: 'translateY(0)'
}
});
/** @type {?} */
var slideInBottom = i1$1.animation(base$2, {
params: {
delay: '0s',
duration: '350ms',
easing: EaseOut.quad,
endOpacity: 1,
fromPosition: 'translateY(500px)',
startOpacity: 0,
toPosition: 'translateY(0)'
}
});
/** @type {?} */
var slideInTr = i1$1.animation(base$2, {
params: __assign({}, baseInParams$2, { fromPosition: 'translateY(-500px) translateX(500px)', toPosition: 'translateY(0) translateX(0)' })
});
/** @type {?} */
var slideInTl = i1$1.animation(base$2, {
params: __assign({}, baseInParams$2, { fromPosition: 'translateY(-500px) translateX(-500px)', toPosition: 'translateY(0) translateX(0)' })
});
/** @type {?} */
var slideInBr = i1$1.animation(base$2, {
params: __assign({}, baseInParams$2, { fromPosition: 'translateY(500px) translateX(500px)', toPosition: 'translateY(0) translateX(0)' })
});
/** @type {?} */
var slideInBl = i1$1.animation(base$2, {
params: __assign({}, baseInParams$2, { fromPosition: 'translateY(500px) translateX(-500px)', toPosition: 'translateY(0) translateX(0)' })
});
/** @type {?} */
var slideOutTop = i1$1.animation(base$2, { params: baseOutParams$2 });
/** @type {?} */
var slideOutRight = i1$1.animation(base$2, {
params: __assign({}, baseOutParams$2, { toPosition: 'translateX(500px)' })
});
/** @type {?} */
var slideOutBottom = i1$1.animation(base$2, {
params: {
delay: '0s',
duration: '350ms',
easing: EaseIn.quad,
endOpacity: 0,
fromPosition: 'translateY(0)',
startOpacity: 1,
toPosition: 'translateY(500px)'
}
});
/** @type {?} */
var slideOutLeft = i1$1.animation(base$2, {
params: __assign({}, baseOutParams$2, { toPosition: 'translateX(-500px)' })
});
/** @type {?} */
var slideOutTr = i1$1.animation(base$2, {
params: __assign({}, baseOutParams$2, { fromPosition: 'translateY(0) translateX(0)', toPosition: 'translateY(-500px) translateX(500px)' })
});
/** @type {?} */
var slideOutBr = i1$1.animation(base$2, {
params: __assign({}, baseOutParams$2, { fromPosition: 'translateY(0) translateX(0)', toPosition: 'translateY(500px) translateX(500px)' })
});
/** @type {?} */
var slideOutBl = i1$1.animation(base$2, {
params: __assign({}, baseOutParams$2, { fromPosition: 'translateY(0) translateX(0)', toPosition: 'translateY(500px) translateX(-500px)' })
});
/** @type {?} */
var slideOutTl = i1$1.animation(base$2, {
params: __assign({}, baseOutParams$2, { fromPosition: 'translateY(0) translateX(0)', toPosition: 'translateY(-500px) translateX(-500px)' })
});
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var swingBase = [
i1$1.style({
opacity: "{{startOpacity}}",
transform: "rotate{{direction}}({{startAngle}}deg)",
transformOrigin: "{{xPos}} {{yPos}}"
}),
i1$1.animate("{{duration}} {{delay}} {{easing}}", i1$1.style({
opacity: "{{endOpacity}}",
transform: "rotate{{direction}}({{endAngle}}deg)",
transformOrigin: "{{xPos}} {{yPos}}"
}))
];
/** @type {?} */
var swingParams = {
delay: '0s',
direction: 'X',
duration: '.5s',
easing: EaseOut.back,
endAngle: 0,
endOpacity: 1,
startAngle: -100,
startOpacity: 0,
xPos: 'top',
yPos: 'center'
};
/** @type {?} */
var swingOutParams = __assign({}, swingParams, { duration: '.55s', easing: EaseIn.back, endAngle: 70, endOpacity: 0, startAngle: 0, startOpacity: 1 });
/** @type {?} */
var swingInTopFwd = i1$1.animation(swingBase, {
params: __assign({}, swingParams)
});
/** @type {?} */
var swingInRightFwd = i1$1.animation(swingBase, {
params: __assign({}, swingParams, { direction: 'Y', xPos: 'center', yPos: 'right' })
});
/** @type {?} */
var swingInBottomFwd = i1$1.animation(swingBase, {
params: __assign({}, swingParams, { startAngle: 100, xPos: 'bottom' })
});
/** @type {?} */
var swingInLeftFwd = i1$1.animation(swingBase, {
params: __assign({}, swingParams, { direction: 'Y', startAngle: 100, xPos: 'center', yPos: 'left' })
});
/** @type {?} */
var swingInTopBck = i1$1.animation(swingBase, {
params: __assign({}, swingParams, { duration: '.6s', startAngle: 70 })
});
/** @type {?} */
var swingInRightBck = i1$1.animation(swingBase, {
params: __assign({}, swingParams, { direction: 'Y', duration: '.6s', startAngle: 70, xPos: 'center', yPos: 'right' })
});
/** @type {?} */
var swingInBottomBck = i1$1.animation(swingBase, {
params: __assign({}, swingParams, { duration: '.6s', startAngle: -70, xPos: 'bottom' })
});
/** @type {?} */
var swingInLeftBck = i1$1.animation(swingBase, {
params: __assign({}, swingParams, { direction: 'Y', duration: '.6s', startAngle: -70, xPos: 'center', yPos: 'left' })
});
/** @type {?} */
var swingOutTopFwd = i1$1.animation(swingBase, {
params: __assign({}, swingOutParams)
});
/** @type {?} */
var swingOutRightFwd = i1$1.animation(swingBase, {
params: __assign({}, swingOutParams, { direction: 'Y', xPos: 'center', yPos: 'right' })
});
/** @type {?} */
var swingOutBottomFwd = i1$1.animation(swingBase, {
params: __assign({}, swingOutParams, { endAngle: -70, xPos: 'bottom' })
});
/** @type {?} */
var swingOutLefttFwd = i1$1.animation(swingBase, {
params: __assign({}, swingOutParams, { direction: 'Y', endAngle: -70, xPos: 'center', yPos: 'left' })
});
/** @type {?} */
var swingOutTopBck = i1$1.animation(swingBase, {
params: __assign({}, swingOutParams, { duration: '.45s', endAngle: -100 })
});
/** @type {?} */
var swingOutRightBck = i1$1.animation(swingBase, {
params: __assign({}, swingOutParams, { direction: 'Y', duration: '.45s', endAngle: -100, xPos: 'center', yPos: 'right' })
});
/** @type {?} */
var swingOutBottomBck = i1$1.animation(swingBase, {
params: __assign({}, swingOutParams, { duration: '.45s', endAngle: 100, xPos: 'bottom' })
});
/** @type {?} */
var swingOutLeftBck = i1$1.animation(swingBase, {
params: __assign({}, swingOutParams, { direction: 'Y', duration: '.45s', endAngle: 100, xPos: 'center', yPos: 'left' })
});
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var base$3 = [
i1$1.style({
opacity: "{{ startOpacity }}",
height: "{{ startHeight }}"
}),
i1$1.animate("{{duration}} {{delay}} {{easing}}", i1$1.style({
opacity: "{{ endOpacity }}",
height: "{{ endHeight }}"
}))
];
/** @type {?} */
var baseParams$3 = {
delay: '0s',
duration: '350ms',
easing: EaseIn.quad,
startOpacity: 0,
endOpacity: 1,
startHeight: '',
endHeight: ''
};
/** @type {?} */
var growVerIn = i1$1.animation(base$3, {
params: __assign({}, baseParams$3, { easing: EaseOut.quad, startOpacity: 0, endOpacity: 1, startHeight: '0px', endHeight: '*' })
});
/** @type {?} */
var growVerOut = i1$1.animation(base$3, {
params: __assign({}, baseParams$3, { easing: EaseOut.quad, startOpacity: 1, endOpacity: 0, startHeight: '*', endHeight: '0px' })
});
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Common service to be injected between components where those implementing common
* ToggleView interface can register and toggle directives can call their methods.
* TODO: Track currently active? Events?
*/
var /**
* Common service to be injected between components where those implementing common
* ToggleView interface can register and toggle directives can call their methods.
* TODO: Track currently active? Events?
*/ IgxNavigationService = /** @class */ (function () {
function IgxNavigationService() {
this.navs = {};
}
/**
* @param {?} id
* @param {?} navItem
* @return {?}
*/
IgxNavigationService.prototype.add = /**
* @param {?} id
* @param {?} navItem
* @return {?}
*/
function (id, navItem) {
this.navs[id] = navItem;
};
/**
* @param {?} id
* @return {?}
*/
IgxNavigationService.prototype.remove = /**
* @param {?} id
* @return {?}
*/
function (id) {
delete this.navs[id];
};
/**
* @param {?} id
* @return {?}
*/
IgxNavigationService.prototype.get = /**
* @param {?} id
* @return {?}
*/
function (id) {
if (id) {
return this.navs[id];
}
};
/**
* @param {?} id
* @param {...?} args
* @return {?}
*/
IgxNavigationService.prototype.toggle = /**
* @param {?} id
* @param {...?} args
* @return {?}
*/
function (id) {
var args = [];
for (var _i = 1; _i < arguments.length; _i++) {
args[_i - 1] = arguments[_i];
}
var _a;
if (this.navs[id]) {
return (_a = this.navs[id]).toggle.apply(_a, __spread(args));
}
};
/**
* @param {?} id
* @param {...?} args
* @return {?}
*/
IgxNavigationService.prototype.open = /**
* @param {?} id
* @param {...?} args
* @return {?}
*/
function (id) {
var args = [];
for (var _i = 1; _i < arguments.length; _i++) {
args[_i - 1] = arguments[_i];
}
var _a;
if (this.navs[id]) {
return (_a = this.navs[id]).open.apply(_a, __spread(args));
}
};
/**
* @param {?} id
* @param {...?} args
* @return {?}
*/
IgxNavigationService.prototype.close = /**
* @param {?} id
* @param {...?} args
* @return {?}
*/
function (id) {
var args = [];
for (var _i = 1; _i < arguments.length; _i++) {
args[_i - 1] = arguments[_i];
}
var _a;
if (this.navs[id]) {
return (_a = this.navs[id]).close.apply(_a, __spread(args));
}
};
return IgxNavigationService;
}());
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Directive that can toggle targets through provided NavigationService.
*
* Usage:
* ```
* <button igxNavToggle="ID"> Toggle </button>
* ```
* Where the `ID` matches the ID of compatible `IToggleView` component.
*/
var IgxNavigationToggleDirective = /** @class */ (function () {
function IgxNavigationToggleDirective(nav) {
this.state = nav;
}
/**
* @return {?}
*/
IgxNavigationToggleDirective.prototype.toggleNavigationDrawer = /**
* @return {?}
*/
function () {
this.state.toggle(this.target, true);
};
IgxNavigationToggleDirective.decorators = [
{ type: i0.Directive, args: [{ selector: '[igxNavToggle]' },] }
];
/** @nocollapse */
IgxNavigationToggleDirective.ctorParameters = function () {
return [
{ type: IgxNavigationService }
];
};
IgxNavigationToggleDirective.propDecorators = {
target: [{ type: i0.Input, args: ['igxNavToggle',] }],
toggleNavigationDrawer: [{ type: i0.HostListener, args: ['click',] }]
};
return IgxNavigationToggleDirective;
}());
/**
* Directive that can close targets through provided NavigationService.
*
* Usage:
* ```
* <button igxNavClose="ID"> Close </button>
* ```
* Where the `ID` matches the ID of compatible `IToggleView` component.
*/
var IgxNavigationCloseDirective = /** @class */ (function () {
function IgxNavigationCloseDirective(nav) {
this.state = nav;
}
/**
* @return {?}
*/
IgxNavigationCloseDirective.prototype.closeNavigationDrawer = /**
* @return {?}
*/
function () {
this.state.close(this.target, true);
};
IgxNavigationCloseDirective.decorators = [
{ type: i0.Directive, args: [{ selector: '[igxNavClose]' },] }
];
/** @nocollapse */
IgxNavigationCloseDirective.ctorParameters = function () {
return [
{ type: IgxNavigationService }
];
};
IgxNavigationCloseDirective.propDecorators = {
target: [{ type: i0.Input, args: ['igxNavClose',] }],
closeNavigationDrawer: [{ type: i0.HostListener, args: ['click',] }]
};
return IgxNavigationCloseDirective;
}());
/**
* @hidden
*/
var IgxNavigationModule = /** @class */ (function () {
function IgxNavigationModule() {
}
IgxNavigationModule.decorators = [
{ type: i0.NgModule, args: [{
declarations: [IgxNavigationCloseDirective, IgxNavigationToggleDirective],
exports: [IgxNavigationCloseDirective, IgxNavigationToggleDirective],
providers: [IgxNavigationService]
},] }
];
return IgxNavigationModule;
}());
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @hidden
* @param {?} array
* @param {?=} deep
* @return {?}
*/
function cloneArray(array, deep) {
/** @type {?} */
var arr = [];
if (!array) {
return arr;
}
/** @type {?} */
var i = array.length;
while (i--) {
arr[i] = deep ? cloneValue(array[i]) : array[i];
}
return arr;
}
/**
* Doesn't clone leaf items
* @hidden
* @param {?} array
* @param {?} childDataKey
* @return {?}
*/
function cloneHierarchicalArray(array, childDataKey) {
var e_1, _a;
/** @type {?} */
var result = [];
if (!array) {
return result;
}
try {
for (var array_1 = __values(array), array_1_1 = array_1.next(); !array_1_1.done; array_1_1 = array_1.next()) {
var item = array_1_1.value;
/** @type {?} */
var clonedItem = cloneValue(item);
if (Array.isArray(item[childDataKey])) {
clonedItem[childDataKey] = cloneHierarchicalArray(clonedItem[childDataKey], childDataKey);
}
result.push(clonedItem);
}
}
catch (e_1_1) {
e_1 = { error: e_1_1 };
}
finally {
try {
if (array_1_1 && !array_1_1.done && (_a = array_1.return))
_a.call(array_1);
}
finally {
if (e_1)
throw e_1.error;
}
}
return result;
}
/**
* Deep clones all first level keys of Obj2 and merges them to Obj1
* @hidden
* @param {?} obj1 Object to merge into
* @param {?} obj2 Object to merge from
* @return {?} Obj1 with merged cloned keys from Obj2
*/
function mergeObjects(obj1, obj2) {
var e_2, _a;
if (!isObject(obj1)) {
throw new Error("Cannot merge into " + obj1 + ". First param must be an object.");
}
if (!isObject(obj2)) {
return obj1;
}
try {
for (var _b = __values(Object.keys(obj2)), _c = _b.next(); !_c.done; _c = _b.next()) {
var key = _c.value;
obj1[key] = cloneValue(obj2[key]);
}
}
catch (e_2_1) {
e_2 = { error: e_2_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_2)
throw e_2.error;
}
}
return obj1;
}
/**
* Creates deep clone of provided value.
* Supports primitive values, dates and objects.
* If passed value is array returns shallow copy of the array.
* @hidden
* @param {?} value value to clone
* @return {?} Deep copy of provided value
*/
function cloneValue(value) {
var e_3, _a;
if (isDate(value)) {
return new Date(value.getTime());
}
if (Array.isArray(value)) {
return __spread(value);
}
if (value instanceof Map || value instanceof Set) {
return value;
}
if (isObject(value)) {
/** @type {?} */
var result = {};
try {
for (var _b = __values(Object.keys(value)), _c = _b.next(); !_c.done; _c = _b.next()) {