@smart-webcomponents-angular/toast 9.2.22 → 13.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -2
- package/common/i18n.phonenumbers.min.js +501 -0
- package/common/runtime.js +748 -0
- package/demo/angular.json +2 -2
- package/demo/src/tsconfig.app.json +15 -15
- package/demo/src/tsconfig.json +23 -23
- package/esm2020/toast/index.mjs +2 -0
- package/{esm2015/toast/public_api.js → esm2020/toast/public_api.mjs} +0 -0
- package/{esm2015/toast/smart-webcomponents-angular-toast.js → esm2020/toast/smart-webcomponents-angular-toast.mjs} +2 -3
- package/esm2020/toast/smart.element.mjs +99 -0
- package/esm2020/toast/smart.toast.mjs +376 -0
- package/esm2020/toast/smart.toast.module.mjs +18 -0
- package/fesm2015/{smart-webcomponents-angular-toast.js → smart-webcomponents-angular-toast.mjs} +110 -64
- package/fesm2015/smart-webcomponents-angular-toast.mjs.map +1 -0
- package/fesm2020/smart-webcomponents-angular-toast.mjs +501 -0
- package/fesm2020/smart-webcomponents-angular-toast.mjs.map +1 -0
- package/images/flags.png +0 -0
- package/index.d.ts +3578 -658
- package/package.json +26 -24
- package/source/modules/smart.toast.js +1 -1
- package/source/smart.button.js +2 -2
- package/source/smart.element.js +2 -2
- package/source/smart.toast.js +2 -2
- package/styles/font/smart-icons.eot +0 -0
- package/styles/font/smart-icons.svg +64 -2
- package/styles/font/smart-icons.ttf +0 -0
- package/styles/font/smart-icons.woff +0 -0
- package/styles/font/smart-icons.woff2 +0 -0
- package/styles/smart.base.css +4 -4
- package/styles/smart.common.css +1 -1
- package/styles/smart.toast.css +1 -1
- package/toast/index.d.ts +1 -0
- package/toast/smart-webcomponents-angular-toast.d.ts +2 -2
- package/toast/smart.element.d.ts +4 -1
- package/toast/smart.toast.d.ts +4 -1
- package/toast/smart.toast.module.d.ts +5 -0
- package/bundles/smart-webcomponents-angular-toast.umd.js +0 -907
- package/bundles/smart-webcomponents-angular-toast.umd.min.js +0 -25
- package/demo/src/app/app.component.ts +0 -29
- package/demo/src/app/app.module.ts +0 -15
- package/demo/src/app/main.ts +0 -6
- package/demo/src/main.ts +0 -16
- package/demo/src/polyfills.ts +0 -73
- package/esm2015/toast/smart.element.js +0 -83
- package/esm2015/toast/smart.toast.js +0 -352
- package/esm2015/toast/smart.toast.module.js +0 -13
- package/fesm2015/smart-webcomponents-angular-toast.js.map +0 -1
- package/toast/smart-webcomponents-angular-toast.metadata.json +0 -1
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
if (!window['Smart']) {
|
|
3
|
-
window['Smart'] = { RenderMode: 'manual' };
|
|
4
|
-
}
|
|
5
|
-
else {
|
|
6
|
-
window['Smart'].RenderMode = 'manual';
|
|
7
|
-
}
|
|
8
|
-
import './../source/modules/smart.toast';
|
|
9
|
-
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("smart-webcomponents-angular/toast",["exports","@angular/core"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["smart-webcomponents-angular"]=e["smart-webcomponents-angular"]||{},e["smart-webcomponents-angular"].toast={}),e.ng.core)}(this,(function(e,t){"use strict";
|
|
11
|
-
/*! *****************************************************************************
|
|
12
|
-
Copyright (c) Microsoft Corporation.
|
|
13
|
-
|
|
14
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
15
|
-
purpose with or without fee is hereby granted.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
18
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
19
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
20
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
21
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
22
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
23
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
24
|
-
***************************************************************************** */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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{s(i.next(e))}catch(e){r(e)}}function l(e){try{s(i.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((i=i.apply(e,t||[])).next())}))}function o(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(r){return function(l){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,l])}}}Object.create;Object.create;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:!1,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:!1,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:!1,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:!1,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:!1,configurable:!0}),e}();r.propDecorators={onCreate:[{type:t.Output}],onReady:[{type:t.Output}],onAttach:[{type:t.Output}],onDetach:[{type:t.Output}],locale:[{type:t.Input}],localizeFormatFunction:[{type:t.Input}],messages:[{type:t.Input}],rightToLeft:[{type:t.Input}],theme:[{type:t.Input}]};var a=window.Smart,l=function(e){function r(n){var i=e.call(this,n)||this;return i.eventHandlers=[],i.onClick=new t.EventEmitter,i.onClose=new t.EventEmitter,i.onOpen=new t.EventEmitter,i.onSwipebottom=new t.EventEmitter,i.onSwipeleft=new t.EventEmitter,i.onSwiperight=new t.EventEmitter,i.onSwipetop=new t.EventEmitter,i.nativeElement=n.nativeElement,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}(r,e),r.prototype.createComponent=function(e){for(var t in void 0===e&&(e={}),this.nativeElement=document.createElement("smart-toast"),e)this.nativeElement[t]=e[t];return this.nativeElement},Object.defineProperty(r.prototype,"animation",{get:function(){return this.nativeElement?this.nativeElement.animation:void 0},set:function(e){this.nativeElement&&(this.nativeElement.animation=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"appendTo",{get:function(){return this.nativeElement?this.nativeElement.appendTo:void 0},set:function(e){this.nativeElement&&(this.nativeElement.appendTo=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"autoClose",{get:function(){return this.nativeElement?this.nativeElement.autoClose:void 0},set:function(e){this.nativeElement&&(this.nativeElement.autoClose=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"autoCloseDelay",{get:function(){return this.nativeElement?this.nativeElement.autoCloseDelay:void 0},set:function(e){this.nativeElement&&(this.nativeElement.autoCloseDelay=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"autoOpen",{get:function(){return this.nativeElement?this.nativeElement.autoOpen:void 0},set:function(e){this.nativeElement&&(this.nativeElement.autoOpen=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"disabled",{get:function(){return this.nativeElement?this.nativeElement.disabled:void 0},set:function(e){this.nativeElement&&(this.nativeElement.disabled=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"iconClass",{get:function(){return this.nativeElement?this.nativeElement.iconClass:void 0},set:function(e){this.nativeElement&&(this.nativeElement.iconClass=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"itemClass",{get:function(){return this.nativeElement?this.nativeElement.itemClass:void 0},set:function(e){this.nativeElement&&(this.nativeElement.itemClass=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"itemTemplate",{get:function(){return this.nativeElement?this.nativeElement.itemTemplate:void 0},set:function(e){this.nativeElement&&(this.nativeElement.itemTemplate=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"locale",{get:function(){return this.nativeElement?this.nativeElement.locale:void 0},set:function(e){this.nativeElement&&(this.nativeElement.locale=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"localizeFormatFunction",{get:function(){return this.nativeElement?this.nativeElement.localizeFormatFunction:void 0},set:function(e){this.nativeElement&&(this.nativeElement.localizeFormatFunction=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"messages",{get:function(){return this.nativeElement?this.nativeElement.messages:void 0},set:function(e){this.nativeElement&&(this.nativeElement.messages=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"modal",{get:function(){return this.nativeElement?this.nativeElement.modal:void 0},set:function(e){this.nativeElement&&(this.nativeElement.modal=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"position",{get:function(){return this.nativeElement?this.nativeElement.position:void 0},set:function(e){this.nativeElement&&(this.nativeElement.position=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"readonly",{get:function(){return this.nativeElement?this.nativeElement.readonly:void 0},set:function(e){this.nativeElement&&(this.nativeElement.readonly=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rightToLeft",{get:function(){return this.nativeElement?this.nativeElement.rightToLeft:void 0},set:function(e){this.nativeElement&&(this.nativeElement.rightToLeft=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"showCloseButton",{get:function(){return this.nativeElement?this.nativeElement.showCloseButton:void 0},set:function(e){this.nativeElement&&(this.nativeElement.showCloseButton=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"theme",{get:function(){return this.nativeElement?this.nativeElement.theme:void 0},set:function(e){this.nativeElement&&(this.nativeElement.theme=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"type",{get:function(){return this.nativeElement?this.nativeElement.type:void 0},set:function(e){this.nativeElement&&(this.nativeElement.type=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"unfocusable",{get:function(){return this.nativeElement?this.nativeElement.unfocusable:void 0},set:function(e){this.nativeElement&&(this.nativeElement.unfocusable=e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"value",{get:function(){return this.nativeElement?this.nativeElement.value:void 0},set:function(e){this.nativeElement&&(this.nativeElement.value=e)},enumerable:!1,configurable:!0}),r.prototype.closeAll=function(){var e=this;this.nativeElement.isRendered?this.nativeElement.closeAll():this.nativeElement.whenRendered((function(){e.nativeElement.closeAll()}))},r.prototype.closeItem=function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.closeItem(e):this.nativeElement.whenRendered((function(){t.nativeElement.closeItem(e)}))},r.prototype.closeLast=function(){var e=this;this.nativeElement.isRendered?this.nativeElement.closeLast():this.nativeElement.whenRendered((function(){e.nativeElement.closeLast()}))},r.prototype.open=function(e,t){return i(this,void 0,void 0,(function(){var n=this;return o(this,(function(i){switch(i.label){case 0:return[4,function(){return new Promise((function(i){n.nativeElement.whenRendered((function(){var o=n.nativeElement.open(e,t);i(o)}))}))}()];case 1:return[2,i.sent()]}}))}))},Object.defineProperty(r.prototype,"isRendered",{get:function(){return!!this.nativeElement&&this.nativeElement.isRendered},enumerable:!1,configurable:!0}),r.prototype.ngOnInit=function(){},r.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()},r.prototype.ngOnDestroy=function(){this.unlisten()},r.prototype.ngOnChanges=function(e){if(this.nativeElement&&this.nativeElement.isRendered)for(var t in e)e.hasOwnProperty(t)&&(this.nativeElement[t]=e[t].currentValue)},r.prototype.listen=function(){var e=this;e.eventHandlers.clickHandler=function(t){e.onClick.emit(t)},e.nativeElement.addEventListener("click",e.eventHandlers.clickHandler),e.eventHandlers.closeHandler=function(t){e.onClose.emit(t)},e.nativeElement.addEventListener("close",e.eventHandlers.closeHandler),e.eventHandlers.openHandler=function(t){e.onOpen.emit(t)},e.nativeElement.addEventListener("open",e.eventHandlers.openHandler),e.eventHandlers.swipebottomHandler=function(t){e.onSwipebottom.emit(t)},e.nativeElement.addEventListener("swipebottom",e.eventHandlers.swipebottomHandler),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),e.eventHandlers.swipetopHandler=function(t){e.onSwipetop.emit(t)},e.nativeElement.addEventListener("swipetop",e.eventHandlers.swipetopHandler)},r.prototype.unlisten=function(){var e=this;e.eventHandlers.clickHandler&&e.nativeElement.removeEventListener("click",e.eventHandlers.clickHandler),e.eventHandlers.closeHandler&&e.nativeElement.removeEventListener("close",e.eventHandlers.closeHandler),e.eventHandlers.openHandler&&e.nativeElement.removeEventListener("open",e.eventHandlers.openHandler),e.eventHandlers.swipebottomHandler&&e.nativeElement.removeEventListener("swipebottom",e.eventHandlers.swipebottomHandler),e.eventHandlers.swipeleftHandler&&e.nativeElement.removeEventListener("swipeleft",e.eventHandlers.swipeleftHandler),e.eventHandlers.swiperightHandler&&e.nativeElement.removeEventListener("swiperight",e.eventHandlers.swiperightHandler),e.eventHandlers.swipetopHandler&&e.nativeElement.removeEventListener("swipetop",e.eventHandlers.swipetopHandler)},r}(r);l.decorators=[{type:t.Directive,args:[{selector:"smart-toast, [smart-toast]"}]}],l.ctorParameters=function(){return[{type:t.ElementRef}]},l.propDecorators={animation:[{type:t.Input}],appendTo:[{type:t.Input}],autoClose:[{type:t.Input}],autoCloseDelay:[{type:t.Input}],autoOpen:[{type:t.Input}],disabled:[{type:t.Input}],iconClass:[{type:t.Input}],itemClass:[{type:t.Input}],itemTemplate:[{type:t.Input}],locale:[{type:t.Input}],localizeFormatFunction:[{type:t.Input}],messages:[{type:t.Input}],modal:[{type:t.Input}],position:[{type:t.Input}],readonly:[{type:t.Input}],rightToLeft:[{type:t.Input}],showCloseButton:[{type:t.Input}],theme:[{type:t.Input}],type:[{type:t.Input}],unfocusable:[{type:t.Input}],value:[{type:t.Input}],onClick:[{type:t.Output}],onClose:[{type:t.Output}],onOpen:[{type:t.Output}],onSwipebottom:[{type:t.Output}],onSwipeleft:[{type:t.Output}],onSwiperight:[{type:t.Output}],onSwipetop:[{type:t.Output}]};var s=function(){};s.decorators=[{type:t.NgModule,args:[{declarations:[l],schemas:[t.CUSTOM_ELEMENTS_SCHEMA],exports:[l]}]}],e.Smart=a,e.ToastComponent=l,e.ToastModule=s,e.ɵa=r,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
25
|
-
//# sourceMappingURL=smart-webcomponents-angular-toast.umd.min.js.map
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Component, ViewChild, OnInit, AfterViewInit } from '@angular/core';
|
|
2
|
-
import { ToastComponent } from '@smart-webcomponents-angular/toast';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'app-root',
|
|
7
|
-
templateUrl: './app.component.html',
|
|
8
|
-
styleUrls: ['./app.component.css']
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
export class AppComponent implements AfterViewInit, OnInit {
|
|
12
|
-
@ViewChild('toast', { read: ToastComponent, static: false }) toast: ToastComponent;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
ngOnInit(): void {
|
|
16
|
-
// onInit code.
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
ngAfterViewInit(): void {
|
|
20
|
-
// afterViewInit code.
|
|
21
|
-
this.init();
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
init(): void {
|
|
25
|
-
// init code.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
3
|
-
|
|
4
|
-
import { ToastModule } from '@smart-webcomponents-angular/toast';
|
|
5
|
-
|
|
6
|
-
import { AppComponent } from './app.component';
|
|
7
|
-
|
|
8
|
-
@NgModule({
|
|
9
|
-
declarations: [ AppComponent ],
|
|
10
|
-
imports: [ BrowserModule, ToastModule ],
|
|
11
|
-
bootstrap: [ AppComponent ],
|
|
12
|
-
entryComponents: [ AppComponent ]
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
export class AppModule { }
|
package/demo/src/app/main.ts
DELETED
package/demo/src/main.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import './polyfills';
|
|
2
|
-
|
|
3
|
-
import { enableProdMode } from '@angular/core';
|
|
4
|
-
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
5
|
-
|
|
6
|
-
import { AppModule } from './app/app.module';
|
|
7
|
-
|
|
8
|
-
platformBrowserDynamic().bootstrapModule(AppModule).then(ref => {
|
|
9
|
-
// Ensure Angular destroys itself on hot reloads.
|
|
10
|
-
if (window['ngRef']) {
|
|
11
|
-
window['ngRef'].destroy();
|
|
12
|
-
}
|
|
13
|
-
window['ngRef'] = ref;
|
|
14
|
-
|
|
15
|
-
// Otherwise, log the boot error
|
|
16
|
-
}).catch(err => console.error(err));
|
package/demo/src/polyfills.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file includes polyfills needed by Angular and is loaded before the app.
|
|
3
|
-
* You can add your own extra polyfills to this file.
|
|
4
|
-
*
|
|
5
|
-
* This file is divided into 2 sections:
|
|
6
|
-
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
|
|
7
|
-
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
|
|
8
|
-
* file.
|
|
9
|
-
*
|
|
10
|
-
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
|
|
11
|
-
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
|
|
12
|
-
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
|
|
13
|
-
*
|
|
14
|
-
* Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/***************************************************************************************************
|
|
18
|
-
* BROWSER POLYFILLS
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
|
|
22
|
-
// import 'core-js/es6/symbol';
|
|
23
|
-
// import 'core-js/es6/object';
|
|
24
|
-
// import 'core-js/es6/function';
|
|
25
|
-
// import 'core-js/es6/parse-int';
|
|
26
|
-
// import 'core-js/es6/parse-float';
|
|
27
|
-
// import 'core-js/es6/number';
|
|
28
|
-
// import 'core-js/es6/math';
|
|
29
|
-
// import 'core-js/es6/string';
|
|
30
|
-
// import 'core-js/es6/date';
|
|
31
|
-
// import 'core-js/es6/array';
|
|
32
|
-
// import 'core-js/es6/regexp';
|
|
33
|
-
// import 'core-js/es6/map';
|
|
34
|
-
// import 'core-js/es6/weak-map';
|
|
35
|
-
// import 'core-js/es6/set';
|
|
36
|
-
|
|
37
|
-
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
|
38
|
-
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
|
39
|
-
|
|
40
|
-
/** Evergreen browsers require these. **/
|
|
41
|
-
//import 'core-js/es6/reflect';
|
|
42
|
-
//import 'core-js/es7/reflect';
|
|
43
|
-
|
|
44
|
-
import 'core-js/es/reflect';
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Required to support Web Animations `@angular/animation`.
|
|
48
|
-
* Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
|
|
49
|
-
**/
|
|
50
|
-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
/***************************************************************************************************
|
|
55
|
-
* Zone JS is required by Angular itself.
|
|
56
|
-
*/
|
|
57
|
-
import 'zone.js/dist/zone'; // Included with Angular CLI.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
/***************************************************************************************************
|
|
62
|
-
* APPLICATION IMPORTS
|
|
63
|
-
*/
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Date, currency, decimal and percent pipes.
|
|
67
|
-
* Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
|
|
68
|
-
*/
|
|
69
|
-
// import 'intl'; // Run `npm install --save intl`.
|
|
70
|
-
/**
|
|
71
|
-
* Need to import at least one locale-data with intl.
|
|
72
|
-
*/
|
|
73
|
-
// import 'intl/locale-data/jsonp/en';
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
-
export class BaseElement {
|
|
3
|
-
constructor(ref) {
|
|
4
|
-
this.onCreate = new EventEmitter();
|
|
5
|
-
this.onReady = new EventEmitter();
|
|
6
|
-
this.onAttach = new EventEmitter();
|
|
7
|
-
this.onDetach = new EventEmitter();
|
|
8
|
-
const that = this;
|
|
9
|
-
this.nativeElement = ref.nativeElement;
|
|
10
|
-
that.nativeElement.onAttached = () => {
|
|
11
|
-
that.onAttach.emit(that.nativeElement);
|
|
12
|
-
};
|
|
13
|
-
that.nativeElement.onDetached = () => {
|
|
14
|
-
that.onDetach.emit(that.nativeElement);
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
addEventListener(type, listener, options = false) {
|
|
18
|
-
this.nativeElement.addEventListener(type, listener, options);
|
|
19
|
-
}
|
|
20
|
-
removeEventListener(type, listener, options = false) {
|
|
21
|
-
this.nativeElement.removeEventListener(type, listener, options);
|
|
22
|
-
}
|
|
23
|
-
dispatchEvent(event) {
|
|
24
|
-
return this.nativeElement.dispatchEvent(event);
|
|
25
|
-
}
|
|
26
|
-
blur() {
|
|
27
|
-
this.nativeElement.blur();
|
|
28
|
-
}
|
|
29
|
-
click() {
|
|
30
|
-
this.nativeElement.click();
|
|
31
|
-
}
|
|
32
|
-
focus(options) {
|
|
33
|
-
this.nativeElement.focus(options);
|
|
34
|
-
}
|
|
35
|
-
/** @description Sets or gets the language. Used in conjunction with the property messages. */
|
|
36
|
-
get locale() {
|
|
37
|
-
return this.nativeElement ? this.nativeElement.locale : undefined;
|
|
38
|
-
}
|
|
39
|
-
set locale(value) {
|
|
40
|
-
this.nativeElement ? this.nativeElement.locale = value : undefined;
|
|
41
|
-
}
|
|
42
|
-
/** @description Callback used to customize the format of the messages that are returned from the Localization Module. */
|
|
43
|
-
get localizeFormatFunction() {
|
|
44
|
-
return this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;
|
|
45
|
-
}
|
|
46
|
-
set localizeFormatFunction(value) {
|
|
47
|
-
this.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;
|
|
48
|
-
}
|
|
49
|
-
/** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. */
|
|
50
|
-
get messages() {
|
|
51
|
-
return this.nativeElement ? this.nativeElement.messages : undefined;
|
|
52
|
-
}
|
|
53
|
-
set messages(value) {
|
|
54
|
-
this.nativeElement ? this.nativeElement.messages = value : undefined;
|
|
55
|
-
}
|
|
56
|
-
/** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */
|
|
57
|
-
get rightToLeft() {
|
|
58
|
-
return this.nativeElement ? this.nativeElement.rightToLeft : undefined;
|
|
59
|
-
}
|
|
60
|
-
set rightToLeft(value) {
|
|
61
|
-
this.nativeElement ? this.nativeElement.rightToLeft = value : undefined;
|
|
62
|
-
}
|
|
63
|
-
/** @description Determines the theme. Theme defines the look of the element */
|
|
64
|
-
get theme() {
|
|
65
|
-
return this.nativeElement ? this.nativeElement.theme : undefined;
|
|
66
|
-
}
|
|
67
|
-
set theme(value) {
|
|
68
|
-
this.nativeElement ? this.nativeElement.theme = value : undefined;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
BaseElement.propDecorators = {
|
|
72
|
-
onCreate: [{ type: Output }],
|
|
73
|
-
onReady: [{ type: Output }],
|
|
74
|
-
onAttach: [{ type: Output }],
|
|
75
|
-
onDetach: [{ type: Output }],
|
|
76
|
-
locale: [{ type: Input }],
|
|
77
|
-
localizeFormatFunction: [{ type: Input }],
|
|
78
|
-
messages: [{ type: Input }],
|
|
79
|
-
rightToLeft: [{ type: Input }],
|
|
80
|
-
theme: [{ type: Input }]
|
|
81
|
-
};
|
|
82
|
-
export const Smart = window.Smart;
|
|
83
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnQuZWxlbWVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3RvYXN0L3NyYy9zbWFydC5lbGVtZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFBLE9BQU8sRUFBYyxLQUFLLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUd4RSxNQUFNLE9BQU8sV0FBVztJQUNwQixZQUFZLEdBQWU7UUFhakIsYUFBUSxHQUFzQixJQUFJLFlBQVksRUFBRSxDQUFDO1FBQ2pELFlBQU8sR0FBc0IsSUFBSSxZQUFZLEVBQUUsQ0FBQztRQUNoRCxhQUFRLE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