-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsmart-webcomponents-angular-carousel.umd.min.js
25 lines (21 loc) · 14.4 KB
/
smart-webcomponents-angular-carousel.umd.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
if (!window['Smart']) {
window['Smart'] = { RenderMode: 'manual' };
}
else {
window['Smart'].RenderMode = 'manual';
}
import './../source/modules/smart.carousel';
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("smart-webcomponents-angular/carousel",["exports","@angular/core"],t):t(((e=e||self)["smart-webcomponents-angular"]=e["smart-webcomponents-angular"]||{},e["smart-webcomponents-angular"].carousel={}),e.ng.core)}(this,(function(e,t){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}var o=function(){function e(e){this.onCreate=new t.EventEmitter,this.onReady=new t.EventEmitter,this.onAttach=new t.EventEmitter,this.onDetach=new t.EventEmitter;var n=this;this.nativeElement=e.nativeElement,n.nativeElement.onAttached=function(){n.onAttach.emit(n.nativeElement)},n.nativeElement.onDetached=function(){n.onDetach.emit(n.nativeElement)}}return e.prototype.addEventListener=function(e,t,n){void 0===n&&(n=!1),this.nativeElement.addEventListener(e,t,n)},e.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=!1),this.nativeElement.removeEventListener(e,t,n)},e.prototype.dispatchEvent=function(e){return this.nativeElement.dispatchEvent(e)},e.prototype.blur=function(){this.nativeElement.blur()},e.prototype.click=function(){this.nativeElement.click()},e.prototype.focus=function(e){this.nativeElement.focus(e)},Object.defineProperty(e.prototype,"locale",{get:function(){return this.nativeElement?this.nativeElement.locale:void 0},set:function(e){this.nativeElement&&(this.nativeElement.locale=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localizeFormatFunction",{get:function(){return this.nativeElement?this.nativeElement.localizeFormatFunction:void 0},set:function(e){this.nativeElement&&(this.nativeElement.localizeFormatFunction=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"messages",{get:function(){return this.nativeElement?this.nativeElement.messages:void 0},set:function(e){this.nativeElement&&(this.nativeElement.messages=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightToLeft",{get:function(){return this.nativeElement?this.nativeElement.rightToLeft:void 0},set:function(e){this.nativeElement&&(this.nativeElement.rightToLeft=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.nativeElement?this.nativeElement.theme:void 0},set:function(e){this.nativeElement&&(this.nativeElement.theme=e)},enumerable:!0,configurable:!0}),i([t.Output()],e.prototype,"onCreate",void 0),i([t.Output()],e.prototype,"onReady",void 0),i([t.Output()],e.prototype,"onAttach",void 0),i([t.Output()],e.prototype,"onDetach",void 0),i([t.Input()],e.prototype,"locale",null),i([t.Input()],e.prototype,"localizeFormatFunction",null),i([t.Input()],e.prototype,"messages",null),i([t.Input()],e.prototype,"rightToLeft",null),i([t.Input()],e.prototype,"theme",null),e}(),r=window.Smart,a=function(e){function o(n){var i=e.call(this,n)||this;return i.eventHandlers=[],i.onChange=new t.EventEmitter,i.onChanging=new t.EventEmitter,i.onSwipeleft=new t.EventEmitter,i.onSwiperight=new t.EventEmitter,i.nativeElement=n.nativeElement,i}return function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}(o,e),o.prototype.createComponent=function(e){for(var t in void 0===e&&(e={}),this.nativeElement=document.createElement("smart-carousel"),e)this.nativeElement[t]=e[t];return this.nativeElement},Object.defineProperty(o.prototype,"animation",{get:function(){return this.nativeElement?this.nativeElement.animation:void 0},set:function(e){this.nativeElement&&(this.nativeElement.animation=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"autoPlay",{get:function(){return this.nativeElement?this.nativeElement.autoPlay:void 0},set:function(e){this.nativeElement&&(this.nativeElement.autoPlay=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"dataSource",{get:function(){return this.nativeElement?this.nativeElement.dataSource:void 0},set:function(e){this.nativeElement&&(this.nativeElement.dataSource=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"delay",{get:function(){return this.nativeElement?this.nativeElement.delay:void 0},set:function(e){this.nativeElement&&(this.nativeElement.delay=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"disabled",{get:function(){return this.nativeElement?this.nativeElement.disabled:void 0},set:function(e){this.nativeElement&&(this.nativeElement.disabled=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"disableItemClick",{get:function(){return this.nativeElement?this.nativeElement.disableItemClick:void 0},set:function(e){this.nativeElement&&(this.nativeElement.disableItemClick=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"displayMode",{get:function(){return this.nativeElement?this.nativeElement.displayMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.displayMode=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"hideArrows",{get:function(){return this.nativeElement?this.nativeElement.hideArrows:void 0},set:function(e){this.nativeElement&&(this.nativeElement.hideArrows=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"hideIndicators",{get:function(){return this.nativeElement?this.nativeElement.hideIndicators:void 0},set:function(e){this.nativeElement&&(this.nativeElement.hideIndicators=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"indicatorTemplate",{get:function(){return this.nativeElement?this.nativeElement.indicatorTemplate:void 0},set:function(e){this.nativeElement&&(this.nativeElement.indicatorTemplate=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"interval",{get:function(){return this.nativeElement?this.nativeElement.interval:void 0},set:function(e){this.nativeElement&&(this.nativeElement.interval=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"itemTemplate",{get:function(){return this.nativeElement?this.nativeElement.itemTemplate:void 0},set:function(e){this.nativeElement&&(this.nativeElement.itemTemplate=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"keyboard",{get:function(){return this.nativeElement?this.nativeElement.keyboard:void 0},set:function(e){this.nativeElement&&(this.nativeElement.keyboard=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"locale",{get:function(){return this.nativeElement?this.nativeElement.locale:void 0},set:function(e){this.nativeElement&&(this.nativeElement.locale=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"localizeFormatFunction",{get:function(){return this.nativeElement?this.nativeElement.localizeFormatFunction:void 0},set:function(e){this.nativeElement&&(this.nativeElement.localizeFormatFunction=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"loop",{get:function(){return this.nativeElement?this.nativeElement.loop:void 0},set:function(e){this.nativeElement&&(this.nativeElement.loop=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"messages",{get:function(){return this.nativeElement?this.nativeElement.messages:void 0},set:function(e){this.nativeElement&&(this.nativeElement.messages=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"readonly",{get:function(){return this.nativeElement?this.nativeElement.readonly:void 0},set:function(e){this.nativeElement&&(this.nativeElement.readonly=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"rightToLeft",{get:function(){return this.nativeElement?this.nativeElement.rightToLeft:void 0},set:function(e){this.nativeElement&&(this.nativeElement.rightToLeft=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"slideShow",{get:function(){return this.nativeElement?this.nativeElement.slideShow:void 0},set:function(e){this.nativeElement&&(this.nativeElement.slideShow=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"swipe",{get:function(){return this.nativeElement?this.nativeElement.swipe:void 0},set:function(e){this.nativeElement&&(this.nativeElement.swipe=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"theme",{get:function(){return this.nativeElement?this.nativeElement.theme:void 0},set:function(e){this.nativeElement&&(this.nativeElement.theme=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"unfocusable",{get:function(){return this.nativeElement?this.nativeElement.unfocusable:void 0},set:function(e){this.nativeElement&&(this.nativeElement.unfocusable=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"wheel",{get:function(){return this.nativeElement?this.nativeElement.wheel:void 0},set:function(e){this.nativeElement&&(this.nativeElement.wheel=e)},enumerable:!0,configurable:!0}),o.prototype.next=function(){var e=this;this.nativeElement.isRendered?this.nativeElement.next():this.nativeElement.whenRendered((function(){e.nativeElement.next()}))},o.prototype.pause=function(){var e=this;this.nativeElement.isRendered?this.nativeElement.pause():this.nativeElement.whenRendered((function(){e.nativeElement.pause()}))},o.prototype.play=function(){var e=this;this.nativeElement.isRendered?this.nativeElement.play():this.nativeElement.whenRendered((function(){e.nativeElement.play()}))},o.prototype.prev=function(){var e=this;this.nativeElement.isRendered?this.nativeElement.prev():this.nativeElement.whenRendered((function(){e.nativeElement.prev()}))},o.prototype.slideTo=function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.slideTo(e):this.nativeElement.whenRendered((function(){t.nativeElement.slideTo(e)}))},Object.defineProperty(o.prototype,"isRendered",{get:function(){return!!this.nativeElement&&this.nativeElement.isRendered},enumerable:!0,configurable:!0}),o.prototype.ngOnInit=function(){},o.prototype.ngAfterViewInit=function(){var e=this;e.onCreate.emit(e.nativeElement),r.Render(),this.nativeElement.classList.add("smart-angular"),this.nativeElement.whenRendered((function(){e.onReady.emit(e.nativeElement)})),this.listen()},o.prototype.ngOnDestroy=function(){this.unlisten()},o.prototype.ngOnChanges=function(e){if(this.nativeElement&&this.nativeElement.isRendered)for(var t in e)e.hasOwnProperty(t)&&(this.nativeElement[t]=e[t].currentValue)},o.prototype.listen=function(){var e=this;e.eventHandlers.changeHandler=function(t){e.onChange.emit(t)},e.nativeElement.addEventListener("change",e.eventHandlers.changeHandler),e.eventHandlers.changingHandler=function(t){e.onChanging.emit(t)},e.nativeElement.addEventListener("changing",e.eventHandlers.changingHandler),e.eventHandlers.swipeleftHandler=function(t){e.onSwipeleft.emit(t)},e.nativeElement.addEventListener("swipeleft",e.eventHandlers.swipeleftHandler),e.eventHandlers.swiperightHandler=function(t){e.onSwiperight.emit(t)},e.nativeElement.addEventListener("swiperight",e.eventHandlers.swiperightHandler)},o.prototype.unlisten=function(){this.eventHandlers.changeHandler&&this.nativeElement.removeEventListener("change",this.eventHandlers.changeHandler),this.eventHandlers.changingHandler&&this.nativeElement.removeEventListener("changing",this.eventHandlers.changingHandler),this.eventHandlers.swipeleftHandler&&this.nativeElement.removeEventListener("swipeleft",this.eventHandlers.swipeleftHandler),this.eventHandlers.swiperightHandler&&this.nativeElement.removeEventListener("swiperight",this.eventHandlers.swiperightHandler)},o.ctorParameters=function(){return[{type:t.ElementRef}]},i([t.Input()],o.prototype,"animation",null),i([t.Input()],o.prototype,"autoPlay",null),i([t.Input()],o.prototype,"dataSource",null),i([t.Input()],o.prototype,"delay",null),i([t.Input()],o.prototype,"disabled",null),i([t.Input()],o.prototype,"disableItemClick",null),i([t.Input()],o.prototype,"displayMode",null),i([t.Input()],o.prototype,"hideArrows",null),i([t.Input()],o.prototype,"hideIndicators",null),i([t.Input()],o.prototype,"indicatorTemplate",null),i([t.Input()],o.prototype,"interval",null),i([t.Input()],o.prototype,"itemTemplate",null),i([t.Input()],o.prototype,"keyboard",null),i([t.Input()],o.prototype,"locale",null),i([t.Input()],o.prototype,"localizeFormatFunction",null),i([t.Input()],o.prototype,"loop",null),i([t.Input()],o.prototype,"messages",null),i([t.Input()],o.prototype,"readonly",null),i([t.Input()],o.prototype,"rightToLeft",null),i([t.Input()],o.prototype,"slideShow",null),i([t.Input()],o.prototype,"swipe",null),i([t.Input()],o.prototype,"theme",null),i([t.Input()],o.prototype,"unfocusable",null),i([t.Input()],o.prototype,"wheel",null),i([t.Output()],o.prototype,"onChange",void 0),i([t.Output()],o.prototype,"onChanging",void 0),i([t.Output()],o.prototype,"onSwipeleft",void 0),i([t.Output()],o.prototype,"onSwiperight",void 0),o=i([t.Directive({exportAs:"smart-carousel",selector:"smart-carousel, [smart-carousel]"})],o)}(o),l=function(){function e(){}return e=i([t.NgModule({declarations:[a],schemas:[t.CUSTOM_ELEMENTS_SCHEMA],exports:[a]})],e)}();e.CarouselComponent=a,e.CarouselModule=l,e.Smart=r,e.ɵa=o,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=smart-webcomponents-angular-carousel.umd.min.js.map