-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsmart-webcomponents-angular-accordion.umd.min.js
25 lines (21 loc) · 15.4 KB
/
smart-webcomponents-angular-accordion.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.accordion';
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("smart-webcomponents-angular/accordion",["exports","@angular/core"],t):t(((e=e||self)["smart-webcomponents-angular"]=e["smart-webcomponents-angular"]||{},e["smart-webcomponents-angular"].accordion={}),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){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function o(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 r=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}),o([t.Output()],e.prototype,"onCreate",void 0),o([t.Output()],e.prototype,"onReady",void 0),o([t.Output()],e.prototype,"onAttach",void 0),o([t.Output()],e.prototype,"onDetach",void 0),o([t.Input()],e.prototype,"locale",null),o([t.Input()],e.prototype,"localizeFormatFunction",null),o([t.Input()],e.prototype,"messages",null),o([t.Input()],e.prototype,"rightToLeft",null),o([t.Input()],e.prototype,"theme",null),e}(),a=window.Smart,l=function(e){function n(n){var i=e.call(this,n)||this;return i.eventHandlers=[],i.onCollapse=new t.EventEmitter,i.onCollapsing=new t.EventEmitter,i.onDragEnd=new t.EventEmitter,i.onDragStart=new t.EventEmitter,i.onExpand=new t.EventEmitter,i.onExpanding=new t.EventEmitter,i.nativeElement=n.nativeElement,i}return i(n,e),n.prototype.createComponent=function(e){for(var t in void 0===e&&(e={}),this.nativeElement=document.createElement("smart-accordion"),e)this.nativeElement[t]=e[t];return this.nativeElement},Object.defineProperty(n.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(n.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(n.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(n.prototype,"expandedIndexes",{get:function(){return this.nativeElement?this.nativeElement.expandedIndexes:void 0},set:function(e){this.nativeElement&&(this.nativeElement.expandedIndexes=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"expandMode",{get:function(){return this.nativeElement?this.nativeElement.expandMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.expandMode=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.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(n.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(n.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(n.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(n.prototype,"reorder",{get:function(){return this.nativeElement?this.nativeElement.reorder:void 0},set:function(e){this.nativeElement&&(this.nativeElement.reorder=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.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(n.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(n.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}),n.prototype.collapse=function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.collapse(e):this.nativeElement.whenRendered((function(){t.nativeElement.collapse(e)}))},n.prototype.expand=function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.expand(e):this.nativeElement.whenRendered((function(){t.nativeElement.expand(e)}))},n.prototype.insert=function(e,t){var n=this;this.nativeElement.isRendered?this.nativeElement.insert(e,t):this.nativeElement.whenRendered((function(){n.nativeElement.insert(e,t)}))},n.prototype.removeAt=function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.removeAt(e):this.nativeElement.whenRendered((function(){t.nativeElement.removeAt(e)}))},n.prototype.update=function(e,t){var n=this;this.nativeElement.isRendered?this.nativeElement.update(e,t):this.nativeElement.whenRendered((function(){n.nativeElement.update(e,t)}))},Object.defineProperty(n.prototype,"isRendered",{get:function(){return!!this.nativeElement&&this.nativeElement.isRendered},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){},n.prototype.ngAfterViewInit=function(){var e=this;e.onCreate.emit(e.nativeElement),a.Render(),this.nativeElement.classList.add("smart-angular"),this.nativeElement.whenRendered((function(){e.onReady.emit(e.nativeElement)})),this.listen()},n.prototype.ngOnDestroy=function(){this.unlisten()},n.prototype.ngOnChanges=function(e){if(this.nativeElement&&this.nativeElement.isRendered)for(var t in e)e.hasOwnProperty(t)&&(this.nativeElement[t]=e[t].currentValue)},n.prototype.listen=function(){var e=this;e.eventHandlers.collapseHandler=function(t){e.onCollapse.emit(t)},e.nativeElement.addEventListener("collapse",e.eventHandlers.collapseHandler),e.eventHandlers.collapsingHandler=function(t){e.onCollapsing.emit(t)},e.nativeElement.addEventListener("collapsing",e.eventHandlers.collapsingHandler),e.eventHandlers.dragEndHandler=function(t){e.onDragEnd.emit(t)},e.nativeElement.addEventListener("dragEnd",e.eventHandlers.dragEndHandler),e.eventHandlers.dragStartHandler=function(t){e.onDragStart.emit(t)},e.nativeElement.addEventListener("dragStart",e.eventHandlers.dragStartHandler),e.eventHandlers.expandHandler=function(t){e.onExpand.emit(t)},e.nativeElement.addEventListener("expand",e.eventHandlers.expandHandler),e.eventHandlers.expandingHandler=function(t){e.onExpanding.emit(t)},e.nativeElement.addEventListener("expanding",e.eventHandlers.expandingHandler)},n.prototype.unlisten=function(){this.eventHandlers.collapseHandler&&this.nativeElement.removeEventListener("collapse",this.eventHandlers.collapseHandler),this.eventHandlers.collapsingHandler&&this.nativeElement.removeEventListener("collapsing",this.eventHandlers.collapsingHandler),this.eventHandlers.dragEndHandler&&this.nativeElement.removeEventListener("dragEnd",this.eventHandlers.dragEndHandler),this.eventHandlers.dragStartHandler&&this.nativeElement.removeEventListener("dragStart",this.eventHandlers.dragStartHandler),this.eventHandlers.expandHandler&&this.nativeElement.removeEventListener("expand",this.eventHandlers.expandHandler),this.eventHandlers.expandingHandler&&this.nativeElement.removeEventListener("expanding",this.eventHandlers.expandingHandler)},n.ctorParameters=function(){return[{type:t.ElementRef}]},o([t.Input()],n.prototype,"animation",null),o([t.Input()],n.prototype,"dataSource",null),o([t.Input()],n.prototype,"disabled",null),o([t.Input()],n.prototype,"expandedIndexes",null),o([t.Input()],n.prototype,"expandMode",null),o([t.Input()],n.prototype,"locale",null),o([t.Input()],n.prototype,"localizeFormatFunction",null),o([t.Input()],n.prototype,"messages",null),o([t.Input()],n.prototype,"readonly",null),o([t.Input()],n.prototype,"reorder",null),o([t.Input()],n.prototype,"rightToLeft",null),o([t.Input()],n.prototype,"theme",null),o([t.Input()],n.prototype,"unfocusable",null),o([t.Output()],n.prototype,"onCollapse",void 0),o([t.Output()],n.prototype,"onCollapsing",void 0),o([t.Output()],n.prototype,"onDragEnd",void 0),o([t.Output()],n.prototype,"onDragStart",void 0),o([t.Output()],n.prototype,"onExpand",void 0),o([t.Output()],n.prototype,"onExpanding",void 0),n=o([t.Directive({exportAs:"smart-accordion",selector:"smart-accordion, [smart-accordion]"})],n)}(r),s=function(e){function n(n){var i=e.call(this,n)||this;return i.eventHandlers=[],i.onCollapse=new t.EventEmitter,i.onExpand=new t.EventEmitter,i.nativeElement=n.nativeElement,i}return i(n,e),n.prototype.createComponent=function(e){for(var t in void 0===e&&(e={}),this.nativeElement=document.createElement("smart-accordion-item"),e)this.nativeElement[t]=e[t];return this.nativeElement},Object.defineProperty(n.prototype,"arrow",{get:function(){return this.nativeElement?this.nativeElement.arrow:void 0},set:function(e){this.nativeElement&&(this.nativeElement.arrow=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"content",{get:function(){return this.nativeElement?this.nativeElement.content:void 0},set:function(e){this.nativeElement&&(this.nativeElement.content=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"expanded",{get:function(){return this.nativeElement?this.nativeElement.expanded:void 0},set:function(e){this.nativeElement&&(this.nativeElement.expanded=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"focused",{get:function(){return this.nativeElement?this.nativeElement.focused:void 0},set:function(e){this.nativeElement&&(this.nativeElement.focused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"label",{get:function(){return this.nativeElement?this.nativeElement.label:void 0},set:function(e){this.nativeElement&&(this.nativeElement.label=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isRendered",{get:function(){return!!this.nativeElement&&this.nativeElement.isRendered},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){},n.prototype.ngAfterViewInit=function(){var e=this;e.onCreate.emit(e.nativeElement),this.nativeElement.classList.add("smart-angular"),this.nativeElement.whenRendered((function(){e.onReady.emit(e.nativeElement)})),this.listen()},n.prototype.ngOnDestroy=function(){this.unlisten()},n.prototype.ngOnChanges=function(e){if(this.nativeElement&&this.nativeElement.isRendered)for(var t in e)e.hasOwnProperty(t)&&(this.nativeElement[t]=e[t].currentValue)},n.prototype.listen=function(){var e=this;e.eventHandlers.collapseHandler=function(t){e.onCollapse.emit(t)},e.nativeElement.addEventListener("collapse",e.eventHandlers.collapseHandler),e.eventHandlers.expandHandler=function(t){e.onExpand.emit(t)},e.nativeElement.addEventListener("expand",e.eventHandlers.expandHandler)},n.prototype.unlisten=function(){this.eventHandlers.collapseHandler&&this.nativeElement.removeEventListener("collapse",this.eventHandlers.collapseHandler),this.eventHandlers.expandHandler&&this.nativeElement.removeEventListener("expand",this.eventHandlers.expandHandler)},n.ctorParameters=function(){return[{type:t.ElementRef}]},o([t.Input()],n.prototype,"arrow",null),o([t.Input()],n.prototype,"content",null),o([t.Input()],n.prototype,"expanded",null),o([t.Input()],n.prototype,"focused",null),o([t.Input()],n.prototype,"label",null),o([t.Output()],n.prototype,"onCollapse",void 0),o([t.Output()],n.prototype,"onExpand",void 0),n=o([t.Directive({exportAs:"smart-accordion-item",selector:"smart-accordion-item, [smart-accordion-item]"})],n)}(r),p=function(){function e(){}return e=o([t.NgModule({declarations:[l,s],schemas:[t.CUSTOM_ELEMENTS_SCHEMA],exports:[l,s]})],e)}();e.AccordionComponent=l,e.AccordionItemComponent=s,e.AccordionModule=p,e.Smart=a,e.ɵa=r,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=smart-webcomponents-angular-accordion.umd.min.js.map